"use strict";(self.webpackChunkleaderboard=self.webpackChunkleaderboard||[]).push([[4],{2004:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var n=r(5439),o=r.n(n),i=r(9411),a=r.n(i),s=r(5694),l=r(8416),c=r(8030),d=r(1277),m=r(2639),u=r(2597),f=r(2522),p=r(2058),b=r(1174),h=r(5893),g=a().div.withConfig({componentId:"sc-i5hxkp-0"})(["display:flex;flex-direction:column;position:relative;top:",";width:",";height:",";padding:",";",";",";background:",";z-index:11;"],p.tq?"0":"9em",p.tq?"100%":"37.5em",p.tq?"100%":"35em",p.tq?"6.5em calc(env(safe-area-inset-right) + env(safe-area-inset-left) + 1em) 2.375em":"5.5em 4.563em 3.313em",p.tq?"":"border: 1px solid transparent",p.tq?"":"border-radius: 1em",p.tq?"#2b2b2b":"linear-gradient(#2b2b2b, #2b2b2b) padding-box,\n\tlinear-gradient(rgba(var(--white), 0.08), rgba(var(--white), 0.36)) border-box"),y=a()(u.AH).withConfig({componentId:"sc-i5hxkp-1"})(["top:","em;width:","em;height:","em;background-image:url(",");"],p.tq?"0.875":"-3",p.tq?"14.063":"18",p.tq?"5.1875":"7",p.xn),w={rowList:{height:p.tq?"calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom) + 17.5em))":"19em"},rowListRules:{height:p.tq?"calc(100vh - 13em)":"24em",direction:"fa"===p.TG?"rtl":"ltr"}};function v(e){var t=e.leaderboardId,r=e.leaderboardPopupRef,n=(0,s.useSelector)(f.selectCurrentLeaderBoard),o=(0,s.useSelector)(f.selectResources).strLeaderBoard,i=(0,s.useDispatch)();(0,l.useEffect)((function(){var e={leaderboardId:t,culture:p.TG,timeZoneOffset:(new Date).getTimezoneOffset()};(0,b.w)(e)}),[]);var a=(0,l.useCallback)((function(){i(d.actions.closePopup({name:c.BASE_POPUP_NAMES.LEADER_BOARD})),i(d.actions.clearCurrentLeaderBoard())}),[]);return(0,h.jsx)(u.W2,{ref:r,children:(0,h.jsxs)(g,{children:[(0,h.jsx)(y,{children:(0,h.jsx)("span",{children:o})}),(0,h.jsx)(u.X1,{onClick:a}),(0,h.jsx)(m.Z,{data:n,styles:w})]})})}v.defaultProps={leaderboardId:0,leaderboardPopupRef:null},v.propTypes={leaderboardId:o().number,leaderboardPopupRef:o().object};const x=(0,l.memo)(v)},2639:(e,t,r)=>{r.d(t,{Z:()=>B});var n=r(8416),o=r(5694),i=r(9411),a=r.n(i),s=r(5439),l=r.n(s),c=r(7920),d=r.n(c),m=r(2565),u=r.n(m),f=r(3197),p=r.n(f),b=r(1284),h=r(2522),g=r(2058),y=r(5893);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function x(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r{r.d(t,{AH:()=>d,Ej:()=>m,Ez:()=>f,RU:()=>h,W2:()=>a,X1:()=>s,dk:()=>b,or:()=>l,pU:()=>p,z:()=>u,zx:()=>c});var n=r(9411),o=r.n(n),i=r(2058),a=o().div.withConfig({componentId:"sc-5knwro-0"})(["display:flex;justify-content:center;"," position:fixed;top:0;left:0;width:100%;height:",";background:rgba(var(--black),0.5);backdrop-filter:blur(4.5px);z-index:9;"],i.tq?(0,n.css)(["align-items:center;"]):"",i.tq?"100%":"100vh"),s=o().div.withConfig({componentId:"sc-5knwro-1"})(['position:absolute;top:1.825em;right:1.425em;cursor:pointer;width:1.75em;height:1.75em;&::after,&::before{content:"";display:block;position:absolute;left:0.2em;top:0.7em;trnasform:translate(50%,50%);width:1.2em;height:0.168em;background:#ffffff;border-radius:5px;transform:rotate(45deg);}&::before{transform:rotate(-45deg);}']),l=o().div.withConfig({componentId:"sc-5knwro-2"})(["display:flex;flex-direction:column;align-items:center;position:relative;width:","em;height:","em;padding:5.5em 4.563em 3.313em;border:1px solid transparent;border-radius:1em;background:linear-gradient(#2b2b2b,#2b2b2b) padding-box,linear-gradient(rgba(var(--white),0.08),rgba(var(--white),0.36)) border-box;"],i.tq?"21.375":"37.5",i.tq?"29.75":"35"),c=o().div.withConfig({componentId:"sc-5knwro-3"})(["display:flex;justify-content:center;align-items:center;height:","em;width:auto;min-width:","em;border:1px solid transparent;border-radius:0.5em;padding:0 0.938em;background:linear-gradient(#edb329,#dd7929) padding-box,linear-gradient(#de9922,#ffe0a4) border-box;cursor:pointer;& > span{color:white;text-transform:uppercase;display:inline-block;font:1em var(mainFontBold);}"],i.tq?"2.375":"3.5",i.tq?"9.375":"12.625"),d=o().div.withConfig({componentId:"sc-5knwro-4"})(["display:flex;justify-content:center;align-items:flex-end;position:absolute;top:-3em;width:18em;height:7em;background-size:100% 100%;background-repeat:no-repeat;left:50%;transform:translateX(-50%);& > span{margin-bottom:","em;color:#ffffff;font:1.25em var(--mainFontMedium);text-transform:uppercase;}"],i.tq?"0.2":"0.4"),m=o().span.withConfig({componentId:"sc-5knwro-5"})(["font:0.75em var(--mainFontBold);text-transform:uppercase;color:#cd8e16;margin-bottom:1em;"]),u=o().span.withConfig({componentId:"sc-5knwro-6"})(["display:block;width:100%;text-align:center;word-break:break-word;padding:0 1em;color:white;font:1em/1.185em var(--mainFont);margin-bottom:1.25em;"]),f=(o().p.withConfig({componentId:"sc-5knwro-7"})(["font-size:0.75em;margin:0;white-space:normal;line-height:1.5;letter-spacing:0.32px;"]),o().div.withConfig({componentId:"sc-5knwro-8"})(["display:flex;justify-content:center;align-items:center;width:auto;min-width:9.5em;padding:0 2em;height:1.5em;background:no-repeat 100%/100% url(",");color:white;margin-bottom:1.25em;& > span{text-transform:uppercase;font:0.75em var(--mainFont);line-height:0.765em;letter-spacing:0.1em;}"],i.Ix)),p=o().div.withConfig({componentId:"sc-5knwro-9"})(["display:flex;flex-direction:column;align-items:center;margin-bottom:0.5em;color:white;",";letter-spacing:0.02em;"],(function(e){var t=e.prizeFundLength;return"font: ".concat(3-t/16,'em var(--BigShouldersInlineDisplay, "BigShouldersInlineDisplay", sans-serif)')})),b=o().span.withConfig({componentId:"sc-5knwro-10"})(["display:block;text-align:center;overflow-wrap:break-word;color:#cd8e16;font:0.75em var(--mainFont);margin-top:3.6em;padding:0 1em;"]),h=o().span.withConfig({componentId:"sc-5knwro-11"})(["display:block;text-align:center;text-transform:uppercase;overflow-wrap:break-word;color:rgba(var(--white),0.8);font:0.688em var(--mainFont);margin:1em 0 2.813em;padding:0 2.375em;"])},1174:(e,t,r)=>{r.d(t,{j:()=>m,w:()=>d});var n=r(3953),o=r(8757),i=r(2058),a=function(e){var t=e.leaderboardId,r=e.culture,n=e.timeZoneOffset;this.name="LeaderboardInfo",this.model={version:2,leaderboardId:t,culture:r,timeZoneOffset:n,token:i.r},this.messagePackModel=(0,o.parseObjectToArray)([t,r,n])},s=function(){this.name="LeaderboardHistory"};function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var d=function(e){var t=new a(function(e){for(var t=1;t