PageSourceSearch

https://perpex.co/_next/static/chunks/c20145c7a29e7a7d.js

js perpex.co collected 2026-09-25 03:40:44 UTC 32,712 bytes, 7 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c1554414-770e-9531-2d02-d33d8a05d419")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,978203,e=>{"use strict";var s=e.i(843476),t=e.i(271645),a=e.i(618566),r=e.i(948148),l=e.i(157537),i=e.i(947616);e.i(53784);var n=e.i(988846),o=e.i(685562),d=e.i(166452),c=e.i(169434),m=e.i(214316),x=e.i(318286),u=e.i(150840),g=e.i(956324);function h(){let e=(0,r.useTranslations)("copyTrading"),h=(0,a.useRouter)(),[p,f]=(0,t.useState)(""),[j,b]=(0,t.useState)(!1),{data:v}=(0,u.usePerpetualsMetadata)(),{data:N}=(0,u.useAssetContexts)(),y=v?.meta?.universe?.length??0,w=(0,t.useMemo)(()=>{if(!N)return null;let e=N.reduce((e,s)=>e+(parseFloat(s.dayNtlVlm)||0),0);return(0,g.formatVolume)(e)},[N]),z=()=>{p.trim()&&(b(!0),h.push(`/copy-trading/${p.trim()}`))},k=[{icon:(0,s.jsx)(m.BarChartIcon,{className:"size-3.5"}),label:y>0?`${y}+ ${e("hero.signals.markets")}`:`150+ ${e("hero.signals.markets")}`,type:"data"},{icon:(0,s.jsx)(x.ActivityIcon,{className:"size-3.5"}),label:w?`$${w} ${e("hero.signals.dailyVolume")}`:null,type:"data"},{icon:(0,s.jsx)(c.ZapIcon,{className:"size-3.5"}),label:e("hero.signals.realTime"),type:"feature"},{icon:(0,s.jsx)(d.UsersIcon,{className:"size-3.5"}),label:e("hero.signals.zeroCopyFees"),type:"feature"}];return(0,s.jsxs)("section",{className:"relative overflow-hidden border-b border-separator",children:[(0,s.jsxs)("div",{className:"absolute inset-0",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-foreground
2/[0.02] via-transparent to-foreground/[0.03]"}),(0,s.jsx)("div",{className:"absolute inset-0 opacity-30",style:{backgroundImage:`
3              linear-gradient(to right, var(--foreground) 1px, transparent 1px),
4              linear-gradient(to bottom, var(--foreground) 1px, transparent 1px)
5            `,backgroundSize:"60px 60px",maskImage:"radial-gradient(ellipse at center, black 0%, transparent 70%)",WebkitMaskImage:"radial-gradient(ellipse at center, black 0%, transparent 70%)",opacity:.03}}),(0,s.jsx)("div",{className:"absolute top-20 right-[20%] w-[400px] h-[400px] bg-long/10 rounded-full blur-[120px] animate-float"}),(0,s.jsx)("div",{className:"absolute bottom-10 left-[10%] w-[300px] h-[300px] bg-foreground/5 rounded-full blur-[100px] animate-float-delayed"})]}),(0,s.jsx)("div",{className:"relative z-10 mx-auto max-w-5xl px-4 py-16 md:py-20",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-foreground/5 border border-foreground
5/10 mb-6 animate-fade-in-up",children:[(0,s.jsx)(d.UsersIcon,{className:"size-4 text-muted"}),(0,s.jsx)("span",{className:"text-sm font-medium text-foreground",children:e("hero.badge")})]}),(0,s.jsx)("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-4 leading-[1.1] animate-fade-in-up animation-delay-100",children:e("hero.title")}),(0,s.jsx)("p",{className:"text-lg md:text-xl text-muted max-w-2xl mx-auto mb-10 animate-fade-in-up animation-delay-200",children:e("hero.subtitle")}),(0,s.jsxs)("div",{className:"max-w-2xl mx-auto mb-10 animate-fade-in-up animation-delay-300",children:[(0,s.jsxs)("div",{className:"relative group",children:[(0,s.jsx)("div",{className:"absolute -inset-1 bg-gradient-to-r from-foreground/20 via-foreground/10 to-foreground/20 rounded-2xl blur-lg opacity-0 group-focus-within:opacity-100 transition-opacity duration-500"}),(0,s.jsxs)("div",{className:"relative flex items-center gap-2 p-2 rounded-2xl bg-foreground/[0.03] border border-foreground/10 focus-within:border-foreground
5/20 transition-colors",children:[(0,s.jsx)("div",{className:"flex items-center justify-center size-12 rounded-xl bg-foreground/5",children:(0,s.jsx)(n.SearchIcon,{className:"size-5 text-muted"})}),(0,s.jsx)("input",{type:"text",placeholder:e("hero.searchPlaceholder"),value:p,onChange:e=>f(e.target.value),onKeyDown:e=>{"Enter"===e.key&&z()},className:"flex-1 h-12 bg-transparent border-none outline-none text-base placeholder:text-muted"}),(0,s.jsxs)(l.Button,{onPress:z,isDisabled:!p.trim()||j,className:"hero-cta-primary h-12 px-6 font-semibold rounded-xl",children:[j?(0,s.jsx)(i.Spinner,{size:"sm",className:"mr-2"}):null,e("hero.explore"),!j&&(0,s.jsx)(o.ArrowRightIcon,{className:"size-4 rtl-flip ml-2"})]})]})]}),(0,s.jsx)("p",{className:"text-sm text-muted mt-3",children:e("hero.searchHelper")})]}),(0,s.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-2.5 md:gap-3 animate-fade-in-up animation-delay-400",children:k.map(e=>e.label?(0,s.jsxs)("div",{className:`inline-flex items-center gap-2 px-3.5 py-2 rounded-full text-sm font-medium transition-colors ${"data"===e.type?"bg-foreground
5/[0.06] text-foreground border border-foreground/10":"bg-long/[0.08] text-long border border-long/15"}`,children:[e.icon,(0,s.jsx)("span",{children:e.label})]},e.label):null)})]})})]})}var p=e.i(782756),f=e.i(522016),j=e.i(912598),b=e.i(152236),v=e.i(352264),N=e.i(880538),y=e.i(187193),w=e.i(636665),z=e.i(440987),k=e.i(629978),I=e.i(233565),T=e.i(882910);e.i(209632);var S=e.i(54795),P=e.i(518607),$=e.i(506256),A=e.i(216877);let C=(0,t.memo)(function({copy:e,followerWalletAddress:i,isVisible:n,index:o,onPauseResume:d,isProcessing:c}){let m=(0,r.useTranslations)("copyTrading"),x=(0,a.useRouter)(),{data:u}=(0,S.useTradeExecutions)(e.id),{data:h}=(0,P.useTraderHyperliquidPositions)(i),p=(0,t.useMemo)(()=>u&&0!==u.length?new Set(u.map(e=>e.asset)):new Set,[u]),f=(0,t.useMemo)(()=>h&&0!==h.length&&0!==p.size?h.filter(e=>p.has(e.coin)).reduce((e,s)=>e+s.unrealizedPnl,0):0,[h,p]),j=parseFloat(e.realizedPnl||"0")+f,k=j>=0,I=e.trader?.periodPerformance?.dayRoi||0,T=I>=0,$="paused"===e.status,A=e.trader?.displayName||`${e.traderAddress.slice(0,6)}...${e.traderAddress.slice(-4)}`,C=`${e.traderAddress.slice(0,6)}...${e.traderAddress.slice(-4)}`;return(0,s.jsxs)("div",{className:(0,b.cn)("group relative flex-shrink-0 w-[300px] p-4 rounded-2xl transition-all duration-500 ease-out","bg-gradient-to-br from-foreground
5/[0.04] to-foreground/[0.02]","border border-foreground/[0.08] hover:border-long/20","hover:shadow-[0_8px_30px_-12px] hover:shadow-long/10","hover:-translate-y-0.5",$&&"opacity-60 grayscale-[30%]",n?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-6 scale-95"),style:{transitionDelay:n?`${200+100*o}ms`:"0ms"},children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold",children:A}),(0,s.jsx)("div",{className:"text-xs text-muted",children:C})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("div",{className:(0,b.cn)("size-2 rounded-full",$?"bg-warning":"bg-long animate-pulse")}),(0,s.jsx)("span",{className:"text-xs text-muted",children:$?m("activeCopies.paused"):`${e.totalTrades} ${m("activeCopies.trades")}`})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[(0,s.jsxs)("div",{className:"p-3 rounded-xl bg-foreground/[0.03]",children:[(0,s.jsx)("div",{className:"text-xs text-muted mb-1",children:m("activeCopies.totalPnl")}),(0,s.jsxs)("div",{className:(0,b.cn)("text-lg font-bold",k?"text-long":"text-short"),children:[k?"+":"-","$",(0,g.formatPnl)(j)]})]}
5),(0,s.jsxs)("div",{className:"p-3 rounded-xl bg-foreground/[0.03]",children:[(0,s.jsx)("div",{className:"text-xs text-muted mb-1",children:m("activeCopies.todayPnl")}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[T?(0,s.jsx)(v.TrendingUpIcon,{className:"size-4 text-long"}):(0,s.jsx)(N.TrendingDownIcon,{className:"size-4 text-short"}),(0,s.jsxs)("span",{className:(0,b.cn)("text-lg font-bold",T?"text-long":"text-short"),children:[T?"+":"",I.toFixed(1),"%"]})]})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm mb-4",children:[(0,s.jsx)("span",{className:"text-muted",children:e.sizingStrategy}),(0,s.jsx)("span",{className:"font-medium",children:"FIXED_AMOUNT"===e.sizingStrategy?`$${parseFloat(e.sizingValue||"0").toLocaleString()}`:"FIXED_RATIO"===e.sizingStrategy?`${parseFloat(e.sizingValue||"0")}x`:`${parseFloat(e.sizingValue||"0")}%`})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(l.Button,{size:"sm",variant:"ghost",className:"flex-1 bg-foreground/5 font-medium",onPress:()=>x.push(`/copy-trading/${e.traderAddress}`),children:[(0,s.jsx)(z.SettingsIcon,{className:"size-4 mr-1.5"}),m("activeCopies.manage")]}),(0,s.jsx)(l.Button,{size:"sm",variant:"ghost",className:(0,b.cn)("flex-1 font-medium",$?"bg-long/10 text-long":"bg-short/10 text-short"),onPress:()=>
5d(e.id,e.status),isDisabled:c,children:$?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.PlayIcon,{className:"size-4 mr-1.5"}),m("activeCopies.resume")]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.PauseIcon,{className:"size-4 mr-1.5"}),m("activeCopies.stop")]})})]})]})});function F(){let e=(0,r.useTranslations)("copyTrading"),a=(0,j.useQueryClient)(),[i,n]=(0,t.useState)(0),[d,c]=(0,t.useState)("hidden"),[m,x]=(0,t.useState)(!1),u=(0,t.useRef)(null),{data:g,isLoading:h,hasActiveCopies:v}=(0,S.useActiveCopies)(),{activeWallet:N}=(0,$.useActiveWallet)(),y=(0,S.usePauseCopying)(),w=(0,p.useResumeCopyingWithRecovery)(),z=(0,t.useCallback)(async()=>{x(!0);try{await Promise.all([a.refetchQueries({queryKey:A.copyTradingKeys.relationships()}),a.refetchQueries({queryKey:["copy-trading","traders"],predicate:e=>e.queryKey.includes("hl-positions")})])}finally{setTimeout(()=>x(!1),600)}},[a]);if((0,t.useEffect)(()=>{!h&&v&&"hidden"===d&&(c("mounting"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c("visible")})}))},[h,v,d]),h||!v)return null;let P="visible"===d,F=(e,s)=>{"active"===s?y.mutate(e):w.mutate(e)};return(0,s.jsxs)("section",{ref:u,className:(0,b.cn)("relative overflow-hidden transition-all duration-700 ease-[cubic-bezier(0.16,1,0.3,1)]","bg-gradient-to-b from-long/[0.02] via-surface to-surface","border-b border-long/10",P?"opacity-100 max-h-[400px]":"opacity-0 max-h-0"),children:[(0,s.jsx)("div",{className:(0,b.cn)("absolute top-0 left-0 h-[2px] bg-gradient-to-r from-transparent via-long to-transparent transition-all duration-1000 ease-out",P?"w-full opacity-100":"w-0 opacity-0"),style:{transitionDelay:P?"200ms":"0ms"}}),(0,s.jsx)("div",{className:(0,b.cn)("absolute -top-20 left-1/4 w-96 h-40 bg-long/10 rounded-full blur-3xl transition-opacity duration-1000",P?"opacity-100":"opacity-0"),style:{transitionDelay:P?"300ms":"0ms"}}),(0,s.jsxs)("div",{className:"relative mx-auto max-w-7xl px-4 py-6",children:[(0,s.jsxs)("div",{className:(0,b.cn)("flex items-center justify-between mb-5 transition-all duration-600 ease-out",P?"opacity-100 translate-y-0":"opacity-0 -translate-y-3"),style:{transitionDelay:P?"100ms":"0ms"},children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold tracking-tight",children:e("activeCopies.title")}),(0,s.jsxs)("span",{className:(0,b.cn)("relative px-2.5 py-1 rounded-full text-xs font-semibold overflow-hidden","bg-long/15 text-long","transition-all duration-500",P?"scale-100":"scale-90"),style:{transitionDelay:P?"300ms":"0ms"},children:[(0,s.jsx)("span",{className:"absolute inset-0 -translate-x-full animate-[shimmer_2s_infinite] bg-gradient-to-r from-transparent via-long/20 to-transparent"}),(0,s.jsxs)("span",{className:"relative flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"size-1.5 rounded-full bg-long animate-pulse"}),g?.length||0," ",e("activeCopies.active")]})]})]}),(0,s.jsxs)("div",{className:(0,b.cn)("flex items-center gap-2 transition-all duration-500",P?"opacity-100 translate-x-0":"opacity-0 translate-x-4"),style:{transitionDelay:P?"200ms":"0ms"},children:[(0,s.jsx)(l.Button,{isIconOnly:!0,variant:"ghost",size:"sm",className:"size-8 min-w-8 bg-foreground
5/5 hover:bg-foreground/10 transition-colors",onPress:z,isDisabled:m,children:(0,s.jsx)(T.RefreshIcon,{className:(0,b.cn)("size-4",m&&"animate-spin")})}),(0,s.jsx)(l.Button,{isIconOnly:!0,variant:"ghost",size:"sm",className:"size-8 min-w-8 bg-foreground/5 hover:bg-foreground/10 transition-colors",onPress:()=>{let e=document.getElementById("active-copies-scroll");e&&(e.scrollBy({left:-320,behavior:"smooth"}),n(Math.max(0,i-320)))},children:(0,s.jsx)(k.ChevronLeftIcon,{className:"size-4 rtl-flip"})}),(0,s.jsx)(l.Button,{isIconOnly:!0,variant:"ghost",size:"sm",className:"size-8 min-w-8 bg-foreground/5 hover:bg-foreground/10 transition-colors",onPress:()=>{let e=document.getElementById("active-copies-scroll");e&&(e.scrollBy({left:320,behavior:"smooth"}),n(i+320))},children:(0,s.jsx)(I.ChevronRightIcon,{className:"size-4 rtl-flip"})})]})]}),(0,s.jsxs)("div",{id:"active-copies-scroll",className:"flex gap-4 overflow-x-auto scrollbar-hide pb-2 -mx-4 px-4",children:[g?.map((e,t)=>(0,s.jsx)(C,{copy:e,followerWalletAddress:N?.walletAddress,isVisible:P,index:t,onPauseResume:F,isProcessing:y.isPending||w.isPending},e.id)),(0,s.jsx)(f.default,{href:"/copy-trading/active",className:(0,b.cn)("group flex-shrink-0 transition-all duration-500 ease-out",P?"opacity-100 translate-y-0 scale-100":"opacity-0 translate-y-6 scale-95"),style:{transitionDelay:P?`${200+100*(g?.length||0)+50}ms`:"0ms"},children:(0,s.jsxs)("div",{className:"relative flex flex-col items-center justify-center w-[180px] h-full min-h-[220px] p-4 rounded-2xl border-2 border-dashed border-foreground
5/10 hover:border-long/30 hover:bg-long/[0.02] transition-all duration-300 cursor-pointer overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-long/0 to-long/0 group-hover:from-long/5 group-hover:to-transparent transition-all duration-300 rounded-2xl"}),(0,s.jsx)("div",{className:"relative flex size-12 items-center justify-center rounded-full bg-foreground/5 mb-3 group-hover:bg-long/10 transition-colors duration-300",children:(0,s.jsx)(o.ArrowRightIcon,{className:"size-5 rtl-flip text-muted group-hover:text-long group-hover:translate-x-0.5 transition-all duration-300"})}),(0,s.jsx)("span",{className:"relative text-sm font-medium text-muted group-hover:text-foreground transition-colors duration-300",children:e("activeCopies.viewAll")})]})})]}),w.recoveryUi]})]})}var B=e.i(353309),R=e.i(484937),_=e.i(259258);let D=(0,e.i(475254).default)("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);var W=e.i(113776);function K({value:e,className:t}){return(0,s.jsx)("div",{className:(0,b.cn)("flex items-center gap-0.5",t),children:[1,2,3,4,5].map(t=>(0,s.jsx)("div",{className:(0,b.cn)("w-1 rounded-full transition-colors",t<=2?"h-2":t<=4?"h-2.5":"h-3",t<=e?e<=2?"bg-long":e<=4?"bg-warning":"bg-short":"bg-foreground
5/10")},t))})}let M={score:"score",roi:"roi",pnl:"pnl",volume:"volume",winrate:"winRate"};function V(){let e=(0,r.useTranslations)("copyTrading"),[a,i]=(0,t.useState)("score"),[o,c]=(0,t.useState)(""),[m,x]=(0,t.useState)(0),u=function(e,s){let[a,r]=(0,t.useState)(e);return(0,t.useEffect)(()=>{let s=setTimeout(()=>{r(e)},300);return()=>{clearTimeout(s)}},[e,300]),a}(o,0),{data:h,isLoading:p,isFetching:j}=(0,W.useTraders)({limit:20,offset:20*m,sortBy:M[a],period:"30d",search:u||void 0});(0,t.useEffect)(()=>{let e=setTimeout(()=>x(0),0);return()=>clearTimeout(e)},[u]);let y=h||[],w=h&&20===h.length;return(0,s.jsx)("section",{className:"border-b border-separator",children:(0,s.jsxs)("div",{className:"relative mx-auto max-w-7xl px-4 py-6 sm:py-10",children:[(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-xl sm:text-2xl font-bold mb-1",children:e("leaderboard.title")}),(0,s.jsx)("p",{className:"text-sm sm:text-base text-muted",children:e("leaderboard.subtitle")})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 sm:gap-3",children:[(0,s.jsxs)("div",{className:"relative flex-1 md:flex-none",children:[(0,s.jsx)(n.SearchIcon,{className:"absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted"}),(0,s.jsx)("input",{type:"text",placeholder:e("leaderboard.searchPlaceholder"),value:o,onChange:e=>c(e.target.value),className:"w-full md:w-[280px] pl-10 pr-4 py-2 rounded-xl bg-foreground
5/[0.03] border border-foreground/10 text-sm placeholder:text-muted focus:outline-none focus:border-foreground/20"})]}),(0,s.jsx)(l.Button,{isIconOnly:!0,variant:"ghost",className:"size-10 min-w-10 bg-foreground/5 shrink-0",children:(0,s.jsx)(D,{className:"size-4"})})]})]}),(0,s.jsx)("div",{className:"mb-4 sm:mb-6 -mx-4 px-4 overflow-x-auto scrollbar-hide",children:(0,s.jsx)(B.Tabs,{selectedKey:a,onSelectionChange:e=>{i(e),x(0)},children:(0,s.jsxs)(B.Tabs.List,{className:"gap-1 sm:gap-2 p-1 bg-foreground/[0.03] rounded-xl min-w-max",children:[(0,s.jsx)(B.Tabs.Tab,{id:"score",className:"text-sm px-3 sm:px-4",children:e("leaderboard.sortBy.score")}),(0,s.jsx)(B.Tabs.Tab,{id:"roi",className:"text-sm px-3 sm:px-4",children:e("leaderboard.sortBy.roi")}),(0,s.jsx)(B.Tabs.Tab,{id:"pnl",className:"text-sm px-3 sm:px-4",children:e("leaderboard.sortBy.pnl")}),(0,s.jsx)(B.Tabs.Tab,{id:"volume",className:"text-sm px-3 sm:px-4",children:e("leaderboard.sortBy.volume")}),(0,s.jsx)(B.Tabs.Tab,{id:"winrate",className:"text-sm px-3 sm:px-4",children:e("leaderboard.sortBy.winRate")})]})})}),(0,s.jsxs)("div",{className:"hidden md:grid grid-cols-[3rem_1fr_4rem_5rem_6rem_5rem_4rem_3.5rem_5rem] gap-3 px-5 py-3 text-sm text-muted font-medium border-b border-foreground
5/5",children:[(0,s.jsx)("div",{children:"#"}),(0,s.jsx)("div",{children:e("leaderboard.columns.trader")}),(0,s.jsx)("div",{className:"text-center",children:e("leaderboard.columns.score")}),(0,s.jsx)("div",{className:"text-right",children:e("leaderboard.columns.roi30d")}),(0,s.jsx)("div",{className:"text-right",children:e("leaderboard.columns.pnl30d")}),(0,s.jsx)("div",{className:"text-right",children:e("leaderboard.columns.volume")}),(0,s.jsx)("div",{className:"text-center",children:e("leaderboard.columns.winRate")}),(0,s.jsx)("div",{className:"text-center",children:e("leaderboard.columns.risk")}),(0,s.jsx)("div",{className:"text-right",children:e("leaderboard.columns.action")})]}),p||j&&u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"hidden md:block divide-y divide-foreground/5",children:Array.from({length:6}).map((e,t)=>(0,s.jsxs)("div",{className:"grid grid-cols-12 gap-4 px-5 py-4 items-center",children:[(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(R.Skeleton,{className:"size-8 rounded-lg"})}),(0,s.jsxs)("div",{className:"col-span-3",children:[(0,s.jsx)(R.Skeleton,{className:"h-5 w-28 mb-1"}),(0,s.jsx)(R.Skeleton,{className:"h-4 w-36"})]}),(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(R.Skeleton,{className:"h-5 w-12 ml-auto"})}),(0,s.jsx)("div",{className:"col-span-2",children:(0,s.jsx)(R.Skeleton,{className:"h-5 w-20 ml-auto"})}),(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(R.Skeleton,{className:"h-4 w-12 ml-auto"})}),(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(R.Skeleton,{className:"h-4 w-10 mx-auto"})}),(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(R.Skeleton,{className:"h-4 w-8 mx-auto"})}),(0,s.jsx)("div",{className:"col-span-2",children:(0,s.jsx)(R.Skeleton,{className:"h-9 w-16 ml-auto rounded-lg"})})]},t))}),(0,s.jsx)("div",{className:"md:hidden space-y-3",children:Array.from({length:4}).map((e,t)=>
5(0,s.jsxs)("div",{className:"p-4 rounded-xl bg-foreground/[0.02] border border-foreground/5",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(R.Skeleton,{className:"size-10 rounded-lg"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(R.Skeleton,{className:"h-5 w-24 mb-1"}),(0,s.jsx)(R.Skeleton,{className:"h-4 w-32"})]})]}),(0,s.jsx)(R.Skeleton,{className:"h-8 w-16 rounded-lg"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-3",children:[(0,s.jsx)(R.Skeleton,{className:"h-12 rounded-lg"}),(0,s.jsx)(R.Skeleton,{className:"h-12 rounded-lg"})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)(R.Skeleton,{className:"h-4 w-20"}),(0,s.jsx)(R.Skeleton,{className:"h-4 w-16"}),(0,s.jsx)(R.Skeleton,{className:"h-4 w-12"})]})]},t))})]}):0===y.length?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-muted",children:[(0,s.jsx)(d.UsersIcon,{className:"size-12 mb-4 opacity-50"}),(0,s.jsx)("p",{children:e("leaderboard.noTraders")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"hidden md:block divide-y divide-foreground
5/5",children:y.map((t,a)=>{let r=t.periodPerformance?.monthRoi,i=t.periodPerformance?.monthPnl,n=r&&0!==r?r:t.metrics?.roi||0,o=i&&0!==i?i:t.metrics?.totalPnl||0,d=parseFloat(t.totalVolume||"0"),c=n>=0,x=o>=0,u=t.metrics?.winRate||0,h=t.metrics?.riskScore||5,p=t.metrics?.tradeCount||0,j=t.displayName||`${t.walletAddress.slice(0,6)}...${t.walletAddress.slice(-4)}`,y=20*m+a+1,w=0===u&&p>0&&(n>0||o>0);return(0,s.jsx)(f.default,{href:`/copy-trading/${t.walletAddress}`,className:"block",children:(0,s.jsxs)("div",{className:"grid grid-cols-[3rem_1fr_4rem_5rem_6rem_5rem_4rem_3.5rem_5rem] gap-3 px-5 py-4 hover:bg-foreground/[0.02] transition-colors cursor-pointer items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)("span",{className:(0,b.cn)("flex size-8 items-center justify-center rounded-lg text-sm font-bold",1===y?"bg-warning/20 text-warning":2===y?"bg-foreground/10 text-foreground/60":3===y?"bg-danger/20 text-danger":"bg-foreground/5 text-muted"),children:y})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"font-semibold truncate",children:j}),(0,s.jsxs)("div",{className:"flex items-center gap-2 text-xs text-muted",children:[(0,s.jsx)("span",{children:`${t.walletAddress.slice(0,6)}...${t.walletAddress.slice(-4)}`}),(0,s.jsx)("span",{children:"•"}),(0,s.jsxs)("span",{children:[p," trades"]})]})]}),(0,s.jsx)("div",{className:"text-center",children:null!=t.performanceScore?(0,s.jsx)("span",{className:(0,b.cn)("text-sm font-bold",t.performanceScore>=60?"text-long":t.performanceScore>=40?"text-warning":"text-muted"),children:t.performanceScore.toFixed(0)}):(0,s.jsx)("span",{className:"text-xs text-muted",children:"—"})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsxs)("div",{className:"flex flex-col items-end gap-0.5",children:[(0,s.jsxs)("div",{className:(0,b.cn)("flex items-center justify-end gap-1 font-bold text-sm",c?"text-long":"text-short"),children:[c?(0,s.jsx)(v.TrendingUpIcon,{className:"size-3"}):(0,s.jsx)(N.TrendingDownIcon,{className:"size-3"}),c?"+":"",n.toFixed(1),"%"]}),w&&(0,s.jsxs)(_.Tooltip,{delay:0,children:[(0,s.jsx)(_.Tooltip.Trigger,{children:(0,s.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-warning/20 text-warning cursor-help",children:e("leaderboard.unrealized")})}),(0,s.jsx)(_.Tooltip.Content,{className:"max-w-[200px] text-xs",children:e("leaderboard.unrealizedTooltip")})]})]})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsxs)("span",{className:(0,b.cn)("font-semibold text-sm",x?"text-long":"text-short"),children:[x?"+":"","$",Math.abs(o).toLocaleString(void 0,{maximumFractionDigits:0})]})}),(0,s.jsx)("div",{className:"text-right",children:(0,s.jsxs)("span",{className:"text-sm text-muted",children:["$",(0,g.formatVolume)(d)]})}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsxs)("span",{className:"font-medium text-sm",children:[u.toFixed(1),"%"]})}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(K,{value:Math.round(h/2)})}),(0,s.jsx)("div",{className:"text-right",onClick:e=>e.preventDefault(),children:(0,s.jsx)(l.Button,{size:"sm",className:"hero-cta-primary font-semibold h-9 px-5",onPress:()=>{},children:e("leaderboard.copy")})})]})},t.id)})}),(0,s.jsx)("div",{className:"md:hidden space-y-3",children:y.map((t,a)=>{let r=t.periodPerformance?.monthRoi,i=t.periodPerformance?.monthPnl,n=r&&0!==r?r:t.metrics?.roi||0,o=i&&0!==i?i:t.metrics?.totalPnl||0,d=parseFloat(t.totalVolume||"0"),c=n>=0,x=o>=0,u=t.metrics?.winRate||0,h=t.metrics?.riskScore||5,p=t.metrics?.tradeCount||0,j=t.displayName||`${t.walletAddress.slice(0,6)}...${t.walletAddress.slice(-4)}`,v=20*m+a+1,N=0===u&&p>0&&(n>0||o>0);return(0,s.jsx)(f.default,{href:`/copy-trading/${t.walletAddress}`,className:"block",children:(0,s.jsxs)("div",{className:"p-4 rounded-xl bg-foreground
5/[0.02] border border-foreground/5 hover:bg-foreground/[0.04] transition-colors",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,s.jsx)("span",{className:(0,b.cn)("flex size-10 shrink-0 items-center justify-center rounded-lg text-sm font-bold",1===v?"bg-warning/20 text-warning":2===v?"bg-foreground/10 text-foreground/60":3===v?"bg-danger/20 text-danger":"bg-foreground/5 text-muted"),children:v}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("div",{className:"font-semibold truncate",children:j}),(0,s.jsxs)("div",{className:"text-xs text-muted truncate",children:[`${t.walletAddress.slice(0,6)}...${t.walletAddress.slice(-4)}`," • ",p," trades"]})]})]}),(0,s.jsx)("div",{onClick:e=>e.preventDefault(),children:(0,s.jsx)(l.Button,{size:"sm",className:"hero-cta-primary font-semibold h-8 px-4 shrink-0",onPress:()=>{},children:e("leaderboard.copy")})})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-3",children:[(0,s.jsxs)("div",{className:"p-3 rounded-lg bg-foreground
5/[0.03]",children:[(0,s.jsx)("div",{className:"text-xs text-muted mb-1",children:e("leaderboard.columns.roi30d")}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("span",{className:(0,b.cn)("text-lg font-bold",c?"text-long":"text-short"),children:[c?"+":"",n.toFixed(1),"%"]}),N&&(0,s.jsxs)(_.Tooltip,{delay:0,children:[(0,s.jsx)(_.Tooltip.Trigger,{children:(0,s.jsx)("span",{className:"text-[9px] px-1 py-0.5 rounded bg-warning/20 text-warning cursor-help",children:e("leaderboard.unrealized")})}),(0,s.jsx)(_.Tooltip.Content,{className:"max-w-[200px] text-xs",children:e("leaderboard.unrealizedTooltip")})]})]})]}),(0,s.jsxs)("div",{className:"p-3 rounded-lg bg-foreground/[0.03]",children:[(0,s.jsx)("div",{className:"text-xs text-muted mb-1",children:e("leaderboard.columns.pnl30d")}),(0,s.jsxs)("span",{className:(0,b.cn)("text-lg font-bold",x?"text-long":"text-short"),children:[x?"+":"","$",Math.abs(o).toLocaleString(void 0,{maximumFractionDigits:0})]})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("span",{className:"text-muted",children:[e("leaderboard.columns.volume"),":"]}),(0,s.jsxs)("span",{className:"font-medium",children:["$",(0,g.formatVolume)(d)]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("span",{className:"text-muted",children:[e("leaderboard.columns.winRate"),":"]}),(0,s.jsxs)("span",{className:"font-medium",children:[u.toFixed(1),"%"]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsxs)("span",{className:"text-muted",children:[e("leaderboard.columns.risk"),":"]}),(0,s.jsx)(K,{value:Math.round(h/2)})]})]})]})},t.id)})})]}),!p&&y.length>0&&(0,s.jsxs)("div",{className:"flex items-center justify-between mt-6 pt-4 border-t border-foreground
5/5",children:[(0,s.jsx)("div",{className:"text-xs sm:text-sm text-muted",children:e("leaderboard.showing",{from:20*m+1,to:20*m+y.length})}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(l.Button,{isIconOnly:!0,variant:"ghost",size:"sm",className:"size-9 min-w-9 bg-foreground/5",onPress:()=>x(e=>Math.max(0,e-1)),isDisabled:!(m>0)||j,children:(0,s.jsx)(k.ChevronLeftIcon,{className:"size-4 rtl-flip"})}),(0,s.jsx)("span",{className:"px-3 py-1.5 rounded-lg bg-foreground/5 text-sm font-medium min-w-[40px] text-center",children:m+1}),(0,s.jsx)(l.Button,{isIconOnly:!0,variant:"ghost",size:"sm",className:"size-9 min-w-9 bg-foreground/5",onPress:()=>{h&&20===h.length&&x(e=>e+1)},isDisabled:!w||j,children:(0,s.jsx)(I.ChevronRightIcon,{className:"size-4 rtl-flip"})})]})]}),j&&!p&&(0,s.jsx)("div",{className:"absolute inset-0 bg-background/50 flex items-center justify-center rounded-xl",children:(0,s.jsx)("div",{className:"text-muted",children:e("leaderboard.loading")})})]})})}var O=e.i(899237);let E=[{id:1,icon:n.SearchIcon,titleKey:"howItWorks.steps.find.title",descriptionKey:"howItWorks.steps.find.description"},{id:2,icon:z.SettingsIcon,titleKey:"howItWorks.steps.configure.title",descriptionKey:"howItWorks.steps.configure.description"},{id:3,icon:c.ZapIcon,titleKey:"howItWorks.steps.copy.title",descriptionKey:"howItWorks.steps.copy.description"},{id:4,icon:O.ShieldCheckIcon,titleKey:"howItWorks.steps.manage.title",descriptionKey:"howItWorks.steps.manage.description"}];function U(){let e=(0,r.useTranslations)("copyTrading");
5return(0,s.jsx)("section",{className:"bg-foreground/[0.02]",children:(0,s.jsxs)("div",{className:"mx-auto max-w-[1800px] px-4 py-16 lg:px-6",children:[(0,s.jsxs)("div",{className:"text-center mb-12",children:[(0,s.jsx)("h2",{className:"text-3xl font-bold mb-3",children:e("howItWorks.title")}),(0,s.jsx)("p",{className:"text-muted text-lg max-w-2xl mx-auto",children:e("howItWorks.subtitle")})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:E.map((t,a)=>{let r=t.icon,l=["animation-delay-100","animation-delay-200","animation-delay-300","animation-delay-400"][a];return(0,s.jsxs)("div",{className:`relative p-6 rounded-2xl bg-background border border-foreground/[0.06] animate-fade-in-up ${l}`,children:[(0,s.jsx)("div",{className:"absolute -top-3 -left-3 flex size-8 items-center justify-center rounded-full bg-foreground text-background text-sm font-bold",children:t.id}),a<E.length-1&&(0,s.jsx)("div",{className:"hidden lg:block absolute top-1/2 -right-3 w-6 h-px bg-foreground/10"}),(0,s.jsx)("div",{className:"flex size-14 items-center justify-center rounded-2xl bg-foreground
5/[0.05] mb-4",children:(0,s.jsx)(r,{className:"size-7 text-muted"})}),(0,s.jsx)("h3",{className:"text-lg font-semibold mb-2",children:e(t.titleKey)}),(0,s.jsx)("p",{className:"text-sm text-muted leading-relaxed",children:e(t.descriptionKey)})]},t.id)})}),(0,s.jsxs)("div",{className:"mt-16 grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 p-4 rounded-xl bg-background border border-foreground/[0.06]",children:[(0,s.jsx)("div",{className:"flex size-12 items-center justify-center rounded-xl bg-long/10",children:(0,s.jsx)(O.ShieldCheckIcon,{className:"size-6 text-long"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold",children:e("howItWorks.features.secure.title")}),(0,s.jsx)("div",{className:"text-sm text-muted",children:e("howItWorks.features.secure.description")})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 p-4 rounded-xl bg-background border border-foreground/[0.06]",children:[(0,s.jsx)("div",{className:"flex size-12 items-center justify-center rounded-xl bg-foreground
5/10",children:(0,s.jsx)(c.ZapIcon,{className:"size-6 text-foreground"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold",children:e("howItWorks.features.instant.title")}),(0,s.jsx)("div",{className:"text-sm text-muted",children:e("howItWorks.features.instant.description")})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 p-4 rounded-xl bg-background border border-foreground/[0.06]",children:[(0,s.jsx)("div",{className:"flex size-12 items-center justify-center rounded-xl bg-foreground/10",children:(0,s.jsx)(z.SettingsIcon,{className:"size-6 text-foreground"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"font-semibold",children:e("howItWorks.features.control.title")}),(0,s.jsx)("div",{className:"text-sm text-muted",children:e("howItWorks.features.control.description")})]})]})]})]})})}function q(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h,{}),(0,s.jsxs)("div",{className:"mx-auto max-w-[1800px] px-4 py-6 lg:px-6",children:[(0,s.jsx)(F,{}),(0,s.jsx)(V,{})]}),(0,s.jsx)(U,{})]})}e.s(["default",()=>q],978203)}]);
6
7//# debugId=c1554414-770e-9531-2d02-d33d8a05d419

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.