import{a as B}from"./chunk-GX5TCCF4.js";import{Aa as E,Ba as P}from"./chunk-TLX24J4H.js";import{a as M}from"./chunk-35QF24UV.js";import{aa as S,ia as I,ya as O}from"./chunk-KOULBGOK.js";import{$c as _,Ab as v,Ac as u,Bc as T,Cc as y,Ea as b,Fb as r,Tb as o,cc as c,dc as l,ec as d,fc as C,gc as h,hc as s,ic as k,mb as n,oc as w,pc as p,wa as f,xa as x,zc as g}from"./chunk-ZGECHOBP.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};
