(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[410],{5347:(e,a,r)=>{Promise.resolve().then(r.bind(r,30408))},24357:(e,a,r)=>{"use strict";r.d(a,{A:()=>t});let t=(0,r(19946).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},26597:(e,a,r)=>{"use strict";r.d(a,{tU:()=>G,av:()=>V,j7:()=>M,Xi:()=>B});var t=r(95155),s=r(12115),l=r(85185),n=r(46081),i=r(89196),o=r(28905),d=r(63655),c=r(94315),m=r(5845),x=r(61285),u="Tabs",[h,f]=(0,n.A)(u,[i.RG]),g=(0,i.RG)(),[p,b]=h(u),j=s.forwardRef((e,a)=>{let{__scopeTabs:r,value:s,onValueChange:l,defaultValue:n,orientation:i="horizontal",dir:o,activationMode:u="automatic",...h}=e,f=(0,c.jH)(o),[g,b]=(0,m.i)({prop:s,onChange:l,defaultProp:n});return(0,t.jsx)(p,{scope:r,baseId:(0,x.B)(),value:g,onValueChange:b,orientation:i,dir:f,activationMode:u,children:(0,t.jsx)(d.sG.div,{dir:f,"data-orientation":i,...h,ref:a})})});j.displayName=u;var y="TabsList",v=s.forwardRef((e,a)=>{let{__scopeTabs:r,loop:s=!0,...l}=e,n=b(y,r),o=g(r);return(0,t.jsx)(i.bL,{asChild:!0,...o,orientation:n.orientation,dir:n.dir,loop:s,children:(0,t.jsx)(d.sG.div,{role:"tablist","aria-orientation":n.orientation,...l,ref:a})})});v.displayName=y;var N="TabsTrigger",w=s.forwardRef((e,a)=>{let{__scopeTabs:r,value:s,disabled:n=!1,...o}=e,c=b(N,r),m=g(r),x=R(c.baseId,s),u=T(c.baseId,s),h=s===c.value;return(0,t.jsx)(i.q7,{asChild:!0,...m,focusable:!n,active:h,children:(0,t.jsx)(d.sG.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":u,"data-state":h?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:x,...o,ref:a,onMouseDown:(0,l.m)(e.onMouseDown,e=>{n||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(s)}),onKeyDown:(0,l.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(s)}),onFocus:(0,l.m)(e.onFocus,()=>{let e="manual"!==c.activationMode;h||n||!e||c.onValueChange(s)})})})});w.displayName=N;var k="TabsContent",C=s.forwardRef((e,a)=>{let{__scopeTabs:r,value:l,forceMount:n,children:i,...c}=e,m=b(k,r),x=R(m.baseId,l),u=T(m.baseId,l),h=l===m.value,f=s.useRef(h);return s.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(o.C,{present:n||h,children:r=>{let{present:s}=r;return(0,t.jsx)(d.sG.div,{"data-state":h?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":x,hidden:!s,id:u,tabIndex:0,...c,ref:a,style:{...e.style,animationDuration:f.current?"0s":void 0},children:s&&i})}})});function R(e,a){return"".concat(e,"-trigger-").concat(a)}function T(e,a){return"".concat(e,"-content-").concat(a)}C.displayName=k;var A=r(53999);let G=j,M=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)(v,{ref:a,className:(0,A.cn)("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",r),...s})});M.displayName=v.displayName;let B=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)(w,{ref:a,className:(0,A.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",r),...s})});B.displayName=w.displayName;let V=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)(C,{ref:a,className:(0,A.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...s})});V.displayName=C.displayName},30408:(e,a,r)=>{"use strict";r.r(a),r.d(a,{default:()=>j});var t=r(95155),s=r(12115),l=r(88482),n=r(97168),i=r(88145),o=r(9685);let d=(0,r(19946).A)("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);var c=r(55595),m=r(69037),x=r(24357),u=r(71539),h=r(38564),f=r(18186),g=r(33109),p=r(26597),b=r(53999);function j(){let[e]=(0,s.useState)([{rank:1,username:"CryptoKing",portfolioName:"Tech Titans",totalReturn:45.2,portfolioValue:145200,weeklyGain:8.3,level:12,badge:"Diamond",canClone:!0},{rank:2,username:"StockNinja",portfolioName:"Growth Masters",totalReturn:38.7,portfolioValue:138700,weeklyGain:5.1,level:10,badge:"Platinum",canClone:!0},{rank:3,username:"BullMarket",portfolioName:"Value Hunters",totalReturn:32.1,portfolioValue:132100,weeklyGain:3.8,level:9,badge:"Gold",canClone:!0},{rank:4,username:"DividendQueen",portfolioName:"Income Stream",totalReturn:28.9,portfolioValue:128900,weeklyGain:2.1,level:8,badge:"Gold",canClone:!0},{rank:5,username:"TechGuru",portfolioName:"Innovation Fund",totalReturn:25.6,portfolioValue:125600,weeklyGain:4.2,level:7,badge:"Silver",canClone:!0},{rank:47,username:(0,b.T)(),portfolioName:"Tech Giants",totalReturn:12.1,portfolioValue:112100,weeklyGain:1.8,level:5,badge:"Bronze",canClone:!1,isCurrentUser:!0}]),a=e=>{switch(e){case 1:return(0,t.jsx)(d,{className:"h-6 w-6 text-yellow-400"});case 2:return(0,t.jsx)(c.A,{className:"h-6 w-6 text-gray-300"});case 3:return(0,t.jsx)(m.A,{className:"h-6 w-6 text-orange-400"});default:return(0,t.jsxs)("span",{className:"text-lg font-bold text-gray-400",children:["#",e]})}},r=e=>{switch(e){case"Diamond":return"bg-gradient-to-r from-blue-400 to-purple-400 text-white";case"Platinum":return"bg-gradient-to-r from-gray-300 to-gray-400 text-gray-900";case"Gold":return"bg-gradient-to-r from-yellow-400 to-yellow-500 text-yellow-900";case"Silver":return"bg-gradient-to-r from-gray-400 to-gray-500 text-gray-900";case"Bronze":return"bg-gradient-to-r from-orange-400 to-orange-500 text-orange-900";default:return"bg-gray-600 text-gray-300"}};return(0,t.jsxs)("div",{className:"flex min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900",children:[(0,t.jsx)(o.Bx,{}),(0,t.jsx)("main",{className:"flex-1 p-6 ml-64",children:(0,t.jsxs)("div",{className:"max-w-7xl mx-auto space-y-6",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h1",{className:"text-4xl font-bold bg-gradient-to-r from-yellow-400 to-orange-400 bg-clip-text text-transparent mb-4",children:"\uD83C\uDFC6 Global Leaderboard"}),(0,t.jsx)("p",{className:"text-gray-400 text-lg",children:"Compete with the best traders worldwide"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:e.slice(0,3).map((e,s)=>(0,t.jsxs)(l.Zp,{className:"relative overflow-hidden ".concat(1===e.rank?"bg-gradient-to-br from-yellow-500/20 to-orange-500/20 border-yellow-500/50 card-glow":2===e.rank?"bg-gradient-to-br from-gray-400/20 to-gray-500/20 border-gray-400/50":"bg-gradient-to-br from-orange-400/20 to-orange-500/20 border-orange-400/50"," ").concat(1===s?"md:order-first":0===s?"md:order-2":"md:order-3"),children:[(0,t.jsxs)(l.aR,{className:"text-center pb-2",children:[(0,t.jsx)("div",{className:"flex justify-center mb-2",children:a(e.rank)}),(0,t.jsx)(l.ZB,{className:"text-xl",children:e.username}),(0,t.jsx)(l.BT,{children:e.portfolioName}),(0,t.jsxs)(i.E,{className:"mx-auto ".concat(r(e.badge)),children:["Level ",e.level," • ",e.badge]})]}),(0,t.jsxs)(l.Wu,{className:"text-center space-y-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-2xl font-bold text-green-400",children:["+",e.totalReturn,"%"]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"Total Return"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-lg font-semibold",children:["$",e.portfolioValue.toLocaleString()]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"Portfolio Value"})]}),(0,t.jsxs)(n.$,{size:"sm",className:"w-full bg-gradient-to-r from-purple-500 to-blue-500",disabled:!e.canClone,children:[(0,t.jsx)(x.A,{className:"h-4 w-4 mr-2"}),"Clone Portfolio"]})]})]},e.rank))}),(0,t.jsxs)(p.tU,{defaultValue:"all-time",className:"w-full",children:[(0,t.jsxs)(p.j7,{className:"grid w-full grid-cols-3 bg-slate-800",children:[(0,t.jsx)(p.Xi,{value:"all-time",children:"All Time"}),(0,t.jsx)(p.Xi,{value:"monthly",children:"This Month"}),(0,t.jsx)(p.Xi,{value:"weekly",children:"This Week"})]}),(0,t.jsx)(p.av,{value:"all-time",className:"space-y-4",children:(0,t.jsxs)(l.Zp,{className:"bg-slate-800/50 border-slate-700",children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{className:"text-purple-300",children:"All-Time Rankings"}),(0,t.jsx)(l.BT,{children:"Top performers since platform launch"})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsx)("div",{className:"space-y-3",children:e.map(e=>(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 rounded-lg transition-all ".concat(e.isCurrentUser?"bg-gradient-to-r from-purple-500/20 to-blue-500/20 border border-purple-500/50":"bg-slate-700/50 hover:bg-slate-700/70"),children:[(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-center w-12 h-12 rounded-full bg-slate-600",children:e.rank<=3?a(e.rank):(0,t.jsxs)("span",{className:"font-bold text-gray-300",children:["#",e.rank]})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("h3",{className:"font-semibold",children:e.username}),e.isCurrentUser&&(0,t.jsx)(i.E,{variant:"outline",className:"border-purple-500 text-purple-300",children:"You"}),(0,t.jsx)(i.E,{className:"".concat(r(e.badge)," text-xs"),children:e.badge})]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:e.portfolioName})]})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-6",children:[(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsxs)("p",{className:"font-semibold text-green-400",children:["+",e.totalReturn,"%"]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"Total Return"})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsxs)("p",{className:"font-semibold",children:["$",e.portfolioValue.toLocaleString()]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"Portfolio Value"})]}),(0,t.jsxs)("div",{className:"text-right",children:[(0,t.jsxs)("p",{className:"font-semibold ".concat(e.weeklyGain>0?"text-green-400":"text-red-400"),children:[e.weeklyGain>0?"+":"",e.weeklyGain,"%"]}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"This Week"})]}),e.canClone&&(0,t.jsxs)(n.$,{size:"sm",variant:"outline",className:"border-purple-500/50 text-purple-300",children:[(0,t.jsx)(x.A,{className:"h-4 w-4 mr-2"}),"Clone"]})]})]},e.rank))})})]})}),(0,t.jsx)(p.av,{value:"monthly",children:(0,t.jsxs)(l.Zp,{className:"bg-slate-800/50 border-slate-700",children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{className:"text-purple-300",children:"Monthly Rankings"}),(0,t.jsx)(l.BT,{children:"Top performers this month"})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)(u.A,{className:"h-12 w-12 text-gray-400 mx-auto mb-4"}),(0,t.jsx)("p",{className:"text-gray-400",children:"Monthly rankings will be available soon!"})]})})]})}),(0,t.jsx)(p.av,{value:"weekly",children:(0,t.jsxs)(l.Zp,{className:"bg-slate-800/50 border-slate-700",children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsx)(l.ZB,{className:"text-purple-300",children:"Weekly Rankings"}),(0,t.jsx)(l.BT,{children:"Top performers this week"})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)(h.A,{className:"h-12 w-12 text-gray-400 mx-auto mb-4"}),(0,t.jsx)("p",{className:"text-gray-400",children:"Weekly rankings will be available soon!"})]})})]})})]}),(0,t.jsxs)(l.Zp,{className:"bg-slate-800/50 border-slate-700",children:[(0,t.jsxs)(l.aR,{children:[(0,t.jsxs)(l.ZB,{className:"text-yellow-300 flex items-center",children:[(0,t.jsx)(f.A,{className:"h-5 w-5 mr-2"}),"Achievement Showcase"]}),(0,t.jsx)(l.BT,{children:"Recent achievements from top traders"})]}),(0,t.jsx)(l.Wu,{children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,t.jsx)("div",{className:"p-4 bg-gradient-to-r from-yellow-500/20 to-orange-500/20 rounded-lg border border-yellow-500/30",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(d,{className:"h-8 w-8 text-yellow-400"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold",children:"CryptoKing"}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"Reached 45% returns!"})]})]})}),(0,t.jsx)("div",{className:"p-4 bg-gradient-to-r from-purple-500/20 to-blue-500/20 rounded-lg border border-purple-500/30",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(g.A,{className:"h-8 w-8 text-purple-400"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold",children:"StockNinja"}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"7-day winning streak!"})]})]})}),(0,t.jsx)("div",{className:"p-4 bg-gradient-to-r from-green-500/20 to-blue-500/20 rounded-lg border border-green-500/30",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)(h.A,{className:"h-8 w-8 text-green-400"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold",children:"BullMarket"}),(0,t.jsx)("p",{className:"text-sm text-gray-400",children:"Portfolio Diversification Master!"})]})]})})]})})]})]})})]})}},38564:(e,a,r)=>{"use strict";r.d(a,{A:()=>t});let t=(0,r(19946).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},55595:(e,a,r)=>{"use strict";r.d(a,{A:()=>t});let t=(0,r(19946).A)("Medal",[["path",{d:"M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15",key:"143lza"}],["path",{d:"M11 12 5.12 2.2",key:"qhuxz6"}],["path",{d:"m13 12 5.88-9.8",key:"hbye0f"}],["path",{d:"M8 7h8",key:"i86dvs"}],["circle",{cx:"12",cy:"17",r:"5",key:"qbz8iq"}],["path",{d:"M12 18v-2h-.5",key:"fawc4q"}]])},69037:(e,a,r)=>{"use strict";r.d(a,{A:()=>t});let t=(0,r(19946).A)("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},88145:(e,a,r)=>{"use strict";r.d(a,{E:()=>i});var t=r(95155);r(12115);var s=r(74466),l=r(53999);let n=(0,s.F)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function i(e){let{className:a,variant:r,...s}=e;return(0,t.jsx)("div",{className:(0,l.cn)(n({variant:r}),a),...s})}},88482:(e,a,r)=>{"use strict";r.d(a,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>n,aR:()=>i});var t=r(95155),s=r(12115),l=r(53999);let n=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)("div",{ref:a,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...s})});n.displayName="Card";let i=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)("div",{ref:a,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",r),...s})});i.displayName="CardHeader";let o=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)("div",{ref:a,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",r),...s})});o.displayName="CardTitle";let d=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)("div",{ref:a,className:(0,l.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)("div",{ref:a,className:(0,l.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent",s.forwardRef((e,a)=>{let{className:r,...s}=e;return(0,t.jsx)("div",{ref:a,className:(0,l.cn)("flex items-center p-6 pt-0",r),...s})}).displayName="CardFooter"}},e=>{var a=a=>e(e.s=a);e.O(0,[49,478,52,685,441,684,358],()=>a(5347)),_N_E=e.O()}]);