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