{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/2FTCNNjaElkr8uc0Nxn0/e376RcafXDTmlzoObsIi/Typeform.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef,useEffect}from\"react\";export function withTypeform(Component){return props=>{const withEmailForm=\"https://zingage.typeform.com/to/FxG2RgnT#email=\";const withoutEmailForm=\"https://zingage.typeform.com/to/dDFIy8Mk\";const formRef=useRef(null);const onSubmit1=e=>{if(e){e.preventDefault();}try{const email=e.target.querySelector(\"input\").value;if(email){window.location.href=`${withEmailForm}${encodeURIComponent(email)}`;}else{window.location.href=`${withoutEmailForm}`;}}catch{window.location.href=`${withoutEmailForm}`;}};useEffect(()=>{const form=formRef.current;if(form){form.addEventListener(\"submit\",onSubmit1);return()=>{form.removeEventListener(\"submit\",onSubmit1);};}else{console.log(\"no form\");}},[]);return /*#__PURE__*/_jsx(Component,{ref:formRef,...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withTypeform\":{\"type\":\"reactHoc\",\"name\":\"withTypeform\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Typeform.map"],
  "mappings": "gGAAsF,SAASA,EAAaC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAMC,EAAc,kDAAwDC,EAAiB,2CAAiDC,EAAQC,EAAO,IAAI,EAAQC,EAAUC,GAAG,CAAIA,GAAGA,EAAE,eAAe,EAAG,GAAG,CAAC,IAAMC,EAAMD,EAAE,OAAO,cAAc,OAAO,EAAE,MAASC,EAAOC,EAAO,SAAS,KAAK,GAAGP,CAAa,GAAG,mBAAmBM,CAAK,CAAC,GAASC,EAAO,SAAS,KAAK,GAAGN,CAAgB,EAAI,MAAM,CAACM,EAAO,SAAS,KAAK,GAAGN,CAAgB,EAAG,CAAC,EAAE,OAAAO,EAAU,IAAI,CAAC,IAAMC,EAAKP,EAAQ,QAAQ,GAAGO,EAAM,OAAAA,EAAK,iBAAiB,SAASL,CAAS,EAAQ,IAAI,CAACK,EAAK,oBAAoB,SAASL,CAAS,CAAE,EAAQ,QAAQ,IAAI,SAAS,CAAG,EAAE,CAAC,CAAC,EAAsBM,EAAKZ,EAAU,CAAC,IAAII,EAAQ,GAAGH,CAAK,CAAC,CAAE,CAAE",
  "names": ["withTypeform", "Component", "props", "withEmailForm", "withoutEmailForm", "formRef", "pe", "onSubmit1", "e", "email", "window", "ue", "form", "p"]
}
