!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1cea2f52-1523-46df-b2db-0896e1a3f067",e._sentryDebugIdIdentifier="sentry-dbid-1cea2f52-1523-46df-b2db-0896e1a3f067")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[55535],{6354:(e,t,s)=>{s.d(t,{O:()=>n});let n=(0,s(55729).createContext)({})},12294:(e,t,s)=>{s.d(t,{n:()=>N});var n=s(6029),r=s(33144),i=s(21377),l=s(28349),a=s(76356),d=s(55729),o=s(90510),u=s(62859),c=s(87930),x=s(65078),p=s(8973),m=s(39969),h=s(13266),j=s(47530),g=s(87763),v=s(94604),y=s(62827),f=s(4967),b=s(90248),T=s(494),w=s(41618),S=s(62213),I=s(85517),k=s(49821),E=s(4236),C=s(61836),z=s(10794),A=s(28600),D=s(20306);let _=e=>{let{countryOddsProvider:t,setHasSelectedDayOdds:s,isOddsBranded:r}=e,{event:o}=(0,d.useContext)(u.y$),{featuredOdds:c,error:x}=(0,I.A)(t,o.id,o.status.type===i.XUj.InProgress,t.featuredOddsType);if((0,d.useEffect)(()=>{c&&s(!0)},[c]),!c&&!x)return o.startTimestamp*f.Z2-4*f.d_(0,C.Sj)({position:e,provider:t.provider.slug});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.so,{gap:"xs",pt:"md",pb:"xs",align:"center",children:[(0,n.jsx)(l.EY,{textStyle:"display.micro",children:(0,n.jsx)(A.f,{id:c.marketName})}),c.choiceGroup&&(0,n.jsx)(l.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(A.f,{id:c.choiceGroup})}),c.isLive&&(0,n.jsx)(l.EY,{textStyle:"assistive.default",color:"status.val",children:(0,n.jsx)(b.A,{id:"live"})})]}),(0,n.jsxs)(a.so,{pb:"sm",pt:"xs",gap:"lg",children:[(0,n.jsx)(a.so,{gap:"sm",grow:1,overflow:"hidden",children:c.choices.map(e=>(0,n.jsx)(D.G,{choice:e,isLive:c.isLive,betSlipLink:t&&(0,E.Iz)(e,c,t),branded:null==t?void 0:t.branded,onClick:()=>p(k.ki.OddsValue),isOddsBranded:r},e.name))}),(0,n.jsx)(a.az,{h:"[20px]",w:"4xl",children:(0,n.jsx)(w.r,{size:"48x20",selectedProvider:t,onClick:()=>p(k.ki.ProviderLogo),logClick:!1})})]})]})},B=e=>{let{event:t}=(0,d.useContext)(u.y$),s=(0,T.d4)(z.LQ),r=(0,T.d4)(z.dg);return s&&S.aZ.includes(s)&&S.S1.includes(t.status.type)||s&&S.ZN.includes(s)&&!r||t.homeTeam.disabled||t.awayTeam.disabled?null:(0,n.jsx)(_,{...e})},O=e=>{let{preferDate:t}=e,{event:s,leftTeam:r,rightTeam:i}=(0,d.useContext)(u.y$);return(0,n.jsxs)(a.so,{h:"3xl",justify:"space-between",align:"center",children:[(0,n.jsx)(l.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",truncate:!0,children:t?(0,n.jsx)(o.XU,{value:1e3*s.startTimestamp}):(0,n.jsxs)(n.Fragment,{children:[s.tournament.isGroup&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.__,{name:s.tournament.groupName||s.tournament.name}),",\xa0"]}),(0,n.jsx)(j.DT,{round:s.roundInfo})]})}),(0,n.jsx)(a.az,{onClick:e=>{e.preventDefault(),e.stopPropagation()},position:"relative",children:(0,n.jsx)(m.h,{id:s.id,type:p.b.Event,location:p.y.Header,tournament:s.tournament,leftTeam:r,rightTeam:i})})]})},L=e=>{let{event:t}=e;return(0,n.jsx)(a.so,{justify:"center",align:"center",children:(0,n.jsx)(a.az,{bg:"status.error.default",px:"sm",br:"sm",h:"[16px]",mb:"sm",children:(0,n.jsx)(l.EY,{display:"block",color:"surface.s1",textStyle:"assistive.default",children:(0,n.jsx)(g.fP,{id:t.status.description})})})})},P=()=>{let{event:e,leftTeam:t,rightTeam:s}=(0,d.useContext)(u.y$),x=e.status.type===i.XUj.NotStarted||(0,y.sw)(e);return(0,n.jsxs)(a.so,{justify:"space-between",py:"sm",children:[(0,n.jsxs)(a.so,{gap:"lg",w:"5xl",flexGrow:1,align:"center",justify:"flex-end",overflow:"hidden",children:[(0,n.jsx)(l.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,n.jsx)(v.Rm,{team:t,short:!0})}),(0,n.jsx)(r.p,{id:t.id,name:t.name,size:32})]}),(0,n.jsxs)(a.so,{maxW:"[100px]",minW:"fit",px:"lg",grow:1,overflow:"hidden",justify:"center",align:"center",children:[!x&&(0,n.jsx)(c.A,{isSmall:!0,shortStatus:!0}),x&&(0,n.jsx)(l.EY,{display:"block",textAlign:"center",textStyle:"display.medium",color:"neutrals.nLv3",children:(0,n.jsx)(o.ib,{value:1e3*e.startTimestamp})})]}),(0,n.jsxs)(a.so,{gap:"lg",w:"5xl",grow:1,align:"center",overflow:"hidden",children:[(0,n.jsx)(r.p,{id:s.id,name:s.name,size:32}),(0,n.jsx)(l.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,n.jsx)(v.Rm,{team:s,short:!0})})]})]})},N=e=>{let{event:t,countryOddsProvider:s,setHasSelectedDayOdds:r,preferDateInHeader:i,isOddsBranded:l}=e,{event:d,...o}=(0,x.mJ)(t.id,{event:t,shouldRefresh:!0}),c=d||t,p=(0,y.sw)(c);return(0,n.jsx)(u.y$.Provider,{value:{event:c,...o,location:u.cb.SpecialEventWidget},children:(0,n.jsxs)(a.az,{minH:"10xl",px:"lg",pb:"sm",bg:"surface.s2",br:"sm",children:[(0,n.jsxs)(h.tj,{event:c,children:[(0,n.jsx)(O,{preferDate:i}),p&&(0,n.jsx)(L,{event:c}),(0,n.jsx)(P,{})]}),s&&(0,n.jsx)(B,{countryOddsProvider:s,setHasSelectedDayOdds:r,isOddsBranded:l})]})})}},19944:(e,t,s)=>{s.d(t,{Y:()=>l});var n=s(21377),r=s(4967),i=s(45860);let l=function(e,t){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],l=s&&void 0!==t,{data:a,error:d,isLoading:o}=(0,i.Ay)(l?n.V3t.scheduledEvents(e,t):null);return{events:(null==a?void 0:a.events.filter(e=>(0,r.yk)(e.startTimestamp,Date.parse("".concat(t,"T12:00")))))||[],error:d,isLoading:o}}},21319:(e,t,s)=>{s.d(t,{H:()=>x});var n=s(6029),r=s(21377),i=s(28349),l=s(76356),a=s(90248),d=s(85986),o=s(25022),u=s(73940);function c(e){var t,s;let{block:r,placementBlock:d,inCard:o}=e,c=null==(t=r.participants[0])?void 0:t.winner,x=null==(s=r.participants[1])?void 0:s.winner;return(0,n.jsxs)(l.so,{align:"center",justify:"center",position:"relative",children:[(0,n.jsx)(u.b8,{block:r,inCard:o}),(c||x)&&(0,n.jsx)(l.az,{position:"absolute",right:x?"[calc(50% - 90px)]":void 0,left:x?void 0:"[calc(50% - 90px)]",children:(0,n.jsx)(u.Xs,{})}),d&&(0,n.jsxs)(l.az,{position:"absolute",right:x?void 0:"[calc(50% - 130px)]",left:x?"[calc(50% - 130px)]":void 0,children:[(0,n.jsx)(u.b8,{block:d,hideTopConnector:!0,hideBottomConnector:!0,inCard:o}),(0,n.jsx)(i.EY,{display:"block",textAlign:"center",textStyle:"assistive.micro",color:"neutrals.nLv3",mt:"-md",children:(0,n.jsx)(a.A,{id:"3rdPlace"})})]})]})}function x(e){let{cupTree:t,inCard:s}=e,{sport:i}=(0,d.B)(),a=(0,o.TI)(t,i,null),x=i===r.QCR.Tennis;return(0,n.jsxs)(l.az,{overflow:s?"hidden":"scroll",children:[x&&(0,n.jsx)(l.so,{w:"100%",justify:"flex-end",px:"lg",py:"sm",children:(0,n.jsx)(u.WR,{})}),(0,n.jsx)(u.Bg,{tree:a.left,inCard:s}),(0,n.jsx)(c,{block:a,placementBlock:a.thirdPlaceBlock,inCard:s}),(0,n.jsx)(u.Bg,{tree:a.right,initialOrientation:"bottom",inCard:s})]})}},42078:(e,t,s)=>{s.d(t,{d:()=>u});var n=s(6029),r=s(76356),i=s(55729),l=s(48683),a=s(62859),d=s(85568),o=s(66757);let u=e=>{var t;let{noSeasonPicker:s,isNarrowLayout:u,isInlineLayout:c,branding:x,numberOfRows:p=20,noTitle:m=!1}=e,{event:h}=(0,i.useContext)(a.y$),j=null==h||null==(t=h.tournament.uniqueTournament)?void 0:t.hasPerformanceGraphFeature;return(0,n.jsxs)(r.so,{direction:"column",gap:["sm","md"],children:[(0,n.jsxs)(l.Zp,{variant:c?"never":void 0,children:[!u&&!c&&m&&(0,n.jsx)(d.U,{titleId:"app.standings",branding:x}),(0,n.jsxs)(r.az,{children:[!s&&(0,n.jsx)(r.az,{h:"4xl"}),(0,n.jsx)(r.az,{h:"2xl"}),(0,n.jsx)(r.az,{h:"2xl"}),(0,n.jsx)(o.e,{rows:p}),(0,n.jsx)(r.az,{h:"[92px]"}),(0,n.jsx)(r.az,{p:"sm",children:(0,n.jsx)(r.az,{h:"4xl",bg:"surface.s2",br:"lg"})})]})]}),j&&(0,n.jsxs)(l.Zp,{variant:c?"never":void 0,children:[!c&&(0,n.jsx)(l.Zp.Header,{titleId:"standings_tracker_title"}),(0,n.jsx)(r.az,{h:"[542px]"})]})]})}},50433:(e,t,s)=>{s.d(t,{G:()=>c});var n=s(6029),r=s(21377),i=s(55729),l=s(45860),a=s(76868),d=s(7079),o=s(66757),u=s(69435);function c(e){let{tableName:t,loaderHeight:s,type:c}=e,{uniqueTournamentId:x,seasonId:p,standings:m,hasHomeAwayStandings:h,setIsStandingsTableEmpty:j}=(0,i.useContext)(u.P),{data:g,error:v}=(0,l.Ay)(x&&p?r.V3t.standings(x,p,c):null,{refreshInterval:3e4}),y=(null==g?void 0:g.standings)||(c===r.lpv.Total?m:void 0),{data:f}=(0,l.Ay)(x&&p?r.V3t.teamEvents(x,p,c):null,{refreshInterval:3e4});if((0,i.useEffect)(()=>{h&&j&&y&&j(void 0===y.find(e=>e.name===t))},[y,t]),v)return null;if(!y)return(0,n.jsx)(o.e,{rows:s});let b=y.find(e=>e.name===t);if(!b)return(0,n.jsx)(a.p,{graphic:"no-standings",descriptionMessageId:"empty_recent_searches_title"});let T=f?f.tournamentTeamEvents[b.tournament.id]:void 0;return(0,n.jsx)(d.X,{type:c,table:b,teamEvents:T})}},62221:(e,t,s)=>{s.d(t,{C:()=>i});var n=s(55729),r=s(25022);let i=e=>{var t;let[s,i]=(0,n.useState)(0),[l,a]=(0,n.useState)(!0),[d,o]=(0,n.useState)(0);(0,n.useEffect)(()=>{let t=null==e?void 0:e[s];t&&("number"==typeof t.currentRound?o(t.currentRound-1):t.rounds.length>=1&&o(t.rounds.length-1))},[s]);let u=e[s],c=u.rounds.filter(r.bs),x={...u,rounds:c},p=c.length>0&&(0,r.P4)(x,null==(t=e[s])?void 0:t.rounds);return{cupTrees:e,knockoutPartCupTree:x,selectedCupTree:u,enableCompactView:p,renderKnockout:l,setRenderKnockout:a,selectedRoundIndex:d,setSelectedRoundIndex:o,selectedTreeIndex:s,setSelectedTreeIndex:i}}},66268:(e,t,s)=>{s.d(t,{Bd:()=>eh,Or:()=>ev,SR:()=>ey.SR,LS:()=>ey.LS});var n=s(6029),r=s(21377),i=s(21501),l=s(76356),a=s(55729),d=s(90248),o=s(33752),u=s(48683),c=s(49249),x=s(39676),p=s(28349),m=s(75751),h=s(85986),j=s(95195),g=s(62221),v=s(21319),y=s(25022),f=s(47530);let b=e=>{var t;let{uniqueTournamentId:s,seasonId:r,sport:i,cupTrees:a}=e,{knockoutPartCupTree:o,selectedCupTree:c,enableCompactView:x,renderKnockout:j}=(0,g.C)(a);if(!o||!x||!j)return null;let b=null==(t=c.rounds.find(e=>e.order===c.currentRound))?void 0:t.description;return(0,n.jsx)(m.t,{tag:"MobileCupTree",children:(0,n.jsx)(h.J,{sport:i,tournamentId:s,seasonId:r,sourceTreeId:c.id,sourceTreeName:c.name,showSingleParticipantByeBlocks:c.showSingleParticipantByeBlocks,rounds:c.rounds,entrantsPerRound:c.showSingleParticipantByeBlocks?[]:(0,y.BE)(c.rounds),children:(0,n.jsxs)(u.Zp,{children:[(0,n.jsxs)(l.az,{pt:"lg",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"display.medium",textAlign:"center",children:(0,n.jsx)(d.A,{id:"knockout"})}),b&&(0,n.jsx)(p.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",children:(0,n.jsx)(f.__,{name:b,sport:i})})]}),(0,n.jsx)(v.H,{cupTree:o,inCard:!0})]})})})},T=e=>{let{featured:t,uniqueTournament:s}=e,[i,a]=(0,j.Q)(t.id,t.seasonId);return a?(0,n.jsx)(l.az,{h:"[500px]"}):i?(0,n.jsx)(b,{cupTrees:i,seasonId:t.seasonId,uniqueTournamentId:t.id,sport:r.QCR.Football,categorySlug:s.category.slug,uniqueTournamentSlug:s.slug}):null};var w=s(75436),S=s(59721),I=s(46009),k=s(8973),E=s(41248),C=s(4967),z=s(3167);let A=e=>{let{value:t,messageId:s}=e;return(0,n.jsxs)(l.az,{w:"1/4",px:"[1px]",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",textAlign:"center",children:t}),(0,n.jsx)(p.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",textAlign:"center",truncate:!0,children:(0,n.jsx)(d.A,{id:s})})]})},D=()=>(0,n.jsx)(l.az,{h:"2xl",w:"[1px]",backgroundColor:"onColor.secondary"}),_=e=>{let{now:t,start:s}=e,{days:r,hours:i,minutes:a,seconds:d}=(0,C.DU)(t,s);return(0,n.jsxs)(l.so,{w:"100%",justify:"space-between",bg:"[linear-gradient(0deg, {colors.onColor.highlight2} 0%, {colors.onColor.highlight2} 100%), {colors.graphics.dark}]",h:"4xl",br:"sm",p:"sm",mt:"sm",children:[(0,n.jsx)(A,{value:r,messageId:"days"}),(0,n.jsx)(D,{}),(0,n.jsx)(A,{value:i,messageId:"hours"}),(0,n.jsx)(D,{}),(0,n.jsx)(A,{value:a,messageId:"minutes"}),(0,n.jsx)(D,{}),(0,n.jsx)(A,{value:d,messageId:"seconds_left"})]})},B=e=>{let{start:t,end:s}=e,[r,d]=(0,a.useState)(new Date().getTime()),o=(0,i.hX)();if((0,a.useEffect)(()=>{let e=setInterval(()=>d(new Date().getTime()),1e3);return()=>clearInterval(e)},[]),!t||o)return(0,n.jsx)(l.az,{h:"5xl"});let u=1e3*t;return u>=r?(0,n.jsx)(_,{now:r,start:u}):(0,n.jsx)(z.G,{c:"onColor.primary",bg:"onColor.highlight.nLv2",datesProps:{mt:"xxs"},start:t,end:s,mt:"0",mb:"0",pt:"lg"})};var O=s(52695);let L=e=>{let{uniqueTournament:t,featuredType:s}=e;return(0,n.jsxs)(l.az,{position:"relative",children:[(0,n.jsx)(E.W,{tournament:s}),(0,n.jsxs)(l.az,{px:"lg",position:"relative",children:[(0,n.jsxs)(l.so,{py:"lg",gap:"lg",align:"center",children:[(0,n.jsx)(l.az,{w:"2xl",h:"2xl",children:(0,n.jsx)(S.e,{id:s.id,name:null==t?void 0:t.name,size:32})}),(0,n.jsx)(l.az,{overflow:"hidden",flexGrow:1,children:(0,n.jsx)(p.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",truncate:!0,children:t&&(0,n.jsx)(O.O,{uniqueTournament:t})})}),(0,n.jsx)(I.e,{id:s.id,entity:r.bq7.Tournaments,location:k.y.Header,type:k.b.UniqueTournament,isOnOverlay:!0})]}),(0,n.jsx)(l.az,{pb:"lg",children:(0,n.jsx)(B,{start:null==t?void 0:t.startDateTimestamp,end:null==t?void 0:t.endDateTimestamp})})]})]})};var P=s(5546),N=s(61836),Y=s(25745);let R=60*C.Z2,U=(e,t)=>{var s;let[n,r]=(0,a.useState)({}),[i,l]=(0,a.useState)({}),[d,o]=(0,a.useState)(Math.random()),u=(0,P.uZ)(),c=(0,Y.s)(null==u?void 0:u.impressionCostEncrypted),x=!!t&&!!n[t];return(0,a.useEffect)(()=>{if(!t||!x||!u)return;let e=Date.now();if(i[t]){let s=e-i[t];if(so(Math.random()),s);return()=>clearTimeout(e)}}let s=async()=>{(0,N.Zb)({provider:u.provider.slug,value:await c})};l({...i,[t]:new Date().getTime()}),s();let n=setInterval(()=>s(),R);return()=>clearInterval(n)},[x,null==u||null==(s=u.provider)?void 0:s.id,t,d]),{hasSelectedDayOdds:x,setHasSelectedDayOdds:e=>{r(s=>t?{...s,[t]:e}:s)},resetOddsTracking:()=>{r({}),l({})}}};var F=s(37960),q=s(77988),H=s(52363),M=s(19944),Z=s(12047),W=s(92494),X=s(91294),G=s(53620),V=s(54409),$=s(12294),Q=s(58047);let K=(e,t,s,n)=>{let r=(null==t?void 0:t.count)||n;if(e&&r)return r*(96+36*!!s)+8*(r-1)},J=e=>{let{day:t,events:s,isLoading:r,uniqueTournament:i,seasonId:a,setHasSelectedDayOdds:o}=e,c=(0,P.uZ)();if(!r&&0===s.length)return null;let x=K(r,t,c,1);return(0,n.jsxs)(u.Zp,{children:[(0,n.jsx)(l.az,{style:{height:x?"".concat(x,"px"):void 0},children:(0,n.jsx)(u.BU,{children:s.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,n.jsx)($.n,{countryOddsProvider:c,event:e,setHasSelectedDayOdds:o},e.id))})}),(0,n.jsx)(w.S,{uniqueTournament:i,seasonId:a,tab:Q.x.Matches,children:(0,n.jsxs)(l.so,{pb:"lg",pt:"sm",br:"md",bg:"surface.s1",justify:"center",align:"center",gap:"xs",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"display.small",color:"primary.default",children:(0,n.jsx)(d.A,{id:"see_all_matches_button"})}),(0,n.jsx)(V.CCT,{fill:"primary.default"})]})})]})};var ee=s(45860),et=s(83260),es=s(69435),en=s(83318),er=s(42078),ei=s(77235);function el(e){let{uniqueTournamentId:t,seasonId:s,selectedTournamentId:i}=e,[l,a]=(0,et.A)(en.s4,"short"),{data:d,error:o}=(0,ee.Ay)(r.V3t.standings(t,s,r.lpv.Total));return o?null:d?(0,n.jsx)(es.P.Provider,{value:{seasonId:s,uniqueTournamentId:t,standings:d.standings,isNarrowLayout:!0,displayTypeOptions:void 0,displayType:l,setDisplayType:a,homeTeamId:void 0,awayTeamId:void 0,selectedTeamId:void 0,hasPerformanceGraphFeature:!1,tournamentId:i,hasHomeAwayStandings:!1,selectedSeason:void 0},children:(0,n.jsx)(ei.A,{utId:t})}):(0,n.jsx)(er.d,{noSeasonPicker:!0,isNarrowLayout:!0})}var ea=s(97150),ed=s(10778),eo=s(90510);let eu=e=>{let{dateString:t,isSelected:s,onClick:r}=e,[a,o]=(0,i.c9)([]);(0,p.rF)(a,[s],()=>!!s);let u=t.split("-").map(Number),c=new Date(u[0],u[1]-1,u[2]);return(0,n.jsxs)(l.az,{ref:o,h:"4xl",minW:"5xl",bg:"surface.s1",onClick:s?void 0:r,cursor:s?void 0:"pointer",borderBottom:"[2px solid]",borderBottomColor:s?"primary.default":"[transparent]",style:{userSelect:"none"},flexShrink:0,pt:"xs",py:"xs",children:[(0,n.jsx)(p.EY,{display:"block",textStyle:"assistive.micro",textAlign:"center",whiteSpace:"nowrap",color:s?"primary.default":"neutrals.nLv3",mt:"xs",children:(0,C.cK)(c)?(0,n.jsx)(d.A,{id:"today"}):(0,n.jsx)(eo.XU,{value:c,weekday:"short"})}),(0,n.jsx)(p.EY,{display:"block",textStyle:"display.micro",textAlign:"center",whiteSpace:"nowrap",mt:"2xs",children:(0,n.jsx)(eo.XU,{value:c,day:"numeric",month:"short"})})]})},ec=e=>{let{selectedDate:t,setSelectedDate:s,dates:r}=e;return(0,n.jsx)(p.tR,{showButtons:"never",children:(0,n.jsx)(l.so,{bg:"surface.s1",minW:"fit",h:"4xl",justify:"space-between",children:r.length>0&&r.map(e=>(0,n.jsx)(eu,{dateString:e.date,isSelected:(null==t?void 0:t.date)===e.date,onClick:()=>s(e)},e.date))})})};var ex=s(86679);let ep=e=>{let{data:t}=(0,ee.Ay)(r.tI9.seasonDatesWithEvents(e.seasonId,3600*(0,C.UW)())),{hasCupTree:s}=(0,ex.A)({hasCupTree:{route:r.V3t.cupTrees(e.id,e.seasonId)}},[e.id,e.seasonId]),[n,i]=(0,a.useState)(),l=(null==t?void 0:t.dailySeasonEvents)||[];(0,a.useEffect)(()=>{if(l.length){let e=new Date().getTime(),t=l[0],s=Number.MAX_VALUE;l.forEach(n=>{let r=new Date(n.date),i=Math.abs(e-r.getTime());(0,C.cK)(r)&&(t=n,s=0),i{let{tournament:t,uniqueTournament:s}=e,p=(0,Z.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1}),{selectedDate:m,setSelectedDate:h,dates:j,showCupTree:g}=ep(t),{events:v,isLoading:y}=(0,M.Y)(t.id,null==m?void 0:m.date),{hasSelectedDayOdds:f,setHasSelectedDayOdds:b}=U(t.id,null==m?void 0:m.date),S=(0,ea.h)(v),I=(0,P.uZ)(),k=(0,i.YU)();return(0,a.useEffect)(()=>{window.scrollTo({left:0,top:0})},[t.id]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.az,{position:"relative",children:[(0,n.jsx)(w.S,{uniqueTournament:s,seasonId:t.seasonId,children:(0,n.jsx)(L,{featuredType:t,uniqueTournament:s})}),(0,n.jsx)(o.B,{children:(0,n.jsx)(o.B.Title,{children:(0,n.jsx)(d.A,{id:"meta."+t.slug,defaultMessage:s.name})})}),(0,n.jsx)(l.az,{bg:"surface.s1",position:"sticky",zIndex:"sticky",elevation:"2",style:{top:p},children:(0,n.jsx)(ec,{selectedDate:m,setSelectedDate:h,dates:j})}),(0,n.jsx)(l.az,{bg:"surface.s0",children:(0,n.jsxs)(u.BU,{children:[(0,n.jsx)(J,{day:m,events:v,isLoading:y||!m,uniqueTournament:s,seasonId:t.seasonId,setHasSelectedDayOdds:b}),(0,n.jsx)(x.iN,{id:W.Rj.MOBILE_FEATURED_TOURNAMENT_TOP}),(0,n.jsx)(X.pk,{utIds:null,logData:{type:"banner",name:"fantasy",location:N.XN.FeaturedTournamentTab}}),g?(0,n.jsx)(T,{featured:t,uniqueTournament:s}):(0,n.jsx)(el,{uniqueTournamentId:t.id,seasonId:t.seasonId,selectedTournamentId:S}),(0,n.jsx)(c.Z,{entity:"unique-tournament",entityId:t.id,entityBackgroundImageUrl:r.V3t.image(t.id,!0),location:N.XN.FeaturedTournamentTab})]})})]}),t.historyHighlightsEndYear&&(0,n.jsx)(ed.j,{uniqueTournament:s,tournament:t}),(0,n.jsx)(l.so,{justify:"center",align:"center",pt:t.historyHighlightsEndYear?"lg":"sm",pb:"4xl",px:"lg",gap:"sm",bg:"surface.s0",children:f&&(0,n.jsx)(q.A,{provider:I})}),(0,n.jsx)(H.hz,{uniqueTournamentId:s.id}),(0,n.jsx)(l.az,{position:"fixed",right:"0",left:"0",bottom:"0",zIndex:"bottomNavigation",style:{transition:"transform ".concat(F.x,"ms ease-out"),transform:"translateY(".concat(k===i.Dh.Down?0:-1*G.E,"px)")},children:(0,n.jsx)(x.iN,{id:W.Rj.MOBILE_FEATURED_TOURNAMENT_BOTTOM})})]})},eh=e=>(0,n.jsx)(em,{...e}),ej=(e,t)=>{let s=e.localeCompare(t.defaultFrom);return s<0?0:0===s?1:e.localeCompare(t.showCupTreeFrom||t.visibleTo)>=0?2:4},eg=e=>{let{selectedDate:t,tournament:s}=e,{data:i}=(0,ee.Ay)(r.V3t.details(s.id)),{data:a}=(0,ee.Ay)(r.tI9.seasonDatesWithEvents(s.seasonId,3600*(0,C.UW)()),{dedupingInterval:C.dp}),{events:d,isLoading:o}=(0,M.Y)(s.id,t),c=(0,P.uZ)(),{setHasSelectedDayOdds:x}=U(s.id,t),p=ej(t,s),m=K(o,null==a?void 0:a.dailySeasonEvents.find(e=>e.date===t),c,p);return(0,n.jsx)(u.Zp,{children:(0,n.jsxs)(u.BU,{children:[(0,n.jsx)(w.S,{uniqueTournament:null==i?void 0:i.uniqueTournament,seasonId:s.seasonId,onClick:()=>(0,N.ke)({action:"click",location:"main_page",type:s.analyticsName}),children:(0,n.jsx)(l.az,{br:"lg",overflow:"hidden",children:(0,n.jsx)(L,{featuredType:s,uniqueTournament:null==i?void 0:i.uniqueTournament})})}),o&&Number(m)>0&&(0,n.jsx)(l.az,{style:{height:m?"".concat(m,"px"):void 0}}),d.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,n.jsx)($.n,{countryOddsProvider:c,event:e,setHasSelectedDayOdds:x},e.id))]})})},ev=e=>{let{date:t,tournaments:s}=e;return(0,n.jsx)(n.Fragment,{children:s.map(e=>(0,n.jsx)(eg,{tournament:e,selectedDate:t},e.id))})};var ey=s(79368)},66757:(e,t,s)=>{s.d(t,{e:()=>d});var n=s(6029),r=s(18612),i=s(76356),l=s(55729);function a(e){let{rows:t,rowHeight:s}=e;return(0,n.jsx)(r.D,{animate:!0,height:t*s,uniqueKey:"generic-table-cl",children:Array(t).fill(null).map((e,t)=>{let r=t*s;return(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("circle",{cx:20,cy:r+s/2,r:12}),(0,n.jsx)("rect",{x:40,y:r+8,width:"calc(100% - 48px)",height:s-16})]},r)})})}function d(e){let{rows:t=12}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.az,{hideBelow:"md",children:(0,n.jsx)(a,{rowHeight:32,rows:t})}),(0,n.jsx)(i.az,{hideFrom:"md",children:(0,n.jsx)(a,{rowHeight:48,rows:t})})]})}},77235:(e,t,s)=>{s.d(t,{A:()=>f});var n=s(6029),r=s(21377),i=s(28349),l=s(21501),a=s(76356),d=s(55729),o=s(43072),u=s(48683),c=s(85568),x=s(47530),p=s(82287),m=s(69435),h=s(11033),j=s(65457),g=s(50433);function v(e){let{isSelected:t,onClick:s,children:r}=e,[d,o]=(0,l.c9)([]);return(0,i.rF)(d,[t],()=>!!t),(0,n.jsx)(a.az,{ref:o,children:(0,n.jsx)(a.so,{h:"2xl",minW:"[68px]",px:"sm",br:"sm",userSelect:"none",bg:t?"primary.highlight":"surface.s2",border:t?"1.5px solid {colors.primary.highlight}":"1.5px solid transparent",onClick:t?void 0:s,cursor:"pointer",justify:"center",align:"center",children:(0,n.jsx)(i.EY,{textStyle:"tab.secondary",color:t?"primary.default":"neutrals.nLv1",truncate:!0,textTransform:"uppercase",children:r})})})}function y(e){let{selectedIndex:t,setSelectedIndex:s}=e,{standings:l,isNarrowLayout:u,displayType:c,setDisplayType:p}=(0,d.useContext)(m.P),[h,y]=(0,o.Wx)({trackVisibility:!0,delay:100});return(0,n.jsxs)(a.az,{flexGrow:1,overflow:{md:"hidden"},children:[(0,n.jsxs)(a.so,{px:"sm",borderBottom:"1px solid {colors.neutrals.nLv4}",children:[(0,n.jsx)(i.tR,{buttonStyle:"solid",showButtons:"desktop",children:(0,n.jsxs)(a.so,{children:[(0,n.jsx)(a.so,{justify:"flex-start",gap:"lg",py:"sm",children:l.map((e,r)=>(0,n.jsx)(v,{isSelected:t===r,onClick:()=>s(r),children:(0,n.jsx)(x.__,{name:e.tournament.groupName||e.tournament.name})},e.id))}),(0,n.jsx)(a.az,{ref:h,w:"sm"})]})}),u&&(0,n.jsx)(a.so,{align:"center",ps:"sm",boxShadow:{_ltr:y?void 0:"[-3px 0 8px -7px {colors.neutrals.nLv1}]",_rtl:y?void 0:"[3px 0 8px -7px {colors.neutrals.nLv1}]"},children:(0,n.jsx)(j.A,{displayType:c,setDisplayType:p,isNarrowLayout:u})})]}),(0,n.jsx)(g.G,{tableName:l[t].name,type:r.lpv.Total})]})}function f(e){let{branding:t,utId:s}=e,{seasonId:r,standings:i,tournamentId:l}=(0,d.useContext)(m.P),[a,o]=(0,d.useState)(0);if((0,d.useEffect)(()=>{o(Math.max(i.findIndex(e=>e.tournament.id===l),0))},[r,l]),!i[a])return null;let x=i[a];return(0,n.jsxs)(u.Zp,{children:[(0,n.jsx)(c.U,{entityId:s,titleId:"tournament.standings",branding:t,location:"league_standings"}),(0,n.jsxs)(p.R,{standings:x,children:[(0,n.jsx)(y,{selectedIndex:a,setSelectedIndex:o}),(0,n.jsx)(h.c,{rows:x.rows,descriptions:x.descriptions,tieBreakingRule:x.tieBreakingRule,defaultOpenedFirstRules:!0})]})]})}},85568:(e,t,s)=>{s.d(t,{U:()=>a});var n=s(6029),r=s(28349),i=s(13030),l=s(51372);let a=e=>{let{branding:t,location:s,entityId:a,...d}=e,{isDesktop:o}=(0,r.$c)();return o&&t?(0,n.jsx)(i.A.Header,{...d,variant:"left-aligned",actionComponent:(0,n.jsx)(l.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:s,entityId:a})}):(0,n.jsx)(i.A.Header,{...d})}},97150:(e,t,s)=>{s.d(t,{h:()=>r});var n=s(21377);let r=e=>{var t;let s=null==e?void 0:e.filter(e=>e.status.type===n.XUj.InProgress),r=null==e?void 0:e.filter(e=>e.status.type===n.XUj.NotStarted&&e.hasEventPlayerStatistics);return[...((null==s?void 0:s.length)>0?s:r.length>0?r:e).map(e=>e.tournament.id).reduce((e,t)=>{var s;return e.set(t,(null!=(s=e.get(t))?s:0)+1),e},new Map)].reduce((e,t)=>t[1]>e[1]?t:e,[void 0,0])[0]}}}]);