!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]="d0c51e9d-4289-4be0-8009-99d777934f4a",e._sentryDebugIdIdentifier="sentry-dbid-d0c51e9d-4289-4be0-8009-99d777934f4a")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5404],{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),S=n(49821),I=n(4236),C=n(61836),z=n(10794),_=n(62042),E=n(75791),A=n(28600),D=n(31253);let B=(e,t,n)=>(0,_.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}}),L=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 O(e){let{choice:t,isLive:n,betSlipLink:r,branded:l,onClick:d,isOddsBranded:o}=e,c=!!(r&&l);return(0,s.jsxs)(L,{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)(A.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)(D.A,{change:t.change})}),(0,s.jsx)(i.EY,{display:"block",textStyle:"display.micro",color:n?"status.val":"neutrals.nLv1",children:(0,s.jsx)(E.c,{fractionalValue:t.fractionalValue})})]})]})}let P=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)(O,{choice:e,isLive:o.isLive,betSlipLink:t&&(0,I.Iz)(e,o,t),branded:null==t?void 0:t.branded,onClick:()=>x(S.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(S.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)(P,{...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})})]})},H=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})})})})},Y=()=>{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)(H,{event:u}),(0,s.jsx)(Y,{})]}),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})]})}},25836:(e,t,n)=>{n.d(t,{Bd:()=>eg,Or:()=>eb,SR:()=>ew.SR,LS:()=>ew.LS});var s=n(6029),r=n(21377),l=n(76356),i=n(55729),a=n(90248),d=n(33752),o=n(65789),c=n(49249),u=n(14861),x=n(44194),m=n(75751),p=n(85986),h=n(95195),j=n(62221),g=n(21319),v=n(25022),y=n(47530);let f=e=>{var t;let{uniqueTournamentId:n,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,s.jsx)(m.t,{tag:"MobileCupTree",children:(0,s.jsx)(p.J,{sport:i,tournamentId:n,seasonId:r,sourceTreeId:u.id,sourceTreeName:u.name,showSingleParticipantByeBlocks:u.showSingleParticipantByeBlocks,rounds:u.rounds,entrantsPerRound:u.showSingleParticipantByeBlocks?[]:(0,v.BE)(u.rounds),children:(0,s.jsxs)(o.Zp,{children:[(0,s.jsxs)(l.az,{pt:"lg",children:[(0,s.jsx)(x.EY,{display:"block",textStyle:"display.medium",textAlign:"center",children:(0,s.jsx)(a.A,{id:"knockout"})}),b&&(0,s.jsx)(x.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",textAlign:"center",children:(0,s.jsx)(y.__,{name:b,sport:i})})]}),(0,s.jsx)(g.H,{cupTree:c,inCard:!0})]})})})},b=e=>{let{featured:t,uniqueTournament:n}=e,[i,a]=(0,h.Q)(t.id,t.seasonId);return a?(0,s.jsx)(l.az,{h:"[500px]"}):i?(0,s.jsx)(f,{cupTrees:i,seasonId:t.seasonId,uniqueTournamentId:t.id,sport:r.QCR.Football,categorySlug:n.category.slug,uniqueTournamentSlug:n.slug}):null};var w=n(947),T=n(25540),k=n(84677),S=n(12153);let I=()=>{let e=(0,w.A)(),{isFantasyEnabled:t}=(0,k.t)();return t?(0,s.jsx)(S.A,{routeKey:"fantasy",children:(0,s.jsx)(T.Q,{banner:{copy:{sectionTitle:e.formatMessage({id:"fantasy_banner_entry_point_title"}),description:e.formatMessage({id:"fantasy_banner_entry_point_text"}),action:e.formatMessage({id:"fantasy_play_now_button"})},type:r.$pL.CreativeBanner,background:r.jae.Surface,detailImageUrl:{ltr:"/static/images/featured-tournament/fantasy_entry_ltr.png",rtl:"/static/images/featured-tournament/fantasy_entry_ltr.png"},campaignName:"fantasy"},location:"featured_tournament_tab"})}):null};var C=n(75436),z=n(59721),_=n(46009),E=n(8973),A=n(41248),D=n(4967),B=n(21501),L=n(3167);let O=e=>{let{value:t,messageId:n}=e;return(0,s.jsxs)(l.az,{w:"1/4",px:"[1px]",children:[(0,s.jsx)(x.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",textAlign:"center",children:t}),(0,s.jsx)(x.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",textAlign:"center",truncate:!0,children:(0,s.jsx)(a.A,{id:n})})]})},P=()=>(0,s.jsx)(l.az,{h:"2xl",w:"[1px]",backgroundColor:"onColor.secondary"}),U=e=>{let{now:t,start:n}=e,{days:r,hours:i,minutes:a,seconds:d}=(0,D.DU)(t,n);return(0,s.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,s.jsx)(O,{value:r,messageId:"days"}),(0,s.jsx)(P,{}),(0,s.jsx)(O,{value:i,messageId:"hours"}),(0,s.jsx)(P,{}),(0,s.jsx)(O,{value:a,messageId:"minutes"}),(0,s.jsx)(P,{}),(0,s.jsx)(O,{value:d,messageId:"seconds_left"})]})},F=e=>{let{start:t,end:n}=e,[r,a]=(0,i.useState)(new Date().getTime()),d=(0,B.hX)();if((0,i.useEffect)(()=>{let e=setInterval(()=>a(new Date().getTime()),1e3);return()=>clearInterval(e)},[]),!t||d)return(0,s.jsx)(l.az,{h:"5xl"});let o=1e3*t;return o>=r?(0,s.jsx)(U,{now:r,start:o}):(0,s.jsx)(L.G,{c:"onColor.primary",bg:"onColor.highlight.nLv2",datesProps:{mt:"xxs"},start:t,end:n,mt:"0",mb:"0",pt:"lg"})};var H=n(52695);let Y=e=>{let{uniqueTournament:t,featuredType:n}=e;return(0,s.jsxs)(l.az,{position:"relative",children:[(0,s.jsx)(A.W,{tournament:n}),(0,s.jsxs)(l.az,{px:"lg",position:"relative",children:[(0,s.jsxs)(l.so,{py:"lg",gap:"lg",align:"center",children:[(0,s.jsx)(l.az,{w:"2xl",h:"2xl",children:(0,s.jsx)(z.e,{id:n.id,name:null==t?void 0:t.name,size:32})}),(0,s.jsx)(l.az,{overflow:"hidden",flexGrow:1,children:(0,s.jsx)(x.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",truncate:!0,children:t&&(0,s.jsx)(H.O,{uniqueTournament:t})})}),(0,s.jsx)(_.e,{id:n.id,entity:r.bq7.Tournaments,location:E.y.Header,type:E.b.UniqueTournament,isOnOverlay:!0})]}),(0,s.jsx)(l.az,{pb:"lg",children:(0,s.jsx)(F,{start:null==t?void 0:t.startDateTimestamp,end:null==t?void 0:t.endDateTimestamp})})]})]})};var q=n(5546),R=n(61836),Z=n(25745);let N=60*D.Z2,W=(e,t)=>{var n;let[s,r]=(0,i.useState)({}),[l,a]=(0,i.useState)({}),[d,o]=(0,i.useState)(Math.random()),c=(0,q.uZ)(),u=(0,Z.s)(null==c?void 0:c.impressionCostEncrypted),x=!!t&&!!s[t];return(0,i.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,R.Zb)({provider:c.provider.slug,value:await u})};a({...l,[t]:new Date().getTime()}),n();let s=setInterval(()=>n(),N);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({}),a({})}}};var M=n(77988),$=n(73393),V=n(19944),X=n(12047),G=n(54409),K=n(21075),Q=n(28132);let J=(e,t,n,s)=>{let r=(null==t?void 0:t.count)||s;if(e&&r)return r*(96+36*!!n)+8*(r-1)},ee=e=>{let{day:t,events:n,isLoading:r,uniqueTournament:i,seasonId:d,setHasSelectedDayOdds:c}=e,u=(0,q.uZ)();if(!r&&0===n.length)return null;let m=J(r,t,u,1);return(0,s.jsxs)(o.Zp,{children:[(0,s.jsx)(l.az,{style:{height:m?"".concat(m,"px"):void 0},children:(0,s.jsx)(o.BU,{children:n.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,s.jsx)(K.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:c},e.id))})}),(0,s.jsx)(C.S,{uniqueTournament:i,seasonId:d,tab:Q.H.Matches,children:(0,s.jsxs)(l.so,{pb:"lg",pt:"sm",br:"md",bg:"surface.s1",justify:"center",align:"center",gap:"xs",children:[(0,s.jsx)(x.EY,{display:"block",textStyle:"display.small",color:"primary.default",children:(0,s.jsx)(a.A,{id:"see_all_matches_button"})}),(0,s.jsx)(G.CCT,{fill:"primary.default"})]})})]})};var et=n(10778),en=n(90510);let es=e=>{let{dateString:t,isSelected:n,onClick:r}=e,[i,d]=(0,B.c9)([]);(0,x.rF)(i,[n],()=>!!n);let o=new Date(t);return(0,s.jsxs)(l.az,{ref:d,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)(x.EY,{display:"block",textStyle:"assistive.micro",textAlign:"center",whiteSpace:"nowrap",color:n?"primary.default":"neutrals.nLv3",mt:"xs",children:(0,D.cK)(o)?(0,s.jsx)(a.A,{id:"today"}):(0,s.jsx)(en.XU,{value:o,weekday:"short"})}),(0,s.jsx)(x.EY,{display:"block",textStyle:"display.micro",textAlign:"center",whiteSpace:"nowrap",mt:"2xs",children:(0,s.jsx)(en.XU,{value:o,day:"numeric",month:"short"})})]})},er=e=>{let{selectedDate:t,setSelectedDate:n,dates:r}=e;return(0,s.jsx)(x.tR,{showButtons:"never",children:(0,s.jsx)(l.so,{bg:"surface.s1",minW:"fit",h:"4xl",justify:"space-between",children:r.length>0&&r.map(e=>(0,s.jsx)(es,{dateString:e.date,isSelected:(null==t?void 0:t.date)===e.date,onClick:()=>n(e)},e.date))})})};var el=n(45860),ei=n(86679);let ea=e=>{let{data:t}=(0,el.Ay)(r.tI9.seasonDatesWithEvents(e.seasonId,3600*(0,D.UW)())),{hasCupTree:n}=(0,ei.A)({hasCupTree:{route:r.V3t.cupTrees(e.id,e.seasonId)}},[e.id,e.seasonId]),[s,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],n=Number.MAX_VALUE;a.forEach(s=>{let r=new Date(s.date),l=Math.abs(e-r.getTime());(0,D.cK)(r)&&(t=s,n=0),l{let{tournament:t,uniqueTournament:n}=e,x=(0,X.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1}),{selectedDate:m,setSelectedDate:p,dates:h,showCupTree:j}=ea(t),{events:g,isLoading:v}=(0,V.Y)(t.id,null==m?void 0:m.date),{hasSelectedDayOdds:y,setHasSelectedDayOdds:f}=W(t.id,null==m?void 0:m.date),w=(0,eh.h)(g),T=(0,q.uZ)();return(0,i.useEffect)(()=>{window.scrollTo({left:0,top:0})},[t.id]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.az,{position:"relative",children:[(0,s.jsx)(C.S,{uniqueTournament:n,seasonId:t.seasonId,children:(0,s.jsx)(Y,{featuredType:t,uniqueTournament:n})}),(0,s.jsx)(d.B,{children:(0,s.jsx)(d.B.Title,{children:(0,s.jsx)(a.A,{id:"meta."+t.slug,defaultMessage:n.name})})}),(0,s.jsx)(l.az,{bg:"surface.s1",position:"sticky",zIndex:"sticky",elevation:"2",style:{top:x},children:(0,s.jsx)(er,{selectedDate:m,setSelectedDate:p,dates:h})}),(0,s.jsx)(l.az,{bg:"surface.s0",children:(0,s.jsxs)(o.BU,{children:[(0,s.jsx)(ee,{day:m,events:g,isLoading:v||!m,uniqueTournament:n,seasonId:t.seasonId,setHasSelectedDayOdds:f}),(0,s.jsx)(u.i,{id:"eurocopa.EURO_FEATURED"}),(0,s.jsx)(I,{}),j?(0,s.jsx)(b,{featured:t,uniqueTournament:n}):(0,s.jsx)(ep,{uniqueTournamentId:t.id,seasonId:t.seasonId,selectedTournamentId:w}),(0,s.jsx)(c.Z,{entity:"unique-tournament",entityId:t.id,bgImageUrl:r.V3t.image(t.id,!0),location:"featured_tournament_tab"})]})})]}),t.historyHighlightsEndYear&&(0,s.jsx)(et.j,{uniqueTournament:n,tournament:t}),(0,s.jsx)(l.so,{justify:"center",align:"center",pt:t.historyHighlightsEndYear?"lg":"sm",pb:"4xl",px:"lg",gap:"sm",bg:"surface.s0",children:y&&(0,s.jsx)(M.A,{provider:T})}),(0,s.jsx)($.hz,{uniqueTournamentId:n.id}),(0,s.jsx)(l.az,{position:"fixed",right:"0",left:"0",zIndex:"bottomNavigation",style:{bottom:"calc(env(safe-area-inset-bottom) + ".concat(ed.E,"px)")},children:(0,s.jsx)(u.i,{id:"eurocopa.EUROCOPA_BOTTOM",borderless:!0})})]})},eg=e=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ej,{...e})});var ev=n(13030);let ey=(e,t)=>{let n=e.localeCompare(t.defaultFrom);return n<0?0:0===n?1:e.localeCompare(t.showCupTreeFrom||t.visibleTo)>=0?2:4},ef=e=>{let{selectedDate:t,tournament:n}=e,{data:i}=(0,el.Ay)(r.V3t.details(n.id)),{data:a}=(0,el.Ay)(r.tI9.seasonDatesWithEvents(n.seasonId,3600*(0,D.UW)()),{dedupingInterval:D.dp}),{events:d,isLoading:c}=(0,V.Y)(n.id,t),u=(0,q.uZ)(),{setHasSelectedDayOdds:x}=W(n.id,t),m=ey(t,n),p=J(c,null==a?void 0:a.dailySeasonEvents.find(e=>e.date===t),u,m);return(0,s.jsx)(ev.A,{children:(0,s.jsxs)(o.BU,{children:[(0,s.jsx)(C.S,{uniqueTournament:null==i?void 0:i.uniqueTournament,seasonId:n.seasonId,onClick:()=>(0,R.ke)({action:"click",location:"main_page",type:n.analyticsName}),children:(0,s.jsx)(l.az,{br:"lg",overflow:"hidden",children:(0,s.jsx)(Y,{featuredType:n,uniqueTournament:null==i?void 0:i.uniqueTournament})})}),c&&Number(p)>0&&(0,s.jsx)(l.az,{style:{height:p?"".concat(p,"px"):void 0}}),d.sort((e,t)=>e.startTimestamp-t.startTimestamp).map(e=>(0,s.jsx)(K.n,{countryOddsProvider:u,event:e,setHasSelectedDayOdds:x},e.id))]})})},eb=e=>{let{date:t,tournaments:n}=e;return(0,s.jsx)(s.Fragment,{children:n.map(e=>(0,s.jsx)(ef,{tournament:e,selectedDate:t},e.id))})};var ew=n(79368)},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}}},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})}}}]);