import{F as h}from"./suspense-lwY0NW4i.js";import{M as y}from"./MkKeyValue-qNXtpS4q.js";import{a4 as M,i as x,f as S}from"./app-JmgyQoR0.js";import{b as C}from"./bytes-7YLXyrly.js";import{n as F}from"./number-rE36t967.js";import{b as v,c as m,D as s,h as n,i as p,j as e,l as o,t as z,G as P,K as l,E as r,z as u,F as B}from"./vue-y3KLWBaS.js";const T=v({__name:"database",setup(V){const d=()=>S("admin/get-table-stats").then(i=>Object.entries(i).sort((c,t)=>t[1].size-c[1].size)),_=m(()=>[]),f=m(()=>[]);return M({title:x.ts.database,icon:"ph-database ph-bold ph-lg"}),(i,c)=>{const t=s("MkPageHeader"),k=s("MkSpacer"),b=s("MkStickyContainer");return n(),p(b,null,{header:e(()=>[o(t,{actions:_.value,tabs:f.value,"display-back-button":!0},null,8,["actions","tabs"])]),default:e(()=>[o(k,{"content-max":800,"margin-min":16,"margin-max":32},{default:e(()=>[o(h,{p:d},{default:e(({result:g})=>[(n(!0),z(B,null,P(g,a=>(n(),p(y,{key:a[0],oneline:"",style:{margin:"1em 0"}},{key:e(()=>[l(r(a[0]),1)]),value:e(()=>[l(r(u(C)(a[1].size))+" ("+r(u(F)(a[1].count))+" recs)",1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})}}});export{T as default};
