import{a as h,b as E}from"./chunk-5TTXT2K2.js";import{a as P}from"./chunk-3DEA4WWC.js";import{Bb as l,Db as r,Ec as v,Ib as u,Jb as s,Kb as m,Kc as f,Lb as I,Lc as b,Sa as _,Ua as y,Yc as g,Za as n,Zb as p,ib as x,jc as T,lb as V,lc as C,mc as d,oc as c,xd as M}from"./chunk-GJDGQISV.js";var N=(()=>{class e{transform(t){return typeof t=="number"&&(t=t.toString()),t!=null?t.replace(/\n/g,"<br />"):t}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275pipe=V({name:"newlines",type:e,pure:!0})}}return e})();var D=(e,o)=>({labelFilledInput:e,labelEmptyInput:o});function L(e,o){if(e&1&&(s(0,"a",3),d(1),f(2,"number"),m()),e&2){let t=p(2);u("href",t.inputValue,y),n(),c(" ",t.inputValueType()==="number"?b(2,2,t.inputValue):t.inputValue," ")}}function w(e,o){if(e&1&&(d(0),f(1,"number")),e&2){let t=p(2);c(" ",t.inputValueType()==="number"?b(1,1,t.inputValue):t.inputValue," ")}}function F(e,o){if(e&1&&(s(0,"p",1),l(1,L,3,4,"a",3)(2,w,2,3),m()),e&2){let t=p();n(),r(t.isLink()?1:2)}}function z(e,o){if(e&1&&(I(0,"p",2),f(1,"newlines")),e&2){let t=p();u("innerHTML",b(1,1,t.inputValue),_)}}function O(e,o){if(e&1&&d(0),e&2){let t=p();c(" ",t.labelValue," ")}}var K=(()=>{class e{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=g(!0),this.disabled=!1,this.class=g("mb-6"),this.tooltip="",this.isLink=g(!1),this.isInputFilled=!1,this.isNotEmpty=P.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=x({type:e,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:[1,"labelVisible"],disabled:"disabled",class:[1,"class"],tooltip:"tooltip",isLink:[1,"isLink"]},decls:5,vars:13,consts:[["matTooltipPosition","above",3,"matTooltip"],[1,"text-truncate"],[3,"innerHTML"],["target","_blank",3,"href"]],template:function(a,i){a&1&&(s(0,"div",0),l(1,F,3,1,"p",1),l(2,z,2,3,"p",2),s(3,"label"),l(4,O,1,1),m()()),a&2&&(C(i.class()),T("disabled",i.disabled),u("matTooltip",i.tooltip),n(),r(i.isNotEmpty(i.inputValue)&&i.inputType=="input"?1:-1),n(),r(i.isNotEmpty(i.inputValue)&&i.inputType=="textarea"?2:-1),n(),C(v(10,D,i.isNotEmpty(i.inputValue),!i.isNotEmpty(i.inputValue))),n(),r(i.labelVisible()?4:-1))},dependencies:[E,h,N,M],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return e})();export{K as a};
