!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]="17d15920-33c4-444c-a463-be9ff154beb2",e._sentryDebugIdIdentifier="sentry-dbid-17d15920-33c4-444c-a463-be9ff154beb2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[16736],{9050:(e,t,s)=>{s.d(t,{G:()=>h});var i=s(6029),n=s(25940),r=s(83170),l=s(55729),a=s(90510),o=s(41735);let d=(0,o.keyframes)(["from{width:0;}to{width:",";}"],e=>e.width),c=(0,o.default)(n.az).withConfig({componentId:"sc-ec51c0f-0"})(["position:absolute;height:6px;width:",";animation:"," 0.3s linear;"],e=>e.width,d),x=(0,r.A)().range([0,100]);function h(e){let{start:t=0,c:s=["onSurface.nLv1","onColor.primary"],bg:r="overlay.darken1",end:o,datesProps:d,...h}=e,[u,p]=(0,l.useState)(0),g=Date.now()/1e3;(0,l.useEffect)(()=>{setTimeout(()=>{e.end&&p(e.end)},1e3)},[e.end]),x.domain([t,u]).clamp(!0);let m=x(g);return(0,i.jsx)(n.so,{w:"100%",mt:["sm","md"],mb:["md",0],...h,children:(0,i.jsxs)(n.az,{flex:"1 1 auto",children:[(0,i.jsx)(n.az,{br:"sm",h:"6",bg:r,position:"relative",overflow:"hidden",children:t>0&&u>0&&(0,i.jsx)(c,{width:m+"%",bg:s},u)}),(0,i.jsxs)(n.so,{justify:"space-between",mt:"xxs",...d,children:[(0,i.jsx)(n.EY,{font:"body.small",c:s,children:(0,i.jsx)(a.XU,{value:1e3*t,day:"numeric",month:"short"})}),(0,i.jsx)(n.EY,{font:"body.small",c:s,children:(0,i.jsx)(a.XU,{value:1e3*(e.end||u),day:"numeric",month:"short"})})]})]})})}},29180:(e,t,s)=>{s.d(t,{V:()=>n});var i=s(21377);function n(e,t,s){if(s===i.QCR.Football&&11!==t.length||s===i.QCR.Basketball&&5!==t.length)throw Error("getFormationMatrix(): Insufficient players to form formation ".concat(e,"."));let n=[],r=[...e.split("-")].map(Number);s===i.QCR.Football&&r.unshift(1);let l=[...t];return r.forEach(e=>{n.push(l.splice(0,e))}),n}},33939:(e,t,s)=>{s.d(t,{W:()=>l});var i=s(6029),n=s(76356);let r=["euro-2024","copa-2024"],l=e=>{let{tournament:t}=e,s=r.includes(t.slug);return(0,i.jsx)(n.az,{position:"absolute",overflow:"hidden",bg:"graphics.dark",inset:"0",children:(0,i.jsx)(n.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,i.jsx)(n.az,{height:"100%",bg:"[linear-gradient(to bottom, rgba(0, 0, 0, 0), {colors.overlay.darken1} 100%)]"})})})}},42181:(e,t,s)=>{s.d(t,{XF:()=>a,g9:()=>d,mi:()=>o,ob:()=>l});var i=s(76356),n=s(25940),r=s(41735);let l="rgba(255, 255, 255,0.3)",a=(0,r.default)(i.so)` position: relative; width: ${e=>e.isHorizontalLayout?"50%":"100%"}; flex: ${e=>e.isHorizontalLayout?"1 1 50%":"1 1 430px"}; // max height max-height: ${430}px; background-color: ${e=>e.theme.colors.graphicsTerrain.footballLineups}; ${e=>{let t=`border: 2px solid ${l};`;return e.isHorizontalLayout?"rtl"===e.theme.settings.textDirection?"right"===e.side&&(t+="border-right: none;"):"left"===e.side&&(t+="border-right: none;"):"left"===e.side&&(t+="border-bottom: none;"),t}}; `,o=(0,r.default)(i.so)` z-index: ${n.Py.Button}; flex: ${e=>e.isHorizontalLayout?"1 1 50%":"1 1 430px"}; ${e=>e.isHorizontalLayout?"height: 430px;":"max-height: 430px;"} // direction flex-direction: ${e=>{let t=e.isHorizontalLayout?"row":"column";return"right"===e.side&&(t=e.isHorizontalLayout?"row-reverse":"column-reverse"),t}}; ${e=>{let t="";return e.isHorizontalLayout?"rtl"===e.theme.settings.textDirection?"right"===e.side?t+="border-right: none;":t+="border-left: none;":"left"===e.side?t+="border-right: none;":t+="border-left: none;":"left"===e.side?t+="border-bottom: none;":t+="border-top: none;",t}}; `,d=r.default.div` position: absolute; z-index: ${n.Py.Backdrop}; top: 0; left: 0; width: 100%; height: 100%; ${e=>e.isHorizontalLayout&&"height: 428px;"} user-select: none; ${e=>"rtl"===e.theme.settings.textDirection&&e.isHorizontalLayout?"left"===e.side&&"transform: rotate(180deg);":"right"===e.side&&"transform: rotate(180deg);"} .goal { position: absolute; z-index: ${n.Py.Backdrop}; left: calc(50% - 80px); top: -1px; ${e=>e.isHorizontalLayout&&` transform-origin: top left; transform: translateY(160px) rotate(-90deg); top: calc(50% - 80px); left: -1px; `} } .center { position: absolute; z-index: ${n.Py.Backdrop}; bottom: -1px; left: calc(50% - 64px); ${e=>e.isHorizontalLayout&&` transform: rotate(-90deg); transform-origin: top; top: 50%; right: -1px; left: unset; `} } .c1, .c2 { position: absolute; z-index: ${n.Py.Backdrop}; top: 0; } .c1 { left: 0; } .c2 { right: 0; ${e=>e.isHorizontalLayout&&` transform: rotate(180deg); top: unset; right: unset; bottom: 0; left: 0; `} } .logo { position: absolute; z-index: ${n.Py.Backdrop}; bottom: 16px; right: 12px; } `},45607:(e,t,s)=>{s.d(t,{I:()=>j});var i=s(6029);function n({linesColor:e}){return(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"auto",viewBox:"0 0 344 316",fill:"none",children:(0,i.jsxs)("g",{children:[(0,i.jsx)("line",{y1:"1",x2:"344",y2:"1",stroke:e,"stroke-width":"2"}),(0,i.jsx)("line",{y1:"315",x2:"344",y2:"315",stroke:e,"stroke-width":"2"}),(0,i.jsx)("line",{x1:"1",x2:"1",y2:"316",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M23 0L23 99",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M117 0L117 132",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M227 0V132",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M321 0V99",stroke:e,"stroke-width":"2"}),(0,i.jsx)("line",{x1:"343",x2:"343",y2:"316",stroke:e,"stroke-width":"2"}),(0,i.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,i.jsx)("path",{d:"M117 131H227",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M131 132C131 132 131 173 172 173C213 173 213 132 213 132",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M131 314C131 314 131 273 172 273C213 273 213 314 213 314",stroke:e,"stroke-width":"2"}),(0,i.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,i.jsx)("line",{x1:"153",y1:"27",x2:"191",y2:"27",stroke:e,"stroke-width":"2"}),(0,i.jsx)("line",{x1:"172",y1:"28",x2:"172",y2:"30",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M200 28V36",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M144 28V36",stroke:e,"stroke-width":"2"}),(0,i.jsx)("circle",{cx:"172",cy:"36",r:"5",stroke:e,"stroke-width":"2"}),(0,i.jsx)("path",{d:"M144 36C144 36 144 66 172 66C200 66 200 36 200 36",stroke:e,"stroke-width":"2"})]})})}var r=s(86890),l=s(21377),a=s(76356),o=s(74610),d=s(56494),c=s(29180),x=s(78259),h=s(25940),u=s(66331),p=s(96861),g=s(64006),m=s(94156);let b=e=>{let{player:t,team:s,rating:n,event:r,textW:l,isSeason:a,isSmall:o}=e,{openEventPlayerStatistics:d}=(0,u.d)(),c=o?16:24,b=o?32:40,j=o?56:72,f=a||o?"sm":void 0,y=!a||o?24:28;return t?(0,i.jsx)(g.N_,{routeKey:"player",params:{id:t.id,slug:t.slug},onClick:e=>{r&&t&&(e.preventDefault(),e.stopPropagation(),d({event:r,player:t},p._.TeamOfTheWeek))},children:(0,i.jsxs)(h.so,{position:"relative",align:"center",direction:"column",textAlign:"center",w:j,h:72,children:[(0,i.jsx)(h.so,{my:"xs",children:(0,i.jsx)(x.tg,{id:t.id,name:t.name,size:b})}),(0,i.jsx)(h.so,{grow:1,align:"center",children:(0,i.jsx)(h.EY,{font:"assistive.default",color:"onSurface.nLv1",align:"center",block:!0,ellipsis:!o,w:l,lineClamp:o?2:void 0,overflowWrap:"anywhere",verticalAlign:"middle",children:(0,i.jsx)(m.c,{entity:t,short:!0})})}),s&&(0,i.jsx)(h.az,{position:"absolute",top:24,right:0,children:(0,i.jsx)(x.pY,{id:s.id,name:s.name,size:c})}),(0,i.jsx)(h.az,{position:"absolute",top:y,left:0,children:(0,i.jsx)(x.GW,{rating:n,decimalPoints:a?2:1,size:f})})]})}):null},j=e=>{let{formation:t,players:s,isSeason:x,sportSlug:h}=e,u=null==t?void 0:t.includes("5");return(0,i.jsx)(o.t,{tag:"TOTW",children:(0,i.jsxs)(a.az,{position:"relative",h:h===l.QCR.Basketball?"[320px]":"[368px]",maxW:h===l.QCR.Basketball?"[380px]":void 0,mx:"auto",children:[(0,i.jsx)(a.so,{h:"100%",position:"relative",zIndex:"button",direction:"column-reverse",pt:h===l.QCR.Basketball?"lg":void 0,pb:h===l.QCR.Basketball?"[54px]":void 0,children:t&&s?(0,c.V)(t,s,h).map((e,t)=>(0,i.jsx)(a.so,{flexGrow:1,flexShrink:1,align:"center",justify:"space-evenly",direction:"row-reverse",children:e.map((s,n)=>(0,i.jsx)(a.az,{mt:h===l.QCR.Basketball&&1===t&&1===n?"-3xl":void 0,children:(0,i.jsx)(b,{...s,textW:280/e.length,isSeason:x,isSmall:u})},s.id))},t)):(0,i.jsx)(a.so,{h:"[360px]",justify:"center",align:"center",children:(0,i.jsx)(d.a,{})})}),h===l.QCR.Basketball?(0,i.jsx)(a.az,{position:"absolute",top:"0",left:"0",w:"100%",h:"100%",children:(0,i.jsx)(n,{linesColor:"rgba(164, 169, 179, 0.3)"})}):(0,i.jsx)(a.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,i.jsx)(r.A,{side:"right",linesColor:"rgba(164, 169, 179, 0.3)",isHorizontalLayout:!1})})]})})}},69939:(e,t,s)=>{s.d(t,{S:()=>r});var i=s(6029),n=s(64006);let r=e=>{let{uniqueTournament:t,seasonId:s,tab:r,onClick:l,children:a}=e;return t?(0,i.jsx)(n.tQ,{tournament:t,seasonId:s,hash:r?"id:".concat(s,",tab:").concat(r):"id:".concat(s),onClick:l,children:a}):(0,i.jsx)(i.Fragment,{children:a})}},73315:(e,t,s)=>{s.d(t,{f6:()=>I,hz:()=>M,Br:()=>u});var i=s(6029),n=s(28349),r=s(21501),l=s(76356),a=s(55729),o=s(46222),d=s(95084);let c=[21559,21560,21561],x=()=>(0,i.jsx)("svg",{width:"9",height:"10",viewBox:"0 0 9 10",fill:"none",children:(0,i.jsx)("path",{d:"M0.0285624 8.37741C0.0285624 8.37741 -0.035703 8.22345 0.0285624 8.1593L5.07982 3.11725C5.07982 3.11725 5.23405 3.0531 5.29832 3.11725L6.36512 4.18211C6.44224 4.25909 6.44224 4.32324 6.36512 4.40021L1.32672 9.44227C1.2496 9.51924 1.17248 9.51924 1.09537 9.44227L0.0285624 8.37741ZM7.17487 2.32181H1.36528C1.26246 2.32181 1.19819 2.25766 1.19819 2.16785V0.653956C1.19819 0.564148 1.27531 0.5 1.35243 0.5H8.07458C8.16455 0.5 8.21596 0.5 8.29308 0.576978L8.93573 1.21846C8.93573 1.21846 9 1.29544 9 1.35959V8.12081C9 8.21062 8.92288 8.27477 8.84576 8.27477H7.3291C7.22628 8.27477 7.17487 8.21062 7.17487 8.10798V2.32181Z",fill:"white"})}),h=()=>((0,a.useEffect)(()=>{(0,d.ke)({action:"impression",location:"league_details",type:"banner_kutija_sibica"})},[]),(0,i.jsx)("a",{href:"https://www.entrio.hr/event/mnt-kutija-sibica-2024-powered-by-powerade-zavrsnica-21625/?utm_source=sofascore&utm_medium=sof_web",target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,d.ke)({action:"click",location:"league_details",type:"banner_kutija_sibica"})},children:(0,i.jsx)("bdi",{children:(0,i.jsx)(o.Zp,{children:(0,i.jsxs)(l.so,{backgroundImage:"url(/static/images/kutija-sibica/kutija_bg.png)",backgroundSize:"cover",backgroundRepeat:"no-repeat",minH:{base:"[148px]",lg:"[162px]"},p:{base:"md",lg:"lg"},align:"center",justify:"space-between",br:{mdDown:"lg",md:"xl"},overflow:"hidden",children:[(0,i.jsxs)(l.so,{direction:"column",gap:"sm",flexGrow:1,flexShrink:1,flexBasis:"[150px]",maxW:"[214px]",children:[(0,i.jsx)(n.EY,{display:"block",textStyle:"display.extraLarge",color:"onColor.primary",textAlign:"start",children:"Navijaj na Kutiji šibica i uživo! \uD83D\uDD25"}),(0,i.jsx)(n.$n,{w:"100%",variant:"clear",size:"secondary",bg:"[#E82F34]",textTransform:"none",children:(0,i.jsxs)(l.so,{justify:"center",align:"center",gap:"sm",children:[(0,i.jsx)(n.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",children:"Kupi ulaznice"}),(0,i.jsx)(x,{})]})})]}),(0,i.jsx)(l.az,{backgroundImage:"url(/static/images/kutija-sibica/kutija_logo.svg)",backgroundSize:"cover",backgroundRepeat:"no-repeat",h:{base:"[128px]",lg:"[134px]"},w:{base:"[110px]",lg:"[114px]"}})]})})})})),u=e=>{let{uniqueTournamentId:t}=e,s=(0,r.hX)();if(!c.includes(t))return null;if(s)return(0,i.jsx)(o.Zp,{children:(0,i.jsx)(l.az,{h:{base:"[148px]",lg:"[162px]"}})});let n=new Date().getTime(),a=new Date("2024-12-15 12:00:00").getTime(),d=new Date("2024-12-28 12:00:00").getTime();return n>a&&n{let[e,t]=(0,k.bL)("cwcfantasy.banner.hidden",!1,!1),{isMobile:s}=(0,n.$c)();return s&&e?null:(0,i.jsx)(w.N_,{routeKey:"fantasy",className:"dark",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(o.Zp,{children:(0,i.jsxs)(l.az,{bg:"surface.sp",br:"lg",overflow:"hidden",position:"relative",h:{base:"11xl",md:"[352px]"},children:[(0,i.jsxs)("bdi",{children:[(0,i.jsx)(C,{}),(0,i.jsx)(S,{top:{base:"xs",md:"lg"},right:{base:"-lg",md:"-sm"},opacity:{base:.3,md:1}})]}),(0,i.jsx)(l.az,{position:"absolute",bottom:"md",backgroundImage:"url(/static/images/cwc-fantasy-banner/terrain.svg)",backgroundSize:{base:"100px 70px",md:"270px 180px"},backgroundPosition:{_rtl:{base:"bottom left",md:"bottom center"},_ltr:{base:"bottom right 24px",md:"bottom center"}},backgroundRepeat:"no-repeat",w:"100%",h:"100%"}),(0,i.jsx)(_,{}),(0,i.jsxs)(l.so,{direction:{base:"row",md:"column"},justify:"space-between",align:"center",position:"absolute",top:"0",left:"0",w:"100%",h:"100%",pt:{base:"sm",md:"2xl"},pb:{base:"sm",md:"3xl"},px:"sm",children:[(0,i.jsxs)(l.so,{direction:"column",gap:{base:"2xs",md:"sm"},align:{base:"start",md:"center"},textAlign:{base:"start",md:"center"},maxW:{base:"[222px]",md:"[328px]"},children:[(0,i.jsxs)(l.so,{gap:"sm",align:"center",children:[(0,i.jsx)(l.az,{w:{base:"xl",md:"3xl"},h:{base:"xl",md:"3xl"},children:(0,i.jsx)(j.azT,{w:"100%",h:"100%",fill:"#EDC779"})}),(0,i.jsx)(n.EY,{textStyle:{base:"display.small",md:"display.extraLarge"},whiteSpace:"nowrap",children:(0,i.jsx)(m.A,{id:"fantasy"})})]}),(0,i.jsx)(l.az,{px:"sm",py:{md:"sm"},children:(0,i.jsx)(n.EY,{children:(0,i.jsx)(m.A,{id:"fantasy_cwc_banner_subheadline"})})})]}),(0,i.jsxs)(l.so,{direction:"column",justify:"space-between",align:"end",alignSelf:{mdDown:"end"},h:"100%",children:[s?(0,i.jsx)(n.K0,{variant:"clear",negative:!0,onClick:e=>{e.preventDefault(),e.stopPropagation(),t(!0)},children:(0,i.jsx)(j.zQC,{icon:"close"})}):(0,i.jsx)("div",{}),(0,i.jsx)(n.$n,{className:(0,g.AH)({"--colors-color-palette-default":"#EDC779"}),px:{base:"2xl",md:"4xl"},size:s?"tertiary":"primary",children:(0,i.jsx)(m.A,{id:"get_started"})})]})]})]})})})},I=e=>{let{uniqueTournamentId:t}=e,s=(0,b.d4)(v.LQ),n=(0,y.A)();if(t!==p.G6l.ClubWorldCup||!s||!z.includes(s)||!["en","en-us"].includes(n))return null;let r=new Date().getTime();return new Date(f.zK[p.G6l.ClubWorldCup].visibleTo).getTime(){t(T.w.CWCFantasy,!r)},[r]),(0,a.useEffect)(()=>{o(!0);let e=()=>!!document.getElementById(H)&&(u(!0),!0);if(e())return;let t=new MutationObserver(()=>{e()&&t.disconnect()});return t.observe(document.body,{childList:!0,subtree:!0}),()=>t.disconnect()},[]),e===T.w.CWCFantasy&&h)?(0,i.jsxs)(E.A,{isOpen:c,setIsOpen:e=>{x(e),e||s()},width:328,modalContentStyles:{position:"relative",overflow:"hidden",backgroundColor:L.S.var("colors.surface.sp")},sheetStyles:{position:"relative",overflow:"hidden",backgroundColor:L.S.var("colors.surface.sp")},renderAdPlaceholder:!1,header:(0,i.jsx)(i.Fragment,{}),footer:null,portalContainerId:H,children:[(0,i.jsxs)("bdi",{children:[(0,i.jsx)(C,{bottom:{base:"[-234px]",md:"[-200px]"}}),(0,i.jsx)(S,{top:{base:"lg",md:"sm"},right:{base:"-xs",md:"-md"},opacity:{base:.3,md:1}}),(0,i.jsx)(_,{})]}),(0,i.jsxs)(l.so,{direction:"column",gap:"lg",position:"relative",px:"lg",pb:"2xl",pt:{base:"0",md:"lg"},children:[(0,i.jsx)(l.az,{textAlign:{base:"start",md:"center"},children:(0,i.jsx)(n.EY,{textStyle:"display.large",children:(0,i.jsx)(m.A,{id:"fantasy_cwc_popup_headline"})})}),(0,i.jsxs)(l.ov,{gap:"lg",children:[(0,i.jsx)(l.az,{w:"3xl",h:"3xl",children:(0,i.jsx)(j.azT,{w:"100%",h:"100%",fill:L.S.var("colors.neutrals.nLv1")})}),(0,i.jsx)(n.EY,{textStyle:"display.large",whiteSpace:"nowrap",textTransform:"uppercase",children:(0,i.jsx)(m.A,{id:"fantasy"})})]}),(0,i.jsx)(l.az,{children:(0,i.jsx)(n.EY,{children:(0,i.jsx)(m.A,{id:"fantasy_cwc_popup_subheadline"})})}),(0,i.jsxs)(l.so,{flexDirection:{base:"column-reverse",md:"row"},justify:{base:"stretch",md:"end"},gap:"sm",pt:{base:"lg",md:"sm"},children:[(0,i.jsx)(n.$n,{variant:"clear",negative:!0,onClick:()=>{x(!1),s()},children:(0,i.jsx)(m.A,{id:d?"no":"button_not_now"})}),(0,i.jsx)(w.N_,{routeKey:"fantasy",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.$n,{variant:"filled",negative:!0,w:{mdDown:"100%"},children:(0,i.jsx)(m.A,{id:d?"yes":"get_started"})})})]})]})]}):null}function M(e){let{uniqueTournamentId:t}=e,s=(0,b.d4)(v.LQ),r=(0,y.A)();if(!s||!z.includes(s)||!["en","en-us"].includes(r)||t!==p.G6l.ClubWorldCup)return null;let l=new Date().getTime();return new Date(f.zK[p.G6l.ClubWorldCup].visibleTo).getTime(){s.d(t,{GW:()=>n.A,pY:()=>r.p,tg:()=>i.t});var i=s(91407),n=s(94400),r=s(91603)},78952:(e,t,s)=>{s.d(t,{j:()=>W});var i=s(6029),n=s(21377),r=s(28349),l=s(76356),a=s(55729),o=s(90248),d=s(494),c=s(45860),x=s(33939),h=s(33144),u=s(25940),p=s(18970),g=s(52466),m=s(28018),b=s(67087),j=s(69939),f=s(64006),y=s(56132),w=s(45607),v=s(9081),k=s(88505),z=s(11996);let C=["Final","Semifinal","Semifinals","Match for 3rd place"],S=e=>{let{seasonId:t,uniqueTournamentId:s}=e,{data:a,isLoading:d}=(0,c.Ay)(n.V3t.info(s,t)),x=null==a?void 0:a.info.winner;return d||x?(0,i.jsxs)(l.so,{h:"6xl",bg:"surface.s2",px:"lg",align:"center",gap:"lg",br:{md:"lg"},children:[(0,i.jsxs)(l.az,{h:"5xl",w:"5xl",position:"relative",children:[(0,i.jsx)(g.HeH,{height:56,width:56}),x&&(0,i.jsx)(h.p,{size:20,name:x.name,id:x.id,style:{position:"absolute",top:"12px",left:"18px"}})]}),x&&(0,i.jsxs)(l.az,{children:[(0,i.jsx)(r.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,i.jsx)(o.A,{id:"winner"})}),(0,i.jsx)(r.EY,{display:"block",textStyle:"display.medium",mt:"xs",children:(0,i.jsx)(k.Rm,{team:x})})]})]}):null},_=()=>{let[e,t]=(0,a.useState)(!1);return(0,i.jsx)(u.AM,{closeOnOutsideClick:!0,controls:[e,t],children:(0,i.jsxs)(u.AM.Content,{w:"260px",right:[-8,0,-20,0],elevation:3,children:[(0,i.jsx)(l.az,{px:"xs",pt:"sm",children:(0,i.jsx)(o.A,{id:"rating_team_of_the_tournament",values:{bold:function(){for(var e=arguments.length,t=Array(e),s=0;st(!1),children:(0,i.jsx)(o.A,{id:"ok_got_it_button"})})})]})})},A=e=>{let{seasonId:t,uniqueTournamentId:s}=e,{data:d,isLoading:x}=(0,c.Ay)(n.V3t.teamOfTheSeason(s,t)),h=(0,a.useContext)(p.Ws);return d||x?(0,i.jsxs)(l.az,{mt:"sm",children:[(0,i.jsxs)(l.so,{h:"3xl",justify:"space-between",px:"sm",children:[(0,i.jsx)(r.EY,{display:"block",textStyle:"display.small",h:"3xl",pt:"lg",children:(0,i.jsx)(o.A,{id:"team_of_the_tournament"})}),(0,i.jsx)(l.az,{h:"xl",w:"xl",mt:"md",children:(0,i.jsx)(_,{})})]}),(0,i.jsx)(l.az,{h:"[360px]",mt:{md:"sm"},children:d&&(0,i.jsx)(w.I,{formation:d.formation,players:d.players,sportSlug:h,isSeason:!0})})]}):null},I=e=>{let{event:t}=e,{event:s,leftTeam:n,rightTeam:r,leftScore:l,rightScore:a}=(0,b.AR)(t);return(0,i.jsx)(p.y$,{value:{event:s,leftTeam:n,rightTeam:r,leftScore:l,rightScore:a,location:p.cb.MainList},children:(0,i.jsx)(f.tj,{event:s,children:(0,i.jsx)(m.n6,{event:s,style:{margin:"0 -8px"}})})})},L=e=>{let{uniqueTournament:t,seasonId:s,uniqueTournamentId:d}=e,{isDesktop:x}=(0,r.$c)(),{data:h,isLoading:u}=(0,c.Ay)(n.V3t.events(d,s,!0,0)),{hasTopStats:p}=(0,z.A)({hasTopStats:{route:n.V3t.topPlayersPerGame(d,s,"all",n.Vw_.overall)}}),m=null==h?void 0:h.events.filter(e=>{var t;return(null==(t=e.roundInfo)?void 0:t.name)&&C.includes(e.roundInfo.name)}).reverse();return(null==m?void 0:m.length)||u?(0,i.jsxs)(l.az,{minH:"[248px]",mt:"sm",children:[(0,i.jsx)(r.EY,{display:"block",textStyle:"display.small",h:"3xl",px:"sm",pt:"lg",textAlign:{base:"center",md:"start"},children:(0,i.jsx)(o.A,{id:"final_matches_title"})}),(0,i.jsx)(l.az,{h:u?"[208px]":void 0,children:null==m?void 0:m.map((e,t)=>{var s,n;return(0,i.jsxs)(a.Fragment,{children:[(null==(s=e.roundInfo)?void 0:s.name)&&(0===t||(null==(n=m[t-1].roundInfo)?void 0:n.name)!==e.roundInfo.name)&&(0,i.jsx)(r.EY,{display:"block",h:"2xl",px:{base:"sm",md:"0"},pt:"sm",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,i.jsx)(v.__,{name:e.roundInfo.name})}),(0,i.jsx)(I,{event:e},e.id)]},e.id)})}),(0,i.jsx)(j.S,{uniqueTournament:t,seasonId:s,tab:x?void 0:p?y.x.TopStats:y.x.Details,children:(0,i.jsxs)(l.so,{justify:"center",pt:"md",h:"4xl",children:[(0,i.jsx)(r.EY,{display:"block",color:"primary.default",textStyle:"display.small",children:(0,i.jsx)(o.A,{id:"see_historical_details_button"})}),(0,i.jsx)(g.CCT,{fill:"primary.default"})]})})]}):null},E=e=>{let{uniqueTournament:t,season:s,tournament:n}=e;return(0,i.jsxs)(l.az,{bg:"surface.s1",px:"sm",pt:"lg",pb:{base:"lg",md:"0"},children:[(0,i.jsx)(S,{uniqueTournamentId:n.id,seasonId:s.id}),(0,i.jsx)(A,{uniqueTournamentId:n.id,seasonId:s.id}),(0,i.jsx)(L,{uniqueTournament:t,uniqueTournamentId:n.id,seasonId:s.id})]})};var T=s(21501);let B=e=>{let{season:t,isSelected:s,onClick:n}=e,[a,o]=(0,T.c9)([]);return(0,r.rF)(a,[s],()=>!!s),(0,i.jsx)(l.az,{userSelect:"none",ref:o,bg:s?"onColor.primary":"onColor.highlight1",onClick:s?void 0:n,cursor:s?void 0:"pointer",h:"2xl",minW:"[46px]",px:"sm",br:"sm",children:(0,i.jsx)(l.so,{h:"100%",align:"center",justify:"center",children:(0,i.jsx)(r.EY,{display:"block",textStyle:"tab.secondary",whiteSpace:"nowrap",color:s?"primary.default":"onColor.primary",children:t.year})})})};var D=s(72753),H=s(18858);let $=(e,t,s)=>{var i,n;let r=null!=(n=null==(i=e.defaultHistoryHighlightsYearPerCountry)?void 0:i[s||""])?n:e.historyHighlightsEndYear;return r?Math.max(t.findIndex(e=>e.year===r),0):0},M=e=>{let{seasons:t,tournament:s,uniqueTournament:n}=e,c=(0,d.d4)(D.LQ),[h,u]=(0,a.useState)(()=>$(s,t,c));(0,a.useEffect)(()=>{u($(s,t,c))},[s.id,c]);let p=(0,H.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return(0,i.jsxs)(l.az,{position:"relative",children:[(0,i.jsx)(l.az,{position:["sticky",void 0],style:{top:p-40},zIndex:"sticky",children:(0,i.jsxs)(l.az,{position:"relative",children:[(0,i.jsx)(x.W,{tournament:s}),(0,i.jsxs)(l.az,{position:"relative",children:[(0,i.jsx)(r.EY,{pt:"lg",h:"3xl",display:"block",textAlign:"center",textStyle:"display.medium",color:"onColor.primary",children:(0,i.jsx)(o.A,{id:"history_highlights_title"})}),(0,i.jsx)(r.tR,{showButtons:"always",buttonStyle:"clipped",colorPalette:"onColor",scrollFactor:.7,children:(0,i.jsx)(l.so,{minW:"fit",h:"4xl",justify:"space-between",align:"center",px:"lg",gap:"lg",children:t.map((e,t)=>(0,i.jsx)(B,{season:e,isSelected:t===h,onClick:()=>u(t)},e.id))})})]})]})}),(0,i.jsx)(E,{uniqueTournament:n,season:t[h],tournament:s})]})},W=e=>{let{tournament:t,uniqueTournament:s,seasons:r=[]}=e,{data:a,isLoading:o}=(0,c.Ay)(n.V3t.seasons(t.id),{fallbackData:{seasons:r}}),d=null==a?void 0:a.seasons.filter(e=>e.id!==t.seasonId&&t.historyHighlightsEndYear&&e.year>=t.historyHighlightsEndYear);return(null==d?void 0:d.length)?(0,i.jsx)(M,{uniqueTournament:s,tournament:t,seasons:d}):o?(0,i.jsx)(l.az,{h:"[888px]"}):null}},86890:(e,t,s)=>{s.d(t,{A:()=>r});var i=s(6029),n=s(42181);function r({side:e,linesColor:t,isHorizontalLayout:s}){return(0,i.jsxs)(n.g9,{side:e,isHorizontalLayout:s,children:[(0,i.jsx)("div",{className:"goal",children:(0,i.jsxs)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 160 70",width:"160",height:"70",children:[(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"cutoffRect",children:(0,i.jsx)("rect",{x:"0",y:"1",width:"160",height:"70"})})}),(0,i.jsxs)("g",{stroke:t,fill:"transparent",strokeWidth:"2",children:[(0,i.jsx)("rect",{clipPath:"url(#cutoffRect)",x:"1",y:"0",width:"158",height:"46"}),(0,i.jsx)("rect",{clipPath:"url(#cutoffRect)",x:"42",y:"0",width:"74",height:"24"}),(0,i.jsx)("path",{d:"M 39 46 A 50 50 0 0 0 119 46"})]})]})}),(0,i.jsx)("div",{className:"c1",children:(0,i.jsx)("svg",{viewBox:"0 0 14 14",height:"14",width:"14",children:(0,i.jsx)("circle",{stroke:t,fill:"transparent",strokeWidth:"2",cx:"0",cy:"0",r:"12"})})}),(0,i.jsx)("div",{className:"c2",children:(0,i.jsx)("svg",{viewBox:"0 0 14 14",height:"14",width:"14",children:(0,i.jsx)("circle",{stroke:t,fill:"transparent",strokeWidth:"2",cx:"14",cy:"0",r:"12"})})}),(0,i.jsx)("div",{className:"center",children:(0,i.jsx)("svg",{viewBox:"0 0 128 64",width:"128",height:"64",children:(0,i.jsx)("circle",{stroke:t,fill:"transparent",strokeWidth:"2",cx:"64",cy:"64",r:"62"})})})]})}},94822:(e,t,s)=>{s.d(t,{Z:()=>y});var i=s(6029),n=s(28349),r=s(21377),l=s(494),a=s(45860),o=s(31830),d=s(94122),c=s(72753),x=s(76356),h=s(55729),u=s(43072),p=s(14831),g=s(14617),m=s(5985);let b=e=>{let{banner:t,inViewport:s}=e,[n,r]=(0,p.bL)((0,m.AE)("generic",t.id),!1);return n?null:(0,i.jsx)(x.az,{bg:s?"primary.default":"primary.highlight",w:"sm",h:"sm",br:"50%"},t.id)},j=e=>{let{children:t,onViewportEnter:s,id:n}=e,[r,l]=(0,u.Wx)({trackVisibility:!0,threshold:.7,delay:100}),[a,o]=(0,p.bL)((0,m.AE)("generic",n),!1);return((0,h.useEffect)(()=>{l&&s()},[l]),a)?null:(0,i.jsx)(x.az,{ref:r,flex:"[0 0 100%]",scrollSnapAlign:"start",scrollSnapStop:"always",children:t})},f=e=>{let{banners:t,entityBackgroundImageUrl:s,location:n}=e,[r,l]=(0,h.useState)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.so,{align:"center",overflowX:"scroll",scrollSnapType:"[x mandatory]",gap:"sm",scrollbar:"hidden",children:t.map(e=>(0,i.jsx)(j,{id:e.id,onViewportEnter:()=>l(e.id),children:(0,i.jsx)(g.Q,{banner:(0,m.NA)(e),bgImageUrl:(0,m.px)(e,s),isSpecialBg:!0,location:n})},e.id))}),(0,i.jsx)(x.so,{gap:"sm",justify:"center",children:t.map(e=>(0,i.jsx)(b,{banner:e,inViewport:e.id===r},e.id))})]})},y=e=>{let{entity:t,entityId:s,entityBackgroundImageUrl:x,location:h}=e,{banners:u}=((e,t)=>{let s=(0,l.d4)(c.LQ),i=(0,l.d4)(c.zj),n=(0,o.A)(),{data:x,isLoading:h}=(0,a.Ay)(((e,t,s,i,n)=>i?d.DB.includes(i)?n?r.Oaq.countryBanners(e,t,n,s):null:r.Oaq.countryBanners(e,t,i,s):null)(e,t,n,s,i));return{banners:(null==x?void 0:x.banners)||[],isLoading:h}})(t,s),{isDesktop:p}=(0,n.$c)();return u&&0!==u.length?1===u.length?(0,i.jsx)(g.Q,{banner:(0,m.NA)(u[0]),bgImageUrl:(0,m.px)(u[0],x),isSpecialBg:!0,location:h}):p?(0,i.jsx)(i.Fragment,{children:u.map(e=>(0,i.jsx)(g.Q,{banner:(0,m.NA)(e),bgImageUrl:(0,m.px)(u[0],x),isSpecialBg:!0,location:h},e.id))}):(0,i.jsx)(f,{banners:u,entityBackgroundImageUrl:x,location:h}):null}}}]);