{"version":3,"file":"useFormHandler.D7MDdbkF.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.forwardRef","useRef","React.useId","SVG","RichText","useRef"],"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":"4WAC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