import{C as e,D as t,E as n,F as r,H as i,I as a,L as o,Q as s,S as c,T as l,Y as u,Z as d,_ as f,b as p,r as m,x as h}from"./app-C9uIiLXY.js";import{t as g}from"./i18n-av0G_Jga.js";import{n as _}from"./AppLayout-Da7WqqJy.js";import{t as v}from"./CategoryIcon-6yo0jwBY.js";var y={class:`min-w-0 flex-1`},b={class:`flex items-center gap-2`},x={key:0,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`#e8830c`},S={class:`truncate text-base font-bold tracking-tight`},C={key:1,class:`inline-flex shrink-0 items-center gap-1.5 rounded-full bg-rose-100 px-2.5 py-0.5 text-xs font-bold text-rose-600`},w={class:`mt-1.5 line-clamp-2 text-sm text-ink-2`},T={class:`mt-2.5 flex flex-wrap items-center gap-x-3.5 gap-y-1.5 text-[13px] text-ink-muted`},E={class:`font-semibold text-ink-2`},D={key:1,class:`flex items-center gap-1`},O={class:`font-semibold`},k={class:`hidden shrink-0 flex-col items-end justify-center gap-2 sm:flex`},A={class:`text-center`},j={class:`block text-[15px]`},M={class:`text-[11px] uppercase tracking-wide text-ink-muted`},N=t({__name:`TopicCard`,props:{topic:{}},setup(t){return(o,N)=>(r(),h(u(m),{href:`/t/${t.topic.slug}`,class:`q-post flex gap-4 rounded-c border border-line bg-surface p-4 shadow-sm transition hover:-translate-y-0.5 hover:border-primary/60 hover:shadow-md`},{default:i(()=>[n(_,{avatar:t.topic.author,size:44},null,8,[`avatar`]),p(`div`,y,[p(`div`,b,[t.topic.isPinned?(r(),e(`svg`,x,[...N[0]||=[p(`path`,{d:`M12 2l3 7h7l-5.5 4 2 7L12 16l-6.5 4 2-7L2 9h7z`},null,-1)]])):c(``,!0),p(`h3`,S,s(t.topic.title),1),t.topic.isLive?(r(),e(`span`,C,[N[1]||=p(`span`,{class:`h-1.5 w-1.5 animate-pulse rounded-full bg-rose-500`},null,-1),l(s(u(g)(`LIVE`)),1)])):c(``,!0)]),p(`p`,w,s(t.topic.excerpt),1),p(`div`,T,[t.topic.category?(r(),e(`span`,{key:0,class:`inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-semibold`,style:d({color:t.topic.category.color,background:t.topic.category.color+`22`})},[n(v,{icon:t.topic.category.icon},null,8,[`icon`]),l(` `+s(t.topic.category.name),1)],4)):c(``,!0),p(`span`,E,s(t.topic.author.name),1),p(`span`,null,`· `+s(t.topic.lastActivity),1),t.topic.reactionTotal?(r(),e(`span`,D,[(r(!0),e(f,null,a(t.topic.reactions.slice(0,3),t=>(r(),e(`span`,{key:t.emoji},s(t.emoji),1))),128)),p(`span`,O,s(t.topic.reactionTotal),1)])):c(``,!0)])]),p(`div`,k,[p(`div`,A,[p(`b`,j,s(t.topic.replyCount),1),p(`span`,M,s(u(g)(`replies`)),1)])])]),_:1},8,[`href`]))}}),P={class:`flex flex-col items-center justify-center rounded-2xl border border-dashed border-line px-6 py-14 text-center`},F={key:0,class:`mb-4 grid h-14 w-14 place-items-center rounded-2xl bg-primary/10 text-2xl`},I={class:`text-base font-bold text-ink`},L={key:1,class:`mt-1.5 max-w-sm text-sm text-ink-2`},R={key:2,class:`mt-5 flex flex-wrap items-center justify-center gap-3`},z=t({__name:`EmptyState`,props:{icon:{},title:{},description:{}},setup(t){return(n,i)=>(r(),e(`div`,P,[t.icon?(r(),e(`div`,F,s(t.icon),1)):c(``,!0),p(`h3`,I,s(t.title),1),t.description?(r(),e(`p`,L,s(t.description),1)):c(``,!0),n.$slots.default?(r(),e(`div`,R,[o(n.$slots,`default`)])):c(``,!0)]))}});export{N as n,z as t};