import{R as u,f as l,c as i,h as c,o as g,n as m}from"./index-CipWZKo_.js";const v=u({__name:"ServerStatusBadge",props:{indicators:{}},setup(s){const r=s,e=l(()=>r.indicators?o(Object.values(r.indicators)):"Unknown");function o(a){let t="Unknown";return a.some(n=>n.Status==="Warning")&&(t="Warning"),a.some(n=>n.Status==="Critical")&&(t="Critical"),a.every(n=>n.Status==="Ok")&&(t="Ok"),t}return(a,t)=>e.value?(g(),i("div",{key:0,class:m(["tw-size-4 tw-rounded-full tw-flex-none",{"tw-bg-green-500":e.value==="Ok","tw-bg-orange-500":e.value==="Warning","tw-bg-red-500":e.value==="Critical","tw-bg-gray-300":e.value==="Unknown"}])},null,2)):c("",!0)}});export{v as _};
