import{C as e,D as t,E as n,F as r,H as i,I as a,Q as o,S as s,X as c,Y as l,_ as u,b as d,n as f,r as p,x as m}from"./app-Bt4nnQei.js";import{t as h}from"./i18n-DrH_3-aV.js";import{n as g,t as _}from"./AppLayout-Cd6-hlJg.js";var v={class:`mx-auto max-w-3xl`},y={class:`mb-5`},b={class:`text-2xl font-extrabold tracking-tight`},x={class:`text-sm text-ink-muted`},S={key:0,class:`rounded-c border border-dashed border-line bg-surface p-12 text-center text-ink-muted`},C={key:1,class:`overflow-hidden rounded-c border border-line bg-surface shadow-sm`},w={key:0},T={key:1},E={class:`min-w-0 flex-1`},D={class:`flex items-center gap-1.5`},O={class:`truncate font-bold`},k={key:0,class:`rounded bg-primary/15 px-1.5 py-0.5 text-[10px] font-semibold uppercase text-primary`},A={class:`text-xs text-ink-muted`},j={class:`shrink-0 text-right`},M={class:`text-lg font-extrabold tracking-tight text-primary`},N={class:`text-[11px] uppercase tracking-wide text-ink-muted`},P=t({__name:`Leaderboard`,props:{members:{}},setup(t){let P=e=>e===0?`🥇`:e===1?`🥈`:e===2?`🥉`:``;return(F,I)=>(r(),e(u,null,[n(l(f),{title:l(h)(`Leaderboard`)},null,8,[`title`]),n(_,null,{default:i(()=>[d(`div`,v,[d(`div`,y,[d(`h1`,b,o(l(h)(`Leaderboard`)),1),d(`p`,x,o(l(h)(`Top members by reputation — posts, topics started, and reactions received.`)),1)]),t.members.length?(r(),e(`div`,C,[(r(!0),e(u,null,a(t.members,(t,a)=>(r(),m(l(p),{key:t.id,href:t.url,class:c([`flex items-center gap-4 border-b border-line px-5 py-3.5 last:border-0 hover:bg-surface-2`,a<3?`bg-primary/[0.04]`:``])},{default:i(()=>[d(`div`,{class:c([`w-8 shrink-0 text-center text-lg font-extrabold`,a<3?``:`text-ink-muted`])},[P(a)?(r(),e(`span`,w,o(P(a)),1)):(r(),e(`span`,T,o(a+1),1))],2),n(g,{avatar:t,size:52},null,8,[`avatar`]),d(`div`,E,[d(`div`,D,[d(`span`,O,o(t.name),1),t.isAdmin?(r(),e(`span`,k,o(l(h)(`Admin`)),1)):s(``,!0)]),d(`div`,A,o(l(h)(`{posts} posts · {topics} topics · {reactions} reactions`,{posts:t.posts,topics:t.topics,reactions:t.reactionsReceived})),1)]),d(`div`,j,[d(`div`,M,o(t.score),1),d(`div`,N,o(l(h)(`points`)),1)])]),_:2},1032,[`href`,`class`]))),128))])):(r(),e(`div`,S,o(l(h)(`No activity yet.`)),1))])]),_:1})],64))}});export{P as default};