import{r as m,c as S,g as b}from"./apexcharts.js";var l={exports:{}};(function(y,v){(function(r,s){y.exports=s(m())})(S,function(r){r=r&&r.hasOwnProperty("default")?r.default:r;function s(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(t){return typeof t}:s=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(n)}function f(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var g={props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0,default:function(){return[]}},width:{default:"100%"},height:{default:"auto"}},data:function(){return{chart:null}},beforeMount:function(){window.ApexCharts=r},mounted:function(){this.init()},created:function(){var t=this;this.$watch("options",function(o){!t.chart&&o?t.init():t.chart.updateOptions(t.options)}),this.$watch("series",function(o){!t.chart&&o?t.init():t.chart.updateSeries(t.series)});var e=["type","width","height"];e.forEach(function(o){t.$watch(o,function(){t.refresh()})})},beforeDestroy:function(){this.chart&&this.destroy()},render:function(t){return t("div")},methods:{init:function(){var t=this,e={chart:{type:this.type||this.options.chart.type||"line",height:this.height,width:this.width,events:{}},series:this.series};Object.keys(this.$listeners).forEach(function(a){e.chart.events[a]=t.$listeners[a]});var o=this.extend(this.options,e);return this.chart=new r(this.$el,o),this.chart.render()},isObject:function(t){return t&&s(t)==="object"&&!Array.isArray(t)&&t!=null},extend:function(t,e){var o=this;typeof Object.assign!="function"&&function(){Object.assign=function(i){if(i==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(i),u=1;u<arguments.length;u++){var c=arguments[u];if(c!=null)for(var h in c)c.hasOwnProperty(h)&&(p[h]=c[h])}return p}}();var a=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(i){o.isObject(e[i])?i in t?a[i]=o.extend(t[i],e[i]):Object.assign(a,f({},i,e[i])):Object.assign(a,f({},i,e[i]))}),a},refresh:function(){return this.destroy(),this.init()},destroy:function(){this.chart.destroy()},updateSeries:function(t,e){return this.chart.updateSeries(t,e)},updateOptions:function(t,e,o,a){return this.chart.updateOptions(t,e,o,a)},toggleSeries:function(t){return this.chart.toggleSeries(t)},showSeries:function(t){this.chart.showSeries(t)},hideSeries:function(t){this.chart.hideSeries(t)},appendSeries:function(t,e){return this.chart.appendSeries(t,e)},resetSeries:function(){this.chart.resetSeries()},zoomX:function(t,e){this.chart.zoomX(t,e)},toggleDataPointSelection:function(t,e){this.chart.toggleDataPointSelection(t,e)},appendData:function(t){return this.chart.appendData(t)},addText:function(t){this.chart.addText(t)},addImage:function(t){this.chart.addImage(t)},addShape:function(t){this.chart.addShape(t)},dataURI:function(){return this.chart.dataURI()},setLocale:function(t){return this.chart.setLocale(t)},addXaxisAnnotation:function(t,e){this.chart.addXaxisAnnotation(t,e)},addYaxisAnnotation:function(t,e){this.chart.addYaxisAnnotation(t,e)},addPointAnnotation:function(t,e){this.chart.addPointAnnotation(t,e)},removeAnnotation:function(t,e){this.chart.removeAnnotation(t,e)},clearAnnotations:function(){this.chart.clearAnnotations()}}},d=g;return window.ApexCharts=r,d.install=function(n){n.ApexCharts=r,window.ApexCharts=r,Object.defineProperty(n.prototype,"$apexcharts",{get:function(){return r}})},d})})(l);var w=l.exports;const A=b(w);export{A as V};
