import{i as O,j as R}from"./chunk-Y5QSZXVS.js";import{e as G,h as D,i as N,l as B,m as z}from"./chunk-M6VZ5SCG.js";import{$ as C,Fb as w,Ha as u,Ja as a,Pf as V,Qf as P,Rb as F,Ta as r,Ua as l,V as x,Va as g,Za as h,Zb as T,aa as S,ab as d,cb as f,da as m,db as v,ea as s,eb as E,la as M,lg as L,mg as j,ob as y,pb as I,qb as b,ta as n,yf as k}from"./chunk-PAINK2EC.js";var H=[[["","prefixContent",""]]],J=["[prefixContent]"];function K(e,_){e&1&&(r(0,"span",6),E(1),l())}function Q(e,_){if(e&1&&g(0,"mat-icon",7),e&2){let t=f();a("svgIcon",t.customSVGIcon)}}function U(e,_){if(e&1&&(r(0,"mat-icon"),I(1),l()),e&2){let t=f();n(),b(t.matIcon)}}var ae=(()=>{class e{constructor(){this.withPrefix=!1,this.inputText="",this.inputLabel="",this.enabled=!0,this.editEnabled=!0,this.matIcon="mode_edit",this.editClick=new M}editClicked(t){this.editClick.emit(),t.stopPropagation()}actionFocus(t){t.currentTarget.dispatchEvent(new Event("blur"))}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=C({type:e,selectors:[["abs-selectable-input"]],inputs:{withPrefix:"withPrefix",inputText:"inputText",inputLabel:"inputLabel",enabled:"enabled",editEnabled:"editEnabled",matIcon:"matIcon",customSVGIcon:"customSVGIcon"},outputs:{editClick:"editClick"},ngContentSelectors:J,decls:9,vars:7,consts:[["defaultIcon",""],["appearance","outline","subscriptSizing","dynamic",1,"abs-form-field","selectable-form-field"],["matPrefix","",4,"ngIf"],["type","text","matInput","","readonly","true",3,"focus","value","disabled"],["mat-icon-button","","matSuffix","","color","primary",3,"click","disabled"],[3,"svgIcon",4,"ngIf","ngIfElse"],["matPrefix",""],[3,"svgIcon"]],template:function(o,i){if(o&1){let c=h();v(H),r(0,"mat-form-field",1)(1,"mat-label"),I(2),l(),u(3,K,2,0,"span",2),r(4,"input",3),d("focus",function(p){return m(c),s(i.actionFocus(p))}),l(),r(5,"button",4),d("click",function(p){return m(c),s(i.editClicked(p))}),u(6,Q,1,1,"mat-icon",5)(7,U,2,1,"ng-template",null,0,w),l()()}if(o&2){let c=y(8);n(2),b(i.inputLabel),n(),a("ngIf",i.withPrefix),n(),a("value",i.inputText)("disabled",!i.enabled),n(),a("disabled",!i.enabled||!i.editEnabled),n(),a("ngIf",i.customSVGIcon)("ngIfElse",c)}},dependencies:[F,B,G,D,N,O,V,L],encapsulation:2})}}return e})();var W=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275mod=S({type:e})}static{this.\u0275inj=x({imports:[T,k,z,R,P,j]})}}return e})();export{ae as a,W as b};
