(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[268],{9719:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/leaderboard",function(){return t(5351)}])},5351:function(e,a,t){"use strict";t.r(a),t.d(a,{default:function(){return em}});var o=t(5893),r=t(9008),i=t.n(r),n=t(2793),l=t.n(n),s=t(5675),c=t.n(s),d=t(1730),u=t(2430),p=t(7462),m=t(3366),h=t(7294),b=t(512),x=t(8510),v=t(8628),g=t(1977),_=t(5463);function P(e){return(0,_.ZP)("MuiPagination",e)}(0,g.Z)("MuiPagination",["root","ul","outlined","text"]);var y=t(1222);let f=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];var N=t(2101),C=t(2056);function k(e){return(0,_.ZP)("MuiPaginationItem",e)}let j=(0,g.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]);var Z=t(656),O=t(8216),S=t(2066),w=(0,S.Z)((0,o.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),M=(0,S.Z)((0,o.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),$=(0,S.Z)((0,o.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),L=(0,S.Z)((0,o.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),I=t(948);let B=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],z=(e,a)=>{let{ownerState:t}=e;return[a.root,a[t.variant],a[`size${(0,O.Z)(t.size)}`],"text"===t.variant&&a[`text${(0,O.Z)(t.color)}`],"outlined"===t.variant&&a[`outlined${(0,O.Z)(t.color)}`],"rounded"===t.shape&&a.rounded,"page"===t.type&&a.page,("start-ellipsis"===t.type||"end-ellipsis"===t.type)&&a.ellipsis,("previous"===t.type||"next"===t.type)&&a.previousNext,("first"===t.type||"last"===t.type)&&a.firstLast]},A=e=>{let{classes:a,color:t,disabled:o,selected:r,size:i,shape:n,type:l,variant:s}=e,c={root:["root",`size${(0,O.Z)(i)}`,s,n,"standard"!==t&&`color${(0,O.Z)(t)}`,"standard"!==t&&`${s}${(0,O.Z)(t)}`,o&&"disabled",r&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,x.Z)(c,k,a)},F=(0,I.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:z})(({theme:e,ownerState:a})=>(0,p.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${j.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"small"===a.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),R=(0,I.ZP)(Z.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:z})(({theme:e,ownerState:a})=>(0,p.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${j.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${j.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,N.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${j.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,N.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${j.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},"small"===a.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===a.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)},"rounded"===a.shape&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:a})=>(0,p.Z)({},"text"===a.variant&&{[`&.${j.selected}`]:(0,p.Z)({},"standard"!==a.color&&{color:(e.vars||e).palette[a.color].contrastText,backgroundColor:(e.vars||e).palette[a.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[a.color].main}},[`&.${j.focusVisible}`]:{backgroundColor:(e.vars||e).palette[a.color].dark}},{[`&.${j.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},"outlined"===a.variant&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${j.selected}`]:(0,p.Z)({},"standard"!==a.color&&{color:(e.vars||e).palette[a.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[a.color].mainChannel} / 0.5)`:(0,N.Fq)(e.palette[a.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[a.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:(0,N.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[a.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,N.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${j.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[a.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,N.Fq)(e.palette[a.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${j.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),G=(0,I.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,a)=>a.icon})(({theme:e,ownerState:a})=>(0,p.Z)({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},"small"===a.size&&{fontSize:e.typography.pxToRem(18)},"large"===a.size&&{fontSize:e.typography.pxToRem(22)})),K=h.forwardRef(function(e,a){let t=(0,v.i)({props:e,name:"MuiPaginationItem"}),{className:r,color:i="standard",component:n,components:l={},disabled:s=!1,page:c,selected:d=!1,shape:u="circular",size:h="medium",slots:x={},type:g="page",variant:_="text"}=t,P=(0,m.Z)(t,B),y=(0,p.Z)({},t,{color:i,disabled:s,selected:d,shape:u,size:h,type:g,variant:_}),f=(0,C.V)(),N=A(y),k=f?{previous:x.next||l.next||L,next:x.previous||l.previous||$,last:x.first||l.first||w,first:x.last||l.last||M}:{previous:x.previous||l.previous||$,next:x.next||l.next||L,first:x.first||l.first||w,last:x.last||l.last||M},j=k[g];return"start-ellipsis"===g||"end-ellipsis"===g?(0,o.jsx)(F,{ref:a,ownerState:y,className:(0,b.Z)(N.root,r),children:"…"}):(0,o.jsxs)(R,(0,p.Z)({ref:a,ownerState:y,component:n,disabled:s,className:(0,b.Z)(N.root,r)},P,{children:["page"===g&&c,j?(0,o.jsx)(G,{as:j,ownerState:y,className:N.icon}):null]}))}),W=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],T=e=>{let{classes:a,variant:t}=e;return(0,x.Z)({root:["root",t],ul:["ul"]},P,a)},E=(0,I.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,a)=>{let{ownerState:t}=e;return[a.root,a[t.variant]]}})({}),D=(0,I.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,a)=>a.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function V(e,a,t){return"page"===e?`${t?"":"Go to "}page ${a}`:`Go to ${e} page`}let q=h.forwardRef(function(e,a){let t=(0,v.i)({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:i,color:n="standard",count:l=1,defaultPage:s=1,disabled:c=!1,getItemAriaLabel:d=V,hideNextButton:u=!1,hidePrevButton:h=!1,renderItem:x=e=>(0,o.jsx)(K,(0,p.Z)({},e)),shape:g="circular",showFirstButton:_=!1,showLastButton:P=!1,siblingCount:N=1,size:C="medium",variant:k="text"}=t,j=(0,m.Z)(t,W),{items:Z}=function(e={}){let{boundaryCount:a=1,componentName:t="usePagination",count:o=1,defaultPage:r=1,disabled:i=!1,hideNextButton:n=!1,hidePrevButton:l=!1,onChange:s,page:c,showFirstButton:d=!1,showLastButton:u=!1,siblingCount:h=1}=e,b=(0,m.Z)(e,f),[x,v]=(0,y.Z)({controlled:c,default:r,name:t,state:"page"}),g=(e,a)=>{c||v(a),s&&s(e,a)},_=(e,a)=>Array.from({length:a-e+1},(a,t)=>e+t),P=_(1,Math.min(a,o)),N=_(Math.max(o-a+1,a+1),o),C=Math.max(Math.min(x-h,o-a-2*h-1),a+2),k=Math.min(Math.max(x+h,a+2*h+2),N.length>0?N[0]-2:o-1),j=[...d?["first"]:[],...l?[]:["previous"],...P,...C>a+2?["start-ellipsis"]:a+1<o-a?[a+1]:[],..._(C,k),...k<o-a-1?["end-ellipsis"]:o-a>a?[o-a]:[],...N,...n?[]:["next"],...u?["last"]:[]],Z=e=>{switch(e){case"first":return 1;case"previous":return x-1;case"next":return x+1;case"last":return o;default:return null}},O=j.map(e=>"number"==typeof e?{onClick:a=>{g(a,e)},type:"page",page:e,selected:e===x,disabled:i,"aria-current":e===x?"true":void 0}:{onClick:a=>{g(a,Z(e))},type:e,page:Z(e),selected:!1,disabled:i||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?x>=o:x<=1)});return(0,p.Z)({items:O},b)}((0,p.Z)({},t,{componentName:"Pagination"})),O=(0,p.Z)({},t,{boundaryCount:r,color:n,count:l,defaultPage:s,disabled:c,getItemAriaLabel:d,hideNextButton:u,hidePrevButton:h,renderItem:x,shape:g,showFirstButton:_,showLastButton:P,siblingCount:N,size:C,variant:k}),S=T(O);return(0,o.jsx)(E,(0,p.Z)({"aria-label":"pagination navigation",className:(0,b.Z)(S.root,i),ownerState:O,ref:a},j,{children:(0,o.jsx)(D,{className:S.ul,ownerState:O,children:Z.map((e,a)=>(0,o.jsx)("li",{children:x((0,p.Z)({},e,{color:n,"aria-label":d(e.type,e.page,e.selected),shape:g,size:C,variant:k}))},a))})}))});var J=t(1265),X=t(6146);let H=(0,J.Z)({components:{MuiButtonBase:{styleOverrides:{root:{"&.Mui-selected":{willChange:"unset",fontFamily:"__gilroy_d51f18, sans-serif",fontSize:"14px",fontWeight:"700",color:"#FFFFFF",backgroundColor:"#DE1111 !important",borderRadius:"7px","&:hover":{color:"#FFFFFF"}}}}},MuiPaginationItem:{styleOverrides:{root:{fontFamily:"__gilroy_d51f18, sans-serif",fontSize:"14px",fontWeight:"700",color:"#C8CDDC","&:hover":{color:"#DE1111",borderRadius:"7px"}}}}}}),U=e=>{let{t:a}=e,t=(0,d.Z)("(max-width:800px)"),r=(0,d.Z)("(max-width:600px)"),[i,n]=(0,h.useState)({}),s={Count:20,tableDataArray:[{Place:1,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"John",AccountNumber:"***1234"},{Place:2,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Mary",AccountNumber:"***5678"},{Place:3,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Brian",AccountNumber:"***5435"},{Place:4,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Kristy",AccountNumber:"***9876"},{Place:5,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Tom",AccountNumber:"***3456"},{Place:6,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Dominic",AccountNumber:"***7865"},{Place:7,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Nicki",AccountNumber:"***6789"},{Place:8,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Nancy",AccountNumber:"***5479"},{Place:9,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Jess",AccountNumber:"***5479"},{Place:10,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Tommy",AccountNumber:"***6732"},{Place:11,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Amanda",AccountNumber:"***9416"},{Place:12,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"John",AccountNumber:"***9573"},{Place:13,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Jasmine",AccountNumber:"***6903"},{Place:14,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Sam",AccountNumber:"6190"},{Place:15,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Tanya",AccountNumber:"***6091"},{Place:16,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Fill",AccountNumber:"***6704"},{Place:17,Gain:65.77,ClosedProfit:33053.93,CountryName:"Pakistan",ISO2:"PK",Name:"Nadya",AccountNumber:"***6509"}]};return(0,o.jsx)("div",{className:l().block,children:(0,o.jsx)("div",{className:"MainBlock__container",children:(0,o.jsxs)("div",{className:l().wrapper,children:[(0,o.jsx)("div",{className:l().top__block,children:(0,o.jsx)("h1",{children:a.Leaderboard})}),!r&&(0,o.jsx)("div",{className:l().middle__block,children:(0,o.jsx)("table",{children:(0,o.jsxs)("tbody",{children:[(0,o.jsxs)("tr",{className:l().header__row,children:[(0,o.jsx)("th",{children:"Place"}),(0,o.jsx)("th",{children:"Name (Account)"}),(0,o.jsx)("th",{children:"%Gain"}),(0,o.jsx)("th",{children:"Closed Profit"}),(0,o.jsx)("th",{children:"Country"})]}),s.tableDataArray.map((e,a)=>(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:e.Place}),(0,o.jsxs)("td",{children:[e.Name," (",e.AccountNumber,")"]}),(0,o.jsx)("td",{children:e.Gain}),(0,o.jsx)("td",{children:e.ClosedProfit}),(0,o.jsx)("td",{children:(0,o.jsxs)("div",{className:l().country__block,children:[(0,o.jsx)(c(),{src:"/country_flags/".concat(e.ISO2,".svg"),alt:e.ISO2,width:28,height:20,loading:"lazy"}),!t&&(0,o.jsx)("span",{children:e.CountryName})]})})]},a))]})})}),r&&(0,o.jsx)("div",{className:l().middle__block_mobile,children:(0,o.jsx)("table",{children:(0,o.jsxs)("tbody",{children:[(0,o.jsxs)("tr",{className:l().header__row,children:[(0,o.jsx)("th",{children:"Place"}),(0,o.jsx)("th",{children:"Name (Account)"}),(0,o.jsx)("th",{children:"Country"}),(0,o.jsx)("th",{})]}),s.tableDataArray.map((e,a)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{children:e.Place}),(0,o.jsxs)("td",{children:[e.Name," (",e.AccountNumber,")"]}),(0,o.jsx)("td",{children:(0,o.jsx)("div",{className:l().country__block,children:(0,o.jsx)(c(),{src:"/country_flags/".concat(e.ISO2,".svg"),alt:e.ISO2,width:28,height:20,loading:"lazy"})})}),(0,o.jsx)("td",{children:(0,o.jsx)(X.z,{className:i[a]?l().button_active:l().button,onClick:()=>{n(e=>({...e,[a]:!e[a]}))},children:(0,o.jsx)("div",{className:i[a]?l().button__inner_active:l().button__inner,children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",stroke:"#A6A2A8",children:(0,o.jsx)("path",{d:"M3 9L12 17L21 9",strokeWidth:"2",strokeLinecap:"round"})})})})})]},a),i[a]&&(0,o.jsx)("tr",{children:(0,o.jsx)("td",{colSpan:4,className:l().details__row,children:(0,o.jsxs)("div",{children:[(0,o.jsxs)("span",{children:["%Gain: ",e.Gain]}),(0,o.jsxs)("span",{children:["Closed Profit: ",e.ClosedProfit]})]})})})]}))]})})}),(0,o.jsx)("div",{className:l().bottom__block,children:(0,o.jsx)(u.Z,{theme:H,children:(0,o.jsx)(q,{count:s.Count/5,showFirstButton:!0,showLastButton:!0})})})]})})})};var Q={Leaderboard:"Leaderboard"},Y={Leaderboard:"Таблица лидеров"},ee={Leaderboard:"Papan Peringkat"},ea={Leaderboard:"लीडरबोर्ड"},et={Leaderboard:"排行榜"},eo={Leaderboard:"排行榜"},er={Leaderboard:"Bảng xếp hạng"},ei={Leaderboard:"กระดานผู้นำ"},en={Leaderboard:"Tabla de clasificaci\xf3n"},el={Leaderboard:"Entre os melhores"},es={Leaderboard:"リーダーボード"},ec=t(1163),ed=t(1059);let eu=()=>{let e=(0,ec.useRouter)(),{locale:a}=e,t=(0,ed.F)({en:Q,ru:Y,indonesia:ee,ind:ea,cn:et,tw:eo,vn:er,th:ei,es:en,pt:el,jp:es},a);return(0,o.jsx)("div",{children:(0,o.jsx)(U,{t:t})})},ep=()=>(0,o.jsxs)("main",{children:[(0,o.jsx)(i(),{children:(0,o.jsx)("title",{children:"Leaderboard | zefundex"})}),(0,o.jsx)(eu,{})]});var em=ep},2793:function(e){e.exports={top__block:"MainBlock_top__block__VWk25",middle__block:"MainBlock_middle__block__EB7a_",middle__block_mobile:"MainBlock_middle__block_mobile__e7Im8",block:"MainBlock_block__F571J",wrapper:"MainBlock_wrapper__7Nevj",header__row:"MainBlock_header__row__OW6KW",country__block:"MainBlock_country__block__9IhBI",button:"MainBlock_button__sBxtp",button_active:"MainBlock_button_active__iPPRF",button__inner:"MainBlock_button__inner__Gusx8",button__inner_active:"MainBlock_button__inner_active__ZgavS",details__row:"MainBlock_details__row__tSc0L"}}},function(e){e.O(0,[625,774,888,179],function(){return e(e.s=9719)}),_N_E=e.O()}]);