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 f,o as h,x as v,z as o,V as g,G as x,H as b}from"./vue.1703796278973.js";import{_ as w}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=>(x("data-v-60b57141"),e=e(),b(),e),k={class:"device-type"},S=y(()=>o("div",{class:"header"},[o("div",{class:"header-title"},"告警级别分布")],-1)),L=r({name:"WarningLevel"}),z=r({...L,setup(e){const a=_({}),n=l();let t=null;const p=(i=[],m=[])=>{const s=a.value;if(s){t=d(s);const c={grid:{top:"10%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{bottom:"5%",left:"center"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};g(()=>{t.setOption(c),window.addEventListener("resize",function(){t.resize()})})}};return u(()=>n.collapsed,i=>{setTimeout(()=>{t.resize()},300)}),f(()=>{p()}),(i,m)=>(h(),v("div",k,[S,o("div",{ref_key:"chartRef",ref:a,style:{width:"100%","min-height":"300px"}},null,512)]))}});const J=w(z,[["__scopeId","data-v-60b57141"]]);export{J as default};
