import {J,aV as ut,c as tS,bW as JT,eU as aM,nc as jt,eW as Mi}from'./main-WUGO6e7n.js';var a,m=J(()=>{a=class{constructor(){this.emailPattern=/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;}validate(i){return this.emailPattern.test(this.extractEmail(i))}extractEmail(i){let e=i.lastIndexOf("<"),r=i.lastIndexOf(">");return e>=0&&r>=e?i.substring(e+1,r-1):i}};});var E,f=J(()=>{ut();tS();m();tS();E=(()=>{class t{constructor(){this.emailHelper=new a;}validate(e){return !e.value||e.value.length===0||this.emailHelper.validate(e.value)?null:{email:{valid:!1}}}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275dir=JT({type:t,selectors:[["sd-input-email"],["","sdValidateEmail","","ngModel",""]],features:[aM([{provide:jt,useExisting:Mi(()=>t),multi:!0}])]});}}return t})();});export{E,f};