!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]="2ab3119b-9959-4a56-9c56-3e51436d3a5d",e._sentryDebugIdIdentifier="sentry-dbid-2ab3119b-9959-4a56-9c56-3e51436d3a5d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[11245],{9e3:(e,t,l)=>{l.d(t,{I:()=>g});var n=l(6029),s=l(46787),a=l(947),i=l(494),r=l(52466),o=l(60556),d=l(79300),u=l(31830),c=l(88715),h=l(85339),x=l(22932),m=l(22116);let p=[s.G6l.AFCON],g=(e,t)=>{let l=[],g=(0,a.A)(),j=(0,u.A)(),{isFantasyEnabled:y}=(0,d.t)(),v=(0,i.d4)(m.$F),f=p.includes(e),b=(0,x._)(t,h.xP);if(y&&f){let e=c.z.getTranslatedRoute(j,"fantasy").route;b?l.push({logo:(0,n.jsx)(r.Q1k,{w:"100%",h:"100%",color:"onColor.primary"}),copy:{sectionTitle:g.formatMessage({id:"fantasy_afcon_banner_title"}),description:g.formatMessage({id:"fantasy_afcon_banner_body"}),action:g.formatMessage({id:"fantasy_play_now_button"})},type:s.$pL.LogoBanner,background:s.jae.Image,campaignName:"promotion_afcon_fantasy",bgImageUrl:"/static/images/afcon-fantasy-promotion/afcon-banner.webp",url:e}):l.push({copy:{action:g.formatMessage({id:"fantasy_play_now_button"}),description:g.formatMessage({id:"fantasy_banner_entry_point_text"}),sectionTitle:g.formatMessage({id:"sofascore_fantasy"})},type:s.$pL.CleanBanner,background:s.jae.Surface,detailImageUrl:{ltr:"/static/images/fantasy/fantasy-cta.png"},campaignName:"fantasy",url:e})}return(null==v?void 0:v.hasPremium)||!f||l.push({copy:{action:g.formatMessage({id:"button_view_offer"}),description:g.formatMessage({id:"try_it_out_today"}),sectionTitle:g.formatMessage({id:"improve_your_predictions"})},type:s.$pL.CleanBanner,background:s.jae.Surface,detailImageUrl:{ltr:"/static/images/ai-insights/banner-image.webp"},campaignName:"UTR_streaming",url:o.I}),l}},9050:(e,t,l)=>{l.d(t,{G:()=>d});var n=l(6029),s=l(51569),a=l(62042),i=l(20325),r=l(90510);let o=(0,a.Fj)({base:{appearance:"none",width:"100%",height:"[6px]",borderRadius:"sm",overflow:"hidden",border:"none","&::-webkit-progress-bar":{borderRadius:"sm"},"&::-webkit-progress-value":{borderStartStartRadius:"sm",borderEndStartRadius:"sm",animationName:"slideRight",animationDelay:"[1s]",animationDuration:"slow",animationTimingFunction:"ease-in-out",animationFillMode:"backwards"},"&::-moz-progress-bar":{borderStartStartRadius:"sm",borderEndStartRadius:"sm",animationName:"slideRight",animationDelay:"[1s]",animationDuration:"slow",animationTimingFunction:"ease-in-out",animationFillMode:"backwards"}},variants:{variant:{default:{bg:"overlay.darken1","&::-webkit-progress-bar":{bg:"overlay.darken1"},"&::-webkit-progress-value":{bg:"neutrals.nLv1"},"&::-moz-progress-bar":{bg:"neutrals.nLv1"}},onColor:{bg:"onColor.highlight1","&::-webkit-progress-bar":{bg:"onColor.highlight1"},"&::-webkit-progress-value":{bg:"onColor.primary"},"&::-moz-progress-bar":{bg:"onColor.primary"}}}},defaultVariants:{variant:"default"}});function d(e){let{start:t=0,end:l=0,variant:a}=e,d=Date.now()/1e3,u=l-t,c=u>0?Math.min(Math.max((d-t)/u,0),1):0;return(0,n.jsx)(i.so,{w:"100%",children:(0,n.jsxs)(i.az,{flex:"[1 1 auto]",children:[(0,n.jsx)("progress",{className:o({variant:a}),value:c,max:1,"aria-label":"This tournament is ".concat((100*c).toFixed(0),"% complete")}),(0,n.jsxs)(i.so,{justify:"space-between",mt:"2xs",children:[(0,n.jsx)(s.EY,{textStyle:"body.small",color:"onColor"===a?"onColor.primary":"neutrals.nLv1",children:(0,n.jsx)(r.XU,{value:1e3*t,day:"numeric",month:"short"})}),(0,n.jsx)(s.EY,{textStyle:"body.small",color:"onColor"===a?"onColor.primary":"neutrals.nLv1",children:(0,n.jsx)(r.XU,{value:1e3*l,day:"numeric",month:"short"})})]})]})})}},14145:(e,t,l)=>{l.d(t,{S:()=>a});var n=l(6029),s=l(11219);let a=e=>{let{uniqueTournament:t,seasonId:l,tab:a,onClick:i,children:r}=e;return t?(0,n.jsx)(s.tQ,{tournament:t,seasonId:l,hash:a?"id:".concat(l,",tab:").concat(a):"id:".concat(l),onClick:i,children:r}):(0,n.jsx)(n.Fragment,{children:r})}},17992:(e,t,l)=>{l.d(t,{H:()=>R});var n=l(6029),s=l(46787),a=l(51569),i=l(55729),r=l(46222),o=l(41910),d=l(23659),u=l(20325),c=l(90248),h=l(54092),x=l(8041),m=l(8126),p=l(82158),g=l(53597),j=l(9081),y=l(494),v=l(45860),f=l(72753);let b=e=>{let{blazeSDK:t,tournamentId:l,roundId:s,eventHighlight:r,awaitBlazeSDK:o}=e,{isMobile:d}=(0,a.$c)(),[u,c]=(0,i.useState)(!1),[j,y]=(0,i.useState)(!1),v=(0,g.TW)({type:"multiple",location:x.D_.TournamentPage,roundId:s,screen:d?x.te.Mobile:x.te.Desktop,entityId:l,provider:"wsc"}),f=(0,h.i)(v,u,"wsc"),b=(0,n.jsx)(m.A,{containerId:v,blazeSDK:t,ref:f,entityId:l,sdkId:r.sdkId,location:x.D_.TournamentPage,screen:d?x.te.Mobile:x.te.Desktop,setErrorOccurred:c,awaitBlazeSDK:null!=o&&o,tabLocation:"details"});return(0,i.useEffect)(()=>{b&&c(!1)},[j]),u?(0,n.jsx)(p.d,{setReloadTrigger:y}):b};function w(e){let{blazeSDK:t,uniqueTournamentId:l,seasonId:r,rounds:o,showPicker:d,selectedRound:h,setSelectedRound:x,sportSlug:m,awaitBlazeSDK:p}=e,{eventHighlights:g,isLoading:w,isError:_}=function(e){let{eventId:t,uniqueTournamentId:l,seasonId:n,roundId:a}=e,i=(0,y.d4)(f.LQ),{data:r,isLoading:o,error:d}=(0,v.Ay)(i&&l&&n&&a?s.vCt.tournamentRoundVideoHighlights(i,l,n,a):null);return{eventHighlights:null==r?void 0:r.sportVideoHighlights.filter(e=>{var l;return!t||(null==(l=e.game)?void 0:l.eventId)===t}),isError:d,isLoading:o}}({uniqueTournamentId:l,seasonId:r,roundId:null==h?void 0:h.eventRoundId}),[k,z]=(0,i.useState)(!1),S=[s.QCR.Basketball,s.QCR.AmericanFootball].includes(m)?"game_highlights_title":"match_highlights_title";return((0,i.useEffect)(()=>{z(!0),setTimeout(()=>{z(!1)},0)},[null==h?void 0:h.eventRoundId]),_)?null:(0,n.jsxs)(u.az,{p:"sm",children:[(0,n.jsxs)(u.so,{justify:"space-between",align:"center",p:"sm",mb:"sm",children:[(0,n.jsx)(a.EY,{textStyle:d?"display.medium":"display.small",children:(0,n.jsx)(c.A,{id:S})}),d&&h&&(0,n.jsx)(a.ms,{label:"Select round in tournament highlights",items:o,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&x(t)},initialSelectedItem:h,renderItem:e=>e?(0,n.jsx)(j.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0})]}),(0,n.jsx)(u.az,{minH:"[188px]",position:"relative",children:!k&&(null==h?void 0:h.eventRoundId)&&!w&&g?null==g?void 0:g.map((e,s)=>(0,n.jsx)(b,{blazeSDK:t,tournamentId:l,roundId:null==h?void 0:h.eventRoundId,eventHighlight:e,awaitBlazeSDK:p},s)):null})]})}var _=l(38185),k=l(22375),z=l(90510),S=l(52736),C=l(54246),I=l(66331),M=l(91113),T=l(45607);let H=JSON.parse('{"basketball":{"totw":"basketball_team_of_the_week","tots":"basketball_team_of_the_season"},"totw":"rating_team_of_the_week","tots":"rating_team_of_the_season"}');function A(e){let{uniqueTournament:t,seasonId:l,selectedRound:o,setSelectedRound:d,rounds:h,showPicker:x,isRoundLoading:m,sportSlug:p,defaultTitleId:g="team_of_the_week"}=e,{setTotwUrl:y}=(0,I.d)(),f=(null==o?void 0:o.roundName.toLowerCase())==="season",b=(null==o?void 0:o.totwRoundId)&&l?s.V3t.teamOfTheWeekRoundDetails(t.id,l,o.totwRoundId):null,{data:w,isLoading:_}=(0,v.Ay)(b);(0,i.useEffect)(()=>(y(b),()=>y(null)),[o]);let A=m||_;if(!A&&!w)return null;let R=(0,M.OX)(H,f?"tots":"totw",p),E=!!(null==o?void 0:o.dateFrom)&&!!(null==o?void 0:o.dateTo);return(0,n.jsxs)(u.az,{children:[(0,n.jsx)(r.Zp.Header,{title:(0,n.jsxs)(u.BJ,{gap:"0",justify:"center",h:"[36px]",children:[(0,n.jsx)(u.I4.span,{lineHeight:"20px",children:(0,n.jsx)(c.A,{id:f?"tournament.teamOfTheSeason":g})}),E?(0,n.jsxs)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,n.jsx)(z.XU,{value:(0,k.pp)(o.dateFrom),...k.or.date})," -"," ",(0,n.jsx)(z.XU,{value:(0,k.pp)(o.dateTo),...k.or.date})]}):void 0]}),variant:"left-aligned",actionComponent:(0,n.jsxs)(u.so,{align:"center",gap:"lg",children:[x&&o?(0,n.jsx)(a.ms,{label:"Select round in team of the week",items:h,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&d(t)},initialSelectedItem:o,selectedItem:o,renderItem:e=>e?(0,n.jsx)(j.rC,{roundName:null==e?void 0:e.roundName,isWeek:e.roundName.includes("week")}):"",alignRight:!0}):(0,n.jsx)(u.az,{h:"2xl"}),l&&(null==o?void 0:o.totwRoundId)&&!A&&p===s.QCR.Football&&(0,n.jsx)(C.w,{type:"team_of_the_week",sport:t.category.sport.slug,uniqueTournamentId:t.id,uniqueTournamentName:t.name,uniqueTournamentSlug:t.slug,categorySlug:t.category.slug,seasonId:l,roundId:o.totwRoundId})]})}),(0,n.jsxs)(r.BU,{children:[(0,n.jsx)(S.b,{messageId:R}),(0,n.jsxs)(u.az,{children:[(0,n.jsx)(T.I,{...w,isSeason:f,sportSlug:p}),(null==o?void 0:o.totwCreatedTimestamp)?(0,n.jsxs)(a.EY,{my:"sm",mx:"2xs",display:"block",textAlign:"end",textStyle:"assistive.default",color:"neutrals.nLv3",children:[(0,n.jsx)(c.A,{id:"published"}),":"," ",(0,n.jsx)(z.XU,{value:1e3*o.totwCreatedTimestamp,day:"numeric",month:"short"})]}):(0,n.jsx)(u.az,{h:"2xl"})]})]})]})}function R(e){let{uniqueTournament:t,seasonId:l,sportSlug:u,defaultTotwTitleId:c}=e,[h,x]=(0,i.useState)(null),[m,p]=(0,i.useState)(!0);(0,d.P)(h,m,x,p);let g=t.id,{rounds:b,isLoading:k,selectedRound:z,setSelectedRound:S,hasWSC:C,hasTOTW:I}=function(e,t,l){var n;let a=(0,y.d4)(f.LQ),[r,o]=(0,i.useState)(void 0),d=t?s.V3t.teamOfTheWeekPeriods(e,t):null,{data:u,isLoading:c}=(0,v.Ay)(d),h=(null==u?void 0:u.periods)||[],x=t&&a&&1?s.vCt.tournamentRoundsWithVideoHighlights(a,e,t):null,{data:m,isLoading:p}=(0,v.Ay)(x),g=(null==m?void 0:m.rounds.filter(e=>!h.find(t=>t.id===(null==e?void 0:e.eventRoundId))))||[],j=e=>{var t;return"round"===e.periodName?null==(t=e.round)?void 0:t.slug:"week"===e.periodName?String(e.sequence):e.periodName},b=Array.from(new Set([...h.map(j)])).map(e=>{var t;let l=h.find(t=>j(t)===e),n=g.find(t=>t.roundSlug===e),s=l.id||(null==n?void 0:n.eventRoundId);return{eventRoundId:s,roundName:(e=>{let t;switch(e.type){case"round":{var l;let n=null==(l=e.round)?void 0:l.name;if(n&&isNaN(+n))return n;t=n;break}case"timespan":t=String(e.sequence)}return t?"".concat(e.periodName," ").concat(t):e.periodName})(l)||(null==n?void 0:n.eventRoundName)||s.toString(),roundSlug:j(l)||(null==n?void 0:n.roundSlug),startDateTimestamp:null!=(t=(null==l?void 0:l.startDateTimestamp)||(null==n?void 0:n.startDateTimestamp))?t:null==l?void 0:l.createdAtTimestamp,totwRoundId:null==l?void 0:l.id,totwCreatedTimestamp:null==l?void 0:l.createdAtTimestamp,dateFrom:l.dateFrom,dateTo:l.dateTo}}).sort((e,t)=>{var l;return e.startDateTimestamp&&t.startDateTimestamp?t.startDateTimestamp-e.startDateTimestamp:null!=(l=t.startDateTimestamp)?l:0});return(0,i.useEffect)(()=>{o(b[0])},[t,null==(n=b[0])?void 0:n.roundSlug]),{rounds:b,isLoading:p||c,selectedRound:r,setSelectedRound:o,hasWSC:!!(null==m?void 0:m.rounds.length),hasTOTW:!!h.length}}(g,l),M=(0,_.b)(g,"teamOfTheWeek"),T=u===s.QCR.AmericanFootball?"am_football_week_summary_title":"round_summary_title",H=l?(0,n.jsx)(w,{uniqueTournamentId:g,blazeSDK:h,seasonId:l,selectedRound:z,setSelectedRound:S,rounds:b,showPicker:!I,sportSlug:u,awaitBlazeSDK:m}):null,R=(0,n.jsx)(A,{uniqueTournament:t,seasonId:l,showPicker:!C,isRoundLoading:k,rounds:b,selectedRound:z,setSelectedRound:S,sportSlug:u,defaultTitleId:c});if(!k&&!I&&!C)return null;if(I&&C)return(0,n.jsxs)(o.b,{branding:M,entityId:g,location:"league_totw",children:[(0,n.jsx)(r.Zp.Header,{titleId:T,variant:"left-aligned",actionComponent:z?(0,n.jsx)(a.ms,{label:"Select round in team of the week",items:b,onSelectedItemChange:e=>{let{selectedItem:t}=e;t&&S(t)},initialSelectedItem:z,renderItem:e=>e?(0,n.jsx)(j.rC,{roundName:null==e?void 0:e.roundName}):"",alignRight:!0}):void 0}),H,R]});if(I)return(0,n.jsx)(o.b,{branding:M,entityId:g,location:"league_totw",children:R});if(C)return(0,n.jsx)(r.Zp,{children:H});if(u===s.QCR.Football)return(0,n.jsx)(o.b,{branding:M,entityId:g,location:"league_totw",children:R});else return null}},24204:(e,t,l)=>{l.d(t,{G:()=>d});var n=l(6029),s=l(51569),a=l(20325),i=l(90248),r=l(52466),o=l(82536);let d=e=>{let{isOpen:t,setIsOpen:l}=e;return(0,n.jsx)(o.A,{isOpen:t,setIsOpen:l,header:"player_of_the_season_title",children:(0,n.jsxs)(a.so,{direction:"column",p:"lg",pt:"0",gap:"lg",maxW:{md:"[320px]"},children:[(0,n.jsx)(a.so,{width:"100%",justify:"center",bgColor:"surface.s0",br:"sm",p:"lg",children:(0,n.jsx)("img",{width:264,height:183,src:"/static/images/player-of-the-season-award.png",alt:"Sofascore player of the season award"})}),(0,n.jsxs)(a.I4.a,{href:"https://corporate.sofascore.com/about/rating",rel:"noreferrer",textStyle:"display.small",color:"primary.default",target:"_blank",display:"flex",gap:"xs",cursor:"pointer",alignItems:"center",hideBelow:"md",children:[(0,n.jsx)(i.A,{id:"rating_learn_more_button"}),(0,n.jsx)(r.CCT,{color:"primary.default",width:16,height:16})]}),(0,n.jsx)(s.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"rating_player_of_the_season_body_1"})}),(0,n.jsx)(s.EY,{display:"block",color:"neutrals.nLv1",textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"rating_player_of_the_season_body_2"})}),(0,n.jsx)(s.$n,{onClick:()=>{window.open("https://corporate.sofascore.com/about/rating","_blank"),l(!1)},mt:"lg",display:{md:"none"},children:(0,n.jsx)(i.A,{id:"learn_more_button"})})]})})}},37615:(e,t,l)=>{l.d(t,{D:()=>w});var n=l(6029),s=l(78259),a=l(46787),i=l(51569),r=l(20325),o=l(55729),d=l(90248),u=l(45860),c=l(52466),h=l(56494),x=l(11219),m=l(95084),p=l(94156),g=l(15341);let j=e=>{let{fill:t="white"}=e;return(0,n.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,n.jsx)("path",{d:"M56.988 114h19v19h-19z"}),(0,n.jsx)("g",{opacity:".8",children:(0,n.jsx)("path",{d:"M38 133h19v19H38zM57 133h19v19H57zM95 133h19v19H95zM38 114h19v19H38zM76 95h19v19H76zM95 95h19v19H95zM57 57h19v19H57zM95 57h19v19H95zM114 57h19v19h-19zM0 0h19v19H0zM57 0h19v19H57z"})}),(0,n.jsx)("g",{opacity:".5",children:(0,n.jsx)("path",{d:"M19 133h19v19H19zM114 133h19v19h-19zM76 114h19v19H76zM0 95h19v19H0zM57 95h19v19H57zM76 76h19v19H76zM95 76h19v19H95zM38 57h19v19H38zM76 57h19v19H76zM38 38h19v19H38zM76 38h19v19H76zM0 19h19v19H0z"})})]})})},y=e=>{let{fill:t="white"}=e;return(0,n.jsx)("svg",{width:"133",height:"160",viewBox:"0 0 133 160",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsxs)("g",{fill:t,fillRule:"nonzero",children:[(0,n.jsx)("path",{d:"M76.012 114h-19v19h19z"}),(0,n.jsx)("g",{opacity:".5",children:(0,n.jsx)("path",{d:"M114 133H95v19h19zM19 133H0v19h19zM57 114H38v19h19zM133 95h-19v19h19zM76 95H57v19h19zM57 76H38v19h19zM38 76H19v19h19zM95 57H76v19h19zM57 57H38v19h19zM95 38H76v19h19zM57 38H38v19h19zM133 19h-19v19h19z"})}),(0,n.jsx)("g",{opacity:".8",children:(0,n.jsx)("path",{d:"M95 133H76v19h19zM76 133H57v19h19zM38 133H19v19h19zM95 114H76v19h19zM57 95H38v19h19zM38 95H19v19h19zM76 57H57v19h19zM38 57H19v19h19zM19 57H0v19h19zM133 0h-19v19h19zM76 0H57v19h19z"})})]})})};var v=l(24204);let f=e=>{let{id:t}=e;return(0,n.jsxs)(r.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",children:[(0,n.jsx)(r.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",transform:"scale(1.5)",style:{filter:"blur(50px)",backgroundImage:"url(".concat(a.V3t.image(t),")"),backgroundSize:"100% 100%",backgroundPosition:"center center"}}),(0,n.jsxs)(r.so,{position:"absolute",top:"0",left:"0",w:"100%",justify:"space-between",br:"lg",elevation:"3",opacity:"0.1",children:[(0,n.jsx)(j,{}),(0,n.jsx)(y,{})]})]})},b=e=>{let{bgColor:t}=e;return(0,n.jsx)(r.az,{position:"absolute",width:"100%",height:"100%",overflow:"hidden",br:"lg",style:{background:t}})},w=e=>{var t,l,j;let{uniqueTournamentId:y,seasonId:w,showLoader:_,bgColor:k}=e,[z,S]=(0,o.useState)(!1),{data:C,isLoading:I,error:M}=(0,u.Ay)(w?a.V3t.playerOfTheSeason(y,w):null),[T,H]=(0,g.A)("playerOfTheSeason",{uniqueTournamentId:y,seasonId:w,playerId:null==C?void 0:C.player.id});if((0,o.useEffect)(()=>{w&&!M&&_&&!I&&(0,m.ke)({action:"impression",location:"league_details",type:"player_of_the_season"})},[y,w,M,_,I]),(0,o.useEffect)(()=>{H({uniqueTournamentId:y,seasonId:w,playerId:null==C?void 0:C.player.id})},[y,w,null==C?void 0:C.player.id]),M||!_&&!C)return null;let A=null!=(t=null==C?void 0:C.playerOfTheTournament)&&t,R=C&&a.qvj.image(C.player.id);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.az,{position:"relative",br:["lg","xl"],elevation:"2",h:"[152px]",overflow:"hidden",children:[k?(0,n.jsx)(b,{bgColor:k}):(0,n.jsx)(f,{id:y}),(0,n.jsxs)(r.so,{direction:"column",justify:"space-between",w:"100%",h:"100%",p:"lg",pt:"md",bg:"overlay.darken3",children:[(0,n.jsxs)(r.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,n.jsxs)(r.so,{align:"center",gap:"lg",children:[(0,n.jsx)(c.gWL,{w:24,h:24,style:{color:"white"}}),(0,n.jsx)(i.EY,{textStyle:"display.medium",color:"onColor.primary",children:(0,n.jsx)(d.A,{id:A?"player_of_the_tournament":"player_of_the_season",values:{gender:null!=(l=null==C?void 0:C.team.gender)?l:a.YT8.Male}})})]}),(0,n.jsx)(c.G_L,{cursor:"pointer",color:"onColor.primary",onClick:()=>S(!0)})]}),I?(0,n.jsx)(h.a,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.so,{w:"100%",justify:"space-between",align:"center",zIndex:"button",children:[(0,n.jsx)(x.uc,{player:null==C?void 0:C.player,sportSlug:a.QCR.Football,hash:"tab:details",onClick:()=>{(0,m.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,n.jsxs)(r.so,{align:"center",children:[(0,n.jsx)(s.tg,{src:R,size:"4xl"}),(0,n.jsxs)(r.az,{ml:"sm",children:[(0,n.jsx)(i.EY,{display:"block",textStyle:"display.medium",color:"onColor.primary",children:(null==C?void 0:C.player)&&(0,n.jsx)(p.c,{entity:null==C?void 0:C.player})}),(0,n.jsxs)(r.so,{mt:"xs",align:"center",children:[(0,n.jsx)(s.pY,{id:null==C?void 0:C.team.id,size:"lg"}),(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",color:"onColor.primary",ml:"xs",mt:"2xs",children:(null==C?void 0:C.team)&&(0,n.jsx)(p.c,{entity:null==C?void 0:C.team})})]})]})]})}),(0,n.jsx)(s.GW,{rating:null==C?void 0:C.statistics.rating,format:"sideBox",isOnColor:!0})]}),(0,n.jsx)(r.so,{w:"100%",justify:"center",align:"center",zIndex:"button",children:(0,n.jsx)(x.uc,{player:null==C?void 0:C.player,sportSlug:a.QCR.Football,hash:"tab:details",onClick:()=>{(0,m.ke)({action:"click",location:"league_details",type:"player_of_the_season"})},children:(0,n.jsxs)(r.so,{align:"center",cursor:"pointer",children:[(0,n.jsx)(i.Ym,{ml:"sm",textStyle:"display.small",color:"onColor.primary",children:(0,n.jsx)(d.A,{id:"see_player_statistics",values:{gender:null!=(j=null==C?void 0:C.team.gender)?j:a.YT8.Male}})}),(0,n.jsx)(c.CCT,{color:"onColor.primary",ml:"xs"})]})})})]})]})]}),(0,n.jsx)(v.G,{isOpen:z,setIsOpen:S})]})}},38185:(e,t,l)=>{l.d(t,{b:()=>a});var n=l(494),s=l(86522);let a=(e,t)=>{var l,a;let i=(0,n.d4)(s.g);if(e&&("anything"===t||(null==i||null==(a=i.uniqueTournaments)||null==(l=a[e])?void 0:l[t])))return null==i?void 0:i.uniqueTournaments[e]}},45607:(e,t,l)=>{l.d(t,{I:()=>v});var n=l(6029);function s({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 a=l(86890),i=l(46787),r=l(20325),o=l(74610),d=l(56494),u=l(29180),c=l(78259),h=l(51569),x=l(74664),m=l(66331),p=l(96861),g=l(11219),j=l(94156);let y=e=>{let{player:t,team:l,rating:s,event:a,textW:i,isSeason:o,isSmall:d}=e,{openEventPlayerStatistics:u}=(0,m.d)(),y=d?16:24,v=(0,x.o)();return t?(0,n.jsx)(g.uc,{player:{id:t.id,slug:t.slug},sportSlug:v,onClick:e=>{a&&t&&(e.preventDefault(),e.stopPropagation(),u({event:a,player:t},p._l.TeamOfTheWeek))},children:(0,n.jsxs)(r.so,{position:"relative",align:"center",direction:"column",textAlign:"center",h:"7xl",style:{width:"".concat(d?56:72,"px")},children:[(0,n.jsx)(r.so,{my:"xs",children:(0,n.jsx)(c.tg,{id:t.id,name:t.name,size:d?"2xl":"3xl"})}),(0,n.jsx)(r.so,{flexGrow:"[1]",align:"center",children:(0,n.jsx)(h.EY,{textStyle:"assistive.default",textAlign:"center",display:"block",truncate:!d,lineClamp:d?"2":void 0,overflowWrap:"anywhere",verticalAlign:"middle",style:i?{width:"".concat(i,"px")}:void 0,children:(0,n.jsx)(j.c,{entity:t,short:!0})})}),l&&(0,n.jsx)(r.az,{position:"absolute",right:"0",style:{top:"24px"},children:(0,n.jsx)(c.pY,{id:l.id,name:l.name,style:{width:y,height:y}})}),(0,n.jsx)(r.az,{position:"absolute",left:"0",style:{top:"".concat(!o||d?24:28,"px")},children:(0,n.jsx)(c.GW,{rating:s,decimalPoints:o?2:1,size:o||d?"sm":void 0})})]})}):null},v=e=>{let{formation:t,players:l,isSeason:c,sportSlug:h}=e,x=null==t?void 0:t.includes("5");return(0,n.jsx)(o.t,{tag:"TOTW",children:(0,n.jsxs)(r.az,{position:"relative",h:h===i.QCR.Basketball?"[320px]":"[368px]",maxW:h===i.QCR.Basketball?"[380px]":void 0,mx:"auto",children:[(0,n.jsx)(r.so,{h:"100%",position:"relative",zIndex:"button",direction:"column-reverse",pt:h===i.QCR.Basketball?"lg":void 0,pb:h===i.QCR.Basketball?"[54px]":void 0,children:t&&l?(0,u.V)(t,l,h).map((e,t)=>(0,n.jsx)(r.so,{flexGrow:1,flexShrink:1,align:"center",justify:"space-evenly",direction:"row-reverse",children:e.map((l,s)=>(0,n.jsx)(r.az,{mt:h===i.QCR.Basketball&&1===t&&1===s?"-3xl":void 0,children:(0,n.jsx)(y,{...l,textW:280/e.length,isSeason:c,isSmall:x})},l.id))},t)):(0,n.jsx)(r.so,{h:"[360px]",justify:"center",align:"center",children:(0,n.jsx)(d.a,{})})}),h===i.QCR.Basketball?(0,n.jsx)(r.az,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",children:(0,n.jsx)(s,{linesColor:"rgba(164, 169, 179, 0.3)"})}):(0,n.jsx)(r.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)(a.A,{side:"right",linesColor:"rgba(164, 169, 179, 0.3)",isHorizontalLayout:!1})})]})})}},50865:(e,t,l)=>{l.d(t,{O:()=>n});let n=(0,l(55729).createContext)({})},52736:(e,t,l)=>{l.d(t,{b:()=>u});var n=l(6029),s=l(51569),a=l(62042),i=l(20325),r=l(90248),o=l(15341),d=l(52466);function u(e){let{messageId:t,children:l,onClick:u,...c}=e,[h,x,m]=(0,o.A)(t,!1);return!m||h?null:(0,n.jsxs)(i.so,{align:"center",bg:"surface.s2",br:"sm",py:"sm",pl:"lg",className:(0,a.AH)(c),children:[(0,n.jsx)(i.az,{children:(0,n.jsx)(d.G_L,{color:"neutrals.nLv3"})}),(0,n.jsxs)(s.EY,{w:"100%",mx:"lg",my:"0",textStyle:"body.small",children:[(0,n.jsx)(r.A,{id:t,values:{strong:function(){for(var e=arguments.length,t=Array(e),l=0;l{null==u||u(),x(!0)},children:(0,n.jsx)(d.zQC,{icon:"close",width:"16",height:"16",color:"neutrals.nLv1"})})]})}},75142:(e,t,l)=>{l.d(t,{j:()=>D});var n=l(6029),s=l(46787),a=l(51569),i=l(20325),r=l(55729),o=l(90248),d=l(494),u=l(45860),c=l(81097),h=l(33144),x=l(18970),m=l(52466),p=l(17135),g=l(67087),j=l(14145),y=l(11219),v=l(56132),f=l(45607),b=l(9081),w=l(88505),_=l(11996);let k=["Final","Semifinal","Semifinals","Match for 3rd place"],z=e=>{let{seasonId:t,uniqueTournamentId:l}=e,{data:r,isLoading:d}=(0,u.Ay)(s.V3t.info(l,t)),c=null==r?void 0:r.info.winner;return d||c?(0,n.jsxs)(i.so,{h:"6xl",bg:"surface.s2",px:"lg",align:"center",gap:"lg",br:{md:"lg"},children:[(0,n.jsxs)(i.az,{h:"5xl",w:"5xl",position:"relative",children:[(0,n.jsx)(m.HeH,{height:56,width:56}),c&&(0,n.jsx)(h.p,{w:"[20px]",h:"[20px]",name:c.name,id:c.id,style:{position:"absolute",top:"12px",left:"18px"}})]}),c&&(0,n.jsxs)(i.az,{children:[(0,n.jsx)(a.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(o.A,{id:"winner"})}),(0,n.jsx)(a.EY,{display:"block",textStyle:"display.medium",mt:"xs",children:(0,n.jsx)(w.Rm,{team:c})})]})]}):null},S=()=>{let[e,t]=(0,r.useState)(!1);return(0,n.jsx)(a.AM,{closeOnOutsideClick:!0,controls:[e,t],placement:"left",children:(0,n.jsxs)(i.az,{w:"[260px]",children:[(0,n.jsx)(i.az,{px:"xs",pt:"sm",children:(0,n.jsx)(o.A,{id:"rating_team_of_the_tournament",values:{bold:function(){for(var e=arguments.length,t=Array(e),l=0;lt(!1),children:(0,n.jsx)(o.A,{id:"ok_got_it_button"})})})]})})},C=e=>{let{seasonId:t,uniqueTournamentId:l}=e,{data:d,isLoading:c}=(0,u.Ay)(s.V3t.teamOfTheSeason(l,t)),h=(0,r.useContext)(x.Ws);return d||c?(0,n.jsxs)(i.az,{mt:"sm",children:[(0,n.jsxs)(i.so,{h:"3xl",justify:"space-between",px:"sm",children:[(0,n.jsx)(a.EY,{display:"block",textStyle:"display.small",h:"3xl",pt:"lg",children:(0,n.jsx)(o.A,{id:"team_of_the_tournament"})}),(0,n.jsx)(i.az,{h:"xl",w:"xl",mt:"md",children:(0,n.jsx)(S,{})})]}),(0,n.jsx)(i.az,{h:"[360px]",mt:{md:"sm"},children:d&&(0,n.jsx)(f.I,{formation:d.formation,players:d.players,sportSlug:h,isSeason:!0})})]}):null},I=e=>{let{event:t}=e,{event:l,leftTeam:s,rightTeam:a,leftScore:i,rightScore:r}=(0,g.AR)(t);return(0,n.jsx)(x.y$,{value:{event:l,leftTeam:s,rightTeam:a,leftScore:i,rightScore:r,location:x.cb.MainList},children:(0,n.jsx)(y.tj,{event:l,children:(0,n.jsx)(p.n6,{event:l,style:{margin:"0 -8px"}})})})},M=e=>{let{uniqueTournament:t,seasonId:l,uniqueTournamentId:d}=e,{isDesktop:c}=(0,a.$c)(),{data:h,isLoading:x}=(0,u.Ay)(s.V3t.events(d,l,!0,0)),{hasTopStats:p}=(0,_.A)({hasTopStats:{route:s.V3t.topPlayersPerGame(d,l,"all",s.Vw_.overall)}}),g=null==h?void 0:h.events.filter(e=>{var t;return(null==(t=e.roundInfo)?void 0:t.name)&&k.includes(e.roundInfo.name)}).reverse();return(null==g?void 0:g.length)||x?(0,n.jsxs)(i.az,{minH:"[248px]",mt:"sm",children:[(0,n.jsx)(a.EY,{display:"block",textStyle:"display.small",h:"3xl",px:"sm",pt:"lg",textAlign:{base:"center",md:"start"},children:(0,n.jsx)(o.A,{id:"final_matches_title"})}),(0,n.jsx)(i.az,{h:x?"[208px]":void 0,children:null==g?void 0:g.map((e,t)=>{var l,s;return(0,n.jsxs)(r.Fragment,{children:[(null==(l=e.roundInfo)?void 0:l.name)&&(0===t||(null==(s=g[t-1].roundInfo)?void 0:s.name)!==e.roundInfo.name)&&(0,n.jsx)(a.EY,{display:"block",h:"2xl",px:{base:"sm",md:"0"},pt:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(b.__,{name:e.roundInfo.name})}),(0,n.jsx)(I,{event:e},e.id)]},e.id)})}),(0,n.jsx)(j.S,{uniqueTournament:t,seasonId:l,tab:c?void 0:p?v.x.TopStats:v.x.Details,children:(0,n.jsxs)(i.so,{justify:"center",pt:"md",h:"4xl",children:[(0,n.jsx)(a.EY,{display:"block",color:"primary.default",textStyle:"display.small",children:(0,n.jsx)(o.A,{id:"see_historical_details_button"})}),(0,n.jsx)(m.CCT,{color:"primary.default"})]})})]}):null},T=e=>{let{uniqueTournament:t,season:l,tournament:s}=e;return(0,n.jsxs)(i.az,{bg:"surface.s1",px:"sm",pt:"lg",pb:{base:"lg",md:"0"},children:[(0,n.jsx)(z,{uniqueTournamentId:s.id,seasonId:l.id}),(0,n.jsx)(C,{uniqueTournamentId:s.id,seasonId:l.id}),(0,n.jsx)(M,{uniqueTournament:t,uniqueTournamentId:s.id,seasonId:l.id})]})};var H=l(60235);let A=e=>{let{season:t,isSelected:l,onClick:s}=e,[r,o]=(0,H.c9)([]);return(0,a.rF)(r,[l],()=>!!l),(0,n.jsx)(i.az,{userSelect:"none",ref:o,bg:l?"onColor.primary":"onColor.highlight1",onClick:l?void 0:s,cursor:l?void 0:"pointer",h:"2xl",minW:"[46px]",px:"sm",br:"sm",children:(0,n.jsx)(i.so,{h:"100%",align:"center",justify:"center",children:(0,n.jsx)(a.EY,{display:"block",textStyle:"tab.secondary",whiteSpace:"nowrap",color:l?"primary.default":"onColor.primary",children:t.year})})})};var R=l(72753),E=l(18858);let L=(e,t,l)=>{var n,s;let a=null!=(s=null==(n=e.defaultHistoryHighlightsYearPerCountry)?void 0:n[l||""])?s:e.historyHighlightsEndYear;return a?Math.max(t.findIndex(e=>e.year===a),0):0},Y=e=>{let{seasons:t,tournament:l,uniqueTournament:s}=e,u=(0,d.d4)(R.LQ),[h,x]=(0,r.useState)(()=>L(l,t,u));(0,r.useEffect)(()=>{x(L(l,t,u))},[l.id,u]);let m=(0,E.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return(0,n.jsxs)(i.az,{position:"relative",children:[(0,n.jsx)(i.az,{position:["sticky",void 0],style:{top:m-40},zIndex:"sticky",children:(0,n.jsxs)(i.az,{position:"relative",children:[(0,n.jsx)(c.W,{tournament:l}),(0,n.jsxs)(i.az,{position:"relative",children:[(0,n.jsx)(a.EY,{pt:"lg",h:"3xl",display:"block",textAlign:"center",textStyle:"display.medium",color:"onColor.primary",children:(0,n.jsx)(o.A,{id:"history_highlights_title"})}),(0,n.jsx)(a.tR,{showButtons:"always",buttonStyle:"clipped",colorPalette:"onColor",scrollFactor:.7,children:(0,n.jsx)(i.so,{minW:"fit",h:"4xl",justify:"space-between",align:"center",px:"lg",gap:"lg",children:t.map((e,t)=>(0,n.jsx)(A,{season:e,isSelected:t===h,onClick:()=>x(t)},e.id))})})]})]})}),(0,n.jsx)(T,{uniqueTournament:s,season:t[h],tournament:l})]})},D=e=>{let{tournament:t,uniqueTournament:l,seasons:a=[]}=e,{data:r,isLoading:o}=(0,u.Ay)(s.V3t.seasons(t.id),{fallbackData:{seasons:a}}),d=null==r?void 0:r.seasons.filter(e=>e.id!==t.seasonId&&t.historyHighlightsEndYear&&e.year>=t.historyHighlightsEndYear);return(null==d?void 0:d.length)?(0,n.jsx)(Y,{uniqueTournament:l,tournament:t,seasons:d}):o?(0,n.jsx)(i.az,{h:"[888px]"}):null}},78259:(e,t,l)=>{l.d(t,{GW:()=>s.A,pY:()=>a.p,tg:()=>n.t});var n=l(91407),s=l(94400),a=l(91603)},81097:(e,t,l)=>{l.d(t,{W:()=>r});var n=l(6029),s=l(20325),a=l(93338);let i=["euro-2024","copa-2024"],r=e=>{let{tournament:t}=e,l=i.includes(t.slug);return(0,n.jsx)(s.az,{position:"absolute",overflow:"hidden",inset:"0",style:{backgroundColor:t.color||a.S.var("colors.graphics.dark")},children:(0,n.jsx)(s.az,{bgSize:l?"[105% 105%]":"[100% 100%]",bgPosition:"center",overflow:"hidden",opacity:l?"[0.8]":void 0,height:"100%",style:{backgroundImage:"url(/static/images/featured-tournament/".concat(t.bgImage,")")},children:(0,n.jsx)(s.az,{height:"100%",bg:"[linear-gradient(to bottom, rgba(0, 0, 0, 0), {colors.overlay.darken1} 100%)]"})})})}},97659:(e,t,l)=>{l.d(t,{a:()=>f});var n=l(6029),s=l(78259),a=l(46787),i=l(51569),r=l(20325),o=l(55729),d=l(90248),u=l(45860),c=l(46222),h=l(14868),x=l(18970),m=l(52466),p=l(56494),g=l(11219),j=l(95084),y=l(94156),v=l(24204);let f=e=>{var t,l,f,b;let{uniqueTournamentId:w,seasonId:_}=e,[k,z]=(0,o.useState)(!1),S=(0,o.useContext)(x.Ws),{data:C,error:I,isLoading:M}=(0,u.Ay)(_?a.V3t.playerOfTheSeasonRace(w,_):null);if(I||!C||!(null==(t=C.topPlayers.rating)?void 0:t.length))return null;let T=null!=(f=null==C?void 0:C.playerOfTheTournament)&&f,H=null==C?void 0:C.topPlayers.rating,A=null!=(b=null==(l=H[0].team)?void 0:l.gender)?b:a.YT8.Male;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(c.Zp,{children:[(0,n.jsx)(c.Zp.Header,{title:(0,n.jsxs)(r.so,{w:"100%",justify:"space-between",zIndex:"button",children:[(0,n.jsxs)(r.so,{align:"center",gap:"lg",children:[(0,n.jsx)(m.gWL,{w:24,h:24,color:"neutrals.nLv1"}),(0,n.jsx)(i.EY,{textStyle:"display.medium",children:(0,n.jsx)(d.A,{id:T?"player_of_the_tournament_race":"player_of_the_season_race",values:{gender:A}})})]}),(0,n.jsx)(m.G_L,{cursor:"pointer",color:"neutrals.nLv1",onClick:()=>z(!0)})]})}),(0,n.jsx)(r.so,{direction:"column",overflow:"hidden",pb:{base:"lg",mdDown:"0"},children:M?(0,n.jsx)(r.so,{justify:"center",align:"center",w:"100%",children:(0,n.jsx)(p.a,{})}):null==H?void 0:H.map((e,t)=>(0,n.jsx)(g.uc,{player:e.player,sportSlug:S,hash:"tab:details",onClick:()=>{(0,j.ke)({action:"click",location:"league_details",type:"player_of_the_season_race"})},children:(0,n.jsxs)(r.so,{w:"100%",justify:"space-between",align:"center",h:"5xl",px:"lg",cursor:"pointer",_hover:{bg:"surface.s2"},children:[(0,n.jsxs)(r.so,{align:"center",children:[(0,n.jsx)(i.EY,{display:"block",w:"lg",h:"lg",mr:"xs",children:t+1}),(0,n.jsx)(s.tg,{id:e.player.id,name:e.player.name,size:"3xl"}),(0,n.jsxs)(r.az,{flexGrow:1,ml:"lg",children:[(0,n.jsx)(i.EY,{display:"block",children:e.player&&(0,n.jsx)(y.c,{entity:e.player})}),(0,n.jsxs)(r.so,{align:"center",mt:"xs",children:[e.team&&(0,n.jsx)(s.pY,{id:e.team.id,size:"lg",name:e.player.name}),(0,n.jsx)(i.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",ml:"xs",children:(null==e?void 0:e.team)&&(0,n.jsx)(y.c,{entity:null==e?void 0:e.team})})]})]})]}),(0,n.jsx)(s.GW,{rating:null==e?void 0:e.statistics.rating,format:"sideBox"})]})},t))}),_&&(0,n.jsx)(r.I4.a,{onClick:()=>{window.location.hash="id:".concat(_,",tab:top_players")},hideFrom:"md",children:(0,n.jsx)(c.Zp.Footer,{ctaParams:{messageId:"view_top_players",values:{gender:A},icon:h.X.Right}})})]}),(0,n.jsx)(v.G,{isOpen:k,setIsOpen:z})]})}}}]);