import{F as y}from"./suspense-jJyLIr98.js";import{M as h}from"./MkKeyValue-BeApKcpm.js";import{aA as M,b as x,d as S}from"./app-QjDgb7aF.js";import{b as C}from"./bytes-C39hD0JB.js";import{n as F}from"./number-BJeYzK3l.js";import{b as v,E as s,j as n,g as m,i as e,k as o,p as P,F as z,G as B,J as p,D as r,u as l,f as u}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const G=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)),_=u(()=>[]),k=u(()=>[]);return M({title:x.ts.database,icon:"ph-database ph-bold ph-lg"}),(i,c)=>{const t=s("MkPageHeader"),f=s("MkSpacer"),b=s("MkStickyContainer");return n(),m(b,null,{header:e(()=>[o(t,{actions:_.value,tabs:k.value,"display-back-button":!0},null,8,["actions","tabs"])]),default:e(()=>[o(f,{"content-max":800,"margin-min":16,"margin-max":32},{default:e(()=>[o(y,{p:d},{default:e(({result:g})=>[(n(!0),P(z,null,B(g,a=>(n(),m(h,{key:a[0],oneline:"",style:{margin:"1em 0"}},{key:e(()=>[p(r(a[0]),1)]),value:e(()=>[p(r(l(C)(a[1].size))+" ("+r(l(F)(a[1].count))+" recs)",1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})}}});export{G as default};
//# sourceMappingURL=database-CZl92HMO.js.map
