import{e as D}from"./chunk-BOZT4LSN.js";import{Wa as B,ra as E,xa as P}from"./chunk-JQUUDIFA.js";import{Y as O,ea as M,ua as I}from"./chunk-NZ765PUK.js";import{Bb as C,Cc as g,Gb as a,Hc as u,Ic as y,Jc as S,bc as o,cc as c,dc as l,ec as d,ic as h,jb as i,jc as k,jd as _,kc as s,lc as w,ob as b,rc as T,sa as x,ta as v,tc as p}from"./chunk-DYUFV4HF.js";function R(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 A(e,t){if(e&1&&(c(0,"h1",13),u(1),l()),e&2){let n=p();i(),S(" ",n.title," ")}}function L(e,t){if(e&1&&(c(0,"div",15),u(1),l()),e&2){let n=p(2);i(),y(n.subtext)}}function V(e,t){if(e&1&&(h(0),a(1,L,2,1,"div",14),k()),e&2){let n=p();i(),o("ngIf",n.subtext)}}function j(e,t){e&1&&s(0)}function F(e,t){if(e&1&&(c(0,"div",16),a(1,j,1,0,"ng-container",17),l()),e&2){let n=p();i(),o("ngTemplateOutlet",n.titleTemplate)}}function U(e,t){e&1&&s(0)}function q(e,t){if(e&1&&(c(0,"div",18),a(1,U,1,0,"ng-container",17),l()),e&2){let n=p();i(),o("ngTemplateOutlet",n.actionTemplate)}}function G(e,t){e&1&&s(0)}function H(e,t){if(e&1&&(c(0,"div",19)(1,"div",20),a(2,G,1,0,"ng-container",17),l(),d(3,"wk-divider",21),l()),e&2){let n=p();i(2),o("ngTemplateOutlet",n.contentTemplate)}}function J(e,t){e&1&&d(0,"wk-skeleton",22)}function K(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,R,1,1,"wk-button",4),c(3,"div",5),a(4,A,2,1,"h1",6)(5,V,2,1,"ng-container",7),l(),a(6,F,2,1,"div",8),l(),a(7,q,2,1,"div",9),l(),d(8,"wk-divider",10),a(9,H,4,1,"div",11),d(10,"wk-divider",10),a(11,J,1,0,"ng-template",null,0,_)(13,K,1,0,"ng-template",null,1,_)),m&2){let z=g(12),N=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",N),i(),o("ngIf",r.titleTemplate),i(),o("ngIf",r.actionTemplate),i(2),o("ngIf",r.contentTemplate)}},dependencies:[I,O,M,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-RNDFNOLB.css.map */`],changeDetection:0});let e=t;return e})();export{oe as a};
//# sourceMappingURL=chunk-4I2G26JZ.js.map
