!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a0135b4e-6600-4b80-a5fa-f6e43b1e54fb",e._sentryDebugIdIdentifier="sentry-dbid-a0135b4e-6600-4b80-a5fa-f6e43b1e54fb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53805],{18205:(e,n,t)=>{t.d(n,{e:()=>d});var r=t(6029),s=t(18612),a=t(76356),i=t(55729);function l(e){let{rows:n,rowHeight:t}=e;return(0,r.jsx)(s.D,{animate:!0,height:n*t,uniqueKey:"generic-table-cl",children:Array(n).fill(null).map((e,n)=>{let s=n*t;return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("circle",{cx:20,cy:s+t/2,r:12}),(0,r.jsx)("rect",{x:40,y:s+8,width:"calc(100% - 48px)",height:t-16})]},s)})})}function d(e){let{rows:n=12}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.az,{hideBelow:"md",children:(0,r.jsx)(l,{rowHeight:32,rows:n})}),(0,r.jsx)(a.az,{hideFrom:"md",children:(0,r.jsx)(l,{rowHeight:48,rows:n})})]})}},50177:(e,n,t)=>{t.d(n,{Y:()=>i});var r=t(46787),s=t(22375),a=t(45860);let i=function(e,n){let t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=t&&void 0!==n,{data:l,error:d,isLoading:o}=(0,a.Ay)(i?r.V3t.scheduledEvents(e,n):null);return{events:(null==l?void 0:l.events.filter(e=>(0,s.yk)(e.startTimestamp,Date.parse("".concat(n,"T12:00")))))||[],error:d,isLoading:o}}},53805:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var r=t(6029),s=t(46787),a=t(74610),i=t(64327),l=t(69909),d=t(76356),o=t(46222),u=t(54123);function c(e){let{standings:n,branding:t}=e;return(0,r.jsx)(o.WC,{variant:"square-desktop",children:(0,r.jsx)(d.so,{direction:"column",gap:{base:"sm",md:"md"},children:n.map(e=>(0,r.jsx)(d.az,{md:{borderBottom:"1px solid {colors.neutrals.nLv4}",_last:{borderBottom:"none"}},children:(0,r.jsx)(u.A,{entityType:"unique-tournament",tableId:e.id,branding:t})},e.id))})})}var h=t(22375),x=t(55729),m=t(50865),p=t(38185),g=t(50177),b=t(53853);let f=[s.G6l.Euro,s.G6l.CopaAmerica,s.G6l.ClubWorldCup];function j(e){let{uniqueTournamentId:n,seasonId:t,selectedSeason:d,isNarrowLayout:o,selectedDate:j,hasPerformanceGraphFeature:v,noBranding:y}=e,{relevantStandings:w,standingsErr:T,tournamentId:I,selectedStandingsTable:z,setSelectedStandingsTable:_,displayType:k,setDisplayType:C,isStandingsTableEmpty:D,setIsStandingsTableEmpty:A,hasGroups:H,hasDropdown:P,showHorizontalStandings:q,hasHomeAwayStandings:E,branding:G}=function(e,n,t,r){let{initialStandings:a,initialHasHomeAway:i}=(0,x.useContext)(m.O),l=f.includes(e),{events:d,isLoading:o}=(0,g.Y)(e,null!=t?t:(0,h.UG)(new Date),l),u=l?function(e){let n=null==e?void 0:e.filter(e=>e.status.type===s.XUj.InProgress),t=null==e?void 0:e.filter(e=>e.status.type===s.XUj.NotStarted&&e.hasEventPlayerStatistics);return[...((null==n?void 0:n.length)>0?n:t.length>0?t:e).map(e=>e.tournament.id).reduce((e,n)=>{var t;return e.set(n,(null!=(t=e.get(n))?t:0)+1),e},new Map)].reduce((e,n)=>n[1]>e[1]?n:e,[void 0,0])[0]}(d):void 0,{relevantStandings:c,standingsErr:j,selectedStandingsTable:v,setSelectedStandingsTable:y,displayType:w,setDisplayType:T,isStandingsTableEmpty:I,setIsStandingsTableEmpty:z,hasHomeAwayStandings:_,hasGroupsData:k}=(0,b.M)({entityType:"unique-tournament",entityId:e,seasonId:n,isLoadingTournamentIdData:o,selectedTournamentId:u,initialStandings:a,swrOptions:{keepPreviousData:!0}}),[C,D]=(0,x.useMemo)(()=>{if(l)return[!1,!1];{let e,n=!1;for(let t=0,r=c.length;t1;return[n&&k,t]}},[c,l,k]);return{relevantStandings:c,standingsErr:j,tournamentId:u,selectedStandingsTable:v,setSelectedStandingsTable:y,displayType:w,setDisplayType:T,isStandingsTableEmpty:I,setIsStandingsTableEmpty:z,hasGroups:C,hasDropdown:D,showHorizontalStandings:l,hasHomeAwayStandings:null!=_?_:i,branding:(0,p.b)(r?void 0:e,"standings")}}(n,t,j,y);return T?null:(null==w?void 0:w.length)&&void 0!==z&&void 0!==E?(0,r.jsx)(a.t,{tag:"StandingsContainer",children:(0,r.jsx)(i.P,{value:{standings:w,tournament:void 0,tournamentId:I,uniqueTournamentId:n,seasonId:t,selectedSeason:d,selectedStandingsTable:z,setSelectedStandingsTable:_,selectedTeamId:void 0,homeTeamId:void 0,awayTeamId:void 0,title:{hideTitleLogo:void 0,isMobileOnlyTitle:void 0},display:{displayType:k,setDisplayType:C,displayTypeOptions:[...s.ur4],isNarrowLayout:!!o},hasHomeAwayStandings:E,hasPerformanceGraphFeature:!!v,isStandingsTableEmpty:D,setIsStandingsTableEmpty:A},children:H?(0,r.jsx)(c,{standings:w,branding:G}):(0,r.jsx)(u.A,{entityType:"unique-tournament",tableId:z.id,branding:G,showHorizontalStandings:q,hasTablePicker:P,hideTitle:!0})})}):(0,r.jsx)(l.d,{hideTitle:!0,isNarrowLayout:o,branding:G})}},69909:(e,n,t)=>{t.d(n,{d:()=>c});var r=t(6029),s=t(10174),a=t(76356),i=t(55729),l=t(46222),d=t(18970),o=t(89721),u=t(18205);let c=e=>{var n;let{isTeamStandings:t,hideTitle:c,isNarrowLayout:h,numberOfRows:x=20,branding:m}=e,{event:p}=(0,i.useContext)(d.y$),g=null==p||null==(n=p.tournament.uniqueTournament)?void 0:n.hasPerformanceGraphFeature;return(0,r.jsxs)(a.az,{children:[!h&&(0,r.jsx)(o.U,{branding:m}),t&&(0,r.jsxs)(a.so,{hideBelow:"md",gap:"lg",bg:"surface.s1",p:"sm",elevation:{mdDown:"2"},children:[(0,r.jsx)(a.az,{w:"[200px]",h:"[34px]",bg:"surface.s2",br:"sm"}),(0,r.jsx)(a.az,{w:"[84px]",h:"[34px]",bg:"surface.s2",br:"sm"})]}),(0,r.jsxs)(a.so,{direction:"column",gap:"sm",children:[(0,r.jsxs)(l.Zp,{children:[(0,r.jsxs)(a.so,{direction:"column",gap:"sm",px:"sm",pt:t?void 0:"sm",pb:"sm",children:[(0,r.jsx)(a.az,{h:"[34px]",pt:t?void 0:"sm"}),!c&&(0,r.jsxs)(a.so,{align:"center",gap:"lg",children:[(0,r.jsx)(s._V,{width:"3xl",height:"3xl",src:"/static/images/placeholders/tournament.svg",alt:"Tournament placeholder"}),(0,r.jsx)(a.az,{w:"[150px]",h:"xl",bg:"surface.s2",br:"sm"})]})]}),(0,r.jsx)(a.az,{pt:"sm",children:(0,r.jsx)(u.e,{rows:x})}),(0,r.jsx)(a.az,{p:"sm",children:(0,r.jsx)(a.az,{h:"[150px]",bg:"surface.s2",br:"lg"})})]}),g&&(0,r.jsxs)(l.Zp,{children:[(0,r.jsx)(l.Zp.Header,{titleId:"standings_tracker_title"}),(0,r.jsx)(a.az,{h:"[542px]"})]})]})]})}},89721:(e,n,t)=>{t.d(n,{U:()=>l});var r=t(6029),s=t(10174),a=t(37549),i=t(53255);let l=e=>{let{branding:n,location:t,entityId:l,...d}=e,{isDesktop:o}=(0,s.$c)();return o&&n?(0,r.jsx)(a.A.Header,{...d,variant:"left-aligned",actionComponent:(0,r.jsx)(i.O,{minW:"[140px]",px:"sm",br:"xs",branding:n,location:t,entityId:l})}):(0,r.jsx)(a.A.Header,{...d})}}}]);