import{_ as m}from"./Badge.vue_vue_type_script_setup_true_lang.871fa249.js";import{b as d,E as f,u as c,o as a,f as l,F,r as h,j as y,c as g,w as k,i as x,t as i,h as B}from"./entry.5c8819da.js";const b={key:0,class:"flex flex-1 flex-wrap gap-4"},E={class:"ml-2 font-semibold"},C=d({__name:"ReleasesReactions",props:{release:{type:Object,required:!0}},setup(p){const o=p,_={"+1":"\u{1F44D}","-1":"\u{1F44E}",laugh:"\u{1F602}",hooray:"\u{1F389}",confused:"\u{1F615}",heart:"\u2764\uFE0F",rocket:"\u{1F680}",eyes:"\u{1F440}"},n=f(()=>{var s,r;return(s=o.release)!=null&&s.reactions?Object.entries((r=o.release)==null?void 0:r.reactions).reduce((t,[e,u])=>(["url","total_count"].includes(e)||u===0||t.push({key:e,value:u}),t),[]):{}});return(s,r)=>{const t=m;return c(n).length?(a(),l("div",b,[(a(!0),l(F,null,h(c(n),e=>(a(),g(t,{key:e.key,type:"gray"},{default:k(()=>[x(i(_[e.key])+" ",1),B("span",E,i(e.value),1)]),_:2},1024))),128))])):y("",!0)}}});export{C as _};
