const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["home-2Hjqd70g.js","app-QjDgb7aF.js","vue-Cm77DuTi.js","charts-3gEHPHRq.js","media-DuCIZ-3n.js","app-CV_aoXZ3.css","MkNotes-DrVlMmnc.js","MkNote-RPFbRjy2.js","MkReactionsViewer-D75lmVQ0.js","MkReactionIcon.vue_vue_type_script_setup_true_lang-D23mNn1N.js","MkReactionsViewer-BppWU_vO.css","share-available-Drgr3YiT.js","get-note-summary-DlGmePWF.js","MkNote-Cnkbws2J.css","MkDateSeparatedList.vue_vue_type_style_index_0_lang-87CjANkN.js","MkDateSeparatedList-BpGeL8oc.css","MkPagination-DzUgufpZ.js","MkPagination-BnLEysHM.css","MkNotes-DZRPyUIF.css","MkTab.vue_vue_type_style_index_0_lang-Cn_SAquG.js","MkTab-C46DpPUK.css","MkRemoteCaution-DJgb88dO.js","MkRemoteCaution-Bg4yFr3F.css","number-BJeYzK3l.js","home-CPAUSPgk.css","reactions-DLqiSrfy.js","reactions-sFOWTSaV.css","clips-Dr0zdZM5.js","clips-CNJFv4LV.css","pages-CpamMhMj.js","MkPagePreview-BvNRcpjL.js","MkPagePreview-BV30OY3d.css","gallery-DGPvLfEu.js","MkGalleryPostPreview-tyRKvgNM.js","MkGalleryPostPreview-Ihg7PdgY.css","gallery-BC8-6-F9.css"])))=>i.map(i=>d[i]);
import{ax as I,aA as L,aV as w,l as n,d as D,x as O,b as r,$ as y,_ as X}from"./app-QjDgb7aF.js";import{b as B,a as m,w as H,f as v,E as d,j as s,g as o,i as h,q as N,k as g,T as q,u as t,p as S,H as U,I as j,d as u}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const G={key:0},z=B({__name:"index",props:{acct:{},page:{default:"home"}},setup(f){const b=u(()=>n(()=>import("./home-2Hjqd70g.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]))),E=u(()=>n(()=>import("./reactions-DLqiSrfy.js"),__vite__mapDeps([25,16,2,1,3,4,5,17,7,8,9,10,11,12,13,26]))),R=u(()=>n(()=>import("./clips-Dr0zdZM5.js"),__vite__mapDeps([27,16,2,1,3,4,5,17,28]))),x=u(()=>n(()=>import("./pages-CpamMhMj.js"),__vite__mapDeps([29,30,1,2,3,4,5,31,16,17]))),P=u(()=>n(()=>import("./gallery-DGPvLfEu.js"),__vite__mapDeps([32,33,1,2,3,4,5,34,16,17,35]))),i=f;I();let a=m(i.page),e=m(null),k=m(null);function _(){i.acct!=null&&(e.value=null,D("users/show",O.parse(i.acct)).then(p=>{e.value=p}).catch(p=>{k.value=p}))}H(()=>i.acct,_,{immediate:!0});const M=v(()=>[]),V=v(()=>e.value?[{key:"home",title:r.ts.overview,icon:"ph-user ph-bold ph-lg"},...y&&y.id===e.value.id||e.value.publicReactions?[{key:"reactions",title:r.ts.reaction,icon:"ph-smiley ph-bold ph-lg"}]:[],...e.value.instance==null?[{key:"clips",title:r.ts.clips,icon:"ph-paperclip ph-bold ph-lg"},{key:"pages",title:r.ts.pages,icon:"ph-file-text ph-bold ph-lg"},{key:"gallery",title:r.ts.gallery,icon:"ph-image-square ph-bold ph-lg"}]:[]]:null);return L(v(()=>e.value?{icon:"ph-user ph-bold ph-lg",title:e.value.name?`${e.value.name} (@${e.value.username})`:`@${e.value.username}`,subtitle:`@${w(e.value)}`,userName:e.value,avatar:e.value,path:`/@${e.value.username}`,share:{title:e.value.name}}:null)),(p,l)=>{const A=d("MkPageHeader"),C=d("MkError"),T=d("MkLoading"),$=d("MkStickyContainer");return s(),o($,null,{header:h(()=>[g(A,{tab:t(a),"onUpdate:tab":l[0]||(l[0]=c=>j(a)?a.value=c:a=c),actions:M.value,tabs:V.value,"display-back-button":!0},null,8,["tab","actions","tabs"])]),default:h(()=>[N("div",null,[g(q,{name:"fade",mode:"out-in"},{default:h(()=>[t(e)?(s(),S("div",G,[t(a)==="home"?(s(),o(t(b),{key:0,user:t(e),onRefresh:l[1]||(l[1]=c=>_())},null,8,["user"])):t(a)==="reactions"?(s(),o(t(E),{key:1,user:t(e)},null,8,["user"])):t(a)==="clips"?(s(),o(t(R),{key:2,user:t(e)},null,8,["user"])):t(a)==="pages"?(s(),o(t(x),{key:3,user:t(e)},null,8,["user"])):t(a)==="gallery"?(s(),o(t(P),{key:4,user:t(e)},null,8,["user"])):U("",!0)])):t(k)?(s(),o(C,{key:1,onRetry:l[2]||(l[2]=c=>_())})):(s(),o(T,{key:2}))]),_:1})])]),_:1})}}}),W=X(z,[["__scopeId","data-v-b0432721"]]);export{W as default};
//# sourceMappingURL=index-D1D0K__7.js.map
