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