!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]="a6cf6801-bf52-4767-9e81-7316255027df",e._sentryDebugIdIdentifier="sentry-dbid-a6cf6801-bf52-4767-9e81-7316255027df")}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),i=t(76356),a=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)(a.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)(i.az,{hideBelow:"md",children:(0,r.jsx)(l,{rowHeight:32,rows:n})}),(0,r.jsx)(i.az,{hideFrom:"md",children:(0,r.jsx)(l,{rowHeight:48,rows:n})})]})}},50177:(e,n,t)=>{t.d(n,{Y:()=>a});var r=t(19501),s=t(22375),i=t(45860);let a=function(e,n){let t=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=t&&void 0!==n,{data:l,error:d,isLoading:o}=(0,i.Ay)(a?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:()=>v});var r=t(6029),s=t(19501),i=t(74610),a=t(64327),l=t(69909),d=t(76356),o=t(46222),u=t(10400);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),f=t(53853);let j=[s.G6l.Euro,s.G6l.CopaAmerica,s.G6l.ClubWorldCup];function v(e){let{uniqueTournamentId:n,seasonId:t,selectedSeason:d,isNarrowLayout:o,selectedDate:v,hasPerformanceGraphFeature:b,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:i,initialHasHomeAway:a}=(0,x.useContext)(m.O),l=j.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:v,selectedStandingsTable:b,setSelectedStandingsTable:y,displayType:w,setDisplayType:T,isStandingsTableEmpty:I,setIsStandingsTableEmpty:z,hasHomeAwayStandings:_,hasGroupsData:k}=(0,f.M)({entityType:"unique-tournament",entityId:e,seasonId:n,isLoadingTournamentIdData:o,selectedTournamentId:u,initialStandings:i,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:v,tournamentId:u,selectedStandingsTable:b,setSelectedStandingsTable:y,displayType:w,setDisplayType:T,isStandingsTableEmpty:I,setIsStandingsTableEmpty:z,hasGroups:C,hasDropdown:D,showHorizontalStandings:l,hasHomeAwayStandings:null!=_?_:a,branding:(0,p.b)(r?void 0:e,"standings")}}(n,t,v,y);return T?null:(null==w?void 0:w.length)&&void 0!==z&&void 0!==E?(0,r.jsx)(i.t,{tag:"StandingsContainer",children:(0,r.jsx)(a.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:!!b,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(54529),i=t(76356),a=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,a.useContext)(d.y$),g=null==p||null==(n=p.tournament.uniqueTournament)?void 0:n.hasPerformanceGraphFeature;return(0,r.jsxs)(i.az,{children:[!h&&(0,r.jsx)(o.U,{branding:m}),t&&(0,r.jsxs)(i.so,{hideBelow:"md",gap:"lg",bg:"surface.s1",p:"sm",elevation:{mdDown:"2"},children:[(0,r.jsx)(i.az,{w:"[200px]",h:"[34px]",bg:"surface.s2",br:"sm"}),(0,r.jsx)(i.az,{w:"[84px]",h:"[34px]",bg:"surface.s2",br:"sm"})]}),(0,r.jsxs)(i.so,{direction:"column",gap:"sm",children:[(0,r.jsxs)(l.Zp,{children:[(0,r.jsxs)(i.so,{direction:"column",gap:"sm",px:"sm",pt:t?void 0:"sm",pb:"sm",children:[(0,r.jsx)(i.az,{h:"[34px]",pt:t?void 0:"sm"}),!c&&(0,r.jsxs)(i.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)(i.az,{w:"[150px]",h:"xl",bg:"surface.s2",br:"sm"})]})]}),(0,r.jsx)(i.az,{pt:"sm",children:(0,r.jsx)(u.e,{rows:x})}),(0,r.jsx)(i.az,{p:"sm",children:(0,r.jsx)(i.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)(i.az,{h:"[542px]"})]})]})]})}},89721:(e,n,t)=>{t.d(n,{U:()=>l});var r=t(6029),s=t(54529),i=t(37549),a=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)(i.A.Header,{...d,variant:"left-aligned",actionComponent:(0,r.jsx)(a.O,{minW:"[140px]",px:"sm",br:"xs",branding:n,location:t,entityId:l})}):(0,r.jsx)(i.A.Header,{...d})}}}]);