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