{"version":3,"file":"EmailValidation.VM0YHAP1.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ehuBekFZL67G3NwPjCs3/zteh7xxAnrrX9FXAqts6/EmailValidation.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";export function withStrictEmail(Component){return props=>{const containerRef=useRef(null);useEffect(()=>{// Wait for the component to mount, then find the inner input tag\nconst inputElement=containerRef.current?.querySelector(\"input\");if(inputElement){// Force the pattern attribute directly on the HTML element\n// Regex: Text + @ + Text + . + Text\ninputElement.setAttribute(\"pattern\",\"^[^@\\\\s]+@[^@\\\\s]+\\\\.[^@\\\\s]+$\");// Set the validation message\ninputElement.setAttribute(\"title\",\"Please enter a full email address (e.g. name@domain.com)\");// Ensure it is required\ninputElement.setAttribute(\"required\",\"true\");}},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:containerRef});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withStrictEmail\":{\"type\":\"reactHoc\",\"name\":\"withStrictEmail\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EmailValidation.map"],"mappings":"yHAA+E,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAaA,EAAO,KAAK,CAKpH,OALqH,MAAc,CACvL,IAAM,EAAa,EAAa,SAAS,cAAc,QAAQ,CAAI,IAEnE,EAAa,aAAa,UAAU,iCAAiC,CACrE,EAAa,aAAa,QAAQ,2DAA2D,CAC7F,EAAa,aAAa,WAAW,OAAO,GAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAa,CAAC,mBALxE,IAAoC"}