{"version":3,"file":"BlockList.CLVevIPe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Sx0csNspderueXlxrmlF/MD84Bm5RvycDyCWHz6JA/BlockList.js"],"sourcesContent":["/**\n * @framerDisableUnlink\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n */import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{ControlType,addPropertyControls}from\"framer\";export function withFormValidation(Component){return function FormValidationHOC(props){useEffect(()=>{let emailInput=null;let form=null;const invalidDomains=[\"aspeninsights.com\",\"clinthealth.com\",\"novel.care\",\"bekhealth.com\",\"tempusaiagency.com\",\"inato.com\",\"florencehc.com\",\"rev1ventures.com\",\"predoc.ai\",\"aretihealth.com\",\"1nhealth-studies.com\",\"deep6.ai\",\"elligohealthresearch.com\",\"delfa.ai\",\"83bar.com\",\"grovetrials.com\",\"nursenavigate.com\",\"qurai.amsterdam\",\"healthmatch.io\",\"clinical.ly\",\"clarahealth.com\",\"lindushealth.com\",\"rxe2.com\",\"evidently.com\",\"dyaniahealth.com\",\"inovalon.com\",\"gmail.com\"];const validateEmail=()=>{if(!emailInput)return;const value=emailInput.value.toLowerCase().trim();const emailDomain=value.split(\"@\")[1];if(emailDomain&&invalidDomains.includes(emailDomain)){emailInput.setCustomValidity(\"This email domain is not allowed.\");}else{emailInput.setCustomValidity(\"\");}emailInput.reportValidity();};const handleFormSubmit=event=>{validateEmail();if(!emailInput?.checkValidity()){event.preventDefault();}};const initializeValidation=()=>{emailInput=document.querySelector(\"input[name='Work Email']\");form=emailInput?.closest(\"form\");if(emailInput){emailInput.addEventListener(\"blur\",validateEmail);emailInput.addEventListener(\"input\",validateEmail);}if(form){form.addEventListener(\"submit\",handleFormSubmit);}return()=>{emailInput?.removeEventListener(\"blur\",validateEmail);emailInput?.removeEventListener(\"input\",validateEmail);form?.removeEventListener(\"submit\",handleFormSubmit);};};const retryInterval=setInterval(()=>{if(document.querySelector(\"input[name='Work Email']\")){clearInterval(retryInterval);initializeValidation();}},100);return()=>clearInterval(retryInterval);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}addPropertyControls(withFormValidation,{children:{type:ControlType.ComponentInstance,title:\"Children\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"withFormValidation\":{\"type\":\"reactHoc\",\"name\":\"withFormValidation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BlockList.map"],"mappings":"qKAI+H,SAAgB,EAAmB,EAAU,CAAC,OAAO,SAA2B,EAAM,CAA4lD,OAA3lD,MAAc,CAAC,IAAI,EAAW,KAAS,EAAK,KAAW,EAAe,qZAAgc,CAAO,MAAkB,CAAC,GAAG,CAAC,EAAW,OAAyD,IAAM,EAA5C,EAAW,MAAM,aAAa,CAAC,MAAM,CAAyB,MAAM,IAAI,CAAC,GAAM,GAAa,EAAe,SAAS,EAAY,CAAE,EAAW,kBAAkB,oCAAoC,CAAO,EAAW,kBAAkB,GAAG,CAAE,EAAW,gBAAgB,EAAS,EAAiB,GAAO,CAAC,GAAe,CAAK,GAAY,eAAe,EAAE,EAAM,gBAAgB,EAAU,OAA0B,EAAW,SAAS,cAAc,2BAA2B,CAAC,EAAK,GAAY,QAAQ,OAAO,CAAI,IAAY,EAAW,iBAAiB,OAAO,EAAc,CAAC,EAAW,iBAAiB,QAAQ,EAAc,EAAK,GAAM,EAAK,iBAAiB,SAAS,EAAiB,KAAY,CAAC,GAAY,oBAAoB,OAAO,EAAc,CAAC,GAAY,oBAAoB,QAAQ,EAAc,CAAC,GAAM,oBAAoB,SAAS,EAAiB,GAAW,EAAc,gBAAgB,CAAI,SAAS,cAAc,2BAA2B,GAAE,cAAc,EAAc,CAAC,GAAsB,GAAI,IAAI,CAAC,UAAU,cAAc,EAAc,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,mBAAjzD,IAA6B,IAAoD,CAAouD,EAAoB,EAAmB,CAAC,SAAS,CAAC,KAAK,EAAY,kBAAkB,MAAM,WAAW,CAAC,CAAC"}