vue-data-ui 3.23.9 → 3.23.11

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