import{F as g,_ as y}from"./index.f095bcc5.js";import{w as B,I as b}from"./element-plus.10e48c93.js";import{C as E}from"./vue-echarts.91588d37.js";import{d as f,$ as C,j as A,a4 as k,o as l,c as u,a as t,U as a,L as i,S as o,u as e,R as h,T as v,a7 as x,O as D}from"./@vue.51d7f2d8.js";import"./@vueuse.ec90c285.js";import"./lodash.08438971.js";import"./@amap.8a62addd.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.js";import"./@element-plus.c80b8015.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./resize-detector.4e96b72b.js";const O={class:"workbench"},z={class:"lg:flex"},N=t("span",{class:"card-title"},"\u7248\u672C\u4FE1\u606F",-1),S={class:"flex leading-9"},V=t("div",{class:"w-20"},"\u5F53\u524D\u7248\u672C",-1),L={class:"flex leading-9"},T=t("div",{class:"w-20"},"\u57FA\u4E8E\u6846\u67B6",-1),j={class:"flex leading-9"},G=t("div",{class:"w-20"},"\u83B7\u53D6\u6E20\u9053",-1),I=["href"],M=["href"],R=t("span",{class:"card-title"},"\u4ECA\u65E5\u6570\u636E",-1),U={class:"text-tx-secondary text-xs ml-4"},W={class:"flex flex-wrap"},$={class:"w-1/2 md:w-1/4"},q=t("div",{class:"leading-10"},"\u8BBF\u95EE\u91CF(\u4EBA)",-1),H={class:"text-6xl"},J={class:"text-tx-secondary text-xs"},K={class:"w-1/2 md:w-1/4"},P=t("div",{class:"leading-10"},"\u9500\u552E\u989D(\u5143)",-1),Q={class:"text-6xl"},X={class:"text-tx-secondary text-xs"},Y={class:"w-1/2 md:w-1/4"},Z=t("div",{class:"leading-10"},"\u8BA2\u5355\u91CF(\u7B14)",-1),tt={class:"text-6xl"},st={class:"text-tx-secondary text-xs"},et={class:"w-1/2 md:w-1/4"},ot=t("div",{class:"leading-10"},"\u65B0\u589E\u7528\u6237",-1),it={class:"text-6xl"},at={class:"text-tx-secondary text-xs"},nt={class:"function mb-4"},rt=t("span",null,"\u5E38\u7528\u529F\u80FD",-1),dt={class:"flex flex-wrap"},lt={class:"mt-2"},ut={class:"md:flex"},ct=t("span",null,"\u8BBF\u95EE\u91CF\u8D8B\u52BF\u56FE",-1),_t=t("span",null,"\u670D\u52A1\u652F\u6301",-1),pt={class:"ml-2"},mt={class:"text-tx-regular text-xs mt-4"},ht=f({name:"workbench"}),Zt=f({...ht,setup(vt){const s=C({version:{version:"",website:"",based:"",channel:{gitee:"",website:""}},support:[],today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line",smooth:!0}]}}),F=()=>{g().then(n=>{s.version=n.version,s.today=n.today,s.menu=n.menu,s.visitor=n.visitor,s.support=n.support,s.visitorOption.xAxis.data=[],s.visitorOption.series[0].data=[],n.visitor.date.reverse().forEach(c=>{s.visitorOption.xAxis.data.push(c)}),n.visitor.list[0].data.forEach(c=>{s.visitorOption.series[0].data.push(c)})}).catch(n=>{console.log("err",n)})};return A(()=>{F()}),(n,c)=>{const _=B,d=b,p=y,w=k("router-link");return l(),u("div",O,[t("div",z,[a(d,{class:"!border-none mb-4 lg:mr-4 lg:w-[350px]",shadow:"never"},{header:i(()=>[N]),default:i(()=>[t("div",null,[t("div",S,[V,t("span",null,o(e(s).version.version),1)]),t("div",L,[T,t("span",null,o(e(s).version.based),1)]),t("div",j,[G,t("div",null,[t("a",{href:e(s).version.channel.website,target:"_blank"},[a(_,{type:"success",size:"small"},{default:i(()=>[h("\u5B98\u7F51")]),_:1})],8,I),t("a",{class:"ml-3",href:e(s).version.channel.gitee,target:"_blank"},[a(_,{type:"danger",size:"small"},{default:i(()=>[h("Gitee")]),_:1})],8,M)])])])]),_:1}),a(d,{class:"!border-none mb-4 flex-1",shadow:"never"},{header:i(()=>[t("div",null,[R,t("span",U," \u66F4\u65B0\u65F6\u95F4\uFF1A"+o(e(s).today.time),1)])]),default:i(()=>[t("div",W,[t("div",$,[q,t("div",H,o(e(s).today.today_visitor),1),t("div",J," \u603B\u8BBF\u95EE\u91CF\uFF1A"+o(e(s).today.total_visitor),1)]),t("div",K,[P,t("div",Q,o(e(s).today.today_sales),1),t("div",X," \u603B\u9500\u552E\u989D\uFF1A"+o(e(s).today.total_sales),1)]),t("div",Y,[Z,t("div",tt,o(e(s).today.order_num),1),t("div",st," \u603B\u8BA2\u5355\u91CF\uFF1A"+o(e(s).today.order_sum),1)]),t("div",et,[ot,t("div",it,o(e(s).today.today_new_user),1),t("div",at," \u603B\u8BBF\u7528\u6237\uFF1A"+o(e(s).today.total_new_user),1)])])]),_:1})]),t("div",nt,[a(d,{class:"flex-1 !border-none",shadow:"never"},{header:i(()=>[rt]),default:i(()=>[t("div",dt,[(l(!0),u(v,null,x(e(s).menu,r=>(l(),u("div",{class:"md:w-[12.5%] w-1/4 flex flex-col items-center",key:r},[a(w,{to:r.url,class:"mb-3 flex flex-col items-center"},{default:i(()=>[a(p,{width:"40px",height:"40px",src:r==null?void 0:r.image},null,8,["src"]),t("div",lt,o(r.name),1)]),_:2},1032,["to"])]))),128))])]),_:1})]),t("div",ut,[a(d,{class:"flex-1 !border-none md:mr-4 mb-4",shadow:"never"},{header:i(()=>[ct]),default:i(()=>[t("div",null,[a(e(E),{style:{height:"350px"},option:e(s).visitorOption,autoresize:!0},null,8,["option"])])]),_:1}),a(d,{class:"!border-none mb-4",shadow:"never"},{header:i(()=>[_t]),default:i(()=>[t("div",null,[(l(!0),u(v,null,x(e(s).support,(r,m)=>(l(),u("div",{key:m},[t("div",{class:D(["flex items-center pb-10 pt-10",{"border-b border-br":m==0}])},[a(p,{width:120,height:120,class:"flex-none",src:r.image},null,8,["src"]),t("div",pt,[t("div",null,o(r.title),1),t("div",mt,o(r.desc),1)])],2)]))),128))])]),_:1})])])}}});export{Zt as default};