import{b as v,j as e,p as s,g as f,i as m,u as k,F as d,G as y,q as p,D as _,T as x,H as h,a as o}from"./vue-Cm77DuTi.js";import{M as B}from"./MkMarquee-C6oz-io9.js";import{Q as q,_ as b}from"./app-QjDgb7aF.js";import{s as g}from"./shuffle-BgiUUhZ3.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const I={key:0,class:"xbhtxfms"},D={class:"item"},M=["href","title"],C=v({__name:"statusbar-rss",props:{url:{},shuffle:{type:Boolean},display:{},marqueeDuration:{},marqueeReverse:{type:Boolean},oneByOneInterval:{},refreshIntervalSec:{}},setup(t){const r=t,l=o([]),u=o(!0);let i=o(0);return q(()=>{fetch(`/api/fetch-rss?url=${r.url}`,{}).then(c=>{c.json().then(a=>{r.shuffle&&g(a.items),l.value=a.items,u.value=!1,i.value++})})},Math.max(5e3,r.refreshIntervalSec*1e3),{immediate:!0,afterMounted:!0}),(c,a)=>u.value?h("",!0):(e(),s("span",I,[t.display==="marquee"?(e(),f(x,{key:0,name:"change",mode:"default"},{default:m(()=>[(e(),f(B,{key:k(i),duration:t.marqueeDuration,reverse:t.marqueeReverse},{default:m(()=>[(e(!0),s(d,null,y(l.value,n=>(e(),s("span",D,[p("a",{class:"link",href:n.link,rel:"nofollow noopener",target:"_blank",title:n.title},_(n.title),9,M),a[0]||(a[0]=p("span",{class:"divider"},null,-1))]))),256))]),_:1},8,["duration","reverse"]))]),_:1})):t.display==="oneByOne"?(e(),s(d,{key:1},[],64)):h("",!0)]))}}),O=b(C,[["__scopeId","data-v-3078aeb5"]]);export{O as default};
//# sourceMappingURL=statusbar-rss-CRPgN-Ox.js.map
