import{$ as e,E as t,J as n,O as r,R as i,_ as a,f as o,h as s,j as c,m as l,rt as u,v as d,w as f,y as p}from"./vue.runtime.esm-bundler-CjdjpSmT.js";import{a as m,mt as h,n as g,r as _}from"./http-D9STgMoF.js";var v={name:`Card`,extends:{name:`BaseCard`,extends:_,style:m.extend({name:`card`,style:`
    .p-card {
        background: dt('card.background');
        color: dt('card.color');
        box-shadow: dt('card.shadow');
        border-radius: dt('card.border.radius');
        display: flex;
        flex-direction: column;
    }

    .p-card-caption {
        display: flex;
        flex-direction: column;
        gap: dt('card.caption.gap');
    }

    .p-card-body {
        padding: dt('card.body.padding');
        display: flex;
        flex-direction: column;
        gap: dt('card.body.gap');
    }

    .p-card-title {
        font-size: dt('card.title.font.size');
        font-weight: dt('card.title.font.weight');
    }

    .p-card-subtitle {
        color: dt('card.subtitle.color');
    }
`,classes:{root:`p-card p-component`,header:`p-card-header`,body:`p-card-body`,caption:`p-card-caption`,title:`p-card-title`,subtitle:`p-card-subtitle`,content:`p-card-content`,footer:`p-card-footer`}}),provide:function(){return{$pcCard:this,$parentInstance:this}}},inheritAttrs:!1};function y(e,t,n,i,a,u){return r(),s(`div`,f({class:e.cx(`root`)},e.ptmi(`root`)),[e.$slots.header?(r(),s(`div`,f({key:0,class:e.cx(`header`)},e.ptm(`header`)),[c(e.$slots,`header`)],16)):l(``,!0),o(`div`,f({class:e.cx(`body`)},e.ptm(`body`)),[e.$slots.title||e.$slots.subtitle?(r(),s(`div`,f({key:0,class:e.cx(`caption`)},e.ptm(`caption`)),[e.$slots.title?(r(),s(`div`,f({key:0,class:e.cx(`title`)},e.ptm(`title`)),[c(e.$slots,`title`)],16)):l(``,!0),e.$slots.subtitle?(r(),s(`div`,f({key:1,class:e.cx(`subtitle`)},e.ptm(`subtitle`)),[c(e.$slots,`subtitle`)],16)):l(``,!0)],16)):l(``,!0),o(`div`,f({class:e.cx(`content`)},e.ptm(`content`)),[c(e.$slots,`content`)],16),e.$slots.footer?(r(),s(`div`,f({key:1,class:e.cx(`footer`)},e.ptm(`footer`)),[c(e.$slots,`footer`)],16)):l(``,!0)],16)],16)}v.render=y;var b={class:`text-2xl font-bold mb-6`},x={class:`grid grid-cols-3 gap-4`},S={class:`text-3xl font-bold`},C={class:`text-3xl font-bold text-green-600`},w={class:`text-3xl font-bold text-red-600`},T=p({__name:`Dashboard`,setup(c){let{t:l}=h(),f=n(null);return t(async()=>{try{let{data:e}=await g.get(`/api/admin/stats`);f.value=e}catch{}}),(t,n)=>(r(),s(`div`,null,[o(`h1`,b,u(e(l)(`app.welcome`)),1),o(`div`,x,[d(e(v),null,{title:i(()=>[a(u(e(l)(`nav.tenants`)),1)]),content:i(()=>[o(`div`,S,u(f.value?.tenants??`—`),1)]),_:1}),d(e(v),null,{title:i(()=>[...n[0]||=[a(`Active`,-1)]]),content:i(()=>[o(`div`,C,u(f.value?.active??`—`),1)]),_:1}),d(e(v),null,{title:i(()=>[...n[1]||=[a(`Suspended`,-1)]]),content:i(()=>[o(`div`,w,u(f.value?.suspended??`—`),1)]),_:1})])]))}});export{T as default};
//# sourceMappingURL=Dashboard-B-Mqob5P.js.map