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