{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/store.js@^1.0.0", "ssg:https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js", "ssg:https://framerusercontent.com/modules/cXi65gCFHsrkQYXHFl4y/PPufQM6ADxvFkyrbemLG/PasswordInput.js", "ssg:https://cdn.thenty.io/beta/thenty-sdk.min.js", "ssg:https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/WO0BY8LwVoqggEJBPHWk/ThentyShared.js", "ssg:https://framerusercontent.com/modules/e61m4Fbk5eP9eHvcc7Z8/D5tfieJj4z9ekFuijREx/SubmitButton.js", "ssg:https://framerusercontent.com/modules/qERhjgPA4cB5k1EvYnU6/Syq7IALRk21e0lIk5GD9/ThentyErrorMessage.js", "ssg:https://framerusercontent.com/modules/qWJhxYMaYl3NiGIZjw7a/wJPm9V4BGmfI0Ddg2uzw/ThentyForm.js"],
  "sourcesContent": ["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType,RenderTarget,withCSS}from\"framer\";import{forwardRef,useEffect,useState,useRef,useId}from\"react\";import{motion}from\"framer-motion\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// totalPages\n// pageHistory\n// logicConfig\n// isEndPage\n// previousPage()\n// nextPage()\nexport const useMultiStepFormStore=createStore({});export const HIDDEN_CLASS_NAME=\"framerforms-hidden\";const CANVAS_HIDDEN_CLASS_NAME=\"framerforms-canvas-hidden\";export const useInstanceId=()=>{const id=useId();const cleanId=id.replace(/:/g,\"\");const instanceId=`superfields-${cleanId}`;return instanceId;};export const HiddenInput=/*#__PURE__*/forwardRef(({name,required,value,setInvalid,onSetValueEvent,noPrefill=false,disabled=false},parentRef)=>{const internalRef=useRef(null);const ref=parentRef||internalRef;useEffect(()=>{if(ref.current){ref.current.addEventListener(\"framerFormsSetValue\",onSetValueEvent);}return()=>{if(ref.current){ref.current.removeEventListener(\"framerFormsSetValue\",onSetValueEvent);}};},[onSetValueEvent]);return /*#__PURE__*/_jsx(\"input\",{ref:ref,type:\"text\",\"data-framerforms-set-value-event\":!!onSetValueEvent,\"data-framerforms-no-prefill\":noPrefill,style:{position:\"absolute\",opacity:0,pointerEvents:\"none\",inset:0},tabIndex:-1,name:name,required:required,value:value,disabled:disabled,onInvalid:event=>{event.preventDefault();setInvalid(true);}});});const HideElementComponent=/*#__PURE__*/forwardRef(({},ref)=>{return /*#__PURE__*/_jsx(\"div\",{ref:ref,className:HIDDEN_CLASS_NAME});});export const HideElement=withCSS(HideElementComponent,[`div:has(> .${HIDDEN_CLASS_NAME}) { display: none; }`,`.${HIDDEN_CLASS_NAME} { display: none; }`],HIDDEN_CLASS_NAME);HideElement.displayName=\"FramerForms/Hide Element\";export const HiddenComponentLabel=/*#__PURE__*/forwardRef(({text,subtext=\"\",children=null,...otherProps},ref)=>{const isCanvas=RenderTarget.current()===RenderTarget.canvas;const id=useInstanceId();return isCanvas?/*#__PURE__*/_jsxs(\"div\",{\"data-framerforms\":true,...otherProps,ref:ref,className:CANVAS_HIDDEN_CLASS_NAME,style:{backgroundColor:\"rgba(187, 187, 187, 0.15)\",borderRadius:10,padding:\"12px 16px\",fontFamily:\"Inter\",fontWeight:500,fontSize:12,color:\"#999\",display:\"flex\",flexDirection:\"column\",gap:4,alignItems:\"center\",textAlign:\"center\",width:\"100%\",height:\"100%\",textWrap:\"nowrap\"},children:[children,text,subtext&&/*#__PURE__*/_jsx(\"span\",{style:{opacity:.7,whiteSpace:\"pre\",lineHeight:1.4},children:subtext}),/*#__PURE__*/_jsx(Border,{width:\"1px\",style:\"solid\",borderColor:\"rgba(136, 136, 136, 0.1)\"}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n                        [data-framer-component-container=\"true\"] div:has(> .${CANVAS_HIDDEN_CLASS_NAME}) {\n                            display: none !important;\n                        }`}})]}):/*#__PURE__*/_jsxs(\"div\",{...otherProps,ref:ref,className:HIDDEN_CLASS_NAME,children:[/*#__PURE__*/_jsx(HideElement,{}),children]});});HiddenComponentLabel.displayName=\"FramerForms/Hidden Component Label\";export function iconProp({size=16,buttonTitle=\"Icon\",controls={}}={}){return{type:ControlType.Object,buttonTitle,optional:true,defaultValue:{color:\"#999\",size},controls:{image:{type:ControlType.Image},color:{type:ControlType.Color,optional:true,defaultValue:\"#999\"},size:{type:ControlType.Number,defaultValue:size,min:1,step:1,displayStepper:true},...controls}};}export function Icon({image,color,size,style={},defaultImage}){return /*#__PURE__*/_jsx(\"div\",{style:{width:size,height:size,minWidth:size,minHeight:size,pointerEvents:\"none\",backgroundColor:color,backgroundImage:color?\"none\":image?`url('${image}')`:defaultImage,maskImage:image?`url('${image}')`:defaultImage,backgroundSize:\"contain\",backgroundPosition:\"center\",maskSize:\"contain\",maskPosition:\"center\",...style}});}Icon.displayName=\"FramerForms/Icon\";export function Border({width,style,transition=null,borderColor=\"inherit\",opacity=1}){return /*#__PURE__*/_jsx(motion.div,{animate:{borderColor,opacity},style:{position:\"absolute\",inset:0,borderWidth:width,borderStyle:style,borderRadius:\"inherit\",pointerEvents:\"none\"},initial:false,transition:transition});}Border.displayName=\"FramerForms/Border\";export function createBackground(fill,on=null,focused=null,invalid=null){if(fill){const onOff=typeof on==\"boolean\";if(fill.type==\"color\"){let color=invalid&&fill.colorInvalid||focused&&fill.colorFocus||(onOff?on?fill.colorOn:fill.colorOff:fill.color);return{backgroundColor:color,backgroundImage:\"none\"};}else{const colorA=invalid&&fill.colorAInvalid||focused&&fill.colorAFocus||(onOff?on?fill.colorAOn:fill.colorAOff:fill.colorA);const colorB=invalid&&fill.colorBInvalid||focused&&fill.colorBFocus||(onOff?on?fill.colorBOn:fill.colorBOff:fill.colorB);return{backgroundColor:\"none\",backgroundImage:`linear-gradient(${fill.gradientAngle}deg, ${colorB}, ${colorA})`};}}return{};}export function parsePadding(padding){if(typeof padding!==\"string\"){return[0,0,0,0];}const values=padding.split(\" \");const parsedValues=values.map(value=>parseInt(value.replace(\"px\",\"\"),10));switch(parsedValues.length){case 1:const p=parsedValues[0];return[p,p,p,p];case 4:return parsedValues;}return[0,0,0,0];}export function fillProp({onOff=false,focus=true,invalid=true,optional=false,hidden=null,color=\"rgba(187, 187, 187, 0.15)\",colorA=\"#BBB\",colorB=\"#676767\",colorOn=\"rgba(70, 160, 219, 0.2)\",colorAOn=\"#66C2FF\",colorBOn=\"#0099FF\",colorOff=\"rgba(187, 187, 187, 0.15)\",colorAOff=\"#BBB\",colorBOff=\"#676767\"}={}){return{type:ControlType.Object,optional,hidden,icon:\"color\",defaultValue:{type:\"color\",...onOff?{colorOn,colorOff}:{color,colorA,colorB}},controls:{type:{type:ControlType.Enum,defaultValue:\"color\",options:[\"color\",\"linearGradient\"],optionTitles:[\"Color\",\"Gradient\"],displaySegmentedControl:true},...onOff?{colorOn:{type:ControlType.Color,defaultValue:colorOn,hidden:props=>props.type!==\"color\"},colorOff:{type:ControlType.Color,defaultValue:colorOff,hidden:props=>props.type!==\"color\"}}:{color:{type:ControlType.Color,defaultValue:color,hidden:props=>props.type!==\"color\"}},...focus?{colorFocus:{type:ControlType.Color,optional:true,title:\"Focus\",hidden:props=>props.type!==\"color\"}}:{},...invalid?{colorInvalid:{type:ControlType.Color,optional:true,title:\"Invalid\",hidden:props=>props.type!==\"color\"}}:{},...onOff?{colorAOn:{type:ControlType.Color,defaultValue:colorAOn,title:\"Colors On\",hidden:props=>props.type!==\"linearGradient\"},colorBOn:{type:ControlType.Color,defaultValue:colorBOn,title:\" \",hidden:props=>props.type!==\"linearGradient\"},colorAOff:{type:ControlType.Color,defaultValue:colorAOff,title:\"Colors Off\",hidden:props=>props.type!==\"linearGradient\"},colorBOff:{type:ControlType.Color,defaultValue:colorBOff,title:\" \",hidden:props=>props.type!==\"linearGradient\"}}:{colorA:{type:ControlType.Color,defaultValue:colorA,title:\"Colors\",hidden:props=>props.type!==\"linearGradient\"},colorB:{type:ControlType.Color,defaultValue:colorB,title:\" \",hidden:props=>props.type!==\"linearGradient\"}},...focus?{colorAFocus:{type:ControlType.Color,optional:true,title:\"Focus\",hidden:props=>props.type!==\"linearGradient\"},colorBFocus:{type:ControlType.Color,optional:true,title:\" \",hidden:props=>props.type!==\"linearGradient\"}}:{},...invalid?{colorAInvalid:{type:ControlType.Color,optional:true,title:\"Invalid\",hidden:props=>props.type!==\"linearGradient\"},colorBInvalid:{type:ControlType.Color,optional:true,title:\" \",hidden:props=>props.type!==\"linearGradient\"}}:{},gradientAngle:{type:ControlType.Number,defaultValue:0,title:\"Angle\",step:1,min:0,max:360,unit:\"\\xb0\",hidden:props=>props.type!=\"linearGradient\"}}};}export function borderProp({onOff=false,focus=true,invalid=true,defaultValue=true,color=\"rgba(136, 136, 136, 0.1)\",colorOn=\"#0099FF\",colorOff=\"rgba(136, 136, 136, 0.1)\",colorFocus=\"#0099FF\",colorInvalid=\"#FF5A6F\",hidden=null}={}){return{type:ControlType.Object,optional:true,hidden,defaultValue:defaultValue?{color,colorOn,colorOff,colorFocus,colorInvalid,width:\"1px\"}:undefined,controls:{...onOff?{colorOn:{type:ControlType.Color,defaultValue:colorOn},colorOff:{type:ControlType.Color,defaultValue:colorOff}}:{color:{type:ControlType.Color,defaultValue:color}},...focus?{colorFocus:{type:ControlType.Color,defaultValue:colorFocus,optional:true,title:\"Focus\"}}:{},...invalid?{colorInvalid:{type:ControlType.Color,defaultValue:colorInvalid,optional:true,title:\"Invalid\"}}:{},width:{type:ControlType.Padding,defaultValue:\"1px\"},style:{type:ControlType.Enum,defaultValue:\"solid\",options:[\"solid\",\"dashed\",\"dotted\",\"double\"],optionTitles:[\"Solid\",\"Dashed\",\"Dotted\",\"Double\"]}}};}export function shadowsProp({invalid=true,onOff=false}={}){return{type:ControlType.Object,buttonTitle:\"Shadows\",optional:true,controls:{...onOff?{on:{type:ControlType.BoxShadow,defaultValue:\"rgba(0, 153, 255, 0.5) 0px 2px 4px 0px\"},off:{type:ControlType.BoxShadow,defaultValue:\"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px\"}}:{default:{type:ControlType.BoxShadow,defaultValue:\"rgba(0, 0, 0, 0.25) 0px 2px 4px 0px\"}},focus:{type:ControlType.BoxShadow},invalid:invalid?{type:ControlType.BoxShadow}:null}};}export function useCanvasState(ref){const[totalPages,setTotalPages]=useState(1);useEffect(()=>{const element=ref.current;let pages=null;function updateState(){setTotalPages(pages?pages.children.length:1);}if(element){const multiStepForms=document.querySelectorAll(\"div[data-framerforms-multi-step-form]\");for(const multiStepForm of multiStepForms){const form=multiStepForm.closest(\"form\")||multiStepForm.parentElement.parentElement.parentElement;if(form&&isAncestor(form,element)){pages=form.querySelector(':scope > [data-framer-name=\"Pages\" i]');}}}updateState();if(pages){const observer=new MutationObserver((mutationsList,observer)=>{for(let mutation of mutationsList){if(mutation.type===\"childList\"){updateState();}}});observer.observe(pages,{childList:true});return()=>observer.disconnect();}},[]);return{page:0,totalPages};}export function isAncestor(ancestorElement,descendantElement){if(!ancestorElement||!descendantElement){return false;}let currentElement=descendantElement;while(currentElement!==null){if(currentElement===ancestorElement){return true;}currentElement=currentElement.parentElement;}return false;}export function getFormInfo(element){const form=element===null||element===void 0?void 0:element.closest(\"form\");let formId=null;let pages=null;if(form){formId=form.getAttribute(\"framerforms-id\");pages=form.querySelector(':scope > [data-framer-name=\"Pages\" i]');if(!formId){formId=uuid();form.setAttribute(\"framerforms-id\",formId);}}return{form,formId,pages};}function uuid(){let d=new Date().getTime()// Timestamp\n;let d2=performance&&performance.now&&performance.now()*1e3||0// Time in microseconds since page-load or 0 if unsupported\n;return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,function(c){let r=Math.random()*16// random number between 0 and 16\n;if(d>0){// Use timestamp until depleted\nr=(d+r)%16|0;d=Math.floor(d/16);}else{// Use microseconds since page-load if supported\nr=(d2+r)%16|0;d2=Math.floor(d2/16);}return(c===\"x\"?r:r&3|8).toString(16);});}\nexport const __FramerMetadata__ = {\"exports\":{\"borderProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isAncestor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"shadowsProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useInstanceId\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parsePadding\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"iconProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Icon\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"getFormInfo\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"createBackground\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HiddenComponentLabel\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HideElement\":{\"type\":\"reactComponent\",\"name\":\"HideElement\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"fillProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HIDDEN_CLASS_NAME\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Border\":{\"type\":\"reactComponent\",\"name\":\"Border\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"HiddenInput\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useCanvasState\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useMultiStepFormStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FramerFormsShared.map", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";import{motion}from\"framer\";import{createBackground,Border,parsePadding,fillProp,borderProp,shadowsProp,useInstanceId,Icon}from\"https://framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 400\n * @framerDisableUnlink\n */export default function PasswordInput(props){const{button,shadows,border}=props;const id=useInstanceId();const[focused,setFocused]=useState(false);const[invalid,setInvalid]=useState(false);const[showPassword,setShowPassword]=useState(false);const[pt,pr,pb,pl]=parsePadding(props.padding);const onFocus=()=>{setFocused(true);props.focusEvent?.();if(invalid){setInvalid(false);}};const onBlur=()=>{setFocused(false);props.blurEvent?.();};const onInvalid=event=>{event.preventDefault();setInvalid(true);props.invalidEvent?.();};const onButtonClick=()=>{setShowPassword(!showPassword);};return /*#__PURE__*/_jsxs(motion.div,{\"data-framerforms\":true,id:id,onFocus:onFocus,onBlur:onBlur,animate:{...createBackground(props.fill,null,focused,invalid),boxShadow:invalid&&shadows?.invalid||focused&&shadows?.focus||shadows?.default,borderColor:invalid&&border?.colorInvalid||focused&&border?.colorFocus||border?.color},style:{borderRadius:props.radius,display:\"flex\",flexDirection:\"row\",...props.style},initial:false,transition:props.transition,children:[/*#__PURE__*/_jsx(\"input\",{name:props.name,type:showPassword?\"text\":\"password\",required:props.required,autoFocus:props.autoFocus,placeholder:props.placeholder,minLength:props.minLength,maxLength:props.maxLength,onInvalid:onInvalid,style:{display:\"block\",padding:button?`${pt}px ${0}px ${pb}px ${pl}px`:props.padding,color:props.color,background:\"none\",border:\"none\",textOverflow:\"ellipsis\",...props.font,...props.style}}),button&&/*#__PURE__*/_jsx(\"div\",{onClick:onButtonClick,style:{width:button.size+pr+8,cursor:\"pointer\",display:\"flex\",flexDirection:\"row\",alignItems:\"center\",paddingLeft:8,justifyContent:\"start\"},children:/*#__PURE__*/_jsx(Icon,{image:showPassword?button.imageOn:button.imageOff,color:showPassword?button.colorOn:button.colorOff,size:button.size,defaultImage:showPassword?`url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.585 10.587a2 2 0 0 0 2.829 2.828\" /><path d=\"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87\" /><path d=\"M3 3l18 18\" /></svg>')`:`url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0\" /><path d=\"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6\" /></svg>')`})}),/*#__PURE__*/_jsx(Border,{...props.border,transition:props.transition}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`#${id} input::placeholder {\n                        color: ${props.placeholderColor};\n                        user-select: none;\n                    }\n                    #${id} input:focus {\n                        outline: none;\n                    }`}})]});}PasswordInput.displayName=\"Password Input\";addPropertyControls(PasswordInput,{name:{type:ControlType.String,defaultValue:\"Password\",preventLocalization:true},required:{type:ControlType.Boolean,defaultValue:true},autoFocus:{type:ControlType.Boolean,defaultValue:false,title:\"Auto-Focus\"},minLength:{type:ControlType.Number,defaultValue:8,min:0,step:1,displayStepper:true},maxLength:{type:ControlType.Number,defaultValue:100,min:0,step:1,displayStepper:true},placeholder:{type:ControlType.String,defaultValue:\"Password\"},button:{type:ControlType.Object,optional:true,defaultValue:{colorOn:\"#999\",colorOff:\"#999\",size:20},buttonTitle:\"Show Password\",controls:{imageOn:{type:ControlType.Image},imageOff:{type:ControlType.Image},colorOn:{type:ControlType.Color,optional:true,defaultValue:\"#999\"},colorOff:{type:ControlType.Color,optional:true,defaultValue:\"#999\"},size:{type:ControlType.Number,defaultValue:20,min:1,step:1,displayStepper:true}}},font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.2}},color:{type:ControlType.Color,defaultValue:\"#999999\"},placeholderColor:{type:ControlType.Color,defaultValue:\"#999999\",title:\"Placeholder\"},fill:fillProp(),radius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},padding:{type:ControlType.Padding,defaultValue:\"12px 15px 12px 12px\"},border:borderProp(),shadows:shadowsProp(),transition:{type:ControlType.Transition,defaultValue:{type:false}},focusEvent:{type:ControlType.EventHandler,title:\"Focus\"},blurEvent:{type:ControlType.EventHandler,title:\"Blur\"},invalidEvent:{type:ControlType.EventHandler,title:\"Invalid\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PasswordInput\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"400\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PasswordInput.map", "const logStyle=\"color:white;background-color:#FF4A29;font-family:system-ui;font-size:1.2rem;font-weight:bold\";class ThentySDK{constructor(){console.log(\"%cthenty SDK Module\",logStyle),this.apiURL=\"https://api.thenty.io\"}fetchAuthorizationKey(){return(window?.location?new URL(window.location.origin):\"\").host+\".authorization\"}fetchAuthorization(){var e=localStorage.getItem(this.fetchAuthorizationKey());return e?JSON.parse(e):null}setAuthorization(e){var t=this.fetchAuthorizationKey();localStorage.setItem(t,JSON.stringify(e)),window.dispatchEvent(new CustomEvent(\"storage\",{detail:{key:t,newValue:e}}))}fetchMetadataKey(){return(window?.location?new URL(window.location.origin):\"\").host+\".metadata\"}fetchMetadata(){var e=localStorage.getItem(this.fetchMetadataKey());return e?JSON.parse(e):null}logout(e=\"/\"){localStorage.removeItem(this.fetchAuthorizationKey()),window.location.pathname=e}checkForProduct(e=[],t=null){let r=t,o=(r=r||this.fetchAuthorization(),!1);if(r?.hasOwnProperty(\"member\"))for(const a of(r.member.products??[]).map(e=>e.id))if(e.includes(a)){o=!0;break}return o}getDataForCanvas(){var e=this.fetchMetadataKey(),t=this.fetchAuthorizationKey();let r=localStorage.getItem(e),o=localStorage.getItem(t)??null;o=o&&JSON.parse(o),r=r&&JSON.parse(r);var e=o?.hasOwnProperty(\"authorization\")&&o?.hasOwnProperty(\"member\"),t=o?.key?r?.logged_in_access_denied_redirect_path??\"#\":r?.login_redirect_path??\"#\",a=o?.member?.products??[];return{siteMeta:r,authorization:o,isLoggedIn:e,redirect_path:t,memberProducts:a}}isAccessDenied({regex_pattern:e,product_ids:t},r=[],o){e=new RegExp(e),t=!t.length||t.findIndex(e=>r.includes(e));return e.test(o)&&-1===t}assessPathForAccess(e,t=\"\"){var{siteMeta:r,redirect_path:o,memberProducts:a}=this.getDataForCanvas(),i=a.map(e=>e.id),n=e.startsWith(\"/\")?(\"\"+e).slice(1):e;for(const s of r?.protected_pages||[])if(this.isAccessDenied(s,i,n))return o?\"/\"+o:\"/access-denied\";return e+t}getRequestHeaders(e=!1){let t=!1;return e&&(t=this.fetchAuthorization()),{\"Content-Type\":\"application/json\",Accept:\"application/json\",\"x-secret-key\":window.variables.secretKey,\"x-site-key\":window.variables.siteKey,\"x-refresh-token\":window.variables.siteKey,...t&&{authorization:t?.authorization?.key,\"x-refresh-token\":t?.authorization.refresh}}}isGoogleRedirect(e=null){e=e??new URLSearchParams(window.location.search);return e?.has(\"code\")&&e?.has(\"state\")&&\"GOOGLE_LOGIN\"===e?.get(\"state\")}fetchGoogleCallback(e=null,t=null){const r=t??new URLSearchParams(window.location.search);fetch(this.apiURL+\"/oauth/members/callback/google\",{method:\"POST\",headers:this.getRequestHeaders(),body:JSON.stringify({code:r.get(\"code\"),...e&&{planIdOverride:e},...window?.Rewardful?.referral&&{rewardfulClientReferenceId:window.Rewardful.referral}})}).then(async e=>{var t=await e.json();if(200<e.status)throw new Error(t.errorMessage);return t}).then(e=>{r.delete(\"code\"),r.delete(\"state\");var t=new URL(window.location.href);t.search=r.toString(),history.replaceState(null,\"\",t.toString()),this.setAuthorization(e),setTimeout(()=>{window.open(e.redirect_url??\"#\",\"_self\")},500)})}refetchSiteMetadataTrigger=()=>{var e=new URL(window.location.origin);window.dispatchEvent(new CustomEvent(\"storage\",{detail:{key:e.host+\".reauth\",newValue:!0}}))};toggleBookmark(e,t,r=void 0){var o=this.fetchAuthorization();return this.fetchGeneric(\"/bookmarks\",\"POST\",{slug:t,collection:e,...void 0!==r&&{value:r}},o?.authorization?.key).then(this.refetchSiteMetadataTrigger)}fetchGeneric(e,t=\"GET\",r=null,o=null){return fetch(\"\"+this.apiURL+e,{method:t,headers:this.getRequestHeaders(o),...r&&{body:JSON.stringify(r)}}).then(async e=>{var t=await e.json();if(200<e.status)throw new Error(t.errorMessage);return t})}}const thentyAuth=new ThentySDK;\"undefined\"!=typeof window&&(window.thentyAuth=thentyAuth);export{thentyAuth};", "import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType,RenderTarget,withCSS,Link}from\"framer\";import{forwardRef,useEffect,useState,useRef,useId,useMemo,cloneElement}from\"react\";import{motion}from\"framer-motion\";import{thentyAuth}from\"https://cdn.thenty.io/beta/thenty-sdk.min.js\";export var FormState;(function(FormState){FormState[\"Default\"]=\"default\";FormState[\"Loading\"]=\"loading\";FormState[\"Success\"]=\"success\";FormState[\"Error\"]=\"error\";})(FormState||(FormState={}));export var Events;(function(Events){Events[\"FormStateChange\"]=\"thenty-form-state-change\";Events[\"SubmitButtonClick\"]=\"thenty-submit-button-click\";Events[\"GoogleSignIn\"]=\"thenty-google-sign-in\";Events[\"Error\"]=\"thenty-form-error\";Events[\"FormInitialized\"]=\"thenty-form-initialized\";})(Events||(Events={}));export const HIDDEN_CLASS_NAME=\"thenty-hidden\";const CANVAS_HIDDEN_CLASS_NAME=\"thenty-canvas-hidden\";export const useInstanceId=()=>{const id=useId();const cleanId=id.replace(/:/g,\"\");const instanceId=`thenty-${cleanId}`;return instanceId;};export const ALIGNMENT_MAP={left:\"flex-start\",center:\"center\",right:\"flex-end\",justify:\"flex-start\"};export const useThenty=()=>{const metaKey=thentyAuth.fetchMetadataKey();const authKey=thentyAuth.fetchAuthorizationKey();const[authorization,updateAuthorization]=useState(thentyAuth.fetchAuthorization());const[siteMeta,updateSiteMeta]=useState(thentyAuth.fetchMetadata());useEffect(()=>{// Event listener callback\nconst handleStorageChange=event=>{const eventKey=event.detail?.key??event.key;const eventNewValue=event.detail?.newValue??event.newValue;try{if(eventKey===authKey){updateAuthorization(typeof eventNewValue===\"string\"?JSON.parse(eventNewValue):eventNewValue);}else if(eventKey===metaKey){updateSiteMeta(typeof eventNewValue===\"string\"?JSON.parse(eventNewValue):eventNewValue);}}catch(error){console.error(\"Failed to handle Thenty storage change\");}};window.addEventListener(\"storage\",handleStorageChange);return()=>{window.removeEventListener(\"storage\",handleStorageChange);};},[]);return{authorization,siteMeta};};export const hasProducts=(productIds=[])=>{const{authorization}=useThenty();const canAccess=useMemo(()=>{return thentyAuth.checkForProduct(productIds);},[authorization,productIds]);return canAccess;};export const fetchUserData=()=>{const{authorization}=useThenty();const userData=authorization?.member??null;return{loggedIn:!!userData,userData};};const clearQueryParams=()=>{if(window?.history?.replaceState){const newUrl=window.location.pathname;window.history.replaceState(null,\"\",newUrl);}};export const useSSO=planIdOverride=>{const[firstRender,setFirstRender]=useState(true);const[isLoadingGoogle,setIsLoadingGoogle]=useState(false);useEffect(()=>{if(firstRender){const searchParams=window?.location?new URLSearchParams(window?.location?.search):{};clearQueryParams();setFirstRender(false);if(thentyAuth.isGoogleRedirect(searchParams)){setIsLoadingGoogle(true);thentyAuth.fetchGoogleCallback(planIdOverride,searchParams);}}},[firstRender]);return{isLoadingGoogle};};const HideElementComponent=/*#__PURE__*/forwardRef(({},ref)=>{return /*#__PURE__*/_jsx(\"div\",{ref:ref,className:HIDDEN_CLASS_NAME});});export const HideElement=withCSS(HideElementComponent,[`div:has(> .${HIDDEN_CLASS_NAME}) { display: none; }`,`.${HIDDEN_CLASS_NAME} { display: none; }`],HIDDEN_CLASS_NAME);HideElement.displayName=\"Hide Element\";export const HiddenComponentLabel=/*#__PURE__*/forwardRef(({text,subtext=\"\",children=null,...otherProps},ref)=>{const isCanvas=RenderTarget.current()===RenderTarget.canvas;return isCanvas?/*#__PURE__*/_jsxs(\"div\",{...otherProps,ref:ref,className:CANVAS_HIDDEN_CLASS_NAME,style:{backgroundColor:\"rgba(187, 187, 187, 0.15)\",borderRadius:10,padding:\"12px 16px\",fontFamily:\"Inter\",fontWeight:500,fontSize:12,color:\"#999\",display:\"flex\",flexDirection:\"column\",gap:6,alignItems:\"center\",textAlign:\"center\",width:\"100%\",height:\"100%\",textWrap:\"nowrap\"},children:[text,subtext&&/*#__PURE__*/_jsx(\"span\",{style:{opacity:.7,whiteSpace:\"pre\",lineHeight:1.4},children:subtext}),children,/*#__PURE__*/_jsx(Border,{width:\"1px\",style:\"solid\",borderColor:\"rgba(136, 136, 136, 0.1)\"}),/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`[data-framer-component-container=\"true\"] div:has(> .${CANVAS_HIDDEN_CLASS_NAME}) { display: none !important; }`}})]}):/*#__PURE__*/_jsx(\"div\",{...otherProps,ref:ref,className:HIDDEN_CLASS_NAME,children:/*#__PURE__*/_jsx(HideElement,{})});});HiddenComponentLabel.displayName=\"Hidden Component Label\";export function Border({border,hoverState=null,hover=false,transition=null}){const hoverBorder=hoverState?.border??border;return hoverBorder?/*#__PURE__*/_jsx(motion.div,{animate:{borderColor:hover?hoverBorder.borderColor:border?.borderColor,borderWidth:hover?hoverBorder.borderWidth:border?.borderWidth,opacity:hover?1:border?1:0},style:{position:\"absolute\",inset:0,borderStyle:hover?hoverBorder.borderStyle:border?.borderStyle,borderRadius:\"inherit\",pointerEvents:\"none\"},initial:false,transition:transition||hoverState?.transition}):null;}export function fillProp({optional=false,defaultValue=true,hidden=null,color=\"#F3F3F3\",colorA=\"#FFFFFF\",colorB=\"#000000\"}={}){return{type:ControlType.Object,optional,hidden,icon:\"color\",defaultValue:defaultValue?{type:\"color\",color,colorA,colorB}:null,controls:{type:{type:ControlType.Enum,defaultValue:\"color\",options:[\"color\",\"linearGradient\"],optionTitles:[\"Color\",\"Gradient\"],displaySegmentedControl:true},color:{type:ControlType.Color,defaultValue:color,hidden:props=>props.type!==\"color\"},colorA:{type:ControlType.Color,defaultValue:colorA,title:\"Colors\",hidden:props=>props.type!==\"linearGradient\"},colorB:{type:ControlType.Color,defaultValue:colorB,title:\" \",hidden:props=>props.type!==\"linearGradient\"},gradientAngle:{type:ControlType.Number,defaultValue:0,title:\"Angle\",step:1,min:0,max:360,unit:\"\\xb0\",hidden:props=>props.type!=\"linearGradient\"}}};}export function createBackground(fill){return fill.type===\"linearGradient\"?`linear-gradient(${fill.gradientAngle}deg, ${fill.colorB}, ${fill.colorA})`:fill.color;}export function stateStyleProp({defaultFill=\"#EDEDED\"}={defaultFill:\"#EDEDED\"}){const fill=fillProp({optional:true,color:defaultFill});return{type:ControlType.Object,optional:true,icon:\"effect\",buttonTitle:\"Styles\",defaultValue:{fill:fill.defaultValue,radiusEnabled:false,radius:\"10px\"},controls:{fill,color:{type:ControlType.Color,optional:true},border:{type:ControlType.Border,optional:true},shadows:{type:ControlType.BoxShadow},radiusEnabled:{type:ControlType.Boolean,defaultValue:false,title:\"Radius\"},radius:{type:ControlType.BorderRadius,defaultValue:\"10px\",title:\" \",hidden:props=>!props.radiusEnabled}}};}export const transitionProp=()=>({type:ControlType.Transition,defaultValue:{type:\"spring\",duration:.2,bounce:0}});export function Icon({image,color,size,style={},defaultImage}){return /*#__PURE__*/_jsx(\"div\",{style:{width:size,height:size,minWidth:size,minHeight:size,pointerEvents:\"none\",backgroundColor:color,backgroundImage:color?\"none\":image?`url('${image}')`:defaultImage,maskImage:image?`url('${image}')`:defaultImage,backgroundSize:\"contain\",backgroundPosition:\"center\",maskSize:\"contain\",maskPosition:\"center\",...style}});}export function compileHoverStyle(hover){const whileHover={};if(hover){if(hover.fill){whileHover.background=createBackground(hover.fill);}if(hover.color){whileHover.color=hover.color;}if(hover.shadows){whileHover.boxShadow=hover.shadows;}if(hover.radiusEnabled){whileHover.borderRadius=hover.radius;}}return whileHover;}export function styleLayer(layer,style){layer=Array.isArray(layer)?layer[0]:layer;let newLayer=layer;const width=style?.width;const height=style?.height;if(layer&&layer.props&&style&&(width||height)){if(typeof layer.type===\"function\"&&typeof layer.props.children===\"object\"){newLayer=/*#__PURE__*/cloneElement(layer,{children:{...layer.props.children,props:{...layer.props.children.props,style:{...layer.props.children.props.style,...width&&{width},...height&&{height}}}}});}else{newLayer=/*#__PURE__*/cloneElement(layer,{style:{...layer.props.style,...width&&{width},...height&&{height}}});}}return newLayer;}export function EmptyState({title,subtitle}){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",width:\"100%\",height:\"100%\",flexDirection:\"column\",alignContent:\"center\",justifyContent:\"center\",gap:12,backgroundColor:\"rgba(255, 74, 41, 0.1)\",borderRadius:6,border:\"1px dashed rgb(255, 74, 41)\",color:\"rgb(255, 74, 41)\",fontSize:16,padding:20,minHeight:200,textWrap:\"balance\",maxWidth:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"row\",justifyContent:\"center\"},children:/*#__PURE__*/_jsx(ThentyLogo,{})}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:8,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontWeight:600,textAlign:\"center\",maxWidth:500},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,opacity:.7,lineHeight:1.5,textAlign:\"center\",maxWidth:500},children:subtitle})]})]});}EmptyState.displayName=\"Empty State\";export function ThentyLogo(){return /*#__PURE__*/_jsxs(\"svg\",{width:\"74\",height:\"19\",viewBox:\"0 0 111 29\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[/*#__PURE__*/_jsxs(\"g\",{\"clip-path\":\"url(#clip0_115_8)\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M34.807 5.70097H30.823V9.82197H27.876V13.137H30.823V19.345C30.823 22.447 32.643 24.225 35.816 24.225C36.965 24.225 37.852 24.035 38.785 23.584L38.847 23.555V20.157L38.684 20.241C38.112 20.532 37.473 20.68 36.827 20.672C35.449 20.672 34.808 19.984 34.808 18.508V13.137H38.981V9.82197H34.808L34.807 5.70097ZM48.317 9.56197C46.657 9.56197 45.356 10.164 44.252 11.452V5.02197H40.239V23.964H44.252V16.272C44.252 14.274 45.305 12.985 46.927 12.985C48.545 12.985 49.381 14.028 49.381 16.089V23.964H53.367V14.858C53.367 11.592 51.432 9.56197 48.317 9.56197ZM69.057 17.796C69.403 15.498 68.819 13.377 67.412 11.826C66.089 10.366 64.156 9.56197 61.964 9.56197C57.709 9.56197 54.623 12.624 54.623 16.841C54.623 21.244 57.591 24.198 62.019 24.198C65.643 24.198 68.199 22.368 69.028 19.161L69.061 19.032H65.073L65.052 19.106C64.625 20.454 63.52 21.198 61.936 21.198C60.104 21.198 58.997 20.053 58.729 17.884H69.044L69.057 17.796ZM58.787 15.38C59.128 13.45 60.195 12.432 61.879 12.432C63.561 12.432 64.679 13.56 64.821 15.38H58.787ZM78.489 9.56197C76.757 9.56197 75.255 10.266 74.123 11.604V9.82397H70.411V23.965H74.424V16.27C74.424 14.273 75.477 12.984 77.097 12.984C78.717 12.984 79.553 14.028 79.553 16.088V23.964H83.539V14.858C83.539 11.592 81.604 9.56197 78.489 9.56197ZM91.173 5.70097H87.189V9.82197H84.243V13.137H87.189V19.345C87.189 22.447 89.009 24.225 92.184 24.225C93.333 24.225 94.219 24.035 95.153 23.584L95.213 23.555V20.157L95.052 20.241C94.48 20.532 93.841 20.68 93.195 20.672C91.817 20.672 91.176 19.984 91.176 18.508V13.137H95.351V9.82197H91.175L91.173 5.70097ZM107.028 9.82397L103.773 19.16L100.197 9.82397H95.867L101.641 23.704L99.525 29H103.883L111.056 9.82397H107.028Z\",fill:\"#FF4A29\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M19.933 14.528V5C14.429 5 9.967 9.267 9.967 14.528V5.056C4.463 5.056 0 9.321 0 14.584H4.955V24.052C4.955 24.055 4.956 24.056 4.959 24.056C10.46 24.056 14.921 19.788 14.921 14.528H19.933Z\",fill:\"#FF4A29\"})]}),/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsx(\"clipPath\",{id:\"clip0_115_8\",children:/*#__PURE__*/_jsx(\"rect\",{width:\"111\",height:\"29\",fill:\"white\"})})})]});}ThentyLogo.displayName=\"Thenty Logo\";export function textOptionsToStyles({transform,decoration,balance,userSelect}){return{userSelect:userSelect?\"auto\":\"none\",textDecoration:decoration,textWrap:balance?\"balance\":undefined,textTransform:transform};}export function textOptions({title=\"Options\"}={title:\"Options\"}){return{type:ControlType.Object,title,controls:{transform:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",\"inherit\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Inherit\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]},decoration:{type:ControlType.Enum,defaultValue:\"none\",options:[\"none\",\"underline\",\"line-through\"],optionTitles:[\"None\",\"Underline\",\"Strikethrough\"]},balance:{type:ControlType.Boolean,defaultValue:false},userSelect:{type:ControlType.Boolean,defaultValue:true},tag:{type:ControlType.Enum,defaultValue:\"p\",options:[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"p\",\"span\"]}}};}export const StandardButton=/*#__PURE__*/forwardRef(({children,href,newTab,fill,color,radius,padding,shadows,decoration,hover,border,bgBlur,transition,font,gap,clickEvent,hoverEvent,style,onClick,loadingSpinner,loading=false,...props},ref)=>{const MotionTag=href?motion.a:motion.button;const[buttonHover,setButtonHover]=useState(false);const handleClick=()=>{clickEvent?.();onClick?.();};const onHoverStart=()=>{setButtonHover(true);hoverEvent?.();};const onHoverEnd=()=>{setButtonHover(false);};const element=/*#__PURE__*/_jsxs(MotionTag,{ref:ref,href:href,target:newTab?\"_blank\":undefined,type:\"button\",onClick:handleClick,onHoverStart:onHoverStart,onHoverEnd:onHoverEnd,style:{appearance:\"none\",border:\"none\",outline:\"none\",userSelect:\"none\",cursor:\"pointer\",...style,...font},animate:{background:createBackground(fill),color,borderRadius:radius,padding,boxShadow:shadows,backdropFilter:bgBlur?`blur(${bgBlur}px)`:undefined},whileHover:compileHoverStyle(hover),initial:false,transition:transition,...props,children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"row\",alignItems:\"center\",justifyContent:ALIGNMENT_MAP[font?.textAlign]||\"center\",textAlign:\"center\",gap,opacity:loading&&loadingSpinner&&loadingSpinner.location===\"center\"?0:1},children:children}),loading&&loadingSpinner&&/*#__PURE__*/_jsx(LoadingSpinner,{...loadingSpinner,color:loadingSpinner.color||color,padding:padding}),/*#__PURE__*/_jsx(Border,{border:border,hoverState:hover,hover:buttonHover,transition:transition})]});return href?/*#__PURE__*/_jsx(Link,{href:href,openInNewTab:newTab,children:element}):element;});export function standardButtonPropertyControls({defaultColor=\"#000000\",defaultFill=\"#F3F3F3\",defaultHoverFill=\"EDEDED\",hasDefaultBorder=true,loadingSpinner=false,defaultLoadingSpinnerLocation=\"center\",iconProps={}}){return{font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1.4}},color:{type:ControlType.Color,defaultValue:defaultColor},fill:fillProp({optional:true,color:defaultFill}),radius:{type:ControlType.BorderRadius,defaultValue:\"10px\"},padding:{type:ControlType.Padding,defaultValue:\"10px 15px 10px 15px\"},...iconProps,...loadingSpinner?{loadingSpinner:{type:ControlType.Object,title:\"Loading\",buttonTitle:\"Spinner\",controls:{size:{type:ControlType.Number,defaultValue:16,min:1,max:100,step:1},strokeWidth:{type:ControlType.Number,defaultValue:2,min:1,max:50,step:1,displayStepper:true,title:\"Stroke\"},color:{type:ControlType.Color,optional:true},rounded:{type:ControlType.Boolean,defaultValue:true},location:{type:ControlType.Enum,defaultValue:defaultLoadingSpinnerLocation,options:[\"left\",\"center\",\"right\"],optionTitles:[\"Left\",\"Center\",\"Right\"],displaySegmentedControl:true}}}}:{},border:{type:ControlType.Border,optional:true,defaultValue:hasDefaultBorder?{borderColor:\"rgba(0, 0, 0, 0.08)\",borderWidth:1,borderStyle:\"solid\"}:undefined},shadows:{type:ControlType.BoxShadow},bgBlur:{type:ControlType.Number,min:0,max:100,step:1,displayStepper:true,title:\"BG Blur\"},hover:stateStyleProp({defaultFill:defaultHoverFill}),transition:transitionProp(),hoverEvent:{type:ControlType.EventHandler,title:\"Hover\"},clickEvent:{type:ControlType.EventHandler,title:\"Click\"}};}export function useThentyForm(ref){const formRef=useRef(null);const[formState,setFormState]=useState(\"default\");const[formError,setFormError]=useState(null);useEffect(()=>{const onFormStateChange=event=>{if(Object.values(FormState).includes(event.detail)){setFormState(event.detail);}};const onError=event=>{setFormError(event.detail??null);};const updateFormRef=()=>{if(ref.current){const form=ref.current.closest(\"[data-thenty-form]\");formRef.current=form;if(form){const state=form.getAttribute(\"data-thenty-form-state\");if(Object.values(FormState).includes(state)){setFormState(state);}form.addEventListener(\"thenty-form-error\",onError);form.addEventListener(\"thenty-form-state-change\",onFormStateChange);}}};const onEvent=()=>{updateFormRef();};window.addEventListener(\"thenty-form-initialized\",onEvent);updateFormRef();return()=>{window.removeEventListener(\"thenty-form-initialized\",onEvent);if(formRef.current){formRef.current.removeEventListener(\"thenty-form-error\",onError);formRef.current.removeEventListener(\"thenty-form-state-change\",onFormStateChange);}};},[ref]);const fireFormEvent=(event,detail=null)=>{if(formRef.current){formRef.current.dispatchEvent(new CustomEvent(event,{detail}));}};const changeFormState=state=>{if(formRef.current){formRef.current.setAttribute(\"data-thenty-form-state\",state);fireFormEvent(\"thenty-form-state-change\",state);}};return{formRef,formState,formError,setFormState:changeFormState,fireFormEvent};}function LoadingSpinner({size=16,strokeWidth=2,color=\"#000000\",rounded=true,location=\"center\",padding=\"0px\"}){const[pt,pr,pb,pl]=parsePadding(padding);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:location===\"center\"?\"50%\":location===\"left\"?pl:undefined,right:location===\"right\"?pr:undefined,transform:location===\"center\"?\"translate(-50%, -50%)\":\"translateY(-50%)\",width:size,height:size,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(motion.div,{animate:{rotate:360},transition:{duration:1,repeat:Infinity,ease:\"linear\"},style:{position:\"absolute\",inset:0,borderRadius:\"50%\",background:`conic-gradient(transparent, ${color} 340deg)`,maskImage:`radial-gradient(transparent ${size/2-strokeWidth}px, white ${size/2-strokeWidth}px, white ${size/2}px, transparent ${size/2}px)`},children:strokeWidth<size/2&&rounded&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:(size-strokeWidth)/2,width:strokeWidth,height:strokeWidth,backgroundColor:color,borderRadius:\"50%\"}})})});}export function parsePadding(padding){if(typeof padding!==\"string\"){return[0,0,0,0];}const values=padding.split(\" \");const parsedValues=values.map(value=>parseInt(value.replace(\"px\",\"\"),10));switch(parsedValues.length){case 1:const p=parsedValues[0];return[p,p,p,p];case 4:return parsedValues;}return[0,0,0,0];}\nexport const __FramerMetadata__ = {\"exports\":{\"textOptions\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Icon\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"FormState\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"StandardButton\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Border\":{\"type\":\"reactComponent\",\"name\":\"Border\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"useThenty\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Events\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useThentyForm\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"standardButtonPropertyControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"stateStyleProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HideElement\":{\"type\":\"reactComponent\",\"name\":\"HideElement\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"compileHoverStyle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HiddenComponentLabel\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"textOptionsToStyles\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"parsePadding\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fillProp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"transitionProp\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"createBackground\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useSSO\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fetchUserData\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EmptyState\":{\"type\":\"reactComponent\",\"name\":\"EmptyState\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"hasProducts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useInstanceId\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HIDDEN_CLASS_NAME\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"styleLayer\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ALIGNMENT_MAP\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ThentyLogo\":{\"type\":\"reactComponent\",\"name\":\"ThentyLogo\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThentyShared.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,useEffect,useRef}from\"react\";import{FormState,Events,StandardButton,standardButtonPropertyControls,useThentyForm}from\"https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/WO0BY8LwVoqggEJBPHWk/ThentyShared.js\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 300\n * @framerDisableUnlink\n */export default function SubmitButton(props){const{defaultText,successText,errorText,successEvent,errorEvent,loadingEvent}=props;const ref=useRef(null);const[loading,setLoading]=useState(false);const{formState,setFormState,fireFormEvent}=useThentyForm(ref);useEffect(()=>{switch(formState){case FormState.Success:successEvent?.();setLoading(false);break;case FormState.Error:errorEvent?.();setLoading(false);break;case FormState.Loading:loadingEvent?.();setLoading(true);break;}},[formState]);const onClick=()=>{fireFormEvent(Events.SubmitButtonClick);};return /*#__PURE__*/_jsx(StandardButton,{ref:ref,...props,loading:loading,\"data-thenty-submit-button\":true,onClick:onClick,\"data-no-enter-focus\":true,children:formState===FormState.Success?successText||defaultText:formState===FormState.Error?errorText||defaultText:defaultText});}SubmitButton.displayName=\"Thenty Submit Button\";addPropertyControls(SubmitButton,{defaultText:{type:ControlType.String,placeholder:\"Button Text\",defaultValue:\"Submit\",title:\"Default\"},successText:{type:ControlType.String,placeholder:\"Success Text\",defaultValue:\"Success!\",title:\"Success\"},errorText:{type:ControlType.String,placeholder:\"Error Text\",defaultValue:\"Error\",title:\"Error\"},...standardButtonPropertyControls({defaultColor:\"#FFFFFF\",defaultFill:\"#0075FF\",defaultHoverFill:\"#1A81FF\",hasDefaultBorder:false,loadingSpinner:true}),successEvent:{type:ControlType.EventHandler,title:\"Success\"},errorEvent:{type:ControlType.EventHandler,title:\"Error\"},loadingEvent:{type:ControlType.EventHandler,title:\"Loading\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SubmitButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}", "import{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,withCSS}from\"framer\";import{useRef}from\"react\";import{textOptions,textOptionsToStyles,useThentyForm}from\"https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/WO0BY8LwVoqggEJBPHWk/ThentyShared.js\";const CANVAS_HIDDEN_CLASS_NAME=\"thenty-error-canvas-hidden\";const HIDDEN_CLASS_NAME=\"thenty-error-hidden\";function ThentyFormErrorMessageComponent(props){const{font,color,prefix,suffix,style,textOptions}=props;const Tag=props.tag||\"p\";const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const{formError}=useThentyForm(ref);let className=\"\";if(isCanvas){className=CANVAS_HIDDEN_CLASS_NAME;}else if(!formError){className=HIDDEN_CLASS_NAME;}return /*#__PURE__*/_jsxs(Tag,{ref:ref,className:className,style:{color,margin:0,whiteSpace:style?.width?undefined:\"nowrap\",fontWeight:400,textAlign:\"center\",...textOptionsToStyles(textOptions),...font,...style},children:[prefix,isCanvas?\"Error message\":formError,suffix]});}/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 300\n * @framerDisableUnlink\n */const ThentyFormErrorMessage=withCSS(ThentyFormErrorMessageComponent,[`[data-framer-component-container=\"true\"] div:has(> .${CANVAS_HIDDEN_CLASS_NAME}) { display: none !important; }`,`div:has(> .${HIDDEN_CLASS_NAME}) { display: none !important; }`,`.${HIDDEN_CLASS_NAME} { display: none !important; }`],\"\");export default ThentyFormErrorMessage;ThentyFormErrorMessage.displayName=\"Thenty Error Message\";addPropertyControls(ThentyFormErrorMessage,{font:{type:\"font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:12,lineHeight:1.4,textAlign:\"center\"}},color:{type:ControlType.Color,defaultValue:\"#FF5A6F\"},prefix:{type:ControlType.String,defaultValue:\"\"},suffix:{type:ControlType.String,defaultValue:\"\"},textOptions:textOptions()});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThentyFormErrorMessage\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}", "import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget,Link}from\"framer\";import{useRef,useEffect,useState}from\"react\";import{HiddenComponentLabel,FormState,Events,ThentyLogo,useThentyForm,useThenty}from\"https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/WO0BY8LwVoqggEJBPHWk/ThentyShared.js\";import{thentyAuth}from\"https://cdn.thenty.io/beta/thenty-sdk.min.js\";const formInputNames=[\"email_address\",\"password\",\"name\",\"conditions\"];const updateProfilePrefillInputs=[\"email_address\",\"name\"];var FormType;(function(FormType){FormType[\"SignUp\"]=\"signUp\";FormType[\"LogIn\"]=\"logIn\";FormType[\"ForgotPassword\"]=\"forgotPassword\";FormType[\"UpdateProfile\"]=\"updateProfile\";FormType[\"UpdatePassword\"]=\"updatePassword\";FormType[\"AcceptInvite\"]=\"acceptInvite\";})(FormType||(FormType={}));const FORM_TYPE_NAME={[\"signUp\"]:\"Sign Up\",[\"logIn\"]:\"Log In\",[\"forgotPassword\"]:\"Forgot Password\",[\"updateProfile\"]:\"Update Profile\",[\"updatePassword\"]:\"Update Password\",[\"acceptInvite\"]:\"Accept Invite\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */export default function ThentyForm({formType,productId,redirectLink,redirectDelay,prefillUrlParameters,successEvent,errorEvent,loadingEvent}){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const ref=useRef(null);const redirectLinkRef=useRef(null);const[redirectHref,setRedirectHref]=useState(redirectLink);const{formRef,setFormState,fireFormEvent}=useThentyForm(ref);const{authorization}=useThenty();const onError=error=>{setFormState(FormState.Error);if(typeof error===\"string\"){fireFormEvent(Events.Error,error);}else if(error instanceof Error){fireFormEvent(Events.Error,error.message);}errorEvent?.();};useEffect(()=>{const onSubmitButtonClick=async()=>{const form=formRef.current;if(!form){return;}const formData=collectFormData(form);setFormState(FormState.Loading);loadingEvent?.();let endpoint=\"\";let data=formData;let method=\"POST\";let updateAuthorization=false;let authValue=undefined;switch(formType){case\"signUp\":endpoint=`/auth/members/register`;data={...data,...getThentyFetchData(productId)};updateAuthorization=true;break;case\"logIn\":endpoint=`/auth/members/login`;updateAuthorization=true;break;case\"forgotPassword\":endpoint=`/auth/members/reset`;break;case\"updateProfile\":endpoint=`/members/${authorization?.member?.id}`;method=\"PUT\";authValue=authorization?.authorization?.key;if(!data.hasOwnProperty(\"email_address\")&&authorization?.member?.email){data={...data,email_address:authorization.member.email};}break;case\"updatePassword\":case\"acceptInvite\":const url=window?.location?new URL(window.location.toString()):null;const token=url?.searchParams?.get(\"token\");endpoint=`/auth/members/password/${token}`;method=\"PUT\";break;}if(endpoint){try{const responseBody=await thentyAuth.fetchGeneric(endpoint,method,data,authValue);if(updateAuthorization){thentyAuth.setAuthorization(responseBody);}setFormState(FormState.Success);successEvent?.();let hasRedirect=redirectLink?true:false;const responseRedirectUrl=responseBody?.redirect_url;if(responseRedirectUrl){const relativePath=getRelativePath(responseRedirectUrl);setRedirectHref(relativePath);hasRedirect=true;}if(hasRedirect&&redirectLinkRef.current){setTimeout(()=>{if(redirectLinkRef.current){redirectLinkRef.current.click();}},Math.max(redirectDelay*1e3,100));}}catch(error){onError(error);}}};const onGoogleSignIn=async()=>{try{const responseBody=await thentyAuth.fetchGeneric(`/oauth/members/code/google`,\"POST\",getThentyFetchData(productId));if(responseBody.redirect_url){window.open(toURLPath(responseBody.redirect_url),\"_self\");}}catch(error){onError(error);}};const handleEnterKey=e=>{if(e.key===\"Enter\"&&e.target.tagName!==\"TEXTAREA\"){e.preventDefault();const form=formRef.current;if(!form)return;const inputs=getInputsInForm(form);const currentIndex=inputs.indexOf(e.target);if(currentIndex===inputs.length-1){// If on last input, submit the form\nfireFormEvent(Events.SubmitButtonClick);}else if(currentIndex!==-1){// Focus next input\ninputs[currentIndex+1].focus();}}};if(ref.current){const form=ref.current.parentElement.parentElement;if(form){form.setAttribute(\"data-thenty-form\",\"true\");formRef.current=form;window.dispatchEvent(new Event(Events.FormInitialized));// Add keypress event listener\nform.addEventListener(\"keydown\",handleEnterKey);// Check URL parameters for prefill values\nif(prefillUrlParameters){const urlParams=new URLSearchParams(window?.location?.search);const nameParam=urlParams.get(prefillUrlParameters.name);if(nameParam){prefillInput(form,\"name\",nameParam);}const emailParam=urlParams.get(prefillUrlParameters.email);if(emailParam){prefillInput(form,\"email_address\",emailParam);}}form.addEventListener(Events.SubmitButtonClick,onSubmitButtonClick);form.addEventListener(Events.GoogleSignIn,onGoogleSignIn);// Pre-fill update profile fields\nif(formType===\"updateProfile\"&&!isCanvas){if(authorization?.member){setFormState(FormState.Default);for(const[key,value]of Object.entries(authorization.member)){if(updateProfilePrefillInputs.includes(key)||key.startsWith(\"custom:\")){prefillInput(form,key,value);}// Legacy fix for cognito change\nif(key===\"email\"){prefillInput(form,\"email_address\",value);}}}}}}return()=>{if(formRef.current){formRef.current.removeEventListener(Events.SubmitButtonClick,onSubmitButtonClick);formRef.current.removeEventListener(Events.GoogleSignIn,onGoogleSignIn);formRef.current.removeEventListener(\"keydown\",handleEnterKey);}};},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(HiddenComponentLabel,{ref:ref,\"data-thenty-form-manager\":true,children:[/*#__PURE__*/_jsx(ThentyLogo,{}),/*#__PURE__*/_jsxs(\"span\",{children:[FORM_TYPE_NAME[formType],\" Form\"]})]}),/*#__PURE__*/_jsx(Link,{ref:redirectLinkRef,href:redirectHref,openInNewTab:false,smoothScroll:false,children:/*#__PURE__*/_jsx(\"a\",{style:{display:\"none\"}})})]});}ThentyForm.displayName=\"Thenty Form Manager\";addPropertyControls(ThentyForm,{formType:{type:ControlType.Enum,defaultValue:\"signUp\",options:Object.keys(FORM_TYPE_NAME),optionTitles:Object.values(FORM_TYPE_NAME),displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},productId:{type:ControlType.String,defaultValue:\"\",placeholder:\"Thenty Product ID\",title:\"Product ID\",hidden:props=>props.formType!==\"signUp\"},redirectLink:{type:ControlType.Link,title:\"Redirect\"},redirectDelay:{type:ControlType.Number,defaultValue:0,min:0,step:.1,displayStepper:true,title:\"Delay\"},prefillUrlParameters:{type:ControlType.Object,optional:true,defaultValue:{name:\"name\",email:\"email_address\"},title:\"Prefill\",controls:{name:{type:ControlType.String,defaultValue:\"name\",title:\"Name\"},email:{type:ControlType.String,defaultValue:\"email_address\",title:\"Email\",description:\"Prefill the name and email fields with URL parameters.\"}}},successEvent:{type:ControlType.EventHandler,title:\"Success\"},errorEvent:{type:ControlType.EventHandler,title:\"Error\"},loadingEvent:{type:ControlType.EventHandler,title:\"Loading\"}});function collectFormData(form){const data={};const inputs=form.querySelectorAll(\"input, textarea, select\");let isValid=true;let errorMessage=\"\";for(let i=0;i<inputs.length;i++){const input=inputs[i];if(input&&input.name&&!input.disabled&&input.type!==\"submit\"&&input.type!==\"button\"&&(formInputNames.includes(input.name)||input.name.startsWith(\"custom:\"))){// Check if the field is required and empty\nif(input.hasAttribute(\"required\")&&!input.value.trim()){isValid=false;errorMessage=`${input.name} is required.`;input.focus();input.setCustomValidity(\"Please fill out this field.\");input.reportValidity();break;}else{input.setCustomValidity(\"\");}// Validate email address\nif(input.name===\"email_address\"&&input.value.trim()){if(!isValidEmail(input.value.trim())){isValid=false;errorMessage=\"Please enter a valid email address.\";input.focus();input.setCustomValidity(\"Please enter a valid email address.\");input.reportValidity();break;}}if(input.type===\"checkbox\"||input.type===\"radio\"){// For checkboxes and radio buttons, only include if checked\nif(input.checked){data[input.name]=input.value;}}else{// For all other inputs (text, number, etc.), add the value directly\ndata[input.name]=input.value;}}}return data;}function getThentyFetchData(productId){const urlParams=new URLSearchParams(window?.location?.search);const planId=urlParams?.get(\"planID\");const referral=window.Rewardful?.referral;return{...productId?{planIdOverride:productId}:{},...planId&&{planIdOverride:planId},...referral&&{rewardfulClientReferenceId:referral}};}function prefillInput(form,inputName,value){const input=form.querySelector(`\n\t\tinput[name=\"${inputName}\" i]:not([data-framerforms-no-prefill]),\n\t\tselect[name=\"${inputName}\" i]:not([data-framerforms-no-prefill]),\n\t\ttextarea[name=\"${inputName}\" i]:not([data-framerforms-no-prefill])`);if(input){if(input.tagName==\"INPUT\"&&input.getAttribute(\"type\")==\"hidden\"){if(input.hasAttribute(\"data-framerforms-set-value-event\")){input.dispatchEvent(new CustomEvent(\"framerFormsSetValue\",{bubbles:true,detail:value}));}}else{const elementType=input.tagName==\"INPUT\"?window.HTMLInputElement:input.tagName==\"TEXTAREA\"?window.HTMLTextAreaElement:input.tagName==\"SELECT\"?window.HTMLSelectElement:null;if(elementType){const nativeInputValueSetter=Object.getOwnPropertyDescriptor(elementType.prototype,\"value\").set;nativeInputValueSetter.call(input,value);input.dispatchEvent(new Event(\"input\",{bubbles:true}));}else{input.value=value;}}}}const getRelativePath=url=>{if(typeof window===\"undefined\"){return url;}// If it's already a relative path starting with '/', return it as is\nif(url.startsWith(\"/\")){return url;}// If it's an absolute URL, check if it's on the same domain\nif(url.startsWith(\"http\")){try{const urlObj=new URL(url);const currentDomain=window.location.origin;if(urlObj.origin===currentDomain){return urlObj.pathname+urlObj.search+urlObj.hash;}return url;}catch(e){// If URL is invalid, return the original input\nreturn url;}}// For any other case, add a leading '/'\nreturn`/${url}`;};const toURLPath=url=>{if(url.startsWith(\"http\")){return url;}if(url.startsWith(\"/\")){return url;}return`/${url}`;};function getInputsInForm(form){return Array.from(form.querySelectorAll(`input:not([type=\"hidden\"]):not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]):not([data-framerforms-set-value-event]),\n\t\t\ttextarea:not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]),\n\t\t\tselect:not([disabled]):not([name=\"\"]):not([tabindex=\"-1\"]),\n\t\t\tbutton:not([disabled]):not([tabindex=\"-1\"]):not([data-no-enter-focus])`)).filter(el=>window.getComputedStyle(el).display!==\"none\");}function isValidEmail(email){// Regular expression pattern for email validation\nconst emailRegex=/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;// Test the email against the regex pattern\nreturn emailRegex.test(email);}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThentyForm\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThentyForm.map"],
  "mappings": "iOAAqF,SAASA,GAAYC,EAAO,CACjH,IAAMC,EAAUC,GAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAGF,CAAM,CAAC,CAAC,CAAC,EACjDG,EAAaC,GAAU,CAC1B,OAAOA,GAAW,aAAYA,EAASA,EAASH,EAAU,KAAK,GAAGA,EAAU,MAAM,OAAO,OAAO,CAAC,GAAGA,EAAU,MAAM,GAAGG,CAAQ,CAAC,CAAE,EACjIC,EAAW,OAAOL,GAAS,SAAS,OAAO,OAAO,CAAC,GAAGA,CAAM,CAAC,EAAEA,EAC7DM,EAAa,IAAI,IACjBC,EAAcH,GAAU,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AAK,SAAS1B,GAAgBrB,EAAK,CAAC,OAAO,MAAM,KAAKA,EAAK,iBAAiB;AAAA;AAAA;AAAA,0EAGlI,CAAC,EAAE,OAAOkD,GAAIzC,EAAO,iBAAiByC,CAAE,EAAE,UAAU,MAAM,CAAE,CAAC,SAASR,GAAaS,EAAM,CAEnK,MADiB,6BACC,KAAKA,CAAK,CAAE",
  "names": ["createStore", "state1", "dataStore", "Data", "setDataStore", "newState", "storeState", "storeSetters", "setStoreState", "setter", "useStore", "state", "setState", "ye", "ue", "useObserveData", "useMultiStepFormStore", "createStore", "HIDDEN_CLASS_NAME", "CANVAS_HIDDEN_CLASS_NAME", "useInstanceId", "ae", "HideElementComponent", "Y", "ref", "p", "HIDDEN_CLASS_NAME", "HideElement", "withCSS", "HiddenComponentLabel", "text", "subtext", "children", "otherProps", "isCanvas", "RenderTarget", "id", "useInstanceId", "u", "CANVAS_HIDDEN_CLASS_NAME", "Border", "Icon", "image", "color", "size", "style", "defaultImage", "p", "Border", "width", "transition", "borderColor", "opacity", "motion", "createBackground", "fill", "on", "focused", "invalid", "onOff", "colorA", "colorB", "parsePadding", "padding", "parsedValues", "value", "fillProp", "focus", "optional", "hidden", "colorOn", "colorAOn", "colorBOn", "colorOff", "colorAOff", "colorBOff", "ControlType", "props", "borderProp", "defaultValue", "colorFocus", "colorInvalid", "shadowsProp", "PasswordInput", "props", "button", "shadows", "border", "id", "useInstanceId", "focused", "setFocused", "ye", "invalid", "setInvalid", "showPassword", "setShowPassword", "pt", "pr", "pb", "pl", "parsePadding", "onFocus", "onBlur", "onInvalid", "event", "onButtonClick", "u", "motion", "createBackground", "p", "Icon", "Border", "addPropertyControls", "ControlType", "fillProp", "borderProp", "shadowsProp", "logStyle", "ThentySDK", "window", "e", "t", "r", "o", "a", "n", "s", "thentyAuth", "FormState", "Events", "HIDDEN_CLASS_NAME", "CANVAS_HIDDEN_CLASS_NAME", "ALIGNMENT_MAP", "useThenty", "metaKey", "thentyAuth", "authKey", "authorization", "updateAuthorization", "ye", "siteMeta", "updateSiteMeta", "ue", "handleStorageChange", "event", "eventKey", "eventNewValue", "window", "clearQueryParams", "window", "newUrl", "useSSO", "planIdOverride", "firstRender", "setFirstRender", "ye", "isLoadingGoogle", "setIsLoadingGoogle", "ue", "searchParams", "thentyAuth", "HideElementComponent", "Y", "ref", "p", "HIDDEN_CLASS_NAME", "HideElement", "withCSS", "HiddenComponentLabel", "text", "subtext", "children", "otherProps", "RenderTarget", "u", "CANVAS_HIDDEN_CLASS_NAME", "Border", "border", "hoverState", "hover", "transition", "hoverBorder", "motion", "fillProp", "optional", "defaultValue", "hidden", "color", "colorA", "colorB", "ControlType", "props", "createBackground", "fill", "stateStyleProp", "defaultFill", "transitionProp", "Icon", "image", "size", "style", "defaultImage", "compileHoverStyle", "whileHover", "EmptyState", "title", "subtitle", "u", "p", "ThentyLogo", "textOptionsToStyles", "transform", "decoration", "balance", "userSelect", "textOptions", "ControlType", "StandardButton", "Y", "children", "href", "newTab", "fill", "color", "radius", "padding", "shadows", "hover", "border", "bgBlur", "transition", "font", "gap", "clickEvent", "hoverEvent", "style", "onClick", "loadingSpinner", "loading", "props", "ref", "MotionTag", "motion", "buttonHover", "setButtonHover", "ye", "element", "createBackground", "compileHoverStyle", "ALIGNMENT_MAP", "LoadingSpinner", "Border", "Link", "standardButtonPropertyControls", "defaultColor", "defaultFill", "defaultHoverFill", "hasDefaultBorder", "defaultLoadingSpinnerLocation", "iconProps", "fillProp", "stateStyleProp", "transitionProp", "useThentyForm", "formRef", "pe", "formState", "setFormState", "formError", "setFormError", "ue", "onFormStateChange", "event", "FormState", "onError", "updateFormRef", "form", "state", "onEvent", "window", "fireFormEvent", "detail", "size", "strokeWidth", "rounded", "location", "pt", "pr", "pb", "pl", "parsePadding", "parsedValues", "value", "SubmitButton", "props", "defaultText", "successText", "errorText", "successEvent", "errorEvent", "loadingEvent", "ref", "pe", "loading", "setLoading", "ye", "formState", "setFormState", "fireFormEvent", "useThentyForm", "ue", "FormState", "p", "StandardButton", "Events", "addPropertyControls", "ControlType", "standardButtonPropertyControls", "CANVAS_HIDDEN_CLASS_NAME", "HIDDEN_CLASS_NAME", "ThentyFormErrorMessageComponent", "props", "font", "color", "prefix", "suffix", "style", "textOptions", "Tag", "isCanvas", "RenderTarget", "ref", "pe", "formError", "useThentyForm", "className", "u", "textOptionsToStyles", "ThentyFormErrorMessage", "withCSS", "ThentyErrorMessage_default", "addPropertyControls", "ControlType", "formInputNames", "updateProfilePrefillInputs", "FormType", "FORM_TYPE_NAME", "ThentyForm", "formType", "productId", "redirectLink", "redirectDelay", "prefillUrlParameters", "successEvent", "errorEvent", "loadingEvent", "isCanvas", "RenderTarget", "ref", "pe", "redirectLinkRef", "redirectHref", "setRedirectHref", "ye", "formRef", "setFormState", "fireFormEvent", "useThentyForm", "authorization", "useThenty", "onError", "error", "FormState", "Events", "ue", "onSubmitButtonClick", "form", "formData", "collectFormData", "endpoint", "data", "method", "updateAuthorization", "authValue", "getThentyFetchData", "window", "responseBody", "thentyAuth", "hasRedirect", "responseRedirectUrl", "relativePath", "getRelativePath", "onGoogleSignIn", "toURLPath", "handleEnterKey", "e", "inputs", "getInputsInForm", "currentIndex", "urlParams", "nameParam", "prefillInput", "emailParam", "key", "value", "u", "l", "HiddenComponentLabel", "p", "ThentyLogo", "Link", "addPropertyControls", "ControlType", "props", "isValid", "errorMessage", "i", "input", "isValidEmail", "planId", "referral", "inputName", "elementType", "url", "urlObj", "currentDomain", "el", "email"]
}
