!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]="7eaf5ced-10d5-4148-a201-726b9e74ac2e",e._sentryDebugIdIdentifier="sentry-dbid-7eaf5ced-10d5-4148-a201-726b9e74ac2e")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9984],{151:(e,t,s)=>{s.d(t,{g:()=>l});let l=e=>e.branding.config},10292:(e,t,s)=>{s.d(t,{t:()=>l.t});var l=s(91407)},22037:(e,t,s)=>{s.d(t,{Ay:()=>y,Tf:()=>h});var l=s(6029),n=s(21377),a=s(89875),r=s(76356),i=s(99064),o=s(55729),d=s(90248),c=s(62859),u=s(55297),m=s(56602),g=s(40745),p=s(43750),x=s(62666);let h=[n.QCR.Cricket],b=[n.QCR.Football,n.QCR.IceHockey];function y(e){let{seasons:t,tournaments:s,selectedTournamentId:y,onTournamentSelect:j,selectedSeasonId:v,onSeasonSelect:f,showStatSwitcher:S,statItems:w,selectedStat:k,onSelectedStat:A,activePosition:C,setActivePosition:T,positions:_,types:I,activeType:R,setActiveType:E,showListHeader:z,selectedPlayerFilter:F,setSelectedPlayerFilter:P,playerFilterOptions:L,showPlayerFilter:B,forceSeasonPickerMenusBelow:Q,gender:H}=e,N=(0,o.useContext)(c.Ws),W=h.includes(N),M=!!(null==_?void 0:_.length)&&b.includes(N),O=!!(t&&s&&y&&v&&j&&f),V=!!(B&&void 0!==F&&L&&P);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.so,{direction:"column",gap:"sm",children:[(O||V)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.so,{px:"sm",pt:"sm",gap:"xs",children:[O&&(0,l.jsx)(g.A,{seasons:t,tournaments:s,selectedTournamentId:y,onTournamentSelect:j,selectedSeasonId:v,onSeasonSelect:f,forceMenusBelow:Q}),V&&(0,l.jsx)(i.ms,{items:L,renderItem:e=>e?(0,l.jsx)(d.A,{id:e.description}):"",initialSelectedItem:L[F],selectedItem:L.find(e=>e.id===F),onSelectedItemChange:e=>{let{selectedItem:t}=e;return t&&P(t.id)},selectedElement:L[F].name})]}),(0,l.jsx)(r.az,{w:"100%",borderBottom:"1px solid {colors.neutrals.nLv4}",hideFrom:"md"})]}),!!I&&I.length>1&&!!R&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.so,{align:"center",px:"sm",children:(0,l.jsx)(x.A,{types:I,selectedType:R,setSelectedType:E})}),(0,l.jsx)(r.az,{w:"100%",borderBottom:"1px solid {colors.neutrals.nLv4}",hideFrom:"md"})]}),S&&!!w.length&&(0,l.jsxs)(r.so,{align:"center",px:"sm",children:[(0,l.jsx)(i.ms,{items:w,renderItem:e=>(null==e?void 0:e.label)||"",initialSelectedItem:w[0],selectedItem:k,onSelectedItemChange:e=>{e.selectedItem&&(null==A||A(e.selectedItem))}}),(null==k?void 0:k.value)===n.iLq.Rating&&(0,l.jsx)(r.az,{ml:"sm",children:(0,l.jsx)(m.D,{type:m.D.type.AverageRatingPlayer,rating:10})})]}),M&&(0,l.jsx)(r.az,{hideFrom:"md",px:"sm",pb:"sm",children:(0,l.jsx)(u.B,{activePosition:C,setActivePosition:T,positions:_,gender:H})})]}),z&&W&&(0,l.jsxs)(r.so,{align:"center",justify:"space-between",pt:"sm",pl:"xs",pr:"sm",children:[(0,l.jsx)(a.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv3",mr:"lg",children:"#"}),(0,l.jsx)(a.EY,{textStyle:"table.medium",color:"neutrals.nLv3",children:(null==k?void 0:k.value)?(0,l.jsx)(p.Z,{sport:N,selectedStat:k.value}):null==k?void 0:k.label})]})]})}},23685:(e,t,s)=>{s.d(t,{Y:()=>c});var l=s(6029),n=s(21377),a=s(947),r=s(494),i=s(25540),o=s(49254),d=s(10794);let c=e=>{let{utId:t,location:s,bgImageUrl:c,isInverseDesktop:u}=e,m=(0,r.d4)(d.LQ),g=(0,a.A)();return m&&o.p.includes(m)&&t===n.G6l.NBA?(0,l.jsx)(i.Q,{banner:{copy:{action:g.formatMessage({id:"link_visit_nba"}),description:g.formatMessage({id:"banner_nba_league_pass_description"}),sectionTitle:g.formatMessage({id:"banner_nba_league_pass_title"})},type:n.$pL.LogoBanner,background:n.jae.EntityHeader,detailImageUrl:{ltr:"/static/images/nba-league-pass/league-pass-logo.svg",rtl:"/static/images/nba-league-pass/league-pass-logo.svg"},campaignName:"nba_league_pass",url:"https://nba.sjv.io/c/5441787/2176796/16284"},isInverseDesktop:u,bgImageUrl:c,location:s}):null}},23879:(e,t,s)=>{s.d(t,{A:()=>p});var l=s(6029),n=s(94446),a=s(89875),r=s(76356),i=s(82707),o=s(43750),d=s(24159),c=s(54917),u=s(94604),m=s(30971),g=s(22037);function p(e){var t;let{player:s,index:p,selectedStat:x,forceTeamName:h,sport:b}=e,{position:y}=s.player,j=-1!==g.Tf.indexOf(b);return(0,l.jsx)(i.uc,{player:s.player,sportSlug:b,children:(0,l.jsxs)(r.so,{h:"5xl",p:"lg",pl:p?"sm":"lg",align:"center",_hover:{bg:"surface.s2"},children:[p&&(0,l.jsx)(a.EY,{mr:"sm",textStyle:"body.small",textAlign:"center",w:"lg",children:p}),(0,l.jsx)(n.t,{id:s.player.id,name:s.player.name,size:40,mr:"lg"}),(0,l.jsxs)(r.az,{flexGrow:1,children:[(0,l.jsx)(a.EY,{children:(0,l.jsx)(d.c,{entity:s.player,short:j})}),(0,l.jsxs)(r.so,{align:"center",children:[s.team&&(0,l.jsx)(n.p,{size:16,id:s.team.id,name:s.team.name}),(0,l.jsx)(a.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:s.team?"xs":void 0,children:h&&s.team?(0,l.jsx)(u.Rm,{team:s.team}):y?(0,l.jsx)(c.F,{id:y,gender:null==(t=s.team)?void 0:t.gender}):""})]})]}),(0,l.jsx)(a.EY,{children:j?(0,l.jsx)(o.O,{sport:b,selectedStat:x,stat:s.statistics}):(0,l.jsx)(m.A,{sport:b,selectedStat:x,stat:s.statistics})})]})})}},31215:(e,t,s)=>{s.d(t,{A:()=>o});var l=s(6029),n=s(73045),a=s(89875),r=s(76356),i=s(90248);function o(e){let{tournamentName:t,tournamentId:s,uniqueTournamentId:o,hideLogo:d,isLive:c,mobileOnly:u}=e;return(0,l.jsx)(r.az,{hideBelow:u?"md":void 0,children:(0,l.jsxs)(r.so,{px:"sm",gap:"lg",justify:"space-between",align:"center",children:[(0,l.jsxs)(r.so,{gap:"lg",align:"center",children:[!d&&(o?(0,l.jsx)(n.e,{id:o,size:40}):(0,l.jsx)(n.l,{id:s,size:40})),(0,l.jsx)(a.EY,{textStyle:"display.large",lineClamp:2,children:t})]}),c&&(0,l.jsxs)(r.so,{align:"center",children:[(0,l.jsx)(r.az,{w:"sm",h:"sm",bg:"status.live",br:"50%",mr:"sm"}),(0,l.jsx)(a.EY,{lineHeight:"8px",textStyle:"body.small",color:"status.live",display:"block",children:(0,l.jsx)(i.A,{id:"live"})})]})]})})}},32427:(e,t,s)=>{s.d(t,{H:()=>r});var l=s(6029),n=s(76356),a=s(65834);let r=e=>{let{rows:t=a.z}=e;return(0,l.jsxs)(n.az,{children:[[...Array(t)].map((e,t)=>(0,l.jsx)(n.az,{h:"5xl"},"player-list-cl-".concat(t))),(0,l.jsx)(n.az,{h:"3xl"})," "]})}},34209:(e,t,s)=>{s.d(t,{A:()=>i});var l=s(21377),n=s(55729),a=s(45860),r=s(83471);let i=function(e,t,s,i){let o=e&&t&&i?l.V3t.seasonTypes(e,t,i):null,{data:d,error:c}=(0,a.Ay)(o),u=(0,r.o)(null==d?void 0:d.types),[m,g]=(0,n.useState)();return(0,n.useEffect)(()=>{!m&&u.length&&g(u[0])},[null==u?void 0:u.length,s]),{types:u,currentType:u.length?m:void 0,setCurrentType:g,isError:!!c||!o,isLoading:!!o&&!d&&!c}}},43750:(e,t,s)=>{s.d(t,{O:()=>j,Z:()=>y});var l=s(6029),n=s(21377),a=s(76356),r=s(98516);let i=(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"},d={stat:"battingInnings",label:"I"},c={stat:"runsScored",label:"R"},u={stat:"battingAverage",label:"AVG",class:"item extra-long",decimals:2},m={stat:"bowlingMatches",label:"M"},g={stat:"overs",label:"O",decimals:1,class:"item long"},p={stat:"wickets",label:"W"},x={stat:"bowlingAverage",label:"AVG",class:"item extra-long",decimals:2},h={[n.QCR.Cricket]:{runsScored:[{stat:"battingMatches",label:"M"},d,u,c],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,d,c,u],battingStrikeRate:[o,d,c,{stat:"battingStrikeRate",label:"SR",class:"item extra-long",decimals:2}],hundreds:[o,d,c,{stat:"hundreds",label:"100s",class:"item long"}],nineties:[o,d,c,{stat:"nineties",label:"90s"}],fifties:[o,d,c,{stat:"fifties",label:"50s"}],fours:[o,d,c,{stat:"fours",label:"4s"}],sixes:[o,d,c,{stat:"sixes",label:"6s"}],wickets:[m,g,p,x],bowlingAverage:[o,g,p,x],bowling:[{stat:"bowlingBestVsTeamName",label:"Vs",class:"item extra-long"},{stat:"bowling",label:"BBI",class:"item long"}],fiveWicketsHaul:[m,g,p,{stat:"fiveWicketsHaul",label:"5Wkts",class:"item extra-long"}],economy:[o,g,p,{stat:"economy",label:"ER",class:"item long"}],bowlingStrikeRate:[o,g,p,{stat:"bowlingStrikeRate",label:"SR",class:"item long",decimals:2}]}};function b(e){let{config:t,stats:s}=e,n=s[t.stat]||0;return void 0!==t.decimals?(0,l.jsx)(l.Fragment,{children:(0,r.M)(n,t.decimals)}):(0,l.jsx)(l.Fragment,{children:n})}function y(e){let t=h[e.sport][e.selectedStat];return t?(0,l.jsx)(i,{justify:"flex-end",align:"center",children:t.map(e=>(0,l.jsx)("div",{className:e.class||"item",children:e.label},e.stat))}):null}function j(e){let t=h[e.sport][e.selectedStat];return t?(0,l.jsx)(i,{children:t.map(t=>(0,l.jsx)("div",{className:t.class||"item",children:(0,l.jsx)(b,{stats:e.stat,config:t})},t.stat))}):null}},45152:(e,t,s)=>{s.d(t,{S:()=>v});var l=s(6029),n=s(65789),a=s(73045),r=s(89875),i=s(76356),o=s(90248),d=s(62859),c=s(54409),u=s(98449),m=s(9536),g=s(65078),p=s(82707),x=s(47530),h=s(10234);let b=e=>{let{event:t,hideTitle:s,hasCta:n=!1,onClick:d}=e;return(0,l.jsxs)(p.tj,{event:t,onClick:d,children:[(0,l.jsxs)(i.az,{br:{base:"sm",md:"lg"},bg:"surface.s2",_hover:{bg:"neutrals.nLv4"},style:{minHeight:102+32*!s},children:[!s&&(0,l.jsxs)(i.so,{align:"center",pt:"sm",px:"lg",children:[t.tournament.uniqueTournament?(0,l.jsx)(a.e,{id:t.tournament.uniqueTournament.id,size:24}):(0,l.jsx)(a.l,{id:t.tournament.id,size:24}),(0,l.jsxs)(r.Ym,{textStyle:"assistive.default",color:"neutrals.nLv3",ml:"sm",display:"block",children:[(0,l.jsx)(u.m,{slug:t.tournament.category.slug,name:t.tournament.category.name,uniqueTournament:t.tournament.uniqueTournament}),", ",(0,l.jsx)(h.J,{tournament:t.tournament}),t.roundInfo&&(0,l.jsxs)(l.Fragment,{children:[", ",(0,l.jsx)(x.DT,{round:t.roundInfo})]})]})]}),(0,l.jsx)(m.g,{disableFollow:!0,hasCountdown:!0,hideIncidents:!0,hideTimeouts:!0})]}),n&&(0,l.jsxs)(i.so,{justify:"center",py:"lg",px:"lg",cursor:"pointer",children:[(0,l.jsx)(r.EY,{textStyle:"display.small",color:"primary.default",children:(0,l.jsx)(o.A,{id:"see_all"})}),(0,l.jsx)(c.CCT,{fill:"primary.default",ml:"xs"})]})]})};function y(e){let{event:t,...s}=e,{event:n,leftTeam:a,rightTeam:r,leftScore:i,rightScore:o}=(0,g.mJ)(t.id,{shouldRefresh:!0,event:t});return t?(0,l.jsx)(d.y$.Provider,{value:{event:t,leftTeam:a,rightTeam:r,leftScore:i,rightScore:o},children:(0,l.jsx)(b,{event:{...t,...n},...s})}):null}let j=e=>(0,l.jsxs)(i.az,{br:"lg",bg:"surface.s2",minH:e.hideTitle?"[134px]":"11xl",children:[(0,l.jsx)(i.az,{h:"[134px]"}),e.showCta&&(0,l.jsx)(i.az,{h:"2xl"})]});function v(e){let{titleId:t="featured",titleValues:s,hideEventTitle:a,showCta:r,ignoreCardLayout:i,isLoading:o,events:d,onEventClick:c,children:u}=e,m=d.filter(e=>!!e);if(!m.length&&!o)return null;let g=(0,l.jsx)(l.Fragment,{children:m.length?m.map(e=>(0,l.jsx)(y,{hideTitle:a,hasCta:r,event:e,onClick:()=>null==c?void 0:c(e)},e.id)):(0,l.jsx)(j,{hideTitle:a,showCta:r})});return i?(0,l.jsxs)(l.Fragment,{children:[g,u]}):(0,l.jsxs)(n.Zp,{children:[(0,l.jsx)(n.Zp.Header,{titleId:t,values:s,as:"h3"}),(0,l.jsxs)(n.BU,{children:[g,u]})]})}},45546:(e,t,s)=>{s.d(t,{UW:()=>a,b0:()=>l,jt:()=>n});let l=e=>{let t=[],s=e.match(/\d{4}/g)||e.match(/\d{2}/g);return null==s||s.forEach(e=>{let s=+e;2===e.length&&(s=70>+e?+"20".concat(e):+"19".concat(e)),t.push(isNaN(s)?0:s)}),t.length?t:[0]},n=(e,t)=>l(t.year)[0]-l(e.year)[0],a=e=>{let t=[];for(let s=0,l=e.tournamentSeasons.length;se.id===n.id);if(!a){let e=t.push(n);a=t[e-1]}a.seasons=a.seasons||{},a.tournaments=a.tournaments||{},l.seasons.forEach(e=>{(null==a?void 0:a.seasons[e.id])?a.tournaments[e.id]=[...a.tournaments[e.id],l.tournament]:(a.seasons[e.id]=e,a.tournaments[e.id]=[l.tournament])})}return t}},46171:(e,t,s)=>{s.d(t,{A:()=>a});var l=s(21377),n=s(45860);let a=function(e){let{seasonId:t,teamId:s,uTournamentId:a,type:r=l.Vw_.overall,position:i}=e,o=s?l.cWY.topPlayers.bind(null,s,a,t):i?l.V3t.topPlayers.bind(null,a,t,r,i):l.V3t.topPlayers.bind(null,a,t),{data:d,error:c,isLoading:u}=(0,n.Ay)(a&&t?o(r):null);return{topPlayers:(null==d?void 0:d.topPlayers)||{},isLoading:u,isError:c}}},55297:(e,t,s)=>{s.d(t,{B:()=>x});var l=s(6029),n=s(99064),a=s(78383),r=s.n(a),i=s(55729),o=s(90248),d=s(41735),c=s(54917),u=s(27892),m=s(62859);let g=JSON.parse('{"ice-hockey":{"forward":"stats.forwards","defenseman":"hockey_defensemen","goalie":"legend_hockey_goalies"}}'),p=(0,d.default)(n.so).withConfig({componentId:"NoScrollbarFlex"}).withConfig({componentId:"sc-ac04d736-0"})(["&::-webkit-scrollbar{display:none;}&{-ms-overflow-style:none;scrollbar-width:none;}"]);function x(e){let{activePosition:t,setActivePosition:s=r(),positions:a,gender:d}=e,x=(0,i.useContext)(m.Ws);return(0,l.jsxs)(p,{gap:"sm",style:{overflowX:"scroll"},children:[(0,l.jsx)(n.vu,{isActive:!t,onClick:()=>s(void 0),children:(0,l.jsx)(o.A,{id:"allPositions"})}),a.filter(Boolean).map(e=>{let a=(0,u.O)(g,e,x);return(0,l.jsx)(n.vu,{isActive:t===e,onClick:()=>s(e),children:(0,l.jsx)(c.F,{id:a,gender:d})},e)})]})}},61090:(e,t,s)=>{s.d(t,{m:()=>g});var l=s(6029),n=s(21377),a=s(76356),r=s(494),i=s(26471),o=s(51372),d=s(31112),c=s(77988),u=s(61836),m=s(10794);let g=e=>{let{entity:t,id:s,branding:g,location:p}=e,x=(0,r.d4)(m.LQ),h=(0,i.A)(()=>{p&&(0,u.N9)({id:s,location:p,provider:g.brand.slug,type:"banner"})},{deps:[s,g.brand.slug,p]});return(0,l.jsx)(d.w,{branding:g,type:"banner",entityId:s,location:p,children:(0,l.jsx)(a.so,{justify:"center",children:(0,l.jsxs)(a.az,{ref:h,position:"relative",maxW:"[700px]",flexGrow:1,br:{base:"lg",md:"xl"},overflow:"hidden",children:[(0,l.jsx)(o.O,{branding:g,noLink:!0}),(0,l.jsx)(a.az,{h:"9xl",style:{background:"url(".concat(n.UpI.brandingBanner(g.brand.id,t,s),")"),backgroundSize:"auto 100%",backgroundRepeat:"no-repeat",backgroundPosition:"center"}}),g.brand.showBettingAge&&(0,l.jsx)(a.so,{h:"xl",w:"xl",br:"50%",bg:"[rgba(255, 255, 255, 0.1)]",justify:"center",align:"center",position:"absolute",bottom:"sm",right:"sm",children:(0,l.jsxs)(a.az,{textAlign:"center",h:"md",color:"onColor.primary",textStyle:"assistive.micro",children:[(0,c.g)(x),"+"]})})]})})})}},62666:(e,t,s)=>{s.d(t,{A:()=>r});var l=s(6029),n=s(99064),a=s(90248);function r(e){let{types:t,selectedType:s,setSelectedType:r}=e;return(null==t?void 0:t.length)&&s?(0,l.jsx)(n.tU,{variant:"secondary",value:s,onChange:e=>r?r(e):void 0,children:t.map(e=>(0,l.jsx)(n.tU.Tab,{tabKey:e,children:(0,l.jsx)(a.A,{id:e})},e))}):null}},65834:(e,t,s)=>{s.d(t,{A:()=>n,z:()=>l});let l=5,n=[{id:0,name:"50%",description:"at_least_50"},{id:1,name:"All",description:"all_players"}]},73045:(e,t,s)=>{s.d(t,{e:()=>n.e,l:()=>l.l});var l=s(37721),n=s(33480)},77988:(e,t,s)=>{s.d(t,{A:()=>p,g:()=>g});var l=s(6029),n=s(89875),a=s(90248),r=s(494),i=s(10794);let o={AU:"www.gamblinghelponline.org.au",BG:"nss-bg.org/hi-kodeks",GB:"www.begambleaware.org",NL:"hands24x7.nl"},d={DE:"18+ | Erlaubt (Whitelist) | Suchtrisiko | www.buwei.de",NL:"Wat kost gokken jou? Stop op tijd. 18+",CA:"19+. Gambling can be addictive, please play responsibly.
Eligible iGames conducted and managed by iGO are only available to those physically present in the Province of Ontario.",US:"21+. Gambling Problem?
Call 1-800-GAMBLER",SE:"18+. st\xf6dlinjen.se. Spela ansvarsfullt.",DK:"18+ | Regler og vilk\xe5r g\xe6lder | Spil ansvarligt | Selvudeluk via ROFUS.nu | StopSpillet.dk",TR:"İddaa oranları anlık olarak değişiklik g\xf6sterebilmektedir."},c={BE:21,GR:21,CA:19};function u(e){let{countryOddsProvider:t}=e;return(null==t?void 0:t.oddsMayDiffer)?(0,l.jsxs)("span",{children:[(0,l.jsx)("br",{}),(0,l.jsx)(a.A,{id:"disclaimer_odds_may_differ"})]}):null}function m(){let e=(0,r.d4)(i.LQ),t=e&&o[e];return t?(0,l.jsxs)("span",{children:[", ",(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})]}):null}let g=e=>e&&c[e.toUpperCase()]?c[e.toUpperCase()]:18;function p(e){let t,{provider:s}=e,o=(0,r.d4)(i.LQ),c=(0,r.d4)(i.zj);return o&&c?t=d["".concat(o,"-").concat(c)]||d[o]:o&&(t=d[o]),(0,l.jsxs)(n.EY,{display:"block",textStyle:"body.small",textAlign:"center",color:"neutrals.nLv3",pr:"sm",children:[t?(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:t}}):(0,l.jsx)(a.A,{id:"gamble_responsibly",values:{age:g(o)}}),(0,l.jsx)(m,{}),(0,l.jsx)(u,{countryOddsProvider:s})]})}},78177:(e,t,s)=>{s.d(t,{O:()=>k,s:()=>C});var l=s(6029),n=s(21377),a=s(55729),r=s(62859),i=s(75751),o=s(95816),d=s.n(o),c=s(65789),u=s(23727),m=s(22037),g=s(23879),p=s(32427),x=s(76356);let h=[n.QCR.Basketball,n.QCR.AmericanFootball,n.QCR.IceHockey];function b(e){let{sport:t,gender:s}=e;return(0,l.jsxs)(c.Zp,{children:[(0,l.jsx)(c.Zp.Header,{titleId:"top_players",values:{gender:s}}),(0,l.jsx)(x.az,{style:{height:h.includes(t)?84:72},bg:"surface.s2",br:"sm",m:"sm"}),(0,l.jsx)(p.H,{rows:5})]})}var y=s(65834),j=s(52854);function v(e){let{topPlayers:t,isTournament:s,types:i,activePosition:o,setActivePosition:x,activeType:h,setActiveType:v,seasons:f,selectedSeasonId:S,onSeasonSelect:w,tournaments:k,selectedTournamentId:A,onTournamentSelect:C,showPlayerFilter:T=!1,gender:_}=e,I=(0,a.useContext)(r.Ws),[R,E]=(0,a.useState)(!1),[z,F]=(0,a.useState)(y.A[0].id),{statItems:P,selectedStat:L,setSelectedStat:B}=(0,j.k)(Object.keys(t),I),Q=1,H=s&&I===n.QCR.Handball;(0,a.useEffect)(()=>{E(!1)},[null==L?void 0:L.value]);let N=Array.from(new Set((t[null==L?void 0:L.value]||[]).map(e=>e.player.position))).reverse(),W=(t&&t[null==L?void 0:L.value]||[]).filter(e=>o?e.player.position===o:!!z||e.playedEnough),M=d()(W)||!L,O=W.length>y.z,V=P.filter(e=>t[e.value].some(e=>e.playedEnough));return((0,a.useEffect)(()=>{var e;V.length&&M&&L&&L.label!==(null==(e=V[0])?void 0:e.label)&&B(V[0])},[V.length,L,M]),M||!W.length)?(0,l.jsx)(b,{sport:I,gender:_}):(0,l.jsxs)(c.Zp,{children:[(0,l.jsx)(c.Zp.Header,{titleId:"top_players",values:{gender:_}}),M?(0,l.jsx)(p.H,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(m.Ay,{showStatSwitcher:!0,statItems:V,selectedStat:L,onSelectedStat:B,positions:N,activePosition:o,setActivePosition:x,types:i,activeType:h,setActiveType:v,seasons:f,selectedSeasonId:S,onSeasonSelect:w,tournaments:k,selectedTournamentId:A,onTournamentSelect:C,selectedPlayerFilter:z,setSelectedPlayerFilter:F,playerFilterOptions:y.A,showPlayerFilter:T,gender:_,showListHeader:!0}),W.slice(0,y.z).map(e=>(0,l.jsx)(g.A,{sport:I,player:e,index:Q++,selectedStat:L.value,forceTeamName:H},"".concat(L.value,"-").concat(e.player.id))),(0,l.jsx)(l.Fragment,{children:R&&W.slice(y.z).map(e=>(0,l.jsx)(g.A,{player:e,index:Q++,sport:I,selectedStat:L.value,forceTeamName:H},"".concat(L.value,"-").concat(e.player.id)))})]}),(0,l.jsx)(c.Zp.Footer,{ctaParams:O?{messageId:R?"show_less":"show_more",onClick:()=>E(e=>!e),icon:R?u.X.Up:u.X.Down}:void 0})]})}var f=s(80249),S=s(46171),w=s(83471);let k=function(e){let{teamId:t,gender:s}=e,o=n.cWY.seasons(t),d=(0,a.useContext)(r.Ws),[c,u]=(0,a.useState)(),[m,g]=(0,a.useState)(),[p,x]=(0,a.useState)(),[h,y]=(0,a.useState)(),[j,k,{seasonsData:A,seasonsLoadError:C,isSeasonLoading:T}]=(0,f.D)({route:o,selectedTournamentId:c,selectedSeasonId:m,setSelectedTournament:u,setSelectedSeason:g}),{topPlayers:_,isError:I}=(0,S.A)({teamId:t,seasonId:m,uTournamentId:c,type:h}),R=Object.keys(_),E="".concat(t,"-").concat(R.toString());if((0,a.useEffect)(()=>{c&&m&&-1!==c&&y(null==A?void 0:A.typesMap[c][m][0])},[c,m,d]),C||I||-1===c)return null;if(!c||!m||T)return(0,l.jsx)(b,{sport:d,gender:s});let z=(0,w.o)(null==A?void 0:A.typesMap[c][m]);return(0,l.jsx)(i.t,{tag:"TeamTopPlayers",children:(0,l.jsx)(v,{topPlayers:_,seasons:k,gender:s,tournaments:j,selectedSeasonId:m,selectedTournamentId:c,onSeasonSelect:g,onTournamentSelect:u,activePosition:p,setActivePosition:x,types:z,activeType:h,setActiveType:y,showPlayerFilter:!0},E)})};var A=s(34209);let C=function(e){let{uTournamentId:t,seasonId:s,gender:n}=e,o=(0,a.useContext)(r.Ws),[d,c]=(0,a.useState)(),{types:u,currentType:m,setCurrentType:g,isError:p,isLoading:x}=(0,A.A)(t,s,o,"player"),{topPlayers:h,isError:b}=(0,S.A)(x?{}:{uTournamentId:t,seasonId:s,type:m,position:d}),y=Object.keys(h),j="".concat(t,"-").concat(y.toString()),f=(0,a.useCallback)(e=>{c(null!=e?e:"all")},[]);return b||p?null:(0,l.jsx)(i.t,{tag:"TournamentTopPlayers",children:(0,l.jsx)(v,{topPlayers:h,types:u,activeType:m,setActiveType:g,activePosition:d,setActivePosition:f,gender:n},j)})}},80249:(e,t,s)=>{s.d(t,{D:()=>i});var l=s(21377),n=s(55729),a=s(45860),r=s(62859);function i(e){let{route:t,selectedTournamentId:s,selectedSeasonId:i,setSelectedTournament:o,setSelectedSeason:d}=e,{data:c,error:u,isLoading:m}=(0,a.Ay)(t),g=(0,n.useContext)(r.Ws)===l.QCR.Tennis;return(0,n.useMemo)(()=>{if(!c)return[null,null,{seasonsData:c,seasonsLoadError:u}];let e=c.uniqueTournamentSeasons,t=e.map(e=>({id:e.uniqueTournament.id,name:e.uniqueTournament.name,ranking:e.uniqueTournament.tennisPoints,year:e.seasons[0].year})),l=t&&[...new Set(t.map(e=>e.year))].map(e=>({id:Number(e),year:e}));s||o(l&&g?-1:e[0].uniqueTournament.id),i||d(l&&g?l[0].id:e[0].seasons[0].id);let n=0;if(c){let t=e.find(e=>e.uniqueTournament.id===s);if(t){let s=e.indexOf(t);s>-1&&d(e[n=s].seasons[0].id)}}return[t,e[n].seasons,{seasonsData:c,seasonsLoadError:u,isSeasonLoading:m}]},[c,s,u])}},82554:(e,t,s)=>{s.d(t,{w:()=>a});var l=s(21377);let n=[l.QCR.AmericanFootball,l.QCR.Basketball,l.QCR.Cricket,l.QCR.Football,l.QCR.Handball,l.QCR.IceHockey,l.QCR.Minifootball];function a(e,t){return(!t||e!==l.QCR.AmericanFootball)&&n.includes(e)}s(73959)},83471:(e,t,s)=>{s.d(t,{o:()=>a});var l=s(21377);let n=[l.Vw_.overall,l.Vw_.regularSeason,l.Vw_.playoffs];function a(e){if(!e)return[];let t=e.filter(e=>n.includes(e));return t.length>1||1===t.length&&t[0]!==l.Vw_.overall?t:[]}},91407:(e,t,s)=>{s.d(t,{t:()=>i});var l=s(64082),n=s(6029),a=s(21377),r=s(99064);let i=e=>{var{id:t,name:s,size:i=56,style:o,className:d,grayscale:c,isFantasy:u,placeholder:m="/static/images/placeholders/player.svg"}=e,g=(0,l.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let p=g.w||g.width||i,x=g.h||g.height||i;return(0,n.jsx)(r._V,Object.assign({fallback:(0,n.jsx)(r._V,{style:{borderRadius:"50%"},w:p,h:x,src:m,alt:s}),src:t?a.qvj.image(t,u):"",alt:s,w:p,h:x,br:"50%",border:"onSurface.nLv4",style:o,className:d,isGrayscale:c},g))}},94446:(e,t,s)=>{s.d(t,{p:()=>n.p,t:()=>l.t});var l=s(91407),n=s(91603)}}]);