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