PageSourceSearch

https://www.985fm.ca/9367.8d2d09155d850bab.js

js 985fm.ca collected 2026-10-02 02:30:54 UTC 29,264 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsites=self.webpackChunkwebsites||[]).push([[9367],{9367:(ie,R,r)=>{r.r(R),r.d(R,{CategoriesModule:()=>ee});var d=r(1600),P=r(5869),t=r(4438),g=r(1123),G=r(8056),I=r(3028),p=r(1413),m=r(6977),y=r(8141),h=r(5558),M=r(6354),H=r(3294),$=r(9437),L=r(7673),l=r(177),E=r(7594),Y=r(1390),F=r(8677),X=r(8795),O=r(1221),N=r(8829),j=r(1101),A=r(9445),D=r(4726),z=r(7073),K=r(60),Q=r(1317),U=r(6328),B=r(7495),V=r(9627),J=r(6525),_=r(8147);const W=["subcatScrollContainer"],Z=["tagsScrollContainer"],q=()=>({isResponsive:!1,path:"https://cdn.cogecolive.com/websites-public/985_Sports_2024_Logotype_Alone_RGB.svg"}),k=()=>["far","angle-left"],w=()=>["far","angle-right"],tt=n=>({content:n,position:1,cardType:"featured-1",imageType:"card_16x9_1row_left_column"}),et=(n,o)=>({content:n,position:o,cardType:"vertical",imageType:"card_16x9_3row_left_column"});function nt(n,o){1&n&&t.nrm(0,"cmi-ad",27),2&n&&t.Y8G("adClass","ad--banner ad--horizontal")}function at(n,o){1&n&&(t.qex(0),t.nrm(1,"img",29),t.bVm()),2&n&&(t.R7$(),t.Y8G("cmiLazyloadPicture",t.lJ4(1,q)))}function it(n,o){if(1&n&&t.EFF(0),2&n){const e=t.XpG(2);t.SpI(" ","fr"===e.currentLang?e.category.nameFr:e.category.nameEn," ")}}function ot(n,o){if(1&n&&(t.j41(0,"div",28)(1,"h1"),t.DNE(2,at,2,2,"ng-container",16)(3,it,1,1,"ng-template",null,3,t.C5r),t.k0s()()),2&n){const e=t.sdS(4),a=t.XpG();t.R7$(2),t.Y8G("ngIf",a.category.id===(null==a.taxonomyService?null:a.taxonomyService.sportCategoryId))("ngIfElse",e)}}function st(n,o){if(1&n&&(t.qex(0),t.j41(1,"a",36),t.EFF(2),t.k0s(),t.bVm()),2&n){const e=t.XpG().$implicit,a=t.XpG(2);t.R7$(),t.Y8G("routerLink","fr"===a.currentLang?e.slugFr:e.slugEn),t.BMQ("title","fr"===a.currentLang?e.nameFr:e.nameEn),t.R7$(),t.JRh(e.displayName)}}function rt(n,o){if(1&n&&(t.qex(0),t.DNE(1,st,3,3,"ng-container",18),t.bVm()),2&n){const e=o.$implicit;t.R7$(),t.Y8G("ngIf",e)}}function ct(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",30)(1,"button",31),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollNav("subcats","left"))}),t.nrm(3,"fa-icon",32),t.k0s(),t.j41(4,"nav",33,4),t.DNE(6,rt,2,1,"ng-container",34),t.k0s(),t.j41(7,"button",35),t.nI1(8,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollNav("subcats","right"))}),t.nrm(9,"fa-icon",32),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(),t.AVh("is-visible",e.subcatCanScrollLeft),t.BMQ("aria-label",t.bMT(2,9,"ARIA.SCROLL_LEFT")),t.R7$(2),t.Y8G("icon",t.lJ4(13,k)),t.R7$(3),t.Y8G("ngForOf",e.subcategories),t.R7$(),t.AVh("is-visible",e.subcatCanScrollRight),t.BMQ("aria-label",t.bMT(8,11,"ARIA.SCROLL_RIGHT")),t.R7$(2),t.Y8G("icon",t.lJ4(14,w))}}function gt(n,o){if(1&n&&(t.j41(0,"a",39),t.EFF(1),t.k0s()),2&n){const e=o.$implicit,a=t.XpG(2);t.Y8G("routerLink",a.getTagRoute(e)),t.BMQ("title","fr"===a.currentLang?e.nameFr:e.nameEn),t.R7$(),t.SpI(" ","fr"===a.currentLang?e.nameFr:e.nameEn," ")}}function lt(n,o){if(1&n){const e=t.RV6();t.j41(0,"div",37)(1,"div",30)(2,"button",31),t.nI1(3,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollNav("tags","left"))}),t.nrm(4,"fa-icon",32),t.k0s(),t.j41(5,"nav",33,5),t.DNE(7,gt,2,3,"a",38),t.k0s(),t.j41(8,"button",35),t.nI1(9,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.scrollNav("tags","right"))}),t.nrm(10,"fa-icon",32),t.k0s()()()}if(2&n){const e=t.XpG();t.R7$(2),t.AVh("is-visible",e.tagsCanScrollLeft),t.BMQ("aria-label",t.bMT(3,9,"ARIA.SCROLL_LEFT")),t.R7$(2),t.Y8G("icon",t.lJ4(13,k)),t.R7$(3),t.Y8G("ngForOf",e.tags),t.R7$(),t.AVh("is-visible",e.tagsCanScrollRight),t.BMQ("aria-label",t.bMT(9,11,"ARIA.SCROLL_RIGHT")),t.R7$(2),t.Y8G("icon",t.lJ4(14,w))}}function dt(n,o){}function pt(n,o){if(1&n&&(t.qex(0),t.DNE(1,dt,0,0,"ng-template",40),t.bVm()),2&n){const e=o.$implicit;t.XpG(2);const a=t.sdS(38);t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(2,tt,e))}}function mt(n,o){if(1&n&&(t.qex(0),t.DNE(1,pt,2,4,"ng-container",34),t.nI1(2,"slice"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.topContent,0,1))}}function ut(n,o){}function yt(n,o){if(1&n&&(t.qex(0),t.DNE(1,ut,0,0,"ng-template",40),t.bVm()),2&n){const e=o.$implicit,a=o.index;t.XpG(2);const i=t.sdS(38);t.R7$(),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.l_i(2,et,e,a+1))}}function ht(n,o){if(1&n&&(t.qex(0),t.DNE(1,yt,2,5,"ng-container",34),t.nI1(2,"slice"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.topContent,1,4))}}function _t(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-opt-in-widget",41),t.bVm()),2&n){const e=t.XpG();
1t.R7$(),t.Y8G("entityId",e.category.id)("isCompact",!1)}}function ft(n,o){1&n&&t.nrm(0,"cmi-ad",42),2&n&&t.Y8G("adClass","ad--banner")}function Ct(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-broadcast-banner",43),t.bVm()),2&n){const e=o.$implicit;t.R7$(),t.Y8G("broadcast",e)}}function vt(n,o){if(1&n&&(t.qex(0),t.j41(1,"div",7),t.DNE(2,Ct,2,1,"ng-container",34),t.nI1(3,"slice"),t.k0s(),t.bVm()),2&n){const e=t.XpG(2);t.R7$(2),t.Y8G("ngForOf",t.brH(3,1,e.broadcasts,0,1))}}function bt(n,o){if(1&n&&(t.qex(0),t.DNE(1,vt,4,5,"ng-container",18),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.broadcasts.length>0)}}function St(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-podcast-slider",44),t.nI1(2,"translate"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("podcasts",e.podcasts)("title",t.bMT(2,3,"PODCASTS.PODCASTS"))("id","slider-category")}}function Tt(n,o){1&n&&t.nrm(0,"cmi-ad",45),2&n&&t.Y8G("adClass","ad--banner")}function xt(n,o){1&n&&(t.qex(0),t.nrm(1,"cmi-opt-in-widget",46),t.bVm()),2&n&&(t.R7$(),t.Y8G("isSidebar",!0))}function Rt(n,o){1&n&&t.nrm(0,"cmi-ad",47),2&n&&t.Y8G("adClass","ad--banner ad--horizontal")}function Gt(n,o){1&n&&t.nrm(0,"cmi-skeleton-card",48)}function It(n,o){1&n&&t.nrm(0,"cmi-skeleton-card",49)(1,"cmi-skeleton-card",49)(2,"cmi-skeleton-card",49)}function $t(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-article-card",50),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("article",a)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Lt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-audio-card",51),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("audio",a)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Et(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-video-card",52),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("video",a)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Yt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-podcast-episode-card",53),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("podcastEpisode",a)("podcast",a.podcast)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Ft(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-gallery-card",54),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.cardType,s=e.imageType;t.R7$(),t.Y8G("gallery",a)("cardType",i)("imageType",s)}}function Xt(n,o){if(1&n&&t.DNE(0,$t,2,4,"ng-container",18)(1,Lt,2,4,"ng-container",18)(2,Et,2,4,"ng-container",18)(3,Yt,2,5,"ng-container",18)(4,Ft,2,3,"ng-container",18),2&n){const e=o.content;t.Y8G("ngIf","article"===e.type),t.R7$(),t.Y8G("ngIf","audio"===e.type),t.R7$(),t.Y8G("ngIf","video"===e.type),t.R7$(),t.Y8G("ngIf","podcastepisode"===e.type),t.R7$(),t.Y8G("ngIf","gallery"===e.type)}}let Ot=(()=>{class n{constructor(e,a,i,s,c,u,f,C,v,b,S,T,x,ne,ae){this.platformId=e,this.adsService=a,this.api=i,this.broadcastService=s,this.cdr=c,this.linkService=u,this.metaService=f,this.route=C,this.ngZone=v,this.router=b,this.taxonomyService=S,this.responsiveService=T,this.stationService=x,this.stringService=ne,this.urlService=ae,this.broadcasts=[],this.loadAds=!1,this.isPodcastsLoading=!0,this.isContentLoading=!0,this.currentLang="fr",this.categoryHasNewsletter=!1,this.tags=[],this.subcatCanScrollLeft=!1,this.subcatCanScrollRight=!1,this.tagsCanScrollLeft=!1,this.tagsCanScrollRight=!1,this.subcatListenerBound=!1,this.tagsListenerBound=!1,this.featuredCount=4,this.subs=[],this.categoryReady$=new p.B,this.unsubSubject$=new p.B,this.isLoaded$=new p.B}onWindowResize(){this.checkScrollOverflow()}ngOnInit(){this.categoryReady$.pipe((0,m.Q)(this.unsubSubject$),(0,y.M)(()=>{this.isPodcastsLoading=!0,this.podcasts=[],this.cdr.detectChanges()}),(0,h.n)(e=>this.getPodcasts$(e))).subscribe(e=>{this.isPodcastsLoading=!1,this.podcasts=e.contents,this.cdr.detectChanges()}),this.categoryReady$.pipe((0,m.Q)(this.unsubSubject$),(0,y.M)(()=>{this.isContentLoading=!0,this.topContent=[],this.cdr.detectChanges()}),(0,h.n)(e=>this.getFeaturedArticles$(e))).subscribe(e=>{this.topContent=e.contents||e.items,this.isContentLoading=!1,this.cdr.detectChanges(),(0,l.UE)(this.platformId)&&setTimeout(()=>{this.isLoaded$.next(void 0),this.responsiveService.nextDomSubject()})}),this.route.paramMap.pipe((0,m.Q)(this.unsubSubject$),(0,M.T)(e=>e.get("category")),(0,H.F)()).subscribe(e=>{this.onRouteChange({category:e})}),this.subs.push(this.isLoaded$.asObservable().subscribe(()=>{this.setupAdConfig()}
1))}ngOnDestroy(){this.subs.forEach(e=>e.unsubscribe()),this.unsubSubject$.next(null),this.unsubSubject$.complete(),this.metaService.removeAllTags(),this.linkService.removeCanonicalTag()}getDisplayName(e){if(e){const a="fr"===this.currentLang?e.nameFr:e.nameEn,i=-1!==a.indexOf("\u2013")?a.indexOf("\u2013"):a.indexOf("-");return-1!==i?a.substring(0,i).trim():a}}getTagRoute(e){return`${"fr"===this.currentLang?"/thematique":"/theme"}/${"fr"===this.currentLang?e.slugFr:e.slugEn}`}scrollNav(e,a){const i="subcats"===e?this.subcatScrollContainer?.nativeElement:this.tagsScrollContainer?.nativeElement;if(!i)return;const s=.75*i.clientWidth;i.scrollBy({left:"left"===a?-s:s,behavior:"smooth"})}bindScrollListeners(){(0,l.UE)(this.platformId)&&(this.ngZone.runOutsideAngular(()=>{const e=this.subcatScrollContainer?.nativeElement,a=this.tagsScrollContainer?.nativeElement;e&&!this.subcatListenerBound&&(e.addEventListener("scroll",()=>this.onScrollUpdate("subcats"),{passive:!0}),this.subcatListenerBound=!0),a&&!this.tagsListenerBound&&(a.addEventListener("scroll",()=>this.onScrollUpdate("tags"),{passive:!0}),this.tagsListenerBound=!0)}),this.checkScrollOverflow())}onScrollUpdate(e){const a="subcats"===e?this.subcatScrollContainer?.nativeElement:this.tagsScrollContainer?.nativeElement;if(!a)return;const i=a.scrollLeft>1,s=a.scrollLeft<a.scrollWidth-a.clientWidth-1;this.ngZone.run(()=>{"subcats"===e?(this.subcatCanScrollLeft=i,this.subcatCanScrollRight=s):(this.tagsCanScrollLeft=i,this.tagsCanScrollRight=s),this.cdr.detectChanges()})}checkScrollOverflow(){this.onScrollUpdate("subcats"),this.onScrollUpdate("tags")}
1onRouteChange(e){this.loadAds=!1,this.stationService.waitUntilReady(()=>{this.taxonomyService.waitUntilReady(()=>{this.currentLang=this.stationService.station.language,this.category=e.category&&this.taxonomyService.getCategoryBySlug(e.category)||"",this.category?(this.category.id===this.taxonomyService.sportCategoryId?this.sortSportsSubcategories(this.category.childCategories):this.subcategories=this.category.childCategories,this.subcategories=this.subcategories.map(a=>({...a,displayName:this.getDisplayName(a)})),this.setupContentListParams(),this.setupMetaData(),this.getBroadcasts(),this.categoryHasNewsletter=E.d.includes(this.category.id),this.categoryReady$.next(this.category),this.tags=this.taxonomyService.getTagsByCategoryId(this.category.id),this.cdr.detectChanges(),setTimeout(()=>this.bindScrollListeners(),0)):this.router.navigate(["/404"])})})}sortSportsSubcategories(e){this.subcategories=[23,24,28,22,27,26,29,30].map(i=>e.find(s=>s.id===i))}setupContentListParams(){const e={fullCategory:this.category.id,stationIds:this.stationService.station.id,type:this.stationService.isStation("THEBEAT")?"article,video,gallery,audio":"article,video,gallery,audio,podcastepisode",with:"users,shows,category,audioItemsOnly",offset:this.category.id===this.taxonomyService.sportCategoryId&&(this.stationService.isStationType("talk")||this.stationService.isStation("CKOI"))?0:this.featuredCount};this.contentListParams=new G.L("/contents",e,!1,!0)}setupMetaData(){this.category&&(this.metaService.setTitle("fr"===this.currentLang?this.category.nameFr:this.category.nameEn),this.metaService.setTag("description","fr"===this.currentLang?this.category.descriptionFr:this.category.descriptionEn),this.metaService.setTag("keywords","fr"===this.currentLang?this.category.keywordsFr:this.category.keywordsEn),this.linkService.addCanonicalTag("/"+("fr"===this.currentLang?this.category.slugFr:this.category.slugEn),this.stationService.station.domain))}getPodcasts$(e){return this.api.get("/contents/podcasts",{fullCategory:e.id,stationIds:this.stationService.station.id},{},!0).pipe((0,$.W)(()=>(0,L.of)({contents:[]})))}getFeaturedArticles$(e){return e.id===this.taxonomyService.sportCategoryId&&(this.stationService.isStationType("talk")||this.stationService.isStation("CKOI"))?this.api.get("/list/contents-sport",{},{},!0):this.api.get("/contents",{fullCategory:e.id,stationIds:this.stationService.station.id,type:this.stationService.isStation("THEBEAT")?"article,video,gallery,audio":"article,video,gallery,audio,podcastepisode",with:"users,shows,category,audioItemsOnly",limit:this.featuredCount},{},!0)}getBroadcasts(){this.broadcasts=[],this.category.id===this.taxonomyService.sportCategoryId&&this.broadcastService.getSpecialBroadcasts("HOMEPAGE_SPORT",this.stationService.station.id).pipe((0,m.Q)(this.unsubSubject$)).subscribe(e=>{this.broadcasts=e.broadcastevents})}setupAdConfig(){this.loadAds=!0,this.adsService.destroyAdsSlots(),this.adsService.addKeyValues("page_type","hub"),this.adsService.addKeyValues("CAT",this.category?.slugFr),this.adsService.createAdsSet("category","/ros",[["hResponsive","L3-1"],["vBig","L3-4mdash"],["vBig","L3-4ndash"],["footer","L3-5"]]),this.adsService.refreshAds()}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(t.Agw),t.rXU(I.gp),t.rXU(g.jI),t.rXU(g.DK),t.rXU(t.gRc),t.rXU(g._w),t.rXU(g.RH),t.rXU(d.nX),t.rXU(t.SKi),t.rXU(d.Ix),t.rXU(g.tM),t.rXU(g.cK),t.rXU(Y.f),t.rXU(g.hN),t.rXU(g.Hn))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cmi-category"]],viewQuery:function(a,i){if(1&a&&(t.GBs(W,5),t.GBs(Z,5)),2&a){let s;t.mGM(s=t.lsd())&&(i.subcatScrollContainer=s.first),t.mGM(s=t.lsd())&&(i.tagsScrollContainer=s.first)}},hostBindings:function(a,i){1&a&&t.bIt("resize",function(){return i.onWindowResize()},!1,t.tSv)},decls:39,vars:21,consts:[["featuredFirstLoad",""],["featuredSecondLoad",""],["contentCard",""],["textTitle",""],["subcatScrollContainer",""],["tagsScrollContainer",""],["type","category-0","minSize","fluid",3,"adClass",4,"ngIf"],[1,"container"],[1,"c-category-header"],[1,"c-category-header__row"],["class","c-category-header__title",4,"ngIf"],["class","c-category-header__scrollable",4,"ngIf"],["class","c-category-header__row c-category-header__row--tags",4,"ngIf"],[1,"l-wrap"],[1,"l-wrap__left"],[1,"HeroGri
1d__ContainerGrid"],[4,"ngIf","ngIfElse"],[1,"HeroGrid__heroColumns-3"],[4,"ngIf"],[1,"l-wrap__right"],[1,"sticky-top"],["type","category-1","minSize","300x250",3,"adClass",4,"ngIf"],[1,"c-section-header"],["eventContext","category-list",3,"paginateParams","itemsPerPage"],["cardType","sidebar","eventContext","sidebar-content-recommendation",3,"isMostRead"],["type","category-2","minSize","300x250",3,"adClass",4,"ngIf"],["type","category-3","minSize","320x50",3,"adClass",4,"ngIf"],["type","category-0","minSize","fluid",3,"adClass"],[1,"c-category-header__title"],["width","170","height","55","alt","Sports",3,"cmiLazyloadPicture"],[1,"c-category-header__scrollable"],["type","button",1,"c-category-header__scroll-control","c-category-header__scroll-control--left",3,"click"],[3,"icon"],["role","navigation",1,"c-category-header__scroll-container"],[4,"ngFor","ngForOf"],["type","button",1,"c-category-header__scroll-control","c-category-header__scroll-control--right",3,"click"],[1,"c-category-header__link",3,"routerLink"],[1,"c-category-header__row","c-category-header__row--tags"],["class","o-tag o-tag--navigation",3,"routerLink",4,"ngFor","ngForOf"],[1,"o-tag","o-tag--navigation",3,"routerLink"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","category",3,"entityId","isCompact"],["type","category-1","minSize","300x250",3,"adClass"],[3,"broadcast"],[3,"podcasts","title","id"],["type","category-2","minSize","300x250",3,"adClass"],["type","station",3,"isSidebar"],["type","category-3","minSize","320x50",3,"adClass"],["type","content-card-featured-1"],["type","content-card-vertical"],[3,"article","cardType","imageType","eventContext"],[3,"audio","cardType","imageType","eventContext"],[3,"video","cardType","imageType","eventContext"],[3,"podcastEpisode","podcast","cardType","imageType","eventContext"],[3,"gallery","cardType","imageType"]],template:function(a,i){if(1&a&&(t.DNE(0,nt,1,1,"cmi-ad",6),t.j41(1,"div",7)(2,"div",8)(3,"div",9),t.DNE(4,ot,5,2,"div",10)(5,ct,10,15,"div",11),t.k0s(),t.DNE(6,lt,11,15,"div",12),t.k0s(),t.j41(7,"div",13)(8,"div",14)(9,"div",15),t.DNE(10,mt,3,5,"ng-container",16),t.j41(11,"div",17),t.DNE(12,ht,3,5,"ng-container",16),t.k0s()(),t.DNE(13,_t,2,2,"ng-container",18),t.k0s(),t.j41(14,"aside",19)(15,"div",20),t.DNE(16,ft,1,1,"cmi-ad",21),t.k0s()()()(),t.DNE(17,bt,2,1,"ng-container",18)(18,St,3,5,"ng-container",18),t.j41(19,"div",7)(20,"div",13)(21,"div",14)(22,"div",22)(23,"h2"),t.EFF(24),t.nI1(25,"translate"),t.k0s()(),t.nrm(26,"cmi-content-list-container",23),t.k0s(),t.j41(27,"aside",19)(28,"div",20),t.nrm(29,"cmi-content-recommendation",24),t.DNE(30,Tt,1,1,"cmi-ad",25)(31,xt,2,1,"ng-container",18),t.k0s()()(),t.DNE(32,Rt,1,1,"cmi-ad",26),t.k0s(),t.DNE(33,Gt,1,0,"ng-template",null,0,t.C5r)(35,It,3,0,"ng-template",null,1,t.C5r)(37,Xt,5,5,"ng-template",null,2,t.C5r)),2&a){const s=t.sdS(34),c=t.sdS(36);t.Y8G("ngIf",i.loadAds),t.R7$(4),t.Y8G("ngIf",i.category),t.R7$(),t.Y8G("ngIf",null==i.category?null:i.category.childCategories),t.R7$(),t.Y8G("ngIf",i.tags&&i.tags.length>0),t.R7$(4),t.Y8G("ngIf",!i.isContentLoading)("ngIfElse",s),t.R7$(2),t.Y8G("ngIf",!i.isContentLoading)("ngIfElse",c),t.R7$(),t.Y8G("ngIf",i.categoryHasNewsletter),t.R7$(3),t.Y8G("ngIf",i.loadAds),t.R7$(),t.Y8G("ngIf",(null==i.category?null:i.category.id)===(null==i.taxonomyService?null:i.taxonomyService.sportCategoryId)),t.R7$(),t.Y8G("ngIf",!i.isPodcastsLoading&&i.podcasts&&i.podcasts.length>0),t.R7$(6),t.JRh(t.bMT(25,19,"CONTINUOUSLY")),t.R7$(2),t.Y8G("paginateParams",i.contentListParams)("itemsPerPage",10),t.R7$(3),t.Y8G("isMostRead",!0),t.R7$(),t.Y8G("ngIf",i.loadAds),t.R7$(),t.Y8G("ngIf",!i.categoryHasNewsletter),t.R7$(),t.Y8G("ngIf",i.loadAds)}},dependencies:[l.Sq,l.bT,l.T3,d.Wk,F.O,X.F,O._,N.P,j.u,A.F,D.$,z.u,K.aY,Q.R,U.O,B.K,V.g,J.T,l.P9,_.D9],encapsulation:2})}}return n})();var Nt=r(2175);const jt=n=>({content:n,position:1,cardType:"featured-1",imageType:"card_16x9_1row_left_column"}),At=(n,o)=>({content:n,position:o,cardType:"vertical",imageType:"card_16x9_3row_left_column"});function Dt(n,o){if(1&n&&(t.j41(0,"div",21),t.nrm(1,"cmi-breadcrumb",22),t.j41(2,"h1"),t.EFF(3),t.k0s()()),2&n){const e=t.XpG();t.R7$(),t.Y8G("parents",e.breadcrumbParents)("currentPageTitle",e.pageTitle),t.R7$(2),t.JRh(e.pageTitle)}}function Ut(n,o){}function Bt(n,o){if(1&n&&(t.qex(0),t.DNE(1,Ut,0,0,"ng-template",24),t.bVm()),2&n){const e=o.$implicit;t.XpG(2);const a=t.sdS(31);t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(2,jt,e))}}function Vt(n,o){if(1&n&&(t.qex(0),t.DNE(1,Bt,2,4,"ng-container",23),t.nI1(2,"slice"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.topContent,0,1))}}function kt(n,o){}function wt(n,o){if(1&n&&(t.qex(0),t.DNE(1,kt,0,0,"ng-template",24),t.bVm()),2&n){const e=o.$implicit,a=o.index;t.XpG(2);const i=t.sdS(31);t.R7$(),t.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",t.l_i(2,At,e,a+1))}}function Pt(n,o){if(1&n&&(t.qex(0),t.DNE(1,wt,2,5,"ng-container",23),t.nI1(2,"slice"),t.bVm()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",t.brH(2,1,e.topContent,1,4))}}function Mt(n,o){1&n&&t.nrm(0,"cmi-skeleton-card",25)}function Ht(n,o){1&n&&t.nrm(0,"cmi-skeleton-card",26)(1,"cmi-skeleton-card",26)(2,"cmi-skeleton-card",26)}function zt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-article-card",28),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("article",a)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Kt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-audio-card",29),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("audio",a)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Qt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-video-card",30),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("video",a)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Jt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-podcast-episode-card",31),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.position,s=e.cardType,c=e.imageType;t.R7$(),t.Y8G("podcastEpisode",a)("podcast",a.podcast)("cardType",s)("imageType",c)("eventContext","category-featured-content-"+i)}}function Wt(n,o){if(1&n&&(t.qex(0),t.nrm(1,"cmi-gallery-card",32),t.bVm()),2&n){const e=t.XpG(),a=e.content,i=e.cardType,s=e.imageType;t.R7$(),t.Y8G("gallery",a)("cardType",i)("imageType",s)}}function Zt(n,o){if(1&n&&t.DNE(0,zt,2,4,"ng-container",27)(1,Kt,2,4,"ng-container",27)(2,Qt,2,4,"ng-container",27)(3,Jt,2,5,"ng-container",27)(4,Wt,2,3,"ng-container",27),2&n){const e=o.content;t.Y8G("ngIf","article"===e.type),t.R7$(),t.Y8G("ngIf","audio"===e.type),t.R7$(),t.Y8G("ngIf","video"===e.type),t.R7$(),t.Y8G("ngIf","podcastepisode"===e.type),t.R7$(),t.Y8G("ngIf","gallery"===e.type)}}function qt(n,o){1&n&&t.nrm(0,"cmi-skeleton-card",33)}const te=[{path:"",component:Ot},{path:":subcategory",component:(()=>{class n{constructor(e,a,i,s,c,u,f,C,v,b,S,T,x){this.platformId=e,this.stationService=a,this.taxonomyService=i,this.translateService=s,this.stringService=c,this.route=u,this.adsService=f,this.metaService=C,this.router=v,this.linkService=b,this.api=S,this.responsiveService=T,this.cdr=x,this.isContentLoading=!0,this.currentLang="fr",this.parentCategoryHasNewsletter=!1,this.breadcrumbParents=[],this.featuredCount=4,this.subcategoryReady$=new p.B,this.unsubSubject$=new p.B}ngOnInit(){this.subcategoryReady$.pipe((0,m.Q)(this.unsubSubject$),(0,y.M)(()=>{this.isContentLoading=!0,this.topContent=[],this.cdr.detectChanges()}),(0,h.n)(e=>this.getFeaturedContent$(e))).subscribe(e=>{this.topContent=e.contents||e.articles,this.isContentLoading=!1,this.cdr.detectChanges(),(0,l.UE)(this.platformId)&&setTimeout(()=>{this.responsiveService.nextDomSubject()})}),this.sub=this.route.params.subscribe(e=>{this.stationService.waitUntilReady(()=>{this.taxonomyService.waitUntilReady(()=>{this.currentLang=this.stationService.station.language,this.subcategorySlug=e.subcategory,this.subcategory=this.subcategorySlug&&this.taxonomyService.getCategoryBySlug(this.subcategorySlug)||"",this.subcategory?(this.category=this.taxonomyService.getCategoryDetailFromCategory(this.subcategory)?.parentCategory,this.pageTitle=this.getSubcategoryTitle(this.subcategory),this.setupMetaData(),this.setupAdConfig(),this.setupContentListParams(),this.parentCategoryHasNewsletter=E.d.includes(this.category.id),this.subcategoryReady$.next(this.subcategory),this.breadcrumbParents=[{name:"fr"===this.currentLang?this.category.nameFr:this.category.nameEn,url:["/","fr"===this.currentLang?this.category.slugFr:this.category.slugEn],isSportsLogo:this.category.id===this.taxonomyService.sportCategoryId}]):this.router.navigate(["/404"])})})})}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.unsubSubject$.next(null),this.unsubSubject$.complete(),this.metaService.removeAllTags(),this.linkService.removeCanonicalTag()}getSubcategoryTitle(e){const a="fr"===this.currentLang?e.nameFr:e.nameEn,i=-1!==a.indexOf("\u2013")?a.indexOf("\u2013"):a.indexOf("-");return-1!==i?a.substring(0,i).trim():a}setupContentListParams(){const e={stationIds:this.stationService.station.id,strictCategory:this.subcategory.id,type:this.stationService.isStation("THEBEAT")?"article,video,gallery,audio":"article,video,gallery,audio,podcastepisode",with:"users,shows,category,audioItemsOnly",offset:this.featuredCount};this.contentListParams=new G.L("/contents",e,!1,!0)}getFeaturedContent$(e){return this.api.get("/contents",{stationIds:this.stationService.station.id,strictCategory:e.id,type:this.stationService.isStation("THEBEAT")?"article,video,gallery,audio":"article,video,gallery,audio,podcastepisode",with:"users,shows,category,audioItemsOnly",limit:this.featuredCount},{},!0).pipe((0,$.W)(()=>(0,L.of)({contents:[]})))}setupMetaData(){this.subcategory&&(this.metaService.setTitle(this.pageTitle),this.metaService.setTag("description","fr"===this.currentLang?this.subcategory.descriptionFr:this.subcategory.descriptionEn),this.metaService.setTag("keywords","fr"===this.currentLang?this.subcategory.keywordsFr:this.subcategory.keywordsEn),this.linkService.addCanonicalTag("/"+("fr"===this.currentLang?this.category.slugFr+"/"+this.subcategory.slugFr:this.category.slugEn+"/"+this.subcategory.slugEn),this.stationService.station.domain))}setupAdConfig(){this.adsService.destroyAdsSlots(),this.adsService.addKeyValues("page_type","hub"),this.adsService.addKeyValues("S-CAT",this.subcategory?.slugFr),this.adsService.addKeyValues("CAT",this.category?.slugFr),this.adsService.createAdsSet("subcategory","/ros",[["hResponsive","L3-1"],["vBig","L3-4mdash"],["vBig","L3-4ndash"],["footer","L3-5"]]),this.adsService.refreshAds()}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(t.Agw),t.rXU(Y.f),t.rXU(g.tM),t.rXU(_.c$),t.rXU(g.hN),t.rXU(d.nX),t.rXU(I.gp),t.rXU(g.RH),t.rXU(d.Ix),t.rXU(g._w),t.rXU(g.jI),t.rXU(g.cK),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["cmi-subcategory"]],decls:34,vars:19,consts:[["featuredFirstLoad",""],["featuredSecondLoad",""],["contentCard",""],["loadingBreadcrumb",""],["type","subcategory-0","minSize","fluid",3,"adClass"],[1,"container"],["class","c-page-header-section",4,"ngIf","ngIfElse"],[1,"l-wrap"],[1,"l-wrap__left"],[1,"HeroGri
1d__ContainerGrid"],[4,"ngIf","ngIfElse"],[1,"HeroGrid__heroColumns-3"],[1,"l-wrap__right"],[1,"sticky-top"],["type","subcategory-1","minSize","300x250",3,"adClass"],[1,"c-section-header"],["eventContext","subcategory-list",3,"paginateParams","subcategoryId"],["cardType","sidebar","eventContext","sidebar-content-recommendation",3,"isMostRead"],["type","subcategory-2","minSize","300x250",3,"adClass"],[3,"type","entityId","isSidebar"],["type","subcategory-3","minSize","320x50",3,"adClass"],[1,"c-page-header-section"],[3,"parents","currentPageTitle"],[4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","content-card-featured-1"],["type","content-card-vertical"],[4,"ngIf"],[3,"article","cardType","imageType","eventContext"],[3,"audio","cardType","imageType","eventContext"],[3,"video","cardType","imageType","eventContext"],[3,"podcastEpisode","podcast","cardType","imageType","eventContext"],[3,"gallery","cardType","imageType"],["type","breadcrumb"]],template:function(a,i){if(1&a&&(t.nrm(0,"cmi-ad",4),t.j41(1,"div",5),t.DNE(2,Dt,4,3,"div",6),t.j41(3,"div",7)(4,"div",8)(5,"div",9),t.DNE(6,Vt,3,5,"ng-container",10),t.j41(7,"div",11),t.DNE(8,Pt,3,5,"ng-container",10),t.k0s()()(),t.j41(9,"aside",12)(10,"div",13),t.nrm(11,"cmi-ad",14),t.k0s()()()(),t.j41(12,"div",5)(13,"div",7)(14,"div",8)(15,"div",15)(16,"h2"),t.EFF(17),t.nI1(18,"translate"),t.k0s()(),t.nrm(19,"cmi-content-list-container",16),t.k0s(),t.j41(20,"aside",12)(21,"div",13),t.nrm(22,"cmi-content-recommendation",17)(23,"cmi-ad",18)(24,"cmi-opt-in-widget",19),t.k0s()()(),t.nrm(25,"cmi-ad",20),t.k0s(),t.DNE(26,Mt,1,0,"ng-template",null,0,t.C5r)(28,Ht,3,0,"ng-template",null,1,t.C5r)(30,Zt,5,5,"ng-template",null,2,t.C5r)(32,qt,1,0,"ng-template",null,3,t.C5r)),2&a){const s=t.sdS(27),c=t.sdS(29),u=t.sdS(33);t.Y8G("adClass","ad--banner ad--horizontal"),t.R7$(2),t.Y8G("ngIf",i.subcategory&&i.category)("ngIfElse",u),t.R7$(4),t.Y8G("ngIf",!i.isContentLoading)("ngIfElse",s),t.R7$(2),t.Y8G("ngIf",!i.isContentLoading)("ngIfElse",c),t.R7$(3),t.Y8G("adClass","ad--banner"),t.R7$(6),t.JRh(t.bMT(18,17,"CONTINUOUSLY")),t.R7$(2),t.Y8G("paginateParams",i.contentListParams)("subcategoryId",null==i.subcategory?null:i.subcategory.id),t.R7$(3),t.Y8G("isMostRead",!0),t.R7$(),t.Y8G("adClass","ad--banner"),t.R7$(),t.Y8G("type",i.parentCategoryHasNewsletter?"category":"station")("entityId",i.parentCategoryHasNewsletter?i.category.id:void 0)("isSidebar",!0),t.R7$(),t.Y8G("adClass","ad--banner ad--horizontal")}},dependencies:[l.Sq,l.bT,l.T3,F.O,X.F,O._,N.P,j.u,A.F,D.$,Nt.D,U.O,B.K,V.g,l.P9,_.D9],encapsulation:2})}}return n})()}];let ee=(()=>{class n{static{this.\u0275fac=function(a){return new(a||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[P.G,d.iI.forChild(te)]})}}return n})()}}]);

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.