import{a as K,b as ie}from"./chunk-3SEK3MEZ.js";import{a as H,b as U,c as J}from"./chunk-ITLUXIFD.js";import{B as k,a as P,b as F,f as O,i as A,m as D,t as L,v as W,z as j}from"./chunk-A32B57A4.js";import{a as G,b as ee}from"./chunk-PM3MTE6X.js";import{b as z,c as $}from"./chunk-IOINCEV4.js";import{Eb as f,Gd as B,Ja as h,Ka as c,Ob as I,Pc as x,Rc as p,Sc as q,Tb as _,Tc as b,Xc as w,Yc as S,Zc as R,b as u,bd as N,dc as E,ec as g,gc as v,ic as T,lc as C,ma as Z,md as d,nd as m,qc as l,ra as M,rc as o,wc as y,zb as a,zc as V}from"./chunk-JSJB5BKT.js";import{e as Y}from"./chunk-SZAW6ZBW.js";function te(n,Q){n&1&&(l(0,"div",3),p(1),d(2,"translate"),o()),n&2&&(a(),b(" ",m(2,1,"TheEmailIsInvalid")," "))}function ne(n,Q){n&1&&(l(0,"div",3),p(1),d(2,"translate"),o()),n&2&&(a(),b(" ",m(2,1,"TheEmailIsRequired")," "))}var be,ae=Y(()=>{B();k();Z();J();ie();ee();B();k();$();J();be=(()=>{class n{constructor(e,r){this.translatorService=r,this.labelName="lblEmail",this.isRequired=!1,this.styleClass="",this.disabled=!1,this.maxlength=null,this.invalidCharacterMessage=this.translatorService.translate("TheNameCanNotContainsTheInvalidCharacter","\\"),this.innerValue="",this.onModelChange=u,this.onModelTouched=u,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(r){return new(r||n)(f(A,9),f(z))}}static{this.\u0275cmp=I({type:n,selectors:[["sd-input-email"]],inputs:{labelName:"labelName",isRequired:"isRequired",styleClass:"styleClass",disabled:"disabled",maxlength:"maxlength",value:"value"},features:[N([{provide:P,useExisting:M(()=>n),multi:!0}])],decls:9,vars:18,consts:[["emailModel","ngModel"],[1,"email-label"],["pInputText","","name","email","sdValidateEmail","",3,"ngModelChange","blur","disabled","required","ngModel","maxlength"],[1,"dvl-form-error"]],template:function(r,t){if(r&1){let i=y();l(0,"div"),d(1,"translate"),l(2,"label",1),p(3),d(4,"translate"),o(),l(5,"input",2,0),R("ngModelChange",function(s){return h(i),S(t.value,s)||(t.value=s),c(s)}),V("blur",function(s){return h(i),c(t.onInputBlur(s))}),o(),_(7,te,3,3,"div",3)(8,ne,3,3,"div",3),o()}if(r&2){let i=x(6);v("form-error",i.errors&&i.errors.email||i.invalid),E("data-error",i.errors&&i.errors.email?m(1,14,"TheEmailIsRequired"):t.invalidCharacterMessage),a(2),v("required",t.isRequired),a(),q(m(4,16,t.labelName)),a(2),T(t.styleClass),g("disabled",t.disabled)("required",t.isRequired),w("ngModel",t.value),g("maxlength",t.maxlength),a(2),C(i.errors&&i.errors.email?7:-1),a(),C(t.isRequired&&i.invalid&&(i.dirty||i.touched)&&(i!=null&&i.errors.required)?8:-1)}},dependencies:[j,F,O,L,W,D,U,H,K,G],styles:[".email-label[_ngcontent-%COMP%]{display:block;font-size:12px;font-family:var(--font-roboto);color:var(--label-input-color);font-weight:400;padding:6px 3px 6px 0;text-align:left}"]})}}return n})()});export{be as a,ae as b};
