import{_ as d}from"./MkMiniChart.vue_vue_type_script_setup_true_lang-p7s6jgEI.js";import{T as u,V as c,_ as m}from"./app-QjDgb7aF.js";import{b as h,j as o,p as f,x as y,q as n,D as t,J as g,u as i,g as k,H as v,a as p}from"./vue-Cm77DuTi.js";const M=["src"],N={class:"body"},V={class:"host"},b={class:"sub _monospace"},w=h({__name:"MkInstanceCardMini",props:{instance:{}},setup(e){const l=e;let a=p(null);u("charts/instance",{host:l.instance.host,limit:17,span:"day"}).then(s=>{s.requests.received.splice(0,1),a.value=s.requests.received});function r(s){return c(s.iconUrl,"preview")??c(s.faviconUrl,"preview")??"/client-assets/dummy.png"}return(s,I)=>(o(),f("div",{class:y([s.$style.root,{yellow:e.instance.isNotResponding,red:e.instance.isBlocked,purple:e.instance.isSilenced,gray:e.instance.isSuspended}])},[n("img",{class:"icon",src:r(e.instance),alt:""},null,8,M),n("div",N,[n("span",V,t(e.instance.name??e.instance.host),1),n("span",b,[n("b",null,t(e.instance.host),1),g(" / "+t(e.instance.softwareName||"?")+" "+t(e.instance.softwareVersion),1)])]),i(a)?(o(),k(d,{key:0,class:"chart",src:i(a)},null,8,["src"])):v("",!0)],2))}}),x="_root_hnk4j_1",B={root:x},C={$style:B},U=m(w,[["__cssModules",C]]);export{U as M};
//# sourceMappingURL=MkInstanceCardMini-D7K40nnW.js.map
