{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/dHLBsMPu2lHGtMKNW8W1/pJDTJNYfNPn7TLUBJZU5/OptinRotator.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,forwardRef}from\"react\";const calendlyLinks=[\"https://quantumneuron.ai/vsl-step-max\",\"https://quantumneuron.ai/vsl-step\"];const randomLink=calendlyLinks[Math.floor(Math.random()*calendlyLinks.length)];export const OptinRotator=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const formRef=useRef(null);useEffect(()=>{const formEl=formRef.current;if(!formEl)return;const handler=()=>{console.log(\"\u2705 Form submitted, waiting to redirect\u2026\");setTimeout(()=>{window.location.href=randomLink;},2e3);};formEl.addEventListener(\"submit\",handler);return()=>{formEl.removeEventListener(\"submit\",handler);};},[]);return /*#__PURE__*/_jsx(Component,{ref:node=>{formRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;},...props});});};\nexport const __FramerMetadata__ = {\"exports\":{\"OptinRotator\":{\"type\":\"reactHoc\",\"name\":\"OptinRotator\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./OptinRotator.map"],
  "mappings": "uGAA0F,IAAMA,EAAc,CAAC,wCAAwC,mCAAmC,EAAQC,EAAWD,EAAc,KAAK,MAAM,KAAK,OAAO,EAAEA,EAAc,MAAM,CAAC,EAAeE,EAAaC,GAAgCC,EAAW,CAACC,EAAMC,IAAM,CAAC,IAAMC,EAAQC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAOH,EAAQ,QAAQ,GAAG,CAACG,EAAO,OAAO,IAAMC,EAAQ,IAAI,CAAC,QAAQ,IAAI,kDAAwC,EAAE,WAAW,IAAI,CAACC,EAAO,SAAS,KAAKX,CAAW,EAAE,GAAG,CAAE,EAAE,OAAAS,EAAO,iBAAiB,SAASC,CAAO,EAAQ,IAAI,CAACD,EAAO,oBAAoB,SAASC,CAAO,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsBE,EAAKV,EAAU,CAAC,IAAIW,GAAM,CAACP,EAAQ,QAAQO,EAAQ,OAAOR,GAAM,WAAWA,EAAIQ,CAAI,EAAUR,IAAIA,EAAI,QAAQQ,EAAK,EAAE,GAAGT,CAAK,CAAC,CAAE,CAAC",
  "names": ["calendlyLinks", "randomLink", "OptinRotator", "Component", "Y", "props", "ref", "formRef", "pe", "ue", "formEl", "handler", "window", "p", "node"]
}
