"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("vue"),n=require("lodash"),l=require("../../../commons/components/common-chart/index.vue.js"),u=require("../../../../../commons/utils/parseDataset.js"),p=s.defineComponent({name:"zv-chart-pie-index"}),f=s.defineComponent({...p,props:{basicOption:{},sources:{},useEvents:{},uuid:{}},setup(d,{expose:a}){const o=(e,r,c)=>{const i=n.cloneDeep(e.title.text);e.dataset=u.parseDataset(n.cloneDeep(r)),e.title.text=(u.parseDataset(n.cloneDeep(r)).source[0][u.parseDataset(n.cloneDeep(r)).dimensions[1]]||0)+i,c(e)},t=s.ref();return a({getEchartsInstance:()=>{var e;return(e=t.value)==null?void 0:e.getEchartsInstance()},refresh:()=>{var e;return(e=t.value)==null?void 0:e.refresh()},refreshView:()=>{var e;return(e=t.value)==null?void 0:e.refreshView()},refreshData:()=>{var e;return(e=t.value)==null?void 0:e.refreshData()}}),(e,r)=>(s.openBlock(),s.createBlock(l.default,s.mergeProps({ref_key:"componentRef",ref:t,option:e.basicOption,sources:e.sources,"use-events":e.useEvents,uuid:e.uuid,"is-multi-series":!1,"custom-render-data":o},e.$attrs),null,16,["option","sources","use-events","uuid"]))}});exports.default=f;
