import{b as h,w as M,j as e,p as r,g as p,i as n,u as o,F as v,G as q,q as y,k,T as B,H as _,a as u,E as x}from"./vue-Cm77DuTi.js";import{M as L}from"./MkMarquee-C6oz-io9.js";import{Q as w,al as j,d as C,_ as N}from"./app-QjDgb7aF.js";import{g as b}from"./get-note-summary-DlGmePWF.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const S={key:0,class:"osdsvwzy"},T=["src"],V=h({__name:"statusbar-user-list",props:{userListId:{},display:{},marqueeDuration:{},marqueeReverse:{type:Boolean},oneByOneInterval:{},refreshIntervalSec:{}},setup(t){const a=t,i=u([]),l=u(!0);let m=u(0);const c=()=>{a.userListId!=null&&C("notes/user-list-timeline",{listId:a.userListId}).then(d=>{i.value=d,l.value=!1,m.value++})};return M(()=>a.userListId,c),w(c,Math.max(5e3,a.refreshIntervalSec*1e3),{immediate:!0,afterMounted:!0}),(d,f)=>{const I=x("Mfm"),g=x("MkA");return l.value?_("",!0):(e(),r("span",S,[t.display==="marquee"?(e(),p(B,{key:0,name:"change",mode:"default"},{default:n(()=>[(e(),p(L,{key:o(m),duration:t.marqueeDuration,reverse:t.marqueeReverse},{default:n(()=>[(e(!0),r(v,null,q(i.value,s=>(e(),r("span",{key:s.id,class:"item"},[y("img",{class:"avatar",src:s.user.avatarUrl,decoding:"async"},null,8,T),k(g,{class:"text",to:o(j)(s)},{default:n(()=>[k(I,{class:"text",text:o(b)(s),plain:!0,nowrap:!0,"custom-emojis":s.emojis},null,8,["text","custom-emojis"])]),_:2},1032,["to"]),f[0]||(f[0]=y("span",{class:"divider"},null,-1))]))),128))]),_:1},8,["duration","reverse"]))]),_:1})):t.display==="oneByOne"?(e(),r(v,{key:1},[],64)):_("",!0)]))}}}),U=N(V,[["__scopeId","data-v-7f179eac"]]);export{U as default};
//# sourceMappingURL=statusbar-user-list-iRPWCkmk.js.map
