!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7c807261-62d3-4a1c-831d-439e94956666",e._sentryDebugIdIdentifier="sentry-dbid-7c807261-62d3-4a1c-831d-439e94956666")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6295],{19666:(e,r,t)=>{t.d(r,{$M:()=>a,VX:()=>o,dR:()=>i,qL:()=>n,tR:()=>d});var s=t(55729);let n=(0,s.createContext)(null),o=n.Provider,a=()=>{let e=(0,s.useContext)(n);if(!e)throw Error();return e},l=(0,s.createContext)(void 0),i=l.Provider,d=()=>(0,s.useContext)(l)},26295:(e,r,t)=>{t.r(r),t.d(r,{ESportsDetailsContainer:()=>g,default:()=>I});var s=t(6029),n=t(21377),o=t(37071),a=t(76356),l=t(55729),i=t(90248),d=t(45860),c=t(48683),u=t(62859),p=t(63263);let x=(0,a.I4)("div",{base:{w:"lg",h:"lg",br:"sm"},variants:{isFilled:{true:{bg:"secondary.default"},false:{bg:"neutrals.nLv5",border:"1px solid {colors.neutrals.nLv4}"}}}}),f=e=>{let{isFilled:r}=e;return(0,s.jsx)(a.az,{px:"xs",py:"2xs",children:(0,s.jsx)(a.az,{w:"xl",h:"xl",br:"md",p:"xs",bg:"neutrals.nLv5",children:(0,s.jsx)(x,{isFilled:r})})})};function j(e){let{dots:r,dotsColored:t=0,isReversed:n}=e,o=[];for(let e=0;e(r,t)=>{var s,n,o,a;return(null!=(o=null==(s=e[r.position])?void 0:s.sortIndex)?o:100)-(null!=(a=null==(n=e[t.position])?void 0:n.sortIndex)?a:100)},v=e=>{var r;let{player:t,isInverted:n,positionIcons:l}=e,i="".concat(t.firstName||""," ").concat(t.lastName||""),d=t.position?null==(r=l[t.position])?void 0:r.icon:null;return(0,s.jsxs)(a.so,{py:"sm",px:"lg",direction:n?"row-reverse":"row",gap:"lg",children:[(0,s.jsxs)(a.az,{h:"3xl",w:"3xl",position:"relative",children:[(0,s.jsx)(y.t,{id:t.id,name:i,size:40}),d&&(0,s.jsx)(a.so,{justify:"center",align:"center",position:"absolute",p:"2xs",bg:"surface.s0",br:"50%",left:n?"-sm":void 0,right:n?void 0:"-sm",bottom:"-2xs",children:(0,s.jsx)(d,{w:16,h:16,fill:"onSurface.nLv1"})})]}),(0,s.jsxs)(a.BJ,{maxW:"2/3",pt:"xs",gap:"0",children:[(0,s.jsx)(o.EY,{w:"100%",textStyle:"body.large",textAlign:n?"end":"start",truncate:!0,children:(0,s.jsx)(m.c,{entity:t})}),(0,s.jsx)(o.EY,{w:"100%",textStyle:"body.medium",textAlign:n?"end":"start",color:"neutrals.nLv3",truncate:!0,children:i})]})]})};function w(e){let{eventId:r,eSportsType:t,hidePlayers:o}=e,{data:l}=(0,d.Ay)(o?null:n.bnp.lineups(r));if(!(!o&&l&&l.home.players.length&&l.away.players.length))return null;let i=t===n.$2C.Dota?p.Js:p.Ew,u=l.home.players.sort(b(i)),x=l.away.players.sort(b(i));return(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(c.Zp.Header,{titleId:"players",values:{gender:n.YT8.Male}}),(0,s.jsxs)(a.so,{pb:"sm",children:[(0,s.jsx)(a.az,{w:"1/2",children:u.map(e=>(0,s.jsx)(v,{player:e.player,positionIcons:i},e.player.id))}),(0,s.jsx)(a.az,{w:"1/2",children:x.map(e=>(0,s.jsx)(v,{player:e.player,positionIcons:i,isInverted:!0},e.player.id))})]})]})}function g(e){let{event:r,hidePlayers:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{eventId:r.id}),(0,s.jsx)(w,{eventId:r.id,eSportsType:r.tournament.category.name,hidePlayers:t})]})}let I=g},63263:(e,r,t)=>{t.d(r,{Js:()=>m,$l:()=>h,pK:()=>f,Fk:()=>x,Zb:()=>b,n6:()=>p,K$:()=>v,Ew:()=>y,ql:()=>j});var s=t(6029),n=t(21377),o=t(93338),a=t(54409);let l=()=>"https://www.sofascore.com/i/b25bc6c68958448cca031c644eee864e",i=()=>"https://www.sofascore.com/i/e53a59ad37fec87c07765b595f4ad79c",d=()=>"https://www.sofascore.com/i/705e36b11b4831faf07264be0bdbf3ee";var c=t(19666),u=t(82640);let p=e=>e.reduce((e,r)=>(r.winnerCode===n.Jfo.Left&&(e.homeWins+=1),r.winnerCode===n.Jfo.Right&&(e.awayWins+=1),e),{homeWins:0,awayWins:0}),x=(e,r)=>{switch(r){case n.$2C.Dota:return i();case n.$2C.LoL:return l();case n.$2C.CounterStrike:return e.map?n.fQV.mapImage(e.map.id):d();default:return""}},f=e=>{let r=[];return Object.keys(u.Au).forEach(t=>{let s=e[u.Au[t]];for(let e=0;e{let e,r=(0,c.tR)(),t=(0,c.$M)();if(void 0===r)return[];let s=!v(r);switch(t){case n.$2C.CounterStrike:e=[o.S.var("colors.eSports.cs.t"),o.S.var("colors.eSports.cs.ct")];break;case n.$2C.LoL:e=[o.S.var("colors.eSports.lol.red"),o.S.var("colors.eSports.lol.blue")];break;case n.$2C.Dota:e=[o.S.var("colors.eSports.dota2.dire"),o.S.var("colors.eSports.dota2.radiant")];break;default:return[]}return s?e.reverse():e},h=e=>{switch(e){case u.Au.Cloud:return e=>(0,s.jsx)(a.p1j,{icon:"drake-cloud",...e});case u.Au.Elder:return e=>(0,s.jsx)(a.p1j,{icon:"drake-elder",...e});case u.Au.Infernal:return e=>(0,s.jsx)(a.p1j,{icon:"drake-infernal",...e});case u.Au.Mountain:return e=>(0,s.jsx)(a.p1j,{icon:"drake-mountain",...e});case u.Au.Ocean:return e=>(0,s.jsx)(a.p1j,{icon:"drake-ocean",...e});default:return null}},y={[u.Mx.TopLane]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"role-top",...e}),sortIndex:1},[u.Mx.Jungle]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"role-jun",...e}),sortIndex:2},[u.Mx.MidLane]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"role-mid",...e}),sortIndex:3},[u.Mx.BotLane]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"role-adc",...e}),sortIndex:4},[u.Mx.Support]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"role-sup",...e}),sortIndex:5}},m={[u.XF.HardCarry]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"dota-hard-carry",...e}),sortIndex:1},[u.XF.MidLane]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"dota-mid-lane",...e}),sortIndex:2},[u.XF.OffLand]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"dota-soft-support",...e}),sortIndex:3},[u.XF.SoftSupport]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"dota-soft-support",...e}),sortIndex:4},[u.XF.HardSupport]:{icon:e=>(0,s.jsx)(a.p1j,{icon:"dota-hard-support",...e}),sortIndex:5}},b=(e,r)=>r?"".concat("number"==typeof e.kills?e.kills:"-","/").concat("number"==typeof e.assists?e.assists:"-","/").concat("number"==typeof e.deaths?e.deaths:"-"):"".concat("number"==typeof e.kills?e.kills:"-","/").concat("number"==typeof e.deaths?e.deaths:"-","/").concat("number"==typeof e.assists?e.assists:"-");function v(e){return!e||[n.U6N.Red,n.U6N.Dire,n.U6N.Terrorist].includes(e)}},82640:(e,r,t)=>{t.d(r,{Au:()=>s,Mx:()=>o,XF:()=>a,zz:()=>n});var s=function(e){return e.Cloud="cloudDrakeKills",e.Elder="elderDrakeKills",e.Infernal="infernalDrakeKills",e.Mountain="mountainDrakeKills",e.Ocean="oceanDrakeKills",e}({}),n=function(e){return e.Terrorists="T",e.CounterTerrorists="CT",e}({}),o=function(e){return e.TopLane="top",e.Jungle="jun",e.MidLane="mid",e.BotLane="adc",e.Support="sup",e}({}),a=function(e){return e.HardCarry="hc",e.MidLane="mid",e.OffLand="off",e.SoftSupport="ss",e.HardSupport="hs",e}({})}}]);