!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]="a29c4847-35c9-4f29-b8b2-80535c0f198b",e._sentryDebugIdIdentifier="sentry-dbid-a29c4847-35c9-4f29-b8b2-80535c0f198b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[85129],{9050:(e,t,s)=>{s.d(t,{G:()=>c});var n=s(6029),i=s(94565),l=s(83170),r=s(55729),o=s(90510),a=s(41735);let d=(0,a.keyframes)(["from{width:0;}to{width:",";}"],e=>e.width),x=(0,a.default)(i.az).withConfig({componentId:"sc-ec51c0f-0"})(["position:absolute;height:6px;width:",";animation:"," 0.3s linear;"],e=>e.width,d),h=(0,l.A)().range([0,100]);function c(e){let{start:t=0,c:s=["onSurface.nLv1","onColor.primary"],bg:l="overlay.darken1",end:a,datesProps:d,...c}=e,[u,p]=(0,r.useState)(0),j=Date.now()/1e3;(0,r.useEffect)(()=>{setTimeout(()=>{e.end&&p(e.end)},1e3)},[e.end]),h.domain([t,u]).clamp(!0);let m=h(j);return(0,n.jsx)(i.so,{w:"100%",mt:["sm","md"],mb:["md",0],...c,children:(0,n.jsxs)(i.az,{flex:"1 1 auto",children:[(0,n.jsx)(i.az,{br:"sm",h:"6",bg:l,position:"relative",overflow:"hidden",children:t>0&&u>0&&(0,n.jsx)(x,{width:m+"%",bg:s},u)}),(0,n.jsxs)(i.so,{justify:"space-between",mt:"xxs",...d,children:[(0,n.jsx)(i.EY,{font:"body.small",c:s,children:(0,n.jsx)(o.XU,{value:1e3*t,day:"numeric",month:"short"})}),(0,n.jsx)(i.EY,{font:"body.small",c:s,children:(0,n.jsx)(o.XU,{value:1e3*(e.end||u),day:"numeric",month:"short"})})]})]})})}},33939:(e,t,s)=>{s.d(t,{W:()=>r});var n=s(6029),i=s(76356);let l=["euro-2024","copa-2024"],r=e=>{let{tournament:t}=e,s=l.includes(t.slug);return(0,n.jsx)(i.az,{position:"absolute",overflow:"hidden",bg:"graphics.dark",inset:"0",children:(0,n.jsx)(i.az,{bgSize:s?"[105% 105%]":"[100% 100%]",bgPosition:"center",overflow:"hidden",opacity:s?"[0.8]":void 0,height:"100%",style:{backgroundImage:"url(/static/images/featured-tournament/".concat(t.bgImage,")")},children:(0,n.jsx)(i.az,{height:"100%",bg:"[linear-gradient(to bottom, rgba(0, 0, 0, 0), {colors.overlay.darken1} 100%)]"})})})}},38185:(e,t,s)=>{s.d(t,{b:()=>l});var n=s(494),i=s(86522);let l=(e,t)=>{var s,l;let r=(0,n.d4)(i.g);if(e&&(null==r||null==(l=r.uniqueTournaments)||null==(s=l[e])?void 0:s[t]))return null==r?void 0:r.uniqueTournaments[e]}},45607:(e,t,s)=>{s.d(t,{I:()=>f});var n=s(6029);function i({linesColor:e}){return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"auto",viewBox:"0 0 344 316",fill:"none",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("line",{y1:"1",x2:"344",y2:"1",stroke:e,"stroke-width":"2"}),(0,n.jsx)("line",{y1:"315",x2:"344",y2:"315",stroke:e,"stroke-width":"2"}),(0,n.jsx)("line",{x1:"1",x2:"1",y2:"316",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M23 0L23 99",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M117 0L117 132",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M227 0V132",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M321 0V99",stroke:e,"stroke-width":"2"}),(0,n.jsx)("line",{x1:"343",x2:"343",y2:"316",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M23 99C23 99 62.1939 200.5 172 200.5C281.806 200.5 321 99 321 99",stroke:e,"stroke-width":"2","stroke-linecap":"round"}),(0,n.jsx)("path",{d:"M117 131H227",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M131 132C131 132 131 173 172 173C213 173 213 132 213 132",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M131 314C131 314 131 273 172 273C213 273 213 314 213 314",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M131.007 131C131.007 131 129.507 90 172 90C214.493 90 212.993 131 212.993 131",stroke:e,"stroke-width":"2","stroke-dasharray":"15 15"}),(0,n.jsx)("line",{x1:"153",y1:"27",x2:"191",y2:"27",stroke:e,"stroke-width":"2"}),(0,n.jsx)("line",{x1:"172",y1:"28",x2:"172",y2:"30",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M200 28V36",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M144 28V36",stroke:e,"stroke-width":"2"}),(0,n.jsx)("circle",{cx:"172",cy:"36",r:"5",stroke:e,"stroke-width":"2"}),(0,n.jsx)("path",{d:"M144 36C144 36 144 66 172 66C200 66 200 36 200 36",stroke:e,"stroke-width":"2"})]})})}var l=s(86890),r=s(46787),o=s(76356),a=s(74610),d=s(56494),x=s(29180),h=s(78259),c=s(94565),u=s(74664),p=s(66331),j=s(96861),m=s(64006),g=s(94156);let y=e=>{let{player:t,team:s,rating:i,event:l,textW:r,isSeason:o,isSmall:a}=e,{openEventPlayerStatistics:d}=(0,p.d)(),x=a?16:24,y=a?32:40,f=a?56:72,v=o||a?"sm":void 0,b=!o||a?24:28,k=(0,u.o)();return t?(0,n.jsx)(m.uc,{player:{id:t.id,slug:t.slug},sportSlug:k,onClick:e=>{l&&t&&(e.preventDefault(),e.stopPropagation(),d({event:l,player:t},j._l.TeamOfTheWeek))},children:(0,n.jsxs)(c.so,{position:"relative",align:"center",direction:"column",textAlign:"center",w:f,h:72,children:[(0,n.jsx)(c.so,{my:"xs",children:(0,n.jsx)(h.tg,{id:t.id,name:t.name,size:y})}),(0,n.jsx)(c.so,{grow:1,align:"center",children:(0,n.jsx)(c.EY,{font:"assistive.default",color:"onSurface.nLv1",align:"center",block:!0,ellipsis:!a,w:r,lineClamp:a?2:void 0,overflowWrap:"anywhere",verticalAlign:"middle",children:(0,n.jsx)(g.c,{entity:t,short:!0})})}),s&&(0,n.jsx)(c.az,{position:"absolute",top:24,right:0,children:(0,n.jsx)(h.pY,{id:s.id,name:s.name,size:x})}),(0,n.jsx)(c.az,{position:"absolute",top:b,left:0,children:(0,n.jsx)(h.GW,{rating:i,decimalPoints:o?2:1,size:v})})]})}):null},f=e=>{let{formation:t,players:s,isSeason:h,sportSlug:c}=e,u=null==t?void 0:t.includes("5");return(0,n.jsx)(a.t,{tag:"TOTW",children:(0,n.jsxs)(o.az,{position:"relative",h:c===r.QCR.Basketball?"[320px]":"[368px]",maxW:c===r.QCR.Basketball?"[380px]":void 0,mx:"auto",children:[(0,n.jsx)(o.so,{h:"100%",position:"relative",zIndex:"button",direction:"column-reverse",pt:c===r.QCR.Basketball?"lg":void 0,pb:c===r.QCR.Basketball?"[54px]":void 0,children:t&&s?(0,x.V)(t,s,c).map((e,t)=>(0,n.jsx)(o.so,{flexGrow:1,flexShrink:1,align:"center",justify:"space-evenly",direction:"row-reverse",children:e.map((s,i)=>(0,n.jsx)(o.az,{mt:c===r.QCR.Basketball&&1===t&&1===i?"-3xl":void 0,children:(0,n.jsx)(y,{...s,textW:280/e.length,isSeason:h,isSmall:u})},s.id))},t)):(0,n.jsx)(o.so,{h:"[360px]",justify:"center",align:"center",children:(0,n.jsx)(d.a,{})})}),c===r.QCR.Basketball?(0,n.jsx)(o.az,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",children:(0,n.jsx)(i,{linesColor:"rgba(164, 169, 179, 0.3)"})}):(0,n.jsx)(o.az,{position:"absolute",top:"-2xs",left:"-2xs",w:"[calc(100% + 4px)]",h:"[calc(100% + 4px)]",border:"2px solid rgba(164, 169, 179, 0.3)",children:(0,n.jsx)(l.A,{side:"right",linesColor:"rgba(164, 169, 179, 0.3)",isHorizontalLayout:!1})})]})})}},69939:(e,t,s)=>{s.d(t,{S:()=>l});var n=s(6029),i=s(64006);let l=e=>{let{uniqueTournament:t,seasonId:s,tab:l,onClick:r,children:o}=e;return t?(0,n.jsx)(i.tQ,{tournament:t,seasonId:s,hash:l?"id:".concat(s,",tab:").concat(l):"id:".concat(s),onClick:r,children:o}):(0,n.jsx)(n.Fragment,{children:o})}},78259:(e,t,s)=>{s.d(t,{GW:()=>i.A,pY:()=>l.p,tg:()=>n.t});var n=s(91407),i=s(94400),l=s(91603)},78952:(e,t,s)=>{s.d(t,{j:()=>q});var n=s(6029),i=s(46787),l=s(10174),r=s(76356),o=s(55729),a=s(90248),d=s(494),x=s(45860),h=s(33939),c=s(33144),u=s(94565),p=s(18970),j=s(52466),m=s(17135),g=s(67087),y=s(69939),f=s(64006),v=s(56132),b=s(45607),k=s(9081),w=s(88505),C=s(11996);let z=["Final","Semifinal","Semifinals","Match for 3rd place"],S=e=>{let{seasonId:t,uniqueTournamentId:s}=e,{data:o,isLoading:d}=(0,x.Ay)(i.V3t.info(s,t)),h=null==o?void 0:o.info.winner;return d||h?(0,n.jsxs)(r.so,{h:"6xl",bg:"surface.s2",px:"lg",align:"center",gap:"lg",br:{md:"lg"},children:[(0,n.jsxs)(r.az,{h:"5xl",w:"5xl",position:"relative",children:[(0,n.jsx)(j.HeH,{height:56,width:56}),h&&(0,n.jsx)(c.p,{size:20,name:h.name,id:h.id,style:{position:"absolute",top:"12px",left:"18px"}})]}),h&&(0,n.jsxs)(r.az,{children:[(0,n.jsx)(l.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(a.A,{id:"winner"})}),(0,n.jsx)(l.EY,{display:"block",textStyle:"display.medium",mt:"xs",children:(0,n.jsx)(w.Rm,{team:h})})]})]}):null},I=()=>{let[e,t]=(0,o.useState)(!1);return(0,n.jsx)(u.AM,{closeOnOutsideClick:!0,controls:[e,t],children:(0,n.jsxs)(u.AM.Content,{w:"260px",right:[-8,0,-20,0],elevation:3,children:[(0,n.jsx)(r.az,{px:"xs",pt:"sm",children:(0,n.jsx)(a.A,{id:"rating_team_of_the_tournament",values:{bold:function(){for(var e=arguments.length,t=Array(e),s=0;st(!1),children:(0,n.jsx)(a.A,{id:"ok_got_it_button"})})})]})})},_=e=>{let{seasonId:t,uniqueTournamentId:s}=e,{data:d,isLoading:h}=(0,x.Ay)(i.V3t.teamOfTheSeason(s,t)),c=(0,o.useContext)(p.Ws);return d||h?(0,n.jsxs)(r.az,{mt:"sm",children:[(0,n.jsxs)(r.so,{h:"3xl",justify:"space-between",px:"sm",children:[(0,n.jsx)(l.EY,{display:"block",textStyle:"display.small",h:"3xl",pt:"lg",children:(0,n.jsx)(a.A,{id:"team_of_the_tournament"})}),(0,n.jsx)(r.az,{h:"xl",w:"xl",mt:"md",children:(0,n.jsx)(I,{})})]}),(0,n.jsx)(r.az,{h:"[360px]",mt:{md:"sm"},children:d&&(0,n.jsx)(b.I,{formation:d.formation,players:d.players,sportSlug:c,isSeason:!0})})]}):null},A=e=>{let{event:t}=e,{event:s,leftTeam:i,rightTeam:l,leftScore:r,rightScore:o}=(0,g.AR)(t);return(0,n.jsx)(p.y$,{value:{event:s,leftTeam:i,rightTeam:l,leftScore:r,rightScore:o,location:p.cb.MainList},children:(0,n.jsx)(f.tj,{event:s,children:(0,n.jsx)(m.n6,{event:s,style:{margin:"0 -8px"}})})})},E=e=>{let{uniqueTournament:t,seasonId:s,uniqueTournamentId:d}=e,{isDesktop:h}=(0,l.$c)(),{data:c,isLoading:u}=(0,x.Ay)(i.V3t.events(d,s,!0,0)),{hasTopStats:p}=(0,C.A)({hasTopStats:{route:i.V3t.topPlayersPerGame(d,s,"all",i.Vw_.overall)}}),m=null==c?void 0:c.events.filter(e=>{var t;return(null==(t=e.roundInfo)?void 0:t.name)&&z.includes(e.roundInfo.name)}).reverse();return(null==m?void 0:m.length)||u?(0,n.jsxs)(r.az,{minH:"[248px]",mt:"sm",children:[(0,n.jsx)(l.EY,{display:"block",textStyle:"display.small",h:"3xl",px:"sm",pt:"lg",textAlign:{base:"center",md:"start"},children:(0,n.jsx)(a.A,{id:"final_matches_title"})}),(0,n.jsx)(r.az,{h:u?"[208px]":void 0,children:null==m?void 0:m.map((e,t)=>{var s,i;return(0,n.jsxs)(o.Fragment,{children:[(null==(s=e.roundInfo)?void 0:s.name)&&(0===t||(null==(i=m[t-1].roundInfo)?void 0:i.name)!==e.roundInfo.name)&&(0,n.jsx)(l.EY,{display:"block",h:"2xl",px:{base:"sm",md:"0"},pt:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(k.__,{name:e.roundInfo.name})}),(0,n.jsx)(A,{event:e},e.id)]},e.id)})}),(0,n.jsx)(y.S,{uniqueTournament:t,seasonId:s,tab:h?void 0:p?v.x.TopStats:v.x.Details,children:(0,n.jsxs)(r.so,{justify:"center",pt:"md",h:"4xl",children:[(0,n.jsx)(l.EY,{display:"block",color:"primary.default",textStyle:"display.small",children:(0,n.jsx)(a.A,{id:"see_historical_details_button"})}),(0,n.jsx)(j.CCT,{fill:"primary.default"})]})})]}):null},M=e=>{let{uniqueTournament:t,season:s,tournament:i}=e;return(0,n.jsxs)(r.az,{bg:"surface.s1",px:"sm",pt:"lg",pb:{base:"lg",md:"0"},children:[(0,n.jsx)(S,{uniqueTournamentId:i.id,seasonId:s.id}),(0,n.jsx)(_,{uniqueTournamentId:i.id,seasonId:s.id}),(0,n.jsx)(E,{uniqueTournament:t,uniqueTournamentId:i.id,seasonId:s.id})]})};var T=s(19621);let Y=e=>{let{season:t,isSelected:s,onClick:i}=e,[o,a]=(0,T.c9)([]);return(0,l.rF)(o,[s],()=>!!s),(0,n.jsx)(r.az,{userSelect:"none",ref:a,bg:s?"onColor.primary":"onColor.highlight1",onClick:s?void 0:i,cursor:s?void 0:"pointer",h:"2xl",minW:"[46px]",px:"sm",br:"sm",children:(0,n.jsx)(r.so,{h:"100%",align:"center",justify:"center",children:(0,n.jsx)(l.EY,{display:"block",textStyle:"tab.secondary",whiteSpace:"nowrap",color:s?"primary.default":"onColor.primary",children:t.year})})})};var W=s(72753),V=s(18858);let L=(e,t,s)=>{var n,i;let l=null!=(i=null==(n=e.defaultHistoryHighlightsYearPerCountry)?void 0:n[s||""])?i:e.historyHighlightsEndYear;return l?Math.max(t.findIndex(e=>e.year===l),0):0},H=e=>{let{seasons:t,tournament:s,uniqueTournament:i}=e,x=(0,d.d4)(W.LQ),[c,u]=(0,o.useState)(()=>L(s,t,x));(0,o.useEffect)(()=>{u(L(s,t,x))},[s.id,x]);let p=(0,V.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return(0,n.jsxs)(r.az,{position:"relative",children:[(0,n.jsx)(r.az,{position:["sticky",void 0],style:{top:p-40},zIndex:"sticky",children:(0,n.jsxs)(r.az,{position:"relative",children:[(0,n.jsx)(h.W,{tournament:s}),(0,n.jsxs)(r.az,{position:"relative",children:[(0,n.jsx)(l.EY,{pt:"lg",h:"3xl",display:"block",textAlign:"center",textStyle:"display.medium",color:"onColor.primary",children:(0,n.jsx)(a.A,{id:"history_highlights_title"})}),(0,n.jsx)(l.tR,{showButtons:"always",buttonStyle:"clipped",colorPalette:"onColor",scrollFactor:.7,children:(0,n.jsx)(r.so,{minW:"fit",h:"4xl",justify:"space-between",align:"center",px:"lg",gap:"lg",children:t.map((e,t)=>(0,n.jsx)(Y,{season:e,isSelected:t===c,onClick:()=>u(t)},e.id))})})]})]})}),(0,n.jsx)(M,{uniqueTournament:i,season:t[c],tournament:s})]})},q=e=>{let{tournament:t,uniqueTournament:s,seasons:l=[]}=e,{data:o,isLoading:a}=(0,x.Ay)(i.V3t.seasons(t.id),{fallbackData:{seasons:l}}),d=null==o?void 0:o.seasons.filter(e=>e.id!==t.seasonId&&t.historyHighlightsEndYear&&e.year>=t.historyHighlightsEndYear);return(null==d?void 0:d.length)?(0,n.jsx)(H,{uniqueTournament:s,tournament:t,seasons:d}):a?(0,n.jsx)(r.az,{h:"[888px]"}):null}}}]);