import{_ as a}from"./index.vue_vue_type_script_setup_true_lang-BLfhcSb1.js";import{a as e}from"./dashboard-Bj2OwIP9.js";import{q as s,r,R as t,t as l,v as o,A as n,M as c,K as i}from"./vendor-core-Di0OO4oJ.js";const v={class:"art-card h-105 p-5 mb-5 max-sm:mb-4"},d={class:"art-card-header"},u={class:"title"},h=s({__name:"sales-overview",setup(s){const h=r([]),p=r([]);return t(()=>{return a=null,s=null,r=function*(){try{const a=yield e();a&&(h.value=a.sales_trend,p.value=a.sales_days)}catch(a){}},new Promise((e,t)=>{var l=a=>{try{n(r.next(a))}catch(e){t(e)}},o=a=>{try{n(r.throw(a))}catch(e){t(e)}},n=a=>a.done?e(a.value):Promise.resolve(a.value).then(l,o);n((r=r.apply(a,s)).next())});var a,s,r}),(e,s)=>{const r=a;return o(),l("div",v,[n("div",d,[n("div",u,[n("h4",null,i(e.$t("dashboard.workplace.salesOverview.title")),1),n("p",null,i(e.$t("dashboard.workplace.salesOverview.trend")),1)])]),c(r,{height:"calc(100% - 56px)",data:h.value,xAxisData:p.value,showAreaColor:!0,showAxisLine:!1},null,8,["data","xAxisData"])])}}});export{h as _};
