import{f as D}from"./chunk-L2U5MHO4.js";import{Va as B,oa as E,ua as P}from"./chunk-6PWFR42O.js";import{Y as M,ea as O,ua as I}from"./chunk-TDUJNOEU.js";import{Db as C,Ec as g,Ib as a,Jc as u,Kc as y,Lc as S,dc as o,ec as c,fc as l,gc as d,kc as h,kd as _,lb as i,lc as k,mc as s,nc as w,qb as b,tc as T,ua as x,va as v,vc as p}from"./chunk-I3FGJX2C.js";function N(e,t){if(e&1){let n=w();c(0,"wk-button",12),T("clicked",function(){x(n);let m=p();return v(m.backButtonClicked.emit())}),l()}if(e&2){let n=p();o("icon",n.iconArrow)}}function R(e,t){if(e&1&&(c(0,"h1",13),u(1),l()),e&2){let n=p();i(),S(" ",n.title," ")}}function V(e,t){if(e&1&&(c(0,"div",15),u(1),l()),e&2){let n=p(2);i(),y(n.subtext)}}function j(e,t){if(e&1&&(h(0),a(1,V,2,1,"div",14),k()),e&2){let n=p();i(),o("ngIf",n.subtext)}}function L(e,t){e&1&&s(0)}function F(e,t){if(e&1&&(c(0,"div",16),a(1,L,1,0,"ng-container",17),l()),e&2){let n=p();i(),o("ngTemplateOutlet",n.titleTemplate)}}function G(e,t){e&1&&s(0)}function U(e,t){if(e&1&&(c(0,"div",18),a(1,G,1,0,"ng-container",17),l()),e&2){let n=p();i(),o("ngTemplateOutlet",n.actionTemplate)}}function X(e,t){e&1&&s(0)}function q(e,t){if(e&1&&(c(0,"div",19)(1,"div",20),a(2,X,1,0,"ng-container",17),l(),d(3,"wk-divider",21),l()),e&2){let n=p();i(2),o("ngTemplateOutlet",n.contentTemplate)}}function H(e,t){e&1&&d(0,"wk-skeleton",22)}function J(e,t){e&1&&d(0,"wk-skeleton",23)}var oe=(()=>{let t=class t{constructor(){this.showBackButton=!0,this.title="",this.subtext="",this.backButtonClicked=new b,this.iconArrow=D.ArrowLeft}};t.\u0275fac=function(m){return new(m||t)},t.\u0275cmp=C({type:t,selectors:[["tis-subheader"]],inputs:{showBackButton:"showBackButton",title:"title",subtext:"subtext",actionTemplate:"actionTemplate",contentTemplate:"contentTemplate",titleTemplate:"titleTemplate",loadingConfig:"loadingConfig"},outputs:{backButtonClicked:"backButtonClicked"},decls:15,vars:8,consts:[["titleSkeleton",""],["subtextSkeleton",""],[1,"wrapper"],[1,"title-wrapper"],["token","back","stylingMode","outlined","variant","secondary","token","back",3,"icon","clicked",4,"ngIf"],[1,"text-wrapper"],["class","title",4,"ngIf","ngIfElse"],[4,"ngIf","ngIfElse"],["class","titleTemplate",4,"ngIf"],["class","actionTemplate",4,"ngIf"],["margin","none"],["class","content-wrapper",4,"ngIf"],["token","back","stylingMode","outlined","variant","secondary","token","back",3,"clicked","icon"],[1,"title"],["class","subtext",4,"ngIf"],[1,"subtext"],[1,"titleTemplate"],[4,"ngTemplateOutlet"],[1,"actionTemplate"],[1,"content-wrapper"],[1,"content-template"],["margin","none",1,"content-template-divider"],["width","270px","height","20px",1,"title-skeleton"],["width","190px","height","14px"]],template:function(m,r){if(m&1&&(c(0,"div",2)(1,"div",3),a(2,N,1,1,"wk-button",4),c(3,"div",5),a(4,R,2,1,"h1",6)(5,j,2,1,"ng-container",7),l(),a(6,F,2,1,"div",8),l(),a(7,U,2,1,"div",9),l(),d(8,"wk-divider",10),a(9,q,4,1,"div",11),d(10,"wk-divider",10),a(11,H,1,0,"ng-template",null,0,_)(13,J,1,0,"ng-template",null,1,_)),m&2){let z=g(12),A=g(14);i(2),o("ngIf",r.showBackButton),i(2),o("ngIf",!(r.loadingConfig!=null&&r.loadingConfig.text)||r.title)("ngIfElse",z),i(),o("ngIf",!(r.loadingConfig!=null&&r.loadingConfig.subtext)||r.subtext)("ngIfElse",A),i(),o("ngIf",r.titleTemplate),i(),o("ngIf",r.actionTemplate),i(2),o("ngIf",r.contentTemplate)}},dependencies:[I,M,O,E,P,B],styles:[`[_nghost-%COMP%]{display:block;height:fit-content;width:100%}.wrapper[_ngcontent-%COMP%]{position:relative;z-index:10;display:flex;gap:var(--space-horizontal-xl);align-items:center;justify-content:space-between;padding:0 var(--space-vertical-xxl);height:59px;background:var(--subheader-bg)}.wrapper[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]{display:flex;gap:var(--space-horizontal-xl);align-items:center;height:36px}.wrapper[_ngcontent-%COMP%]   .actionTemplate[_ngcontent-%COMP%]{display:flex;gap:var(--space-horizontal-s)}.wrapper[_ngcontent-%COMP%]   .text-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font:var(--font-subtitle-1);color:var(--subheader-color);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;word-break:break-word;margin:0}.wrapper[_ngcontent-%COMP%]   .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}.content-wrapper[_ngcontent-%COMP%]{padding-top:var(--space-vertical-l);height:fit-content;background:var(--subheader-bg)}.content-wrapper[_ngcontent-%COMP%]   .content-template[_ngcontent-%COMP%]{padding:0 var(--space-vertical-xxl)}.content-wrapper[_ngcontent-%COMP%]   .content-template-divider[_ngcontent-%COMP%]{margin-top:var(--space-vertical-l)}.title-skeleton[_ngcontent-%COMP%]{margin-bottom:var(--space-vertical-xxs)}
/*# sourceMappingURL=subheader.component-EGP2XNDM.css.map */`],changeDetection:0});let e=t;return e})();export{oe as a};
//# sourceMappingURL=chunk-MW5UHD7Q.js.map
