import{u as f}from"./widget-qjKd4HCd.js";import{Q as _,i as g,f as x,n as k}from"./app-JmgyQoR0.js";import{b as v,a as w,D as C,h as o,t as U,i as b,j as h,u as B,E as I,z as s,H as P,x as y}from"./vue-y3KLWBaS.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}=f(r,l,e,u),t=w(0);return _(()=>{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,E)=>{const d=C("I18n");return o(),U("div",{class:y(["mkw-onlineUsers",{_panel:!s(n).transparent,pad:!s(n).transparent}])},[t.value?(o(),b(d,{key:0,src:s(g).ts.onlineUsersCount,"text-tag":"span",class:"text"},{n:h(()=>[B("b",null,I(t.value),1)]),_:1},8,["src"])):P("",!0)],2)}}}),j=k(D,[["__scopeId","data-v-0bda4244"]]);export{j as default};
