vue-data-ui 3.8.4 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +8 -4
  2. package/dist/{BaseDraggableDialog-C2wzOVzX.js → BaseDraggableDialog-B6wHUQPl.js} +1 -1
  3. package/dist/{BaseIcon-_2VlkSHq.js → BaseIcon-CQaciFyv.js} +3 -2
  4. package/dist/BaseScanner-BMpwQAfz.js +30 -0
  5. package/dist/BaseZoomControls-AMmyXEyM.js +110 -0
  6. package/dist/{ColorPicker-Y-VfX-24.js → ColorPicker-nZHFmXUV.js} +1 -1
  7. package/dist/{DataTable-CokMin24.js → DataTable-C8cgUUyx.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-ir3Z1ZAu.js → NonSvgPenAndPaper-CVjActC2.js} +2 -2
  9. package/dist/{PackageVersion-BuD3uLvK.js → PackageVersion-DXy-wfBa.js} +1 -1
  10. package/dist/{PenAndPaper-CFRubEEG.js → PenAndPaper-DtbXViIl.js} +2 -2
  11. package/dist/{Slicer-CVcdknEx.js → Slicer-DtlEs698.js} +1 -1
  12. package/dist/{SlicerPreview-C1EQEgYE.js → SlicerPreview-DmzwkUJ4.js} +1 -1
  13. package/dist/{Title-DnykBvFl.js → Title-osQjQYc-.js} +1 -1
  14. package/dist/{UserOptions-M5A9w5GL.js → UserOptions-DeiXBImO.js} +1 -1
  15. package/dist/components/vue-ui-3d-bar.js +1 -1
  16. package/dist/components/vue-ui-accordion.js +1 -1
  17. package/dist/components/vue-ui-age-pyramid.js +1 -1
  18. package/dist/components/vue-ui-annotator.js +1 -1
  19. package/dist/components/vue-ui-bullet.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +5 -0
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-stackline.js +1 -1
  67. package/dist/components/vue-ui-strip-plot.js +1 -1
  68. package/dist/components/vue-ui-table-heatmap.js +1 -1
  69. package/dist/components/vue-ui-table-sparkline.js +1 -1
  70. package/dist/components/vue-ui-table.js +1 -1
  71. package/dist/components/vue-ui-thermometer.js +1 -1
  72. package/dist/components/vue-ui-timer.js +1 -1
  73. package/dist/components/vue-ui-tiremarks.js +1 -1
  74. package/dist/components/vue-ui-treemap.js +1 -1
  75. package/dist/components/vue-ui-vertical-bar.js +1 -1
  76. package/dist/components/vue-ui-waffle.js +1 -1
  77. package/dist/components/vue-ui-wheel.js +1 -1
  78. package/dist/components/vue-ui-word-cloud.js +1 -1
  79. package/dist/components/vue-ui-world.js +1 -1
  80. package/dist/components/vue-ui-xy-canvas.js +1 -1
  81. package/dist/components/vue-ui-xy.js +1 -1
  82. package/dist/geoProjections-D0Vxsz_O.js +154 -0
  83. package/dist/style.css +1 -1
  84. package/dist/types/vue-data-ui.d.ts +210 -4
  85. package/dist/types/vue-ui-geo.d.ts +10 -0
  86. package/dist/{useNestedProp-CNjAKn-Z.js → useNestedProp-BeKjhKny.js} +100 -19
  87. package/dist/{vue-data-ui-DXfEvcys.js → vue-data-ui-BDPkTNHQ.js} +113 -108
  88. package/dist/vue-data-ui.js +101 -98
  89. package/dist/{vue-ui-3d-bar-BR7AtlR0.js → vue-ui-3d-bar-uKhbCJCE.js} +4 -4
  90. package/dist/{vue-ui-accordion-WOPRF2Tv.js → vue-ui-accordion-nCaoOi6x.js} +2 -2
  91. package/dist/{vue-ui-age-pyramid-DUcx-5pl.js → vue-ui-age-pyramid-DLT_gkMY.js} +4 -4
  92. package/dist/{vue-ui-annotator-BBgWTQxm.js → vue-ui-annotator-3wBuXKBn.js} +4 -4
  93. package/dist/{vue-ui-bullet-e-E8vgoK.js → vue-ui-bullet-BwOyLfur.js} +4 -4
  94. package/dist/{vue-ui-candlestick-ofOO-UZd.js → vue-ui-candlestick-DvIJjYgT.js} +5 -5
  95. package/dist/{vue-ui-carousel-table-Cw9AZ6K_.js → vue-ui-carousel-table-mQdTBiJ6.js} +2 -2
  96. package/dist/{vue-ui-chestnut-BfxiZIas.js → vue-ui-chestnut-D4aL-SRw.js} +3 -3
  97. package/dist/{vue-ui-chord-BZplQ2Ah.js → vue-ui-chord-BNyOLiis.js} +4 -4
  98. package/dist/{vue-ui-circle-pack-65-cbeZq.js → vue-ui-circle-pack-DGjOBC77.js} +4 -4
  99. package/dist/{vue-ui-cursor-CowLXeRB.js → vue-ui-cursor-JDfWC_4Z.js} +2 -2
  100. package/dist/{vue-ui-dag-Cnv5koqb.js → vue-ui-dag-C7GVHRdz.js} +706 -809
  101. package/dist/{vue-ui-dashboard-CH4lfPnJ.js → vue-ui-dashboard-Dhte9CS8.js} +66 -66
  102. package/dist/{vue-ui-digits-DwsMbBDJ.js → vue-ui-digits-D2zs8kUV.js} +1 -1
  103. package/dist/{vue-ui-donut-gntDZdB4.js → vue-ui-donut-BnJXrdXi.js} +849 -839
  104. package/dist/{vue-ui-donut-evolution-DNicvCVK.js → vue-ui-donut-evolution-B7IXs662.js} +5 -5
  105. package/dist/{vue-ui-dumbbell-CQIJgRxY.js → vue-ui-dumbbell-icb7XI8Y.js} +4 -4
  106. package/dist/{vue-ui-flow-BUThxO9F.js → vue-ui-flow-BkFZyi2d.js} +4 -4
  107. package/dist/{vue-ui-funnel-fPcBhjoP.js → vue-ui-funnel-BtCQx40Z.js} +3 -3
  108. package/dist/{vue-ui-galaxy-ClBzduIz.js → vue-ui-galaxy-DlkNLZDJ.js} +4 -4
  109. package/dist/{vue-ui-gauge-BnWsuqfT.js → vue-ui-gauge-Cdj0ecH3.js} +4 -4
  110. package/dist/vue-ui-geo-e3rtm3qo.js +977 -0
  111. package/dist/{vue-ui-gizmo-B1RWjhoX.js → vue-ui-gizmo-D14h2JTq.js} +3 -3
  112. package/dist/{vue-ui-heatmap-CdGmGjGH.js → vue-ui-heatmap-rpR42azQ.js} +5 -5
  113. package/dist/{vue-ui-history-plot-CyUvc35T.js → vue-ui-history-plot-Cecn8Oxm.js} +4 -4
  114. package/dist/{vue-ui-horizontal-bar-CUwFkoh_.js → vue-ui-horizontal-bar-VKpzt8eG.js} +9 -9
  115. package/dist/{vue-ui-kpi-BXQvKfTh.js → vue-ui-kpi-C_sejZsA.js} +2 -2
  116. package/dist/{vue-ui-mini-loader-DFBgplMk.js → vue-ui-mini-loader-BEBv2BjZ.js} +1 -1
  117. package/dist/{vue-ui-molecule-BTaGK6l7.js → vue-ui-molecule-DlEuruqh.js} +3 -3
  118. package/dist/{vue-ui-mood-radar-DIxGLyf6.js → vue-ui-mood-radar-BAP8G4Wj.js} +4 -4
  119. package/dist/{vue-ui-nested-donuts-Buo1qlvt.js → vue-ui-nested-donuts-DSxsX5Vz.js} +4 -4
  120. package/dist/{vue-ui-onion-CTRuEQxm.js → vue-ui-onion-BcFbjgm_.js} +4 -4
  121. package/dist/{vue-ui-parallel-coordinate-plot-CX_sxW2v.js → vue-ui-parallel-coordinate-plot-C-qcnEpN.js} +4 -4
  122. package/dist/{vue-ui-quadrant-DmVXReZH.js → vue-ui-quadrant-ChTRugDc.js} +4 -4
  123. package/dist/{vue-ui-quick-chart-B9hUcTr6.js → vue-ui-quick-chart-CkRSQBoP.js} +4 -4
  124. package/dist/{vue-ui-radar-DCIkshOp.js → vue-ui-radar-D7h9MmKX.js} +4 -4
  125. package/dist/{vue-ui-rating-jjJl1N9l.js → vue-ui-rating-Ci09laQN.js} +1 -1
  126. package/dist/{vue-ui-relation-circle-CM2duT_R.js → vue-ui-relation-circle-BGSf9_de.js} +4 -4
  127. package/dist/{vue-ui-ridgeline-y7Fwkr-1.js → vue-ui-ridgeline-BP3OBUSp.js} +4 -4
  128. package/dist/{vue-ui-rings-B6HLC79S.js → vue-ui-rings-bixIaG84.js} +4 -4
  129. package/dist/{vue-ui-scatter-BDp469sU.js → vue-ui-scatter-CsbW44rO.js} +4 -4
  130. package/dist/{vue-ui-skeleton-CTivICoM.js → vue-ui-skeleton-B7FFPfD7.js} +2 -2
  131. package/dist/{vue-ui-smiley-YLy2xBa-.js → vue-ui-smiley-BW0ksZH3.js} +1 -1
  132. package/dist/{vue-ui-spark-trend-B2wOWiSY.js → vue-ui-spark-trend-BWiUSAGV.js} +3 -3
  133. package/dist/{vue-ui-sparkbar-CqwjRMPQ.js → vue-ui-sparkbar-Y1-PvC2Q.js} +3 -3
  134. package/dist/{vue-ui-sparkgauge-BNv5nBv8.js → vue-ui-sparkgauge-DIOgIo9T.js} +3 -3
  135. package/dist/{vue-ui-sparkhistogram-ZrALpNpM.js → vue-ui-sparkhistogram-Cc45FboV.js} +3 -3
  136. package/dist/{vue-ui-sparkline-D7_6htbE.js → vue-ui-sparkline-BkxHQO4g.js} +3 -3
  137. package/dist/{vue-ui-sparkstackbar-BQD6cbOE.js → vue-ui-sparkstackbar-eL00_vqY.js} +3 -3
  138. package/dist/{vue-ui-stackbar-C9KeiS-Q.js → vue-ui-stackbar-CCgBPMxT.js} +5 -5
  139. package/dist/{vue-ui-stackline-qJW5y3GA.js → vue-ui-stackline-CrChjJG1.js} +5 -5
  140. package/dist/{vue-ui-strip-plot-Bgt_dkJ3.js → vue-ui-strip-plot-ChBPDnF4.js} +4 -4
  141. package/dist/{vue-ui-table-BvpnTcTk.js → vue-ui-table-Bf7ErBf-.js} +4 -4
  142. package/dist/{vue-ui-table-heatmap-UkSDagXf.js → vue-ui-table-heatmap-BecLm3ow.js} +2 -2
  143. package/dist/{vue-ui-table-sparkline-D-UoYPFq.js → vue-ui-table-sparkline-CQf4nxMY.js} +2 -2
  144. package/dist/{vue-ui-thermometer-CCySf8Ei.js → vue-ui-thermometer-1vtRLqYp.js} +4 -4
  145. package/dist/{vue-ui-timer-D2-YQFf3.js → vue-ui-timer-C0_Umc6p.js} +4 -4
  146. package/dist/{vue-ui-tiremarks-NDuNR9MY.js → vue-ui-tiremarks-iijIId_5.js} +4 -4
  147. package/dist/{vue-ui-treemap-Dzlc-kC5.js → vue-ui-treemap-vE6a19Mm.js} +5 -5
  148. package/dist/{vue-ui-waffle-CBBfrQqs.js → vue-ui-waffle-C8kR8CpE.js} +4 -4
  149. package/dist/{vue-ui-wheel-iFV_KfLw.js → vue-ui-wheel-D4OCD06F.js} +4 -4
  150. package/dist/{vue-ui-word-cloud-DLBK1KRY.js → vue-ui-word-cloud-Zhi8r9_M.js} +4 -4
  151. package/dist/{vue-ui-world-BinQefwp.js → vue-ui-world-CKdzBshi.js} +430 -579
  152. package/dist/{vue-ui-xy-BSxvJyZM.js → vue-ui-xy-BOzzwSSP.js} +6 -6
  153. package/dist/{vue-ui-xy-canvas-Bl4ZS4GS.js → vue-ui-xy-canvas-CLoA6DTt.js} +7 -7
  154. package/package.json +1 -1
  155. package/dist/BaseScanner-BgWxam9d.js +0 -29
@@ -1,42 +1,42 @@
1
- import { defineAsyncComponent as be, useSlots as aa, computed as y, shallowRef as de, ref as w, onMounted as Kt, onBeforeUnmount as Zt, toRefs as oa, watch as Le, createElementBlock as i, openBlock as s, normalizeStyle as L, normalizeClass as dt, createBlock as me, createCommentVNode as d, renderSlot as p, createElementVNode as g, createVNode as je, unref as u, withCtx as k, normalizeProps as Z, guardReactiveProps as ee, createSlots as ht, Fragment as _, renderList as H, mergeProps as ft, toDisplayString as oe, withDirectives as qe, vShow as We, Teleport as na, resolveDynamicComponent as sa, createTextVNode as el, nextTick as ua } from "vue";
2
- import { o as tl, g as yt, k as ra, c as ia, t as ca, j as va, T as da, l as ll, p as _e, a as j, d as G, a2 as al, a6 as ha, a7 as fa, a5 as $, a4 as he, X as ya, s as Qe, h as ga, a3 as pa, a8 as D, a9 as ol, f as ba, i as ma, a0 as gt, u as wa, q as ka, x as Ca, aa as nl } from "./lib-_nVZfi2t.js";
3
- import { t as xa, u as $a } from "./useResponsive-DfdjqQps.js";
4
- import { u as Aa, a as pt } from "./useNestedProp-CNjAKn-Z.js";
5
- import { u as _a } from "./usePrinter-DXIMGR61.js";
6
- import { u as Ta, B as Sa } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Ma } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Fa } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as La } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Pa } from "./useChartAccessibility-9icAAmYg.js";
11
- import Ia from "./img-C5q4A7ke.js";
12
- import { _ as Da } from "./Shape-BuBasQnO.js";
13
- import Ya from "./Title-DnykBvFl.js";
14
- import za from "./Legend-PhhPyrZ0.js";
15
- import { _ as Ba } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, ul = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, rl = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, il = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#61747E" } }, average: { color: "#8A9892", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, cl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#AACCAA" }, name: { color: "#99CC99" }, hollow: { total: { color: "#99CC99", value: { color: "#AACCAA" } }, average: { color: "#99CC99", value: { color: "#AACCAA" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, vl = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#A0AC94" } }, average: { color: "#8A9892", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, dl = {
1
+ import { defineAsyncComponent as pe, useSlots as ua, computed as f, shallowRef as be, ref as w, onMounted as el, onBeforeUnmount as tl, toRefs as ra, watch as Pe, createElementBlock as i, openBlock as s, normalizeStyle as M, normalizeClass as ft, createBlock as me, createCommentVNode as d, renderSlot as p, createElementVNode as y, createVNode as qe, unref as r, withCtx as C, normalizeProps as Z, guardReactiveProps as ee, createSlots as yt, Fragment as A, renderList as H, mergeProps as gt, toDisplayString as oe, withDirectives as Qe, vShow as Je, Teleport as ia, resolveDynamicComponent as ca, createTextVNode as ll, nextTick as va } from "vue";
2
+ import { o as al, g as pt, k as da, c as ha, t as fa, j as ya, T as ga, l as ol, p as _e, a as q, d as G, a2 as nl, a6 as pa, a7 as ba, a5 as x, a4 as ie, X as ma, s as Ke, h as wa, a3 as ka, a8 as L, a9 as sl, f as Ca, i as xa, a0 as bt, u as $a, q as Aa, x as _a, aa as ul } from "./lib-_nVZfi2t.js";
3
+ import { t as Ta, u as Sa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ma, a as mt } from "./useNestedProp-BeKjhKny.js";
5
+ import { u as Pa } from "./usePrinter-DXIMGR61.js";
6
+ import { u as Fa, B as La } from "./BaseScanner-BMpwQAfz.js";
7
+ import { u as Ia } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Da } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as Ya } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as za } from "./useChartAccessibility-9icAAmYg.js";
11
+ import Ba from "./img-C5q4A7ke.js";
12
+ import { _ as Xa } from "./Shape-BuBasQnO.js";
13
+ import Oa from "./Title-osQjQYc-.js";
14
+ import Ea from "./Legend-PhhPyrZ0.js";
15
+ import { _ as Na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const rl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, il = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, cl = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, vl = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#61747E" } }, average: { color: "#8A9892", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#AACCAA" }, name: { color: "#99CC99" }, hollow: { total: { color: "#99CC99", value: { color: "#AACCAA" } }, average: { color: "#99CC99", value: { color: "#AACCAA" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, hl = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#A0AC94" } }, average: { color: "#8A9892", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, fl = {
17
17
  default: {},
18
- dark: sl,
19
- celebration: ul,
20
- celebrationNight: rl,
21
- concrete: il,
22
- hack: cl,
23
- zen: vl
24
- }, wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ dark: rl,
19
+ celebration: il,
20
+ celebrationNight: cl,
21
+ concrete: vl,
22
+ hack: dl,
23
+ zen: hl
24
+ }, $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
25
  __proto__: null,
