import{u as p}from"./widget-qjKd4HCd.js";import{y,n as h}from"./app-JmgyQoR0.js";import{b as u,D as f,h as $,t as b,u as n,x as s,l as g,j as v,K as C,E as t,z as w,y as k}from"./vue-y3KLWBaS.js";const M={class:"_panel"},I=["src"],a="serverInfo",P=u({__name:"server-info",props:{widget:{}},emits:["updateProps"],setup(i,{expose:c,emit:r}){const l={},e=i,d=r,{widgetProps:j,configure:_}=p(a,l,e,d);return c({name:a,configure:_,id:e.widget?e.widget.id:null}),(o,K)=>{const m=f("MkA");return $(),b("div",M,[n("div",{class:s(o.$style.container),style:k({backgroundImage:`url(${o.$instance.bannerUrl})`})},[n("div",{class:s(o.$style.iconContainer)},[n("img",{src:o.$instance.iconUrl||o.$instance.faviconUrl||"/favicon.ico",alt:"Instance logo",class:s(o.$style.icon)},null,10,I)],2),n("div",{class:s(o.$style.bodyContainer)},[n("div",{class:s(o.$style.body)},[g(m,{class:s(o.$style.name),to:"/about",behavior:"window"},{default:v(()=>[C(t(o.$instance.name),1)]),_:1},8,["class"]),n("div",{class:s(o.$style.host)},t(w(y)),3)],2)],2)],6)])}}}),z="_container_t0h7o_1",B="_iconContainer_t0h7o_8",D="_icon_t0h7o_8",N="_bodyContainer_t0h7o_23",U="_body_t0h7o_23",V="_name_t0h7o_35",A="_host_t0h7o_36",E={container:z,iconContainer:B,icon:D,bodyContainer:N,body:U,name:V,host:A},S={$style:E},F=h(P,[["__cssModules",S]]);export{F as default};
