vue-data-ui 3.0.0-next.7 → 3.0.0-next.71

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 (137) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
  11. package/dist/Slicer-DYuvPkEM.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
  19. package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +610 -22
  22. package/dist/types/vue-data-ui.d.ts +610 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-D-8c0o4p.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
  37. package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
  38. package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
  41. package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
  48. package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
  49. package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
  51. package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
  52. package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
  53. package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
  54. package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
  55. package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
  59. package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
  60. package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
  61. package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
  65. package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
  67. package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
  68. package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
  69. package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
  70. package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
  73. package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
  74. package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
  75. package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
  77. package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
  79. package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
  80. package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
  81. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
  82. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
  84. package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
  86. package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
  87. package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
  89. package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
  90. package/dist/vue-ui-wheel-De1spwLh.js +379 -0
  91. package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
  93. package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
  109. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  110. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  111. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  112. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  113. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  114. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  115. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  116. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  117. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  118. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  119. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  120. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  121. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  122. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  123. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  124. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  125. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  126. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  127. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  128. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  129. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  130. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  131. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  132. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  133. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  134. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  135. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  136. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  137. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -0,0 +1,1370 @@
1
+ import { defineAsyncComponent as te, useSlots as pa, computed as x, ref as b, onMounted as Ct, toRefs as xa, watch as De, shallowRef as _t, onBeforeUnmount as St, watchEffect as $t, nextTick as Tt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as Z, normalizeClass as ae, createBlock as K, createCommentVNode as y, renderSlot as L, createElementVNode as le, createVNode as xe, createSlots as Mt, withCtx as C, normalizeProps as H, guardReactiveProps as U, Fragment as g, renderList as m, mergeProps as Fe, toDisplayString as M, createTextVNode as ka } from "vue";
2
+ import { u as wa, c as At, t as La, a as za, p as ke, b as Ca, C as se, d as _a, o as Nt, f as It, g as Sa, e as $a, ao as we, ad as Rt, D as Ot, X as Ta, l as Ma, aa as Le, F as Pt, k as ze, i as Q, I as Aa, a0 as Na, y as Vt, v as Ia, w as Ra, z as Oa } from "./index-DKpp7RIH.js";
3
+ import { t as He, u as Pa } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Va } from "./usePrinter-NUeckmCX.js";
5
+ import { u as Ea, B as Da } from "./useLoading-D7YHNtLX.js";
6
+ import { u as Et } from "./useNestedProp-D-8c0o4p.js";
7
+ import { u as Fa } from "./useTimeLabels-DkzmKfZn.js";
8
+ import { u as Ha } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Ua } from "./useChartAccessibility-9icAAmYg.js";
10
+ import { u as Ba } from "./useTimeLabelCollider-CIsgDrl9.js";
11
+ import Wa from "./img-DD_2wgY3.js";
12
+ import Ya from "./Title-VLWyIYrj.js";
13
+ import { _ as Xa } from "./Shape-CWIa2nta.js";
14
+ import Ga from "./Legend-DiGLrlzP.js";
15
+ import { S as Ja } from "./Slicer-DYuvPkEM.js";
16
+ import { _ as qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const Za = ["id"], Ka = ["xmlns", "viewBox"], Qa = ["x", "y", "width", "height"], ja = { key: 1 }, el = ["id"], tl = ["stop-color"], al = ["stop-color"], ll = ["stop-color"], sl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], nl = { key: 0 }, ul = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], cl = { key: 0 }, hl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], vl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], dl = { key: 0 }, yl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], fl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["transform", "font-size", "fill", "font-weight"], pl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["x", "y", "font-size", "font-weight", "fill"], kl = ["x", "y", "font-size", "fill", "font-weight"], wl = ["x", "y", "font-size", "font-weight", "fill"], Ll = ["x1", "x2", "y1", "y2", "stroke"], zl = ["x", "y", "font-size", "font-weight", "fill"], Cl = ["x1", "x2", "y1", "y2", "stroke"], _l = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Sl = { key: 0 }, $l = { key: 1 }, Tl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ml = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Al = { key: 0 }, Nl = { key: 1 }, Il = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Rl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ol = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Pl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], Vl = {
18
+ key: 3,
19
+ class: "vue-data-ui-watermark"
20
+ }, El = ["onClick"], Dl = ["innerHTML"], Fl = {
21
+ __name: "vue-ui-stackbar",
22
+ props: {
23
+ config: {
24
+ type: Object,
25
+ default() {
26
+ return {};
27
+ }
28
+ },
29
+ dataset: {
30
+ type: Array,
31
+ default() {
32
+ return [];
33
+ }
34
+ }
35
+ },
36
+ emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
37
+ setup(Ce, { expose: Dt, emit: Ft }) {
38
+ const Ht = te(() => import("./Tooltip-BS5naLS2.js")), Ut = te(() => import("./vue-ui-accordion-Cpovz3RE.js")), Bt = te(() => import("./DataTable-B3yakHEM.js")), Wt = te(() => import("./PenAndPaper-JoUN7Ink.js")), Yt = te(() => import("./UserOptions-BV_xM-sB.js")), Xt = te(() => import("./PackageVersion-6s4eI8W7.js")), { vue_ui_stackbar: Gt } = wa(), Jt = pa(), f = Ce, _e = Ft, Se = x({
39
+ get() {
40
+ return !!f.dataset && f.dataset.length;
41
+ },
42
+ set(a) {
43
+ return a;
44
+ }
45
+ }), P = b(null), V = b(At()), $e = b(!1), Te = b(null), Me = b(""), S = b([]), Ue = b(0), Be = b(null), We = b(null), Ye = b(null), Xe = b(null), Ge = b(0), ne = b(!1), ue = b(null), B = b(!1), Je = b(0), qt = b(0), Zt = b(0), qe = b(null), Ae = b(null), Ne = b(null), W = b(null), Y = b(null), Kt = b(null), Ze = b(null);
46
+ Ct(() => {
47
+ Pe();
48
+ });
49
+ const e = b(Re()), { loading: re, FINAL_DATASET: ce, manualLoading: he } = Ea({
50
+ ...xa(f),
51
+ FINAL_CONFIG: e,
52
+ prepareConfig: Re,
53
+ callback: () => {
54
+ Promise.resolve().then(async () => {
55
+ await Ve();
56
+ });
57
+ },
58
+ skeletonDataset: [
59
+ {
60
+ name: "",
61
+ series: [2, 3, 5, 8, 13, 21],
62
+ color: "#BABABA"
63
+ },
64
+ {
65
+ name: "",
66
+ series: [1, 2, 3, 5, 8, 13],
67
+ color: "#CACACA"
68
+ }
69
+ ],
70
+ skeletonConfig: La({
71
+ defaultConfig: e.value,
72
+ userConfig: {
73
+ userOptions: { show: !1 },
74
+ useCssAnimation: !1,
75
+ table: { show: !1 },
76
+ tooltip: { show: !1 },
77
+ style: {
78
+ chart: {
79
+ backgroundColor: "#99999930",
80
+ bars: {
81
+ totalValues: { show: !1 },
82
+ dataLabels: { show: !1 }
83
+ },
84
+ grid: {
85
+ scale: {
86
+ scaleMin: 0,
87
+ scaleMax: 40
88
+ },
89
+ x: {
90
+ axisColor: "#6A6A6A",
91
+ linesColor: "#6A6A6A",
92
+ axisName: { show: !1 },
93
+ timeLabels: { show: !1 }
94
+ },
95
+ y: {
96
+ axisColor: "#6A6A6A",
97
+ linesColor: "#6A6A6A",
98
+ axisName: { show: !1 },
99
+ axisLabels: { show: !1 }
100
+ }
101
+ },
102
+ legend: {
103
+ backgroundColor: "transparent"
104
+ },
105
+ padding: {
106
+ left: 24,
107
+ right: 24,
108
+ bottom: 12
109
+ },
110
+ zoom: {
111
+ show: !1,
112
+ startIndex: null,
113
+ endIndex: null
114
+ }
115
+ }
116
+ }
117
+ }
118
+ })
119
+ }), { userOptionsVisible: Ie, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = Ha({ config: e.value }), { svgRef: je } = Ua({ config: e.value.style.chart.title });
120
+ function Re() {
121
+ const a = Et({
122
+ userConfig: f.config,
123
+ defaultConfig: Gt
124
+ });
125
+ let l = {};
126
+ return a.theme ? l = {
127
+ ...Et({
128
+ userConfig: Ca.vue_ui_stackbar[a.theme] || f.config,
129
+ defaultConfig: a
130
+ }),
131
+ customPalette: za[a.theme] || ke
132
+ } : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
133
+ }
134
+ const et = x(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), tt = x(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
135
+ De(() => f.config, (a) => {
136
+ re.value || (e.value = Re()), Ie.value = !e.value.userOptions.showOnChartHover, Pe(), Je.value += 1, qt.value += 1, Zt.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
137
+ }, { deep: !0 }), De(() => f.dataset, (a) => {
138
+ Array.isArray(a) && a.length > 0 && (he.value = !1), nt();
139
+ }, { deep: !0 });
140
+ const z = b({
141
+ dataLabels: {
142
+ show: e.value.style.chart.bars.dataLabels.show
143
+ },
144
+ showTable: e.value.table.show,
145
+ showTooltip: e.value.style.chart.tooltip.show
146
+ });
147
+ De(e, () => {
148
+ z.value = {
149
+ dataLabels: {
150
+ show: e.value.style.chart.bars.dataLabels.show
151
+ },
152
+ showTable: e.value.table.show,
153
+ showTooltip: e.value.style.chart.tooltip.show
154
+ };
155
+ }, { immediate: !0 });
156
+ const { isPrinting: at, isImaging: lt, generatePdf: st, generateImage: rt } = Va({
157
+ elementId: `stackbar_${V.value}`,
158
+ fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
159
+ options: e.value.userOptions.print
160
+ }), j = b({
161
+ width: e.value.style.chart.width,
162
+ height: e.value.style.chart.height,
163
+ paddingRatio: {
164
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
165
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
166
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
167
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
168
+ }
169
+ }), Qt = x(() => _a(e.value.customPalette)), E = _t(null), ee = _t(null), ot = b(null);
170
+ Ct(() => {
171
+ Pe();
172
+ });
173
+ const Oe = x(() => !!e.value.debug);
174
+ function Pe() {
175
+ if (Nt(f.dataset) ? (It({
176
+ componentName: "VueUiStackbar",
177
+ type: "dataset",
178
+ debug: Oe.value
179
+ }), he.value = !0) : f.dataset.forEach((a, l) => {
180
+ Sa({
181
+ datasetObject: a,
182
+ requiredAttributes: ["name", "series"]
183
+ }).forEach((t) => {
184
+ Se.value = !1, It({
185
+ componentName: "VueUiStackbar",
186
+ type: "datasetSerieAttribute",
187
+ property: t,
188
+ index: l,
189
+ debug: Oe.value
190
+ }), he.value = !0;
191
+ });
192
+ }), Nt(f.dataset) || (he.value = e.value.loading), setTimeout(() => {
193
+ B.value = !0;
194
+ }, 10), e.value.responsive) {
195
+ const a = He(() => {
196
+ B.value = !1;
197
+ const { width: l, height: t } = Pa({
198
+ chart: P.value,
199
+ title: e.value.style.chart.title.text ? Be.value : null,
200
+ legend: e.value.style.chart.legend.show ? We.value : null,
201
+ slicer: e.value.style.chart.zoom.show && F.value > 1 ? Ye.value : null,
202
+ source: Xe.value
203
+ });
204
+ requestAnimationFrame(() => {
205
+ j.value.width = l, j.value.height = t - 12, clearTimeout(ot.value), ot.value = setTimeout(() => {
206
+ B.value = !0;
207
+ }, 10);
208
+ });
209
+ });
210
+ E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(a), ee.value = P.value.parentNode, E.value.observe(ee.value);
211
+ }
212
+ Ve();
213
+ }
214
+ St(() => {
215
+ E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect());
216
+ });
217
+ function jt() {
218
+ let a = 0;
219
+ e.value.orientation === "vertical" && W.value && (a = Array.from(W.value.querySelectorAll("text")).reduce((s, c) => {
220
+ const u = c.getComputedTextLength();
221
+ return u > s ? u : s;
222
+ }, 0)), e.value.orientation === "horizontal" && Y.value && (a = Array.from(Y.value.querySelectorAll("text")).reduce((s, c) => {
223
+ const u = c.getComputedTextLength();
224
+ return u > s ? u : s;
225
+ }, 0));
226
+ const l = Ne.value ? Ne.value.getBoundingClientRect().width : 0;
227
+ return a + l + (l ? 24 : 0);
228
+ }
229
+ const ve = b(0), de = b(0), ea = He((a) => {
230
+ ve.value = a;
231
+ }, 100);
232
+ $t((a) => {
233
+ const l = e.value.orientation === "vertical" ? Y.value : W.value;
234
+ if (!l) return;
235
+ const t = new ResizeObserver((s) => {
236
+ ea(s[0].contentRect.height);
237
+ });
238
+ t.observe(l), a(() => t.disconnect());
239
+ });
240
+ const ta = He((a) => {
241
+ de.value = a + e.value.style.chart.bars.totalValues.fontSize;
242
+ }, 100);
243
+ $t((a) => {
244
+ if (e.value.orientation === "vertical") return;
245
+ const l = Ze.value;
246
+ if (!l) return;
247
+ const t = new ResizeObserver((s) => {
248
+ ta(s[0].contentRect.width);
249
+ });
250
+ t.observe(l), a(() => t.disconnect());
251
+ }), St(() => {
252
+ ve.value = 0, de.value = 0;
253
+ });
254
+ const it = x(() => {
255
+ let a = 0;
256
+ Ae.value && (a = Ae.value.getBBox().height);
257
+ let l = 0;
258
+ return e.value.orientation === "vertical" && Y.value && (l = ve.value), e.value.orientation === "horizontal" && W.value && (l = ve.value), a + l;
259
+ }), n = x(() => {
260
+ const { height: a, width: l } = j.value, { right: t } = j.value.paddingRatio;
261
+ let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
262
+ e.value.style.chart.grid.y.axisLabels.show && (c = jt());
263
+ const u = e.value.style.chart.padding.top + s, _ = l - l * t - de.value, X = a - e.value.style.chart.padding.bottom - it.value - s, G = e.value.style.chart.padding.left + c, J = l - G - l * t - de.value, R = a - u - e.value.style.chart.padding.bottom - it.value - s;
264
+ return {
265
+ chartHeight: a,
266
+ chartWidth: l,
267
+ top: u,
268
+ right: _,
269
+ bottom: X,
270
+ left: G,
271
+ width: Math.max(0, J),
272
+ height: Math.max(0, R)
273
+ };
274
+ }), D = x(() => ce.value.map((a, l) => {
275
+ const t = $a(a.color) || Qt.value[l] || ke[l] || ke[l % ke.length];
276
+ return {
277
+ ...a,
278
+ // In distributed mode, all values are converted to positive
279
+ series: JSON.parse(JSON.stringify(a.series)).map((s) => e.value.style.chart.bars.distributed ? Math.abs(s) : s),
280
+ // Store signs to manage display of neg values in distributed mode
281
+ signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
282
+ absoluteIndex: l,
283
+ id: At(),
284
+ color: t
285
+ };
286
+ })), F = x(() => Math.max(...D.value.filter((a) => !S.value.includes(a.id)).map((a) => a.series.length))), h = b({
287
+ start: 0,
288
+ end: Math.max(...ce.value.map((a) => a.series.length))
289
+ });
290
+ function nt() {
291
+ Ve();
292
+ }
293
+ async function Ve() {
294
+ await Tt(), await Tt();
295
+ const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = qe.value, s = Math.max(...ce.value.map((c) => c.series.length));
296
+ (a != null || l != null) && t ? (a != null && t.setStartValue(a), l != null && t.setEndValue(aa(l + 1))) : (h.value = { start: 0, end: s }, Ge.value += 1);
297
+ }
298
+ function aa(a) {
299
+ const l = Math.max(...ce.value.map((t) => t.series.length));
300
+ return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
301
+ }
302
+ const d = x(() => {
303
+ let a;
304
+ return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
305
+ }), oe = x(() => we(D.value.filter((a) => !S.value.includes(a.id))).slice(h.value.start, h.value.end)), la = x(() => we(D.value.filter((a) => !S.value.includes(a.id)).map((a) => ({
306
+ ...a,
307
+ series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
308
+ }))).slice(h.value.start, h.value.end)), ye = x(() => {
309
+ const a = D.value.filter((l) => !S.value.includes(l.id));
310
+ return {
311
+ positive: we(a.map((l) => ({
312
+ ...l,
313
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
314
+ }))),
315
+ negative: we(a.map((l) => ({
316
+ ...l,
317
+ series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
318
+ })))
319
+ };
320
+ }), I = x(() => {
321
+ const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...ye.value.positive), l = Math.min(...ye.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ot(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
322
+ return s.ticks.map((c) => ({
323
+ zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
324
+ y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
325
+ x: n.value.left - 8,
326
+ horizontal_zero: n.value.left + n.value.width * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
327
+ horizontal_x: n.value.left + n.value.width * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
328
+ horizontal_y: n.value.bottom - 8,
329
+ value: c
330
+ }));
331
+ }), $ = x(() => Fa({
332
+ values: e.value.style.chart.grid.x.timeLabels.values,
333
+ maxDatapoints: F.value,
334
+ formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
335
+ start: h.value.start,
336
+ end: h.value.end
337
+ })), w = x(() => {
338
+ if (!Se.value && !re.value) return [];
339
+ let a = Array(F.value).fill(0), l = Array(F.value).fill(0), t = Array(F.value).fill(0), s = Array(F.value).fill(0);
340
+ const c = Math.max(...ye.value.positive) || 0, u = Math.min(...ye.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, X = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Rt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: G, max: J } = X, R = J + (G >= 0 ? 0 : Math.abs(G)) || 1, T = n.value.height, pe = n.value.width, Lt = I.value[0] ? I.value[0].zero : n.value.bottom, zt = I.value[0] ? I.value[0].horizontal_zero : n.value.left;
341
+ return D.value.filter((ie) => !S.value.includes(ie.id)).map((ie) => {
342
+ const O = ie.series.slice(h.value.start, h.value.end), ha = ie.signedSeries.slice(h.value.start, h.value.end), va = O.map((p, k) => n.value.left + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), da = O.map((p, k) => n.value.top + d.value * k + d.value * e.value.style.chart.bars.gapRatio / 4), ya = O.map((p, k) => {
343
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
344
+ let q, N;
345
+ return p > 0 ? (N = T * A, q = Lt - N - a[k], a[k] += N) : (N = T * A, q = Lt + t[k], t[k] += Math.abs(N)), q;
346
+ }), ga = O.map((p, k) => {
347
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
348
+ let q, N;
349
+ return p > 0 ? (N = pe * A, q = zt + l[k], l[k] += N) : (N = pe * A, q = zt - Math.abs(N) - s[k], s[k] += Math.abs(N)), q;
350
+ }), ba = O.map((p, k) => {
351
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
352
+ return p > 0 ? T * A : T * Math.abs(A);
353
+ }), fa = O.map((p, k) => {
354
+ const A = e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / R;
355
+ return p > 0 ? pe * A : pe * Math.abs(A);
356
+ }), ma = O.map((p) => Math.abs(p)).reduce((p, k) => p + k, 0);
357
+ return {
358
+ ...ie,
359
+ proportions: O.map((p, k) => e.value.style.chart.bars.distributed ? (p || 0) / oe.value[k] : (p || 0) / ma),
360
+ series: O,
361
+ signedSeries: ha,
362
+ x: va,
363
+ y: ya,
364
+ height: ba,
365
+ horizontal_width: fa,
366
+ horizontal_y: da,
367
+ horizontal_x: ga
368
+ };
369
+ });
370
+ }), ut = x(() => la.value.map((a, l) => ({
371
+ value: a,
372
+ sign: a >= 0 ? 1 : -1
373
+ })));
374
+ function ge(a, l, t, s, c) {
375
+ const u = c === -1 && a >= 0 ? -a : a;
376
+ return ze(
377
+ e.value.style.chart.bars.dataLabels.formatter,
378
+ u,
379
+ Q({
380
+ p: e.value.style.chart.bars.dataLabels.prefix,
381
+ v: u,
382
+ s: e.value.style.chart.bars.dataLabels.suffix,
383
+ r: e.value.style.chart.bars.dataLabels.rounding
384
+ }),
385
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
386
+ );
387
+ }
388
+ function ct(a, l, t, s) {
389
+ return ze(
390
+ e.value.style.chart.bars.dataLabels.formatter,
391
+ a,
392
+ Q({
393
+ v: isNaN(a) ? 0 : a,
394
+ s: "%",
395
+ r: e.value.style.chart.bars.dataLabels.rounding
396
+ }),
397
+ { datapoint: l, seriesIndex: t, datapointIndex: s }
398
+ );
399
+ }
400
+ function ht(a) {
401
+ const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
402
+ name: t.name,
403
+ value: t.series[a] === 0 ? 0 : t.series[a] || null,
404
+ proportion: t.proportions[a] || null,
405
+ color: t.color,
406
+ id: t.id
407
+ }));
408
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), _e("selectDatapoint", { datapoint: l, period: $.value[a] });
409
+ }
410
+ function vt(a) {
411
+ return JSON.parse(JSON.stringify(w.value)).map((l) => ({
412
+ name: l.name,
413
+ absoluteIndex: l.absoluteIndex,
414
+ value: l.series[a] === 0 ? 0 : (l.signedSeries[a] === -1 && l.series[a] >= 0 ? -l.series[a] : l.series[a]) || null,
415
+ proportion: l.proportions[a] || null,
416
+ color: l.color,
417
+ id: l.id
418
+ }));
419
+ }
420
+ function dt(a) {
421
+ if (e.value.events.datapointLeave) {
422
+ const l = vt(a);
423
+ e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
424
+ }
425
+ $e.value = null, ue.value = null;
426
+ }
427
+ function yt(a) {
428
+ ue.value = a, $e.value = !0;
429
+ const l = e.value.style.chart.tooltip.customFormat, t = vt(a);
430
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Te.value = {
431
+ datapoint: t,
432
+ seriesIndex: a,
433
+ config: e.value,
434
+ series: w.value
435
+ };
436
+ const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
437
+ if (Vt(l) && Oa(() => l({
438
+ seriesIndex: a,
439
+ datapoint: t,
440
+ series: w.value,
441
+ config: e.value
442
+ })))
443
+ Me.value = l({
444
+ seriesIndex: a,
445
+ datapoint: t,
446
+ series: w.value,
447
+ config: e.value
448
+ });
449
+ else {
450
+ const {
451
+ showValue: c,
452
+ showPercentage: u,
453
+ borderColor: _,
454
+ roundingValue: X,
455
+ roundingPercentage: G
456
+ } = e.value.style.chart.tooltip;
457
+ let J = "";
458
+ $.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (J += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
459
+ const R = [
460
+ c && u ? "(" : "",
461
+ c && u ? ")" : ""
462
+ ];
463
+ t.reverse().forEach((T) => {
464
+ J += `
465
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
466
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${T.id})` : T.color}"/>${Jt.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${V.value}_${T.absoluteIndex})"/>` : ""}</svg>
467
+ ${T.name}${c || u ? ":" : ""} ${c ? Q({
468
+ p: e.value.style.chart.bars.dataLabels.prefix,
469
+ v: T.value,
470
+ s: e.value.style.chart.bars.dataLabels.suffix,
471
+ r: X
472
+ }) : ""} ${R[0]}${u ? Q({
473
+ v: isNaN(T.value / s) ? 0 : Math.abs(T.value) / s * 100,
474
+ // Negs are absed to show relative proportion to absolute total. It's opinionated.
475
+ s: "%",
476
+ r: G
477
+ }) : ""}${R[1]}
478
+ </div>
479
+ `;
480
+ }), Me.value = `<div>${J}</div>`;
481
+ }
482
+ }
483
+ const sa = x(() => j.value.width), ra = x(() => j.value.height);
484
+ Ba({
485
+ timeLabelsEls: e.value.orientation === "vertical" ? Y : W,
486
+ timeLabels: $,
487
+ slicer: h,
488
+ configRef: e,
489
+ rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
490
+ autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate"],
491
+ isAutoSize: !1,
492
+ width: sa,
493
+ height: ra
494
+ });
495
+ function gt(a) {
496
+ ne.value = a, Ue.value += 1;
497
+ }
498
+ function bt() {
499
+ z.value.showTable = !z.value.showTable;
500
+ }
501
+ function ft() {
502
+ z.value.dataLabels.show = !z.value.dataLabels.show;
503
+ }
504
+ function mt() {
505
+ z.value.showTooltip = !z.value.showTooltip;
506
+ }
507
+ function oa() {
508
+ return w.value;
509
+ }
510
+ const pt = x(() => {
511
+ if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
512
+ const a = w.value.map(({ name: t, color: s }) => ({
513
+ label: t,
514
+ color: s
515
+ })), l = [];
516
+ return $.value.forEach((t) => {
517
+ const s = [e.value.style.chart.grid.x.timeLabels.values[t.absoluteIndex] ? t.text : i + 1];
518
+ D.value.forEach((c) => {
519
+ s.push(Number((c.series[t.absoluteIndex] || 0).toFixed(e.value.table.td.roundingValue)));
520
+ }), l.push(s);
521
+ }), { head: a, body: l };
522
+ });
523
+ function xt(a = null) {
524
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...pt.value.head.map((_) => _.label)], s = pt.value.body, c = l.concat([t]).concat(s), u = Ia(c);
525
+ a ? a(u) : Ra({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
526
+ }
527
+ const be = x(() => {
528
+ const a = [""].concat(w.value.map((c) => c.name)).concat(' <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>');
529
+ let l = [];
530
+ for (let c = 0; c < F.value; c += 1) {
531
+ const u = w.value.map((_) => _.series[c] ?? 0).reduce((_, X) => _ + X, 0);
532
+ l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((_) => (_.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
533
+ }
534
+ const t = {
535
+ th: {
536
+ backgroundColor: e.value.table.th.backgroundColor,
537
+ color: e.value.table.th.color,
538
+ outline: e.value.table.th.outline
539
+ },
540
+ td: {
541
+ backgroundColor: e.value.table.td.backgroundColor,
542
+ color: e.value.table.td.color,
543
+ outline: e.value.table.td.outline
544
+ },
545
+ breakpoint: e.value.table.responsiveBreakpoint
546
+ }, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
547
+ return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
548
+ });
549
+ function ia(a, l) {
550
+ if (_e("selectLegend", w.value.find((t) => t.absoluteIndex === a)), S.value.includes(l.id))
551
+ S.value = S.value.filter((t) => t !== l.id);
552
+ else {
553
+ if (S.value.length === D.value.length - 1) return;
554
+ S.value.push(l.id);
555
+ }
556
+ }
557
+ const kt = x(() => D.value.map((a, l) => ({
558
+ ...a,
559
+ shape: "square"
560
+ })).map((a) => ({
561
+ ...a,
562
+ opacity: S.value.includes(a.id) ? 0.5 : 1,
563
+ segregate: () => ia(a.absoluteIndex, a),
564
+ isSegregated: S.value.includes(a.id)
565
+ }))), na = x(() => ({
566
+ cy: "stackbar-legend",
567
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
568
+ color: e.value.style.chart.legend.color,
569
+ fontSize: e.value.style.chart.legend.fontSize,
570
+ paddingBottom: 12,
571
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
572
+ })), fe = b(!1);
573
+ function Ee() {
574
+ fe.value = !fe.value;
575
+ }
576
+ function me(a, l) {
577
+ const t = JSON.parse(JSON.stringify(w.value)).map((s) => ({
578
+ name: s.name,
579
+ value: s.series[l] === 0 ? 0 : (s.signedSeries[l] === -1 && s.series[l] >= 0 ? -s.series[l] : s.series[l]) || null,
580
+ proportion: s.proportions[l] || null,
581
+ color: s.color,
582
+ id: s.id
583
+ }));
584
+ _e("selectTimeLabel", {
585
+ datapoint: t,
586
+ absoluteIndex: a.absoluteIndex,
587
+ label: a.text
588
+ });
589
+ }
590
+ const ua = x(() => Math.max(...w.value.flatMap((a) => a.series)));
591
+ function wt(a, l) {
592
+ return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? tt.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : tt.value ? (et.value && Oe.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."), a > ua.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : et.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
593
+ }
594
+ async function ca({ scale: a = 2 } = {}) {
595
+ if (!P.value) return;
596
+ const { width: l, height: t } = P.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await Wa({ domElement: P.value, base64: !0, img: !0, scale: a });
597
+ return {
598
+ imageUri: c,
599
+ base64: u,
600
+ title: e.value.style.chart.title.text,
601
+ width: l,
602
+ height: t,
603
+ aspectRatio: s
604
+ };
605
+ }
606
+ return Dt({
607
+ getData: oa,
608
+ getImage: ca,
609
+ generatePdf: st,
610
+ generateCsv: xt,
611
+ generateImage: rt,
612
+ toggleTable: bt,
613
+ toggleLabels: ft,
614
+ toggleTooltip: mt,
615
+ toggleAnnotator: Ee,
616
+ toggleFullscreen: gt
617
+ }), (a, l) => (r(), o("div", {
618
+ id: `stackbar_${V.value}`,
619
+ ref_key: "stackbarChart",
620
+ ref: P,
621
+ class: ae({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
622
+ style: Z(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
623
+ onMouseenter: l[4] || (l[4] = () => v(Ke)(!0)),
624
+ onMouseleave: l[5] || (l[5] = () => v(Ke)(!1))
625
+ }, [
626
+ e.value.userOptions.buttons.annotator ? (r(), K(v(Wt), {
627
+ key: 0,
628
+ svgRef: v(je),
629
+ backgroundColor: e.value.style.chart.backgroundColor,
630
+ color: e.value.style.chart.color,
631
+ active: fe.value,
632
+ onClose: Ee
633
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
634
+ L(a.$slots, "userConfig", {}, void 0, !0),
635
+ e.value.style.chart.title.text ? (r(), o("div", {
636
+ key: 1,
637
+ ref_key: "chartTitle",
638
+ ref: Be,
639
+ style: "width:100%;background:transparent;padding-bottom:24px"
640
+ }, [
641
+ (r(), K(Ya, {
642
+ key: `title_${Je.value}`,
643
+ config: {
644
+ title: {
645
+ cy: "stackbar-title",
646
+ ...e.value.style.chart.title
647
+ },
648
+ subtitle: {
649
+ cy: "stackbar-subtitle",
650
+ ...e.value.style.chart.title.subtitle
651
+ }
652
+ }
653
+ }, null, 8, ["config"]))
654
+ ], 512)) : y("", !0),
655
+ e.value.userOptions.show && Se.value && (v(Qe) || v(Ie)) ? (r(), K(v(Yt), {
656
+ ref: "details",
657
+ key: `user_option_${Ue.value}`,
658
+ backgroundColor: e.value.style.chart.backgroundColor,
659
+ color: e.value.style.chart.color,
660
+ isPrinting: v(at),
661
+ isImaging: v(lt),
662
+ uid: V.value,
663
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
664
+ hasPdf: e.value.userOptions.buttons.pdf,
665
+ hasImg: e.value.userOptions.buttons.img,
666
+ hasXls: e.value.userOptions.buttons.csv,
667
+ hasTable: e.value.userOptions.buttons.table,
668
+ hasLabel: e.value.userOptions.buttons.labels,
669
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
670
+ isFullscreen: ne.value,
671
+ chartElement: P.value,
672
+ position: e.value.userOptions.position,
673
+ isTooltip: z.value.showTooltip,
674
+ titles: { ...e.value.userOptions.buttonTitles },
675
+ hasAnnotator: e.value.userOptions.buttons.annotator,
676
+ isAnnotation: fe.value,
677
+ callbacks: e.value.userOptions.callbacks,
678
+ printScale: e.value.userOptions.print.scale,
679
+ onToggleFullscreen: gt,
680
+ onGeneratePdf: v(st),
681
+ onGenerateCsv: xt,
682
+ onGenerateImage: v(rt),
683
+ onToggleTable: bt,
684
+ onToggleLabels: ft,
685
+ onToggleTooltip: mt,
686
+ onToggleAnnotator: Ee,
687
+ style: Z({
688
+ visibility: v(Qe) ? v(Ie) ? "visible" : "hidden" : "visible"
689
+ })
690
+ }, Mt({ _: 2 }, [
691
+ a.$slots.menuIcon ? {
692
+ name: "menuIcon",
693
+ fn: C(({ isOpen: t, color: s }) => [
694
+ L(a.$slots, "menuIcon", H(U({ isOpen: t, color: s })), void 0, !0)
695
+ ]),
696
+ key: "0"
697
+ } : void 0,
698
+ a.$slots.optionTooltip ? {
699
+ name: "optionTooltip",
700
+ fn: C(() => [
701
+ L(a.$slots, "optionTooltip", {}, void 0, !0)
702
+ ]),
703
+ key: "1"
704
+ } : void 0,
705
+ a.$slots.optionPdf ? {
706
+ name: "optionPdf",
707
+ fn: C(() => [
708
+ L(a.$slots, "optionPdf", {}, void 0, !0)
709
+ ]),
710
+ key: "2"
711
+ } : void 0,
712
+ a.$slots.optionCsv ? {
713
+ name: "optionCsv",
714
+ fn: C(() => [
715
+ L(a.$slots, "optionCsv", {}, void 0, !0)
716
+ ]),
717
+ key: "3"
718
+ } : void 0,
719
+ a.$slots.optionImg ? {
720
+ name: "optionImg",
721
+ fn: C(() => [
722
+ L(a.$slots, "optionImg", {}, void 0, !0)
723
+ ]),
724
+ key: "4"
725
+ } : void 0,
726
+ a.$slots.optionTable ? {
727
+ name: "optionTable",
728
+ fn: C(() => [
729
+ L(a.$slots, "optionTable", {}, void 0, !0)
730
+ ]),
731
+ key: "5"
732
+ } : void 0,
733
+ a.$slots.optionLabels ? {
734
+ name: "optionLabels",
735
+ fn: C(() => [
736
+ L(a.$slots, "optionLabels", {}, void 0, !0)
737
+ ]),
738
+ key: "6"
739
+ } : void 0,
740
+ a.$slots.optionFullscreen ? {
741
+ name: "optionFullscreen",
742
+ fn: C(({ toggleFullscreen: t, isFullscreen: s }) => [
743
+ L(a.$slots, "optionFullscreen", H(U({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
744
+ ]),
745
+ key: "7"
746
+ } : void 0,
747
+ a.$slots.optionAnnotator ? {
748
+ name: "optionAnnotator",
749
+ fn: C(({ toggleAnnotator: t, isAnnotator: s }) => [
750
+ L(a.$slots, "optionAnnotator", H(U({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
751
+ ]),
752
+ key: "8"
753
+ } : void 0
754
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
755
+ (r(), o("svg", {
756
+ ref_key: "svgRef",
757
+ ref: je,
758
+ xmlns: v(Ta),
759
+ viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
760
+ class: ae({ "vue-data-ui-loading": v(re) }),
761
+ style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
762
+ }, [
763
+ xe(v(Xt)),
764
+ a.$slots["chart-background"] ? (r(), o("foreignObject", {
765
+ key: 0,
766
+ x: n.value.left,
767
+ y: n.value.top,
768
+ width: n.value.width <= 0 ? 10 : n.value.width,
769
+ height: n.value.height <= 0 ? 10 : n.value.height,
770
+ style: {
771
+ pointerEvents: "none"
772
+ }
773
+ }, [
774
+ L(a.$slots, "chart-background", {}, void 0, !0)
775
+ ], 8, Qa)) : y("", !0),
776
+ e.value.style.chart.bars.gradient.show ? (r(), o("defs", ja, [
777
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("linearGradient", {
778
+ id: `gradient_${t.id}`,
779
+ x1: "0%",
780
+ y1: "0%",
781
+ x2: "0%",
782
+ y2: "100%"
783
+ }, [
784
+ le("stop", {
785
+ offset: "0%",
786
+ "stop-color": t.color
787
+ }, null, 8, tl),
788
+ le("stop", {
789
+ offset: "61.8%",
790
+ "stop-color": v(Ma)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
791
+ }, null, 8, al),
792
+ le("stop", {
793
+ offset: "100%",
794
+ "stop-color": t.color
795
+ }, null, 8, ll)
796
+ ], 8, el))), 256))
797
+ ])) : y("", !0),
798
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 2 }, m(I.value, (t, s) => (r(), o("line", {
799
+ x1: n.value.left,
800
+ x2: n.value.right,
801
+ y1: t.y,
802
+ y2: t.y,
803
+ stroke: e.value.style.chart.grid.x.linesColor,
804
+ "stroke-width": e.value.style.chart.grid.x.linesThickness,
805
+ "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
806
+ "stroke-linecap": "round"
807
+ }, null, 8, sl))), 256)) : y("", !0),
808
+ e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 3 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
809
+ x1: n.value.left,
810
+ x2: n.value.right,
811
+ y1: n.value.top + d.value * s,
812
+ y2: n.value.top + d.value * s,
813
+ stroke: e.value.style.chart.grid.x.linesColor,
814
+ "stroke-width": e.value.style.chart.grid.x.linesThickness,
815
+ "stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
816
+ "stroke-linecap": "round"
817
+ }, null, 8, rl))), 256)) : y("", !0),
818
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 4 }, m(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
819
+ x1: n.value.left + d.value * s,
820
+ x2: n.value.left + d.value * s,
821
+ y1: n.value.top,
822
+ y2: n.value.bottom,
823
+ stroke: e.value.style.chart.grid.y.linesColor,
824
+ "stroke-width": e.value.style.chart.grid.y.linesThickness,
825
+ "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
826
+ "stroke-linecap": "round"
827
+ }, null, 8, ol))), 256)) : y("", !0),
828
+ e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 5 }, m(I.value, (t, s) => (r(), o("line", {
829
+ x1: t.horizontal_x,
830
+ x2: t.horizontal_x,
831
+ y1: n.value.top,
832
+ y2: n.value.bottom,
833
+ stroke: e.value.style.chart.grid.y.linesColor,
834
+ "stroke-width": e.value.style.chart.grid.y.linesThickness,
835
+ "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
836
+ "stroke-linecap": "round"
837
+ }, null, 8, il))), 256)) : y("", !0),
838
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
839
+ a.$slots.pattern ? (r(), o("defs", nl, [
840
+ L(a.$slots, "pattern", Fe({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${V.value}_${t.absoluteIndex}` }), void 0, !0)
841
+ ])) : y("", !0),
842
+ e.value.orientation === "vertical" ? (r(), o(g, { key: 1 }, [
843
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
844
+ x: c,
845
+ y: t.y[u] < 0 ? 0 : t.y[u],
846
+ height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
847
+ rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
848
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
849
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
850
+ stroke: e.value.style.chart.backgroundColor,
851
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
852
+ "stroke-linecap": "round",
853
+ "stroke-linejoin": "round",
854
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
855
+ }, null, 10, ul))), 256)),
856
+ a.$slots.pattern ? (r(), o("g", cl, [
857
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o("rect", {
858
+ x: c,
859
+ y: t.y[u] < 0 ? 0 : t.y[u],
860
+ height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
861
+ rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
862
+ width: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
863
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
864
+ stroke: e.value.style.chart.backgroundColor,
865
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
866
+ "stroke-linecap": "round",
867
+ "stroke-linejoin": "round",
868
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
869
+ }, null, 10, hl))), 256))
870
+ ])) : y("", !0)
871
+ ], 64)) : (r(), o(g, { key: 2 }, [
872
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
873
+ x: v(Le)(c, n.value.left),
874
+ y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
875
+ width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
876
+ rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
877
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
878
+ fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
879
+ stroke: e.value.style.chart.backgroundColor,
880
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
881
+ "stroke-linecap": "round",
882
+ "stroke-linejoin": "round",
883
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
884
+ }, null, 10, vl))), 256)),
885
+ a.$slots.pattern ? (r(), o("g", dl, [
886
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o("rect", {
887
+ x: v(Le)(c, n.value.left),
888
+ y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
889
+ width: v(Le)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
890
+ rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
891
+ height: d.value * (1 - e.value.style.chart.bars.gapRatio / 2),
892
+ fill: `url(#pattern_${V.value}_${t.absoluteIndex})`,
893
+ stroke: e.value.style.chart.backgroundColor,
894
+ "stroke-width": e.value.style.chart.bars.strokeWidth,
895
+ "stroke-linecap": "round",
896
+ "stroke-linejoin": "round",
897
+ class: ae({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": B.value })
898
+ }, null, 10, yl))), 256))
899
+ ])) : y("", !0)
900
+ ], 64))
901
+ ]))), 256)),
902
+ e.value.style.chart.grid.x.showAxis ? (r(), o("line", {
903
+ key: 6,
904
+ x1: n.value.left,
905
+ x2: n.value.right,
906
+ y1: n.value.bottom,
907
+ y2: n.value.bottom,
908
+ stroke: e.value.style.chart.grid.x.axisColor,
909
+ "stroke-width": e.value.style.chart.grid.x.axisThickness,
910
+ "stroke-linecap": "round",
911
+ "stroke-linejoin": "round"
912
+ }, null, 8, gl)) : y("", !0),
913
+ e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
914
+ key: 7,
915
+ x1: n.value.left,
916
+ x2: n.value.left,
917
+ y1: n.value.top,
918
+ y2: n.value.bottom,
919
+ stroke: e.value.style.chart.grid.y.axisColor,
920
+ "stroke-width": e.value.style.chart.grid.y.axisThickness,
921
+ "stroke-linecap": "round",
922
+ "stroke-linejoin": "round"
923
+ }, null, 8, bl)) : y("", !0),
924
+ e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
925
+ key: 8,
926
+ ref_key: "xAxisLabel",
927
+ ref: Ae,
928
+ x: n.value.left + n.value.width / 2,
929
+ y: n.value.chartHeight - 3,
930
+ "font-size": e.value.style.chart.grid.x.axisName.fontSize,
931
+ fill: e.value.style.chart.grid.x.axisName.color,
932
+ "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
933
+ "text-anchor": "middle"
934
+ }, M(e.value.style.chart.grid.x.axisName.text), 9, fl)) : y("", !0),
935
+ e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
936
+ key: 9,
937
+ ref_key: "yAxisLabel",
938
+ ref: Ne,
939
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${n.value.top + n.value.height / 2}) rotate(-90)`,
940
+ "font-size": e.value.style.chart.grid.y.axisName.fontSize,
941
+ fill: e.value.style.chart.grid.y.axisName.color,
942
+ "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
943
+ "text-anchor": "middle"
944
+ }, M(e.value.style.chart.grid.y.axisName.text), 9, ml)) : y("", !0),
945
+ z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(g, { key: 10 }, [
946
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
947
+ (r(!0), o(g, null, m(t.x, (c, u) => (r(), o(g, null, [
948
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
949
+ key: 0,
950
+ x: c + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
951
+ y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
952
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
953
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
954
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
955
+ "text-anchor": "middle"
956
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, pl)) : y("", !0)
957
+ ], 64))), 256))
958
+ ]))), 256)),
959
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
960
+ key: 0,
961
+ ref_key: "sumTop",
962
+ ref: Kt
963
+ }, [
964
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
965
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
966
+ key: 0,
967
+ x: n.value.left + d.value * s + d.value / 2,
968
+ y: e.value.style.chart.bars.totalValues.fontSize,
969
+ "text-anchor": "middle",
970
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
971
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
972
+ fill: e.value.style.chart.bars.totalValues.color
973
+ }, M(ge(t.value, t, s, t.sign)), 9, xl)) : y("", !0)
974
+ ], 64))), 256))
975
+ ], 512)) : y("", !0)
976
+ ], 64)) : y("", !0),
977
+ z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(g, { key: 11 }, [
978
+ (r(!0), o(g, null, m(w.value, (t, s) => (r(), o("g", null, [
979
+ (r(!0), o(g, null, m(t.horizontal_x, (c, u) => (r(), o(g, null, [
980
+ wt(t.series[u], t.proportions[u]) ? (r(), o("text", {
981
+ key: 0,
982
+ x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
983
+ y: t.horizontal_y[u] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
984
+ "font-size": e.value.style.chart.bars.dataLabels.fontSize,
985
+ fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Pt)(t.color) : e.value.style.chart.bars.dataLabels.color,
986
+ "font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
987
+ "text-anchor": "middle"
988
+ }, M(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ct(t.proportions[u] * 100, t, s, u) : ge(t.series[u], t, s, u, t.signedSeries[u])), 9, kl)) : y("", !0)
989
+ ], 64))), 256))
990
+ ]))), 256)),
991
+ e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
992
+ key: 0,
993
+ ref_key: "sumRight",
994
+ ref: Ze
995
+ }, [
996
+ (r(!0), o(g, null, m(ut.value, (t, s) => (r(), o(g, null, [
997
+ !e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
998
+ key: 0,
999
+ x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
1000
+ y: n.value.top + d.value * s + d.value / 2,
1001
+ "text-anchor": "start",
1002
+ "font-size": e.value.style.chart.bars.totalValues.fontSize,
1003
+ "font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1004
+ fill: e.value.style.chart.bars.totalValues.color
1005
+ }, M(ge(t.value, t, s, t.sign)), 9, wl)) : y("", !0)
1006
+ ], 64))), 256))
1007
+ ], 512)) : y("", !0)
1008
+ ], 64)) : y("", !0),
1009
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (r(), o("g", {
1010
+ key: 12,
1011
+ ref_key: "scaleLabels",
1012
+ ref: W
1013
+ }, [
1014
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1015
+ x1: n.value.left,
1016
+ x2: n.value.left - 6,
1017
+ y1: t.y,
1018
+ y2: t.y,
1019
+ stroke: e.value.style.chart.grid.x.axisColor,
1020
+ "stroke-width": 1
1021
+ }, null, 8, Ll))), 256)),
1022
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1023
+ x: t.x,
1024
+ y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1025
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1026
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1027
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1028
+ "text-anchor": "end"
1029
+ }, M(v(ze)(
1030
+ e.value.style.chart.grid.y.axisLabels.formatter,
1031
+ t.value,
1032
+ v(Q)({
1033
+ p: e.value.style.chart.bars.dataLabels.prefix,
1034
+ v: t.value,
1035
+ s: e.value.style.chart.bars.dataLabels.suffix,
1036
+ r: e.value.style.chart.grid.y.axisLabels.rounding
1037
+ }),
1038
+ { datapoint: t }
1039
+ )), 9, zl))), 256))
1040
+ ], 512)) : y("", !0),
1041
+ e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
1042
+ key: 13,
1043
+ ref_key: "scaleLabels",
1044
+ ref: W
1045
+ }, [
1046
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("line", {
1047
+ x1: t.horizontal_x,
1048
+ x2: t.horizontal_x,
1049
+ y1: n.value.bottom,
1050
+ y2: n.value.bottom + 6,
1051
+ stroke: e.value.style.chart.grid.x.axisColor,
1052
+ "stroke-width": 1,
1053
+ "stroke-linecap": "round"
1054
+ }, null, 8, Cl))), 256)),
1055
+ (r(!0), o(g, null, m(I.value, (t, s) => (r(), o("text", {
1056
+ class: "vue-data-ui-time-label",
1057
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1058
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1059
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1060
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1061
+ transform: `translate(${t.horizontal_x}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
1062
+ }, M(v(ze)(
1063
+ e.value.style.chart.grid.y.axisLabels.formatter,
1064
+ t.value,
1065
+ v(Q)({
1066
+ p: e.value.style.chart.bars.dataLabels.prefix,
1067
+ v: t.value,
1068
+ s: e.value.style.chart.bars.dataLabels.suffix,
1069
+ r: e.value.style.chart.grid.y.axisLabels.rounding
1070
+ }),
1071
+ { datapoint: t }
1072
+ )), 9, _l))), 256))
1073
+ ], 512)) : y("", !0),
1074
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
1075
+ key: 14,
1076
+ ref_key: "timeLabelsEls",
1077
+ ref: Y
1078
+ }, [
1079
+ a.$slots["time-label"] ? (r(), o("g", Sl, [
1080
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1081
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1082
+ x: n.value.left + d.value * s + d.value / 2,
1083
+ y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1084
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1085
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1086
+ transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1087
+ absoluteIndex: t.absoluteIndex,
1088
+ content: t.text,
1089
+ textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1090
+ show: !0
1091
+ }), void 0, !0)
1092
+ ]))), 256))
1093
+ ])) : (r(), o("g", $l, [
1094
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1095
+ String(t.text).includes(`
1096
+ `) ? (r(), o("text", {
1097
+ key: s + "-multi",
1098
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1099
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1100
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1101
+ transform: `
1102
+ translate(
1103
+ ${n.value.left + d.value * s + d.value / 2},
1104
+ ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1105
+ ),
1106
+ rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1107
+ `,
1108
+ style: { cursor: "pointer" },
1109
+ innerHTML: v(Aa)({
1110
+ content: String(t.text),
1111
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1112
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1113
+ x: 0,
1114
+ y: 0
1115
+ }),
1116
+ onClick: () => me(t, s)
1117
+ }, null, 8, Ml)) : (r(), o("text", {
1118
+ class: "vue-data-ui-time-label",
1119
+ key: s,
1120
+ "text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1121
+ "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1122
+ "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1123
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1124
+ transform: `translate(${n.value.left + d.value * s + d.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1125
+ style: { cursor: "pointer" },
1126
+ onClick: () => me(t, s)
1127
+ }, M(t.text), 9, Tl))
1128
+ ]))), 256))
1129
+ ]))
1130
+ ], 512)) : y("", !0),
1131
+ e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (r(), o("g", {
1132
+ key: 15,
1133
+ ref_key: "timeLabelsEls",
1134
+ ref: Y
1135
+ }, [
1136
+ a.$slots["time-label"] ? (r(), o("g", Al, [
1137
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1138
+ L(a.$slots, "time-label", Fe({ ref_for: !0 }, {
1139
+ x: n.value.left - 8,
1140
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1141
+ fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1142
+ fill: e.value.style.chart.grid.x.timeLabels.color,
1143
+ transform: null,
1144
+ absoluteIndex: t.absoluteIndex,
1145
+ content: t.text,
1146
+ textAnchor: "end",
1147
+ show: !0
1148
+ }), void 0, !0)
1149
+ ]))), 256))
1150
+ ])) : (r(), o("g", Nl, [
1151
+ (r(!0), o(g, null, m($.value, (t, s) => (r(), o("g", null, [
1152
+ String(t.text).includes(`
1153
+ `) ? (r(), o("text", {
1154
+ key: 1,
1155
+ "text-anchor": "end",
1156
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1157
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1158
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1159
+ x: n.value.left - 8,
1160
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1161
+ style: { cursor: "pointer" },
1162
+ onClick: () => me(t, s),
1163
+ innerHTML: v(Na)({
1164
+ content: String(t.text),
1165
+ fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
1166
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1167
+ x: n.value.left - 8,
1168
+ y: 0
1169
+ })
1170
+ }, null, 8, Rl)) : (r(), o("text", {
1171
+ key: 0,
1172
+ "text-anchor": "end",
1173
+ "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
1174
+ "font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1175
+ fill: e.value.style.chart.grid.y.axisLabels.color,
1176
+ x: n.value.left - 8,
1177
+ y: n.value.top + d.value * s + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1178
+ style: {
1179
+ cursor: "pointer"
1180
+ },
1181
+ onClick: () => me(t, s)
1182
+ }, M(t.text), 9, Il))
1183
+ ]))), 256))
1184
+ ]))
1185
+ ], 512)) : y("", !0),
1186
+ z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(g, { key: 16 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1187
+ x: n.value.left + s * d.value,
1188
+ y: n.value.top,
1189
+ width: d.value,
1190
+ height: n.value.height < 0 ? 0 : n.value.height,
1191
+ onClick: () => ht(s),
1192
+ onMouseenter: () => yt(s),
1193
+ onMouseleave: () => dt(s),
1194
+ fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1195
+ style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1196
+ }, null, 44, Ol))), 256)) : y("", !0),
1197
+ z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(g, { key: 17 }, m(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
1198
+ x: n.value.left,
1199
+ y: n.value.top + s * d.value,
1200
+ width: n.value.width < 0 ? 0 : n.value.width,
1201
+ height: d.value,
1202
+ onClick: () => ht(s),
1203
+ onMouseenter: () => yt(s),
1204
+ onMouseleave: () => dt(s),
1205
+ fill: s === ue.value ? e.value.style.chart.highlighter.color : "transparent",
1206
+ style: Z({ opacity: e.value.style.chart.highlighter.opacity / 100 })
1207
+ }, null, 44, Pl))), 256)) : y("", !0),
1208
+ L(a.$slots, "svg", H(U({ ...n.value })), void 0, !0)
1209
+ ], 14, Ka)),
1210
+ a.$slots.watermark ? (r(), o("div", Vl, [
1211
+ L(a.$slots, "watermark", H(U({ isPrinting: v(at) || v(lt) })), void 0, !0)
1212
+ ])) : y("", !0),
1213
+ le("div", {
1214
+ ref_key: "chartSlicer",
1215
+ ref: Ye,
1216
+ style: Z(`width:100%;background:${e.value.style.chart.backgroundColor}`),
1217
+ "data-dom-to-png-ignore": ""
1218
+ }, [
1219
+ e.value.style.chart.zoom.show && F.value > 1 ? (r(), K(Ja, {
1220
+ ref_key: "slicerComponent",
1221
+ ref: qe,
1222
+ key: `slicer_${Ge.value}`,
1223
+ background: e.value.style.chart.zoom.color,
1224
+ borderColor: e.value.style.chart.backgroundColor,
1225
+ fontSize: e.value.style.chart.zoom.fontSize,
1226
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
1227
+ labelLeft: e.value.style.chart.grid.x.timeLabels.values[h.value.start] ? $.value[0].text : "",
1228
+ labelRight: e.value.style.chart.grid.x.timeLabels.values[h.value.end - 1] ? $.value.at(-1).text : "",
1229
+ textColor: e.value.style.chart.color,
1230
+ inputColor: e.value.style.chart.zoom.color,
1231
+ selectColor: e.value.style.chart.zoom.highlightColor,
1232
+ max: Math.max(...Ce.dataset.map((t) => t.series.length)),
1233
+ min: 0,
1234
+ valueStart: h.value.start,
1235
+ valueEnd: h.value.end,
1236
+ start: h.value.start,
1237
+ "onUpdate:start": l[0] || (l[0] = (t) => h.value.start = t),
1238
+ end: h.value.end,
1239
+ "onUpdate:end": l[1] || (l[1] = (t) => h.value.end = t),
1240
+ refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
1241
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...Ce.dataset.map((t) => t.series.length)),
1242
+ enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
1243
+ enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
1244
+ onReset: nt
1245
+ }, {
1246
+ "reset-action": C(({ reset: t }) => [
1247
+ L(a.$slots, "reset-action", H(U({ reset: t })), void 0, !0)
1248
+ ]),
1249
+ _: 3
1250
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : y("", !0)
1251
+ ], 4),
1252
+ xe(v(Ht), {
1253
+ show: z.value.showTooltip && $e.value,
1254
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1255
+ color: e.value.style.chart.tooltip.color,
1256
+ fontSize: e.value.style.chart.tooltip.fontSize,
1257
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
1258
+ borderColor: e.value.style.chart.tooltip.borderColor,
1259
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
1260
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1261
+ position: e.value.style.chart.tooltip.position,
1262
+ offsetY: e.value.style.chart.tooltip.offsetY,
1263
+ parent: P.value,
1264
+ content: Me.value,
1265
+ isFullscreen: ne.value,
1266
+ isCustom: v(Vt)(e.value.style.chart.tooltip.customFormat),
1267
+ smooth: e.value.style.chart.tooltip.smooth,
1268
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter
1269
+ }, {
1270
+ "tooltip-before": C(() => [
1271
+ L(a.$slots, "tooltip-before", H(U({ ...Te.value })), void 0, !0)
1272
+ ]),
1273
+ "tooltip-after": C(() => [
1274
+ L(a.$slots, "tooltip-after", H(U({ ...Te.value })), void 0, !0)
1275
+ ]),
1276
+ _: 3
1277
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1278
+ le("div", {
1279
+ ref_key: "chartLegend",
1280
+ ref: We
1281
+ }, [
1282
+ e.value.style.chart.legend.show ? (r(), K(Ga, {
1283
+ key: 0,
1284
+ legendSet: kt.value,
1285
+ config: na.value,
1286
+ onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
1287
+ }, Mt({
1288
+ item: C(({ legend: t }) => [
1289
+ v(re) ? y("", !0) : (r(), o("div", {
1290
+ key: 0,
1291
+ onClick: (s) => t.segregate(),
1292
+ style: Z(`opacity:${S.value.includes(t.id) ? 0.5 : 1}`)
1293
+ }, M(t.name), 13, El))
1294
+ ]),
1295
+ _: 2
1296
+ }, [
1297
+ a.$slots.pattern ? {
1298
+ name: "legend-pattern",
1299
+ fn: C(({ legend: t, index: s }) => [
1300
+ xe(Xa, {
1301
+ shape: t.shape,
1302
+ radius: 30,
1303
+ stroke: "none",
1304
+ plot: { x: 30, y: 30 },
1305
+ fill: `url(#pattern_${V.value}_${s})`
1306
+ }, null, 8, ["shape", "fill"])
1307
+ ]),
1308
+ key: "0"
1309
+ } : void 0
1310
+ ]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
1311
+ key: 1,
1312
+ legend: kt.value
1313
+ }, void 0, !0)
1314
+ ], 512),
1315
+ a.$slots.source ? (r(), o("div", {
1316
+ key: 4,
1317
+ ref_key: "source",
1318
+ ref: Xe,
1319
+ dir: "auto"
1320
+ }, [
1321
+ L(a.$slots, "source", {}, void 0, !0)
1322
+ ], 512)) : y("", !0),
1323
+ h.value.end - h.value.start < 200 ? (r(), K(v(Ut), {
1324
+ key: 5,
1325
+ hideDetails: "",
1326
+ config: {
1327
+ open: z.value.showTable,
1328
+ maxHeight: 1e4,
1329
+ body: {
1330
+ backgroundColor: e.value.style.chart.backgroundColor,
1331
+ color: e.value.style.chart.color
1332
+ },
1333
+ head: {
1334
+ backgroundColor: e.value.style.chart.backgroundColor,
1335
+ color: e.value.style.chart.color
1336
+ }
1337
+ }
1338
+ }, {
1339
+ content: C(() => [
1340
+ xe(v(Bt), {
1341
+ colNames: be.value.colNames,
1342
+ head: be.value.head,
1343
+ body: be.value.body,
1344
+ config: be.value.config,
1345
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
1346
+ onClose: l[3] || (l[3] = (t) => z.value.showTable = !1)
1347
+ }, {
1348
+ th: C(({ th: t }) => [
1349
+ le("div", { innerHTML: t }, null, 8, Dl)
1350
+ ]),
1351
+ td: C(({ td: t }) => [
1352
+ ka(M(isNaN(Number(t)) ? t : v(Q)({
1353
+ p: e.value.style.chart.bars.dataLabels.prefix,
1354
+ v: t,
1355
+ s: e.value.style.chart.bars.dataLabels.suffix,
1356
+ r: e.value.table.td.roundingValue
1357
+ })), 1)
1358
+ ]),
1359
+ _: 1
1360
+ }, 8, ["colNames", "head", "body", "config", "title"])
1361
+ ]),
1362
+ _: 1
1363
+ }, 8, ["config"])) : y("", !0),
1364
+ v(re) ? (r(), K(Da, { key: 6 })) : y("", !0)
1365
+ ], 46, Za));
1366
+ }
1367
+ }, ls = /* @__PURE__ */ qa(Fl, [["__scopeId", "data-v-bb932814"]]);
1368
+ export {
1369
+ ls as default
1370
+ };