{"version":3,"file":"vue3-apexcharts-Wsi7ivb8.js","sources":["../../node_modules/vue3-apexcharts/dist/vue3-apexcharts.js"],"sourcesContent":["import { defineComponent as Z, ref as b, onBeforeMount as _, onMounted as q, getCurrentInstance as K, onBeforeUnmount as $, toRefs as F, watch as c, h as G, nextTick as H } from \"vue\";\nimport w from \"apexcharts\";\nconst A = [\n \"animationEnd\",\n \"beforeMount\",\n \"mounted\",\n \"updated\",\n \"click\",\n \"mouseMove\",\n \"mouseLeave\",\n \"legendClick\",\n \"markerClick\",\n \"selection\",\n \"dataPointSelection\",\n \"dataPointMouseEnter\",\n \"dataPointMouseLeave\",\n \"beforeZoom\",\n \"beforeResetZoom\",\n \"zoomed\",\n \"scrolled\",\n \"brushScrolled\"\n], m = Z({\n name: \"apexchart\",\n props: {\n options: {\n type: Object\n },\n type: {\n type: String\n },\n series: {\n type: Array,\n required: !0\n },\n width: {\n default: \"100%\"\n },\n height: {\n default: \"auto\"\n }\n },\n // events emitted by this component\n emits: A,\n setup(a, { emit: x }) {\n const g = b(null), t = b(null), f = (e) => e && typeof e == \"object\" && !Array.isArray(e) && e != null, S = (e, n) => {\n typeof Object.assign != \"function\" && function() {\n Object.assign = function(o) {\n if (o == null)\n throw new TypeError(\"Cannot convert undefined or null to object\");\n let v = Object(o);\n for (let i = 1; i < arguments.length; i++) {\n let l = arguments[i];\n if (l != null)\n for (let p in l)\n l.hasOwnProperty(p) && (v[p] = l[p]);\n }\n return v;\n };\n }();\n let s = Object.assign({}, e);\n return f(e) && f(n) && Object.keys(n).forEach((o) => {\n f(n[o]) ? o in e ? s[o] = S(e[o], n[o]) : Object.assign(s, {\n [o]: n[o]\n }) : Object.assign(s, {\n [o]: n[o]\n });\n }), s;\n }, r = async () => {\n if (await H(), t.value)\n return;\n const e = {\n chart: {\n type: a.type || a.options.chart.type || \"line\",\n height: a.height,\n width: a.width,\n events: {}\n },\n series: a.series\n }, n = a.options.chart ? a.options.chart.events : null;\n A.forEach((o) => {\n let v = (...i) => x(o, ...i);\n e.chart.events[o] = (...i) => {\n v(...i), n && n.hasOwnProperty(o) && n[o](...i);\n };\n });\n const s = S(a.options, e);\n return t.value = new w(g.value, s), t.value.render();\n }, d = () => (h(), r()), h = () => {\n t.value.destroy(), t.value = null;\n }, O = (e, n) => t.value.updateSeries(e, n), y = (e, n, s, o) => t.value.updateOptions(e, n, s, o), j = (e) => t.value.toggleSeries(e), P = (e) => {\n t.value.showSeries(e);\n }, C = (e) => {\n t.value.hideSeries(e);\n }, E = (e, n) => t.value.appendSeries(e, n), M = () => {\n t.value.resetSeries();\n }, D = (e, n) => {\n t.value.toggleDataPointSelection(e, n);\n }, L = (e) => t.value.appendData(e), R = (e, n) => t.value.zoomX(e, n), X = (e) => t.value.dataURI(e), z = (e) => t.value.setLocale(e), I = (e, n) => {\n t.value.addXaxisAnnotation(e, n);\n }, U = (e, n) => {\n t.value.addYaxisAnnotation(e, n);\n }, B = (e, n) => {\n t.value.addPointAnnotation(e, n);\n }, T = (e, n) => {\n t.value.removeAnnotation(e, n);\n }, Y = () => {\n t.value.clearAnnotations();\n };\n _(() => {\n window.ApexCharts = w;\n }), q(() => {\n g.value = K().proxy.$el, r();\n }), $(() => {\n t.value && h();\n });\n const u = F(a);\n return c(u.options, () => {\n !t.value && a.options ? r() : t.value.updateOptions(a.options);\n }), c(\n u.series,\n () => {\n !t.value && a.series ? r() : t.value.updateSeries(a.series);\n },\n { deep: !0 }\n ), c(u.type, () => {\n d();\n }), c(u.width, () => {\n d();\n }), c(u.height, () => {\n d();\n }), {\n chart: t,\n init: r,\n refresh: d,\n destroy: h,\n updateOptions: y,\n updateSeries: O,\n toggleSeries: j,\n showSeries: P,\n hideSeries: C,\n resetSeries: M,\n zoomX: R,\n toggleDataPointSelection: D,\n appendData: L,\n appendSeries: E,\n addXaxisAnnotation: I,\n addYaxisAnnotation: U,\n addPointAnnotation: B,\n removeAnnotation: T,\n clearAnnotations: Y,\n setLocale: z,\n dataURI: X\n };\n },\n render() {\n return G(\"div\", {\n class: \"vue-apexcharts\"\n });\n }\n}), J = (a) => {\n a.component(m.name, m);\n};\nm.install = J;\nexport {\n m as default\n};\n"],"names":["Z","a","x","b","f","S","o","v","i","l","p","r","H","w","y","j","E","M","D","L","R","X","z","I","U","B","T","Y","_","q","K","$","u","F","c","G","J"],"mappings":"oJAEK,MAAC,EAAI,CACR,eACA,cACA,UACA,UACA,QACA,YACA,aACA,cACA,cACA,YACA,qBACA,sBACA,sBACA,aACA,kBACA,SACA,WACA,eACF,EAAG,EAAIA,EAAE,CACP,KAAM,YACN,MAAO,CACL,QAAS,CACP,KAAM,MACP,EACD,KAAM,CACJ,KAAM,MACP,EACD,OAAQ,CACN,KAAM,MACN,SAAU,EACX,EACD,MAAO,CACL,QAAS,MACV,EACD,OAAQ,CACN,QAAS,MACf,CACG,EAED,MAAO,EACP,MAAMC,EAAG,CAAE,KAAMC,CAAC,EAAI,CACpB,MAAM,EAAIC,EAAE,IAAI,EAAG,EAAIA,EAAE,IAAI,EAAGC,EAAK,GAAM,GAAK,OAAO,GAAK,UAAY,CAAC,MAAM,QAAQ,CAAC,GAAK,GAAK,KAAMC,EAAI,CAAC,EAAG,IAAM,CACpH,OAAO,OAAO,QAAU,YAAc,UAAW,CAC/C,OAAO,OAAS,SAASC,EAAG,CAC1B,GAAIA,GAAK,KACP,MAAM,IAAI,UAAU,4CAA4C,EAClE,IAAIC,EAAI,OAAOD,CAAC,EAChB,QAASE,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CACzC,IAAIC,EAAI,UAAUD,CAAC,EACnB,GAAIC,GAAK,KACP,QAASC,KAAKD,EACZA,EAAE,eAAeC,CAAC,IAAMH,EAAEG,CAAC,EAAID,EAAEC,CAAC,EAClD,CACU,OAAOH,CACR,CACT,EAAS,EACH,IAAI,EAAI,OAAO,OAAO,CAAA,EAAI,CAAC,EAC3B,OAAOH,EAAE,CAAC,GAAKA,EAAE,CAAC,GAAK,OAAO,KAAK,CAAC,EAAE,QAASE,G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