1import{i as s,aL as y}from"./app-CFqP6G7J.js";import{M as g}from"./CJffzlVT.js";import{_ as x}from"./BHrhbd9E.js";import{b as B,a as C,c as M,z as m,g as t,h as r,j as u,l as i,C as _,q as n,M as N,N as b,s as a,A as l}from"./BPQUB-Wc.js";import"./C6RkJzSU.js";const w={value:"pinned"},V={value:"featured"},L={value:null},R={value:"all"},F={value:"files"},S={key:0,class:"_gaps"},$={key:0,class:"_fullinfo"},z={key:1,class:"_panel"},G=B({__name:"index.timeline",props:{user:{}},setup(f){const p=f,e=C("all"),v=M(()=>e.value==="featured"?{endpoint:"users/featured-notes",limit:10,params:{userId:p.user.id}}:{endpoint:"users/notes",limit:10,params:{userId:p.user.id,withRenotes:e.value==="all",withReplies:e.value==="all",withChannelNotes:e.value==="all",withFiles:e.value==="files"}});return(d,c)=>{const h=m("MkResult"),k=m("MkStickyContainer");return t(),r(k,null,{header:u(()=>[_(x,{modelValue:e.value,"onUpdate:modelValue":c[0]||(c[0]=o=>e.value=o),class:"pages-user-index-timeline-tab-BpPc"},{default:u(()=>[a("option",w,l(n(s).ts.pinnedOnly),1),a("option",V,l(n(s).ts.featured),1),a("option",L,l(n(s).ts.notes),1),a("option",R,l(n(s).ts.all),1),a("option",F,l(n(s).ts.withFiles),1)]),_:1},8,["modelValue","class"])]),default:u(()=>[e.value==="pinned"?(t(),i("div",S,[d.user.pinnedNotes.length<1?(t(),i("div",$,[_(h,{type:"empty",text:n(s).ts.noNotes},null,8,["text"])])):(t(),i("div",z,[(t(!0),i(N,null,b(d.user.pinnedNotes,o=>(t(),r(y,{key:o.id,class:"note",note:o,pinned:!0},null,8,["class","note"]))),128))]))])):(t(),r(g,{key:1,noGap:!0,pagination:v.value,class:"pages-user-index-timeline-tl-Bt0L"},null,8,["pagination","class"]))]),_:1})}}});
1export{G 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.