!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]="eb42684b-d1ff-48e7-89c7-a4cff33556c0",e._sentryDebugIdIdentifier="sentry-dbid-eb42684b-d1ff-48e7-89c7-a4cff33556c0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2362],{4696:(e,t,l)=>{l.d(t,{M:()=>s});var s=function(e){return e.All="all",e.Total="total",e.PerGame="perGame",e}({})},10292:(e,t,l)=>{l.d(t,{t:()=>s.t});var s=l(91407)},19770:(e,t,l)=>{l.d(t,{Y:()=>f});var s=l(6029),n=l(21377),a=l(76356),i=l(95816),r=l.n(i),o=l(55729),c=l(48683),d=l(23727),m=l(62859),u=l(22037),p=l(23879),x=l(32427),g=l(73953),y=l(65834),h=l(52854);function f(e){let{topPlayers:t,gender:l,isTournament:i,activePosition:f,setActivePosition:v,types:b,activeType:j,setActiveType:S,seasons:w,selectedSeasonId:I,onSeasonSelect:A,tournaments:T,selectedTournamentId:k,onTournamentSelect:C,showPlayerFilter:_=!1,hideTitle:P}=e,R=(0,o.useContext)(m.Ws),[M,E]=(0,o.useState)(!1),[z,F]=(0,o.useState)(y.Ap[0].id),{statItems:B,selectedStat:D,setSelectedStat:W}=(0,h.k)(Object.keys(t),R),N=1,H=i&&R===n.QCR.Handball;(0,o.useEffect)(()=>{E(!1)},[null==D?void 0:D.value]);let V=Array.from(new Set((t[null==D?void 0:D.value]||[]).map(e=>e.player.position))).reverse(),L=(t&&t[null==D?void 0:D.value]||[]).filter(e=>f?e.player.position===f:!!z||e.playedEnough),O=r()(L)||!D,Q=L.length>y.z$,Y=B.filter(e=>t[e.value].some(e=>e.playedEnough));return((0,o.useEffect)(()=>{var e;Y.length&&O&&D&&D.label!==(null==(e=Y[0])?void 0:e.label)&&W(Y[0])},[Y.length,D,O]),O||!L.length)?(0,s.jsx)(g.x,{sport:R,gender:l}):(0,s.jsxs)(c.Zp,{children:[!P&&(0,s.jsx)(c.Zp.Header,{titleId:"top_players",values:{gender:l}}),O?(0,s.jsx)(x.H,{}):(0,s.jsxs)(a.az,{children:[(0,s.jsx)(u.Ay,{showStatSwitcher:!0,statItems:Y,selectedStat:D,onSelectedStat:W,positions:V,activePosition:f,setActivePosition:v,types:b,activeType:j,setActiveType:S,seasons:w,selectedSeasonId:I,onSeasonSelect:A,tournaments:T,selectedTournamentId:k,onTournamentSelect:C,selectedPlayerFilter:z,setSelectedPlayerFilter:F,playerFilterOptions:y.Ap,showPlayerFilter:_,gender:l,showListHeader:!0}),(0,s.jsxs)(a.az,{children:[L.slice(0,y.z$).map(e=>(0,s.jsx)(p.A,{sport:R,player:e,index:N++,selectedStat:D.value,forceTeamName:H},"".concat(D.value,"-").concat(e.player.id))),M&&L.slice(y.z$).map(e=>(0,s.jsx)(p.A,{player:e,index:N++,sport:R,selectedStat:D.value,forceTeamName:H},"".concat(D.value,"-").concat(e.player.id)))]})]}),(0,s.jsx)(c.Zp.Footer,{ctaParams:Q?{messageId:M?"show_less":"show_more",onClick:()=>E(e=>!e),icon:M?d.X.Up:d.X.Down}:void 0})]})}},22037:(e,t,l)=>{l.d(t,{Ay:()=>f,Tf:()=>y});var s=l(6029),n=l(21377),a=l(28349),i=l(76356),r=l(55729),o=l(90248),c=l(62859),d=l(55297),m=l(56602),u=l(40745),p=l(65834),x=l(43750),g=l(62666);let y=[n.QCR.Cricket],h=[n.QCR.Football,n.QCR.IceHockey];function f(e){let{seasons:t,tournaments:l,selectedTournamentId:f,onTournamentSelect:v,selectedSeasonId:b,onSeasonSelect:j,showStatSwitcher:S,statItems:w,selectedStat:I,onSelectedStat:A,activePosition:T,setActivePosition:k,positions:C,types:_,activeType:P,setActiveType:R,showListHeader:M,selectedPlayerFilter:E,setSelectedPlayerFilter:z,playerFilterOptions:F,showPlayerFilter:B,forceSeasonPickerMenusBelow:D,gender:W}=e,N=(0,r.useContext)(c.Ws),H=y.includes(N),V=!!(null==C?void 0:C.length)&&h.includes(N),L=!!(t&&l&&f&&b&&v&&j),O=!!(B&&void 0!==E&&F&&z&&!p.kh.includes(N));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.so,{direction:"column",gap:"sm",py:"sm",children:[(L||O)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.so,{px:"sm",gap:"xs",children:[L&&(0,s.jsx)(u.A,{seasons:t,tournaments:l,selectedTournamentId:f,onTournamentSelect:v,selectedSeasonId:b,onSeasonSelect:j,forceMenusBelow:D}),O&&!!(null==F?void 0:F.length)&&(0,s.jsx)(a.ms,{label:(0,s.jsx)(o.A,{id:"top_players"}),items:F,renderItem:e=>e?(0,s.jsx)(o.A,{id:e.description}):"",initialSelectedItem:F[E],selectedItem:F.find(e=>e.id===E),onSelectedItemChange:e=>{let{selectedItem:t}=e;return t&&z(t.id)}})]}),(0,s.jsx)(i.az,{w:"100%",borderBottom:"1px solid {colors.neutrals.nLv4}",hideFrom:"md"})]}),!!_&&_.length>1&&!!P&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.so,{align:"center",px:"sm",children:(0,s.jsx)(g.A,{types:_,selectedType:P,setSelectedType:R})}),(0,s.jsx)(i.az,{w:"100%",borderBottom:"1px solid {colors.neutrals.nLv4}",hideFrom:"md"})]}),S&&!!w.length&&I&&(0,s.jsxs)(i.so,{align:"center",px:"sm",children:[(0,s.jsx)(a.ms,{label:(0,s.jsx)(o.A,{id:"top_players"}),items:w,renderItem:e=>(null==e?void 0:e.label)||"",initialSelectedItem:w[0],selectedItem:I,onSelectedItemChange:e=>{e.selectedItem&&(null==A||A(e.selectedItem))}}),(null==I?void 0:I.value)===n.iLq.Rating&&(0,s.jsx)(i.az,{ml:"sm",children:(0,s.jsx)(m.D,{type:m.D.type.AverageRatingPlayer,rating:10})})]}),V&&(0,s.jsx)(i.az,{hideFrom:"md",px:"sm",children:(0,s.jsx)(d.B,{activePosition:T,setActivePosition:k,positions:C,gender:W})})]}),M&&H&&(0,s.jsxs)(i.so,{align:"center",justify:"space-between",pt:"sm",pl:"xs",pr:"sm",children:[(0,s.jsx)(a.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv3",mr:"lg",children:"#"}),(0,s.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(null==I?void 0:I.value)?(0,s.jsx)(x.Z,{sport:N,selectedStat:I.value}):null==I?void 0:I.label})]})]})}},23879:(e,t,l)=>{l.d(t,{A:()=>x});var s=l(6029),n=l(94446),a=l(28349),i=l(76356),r=l(13266),o=l(43750),c=l(24159),d=l(54917),m=l(94604),u=l(30971),p=l(22037);function x(e){var t;let{player:l,index:x,selectedStat:g,forceTeamName:y,sport:h}=e,{position:f}=l.player,v=-1!==p.Tf.indexOf(h);return(0,s.jsx)(r.uc,{player:l.player,sportSlug:h,children:(0,s.jsxs)(i.so,{h:"5xl",p:"lg",pl:x?"sm":"lg",align:"center",_hover:{bg:"surface.s2"},children:[x&&(0,s.jsx)(a.EY,{mr:"sm",textStyle:"body.small",textAlign:"center",w:"lg",children:x}),(0,s.jsx)(n.t,{id:l.player.id,name:l.player.name,size:40,mr:"lg"}),(0,s.jsxs)(i.az,{flexGrow:1,children:[(0,s.jsx)(a.EY,{children:(0,s.jsx)(c.c,{entity:l.player,short:v})}),(0,s.jsxs)(i.so,{align:"center",children:[l.team&&(0,s.jsx)(n.p,{size:16,id:l.team.id,name:l.team.name}),(0,s.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:l.team?"xs":void 0,children:y&&l.team?(0,s.jsx)(m.Rm,{team:l.team}):f?(0,s.jsx)(d.F,{id:f,gender:null==(t=l.team)?void 0:t.gender}):""})]})]}),(0,s.jsx)(a.EY,{children:v?(0,s.jsx)(o.O,{sport:h,selectedStat:g,stat:l.statistics}):(0,s.jsx)(u.A,{sport:h,selectedStat:g,stat:l.statistics})})]})})}},32427:(e,t,l)=>{l.d(t,{H:()=>i});var s=l(6029),n=l(76356),a=l(65834);let i=e=>{let{rows:t=a.z$}=e;return(0,s.jsxs)(n.az,{children:[[...Array(t)].map((e,t)=>(0,s.jsx)(n.az,{h:"5xl"},"player-list-cl-".concat(t))),(0,s.jsx)(n.az,{h:"3xl"})," "]})}},33443:(e,t,l)=>{l.d(t,{O:()=>p,s:()=>g});var s=l(6029),n=l(21377),a=l(55729),i=l(62859),r=l(75751),o=l(19770),c=l(73953),d=l(80249),m=l(46171),u=l(38709);let p=function(e){let{teamId:t,gender:l}=e,p=n.cWY.seasons(t),x=(0,a.useContext)(i.Ws),[g,y]=(0,a.useState)(),[h,f]=(0,a.useState)(),[v,b]=(0,a.useState)(),[j,S]=(0,a.useState)(),[w,I,{seasonsData:A,seasonsLoadError:T,isSeasonLoading:k}]=(0,d.D)({route:p,selectedTournamentId:g,selectedSeasonId:h,setSelectedTournament:y,setSelectedSeason:f}),{topPlayers:C,isError:_}=(0,m.A)({teamId:t,seasonId:h,uTournamentId:g,type:j}),P=Object.keys(C),R="".concat(t,"-").concat(P.toString());if((0,a.useEffect)(()=>{g&&h&&-1!==g&&S(null==A?void 0:A.typesMap[g][h][0])},[g,h,x]),T||_||-1===g)return null;if(!g||!h||k)return(0,s.jsx)(c.x,{sport:x,gender:l});let M=(0,u.o)(null==A?void 0:A.typesMap[g][h]);return(0,s.jsx)(r.t,{tag:"TeamTopPlayers",children:(0,s.jsx)(o.Y,{topPlayers:C,seasons:I,gender:l,tournaments:w,selectedSeasonId:h,selectedTournamentId:g,onSeasonSelect:f,onTournamentSelect:y,activePosition:v,setActivePosition:b,types:M,activeType:j,setActiveType:S,showPlayerFilter:!0},R)})};var x=l(34209);let g=function(e){let{uTournamentId:t,seasonId:l,gender:n,overrideSeasonType:c}=e,d=(0,a.useContext)(i.Ws),[u,p]=(0,a.useState)(),{types:g,currentType:y,setCurrentType:h,isError:f,isLoading:v}=(0,x.A)(t,l,d,"player",c),{topPlayers:b,isError:j}=(0,m.A)(v?{}:{uTournamentId:t,seasonId:l,type:y,position:u}),S=Object.keys(b),w="".concat(t,"-").concat(S.toString()),I=(0,a.useCallback)(e=>{p(null!=e?e:"all")},[]);return j||f?null:(0,s.jsx)(r.t,{tag:"TournamentTopPlayers",children:(0,s.jsx)(o.Y,{topPlayers:b,types:c?[]:g,activeType:y,setActiveType:h,activePosition:u,setActivePosition:I,gender:n},w)})}},36326:(e,t,l)=>{l.d(t,{FV:()=>n,L3:()=>s,R3:()=>c,TH:()=>a,b6:()=>r,ie:()=>i,pu:()=>o});let s=void 0,n=-1,a="all";var i=function(e){return e[e.AllClubCompetitions=0]="AllClubCompetitions",e[e.DomesticLeagues=1]="DomesticLeagues",e[e.DomesticCups=2]="DomesticCups",e[e.InternationalCompetitions=3]="InternationalCompetitions",e[e.NationalTeamCompetitions=4]="NationalTeamCompetitions",e}({});let r=[{id:0,name:"football_all_club_competitions"},{id:1,name:"football_domestic_leagues"},{id:2,name:"football_domestic_cups"},{id:3,name:"football_international_competitions"},{id:4,name:"football_national_competitions"}],o=[{id:"overall",name:"total"},{id:"home",name:"home"},{id:"away",name:"away"}],c={id:-1,name:"all_teams"}},40745:(e,t,l)=>{l.d(t,{A:()=>I});var s=l(6029),n=l(59721),a=l(21377),i=l(28349),r=l(76356),o=l(12364),c=l.n(o),d=l(55729),m=l(90248),u=l(947),p=l(36326),x=l(61836),g=l(52695),y=l(62859),h=l(4696);let f=[h.M.PerGame,h.M.Total],v=e=>{let{maxW:t,children:l}=e;return(0,s.jsx)(i.Ym,{lineHeight:1,truncate:!!t,style:{maxWidth:t},children:l})},b=e=>{switch(e){case 2e3:return"tennisTournaments.p2000";case 1e3:return"tennisTournaments.p1000";case 500:return"tennisTournaments.p500";case 250:return"tennisTournaments.p250";default:return}},j=(e,t,l,a)=>{if(!e)return null;let o=l>=40||!t,c=o&&t?l:void 0;return(0,s.jsxs)(r.so,{justify:"space-between",align:"center",w:"100%",gap:"lg",children:[(0,s.jsxs)(r.so,{align:"center",gap:"lg",children:[(0,s.jsx)(n.e,{id:e.id,size:24},e.id),o&&(0,s.jsx)(v,{maxW:c,children:(0,s.jsx)(g.O,{uniqueTournament:e})})]}),a&&e.ranking&&!t&&(0,s.jsx)(r.az,{w:"4xl",br:"md",style:{backgroundColor:b(e.ranking)},children:(0,s.jsx)(i.EY,{textStyle:"assistive.default",color:"onColor.primary",lineHeight:1,textAlign:"center",display:"block",truncate:!0,children:e.ranking})})]})},S=e=>e?(0,s.jsx)(v,{children:null==e?void 0:e.year}):null,w=(e,t,l)=>{let n=e===a.QCR.Volleyball,i={[h.M.PerGame]:l?"per_game_stats_short":n?"per_game":"per_match",[h.M.Total]:l?"total_stats_short":"total",[h.M.All]:"basic.all"};return(0,s.jsx)(v,{children:(0,s.jsx)(m.A,{id:t?i[t]:" "})})};function I(e){let t=(0,d.useRef)(null),[l,n]=(0,d.useState)(0),{mediaBreakpoint:o}=(0,i.$c)(),m=(0,d.useContext)(y.Ws),g=m===a.QCR.Tennis,v=m===a.QCR.Volleyball,b=(0,u.A)(),I=[...new Set(e.tournaments.map(e=>e.year))].map(e=>({id:Number(e),year:e})),A=g&&e.hasSeasonalStats,T=e.tournaments.map(e=>({id:A?p.FV:e.id,name:A?b.formatMessage({id:"tennis_all_tournaments"}):e.name,year:e.year,ranking:e.ranking})),k=T[0],C=e.selectedTournamentId==p.FV,_=C?I:e.seasons,P=C?I[0]:e.seasons[0],R=_.find(t=>t.id==e.selectedSeasonId),M=l-4-140-88-118*!!e.showSeasonDisplay,E=e.hasDefaultDisplay?h.M.All:h.M.PerGame,z=v?[h.M.Total,h.M.PerGame]:e.hasDefaultDisplay?[h.M.All,...f]:f,F=c()(()=>{var e,s;let a=null==t||null==(s=t.current)||null==(e=s.getBoundingClientRect())?void 0:e.width;a&&a!==l&&n(a)},100);(0,d.useEffect)(()=>(addEventListener("resize",F),()=>{removeEventListener("resize",F)}),[]),(0,d.useEffect)(()=>{F()},[!!(null==t?void 0:t.current)]);let B=t=>{if(!(t===h.M.All?"all":t===h.M.Total?"total":t===h.M.PerGame?"per_game":void 0)||!e.displayEventParam)return};return(0,s.jsxs)(r.so,{ref:t,gap:"xs",children:[(0,s.jsx)(i.ms,{label:"tournaments",items:T,initialSelectedItem:k,selectedItem:T.find(t=>t.id===e.selectedTournamentId),renderItem:(t,l)=>j(t,!!l,M,e.showTournamentRanking),onSelectedItemChange:t=>{var l;e.onTournamentSelect(Number(null==(l=t.selectedItem)?void 0:l.id)),g&&(0,x.ke)({action:"click",location:"team_statistics",type:"tournament_filter"})},forceMenuBelow:e.forceMenusBelow}),(0,s.jsx)(i.ms,{label:"seasons",items:_,initialSelectedItem:P,selectedItem:R,renderItem:e=>S(e),onSelectedItemChange:t=>{var l;e.onSeasonSelect(Number(null==(l=t.selectedItem)?void 0:l.id)),g&&(0,x.ke)({action:"click",location:"team_statistics",type:"year_filter"})},forceMenuBelow:e.forceMenusBelow,alignRight:"xxs"===o&&M>=40}),e.showSeasonDisplay&&(0,s.jsx)(i.ms,{label:"displays",items:z.map(e=>({type:e})),renderItem:(e,t)=>w(m,null==e?void 0:e.type,t),initialSelectedItem:{type:E},selectedItem:{type:e.selectedDisplay||E},onSelectedItemChange:t=>{var l,s,n;B(null==(l=t.selectedItem)?void 0:l.type),null==(n=e.onDisplaySelect)||n.call(e,(null==(s=t.selectedItem)?void 0:s.type)||E)},forceMenuBelow:e.forceMenusBelow,alignRight:!0})]})}},43750:(e,t,l)=>{l.d(t,{O:()=>v,Z:()=>f});var s=l(6029),n=l(21377),a=l(76356),i=l(98516);let r=(0,a.I4)(a.so,{base:{"& > .item + .item":{ml:"xs"},"& > .item":{minWidth:"[28px]",textAlign:"center"},"& > .item.long":{minWidth:"[36px]"},"& > .item.extra-long":{minWidth:"3xl"}}}),o={stat:"matches",label:"M"},c={stat:"battingInnings",label:"I"},d={stat:"runsScored",label:"R"},m={stat:"battingAverage",label:"AVG",class:"item extra-long",decimals:2},u={stat:"bowlingMatches",label:"M"},p={stat:"overs",label:"O",decimals:1,class:"item long"},x={stat:"wickets",label:"W"},g={stat:"bowlingAverage",label:"AVG",class:"item extra-long",decimals:2},y={[n.QCR.Cricket]:{runsScored:[{stat:"battingMatches",label:"M"},c,m,d],highestScore:[{stat:"highestScoreBattingBalls",label:"Balls",class:"item long"},{stat:"highestScoreBattingStrikeRate",label:"SR",class:"item extra-long",decimals:2},{stat:"highestScoreVsTeamName",label:"Vs",class:"item extra-long"},{stat:"highestScore",label:"HS",class:"item extra-long"}],battingAverage:[o,c,d,m],battingStrikeRate:[o,c,d,{stat:"battingStrikeRate",label:"SR",class:"item extra-long",decimals:2}],hundreds:[o,c,d,{stat:"hundreds",label:"100s",class:"item long"}],nineties:[o,c,d,{stat:"nineties",label:"90s"}],fifties:[o,c,d,{stat:"fifties",label:"50s"}],fours:[o,c,d,{stat:"fours",label:"4s"}],sixes:[o,c,d,{stat:"sixes",label:"6s"}],wickets:[u,p,x,g],bowlingAverage:[o,p,x,g],bowling:[{stat:"bowlingBestVsTeamName",label:"Vs",class:"item extra-long"},{stat:"bowling",label:"BBI",class:"item long"}],fiveWicketsHaul:[u,p,x,{stat:"fiveWicketsHaul",label:"5Wkts",class:"item extra-long"}],economy:[o,p,x,{stat:"economy",label:"ER",class:"item long"}],bowlingStrikeRate:[o,p,x,{stat:"bowlingStrikeRate",label:"SR",class:"item long",decimals:2}]}};function h(e){let{config:t,stats:l}=e,n=l[t.stat]||0;return void 0!==t.decimals?(0,s.jsx)(s.Fragment,{children:(0,i.M)(n,t.decimals)}):(0,s.jsx)(s.Fragment,{children:n})}function f(e){let t=y[e.sport][e.selectedStat];return t?(0,s.jsx)(r,{justify:"flex-end",align:"center",children:t.map(e=>(0,s.jsx)("div",{className:e.class||"item",children:e.label},e.stat))}):null}function v(e){let t=y[e.sport][e.selectedStat];return t?(0,s.jsx)(r,{children:t.map(t=>(0,s.jsx)("div",{className:t.class||"item",children:(0,s.jsx)(h,{stats:e.stat,config:t})},t.stat))}):null}},46171:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(21377),n=l(45860);let a=function(e){let{seasonId:t,teamId:l,uTournamentId:a,type:i=s.Vw_.overall,position:r}=e,o=l?s.cWY.topPlayers.bind(null,l,a,t):r?s.V3t.topPlayers.bind(null,a,t,i,r):s.V3t.topPlayers.bind(null,a,t),{data:c,error:d,isLoading:m}=(0,n.Ay)(a&&t?o(i):null);return{topPlayers:(null==c?void 0:c.topPlayers)||{},isLoading:m,isError:d}}},55297:(e,t,l)=>{l.d(t,{B:()=>g});var s=l(6029),n=l(99064),a=l(78383),i=l.n(a),r=l(55729),o=l(90248),c=l(41735),d=l(54917),m=l(27892),u=l(62859);let p=JSON.parse('{"ice-hockey":{"forward":"stats.forwards","defenseman":"hockey_defensemen","goalie":"legend_hockey_goalies"}}'),x=(0,c.default)(n.so).withConfig({componentId:"NoScrollbarFlex"}).withConfig({componentId:"sc-ac04d736-0"})(["&::-webkit-scrollbar{display:none;}&{-ms-overflow-style:none;scrollbar-width:none;}"]);function g(e){let{activePosition:t,setActivePosition:l=i(),positions:a,gender:c}=e,g=(0,r.useContext)(u.Ws);return(0,s.jsxs)(x,{gap:"sm",style:{overflowX:"scroll"},children:[(0,s.jsx)(n.vu,{isActive:!t,onClick:()=>l(void 0),children:(0,s.jsx)(o.A,{id:"allPositions"})}),a.filter(Boolean).map(e=>{let a=(0,m.O)(p,e,g);return(0,s.jsx)(n.vu,{isActive:t===e,onClick:()=>l(e),children:(0,s.jsx)(d.F,{id:a,gender:c})},e)})]})}},65834:(e,t,l)=>{l.d(t,{Ap:()=>a,kh:()=>i,z$:()=>n});var s=l(21377);let n=5,a=[{id:0,name:"50%",description:"at_least_50"},{id:1,name:"All",description:"all_players"}],i=[s.QCR.Volleyball]},73953:(e,t,l)=>{l.d(t,{x:()=>c});var s=l(6029),n=l(21377),a=l(76356),i=l(48683),r=l(32427);let o=[n.QCR.Basketball,n.QCR.AmericanFootball,n.QCR.IceHockey];function c(e){let{sport:t,gender:l}=e;return(0,s.jsxs)(i.Zp,{children:[(0,s.jsx)(i.Zp.Header,{titleId:"top_players",values:{gender:l}}),(0,s.jsx)(a.az,{style:{height:o.includes(t)?84:72},bg:"surface.s2",br:"sm",m:"sm"}),(0,s.jsx)(r.H,{rows:5})]})}},80249:(e,t,l)=>{l.d(t,{D:()=>r});var s=l(21377),n=l(55729),a=l(45860),i=l(62859);function r(e){let{route:t,selectedTournamentId:l,selectedSeasonId:r,setSelectedTournament:o,setSelectedSeason:c}=e,{data:d,error:m,isLoading:u}=(0,a.Ay)(t),p=(0,n.useContext)(i.Ws)===s.QCR.Tennis;return(0,n.useMemo)(()=>{if(!d)return[null,null,{seasonsData:d,seasonsLoadError:m}];let e=d.uniqueTournamentSeasons,t=e.map(e=>({id:e.uniqueTournament.id,name:e.uniqueTournament.name,ranking:e.uniqueTournament.tennisPoints,year:e.seasons[0].year})),s=t&&[...new Set(t.map(e=>e.year))].map(e=>({id:Number(e),year:e}));l||o(s&&p?-1:e[0].uniqueTournament.id),r||c(s&&p?s[0].id:e[0].seasons[0].id);let n=0;if(d){let t=e.find(e=>e.uniqueTournament.id===l);if(t){let l=e.indexOf(t);l>-1&&c(e[n=l].seasons[0].id)}}return[t,e[n].seasons,{seasonsData:d,seasonsLoadError:m,isSeasonLoading:u}]},[d,l,m])}},94446:(e,t,l)=>{l.d(t,{p:()=>n.p,t:()=>s.t});var s=l(91407),n=l(91603)}}]);