import{h as l}from"./system.1703796278973.js";import{i as d}from"./index.1703796278973314.js";import{d as r,k as _,m as u,p as h,o as f,x as v,z as o,V as y,G as g,H as w}from"./vue.1703796278973.js";import{_ as b}from"./_plugin-vue_export-helper.1703796278973.js";import"./comm.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./consts.1703796278973.js";import"./404.1703796278973.js";const x=e=>(g("data-v-149618ed"),e=e(),w(),e),S={class:"device-type"},k=x(()=>o("div",{class:"header"},[o("div",{class:"header-title"},"设备类型数量分布")],-1)),z=r({name:"DeviceType"}),T=r({...z,setup(e){const i=_({}),n=l();let t=null;const p=(s=[],c=[])=>{const a=i.value;if(a){t=d(a);const m={grid:{top:"10%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},tooltip:{trigger:"item"},legend:{bottom:"5%",left:"center"},series:[{name:"Access From",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:40,fontWeight:"bold"}},labelLine:{show:!1},data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}]}]};y(()=>{t.setOption(m),window.addEventListener("resize",function(){t.resize()})})}};return u(()=>n.collapsed,s=>{setTimeout(()=>{t.resize()},300)}),h(()=>{p()}),(s,c)=>(f(),v("div",S,[k,o("div",{ref_key:"chartRef",ref:i,style:{width:"100%","min-height":"300px"}},null,512)]))}});const J=b(T,[["__scopeId","data-v-149618ed"]]);export{J as default};
