PageSourceSearch

https://meridianbet.pe/4916.227939f7d2ebaad1.js

js meridianbet.pe collected 2026-09-24 20:33:16 UTC 151,164 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmeridianbet_web_v4=self.webpackChunkmeridianbet_web_v4||[]).push([[4916],{68865:(te,$,s)=>{s.d($,{B:()=>A});var n=s(23712),e=s(3578),t=s(34032),I=s(20279),P=s(54438),_=s(39934),v=s(81633),R=s(73955),x=s(63755),m=s(60177);const f=(F,N)=>N.url,T=F=>({"c-breadcrumbs__step--disabled":F});function C(F,N){if(1&F){const B=P.RV6();P.j41(0,"div",2)(1,"a",3),P.bIt("click",function(W){const V=P.eBV(B),Y=V.$implicit,ie=V.$index,ae=V.$count,ne=P.XpG(2);return P.Njj(ne.clearMultipleLeaguesAndRedirect(W,Y,ie===ae-1))}),P.EFF(2),P.k0s(),P.qSk(),P.j41(3,"svg",4),P.nrm(4,"use",5),P.k0s()()}if(2&F){const B=N.$implicit;P.Y8G("ngClass",P.eq3(2,T,null==B?null:B.redirectionDisabled)),P.R7$(2),P.JRh(null==B?null:B.name)}}function w(F,N){if(1&F&&(P.j41(0,"div",1),P.Z7z(1,C,5,4,"div",2,f),P.k0s()),2&F){const B=P.XpG();P.R7$(),P.Dyx(B.pages)}}let A=(()=>{class F{constructor(B,j,W,V){this._routingService=B,this._multipleLeaguesService=j,this._translateService=W,this._localStorageService=V,this.isLiveEvent=!1,this.fetchingEventInProgress=!1,this.avoidResettingMultipleLeaguesOnRedirect=!1,this.pages=[],this._subscriptions=[]}ngOnInit(){this._subscribeToInitBreadcrumbs()}ngOnDestroy(){(0,n.A)(this._subscriptions,B=>B.unsubscribe())}clearMultipleLeaguesAndRedirect(B,j,W){B.preventDefault(),!W&&(this.avoidResettingMultipleLeaguesOnRedirect||this._multipleLeaguesService.resetMultipleLeagues(),!j.redirectionDisabled&&(j.sportId&&this._localStorageService.setItem(t.W.SELECTED_LIVE_SPORT_ID_FROM_SIDEBAR,j.sportId),this._routingService.navigateByUrl(j.url)))}_subscribeToInitBreadcrumbs(){this._subscriptions.push(this._routingService.notifyOfRouteChange$.subscribe(B=>{this.isLiveEvent?this._createCustomBreadcrumbsForLiveEvent(B):this.pages=this._routingService.isRouteActive(I.Bi.SPORT_TODAY)?(0,e.A)(B,(j,W)=>1!==W):B}))}_createCustomBreadcrumbsForLiveEvent(B){this.pages=[{url:this._routingService.getUrlByPageName("live"),name:this._translateService.instant("general.live"),redirectionDisabled:!1},{url:this._routingService.getUrlByPageName("live"),name:B[1].name,redirectionDisabled:!1,sportId:this.sportId},B[4]]}static{this.\u0275fac=function(j){return new(j||F)(P.rXU(_.O),P.rXU(v.a),P.rXU(R.c$),P.rXU(x.s))}}static{this.\u0275cmp=P.VBU({type:F,selectors:[["breadcrumbs"]],inputs:{liveSportName:"liveSportName",isLiveEvent:"isLiveEvent",sportId:"sportId",fetchingEventInProgress:"fetchingEventInProgress",avoidResettingMultipleLeaguesOnRedirect:"avoidResettingMultipleLeaguesOnRedirect"},decls:2,vars:1,consts:[[1,"c-single-event-breadcrumbs-wrapper"],[1,"c-single-event-breadcrumbs"],[1,"c-breadcrumbs__step",3,"ngClass"],[1,"c-step-name",3,"click"],[1,"c-breadcrumbs__icon"],[0,"xlink","href","assets/styles/sprites/svg/sprite.css.svg#casino-arrow-right"]],template:function(j,W){1&j&&(P.j41(0,"div",0),P.DNE(1,w,3,0,"div",1),P.k0s()),2&j&&(P.R7$(),P.vxM(W.fetchingEventInProgress?-1:1))},dependencies:[m.NgClass],styles:[".c-single-event-breadcrumbs-wrapper[_ngcontent-%COMP%]{min-height:20px;width:100%;margin-bottom:10px}.c-single-event-breadcrumbs[_ngcontent-%COMP%]{display:flex;color:var(--baseWhite16);flex-wrap:wrap}.c-breadcrumbs__step[_ngcontent-%COMP%]{cursor:pointer;position:relative;display:flex;align-items:center;margin-right:10px}.c-breadcrumbs__step[_ngcontent-%COMP%]:last-of-type   .c-breadcrumbs__icon[_ngcontent-%COMP%]{display:none}.c-breadcrumbs__step.c-breadcrumbs__step--disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.c-step-name[_ngcontent-%COMP%]{font-family:var(--font-cond);font-size:12px;line-height:20px;text-decoration:none;text-transform:uppercase;transition:opacity .2s linear;margin-right:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-step-name[_ngcontent-%COMP%]:hover{opacity:.75}.c-breadcrumbs__icon[_ngcontent-%COMP%]{width:10px;height:10px;display:inline-flex}"]})}}return F})()},20904:(te,$,s)=>{s.d($,{I:()=>le});var n=s(60177),e=s(54438),t=s(73955),I=s(58114),P=s(3385),_=s(43194),v=s(2091),R=s(54103),x=s(76747),m=s(51538),f=s(96467);const T=y=>({"c-dropdown__option--selected":y}),C=y=>
1({"c-selection--selected":y});function w(y,D){1&y&&(e.j41(0,"div",3),e.nrm(1,"span",4)(2,"span",4)(3,"span",4)(4,"span",4)(5,"span",4)(6,"span",4)(7,"span",4)(8,"span",4)(9,"span",4)(10,"span",4)(11,"span",4),e.k0s())}function A(y,D){if(1&y&&(e.nrm(0,"div",2),e.Z7z(1,w,12,0,"div",3,e.Vm6)),2&y){const b=e.XpG();e.R7$(),e.Dyx(b.skeletonRows)}}function F(y,D){1&y&&e.nrm(0,"svg-icon",15)}function N(y,D){if(1&y){const b=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const k=e.eBV(b).$implicit,U=e.XpG(3);return e.Njj(U.selectFitler(k))}),e.j41(1,"div",17),e.EFF(2),e.k0s()()}if(2&y){let b;const M=D.$implicit,k=e.XpG(3);e.Y8G("ngClass",e.eq3(2,T,M.marketId===(null==(b=k.selectedFilter())?null:b.marketId))),e.R7$(2),e.JRh(null==M?null:M.name)}}function B(y,D){if(1&y&&(e.j41(0,"span",10)(1,"span",11),e.EFF(2),e.k0s(),e.DNE(3,F,1,0,"svg-icon",12),e.j41(4,"div",13),e.DNE(5,N,3,4,"div",14),e.k0s()()),2&y){let b,M;const k=e.XpG(2);e.R7$(2),e.JRh(null!==(b=null==(b=k.selectedFilter())?null:b.name)&&void 0!==b?b:"-"),e.R7$(),e.Y8G("ngIf",null==(M=k.selectedFilter())?null:M.name),e.R7$(2),e.Y8G("ngForOf",k.marketFilters())}}function j(y,D){1&y&&(e.j41(0,"div",3),e.nrm(1,"span",4)(2,"span",4)(3,"span",4)(4,"span",4)(5,"span",4)(6,"span",4)(7,"span",4)(8,"span",4)(9,"span",4)(10,"span",4)(11,"span",4),e.k0s())}function W(y,D){if(1&y&&e.Z7z(0,j,12,0,"div",3,e.Vm6),2&y){const b=e.XpG(2);e.Dyx(b.skeletonRows)}}function V(y,D){if(1&y){const b=e.RV6();e.j41(0,"img",24),e.bIt("click",function(){e.eBV(b);const k=e.XpG().$implicit,U=e.XpG(3);return e.Njj(U.redirectToRival(k))}),e.k0s()}if(2&y){const b=e.XpG().$implicit;e.Mz_("src","assets/images/flags-round/",b.countryCode,".svg",e.B4B)}}function Y(y,D){if(1&y&&e.nrm(0,"img",20),2&y){const b=e.XpG().$implicit;e.Y8G("src",(null==b.jerseys||null==b.jerseys[0]?null:b.jerseys[0].url)||"",e.B4B)}}function ie(y,D){if(1&y){const b=e.RV6();e.nrm(0,"span",25),e.j41(1,"span",26),e.bIt("click",function(){e.eBV(b);const k=e.XpG().$implicit,U=e.XpG(3);return e.Njj(U.addItemOnTicket(U.getSelectedMarket()[k.rivalId]))}),e.EFF(2),e.nI1(3,"formatOddPipe"),e.k0s()}if(2&y){let b,M;const k=e.XpG().$implicit,U=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.eq3(5,C,U.ticketService.itemsOnTicket[null!==(b=null==(b=U.getSelectedMarket()[k.rivalId])?null:b.selectionId)&&void 0!==b?b:0])),e.R7$(),e.JRh(null!=(M=U.getSelectedMarket()[k.rivalId])&&M.price?e.i5U(3,2,null==(M=U.getSelectedMarket()[k.rivalId])?null:M.price,U.oddsFormatService.selectedFormat):"-")}}function ae(y,D){if(1&y){const b=e.RV6();e.j41(0,"div",18)(1,"span",19),e.EFF(2),e.k0s(),e.DNE(3,V,1,2,"img",20)(4,Y,1,1,"img",20),e.j41(5,"span",21),e.bIt("click",function(){const k=e.eBV(b).$implicit,U=e.XpG(3);return e.Njj(U.redirectToRival(k))}),e.EFF(6),e.k0s(),e.j41(7,"span",22),e.EFF(8),e.k0s(),e.j41(9,"span",22),e.EFF(10),e.k0s(),e.j41(11,"span",22),e.EFF(12),e.k0s(),e.j41(13,"span",22),e.EFF(14),e.k0s(),e.j41(15,"span",23),e.EFF(16),e.k0s(),e.j41(17,"span",23),e.EFF(18),e.k0s(),e.j41(19,"span",23),e.EFF(20),e.k0s(),e.DNE(21,ie,4,7),e.k0s()}if(2&y){let b;const M=D.$implicit,k=e.XpG(3);e.R7$(2),e.JRh(M.statistics.rank),e.R7$(),e.vxM(k.statisticsStoreService.international()?3:4),e.R7$(3),e.JRh(M.rivalName),e.R7$(2),e.JRh(M.statistics.matchesPlayed),e.R7$(2),e.JRh(M.statistics.wins),e.R7$(2),e.JRh(M.statistics.draws),e.R7$(2),e.JRh(M.statistics.losses),e.R7$(2),e.Lme("",M.statistics.goalsScored,":",M.statistics.goalsConceded,""),e.R7$(2),e.JRh(M.statistics.goalDifference),e.R7$(2),e.JRh(M.statistics.points),e.R7$(),e.vxM(null!=(b=k.marketFilters())&&b.length?21:-1)}}function ne(y,D){if(1&y&&e.Z7z(0,ae,22,12,"div",18,e.Vm6),2&y){const b=e.XpG(2);e.Dyx(b.standings())}}function re(y,D){if(1&y&&(e.j41(0,"div",2)(1,"span",5),e.EFF(2,"#"),e.k0s(),e.j41(3,"span",6),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"span",7),e.j41(7,"span",8),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"span",8),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"span",8),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"span",8),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"span",8),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"span",8),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"span",8),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"span",8),e.DNE(29,B,6,3,"span",9),e.k0s(),e.DNE(30,W,2,0)(31,ne,2,0)),2&y){let b;const M=e.XpG();e.R7$(4),e.JRh(e.bMT(5,10,"general.team")),e.R7$(4),e.JRh(e.bMT(9,12,"general.standings_mp")),e.R7$(3),e.JRh(e.bMT(12,14,"general.standings_w")),e.R7$(3),e.JRh(e.bMT(15,16,"general.standings_d")),e.R7$(3),e.JRh(e.bMT(18,18,"general.standings_l")),e.R7$(3),e.JRh(e.bMT(21,20,"general.standings_g")),e.R7$(3),e.JRh(e.bMT(24,22,"general.standings_gd")),e.R7$(3),e.JRh(e.bMT(27,24,"general.standings_pts")),e.R7$(3),e.Y8G("ngIf",null==(b=M.marketFilters())?null:b.length),e.R7$(),e.vxM(M.standings()?31:30)}}let le=(()=>{class y{constructor(){this.statisticsStoreService=(0,e.WQX)(P.u),this.oddsFormatService=(0,e.WQX)(m.$),this.standings=e.hFB.required(),this.skeletonRows=Array(18),this._translateService=(0,e.WQX)(t.c$),this.ticketService=(0,e.WQX)(R.Y),this._router=(0,e.WQX)(v.Ix),this._activatedRoute=(0,e.WQX)(v.nX),this.isFullPageView=!1,this.marketFilters=e.hFB.required(),this.markets=e.hFB.required(),this.dataLoaded=e.hFB.required(),this.marketFiltersEffect=(0,e.QZP)(()=>{const b=this.marketFilters();b?.length&&this.selectedFilter.set(b[0])},{allowSignalWrites:!0}
1),this.getSelectedMarket=(0,e.EWP)(()=>{const b={};return this.markets()?.find(M=>M.marketId===this.selectedFilter()?.marketId)?.selections.forEach(M=>{b[M.rivalId]=M}),b}),this.selectedFilter=(0,e.vPA)(null)}addItemOnTicket(b){b?.selectionId&&this.ticketService.toggledItemOnTicket(b.selectionId)}selectFitler(b){this.selectedFilter.set(b)}redirectToRival(b){const M=(0,_.h9)(_.l3.TEAMS,_.VJ.TEAMS,this._translateService);this._router.navigate([M,(0,_.G6)(b.rivalName),b.rivalId],{relativeTo:this._activatedRoute.parent})}static{this.\u0275fac=function(M){return new(M||y)}}static{this.\u0275cmp=e.VBU({type:y,selectors:[["group-standings"]],hostVars:2,hostBindings:function(M,k){if(2&M){let U;e.AVh("c-group-standing-markets",null==(U=k.marketFilters())?null:U.length)}},inputs:{standings:[1,"standings"],isFullPageView:"isFullPageView",marketFilters:[1,"marketFilters"],markets:[1,"markets"],dataLoaded:[1,"dataLoaded"]},standalone:!0,features:[e.aNF],decls:6,vars:6,consts:[[1,"c-group-standings__title"],[1,"c-group-standings__table"],[1,"c-group-standings__head"],[1,"c-group-standings__row","c-group-standings__row--skeleton"],[1,"c-group-standings__skeleton-cell"],[1,"c-group-standings__head-rank"],[1,"c-group-standings__head-flag"],["aria-hidden","true",1,"c-group-standings__head-team"],[1,"c-group-standings__head-stat"],["class","c-group-standings__head-stat c-group-standings__filter-text",4,"ngIf"],[1,"c-group-standings__head-stat","c-group-standings__filter-text"],[1,"c-group-standings__filter-text-wrapper"],["class","c-group-standings__icon","icon","menu-dropdown-alt",4,"ngIf"],[1,"c-group-standings__dropdown"],["class","c-dropdown__option",3,"ngClass","click",4,"ngFor","ngForOf"],["icon","menu-dropdown-alt",1,"c-group-standings__icon"],[1,"c-dropdown__option",3,"click","ngClass"],[1,"c-option__name"],[1,"c-group-standings__row"],[1,"c-group-standings__rank"],[1,"c-group-standings__flag",3,"src"],[1,"c-group-standings__team",3,"click"],[1,"c-group-standings__stat"],[1,"c-group-standings__goals"],[1,"c-group-standings__flag",3,"click","src"],[1,"c-group-standings__goals","c-group-standings__stat--splitter"],[1,"c-group-standings__goals","c-group-standings__stat--odds",3,"click","ngClass"]],template:function(M,k){1&M&&(e.j41(0,"div",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",1),e.DNE(4,A,3,0)(5,re,32,26),e.k0s()),2&M&&(e.R7$(),e.JRh(e.bMT(2,4,"general.standings")),e.R7$(2),e.AVh("is-full-page-view",k.isFullPageView),e.R7$(),e.vxM(k.dataLoaded()?5:4))},dependencies:[n.CommonModule,n.NgClass,n.NgForOf,n.NgIf,I.A,f.D,t.h,t.D9,x.P],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;font-weight:500;--table-columns: 20px 20px minmax(50px, 1fr) 72px 72px 72px 72px 88px 72px 72px}.c-group-standing-markets[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 72px 72px 72px 72px 88px 72px 72px 20px 113px}.c-group-standings__title[_ngcontent-%COMP%]{font-size:14px;line-height:16px;text-transform:uppercase;background:var(--baseBlue61);font-weight:500;width:100%;padding:8px 10px;color:var(--baseWhite09);font-family:var(--font-cond);text-align:center}.c-group-standings__table[_ngcontent-%COMP%]{overflow-x:auto;scrollbar-width:none;overflow:-moz-scrollbars-none}.c-group-standings__table[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.c-group-standings__table.is-full-page-view[_ngcontent-%COMP%]   .c-group-standings__team[_ngcontent-%COMP%]{text-decoration:none;cursor:default}.c-group-standings__table.is-full-page-view[_ngcontent-%COMP%]   .c-group-standings__row[_ngcontent-%COMP%]:hover{opacity:.8}.c-group-standings__table.is-full-page-view[_ngcontent-%COMP%]   .c-group-standings__flag[_ngcontent-%COMP%]{cursor:default}.c-group-standings__head[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--table-columns);align-items:center;column-gap:8px;padding:7px 12px;background:var(--baseBlack22);color:var(--base-white-03);font-family:var(--font);min-width:fit-content}@media (max-width: 1300px){[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 72px 72px 72px 72px 88px 72px}.c-group-standing-markets[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 72px 72px 72px 72px 88px 72px 20px 113px}.c-group-standings__head[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(10){display:none}.c-group-standings__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(10){display:none}}@media (max-width: 1200px){[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 72px 72px 72px 72px 88px 72px 120px}.c-group-standing-markets[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 72px 72px 72px 72px 88px 20px 113px}.c-group-standings__head[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(9), .c-group-standings__head[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(10){display:none}.c-group-standings__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(9), .c-group-standings__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(10){display:none}}@media (max-width: 1100px){[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 36px 36px 36px 36px 44px}.c-group-standing-markets[_nghost-%COMP%]{--table-columns: 20px 20px minmax(50px, 1fr) 36px 36px 36px 36px 44px 20px 113px}}.c-group-standings__head-rank[_ngcontent-%COMP%]{font-size:11px;line-height:14px;font-weight:700}.c-group-standings__head-team[_ngcontent-%COMP%], .c-group-standings__head-stat[_ngcontent-%COMP%]{font-size:12px}.c-group-standings__head-team[_ngcontent-%COMP%]{text-align:left}.c-group-standings__head-flag[_ngcontent-%COMP%]{display:block}.c-group-standings__head-stat[_ngcontent-%COMP%]{text-align:center}.c-group-standings__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:var(--table-columns);align-items:center;column-gap:8px;padding:9px 12px;background:var(--baseBlack22);color:var(--baseBlack14);font-family:var(--font);line-height:14px;min-width:fit-content}.c-group-standings__row[_ngcontent-%COMP%]:nth-child(2n){background:var(--baseBlack21)}.c-group-standings__rank[_ngcontent-%COMP%]{font-size:12px;text-align:left;font-weight:900}.c-group-standings__flag[_ngcontent-%COMP%]{height:20px;width:20px;flex-shrink:0}.c-group-standings__flag[_ngcontent-%COMP%]:hover{cursor:pointer}.c-group-standings__team[_ngcontent-%COMP%]{font-family:var(--font-cond);font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-group-standings__team[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:underline}.c-group-standings__stat[_ngcontent-%COMP%], .c-group-standings__goals[_ngcontent-%COMP%]{font-size:14px;text-align:center;font-weight:700}.c-group-standings__skeleton-cell[_ngcontent-%COMP%]{height:20px}.c-group-standings__filter-text[_ngcontent-%COMP%]{color:var(--baseYellow21);position:relative}.c-group-standings__filter-text[_ngcontent-%COMP%]:hover   .c-group-standings__dropdown[_ngcontent-%COMP%]{display:block}.c-group-standings__filter-text[_ngcontent-%COMP%]:hover   .c-group-standings__icon[_ngcontent-%COMP%]{transform:rotate(90deg)}.c-group-standings__filter-text-wrapper[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;text-overflow:ellipsis;word-wrap:break-word;white-space:normal;overflow:hidden;align-items:center;max-width:110px}.c-group-standings__icon[_ngcontent-%COMP%]{position:absolute;top:2px;right:0;width:10px;height:10px;margin-right:8px;transform:rotate(0);transition:all .2s linear}.c-group-standings__dropdown[_ngcontent-%COMP%]{position:absolute;display:none;top:15px;width:max-content;min-width:180px;align-items:center;right:-5px;max-height:205px;background:var(--baseBlue70);overflow:auto;gap:10px;border-radius:4px;z-index:10}.c-dropdown__option[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;font-family:var(--font);font-weight:500;color:var(--baseTextColor02);font-size:10px;line-height:30px;padding:0 10px;align-items:center;border-bottom:.6px solid var(--baseBlue71);cursor:pointer}.c-dropdown__option[_ngcontent-%COMP%]:hover, .c-dropdown__option[_ngcontent-%COMP%]:active   .c-option__name[_ngcontent-%COMP%], .c-dropdown__option[_ngcontent-%COMP%]:active   .c-option__selection[_ngcontent-%COMP%], .c-dropdown__option.c-dropdown__option--selected[_ngcontent-%COMP%]   .c-option__name[_ngcontent-%COMP%], .c-dropdown__option.c-dropdown__option--selected[_ngcontent-%COMP%]   .c-option__selection[_ngcontent-%COMP%]{color:var(--baseYellow21)}.c-dropdown__option[_ngcontent-%COMP%]:last-of-type{margin-bottom:0;border-bottom:none}.c-group-standings__stat--splitter[_ngcontent-%COMP%]{border-left:1px solid var(--baseBlue57);height:100%}.c-group-standings__stat--odds[_ngcontent-%COMP%]{background-color:var(--baseBlack24);border-radius:4px;padding:8px}.c-group-standings__stat--odds[_ngcontent-%COMP%]:hover{cursor:pointer}.c-selection--selected[_ngcontent-%COMP%]{background-color:var(--base-yellow-01);color:var(--black)}"]})}}return y})()},4916:(te,$,s)=>{s.r($),s.d($,{LeaguePageModule:()=>Vt});var n=s(2091),e=s(10467),t=s(54438),I=s(49090),P=s(58728),_=s(54674),v=s(16972),R=s(51802),x=s(62125),m=s(9150),f=s(6327),T=s(72036);var A=s(67374),F=s(20279),N=s(99062),B=s(56955),j=s(76227),W=s(91398),V=s(60177),Y=s(73955),ie=s(59858),ae=s(46700),ne=s(58114),re=s(66863),le=s(81633),y=s(29048),D=s(45963),b=s(48115),M=s(96467);function k(o,u){1&o&&t.nrm(0,"div",2)}let U=(()=>{class o{constructor(){this.placeholders=Array(20)}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["outright-league-placeholders"]],decls:2,vars:1,consts:[[1,"c-antepost-container"],["class","c-antepost-tab",4,"ngFor","ngForOf"],[1,"c-antepost-tab"]],template:function(c,d){1&c&&(t.j41(0,"div",0),t.DNE(1,k,1,0,"div",1),t.k0s()),2&c&&(t.R7$(),t.Y8G("ngForOf",d.placeholders))},dependencies:[V.NgForOf],styles:[".c-antepost-region[_ngcontent-%COMP%]{width:100%;overflow:hidden;margin-bottom:5px;border-radius:4px;outline:1px solid var(--baseWhite11)}.c-antepost-region.c-antepost-region--open[_ngcontent-%COMP%]{outline:1px solid var(--baseBlue18);height:auto;background-color:var(--baseBlue27)}.c-antepost-region.c-antepost-region--open[_ngcontent-%COMP%] > .c-antepost__container[_ngcontent-%COMP%]{display:block}.c-antepost-region.c-antepost-region--open[_ngcontent-%COMP%] > .c-antepost-tab[_ngcontent-%COMP%]{background-color:var(--baseBlue04);color:var(--white);outline:none}.c-antepost-region.c-antepost-region--open[_ngcontent-%COMP%] > .c-antepost-tab[_ngcontent-%COMP%]   .c-tab__icon[_ngcontent-%COMP%]{transform:rotate(-90deg)}.c-antepost-league.c-antepost-league--open[_ngcontent-%COMP%] > .c-antepost__container[_ngcontent-%COMP%]{display:block}.c-antepost-league.c-antepost-league--open[_ngcontent-%COMP%] > .c-antepost-tab[_ngcontent-%COMP%]{color:var(--baseTextColor);background-color:var(--baseBlue23);border-radius:4px 4px 0 0}.c-antepost-league.c-antepost-league--open[_ngcontent-%COMP%] > .c-antepost-tab[_ngcontent-%COMP%]   .c-tab__icon[_ngcontent-%COMP%]{transform:rotate(-90deg)}.c-antepost-league.c-antepost-league--single[_ngcontent-%COMP%]{width:100%;overflow:hidden;margin-bottom:5px;border-radius:4px;outline:1px solid var(--baseWhite11)}.c-antepost-league.c-antepost-league--single[_ngcontent-%COMP%]   .c-antepost-tab--league[_ngcontent-%COMP%]{border-top:none}.c-antepost-league.c-antepost-league--single.c-antepost-league--open[_ngcontent-%COMP%]{outline:1px solid var(--baseBlue18)}.c-antepost__container[_ngcontent-%COMP%]{display:none;background-color:var(--baseBlue10);border-radius:6px}.c-tab__icon[_ngcontent-%COMP%]{cursor:pointer;width:30px;height:40px;transition:transform .3s ease;display:flex;justify-content:center;align-items:center}.c-antepost-tab[_ngcontent-%COMP%]{cursor:pointer;display:block;width:100%;height:30px;background-color:var(--baseBlue02);color:var(--baseWhite16);font-size:14px;font-weight:500;line-height:30px;display:flex;align-items:center;justify-content:space-between}.c-antepost-tab[_ngcontent-%COMP%]:hover{background-color:var(--baseBlue09)}.c-antepost-tab--league[_ngcontent-%COMP%]{color:var(--baseTextColor);background:var(--baseBlue16);border-top:1px solid var(--baseBlack02);outline:none}.c-antepost-tab--league[_ngcontent-%COMP%]:hover{background-color:var(--baseBlue21)}.c-tab__label[_ngcontent-%COMP%]{padding:0 10px;text-transform:uppercase}"]})}}return o}
1)();var ve=s(63852);function ge(o,u){1&o&&(t.j41(0,"div",1),t.nrm(1,"svg-icon",3),t.j41(2,"div",4),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",5),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&o&&(t.R7$(3),t.JRh(t.bMT(4,2,"general.no_results")),t.R7$(3),t.JRh(t.bMT(7,4,"general.no_outrights")))}function be(o,u){if(1&o&&t.nrm(0,"event-game",6),2&o){const i=u.$implicit,c=t.XpG(3);t.Y8G("game",i)("triggerPipe",c.triggerPipe)("isOutright",!0)}}function xe(o,u){if(1&o&&(t.j41(0,"div",2),t.Z7z(1,be,1,3,"event-game",6,t.fX1),t.k0s()),2&o){const i=t.XpG(2);t.R7$(),t.Dyx(i.games)}}function Ce(o,u){if(1&o&&t.DNE(0,ge,8,6,"div",1)(1,xe,3,0,"div",2),2&o){const i=t.XpG();t.vxM(0===i.games.length?0:1)}}function Pe(o,u){1&o&&t.nrm(0,"outright-league-placeholders")}let ce=(()=>{class o{constructor(){this._outrightService=(0,t.WQX)(D.k),this._multipleLeaguesService=(0,t.WQX)(le.a),this._standardSidebarService=(0,t.WQX)(y.r),this._stabilityService=(0,t.WQX)(b.B),this._activatedRoute=(0,t.WQX)(n.nX),this.triggerScroll=0,this.triggerPipe=0,this.games=[],this.areOutrightsLoaded=!1,this._isLastPage=!1,this._shouldListenToLoadMore=!0,this._currentPage=0,this.MAX_EVENTS_PER_PAGE=20,this._fetchingInProgress=!1,this._subscriptions=[]}ngOnInit(){this._subscriptions.push(this._activatedRoute.queryParams.subscribe(()=>{this.games=this.games.filter(i=>{if(i.leagueId)return this._multipleLeaguesService.selectedLeagueIds.includes(i.leagueId)})}))}ngOnChanges(){this.triggerScroll&&this.handleScrolledToEnd()}ngOnDestroy(){this._subscriptions.forEach(i=>i.unsubscribe())}fetchForSport(){if(!this._fetchingInProgress){if(0===this._currentPage&&(this.games=[],this.areOutrightsLoaded=!1),this._multipleLeaguesService.selectedLeagueIds.length>1)return void this.fetchByLeagues();this._fetchingInProgress=!0,this._outrightService.fetchOutrightsForLeagueWithPagination(this._standardSidebarService.getSportId(),this._standardSidebarService.getRegionId(),this._standardSidebarService.getLeagueId(),this._standardSidebarService.selectedLeague.hasSeasons,this._currentPage,this.MAX_EVENTS_PER_PAGE).subscribe(i=>{const c=re.X.fromOutrightLeagueResponse(i);this.games=this.games.concat(c),this.areOutrightsLoaded=!0,this.checkLastPage(c.length),this._fetchingInProgress=!1})}}fetchByLeagues(){this.areOutrightsLoaded=!1,this._outrightService.getAntepostBySportAndLeagues(this._standardSidebarService.getSportId(),this._multipleLeaguesService.selectedLeagueIds).subscribe(i=>{this.games=re.X.fromOutrightLeagueResponse(i),this.areOutrightsLoaded=!0})}handleScrolledToEnd(){this._isLastPage||!this._shouldListenToLoadMore||(this._shouldListenToLoadMore=!1,this._currentPage++,this.fetchForSport())}checkLastPage(i){this._isLastPage=i<this.MAX_EVENTS_PER_PAGE,this._shouldListenToLoadMore=!this._isLastPage}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["league-page-outright"]],inputs:{triggerScroll:"triggerScroll",triggerPipe:"triggerPipe"},standalone:!0,features:[t.OA$,t.aNF],decls:3,vars:1,consts:[[1,"c-antepost-container"],[1,"c-no-results"],[1,"c-antepost-container__inner"],["icon","search-not-found",1,"c-no-results__icon"],[1,"c-no-results__title"],[1,"c-no-results__description"],[1,"c-event-game--antepost-league",3,"game","triggerPipe","isOutright"]],template:function(c,d){1&c&&(t.j41(0,"div",0),t.DNE(1,Ce,2,1)(2,Pe,1,0,"outright-league-placeholders"),t.k0s()),2&c&&(t.R7$(),t.vxM(d.areOutrightsLoaded?1:2))},dependencies:[V.CommonModule,Y.h,Y.D9,ne.A,M.D,ae.V,U,ie.X,ve.a],styles:[".c-no-results[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.c-no-results__title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:11px;color:var(--base-white-06);margin-bottom:10px}.c-no-results__description[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:21px;color:var(--base-white-06);margin-bottom:60px}.c-no-results__icon[_ngcontent-%COMP%]{display:block;margin:40px auto 25px;width:63px;height:64px;color:var(--base-white-06)}.c-no-results-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1 0 0;align-self:stretch}.c-no-results-cards__icon[_ngcontent-%COMP%]{display:block;width:48px;height:50.4px;color:var(--base-white-06);margin-bottom:25px}.c-event-header__league-favorite-icon-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:6px;cursor:pointer}.c-event-header__league-favorite-icon-wrap[_ngcontent-%COMP%]:hover   .c-event-header__league-favorite-icon[_ngcontent-%COMP%]{--favorite-fill-stroke: var(--baseYellow01);opacity:.9}.c-event-header__league-favorite-icon-wrap.selected[_ngcontent-%COMP%]   .c-event-header__league-favorite-icon[_ngcontent-%COMP%]{--favorite-fill-stroke: transparent;color:var(--base-yellow-01)}.c-event-header__league-favorite-icon[_ngcontent-%COMP%]{color:transparent;height:16px;--favorite-fill-stroke: var(--baseWhite16);width:16px}.c-betting-tabs[_ngcontent-%COMP%]{border-radius:4px;margin-bottom:10px;max-width:100%;display:flex;align-items:center;overflow-x:scroll;scrollbar-width:none;overflow:-moz-scrollbars-none}.c-betting-tabs[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.c-betting-tabs-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.c-betting-tab-tournament[_ngcontent-%COMP%]{cursor:pointer;min-width:110px;height:30px;border-radius:4px;overflow:hidden;padding:1px;background:linear-gradient(180deg,#facc01,#faa701);color:var(--base-yellow-01);transition:opacity .2s linear;margin-left:auto}.c-betting-tab-tournament[_ngcontent-%COMP%]:hover{opacity:.9}.c-betting-tab-tournament.c-betting-tab-tournament--active[_ngcontent-%COMP%]   .c-betting-tab-tournament__inner[_ngcontent-%COMP%]{background:#543200}.c-betting-tab-tournament__inner[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0c151b,#543200);border-radius:4px;
1height:100%;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px}.c-betting-tab-tournament__icon[_ngcontent-%COMP%]{flex-shrink:0;width:14px;height:13px}.c-betting-tab-tournament__text[_ngcontent-%COMP%]{font-family:var(--font-cond);font-weight:500;font-size:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-betting-tab[_ngcontent-%COMP%]{cursor:pointer;background-color:var(--baseBlack23);color:var(--baseWhite09);font-family:var(--font-cond);font-size:12px;line-height:30px;font-weight:500;transition:opacity .2s linear;text-transform:uppercase;min-width:110px;padding:0 5px;text-align:center;transition:opacity .2s ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-betting-tab[_ngcontent-%COMP%]:not(:last-of-type){border-right:1px solid var(--baseBlue60)}.c-betting-tab.c-betting-tab--selected[_ngcontent-%COMP%]{background-color:var(--baseYellow06);color:var(--baseBlack07)}.c-betting-tab[_ngcontent-%COMP%]:not(.c-betting-tab--selected):hover{opacity:.8}.c-betting-tab[_ngcontent-%COMP%]:nth-last-child(1){border-radius:0 4px 4px 0}.c-betting-tab[_ngcontent-%COMP%]:has( + .c-betting-tab-tournament)[_ngcontent-%COMP%]{margin-right:6px}.c-highlighted-section[_ngcontent-%COMP%]{border-radius:4px;padding:0 10px 10px}.c-highlighted-section.c-highlighted-section--live[_ngcontent-%COMP%]{background:var(--topLiveSectionBackground)}.c-highlighted-section.c-highlighted-section--default[_ngcontent-%COMP%]{background:var(--defaultSectionBackground)}.c-highlighted--early-payout-section[_ngcontent-%COMP%]{border-radius:4px;padding:0 10px 10px;background:linear-gradient(125deg,#1b443f,#1b443f00 25%),var(--baseBlack06);background-size:100% 100%;background-position:center}.c-highlighted--early-payout-section.c-highlighted-section--live[_ngcontent-%COMP%], .c-highlighted--early-payout-section.c-highlighted-section--default[_ngcontent-%COMP%]{background:linear-gradient(125deg,#1b443f,#1b443f00 25%),var(--baseBlack06)}
1.c-event-header__league-name[_ngcontent-%COMP%]{display:flex;align-items:center;position:sticky;position:-webkit-sticky;top:30px;border-bottom:1px solid var(--baseBlack02);width:100%;padding:4px 10px;background-color:var(--baseBlue26);color:var(--baseWhite16);font-family:var(--font-cond);font-weight:500;font-size:14px;text-align:left;z-index:var(--z-index-above-min);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout-section[_ngcontent-%COMP%]{min-width:280px;width:280px;display:flex;align-items:center}.c-event-header-early-payout-section-category[_ngcontent-%COMP%]{min-width:280px;width:280px;display:flex;align-items:center;text-transform:uppercase;font-size:16px;color:var(--white)}.c-event-header-early-payout-name-container[_ngcontent-%COMP%]{text-align:center;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header__league[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout__league-name[_ngcontent-%COMP%]{display:flex;align-items:center;position:sticky;position:-webkit-sticky;top:-13px;border-bottom:1px solid var(--baseBlack02);width:100%;padding:4px 10px;background-color:var(--baseBlue26);color:var(--baseWhite16);font-family:var(--font-cond);font-weight:500;font-size:14px;text-align:left;z-index:var(--z-index-above-min);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout-name[_ngcontent-%COMP%]{margin-left:auto;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-event-header__league-name-icon[_ngcontent-%COMP%]{width:22px;height:22px;margin-right:10px;color:var(--baseBlue10)}.c-event__league-wrapper[_ngcontent-%COMP%]:first-of-type   .c-event-header__league-name[_ng
1content-%COMP%]{border-top:none}"]})}}return o})();var E=s(43194),de=s(45408),se=s(31635),oe=s(23712),Te=s(96503),ue=s(67018),pe=s(40173),Z=s(22670),r=s(85375),p=s(23220),a=s(55406),l=s(98655);class g{constructor(){this._socketIoService=(0,t.WQX)(l.D),this._socketHandlerService=(0,t.WQX)(a.L),this.leaguesForSubscribe=[],this.subscribedLeagueIds=[],this._active=!1,this._selectedPositionsGetter=()=>[0,0,0]}activate(u){this._selectedPositionsGetter=u,this._active=!0,this.subscribeAll()}deactivate(){this._active=!1,this.unsubscribeAll(),this.leaguesForSubscribe=[]}registerFromHeader(u,i){!u||!(0,x.A)(u,"league.leagueId")||(i?this._resetAndRegisterLeague(u):this._registerLeague(u))}registerFromEvents(u,i){!i.length||!u.length||((0,oe.A)(u,c=>{const d=(0,Te.A)(c);if(!d||(0,ue.A)(this.leaguesForSubscribe,{leagueId:d}))return;const h=i.find(Q=>(0,x.A)(Q,"header.league.leagueId")===d);if(!h)return;const ee=(0,x.A)(h,"header.sport.sportId",0),K=(0,x.A)(h,"header.region.regionId",0);!ee||!K||this.leaguesForSubscribe.push({leagueId:d,regionId:K,sportId:ee})}),this.subscribeAll())}registerFromLeagues(u){u?.length&&(0,oe.A)(u,i=>{this.registerFromHeader((0,x.A)(i,"events[0].header"),!1)})}removeLeague(u){(0,pe.A)(this.subscribedLeagueIds,u)&&this._unsubscribeFromLeagueRoom(u),(0,Z.A)(this.leaguesForSubscribe,i=>i.leagueId===u),(0,Z.A)(this.subscribedLeagueIds,i=>i===u)}subscribeAll(){this._active&&(0,oe.A)(this.leaguesForSubscribe,u=>{(0,pe.A)(this.subscribedLeagueIds,u.leagueId)||(this.subscribedLeagueIds.push(u.leagueId),this._subscribeToSingleLeagueRoom(u.leagueId,u.regionId,u.sportId))})}unsubscribeAll(){(0,oe.A)(this.leaguesForSubscribe,u=>{this._unsubscribeFromLeagueRoom(u.leagueId)}),this.subscribedLeagueIds=[]}_registerLeague(u){const i=(0,x.A)(u,"league.leagueId"),c=(0,x.A)(u,"region.regionId"),d=(0,x.A)(u,"sport.sportId");(0,ue.A)(this.leaguesForSubscribe,{leagueId:i})||(this.leaguesForSubscribe.push({leagueId:i,regionId:c,sportId:d}),this.subscribeAll())}_resetAndRegisterLeague(u){const i=(0,x.A)(u,"league.leagueId"),c=(0,x.A)(u,"region.regionId"),d=(0,x.A)(u,"sport.sportId");1===this.leaguesForSubscribe.length&&this.leaguesForSubscribe[0].leagueId===i&&(0,pe.A)(this.subscribedLeagueIds,i)||(this.leaguesForSubscribe.length>0&&this.unsubscribeAll(),this.leaguesForSubscribe=[{leagueId:i,regionId:c,sportId:d}],this.subscribedLeagueIds=[],this.subscribeAll())}_subscribeToSingleLeagueRoom(u,i,c){this._socketIoService.subscribe(p.fu.OFFER_STANDARD_WITH_LIVE,this._socketHandlerService.createSubscriberLeagueParamsObject(c,i,u,this._selectedPositionsGetter(),p.ej.OFFER_UPDATE_OFFER_LEAGUE))}_unsubscribeFromLeagueRoom(u){const i=(0,ue.A)(this.leaguesForSubscribe,{leagueId:u});i&&this._socketIoService.unsubscribe(p.fu.OFFER_STANDARD_WITH_LIVE,this._socketHandlerService.createUnSubscriberLeagueParams(i.sportId,i.regionId,i.leagueId))}static{this.\u0275fac=function(i){return new(i||g)}}static{this.\u0275prov=t.jDH({token:g,factory:g.\u0275fac})}}(0,se.Cg)([r.X],g.prototype,"subscribeAll",null),(0,se.Cg)([r.X],g.prototype,"unsubscribeAll",null),(0,se.Cg)([r.X],g.prototype,"_subscribeToSingleLeagueRoom",null),(0,se.Cg)([r.X],g.prototype,"_unsubscribeFromLeagueRoom",null);var z=s(92806),X=s(3385),q=s(34405),J=s(42853),_e=s(30925),me=s(68865),Ge=s(87809),De=s(29849),Se=s(69857),Ne=s(30335),Oe=s(21025),Le=s(28411),je=s(55975),Ue=s(5745),Xe=s(56160),Ve=s(51538),ze=s(54103);function We(o,u){1&o&&(t.j41(0,"div",1)(1,"div",2),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"p",3),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&o&&(t.R
17$(2),t.JRh(t.bMT(3,2,"general.no_results")),t.R7$(3),t.JRh(t.bMT(6,4,"general.no_bet_boosts")))}function Ye(o,u){if(1&o&&(t.j41(0,"div")(1,"span"),t.EFF(2),t.nI1(3,"getRivalName"),t.k0s(),t.j41(4,"span"),t.EFF(5," - "),t.k0s(),t.j41(6,"span"),t.EFF(7),t.nI1(8,"getRivalName"),t.k0s()(),t.j41(9,"div",7),t.EFF(10),t.nI1(11,"date"),t.k0s()),2&o){const i=t.XpG(2).$implicit;t.R7$(2),t.JRh(t.i5U(3,3,null==i[0]||null==i[0].header?null:i[0].header.rivals,0)),t.R7$(5),t.JRh(t.i5U(8,6,null==i[0]||null==i[0].header?null:i[0].header.rivals,1)),t.R7$(3),t.JRh(t.i5U(11,9,null==i[0]||null==i[0].header?null:i[0].header.startTime,"dd/MM HH:mm"))}}function He(o,u){if(1&o&&(t.j41(0,"div",8),t.nrm(1,"app-bet-boost-card-list",9),t.k0s()),2&o){const i=t.XpG(2).$implicit,c=t.XpG(2);t.R7$(),t.Y8G("betBoosts",i)("betBoostView",c.BET_BOOST_VIEW.LEAGUE_PAGE)}}function Je(o,u){if(1&o&&(t.j41(0,"div",4)(1,"div",5),t.DNE(2,Ye,12,12),t.k0s(),t.DNE(3,He,2,2,"div",6),t.k0s()),2&o){const i=t.XpG().$implicit;t.R7$(2),t.vxM(i?2:-1),t.R7$(),t.Y8G("ngIf","ACTIVE"===(null==i[0]||null==i[0].market?null:i[0].market.marketState))}}function Qe(o,u){if(1&o&&t.DNE(0,Je,4,2,"div",4),2&o){const i=u.$implicit;t.vxM("ACTIVE"===(null==i[0]||null==i[0].market?null:i[0].market.marketState)?0:-1)}}function Ke(o,u){if(1&o&&t.Z7z(0,Qe,1,1,null,null,t.fX1),2&o){const i=t.XpG();t.Dyx(i.betBoostEvents())}}class fe{constructor(u,i,c,d,h){this.oddsFormatService=u,this._betBoostService=i,this._socketHandlerService=c,this.ticketService=d,this._socketIoService=h,this.changeTab=new t.bkB,this.SINGLE_BOOST=Oe.Ro.SINGLE_BOOST,this.BET_BOOST=Oe.Ro.BET_BOOST,this.selectedTab=Oe.Ro.BET_BOOST,this.SPORT_ID_MAP=Ue.s,this._subscriptions=[],this.BET_BOOST_VIEW=Oe.Q5,this.betBoostEvents=(0,t.EWP)(()=>(0,f.A)((0,Ne.A)(this._betBoostService.betBoosts(),K=>K.header.eventId),K=>K.map(Q=>new Oe.Xw(Q)).sort(this._sortBetBoosts.bind(this))).sort((K,Q)=>{const Me=K[0],ye=Q[0],Ae=(ye.market.superBooster?1:0)-(Me.market.superBooster?1:0);if(0!==Ae)return Ae;const $e=Me.header.startTime-ye.header.startTime;return 0!==$e?$e:Me.header.eventId-ye.header.eventId}))}ngOnInit(){this._setBetBoostOffer(),this._subscribeToBetBoostUpdateRoom(),this._subscribeToBetBoostUpdate()}ngOnDestroy(){this._unsubscribeFromBetBoostUpdateRoom(),(0,oe.A)(this._subscriptions,u=>u.unsubscribe())}_setBetBoostOffer(){this._betBoostService.getBetBoostLeagueOffer(this.leagueId)}_sortBetBoosts(u,i){const c=(i.market.superBooster?1:0)-(u.market.superBooster?1:0);if(0!==c)return c;const d=u.header.startTime-i.header.startTime;return 0!==d?d:u.header.eventId-i.header.eventId}_subscribeToBetBoostUpdateRoom(){this.sportId&&this._socketIoService.subscribe(p.fu.BET_BOOST_LEAGUE_UPDATE,this._socketHandlerService.formatSubscriptionForBetBoostLeague(this.sportId,this.regionId,this.leagueId))}_unsubscribeFromBetBoostUpdateRoom(){this.sportId&&this._socketIoService.unsubscribe(p.fu.BET_BOOST_LEAGUE_UPDATE,this._socketHandlerService.formatUnSubscriptionForBetBoostLeague(this.sportId,this.regionId,this.leagueId))}_subscribeToBetBoostUpdate(){this._subscriptions.push(this._socketHandlerService.leagueBetBoostUpdate$.subscribe(u=>{this._betBoostService.updateBetBoost(u)}))}static{this.\u0275fac=function(i){return new(i||fe)(t.rXU(Ve.$),t.rXU(Le.e),t.rXU(a.L),t.rXU(ze.Y),t.rXU(l.D))}}static{this.\u0275cmp=t.VBU({type:fe,selectors:[["betting-bet-boost"]],inputs:{leagueId:"leagueId",sportId:"sportId",regionId:"regionId"},outputs:{changeTab:"changeTab"},standalone:!0,features:[t.Jv_([Le.e]),t.aNF],decls:3,vars:2,consts:[[1,"c-betting-bet-boost"],[1,"c-no-results"],[1,"c-no-results__title"],[1,"c-no-results__description"],[1,"c-section-wrapper","c-section-wrapper--bet-boost"],[1,"c-betting-boost-card__rivals"],["class","c-betting-bet-boost__card has-right-shadow",4,"ngIf"],[1,"c-betting-boost-card__rivals--time"],[1,"c-betting-bet-boost__card","has-right-shadow"],["id","single-betboost-slider",3,"betBoosts","betBoostView"]],template:function(i,c){1&i&&(t.j41(0,"div",0),t.DNE(1,We,7,6,"div",1)(2,Ke,2,0),t.k0s()),2&i&&(t.R7$(),t.vxM(c.betBoostEvents().length?-1:1),t.R7$(),t.vxM(c.betBoostEvents().length?2:-1))},dependencies:[V.CommonModule,V.NgIf,V.DatePipe,Y.h,Y.D9,je.G,Xe.O],styles:["[_nghost-%COMP%]{display:flex}.c-betting-bet-boost[_ngcontent-%COMP%]{flex:1;min-width:0;font-family:var(--font-cond);min-height:40vh}
1.c-betting-bet-boost__card[_ngcontent-%COMP%]{gap:15px;overflow:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scroll-snap-align:start;scroll-snap-stop:always;scrollbar-width:none;overflow:-moz-scrollbars-none}.c-betting-bet-boost__card[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.c-betting-bet-boost-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:var(--betBoostBg);padding:10px;mask-image:linear-gradient(to left,var(--black-t-5) 0%,var(--black) 10%);-webkit-mask-image:linear-gradient(to left,var(--black-t-5) 0%,var(--black) 10%)}.c-betting-boost-card__rivals[_ngcontent-%COMP%]{color:var(--baseTextColor03);font-size:12px;min-height:30px;display:flex;justify-content:space-between;background-color:var(--betboostLeaugeHeaderBg);align-items:center;padding-right:12px;padding-left:14px}.c-betting-boost-card__rivals--time[_ngcontent-%COMP%]{color:var(--betboostBettingRivalColor);font-size:12px}.c-section-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;padding-bottom:12px;border-radius:4px}.c-section-wrapper.c-section-wrapper--bet-boost[_ngcontent-%COMP%]{background:var(--betboostBackgroundLeagueColor)}"]})}}(0,se.Cg)([r.X],fe.prototype,"_setBetBoostOffer",null);var Ze=s(95447),qe=s(95977),Ee=s(87249),et=s(45906),tt=s(18158),nt=s(46048),it=s(52746),at=s(37606),st=s(80439);const Re=o=>({"c-event-wrapper-with-border":o}),ot=o=>({selected:o});function rt(o,u){1&o&&t.nrm(0,"event-placeholder")}function lt(o,u){if(1&o&&(t.nrm(0,"event-header-placeholder"),t.Z7z(1,rt,1,0,"event-placeholder",null,t.Vm6)),2&o){const i=t.XpG();t.R7$(),t.Dyx(i.placeholders)}}function ct(o,u){if(1&o){const i=t.RV6();t.j41(0,"event-header",2),t.bIt("changePositionEmit",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.changePositionEmit.emit(d))}),t.k0s()}if(2&o){const i=t.XpG();t.Y8G("actionPlaceholder",!0)("selectedPositions",i.selectedPositions)("currentSport",i.currentSport)("sportPositions",i.sportPositions)("configuredPositions",i.configuredPositions)("numberOfMarkets",i.numberOfMarkets)}}function gt(o,u){if(1&o&&t.nrm(0,"live-event",3),2&o){const i=t.XpG(),c=i.$implicit,d=i.$index,h=t.XpG(2);t.Y8G("event",c)("triggerPipe",c.resultTrigger)("selectionTrigger",c.selectionTrigger)("numberOfMarkets",h.numberOfMarkets)("isLastElement",h.events.length===d+1)}}function dt(o,u){if(1&o&&t.nrm(0,"standard-event",4),2&o){const i=t.XpG(),c=i.$implicit,d=i.$index,h=t.XpG(2);t.Y8G("event",c)("resultTrigger",c.resultTrigger)("triggerPipe",h.triggerPipe)("selectionTrigger",c.selectionTrigger)("configuredPositions",h.configuredPositions)("numberOfMarkets",h.numberOfMarkets)("isLastElement",h.events.length===d+1)}}function ut(o,u){if(1&o&&t.DNE(0,gt,1,5,"live-event",3)(1,dt,1,7,"standard-event",4),2&o){const i=u.$implicit,c=t.XpG(2);t.vxM(i.header.offerSubType===c.LIVE_BET?0:1)}}function pt(o,u){if(1&o&&(t.j41(0,"div",1),t.Z7z(1,ut,2,1,null,null,t.fX1),t.k0s()),2&o){const i=t.XpG();t.Y8G("ngClass",t.eq3(1,Re,!i.configuredPositions)),t.R7$(),t.Dyx(i.events)}}function ht(o,u){if(1&o&&t.nrm(0,"live-event",10),2&o){const i=t.XpG(),c=i.$implicit,d=i.$index,h=t.XpG(3);t.Y8G("event",c)("triggerPipe",c.resultTrigger)("selectionTrigger",c.selectionTrigger)("numberOfMarkets",h.numberOfMarkets)("isLastElement",h.events.length===d+1)("isOnRegionOrLeaguePage",!0)}}function _t(o,u){if(1&o&&t.nrm(0,"standard-event",11),2&o){const i=t.XpG(),c=i.$implicit,d=i.$index,h=t.XpG(),ee=h.$implicit,K=h.$index,Q=t.XpG(2);t.Y8G("event",c)("resultTrigger",c.resultTrigger)("triggerPipe",Q.triggerPipe)("selectionTrigger",c.selectionTrigger)("configuredPositions",Q.configuredPositions)("sholudShowLeagueInfo",!1)("numberOfMarkets",Q.numberOfMarkets)("isLastElement",ee.events.length===d+1&&Q.leagues.length===K+1)}}function mt(o,u){if(1&o&&t.DNE(0,ht,1,6,"live-event",10)(1,_t,1,8,"standard-event",11),2&o){const i=u.$implicit,c=t.XpG(3);t.vxM(i.header.offerSubType===c.LIVE_BET?0:1)}}function ft(o,u){if(1&o){const i=t.RV6();t.j41(0,"div",5)(1,"div",6),t.nI1(2,"translate"),t.bIt("click",function(){const d=t.eBV(i).$implicit,h=t.XpG(2);return t.Njj(h.toggleFavoriteLeagueEmit.emit(d))}),t.nrm(3,"svg-icon",7),t.k0s(),t.nrm(4,"svg-icon",8),t.EFF(5),t.k0s(),t.j41(6,"div",9),t.Z7z(7,mt,2,1,null,null,t.fX1),t.k0s()}if(2&o){const i=u.$implicit,c=t.XpG(2);t.R7$(),t.FS9("tooltip-text",t.bMT(2,8,"general.login_to_add_favorite_leagues")),t.Y8G("tooltip-disabled",c.isLoggedIn)("ngClass",t.eq3(10,ot,i.favoriteLeague)),t.R7$(3),t.FS9("icon",null==i?null:i.regionSlug),t.Y8G("flag",!0),t.R7$(),t.Lme(" ",i.regionName," - ",i.leagueName," "),t.R7$(),t.Y8G("ngClass",t.eq3(12,Re,!c.configuredPositions)),t.R7$(),t.Dyx(i.events)}}function vt(o,u){if(1&o&&t.Z7z(0,ft,9,14,null,null,t.fX1),2&o){const i=t.XpG();t.Dyx(i.leagues)}}let Ie=(()=>{class o{constructor(){this.events=[],this.leagues=[],this.searchByLeague=_.ly.LEAGUE,this.selectedPositions=[0,0,0],this.sportPositions=[],this.configuredPositions=!0,this.triggerPipe=0,this.placeholders=[],this.isLoggedIn=!1,this.forcedOutrightTab=!1,this.changePositionEmit=new t.bkB,this.toggleFavoriteLeagueEmit=new t.bkB,this.feedUpdate=new t.bkB,this.LIVE_BET=Ze.lF,this.SEARCH_BY_LEAGUE_LEAGUE=_.ly.LEAGUE,this.SEARCH_BY_LEAGUE_EVENTS="events",this._socketsService=(0,t.WQX)(g),this._socketHandlerService=(0,t.WQX)(a.L),this._subscriptions=[]}ngOnInit(){this._socketsService.activate(()=>this.selectedPositions),this._subscriptions.push(this._socketHandlerService.updateStandardSportOffer$.subscribe(i=>{this.feedUpdate.emit(i)}))}ngOnDestroy(){this._socketsService.deactivate(),this._subscriptions.forEach(i=>
1i.unsubscribe())}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["league-page-matches"]],inputs:{events:"events",leagues:"leagues",searchByLeague:"searchByLeague",selectedPositions:"selectedPositions",sportPositions:"sportPositions",currentSport:"currentSport",configuredPositions:"configuredPositions",numberOfMarkets:"numberOfMarkets",triggerPipe:"triggerPipe",placeholders:"placeholders",isLoggedIn:"isLoggedIn",forcedOutrightTab:"forcedOutrightTab"},outputs:{changePositionEmit:"changePositionEmit",toggleFavoriteLeagueEmit:"toggleFavoriteLeagueEmit",feedUpdate:"feedUpdate"},standalone:!0,features:[t.aNF],decls:4,vars:3,consts:[[3,"actionPlaceholder","selectedPositions","currentSport","sportPositions","configuredPositions","numberOfMarkets"],[3,"ngClass"],[3,"changePositionEmit","actionPlaceholder","selectedPositions","currentSport","sportPositions","configuredPositions","numberOfMarkets"],[3,"event","triggerPipe","selectionTrigger","numberOfMarkets","isLastElement"],[3,"event","resultTrigger","triggerPipe","selectionTrigger","configuredPositions","numberOfMarkets","isLastElement"],[1,"c-event-header__league-name"],["tooltip","",1,"c-event-header__league-favorite-icon-wrap",3,"click","tooltip-text","tooltip-disabled","ngClass"],["icon","favorite-casino",1,"c-event-header__league-favorite-icon"],[1,"c-event-header__league-name-icon",3,"flag","icon"],[1,"c-event__league-wrapper",3,"ngClass"],[3,"event","triggerPipe","selectionTrigger","numberOfMarkets","isLastElement","isOnRegionOrLeaguePage"],[3,"event","resultTrigger","triggerPipe","selectionTrigger","configuredPositions","sholudShowLeagueInfo","numberOfMarkets","isLastElement"]],template:function(c,d){1&c&&t.DNE(0,lt,3,0)(1,ct,1,6,"event-header",0)(2,pt,3,3,"div",1)(3,vt,2,0),2&c&&(t.vxM(0===d.events.length&&"events"===d.searchByLeague||0===d.leagues.length&&"events"!==d.searchByLeague?0:-1),t.R7$(),t.vxM(0!==d.events.length&&"events"===d.searchByLeague||0!==d.leagues.length&&"events"!==d.searchByLeague?1:-1),t.R7$(),t.vxM("events"===d.searchByLeague?2:3))},dependencies:[V.CommonModule,V.NgClass,Y.h,Y.D9,et.U,tt.L,nt.y,it.g,qe.M,at.m,st.l,ne.A,M.D,Ee.l,Ee.d],styles:[".c-no-results[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.c-no-results__title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:11px;color:var(--base-white-06);margin-bottom:10px}.c-no-results__description[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:21px;color:var(--base-white-06);margin-bottom:60px}.c-no-results__icon[_ngcontent-%COMP%]{display:block;margin:40px auto 25px;width:63px;height:64px;color:var(--base-white-06)}.c-no-results-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1 0 0;align-self:stretch}.c-no-results-cards__icon[_ngcontent-%COMP%]{display:block;width:48px;height:50.4px;color:var(--base-white-06);margin-bottom:25px}.c-event-header__league-favorite-icon-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:6px;cursor:pointer}.c-event-header__league-favorite-icon-wrap[_ngcontent-%COMP%]:hover   .c-event-header__league-favorite-icon[_ngcontent-%COMP%]{--favorite-fill-stroke: var(--baseYellow01);opacity:.9}.c-event-header__league-favorite-icon-wrap.selected[_ngcontent-%COMP%]   .c-event-header__league-favorite-icon[_ngcontent-%COMP%]{--favorite-fill-stroke: transparent;color:var(--base-yellow-01)}.c-event-header__league-favorite-icon[_ngcontent-%COMP%]{color:transparent;height:16px;--favorite-fill-stroke: var(--baseWhite16);width:16px}.c-betting-tabs[_ngcontent-%COMP%]{border-radius:4px;margin-bottom:10px;max-width:100%;display:flex;align-items:center;overflow-x:scroll;scrollbar-width:none;overflow:-moz-scrollbars-none}.c-betting-tabs[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.c-betting-tabs-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.c-betting-tab-tournament[_ngcontent-%COMP%]{cursor:pointer;min-width:110px;height:30px;border-radius:4px;overflow:hidden;padding:1px;background:linear-gradient(180deg,#facc01,#faa701);color:var(--base-yellow-01);transition:opacity .2s linear;margin-left:auto}.c-betting-tab-tournament[_ngcontent-%COMP%]:hover{opacity:.9}.c-betting-tab-tournament.c-betting-tab-tournament--active[_ngcontent-%COMP%]   .c-betting-tab-tournament__inner[_ngcontent-%COMP%]{background:#543200}.c-betting-tab-tournament__inner[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0c151b,#543200);border-radius:4px;
1height:100%;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px}.c-betting-tab-tournament__icon[_ngcontent-%COMP%]{flex-shrink:0;width:14px;height:13px}.c-betting-tab-tournament__text[_ngcontent-%COMP%]{font-family:var(--font-cond);font-weight:500;font-size:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-betting-tab[_ngcontent-%COMP%]{cursor:pointer;background-color:var(--baseBlack23);color:var(--baseWhite09);font-family:var(--font-cond);font-size:12px;line-height:30px;font-weight:500;transition:opacity .2s linear;text-transform:uppercase;min-width:110px;padding:0 5px;text-align:center;transition:opacity .2s ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-betting-tab[_ngcontent-%COMP%]:not(:last-of-type){border-right:1px solid var(--baseBlue60)}.c-betting-tab.c-betting-tab--selected[_ngcontent-%COMP%]{background-color:var(--baseYellow06);color:var(--baseBlack07)}.c-betting-tab[_ngcontent-%COMP%]:not(.c-betting-tab--selected):hover{opacity:.8}.c-betting-tab[_ngcontent-%COMP%]:nth-last-child(1){border-radius:0 4px 4px 0}.c-betting-tab[_ngcontent-%COMP%]:has( + .c-betting-tab-tournament)[_ngcontent-%COMP%]{margin-right:6px}.c-highlighted-section[_ngcontent-%COMP%]{border-radius:4px;padding:0 10px 10px}.c-highlighted-section.c-highlighted-section--live[_ngcontent-%COMP%]{background:var(--topLiveSectionBackground)}.c-highlighted-section.c-highlighted-section--default[_ngcontent-%COMP%]{background:var(--defaultSectionBackground)}.c-highlighted--early-payout-section[_ngcontent-%COMP%]{border-radius:4px;padding:0 10px 10px;background:linear-gradient(125deg,#1b443f,#1b443f00 25%),var(--baseBlack06);background-size:100% 100%;background-position:center}.c-highlighted--early-payout-section.c-highlighted-section--live[_ngcontent-%COMP%], .c-highlighted--early-payout-section.c-highlighted-section--default[_ngcontent-%COMP%]{background:linear-gradient(125deg,#1b443f,#1b443f00 25%),var(--baseBlack06)}
1.c-event-header__league-name[_ngcontent-%COMP%]{display:flex;align-items:center;position:sticky;position:-webkit-sticky;top:30px;border-bottom:1px solid var(--baseBlack02);width:100%;padding:4px 10px;background-color:var(--baseBlue26);color:var(--baseWhite16);font-family:var(--font-cond);font-weight:500;font-size:14px;text-align:left;z-index:var(--z-index-above-min);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout-section[_ngcontent-%COMP%]{min-width:280px;width:280px;display:flex;align-items:center}.c-event-header-early-payout-section-category[_ngcontent-%COMP%]{min-width:280px;width:280px;display:flex;align-items:center;text-transform:uppercase;font-size:16px;color:var(--white)}.c-event-header-early-payout-name-container[_ngcontent-%COMP%]{text-align:center;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header__league[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout__league-name[_ngcontent-%COMP%]{display:flex;align-items:center;position:sticky;position:-webkit-sticky;top:-13px;border-bottom:1px solid var(--baseBlack02);width:100%;padding:4px 10px;background-color:var(--baseBlue26);color:var(--baseWhite16);font-family:var(--font-cond);font-weight:500;font-size:14px;text-align:left;z-index:var(--z-index-above-min);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout-name[_ngcontent-%COMP%]{margin-left:auto;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-event-header__league-name-icon[_ngcontent-%COMP%]{width:22px;height:22px;margin-right:10px;color:var(--baseBlue10)}.c-event__league-wrapper[_ngcontent-%COMP%]:first-of-type   .c-event-header__league-name[_ng
1content-%COMP%]{border-top:none}"]})}}return o})(),bt=(()=>{class o{static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["league-teams-tab"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(c,d){1&c&&t.nrm(0,"router-outlet")},dependencies:[n.n3],encapsulation:2})}}return o})(),xt=(()=>{class o{constructor(){this.state=(0,t.WQX)(de.h)}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["league-groups-tab"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(c,d){1&c&&t.nrm(0,"router-outlet")},dependencies:[n.n3],styles:[".c-tournament-groups[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(1,1fr);gap:10px;padding:12px 10px 30px}@media (min-width: 1024px){.c-tournament-groups[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (min-width: 1400px){.c-tournament-groups[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}.c-tournament-group-placeholder[_ngcontent-%COMP%]{border:1px solid var(--baseBlack20);border-radius:6px;background:var(--tournamentGroupInnerBg);color:var(--baseWhite01);padding:10px 14px;height:113px}.c-group-standings__title[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;background:var(--baseBlue81);font-weight:500;width:100%;padding:8px 10px;color:var(--baseGrey26);font-family:var(--font-cond)}"]})}}return o})(),Ct=(()=>{class o{constructor(){this.state=(0,t.WQX)(de.h)}ngOnInit(){this.state.scrollToTop()}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["league-players-tab"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(c,d){1&c&&t.nrm(0,"router-outlet")},dependencies:[n.n3],encapsulation:2})}}return o})();var Fe=s(23984),Be=s(32550),ke=s(56479);const he=(o,u)=>({"c-betting-tab--selected":o,"disabled-button":u}),Pt=o=>({"c-betting-tab--selected":o}),Tt=o=>({"c-betting-tab-tournament--active":o});function Ot(o,u){if(1&o){const i=t.RV6();t.j41(0,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG(3);return t.Njj(h.changeTab(h.GROUPS,d))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&o){const i=t.XpG(3);t.Y8G("ngClass",t.l_i(4,he,i.activeTab===i.GROUPS,i.multipleLeaguesSelected)),t.R7$(),t.SpI(" ",t.bMT(2,2,"general.groups")," ")}}function Mt(o,u){if(1&o){const i=t.RV6();t.j41(0,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG(3);return t.Njj(h.changeTab(h.PLAY_OFF,d))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&o){const i=t.XpG(3);t.Y8G("ngClass",t.l_i(4,he,i.activeTab===i.PLAY_OFF,i.multipleLeaguesSelected)),t.R7$(),t.SpI(" ",t.bMT(2,2,"general.play_off")," ")}}function yt(o,u){if(1&o){const i=t.RV6();t.j41(0,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG(3);return t.Njj(h.changeTab(h.STANDINGS,d))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&o){const i=t.XpG(3);t.Y8G("ngClass",t.l_i(4,he,i.activeTab===i.STANDINGS,i.multipleLeaguesSelected)),t.R7$(),t.SpI(" ",t.bMT(2,2,"general.standings")," ")}}function St(o,u){if(1&o){const i=t.RV6();t.DNE(0,Ot,3,7,"span",15)(1,Mt,3,7,"span",15),t.j41(2,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG(2);return t.Njj(h.changeTab(h.TEAMS,d))}),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,yt,3,7,"span",15),t.j41(6,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG(2);return t.Njj(h.changeTab(h.PLAYERS,d))}),t.EFF(7),t.nI1(8,"translate"),t.k0s()}if(2&o){const i=t.XpG(2);t.vxM(i.hasGroupsTab()?0:-1),t.R7$(),t.vxM(i.hasPlayOffTab()?1:-1),t.R7$(),t.Y8G("ngClass",t.l_i(11,he,i.activeTab===i.TEAMS,i.multipleLeaguesSelected)),t.R7$(),t.SpI(" ",t.bMT(4,7,"general.teams")," "),t.R7$(2),t.vxM(i.hasStandingsTab()?5:-1),t.R7$(),t.Y8G("ngClass",t.l_i(14,he,i.activeTab===i.PLAYERS,i.multipleLeaguesSelected)),t.R7$(),t.SpI(" ",t.bMT(8,9,"general.players")," ")}}function Lt(o,u){if(1&o){const i=t.RV6();t.j41(0,"span",16),t.bIt("click",function(d){t.eBV(i);const h=t.XpG(2);return t.Njj(h.changeTab(h.CASINO_TOURNAMENT,d))}),t.j41(1,"span",17),t.nrm(2,"svg-icon",18),t.j41(3,"span",19),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()}if(2&o){const i=t.XpG(2);t.Y8G("ngClass",t.eq3(4,Tt,i.activeTab===i.CASINO_TOURNAMENT)),t.R7$(4),t.JRh(t.bMT(5,2,"general.tournament"))}}function Et(o,u){if(1&o){const i=t.RV6();t.j41(0,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.changeTab(h.MATCHES,d))}),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.changeTab(h.BET_BOOST,d))}),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.DNE(6,St,9,17),t.j41(7,"span",13),t.bIt("click",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.changeTab(h.OUTRIGHT,d))}),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.DNE(10,Lt,6,6,"span",14)}if(2&o){const i=t.XpG();t.Y8G("ngClass",t.l_i(14,he,i.activeTab===i.MATCHES,("leagues"===i.searchByLeague?0===i.leagues.length:0===i.events.length)&&!i.forcedOutrightTab)),t.R7$(),t.SpI(" ",t.bMT(2,8,"general.matches")," "),t.R7$(2),t.Y8G("ngClass",t.l_i(17,he,i.activeTab===i.BET_BOOST,i.multipleLeaguesSelected||!(null!=i.leagues[0]&&i.leagues[0].betBooster))),t.R7$(),t.SpI(" ",t.bMT(5,10,"general.bet_boost_tab")," "),t.R7$(2),t.vxM(i.hasSessions?6:-1),t.R7$(),t.Y8G("ngClass",t.eq3(20,Pt,i.activeTab===i.OUTRIGHT)),t.R7$(),t.SpI(" ",t.bMT(9,12,"general.outrights")," "),t.R7$(2),t.vxM(i.isTournamentLeagueComputed()?10:-1)}}function Rt(o,u){1&o&&(t.j41(0,"div",7),t.nrm(1,"div",20),t.k0s())}function It(o,u){if(1&o){const i=t.RV6();t.j41(0,"league-page-matches",21),t.bIt("changePositionEmit",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.changePosition(d))})("toggleFavoriteLeagueEmit",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.toggleFavoriteLeague(d))})("feedUpdate",function(d){t.eBV(i);const h=t.XpG();return t.Njj(h.onMatchesFeedUpdate(d))}),t.k0s()}if(2&o){const i=t.XpG();t.Y8G("events",i.events)("leagues",i.leagues)("searchByLeague",i.searchByLeague)("selectedPositions",i.selectedPositions)("sportPositions",i.sportPositions)("currentSport",i.currentSport)("configuredPositions",i.configuredPositions)("numberOfMarkets",i.numberOfMarkets)("triggerPipe",i.triggerPipe)("placeholders",i.placeholders)("isLoggedIn",i.isLoggedIn)("forcedOutrightTab",i.forcedOutrightTab)}}function Ft(o,u){if(1&o){const i=t.RV6();t.j41(0,"betting-bet-boost",22),t.bIt("changeTab",function(){t.eBV(i);const d=t.XpG();return t.Njj(d.changeTab(d.MATCHES))}),t.k0s()}if(2&o){const i=t.XpG();t.Y8G("leagueId",i.leagues[0].leagueId)("sportId",null==i.currentSport?null:i.currentSport.sportId)("regionId",i.leagues[0].regionId)}}function Bt(o,u){1&o&&t.nrm(0,"league-groups-tab")}
1function kt(o,u){1&o&&t.nrm(0,"league-play-off-tab")}function wt(o,u){1&o&&t.nrm(0,"league-teams-tab")}function At(o,u){1&o&&t.nrm(0,"league-standings-tab")}function $t(o,u){1&o&&t.nrm(0,"league-players-tab")}function Gt(o,u){if(1&o&&t.nrm(0,"league-page-outright",10),2&o){const i=t.XpG();t.Y8G("triggerScroll",i.triggerScroll)("triggerPipe",i.triggerPipe)}}function Dt(o,u){1&o&&t.nrm(0,"league-casino-tournament")}function Nt(o,u){if(1&o&&t.nrm(0,"seo-content",11),2&o){const i=t.XpG();t.Y8G("pageTitle",i.currentSeoContent.pageTitle)}}const we=[{path:"",component:(()=>{class o extends R.p{constructor(){super(...arguments),this._translateService=(0,t.WQX)(Y.c$),this.translatedTabPaths=(0,E.eM)(this._translateService),this.searchByTime=_.tE.ALL,this.searchByLeague=_.ly.LEAGUE,this.leagueId=(0,t.vPA)(void 0),this.isEventsTabDisabled=!1,this.pageName=F.Bi.LEAGUE,this.multipleLeaguesSelected=!1,this.hasSessions=!1,this.loadingTabs=!0,this.CASINO_TOURNAMENT="tournaments",this._pendingOutrightFetch=!1,this.statisticsTabsResolved=!1,this._router=(0,t.WQX)(n.Ix),this._statisticsHttpService=(0,t.WQX)(z.T),this._statisticsStoreService=(0,t.WQX)(X.u),this._socketsService=(0,t.WQX)(g),this._restConfigurationService=(0,t.WQX)(q.M),this._statisticsLeagueContext=(0,t.vPA)(null),this.hasGroupsTab=(0,t.EWP)(()=>"GROUPS"===this._statisticsStoreService.leagueStage()?.displayType),this.hasStandingsTab=(0,t.EWP)(()=>!("STANDINGS"!==this._statisticsStoreService.leagueStage()?.displayType||!this._statisticsStoreService.leagueStage()?.display)),this.hasPlayOffTab=(0,t.EWP)(()=>!(!this._statisticsStoreService.cupStage()||!this._statisticsStoreService.cupStage()?.display)),this.isTournamentLeagueComputed=(0,t.EWP)(()=>function H(o,u){return!(!o||!u)&&u.split(",").map(i=>Number(i.trim())).includes(o)}(this.leagueId(),this._restConfigurationService.getGeneralCustomConfigurationParams("sportTournamentLeagueList"))),this._statisticsLeagueEffect=(0,t.QZP)(()=>{this.hasSessions=!1,this.statisticsTabsResolved=!1;const i=this._statisticsLeagueContext();if(!i)return void this._resetStatisticsStoreState();const{sport:c,league:d}=i;if(this.hasSessions=!!d.hasSeasons,this.loadingTabs=!1,this._resetStatisticsStoreState(),this._statisticsStoreService.international.set(d.international||!1),!d.hasSeasons)return this.statisticsTabsResolved=!0,void this._redirectIfStatisticsTabUnavailable();this._statisticsHttpService.getLatestSeason(c?.sportId?.toString()||"",d?.leagueId?.toString()||"").pipe((0,I.n)(h=>(this._statisticsStoreService.currentSeason.set(h),this._statisticsHttpService.getStages(c?.sportId?.toString()||"",d?.leagueId?.toString()||"",h.seasonId)))).subscribe(h=>{const ee=h.stages.find(Q=>"LEAGUE"===Q.type);ee&&this._statisticsStoreService.leagueStage.set(ee);const K=h.stages.find(Q=>"CUP"===Q.type);K&&this._statisticsStoreService.cupStage.set(K),this.statisticsTabsResolved=!0,this._redirectIfStatisticsTabUnavailable()})},{allowSignalWrites:!0})}ngOnInit(){super.ngOnInit(),this._sportService.searchByTime=_.tE.ALL,this._initActiveTabFromRoute(),this._subscribeOnTabRouteChanges(),this._subscribeOnQueryParams(),W.R.isBrowser&&(this._subscribeOnFetchMultipleLeagues(),this._subscribeOnRemoveMultipleLeague(),this._subscribeOnResetMultipleLeague(),this._subscribeOnFetchMultipleLeaguesOverride(),this._subscribeOnLoadMore(),this._subscribeToNewAddingNewLeagues())}ngOnDestroy(){super.ngOnDestroy(),this._multipleLeaguesService.clearLeagues(),this._sportService.standardSelectedPositions=[0,0,0]}ngAfterViewChecked(){this._pendingOutrightFetch&&this.outrightTab&&(this._pendingOutrightFetch=!1,this.outrightTab.fetchForSport())}_checkIfShouldFetchOutright(i){i.length||(this.isEventsTabDisabled=!0,(this.activeTab===this.MATCHES||this.activeTab===this.BET_BOOST)&&this._navigateToTab(this.OUTRIGHT,!0))}changeTab(i,c){c&&c.preventDefault(),this.forcedOutrightTab=!1,this._navigateToTab(i),this.triggerScroll=0}_navigateToTab(i,c=!1){const d=this._tabValueToSlug(i);d&&this._router.navigate([d],{relativeTo:this._activatedRoute,queryParamsHandling:"preserve",replaceUrl:c})}_tabValueToSlug(i){switch(i){case E.VJ.MATCHES:return"./";case E.VJ.OUTRIGHTS:return this.translatedTabPaths.OUTRIGHTS;case E.VJ.BET_BOOST:return this.translatedTabPaths.BET_BOOST;case E.VJ.GROUPS:return this.translatedTabPaths.GROUPS;case E.VJ.PLAY_OFF:return this.translatedTabPaths.PLAY_OFF;case E.VJ.TEAMS:return this.translatedTabPaths.TEAMS;case E.VJ.STANDINGS:return this.translatedTabPaths.STANDINGS;case E.VJ.PLAYERS:return this.translatedTabPaths.PLAYERS;case E.VJ.TOURNAMENTS:return this.translatedTabPaths.TOURNAMENTS;default:return null}}_initActiveTabFromRoute(){if(this.forcedOutrightTab)return;const i=this._activatedRoute.snapshot.firstChild?.data?.tab;i&&(this.activeTab=i)}_subscribeOnTabRouteChanges(){this._subscriptions.push(this._router.events.pipe((0,P.p)(i=>i instanceof n.wF)).subscribe(()=>{this.triggerScroll=0,this._applyTabFromRoute(),this._routingService.initBreadcrumbs("league-page",{sport:this._standardSidebarService.selectedSport,region:this._standardSidebarService.selectedRegion,league:this._standardSidebarService.selectedLeague})}))}_applyTabFromRoute(){const i=this._activatedRoute.snapshot.firstChild?.data?.tab;if(!i||i===this.activeTab)return;const c=this.activeTab;if(this.activeTab=i,this._redirectIfStatisticsTabUnavailable(),this.activeTab===i){
1if(i===this.OUTRIGHT)return void this._fetchOutrightForSport();i===this.MATCHES&&c&&this.fetchMultipleLeaguesTabTime()}}changePosition({positionIndex:i,selectionIndex:c}){this._socketsService.unsubscribeAll(),this.selectedPositions[i]=c,super.changePosition({positionIndex:i,selectionIndex:c},()=>this._socketsService.subscribeAll())}onMatchesFeedUpdate(i){this.handleUpdate(i),this._checkForRedirection(),this.handleOrder()}_subscribeOnFetchMultipleLeagues(){this._subscriptions.push(this._multipleLeaguesService.addedMultipleLeague$.subscribe(i=>{this.activeTab===this.OUTRIGHT&&this.outrightTab?.fetchByLeagues(),this._registerLeagueFromHeader((0,x.A)(i,this.searchByLeague===_.ly.LEAGUE?"payload.leagues[0].events[0].header":"payload.events[0].header")),this.searchByLeague===_.ly.LEAGUE?this._handleAddMultipleLeagueTabLeague(i):this._handleAddMultipleLeagueTabTime(i),this._cookieService.set("used_time_filter",this.searchByTime,{path:"/",sameSite:"Strict",secure:!0})}))}_subscribeOnFetchMultipleLeaguesOverride(){this._subscriptions.push(this._multipleLeaguesService.overrideMultipleLeagues$.subscribe(i=>{this.searchByLeague===_.ly.LEAGUE?this._handleEventsByLeagueResponse(i):this._handleEventsByTimeResponse(i),this._checkForRedirection(),(this.searchByLeague===_.ly.LEAGUE?0!==this.leagues.length:0!==this.events.length)?(this.searchByLeague===_.ly.LEAGUE?this._socketsService.registerFromLeagues(this.leagues):this._socketsService.registerFromEvents(this._multipleLeaguesService.selectedLeagueIds,this.events),this.checkLastPage(this.eventsIds.length),this.searchByTime=(0,x.A)(i,"payload.usedTimeFilter"),this._cookieService.set("used_time_filter",this.searchByTime,{path:"/",sameSite:"Strict",secure:!0}),this._turnOffLoadMore()):this._navigateToTab(this.OUTRIGHT)}))}_subscribeOnLoadMore(){this._subscriptions.push(this._multipleLeaguesService.loadMoreLeagueEvents$.subscribe(i=>{this.searchByLeague===_.ly.LEAGUE?this._handleLoadMoreEventsByLeague(i):this._handleLoadMoreEventsByTime(i)}))}_subscribeToNewAddingNewLeagues(){this._subscriptions.push(this._multipleLeaguesService.addNewLeague$.subscribe(i=>{[this.BET_BOOST,this.GROUPS,this.TEAMS,this.PLAYERS].includes(this.activeTab)&&setTimeout(()=>this._navigateToTab(this.MATCHES));const c={sportId:(0,x.A)(i,"sport.sportId",0),leagueIds:(0,x.A)(i,"league.leagueId",0),date:A().format(),timeFilter:this.searchByTime,sort:this.searchByLeague,page:0};this.searchByLeague===_.ly.LEAGUE?this._multipleLeaguesService.addNewLeagueToMultipleLeaguesByLeagueTab(c,(0,x.A)(i,"sport",{}),(0,x.A)(i,"region",{}),(0,x.A)(i,"league",{})):this._multipleLeaguesService.addNewLeagueToMultipleLeagues(c,(0,x.A)(i,"sport",{}),(0,x.A)(i,"region",{}),(0,x.A)(i,"league",{}))}))}_subscribeOnRemoveMultipleLeague(){this._subscriptions.push(this._multipleLeaguesService.removeAddedLeague$.subscribe(i=>{this.activeTab===this.OUTRIGHT&&this.outrightTab?.fetchForSport(),this._socketsService.removeLeague(i),this.searchByLeague===_.ly.LEAGUE?this._handleRemoveMultiLeaguesTabLeague(i):this._handleRemoveMultiLeagueTabTime(i),this.searchByTime===_.tE.ALL?(this.activeTab===this.MATCHES&&this.searchByLeague===_.ly.LEAGUE?0===this.leagues.length:0===this.events.length)&&this._navigateToTab(this.OUTRIGHT):this.fetchMultipleLeaguesTabTime(!1,_.tE.ALL)}))}_subscribeOnResetMultipleLeague(){this._subscriptions.push(this._multipleLeaguesService.resetLeague$.subscribe(i=>{this._fetchSingleLeague(i)}))}_subscribeOnQueryParams(){this._subscriptions.push(this._activatedRoute.queryParams.subscribe(i=>{this.triggerScroll=0,this._getLeagueIdsFromQueryParams(),this.multipleLeaguesSelected=this._multipleLeaguesService.selectedLeagueIds.length>1,i.outright&&this._navigateToTab(this.OUTRIGHT),this.multipleLeaguesSelected&&[this.GROUPS,this.TEAMS,this.PLAYERS].includes(this.activeTab)&&(this.activeTab="",this._navigateToTab(this.MATCHES,!0))}))}handleScrolledToEnd(){this.triggerScroll++,!this._isLastPage&&this._shouldListenToLoadMore&&(this._shouldListenToLoadMore=!1,this._currentPage++,this._fetchNextPage())}_handleAddMultipleLeagueTabLeague(i){this.leagues.push(...(0,x.A)(i,"payload.leagues")),this.searchByTime=(0,x.A)(i,"payload.usedTimeFilter"),this.eventsIds=(0,m.A)(this.leagues,c=>(0,f.A)(c.events,d=>d.header.eventId)),this._updateManagerService.shouldReorder=!0,this.handleOrder(),this._turnOffLoadMore()}_handleAddMultipleLeagueTabTime(i){this.events=[...this.events,...(0,x.A)(i,"payload.events")],this.searchByTime=(0,x.A)(i,"payload.usedTimeFilter"),this.eventsIds=this.events.map(c=>c.header.eventId),this._turnOffLoadMore()}_handleLoadMoreEventsByTime(i){const c=v.R.fromEventsResponse(i);this.events=this.events.concat(c),this.eventsIds=this.events.map(d=>d.header.eventId),this.checkLastPage(c.length),this._registerLeagueFromHeader((0,x.A)(c,"[0].header",{}))}_handleLoadMoreEventsByLeague(i){const c=v.R.fromEventsByLeagueResponse(i).leagues,d=(0,m.A)(c,h=>(0,f.A)(h.events,ee=>ee.header.eventId));this.leagues=this.leagues.concat(c),this.eventsIds=(0,m.A)(c,h=>(0,f.A)(h.events,ee=>ee.header.eventId)),this.checkLastPage(d.length),this._handleSubscribeOnLeagues(!0,c)}_handleRemoveMultiLeagueTabTime(i){this.events=this.events.filter(c=>c.header.league.leagueId!==i),this.eventsIds=this.events.map(c=>c.header.eventId),this.checkLastPage(this.events.length)}_handleRemoveMultiLeaguesTabLeague(i){this.leagues=this.leagues.filter(c=>c.leagueId!==i),this.eventsIds=(0,m.A)(this.leagues,c=>(0,f.A)(c.events,d=>d.header.eventId)),this.checkLastPage(this.eventsIds.length)}_fetchNextPage(){const i=(0,x.A)(this._activatedRoute,"snapshot.queryParams.leagueIds"),c=i?i.split(",").map(Number):[],d={sportId:this._standardSidebarService.selectedSport.sportId,leagueIds:c,date:A().format(),timeFilter:this.searchByTime,sort:this.searchByLeague,page:this._currentPage};this.searchByLeague===_.ly.LEAGUE?this._multipleLeaguesService.getMultipleLeagueByLeagueTab(d,!1,!0):this._multipleLeaguesService.getMultipleLeagues(d,!1,!0)}_checkForRedirection(){if(!(this.outrightTab&&this.outrightTab.games.length||this.leagues.length)){if(this.searchByTime===B.X)return void this._navigateToRegionPage();this.onChangeTimeFilter(B.X)}}_fetchOutrightForSport(){this.outrightTab?this.outrightTab.fetchForSport():this._pe
1ndingOutrightFetch=!0}_fetchEvents(){if((0,T.A)(this._standardSidebarService.selectedLeague))return this._statisticsLeagueContext.set(null),void this._navigateToRegionPage();this._syncStatisticsLeagueContext(),(!this.currentSport||this.currentSport!==(0,x.A)(this._standardSidebarService,"selectedSport"))&&(this.currentSport=(0,x.A)(this._standardSidebarService,"selectedSport"),this._fetchPositions(this.currentSport.sportId)),this._getLeagueIdsFromQueryParams(),this.configuredPositions=(0,x.A)(this._standardSidebarService,"selectedLeague.configuredPositions",!0),this.activeTab===this.OUTRIGHT&&(this.isEventsTabDisabled=!1,this.events=[],this._fetchOutrightForSport()),this._multipleLeaguesService.selectedLeagueIds.length>1?(this.searchByLeague===_.ly.LEAGUE?this.fetchMultiLeaguesTabLeague(!0):this.fetchMultipleLeaguesTabTime(!0),this._fetchPositions(this._standardSidebarService.getSportId())):this._fetchSingleLeague(!0),this._routingService.initBreadcrumbs("league-page",{sport:this._standardSidebarService.selectedSport,region:this._standardSidebarService.selectedRegion,league:this._standardSidebarService.selectedLeague})}_navigateToRegionPage(){if(this._standardSidebarService.selectedRegion)return this._routingService.navigateToRegion(j.O.formatSlugFromName(this._standardSidebarService.selectedSport),j.O.formatSlugFromName(this._standardSidebarService.selectedRegion));this._navigateToSport()}_navigateToSport(){if(this._standardSidebarService.selectedSport)return this._routingService.navigateToSport(j.O.formatSlugFromName(this._standardSidebarService.selectedSport));this._routingService.navigateToHome()}onChangeTimeFilter(i){this.checkPlaceholdersCanShow(),this.searchByTime=i,this._sportService.searchByTime=i,this._currentPage=0,this.searchByLeague===_.ly.LEAGUE?this.fetchMultiLeaguesTabLeague():this.fetchMultipleLeaguesTabTime()}_fetchSingleLeague(i=!1){if(!this.initialEventsFetched||i){if(this._multipleLeaguesService.selectedLeagueIds.length&&this._multipleLeaguesService.selectedLeagueIds[0]!==this._standardSidebarService.selectedLeague.leagueId)return this._multipleLeaguesService.selectedLeagueIds=[],this._multipleLeaguesService.selectedLeagues=[],void this._routingService.navigateToLeague(this._standardSidebarService.selectedSport.slug,this._standardSidebarService.selectedRegion.slug,this._standardSidebarService.selectedLeague.slug);this.searchByLeague===_.ly.LEAGUE?this._fetchSingleLeagueByLeague():this._getMultipleLeaguesByTime()}}fetchMultiLeaguesTabLeague(i=!1){const c=this._multipleLeaguesService.selectedLeagueIds.length?this._multipleLeaguesService.selectedLeagueIds:[this.leagueId()];this._sportService.getStandardLeaguesFilterByLeague(this._standardSidebarService.selectedSport.sportId,this.searchByTime,c).subscribe(d=>{this._handleEventsByLeagueResponse(d),this._handleResponseForStandard(d),this._handleSubscribeOnLeagues(i,this.leagues),this._turnOffLoadMore(),this._checkForRedirection()})}_handleSubscribeOnLeagues(i,c){i&&c.forEach(d=>{this._registerLeagueFromHeader((0,x.A)(d,"events[0].header"))})}_handleEventsByTimeResponse(i){this.events=v.R.fromSingleSportResponse(i),this.eventsIds=this.events.map(c=>c.header.eventId)}_handleEventsByLeagueResponse(i){this.leagues=v.R.fromEventsByLeagueResponse(i).leagues,this._handleLeagues()}_handleLeagues(){this.eventsIds=(0,m.A)(this.leagues,i=>(0,f.A)(i.events,c=>c.header.eventId)),this.checkLastPage(this.eventsIds.length)}_fetchSingleLeagueByLeague(){this._sportService.getStandardLeaguesFilterByLeague(this._standardSidebarService.selectedSport.sportId,this.searchByTime,[this._standardSidebarService.selectedLeague.leagueId]).subscribe(i=>{this._handleResponseForLeagueTab(i)})}_handleResponseForLeagueTab(i){this._handleEventsByLeagueResponse(i),this._handleResponseForStandard(i),this._checkIfShouldFetchOutright(this.leagues),this._registerLeagueFromHeader((0,x.A)(this.leagues,"[0].events[0].header",{}),!0),this.initialEventsFetched=!0,this.leagueId.set(this._standardSidebarService.getLeagueId()),this._setSeoContent(),this._turnOffLoadMore()}_getMultipleLeaguesByTime(i=!1,c=this.searchByTime){const d=this._prepareDataForFetch(i,c);this._multipleLeaguesService.getMultipleLeagues(d,!0)}fetchMultipleLeaguesTabTime(i=!1,c=this.searchByTime){const d=this._prepareDataForFetch(i,c);this.searchByLeague===_.ly.LEAGUE?this._multipleLeaguesService.getMultipleLeagueByLeagueTab(d,!0):this._multipleLeaguesService.getMultipleLeagues(d,!0)}_prepareDataForFetch(i,c){const d=this._multipleLeaguesService.selectedLeagueIds.length?this._multipleLeaguesService.selectedLeagueIds:[this._standardSidebarService.selectedLeague.leagueId.toString()],h=!!i&&this._cookieService.get("used_time_filter");return{sportId:this._standardSidebarService.getSportId(),leagueIds:d,date:A().format(),timeFilter:h?this._cookieService.get("used_time_filter"):c,sort:this._sportService.searchByLeague,page:0}}_registerLeagueFromHeader(i,c=!1){(0,T.A)(i)||this._socketsService.registerFromHeader(i,c)}_setSeoContent(){var i=this;
1return(0,e.A)(function*(){i._seoContentParams={type:N.E.LEAGUE,id:i._standardSidebarService.selectedLeague.leagueId,entity:{sportName:i._standardSidebarService.selectedSport?.name||"",regionName:i._standardSidebarService.selectedRegion?.name||"",leagueName:i._standardSidebarService.selectedLeague?.name||""}},yield i._fetchSeoContentPromise(),i._metaTagHelperService.setSocialMediaTags(i._getSocialMediaTarget())})()}_getLeagueIdsFromQueryParams(){const c=(0,x.A)(this._location,"_locationStrategy._platformLocation.href","").split("?")[1]||"",h=new URLSearchParams(c).get("leagueIds");h&&this._multipleLeaguesService.filterLeagueByQueryIds(function C(o){for(var u=-1,i=null==o?0:o.length,c=0,d=[];++u<i;){var h=o[u];h&&(d[c++]=h)}return d}(h.split(",")))}_turnOffLoadMore(){this._isLastPage=!0,this._shouldListenToLoadMore=!this._isLastPage}_resetStatisticsStoreState(){this._statisticsStoreService.currentSeason.set(null),this._statisticsStoreService.leagueStage.set(null),this._statisticsStoreService.cupStage.set(null)}_redirectIfStatisticsTabUnavailable(){!this.statisticsTabsResolved||!this._isStatisticsTab(this.activeTab)||this._isActiveStatisticsTabAvailable()||(this.activeTab=this.MATCHES,this._router.navigate(["./"],{relativeTo:this._activatedRoute,replaceUrl:!0}))}_isStatisticsTab(i){return[this.GROUPS,this.PLAY_OFF,this.STANDINGS].includes(i)}_isActiveStatisticsTabAvailable(){switch(this.activeTab){case this.GROUPS:return this.hasGroupsTab();case this.PLAY_OFF:return this.hasPlayOffTab();case this.STANDINGS:return this.hasStandingsTab();default:return!0}}_syncStatisticsLeagueContext(){const i=this._standardSidebarService.selectedSport,c=this._standardSidebarService.selectedLeague;this._statisticsLeagueContext.set(i.sportId&&c.leagueId?{sport:i,league:c}:null)}_getSocialMediaTarget(){return{scope:J.IR.LEAGUE,sportId:this._standardSidebarService.selectedSport?.sportId?.toString()||"",regionId:this._standardSidebarService.selectedRegion?.regionId.toString()||"",leagueId:this._standardSidebarService.selectedLeague?.leagueId?.toString()||"",seoContent:this.currentSeoContent}}static{this.\u0275fac=(()=>{let i;return function(d){return(i||(i=t.xGo(o)))(d||o)}})()}static{this.\u0275cmp=t.VBU({type:o,selectors:[["league-page"]],viewQuery:function(c,d){if(1&c&&t.GBs(ce,5),2&c){let h;t.mGM(h=t.lsd())&&(d.outrightTab=h.first)}},features:[t.Jv_([de.h,g]),t.Vt3],decls:22,vars:15,consts:[["footerElements",".c-footer-content, .c-seo-content","scrollToTop","",1,"l-betting-page",3,"elementScrolledToEnd","ignoreScrollUp"],[3,"avoidResettingMultipleLeaguesOnRedirect"],[1,"c-highlighted-section","c-highlighted-section--default"],[1,"c-page-header","c-page-header--standard"],[1,"c-page-title-container"],[1,"c-page-title"],[1,"c-betting-tabs","c-betting-tabs--two"],[1,"c-betting-tabs-placeholder"],[3,"events","leagues","searchByLeague","selectedPositions","sportPositions","currentSport","configuredPositions","numberOfMarkets","triggerPipe","placeholders","isLoggedIn","forcedOutrightTab"],[3,"leagueId","sportId","regionId"],[3,"triggerScroll","triggerPipe"],[3,"pageTitle"],[3,"pageName"],[1,"c-betting-tab",3,"click","ngClass"],[1,"c-betting-tab-tournament","c-betting-tab-tournament--last",3,"ngClass"],[1,"c-betting-tab",3,"ngClass"],[1,"c-betting-tab-tournament","c-betting-tab-tournament--last",3,"click","ngClass"],[1,"c-betting-tab-tournament__inner"],["icon","trophy-tournaments",1,"c-betting-tab-tournament__icon"],[1,"c-betting-tab-tournament__text"],[1,"c-betting-tab-placeholder",2,"height","30px"],[3,"changePositionEmit","toggleFavoriteLeagueEmit","feedUpdate","events","leagues","searchByLeague","selectedPositions","sportPositions","currentSport","configuredPositions","numberOfMarkets","triggerPipe","placeholders","isLoggedIn","forcedOutrightTab"],[3,"changeTab","leagueId","sportId","regionId"]],template:function(c,d){1&c&&(t.j41(0,"div",0),t.bIt("elementScrolledToEnd",function(){return d.handleScrolledToEnd()}),t.nrm(1,"breadcrumbs",1),t.j41(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5)(6,"span"),t.EFF(7),t.k0s()()()(),t.j41(8,"div",6),t.DNE(9,Et,11,22)(10,Rt,2,0,"div",7),t.k0s(),t.DNE(11,It,1,12,"league-page-matches",8)(12,Ft,1,3,"betting-bet-boost",9)(13,Bt,1,0,"league-groups-tab")(14,kt,1,0,"league-play-off
1-tab")(15,wt,1,0,"league-teams-tab")(16,At,1,0,"league-standings-tab")(17,$t,1,0,"league-players-tab")(18,Gt,1,2,"league-page-outright",10)(19,Dt,1,0,"league-casino-tournament"),t.k0s(),t.DNE(20,Nt,1,1,"seo-content",11),t.nrm(21,"footer-component",12),t.k0s()),2&c&&(t.Y8G("ignoreScrollUp",!0),t.R7$(),t.Y8G("avoidResettingMultipleLeaguesOnRedirect",!0),t.R7$(6),t.JRh(d.pageTitle),t.R7$(2),t.vxM(!d.loadingTabs&&d.statisticsTabsResolved?9:10),t.R7$(2),t.vxM(d.activeTab===d.MATCHES?11:-1),t.R7$(),t.vxM(d.activeTab===d.BET_BOOST&&d.leagues[0]?12:-1),t.R7$(),t.vxM(d.activeTab===d.GROUPS?13:-1),t.R7$(),t.vxM(d.activeTab===d.PLAY_OFF?14:-1),t.R7$(),t.vxM(d.activeTab===d.TEAMS?15:-1),t.R7$(),t.vxM(d.activeTab===d.STANDINGS?16:-1),t.R7$(),t.vxM(d.activeTab===d.PLAYERS?17:-1),t.R7$(),t.vxM(d.activeTab===d.OUTRIGHT?18:-1),t.R7$(),t.vxM(d.activeTab===d.CASINO_TOURNAMENT?19:-1),t.R7$(),t.vxM(null!=d.currentSeoContent&&d.currentSeoContent.pageTitle?20:-1),t.R7$(),t.Y8G("pageName",d.pageName))},dependencies:[V.NgClass,_e.k,me.B,Ge.L,De.n,Se.J,fe,Ie,ce,bt,xt,Ct,Fe.StandingsTabComponent,Be.LeagueCasinoTournamentComponent,M.D,ke.PlayOffTabComponent,Y.D9],styles:[".c-no-results[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.c-no-results__title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:11px;color:var(--base-white-06);margin-bottom:10px}.c-no-results__description[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:21px;color:var(--base-white-06);margin-bottom:60px}.c-no-results__icon[_ngcontent-%COMP%]{display:block;margin:40px auto 25px;width:63px;height:64px;color:var(--base-white-06)}.c-no-results-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1 0 0;align-self:stretch}.c-no-results-cards__icon[_ngcontent-%COMP%]{display:block;width:48px;height:50.4px;color:var(--base-white-06);margin-bottom:25px}.c-event-header__league-favorite-icon-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;padding-right:6px;cursor:pointer}.c-event-header__league-favorite-icon-wrap[_ngcontent-%COMP%]:hover   .c-event-header__league-favorite-icon[_ngcontent-%COMP%]{--favorite-fill-stroke: var(--baseYellow01);opacity:.9}.c-event-header__league-favorite-icon-wrap.selected[_ngcontent-%COMP%]   .c-event-header__league-favorite-icon[_ngcontent-%COMP%]{--favorite-fill-stroke: transparent;color:var(--base-yellow-01)}.c-event-header__league-favorite-icon[_ngcontent-%COMP%]{color:transparent;height:16px;--favorite-fill-stroke: var(--baseWhite16);width:16px}.c-betting-tabs[_ngcontent-%COMP%]{border-radius:4px;margin-bottom:10px;max-width:100%;display:flex;align-items:center;overflow-x:scroll;scrollbar-width:none;overflow:-moz-scrollbars-none}.c-betting-tabs[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.c-betting-tabs-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:10px}.c-betting-tab-tournament[_ngcontent-%COMP%]{cursor:pointer;min-width:110px;height:30px;border-radius:4px;overflow:hidden;padding:1px;background:linear-gradient(180deg,#facc01,#faa701);color:var(--base-yellow-01);transition:opacity .2s linear;margin-left:auto}.c-betting-tab-tournament[_ngcontent-%COMP%]:hover{opacity:.9}.c-betting-tab-tournament.c-betting-tab-tournament--active[_ngcontent-%COMP%]   .c-betting-tab-tournament__inner[_ngcontent-%COMP%]{background:#543200}.c-betting-tab-tournament__inner[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0c151b,#543200);border-radius:4px;height:100%;width:100%;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px}.c-betting-tab-tournament__icon[_ngcontent-%COMP%]{flex-shrink:0;width:14px;height:13px}.c-betting-tab-tournament__text[_ngcontent-%COMP%]{font-family:var(--font-cond);font-weight:500;font-size:12px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-betting-tab[_ngcontent-%COMP%]{cursor:pointer;background-color:var(--baseBlack23);color:var(--baseWhite09);font-family:var(--font-cond);font-size:12px;line-height:30px;font-weight:500;transition:opacity .2s linear;text-transform:uppercase;min-width:110px;padding:0 5px;text-align:center;transition:opacity .2s ease;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-betting-tab[_ngcontent-%COMP%]:not(:last-of-type){border-right:1px solid var(--baseBlue60)}.c-betting-tab.c-betting-tab--selected[_ngcontent-%COMP%]{background-color:var(--baseYellow06);color:var(--baseBlack07)}.c-betting-tab[_ngcontent-%COMP%]:not(.c-betting-tab--selected):hover{opacity:.8}.c-betting-tab[_ngcontent-%COMP%]:nth-last-child(1){border-radius:0 4px 4px 0}.c-betting-tab[_ngcontent-%COMP%]:has( + .c-betting-tab-tournament)[_ngcontent-%COMP%]{margin-right:6px}.c-highlighted-section[_ngcontent-%COMP%]{border-radius:4px;padding:0 10px 10px}
1.c-highlighted-section.c-highlighted-section--live[_ngcontent-%COMP%]{background:var(--topLiveSectionBackground)}.c-highlighted-section.c-highlighted-section--default[_ngcontent-%COMP%]{background:var(--defaultSectionBackground)}.c-highlighted--early-payout-section[_ngcontent-%COMP%]{border-radius:4px;padding:0 10px 10px;background:linear-gradient(125deg,#1b443f,#1b443f00 25%),var(--baseBlack06);background-size:100% 100%;background-position:center}.c-highlighted--early-payout-section.c-highlighted-section--live[_ngcontent-%COMP%], .c-highlighted--early-payout-section.c-highlighted-section--default[_ngcontent-%COMP%]{background:linear-gradient(125deg,#1b443f,#1b443f00 25%),var(--baseBlack06)}.c-event-header__league-name[_ngcontent-%COMP%]{display:flex;align-items:center;position:sticky;position:-webkit-sticky;top:30px;border-bottom:1px solid var(--baseBlack02);width:100%;padding:4px 10px;background-color:var(--baseBlue26);color:var(--baseWhite16);font-family:var(--font-cond);font-weight:500;font-size:14px;text-align:left;z-index:var(--z-index-above-min);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout-section[_ngcontent-%COMP%]{min-width:280px;width:280px;display:flex;align-items:center}.c-event-header-early-payout-section-category[_ngcontent-%COMP%]{min-width:280px;width:280px;display:flex;align-items:center;text-transform:uppercase;font-size:16px;color:var(--white)}.c-event-header-early-payout-name-container[_ngcontent-%COMP%]{text-align:center;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header__league[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1.c-event-header-early-payout__league-name[_ngcontent-%COMP%]{display:flex;align-items:center;position:sticky;position:-webkit-sticky;top:-13px;border-bottom:1px solid var(--baseBlack02);width:100%;padding:4px 10px;background-color:var(--baseBlue26);color:var(--baseWhite16);font-family:var(--font-cond);font-weight:500;font-size:14px;text-align:left;z-index:var(--z-index-above-min);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-event-header-early-payout-name[_ngcontent-%COMP%]{margin-left:auto;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.c-event-header__league-name-icon[_ngcontent-%COMP%]{width:22px;height:22px;margin-right:10px;color:var(--baseBlue10)}.c-event__league-wrapper[_ngcontent-%COMP%]:first-of-type   .c-event-header__league-name[_ngcontent-%COMP%]{border-top:none}"]})}}return o})(),children:[{path:"",children:[],data:{tab:E.VJ.MATCHES}},{path:E.VJ.OUTRIGHTS,children:[],data:{tab:E.VJ.OUTRIGHTS,translationKey:E.VJ.OUTRIGHTS}},{path:E.VJ.BET_BOOST,children:[],data:{tab:E.VJ.BET_BOOST,translationKey:E.VJ.BET_BOOST}},{path:E.VJ.GROUPS,data:{tab:E.VJ.GROUPS,translationKey:E.VJ.GROUPS},children:[{path:"",loadComponent:()=>s.e(2402).then(s.bind(s,42402)).then(o=>o.GroupsListComponent),children:[{path:E.wC.GROUP_BY_SLUG_AND_ID,loadComponent:()=>Promise.all([s.e(2076),s.e(8475)]).then(s.bind(s,38475)).then(o=>o.SingleGroupComponent)}]}]},{path:E.VJ.PLAY_OFF,data:{tab:E.VJ.PLAY_OFF,translationKey:E.VJ.PLAY_OFF},loadComponent:()=>Promise.resolve().then(s.bind(s,56479)).then(o=>o.PlayOffTabComponent)},{path:E.VJ.TEAMS,data:{tab:E.VJ.TEAMS,translationKey:E.VJ.TEAMS},children:[{path:"",loadComponent:()=>Promise.all([s.e(2076),s.e(8136)]).then(s.bind(s,88136)).then(o=>o.TeamsListComponent),children:[{path:E.wC.COUNTRY_BY_SLUG_AND_ID,loadComponent:()=>Promise.all([s.e(2695),s.e(2076),s.e(2490)]).then(s.bind(s,22490)).then(o=>o.SingleTeamComponent)}]}]},{path:E.VJ.STANDINGS,data:{tab:E.VJ.STANDINGS,translationKey:E.VJ.STANDINGS},loadComponent:()=>Promise.resolve().then(s.bind(s,23984)).then(o=>o.StandingsTabComponent)},{path:E.VJ.PLAYERS,data:{tab:E.VJ.PLAYERS,translationKey:E.VJ.PLAYERS},children:[{path:"",loadComponent:()=>Promise.all([s.e(2076),s.e(5872)]).then(s.bind(s,5872)).then(o=>o.PlayersCountriesComponent),children:[{path:E.wC.COUNTRY_BY_SLUG_AND_ID,loadComponent:()=>Promise.all([s.e(2695),s.e(8644)]).then(s.bind(s,48644)).then(o=>o.PlayersListComponent),children:[{path:E.wC.PLAYER_BY_SLUG_AND_INDEX,loadComponent:()=>Promise.all([s.e(2076),s.e(8225)]).then(s.bind(s,18225)).then(o=>o.SinglePlayerComponent)}]}]}]},{path:E.VJ.TOURNAMENTS,data:{tab:E.VJ.TOURNAMENTS,translationKey:E.VJ.TOURNAMENTS},loadComponent:()=>Promise.resolve().then(s.bind(s,32550)).then(o=>o.LeagueCasinoTournamentComponent)}]}];var jt=s(74054),Ut=s(44844),Xt=s(69146);let Vt=(()=>{class o{constructor(i){this._translateRoutingService=i,this._translateRoutingService.translateChildRoutes(we)}static{this.\u0275fac=function(c){return new(c||o)(t.KVO(Xt.a))}}static{this.\u0275mod=t.$C({type:o})}static{this.\u0275inj=t.G2t({imports:[n.iI.forChild(we),jt.k,Ut.k,Se.R,fe,Ie,ce,Fe.StandingsTabComponent,Be.LeagueCasinoTournamentComponent,ne.A,ke.PlayOffTabComponent]})}}return o})()},43194:(te,$,s)=>{s.d($,{G6:()=>_,VJ:()=>n,eM:()=>I,h9:()=>t,l3:()=>e,wC:()=>P});const n={MATCHES:"matches",BET_BOOST:"bet-boost",GROUPS:"groups",PLAY_OFF:"play-off",TEAMS:"teams",PLAYERS:"players",STANDINGS:"standings",OUTRIGHTS:"outrights",TOURNAMENTS:"tournaments"},e={BET_BOOST:"url.bet-boost",GROUPS:"url.groups",PLAY_OFF:"url.play-off",TEAMS:"url.teams",PLAYERS:"url.players",STANDINGS:"url.standings",OUTRIGHTS:"url.outrights",TOURNAMENTS:"url.tournaments"};function t(v,R,x){const m=x.instant(v);return m!==v?m:R}function I(v){return{BET_BOOST:t(e.BET_BOOST,n.BET_BOOST,v),GROUPS:t(e.GROUPS,n.GROUPS,v),PLAY_OFF:t(e.PLAY_OFF,n.PLAY_OFF,v),TEAMS:t(e.TEAMS,n.TEAMS,v),PLAYERS:t(e.PLAYERS,n.PLAYERS,v),OUTRIGHTS:t(e.OUTRIGHTS,n.OUTRIGHTS,v),TOURNAMENTS:t(e.TOURNAMENTS,n.TOURNAMENTS,v),STANDINGS:t(e.STANDINGS,n.STANDINGS,v)}}const P={GROUP_BY_SLUG_AND_ID:":groupSlug/:groupId",COUNTRY_BY_SLUG_AND_ID:":countrySlug/:countryId",PLAYER_BY_SLUG_AND_INDEX:":playerSlug/:playerIndex"};function _(v){return v.toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}},45408:(te,$,s)=>{s.d($,{h:()=>I});var n=s(31635),e=s(54438),t=s(85375);class I{constructor(){this.tournamentGroups=(0,e.vPA)([]),this.groupPreviousMatches=(0,e.vPA)([]),this.groupStandings=(0,e.vPA)([])}scrollToTop(){const _=document.getElementsByClassName("l-betting-page")[0];_&&_.scrollTo({top:0})}static{this.\u0275fac=function(v){return new(v||I)}}static{this.\u0275prov=e.jDH({token:I,factory:I.\u0275fac})}}(0,n.Cg)([t.X],I.prototype,"scrollToTop",null)},32550:(te,$,s)=>{s.r($),s.d($,{LeagueCasinoTournamentComponent:()=>Z});var n=s(31635),e=s(54438),t=s(73955),I=s(60177),P=s(21626),_=s(58167),v=s(34405),R=s(61131);const x="leagueTournamentFeed";let m=(()=>
1{class r{constructor(){this._httpClient=(0,e.WQX)(P.Qq),this._authService=(0,e.WQX)(_.u),this._restConfigurationService=(0,e.WQX)(v.M),this._transferStateService=(0,e.WQX)(R.G),this.tournament=(0,e.vPA)(null),this.loading=(0,e.vPA)(!1)}fetchTournament(a){const l=this._transferStateService.get(x);if(l)return this.tournament.set(l),this._transferStateService.remove(x),void a?.();const g=this._authService.currentUser(),O=g.isUserLogin?g.accountId:0,L=`${this._restConfigurationService.getGeneralCustomConfigurationParams("sportsTournamentUrl")}?account_id=${O}`;this.loading.set(!0),this._httpClient.get(L).subscribe({next:S=>{this.tournament.set(S),this._transferStateService.set(x,S),this.loading.set(!1),a?.()},error:()=>{this.loading.set(!1)}})}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275prov=e.jDH({token:r,factory:r.\u0275fac})}}return r})();var f=s(26917),T=s(85375),C=s(55794),w=s(58114),A=s(40786),F=s(96467);function N(r,p){if(1&r){const a=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){e.eBV(a);const g=e.XpG();return e.Njj(g.goBack.emit())}),e.nrm(1,"svg-icon",10),e.k0s()}}function B(r,p){if(1&r&&(e.j41(0,"div",8)(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"span",12),e.EFF(5),e.nI1(6,"timestampDiffInDHMS"),e.k0s()()),2&r){const a=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"general.ends_in")),e.R7$(3),e.JRh(e.i5U(6,4,a.currentTimeInMs(),a.endsAt()))}}let j=(()=>{class r{constructor(){this.promo=e.hFB.required(),this.currentTimeInMs=e.hFB.required(),this.hasBackButton=(0,e.hFB)(!1),this.goBack=(0,e.CGW)(),this.endsAt=(0,e.EWP)(()=>String(new Date(this.promo().ends_at).getTime()))}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["league-tournament-card"]],inputs:{promo:[1,"promo"],currentTimeInMs:[1,"currentTimeInMs"],hasBackButton:[1,"hasBackButton"]},outputs:{goBack:"goBack"},standalone:!0,features:[e.aNF],decls:11,vars:6,consts:[[1,"c-league-tournament-card"],[1,"c-league-tournament-card__img-wrapper"],[1,"c-league-tournament-card__img",3,"src","alt"],[1,"c-league-tournament-card__back"],[1,"c-league-tournament-card__desc"],[1,"c-league-tournament-card__desc-wrapper"],[1,"c-league-tournament-card__name"],[1,"c-league-tournament-card__headline"],[1,"c-league-tournament-card__time"],[1,"c-league-tournament-card__back",3,"click"],["icon","arrow-left"],[1,"c-league-tournament-card__time-label"],[1,"c-league-tournament-card__time-value"]],template:function(l,g){1&l&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"img",2),e.DNE(3,N,2,0,"button",3),e.k0s(),e.j41(4,"div",4)(5,"div",5)(6,"span",6),e.EFF(7),e.k0s(),e.j41(8,"div",7),e.EFF(9),e.k0s()(),e.DNE(10,B,7,7,"div",8),e.k0s()()),2&l&&(e.R7$(2),e.Y8G("src",g.promo().media.desktop,e.B4B)("alt",g.promo().title),e.R7$(),e.vxM(g.hasBackButton()?3:-1),e.R7$(4),e.JRh(g.promo().title),e.R7$(2),e.JRh(g.promo().headline),e.R7$(),e.vxM(g.promo().ends_at?10:-1))},dependencies:[t.h,t.D9,w.A,F.D,A.t],styles:['[_nghost-%COMP%]{display:block;color:var(--white)}.c-league-tournament-card[_ngcontent-%COMP%]{position:relative;width:100%;display:flex;flex-direction:column}.c-league-tournament-card__img-wrapper[_ngcontent-%COMP%]{position:relative;min-height:240px;flex:1;padding:8px 8px 10px;overflow:hidden}.c-league-tournament-card__img-wrapper[_ngcontent-%COMP%]:after, .c-league-tournament-card__img-wrapper[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;width:20%;height:100%;z-index:1}.c-league-tournament-card__img-wrapper[_ngcontent-%COMP%]:before{left:0;background-image:linear-gradient(90deg,var(--black) 0%,transparent 100%)}.c-league-tournament-card__img-wrapper[_ngcontent-%COMP%]:after{right:0;background-image:linear-gradient(90deg,transparent 0%,var(--black) 100%)}.c-league-tournament-card__img[_ngcontent-%COMP%]{position:absolute;object-fit:cover;height:100%;width:auto;left:50%;top:0;transform:translate(-50%);border-radius:8px;mask-image:linear-gradient(to bottom,var(--black) 55%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,var(--black) 55%,transparent 100%)}.c-league-tournament-card__back[_ngcontent-%COMP%]{position:absolute;top:16px;left:16px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;color:var(--white);background:transparent;border:0;cursor:pointer}.c-league-tournament-card__desc[_ngcontent-%COMP%]{position:relative;margin-top:-65px;padding:0 12px;display:flex;flex-direction:column;align-items:center}.c-league-tournament-card__desc-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;width:100%}.c-league-tournament-card__name[_ngcontent-%COMP%]{font-family:var(--font);text-transform:uppercase;background:linear-gradient(360deg,#029e08 -22.22%,#77ff63 166.67%);-webkit-background-clip:text;background-clip:text;color:transparent;width:100%;text-align:center;letter-spacing:1px;font-weight:600;font-size:28px}.c-league-tournament-card__headline[_ngcontent-%COMP%]{font-family:var(--font);font-size:48px;line-height:1.3;margin:5px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;overflow:hidden;font-weight:800;text-shadow:0 2px 6px rgba(0,0,0,.7)}.c-league-tournament-card__time[_ngcontent-%COMP%]{display:flex;align-items:center;gap:3px;font-family:var(--font);margin-top:4px;font-size:14px}.c-league-tournament-card__time-label[_ngcontent-%COMP%]{white-space:nowrap;color:var(--casino-white-02);font-weight:500;margin-right:5px;text-transform:uppercase}.c-league-tournament-card__time-value[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap;color:var(--white)}']})}}return r})();var W=s(66581);const V=(r,p)=>p.rank,Y=()=>[Promise.resolve().then(s.bind(s,60177)).then(r=>r.NgOptimizedImage)];function ie(r,p){if(1&r&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"img",3),e.k0s(),e.j41(3,"div",4)(4,"div",5),e.EFF(5),e.k0s(),e.j41(6,"div",6),e.EFF(7),e.k0s()()()),2&r){const a=e.XpG().$implicit;e.R7$(2),e.Y8G("ngSrc",a.icon_url),e.R7$(3),e.JRh(a.place),e.R7$(2),e.JRh(a.prize)}}function ae(r,p){1&r&&e.nrm(0,"div",7)}function ne(r,p){1&r&&(e.DNE(0,ie,8,3)(1,ae,1,0),e.nv$(2,0,Y,null,1),e.qhs(0,-1))}let re=(()=>
1{class r{constructor(){this.prizes=e.hFB.required()}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["league-tournament-prizes"]],inputs:{prizes:[1,"prizes"]},standalone:!0,features:[e.aNF],decls:4,vars:0,consts:[[1,"c-prizes"],[1,"c-basic-slider-item","c-prize-card"],[1,"c-prize-card__img-wrapper"],["fill","","priority","",1,"c-prize-card__img",3,"ngSrc"],[1,"c-prize-card__content"],[1,"c-prize-card__place"],[1,"c-prize-card__amount"],[1,"c-basic-slider-item","c-prize-card","c-prize-card--placeholder"]],template:function(l,g){1&l&&(e.j41(0,"carousel-slider")(1,"div",0),e.Z7z(2,ne,4,0,null,null,V),e.k0s()()),2&l&&(e.R7$(2),e.Dyx(g.prizes()))},dependencies:[W.SliderComponent],styles:["[_nghost-%COMP%]{display:block}.c-prizes[_ngcontent-%COMP%]{display:flex;gap:14px}.c-prizes[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto}.c-basic-slider-item[_ngcontent-%COMP%]:not(:last-of-type){margin-right:0}.c-prize-card[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:end;
1min-width:200px;max-width:200px;height:100px;padding:1px;border-radius:6px;overflow:hidden;background:linear-gradient(270deg,#0a550000 2.42%,#17bb00b3 95%)}.c-prize-card.c-prize-card--placeholder[_ngcontent-%COMP%]{background:linear-gradient(70deg,#031600a6 4%,#040e13 75% 15%)}.c-prize-card__img-wrapper[_ngcontent-%COMP%]{position:absolute;width:calc(100% - 2px);height:calc(100% - 2px);inset:1px;border-radius:6px;background:linear-gradient(70deg,#031600a6 4%,#040e13 75% 15%)}.c-prize-card__img[_ngcontent-%COMP%]{object-fit:cover}.c-prize-card__content[_ngcontent-%COMP%]{position:relative;padding:0 10px;text-align:center;max-width:60%;min-width:110px;height:100%;display:flex;flex-direction:column;justify-content:center}.c-prize-card__place[_ngcontent-%COMP%]{color:var(--casino-green-01);font-size:14px;text-transform:uppercase;max-height:30%;overflow:hidden}.c-prize-card__amount[_ngcontent-%COMP%]{color:var(--white);font-weight:500;font-size:21px;text-transform:uppercase;max-height:70%;word-wrap:break-word}"]})}}return r})();const le=(r,p)=>p.account_id,y=r=>({"c-leaderboard-wrapper--empty":r}),D=r=>({"c-sticky-head":r}),b=(r,p,a,l)=>({"c-highlighted-row":r,"c-first":p,"c-second":a,"c-third":l}),M=r=>({"c-highlighted-row":r});function k(r,p){if(1&r&&e.nrm(0,"img",6),2&r){const a=e.XpG().$implicit;e.Y8G("src",a.icon_url,e.B4B)("alt",a.rank+".")}}function U(r,p){if(1&r&&(e.j41(0,"span",7),e.EFF(1),e.k0s()),2&r){const a=e.XpG().$implicit;e.R7$(),e.SpI("",a.rank,".")}}function ve(r,p){if(1&r&&(e.j41(0,"tr",1)(1,"td"),e.DNE(2,k,1,2,"img",6)(3,U,2,1,"span",7),e.j41(4,"span",8),e.EFF(5),e.k0s()(),e.j41(6,"td"),e.EFF(7),e.nI1(8,"number"),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s()()),2&r){let a;const l=p.$implicit;e.Y8G("ngClass",e.ziG(8,b,l.mark,1===l.rank,2===l.rank,3===l.rank)),e.R7$(2),e.vxM(l.rank<=3&&l.icon_url?2:3),e.R7$(3),e.JRh(l.account_id),e.R7$(2),e.JRh(e.i5U(8,5,l.points,"1.0-2")),e.R7$(3),e.JRh(null!==(a=l.prize)&&void 0!==a?a:"/")}}function ge(r,p){if(1&r&&(e.j41(0,"tbody"),e.Z7z(1,ve,11,13,"tr",1,le),e.k0s()),2&r){const a=e.XpG();e.R7$(),e.Dyx(a.entries())}}function be(r,p){1&r&&(e.j41(0,"div",4),e.nrm(1,"svg-icon",9)(2,"svg-icon",10),e.j41(3,"div",11),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&r&&(e.R7$(4),e.JRh(e.bMT(5,1,"general.wc_tournament_no_results")))}function xe(r,p){if(1&r&&(e.j41(0,"tr",1)(1,"td")(2,"span",7),e.EFF(3),e.k0s(),e.j41(4,"span",8),e.EFF(5),e.k0s()(),e.j41(6,"td"),e.EFF(7),e.nI1(8,"number"),e.k0s(),e.j41(9,"td"),e.EFF(10),e.k0s()()),2&r){let a;const l=p.$implicit;e.Y8G("ngClass",e.eq3(8,M,l.mark)),e.R7$(3),e.SpI("",l.rank,"."),e.R7$(2),e.JRh(l.account_id),e.R7$(2),e.JRh(e.i5U(8,5,l.points,"1.0-2")),e.R7$(3),e.JRh(null!==(a=l.prize)&&void 0!==a?a:"/")}}
1function Ce(r,p){if(1&r&&(e.j41(0,"h3",12),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",13)(4,"table")(5,"colgroup"),e.nrm(6,"col")(7,"col")(8,"col"),e.k0s(),e.j41(9,"tbody"),e.Z7z(10,xe,11,10,"tr",1,le),e.k0s()()()),2&r){const a=e.XpG();e.R7$(),e.JRh(e.bMT(2,1,"general.your_position")),e.R7$(9),e.Dyx(a.subEntries())}}function Pe(r,p){if(1&r){const a=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(a);const g=e.XpG();return e.Njj(g.seeAllClick.emit())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&r&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"casino.see_full_leaderboard")," "))}let ce=(()=>{class r{constructor(){this.entries=e.hFB.required(),this.subEntries=(0,e.hFB)([]),this.shouldStickyHead=(0,e.hFB)(!0),this.showSeeAll=(0,e.hFB)(!1),this.seeAllClick=(0,e.CGW)()}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["league-tournament-leaderboard"]],inputs:{entries:[1,"entries"],subEntries:[1,"subEntries"],shouldStickyHead:[1,"shouldStickyHead"],showSeeAll:[1,"showSeeAll"]},outputs:{seeAllClick:"seeAllClick"},standalone:!0,features:[e.aNF],decls:23,vars:19,consts:[[1,"c-leaderboard-wrapper",3,"ngClass"],[3,"ngClass"],["scope","col"],[1,"c-place-hash"],[1,"c-leaderboard-empty"],[1,"c-see-all"],[1,"c-rank-icon",3,"src","alt"],[1,"c-rank"],[1,"c-name"],["icon","bg-no-result-wc",1,"c-leaderboard-empty__icon-bg"],["icon","no-resualt-wc",1,"c-leaderboard-empty__icon"],[1,"c-leaderboard-empty__title"],[1,"c-leaderboard-title"],[1,"c-leaderboard-wrapper","c-leaderboard-wrapper--sub"],[1,"c-see-all",3,"click"]],template:function(l,g){1&l&&(e.j41(0,"div",0)(1,"table")(2,"colgroup"),e.nrm(3,"col")(4,"col")(5,"col"),e.k0s(),e.j41(6,"thead",1)(7,"tr")(8,"th",2)(9,"span",3),e.
1EFF(10,"#"),e.k0s(),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",2),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",2),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.DNE(19,ge,3,0,"tbody"),e.k0s(),e.DNE(20,be,6,3,"div",4),e.k0s(),e.DNE(21,Ce,12,3)(22,Pe,3,3,"button",5)),2&l&&(e.Y8G("ngClass",e.eq3(15,y,0===g.entries().length)),e.R7$(6),e.Y8G("ngClass",e.eq3(17,D,g.shouldStickyHead())),e.R7$(5),e.SpI("",e.bMT(12,9,"general.place")," "),e.R7$(3),e.JRh(e.bMT(15,11,"general.score")),e.R7$(3),e.JRh(e.bMT(18,13,"casino.prize")),e.R7$(2),e.vxM(0!==g.entries().length?19:-1),e.R7$(),e.vxM(0===g.entries().length?20:-1),e.R7$(),e.vxM(0!==g.subEntries().length?21:-1),e.R7$(),e.vxM(g.showSeeAll()?22:-1))},dependencies:[I.NgClass,I.DecimalPipe,t.h,t.D9,w.A,F.D],styles:['[_nghost-%COMP%]{--leaderboard-head-height: 30px;display:block}.c-leaderboard-wrapper[_ngcontent-%COMP%]{position:relative;border-radius:4px;background:linear-gradient(97deg,#17bb0033,#040e13 70% 100%);padding:8px 12px 12px;overflow:hidden}.c-leaderboard-wrapper[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:var(--base-green-01)}.c-leaderboard-wrapper.c-leaderboard-wrapper--empty[_ngcontent-%COMP%]{min-height:360px;display:flex;flex-direction:column}.c-leaderboard-empty[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--base-white-01);text-align:center}.c-leaderboard-empty__icon[_ngcontent-%COMP%]{width:37px;height:37px;z-index:5}.c-leaderboard-empty__icon-bg[_ngcontent-%COMP%]{position:absolute;width:48%;max-width:120px;top:50%;left:50%;transform:translate(-50%,-50%)}.c-leaderboard-empty__title[_ngcontent-%COMP%]{font-weight:700;font-size:14px;text-transform:uppercase;letter-spacing:.5px;margin-top:20px}.c-leaderboard-title[_ngcontent-%COMP%]{margin:16px 0 8px;color:var(--white);font-weight:600;font-size:16px}.c-place-hash[_ngcontent-%COMP%]{display:inline-block;margin-right:6px;margin-left:2px;opacity:.6}.c-rank-icon[_ngcontent-%COMP%]{display:inline-block;width:22px;height:22px;object-fit:contain;vertical-align:middle;margin-right:6px}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0;width:100%;font-family:var(--font-cond)}thead[_ngcontent-%COMP%]{height:var(--leaderboard-head-height)}thead.c-sticky-head[_ngcontent-%COMP%]{position:sticky;top:-1px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:1}thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{color:var(--casino-green-01);font-weight:500;font-size:12px;text-transform:uppercase}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:6px 4px;overflow-x:hidden;white-space:nowrap;text-overflow:ellipsis}th[_ngcontent-%COMP%]:nth-child(1), td[_ngcontent-%COMP%]:nth-child(1){text-align:left}th[_ngcontent-%COMP%]:nth-child(2), td[_ngcontent-%COMP%]:nth-child(2){text-align:center}th[_ngcontent-%COMP%]:nth-child(3), td[_ngcontent-%COMP%]:nth-child(3){text-align:right}colgroup[_ngcontent-%COMP%]   col[_ngcontent-%COMP%]{width:1%}.c-rank[_ngcontent-%COMP%]{display:inline-block;min-width:22px;margin-right:6px;text-align:center}.c-name[_ngcontent-%COMP%]{text-transform:uppercase}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{color:var(--base-white-01)}tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:not(:last-child)   td[_ngcontent-%COMP%]{border-bottom:1px solid #072B01}tbody[_ngcontent-%COMP%]   tr.c-highlighted-row[_ngcontent-%COMP%]{color:var(--white)}tbody[_ngcontent-%COMP%]   tr.c-highlighted-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:var(--base-green-01);box-shadow:0 0 0 1px var(--base-green-01);border-bottom:none}tbody[_ngcontent-%COMP%]   tr.c-highlighted-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}tbody[_ngcontent-%COMP%]   tr.c-highlighted-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}tbody[_ngcontent-%COMP%]   tr.c-first[_ngcontent-%COMP%]{color:var(--casino-yellow-02)}tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{font-weight:500;font-size:14px}tbody[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:first-of-type{color:inherit;font-size:12px}
1.c-see-all[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-top:12px;padding-right:10px;font-family:var(--font-cond);font-weight:600;font-size:14px;color:var(--casino-yellow-01);text-decoration:underline;text-transform:uppercase;text-align:right;transition:opacity .3s ease-in-out}.c-see-all[_ngcontent-%COMP%]:hover{opacity:.8}']})}}return r})();var E=s(82361),de=s(99854);const se=["rulesEl"],oe=(r,p)=>({"c-league-casino-tournament__rules--collapsed":r,"c-league-casino-tournament__rules--darken":p});function Te(r,p){1&r&&e.nrm(0,"div",2)}function ue(r,p){if(1&r){const a=e.RV6();e.j41(0,"button",13),e.bIt("click",function(){e.eBV(a);const g=e.XpG(2);return e.Njj(g.toggleRules())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&r){const a=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,a.expanded()?"general.see_less":"general.see_more")," ")}}function pe(r,p){if(1&r){const a=e.RV6();e.nrm(0,"league-tournament-card",3),e.j41(1,"div",4)(2,"div",5)(3,"h3",6),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"league-tournament-prizes",7),e.k0s(),e.j41(7,"div",8)(8,"h3",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"league-tournament-leaderboard",9),e.bIt("seeAllClick",function(){e.eBV(a);const g=e.XpG();return e.Njj(g.openLeaderboardModal())}),e.k0s()(),e.j41(12,"div",10)(13,"h3",6),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"div",11,0),e.nI1(18,"safeHtml"),e.DNE(19,ue,3,3,"button",12),e.k0s()()}if(2&r){const a=p,l=e.XpG();e.Y8G("promo",a)("currentTimeInMs",l.currentTimeInMs()),e.R7$(4),e.SpI(" ",e.bMT(5,12,"general.prizes"),": "),e.R7$(2),e.Y8G("prizes",a.prizes),e.R7$(3),e.SpI(" ",e.bMT(10,14,"general.leaderboard"),": "),e.R7$(2),e.Y8G("entries",l.tournament().leaderboard.slice(0,10))("subEntries",l.subEntries())("showSeeAll",!l.isLoggedIn()),e.R7$(3),e.SpI(" ",e.bMT(15,16,"general.tournament_rules")," "),e.R7$(2),e.Y8G("ngClass",e.l_i(20,oe,l.showSeeMore()&&!l.expanded(),l.showSeeMore()&&!l.expanded()))("innerHTML",e.bMT(18,18,a.rules),e.npT),e.R7$(3),e.vxM(l.showSeeMore()?19:-1)}}class Z{constructor(){this._elRef=(0,e.WQX)(e.aKT),this._authService=(0,e.WQX)(_.u),this._intervalService=(0,e.WQX)(C.W),this._modalService=(0,e.WQX)(E.B),this._translateService=(0,e.WQX)(t.c$),this.tournamentsService=(0,e.WQX)(m),this.currentTimeInMs=(0,e.vPA)(Date.now()),this.tournament=this.tournamentsService.tournament,this.promo=(0,e.EWP)(()=>this.tournament()?.promo??null),this.isLoggedIn=(0,e.EWP)(()=>this._authService.currentUser().isUserLogin),this.showPlayerLeaderboard=(0,e.EWP)(()=>{const p=this.tournament();if(!p?.sub_leaderboard?.length)return!1;const a=Number(this._authService.currentUser().accountId),l=(p.leaderboard??[]).findIndex(g=>Number(g.account_id)===a);return-1===l||l>=10}),this.subEntries=(0,e.EWP)(()=>this.showPlayerLeaderboard()?this.tournament()?.sub_leaderboard??[]:[]),this.rulesEl=(0,e.ebz)("rulesEl"),this.showSeeMore=(0,e.vPA)(!1),this.expanded=(0,e.vPA)(!1),this._fetchEffect=(0,e.QZP)(()=>{this._authService.currentUser(),(0,e.O8t)(()=>this.tournamentsService.fetchTournament())}),this._updateShowSeeMoreEffect=(0,e.QZP)(()=>this._updateShowSeeMore(),{allowSignalWrites:!0})}_updateShowSeeMore(){this.promo();const p=this.rulesEl();if(!p)return;const a=parseInt(getComputedStyle(this._elRef.nativeElement).getPropertyValue("--tournament-rules-max-height"));this.showSeeMore.set(p.nativeElement.scrollHeight>a)}toggleRules(){this.expanded.update(p=>!p)}openLeaderboardModal(){this._modalService.open({component:de.l,payload:{title:this._translateService.instant("general.leaderboard"),inputs:{entries:this.tournament()?.leaderboard??[],subEntries:this.subEntries(),shouldStickyHead:!1},component:ce,modalType:"normal",modalBackground:"linear-gradient(97deg, rgba(23, 187, 0, 0.2) 0%, #040E13 70%, #040E13 100%)"}})}ngOnInit(){this._subscribeOnTimeInterval()}_subscribeOnTimeInterval(){this._timerSubscription=this._intervalService.currentTime$.subscribe(()=>this.currentTimeInMs.set(Date.now()))}ngOnDestroy(){this._timerSubscription?.unsubscribe()}static{this.\u0275fac=function(a){return new(a||Z)}}static{this.\u0275cmp=e.VBU({type:Z,selectors:[["league-casino-tournament"]],viewQuery:function(a,l){1&a&&e.wEZ(l.rulesEl,se,5),2&a&&e.NyB()},standalone:!0,features:[e.Jv_([m]),e.aNF],decls:3,vars:2,consts:[["rulesEl",""],[1,"c-league-casino-tournament"],[1,"c-league-casino-tournament__placeholder"],[3,"promo","currentTimeInMs"],[1,"c-league-casino-tournament__container"],[1,"c-league-casino-tournament__prizes-section"],[1,"c-league-casino-tournament__title"],[1,"c-league-casino-tournament__prizes",3,"prizes"],[1,"c-league-casino-tournament__leaderboard-section"],[1,"c-league-casino-tournament__leaderboard",3,"seeAllClick","entries","subEntries","showSeeAll"],[1,"c-league-casino-tournament__rules-section"],[1,"c-league-casino-tournament__rules",3,"ngClass","innerHTML"],[1,"c-league-casino-tournament__see-more"],[1,"c-league-casino-tournament__see-more",3,"click"]],template:function(a,l){if(1&a&&(e.j41(0,"div",1),e.DNE(1,Te,1,0,"div",2)(2,pe,20,23),e.k0s()),2&a){let g;e.R7$(),e.vxM(l.tournamentsService.loading()?1:-1),e.R7$(),e.vxM((g=l.promo())?2:-1,g)}},dependencies:[t.h,t.D9,I.NgClass,j,re,ce,f.$],styles:['[_nghost-%COMP%]{--tournament-rules-max-height: 390px;
1display:block;background-color:var(--black)}.c-league-casino-tournament[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.c-league-casino-tournament__placeholder[_ngcontent-%COMP%]{min-height:316px;border-radius:10px;background:var(--baseBlue03)}.c-league-casino-tournament__container[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;grid-template-areas:"prizes leaderboard" "rules  leaderboard";gap:10px;background:linear-gradient(97deg,#17bb0033,#040e13 70% 100%)}.c-league-casino-tournament__prizes-section[_ngcontent-%COMP%]{grid-area:prizes;min-width:0;padding:24px 24px 0}.c-league-casino-tournament__rules-section[_ngcontent-%COMP%]{grid-area:rules;min-width:0;padding:8px 24px 24px}.c-league-casino-tournament__leaderboard-section[_ngcontent-%COMP%]{grid-area:leaderboard;position:relative;display:flex;flex-direction:column;padding:24px}.c-league-casino-tournament__title[_ngcontent-%COMP%]{font-weight:600;font-size:20px;margin-bottom:16px;color:var(--white)}.c-league-casino-tournament__prizes[_ngcontent-%COMP%]{display:block}.c-league-casino-tournament__rules[_ngcontent-%COMP%]{display:block;margin-top:8px;color:var(--base-white-01);overflow-y:hidden}.c-league-casino-tournament__rules--collapsed[_ngcontent-%COMP%]{max-height:var(--tournament-rules-max-height)}.c-league-casino-tournament__rules--darken[_ngcontent-%COMP%]{mask-image:linear-gradient(to bottom,black 50%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,black 50%,transparent 100%)}.c-league-casino-tournament__see-more[_ngcontent-%COMP%]{display:block;margin-top:8px;padding:0;background:transparent;border:0;cursor:pointer;font-family:var(--font-cond);font-weight:600;font-size:14px;color:var(--casino-yellow-01);text-decoration:underline;text-transform:uppercase;transition:opacity .3s ease-in-out}.c-league-casino-tournament__see-more[_ngcontent-%COMP%]:hover{opacity:.8}.c-league-casino-tournament__leaderboard[_ngcontent-%COMP%]{display:block;flex:1}@media (max-width: 1260px){.c-league-casino-tournament__container[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-areas:"prizes" "leaderboard" "rules"}}']})}}(0,n.Cg)([T.X],Z.prototype,"_updateShowSeeMore",null),(0,n.Cg)([T.X],Z.prototype,"_subscribeOnTimeInterval",null),(0,n.Cg)([T.X],Z.prototype,"ngOnDestroy",null)},56479:(te,$,s)=>{s.r($),s.d($,{PlayOffTabComponent:()=>Z});
1var n=s(54438),e=s(3385),t=s(92806),I=s(29048),P=s(60177),_=s(58114),v=s(73955),R=s(91398);const x=r=>({loser:r}),m=(r,p)=>({winner:r,loser:p});function f(r,p){if(1&r&&n.nrm(0,"img",2),2&r){let a;const l=n.XpG();n.FS9("src",null==(a=l.event())?null:a.homeTeamFlag,n.B4B)}}function T(r,p){if(1&r&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.j41(2,"span",9),n.EFF(3),n.k0s()),2&r){let a,l;const g=n.XpG();n.R7$(),n.JRh(null==(a=g.event())||null==a.statistics?null:a.statistics.homeRivalFistHalfScore),n.R7$(2),n.JRh(null==(l=g.event())||null==l.statistics?null:l.statistics.homeRivalScore)}}function C(r,p){if(1&r&&(n.j41(0,"span",10),n.EFF(1),n.k0s()),2&r){let a;const l=n.XpG(2);n.R7$(),n.SpI("(",null==(a=l.event())||null==a.statistics?null:a.statistics.homeRivalPenalScore,")")}}function w(r,p){if(1&r&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.DNE(2,C,2,1,"span",10)),2&r){let a,l;const g=n.XpG();n.R7$(),n.JRh(+(null!==(a=null==(a=g.event())||null==a.statistics?null:a.statistics.homeRivalScore)&&void 0!==a?a:0)+ +(null!==(a=null==(a=g.event())||null==a.statistics?null:a.statistics.homeRivalOvertimeScore)&&void 0!==a?a:0)),n.R7$(),n.vxM(null!=(l=g.event())&&null!=l.statistics&&l.statistics.homeRivalPenalScore?2:-1)}}function A(r,p){1&r&&(n.j41(0,"span"),n.EFF(1,"-"),n.k0s())}function F(r,p){if(1&r&&n.nrm(0,"img",2),2&r){let a;const l=n.XpG();n.FS9("src",null==(a=l.event())?null:a.awayTeamFlag,n.B4B)}}function N(r,p){if(1&r&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.j41(2,"span",9),n.EFF(3),n.k0s()),2&r){let a,l;const g=n.XpG();n.R7$(),n.JRh(null==(a=g.event())||null==a.statistics?null:a.statistics.awayRivalFistHalfScore),n.R7$(2),n.JRh(null==(l=g.event())||null==l.statistics?null:l.statistics.awayRivalScore)}}function B(r,p){if(1&r&&(n.j41(0,"span",10),n.EFF(1),n.k0s()),2&r){let a;const l=n.XpG(2);n.R7$(),n.SpI("(",null==(a=l.event())||null==a.statistics?null:a.statistics.awayRivalPenalScore,")")}}function j(r,p){if(1&r&&(n.j41(0,"span"),n.EFF(1),n.k0s(),n.DNE(2,B,2,1,"span",10)),2&r){let a,l;const g=n.XpG();n.R7$(),n.JRh(+(null!==(a=null==(a=g.event())||null==a.statistics?null:a.statistics.awayRivalScore)&&void 0!==a?a:0)+ +(null!==(a=null==(a=g.event())||null==a.statistics?null:a.statistics.awayRivalOvertimeScore)&&void 0!==a?a:0)),n.R7$(),n.vxM(null!=(l=g.event())&&null!=l.statistics&&l.statistics.awayRivalPenalScore?2:-1)}}function W(r,p){1&r&&(n.j41(0,"span",5),n.EFF(1,"-"),n.k0s())}function V(r,p){1&r&&(n.j41(0,"div",6),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&r&&(n.R7$(),n.SpI("",n.bMT(2,1,"general.live_wc_status")," "))}function Y(r,p){1&r&&(n.j41(0,"div",12),n.EFF(1,"PEN"),n.k0s())}function ie(r,p){1&r&&(n.j41(0,"div",13),n.EFF(1,"AET"),n.k0s())}function ae(r,p){if(1&r&&(n.j41(0,"div",7)(1,"div",11),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,Y,2,0,"div",12)(5,ie,2,0,"div",13),n.k0s()),2&r){let a;const l=n.XpG();n.R7$(2),n.JRh(n.bMT(3,2,"general.finished_wc_status")),n.R7$(2),n.vxM(null!==(null==(a=l.event())||null==a.statistics?null:a.statistics.awayRivalPenalScore)||null!==(null==(a=l.event())||null==a.statistics?null:a.statistics.homeRivalPenalScore)?4:null!==(null==(a=l.event())||null==a.statistics?null:a.statistics.awayRivalOvertimeScore)||null!==(null==(a=l.event())||null==a.statistics?null:a.statistics.homeRivalOvertimeScore)?5:-1)}}function ne(r,p){if(1&r&&(n.j41(0,"div",8),n.EFF(1),n.nI1(2,"date"),n.k0s()),2&r){let a;const l=n.XpG();n.R7$(),n.JRh(l.isBrowser?n.i5U(2,1,null==(a=l.event())?null:a.startTime,"dd.MM. HH:mm"):"")}}let re=(()=>{class r{constructor(){this.redirect=new n.bkB,this.event=n.hFB.required(),this.FLAG_NAMES={},this.isBrowser=R.R.isBrowser}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["play-off-team"]],hostBindings:function(l,g){1&l&&n.bIt("click",function(){return g.redirect.emit(g.event())})},inputs:{event:[1,"event"],FLAG_NAMES:"FLAG_NAMES"},outputs:{redirect:"redirect"},standalone:!0,features:[n.aNF],decls:24,vars:21,consts:[[1,"match-team-wrapper"],[1,"match-team"],[1,"c-play-off__rivals-icon","rival-region-flag",3,"src"],[1,"name",3,"ngClass"],[1,"score-live-event",3,"ngClass"],[1,"score-event-not-stared"],[1,"match-time","match-time--slot","live"],[1,"match-time-status"],[1,"match-time","empty-state"],[1,"finale"],[1,"penalty"],[1,"match-time"],[1,"match-time","match-time--slot","penalties"],[1,"match-time","match-time--slot","overtime"]],template:function(l,g){if(1&l&&(n.j41(0,"div",0)(1,"div",1)(2,"div"),n.DNE(3,f,1,1,"img",2),n.j41(4,"span",3),n.EFF(5),n.k0s()(),n.j41(6,"div")(7,"div",4),n.DNE(8,T,4,2)(9,w,3,2)(10,A,2,0,"span"),n.k0s()()(),n.j41(11,"div",1)(12,"div"),n.DNE(13,F,1,1,"img",2),n.j41(14,"span",3),n.EFF(15),n.k0s()(),n.j41(16,"div")(17,"div",4),n.DNE(18,N,4,2)(19,j,3,2)(20,W,2,0,"span",5),n.k0s()()()(),n.DNE(21,V,3,3,"div",6)(22,ae,6,4,"div",7)(23,ne,3,4,"div",8)),2&l){let O,L,S,G,z,X,H,q,J,_e,me;n.R7$(3),n.vxM(null!=(O=g.event())&&O.homeRivalId&&null!=(O=g.event())&&O.homeTeamFlag?3:-1),n.R7$(),n.Y8G("ngClass",n.eq3(11,x,"FINISHED"===(null==(L=g.event())?null:L.status)&&(null==(L=g.event())?null:L.homeRivalId)!==(null==(L=g.event())?null:L.winnerId))),n.R7$(),n.JRh((null==(S=g.event())?null:S.homeRivalName)||"TBD"),n.R7$(2),n.Y8G("ngClass",n.l_i(13,m,(null==(G=g.event())?null:G.homeRivalId)===(null==(G=g.event())?null:G.winnerId),(null==(G=g.event())?null:G.homeRivalId)!==(null==(G=g.event())?null:G.winnerId))),n.R7$(),n.vxM("LIVE"===(null==(z=g.event())?null:z.status)?8:"FINISHED"===(null==(z=g.event())?null:z.status)?9:10),n.R7$(5),n.vxM(null!=(X=g.event())&&X.awayRivalId&&null!=(X=g.event())&&X.awayTeamFlag?13:-1),n.R7$(),n.Y8G("ngClass",n.eq3(16,x,"FINISHED"===(null==(H=g.event())?null:H.status)&&(null==(H=g.event())?null:H.awayRivalId)!==(null==(H=g.event())?null:H.winnerId))),n.R7$(),n.JRh((null==(q=g.event())?null:q.awayRivalName)||"TBD"),n.R7$(2),n.Y8G("ngClass",n.l_i(18,m,(null==(J=g.event())?null:J.awayRivalId)===(null==(J=g.event())?null:J.winnerId),(null==(J=g.event())?null:J.awayRivalId)!==(null==(J=g.event())?null:J.winnerId))),n.R7$(),n.vxM("LIVE"===(null==(_e=g.event())?null:_e.status)?18:"FINISHED"===(null==(_e=g.event())?null:_e.status)?19:20),n.R7$(3),n.vxM("LIVE"===(null==(me=g.event())?null:me.status)?21:"FINISHED"===(null==(me=g.event())?null:me.status)?22:23)}},dependencies:[P.CommonModule,P.NgClass,P.DatePipe,_.A,v.h,v.D9],styles:[".c-play-off__rivals-icon[_ngcontent-%COMP%]{width:18px;height:12px;margin-right:4px;overflow:hidden;object-fit:contain}.playoff-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:0;max-width:1000px;margin:0 auto;position:relative;gap:22px}.semifinals-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:13px;padding-right:10px;flex:1;align-items:flex-start;position:relative}.bracket-connector[_ngcontent-%COMP%]{position:relative;height:300px;width:80px;flex-shrink:0}.final-column[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;padding-left:20px;flex:1}.match-team[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-family:var(--font-cond);font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0px;text-align:center;color:var(--baseWhite02);margin-bottom:7px}.match-team[_ngcontent-%COMP%]:last-child{border-bottom:none;margin-bottom:0}.loser[_ngcontent-%COMP%]{color:#989898}.match-time-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px}
1.match-time[_ngcontent-%COMP%]{font-family:var(--font-cond);font-weight:400;font-style:Regular;font-size:12px;line-height:100%;letter-spacing:0px;color:var(--baseWhite10);margin-top:8px}.match-time.match-time--slot[_ngcontent-%COMP%]{font-weight:500;font-style:Medium;font-size:10px;line-height:10px;letter-spacing:0px;width:fit-content;text-align:center;vertical-align:middle;border-radius:2px;padding:3px 3px 2px;text-transform:uppercase}.match-time.live[_ngcontent-%COMP%]{color:#00bb26;background:var(--baseGreen09)}.match-time.penalties[_ngcontent-%COMP%]{color:#ff1833;background:var(--playoffPenaltiesBg)}.match-time.overtime[_ngcontent-%COMP%]{color:#facc04;background:var(--playoffOvertimeBg)}.match-time.empty-state[_ngcontent-%COMP%]{height:12px}.score-event-not-stared[_ngcontent-%COMP%]{color:#989898;font-family:var(--font-cond);font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0px;text-align:center}.score-live-event[_ngcontent-%COMP%]{font-family:var(--font-cond);color:#989898;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0px;text-align:center;display:flex;justify-content:center;align-items:center;gap:7px}.score-live-event[_ngcontent-%COMP%] > .finale[_ngcontent-%COMP%]{color:#b72e2e}.score-live-event.loser[_ngcontent-%COMP%]{color:#989898}.score-live-event.winner[_ngcontent-%COMP%]{color:var(--baseTextColor)}"]})}}return r})();var le=s(84978),y=s(39934),D=s(43194),b=s(2091),M=s(96467);const k=(r,p)=>p.round.roundId,U=r=>({"playoff-navigation__tab--first":r}),ve=(r,p,a)=>({$implicit:r,continues:p,third:a}),ge=r=>({$implicit:r});function be(r,p){if(1&r&&(n.j41(0,"div",6),n.EFF(1),n.nI1(2,"lowercase"),n.nI1(3,"translate"),n.k0s()),2&r){const a=p.$implicit,l=n.XpG();n.Y8G("ngClass",n.eq3(7,U,a===l.uniqueTypesByFrequency()[0])),n.BMQ("data-tab",a),n.R7$(),n.SpI(" ",n.bMT(3,5,n.bMT(2,3,"general."+a))," ")}}function xe(r,p){1&r&&n.eu8(0)}function Ce(r,p){if(1&r&&n.DNE(0,xe,1,0,"ng-container",10),2&r){const a=p.$implicit,l=n.XpG(2),g=n.sdS(11);n.Y8G("ngTemplateOutlet",g)("ngTemplateOutletContext",n.sMw(2,ve,a,a.hasMore,l.thirdPlace()))}}function Pe(r,p){if(1&r&&(n.j41(0,"div",9),n.Z7z(1,Ce,1,6,"ng-container",null,k),n.k0s()),2&r){const a=n.XpG();n.R7$(),n.Dyx(a.bracket())}}function ce(r,p){1&r&&n.eu8(0)}function E(r,p){if(1&r&&n.DNE(0,ce,1,0,"ng-container",10),2&r){const a=p.$implicit;n.XpG(3);const l=n.sdS(11);n.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",n.eq3(2,ge,a))}}function de(r,p){if(1&r&&(n.j41(0,"div",12),n.Z7z(1,E,1,4,"ng-container",null,k),n.k0s()),2&r){const a=n.XpG().$implicit;n.R7$(),n.Dyx(a.children)}}function se(r,p){1&r&&n.eu8(0)}function oe(r,p){1&r&&n.eu8(0)}function Te(r,p){if(1&r&&(n.j41(0,"div",14)(1,"p",15),n.EFF(2),n.nI1(3,"translate"),n.k0s(),n.DNE(4,oe,1,0,"ng-container",10),n.k0s()),2&r){const a=n.XpG().third;n.XpG();const l=n.sdS(13);n.R7$(2),n.JRh(n.bMT(3,3,"general.third_place_match")),n.R7$(2),n.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",n.eq3(5,ge,a))}}function ue(r,p){if(1&r&&(n.j41(0,"div",11),n.DNE(1,de,3,0,"div",12),n.j41(2,"div",13),n.DNE(3,se,1,0,"ng-container",10)(4,Te,5,7,"div",14),n.k0s()()),2&r){const a=p.$implicit,l=p.continues,g=p.third;n.XpG();const O=n.sdS(13);n.AVh("bracket-node--leaf",0===a.children.length),n.R7$(),n.vxM(a.children.length>0?1:-1),n.R7$(),n.AVh("bracket-match--continues",l)("bracket-match--previous",a.hasPrevious),n.BMQ("data-round-id",a.round.roundId),n.R7$(),n.Y8G("ngTemplateOutlet",O)("ngTemplateOutletContext",n.eq3(11,ge,a.round)),n.R7$(),n.vxM(g?4:-1)}}function pe(r,p){if(1&r){const a=n.RV6();n.j41(0,"play-off-team",16),n.bIt("redirect",function(g){n.eBV(a);const O=n.XpG();return n.Njj(O.redirectTo(g))}),n.k0s()}if(2&r){const a=p.$implicit,l=n.XpG();n.AVh("match-card--final","FINAL"===(null==a?null:a.type)),n.Y8G("event",null==a||null==a.events?null:a.events[0])("FLAG_NAMES",l.FLAG_NAMES)}}let Z=(()=>{class r{static{this.FLIP_DURATION=320}static{this.CARD_WIDTH=232}static{this.COLUMN_GAP=44}static{this.CONTAINER_PADDING=20}static{this.MIN_COLUMNS=3}static{this.MAX_COLUMNS=3}maxTabIndex(){return Math.max(0,this.uniqueTypesByFrequency().length-(this.columnsAhead()+1))}constructor(){this._statisticsStoreService=(0,n.WQX)(e.u),this._statisticsHttpService=(0,n.WQX)(t.T),this._standardSidebarService=(0,n.WQX)(I.r),this._routingService=(0,n.WQX)(y.O),this._router=(0,n.WQX)(b.Ix),this._host=(0,n.WQX)(n.aKT),this._injector=(0,n.WQX)(n.zZn),this._destroyRef=(0,n.WQX)(n.abz),this.FLAG_NAMES=(0,n.WQX)(le.s).getParam("icon_names"),this._flipDirection=0,this.rounds=(0,n.vPA)([]),this.rivals=(0,n.vPA)([]),this.uniqueTypesByFrequency=(0,n.vPA)([]),this.selectedTab=(0,n.vPA)(""),this.isLoading=(0,n.vPA)(!0),this.columnsAhead=(0,n.vPA)(r.MIN_COLUMNS-1),this.bracket=(0,n.EWP)(()=>{const a=this.rounds(),l=this.filterRounds(a,this.selectedTab());return this.buildTree(l,a)}),this.displayedColumns=(0,n.EWP)(()=>{const a=this.uniqueTypesByFrequency().length,l=this.columnsAhead()+1;return a>0?Math.min(l,a):l}),this.visibleTabs=(0,n.EWP)(()=>{const a=this.uniqueTypesByFrequency(),l=a.indexOf(this.selectedTab());return-1===l?a.slice(0,this.columnsAhead()+1):a.slice(l,l+this.columnsAhead()+1)}),this.canGoPrevious=(0,n.EWP)(()=>this.uniqueTypesByFrequency().indexOf(this.selectedTab())>0),this.canGoNext=(0,n.EWP)(()=>{const l=this.uniqueTypesByFrequency().indexOf(this.selectedTab());return-1!==l&&l<this.maxTabIndex()}),this.thirdPlace=(0,n.EWP)(()=>{const a=this.uniqueTypesByFrequency(),l=a.indexOf(this.selectedTab()),g=a.indexOf("FINAL");return-1!==l&&g>=l&&g<=l+this.columnsAhead()?this.rounds().find(L=>"THIRD_PLACE"===L.type)??null:null}),this._contentWidth=0,this._isAnimating=!1,(0,n.QZP)(()=>{const a=this._statisticsStoreService.cupStage(),l=this._statisticsStoreService.currentSeason();if(!a||!l)return void this.isLoading.set(!1);const g=this._standardSidebarService.getLeagueId(),O=this._standardSidebarService.getSportId();this._statisticsHttpService.getRoundsByStage(O?.toString()||"",g?.toString()||"",l.seasonId,a.stageId).subscribe(L=>{const S=[...L.rounds??[]].sort((z,X)=>Number(z.order??Number.MAX_SAFE_INTEGER)-Number(X.order??Number.MAX_SAFE_INTEGER));
1this.rivals.set(L.rivals),S.forEach(z=>{z.events?.forEach(X=>{const H=X.homeRivalId?this.rivals().find(J=>J.rivalId===X.homeRivalId):"",q=X.awayRivalId?this.rivals().find(J=>J.rivalId===X.awayRivalId):"";X.homeTeamFlag=H?this._teamFlag(H):"",X.awayTeamFlag=q?this._teamFlag(q):"",X.isInternational=this._statisticsStoreService.international()})}),this.rounds.set(S);const G=this.getUniqueTypesByFrequency(S);this.uniqueTypesByFrequency.set(G),G.length>0&&this.selectedTab.set(G[0]),this.isLoading.set(!1),this.applyLayout()})},{allowSignalWrites:!0}),(0,n.mal)(()=>this.observeWidth(),{injector:this._injector})}_teamFlag(a){return this._statisticsStoreService.international()?`assets/images/flags-round/${a.countryCode}.svg`:a.jerseys?.find(l=>"home"===l.type)?.url||a.icon}observeWidth(){const a=this._host.nativeElement.querySelector(".playoff-container")??this._host.nativeElement;this._contentWidth=a.clientWidth-r.CONTAINER_PADDING,this.applyLayout();const l=new ResizeObserver(g=>{for(const O of g)this._contentWidth=O.contentRect.width,this.applyLayout()});l.observe(a),this._destroyRef.onDestroy(()=>l.disconnect())}applyLayout(){const a=this._contentWidth;if(a<=0||this._isAnimating)return;const l=r.COLUMN_GAP;let O=Math.floor((a+l)/(r.CARD_WIDTH+l));O=Math.min(O,r.MAX_COLUMNS),O=Math.max(O,1);const L=this.uniqueTypesByFrequency().length;O<r.MIN_COLUMNS&&L>O&&(O=1);const S=O-1;S!==this.columnsAhead()&&(this.columnsAhead.set(S),this.clampSelectedTab())}clampSelectedTab(){const a=this.uniqueTypesByFrequency(),l=a.indexOf(this.selectedTab()),g=this.maxTabIndex();l>g&&this.selectedTab.set(a[g])}selectTab(a){if(a===this.selectedTab())return;const l=this.uniqueTypesByFrequency();this._flipDirection=Math.sign(l.indexOf(a)-l.indexOf(this.selectedTab()));const g=this.captureCardRects(),O=this.captureTabRects();this._isAnimating=!0,this.selectedTab.set(a),(0,n.mal)(()=>{this.playFlip(g),this.playTabFlip(O)},{injector:this._injector}),setTimeout(()=>{this._isAnimating=!1,this.applyLayout()},r.FLIP_DURATION+60)}goPrevious(){const a=this.uniqueTypesByFrequency(),l=a.indexOf(this.selectedTab());l>0&&this.selectTab(a[l-1])}goNext(){const a=this.uniqueTypesByFrequency(),l=a.indexOf(this.selectedTab());-1!==l&&l<this.maxTabIndex()&&this.selectTab(a[l+1])}queryCards(){return Array.from(this._host.nativeElement.querySelectorAll("[data-round-id]"))}captureCardRects(){const a=new Map;return this.queryCards().forEach(l=>{const g=l.dataset.roundId;g&&a.set(g,l.getBoundingClientRect())}),a}queryTabs(){return Array.from(this._host.nativeElement.querySelectorAll("[data-tab]"))}captureTabRects(){const a=new Map;
1return this.queryTabs().forEach(l=>{const g=l.dataset.tab;g&&a.set(g,l.getBoundingClientRect())}),a}playTabFlip(a){const l=this._flipDirection>=0?40:-40,g=[];if(this.queryTabs().forEach(L=>{const S=L.dataset.tab;if(!S)return;const G=L.getBoundingClientRect(),z=a.get(S);if(L.style.transition="none",!z)return L.style.transform=`translateX(${l}px)`,L.style.opacity="0",void g.push(L);const X=z.left-G.left;0!==X?(L.style.transform=`translateX(${X}px)`,g.push(L)):L.style.transition=""}),!g.length)return;const O=r.FLIP_DURATION;requestAnimationFrame(()=>{g.forEach(L=>{L.style.transition=`transform ${O}ms ease, opacity ${O}ms ease`,L.style.transform="",L.style.opacity=""})}),setTimeout(()=>{g.forEach(L=>{L.style.transition=""})},O+40)}playFlip(a){const l=this._flipDirection>=0?60:-60,g=[];if(this.queryCards().forEach(S=>{const G=S.dataset.roundId;if(!G)return;const z=S.getBoundingClientRect(),X=a.get(G);if(S.style.transition="none",!X)return S.style.transform=`translateX(${l}px)`,S.style.opacity="0",void g.push(S);const H=X.left-z.left,q=X.top-z.top;0!==H||0!==q?(S.style.transform=`translate(${H}px, ${q}px)`,g.push(S)):S.style.transition=""}),!g.length)return;const O=this._host.nativeElement.querySelector(".playoff-wrapper");O?.classList.add("is-animating");const L=r.FLIP_DURATION;requestAnimationFrame(()=>{g.forEach(S=>{S.style.transition=`transform ${L}ms ease, opacity ${L}ms ease`,S.style.transform="",S.style.opacity=""})}),setTimeout(()=>{g.forEach(S=>{S.style.transition=""}),O?.classList.remove("is-animating")},L+40)}filterRounds(a,l){const g=this.uniqueTypesByFrequency(),O=g.indexOf(l);if(-1===O)return a;const L=O+this.columnsAhead();return a.filter(S=>{const G=g.indexOf(S.type);return G>=O&&G<=L})}buildTree(a,l){const g=new Set(l.map(S=>S.roundParentId).filter(S=>null!==S)),O=new Map;a.forEach(S=>{O.set(S.roundId,{round:S,children:[],hasMore:!1,hasPrevious:!1})});const L=[];return a.forEach(S=>{const G=O.get(S.roundId),z=S.roundParentId?O.get(S.roundParentId):void 0;z?z.children.push(G):(G.hasMore=null!==S.roundParentId,L.push(G))}),O.forEach(S=>{S.hasPrevious=0===S.children.length&&g.has(S.round.roundId)}),L}getUniqueTypesByFrequency(a){const l=new Map;return a.forEach(g=>{const O=l.get(g.type)||0;l.set(g.type,O+1)}),Array.from(l.entries()).filter(([g])=>"THIRD_PLACE"!==g).sort((g,O)=>O[1]-g[1]).map(([g])=>g)}redirectTo(a){if(!a.eventId||"FINISHED"===a.status)return;const l=this.formatDataForNavigation(a);if(l){const g=this._routingService.getLiveMatchUrl(l);this._router.navigateByUrl(g)}}formatDataForNavigation(a){return{region:{regionId:0,name:a.regionName,slug:(0,D.G6)(a.regionName)},sport:{sportId:0,name:a.sportName,slug:(0,D.G6)(a.sportName)},league:{leagueId:0,name:a.leagueName,slug:(0,D.G6)(a.leagueName)},rivals:[(0,D.G6)(a.homeRivalName),(0,D.G6)(a.awayRivalName)],eventId:Number(a.eventId),offerType:"LIVE"===a.status?"LIVE":"STANDARD",offerSubType:"LIVE"===a.status?"LIVE":"STANDARD"}}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["league-play-off-tab"]],hostAttrs:["ngSkipHydration","true"],standalone:!0,features:[n.aNF],decls:14,vars:5,consts:[["nodeTpl",""],["cardTpl",""],[1,"playoff-navigation"],["type","button",1,"playoff-navigation__arrow",3,"click","disabled"],["icon","arrow-left"],[1,"playoff-navigation__tabs"],[1,"playoff-navigation__tab",3,"ngClass"],["type","button",1,"playoff-navigation__arrow",2,"transform","scaleX(-1)",3,"click","disabled"],[1,"playoff-container"],[1,"playoff-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"bracket-node"],[1,"bracket-children"],[1,"bracket-match"],[1,"third-place"],[1,"third-place__label"],[1,"match-card",3,"redirect","event","FLAG_NAMES"]],template:function(l,g){if(1&l){const O=n.RV6();n.j41(0,"div",2)(1,"button",3),n.bIt("click",function(){return n.eBV(O),n.Njj(g.goPrevious())}),n.nrm(2,"svg-icon",4),n.k0s(),n.j41(3,"div",5),n.Z7z(4,be,4,9,"div",6,n.fX1),n.k0s(),n.j41(6,"button",7),n.bIt("click",function(){return n.eBV(O),n.Njj(g.goNext())}),n.nrm(7,"svg-icon",4),n.k0s()(),n.j41(8,"div",8),n.DNE(9,Pe,3,0,"div",9),n.k0s(),n.DNE(10,ue,5,13,"ng-template",null,0,n.C5r)(12,pe,1,4,"ng-template",null,1,n.C5r)}2&l&&(n.R7$(),n.Y8G("disabled",!g.canGoPrevious()),n.R7$(3),n.Dyx(g.visibleTabs()),n.R7$(2),n.Y8G("disabled",!g.canGoNext()),n.R7$(2),n.xc7("--playoff-columns",g.displayedColumns()),n.R7$(),n.vxM(g.bracket().length>0?9:-1))},dependencies:[P.CommonModule,P.NgClass,P.NgTemplateOutlet,P.LowerCasePipe,re,v.h,v.D9,_.A,M.D],styles:['.playoff
1-navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;padding-bottom:19px}.playoff-navigation__tabs[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1;gap:2px;outline:1px solid var(--baseWhite11);overflow:hidden}.playoff-navigation__tab[_ngcontent-%COMP%]{flex:1;min-width:0;height:30px;display:flex;align-items:center;justify-content:center;font-family:var(--font-cond);font-size:12px;font-weight:500;line-height:30px;text-transform:uppercase;color:var(--baseWhite18);background-color:var(--baseBlue02)}.playoff-navigation__tab.playoff-navigation__tab--first[_ngcontent-%COMP%]{color:var(--baseBlack07);background-color:var(--baseYellow06)}.playoff-navigation__arrow[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:30px;padding:0;border-top-left-radius:4px;border-bottom-left-radius:4px;cursor:pointer;color:var(--baseWhite18);background-color:var(--baseBlue02);outline:1px solid var(--baseWhite11);border:none;transition:background-color .16s ease,opacity .16s ease,color .16s ease}.playoff-navigation__arrow[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]{width:14px;height:14px}.playoff-navigation__arrow[_ngcontent-%COMP%]   svg-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}.playoff-navigation__arrow[_ngcontent-%COMP%]:hover:not(:disabled){background-color:var(--baseBlue09);color:var(--baseWhite01)}.playoff-navigation__arrow[_ngcontent-%COMP%]:disabled{opacity:.3;cursor:default}.playoff-container[_ngcontent-%COMP%]{padding:0 10px;container-type:inline-size;min-height:360px;overflow-x:clip}.playoff-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;gap:24px;width:max-content;margin:0;position:relative}.bracket-node[_ngcontent-%COMP%]{display:flex;align-items:center;gap:44px;position:relative}.bracket-children[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:13px}.bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:only-child:before{content:"";position:absolute;right:-22px;top:50%;margin-top:-.5px;width:22px;height:1px;border-radius:1px;background:var(--tournamentRoundsBorderBg)}.bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:first-child:not(:only-child):after{content:"";position:absolute;top:50%;right:-22px;box-sizing:border-box;width:22px;height:calc((100% + 13px)/2);border-top:1px solid var(--tournamentRoundsBorderBg);border-right:1px solid var(--tournamentRoundsBorderBg);border-top-right-radius:8px}.bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:last-child:not(:only-child):after{content:"";position:absolute;bottom:50%;right:-22px;box-sizing:border-box;width:22px;height:calc((100% + 13px)/2);border-bottom:1px solid var(--tournamentRoundsBorderBg);border-right:1px solid var(--tournamentRoundsBorderBg);border-bottom-right-radius:8px}.bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:not(:first-child):not(:last-child):before{content:"";position:absolute;right:-22px;top:50%;margin-top:-.5px;width:22px;height:1px;background:var(--tournamentRoundsBorderBg)}.bracket-node[_ngcontent-%COMP%]:not(.bracket-node--leaf) > .bracket-match[_ngcontent-%COMP%]:before{content:"";position:absolute;left:-22px;top:50%;margin-top:-.5px;width:22px;height:1px;border-radius:1px;background:var(--tournamentRoundsBorderBg)}.bracket-match[_ngcontent-%COMP%]{position:relative}.third-place[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 21px);left:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.third-place__label[_ngcontent-%COMP%]{font-family:var(--font-cond);font-weight:500;font-size:14px;line-height:1;color:var(--baseWhite01);text-transform:uppercase}.bracket-match--continues[_ngcontent-%COMP%]:after{content:"";position:absolute;left:100%;top:50%;margin-top:-.5px;width:56px;height:1px;border-radius:1px;background:linear-gradient(90deg,var(--tournamentRoundsBorderBg) 0%,transparent 100%)}.bracket-match--previous[_ngcontent-%COMP%]:before{content:"";position:absolute;right:100%;top:50%;margin-top:-.5px;width:56px;height:1px;border-radius:1px;background:linear-gradient(270deg,var(--tournamentRoundsBorderBg) 0%,transparent 100%)}.bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:before, .bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:after, .bracket-node[_ngcontent-%COMP%]:not(.bracket-node--leaf) > .bracket-match[_ngcontent-%COMP%]:before, .bracket-match--continues[_ngcontent-%COMP%]:after, .bracket-match--previous[_ngcontent-%COMP%]:before{transition:opacity .16s ease}.playoff-wrapper.is-animating[_ngcontent-%COMP%]   .bracket-children[_ngcontent-%COMP%] >
1 .bracket-node[_ngcontent-%COMP%]:before, .playoff-wrapper.is-animating[_ngcontent-%COMP%]   .bracket-children[_ngcontent-%COMP%] > .bracket-node[_ngcontent-%COMP%]:after, .playoff-wrapper.is-animating[_ngcontent-%COMP%]   .bracket-node[_ngcontent-%COMP%]:not(.bracket-node--leaf) > .bracket-match[_ngcontent-%COMP%]:before, .playoff-wrapper.is-animating[_ngcontent-%COMP%]   .bracket-match--continues[_ngcontent-%COMP%]:after, .playoff-wrapper.is-animating[_ngcontent-%COMP%]   .bracket-match--previous[_ngcontent-%COMP%]:before{opacity:0}.match-card[_ngcontent-%COMP%]{display:block;width:232px;width:calc((100cqw - (var(--playoff-columns, 3) - 1) * 44px) / var(--playoff-columns, 3));height:74px;z-index:1;border-radius:12.7px;padding:10px 10px 10px 11px;gap:10px;background:var(--tournamentRoundsInnerBg);border:.8px solid var(--tournamentRoundsBorderBg)}.match-card.match-card--final[_ngcontent-%COMP%]{background:var(--tournamentRoundsFinaleBg)}.match-card[_ngcontent-%COMP%]:hover{cursor:pointer}.match-team[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:2px 0;font-family:var(--font-cond);font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0px;text-align:center;color:#fff;margin-bottom:5px}.match-team[_ngcontent-%COMP%]:last-child{border-bottom:none;margin-bottom:0}.match-team[_ngcontent-%COMP%]   .team-name[_ngcontent-%COMP%]{flex:1;font-size:14px;font-weight:500;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-team[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:gold;min-width:24px;text-align:right}.match-time[_ngcontent-%COMP%]{font-family:Roboto Condensed;font-weight:400;font-style:Regular;font-size:12px;leading-trim:NONE;line-height:100%;letter-spacing:0px;color:#d7d7d7;margin-top:8px}']})}}return r})()},23984:(te,$,s)=>{s.r($),s.d($,{StandingsTabComponent:()=>_});var n=s(54438),e=s(20904),t=s(29048),I=s(3385),P=s(67161);let _=(()=>{class v{constructor(){this._statisticsStoreService=(0,n.WQX)(I.u),this._standardSidebarService=(0,n.WQX)(t.r),this._sportService=(0,n.WQX)(P.I),this.standings=null,this.events=null,this.dataLoaded=(0,n.vPA)(!1),this.marketFilters=(0,n.vPA)([]),this.markets=(0,n.vPA)([]),(0,n.QZP)(()=>{const x=this._statisticsStoreService.currentSeason(),m=this._statisticsStoreService.leagueStage()||this._statisticsStoreService.cupStage();if(!x||!m)return;const f=this._standardSidebarService.getSportId()?.toString()||"",T=this._standardSidebarService.getLeagueId()?.toString()||"";!f||!T||(this.standings=null,this.dataLoaded.set(!1),this._statisticsStoreService.getStageStandings(f,T,x.seasonId,m.stageId).subscribe(C=>{this.standings=C.standings,this._fetchEvents(f,T,C.groupId)}))},{allowSignalWrites:!0})}_fetchEvents(x,m,f){this.events=null,x&&m&&f&&this._sportService.getEventsByStandings(x,m,f).subscribe(T=>{const C=[];T.payload?.forEach(A=>{C.push(...A.markets)}),this.markets.set(C);const w=T.payload.map(A=>({eventId:A.eventId,markets:A.markets.map(F=>{const N=F.name.split(" - "),B=N.length>1?N[N.length-1].trim():F.name.trim();return{marketId:F.marketId,name:B}})}));this.marketFilters.set(w[0]?.markets),this.dataLoaded.set(!0)},()=>{this.dataLoaded.set(!0)})}static{this.\u0275fac=function(m){return new(m||v)}}static{this.\u0275cmp=n.VBU({type:v,selectors:[["league-standings-tab"]],standalone:!0,features:[n.aNF],decls:1,vars:5,consts:[[3,"standings","isFullPageView","markets","marketFilters","dataLoaded"]],template:function(m,f){1&m&&n.nrm(0,"group-standings",0),2&m&&n.Y8G("standings",f.standings)("isFullPageView",!0)("markets",f.markets())("marketFilters",f.marketFilters())("dataLoaded",f.dataLoaded())},dependencies:[e.I],encapsulation:2})}}return v})()},74054:(te,$,s)=>{s.d($,{k:()=>T});var n=s(60177),e=s(73955),t=s(58114),I=s(54438);let P=(()=>{class C{static{this.\u0275fac=function(F){return new(F||C)}}static{this.\u0275mod=I.$C({type:C})}static{this.\u0275inj=I.G2t({imports:[n.CommonModule,e.h,t.A]})}}return C})();var _=s(45906),v=s(45963),R=s(59858);let x=(()=>{class C{static{this.\u0275fac=function(F){return new(F||C)}}static{this.\u0275mod=I.$C({type:C})}static{this.\u0275inj=I.G2t({providers:[v.k],imports:[_.U,t.A,R.X,R.X]})}}return C})();var m=s(65316),f=s(68076);let T=(()=>{class C{static{this.\u0275fac=function(F){return new(F||C)}}static{this.\u0275mod=I.$C({type:C})}static{this.\u0275inj=I.G2t({imports:[_.U,m.V,x,P,_.U,m.V,f.f,x,P]})}}return C})()},92806:(te,$,s)=>{s.d($,{T:()=>v});var n=s(54438),e=s(71576),t=s(77286),I=s(28998),P=s(21626),_=s(61131);let v=(()=>{class R extends e.F{constructor(m,f,T,C,w,A){super(m,f,T,C,w,A),this._errorService=f,this._state=T,this._httpClient=C,this._transferStateService=w,this.platformId=A,this._apiUrl=`${API_URL}
1/sport-statistics/api/v1`}getSeasons(m,f){return this.get(`sports/${m}/leagues/${f}/seasons/latest`,"statistics-seasons")}getLatestSeason(m,f){return this.getSeasons(m,f)}getSeasonById(m,f,T){return this.get(`sports/${m}/leagues/${f}/seasons/${T}`,"statistics-season")}getStages(m,f,T){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages`,"statistics-stages")}getStageById(m,f,T,C){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages/${C}`,"statistics-stage")}getStageStandings(m,f,T,C){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages/${C}/standings`,"statistics-stage-standings")}getGroupsByStage(m,f,T,C){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages/${C}/groups`,"statistics-groups")}getGroupById(m,f,T,C,w,A=!0,F=!0){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages/${C}/groups/${w}?standings=${A}&previousEvents=${F}`,"statistics-group-detail")}getRoundsByStage(m,f,T,C){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages/${C}/rounds`,"statistics-rounds")}getRoundById(m,f,T,C,w){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/stages/${C}/rounds/${w}`,"statistics-round")}getRivals(m,f,T){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/rivals`,"statistics-rivals")}getRivalById(m,f,T,C){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/rivals/${C}`,"statistics-rival")}getPlayersByRival(m,f,T,C){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/rivals/${C}/players`,"statistics-players-by-rival")}getPlayerById(m,f,T,C,w){return this.get(`sports/${m}/leagues/${f}/seasons/${T}/rivals/${C}/players/${w}`,"statistics-player-by-id")}static{this.\u0275fac=function(f){return new(f||R)(n.KVO(t.Q),n.KVO(I.I),n.KVO(n.pJN),n.KVO(P.Qq),n.KVO(_.G),n.KVO(n.Agw))}}static{this.\u0275prov=n.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()},45963:(te,$,s)=>{s.d($,{k:()=>t});var n=s(54438),e=s(65283);let t=(()=>{class I{constructor(_){this._httpService=_}fetchOutrightsForSport(_){return this._httpService.get(`api/v1/standard/outright/${_}`,`outright-sport-${_}`)}fetchOutrightsForRegion(_,v){return this._httpService.get(`api/v1/standard/outright/${_}/${v}`,`outright-sport-${_}-region-${v}`)}fetchOutrightsForLeague(_,v,R,x=!1){return this._httpService.get(`api/${x?"v2":"v1"}/standard/outright/${_}/${v}/${R}`,`outright-sport-${_}-region-${v}-league-${R}`)}fetchOutrightsForLeagueWithPagination(_,v,R,x=!1,m=0,f=10){return this._httpService.get(`api/${x?"v2":"v1"}/standard/outright/${_}/${v}/${R}?page=${m}&limit=${f}`,`outright-sport-${_}-region-${v}-league-${R}`)}getAntepostBySportAndLeagues(_,v){return this._httpService.get(`api/v1/standard/outright/${_}/league?leagues=${v}`,"outright-leagues")}fetchOutrightsForGroup(_,v,R){return this._httpService.get(`api/v1/standard/outright/${_}/${v}/group/${R}`,`outright-sport-${_}-league-${v}-group-${R}`)}fetchOutrightsForRival(_,v,R){return this._httpService.get(`api/v1/standard/outright/${_}/${v}/rival/${R}`,`outright-sport-${_}-league-${v}-rival-${R}`)}fetchOutrightsForPlayer(_,v,R){return this._httpService.get(`api/v1/standard/outright/${_}/${v}/player/${R}`,`outright-sport-${_}-league-${v}-player-${R}`)}static{this.\u0275fac=function(v){return new(v||I)(n.KVO(e.k))}}static{this.\u0275prov=n.jDH({token:I,factory:I.\u0275fac})}}return I})()},3385:(te,$,s)=>{s.d($,{u:()=>v});var n=s(54438),e=s(14421),t=s(15539),I=s(95006),P=s(68712),_=s(92806);let v=(()=>{class R{constructor(){this._statisticsHttpService=(0,n.WQX)(_.T),this.currentSeason=(0,n.vPA)(null),this.leagueStage=(0,n.vPA)(null),this.cupStage=(0,n.vPA)(null),this.international=(0,n.vPA)(!1),this._rivalsCache=new Map,this._rivalsInFlight=new Map,this._standingsCache=new Map,this._standingsInFlight=new Map}getRivals(m,f,T){const C=`${m}:${f}:${T}`,w=this._rivalsCache.get(C);if(w)return(0,e.of)(w);const A=this._rivalsInFlight.get(C);if(A)return A;const F=this._statisticsHttpService.getRivals(m,f,T).pipe((0,t.M)(N=>{this._rivalsCache.set(C,N.rivals),this._rivalsInFlight.delete(C)}),(0,I.T)(N=>N.rivals),(0,P.t)(1));return this._rivalsInFlight.set(C,F),F}getStageStandings(m,f,T,C){const w=`${m}:${f}:${T}:${C}`,A=this._standingsCache.get(w);if(A)return(0,e.of)(A);const F=this._standingsInFlight.get(w);if(F)return F;const N=this._statisticsHttpService.getStageStandings(m,f,T,C).pipe((0,t.M)(B=>{this._standingsCache.set(w,B),this._standingsInFlight.delete(w)}),(0,I.T)(B=>B),(0,P.t)(1));return this._standingsInFlight.set(w,N),N}static{this.\u0275fac=function(f){return new(f||R)}}static{this.\u0275prov=n.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})()}}]);

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.