import{Ma as O}from"./chunk-QHAVDXDG.js";import{K as M,M as S,ja as B}from"./chunk-27KSTDMK.js";import{Ib as _,Jc as C,Kc as v,Me as y,ac as r,cc as p,hc as s,ic as a,jc as o,kc as u,qc as g,rc as k,rd as T,sb as n,sd as c,tc as w,vc as l,ya as f,za as h}from"./chunk-ISMRT7VU.js";function D(e,d){if(e&1){let t=k();a(0,"wk-button",12),w("clicked",function(){f(t);let i=l();return h(i.backButtonClicked.emit())}),o()}if(e&2){let t=l();s("icon",t.icons.ArrowLeft)}}function P(e,d){e&1&&u(0,"wk-skeleton",4)}function E(e,d){if(e&1&&(a(0,"span",5),C(1),o()),e&2){let t=l();n(),v(t.title())}}function N(e,d){e&1&&u(0,"wk-skeleton",6)}function z(e,d){if(e&1&&(a(0,"div",7),C(1),o()),e&2){let t=l();n(),v(t.subtext())}}function I(e,d){if(e&1&&(a(0,"div",8),g(1,13),o()),e&2){let t=l();n(),s("ngTemplateOutlet",t.titleTemplate())}}function V(e,d){if(e&1&&(a(0,"div",9),g(1,13),o()),e&2){let t=l();n(),s("ngTemplateOutlet",t.actionTemplate())}}function j(e,d){if(e&1&&(a(0,"div",11)(1,"div",14),g(2,13),o()()),e&2){let t=l();n(2),s("ngTemplateOutlet",t.contentTemplate())}}var G=(()=>{class e{constructor(){this.showBackButton=c(!0),this.title=c(""),this.subtext=c(""),this.loadingConfig=c(),this.actionTemplate=c(),this.titleTemplate=c(),this.contentTemplate=c(),this.backButtonClicked=T(),this.icons=O}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=_({type:e,selectors:[["tis-subheader"]],inputs:{showBackButton:[1,"showBackButton"],title:[1,"title"],subtext:[1,"subtext"],loadingConfig:[1,"loadingConfig"],actionTemplate:[1,"actionTemplate"],titleTemplate:[1,"titleTemplate"],contentTemplate:[1,"contentTemplate"]},outputs:{backButtonClicked:"backButtonClicked"},decls:12,vars:6,consts:[[1,"wrapper"],[1,"title-wrapper"],["stylingMode","outlined","variant","secondary","token","back",3,"icon"],[1,"text-wrapper"],["width","270px","height","20px",1,"title-skeleton"],[1,"title"],["width","190px","height","14px"],[1,"subtext"],[1,"title-template"],[1,"action-template"],["margin","none"],[1,"content-wrapper"],["stylingMode","outlined","variant","secondary","token","back",3,"clicked","icon"],[3,"ngTemplateOutlet"],[1,"content-body"]],template:function(m,i){if(m&1&&(a(0,"div",0)(1,"div",1),r(2,D,1,1,"wk-button",2),a(3,"div",3),r(4,P,1,0,"wk-skeleton",4)(5,E,2,1,"span",5),r(6,N,1,0,"wk-skeleton",6)(7,z,2,1,"div",7),o(),r(8,I,2,1,"div",8),o(),r(9,V,2,1,"div",9),o(),u(10,"wk-divider",10),r(11,j,3,1,"div",11)),m&2){let b,x;n(2),p(i.showBackButton()?2:-1),n(2),p((b=i.loadingConfig())!=null&&b.text&&!i.title()?4:5),n(2),p((x=i.loadingConfig())!=null&&x.subtext&&!i.subtext()?6:i.subtext()?7:-1),n(2),p(i.titleTemplate()?8:-1),n(),p(i.actionTemplate()?9:-1),n(2),p(i.contentTemplate()?11:-1)}},dependencies:[y,M,S,B],styles:[`[_nghost-%COMP%]{display:block;height:fit-content;width:100%}.wrapper[_ngcontent-%COMP%]{position:relative;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:var(--space-horizontal-20);height:59px;padding:0 var(--space-vertical-24);background:var(--subheader-bg)}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-horizontal-20);height:36px}.text-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.title[_ngcontent-%COMP%]{font:var(--font-20);color:var(--subheader-color)}.subtext[_ngcontent-%COMP%]{font:var(--font-12);color:var(--subheader-color-secondary);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;word-break:break-word}.title-skeleton[_ngcontent-%COMP%]{margin-bottom:var(--space-vertical-2)}.action-template[_ngcontent-%COMP%]{display:flex;gap:var(--space-horizontal-8)}.content-wrapper[_ngcontent-%COMP%]{height:fit-content;padding-top:var(--space-vertical-12);background:var(--subheader-bg);border-bottom:1px solid var(--divider-stroke-rest)}.content-body[_ngcontent-%COMP%]{padding:0 var(--space-vertical-24);padding-bottom:calc(var(--space-vertical-12) - 1px)}
/*# sourceMappingURL=subheader.component-6RWWBC2I.css.map */`],changeDetection:0})}}return e})();export{G as a};
//# sourceMappingURL=chunk-F5MI6XGL.js.map
