"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(t,e)=>{for(var a in e)__defProp(t,a,{get:e[a],enumerable:!0})},__copyProps=(t,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of __getOwnPropNames(e))!__hasOwnProp.call(t,r)&&r!==a&&__defProp(t,r,{get:()=>e[r],enumerable:!(o=__getOwnPropDesc(e,r))||o.enumerable});return t},__toCommonJS=t=>__copyProps(__defProp({},"__esModule",{value:!0}),t),src_exports={};__export(src_exports,{AgCharts:()=>AgCharts,AgFinancialCharts:()=>AgFinancialCharts,AgGauge:()=>AgGauge}),module.exports=__toCommonJS(src_exports);var import_vue=require("vue"),import_ag_charts_community=require("ag-charts-community"),AgCharts=(0,import_vue.defineComponent)({props:{options:{type:Object,default:()=>({})}},setup(){return{chart:void 0}},render(){return(0,import_vue.h)("div")},watch:{options(t){this.chart?.update({...t,container:this.$el})}},mounted(){const{options:t}=this;this.chart=import_ag_charts_community.AgCharts.create({...t,container:this.$el})},unmounted(){this.chart?.destroy(),this.chart=void 0}}),AgFinancialCharts=(0,import_vue.defineComponent)({props:{options:{type:Object,default:()=>({})}},setup(){return{chart:void 0}},render(){return(0,import_vue.h)("div")},watch:{options(t){this.chart?.update({...t,container:this.$el})}},mounted(){const{options:t}=this;this.chart=import_ag_charts_community.AgCharts.createFinancialChart({...t,container:this.$el})},unmounted(){this.chart?.destroy(),this.chart=void 0}}),AgGauge=(0,import_vue.defineComponent)({props:{options:{type:Object,default:()=>({type:"radial-gauge",value:0})}},setup(){return{chart:void 0}},render(){return(0,import_vue.h)("div")},watch:{options(t){this.chart?.update({...t,container:this.$el})}},mounted(){const{options:t}=this;this.chart=import_ag_charts_community.AgCharts.createGauge({...t,container:this.$el})},unmounted(){this.chart?.destroy(),this.chart=void 0}});
