import{u as _}from"./widget-jbnupkVY.js";import{Q as f,b as g,d as x,_ as k}from"./app-QjDgb7aF.js";import{b as v,p as w,g as C,i as b,u as s,H as U,x as B,a as I,E as P,j as o,q as h,D as y}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const r="onlineUsers",D=v({__name:"online-users",props:{widget:{}},emits:["updateProps"],setup(i,{expose:c,emit:p}){const l={transparent:{type:"boolean",default:!0}},e=i,u=p,{widgetProps:n,configure:m}=_(r,l,e,u),t=I(0);return f(()=>{x("get-online-users-count").then(a=>{t.value=a.count})},1e3*15,{immediate:!0,afterMounted:!0}),c({name:r,configure:m,id:e.widget?e.widget.id:null}),(a,M)=>{const d=P("I18n");return o(),w("div",{class:B(["mkw-onlineUsers",{_panel:!s(n).transparent,pad:!s(n).transparent}])},[t.value?(o(),C(d,{key:0,src:s(g).ts.onlineUsersCount,"text-tag":"span",class:"text"},{n:b(()=>[h("b",null,y(t.value),1)]),_:1},8,["src"])):U("",!0)],2)}}}),H=k(D,[["__scopeId","data-v-0bda4244"]]);export{H as default};
//# sourceMappingURL=online-users-1t7MJdUR.js.map
