{"version":3,"file":"SignInOTP.DQj_tPRB.mjs","names":["baseInputs","formId","defaultButtonLabel","buttonLabelKey","useState","useMemo","snakeToCamel","sendOTP","inputsPropertyControls","exportBasePropertyControls","useState","useMemo","signInOTP","__esmMin","window","init_npm_react_18_3_1","pe","init_ssg_sandbox_shims","_e","ce","addPropertyControls","inferInitialRouteFromPath","useRouter","withCSS","init_framer_Bf4_tcb2","ControlType","Xe","init_framerauth","Ze","init_BaseForm","getURLSearchParam","basePropertyControls","formStatePropertyControls","BaseForm","baseInputs$1","formId$1","defaultButtonLabel$1","buttonLabelKey$1","SendOTP","snakeToCamel$1","inputsPropertyControls$1","exportBasePropertyControls$1","init_SendOTP","init_jsx_runtime","baseProps","router","inputs","setInputs","defaultValues","setDefaultValues","buttonProps","email","newInputs","inputControlName","input","inputField","render","hidden","displayName","placeholder","onSubmit","sendOTPResponse","formData","onSuccessCallback","emailValue","data","configuredLink","normalizedLink","path","pathAndQuery","emailParam","routeId","pathVariables","str","index","word","props","baseInputs","formId","defaultButtonLabel","buttonLabelKey","SignInOTP","snakeToCamel","inputsPropertyControls","exportBasePropertyControls","init_SignInOTP","setEmail","signInResponse"],"sources":["https:/framerusercontent.com/modules/EijhjtD7VOR0PwaZAhlf/bkmVhELUGQwoU2BdownW/SendOTP.js","https:/framerusercontent.com/modules/uk9G1fzPMWTzHiTCouxj/b6ssoRDCdtGAnhnMkVC1/SignInOTP.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useMemo,useState}from\"react\";// @ts-ignore\nimport{addPropertyControls,ControlType,withCSS,// @ts-ignore\ninferInitialRouteFromPath,// @ts-ignore\nuseRouter}from\"framer\";import{sendOTP}from\"https://cdn.jsdelivr.net/npm/@framerauth/sdk@2/dist/framerauth.mjs\";import BaseForm,{basePropertyControls,formStatePropertyControls,getURLSearchParam}from\"https://framerusercontent.com/modules/tU0OhNHakDNO2P6BFnP9/JF2pkICGRXCmqkKCt0Ng/BaseForm.js\";//////////////////////////////////\n/////// FORM CONFIGURATION ///////\n//////////////////////////////////\n// Define inputs\nconst baseInputs=[{displayName:\"Email\",name:\"email\",type:\"string\",format:\"email\",required:true,overridable:false,placeholder:\"Email\",render:true,hidden:false}];const formId=\"signin_send_otp\"// Unique form ID for this form.\n;const defaultButtonLabel=\"Send Code\"// Default submit button label on this form.\n;const buttonLabelKey=`${formId}_button_label`// Key for button label property control.\n;/**\n * SendOTP.tsx\n * By Joel Whitaker\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n */const SendOTP=withCSS(function SendOTP({...baseProps}){const router=useRouter();const[inputs,setInputs]=useState(baseInputs)// We can override inputs with property controls.\n;const[defaultValues,setDefaultValues]=useState(undefined);const buttonProps=useMemo(()=>{// Map button label to button\n// This is to avoid style copy-pasting of the button label.\nreturn{...baseProps.button,label:baseProps.button[buttonLabelKey]};},[baseProps.button,baseProps.button[buttonLabelKey]]);useEffect(()=>{const email=getURLSearchParam(\"email\");setDefaultValues({email:email});},[]);useEffect(()=>{// Map input labels to inputs\nif(baseProps.inputFields){const newInputs=[];baseInputs.forEach((input,_idx)=>{const inputControlName=snakeToCamel(input.name);if(!(inputControlName in baseProps.inputFields)){// If the input is not in the inputFields object, skip it.\nreturn;}const inputField=baseProps.inputFields[inputControlName];const render=inputField.render||true;const hidden=inputField.hidden||false;const displayName=inputField.displayName;const placeholder=displayName;if(render===true){newInputs.push({...input,hidden,displayName,placeholder});}});setInputs(newInputs);}},[undefined,baseProps.inputFields]);const onSubmit=async formData=>{const sendOTPResponse=await sendOTP({email:formData.email,type:\"sign-in\"});if(sendOTPResponse.error){return{ok:false,message:sendOTPResponse.error.message};}return{ok:true,message:sendOTPResponse.data?.message||\"Email instructions sent.\",data:{email:formData.email}};};const onSuccessCallback=data=>{const emailValue=data?.email;const configuredLink=baseProps.link;if(!configuredLink||typeof configuredLink!==\"string\"||!emailValue){return;}try{const normalizedLink=configuredLink.trim();if(!normalizedLink)return;let path=\"\";if(normalizedLink.startsWith(\"/\")){const[pathAndQuery]=normalizedLink.split(\"#\");path=pathAndQuery.split(\"?\")[0];}else if(typeof window!==\"undefined\"){path=new URL(normalizedLink,window.location.origin).pathname;}else{path=new URL(normalizedLink,\"https://example.com\").pathname;}if(!path)return;const emailParam=`email=${encodeURIComponent(String(emailValue))}`;const{routeId,pathVariables}=inferInitialRouteFromPath(router.routes,path);if(routeId){router.navigate(routeId,emailParam,pathVariables);}}catch(_error){// Invalid or unsupported link format, skip navigation safely.\n}};return /*#__PURE__*/_jsx(BaseForm,{...baseProps,button:buttonProps,fields:inputs,defaultValues:defaultValues,onSubmit:onSubmit,onSuccess:onSuccessCallback});},[]);const snakeToCamel=str=>{return str.split(\"_\").map((word,index)=>{if(index===0){return word;}return word.charAt(0).toUpperCase()+word.slice(1);}).join(\"\");};// Here we can override property controls if we don't want to expose them to the user.\n// We generate the inputs property controls dynamically based on the inputs array.\nconst inputsPropertyControls={};baseInputs.forEach((input,_idx)=>{const inputControlName=snakeToCamel(input.name);inputsPropertyControls[inputControlName]={title:`${input.displayName}`,type:ControlType.Object,controls:{render:input.overridable===true?{title:\"Render\",type:ControlType.Boolean,defaultValue:true}:undefined,hidden:input.overridable===true?{title:\"Hidden\",type:ControlType.Boolean,defaultValue:false,hidden:props=>props.render===true}:undefined,displayName:{title:\"Display Name\",type:ControlType.String,defaultValue:input.displayName,hidden:props=>props.render===true&&props.hidden===false}}};});const exportBasePropertyControls={...basePropertyControls,autoFocus:{...basePropertyControls.autoFocus,defaultValue:true},inputFields:{title:\"Inputs\",type:ControlType.Object,controls:inputsPropertyControls},link:{title:\"Redirect\",type:ControlType.Link},button:{// Inject default button label\n...basePropertyControls.button,controls:{...basePropertyControls.button.controls,label:undefined,[buttonLabelKey]:{...basePropertyControls.button.controls.label,defaultValue:defaultButtonLabel}}}};// @ts-ignore - TS doesn't like our basePropertyControls type.\naddPropertyControls(SendOTP,{...exportBasePropertyControls,// Last in the panel: message styling and the canvas Preview state.\n...formStatePropertyControls});SendOTP.defaultProps={...BaseForm.defaultProps,...SendOTP.defaultProps};export default SendOTP;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SendOTP\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicWidth\":\"300\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"40\",\"framerDisableUnlink\":\"*\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SendOTP.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useMemo,useState}from\"react\";// @ts-ignore\nimport{addPropertyControls,ControlType,withCSS}from\"framer\";import{signInOTP}from\"https://cdn.jsdelivr.net/npm/@framerauth/sdk@2/dist/framerauth.mjs\";import BaseForm,{basePropertyControls,formStatePropertyControls,getURLSearchParam}from\"https://framerusercontent.com/modules/tU0OhNHakDNO2P6BFnP9/JF2pkICGRXCmqkKCt0Ng/BaseForm.js\";//////////////////////////////////\n/////// FORM CONFIGURATION ///////\n//////////////////////////////////\n// Define inputs\nconst baseInputs=[{displayName:\"Code\",name:\"otp\",type:\"string\",required:true,overridable:false,placeholder:\"Code\",render:true,hidden:false}];const formId=\"signin_otp\"// Unique form ID for this form.\n;const defaultButtonLabel=\"Sign In\"// Default submit button label on this form.\n;const buttonLabelKey=`${formId}_button_label`// Key for button label property control.\n;/**\n * SignInOTP.tsx\n * By Joel Whitaker\n *\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight any\n */const SignInOTP=withCSS(function SignInOTP({...baseProps}){const[inputs,setInputs]=useState(baseInputs)// We can override inputs with property controls.\n;const[email,setEmail]=useState(null);useEffect(()=>{const email=getURLSearchParam(\"email\");setEmail(email);},[]);const buttonProps=useMemo(()=>{// Map button label to button\n// This is to avoid style copy-pasting of the button label.\nreturn{...baseProps.button,label:baseProps.button[buttonLabelKey]};},[baseProps.button,baseProps.button[buttonLabelKey]]);useEffect(()=>{// Map input labels to inputs\nif(baseProps.inputFields){const newInputs=[];baseInputs.forEach((input,_idx)=>{const inputControlName=snakeToCamel(input.name);if(!(inputControlName in baseProps.inputFields)){// If the input is not in the inputFields object, skip it.\nreturn;}const inputField=baseProps.inputFields[inputControlName];const render=inputField.render||true;const hidden=inputField.hidden||false;const displayName=inputField.displayName;const placeholder=displayName;if(render===true){newInputs.push({...input,hidden,displayName,placeholder});}});setInputs(newInputs);}},[undefined,baseProps.inputFields]);const onSubmit=async formData=>{if(!email){return{ok:false,message:\"Email not found.\"};}const signInResponse=await signInOTP({email:email,otp:formData.otp});if(signInResponse.error){return{ok:false,message:signInResponse.error.message};}return{ok:true,message:\"Successfully Signed in.\"};};return /*#__PURE__*/_jsx(BaseForm,{...baseProps,button:buttonProps,fields:inputs,onSubmit:onSubmit});},[]);const snakeToCamel=str=>{return str.split(\"_\").map((word,index)=>{if(index===0){return word;}return word.charAt(0).toUpperCase()+word.slice(1);}).join(\"\");};// Here we can override property controls if we don't want to expose them to the user.\n// We generate the inputs property controls dynamically based on the inputs array.\nconst inputsPropertyControls={};baseInputs.forEach((input,_idx)=>{const inputControlName=snakeToCamel(input.name);inputsPropertyControls[inputControlName]={title:`${input.displayName}`,type:ControlType.Object,controls:{render:input.overridable===true?{title:\"Render\",type:ControlType.Boolean,defaultValue:true}:undefined,hidden:input.overridable===true?{title:\"Hidden\",type:ControlType.Boolean,defaultValue:false,hidden:props=>props.render===true}:undefined,displayName:{title:\"Display Name\",type:ControlType.String,defaultValue:input.displayName,hidden:props=>props.render===true&&props.hidden===false}}};});const exportBasePropertyControls={...basePropertyControls,// The code page exists for this one form, so focus it by default.\nautoFocus:{...basePropertyControls.autoFocus,defaultValue:true},inputFields:{title:\"Inputs\",type:ControlType.Object,controls:inputsPropertyControls},link:{title:\"Redirect\",type:ControlType.Link},button:{// Inject default button label\n...basePropertyControls.button,controls:{...basePropertyControls.button.controls,label:undefined,[buttonLabelKey]:{...basePropertyControls.button.controls.label,defaultValue:defaultButtonLabel}}}};// @ts-ignore - TS doesn't like our basePropertyControls type.\naddPropertyControls(SignInOTP,{...exportBasePropertyControls,// Last in the panel: message styling and the canvas Preview state.\n...formStatePropertyControls});SignInOTP.defaultProps={...BaseForm.defaultProps,...SignInOTP.defaultProps};export default SignInOTP;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SignInOTP\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"40\",\"framerSupportedLayoutHeight\":\"any\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"300\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SignInOTP.map"],"mappings":"A,iaAOMA,EAAW,CAAC,CAAC,YAAY,QAAQ,KAAK,QAAQ,KAAK,SAAS,OAAO,QAAQ,SAAS,GAAK,YAAY,GAAM,YAAY,QAAQ,OAAO,GAAK,OAAO,EAAK,CAAC,EAAQC,EAAO,kBACtKC,EAAmB,YACnBC,EAAe,GAAGF,EAAO,eAYvB,EAAQsB,EAAQ,SAAiB,CAAC,GAAGqB,GAAW,CAAC,IAAMC,EAAOvB,EAAU,EAAO,CAACwB,EAAOC,GAAW3C,EAASJ,CAAU,EACxH,CAACgD,EAAcC,GAAkB7C,EAAS,IAAA,EAAS,EAAQ8C,EAAY7C,OAEvE,CAAC,GAAGuC,EAAU,OAAO,MAAMA,EAAU,OAAOzC,EAAe,GAAI,CAACyC,EAAU,OAAOA,EAAU,OAAOzC,EAAe,CAAC,EAAEgB,MAAc,CAAC,IAAMgC,EAAMrB,EAAkB,OAAO,EAAEmB,EAAiB,CAAO,OAAK,CAAC,CAAE,E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