import{f as a}from"./dashboard-Bj2OwIP9.js";import{q as s,bI as t,r as e,R as r,t as o,v as l,A as d,K as i,L as b,aq as n,J as u,H as y,bE as h}from"./vendor-core-Di0OO4oJ.js";import"./index-BkDr3sJj.js";import"./vendor-element-DupX9wXy.js";const v={class:"monitor-stats"},m={class:"stats-title"},c={class:"stats-grid"},_={class:"stat-value"},w={key:0,class:"stat-sub-value"},p={class:"stat-label"},S=h(s({__name:"monitor-stats",setup(s){const{t:h}=t(),S=e([{label:"dashboard.monitor.stats.todaySales",value:0},{label:"dashboard.monitor.stats.todayOrders",value:0},{label:"dashboard.monitor.stats.yesterdaySales",value:0},{label:"dashboard.monitor.stats.yesterdayOrders",value:0},{label:"dashboard.monitor.stats.todayNewUsers",value:0},{label:"dashboard.monitor.stats.yesterdayNewUsers",value:0},{label:"dashboard.monitor.stats.totalPlatformSales",value:0},{label:"dashboard.monitor.stats.pendingShops",value:0},{label:"dashboard.monitor.stats.todayWithdrawals",value:0},{label:"dashboard.monitor.stats.yesterdayWithdrawals",value:0},{label:"dashboard.monitor.stats.todayWithdrawalsSuccess",value:0},{label:"dashboard.monitor.stats.yesterdayWithdrawalsSuccess",value:0},{label:"dashboard.monitor.stats.todayUnpaidOrders",value:0},{label:"dashboard.monitor.stats.frozenUsers",value:0}]);return r(()=>{return s=null,t=null,e=function*(){try{const s=yield a();s&&(S.value=[{label:"dashboard.monitor.stats.todaySales",value:s.today_sales},{label:"dashboard.monitor.stats.todayOrders",value:s.today_orders,subValue:s.today_total_orders},{label:"dashboard.monitor.stats.yesterdaySales",value:s.yesterday_sales},{label:"dashboard.monitor.stats.yesterdayOrders",value:s.yesterday_orders,subValue:s.yesterday_total_orders},{label:"dashboard.monitor.stats.todayNewUsers",value:s.new_users},{label:"dashboard.monitor.stats.yesterdayNewUsers",value:s.yesterday_new_users},{label:"dashboard.monitor.stats.totalPlatformSales",value:s.total_platform_sales},{label:"dashboard.monitor.stats.pendingShops",value:s.pending_shops},{label:"dashboard.monitor.stats.todayWithdrawals",value:s.today_withdrawals},{label:"dashboard.monitor.stats.yesterdayWithdrawals",value:s.yesterday_withdrawals},{label:"dashboard.monitor.stats.todayWithdrawalsSuccess",value:s.today_withdrawals_success},{label:"dashboard.monitor.stats.yesterdayWithdrawalsSuccess",value:s.yesterday_withdrawals_success},{label:"dashboard.monitor.stats.todayUnpaidOrders",value:s.today_unpaid_orders},{label:"dashboard.monitor.stats.frozenUsers",value:s.frozen_users}])}catch(s){}},new Promise((a,r)=>{var o=a=>{try{d(e.next(a))}catch(s){r(s)}},l=a=>{try{d(e.throw(a))}catch(s){r(s)}},d=s=>s.done?a(s.value):Promise.resolve(s.value).then(o,l);d((e=e.apply(s,t)).next())});var s,t,e}),(a,s)=>(l(),o("div",v,[d("div",m,i(a.$t("dashboard.monitor.stats.title")),1),d("div",c,[(l(!0),o(b,null,n(S.value,(s,t)=>(l(),o("div",{key:t,class:"stat-item"},[d("div",_,[u(i(s.value)+" ",1),s.subValue?(l(),o("span",w,"/ "+i(s.subValue),1)):y("",!0)]),d("div",p,i(a.$t(s.label)),1)]))),128))])]))}}),[["__scopeId","data-v-04ae7c37"]]);export{S as default};
