import{h as m}from"./system.1703796278973.js";import{i as d}from"./index.1703796278973314.js";import{d as n,k as _,m as u,p as f,o as h,x as v,z as o,V as g,G as y,H as w}from"./vue.1703796278973.js";import{_ as x}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 S=e=>(y("data-v-2d8d2c75"),e=e(),w(),e),b={class:"device-info"},k=S(()=>o("div",{class:"header"},[o("span",{class:"title"},"设备告警类型分布")],-1)),z=n({name:"WarningType"}),T=n({...z,setup(e){const i=_({}),r=m();let t=null;const p=(a=[],c=[])=>{const s=i.value;if(s){t=d(s);const l={tooltip:{trigger:"item"},legend:{orient:"vertical",top:"center",right:"10%"},series:[{name:"Access From",type:"pie",left:"-20%",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"}]}]};g(()=>{t.setOption(l),window.addEventListener("resize",function(){t.resize()})})}};return u(()=>r.collapsed,a=>{setTimeout(()=>{t.resize()},300)}),f(()=>{p()}),(a,c)=>(h(),v("div",b,[k,o("div",{ref_key:"chartRef",ref:i,style:{width:"100%","min-height":"calc(100% - 40px)"}},null,512)]))}});const J=x(T,[["__scopeId","data-v-2d8d2c75"]]);export{J as default};
