{"version":3,"file":"AccountTagRedirect.DNJ0JjsD.mjs","names":["z","useState","useCallback","useRef","useState","useRef","useState","useIsInitializing","useSession","useUser","useState","useRef","getSession","_Fragment","__esmMin","init_npm_react_18_3_1","ne","init_ssg_sandbox_shims","window","l","_e","Ha","c","J","init_jsx_runtime","ce","de","useAnimationControls","motion","init_framer_motion_DhsWWWsN","inferInitialRouteFromPath","init_framer_DDfsYcI0","RenderTarget","useRouter","withCSS","Data","useObserveData","ControlType","addPropertyControls","init_framerauth","W","x","In","Bn","Bs","init_v4","customFieldToZodSchema","field","schema","defaultValue","buttonHoverStyle","hover","button","dynamicBoxShadow","shadows","output","shadow","fieldModel","isBrowser","getURLSearchParam","VERSION","BaseForm","Spinner","buttonHoverControl","buttonHoverTransition","basePropertyControls","previewErrorMessage","previewSuccessMessage","formStatePropertyControls","privateBasePropertyControls","defaultStyle","containerStyles","errorStyle","successStyle","init_BaseForm","urlParams","paramName","hashParams","onSuccessCallback","onErrorCallback","error","setError","success","setSuccess","isSubmitting","setSubmitting","focus","setFocus","inputPadding","inputBorderRadius","inputBorderObject","inputFocusObject","inputShadowObject","inputHeight","inputFixedHeight","input","labelPadding","labelBorderRadius","labelBorderObject","labelShadowObject","label","buttonBorderObject","labelPaddingValue","inputPaddingValue","buttonPaddingValue","buttonPadding","router","onSuccess","data","link","path","hash","routeId","pathVariables","resolve","message","passwordVisibility","setPasswordVisibility","togglePasswordVisibility","prev","fieldName","fields","formRef","autoFocus","isInitializing","isDisabled","isFocus","name","handleFocus","event","handleBlur","renderTarget","previewState","preview","showSubmitting","shownError","shownSuccess","messageInitial","displayError","displaySuccess","messageStyle","base","messages","fill","color","handleSubmit","formData","formDataJSON","value","formControls","parsed","onSubmit","ok","inputFocusStylesFrom","inputFocusStylesTo","inputShadowStyles","inputBorderStyles","labelShadowStyles","labelBorderStyles","buttonShadowStyles","buttonShadow","buttonBorderStyles","secondaryButtonShadowStyles","secondaryButton","secondaryButtonBorderStyles","formVariants","inputVariants","requiredFlag","isRequired","baseInput","defaultValues","onInputChange","key","passwordInput","showPassword","checkboxInput","dateInput","timeInput","dateTimeInput","fieldsHTML","style","submitAddon","secondaryButtonAction","gap","noButtonStyles","props","createStore","dataStore","state1","setDataStore","newState","storeState","storeSetters","setStoreState","setter","useStore","state","setState","init_createStore","init_store_js__1_0","withPasswordRecoveryLink","root","host","setHost","setRecovery","useRecovery","canvas","mount","group","observer","ink","Component","withSignInOnly","withRecoveryPanel","onNavigation","target","anchor","url","withBackToSignIn","init_AccountPasswordRecovery","init_npm_react_dom_18_3_1","destinationFor","names","tags","tag","withAccountTagRedirect","sessionLoading","userLoading","setMessage","attempt","token","session","userId","user","onAccount","initializing","cancelled","currentAttempt","timeout","result","verified","destination","init_AccountTagRedirect"],"sources":["https:/framerusercontent.com/modules/tU0OhNHakDNO2P6BFnP9/JF2pkICGRXCmqkKCt0Ng/BaseForm.js","https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/EIpI3uYT3A8z6KRPL0PX/JssjXlFAhx1CthqBCT8f/AccountPasswordRecovery.js","https:/framerusercontent.com/modules/r6xwrYUQRLaVAzrBax4E/cLoDEC5lDHW6BPvmXawS/AccountTagRedirect.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion,useAnimationControls}from\"framer-motion\";import{useCallback,useEffect,useRef,useState}from\"react\";import{// @ts-ignore\naddPropertyControls,// @ts-ignore\nControlType,// @ts-ignore\ninferInitialRouteFromPath,// @ts-ignore\nRenderTarget,// @ts-ignore\nuseRouter,// @ts-ignore\nwithCSS}from\"framer\";import{z}from\"https://ga.jspm.io/npm:zod@4.0.14/v4/index.js\";export const fieldModel=z.object({type:z.enum([\"string\",\"number\",\"boolean\"]),name:z.string(),displayName:z.string().nullish(),description:z.string().nullish(),defaultValue:z.union([z.string(),z.number(),z.boolean()]).nullish(),format:z.enum([\"password\",\"email\",\"url\",\"phone\",\"date\",\"time\",\"datetime\"]).nullish(),required:z.boolean(),// Properties for overriding a fields (Framer overrides)\noverridable:z.boolean().default(true),render:z.boolean().default(true),hidden:z.boolean().default(false),placeholder:z.string().optional()});export const customFieldModel=fieldModel.extend({input:z.boolean()});export const safeParseCustomFields=fields=>{return z.array(customFieldModel).safeParse(fields);};export function customFieldToZodSchema(field){if(!field){return null;}if(!field.name){return null;}let schema;const defaultValue=field?.defaultValue;if(field.type===\"string\"){schema=z.string();if(field?.format){// Apply predefined format validations\nswitch(field.format){case\"email\":schema=z.email(\"Invalid email format. Example: user@example.com\");break;case\"url\":schema=z.url(\"Invalid URL format. Example: https://example.com\");break;case\"phone\":// Basic phone number validation (allows various international formats)\nschema=z.e164(\"Invalid phone number format. Example: +1234567890\");break;case\"date\":// ISO date format (YYYY-MM-DD)\nschema=z.iso.date(\"Invalid date format. Example: 2023-12-31\");break;case\"time\":// Time format (HH:MM or HH:MM:SS)\nschema=z.iso.time(\"Invalid time format. Example: 14:30 or 14:30:45\");break;case\"datetime\":// ISO datetime format\nschema=z.iso.datetime(\"Invalid datetime format. Example: 2023-12-31T14:30:00Z\");break;default:break;}}schema=field?.required===false?schema.nullish():schema.nullable();schema=schema.default(defaultValue?String(defaultValue):null);}else if(field.type===\"number\"){schema=z.coerce.number();schema=field?.required===false?schema.nullish():schema.nullable();schema=schema.default(defaultValue?Number(defaultValue):null);}else if(field.type===\"boolean\"){schema=z.coerce.boolean();schema=field?.required===false?schema.nullish():schema.nullable();schema=schema.default(defaultValue?Boolean(defaultValue):null);}else{// Skip unsupported types\nreturn null;}if(field?.description){schema=schema.meta({description:field.description});}return schema;}const isBrowser=()=>{return typeof window!==\"undefined\";};export const getURLSearchParam=paramName=>{if(!isBrowser){return null;}const urlParams=new URLSearchParams(window.location.search);if(urlParams.has(paramName)){return urlParams.get(paramName);}const hashParams=new URLSearchParams(window.location.hash.substring(1))// Remove the '#' part\n;if(hashParams.has(paramName)){return hashParams.get(paramName);}return null;};/**\n * Increment the number whenever shipping a new version to customers.\n * This will ensure that multiple versions of this component can exist\n * in the same project without css rules overlapping. Only use valid css class characters.\n */const VERSION=\"v2\";/**\n * BaseForm.tsx\n * By Joel Whitaker\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n */const BaseForm=withCSS(function BaseForm({label,input,button,link,gap,autoFocus=false,style,isInitializing=false,isDisabled=false,fields,defaultValues,onSuccess:onSuccessCallback,onError:onErrorCallback,onSubmit,onInputChange,submitAddon,secondaryButton,secondaryButtonAction,messages,preview}){const[error,setError]=useState(null);const[success,setSuccess]=useState(null);const[isSubmitting,setSubmitting]=useState(false);const[focus,setFocus]=useState(null);// Input Padding\nconst{padding:inputPadding,borderRadius:inputBorderRadius,borderObject:inputBorderObject,focusObject:inputFocusObject,shadowObject:inputShadowObject,height:inputHeight,fixedHeight:inputFixedHeight}=input;const{padding:labelPadding,borderRadius:labelBorderRadius,borderObject:labelBorderObject,shadowObject:labelShadowObject}=label;const{borderObject:buttonBorderObject,buttonShadow,buttonPadding}=button;const labelPaddingValue=labelPadding;const inputPaddingValue=inputPadding;const buttonPaddingValue=buttonPadding;const router=useRouter();const onSuccess=async(data,message)=>{/* Reset */setSubmitting(false);setError(null);setFocus(null);if(onSuccessCallback){onSuccessCallback(data);}else if(link){const[path,hash]=link.split(\"#\");const{routeId,pathVariables}=inferInitialRouteFromPath(router.routes,path);if(routeId){router.navigate(routeId,hash,pathVariables);// Wait for navigation to complete\nawait new Promise(resolve=>setTimeout(resolve,500));}}else if(message){setSuccess(message);}};const[passwordVisibility,setPasswordVisibility]=useState({});const togglePasswordVisibility=useCallback(fieldName=>{setPasswordVisibility(prev=>({...prev,[fieldName]:!prev[fieldName]}));},[]);// Visibility is keyed by field name, and different modes can reuse a\n// name (e.g. the profile form's set/change password both render\n// `new_password`), so a stale toggle would leak into the next mode.\nuseEffect(()=>{setPasswordVisibility({});},[fields]);const formRef=useRef(null);// Only on the live site and in preview, so the form doesn't steal\n// focus while designing. The form mounts once initializing ends.\nuseEffect(()=>{if(!autoFocus||isInitializing||isDisabled)return;if(RenderTarget.current()!==RenderTarget.preview)return;const fields=formRef.current?.querySelectorAll(\"input:not([type=hidden]):not([type=submit]):not([disabled]), textarea, select\");// Hidden fields sit in a display: none wrapper, so they have no\n// offsetParent.\nconst first=Array.from(fields??[]).find(field=>field.offsetParent!==null);// The form may sit below the fold; don't jump the page to it.\nfirst?.focus({preventScroll:true});},[autoFocus,isInitializing,isDisabled]);const isFocus=name=>{return focus===name;};const handleFocus=useCallback(event=>{setFocus(event.target.name);},[]);const handleBlur=useCallback(_event=>{setFocus(null);setError(null);setSuccess(null);},[]);// The Preview control only applies in the editor (the canvas and its\n// static exports, e.g. screenshots), so designers can style the\n// messages and spinner without triggering them for real.\nconst renderTarget=RenderTarget.current();const previewState=renderTarget===RenderTarget.canvas||renderTarget===RenderTarget.export?preview:undefined;const showSubmitting=isSubmitting||previewState===\"loading\";const shownError=previewState===\"error\"?previewErrorMessage:error;const shownSuccess=previewState===\"success\"?previewSuccessMessage:success;// The editor may render statically, without running the entrance\n// animations, so previewed states start fully shown.\nconst messageInitial=previewState?false:{scale:0,opacity:0,height:0};function displayError(){return!showSubmitting&&shownError;}function displaySuccess(){return!showSubmitting&&shownSuccess;}const messageStyle=(base,fill,color)=>({...base,...messages?.font,padding:messages?.padding??base.padding,backgroundColor:fill??base.backgroundColor,color:color??base.color,// The Radius control reads \"0px\" when untouched; treat that as\n    // \"match the inputs\" so existing forms keep their look.\n    borderRadius:!messages?.borderRadius||messages.borderRadius===\"0px\"?inputBorderRadius:messages.borderRadius});const handleSubmit=useCallback(async event=>{event.preventDefault();// Prevent submitting while submitting\nif(isSubmitting)return;setSubmitting(true);setError(null);setSuccess(null);// @ts-ignore - Linter unable to detect event.target\nconst formData=new FormData(event.target);const formDataJSON=Object.fromEntries(formData.entries());// Check that all required fields are filled\nfor(const field of fields){const value=formDataJSON[field.name];if(field.required===true&&!value){setError(`${field.displayName} is required.`);formControls.start(\"error\");setSubmitting(false);return false;}const schema=customFieldToZodSchema(field);if(schema){const parsed=schema.safeParse(value);if(!parsed.success&&parsed.error){const error=z.prettifyError(parsed.error);setError(error);formControls.start(\"error\");setSubmitting(false);return false;}}}if(typeof onSubmit===\"function\"){try{const{ok,message}=await onSubmit(formDataJSON);if(!ok){setSubmitting(false);setError(message);formControls.start(\"error\");if(onErrorCallback){onErrorCallback();}return false;}await onSuccess(formDataJSON,message);// @ts-ignore - Linter unable to detect event.target.reset\nevent.target.reset();setPasswordVisibility({});}catch(error){console.error(\"Error during onSubmit:\",error);if(onErrorCallback){onErrorCallback();}}finally{setSubmitting(false);}}else{setSubmitting(false);}},[onSubmit,isSubmitting,fields]);// Animation\nconst formControls=useAnimationControls();// Input Box Shadow Stylees\nconst inputFocusStylesFrom=input.focusObject?`inset 0 0 0 ${inputFocusObject.focusWidthFrom}px ${inputFocusObject.focusColor}`:null;const inputFocusStylesTo=input.focusObject?`inset 0 0 0 ${inputFocusObject.focusWidthTo}px ${inputFocusObject.focusColor}`:null;const inputShadowStyles=inputShadowObject||null;const inputBorderStyles=input.borderObject?`inset 0 0 0 ${inputBorderObject.borderWidth}px ${inputBorderObject.borderColor}`:null;// Label Border Styles\nconst labelShadowStyles=labelShadowObject||null;const labelBorderStyles=label.borderObject?`inset 0 0 0 ${labelBorderObject.borderWidth}px ${labelBorderObject.borderColor}`:null;// Button Border Styles\nconst buttonShadowStyles=buttonShadow||null;const buttonBorderStyles=buttonBorderObject?`inset 0 0 0 ${buttonBorderObject.borderWidth}px ${buttonBorderObject.borderColor}`:null;// Secondary Button Styles (rendered below the main button, opt-in)\nconst secondaryButtonShadowStyles=secondaryButton?.buttonShadow||null;const secondaryButtonBorderStyles=secondaryButton?.borderObject?`inset 0 0 0 ${secondaryButton.borderObject.borderWidth}px ${secondaryButton.borderObject.borderColor}`:null;// Shake or wiggle as error\nconst formVariants={default:{x:0},error:{x:[0,-4,4,0],transition:{duration:.2}}};const inputVariants={default:{boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},focused:{boxShadow:dynamicBoxShadow(inputFocusStylesTo,inputShadowStyles,inputBorderStyles)}};const requiredFlag=isRequired=>{if(isRequired){return /*#__PURE__*/_jsx(\"span\",{children:\"*\"});}return null;};const baseInput=(field,key)=>{if(field.hidden===true&&field.required===true){console.error(`FramerAuth -- Incorrect setup for ${field.displayName}: A required field cannot be hidden.`);}return /*#__PURE__*/_jsxs(\"div\",{style:{display:field.hidden===true?\"none\":\"flex\",flexDirection:\"column\"},children:[label.display&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:field.name,style:{padding:labelPaddingValue,marginBottom:\"0.25rem\",borderRadius:labelBorderRadius,fontSize:16,...label.font,background:label.fill,color:label.color,boxShadow:dynamicBoxShadow(labelShadowStyles,labelBorderStyles)},children:[field.displayName,label.displayAsterix&&requiredFlag(field.required)]}),field.description&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:label.color,opacity:.7,marginBottom:\"0.25rem\",...label.font},children:field.description}),/*#__PURE__*/_jsx(motion.input,{type:field.type,name:field.name,placeholder:field.placeholder,defaultValue:defaultValues?.[field.name],className:`${VERSION} framer-custom-input`,onFocus:handleFocus,onBlur:handleBlur,onChange:onInputChange?e=>onInputChange({name:field.name,type:field.type,value:e.target.value}):undefined,autoComplete:\"off\",autoCapitalize:\"off\",autoCorrect:\"off\",spellCheck:\"false\",style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...input.font,background:input.fill,height:inputHeight?\"auto\":inputFixedHeight,color:isDisabled?input.placeholderColor:input.color,opacity:isDisabled?.8:1,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:isFocus(field.name)?\"focused\":\"default\",transition:{duration:.3},disabled:isDisabled})]},key);};const passwordInput=(field,key)=>{if(field.hidden===true&&field.required===true){console.error(`FramerAuth -- Incorrect setup for ${field.displayName}: A required field cannot be hidden.`);}const showPassword=passwordVisibility[field.name]||false;return /*#__PURE__*/_jsxs(\"div\",{style:{display:field.hidden===true?\"none\":\"flex\",flexDirection:\"column\"},children:[label.display&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:field.name,style:{padding:labelPaddingValue,marginBottom:\"0.25rem\",borderRadius:labelBorderRadius,fontSize:16,...label.font,background:label.fill,color:label.color,boxShadow:dynamicBoxShadow(labelShadowStyles,labelBorderStyles)},children:[field.displayName,label.displayAsterix&&requiredFlag(field.required)]}),field.description&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:label.color,opacity:.7,marginBottom:\"0.25rem\",...label.font},children:field.description}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"flex\",flexDirection:\"row\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsx(motion.input,{type:showPassword?\"text\":\"password\",name:field.name,placeholder:field.placeholder,defaultValue:defaultValues?.[field.name],className:`${VERSION} framer-custom-input`,onFocus:handleFocus,onBlur:handleBlur,onChange:onInputChange?e=>onInputChange({name:field.name,type:field.type,value:e.target.value}):undefined,autoComplete:\"off\",autoCapitalize:\"off\",autoCorrect:\"off\",spellCheck:\"false\",style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...input.font,background:input.fill,height:inputHeight?\"auto\":inputFixedHeight,color:isDisabled?input.placeholderColor:input.color,opacity:isDisabled?.8:1,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:isFocus(field.name)?\"focused\":\"default\",transition:{duration:.3},disabled:isDisabled}),input.icon?.showPasswordVisibilityIcon===true&&/*#__PURE__*/_jsx(\"button\",{type:\"button\",tabIndex:999,onClick:()=>togglePasswordVisibility(field.name),style:{position:\"absolute\",right:0,top:0,bottom:0,display:\"flex\",alignItems:\"center\",padding:input.padding,background:\"transparent\",border:\"none\",color:input.icon.color||input.color,cursor:\"pointer\"},children:showPassword?// Material icons (visibility_off)\n// <svg\n//   xmlns=\"http://www.w3.org/2000/svg\"\n//   height=\"24\"\n//   viewBox=\"0 -960 960 960\"\n//   width=\"24\"\n//   fill=\"currentColor\"\n// >\n//   <path d=\"m644-428-58-58q9-47-27-88t-93-32l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z\" />\n// </svg>\n// Phosphor icons (eye-slash)\n/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z\"})}):// Material icons (visibility)\n// <svg\n//   xmlns=\"http://www.w3.org/2000/svg\"\n//   height=\"24\"\n//   viewBox=\"0 -960 960 960\"\n//   width=\"24\"\n//   fill=\"currentColor\"\n// >\n//   <path d=\"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z\" />\n// </svg>\n// Phosphor icons (eye)\n/*#__PURE__*/_jsx(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",fill:\"currentColor\",viewBox:\"0 0 256 256\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z\"})})})]})]},key);};const checkboxInput=(field,key)=>{if(field.hidden===true&&field.required===true){console.error(`FramerAuth -- Incorrect setup for ${field.displayName}: A required field cannot be hidden.`);}return /*#__PURE__*/_jsx(\"div\",{style:{display:field.hidden===true?\"none\":\"inherit\"},children:/*#__PURE__*/_jsxs(\"label\",{style:{display:\"flex\",alignItems:\"center\",fontSize:16,...label.font,background:label.fill,color:label.color},children:[/*#__PURE__*/_jsx(motion.input,{name:field.name,type:\"checkbox\",required:field.required,defaultChecked:defaultValues?.[field.name],disabled:isDisabled,onChange:onInputChange?e=>onInputChange({name:field.name,type:field.type,value:e.target.checked}):undefined,style:{margin:\"0px 8px 0px 4px\",opacity:isDisabled?.8:1}}),field.displayName]})},key);};const dateInput=(field,key)=>{if(field.hidden===true&&field.required===true){console.error(`FramerAuth -- Incorrect setup for ${field.displayName}: A required field cannot be hidden.`);}return /*#__PURE__*/_jsxs(\"div\",{style:{display:field.hidden===true?\"none\":\"flex\",flexDirection:\"column\"},children:[label.display&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:field.name,style:{padding:labelPaddingValue,marginBottom:\"0.25rem\",borderRadius:labelBorderRadius,fontSize:16,...label.font,background:label.fill,color:label.color,boxShadow:dynamicBoxShadow(labelShadowStyles,labelBorderStyles)},children:[field.displayName,label.displayAsterix&&requiredFlag(field.required)]}),field.description&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:label.color,opacity:.7,marginBottom:\"0.25rem\",...label.font},children:field.description}),/*#__PURE__*/_jsx(motion.input,{type:\"date\",name:field.name,placeholder:field.placeholder,defaultValue:defaultValues?.[field.name],className:`${VERSION} framer-custom-input`,onFocus:handleFocus,onBlur:handleBlur,onChange:onInputChange?e=>{// The date input already returns yyyy-mm-dd format\nonInputChange({name:field.name,type:\"date\",value:e.target.value});}:undefined,autoComplete:\"off\",style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...input.font,background:input.fill,height:inputHeight?\"auto\":inputFixedHeight,color:isDisabled?input.placeholderColor:input.color,opacity:isDisabled?.8:1,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:isFocus(field.name)?\"focused\":\"default\",transition:{duration:.3},disabled:isDisabled})]},key);};const timeInput=(field,key)=>{if(field.hidden===true&&field.required===true){console.error(`FramerAuth -- Incorrect setup for ${field.displayName}: A required field cannot be hidden.`);}return /*#__PURE__*/_jsxs(\"div\",{style:{display:field.hidden===true?\"none\":\"flex\",flexDirection:\"column\"},children:[label.display&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:field.name,style:{padding:labelPaddingValue,marginBottom:\"0.25rem\",borderRadius:labelBorderRadius,fontSize:16,...label.font,background:label.fill,color:label.color,boxShadow:dynamicBoxShadow(labelShadowStyles,labelBorderStyles)},children:[field.displayName,label.displayAsterix&&requiredFlag(field.required)]}),field.description&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:label.color,opacity:.7,marginBottom:\"0.25rem\",...label.font},children:field.description}),/*#__PURE__*/_jsx(motion.input,{type:\"time\",name:field.name,placeholder:field.placeholder,defaultValue:defaultValues?.[field.name],className:`${VERSION} framer-custom-input`,onFocus:handleFocus,onBlur:handleBlur,onChange:onInputChange?e=>{onInputChange({name:field.name,type:\"time\",value:e.target.value});}:undefined,autoComplete:\"off\",style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...input.font,background:input.fill,height:inputHeight?\"auto\":inputFixedHeight,color:isDisabled?input.placeholderColor:input.color,opacity:isDisabled?.8:1,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:isFocus(field.name)?\"focused\":\"default\",transition:{duration:.3},disabled:isDisabled})]},key);};const dateTimeInput=(field,key)=>{if(field.hidden===true&&field.required===true){console.error(`FramerAuth -- Incorrect setup for ${field.displayName}: A required field cannot be hidden.`);}return /*#__PURE__*/_jsxs(\"div\",{style:{display:field.hidden===true?\"none\":\"flex\",flexDirection:\"column\"},children:[label.display&&/*#__PURE__*/_jsxs(\"label\",{htmlFor:field.name,style:{padding:labelPaddingValue,marginBottom:\"0.25rem\",borderRadius:labelBorderRadius,fontSize:16,...label.font,background:label.fill,color:label.color,boxShadow:dynamicBoxShadow(labelShadowStyles,labelBorderStyles)},children:[field.displayName,label.displayAsterix&&requiredFlag(field.required)]}),field.description&&/*#__PURE__*/_jsx(\"div\",{style:{fontSize:14,color:label.color,opacity:.7,marginBottom:\"0.25rem\",...label.font},children:field.description}),/*#__PURE__*/_jsx(motion.input,{type:\"datetime-local\",name:field.name,placeholder:field.placeholder,defaultValue:defaultValues?.[field.name],className:`${VERSION} framer-custom-input`,onFocus:handleFocus,onBlur:handleBlur,onChange:onInputChange?e=>{onInputChange({name:field.name,type:\"datetime-local\",value:e.target.value});}:undefined,autoComplete:\"off\",style:{...defaultStyle,padding:inputPaddingValue,borderRadius:inputBorderRadius,fontSize:16,...input.font,background:input.fill,height:inputHeight?\"auto\":inputFixedHeight,color:isDisabled?input.placeholderColor:input.color,opacity:isDisabled?.8:1,boxShadow:dynamicBoxShadow(inputFocusStylesFrom,inputShadowStyles,inputBorderStyles)},variants:inputVariants,initial:false,animate:isFocus(field.name)?\"focused\":\"default\",transition:{duration:.3},disabled:isDisabled})]},key);};const fieldsHTML=fields?.map(field=>{if(field.type===\"boolean\"){return checkboxInput(field,field.name);}else if(field.type===\"string\"&&field.format===\"password\"&&!isDisabled){return passwordInput(field,field.name);}else if(field.type===\"string\"&&field.format===\"date\"&&!isDisabled){return dateInput(field,field.name);}else if(field.type===\"string\"&&field.format===\"time\"&&!isDisabled){return timeInput(field,field.name);}else if(field.type===\"string\"&&field.format===\"datetime\"&&!isDisabled){return dateTimeInput(field,field.name);}else{return baseInput(field,field.name);}});return /*#__PURE__*/_jsxs(motion.div,{style:{...style,...containerStyles,// @ts-ignore\n\"--framer-custom-placeholder-color\":input.placeholderColor},variants:formVariants,animate:formControls,children:[isInitializing&&/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",paddingTop:\"2rem\",paddingBottom:\"2rem\"},children:/*#__PURE__*/_jsx(Spinner,{shouldAppear:true,padding:inputPadding,color:input.color})}),!isInitializing&&/*#__PURE__*/_jsxs(\"form\",{ref:formRef,style:{width:\"100%\",height:\"auto\",display:\"flex\",position:\"relative\",flexDirection:\"column\",color:button.color,gap:gap},onSubmit:handleSubmit,method:\"POST\",children:[fieldsHTML,submitAddon,secondaryButtonAction&&!isDisabled&&/*#__PURE__*/_jsx(motion.button,{type:\"button\",onClick:secondaryButtonAction.onClick,style:{WebkitAppearance:\"none\",appearance:\"none\",width:\"100%\",height:\"auto\",outline:\"none\",border:\"none\",cursor:\"pointer\",padding:secondaryButton?.buttonPadding,borderRadius:secondaryButton?.borderRadius===undefined||secondaryButton?.borderRadius===null?inputBorderRadius:secondaryButton.borderRadius,fontSize:16,...secondaryButton?.buttonFont,background:secondaryButton?.fill,color:secondaryButton?.color,boxShadow:dynamicBoxShadow(secondaryButtonShadowStyles,secondaryButtonBorderStyles)},whileHover:buttonHoverStyle(secondaryButton),transition:buttonHoverTransition,children:secondaryButtonAction.active?secondaryButton?.cancelLabel||\"Cancel\":secondaryButton?.label||\"Change Password\"}),!button.shouldAppear&&showSubmitting&&/*#__PURE__*/_jsx(Spinner,{shouldAppear:button.shouldAppear,padding:inputPadding,color:input.color,skipEntrance:Boolean(previewState)}),/*#__PURE__*/_jsxs(\"div\",{children:[button.shouldAppear&&!isDisabled&&/*#__PURE__*/_jsx(\"div\",{style:{display:button.align===\"stretch\"?\"block\":\"flex\",justifyContent:button.align===\"center\"?\"center\":button.align===\"start\"?\"flex-start\":\"flex-end\",position:\"relative\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:button.align===\"stretch\"?\"block\":\"inline-flex\"},children:[/*#__PURE__*/_jsx(motion.input,{type:\"submit\",value:button.label,style:{...defaultStyle,width:button.align===\"stretch\"?\"100%\":\"auto\",height:inputHeight?\"100%\":inputFixedHeight,cursor:\"pointer\",padding:buttonPaddingValue,borderRadius:button.borderRadius===undefined||button.borderRadius===null?inputBorderRadius:button.borderRadius,fontSize:16,...button.buttonFont,background:button.fill,color:showSubmitting?\"transparent\":button.color,zIndex:1,boxShadow:dynamicBoxShadow(buttonShadowStyles,buttonBorderStyles)},// No hover while submitting, so the\n// hidden label stays hidden behind the spinner.\nwhileHover:isSubmitting?undefined:buttonHoverStyle(button),transition:buttonHoverTransition}),showSubmitting&&/*#__PURE__*/_jsx(\"div\",{style:{borderRadius:inputBorderRadius,position:\"absolute\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:button.align===\"stretch\"?\"100%\":\"auto\",height:\"100%\",inset:0,zIndex:2,color:button.color},children:/*#__PURE__*/_jsx(Spinner,{color:button.color,skipEntrance:Boolean(previewState)})})]})}),/*#__PURE__*/_jsx(motion.div,{animate:{scale:displaySuccess()?1:0,opacity:displaySuccess()?1:0,height:displaySuccess()?\"auto\":0},initial:messageInitial,transition:{duration:.5},children:/*#__PURE__*/_jsx(\"div\",{style:{paddingTop:gap},children:/*#__PURE__*/_jsx(\"div\",{style:messageStyle(successStyle,messages?.successFill,messages?.successColor),children:shownSuccess})})}),/*#__PURE__*/_jsx(motion.div,{animate:{scale:displayError()?1:0,opacity:displayError()?1:0,height:displayError()?\"auto\":0},initial:messageInitial,transition:{duration:.5},children:/*#__PURE__*/_jsx(\"div\",{style:{paddingTop:gap},children:/*#__PURE__*/_jsx(\"div\",{style:messageStyle(errorStyle,messages?.errorFill,messages?.errorColor),children:shownError})})})]})]})]});},[`.${VERSION}.framer-custom-input::placeholder { color: var(--framer-custom-placeholder-color) !important; }`]);export const Spinner=props=>{const noButtonStyles=!props.shouldAppear?{position:\"absolute\",top:`calc(50% - 8px)`,right:props.padding?.split(\" \").length===1?props.padding:props.padding?.split(\" \")[1]}:{};return /*#__PURE__*/_jsx(motion.div,{// @ts-ignore\nstyle:{height:16,width:16,...noButtonStyles},initial:{rotate:0},animate:{rotate:360},transition:{duration:1,repeat:Infinity},children:/*#__PURE__*/_jsx(motion.div,{initial:props.skipEntrance?false:{scale:0},animate:{scale:1},children:/*#__PURE__*/_jsxs(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"16\",height:\"16\",style:{fill:\"currentColor\",color:props.color},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M 8 0 C 3.582 0 0 3.582 0 8 C 0 12.419 3.582 16 8 16 C 12.418 16 16 12.419 16 8 C 15.999 3.582 12.418 0 8 0 Z M 8 14 C 4.687 14 2 11.314 2 8 C 2 4.687 4.687 2 8 2 C 11.314 2 14 4.687 14 8 C 14 11.314 11.314 14 8 14 Z\",fill:\"currentColor\",opacity:\"0.2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M 8 0 C 12.418 0 15.999 3.582 16 8 C 16 8 16 9 15 9 C 14 9 14 8 14 8 C 14 4.687 11.314 2 8 2 C 4.687 2 2 4.687 2 8 C 2 8 2 9 1 9 C 0 9 0 8 0 8 C 0 3.582 3.582 0 8 0 Z\",fill:\"currentColor\"})]})})});};/**\n * Optional hover state for form buttons. Unset (the default) means the\n * button has no hover state. Either color can be left empty to keep the\n * button's normal value for it.\n */const buttonHoverControl={type:ControlType.Object,title:\"Hover\",optional:true,controls:{fill:{title:\"Fill\",type:ControlType.Color,optional:true},color:{title:\"Text\",type:ControlType.Color,optional:true}}};const buttonHoverTransition={duration:.2,ease:\"easeOut\"};function buttonHoverStyle(button){const hover=button?.hover;if(!hover||!hover.fill&&!hover.color){return undefined;}return{...hover.fill?{background:hover.fill}:{},...hover.color?{color:hover.color}:{}};}export const basePropertyControls={label:{title:\"Label\",type:ControlType.Object,controls:{display:{type:ControlType.Boolean,title:\"Show\",defaultValue:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},displayAsterix:{title:\"Asterix\",type:ControlType.Boolean,defaultValue:false},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"transparent\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#000\"},padding:{title:\"Padding\",type:ControlType.Padding},borderRadius:{title:\"Radius\",type:ControlType.BorderRadius},shadowObject:{type:ControlType.BoxShadow,title:\"Shadow\",optional:true}}},input:{title:\"Input\",type:ControlType.Object,controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},placeholderColor:{title:\"Placeholder\",type:ControlType.Color,defaultValue:\"rgba(0, 0, 0, 0.3)\"},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#EBEBEB\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#000\"},height:{title:\"Height\",type:ControlType.Boolean,enabledTitle:\"Auto\",disabledTitle:\"Fixed\"},fixedHeight:{title:\" \",type:ControlType.Number,displayStepper:true,min:0,defaultValue:50,hidden:props=>props.height},padding:{title:\"Padding\",type:ControlType.Padding,defaultValue:\"15px\"},borderRadius:{title:\"Radius\",type:ControlType.BorderRadius,defaultValue:\"8px\"},focusObject:{type:ControlType.Object,title:\"Focus\",optional:true,controls:{focusWidthFrom:{title:\"From\",type:ControlType.Number,displayStepper:true,defaultValue:0},focusWidthTo:{title:\"To\",type:ControlType.Number,displayStepper:true,defaultValue:2},focusColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"#09F\"}}},borderObject:{type:ControlType.Object,title:\"Border\",optional:true,controls:{borderWidth:{title:\"Width\",type:ControlType.Number,displayStepper:true,defaultValue:1},borderColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"rgba(200,200,200,0.5)\"}}},shadowObject:{type:ControlType.BoxShadow,title:\"Shadow\",optional:true}}},button:{title:\"Button\",type:ControlType.Object,controls:{shouldAppear:{title:\"Show\",type:ControlType.Boolean,defaultValue:true},align:{title:\"Align\",type:ControlType.Enum,options:[\"start\",\"center\",\"end\",\"stretch\"],optionTitles:[\"Start\",\"Center\",\"End\",\"Stretch\"],defaultValue:\"stretch\"},label:{title:\"Label\",type:ControlType.String,defaultValue:\"Save Changes\"},buttonFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#333\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#FFF\"},buttonPadding:{title:\"Padding\",type:ControlType.Padding,defaultValue:\"15px\"},borderRadius:{title:\"Radius\",type:ControlType.BorderRadius,defaultValue:\"8px\"},borderObject:{type:ControlType.Border,title:\"Border\",optional:true,defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"rgba(200,200,200,0.5)\"}},buttonShadow:{type:ControlType.BoxShadow,title:\"Shadow\",optional:true},hover:buttonHoverControl}},link:{title:\"Link\",type:ControlType.String,defaultValue:\"\"},autoFocus:{title:\"Auto Focus\",type:ControlType.Boolean,defaultValue:false},gap:{title:\"Gap\",type:ControlType.Number,displayStepper:true,min:0,defaultValue:10},onSuccess:{title:\"Success\",type:ControlType.EventHandler},onError:{title:\"Error\",type:ControlType.EventHandler}};const previewErrorMessage=\"Something went wrong. Please try again.\";const previewSuccessMessage=\"Success! You're all set.\";/**\n * Message styling and the canvas Preview state. Each form spreads these after\n * its own controls so they come last in the property panel.\n */export const formStatePropertyControls={messages:{title:\"Messages\",type:ControlType.Object,controls:{font:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},errorFill:{title:\"Error Fill\",type:ControlType.Color,defaultValue:\"#FFE0DD\"},errorColor:{title:\"Error Text\",type:ControlType.Color,defaultValue:\"#B42318\"},successFill:{title:\"Success Fill\",type:ControlType.Color,defaultValue:\"#E2F7E7\"},successColor:{title:\"Success Text\",type:ControlType.Color,defaultValue:\"#117033\"},padding:{title:\"Padding\",type:ControlType.Padding,defaultValue:\"16px\"},borderRadius:{title:\"Radius\",type:ControlType.BorderRadius}}},preview:{title:\"Preview\",type:ControlType.Enum,options:[\"default\",\"loading\",\"error\",\"success\"],optionTitles:[\"Default\",\"Loading\",\"Error\",\"Success\"],defaultValue:\"default\"}};/**\n * Opt-in property control for the secondary button. It is intentionally kept\n * out of `basePropertyControls` so it only appears on forms that need it\n * (e.g. the Profile form's change-password toggle). Spread it into a form's\n * export controls as `secondaryButton: secondaryButtonControl`.\n */export const secondaryButtonControl={title:\"Secondary\",type:ControlType.Object,controls:{label:{title:\"Label\",type:ControlType.String,defaultValue:\"Change Password\"},cancelLabel:{title:\"Cancel\",type:ControlType.String,defaultValue:\"Cancel\"},buttonFont:{type:ControlType.Font,title:\"Font\",controls:\"extended\"},fill:{title:\"Fill\",type:ControlType.Color,defaultValue:\"#FFF\"},color:{title:\"Text\",type:ControlType.Color,defaultValue:\"#333\"},buttonPadding:{title:\"Padding\",type:ControlType.Padding,defaultValue:\"15px\"},borderRadius:{title:\"Radius\",type:ControlType.BorderRadius,defaultValue:\"8px\"},borderObject:{type:ControlType.Border,title:\"Border\",optional:true,defaultValue:{borderWidth:1,borderStyle:\"solid\",borderColor:\"rgba(200,200,200,0.5)\"}},buttonShadow:{type:ControlType.BoxShadow,title:\"Shadow\",optional:true},hover:buttonHoverControl}};const privateBasePropertyControls={};// @ts-ignore\naddPropertyControls(BaseForm,{...basePropertyControls,...privateBasePropertyControls,...formStatePropertyControls});const defaultStyle={WebkitAppearance:\"none\",appearance:\"none\",width:\"100%\",height:\"auto\",outline:\"none\",border:\"none\"};const containerStyles={position:\"relative\",width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};const errorStyle={padding:\"1rem\",color:\"#B42318\",fontSize:\"16px\",backgroundColor:\"#FFE0DD\"};const successStyle={padding:\"1rem\",color:\"#117033\",fontSize:\"16px\",backgroundColor:\"#E2F7E7\"};function dynamicBoxShadow(...shadows){const output=[];shadows.forEach(shadow=>shadow&&output.push(shadow));return output.join(\", \");}export default BaseForm;\nexport const __FramerMetadata__ = {\"exports\":{\"FormDataJSON\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"customFieldToZodSchema\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fieldModel\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Spinner\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"formStatePropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"secondaryButtonControl\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"safeParseCustomFields\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"customFieldModel\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"BaseForm\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\"}},\"Field\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getURLSearchParam\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"basePropertyControls\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CustomField\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BaseForm.map","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{forwardRef,useEffect,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";import{RenderTarget}from\"framer\";// @ts-ignore Existing Framer store module.\nimport{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";const useRecovery=createStore({open:false});const ink=\"var(--token-881fd0a8-04fc-4327-96b6-424db6ef77de)\";export function withPasswordRecoveryLink(Component){return /*#__PURE__*/forwardRef(function PasswordRecoveryLink(props,ref){const root=useRef(null);const[host,setHost]=useState(null);const[,setRecovery]=useRecovery();const canvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(canvas||!root.current)return;const mount=()=>{const input=root.current?.querySelector('input[name=\"password\"]');const group=input?.parentElement?.parentElement;if(group&&group.tagName!==\"FORM\")setHost(group);};mount();const observer=new MutationObserver(mount);observer.observe(root.current,{childList:true,subtree:true});return()=>observer.disconnect();},[canvas]);const link=/*#__PURE__*/_jsx(\"button\",{type:\"button\",onClick:()=>setRecovery({open:true}),style:{alignSelf:\"flex-end\",display:\"block\",margin:0,padding:\"8px 0 2px\",background:\"transparent\",border:0,color:ink,fontFamily:\"Varela Round\",fontSize:13,lineHeight:1.5,textDecoration:\"underline\",textUnderlineOffset:3,cursor:\"pointer\"},children:\"Forgot or need a password?\"});return /*#__PURE__*/_jsxs(\"div\",{ref:root,style:{width:\"100%\",minWidth:0},children:[/*#__PURE__*/_jsx(Component,{...props,ref:ref}),canvas?link:host?/*#__PURE__*/createPortal(link,host):null]});});}export function withSignInOnly(Component){return /*#__PURE__*/forwardRef(function SignInOnly(props,ref){const[state]=useRecovery();return state.open?null:/*#__PURE__*/_jsx(Component,{...props,ref:ref});});}export function withRecoveryPanel(Component){return /*#__PURE__*/forwardRef(function RecoveryPanel(props,ref){const[state,setRecovery]=useRecovery();const canvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(canvas)return;setRecovery({open:false});// A navigation to Account must always start with sign-in, even\n// when Framer retains this page during client-side navigation.\nconst onNavigation=event=>{const target=event.target;const anchor=target instanceof Element?target.closest(\"a[href]\"):null;if(!anchor)return;const url=new URL(anchor.getAttribute(\"href\")||\"\",window.location.href);if(url.origin===window.location.origin&&url.pathname.replace(/\\/$/,\"\")===\"/account\"){setRecovery({open:false});}};document.addEventListener(\"click\",onNavigation,true);return()=>{document.removeEventListener(\"click\",onNavigation,true);setRecovery({open:false});};},[canvas]);return state.open||canvas?/*#__PURE__*/_jsx(Component,{...props,ref:ref}):null;});}export function withBackToSignIn(Component){return /*#__PURE__*/forwardRef(function BackToSignIn(props,ref){const[,setRecovery]=useRecovery();return /*#__PURE__*/_jsx(Component,{...props,ref:ref,type:\"button\",onTap:()=>setRecovery({open:false}),onClick:()=>setRecovery({open:false})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPasswordRecoveryLink\":{\"type\":\"reactHoc\",\"name\":\"withPasswordRecoveryLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withBackToSignIn\":{\"type\":\"reactHoc\",\"name\":\"withBackToSignIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRecoveryPanel\":{\"type\":\"reactHoc\",\"name\":\"withRecoveryPanel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSignInOnly\":{\"type\":\"reactHoc\",\"name\":\"withSignInOnly\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AccountPasswordRecovery.map","import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef,useState}from\"react\";import{RenderTarget}from\"framer\";// @ts-ignore Existing project FrameAuth V2 runtime CDN module.\nimport{getSession,useIsInitializing,useSession,useUser}from\"https://cdn.jsdelivr.net/npm/@framerauth/sdk@2/dist/framerauth.mjs\";function destinationFor(tags){const names=new Set(Array.isArray(tags)?tags.filter(tag=>tag&&typeof tag.name===\"string\").map(tag=>tag.name):[]);if(names.has(\"Family Memory\"))return\"/family-memory\";if(names.has(\"Dinner Rescue\"))return\"/rescue\";return\"/account\";}export function withAccountTagRedirect(Component){return /*#__PURE__*/forwardRef(function AccountTagRedirect(props,ref){const{initializing}=useIsInitializing();const{session,loading:sessionLoading}=useSession();const{user,loading:userLoading}=useUser();const[message,setMessage]=useState(\"\");const attempt=useRef(0);const token=session?.token;const userId=user?.id;const canvas=RenderTarget.current()===RenderTarget.canvas;useEffect(()=>{if(canvas||typeof window===\"undefined\")return;const onAccount=()=>window.location.pathname.replace(/\\/$/,\"\")===\"/account\";if(!onAccount())return;if(initializing||sessionLoading||userLoading){setMessage(\"\");return;}if(!token||!userId){setMessage(\"\");return;}let cancelled=false;const currentAttempt=++attempt.current;setMessage(\"Checking your account…\");const timeout=window.setTimeout(()=>{if(!cancelled&&attempt.current===currentAttempt){cancelled=true;setMessage(\"We couldn't confirm your account just now. Please reload this page to try again.\");}},15e3);void(async()=>{try{const result=await getSession();if(cancelled||attempt.current!==currentAttempt||!onAccount())return;const verified=result?.data;if(result?.error||!verified?.session?.token||!verified?.user?.id||verified.user.id!==userId){setMessage(\"We couldn't confirm your sign-in. Please try signing in again.\");return;}const destination=destinationFor(verified.user.tags);if(destination===\"/account\"){setMessage(\"You're signed in, but your account doesn't currently have Dinner Rescue or Family Memory access. If you've already purchased, please contact support.\");return;}window.location.replace(destination);}catch{if(!cancelled&&attempt.current===currentAttempt){setMessage(\"We couldn't confirm your account just now. Please reload this page to try again.\");}}finally{window.clearTimeout(timeout);}})();return()=>{cancelled=true;window.clearTimeout(timeout);};},[canvas,initializing,sessionLoading,userLoading,token,userId]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props,ref:ref}),!canvas&&message?/*#__PURE__*/_jsx(\"p\",{role:\"status\",\"aria-live\":\"polite\",style:{margin:0,maxWidth:\"100%\",font:\"inherit\",color:\"inherit\",textAlign:\"center\",overflowWrap:\"anywhere\"},children:message}):null]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAccountTagRedirect\":{\"type\":\"reactHoc\",\"name\":\"withAccountTagRedirect\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AccountTagRedirect.map"],"mappings":"A,+cAOmT,SAAgB8C,GAAuB,EAAM,CAAyB,GAArB,CAACC,GAAuB,CAACA,EAAM,KAAM,OAAO,KAAM,IAAIC,EAAaC,EAAaF,GAAO,aAAa,GAAGA,EAAM,OAAO,SAAS,CAAmB,GAAlB,EAAO/C,EAAE,OAAO,EAAK+C,GAAO,OAC9f,OAAOA,EAAM,OAAb,CAAqB,IAAI,QAAQ,EAAO/C,EAAE,MAAM,iDAAiD,EAAE,MAAM,IAAI,MAAM,EAAOA,EAAE,IAAI,kDAAkD,EAAE,MAAM,IAAI,QAC9L,EAAOA,EAAE,KAAK,mDAAmD,EAAE,MAAM,IAAI,OAC7E,EAAOA,EAAE,IAAI,KAAK,0CAA0C,EAAE,MAAM,IAAI,OACxE,EAAOA,EAAE,IAAI,KAAK,iDAAiD,EAAE,MAA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