1import{ak as k,P as f,Z as B,i as r,as as I,aa as b,ad as V,M as g,D as x,bR as C,T as N}from"./app-DrA5MK0h.js";import{_ as z}from"./Cgh6BL2G.js";import{M as q}from"./Cwo-i4VE.js";import{b as M,r as F,w as L,k as m,x as n,B as p,z as R,l as i,h as o,u as t,L as u,H as l,F as y,D as w,a as T,e as E,c as D,f as P}from"./dcGS_SH4.js";import{M as $}from"./DsD7n09U.js";import"./BTqQ_sdn.js";import"./D25gHVQ1.js";const A={class:"_gaps_m"},H={key:0,value:"federation"},O={value:"verySmall"},W={value:"small"},Z={value:"medium"},j={value:"large"},G={value:"veryLarge"},J=["value"],K={class:"_buttons"},Q=M({__name:"statusbar.statusbar",props:{_id:{},userLists:{}},setup(U){const v=U,e=F(k(f.state.statusbars.find(d=>d.id===v._id)));L(()=>e.type,()=>{e.type==="rss"?(e.name="NEWS",e.props.url="http://feeds.afpbb.com/rss/afpbb/afpbbnews",e.props.shuffle=!0,e.props.refreshIntervalSec=120,e.props.display="marquee",e.props.marqueeDuration=100,e.props.marqueeReverse=!1):e.type==="federation"?(e.name="FEDERATION",e.props.refreshIntervalSec=120,e.props.display="marquee",e.props.marqueeDuration=100,e.props.marqueeReverse=!1,e.props.colored=!1):e.type==="userList"&&(e.name="LIST TL",e.props.refreshIntervalSec=120,e.props.display="marquee",e.props.marqueeDuration=100,e.props.marqueeReverse=!1)}),L(e,_);async function _(){const d=f.state.statusbars.findIndex(a=>a.id===v._id),s=k(f.state.statusbars);s[d]=k(e),f.set("statusbars",s)}function S(){f.set("statusbars",f.state.statusbars.filter(d=>d.id!==v._id))}return(d,s)=>(n(),m("div",A,[p(I,{modelValue:e.type,"onUpdate:modelValue":s[0]||(s[0]=a=>e.type=a),placeholder:"Please select"},{label:o(()=>[u(l(t(r).ts.type),1)]),default:o(()=>[s[17]||(s[17]=i("option",{value:"rss"},"RSS",-1)),t(B).federation!=="none"?(n(),m("option",H,"Federation")):R("",!0),s[18]||(s[18]=i("option",{value:"userList"},"User list timeline",-1))]),_:1},8,["modelValue"]),p(b,{modelValue:e.name,"onUpdate:modelValue":s[1]||(s[1]=a=>e.name=a),manualSave:""},{label:o(()=>[u(l(t(r).ts.label),1)]),_:1},8,["modelValue"]),p(V,{modelValue:e.black,"onUpdate:modelValue":s[2]||(s[2]=a=>e.black=a)},{label:o(()=>s[19]||(s[19]=[u("Black")])),_:1},8,["modelValue"]),p(z,{modelValue:e.size,"onUpdate:modelValue":s[3]||(s[3]=a=>e.size=a)},{label:o(()=>[u(l(t(r).ts.size),1)]),default:o(()=>[i("option",O,l(t(r).ts.small)+"+",1),i("option",W,l(t(r).ts.small),1),i("option",Z,l(t(r).ts.medium),1),i("option",j,l(t(r).ts.large),1),i("option",G,l(t(r).ts.large)+"+",1)]),_:1},8,["modelValue"]),e.type==="rss"?(n(),m(y,{key:0},[p(b,{modelValue:e.props.url,"onUpdate:modelValue":s[4]||(s[4]=a=>e.props.url=a),manualSave:"",type:"url"},{label:o(()=>s[20]||(s[20]=[u("URL")])),_:1},8,["modelValue"]),p(V,{modelValue:e.props.shuffle,"onUpdate:modelValue":s[5]||(s[5]=a=>e.props.shuffle=a)},{label:o(()=>[u(l(t(r).ts.shuffle),1)]),_:1},8,["modelValue"]),p(b,{modelValue:e.props.refreshIntervalSec,"onUpdate:modelValue":s[6]||(s[6]=a=>e.props.refreshIntervalSec=a),manualSave:"",type:"number",min:"1"},{label:o(()=>[u(l(t(r).ts.refreshInterval),1)]),_:1},8,["modelValue"]),p(q,{modelValue:e.props.marqueeDuration,"onUpdate:modelValue":s[7]||(s[7]=a=>e.props.marqueeDuration=a),min:5,max:150,step:1},{label:o(()=>[u(l(t(r).ts.speed),1)]),caption:o(()=>[u(l(t(r).ts.fast)+" <-> "+l(t(r).ts.slow),1)]),_:1},8,["modelValue"]),p(V,{modelValue:e.props.marqueeReverse,"onUpdate:modelValue":s[8]||(s[8]=a=>e.props.marqueeReverse=a)},{label:o(()=>[u(l(t(r).ts.reverse),1)]),_:1},8,["modelValue"])],64)):e.type==="federation"?(n(),m(y,{key:1},[p(b,{modelValue:e.props.refreshIntervalSec,"onUpdate:modelValue":s[9]||(s[9]=a=>e.props.refreshIntervalSec=a),manualSave:"",type:"number",min:"1"},{label:o(()=>[u(l(t(r).ts.refreshInterval),1)]),_:1},8,["modelValue"]),p(q,{modelValue:e.props.marqueeDuration,"onUpdate:modelValue":s[10]||(s[10]=a=>e.props.marqueeDuration=a),min:5,max:150,step:1},{label:o(()=>[u(l(t(r).ts.speed),1)]),caption:o(()=>[u(l(t(r).ts.fast)+" <-> "+l(t(r).ts.slow),1)]),_:1},8,["modelValue"]),p(V,{modelValue:e.props.marqueeReverse,"onUpdate:modelValue":s[11]||(s[11]=a=>e.props.marqueeReverse=a)},{label:o(()=>[u(l(t(r).ts.reverse),1)]),_:1},8,["modelValue"]),p(V,{modelValue:e.props.colored,"onUpdate:modelValue":s[12]||(s[12]=a=>e.props.colored=a)},{label:o(()=>
1[u(l(t(r).ts.colored),1)]),_:1},8,["modelValue"])],64)):e.type==="userList"&&d.userLists!=null?(n(),m(y,{key:2},[p(I,{modelValue:e.props.userListId,"onUpdate:modelValue":s[13]||(s[13]=a=>e.props.userListId=a)},{label:o(()=>[u(l(t(r).ts.userList),1)]),default:o(()=>[(n(!0),m(y,null,w(d.userLists,a=>(n(),m("option",{value:a.id},l(a.name),9,J))),256))]),_:1},8,["modelValue"]),p(b,{modelValue:e.props.refreshIntervalSec,"onUpdate:modelValue":s[14]||(s[14]=a=>e.props.refreshIntervalSec=a),manualSave:"",type:"number"},{label:o(()=>[u(l(t(r).ts.refreshInterval),1)]),_:1},8,["modelValue"]),p(q,{modelValue:e.props.marqueeDuration,"onUpdate:modelValue":s[15]||(s[15]=a=>e.props.marqueeDuration=a),min:5,max:150,step:1},{label:o(()=>[u(l(t(r).ts.speed),1)]),caption:o(()=>[u(l(t(r).ts.fast)+" <-> "+l(t(r).ts.slow),1)]),_:1},8,["modelValue"]),p(V,{modelValue:e.props.marqueeReverse,"onUpdate:modelValue":s[16]||(s[16]=a=>e.props.marqueeReverse=a)},{label:o(()=>[u(l(t(r).ts.reverse),1)]),_:1},8,["modelValue"])],64)):R("",!0),i("div",K,[p(g,{danger:"",onClick:S},{default:o(()=>[u(l(t(r).ts.remove),1)]),_:1})])]))}}),X={class:"_gaps_m"},le=M({__name:"statusbar",setup(U){const v=f.reactiveState.statusbars,e=T(null);E(()=>{x("users/lists/list").then(S=>{e.value=S})});async function _(){f.push("statusbars",{id:N(),type:null,black:!1,size:"medium",props:{}})}return D(()=>[]),D(()=>[]),C(()=>({title:r.ts.statusbar,icon:"ti ti-list"})),(S,d)=>(n(),m("div",X,[(n(!0),m(y,null,w(t(v),s=>(n(),P($,{key:s.id},{label:o(()=>[u(l(s.type??t(r).ts.notSet),1)]),suffix:o(()=>[u(l(s.name),1)]),default:o(()=>[p(Q,{_id:s.id,userLists:e.value},null,8,["_id","userLists"])]),_:2},1024))),128)),p(g,{primary:"",onClick:_},{default:o(()=>[u(l(t(r).ts.add),1)]),_:1})]))}});export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.