{"version":3,"file":"BlockEmails.BPy3d_2U.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/ytA78aiY6DIuVngjnLbE/TniHZqo0oCskSChOO1si/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\":{\"preventGmailSubmission\":{\"type\":\"override\",\"name\":\"preventGmailSubmission\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withpreventGmailSubmission\":{\"type\":\"reactHoc\",\"name\":\"withpreventGmailSubmission\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlockEmails.map"],"mappings":"mKACA,SAAgB,GAAwB,CAAC,MAAM,CAAC,SAAS,GAAO,CAAC,EAAM,gBAAgB,CAEvF,IAAM,EAAK,EAAM,OACjB,IADyC,EAAK,cAAc,sBAAsB,EAAE,OAAO,IAC7E,aAAa,CAAC,SAAS,aAAa,CAAC,CAAC,MAAM,gEAAgE,CAAC,OAE3H,EAAK,QAAQ,EAAG,CAAqJ,SAAgB,EAA2B,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAuB,EAAM,CAAC,CAAC,mBANzT,IAMuC,IAAmF,CAAmM,EAA2B,YAAY"}