1"use strict";(self.webpackChunkequidia=self.webpackChunkequidia||[]).push([[1160],{8498:(B,x,l)=>{l.d(x,{Z:()=>D});var u=l(4438),c=l(5717),M=l(7793),h=l(6918),S=l(1113),f=l(5144),E=l(8287),v=l(4127);function C(_,k){if(1&_&&(u.j41(0,"a",0),u.nrm(1,"video",1),u.k0s()),2&_){const p=u.XpG();u.Y8G("href",p.getLivePlayerUrl(),u.B4B),u.R7$(),u.Y8G("autoplay",p.config.autoplayLive)}}function I(_,k){if(1&_&&(u.j41(0,"div",2),u.nrm(1,"video",1),u.k0s()),2&_){const p=u.XpG();u.R7$(),u.Y8G("autoplay",p.config.autoplayLive)}}let D=(()=>{class _{constructor(p,b,e,g,m){this.isBrowser=p,this.requestService=b,this.route=e,this.directService=g,this.minimalLayoutModeService=m,this.fluxUrl=null,this.isLive=new u.bkB,this.currentTime=0,this.config=M.c}ngOnInit(){if(this.isBrowser){if(this.isMinimalLayoutMode())return void(this.directService.currentUrl=this.getFlux());c.A.injectHexaglobeScript(),setTimeout(()=>{this.initPlayer()},0)}}ngOnDestroy(){h.N.fireStop(),this.interval&&clearInterval(this.interval),this.intervalDelay&&clearInterval(this.intervalDelay)}initPlayer(){this.interval=setInterval(()=>{typeof hexaplayerNamespace<"u"&&(clearInterval(this.interval),this.initPlayerWhenScriptIsReady())},100)}initPlayerWhenScriptIsReady(){const p=this.getFlux();this.directService.currentUrl=p,this.requestService.get(`racing/directs/${p}/hls?urlOnly=true`).then(b=>{hexaplayerNamespace.initPlayerLive({idDivContainer:"liveContainer",UrlStreamInfo:b.url,titleVideo:p}),c.A.hotfixHexaglobe(),this.intervalDelay=setInterval(()=>{const g=hexaplayerNamespace.getDelayTimeFromLive();this.isLive.emit(g<10)},1e3)}).catch(console.error)}isMinimalLayoutMode(){return this.minimalLayoutModeService.isMinimalMode()}getLivePlayerUrl(){const p=this.getFlux();return`${this.config.baseUrl.api}racing/directs/${p}/hls`}getFlux(){return this.fluxUrl||this.route.snapshot.queryParams.flux||"live2"}switchChannel(){let p="racing1";this.requestService.get(`racing/directs/${p}/hls?urlOnly=true`).then(b=>{hexaplayerNamespace.switchChannel({UrlStreamInfo:b.url,titleVideo:p}),this.directService.pushChapters(p)}).catch(console.error)}static#e=this.\u0275fac=function(b){return new(b||_)(u.rXU("isBrowser"),u.rXU(S.B),u.rXU(f.nX),u.rXU(E.f),u.rXU(v.U))};static#t=this.\u0275cmp=u.VBU({type:_,selectors:[["app-block-live"]],inputs:{block:"block",context:"context",fluxUrl:"fluxUrl"},outputs:{isLive:"isLive"},decls:2,vars:1,consts:[["aria-label","Voir le direct",1,"live-player-link",3,"href"],["playsinline","",1,"video",2,"width","100%","height","100%",3,"autoplay"],["id","liveContainer"]],template:function(b,e){1&b&&u.DNE(0,C,2,2,"a",0)(1,I,2,1),2&b&&u.vxM(0,e.isMinimalLayoutMode()?0:1)},styles:[".marginBottom[_ngcontent-%COMP%]{margin-bottom:30px}@media (max-width: 1023px){#hexaglobePlayer[_ngcontent-%COMP%] > .container[_ngcontent-%COMP%]{padding:0;margin:0 -20px}}"]})}return _})()},7813:(B,x,l)=>{l.d(x,{d:()=>M});var u=l(177),c=l(4438);let M=(()=>{class h{static#e=this.\u0275fac=function(E){return new(E||h)};static#t=this.\u0275mod=c.$C({type:h});static#n=this.\u0275inj=c.G2t({imports:[u.MD]})}return h})()},6404:(B,x,l)=>{l.d(x,{I:()=>D});var u=l(177),c=l(4438);function M(_,k){if(1&_&&(c.qSk(),c.j41(0,"svg",3),c.nrm(1,"use"),c.k0s()),2&_){const p=c.XpG(2);c.R7$(),c.BMQ("href","#logo-R"+p.reunion.num_reunion,null,"xlink")}}function h(_,k){if(1&_&&(c.qSk(),c.j41(0,"svg",4),c.nrm(1,"use"),c.k0s()),2&_){const p=c.XpG(2);c.R7$(),c.BMQ("href","#logo-R"+p.reunion.num_reunion,null,"xlink")}}function S(_,k){1&_&&(c.qSk(),c.j41(0,"svg",4),c.nrm(1,"use",5),c.k0s())}function f(_,k){if(1&_&&(c.j41(0,"div"),c.DNE(1,M,2,1,"svg",1)(2,h,2,1,"svg",2)(3,S,2,0,"svg",2),c.k0s()),2&_){const p=c.XpG();c.R7$(),c.Y8G("ngIf",(!1===p.forcePMH||null===p.forcePMH&&!p.reunion.is_pmh)&&p.reunion.num_reunion<=9),c.R7$(),c.Y8G("ngIf",(!1===p.forcePMH||null===p.forcePMH&&!p.reunion.is_pmh)&&p.reunion.num_reunion>9&&p.reunion.num_reunion<=17),c.R7$(),c.Y8G("ngIf",!0===p.forcePMH||null===p.forcePMH&&p.reunion.is_pmh||p.reunion.num_reunion>17)}}function E(_,k){if(1&_&&(c.qSk(),c.j41(0,"svg",8),c.nrm(1,"use"),c.k0s()),2&_){const p=c.XpG(2);c.R7$(),c.BMQ("href","#logo-ER"+p.reunion.num_reunion,null,"xlink")}}function v(_,k){if(1&_&&(c.qSk(),c.j41(0,"svg",9),c.nrm(1,"use"),c.k0s()),2&_){const p=c.XpG(2);c.R7$(),c.BMQ("href","#logo-ER"+p.reunion.num_reunion,null,"xlink")}}function C(_,k){1&_&&(c.qSk(),c.j41(0,"svg",4),c.nrm(1,"use",5),c.k0s())}function I(_,k){if(1&_&&(c.j41(0,"div"),c.DNE(1,E,2,1,"svg",6)(2,v,2,1,"svg",7)(3,C,2,0,"svg",2),c.k0s()),2&_){const p=c.XpG();c.R7$(),c.Y8G("ngIf",(!1===p.forcePMH||null===p.forcePMH&&!p.reunion.is_pmh)&&p.reunion.num_reunion<=9),c.R7$(),c.Y8G("ngIf",(!1===p.forcePMH||null===p.forcePMH&&!p.reunion.is_pmh)&&p.reunion.num_reunion>9&&p.reunion.num_reunion<=17),c.R7$(),c.Y8G("ngIf",!0===p.forcePMH||null===p.forcePMH&&p.reunion.is_pmh||p.reunion.num_reunion>17)}}let D=(()=>{class _{constructor(){this.reunion={},this.etag=!1,this.forcePMH=null}static#e=this.\u0275fac=function(b){return new(b||_)};static#t=this.\u0275cmp=c.VBU({type:_,selectors:[["app-reunion-tag"]],inputs:{reunion:"reunion",etag:"etag",forcePMH:"forcePMH"},standalone:!0,features:[c.aNF],decls:2,vars:2,consts:[[4,"ngIf"],["viewBox","0 0 32 21",4,"ngIf"],["viewBox","0 0 43 22",4,"ngIf"],["viewBox","0 0 32 21"],["viewBox","0 0 43 22"],[0,"xlink","href","#logo-pmh"],["viewBox","0 0 57 26",4,"ngIf"],["viewBox","0 0 64 26",4,"ngIf"],["viewBox","0 0 57 26"],["viewBox","0 0 64 26"]],template:function(b,e){1&b&&c.DNE(0,f,4,3,"div",0)(1,I,4,3,"div",0),2&b&&(c.Y8G("ngIf",!1===e.etag),c.R7$(),c.Y8G("ngIf",!0===e.etag))},dependencies:[u.bT],styles:[".num-reunion[_ngcontent-%COMP%]{font-family:Saira;font-style:italic;font-weight:700;font-size:18px;margin-left:5px}"]})}return _})()},3148:(B,x,l)=>{l.d(x,{F:()=>M});var u=l(177),c=l(4438);let M=(()=>{class h{static#e=this.\u0275fac=function(E){return new(E||h)};static#t=this.\u0275mod=c.$C({type:h});static#n=this.\u0275inj=c.G2t({imports:[u.MD]})}return h})()},7e3:(B,x,l)=>{l.d(x,{$:()=>M});var u=l(4438),c=l(345);let M=(()=>{class h{constructor(f){this.sanitizer=f}transform(f){return this.sanitizer.bypassSecurityTrustHtml(f)}static#e=this.\u0275fac=function(E){return new(E||h)(u.rXU(c.up,16))};static#t=this.\u0275pipe=u.EJ8({name:"mySafeHtml",type:h,pure:!0})}return h})()},8287:(B,x,l)=>{l.d(x,{f:()=>S});var u=l(4438),c=l(1113),M=l(1282),h=l(1898);let S=(()=>{class f{constructor(v,C,I){this.requestService=v,this._amplitudeService=C,this._contentTypeService=I,this.contentType="Direct",this.currentUrl=null,this.selectedChannels=[],this.directs=null,this.events=new u.bkB}ngOnInit(){this._sendContentTypeToService()}switchChannel(v){this.events.emit({switchChannel:v}),this.currentUrl=v,console.warn("on switch sur "+v),this.requestService.get(`racing/directs/${v}/hls?urlOnly=true`).then(C=>
1{console.warn("url hexaglobe = "+C.url),hexaplayerNamespace.switchChannel({UrlStreamInfo:C.url,titleVideo:v}),this.pushChapters(v),this._getAmplitudeInfos()}).catch(console.error)}pushChapters(v){setTimeout(()=>{if(!(!this.directs?.length||typeof hexaplayerNamespace>"u"||typeof hexaplayerNamespace.setJson>"u")){hexaplayerNamespace.setJson([]);for(const C of this.directs)if(C.url===v){C.chapters&&(hexaplayerNamespace.setJson(C.chapters||[]),console.warn("setJson",C.chapters));break}}})}resetChannel(){this.currentUrl=null}_getAmplitudeInfos(){this._amplitudeService.pageTrack({"Content Audio Mode":null,"Content Id":this.currentUrl||null,"Content Name":this.currentUrl||null,"Content Slug":this.currentUrl||null,"Content Type":this.contentType,"Content View Mode":null})}_sendContentTypeToService(){this._contentTypeService.saveContentType(this.contentType)}static#e=this.\u0275fac=function(C){return new(C||f)(u.KVO(c.B),u.KVO(M.r),u.KVO(h.n))};static#t=this.\u0275prov=u.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},8996:(B,x,l)=>{l.r(x),l.d(x,{EvenementHippiqueModule:()=>bi});var u=l(177),c=l(5144),M=l(3253),h=l(1663),S=l(2105),f=l(8383),E=l(4563),v=l(8461),C=l(7813),I=l(4073),D=l(2835),_=l(9915),k=l(5627),p=l(7663),b=l(9231),e=l(4438),g=l(5511),m=l(5717),T=l(1113),ee=l(1838),te=l(1282),ne=l(1898),j=l(5546),U=l(4127),ie=l(2190);function oe(n,s){if(1&n&&(e.j41(0,"a",1)(1,"div",2),e.nrm(2,"img",3),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("href",t.getRedirectUrl(t.config.bannerUrl),e.B4B)("target",t.config.bannerTarget||"_blank"),e.R7$(2),e.Y8G("src",t.config.bannerImage,e.B4B)("alt",t.config.bannerAlt)}}function re(n,s){if(1&n&&(e.j41(0,"a",1)(1,"div",2),e.nrm(2,"img",3),e.k0s()()),2&n){const t=e.XpG(2);e.Y8G("href",t.getRedirectUrl(t.config.bannerUrl2),e.B4B)("target",t.config.bannerTarget2||"_blank"),e.R7$(2),e.Y8G("src",t.config.bannerImage2,e.B4B)("alt",t.config.bannerAlt2)}}function se(n,s){if(1&n&&(e.j41(0,"div",0),e.DNE(1,oe,3,4,"a",1)(2,re,3,4,"a",1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.vxM(1,t.config.bannerImage||t.config.bannerTitle||t.config.bannerText?1:-1),e.R7$(),e.vxM(2,t.config.bannerImage2||t.config.bannerTitle2||t.config.bannerText2?2:-1)}}let ae=(()=>{class n{constructor(t,i){this._thumborService=t,this._minimalLayoutModeService=i,this.block=null,this.event=null}get imageAlt(){return this.block?.bannerAlt||this.block?.bannerTitle||"Image"}get contentStyle(){return this.event?.global_font_color?`color: ${m.A.formatColor(this.event.global_font_color)} !important`:null}getRedirectUrl(t){if(!t||!this._minimalLayoutModeService.isMinimalMode())return t||"";const[i,o=""]=t.split("#"),r=i.includes("?")?"&":"?";return new URLSearchParams(i.split("?")[1]||"").has("app")?t:`${i}${r}app=1${o?`#${o}`:""}`}ngOnInit(){this.block&&(this.block.bannerImage&&(this.block.bannerImage=this._thumborService.toThumbor(this.block.bannerImage,800)),this.block.bannerImage2&&(this.block.bannerImage2=this._thumborService.toThumbor(this.block.bannerImage2,800)),this.config=this.block)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(j.Z),e.rXU(U.U))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-banner-16-9"]],inputs:{block:"block",event:"event"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[[1,"banner-16-9__container"],[1,"banner-16-9",3,"href","target"],[1,"banner-16-9__image"],["loading","lazy",3,"src","alt"]],template:function(i,o){1&i&&e.DNE(0,se,3,2,"div",0),2&i&&e.vxM(0,o.config.bannerImage||o.config.bannerTitle||o.config.bannerText||o.config.bannerImage2||o.config.bannerTitle2||o.config.bannerText2?0:-1)},styles:[".banner-16-9__container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:12px;width:100%}@media (min-width: 768px){.banner-16-9__container[_ngcontent-%COMP%]{flex-wrap:nowrap;gap:16px}}.banner-16-9[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;color:inherit;overflow:hidden;width:calc(50% - 6px);flex-shrink:0}@media (min-width: 768px){.banner-16-9[_ngcontent-%COMP%]{width:calc(50% - 8px)}}.banner-16-9__image[_ngcontent-%COMP%]{width:100%;flex-shrink:0}.banner-16-9__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain;display:block;border-radius:5px}"]})}return n})();var le=l(9689);
1function ce(n,s){if(1&n&&(e.j41(0,"h2",1),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.JRh(t.title())}}function pe(n,s){if(1&n&&e.nrm(0,"img",10),2&n){const t=e.XpG(2).$implicit;e.Y8G("src",t.logo,e.B4B)("alt",t.title||"Logo")}}function ue(n,s){if(1&n&&(e.j41(0,"h3",11),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",t.title," ")}}function de(n,s){if(1&n&&e.nrm(0,"div",12),2&n){const t=e.XpG(2).$implicit;e.Y8G("innerHTML",t.text,e.npT)}}function _e(n,s){if(1&n&&(e.nrm(0,"div",8),e.j41(1,"div",9),e.DNE(2,pe,1,2,"img",10)(3,ue,2,1,"h3",11)(4,de,1,1,"div",12),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(2),e.vxM(2,t.logo?2:-1),e.R7$(),e.vxM(3,t.title?3:-1),e.R7$(),e.vxM(4,t.text?4:-1)}}function me(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",6),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(2);return e.Njj(r.onSlideClick(o))}),e.nrm(1,"img",7),e.DNE(2,_e,5,3),e.k0s()}if(2&n){const t=s.$implicit;e.AVh("clickable",t.url_redirect),e.R7$(),e.Y8G("src",t.background_image,e.B4B)("alt",t.title||"Image"),e.R7$(),e.vxM(2,t.logo||t.title||t.text?2:-1)}}function he(n,s){if(1&n){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){const o=e.eBV(t).$index,r=e.XpG(3);return e.Njj(r.goToSlide(o))}),e.k0s()}if(2&n){const t=s.$index,i=e.XpG(3);e.AVh("active",i.currentSlideIndex()===t),e.BMQ("aria-label","Aller au slide "+(t+1))}}function ge(n,s){if(1&n&&(e.j41(0,"div",5),e.Z7z(1,he,1,3,"button",13,e.Vm6),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Dyx(t.slides())}}function fe(n,s){if(1&n&&(e.j41(0,"section",0),e.DNE(1,ce,2,1,"h2",1),e.j41(2,"div",2)(3,"div",3),e.Z7z(4,me,3,5,"div",4,e.Vm6),e.k0s(),e.DNE(6,ge,3,0,"div",5),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.vxM(1,t.title()?1:-1),e.R7$(2),e.AVh("not-initialized",!t.carouselInit()),e.Y8G("id","carousel-une-"+t.randomId()),e.R7$(),e.Dyx(t.slides()),e.R7$(2),e.vxM(6,t.hasMultipleSlides()?6:-1)}}let V=(()=>{class n{constructor(t,i){this._router=t,this._isBrowser=i,this.config=(0,e.hFB)(null),this.currentSlideIndex=(0,e.vPA)(0),this.randomId=(0,e.vPA)(m.A.makeId()),this.carouselInit=(0,e.vPA)(!1),this.slides=(0,e.EWP)(()=>this.config()?.slides||[]),this.hasMultipleSlides=(0,e.EWP)(()=>this.slides().length>1),this.title=(0,e.EWP)(()=>this.config()?.title||""),this.carouselInterval=(0,e.vPA)(0),this._carousel=null,this._carouselElem=null,this._isBrowser&&this.carouselInterval.set(6e3),(0,e.QZP)(()=>{this.slides().length>0&&setTimeout(()=>{this._initCarousel()})})}ngOnDestroy(){this._destroyCarousel()}goToSlide(t){this._carouselElem&&m.A.ifSlickScript(()=>{this._carouselElem.slick("slickGoTo",t)})}onSlideClick(t){t.url_redirect&&this._isBrowser&&(t.url_redirect.startsWith("http")?window.open(t.url_redirect,"_blank"):this._router.navigateByUrl(t.url_redirect))}_destroyCarousel(){if(this._carousel&&this._carouselElem){try{this._carouselElem.slick("unslick")}catch{}this._carousel=null}}_initCarousel(){this._isBrowser&&(m.A.injectSlickScript(),m.A.waitSlickScript(()=>{const t=`#carousel-une-${this.randomId()}`;this._carousel?$(`${t}`).slick("unslick"):this._carouselElem=$(t),this._carouselElem.length&&setTimeout(()=>{this.carouselInit.set(!0),this._carousel=this._carouselElem.not(".slick-initialized").slick({infinite:!0,slidesToShow:1,slidesToScroll:1,variableWidth:!1,arrows:!1,dots:!1,autoplay:!0,autoplaySpeed:6e3,speed:800,cssEase:"cubic-bezier(0.4, 0, 0.2, 1)",pauseOnHover:!1}),this._carouselElem.on("beforeChange",(i,o,r,a)=>{this.currentSlideIndex.set(a)})})}))}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.Ix),e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-carousel-une"]],inputs:{config:[e.Mj6.SignalBased,"config"]},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[[1,"carousel-une-wrapper"],[1,"carousel-une-title"],[1,"carousel-une-container"],[1,"carousel-une-slider",3,"id"],[1,"carousel-une-slide",3,"clickable"],[1,"carousel-dots"],[1,"carousel-une-slide",3,"click"],["loading","lazy",1,"slide-image",3,"src","alt"],[1,"slide-overlay"],[1,"slide-content"],[1,"slide-logo",3,"src","alt"],[1,"slide-title"],[1,"slide-text",3,"innerHTML"],[1,"carousel-dot",3,"active"],[1,"carousel-dot",3,"click"]],template:function(i,o){1&i&&e.DNE(0,fe,7,5,"section",0),2&i&&e.vxM(0,o.slides().length?0:-1)},dependencies:[u.MD],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}.carousel-une-wrapper[_ngcontent-%COMP%]{margin-bottom:2rem;width:100%}
1.carousel-une-title[_ngcontent-%COMP%]{font-family:Saira,sans-serif;font-weight:600;font-size:24px;line-height:1.3;color:var(--global-font-color, #090a3a);margin:0 0 1.5rem;text-transform:uppercase;letter-spacing:1px}.carousel-une-container[_ngcontent-%COMP%]{position:relative;width:100%;border-radius:5px;overflow:hidden;box-shadow:0 8px 32px #00000026}.carousel-une-slider[_ngcontent-%COMP%]{width:100%}.carousel-une-slider.not-initialized[_ngcontent-%COMP%]{overflow:hidden}.carousel-une-slider.not-initialized[_ngcontent-%COMP%] .carousel-une-slide[_ngcontent-%COMP%]{display:none!important;float:none!important;width:100%!important}.carousel-une-slider.not-initialized[_ngcontent-%COMP%] .carousel-une-slide[_ngcontent-%COMP%]:first-child{display:block!important}.carousel-une-slider[_ngcontent-%COMP%]:not(.slick-initialized){overflow:hidden}.carousel-une-slider[_ngcontent-%COMP%]:not(.slick-initialized) .carousel-une-slide[_ngcontent-%COMP%]{float:none!important;width:100%!important}.carousel-une-slider[_ngcontent-%COMP%]:not(.slick-initialized) .carousel-une-slide[_ngcontent-%COMP%]:not(:first-child){display:none!important}.carousel-une-slide[_ngcontent-%COMP%]{position:relative;width:100%;display:block!important}.carousel-une-slide.clickable[_ngcontent-%COMP%]{cursor:pointer}.slide-image[_ngcontent-%COMP%]{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}.slide-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,10,58,.9) 0%,rgba(9,10,58,.7) 40%,rgba(9,10,58,.2) 70%,transparent 100%);z-index:1}.slide-content[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;width:50%;z-index:2;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;padding:3rem;overflow:hidden}@media (max-width: 768px){.slide-content[_ngcontent-%COMP%]{padding:2rem}}@media (max-width: 480px){.slide-content[_ngcontent-%COMP%]{padding:1rem 1rem 2.5rem}}.slide-logo[_ngcontent-%COMP%]{max-width:180px;max-height:80px;width:auto;height:auto;margin-bottom:1.5rem;filter:brightness(0) invert(1);opacity:.9}@media (max-width: 768px){.slide-logo[_ngcontent-%COMP%]{max-width:140px;max-height:60px;margin-bottom:1rem}}@media (max-width: 480px){.slide-logo[_ngcontent-%COMP%]{max-width:100px;max-height:40px;margin-bottom:.75rem}}.slide-title[_ngcontent-%COMP%]{font-family:Saira,sans-serif;font-weight:700;font-size:28px;line-height:1.2;color:#fff;margin:0 0 1.25rem;text-shadow:0 2px 10px rgba(0,0,0,.3)}@media (max-width: 768px){.slide-title[_ngcontent-%COMP%]{font-size:24px;margin:0 0 1rem}}@media (max-width: 480px){.slide-title[_ngcontent-%COMP%]{font-size:16px;margin:0 0 .5rem}}.slide-text[_ngcontent-%COMP%]{font-family:Averta,sans-serif;font-size:15px;line-height:1.6;color:#ffffffe6;overflow:hidden}.slide-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 .75rem}.slide-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}@media (max-width: 768px){.slide-text[_ngcontent-%COMP%]{font-size:14px}}@media (max-width: 480px){.slide-text[_ngcontent-%COMP%]{font-size:11px;line-height:1.4}.slide-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 .5rem}}.carousel-dots[_ngcontent-%COMP%]{position:absolute;bottom:1.5rem;left:50%;transform:translate(-50%);z-index:10;display:flex;gap:.75rem;
1align-items:center}@media (max-width: 480px){.carousel-dots[_ngcontent-%COMP%]{bottom:1rem;gap:.5rem}}.carousel-dot[_ngcontent-%COMP%]{width:14px;height:14px;border-radius:50%;background:transparent;border:2px solid rgba(255,255,255,.7);cursor:pointer;padding:0;transition:all .3s ease}.carousel-dot[_ngcontent-%COMP%]:hover{border-color:#fff}.carousel-dot.active[_ngcontent-%COMP%]{background:#fff;border-color:#fff}@media (max-width: 480px){.carousel-dot[_ngcontent-%COMP%]{width:12px;height:12px}} .carousel-une-slider .slick-track{display:flex} .carousel-une-slider .slick-slide{height:auto} .carousel-une-slider .slick-slide>div{height:100%} .carousel-une-slider .slick-list{overflow:hidden}"]})}return n})();function ve(n,s){if(1&n){const t=e.RV6();e.j41(0,"a",1),e.bIt("click",function(o){e.eBV(t);const r=e.XpG();return e.Njj(r.handleClick(o))}),e.nrm(1,"img",2),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("href",t.config.redirectUrl,e.B4B),e.R7$(),e.Y8G("src",t.config.imageUrl,e.B4B)("alt",t.altText)}}function Ce(n,s){if(1&n&&e.nrm(0,"img",2),2&n){const t=e.XpG();e.Y8G("src",t.config.imageUrl,e.B4B)("alt",t.altText)}}let be=(()=>{class n{constructor(t,i){this._router=t,this.isBrowser=i}get hasRedirect(){return!!this.config?.redirectUrl}get altText(){return this.config?.altImage||"Image"}get target(){return this.config?.target||"_blank"}handleClick(t){if(!this.config?.redirectUrl)return;t.preventDefault();const i=this.config.redirectUrl.indexOf("equidia.fr");if(-1===i)this.isBrowser&&window.open(this.config.redirectUrl,this.target);else{const o=this.config.redirectUrl.substring(i+10);"_blank"===this.target?this.isBrowser&&window.open(o,"_blank"):this._router.navigateByUrl(o)}}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(c.Ix),e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-clickable-full-image"]],inputs:{config:"config"},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"clickable",3,"href"],[1,"clickable",3,"click","href"],["loading","lazy",3,"src","alt"]],template:function(i,o){1&i&&e.DNE(0,ve,2,3,"a",0)(1,Ce,1,2),2&i&&e.vxM(0,o.hasRedirect?0:1)},styles:["[_nghost-%COMP%]{display:block;width:100%}img[_ngcontent-%COMP%]{width:100%;height:auto;border-radius:5px;display:block}a.clickable[_ngcontent-%COMP%]{display:block;cursor:pointer;transition:opacity .2s ease}a.clickable[_ngcontent-%COMP%]:hover{opacity:.9}"]})}return n})();var P=l(7793),N=l(9635),z=l(8211),ye=l(2414),xe=l(6404),Me=l(7280);
1function Pe(n,s){if(1&n&&e.nrm(0,"img",18),2&n){const t=e.XpG(2);e.Mz_("src","",t.config.baseUrl.assets,"/design-system/seminocturne.svg",e.B4B)}}function Oe(n,s){if(1&n&&e.nrm(0,"img",18),2&n){const t=e.XpG(2);e.Mz_("src","",t.config.baseUrl.assets,"/design-system/nocturne.svg",e.B4B)}}function Ee(n,s){1&n&&(e.qSk(),e.j41(0,"svg",13),e.nrm(1,"use",19),e.k0s())}function ke(n,s){1&n&&(e.qSk(),e.j41(0,"svg",13),e.nrm(1,"use"),e.k0s()),2&n&&(e.R7$(),e.BMQ("href","#logo-quarte-regional",null,"xlink"))}function we(n,s){if(1&n&&e.nrm(0,"div",25),2&n){const t=e.XpG(3);e.Y8G("innerHtml",t.course.courseDescription,e.npT)}}function Te(n,s){1&n&&(e.j41(0,"div")(1,"button",26),e.EFF(2," Voir la fiche course "),e.k0s()())}function $e(n,s){if(1&n&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" NP : ",t.course.nonPartants," ")}}function Re(n,s){if(1&n&&e.nrm(0,"app-score-social-prono-small",28),2&n){const t=e.XpG(3);e.Y8G("socialProno",t.course.socialProno)}}function Ie(n,s){if(1&n&&(e.j41(0,"div",20)(1,"div",21),e.DNE(2,we,1,1,"div",22)(3,Te,3,0,"div",15)(4,$e,2,1,"span",23),e.k0s(),e.DNE(5,Re,1,1,"app-score-social-prono-small",24),e.k0s()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.course.courseDescription),e.R7$(),e.Y8G("ngIf",t.course.showBtnCourse),e.R7$(),e.Y8G("ngIf",t.course.nonPartants),e.R7$(),e.Y8G("ngIf",t.course.socialProno)}}
1function Ge(n,s){if(1&n&&e.nrm(0,"div",25),2&n){const t=e.XpG(3);e.Y8G("innerHtml",t.course.courseDescription,e.npT)}}function Se(n,s){1&n&&(e.j41(0,"div")(1,"button",26),e.EFF(2," Voir la fiche course "),e.k0s()())}function qe(n,s){if(1&n&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" NP : ",t.course.nonPartants," ")}}function Be(n,s){if(1&n&&e.nrm(0,"app-score-social-prono-small",30),2&n){const t=e.XpG(3);e.Y8G("socialProno",t.course.socialProno)("mapCheval",t.course.mapCheval)}}function Ue(n,s){if(1&n&&(e.j41(0,"td")(1,"div",21),e.DNE(2,Ge,1,1,"div",22)(3,Se,3,0,"div",15)(4,qe,2,1,"span",23)(5,Be,1,2,"app-score-social-prono-small",29),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.course.courseDescription),e.R7$(),e.Y8G("ngIf",t.course.showBtnCourse),e.R7$(),e.Y8G("ngIf",t.course.nonPartants),e.R7$(),e.Y8G("ngIf",t.course.socialProno)}}function Xe(n,s){if(1&n&&(e.j41(0,"div")(1,"span",31),e.EFF(2,"play_circle_filled"),e.k0s(),e.nrm(3,"app-reunion-tag",32),e.k0s()),2&n){const t=e.XpG(2);e.R7$(3),e.Y8G("reunion",t.course.reunion)("etag",!0)("forcePMH","PMH"===t.course.reunion.flux_type)}}function De(n,s){if(1&n&&(e.j41(0,"div",33),e.nrm(1,"img",34),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Mz_("src","",t.config.baseUrl.assets,"/design-system/icone/replay.svg",e.B4B)}}function Fe(n,s){if(1&n&&(e.j41(0,"table",1)(1,"tr",2)(2,"td")(3,"div",3)(4,"div"),e.EFF(5),e.k0s(),e.j41(6,"div"),e.EFF(7),e.k0s()()(),e.j41(8,"td")(9,"div",4)(10,"div",5)(11,"div"),e.nrm(12,"app-discipline",6),e.k0s(),e.j41(13,"div",7)(14,"span"),e.EFF(15),e.k0s()()(),e.j41(16,"div",8)(17,"div",9),e.EFF(18),e.DNE(19,Pe,1,2,"img",10)(20,Oe,1,2,"img",10),e.k0s(),e.j41(21,"div",11),e.EFF(22),e.DNE(23,Ee,2,0,"svg",12)(24,ke,2,1,":svg:svg",13),e.k0s()()(),e.DNE(25,Ie,6,4,"div",14),e.k0s(),e.DNE(26,Ue,6,4,"td",15),e.j41(27,"td")(28,"div",16)(29,"div"),e.EFF(30),e.DNE(31,Xe,4,3,"div",15)(32,De,2,2,"div",17),e.k0s()()()()()),2&n){const t=e.XpG();e.R7$(),e.AVh("fill-primary-blue-50","Termin\xe9e"===t.course.statusReunion)("fill-primary-blue","D\xe9but"===t.course.statusReunion)("fill-primary-red","En direct"===t.course.statusReunion)("text-primary-blue-50","Termin\xe9e"===t.course.statusReunion)("text-primary-blue","D\xe9but"===t.course.statusReunion)("text-primary-red","En direct"===t.course.statusReunion),e.Y8G("routerLink",t.course.urlCourse),e.R7$(4),e.JRh(t.event.step),e.R7$(),e.AVh("text-primary-blue-50","En direct"!==t.course.statusReunion)("text-primary-red","En direct"===t.course.statusReunion),e.R7$(),e.SpI(" ",t.course.dateReunionFormatted," "),e.R7$(5),e.Y8G("config",t.course.discipline),e.R7$(3),e.Lme("R",t.course.reunion.num_reunion,"C",t.course.num_course_pmu,""),e.R7$(3),e.SpI(" ",t.course.reunion.lib_reunion," "),e.R7$(),e.Y8G("ngIf","S"===t.course.reunion.type_reunion_id),e.R7$(),e.Y8G("ngIf","N"===t.course.reunion.type_reunion_id),e.R7$(2),e.SpI(" ",t.course.libcourt_prix_course," "),e.R7$(),e.Y8G("ngIf",t.course.is_quinte_plus),e.R7$(),e.vxM(24,t.course.reunion.is_quarte?24:-1),e.R7$(),e.Y8G("ngIf",t.isMobile()),e.R7$(),e.Y8G("ngIf",!t.isMobile()),e.R7$(3),e.AVh("text-primary-blue-50","D\xe9but"===t.course.statusReunion),e.R7$(),e.SpI(" ",t.course.labelWhen," "),e.R7$(),e.Y8G("ngIf","En cours"===t.course.labelWhen),e.R7$(),e.Y8G("ngIf",t.course.video_course_id)}}let He=(()=>{class n{constructor(t,i){this.socialPronoService=t,this.authService=i,this.event=null,this.course=null,this.config=P.c}ngOnChanges(t){this.course&&(this._mapCourse(),this._fetchSocialProno())}isMobile(){return m.A.isMobile()}_getStatusCourse(){return"canceled"===this.course.type_statut_course_id?"Annul\xe9e":"imminent"===this.course.type_statut_course_id||"live"===this.course.type_statut_course_id||"finished_prov"===this.course.type_statut_course_id?"En direct":"finished"===this.course.type_statut_course_id?"Termin\xe9e":"D\xe9but"}_getCourseLabelWhen(){return this.course.statut_course_id<8||!this.course.statut_course_id?this.course.heure_depart_course?this.course.heure_depart_course:"\xc0 venir":this.course.statut_course_id<10?"En cours":17===this.course.statut_course_id?"Annul\xe9e":"Termin\xe9e"}_mapCourse(){this.course&&(this.course.dateReunionFormatted=(0,g.A)(this.course.reunion.date_reunion,"YYYY-MM-DD").format("DD/MM/YYYY"),this.course.statusReunion=this._getStatusCourse(),this.course.urlCourse=`/courses/${this.course.reunion.date_reunion}/R${this.course.reunion.num_reunion}/C${this.course.num_course_pmu}`,"finished"===this.course.type_statut_course_id||"finished_prov"===this.course.type_statut_course_id?this.course.showBtnCourse=!0:this.course.courseDescription=m.A.getCourseDescription(this.course),this.course.nonPartants=m.A.getNonPartants(this.course),this.course.labelWhen=this._getCourseLabelWhen(),this.course.mapCheval=(i=>{const o={};for(const r of i)o[r.num_partant]={nom_cheval:r.cheval.nom_cheval,casaque:r.silks_path};return o}
1)(this.course.partants))}_fetchSocialProno(){const t=this.course.guid;this.authService.profile().then(()=>{this.authService.getUser()&&this.socialPronoService.getSocialPronosList([t]).then(i=>{if(i)for(const o of i)o.course_id==t&&(this.course.socialProno=o,this.course.socialProno.partants=N.r.transformSocialPronoToPartants(o))}).catch(console.error)}).catch(()=>{})}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(N.r),e.rXU(z.u))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-course"]],inputs:{event:"event",course:"course"},features:[e.OA$],decls:1,vars:1,consts:[["class","customable-table",4,"ngIf"],[1,"customable-table"],[1,"customable-table--row","clickable",3,"routerLink"],[1,"container-cell-customable-table","col-date"],[1,"container-cell-customable-table","col-course"],[1,"col-course-col-1"],[3,"config"],[1,"numreunion"],[1,"col-course-col-2"],[1,"libreunion-before"],["class","picto-type","alt","","loading","lazy",3,"src",4,"ngIf"],[1,"libcourse"],["class","pari-type","viewBox","0 0 327 150",4,"ngIf"],["viewBox","0 0 327 150",1,"pari-type"],["class","details-mobile",4,"ngIf"],[4,"ngIf"],[1,"container-cell-customable-table","col-event"],["class","text-right",4,"ngIf"],["alt","","loading","lazy",1,"picto-type",3,"src"],[0,"xlink","href","#logo-quinte-plus"],[1,"details-mobile"],[1,"container-cell-customable-table","col-details"],[3,"innerHtml",4,"ngIf"],["class","text-primary-blue non-partant",4,"ngIf"],["class","text-primary-blue",3,"socialProno",4,"ngIf"],[3,"innerHtml"],["type","button",1,"btn","btn-info","btn-red"],[1,"text-primary-blue","non-partant"],[1,"text-primary-blue",3,"socialProno"],["class","text-primary-blue",3,"socialProno","mapCheval",4,"ngIf"],[1,"text-primary-blue",3,"socialProno","mapCheval"],[1,"material-icons","outlined"],[3,"reunion","etag","forcePMH"],[1,"text-right"],["width","24","alt","","loading","lazy",3,"src"]],template:function(i,o){1&i&&e.DNE(0,Fe,33,35,"table",0),2&i&&e.Y8G("ngIf",o.course)},dependencies:[u.bT,c.Wk,ye.c,xe.I,Me.g],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}.container-customable-table[_ngcontent-%COMP%]{width:100%;overflow-x:scroll;overflow-y:visible;padding:0}.btn-custom-menu-customable-table[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-family:Averta;font-size:16px;line-height:19px;color:#090a3a;background:none;border:0;float:right;margin-bottom:15px}.btn-custom-menu-customable-table[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:5px}.customable-table[_ngcontent-%COMP%]{min-width:100%;margin-bottom:20px;border-collapse:separate;border-spacing:0 2px}.customable-table[_ngcontent-%COMP%] .content-cell[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.customable-table[_ngcontent-%COMP%] .icon-info[_ngcontent-%COMP%]{width:20px;height:auto;display:inline;margin-right:7px}.customable-table--header[_ngcontent-%COMP%]{height:30px}.customable-table--header[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .customable-table--header[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-family:Averta;font-size:12px;line-height:14px;background:#dce1e7;padding:0 7px}.customable-table--header[_ngcontent-%COMP%] th.sortable[_ngcontent-%COMP%], .customable-table--header[_ngcontent-%COMP%] td.sortable[_ngcontent-%COMP%]{cursor:pointer}.customable-table--header[_ngcontent-%COMP%] th.active[_ngcontent-%COMP%], .customable-table--header[_ngcontent-%COMP%] td.active[_ngcontent-%COMP%]{color:#090a3a}.customable-table--header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type, .customable-table--header[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{border-top-left-radius:5px}.customable-table--header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-of-type, .customable-table--header[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{border-top-right-radius:5px}.customable-table--row[_ngcontent-%COMP%]{cursor:pointer}.customable-table--row[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .customable-table--row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{background:#fff;padding:0 7px;height:60px;border-top:1px solid #dce1e7;border-bottom:1px solid #dce1e7}.customable-table--row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type, .customable-table--row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{border-left:1px solid #dce1e7;border-top-left-radius:3px;border-bottom-left-radius:3px}.customable-table--row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-of-type, .customable-table--row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{border-right:1px solid #dce1e7;border-top-right-radius:3px;border-bottom-right-radius:3px}.customable-table--row.collapse-shown[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type, .customable-table--row.collapse-shown[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-of-type{border-bottom-left-radius:0}.customable-table--row.collapse-shown[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-of-type, .customable-table--row.collapse-shown[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-of-type{border-bottom-right-radius:0}.customable-table--row.collapse-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .customable-table--row.collapse-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.customable-table--row.collapse-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .hacking-nice-table[_ngcontent-%COMP%], .customable-table--row.collapse-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .hacking-nice-table[_ngcontent-%COMP%]{position:relative;top:-8px;width:calc(100% + 16px);height:8px;display:block;background:#fff;border-left:1px solid #dce1e7;border-right:1px solid #dce1e7;left:-8px}.customable-table--row.collapse-row[_ngcontent-%COMP%]:not(.show){display:none}.customable-table--row.collapse-row[_ngcontent-%COMP%]:not(.show) td[_ngcontent-%COMP%]:after{display:none}.customable-table--row.opacity-down[_ngcontent-%COMP%]{opacity:.2}","[_ngcontent-%COMP%]::root{--global-font-color: #fff}.container-cell-customable-table[_ngcontent-%COMP%]{display:flex;align-items:center;font-family:Averta;font-size:16px;line-height:19px;color:#090a3a}.container-cell-customable-table[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{font-size:12px;line-height:14px;color:#090a3ab3}.container-cell-customable-table[_ngcontent-%COMP%] .hippodrome[_ngcontent-%COMP%], .container-cell-customable-table[_ngcontent-%COMP%] .prix[_ngcontent-%COMP%], .container-cell-customable-table[_ngcontent-%COMP%] .classm[_ngcontent-%COMP%]{font-family:Saira;text-transform:uppercase}.container-cell-customable-table[_ngcontent-%COMP%] .hippodrome[_ngcontent-%COMP%], .container-cell-customable-table[_ngcontent-%COMP%] .prix[_ngcontent-%COMP%]{font-size:16px;line-height:18px}.container-cell-customable-table[_ngcontent-%COMP%] .prix[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:700}.container-cell-customable-table[_ngcontent-%COMP%] .classm[_ngcontent-%COMP%]{font-weight:700;font-size:14px;line-height:16px}.container-cell-customable-table[_ngcontent-%COMP%] .min-200[_ngcontent-%COMP%]{min-width:200
1px}","[_ngcontent-%COMP%]::root{--global-font-color: #fff}[_nghost-%COMP%] app-discipline svg{height:24px;width:36.57px}[_nghost-%COMP%] app-reunion-tag svg{width:36px}app-discipline[_ngcontent-%COMP%]{display:inline-block}.picto-type[_ngcontent-%COMP%]{width:13px}.text-primary-blue-50[_ngcontent-%COMP%] .container-cell-customable-table[_ngcontent-%COMP%]{color:#090a3a80}.text-primary-blue[_ngcontent-%COMP%] .container-cell-customable-table[_ngcontent-%COMP%]{color:#090a3a}.text-primary-red[_ngcontent-%COMP%] .container-cell-customable-table[_ngcontent-%COMP%]{color:#f62741}.col-date[_ngcontent-%COMP%]{flex-direction:column;align-items:start;padding-left:20px;font-size:12px;line-height:14px}.col-course[_ngcontent-%COMP%] .col-course-col-1[_ngcontent-%COMP%]{padding-right:15px;padding-top:10px;padding-bottom:10px}.col-course[_ngcontent-%COMP%] .col-course-col-1[_ngcontent-%COMP%] .numreunion[_ngcontent-%COMP%]{font-family:Saira;font-size:14px;font-weight:700;line-height:22px}.col-course[_ngcontent-%COMP%] .col-course-col-2[_ngcontent-%COMP%] .libreunion-before[_ngcontent-%COMP%]{font-family:Saira;font-size:14px;font-weight:500;line-height:13px;margin-top:6px}.col-course[_ngcontent-%COMP%] .col-course-col-2[_ngcontent-%COMP%] .libcourse[_ngcontent-%COMP%]{font-family:Saira;font-size:14px;font-weight:700;line-height:13px}
1.col-course[_ngcontent-%COMP%] .col-course-col-2[_ngcontent-%COMP%] .disciplines[_ngcontent-%COMP%]{display:flex;align-items:center}.col-details[_ngcontent-%COMP%]{font-size:14px;line-height:16px}.col-event[_ngcontent-%COMP%]{flex-direction:column;align-items:end;font-size:12px;line-height:14px}@media (max-width: 767px){td[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}.details-mobile[_ngcontent-%COMP%]{padding:5px 0}.details-mobile[_ngcontent-%COMP%] app-score-social-prono-small[_ngcontent-%COMP%]{margin-top:5px}.col-date[_ngcontent-%COMP%], .col-event[_ngcontent-%COMP%]{height:100%;padding-top:15px}.col-date[_ngcontent-%COMP%]{padding-left:0}}.col-event[_ngcontent-%COMP%] app-reunion-tag[_ngcontent-%COMP%]{display:inline-block;vertical-align:super}app-score-social-prono-small[_ngcontent-%COMP%]{display:flex;margin-left:auto}.btn-red[_ngcontent-%COMP%]{font-family:Averta;background:#f62741;border-color:#f62741;color:#fff;font-size:12px;text-transform:initial;font-weight:700}.pari-type[_ngcontent-%COMP%]{max-width:100px}"]})}return n})();var Ye=l(8192),F=l(1444);const je=(n,s)=>({template:"tiny",article:n,last:s}),Ae=n=>({config:n});function Le(n,s){if(1&n&&(e.qex(0),e.nrm(1,"app-block-article-preview",3),e.bVm()),2&n){const t=s.$implicit,i=s.last;e.R7$(),e.Y8G("block",e.eq3(4,Ae,e.l_i(1,je,t,i)))}}function Ve(n,s){if(1&n&&(e.j41(0,"app-block-carousel",1),e.DNE(1,Le,2,6,"ng-container",2),e.k0s()),2&n){const t=e.XpG();e.Y8G("carouselId","carousel-articles-"+t.randomId)("navColor","light")("title",t.config.title)("titleTag","h2")("videos",t.articles)("nbElement",t.articles.length)("cardLimit",4),e.R7$(),e.Y8G("ngForOf",t.articles)}}let Ne=(()=>{class n{constructor(t){this.requestService=t,this.config=null,this.articles=[],this.randomId="",this.nbArticles=7}ngOnInit(){if(!this.config.tags?.length)return;this.randomId=this.makeid();const i={tags_and:this.config.tags.map(r=>r.translations.fr_FR.slug)};this.config.nbArticles&&(this.nbArticles=this.config.nbArticles-1);const o=`articles?filter=${JSON.stringify(i)}&range=[0,${this.nbArticles}]`;this.requestService.get(o).then(r=>{this.articles=r.map(a=>(a.thumbnail=this.getUrlImageArticle(a),a.publishAt=m.A.getPublishAt(a),a))}).catch(console.error)}getUrlImageArticle(t){let i="";return t.image_path&&(i="url('"+t.image_path+"')"),i}makeid(){let t="";for(let o=0;o<10;o++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(T.B))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-articles"]],inputs:{config:"config"},decls:1,vars:1,consts:[[3,"carouselId","navColor","title","titleTag","videos","nbElement","cardLimit",4,"ngIf"],[3,"carouselId","navColor","title","titleTag","videos","nbElement","cardLimit"],[4,"ngFor","ngForOf"],[3,"block"]],template:function(i,o){1&i&&e.DNE(0,Ve,2,8,"app-block-carousel",0),2&i&&e.Y8G("ngIf",null==o.articles?null:o.articles.length)},dependencies:[u.Sq,u.bT,Ye.R,F.j]})}return n})();var ze=l(1626),We=l(698);function Qe(n,s){if(1&n&&e.nrm(0,"app-evenement-card",1),2&n){const t=e.XpG();e.Y8G("event",t.event)("mode",t.event.mode)}}let Ke=(()=>{class n{constructor(t,i){this.requestService=t,this.isBrowser=i,this.config=null,this.event=null}ngOnInit(){this.isBrowser&&this.config.event_social_prono&&this.requestService.get(`${P.c.baseUrl.apiPerso}/evenements/${this.config.event_social_prono}`,this.getHeaders()).then(i=>{this.event=i,this.event.mode=(0,g.A)(this.event.end_date).isBefore((0,g.A)())?"after":(0,g.A)(this.event.start_date).isAfter((0,g.A)())?"before":"in_progress"}).catch(console.error)}getHeaders(){return new ze.Lr({"Content-Type":"application/json"})}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(T.B),e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-social-prono"]],inputs:{config:"config"},decls:1,vars:1,consts:[[3,"event","mode",4,"ngIf"],[3,"event","mode"]],template:function(i,o){1&i&&e.DNE(0,Qe,1,2,"app-evenement-card",0),2&i&&e.Y8G("ngIf",o.event)},dependencies:[u.bT,We.x]})}return n})();var Ze=l(4202);
1function Je(n,s){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-publicite-card",2),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("publicite",t.publicite.itemOne)}}function et(n,s){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-publicite-card",3)(2,"app-publicite-card",3),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("publicite",t.publicite.itemOne),e.R7$(),e.Y8G("publicite",t.publicite.itemTwo)}}function tt(n,s){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-publicite-card",4)(2,"app-publicite-card",5),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("publicite",t.publicite.itemOne),e.R7$(),e.Y8G("publicite",t.publicite.itemTwo)}}function nt(n,s){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-publicite-card",5)(2,"app-publicite-card",4),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("publicite",t.publicite.itemOne),e.R7$(),e.Y8G("publicite",t.publicite.itemTwo)}}function it(n,s){if(1&n&&(e.j41(0,"div",1),e.nrm(1,"app-publicite-card",5)(2,"app-publicite-card",5)(3,"app-publicite-card",5),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("publicite",t.publicite.itemOne),e.R7$(),e.Y8G("publicite",t.publicite.itemTwo),e.R7$(),e.Y8G("publicite",t.publicite.itemThree)}}let ot=(()=>{class n{constructor(){this.publicite=null}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-publicite"]],inputs:{publicite:"publicite"},decls:5,vars:5,consts:[["class","row mea",4,"ngIf"],[1,"row","mea"],[1,"col-md-12","col-sm-12",3,"publicite"],[1,"col-md-6","col-sm-6",3,"publicite"],[1,"col-md-8","col-sm-12",3,"publicite"],[1,"col-md-4","col-sm-12",3,"publicite"]],template:function(i,o){1&i&&e.DNE(0,Je,2,1,"div",0)(1,et,3,2,"div",0)(2,tt,3,2,"div",0)(3,nt,3,2,"div",0)(4,it,4,3,"div",0),2&i&&(e.Y8G("ngIf","one"===o.publicite.mode),e.R7$(),e.Y8G("ngIf","two"===o.publicite.mode),e.R7$(),e.Y8G("ngIf","two-one"===o.publicite.mode),e.R7$(),e.Y8G("ngIf","one-two"===o.publicite.mode),e.R7$(),e.Y8G("ngIf","three"===o.publicite.mode))},dependencies:[u.bT,Ze.n],styles:["[_nghost-%COMP%]{display:flex}img[_ngcontent-%COMP%]{border-radius:5px}a[_ngcontent-%COMP%]{margin:0 auto}"]})}return n})();var rt=l(3536);function st(n,s){if(1&n&&e.nrm(0,"app-block-homepage-slide-image",1),2&n){const t=e.XpG();e.Y8G("hidden",!1)("config",t.article)}}let at=(()=>{class n{constructor(t){this._requestService=t,this.config=null,this.article=null}ngOnChanges(){this.config?.article?.slug&&this._requestService.get(`fr_FR/articles/${this.config.article.slug}`).then(i=>{const o=i.translations.fr_FR,r=i.category.translations.fr_FR.slug,a=this.getImage(i);this.article={config:{image_url:a,preview:a,target:"self",titre:o.title,url_redirect:`/articles/${r}/${o.slug}`}}}).catch(console.error)}getImage(t){return t.image_path?t.image_path:""}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(T.B))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-article"]],inputs:{config:"config"},features:[e.OA$],decls:1,vars:1,consts:[[3,"hidden","config",4,"ngIf"],[3,"hidden","config"]],template:function(i,o){1&i&&e.DNE(0,st,1,2,"app-block-homepage-slide-image",0),2&i&&e.Y8G("ngIf",o.article)},dependencies:[u.bT,rt.J],styles:["[_nghost-%COMP%] app-block-homepage-slide-image>.slide-image>.slide-image__infos>.slide-image__infos__aside{background:linear-gradient(90deg,#090a3a 50%,#090a3a00 70%)}@media screen and (max-width: 768px){[_nghost-%COMP%] app-block-homepage-slide-image>.slide-image>.slide-image__infos>.slide-image__infos__aside{background:linear-gradient(90deg,#090a3a 60%,#090a3a00)}}"]})}return n})();var A=l(9190);const lt=n=>({course:n});function ct(n,s){if(1&n&&(e.j41(0,"div",2)(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.JRh(t.config.title)}}let pt=(()=>{class n{constructor(){this.course=null,this.config=null}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-replay"]],inputs:{course:"course",config:"config"},decls:2,vars:4,consts:[["class","line-title",4,"ngIf"],[3,"context"],[1,"line-title"]],template:function(i,o){1&i&&(e.DNE(0,ct,3,1,"div",0),e.nrm(1,"app-block-player-hexaglobe",1)),2&i&&(e.Y8G("ngIf",o.config.title),e.R7$(),e.Y8G("context",e.eq3(2,lt,o.course)))},dependencies:[u.bT,A.P],styles:[".line-title[_ngcontent-%COMP%]{display:flex;min-height:30px;justify-content:space-between;align-items:center;margin-bottom:15px}"]})}return n})();var W=l(8498);let ut=(()=>{class n{constructor(){this.config=null}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-direct"]],inputs:{config:"config"},decls:1,vars:0,template:function(i,o){1&i&&e.nrm(0,"app-block-live")},dependencies:[W.Z]})}return n})();var dt=l(7800),_t=l(4949),mt=l(4636);
1function ht(n,s){if(1&n){const t=e.RV6();e.j41(0,"app-partant-card",4),e.bIt("click",function(){const o=e.eBV(t).$implicit,r=e.XpG(3);return e.Njj(r.showPartant(o))}),e.k0s()}if(2&n){const t=s.$implicit,i=e.XpG(3);e.Y8G("partant",t)("imgUrl",i.configEnv.baseUrl.assets)("isGalop",i.isGalop)("mode",i.mode)("pariSimple",i.pariSimple)("isNoArrivee",i.noArrivee(t))}}function gt(n,s){if(1&n&&(e.qex(0),e.DNE(1,ht,1,6,"app-partant-card",3),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",t.course.partants)}}function ft(n,s){if(1&n&&(e.j41(0,"app-block-carousel",1),e.DNE(1,gt,2,1,"ng-container",2),e.k0s()),2&n){const t=e.XpG();e.Y8G("navColor","light")("title",t.config.title)("titleTag","h2")("videos",t.course.partants)("nbElement",t.course.partants.length)("cardLimit",3),e.R7$(),e.Y8G("ngForOf",t.course.partants)}}let vt=(()=>{class n{constructor(t,i,o){this._modalService=t,this._favoriteService=i,this._authService=o,this.config=null,this.course=null,this.pariSimple=null,this.isGalop=!1,this.mode="before",this.favoriteList=[],this.isLogged=!1}ngOnChanges(t){this.configEnv=P.c,t.course&&(this.isGalop=this.courseIsGalop(),this.mode=this.courseIsFinished()?"after":"before",this._authService.profile().then(()=>{this._authService.getUser()&&(this.isLogged=!0,this._favoriteService.getFavorites(this.course.partants).then(i=>{this.favoriteList=i}).catch(console.error))}).catch(()=>{}))}courseIsGalop(){return-1!==["Plat","Haies","Steeple Chase","Obstacle","Cross"].indexOf(this.course.discipline)}courseIsFinished(){return!!this.course.video_course_id||!(!this.course||!this.course.statut_course_id)&&this.course.statut_course_id>=10&&17!==this.course.statut_course_id}noArrivee(t){return"after"===this.mode?["NP","DAI","AR","DB","DX","RP","PG","TB"].includes(m.A.getArriveeWording(t)):"NP"===m.A.getArriveeWording(t)}showPartant(t){this._modalService.event.emit({type:"openModalPartant",slugCheval:t.cheval.slug,specialiteReunion:this.course.reunion.specialite_reunion,currentCourse:this.course,partant:t}),this._modalService.event.subscribe(i=>{"modal-close"===i.type&&!0===this.isLogged&&this._favoriteService.getFavorites(this.course.partants).then(o=>{this.favoriteList=o}).catch(console.error)}),this._modalService.listPartant=this.course.partants,this._modalService.pariSimple=this.pariSimple,this._modalService.currentNumPartant=t.num_partant,this._modalService.pariSimpleOff=this.pariSimple.OFF[t.num_partant],this._modalService.pariSimpleOn=this.pariSimple.ON[t.num_partant],this._modalService.favoriteList=this.favoriteList}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(dt.B),e.rXU(_t.U),e.rXU(z.u))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-casaques"]],inputs:{config:"config",course:"course",pariSimple:"pariSimple"},features:[e.OA$],decls:1,vars:1,consts:[["carouselId","course-partants",3,"navColor","title","titleTag","videos","nbElement","cardLimit",4,"ngIf"],["carouselId","course-partants",3,"navColor","title","titleTag","videos","nbElement","cardLimit"],[4,"ngFor","ngForOf"],[3,"partant","imgUrl","isGalop","mode","pariSimple","isNoArrivee","click",4,"ngFor","ngForOf"],[3,"click","partant","imgUrl","isGalop","mode","pariSimple","isNoArrivee"]],template:function(i,o){1&i&&e.DNE(0,ft,2,7,"app-block-carousel",0),2&i&&e.Y8G("ngIf",null==o.course||null==o.course.partants?null:o.course.partants.length)},dependencies:[u.Sq,u.bT,F.j,mt.Q]})}return n})();var X=l(72),H=l(9120),L=l(3740);
1function Ct(n,s){if(1&n&&e.nrm(0,"img",2),2&n){const t=e.XpG();e.Y8G("src",t.video().imagePath,e.B4B)}}let Q=(()=>{class n{constructor(){this.video=e.hFB.required()}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-editorial-content-card"]],inputs:{video:[e.Mj6.SignalBased,"video"]},decls:9,vars:3,consts:[[1,"course-card"],[1,"course-card--thumbnail"],["loading","lazy","alt","","width","215","height","120",3,"src"],[1,"material-icons","playable"],[1,"course-card--title"],[1,"course-card--details"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,Ct,1,1,"img",2),e.j41(3,"span",3),e.EFF(4,"play_circle_filled_white"),e.k0s()(),e.j41(5,"p",4),e.EFF(6),e.k0s(),e.j41(7,"p",5),e.EFF(8),e.k0s()()),2&i&&(e.R7$(2),e.vxM(2,o.video().imagePath?2:-1),e.R7$(4),e.SpI(" ",o.video().shortTitle," "),e.R7$(2),e.SpI(" ",o.video().subtitle," "))},styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}.course-card[_ngcontent-%COMP%]{cursor:pointer;display:block;padding-right:17px}.course-card--thumbnail[_ngcontent-%COMP%]{width:215px;height:120px;border-radius:5px;background-position:center;background-size:cover;margin-bottom:10px;position:relative;background-color:#dce1e7}.course-card--thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;object-fit:cover}.course-card--thumbnail[_ngcontent-%COMP%] .playable[_ngcontent-%COMP%]{position:absolute;color:#fff;max-width:33px;font-size:44px;top:calc(50% - 22px);right:calc(50% - 15px)}.course-card--duration[_ngcontent-%COMP%]{position:absolute;right:7px;bottom:7px;padding:7px;background:#0009;border-radius:5px;color:#fff}.course-card--title[_ngcontent-%COMP%]{font-family:Saira;font-style:normal;width:215px;font-weight:500;font-size:12px;line-height:19px;margin-bottom:0}.course-card--details[_ngcontent-%COMP%]{font-family:Averta;width:215px;font-size:10px;line-height:12px;margin-bottom:0}"]})}return n})();const bt=["scrollContainer"],yt=["*"];let Y=(()=>{class n{constructor(t){this._isBrowser=t,this.items=(0,e.hFB)([]),this._isDragging=!1,this._startX=0,this._startScrollLeft=0,this._isTouch=!1,this._hasMoved=!1,this._clickStartX=0,this._clickStartY=0,this._preventDragStart=i=>{i.preventDefault(),i.stopPropagation()},this._preventSelectStart=i=>{i.preventDefault(),i.stopPropagation()},this._handleTouchStart=i=>{if(!this._scrollContainer?.nativeElement)return;this._isTouch=!0,this._isDragging=!0,this._hasMoved=!1;const o=i.touches[0];this._startX=o.pageX-this._scrollContainer.nativeElement.offsetLeft,this._startScrollLeft=this._scrollContainer.nativeElement.scrollLeft,this._clickStartX=o.clientX,this._clickStartY=o.clientY},this._handleTouchMove=i=>{if(!this._isDragging||!this._scrollContainer?.nativeElement)return;i.preventDefault();const a=i.touches[0].pageX-this._scrollContainer.nativeElement.offsetLeft-this._startX;Math.abs(a)>5&&(this._hasMoved=!0),this._scrollContainer.nativeElement.scrollLeft=this._startScrollLeft-2*a},this._handleTouchEnd=i=>{if(i.changedTouches&&i.changedTouches.length>0){const o=i.changedTouches[0],r=Math.abs(o.clientX-this._clickStartX),a=Math.abs(o.clientY-this._clickStartY);(r>10||a>10||this._hasMoved)&&(this._hasMoved=!0,i.preventDefault())}this._isDragging=!1,this._isTouch=!1,setTimeout(()=>{this._hasMoved=!1},300)},this._handleMouseDown=i=>{this._scrollContainer?.nativeElement&&(i.preventDefault(),this._hasMoved=!1,this._isDragging=!0,this._startX=i.pageX-this._scrollContainer.nativeElement.offsetLeft,this._startScrollLeft=this._scrollContainer.nativeElement.scrollLeft,this._clickStartX=i.clientX,this._clickStartY=i.clientY,this._scrollContainer.nativeElement.style.cursor="grabbing",this._scrollContainer.nativeElement.style.userSelect="none")},this._handleMouseLeave=()=>{this._isDragging=!1,this._hasMoved=!1,this._scrollContainer?.nativeElement&&(this._scrollContainer.nativeElement.style.cursor="grab",this._scrollContainer.nativeElement.style.userSelect="")},this._handleClick=i=>{if(this._hasMoved)return i.preventDefault(),i.stopPropagation(),void i.stopImmediatePropagation();const o=Math.abs(i.clientX-this._clickStartX),r=Math.abs(i.clientY-this._clickStartY);(o>10||r>10)&&(i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation())},this._handleMouseUp=i=>{this._isDragging=!1,this._scrollContainer?.nativeElement&&(this._scrollContainer.nativeElement.style.cursor="grab",this._scrollContainer.nativeElement.style.userSelect="");const r=Math.abs(i.clientX-this._clickStartX),a=Math.abs(i.clientY-this._clickStartY);if(this._hasMoved||r>10||a>10)return i.preventDefault(),i.stopPropagation(),void setTimeout(()=>{this._hasMoved=!1},100);this._hasMoved=!1},this._handleMouseMove=i=>{if(!this._isDragging||!this._scrollContainer?.nativeElement)return;i.preventDefault();const r=i.pageX-this._scrollContainer.nativeElement.offsetLeft-this._startX;Math.abs(r)>5&&(this._hasMoved=!0),Math.abs(r)>3&&(this._scrollContainer.nativeElement.scrollLeft=this._startScrollLeft-2*r)},(0,e.QZP)(()=>{const i=this.items();this._isBrowser&&i?.length&&setTimeout(()=>{this._initSwipe()})})}ngOnInit(){this._isBrowser&&this._initSwipe()}ngOnDestroy(){this._removeEventListeners()}_initSwipe(){if(!this._scrollContainer?.nativeElement)return;const t=this._scrollContainer.nativeElement;this._disableDragOnChildren(t),t.addEventListener("dragstart",this._preventDragStart,!1),t.addEventListener("selectstart",this._preventSelectStart,!1),t.addEventListener("touchstart",this._handleTouchStart,{passive:!1}),t.addEventListener("touchmove",this._handleTouchMove,{passive:!1}),t.addEventListener("touchend",this._handleTouchEnd,{passive:!1}),t.addEventListener("mousedown",this._handleMouseDown),t.addEventListener("mouseleave",this._handleMouseLeave),t.addEventListener("mouseup",this._handleMouseUp),t.addEventListener("mousemove",this._handleMouseMove),t.addEventListener("click",this._handleClick,!0)}_disableDragOnChildren(t){t.querySelectorAll("img").forEach(r=>{r.draggable=!1,r.addEventListener("dragstart",this._preventDragStart,!1)}),t.querySelectorAll("*").forEach(r=>{r.draggable=!1,r.addEventListener("dragstart",this._preventDragStart,!1)})}_removeEventListeners(){if(!this._scrollContainer?.nativeElement)return;const t=this._scrollContainer.nativeElement;t.removeEventListener("dragstart",this._preventDragStart),t.removeEventListener("selectstart",this._preventSelectStart),t.removeEventListener("touchstart",this._handleTouchStart),t.removeEventListener("touchmove",this._handleTouchMove),t.removeEventListener("touchend",this._handleTouchEnd),t.removeEventListener("mousedown",this._handleMouseDown),t.removeEventListener("mouseleave",this._handleMouseLeave),t.removeEventListener("mouseup",this._handleMouseUp),t.removeEventListener("mousemove",this._handleMouseMove),t.removeEventListener("click",this._handleClick,!0)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-swipe-gallery"]],viewQuery:function(i,o){if(1&i&&e.GBs(bt,5),2&i){let r;e.mGM(r=e.lsd())&&(o._scrollContainer=r.first)}},inputs:{items:[e.Mj6.SignalBased,"items"]},standalone:!0,features:[e.aNF],ngContentSelectors:yt,decls:4,vars:0,consts:[["scrollC
1ontainer",""],[1,"swipe-gallery-container"],[1,"swipe-gallery-content"]],template:function(i,o){1&i&&(e.NAR(),e.j41(0,"div",1,0)(2,"div",2),e.SdG(3),e.k0s()())},dependencies:[u.MD],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}.swipe-gallery-container[_ngcontent-%COMP%]{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;cursor:grab;scrollbar-width:none;-ms-overflow-style:none;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-drag:none;user-drag:none}.swipe-gallery-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.swipe-gallery-container[_ngcontent-%COMP%]:active{cursor:grabbing}.swipe-gallery-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .swipe-gallery-container[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}.swipe-gallery-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:0;width:-moz-fit-content;width:fit-content;min-width:100%}.swipe-gallery-content[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-shrink:0}"]})}return n})();function xt(n,s){if(1&n&&(e.j41(0,"h2",3),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.BMQ("style",t.titleStyle(),e.$dS),e.R7$(),e.SpI(" ",t.title()," ")}}function Mt(n,s){if(1&n&&(e.j41(0,"p",4),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.BMQ("style",t.titleStyle(),e.$dS),e.R7$(),e.SpI(" ",t.subtitle()," ")}}function Pt(n,s){if(1&n&&(e.j41(0,"div",1),e.DNE(1,xt,2,2,"h2",3)(2,Mt,2,2,"p",4),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.vxM(1,t.title()?1:-1),e.R7$(),e.vxM(2,t.subtitle()?2:-1)}}function Ot(n,s){if(1&n&&(e.j41(0,"a",2),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.btnUrl(),e.B4B)("target",t.btnTarget()),e.BMQ("style",t.btnStyle(),e.$dS),e.R7$(),e.SpI(" ",t.btnWording()," ")}}function Et(n,s){if(1&n&&(e.j41(0,"div",0),e.DNE(1,Pt,3,2,"div",1)(2,Ot,2,4,"a",2),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.vxM(1,t.title()||t.subtitle()?1:-1),e.R7$(),e.vxM(2,t.btnWording()?2:-1)}}let q=(()=>{class n{constructor(){this.title=(0,e.hFB)(""),this.subtitle=(0,e.hFB)(null),this.btnWording=(0,e.hFB)(null),this.btnUrl=(0,e.hFB)(null),this.btnTarget=(0,e.hFB)("_self"),this.event=(0,e.hFB)(null),this.titleStyle=(0,e.EWP)(()=>{const t=this.event();return t?.global_font_color?`color: ${m.A.formatColor(t.global_font_color)} !important`:null}),this.btnStyle=(0,e.EWP)(()=>{const t=this.event();if(!t)return null;const i=[];return t.button_color&&i.push(`background-color: ${m.A.formatColor(t.button_color)} !important`),t.button_font_color&&i.push(`color: ${m.A.formatColor(t.button_font_color)} !important`),i.length?i.join("; "):null})}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-block-strate-header-btn"]],inputs:{title:[e.Mj6.SignalBased,"title"],subtitle:[e.Mj6.SignalBased,"subtitle"],btnWording:[e.Mj6.SignalBased,"btnWording"],btnUrl:[e.Mj6.SignalBased,"btnUrl"],btnTarget:[e.Mj6.SignalBased,"btnTarget"],event:[e.Mj6.SignalBased,"event"]},decls:1,vars:1,consts:[[1,"block-header"],[1,"block-header__titles"],[1,"block-header__btn","clickable",3,"href","target"],[1,"block-header__title"],[1,"block-header__subtitle"]],template:function(i,o){1&i&&e.DNE(0,Et,3,2,"div",0),2&i&&e.vxM(0,o.title()||o.subtitle()||o.btnWording()?0:-1)},styles:[".block-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.block-header__titles[_ngcontent-%COMP%]{display:flex;flex-direction:column}.block-header__title[_ngcontent-%COMP%]{font-family:Saira;font-weight:700;font-size:23px;margin:0;text-transform:uppercase}@media (max-width: 768px){.block-header__title[_ngcontent-%COMP%]{font-size:14px}}.block-header__subtitle[_ngcontent-%COMP%]{font-family:Averta;font-weight:400;font-size:12px;margin:0}.block-header__btn[_ngcontent-%COMP%]{font-family:Saira;font-weight:700;font-size:12px;line-height:1;text-decoration:none;text-transform:uppercase;padding:8px 16px;border-radius:50px}"]})}return n})();const K=(n,s)=>s.video_course_id||n,kt=(n,s)=>s.id,wt=(n,s)=>s.video_course_id||s.guid||n;
1function Tt(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"app-course-card",3),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showPlaylist(o,r))}),e.k0s()()}if(2&n){const t=s.$implicit;e.R7$(),e.Y8G("course",t)("redirect",!1)}}function $t(n,s){if(1&n&&(e.j41(0,"app-swipe-gallery",2),e.Z7z(1,Tt,2,2,"div",null,K),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("items",t.courses()),e.R7$(),e.Dyx(t.courses())}}function Rt(n,s){if(1&n&&e.nrm(0,"img",7),2&n){const t=e.XpG().$implicit;e.Y8G("src",t.imageUrl,e.B4B)("alt",t.title)}}function It(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",5),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showPlaylistEpisode(o,r))})("keydown.enter",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showPlaylistEpisode(o,r))})("keydown.space",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showPlaylistEpisode(o,r))}),e.j41(1,"div",6),e.DNE(2,Rt,1,2,"img",7),e.k0s(),e.j41(3,"p",8),e.EFF(4),e.k0s()()}if(2&n){const t=s.$implicit,i=e.XpG(3);e.BMQ("aria-label","Voir "+t.title),e.R7$(2),e.vxM(2,t.imageUrl?2:-1),e.R7$(),e.xc7("color",i.titleColor),e.R7$(),e.SpI(" ",t.title," ")}}function Gt(n,s){if(1&n&&(e.j41(0,"app-swipe-gallery",2),e.Z7z(1,It,5,5,"div",4,kt),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("items",t.episodes()),e.R7$(),e.Dyx(t.episodes())}}function St(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"app-course-card",3),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showPlaylist(o,r))}),e.k0s()()}if(2&n){const t=s.$implicit;e.R7$(),e.Y8G("course",t)("redirect",!1)}}function qt(n,s){if(1&n&&(e.j41(0,"app-swipe-gallery",2),e.Z7z(1,St,2,2,"div",null,K),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("items",t.courses()),e.R7$(),e.Dyx(t.courses())}}function Bt(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"app-course-card",3),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showPlaylist(o,r))}),e.k0s()()}if(2&n){const t=s.$implicit;e.R7$(),e.Y8G("course",t)("redirect",!1)}}function Ut(n,s){if(1&n&&(e.j41(0,"app-swipe-gallery",2),e.Z7z(1,Bt,2,2,"div",null,wt),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("items",t.courses()),e.R7$(),e.Dyx(t.courses())}}function Xt(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"app-editorial-content-card",9),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(3);return e.Njj(a.showEditorialVideo(o,r))}),e.k0s()()}if(2&n){const t=s.$implicit;e.R7$(),e.Y8G("video",t)}}function Dt(n,s){if(1&n&&(e.j41(0,"app-swipe-gallery",2),e.Z7z(1,Xt,2,1,"div",null,e.Vm6),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("items",t.editorialVideos()),e.R7$(),e.Dyx(t.editorialVideos())}}function Ft(n,s){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-block-strate-header-btn",1),e.DNE(2,$t,3,1)(3,Gt,3,1)(4,qt,3,1)(5,Ut,3,1)(6,Dt,3,1),e.k0s()),2&n){let t;const i=e.XpG();e.R7$(),e.Y8G("title",i.config.title)("subtitle",i.config.subtitle)("btnWording",i.config.btn_wording)("btnUrl",i.config.btn_url)("btnTarget",i.config.btn_target||"_self")("event",i.event),e.R7$(),e.vxM(2,(t=!0)==!(!i.isReplayMode()||!i.courses().length)?2:t===!(!i.isEpisodeMode()||!i.episodes().length)?3:t===!(!i.isHippodromeMode()||!i.courses().length)?4:t===!(!i.isCourseReferencesMode()||!i.courses().length)?5:t===!(!i.isEditorialContentsMode()||!i.editorialVideos().length)?6:-1)}}let Ht=(()=>{class n{constructor(t,i,o){this._popupService=t,this._requestService=i,this._isBrowser=o,this.config=null,this.event=null,this.minimalLayout=!1,this.courses=(0,e.vPA)([]),this.episodes=(0,e.vPA)([]),this.editorialVideos=(0,e.vPA)([]),this.randomId="",this.carouselOptions={infinite:!1,slidesToShow:1,variableWidth:!0,arrows:!1,draggable:!0},this.isReplayMode=(0,e.vPA)(!1),this.isEpisodeMode=(0,e.vPA)(!1),this.isHippodromeMode=(0,e.vPA)(!1),this.isEditorialContentsMode=(0,e.vPA)(!1),this.isCourseReferencesMode=(0,e.vPA)(!1),this.hasContent=(0,e.EWP)(()=>this.isReplayMode()&&this.courses().length||this.isEpisodeMode()&&this.episodes().length||this.isHippodromeMode()&&this.courses().length||this.isEditorialContentsMode()&&this.editorialVideos().length||this.isCourseReferencesMode()&&this.courses().length)}ngOnChanges(){this._refreshInterval&&(clearInterval(this._refreshInterval),this._refreshInterval=null),this.randomId=m.A.makeId();const t=this.config?.playlistType||"replay";if(this.isReplayMode.set("replay"===t),this.isEpisodeMode.set("episode"===t),this.isHippodromeMode.set("playlist-hippodrome"===t),this.isEditorialContentsMode.set("editorial-contents"===t),this.isCourseReferencesMode.set("course-references"===t),this.isReplayMode()){if(!this.config?.videos?.length)return;this._loadReplayVideos()}else if(this.isEpisodeMode()){if(!this.config?.episodes?.length)return;this._loadEpisodes()}else if(this.isHippodromeMode()){if(!this.config?.code||!this.config?.from||!this.config?.to)return;this._loadHippodromeCourses()}else if(this.isEditorialContentsMode()){if(!this.config?.videos?.length||!this.config?.categoriesEditorialContents?.length)return;this._loadEditorialVideos(),this._isBrowser&&(this._refreshInterval=setInterval(()=>{this._loadEditorialVideos()},3e5))}else this.isCourseReferencesMode()&&this._loadCourseReferences()}ngOnDestroy(){this._isBrowser&&this._refreshInterval&&clearInterval(this._refreshInterval)}_loadReplayVideos(){if(!this.config.videos?.length)return void this.courses.set([]);const t=[];for(const i of this.config.videos)i.dateReunion&&i.numReunion&&i.numCourse&&t.push(this._requestService.get(`v2/courses/${i.dateReunion}/R${i.numReunion}/C${i.numCourse}`));Promise.all(t).then(i=>{const o=i.map((r,a)=>{const d=this.config?.videos?.[a];return r&&{...r,title_overload:d?.title_overload||"",image_overload:d?.image_overload||""}});this.courses.set(o)}).catch(console.error)}
1_loadEpisodes(){const t=Array.isArray(this.config.episodes)?this.config.episodes:this._getEpisodesFromLegacyConfig(),i=[];let o=0;for(const r of t)r?.video?.name&&(i.push({id:`episode-${o}`,title:r.title_overload||r.name||"",imageUrl:r.image_overload||m.A.getEpisodeImageUrl(r),videoId:r.video?.name??null,episode:r}),o++);this.episodes.set(i)}_loadHippodromeCourses(){const t=(0,g.A)(this.config.from).format("YYYY-MM-DD"),i=(0,g.A)(this.config.to).format("YYYY-MM-DD");this._requestService.get(`v2/courses-hippodrome/${this.config.code}/${t}/${i}?range=[0,${this.config.limit?this.config.limit-1:9}]`).then(a=>{this.courses.set(a)}).catch(console.error)}_loadEditorialVideos(){const t=this.config.categoriesEditorialContents.map(r=>r.id).join(","),i=this.config.videos.map(r=>`${r.dateReunion}/R${r.numReunion}/C${r.numCourse}`).join(",");this._requestService.get(`${P.c.baseUrl.apiv2}/v2/editorial-contents?categories=${t}&races=${i}&items-per-page=50`).then(r=>{this.editorialVideos.set(r)}).catch(console.error)}_loadCourseReferences(){const t=this.config?.courseReferencesType||"last_runner_replay",i=this.config?.course_date,r=(this.config?.course_rxcy).match(/^R(\d+)C(\d+)$/i);if(!i||!r)return void this.courses.set([]);const a=parseInt(r[1],10),d=parseInt(r[2],10);this._requestService.get(`courses/${i}/R${a}/C${d}/references`).then(O=>{const w=O?.results||{},G=Array.isArray(w[t])?w[t]:[];for(const y of G)"last_runner_replay"===t?(y.video_course_nom=y.videoId,y.image_overload=y.image,y.libcourt_prix_course=y.title,y.subtitle=y.subtitle):(y.libcourt_prix_course=[y.reunion?.date_reunion||"",y.reunion?.lib_reunion||""].filter(Boolean).join(" - "),y.subtitle=y.reference_message||""),"references"===t&&(y.video_course_nom=y.video_id);this.courses.set(G)}).catch(O=>{console.error(O),this.courses.set([])})}showEditorialVideo(t,i){t&&(t.preventDefault(),t.stopPropagation()),this.minimalLayout?this._redirectToPlayer(i.videoId):this._popupService.showVideo(i.videoId,`${i.shortTitle} : ${i.subtitle}`)}_getEpisodesFromLegacyConfig(){const t=[];for(let i=1;i<=10;i++){const o=this.config["episode"+i];o?.video?.name&&t.push(o)}return t}showPlaylist(t,i){if(t&&(t.preventDefault(),t.stopPropagation()),this.minimalLayout)return void this._redirectToPlayer(i.video_course_nom);let o=this.courses().filter(G=>G.video_course_nom!==i.video_course_nom);o=[i,...o];const r=i;this._popupService.showPlaylist(o,`${r.reunion?.date_reunion??""} - R${r.reunion?.num_reunion??""}C${r.num_course_pmu??""} - ${r.reunion?.lib_reunion??""}`,r.guid)}showPlaylistEpisode(t,i){if(t&&(t.preventDefault(),t.stopPropagation()),i.videoId){if(this.minimalLayout)return void this._redirectToPlayer(i.videoId);this._popupService.showVideo(X.f.transform(i.videoId),i.title,void 0)}}get titleColor(){return m.A.formatColor(this.event?.global_font_color??"")}_redirectToPlayer(t){const i=this._getPlayerUrl(t);i&&(window.location.href=i)}_getPlayerUrl(t){return t?`${P.c.baseUrl.api}videos-store/player/${t}`:null}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(H.O),e.rXU(T.B),e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-playlist"]],inputs:{config:"config",event:"event",minimalLayout:"minimalLayout"},features:[e.OA$],decls:1,vars:1,consts:[[1,"playlist-wrapper"],[3,"title","subtitle","btnWording","btnUrl","btnTarget","event"],[3,"items"],[3,"click","course","redirect"],["role","button","tabindex","0",1,"playlist-episode-card"],["role","button","tabindex","0",1,"playlist-episode-card",3,"click","keydown.enter","keydown.space"],[1,"playlist-episode-card--thumbnail"],["loading","lazy","width","215","height","120",3,"src","alt"],[1,"playlist-episode-card--title"],[3,"click","video"]],template:function(i,o){1&i&&e.DNE(0,Ft,7,7,"div",0),2&i&&e.vxM(0,o.hasContent()?0:-1)},dependencies:[L.l,Q,Y,q],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}[_nghost-%COMP%]{display:block}[_nghost-%COMP%] app-course-card .playable, [_nghost-%COMP%] app-editorial-content-card .playable{display:none}[_nghost-%COMP%] app-course-card .course-card--thumbnail, [_nghost-%COMP%] app-editorial-content-card .course-card--thumbnail{border-radius:5px}[_nghost-%COMP%] app-course-card .course-card--thumbnail img, [_nghost-%COMP%] app-editorial-content-card .course-card--thumbnail img{border-radius:5px}.playlist-episode-card[_ngcontent-%COMP%]{cursor:pointer;display:block;padding-right:17px;flex-shrink:0}.playlist-episode-card--thumbnail[_ngcontent-%COMP%]{width:215px;height:120px;border-radius:5px;background-position:center;background-size:cover;margin-bottom:10px;position:relative;background-color:#dce1e7;overflow:hidden}.playlist-episode-card--thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%}.playlist-episode-card--title[_ngcontent-%COMP%]{font-family:Saira;font-style:normal;width:215px;font-weight:500;font-size:12px;line-height:19px;margin:0;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})}return n})();
1function Yt(n,s){if(1&n&&(e.j41(0,"p",9),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.title," ")}}function jt(n,s){if(1&n&&(e.j41(0,"p",10),e.EFF(1),e.k0s()),2&n){const t=e.XpG().$implicit;e.R7$(),e.SpI(" ",t.subtitle," ")}}function At(n,s){if(1&n&&(e.qex(0),e.j41(1,"a",3)(2,"div",4),e.nrm(3,"img",5),e.j41(4,"span",6),e.EFF(5,"play_circle_filled_white"),e.k0s()(),e.DNE(6,Yt,2,1,"p",7)(7,jt,2,1,"p",8),e.k0s(),e.bVm()),2&n){const t=s.$implicit;e.R7$(),e.BMQ("href",t.url_redirect,e.B4B),e.R7$(2),e.BMQ("src",t.url_image,e.B4B),e.R7$(3),e.Y8G("ngIf",t.title),e.R7$(),e.Y8G("ngIf",t.subtitle)}}function Lt(n,s){if(1&n&&(e.j41(0,"app-block-carousel",1),e.DNE(1,At,8,4,"ng-container",2),e.k0s()),2&n){const t=e.XpG();e.Y8G("carouselId","carousel-playlist-url-"+t.randomId)("navColor","light")("title",t.config.title)("titleTag","h2")("videos",t.config.videos)("nbElement",t.config.videos.length)("cardLimit",5),e.R7$(),e.Y8G("ngForOf",t.config.videos)}}let Vt=(()=>{class n{constructor(){this.config=null,this.randomId=""}ngOnChanges(){this.config.videos?.length&&(this.randomId=this.makeid())}makeid(){let t="";for(let o=0;o<10;o++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-playlist-url"]],inputs:{config:"config"},features:[e.OA$],decls:1,vars:1,consts:[[3,"carouselId","navColor","title","titleTag","videos","nbElement","cardLimit",4,"ngIf"],[3,"carouselId","navColor","title","titleTag","videos","nbElement","cardLimit"],[4,"ngFor","ngForOf"],["target","_blank",1,"course-card"],[1,"course-card--thumbnail"],["loading","lazy","alt","","width","215","height","120"],[1,"material-icons","playable"],["class","course-card--title",4,"ngIf"],["class","course-card--details",4,"ngIf"],[1,"course-card--title"],[1,"course-card--details"]],template:function(i,o){1&i&&e.DNE(0,Lt,2,8,"app-block-carousel",0),2&i&&e.Y8G("ngIf",null==o.config||null==o.config.videos?null:o.config.videos.length)},dependencies:[u.Sq,u.bT,F.j],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}.course-card[_ngcontent-%COMP%]{display:block;padding-right:17px}.course-card--thumbnail[_ngcontent-%COMP%]{width:215px;height:120px;border-radius:5px;background-position:center;background-size:cover;margin-bottom:10px;position:relative;background-color:#dce1e7}.course-card--thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;object-fit:cover}.course-card--thumbnail[_ngcontent-%COMP%] .playable[_ngcontent-%COMP%]{position:absolute;color:#fff;max-width:33px;font-size:44px;top:calc(50% - 22px);right:calc(50% - 15px)}.course-card--title[_ngcontent-%COMP%]{font-family:Saira;font-style:normal;width:215px;font-weight:500;font-size:12px;line-height:19px;margin-bottom:0}.course-card--details[_ngcontent-%COMP%]{font-family:Averta;width:215px;font-size:10px;line-height:12px;margin-bottom:0}"]})}return n})();function Nt(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"app-course-card",3),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.showPlaylist(o,r))}),e.k0s()()}if(2&n){const t=s.$implicit;e.R7$(),e.Y8G("course",t)("redirect",!1)}}function zt(n,s){if(1&n&&(e.j41(0,"app-block-carousel",1),e.DNE(1,Nt,2,2,"div",2),e.k0s()),2&n){const t=e.XpG();e.Y8G("carouselId","carousel-playlist-"+t.randomId)("navColor","light")("title",t.config.title)("titleTag","h2")("videos",t.courses)("nbElement",t.courses.length)("cardLimit",5),e.R7$(),e.Y8G("ngForOf",t.courses)}}let Wt=(()=>{class n{constructor(t,i){this._popupService=t,this._requestService=i,this.config=null,this.courses=[],this.randomId=""}ngOnChanges(){if(!this.config.code||!this.config.from||!this.config.to)return;this.randomId=m.A.makeId();const t=(0,g.A)(this.config.from).format("YYYY-MM-DD"),i=(0,g.A)(this.config.to).format("YYYY-MM-DD");this._requestService.get(`v2/courses-hippodrome/${this.config.code}/${t}/${i}?range=[0,${this.config.limit?this.config.limit-1:9}]`).then(a=>{this.courses=a}).catch(console.error)}showPlaylist(t,i){t&&(t.preventDefault(),t.stopPropagation());let o=this.courses.filter(w=>w.video_course_nom!==i.video_course_nom);o=[i,...o],this._popupService.showPlaylist(o,`${i.reunion.date_reunion} - R${i.reunion.num_reunion}C${i.num_course_pmu} - ${i.reunion.lib_reunion}`,i.guid)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(H.O),e.rXU(T.B))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-playlist-hippodrome"]],inputs:{config:"config"},features:[e.OA$],decls:1,vars:1,consts:[[3,"carouselId","navColor","title","titleTag","videos","nbElement","cardLimit",4,"ngIf"],[3,"carouselId","navColor","title","titleTag","videos","nbElement","cardLimit"],[4,"ngFor","ngForOf"],[3,"click","course","redirect"]],template:function(i,o){1&i&&e.DNE(0,zt,2,8,"app-block-carousel",0),2&i&&e.Y8G("ngIf",null==o.courses?null:o.courses.length)},dependencies:[u.Sq,u.bT,F.j,L.l]})}return n})();var Qt=l(467);
1function Kt(n,s){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"app-editorial-content-card",3),e.bIt("click",function(o){const r=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.showVideo(o,r))}),e.k0s()()}if(2&n){const t=s.$implicit;e.R7$(),e.Y8G("video",t)}}function Zt(n,s){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-block-strate-header-btn",1),e.j41(2,"app-swipe-gallery",2),e.Z7z(3,Kt,2,1,"div",null,e.Vm6),e.k0s()()),2&n){const t=e.XpG();e.R7$(),e.Y8G("title",t.config.title)("subtitle",t.config.subtitle)("btnWording",t.config.btn_wording)("btnUrl",t.config.btn_url)("btnTarget",t.config.btn_target||"_self")("event",t.event),e.R7$(),e.Y8G("items",t.videos),e.R7$(),e.Dyx(t.videos)}}let Jt=(()=>{class n{constructor(t,i,o){this._isBrowser=t,this._popupService=i,this._requestService=o,this.config=null,this.event=null,this.minimalLayout=!1,this.videos=[],this.randomId="",this.carouselOptions={infinite:!1,slidesToShow:1,variableWidth:!0,arrows:!1,draggable:!0}}ngOnChanges(){var t=this;return(0,Qt.A)(function*(){t.config.videos?.length&&(t.randomId=m.A.makeId(),t._getVideos(),t._isBrowser&&(t._refreshInterval=setInterval(()=>{t._getVideos()},3e5)))})()}ngOnDestroy(){this._isBrowser&&this._refreshInterval&&clearInterval(this._refreshInterval)}showVideo(t,i){t&&(t.preventDefault(),t.stopPropagation()),this.minimalLayout?this._redirectToPlayer(i?.videoId):this._popupService.showVideo(i.videoId,`${i.shortTitle} : ${i.subtitle}`)}_getVideos(){const t=this.config.categoriesEditorialContents.map(r=>r.id).join(","),i=this.config.videos.map(r=>`${r.dateReunion}/R${r.numReunion}/C${r.numCourse}`).join(",");this._requestService.get(`${P.c.baseUrl.apiv2}/v2/editorial-contents?categories=${t}&races=${i}&items-per-page=50`).then(r=>{this.videos=r}).catch(r=>{console.error(r)})}_redirectToPlayer(t){window.location.href=this._getPlayerUrl(t)}_getPlayerUrl(t){return`${P.c.baseUrl.api}videos-store/player/${t}`}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU("isBrowser"),e.rXU(H.O),e.rXU(T.B))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-editorial-contents"]],inputs:{config:"config",event:"event",minimalLayout:"minimalLayout"},features:[e.OA$],decls:1,vars:1,consts:[[1,"editorial-contents-wrapper"],[3,"title","subtitle","btnWording","btnUrl","btnTarget","event"],[3,"items"],[3,"click","video"]],template:function(i,o){1&i&&e.DNE(0,Zt,5,7,"div",0),2&i&&e.vxM(0,null!=o.videos&&o.videos.length?0:-1)},dependencies:[Q,Y,q],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] app-editorial-content-card .playable{display:none}[_nghost-%COMP%] app-editorial-content-card .course-card--thumbnail{border-radius:5px}[_nghost-%COMP%] app-editorial-content-card .course-card--thumbnail img{border-radius:5px}"]})}return n})();var en=l(1908);const Z=n=>({course:n});function tn(n,s){if(1&n&&(e.j41(0,"a",4),e.nrm(1,"app-hexaglobe",5),e.nI1(2,"myNoExtension"),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.getEpisodePlayerUrl(),e.B4B),e.R7$(),e.Y8G("idVideo",e.bMT(2,3,t.config().episodeProgrammation.video.name))("titleVideo",t.config().playerTitle)}}function nn(n,s){if(1&n&&(e.nrm(0,"app-hexaglobe",5),e.nI1(1,"myNoExtension")),2&n){const t=e.XpG(2);e.Y8G("idVideo",e.bMT(1,2,t.config().episodeProgrammation.video.name))("titleVideo",t.config().playerTitle)}}function on(n,s){if(1&n&&e.DNE(0,tn,3,5,"a",4)(1,nn,2,4),2&n){const t=e.XpG();e.vxM(0,t.isMinimalLayoutMode()?0:1)}}function rn(n,s){if(1&n&&(e.j41(0,"a",6),e.nrm(1,"app-block-player-hexaglobe",7),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.getReplayPlayerUrl(),e.B4B),e.R7$(),e.Y8G("context",e.eq3(2,Z,t.course()))}}function sn(n,s){if(1&n&&e.nrm(0,"app-block-player-hexaglobe",7),2&n){const t=e.XpG(2);e.Y8G("context",e.eq3(1,Z,t.course()))}}function an(n,s){if(1&n&&e.DNE(0,rn,2,4,"a",6)(1,sn,1,3),2&n){const t=e.XpG();e.vxM(0,t.isMinimalLayoutMode()?0:1)}}function ln(n,s){if(1&n&&(e.j41(0,"a",8),e.nrm(1,"app-block-live",9),e.k0s()),2&n){let t;const i=e.XpG(2);e.Y8G("href",i.getLivePlayerUrl(),e.B4B),e.R7$(),e.Y8G("fluxUrl",null==(t=i.config())?null:t.liveConfig)}}function cn(n,s){if(1&n&&e.nrm(0,"app-block-live",9),2&n){let t;const i=e.XpG(2);e.Y8G("fluxUrl",null==(t=i.config())?null:t.liveConfig)}}function pn(n,s){if(1&n&&e.DNE(0,ln,2,2,"a",8)(1,cn,1,1),2&n){const t=e.XpG();e.vxM(0,t.isMinimalLayoutMode()?0:1)}}function un(n,s){if(1&n&&(e.j41(0,"a",4),e.nrm(1,"app-hexaglobe",5),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("href",t.getEditorialContentPlayerUrl(),e.B4B),e.R7$(),e.Y8G("idVideo",t.config().editorialcontentConfig)("titleVideo",t.config().playerTitle)}}function dn(n,s){if(1&n&&e.nrm(0,"app-hexaglobe",5),2&n){const t=e.XpG(2);e.Y8G("idVideo",t.config().editorialcontentConfig)("titleVideo",t.config().playerTitle)}}function _n(n,s){if(1&n&&e.DNE(0,un,2,3,"a",4)(1,dn,1,2),2&n){const t=e.XpG();e.vxM(0,t.isMinimalLayoutMode()?0:1)}}function mn(n,s){if(1&n&&e.nrm(0,"img",12),2&n){const t=e.XpG(2);e.Y8G("src",t.config().playerLogo,e.B4B)}}function hn(n,s){if(1&n&&(e.j41(0,"h3",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.config().titleOnPlayer," ")}}function gn(n,s){if(1&n&&(e.j41(0,"div",10)(1,"div",11),e.DNE(2,mn,1,1,"img",12)(3,hn,2,1,"h3",13),e.k0s()()),2&n){let t,i;const o=e.XpG();e.AVh("hidden",!o.showOverlay()),e.R7$(2),e.vxM(2,null!=(t=o.config())&&t.playerLogo?2:-1),e.R7$(),e.vxM(3,null!=(i=o.config())&&i.titleOnPlayer?3:-1)}}let fn=(()=>{class n{constructor(t,i,o,r){this._requestService=t,this._elementRef=i,this._minimalLayoutModeService=o,this._isBrowser=r,this.config=(0,e.hFB
1)(null),this.event=(0,e.hFB)(null),this.course=(0,e.vPA)(null),this.showOverlay=(0,e.vPA)(!0),this.isEpisode=(0,e.EWP)(()=>"episode"===this.config()?.playerType),this.isReplay=(0,e.EWP)(()=>"replay"===this.config()?.playerType),this.isLive=(0,e.EWP)(()=>this.hasWaited()&&"live"===this.config()?.playerType),this.isEditorialcontent=(0,e.EWP)(()=>"editorialcontent"===this.config()?.playerType),this.hasOverlayContent=(0,e.EWP)(()=>{const a=this.config();return a?.playerTitle||a?.playerSubtitle||a?.playerLogo}),this.hasWaited=(0,e.vPA)(!1)}ngOnInit(){this._isBrowser&&setTimeout(()=>{this.hasWaited.set(!0)},200);const t=this.config();t&&("replay"===t.playerType&&t.replayDateReunion&&this.fetchReplayCourse(),this._isBrowser&&this.listenToVideoPlay())}ngOnDestroy(){this.checkInterval&&clearInterval(this.checkInterval)}isMinimalLayoutMode(){return this._minimalLayoutModeService.isMinimalMode()}getEpisodePlayerUrl(){const t=this.config()?.episodeProgrammation?.video?.name;return this._getVideoPlayerUrl(t)}getReplayPlayerUrl(){const t=this.course()?.video_course_nom;return this._getVideoPlayerUrl(t)}getEditorialContentPlayerUrl(){const t=this.config()?.editorialcontentConfig;return this._getVideoPlayerUrl(t)}getLivePlayerUrl(){const t=this.config()?.liveConfig||"live2";return`${P.c.baseUrl.api}racing/directs/${t}/hls`}_getVideoPlayerUrl(t){return t?`${P.c.baseUrl.api}videos-store/player/${X.f.transform(t)}`:""}listenToVideoPlay(){this.checkInterval=setInterval(()=>{const t=this._elementRef.nativeElement.querySelector("video");t&&!this.videoPlayListener&&(this.videoPlayListener=()=>{this.showOverlay.set(!1)},t.addEventListener("play",this.videoPlayListener),clearInterval(this.checkInterval))},500)}fetchReplayCourse(){const t=this.config(),{replayDateReunion:i,replayNumReunion:o,replayNumCourse:r}=t;this._requestService.get(`courses/${i}/R${o}/C${r}`).then(d=>{d&&this.course.set(d)}).catch(console.error)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(T.B),e.rXU(e.aKT),e.rXU(U.U),e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-featured-player"]],inputs:{config:[e.Mj6.SignalBased,"config"],event:[e.Mj6.SignalBased,"event"]},decls:8,vars:8,consts:[[1,"container"],[3,"title","subtitle","event"],[1,"featured-player-container"],[1,"featured-player-overlay",3,"hidden"],["aria-label","Voir la vid\xe9o",1,"featured-player-link",3,"href"],[3,"idVideo","titleVideo"],["aria-label","Voir le replay",1,"featured-player-link",3,"href"],[3,"context"],["aria-label","Voir le direct",1,"featured-player-link",3,"href"],[3,"fluxUrl"],[1,"featured-player-overlay"],[1,"overlay-content"],["alt","Logo",1,"overlay-logo",3,"src"],[1,"overlay-title"]],template:function(i,o){if(1&i&&(e.j41(0,"div",0),e.nrm(1,"app-block-strate-header-btn",1),e.k0s(),e.j41(2,"div",2),e.DNE(3,on,2,1)(4,an,2,1)(5,pn,2,1)(6,_n,2,1)(7,gn,4,4,"div",3),e.k0s()),2&i){let r,a;e.R7$(),e.Y8G("title",o.config().playerTitle||"")("subtitle",o.config().playerSubtitle||null)("event",o.event()),e.R7$(2),e.vxM(3,o.isEpisode()&&null!=(r=o.config())&&null!=r.episodeProgrammation&&null!=r.episodeProgrammation.video&&r.episodeProgrammation.video.name?3:-1),e.R7$(),e.vxM(4,o.isReplay()&&o.course()?4:-1),e.R7$(),e.vxM(5,o.isLive()?5:-1),e.R7$(),e.vxM(6,o.isEditorialcontent()&&null!=(a=o.config())&&a.editorialcontentConfig?6:-1),e.R7$(),e.vxM(7,o.hasOverlayContent()?7:-1)}},dependencies:[W.Z,A.P,en.V,q,X.f],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}[_nghost-%COMP%]{display:block;width:100vw;margin-left:calc(-50vw + 50%);overflow-x:clip}.featured-player-container[_ngcontent-%COMP%]{position:relative;width:100%;margin-bottom:20px;aspect-ratio:16/9;min-height:56.25vw}.featured-player-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-start;padding:20px;background:radial-gradient(ellipse at center,#0009,#0000004d 50%,#0000 80%);pointer-events:none;transition:opacity .8s ease-out}.featured-player-overlay.hidden[_ngcontent-%COMP%]{opacity:0}.overlay-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:left;gap:10px;max-width:80%;margin:0 0 20px}@media (min-width: 768px){.overlay-content[_ngcontent-%COMP%]{margin:0 0 50px 20px;text-align:center}}.overlay-logo[_ngcontent-%COMP%]{max-width:120px;max-height:40px;object-fit:contain;margin-bottom:8px}@media (min-width: 768px){.overlay-logo[_ngcontent-%COMP%]{max-width:160px;max-height:50px}}.overlay-title[_ngcontent-%COMP%]{font-family:Saira;font-weight:700;font-size:14px;line-height:19px;color:#fff;margin:0;text-transform:uppercase;text-shadow:0 2px 4px rgba(0,0,0,.5)}@media (min-width: 768px){.overlay-title[_ngcontent-%COMP%]{font-size:24px}}@media (min-width: 1200px){.overlay-title[_ngcontent-%COMP%]{font-size:28px}}.overlay-subtitle[_ngcontent-%COMP%]{font-family:Averta;font-weight:400;font-size:10px;line-height:1.3;color:#ffffffe6;margin:0;text-shadow:0 1px 3px rgba(0,0,0,.5)}@media (min-width: 768px){.overlay-subtitle[_ngcontent-%COMP%]{font-size:16px}}@media (min-width: 1200px){.overlay-subtitle[_ngcontent-%COMP%]{font-size:18px}}[_nghost-%COMP%] app-hexaglobe, [_nghost-%COMP%] app-block-player-hexaglobe, [_nghost-%COMP%] app-block-live{display:block;width:100%}[_nghost-%COMP%] app-hexaglobe>div, [_nghost-%COMP%] app-block-player-hexaglobe>div, [_nghost-%COMP%] app-block-live>div{width:100%}"]})}return n})();var J=l(1413);const vn=(n,s)=>s.video_course_id,Cn=n=>({course:n});function bn(n,s){if(1&n&&(e.j41(0,"a",3),e.nrm(1,"app-course-card",4),e.k0s()),2&n){const t=e.XpG(3);e.Y8G("href",t.getCourseVideoPlayerUrl(t.lastQuinteCourse),e.B4B),e.BMQ("aria-label","Voir le replay de la course"),e.R7$(),e.Y8G("course",t.lastQuinteCourse)("redirect",!1)}}function yn(n,s){if(1&n&&(e.j41(0,"div",5),e.nrm(1,"app-block-player-hexaglobe",6),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("context",e.eq3(1,Cn,t.lastQuinteCourse))}}function xn(n,s){if(1&n&&e.DNE(0,bn,2,4,"a",3)(1,yn,2,3),2&n){const t=e.XpG(2);e.vxM(0,t.isMinimalLayoutMode()?0:1)}}function Mn(n,s){if(1&n&&(e.j41(0,"a",7),e.nrm(1,"app-course-card",4),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(3);e.Y8G("href",i.getCourseVideoPlayerUrl(t),e.B4B),e.BMQ("aria-label","Voir la vid\xe9o de la course"),e.R7$(),e.Y8G("course",t)("redirect",!1)}}function Pn(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",8),e.bIt("click",function(o){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(3);return e.Njj(a.showVideo(o,r))}),e.nrm(1,"app-course-card",4),e.k0s()}if(2&n){const t=e.XpG().$implicit;e.R7$(),e.Y8G("course",t)("redirect",!1)}}function On(n,s){if(1&n&&e.DNE(0,Mn,2,4,"a",7)(1,Pn,2,2),2&n){const t=e.XpG(3);e.vxM(0,t.isMinimalLayoutMode()?0:1)}}function En(n,s){if(1&n&&(e.j41(0,"app-swipe-gallery",2),e.Z7z(1,On,2,1,null,null,vn),e.k0s()),2&n){const t=e.XpG(2);e.Y8G("items",t.courses),e.R7$(),e.Dyx(t.courses)}}function kn(n,s){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-block-strate-header-btn",1),e.DNE(2,xn,2,1)(3,En,3,1,"app-swipe-gallery",2),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("title",t.config.title||"")("subtitle",t.config.subtitle||null)("btnWording",t.config.btn_wording||null)("btnUrl",t.config.btn_url||null)("btnTarget",t.config.btn_target||"_self")("event",t.event),e.R7$(),e.vxM(2,t.lastQuinteCourse?2:-1),e.R7$(),e.vxM(3,null!=t.courses&&t.courses.length?3:-1)}}let wn=(()=>{class n{constructor(t,i,o,r){this._requestService=t,this._popupService=i,this._minimalLayoutModeService=o,this.isBrowser=r,this.config=null,this.event=null,this.lastQuinteCourse=null,this.courses=[],this.randomId="",this.carouselOptions={infinite:!1,slidesToShow:1,variableWidth:!0,arrows:!1,draggable:!0},this._destroy$=new J.B}ngOnInit(){this.config&&(this.randomId=m.A.makeId(),this._loadData())}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}isMinimalLayoutMode(){return this._minimalLayoutModeService.isMinimalMode()}getCourseVideoPlayerUrl(t){const i=this._getCourseVideoId(t);return i?`${P.c.baseUrl.api}videos-store/player/${i}`:""}_getCourseVideoId(t){return X.f.transform(t.video_course_nom||t.video_course_id||"")}showVideo(t,i){t&&(t.preventDefault(),t.stopPropagation());const o=this._getCourseVideoId(i);o?this._popupService.showVideo(o):console.log("Pas de video_course_id sur cette c
1ourse")}_loadData(){const t=[];this.config?.filterPremium&&t.push("premium=true"),this.config?.filterPmh&&t.push("pmh=true"),this.config?.filterTrot&&t.push("trot=true"),this.config?.filterGalop&&t.push("galop=true"),this.config?.filterQuinte&&t.push("quinte=true"),this.config?.filterHighlight&&t.push("highlight=true"),t.push(`limit=${this.config?.pagination||10}`);const o=`last-quintes?${t.join("&")}`;this._requestService.get(o).then(r=>{r?.quinte&&(this.lastQuinteCourse=r.quinte),r?.courses&&(this.courses=r.courses)}).catch(r=>{console.error("Erreur lors du chargement des derniers quint\xe9s:",r)})}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(T.B),e.rXU(H.O),e.rXU(U.U),e.rXU("isBrowser"))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-derniers-quintes"]],inputs:{config:"config",event:"event"},decls:1,vars:1,consts:[[1,"derniers-quintes-wrapper"],[3,"title","subtitle","btnWording","btnUrl","btnTarget","event"],[1,"courses-carousel",3,"items"],[1,"last-quinte-card-link",3,"href"],[3,"course","redirect"],[1,"video-container"],[3,"context"],[1,"course-card-link",3,"href"],[3,"click"]],template:function(i,o){1&i&&e.DNE(0,kn,4,8,"div",0),2&i&&e.vxM(0,o.config&&(o.lastQuinteCourse||null!=o.courses&&o.courses.length)?0:-1)},dependencies:[A.P,L.l,Y,q],styles:[".derniers-quintes-wrapper[_ngcontent-%COMP%]{margin-bottom:2rem}.derniers-quintes-wrapper[_ngcontent-%COMP%] .video-container[_ngcontent-%COMP%]{margin-bottom:20px;display:block}.derniers-quintes-wrapper[_ngcontent-%COMP%] .last-quinte-card-link[_ngcontent-%COMP%]{display:block;margin-bottom:20px}.derniers-quintes-wrapper[_ngcontent-%COMP%] .video-container[_ngcontent-%COMP%] + .courses-carousel[_ngcontent-%COMP%]{margin-top:20px!important}.derniers-quintes-wrapper[_ngcontent-%COMP%] .courses-carousel[_ngcontent-%COMP%]{display:block}.derniers-quintes-wrapper[_ngcontent-%COMP%] app-block-player-hexaglobe>div{border-radius:5px;overflow:hidden}.derniers-quintes-wrapper[_ngcontent-%COMP%] app-block-player-hexaglobe app-hexaglobe>div{border-radius:5px;overflow:hidden}.derniers-quintes-wrapper[_ngcontent-%COMP%] app-block-player-hexaglobe app-hexaglobe iframe, .derniers-quintes-wrapper[_ngcontent-%COMP%] app-block-player-hexaglobe app-hexaglobe video{border-radius:5px}.derniers-quintes-wrapper[_ngcontent-%COMP%] .last-quinte-card-link app-course-card{display:block}.derniers-quintes-wrapper[_ngcontent-%COMP%] .last-quinte-card-link app-course-card .course-card{padding-right:0;width:100%}.derniers-quintes-wrapper[_ngcontent-%COMP%] .last-quinte-card-link app-course-card .course-card--thumbnail{aspect-ratio:16/9;height:auto;width:100%}.derniers-quintes-wrapper[_ngcontent-%COMP%] .last-quinte-card-link app-course-card .course-card--title, .derniers-quintes-wrapper[_ngcontent-%COMP%] .last-quinte-card-link app-course-card .course-card--details{width:100%}.derniers-quintes-wrapper[_ngcontent-%COMP%] app-course-card .playable{display:none}.derniers-quintes-wrapper[_ngcontent-%COMP%] app-course-card .course-card--thumbnail{border-radius:5px}.derniers-quintes-wrapper[_ngcontent-%COMP%] app-course-card .course-card--thumbnail img{border-radius:5px}"]})}return n})();function Tn(n,s){if(1&n&&(e.j41(0,"a",3)(1,"div",4),e.nrm(2,"img",5),e.k0s()()),2&n){const t=s.$implicit,i=e.XpG(2);e.Y8G("href",i.getRedirectUrl(t.bannerUrl),e.B4B)("target",t.bannerTarget||"_blank"),e.R7$(2),e.Y8G("src",t.bannerImage,e.B4B)("alt",t.bannerAlt)}}function $n(n,s){if(1&n&&(e.nrm(0,"app-block-strate-header-btn",0),e.j41(1,"div",1)(2,"app-block-carousel",2),e.Z7z(3,Tn,3,4,"a",3,e.Vm6),e.k0s()()),2&n){const t=e.XpG();e.Y8G("title",t.config.strateTitle||"")("subtitle",t.config.subtitle||null)("event",t.event),e.R7$(2),e.Y8G("carouselId","banners-9-16-"+t.randomId)("navColor","light")("noNav",!0)("videos",t.config.banners)("nbElement",t.config.banners.length)("cardLimit",3)("options",t.carouselOptions),e.R7$(),e.Dyx(t.config.banners)}}let Rn=(()=>{class n{constructor(t){this._minimalLayoutModeService=t,this.config=null,this.event=null,this.randomId="",this.carouselOptions={infinite:!1,slidesToShow:1,variableWidth:!0,arrows:!1,draggable:!0}}getRedirectUrl(t){if(!t||!this._minimalLayoutModeService.isMinimalMode())return t||"";const[i,o=""]=t.split("#"),r=i.includes("?")?"&":"?";return new URLSearchParams(i.split("?")[1]||"").has("app")?t:`${i}${r}app=1${o?`#${o}`:""}`}ngOnInit(){this.randomId=m.A.makeId()}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(U.U))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-banner-9-16"]],inputs:{config:"config",event:"event"},decls:1,vars:1,consts:[[3,"title","subtitle","event"],[1,"banners-container"],[1,"courses-carousel",3,"carouselId","navColor","noNav","videos","nbElement","cardLimit","options"],[1,"banner",3,"href","target"],[1,"banner__image"],["loading","lazy",3,"src","alt"]],template:function(i,o){1&i&&e.DNE(0,$n,5,10),2&i&&e.vxM(0,null!=o.config&&null!=o.config.banners&&o.config.banners.length?0:-1)},dependencies:[F.j,q],styles:[".banner[_ngcontent-%COMP%]{margin-right:10px}.banner__image[_ngcontent-%COMP%]{width:100%;flex-shrink:0}.banner__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40vw;height:auto;object-fit:contain;display:block;border-radius:5px}@media (min-width: 767px){.banner__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:19vw}}@media (min-width: 1600px){.banner__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:12vw}}@media (min-width: 2100px){.banner__image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:10vw}}"]})}return n})();var In=l(1994);const Gn=(n,s)=>s.id;function Sn(n,s){if(1&n&&e.nrm(0,"app-block-strate-header-btn",1),2&n){const t=e.XpG(2);e.Y8G("title",t.config.playerTitle)("subtitle",null)("btnWording",t.config.btn_wording)("bt
1nUrl",t.config.btn_url)("btnTarget","_self")("event",t.event)}}function qn(n,s){if(1&n&&e.nrm(0,"img",5),2&n){const t=e.XpG(2).$implicit;e.Y8G("src",t.imageUrl,e.B4B)("alt",t.title)}}function Bn(n,s){if(1&n&&(e.j41(0,"div",7)(1,"span",8),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.xc7("color",i.titleColor),e.R7$(2),e.SpI(" ",t.title," ")}}function Un(n,s){if(1&n&&(e.j41(0,"a",3)(1,"div",4),e.DNE(2,qn,1,2,"img",5),e.k0s(),e.DNE(3,Bn,3,3,"div",6),e.k0s()),2&n){const t=e.XpG(),i=t.$implicit,o=t.$index,r=e.XpG(2);e.AVh("featured",r.isFeatured(o))("multi-row",r.isMultiRow(o))("item-card--replay",i.isReplay),e.Y8G("href",r.getVideoPlayerUrl(i),e.B4B),e.BMQ("aria-label","Voir "+i.title),e.R7$(2),e.vxM(2,i.imageUrl?2:-1),e.R7$(),e.vxM(3,i.display_title&&i.title||i.isReplay?3:-1)}}function Xn(n,s){if(1&n&&e.nrm(0,"img",5),2&n){const t=e.XpG(2).$implicit;e.Y8G("src",t.imageUrl,e.B4B)("alt",t.title)}}function Dn(n,s){if(1&n&&(e.j41(0,"div",7)(1,"span",8),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(2).$implicit,i=e.XpG(2);e.xc7("color",i.titleColor),e.R7$(2),e.SpI(" ",t.title," ")}}function Fn(n,s){if(1&n){const t=e.RV6();e.j41(0,"div",9),e.bIt("click",function(o){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.onItemClick(o,r))})("keydown.enter",function(o){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.onItemClick(o,r))})("keydown.space",function(o){e.eBV(t);const r=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.onItemClick(o,r))}),e.j41(1,"div",4),e.DNE(2,Xn,1,2,"img",5),e.k0s(),e.DNE(3,Dn,3,3,"div",6),e.k0s()}if(2&n){const t=e.XpG(),i=t.$implicit,o=t.$index,r=e.XpG(2);e.AVh("featured",r.isFeatured(o))("multi-row",r.isMultiRow(o))("item-card--replay",i.isReplay),e.BMQ("aria-label","Voir "+i.title),e.R7$(2),e.vxM(2,i.imageUrl?2:-1),e.R7$(),e.vxM(3,i.display_title&&i.title||i.isReplay?3:-1)}}function Hn(n,s){if(1&n&&e.DNE(0,Un,4,10,"a",2)(1,Fn,4,9),2&n){const t=s.$implicit,i=e.XpG(2);e.vxM(0,i.isMinimalLayoutMode()&&t.videoId?0:1)}}function Yn(n,s){if(1&n&&(e.DNE(0,Sn,1,6,"app-block-strate-header-btn",1),e.j41(1,"div",0),e.Z7z(2,Hn,2,1,null,null,Gn),e.k0s()),2&n){const t=e.XpG();e.vxM(0,t.config.playerTitle||t.config.btn_wording?0:-1),e.R7$(),e.Y8G("ngClass",t.layoutClass),e.R7$(),e.Dyx(t.items)}}let jn=(()=>{class n{static#e=this.FEATURED_INDICES={"layout-2":[1,2],"layout-3-left":[1],"layout-3-right":[1],"layout-4":[1,2,3,4],"layout-5-top":[1,2],"layout-5-bottom":[1,2],"layout-6-top-left":[1],"layout-6-top-right":[1],"layout-6-bottom-left":[1],"layout-6-bottom-right":[1],"layout-7":[1,2,6,7],"layout-8":[4,5],"layout-9":[1,9],"layout-10-a":[6],"layout-10-b":[8]};static#t=this.MULTI_ROW_INDICES={"layout-3-left":[1],"layout-3-right":[1],"layout-6-top-left":[1],"layout-6-top-right":[1],"layout-6-bottom-left":[1],"layout-6-bottom-right":[1],"layout-9":[1,9],"layout-10-a":[6],"layout-10-b":[8]};get titleColor(){return m.A.formatColor(this.event?.global_font_color??"")}isFeatured(t){const i=n.FEATURED_INDICES[this.layoutClass];return!!i&&i.includes(t+1)}isMultiRow(t){const i=n.MULTI_ROW_INDICES[this.layoutClass];return!!i&&i.includes(t+1)}constructor(t,i,o,r,a){this._isBrowser=t,this._popupService=i,this._requestService=o,this._minimalLayoutModeService=r,this._thumborService=a,this.config=null,this.event=null,this.items=[],this.layoutClass="layout-5-top",this._destroy$=new J.B}ngOnInit(){this.config&&this._processItems()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}isReplayType(){return"replay"===this.config?.miseEnAvantEpisodesOuReplayType}isEpisodeType(){return"episode"===this.config?.miseEnAvantEpisodesOuReplayType}isMinimalLayoutMode(){return this._minimalLayoutModeService.isMinimalMode()}getVideoPlayerUrl(t){if(!t.videoId)return"";const i=X.f.transform(t.videoId);return`${P.c.baseUrl.api}videos-store/player/${i}`}onItemClick(t,i){t&&(t.preventDefault(),t.stopPropagation()),i.videoId&&this._popupService.showVideo(X.f.transform(i.videoId),i.title,i.guid)}_processItems(){this.config&&(this.isReplayType()?this._processReplayItems():this.isEpisodeType()&&this._processEpisodeItems())}_processReplayItems(){if(!this.config)return;const t=this.config.nbContents??5,i=[];for(let o=1;o<=t;o++){const r=this.config;i.push({dateReunion:r[`replay${o}DateReunion`],numReunion:r[`replay${o}NumReunion`],numCourse:r[`replay${o}NumCourse`]})}Promise.all(i.map(o=>this._fetchCourseData(o))).then(o=>{this.items=i.map((r,a)=>{const d=o[a],R=a+1,O=this.config,w=O[`replay${R}title_overload`],G=O[`replay${R}image_overload`];return d?{id:`replay-${a}`,title:w||d.libcourt_prix_course,imageUrl:this._thumborService.toThumbor(G||In.f.course(d,"original"),1e3),videoId:d.video_course_nom||null,guid:d.guid,isReplay:!0}:{id:`replay-${a}`,title:w||"",imageUrl:this._thumborService.toThumbor(G||P.c.baseUrl.assets+"/img/promo-video-bg2.jpg",1e3),videoId:null,guid:void 0,isReplay:!0}}),this._updateLayoutClass(t)}).catch(o=>console.error("Erreur lors de la r\xe9cup\xe9ration des replays:",o))}_processEpisodeItems(){if(!this.config)return;const t=this.config.nbContents??5,i=[];for(let o=1;o<=t;o++)i.push(this.config[`episode${o}`]);this.items=i.filter(o=>null!=o).map((o,r)=>
1({id:`episode-${r}`,title:o.title_overload||o.name,imageUrl:this._thumborService.toThumbor(o.image_overload||m.A.getEpisodeImageUrl(o),1e3),videoId:o.video?.name??null,guid:void 0,isReplay:!1,display_title:!!o.display_title})),this._updateLayoutClass(this.items.length)}_fetchCourseData(t){const i=`v2/courses/${t.dateReunion}/R${t.numReunion}/C${t.numCourse}`;return this._requestService.get(i).then(o=>o).catch(o=>(console.error(`Erreur lors de la r\xe9cup\xe9ration de la course ${i}:`,o),null))}_updateLayoutClass(t){const i=Math.min(Math.max(t,2),10),o=this.config?.layoutVariant||"",r={3:"left",5:"top",6:"top-left",10:"a"};this.layoutClass=[3,5,6,10].includes(i)?`layout-${i}-${o||r[i]}`:`layout-${i}`}static#n=this.\u0275fac=function(i){return new(i||n)(e.rXU("isBrowser"),e.rXU(H.O),e.rXU(T.B),e.rXU(U.U),e.rXU(j.Z))};static#i=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique-mise-en-avant-episodes-ou-replay"]],inputs:{config:"config",event:"event"},decls:1,vars:1,consts:[[1,"mise-en-avant-grid",3,"ngClass"],[3,"title","subtitle","btnWording","btnUrl","btnTarget","event"],[1,"position-relative","item-card",3,"featured","multi-row","item-card--replay","href"],[1,"position-relative","item-card",3,"href"],[1,"embed-responsive","embed-responsive-16by9","item-card__thumb","bg-dark"],["loading","lazy",1,"embed-responsive-item",3,"src","alt"],[1,"item-card__title",3,"color"],[1,"item-card__title"],[1,"text-truncate","d-block"],["role","button","tabindex","0",1,"position-relative","item-card",3,"click","keydown.enter","keydown.space"]],template:function(i,o){1&i&&e.DNE(0,Yn,4,2,"div",0),2&i&&e.vxM(0,o.config&&o.items.length>0?0:-1)},dependencies:[u.YU,q],styles:['[_ngcontent-%COMP%]::root{--global-font-color: #fff}.mise-en-avant-grid[_ngcontent-%COMP%]{display:grid;gap:1rem}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]{cursor:pointer;overflow:hidden;border-radius:6px;border:none;background:transparent;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card.item-card--empty[_ngcontent-%COMP%]{cursor:default;pointer-events:none}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card.item-card--empty[_ngcontent-%COMP%] .item-card__thumb[_ngcontent-%COMP%]{background:#0000000f}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card__thumb[_ngcontent-%COMP%]{position:relative;border-radius:6px;overflow:hidden;flex-shrink:0}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card__title[_ngcontent-%COMP%]{padding:8px 0 0;font-size:13px;font-weight:600;line-height:1.3;color:#333;flex-shrink:0}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card.multi-row[_ngcontent-%COMP%] .item-card__thumb[_ngcontent-%COMP%]{flex:1;min-height:0;padding-top:0}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card.multi-row[_ngcontent-%COMP%] .embed-responsive-16by9[_ngcontent-%COMP%]:before{padding-top:0}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card.multi-row[_ngcontent-%COMP%] .item-card__thumb[_ngcontent-%COMP%] .embed-responsive-item[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(1){grid-area:i1}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(2){grid-area:i2}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(3){grid-area:i3}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(4){grid-area:i4}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(5){grid-area:i5}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(6){grid-area:i6}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(7){grid-area:i7}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(8){grid-area:i8}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(9){grid-area:i9}.mise-en-avant-grid[_ngcontent-%COMP%] .item-card[_ngcontent-%COMP%]:nth-child(10){grid-area:i10}
1.mise-en-avant-grid.layout-2[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;grid-template-areas:"i1 i2"}.mise-en-avant-grid.layout-3-left[_ngcontent-%COMP%]{grid-template-columns:2fr 1fr;grid-template-rows:auto auto;grid-template-areas:"i1 i2" "i1 i3"}.mise-en-avant-grid.layout-3-right[_ngcontent-%COMP%]{grid-template-columns:1fr 2fr;grid-template-rows:auto auto;grid-template-areas:"i2 i1" "i3 i1"}.mise-en-avant-grid.layout-4[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;grid-template-areas:"i1 i2" "i3 i4"}.mise-en-avant-grid.layout-5-top[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr);grid-template-rows:auto auto;grid-template-areas:"i1 i1 i1 i2 i2 i2" "i3 i3 i4 i4 i5 i5"}.mise-en-avant-grid.layout-5-bottom[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr);grid-template-rows:auto auto;grid-template-areas:"i3 i3 i4 i4 i5 i5" "i1 i1 i1 i2 i2 i2"}.mise-en-avant-grid.layout-6-top-left[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"i1 i1 i2" "i1 i1 i3" "i4 i5 i6"}.mise-en-avant-grid.layout-6-top-right[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"i2 i1 i1" "i3 i1 i1" "i4 i5 i6"}.mise-en-avant-grid.layout-6-bottom-left[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"i4 i5 i6" "i1 i1 i2" "i1 i1 i3"}.mise-en-avant-grid.layout-6-bottom-right[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto auto auto;grid-template-areas:"i4 i5 i6" "i2 i1 i1" "i3 i1 i1"}.mise-en-avant-grid.layout-7[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr);grid-template-rows:auto auto auto;grid-template-areas:"i1 i1 i1 i2 i2 i2" "i3 i3 i4 i4 i5 i5" "i6 i6 i6 i7 i7 i7"}.mise-en-avant-grid.layout-8[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr);grid-template-rows:auto auto auto;grid-template-areas:"i1 i1 i2 i2 i3 i3" "i4 i4 i4 i5 i5 i5" "i6 i6 i7 i7 i8 i8"}.mise-en-avant-grid.layout-9[_ngcontent-%COMP%]{grid-template-columns:2fr 2fr 2fr;grid-template-rows:auto auto auto auto auto;grid-template-areas:"i1 i1 i2" "i1 i1 i3" "i4 i5 i6" "i7 i9 i9" "i8 i9 i9"}.mise-en-avant-grid.layout-10-a[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr);grid-template-rows:auto auto auto auto auto;grid-template-areas:"i1 i1 i1 i2 i2 i2" "i3 i3 i4 i4 i5 i5" "i6 i6 i6 i6 i7 i7" "i6 i6 i6 i6 i8 i8" "i9 i9 i9 i10 i10 i10"}.mise-en-avant-grid.layout-10-b[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr);grid-template-rows:auto auto auto auto auto;grid-template-areas:"i1 i1 i2 i2 i3 i3" "i4 i4 i4 i5 i5 i5" "i6 i6 i8 i8 i8 i8" "i7 i7 i8 i8 i8 i8" "i9 i9 i9 i10 i10 i10"}@media (max-width: 768px){.mise-en-avant-grid[_ngcontent-%COMP%]{gap:.5rem}}']})}return n})();const An=(n,s,t,i)=>({imageUrl:n,redirectUrl:s,target:t,altImage:i});function Ln(n,s){if(1&n&&(e.j41(0,"h1"),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.xc7("color",t.event.title_color?"#"+t.event.title_color:""),e.R7$(),e.SpI(" ",t.event.title," ")}}function Vn(n,s){if(1&n&&(e.j41(0,"h2",7),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.xc7("color",t.event.subtitle_color?"#"+t.event.subtitle_color:""),e.R7$(),e.SpI(" ",t.event.subtitle," ")}}function Nn(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-course",8),2&n){const t=e.XpG(2);e.Y8G("course",t.course)("event",t.event)}}function zn(n,s){if(1&n&&e.nrm(0,"app-carousel-une",21),2&n){const t=e.XpG(),i=t.$implicit,o=t.index;e.AVh("hero-element",0===o)("hero-block-first",0===o),e.Y8G("config",i)}}function Wn(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-featured-player",18),2&n){const t=e.XpG(2),i=t.$implicit,o=t.index,r=e.XpG(2);e.AVh("hero-block-first",0===o),e.Y8G("config",i)("event",r.event)}}function Qn(n,s){if(1&n&&e.DNE(0,Wn,1,4,"app-evenement-hippique-featured-player",22),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.vxM(0,!i.minimalLayout||i.minimalLayout&&"live"!==t.playerType?0:-1)}}function Kn(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-direct",21),2&n){const t=e.XpG().$implicit;e.Y8G("config",t)}}function Zn(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-articles",21),2&n){const t=e.XpG().$implicit;e.Y8G("config",t)}}function Jn(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-social-prono",21),2&n){const t=e.XpG().$implicit;e.Y8G("config",t)}}function ei(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-publicite",23),2&n){const t=e.XpG().$implicit;e.Y8G("publicite",t)}}function ti(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-article",21),2&n){const t=e.XpG().$implicit;e.Y8G("config",t)}}function ni(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-replay",24),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("config",t)("course",i.course)}}function ii(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-casaques",25),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("config",t)("course",i.course)("pariSimple",i.pariSimple)}}function oi(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-playlist",26),2&n){const t=e.XpG(),i=t.$
1implicit,o=t.index,r=e.XpG(2);e.AVh("hero-element",0===o),e.Y8G("config",i)("event",r.event)("minimalLayout",r.minimalLayout)}}function ri(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-playlist-hippodrome",21),2&n){const t=e.XpG().$implicit;e.Y8G("config",t)}}function si(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-playlist-url",21),2&n){const t=e.XpG().$implicit;e.Y8G("config",t)}}function ai(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-editorial-contents",26),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("config",t)("event",i.event)("minimalLayout",i.minimalLayout)}}function li(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-derniers-quintes",18),2&n){const t=e.XpG(),i=t.$implicit,o=t.index,r=e.XpG(2);e.AVh("hero-element",0===o),e.Y8G("config",i)("event",r.event)}}function ci(n,s){if(1&n&&e.nrm(0,"app-banner-16-9",17),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("block",t)("event",i.event)}}function pi(n,s){if(1&n&&e.nrm(0,"app-banner-9-16",18),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.Y8G("config",t)("event",i.event)}}function ui(n,s){if(1&n&&(e.j41(0,"div",19),e.nrm(1,"app-block-strate-header-btn",27)(2,"app-clickable-full-image",21),e.k0s()),2&n){const t=e.XpG().$implicit,i=e.XpG(2);e.R7$(),e.Y8G("title",t.title||"")("subtitle",t.subtitle||null)("event",i.event),e.R7$(),e.Y8G("config",e.ziG(4,An,t.urlImage,t.urlRedirect,t.target,t.altImage))}}function di(n,s){if(1&n&&e.nrm(0,"app-evenement-hippique-mise-en-avant-episodes-ou-replay",18),2&n){const t=e.XpG(),i=t.$implicit,o=t.index,r=e.XpG(2);e.AVh("hero-element",0===o),e.Y8G("config",i)("event",r.event)}}function _i(n,s){if(1&n&&(e.qex(0),e.DNE(1,zn,1,5,"app-carousel-une",9)(2,Qn,1,1)(3,Kn,1,1,"app-evenement-hippique-direct",10)(4,Zn,1,1,"app-evenement-hippique-articles",10)(5,Jn,1,1,"app-evenement-hippique-social-prono",10)(6,ei,1,1,"app-evenement-hippique-publicite",11)(7,ti,1,1,"app-evenement-hippique-article",10)(8,ni,1,2,"app-evenement-hippique-replay",12)(9,ii,1,3,"app-evenement-hippique-casaques",13)(10,oi,1,5,"app-evenement-hippique-playlist",14)(11,ri,1,1,"app-evenement-hippique-playlist-hippodrome",10)(12,si,1,1,"app-evenement-hippique-playlist-url",10)(13,ai,1,3,"app-evenement-hippique-editorial-contents",15)(14,li,1,4,"app-evenement-hippique-derniers-quintes",16)(15,ci,1,2,"app-banner-16-9",17)(16,pi,1,2,"app-banner-9-16",18)(17,ui,3,9,"div",19)(18,di,1,4,"app-evenement-hippique-mise-en-avant-episodes-ou-replay",20),e.bVm()),2&n){const t=s.$implicit,i=s.index,o=e.XpG(2);e.R7$(),e.vxM(1,"carousel-une"===t.type&&null!=t.slides&&t.slides.length?1:-1),e.R7$(),e.vxM(2,"featured-player"===t.type?2:-1),e.R7$(),e.Y8G("ngIf","direct"===t.type&&!o.minimalLayout),e.R7$(),e.Y8G("ngIf","articles"===t.type),e.R7$(),e.Y8G("ngIf","event-social-prono"===t.type),e.R7$(),e.Y8G("ngIf","publicite"===t.type),e.R7$(),e.Y8G("ngIf","article"===t.type&&t.article),e.R7$(),e.Y8G("ngIf","replay"===t.type&&o.course),e.R7$(),e.Y8G("ngIf","casaques"===t.type&&o.course),e.R7$(),e.vxM(10,o.playlistBlockIndices().has(i)?10:-1),e.R7$(),e.Y8G("ngIf","playlist-hippodrome"===t.type&&t.code&&t.from&&t.to),e.R7$(),e.Y8G("ngIf","playlist-url"===t.type&&(null==t.videos?null:t.videos.length)),e.R7$(),e.Y8G("ngIf","editorial-contents"===t.type),e.R7$(),e.Y8G("ngIf","derniers-quintes"===t.type),e.R7$(),e.vxM(15,"banner-16-9"===t.type&&t.bannerImage?15:-1),e.R7$(),e.vxM(16,"banners-9-16"===t.type&&null!=t.banners&&t.banners.length?16:-1),e.R7$(),e.vxM(17,"image-full-highlight"===t.type&&t.urlImage?17:-1),e.R7$(),e.vxM(18,"mise-en-avant-episodes-ou-replay"===t.type?18:-1)}}function mi(n,s){if(1&n&&(e.j41(0,"div",2),e.DNE(1,Ln,2,3,"h1",3)(2,Vn,2,3,"h2",4)(3,Nn,1,2,"app-evenement-hippique-course",5)(4,_i,19,18,"ng-container",6),e.k0s()),2&n){const t=e.XpG();e.AVh("has-global-font-color",t.event.global_font_color),e.R7$(),e.vxM(1,t.event.title?1:-1),e.R7$(),e.vxM(2,t.event.subtitle?2:-1),e.R7$(),e.Y8G("ngIf",t.course),e.R7$(),e.Y8G("ngForOf",t.event.activeBlocks)}}const hi=[{path:"",component:(()=>{class n{get firstBlockIsHero(){const t=this.event?.activeBlocks?.[0]?.type;return"featured-player"===t||"carousel-une"===t}constructor(t,i,o,r,a,d,R,O,w,G){this.requestService=t,this.seoService=i,this.activatedRoute=o,this.router=r,this.elementRef=a,this.isBrowser=d,this._amplitudeService=R,this._contentTypeService=O,this._thumborService=w,this._minimalLayoutModeService=G,this.contentType="Evenement",this.course=null,this.event=null,this.layoutStyle={},this.playlistBlockIndices=(0,e.vPA)(new Set),this.minimalLayout=!1,this.pariSimple={ON:{},OFF:{}}}ngOnInit(){this.minimalLayout=this._minimalLayoutModeService.isMinimalMode(),this.activatedRoute.params.subscribe(t=>
1{if(this.activatedRoute.snapshot?.queryParams?.preview)try{const i=JSON.parse(this.activatedRoute.snapshot.queryParams.preview);return void this.getPreviewData(i)}catch{}this.getApiData(t)}),this._sendContentTypeToService()}getPreviewData(t){this.event=t,this.event&&(this._applyData(),this._updateSeo())}getApiData(t){t.id&&(this.event=null,this.requestService.get(`cms_categories/${t.id}`).then(o=>{if(o?.cms_category_items?.length||o?.cms_category_items[0]?.config){if(this.event=o.cms_category_items[0].config,!this.event||!this.event.active)return console.error("Event inactive or inexistant"),void this.router.navigateByUrl(`/404?from=${this.router.url}`);this._applyData(),this._updateSeo(),this._amplitudeService.pageTrack({"Content Type":this.contentType})}}).catch(o=>{console.error(o),this.router.navigateByUrl(`/404?from=${this.router.url}`)}))}_applyData(){this._getCourse(),this._applyActiveBlocks(),this._normalizeEventImages(),this._applyBackground(),this._applyEventStyle(),this._updatePlaylistBlockIndices()}_normalizeEventImages(){if(this.event&&(this.event.background_url=this._thumborService.toThumbor(this.event.background_url,1600),this.event.background_url_mobile=this._thumborService.toThumbor(this.event.background_url_mobile,768),Array.isArray(this.event.blocks)))for(const t of this.event.blocks)this._normalizeBlockImages(t)}_normalizeBlockImages(t){if(!t||"object"!=typeof t)return;const i=this._getThumborWidthForBlock(t);this._mapImageUrls(t,i)}_mapImageUrls(t,i,o=""){if(null!=t&&!("string"==typeof t||t instanceof Date)){if(Array.isArray(t)){for(let r=0;r<t.length;r++){const a=t[r];"string"==typeof a?this._shouldTransformImageUrl(o,a)&&(t[r]=this._thumborService.toThumbor(a,i)):this._mapImageUrls(a,i,o)}return}if("object"==typeof t){const r=t;for(const a of Object.keys(r)){const d=r[a];"string"==typeof d?this._shouldTransformImageUrl(a,d)&&(r[a]=this._thumborService.toThumbor(d,i)):this._mapImageUrls(d,i,a)}}}}_getThumborWidthForBlock(t){switch(t.type){case"banners-9-16":return 640;case"banner-16-9":case"carousel-une":return 1280;case"image-full-highlight":return 1400;default:return 800}}_shouldTransformImageUrl(t,i){return!(!this._isHttpUrl(i)||this._isNavigationUrlKey(t))&&(this._isImageUrlKey(t)||this._looksLikeImageUrl(i))}_isNavigationUrlKey(t){const i=t.toLowerCase();return["url","href","link","target","btn_url","button_url","bannerurl","bannerurl2","redirectionurl","redirecturl","externalurl","video_url","player_url"].includes(i)}_isImageUrlKey(t){const i=t.toLowerCase();return["image","imageurl","image_url","img","src","thumbnail","thumbnailurl","thumbnail_url","picture","poster","visual","cover","background_url","background_url_mobile","bannerimage","bannerimage2","media_path","media_path_override","photo_path","photo_finish"].includes(i)}_looksLikeImageUrl(t){return/\.(jpg|jpeg|png|webp|gif)(\?.*)?$/i.test(t)||t.includes("/media/original/")||t.includes("/image/")||t.includes("/assets/img/")||t.includes("/unsafe/fit-in/")}_isHttpUrl(t){return t.startsWith("http://")||t.startsWith("https://")}_updatePlaylistBlockIndices(){const t=new Set;this.event?.activeBlocks?(this.event.activeBlocks.forEach((i,o)=>{this._shouldShowPlaylist(i)&&t.add(o)}),this.playlistBlockIndices.set(t)):this.playlistBlockIndices.set(t)}_shouldShowPlaylist(t){if("playlist"!==t?.type)return!1;const i=t.playlistType||"replay";return"replay"===i?!!t.videos?.length:"episode"===i?!!t.episodes?.length:"playlist-hippodrome"===i?!!(t.code&&t.from&&t.to):"editorial-contents"===i?!(!t.videos?.length||!t.categoriesEditorialContents?.length):"course-references"===i}_updateSeo(){const t={};this.event.seo_title?t.title=this.event.seo_title:this.event.title&&(t.title=this.event.title),this.event.seo_description?t.description=this.event.seo_description:this.event.subtitle&&(t.description=this.event.subtitle),this.seoService.updateSeo(t)}_applyActiveBlocks(){if(this.event.activeBlocks=[],this.event?.blocks?.length){this.event.activeBlocks=[];for(const t of this.event.blocks)"1"===t.isActive&&(0,g.A)(t.fromDate).isBefore((0,g.A)())&&(0,g.A)(t.toDate).isAfter((0,g.A)())&&this.event.activeBlocks.push(t)}}_getCourse(){this.event?.url_course&&this.requestService.get(this.event.url_course).then(t=>{this.course=t;for(let i of this.course.partants)this.pariSimple.ON[i.num_partant]=null,this.pariSimple.OFF[i.num_partant]=null;this._getPariSimple()}).catch(console.error)}
1_applyBackground(){this.layoutStyle={},this.event.background_color&&(this.layoutStyle["background-color"]=`#${this.event.background_color}`);const t=m.A.isMobile(),i=t&&this.event.background_url_mobile?this.event.background_url_mobile:this.event.background_url;if(!i)return;this.layoutStyle["background-image"]=`url('${i}')`;const o=t&&this.event.background_repeat_mobile?this.event.background_repeat_mobile:this.event.background_repeat;o&&(this.layoutStyle["background-repeat"]=o);const r=t&&this.event.background_size_mobile?this.event.background_size_mobile:this.event.background_size;r&&(this.layoutStyle["background-size"]=r)}_applyEventStyle(){this.isBrowser&&this.event.global_font_color&&this.elementRef.nativeElement.style.setProperty("--global-font-color",`#${this.event.global_font_color}`)}_getPariSimple(){this.requestService.get(`courses/${this.course.reunion.date_reunion}/R${this.course.reunion.num_reunion}/C${this.course.num_course_pmu}/pari_simple`).then(a=>{if(a?.length)for(let d of a)this.pariSimple[d.channel][d.num_partant]?(0,g.A)(d.heure_rap_evol).diff((0,g.A)(this.pariSimple[d.channel][d.num_partant].heure_rap_evol))>0&&(this.pariSimple[d.channel][d.num_partant]=d):this.pariSimple[d.channel][d.num_partant]=d}).catch(console.error)}_sendContentTypeToService(){this._contentTypeService.saveContentType(this.contentType)}static#e=this.\u0275fac=function(i){return new(i||n)(e.rXU(T.B),e.rXU(ee.B),e.rXU(c.nX),e.rXU(c.Ix),e.rXU(e.aKT),e.rXU("isBrowser"),e.rXU(te.r),e.rXU(ne.n),e.rXU(j.Z),e.rXU(U.U))};static#t=this.\u0275cmp=e.VBU({type:n,selectors:[["app-evenement-hippique"]],decls:3,vars:3,consts:[[3,"layoutStyle","hasHeroBlockFirst"],["class","container pb-3",3,"has-global-font-color",4,"ngIf"],[1,"container","pb-3"],[3,"color"],[1,"subtitle",3,"color"],[3,"course","event",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"subtitle"],[3,"course","event"],[3,"config","hero-element","hero-block-first"],[3,"config",4,"ngIf"],[3,"publicite",4,"ngIf"],[3,"config","course",4,"ngIf"],[3,"config","course","pariSimple",4,"ngIf"],[3,"config","event","minimalLayout","hero-element"],[3,"config","event","minimalLayout",4,"ngIf"],[3,"config","event","hero-element",4,"ngIf"],[3,"block","event"],[3,"config","event"],[1,"image-full-highlight-block"],[3,"config","event","hero-element"],[3,"config"],[3,"hero-block-first","config","event"],[3,"publicite"],[3,"config","course"],[3,"config","course","pariSimple"],[3,"config","event","minimalLayout"],[3,"title","subtitle","event"]],template:function(i,o){1&i&&(e.j41(0,"app-layout",0),e.DNE(1,mi,5,6,"div",1),e.k0s(),e.nrm(2,"app-modal")),2&i&&(e.Y8G("layoutStyle",o.layoutStyle)("hasHeroBlockFirst",o.firstBlockIsHero),e.R7$(),e.Y8G("ngIf",o.event))},dependencies:[u.Sq,u.bT,ie.C,ae,le.z,V,be,He,Ne,Ke,ot,at,pt,ut,vt,Ht,Vt,Wt,Jt,fn,q,wn,Rn,jn],styles:["[_ngcontent-%COMP%]::root{--global-font-color: #fff}h1[_ngcontent-%COMP%]{font-weight:600;font-size:38px;line-height:38px;text-align:center;color:#090a3a;padding-top:25px;padding-bottom:5px}.subtitle[_ngcontent-%COMP%]{font-family:Saira;font-weight:700;font-size:26px;line-height:26px;text-align:center;color:#090a3a}@media (max-width: 767px){[_nghost-%COMP%] app-publicites .mea a{margin-top:20px}.subtitle[_ngcontent-%COMP%]{font-size:20px;line-height:20px}}@media (min-width: 768px){[_nghost-%COMP%] app-publicites .mea{margin-top:40px}}[_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .line-title>span, [_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .course-card--title, [_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .course-card--details, [_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .article--infos--date, [_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .article--infos--title a, [_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .line-title h2, [_nghost-%COMP%] .has-global-font-color[_ngcontent-%COMP%] .line-title span{color:var(--global-font-color)}[_nghost-%COMP%] .line-title span, [_nghost-%COMP%] .line-title h2{font-size:22px;font-weight:700;text-transform:uppercase}[_nghost-%COMP%] .line-title h2{margin:0;font-family:Averta;line-height:1.25}.image-full-highlight-block[_ngcontent-%COMP%]{margin-bottom:30px}.image-full-highlight-block[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:14px;font-family:Saira;line-height:20px;font-weight:700}.image-full-highlight-block[_ngcontent-%COMP%] .line-title[_ngcontent-%COMP%]{margin-bottom:15px}[_nghost-%COMP%] app-evenement-hippique-publicite{justify-content:center}[_nghost-%COMP%] app-evenement-hippique-publicite .row.mea{width:100%;margin-top:20px;margin-bottom:25px}[_nghost-%COMP%] app-evenement-hippique-articles app-block-carousel>section, [_nghost-%COMP%] app-evenement-hippique-casaques app-block-carousel>section, [_nghost-%COMP%] app-evenement-hippique-playlist-url app-block-carousel>section, [_nghost-%COMP%] app-evenement-hippique-playlist app-block-carousel>section, [_nghost-%COMP%] app-evenement-hippique-editorial-contents app-block-carousel>section{margin-top:20px}[_nghost-%COMP%] app-evenement-hippique-social-prono app-evenement-card>.row{margin-top:40px}[_nghost-%COMP%] app-evenement-hippique-article app-block-homepage-slide-image .slide-image{margin-top:40px;margin-bottom:40px}[_nghost-%COMP%] app-evenement-hippique-article app-block-homepage-slide-image .slide-image img{object-fit:cover}@media (min-width: 768px){[_nghost-%COMP%] app-evenement-hippique-featured-player.hero-block-first, [_nghost-%COMP%] app-carousel-une.hero-block-first{margin-top:-120px}}[_nghost-%COMP%] app-carousel-une, [_nghost-%COMP%] app-evenement-hippique-featured-player, [_nghost-%COMP%] app-evenement-hippique-direct, [_nghost-%COMP%] app-evenement-hippique-articles, [_nghost-%COMP%] app-evenement-hippique-social-prono, [_nghost-%COMP%] app-evenement-hippique-publicite, [_nghost-%COMP%] app-evenement-hippique-article, [_nghost-%COMP%] app-evenement-hippique-replay, [_nghost-%COMP%] app-evenement-hippique-casaques, [_nghost-%COMP%] app-evenement-hippique-playlist, [_nghost-%COMP%] app-evenement-hippique-playlist-hippodrome, [_nghost-%COMP%] app-evenement-hippique-playlist-url, [_nghost-%COMP%] app-evenement-hippique-editorial-contents, [_nghost-%COMP%] app-evenement-hippique-derniers-quintes, [_nghost-%COMP%] app-evenement-hippique-mise-en-avant-episodes-ou-replay, [_nghost-%COMP%] app-banner-16-9, [_nghost-%COMP%] app-banner-9-16, [_nghost-%COMP%] .image-full-highlight-block{margin-bottom:3rem;display:block}@media (max-width: 768px){[_nghost-%COMP%] app-carousel-une, [_nghost-%COMP%] app-evenement-hippique-featured-player, [_nghost-%COMP%] app-evenement-hippique-direct, [_nghost-%COMP%] app-evenement-hippique-articles, [_nghost-%COMP%] app-evenement-hippique-social-prono, [_nghost-%COMP%] app-evenement-hippique-publicite, [_nghost-%COMP%] app-evenement-hippique-article, [_nghost-%COMP%] app-evenement-hippique-replay, [_nghost-%COMP%] app-evenement-hippique-casaques, [_nghost-%COMP%] app-evenement-hippique-playlist, [_nghost-%COMP%] app-evenement-hippique-playlist-hippodrome, [_nghost-%COMP%] app-evenement-hippique-playlist-url, [_nghost-%COMP%] app-evenement-hippique-editorial-contents, [_nghost-%COMP%] app-evenement-hippique-derniers-quintes, [_nghost-%COMP%] app-evenement-hippique-mise-en-avant-episodes-ou-replay, [_nghost-%COMP%] app-banner-16-9, [_nghost-%COMP%] app-banner-9-16, [_nghost-%COMP%] .image-full-highlight-block{margin-bottom:2rem}}[_nghost-%COMP%] app-carousel-une.hero-element[_ngcontent-%COMP%]{width:100vw;margin-left:calc(-50vw + 50%);overflow-x:clip}[_nghost-%COMP%] .hero-element[_ngcontent-%COMP%] .block-header__titles h2{margin-top:20px}"]})}return n})(),pathMatch:"full"}];let gi=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[c.iI.forChild(hi),c.iI]})}return n})();var fi=l(6868);let vi=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[u.MD,c.iI,fi.j]})}return n})();
1var Ci=l(4012);let bi=(()=>{class n{static#e=this.\u0275fac=function(i){return new(i||n)};static#t=this.\u0275mod=e.$C({type:n});static#n=this.\u0275inj=e.G2t({imports:[u.MD,c.iI,M.R,gi,h.b,S.v,f.X,E.R,v.o,C.d,I.z,D.C,_.a,k.N,p.V,b.q,vi,V,Ci.H,Y]})}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.