vue-data-ui 3.22.8 → 3.22.9

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 (169) hide show
  1. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-Av7Uxq5V.js} +1 -1
  2. package/dist/BaseIcon-UdRAvP2h.js +483 -0
  3. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-DWtet-Hh.js} +1 -1
  4. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-BY2KLqs6.js} +1 -1
  5. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-DR_ummtM.js} +1 -1
  6. package/dist/{DataTable-D9NvewTT.js → DataTable-BxpTMgfK.js} +1 -1
  7. package/dist/DefGrad-DVBqDjhO.js +48 -0
  8. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-B6EG_Sga.js} +2 -2
  9. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-D__dRVRA.js} +1 -1
  10. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-DsXi7GJ-.js} +2 -2
  11. package/dist/{Slicer-BZ5VnOOS.js → Slicer-CW_XPIKL.js} +359 -354
  12. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-CTz41lOu.js} +471 -466
  13. package/dist/{UserOptions-16uF1ayB.js → UserOptions-trvJ26nz.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{package-gp9pYCfN.js → package-ByOT60IK.js} +1 -1
  82. package/dist/{render-common-CLn1VXJ9.js → render-common-D18VrP0h.js} +1 -1
  83. package/dist/ssr/vue-ui-donut.js +1 -1
  84. package/dist/ssr/vue-ui-xy.js +1 -1
  85. package/dist/ssr.js +2 -2
  86. package/dist/style.css +1 -1
  87. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-ub3fCh6P.js} +67 -67
  88. package/dist/vue-data-ui.js +67 -67
  89. package/dist/vue-ui-3d-bar-taPI41_I.js +1825 -0
  90. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-CjAGqEJg.js} +1 -1
  91. package/dist/{vue-ui-age-pyramid-DTAOc7fn.js → vue-ui-age-pyramid-jvQZbF8E.js} +306 -297
  92. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BIucnT0L.js} +3 -3
  93. package/dist/{vue-ui-bullet-CCLnrOLm.js → vue-ui-bullet-CIATzlsk.js} +1 -1
  94. package/dist/{vue-ui-bump-Rq7efdoe.js → vue-ui-bump-D8MxltQE.js} +2 -2
  95. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-DULUMU-Q.js} +513 -502
  96. package/dist/{vue-ui-carousel-table-Lx5Zk4dG.js → vue-ui-carousel-table-BSmdexG7.js} +1 -1
  97. package/dist/vue-ui-chestnut-BIh1nQ7q.js +2042 -0
  98. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-DL1M7cgL.js} +1 -1
  99. package/dist/vue-ui-circle-pack-C1Pgq6si.js +1614 -0
  100. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-d2uLAKTQ.js} +1 -1
  101. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CVh9FpZr.js} +2 -2
  102. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BH0N3ebj.js} +65 -65
  103. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-R6wi3J-Y.js} +1 -1
  104. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-BWDeVzLc.js} +1 -1
  105. package/dist/{vue-ui-donut-C3Rt6j-I.js → vue-ui-donut-BoZdciGh.js} +632 -623
  106. package/dist/vue-ui-donut-evolution-CpC9EMro.js +1522 -0
  107. package/dist/{vue-ui-dumbbell-wK7vUB0x.js → vue-ui-dumbbell-DGA5Bfnl.js} +528 -494
  108. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-CNczKwTh.js} +1 -1
  109. package/dist/vue-ui-funnel-CaD2tZCT.js +782 -0
  110. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-v3cTbUiM.js} +2 -2
  111. package/dist/vue-ui-gauge-DxvMjfoc.js +926 -0
  112. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-BgmLkZZ2.js} +2 -2
  113. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-n1kmcGeE.js} +66 -61
  114. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-dSTh8ah_.js} +2 -2
  115. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-N8BqMFVU.js} +395 -384
  116. package/dist/{vue-ui-horizontal-bar-D1rCsgqt.js → vue-ui-horizontal-bar-CwiQxYzv.js} +360 -354
  117. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BKrUk9o8.js} +1 -1
  118. package/dist/{vue-ui-molecule-CExCqZ08.js → vue-ui-molecule--kK1JfnP.js} +295 -289
  119. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-CpBRHQo_.js} +209 -204
  120. package/dist/{vue-ui-nested-donuts-3TRV8pN-.js → vue-ui-nested-donuts-8Ehwcuns.js} +307 -301
  121. package/dist/{vue-ui-onion-DwKK9DXn.js → vue-ui-onion-Cf6JiYTH.js} +2 -2
  122. package/dist/{vue-ui-parallel-coordinate-plot-DSp_cwU-.js → vue-ui-parallel-coordinate-plot-Blnqp1DB.js} +2 -2
  123. package/dist/{vue-ui-quadrant-ByVg-NBs.js → vue-ui-quadrant-CxU0jiOm.js} +366 -360
  124. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-BO98uEPl.js} +3 -3
  125. package/dist/{vue-ui-radar-DE-me6OC.js → vue-ui-radar-eH2Qih4_.js} +272 -266
  126. package/dist/{vue-ui-rating-CzD3EQ3G.js → vue-ui-rating-CN-ZiAES.js} +135 -126
  127. package/dist/{vue-ui-relation-circle-L7-dTqet.js → vue-ui-relation-circle-BIcP-aAt.js} +1 -1
  128. package/dist/vue-ui-ridgeline-ChXHzEJw.js +1628 -0
  129. package/dist/{vue-ui-rings-WzWiEo9W.js → vue-ui-rings-J990vNbX.js} +262 -256
  130. package/dist/{vue-ui-scatter-DwrAydha.js → vue-ui-scatter-BeJB0EKg.js} +642 -633
  131. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-DC2bZ0nk.js} +336 -333
  132. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-Dyyu1je3.js} +111 -98
  133. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-CpDX85H3.js} +158 -153
  134. package/dist/vue-ui-sparkbar-DhIo1qsW.js +398 -0
  135. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-D0Fo3Hts.js} +75 -70
  136. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +576 -0
  137. package/dist/vue-ui-sparkline-ApivEMBP.js +1560 -0
  138. package/dist/{vue-ui-sparkstackbar-DrmiWFlw.js → vue-ui-sparkstackbar-DsKQJx_n.js} +179 -167
  139. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-Ds4hXATH.js} +538 -531
  140. package/dist/vue-ui-stackline-DJbcVvmN.js +2425 -0
  141. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-C3ZHf4bD.js} +368 -361
  142. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CNXNXXBU.js} +1 -1
  143. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-B9JJ4pFF.js} +1 -1
  144. package/dist/{vue-ui-table-Q3brrivC.js → vue-ui-table-uudidrYt.js} +4 -4
  145. package/dist/vue-ui-thermometer-Bvw3oQb3.js +770 -0
  146. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-5NAWw5BN.js} +91 -86
  147. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-Caz_g1c5.js} +1 -1
  148. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-F9upPyOI.js} +458 -453
  149. package/dist/{vue-ui-waffle-Pi9e7Ae7.js → vue-ui-waffle-Bk9AsrPp.js} +296 -290
  150. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-DD6Q39BA.js} +1 -1
  151. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-BZLT5svo.js} +2 -2
  152. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-DbEJN5NA.js} +284 -273
  153. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-BYMAITk_.js} +1294 -1268
  154. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Cn9Q8YPr.js} +1 -1
  155. package/dist/{vue-ui-xy-canvas-BfgeE3TW.js → vue-ui-xy-canvas-Dcm2ftwm.js} +5 -5
  156. package/package.json +1 -1
  157. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  158. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  159. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  160. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  161. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  162. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  163. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  164. package/dist/vue-ui-ridgeline-Cp3YP0xe.js +0 -1622
  165. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  166. package/dist/vue-ui-sparkhistogram-D02ff7ZI.js +0 -560
  167. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  168. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  169. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
