!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]="87dc48f3-b954-4aaa-987c-1bbfbc0b3141",e._sentryDebugIdIdentifier="sentry-dbid-87dc48f3-b954-4aaa-987c-1bbfbc0b3141")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1788],{21075:(e,t,s)=>{s.d(t,{n:()=>q});var n=s(6029),r=s(33144),l=s(21377),i=s(44194),a=s(76356),d=s(55729),o=s(90510),c=s(62859),u=s(84719),x=s(65078),p=s(8973),m=s(39969),h=s(70591),j=s(47530),g=s(87763),v=s(94604),y=s(62827),f=s(4967),b=s(494),w=s(41618),T=s(62213),k=s(85517),I=s(49821),S=s(4236),C=s(61836),z=s(10794),E=s(62042),A=s(75791),D=s(28600),_=s(31253);let B=(e,t,s)=>(0,E.AH)({display:"flex",justifyContent:"space-evenly",alignItems:"center",flex:"1",minW:"[0px]",minH:"[20px]",border:t?"1px solid":void 0,borderColor:t?"primary.default":s?"neutrals.nLv4":void 0,borderRadius:"xs",backgroundColor:"surface.s1",overflow:"hidden",_hover:{backgroundColor:e?"surface.s2":void 0}}),O=e=>{let{betSlipLink:t,onClick:s,title:r,clickable:l,winning:i,children:d,isOddsBranded:o}=e;return l&&t?(0,n.jsx)(a.I4.a,{href:t,target:"_blank",rel:"nofollow noopener noreferrer",onClick:s,title:r,className:B(l,i,o),children:d}):(0,n.jsx)(a.I4.div,{className:B(l,i),onClick:s,children:d})};function P(e){let{choice:t,isLive:s,betSlipLink:r,branded:l,onClick:d,isOddsBranded:o}=e,c=!!(r&&l);return(0,n.jsxs)(O,{clickable:c,title:t.name,betSlipLink:r,onClick:d,winning:t.winning,isOddsBranded:o,children:[(0,n.jsx)(i.EY,{display:"block",minW:"lg",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",truncate:!0,children:(0,n.jsx)(D.G,{id:t.name})}),(0,n.jsxs)(a.so,{minW:"2xl",justify:"center",align:"center",gap:"2xs",children:[(0,n.jsx)(a.az,{mt:1===t.change?"2xs":void 0,children:(0,n.jsx)(_.A,{change:t.change})}),(0,n.jsx)(i.EY,{display:"block",textStyle:"display.micro",color:s?"status.val":"neutrals.nLv1",children:(0,n.jsx)(A.c,{fractionalValue:t.fractionalValue})})]})]})}let L=e=>{let{countryOddsProvider:t,setHasSelectedDayOdds:s,isOddsBranded:r}=e,{event:i}=(0,d.useContext)(c.y$),{featuredOdds:o,error:u}=(0,k.A)(t,i.id,i.status.type===l.XUj.InProgress);if((0,d.useEffect)(()=>{o&&s(!0)},[o]),!o&&!u)return i.startTimestamp*f.Z2-4*f.d_(0,C.Sj)({position:e,provider:t.provider.slug});return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(a.so,{py:"sm",gap:"lg",children:[(0,n.jsx)(a.so,{gap:"sm",grow:1,overflow:"hidden",children:o.choices.map(e=>(0,n.jsx)(P,{choice:e,isLive:o.isLive,betSlipLink:t&&(0,S.Iz)(e,o,t),branded:null==t?void 0:t.branded,onClick:()=>x(I.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:()=>x(I.ki.ProviderLogo),logClick:!1})})]})})},F=e=>{let{event:t}=(0,d.useContext)(c.y$),s=(0,b.d4)(z.LQ),r=(0,b.d4)(z.dg);return s&&T.aZ.includes(s)&&T.S1.includes(t.status.type)||s&&T.ZN.includes(s)&&!r||t.homeTeam.disabled||t.awayTeam.disabled?null:(0,n.jsx)(L,{...e})},U=e=>{let{preferDate:t}=e,{event:s,leftTeam:r,rightTeam:l}=(0,d.useContext)(c.y$);return(0,n.jsxs)(a.so,{h:"3xl",justify:"space-between",align:"center",children:[(0,n.jsx)(i.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:l})})]})},H=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)(i.EY,{display:"block",color:"surface.s1",textStyle:"assistive.default",children:(0,n.jsx)(g.fP,{id:t.status.description})})})})},Y=()=>{let{event:e,leftTeam:t,rightTeam:s}=(0,d.useContext)(c.y$),x=e.status.type===l.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)(i.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)(u.A,{isSmall:!0,shortStatus:!0}),x&&(0,n.jsx)(i.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)(i.EY,{display:"block",textStyle:"display.micro",truncate:!0,children:(0,n.jsx)(v.Rm,{team:s,short:!0})})]})]})},q=e=>{let{event:t,countryOddsProvider:s,setHasSelectedDayOdds:r,preferDateInHeader:l,isOddsBranded:i}=e,{event:d,...o}=(0,x.mJ)(t.id,{event:t,shouldRefresh:!0}),u=d||t,p=(0,y.sw)(u);return(0,n.jsx)(c.y$.Provider,{value:{event:u,...o,location:c.cb.SpecialEventWidget},children:(0,n.jsxs)(a.az,{minH:"10xl",px:"lg",pb:"sm",bg:"surface.s2",br:"md",children:[(0,n.jsxs)(h.tj,{event:u,children:[(0,n.jsx)(U,{preferDate:l}),p&&(0,n.jsx)(H,{event:u}),(0,n.jsx)(Y,{})]}),s&&(0,n.jsx)(F,{countryOddsProvider:s,setHasSelectedDayOdds:r,isOddsBranded:i})]})})}},21319:(e,t,s)=>{s.d(t,{H:()=>u});var n=s(6029),r=s(44194),l=s(76356),i=s(90248),a=s(85986),d=s(25022),o=s(53214);function c(e){var t,s;let{block:a,placementBlock:d,inCard:c}=e,u=null==(t=a.participants[0])?void 0:t.winner,x=null==(s=a.participants[1])?void 0:s.winner;return(0,n.jsxs)(l.so,{align:"center",justify:"center",position:"relative",children:[(0,n.jsx)(o.b8,{block:a,inCard:c}),(u||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)(o.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)(o.b8,{block:d,hideTopConnector:!0,hideBottomConnector:!0,inCard:c}),(0,n.jsx)(r.EY,{display:"block",textAlign:"center",textStyle:"assistive.micro",color:"neutrals.nLv3",mt:"-md",children:(0,n.jsx)(i.A,{id:"3rdPlace"})})]})]})}function u(e){let{cupTree:t,inCard:s}=e,{sport:r}=(0,a.B)(),i=(0,d.TI)(t,r,null);return(0,n.jsxs)(l.az,{overflow:s?"hidden":"scroll",children:[(0,n.jsx)(o.Bg,{tree:i.left,inCard:s}),(0,n.jsx)(c,{block:i,placementBlock:i.thirdPlaceBlock,inCard:s}),(0,n.jsx)(o.Bg,{tree:i.right,initialOrientation:"bottom",inCard:s})]})}},41618:(e,t,s)=>{s.d(t,{r:()=>c,$:()=>p});var n=s(6029),r=s(21377),l=s(76356),i=s(55729),a=s(62859),d=s(61836),o=s(49821);function c(e){let{selectedProvider:t,location:s,onClick:c,logClick:u=!0,size:x="56x28"}=e,p=null==t?void 0:t.provider,m=null==t?void 0:t.branded,h=null==t?void 0:t.provider.slug,{location:j}=(0,i.useContext)(a.y$),[g,v]=x.split("x"),y=s||j;return p&&m?(0,n.jsx)(l.I4.a,{display:"flex",justifyContent:"center",alignItems:"center",br:"xs",rel:"noopener noreferrer",target:"_blank",href:t.defaultBetSlipLink||p.defaultBetSlipLink,onClick:e=>{e.stopPropagation(),null==c||c(),u&&(0,d.Fe)({location:y,provider:h,position:o.ki.ProviderLogo})},style:{background:p.colors.primary,width:"".concat(g,"px"),height:"".concat(v,"px")},children:(0,n.jsx)(l.I4.img,{src:r.npy.providerImage(p.id),alt:p.name||"",style:{width:"".concat(g,"px"),height:"auto"}})}):null}var u=s(44194),x=s(90248);let p=e=>{let{provider:t}=e;return(null==t?void 0:t.branded)?(0,n.jsxs)(l.so,{justify:"center",align:"center",ml:"lg",children:[(0,n.jsx)(u.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"sm",truncate:!0,children:(0,n.jsx)(x.A,{id:"featured_by"})}),(0,n.jsx)(c,{selectedProvider:t,size:"48x24"})]}):null}},42078:(e,t,s)=>{s.d(t,{d:()=>x});var n=s(6029),r=s(76356),l=s(99064),i=s(55729),a=s(90248),d=s(65789),o=s(62859),c=s(85568),u=s(66757);let x=e=>{var t;let{noSeasonPicker:s,isNarrowLayout:x,branding:p,numberOfRows:m=20}=e,{event:h}=(0,i.useContext)(o.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)(d.Zp,{isInverseDesktop:x,children:[!x&&(0,n.jsx)(c.U,{titleId:"app.standings",branding:p}),(0,n.jsxs)(r.az,{children:[!s&&(0,n.jsx)(r.az,{h:"4xl"}),(0,n.jsx)(l.tU,{variant:"secondary",children:(0,n.jsx)(r.so,{h:"[53px]",p:"sm",justify:"space-between",children:(0,n.jsxs)(r.az,{children:[(0,n.jsx)(l.tU.Tab,{tabKey:1,children:(0,n.jsx)(a.A,{id:"basic.all"})}),(0,n.jsx)(l.tU.Tab,{tabKey:2,children:(0,n.jsx)(a.A,{id:"home"})}),(0,n.jsx)(l.tU.Tab,{tabKey:3,children:(0,n.jsx)(a.A,{id:"away"})})]})})}),(0,n.jsx)(r.az,{h:"2xl"}),(0,n.jsx)(u.e,{rows:m}),(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)(d.Zp,{children:[(0,n.jsx)(d.Zp.Header,{titleId:"standings_tracker_title"}),(0,n.jsx)(r.az,{h:"[542px]"})]})]})}},59721:(e,t,s)=>{s.d(t,{e:()=>n.e});var n=s(33480)},62221:(e,t,s)=>{s.d(t,{C:()=>l});var n=s(55729),r=s(25022);let l=e=>{var t;let[s,l]=(0,n.useState)(0),[i,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 c=e[s],u=c.rounds.filter(r.bs),x={...c,rounds:u},p=u.length>0&&(0,r.P4)(x,null==(t=e[s])?void 0:t.rounds);return{cupTrees:e,knockoutPartCupTree:x,selectedCupTree:c,enableCompactView:p,renderKnockout:i,setRenderKnockout:a,selectedRoundIndex:d,setSelectedRoundIndex:o,selectedTreeIndex:s,setSelectedTreeIndex:l}}},66268:(e,t,s)=>{s.d(t,{Bd:()=>ep,Or:()=>eg,SR:()=>ev.SR,LS:()=>ev.LS});var n=s(6029),r=s(21377),l=s(76356),i=s(55729),a=s(90248),d=s(33752),o=s(65789),c=s(49249),u=s(14861),x=s(44194),p=s(75751),m=s(85986),h=s(95195),j=s(62221),g=s(21319),v=s(25022),y=s(47530);let f=e=>{var t;let{uniqueTournamentId:s,seasonId:r,sport:i,cupTrees:d}=e,{knockoutPartCupTree:c,selectedCupTree:u,enableCompactView:h,renderKnockout:f}=(0,j.C)(d);if(!c||!h||!f)return null;let b=null==(t=u.rounds.find(e=>e.order===u.currentRound))?void 0:t.description;return(0,n.jsx)(p.t,{tag:"MobileCupTree",children:(0,n.jsx)(m.J,{sport:i,tournamentId:s,seasonId:r,sourceTreeId:u.id,sourceTreeName:u.name,showSingleParticipantByeBlocks:u.showSingleParticipantByeBlocks,rounds:u.rounds,entrantsPerRound:u.showSingleParticipantByeBlocks?[]:(0,v.BE)(u.rounds),children:(0,n.jsxs)(o.Zp,{children:[(0,n.jsxs)(l.az,{pt:"lg",children:[(0,n.jsx)(x.EY,{display:"block",textStyle:"display.medium",textAlign:"center",children:(0,n.jsx)(a.A,{id:"knockout"})}),b&&(0,n.jsx)(x.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",children:(0,n.jsx)(y.__,{name:b,sport:i})})]}),(0,n.jsx)(g.H,{cupTree:c,inCard:!0})]})})})},b=e=>{let{featured:t,uniqueTournament:s}=e,[i,a]=(0,h.Q)(t.id,t.seasonId);return a?(0,n.jsx)(l.az,{h:"[500px]"}):i?(0,n.jsx)(f,{cupTrees:i,seasonId:t.seasonId,uniqueTournamentId:t.id,sport:r.QCR.Football,categorySlug:s.category.slug,uniqueTournamentSlug:s.slug}):null};var w=s(75436),T=s(59721),k=s(46009),I=s(8973),S=s(41248),C=s(4967),z=s(21501),E=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)(x.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",textAlign:"center",children:t}),(0,n.jsx)(x.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",textAlign:"center",truncate:!0,children:(0,n.jsx)(a.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,a]=(0,i.useState)(new Date().getTime()),d=(0,z.hX)();if((0,i.useEffect)(()=>{let e=setInterval(()=>a(new Date().getTime()),1e3);return()=>clearInterval(e)},[]),!t||d)return(0,n.jsx)(l.az,{h:"5xl"});let o=1e3*t;return o>=r?(0,n.jsx)(_,{now:r,start:o}):(0,n.jsx)(E.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 P=e=>{let{uniqueTournament:t,featuredType:s}=e;return(0,n.jsxs)(l.az,{position:"relative",children:[(0,n.jsx)(S.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)(T.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)(x.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",truncate:!0,children:t&&(0,n.jsx)(O.O,{uniqueTournament:t})})}),(0,n.jsx)(k.e,{id:s.id,entity:r.bq7.Tournaments,location:I.y.Header,type:I.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 L=s(5546),F=s(61836),U=s(25745);let H=60*C.Z2,Y=(e,t)=>{var s;let[n,r]=(0,i.useState)({}),[l,a]=(0,i.useState)({}),[d,o]=(0,i.useState)(Math.random()),c=(0,L.uZ)(),u=(0,U.s)(null==c?void 0:c.impressionCostEncrypted),x=!!t&&!!n[t];return(0,i.useEffect)(()=>{if(!t||!x||!c)return;let e=Date.now();if(l[t]){let s=e-l[t];if(so(Math.random()),s);return()=>clearTimeout(e)}}let s=async()=>{(0,F.Zb)({provider:c.provider.slug,value:await u})};a({...l,[t]:new Date().getTime()}),s();let n=setInterval(()=>s(),H);return()=>clearInterval(n)},[x,null==c||null==(s=c.provider)?void 0:s.id,t,d]),{hasSelectedDayOdds:x,setHasSelectedDayOdds:e=>{r(s=>t?{...s,[t]:e}:s)},resetOddsTracking:()=>{r({}),a({})}}};var q=s(77988),Z=s(52363),R=s(19944),N=s(12047),W=s(54409),M=s(21075),V=s(28132);let $=(e,t,s,n)=>{let r=(null==t?void 0:t.count)||n;if(e&&r)return r*(96+36*!!s)+8*(r-1)},X=e=>{let{day:t,events:s,isLoading:r,uniqueTournament:i,seasonId:d,setHasSelectedDayOdds:c}=e,u=(0,L.uZ)();if(!r&&0===s.length)return null;let p=$(r,t,u,1);return(0,n.jsxs)(o.Zp,{children:[(0,n.jsx)(l.az,{style:{height:p?"".concat(p,"px"):void 0},children:(0,n.jsx)(o.BU,{children:s.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,n.jsx)(M.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:c},e.id))})}),(0,n.jsx)(w.S,{uniqueTournament:i,seasonId:d,tab:V.H.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)(x.EY,{display:"block",textStyle:"display.small",color:"primary.default",children:(0,n.jsx)(a.A,{id:"see_all_matches_button"})}),(0,n.jsx)(W.CCT,{fill:"primary.default"})]})})]})};var G=s(10778),K=s(90510);let Q=e=>{let{dateString:t,isSelected:s,onClick:r}=e,[i,d]=(0,z.c9)([]);(0,x.rF)(i,[s],()=>!!s);let o=t.split("-").map(Number),c=new Date(o[0],o[1]-1,o[2]);return(0,n.jsxs)(l.az,{ref:d,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)(x.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)(a.A,{id:"today"}):(0,n.jsx)(K.XU,{value:c,weekday:"short"})}),(0,n.jsx)(x.EY,{display:"block",textStyle:"display.micro",textAlign:"center",whiteSpace:"nowrap",mt:"2xs",children:(0,n.jsx)(K.XU,{value:c,day:"numeric",month:"short"})})]})},J=e=>{let{selectedDate:t,setSelectedDate:s,dates:r}=e;return(0,n.jsx)(x.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)(Q,{dateString:e.date,isSelected:(null==t?void 0:t.date)===e.date,onClick:()=>s(e)},e.date))})})};var ee=s(45860),et=s(86679);let es=e=>{let{data:t}=(0,ee.Ay)(r.tI9.seasonDatesWithEvents(e.seasonId,3600*(0,C.UW)())),{hasCupTree:s}=(0,et.A)({hasCupTree:{route:r.V3t.cupTrees(e.id,e.seasonId)}},[e.id,e.seasonId]),[n,l]=(0,i.useState)(),a=(null==t?void 0:t.dailySeasonEvents)||[];(0,i.useEffect)(()=>{if(a.length){let e=new Date().getTime(),t=a[0],s=Number.MAX_VALUE;a.forEach(n=>{let r=new Date(n.date),l=Math.abs(e-r.getTime());(0,C.cK)(r)&&(t=n,s=0),l{let{tournament:t,uniqueTournament:s}=e,x=(0,N.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1}),{selectedDate:p,setSelectedDate:m,dates:h,showCupTree:j}=es(t),{events:g,isLoading:v}=(0,R.Y)(t.id,null==p?void 0:p.date),{hasSelectedDayOdds:y,setHasSelectedDayOdds:f}=Y(t.id,null==p?void 0:p.date),T=(0,eu.h)(g),k=(0,L.uZ)();return(0,i.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)(P,{featuredType:t,uniqueTournament:s})}),(0,n.jsx)(d.B,{children:(0,n.jsx)(d.B.Title,{children:(0,n.jsx)(a.A,{id:"meta."+t.slug,defaultMessage:s.name})})}),(0,n.jsx)(l.az,{bg:"surface.s1",position:"sticky",zIndex:"sticky",elevation:"2",style:{top:x},children:(0,n.jsx)(J,{selectedDate:p,setSelectedDate:m,dates:h})}),(0,n.jsx)(l.az,{bg:"surface.s0",children:(0,n.jsxs)(o.BU,{children:[(0,n.jsx)(X,{day:p,events:g,isLoading:v||!p,uniqueTournament:s,seasonId:t.seasonId,setHasSelectedDayOdds:f}),(0,n.jsx)(u.i,{id:"eurocopa.EURO_FEATURED"}),(0,n.jsx)(en.pk,{utIds:null,logData:{type:"banner",name:"fantasy",location:"featured_tournament_tab"}}),j?(0,n.jsx)(b,{featured:t,uniqueTournament:s}):(0,n.jsx)(ec,{uniqueTournamentId:t.id,seasonId:t.seasonId,selectedTournamentId:T}),(0,n.jsx)(c.Z,{entity:"unique-tournament",entityId:t.id,bgImageUrl:r.V3t.image(t.id,!0),location:"featured_tournament_tab"})]})})]}),t.historyHighlightsEndYear&&(0,n.jsx)(G.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:y&&(0,n.jsx)(q.A,{provider:k})}),(0,n.jsx)(Z.hz,{uniqueTournamentId:s.id}),(0,n.jsx)(l.az,{position:"fixed",right:"0",left:"0",zIndex:"bottomNavigation",style:{bottom:"calc(env(safe-area-inset-bottom) + ".concat(er.E,"px)")},children:(0,n.jsx)(u.i,{id:"eurocopa.EUROCOPA_BOTTOM",borderless:!0})})]})},ep=e=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ex,{...e})});var em=s(13030);let eh=(e,t)=>{let s=e.localeCompare(t.defaultFrom);return s<0?0:0===s?1:e.localeCompare(t.showCupTreeFrom||t.visibleTo)>=0?2:4},ej=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:c}=(0,R.Y)(s.id,t),u=(0,L.uZ)(),{setHasSelectedDayOdds:x}=Y(s.id,t),p=eh(t,s),m=$(c,null==a?void 0:a.dailySeasonEvents.find(e=>e.date===t),u,p);return(0,n.jsx)(em.A,{children:(0,n.jsxs)(o.BU,{children:[(0,n.jsx)(w.S,{uniqueTournament:null==i?void 0:i.uniqueTournament,seasonId:s.seasonId,onClick:()=>(0,F.ke)({action:"click",location:"main_page",type:s.analyticsName}),children:(0,n.jsx)(l.az,{br:"lg",overflow:"hidden",children:(0,n.jsx)(P,{featuredType:s,uniqueTournament:null==i?void 0:i.uniqueTournament})})}),c&&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)(M.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:x},e.id))]})})},eg=e=>{let{date:t,tournaments:s}=e;return(0,n.jsx)(n.Fragment,{children:s.map(e=>(0,n.jsx)(ej,{tournament:e,selectedDate:t},e.id))})};var ev=s(79368)},66757:(e,t,s)=>{s.d(t,{e:()=>d});var n=s(6029),r=s(18612),l=s(76356),i=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)(i.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)(l.az,{hideBelow:"md",children:(0,n.jsx)(a,{rowHeight:32,rows:t})}),(0,n.jsx)(l.az,{hideFrom:"md",children:(0,n.jsx)(a,{rowHeight:48,rows:t})})]})}},80925:(e,t,s)=>{s.d(t,{Z:()=>n});let n=(e,t)=>{let s=null==e?void 0:e.provider,n=null==e?void 0:e.fallbackProvider;return t&&(null==s?void 0:s.liveOddsFrom)?[null==s?void 0:s.liveOddsFrom.id,null==n?void 0:n.id]:(null==s?void 0:s.oddsFrom)?[null==s?void 0:s.oddsFrom.id,null==n?void 0:n.id]:[null==s?void 0:s.id,null==n?void 0:n.id]}},85568:(e,t,s)=>{s.d(t,{U:()=>a});var n=s(6029),r=s(44194),l=s(13030),i=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)(l.A.Header,{...d,variant:"left-aligned",actionComponent:(0,n.jsx)(i.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:s,entityId:a})}):(0,n.jsx)(l.A.Header,{...d})}}}]);