import{D as e,E as t,On as n,Zn as r,b as i,g as a,mt as o,tr as s,y as c}from"./runtime-core.esm-bundler-B8D2lM98.js";import{Kt as l,Nt as u}from"./app-CtNjz4OX.js";var d=[`aria-label`,`title`],f={key:0,class:`inline-flex items-center gap-1`},p={key:1,class:`inline-flex items-center gap-1`},m={__name:`NewsStats`,props:{post:{type:Object,required:!0},light:{type:Boolean,default:!1}},setup(m){let h=m,g=a(()=>typeof h.post.likes==`number`),_=a(()=>typeof h.post.comments==`number`),v=a(()=>[g.value?`${h.post.likes} ${h.post.likes===1?`Herz`:`Herzen`}`:null,_.value?`${h.post.comments} ${h.post.comments===1?`Kommentar`:`Kommentare`}`:null].filter(Boolean).join(`, `));return(a,h)=>g.value||_.value?(o(),i(`span`,{key:0,class:r([`inline-flex items-center gap-3 text-xs tabular-nums`,m.light?`text-white/85`:`text-muted-foreground`]),role:`img`,"aria-label":v.value,title:v.value},[g.value?(o(),i(`span`,f,[e(n(l),{class:r([`size-3.5`,m.post.liked?m.light?`fill-current`:`fill-current text-brand-text`:``]),"aria-hidden":`true`},null,8,[`class`]),t(s(m.post.likes),1)])):c(``,!0),_.value?(o(),i(`span`,p,[e(n(u),{class:`size-3.5`,"aria-hidden":`true`}),t(s(m.post.comments),1)])):c(``,!0)],10,d)):c(``,!0)}};export{m as t};