26
- celebration: ul,
27
- celebrationNight: rl,
28
- concrete: il,
29
- dark: sl,
30
- default: dl,
31
- hack: cl,
32
- zen: vl
33
- }, Symbol.toStringTag, { value: "Module" })), Xa = ["id"], Oa = ["id"], Ea = ["xmlns", "viewBox"], Na = ["width", "height"], Va = { key: 1 }, Ra = ["id"], Ha = ["stop-color"], Ga = ["offset", "stop-color"], Ua = ["offset", "stop-color"], ja = ["stop-color"], qa = { key: 2 }, Wa = ["id", "cx", "cy"], Qa = ["stop-color", "stop-opacity"], Ja = ["stop-color"], Ka = ["id"], Za = ["id"], eo = ["id"], to = ["flood-color"], lo = ["id"], ao = ["flood-color"], oo = ["d", "stroke", "filter"], no = ["d", "stroke", "filter"], so = ["cx", "cy", "r", "fill", "filter"], uo = { key: 6 }, ro = ["stroke", "d"], io = ["d", "fill", "stroke", "stroke-width", "filter"], co = { key: 0 }, vo = ["d", "fill", "stroke", "stroke-width", "filter"], ho = { key: 0 }, fo = ["stroke", "d"], yo = { key: 0 }, go = ["d", "stroke", "stroke-width", "filter"], po = { key: 1 }, bo = ["d", "fill", "stroke", "stroke-width", "filter"], mo = ["d", "fill", "stroke", "stroke-width", "filter"], wo = { key: 1 }, ko = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Co = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xo = { key: 0 }, $o = ["d", "fill", "stroke", "stroke-width"], Ao = ["cx", "cy", "r", "stroke"], _o = ["cx", "cy", "r", "fill"], To = ["cx", "cy", "r"], So = { key: 0 }, Mo = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Fo = { key: 1 }, Lo = ["cx", "cy", "r"], Po = ["x", "y", "fill", "font-size"], Io = ["x", "y", "fill", "font-size"], Do = ["x", "y", "fill", "font-size"], Yo = ["x", "y", "fill", "font-size"], zo = ["filter"], Bo = { key: 0 }, Xo = ["x", "y"], Oo = { key: 1 }, Eo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], No = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Vo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Ro = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Ho = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Go = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], qo = { key: 2 }, Wo = ["x", "y", "width"], Qo = ["x", "y", "width"], Jo = {
26
+ celebration: il,
27
+ celebrationNight: cl,
28
+ concrete: vl,
29
+ dark: rl,
30
+ default: fl,
31
+ hack: dl,
32
+ zen: hl
33
+ }, Symbol.toStringTag, { value: "Module" })), Va = ["id"], Ra = ["id"], Ha = ["xmlns", "viewBox"], Ga = ["width", "height"], Ua = { key: 1 }, ja = ["id"], Wa = ["stop-color"], qa = ["offset", "stop-color"], Qa = ["offset", "stop-color"], Ja = ["stop-color"], Ka = { key: 2 }, Za = ["id", "cx", "cy"], eo = ["stop-color", "stop-opacity"], to = ["stop-color"], lo = ["id"], ao = ["id"], oo = ["id"], no = ["flood-color"], so = ["id"], uo = ["flood-color"], ro = ["d", "stroke", "filter"], io = ["d", "stroke", "filter"], co = ["cx", "cy", "r", "fill", "filter"], vo = { key: 6 }, ho = ["stroke", "d"], fo = ["d", "fill", "stroke", "stroke-width", "filter"], yo = { key: 0 }, go = ["d", "fill", "stroke", "stroke-width", "filter"], po = { key: 0 }, bo = ["stroke", "d"], mo = { key: 0 }, wo = ["d", "stroke", "stroke-width", "filter"], ko = { key: 1 }, Co = ["d", "fill", "stroke", "stroke-width", "filter"], xo = ["d", "fill", "stroke", "stroke-width", "filter"], $o = { key: 1 }, Ao = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], _o = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], To = { key: 0 }, So = ["d", "fill", "stroke", "stroke-width"], Mo = ["cx", "cy", "r", "stroke"], Po = ["cx", "cy", "r", "fill"], Fo = ["cx", "cy", "r"], Lo = { key: 0 }, Io = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Do = { key: 1 }, Yo = ["cx", "cy", "r"], zo = ["x", "y", "fill", "font-size"], Bo = ["x", "y", "fill", "font-size"], Xo = ["x", "y", "fill", "font-size"], Oo = ["x", "y", "fill", "font-size"], Eo = ["filter", "opacity"], No = { key: 0 }, Vo = ["x", "y"], Ro = { key: 1 }, Ho = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Go = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Wo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], qo = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Ko = { key: 2 }, Zo = ["x", "y", "width"], en = ["x", "y", "width"], tn = {
34
34
  key: 4,
35
35
  class: "vue-data-ui-watermark"
36
- }, Ko = ["id"], Zo = ["onClick"], en = {
36
+ }, ln = ["id"], an = ["onClick"], on = {
37
37
  key: 7,
38
38
  class: "vue-ui-donut-hollow"
39
- }, tn = ["innerHTML"], ln = {
39
+ }, nn = ["innerHTML"], sn = {
40
40
  __name: "vue-ui-donut",
41
41
  props: {
42
42
  config: {
@@ -53,31 +53,31 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
53
53
  }
54
54
  },
55
55
  emits: ["selectLegend", "selectDatapoint"],
56
- setup(bt, { expose: hl, emit: fl }) {
57
- const yl = be(() => import("./Tooltip-l2pmtXwi.js")), gl = be(() => import("./BaseIcon-_2VlkSHq.js")), pl = be(() => import("./vue-ui-accordion-WOPRF2Tv.js")), bl = be(() => import("./DataTable-CokMin24.js")), ml = be(() => import("./PenAndPaper-CFRubEEG.js")), wl = be(() => import("./UserOptions-M5A9w5GL.js")), kl = be(() => import("./PackageVersion-BuD3uLvK.js")), Cl = be(() => import("./BaseDraggableDialog-C2wzOVzX.js")), { vue_ui_donut: xl } = Aa(), { isThemeValid: $l, warnInvalidTheme: Al } = Fa(), _l = aa(), T = bt, Be = y({
56
+ setup(wt, { expose: yl, emit: gl }) {
57
+ const pl = pe(() => import("./Tooltip-l2pmtXwi.js")), bl = pe(() => import("./BaseIcon-CQaciFyv.js")), ml = pe(() => import("./vue-ui-accordion-nCaoOi6x.js")), wl = pe(() => import("./DataTable-C8cgUUyx.js")), kl = pe(() => import("./PenAndPaper-DtbXViIl.js")), Cl = pe(() => import("./UserOptions-DeiXBImO.js")), xl = pe(() => import("./PackageVersion-DXy-wfBa.js")), $l = pe(() => import("./BaseDraggableDialog-B6wHUQPl.js")), { vue_ui_donut: Al } = Ma(), { isThemeValid: _l, warnInvalidTheme: Tl } = Da(), Sl = ua(), _ = wt, Oe = f({
58
58
  get() {
59
- return !!T.dataset && T.dataset.length;
59
+ return !!_.dataset && _.dataset.length;
60
60
  },
61
61
  set(l) {
62
62
  return l;
63
63
  }
64
- }), te = de(null), Xe = w(null), Tl = w(null), Sl = w(null), mt = de(null), wt = de(null), fe = de(null), Te = de(null), kt = de(null), Ct = de(null), xt = w(0), $t = w(0), At = w(0), _t = w(!1), Pe = w(null), Je = w(null), Se = y({
64
+ }), te = be(null), Ee = w(null), Ml = w(null), Pl = w(null), kt = be(null), Ct = be(null), ce = be(null), Te = be(null), xt = be(null), $t = be(null), At = w(0), _t = w(0), Tt = w(0), St = w(!1), Fe = w(null), Ze = w(null), Se = f({
65
65
  get: () => e.value.style.chart.layout.labels.percentage.fontSize,
66
66
  set: (l) => l
67
- }), E = y({
67
+ }), E = f({
68
68
  get: () => e.value.style.chart.layout.labels.name.fontSize,
69
69
  set: (l) => l
70
- }), we = y({
70
+ }), we = f({
71
71
  get: () => e.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
72
72
  set: (l) => l
73
73
  });
74
- let Ke = !1;
75
- const ne = () => {
76
- !e.value.autoSize || Ke || (Ke = !0, requestAnimationFrame(() => {
77
- Ke = !1;
78
- const l = e.value, o = Xe.value, t = ke.value;
74
+ let et = !1;
75
+ const ve = () => {
76
+ !e.value.autoSize || et || (et = !0, requestAnimationFrame(() => {
77
+ et = !1;
78
+ const l = e.value, o = Ee.value, t = ke.value;
79
79
  if (!l.autoSize || !o || !t) return;
80
- const [a, r, v, f] = t.getAttribute("viewBox").split(" ").map(Number), C = { x: a, y: r, width: v, height: f }, A = [
80
+ const [a, u, c, g] = t.getAttribute("viewBox").split(" ").map(Number), $ = { x: a, y: u, width: c, height: g }, S = [
81
81
  {
82
82
  selector: ".vue-data-ui-datalabel-value",
83
83
  baseSize: l.style.chart.layout.labels.percentage.fontSize,
@@ -97,115 +97,115 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
97
97
  sizeRef: we
98
98
  }
99
99
  ];
100
- A.map((M) => o.querySelectorAll(M.selector).length).reduce((M, P) => M + P, 0) !== 0 && A.forEach(({ selector: M, baseSize: P, minSize: ie, sizeRef: pe }) => {
101
- o.querySelectorAll(M).forEach((ct) => {
102
- const ze = ba({
103
- el: ct,
104
- bounds: C,
105
- currentFontSize: P,
106
- minFontSize: ie,
100
+ S.map((P) => o.querySelectorAll(P.selector).length).reduce((P, X) => P + X, 0) !== 0 && S.forEach(({ selector: P, baseSize: X, minSize: ye, sizeRef: ge }) => {
101
+ o.querySelectorAll(P).forEach((dt) => {
102
+ const Xe = Ca({
103
+ el: dt,
104
+ bounds: $,
105
+ currentFontSize: X,
106
+ minFontSize: ye,
107
107
  attempts: 200,
108
108
  padding: 1
109
109
  });
110
- pe.value = ze;
110
+ ge.value = Xe;
111
111
  });
112
112
  });
113
113
  }));
114
114
  };
115
- Kt(async () => {
116
- _t.value = !0, Tt(), requestAnimationFrame(ne);
115
+ el(async () => {
116
+ St.value = !0, Mt(), requestAnimationFrame(ve);
117
117
  });
118
- let Ze;
119
- Kt(() => {
120
- te.value && (Ze = new ResizeObserver((l) => {
118
+ let tt;
119
+ el(() => {
120
+ te.value && (tt = new ResizeObserver((l) => {
121
121
  for (const o of l) {
122
122
  const { width: t, height: a } = o.contentRect;
123
123
  if (t > 0 && a > 0) {
124
- ne();
124
+ ve();
125
125
  break;
126
126
  }
127
127
  }
128
- }), Ze.observe(te.value.parentElement));
129
- }), Zt(() => {
130
- Ze?.disconnect();
131
- }), Zt(() => {
132
- fe.value && (Te.value && fe.value.unobserve(Te.value), fe.value.disconnect());
128
+ }), tt.observe(te.value.parentElement));
129
+ }), tl(() => {
130
+ tt?.disconnect();
131
+ }), tl(() => {
132
+ ce.value && (Te.value && ce.value.unobserve(Te.value), ce.value.disconnect());
133
133
  });
134
- const et = y(() => !!e.value.debug);
135
- function Tt() {
136
- if (tl(T.dataset) ? (yt({
134
+ const lt = f(() => !!e.value.debug);
135
+ function Mt() {
136
+ if (al(_.dataset) ? (pt({
137
137
  componentName: "VueUiDonut",
138
138
  type: "dataset",
139
- debug: et.value
140
- }), Be.value = !1, Ee.value = !0) : (T.dataset.forEach((l, o) => {
141
- ra({
139
+ debug: lt.value
140
+ }), Oe.value = !1, Ve.value = !0) : (_.dataset.forEach((l, o) => {
141
+ da({
142
142
  datasetObject: l,
143
143
  requiredAttributes: ["name", "values"]
144
144
  }).forEach((t) => {
145
- yt({
145
+ pt({
146
146
  componentName: "VueUiDonut",
147
147
  type: "datasetSerieAttribute",
148
148
  property: t,
149
149
  index: o,
150
- debug: et.value
151
- }), Be.value = !1, Ee.value = !0;
150
+ debug: lt.value
151
+ }), Oe.value = !1, Ve.value = !0;
152
152
  });
153
- }), T.dataset.forEach((l, o) => {
154
- (!l.name || l.name === "") && yt({
153
+ }), _.dataset.forEach((l, o) => {
154
+ (!l.name || l.name === "") && pt({
155
155
  componentName: "VueUiDonut",
156
156
  type: "datasetAttributeEmpty",
157
157
  property: "name",
158
158
  index: o,
159
- debug: et.value
159
+ debug: lt.value
160
160
  });
161
- })), tl(T.dataset) || (Ee.value = e.value.loading), e.value.responsive) {
162
- const l = xa(() => {
163
- const { width: o, height: t } = $a({
161
+ })), al(_.dataset) || (Ve.value = e.value.loading), e.value.responsive) {
162
+ const l = Ta(() => {
163
+ const { width: o, height: t } = Sa({
164
164
  chart: te.value,
165
- title: e.value.style.chart.title.text ? mt.value : null,
166
- legend: e.value.style.chart.legend.show ? wt.value : null,
167
- source: kt.value,
168
- noTitle: Ct.value,
169
- padding: e.value.autoSize ? void 0 : Ne.value
165
+ title: e.value.style.chart.title.text ? kt.value : null,
166
+ legend: e.value.style.chart.legend.show ? Ct.value : null,
167
+ source: xt.value,
168
+ noTitle: $t.value,
169
+ padding: e.value.autoSize ? void 0 : Re.value
170
170
  });
171
171
  requestAnimationFrame(() => {
172
- n.value.width = o, n.value.height = t, ne();
172
+ n.value.width = o, n.value.height = t, ve();
173
173
  });
174
174
  });
175
- fe.value && (Te.value && fe.value.unobserve(Te.value), fe.value.disconnect()), fe.value = new ResizeObserver(l), Te.value = te.value.parentNode, fe.value.observe(Te.value);
175
+ ce.value && (Te.value && ce.value.unobserve(Te.value), ce.value.disconnect()), ce.value = new ResizeObserver(l), Te.value = te.value.parentNode, ce.value.observe(Te.value);
176
176
  }
177
177
  }
178
- const m = w(ia()), tt = w(!1), lt = w(""), le = w(null), St = w(0);
179
- function at() {
180
- const l = pt({
181
- userConfig: T.config,
182
- defaultConfig: xl
178
+ const k = w(ha()), at = w(!1), ot = w(""), le = w(null), Pt = w(0);
179
+ function nt() {
180
+ const l = mt({
181
+ userConfig: _.config,
182
+ defaultConfig: Al
183
183
  });
184
184
  let o = {};
185
185
  const t = l.theme;
186
186
  if (!t)
187
187
  o = l;
188
- else if (!$l.value(l))
189
- Al(l), o = l;
188
+ else if (!_l.value(l))
189
+ Tl(l), o = l;
190
190
  else {
191
- const a = pt({
192
- userConfig: dl[t] || T.config,
191
+ const a = mt({
192
+ userConfig: fl[t] || _.config,
193
193
  defaultConfig: l
194
194
  });
195
195
  o = {
196
- ...pt({
197
- userConfig: T.config,
196
+ ...mt({
197
+ userConfig: _.config,
198
198
  defaultConfig: a
199
199
  }),
200
- customPalette: l.customPalette.length ? l.customPalette : ma[t] || _e
200
+ customPalette: l.customPalette.length ? l.customPalette : xa[t] || _e
201
201
  };
202
202
  }
203
- return T.config && gt(T.config, "events.datapointEnter") ? o.events.datapointEnter = T.config.events.datapointEnter : o.events.datapointEnter = null, T.config && gt(T.config, "events.datapointLeave") ? o.events.datapointLeave = T.config.events.datapointLeave : o.events.datapointLeave = null, T.config && gt(T.config, "events.datapointClick") ? o.events.datapointClick = T.config.events.datapointClick : o.events.datapointClick = null, o;
203
+ return _.config && bt(_.config, "events.datapointEnter") ? o.events.datapointEnter = _.config.events.datapointEnter : o.events.datapointEnter = null, _.config && bt(_.config, "events.datapointLeave") ? o.events.datapointLeave = _.config.events.datapointLeave : o.events.datapointLeave = null, _.config && bt(_.config, "events.datapointClick") ? o.events.datapointClick = _.config.events.datapointClick : o.events.datapointClick = null, o;
204
204
  }
205
- const e = w(at()), { loading: Oe, FINAL_DATASET: Me, manualLoading: Ee, skeletonDataset: Ml } = Ta({
206
- ...oa(T),
205
+ const e = w(nt()), { loading: Ne, FINAL_DATASET: Le, manualLoading: Ve, skeletonDataset: Fl } = Fa({
206
+ ...ra(_),
207
207
  FINAL_CONFIG: e,
208
- prepareConfig: at,
208
+ prepareConfig: nt,
209
209
  skeletonDataset: [
210
210
  {
211
211
  name: "",
@@ -223,7 +223,7 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
223
223
  color: "#CACACA"
224
224
  }
225
225
  ],
226
- skeletonConfig: ca({
226
+ skeletonConfig: fa({
227
227
  defaultConfig: e.value,
228
228
  userConfig: {
229
229
  useCssAnimation: !1,
@@ -260,56 +260,48 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
260
260
  }
261
261
  }
262
262
  })
263
- }), X = w(!0), ce = de([]);
264
- function Fl(l, o = 1e3, t = 50) {
265
- return new Promise((a) => {
266
- const r = l.length;
267
- ce.value = Array(r).fill(0);
268
- let v = 0;
269
- l.forEach((f, C) => {
270
- setTimeout(() => {
271
- const A = performance.now();
272
- function F(M) {
273
- const P = Math.min((M - A) / o, 1), ie = nl(P);
274
- ce.value[C] = f * ie, ce.value = [...ce.value], P < 1 ? (requestAnimationFrame(F), requestAnimationFrame(ne)) : (ce.value[C] = f, ce.value = [...ce.value], v += 1, v === r && a(), requestAnimationFrame(ne));
275
- }
276
- requestAnimationFrame(F);
277
- }, C * t);
278
- });
263
+ }), B = w(!0), Ie = w(0), Ft = w(!1);
264
+ let De = null;
265
+ function Ll(l = 1e3) {
266
+ return new Promise((o) => {
267
+ const t = performance.now();
268
+ function a(u) {
269
+ const c = u - t, g = Math.min(
270
+ c / l,
271
+ 1
272
+ ), $ = ul(g);
273
+ Ie.value = $, g < 1 ? De = requestAnimationFrame(a) : (Ie.value = 1, De = null, o());
274
+ }
275
+ De !== null && cancelAnimationFrame(De), Ie.value = 0, De = requestAnimationFrame(a);
279
276
  });
280
277
  }
281
- const Mt = w(!1);
282
- Le(
283
- () => Oe.value,
278
+ Pe(
279
+ () => Ne.value,
284
280
  async (l) => {
285
- if (l || Mt.value) return;
286
- const o = Me.value === Ml, t = e.value.startAnimation?.show;
281
+ if (l || Ft.value)
282
+ return;
283
+ const o = Le.value === Fl, t = e.value.startAnimation?.show;
287
284
  if (!o && t) {
288
- Mt.value = !0;
289
- const a = Me.value.map(
290
- (r) => r.values.reduce((v, f) => v + f, 0)
291
- );
292
- await Fl(
293
- a,
294
- e.value.startAnimation.durationMs,
295
- e.value.startAnimation.staggerMs
296
- );
297
- }
298
- X.value = !1;
285
+ Ft.value = !0;
286
+ const a = e.value.startAnimation.durationMs || 1e3;
287
+ await Ll(a);
288
+ } else
289
+ Ie.value = 1;
290
+ B.value = !1;
299
291
  },
300
292
  { immediate: !0 }
301
293
  );
302
- const { userOptionsVisible: ot, setUserOptionsVisibility: Ft, keepUserOptionState: Lt } = La({ config: e.value }), { svgRef: ke } = Pa({ config: e.value.style.chart.title });
303
- function Ll() {
304
- Ft(!0);
294
+ const { userOptionsVisible: st, setUserOptionsVisibility: Lt, keepUserOptionState: It } = Ya({ config: e.value }), { svgRef: ke } = za({ config: e.value.style.chart.title });
295
+ function Il() {
296
+ Lt(!0);
305
297
  }
306
- function Pl() {
307
- Ft(!1);
298
+ function Dl() {
299
+ Lt(!1);
308
300
  }
309
- Le(() => T.config, (l) => {
310
- Oe.value || (e.value = at()), ot.value = !e.value.userOptions.showOnChartHover, Tt(), xt.value += 1, $t.value += 1, At.value += 1, b.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, b.value.showTable = e.value.table.show, b.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
301
+ Pe(() => _.config, (l) => {
302
+ Ne.value || (e.value = nt()), st.value = !e.value.userOptions.showOnChartHover, Mt(), At.value += 1, _t.value += 1, Tt.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
311
303
  }, { deep: !0 });
312
- const Ne = y(() => {
304
+ const Re = f(() => {
313
305
  const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
314
306
  return {
315
307
  css: `padding:${l}px ${o}px ${t}px ${a}px`,
@@ -318,19 +310,19 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
318
310
  bottom: t,
319
311
  left: a
320
312
  };
321
- }), { isPrinting: Pt, isImaging: It, generatePdf: Dt, generateImage: Yt } = _a({
322
- elementId: `donut__${m.value}`,
313
+ }), { isPrinting: Dt, isImaging: Yt, generatePdf: zt, generateImage: Bt } = Pa({
314
+ elementId: `donut__${k.value}`,
323
315
  fileName: e.value.style.chart.title.text || "vue-ui-donut",
324
316
  options: e.value.userOptions.print
325
- }), Il = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), zt = y(() => va(e.value.customPalette)), b = w({
317
+ }), Yl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = f(() => ya(e.value.customPalette)), m = w({
326
318
  dataLabels: {
327
319
  show: e.value.style.chart.layout.labels.dataLabels.show
328
320
  },
329
321
  showTable: e.value.table.show,
330
322
  showTooltip: e.value.style.chart.tooltip.show
331
323
  });
332
- Le(e, () => {
333
- b.value = {
324
+ Pe(e, () => {
325
+ m.value = {
334
326
  dataLabels: {
335
327
  show: e.value.style.chart.layout.labels.dataLabels.show
336
328
  },
@@ -341,146 +333,151 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
341
333
  const n = w({
342
334
  height: e.value.style.chart.height,
343
335
  width: e.value.style.chart.width
344
- }), Ce = y(() => {
336
+ }), Ce = f(() => {
345
337
  if (e.value.pie)
346
- return S.value;
347
- const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * l, t = o > S.value ? S.value : o;
338
+ return T.value;
339
+ const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * l, t = o > T.value ? T.value : o;
348
340
  return Math.max(t, 12 * (1 + l));
349
- }), Bt = fl, q = y(() => Me.value.sort((l, o) => {
350
- const t = Array.isArray(l.values) ? l.values.reduce((r, v) => r + v, 0) : l.value ?? 0, a = Array.isArray(o.values) ? o.values.reduce((r, v) => r + v, 0) : o.value ?? 0;
341
+ }), Ot = gl, U = f(() => Le.value.sort((l, o) => {
342
+ const t = Array.isArray(l.values) ? l.values.reduce((u, c) => u + c, 0) : l.value ?? 0, a = Array.isArray(o.values) ? o.values.reduce((u, c) => u + c, 0) : o.value ?? 0;
351
343
  return l.ghost && !o.ghost ? 1 : o.ghost && !l.ghost ? -1 : a - t;
352
344
  }).map((l, o) => ({
353
345
  name: l.name,
354
- color: ll(l.color) || zt.value[o] || _e[o] || _e[o % _e.length],
355
- value: da(l.values.reduce((t, a) => t + a, 0)),
346
+ color: ol(l.color) || Xt.value[o] || _e[o] || _e[o % _e.length],
347
+ value: ga(l.values.reduce((t, a) => t + a, 0)),
356
348
  absoluteValues: l.values,
357
349
  comment: l.comment || "",
358
350
  patternIndex: o,
359
351
  seriesIndex: o,
360
352
  ghost: !1,
361
- pattern: `pattern_${m.value}_${o}`
353
+ pattern: `pattern_${k.value}_${o}`
362
354
  })));
363
- Le(() => T.dataset, (l) => {
364
- Array.isArray(l) && l.length > 0 && (Ee.value = !1);
355
+ Pe(() => _.dataset, (l) => {
356
+ Array.isArray(l) && l.length > 0 && (Ve.value = !1);
365
357
  }, { immediate: !0 });
366
- const W = de(q.value);
367
- Le(() => q.value, (l) => {
368
- W.value = l, requestAnimationFrame(ne);
358
+ const Q = be(U.value);
359
+ Pe(() => U.value, (l) => {
360
+ Q.value = l, requestAnimationFrame(ve);
369
361
  });
370
- function Dl() {
371
- return q.value.map((l) => ({
362
+ function zl() {
363
+ return U.value.map((l) => ({
372
364
  name: l.name,
373
365
  color: l.color,
374
366
  value: l.value
375
367
  }));
376
368
  }
377
- const Q = w([]), xe = w(!1);
378
- function Xt({ from: l, to: o, duration: t, onUpdate: a, onDone: r, easing: v = nl }) {
379
- const f = performance.now();
380
- function C(A) {
381
- const F = Math.min((A - f) / t, 1), M = v(F), P = l + (o - l) * M;
382
- a(P, F), F < 1 ? requestAnimationFrame(C) : (a(o, 1), r && r());
369
+ const j = w([]), de = w(!1), xe = w(null);
370
+ function Et({ from: l, to: o, duration: t, onUpdate: a, onDone: u, easing: c = ul }) {
371
+ const g = performance.now();
372
+ function $(S) {
373
+ const D = Math.min((S - g) / t, 1), P = c(D), X = l + (o - l) * P;
374
+ a(X, D), D < 1 ? requestAnimationFrame($) : (a(o, 1), u && u());
383
375
  }
384
- requestAnimationFrame(C);
376
+ requestAnimationFrame($);
385
377
  }
386
- function Ve(l) {
387
- const o = q.value.find((r, v) => v === l);
388
- let a = W.value.find((r, v) => v === l).value;
389
- if (Q.value.includes(l)) {
390
- let v = function() {
391
- W.value = W.value.map(
392
- (C, A) => l === A ? { ...C, value: r } : C
378
+ function He(l) {
379
+ const o = U.value.find((u, c) => c === l);
380
+ let a = Q.value.find((u, c) => c === l).value;
381
+ if (j.value.includes(l)) {
382
+ let c = function() {
383
+ Q.value = Q.value.map(
384
+ ($, S) => l === S ? { ...$, value: u } : $
393
385
  );
394
- }, f = function() {
395
- xe.value = !0, Xt({
386
+ }, g = function() {
387
+ de.value = !0, xe.value = l, Et({
396
388
  from: a,
397
- to: r,
389
+ to: u,
398
390
  duration: e.value.serieToggleAnimation.durationMs,
399
- onUpdate: (C, A) => {
400
- W.value = W.value.map(
401
- (F, M) => l === M ? { ...F, value: C } : F
402
- ), requestAnimationFrame(ne);
391
+ onUpdate: ($, S) => {
392
+ Q.value = Q.value.map(
393
+ (D, P) => l === P ? { ...D, value: $ } : D
394
+ ), requestAnimationFrame(ve);
403
395
  },
404
396
  onDone: () => {
405
- v(), xe.value = !1;
397
+ c(), de.value = !1, xe.value = null;
406
398
  }
407
399
  });
408
400
  };
409
- Q.value = Q.value.filter((C) => C !== l);
410
- const r = o.value;
411
- e.value.serieToggleAnimation.show && e.value.type === "classic" ? f() : (v(), requestAnimationFrame(ne));
412
- } else if (Q.value.length < q.value.length - 1) {
413
- let r = function() {
414
- Q.value.push(l), W.value = W.value.map(
415
- (f, C) => l === C ? { ...f, value: 0 } : f
401
+ j.value = j.value.filter(($) => $ !== l);
402
+ const u = o.value;
403
+ e.value.serieToggleAnimation.show && e.value.type === "classic" ? g() : (c(), requestAnimationFrame(ve));
404
+ } else if (j.value.length < U.value.length - 1) {
405
+ let u = function() {
406
+ j.value.push(l), Q.value = Q.value.map(
407
+ (g, $) => l === $ ? { ...g, value: 0 } : g
416
408
  );
417
- }, v = function() {
418
- xe.value = !0, Xt({
409
+ }, c = function() {
410
+ de.value = !0, xe.value = l, Et({
419
411
  from: a,
420
412
  to: 0,
421
413
  duration: e.value.serieToggleAnimation.durationMs,
422
- onUpdate: (f, C) => {
423
- W.value = W.value.map(
424
- (A, F) => l === F ? { ...A, value: f } : A
425
- ), requestAnimationFrame(ne);
414
+ onUpdate: (g, $) => {
415
+ Q.value = Q.value.map(
416
+ (S, D) => l === D ? { ...S, value: g } : S
417
+ ), requestAnimationFrame(ve);
426
418
  },
427
419
  onDone: () => {
428
- r(), requestAnimationFrame(ne), xe.value = !1;
420
+ u(), requestAnimationFrame(ve), de.value = !1, xe.value = null;
429
421
  }
430
422
  });
431
423
  };
432
- e.value.serieToggleAnimation.show && e.value.type === "classic" ? v() : r();
424
+ e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : u();
433
425
  }
434
- Bt("selectLegend", ve.value.map((r) => ({
435
- name: r.name,
436
- color: r.color,
437
- value: r.value
426
+ Ot("selectLegend", re.value.map((u) => ({
427
+ name: u.name,
428
+ color: u.color,
429
+ value: u.value
438
430
  })));
439
431
  }
440
- function Ot(l) {
441
- if (!q.value.length)
432
+ function Nt(l) {
433
+ if (!U.value.length)
442
434
  return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
443
- const o = q.value.find((t) => t.name === l);
435
+ const o = U.value.find((t) => t.name === l);
444
436
  return o || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${l}"`), null);
445
437
  }
446
- function Yl(l) {
447
- const o = Ot(l);
448
- o !== null && Q.value.includes(o.seriesIndex) && Ve(o.seriesIndex);
438
+ function Bl(l) {
439
+ const o = Nt(l);
440
+ o !== null && j.value.includes(o.seriesIndex) && He(o.seriesIndex);
449
441
  }
450
- function zl(l) {
451
- const o = Ot(l);
452
- o !== null && (Q.value.includes(o.seriesIndex) || Ve(o.seriesIndex));
442
+ function Xl(l) {
443
+ const o = Nt(l);
444
+ o !== null && (j.value.includes(o.seriesIndex) || He(o.seriesIndex));
453
445
  }
454
- const Bl = y(() => Me.value.reduce((l, o) => l + o.values.reduce((t, a) => t + a, 0), 0)), ve = y(() => {
455
- if (X.value && !Oe.value) {
456
- const l = ce.value.map((t, a) => ({
457
- ...q.value[a],
458
- value: t,
459
- color: q.value[a].color,
446
+ const Ol = f(
447
+ () => Le.value.reduce(
448
+ (l, o) => l + o.values.reduce((t, a) => t + a, 0),
449
+ 0
450
+ )
451
+ ), re = f(() => {
452
+ if (B.value && !Ne.value) {
453
+ const l = Ie.value, o = U.value.map((a) => ({
454
+ ...a,
455
+ value: a.value * l,
456
+ color: a.color,
460
457
  ghost: !1
461
- })), o = Bl.value - ce.value.reduce((t, a) => t + a, 0);
462
- return o > 0 && l.push({
458
+ })), t = Ol.value * (1 - l);
459
+ return t > 0 && o.push({
463
460
  name: "__ghost__",
464
- value: o,
461
+ value: t,
465
462
  color: "transparent",
466
463
  ghost: !0
467
- }), l;
464
+ }), o;
468
465
  } else
469
- return W.value.forEach((l, o) => {
466
+ return Q.value.forEach((l) => {
470
467
  if ([null, void 0].includes(l.values))
471
468
  return {
472
469
  ...l,
473
470
  values: []
474
471
  };
475
- }), W.value.map((l, o) => ({
472
+ }), Q.value.map((l, o) => ({
476
473
  ...l,
477
474
  seriesIndex: o
478
- })).filter((l, o) => !Q.value.includes(o));
479
- }), nt = y(() => Me.value.map((l, o) => {
480
- const t = (l.values || []).reduce((r, v) => r + v, 0), a = t / Me.value.map((r) => (r.values || []).reduce((v, f) => v + f, 0)).reduce((r, v) => r + v, 0);
475
+ })).filter((l, o) => !j.value.includes(o));
476
+ }), ut = f(() => Le.value.map((l, o) => {
477
+ const t = (l.values || []).reduce((u, c) => u + c, 0), a = t / Le.value.map((u) => (u.values || []).reduce((c, g) => c + g, 0)).reduce((u, c) => u + c, 0);
481
478
  return {
482
479
  name: l.name,
483
- color: ll(l.color) || zt.value[o] || _e[o] || _e[o % _e.length],
480
+ color: ol(l.color) || Xt.value[o] || _e[o] || _e[o % _e.length],
484
481
  value: t,
485
482
  shape: "circle",
486
483
  patternIndex: o,
@@ -488,30 +485,30 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
488
485
  };
489
486
  }).map((l, o) => ({
490
487
  ...l,
491
- opacity: Q.value.includes(o) ? 0.5 : 1,
492
- segregate: () => !xe.value && Ve(o),
493
- isSegregated: Q.value.includes(o),
494
- display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? j(e.value.style.chart.layout.labels.value.formatter, l.value, G({
488
+ opacity: j.value.includes(o) ? 0.5 : 1,
489
+ segregate: () => !de.value && He(o),
490
+ isSegregated: j.value.includes(o),
491
+ display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? q(e.value.style.chart.layout.labels.value.formatter, l.value, G({
495
492
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
496
493
  v: l.value,
497
494
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
498
495
  r: e.value.style.chart.legend.roundingValue
499
- }), { datapoint: l, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? Q.value.includes(o) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${jl(l.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(l.value / V.value) ? "-" : j(e.value.style.chart.layout.labels.percentage.formatter, Et(l), G({
500
- v: Et(l),
496
+ }), { datapoint: l, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? j.value.includes(o) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${Jl(l.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(l.value / V.value) ? "-" : q(e.value.style.chart.layout.labels.percentage.formatter, Vt(l), G({
497
+ v: Vt(l),
501
498
  s: "%",
502
499
  r: e.value.style.chart.legend.roundingPercentage
503
500
  }))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
504
- }))), Xl = y(() => ({
501
+ }))), El = f(() => ({
505
502
  cy: "donut-div-legend",
506
503
  backgroundColor: e.value.style.chart.legend.backgroundColor,
507
504
  color: e.value.style.chart.legend.color,
508
505
  fontSize: e.value.style.chart.legend.fontSize,
509
506
  paddingBottom: 12,
510
507
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
511
- })), S = y(() => {
508
+ })), T = f(() => {
512
509
  const l = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(n.value.width * o, n.value.height * o);
513
510
  return Math.max(12, t);
514
- }), O = y(() => al({ series: ve.value }, n.value.width / 2, n.value.height / 2, S.value, S.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), Ol = y(() => Math.abs(ve.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), El = y(() => al({
511
+ }), O = f(() => nl({ series: re.value }, n.value.width / 2, n.value.height / 2, T.value, T.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), Nl = f(() => Math.abs(re.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Vl = f(() => nl({
515
512
  series: [
516
513
  {
517
514
  value: 1,
@@ -523,144 +520,147 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
523
520
  absoluteValues: [1]
524
521
  }
525
522
  ]
526
- }, n.value.width / 2, n.value.height / 2, S.value, S.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), N = y(() => O.value.filter((l) => !l.ghost)), c = y(() => {
527
- const l = Math.max(...ve.value.map((t) => t.value)), o = ve.value.map((t) => t.value / l);
528
- return ha({
523
+ }, n.value.width / 2, n.value.height / 2, T.value, T.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), N = f(() => O.value.filter((l) => !l.ghost)), v = f(() => {
524
+ const l = Math.max(...re.value.map((t) => t.value)), o = re.value.map((t) => t.value / l);
525
+ return pa({
529
526
  series: o,
530
527
  center: {
531
528
  x: n.value.width / 2,
532
529
  y: n.value.height / 2
533
530
  },
534
531
  maxRadius: Math.min(n.value.width, n.value.height) / 3,
535
- hasGhost: X.value
532
+ hasGhost: B.value
536
533
  });
537
534
  });
538
- function ye(l) {
535
+ function he(l) {
539
536
  return l.x > n.value.width / 2 + 6 ? "start" : l.x < n.value.width / 2 - 6 ? "end" : "middle";
540
537
  }
541
- function Nl(l) {
542
- return l.middlePoint.y > n.value.height / 2 ? D({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : D({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
538
+ function Rl(l) {
539
+ return l.middlePoint.y > n.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
543
540
  }
544
- function U(l) {
541
+ function W(l) {
545
542
  return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
546
543
  }
547
- function Vl(l) {
548
- const o = l.proportion * 100, t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, a = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold;
549
- return o > t && o <= a;
544
+ function Hl(l, o) {
545
+ const t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, a = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, c = (Ul.value[o] ?? l.proportion ?? 0) * 100;
546
+ return c > t && c <= a;
550
547
  }
551
- const Y = y(() => {
548
+ const I = f(() => {
552
549
  if (e.value.type !== "classic") return {};
553
550
  const l = {}, o = N.value || [];
554
551
  if (!o.length) return l;
555
- const t = e.value, a = n.value.width / 2, r = n.value.height / 2, v = Ne.value.top + 16, f = n.value.height - Ne.value.bottom - 16, C = we.value * 1.5, A = 8, F = 24, M = a - (S.value + F), P = a + (S.value + F), ie = !!t.style.chart.layout.curvedMarkers;
556
- function pe({ midX: h, midY: x, bandX: I, bandY: R }) {
557
- if (!ie)
558
- return `M ${h} ${x} L ${h} ${R} L ${I} ${R}`;
559
- const ae = I < a ? -1 : 1, z = (h + I) / 2 + ae * 12, B = x + (R - x) * 0.5;
560
- return `M ${h} ${x} Q ${z} ${B} ${I} ${R}`;
552
+ const t = e.value, a = n.value.width / 2, u = n.value.height / 2, c = Re.value.top + 16, g = n.value.height - Re.value.bottom - 16, $ = we.value * 1.5, S = 8, D = 24, P = a - (T.value + D), X = a + (T.value + D), ye = !!t.style.chart.layout.curvedMarkers;
553
+ function ge({ midX: h, midY: b, bandX: F, bandY: R }) {
554
+ if (!ye)
555
+ return `M ${h} ${b} L ${h} ${R} L ${F} ${R}`;
556
+ const ae = F < a ? -1 : 1, Y = (h + F) / 2 + ae * 12, z = b + (R - b) * 0.5;
557
+ return `M ${h} ${b} Q ${Y} ${z} ${F} ${R}`;
561
558
  }
562
- const ct = o.map((h, x) => {
563
- const { x: I, y: R } = fa(h.path), ae = $(h).x, J = he(h) - 3.5, z = String(h.name ?? "").split(/\n/g), B = Math.max(0, z.length - 1), K = we.value * 1.2, Fe = B * K, la = C + Fe;
559
+ const dt = o.map((h, b) => {
560
+ const { x: F, y: R } = ba(h.path), ae = x(h).x, J = ie(h) - 3.5, Y = String(h.name ?? "").split(/\n/g), z = Math.max(0, Y.length - 1), K = we.value * 1.2, Me = z * K, sa = $ + Me;
564
561
  return {
565
562
  arc: h,
566
- index: x,
567
- midX: I,
563
+ index: b,
564
+ midX: F,
568
565
  midY: R,
569
566
  inlineMarkerX: ae,
570
567
  inlineMarkerY: J,
571
- labelHeight: la
568
+ labelHeight: sa
572
569
  };
573
- }).filter(({ arc: h }) => Vl(h)), ze = [], vt = [], Ge = [], Ue = [];
574
- ct.forEach((h) => {
575
- const x = h.inlineMarkerY < r, I = h.inlineMarkerX < a;
576
- x && I ? ze.push(h) : x && !I ? vt.push(h) : !x && I ? Ge.push(h) : Ue.push(h);
570
+ }).filter(({ arc: h }) => {
571
+ const b = h.seriesIndex ?? 0;
572
+ return xe.value === b || j.value.includes(b) ? !1 : Hl(h, b);
573
+ }), Xe = [], ht = [], je = [], We = [];
574
+ dt.forEach((h) => {
575
+ const b = h.inlineMarkerY < u, F = h.inlineMarkerX < a;
576
+ b && F ? Xe.push(h) : b && !F ? ht.push(h) : !b && F ? je.push(h) : We.push(h);
577
577
  });
578
- const qt = (h, x) => h.inlineMarkerY - x.inlineMarkerY || h.index - x.index, Wt = (h, x) => x.inlineMarkerY - h.inlineMarkerY || h.index - x.index;
579
- ze.sort(qt), vt.sort(qt), Ge.sort(Wt), Ue.sort(Wt);
580
- let Qt = v;
581
- ze.forEach((h) => {
582
- const { index: x, midX: I, midY: R, labelHeight: ae } = h, J = Qt, z = M, B = J, K = pe({
583
- midX: I,
578
+ const Qt = (h, b) => h.inlineMarkerY - b.inlineMarkerY || h.index - b.index, Jt = (h, b) => b.inlineMarkerY - h.inlineMarkerY || h.index - b.index;
579
+ Xe.sort(Qt), ht.sort(Qt), je.sort(Jt), We.sort(Jt);
580
+ let Kt = c;
581
+ Xe.forEach((h) => {
582
+ const { index: b, midX: F, midY: R, labelHeight: ae } = h, J = Kt, Y = P, z = J, K = ge({
583
+ midX: F,
584
584
  midY: R,
585
- bandX: z,
586
- bandY: B
585
+ bandX: Y,
586
+ bandY: z
587
587
  });
588
- l[x] = {
588
+ l[b] = {
589
589
  side: "left",
590
- labelX: z - A,
590
+ labelX: Y - S,
591
591
  labelY: J,
592
592
  textAnchor: "end",
593
- markerX: z,
594
- markerY: B,
593
+ markerX: Y,
594
+ markerY: z,
595
595
  connectorPath: K
596
- }, Qt += ae;
596
+ }, Kt += ae;
597
597
  });
598
- let Jt = v;
599
- if (vt.forEach((h) => {
600
- const { index: x, midX: I, midY: R, labelHeight: ae } = h, J = Jt, z = P, B = J, K = pe({
601
- midX: I,
598
+ let Zt = c;
599
+ if (ht.forEach((h) => {
600
+ const { index: b, midX: F, midY: R, labelHeight: ae } = h, J = Zt, Y = X, z = J, K = ge({
601
+ midX: F,
602
602
  midY: R,
603
- bandX: z,
604
- bandY: B
603
+ bandX: Y,
604
+ bandY: z
605
605
  });
606
- l[x] = {
606
+ l[b] = {
607
607
  side: "right",
608
- labelX: z + A,
608
+ labelX: Y + S,
609
609
  labelY: J,
610
610
  textAnchor: "start",
611
- markerX: z,
612
- markerY: B,
611
+ markerX: Y,
612
+ markerY: z,
613
613
  connectorPath: K
614
- }, Jt += ae;
615
- }), Ge.length > 1) {
616
- let h = f;
617
- Ge.forEach((x) => {
618
- const { index: I, midX: R, midY: ae, labelHeight: J } = x;
614
+ }, Zt += ae;
615
+ }), je.length > 1) {
616
+ let h = g;
617
+ je.forEach((b) => {
618
+ const { index: F, midX: R, midY: ae, labelHeight: J } = b;
619
619
  h -= J;
620
- const z = h, B = M, K = z, Fe = pe({
620
+ const Y = h, z = P, K = Y, Me = ge({
621
621
  midX: R,
622
622
  midY: ae,
623
- bandX: B,
623
+ bandX: z,
624
624
  bandY: K
625
625
  });
626
- l[I] = {
626
+ l[F] = {
627
627
  side: "left",
628
- labelX: B - A,
629
- labelY: z,
628
+ labelX: z - S,
629
+ labelY: Y,
630
630
  textAnchor: "end",
631
- markerX: B,
631
+ markerX: z,
632
632
  markerY: K,
633
- connectorPath: Fe
633
+ connectorPath: Me
634
634
  };
635
635
  });
636
636
  }
637
- if (Ue.length > 1) {
638
- let h = f;
639
- Ue.forEach((x) => {
640
- const { index: I, midX: R, midY: ae, labelHeight: J } = x;
637
+ if (We.length > 1) {
638
+ let h = g;
639
+ We.forEach((b) => {
640
+ const { index: F, midX: R, midY: ae, labelHeight: J } = b;
641
641
  h -= J;
642
- const z = h, B = P, K = z, Fe = pe({
642
+ const Y = h, z = X, K = Y, Me = ge({
643
643
  midX: R,
644
644
  midY: ae,
645
- bandX: B,
645
+ bandX: z,
646
646
  bandY: K
647
647
  });
648
- l[I] = {
648
+ l[F] = {
649
649
  side: "right",
650
- labelX: B + A,
651
- labelY: z,
650
+ labelX: z + S,
651
+ labelY: Y,
652
652
  textAnchor: "start",
653
- markerX: B,
653
+ markerX: z,
654
654
  markerY: K,
655
- connectorPath: Fe
655
+ connectorPath: Me
656
656
  };
657
657
  });
658
658
  }
659
659
  return l;
660
660
  });
661
- function Ie(l, o) {
662
- const t = l.value / Rl(o);
663
- return isNaN(t) ? 0 : j(
661
+ function Ye(l, o) {
662
+ const t = l.value / Gl(o);
663
+ return isNaN(t) ? 0 : q(
664
664
  e.value.style.chart.layout.labels.percentage.formatter,
665
665
  t * 100,
666
666
  G({
@@ -671,35 +671,38 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
671
671
  { datapoint: l }
672
672
  );
673
673
  }
674
- function Rl(l) {
674
+ function Gl(l) {
675
675
  return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
676
676
  }
677
- const V = y(() => ve.value.map((l) => l.value).reduce((l, o) => l + o, 0)), st = y(() => V.value / ve.value.length);
678
- function Et(l) {
679
- return xe.value ? l.proportion * 100 : l.value / V.value * 100;
677
+ const V = f(() => re.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ul = f(() => {
678
+ const l = U.value.reduce((o, t) => o + t.value, 0);
679
+ return l <= 0 ? [] : U.value.map((o) => o.value / l);
680
+ }), rt = f(() => V.value / re.value.length);
681
+ function Vt(l) {
682
+ return de.value ? l.proportion * 100 : l.value / V.value * 100;
680
683
  }
681
- const ut = w(null), De = w(!1);
682
- function se({ datapoint: l, seriesIndex: o }) {
683
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), tt.value = !1, le.value = null;
684
+ const it = w(null), ze = w(!1);
685
+ function ne({ datapoint: l, seriesIndex: o }) {
686
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), at.value = !1, le.value = null;
684
687
  }
685
- function ue({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
686
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), ut.value = { datapoint: l, seriesIndex: t, config: e.value, series: q.value }, tt.value = a, le.value = o;
687
- let r = "";
688
- const v = e.value.style.chart.tooltip.customFormat;
689
- if (De.value = !1, Ca(v))
688
+ function se({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
689
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), it.value = { datapoint: l, seriesIndex: t, config: e.value, series: U.value }, at.value = a, le.value = o;
690
+ let u = "";
691
+ const c = e.value.style.chart.tooltip.customFormat;
692
+ if (ze.value = !1, _a(c))
690
693
  try {
691
- const f = v({
694
+ const g = c({
692
695
  seriesIndex: t,
693
696
  datapoint: l,
694
- series: q.value,
697
+ series: U.value,
695
698
  config: e.value
696
699
  });
697
- typeof f == "string" && (lt.value = f, De.value = !0);
700
+ typeof g == "string" && (ot.value = g, ze.value = !0);
698
701
  } catch {
699
- console.warn("Custom format cannot be applied."), De.value = !1;
702
+ console.warn("Custom format cannot be applied."), ze.value = !1;
700
703
  }
701
- if (!De.value) {
702
- if (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${_l.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${j(
704
+ if (!ze.value) {
705
+ if (u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${Sl.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${k.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${q(
703
706
  e.value.style.chart.layout.labels.value.formatter,
704
707
  l.value,
705
708
  G({
@@ -714,7 +717,7 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
714
717
  seriesIndex: t
715
718
  }
716
719
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
717
- const f = j(
720
+ const g = q(
718
721
  e.value.style.chart.layout.labels.percentage.formatter,
719
722
  l.proportion * 100,
720
723
  G({
@@ -728,28 +731,28 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
728
731
  seriesIndex: t
729
732
  }
730
733
  );
731
- e.value.style.chart.tooltip.showValue ? r += `<span>(${f})</span></div>` : r += `<b>${f}</b></div>`;
734
+ e.value.style.chart.tooltip.showValue ? u += `<span>(${g})</span></div>` : u += `<b>${g}</b></div>`;
732
735
  }
733
- e.value.style.chart.comments.showInTooltip && l.comment && (r += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), lt.value = `<div>${r}</div>`;
736
+ e.value.style.chart.comments.showInTooltip && l.comment && (u += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), ot.value = `<div>${u}</div>`;
734
737
  }
735
738
  }
736
- function Hl(l, o) {
737
- const t = Y.value[o];
739
+ function jl(l, o) {
740
+ const t = I.value[o];
738
741
  if (t)
739
742
  return {
740
743
  textAnchor: t.textAnchor,
741
744
  x: t.labelX,
742
745
  y: t.labelY
743
746
  };
744
- const a = $(l, !0, 12);
747
+ const a = x(l, !0, 12);
745
748
  return {
746
749
  textAnchor: a.anchor,
747
750
  x: a.x,
748
- y: he(l)
751
+ y: ie(l)
749
752
  };
750
753
  }
751
- function Gl(l, o, t) {
752
- const { textAnchor: a, x: r } = Hl(l, o), v = Ie(l, N.value), f = e.value.style.chart.layout.labels.value.show ? ` (${j(
754
+ function Wl(l, o, t) {
755
+ const { textAnchor: a, x: u } = jl(l, o), c = Ye(l, N.value), g = e.value.style.chart.layout.labels.value.show ? ` (${q(
753
756
  e.value.style.chart.layout.labels.value.formatter,
754
757
  l.value,
755
758
  G({
@@ -759,45 +762,45 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
759
762
  r: e.value.style.chart.layout.labels.value.rounding
760
763
  }),
761
764
  { datapoint: l }
762
- )})` : "", C = `${v}${f}`, A = `
765
+ )})` : "", $ = `${c}${g}`, S = `
763
766
  <tspan
764
767
  class="vue-data-ui-datalabel-inline"
765
768
  fill="${e.value.style.chart.layout.labels.percentage.color}"
766
769
  font-size="${t ? we.value : Se.value}px"
767
770
  style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
768
- >${C}</tspan>
769
- `, F = String(l.name ?? "").split(/\n/g);
770
- let M = "";
771
- return F.forEach((P, ie) => {
772
- ie === 0 ? M += `
771
+ >${$}</tspan>
772
+ `, D = String(l.name ?? "").split(/\n/g);
773
+ let P = "";
774
+ return D.forEach((X, ye) => {
775
+ ye === 0 ? P += `
773
776
  <tspan
774
777
  class="vue-data-ui-datalabel-name"
775
778
  fill="${e.value.style.chart.layout.labels.name.color}"
776
779
  font-size="${t ? we.value : E.value}px"
777
780
  style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
778
- >${P}</tspan>
779
- ` : M += `
781
+ >${X}</tspan>
782
+ ` : P += `
780
783
  <tspan
781
784
  class="vue-data-ui-datalabel-name"
782
- x="${r}"
785
+ x="${u}"
783
786
  dy="${(t ? we.value : E.value) * 1.2}"
784
787
  fill="${e.value.style.chart.layout.labels.name.color}"
785
788
  font-size="${t ? we.value : E.value}px"
786
789
  style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
787
- >${P}</tspan>
790
+ >${X}</tspan>
788
791
  `;
789
- }), a === "end" ? `${M}${A}` : `${A}${M}`;
792
+ }), a === "end" ? `${P}${S}` : `${S}${P}`;
790
793
  }
791
- function Ul(l, o) {
792
- const t = c.value[o].middlePoint, a = ye(t), r = D({
794
+ function ql(l, o) {
795
+ const t = v.value[o].middlePoint, a = he(t), u = L({
793
796
  initX: t.x,
794
797
  initY: t.y,
795
798
  offset: 42,
796
799
  centerX: n.value.width / 2,
797
800
  centerY: n.value.height / 2
798
- }), v = r.x;
799
- r.y;
800
- const f = Ie(l, N.value), C = e.value.style.chart.layout.labels.value.show ? ` (${j(
801
+ }), c = u.x;
802
+ u.y;
803
+ const g = Ye(l, N.value), $ = e.value.style.chart.layout.labels.value.show ? ` (${q(
801
804
  e.value.style.chart.layout.labels.value.formatter,
802
805
  l.value,
803
806
  G({
@@ -807,65 +810,71 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
807
810
  r: e.value.style.chart.layout.labels.value.rounding
808
811
  }),
809
812
  { datapoint: l }
810
- )})` : "", A = `${f}${C}`, F = `
813
+ )})` : "", S = `${g}${$}`, D = `
811
814
  <tspan
812
815
  class="vue-data-ui-datalabel-value"
813
816
  fill="${e.value.style.chart.layout.labels.percentage.color}"
814
817
  font-size="${Se.value}px"
815
818
  style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
816
- >${A}</tspan>
817
- `, M = String(l.name ?? "").split(/\n/g);
818
- let P = "";
819
- return M.forEach((ie, pe) => {
820
- pe === 0 ? P += `
819
+ >${S}</tspan>
820
+ `, P = String(l.name ?? "").split(/\n/g);
821
+ let X = "";
822
+ return P.forEach((ye, ge) => {
823
+ ge === 0 ? X += `
821
824
  <tspan
822
825
  class="vue-data-ui-datalabel-name"
823
826
  fill="${e.value.style.chart.layout.labels.name.color}"
824
827
  font-size="${E.value}px"
825
828
  style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
826
- >${ie}</tspan>
827
- ` : P += `
829
+ >${ye}</tspan>
830
+ ` : X += `
828
831
  <tspan
829
832
  class="vue-data-ui-datalabel-name"
830
- x="${v}"
833
+ x="${c}"
831
834
  dy="${E.value * 1.2}"
832
835
  fill="${e.value.style.chart.layout.labels.name.color}"
833
836
  font-size="${E.value}px"
834
837
  style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
835
- >${ie}</tspan>
838
+ >${ye}</tspan>
836
839
  `;
837
- }), a === "end" ? `${P}${F}` : `${F}${P}`;
840
+ }), a === "end" ? `${X}${D}` : `${D}${X}`;
838
841
  }
839
842
  function $e(l) {
840
- return e.value.useBlurOnHover && ![null, void 0].includes(le.value) && le.value !== l ? `url(#blur_${m.value})` : "";
843
+ return e.value.useBlurOnHover && ![null, void 0].includes(le.value) && le.value !== l ? `url(#blur_${k.value})` : "";
841
844
  }
842
- const ge = y(() => {
843
- const l = ve.value.map((t) => ({
845
+ function Ql(l) {
846
+ if (!de.value || xe.value === null || l.seriesIndex !== xe.value)
847
+ return 1;
848
+ const o = (l.proportion ?? 0) * 100, t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, u = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, c = t;
849
+ return o >= u ? 1 : o <= c ? 0 : (o - c) / (u - c);
850
+ }
851
+ const fe = f(() => {
852
+ const l = re.value.map((t) => ({
844
853
  name: t.name,
845
854
  color: t.color
846
- })), o = ve.value.map((t) => t.value);
855
+ })), o = re.value.map((t) => t.value);
847
856
  return { head: l, body: o };
848
857
  });
849
- function rt(l = null) {
850
- ua(() => {
851
- const o = ge.value.head.map((r, v) => [[
852
- r.name
853
- ], [ge.value.body[v]], [isNaN(ge.value.body[v] / V.value) ? "-" : ge.value.body[v] / V.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = wa(t);
854
- l ? l(a) : ka({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
858
+ function ct(l = null) {
859
+ va(() => {
860
+ const o = fe.value.head.map((u, c) => [[
861
+ u.name
862
+ ], [fe.value.body[c]], [isNaN(fe.value.body[c] / V.value) ? "-" : fe.value.body[c] / V.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = $a(t);
863
+ l ? l(a) : Aa({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
855
864
  });
856
865
  }
857
- const Re = y(() => {
866
+ const Ge = f(() => {
858
867
  const l = [
859
868
  ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
860
869
  G({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: V.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
861
870
  "100%"
862
- ], o = ge.value.head.map((r, v) => [
871
+ ], o = fe.value.head.map((u, c) => [
863
872
  {
864
- color: r.color,
865
- name: r.name || "-"
873
+ color: u.color,
874
+ name: u.name || "-"
866
875
  },
867
- ge.value.body[v],
868
- isNaN(ge.value.body[v] / V.value) ? "-" : (ge.value.body[v] / V.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
876
+ fe.value.body[c],
877
+ isNaN(fe.value.body[c] / V.value) ? "-" : (fe.value.body[c] / V.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
869
878
  ]), t = {
870
879
  th: {
871
880
  backgroundColor: e.value.table.th.backgroundColor,
@@ -890,50 +899,50 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
890
899
  config: t
891
900
  };
892
901
  }), Ae = w(!1);
893
- function Nt(l) {
894
- Ae.value = l, St.value += 1;
902
+ function Rt(l) {
903
+ Ae.value = l, Pt.value += 1;
895
904
  }
896
- const Vt = y(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
897
- function jl(l) {
905
+ const Ht = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
906
+ function Jl(l) {
898
907
  return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
899
908
  }
900
- function re(l, o) {
901
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), Bt("selectDatapoint", { datapoint: l, index: o });
909
+ function ue(l, o) {
910
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), Ot("selectDatapoint", { datapoint: l, index: o });
902
911
  }
903
- function Rt() {
904
- b.value.showTable = !b.value.showTable;
912
+ function Gt() {
913
+ m.value.showTable = !m.value.showTable;
905
914
  }
906
- function Ht() {
907
- b.value.dataLabels.show = !b.value.dataLabels.show;
915
+ function Ut() {
916
+ m.value.dataLabels.show = !m.value.dataLabels.show;
908
917
  }
909
- function Gt() {
910
- b.value.showTooltip = !b.value.showTooltip;
918
+ function jt() {
919
+ m.value.showTooltip = !m.value.showTooltip;
911
920
  }
912
- const He = w(!1);
913
- function it() {
914
- He.value = !He.value;
921
+ const Ue = w(!1);
922
+ function vt() {
923
+ Ue.value = !Ue.value;
915
924
  }
916
- async function ql({ scale: l = 2 } = {}) {
925
+ async function Kl({ scale: l = 2 } = {}) {
917
926
  if (!te.value) return;
918
- const { width: o, height: t } = te.value.getBoundingClientRect(), a = o / t, { imageUri: r, base64: v } = await Ia({ domElement: te.value, base64: !0, img: !0, scale: l });
927
+ const { width: o, height: t } = te.value.getBoundingClientRect(), a = o / t, { imageUri: u, base64: c } = await Ba({ domElement: te.value, base64: !0, img: !0, scale: l });
919
928
  return {
920
- imageUri: r,
921
- base64: v,
929
+ imageUri: u,
930
+ base64: c,
922
931
  title: e.value.style.chart.title.text,
923
932
  width: o,
924
933
  height: t,
925
934
  aspectRatio: a
926
935
  };
927
936
  }
928
- function Wl() {
929
- if (!Xe.value) return;
930
- const { x: l, y: o, width: t, height: a } = Xe.value.getBBox();
937
+ function Zl() {
938
+ if (!Ee.value) return;
939
+ const { x: l, y: o, width: t, height: a } = Ee.value.getBBox();
931
940
  ke.value && ke.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
932
941
  }
933
- const Ye = y(() => {
934
- const l = e.value.table.useDialog && !e.value.table.show, o = b.value.showTable;
942
+ const Be = f(() => {
943
+ const l = e.value.table.useDialog && !e.value.table.show, o = m.value.showTable;
935
944
  return {
936
- component: l ? Cl : pl,
945
+ component: l ? $l : ml,
937
946
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
938
947
  props: l ? {
939
948
  backgroundColor: e.value.table.th.backgroundColor,
@@ -960,97 +969,97 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
960
969
  }
961
970
  };
962
971
  });
963
- Le(() => b.value.showTable, (l) => {
964
- e.value.table.show || (l && e.value.table.useDialog && Pe.value ? Pe.value.open() : "close" in Pe.value && Pe.value.close());
972
+ Pe(() => m.value.showTable, (l) => {
973
+ e.value.table.show || (l && e.value.table.useDialog && Fe.value ? Fe.value.open() : "close" in Fe.value && Fe.value.close());
965
974
  });
966
- function Ut() {
967
- b.value.showTable = !1, Je.value && Je.value.setTableIconState(!1);
975
+ function Wt() {
976
+ m.value.showTable = !1, Ze.value && Ze.value.setTableIconState(!1);
968
977
  }
969
- const Ql = y(() => nt.value.map((l) => ({
978
+ const ea = f(() => ut.value.map((l) => ({
970
979
  ...l,
971
980
  name: l.display
972
- }))), Jl = y(() => e.value.style.chart.backgroundColor), Kl = y(() => e.value.style.chart.legend), Zl = y(() => e.value.style.chart.title), { exportSvg: ea, getSvg: ta } = Ma({
981
+ }))), ta = f(() => e.value.style.chart.backgroundColor), la = f(() => e.value.style.chart.legend), aa = f(() => e.value.style.chart.title), { exportSvg: oa, getSvg: na } = Ia({
973
982
  svg: ke,
974
- title: Zl,
975
- legend: Kl,
976
- legendItems: Ql,
977
- backgroundColor: Jl
983
+ title: aa,
984
+ legend: la,
985
+ legendItems: ea,
986
+ backgroundColor: ta
978
987
  });
979
- async function jt({ isCb: l }) {
988
+ async function qt({ isCb: l }) {
980
989
  if (l) {
981
- const { blob: o, url: t, text: a, dataUrl: r } = await ta();
982
- e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl: r });
990
+ const { blob: o, url: t, text: a, dataUrl: u } = await na();
991
+ e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl: u });
983
992
  } else
984
- ea();
993
+ oa();
985
994
  }
986
- return hl({
987
- autoSize: Wl,
988
- getData: Dl,
989
- getImage: ql,
990
- generatePdf: Dt,
991
- generateCsv: rt,
992
- generateImage: Yt,
993
- generateSvg: jt,
994
- hideSeries: zl,
995
- showSeries: Yl,
996
- toggleTable: Rt,
997
- toggleLabels: Ht,
998
- toggleTooltip: Gt,
999
- toggleAnnotator: it,
1000
- toggleFullscreen: Nt
995
+ return yl({
996
+ autoSize: Zl,
997
+ getData: zl,
998
+ getImage: Kl,
999
+ generatePdf: zt,
1000
+ generateCsv: ct,
1001
+ generateImage: Bt,
1002
+ generateSvg: qt,
1003
+ hideSeries: Xl,
1004
+ showSeries: Bl,
1005
+ toggleTable: Gt,
1006
+ toggleLabels: Ut,
1007
+ toggleTooltip: jt,
1008
+ toggleAnnotator: vt,
1009
+ toggleFullscreen: Rt
1001
1010
  }), (l, o) => (s(), i("div", {
1002
1011
  ref_key: "donutChart",
1003
1012
  ref: te,
1004
- class: dt(`vue-data-ui-component vue-ui-donut ${Ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1005
- style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
1006
- id: `donut__${m.value}`,
1007
- onMouseenter: Ll,
1008
- onMouseleave: Pl
1013
+ class: ft(`vue-data-ui-component vue-ui-donut ${Ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1014
+ style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
1015
+ id: `donut__${k.value}`,
1016
+ onMouseenter: Il,
1017
+ onMouseleave: Dl
1009
1018
  }, [
1010
- e.value.userOptions.buttons.annotator && u(ke) ? (s(), me(u(ml), {
1019
+ e.value.userOptions.buttons.annotator && r(ke) ? (s(), me(r(kl), {
1011
1020
  key: 0,
1012
1021
  color: e.value.style.chart.color,
1013
1022
  backgroundColor: e.value.style.chart.backgroundColor,
1014
- active: He.value,
1015
- svgRef: u(ke),
1016
- onClose: it
1023
+ active: Ue.value,
1024
+ svgRef: r(ke),
1025
+ onClose: vt
1017
1026
  }, {
1018
- "annotator-action-close": k(() => [
1027
+ "annotator-action-close": C(() => [
1019
1028
  p(l.$slots, "annotator-action-close", {}, void 0, !0)
1020
1029
  ]),
1021
- "annotator-action-color": k(({ color: t }) => [
1030
+ "annotator-action-color": C(({ color: t }) => [
1022
1031
  p(l.$slots, "annotator-action-color", Z(ee({ color: t })), void 0, !0)
1023
1032
  ]),
1024
- "annotator-action-draw": k(({ mode: t }) => [
1033
+ "annotator-action-draw": C(({ mode: t }) => [
1025
1034
  p(l.$slots, "annotator-action-draw", Z(ee({ mode: t })), void 0, !0)
1026
1035
  ]),
1027
- "annotator-action-undo": k(({ disabled: t }) => [
1036
+ "annotator-action-undo": C(({ disabled: t }) => [
1028
1037
  p(l.$slots, "annotator-action-undo", Z(ee({ disabled: t })), void 0, !0)
1029
1038
  ]),
1030
- "annotator-action-redo": k(({ disabled: t }) => [
1039
+ "annotator-action-redo": C(({ disabled: t }) => [
1031
1040
  p(l.$slots, "annotator-action-redo", Z(ee({ disabled: t })), void 0, !0)
1032
1041
  ]),
1033
- "annotator-action-delete": k(({ disabled: t }) => [
1042
+ "annotator-action-delete": C(({ disabled: t }) => [
1034
1043
  p(l.$slots, "annotator-action-delete", Z(ee({ disabled: t })), void 0, !0)
1035
1044
  ]),
1036
1045
  _: 3
1037
1046
  }, 8, ["color", "backgroundColor", "active", "svgRef"])) : d("", !0),
1038
1047
  p(l.$slots, "userConfig", {}, void 0, !0),
1039
- Il.value ? (s(), i("div", {
1048
+ Yl.value ? (s(), i("div", {
1040
1049
  key: 1,
1041
1050
  ref_key: "noTitle",
1042
- ref: Ct,
1051
+ ref: $t,
1043
1052
  class: "vue-data-ui-no-title-space",
1044
1053
  style: "height:36px; width: 100%;background:transparent"
1045
1054
  }, null, 512)) : d("", !0),
1046
1055
  e.value.style.chart.title.text ? (s(), i("div", {
1047
1056
  key: 2,
1048
1057
  ref_key: "chartTitle",
1049
- ref: mt,
1058
+ ref: kt,
1050
1059
  style: "width:100%;background:transparent;padding-bottom:24px"
1051
1060
  }, [
1052
- (s(), me(Ya, {
1053
- key: `title_${xt.value}`,
1061
+ (s(), me(Oa, {
1062
+ key: `title_${At.value}`,
1054
1063
  config: {
1055
1064
  title: {
1056
1065
  cy: "donut-div-title",
@@ -1063,18 +1072,18 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1063
1072
  }
1064
1073
  }, null, 8, ["config"]))
1065
1074
  ], 512)) : d("", !0),
1066
- g("div", {
1067
- id: `legend-top-${m.value}`
1068
- }, null, 8, Oa),
1069
- e.value.userOptions.show && Be.value && (u(Lt) || u(ot)) ? (s(), me(u(wl), {
1075
+ y("div", {
1076
+ id: `legend-top-${k.value}`
1077
+ }, null, 8, Ra),
1078
+ e.value.userOptions.show && Oe.value && (r(It) || r(st)) ? (s(), me(r(Cl), {
1070
1079
  ref_key: "userOptionsRef",
1071
- ref: Je,
1072
- key: `user_option_${St.value}`,
1080
+ ref: Ze,
1081
+ key: `user_option_${Pt.value}`,
1073
1082
  backgroundColor: e.value.style.chart.backgroundColor,
1074
1083
  color: e.value.style.chart.color,
1075
- isPrinting: u(Pt),
1076
- isImaging: u(It),
1077
- uid: m.value,
1084
+ isPrinting: r(Dt),
1085
+ isImaging: r(Yt),
1086
+ uid: k.value,
1078
1087
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1079
1088
  hasPdf: e.value.userOptions.buttons.pdf,
1080
1089
  hasImg: e.value.userOptions.buttons.img,
@@ -1087,89 +1096,89 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1087
1096
  chartElement: te.value,
1088
1097
  position: e.value.userOptions.position,
1089
1098
  callbacks: e.value.userOptions.callbacks,
1090
- isTooltip: b.value.showTooltip,
1099
+ isTooltip: m.value.showTooltip,
1091
1100
  titles: { ...e.value.userOptions.buttonTitles },
1092
1101
  hasAnnotator: e.value.userOptions.buttons.annotator,
1093
- isAnnotation: He.value,
1102
+ isAnnotation: Ue.value,
1094
1103
  printScale: e.value.userOptions.print.scale,
1095
1104
  tableDialog: e.value.table.useDialog,
1096
- onToggleFullscreen: Nt,
1097
- onGeneratePdf: u(Dt),
1098
- onGenerateCsv: rt,
1099
- onGenerateImage: u(Yt),
1100
- onGenerateSvg: jt,
1101
- onToggleTable: Rt,
1102
- onToggleLabels: Ht,
1103
- onToggleTooltip: Gt,
1104
- onToggleAnnotator: it,
1105
- style: L({ visibility: u(Lt) ? u(ot) ? "visible" : "hidden" : "visible" })
1106
- }, ht({ _: 2 }, [
1105
+ onToggleFullscreen: Rt,
1106
+ onGeneratePdf: r(zt),
1107
+ onGenerateCsv: ct,
1108
+ onGenerateImage: r(Bt),
1109
+ onGenerateSvg: qt,
1110
+ onToggleTable: Gt,
1111
+ onToggleLabels: Ut,
1112
+ onToggleTooltip: jt,
1113
+ onToggleAnnotator: vt,
1114
+ style: M({ visibility: r(It) ? r(st) ? "visible" : "hidden" : "visible" })
1115
+ }, yt({ _: 2 }, [
1107
1116
  l.$slots.menuIcon ? {
1108
1117
  name: "menuIcon",
1109
- fn: k(({ isOpen: t, color: a }) => [
1118
+ fn: C(({ isOpen: t, color: a }) => [
1110
1119
  p(l.$slots, "menuIcon", Z(ee({ isOpen: t, color: a })), void 0, !0)
1111
1120
  ]),
1112
1121
  key: "0"
1113
1122
  } : void 0,
1114
1123
  l.$slots.optionTooltip ? {
1115
1124
  name: "optionTooltip",
1116
- fn: k(() => [
1125
+ fn: C(() => [
1117
1126
  p(l.$slots, "optionTooltip", {}, void 0, !0)
1118
1127
  ]),
1119
1128
  key: "1"
1120
1129
  } : void 0,
1121
1130
  l.$slots.optionPdf ? {
1122
1131
  name: "optionPdf",
1123
- fn: k(() => [
1132
+ fn: C(() => [
1124
1133
  p(l.$slots, "optionPdf", {}, void 0, !0)
1125
1134
  ]),
1126
1135
  key: "2"
1127
1136
  } : void 0,
1128
1137
  l.$slots.optionCsv ? {
1129
1138
  name: "optionCsv",
1130
- fn: k(() => [
1139
+ fn: C(() => [
1131
1140
  p(l.$slots, "optionCsv", {}, void 0, !0)
1132
1141
  ]),
1133
1142
  key: "3"
1134
1143
  } : void 0,
1135
1144
  l.$slots.optionImg ? {
1136
1145
  name: "optionImg",
1137
- fn: k(() => [
1146
+ fn: C(() => [
1138
1147
  p(l.$slots, "optionImg", {}, void 0, !0)
1139
1148
  ]),
1140
1149
  key: "4"
1141
1150
  } : void 0,
1142
1151
  l.$slots.optionSvg ? {
1143
1152
  name: "optionSvg",
1144
- fn: k(() => [
1153
+ fn: C(() => [
1145
1154
  p(l.$slots, "optionSvg", {}, void 0, !0)
1146
1155
  ]),
1147
1156
  key: "5"
1148
1157
  } : void 0,
1149
1158
  l.$slots.optionTable ? {
1150
1159
  name: "optionTable",
1151
- fn: k(() => [
1160
+ fn: C(() => [
1152
1161
  p(l.$slots, "optionTable", {}, void 0, !0)
1153
1162
  ]),
1154
1163
  key: "6"
1155
1164
  } : void 0,
1156
1165
  l.$slots.optionLabels ? {
1157
1166
  name: "optionLabels",
1158
- fn: k(() => [
1167
+ fn: C(() => [
1159
1168
  p(l.$slots, "optionLabels", {}, void 0, !0)
1160
1169
  ]),
1161
1170
  key: "7"
1162
1171
  } : void 0,
1163
1172
  l.$slots.optionFullscreen ? {
1164
1173
  name: "optionFullscreen",
1165
- fn: k(({ toggleFullscreen: t, isFullscreen: a }) => [
1174
+ fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
1166
1175
  p(l.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
1167
1176
  ]),
1168
1177
  key: "8"
1169
1178
  } : void 0,
1170
1179
  l.$slots.optionAnnotator ? {
1171
1180
  name: "optionAnnotator",
1172
- fn: k(({ toggleAnnotator: t, isAnnotator: a }) => [
1181
+ fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
1173
1182
  p(l.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
1174
1183
  ]),
1175
1184
  key: "9"
@@ -1178,17 +1187,17 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1178
1187
  (s(), i("svg", {
1179
1188
  ref_key: "svgRef",
1180
1189
  ref: ke,
1181
- xmlns: u(ya),
1182
- class: dt({ "vue-data-ui-fullscreen--on": Ae.value, "vue-data-ui-fulscreen--off": !Ae.value, "vue-data-ui-svg": !0 }),
1190
+ xmlns: r(ma),
1191
+ class: ft({ "vue-data-ui-fullscreen--on": Ae.value, "vue-data-ui-fulscreen--off": !Ae.value, "vue-data-ui-svg": !0 }),
1183
1192
  viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
1184
- style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ne.value.css}`)
1193
+ style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
1185
1194
  }, [
1186
- g("g", {
1195
+ y("g", {
1187
1196
  ref_key: "G",
1188
- ref: Xe,
1197
+ ref: Ee,
1189
1198
  class: "vue-data-ui-g"
1190
1199
  }, [
1191
- je(u(kl)),
1200
+ qe(r(xl)),
1192
1201
  l.$slots["chart-background"] ? (s(), i("foreignObject", {
1193
1202
  key: 0,
1194
1203
  x: 0,
@@ -1200,102 +1209,102 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1200
1209
  }
1201
1210
  }, [
1202
1211
  p(l.$slots, "chart-background", {}, void 0, !0)
1203
- ], 8, Na)) : d("", !0),
1204
- e.value.type === "classic" && !isNaN(Ce.value / S.value) ? (s(), i("defs", Va, [
1212
+ ], 8, Ga)) : d("", !0),
1213
+ e.value.type === "classic" && !isNaN(Ce.value / T.value) ? (s(), i("defs", Ua, [
1205
1214
  e.value.style.chart.useGradient ? (s(), i("radialGradient", {
1206
1215
  key: 0,
1207
- id: `gradient_${m.value}`
1216
+ id: `gradient_${k.value}`
1208
1217
  }, [
1209
- g("stop", {
1218
+ y("stop", {
1210
1219
  offset: "0%",
1211
- "stop-color": u(Qe)(e.value.style.chart.backgroundColor, 0),
1220
+ "stop-color": r(Ke)(e.value.style.chart.backgroundColor, 0),
1212
1221
  "stop-opacity": "0"
1213
- }, null, 8, Ha),
1214
- g("stop", {
1215
- offset: `${(1 - Ce.value / S.value) * 100}%`,
1216
- "stop-color": u(Qe)("#FFFFFF", 0),
1222
+ }, null, 8, Wa),
1223
+ y("stop", {
1224
+ offset: `${(1 - Ce.value / T.value) * 100}%`,
1225
+ "stop-color": r(Ke)("#FFFFFF", 0),
1217
1226
  "stop-opacity": "0"
1218
- }, null, 8, Ga),
1219
- g("stop", {
1220
- offset: `${(1 - Ce.value / S.value / 2) * 100}%`,
1221
- "stop-color": u(Qe)("#FFFFFF", e.value.style.chart.gradientIntensity)
1222
- }, null, 8, Ua),
1223
- g("stop", {
1227
+ }, null, 8, qa),
1228
+ y("stop", {
1229
+ offset: `${(1 - Ce.value / T.value / 2) * 100}%`,
1230
+ "stop-color": r(Ke)("#FFFFFF", e.value.style.chart.gradientIntensity)
1231
+ }, null, 8, Qa),
1232
+ y("stop", {
1224
1233
  offset: "100%",
1225
- "stop-color": u(Qe)(e.value.style.chart.backgroundColor, 0),
1234
+ "stop-color": r(Ke)(e.value.style.chart.backgroundColor, 0),
1226
1235
  "stop-opacity": "0"
1227
- }, null, 8, ja)
1228
- ], 8, Ra)) : d("", !0)
1236
+ }, null, 8, Ja)
1237
+ ], 8, ja)) : d("", !0)
1229
1238
  ])) : d("", !0),
1230
- e.value.type === "polar" ? (s(), i("defs", qa, [
1231
- (s(!0), i(_, null, H(c.value, (t, a) => (s(), i("radialGradient", {
1232
- id: `polar_gradient_${a}_${m.value}`,
1239
+ e.value.type === "polar" ? (s(), i("defs", Ka, [
1240
+ (s(!0), i(A, null, H(v.value, (t, a) => (s(), i("radialGradient", {
1241
+ id: `polar_gradient_${a}_${k.value}`,
1233
1242
  cx: (isNaN(t.middlePoint.x / n.value.width * 100) ? 0 : t.middlePoint.x / n.value.width * 100) + "%",
1234
1243
  cy: (isNaN(t.middlePoint.y / n.value.height * 100) ? 0 : t.middlePoint.y / n.value.height * 100) + "%",
1235
1244
  r: "62%"
1236
1245
  }, [
1237
- g("stop", {
1246
+ y("stop", {
1238
1247
  offset: "0%",
1239
- "stop-color": u(ga)(O.value[a].color, 0.05),
1248
+ "stop-color": r(wa)(O.value[a].color, 0.05),
1240
1249
  "stop-opacity": e.value.style.chart.gradientIntensity / 100
1241
- }, null, 8, Qa),
1242
- g("stop", {
1250
+ }, null, 8, eo),
1251
+ y("stop", {
1243
1252
  offset: "100%",
1244
1253
  "stop-color": O.value[a].color
1245
- }, null, 8, Ja)
1246
- ], 8, Wa))), 256))
1254
+ }, null, 8, to)
1255
+ ], 8, Za))), 256))
1247
1256
  ])) : d("", !0),
1248
- g("defs", null, [
1249
- g("filter", {
1250
- id: `blur_${m.value}`,
1257
+ y("defs", null, [
1258
+ y("filter", {
1259
+ id: `blur_${k.value}`,
1251
1260
  x: "-50%",
1252
1261
  y: "-50%",
1253
1262
  width: "200%",
1254
1263
  height: "200%"
1255
1264
  }, [
1256
- g("feGaussianBlur", {
1265
+ y("feGaussianBlur", {
1257
1266
  in: "SourceGraphic",
1258
1267
  stdDeviation: 2,
1259
- id: `blur_std_${m.value}`
1260
- }, null, 8, Za),
1261
- o[5] || (o[5] = g("feColorMatrix", {
1268
+ id: `blur_std_${k.value}`
1269
+ }, null, 8, ao),
1270
+ o[5] || (o[5] = y("feColorMatrix", {
1262
1271
  type: "saturate",
1263
1272
  values: "0"
1264
1273
  }, null, -1))
1265
- ], 8, Ka),
1266
- g("filter", {
1267
- id: `shadow_${m.value}`,
1274
+ ], 8, lo),
1275
+ y("filter", {
1276
+ id: `shadow_${k.value}`,
1268
1277
  "color-interpolation-filters": "sRGB"
1269
1278
  }, [
1270
- g("feDropShadow", {
1279
+ y("feDropShadow", {
1271
1280
  dx: "0",
1272
1281
  dy: "0",
1273
1282
  stdDeviation: "10",
1274
1283
  "flood-opacity": "0.5",
1275
1284
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1276
- }, null, 8, to)
1277
- ], 8, eo),
1278
- g("filter", {
1279
- id: `drop_shadow_${m.value}`,
1285
+ }, null, 8, no)
1286
+ ], 8, oo),
1287
+ y("filter", {
1288
+ id: `drop_shadow_${k.value}`,
1280
1289
  "color-interpolation-filters": "sRGB",
1281
1290
  x: "-50%",
1282
1291
  y: "-50%",
1283
1292
  width: "200%",
1284
1293
  height: "200%"
1285
1294
  }, [
1286
- g("feDropShadow", {
1295
+ y("feDropShadow", {
1287
1296
  dx: "0",
1288
1297
  dy: "0",
1289
1298
  stdDeviation: "3",
1290
1299
  "flood-opacity": "1",
1291
1300
  "flood-color": e.value.style.chart.layout.donut.shadowColor
1292
- }, null, 8, ao)
1293
- ], 8, lo)
1301
+ }, null, 8, uo)
1302
+ ], 8, so)
1294
1303
  ]),
1295
- e.value.type === "classic" ? (s(!0), i(_, { key: 3 }, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", null, [
1296
- U(t) && b.value.dataLabels.show ? (s(), i("path", {
1304
+ e.value.type === "classic" ? (s(!0), i(A, { key: 3 }, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", null, [
1305
+ W(t) && m.value.dataLabels.show ? (s(), i("path", {
1297
1306
  key: 0,
1298
- d: Y.value[a]?.connectorPath || u(pa)(
1307
+ d: I.value[a]?.connectorPath || r(ka)(
1299
1308
  t,
1300
1309
  { x: n.value.width / 2, y: n.value.height / 2 },
1301
1310
  16,
@@ -1312,147 +1321,147 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1312
1321
  "stroke-linejoin": "round",
1313
1322
  fill: "none",
1314
1323
  filter: $e(a)
1315
- }, null, 8, oo)) : d("", !0)
1324
+ }, null, 8, ro)) : d("", !0)
1316
1325
  ]))), 256)) : d("", !0),
1317
- e.value.type === "polar" ? (s(!0), i(_, { key: 4 }, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", null, [
1318
- U(t) && b.value.dataLabels.show ? (s(), i("path", {
1326
+ e.value.type === "polar" ? (s(!0), i(A, { key: 4 }, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", null, [
1327
+ W(t) && m.value.dataLabels.show ? (s(), i("path", {
1319
1328
  key: 0,
1320
- d: `M ${u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
1329
+ d: `M ${r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[a].middlePoint.x},${v.value[a].middlePoint.y}`,
1321
1330
  stroke: t.color,
1322
1331
  "stroke-width": "1",
1323
1332
  "stroke-linecap": "round",
1324
1333
  "stroke-linejoin": "round",
1325
1334
  fill: "none",
1326
1335
  filter: $e(a),
1327
- style: L({
1328
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1336
+ style: M({
1337
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1329
1338
  })
1330
- }, null, 12, no)) : d("", !0)
1339
+ }, null, 12, io)) : d("", !0)
1331
1340
  ]))), 256)) : d("", !0),
1332
1341
  e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(), i("circle", {
1333
1342
  key: 5,
1334
1343
  cx: n.value.width / 2,
1335
1344
  cy: n.value.height / 2,
1336
- r: S.value <= 0 ? 10 : S.value,
1345
+ r: T.value <= 0 ? 10 : T.value,
1337
1346
  fill: e.value.style.chart.backgroundColor,
1338
- filter: `url(#shadow_${m.value})`
1339
- }, null, 8, so)) : d("", !0),
1340
- l.$slots.pattern ? (s(), i("g", uo, [
1341
- (s(!0), i(_, null, H(bt.dataset, (t, a) => (s(), i("defs", {
1347
+ filter: `url(#shadow_${k.value})`
1348
+ }, null, 8, co)) : d("", !0),
1349
+ l.$slots.pattern ? (s(), i("g", vo, [
1350
+ (s(!0), i(A, null, H(wt.dataset, (t, a) => (s(), i("defs", {
1342
1351
  key: `pattern-${t.patternIndex}`
1343
1352
  }, [
1344
- p(l.$slots, "pattern", ft({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${m.value}_${a}` }), void 0, !0)
1353
+ p(l.$slots, "pattern", gt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${k.value}_${a}` }), void 0, !0)
1345
1354
  ]))), 128))
1346
1355
  ])) : d("", !0),
1347
- V.value && e.value.type === "classic" ? (s(), i(_, { key: 7 }, [
1348
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1356
+ V.value && e.value.type === "classic" ? (s(), i(A, { key: 7 }, [
1357
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1349
1358
  stroke: e.value.style.chart.backgroundColor,
1350
1359
  d: t.arcSlice,
1351
1360
  fill: "#FFFFFF"
1352
- }, null, 8, ro))), 256)),
1353
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1361
+ }, null, 8, ho))), 256)),
1362
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1354
1363
  class: "vue-ui-donut-arc-path",
1355
1364
  d: t.arcSlice,
1356
1365
  fill: t.color,
1357
1366
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1358
1367
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1359
1368
  filter: $e(a)
1360
- }, null, 8, io))), 256)),
1361
- l.$slots.pattern ? (s(), i("g", co, [
1362
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1369
+ }, null, 8, fo))), 256)),
1370
+ l.$slots.pattern ? (s(), i("g", yo, [
1371
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1363
1372
  class: "vue-ui-donut-arc-path",
1364
1373
  d: t.arcSlice,
1365
1374
  fill: `url(#${t.pattern})`,
1366
1375
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1367
1376
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1368
1377
  filter: $e(a)
1369
- }, null, 8, vo))), 256))
1378
+ }, null, 8, go))), 256))
1370
1379
  ])) : d("", !0)
1371
1380
  ], 64)) : d("", !0),
1372
- V.value && e.value.type === "polar" ? (s(), i(_, { key: 8 }, [
1373
- O.value.length > 1 ? (s(), i("g", ho, [
1374
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1381
+ V.value && e.value.type === "polar" ? (s(), i(A, { key: 8 }, [
1382
+ O.value.length > 1 ? (s(), i("g", po, [
1383
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1375
1384
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1376
- d: c.value[a].path,
1385
+ d: v.value[a].path,
1377
1386
  fill: "#FFFFFF",
1378
- style: L({
1379
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1387
+ style: M({
1388
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1380
1389
  })
1381
- }, null, 12, fo))), 256)),
1382
- e.value.style.chart.layout.donut.useShadow ? (s(), i("g", yo, [
1383
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1390
+ }, null, 12, bo))), 256)),
1391
+ e.value.style.chart.layout.donut.useShadow ? (s(), i("g", mo, [
1392
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1384
1393
  class: "vue-ui-donut-arc-path",
1385
- d: c.value[a].path,
1394
+ d: v.value[a].path,
1386
1395
  fill: "transparent",
1387
1396
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1388
1397
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1389
- filter: `url(#drop_shadow_${m.value})`,
1390
- style: L({
1391
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1398
+ filter: `url(#drop_shadow_${k.value})`,
1399
+ style: M({
1400
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1392
1401
  })
1393
- }, null, 12, go))), 256))
1402
+ }, null, 12, wo))), 256))
1394
1403
  ])) : d("", !0),
1395
- l.$slots.pattern ? (s(), i("g", po, [
1396
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1404
+ l.$slots.pattern ? (s(), i("g", ko, [
1405
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1397
1406
  class: "vue-ui-donut-arc-path",
1398
- d: c.value[a].path,
1407
+ d: v.value[a].path,
1399
1408
  fill: `url(#${t.pattern})`,
1400
1409
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1401
1410
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1402
1411
  filter: $e(a),
1403
- style: L({
1404
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1412
+ style: M({
1413
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1405
1414
  transformOrigin: "center"
1406
1415
  })
1407
- }, null, 12, bo))), 256))
1416
+ }, null, 12, Co))), 256))
1408
1417
  ])) : d("", !0),
1409
- (s(!0), i(_, null, H(N.value, (t, a) => (s(), i("path", {
1418
+ (s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
1410
1419
  class: "vue-ui-donut-arc-path",
1411
- d: c.value[a].path,
1412
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${m.value})` : t.color,
1420
+ d: v.value[a].path,
1421
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${k.value})` : t.color,
1413
1422
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1414
1423
  "stroke-width": e.value.style.chart.layout.donut.borderWidth,
1415
1424
  filter: $e(a),
1416
- style: L({
1417
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1425
+ style: M({
1426
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1418
1427
  })
1419
- }, null, 12, mo))), 256))
1420
- ])) : (s(), i("g", wo, [
1428
+ }, null, 12, xo))), 256))
1429
+ ])) : (s(), i("g", $o, [
1421
1430
  l.$slots.pattern ? (s(), i("circle", {
1422
1431
  key: 0,
1423
1432
  cx: n.value.width / 2,
1424
1433
  cy: n.value.height / 2,
1425
- r: S.value,
1426
- fill: `url(#pattern_${m.value}_${O.value[0].patternIndex})`,
1434
+ r: T.value,
1435
+ fill: `url(#pattern_${k.value}_${O.value[0].patternIndex})`,
1427
1436
  stroke: e.value.style.chart.backgroundColor,
1428
1437
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1429
- }, null, 8, ko)) : d("", !0),
1430
- g("circle", {
1438
+ }, null, 8, Ao)) : d("", !0),
1439
+ y("circle", {
1431
1440
  cx: n.value.width / 2,
1432
1441
  cy: n.value.height / 2,
1433
- r: S.value,
1434
- fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${m.value})` : O.value[0].color,
1442
+ r: T.value,
1443
+ fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${k.value})` : O.value[0].color,
1435
1444
  stroke: e.value.style.chart.backgroundColor,
1436
1445
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1437
- }, null, 8, Co)
1446
+ }, null, 8, _o)
1438
1447
  ]))
1439
- ], 64)) : (s(), i(_, { key: 9 }, [
1440
- e.value.type === "classic" && !Ol.value ? (s(), i("g", xo, [
1441
- (s(!0), i(_, null, H(El.value, (t, a) => (s(), i("path", {
1448
+ ], 64)) : (s(), i(A, { key: 9 }, [
1449
+ e.value.type === "classic" && !Nl.value ? (s(), i("g", To, [
1450
+ (s(!0), i(A, null, H(Vl.value, (t, a) => (s(), i("path", {
1442
1451
  class: "vue-ui-donut-arc-path",
1443
1452
  d: t.arcSlice,
1444
1453
  fill: t.color,
1445
1454
  stroke: e.value.style.chart.backgroundColor,
1446
1455
  "stroke-width": e.value.style.chart.layout.donut.borderWidth
1447
- }, null, 8, $o))), 256))
1456
+ }, null, 8, So))), 256))
1448
1457
  ])) : d("", !0),
1449
- g("circle", {
1458
+ y("circle", {
1450
1459
  cx: n.value.width / 2,
1451
1460
  cy: n.value.height / 2,
1452
- r: S.value <= 0 ? 10 : S.value,
1461
+ r: T.value <= 0 ? 10 : T.value,
1453
1462
  fill: "transparent",
1454
1463
  stroke: e.value.style.chart.backgroundColor
1455
- }, null, 8, Ao)
1464
+ }, null, 8, Mo)
1456
1465
  ], 64)),
1457
1466
  e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), i("circle", {
1458
1467
  key: 10,
@@ -1460,55 +1469,55 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1460
1469
  cy: n.value.height / 2,
1461
1470
  r: (
1462
1471
  /* This might require adjustments */
1463
- S.value <= 0 ? 10 : S.value
1472
+ T.value <= 0 ? 10 : T.value
1464
1473
  ),
1465
- fill: `url(#gradient_${m.value})`
1466
- }, null, 8, _o)) : d("", !0),
1467
- g("circle", {
1474
+ fill: `url(#gradient_${k.value})`
1475
+ }, null, 8, Po)) : d("", !0),
1476
+ y("circle", {
1468
1477
  ref_key: "circle_hollow",
1469
- ref: Sl,
1478
+ ref: Pl,
1470
1479
  style: { pointerEvents: "none" },
1471
1480
  fill: "none",
1472
1481
  cx: n.value.width / 2,
1473
1482
  cy: n.value.height / 2,
1474
1483
  r: Math.max(0.1, Ce.value * 1.7)
1475
- }, null, 8, To),
1476
- V.value ? (s(), i(_, { key: 11 }, [
1477
- O.value.length > 1 || e.value.type === "classic" ? (s(), i("g", So, [
1478
- (s(!0), i(_, null, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("path", {
1479
- d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
1484
+ }, null, 8, Fo),
1485
+ V.value ? (s(), i(A, { key: 11 }, [
1486
+ O.value.length > 1 || e.value.type === "classic" ? (s(), i("g", Lo, [
1487
+ (s(!0), i(A, null, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("path", {
1488
+ d: e.value.type === "classic" ? t.arcSlice : v.value[a].path,
1480
1489
  stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
1481
1490
  fill: le.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
1482
- onMouseenter: (r) => ue({
1491
+ onMouseenter: (u) => se({
1483
1492
  datapoint: t,
1484
1493
  relativeIndex: a,
1485
1494
  seriesIndex: t.seriesIndex,
1486
1495
  show: !0
1487
1496
  }),
1488
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
1489
- onClick: (r) => re(t, a)
1490
- }, null, 40, Mo))), 256))
1491
- ])) : (s(), i("g", Fo, [
1492
- g("circle", {
1497
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
1498
+ onClick: (u) => ue(t, a)
1499
+ }, null, 40, Io))), 256))
1500
+ ])) : (s(), i("g", Do, [
1501
+ y("circle", {
1493
1502
  cx: n.value.width / 2,
1494
1503
  cy: n.value.height / 2,
1495
- r: S.value,
1504
+ r: T.value,
1496
1505
  fill: "transparent",
1497
- onMouseenter: o[0] || (o[0] = (t) => ue({
1506
+ onMouseenter: o[0] || (o[0] = (t) => se({
1498
1507
  datapoint: O.value[0],
1499
1508
  relativeIndex: 0,
1500
1509
  seriesIndex: O.value[0].seriesIndex,
1501
1510
  show: !0
1502
1511
  })),
1503
- onMouseleave: o[1] || (o[1] = (t) => se({ datapoint: O.value[0], seriesIndex: O.value[0].seriesIndex })),
1504
- onClick: o[2] || (o[2] = (t) => re(O.value[0], l.i))
1505
- }, null, 40, Lo)
1512
+ onMouseleave: o[1] || (o[1] = (t) => ne({ datapoint: O.value[0], seriesIndex: O.value[0].seriesIndex })),
1513
+ onClick: o[2] || (o[2] = (t) => ue(O.value[0], l.i))
1514
+ }, null, 40, Yo)
1506
1515
  ]))
1507
1516
  ], 64)) : d("", !0),
1508
1517
  e.value.type === "classic" ? (s(), i("g", {
1509
1518
  key: 12,
1510
1519
  ref_key: "G_hollow",
1511
- ref: Tl,
1520
+ ref: Ml,
1512
1521
  class: "vue-data-ui-donut-hollow-labels"
1513
1522
  }, [
1514
1523
  e.value.style.chart.layout.labels.hollow.total.show ? (s(), i("text", {
@@ -1518,8 +1527,8 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1518
1527
  y: n.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
1519
1528
  fill: e.value.style.chart.layout.labels.hollow.total.color,
1520
1529
  "font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
1521
- style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1522
- }, oe(e.value.style.chart.layout.labels.hollow.total.text), 13, Po)) : d("", !0),
1530
+ style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
1531
+ }, oe(e.value.style.chart.layout.labels.hollow.total.text), 13, zo)) : d("", !0),
1523
1532
  e.value.style.chart.layout.labels.hollow.total.show ? (s(), i("text", {
1524
1533
  key: 1,
1525
1534
  "text-anchor": "middle",
@@ -1527,16 +1536,16 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1527
1536
  y: n.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
1528
1537
  fill: e.value.style.chart.layout.labels.hollow.total.value.color,
1529
1538
  "font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
1530
- style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1531
- }, oe(u(j)(
1539
+ style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
1540
+ }, oe(r(q)(
1532
1541
  e.value.style.chart.layout.labels.hollow.total.value.formatter,
1533
1542
  V.value,
1534
- u(G)({
1543
+ r(G)({
1535
1544
  p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
1536
1545
  v: V.value,
1537
1546
  s: e.value.style.chart.layout.labels.hollow.total.value.suffix
1538
1547
  })
1539
- )), 13, Io)) : d("", !0),
1548
+ )), 13, Bo)) : d("", !0),
1540
1549
  e.value.style.chart.layout.labels.hollow.average.show ? (s(), i("text", {
1541
1550
  key: 2,
1542
1551
  "text-anchor": "middle",
@@ -1544,8 +1553,8 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1544
1553
  y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
1545
1554
  fill: e.value.style.chart.layout.labels.hollow.average.color,
1546
1555
  "font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
1547
- style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1548
- }, oe(e.value.style.chart.layout.labels.hollow.average.text), 13, Do)) : d("", !0),
1556
+ style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
1557
+ }, oe(e.value.style.chart.layout.labels.hollow.average.text), 13, Xo)) : d("", !0),
1549
1558
  e.value.style.chart.layout.labels.hollow.average.show ? (s(), i("text", {
1550
1559
  key: 3,
1551
1560
  "text-anchor": "middle",
@@ -1553,343 +1562,344 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1553
1562
  y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
1554
1563
  fill: e.value.style.chart.layout.labels.hollow.average.value.color,
1555
1564
  "font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
1556
- style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1557
- }, oe(xe.value || X.value ? "--" : u(j)(
1565
+ style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
1566
+ }, oe(de.value || B.value ? "--" : r(q)(
1558
1567
  e.value.style.chart.layout.labels.hollow.average.value.formatter,
1559
- st.value,
1560
- u(G)({
1568
+ rt.value,
1569
+ r(G)({
1561
1570
  p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
1562
- v: st.value,
1571
+ v: rt.value,
1563
1572
  s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
1564
1573
  r: e.value.style.chart.layout.labels.hollow.average.value.rounding
1565
1574
  })
1566
- )), 13, Yo)) : d("", !0)
1575
+ )), 13, Oo)) : d("", !0)
1567
1576
  ], 512)) : d("", !0),
1568
- (s(!0), i(_, null, H(N.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", {
1577
+ (s(!0), i(A, null, H(N.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", {
1569
1578
  filter: $e(a),
1570
- class: dt({ animated: e.value.useCssAnimation }),
1571
- key: t.seriesIndex
1579
+ class: ft({ animated: e.value.useCssAnimation }),
1580
+ key: t.seriesIndex,
1581
+ opacity: Ql(t)
1572
1582
  }, [
1573
- e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), i("g", Bo, [
1583
+ e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), i("g", No, [
1574
1584
  (s(), i("foreignObject", {
1575
- x: u($)(t, !0).anchor === "end" ? u($)(t).x - 120 : u($)(t, !0).anchor === "middle" ? u($)(t).x - 60 : u($)(t).x,
1576
- y: u(he)(t) - (Vt.value ? 20 : 0),
1585
+ x: r(x)(t, !0).anchor === "end" ? r(x)(t).x - 120 : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - 60 : r(x)(t).x,
1586
+ y: r(ie)(t) - (Ht.value ? 20 : 0),
1577
1587
  width: "120",
1578
1588
  height: "60",
1579
1589
  style: { overflow: "visible" }
1580
1590
  }, [
1581
- g("div", null, [
1582
- p(l.$slots, "dataLabel", ft({ ref_for: !0 }, {
1591
+ y("div", null, [
1592
+ p(l.$slots, "dataLabel", gt({ ref_for: !0 }, {
1583
1593
  datapoint: t,
1584
1594
  isBlur: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a,
1585
- isSafari: Vt.value,
1586
- isVisible: U(t) && b.value.dataLabels.show,
1587
- textAlign: u($)(t, !0, 16, !0).anchor,
1588
- flexAlign: u($)(t, !0, 16).anchor,
1589
- percentage: Ie(t, N.value)
1595
+ isSafari: Ht.value,
1596
+ isVisible: W(t) && m.value.dataLabels.show,
1597
+ textAlign: r(x)(t, !0, 16, !0).anchor,
1598
+ flexAlign: r(x)(t, !0, 16).anchor,
1599
+ percentage: Ye(t, N.value)
1590
1600
  }), void 0, !0)
1591
1601
  ])
1592
- ], 8, Xo))
1593
- ])) : (s(), i("g", Oo, [
1594
- e.value.type === "classic" ? (s(), i(_, { key: 0 }, [
1595
- U(t) && b.value.dataLabels.show ? (s(), i("circle", {
1602
+ ], 8, Vo))
1603
+ ])) : (s(), i("g", Ro, [
1604
+ e.value.type === "classic" ? (s(), i(A, { key: 0 }, [
1605
+ W(t) && m.value.dataLabels.show ? (s(), i("circle", {
1596
1606
  key: 0,
1597
- cx: Y.value[a]?.markerX ?? u($)(t).x,
1598
- cy: Y.value[a]?.markerY ?? u(he)(t) - 3.5,
1607
+ cx: I.value[a]?.markerX ?? r(x)(t).x,
1608
+ cy: I.value[a]?.markerY ?? r(ie)(t) - 3.5,
1599
1609
  fill: t.color,
1600
1610
  stroke: e.value.style.chart.backgroundColor,
1601
1611
  "stroke-width": 1,
1602
1612
  r: 3,
1603
- filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${m.value})`,
1604
- onClick: (r) => re(t, a),
1605
- onMouseenter: (r) => ue({
1613
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${k.value})`,
1614
+ onClick: (u) => ue(t, a),
1615
+ onMouseenter: (u) => se({
1606
1616
  datapoint: t,
1607
1617
  relativeIndex: a,
1608
1618
  seriesIndex: t.seriesIndex,
1609
1619
  show: !0
1610
1620
  }),
1611
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex })
1612
- }, null, 40, Eo)) : d("", !0),
1613
- e.value.style.chart.layout.labels.dataLabels.oneLine || Y.value[a] ? qe((s(), i("text", {
1621
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex })
1622
+ }, null, 40, Ho)) : d("", !0),
1623
+ e.value.style.chart.layout.labels.dataLabels.oneLine || I.value[a] ? Qe((s(), i("text", {
1614
1624
  key: 1,
1615
1625
  class: "vue-data-ui-datalabel-inline",
1616
- "text-anchor": Y.value[a]?.textAnchor || u($)(t, !0, 12).anchor,
1617
- x: Y.value[a]?.labelX ?? u($)(t, !0, 12).x,
1618
- y: Y.value[a]?.labelY ?? u(he)(t),
1619
- onClick: (r) => re(t, a),
1620
- onMouseenter: (r) => ue({
1626
+ "text-anchor": I.value[a]?.textAnchor || r(x)(t, !0, 12).anchor,
1627
+ x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
1628
+ y: I.value[a]?.labelY ?? r(ie)(t),
1629
+ onClick: (u) => ue(t, a),
1630
+ onMouseenter: (u) => se({
1621
1631
  datapoint: t,
1622
1632
  relativeIndex: a,
1623
1633
  seriesIndex: t.seriesIndex,
1624
1634
  show: !0
1625
1635
  }),
1626
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
1627
- innerHTML: Gl(t, a, !!Y.value[a])
1628
- }, null, 40, No)), [
1629
- [We, U(t) && b.value.dataLabels.show]
1630
- ]) : (s(), i(_, { key: 2 }, [
1631
- qe(g("text", {
1636
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
1637
+ innerHTML: Wl(t, a, !!I.value[a])
1638
+ }, null, 40, Go)), [
1639
+ [Je, W(t) && m.value.dataLabels.show]
1640
+ ]) : (s(), i(A, { key: 2 }, [
1641
+ Qe(y("text", {
1632
1642
  class: "vue-data-ui-datalabel-value",
1633
- "text-anchor": Y.value[a]?.textAnchor || u($)(t, !0, 12).anchor,
1634
- x: Y.value[a]?.labelX ?? u($)(t, !0, 12).x,
1635
- y: Y.value[a]?.labelY ?? u(he)(t),
1643
+ "text-anchor": I.value[a]?.textAnchor || r(x)(t, !0, 12).anchor,
1644
+ x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
1645
+ y: I.value[a]?.labelY ?? r(ie)(t),
1636
1646
  fill: e.value.style.chart.layout.labels.percentage.color,
1637
1647
  "font-size": Se.value + "px",
1638
- style: L(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1639
- onClick: (r) => re(t, a),
1640
- onMouseenter: (r) => ue({
1648
+ style: M(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
1649
+ onClick: (u) => ue(t, a),
1650
+ onMouseenter: (u) => se({
1641
1651
  datapoint: t,
1642
1652
  relativeIndex: a,
1643
1653
  seriesIndex: t.seriesIndex,
1644
1654
  show: !0
1645
1655
  }),
1646
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex })
1647
- }, oe(Ie(t, N.value)) + " " + oe(e.value.style.chart.layout.labels.value.show ? `(${u(j)(
1656
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex })
1657
+ }, oe(Ye(t, N.value)) + " " + oe(e.value.style.chart.layout.labels.value.show ? `(${r(q)(
1648
1658
  e.value.style.chart.layout.labels.value.formatter,
1649
1659
  t.value,
1650
- u(G)({
1660
+ r(G)({
1651
1661
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1652
1662
  v: t.value,
1653
1663
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1654
1664
  r: e.value.style.chart.layout.labels.value.rounding
1655
1665
  }),
1656
1666
  { datapoint: t }
1657
- )})` : ""), 45, Vo), [
1658
- [We, U(t) && b.value.dataLabels.show]
1667
+ )})` : ""), 45, Uo), [
1668
+ [Je, W(t) && m.value.dataLabels.show]
1659
1669
  ]),
1660
- qe(g("text", {
1670
+ Qe(y("text", {
1661
1671
  class: "vue-data-ui-datalabel-name",
1662
- "text-anchor": Y.value[a]?.textAnchor || u($)(t).anchor,
1663
- x: Y.value[a]?.labelX ?? u($)(t, !0, 12).x,
1664
- y: (Y.value[a]?.labelY ?? u(he)(t)) + E.value * 1.2,
1672
+ "text-anchor": I.value[a]?.textAnchor || r(x)(t).anchor,
1673
+ x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
1674
+ y: (I.value[a]?.labelY ?? r(ie)(t)) + E.value * 1.2,
1665
1675
  fill: e.value.style.chart.layout.labels.name.color,
1666
1676
  "font-size": E.value + "px",
1667
- style: L(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1668
- onClick: (r) => re(t, a),
1669
- onMouseenter: (r) => ue({
1677
+ style: M(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
1678
+ onClick: (u) => ue(t, a),
1679
+ onMouseenter: (u) => se({
1670
1680
  datapoint: t,
1671
1681
  relativeIndex: a,
1672
1682
  seriesIndex: t.seriesIndex,
1673
1683
  show: !0
1674
1684
  }),
1675
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
1676
- innerHTML: u(ol)({
1685
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
1686
+ innerHTML: r(sl)({
1677
1687
  content: t.name,
1678
1688
  fontSize: E.value,
1679
1689
  fill: e.value.style.chart.layout.labels.name.color,
1680
- x: Y.value[a]?.labelX ?? u($)(t, !0, 12).x,
1681
- y: (Y.value[a]?.labelY ?? u(he)(t)) + E.value
1690
+ x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
1691
+ y: (I.value[a]?.labelY ?? r(ie)(t)) + E.value
1682
1692
  })
1683
- }, null, 44, Ro), [
1684
- [We, U(t) && b.value.dataLabels.show]
1693
+ }, null, 44, jo), [
1694
+ [Je, W(t) && m.value.dataLabels.show]
1685
1695
  ])
1686
1696
  ], 64))
1687
1697
  ], 64)) : d("", !0),
1688
- e.value.type === "polar" ? (s(), i(_, { key: 1 }, [
1689
- U(t) && b.value.dataLabels.show ? (s(), i("circle", {
1698
+ e.value.type === "polar" ? (s(), i(A, { key: 1 }, [
1699
+ W(t) && m.value.dataLabels.show ? (s(), i("circle", {
1690
1700
  key: 0,
1691
- cx: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1692
- cy: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1701
+ cx: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1702
+ cy: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1693
1703
  fill: t.color,
1694
1704
  stroke: e.value.style.chart.backgroundColor,
1695
1705
  "stroke-width": 1,
1696
1706
  r: 3,
1697
- filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${m.value})`,
1698
- onClick: (r) => re(t, a),
1699
- onMouseenter: (r) => ue({
1707
+ filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${k.value})`,
1708
+ onClick: (u) => ue(t, a),
1709
+ onMouseenter: (u) => se({
1700
1710
  datapoint: t,
1701
1711
  relativeIndex: a,
1702
1712
  seriesIndex: t.seriesIndex,
1703
1713
  show: !0
1704
1714
  }),
1705
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
1706
- style: L({
1707
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1715
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
1716
+ style: M({
1717
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1708
1718
  })
1709
- }, null, 44, Ho)) : d("", !0),
1710
- e.value.style.chart.layout.labels.dataLabels.oneLine ? qe((s(), i("text", {
1719
+ }, null, 44, Wo)) : d("", !0),
1720
+ e.value.style.chart.layout.labels.dataLabels.oneLine ? Qe((s(), i("text", {
1711
1721
  key: 1,
1712
1722
  class: "vue-data-ui-datalabel-inline",
1713
- "text-anchor": ye(c.value[a].middlePoint),
1714
- x: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1715
- y: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1716
- style: L({
1717
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1723
+ "text-anchor": he(v.value[a].middlePoint),
1724
+ x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1725
+ y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1726
+ style: M({
1727
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
1718
1728
  }),
1719
- onClick: (r) => re(t, a),
1720
- onMouseenter: (r) => ue({
1729
+ onClick: (u) => ue(t, a),
1730
+ onMouseenter: (u) => se({
1721
1731
  datapoint: t,
1722
1732
  relativeIndex: a,
1723
1733
  seriesIndex: t.seriesIndex,
1724
1734
  show: !0
1725
1735
  }),
1726
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
1727
- innerHTML: Ul(t, a)
1728
- }, null, 44, Go)), [
1729
- [We, U(t) && b.value.dataLabels.show]
1730
- ]) : (s(), i(_, { key: 2 }, [
1731
- U(t) && b.value.dataLabels.show ? (s(), i("text", {
1736
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
1737
+ innerHTML: ql(t, a)
1738
+ }, null, 44, qo)), [
1739
+ [Je, W(t) && m.value.dataLabels.show]
1740
+ ]) : (s(), i(A, { key: 2 }, [
1741
+ W(t) && m.value.dataLabels.show ? (s(), i("text", {
1732
1742
  key: 0,
1733
1743
  class: "vue-data-ui-datalabel-value",
1734
- "text-anchor": ye(c.value[a].middlePoint),
1735
- x: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1736
- y: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1744
+ "text-anchor": he(v.value[a].middlePoint),
1745
+ x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1746
+ y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
1737
1747
  fill: e.value.style.chart.layout.labels.percentage.color,
1738
1748
  "font-size": Se.value,
1739
- style: L({
1740
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1749
+ style: M({
1750
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1741
1751
  fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
1742
1752
  }),
1743
- onClick: (r) => re(t, a),
1744
- onMouseenter: (r) => ue({
1753
+ onClick: (u) => ue(t, a),
1754
+ onMouseenter: (u) => se({
1745
1755
  datapoint: t,
1746
1756
  relativeIndex: a,
1747
1757
  seriesIndex: t.seriesIndex,
1748
1758
  show: !0
1749
1759
  }),
1750
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex })
1751
- }, oe(Ie(t, N.value)) + " " + oe(e.value.style.chart.layout.labels.value.show ? `(${u(j)(
1760
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex })
1761
+ }, oe(Ye(t, N.value)) + " " + oe(e.value.style.chart.layout.labels.value.show ? `(${r(q)(
1752
1762
  e.value.style.chart.layout.labels.value.formatter,
1753
1763
  t.value,
1754
- u(G)({
1764
+ r(G)({
1755
1765
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1756
1766
  v: t.value,
1757
1767
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
1758
1768
  r: e.value.style.chart.layout.labels.value.rounding
1759
1769
  }),
1760
1770
  { datapoint: t }
1761
- )})` : ""), 45, Uo)) : d("", !0),
1762
- U(t) && b.value.dataLabels.show ? (s(), i("text", {
1771
+ )})` : ""), 45, Qo)) : d("", !0),
1772
+ W(t) && m.value.dataLabels.show ? (s(), i("text", {
1763
1773
  key: 1,
1764
1774
  class: "vue-data-ui-datalabel-name",
1765
- "text-anchor": ye(c.value[a].middlePoint),
1766
- x: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1767
- y: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2,
1775
+ "text-anchor": he(v.value[a].middlePoint),
1776
+ x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1777
+ y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2,
1768
1778
  fill: e.value.style.chart.layout.labels.name.color,
1769
1779
  "font-size": E.value,
1770
- style: L({
1771
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1780
+ style: M({
1781
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1772
1782
  fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
1773
1783
  }),
1774
- onClick: (r) => re(t, a),
1775
- onMouseenter: (r) => ue({
1784
+ onClick: (u) => ue(t, a),
1785
+ onMouseenter: (u) => se({
1776
1786
  datapoint: t,
1777
1787
  relativeIndex: a,
1778
1788
  seriesIndex: t.seriesIndex,
1779
1789
  show: !0
1780
1790
  }),
1781
- onMouseleave: (r) => se({ datapoint: t, seriesIndex: t.seriesIndex }),
1782
- innerHTML: u(ol)({
1791
+ onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
1792
+ innerHTML: r(sl)({
1783
1793
  content: t.name,
1784
1794
  fontSize: Se.value,
1785
1795
  fill: e.value.style.chart.layout.labels.name.color,
1786
- x: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1787
- y: u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2
1796
+ x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
1797
+ y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2
1788
1798
  })
1789
- }, null, 44, jo)) : d("", !0)
1799
+ }, null, 44, Jo)) : d("", !0)
1790
1800
  ], 64))
1791
1801
  ], 64)) : d("", !0)
1792
1802
  ])),
1793
- b.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), i("g", qo, [
1794
- U(t) && e.value.type === "classic" ? (s(), i("foreignObject", {
1803
+ m.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), i("g", Ko, [
1804
+ W(t) && e.value.type === "classic" ? (s(), i("foreignObject", {
1795
1805
  key: 0,
1796
- x: e.value.style.chart.comments.offsetX + (u($)(t, !0).anchor === "end" ? u($)(t).x - e.value.style.chart.comments.width : u($)(t, !0).anchor === "middle" ? u($)(t).x - e.value.style.chart.comments.width / 2 : u($)(t).x),
1797
- y: u(he)(t) + 24 + e.value.style.chart.comments.offsetY,
1806
+ x: e.value.style.chart.comments.offsetX + (r(x)(t, !0).anchor === "end" ? r(x)(t).x - e.value.style.chart.comments.width : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - e.value.style.chart.comments.width / 2 : r(x)(t).x),
1807
+ y: r(ie)(t) + 24 + e.value.style.chart.comments.offsetY,
1798
1808
  width: e.value.style.chart.comments.width,
1799
1809
  height: "200",
1800
1810
  style: { overflow: "visible", "pointer-events": "none" }
1801
1811
  }, [
1802
- g("div", null, [
1812
+ y("div", null, [
1803
1813
  p(l.$slots, "plot-comment", {
1804
- plot: { ...t, textAlign: u($)(t, !0, 16, !0).anchor, flexAlign: u($)(t, !0, 16).anchor, isFirstLoad: X.value }
1814
+ plot: { ...t, textAlign: r(x)(t, !0, 16, !0).anchor, flexAlign: r(x)(t, !0, 16).anchor, isFirstLoad: B.value }
1805
1815
  }, void 0, !0)
1806
1816
  ])
1807
- ], 8, Wo)) : d("", !0),
1808
- U(t) && e.value.type === "polar" ? (s(), i("foreignObject", {
1817
+ ], 8, Zo)) : d("", !0),
1818
+ W(t) && e.value.type === "polar" ? (s(), i("foreignObject", {
1809
1819
  key: 1,
1810
- x: e.value.style.chart.comments.offsetX + (ye(c.value[a].middlePoint) === "end" ? u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : ye(c.value[a].middlePoint) === "middle" ? u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : u(D)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
1811
- y: Nl(c.value[a]) + e.value.style.chart.comments.offsetY,
1820
+ x: e.value.style.chart.comments.offsetX + (he(v.value[a].middlePoint) === "end" ? r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : he(v.value[a].middlePoint) === "middle" ? r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
1821
+ y: Rl(v.value[a]) + e.value.style.chart.comments.offsetY,
1812
1822
  width: e.value.style.chart.comments.width,
1813
1823
  height: "200",
1814
- style: L({
1815
- transition: X.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1824
+ style: M({
1825
+ transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1816
1826
  overflow: "visible",
1817
1827
  pointerEvents: "none"
1818
1828
  })
1819
1829
  }, [
1820
- g("div", null, [
1830
+ y("div", null, [
1821
1831
  p(l.$slots, "plot-comment", {
1822
- plot: { ...t, textAlign: ye(c.value[a].middlePoint), flexAlign: ye(c.value[a].middlePoint), isFirstLoad: X.value }
1832
+ plot: { ...t, textAlign: he(v.value[a].middlePoint), flexAlign: he(v.value[a].middlePoint), isFirstLoad: B.value }
1823
1833
  }, void 0, !0)
1824
1834
  ])
1825
- ], 12, Qo)) : d("", !0)
1835
+ ], 12, en)) : d("", !0)
1826
1836
  ])) : d("", !0)
1827
- ], 10, zo))), 128)),
1837
+ ], 10, Eo))), 128)),
1828
1838
  p(l.$slots, "svg", { svg: n.value }, void 0, !0)
1829
1839
  ], 512)
1830
- ], 14, Ea)),
1831
- l.$slots.watermark ? (s(), i("div", Jo, [
1832
- p(l.$slots, "watermark", Z(ee({ isPrinting: u(Pt) || u(It) })), void 0, !0)
1840
+ ], 14, Ha)),
1841
+ l.$slots.watermark ? (s(), i("div", tn, [
1842
+ p(l.$slots, "watermark", Z(ee({ isPrinting: r(Dt) || r(Yt) })), void 0, !0)
1833
1843
  ])) : d("", !0),
1834
- g("div", {
1835
- id: `legend-bottom-${m.value}`
1836
- }, null, 8, Ko),
1837
- _t.value ? (s(), me(na, {
1844
+ y("div", {
1845
+ id: `legend-bottom-${k.value}`
1846
+ }, null, 8, ln),
1847
+ St.value ? (s(), me(ia, {
1838
1848
  key: 5,
1839
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
1849
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
1840
1850
  }, [
1841
- g("div", {
1851
+ y("div", {
1842
1852
  ref_key: "chartLegend",
1843
- ref: wt
1853
+ ref: Ct
1844
1854
  }, [
1845
- e.value.style.chart.legend.show ? (s(), me(za, {
1846
- key: `legend_${At.value}`,
1847
- legendSet: nt.value,
1848
- config: Xl.value,
1849
- onClickMarker: o[3] || (o[3] = ({ i: t }) => Ve(t))
1850
- }, ht({
1851
- item: k(({ legend: t, index: a }) => [
1852
- g("div", {
1853
- style: L(`opacity:${Q.value.includes(a) ? 0.5 : 1}`),
1854
- onClick: (r) => t.segregate()
1855
- }, oe(t.display), 13, Zo)
1855
+ e.value.style.chart.legend.show ? (s(), me(Ea, {
1856
+ key: `legend_${Tt.value}`,
1857
+ legendSet: ut.value,
1858
+ config: El.value,
1859
+ onClickMarker: o[3] || (o[3] = ({ i: t }) => He(t))
1860
+ }, yt({
1861
+ item: C(({ legend: t, index: a }) => [
1862
+ y("div", {
1863
+ style: M(`opacity:${j.value.includes(a) ? 0.5 : 1}`),
1864
+ onClick: (u) => t.segregate()
1865
+ }, oe(t.display), 13, an)
1856
1866
  ]),
1857
1867
  _: 2
1858
1868
  }, [
1859
1869
  l.$slots.pattern ? {
1860
1870
  name: "legend-pattern",
1861
- fn: k(({ legend: t, index: a }) => [
1862
- je(Da, {
1871
+ fn: C(({ legend: t, index: a }) => [
1872
+ qe(Xa, {
1863
1873
  shape: t.shape,
1864
1874
  radius: 30,
1865
1875
  stroke: "none",
1866
1876
  plot: { x: 30, y: 30 },
1867
- fill: `url(#pattern_${m.value}_${a})`
1877
+ fill: `url(#pattern_${k.value}_${a})`
1868
1878
  }, null, 8, ["shape", "fill"])
1869
1879
  ]),
1870
1880
  key: "0"
1871
1881
  } : void 0
1872
1882
  ]), 1032, ["legendSet", "config"])) : d("", !0),
1873
- p(l.$slots, "legend", { legend: nt.value }, void 0, !0)
1883
+ p(l.$slots, "legend", { legend: ut.value }, void 0, !0)
1874
1884
  ], 512)
1875
1885
  ], 8, ["to"])) : d("", !0),
1876
1886
  l.$slots.source ? (s(), i("div", {
1877
1887
  key: 6,
1878
1888
  ref_key: "source",
1879
- ref: kt,
1889
+ ref: xt,
1880
1890
  dir: "auto"
1881
1891
  }, [
1882
1892
  p(l.$slots, "source", {}, void 0, !0)
1883
1893
  ], 512)) : d("", !0),
1884
- l.$slots.hollow ? (s(), i("div", en, [
1894
+ l.$slots.hollow ? (s(), i("div", on, [
1885
1895
  p(l.$slots, "hollow", Z(ee({
1886
1896
  total: V.value,
1887
- average: st.value,
1888
- dataset: q.value
1897
+ average: rt.value,
1898
+ dataset: U.value
1889
1899
  })), void 0, !0)
1890
1900
  ])) : d("", !0),
1891
- je(u(yl), {
1892
- show: b.value.showTooltip && tt.value,
1901
+ qe(r(pl), {
1902
+ show: m.value.showTooltip && at.value,
1893
1903
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1894
1904
  color: e.value.style.chart.tooltip.color,
1895
1905
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -1900,57 +1910,57 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1900
1910
  position: e.value.style.chart.tooltip.position,
1901
1911
  offsetY: e.value.style.chart.tooltip.offsetY,
1902
1912
  parent: te.value,
1903
- content: lt.value,
1904
- isCustom: De.value,
1913
+ content: ot.value,
1914
+ isCustom: ze.value,
1905
1915
  isFullscreen: Ae.value,
1906
1916
  smooth: e.value.style.chart.tooltip.smooth,
1907
1917
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1908
1918
  smoothForce: e.value.style.chart.tooltip.smoothForce,
1909
1919
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
1910
1920
  }, {
1911
- "tooltip-before": k(() => [
1912
- p(l.$slots, "tooltip-before", Z(ee({ ...ut.value })), void 0, !0)
1921
+ "tooltip-before": C(() => [
1922
+ p(l.$slots, "tooltip-before", Z(ee({ ...it.value })), void 0, !0)
1913
1923
  ]),
1914
- "tooltip-after": k(() => [
1915
- p(l.$slots, "tooltip-after", Z(ee({ ...ut.value })), void 0, !0)
1924
+ "tooltip-after": C(() => [
1925
+ p(l.$slots, "tooltip-after", Z(ee({ ...it.value })), void 0, !0)
1916
1926
  ]),
1917
1927
  _: 3
1918
1928
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1919
- Be.value && e.value.userOptions.buttons.table ? (s(), me(sa(Ye.value.component), ft({ key: 8 }, Ye.value.props, {
1929
+ Oe.value && e.value.userOptions.buttons.table ? (s(), me(ca(Be.value.component), gt({ key: 8 }, Be.value.props, {
1920
1930
  ref_key: "tableUnit",
1921
- ref: Pe,
1922
- onClose: Ut
1923
- }), ht({
1924
- content: k(() => [
1925
- (s(), me(u(bl), {
1926
- key: `table_${$t.value}`,
1927
- colNames: Re.value.colNames,
1928
- head: Re.value.head,
1929
- body: Re.value.body,
1930
- config: Re.value.config,
1931
- title: e.value.table.useDialog ? "" : Ye.value.title,
1931
+ ref: Fe,
1932
+ onClose: Wt
1933
+ }), yt({
1934
+ content: C(() => [
1935
+ (s(), me(r(wl), {
1936
+ key: `table_${_t.value}`,
1937
+ colNames: Ge.value.colNames,
1938
+ head: Ge.value.head,
1939
+ body: Ge.value.body,
1940
+ config: Ge.value.config,
1941
+ title: e.value.table.useDialog ? "" : Be.value.title,
1932
1942
  withCloseButton: !e.value.table.useDialog,
1933
- onClose: Ut
1943
+ onClose: Wt
1934
1944
  }, {
1935
- th: k(({ th: t }) => [
1936
- g("div", {
1945
+ th: C(({ th: t }) => [
1946
+ y("div", {
1937
1947
  innerHTML: t,
1938
1948
  style: { display: "flex", "align-items": "center" }
1939
- }, null, 8, tn)
1949
+ }, null, 8, nn)
1940
1950
  ]),
1941
- td: k(({ td: t }) => [
1942
- el(oe(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : u(j)(
1951
+ td: C(({ td: t }) => [
1952
+ ll(oe(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(q)(
1943
1953
  e.value.style.chart.layout.labels.percentage.formatter,
1944
1954
  t,
1945
- u(G)({
1955
+ r(G)({
1946
1956
  v: t,
1947
1957
  s: "%",
1948
1958
  r: e.value.style.chart.layout.labels.percentage.rounding
1949
1959
  })
1950
- ) : u(j)(
1960
+ ) : r(q)(
1951
1961
  e.value.style.chart.layout.labels.value.formatter,
1952
1962
  t,
1953
- u(G)({
1963
+ r(G)({
1954
1964
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
1955
1965
  v: t,
1956
1966
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
@@ -1965,37 +1975,37 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1965
1975
  }, [
1966
1976
  e.value.table.useDialog ? {
1967
1977
  name: "title",
1968
- fn: k(() => [
1969
- el(oe(Ye.value.title), 1)
1978
+ fn: C(() => [
1979
+ ll(oe(Be.value.title), 1)
1970
1980
  ]),
1971
1981
  key: "0"
1972
1982
  } : void 0,
1973
1983
  e.value.table.useDialog ? {
1974
1984
  name: "actions",
1975
- fn: k(() => [
1976
- g("button", {
1985
+ fn: C(() => [
1986
+ y("button", {
1977
1987
  tabindex: "0",
1978
1988
  class: "vue-ui-user-options-button",
1979
- onClick: o[4] || (o[4] = (t) => rt(e.value.userOptions.callbacks.csv))
1989
+ onClick: o[4] || (o[4] = (t) => ct(e.value.userOptions.callbacks.csv))
1980
1990
  }, [
1981
- je(u(gl), {
1991
+ qe(r(bl), {
1982
1992
  name: "excel",
1983
- stroke: Ye.value.props.color
1993
+ stroke: Be.value.props.color
1984
1994
  }, null, 8, ["stroke"])
1985
1995
  ])
1986
1996
  ]),
1987
1997
  key: "1"
1988
1998
  } : void 0
1989
1999
  ]), 1040)) : d("", !0),
1990
- u(Oe) ? (s(), me(Sa, { key: 9 })) : d("", !0)
1991
- ], 46, Xa));
2000
+ r(Ne) ? (s(), me(La, { key: 9 })) : d("", !0)
2001
+ ], 46, Va));
1992
2002
  }
1993
- }, an = /* @__PURE__ */ Ba(ln, [["__scopeId", "data-v-028aa13a"]]), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2003
+ }, un = /* @__PURE__ */ Na(sn, [["__scopeId", "data-v-ace639e3"]]), An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1994
2004
  __proto__: null,
1995
- default: an
2005
+ default: un
1996
2006
  }, Symbol.toStringTag, { value: "Module" }));
1997
2007
  export {
1998
- an as V,
1999
- kn as a,
2000
- wn as v
2008
+ un as V,
2009
+ An as a,
2010
+ $n as v
2001
2011
  };