import{d as z,e as O}from"./chunk-7PXFMVM2.js";import{a as j,d as G,e as D,h as N,i as B}from"./chunk-XLLQ6366.js";import{Qc as F,ad as V,bd as k,yd as P,zd as L}from"./chunk-CBXQYRPM.js";import{Bc as w,Jb as E,Ka as o,Kb as s,Lb as d,ab as p,ac as y,cb as a,da as b,ka as I,la as _,mb as l,nb as r,ob as g,qa as x,ra as C,sb as M,tc as T,vb as u,xb as c,yb as h,za as S,zb as v}from"./chunk-LVXYIJUI.js";var A=[[["","prefixContent",""]]],H=["[prefixContent]"];function J(t,m){t&1&&(l(0,"span",5),v(1),r())}function K(t,m){if(t&1&&g(0,"mat-icon",8),t&2){let e=c(2);a("svgIcon",e.customSVGIcon)}}function Q(t,m){if(t&1&&(l(0,"mat-icon"),s(1),r()),t&2){let e=c(2);o(),d(e.matIcon)}}function U(t,m){if(t&1){let e=M();l(0,"button",6),u("click",function(i){x(e);let f=c();return C(f.editClicked(i))}),p(1,K,1,1,"mat-icon",7)(2,Q,2,1,"ng-template",null,0,y),r()}if(t&2){let e=E(3),n=c();a("disabled",!n.enabled||!n.editEnabled),o(),a("ngIf",n.customSVGIcon)("ngIfElse",e)}}var at=(()=>{class t{constructor(){this.withPrefix=!1,this.inputText="",this.inputLabel="",this.enabled=!0,this.editEnabled=!0,this.matIcon="mode_edit",this.iconVisible=!0,this.editClick=new S}editClicked(e){this.editClick.emit(),e.stopPropagation()}actionFocus(e){e.currentTarget.dispatchEvent(new Event("blur"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["abs-selectable-input"]],inputs:{withPrefix:"withPrefix",inputText:"inputText",inputLabel:"inputLabel",enabled:"enabled",editEnabled:"editEnabled",matIcon:"matIcon",customSVGIcon:"customSVGIcon",iconVisible:"iconVisible"},outputs:{editClick:"editClick"},ngContentSelectors:H,decls:6,vars:5,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,"disabled","click",4,"ngIf"],["matPrefix",""],["mat-icon-button","","matSuffix","","color","primary",3,"click","disabled"],[3,"svgIcon",4,"ngIf","ngIfElse"],[3,"svgIcon"]],template:function(n,i){n&1&&(h(A),l(0,"mat-form-field",1)(1,"mat-label"),s(2),r(),p(3,J,2,0,"span",2),l(4,"input",3),u("focus",function(R){return i.actionFocus(R)}),r(),p(5,U,4,3,"button",4),r()),n&2&&(o(2),d(i.inputLabel),o(),a("ngIf",i.withPrefix),o(),a("value",i.inputText)("disabled",!i.enabled),o(),a("ngIf",i.iconVisible))},dependencies:[T,N,j,G,D,z,V,P],encapsulation:2})}}return t})();var W=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=_({type:t})}static{this.\u0275inj=b({imports:[w,F,B,O,k,L]})}}return t})();export{at as a,W as b};
