{"version":3,"file":"GoogleSignInButton.DPoUIUky.mjs","names":["useState","HIDDEN_CLASS_NAME","CANVAS_HIDDEN_CLASS_NAME","useId","useState","useRef","useState","useRef","useRef","useState","_Fragment","HiddenComponentLabel","useRef","useState","Icon","__esmMin","window","ie","init_ssg_sandbox_shims","l","_e","p","c","J","init_jsx_runtime","ce","init_npm_react_18_3_1","de","motion","init_framer_motion_DhsWWWsN","addPropertyControls","init_framer_DxfB3JJo","Link","RenderTarget","ControlType","Data","useObserveData","withCSS","thentyAuth","init_thenty_sdk_min","Icon$1","init_ThentyShared","textOptionsToStyles","useSSO","HiddenComponentLabel$1","standardButtonPropertyControls","useThentyForm","FormState","StandardButton","useThenty","GoogleProductStateKey","ThentyLogo","Events","textOptions","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1_0","Icon","size","color","image","defaultImage","style","Border","width","createBackground","fill","onOff","on","invalid","focused","colorA","colorB","parsePadding","padding","parsedValues","value","fillProp","colorOn","props","colorOff","focus","colorAOn","colorBOn","colorAOff","colorBOff","borderProp","defaultValue","colorFocus","colorInvalid","shadowsProp","HIDDEN_CLASS_NAME$1","CANVAS_HIDDEN_CLASS_NAME$1","useInstanceId","HideElementComponent","HideElement","HiddenComponentLabel","init_FramerFormsShared","otherProps","isCanvas","children","text","subtext","PasswordInput","id","setFocused","setInvalid","showPassword","setShowPassword","pt","pr","pb","pl","onFocus","onBlur","onInvalid","event","onButtonClick","shadows","border","button","init_PasswordInput","SubmitButton","ref","loading","setLoading","formState","successEvent","errorEvent","loadingEvent","onClick","fireFormEvent","successText","defaultText","errorText","init_SubmitButton","ThentyFormErrorMessageComponent","Tag","className","CANVAS_HIDDEN_CLASS_NAME","formError","HIDDEN_CLASS_NAME","font","prefix","suffix","ThentyFormErrorMessage","init_ThentyErrorMessage","ThentyForm","redirectLinkRef","redirectHref","setRedirectHref","redirectLink","onError","setFormState","error","onSubmitButtonClick","form","formRef","formData","collectFormData","endpoint","data","method","updateAuthorization","authValue","formType","getThentyFetchData","productId","authorization","responseBody","hasRedirect","responseRedirectUrl","relativePath","getRelativePath","redirectDelay","onGoogleSignIn","toURLPath","handleEnterKey","inputs","getInputsInForm","currentIndex","prefillUrlParameters","urlParams","nameParam","prefillInput","emailParam","key","updateProfilePrefillInputs","FORM_TYPE_NAME","i","input","formInputNames","isValidEmail","planId","rewardfulReferral","promotekitReferral","inputName","elementType","el","email","FormType","init_ThentyForm","\"SignUp\"","\"LogIn\"","\"ForgotPassword\"","\"UpdateProfile\"","\"UpdatePassword\"","\"AcceptInvite\"","\"signUp\"","\"logIn\"","\"forgotPassword\"","\"updateProfile\"","\"updatePassword\"","\"acceptInvite\"","url","urlObj","currentDomain","GoogleSignInButton","iconElement","icon","isLoadingGoogle","init_GoogleSignInButton"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/DwWOdDzQZGCuvkNlbUjZ/p64C0n6xNEFY9NovSiJw/FramerFormsShared.js","https:/framerusercontent.com/modules/cXi65gCFHsrkQYXHFl4y/PPufQM6ADxvFkyrbemLG/PasswordInput.js","https:/framerusercontent.com/modules/e61m4Fbk5eP9eHvcc7Z8/H9AcDGcCkQB5BUQZdxUl/SubmitButton.js","https:/framerusercontent.com/modules/qERhjgPA4cB5k1EvYnU6/jP9hO16IwQv4zVHfJYdW/ThentyErrorMessage.js","https:/framerusercontent.com/modules/qWJhxYMaYl3NiGIZjw7a/hvyYHyyN5exkpGRJWsU5/ThentyForm.js","https:/framerusercontent.com/modules/t9j5mc1vzpVDeeZr1ShX/djEumoeG8cd4mVPKwBoV/GoogleSignInButton.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","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","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","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/k488EAt1FhWtVFD0n6vD/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\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any\"}},\"__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/k488EAt1FhWtVFD0n6vD/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\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__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,GoogleProductStateKey}from\"https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/k488EAt1FhWtVFD0n6vD/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&&!hasRedirect){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(productId&&localStorage){localStorage.setItem(GoogleProductStateKey,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 Override\",description:\"Note: This will override the redirect URL returned from thenty including stripe checkout links\"},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:\")||input.hasAttribute(\"required\"))){// 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 rewardfulReferral=window?.Rewardful?.referral;const promotekitReferral=window?.promotekit_referral;return{...productId?{planIdOverride:productId}:{},...planId&&{planIdOverride:planId},...rewardfulReferral&&{rewardfulReferral},...promotekitReferral&&{promotekitReferral}};}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 thentyAuth.assessPathForAccess(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 thentyAuth.assessPathForAccess(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 thentyAuth.assessPathForAccess(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\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useRef,useState}from\"react\";import{Events,Icon,StandardButton,standardButtonPropertyControls,useThentyForm,useSSO,GoogleProductStateKey}from\"https://framerusercontent.com/modules/diyk5889JEo4mM5y5sJr/k488EAt1FhWtVFD0n6vD/ThentyShared.js\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 300\n * @framerDisableUnlink\n */export default function GoogleSignInButton(props){const{text,icon,loadingEvent}=props;const ref=useRef(null);const[loading,setLoading]=useState(false);const{setFormState,fireFormEvent}=useThentyForm(ref);const urlParams=new URLSearchParams(window?.location?.search);const planId=localStorage?.getItem(GoogleProductStateKey)??urlParams?.get(\"planID\");const{isLoadingGoogle}=useSSO(planId);const onClick=()=>{fireFormEvent(Events.GoogleSignIn);setLoading(true);};const iconElement=icon&&/*#__PURE__*/_jsx(Icon,{image:icon.image,color:icon.color,size:icon.size,defaultImage:`url(\"data:image/svg+xml,${encodeURIComponent(`<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M22.56 12.25C22.56 11.47 22.49 10.72 22.36 10H12V14.255H17.92C17.665 15.63 16.89 16.795 15.725 17.575V20.335H19.28C21.36 18.42 22.56 15.6 22.56 12.25Z\" fill=\"#4285F4\"/><path d=\"M11.9999 23C14.9699 23 17.4599 22.015 19.2799 20.335L15.7249 17.575C14.7399 18.235 13.4799 18.625 11.9999 18.625C9.13492 18.625 6.70992 16.69 5.84492 14.09H2.16992V16.94C3.97992 20.535 7.69992 23 11.9999 23Z\" fill=\"#34A853\"/><path d=\"M5.845 14.09C5.625 13.43 5.5 12.725 5.5 12C5.5 11.275 5.625 10.57 5.845 9.91V7.06H2.17C1.425 8.545 1 10.225 1 12C1 13.775 1.425 15.455 2.17 16.94L5.845 14.09Z\" fill=\"#FBBC05\"/><path d=\"M11.9999 5.375C13.6149 5.375 15.0649 5.93 16.2049 7.02L19.3599 3.865C17.4549 2.09 14.9649 1 11.9999 1C7.69992 1 3.97992 3.465 2.16992 7.06L5.84492 9.91C6.70992 7.31 9.13492 5.375 11.9999 5.375Z\" fill=\"#EA4335\"/></svg>`)}\")`});return /*#__PURE__*/_jsxs(StandardButton,{ref:ref,...props,loading:loading||isLoadingGoogle,onClick:onClick,gap:icon?.gap||0,\"data-no-enter-focus\":true,children:[icon?.location===\"left\"&&iconElement,text,icon?.location===\"right\"&&iconElement]});}GoogleSignInButton.displayName=\"Google Sign In Button\";addPropertyControls(GoogleSignInButton,{text:{type:ControlType.String,defaultValue:\"Sign In with Google\"},...standardButtonPropertyControls({loadingSpinner:true,defaultLoadingSpinnerLocation:\"right\",iconProps:{icon:{type:ControlType.Object,optional:true,defaultValue:{size:20,gap:8},controls:{image:{type:ControlType.Image},color:{type:ControlType.Color,optional:true},size:{type:ControlType.Number,defaultValue:20,min:1,step:1,displayStepper:true},gap:{type:ControlType.Number,defaultValue:8,min:0,step:1,displayStepper:true},location:{type:ControlType.Enum,defaultValue:\"left\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],displaySegmentedControl:true}}}}}),loadingEvent:{type:ControlType.EventHandler,title:\"Loading\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleSignInButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,mgBAA8E,SAAgBsD,GAAY,EAAO,CACjH,IAAMC,EAAUpB,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAGqB,CAAM,CAAC,CAAC,CAAC,EACjDC,EAAa,GAAU,CAC1B,OAAOC,GAAW,aAAY,EAASA,EAASH,EAAU,KAAK,GAAG,EAAU,MAAM,OAAO,OAAO,CAAC,GAAGA,EAAU,MAAM,GAAGG,CAAQ,CAAC,CAAE,EACjIC,EAAW,OAAOH,GAAS,SAAS,OAAO,OAAO,CAAC,GAAGA,CAAM,CAAC,EAAEA,EAC7DI,kBAAa,IAAI,IACjBC,EAAc,GAAU,CAC3B,OAAOH,GAAW,aAAY,EAASA,EAASC,CAAU,G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