{"version":3,"file":"Form.f5ki7CSV.mjs","names":["React.useState","email"],"sources":["https:/framerusercontent.com/modules/emeX5mtK81zY3xjRZZog/yPJrR3NnFteL79l7EdeJ/GJPlvTOnP.js","https:/framerusercontent.com/modules/FvSA37raa29tTbPcEIGC/El2UGHybWPmQiByjoEmE/Form.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 12 L 6 6 L 0 0\" fill=\"transparent\" height=\"12px\" id=\"lepvFL2AM\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" stroke=\"var(--43q7um, rgb(0,0,0))\" transform=\"translate(9 6)\" width=\"6px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,UO5clYVeQ:stroke??props.UO5clYVeQ??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,UO5clYVeQ,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-3J82X\",className),layoutId:layoutId,ref:ref,style:{\"--43q7um\":UO5clYVeQ,...style}});});const css=[`.framer-3J82X { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--43q7um); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"UO5clYVeQ\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Chevron Right\",\"color\":{\"type\":\"variable\",\"value\":\"43q7um\"},\"set\":{\"localId\":\"vectorSet/T8qKXkLfy\",\"id\":\"T8qKXkLfy\",\"moduleId\":\"fiHEoJwBMFnT6QLOcpPz\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-3J82X\");Icon.displayName=\"Chevron Right\";export default Icon;addPropertyControls(Icon,{UO5clYVeQ:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerVariables\":\"{\\\"UO5clYVeQ\\\":\\\"stroke\\\"}\",\"framerImmutableVariables\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"Chevron Right\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"43q7um\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/T8qKXkLfy\\\",\\\"id\\\":\\\"T8qKXkLfy\\\",\\\"moduleId\\\":\\\"fiHEoJwBMFnT6QLOcpPz\\\"}}\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerDisableUnlink\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";export default function EmailField(){const[email,setEmail]=React.useState(\"\");const[isMobile,setIsMobile]=React.useState(false);const[error,setError]=React.useState(\"\");React.useEffect(()=>{const checkWidth=()=>setIsMobile(window.innerWidth<=768);checkWidth();window.addEventListener(\"resize\",checkWidth);return()=>window.removeEventListener(\"resize\",checkWidth);},[]);const isValidEmail=email=>/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(email);const handleSubmit=()=>{if(isValidEmail(email)){const url=`https://app.wrkos.com/preaccess-register-flow?email=${email}`;window.open(url,\"_blank\");setEmail(\"\")// Clear input after successful submission\n;setError(\"\")// Clear any previous error\n;}else{setError(\"Please enter a valid Buisness email\")// Show inline error\n;}};return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"8px\",width:isMobile?\"310px\":\"617px\",maxWidth:\"100%\",margin:\"0 auto\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:isMobile?\"column\":\"row\",alignItems:\"center\",gap:isMobile?\"12px\":\"20px\",background:\"linear-gradient(to bottom, #fff, #FEF8D8)\",padding:\"10px 14px\",borderRadius:\"24px\",width:\"100%\",boxShadow:\"#FFFFFF\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"email\",placeholder:\"Enter your business email\",value:email,onChange:e=>setEmail(e.target.value),style:{flex:1,border:\"none\",outline:\"none\",padding:\"14px 18px\",fontSize:\"16px\",borderRadius:\"50px\",background:\"transparent\",width:\"100%\"}}),/*#__PURE__*/_jsx(\"button\",{onClick:handleSubmit,style:{backgroundColor:\"#FF351A\",color:\"white\",border:\"none\",padding:\"15px 24px\",borderRadius:\"20px\",fontWeight:\"600\",fontSize:\"15px\",cursor:\"pointer\",width:isMobile?\"100%\":\"auto\",transition:\"all 0.2s ease\"},onMouseOver:e=>e.target.style.backgroundColor=\"#3A28A8\",onMouseOut:e=>e.target.style.backgroundColor=\"#FF351A\",children:\"Get Started\"})]}),error&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"red\",fontSize:\"14px\",marginTop:\"4px\"},children:error})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EmailField\",\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