PageSourceSearch

https://www.985fm.ca/1166.7c4a23ddfcc2fa45.js

js 985fm.ca collected 2026-10-02 02:30:31 UTC 44,841 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsites=self.webpackChunkwebsites||[]).push([[1166],{1166:(En,G,c)=>{c.r(G),c.d(G,{MusicModule:()=>Sn});var u=c(1600),V=c(9417),k=c(9242),P=c(5869),S=c(1753),t=c(4438),r=c(7586),_=c(1123),b=c(3028),$=c(6444),d=c(177),E=c(1390),p=c(8147),I=c(4345),T=c(9445),L=c(4726),h=c(6097),R=c(60),D=c(2175),N=c(7495),x=c(9627),C=c(7572);const X=e=>({"is-loading":e});function U(e,a){if(1&e&&(t.qex(0),t.j41(1,"li"),t.nrm(2,"cmi-song-card",29),t.k0s(),t.bVm()),2&e){const n=a.$implicit;t.R7$(2),t.Y8G("item",n)("showAiredTime",!0)}}function B(e,a){if(1&e&&(t.qex(0),t.DNE(1,U,3,2,"ng-container",28),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",n.playlist)}}function q(e,a){if(1&e&&(t.qex(0),t.DNE(1,B,2,1,"ng-container",20),t.bVm()),2&e){const n=t.XpG(),i=t.sdS(41);t.R7$(),t.Y8G("ngIf",n.playlist&&n.playlist.length>0)("ngIfElse",i)}}function H(e,a){if(1&e){const n=t.RV6();t.j41(0,"div",30)(1,"button",31),t.bIt("click",function(){t.eBV(n);const s=t.XpG();return t.Njj(s.loadMore())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.Y8G("ngClass",t.eq3(4,X,n.loading)),t.R7$(),t.SpI(" ",t.bMT(3,2,"SEE_MORE")," ")}}function z(e,a){1&e&&(t.qex(0),t.j41(1,"li"),t.nrm(2,"cmi-skeleton-card",32),t.k0s(),t.bVm())}function W(e,a){if(1&e&&t.DNE(0,z,3,0,"ng-container",28),2&e){const n=t.XpG();t.Y8G("ngForOf",n.generateArray(20))}}function K(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"amDateFormat"),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.SpI(" ",t.i5U(2,1,n.selectedDate,"dddd D MMMM YYYY")," ")}}function Q(e,a){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"amDateFormat"),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.SpI(" ",t.i5U(2,1,n.selectedDate,"dddd, MMMM D YYYY")," ")}}function J(e,a){if(1&e&&(t.j41(0,"div",33),t.EFF(1),t.nI1(2,"translate"),t.DNE(3,K,3,4,"ng-container",34)(4,Q,3,4,"ng-container",34),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,3,"NO_CONTENT_AVAILABLE_FOR")," "),t.R7$(2),t.Y8G("ngIf","fr"==(null==n.stationService?null:n.stationService.station.language)),t.R7$(),t.Y8G("ngIf","en"==(null==n.stationService?null:n.stationService.station.language))}}let F=(()=>{class e{constructor(n,i,s,o,l,m,g,f,v,M){this.api=n,this.router=i,this.adsService=s,this.stationService=o,this.translateService=l,this.responsiveService=m,this.playerService=g,this.platformId=f,this.linkService=v,this.metaService=M,this.playlist=[],this.selectedDate=new Date,this.ready=!1,this.loading=!1,this.disableMore=!1,this.limit=20,this.page=0,this.breadcrumbParents=[]}ngOnInit(){this.stationService.waitUntilReady(()=>{this.getRecentlyPlaying();const n=r();this.maxDate={year:n.year(),month:n.month()+1,day:n.date()};const i=n.subtract(1,"month");this.minDate={year:i.year(),month:i.month()+1,day:i.date()},this.setupAdConfig(),this.setupMetaData()}),this.breadcrumbParents=[{name:"MUSIC.MUSIC",url:["/","fr"===this.translateService.currentLang?"musique":"music"],translable:!0}]}ngOnDestroy(){this.linkService.removeCanonicalTag()}onDateSelect(n,i){this.page=0,this.ready=!1,"+"===n?this.selectedDate=r(this.selectedDate).add(1,"days").toDate():"-"===n?this.selectedDate=r(this.selectedDate).subtract(1,"days").toDate():i&&(this.selectedDate=r(i.year+"-"+i.month+"-"+i.day,"YYYY-MM-DD").toDate());const s=r(this.selectedDate).format("YYYY-MM-DD"),o=r(s+"00:00","YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),l=r(s+"23:59","YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm:ss");this.disableMore=!1,this.playlist=[],this.getRecentlyPlaying(o,l)}loadMore(){this.page++;const n=r(r(this.selectedDate).format("YYYY-MM-DD")+"00:00","YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm:ss"),i=r(r(this.selectedDate).format("YYYY-MM-DD")+"23:59","YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm:ss");this.loading=!0,this.getRecentlyPlaying(n,i)}formatDate(n){return"fr"===this.translateService.currentLang?r(n).format("HH:mm").replace(":","h"):r(n).format("H:mm A")}generateArray(n){return new Array(n)}getRecentlyPlaying(n,i){this.api.get("/nowplaying/recent/"+this.stationService.station.id,{dateFrom:n||void 0,dateTo:i||void 0,limit:this.limit,offset:this.page*this.limit}).subscribe(s=>{this.playlist=[...this.playlist,...s.nowplaying],0===s.nowplaying.length&&(this.disableMore=!0),(0,d.UE)(this.platformId)&&setTimeout(()=>{this.responsiveService.nextDomSubject()}),this.ready=!0,this.loading=!1})}setupAdConfig(){this.adsService.destroyAdsSlots(),this.adsService.createAdsSet("recently-played","/ros",[["hResponsive","L3-1"],["vBig","L3-4mdash"],["footer","L3-5"]]),this.adsService.refreshAds()}setupMetaData(){this.linkService.addCanonicalTag("fr"==this.translateService.currentLang?"/musique/joue-recemment":"/music/recently-played",this.stationService.station.domain)}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(_.jI),t.rXU(u.Ix),t.rXU(b.gp),t.rXU(E.f),t.rXU(p.c$),t.rXU(_.cK),t.rXU($.xt),t.rXU(t.Agw),t.rXU(_._w),t.rXU(_.RH))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cmi-recently-played"]],decls:42,vars:41,consts:[["picker","ngbDatepicker"],["loadingPage",""],["noContent",""],["type","recently-played-0","minSize","fluid",3,"adClass"],[1,"container"],[1,"c-page-header-section"],[3,"parents","currentPageTitle"],[1,"l-wrap"],[1,"l-wrap__left"],[1,"c-date-selector"],[1,"c-date-selector__date"],[1,"o-btn-list--icons"],[1,"o-btn","o-btn--ghost","o-btn--icon-only",3,"click"],["icon","angle-left","size","lg"],[1,"o-btn","o-btn--ghost","o-btn--icon-only",3,"click","disabled"],["icon","angle-right","size","lg"],["type","button",1,"o-btn","o-btn--ghost","o-btn--icon-only",3,"click"],["icon","calendar","size","lg"],["type","text","ngbDatepicker","",2,"visibility","hidden",3,"dateSelect","readonly","minDate","maxDate"],[1,"o-list","o-list--vertical-small"],[4,"ngIf","ngIfElse"],["class","c-block c-block--cta",4,"ngIf"],[1,"l-wrap__right"],[1,"sticky-top"],["type","recently-played-1","minSize","300x250",3,"adClass"],["cardType","sidebar","eventContext","sidebar-content-recommendation",3,"isMostRead"],["type","station",3,"isSidebar"],["type","recently-played-2","minSize","320x50",3,"adClass"],[4,"ngFor","ngForOf"],[3,"item","showAiredTime"],[1,"c-block","c-block--cta"],[1,"o-btn","o-btn--primary",3,"click","ngClass"],["type","song-card-horizontal"],[1,"c-block","c-block--unavailable"],[4,"ngIf"]],template:function(i,s){if(1&i){const o=t.RV6();t.nrm(0,"cmi-ad",3),t.j41(1,"div",4)(2,"div",5),t.nrm(3,"cmi-breadcrumb",6),t.nI1(4,"translate"),t.j41(5,"h1"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",7)(9,"div",8)(10,"div",9)(11,"div",10),t.EFF(12),t.nI1(13,"amDateFormat"),t.k0s(),t.j41(14,"div",11)(15,"button",12),t.nI1(16,"translate"),t.nI1(17,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(s.onDateSelect("-"))}),t.nrm(18,"fa-icon",13),t.k0s(),t.j41(19,"button",14),t.nI1(20,"translate"),t.nI1(21,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(s.onDateSelect("+"))}),t.nrm(22,"fa-icon",15),t.k0s(),t.j41(23,"button",16),t.nI1(24,"translate"),t.nI1(25,"translate"),t.bIt("click",function(){t.eBV(o);const m=t.sdS(28);
1return t.Njj(m.toggle())}),t.nrm(26,"fa-icon",17),t.k0s(),t.j41(27,"input",18,0),t.bIt("dateSelect",function(m){return t.eBV(o),t.Njj(s.onDateSelect("none",m))}),t.k0s()()(),t.j41(29,"ul",19),t.DNE(30,q,2,2,"ng-container",20),t.k0s(),t.DNE(31,H,4,6,"div",21),t.k0s(),t.j41(32,"aside",22)(33,"div",23),t.nrm(34,"cmi-ad",24)(35,"cmi-content-recommendation",25)(36,"cmi-opt-in-widget",26),t.k0s()()(),t.nrm(37,"cmi-ad",27),t.k0s(),t.DNE(38,W,1,1,"ng-template",null,1,t.C5r)(40,J,5,5,"ng-template",null,2,t.C5r)}if(2&i){const o=t.sdS(39);t.Y8G("adClass","ad--banner ad--horizontal"),t.R7$(3),t.Y8G("parents",s.breadcrumbParents)("currentPageTitle",t.bMT(4,22,"RECENTLY_PLAYED")),t.R7$(3),t.JRh(t.bMT(7,24,"RECENTLY_PLAYED")),t.R7$(6),t.SpI(" ",t.i5U(13,26,s.selectedDate,"LL")," "),t.R7$(3),t.BMQ("title",t.bMT(16,29,"PAGINATION.PAST_DAY"))("aria-label",t.bMT(17,31,"PAGINATION.PAST_DAY")),t.R7$(4),t.Y8G("disabled",s.selectedDate>=s.maxDate),t.BMQ("title",t.bMT(20,33,"PAGINATION.NEXT_DAY"))("aria-label",t.bMT(21,35,"PAGINATION.NEXT_DAY")),t.R7$(4),t.BMQ("title",t.bMT(24,37,"SELECT_DATE"))("aria-label",t.bMT(25,39,"SELECT_DATE")),t.R7$(4),t.Y8G("readonly",!0)("minDate",s.minDate)("maxDate",s.maxDate),t.R7$(3),t.Y8G("ngIf",s.ready)("ngIfElse",o),t.R7$(),t.Y8G("ngIf",!s.disableMore),t.R7$(3),t.Y8G("adClass","ad--banner"),t.R7$(),t.Y8G("isMostRead",!0),t.R7$(),t.Y8G("isSidebar",!0),t.R7$(),t.Y8G("adClass","ad--banner ad--horizontal")}},dependencies:[d.YU,d.Sq,d.bT,I.l,T.F,L.$,h.cw,R.aY,D.D,N.K,x.g,p.D9,C.az],encapsulation:2})}}return e})();var Z=c(7073);const tt=(e,a)=>({type:"header_16x9_banner",imageInfo:e,fallback:a}),nt=(e,a)=>[e,a];function et(e,a){1&e&&(t.j41(0,"h1"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"MUSIC.NEW_MUSIC")))}function it(e,a){if(1&e&&(t.j41(0,"div",17),t.nrm(1,"cmi-breadcrumb",18),t.nI1(2,"translate"),t.DNE(3,et,3,3,"h1",11),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("parents",n.breadcrumbParents)("currentPageTitle",n.isNewMusicList?t.bMT(2,3,"MUSIC.NEW_MUSIC"):n.list.publicName),t.R7$(2),t.Y8G("ngIf",n.isNewMusicList)}}function st(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",27)(2,"a",28),t.EFF(3),t.nI1(4,"translate"),t.nrm(5,"fa-icon",29),t.k0s()(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(2),t.Y8G("routerLink",t.l_i(4,nt,"fr"==n.translateService.currentLang?"/emissions":"/shows",n.list.shows[0].slug)),t.R7$(),t.SpI(" ",t.bMT(4,2,"PLAYER.GO_TO_SHOW_PAGE")," ")}}function at(e,a){if(1&e&&(t.qex(0),t.j41(1,"header",20)(2,"div",21)(3,"figure",22),t.nrm(4,"img",23),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",24)(7,"h1",25),t.EFF(8),t.k0s(),t.nrm(9,"div",26),t.DNE(10,st,6,7,"ng-container",11),t.k0s()(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(4),t.Y8G("cmiLazyloadPicture",t.l_i(7,tt,n.list.image,n.list.image.ori)),t.BMQ("alt",t.bMT(5,5,n.list.publicName||"MISSING_IMAGE_DESCRIPTION")),t.R7$(4),t.JRh(n.list.publicName),t.R7$(),t.Y8G("innerHTML",n.list.description,t.npT),t.R7$(),t.Y8G("ngIf",n.list.shows.length>0)}}function ot(e,a){if(1&e&&(t.qex(0),t.DNE(1,at,11,10,"ng-container",19),t.bVm()),2&e){const n=t.XpG(),i=t.sdS(17);t.R7$(),t.Y8G("ngIf",n.list)("ngIfElse",i)}}function ct(e,a){1&e&&(t.qex(0),t.j41(1,"h4"),t.EFF(2,"\xc9dition du"),t.k0s(),t.bVm())}function rt(e,a){1&e&&(t.qex(0),t.j41(1,"h4"),t.EFF(2,"\xc9dition de"),t.k0s(),t.bVm())}function lt(e,a){if(1&e&&(t.qex(0),t.DNE(1,ct,3,0,"ng-container",11)(2,rt,3,0,"ng-container",11),t.bVm()),2&e){const n=t.XpG(5);t.R7$(),t.Y8G("ngIf","yearly"!==n.list.recurrence),t.R7$(),t.Y8G("ngIf","yearly"===n.list.recurrence)}}function _t(e,a){1&e&&(t.qex(0),t.j41(1,"h4"),t.EFF(2,"Edition"),t.k0s(),t.bVm())}function dt(e,a){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"button",33),t.bIt("click",function(){t.eBV(n);const s=t.sdS(6);return t.Njj(s.toggle())}),t.nrm(2,"fa-icon",34),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"input",35,5),t.bIt("dateSelect",function(s){t.eBV(n);const o=t.XpG(6);return t.Njj(o.goToEditionDate(s))}),t.k0s(),t.j41(7,"button",36),t.bIt("click",function(){t.eBV(n);const s=t.XpG(6);return t.Njj(s.goToEdition(s.orderedEditions[s.currentPosition+1].id))}),t.nrm(8,"fa-icon",37),t.k0s(),t.j41(9,"button",36),t.bIt("click",function(){t.eBV(n);const s=t.XpG(6);return t.Njj(s.goToEdition(s.orderedEditions[s.currentPosition-1].id))}),t.nrm(10,"fa-icon",38),t.k0s(),t.bVm()}if(2&e){const n=t.XpG(6);t.R7$(3),t.SpI(" ",t.bMT(4,7,"SELECT_DATE")," "),t.R7$(2),t.Y8G("readonly",!0)("minDate",n.minDate)("maxDate",n.maxDate)("markDisabled",n.isDisabled),t.R7$(2),t.Y8G("disabled",n.orderedEditions&&n.currentPosition>=n.orderedEditions.length-1),t.R7$(2),t.Y8G("disabled",0==n.currentPosition)}}function mt(e,a){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"button",43),t.bIt("click",function(){const s=t.eBV(n).$implicit,o=t.XpG(7);return t.Njj(o.goToEditionYear(s.date))}),t.EFF(2),t.nI1(3,"slice"),t.k0s(),t.bVm()}if(2&e){const n=a.$implicit;t.R7$(2),t.SpI(" ",t.brH(3,1,n.date,0,4)," ")}}function ut(e,a){if(1&e&&(t.j41(0,"div",39)(1,"button",40),t.nrm(2,"fa-icon",34),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",41),t.DNE(6,mt,4,5,"ng-container",42),t.k0s()()),2&e){const n=t.XpG(6);t.R7$(3),t.SpI(" ",t.bMT(4,2,"SELECT_YEAR")," "),t.R7$(3),t.Y8G("ngForOf",n.orderedEditions)}}function gt(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",32),t.DNE(2,dt,11,9,"ng-container",19)(3,ut,7,4,"ng-template",null,4,t.C5r),t.k0s(),t.bVm()),2&e){const n=t.sdS(4),i=t.XpG(5);t.R7$(2),t.Y8G("ngIf","yearly"!==i.list.recurrence)("ngIfElse",n)}}function pt(e,a){if(1&e&&(t.qex(0),t.j41(1,"header",30)(2,"div",31),t.DNE(3,lt,3,2,"ng-container",11),t.j41(4,"h2"),t.EFF(5),t.nI1(6,"amDateFormat"),t.nI1(7,"amDateFormat"),t.k0s(),t.DNE(8,_t,3,0,"ng-container",11),t.k0s(),t.DNE(9,gt,5,2,"ng-container",11),t.k0s(),t.bVm()),2&e){const n=t.XpG(4);t.R7$(3),t.Y8G("ngIf","fr"===n.translateService.currentLang),t.R7$(2),t.SpI(" ","yearly"===n.list.recurrence?t.i5U(6,4,n.list.musicListEdition.date,"YYYY"):t.i5U(7,7,n.list.musicListEdition.date,"dddd D MMMM YYYY")," "),t.R7$(3),t.Y8G("ngIf","en"===n.translateService.currentLang),t.R7$(),t.Y8G("ngIf",n.orderedEditions.length>1)}}function ht(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cmi-song-card",44),t.bVm()),2&e){const n=a.$implicit,i=a.index,s=t.XpG(5);t.R7$(),t.Y8G("item",n)("position","top"==s.list.type?i+1:null)}}function ft(e,a){if(1&e&&(t.qex(0),t.DNE(1,ht,2,2,"ng-container",42),t.bVm()),2&e){const n=t.XpG(4);t.R7$(),t.Y8G("ngForOf",null==n.list.musicListEdition?null:n.list.musicListEdition.musicListItems)}}function St(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",47),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&e){const n=t.XpG(5);t.R7$(2),t.SpI(" ",t.bMT(3,1,n.stationService.isStation("CKOI")?"VOTES_CLOSED_CKOI":"VOTES_CLOSED")," ")}}function vt(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",49),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&e){const n=t.XpG(7);t.R7$(2),t.SpI(" ",t.bMT(3,1,n.stationService.isStation("CKOI")?"THANK_YOU_FOR_YOUR_VOTE_CKOI":"THANK_YOU_FOR_YOUR_VOTE")," ")}}function Mt(e,a){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"cmi-song-card",48),t.bIt("vote",function(s){t.eBV(n);const o=t.XpG(6);return t.Njj(o.vote(s))}),t.k0s(),t.DNE(2,vt,4,3,"ng-container",11),t.bVm()}if(2&e){const n=a.$implicit,i=t.XpG(6);t.R7$(),t.Y8G("item",n)("hasVote",!0)("voteStatus",i.voteStatus),t.R7$(),t.Y8G("ngIf",i.hasVoted&&i.musicListVoteService.voteItemId===n.id)}}function bt(e,a){if(1&e&&(t.qex(0),t.DNE(1,Mt,3,4,"ng-container",42),t.bVm()),2&e){const n=t.XpG(5);t.R7$(),t.Y8G("ngForOf",n.list.voteItems)}}function Et(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",45)(2,"div",46)(3,"h2"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.DNE(6,St,4,3,"ng-container",11)(7,bt,2,1,"ng-container",11),t.k0s(),t.bVm()),2&e){const n=t.XpG(4);t.R7$(4),t.SpI(" ",t.bMT(5,3,n.stationService.isStation("CKOI")?"CTA_YOUR_CHOICE_SONG_CKOI":"CTA_YOUR_CHOICE_SONG")," "),t.R7$(2),t.Y8G("ngIf","alreadyVoted"===n.voteStatus&&!n.hasVoted),t.R7$(),t.Y8G("ngIf",!n.isVoteLoading)}}function It(e,a){if(1&e&&(t.qex(0),t.DNE(1,pt,10,10,"ng-container",11)(2,ft,2,1,"ng-container",19)(3,Et,8,5,"ng-container",11),t.bVm()),2&e){const n=t.XpG(3),i=t.sdS(13);t.R7$(),t.Y8G("ngIf",(null==n.list?null:n.list.musicListEdition)&&n.list.isRecurrence),t.R7$(),t.Y8G("ngIf",n.list.musicListEdition&&n.list.musicListEdition.musicListItems.length>0)("ngIfElse",i),t.R7$(),t.Y8G("ngIf",n.list.isVote&&n.list.voteItems.length>0)}}function Tt(e,a){if(1&e&&(t.qex(0),t.DNE(1,It,4,4,"ng-container",19),t.bVm()),2&e){const n=t.XpG(2),i=t.sdS(15);t.R7$(),t.Y8G("ngIf",!n.error)("ngIfElse",i)}}function Lt(e,a){if(1&e&&(t.qex(0),t.DNE(1,Tt,2,2,"ng-container",19),t.bVm()),2&e){const n=t.XpG(),i=t.sdS(19);t.R7$(),t.Y8G("ngIf",!n.isLoading)("ngIfElse",i)}}function Rt(e,a){1&e&&(t.j41(0,"div",50),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"NO_COUNTDOWN_RESULTS")," "))}function Ct(e,a){1&e&&(t.j41(0,"div",50),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"CONTEST_ERROR_GENERIC_ERROR")," "))}function yt(e,a){1&e&&t.nrm(0,"cmi-skeleton-card",51)}function Yt(e,a){1&e&&(t.qex(0),t.j41(1,"li",53),t.nrm(2,"cmi-skeleton-card",54),t.k0s(),t.bVm())}function Dt(e,a){if(1&e&&(t.j41(0,"ul",52),t.DNE(1,Yt,3,0,"ng-container",42),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.listCount)}}let w=(()=>{class e{constructor(n,i,s,o,l,m,g,f,v,M,vn,Mn,bn){this.stationService=n,this.translateService=i,this.responsiveService=s,this.playerService=o,this.musicListVoteService=l,this.api=m,this.route=g,this.router=f,this.adsService=v,this.metaService=M,this.stringService=vn,this.platformId=Mn,this.linkService=bn,this.topId=null,this.slug=null,this.isLoading=!1,this.isVoteLoading=!1,this.hasVoted=!1,this.error=!1,this.currentPosition=0,this.newMusicListIds={1:32,2:40},this.breadcrumbParents=[],this.isNewMusicList=!1,this.listCount=Array(10).fill(0)}ngOnInit(){this.sub=this.route.params.subscribe(n=>{this.topId=null,this.topId=n.topId||null,this.stationService.waitUntilReady(()=>{this.setupAdConfig(),this.isNewMusicList=Number(this.topId)===this.newMusicListIds[this.stationService.station.id],this.breadcrumbParents=this.isNewMusicList?[{name:"MUSIC.MUSIC",url:["/","fr"===this.translateService.currentLang?"musique":"music"],translable:!0}]:[{name:"MUSIC.MUSIC",url:["/","fr"===this.translateService.currentLang?"musique":"music"],translable:!0},{name:"TOPS",url:["/","fr"===this.translateService.currentLang?"musique":"music","fr"===this.translateService.currentLang?"decomptes":"tops"],translable:!0}]}),this.editionId=n.edition,this.slug=n.slug,this.getMusicListContent(this.topId)})}ngOnDestroy(){this.sub&&this.sub.unsubscribe(),this.metaService.removeAllTags(),this.linkService.removeCanonicalTag()}getEditionDate(n){return"yearly"===this.list.recurrence?r(n).format("YYYY"):"weekly"===this.list.recurrence||"daily"===this.list.recurrence?r(n).format("ll"):void 0}updateMusicListContent(){this.isLoading=!0,this.getMusicListContent(this.topId)}goToEdition(n){this.editionId=n,this.updateMusicListContent()}goToEditionDate(n){const i=r(n.year+"-"+n.month+"-"+n.day,"YYYY-MM-DD").toDate(),s=this.orderedEditions.find(o=>r(o.date).isSame(i,"day"));this.editionId=s.id,this.updateMusicListContent()}goToEditionYear(n){const i=this.orderedEditions.find(s=>r(s.date).isSame(n,"year"));this.editionId=i.id,this.updateMusicListContent()}vote(n){"alreadyVoted"!==this.voteStatus&&(this.isVoteLoading=!0,setTimeout(()=>{this.isVoteLoading=!1,this.musicListVoteService.vote(this.list.id,this.list.editionList[0].id,n.id).then(()=>{this.voteStatus="alreadyVoted",this.hasVoted=!0},i=>console.error(i))},1e3))}getMusicListContent(n){this.api.get("/music/list/"+n,{edition:this.editionId,with:"stations,shows,vote,edition,editionList"},null,!0).subscribe(i=>{if(this.list=i.musicList,this.list.musicListEdition){this.selectedDate=this.list.musicListEdition.date,this.orderedEditions=this.editionsArr(i.musicList.editionList);const s=r(this.orderedEditions[0].date),o=r(this.orderedEditions[this.orderedEditions.length-1].date);this.maxDate={year:s.year(),month:s.month()+1,day:s.date()}
1,this.minDate={year:o.year(),month:o.month()+1,day:o.date()},this.currentPosition=this.orderedEditions.findIndex(l=>l.id===i.musicList.musicListEdition.id),this.voteStatus=this.musicListVoteService.canVote(this.list.editionList[0].id),this.isDisabled=l=>!this.orderedEditions.find(g=>r(g.date).isSame(r(l.year+"-"+l.month+"-"+l.day,"YYYY-MM-DD"),"day"))}(0,d.UE)(this.platformId)&&setTimeout(()=>{this.responsiveService.nextDomSubject()}),this.isLoading=!1,this.setupMetaData()},i=>{this.error=!0,this.isLoading=!1})}editionsArr(n){return n.sort((i,s)=>new Date(s.date)-new Date(i.date))}setupMetaData(){this.metaService.setTitle(this.list.publicName),this.linkService.addCanonicalTag("fr"==this.translateService.currentLang?"/musique/decomptes/"+this.topId+"/"+this.slug:"/music/tops/"+this.topId+"/"+this.slug,this.stationService.station.domain),this.list.description&&this.metaService.setTag("description",this.stringService.cleanString(this.list.description)),this.list.image&&(this.metaService.setTag("og:image",this.list.image.ori),this.metaService.setTag("og:image:secure_url",this.list.image.ori),this.metaService.setTag("og:image:width","1080"),this.metaService.setTag("og:image:height","608"),this.metaService.setTag("twitter:card","summary_large_image"),this.metaService.setTag("twitter:image",this.list.image.ori))}setupAdConfig(){this.adsService.destroyAdsSlots(),this.adsService.createAdsSet("musiclist","/ros",[["hResponsive","L3-1"],["vBig","L3-4mdash"],["footer","L3-5"]]),this.adsService.refreshAds()}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(E.f),t.rXU(p.c$),t.rXU(_.cK),t.rXU($.xt),t.rXU(_.TA),t.rXU(_.jI),t.rXU(u.nX),t.rXU(u.Ix),t.rXU(b.gp),t.rXU(_.RH),t.rXU(_.hN),t.rXU(t.Agw),t.rXU(_._w))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cmi-music-list"]],decls:20,vars:7,consts:[["noResults",""],["errorOccured",""],["loadingHeader",""],["listLoading",""],["yearSelect",""],["picker","ngbDatepicker"],["type","musiclist-0","minSize","fluid",3,"adClass"],[1,"container"],["class","c-page-header-section",4,"ngIf"],[1,"l-wrap"],[1,"l-wrap__left"],[4,"ngIf"],[1,"l-wrap__right"],[1,"sticky-top"],["type","musiclist-1","minSize","300x250",3,"adClass"],["type","station",3,"isSidebar"],["type","musiclist-2","minSize","320x50",3,"adClass"],[1,"c-page-header-section"],[3,"parents","currentPageTitle"],[4,"ngIf","ngIfElse"],[1,"c-show-header"],[1,"c-show-header__visual"],[1,"c-show-header__image"],["itemprop","image",3,"cmiLazyloadPicture"],[1,"c-show-header__meta"],[1,"c-show-header__title"],[1,"c-show-header__description",3,"innerHTML"],[1,"o-btn-list"],[1,"o-btn","o-btn--secondary","o-btn--inverted","o-btn--icon-left",3,"routerLink"],["icon","angle-right"],[1,"music-list-header"],[1,"music-list-date"],[1,"music-list-nav","o-btn-list"],["type","button",1,"o-btn","o-btn--secondary","o-btn--icon-left",3,"click"],["icon","calendar"],["type","text","ngbDatepicker","",1,"ngbdatepicker",2,"visibility","hidden",3,"dateSelect","readonly","minDate","maxDate","markDisabled"],["type","button",1,"o-btn","o-btn--secondary","o-btn--icon-only","o-btn--icon-circle",3,"click","disabled"],["icon","angle-left","size","lg"],["icon","angle-right","size","lg"],["ngbDropdown","",1,"music-list-nav__dropdown"],["type","button","aria-haspopup","true","id","yearNav","ngbDropdownToggle","",1,"o-btn","o-btn--secondary","o-btn--icon-left"],["ngbDropdownMenu","","aria-labelledby","yearNav"],[4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"],[3,"item","position"],[1,"l-music-list-vote"],[1,"c-section-header"],[1,"c-alert","c-alert--neutral"],[3,"vote","item","hasVote","voteStatus"],[1,"c-alert","c-alert--success"],[1,"c-block","c-block--nocontent"],["type","show-header"],[1,"o-list","o-list--vertical"],[1,"o-list__item"],["type","content-card-horizontal"]],template:function(i,s){1&i&&(t.nrm(0,"cmi-ad",6),t.j41(1,"div",7),t.DNE(2,it,4,5,"div",8),t.j41(3,"div",9)(4,"div",10),t.DNE(5,ot,2,2,"ng-container",11)(6,Lt,2,2,"ng-container",11),t.k0s(),t.j41(7,"aside",12)(8,"div",13),t.nrm(9,"cmi-ad",14)(10,"cmi-opt-in-widget",15),t.k0s()()(),t.nrm(11,"cmi-ad",16),t.k0s(),t.DNE(12,Rt,3,3,"ng-template",null,0,t.C5r)(14,Ct,3,3,"ng-template",null,1,t.C5r)(16,yt,1,0,"ng-template",null,2,t.C5r)(18,Dt,2,1,"ng-template",null,3,t.C5r)),2&i&&(t.Y8G("adClass","ad--banner ad--horizontal"),t.R7$(2),t.Y8G("ngIf",s.isNewMusicList||s.list),t.R7$(3),t.Y8G("ngIf",!s.isNewMusicList),t.R7$(),t.Y8G("ngIf",s.list),t.R7$(3),t.Y8G("adClass","ad--banner"),t.R7$(),t.Y8G("isSidebar",!0),t.R7$(),t.Y8G("adClass","ad--banner ad--horizontal"))},dependencies:[d.Sq,d.bT,u.Wk,I.l,T.F,L.$,h.cw,h.tg,h.do,h.U0,h._H,h.Eu,Z.u,R.aY,D.D,x.g,d.P9,p.D9,C.az],encapsulation:2})}}return e})();var Gt=c(8056),kt=c(5263),$t=c(6328);const Nt=["subcatScrollContainer"],xt=()=>["far","angle-left"],y=e=>[e],A=(e,a)=>["/",e,a],Ft=()=>["far","angle-right"],Y=(e,a,n)=>[e,a,n];function wt(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",12),t.EFF(2),t.k0s(),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("routerLink",t.sMw(3,Y,"fr"==(null==n.translateService?null:n.translateService.currentLang)?"decomptes":"tops",n.newMusicListIds[null==n.stationService||null==n.stationService.station?null:n.stationService.station.id],n.stringService.slugify(null==n.newMusicList?null:n.newMusicList.publicName))),t.BMQ("title",null==n.newMusicList?null:n.newMusicList.publicName),t.R7$(),t.SpI(" ",null==n.newMusicList?null:n.newMusicList.publicName," ")}}function At(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",12),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("routerLink",t.eq3(7,y,"fr"==(null==n.translateService?null:n.translateService.currentLang)?"decomptes":"tops")),t.BMQ("title",t.bMT(2,3,"TOPS")),t.R7$(2),t.SpI(" ",t.bMT(4,5,"TOPS")," ")}}function jt(e,a){if(1&e&&(t.qex(0,31),t.nrm(1,"cmi-song-card",32),t.bVm()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("item",n)("showAiredTime",!0)}}function Ot(e,a){if(1&e&&(t.qex(0),t.DNE(1,jt,2,2,"ng-container",30),t.nI1(2,"slice"),t.bVm()),2&e){const n=t.XpG().ngIf;
1t.R7$(),t.Y8G("ngForOf",t.brH(2,1,n,0,6))}}function Vt(e,a){if(1&e&&(t.qex(0),t.DNE(1,Ot,3,5,"ng-container",29),t.bVm()),2&e){const n=a.ngIf;t.XpG();const i=t.sdS(65);t.R7$(),t.Y8G("ngIf",n.length>0)("ngIfElse",i)}}function Pt(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",20),t.EFF(2),t.nI1(3,"translate"),t.nrm(4,"fa-icon",21),t.k0s(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("routerLink",t.sMw(5,Y,"fr"==(null==n.translateService?null:n.translateService.currentLang)?"decomptes":"tops",n.newMusicListIds[null==n.stationService||null==n.stationService.station?null:n.stationService.station.id],n.stringService.slugify(null==n.newMusicList?null:n.newMusicList.publicName))),t.BMQ("title",null==n.newMusicList?null:n.newMusicList.publicName),t.R7$(),t.SpI(" ",t.bMT(3,3,"SEE_MORE")," ")}}function Xt(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cmi-song-card",32),t.bVm()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("item",n)("showAiredTime",!1)}}function Ut(e,a){if(1&e&&(t.qex(0),t.DNE(1,Xt,2,2,"ng-container",33),t.nI1(2,"slice"),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngForOf",t.brH(2,1,n.newMusicList.musicListEdition.musicListItems,0,6))}}function Bt(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",17)(2,"div",18)(3,"h2",19),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,Pt,5,9,"ng-container",13),t.k0s(),t.j41(7,"div",22),t.DNE(8,Ut,3,5,"ng-container",29),t.k0s()(),t.bVm()),2&e){const n=t.XpG(),i=t.sdS(65);t.R7$(4),t.JRh(t.bMT(5,4,"MUSIC.NEW_MUSIC")),t.R7$(2),t.Y8G("ngIf",(null==n.newMusicList||null==n.newMusicList.musicListEdition||null==n.newMusicList.musicListEdition.musicListItems?null:n.newMusicList.musicListEdition.musicListItems.length)>0),t.R7$(2),t.Y8G("ngIf",(null==n.newMusicList||null==n.newMusicList.musicListEdition||null==n.newMusicList.musicListEdition.musicListItems?null:n.newMusicList.musicListEdition.musicListItems.length)>0)("ngIfElse",i)}}function qt(e,a){if(1&e&&(t.qex(0),t.j41(1,"a",20),t.nI1(2,"translate"),t.EFF(3),t.nI1(4,"translate"),t.nrm(5,"fa-icon",21),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("routerLink",t.eq3(7,y,"fr"==(null==n.translateService?null:n.translateService.currentLang)?"decomptes":"tops")),t.BMQ("title",t.bMT(2,3,"TOPS")),t.R7$(2),t.SpI(" ",t.bMT(4,5,"SEE_MORE")," ")}}function Ht(e,a){1&e&&(t.j41(0,"span",42),t.EFF(1,"Vote!"),t.k0s())}function zt(e,a){1&e&&(t.qex(0),t.EFF(1," \xc9dition du "),t.bVm())}function Wt(e,a){1&e&&(t.qex(0),t.EFF(1," edition "),t.bVm())}function Kt(e,a){if(1&e&&(t.qex(0),t.j41(1,"span",43),t.DNE(2,zt,2,0,"ng-container",13),t.EFF(3),t.nI1(4,"amDateFormat"),t.DNE(5,Wt,2,0,"ng-container",13),t.k0s(),t.bVm()),2&e){const n=t.XpG(2).$implicit,i=t.XpG(3);t.R7$(2),t.Y8G("ngIf","fr"===i.translateService.currentLang),t.R7$(),t.SpI(" ",t.i5U(4,3,n.musicListEdition.date,"fr"===i.translateService.currentLang?"Do MMM YY":"MMM Do YY")," "),t.R7$(2),t.Y8G("ngIf","en"===i.translateService.currentLang)}}function Qt(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cmi-song-card",44),t.bVm()),2&e){const n=a.$implicit,i=a.index;t.R7$(),t.Y8G("item",n)("position",i+1)}}function Jt(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",35)(2,"div",36)(3,"h3",37)(4,"a",38),t.EFF(5),t.k0s(),t.DNE(6,Ht,2,0,"span",39),t.k0s(),t.DNE(7,Kt,6,6,"ng-container",13),t.k0s(),t.j41(8,"div",40),t.DNE(9,Qt,2,2,"ng-container",33),t.nI1(10,"slice"),t.k0s(),t.j41(11,"div",41)(12,"a",38),t.EFF(13),t.nI1(14,"translate"),t.nrm(15,"fa-icon",21),t.k0s()()(),t.bVm()),2&e){const n=t.XpG().$implicit,i=t.XpG(3);t.R7$(4),t.Y8G("routerLink",t.sMw(15,Y,"fr"==i.translateService.currentLang?"decomptes":"tops",n.id,i.stringService.slugify(n.publicName))),t.BMQ("title",n.publicName),t.R7$(),t.JRh(n.publicName),t.R7$(),t.Y8G("ngIf",n.isVote),t.R7$(),t.Y8G("ngIf",n.musicListEdition.date),t.R7$(2),t.Y8G("ngForOf",t.brH(10,9,n.musicListEdition.musicListItems,0,2)),t.R7$(3),t.Y8G("routerLink",t.sMw(19,Y,"fr"==i.translateService.currentLang?"decomptes":"tops",n.id,i.stringService.slugify(n.publicName))),t.BMQ("title",n.publicName),t.R7$(),t.SpI(" ",t.bMT(14,13,"SEE_RESULTS")," \xa0 ")}}function Zt(e,a){if(1&e&&(t.qex(0),t.DNE(1,Jt,16,23,"ng-container",13),t.bVm()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("ngIf",n.musicListEdition)}}function tn(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",18)(2,"h2",19),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,qt,6,9,"ng-container",13),t.k0s(),t.j41(6,"div",34),t.DNE(7,Zt,2,1,"ng-container",33),t.nI1(8,"slice"),t.k0s(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(3),t.SpI(" ",t.bMT(4,3,n.tops.length>1?"TOPS":"TOP")," "),t.R7$(2),t.Y8G("ngIf",n.tops.length>2),t.R7$(2),t.Y8G("ngForOf",t.brH(8,5,n.tops,0,2))}}function nn(e,a){if(1&e&&(t.qex(0),t.DNE(1,tn,9,9,"ng-container",13),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.tops)}}function en(e,a){1&e&&(t.qex(0),t.nrm(1,"cmi-skeleton-card",45),t.bVm())}function sn(e,a){if(1&e&&t.DNE(0,en,2,0,"ng-container",33),2&e){const n=t.XpG();t.Y8G("ngForOf",n.gridSixCount)}}function an(e,a){1&e&&(t.qex(0),t.nrm(1,"cmi-skeleton-card",46),t.bVm())}function on(e,a){if(1&e&&t.DNE(0,an,2,0,"ng-container",33),2&e){const n=t.XpG();t.Y8G("ngForOf",n.gridFourCount)}}let cn=(()=>{class e{constructor(n,i,s,o,l,m,g,f,v,M){this.platformId=n,this.stationService=i,this.translateService=s,this.stringService=o,this.api=l,this.adsService=m,this.linkService=g,this.nowPlayingService=f,this.ngZone=v,this.cdr=M,this.hasNewMusic=!1,this.newMusicListIds={1:32,2:40},this.gridSixCount=Array(6).fill(0),this.gridFourCount=Array(4).fill(0),this.recentlyPlayed$=this.nowPlayingService.recentlyPlayed$,this.subcatCanScrollLeft=!1,this.subcatCanScrollRight=!1,this.subcatListenerBound=!1}onWindowResize(){this.onScrollUpdate()}ngOnInit(){this.stationService.waitUntilReady(()=>{this.setupAdConfig(),this.getMusicTops(),this.setupMetaData(),this.hasNewMusic=this.newMusicListIds.hasOwnProperty(this.stationService.station.id),this.hasNewMusic&&this.getNewMusic(),this.contentListParams=new Gt.L("/contents",{stationIds:this.stationService.station.id,type:"article,gallery",with:"users,category,audioItemsOnly",strictCategory:4,limit:4},!1,!0),setTimeout(()=>this.bindScrollListeners(),0)})}ngOnDestroy(){this.linkService.removeCanonicalTag()}scrollNav(n){const i=this.subcatScrollContainer?.nativeElement;if(!i)return;const s=.75*i.clientWidth;i.scrollBy({left:"left"===n?-s:s,behavior:"smooth"})}getNewMusic(){this.api.get("/music/list/"+this.newMusicListIds[this.stationService.station.id],{with:"stations,shows,edition,editionList"},null,!0).subscribe(n=>{this.newMusicList=n.musicList})}getMusicTops(){this.api.get("/list/musiclist/station/"+this.stationService.station.id,{},{},!0).subscribe(n=>{this.tops=n.items.filter(i=>i.id!==this.newMusicListIds[this.stationService.station.id])})}bindScrollListeners(){(0,d.UE)(this.platformId)&&(this.ngZone.runOutsideAngular(()=>{const n=this.subcatScrollContainer?.nativeElement;n&&!this.subcatListenerBound&&(n.addEventListener("scroll",()=>this.onScrollUpdate(),{passive:!0}),this.subcatListenerBound=!0)}),this.onScrollUpdate())}onScrollUpdate(){const n=this.subcatScrollContainer?.nativeElement;if(!n)return;const i=n.scrollLeft>1,s=n.scrollLeft<n.scrollWidth-n.clientWidth-1;this.ngZone.run(()=>{this.subcatCanScrollLeft=i,this.subcatCanScrollRight=s,this.cdr.detectChanges()})}setupAdConfig(){this.adsService.destroyAdsSlots(),this.adsService.createAdsSet("music","/ros",[["hResponsive","L3-1"],["vBig","L3-4mdash"],["footer","L3-5"]]),this.adsService.refreshAds()}setupMetaData(){this.linkService.addCanonicalTag("fr"===this.translateService.currentLang?"/musique":"/music",this.stationService.station.domain)}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(t.Agw),t.rXU(E.f),t.rXU(p.c$),t.rXU(_.hN),t.rXU(_.jI),t.rXU(b.gp),t.rXU(_._w),t.rXU(kt.O),t.rXU(t.SKi),t.rXU(t.gRc))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cmi-music"]],viewQuery:function(i,s){if(1&i&&t.GBs(Nt,5),2&i){let o;t.mGM(o=t.lsd())&&(s.subcatScrollContainer=o.first)}},hostBindings:function(i,s){1&i&&t.bIt("resize",function(){return s.onWindowResize()},!1,t.tSv)},decls:68,vars:75,consts:[["subcatScrollContainer",""],["songsSkeleton",""],["rowLoading",""],["type","music-0","minSize","fluid",3,"adClass"],[1,"container"],[1,"c-category-header"],[1,"c-category-header__row"],[1,"c-category-header__title"],[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"],[1,"c-category-header__link",3,"routerLink"],[4,"ngIf"],["type","button",1,"c-category-header__scroll-control","c-category-header__scroll-control--right",3,"click"],[1,"l-wrap"],[1,"l-wrap__left"],[1,"c-block--elevated"],[1,"c-section-header"],[1,"c-section-header__title"],[1,"c-section-header__cta",3,"routerLink"],["icon","angle-right","size","lg"],[1,"l-card-grid--left-six"],[1,"l-wrap__right"],[1,"sticky-top"],["type","music-1","minSize","300x250",3,"adClass"],["eventContext","music-home-4row",3,"paginateParams","itemsPerPage","isGrid"],["cardType","sidebar","eventContext","sidebar-content-recommendation",3,"isMostRead"],["type","music-2","minSize","320x50",3,"adClass"],[4,"ngIf","ngIfElse"],["class","song-item",4,"ngFor","ngForOf"],[1,"song-item"],["direction","vertical",3,"item","showAiredTime"],[4,"ngFor","ngForOf"],[1,"l-card-grid--left-two"],[1,"c-card--countdown-vertical"],[1,"c-card__header"],[1,"c-card__title"],[3,"routerLink"],["class","edition-vote",4,"ngIf"],[1,"c-card__song-grid"],[1,"c-card__cta"],[1,"edition-vote"],[1,"edition-date"],["direction","vertical",3,"item","position"],["type","podcast-card-slider"],["type","content-card-vertical"]],template:function(i,s){if(1&i){const o=t.RV6();t.nrm(0,"cmi-ad",3),t.j41(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"h1"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",8)(9,"button",9),t.nI1(10,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(s.scrollNav("left"))}),t.nrm(11,"fa-icon",10),t.k0s(),t.j41(12,"nav",11,0)(14,"a",12),t.nI1(15,"translate"),t.EFF(16),t.nI1(17,"translate"),t.k0s(),t.DNE(18,wt,3,7,"ng-container",13)(19,At,5,9,"ng-container",13),t.j41(20,"a",12),t.nI1(21,"translate"),t.EFF(22),t.nI1(23,"translate"),t.k0s()(),t.j41(24,"button",14),t.nI1(25,"translate"),t.bIt("click",function(){return t.eBV(o),t.Njj(s.scrollNav("right"))}),t.nrm(26,"fa-icon",10),t.k0s()()()(),t.j41(27,"div",15)(28,"div",16)(29,"div",17)(30,"div",18)(31,"h2",19),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.j41(34,"a",20),t.nI1(35,"translate"),t.EFF(36),t.nI1(37,"translate"),t.nrm(38,"fa-icon",21),t.k0s()(),t.j41(39,"div",22),t.DNE(40,Vt,2,2,"ng-container",13),t.nI1(41,"async"),t.k0s()(),t.DNE(42,Bt,9,6,"ng-container",13),t.k0s(),t.j41(43,"aside",23)(44,"div",24),t.nrm(45,"cmi-ad",25),t.k0s()()()(),t.j41(46,"div",4)(47,"div",15)(48,"div",16),t.DNE(49,nn,2,1,"ng-container",13),t.j41(50,"div",18)(51,"h2",19),t.EFF(52),t.nI1(53,"translate"),t.k0s(),t.j41(54,"a",20),t.nI1(55,"translate"),t.EFF(56),t.nI1(57,"translate"),t.nrm(58,"fa-icon",21),t.k0s()(),t.nrm(59,"cmi-content-list-container",26),t.k0s(),t.j41(60,"aside",23)(61,"div",24),t.nrm(62,"cmi-content-recommendation",27),t.k0s()()(),t.nrm(63,"cmi-ad",28),t.k0s(),t.DNE(64,sn,1,1,"ng-template",null,1,t.C5r)(66,on,1,1,"ng-template",null,2,t.C5r)}2&i&&(t.Y8G("adClass","ad--banner ad--horizontal"),t.R7$(6),t.JRh(t.bMT(7,35,"MUSIC.MUSIC")),t.R7$(3),t.AVh("is-visible",s.subcatCanScrollLeft),t.BMQ("aria-label",t.bMT(10,37,"ARIA.SCROLL_LEFT")),t.R7$(2),t.Y8G("icon",t.lJ4(63,xt)),t.R7$(3),t.Y8G("routerLink",t.eq3(64,y,"fr"==(null==s.translateService?null:s.translateService.currentLang)?"joue-recemment":"recently-played")),t.BMQ("title",t.bMT(15,39,"RECENTLY_PLAYED")),t.R7$(2),t.SpI(" ",t.bMT(17,41,"RECENTLY_PLAYED")," "),t.R7$(2),t.Y8G("ngIf",s.hasNewMusic&&s.newMusicList&&(null==s.newMusicList?null:s.newMusicList.musicListEdition.musicListItems.length)>0),t.R7$(),t.Y8G("ngIf",(s.stationService.isStation("CKOI")||s.stationService.isStation("THEBEAT"))&&(null==s.tops?null:s.tops.length)>0),t.R7$(),t.Y8G("routerLink",t.l_i(66,A,"fr"==(null==s.translateService?null:s.translateService.currentLang)?"arts-et-spectacles":"entertainment","fr"==(null==s.translateService?null:s.translateService.currentLang)?"musique":"music")),t.BMQ("title",t.bMT(21,43,"NEWS")),t.R7$(2),t.SpI(" ",t.bMT(23,45,"NEWS")," "),t.R7$(2),t.AVh("is-visible",s.subcatCanScrollRight),t.BMQ("aria-label",t.bMT(25,47,"ARIA.SCROLL_RIGHT")),t.R7$(2),t.Y8G("icon",t.lJ4(69,Ft)),t.R7$(6),t.JRh(t.bMT(33,49,"RECENTLY_PLAYED")),t.R7$(2),t.Y8G("routerLink",t.eq3(70,y,"fr"==(null==s.translateService?null:s.translateService.currentLang)?"joue-recemment":"recently-played")),t.BMQ("title",t.bMT(35,51,"RECENTLY_PLAYED")),t.R7$(2),t.SpI(" ",t.bMT(37,53,"SEE_MORE")," "),t.R7$(4),t.Y8G("ngIf",t.bMT(41,55,s.recentlyPlayed$)),t.R7$(2),t.Y8G("ngIf",s.hasNewMusic),t.R7$(3),t.Y8G("adClass","ad--banner"),t.R7$(4),t.Y8G("ngIf",(s.stationService.isStation("CKOI")||s.stationService.isStation("THEBEAT"))&&(null==s.tops?null:s.tops.length)>0),t.R7$(3),t.JRh(t.bMT(53,57,"NEWS")),t.R7$(2),t.Y8G("routerLink",t.l_i(72,A,"fr"==(null==s.translateService?null:s.translateService.currentLang)?"arts-et-spectacles":"entertainment","fr"==(null==s.translateService?null:s.translateService.currentLang)?"musique":"music")),t.BMQ("title",t.bMT(55,59,"SEE_MORE")),t.R7$(2),t.SpI(" ",t.bMT(57,61,"SEE_MORE")," "),t.R7$(3),t.Y8G("paginateParams",s.contentListParams)("itemsPerPage",4)("isGrid",!0),t.R7$(3),t.Y8G("isMostRead",!0),t.R7$(),t.Y8G("adClass","ad--banner ad--horizontal"))},dependencies:[d.Sq,d.bT,u.Wk,I.l,T.F,L.$,R.aY,$t.O,N.K,d.Jj,d.P9,p.D9,C.az],encapsulation:2})}}return e})();const j=(e,a)=>[e,a];function rn(e,a){1&e&&(t.j41(0,"span",23),t.EFF(1,"Vote!"),t.k0s())}function ln(e,a){1&e&&(t.qex(0),t.EFF(1," \xc9dition du "),t.bVm())}function _n(e,a){1&e&&(t.qex(0),t.EFF(1," edition "),t.bVm())}function dn(e,a){if(1&e&&(t.qex(0),t.j41(1,"span",24),t.DNE(2,ln,2,0,"ng-container",14),t.EFF(3),t.nI1(4,"amDateFormat"),t.DNE(5,_n,2,0,"ng-container",14),t.k0s(),t.bVm()),2&e){const n=t.XpG(2).$implicit,i=t.XpG(2);t.R7$(2),t.Y8G("ngIf","fr"===i.translateService.currentLang),t.R7$(),t.SpI(" ",t.i5U(4,3,n.musicListEdition.date,"fr"===i.translateService.currentLang?"dddd Do MMMM":"dddd MMMM Do")," "),t.R7$(2),t.Y8G("ngIf","en"===i.translateService.currentLang)}}function mn(e,a){if(1&e&&(t.qex(0),t.nrm(1,"cmi-song-card",25),t.bVm()),2&e){const n=a.$implicit,i=a.index;t.R7$(),t.Y8G("item",n)("position",i+1)}}function un(e,a){if(1&e&&(t.qex(0),t.j41(1,"div",15)(2,"div",16)(3,"h3",17)(4,"a",18),t.EFF(5),t.DNE(6,rn,2,0,"span",19),t.k0s()(),t.DNE(7,dn,6,6,"ng-container",14),t.k0s(),t.j41(8,"div",20),t.DNE(9,mn,2,2,"ng-container",13),t.nI1(10,"slice"),t.k0s(),t.j41(11,"div",21)(12,"a",18),t.EFF(13),t.nI1(14,"translate"),t.nrm(15,"fa-icon",22),t.k0s()()(),t.bVm()),2&e){const n=t.XpG().$implicit,i=t.XpG(2);t.R7$(4),t.Y8G("routerLink",t.l_i(15,j,n.id,i.stringService.slugify(n.publicName))),t.BMQ("title",n.publicName),t.R7$(),t.SpI("",n.publicName," "),t.R7$(),t.Y8G("ngIf",n.isVote),t.R7$(),t.Y8G("ngIf",n.musicListEdition.date),t.R7$(2),t.Y8G("ngForOf",t.brH(10,9,n.musicListEdition.musicListItems,0,2)),t.R7$(3),t.Y8G("routerLink",t.l_i(18,j,n.id,i.stringService.slugify(n.publicName))),t.BMQ("title",n.publicName),t.R7$(),t.SpI(" ",t.bMT(14,13,"SEE_RESULTS")," \xa0 ")}}function gn(e,a){if(1&e&&(t.qex(0),t.DNE(1,un,16,21,"ng-container",14),t.bVm()),2&e){const n=a.$implicit;t.R7$(),t.Y8G("ngIf",n.musicListEdition)}}function pn(e,a){if(1&e&&(t.qex(0),t.DNE(1,gn,2,1,"ng-container",13),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.tops)}}function hn(e,a){1&e&&t.nrm(0,"cmi-skeleton-card",26)(1,"cmi-skeleton-card",26)}let O=(()=>{class e{constructor(n,i,s,o,l,m,g,f){this.stationService=n,this.translateService=i,this.stringService=s,this.api=o,this.route=l,this.router=m,this.adsService=g,this.linkService=f,this.newMusicListIds={1:32,2:40},this.breadcrumbParents=[]}ngOnInit(){this.stationService.waitUntilReady(()=>{this.setupAdConfig(),this.linkService.addCanonicalTag("fr"==this.translateService.currentLang?"/musique/decomptes":"/music/tops",this.stationService.station.domain),this.api.get("/list/musiclist/station/"+this.stationService.station.id,{},{},!0).subscribe(n=>{this.tops=n.items.filter(i=>i.id!==this.newMusicListIds[this.stationService.station.id]&&"published"===i.status)})}),this.breadcrumbParent
1s=[{name:"MUSIC.MUSIC",url:["/","fr"===this.translateService.currentLang?"musique":"music"],translable:!0}]}ngOnDestroy(){this.linkService.removeCanonicalTag()}setupAdConfig(){this.adsService.destroyAdsSlots(),this.adsService.createAdsSet("musiclists","/ros",[["hResponsive","L3-1"],["vBig","L3-4mdash"],["footer","L3-5"]]),this.adsService.refreshAds()}static{this.\u0275fac=function(i){return new(i||e)(t.rXU(E.f),t.rXU(p.c$),t.rXU(_.hN),t.rXU(_.jI),t.rXU(u.nX),t.rXU(u.Ix),t.rXU(b.gp),t.rXU(_._w))}}static{this.\u0275cmp=t.VBU({type:e,selectors:[["cmi-music-top-list"]],decls:18,vars:12,consts:[["loadingList",""],["type","musiclists-0","minSize","fluid",3,"adClass"],[1,"container"],[1,"c-page-header-section"],[3,"parents","currentPageTitle"],[1,"l-wrap"],[1,"l-wrap__left"],[1,"l-card-grid--left-two"],[4,"ngIf","ngIfElse"],[1,"l-wrap__right"],[1,"sticky-top"],["type","musiclists-1","minSize","300x250",3,"adClass"],["type","musiclists-2","minSize","320x50",3,"adClass"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"c-card--countdown-vertical"],[1,"c-card__header"],[1,"c-card__title"],[3,"routerLink"],["class","edition-vote",4,"ngIf"],[1,"c-card__song-grid"],[1,"c-card__cta"],["icon","angle-right","size","lg"],[1,"edition-vote"],[1,"edition-date"],["direction","vertical",3,"item","position"],["type","countdown-card-vertical"]],template:function(i,s){if(1&i&&(t.nrm(0,"cmi-ad",1),t.j41(1,"div",2)(2,"div",3),t.nrm(3,"cmi-breadcrumb",4),t.nI1(4,"translate"),t.j41(5,"h1"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",5)(9,"div",6)(10,"div",7),t.DNE(11,pn,2,1,"ng-container",8),t.k0s()(),t.j41(12,"aside",9)(13,"div",10),t.nrm(14,"cmi-ad",11),t.k0s()()(),t.nrm(15,"cmi-ad",12),t.k0s(),t.DNE(16,hn,2,0,"ng-template",null,0,t.C5r)),2&i){const o=t.sdS(17);t.Y8G("adClass","ad--banner ad--horizontal"),t.R7$(3),t.Y8G("parents",s.breadcrumbParents)("currentPageTitle",t.bMT(4,8,"TOPS")),t.R7$(3),t.JRh(t.bMT(7,10,"TOPS")),t.R7$(5),t.Y8G("ngIf",s.tops)("ngIfElse",o),t.R7$(3),t.Y8G("adClass","ad--banner"),t.R7$(),t.Y8G("adClass","ad--banner ad--horizontal")}},dependencies:[d.Sq,d.bT,u.Wk,I.l,T.F,L.$,R.aY,D.D,d.P9,p.D9,C.az],encapsulation:2})}}return e})();const fn=[{path:"",component:cn,data:{meta:{title:"MUSIC.MUSIC",description:"META_TAGS.DESCRIPTION.MUSIC",keywords:"META_TAGS.KEYWORDS.MUSIC"}}},{path:"joue-recemment",component:F,canActivate:[S.sk],data:{meta:{title:"RECENTLY_PLAYED",description:"META_TAGS.DESCRIPTION.RECENTLY_PLAYED",keywords:"META_TAGS.KEYWORDS.RECENTLY_PLAYED"}}},{path:"recently-played",component:F,canActivate:[S.PW],data:{meta:{title:"RECENTLY_PLAYED",description:"META_TAGS.DESCRIPTION.RECENTLY_PLAYED",keywords:"META_TAGS.KEYWORDS.RECENTLY_PLAYED"}}},{path:"decomptes",component:O,canActivate:[S.sk],data:{meta:{title:"TOPS",description:"META_TAGS.DESCRIPTION.MUSIC_TOPS",keywords:"META_TAGS.KEYWORDS.MUSIC_TOPS"}}},{path:"tops",component:O,canActivate:[S.PW],data:{meta:{title:"TOPS",description:"META_TAGS.DESCRIPTION.MUSIC_TOPS",keywords:"META_TAGS.KEYWORDS.MUSIC_TOPS"}}},{path:"decomptes/:topId/:slug",component:w,canActivate:[S.sk]},{path:"tops/:topId/:slug",component:w,canActivate:[S.PW]}];let Sn=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=t.$C({type:e})}static{this.\u0275inj=t.G2t({imports:[P.G,u.iI.forChild(fn),V.X1,k.cm,k.P1]})}}return e})()}}]);

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.