PageSourceSearch

https://laruchequebec.com/chunk-3TNNHV26.js

js laruchequebec.com collected 2026-10-02 02:56:51 UTC 26,938 bytes, 9 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eea984be-759c-5061-9665-8acf74363a86")}catch(e){}}();
3import{a as me}from"./chunk-UK75O47Y.js";import{a as W,b as St}from"./chunk-M7URFX4Q.js";import{a as Pt}from"./chunk-UFX2XFJT.js";import{a as bt,b as Mt}from"./chunk-BMJRWFZO.js";import{a as q}from"./chunk-JV5WUKIA.js";import{a as xt}from"./chunk-LDVTMOLA.js";import"./chunk-S3ICLYKZ.js";import{a as yt}from"./chunk-AIHQCYSV.js";import{a as G}from"./chunk-RFKYRKAI.js";import{d as ye}from"./chunk-RQQOYPXG.js";import{a as de}from"./chunk-PYNRK7RZ.js";import{a as wt}from"./chunk-C3PMDAPN.js";import"./chunk-TJDI3IEY.js";import{a as H,b as U}from"./chunk-B7YVQX3R.js";import"./chunk-DPGAPHQQ.js";import{a as Ct,b as gt}from"./chunk-BRMDGB77.js";import{a as vt}from"./chunk-UQIOG73V.js";import{a as _t,b as ht}from"./chunk-NGGOBFUG.js";import"./chunk-FZ754DOA.js";import{a as tt,b as se}from"./chunk-WLLU3MAB.js";import"./chunk-NS3S4UP3.js";import"./chunk-2MKIWHPJ.js";import{a as ce}from"./chunk-6ZCUJBQP.js";import"./chunk-5AEXZD3S.js";import{a as ct}from"./chunk-FYQLJIGP.js";import{t as st,u as pt}from"./chunk-PHV575IR.js";import"./chunk-VZNYVXL5.js";import{A as Ke,Cc as j,Db as rt,Ed as dt,F as L,Hb as pe,Id as mt,Jd as ut,Ld as ft,Ud as we,V as et,p as V,v as xe,w as Je,wc as at,xc as lt}from"./chunk-3LVKRIDY.js";import{Ab as Z,Be as B,C as fe,Cc as Ce,Cf as Xe,Df as Qe,Gb as R,Hd as Le,Ib as v,Ie as qe,Jd as De,Le as We,Na as n,P as Ee,Re as ze,Sb as ae,T as Oe,V as _e,Xb as m,Xe as Ye,Ya as A,Yb as X,Yc as Ae,Za as te,Zb as f,Zc as Ne,_ as M,_d as ge,ab as N,cb as ie,dd as Be,de as I,e as Fe,fc as Re,ga as $,gc as he,ha as ee,hc as ve,ib as C,k as b,ka as w,kb as g,l as Ie,lc as ke,mb as ne,md as Ve,nb as S,oa as O,ob as P,oc as le,pa as T,pb as s,pc as $e,qb as p,qg as J,rb as a,re as je,s as h,sb as x,t as E,ua as Te,uc as u,uf as Ze,vc as _,vg as D,wb as oe,wc as Q,we as He,wg as it,xb as re,xe as Ue,xg as nt,ye as Ge,zg as ot}from"./chunk-JLCF3INP.js";import"./chunk-QQHUSC2D.js";import{a as z,b as Y,n as K}from"./chunk-3EAH7Z56.js";var Ft=10,Nt=2021,Bt=new Date().getFullYear(),be=(()=>{let t=class t{constructor(){this.searchService=w(ce),this.variousService=w(pe),this.newsCardFactory=w(W),this.dateUtil=w(gt),this.translatableService=w(Ze),this.destroyRef=w(Te),this.searchForm=this.createForm(),this.filtersData$=this.createFiltersDataObservable(),this.filters$=this.createFiltersObservable(),this.pageStart$=new Fe(0),this.rawSearchResults$=this.filters$.pipe(M(o=>(this.pageStart$.getValue()!==0&&this.pageStart$.next(0),Ke(this.pageStart$.pipe(M(r=>this.onFiltersChange(o,r)))))),_e({refCount:!0,bufferSize:1})),this.searchResults$=this.createSearchResultsObservable(),this.totalResultsCount$=this.rawSearchResults$.pipe(fe(we()),h(xe()),h(V("total"))),this.totalResultsCountRef=mt.bindTo(this.totalResultsCount$,this.destroyRef)}resolve(){let o=this.rawSearchResults$.pipe(h(Je())),{filtersData$:r,searchForm:l,searchResults$:c,totalResultsCount$:y}=this;return r.pipe(h(d=>({metadata:se("pages.news.archives"),hero:{left:{title:{key:"pages.news.archives.title"},description:{key:"pages.news.archives.description"},icon:j.ANNOUNCE},right:{illustration:"page-news"}},filtersData:d,searchForm:l,searchResults$:c,resultsCount$:c.pipe(h(F=>F?.flatMap(V("newsCards"))?.length??0)),totalResultsCount$:y,isLoading$:o,resetFilters:()=>l.reset(),showMoreItems:()=>{let F=this.pageStart$.getValue(),ue=this.totalResultsCountRef.get(),At=Math.min(F+Ft,ue);this.pageStart$.next(At)}})))}createFiltersDataObservable(){let o=b(this.loadRegions()),r=b(this.loadCategories());return E([o,r]).pipe(Ee(),h(([l,c])=>({regions:l,categories:c,years:Qe(Nt,Bt).reverse(),months:Ct})))}loadCategories(){return K(this,null,function*(){return(yield this.variousService.getLookupByType("CATEGORY_NEWS_ARTICLES")).items})}loadRegions(){return K(this,null,function*(){return(yield this.variousService.getRegions()).items})}createFiltersObservable(){let o=this.searchForm.get("query"),r=L(o).pipe(et());return E([r,L(this.searchForm.get("region")),L(this.searchForm.get("category")),L(this.searchForm.get("month")),L(this.searchForm.get("year"))]).pipe(h(([l,c,y,d,F])=>({query:l,region:c,category:y,month:d,year:F})))}createForm(){return new Ge({query:new B("",{nonNullable:!0}),region:new B(null),category:new B(null),month:new B(null),year:new B(null)})}createSearchResultsObservable(){return this.rawSearchResults$.pipe(fe(we()),h(xe())).pipe(Oe((r,l)=>this.pageStart$.getValue()===0?l.items:r.concat(l.items),[]),h(r=>this.asNewsRowViewModels(r)),_e({refCount:!0,bufferSize:1}))}onFiltersChange(o,r){return K(this,null,function*(){let{query:l,region:c,category:y,month:d,year:F}=o;return yield this.searchService.getPublicNewsArticlesSearch({keyword:l,regionId:c?.id,categoryId:y?.lookupId,monthPublished:d?.value,yearPublished:F,from:r,size:Ft})})}asNewsRowViewModels(o){let r=Xe(o,({monthPublished:l,yearPublished:c})=>`${l},${c}`);return Object.entries(r).map(([l,c])=>{let[y,d]=l.split(",").map(Number),F=this.dateUtil.findMonth[y];return{title:`${this.translatableService.transform(F)} ${d}`,large:!0,newsCards:c.map(ue=>this.asNewsCardViewModel(ue)),moreButton:null}})}asNewsCardViewModel(o){return this.newsCardFactory.fromNewsArticleSearch(o)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=$({token:t,factory:t.\u0275fac});let e=t;return e})();var Me=e=>({count:e}),Vt=(e,t)=>
3({count:e,total:t}),It=(e,t)=>t.id,Et=(e,t)=>t.lookupId,Ot=(e,t)=>t.value;function Lt(e,t){if(e&1&&(p(0,"app-lrd-option",15),m(1),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",i.name," ")}}function Dt(e,t){if(e&1&&(p(0,"mat-radio-button",15),m(1),u(2,"translatable"),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",_(2,2,i)," ")}}function jt(e,t){if(e&1&&(p(0,"div",13)(1,"app-v2-expansion-panel",34)(2,"mat-radio-group",35)(3,"mat-radio-button",15),m(4),u(5,"translatable"),a(),S(6,Dt,3,4,"mat-radio-button",15,Et),a()()()),e&2){let i=v(2);n(),s("title",i.translationPrefix+".filters.category.title")("expanded",!0),n(2),s("value",null),n(),f(" ",_(5,4,i.translationPrefix+".filters.category.default")," "),n(2),P(i.categories())}}function Ht(e,t){if(e&1&&(p(0,"mat-radio-button",15),m(1),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",i," ")}}function Ut(e,t){if(e&1&&(p(0,"div",13)(1,"app-v2-expansion-panel",34)(2,"mat-radio-group",36)(3,"mat-radio-button",15),m(4),u(5,"translatable"),a(),S(6,Ht,2,2,"mat-radio-button",15,ne),a()()()),e&2){let i=v(2);n(),s("title",i.translationPrefix+".filters.year.title")("expanded",!1),n(2),s("value",null),n(),f(" ",_(5,4,i.translationPrefix+".filters.year.default")," "),n(2),P(i.years())}}function Gt(e,t){if(e&1&&(p(0,"mat-radio-button",15),m(1),u(2,"translatable"),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",_(2,2,i.display)," ")}}function qt(e,t){if(e&1&&(p(0,"div",13)(1,"app-v2-expansion-panel",34)(2,"mat-radio-group",37)(3,"mat-radio-button",15),m(4),u(5,"translatable"),a(),S(6,Gt,3,4,"mat-radio-button",15,Ot),a()()()),e&2){let i=v(2);n(),s("title",i.translationPrefix+".filters.month.title")("expanded",!1),n(2),s("value",null),n(),f(" ",_(5,4,i.translationPrefix+".filters.month.default")," "),n(2),P(i.months())}}function Wt(e,t){if(e&1){let i=Z();p(0,"button",38),R("click",function(){O(i),v();let r=ae(10);return T(r.close())}),m(1),u(2,"translatable"),a()}if(e&2){let i=v(2);n(),f(" ",Q(2,1,i.translationPrefix+".mobile.actions.show",le(4,Me,t))," ")}}function zt(e,t){if(e&1&&(p(0,"app-lrd-option",15),m(1),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",i.name," ")}}function Yt(e,t){if(e&1&&(p(0,"mat-radio-button",15),m(1),u(2,"translatable"),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",_(2,2,i)," ")}}function Zt(e,t){if(e&1&&(p(0,"div",32)(1,"app-v2-expansion-panel",34)(2,"mat-radio-group",35)(3,"mat-radio-button",15),m(4),u(5,"translatable"),a(),S(6,Yt,3,4,"mat-radio-button",15,Et),a()()()),e&2){let i=v(2);n(),s("title",i.translationPrefix+".filters.category.title")("expanded",!0),n(2),s("value",null),n(),f(" ",_(5,4,i.translationPrefix+".filters.category.default")," "),n(2),P(i.categories())}}function Xt(e,t){if(e&1&&(p(0,"mat-radio-button",15),m(1),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",i," ")}}function Qt(e,t){if(e&1&&(p(0,"div",32)(1,"app-v2-expansion-panel",34)(2,"mat-radio-group",36)(3,"mat-radio-button",15),m(4),u(5,"translatable"),a(),S(6,Xt,2,2,"mat-radio-button",15,ne),a()()()),e&2){let i=v(2);n(),s("title",i.translationPrefix+".filters.year.title")("expanded",!1),n(2),s("value",null),n(),f(" ",_(5,4,i.translationPrefix+".filters.year.default")," "),n(2),P(i.years())}}function Jt(e,t){if(e&1&&(p(0,"mat-radio-button",15),m(1),u(2,"translatable"),a()),e&2){let i=t.$implicit;s("value",i),n(),f(" ",_(2,2,i.display)," ")}}function Kt(e,t){if(e&1&&(p(0,"div",32)(1,"app-v2-expansion-panel",34)(2,"mat-radio-group",37)(3,"mat-radio-button",15),m(4),u(5,"translatable"),a(),S(6,Jt,3,4,"mat-radio-button",15,Ot),a()()()),e&2){let i=v(2);n(),s("title",i.translationPrefix+".filters.month.title")("expanded",!1),n(2),s("value",null),n(),f(" ",_(5,4,i.translationPrefix+".filters.month.default")," "),n(2),P(i.months())}}function ei(e,t){e&1&&x(0,"app-section-loading")}function ti(e,t){if(e&1){let i=Z();p(0,"section",39)(1,"div",41),x(2,"img",42),p(3,"h4"),m(4),u(5,"translatable"),a(),p(6,"p"),m(7),u(8,"translatable"),a(),p(9,"button",38),R("click",function(){O(i);let r=v(2);return T(r.resetFilters())}),m(10),u(11,"translatable"),a()()()}if(e&2){let i=v(3);n(4),X(_(5,3,i.translationPrefix+".empty.title")),n(3),X(_(8,5,i.translationPrefix+".empty.description")),n(3),f(" ",_(11,7,i.translationPrefix+".empty.reset")," ")}}function ii(e,t){if(e&1&&x(0,"app-v2-news-row",44),e&2){let i=t.$implicit;s("large",!1)("title",i.title)("newsCards",i.newsCards)}}function ni(e,t){if(e&1){let i=Z();p(0,"button",48),R("click",function(){O(i);let r=v(3);return T(r.showMoreItems())}),m(1),u(2,"translatable"),a()}if(e&2){let i=v(4);s("busy",i.isLoading())("disabled",i.isLoading()),n(),f(" ",_(2,3,i.translationPrefix+".pagination.more-label")," ")}}function oi(e,t){if(e&1&&(p(0,"section",40)(1,"div",43),S(2,ii,1,3,"app-v2-news-row",44,ne),a(),p(4,"div",45)(5,"p",46),m(6),u(7,"translatable"),a(),C(8,ni,3,5,"button",47),a()()),e&2){v();let i=ve(0),o=ve(1),r=v(2);n(2),P(r.results()),n(4),f(" ",Q(7,2,r.translationPrefix+".pagination.label",$e(5,Vt,i,o))," "),n(2),g(i<o?8:-1)}}function ri(e,t){if(e&1&&(Re(0)(1),C(2,ti,12,9,"section",39),C(3,oi,9,8,"section",40)),e&2){let i=v(2),o=he(i.resultsCount());n(),he(i.totalResultsCount()),n(),g(o===0?2:-1),n(),g(o>0?3:-1)}}function ai(e,t){if(e&1){let i=Z();p(0,"div",1)(1,"app-v2-hero",2)(2,"app-v2-hero-block",3)(3,"app-v2-hero-basic-box",4)(4,"p"),m(5),u(6,"translatable"),a()()(),p(7,"app-v2-hero-block",5),x(8,"app-v2-hero-illustration",6),a()()(),p(9,"mat-sidenav",7,0)(11,"div",8)(12,"div",9)(13,"div",10)(14,"h3"),m(15),u(16,"translatable"),a(),p(17,"button",11),R("click",function(){O(i);let r=ae(10);return T(r.close())}),a()()(),p(18,"section",12)(19,"div",13)(20,"app-lrd-form-field")(21,"app-lrd-select",14)(22,"app-lrd-option",15),m(23),u(24,"translatable"),a(),S(25,Lt,2,2,"app-lrd-option",15,It),a()()(),C(27,jt,8,6,"div",13),C(28,Ut,8,6,"div",13),C(29,qt,8,6,"div",13),p(30,"div",16)(31,"button",17),R("click",function(){let r=O(i);return T(r.resetFilters())}),m(32),u(33,"translatable"),a(),C(34,Wt,3,6,"button",18),a()()()(),p(35,"mat-sidenav-content")(36,"div",19)(37,"div",20)(38,"div",21)(39,"button",22),R("click",function(){O(i);let r=ae(10);return T(r.open())}),m(40),u(41,"translatable"),a()(),oe(42,23),p(43,"div",24)(44,"app-lrd-form-field")(45,"app-lrd-select",14)(46,"app-lrd-option",15),m(47),u(48,"translatable"),a(),S(49,zt,2,2,"app-lrd-option",15,It),a()()(),p(51,"div",25)(52,"app-lrd-form-field",26),x(53,"input",27),u(54,"translatable"),a(),p(
355,"span",28),m(56),u(57,"translatable"),a()(),re(),a(),p(58,"div",29)(59,"div",30)(60,"section",31),C(61,Zt,8,6,"div",32),C(62,Qt,8,6,"div",32),C(63,Kt,8,6,"div",32),a(),p(64,"section",33),C(65,ei,1,0,"app-section-loading")(66,ri,4,4),a()()()()()}if(e&2){let i,o,r,l,c,y=t,d=v();n(3),s("title",y.hero.left.title),n(2),X(_(6,23,y.hero.left.description)),n(3),s("illustration",y.hero.right.illustration),n(7),X(_(16,25,d.translationPrefix+".mobile.filters.title")),n(3),s("formGroup",y.searchForm),n(4),s("value",null),n(),f(" ",_(24,27,d.translationPrefix+".filters.regions.default")," "),n(2),P(d.regions()),n(2),g((i=d.categories())!=null&&i.length?27:-1),n(),g(d.years().length?28:-1),n(),g(d.months().length?29:-1),n(3),f(" ",_(33,29,d.translationPrefix+".mobile.actions.reset")," "),n(2),g((o=d.resultsCount())?34:-1,o),n(6),f(" ",Q(41,31,d.translationPrefix+".mobile.actions.filter",le(41,Me,d.filtersCount()))," "),n(2),s("formGroup",d.searchForm()),n(4),s("value",null),n(),f(" ",_(48,34,d.translationPrefix+".filters.regions.default")," "),n(2),P(d.regions()),n(4),s("placeholder",_(54,36,d.translationPrefix+".search.placeholder")),n(3),f(" ",Q(57,38,d.translationPrefix+".search.results",le(43,Me,d.totalResultsCount()))," "),n(4),s("formGroup",y.searchForm),n(),g((r=d.categories())!=null&&r.length?61:-1),n(),g((l=d.years())!=null&&l.length?62:-1),n(),g((c=d.months())!=null&&c.length?63:-1),n(2),g(d.isLoading()?65:66)}}function li(e,t){e&1&&x(0,"app-section-loading")}var si="pages.news.archives",Tt=(()=>{let t=class t extends G{constructor(){super(w(be)),this.translationPrefix=si,this.searchForm=Ce(()=>this.viewModel()?.searchForm??null),this.results=I(this.viewModel$.pipe(M(({searchResults$:o})=>o)),{initialValue:[]}),this.isLoading=I(this.viewModel$.pipe(M(({isLoading$:o})=>o)),{initialValue:!1}),this.resultsCount=I(this.viewModel$.pipe(M(({resultsCount$:o})=>o)),{initialValue:0}),this.totalResultsCount=I(this.viewModel$.pipe(M(({totalResultsCount$:o})=>o)),{initialValue:0}),this.regions=I(this.viewModel$.pipe(h(({filtersData:o})=>o.regions)),{initialValue:[]}),this.categories=I(this.viewModel$.pipe(h(({filtersData:o})=>o.categories)),{initialValue:[]}),this.months=I(this.viewModel$.pipe(h(({filtersData:o})=>o.months)),{initialValue:[]}),this.years=I(this.viewModel$.pipe(h(({filtersData:o})=>o.years)),{initialValue:[]}),this.filtersCount=Ce(()=>this.regions().length+this.categories().length+this.months().length+this.years().length)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=A({type:t,selectors:[["lrd-archives"]],features:[ke([be]),N],decls:2,vars:1,consts:[["sideFilter",""],[1,"section-container"],["layout","three-one"],["side","left"],[3,"title"],["side","right"],[3,"illustration"],["disableClose","","mode","over","fixedInViewport","true",1,"sidenav"],[1,"sidenav__wrapper"],[1,"sidenav__header"],[1,"sidenav__title"],["app-v2-button","","compact","true","color","yellow","square","true","iconLeft","cross",3,"click"],[1,"sidenav__filters",3,"formGroup"],[1,"sidenav__filters__section"],["formControlName","region","trackBy","id"],[3,"value"],[1,"sidenav__actions"],["app-v2-button","","color","orange",3,"click"],["app-v2-button","","color","yellow"],[1,"section-container","projects"],[1,"header"],[1,"header__filters"],["app-v2-button","","iconLeft","filters",1,"header__filters__button",3,"click"],[3,"formGroup"],[1,"header__region"],[1,"header__search"],["icon","search"],["lrdInput","","maxlength","200","formControlName","query",3,"placeholder"],[1,"header__search__results"],[1,"loading-wrapper"],[1,"content"],[1,"filters",3,"formGroup"],[1,"filters__section"],[1,"results"],[3,"title","expanded"],["formControlName","category",1,"list"],["formControlName","year",1,"list"],["formControlName","month",1,"list"],["app-v2-button","","color","yellow",3,"click"],[1,"no-result-container"],[1,"cards-container"],[1,"no-result"],["src","../../../../assets/svg/illustrations/ruche.svg","alt",""],[1,"cards"],[3,"large","title","newsCards"],[1,"pagination"],[1,"pagination__label"],["app-v2-button","",3,"busy","disabled"],["app-v2-button","",3,"click","busy","disabled"]],template:function(r,l){if(r&1&&C(0,ai,67,45)(1,li,1,0,"app-section-loading"),r&2){let c;
3g((c=l.viewModel())?0:1,c)}},dependencies:[de,H,U,q,it,yt,dt,rt,ut,ft,pt,Ye,je,He,Ue,ze,qe,We,st,vt,me,at,lt,D],styles:[`[_nghost-%COMP%]{--sidebar-width: 370px;display:flex;flex-direction:column;gap:2rem}.sidenav[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;background:var(--color-primary-white)}.sidenav__wrapper[_ngcontent-%COMP%]{padding:0 0 6rem}.sidenav[_ngcontent-%COMP%]   .sidenav__header[_ngcontent-%COMP%]{flex:0 0 100px;background-color:var(--color-primary-beige);padding:1.5rem}.sidenav[_ngcontent-%COMP%]   .sidenav__header[_ngcontent-%COMP%]   .sidenav__title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.sidenav[_ngcontent-%COMP%]   .sidenav__filters[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;width:100%;background-color:var(--color-primary-white);padding:1rem}.sidenav[_ngcontent-%COMP%]   .filters__section[_ngcontent-%COMP%]{width:100%}.sidenav[_ngcontent-%COMP%]   .sidenav__actions[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:1rem;position:fixed;bottom:0;left:0;right:0;padding:1rem;background-color:var(--color-primary-beige);border-top:1px solid var(--color-primary-black)}.projects[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem}.header[_ngcontent-%COMP%]{display:flex;gap:1rem}.header__region[_ngcontent-%COMP%]{flex:0 0 var(--sidebar-width);max-width:var(--sidebar-width)}.header__search[_ngcontent-%COMP%]{flex:1 1 100%;display:flex;flex-direction:column;gap:.5rem}.header__search[_ngcontent-%COMP%]   app-lrd-form-field[_ngcontent-%COMP%]{width:100%}.header__search[_ngcontent-%COMP%]   .header__search__results[_ngcontent-%COMP%]{font-size:1.125rem;font-family:var(--font-primary-semi-bold)}.header__filters[_ngcontent-%COMP%]{display:none;width:100%}.header__filters__button[_ngcontent-%COMP%]{width:100%}.pagination[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:2rem;padding:2rem}.pagination__label[_ngcontent-%COMP%]{font-size:1.25rem;font-family:var(--font-primary-semi-bold);text-align:center}.content[_ngcontent-%COMP%]{display:flex;gap:1rem}.loading-wrapper[_ngcontent-%COMP%]{position:relative;min-height:400px}.results-loading[_ngcontent-%COMP%]{width:100%}.filters[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:var(--sidebar-width)}.filters__section[_ngcontent-%COMP%]{width:var(--sidebar-width)}.filters__section[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%], .sidenav__filters__section[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem;margin-top:.5rem}.cards-container[_ngcontent-%COMP%]{flex-grow:1}.cards-container[_ngcontent-%COMP%]   .cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-auto-flow:row dense;gap:2rem}.results[_ngcontent-%COMP%]{flex-grow:1}.no-result-container[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center}.no-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}.no-result[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:200px}@media (max-width: 1100px){.header__filters[_ngcontent-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:none}.header[_ngcontent-%COMP%]{flex-direction:column}.header__region[_ngcontent-%COMP%]{display:none}.header__search[_ngcontent-%COMP%]{flex:initial;width:100%}}
4/*# sourceMappingURL=archives.component-LZBU2ZXW.css.map */`]});let e=t;return e})();var pi=3,ci=14,Se=(()=>{let t=class t{constructor(){this.searchService=w(ce),this.newsCardFactory=w(W)}resolve(){return E([this.getRecentNews(),this.getFeaturedNews()]).pipe(h(([o,r])=>{let l={metadata:se("pages.news.index")},c=[...r,...o];return r.length>0&&(l=Y(z({},l),{mainFeaturedRow:{large:!0,newsCards:r.slice(0,1)}})),c.length>1&&(l=Y(z({},l),{secondaryFeaturedRow:{newsCards:c.slice(1,3)}})),c.length>3&&(l=Y(z({},l),{othersRow:{newsCards:c.slice(3)}})),Y(z({},l),{hero:{left:{title:{key:"pages.news.index.title"},description:{key:"pages.news.index.description"},icon:j.ANNOUNCE},right:{illustration:"page-news"}},bottomCta:{type:"routerLink",routerLinkUrl:["archives"],color:J.YELLOW,label:{key:"pages.news.index.bottom-cta"}}})}))}getRecentNews(){return b(this.searchService.getPublicNewsArticlesSearch({from:0,size:ci})).pipe(h(V("items",[])),h(r=>r.map(l=>this.newsCardFactory.fromNewsArticleSearch(l))))}getFeaturedNews(){return b(this.searchService.getPublicNewsArticlesSearch({from:0,size:pi,isFeatured:!0})).pipe(h(V("items",[])),h(r=>r.map(l=>this.newsCardFactory.fromNewsArticleSearch(l))))}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function di(e,t){if(e&1&&(p(0,"div",6),x(1,"app-v2-news-row",9),a()),e&2){let i=v();n(),s("large",i.secondaryFeaturedRow.large)("title",i.secondaryFeaturedRow.title)("newsCards",i.secondaryFeaturedRow.newsCards)}}function mi(e,t){if(e&1&&(p(0,"div",7)(1,"div",0),x(2,"app-v2-news-row",9),a()()),e&2){let i=v();n(2),s("large",i.mainFeaturedRow.large)("title",i.mainFeaturedRow.title)("newsCards",i.mainFeaturedRow.newsCards)}}function ui(e,t){if(e&1&&(p(0,"div",8),x(1,"app-v2-news-row",9),a()),e&2){let i=v();n(),s("large",i.othersRow.large)("title",i.othersRow.title)("newsCards",i.othersRow.newsCards)}}function fi(e,t){if(e&1&&(p(0,"div",0),x(1,"app-dynamic-button",10),a()),e&2){let i=v();n(),s("useImmutableViewModel",i.bottomCta)}}function _i(e,t){if(e&1&&(p(0,"div",0)(1,"app-v2-hero",1)(2,"app-v2-hero-block",2),x(3,"a
4pp-lrd-hero-box",3),a(),p(4,"app-v2-hero-block",4)(5,"app-card-stack"),x(6,"app-v2-hero-illustration",5),a()()()(),C(7,di,2,3,"div",6),C(8,mi,3,3,"div",7),C(9,ui,2,3,"div",8),C(10,fi,2,1,"div",0)),e&2){let i=t;n(3),s("title",i.hero.left.title)("description",i.hero.left.description),n(3),s("illustration",i.hero.right.illustration),n(),g(i.secondaryFeaturedRow.newsCards.length?7:-1),n(),g(i.mainFeaturedRow.newsCards.length?8:-1),n(),g(i.othersRow.newsCards.length?9:-1),n(),g(i.bottomCta?10:-1)}}var Rt=(()=>{let t=class t extends G{constructor(){super()}ngOnInit(){super.ngOnInit(),window&&window.scrollTo(0,0)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=A({type:t,selectors:[["app-news-index"]],features:[N],decls:1,vars:1,consts:[[1,"section-container"],["layout","three-one","alwaysShowSecondHalf",""],["side","left"],[3,"title","description"],["side","right"],[3,"illustration"],[1,"section-container","secondary-featured-row"],[1,"section-container-wrapper","section-container-wrapper--yellow"],[1,"section-container","others-row"],[3,"large","title","newsCards"],[3,"useImmutableViewModel"]],template:function(r,l){if(r&1&&C(0,_i,11,7),r&2){let c;g((c=l.viewModel())?0:-1,c)}},dependencies:[me,U,H,bt,q,Mt,ct],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;width:100%}@media (max-width: 1010px){.secondary-featured-row[_ngcontent-%COMP%]     .news{flex:1 1 0!important}}@media (max-width: 750px){.others-row[_ngcontent-%COMP%]     .news{flex:1 1 0!important}}
5/*# sourceMappingURL=index.component-E2Z62BXB.css.map */`]});let e=t;return e})();var Pe=(()=>{let t=class t{constructor(){this.variousService=w(pe),this.dateFormatter=w(_t),this.routingService=w(ot)}resolve(o){let r=o.params.newsId;return this.getNews(r).pipe(M(l=>E([Ie(l),this.getCategory(l.categoryId),this.getRegion(l.regionId)])),h(([l,c,y])=>({metadata:this.buildPageMetadata(l),hero:{left:{title:l.title,subtitle:y?.name,description:l.subtitle,badges:[...this.buildCategoryBadges(c),...this.buildPublishedAtBadges(l.publishedAt)],icon:j.ANNOUNCE},right:{illustration:"page-news"}},content:l.content})))}getNews(o){return b(this.variousService.getNewsArticle(o))}getCategory(o){return b(this.variousService.getLookupById(o))}getRegion(o){return b(this.variousService.getRegion(parseInt(o,10)))}buildCategoryBadges(o){return o?[{label:{en:o.en,fr:o.fr},color:J.WHITE}]:[]}buildPublishedAtBadges(o){return o?[{label:this.dateFormatter.formatAsTranslatable(o,ht.LONG_DATE),color:J.WHITE}]:[]}buildPageMetadata(o){let r={key:"pages.news.show.metadata.title",params:{title:o.title}},l={key:"pages.news.show.metadata.description",params:{summary:o.subtitle}},c=tt({title:r,description:l,image:o.thumbnail.medium,url:this.routingService.routeUrlFor(nt.NEWS_ARTICLE,{slug:o.slug})});return{title:r,tags:[{name:"description",content:l},...c]}}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function hi(e,t){if(e&1&&x(0,"app-v2-badge",11),e&2){let i=t.$implicit;s("label",i.label)("color",i.color)("icon",i.icon)}}function vi(e,t){if(e&1&&(p(0,"div",4)(1,"app-v2-hero",5)(2,"app-v2-hero-block",6)(3,"app-v2-hero-basic-box",7),ie(4,hi,1,3,"app-v2-badge",8),a()(),p(5,"app-v2-hero-block",9),x(6,"app-v2-hero-illustration",10),a()()()),e&2){let i=t.$implicit;n(3),s("title",i.left.title)("subtitle",i.left.subtitle)("description",i.left.description),n(),s("ngForOf",i.left.badges),n(2),s("illustration",i.right.illustration)}}function Ci(e,t){if(e&1&&(oe(0),ie(1,vi,7,5,"div",1),p(2,"div",2),x(3,"app-v2-html-content",3),u(4,"translatable"),a(),re()),e&2){let i=t.$implicit;n(),s("ngIf",i.hero),n(2),s("value",_(4,2,i.content))}}var kt=(()=>{let t=class t extends G{constructor(){super()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=A({type:t,selectors:[["app-news-show"]],features:[N],decls:2,vars:3,consts:[[4,"ngIf"],["class","hero section-container",4,"ngIf"],[1,"section-container"],["type","safeHtml",3,"value"],[1,"hero","section-container"],["layout","three-one"],["side","left"],[3,"title","subtitle","description"],[3,"label","color","icon",4,"ngFor","ngForOf"],["side","right"],[3,"illustration"],[3,"label","color","icon"]],template:function(r,l){r&1&&
5(ie(0,Ci,5,4,"ng-container",0),u(1,"async")),r&2&&s("ngIf",_(1,1,l.viewModel$))},dependencies:[Ve,Ae,Ne,U,de,H,q,wt,Pt,Be,D],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem}
6/*# sourceMappingURL=show.component-S66YNACQ.css.map */`]});let e=t;return e})();var gi=[{path:"",component:Rt,resolve:ye(Se)},{path:"archives",pathMatch:"full",component:Tt},{path:":newsId",component:kt,resolve:ye(Pe)}],$t=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=te({type:t}),t.\u0275inj=ee({providers:[Pe,Se,St,W,D,Le,xt],imports:[ge.forChild(gi),De,ge]});let e=t;return e})();var ho=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=te({type:t}),t.\u0275inj=ee({imports:[$t]});let e=t;return e})();export{ho as NewsModule};
7//# sourceMappingURL=chunk-3TNNHV26.js.map
8
9//# debugId=eea984be-759c-5061-9665-8acf74363a86

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.