vue-data-ui 3.22.6 → 3.22.7

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