vue-data-ui 3.20.10 → 3.21.0

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