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 w,H as b}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 y=e=>(w("data-v-27e8aa4b"),e=e(),b(),e),L={class:"device-info"},S=y(()=>o("div",{class:"header"},[o("span",{class:"title"},"告警级别分布")],-1)),k=n({name:"WarningLevel"}),z=n({...k,setup(e){const a=_({}),r=m();let t=null;const p=(i=[],l=[])=>{const s=a.value;if(s){t=d(s);const c={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(c),window.addEventListener("resize",function(){t.resize()})})}};return u(()=>r.collapsed,i=>{setTimeout(()=>{t.resize()},300)}),f(()=>{p()}),(i,l)=>(h(),v("div",L,[S,o("div",{ref_key:"chartRef",ref:a,style:{width:"100%","min-height":"calc(100% - 40px)"}},null,512)]))}});const J=x(z,[["__scopeId","data-v-27e8aa4b"]]);export{J as default};
