{"version":3,"file":"EmailValidation.yXtMcdqr.mjs","names":[],"sources":["https:/framerusercontent.com/modules/joZpQaGpWFa28egR9rS8/2p664CGioj9RdYylNSNq/EmailValidation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const blocked=[\"gmail.com\",\"yahoo.com\",\"outlook.com\",\"hotmail.com\",\"live.com\",\"icloud.com\",\"proton.me\",\"protonmail.com\",\"aol.com\",\"yandex.com\",\"zoho.com\"];export function withEmailValidation(Component){return props=>{const handleBlur=e=>{const value=e.target.value||\"\";const domain=value.split(\"@\")[1]?.toLowerCase();// if (domain && blocked.includes(domain)) {\n//    e.target.setCustomValidity(\n//        \"Please use your business email address.\"\n//    )\n//    e.target.reportValidity()\n// } else {\n//    e.target.setCustomValidity(\"\")\n// }\n};return /*#__PURE__*/_jsx(Component,{...props,onBlur:handleBlur});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withEmailValidation\":{\"type\":\"reactHoc\",\"name\":\"withEmailValidation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmailValidation.map"],"mappings":"oGAAsM,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAW,GAAG,EAAa,EAAE,OAAO,OAAO,IAAsB,MAAM,IAAI,CAAC,IAAI,aAAa,EAQrW,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,OAAO,EAAW,CAAC,mBARvB"}