{"version":3,"file":"useFormHandler.KuU6Brxw.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","useRef","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","x","oe","pe","ie","ce","init_jsx_runtime","J","c","p","de","motion","LayoutGroup","MotionConfigContext","init_framer_motion_DhsWWWsN","withFX","RichText","useLocaleInfo","useVariantState","withCSS","addPropertyControls","SVG","cx","init_framer_BWFVvmND","useComponentViewport","addFonts","ControlType","addPropertyOverrides","variants","nextOverrides","variant","overrides","MotionDivWithFX","enabledGestures","cycleOrder","serializationHash","variantClassNames","radiusForCorner","transition1","transition2","animation","transformTemplate1","Transition","humanReadableVariantMap","Variants","getProps","createLayoutDependency","FramerSXC67Ftte","init_SXC67Ftte","value","cornerIndex","segments","config","transition","contextValue","props","radius","title","fallbackRef","refBinding","ref","defaultLayoutId","restProps","layoutDependency","scopingClassNames","isDisplayed","baseVariant","isDisplayed1","isDisplayed2","layoutId","gestureHandlers","className","classNames","fpv5hELVQ","style","gestureVariant","VtqUILdxq","withRedirectAndEmailParam","container","getUsername","input","doRedirect","username","handleKeyDown","event","handleClick","target","Component","init_useFormHandler"],"sources":["https:/framerusercontent.com/modules/9fRdP9PGYb1HRRhpLO0v/122W4Dbez4YoBQlML26Q/SXC67Ftte.js","https:/framerusercontent.com/modules/hjrAjufmM0l7T7Mq91KT/onxpEQGiOjS5qfCrGT62/useFormHandler.js"],"sourcesContent":["// Generated by Framer (eaba142)\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\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={ui7MA7CmQ:{hover:true,pressed:true}};const cycleOrder=[\"ui7MA7CmQ\",\"h12ORHKXP\",\"dovpaLCme\",\"Ikr2RQEmH\",\"Uw7gp_hmt\"];const serializationHash=\"framer-gPnfK\";const variantClassNames={dovpaLCme:\"framer-v-1nyww0\",h12ORHKXP:\"framer-v-wq3oq\",Ikr2RQEmH:\"framer-v-1f1exms\",ui7MA7CmQ:\"framer-v-kz8vvl\",Uw7gp_hmt:\"framer-v-1jp9f6y\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const fpv5hELVQ=undefined;const VtqUILdxq=undefined;const radiusForCorner=(value,cornerIndex)=>{if(typeof value===\"number\"&&Number.isFinite(value))return Math.max(0,value)+\"px\";if(typeof value!==\"string\"||typeof cornerIndex!==\"number\")return undefined;const segments=value.split(\" \");return segments[cornerIndex]||segments[cornerIndex-2]||segments[0];};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 humanReadableVariantMap={Default:\"ui7MA7CmQ\",Disabled:\"dovpaLCme\",Error:\"Uw7gp_hmt\",Loading:\"h12ORHKXP\",Success:\"Ikr2RQEmH\"};const Variants=motion.create(React.Fragment);const getProps=({height,id,radius,title,width,...props})=>{return{...props,fpv5hELVQ:radius??props.fpv5hELVQ??\"8px\",variant:humanReadableVariantMap[props.variant]??props.variant??\"ui7MA7CmQ\",VtqUILdxq:title??props.VtqUILdxq??\"Claim it\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,VtqUILdxq,fpv5hELVQ,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"ui7MA7CmQ\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"Ikr2RQEmH\")return true;return false;};const isDisplayed1=()=>{if(baseVariant===\"h12ORHKXP\")return false;return true;};const isDisplayed2=()=>{if(baseVariant===\"h12ORHKXP\")return true;return false;};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-kz8vvl\",className,classNames),\"data-framer-name\":\"Default\",\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"ui7MA7CmQ\",ref:refBinding,style:{backgroundColor:\"rgb(0, 112, 210)\",borderBottomLeftRadius:radiusForCorner(fpv5hELVQ,3),borderBottomRightRadius:radiusForCorner(fpv5hELVQ,2),borderTopLeftRadius:radiusForCorner(fpv5hELVQ,0),borderTopRightRadius:radiusForCorner(fpv5hELVQ,1),boxShadow:\"inset 0px -2px 0px 0px rgba(0, 0, 0, 0.25)\",opacity:1,...style},variants:{\"ui7MA7CmQ-hover\":{backgroundColor:\"rgb(0, 93, 169)\",opacity:1},\"ui7MA7CmQ-pressed\":{backgroundColor:\"rgb(0, 113, 208)\",opacity:1},dovpaLCme:{opacity:.5},Ikr2RQEmH:{opacity:1},Uw7gp_hmt:{backgroundColor:\"rgba(255, 34, 68, 0.15)\",opacity:1}},...addPropertyOverrides({dovpaLCme:{\"data-framer-name\":\"Disabled\"},h12ORHKXP:{\"data-framer-name\":\"Loading\"},Ikr2RQEmH:{\"data-framer-name\":\"Success\"},Uw7gp_hmt:{\"data-framer-name\":\"Error\"}},baseVariant,gestureVariant),children:[isDisplayed()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-j37yup\",layoutDependency:layoutDependency,layoutId:\"ajCHA4eMl\",children:/*#__PURE__*/_jsxs(SVG,{className:\"framer-1c5s3c8\",layoutDependency:layoutDependency,layoutId:\"XnibCTwm1\",requiresOverflowVisible:true,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 13 7\" overflow=\"visible\"><path d=\"M 10.4 0 L 3.25 6.696 L 0 3.652 M 13 2.435 L 8.125 7 L 7.15 6.087\" fill=\"transparent\" stroke-width=\"2\" stroke=\"rgb(255, 255, 255)\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-dasharray=\"\"></path></svg>',withExternalLayout:true,children:[/*#__PURE__*/_jsx(SVG,{className:\"framer-17macoz\",layoutDependency:layoutDependency,layoutId:\"a2FS_0u7x\",requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 10.4 6.696\" overflow=\"visible\"><path d=\"M 10.4 0 L 3.25 6.696 L 0 3.652\" fill=\"transparent\"></path></svg>',withExternalLayout:true}),/*#__PURE__*/_jsx(SVG,{className:\"framer-jowhqy\",layoutDependency:layoutDependency,layoutId:\"gGc5rNyOL\",requiresOverflowVisible:false,svg:'<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 5.85 4.565\" overflow=\"visible\"><path d=\"M 5.85 0 L 0.975 4.565 L 0 3.652\" fill=\"transparent\"></path></svg>',withExternalLayout:true})]})}),isDisplayed1()&&/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItTWVkaXVt\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"500\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Claim it\"})}),className:\"framer-267jbh\",fonts:[\"Inter-Medium\"],layoutDependency:layoutDependency,layoutId:\"Ar2kB1i49\",style:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:VtqUILdxq,variants:{Uw7gp_hmt:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({Ikr2RQEmH:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{dir:\"auto\",style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Subscribed\"})}),fonts:[\"Inter-SemiBold\"],text:undefined},Uw7gp_hmt:{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\"})}),fonts:[\"Inter-SemiBold\"],text:undefined}},baseVariant,gestureVariant)}),isDisplayed2()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-15zlx7e\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"g9B5pyZRI\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') 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-m6nt0f\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"gmqrNAHou\",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:{h12ORHKXP:{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?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-111jor3\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"drpFX1YAk\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\".framer-gPnfK.framer-vf0d6b, .framer-gPnfK .framer-vf0d6b { display: block; }\",\".framer-gPnfK.framer-kz8vvl { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: center; overflow: visible; padding: 4px 12px 4px 12px; position: relative; width: min-content; }\",\".framer-gPnfK .framer-j37yup { flex: none; height: 16px; overflow: visible; position: relative; width: 16px; }\",\".framer-gPnfK .framer-1c5s3c8 { height: 7px; left: 2px; position: absolute; top: 4px; width: 13px; }\",\".framer-gPnfK .framer-17macoz { height: 7px; left: 0px; position: absolute; top: 0px; width: 11px; }\",\".framer-gPnfK .framer-jowhqy { height: 5px; left: 7px; position: absolute; top: 2px; width: 6px; }\",\".framer-gPnfK .framer-267jbh { -webkit-user-select: none; flex: none; height: auto; position: relative; user-select: none; white-space: pre; width: auto; }\",\".framer-gPnfK .framer-15zlx7e { aspect-ratio: 1 / 1; flex: none; gap: 10px; height: auto; overflow: hidden; position: relative; width: 20px; }\",\".framer-gPnfK .framer-m6nt0f { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-gPnfK .framer-111jor3 { aspect-ratio: 1 / 1; flex: none; height: auto; left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-gPnfK.framer-v-wq3oq.framer-kz8vvl, .framer-gPnfK.framer-v-1nyww0.framer-kz8vvl, .framer-gPnfK.framer-v-1f1exms.framer-kz8vvl, .framer-gPnfK.framer-v-1jp9f6y.framer-kz8vvl { cursor: unset; }\",\".framer-gPnfK.framer-v-wq3oq .framer-m6nt0f { overflow: hidden; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 25\n * @framerIntrinsicWidth 73.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"h12ORHKXP\":{\"layout\":[\"auto\",\"auto\"]},\"dovpaLCme\":{\"layout\":[\"auto\",\"auto\"]},\"Ikr2RQEmH\":{\"layout\":[\"auto\",\"auto\"]},\"Uw7gp_hmt\":{\"layout\":[\"auto\",\"auto\"]},\"kpsq51INn\":{\"layout\":[\"auto\",\"auto\"]},\"dplwLjrB8\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"VtqUILdxq\":\"title\",\"fpv5hELVQ\":\"radius\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerSXC67Ftte=withCSS(Component,css,\"framer-gPnfK\");export default FramerSXC67Ftte;FramerSXC67Ftte.displayName=\"Button 2\";FramerSXC67Ftte.defaultProps={height:25,width:73.5};addPropertyControls(FramerSXC67Ftte,{variant:{options:[\"ui7MA7CmQ\",\"h12ORHKXP\",\"dovpaLCme\",\"Ikr2RQEmH\",\"Uw7gp_hmt\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\"],title:\"Variant\",type:ControlType.Enum},VtqUILdxq:{defaultValue:\"Claim it\",displayTextArea:false,title:\"Title\",type:ControlType.String},onVtqUILdxqChange:{changes:\"VtqUILdxq\",type:ControlType.ChangeHandler},fpv5hELVQ:{defaultValue:\"8px\",title:\"Radius\",type:ControlType.BorderRadius}});addFonts(FramerSXC67Ftte,[{explicitInter:true,fonts:[{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5A3Ce6C9YYmCjpQx9M4inSaKU.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/Qx95Xyt0Ka3SGhinnbXIGpEIyP4.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/6mJuEAguuIuMog10gGvH5d3cl8.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/xYYWaj7wCU5zSQH0eXvSaS19wo.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/otTaNuNpVK4RbdlT7zDDdKvQBA.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/UjlFhCnUjxhNfep4oYBPqnEssyo.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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/DolVirEGb34pEXEp8t8FQBSK4.woff2\",weight:\"500\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",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\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerSXC67Ftte\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"73.5\",\"framerIntrinsicHeight\":\"25\",\"framerColorSyntax\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"h12ORHKXP\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"dovpaLCme\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Ikr2RQEmH\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Uw7gp_hmt\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"kpsq51INn\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"dplwLjrB8\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerContractVersion\":\"1\",\"framerAutoSizeImages\":\"true\",\"framerVariables\":\"{\\\"VtqUILdxq\\\":\\\"title\\\",\\\"fpv5hELVQ\\\":\\\"radius\\\"}\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SXC67Ftte.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function withRedirectAndEmailParam(Component){return props=>{const ref=useRef(null);useEffect(()=>{const container=ref.current;if(!container)return;const getUsername=()=>{const input=container.querySelector(\"input\");if(!input)return null;const val=input.value?.trim();return val||null;};const doRedirect=()=>{const username=getUsername();if(!username)return;window.open(`https://app.linkie.bio/playground?username=${encodeURIComponent(username)}`,\"_self\");};const handleKeyDown=event=>{if(event.key===\"Enter\"){event.preventDefault();doRedirect();}};const handleClick=event=>{const target=event.target;const input=container.querySelector(\"input\");// Don't intercept clicks on the input itself\nif(target===input||target.closest(\"input\"))return;// Check if click is on or inside a button-like element\nconst isButton=target.tagName===\"BUTTON\"||!!target.closest(\"button\")||!!target.closest(\"a\")||!!target.closest(\"[data-framer-component-type]\");if(isButton){event.preventDefault();event.stopPropagation();doRedirect();}};container.addEventListener(\"click\",handleClick,true);container.addEventListener(\"keydown\",handleKeyDown);return()=>{container.removeEventListener(\"click\",handleClick,true);container.removeEventListener(\"keydown\",handleKeyDown);};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRedirectAndEmailParam\":{\"type\":\"reactHoc\",\"name\":\"withRedirectAndEmailParam\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./useFormHandler.map"],"mappings":"A,4WACksB,SAASqC,EAAqB,EAAU,GAAGC,EAAS,CAAC,IAAMC,EAAc,CAAC,EAAuF,OAArFD,GAAU,QAAQ,GAASE,GAAS,OAAO,OAAOD,EAAcE,EAAUD,EAAQ,CAAC,EAASD,CAAc,C,kFAAljB,EAAgBd,EAAOJ,EAAO,GAAG,EAAQ,EAAgB,CAAC,UAAU,CAAC,MAAM,GAAK,QAAQ,EAAI,CAAC,EAAQ,EAAW,CAAC,YAAY,YAAY,YAAY,YAAY,WAAW,EAAQ,EAAkB,eAAqB,EAAkB,CAAC,UAAU,kBAAkB,UAAU,iBAAiB,UAAU,mBAAmB,UAAU,kBAAkB,UAAU,kBAAkB,EAAmP,GAAiB,EAAM,IAAc,CAAC,GAAG,OAAOsC,GAAQ,UAAU,OAAO,SAASA,CAAK,EAAE,OAAO,KAAK,IAAI,EAAEA,CAAK,EAAE,KAAK,GAAG,OAAOA,GAAQ,UAAU,OAAOC,GAAc,SAAS,OAAiB,IAAM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