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