vue-data-ui 3.22.13 → 3.23.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 (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -0,0 +1,2350 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, D as n, G as r, Gt as a, Jt as o, K as s, Kt as c, Ot as l, Pt as u, S as d, Wt as f, X as p, _ as ee, c as te, ct as ne, dt as re, i as m, jt as ie, ot as ae, pt as oe, q as se, r as ce, t as le, tt as ue, v as de, w as fe, xt as pe } from "./lib-BuMGJ_a0.js";
3
+ import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
+ import { n as ge, r as _e, t as ve } from "./useTimeLabels-B9CEuiLZ.js";
5
+ import { t as ye } from "./useConfig-BilxnBNr.js";
6
+ import { t as be } from "./usePrinter-BFvi4jVy.js";
7
+ import { n as xe, t as Se } from "./BaseScanner-DZvpgOjM.js";
8
+ import { t as Ce } from "./useSvgExport-Ba9qBr9M.js";
9
+ import { t as we } from "./useNestedProp--NSEmhOH.js";
10
+ import { t as Te } from "./useThemeCheck-C43Tcqmk.js";
11
+ import { t as Ee } from "./useTransitions-g_zBREk2.js";
12
+ import { t as De } from "./useStableElementSize-C7KADDKj.js";
13
+ import { t as Oe } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
+ import { t as ke } from "./img-DIQG5q8T.js";
15
+ import { n as Ae } from "./Title-BODtwViI.js";
16
+ import { t as je } from "./Shape-BPMV94Ij.js";
17
+ import { t as Me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
+ import { l as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
19
+ import { t as Fe } from "./DefGrad-DVBqDjhO.js";
20
+ import { t as Ie } from "./SlicerPreview-DvjLV2TW.js";
21
+ import { t as Le } from "./BaseLegendToggle-CtAPwzr2.js";
22
+ import { t as Re } from "./A11yDataTable-DdRsVULz.js";
23
+ import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
24
+ import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
25
+ import { t as Ve } from "./Legend-CQTRlzK-.js";
26
+ import { t as He } from "./vue_ui_stackbar-COOrQQdK.js";
27
+ import { Fragment as h, Teleport as Ue, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as We, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as b, mergeProps as Ye, nextTick as Xe, normalizeClass as x, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as Ze, onMounted as Qe, openBlock as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as $e, shallowRef as et, toDisplayString as O, toRefs as tt, unref as k, useSlots as nt, watch as rt, watchEffect as it, withCtx as A } from "vue";
28
+ //#region src/components/vue-ui-stackbar.vue
29
+ var at = /* @__PURE__ */ e({ default: () => en }), ot = ["id"], st = ["id"], ct = ["id"], lt = { style: { position: "relative" } }, ut = [
30
+ "xmlns",
31
+ "aria-describedby",
32
+ "viewBox"
33
+ ], dt = [
34
+ "x",
35
+ "y",
36
+ "width",
37
+ "height"
38
+ ], ft = { key: 1 }, pt = [
39
+ "x",
40
+ "y",
41
+ "width",
42
+ "height",
43
+ "stroke",
44
+ "stroke-width",
45
+ "stroke-linecap",
46
+ "stroke-linejoin",
47
+ "stroke-dasharray"
48
+ ], mt = [
49
+ "x1",
50
+ "x2",
51
+ "y1",
52
+ "y2",
53
+ "stroke",
54
+ "stroke-width",
55
+ "stroke-dasharray"
56
+ ], ht = [
57
+ "x1",
58
+ "x2",
59
+ "y1",
60
+ "y2",
61
+ "stroke",
62
+ "stroke-width",
63
+ "stroke-dasharray"
64
+ ], gt = [
65
+ "x1",
66
+ "x2",
67
+ "y1",
68
+ "y2",
69
+ "stroke",
70
+ "stroke-width",
71
+ "stroke-dasharray"
72
+ ], _t = [
73
+ "x1",
74
+ "x2",
75
+ "y1",
76
+ "y2",
77
+ "stroke",
78
+ "stroke-width",
79
+ "stroke-dasharray"
80
+ ], vt = { key: 0 }, yt = [
81
+ "x",
82
+ "y",
83
+ "height",
84
+ "rx",
85
+ "width",
86
+ "fill",
87
+ "stroke",
88
+ "stroke-width"
89
+ ], bt = { key: 0 }, xt = [
90
+ "x",
91
+ "y",
92
+ "height",
93
+ "rx",
94
+ "width",
95
+ "fill",
96
+ "stroke",
97
+ "stroke-width"
98
+ ], St = [
99
+ "x",
100
+ "y",
101
+ "width",
102
+ "rx",
103
+ "height",
104
+ "fill",
105
+ "stroke",
106
+ "stroke-width"
107
+ ], Ct = { key: 0 }, wt = [
108
+ "x",
109
+ "y",
110
+ "width",
111
+ "rx",
112
+ "height",
113
+ "fill",
114
+ "stroke",
115
+ "stroke-width"
116
+ ], Tt = [
117
+ "x1",
118
+ "x2",
119
+ "y1",
120
+ "y2",
121
+ "stroke",
122
+ "stroke-width"
123
+ ], Et = [
124
+ "x1",
125
+ "x2",
126
+ "y1",
127
+ "y2",
128
+ "stroke",
129
+ "stroke-width"
130
+ ], Dt = [
131
+ "x",
132
+ "y",
133
+ "font-size",
134
+ "fill",
135
+ "font-weight"
136
+ ], Ot = [
137
+ "transform",
138
+ "font-size",
139
+ "fill",
140
+ "font-weight"
141
+ ], kt = [
142
+ "transform",
143
+ "font-size",
144
+ "fill",
145
+ "font-weight"
146
+ ], At = [
147
+ "transform",
148
+ "font-size",
149
+ "font-weight",
150
+ "fill"
151
+ ], jt = [
152
+ "transform",
153
+ "font-size",
154
+ "fill",
155
+ "font-weight"
156
+ ], Mt = [
157
+ "transform",
158
+ "font-size",
159
+ "font-weight",
160
+ "fill"
161
+ ], Nt = ["stroke", "d"], Pt = [
162
+ "transform",
163
+ "font-size",
164
+ "font-weight",
165
+ "fill",
166
+ "text-anchor"
167
+ ], Ft = ["d", "stroke"], It = [
168
+ "font-size",
169
+ "font-weight",
170
+ "fill",
171
+ "text-anchor",
172
+ "transform"
173
+ ], Lt = { key: 0 }, Rt = { key: 1 }, zt = [
174
+ "text-anchor",
175
+ "font-size",
176
+ "font-weight",
177
+ "fill",
178
+ "transform",
179
+ "onClick"
180
+ ], Bt = [
181
+ "text-anchor",
182
+ "font-size",
183
+ "fill",
184
+ "transform",
185
+ "innerHTML",
186
+ "onClick"
187
+ ], Vt = { key: 0 }, Ht = { key: 1 }, Ut = [
188
+ "font-size",
189
+ "font-weight",
190
+ "fill",
191
+ "transform",
192
+ "onClick"
193
+ ], Wt = [
194
+ "font-size",
195
+ "font-weight",
196
+ "fill",
197
+ "transform",
198
+ "onClick",
199
+ "innerHTML"
200
+ ], Gt = [
201
+ "x",
202
+ "y",
203
+ "width",
204
+ "height",
205
+ "onClick",
206
+ "onMouseenter",
207
+ "onMouseleave",
208
+ "fill"
209
+ ], Kt = [
210
+ "x",
211
+ "y",
212
+ "width",
213
+ "height",
214
+ "onClick",
215
+ "onMouseenter",
216
+ "onMouseleave",
217
+ "fill"
218
+ ], qt = ["data-start", "data-end"], Jt = {
219
+ key: 0,
220
+ style: {
221
+ position: "absolute",
222
+ top: "100%",
223
+ left: "0",
224
+ width: "100%"
225
+ },
226
+ "data-dom-to-png-ignore": "",
227
+ "aria-hidden": "true"
228
+ }, Yt = {
229
+ key: 4,
230
+ class: "vue-data-ui-watermark"
231
+ }, Xt = [
232
+ "x",
233
+ "y",
234
+ "height",
235
+ "width",
236
+ "fill",
237
+ "stroke"
238
+ ], Zt = ["id"], Qt = ["onClick"], $t = ["innerHTML"], en = /*#__PURE__*/ Me({
239
+ __name: "vue-ui-stackbar",
240
+ props: {
241
+ config: {
242
+ type: Object,
243
+ default() {
244
+ return {};
245
+ }
246
+ },
247
+ dataset: {
248
+ type: Array,
249
+ default() {
250
+ return [];
251
+ }
252
+ },
253
+ selectedXIndex: {
254
+ type: Number,
255
+ default: void 0
256
+ }
257
+ },
258
+ emits: [
259
+ "selectDatapoint",
260
+ "selectLegend",
261
+ "selectTimeLabel",
262
+ "selectX",
263
+ "copyAlt"
264
+ ],
265
+ setup(e, { expose: Me, emit: at }) {
266
+ let en = Je(() => import("./Tooltip-CMTGxeYO.js")), tn = Je(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), nn = Je(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), rn = Je(() => import("./DataTable-D4tM9s5Y.js")), an = Je(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), on = Je(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), sn = Je(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), cn = Je(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_stackbar: ln } = ye(), { isThemeValid: un, warnInvalidTheme: dn } = Te(), fn = nt(), j = e, M = at, pn = g({
267
+ get() {
268
+ return !!j.dataset && j.dataset.length;
269
+ },
270
+ set(e) {
271
+ return e;
272
+ }
273
+ }), N = T(null), P = T(se()), mn = T(!1), hn = T(null), gn = T(""), F = T([]), _n = T(0), vn = T(null), yn = T(null), bn = T(null), xn = T(null), Sn = T(!1), I = T(null), Cn = T(!1), wn = T(0), Tn = T(0), En = T(0), Dn = T(!1), On = T(null), kn = T(null), An = T(!1), jn = T(!1), Mn = T(null), Nn = T(null), Pn = T(null), Fn = T(null), In = T(null), Ln = T(null), Rn = et(null), zn = T(!1), Bn = T(0), Vn = T(0), L = T(null), Hn = T({
274
+ x: 0,
275
+ y: 0
276
+ }), Un = T("pointer"), Wn = De({
277
+ elementRef: Rn,
278
+ minimumWidth: 2,
279
+ minimumHeight: 2,
280
+ stableFramesRequired: 2,
281
+ once: !1,
282
+ onSizeAccepted: () => {
283
+ qn();
284
+ }
285
+ });
286
+ function Gn() {
287
+ Rn.value = N.value?.parentNode ?? null;
288
+ }
289
+ function Kn() {
290
+ return new Promise((e) => {
291
+ requestAnimationFrame(() => {
292
+ requestAnimationFrame(e);
293
+ });
294
+ });
295
+ }
296
+ async function qn() {
297
+ let e = ++Vn.value;
298
+ zn.value = !1, await Xe(), await Kn(), await Kn(), e === Vn.value && (Bn.value += 1, zn.value = !0);
299
+ }
300
+ let Jn = T(null);
301
+ Qe(() => {
302
+ Dn.value = !0, Gn(), Wn.start(), gr();
303
+ });
304
+ let R = T(ar());
305
+ me({
306
+ config: () => R.value,
307
+ dataset: () => j.dataset,
308
+ component: "VueUiStackbar",
309
+ rules: [
310
+ he.emptyArray,
311
+ {
312
+ test: (e) => e.some((e) => e.series.length > 60),
313
+ message: [
314
+ "👀 Some series have > 60 datapoints. Consider",
315
+ "",
316
+ "▶️ Using VueUiStackline instead, for better readability.",
317
+ "",
318
+ "▶️ Aggregating data to larger time units, to reduce the number of datapoints.",
319
+ "",
320
+ "▶️ Using filters to constraint the data to a specific time range."
321
+ ]
322
+ },
323
+ {
324
+ test: (e) => e.length > 6,
325
+ message: [
326
+ "👀 The number of series > 6, which can make the chart hard to read. Consider:",
327
+ "",
328
+ "▶️ Grouping small values into an \"Other\" category.",
329
+ "",
330
+ "▶️ Using filters to let users choose a maximum number of series to display."
331
+ ]
332
+ }
333
+ ]
334
+ });
335
+ let { transitionEnabled: z } = Ee({
336
+ config: () => R.value.transitions,
337
+ dataset: () => j.dataset
338
+ }), B = g(() => R.value.userOptions.useCursorPointer), Yn = g(() => o({
339
+ defaultConfig: {
340
+ userOptions: { show: !1 },
341
+ useCssAnimation: !1,
342
+ table: { show: !1 },
343
+ tooltip: { show: !1 },
344
+ style: { chart: {
345
+ backgroundColor: "#99999930",
346
+ bars: {
347
+ totalValues: { show: !1 },
348
+ dataLabels: { show: !1 }
349
+ },
350
+ grid: {
351
+ frame: { stroke: "#6A6A6A" },
352
+ scale: {
353
+ scaleMin: 0,
354
+ scaleMax: 40
355
+ },
356
+ x: {
357
+ axisColor: "#6A6A6A",
358
+ linesColor: "#6A6A6A",
359
+ axisName: { show: !1 },
360
+ timeLabels: { show: !1 }
361
+ },
362
+ y: {
363
+ axisColor: "#6A6A6A",
364
+ linesColor: "#6A6A6A",
365
+ axisName: { show: !1 },
366
+ axisLabels: { show: !1 }
367
+ }
368
+ },
369
+ legend: { backgroundColor: "transparent" },
370
+ padding: {
371
+ left: 24,
372
+ right: 24,
373
+ bottom: 12
374
+ },
375
+ zoom: {
376
+ show: !1,
377
+ startIndex: null,
378
+ endIndex: null
379
+ }
380
+ } }
381
+ },
382
+ userConfig: R.value.skeletonConfig ?? {}
383
+ })), { loading: Xn, FINAL_DATASET: Zn, manualLoading: Qn } = xe({
384
+ ...tt(j),
385
+ FINAL_CONFIG: R,
386
+ prepareConfig: ar,
387
+ callback: () => {
388
+ Promise.resolve().then(async () => {
389
+ (!R.value.style.chart.zoom.keepState || !Ki.value || J.value.start === 0 && J.value.end === 0) && await qi();
390
+ });
391
+ },
392
+ skeletonDataset: j.config?.skeletonDataset ?? [{
393
+ name: "",
394
+ series: [
395
+ 2,
396
+ 3,
397
+ 5,
398
+ 8,
399
+ 13,
400
+ 21
401
+ ],
402
+ color: "#BABABA"
403
+ }, {
404
+ name: "",
405
+ series: [
406
+ 1,
407
+ 2,
408
+ 3,
409
+ 5,
410
+ 8,
411
+ 13
412
+ ],
413
+ color: "#CACACA"
414
+ }],
415
+ skeletonConfig: o({
416
+ defaultConfig: R.value,
417
+ userConfig: Yn.value
418
+ })
419
+ }), { userOptionsVisible: $n, setUserOptionsVisibility: er, keepUserOptionState: tr } = ze({ config: R.value }), { svgRef: nr } = Be({ config: R.value.style.chart.title });
420
+ function rr() {
421
+ er(!0);
422
+ }
423
+ function ir() {
424
+ er(!1), M("selectX", {
425
+ index: null,
426
+ indexLabel: null,
427
+ dataset: null
428
+ }), I.value = null, L.value = null, mn.value = !1;
429
+ }
430
+ function ar() {
431
+ let e = we({
432
+ userConfig: j.config,
433
+ defaultConfig: ln
434
+ }), t = {}, n = e.theme;
435
+ if (n) if (!un.value(e)) dn(e), t = e;
436
+ else {
437
+ let r = we({
438
+ userConfig: He[n] || j.config,
439
+ defaultConfig: e
440
+ });
441
+ t = {
442
+ ...we({
443
+ userConfig: j.config,
444
+ defaultConfig: r
445
+ }),
446
+ customPalette: e.customPalette.length ? e.customPalette : c[n] || u
447
+ };
448
+ }
449
+ else t = e;
450
+ return t;
451
+ }
452
+ let or = g(() => R.value.style.chart.bars.dataLabels.hideUnderValue != null), sr = g(() => R.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
453
+ rt(() => j.config, (e) => {
454
+ Xn.value || (R.value = ar()), $n.value = !R.value.userOptions.showOnChartHover, gr({ resetSlicer: !R.value.style.chart.zoom.keepState }), wn.value += 1, Tn.value += 1, En.value += 1, V.value.dataLabels.show = R.value.style.chart.bars.dataLabels.show, V.value.showTable = R.value.table.show, V.value.showTooltip = R.value.style.chart.tooltip.show, Gn(), !R.value.style.chart.zoom.keepState || !Ki.value || J.value.start === 0 && J.value.end === 0 ? qi() : Mr();
455
+ }, { deep: !0 }), rt(() => j.dataset, (e) => {
456
+ Array.isArray(e) && e.length > 0 && (Qn.value = !1), Gn(), R.value.style.chart.zoom.keepState ? Mr() : Fr();
457
+ }, { deep: !0 });
458
+ let V = T({
459
+ dataLabels: { show: R.value.style.chart.bars.dataLabels.show },
460
+ showTable: R.value.table.show,
461
+ showTooltip: R.value.style.chart.tooltip.show
462
+ });
463
+ rt(R, () => {
464
+ V.value = {
465
+ dataLabels: { show: R.value.style.chart.bars.dataLabels.show },
466
+ showTable: R.value.table.show,
467
+ showTooltip: R.value.style.chart.tooltip.show
468
+ };
469
+ }, { immediate: !0 });
470
+ let { isPrinting: cr, isImaging: lr, generatePdf: ur, generateImage: dr } = be({
471
+ elementId: `stackbar_${P.value}`,
472
+ fileName: R.value.style.chart.title.text || "vue-ui-stackbar",
473
+ options: R.value.userOptions.print
474
+ }), H = T({
475
+ width: R.value.style.chart.width,
476
+ height: R.value.style.chart.height,
477
+ paddingRatio: {
478
+ top: R.value.style.chart.padding.top / R.value.style.chart.height,
479
+ right: R.value.style.chart.padding.right / R.value.style.chart.width,
480
+ bottom: R.value.style.chart.padding.bottom / R.value.style.chart.height,
481
+ left: R.value.style.chart.padding.left / R.value.style.chart.width
482
+ }
483
+ }), fr = g(() => fe(R.value.customPalette)), U = et(null), pr = et(null), mr = T(null), hr = g(() => !!R.value.debug);
484
+ function gr({ resetSlicer: e = !0 } = {}) {
485
+ if (ie(j.dataset) ? (ue({
486
+ componentName: "VueUiStackbar",
487
+ type: "dataset",
488
+ debug: hr.value
489
+ }), Qn.value = !0) : j.dataset.forEach((e, t) => {
490
+ oe({
491
+ datasetObject: e,
492
+ requiredAttributes: ["name", "series"]
493
+ }).forEach((e) => {
494
+ pn.value = !1, ue({
495
+ componentName: "VueUiStackbar",
496
+ type: "datasetSerieAttribute",
497
+ property: e,
498
+ index: t,
499
+ debug: hr.value
500
+ }), Qn.value = !0;
501
+ });
502
+ }), ie(j.dataset) || (Qn.value = R.value.loading), setTimeout(() => {
503
+ Cn.value = !0;
504
+ }, 10), R.value.responsive) {
505
+ let e = Ne(() => {
506
+ Cn.value = !1;
507
+ let { width: e, height: t } = Pe({
508
+ chart: N.value,
509
+ title: R.value.style.chart.title.text ? vn.value : null,
510
+ legend: R.value.style.chart.legend.show ? yn.value : null,
511
+ slicer: R.value.style.chart.zoom.show && q.value > 6 ? bn.value.$el : null,
512
+ source: xn.value
513
+ });
514
+ requestAnimationFrame(() => {
515
+ H.value.width = e, H.value.height = t - 12, clearTimeout(mr.value), mr.value = setTimeout(() => {
516
+ Cn.value = !0;
517
+ }, 10);
518
+ });
519
+ });
520
+ U.value && (pr.value && U.value.unobserve(pr.value), U.value.disconnect()), U.value = new ResizeObserver(e), pr.value = N.value.parentNode, U.value.observe(pr.value);
521
+ }
522
+ qn(), e && qi();
523
+ }
524
+ Ze(() => {
525
+ Wn.stop(), U.value && (pr.value && U.value.unobserve(pr.value), U.value.disconnect());
526
+ });
527
+ let W = g(() => R.value.style.chart.grid.y.position === "right");
528
+ function _r() {
529
+ let e = 0;
530
+ R.value.orientation === "vertical" && Pn.value && (e = Array.from(Pn.value.querySelectorAll("text")).reduce((e, t) => {
531
+ let n = t.getComputedTextLength();
532
+ return n > e ? n : e;
533
+ }, 0)), R.value.orientation === "horizontal" && Fn.value && (e = Array.from(Fn.value.querySelectorAll("text")).reduce((e, t) => {
534
+ let n = t.getComputedTextLength();
535
+ return n > e ? n : e;
536
+ }, 0));
537
+ let t = Nn.value ? Nn.value.getBoundingClientRect().width + R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX : 0;
538
+ return {
539
+ left: W.value ? 0 : e + t,
540
+ right: W.value ? e + t : 0,
541
+ scaleLabelsWidth: e,
542
+ yAxisLabelWidth: t
543
+ };
544
+ }
545
+ let vr = T(0), yr = T(0), br = Ne((e) => {
546
+ yr.value = e + R.value.style.chart.bars.totalValues.fontSize;
547
+ }, 100);
548
+ function xr() {
549
+ if (R.value.orientation !== "horizontal") return 0;
550
+ let e = Ln.value;
551
+ if (!e) return 0;
552
+ let t = Array.from(e.querySelectorAll("text"));
553
+ if (!t.length) return 0;
554
+ let n = -Infinity;
555
+ for (let e of t) try {
556
+ let t = e.getBBox(), r = t.x + t.width;
557
+ r > n && (n = r);
558
+ } catch {}
559
+ return Math.max(0, n - (G.value?.right ?? 0));
560
+ }
561
+ it((e) => {
562
+ if (R.value.orientation !== "horizontal") return;
563
+ let t = Ln.value;
564
+ if (!t) return;
565
+ let n = () => {
566
+ let e = xr();
567
+ br(e);
568
+ };
569
+ n();
570
+ let r = new ResizeObserver(n);
571
+ r.observe(t);
572
+ let a = new MutationObserver(n);
573
+ a.observe(t, {
574
+ childList: !0,
575
+ subtree: !0,
576
+ characterData: !0
577
+ }), e(() => {
578
+ r.disconnect(), a.disconnect();
579
+ });
580
+ }), Ze(() => {
581
+ vr.value = 0, yr.value = 0;
582
+ });
583
+ let Sr = T(0), Cr = T(0);
584
+ function wr(e) {
585
+ let t = Number.isFinite(e) ? e : 0;
586
+ Sr.value !== t && (Sr.value = t);
587
+ }
588
+ function Tr() {
589
+ let e = R.value.orientation === "vertical" ? Fn.value : Pn.value;
590
+ if (!e) {
591
+ wr(0);
592
+ return;
593
+ }
594
+ try {
595
+ wr(e.getBBox()?.height);
596
+ } catch {
597
+ wr(0);
598
+ }
599
+ }
600
+ function Er() {
601
+ Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(() => {
602
+ requestAnimationFrame(() => {
603
+ Tr();
604
+ });
605
+ });
606
+ }
607
+ Ze(() => {
608
+ Cr.value && cancelAnimationFrame(Cr.value);
609
+ });
610
+ let Dr = g(() => {
611
+ let e = 0;
612
+ if (Mn.value) try {
613
+ e = Mn.value.getBBox().height;
614
+ } catch {
615
+ e = 0;
616
+ }
617
+ let t = R.value.style.chart.grid.x.timeLabels.show ? Sr.value : 0;
618
+ return e + t;
619
+ }), G = g(() => {
620
+ Bn.value;
621
+ let { height: e, width: t } = H.value, { right: n } = H.value.paddingRatio, r = R.value.style.chart.bars.totalValues.show && j.dataset && j.dataset.length > 1 ? R.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
622
+ if (R.value.style.chart.grid.y.axisLabels.show) {
623
+ let e = _r();
624
+ a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
625
+ }
626
+ let l = R.value.style.chart.padding.top + r, u = t - t * n - yr.value - o, d = e - R.value.style.chart.padding.bottom - Dr.value - r, f = R.value.style.chart.padding.left + a, p = t - f - t * n - yr.value - o, ee = e - l - R.value.style.chart.padding.bottom - Dr.value - r;
627
+ return {
628
+ chartHeight: e,
629
+ chartWidth: t,
630
+ top: l,
631
+ right: u,
632
+ bottom: d,
633
+ left: f,
634
+ width: Math.max(0, p),
635
+ height: Math.max(0, ee),
636
+ offsetLeft: a,
637
+ offsetRightAxis: o,
638
+ scaleLabelsWidth: s,
639
+ yAxisLabelWidth: c
640
+ };
641
+ }), Or = g(() => {
642
+ let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
643
+ fill: R.value.style.chart.zoom.preview.fill,
644
+ stroke: R.value.style.chart.zoom.preview.stroke,
645
+ "stroke-width": R.value.style.chart.zoom.preview.strokeWidth,
646
+ "stroke-dasharray": R.value.style.chart.zoom.preview.strokeDasharray,
647
+ "stroke-linecap": "round",
648
+ "stroke-linejoin": "round",
649
+ style: {
650
+ pointerEvents: "none",
651
+ transition: "none !important",
652
+ animation: "none !important"
653
+ }
654
+ };
655
+ if (R.value.orientation === "horizontal") {
656
+ let a = r / s;
657
+ return {
658
+ x: e,
659
+ y: t + c * a,
660
+ width: n,
661
+ height: u * a,
662
+ ...d
663
+ };
664
+ } else {
665
+ let a = n / s;
666
+ return {
667
+ x: e + c * a,
668
+ y: t,
669
+ width: u * a,
670
+ height: r,
671
+ ...d
672
+ };
673
+ }
674
+ }), K = g(() => Zn.value.map((e, t) => {
675
+ let n = se(), r = String(e.key ?? e.id ?? e.name ?? n), a = d(e.color) || fr.value[t] || u[t] || u[t % u.length];
676
+ return {
677
+ ...e,
678
+ datasetKey: r,
679
+ series: JSON.parse(JSON.stringify(e.series)).map((e) => R.value.style.chart.bars.distributed ? Math.abs(e) : e),
680
+ signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
681
+ absoluteIndex: t,
682
+ id: n,
683
+ color: a
684
+ };
685
+ })), q = g(() => {
686
+ let e = Math.max(...K.value.filter((e) => !F.value.includes(e.id)).map((e) => e.series.length));
687
+ return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
688
+ });
689
+ function kr(e) {
690
+ Jn.value = e;
691
+ }
692
+ let J = T({
693
+ start: 0,
694
+ end: Math.max(...Zn.value.map((e) => e.series.length))
695
+ }), Y = T({
696
+ start: 0,
697
+ end: Math.max(...Zn.value.map((e) => e.series.length))
698
+ }), Ar = g(() => R.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
699
+ function jr(e, t) {
700
+ Y.value[e] = t;
701
+ }
702
+ function Mr() {
703
+ let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
704
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, bn.value && (bn.value.setStartValue(t), bn.value.setEndValue(n));
705
+ }
706
+ let Nr = T(null);
707
+ function Pr() {
708
+ return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
709
+ }
710
+ Ze(() => {
711
+ Nr.value && cancelAnimationFrame(Nr.value);
712
+ });
713
+ async function Fr({ force: e = !1 } = {}) {
714
+ if (R.value.style.chart.zoom.keepState && !e && Ki.value && !(J.value.start === 0 && J.value.end === 0)) {
715
+ Mr();
716
+ return;
717
+ }
718
+ qi(), await Xe(), Nr.value && cancelAnimationFrame(Nr.value), Nr.value = requestAnimationFrame(async () => {
719
+ await Pr(), qi();
720
+ });
721
+ }
722
+ let X = g(() => {
723
+ let e;
724
+ return e = R.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
725
+ }), Ir = g(() => f(K.value.filter((e) => !F.value.includes(e.id))).slice(J.value.start, J.value.end)), Lr = g(() => F.value.length === K.value.length), Rr = g(() => R.value.style.chart.zoom.minimap.show ? f(K.value.map((e) => ({
726
+ ...e,
727
+ series: e.series.map((e) => e ?? 0)
728
+ })).filter((e) => Lr.value ? !0 : !F.value.includes(e.id))) : []), zr = g(() => R.value.style.chart.zoom.minimap.show ? [{
729
+ name: "",
730
+ series: Rr.value,
731
+ color: "#000000",
732
+ isVisible: !0
733
+ }] : []), Br = g(() => f(K.value.filter((e) => !F.value.includes(e.id)).map((e) => ({
734
+ ...e,
735
+ series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
736
+ }))).slice(J.value.start, J.value.end)), Vr = g(() => {
737
+ let e = K.value.filter((e) => !F.value.includes(e.id));
738
+ return {
739
+ positive: f(e.map((e) => ({
740
+ ...e,
741
+ series: e.series.slice(J.value.start, J.value.end).map((e) => e >= 0 ? e : 0)
742
+ }))),
743
+ negative: f(e.map((e) => ({
744
+ ...e,
745
+ series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
746
+ })))
747
+ };
748
+ }), Hr = g(() => {
749
+ let e = R.value.style.chart.grid.scale.scaleMax !== null && !R.value.style.chart.bars.distributed ? R.value.style.chart.grid.scale.scaleMax : Math.max(...Vr.value.positive), t = Math.min(...Vr.value.negative), n = R.value.style.chart.grid.scale.scaleMin !== null && !R.value.style.chart.bars.distributed ? R.value.style.chart.grid.scale.scaleMin : [
750
+ -Infinity,
751
+ Infinity,
752
+ NaN,
753
+ void 0,
754
+ null
755
+ ].includes(t) ? 0 : t;
756
+ return !R.value.style.chart.bars.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? de(n > 0 ? 0 : n, e < 0 ? 0 : e, R.value.style.chart.grid.scale.ticks) : ee(n > 0 ? 0 : n, e < 0 ? 0 : e, R.value.style.chart.grid.scale.ticks);
757
+ }), Ur = g(() => Hr.value.ticks), Z = g(() => {
758
+ let e = Hr.value, t = e.max + Math.abs(e.min);
759
+ return Ur.value.map((n) => ({
760
+ zero: G.value.bottom - G.value.height * (Math.abs(e.min) / t),
761
+ y: G.value.bottom - G.value.height * ((n + Math.abs(e.min)) / t),
762
+ x: W.value ? G.value.right + 8 : G.value.left - 8,
763
+ horizontal_zero: G.value.left + G.value.width * (Math.abs(e.min) / t),
764
+ horizontal_x: G.value.left + G.value.width * ((n + Math.abs(e.min)) / t),
765
+ horizontal_y: G.value.bottom - 8,
766
+ value: n
767
+ }));
768
+ }), Wr = g(() => {
769
+ let e = R.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = R.value.style.chart.bars.dataLabels;
770
+ return Ur.value.map((r) => String(m(e.formatter, r, p({
771
+ p: t,
772
+ v: r,
773
+ s: n,
774
+ r: e.rounding
775
+ }), { datapoint: { value: r } }) ?? "")).join("|");
776
+ });
777
+ rt(() => [
778
+ Wr.value,
779
+ R.value.orientation,
780
+ R.value.style.chart.grid.y.axisLabels.show,
781
+ R.value.style.chart.grid.y.axisLabels.fontSize,
782
+ R.value.style.chart.grid.y.axisLabels.bold,
783
+ R.value.style.chart.grid.y.position
784
+ ], () => {
785
+ R.value.style.chart.grid.y.axisLabels.show && qn();
786
+ }, { flush: "post" });
787
+ let Q = T([]), Gr = T([]), Kr = 0;
788
+ it(() => {
789
+ let e = ++Kr;
790
+ (async () => {
791
+ let t = await ve({
792
+ values: R.value.style.chart.grid.x.timeLabels.values,
793
+ maxDatapoints: q.value,
794
+ formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
795
+ start: J.value.start,
796
+ end: J.value.end
797
+ });
798
+ e === Kr && (Q.value = t);
799
+ })();
800
+ });
801
+ let qr = 0;
802
+ it(() => {
803
+ let e = ++qr;
804
+ (async () => {
805
+ let t = await ve({
806
+ values: R.value.style.chart.grid.x.timeLabels.values,
807
+ maxDatapoints: q.value,
808
+ formatter: R.value.style.chart.grid.x.timeLabels.datetimeFormatter,
809
+ start: 0,
810
+ end: q.value
811
+ });
812
+ e === qr && (Gr.value = t);
813
+ })();
814
+ });
815
+ let Jr = g(() => {
816
+ let e = R.value.style.chart.grid.x.timeLabels.modulo;
817
+ return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
818
+ }), Yr = g(() => {
819
+ let e = R.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = Gr.value || [], r = J.value.start ?? 0, a = I.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
820
+ return te(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Jr.value || 1), s, c, r, a, o);
821
+ });
822
+ it(() => {
823
+ R.value.orientation, R.value.style.chart.grid.x.timeLabels.show, R.value.style.chart.grid.x.timeLabels.fontSize, R.value.style.chart.grid.x.timeLabels.rotation, R.value.style.chart.grid.x.timeLabels.offsetY, Yr.value?.map((e) => e?.text ?? "").join("|"), Wr.value, H.value.width, H.value.height, Fn.value, Pn.value, Mn.value, Er();
824
+ }, { flush: "post" });
825
+ let Xr = T({
826
+ months: [],
827
+ shortMonths: [],
828
+ days: [],
829
+ shortDays: []
830
+ }), Zr = 0;
831
+ it(() => {
832
+ let e = ++Zr, t = R.value.style.chart.grid.x.timeLabels.datetimeFormatter;
833
+ (async () => {
834
+ let n = await _e(t.locale).catch(() => _e("en"));
835
+ e === Zr && (Xr.value = n.data);
836
+ })();
837
+ });
838
+ let Qr = g(() => {
839
+ let e = R.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = ge({
840
+ useUTC: e.useUTC,
841
+ locale: Xr.value,
842
+ januaryAsYear: e.januaryAsYear
843
+ });
844
+ return (e, n) => {
845
+ let r = R.value.style.chart.grid.x.timeLabels.values?.[e];
846
+ return r == null ? "" : t.formatDate(new Date(r), n);
847
+ };
848
+ }), $r = g(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
849
+ text: Qr.value(t, R.value.style.chart.zoom.timeFormat),
850
+ absoluteIndex: t
851
+ }))), ei = g(() => (R.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
852
+ text: Qr.value(t, R.value.style.chart.tooltip.timeFormat),
853
+ absoluteIndex: t
854
+ }))), ti = g(() => {
855
+ let e = /* @__PURE__ */ new Map();
856
+ return (R.value.style.chart.grid.x.timeLabels.values || []).forEach((t) => {
857
+ if ([
858
+ null,
859
+ void 0,
860
+ ""
861
+ ].includes(t)) return;
862
+ let n = String(t);
863
+ e.set(n, (e.get(n) || 0) + 1);
864
+ }), e;
865
+ });
866
+ function ni(e) {
867
+ let t = (R.value.style.chart.grid.x.timeLabels.values || [])[e];
868
+ if ([
869
+ null,
870
+ void 0,
871
+ ""
872
+ ].includes(t)) return `fallback-${e}`;
873
+ let n = String(t);
874
+ return (ti.value.get(n) || 0) > 1 ? `${n}-${e}` : n;
875
+ }
876
+ function ri(e, t) {
877
+ return `${e.datasetKey}:${ni(t)}`;
878
+ }
879
+ let $ = g(() => {
880
+ if (!pn.value && !Xn.value) return [];
881
+ let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Vr.value.positive) || 0, o = Math.min(...Vr.value.negative), s = [
882
+ -Infinity,
883
+ Infinity,
884
+ NaN,
885
+ void 0,
886
+ null
887
+ ].includes(o) ? 0 : o, { min: c, max: l } = !R.value.style.chart.bars.distributed && (R.value.style.chart.grid.scale.scaleMax !== null || R.value.style.chart.grid.scale.scaleMin !== null) ? de(R.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks) : ee(R.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : R.value.style.chart.grid.scale.scaleMin, R.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : R.value.style.chart.grid.scale.scaleMax, R.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, te = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, ne = Array(Rr.value.length).fill(0), re = Array(Rr.value.length).fill(0);
888
+ return K.value.filter((e) => !F.value.includes(e.id)).map((a) => {
889
+ let o = a.series.slice(), s = o.map((e, t) => ne[t]), c = o.map((e, t) => re[t]);
890
+ o.forEach((e, t) => {
891
+ (Number(e) || 0) >= 0 ? ne[t] += Number(e) || 0 : re[t] += Math.abs(Number(e) || 0);
892
+ });
893
+ let l = a.series.slice(J.value.start, J.value.end), ee = a.signedSeries.slice(J.value.start, J.value.end), m = l.map((e, t) => ri(a, J.value.start + t)), ie = o.map((e, t) => ri(a, t)), ae = l.map((e, t) => G.value.left + X.value * t + X.value * R.value.style.chart.bars.gapRatio / 4), oe = (Rr.value || []).filter(Number.isFinite), se = oe.length ? Math.max(...oe) : 0, ce = oe.length ? Math.min(...oe) : 0;
894
+ function le({ minimapH: e }) {
895
+ let t = 1e-9, n = se > 0;
896
+ if (n && ce < 0) {
897
+ let n = Math.max(se, Math.abs(ce)) || t;
898
+ return {
899
+ pxPerUnit: e / 2 / n,
900
+ zero: e / 2
901
+ };
902
+ }
903
+ return n ? {
904
+ pxPerUnit: e / Math.max(t, se),
905
+ zero: e
906
+ } : {
907
+ pxPerUnit: e / Math.max(t, Math.abs(ce)),
908
+ zero: 0
909
+ };
910
+ }
911
+ let ue = ({ left: e, unitW: t }) => {
912
+ let n = t * (R.value.style.chart.bars.gapRatio / 4);
913
+ return o.map((r, a) => e + t * a + n);
914
+ }, de = l.map((e, t) => G.value.top + X.value * t + X.value * R.value.style.chart.bars.gapRatio / 4), fe = l.map((t, r) => {
915
+ let a = R.value.style.chart.bars.distributed ? (t || 0) / Ir.value[r] : (t || 0) / u, o, s;
916
+ return t > 0 ? (s = d * a, o = p - s - e[r], e[r] += s) : (s = d * a, o = p + n[r], n[r] += Math.abs(s)), o;
917
+ }), pe = ({ minimapH: e }) => {
918
+ if (R.value.style.chart.bars.distributed) return o.map((t, n) => {
919
+ let r = Math.abs(Number(t) || 0), a = Math.abs(Rr.value?.[n] || 0) || 1e-9;
920
+ return e - (s[n] + r) / a * e;
921
+ });
922
+ let { pxPerUnit: t, zero: n } = le({ minimapH: e });
923
+ return o.map((e, r) => {
924
+ let a = Number(e) || 0;
925
+ return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
926
+ });
927
+ }, me = l.map((e, n) => {
928
+ let a = R.value.style.chart.bars.distributed ? (e || 0) / Ir.value[n] : (e || 0) / u, o, s;
929
+ return e > 0 ? (s = f * a, o = te + t[n], t[n] += s) : (s = f * a, o = te - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
930
+ }), he = l.map((e, t) => {
931
+ let n = R.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / u;
932
+ return e > 0 ? d * n : d * Math.abs(n);
933
+ }), ge = ({ minimapH: e }) => {
934
+ if (R.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Rr.value?.[n] || 0) || 1e-9) * e);
935
+ let { pxPerUnit: t } = le({ minimapH: e });
936
+ return o.map((e) => Math.abs(Number(e) || 0) * t);
937
+ }, _e = l.map((e, t) => {
938
+ let n = R.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / u;
939
+ return e > 0 ? f * n : f * Math.abs(n);
940
+ }), ve = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
941
+ return {
942
+ ...a,
943
+ proportions: l.map((e, t) => R.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / ve),
944
+ series: l,
945
+ signedSeries: ee,
946
+ rectKeys: m,
947
+ minimapRectKeys: ie,
948
+ x: ae,
949
+ y: fe,
950
+ height: he,
951
+ horizontal_width: _e,
952
+ horizontal_y: de,
953
+ horizontal_x: me,
954
+ xMinimap: ue,
955
+ yMinimap: pe,
956
+ heightMinimap: ge
957
+ };
958
+ });
959
+ }), ii = g(() => Br.value.map((e, t) => ({
960
+ value: e,
961
+ sign: e >= 0 ? 1 : -1
962
+ })));
963
+ function ai(e, t, n, r, a) {
964
+ let o = a === -1 && e >= 0 ? -e : e;
965
+ return m(R.value.style.chart.bars.dataLabels.formatter, o, p({
966
+ p: R.value.style.chart.bars.dataLabels.prefix,
967
+ v: o,
968
+ s: R.value.style.chart.bars.dataLabels.suffix,
969
+ r: R.value.style.chart.bars.dataLabels.rounding
970
+ }), {
971
+ datapoint: t,
972
+ seriesIndex: n,
973
+ datapointIndex: r
974
+ });
975
+ }
976
+ function oi(e, t, n, r) {
977
+ return m(R.value.style.chart.bars.dataLabels.formatter, e, p({
978
+ v: isNaN(e) ? 0 : e,
979
+ s: "%",
980
+ r: R.value.style.chart.bars.dataLabels.rounding
981
+ }), {
982
+ datapoint: t,
983
+ seriesIndex: n,
984
+ datapointIndex: r
985
+ });
986
+ }
987
+ function si(e) {
988
+ let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
989
+ name: t.name,
990
+ value: t.series[e] === 0 ? 0 : t.series[e] || null,
991
+ proportion: t.proportions[e] || null,
992
+ color: t.color,
993
+ id: t.id
994
+ }));
995
+ R.value.events.datapointClick && R.value.events.datapointClick({
996
+ datapoint: t,
997
+ seriesIndex: e + J.value.start
998
+ }), M("selectDatapoint", {
999
+ datapoint: t,
1000
+ period: Q.value[e]
1001
+ });
1002
+ }
1003
+ function ci(e) {
1004
+ return JSON.parse(JSON.stringify($.value)).map((t) => ({
1005
+ name: t.name,
1006
+ absoluteIndex: t.absoluteIndex,
1007
+ value: t.series[e] === 0 ? 0 : (t.signedSeries[e] === -1 && t.series[e] >= 0 ? -t.series[e] : t.series[e]) || null,
1008
+ proportion: t.proportions[e] || null,
1009
+ color: t.color,
1010
+ id: t.id,
1011
+ timeLabel: Gr.value[e]
1012
+ }));
1013
+ }
1014
+ function li(e) {
1015
+ if (R.value.events.datapointLeave) {
1016
+ let t = ci(e);
1017
+ R.value.events.datapointLeave({
1018
+ datapoint: t,
1019
+ seriesIndex: e + J.value.start
1020
+ });
1021
+ }
1022
+ mn.value = !1, I.value = null, L.value === e && (L.value = null);
1023
+ }
1024
+ let ui = g(() => Array(q.value).fill(0).map((e, t) => ci(t)));
1025
+ rt(() => j.selectedXIndex, (e) => {
1026
+ if ([null, void 0].includes(j.selectedXIndex)) {
1027
+ I.value = null;
1028
+ return;
1029
+ }
1030
+ let t = e - J.value.start;
1031
+ t < 0 || e >= J.value.end ? I.value = null : I.value = t ?? null;
1032
+ }, { immediate: !0 });
1033
+ function di(e) {
1034
+ if (!R.value.style.chart.tooltip.showTimeLabel) return null;
1035
+ let t = Q.value?.[e]?.text || null, n = ei.value?.[e]?.text || null, r = Gr.value?.[e]?.text || null;
1036
+ return R.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1037
+ }
1038
+ function fi(e, t = "pointer") {
1039
+ if (Lr.value) return;
1040
+ Un.value = t, L.value = e, I.value = e, mn.value = !0;
1041
+ let n = R.value.style.chart.tooltip.customFormat, r = ci(e);
1042
+ Zi({
1043
+ seriesIndex: e,
1044
+ datapoint: r
1045
+ }), R.value.events.datapointEnter && R.value.events.datapointEnter({
1046
+ datapoint: r,
1047
+ seriesIndex: e + J.value.start
1048
+ }), hn.value = {
1049
+ timeLabel: di(e),
1050
+ datapoint: r,
1051
+ seriesIndex: e,
1052
+ config: R.value,
1053
+ series: $.value
1054
+ };
1055
+ let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), o = r.map((e) => ae(e.value)).reduce((e, t) => e + t, 0);
1056
+ if (pe(n) && ne(() => n({
1057
+ seriesIndex: e,
1058
+ datapoint: r,
1059
+ series: $.value,
1060
+ config: R.value
1061
+ }))) gn.value = n({
1062
+ seriesIndex: e,
1063
+ datapoint: r,
1064
+ series: $.value,
1065
+ config: R.value
1066
+ });
1067
+ else {
1068
+ let { showValue: t, showTotal: n, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: d } = R.value.style.chart.tooltip, f = "", ee = di(e);
1069
+ ee && (f += `<div style="width:100%;text-align:center;border-bottom:1px solid ${l};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), n && (f += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1070
+ <span>${s}:</span>
1071
+ <span>
1072
+ ${m(R.value.style.chart.bars.dataLabels.formatter, o, p({
1073
+ p: R.value.style.chart.bars.dataLabels.prefix,
1074
+ v: o,
1075
+ s: R.value.style.chart.bars.dataLabels.suffix,
1076
+ r: u
1077
+ }), { datapoint: {
1078
+ name: s,
1079
+ value: o
1080
+ } })}
1081
+ </span>
1082
+ </div>`);
1083
+ let te = [t && c ? "(" : "", t && c ? ")" : ""];
1084
+ r.reverse().forEach((e) => {
1085
+ f += `
1086
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1087
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${R.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${fn.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${P.value}_${e.absoluteIndex})"/>` : ""}</svg>
1088
+ ${e.name}${t || c ? ":" : ""} ${t ? m(R.value.style.chart.bars.dataLabels.formatter, e.value, p({
1089
+ p: R.value.style.chart.bars.dataLabels.prefix,
1090
+ v: e.value,
1091
+ s: R.value.style.chart.bars.dataLabels.suffix,
1092
+ r: u
1093
+ }, { datapoint: e })) : ""} ${te[0]}${c ? p({
1094
+ v: isNaN(e.value / a) ? 0 : Math.abs(e.value) / a * 100,
1095
+ s: "%",
1096
+ r: d
1097
+ }) : ""}${te[1]}
1098
+ </div>
1099
+ `;
1100
+ }), gn.value = `<div>${f}</div>`;
1101
+ }
1102
+ }
1103
+ let pi = g(() => H.value.width), mi = g(() => H.value.height);
1104
+ Oe({
1105
+ timeLabelsEls: R.value.orientation === "vertical" ? Fn : Pn,
1106
+ timeLabels: Q,
1107
+ slicer: J,
1108
+ configRef: R,
1109
+ rotationPath: [
1110
+ "style",
1111
+ "chart",
1112
+ "grid",
1113
+ "x",
1114
+ "timeLabels",
1115
+ "rotation"
1116
+ ],
1117
+ autoRotatePath: [
1118
+ "style",
1119
+ "chart",
1120
+ "grid",
1121
+ "x",
1122
+ "timeLabels",
1123
+ "autoRotate",
1124
+ "enable"
1125
+ ],
1126
+ isAutoSize: !1,
1127
+ width: pi,
1128
+ height: mi,
1129
+ rotation: R.value.style.chart.grid.x.timeLabels.autoRotate.angle
1130
+ });
1131
+ function hi(e) {
1132
+ Sn.value = e, _n.value += 1;
1133
+ }
1134
+ function gi() {
1135
+ V.value.showTable = !V.value.showTable;
1136
+ }
1137
+ function _i() {
1138
+ V.value.dataLabels.show = !V.value.dataLabels.show;
1139
+ }
1140
+ function vi() {
1141
+ V.value.showTooltip = !V.value.showTooltip;
1142
+ }
1143
+ function yi() {
1144
+ return $.value;
1145
+ }
1146
+ let bi = g(() => {
1147
+ if ($.value.length === 0) return {
1148
+ head: [],
1149
+ body: [],
1150
+ config: {},
1151
+ columnNames: []
1152
+ };
1153
+ let e = $.value.map(({ name: e, color: t }) => ({
1154
+ label: e,
1155
+ color: t
1156
+ })), t = [];
1157
+ return Q.value.forEach((e) => {
1158
+ let n = [R.value.style.chart.grid.x.timeLabels.values[e.absoluteIndex] ? e.text : i + 1];
1159
+ K.value.forEach((t) => {
1160
+ n.push(Number((t.series[e.absoluteIndex] || 0).toFixed(R.value.table.td.roundingValue)));
1161
+ }), t.push(n);
1162
+ }), {
1163
+ head: e,
1164
+ body: t
1165
+ };
1166
+ });
1167
+ function xi(e = null) {
1168
+ let r = [
1169
+ [R.value.style.chart.title.text],
1170
+ [R.value.style.chart.title.subtitle.text],
1171
+ [""]
1172
+ ], a = ["", ...bi.value.head.map((e) => e.label)], o = bi.value.body, s = n(r.concat([a]).concat(o));
1173
+ e ? e(s) : t({
1174
+ csvContent: s,
1175
+ title: R.value.style.chart.title.text || "vue-ui-stackbar"
1176
+ });
1177
+ }
1178
+ let Si = g(() => {
1179
+ let e = [""].concat($.value.map((e) => e.name), " <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>"), t = [], n = J.value.end - J.value.start;
1180
+ for (let e = 0; e < n; e += 1) {
1181
+ let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
1182
+ t.push([R.value.style.chart.grid.x.timeLabels.values[n] && Q.value[e]?.text || n + 1].concat($.value.map((t) => (t.series[e] ?? 0).toFixed(R.value.table.td.roundingValue)), (r ?? 0).toFixed(R.value.table.td.roundingValue)));
1183
+ }
1184
+ let r = {
1185
+ th: {
1186
+ backgroundColor: R.value.table.th.backgroundColor,
1187
+ color: R.value.table.th.color,
1188
+ outline: R.value.table.th.outline
1189
+ },
1190
+ td: {
1191
+ backgroundColor: R.value.table.td.backgroundColor,
1192
+ color: R.value.table.td.color,
1193
+ outline: R.value.table.td.outline
1194
+ },
1195
+ breakpoint: R.value.table.responsiveBreakpoint
1196
+ }, a = [R.value.table.columnNames.period].concat($.value.map((e) => e.name), R.value.table.columnNames.total);
1197
+ return {
1198
+ head: e,
1199
+ body: t.slice(0, J.value.end - J.value.start),
1200
+ config: r,
1201
+ colNames: a
1202
+ };
1203
+ });
1204
+ function Ci() {
1205
+ F.value.length ? F.value = [] : Oi.value.forEach((e) => {
1206
+ F.value.push(e.id);
1207
+ }), M("selectLegend", $.value);
1208
+ }
1209
+ function wi(e) {
1210
+ if (F.value.includes(e.id)) F.value = F.value.filter((t) => t !== e.id);
1211
+ else {
1212
+ if (F.value.length === K.value.length - 1) return;
1213
+ F.value.push(e.id);
1214
+ }
1215
+ M("selectLegend", $.value);
1216
+ }
1217
+ function Ti(e) {
1218
+ return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiStackbar - There are no series to show."), null);
1219
+ }
1220
+ function Ei(e) {
1221
+ let t = Ti(e);
1222
+ t !== null && F.value.includes(t.id) && wi({ id: t.id });
1223
+ }
1224
+ function Di(e) {
1225
+ let t = Ti(e);
1226
+ t !== null && (F.value.includes(t.id) || wi({ id: t.id }));
1227
+ }
1228
+ let Oi = g(() => K.value.map((e, t) => ({
1229
+ ...e,
1230
+ shape: "square"
1231
+ })).map((e) => ({
1232
+ ...e,
1233
+ opacity: F.value.includes(e.id) ? .5 : 1,
1234
+ segregate: () => wi(e),
1235
+ isSegregated: F.value.includes(e.id)
1236
+ }))), ki = g(() => ({
1237
+ cy: "stackbar-legend",
1238
+ backgroundColor: R.value.style.chart.legend.backgroundColor,
1239
+ color: R.value.style.chart.legend.color,
1240
+ fontSize: R.value.style.chart.legend.fontSize,
1241
+ paddingBottom: 12,
1242
+ fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
1243
+ })), Ai = T(!1);
1244
+ function ji() {
1245
+ Ai.value = !Ai.value;
1246
+ }
1247
+ function Mi(e, t) {
1248
+ let n = JSON.parse(JSON.stringify($.value)).map((e) => ({
1249
+ name: e.name,
1250
+ value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1251
+ proportion: e.proportions[t] || null,
1252
+ color: e.color,
1253
+ id: e.id
1254
+ }));
1255
+ M("selectTimeLabel", {
1256
+ datapoint: n,
1257
+ absoluteIndex: e.absoluteIndex,
1258
+ label: e.text
1259
+ });
1260
+ }
1261
+ let Ni = g(() => Math.max(...$.value.flatMap((e) => e.series)));
1262
+ function Pi(e, t) {
1263
+ return R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ? sr.value ? t * 100 >= R.value.style.chart.bars.dataLabels.hideUnderPercentage : !R.value.style.chart.bars.dataLabels.hideEmptyPercentages || t > 0 : sr.value ? (or.value && hr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > Ni.value * R.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : or.value ? Math.abs(e) >= R.value.style.chart.bars.dataLabels.hideUnderValue : !R.value.style.chart.bars.dataLabels.hideEmptyValues || e !== 0;
1264
+ }
1265
+ async function Fi({ scale: e = 2 } = {}) {
1266
+ if (!N.value) return;
1267
+ let { imageUri: t, base64: n } = await ke({
1268
+ domElement: N.value,
1269
+ base64: !0,
1270
+ img: !0,
1271
+ scale: e
1272
+ }), r = N.value.getBoundingClientRect(), a = {
1273
+ width: r.width,
1274
+ height: r.height,
1275
+ aspectRatio: r.height ? r.width / r.height : 0
1276
+ }, o = await re(t, e) ?? a;
1277
+ return {
1278
+ imageUri: t,
1279
+ base64: n,
1280
+ title: R.value.style.chart.title.text,
1281
+ ...o
1282
+ };
1283
+ }
1284
+ let Ii = g(() => {
1285
+ let e = R.value.table.useDialog && !R.value.table.show, t = V.value.showTable;
1286
+ return {
1287
+ component: e ? cn : nn,
1288
+ title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
1289
+ props: e ? {
1290
+ backgroundColor: R.value.table.th.backgroundColor,
1291
+ color: R.value.table.th.color,
1292
+ headerColor: R.value.table.th.color,
1293
+ headerBg: R.value.table.th.backgroundColor,
1294
+ isFullscreen: Sn.value,
1295
+ fullscreenParent: N.value,
1296
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1297
+ isCursorPointer: B.value
1298
+ } : {
1299
+ hideDetails: !0,
1300
+ config: {
1301
+ open: t,
1302
+ maxHeight: 1e4,
1303
+ body: {
1304
+ backgroundColor: R.value.style.chart.backgroundColor,
1305
+ color: R.value.style.chart.color
1306
+ },
1307
+ head: {
1308
+ backgroundColor: R.value.style.chart.backgroundColor,
1309
+ color: R.value.style.chart.color
1310
+ }
1311
+ }
1312
+ }
1313
+ };
1314
+ });
1315
+ rt(() => V.value.showTable, (e) => {
1316
+ R.value.table.show || (e && R.value.table.useDialog && On.value ? On.value.open() : "close" in On.value && On.value.close());
1317
+ });
1318
+ function Li() {
1319
+ V.value.showTable = !1, kn.value && kn.value.setTableIconState(!1);
1320
+ }
1321
+ let Ri = g(() => R.value.style.chart.backgroundColor), zi = g(() => R.value.style.chart.legend), { exportSvg: Bi, getSvg: Vi } = Ce({
1322
+ svg: nr,
1323
+ title: g(() => R.value.style.chart.title),
1324
+ legend: zi,
1325
+ legendItems: Oi,
1326
+ backgroundColor: Ri
1327
+ });
1328
+ async function Hi({ isCb: e }) {
1329
+ jn.value = !0, await Xe();
1330
+ try {
1331
+ if (e) {
1332
+ let { blob: e, url: t, text: n, dataUrl: r } = await Vi();
1333
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
1334
+ blob: e,
1335
+ url: t,
1336
+ text: n,
1337
+ dataUrl: r
1338
+ }));
1339
+ } else await Promise.resolve(Bi());
1340
+ } finally {
1341
+ jn.value = !1;
1342
+ }
1343
+ }
1344
+ function Ui(e) {
1345
+ if (e?.stage === "start") {
1346
+ An.value = !0;
1347
+ return;
1348
+ }
1349
+ if (e?.stage === "end") {
1350
+ An.value = !1;
1351
+ return;
1352
+ }
1353
+ dr();
1354
+ }
1355
+ function Wi(e) {
1356
+ let t = q.value;
1357
+ return e > t ? t : e < 0 || e < J.value.start ? R.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
1358
+ }
1359
+ let Gi = T(!1), Ki = T(!1);
1360
+ function qi() {
1361
+ if (!Gi.value) {
1362
+ Gi.value = !0;
1363
+ try {
1364
+ let { startIndex: e, endIndex: t, keepState: n } = R.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
1365
+ if (n && r <= 0) return;
1366
+ let a = e ?? 0, o = t == null ? r : Math.min(Wi(t + 1), r);
1367
+ Ji.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, Mr(), Ki.value = !0;
1368
+ } finally {
1369
+ queueMicrotask(() => {
1370
+ Ji.value = !1;
1371
+ }), Gi.value = !1;
1372
+ }
1373
+ }
1374
+ }
1375
+ let Ji = T(!1);
1376
+ function Yi(e) {
1377
+ Gi.value || Ji.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Mr());
1378
+ }
1379
+ function Xi(e) {
1380
+ if (Gi.value || Ji.value) return;
1381
+ let t = Wi(e);
1382
+ t !== J.value.end && (J.value.end = t, Y.value.end = t, Mr());
1383
+ }
1384
+ function Zi({ seriesIndex: e, datapoint: t }) {
1385
+ let n = J.value.start + e;
1386
+ M("selectX", {
1387
+ dataset: t,
1388
+ index: n,
1389
+ indexLabel: R.value.style.chart.grid.x.timeLabels.values[n]
1390
+ });
1391
+ }
1392
+ function Qi() {
1393
+ return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
1394
+ }
1395
+ function $i(e) {
1396
+ let { y0: t } = Qi(), n = R.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
1397
+ for (let t of $.value || []) {
1398
+ let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
1399
+ n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
1400
+ }
1401
+ let s = (o && Number.isFinite(a) ? a : t) - r;
1402
+ return Math.min(Math.max(s, 0), G.value.bottom);
1403
+ }
1404
+ function ea(e) {
1405
+ let { x0: t } = Qi(), n = Math.max(2, R.value.style.chart.bars.totalValues.fontSize * .3 + R.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
1406
+ for (let t of $.value || []) {
1407
+ let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
1408
+ Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
1409
+ }
1410
+ return (a && Number.isFinite(r) ? r : t) + n;
1411
+ }
1412
+ async function ta() {
1413
+ if (M("copyAlt", {
1414
+ config: R.value,
1415
+ dataset: $.value
1416
+ }), !R.value.userOptions.callbacks.altCopy) {
1417
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1418
+ return;
1419
+ }
1420
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
1421
+ config: R.value,
1422
+ dataset: $.value
1423
+ }));
1424
+ }
1425
+ let na = T(!1);
1426
+ function ra() {
1427
+ L.value = null, na.value = !0;
1428
+ }
1429
+ function ia() {
1430
+ L.value = null, mn.value = !1, I.value = null, M("selectX", {
1431
+ index: null,
1432
+ indexLabel: null,
1433
+ dataset: null
1434
+ }), na.value = !1;
1435
+ }
1436
+ function aa(e) {
1437
+ if (!nr.value || Ai.value || document.activeElement !== nr.value || Lr.value || !J.value.end && J.value.end !== 0) return;
1438
+ let t = R.value.orientation === "vertical", n = R.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
1439
+ if (!r && !a && !o && !s) return;
1440
+ let c = J.value.end - J.value.start;
1441
+ if (c <= 0) return;
1442
+ if (e.preventDefault(), e.stopPropagation(), s) {
1443
+ L.value = null, mn.value = !1, I.value = null, M("selectX", {
1444
+ index: null,
1445
+ indexLabel: null,
1446
+ dataset: null
1447
+ });
1448
+ return;
1449
+ }
1450
+ if (o) {
1451
+ if (L.value === null) return;
1452
+ si(L.value);
1453
+ return;
1454
+ }
1455
+ let l = L.value, u = I.value;
1456
+ l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, L.value = l, oa(l), fi(l, "keyboard");
1457
+ }
1458
+ function oa(e) {
1459
+ if (!Number.isFinite(e)) return;
1460
+ let t, n;
1461
+ R.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
1462
+ let r = a(t, n, nr.value);
1463
+ r && (Hn.value = r);
1464
+ }
1465
+ let sa = g(() => ({
1466
+ headers: Si.value?.colNames ?? [],
1467
+ rows: Si.value?.body ?? []
1468
+ }));
1469
+ return Me({
1470
+ getData: yi,
1471
+ getImage: Fi,
1472
+ generatePdf: ur,
1473
+ generateCsv: xi,
1474
+ generateImage: dr,
1475
+ generateSvg: Hi,
1476
+ hideSeries: Di,
1477
+ showSeries: Ei,
1478
+ toggleTable: gi,
1479
+ toggleLabels: _i,
1480
+ toggleTooltip: vi,
1481
+ toggleAnnotator: ji,
1482
+ toggleFullscreen: hi,
1483
+ copyAlt: ta
1484
+ }), (t, n) => (w(), y("div", {
1485
+ id: `stackbar_${P.value}`,
1486
+ ref_key: "stackbarChart",
1487
+ ref: N,
1488
+ class: x({
1489
+ "vue-data-ui-component": !0,
1490
+ "vue-ui-stackbar": !0,
1491
+ "vue-data-ui-wrapper-fullscreen": Sn.value
1492
+ }),
1493
+ style: C(`background:${R.value.style.chart.backgroundColor};color:${R.value.style.chart.color};font-family:${R.value.style.fontFamily}; position: relative; ${R.value.responsive ? "height: 100%" : ""}`),
1494
+ onMouseenter: rr,
1495
+ onMouseleave: ir
1496
+ }, [
1497
+ We("div", {
1498
+ id: `chart-instructions-${P.value}`,
1499
+ class: "sr-only"
1500
+ }, [We("p", null, O(R.value.a11y.translations.keyboardNavigation), 1)], 8, st),
1501
+ sa.value?.rows?.length ? (w(), _(Re, {
1502
+ key: 0,
1503
+ uid: P.value,
1504
+ head: sa.value.headers,
1505
+ body: sa.value.rows,
1506
+ notice: R.value.a11y.translations.tableAvailable,
1507
+ caption: R.value.a11y.translations.tableCaption
1508
+ }, null, 8, [
1509
+ "uid",
1510
+ "head",
1511
+ "body",
1512
+ "notice",
1513
+ "caption"
1514
+ ])) : v("", !0),
1515
+ R.value.userOptions.buttons.annotator ? (w(), _(k(an), {
1516
+ key: 1,
1517
+ svgRef: k(nr),
1518
+ backgroundColor: R.value.style.chart.backgroundColor,
1519
+ color: R.value.style.chart.color,
1520
+ active: Ai.value,
1521
+ isCursorPointer: B.value,
1522
+ onClose: ji
1523
+ }, {
1524
+ "annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1525
+ "annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(b({ color: e })), void 0, !0)]),
1526
+ "annotator-action-draw": A(({ mode: e }) => [D(t.$slots, "annotator-action-draw", S(b({ mode: e })), void 0, !0)]),
1527
+ "annotator-action-undo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-undo", S(b({ disabled: e })), void 0, !0)]),
1528
+ "annotator-action-redo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-redo", S(b({ disabled: e })), void 0, !0)]),
1529
+ "annotator-action-delete": A(({ disabled: e }) => [D(t.$slots, "annotator-action-delete", S(b({ disabled: e })), void 0, !0)]),
1530
+ _: 3
1531
+ }, 8, [
1532
+ "svgRef",
1533
+ "backgroundColor",
1534
+ "color",
1535
+ "active",
1536
+ "isCursorPointer"
1537
+ ])) : v("", !0),
1538
+ D(t.$slots, "userConfig", {}, void 0, !0),
1539
+ R.value.style.chart.title.text ? (w(), y("div", {
1540
+ key: 2,
1541
+ ref_key: "chartTitle",
1542
+ ref: vn,
1543
+ style: "width:100%;background:transparent;padding-bottom:24px"
1544
+ }, [(w(), _(Ae, {
1545
+ key: `title_${wn.value}`,
1546
+ config: {
1547
+ title: {
1548
+ cy: "stackbar-title",
1549
+ ...R.value.style.chart.title
1550
+ },
1551
+ subtitle: {
1552
+ cy: "stackbar-subtitle",
1553
+ ...R.value.style.chart.title.subtitle
1554
+ }
1555
+ }
1556
+ }, null, 8, ["config"]))], 512)) : v("", !0),
1557
+ We("div", { id: `legend-top-${P.value}` }, null, 8, ct),
1558
+ R.value.userOptions.show && pn.value && (k(tr) || k($n)) ? (w(), _(k(on), {
1559
+ ref_key: "userOptionsRef",
1560
+ ref: kn,
1561
+ key: `user_option_${_n.value}`,
1562
+ backgroundColor: R.value.style.chart.backgroundColor,
1563
+ color: R.value.style.chart.color,
1564
+ isPrinting: k(cr),
1565
+ isImaging: k(lr),
1566
+ uid: P.value,
1567
+ hasTooltip: R.value.style.chart.tooltip.show && R.value.userOptions.buttons.tooltip,
1568
+ hasPdf: R.value.userOptions.buttons.pdf,
1569
+ hasImg: R.value.userOptions.buttons.img,
1570
+ hasSvg: R.value.userOptions.buttons.svg,
1571
+ hasXls: R.value.userOptions.buttons.csv,
1572
+ hasTable: R.value.userOptions.buttons.table,
1573
+ hasLabel: R.value.userOptions.buttons.labels,
1574
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
1575
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
1576
+ isFullscreen: Sn.value,
1577
+ chartElement: N.value,
1578
+ position: R.value.userOptions.position,
1579
+ isTooltip: V.value.showTooltip,
1580
+ titles: { ...R.value.userOptions.buttonTitles },
1581
+ hasAnnotator: R.value.userOptions.buttons.annotator,
1582
+ isAnnotation: Ai.value,
1583
+ callbacks: R.value.userOptions.callbacks,
1584
+ printScale: R.value.userOptions.print.scale,
1585
+ tableDialog: R.value.table.useDialog,
1586
+ isCursorPointer: B.value,
1587
+ onToggleFullscreen: hi,
1588
+ onGeneratePdf: k(ur),
1589
+ onGenerateCsv: xi,
1590
+ onGenerateImage: Ui,
1591
+ onGenerateSvg: Hi,
1592
+ onToggleTable: gi,
1593
+ onToggleLabels: _i,
1594
+ onToggleTooltip: vi,
1595
+ onToggleAnnotator: ji,
1596
+ onCopyAlt: ta,
1597
+ style: C({ visibility: k(tr) ? k($n) ? "visible" : "hidden" : "visible" })
1598
+ }, Ge({ _: 2 }, [
1599
+ t.$slots.menuIcon ? {
1600
+ name: "menuIcon",
1601
+ fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(b({
1602
+ isOpen: e,
1603
+ color: n
1604
+ })), void 0, !0)]),
1605
+ key: "0"
1606
+ } : void 0,
1607
+ t.$slots.optionTooltip ? {
1608
+ name: "optionTooltip",
1609
+ fn: A(() => [D(t.$slots, "optionTooltip", {}, void 0, !0)]),
1610
+ key: "1"
1611
+ } : void 0,
1612
+ t.$slots.optionPdf ? {
1613
+ name: "optionPdf",
1614
+ fn: A(() => [D(t.$slots, "optionPdf", {}, void 0, !0)]),
1615
+ key: "2"
1616
+ } : void 0,
1617
+ t.$slots.optionCsv ? {
1618
+ name: "optionCsv",
1619
+ fn: A(() => [D(t.$slots, "optionCsv", {}, void 0, !0)]),
1620
+ key: "3"
1621
+ } : void 0,
1622
+ t.$slots.optionImg ? {
1623
+ name: "optionImg",
1624
+ fn: A(() => [D(t.$slots, "optionImg", {}, void 0, !0)]),
1625
+ key: "4"
1626
+ } : void 0,
1627
+ t.$slots.optionSvg ? {
1628
+ name: "optionSvg",
1629
+ fn: A(() => [D(t.$slots, "optionSvg", {}, void 0, !0)]),
1630
+ key: "5"
1631
+ } : void 0,
1632
+ t.$slots.optionTable ? {
1633
+ name: "optionTable",
1634
+ fn: A(() => [D(t.$slots, "optionTable", {}, void 0, !0)]),
1635
+ key: "6"
1636
+ } : void 0,
1637
+ t.$slots.optionLabels ? {
1638
+ name: "optionLabels",
1639
+ fn: A(() => [D(t.$slots, "optionLabels", {}, void 0, !0)]),
1640
+ key: "7"
1641
+ } : void 0,
1642
+ t.$slots.optionFullscreen ? {
1643
+ name: "optionFullscreen",
1644
+ fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [D(t.$slots, "optionFullscreen", S(b({
1645
+ toggleFullscreen: e,
1646
+ isFullscreen: n
1647
+ })), void 0, !0)]),
1648
+ key: "8"
1649
+ } : void 0,
1650
+ t.$slots.optionAnnotator ? {
1651
+ name: "optionAnnotator",
1652
+ fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [D(t.$slots, "optionAnnotator", S(b({
1653
+ toggleAnnotator: e,
1654
+ isAnnotator: n
1655
+ })), void 0, !0)]),
1656
+ key: "9"
1657
+ } : void 0,
1658
+ t.$slots.optionAltCopy ? {
1659
+ name: "optionAltCopy",
1660
+ fn: A(({ altCopy: e }) => [D(t.$slots, "optionAltCopy", S(b({ altCopy: e })), void 0, !0)]),
1661
+ key: "10"
1662
+ } : void 0,
1663
+ t.$slots["custom-menu-before"] ? {
1664
+ name: "custom-menu-before",
1665
+ fn: A(() => [D(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1666
+ key: "11"
1667
+ } : void 0,
1668
+ t.$slots["custom-menu-after"] ? {
1669
+ name: "custom-menu-after",
1670
+ fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1671
+ key: "12"
1672
+ } : void 0
1673
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : v("", !0),
1674
+ We("div", lt, [(w(), y("svg", {
1675
+ ref_key: "svgRef",
1676
+ ref: nr,
1677
+ xmlns: k(le),
1678
+ "aria-describedby": `chart-instructions-${P.value}`,
1679
+ viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
1680
+ class: x({
1681
+ "vue-data-ui-loading": k(Xn),
1682
+ "vue-data-ui-fullscreen--on": Sn.value,
1683
+ "vue-data-ui-fulscreen--off": !Sn.value,
1684
+ "vue-data-ui-no-transition": !k(z)
1685
+ }),
1686
+ style: C(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color}`),
1687
+ tabindex: "0",
1688
+ onFocus: ra,
1689
+ onBlur: ia,
1690
+ onKeydown: aa
1691
+ }, [
1692
+ qe(k(sn)),
1693
+ t.$slots["chart-background"] ? (w(), y("foreignObject", {
1694
+ key: 0,
1695
+ x: G.value.left,
1696
+ y: G.value.top,
1697
+ width: G.value.width <= 0 ? 10 : G.value.width,
1698
+ height: G.value.height <= 0 ? 10 : G.value.height,
1699
+ style: { pointerEvents: "none" }
1700
+ }, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : v("", !0),
1701
+ R.value.style.chart.bars.gradient.show ? (w(), y("defs", ft, [(w(!0), y(h, null, E($.value, (e, t) => (w(), _(Fe, {
1702
+ t: "linear",
1703
+ id: `gradient_${e.id}`,
1704
+ key: `gradient_${e.id}_${t}`,
1705
+ x1: "0%",
1706
+ y1: "0%",
1707
+ x2: "0%",
1708
+ y2: "100%",
1709
+ stops: [
1710
+ [
1711
+ "0%",
1712
+ e.color,
1713
+ 1
1714
+ ],
1715
+ [
1716
+ "61.8%",
1717
+ k(l)(e.color, R.value.style.chart.bars.gradient.intensity / 100),
1718
+ 1
1719
+ ],
1720
+ [
1721
+ "100%",
1722
+ e.color,
1723
+ 1
1724
+ ]
1725
+ ]
1726
+ }, null, 8, ["id", "stops"]))), 128))])) : v("", !0),
1727
+ R.value.style.chart.grid.frame.show ? (w(), y("rect", {
1728
+ key: 2,
1729
+ style: {
1730
+ pointerEvents: "none",
1731
+ transition: "none",
1732
+ animation: "none !important"
1733
+ },
1734
+ x: Math.max(0, G.value.left),
1735
+ y: Math.max(0, G.value.top),
1736
+ width: Math.max(0, G.value.width),
1737
+ height: Math.max(0, G.value.height),
1738
+ fill: "transparent",
1739
+ stroke: R.value.style.chart.grid.frame.stroke,
1740
+ "stroke-width": R.value.style.chart.grid.frame.strokeWidth,
1741
+ "stroke-linecap": R.value.style.chart.grid.frame.strokeLinecap,
1742
+ "stroke-linejoin": R.value.style.chart.grid.frame.strokeLinejoin,
1743
+ "stroke-dasharray": R.value.style.chart.grid.frame.strokeDasharray
1744
+ }, null, 8, pt)) : v("", !0),
1745
+ R.value.style.chart.grid.x.showHorizontalLines && R.value.orientation === "vertical" ? (w(!0), y(h, { key: 3 }, E(Z.value, (e, t) => (w(), y("line", {
1746
+ x1: G.value.left,
1747
+ x2: G.value.right,
1748
+ y1: e.y,
1749
+ y2: e.y,
1750
+ stroke: R.value.style.chart.grid.x.linesColor,
1751
+ "stroke-width": R.value.style.chart.grid.x.linesThickness,
1752
+ "stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
1753
+ "stroke-linecap": "round"
1754
+ }, null, 8, mt))), 256)) : v("", !0),
1755
+ R.value.style.chart.grid.x.showHorizontalLines && R.value.orientation === "horizontal" ? (w(!0), y(h, { key: 4 }, E(J.value.end - J.value.start + 1, (e, t) => (w(), y("line", {
1756
+ x1: G.value.left,
1757
+ x2: G.value.right,
1758
+ y1: G.value.top + X.value * t,
1759
+ y2: G.value.top + X.value * t,
1760
+ stroke: R.value.style.chart.grid.x.linesColor,
1761
+ "stroke-width": R.value.style.chart.grid.x.linesThickness,
1762
+ "stroke-dasharray": R.value.style.chart.grid.x.linesStrokeDasharray,
1763
+ "stroke-linecap": "round"
1764
+ }, null, 8, ht))), 256)) : v("", !0),
1765
+ R.value.style.chart.grid.y.showVerticalLines && R.value.orientation === "vertical" ? (w(!0), y(h, { key: 5 }, E(J.value.end - J.value.start + 1, (e, t) => (w(), y("line", {
1766
+ x1: G.value.left + X.value * t,
1767
+ x2: G.value.left + X.value * t,
1768
+ y1: G.value.top,
1769
+ y2: G.value.bottom,
1770
+ stroke: R.value.style.chart.grid.y.linesColor,
1771
+ "stroke-width": R.value.style.chart.grid.y.linesThickness,
1772
+ "stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
1773
+ "stroke-linecap": "round"
1774
+ }, null, 8, gt))), 256)) : v("", !0),
1775
+ R.value.style.chart.grid.y.showVerticalLines && R.value.orientation === "horizontal" ? (w(!0), y(h, { key: 6 }, E(Z.value, (e, t) => (w(), y("line", {
1776
+ x1: e.horizontal_x,
1777
+ x2: e.horizontal_x,
1778
+ y1: G.value.top,
1779
+ y2: G.value.bottom,
1780
+ stroke: R.value.style.chart.grid.y.linesColor,
1781
+ "stroke-width": R.value.style.chart.grid.y.linesThickness,
1782
+ "stroke-dasharray": R.value.style.chart.grid.y.linesStrokeDasharray,
1783
+ "stroke-linecap": "round"
1784
+ }, null, 8, _t))), 256)) : v("", !0),
1785
+ (w(!0), y(h, null, E($.value, (e, n) => (w(), y("g", { key: `stackbar-group-${e.datasetKey}` }, [t.$slots.pattern ? (w(), y("defs", vt, [D(t.$slots, "pattern", Ye({ ref_for: !0 }, {
1786
+ seriesIndex: e.absoluteIndex,
1787
+ patternId: `pattern_${P.value}_${e.absoluteIndex}`
1788
+ }), void 0, !0)])) : v("", !0), R.value.orientation === "vertical" ? (w(), y(h, { key: 1 }, [(w(!0), y(h, null, E(e.x, (t, n) => (w(), y("rect", {
1789
+ key: `stackbar-rect-${e.rectKeys[n]}`,
1790
+ x: t,
1791
+ y: k(ae)(e.y[n]),
1792
+ height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
1793
+ rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
1794
+ width: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
1795
+ fill: R.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
1796
+ stroke: R.value.style.chart.backgroundColor,
1797
+ "stroke-width": R.value.style.chart.bars.strokeWidth,
1798
+ "stroke-linecap": "round",
1799
+ "stroke-linejoin": "round",
1800
+ class: x({ "vue-data-ui-bar-transition": Cn.value })
1801
+ }, null, 10, yt))), 128)), t.$slots.pattern ? (w(), y("g", bt, [(w(!0), y(h, null, E(e.x, (t, n) => (w(), y("rect", {
1802
+ key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
1803
+ x: t,
1804
+ y: k(ae)(e.y[n]),
1805
+ height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
1806
+ rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
1807
+ width: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
1808
+ fill: `url(#pattern_${P.value}_${e.absoluteIndex})`,
1809
+ stroke: R.value.style.chart.backgroundColor,
1810
+ "stroke-width": R.value.style.chart.bars.strokeWidth,
1811
+ "stroke-linecap": "round",
1812
+ "stroke-linejoin": "round",
1813
+ class: x({ "vue-data-ui-bar-transition": Cn.value })
1814
+ }, null, 10, xt))), 128))])) : v("", !0)], 64)) : (w(), y(h, { key: 2 }, [(w(!0), y(h, null, E(e.horizontal_x, (t, n) => (w(), y("rect", {
1815
+ key: `stackbar-rect-${e.rectKeys[n]}`,
1816
+ x: k(ae)(t, G.value.left),
1817
+ y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
1818
+ width: k(ae)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1819
+ rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
1820
+ height: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
1821
+ fill: R.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
1822
+ stroke: R.value.style.chart.backgroundColor,
1823
+ "stroke-width": R.value.style.chart.bars.strokeWidth,
1824
+ "stroke-linecap": "round",
1825
+ "stroke-linejoin": "round",
1826
+ class: x({ "vue-data-ui-bar-transition": Cn.value })
1827
+ }, null, 10, St))), 128)), t.$slots.pattern ? (w(), y("g", Ct, [(w(!0), y(h, null, E(e.horizontal_x, (t, n) => (w(), y("rect", {
1828
+ key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
1829
+ x: k(ae)(t, G.value.left),
1830
+ y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
1831
+ width: k(ae)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1832
+ rx: R.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : R.value.style.chart.bars.borderRadius,
1833
+ height: X.value * (1 - R.value.style.chart.bars.gapRatio / 2),
1834
+ fill: `url(#pattern_${P.value}_${e.absoluteIndex})`,
1835
+ stroke: R.value.style.chart.backgroundColor,
1836
+ "stroke-width": R.value.style.chart.bars.strokeWidth,
1837
+ "stroke-linecap": "round",
1838
+ "stroke-linejoin": "round",
1839
+ class: x({ "vue-data-ui-bar-transition": Cn.value })
1840
+ }, null, 10, wt))), 128))])) : v("", !0)], 64))]))), 128)),
1841
+ R.value.style.chart.grid.x.showAxis ? (w(), y("line", {
1842
+ key: 7,
1843
+ x1: G.value.left,
1844
+ x2: G.value.right,
1845
+ y1: G.value.bottom,
1846
+ y2: G.value.bottom,
1847
+ stroke: R.value.style.chart.grid.x.axisColor,
1848
+ "stroke-width": R.value.style.chart.grid.x.axisThickness,
1849
+ "stroke-linecap": "round",
1850
+ "stroke-linejoin": "round"
1851
+ }, null, 8, Tt)) : v("", !0),
1852
+ R.value.style.chart.grid.y.showAxis && !R.value.style.chart.bars.distributed ? (w(), y("line", {
1853
+ key: 8,
1854
+ x1: W.value ? G.value.right : G.value.left,
1855
+ x2: W.value ? G.value.right : G.value.left,
1856
+ y1: G.value.top,
1857
+ y2: G.value.bottom,
1858
+ stroke: R.value.style.chart.grid.y.axisColor,
1859
+ "stroke-width": R.value.style.chart.grid.y.axisThickness,
1860
+ "stroke-linecap": "round",
1861
+ "stroke-linejoin": "round"
1862
+ }, null, 8, Et)) : v("", !0),
1863
+ R.value.style.chart.grid.x.axisName.show && R.value.style.chart.grid.x.axisName.text ? (w(), y("text", {
1864
+ key: 9,
1865
+ ref_key: "xAxisLabel",
1866
+ ref: Mn,
1867
+ x: G.value.left + G.value.width / 2,
1868
+ y: G.value.chartHeight - 3,
1869
+ "font-size": R.value.style.chart.grid.x.axisName.fontSize,
1870
+ fill: R.value.style.chart.grid.x.axisName.color,
1871
+ "font-weight": R.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1872
+ "text-anchor": "middle"
1873
+ }, O(R.value.style.chart.grid.x.axisName.text), 9, Dt)) : v("", !0),
1874
+ R.value.style.chart.grid.y.axisName.show && R.value.style.chart.grid.y.axisName.text ? (w(), y("text", {
1875
+ key: 10,
1876
+ ref_key: "yAxisLabel",
1877
+ ref: Nn,
1878
+ transform: `translate(${W.value ? H.value.width - R.value.style.chart.grid.y.axisName.fontSize / 2 - R.value.style.chart.grid.y.axisName.offsetX : R.value.style.chart.grid.y.axisName.fontSize + R.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
1879
+ "font-size": R.value.style.chart.grid.y.axisName.fontSize,
1880
+ fill: R.value.style.chart.grid.y.axisName.color,
1881
+ "font-weight": R.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1882
+ "text-anchor": "middle"
1883
+ }, O(R.value.style.chart.grid.y.axisName.text), 9, Ot)) : v("", !0),
1884
+ V.value.dataLabels.show && R.value.orientation === "vertical" ? (w(), y(h, { key: 11 }, [(w(!0), y(h, null, E($.value, (e, t) => (w(), y("g", { key: `dp_${e.id}` }, [(w(!0), y(h, null, E(e.x, (n, r) => (w(), y(h, { key: `rect_${e.id}_${J.value.start + r}` }, [Pi(e.series[r], e.proportions[r]) ? (w(), y("text", {
1885
+ key: 0,
1886
+ class: x({ "vue-data-ui-transition": k(z) }),
1887
+ transform: `translate(${n + X.value * (1 - R.value.style.chart.bars.gapRatio / 2) / 2}, ${e.y[r] + e.height[r] / 2 + R.value.style.chart.bars.dataLabels.fontSize / 3})`,
1888
+ "font-size": R.value.style.chart.bars.dataLabels.fontSize,
1889
+ fill: R.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(ce)(e.color) : R.value.style.chart.bars.dataLabels.color,
1890
+ "font-weight": R.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1891
+ "text-anchor": "middle"
1892
+ }, O(R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ? oi(e.proportions[r] * 100, e, t, r) : ai(e.series[r], e, t, r, e.signedSeries[r])), 11, kt)) : v("", !0)], 64))), 128))]))), 128)), R.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (w(), y("g", {
1893
+ key: 0,
1894
+ ref_key: "sumTop",
1895
+ ref: In
1896
+ }, [(w(!0), y(h, null, E(ii.value, (e, t) => (w(), y(h, { key: `tl_${t + J.value.start}` }, [!R.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (w(), y("text", {
1897
+ key: 0,
1898
+ class: x({ "vue-data-ui-transition": k(z) }),
1899
+ transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${$i(t)})`,
1900
+ "text-anchor": "middle",
1901
+ "font-size": R.value.style.chart.bars.totalValues.fontSize,
1902
+ "font-weight": R.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1903
+ fill: R.value.style.chart.bars.totalValues.color
1904
+ }, O(ai(e.value, e, t, e.sign)), 11, At)) : v("", !0)], 64))), 128))], 512)) : v("", !0)], 64)) : v("", !0),
1905
+ V.value.dataLabels.show && R.value.orientation === "horizontal" ? (w(), y(h, { key: 12 }, [(w(!0), y(h, null, E($.value, (e, t) => (w(), y("g", null, [(w(!0), y(h, null, E(e.horizontal_x, (n, r) => (w(), y(h, null, [Pi(e.series[r], e.proportions[r]) ? (w(), y("text", {
1906
+ key: 0,
1907
+ class: x({ "vue-data-ui-transition": k(z) }),
1908
+ transform: `translate(${n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2}, ${e.horizontal_y[r] + X.value * (1 - R.value.style.chart.bars.gapRatio / 2) / 2 + R.value.style.chart.bars.dataLabels.fontSize / 3})`,
1909
+ "font-size": R.value.style.chart.bars.dataLabels.fontSize,
1910
+ fill: R.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(ce)(e.color) : R.value.style.chart.bars.dataLabels.color,
1911
+ "font-weight": R.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1912
+ "text-anchor": "middle"
1913
+ }, O(R.value.style.chart.bars.showDistributedPercentage && R.value.style.chart.bars.distributed ? oi(e.proportions[r] * 100, e, t, r) : ai(e.series[r], e, t, r, e.signedSeries[r])), 11, jt)) : v("", !0)], 64))), 256))]))), 256)), R.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (w(), y("g", {
1914
+ key: 0,
1915
+ ref_key: "sumRight",
1916
+ ref: Ln
1917
+ }, [(w(!0), y(h, null, E(ii.value, (e, t) => (w(), y(h, null, [!R.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (w(), y("text", {
1918
+ key: 0,
1919
+ class: x({ "vue-data-ui-transition": k(z) }),
1920
+ transform: `translate(${ea(t)}, ${G.value.top + X.value * t + X.value / 2 + R.value.style.chart.bars.totalValues.fontSize / 3})`,
1921
+ "text-anchor": "start",
1922
+ "font-size": R.value.style.chart.bars.totalValues.fontSize,
1923
+ "font-weight": R.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1924
+ fill: R.value.style.chart.bars.totalValues.color
1925
+ }, O(ai(e.value, e, t, e.sign)), 11, Mt)) : v("", !0)], 64))), 256))], 512)) : v("", !0)], 64)) : v("", !0),
1926
+ R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.bars.distributed && R.value.orientation === "vertical" ? (w(), y("g", {
1927
+ key: 13,
1928
+ ref_key: "scaleLabels",
1929
+ ref: Pn
1930
+ }, [(w(!0), y(h, null, E(Z.value, (e, t) => (w(), y("path", {
1931
+ key: `ty_${t}`,
1932
+ stroke: R.value.style.chart.grid.x.axisColor,
1933
+ class: x({ "vue-data-ui-transition": k(z) }),
1934
+ d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 6 : G.value.left - 6},${e.y}`,
1935
+ "stroke-width": 1,
1936
+ "stroke-linecap": "round"
1937
+ }, null, 10, Nt))), 128)), (w(!0), y(h, null, E(Z.value, (e, t) => (w(), y("text", {
1938
+ class: x({ "vue-data-ui-transition": k(z) }),
1939
+ key: `tl_${t}`,
1940
+ transform: `translate(${e.x}, ${e.y + R.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
1941
+ "font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
1942
+ "font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1943
+ fill: R.value.style.chart.grid.y.axisLabels.color,
1944
+ "text-anchor": W.value ? "start" : "end"
1945
+ }, O(k(m)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, k(p)({
1946
+ p: R.value.style.chart.bars.dataLabels.prefix,
1947
+ v: e.value,
1948
+ s: R.value.style.chart.bars.dataLabels.suffix,
1949
+ r: R.value.style.chart.grid.y.axisLabels.rounding
1950
+ }), { datapoint: e })), 11, Pt))), 128))], 512)) : v("", !0),
1951
+ R.value.style.chart.grid.y.axisLabels.show && !R.value.style.chart.bars.distributed && R.value.orientation === "horizontal" ? (w(), y("g", {
1952
+ key: 14,
1953
+ ref_key: "scaleLabels",
1954
+ ref: Pn
1955
+ }, [(w(!0), y(h, null, E(Z.value, (e, t) => (w(), y("path", {
1956
+ key: `scy_${t}`,
1957
+ d: `M${e.horizontal_x},${G.value.bottom} ${e.horizontal_x},${G.value.bottom + 6}`,
1958
+ class: x({ "vue-data-ui-transition": k(z) }),
1959
+ stroke: R.value.style.chart.grid.x.axisColor,
1960
+ "stroke-width": 1,
1961
+ "stroke-linecap": "round"
1962
+ }, null, 10, Ft))), 128)), (w(!0), y(h, null, E(Z.value, (e, t) => (w(), y("text", {
1963
+ class: x(["vue-data-ui-time-label", { "vue-data-ui-transition": k(z) }]),
1964
+ key: `tly_${t}`,
1965
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
1966
+ "font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1967
+ fill: R.value.style.chart.grid.y.axisLabels.color,
1968
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1969
+ transform: `translate(${e.horizontal_x}, ${G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`
1970
+ }, O(k(m)(R.value.style.chart.grid.y.axisLabels.formatter, e.value, k(p)({
1971
+ p: R.value.style.chart.bars.dataLabels.prefix,
1972
+ v: e.value,
1973
+ s: R.value.style.chart.bars.dataLabels.suffix,
1974
+ r: R.value.style.chart.grid.y.axisLabels.rounding
1975
+ }), { datapoint: e })), 11, It))), 128))], 512)) : v("", !0),
1976
+ R.value.style.chart.grid.x.timeLabels.show && R.value.orientation === "vertical" ? (w(), y("g", {
1977
+ key: 15,
1978
+ ref_key: "timeLabelsEls",
1979
+ ref: Fn
1980
+ }, [t.$slots["time-label"] ? (w(), y("g", Lt, [(w(!0), y(h, null, E(Yr.value, (e, n) => (w(), y("g", null, [D(t.$slots, "time-label", Ye({ ref_for: !0 }, {
1981
+ x: G.value.left + X.value * n + X.value / 2,
1982
+ y: G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY,
1983
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
1984
+ fill: R.value.style.chart.grid.x.timeLabels.color,
1985
+ transform: `translate(${G.value.left + X.value * n + X.value / 2}, ${G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
1986
+ absoluteIndex: e.absoluteIndex,
1987
+ content: e.text,
1988
+ textAnchor: R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1989
+ show: !0
1990
+ }), void 0, !0)]))), 256))])) : (w(), y("g", Rt, [(w(!0), y(h, null, E(Yr.value, (e, t) => (w(), y("g", null, [String(e.text).includes("\n") ? (w(), y("text", {
1991
+ class: x({ "vue-data-ui-transition": k(z) }),
1992
+ key: t + "-multi",
1993
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1994
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
1995
+ fill: R.value.style.chart.grid.x.timeLabels.color,
1996
+ transform: `
1997
+ translate(
1998
+ ${G.value.left + X.value * t + X.value / 2},
1999
+ ${G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}
2000
+ ),
2001
+ rotate(${R.value.style.chart.grid.x.timeLabels.rotation})
2002
+ `,
2003
+ style: C({ cursor: B.value ? "pointer" : "default" }),
2004
+ innerHTML: k(r)({
2005
+ content: String(e.text),
2006
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
2007
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2008
+ x: 0,
2009
+ y: 0
2010
+ }),
2011
+ onClick: () => Mi(e, t)
2012
+ }, null, 14, Bt)) : (w(), y("text", {
2013
+ class: "vue-data-ui-time-label",
2014
+ key: t,
2015
+ "text-anchor": R.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : R.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2016
+ "font-size": R.value.style.chart.grid.x.timeLabels.fontSize,
2017
+ "font-weight": R.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2018
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2019
+ transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + R.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + R.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${R.value.style.chart.grid.x.timeLabels.rotation})`,
2020
+ style: C({ cursor: B.value ? "pointer" : "default" }),
2021
+ onClick: () => Mi(e, t)
2022
+ }, O(e.text), 13, zt))]))), 256))]))], 512)) : v("", !0),
2023
+ R.value.style.chart.grid.x.timeLabels.show && R.value.orientation === "horizontal" ? (w(), y("g", {
2024
+ key: 16,
2025
+ ref_key: "timeLabelsEls",
2026
+ ref: Fn
2027
+ }, [t.$slots["time-label"] ? (w(), y("g", Vt, [(w(!0), y(h, null, E(Q.value, (e, n) => (w(), y("g", null, [D(t.$slots, "time-label", Ye({ ref_for: !0 }, {
2028
+ x: G.value.left - 8,
2029
+ y: G.value.top + X.value * n + X.value / 2 + R.value.style.chart.grid.y.axisLabels.fontSize / 3,
2030
+ fontSize: R.value.style.chart.grid.x.timeLabels.fontSize,
2031
+ fill: R.value.style.chart.grid.x.timeLabels.color,
2032
+ transform: null,
2033
+ absoluteIndex: e.absoluteIndex,
2034
+ content: e.text,
2035
+ textAnchor: "end",
2036
+ show: !0
2037
+ }), void 0, !0)]))), 256))])) : (w(), y("g", Ht, [(w(!0), y(h, null, E(Q.value, (e, t) => (w(), y("g", null, [String(e.text).includes("\n") ? (w(), y("text", {
2038
+ key: 1,
2039
+ "text-anchor": "end",
2040
+ "font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
2041
+ "font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2042
+ fill: R.value.style.chart.grid.y.axisLabels.color,
2043
+ transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + R.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2044
+ style: C({ cursor: B.value ? "pointer" : "default" }),
2045
+ onClick: () => Mi(e, t),
2046
+ innerHTML: k(s)({
2047
+ content: String(e.text),
2048
+ fontSize: R.value.style.chart.grid.y.axisLabels.fontSize,
2049
+ fill: R.value.style.chart.grid.y.axisLabels.color,
2050
+ x: G.value.left - 8,
2051
+ y: 0
2052
+ })
2053
+ }, null, 12, Wt)) : (w(), y("text", {
2054
+ key: 0,
2055
+ "text-anchor": "end",
2056
+ "font-size": R.value.style.chart.grid.y.axisLabels.fontSize,
2057
+ "font-weight": R.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2058
+ fill: R.value.style.chart.grid.y.axisLabels.color,
2059
+ transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + R.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2060
+ style: C({ cursor: B.value ? "pointer" : "default" }),
2061
+ onClick: () => Mi(e, t)
2062
+ }, O(e.text), 13, Ut))]))), 256))]))], 512)) : v("", !0),
2063
+ V.value.showTooltip && R.value.orientation === "vertical" ? (w(!0), y(h, { key: 17 }, E(J.value.end - J.value.start, (e, t) => (w(), y("rect", {
2064
+ x: G.value.left + t * X.value,
2065
+ y: G.value.top,
2066
+ width: X.value,
2067
+ height: G.value.height < 0 ? 0 : G.value.height,
2068
+ onClick: () => si(t),
2069
+ onMouseenter: () => fi(t, "pointer"),
2070
+ onMouseleave: () => li(t),
2071
+ fill: t === I.value || t === Jn.value ? R.value.style.chart.highlighter.color : "transparent",
2072
+ style: C({ opacity: R.value.style.chart.highlighter.opacity / 100 })
2073
+ }, null, 44, Gt))), 256)) : v("", !0),
2074
+ V.value.showTooltip && R.value.orientation === "horizontal" ? (w(!0), y(h, { key: 18 }, E(J.value.end - J.value.start, (e, t) => (w(), y("rect", {
2075
+ x: G.value.left,
2076
+ y: G.value.top + t * X.value,
2077
+ width: G.value.width < 0 ? 0 : G.value.width,
2078
+ height: X.value,
2079
+ onClick: () => si(t),
2080
+ onMouseenter: () => fi(t, "pointer"),
2081
+ onMouseleave: () => li(t),
2082
+ fill: t === I.value || t === Jn.value ? R.value.style.chart.highlighter.color : "transparent",
2083
+ style: C({ opacity: R.value.style.chart.highlighter.opacity / 100 })
2084
+ }, null, 44, Kt))), 256)) : v("", !0),
2085
+ Ar.value ? (w(), y("rect", Ye({ key: 19 }, Or.value, {
2086
+ "data-start": J.value.start,
2087
+ "data-end": J.value.end
2088
+ }), null, 16, qt)) : v("", !0),
2089
+ D(t.$slots, "svg", { svg: {
2090
+ drawingArea: G.value,
2091
+ slicer: J.value,
2092
+ data: $.value,
2093
+ isPrintingImg: k(cr) || k(lr) || An.value,
2094
+ isPrintingSvg: jn.value,
2095
+ barWidth: X.value
2096
+ } }, void 0, !0)
2097
+ ], 46, ut)), t.$slots.hint ? (w(), y("div", Jt, [D(t.$slots, "hint", S(b({
2098
+ hint: R.value.a11y.translations.keyboardNavigation,
2099
+ isVisible: na.value
2100
+ })), void 0, !0)])) : v("", !0)]),
2101
+ t.$slots.watermark ? (w(), y("div", Yt, [D(t.$slots, "watermark", S(b({ isPrinting: k(cr) || k(lr) || An.value || jn.value })), void 0, !0)])) : v("", !0),
2102
+ R.value.style.chart.zoom.show && pn.value && Ki.value && q.value > 6 ? (w(), _(Ie, {
2103
+ key: 5,
2104
+ ref_key: "chartSlicer",
2105
+ ref: bn,
2106
+ "data-dom-to-png-ignore-layout": "",
2107
+ allMinimaps: zr.value,
2108
+ background: R.value.style.chart.zoom.color,
2109
+ borderColor: R.value.style.chart.backgroundColor,
2110
+ customFormat: R.value.style.chart.zoom.customFormat,
2111
+ cutNullValues: !1,
2112
+ forceZeroCenter: !0,
2113
+ enableRangeHandles: R.value.style.chart.zoom.enableRangeHandles,
2114
+ enableSelectionDrag: R.value.style.chart.zoom.enableSelectionDrag,
2115
+ end: J.value.end,
2116
+ focusOnDrag: R.value.style.chart.zoom.focusOnDrag,
2117
+ focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
2118
+ fontSize: R.value.style.chart.zoom.fontSize,
2119
+ immediate: !R.value.style.chart.zoom.preview.enable,
2120
+ inputColor: R.value.style.chart.zoom.color,
2121
+ isPreview: Ar.value,
2122
+ labelLeft: R.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
2123
+ labelRight: R.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
2124
+ max: Math.max(...e.dataset.map((e) => e.series.length)),
2125
+ min: 0,
2126
+ minimap: Rr.value,
2127
+ minimapCompact: R.value.style.chart.zoom.minimap.compact,
2128
+ minimapFrameColor: R.value.style.chart.zoom.minimap.frameColor,
2129
+ minimapIndicatorColor: R.value.style.chart.zoom.minimap.indicatorColor,
2130
+ minimapMerged: !1,
2131
+ minimapSelectedColor: R.value.style.chart.zoom.minimap.selectedColor,
2132
+ minimapSelectedColorOpacity: R.value.style.chart.zoom.minimap.selectedColorOpacity,
2133
+ minimapSelectedIndex: I.value,
2134
+ minimapSelectionRadius: 1,
2135
+ preciseLabels: $r.value.length ? $r.value : Gr.value,
2136
+ refreshEndPoint: R.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : R.value.style.chart.zoom.endIndex + 1,
2137
+ refreshStartPoint: R.value.style.chart.zoom.startIndex === null ? 0 : R.value.style.chart.zoom.startIndex,
2138
+ selectColor: R.value.style.chart.zoom.highlightColor,
2139
+ selectedSeries: ui.value,
2140
+ smoothMinimap: !1,
2141
+ start: J.value.start,
2142
+ textColor: R.value.style.chart.color,
2143
+ timeLabels: Gr.value,
2144
+ usePreciseLabels: R.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !R.value.style.chart.zoom.useDefaultFormat,
2145
+ valueEnd: J.value.end,
2146
+ valueStart: J.value.start,
2147
+ verticalHandles: R.value.style.chart.zoom.minimap.verticalHandles,
2148
+ maxWidth: R.value.style.chart.zoom.maxWidth,
2149
+ isCursorPointer: B.value,
2150
+ additionalMinimapHeight: R.value.style.chart.zoom.minimap.additionalHeight,
2151
+ handleType: R.value.style.chart.zoom.minimap.handleType,
2152
+ handleIconColor: R.value.style.chart.zoom.minimap.handleIconColor,
2153
+ handleBorderWidth: R.value.style.chart.zoom.minimap.handleBorderWidth,
2154
+ handleBorderColor: R.value.style.chart.zoom.minimap.handleBorderColor,
2155
+ handleFill: R.value.style.chart.zoom.minimap.handleFill,
2156
+ handleWidth: R.value.style.chart.zoom.minimap.handleWidth,
2157
+ "onUpdate:end": Xi,
2158
+ "onUpdate:start": Yi,
2159
+ onTrapMouse: kr,
2160
+ onReset: n[0] ||= () => Fr({ force: !0 }),
2161
+ onFutureEnd: n[1] ||= (e) => jr("end", e),
2162
+ onFutureStart: n[2] ||= (e) => jr("start", e)
2163
+ }, {
2164
+ "reset-action": A(({ reset: e }) => [D(t.$slots, "reset-action", S(b({ reset: e })), void 0, !0)]),
2165
+ slotMap: A(({ width: e, height: t, unitW: n }) => [(w(!0), y(h, null, E($.value, (e) => (w(), y("g", { key: e.id }, [(w(!0), y(h, null, E(e.xMinimap({
2166
+ left: 0,
2167
+ unitW: n
2168
+ }), (r, a) => (w(), y("rect", {
2169
+ key: `minimap-rect-${e.minimapRectKeys[a]}`,
2170
+ x: a === 0 ? r - n * (R.value.style.chart.bars.gapRatio / 4) : r - n / 2,
2171
+ y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
2172
+ height: e.heightMinimap({ minimapH: t })[a],
2173
+ width: [0, q.value - 1].includes(a) ? n * (1 - R.value.style.chart.bars.gapRatio / 2) / 2 : n * (1 - R.value.style.chart.bars.gapRatio / 2),
2174
+ fill: R.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
2175
+ stroke: R.value.style.chart.backgroundColor,
2176
+ "stroke-width": .5,
2177
+ rx: "0",
2178
+ "stroke-linecap": "round",
2179
+ "stroke-linejoin": "round",
2180
+ style: C({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
2181
+ }, null, 12, Xt))), 128))]))), 128))]),
2182
+ _: 3
2183
+ }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : v("", !0),
2184
+ qe(k(en), {
2185
+ teleportTo: R.value.style.chart.tooltip.teleportTo,
2186
+ show: V.value.showTooltip && mn.value,
2187
+ backgroundColor: R.value.style.chart.tooltip.backgroundColor,
2188
+ color: R.value.style.chart.tooltip.color,
2189
+ fontSize: R.value.style.chart.tooltip.fontSize,
2190
+ borderRadius: R.value.style.chart.tooltip.borderRadius,
2191
+ borderColor: R.value.style.chart.tooltip.borderColor,
2192
+ borderWidth: R.value.style.chart.tooltip.borderWidth,
2193
+ backgroundOpacity: R.value.style.chart.tooltip.backgroundOpacity,
2194
+ position: R.value.style.chart.tooltip.position,
2195
+ offsetX: R.value.style.chart.tooltip.offsetX,
2196
+ offsetY: R.value.style.chart.tooltip.offsetY,
2197
+ parent: N.value,
2198
+ content: gn.value,
2199
+ isFullscreen: Sn.value,
2200
+ isCustom: k(pe)(R.value.style.chart.tooltip.customFormat),
2201
+ smooth: R.value.style.chart.tooltip.smooth,
2202
+ backdropFilter: R.value.style.chart.tooltip.backdropFilter,
2203
+ smoothForce: R.value.style.chart.tooltip.smoothForce,
2204
+ smoothSnapThreshold: R.value.style.chart.tooltip.smoothSnapThreshold,
2205
+ isA11yMode: Un.value === "keyboard",
2206
+ a11yPosition: Hn.value
2207
+ }, {
2208
+ "tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(b({ ...hn.value })), void 0, !0)]),
2209
+ tooltip: A(() => [D(t.$slots, "tooltip", S(b({ ...hn.value })), void 0, !0)]),
2210
+ "tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(b({ ...hn.value })), void 0, !0)]),
2211
+ _: 3
2212
+ }, 8, [
2213
+ "teleportTo",
2214
+ "show",
2215
+ "backgroundColor",
2216
+ "color",
2217
+ "fontSize",
2218
+ "borderRadius",
2219
+ "borderColor",
2220
+ "borderWidth",
2221
+ "backgroundOpacity",
2222
+ "position",
2223
+ "offsetX",
2224
+ "offsetY",
2225
+ "parent",
2226
+ "content",
2227
+ "isFullscreen",
2228
+ "isCustom",
2229
+ "smooth",
2230
+ "backdropFilter",
2231
+ "smoothForce",
2232
+ "smoothSnapThreshold",
2233
+ "isA11yMode",
2234
+ "a11yPosition"
2235
+ ]),
2236
+ We("div", { id: `legend-bottom-${P.value}` }, null, 8, Zt),
2237
+ Dn.value && (R.value.style.chart.legend.show || t.$slots.legend) ? (w(), _(Ue, {
2238
+ key: 6,
2239
+ to: R.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
2240
+ }, [We("div", {
2241
+ ref_key: "chartLegend",
2242
+ ref: yn
2243
+ }, [D(t.$slots, "legend", { legend: Oi.value }, () => [R.value.style.chart.legend.show ? (w(), _(Ve, {
2244
+ key: 0,
2245
+ legendSet: Oi.value,
2246
+ config: ki.value,
2247
+ isCursorPointer: B.value,
2248
+ onClickMarker: n[3] ||= ({ legend: e }) => e.segregate()
2249
+ }, Ge({
2250
+ item: A(({ legend: e }) => [k(Xn) ? v("", !0) : (w(), y("div", {
2251
+ key: 0,
2252
+ onClick: (t) => e.segregate(),
2253
+ style: C(`opacity:${F.value.includes(e.id) ? .5 : 1}`)
2254
+ }, O(e.name), 13, Qt))]),
2255
+ legendToggle: A(() => [Oi.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !k(Xn) ? (w(), _(Le, {
2256
+ key: 0,
2257
+ backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
2258
+ color: R.value.style.chart.legend.selectAllToggle.color,
2259
+ fontSize: R.value.style.chart.legend.fontSize,
2260
+ checked: F.value.length > 0,
2261
+ isCursorPointer: B.value,
2262
+ onToggle: Ci
2263
+ }, null, 8, [
2264
+ "backgroundColor",
2265
+ "color",
2266
+ "fontSize",
2267
+ "checked",
2268
+ "isCursorPointer"
2269
+ ])) : v("", !0)]),
2270
+ _: 2
2271
+ }, [t.$slots.pattern ? {
2272
+ name: "legend-pattern",
2273
+ fn: A(({ legend: e, index: t }) => [qe(je, {
2274
+ shape: e.shape,
2275
+ radius: 30,
2276
+ stroke: "none",
2277
+ plot: {
2278
+ x: 30,
2279
+ y: 30
2280
+ },
2281
+ fill: `url(#pattern_${P.value}_${t})`
2282
+ }, null, 8, ["shape", "fill"])]),
2283
+ key: "0"
2284
+ } : void 0]), 1032, [
2285
+ "legendSet",
2286
+ "config",
2287
+ "isCursorPointer"
2288
+ ])) : v("", !0)], !0)], 512)], 8, ["to"])) : v("", !0),
2289
+ t.$slots.source ? (w(), y("div", {
2290
+ key: 7,
2291
+ ref_key: "source",
2292
+ ref: xn,
2293
+ dir: "auto"
2294
+ }, [D(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
2295
+ pn.value && R.value.userOptions.buttons.table ? (w(), _($e(Ii.value.component), Ye({ key: 8 }, Ii.value.props, {
2296
+ ref_key: "tableUnit",
2297
+ ref: On,
2298
+ onClose: Li
2299
+ }), Ge({
2300
+ content: A(() => [qe(k(rn), {
2301
+ colNames: Si.value.colNames,
2302
+ head: Si.value.head,
2303
+ body: Si.value.body,
2304
+ config: Si.value.config,
2305
+ title: R.value.table.useDialog ? "" : Ii.value.title,
2306
+ withCloseButton: !R.value.table.useDialog,
2307
+ isCursorPointer: B.value,
2308
+ onClose: Li
2309
+ }, {
2310
+ th: A(({ th: e }) => [We("div", { innerHTML: e }, null, 8, $t)]),
2311
+ td: A(({ td: e }) => [Ke(O(isNaN(Number(e)) ? e : k(p)({
2312
+ p: R.value.style.chart.bars.dataLabels.prefix,
2313
+ v: e,
2314
+ s: R.value.style.chart.bars.dataLabels.suffix,
2315
+ r: R.value.table.td.roundingValue
2316
+ })), 1)]),
2317
+ _: 1
2318
+ }, 8, [
2319
+ "colNames",
2320
+ "head",
2321
+ "body",
2322
+ "config",
2323
+ "title",
2324
+ "withCloseButton",
2325
+ "isCursorPointer"
2326
+ ])]),
2327
+ _: 2
2328
+ }, [R.value.table.useDialog ? {
2329
+ name: "title",
2330
+ fn: A(() => [Ke(O(Ii.value.title), 1)]),
2331
+ key: "0"
2332
+ } : void 0, R.value.table.useDialog ? {
2333
+ name: "actions",
2334
+ fn: A(() => [We("button", {
2335
+ tabindex: "0",
2336
+ class: "vue-ui-user-options-button",
2337
+ onClick: n[4] ||= (e) => xi(R.value.userOptions.callbacks.csv),
2338
+ style: C({ cursor: B.value ? "pointer" : "default" })
2339
+ }, [qe(k(tn), {
2340
+ name: "fileCsv",
2341
+ stroke: Ii.value.props.color
2342
+ }, null, 8, ["stroke"])], 4)]),
2343
+ key: "1"
2344
+ } : void 0]), 1040)) : v("", !0),
2345
+ D(t.$slots, "skeleton", {}, () => [k(Xn) ? (w(), _(Se, { key: 0 })) : v("", !0)], !0)
2346
+ ], 46, ot));
2347
+ }
2348
+ }, [["__scopeId", "data-v-0733861b"]]);
2349
+ //#endregion
2350
+ export { at as n, en as t };