1import{c as V}from"./chunk-N4TPNNML.js";import{a as L}from"./chunk-3GUIT7CC.js";import{a as I}from"./chunk-4XT3BYBG.js";import{ha as H,jb as N}from"./chunk-JQO2TWQ6.js";import{Gb as O,Jb as p,Lc as $,Ma as v,Ra as o,Sb as T,Ub as _,V as x,Vb as D,Wb as C,_a as y,ca as h,lc as i,mb as m,mc as d,nc as S,ob as l,oc as g,qb as b,rb as M,sb as P,ta as f,ud as B,wd as F,x as w,xb as c,yb as s,zb as E}from"./chunk-BUIIXSYE.js";function k(e,r){e&1&&(c(0,"h1"),_(1),i(2,"transloco"),s()),e&2&&(o(),D(d(2,1,"dashboard.customer_notification")))}function j(e,r){if(e&1&&(c(0,"h2",4),_(1),i(2,"async"),i(3,"languageFallback"),s()),e&2){let n=p().$implicit,t=p(2);o(),C(" ",g(3,3,n,"sectionHeaderDe",d(2,1,t.currentLanguage$))," ")}}function A(e,r){if(e&1&&(c(0,"h3",4),_(1),i(2,"async"),i(3,"languageFallback"),s()),e&2){let n=p().$implicit,t=p(2);o(),C(" ",g(3,3,n,"sectionHeaderDe",d(2,1,t.currentLanguage$))," ")}}function U(e,r){if(e&1&&(c(0,"section",2)(1,"div",3),m(2,j,4,7,"h2",4),m(3,A,4,7,"h3",4),c(4,"span",5),_(5),i(6,"async"),i(7,"longDate"),s()(),E(8,"div",6),i(9,"async"),i(10,"languageFallback"),s()),e&2){let n=r.$implicit,t=r.$index,a=p(2);T("no-top-border",t===0&&a.dashboardView),o(2),l(a.dashboardView?-1:2),o(),l(a.dashboardView?3:-1),o(2),C(" ",n.date?S(7,8,n.date,d(6,6,a.currentLanguage$)):""," "),o(3),O("innerHTML",g(10,13,n,"textDe",d(9,11,a.currentLanguage$)),v)}}function z(e,r){e&1&&M(0,U,11,17,"section",1,b),e&2&&P(r)}var ie=(()=>{class e{constructor(){this._helpService=f(L),this._translocoService=f(B),this.dashboardView=!1}ngOnInit(){this.currentLanguage$=this._translocoService.langChanges$.pipe(x(),h()),this.news$=this._helpService.getCustomerNews().pipe(w(n=>N.sortObjectsInArrayByDate(this.convertToNewsItemModel(n),"date")))}convertToNewsItemModel(n){return n.map(t=>({date:t.date,sectionHeaderDe:t.sectionHeaderDe,sectionHeaderEn:t.sectionHeaderEn,sectionHeaderFr:t.sectionHeaderFr,textDe:t.textDe,textEn:t.textEn,textFr:t.textFr}))}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=y({type:e,selectors:[["app-customer-notifications"]],inputs:{dashboardView:"dashboardView"},decls:4,vars:4,consts:[[1,"container-news"],["data-cy","newsItem",1,"news-entry",3,"no-top-border"],["data-cy","newsItem",1,"news-entry"],[1,"news-title"],["data-cy","newsTitle"],["data-cy","newsDate",1,"news-date"],["data-cy","newsText",1,"news-text",3,"innerHTML"]],template:function(t,a){if(t&1&&(c(0,"div",0),m(1,k,3,3,"h1"),m(2,z,2,0),i(3,"async"),s()),t&2){let u;o(),l(a.dashboardView?-1:1),o(),l((u=d(3,2,a.news$))?2:-1,u)}},dependencies:[H,$,F,I,V],styles:[".container-news[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin-bottom:var(--spacer)}.container-news[_ngcontent-%COMP%] .news-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container-news[_ngcontent-%COMP%] .news-entry[_ngcontent-%COMP%]:last-child{border-bottom:var(--border)}.container-news[_ngcontent-%COMP%] .news-entry[_ngcontent-%COMP%]:not(.no-top-border:first-child){border-top:var(--border);padding-top:var(--spacer)}.container-news[_ngcontent-%COMP%] .news-entry[_ngcontent-%COMP%] .news-title[_ngcontent-%COMP%]{margin-bottom:var(--spacer)}.container-news[_ngcontent-%COMP%] .news-entry[_ngcontent-%COMP%] .news-title[_ngcontent-%COMP%] .news-date[_ngcontent-%COMP%]{color:var(--color-gray-darker)}.container-news[_ngcontent-%COMP%] .news-entry[_ngcontent-%COMP%] .news-text[_ngcontent-%COMP%]{margin-bottom:var(--spacer)}"]})}}return e})();export{ie 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.