import{h as m}from"./system.1703796278973.js";import{i as _}from"./index.1703796278973314.js";import{d as r,k as l,m as h,p as u,o as f,x,z as o,V as y,G as g,H as b}from"./vue.1703796278973.js";import{_ as v}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 w=t=>(g("data-v-c17c2038"),t=t(),b(),t),W={class:"warning-count"},k=w(()=>o("div",{class:"header"},[o("div",{class:"header-title"},"告警频次统计")],-1)),S=r({name:"WarningCount"}),C=r({...S,setup(t){const a=l({}),n=m();let e=null;const p=(s=[],c=[])=>{const i=a.value;if(i){e=_(i);const d={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["Forest","Steppe","Desert","Wetland"]},grid:{top:"10%",left:"3%",right:"4%",bottom:"8%",containLabel:!0},xAxis:[{type:"category",axisTick:{show:!1},data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]}],yAxis:[{type:"value"}],series:[{name:"Forest",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[320,332,301,334,390,220,182,191,234,290,334,390]},{name:"Steppe",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[220,182,191,234,290,320,332,301,334,390,154,190]},{name:"Desert",type:"bar",barGap:"30%",emphasis:{focus:"series"},barWidth:20,data:[150,232,201,154,190,220,182,191,234,290,334,390]}]};y(()=>{e.setOption(d),window.addEventListener("resize",function(){e.resize()})})}};return h(()=>n.collapsed,s=>{setTimeout(()=>{e.resize()},300)}),u(()=>{p()}),(s,c)=>(f(),x("div",W,[k,o("div",{ref_key:"chartRef",ref:a,style:{width:"100%","min-height":"300px"}},null,512)]))}});const J=v(C,[["__scopeId","data-v-c17c2038"]]);export{J as default};