import{b as B}from"./chunk-4WSBNV33.js";import{Aa as E,Ba as P}from"./chunk-OJKN3TNK.js";import{b as M}from"./chunk-QF5VF47J.js";import{i as S,m as I,q as O}from"./chunk-OIJW4GMG.js";import{$b as c,Cb as r,Da as b,Qb as o,Wc as _,ac as l,bc as d,cc as C,dc as h,ec as s,fc as k,jb as n,jc as w,kc as p,uc as g,va as f,vc as u,wa as x,wc as T,xb as v,xc as y}from"./chunk-3FIHWXA5.js";function A(e,a){if(e&1){let t=k();c(0,"tis-button",12),w("clicked",function(){f(t);let i=p();return x(i.backButtonClicked.emit())}),l()}if(e&2){let t=p();o("icon",t.iconArrow)}}function V(e,a){if(e&1&&(c(0,"h1",13),u(1),l()),e&2){let t=p();n(),y(" ",t.title," ")}}function j(e,a){if(e&1&&(c(0,"div",15),u(1),l()),e&2){let t=p(2);n(),T(t.subtext)}}function N(e,a){if(e&1&&(C(0),r(1,j,2,1,"div",14),h()),e&2){let t=p();n(),o("ngIf",t.subtext)}}function R(e,a){e&1&&s(0)}function F(e,a){if(e&1&&(c(0,"div",16),r(1,R,1,0,"ng-container",17),l()),e&2){let t=p();n(),o("ngTemplateOutlet",t.titleTemplate)}}function L(e,a){e&1&&s(0)}function q(e,a){if(e&1&&(c(0,"div",18),r(1,L,1,0,"ng-container",17),l()),e&2){let t=p();n(),o("ngTemplateOutlet",t.actionTemplate)}}function G(e,a){e&1&&s(0)}function H(e,a){if(e&1&&(c(0,"div",19)(1,"div",20),r(2,G,1,0,"ng-container",17),l(),d(3,"tis-divider",10),l()),e&2){let t=p();n(2),o("ngTemplateOutlet",t.contentTemplate)}}function J(e,a){e&1&&d(0,"tis-skeleton",21)}function K(e,a){e&1&&d(0,"tis-skeleton",22)}var ae=(()=>{class e{constructor(){this.showBackButton=!0,this.title="",this.subtext="",this.backButtonClicked=new b,this.iconArrow=M.ArrowLeft}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=v({type:e,selectors:[["tis-subheader"]],inputs:{showBackButton:"showBackButton",title:"title",subtext:"subtext",actionTemplate:"actionTemplate",contentTemplate:"contentTemplate",titleTemplate:"titleTemplate",loadingConfig:"loadingConfig"},outputs:{backButtonClicked:"backButtonClicked"},decls:14,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"],["width","270px","height","20px",1,"title-skeleton"],["width","190px","height","14px"]],template:function(m,i){if(m&1&&(c(0,"div",2)(1,"div",3),r(2,A,1,1,"tis-button",4),c(3,"div",5),r(4,V,2,1,"h1",6)(5,N,2,1,"ng-container",7),l(),r(6,F,2,1,"div",8),l(),r(7,q,2,1,"div",9),l(),d(8,"tis-divider",10),r(9,H,4,1,"div",11)(10,J,1,0,"ng-template",null,0,_)(12,K,1,0,"ng-template",null,1,_)),m&2){let D=g(11),z=g(13);n(2),o("ngIf",i.showBackButton),n(2),o("ngIf",!(i.loadingConfig!=null&&i.loadingConfig.text)||i.title)("ngIfElse",D),n(),o("ngIf",!(i.loadingConfig!=null&&i.loadingConfig.subtext)||i.subtext)("ngIfElse",z),n(),o("ngIf",i.titleTemplate),n(),o("ngIf",i.actionTemplate),n(2),o("ngIf",i.contentTemplate)}},dependencies:[O,S,I,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)}.title-skeleton[_ngcontent-%COMP%]{margin-bottom:var(--space-vertical-xxs)}"],changeDetection:0})}}return e})();export{ae as a};
