{"version":3,"file":"EmailValidation.DSGLXjZM.mjs","names":[],"sources":["https:/framerusercontent.com/modules/ZZaRNyFTrnPE7ooAEncN/YM1IDUfoS5Cs7vV8mDML/EmailValidation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// List of free email domains to block\nconst blockedDomains=[];export function withBusinessEmail(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,onChange:event=>{const input=event.target;const value=input.value.toLowerCase();const emailParts=value.split(\"@\");// If there is a domain part\nif(emailParts.length>1){const domain=emailParts[1];// Check if the domain is in the blocked list\nif(blockedDomains.includes(domain)){// Set a custom error message\ninput.setCustomValidity(\"Please enter a business email address (no Gmail, Yahoo, etc).\");}else{// Clear error if valid\ninput.setCustomValidity(\"\");}}else{input.setCustomValidity(\"\");}// Ensure the original onChange (if any) still runs\nif(props.onChange){props.onChange(event);}}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBusinessEmail\":{\"type\":\"reactHoc\",\"name\":\"withBusinessEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmailValidation.map"],"mappings":"oGACwB,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,GAAO,CAAC,IAAM,EAAM,EAAM,OAAmD,EAAhC,EAAM,MAAM,aAAa,CAAwB,MAAM,IAAI,CAClP,GAAG,EAAW,OAAO,EAAE,CAAC,IAAM,EAAO,EAAW,GAC7C,EAAe,SAAS,EAAO,CAClC,EAAM,kBAAkB,gEAAgE,CACxF,EAAM,kBAAkB,GAAG,MAAQ,EAAM,kBAAkB,GAAG,CAC3D,EAAM,UAAU,EAAM,SAAS,EAAM,EAAI,CAAC,oBANF,CACrC,EAAe,EAAE"}