import {f,E}from'./chunk-DCh-qxWe.js';import {m,t as t$1}from'./chunk-KghqFjfJ.js';import {J,c as tS,aV as ut,a6 as pi,cp as Mi,i as S,H as ul,dD as Be,w as wo,c1 as Tc,N as Sr,f as QT,bg as lt,b$ as Yo,bh as at,dN as ci,i4 as qn,bi as et,cw as Ac,cB as Kt,u as R,bk as i_,a0 as ks,z as vM,v as W_,a2 as Uu,bl as dv,bm as Bp,bn as Z_,bo as $p,a3 as Py,bB as oT,bp as QC,co as E_,ce as zy,ch as My,F as EM,A as Iw,c2 as iv,T as P_,a4 as Sy,bq as uv,bC as sT,br as ZC,eU as aM,eV as Be$1,eW as Mi$1,C as Qu}from'./main-WUGO6e7n.js';function oe(a,Z){a&1&&(ks(0,"div",3),W_(1),vM(2,"translate"),Uu()),a&2&&(Iw(),Qu(" ",EM(2,1,"TheEmailIsInvalid")," "));}function le(a,Z){a&1&&(ks(0,"div",3),W_(1),vM(2,"translate"),Uu()),a&2&&(Iw(),Qu(" ",EM(2,1,"TheEmailIsRequired")," "));}var ye,se=J(()=>{tS();ut();pi();Mi();f();S();m();tS();ut();ul();Mi();ye=(()=>{class a{constructor(e,n){this.translatorService=n,this.labelName="lblEmail",this.isRequired=!1,this.styleClass="",this.disabled=!1,this.maxlength=null,this.autoFocus=!1,this.placeholder="",this.invalidCharacterMessage=this.translatorService.translate("TheNameCanNotContainsTheInvalidCharacter","\\"),this.innerValue="",this.onModelChange=Be,this.onModelTouched=Be,this.parent=e;}get value(){return this.innerValue}set value(e){e!==null&&e!==this.innerValue&&(this.writeValue(e),this.onModelChange(e));}isFormSubmitted(){return this.parent.submitted}onInputBlur(e){this.onModelTouched();}registerOnChange(e){this.onModelChange=e;}registerOnTouched(e){this.onModelTouched=e;}writeValue(e){this.innerValue=e;}static{this.\u0275fac=function(n){return new(n||a)(wo(Tc,9),wo(Sr))};}static{this.\u0275cmp=QT({type:a,selectors:[["sd-input-email"]],inputs:{labelName:"labelName",isRequired:"isRequired",styleClass:"styleClass",disabled:"disabled",maxlength:"maxlength",autoFocus:"autoFocus",placeholder:"placeholder",value:"value"},features:[aM([{provide:Be$1,useExisting:Mi$1(()=>a),multi:!0}])],decls:9,vars:20,consts:[["emailModel","ngModel"],[1,"block","text-xs","font-normal","py-1.5","pr-[3px]","text-left","text-[var(--text-400)]"],["pInputText","","name","email","sdValidateEmail","","sdAutoFocusInput","",3,"ngModelChange","blur","disabled","required","ngModel","maxlength","autoFocus","placeholder"],[1,"dvl-form-error"]],template:function(n,i){if(n&1){let t=i_();ks(0,"div"),vM(1,"translate"),ks(2,"label",1),W_(3),vM(4,"translate"),Uu(),ks(5,"input",2,0),dv("ngModelChange",function(s){return Bp(t),Z_(i.value,s)||(i.value=s),$p(s)}),Py("blur",function(s){return i.onInputBlur(s)}),Uu(),oT(),QC(7,oe,3,3,"div",3),QC(8,le,3,3,"div",3),Uu();}if(n&2){let t=E_(6);zy("form-error",t.errors&&t.errors.email||t.invalid),My("data-error",t.errors&&t.errors.email?EM(1,16,"TheEmailIsRequired"):i.invalidCharacterMessage),Iw(2),zy("required",i.isRequired),Iw(),iv(EM(4,18,i.labelName)),Iw(2),P_(i.styleClass),Sy("disabled",i.disabled)("required",i.isRequired),uv("ngModel",i.value),Sy("maxlength",i.maxlength)("autoFocus",i.autoFocus)("placeholder",i.placeholder),sT(),Iw(2),ZC(t.errors&&t.errors.email?7:-1),Iw(),ZC(i.isRequired&&t.invalid&&(t.dirty||t.touched)&&t?.errors.required?8:-1);}},dependencies:[lt,Yo,at,ci,qn,et,Ac,Kt,E,t$1,R],encapsulation:2,changeDetection:1});}}return a})();});export{se as s,ye as y};