1import{d as h,f as T,V as k,O as b,P as H,W as C,c as u,e as N,n as _,D as V,X as B,i as a,K as f,Y as M,a as P,u as S,j as $,k as R,h as g,w as p,l as j,m as A,_ as D,p as O,t as W,q}from"./DREHXjTd.js";import{_ as E}from"./CWI2W-Za.js";import{_ as I}from"./D9AS87yQ.js";import{f as K}from"./BQ5JJhpA.js";import"./FTxbCxnw.js";import"./Bq_sSO39.js";import"./BxIuzSuc.js";import"./DT0ENWEa.js";import"./DhvdbkJf.js";import"./BNMhYjt1.js";import"./Dhl8RJdc.js";import"./BkxkImH3.js";import"./Dy3eQG4e.js";import"./4jAdUL_M.js";import"./Bw0n4hiA.js";import"./YGirYfaB.js";import"./CB5mdFk9.js";import"./GctFFk09.js";import"./8R9WQNKl.js";import"./Crde6C7V.js";const L=h({__name:"TimelineHome",async setup(v){let e,s;const{isSupported:i,effectiveType:t}=M(),d=f(()=>i.value&&t.value&&["slow-2g","2g","3g"].includes(t.value)),r=f(()=>d.value?10:30),m=T().v1.timelines.home.list({limit:r.value}),l=k(o=>o.user.subscribe());function w(o){return K(o,"home")}let c;if(b.value!==void 0){const{client:o}=H();try{const n=o.value.v1.followedTags.list();c=([e,s]=C(()=>n.values().next()),e=await e,s(),e).value??[]}catch{c=[]}}return(o,n)=>{const x=E,y=I;return u(),N("div",null,[_(x,{"draft-key":"home"}),n[0]||(n[0]=V("div",{h:"1px","w-auto":"","bg-border":"","mb-3":""},null,-1)),_(y,B({"followed-tags":a(c)},{paginator:a(m),stream:a(l)},{preprocess:w,context:"home"}),null,16,["followed-tags"])])}}}),U=Object.assign(L,{__name:"TimelineHome"}),ue=h({__name:"home",setup(v){const e=P(),s=S();e.path==="/signin/callback"&&s.push("/home");const{t:i}=$();return R({title:()=>i("nav.home")}),(t,d)=>{const r=D,m=U,l=q;return u(),g(l,null,{title:p(()=>[_(r,{as:"router-link",to:"/home",icon:"i-ri:home-5-line"},{default:p(()=>[O(W(t.$t("nav.home")),1)]),_:1})]),default:p(()=>[("isHydrated"in t?t.isHydrated:a(j))?(u(),g(m,{key:0})):A("",!0)]),_:1})}}});
1export{ue 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.