1import{a as j}from"./chunk-TJ2WZH7X.js";import{a as E}from"./chunk-KOJBQKPV.js";import{a as D}from"./chunk-I4ZJJBRN.js";import{d as b,k as z}from"./chunk-V5LMLNUK.js";import{a as M,i as k}from"./chunk-QXLFYLB7.js";import{o as I}from"./chunk-FAIA5QRF.js";import{n as w}from"./chunk-R3U54TTU.js";import{$ as T,Y as x,_ as L,fa as H}from"./chunk-7NZDR52B.js";import{Fb as m,G as C,Kc as l,Mb as u,Sb as s,ob as y,pb as c,rc as t,sc as v,tc as S,td as _,ub as r,uc as p,ud as f,v as h}from"./chunk-4EBLW4QR.js";import{a as g}from"./chunk-V3P3RFZI.js";function N(i,n){if(i&1&&p(0,"span",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function O(i,n){if(i&1&&p(0,"div",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function $(i,n){if(i&1&&p(0,"p",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function P(i,n){if(i&1&&p(0,"pre",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function A(i,n){if(i&1&&p(0,"h1",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function F(i,n){if(i&1&&p(0,"h2",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function V(i,n){if(i&1&&p(0,"h3",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function q(i,n){if(i&1&&p(0,"h4",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function G(i,n){if(i&1&&p(0,"h5",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function J(i,n){if(i&1&&p(0,"h6",5),i&2){let e=l().ngIf;t("id",e.key)("innerHTML",e==null?null:e.description,c)}}function Q(i,n){if(i&1&&p(0,"navitaire-digital-cms-markdown-content",6),i&2){let e=l().ngIf;t("id",e.key)("document",e==null?null:e.description)}}function R(i,n){if(i&1&&(v(0,"div",2),s(1,N,1,2,"span",3)(2,O,1,2,"div",3)(3,$,1,2,"p",3)(4,P,1,2,"pre",3)(5,A,1,2,"h1",3)(6,F,1,2,"h2",3)(7,V,1,2,"h3",3)(8,q,1,2,"h4",3)(9,G,1,2,"h5",3)(10,J,1,2,"h6",3)(11,Q,1,2,"navitaire-digital-cms-markdown-content",4),S()),i&2){let e=n.ngIf;t("ngSwitch",e.elementType),r(),t("ngSwitchCase","Span"),r(),t("ngSwitchCase","Div"),r(),t("ngSwitchCase","Paragraph"),r(),t("ngSwitchCase","Preformatted"),r(),t("ngSwitchCase","Header One"),r(),t("ngSwitchCase","Header Two"),r(),t("ngSwitchCase","Header Three"),r(),t("ngSwitchCase","Header Four"),r(),t("ngSwitchCase","Header Five"),r(),t("ngSwitchCase","Header Six"),r(),t("ngSwitchCase","Markdown")}}function U(i,n){if(i&1&&(p(0,"navitaire-digital-cms-load-state-component",7),_(1,"async"),_(2,"async")),i&2){let e=l();t("loading",f(1,2,e.loading$))("model",f(2,4,e.model$))}}var he=(()=>{let n=class n{set key(o){o&&o!==this._key&&(this.contentLoadingService.registerCmsKeyItem({keys:[o],targetType:M.Label}),this._key=o,this.model$=this.store.select(b.getLabelByKey(o)).pipe(C(a=>!!a),h(a=>this.sanitizeLabelDescription(a))),this.loading$=this.store.select(k.isItemLoadingByKey(o)))}constructor(o,a,d,B){this.sanitizer=o,this.loadState=a,this.store=d,this.contentLoadingService=B,this.loadStateEnabled=this.loadState||!1}sanitizeLabelDescription(o){let a=g({},o);return a.description=this.sanitizer.sanitize(y.HTML,o?.description),a}};n.\u0275fac=function(a){return new(a||n)(m(w),m(D,8),m(I),m(z))},n.\u0275cmp=u({type:n,selectors:[["navitaire-digital-cms-label-component"]],inputs:{key:"key"},decls:3,vars:4,consts:[["class","label-component",3,"ngSwitch",4,"ngIf"],[3,"loading","model",4,"ngIf"],[1,"label-component",3,"ngSwitch"],["class","description",3,"id","innerHTML",4,"ngSwitchCase"],["class","description",3,"id","document",4,"ngSwitchCase"],[1,"description",3,"id","innerHTML"],[1,"description",3,"id","document"],[3,"loading","model"]],template:function(a,d){a&1&&(s(0,R,12,12,"div",0),_(1,"async"),s(2,U,3,6,"navitaire-digital-cms-load-state-component",1)),a&2&&(t("ngIf",f(1,2,d.model$)),r(2),t("ngIf",d.loadStateEnabled))},dependencies:[x,L,T,j,E,H],encapsulation:2});let i=n;return i})();export{he as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.