import {C,G}from'./chunk-Bsg-Mgv9.js';import {J,c as tS,aV as ut,a6 as pi,c9 as qn,cp as Mi,by as it,dD as Be,f as QT,cw as Ac,cB as Kt,bg as lt,b$ as Yo,bh as at,dN as ci,bi as et,cc as Fn,dW as h_,a0 as ks,bp as QC,cE as py,a2 as Uu,d8 as CM,co as E_,A as Iw,br as ZC,a4 as Sy,eU as aM,eV as Be$1,eW as Mi$1,bk as i_,bl as dv,a3 as Py,bm as Bp,bz as f_,bo as $p,bB as oT,T as P_,cd as Gy,ce as zy,bq as uv,bC as sT,cn as Ry,dX as g_,bn as Z_}from'./main-WUGO6e7n.js';function ee(i,_){if(i&1){let e=i_();ks(0,"input",6),dv("ngModelChange",function(t){Bp(e);let n=f_();return Z_(n.value,t)||(n.value=t),$p(t)}),Py("focus",function(t){Bp(e);let n=f_();return $p(n.onFocus(t))})("input",function(t){Bp(e);let n=f_();return $p(n.onInput(t))})("keyup",function(t){Bp(e);let n=f_();return $p(n.onKeyup(t))})("blur",function(t){Bp(e);let n=f_();return $p(n.onBlur(t))}),Uu(),oT();}if(i&2){let e=f_();P_(e.styleClass),Gy("border-top-right-radius",e.noBorderRight?"0":null)("border-bottom-right-radius",e.noBorderRight?"0":null),zy("dwl-ignore",e.dwlIgnore),Sy("disabled",e.disabled)("readonly",e.readonly),uv("ngModel",e.value),sT();}}function te(i,_){if(i&1){let e=i_();ks(0,"input",7),dv("ngModelChange",function(t){Bp(e);let n=f_();return Z_(n.value,t)||(n.value=t),$p(t)}),Py("focus",function(t){Bp(e);let n=f_();return $p(n.onFocus(t))})("input",function(t){Bp(e);let n=f_();return $p(n.onInput(t))})("keyup",function(t){Bp(e);let n=f_();return $p(n.onKeyup(t))})("blur",function(t){Bp(e);let n=f_();return $p(n.onBlur(t))}),Uu(),oT();}if(i&2){let e=f_();P_(e.styleClass),Gy("border-top-right-radius",e.noBorderRight?"0":null)("border-bottom-right-radius",e.noBorderRight?"0":null),zy("dwl-ignore",e.dwlIgnore),Sy("disabled",e.disabled)("readonly",e.readonly),uv("ngModel",e.value),Sy("required",e.required),sT();}}function ne(i,_){if(i&1){let e=i_();ks(0,"textarea",8),dv("ngModelChange",function(t){Bp(e);let n=f_();return Z_(n.value,t)||(n.value=t),$p(t)}),Uu(),oT();}if(i&2){let e=f_();P_(e.styleClass),Gy("border-top-right-radius",e.noBorderRight?"0":null)("border-bottom-right-radius",e.noBorderRight?"0":null),zy("dwl-ignore",e.dwlIgnore),Sy("disabled",e.disabled)("readonly",e.readonly),uv("ngModel",e.value),sT();}}function ie(i,_){i&1&&Ry(0);}function oe(i,_){i&1&&g_(0);}var $,fe,re=J(()=>{tS();ut();pi();qn();Mi();C();tS();Mi();ut();$=["*"];fe=(()=>{class i{constructor(){this.required=!1,this.dwlIgnore=!1,this.noBorderRight=!1,this.focus=new it,this.input=new it,this.keyup=new it,this.blur=new it,this.onModelChange=Be,this.onModelTouched=Be,this._value="";}get value(){return this._value}set value(e){e!==this._value&&(this._value=e,this.onModelChange(this._value));}registerOnChange(e){this.onModelChange=e;}registerOnTouched(e){this.onModelTouched=e;}setDisabledState(e){}writeValue(e){e!=null&&(this.value=e);}onFocus(e){this.focus.emit(e);}onInput(e){this.input.emit(e);}onKeyup(e){this.keyup.emit(e);}onBlur(e){this.blur.emit(e);}static{this.\u0275fac=function(o){return new(o||i)};}static{this.\u0275cmp=QT({type:i,selectors:[["dvl-input-with-action"]],inputs:{copyable:"copyable",sensitive:"sensitive",type:"type",readonly:"readonly",disabled:"disabled",styleClass:"styleClass",required:"required",dwlIgnore:"dwlIgnore",noBorderRight:"noBorderRight"},outputs:{focus:"focus",input:"input",keyup:"keyup",blur:"blur"},features:[aM([{provide:Be$1,useExisting:Mi$1(()=>i),multi:!0}])],ngContentSelectors:$,decls:7,vars:4,consts:[["template",""],[1,"flex","w-full"],["autocomplete","new-password","pInputText","","type","text",1,"flex-1",3,"dwl-ignore","class","disabled","readonly","ngModel","border-top-right-radius","border-bottom-right-radius"],["autocomplete","new-password","pInputText","","type","password",1,"flex-1",3,"dwl-ignore","class","disabled","readonly","ngModel","border-top-right-radius","border-bottom-right-radius","required"],["pInputTextarea","",1,"flex-1",3,"class","dwl-ignore","disabled","readonly","ngModel","border-top-right-radius","border-bottom-right-radius"],[4,"ngTemplateOutlet"],["autocomplete","new-password","pInputText","","type","text",1,"flex-1",3,"ngModelChange","focus","input","keyup","blur","disabled","readonly","ngModel"],["autocomplete","new-password","pInputText","","type","password",1,"flex-1",3,"ngModelChange","focus","input","keyup","blur","disabled","readonly","ngModel","required"],["pInputTextarea","",1,"flex-1",3,"ngModelChange","disabled","readonly","ngModel"]],template:function(o,t){if(o&1&&(h_(),ks(0,"div",1),QC(1,ee,1,11,"input",2),QC(2,te,1,12,"input",3),QC(3,ne,1,11,"textarea",4),py(4,ie,1,0,"ng-container",5),Uu(),py(5,oe,1,0,"ng-template",null,0,CM)),o&2){let n=E_(6);Iw(),ZC(t.type==="text"?1:-1),Iw(),ZC(t.type==="password"?2:-1),Iw(),ZC(t.type==="textarea"?3:-1),Iw(),Sy("ngTemplateOutlet",n);}},dependencies:[Ac,Kt,lt,Yo,at,ci,et,G,Fn],encapsulation:2,changeDetection:1});}}return i})();});export{fe as f,re as r};