{"version":3,"file":"AlphaTracker.B8G2c8Wj.mjs","names":["__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","RenderTarget","init_framer_BpuvUAiZ","ControlType","addPropertyControls","AlphaTracker","props","siteKey","scriptSrc","w","s","conversionName","form","e","input","init_AlphaTracker"],"sources":["https:/framerusercontent.com/modules/9oMbz9HbyxkQ9EtZYp2w/ehplP5Gpd5gJLbGzey1j/AlphaTracker.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect}from\"react\";/**\n * ALPHA TRACKER\n * Loads the Alpha site script on the page it sits on, and reports a sign-up\n * to Alpha when a form with a valid email address is submitted. Invisible.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function AlphaTracker(props){const{siteKey=\"st_IS94FrAmbHFy0fFw\",scriptSrc=\"https://alpha.l7v.com/t.js\",conversionName=\"signup\"}=props;useEffect(()=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return;if(RenderTarget.current()===RenderTarget.canvas)return;if(!siteKey||!scriptSrc)return;// Framer renders pages on its own hosts for screenshots and thumbnails;\n// those are not visitors.\nif(/\\.invalid$/i.test(window.location.hostname))return;const w=window;if(!document.querySelector('script[data-site=\"'+siteKey+'\"]')){const s=document.createElement(\"script\");s.defer=true;s.src=scriptSrc;s.setAttribute(\"data-site\",siteKey);document.head.appendChild(s);}if(!conversionName||w.__alphaSignupBound)return;w.__alphaSignupBound=true;const onSubmit=e=>{const form=e.target;if(!form||typeof form.querySelector!==\"function\")return;const input=form.querySelector(\"input[type=email]\");if(!input||!/^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$/.test(input.value||\"\"))return;w.alphaQ=w.alphaQ||[];w.alphaQ.push([\"convert\",conversionName]);};document.addEventListener(\"submit\",onSubmit,true);// Deliberately left bound for the life of the page: several breakpoint\n// copies of this component can mount, and only the first one binds.\n},[siteKey,scriptSrc,conversionName]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...props.style,width:1,height:1,opacity:0,pointerEvents:\"none\"}});}addPropertyControls(AlphaTracker,{siteKey:{type:ControlType.String,title:\"Site Key\",defaultValue:\"st_IS94FrAmbHFy0fFw\"},scriptSrc:{type:ControlType.String,title:\"Script\",defaultValue:\"https://alpha.l7v.com/t.js\"},conversionName:{type:ControlType.String,title:\"Sign-up Name\",defaultValue:\"signup\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AlphaTracker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AlphaTracker.map"],"mappings":"A,gMAOG,SAAwBW,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,sBAAsB,YAAU,6BAA6B,iBAAe,UAAUC,EAI7G,OAJmHN,MAAc,CAEvK,GAFkLH,IAAS,QAAa,OAAO,SAAW,KAAsBI,EAAa,QAAQ,IAAIA,EAAa,QAAiB,CAACM,GAAS,CAACC,GAE/S,cAAc,KAAKX,EAAO,SAAS,QAAQ,EAAE,OAAO,IAAMY,EAAEZ,EAAO,GAAG,CAAC,SAAS,cAAc,qBAAqBU,EAAQ,IAAI,EAAE,CAAC,IAAMG,EAAE,SAAS,cAAc,QAAQ,EAAE,EAAE,MAAM,GAAK,EAAE,IAAIF,EAAUE,EAAE,aAAa,YAAYH,CAAO,EAAE,SAAS,KAAK,YAAYG,CAAC,CAAE,CAAKC,GAAgB,GAAE,qBAA0B,EAAE,mBAAmB,GAAgS,SAAS,iBAAiB,SAAtS,GAAG,CAAC,IAAMC,EAAKC,EAAE,OAAO,GAAG,CAACD,GAAM,OAAOA,EAAK,eAAgB,WAAW,OAAO,IAAME,EAAMF,EAAK,cAAc,mBAAmB,EAAME,GAA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