{"version":3,"file":"SupabaseForm.D5Lcppoo.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.useRef","React.useId","SVG","RichText","useState","useRef","firstName","lastName","_Fragment"],"sources":["https:/framerusercontent.com/modules/cSJbCtcZEDku1d2uPlKg/l6aUValwNAo755VLEStT/gWJtkyKsz.js","https:/framerusercontent.com/modules/aYKSWJMEJbbe5q6t4NDx/5qwc60IJnXFqsSW9MFhH/SupabaseForm.js"],"sourcesContent":["// Generated by Framer (6807895)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,SVG,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={bR_jB3GrI:{hover:true,pressed:true}};const cycleOrder=[\"bR_jB3GrI\",\"BN2FbR1Iu\",\"PXoEV4BNE\",\"sErUXseEk\",\"prfLXqllo\"];const serializationHash=\"framer-eV7DG\";const variantClassNames={BN2FbR1Iu:\"framer-v-1pyafof\",bR_jB3GrI:\"framer-v-2r5n3o\",prfLXqllo:\"framer-v-1nsg105\",PXoEV4BNE:\"framer-v-1ph4utt\",sErUXseEk:\"framer-v-1nyy617\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.2,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Default:\"bR_jB3GrI\",Disabled:\"PXoEV4BNE\",Error:\"prfLXqllo\",Loading:\"BN2FbR1Iu\",Success:\"sErUXseEk\"};const getProps=({height,id,text,width,...props})=>{return{...props,DCAtKBFik:text??props.DCAtKBFik??\"Submit\",variant:humanReadableVariantMap[props.variant]??props.variant??\"bR_jB3GrI\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,DCAtKBFik,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"bR_jB3GrI\",enabledGestures,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const ref1=React.useRef(null);const isDisplayed=()=>{if(baseVariant===\"sErUXseEk\")return true;return false;};const isDisplayed1=()=>{if(baseVariant===\"BN2FbR1Iu\")return false;return true;};const isDisplayed2=()=>{if(baseVariant===\"BN2FbR1Iu\")return true;return false;};const defaultLayoutId=React.useId();const componentViewport=useComponentViewport();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-2r5n3o\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"bR_jB3GrI\",ref:ref??ref1,style:{backgroundColor:\"var(--token-f5411055-20b6-4145-8a75-1e04bd414101, rgb(18, 18, 20))\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,opacity:1,...style},variants:{\"bR_jB3GrI-hover\":{backgroundColor:\"var(--token-ccde95f7-2208-4948-a76a-ef1d6a500b73, rgb(63, 63, 66))\",opacity:1},\"bR_jB3GrI-pressed\":{opacity:1},prfLXqllo:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1},PXoEV4BNE:{opacity:.5},sErUXseEk:{opacity:1}},...addPropertyOverrides({\"bR_jB3GrI-hover\":{\"data-framer-name\":undefined},\"bR_jB3GrI-pressed\":{\"data-framer-name\":undefined},BN2FbR1Iu:{\"data-framer-name\":\"Loading\"},prfLXqllo:{\"data-framer-name\":\"Error\"},PXoEV4BNE:{\"data-framer-name\":\"Disabled\"},sErUXseEk:{\"data-framer-name\":\"Success\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(SVG,{className:\"framer-se1azi\",\"data-framer-name\":\"Graphic\",fill:\"rgb(255, 255, 255)\",intrinsicHeight:24,intrinsicWidth:24,layoutDependency:layoutDependency,layoutId:\"lS04YzHUb\",svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"icon icon-tabler icons-tabler-outline icon-tabler-check\"><path d=\"M0 0h24v24H0z\" stroke=\"none\"/><path d=\"m5 12 5 5L20 7\"/></svg>',withExternalLayout:true}),isDisplayed1()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Submit\"})}),className:\"framer-1na53j0\",fonts:[\"Inter-SemiBold\"],layoutDependency:layoutDependency,layoutId:\"PNF2xnYHQ\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:DCAtKBFik,variants:{prfLXqllo:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({prfLXqllo:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})}),text:undefined},sErUXseEk:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Success\"})}),text:undefined}},baseVariant,gestureVariant)}),isDisplayed2()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-1emyzwt\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"f5Yiv5hEZ\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-uax0vr\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"NCqc8wWDT\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{BN2FbR1Iu:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-ge9ml2\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"ypj0qLaQz\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-eV7DG.framer-vx1pu4, .framer-eV7DG .framer-vx1pu4 { display: block; }\",\".framer-eV7DG.framer-2r5n3o { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: 46px; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 240px; }\",\".framer-eV7DG .framer-se1azi { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 24px); position: relative; width: 24px; }\",\".framer-eV7DG .framer-1na53j0 { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-eV7DG .framer-1emyzwt { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 20px); overflow: hidden; position: relative; width: 20px; }\",\".framer-eV7DG .framer-uax0vr { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-eV7DG .framer-ge9ml2 { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-eV7DG.framer-2r5n3o { gap: 0px; } .framer-eV7DG.framer-2r5n3o > * { margin: 0px; margin-left: calc(8px / 2); margin-right: calc(8px / 2); } .framer-eV7DG.framer-2r5n3o > :first-child { margin-left: 0px; } .framer-eV7DG.framer-2r5n3o > :last-child { margin-right: 0px; } }\",\".framer-eV7DG.framer-v-1pyafof.framer-2r5n3o, .framer-eV7DG.framer-v-1ph4utt.framer-2r5n3o, .framer-eV7DG.framer-v-1nyy617.framer-2r5n3o, .framer-eV7DG.framer-v-1nsg105.framer-2r5n3o { cursor: unset; }\",\".framer-eV7DG.framer-v-1pyafof .framer-uax0vr { overflow: hidden; }\",\".framer-eV7DG.framer-v-1nyy617 .framer-se1azi { order: 0; }\",\".framer-eV7DG.framer-v-1nyy617 .framer-1na53j0 { order: 1; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 46\n * @framerIntrinsicWidth 240\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"BN2FbR1Iu\":{\"layout\":[\"fixed\",\"fixed\"]},\"PXoEV4BNE\":{\"layout\":[\"fixed\",\"fixed\"]},\"sErUXseEk\":{\"layout\":[\"fixed\",\"fixed\"]},\"prfLXqllo\":{\"layout\":[\"fixed\",\"fixed\"]},\"pBgtzh4CM\":{\"layout\":[\"fixed\",\"fixed\"]},\"g2r7ZxXK4\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"DCAtKBFik\":\"text\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramergWJtkyKsz=withCSS(Component,css,\"framer-eV7DG\");export default FramergWJtkyKsz;FramergWJtkyKsz.displayName=\"Auth Form Button\";FramergWJtkyKsz.defaultProps={height:46,width:240};addPropertyControls(FramergWJtkyKsz,{variant:{options:[\"bR_jB3GrI\",\"BN2FbR1Iu\",\"PXoEV4BNE\",\"sErUXseEk\",\"prfLXqllo\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum},DCAtKBFik:{defaultValue:\"Submit\",displayTextArea:false,title:\"Text\",type:ControlType.String}});addFonts(FramergWJtkyKsz,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/1ZFS7N918ojhhd0nQWdj3jz4w.woff2\",weight:\"600\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramergWJtkyKsz\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"DCAtKBFik\\\":\\\"text\\\"}\",\"framerIntrinsicWidth\":\"240\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"46\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"BN2FbR1Iu\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"PXoEV4BNE\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"sErUXseEk\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"prfLXqllo\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"pBgtzh4CM\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"g2r7ZxXK4\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerDisplayContentsDiv\":\"false\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./gWJtkyKsz.map","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}from\"https://framerusercontent.com/modules/IGOKgEH5A4sN8XWUZRsC/Dt5dbRdwNli1tVIpsgcL/Shared.js\";import{useSupabase,supabaseClient,setSignedIn}from\"https://framerusercontent.com/modules/dXm8rDRqd1XKlbKiAEEC/29zgON2KtaqS2dTncLPm/SupabaseMain.js\";var FormType;(function(FormType){FormType[\"SignUp\"]=\"signUp\";FormType[\"LogIn\"]=\"logIn\";FormType[\"ForgotPassword\"]=\"forgotPassword\";FormType[\"UpdatePassword\"]=\"updatePassword\";FormType[\"Name\"]=\"name\";})(FormType||(FormType={}));const FORM_TYPE_NAMES={[\"signUp\"]:\"Sign Up\",[\"logIn\"]:\"Sign In\",[\"forgotPassword\"]:\"Forgot Password\",[\"updatePassword\"]:\"Update Password\",[\"name\"]:\"Update Name\"};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */export default function SupabaseForm(props){const isCanvas=RenderTarget.current()===RenderTarget.canvas;const{formType,redirectLink,googleRedirectLink}=props;const globalRedirectLink=redirectLink?.startsWith(\"/\")||redirectLink?.startsWith(\"./\")?`${window?.location?.origin}${redirectLink.replace(\"./\",\"/\")}`:redirectLink;const globalGoogleRedirectLink=googleRedirectLink?googleRedirectLink?.startsWith(\"/\")||googleRedirectLink?.startsWith(\"./\")?`${window?.location?.origin}${googleRedirectLink.replace(\"./\",\"/\")}`:googleRedirectLink:globalRedirectLink;const[formState,setFormState]=useState(FormState.Default);const[firstName,lastName,setName]=useSupabase(state=>[state.firstName,state.lastName,state.setName]);const ref=useRef(null);const redirectLinkRef=useRef(null);const updateFormState=state=>{setFormState(state);window.dispatchEvent(new CustomEvent(Events.FormStateChange,{detail:state}));};const onSuccess=()=>{updateFormState(FormState.Success);props.successEvent?.();if(redirectLink&&redirectLinkRef.current){setTimeout(()=>redirectLinkRef.current.click(),800);}};const onError=()=>{updateFormState(FormState.Error);props.errorEvent?.();};const fireErrorEvent=message=>{window.dispatchEvent(new CustomEvent(Events.Error,{detail:message}));onError();};useEffect(()=>{const onSubmitButtonClick=async()=>{const firstNameInput=document.querySelector(\"input[name='FirstName']\");const lastNameInput=document.querySelector(\"input[name='LastName']\");const emailInput=document.querySelector(\"input[name='Email']\");const passwordInput=document.querySelector(\"input[name='Password']\");const conditionsInput=document.querySelector(\"input[name='Conditions']\");const firstName=firstNameInput?.value||\"\";const lastName=lastNameInput?.value||\"\";const email=(emailInput?.value||\"\").toLowerCase();const password=passwordInput?.value||\"\";const conditions=conditionsInput?.checked||false;updateFormState(FormState.Loading);props.loadingEvent?.();switch(formType){case\"name\":{if(!firstName){fireErrorEvent(\"First name is required\");firstNameInput?.focus();return;}const{data:{user},error:getUserError}=await supabaseClient.auth.getUser();if(getUserError){console.error(getUserError);fireErrorEvent(\"Failed to get current user\");return;}const{error:updateError}=await supabaseClient.from(\"users\").update({first_name:firstName,last_name:lastName}).eq(\"user_id\",user.id);if(updateError){console.error(updateError);fireErrorEvent(\"Failed to update user details\");return;}setName(firstName,lastName);break;}case\"signUp\":{if(!firstName){fireErrorEvent(\"First name is required\");firstNameInput?.focus();return;}if(!email){fireErrorEvent(\"Email is required\");emailInput?.focus();return;}if(!isValidEmail(email)){fireErrorEvent(\"Please enter a valid email address\");emailInput?.focus();return;}if(!password){fireErrorEvent(\"Password is required\");passwordInput?.focus();return;}const passwordValidation=isValidPassword(password);if(!passwordValidation.isValid){fireErrorEvent(passwordValidation.message);passwordInput?.focus();return;}if(!conditions){fireErrorEvent(\"Please accept the terms and conditions\");conditionsInput?.focus();return;}const{error:signUpError,data:signUpData}=await supabaseClient.auth.signUp({email,password});if(signUpError){console.error(signUpError);fireErrorEvent(signUpError.message);return;}// Add user details to users table\nconst{error:updateError}=await supabaseClient.from(\"users\").update({first_name:firstName,last_name:lastName}).eq(\"user_id\",signUpData.user.id);if(updateError){console.error(updateError);fireErrorEvent(\"Failed to update user details\");return;}setSignedIn(true);setName(firstName,lastName);break;}case\"logIn\":{if(!email){fireErrorEvent(\"Email is required\");emailInput?.focus();return;}if(!isValidEmail(email)){fireErrorEvent(\"Please enter a valid email address\");emailInput?.focus();return;}if(!password){fireErrorEvent(\"Password is required\");passwordInput?.focus();return;}const{error:logInError}=await supabaseClient.auth.signInWithPassword({email,password});if(logInError){console.error(logInError);fireErrorEvent(logInError.message);return;}setSignedIn(true);break;}case\"forgotPassword\":{if(!email){fireErrorEvent(\"Email is required\");emailInput?.focus();return;}if(!isValidEmail(email)){fireErrorEvent(\"Please enter a valid email address\");emailInput?.focus();return;}const{error:forgotPasswordError}=await supabaseClient.auth.resetPasswordForEmail(email,{redirectTo:globalRedirectLink});if(forgotPasswordError){console.error(forgotPasswordError);fireErrorEvent(forgotPasswordError.message);return;}break;}case\"updatePassword\":{if(!password){fireErrorEvent(\"Password is required\");passwordInput?.focus();return;}const updatePasswordValidation=isValidPassword(password);if(!updatePasswordValidation.isValid){fireErrorEvent(updatePasswordValidation.message);passwordInput?.focus();return;}const{error:updatePasswordError}=await supabaseClient.auth.updateUser({password});if(updatePasswordError){console.error(updatePasswordError);fireErrorEvent(updatePasswordError.message);return;}break;}}onSuccess();};const onGoogleSignIn=async()=>{let{data,error}=await supabaseClient.auth.signInWithOAuth({provider:\"google\",options:{skipBrowserRedirect:true,redirectTo:globalGoogleRedirectLink}});if(error){console.error(error);fireErrorEvent(error.message);return;}if(data.url){window.location.href=data.url;}};window.addEventListener(Events.SubmitButtonClick,onSubmitButtonClick);window.addEventListener(Events.GoogleSignIn,onGoogleSignIn);return()=>{window.removeEventListener(Events.SubmitButtonClick,onSubmitButtonClick);window.removeEventListener(Events.GoogleSignIn,onGoogleSignIn);};},[]);useEffect(()=>{const handleEnterKey=e=>{if(e.key===\"Enter\"){const inputs=[document.querySelector(\"input[name='FirstName']\"),document.querySelector(\"input[name='LastName']\"),document.querySelector(\"input[name='Email']\"),document.querySelector(\"input[name='Password']\"),document.querySelector(\"input[name='Conditions']\")].filter(Boolean);const focusedInput=document.activeElement;const currentIndex=inputs.indexOf(focusedInput);if(currentIndex>=0){e.preventDefault();if(currentIndex<inputs.length-1){inputs[currentIndex+1].focus();}else{focusedInput.blur();window.dispatchEvent(new Event(Events.SubmitButtonClick));}}}};document.addEventListener(\"keydown\",handleEnterKey);return()=>document.removeEventListener(\"keydown\",handleEnterKey);},[]);useEffect(()=>{if(formType===\"name\"){const firstNameInput=document.querySelector(\"input[name='FirstName']\");const lastNameInput=document.querySelector(\"input[name='LastName']\");if(firstNameInput)firstNameInput.value=firstName||\"\";if(lastNameInput)lastNameInput.value=lastName||\"\";}},[formType,firstName,lastName]);// Add URL parameter handling\nuseEffect(()=>{if(isCanvas)return;const params=new URLSearchParams(window.location.search);let email=params.get(\"email\")?.substring(0,100);let name=params.get(\"name\")?.substring(0,100);if(!email&&!name&&formType===\"signUp\"){const faUserString=localStorage.getItem(\"fa-user\");if(faUserString){try{const faUser=JSON.parse(faUserString);email=faUser.email||\"\";name=faUser.first_name||\"\";}catch{console.warn(\"Unable to parse fa-user\");}}}if(email){const emailInput=document.querySelector(\"input[name='Email']\");if(emailInput)emailInput.value=email;}if(name){const firstNameInput=document.querySelector(\"input[name='FirstName']\");const lastNameInput=document.querySelector(\"input[name='LastName']\");const spaceIndex=name.indexOf(\" \");if(spaceIndex!==-1){// If name contains space, split into first and last name\nif(firstNameInput)firstNameInput.value=name.substring(0,spaceIndex);if(lastNameInput)lastNameInput.value=name.substring(spaceIndex+1);}else{// If no space, put entire name in first name field\nif(firstNameInput)firstNameInput.value=name;}}},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(HiddenComponentLabel,{ref:ref,\"data-supabase-form-manager\":true,children:/*#__PURE__*/_jsxs(\"span\",{style:{color:\"#000\"},children:[FORM_TYPE_NAMES[formType],\" Form Manager\"]})}),redirectLink&&/*#__PURE__*/_jsx(Link,{href:redirectLink,openInNewTab:props.newTab,smoothScroll:false,children:/*#__PURE__*/_jsx(\"a\",{ref:redirectLinkRef,style:{display:\"none\"}})})]});}SupabaseForm.displayName=\"Supabase Form Manager\";addPropertyControls(SupabaseForm,{formType:{type:ControlType.Enum,defaultValue:\"signUp\",options:[\"signUp\",\"logIn\",\"forgotPassword\",\"updatePassword\",\"name\"],optionTitles:[\"Sign Up\",\"Sign In\",\"Forgot Password\",\"Update Password\",\"Update Name\"],displaySegmentedControl:true,segmentedControlDirection:\"vertical\"},redirectLink:{type:ControlType.Link,title:\"Redirect\"},googleRedirectLink:{type:ControlType.Link,title:\"Google Redirect\",hidden:props=>props.formType!==\"signUp\"&&props.formType!==\"logIn\"},successEvent:{type:ControlType.EventHandler,title:\"Success\"},errorEvent:{type:ControlType.EventHandler,title:\"Error\"},loadingEvent:{type:ControlType.EventHandler,title:\"Loading\"}});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);}function isValidPassword(password){if(password.length<8||password.length>100){return{isValid:false,message:\"Password must be between 8 and 100 characters\"};}const hasUpperCase=/[A-Z]/.test(password);const hasLowerCase=/[a-z]/.test(password);const hasNumber=/[0-9]/.test(password);const hasSpecialChar=/[!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]/.test(password);if(!hasUpperCase||!hasLowerCase||!hasNumber||!hasSpecialChar){return{isValid:false,message:\"Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character\"};}return{isValid:true,message:\"\"};}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SupabaseForm\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"qkBAC2qB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,uDAA1xB,IAA+I,IAAkE,IAA4B,CAAM,EAAgB,EAAO,EAAO,IAAI,CAAO,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,GAAK,CAAC,CAAO,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,mBAAmB,UAAU,mBAAmB,UAAU,mBAAmB,CAA8L,EAAY,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,KAAK,QAAQ,CAAO,EAAU,CAAC,QAAQ,EAAE,OAAO,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,CAAO,GAAoB,EAAE,IAAI,oBAAoB,IAAU,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAsB,WAAS,CAAC,E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