(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1373],{32767:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/stats/advanced",function(){return a(32043)}])},32043:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return C},default:function(){return j}});var s=a(85893),n=a(67294),i=a(84753),l=a.n(i),r=a(37113),o=a(65984),d=a(39484),c=a(38878),u=a(95429),h=a(28008),p=a(24920),g=a(63991),f=a(79274),m=a(95448),v=a(25519),w=a(95015),y=a(66352),S=a(66520),D=a(97442),k=a(10842),O=a(44778),x=a(34670),C=!0;function j(e){var t;let{allMaps:a,allPlayers:i,allSeasons:C,allTeams:j}=e,T=(0,o.rZ)(),_=(0,d.X)(),[M,{open:P,close:E}]=(0,r.q)(!1),b=((null===(t=l()(C,e=>e.id))||void 0===t?void 0:t.id)||m.m).toString(),[L,N]=(0,n.useState)(),[Z]=(0,f.v1)("orderBy",f.Oi),[A,B]=(0,f.v1)("matchTypes",(0,f.S$)(f.Oi).withDefault([]).withOptions({clearOnDefault:!0})),[F,U]=(0,f.v1)("timePeriod",f.Oi.withDefault(b).withOptions({clearOnDefault:!0})),[$,X]=(0,f.v1)("events",(0,f.S$)(f.U).withDefault([]).withOptions({clearOnDefault:!0})),[z,G]=(0,f.v1)("maps",(0,f.S$)(f.U).withDefault([]).withOptions({clearOnDefault:!0})),[H,I]=(0,f.v1)("modes",(0,f.S$)(f.U).withDefault([]).withOptions({clearOnDefault:!0})),[W,q]=(0,f.v1)("teams",(0,f.S$)(f.U).withDefault([]).withOptions({clearOnDefault:!0})),Q=a.filter(e=>{var t;return(null===(t=e.season_id)||void 0===t?void 0:t.toString())===F}),R=(0,x.filterTeamsForSeasonAndEvents)(j,$,F);return(0,n.useEffect)(()=>{"All time"!==F&&(0,y.QW)(parseInt(F,10)).then(e=>{(null==e?void 0:e.data)&&N(e.data.filter(e=>3===e.division_id))})},[F]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.Z,{title:"Call of Duty League Advanced Stats | Breaking Point",description:"Explore the most comprehensive Call of Duty League stats on Breaking Point. Delve into detailed player performance, team rankings and advanced analytics designed to give fans, players, and analysts unprecedented insights into the game. Whether you're strategizing for fantasy COD League, researching your favorite teams, or just love diving deep into data, our stats page is your ultimate destination for all things COD League. Get up-to-the-minute updates and dive into the heart of COD esports with Breaking Point.",keywords:"Call of Duty League, COD League Stats, Player Performance, Team Rankings, COD Analytics, Esports Data, Fantasy COD League, Breaking Point",imageUrl:"/images/stats/Stats Darkmode.png",url:"https://www.breakingpoint.gg/stats/advanced"}),(0,s.jsx)(c.Z,{style:{backgroundColor:"dark"===_.colorScheme?T.colors.dark[8]:T.colors.gray[1]},children:(0,s.jsxs)(u.k,{direction:"column",gap:8,w:"100%",children:[(0,s.jsx)(v.Z,{buttonLinks:[{href:"/stats",text:"Players"},{href:"/stats/advanced",text:"Leaderboards"}]}),(0,s.jsxs)(u.k,{justify:"space-between",align:"end",wrap:"wrap",gap:16,children:[(0,s.jsx)(h.D,{mt:8,children:"Advanced Stats"}),(0,s.jsxs)(p.z,{color:"gray",variant:"light",style:{boxShadow:"0px 0px 5px 0px rgba(0,0,0,0.25)",color:"dark"===_.colorScheme?"white":"black"},w:128,ml:"auto",onClick:P,children:["Filters ",(0,s.jsx)(g.wHY,{})]})]}),(0,s.jsx)(D.Z,{opened:M,close:E,matchTypes:A,handleMatchTypeChange:B,timePeriod:F,allSeasons:C,handleTimePeriodChange:e=>{U(e),X([]),G([]),q(W.filter(t=>(0,x.filterTeamsForSeasonAndEvents)(j,[],e).some(e=>e.id===t)))},events:null!=L?L:[],selectedEvents:$,handleSelectedEventChange:X,maps:Q,selectedMaps:z,handleSelectedMapsChange:G,selectedModes:H,handleSelectedModesChange:I,teams:R,selectedTeams:W,handleSelectedTeamsChange:q}),(0,s.jsx)(k.Z,{matchTypes:A,selectedEvents:$,events:null!=L?L:[],timePeriod:F,allSeasons:C,selectedMaps:z,allMaps:a,selectedModes:H,modeNames:{1:"Hardpoint",2:"Search & Destroy",3:"Control"},teams:R,selectedTeams:W,open:P}),(0,s.jsx)(O.Z,{selectedModes:H,toggleSelectedMode:e=>{let t=[...H],a=t.indexOf(e);-1===a?t.push(e):t.splice(a,1),I(t)}}),(0,s.jsx)(u.k,{gap:8,justify:"left",wrap:"wrap",direction:"row",className:"dark"===_.colorScheme?"MantineTableDark":"MantineTableLight",children:(0,s.jsx)(w.Z,{matchTypes:A,timePeriod:F,selectedMaps:z,selectedModes:H,orderBy:null!=Z?Z:void 0,allMaps:a,allPlayers:i,eventIds:$,selectedTeams:W})})]})})]})}}},function(e){e.O(0,[1959,2331,2247,8660,4670,258,2888,9774,179],function(){return e(e.s=32767)}),_N_E=e.O()}]);