import{f as D}from"./chunk-Y5ITWXM5.js";import{Ta as O,ma as S,sa as B}from"./chunk-NNMVEAHQ.js";import{Cb as k,Dc as x,Ec as v,Ee as M,Wb as r,Yb as p,bc as m,cc as l,dc as o,ec as u,kb as i,kc as g,lc as w,md as y,nc as T,nd as d,pc as c,ta as h,ua as _}from"./chunk-PVUKHE45.js";function P(e,t){if(e&1){let n=w();l(0,"wk-button",12),T("clicked",function(){h(n);let s=c();return _(s.backButtonClicked.emit())}),o()}if(e&2){let n=c();m("icon",n.icons.ArrowLeft)}}function E(e,t){e&1&&u(0,"wk-skeleton",4)}function N(e,t){if(e&1&&(l(0,"span",5),x(1),o()),e&2){let n=c();i(),v(n.title())}}function z(e,t){e&1&&u(0,"wk-skeleton",6)}function I(e,t){if(e&1&&(l(0,"div",7),x(1),o()),e&2){let n=c();i(),v(n.subtext())}}function V(e,t){if(e&1&&(l(0,"div",8),g(1,13),o()),e&2){let n=c();i(),m("ngTemplateOutlet",n.titleTemplate())}}function j(e,t){if(e&1&&(l(0,"div",9),g(1,13),o()),e&2){let n=c();i(),m("ngTemplateOutlet",n.actionTemplate())}}function L(e,t){if(e&1&&(l(0,"div",11)(1,"div",14),g(2,13),o()()),e&2){let n=c();i(2),m("ngTemplateOutlet",n.contentTemplate())}}var G=(()=>{let t=class t{constructor(){this.showBackButton=d(!0),this.title=d(""),this.subtext=d(""),this.loadingConfig=d(),this.actionTemplate=d(),this.titleTemplate=d(),this.contentTemplate=d(),this.backButtonClicked=y(),this.icons=D}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=k({type:t,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(s,a){if(s&1&&(l(0,"div",0)(1,"div",1),r(2,P,1,1,"wk-button",2),l(3,"div",3),r(4,E,1,0,"wk-skeleton",4)(5,N,2,1,"span",5),r(6,z,1,0,"wk-skeleton",6)(7,I,2,1,"div",7),o(),r(8,V,2,1,"div",8),o(),r(9,j,2,1,"div",9),o(),u(10,"wk-divider",10),r(11,L,3,1,"div",11)),s&2){let b,f;i(2),p(a.showBackButton()?2:-1),i(2),p((b=a.loadingConfig())!=null&&b.text&&!a.title()?4:5),i(2),p((f=a.loadingConfig())!=null&&f.subtext&&!a.subtext()?6:a.subtext()?7:-1),i(2),p(a.titleTemplate()?8:-1),i(),p(a.actionTemplate()?9:-1),i(2),p(a.contentTemplate()?11:-1)}},dependencies:[M,S,B,O],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-xl);height:59px;padding:0 var(--space-vertical-xxl);background:var(--subheader-bg)}.title-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--space-horizontal-xl);height:36px}.text-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.title[_ngcontent-%COMP%]{font:var(--font-subtitle-1);color:var(--subheader-color)}.subtext[_ngcontent-%COMP%]{font:var(--font-caption-1);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-xxs)}.action-template[_ngcontent-%COMP%]{display:flex;gap:var(--space-horizontal-s)}.content-wrapper[_ngcontent-%COMP%]{height:fit-content;padding-top:var(--space-vertical-m);background:var(--subheader-bg);border-bottom:1px solid var(--divider-stroke-rest)}.content-body[_ngcontent-%COMP%]{padding:0 var(--space-vertical-xxl);padding-bottom:calc(var(--space-vertical-m) - 1px)}
/*# sourceMappingURL=subheader.component-SHRNZZUC.css.map */`],changeDetection:0});let e=t;return e})();export{G as a};
//# sourceMappingURL=chunk-NLXRVFDY.js.map
