{"version":3,"file":"ThanksRedirect.BC-QLSTw.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","c","init_jsx_runtime","init_npm_react_18_3_1","ce","ThanksRedirect","to","props","delay","onSubmit","form","event","init_ThanksRedirect"],"sources":["https:/framerusercontent.com/modules/xgo90Uet71A4rGlcNFbv/kyamwWO4f5sp33uPg0BC/ThanksRedirect.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * Invisible helper: when someone joins the beta with the email form on this page,\n * it sends them to the thank-you page.\n * The browser only fires \"submit\" when the email is valid, so this runs for real sign-ups only.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ThanksRedirect(props){const to=props.to||\"/thanks\";const delay=props.delay??1400;useEffect(()=>{const onSubmit=event=>{const form=event.target;if(!form||!form.querySelector||!form.querySelector('input[type=\"email\"]'))return;setTimeout(()=>{window.location.href=to;},delay);};document.addEventListener(\"submit\",onSubmit,true);return()=>document.removeEventListener(\"submit\",onSubmit,true);},[to,delay]);return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1},\"aria-hidden\":\"true\"});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ThanksRedirect\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ThanksRedirect.map"],"mappings":"A,gIAOG,SAAwBO,EAAe,EAAM,CAAC,IAAMC,EAAGC,EAAM,IAAI,UAAgBC,EAAMD,EAAM,OAAO,KAAsU,OAAjUH,MAAc,CAAC,IAAMK,EAAS,GAAO,CAAC,IAAMC,EAAKC,EAAM,OAAWD,GAAOA,EAAK,eAAgBA,EAAK,cAAc,qBAAqB,GAAS,eAAe,CAAC,EAAO,SAAS,KAAKJ,CAAG,EAAEE,CAAK,CAAE,EAAoD,OAAlD,SAAS,iBAAiB,SAASC,EAAS,EAAI,MAAY,SAAS,oBAAoB,SAASA,EAAS,EAAI,CAAE,EAAE,CAACH,EAAGE,CAAK,CAAC,EAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,MAAM,CAAC,CAAE,C"}