1"use strict";(self.webpackChunkbrussels_frontend=self.webpackChunkbrussels_frontend||[]).push([[85],{6085:(P,m,o)=>{o.r(m),o.d(m,{CategoryComponent:()=>ee});var u=o(5861),a=o(1135),p=o(4707),M=o(9841),c=o(3900),g=o(9300),l=o(8505),E=o(2722),C=o(4004),O=o(590),D=o(1365),x=o(3954),v=o(502),I=o(8659),y=o(8285),T=o(3569),h=o(4755),A=o(3851),U=o(2361),e=o(2223),b=o(5778),L=o(9223),Z=o(9677),R=o(359),B=o(8575),K=o(2344),W=o(5537),J=o(6707);function Q(s,n){1&s&&e._UZ(0,"brusselstimes-ads-google",4)}function S(s,n){1&s&&e._UZ(0,"brusselstimes-articles-grid",11),2&s&&e.Q6J("articles",n.ngIf)}const f=function(){return[]};function $(s,n){1&s&&e._UZ(0,"brusselstimes-articles-grid",12),2&s&&e.Q6J("articles",e.DdM(2,f))("loading",4)}function Y(s,n){if(1&s){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(t);const _=e.oxw(3);return e.KtG(_.loadMore())}),e.TgZ(1,"brusselstimes-button"),e._uU(2,"Load more"),e.qZA()()}}function j(s,n){if(1&s&&(e.TgZ(0,"div",6)(1,"main"),e._UZ(2,"brusselstimes-eu-scream-podcast",7),e.YNc(3,S,1,1,"brusselstimes-articles-grid",8),e.ALo(4,"async"),e.YNc(5,$,1,3,"brusselstimes-articles-grid",9),e.YNc(6,Y,3,0,"div",10),e.qZA()()),2&s){const t=e.oxw(2);e.xp6(2),e.Q6J("squareImage",t.isMobile),e.xp6(1),e.Q6J("ngIf",e.lcZ(4,4,t.articles$)),e.xp6(2),e.Q6J("ngIf",t.loadingMore),e.xp6(1),e.Q6J("ngIf",!t.loadingMore&&t.hasMore)}}function N(s,n){if(1&s&&(e.ynx(0),e.YNc(1,j,7,6,"div",5),e.ALo(2,"async"),e.BQk()),2&s){const t=e.oxw(),r=e.MAs(5);e.xp6(1),e.Q6J("ngIf",e.lcZ(2,2,t.category$))("ngIfElse",r)}}function F(s,n){1&s&&e._UZ(0,"brusselstimes-articles-grid",11),2&s&&e.Q6J("articles",n.ngIf)}function z(s,n){1&s&&e._UZ(0,"brusselstimes-articles-grid",12),2&s&&e.Q6J("articles",e.DdM(2,f))("loading",4)}function H(s,n){if(1&s){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(t);const _=e.oxw(3);return e.KtG(_.loadMore())}),e.TgZ(1,"brusselstimes-button"),e._uU(2,"Load more"),e.qZA()()}}function w(s,n){if(1&s&&e._UZ(0,"brusselstimes-most-read-articles",11),2&s){const t=e.oxw(3);e.Q6J("articles",t.mostRead$)}}function X(s,n){if(1&s&&(e.TgZ(0,"div",15)(1,"main"),e._UZ(2,"h1",16),e.YNc(3,F,1,1,"brusselstimes-articles-grid",8),e.ALo(4,"async"),e.YNc(5,z,1,3,"brusselstimes-articles-grid",9),e.YNc(6,H,3,0,"div",10),e.qZA(),e.TgZ(7,"aside"),e.YNc(8,w,1,1,"brusselstimes-most-read-articles",8),e.qZA()()),2&s){const t=n.ngIf,r=e.oxw(2);e.xp6(2),e.Q6J("innerHTML",t.name,e.oJD),e.xp6(1),e.Q6J("ngIf",e.lcZ(4,5,r.articles$)),e.xp6(2),e.Q6J("ngIf",r.loadingMore),e.xp6(1),e.Q6J("ngIf",!r.loadingMore&&r.hasMore),e.xp6(2),e.Q6J("ngIf",r.mostRead$)}}function G(s,n){if(1&s&&(e.YNc(0,X,9,7,"div",14),e.ALo(1,"async")),2&s){const t=e.oxw(),r=e.MAs(5);e.Q6J("ngIf",e.lcZ(1,2,t.category$))("ngIfElse",r)}}const V=function(){return{"height.px":40,width:"50%"}},k=function(){return{"height.px":32,width:"30%"}};function q(s,n){1&s&&(e.TgZ(0,"div",15)(1,"main")(2,"h1"),e._UZ(3,"ngx-skeleton-loader",17),e.qZA(),e.TgZ(4,"h2"),e._UZ(5,"ngx-skeleton-loader",17),e.qZA(),e._UZ(6,"brusselstimes-articles-grid",12),e.qZA(),e.TgZ(7,"aside"),e._UZ(8,"brusselstimes-most-read-articles",18),e.qZA()()),2&s&&(e.xp6(3),e.Q6J("theme",e.DdM(5,V)),e.xp6(2),e.Q6J("theme",e.DdM(6,k)),e.xp6(1),e.Q6J("articles",e.DdM(7,f))("loading",20),e.xp6(2),e.Q6J("title",""))}let ee=(()=>{class s{constructor(t,r,_,i,d,te,se){this.wordPressService=t,this.route=r,this.metadataService=_,this.chartbeatService=i,this.googleAdsService=d,this.pianoService=te,this.breakpointsObserver=se,this.mostRead$=new a.X([]),this.catArticles$=new a.X([]),this.loadingMore=!1,this.hasMore=!0,this.slug="",this.isMobile=!1,this.destroyed$=new p.t(1),this.offset=20,this.moreArticles$=new a.X([])}ngOnInit(){var t=this;return(0,u.Z)(function*(){yield t.pianoService.init(),t.wordPressService.mostRead().subscribe(r=>{t.mostRead$.next(r)}),t.category$=t.route.params.pipe((0,c.w)(({slug:r})=>t.wordPressService.categoryBySlug(r,0,5,20,"belgium-word-of-the-day"==r)),(0,g.h)(r=>!!r),(0,l.b)(({articles:r,name:i})=>{null===r&&(r=[]),t.hasMore=!(r.length<20),t.catArticles$.next(r);const d=`${(0,x.I)(i)} | The Brussels Times`;t.chartbeatService.update({title:d}),t.metadataService&&t.metadataService.updateMetadata({title:d})})),t.googleAdsService.defineSlots(["top"]),t.breakpointsObserver.observe(["(max-width: 54rem)"]).subscribe(({breakpoints:r})=>{t.isMobile=r["(max-width: 54rem)"]}),t.route.params.pipe((0,E.R)(t.destroyed$)).subscribe(({slug:r})=>{t.moreArticles$.next([]),t.slug=r,t.articles$=(0,M.a)([t.catArticles$,t.moreArticles$]).pipe((0,C.U)(([_,i])=>[..._,...i]),(0,C.U)(_=>_.map(i=>(i.categories=[t.slug],i))))})})()}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}loadMore(){this.loadingMore=!0,this.wordPressService.categoryBySlug(this.slug,this.offset,0,20,"belgium-word-of-the-day"==this.slug).pipe((0,O.P)(),(0,D.M)(this.moreArticles$)).subscribe(([{articles:t},r])=>{this.offset+=t.length,this.hasMore=!(t.length<20),this.moreArticles$.next([...r,...t]),this.loadingMore=!1})}}return s.\u0275fac=function(t){return new(t||s)(e.Y36(b.e),e.Y36(L.gz),e.Y36(Z.D,8),e.Y36(R.r),e.Y36(B.B),e.Y36(K.K),e.Y36(W.Yg))},s.\u0275cmp=e.Xpm({type:s,selectors:[["brusselstimes-category"]],standalone:!0,features:[e.jDz],decls:6,vars:3,consts:[["gid","1638356486546-0",4,"ngIf"],[4,"ngIf","ngIfElse"],["defaultLayout",""],["loading",""],["gid","1638356486546-0"],["class","eu-scream-layout",4,"ngIf","ngIfElse"],[1,"eu-scream-layout"],[3,"squareImage"],[3,"articles",4,"ngIf"],[3,"articles","loading",4,"ngIf"],["class","load-more",3,"click",4,"ngIf"],[3,"articles"],[3,"articles","loading"],[1,"load-more",3,"click"],["class","one-sidebar--right",4,"ngIf","ngIfElse"],[1,"one-sidebar--right"],[3,"innerHTML"],[3,"theme"],[3,"title"]],template:function(t,r){if(1&t&&(e.YNc(0,Q,1,0,"brusselstimes-ads-google",0),e.YNc(1,N,3,4,"ng-container",1),e.YNc(2,G,2,4,"ng-template",null,2,e.W1O),e.YNc(4,q,9,8,"ng-template",null,3,e.W1O)),2&t){const _=e.MAs(3);e.Q6J("ngIf","eu-scream-podcast"!==r.slug),e.xp6(1),e.Q6J("ngIf","eu-scream-podcast"===r.slug)("ngIfElse",_)}},dependencies:[A.K,J.p,h.O5,T.d,y.r,I.t,v.hx,v.xr,h.Ov,U.v],styles:["[_nghost-%COMP%] h1[_ngcontent-%COMP%]{padding-bottom:1rem;margin-bottom:1rem;border-bottom:2px solid var(--gray)}[_nghost-%COMP%] brusselstimes-most-read-articles[_ngcontent-%COMP%]{position:sticky;top:3rem;display:block}[_nghost-%COMP%] .articles-grid{padding-top:0}[_nghost-%COMP%] .eu-scream-layout .article-image{height:14rem!important}[_nghost-%COMP%] .load-more[_ngcontent-%COMP%]{padding:2rem;display:flex;justify-content:center}[_nghost-%COMP%] .eu-scream-layout[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:10px}@media screen and (max-width: 32rem){[_nghost-%COMP%] .eu-scream-layout .article-image{height:4rem!important}}"]}),s})()},2361:(P,m,o)=>{o.d(m,{v:()=>M});var u=o(9223),a=o(2223);const p=function(){return["/eu-scream-podcast"]};let M=(()=>{class c{constructor(){this.squareImage=!1}}return c.\u0275fac=function(l){return new(l||c)},c.\u0275cmp=a.Xpm({type:c,selectors:[["brusselstimes-eu-scream-podcast"]],inputs:{squareImage:"squareImage"},standalone:!0,features:[a.jDz],decls:4,vars:3,consts:[[1,"eu-scream-podcast"],[3,"routerLink"],["alt","EU Scream Podcast",3,"src"],["src","https://www.buzzsprout.com/178148?client_source=large_player&iframe=true&referrer=https%3A%2F%2Fwww.buzzsprout.com%2Fadmin%2F178148%2Fpodcast%2Fembed","loading","lazy","width","100%","height","375","frameborder","0","scrolling","no","title","EU Scream Podcast"]],template:function(l,E){1&l&&(a.TgZ(0,"div",0)(1,"a",1),a._UZ(2,"img",2),a.qZA(),a._UZ(3,"iframe",3),a.qZA()),2&l&&(a.xp6(1),a.Q6J("routerLink",a.DdM(2,p)),a.xp6(1),a.Q6J("src",E.squareImage?"/assets/img/podcast-mobile.png":"/assets/img/podcast.png",a.LSH))},dependencies:[u.rH],styles:["[_nghost-%COMP%] .eu-scream-podcast[_ngcontent-%COMP%]{margin-bottom:1rem}"]}),c})()}}]);
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.