{"version":3,"file":"BusinessEmail.Dm_2d4BC.mjs","names":[],"sources":["https:/framerusercontent.com/modules/paQ6AGSRV53MjrUMj1Vf/rEHym8QDvYjeSHKouuB3/BusinessEmail.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Add or remove any free email domains you want to block here\nconst blockedDomains=[\"gmail.com\",\"yahoo.com\",\"hotmail.com\",\"outlook.com\",\"aol.com\",\"icloud.com\",\"protonmail.com\"];export function withBusinessEmail(Component){return props=>{const handleInput=e=>{const email=e.target.value.toLowerCase();const domain=email.split(\"@\")[1];// Check if the domain is in our blocked list\nif(domain&&blockedDomains.includes(domain)){// This triggers the native browser error and prevents form submission\ne.target.setCustomValidity(\"Please enter a valid business email address.\");}else{// Clears the error if a valid business email is typed\ne.target.setCustomValidity(\"\");}// Keep default Framer functionality running\nif(props.onInput){props.onInput(e);}};return /*#__PURE__*/_jsx(Component,{...props,onInput:handleInput});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBusinessEmail\":{\"type\":\"reactHoc\",\"name\":\"withBusinessEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BusinessEmail.map"],"mappings":"oGACmH,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAY,GAAG,CAA0C,IAAM,EAAnC,EAAE,OAAO,MAAM,aAAa,CAAoB,MAAM,IAAI,CAAC,GACzQ,GAAQ,EAAe,SAAS,EAAO,CAC1C,EAAE,OAAO,kBAAkB,+CAA+C,CAC1E,EAAE,OAAO,kBAAkB,GAAG,CAC3B,EAAM,SAAS,EAAM,QAAQ,EAAE,EAAI,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,EAAY,CAAC,qBAL7D,CACrC,EAAe,CAAC,YAAY,YAAY,cAAc,cAAc,UAAU,aAAa,iBAAiB"}