!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]="7a0041d5-43f2-4464-87ee-54cef77d5a9c",e._sentryDebugIdIdentifier="sentry-dbid-7a0041d5-43f2-4464-87ee-54cef77d5a9c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19622],{3167:(e,t,n)=>{n.d(t,{G:()=>u});var i=n(6029),s=n(99064),r=n(83170),a=n(55729),l=n(90510),o=n(41735);let d=(0,o.keyframes)(["from{width:0;}to{width:",";}"],e=>e.width),c=(0,o.default)(s.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 u(e){let{start:t=0,c:n=["onSurface.nLv1","onColor.primary"],bg:r="overlay.darken1",end:o,datesProps:d,...u}=e,[h,p]=(0,a.useState)(0),g=Date.now()/1e3;(0,a.useEffect)(()=>{setTimeout(()=>{e.end&&p(e.end)},1e3)},[e.end]),x.domain([t,h]).clamp(!0);let m=x(g);return(0,i.jsx)(s.so,{w:"100%",mt:["sm","md"],mb:["md",0],...u,children:(0,i.jsxs)(s.az,{flex:"1 1 auto",children:[(0,i.jsx)(s.az,{br:"sm",h:"6",bg:r,position:"relative",overflow:"hidden",children:t>0&&h>0&&(0,i.jsx)(c,{width:m+"%",bg:n},h)}),(0,i.jsxs)(s.so,{justify:"space-between",mt:"xxs",...d,children:[(0,i.jsx)(s.EY,{font:"body.small",c:n,children:(0,i.jsx)(l.XU,{value:1e3*t,day:"numeric",month:"short"})}),(0,i.jsx)(s.EY,{font:"body.small",c:n,children:(0,i.jsx)(l.XU,{value:1e3*(e.end||h),day:"numeric",month:"short"})})]})]})})}},8298:(e,t,n)=>{n.d(t,{I:()=>m});var i=n(6029),s=n(86890),r=n(76356),a=n(75751),l=n(22648),o=n(90715),d=n(78259),c=n(99064),x=n(16620),u=n(48886),h=n(13266),p=n(24159);let g=e=>{let{player:t,team:n,rating:s,event:r,textW:a,isSeason:l,isSmall:o}=e,{openEventPlayerStatistics:g}=(0,x.d)(),m=o?16:24,b=o?32:40,j=o?56:72,f=l||o?"sm":void 0,y=!l||o?24:28;return t?(0,i.jsx)(h.N_,{routeKey:"player",params:{id:t.id,slug:t.slug},onClick:e=>{r&&t&&(e.preventDefault(),e.stopPropagation(),g({event:r,player:t},u._.TeamOfTheWeek))},children:(0,i.jsxs)(c.so,{position:"relative",align:"center",direction:"column",textAlign:"center",w:j,h:72,children:[(0,i.jsx)(c.so,{my:"xs",children:(0,i.jsx)(d.tg,{id:t.id,name:t.name,size:b})}),(0,i.jsx)(c.so,{grow:1,align:"center",children:(0,i.jsx)(c.EY,{font:"assistive.default",color:"onSurface.nLv1",align:"center",block:!0,ellipsis:!o,w:a,lineClamp:o?2:void 0,overflowWrap:"anywhere",verticalAlign:"middle",children:(0,i.jsx)(p.c,{entity:t,short:!0})})}),n&&(0,i.jsx)(c.az,{position:"absolute",top:24,right:0,children:(0,i.jsx)(d.pY,{id:n.id,name:n.name,size:m})}),(0,i.jsx)(c.az,{position:"absolute",top:y,left:0,children:(0,i.jsx)(d.GW,{rating:s,decimalPoints:l?2:1,size:f})})]})}):null},m=e=>{let{formation:t,players:n,isSeason:d}=e,c=null==t?void 0:t.includes("5");return(0,i.jsx)(a.t,{tag:"TOTW",children:(0,i.jsxs)(r.az,{position:"relative",h:"[368px]",children:[(0,i.jsx)(r.so,{h:"100%",position:"relative",zIndex:"button",direction:"column-reverse",children:t&&n?(0,o.V)(t,n).map((e,t)=>(0,i.jsx)(r.so,{flexGrow:1,flexShrink:1,align:"center",justify:"space-evenly",direction:"row-reverse",children:e.map(t=>(0,i.jsx)(g,{...t,textW:280/e.length,isSeason:d,isSmall:c},t.id))},t)):(0,i.jsx)(r.so,{h:"[360px]",justify:"center",align:"center",children:(0,i.jsx)(l.a,{})})}),(0,i.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)"}),(0,i.jsx)(s.A,{side:"right",linesColor:"rgba(164, 169, 179, 0.3)",isHorizontalLayout:!1})]})})}},10778:(e,t,n)=>{n.d(t,{j:()=>W});var i=n(6029),s=n(21377),r=n(28349),a=n(76356),l=n(55729),o=n(90248),d=n(494),c=n(45860),x=n(41248),u=n(33144),h=n(99064),p=n(62859),g=n(54409),m=n(60988),b=n(65078),j=n(75436),f=n(13266),y=n(58047),v=n(8298),w=n(47530),k=n(94604),z=n(86679);let S=["Final","Semifinal","Semifinals","Match for 3rd place"],_=e=>{let{seasonId:t,uniqueTournamentId:n}=e,{data:l,isLoading:d}=(0,c.Ay)(s.V3t.info(n,t)),x=null==l?void 0:l.info.winner;return d||x?(0,i.jsxs)(a.so,{h:"6xl",bg:"surface.s2",px:"lg",align:"center",gap:"lg",br:{md:"lg"},children:[(0,i.jsxs)(a.az,{h:"5xl",w:"5xl",position:"relative",children:[(0,i.jsx)(g.HeH,{height:56,width:56}),x&&(0,i.jsx)(u.p,{size:20,name:x.name,id:x.id,style:{position:"absolute",top:"12px",left:"18px"}})]}),x&&(0,i.jsxs)(a.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},C=()=>{let[e,t]=(0,l.useState)(!1);return(0,i.jsx)(h.AM,{closeOnOutsideClick:!0,controls:[e,t],children:(0,i.jsxs)(h.AM.Content,{w:"260px",right:[-8,0,-20,0],elevation:3,children:[(0,i.jsx)(a.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),n=0;nt(!1),children:(0,i.jsx)(o.A,{id:"ok_got_it_button"})})})]})})},A=e=>{let{seasonId:t,uniqueTournamentId:n}=e,{data:l,isLoading:d}=(0,c.Ay)(s.V3t.teamOfTheSeason(n,t));return l||d?(0,i.jsxs)(a.az,{mt:"sm",children:[(0,i.jsxs)(a.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)(a.az,{h:"xl",w:"xl",mt:"md",children:(0,i.jsx)(C,{})})]}),(0,i.jsx)(a.az,{h:"[360px]",mt:{md:"sm"},children:l&&(0,i.jsx)(v.I,{formation:l.formation,players:l.players,isSeason:!0})})]}):null},I=e=>{let{event:t}=e,{event:n,leftTeam:s,rightTeam:r,leftScore:a,rightScore:l}=(0,b.AR)(t);return(0,i.jsx)(p.y$.Provider,{value:{event:n,leftTeam:s,rightTeam:r,leftScore:a,rightScore:l,location:p.cb.MainList},children:(0,i.jsx)(f.tj,{event:n,children:(0,i.jsx)(m.n6,{event:n,style:{margin:"0 -8px"}})})})},L=e=>{let{uniqueTournament:t,seasonId:n,uniqueTournamentId:d}=e,{isDesktop:x}=(0,r.$c)(),{data:u,isLoading:h}=(0,c.Ay)(s.V3t.events(d,n,!0,0)),{hasTopStats:p}=(0,z.A)({hasTopStats:{route:s.V3t.topPlayersPerGame(d,n,"all",s.Vw_.overall)}}),m=null==u?void 0:u.events.filter(e=>{var t;return(null==(t=e.roundInfo)?void 0:t.name)&&S.includes(e.roundInfo.name)}).reverse();return(null==m?void 0:m.length)||h?(0,i.jsxs)(a.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)(a.az,{h:h?"[208px]":void 0,children:null==m?void 0:m.map((e,t)=>{var n,s;return(0,i.jsxs)(l.Fragment,{children:[(null==(n=e.roundInfo)?void 0:n.name)&&(0===t||(null==(s=m[t-1].roundInfo)?void 0:s.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)(w.__,{name:e.roundInfo.name})}),(0,i.jsx)(I,{event:e},e.id)]},e.id)})}),(0,i.jsx)(j.S,{uniqueTournament:t,seasonId:n,tab:x?void 0:p?y.x.TopStats:y.x.Details,children:(0,i.jsxs)(a.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:n,tournament:s}=e;return(0,i.jsxs)(a.az,{bg:"surface.s1",px:"sm",pt:"lg",pb:{base:"lg",md:"0"},children:[(0,i.jsx)(_,{uniqueTournamentId:s.id,seasonId:n.id}),(0,i.jsx)(A,{uniqueTournamentId:s.id,seasonId:n.id}),(0,i.jsx)(L,{uniqueTournament:t,uniqueTournamentId:s.id,seasonId:n.id})]})};var T=n(21501);let D=e=>{let{season:t,isSelected:n,onClick:s}=e,[l,o]=(0,T.c9)([]);return(0,r.rF)(l,[n],()=>!!n),(0,i.jsx)(a.az,{userSelect:"none",ref:o,bg:n?"onColor.primary":"onColor.highlight1",onClick:n?void 0:s,cursor:n?void 0:"pointer",h:"2xl",minW:"[46px]",px:"sm",br:"sm",children:(0,i.jsx)(a.so,{h:"100%",align:"center",justify:"center",children:(0,i.jsx)(r.EY,{display:"block",textStyle:"tab.secondary",whiteSpace:"nowrap",color:n?"primary.default":"onColor.primary",children:t.year})})})};var H=n(10794),$=n(12047);let P=(e,t,n)=>{var i,s;let r=null!=(s=null==(i=e.defaultHistoryHighlightsYearPerCountry)?void 0:i[n||""])?s:e.historyHighlightsEndYear;return r?Math.max(t.findIndex(e=>e.year===r),0):0},Y=e=>{let{seasons:t,tournament:n,uniqueTournament:s}=e,c=(0,d.d4)(H.LQ),[u,h]=(0,l.useState)(()=>P(n,t,c));(0,l.useEffect)(()=>{h(P(n,t,c))},[n.id,c]);let p=(0,$.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1});return(0,i.jsxs)(a.az,{position:"relative",children:[(0,i.jsx)(a.az,{position:["sticky",void 0],style:{top:p-40},zIndex:"sticky",children:(0,i.jsxs)(a.az,{position:"relative",children:[(0,i.jsx)(x.W,{tournament:n}),(0,i.jsxs)(a.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)(a.so,{minW:"fit",h:"4xl",justify:"space-between",align:"center",px:"lg",gap:"lg",children:t.map((e,t)=>(0,i.jsx)(D,{season:e,isSelected:t===u,onClick:()=>h(t)},e.id))})})]})]})}),(0,i.jsx)(E,{uniqueTournament:s,season:t[u],tournament:n})]})},W=e=>{let{tournament:t,uniqueTournament:n,seasons:r=[]}=e,{data:l,isLoading:o}=(0,c.Ay)(s.V3t.seasons(t.id),{fallbackData:{seasons:r}}),d=null==l?void 0:l.seasons.filter(e=>e.id!==t.seasonId&&t.historyHighlightsEndYear&&e.year>=t.historyHighlightsEndYear);return(null==d?void 0:d.length)?(0,i.jsx)(Y,{uniqueTournament:n,tournament:t,seasons:d}):o?(0,i.jsx)(a.az,{h:"[888px]"}):null}},41248:(e,t,n)=>{n.d(t,{W:()=>a});var i=n(6029),s=n(76356);let r=["euro-2024","copa-2024"],a=e=>{let{tournament:t}=e,n=r.includes(t.slug);return(0,i.jsx)(s.az,{position:"absolute",overflow:"hidden",bg:"graphics.dark",inset:"0",children:(0,i.jsx)(s.az,{bgSize:n?"[105% 105%]":"[100% 100%]",bgPosition:"center",overflow:"hidden",opacity:n?"[0.8]":void 0,height:"100%",style:{backgroundImage:"url(/static/images/featured-tournament/".concat(t.bgImage,")")},children:(0,i.jsx)(s.az,{height:"100%",bg:"[linear-gradient(to bottom, rgba(0, 0, 0, 0), {colors.overlay.darken1} 100%)]"})})})}},42181:(e,t,n)=>{n.d(t,{XF:()=>l,g9:()=>d,mi:()=>o,ob:()=>a});var i=n(76356),s=n(99064),r=n(41735);let a="rgba(255, 255, 255,0.3)",l=(0,r.default)(i.so)` position: relative; width: ${e=>e.isHorizontalLayout?"50%":"calc(100% - 16px)"}; 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 ${a};`;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: ${s.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: ${s.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: ${s.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: ${s.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: ${s.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: ${s.Py.Backdrop}; bottom: 16px; right: 12px; } `},49249:(e,t,n)=>{n.d(t,{Z:()=>w});var i=n(6029),s=n(28349),r=n(21377),a=n(494),l=n(45860),o=n(26331),d=n(62213),c=n(10794);let x=(e,t,n,i,s)=>i?d.DB.includes(i)?s?r.Oaq.countryBanners(e,t,s,n):null:r.Oaq.countryBanners(e,t,i,n):null,u=(e,t)=>{let n=(0,a.d4)(c.LQ),i=(0,a.d4)(c.zj),s=(0,o.A)(),{data:r,isLoading:d}=(0,l.Ay)(x(e,t,s,n,i));return{banners:(null==r?void 0:r.banners)||[],isLoading:d}};var h=n(76356),p=n(55729),g=n(43072),m=n(62827),b=n(63598),j=n(91888);let f=e=>{let{banner:t,inViewport:n}=e,[s,r]=(0,m.bL)((0,j.AE)("generic",t.id),!1);return s?null:(0,i.jsx)(h.az,{bg:n?"primary.default":"primary.highlight",w:"sm",h:"sm",br:"50%"},t.id)},y=e=>{let{children:t,onViewportEnter:n,id:s}=e,[r,a]=(0,g.Wx)({trackVisibility:!0,threshold:.7,delay:100}),[l,o]=(0,m.bL)((0,j.AE)("generic",s),!1);return((0,p.useEffect)(()=>{a&&n()},[a]),l)?null:(0,i.jsx)(h.az,{ref:r,flex:"[0 0 100%]",scrollSnapAlign:"start",scrollSnapStop:"always",children:t})},v=e=>{let{banners:t,entityBackgroundImageUrl:n,location:s}=e,[r,a]=(0,p.useState)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.so,{align:"center",overflowX:"scroll",scrollSnapType:"[x mandatory]",gap:"sm",scrollbar:"hidden",children:t.map(e=>(0,i.jsx)(y,{id:e.id,onViewportEnter:()=>a(e.id),children:(0,i.jsx)(b.Q,{banner:(0,j.NA)(e),bgImageUrl:(0,j.px)(e,n),isSpecialBg:!0,location:s})},e.id))}),(0,i.jsx)(h.so,{gap:"sm",justify:"center",children:t.map(e=>(0,i.jsx)(f,{banner:e,inViewport:e.id===r},e.id))})]})},w=e=>{let{entity:t,entityId:n,entityBackgroundImageUrl:r,location:a}=e,{banners:l}=u(t,n),{isDesktop:o}=(0,s.$c)();return l&&0!==l.length?1===l.length?(0,i.jsx)(b.Q,{banner:(0,j.NA)(l[0]),bgImageUrl:(0,j.px)(l[0],r),isSpecialBg:!0,location:a}):o?(0,i.jsx)(i.Fragment,{children:l.map(e=>(0,i.jsx)(b.Q,{banner:(0,j.NA)(e),bgImageUrl:(0,j.px)(l[0],r),isSpecialBg:!0,location:a},e.id))}):(0,i.jsx)(v,{banners:l,entityBackgroundImageUrl:r,location:a}):null}},52363:(e,t,n)=>{n.d(t,{f6:()=>I,hz:()=>Y,Br:()=>h});var i=n(6029),s=n(28349),r=n(21501),a=n(76356),l=n(55729),o=n(48683),d=n(61836);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"})}),u=()=>((0,l.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)(a.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)(a.so,{direction:"column",gap:"sm",flexGrow:1,flexShrink:1,flexBasis:"[150px]",maxW:"[214px]",children:[(0,i.jsx)(s.EY,{display:"block",textStyle:"display.extraLarge",color:"onColor.primary",textAlign:"start",children:"Navijaj na Kutiji šibica i uživo! \uD83D\uDD25"}),(0,i.jsx)(s.$n,{w:"100%",variant:"clear",size:"secondary",bg:"[#E82F34]",textTransform:"none",children:(0,i.jsxs)(a.so,{justify:"center",align:"center",gap:"sm",children:[(0,i.jsx)(s.EY,{display:"block",textStyle:"display.small",color:"onColor.primary",children:"Kupi ulaznice"}),(0,i.jsx)(x,{})]})})]}),(0,i.jsx)(a.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]"}})]})})})})),h=e=>{let{uniqueTournamentId:t}=e,n=(0,r.hX)();if(!c.includes(t))return null;if(n)return(0,i.jsx)(o.Zp,{children:(0,i.jsx)(a.az,{h:{base:"[148px]",lg:"[162px]"}})});let s=new Date().getTime(),l=new Date("2024-12-15 12:00:00").getTime(),d=new Date("2024-12-28 12:00:00").getTime();return s>l&&s{let[e,t]=(0,k.bL)("cwcfantasy.banner.hidden",!1,!1),{isMobile:n}=(0,s.$c)();return n&&e?null:(0,i.jsx)(v.N_,{routeKey:"fantasy",className:"dark",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(o.Zp,{children:(0,i.jsxs)(a.az,{bg:"surface.sp",br:"lg",overflow:"hidden",position:"relative",h:{base:"11xl",md:"[352px]"},children:[(0,i.jsxs)("bdi",{children:[(0,i.jsx)(S,{}),(0,i.jsx)(_,{top:{base:"xs",md:"lg"},right:{base:"-lg",md:"-sm"},opacity:{base:.3,md:1}})]}),(0,i.jsx)(a.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)(C,{}),(0,i.jsxs)(a.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)(a.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)(a.so,{gap:"sm",align:"center",children:[(0,i.jsx)(a.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)(s.EY,{textStyle:{base:"display.small",md:"display.extraLarge"},whiteSpace:"nowrap",children:(0,i.jsx)(m.A,{id:"fantasy_beta"})})]}),(0,i.jsx)(a.az,{px:"sm",py:{md:"sm"},children:(0,i.jsx)(s.EY,{children:(0,i.jsx)(m.A,{id:"fantasy_cwc_banner_subheadline"})})})]}),(0,i.jsxs)(a.so,{direction:"column",justify:"space-between",align:"end",alignSelf:{mdDown:"end"},h:"100%",children:[n?(0,i.jsx)(s.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)(s.$n,{className:(0,g.AH)({"--colors-color-palette-default":"#EDC779"}),px:{base:"2xl",md:"4xl"},size:n?"tertiary":"primary",children:(0,i.jsx)(m.A,{id:"get_started"})})]})]})]})})})},I=e=>{let{uniqueTournamentId:t}=e,n=(0,b.d4)(w.LQ),s=(0,y.A)();if(t!==p.G6l.ClubWorldCup||!n||!z.includes(n)||!["en","en-us"].includes(s))return null;let r=new Date().getTime();return new Date(f.zK[p.G6l.ClubWorldCup].visibleTo).getTime(){t(T.w.CWCFantasy,!r)},[r]),(0,l.useEffect)(()=>{o(!0);let e=()=>!!document.getElementById($)&&(h(!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&&u)?(0,i.jsxs)(E.A,{isOpen:c,setIsOpen:e=>{x(e),e||n()},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:$,children:[(0,i.jsxs)("bdi",{children:[(0,i.jsx)(S,{bottom:{base:"[-234px]",md:"[-200px]"}}),(0,i.jsx)(_,{top:{base:"lg",md:"sm"},right:{base:"-xs",md:"-md"},opacity:{base:.3,md:1}}),(0,i.jsx)(C,{})]}),(0,i.jsxs)(a.so,{direction:"column",gap:"lg",position:"relative",px:"lg",pb:"2xl",pt:{base:"0",md:"lg"},children:[(0,i.jsx)(a.az,{textAlign:{base:"start",md:"center"},children:(0,i.jsx)(s.EY,{textStyle:"display.large",children:(0,i.jsx)(m.A,{id:"fantasy_cwc_popup_headline"})})}),(0,i.jsxs)(a.ov,{gap:"lg",children:[(0,i.jsx)(a.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)(s.EY,{textStyle:"display.large",whiteSpace:"nowrap",textTransform:"uppercase",children:(0,i.jsx)(m.A,{id:"fantasy_game"})})]}),(0,i.jsx)(a.az,{children:(0,i.jsx)(s.EY,{children:(0,i.jsx)(m.A,{id:"fantasy_cwc_popup_subheadline"})})}),(0,i.jsxs)(a.so,{flexDirection:{base:"column-reverse",md:"row"},justify:{base:"stretch",md:"end"},gap:"sm",pt:{base:"lg",md:"sm"},children:[(0,i.jsx)(s.$n,{variant:"clear",negative:!0,onClick:()=>{x(!1),n()},children:(0,i.jsx)(m.A,{id:d?"no":"button_not_now"})}),(0,i.jsx)(v.N_,{routeKey:"fantasy",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(s.$n,{variant:"filled",negative:!0,w:{mdDown:"100%"},children:(0,i.jsx)(m.A,{id:d?"yes":"get_started"})})})]})]})]}):null}function Y(e){let{uniqueTournamentId:t}=e,n=(0,b.d4)(w.LQ),r=(0,y.A)();if(!n||!z.includes(n)||!["en","en-us"].includes(r)||t!==p.G6l.ClubWorldCup)return null;let a=new Date().getTime();return new Date(f.zK[p.G6l.ClubWorldCup].visibleTo).getTime(){n.d(t,{e:()=>i.e});var i=n(33480)},75436:(e,t,n)=>{n.d(t,{S:()=>r});var i=n(6029),s=n(13266);let r=e=>{let{uniqueTournament:t,seasonId:n,tab:r,onClick:a,children:l}=e;return t?(0,i.jsx)(s.tQ,{tournament:t,seasonId:n,hash:r?"id:".concat(n,",tab:").concat(r):"id:".concat(n),onClick:a,children:l}):(0,i.jsx)(i.Fragment,{children:l})}},78259:(e,t,n)=>{n.d(t,{GW:()=>s.A,pY:()=>r.p,tg:()=>i.t});var i=n(91407),s=n(94400),r=n(91603)},86890:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6029),s=n(42181);function r({side:e,linesColor:t,isHorizontalLayout:n}){return(0,i.jsxs)(s.g9,Object.assign({side:e,isHorizontalLayout:n},{children:[(0,i.jsx)("div",Object.assign({className:"goal"},{children:(0,i.jsxs)("svg",Object.assign({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",Object.assign({id:"cutoffRect"},{children:(0,i.jsx)("rect",{x:"0",y:"1",width:"160",height:"70"})}))}),(0,i.jsxs)("g",Object.assign({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",Object.assign({className:"c1"},{children:(0,i.jsx)("svg",Object.assign({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",Object.assign({className:"c2"},{children:(0,i.jsx)("svg",Object.assign({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",Object.assign({className:"center"},{children:(0,i.jsx)("svg",Object.assign({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"})}))}))]}))}},90715:(e,t,n)=>{n.d(t,{V:()=>i});function i(e,t){if(11!==t.length)throw Error("getFormationMatrix(): Insufficient players to form formation ".concat(e,"."));let n=[],i=["1",...e.split("-")].map(Number),s=[...t];return i.forEach(e=>{n.push(s.splice(0,e))}),n}}}]);