{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/ytA78aiY6DIuVngjnLbE/dcWFseArrSfExRE53Bue/BlockEmails.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";// Code override to block Gmail addresses from being submitted in a Framer form\nexport function preventGmailSubmission(){return{onSubmit:event=>{event.preventDefault()// Prevent the form from submitting immediately\n;// Access the form inputs, assuming the input field has a name or ID \"email\"\nconst form=event.target;const emailInput=form.querySelector('input[name=\"email\"]')?.value||\"\";// Check if the email ends with \"@gmail.com\"\nif(emailInput.toLowerCase().endsWith(\"@gmail.com\")){alert(\"Gmail addresses are not allowed. Please use a business email.\");return;// Stop submission\n}// If valid, submit the form normally\nform.submit();}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withpreventGmailSubmission(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...preventGmailSubmission(props)});};}withpreventGmailSubmission.displayName=\"preventGmailSubmission\";\nexport const __FramerMetadata__ = {\"exports\":{\"withpreventGmailSubmission\":{\"type\":\"reactHoc\",\"name\":\"withpreventGmailSubmission\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"preventGmailSubmission\":{\"type\":\"override\",\"name\":\"preventGmailSubmission\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlockEmails.map"],
  "mappings": "yFACO,SAASA,GAAwB,CAAC,MAAM,CAAC,SAASC,GAAO,CAACA,EAAM,eAAe,EAEtF,IAAMC,EAAKD,EAAM,OACjB,IADyCC,EAAK,cAAc,qBAAqB,GAAG,OAAO,IAC7E,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC,MAAM,+DAA+D,EAAE,MAC3H,CACAA,EAAK,OAAO,CAAE,CAAC,CAAE,CAA2J,SAASC,EAA2BC,EAAE,CAAC,OAAOC,IAAQC,EAA+BC,CAAuC,EAASC,EAAKJ,EAAE,CAAC,GAAGC,EAAM,GAAGL,EAAuBK,CAAK,CAAC,CAAC,EAAI,CAACF,EAA2B,YAAY",
  "names": ["preventGmailSubmission", "event", "form", "withpreventGmailSubmission", "C", "props", "re", "DataObserverContext", "p"]
}
