import{F as m}from"./section-yxO0GkeZ.js";import{M as a}from"./MkKeyValue-qNXtpS4q.js";import{f as c,$ as r,a4 as g,i as l}from"./app-JmgyQoR0.js";import{n as u}from"./number-rE36t967.js";import{b as C}from"./bytes-7YLXyrly.js";import{b as k,a as p,e as f,c as v,D as w,h as d,t as F,l as s,j as t,K as o,u as V,E as n,z as e,i as h,H as b}from"./vue-y3KLWBaS.js";const L={class:"_formRoot"},M={class:"_monospace"},I=k({__name:"account-info",setup(R){const i=p({});return f(()=>{c("users/stats",{userId:r.id}).then(y=>{i.value=y})}),v(()=>[]),v(()=>[]),g({title:l.ts.accountInfo,icon:"ph-info ph-bold ph-lg"}),(y,x)=>{const _=w("MkTime");return d(),F("div",L,[s(a,null,{key:t(()=>[o("ID")]),value:t(()=>[V("span",M,n(e(r).id),1)]),_:1}),s(m,null,{default:t(()=>[s(a,null,{key:t(()=>[o(n(e(l).ts.registeredDate),1)]),value:t(()=>[s(_,{time:e(r).createdAt,mode:"detail"},null,8,["time"])]),_:1})]),_:1}),i.value?(d(),h(m,{key:0},{label:t(()=>[o(n(e(l).ts.statistics),1)]),default:t(()=>[s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.notesCount),1)]),value:t(()=>[o(n(e(u)(i.value.notesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.repliesCount),1)]),value:t(()=>[o(n(e(u)(i.value.repliesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.renotesCount),1)]),value:t(()=>[o(n(e(u)(i.value.renotesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.repliedCount),1)]),value:t(()=>[o(n(e(u)(i.value.repliedCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.renotedCount),1)]),value:t(()=>[o(n(e(u)(i.value.renotedCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.pollVotesCount),1)]),value:t(()=>[o(n(e(u)(i.value.pollVotesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.pollVotedCount),1)]),value:t(()=>[o(n(e(u)(i.value.pollVotedCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.sentReactionsCount),1)]),value:t(()=>[o(n(e(u)(i.value.sentReactionsCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.receivedReactionsCount),1)]),value:t(()=>[o(n(e(u)(i.value.receivedReactionsCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.noteFavoritesCount),1)]),value:t(()=>[o(n(e(u)(i.value.noteFavoritesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.followingCount),1)]),value:t(()=>[o(n(e(u)(i.value.followingCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.followingCount)+" ("+n(e(l).ts.local)+")",1)]),value:t(()=>[o(n(e(u)(i.value.localFollowingCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.followingCount)+" ("+n(e(l).ts.remote)+")",1)]),value:t(()=>[o(n(e(u)(i.value.remoteFollowingCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.followersCount),1)]),value:t(()=>[o(n(e(u)(i.value.followersCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.followersCount)+" ("+n(e(l).ts.local)+")",1)]),value:t(()=>[o(n(e(u)(i.value.localFollowersCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.followersCount)+" ("+n(e(l).ts.remote)+")",1)]),value:t(()=>[o(n(e(u)(i.value.remoteFollowersCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.pageLikesCount),1)]),value:t(()=>[o(n(e(u)(i.value.pageLikesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.pageLikedCount),1)]),value:t(()=>[o(n(e(u)(i.value.pageLikedCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.driveFilesCount),1)]),value:t(()=>[o(n(e(u)(i.value.driveFilesCount)),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o(n(e(l).ts.driveUsage),1)]),value:t(()=>[o(n(e(C)(i.value.driveUsage)),1)]),_:1})]),_:1})):b("",!0),s(m,null,{label:t(()=>[o(n(e(l).ts.other),1)]),default:t(()=>[s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o("emailVerified")]),value:t(()=>[o(n(e(r).emailVerified?e(l).ts.yes:e(l).ts.no),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o("twoFactorEnabled")]),value:t(()=>[o(n(e(r).twoFactorEnabled?e(l).ts.yes:e(l).ts.no),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o("securityKeys")]),value:t(()=>[o(n(e(r).securityKeys?e(l).ts.yes:e(l).ts.no),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o("usePasswordLessLogin")]),value:t(()=>[o(n(e(r).usePasswordLessLogin?e(l).ts.yes:e(l).ts.no),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o("isModerator")]),value:t(()=>[o(n(e(r).isModerator?e(l).ts.yes:e(l).ts.no),1)]),_:1}),s(a,{oneline:"",style:{margin:"1em 0"}},{key:t(()=>[o("isAdmin")]),value:t(()=>[o(n(e(r).isAdmin?e(l).ts.yes:e(l).ts.no),1)]),_:1})]),_:1})])}}});export{I as default};