@@ -0,0 +1,2042 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { $ as t, Dt as n, G as r, J as i, Kt as a, Mt as o, Rt as s, S as ee, T as te, Wt as ne, Z as re, b as ie, d as ae, dt as oe, i as c, kt as se, p as ce, r as le, t as ue, u as l, zt as de } from "./lib-JqW18y5I.js";
3
+ import { t as fe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as pe } from "./usePrinter-CqqHmnBI.js";
5
+ import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ge } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as _e } from "./useNestedProp-DIuuzG1r.js";
8
+ import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as ye } from "./img-DnP3eXuv.js";
10
+ import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
11
+ import { t as xe } from "./DefGrad-DVBqDjhO.js";
12
+ import { t as Se } from "./A11yDataTable-DdRsVULz.js";
13
+ import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
14
+ import { t as we } from "./useChartAccessibility-DYqac8yF.js";
15
+ import { t as Te } from "./useTableResponsive-B24Uwt2E.js";
16
+ import { t as Ee } from "./vue_ui_chestnut-D2oUhad6.js";
17
+ import { Fragment as u, computed as d, createBlock as De, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Oe, createTextVNode as ke, createVNode as h, defineAsyncComponent as Ae, guardReactiveProps as g, mergeProps as je, nextTick as Me, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Ne, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Pe, toDisplayString as w, toRefs as Fe, unref as T, useCssVars as Ie, watch as Le, withCtx as E, withKeys as Re } from "vue";
18
+ //#region src/components/vue-ui-chestnut.vue
19
+ var ze = /* @__PURE__ */ e({ default: () => jn }), Be = ["id"], Ve = ["id"], He = {
20
+ "aria-live": "polite",
21
+ class: "sr-only"
22
+ }, Ue = {
23
+ key: 2,
24
+ ref: "noTitle",
25
+ class: "vue-data-ui-no-title-space",
26
+ style: "height:36px; width: 100%;background:transparent"
27
+ }, We = { style: { position: "relative" } }, Ge = [
28
+ "xmlns",
29
+ "aria-describedby",
30
+ "viewBox"
31
+ ], Ke = ["width", "height"], qe = { key: 1 }, Je = [
32
+ "fill",
33
+ "font-weight",
34
+ "font-size",
35
+ "x",
36
+ "y"
37
+ ], Ye = [
38
+ "fill",
39
+ "font-weight",
40
+ "font-size",
41
+ "x",
42
+ "y"
43
+ ], Xe = { key: 2 }, Ze = [
44
+ "x",
45
+ "y",
46
+ "font-size",
47
+ "font-weight",
48
+ "fill"
49
+ ], Qe = [
50
+ "x",
51
+ "y",
52
+ "font-size",
53
+ "font-weight",
54
+ "fill"
55
+ ], $e = [
56
+ "d",
57
+ "stroke",
58
+ "fill"
59
+ ], et = [
60
+ "cx",
61
+ "cy",
62
+ "r",
63
+ "fill"
64
+ ], tt = [
65
+ "aria-label",
66
+ "cx",
67
+ "cy",
68
+ "r",
69
+ "fill",
70
+ "stroke",
71
+ "stroke-width",
72
+ "onClick"
73
+ ], nt = { key: 3 }, rt = [
74
+ "x",
75
+ "y",
76
+ "font-size",
77
+ "fill",
78
+ "onClick"
79
+ ], it = { key: 0 }, at = [
80
+ "x",
81
+ "y",
82
+ "fill",
83
+ "font-size",
84
+ "font-weight"
85
+ ], ot = [
86
+ "x",
87
+ "y",
88
+ "height",
89
+ "width",
90
+ "fill",
91
+ "rx",
92
+ "onClick"
93
+ ], st = [
94
+ "aria-label",
95
+ "x",
96
+ "y",
97
+ "height",
98
+ "width",
99
+ "fill",
100
+ "rx",
101
+ "stroke",
102
+ "stroke-width",
103
+ "onClick"
104
+ ], ct = { key: 4 }, lt = [
105
+ "x",
106
+ "y",
107
+ "fill",
108
+ "font-size",
109
+ "onClick"
110
+ ], ut = ["d", "stroke"], dt = [
111
+ "aria-label",
112
+ "fill",
113
+ "cx",
114
+ "cy",
115
+ "r",
116
+ "onClick"
117
+ ], ft = { key: 5 }, pt = [
118
+ "x",
119
+ "y",
120
+ "font-size",
121
+ "font-weight",
122
+ "fill"
123
+ ], mt = [
124
+ "x1",
125
+ "x2",
126
+ "y1",
127
+ "y2",
128
+ "stroke",
129
+ "stroke-width"
130
+ ], ht = [
131
+ "y",
132
+ "height",
133
+ "width"
134
+ ], gt = { style: {
135
+ width: "100%",
136
+ height: "100%",
137
+ display: "flex",
138
+ "align-items": "center",
139
+ "justify-content": "center",
140
+ "flex-direction": "column"
141
+ } }, _t = { style: {
142
+ display: "flex",
143
+ "align-items": "center",
144
+ "justify-content": "center",
145
+ gap: "12px",
146
+ "flex-wrap": "wrap",
147
+ "flex-direction": "row"
148
+ } }, vt = {
149
+ viewBox: "0 0 20 20",
150
+ height: "16",
151
+ width: "16"
152
+ }, yt = ["fill"], bt = { key: 7 }, xt = [
153
+ "y",
154
+ "height",
155
+ "width"
156
+ ], St = { style: {
157
+ width: "100%",
158
+ height: "100%",
159
+ display: "flex",
160
+ "align-items": "center",
161
+ "justify-content": "center",
162
+ "flex-direction": "column"
163
+ } }, Ct = { style: {
164
+ display: "flex",
165
+ "align-items": "center",
166
+ "justify-content": "center",
167
+ gap: "12px",
168
+ "flex-wrap": "wrap",
169
+ "flex-direction": "row"
170
+ } }, wt = {
171
+ viewBox: "0 0 20 20",
172
+ height: "16",
173
+ width: "16"
174
+ }, Tt = ["fill"], Et = [
175
+ "cx",
176
+ "cy",
177
+ "fill"
178
+ ], Dt = ["d", "stroke"], Ot = [
179
+ "cx",
180
+ "cy",
181
+ "fill"
182
+ ], kt = ["d", "stroke"], At = [
183
+ "cx",
184
+ "cy",
185
+ "fill"
186
+ ], jt = [
187
+ "cx",
188
+ "cy",
189
+ "fill"
190
+ ], Mt = [
191
+ "x",
192
+ "y",
193
+ "fill",
194
+ "font-size",
195
+ "font-weight"
196
+ ], Nt = [
197
+ "x",
198
+ "y",
199
+ "fill",
200
+ "font-size",
201
+ "font-weight"
202
+ ], Pt = [
203
+ "x",
204
+ "text-anchor",
205
+ "y",
206
+ "fill",
207
+ "font-size"
208
+ ], Ft = [
209
+ "x",
210
+ "text-anchor",
211
+ "y",
212
+ "fill",
213
+ "font-size"
214
+ ], It = [
215
+ "x",
216
+ "text-anchor",
217
+ "y",
218
+ "fill",
219
+ "font-size"
220
+ ], Lt = [
221
+ "x",
222
+ "text-anchor",
223
+ "y",
224
+ "fill",
225
+ "font-size"
226
+ ], Rt = [
227
+ "x",
228
+ "text-anchor",
229
+ "y",
230
+ "fill",
231
+ "font-size"
232
+ ], zt = [
233
+ "x",
234
+ "y",
235
+ "font-size",
236
+ "fill"
237
+ ], Bt = [
238
+ "x",
239
+ "y",
240
+ "font-size",
241
+ "fill"
242
+ ], Vt = [
243
+ "x",
244
+ "y",
245
+ "font-size",
246
+ "fill"
247
+ ], Ht = {
248
+ key: 4,
249
+ class: "vue-data-ui-watermark"
250
+ }, Ut = {
251
+ key: 5,
252
+ ref: "source",
253
+ dir: "auto"
254
+ }, Wt = { class: "vue-ui-data-table" }, Gt = { key: 0 }, Kt = ["data-cell"], qt = { style: {
255
+ display: "flex",
256
+ "align-items": "center",
257
+ gap: "5px",
258
+ "justify-content": "flex-end",
259
+ width: "100%",
260
+ "padding-right": "3px"
261
+ } }, Jt = { key: 0 }, Yt = { key: 1 }, Xt = ["data-cell"], Zt = { style: {
262
+ display: "flex",
263
+ "align-items": "center",
264
+ gap: "5px",
265
+ "justify-content": "flex-end",
266
+ width: "100%",
267
+ "padding-right": "3px"
268
+ } }, Qt = { key: 0 }, $t = { key: 1 }, en = ["data-cell"], tn = { style: {
269
+ display: "flex",
270
+ "align-items": "center",
271
+ gap: "5px",
272
+ "justify-content": "flex-end",
273
+ width: "100%",
274
+ "padding-right": "3px"
275
+ } }, nn = { key: 0 }, rn = { key: 1 }, an = ["data-cell"], on = { style: {
276
+ display: "flex",
277
+ "align-items": "center",
278
+ gap: "5px",
279
+ "justify-content": "flex-end",
280
+ width: "100%",
281
+ "padding-right": "3px"
282
+ } }, sn = { key: 0 }, cn = { key: 1 }, ln = ["data-cell"], un = { style: {
283
+ display: "flex",
284
+ "align-items": "center",
285
+ gap: "5px",
286
+ "justify-content": "flex-end",
287
+ width: "100%",
288
+ "padding-right": "3px"
289
+ } }, dn = { key: 0 }, fn = { key: 1 }, pn = ["data-cell"], mn = { style: {
290
+ display: "flex",
291
+ "align-items": "center",
292
+ gap: "5px",
293
+ "justify-content": "flex-end",
294
+ width: "100%",
295
+ "padding-right": "3px"
296
+ } }, hn = { key: 0 }, gn = { key: 1 }, _n = ["data-cell"], vn = { style: {
297
+ display: "flex",
298
+ "align-items": "center",
299
+ gap: "5px",
300
+ "justify-content": "flex-end",
301
+ width: "100%",
302
+ "padding-right": "3px"
303
+ } }, yn = { key: 0 }, bn = { key: 1 }, xn = ["data-cell"], Sn = { style: {
304
+ display: "flex",
305
+ "align-items": "center",
306
+ gap: "5px",
307
+ "justify-content": "flex-end",
308
+ width: "100%",
309
+ "padding-right": "3px"
310
+ } }, Cn = ["data-cell"], wn = { style: {
311
+ display: "flex",
312
+ "align-items": "center",
313
+ gap: "5px",
314
+ "justify-content": "flex-end",
315
+ width: "100%",
316
+ "padding-right": "3px"
317
+ } }, Tn = ["data-cell"], En = { style: {
318
+ display: "flex",
319
+ "align-items": "center",
320
+ gap: "5px",
321
+ "justify-content": "flex-end",
322
+ width: "100%",
323
+ "padding-right": "3px"
324
+ } }, Dn = ["data-cell"], On = { style: {
325
+ display: "flex",
326
+ "align-items": "center",
327
+ gap: "5px",
328
+ "justify-content": "flex-end",
329
+ width: "100%",
330
+ "padding-right": "3px"
331
+ } }, kn = ["data-cell"], An = { style: {
332
+ display: "flex",
333
+ "align-items": "center",
334
+ gap: "5px",
335
+ "justify-content": "flex-end",
336
+ width: "100%",
337
+ "padding-right": "3px"
338
+ } }, jn = /*#__PURE__*/ be({
339
+ __name: "vue-ui-chestnut",
340
+ props: {
341
+ config: {
342
+ type: Object,
343
+ default() {
344
+ return {};
345
+ }
346
+ },
347
+ dataset: {
348
+ type: Array,
349
+ default() {
350
+ return [];
351
+ }
352
+ }
353
+ },
354
+ emits: [
355
+ "selectRoot",
356
+ "selectBranch",
357
+ "selectNut",
358
+ "copyAlt"
359
+ ],
360
+ setup(e, { expose: be, emit: ze }) {
361
+ Ie((e) => ({ v62f21eec: e.tdo }));
362
+ let jn = Ae(() => import("./BaseIcon-UdRAvP2h.js").then((e) => e.n)), Mn = Ae(() => import("./vue-ui-accordion-CjAGqEJg.js").then((e) => e.n)), Nn = Ae(() => import("./PenAndPaper-DsXi7GJ-.js").then((e) => e.t)), Pn = Ae(() => import("./UserOptions-trvJ26nz.js").then((e) => e.n)), Fn = Ae(() => import("./PackageVersion-D__dRVRA.js").then((e) => e.t)), In = Ae(() => import("./BaseDraggableDialog-Av7Uxq5V.js").then((e) => e.n)), { vue_ui_chestnut: Ln } = fe(), { isThemeValid: Rn, warnInvalidTheme: zn } = ve(), D = e, Bn = d(() => !!D.dataset && D.dataset.length), O = x(r()), Vn = x(null), Hn = x(0), Un = x(null), Wn = x(null), Gn = x(!1), Kn = x(!1), qn = x(!1), k = x(!1), A = x(""), j = x({
363
+ level: "root",
364
+ rootIndex: 0,
365
+ branchIndex: 0,
366
+ nutIndex: 0,
367
+ locked: !1
368
+ }), M = x(tr()), N = d(() => M.value.userOptions.useCursorPointer), Jn = d(() => a({
369
+ defaultConfig: {
370
+ userOptions: { show: !1 },
371
+ table: { show: !1 },
372
+ style: { chart: {
373
+ backgroundColor: "#99999930",
374
+ layout: {
375
+ grandTotal: { show: !1 },
376
+ roots: {
377
+ stroke: "#6A6A6A",
378
+ labels: { show: !1 }
379
+ },
380
+ verticalSeparator: { stroke: "transparent" },
381
+ branches: {
382
+ stroke: "#6A6A6A",
383
+ underlayerColor: "#6A6A6A90",
384
+ labels: {
385
+ show: !1,
386
+ dataLabels: { show: !1 }
387
+ }
388
+ }
389
+ }
390
+ } }
391
+ },
392
+ userConfig: M.value.skeletonConfig ?? {}
393
+ })), { loading: Yn, FINAL_DATASET: Xn } = me({
394
+ ...Fe(D),
395
+ FINAL_CONFIG: M,
396
+ prepareConfig: tr,
397
+ skeletonDataset: D.config?.skeletonDataset ?? [{
398
+ name: "_",
399
+ color: "#969696",
400
+ branches: [
401
+ {
402
+ name: "_",
403
+ value: 32,
404
+ breakdown: [{
405
+ name: "_",
406
+ value: 16,
407
+ color: "#CACACA"
408
+ }, {
409
+ name: "_",
410
+ value: 16,
411
+ color: "#6A6A6A"
412
+ }]
413
+ },
414
+ {
415
+ name: "_",
416
+ value: 16,
417
+ breakdown: [{
418
+ name: "_",
419
+ value: 8,
420
+ color: "#CACACA"
421
+ }, {
422
+ name: "_",
423
+ value: 8,
424
+ color: "#6A6A6A"
425
+ }]
426
+ },
427
+ {
428
+ name: "_",
429
+ value: 8,
430
+ breakdown: [{
431
+ name: "_",
432
+ value: 4,
433
+ color: "#CACACA"
434
+ }, {
435
+ name: "_",
436
+ value: 4,
437
+ color: "#6A6A6A"
438
+ }]
439
+ },
440
+ {
441
+ name: "_",
442
+ value: 4,
443
+ breakdown: [{
444
+ name: "_",
445
+ value: 2,
446
+ color: "#CACACA"
447
+ }, {
448
+ name: "_",
449
+ value: 2,
450
+ color: "#6A6A6A"
451
+ }]
452
+ }
453
+ ]
454
+ }, {
455
+ name: "_",
456
+ color: "#C4C4C4",
457
+ branches: [
458
+ {
459
+ name: "_",
460
+ value: 24,
461
+ breakdown: [{
462
+ name: "_",
463
+ value: 12,
464
+ color: "#CACACA"
465
+ }, {
466
+ name: "_",
467
+ value: 12,
468
+ color: "#6A6A6A"
469
+ }]
470
+ },
471
+ {
472
+ name: "_",
473
+ value: 12,
474
+ breakdown: [{
475
+ name: "_",
476
+ value: 6,
477
+ color: "#CACACA"
478
+ }, {
479
+ name: "_",
480
+ value: 6,
481
+ color: "#6A6A6A"
482
+ }]
483
+ },
484
+ {
485
+ name: "_",
486
+ value: 6,
487
+ breakdown: [{
488
+ name: "_",
489
+ value: 3,
490
+ color: "#CACACA"
491
+ }, {
492
+ name: "_",
493
+ value: 3,
494
+ color: "#6A6A6A"
495
+ }]
496
+ },
497
+ {
498
+ name: "_",
499
+ value: 2,
500
+ breakdown: [{
501
+ name: "_",
502
+ value: 1,
503
+ color: "#CACACA"
504
+ }, {
505
+ name: "_",
506
+ value: 1,
507
+ color: "#6A6A6A"
508
+ }]
509
+ }
510
+ ]
511
+ }],
512
+ skeletonConfig: a({
513
+ defaultConfig: M.value,
514
+ userConfig: Jn.value
515
+ })
516
+ }), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } = Ce({ config: M.value }), { svgRef: er } = we({ config: M.value.style.chart.layout.title });
517
+ function tr() {
518
+ let e = _e({
519
+ userConfig: D.config,
520
+ defaultConfig: Ln
521
+ }), t = e.theme;
522
+ if (!t) return e;
523
+ if (!Rn.value(e)) return zn(e), e;
524
+ let n = _e({
525
+ userConfig: Ee[t] || D.config,
526
+ defaultConfig: e
527
+ }), r = _e({
528
+ userConfig: D.config,
529
+ defaultConfig: n
530
+ });
531
+ return {
532
+ ...r,
533
+ customPalette: r.customPalette.length ? r.customPalette : ne[t] || o
534
+ };
535
+ }
536
+ Le(() => D.config, (e) => {
537
+ M.value = tr(), Zn.value = !M.value.userOptions.showOnChartHover, cr.value.showTable = M.value.table.show, Dr();
538
+ }, { deep: !0 });
539
+ let { isPrinting: nr, isImaging: rr, generatePdf: ir, generateImage: ar } = pe({
540
+ elementId: `vue-ui-chestnut_${O.value}`,
541
+ fileName: M.value.style.chart.layout.title.text || "vue-ui-chestnut",
542
+ options: M.value.userOptions.print
543
+ }), or = d(() => M.value.userOptions.show), sr = d(() => ee(M.value.customPalette)), cr = x({ showTable: M.value.table.show });
544
+ Le(M, () => {
545
+ cr.value = { showTable: M.value.table.show };
546
+ }, { immediate: !0 });
547
+ let lr = x(null), ur = d(() => M.value.table.responsiveBreakpoint), P = x({
548
+ gap: 6,
549
+ padding: {
550
+ top: 102,
551
+ left: 12,
552
+ right: 12,
553
+ bottom: 96
554
+ },
555
+ width: 1024,
556
+ height: 0,
557
+ branchSize: 32,
558
+ branchStart: 128
559
+ }), F = d(() => ({
560
+ left: P.value.padding.left,
561
+ top: P.value.padding.top,
562
+ right: P.value.width - P.value.padding.right,
563
+ bottom: P.value.height - P.value.padding.bottom,
564
+ width: P.value.width - (P.value.padding.left + P.value.padding.right),
565
+ height: P.value.height - (P.value.padding.top + P.value.padding.bottom),
566
+ seedX: P.value.padding.left + 64
567
+ })), I = d(() => Xn.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), L = d(() => (Xn.value.forEach((e, n) => {
568
+ oe({
569
+ datasetObject: e,
570
+ requiredAttributes: ["name", "branches"]
571
+ }).forEach((e) => {
572
+ t({
573
+ componentName: "VueUiChestnut",
574
+ type: "datasetSerieAttribute",
575
+ property: e,
576
+ index: n,
577
+ debug: Er.value
578
+ });
579
+ }), e.branches && e.branches.forEach((e, r) => {
580
+ oe({
581
+ datasetObject: e,
582
+ requiredAttributes: ["name", "value"]
583
+ }).forEach((e) => {
584
+ t({
585
+ componentName: "VueUiChestnut",
586
+ type: "datasetSerieAttribute",
587
+ property: e,
588
+ index: `${n} - ${r}`,
589
+ debug: Er.value
590
+ });
591
+ }), e.breakdown && e.breakdown.forEach((e, i) => {
592
+ oe({
593
+ datasetObject: e,
594
+ requiredAttributes: ["name", "value"]
595
+ }).forEach((e) => {
596
+ t({
597
+ componentName: "VueUiChestnut",
598
+ type: "datasetSerieAttribute",
599
+ property: e,
600
+ index: `${n} - ${r} - ${i}`,
601
+ debug: Er.value
602
+ });
603
+ });
604
+ });
605
+ });
606
+ }), Xn.value.map((e, t) => {
607
+ let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
608
+ return {
609
+ ...e,
610
+ color: ie(e.color) || sr.value[t] || o[t] || o[t % o.length],
611
+ id: e.id || `root_${t}_${O.value}`,
612
+ type: "root",
613
+ total: n,
614
+ rootIndex: t,
615
+ branches: (e.branches || []).map((r, i) => ({
616
+ ...r,
617
+ rootName: e.name,
618
+ rootIndex: t,
619
+ color: ie(e.color) || sr.value[t] || o[t] || o[t % o.length],
620
+ value: r.value >= 0 ? r.value : 0,
621
+ id: r.id || `branch_${t}_${i}_${O.value}`,
622
+ proportionToRoot: r.value / n,
623
+ type: "branch",
624
+ breakdown: (r.breakdown || []).map((a, s) => ({
625
+ table: {
626
+ rootName: e.name,
627
+ rootValue: n,
628
+ rootToTotal: n / I.value,
629
+ branchName: r.name,
630
+ branchValue: r.value,
631
+ branchToTotal: r.value / I.value,
632
+ branchToRoot: r.value / n,
633
+ nutName: a.name,
634
+ nutValue: a.value,
635
+ nutToTotal: a.value / I.value,
636
+ nutToRoot: a.value / n,
637
+ nutToBranch: a.value / r.value
638
+ },
639
+ ...a,
640
+ type: "nut",
641
+ branchName: r.name,
642
+ rootName: e.name,
643
+ branchTotal: r.value >= 0 ? r.value : 0,
644
+ proportionToBranch: a.value / r.value,
645
+ proportionToRoot: a.value / n,
646
+ proportionToTree: a.value / I.value,
647
+ rootIndex: t,
648
+ id: a.id || `nut_${t}_${i}_${s}_${O.value}`,
649
+ color: ie(a.color) || sr.value[s] || o[s] || o[s % o.length],
650
+ value: a.value >= 0 ? a.value : 0
651
+ }))
652
+ }))
653
+ };
654
+ })));
655
+ function dr() {
656
+ return L.value;
657
+ }
658
+ let R = ze, fr = d(() => L.value.flatMap((e) => e.branches).length), pr = d(() => Math.max(...L.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), mr = d(() => Math.max(...L.value.flatMap((e) => e.branches.map((e) => e.value)))), hr = d(() => 256 + P.value.padding.left), z = d(() => L.value.sort((e, t) => t.total - e.total).map((e, t) => {
659
+ let n = F.value.height / L.value.length / 2, r = e.total / pr.value * (n > 64 ? 64 : n);
660
+ return {
661
+ ...e,
662
+ x: F.value.seedX,
663
+ y: F.value.top + F.value.height / L.value.length * (t + 1) - (F.value.height / L.value.length / 2 + P.value.gap / 2),
664
+ r: r < P.value.branchSize / 2 ? P.value.branchSize / 2 : r
665
+ };
666
+ })), gr = d(() => M.value.style.chart.layout.branches.widthRatio <= 0 ? .1 : M.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : M.value.style.chart.layout.branches.widthRatio), _r = d(() => z.value.flatMap((e) => e.branches)), B = d(() => _r.value.sort((e, t) => t.value - e.value).map((e, t) => ({
667
+ ...e,
668
+ y1: t * P.value.branchSize + F.value.top + t * P.value.gap,
669
+ y2: t * P.value.branchSize + P.value.branchSize,
670
+ x1: hr.value,
671
+ x2: 384 * e.value / mr.value * gr.value + hr.value
672
+ }))), V = d(() => z.value), vr = d(() => V.value.map((e) => B.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), yr = d(() => V.value.map((e, t) => vr.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
673
+ ...t,
674
+ nutIndex: n,
675
+ rootIndex: e.rootIndex,
676
+ branchId: e.id,
677
+ branchName: e.name,
678
+ branchValue: e.value,
679
+ rootName: e.rootName
680
+ })))));
681
+ function br(e) {
682
+ let t = z.value.find((t) => t.rootIndex === e.rootIndex);
683
+ return {
684
+ x: t.x,
685
+ y: t.y,
686
+ r: t.r
687
+ };
688
+ }
689
+ let H = x(null), U = x(null), W = x(null), G = x(null);
690
+ function K() {
691
+ H.value = null, W.value = null, G.value = null;
692
+ }
693
+ function q(e) {
694
+ if (H.value) return e.type === "root" ? e.rootIndex === H.value.rootIndex : e.type === "branch" ? e.id === H.value.id : e.type === "nut" ? e.branchName === H.value.name && e.rootIndex === H.value.rootIndex : !1;
695
+ if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" ? e.branchName === W.value.name && e.rootIndex === W.value.rootIndex : !1;
696
+ if (G.value) return e.type === "root" ? e.id === G.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === G.value.rootIndex : !1;
697
+ if (ti.value && k.value) {
698
+ if (j.value.level === "root") return e.type === "root" ? Z.value && e.id === Z.value.id : e.type === "branch" || e.type === "nut" ? Z.value && e.rootIndex === Z.value.rootIndex : !1;
699
+ if (j.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? $r.value && e.id === $r.value.id : (e.type, !1);
700
+ if (j.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? ei.value && e.id === ei.value.id : e.type === "nut" ? ei.value && e.branchName === ei.value.name && e.rootIndex === ei.value.rootIndex : !1;
701
+ }
702
+ return !0;
703
+ }
704
+ function xr(e) {
705
+ K();
706
+ let t = V.value.findIndex((t) => t.rootIndex === e.rootIndex), r = (vr.value[t] || []).findIndex((t) => t.id === e.id);
707
+ t !== -1 && (j.value.rootIndex = t), r !== -1 && (j.value.branchIndex = r), j.value.level = "nut", j.value.nutIndex = 0, Me(() => {
708
+ H.value = e, W.value = e, U.value = n({
709
+ series: e.breakdown,
710
+ base: 1
711
+ }, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + P.value.branchSize / 2, 80, 80), R("selectNut", e.breakdown), Q();
712
+ });
713
+ }
714
+ function J() {
715
+ H.value = null, U.value = null, R("selectNut", null);
716
+ }
717
+ function Sr(e) {
718
+ let t = V.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (vr.value[t] || []).findIndex((t) => t.id === e.id);
719
+ t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "branch", j.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(), R("selectBranch", null), Q()) : (K(), W.value = e, R("selectBranch", e), Q());
720
+ }
721
+ function Cr(e) {
722
+ let t = V.value.findIndex((t) => t.id === e.id);
723
+ t !== -1 && (j.value.rootIndex = t), j.value.level = "root", j.value.branchIndex = 0, j.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(), R("selectRoot", null), Q()) : (K(), G.value = e, R("selectRoot", e), Q());
724
+ }
725
+ function wr() {
726
+ return F.value.bottom - (H.value.y1 + 180) < 0 ? 0 : F.value.bottom;
727
+ }
728
+ function Tr(e) {
729
+ return e.proportion * 100 > M.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
730
+ }
731
+ Ne(() => {
732
+ Dr();
733
+ });
734
+ let Er = d(() => M.value.debug);
735
+ function Dr() {
736
+ se(D.dataset) && t({
737
+ componentName: "VueUiChestnut",
738
+ type: "dataset",
739
+ debug: Er.value
740
+ });
741
+ let e = fr.value * (P.value.branchSize + P.value.gap) + P.value.padding.top + P.value.padding.bottom;
742
+ P.value.height = e;
743
+ }
744
+ let Y = d(() => ({
745
+ head: [
746
+ M.value.table.th.translations.rootName,
747
+ M.value.table.th.translations.rootValue,
748
+ M.value.table.th.translations.rootToTotal,
749
+ M.value.table.th.translations.branchName,
750
+ M.value.table.th.translations.branchValue,
751
+ M.value.table.th.translations.branchToRoot,
752
+ M.value.table.th.translations.branchToTotal,
753
+ M.value.table.th.translations.nutName,
754
+ M.value.table.th.translations.nutValue,
755
+ M.value.table.th.translations.nutToBranch,
756
+ M.value.table.th.translations.nutToRoot,
757
+ M.value.table.th.translations.nutToTotal
758
+ ],
759
+ body: L.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
760
+ }));
761
+ function Or(e = null) {
762
+ Me(() => {
763
+ let t = [
764
+ [M.value.style.chart.layout.title.text],
765
+ [M.value.style.chart.layout.title.subtitle.text],
766
+ [""],
767
+ ["Grand total", I.value],
768
+ [""]
769
+ ], n = Y.value.head, r = Y.value.body.map((e, t) => [
770
+ Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
771
+ Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
772
+ Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
773
+ Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchName,
774
+ Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchValue,
775
+ Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToRoot,
776
+ Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToTotal,
777
+ e.nutName,
778
+ e.nutValue,
779
+ e.nutToBranch,
780
+ e.nutToRoot,
781
+ e.nutToTotal
782
+ ]), i = te(t.concat([n]).concat(r));
783
+ e ? e(i) : re({
784
+ csvContent: i,
785
+ title: M.value.style.chart.layout.title.text || "vue-ui-chestnut"
786
+ });
787
+ });
788
+ }
789
+ let kr = x(!1);
790
+ function Ar(e) {
791
+ kr.value = e, Hn.value += 1;
792
+ }
793
+ function jr() {
794
+ cr.value.showTable = !cr.value.showTable;
795
+ }
796
+ let Mr = x(!1);
797
+ function Nr() {
798
+ Mr.value = !Mr.value;
799
+ }
800
+ async function Pr({ scale: e = 2 } = {}) {
801
+ if (!Vn.value) return;
802
+ let { width: t, height: n } = Vn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
803
+ domElement: Vn.value,
804
+ base64: !0,
805
+ img: !0,
806
+ scale: e
807
+ });
808
+ return {
809
+ imageUri: i,
810
+ base64: a,
811
+ title: M.value.style.chart.layout.title.text,
812
+ width: t,
813
+ height: n,
814
+ aspectRatio: r
815
+ };
816
+ }
817
+ function Fr(e) {
818
+ let t = br(e), n = e.x1, r = e.y1, i = P.value.branchSize, a = t.x + t.r / 2, o = t.y;
819
+ return [
820
+ `M ${n},${r}`,
821
+ `C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
822
+ `C ${a},${o} ${n - 20},${r + i} ${n},${r + i}`,
823
+ "Z"
824
+ ].join(" ");
825
+ }
826
+ let Ir = d(() => {
827
+ let e = M.value.table.useDialog && !M.value.table.show, t = cr.value.showTable;
828
+ return {
829
+ component: e ? In : Mn,
830
+ title: `${M.value.style.chart.layout.title.text}${M.value.style.chart.layout.title.subtitle.text ? `: ${M.value.style.chart.layout.title.subtitle.text}` : ""}`,
831
+ props: e ? {
832
+ backgroundColor: M.value.table.th.backgroundColor,
833
+ color: M.value.table.th.color,
834
+ headerColor: M.value.table.th.color,
835
+ headerBg: M.value.table.th.backgroundColor,
836
+ isFullscreen: kr.value,
837
+ fullscreenParent: Vn.value,
838
+ forcedWidth: Math.min(800, window.innerWidth * .8),
839
+ isCursorPointer: N.value
840
+ } : {
841
+ hideDetails: !0,
842
+ config: {
843
+ open: t,
844
+ maxHeight: 1e4,
845
+ body: {
846
+ backgroundColor: M.value.style.chart.backgroundColor,
847
+ color: M.value.style.chart.color
848
+ },
849
+ head: {
850
+ backgroundColor: M.value.style.chart.backgroundColor,
851
+ color: M.value.style.chart.color
852
+ }
853
+ }
854
+ }
855
+ };
856
+ });
857
+ Le(() => cr.value.showTable, async (e) => {
858
+ M.value.table.show || (e && M.value.table.useDialog && Un.value ? (await Me(), Un.value.open()) : "close" in Un.value && Un.value.close());
859
+ });
860
+ let { isResponsive: Lr } = Te(lr, ur);
861
+ function Rr() {
862
+ cr.value.showTable = !1, Wn.value && Wn.value.setTableIconState(!1);
863
+ }
864
+ let zr = d(() => L.value.map((e, t) => ({
865
+ ...e,
866
+ display: `${e.name}: ${c(M.value.style.chart.layout.roots.labels.formatter, e.total, i({
867
+ p: M.value.style.chart.layout.legend.prefix,
868
+ v: e.total,
869
+ s: M.value.style.chart.layout.legend.suffix,
870
+ r: M.value.style.chart.layout.legend.roundingValue
871
+ }), { datapoint: e })} (${i({
872
+ v: e.total / I.value * 100,
873
+ s: "%",
874
+ r: M.value.style.chart.layout.legend.roundingPercentage
875
+ })})`
876
+ }))), Br = d(() => zr.value.map((e) => ({
877
+ color: e.color,
878
+ name: e.display,
879
+ shape: "circle"
880
+ }))), Vr = d(() => M.value.style.chart.backgroundColor), Hr = d(() => ({
881
+ ...M.value.style.chart.layout.legend,
882
+ textAlign: "center",
883
+ show: !0,
884
+ position: "bottom"
885
+ })), { exportSvg: Ur, getSvg: Wr } = ge({
886
+ svg: er,
887
+ title: d(() => M.value.style.chart.layout.title),
888
+ legend: Hr,
889
+ legendItems: Br,
890
+ backgroundColor: Vr,
891
+ titleEmbedded: !0
892
+ });
893
+ async function Gr({ isCb: e }) {
894
+ Kn.value = !0, await Me();
895
+ try {
896
+ if (e) {
897
+ let { blob: e, url: t, text: n, dataUrl: r } = await Wr();
898
+ await Promise.resolve(M.value.userOptions.callbacks.svg({
899
+ blob: e,
900
+ url: t,
901
+ text: n,
902
+ dataUrl: r
903
+ }));
904
+ } else await Promise.resolve(Ur());
905
+ } finally {
906
+ Kn.value = !1;
907
+ }
908
+ }
909
+ function Kr(e) {
910
+ if (e?.stage === "start") {
911
+ Gn.value = !0;
912
+ return;
913
+ }
914
+ if (e?.stage === "end") {
915
+ Gn.value = !1;
916
+ return;
917
+ }
918
+ ar();
919
+ }
920
+ async function qr() {
921
+ if (R("copyAlt", {
922
+ config: M.value,
923
+ dataset: L.value
924
+ }), !M.value.userOptions.callbacks.altCopy) {
925
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
926
+ return;
927
+ }
928
+ await Promise.resolve(M.value.userOptions.callbacks.altCopy({
929
+ config: M.value,
930
+ dataset: L.value
931
+ }));
932
+ }
933
+ function Jr(e) {
934
+ if (!e) return "";
935
+ let t = i({
936
+ p: M.value.style.chart.layout.legend.prefix,
937
+ v: e.total,
938
+ s: M.value.style.chart.layout.legend.suffix,
939
+ r: M.value.style.chart.layout.legend.roundingValue
940
+ }), n = i({
941
+ v: e.total / I.value * 100,
942
+ s: "%",
943
+ r: M.value.style.chart.layout.legend.roundingPercentage
944
+ });
945
+ return `Root ${e.name}. Value ${t}. ${n} of total.`;
946
+ }
947
+ function Yr(e) {
948
+ if (!e) return "";
949
+ let t = i({
950
+ p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
951
+ v: e.value,
952
+ s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
953
+ r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
954
+ }), n = i({
955
+ v: e.proportionToRoot * 100,
956
+ s: "%",
957
+ r: M.value.style.chart.layout.legend.roundingPercentage
958
+ });
959
+ return `Branch ${e.name}. Root ${e.rootName}. Value ${t}. ${n} of root ${e.rootName}.`;
960
+ }
961
+ function Xr(e) {
962
+ if (!e) return "";
963
+ let t = i({
964
+ p: M.value.style.chart.layout.legend.prefix,
965
+ v: e.value,
966
+ s: M.value.style.chart.layout.legend.suffix,
967
+ r: M.value.style.chart.layout.nuts.selected.labels.roundingValue
968
+ }), n = i({
969
+ v: e.proportionToBranch * 100,
970
+ s: "%",
971
+ r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
972
+ });
973
+ return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${t}. ${n} of branch ${e.branchName}.`;
974
+ }
975
+ let Zr = d(() => V.value[j.value.rootIndex] || null), X = d(() => (vr.value[j.value.rootIndex] || [])[j.value.branchIndex] || null), Qr = d(() => ((yr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [])[j.value.nutIndex] || null), Z = d(() => Zr.value), $r = d(() => X.value), ei = d(() => j.value.level === "nut" ? X.value : null), ti = d(() => qn.value);
976
+ function Q() {
977
+ if (j.value.level === "root") {
978
+ A.value = Jr(Zr.value);
979
+ return;
980
+ }
981
+ if (j.value.level === "branch") {
982
+ A.value = Yr(X.value);
983
+ return;
984
+ }
985
+ j.value.level === "nut" && (A.value = Xr(Qr.value));
986
+ }
987
+ function $() {
988
+ j.value = {
989
+ level: "root",
990
+ rootIndex: 0,
991
+ branchIndex: 0,
992
+ nutIndex: 0,
993
+ locked: !1
994
+ }, A.value = "";
995
+ }
996
+ function ni() {
997
+ let e = vr.value[j.value.rootIndex] || [];
998
+ if (!e.length) {
999
+ j.value.branchIndex = 0;
1000
+ return;
1001
+ }
1002
+ j.value.branchIndex >= e.length && (j.value.branchIndex = 0), j.value.branchIndex < 0 && (j.value.branchIndex = e.length - 1);
1003
+ }
1004
+ function ri() {
1005
+ let e = (yr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [];
1006
+ if (!e.length) {
1007
+ j.value.nutIndex = 0;
1008
+ return;
1009
+ }
1010
+ j.value.nutIndex >= e.length && (j.value.nutIndex = 0), j.value.nutIndex < 0 && (j.value.nutIndex = e.length - 1);
1011
+ }
1012
+ function ii(e) {
1013
+ if (j.value.level === "root") {
1014
+ let t = V.value.length;
1015
+ if (!t) return;
1016
+ j.value.rootIndex += e, j.value.rootIndex >= t && (j.value.rootIndex = 0), j.value.rootIndex < 0 && (j.value.rootIndex = t - 1), j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
1017
+ return;
1018
+ }
1019
+ if (j.value.level === "branch") {
1020
+ j.value.branchIndex += e, ni(), j.value.nutIndex = 0, Q();
1021
+ return;
1022
+ }
1023
+ j.value.level === "nut" && (j.value.nutIndex += e, ri(), Q());
1024
+ }
1025
+ function ai(e) {
1026
+ if (e > 0) {
1027
+ if (j.value.level === "root") {
1028
+ if (!(vr.value[j.value.rootIndex] || []).length) return;
1029
+ j.value.level = "branch", j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
1030
+ return;
1031
+ }
1032
+ if (j.value.level === "branch") {
1033
+ if (!((yr.value[j.value.rootIndex] || [])[j.value.branchIndex] || []).length) return;
1034
+ j.value.level = "nut", j.value.nutIndex = 0, X.value ? xr(X.value) : Q();
1035
+ return;
1036
+ }
1037
+ return;
1038
+ }
1039
+ if (j.value.level === "nut") {
1040
+ J(), W.value = null, j.value.level = "branch", j.value.nutIndex = 0, Q();
1041
+ return;
1042
+ }
1043
+ j.value.level === "branch" && (W.value = null, G.value = null, j.value.level = "root", j.value.nutIndex = 0, Q());
1044
+ }
1045
+ function oi() {
1046
+ if (j.value.level === "root" && Zr.value) {
1047
+ Cr(Zr.value), A.value = `${Jr(Zr.value)} selected.`;
1048
+ return;
1049
+ }
1050
+ if (j.value.level === "branch" && X.value) {
1051
+ Sr(X.value), A.value = `${Yr(X.value)} selected.`;
1052
+ return;
1053
+ }
1054
+ j.value.level === "nut" && X.value && Qr.value && (xr(X.value), A.value = `${Xr(Qr.value)} details opened.`);
1055
+ }
1056
+ function si() {
1057
+ qn.value = !0, k.value = !1;
1058
+ }
1059
+ function ci() {
1060
+ qn.value = !1, k.value = !1, A.value = "", !G.value && !W.value && !H.value && $();
1061
+ }
1062
+ function li(e) {
1063
+ let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1064
+ if (!(!t && !n && !r && !i && !a && !o)) {
1065
+ if (e.preventDefault(), e.stopPropagation(), qn.value ||= !0, o) {
1066
+ K(), $(), k.value = !1;
1067
+ return;
1068
+ }
1069
+ if ((t || n || r || i) && (k.value = !0), t) {
1070
+ ii(-1);
1071
+ return;
1072
+ }
1073
+ if (n) {
1074
+ ii(1);
1075
+ return;
1076
+ }
1077
+ if (r) {
1078
+ ai(-1);
1079
+ return;
1080
+ }
1081
+ if (i) {
1082
+ ai(1);
1083
+ return;
1084
+ }
1085
+ a && oi();
1086
+ }
1087
+ }
1088
+ let ui = d(() => ({
1089
+ headers: Y.value.head,
1090
+ rows: Y.value.body.map((e) => [
1091
+ e.rootName,
1092
+ e.rootValue,
1093
+ i({
1094
+ v: e.rootToTotal * 100,
1095
+ s: "%",
1096
+ r: M.value.table.td.roundingPercentage
1097
+ }),
1098
+ e.branchName,
1099
+ e.branchValue,
1100
+ i({
1101
+ v: e.branchToRoot * 100,
1102
+ s: "%",
1103
+ r: M.value.table.td.roundingPercentage
1104
+ }),
1105
+ i({
1106
+ v: e.branchToTotal * 100,
1107
+ s: "%",
1108
+ r: M.value.table.td.roundingPercentage
1109
+ }),
1110
+ e.nutName,
1111
+ e.nutValue,
1112
+ i({
1113
+ v: e.nutToBranch * 100,
1114
+ s: "%",
1115
+ r: M.value.table.td.roundingPercentage
1116
+ }),
1117
+ i({
1118
+ v: e.nutToRoot * 100,
1119
+ s: "%",
1120
+ r: M.value.table.td.roundingPercentage
1121
+ }),
1122
+ i({
1123
+ v: e.nutToTotal * 100,
1124
+ s: "%",
1125
+ r: M.value.table.td.roundingPercentage
1126
+ })
1127
+ ])
1128
+ }));
1129
+ return be({
1130
+ getData: dr,
1131
+ getImage: Pr,
1132
+ generatePdf: ir,
1133
+ generateCsv: Or,
1134
+ generateImage: ar,
1135
+ generateSvg: Gr,
1136
+ toggleTable: jr,
1137
+ toggleAnnotator: Nr,
1138
+ toggleFullscreen: Ar,
1139
+ copyAlt: qr
1140
+ }), (e, t) => (b(), p("div", {
1141
+ class: _(`vue-data-ui-component vue-ui-chestnut ${kr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
1142
+ ref_key: "chestnutChart",
1143
+ ref: Vn,
1144
+ id: `vue-ui-chestnut_${O.value}`,
1145
+ style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor}`),
1146
+ onMouseenter: t[12] ||= () => T(Qn)(!0),
1147
+ onMouseleave: t[13] ||= () => T(Qn)(!1)
1148
+ }, [
1149
+ m("div", {
1150
+ id: `chart-instructions-${O.value}`,
1151
+ class: "sr-only"
1152
+ }, [m("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
1153
+ m("div", He, w(A.value), 1),
1154
+ ui.value?.rows?.length ? (b(), De(Se, {
1155
+ key: 0,
1156
+ uid: O.value,
1157
+ head: ui.value.headers,
1158
+ body: ui.value.rows,
1159
+ notice: M.value.a11y.translations.tableAvailable,
1160
+ caption: M.value.a11y.translations.tableCaption
1161
+ }, null, 8, [
1162
+ "uid",
1163
+ "head",
1164
+ "body",
1165
+ "notice",
1166
+ "caption"
1167
+ ])) : f("", !0),
1168
+ M.value.userOptions.buttons.annotator ? (b(), De(T(Nn), {
1169
+ key: 1,
1170
+ svgRef: T(er),
1171
+ backgroundColor: M.value.style.chart.backgroundColor,
1172
+ color: M.value.style.chart.color,
1173
+ active: Mr.value,
1174
+ isCursorPointer: N.value,
1175
+ onClose: Nr
1176
+ }, {
1177
+ "annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1178
+ "annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
1179
+ "annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
1180
+ "annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
1181
+ "annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
1182
+ "annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
1183
+ _: 3
1184
+ }, 8, [
1185
+ "svgRef",
1186
+ "backgroundColor",
1187
+ "color",
1188
+ "active",
1189
+ "isCursorPointer"
1190
+ ])) : f("", !0),
1191
+ or.value ? (b(), p("div", Ue, null, 512)) : f("", !0),
1192
+ M.value.userOptions.show && Bn.value && (T($n) || T(Zn)) ? (b(), De(T(Pn), {
1193
+ ref_key: "userOptionsRef",
1194
+ ref: Wn,
1195
+ key: `user_options_${Hn.value}`,
1196
+ backgroundColor: M.value.style.chart.backgroundColor,
1197
+ color: M.value.style.chart.color,
1198
+ isImaging: T(rr),
1199
+ isPrinting: T(nr),
1200
+ uid: O.value,
1201
+ hasPdf: M.value.userOptions.buttons.pdf,
1202
+ hasImg: M.value.userOptions.buttons.img,
1203
+ hasSvg: M.value.userOptions.buttons.svg,
1204
+ hasXls: M.value.userOptions.buttons.csv,
1205
+ hasTable: M.value.userOptions.buttons.table,
1206
+ hasFullscreen: M.value.userOptions.buttons.fullscreen,
1207
+ hasAltCopy: M.value.userOptions.buttons.altCopy,
1208
+ isFullscreen: kr.value,
1209
+ titles: { ...M.value.userOptions.buttonTitles },
1210
+ chartElement: Vn.value,
1211
+ position: M.value.userOptions.position,
1212
+ hasAnnotator: M.value.userOptions.buttons.annotator,
1213
+ isAnnotation: Mr.value,
1214
+ callbacks: M.value.userOptions.callbacks,
1215
+ printScale: M.value.userOptions.print.scale,
1216
+ tableDialog: M.value.table.useDialog,
1217
+ isCursorPointer: N.value,
1218
+ onToggleFullscreen: Ar,
1219
+ onGeneratePdf: T(ir),
1220
+ onGenerateCsv: Or,
1221
+ onGenerateImage: Kr,
1222
+ onGenerateSvg: Gr,
1223
+ onToggleTable: jr,
1224
+ onToggleAnnotator: Nr,
1225
+ onCopyAlt: qr,
1226
+ style: y({ visibility: T($n) ? T(Zn) ? "visible" : "hidden" : "visible" })
1227
+ }, Oe({ _: 2 }, [
1228
+ e.$slots.menuIcon ? {
1229
+ name: "menuIcon",
1230
+ fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
1231
+ isOpen: t,
1232
+ color: n
1233
+ })), void 0, !0)]),
1234
+ key: "0"
1235
+ } : void 0,
1236
+ e.$slots.optionPdf ? {
1237
+ name: "optionPdf",
1238
+ fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
1239
+ key: "1"
1240
+ } : void 0,
1241
+ e.$slots.optionCsv ? {
1242
+ name: "optionCsv",
1243
+ fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
1244
+ key: "2"
1245
+ } : void 0,
1246
+ e.$slots.optionImg ? {
1247
+ name: "optionImg",
1248
+ fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
1249
+ key: "3"
1250
+ } : void 0,
1251
+ e.$slots.optionSvg ? {
1252
+ name: "optionSvg",
1253
+ fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
1254
+ key: "4"
1255
+ } : void 0,
1256
+ e.$slots.optionTable ? {
1257
+ name: "optionTable",
1258
+ fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
1259
+ key: "5"
1260
+ } : void 0,
1261
+ e.$slots.optionFullscreen ? {
1262
+ name: "optionFullscreen",
1263
+ fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
1264
+ toggleFullscreen: t,
1265
+ isFullscreen: n
1266
+ })), void 0, !0)]),
1267
+ key: "6"
1268
+ } : void 0,
1269
+ e.$slots.optionAnnotator ? {
1270
+ name: "optionAnnotator",
1271
+ fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
1272
+ toggleAnnotator: t,
1273
+ isAnnotator: n
1274
+ })), void 0, !0)]),
1275
+ key: "7"
1276
+ } : void 0,
1277
+ e.$slots.optionAltCopy ? {
1278
+ name: "optionAltCopy",
1279
+ fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
1280
+ key: "8"
1281
+ } : void 0,
1282
+ e.$slots["custom-menu-before"] ? {
1283
+ name: "custom-menu-before",
1284
+ fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1285
+ key: "9"
1286
+ } : void 0,
1287
+ e.$slots["custom-menu-after"] ? {
1288
+ name: "custom-menu-after",
1289
+ fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1290
+ key: "10"
1291
+ } : void 0
1292
+ ]), 1032, [
1293
+ "backgroundColor",
1294
+ "color",
1295
+ "isImaging",
1296
+ "isPrinting",
1297
+ "uid",
1298
+ "hasPdf",
1299
+ "hasImg",
1300
+ "hasSvg",
1301
+ "hasXls",
1302
+ "hasTable",
1303
+ "hasFullscreen",
1304
+ "hasAltCopy",
1305
+ "isFullscreen",
1306
+ "titles",
1307
+ "chartElement",
1308
+ "position",
1309
+ "hasAnnotator",
1310
+ "isAnnotation",
1311
+ "callbacks",
1312
+ "printScale",
1313
+ "tableDialog",
1314
+ "isCursorPointer",
1315
+ "onGeneratePdf",
1316
+ "style"
1317
+ ])) : f("", !0),
1318
+ m("div", We, [P.value.height > 0 ? (b(), p("svg", {
1319
+ key: 0,
1320
+ ref_key: "svgRef",
1321
+ ref: er,
1322
+ xmlns: T(ue),
1323
+ "aria-describedby": `chart-instructions-${O.value}`,
1324
+ class: _({
1325
+ "vue-data-ui-fullscreen--on": kr.value,
1326
+ "vue-data-ui-fulscreen--off": !kr.value
1327
+ }),
1328
+ viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
1329
+ style: y(`overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
1330
+ tabindex: "0",
1331
+ onFocus: si,
1332
+ onBlur: ci,
1333
+ onKeydown: li
1334
+ }, [
1335
+ h(T(Fn)),
1336
+ e.$slots["chart-background"] ? (b(), p("foreignObject", {
1337
+ key: 0,
1338
+ x: 0,
1339
+ y: 0,
1340
+ width: P.value.width <= 0 ? 10 : P.value.width,
1341
+ height: P.value.height <= 0 ? 10 : P.value.height,
1342
+ style: { pointerEvents: "none" }
1343
+ }, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : f("", !0),
1344
+ H.value ? f("", !0) : (b(), p("g", qe, [M.value.style.chart.layout.title.text ? (b(), p("text", {
1345
+ key: 0,
1346
+ "text-anchor": "middle",
1347
+ fill: M.value.style.chart.layout.title.color,
1348
+ "font-weight": M.value.style.chart.layout.title.bold ? "bold" : "normal",
1349
+ "font-size": M.value.style.chart.layout.title.fontSize,
1350
+ x: P.value.width / 2,
1351
+ y: 12 + M.value.style.chart.layout.title.fontSize + M.value.style.chart.layout.title.offsetY,
1352
+ onClick: t[0] ||= () => {
1353
+ K(), $(), k.value = !1;
1354
+ }
1355
+ }, w(M.value.style.chart.layout.title.text), 9, Je)) : f("", !0), M.value.style.chart.layout.title.subtitle.text ? (b(), p("text", {
1356
+ key: 1,
1357
+ "text-anchor": "middle",
1358
+ fill: M.value.style.chart.layout.title.subtitle.color,
1359
+ "font-weight": M.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
1360
+ "font-size": M.value.style.chart.layout.title.subtitle.fontSize,
1361
+ x: P.value.width / 2,
1362
+ y: 48 + M.value.style.chart.layout.title.subtitle.fontSize + M.value.style.chart.layout.title.subtitle.offsetY,
1363
+ onClick: t[1] ||= () => {
1364
+ K(), $(), k.value = !1;
1365
+ }
1366
+ }, w(M.value.style.chart.layout.title.subtitle.text), 9, Ye)) : f("", !0)])),
1367
+ m("defs", null, [
1368
+ (b(!0), p(u, null, S(L.value, (e, t) => (b(), De(xe, {
1369
+ t: "radial",
1370
+ cx: "50%",
1371
+ cy: "50%",
1372
+ r: "50%",
1373
+ fx: "50%",
1374
+ fy: "50%",
1375
+ id: `root_gradient_${O.value}_${e.rootIndex}`,
1376
+ key: `root_gradient_${O.value}_${e.rootIndex}`,
1377
+ stops: [[
1378
+ "0%",
1379
+ T(s)(T(de)(e.color, .05), 100 - M.value.style.chart.layout.roots.gradientIntensity),
1380
+ 1
1381
+ ], [
1382
+ "100%",
1383
+ e.color,
1384
+ 1
1385
+ ]]
1386
+ }, null, 8, ["id", "stops"]))), 128)),
1387
+ (b(!0), p(u, null, S(L.value, (e) => (b(), De(xe, {
1388
+ t: "linear",
1389
+ x1: "0%",
1390
+ y1: "0%",
1391
+ x2: "100%",
1392
+ y2: "0%",
1393
+ id: `branch_gradient_${O.value}_${e.rootIndex}`,
1394
+ key: `branch_gradient_${O.value}_${e.rootIndex}`,
1395
+ stops: [[
1396
+ "0%",
1397
+ e.color,
1398
+ 1
1399
+ ], [
1400
+ "100%",
1401
+ T(s)(T(de)(e.color, .02), 100 - M.value.style.chart.layout.branches.gradientIntensity),
1402
+ 1
1403
+ ]]
1404
+ }, null, 8, ["id", "stops"]))), 128)),
1405
+ h(xe, {
1406
+ t: "radial",
1407
+ cx: "50%",
1408
+ cy: "50%",
1409
+ r: "50%",
1410
+ fx: "50%",
1411
+ fy: "50%",
1412
+ id: `nutpick_${O.value}`,
1413
+ stops: [
1414
+ [
1415
+ "0%",
1416
+ T(s)("#FFFFFF", 0),
1417
+ 0
1418
+ ],
1419
+ [
1420
+ "80%",
1421
+ T(s)("#FFFFFF", M.value.style.chart.layout.nuts.selected.gradientIntensity),
1422
+ 1
1423
+ ],
1424
+ [
1425
+ "100%",
1426
+ T(s)("#FFFFFF", 0),
1427
+ 0
1428
+ ]
1429
+ ]
1430
+ }, null, 8, ["id", "stops"]),
1431
+ h(xe, {
1432
+ t: "radial",
1433
+ cx: "50%",
1434
+ cy: "50%",
1435
+ r: "50%",
1436
+ fx: "50%",
1437
+ fy: "50%",
1438
+ id: `nut_${O.value}`,
1439
+ stops: [
1440
+ [
1441
+ "0%",
1442
+ T(s)("#FFFFFF", 0),
1443
+ 0
1444
+ ],
1445
+ [
1446
+ "80%",
1447
+ T(s)("#FFFFFF", M.value.style.chart.layout.nuts.gradientIntensity),
1448
+ 1
1449
+ ],
1450
+ [
1451
+ "100%",
1452
+ T(s)("#FFFFFF", 0),
1453
+ 0
1454
+ ]
1455
+ ]
1456
+ }, null, 8, ["id", "stops"]),
1457
+ h(xe, {
1458
+ t: "radial",
1459
+ cx: "50%",
1460
+ cy: "50%",
1461
+ r: "50%",
1462
+ fx: "50%",
1463
+ fy: "50%",
1464
+ id: `nut_underlayer_${O.value}`,
1465
+ stops: [
1466
+ [
1467
+ "0%",
1468
+ T(s)(M.value.style.chart.backgroundColor, 100),
1469
+ 1
1470
+ ],
1471
+ [
1472
+ "80%",
1473
+ T(s)(M.value.style.chart.backgroundColor, 60),
1474
+ 1
1475
+ ],
1476
+ [
1477
+ "100%",
1478
+ T(s)(M.value.style.chart.backgroundColor, 0),
1479
+ 1
1480
+ ]
1481
+ ]
1482
+ }, null, 8, ["id", "stops"])
1483
+ ]),
1484
+ M.value.style.chart.layout.grandTotal.show ? (b(), p("g", Xe, [m("text", {
1485
+ x: F.value.seedX,
1486
+ y: 32 + M.value.style.chart.layout.grandTotal.offsetY,
1487
+ "font-size": M.value.style.chart.layout.grandTotal.fontSize,
1488
+ "font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
1489
+ fill: M.value.style.chart.layout.grandTotal.color,
1490
+ "text-anchor": "middle",
1491
+ onClick: t[2] ||= () => {
1492
+ K(), $(), k.value = !1;
1493
+ }
1494
+ }, w(M.value.style.chart.layout.grandTotal.text), 9, Ze), m("text", {
1495
+ x: F.value.seedX,
1496
+ y: 38 + M.value.style.chart.layout.grandTotal.fontSize + M.value.style.chart.layout.grandTotal.offsetY,
1497
+ "font-size": M.value.style.chart.layout.grandTotal.fontSize,
1498
+ "font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
1499
+ fill: M.value.style.chart.layout.grandTotal.color,
1500
+ "text-anchor": "middle",
1501
+ onClick: t[3] ||= () => {
1502
+ K(), $(), k.value = !1;
1503
+ }
1504
+ }, w(T(c)(M.value.style.chart.layout.grandTotal.formatter, I.value, T(i)({
1505
+ p: M.value.style.chart.layout.grandTotal.prefix,
1506
+ v: I.value,
1507
+ s: M.value.style.chart.layout.grandTotal.suffix,
1508
+ r: M.value.style.chart.layout.grandTotal.roundingValue
1509
+ }))), 9, Qe)])) : f("", !0),
1510
+ (b(!0), p(u, null, S(B.value, (e) => (b(), p("g", null, [m("defs", null, [h(xe, {
1511
+ t: "linear",
1512
+ id: `link_grad_${e.id}`,
1513
+ stops: [[
1514
+ "0%",
1515
+ e.color,
1516
+ 1
1517
+ ], [
1518
+ "100%",
1519
+ T(s)(e.color, M.value.style.chart.layout.links.opacity),
1520
+ 1
1521
+ ]]
1522
+ }, null, 8, ["id", "stops"])]), m("path", {
1523
+ d: Fr(e),
1524
+ stroke: T(s)(e.color, M.value.style.chart.layout.links.opacity),
1525
+ fill: `url(#link_grad_${e.id})`,
1526
+ "stroke-linecap": "round",
1527
+ "stroke-linejoin": "round",
1528
+ style: y(`opacity:${+!!q(e)}`),
1529
+ onClick: t[4] ||= () => {
1530
+ K(), $(), k.value = !1;
1531
+ }
1532
+ }, null, 12, $e)]))), 256)),
1533
+ (b(!0), p(u, null, S(z.value, (e) => (b(), p("circle", {
1534
+ cx: e.x,
1535
+ cy: e.y,
1536
+ r: e.r,
1537
+ fill: M.value.style.chart.layout.roots.underlayerColor,
1538
+ stroke: "none",
1539
+ style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`)
1540
+ }, null, 12, et))), 256)),
1541
+ (b(!0), p(u, null, S(z.value, (e, t) => (b(), p("circle", {
1542
+ "aria-label": Jr(e),
1543
+ cx: e.x,
1544
+ cy: e.y,
1545
+ r: e.r,
1546
+ fill: M.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${O.value}_${e.rootIndex})` : e.color,
1547
+ stroke: M.value.style.chart.layout.roots.stroke,
1548
+ "stroke-width": M.value.style.chart.layout.roots.strokeWidth,
1549
+ style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1550
+ onClick: (t) => Cr(e)
1551
+ }, null, 12, tt))), 256)),
1552
+ M.value.style.chart.layout.roots.labels.show ? (b(), p("g", nt, [(b(!0), p(u, null, S(z.value, (e, t) => (b(), p("text", {
1553
+ x: e.x,
1554
+ y: e.y + M.value.style.chart.layout.roots.labels.fontSize / 2.6,
1555
+ "text-anchor": "middle",
1556
+ "font-size": M.value.style.chart.layout.roots.labels.fontSize,
1557
+ fill: M.value.style.chart.layout.roots.labels.adaptColorToBackground ? T(le)(e.color) : M.value.style.chart.layout.roots.labels.color,
1558
+ "font-weight": "bold",
1559
+ style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1560
+ onClick: (t) => Cr(e)
1561
+ }, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(i)({
1562
+ p: M.value.style.chart.layout.roots.labels.prefix,
1563
+ v: e.total,
1564
+ s: M.value.style.chart.layout.roots.labels.suffix,
1565
+ r: M.value.style.chart.layout.roots.labels.roundingValue
1566
+ }), { datapoint: e })), 13, rt))), 256)), (b(!0), p(u, null, S(z.value, (e) => (b(), p("g", null, [H.value && e.rootIndex === H.value.rootIndex || W.value && e.rootIndex === W.value.rootIndex || G.value && e.rootIndex === G.value.rootIndex ? (b(), p("g", it, [m("text", {
1567
+ x: e.x,
1568
+ y: e.y + e.r + 24,
1569
+ "text-anchor": "middle",
1570
+ fill: M.value.style.chart.layout.roots.labels.name.color,
1571
+ "font-size": M.value.style.chart.layout.roots.labels.name.fontSize,
1572
+ "font-weight": M.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
1573
+ onClick: t[5] ||= () => {
1574
+ K(), $(), k.value = !1;
1575
+ }
1576
+ }, w(e.name), 9, at)])) : f("", !0)]))), 256))])) : f("", !0),
1577
+ (b(!0), p(u, null, S(B.value, (e) => (b(), p("rect", {
1578
+ x: e.x1,
1579
+ y: e.y1,
1580
+ height: P.value.branchSize,
1581
+ width: e.x2 - e.x1,
1582
+ fill: M.value.style.chart.layout.branches.underlayerColor,
1583
+ rx: M.value.style.chart.layout.branches.borderRadius,
1584
+ stroke: "none",
1585
+ style: y(`opacity:${q(e) ? 1 : .05}`),
1586
+ onClick: (t) => Sr(e)
1587
+ }, null, 12, ot))), 256)),
1588
+ (b(!0), p(u, null, S(B.value, (e, t) => (b(), p("rect", {
1589
+ "aria-label": Yr(e),
1590
+ x: e.x1,
1591
+ y: e.y1,
1592
+ height: P.value.branchSize,
1593
+ width: e.x2 - e.x1,
1594
+ fill: M.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${O.value}_${e.rootIndex})` : e.color,
1595
+ rx: M.value.style.chart.layout.branches.borderRadius,
1596
+ stroke: M.value.style.chart.layout.branches.stroke,
1597
+ "stroke-width": M.value.style.chart.layout.branches.strokeWidth,
1598
+ style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1599
+ onClick: (t) => Sr(e)
1600
+ }, null, 12, st))), 256)),
1601
+ M.value.style.chart.layout.branches.labels.dataLabels.show ? (b(), p("g", ct, [(b(!0), p(u, null, S(B.value, (e) => (b(), p("g", null, [e.proportionToRoot * 100 > M.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (b(), p("text", {
1602
+ key: 0,
1603
+ x: e.x1 + 6,
1604
+ y: e.y1 + P.value.branchSize / 1.5,
1605
+ "text-anchor": "start",
1606
+ fill: T(le)(e.color),
1607
+ "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1608
+ "font-weight": "bold",
1609
+ style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
1610
+ onClick: (t) => Sr(e)
1611
+ }, w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(i)({
1612
+ p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
1613
+ v: e.value,
1614
+ s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
1615
+ r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
1616
+ }), { datapoint: e })), 13, lt)) : f("", !0)]))), 256))])) : f("", !0),
1617
+ (b(!0), p(u, null, S(B.value, (e, t) => (b(), p("g", null, [(b(!0), p(u, null, S(T(n)({
1618
+ series: e.breakdown,
1619
+ base: 1
1620
+ }, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + P.value.branchSize / 2, P.value.branchSize / 3, P.value.branchSize / 3), (t, n) => (b(), p("path", {
1621
+ d: t.path,
1622
+ stroke: t.color,
1623
+ "stroke-width": 10,
1624
+ fill: "none",
1625
+ style: y(`opacity:${q(e) ? 1 : .1}`)
1626
+ }, null, 12, ut))), 256)), m("circle", {
1627
+ "aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
1628
+ fill: M.value.style.chart.layout.nuts.useGradient ? `url(#nut_${O.value})` : "transparent",
1629
+ cx: e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1630
+ cy: e.y1 + P.value.branchSize / 2,
1631
+ r: P.value.branchSize / 2 + 2,
1632
+ onClick: (t) => xr(e),
1633
+ style: y(`cursor:${N.value ? "pointer" : "default"};opacity:${q(e) ? 1 : .1}`)
1634
+ }, null, 12, dt)]))), 256)),
1635
+ M.value.style.chart.layout.branches.labels.show && !W.value ? (b(), p("g", ft, [(b(!0), p(u, null, S(B.value, (e) => (b(), p("text", {
1636
+ x: e.x2 + P.value.branchSize + 24 + M.value.style.chart.layout.nuts.offsetX,
1637
+ y: e.y1 + P.value.branchSize / 2 + 5,
1638
+ "font-size": M.value.style.chart.layout.branches.labels.fontSize,
1639
+ "font-weight": M.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
1640
+ fill: M.value.style.chart.layout.branches.labels.color,
1641
+ "text-anchor": "start",
1642
+ style: y(`opacity:${q(e) ? 1 : .1}`)
1643
+ }, w(e.name), 13, pt))), 256))])) : f("", !0),
1644
+ m("line", {
1645
+ x1: 256 + P.value.padding.left,
1646
+ x2: 256 + P.value.padding.left,
1647
+ y1: F.value.top,
1648
+ y2: F.value.bottom,
1649
+ stroke: M.value.style.chart.layout.verticalSeparator.stroke,
1650
+ "stroke-width": M.value.style.chart.layout.verticalSeparator.strokeWidth
1651
+ }, null, 8, mt),
1652
+ !H.value && !W.value ? (b(), p("foreignObject", {
1653
+ key: 6,
1654
+ x: 0,
1655
+ y: F.value.bottom,
1656
+ height: P.value.height - F.value.bottom,
1657
+ width: P.value.width,
1658
+ style: { overflow: "visible" },
1659
+ "data-no-svg-export": "",
1660
+ onClick: t[6] ||= () => {
1661
+ K(), $(), k.value = !1;
1662
+ }
1663
+ }, [m("div", gt, [m("div", _t, [(b(!0), p(u, null, S(z.value, (e) => (b(), p("div", { style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), p("svg", vt, [m("circle", {
1664
+ cx: "10",
1665
+ cy: "10",
1666
+ r: "10",
1667
+ fill: e.color,
1668
+ stroke: "none"
1669
+ }, null, 8, yt)])), T(Yn) ? f("", !0) : (b(), p(u, { key: 0 }, [
1670
+ m("span", null, w(e.name) + ":", 1),
1671
+ m("b", null, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(i)({
1672
+ p: M.value.style.chart.layout.legend.prefix,
1673
+ v: e.total,
1674
+ s: M.value.style.chart.layout.legend.suffix,
1675
+ r: M.value.style.chart.layout.legend.roundingValue
1676
+ }), { datapoint: e })), 1),
1677
+ ke(" (" + w(T(i)({
1678
+ v: e.total / I.value * 100,
1679
+ s: "%",
1680
+ r: M.value.style.chart.layout.legend.roundingPercentage
1681
+ })) + ") ", 1)
1682
+ ], 64))], 4))), 256))])])], 8, ht)) : f("", !0),
1683
+ H.value && U.value ? (b(), p("g", bt, [
1684
+ (b(), p("foreignObject", {
1685
+ x: 0,
1686
+ y: wr(),
1687
+ height: P.value.height - F.value.bottom,
1688
+ width: P.value.width,
1689
+ style: { overflow: "visible" },
1690
+ onClick: t[7] ||= () => {
1691
+ K(), $(), k.value = !1;
1692
+ }
1693
+ }, [m("div", St, [m("b", null, w(H.value.name), 1), m("div", Ct, [(b(!0), p(u, null, S(H.value.breakdown, (e, t) => (b(), p("div", { style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), p("svg", wt, [m("circle", {
1694
+ cx: "10",
1695
+ cy: "10",
1696
+ r: "10",
1697
+ fill: e.color,
1698
+ stroke: "none"
1699
+ }, null, 8, Tt)])), m("span", null, [
1700
+ ke(w(e.name) + ": ", 1),
1701
+ m("b", null, w(M.value.style.chart.layout.legend.prefix) + " " + w(e.value.toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + w(M.value.style.chart.layout.legend.suffix), 1),
1702
+ ke(" (" + w((e.proportionToBranch * 100).toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
1703
+ ])], 4))), 256))])])], 8, xt)),
1704
+ m("circle", {
1705
+ cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1706
+ cy: H.value.y1 + P.value.branchSize / 2,
1707
+ r: 256,
1708
+ fill: `url(#nut_underlayer_${O.value})`,
1709
+ onClick: J,
1710
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1711
+ }, null, 10, Et),
1712
+ (b(!0), p(u, null, S(U.value, (e) => (b(), p("g", null, [Tr(e) ? (b(), p("path", {
1713
+ key: 0,
1714
+ d: T(ce)(e, {
1715
+ x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1716
+ y: H.value.y1 + P.value.branchSize / 2
1717
+ }, 16, 16, !1, !1, 64),
1718
+ stroke: e.color,
1719
+ "stroke-width": "1",
1720
+ "stroke-linecap": "round",
1721
+ "stroke-linejoin": "round",
1722
+ fill: "none",
1723
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1724
+ }, null, 10, Dt)) : f("", !0)]))), 256)),
1725
+ m("circle", {
1726
+ cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1727
+ cy: H.value.y1 + P.value.branchSize / 2,
1728
+ r: 118,
1729
+ fill: M.value.style.chart.backgroundColor,
1730
+ onClick: J,
1731
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1732
+ }, null, 10, Ot),
1733
+ (b(!0), p(u, null, S(U.value, (e) => (b(), p("path", {
1734
+ d: e.path,
1735
+ stroke: e.color,
1736
+ "stroke-width": 64,
1737
+ fill: "none",
1738
+ onClick: J,
1739
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1740
+ }, null, 10, kt))), 256)),
1741
+ m("circle", {
1742
+ cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1743
+ cy: H.value.y1 + P.value.branchSize / 2,
1744
+ r: 110,
1745
+ fill: `url(#nutpick_${O.value})`,
1746
+ onClick: J,
1747
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1748
+ }, null, 10, At),
1749
+ m("circle", {
1750
+ cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1751
+ cy: H.value.y1 + P.value.branchSize / 2,
1752
+ r: 64,
1753
+ fill: M.value.style.chart.backgroundColor,
1754
+ onClick: J,
1755
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1756
+ }, null, 10, jt),
1757
+ m("text", {
1758
+ x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1759
+ y: H.value.y1 + 8,
1760
+ fill: M.value.style.chart.layout.nuts.selected.labels.core.total.color,
1761
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
1762
+ "font-weight": M.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
1763
+ "text-anchor": "middle",
1764
+ onClick: J,
1765
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1766
+ }, w(M.value.translations.total), 11, Mt),
1767
+ m("text", {
1768
+ x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
1769
+ y: H.value.y1 + 36,
1770
+ fill: M.value.style.chart.layout.nuts.selected.labels.core.value.color,
1771
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
1772
+ "font-weight": M.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
1773
+ "text-anchor": "middle",
1774
+ onClick: J,
1775
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1776
+ }, w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.value, T(i)({
1777
+ p: M.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
1778
+ v: H.value.value,
1779
+ s: M.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
1780
+ r: M.value.style.chart.layout.nuts.selected.roundingValue
1781
+ }), { datapoint: H.value })), 11, Nt),
1782
+ (b(!0), p(u, null, S(U.value, (e, t) => (b(), p("g", null, [Tr(e) ? (b(), p("text", {
1783
+ key: 0,
1784
+ x: T(l)(e).x,
1785
+ "text-anchor": T(l)(e).anchor,
1786
+ y: T(ae)(e) - M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
1787
+ fill: e.color,
1788
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
1789
+ style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1790
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1791
+ }, " ⬤ ", 14, Pt)) : f("", !0), Tr(e) ? (b(), p("text", {
1792
+ key: 1,
1793
+ x: T(l)(e, !0).x,
1794
+ "text-anchor": T(l)(e, !0).anchor,
1795
+ y: T(ae)(e),
1796
+ fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1797
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1798
+ style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1799
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1800
+ }, w(H.value.breakdown[t].name), 15, Ft)) : f("", !0)]))), 256)),
1801
+ (b(!0), p(u, null, S(U.value, (e, t) => (b(), p("g", null, [
1802
+ Tr(e) ? (b(), p("text", {
1803
+ key: 0,
1804
+ x: T(l)(e, !0).x,
1805
+ "text-anchor": T(l)(e).anchor,
1806
+ y: T(ae)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1807
+ fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1808
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1809
+ style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1810
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1811
+ }, w(T(i)({
1812
+ v: H.value.breakdown[t].value / H.value.value * 100,
1813
+ s: "%",
1814
+ r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1815
+ })) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[t].branchName) + " " + w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.breakdown[t].value, T(i)({
1816
+ p: M.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
1817
+ v: H.value.breakdown[t].value,
1818
+ s: M.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
1819
+ r: M.value.style.chart.layout.nuts.selected.roundingValue
1820
+ }), {
1821
+ datapoint: U.value,
1822
+ seriesIndex: t
1823
+ })), 15, It)) : f("", !0),
1824
+ Tr(e) ? (b(), p("text", {
1825
+ key: 1,
1826
+ x: T(l)(e, !0).x,
1827
+ "text-anchor": T(l)(e).anchor,
1828
+ y: T(ae)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
1829
+ fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1830
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1831
+ style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1832
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1833
+ }, w(T(i)({
1834
+ v: H.value.breakdown[t].proportionToRoot * 100,
1835
+ s: "%",
1836
+ r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1837
+ })) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[t].rootName), 15, Lt)) : f("", !0),
1838
+ Tr(e) ? (b(), p("text", {
1839
+ key: 2,
1840
+ x: T(l)(e, !0).x,
1841
+ "text-anchor": T(l)(e).anchor,
1842
+ y: T(ae)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
1843
+ fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1844
+ "font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1845
+ style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1846
+ class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1847
+ }, w(T(i)({
1848
+ v: H.value.breakdown[t].proportionToTree * 100,
1849
+ s: "%",
1850
+ r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1851
+ })) + " " + w(M.value.translations.proportionToTree), 15, Rt)) : f("", !0)
1852
+ ]))), 256))
1853
+ ])) : f("", !0),
1854
+ (b(!0), p(u, null, S(B.value, (e) => (b(), p("g", null, [
1855
+ W.value && W.value.id === e.id && !H.value ? (b(), p("text", {
1856
+ key: 0,
1857
+ x: e.x1 + 6,
1858
+ y: e.y1 + P.value.branchSize + 24,
1859
+ "font-weight": "bold",
1860
+ "text-anchor": "start",
1861
+ "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1862
+ fill: M.value.style.chart.layout.branches.labels.color,
1863
+ onClick: t[8] ||= () => {
1864
+ K(), $(), k.value = !1;
1865
+ }
1866
+ }, w(e.name) + ": " + w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(i)({
1867
+ p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
1868
+ v: e.value,
1869
+ s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
1870
+ r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
1871
+ }), { datapoint: e })), 9, zt)) : f("", !0),
1872
+ W.value && W.value.id === e.id && !H.value ? (b(), p("text", {
1873
+ key: 1,
1874
+ x: e.x1 + 6,
1875
+ y: e.y1 + P.value.branchSize + 48,
1876
+ "text-anchor": "start",
1877
+ "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1878
+ fill: M.value.style.chart.layout.branches.labels.color,
1879
+ onClick: t[9] ||= () => {
1880
+ K(), $(), k.value = !1;
1881
+ }
1882
+ }, w(T(i)({
1883
+ v: e.proportionToRoot * 100,
1884
+ s: "%",
1885
+ r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1886
+ })) + " " + w(M.value.translations.of) + " " + w(e.rootName), 9, Bt)) : f("", !0),
1887
+ W.value && W.value.id === e.id && !H.value ? (b(), p("text", {
1888
+ key: 2,
1889
+ x: e.x1 + 6,
1890
+ y: e.y1 + P.value.branchSize + 72,
1891
+ "text-anchor": "start",
1892
+ "font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1893
+ fill: M.value.style.chart.layout.branches.labels.color,
1894
+ onClick: t[10] ||= () => {
1895
+ K(), $(), k.value = !1;
1896
+ }
1897
+ }, w(T(i)({
1898
+ v: e.value / I.value * 100,
1899
+ s: "%",
1900
+ r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1901
+ })) + " " + w(M.value.translations.proportionToTree), 9, Vt)) : f("", !0)
1902
+ ]))), 256)),
1903
+ C(e.$slots, "svg", { svg: {
1904
+ ...P.value,
1905
+ isPrintingImg: T(nr) || T(rr) || Gn.value,
1906
+ isPrintingSvg: Kn.value
1907
+ } }, void 0, !0)
1908
+ ], 46, Ge)) : f("", !0)]),
1909
+ e.$slots.watermark ? (b(), p("div", Ht, [C(e.$slots, "watermark", v(g({ isPrinting: T(nr) || T(rr) || Gn.value || Kn.value })), void 0, !0)])) : f("", !0),
1910
+ C(e.$slots, "legend", { legend: L.value }, void 0, !0),
1911
+ e.$slots.source ? (b(), p("div", Ut, [C(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
1912
+ Bn.value && M.value.userOptions.buttons.table ? (b(), De(Pe(Ir.value.component), je({ key: 6 }, Ir.value.props, {
1913
+ ref_key: "tableUnit",
1914
+ ref: Un,
1915
+ onClose: Rr
1916
+ }), Oe({
1917
+ content: E(() => [m("div", {
1918
+ ref_key: "tableContainer",
1919
+ ref: lr,
1920
+ class: "vue-ui-chestnut-table",
1921
+ style: y(`${M.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
1922
+ }, [m("div", { style: y(`${M.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [M.value.table.useDialog ? f("", !0) : (b(), p("div", {
1923
+ key: 0,
1924
+ role: "button",
1925
+ tabindex: "0",
1926
+ style: y(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${N.value ? "pointer" : "default"}; background:${M.value.table.th.backgroundColor};`),
1927
+ onClick: Rr,
1928
+ onKeypress: Re(Rr, ["enter"])
1929
+ }, [h(T(jn), {
1930
+ name: "close",
1931
+ stroke: M.value.table.th.color,
1932
+ "stroke-width": 2
1933
+ }, null, 8, ["stroke"])], 36)), m("div", {
1934
+ style: { width: "100%" },
1935
+ class: _({ "vue-ui-responsive": T(Lr) })
1936
+ }, [m("table", Wt, [
1937
+ M.value.table.useDialog ? f("", !0) : (b(), p("caption", {
1938
+ key: 0,
1939
+ style: y({
1940
+ backgroundColor: M.value.table.th.backgroundColor,
1941
+ color: M.value.table.th.color,
1942
+ outline: M.value.table.th.outline
1943
+ }),
1944
+ class: "vue-ui-data-table__caption"
1945
+ }, [ke(w(M.value.style.chart.layout.title.text) + " ", 1), M.value.style.chart.layout.title.subtitle.text ? (b(), p("span", Gt, w(M.value.style.chart.layout.title.subtitle.text), 1)) : f("", !0)], 4)),
1946
+ m("thead", null, [m("tr", {
1947
+ role: "row",
1948
+ style: y(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color}`)
1949
+ }, [(b(!0), p(u, null, S(Y.value.head, (e) => (b(), p("th", { style: y(`outline:${M.value.table.th.outline}`) }, w(e), 5))), 256))], 4)]),
1950
+ m("tbody", null, [(b(!0), p(u, null, S(Y.value.body, (e, t) => (b(), p("tr", {
1951
+ class: _({
1952
+ "vue-ui-data-table__tbody__row": !0,
1953
+ "vue-ui-data-table__tbody__row-even": t % 2 == 0,
1954
+ "vue-ui-data-table__tbody__row-odd": t % 2 != 0
1955
+ }),
1956
+ style: y(`background:${M.value.table.td.backgroundColor};color:${M.value.table.td.color}`)
1957
+ }, [
1958
+ m("td", {
1959
+ class: "vue-ui-data-table__tbody__td",
1960
+ style: y(`outline:${M.value.table.td.outline}`),
1961
+ "data-cell": Y.value.head[0]
1962
+ }, [m("div", qt, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), p("span", Jt)) : (b(), p("span", Yt, w(e.rootName), 1))])], 12, Kt),
1963
+ m("td", {
1964
+ class: "vue-ui-data-table__tbody__td",
1965
+ style: y(`outline:${M.value.table.td.outline}`),
1966
+ "data-cell": Y.value.head[1]
1967
+ }, [m("div", Zt, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), p("span", Qt)) : (b(), p("span", $t, w(e.rootValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, Xt),
1968
+ m("td", {
1969
+ class: "vue-ui-data-table__tbody__td",
1970
+ style: y(`outline:${M.value.table.td.outline}`),
1971
+ "data-cell": Y.value.head[2]
1972
+ }, [m("div", tn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), p("span", nn)) : (b(), p("span", rn, w((e.rootToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, en),
1973
+ m("td", {
1974
+ class: "vue-ui-data-table__tbody__td",
1975
+ style: y(`outline:${M.value.table.td.outline}`),
1976
+ "data-cell": Y.value.head[3]
1977
+ }, [m("div", on, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), p("span", sn)) : (b(), p("span", cn, w(e.branchName), 1))])], 12, an),
1978
+ m("td", {
1979
+ class: "vue-ui-data-table__tbody__td",
1980
+ style: y(`outline:${M.value.table.td.outline}`),
1981
+ "data-cell": Y.value.head[4]
1982
+ }, [m("div", un, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), p("span", dn)) : (b(), p("span", fn, w(e.branchValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, ln),
1983
+ m("td", {
1984
+ class: "vue-ui-data-table__tbody__td",
1985
+ style: y(`outline:${M.value.table.td.outline}`),
1986
+ "data-cell": Y.value.head[5]
1987
+ }, [m("div", mn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), p("span", hn)) : (b(), p("span", gn, w((e.branchToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, pn),
1988
+ m("td", {
1989
+ class: "vue-ui-data-table__tbody__td",
1990
+ style: y(`outline:${M.value.table.td.outline}`),
1991
+ "data-cell": Y.value.head[6]
1992
+ }, [m("div", vn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), p("span", yn)) : (b(), p("span", bn, w((e.branchToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, _n),
1993
+ m("td", {
1994
+ class: "vue-ui-data-table__tbody__td",
1995
+ style: y(`outline:${M.value.table.td.outline}`),
1996
+ "data-cell": Y.value.head[7]
1997
+ }, [m("div", Sn, w(e.nutName), 1)], 12, xn),
1998
+ m("td", {
1999
+ class: "vue-ui-data-table__tbody__td",
2000
+ style: y(`outline:${M.value.table.td.outline}`),
2001
+ "data-cell": Y.value.head[8]
2002
+ }, [m("div", wn, w(e.nutValue.toFixed(M.value.table.td.roundingValue)), 1)], 12, Cn),
2003
+ m("td", {
2004
+ class: "vue-ui-data-table__tbody__td",
2005
+ style: y(`outline:${M.value.table.td.outline}`),
2006
+ "data-cell": Y.value.head[9]
2007
+ }, [m("div", En, w((e.nutToBranch * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Tn),
2008
+ m("td", {
2009
+ class: "vue-ui-data-table__tbody__td",
2010
+ style: y(`outline:${M.value.table.td.outline}`),
2011
+ "data-cell": Y.value.head[10]
2012
+ }, [m("div", On, w((e.nutToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Dn),
2013
+ m("td", {
2014
+ class: "vue-ui-data-table__tbody__td",
2015
+ style: y(`outline:${M.value.table.td.outline}`),
2016
+ "data-cell": Y.value.head[11]
2017
+ }, [m("div", An, w((e.nutToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, kn)
2018
+ ], 6))), 256))])
2019
+ ])], 2)], 4)], 4)]),
2020
+ _: 2
2021
+ }, [M.value.table.useDialog ? {
2022
+ name: "title",
2023
+ fn: E(() => [ke(w(Ir.value.title), 1)]),
2024
+ key: "0"
2025
+ } : void 0, M.value.table.useDialog ? {
2026
+ name: "actions",
2027
+ fn: E(() => [m("button", {
2028
+ tabindex: "0",
2029
+ class: "vue-ui-user-options-button",
2030
+ onClick: t[11] ||= (e) => Or(M.value.userOptions.callbacks.csv)
2031
+ }, [h(T(jn), {
2032
+ name: "fileCsv",
2033
+ stroke: Ir.value.props.color
2034
+ }, null, 8, ["stroke"])])]),
2035
+ key: "1"
2036
+ } : void 0]), 1040)) : f("", !0),
2037
+ C(e.$slots, "skeleton", {}, () => [T(Yn) ? (b(), De(he, { key: 0 })) : f("", !0)], !0)
2038
+ ], 46, Be));
2039
+ }
2040
+ }, [["__scopeId", "data-v-b3384a62"]]);
2041
+ //#endregion
2042
+ export { ze as n, jn as t };