import{S as X,V as B,a as v}from"./virtual-BQH0NzJY.js";import{X as S}from"./MkNotes-DrVlMmnc.js";import{_ as D}from"./MkTab.vue_vue_type_style_index_0_lang-Cn_SAquG.js";import{b as i,aA as H,v as x,t as I}from"./app-QjDgb7aF.js";import{b as M,E as d,j as u,g as m,i as n,k as a,q as h,D as w,u as e,I as y,H as P,a as V,w as U,f as _,c as A}from"./vue-Cm77DuTi.js";import{X as F}from"./explore.users-CF98Gym3.js";import"./media-DuCIZ-3n.js";import"./MkNote-RPFbRjy2.js";import"./MkReactionsViewer-D75lmVQ0.js";import"./MkReactionIcon.vue_vue_type_script_setup_true_lang-D23mNn1N.js";import"./share-available-Drgr3YiT.js";import"./get-note-summary-DlGmePWF.js";import"./MkDateSeparatedList.vue_vue_type_style_index_0_lang-87CjANkN.js";import"./MkPagination-DzUgufpZ.js";import"./charts-3gEHPHRq.js";import"./MkUserList-DmXj88Tc.js";import"./MkUserInfo-Brwzwv5t.js";import"./MkNumber.vue_vue_type_script_setup_true_lang-DCqylJGQ.js";import"./animation-wAdLxVJ8.js";import"./number-BJeYzK3l.js";import"./MkFolder-DXwFMXde.js";const T={value:"local"},j={value:"remote"},q=M({__name:"explore.featured",setup(C){const s={endpoint:"notes/featured",limit:10,origin:"local",offsetMode:!0,params:{days:14}},t={endpoint:"notes/featured",limit:20,offsetMode:!0,params:{origin:"remote",days:7}};let o=V("local");return(g,r)=>{const c=d("MkSpacer");return u(),m(c,{"content-max":800},{default:n(()=>[a(D,{modelValue:e(o),"onUpdate:modelValue":r[0]||(r[0]=l=>y(o)?o.value=l:o=l),style:{"margin-bottom":"var(--margin)"}},{default:n(()=>[h("option",T,w(e(i).ts.local),1),h("option",j,w(e(i).ts.remote),1)]),_:1},8,["modelValue"]),e(o)==="local"?(u(),m(S,{key:0,pagination:s})):e(o)==="remote"?(u(),m(S,{key:1,pagination:t})):P("",!0)]),_:1})}}}),z={class:"lznhrdub"},ue=M({__name:"explore",setup(C){const s=["users","featured"];let t=V(s[0]);U(t,()=>f(s.indexOf(t.value)));const o=_(()=>[]),g=_(()=>[{key:"users",icon:"ph-users ph-bold ph-lg",title:i.ts.users},{key:"featured",icon:"ph-lightning ph-bold ph-lg",title:i.ts.featured}]);H(_(()=>({title:i.ts.explore,icon:"ph-hash ph-bold ph-lg"})));let r=null;function c(p){r=p,f(s.indexOf(t.value))}function l(){t.value=s[r.activeIndex]}function f(p){r.slideTo(p)}return A(()=>{f(s.indexOf(r.activeIndex))}),(p,k)=>{const O=d("MkPageHeader"),N=d("MkSpacer"),R=d("MkStickyContainer");return u(),m(R,null,{header:n(()=>[a(O,{tab:e(t),"onUpdate:tab":k[0]||(k[0]=b=>y(t)?t.value=b:t=b),actions:o.value,tabs:g.value},null,8,["tab","actions","tabs"])]),default:n(()=>[h("div",z,[a(N,{"content-max":1200},{default:n(()=>[a(e(X),{"round-lengths":!0,"touch-angle":25,threshold:10,centeredSlides:!0,modules:[e(B)],"space-between":20,virtual:!0,"allow-touch-move":e(x).state.swipeOnMobile&&(e(I)!=="desktop"||e(x).state.swipeOnDesktop),onSwiper:c,onSlideChange:l},{default:n(()=>[a(e(v),null,{default:n(()=>[a(F)]),_:1}),a(e(v),null,{default:n(()=>[a(q)]),_:1})]),_:1},8,["modules","allow-touch-move"])]),_:1})])]),_:1})}}});export{ue as default};
//# sourceMappingURL=explore-IoKxPFNp.js.map
