vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1812 @@
1
+ import { useCssVars as ll, defineAsyncComponent as se, computed as f, ref as C, toRefs as al, watch as je, onMounted as ol, nextTick as _e, openBlock as n, createElementBlock as u, unref as r, normalizeStyle as h, normalizeClass as N, createElementVNode as s, toDisplayString as d, createBlock as ve, createCommentVNode as p, withCtx as A, renderSlot as $, normalizeProps as X, guardReactiveProps as U, createSlots as dt, createVNode as Ee, Fragment as k, renderList as w, createTextVNode as ye, resolveDynamicComponent as nl, mergeProps as ul, withKeys as sl } from "vue";
2
+ import { j as rl, t as vt, m as il, p as G, n as cl, r as Xe, q as ke, s as Ue, o as dl, k as Q, l as m, X as vl, u as B, v as yt, W as ht, a4 as ft, a5 as yl, a6 as he, a7 as K, a0 as hl, a1 as fl } from "./lib-DBptbyyI.js";
3
+ import { u as bl } from "./useConfig-DO94Aj5s.js";
4
+ import { u as pl, B as gl } from "./BaseScanner-BhhkKVoj.js";
5
+ import { u as xl } from "./usePrinter-CEpYU3r5.js";
6
+ import { u as ml } from "./useSvgExport-ByUukOZt.js";
7
+ import { u as Ge } from "./useNestedProp-Bf5XFbs8.js";
8
+ import { u as _l } from "./useThemeCheck-D1ZYXUwG.js";
9
+ import { u as kl } from "./useTableResponsive-Cbx-ACcP.js";
10
+ import { u as wl } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as Cl } from "./useChartAccessibility-9icAAmYg.js";
12
+ import $l from "./img-LXxMLmCg.js";
13
+ import Il from "./vue_ui_chestnut-BloFvDuV.js";
14
+ import { A as Tl } from "./A11yDataTable-KcVAX2cP.js";
15
+ import { _ as Al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const zl = ["id"], Nl = ["id"], Sl = {
17
+ "aria-live": "polite",
18
+ class: "sr-only"
19
+ }, Fl = {
20
+ key: 2,
21
+ ref: "noTitle",
22
+ class: "vue-data-ui-no-title-space",
23
+ style: "height:36px; width: 100%;background:transparent"
24
+ }, Pl = { style: { position: "relative" } }, Ll = ["xmlns", "aria-describedby", "viewBox"], Bl = ["width", "height"], Rl = { key: 1 }, Vl = ["fill", "font-weight", "font-size", "x", "y"], Ol = ["fill", "font-weight", "font-size", "x", "y"], Ml = ["id"], Dl = ["stop-color"], jl = ["stop-color"], El = ["id"], Xl = ["stop-color"], Ul = ["stop-color"], Gl = ["id"], Kl = ["stop-color"], Wl = ["stop-color"], Hl = ["stop-color"], Yl = ["id"], ql = ["stop-color"], Zl = ["stop-color"], Jl = ["stop-color"], Ql = ["id"], ea = ["stop-color"], ta = ["stop-color"], la = ["stop-color"], aa = { key: 2 }, oa = ["x", "y", "font-size", "font-weight", "fill"], na = ["x", "y", "font-size", "font-weight", "fill"], ua = ["id"], sa = ["stop-color"], ra = ["stop-color"], ia = ["d", "stroke", "fill"], ca = ["cx", "cy", "r", "fill"], da = ["aria-label", "cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], va = { key: 3 }, ya = ["x", "y", "font-size", "fill", "onClick"], ha = { key: 0 }, fa = ["x", "y", "fill", "font-size", "font-weight"], ba = ["x", "y", "height", "width", "fill", "rx", "onClick"], pa = ["aria-label", "x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], ga = { key: 4 }, xa = ["x", "y", "fill", "font-size", "onClick"], ma = ["d", "stroke"], _a = ["aria-label", "fill", "cx", "cy", "r", "onClick"], ka = { key: 5 }, wa = ["x", "y", "font-size", "font-weight", "fill"], Ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["y", "height", "width"], Ia = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Ta = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Aa = {
25
+ viewBox: "0 0 20 20",
26
+ height: "16",
27
+ width: "16"
28
+ }, za = ["fill"], Na = { key: 7 }, Sa = ["y", "height", "width"], Fa = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Pa = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, La = {
29
+ viewBox: "0 0 20 20",
30
+ height: "16",
31
+ width: "16"
32
+ }, Ba = ["fill"], Ra = ["cx", "cy", "fill"], Va = ["d", "stroke"], Oa = ["cx", "cy", "fill"], Ma = ["d", "stroke"], Da = ["cx", "cy", "fill"], ja = ["cx", "cy", "fill"], Ea = ["x", "y", "fill", "font-size", "font-weight"], Xa = ["x", "y", "fill", "font-size", "font-weight"], Ua = ["x", "text-anchor", "y", "fill", "font-size"], Ga = ["x", "text-anchor", "y", "fill", "font-size"], Ka = ["x", "text-anchor", "y", "fill", "font-size"], Wa = ["x", "text-anchor", "y", "fill", "font-size"], Ha = ["x", "text-anchor", "y", "fill", "font-size"], Ya = ["x", "y", "font-size", "fill"], qa = ["x", "y", "font-size", "fill"], Za = ["x", "y", "font-size", "fill"], Ja = {
33
+ key: 4,
34
+ class: "vue-data-ui-watermark"
35
+ }, Qa = {
36
+ key: 5,
37
+ ref: "source",
38
+ dir: "auto"
39
+ }, eo = { class: "vue-ui-data-table" }, to = { key: 0 }, lo = ["data-cell"], ao = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, oo = { key: 0 }, no = { key: 1 }, uo = ["data-cell"], so = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ro = { key: 0 }, io = { key: 1 }, co = ["data-cell"], vo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, yo = { key: 0 }, ho = { key: 1 }, fo = ["data-cell"], bo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, po = { key: 0 }, go = { key: 1 }, xo = ["data-cell"], mo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, _o = { key: 0 }, ko = { key: 1 }, wo = ["data-cell"], Co = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $o = { key: 0 }, Io = { key: 1 }, To = ["data-cell"], Ao = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, zo = { key: 0 }, No = { key: 1 }, So = ["data-cell"], Fo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Po = ["data-cell"], Lo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Bo = ["data-cell"], Ro = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Vo = ["data-cell"], Oo = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Mo = ["data-cell"], Do = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, jo = {
40
+ __name: "vue-ui-chestnut",
41
+ props: {
42
+ config: {
43
+ type: Object,
44
+ default() {
45
+ return {};
46
+ }
47
+ },
48
+ dataset: {
49
+ type: Array,
50
+ default() {
51
+ return [];
52
+ }
53
+ }
54
+ },
55
+ emits: ["selectRoot", "selectBranch", "selectNut", "copyAlt"],
56
+ setup(bt, { expose: pt, emit: gt }) {
57
+ ll((l) => ({
58
+ v62b372fd: l.tdo
59
+ }));
60
+ const Ke = se(() => import("./BaseIcon-Cb3zzG6s.js")), xt = se(() => import("./vue-ui-accordion-nvggWcGN.js")), mt = se(() => import("./PenAndPaper-Ct3qJ4lA.js")), _t = se(() => import("./UserOptions-rW2fRf3V.js")), kt = se(() => import("./PackageVersion-DPO-OOVI.js")), wt = se(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_chestnut: Ct } = bl(), { isThemeValid: $t, warnInvalidTheme: It } = _l(), W = bt, We = f(() => !!W.dataset && W.dataset.length), I = C(rl()), ae = C(null), He = C(0), re = C(null), we = C(null), fe = C(!1), be = C(!1), ie = C(!1), S = C(!1), H = C(""), i = C({
61
+ level: "root",
62
+ rootIndex: 0,
63
+ branchIndex: 0,
64
+ nutIndex: 0,
65
+ locked: !1
66
+ }), e = C(Te()), M = f(() => e.value.userOptions.useCursorPointer), Tt = f(() => vt({
67
+ defaultConfig: {
68
+ userOptions: { show: !1 },
69
+ table: { show: !1 },
70
+ style: {
71
+ chart: {
72
+ backgroundColor: "#99999930",
73
+ layout: {
74
+ grandTotal: { show: !1 },
75
+ roots: {
76
+ stroke: "#6A6A6A",
77
+ labels: { show: !1 }
78
+ },
79
+ verticalSeparator: { stroke: "transparent" },
80
+ branches: {
81
+ stroke: "#6A6A6A",
82
+ underlayerColor: "#6A6A6A90",
83
+ labels: {
84
+ show: !1,
85
+ dataLabels: { show: !1 }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
92
+ userConfig: e.value.skeletonConfig ?? {}
93
+ })), { loading: Ye, FINAL_DATASET: Ce } = pl({
94
+ ...al(W),
95
+ FINAL_CONFIG: e,
96
+ prepareConfig: Te,
97
+ skeletonDataset: W.config?.skeletonDataset ?? [
98
+ {
99
+ name: "_",
100
+ color: "#969696",
101
+ branches: [
102
+ {
103
+ name: "_",
104
+ value: 32,
105
+ breakdown: [
106
+ { name: "_", value: 16, color: "#CACACA" },
107
+ { name: "_", value: 16, color: "#6A6A6A" }
108
+ ]
109
+ },
110
+ {
111
+ name: "_",
112
+ value: 16,
113
+ breakdown: [
114
+ { name: "_", value: 8, color: "#CACACA" },
115
+ { name: "_", value: 8, color: "#6A6A6A" }
116
+ ]
117
+ },
118
+ {
119
+ name: "_",
120
+ value: 8,
121
+ breakdown: [
122
+ { name: "_", value: 4, color: "#CACACA" },
123
+ { name: "_", value: 4, color: "#6A6A6A" }
124
+ ]
125
+ },
126
+ {
127
+ name: "_",
128
+ value: 4,
129
+ breakdown: [
130
+ { name: "_", value: 2, color: "#CACACA" },
131
+ { name: "_", value: 2, color: "#6A6A6A" }
132
+ ]
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ name: "_",
138
+ color: "#C4C4C4",
139
+ branches: [
140
+ {
141
+ name: "_",
142
+ value: 24,
143
+ breakdown: [
144
+ { name: "_", value: 12, color: "#CACACA" },
145
+ { name: "_", value: 12, color: "#6A6A6A" }
146
+ ]
147
+ },
148
+ {
149
+ name: "_",
150
+ value: 12,
151
+ breakdown: [
152
+ { name: "_", value: 6, color: "#CACACA" },
153
+ { name: "_", value: 6, color: "#6A6A6A" }
154
+ ]
155
+ },
156
+ {
157
+ name: "_",
158
+ value: 6,
159
+ breakdown: [
160
+ { name: "_", value: 3, color: "#CACACA" },
161
+ { name: "_", value: 3, color: "#6A6A6A" }
162
+ ]
163
+ },
164
+ {
165
+ name: "_",
166
+ value: 2,
167
+ breakdown: [
168
+ { name: "_", value: 1, color: "#CACACA" },
169
+ { name: "_", value: 1, color: "#6A6A6A" }
170
+ ]
171
+ }
172
+ ]
173
+ }
174
+ ],
175
+ skeletonConfig: vt({
176
+ defaultConfig: e.value,
177
+ userConfig: Tt.value
178
+ })
179
+ }), { userOptionsVisible: $e, setUserOptionsVisibility: qe, keepUserOptionState: Ze } = wl({ config: e.value }), { svgRef: Ie } = Cl({ config: e.value.style.chart.layout.title });
180
+ function Te() {
181
+ const l = Ge({
182
+ userConfig: W.config,
183
+ defaultConfig: Ct
184
+ }), a = l.theme;
185
+ if (!a) return l;
186
+ if (!$t.value(l))
187
+ return It(l), l;
188
+ const t = Ge({
189
+ userConfig: Il[a] || W.config,
190
+ defaultConfig: l
191
+ }), o = Ge({
192
+ userConfig: W.config,
193
+ defaultConfig: t
194
+ });
195
+ return {
196
+ ...o,
197
+ customPalette: o.customPalette.length ? o.customPalette : il[a] || G
198
+ };
199
+ }
200
+ je(() => W.config, (l) => {
201
+ e.value = Te(), $e.value = !e.value.userOptions.showOnChartHover, ee.value.showTable = e.value.table.show, lt();
202
+ }, { deep: !0 });
203
+ const { isPrinting: Ae, isImaging: ze, generatePdf: Je, generateImage: Qe } = xl({
204
+ elementId: `vue-ui-chestnut_${I.value}`,
205
+ fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
206
+ options: e.value.userOptions.print
207
+ }), At = f(() => e.value.userOptions.show), Ne = f(() => cl(e.value.customPalette)), ee = C({
208
+ showTable: e.value.table.show
209
+ });
210
+ je(e, () => {
211
+ ee.value = {
212
+ showTable: e.value.table.show
213
+ };
214
+ }, { immediate: !0 });
215
+ const et = C(null), zt = f(() => e.value.table.responsiveBreakpoint), c = C({
216
+ gap: 6,
217
+ padding: {
218
+ top: 102,
219
+ left: 12,
220
+ right: 12,
221
+ bottom: 96
222
+ },
223
+ width: 1024,
224
+ height: 0,
225
+ branchSize: 32,
226
+ branchStart: 128
227
+ }), F = f(() => ({
228
+ left: c.value.padding.left,
229
+ top: c.value.padding.top,
230
+ right: c.value.width - c.value.padding.right,
231
+ bottom: c.value.height - c.value.padding.bottom,
232
+ width: c.value.width - (c.value.padding.left + c.value.padding.right),
233
+ height: c.value.height - (c.value.padding.top + c.value.padding.bottom),
234
+ seedX: c.value.padding.left + 64
235
+ })), O = f(() => Ce.value.flatMap((l) => (l.branches || []).map((a) => a.value || 0)).reduce((l, a) => l + a, 0)), P = f(() => (Ce.value.forEach((l, a) => {
236
+ Xe({
237
+ datasetObject: l,
238
+ requiredAttributes: ["name", "branches"]
239
+ }).forEach((t) => {
240
+ ke({
241
+ componentName: "VueUiChestnut",
242
+ type: "datasetSerieAttribute",
243
+ property: t,
244
+ index: a,
245
+ debug: ge.value
246
+ });
247
+ }), l.branches && l.branches.forEach((t, o) => {
248
+ Xe({
249
+ datasetObject: t,
250
+ requiredAttributes: ["name", "value"]
251
+ }).forEach((g) => {
252
+ ke({
253
+ componentName: "VueUiChestnut",
254
+ type: "datasetSerieAttribute",
255
+ property: g,
256
+ index: `${a} - ${o}`,
257
+ debug: ge.value
258
+ });
259
+ }), t.breakdown && t.breakdown.forEach((g, x) => {
260
+ Xe({
261
+ datasetObject: g,
262
+ requiredAttributes: ["name", "value"]
263
+ }).forEach((b) => {
264
+ ke({
265
+ componentName: "VueUiChestnut",
266
+ type: "datasetSerieAttribute",
267
+ property: b,
268
+ index: `${a} - ${o} - ${x}`,
269
+ debug: ge.value
270
+ });
271
+ });
272
+ });
273
+ });
274
+ }), Ce.value.map((l, a) => {
275
+ const t = (l.branches || []).map((o) => o.value || 0).reduce((o, g) => o + g, 0);
276
+ return {
277
+ ...l,
278
+ color: Ue(l.color) || Ne.value[a] || G[a] || G[a % G.length],
279
+ id: l.id || `root_${a}_${I.value}`,
280
+ type: "root",
281
+ total: t,
282
+ rootIndex: a,
283
+ branches: (l.branches || []).map((o, g) => ({
284
+ ...o,
285
+ rootName: l.name,
286
+ rootIndex: a,
287
+ color: Ue(l.color) || Ne.value[a] || G[a] || G[a % G.length],
288
+ value: o.value >= 0 ? o.value : 0,
289
+ id: o.id || `branch_${a}_${g}_${I.value}`,
290
+ proportionToRoot: o.value / t,
291
+ type: "branch",
292
+ breakdown: (o.breakdown || []).map((x, b) => ({
293
+ table: {
294
+ rootName: l.name,
295
+ rootValue: t,
296
+ rootToTotal: t / O.value,
297
+ branchName: o.name,
298
+ branchValue: o.value,
299
+ branchToTotal: o.value / O.value,
300
+ branchToRoot: o.value / t,
301
+ nutName: x.name,
302
+ nutValue: x.value,
303
+ nutToTotal: x.value / O.value,
304
+ nutToRoot: x.value / t,
305
+ nutToBranch: x.value / o.value
306
+ },
307
+ ...x,
308
+ type: "nut",
309
+ branchName: o.name,
310
+ rootName: l.name,
311
+ branchTotal: o.value >= 0 ? o.value : 0,
312
+ proportionToBranch: x.value / o.value,
313
+ proportionToRoot: x.value / t,
314
+ proportionToTree: x.value / O.value,
315
+ rootIndex: a,
316
+ id: x.id || `nut_${a}_${g}_${b}_${I.value}`,
317
+ color: Ue(x.color) || Ne.value[b] || G[b] || G[b % G.length],
318
+ value: x.value >= 0 ? x.value : 0
319
+ }))
320
+ }))
321
+ };
322
+ })));
323
+ function Nt() {
324
+ return P.value;
325
+ }
326
+ const te = gt, St = f(() => P.value.flatMap((l) => l.branches).length), Ft = f(() => Math.max(...P.value.map((l) => l.branches.map((a) => a.value).reduce((a, t) => a + t, 0)))), Pt = f(() => Math.max(...P.value.flatMap((l) => l.branches.map((a) => a.value)))), tt = f(() => 256 + c.value.padding.left), Y = f(() => P.value.sort((l, a) => a.total - l.total).map((l, a) => {
327
+ const t = F.value.height / P.value.length / 2, o = l.total / Ft.value * (t > 64 ? 64 : t);
328
+ return {
329
+ ...l,
330
+ x: F.value.seedX,
331
+ y: F.value.top + F.value.height / P.value.length * (a + 1) - (F.value.height / P.value.length / 2 + c.value.gap / 2),
332
+ r: o < c.value.branchSize / 2 ? c.value.branchSize / 2 : o
333
+ };
334
+ })), Lt = f(() => e.value.style.chart.layout.branches.widthRatio <= 0 ? 0.1 : e.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : e.value.style.chart.layout.branches.widthRatio), Bt = f(() => Y.value.flatMap((l) => l.branches)), q = f(() => Bt.value.sort((l, a) => a.value - l.value).map((l, a) => ({
335
+ ...l,
336
+ y1: a * c.value.branchSize + F.value.top + a * c.value.gap,
337
+ y2: a * c.value.branchSize + c.value.branchSize,
338
+ x1: tt.value,
339
+ x2: 384 * l.value / Pt.value * Lt.value + tt.value
340
+ }))), le = f(() => Y.value), oe = f(() => le.value.map((l) => q.value.filter((a) => a.rootIndex === l.rootIndex).sort((a, t) => a.y1 - t.y1))), Se = f(() => le.value.map((l, a) => oe.value[a].map((t) => (t.breakdown || []).map((o, g) => ({
341
+ ...o,
342
+ nutIndex: g,
343
+ rootIndex: t.rootIndex,
344
+ branchId: t.id,
345
+ branchName: t.name,
346
+ branchValue: t.value,
347
+ rootName: t.rootName
348
+ })))));
349
+ function Rt(l) {
350
+ const a = Y.value.find((t) => t.rootIndex === l.rootIndex);
351
+ return { x: a.x, y: a.y, r: a.r };
352
+ }
353
+ const v = C(null), Z = C(null), _ = C(null), R = C(null);
354
+ function z() {
355
+ v.value = null, _.value = null, R.value = null;
356
+ }
357
+ function D(l) {
358
+ if (v.value)
359
+ return l.type === "root" ? l.rootIndex === v.value.rootIndex : l.type === "branch" ? l.id === v.value.id : l.type === "nut" ? l.branchName === v.value.name && l.rootIndex === v.value.rootIndex : !1;
360
+ if (_.value)
361
+ return l.type === "root" ? l.rootIndex === _.value.rootIndex : l.type === "branch" ? l.id === _.value.id : l.type === "nut" ? l.branchName === _.value.name && l.rootIndex === _.value.rootIndex : !1;
362
+ if (R.value)
363
+ return l.type === "root" ? l.id === R.value.id : l.type === "branch" || l.type === "nut" ? l.rootIndex === R.value.rootIndex : !1;
364
+ if (Yt.value && S.value) {
365
+ if (i.value.level === "root")
366
+ return l.type === "root" ? E.value && l.id === E.value.id : l.type === "branch" || l.type === "nut" ? E.value && l.rootIndex === E.value.rootIndex : !1;
367
+ if (i.value.level === "branch")
368
+ return l.type === "root" ? E.value && l.rootIndex === E.value.rootIndex : l.type === "branch" ? rt.value && l.id === rt.value.id : (l.type === "nut", !1);
369
+ if (i.value.level === "nut")
370
+ return l.type === "root" ? E.value && l.rootIndex === E.value.rootIndex : l.type === "branch" ? de.value && l.id === de.value.id : l.type === "nut" ? de.value && l.branchName === de.value.name && l.rootIndex === de.value.rootIndex : !1;
371
+ }
372
+ return !0;
373
+ }
374
+ function Fe(l) {
375
+ z();
376
+ const a = le.value.findIndex((o) => o.rootIndex === l.rootIndex), t = (oe.value[a] || []).findIndex((o) => o.id === l.id);
377
+ a !== -1 && (i.value.rootIndex = a), t !== -1 && (i.value.branchIndex = t), i.value.level = "nut", i.value.nutIndex = 0, _e(() => {
378
+ v.value = l, _.value = l, Z.value = ft(
379
+ { series: l.breakdown },
380
+ l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
381
+ l.y1 + c.value.branchSize / 2,
382
+ 80,
383
+ 80
384
+ ), te("selectNut", l.breakdown), V();
385
+ });
386
+ }
387
+ function J() {
388
+ v.value = null, Z.value = null, te("selectNut", null);
389
+ }
390
+ function pe(l) {
391
+ const a = le.value.findIndex((o) => o.rootIndex === l.rootIndex), t = (oe.value[a] || []).findIndex((o) => o.id === l.id);
392
+ a !== -1 && (i.value.rootIndex = a), t !== -1 && (i.value.branchIndex = t), i.value.level = "branch", i.value.nutIndex = 0, _.value && _.value.id === l.id ? (_.value = null, z(), te("selectBranch", null), V()) : (z(), _.value = l, te("selectBranch", l), V());
393
+ }
394
+ function Pe(l) {
395
+ const a = le.value.findIndex((t) => t.id === l.id);
396
+ a !== -1 && (i.value.rootIndex = a), i.value.level = "root", i.value.branchIndex = 0, i.value.nutIndex = 0, R.value && R.value.id === l.id ? (z(), te("selectRoot", null), V()) : (z(), R.value = l, te("selectRoot", l), V());
397
+ }
398
+ function Vt() {
399
+ return F.value.bottom - (v.value.y1 + 180) < 0 ? 0 : F.value.bottom;
400
+ }
401
+ function ne(l) {
402
+ return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
403
+ }
404
+ ol(() => {
405
+ lt();
406
+ });
407
+ const ge = f(() => e.value.debug);
408
+ function lt() {
409
+ dl(W.dataset) && ke({
410
+ componentName: "VueUiChestnut",
411
+ type: "dataset",
412
+ debug: ge.value
413
+ });
414
+ const l = St.value * (c.value.branchSize + c.value.gap) + c.value.padding.top + c.value.padding.bottom;
415
+ c.value.height = l;
416
+ }
417
+ const y = f(() => {
418
+ const l = [
419
+ e.value.table.th.translations.rootName,
420
+ e.value.table.th.translations.rootValue,
421
+ e.value.table.th.translations.rootToTotal,
422
+ e.value.table.th.translations.branchName,
423
+ e.value.table.th.translations.branchValue,
424
+ e.value.table.th.translations.branchToRoot,
425
+ e.value.table.th.translations.branchToTotal,
426
+ e.value.table.th.translations.nutName,
427
+ e.value.table.th.translations.nutValue,
428
+ e.value.table.th.translations.nutToBranch,
429
+ e.value.table.th.translations.nutToRoot,
430
+ e.value.table.th.translations.nutToTotal
431
+ ], a = P.value.flatMap((t, o) => t.branches.flatMap((g, x) => g.breakdown.flatMap((b, T) => b.table)));
432
+ return { head: l, body: a };
433
+ });
434
+ function Le(l = null) {
435
+ _e(() => {
436
+ const a = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", O.value], [""]], t = y.value.head, o = y.value.body.map((b, T) => [
437
+ y.value.body[T - 1] && y.value.body[T - 1].rootName === b.rootName ? "" : b.rootName,
438
+ y.value.body[T - 1] && y.value.body[T - 1].rootName === b.rootName ? "" : b.rootValue,
439
+ y.value.body[T - 1] && y.value.body[T - 1].rootName === b.rootName ? "" : b.rootToTotal,
440
+ y.value.body[T - 1] && y.value.body[T - 1].branchName === b.branchName ? "" : b.branchName,
441
+ y.value.body[T - 1] && y.value.body[T - 1].branchName === b.branchName ? "" : b.branchValue,
442
+ y.value.body[T - 1] && y.value.body[T - 1].branchName === b.branchName ? "" : b.branchToRoot,
443
+ y.value.body[T - 1] && y.value.body[T - 1].branchName === b.branchName ? "" : b.branchToTotal,
444
+ b.nutName,
445
+ b.nutValue,
446
+ b.nutToBranch,
447
+ b.nutToRoot,
448
+ b.nutToTotal
449
+ ]), g = a.concat([t]).concat(o), x = hl(g);
450
+ l ? l(x) : fl({ csvContent: x, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
451
+ });
452
+ }
453
+ const ue = C(!1);
454
+ function at(l) {
455
+ ue.value = l, He.value += 1;
456
+ }
457
+ function ot() {
458
+ ee.value.showTable = !ee.value.showTable;
459
+ }
460
+ const xe = C(!1);
461
+ function Be() {
462
+ xe.value = !xe.value;
463
+ }
464
+ async function Ot({ scale: l = 2 } = {}) {
465
+ if (!ae.value) return;
466
+ const { width: a, height: t } = ae.value.getBoundingClientRect(), o = a / t, { imageUri: g, base64: x } = await $l({ domElement: ae.value, base64: !0, img: !0, scale: l });
467
+ return {
468
+ imageUri: g,
469
+ base64: x,
470
+ title: e.value.style.chart.layout.title.text,
471
+ width: a,
472
+ height: t,
473
+ aspectRatio: o
474
+ };
475
+ }
476
+ function Mt(l) {
477
+ const a = Rt(l), t = l.x1, o = l.y1, g = c.value.branchSize, x = a.x + a.r / 2, b = a.y, T = 20;
478
+ return [
479
+ `M ${t},${o}`,
480
+ `C ${t - T},${o} ${t - T},${o} ${x},${b}`,
481
+ `C ${x},${b} ${t - T},${o + g} ${t},${o + g}`,
482
+ "Z"
483
+ ].join(" ");
484
+ }
485
+ const me = f(() => {
486
+ const l = e.value.table.useDialog && !e.value.table.show, a = ee.value.showTable;
487
+ return {
488
+ component: l ? wt : xt,
489
+ title: `${e.value.style.chart.layout.title.text}${e.value.style.chart.layout.title.subtitle.text ? `: ${e.value.style.chart.layout.title.subtitle.text}` : ""}`,
490
+ props: l ? {
491
+ backgroundColor: e.value.table.th.backgroundColor,
492
+ color: e.value.table.th.color,
493
+ headerColor: e.value.table.th.color,
494
+ headerBg: e.value.table.th.backgroundColor,
495
+ isFullscreen: ue.value,
496
+ fullscreenParent: ae.value,
497
+ forcedWidth: Math.min(800, window.innerWidth * 0.8),
498
+ isCursorPointer: M.value
499
+ } : {
500
+ hideDetails: !0,
501
+ config: {
502
+ open: a,
503
+ maxHeight: 1e4,
504
+ body: {
505
+ backgroundColor: e.value.style.chart.backgroundColor,
506
+ color: e.value.style.chart.color
507
+ },
508
+ head: {
509
+ backgroundColor: e.value.style.chart.backgroundColor,
510
+ color: e.value.style.chart.color
511
+ }
512
+ }
513
+ }
514
+ };
515
+ });
516
+ je(() => ee.value.showTable, async (l) => {
517
+ e.value.table.show || (l && e.value.table.useDialog && re.value ? (await _e(), re.value.open()) : "close" in re.value && re.value.close());
518
+ });
519
+ const { isResponsive: Dt } = kl(et, zt);
520
+ function Re() {
521
+ ee.value.showTable = !1, we.value && we.value.setTableIconState(!1);
522
+ }
523
+ const jt = f(() => P.value.map((l, a) => ({
524
+ ...l,
525
+ display: `${l.name}: ${Q(
526
+ e.value.style.chart.layout.roots.labels.formatter,
527
+ l.total,
528
+ m({
529
+ p: e.value.style.chart.layout.legend.prefix,
530
+ v: l.total,
531
+ s: e.value.style.chart.layout.legend.suffix,
532
+ r: e.value.style.chart.layout.legend.roundingValue
533
+ }),
534
+ { datapoint: l }
535
+ )} (${m({
536
+ v: l.total / O.value * 100,
537
+ s: "%",
538
+ r: e.value.style.chart.layout.legend.roundingPercentage
539
+ })})`
540
+ }))), Et = f(() => jt.value.map((l) => ({
541
+ color: l.color,
542
+ name: l.display,
543
+ shape: "circle"
544
+ }))), Xt = f(() => e.value.style.chart.backgroundColor), Ut = f(() => ({
545
+ ...e.value.style.chart.layout.legend,
546
+ textAlign: "center",
547
+ show: !0,
548
+ position: "bottom"
549
+ })), Gt = f(() => e.value.style.chart.layout.title), { exportSvg: Kt, getSvg: Wt } = ml({
550
+ svg: Ie,
551
+ title: Gt,
552
+ legend: Ut,
553
+ legendItems: Et,
554
+ backgroundColor: Xt,
555
+ titleEmbedded: !0
556
+ });
557
+ async function nt({ isCb: l }) {
558
+ be.value = !0, await _e();
559
+ try {
560
+ if (l) {
561
+ const { blob: a, url: t, text: o, dataUrl: g } = await Wt();
562
+ await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: t, text: o, dataUrl: g }));
563
+ } else
564
+ await Promise.resolve(Kt());
565
+ } finally {
566
+ be.value = !1;
567
+ }
568
+ }
569
+ function Ht(l) {
570
+ if (l?.stage === "start") {
571
+ fe.value = !0;
572
+ return;
573
+ }
574
+ if (l?.stage === "end") {
575
+ fe.value = !1;
576
+ return;
577
+ }
578
+ Qe();
579
+ }
580
+ async function ut() {
581
+ if (te("copyAlt", {
582
+ config: e.value,
583
+ dataset: P.value
584
+ }), !e.value.userOptions.callbacks.altCopy) {
585
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
586
+ return;
587
+ }
588
+ await Promise.resolve(e.value.userOptions.callbacks.altCopy({
589
+ config: e.value,
590
+ dataset: P.value
591
+ }));
592
+ }
593
+ function Ve(l) {
594
+ if (!l) return "";
595
+ const a = m({
596
+ p: e.value.style.chart.layout.legend.prefix,
597
+ v: l.total,
598
+ s: e.value.style.chart.layout.legend.suffix,
599
+ r: e.value.style.chart.layout.legend.roundingValue
600
+ }), t = m({
601
+ v: l.total / O.value * 100,
602
+ s: "%",
603
+ r: e.value.style.chart.layout.legend.roundingPercentage
604
+ });
605
+ return `Root ${l.name}. Value ${a}. ${t} of total.`;
606
+ }
607
+ function Oe(l) {
608
+ if (!l) return "";
609
+ const a = m({
610
+ p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
611
+ v: l.value,
612
+ s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
613
+ r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
614
+ }), t = m({
615
+ v: l.proportionToRoot * 100,
616
+ s: "%",
617
+ r: e.value.style.chart.layout.legend.roundingPercentage
618
+ });
619
+ return `Branch ${l.name}. Root ${l.rootName}. Value ${a}. ${t} of root ${l.rootName}.`;
620
+ }
621
+ function st(l) {
622
+ if (!l) return "";
623
+ const a = m({
624
+ p: e.value.style.chart.layout.legend.prefix,
625
+ v: l.value,
626
+ s: e.value.style.chart.layout.legend.suffix,
627
+ r: e.value.style.chart.layout.nuts.selected.labels.roundingValue
628
+ }), t = m({
629
+ v: l.proportionToBranch * 100,
630
+ s: "%",
631
+ r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
632
+ });
633
+ return `Nut ${l.name}. Branch ${l.branchName}. Root ${l.rootName}. Value ${a}. ${t} of branch ${l.branchName}.`;
634
+ }
635
+ const ce = f(() => le.value[i.value.rootIndex] || null), j = f(() => (oe.value[i.value.rootIndex] || [])[i.value.branchIndex] || null), Me = f(() => ((Se.value[i.value.rootIndex] || [])[i.value.branchIndex] || [])[i.value.nutIndex] || null), E = f(() => ce.value), rt = f(() => j.value), de = f(() => i.value.level !== "nut" ? null : j.value), Yt = f(() => ie.value);
636
+ function V() {
637
+ if (i.value.level === "root") {
638
+ H.value = Ve(ce.value);
639
+ return;
640
+ }
641
+ if (i.value.level === "branch") {
642
+ H.value = Oe(j.value);
643
+ return;
644
+ }
645
+ i.value.level === "nut" && (H.value = st(Me.value));
646
+ }
647
+ function L() {
648
+ i.value = {
649
+ level: "root",
650
+ rootIndex: 0,
651
+ branchIndex: 0,
652
+ nutIndex: 0,
653
+ locked: !1
654
+ }, H.value = "";
655
+ }
656
+ function qt() {
657
+ const l = oe.value[i.value.rootIndex] || [];
658
+ if (!l.length) {
659
+ i.value.branchIndex = 0;
660
+ return;
661
+ }
662
+ i.value.branchIndex >= l.length && (i.value.branchIndex = 0), i.value.branchIndex < 0 && (i.value.branchIndex = l.length - 1);
663
+ }
664
+ function Zt() {
665
+ const a = (Se.value[i.value.rootIndex] || [])[i.value.branchIndex] || [];
666
+ if (!a.length) {
667
+ i.value.nutIndex = 0;
668
+ return;
669
+ }
670
+ i.value.nutIndex >= a.length && (i.value.nutIndex = 0), i.value.nutIndex < 0 && (i.value.nutIndex = a.length - 1);
671
+ }
672
+ function it(l) {
673
+ if (i.value.level === "root") {
674
+ const a = le.value.length;
675
+ if (!a) return;
676
+ i.value.rootIndex += l, i.value.rootIndex >= a && (i.value.rootIndex = 0), i.value.rootIndex < 0 && (i.value.rootIndex = a - 1), i.value.branchIndex = 0, i.value.nutIndex = 0, V();
677
+ return;
678
+ }
679
+ if (i.value.level === "branch") {
680
+ i.value.branchIndex += l, qt(), i.value.nutIndex = 0, V();
681
+ return;
682
+ }
683
+ i.value.level === "nut" && (i.value.nutIndex += l, Zt(), V());
684
+ }
685
+ function ct(l) {
686
+ if (l > 0) {
687
+ if (i.value.level === "root") {
688
+ if (!(oe.value[i.value.rootIndex] || []).length) return;
689
+ i.value.level = "branch", i.value.branchIndex = 0, i.value.nutIndex = 0, V();
690
+ return;
691
+ }
692
+ if (i.value.level === "branch") {
693
+ if (!((Se.value[i.value.rootIndex] || [])[i.value.branchIndex] || []).length) return;
694
+ i.value.level = "nut", i.value.nutIndex = 0, j.value ? Fe(j.value) : V();
695
+ return;
696
+ }
697
+ return;
698
+ }
699
+ if (i.value.level === "nut") {
700
+ J(), _.value = null, i.value.level = "branch", i.value.nutIndex = 0, V();
701
+ return;
702
+ }
703
+ i.value.level === "branch" && (_.value = null, R.value = null, i.value.level = "root", i.value.nutIndex = 0, V());
704
+ }
705
+ function Jt() {
706
+ if (i.value.level === "root" && ce.value) {
707
+ Pe(ce.value), H.value = `${Ve(ce.value)} selected.`;
708
+ return;
709
+ }
710
+ if (i.value.level === "branch" && j.value) {
711
+ pe(j.value), H.value = `${Oe(j.value)} selected.`;
712
+ return;
713
+ }
714
+ i.value.level === "nut" && j.value && Me.value && (Fe(j.value), H.value = `${st(Me.value)} details opened.`);
715
+ }
716
+ function Qt() {
717
+ ie.value = !0, S.value = !1;
718
+ }
719
+ function el() {
720
+ ie.value = !1, S.value = !1, H.value = "", !R.value && !_.value && !v.value && L();
721
+ }
722
+ function tl(l) {
723
+ const a = l.key === "ArrowUp", t = l.key === "ArrowDown", o = l.key === "ArrowLeft", g = l.key === "ArrowRight", x = l.key === "Enter" || l.key === " ", b = l.key === "Escape";
724
+ if (!(!a && !t && !o && !g && !x && !b)) {
725
+ if (l.preventDefault(), l.stopPropagation(), ie.value || (ie.value = !0), b) {
726
+ z(), L(), S.value = !1;
727
+ return;
728
+ }
729
+ if ((a || t || o || g) && (S.value = !0), a) {
730
+ it(-1);
731
+ return;
732
+ }
733
+ if (t) {
734
+ it(1);
735
+ return;
736
+ }
737
+ if (o) {
738
+ ct(-1);
739
+ return;
740
+ }
741
+ if (g) {
742
+ ct(1);
743
+ return;
744
+ }
745
+ x && Jt();
746
+ }
747
+ }
748
+ const De = f(() => ({
749
+ headers: y.value.head,
750
+ rows: y.value.body.map((l) => [
751
+ l.rootName,
752
+ l.rootValue,
753
+ m({ v: l.rootToTotal * 100, s: "%", r: e.value.table.td.roundingPercentage }),
754
+ l.branchName,
755
+ l.branchValue,
756
+ m({ v: l.branchToRoot * 100, s: "%", r: e.value.table.td.roundingPercentage }),
757
+ m({ v: l.branchToTotal * 100, s: "%", r: e.value.table.td.roundingPercentage }),
758
+ l.nutName,
759
+ l.nutValue,
760
+ m({ v: l.nutToBranch * 100, s: "%", r: e.value.table.td.roundingPercentage }),
761
+ m({ v: l.nutToRoot * 100, s: "%", r: e.value.table.td.roundingPercentage }),
762
+ m({ v: l.nutToTotal * 100, s: "%", r: e.value.table.td.roundingPercentage })
763
+ ])
764
+ }));
765
+ return pt({
766
+ getData: Nt,
767
+ getImage: Ot,
768
+ generatePdf: Je,
769
+ generateCsv: Le,
770
+ generateImage: Qe,
771
+ generateSvg: nt,
772
+ toggleTable: ot,
773
+ toggleAnnotator: Be,
774
+ toggleFullscreen: at,
775
+ copyAlt: ut
776
+ }), (l, a) => (n(), u("div", {
777
+ class: N(`vue-data-ui-component vue-ui-chestnut ${ue.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
778
+ ref_key: "chestnutChart",
779
+ ref: ae,
780
+ id: `vue-ui-chestnut_${I.value}`,
781
+ style: h(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
782
+ onMouseenter: a[12] || (a[12] = () => r(qe)(!0)),
783
+ onMouseleave: a[13] || (a[13] = () => r(qe)(!1))
784
+ }, [
785
+ s("div", {
786
+ id: `chart-instructions-${I.value}`,
787
+ class: "sr-only"
788
+ }, [
789
+ s("p", null, d(e.value.a11y.translations.keyboardNavigation), 1)
790
+ ], 8, Nl),
791
+ s("div", Sl, d(H.value), 1),
792
+ De.value?.rows?.length ? (n(), ve(Tl, {
793
+ key: 0,
794
+ uid: I.value,
795
+ head: De.value.headers,
796
+ body: De.value.rows,
797
+ notice: e.value.a11y.translations.tableAvailable,
798
+ caption: e.value.a11y.translations.tableCaption
799
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
800
+ e.value.userOptions.buttons.annotator ? (n(), ve(r(mt), {
801
+ key: 1,
802
+ svgRef: r(Ie),
803
+ backgroundColor: e.value.style.chart.backgroundColor,
804
+ color: e.value.style.chart.color,
805
+ active: xe.value,
806
+ isCursorPointer: M.value,
807
+ onClose: Be
808
+ }, {
809
+ "annotator-action-close": A(() => [
810
+ $(l.$slots, "annotator-action-close", {}, void 0, !0)
811
+ ]),
812
+ "annotator-action-color": A(({ color: t }) => [
813
+ $(l.$slots, "annotator-action-color", X(U({ color: t })), void 0, !0)
814
+ ]),
815
+ "annotator-action-draw": A(({ mode: t }) => [
816
+ $(l.$slots, "annotator-action-draw", X(U({ mode: t })), void 0, !0)
817
+ ]),
818
+ "annotator-action-undo": A(({ disabled: t }) => [
819
+ $(l.$slots, "annotator-action-undo", X(U({ disabled: t })), void 0, !0)
820
+ ]),
821
+ "annotator-action-redo": A(({ disabled: t }) => [
822
+ $(l.$slots, "annotator-action-redo", X(U({ disabled: t })), void 0, !0)
823
+ ]),
824
+ "annotator-action-delete": A(({ disabled: t }) => [
825
+ $(l.$slots, "annotator-action-delete", X(U({ disabled: t })), void 0, !0)
826
+ ]),
827
+ _: 3
828
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
829
+ At.value ? (n(), u("div", Fl, null, 512)) : p("", !0),
830
+ e.value.userOptions.show && We.value && (r(Ze) || r($e)) ? (n(), ve(r(_t), {
831
+ ref_key: "userOptionsRef",
832
+ ref: we,
833
+ key: `user_options_${He.value}`,
834
+ backgroundColor: e.value.style.chart.backgroundColor,
835
+ color: e.value.style.chart.color,
836
+ isImaging: r(ze),
837
+ isPrinting: r(Ae),
838
+ uid: I.value,
839
+ hasPdf: e.value.userOptions.buttons.pdf,
840
+ hasImg: e.value.userOptions.buttons.img,
841
+ hasSvg: e.value.userOptions.buttons.svg,
842
+ hasXls: e.value.userOptions.buttons.csv,
843
+ hasTable: e.value.userOptions.buttons.table,
844
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
845
+ hasAltCopy: e.value.userOptions.buttons.altCopy,
846
+ isFullscreen: ue.value,
847
+ titles: { ...e.value.userOptions.buttonTitles },
848
+ chartElement: ae.value,
849
+ position: e.value.userOptions.position,
850
+ hasAnnotator: e.value.userOptions.buttons.annotator,
851
+ isAnnotation: xe.value,
852
+ callbacks: e.value.userOptions.callbacks,
853
+ printScale: e.value.userOptions.print.scale,
854
+ tableDialog: e.value.table.useDialog,
855
+ isCursorPointer: M.value,
856
+ onToggleFullscreen: at,
857
+ onGeneratePdf: r(Je),
858
+ onGenerateCsv: Le,
859
+ onGenerateImage: Ht,
860
+ onGenerateSvg: nt,
861
+ onToggleTable: ot,
862
+ onToggleAnnotator: Be,
863
+ onCopyAlt: ut,
864
+ style: h({
865
+ visibility: r(Ze) ? r($e) ? "visible" : "hidden" : "visible"
866
+ })
867
+ }, dt({ _: 2 }, [
868
+ l.$slots.menuIcon ? {
869
+ name: "menuIcon",
870
+ fn: A(({ isOpen: t, color: o }) => [
871
+ $(l.$slots, "menuIcon", X(U({ isOpen: t, color: o })), void 0, !0)
872
+ ]),
873
+ key: "0"
874
+ } : void 0,
875
+ l.$slots.optionPdf ? {
876
+ name: "optionPdf",
877
+ fn: A(() => [
878
+ $(l.$slots, "optionPdf", {}, void 0, !0)
879
+ ]),
880
+ key: "1"
881
+ } : void 0,
882
+ l.$slots.optionCsv ? {
883
+ name: "optionCsv",
884
+ fn: A(() => [
885
+ $(l.$slots, "optionCsv", {}, void 0, !0)
886
+ ]),
887
+ key: "2"
888
+ } : void 0,
889
+ l.$slots.optionImg ? {
890
+ name: "optionImg",
891
+ fn: A(() => [
892
+ $(l.$slots, "optionImg", {}, void 0, !0)
893
+ ]),
894
+ key: "3"
895
+ } : void 0,
896
+ l.$slots.optionSvg ? {
897
+ name: "optionSvg",
898
+ fn: A(() => [
899
+ $(l.$slots, "optionSvg", {}, void 0, !0)
900
+ ]),
901
+ key: "4"
902
+ } : void 0,
903
+ l.$slots.optionTable ? {
904
+ name: "optionTable",
905
+ fn: A(() => [
906
+ $(l.$slots, "optionTable", {}, void 0, !0)
907
+ ]),
908
+ key: "5"
909
+ } : void 0,
910
+ l.$slots.optionFullscreen ? {
911
+ name: "optionFullscreen",
912
+ fn: A(({ toggleFullscreen: t, isFullscreen: o }) => [
913
+ $(l.$slots, "optionFullscreen", X(U({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
914
+ ]),
915
+ key: "6"
916
+ } : void 0,
917
+ l.$slots.optionAnnotator ? {
918
+ name: "optionAnnotator",
919
+ fn: A(({ toggleAnnotator: t, isAnnotator: o }) => [
920
+ $(l.$slots, "optionAnnotator", X(U({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
921
+ ]),
922
+ key: "7"
923
+ } : void 0,
924
+ l.$slots.optionAltCopy ? {
925
+ name: "optionAltCopy",
926
+ fn: A(({ altCopy: t }) => [
927
+ $(l.$slots, "optionAltCopy", X(U({ altCopy: t })), void 0, !0)
928
+ ]),
929
+ key: "8"
930
+ } : void 0
931
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
932
+ s("div", Pl, [
933
+ c.value.height > 0 ? (n(), u("svg", {
934
+ key: 0,
935
+ ref_key: "svgRef",
936
+ ref: Ie,
937
+ xmlns: r(vl),
938
+ "aria-describedby": `chart-instructions-${I.value}`,
939
+ class: N({ "vue-data-ui-fullscreen--on": ue.value, "vue-data-ui-fulscreen--off": !ue.value }),
940
+ viewBox: `0 0 ${c.value.width <= 0 ? 10 : c.value.width} ${c.value.height <= 0 ? 10 : c.value.height}`,
941
+ style: h(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
942
+ tabindex: "0",
943
+ onFocus: Qt,
944
+ onBlur: el,
945
+ onKeydown: tl
946
+ }, [
947
+ Ee(r(kt)),
948
+ l.$slots["chart-background"] ? (n(), u("foreignObject", {
949
+ key: 0,
950
+ x: 0,
951
+ y: 0,
952
+ width: c.value.width <= 0 ? 10 : c.value.width,
953
+ height: c.value.height <= 0 ? 10 : c.value.height,
954
+ style: {
955
+ pointerEvents: "none"
956
+ }
957
+ }, [
958
+ $(l.$slots, "chart-background", {}, void 0, !0)
959
+ ], 8, Bl)) : p("", !0),
960
+ v.value ? p("", !0) : (n(), u("g", Rl, [
961
+ e.value.style.chart.layout.title.text ? (n(), u("text", {
962
+ key: 0,
963
+ "text-anchor": "middle",
964
+ fill: e.value.style.chart.layout.title.color,
965
+ "font-weight": e.value.style.chart.layout.title.bold ? "bold" : "normal",
966
+ "font-size": e.value.style.chart.layout.title.fontSize,
967
+ x: c.value.width / 2,
968
+ y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
969
+ onClick: a[0] || (a[0] = () => {
970
+ z(), L(), S.value = !1;
971
+ })
972
+ }, d(e.value.style.chart.layout.title.text), 9, Vl)) : p("", !0),
973
+ e.value.style.chart.layout.title.subtitle.text ? (n(), u("text", {
974
+ key: 1,
975
+ "text-anchor": "middle",
976
+ fill: e.value.style.chart.layout.title.subtitle.color,
977
+ "font-weight": e.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
978
+ "font-size": e.value.style.chart.layout.title.subtitle.fontSize,
979
+ x: c.value.width / 2,
980
+ y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
981
+ onClick: a[1] || (a[1] = () => {
982
+ z(), L(), S.value = !1;
983
+ })
984
+ }, d(e.value.style.chart.layout.title.subtitle.text), 9, Ol)) : p("", !0)
985
+ ])),
986
+ s("defs", null, [
987
+ (n(!0), u(k, null, w(P.value, (t, o) => (n(), u("radialGradient", {
988
+ cx: "50%",
989
+ cy: "50%",
990
+ r: "50%",
991
+ fx: "50%",
992
+ fy: "50%",
993
+ id: `root_gradient_${I.value}_${t.rootIndex}`
994
+ }, [
995
+ s("stop", {
996
+ offset: "0%",
997
+ "stop-color": r(B)(r(yt)(t.color, 0.05), 100 - e.value.style.chart.layout.roots.gradientIntensity)
998
+ }, null, 8, Dl),
999
+ s("stop", {
1000
+ offset: "100%",
1001
+ "stop-color": t.color
1002
+ }, null, 8, jl)
1003
+ ], 8, Ml))), 256)),
1004
+ (n(!0), u(k, null, w(P.value, (t) => (n(), u("linearGradient", {
1005
+ x1: "0%",
1006
+ y1: "0%",
1007
+ x2: "100%",
1008
+ y2: "0%",
1009
+ id: `branch_gradient_${I.value}_${t.rootIndex}`
1010
+ }, [
1011
+ s("stop", {
1012
+ offset: "0%",
1013
+ "stop-color": t.color
1014
+ }, null, 8, Xl),
1015
+ s("stop", {
1016
+ offset: "100%",
1017
+ "stop-color": r(B)(r(yt)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
1018
+ }, null, 8, Ul)
1019
+ ], 8, El))), 256)),
1020
+ s("radialGradient", {
1021
+ cx: "50%",
1022
+ cy: "50%",
1023
+ r: "50%",
1024
+ fx: "50%",
1025
+ fy: "50%",
1026
+ id: `nutpick_${I.value}`
1027
+ }, [
1028
+ s("stop", {
1029
+ offset: "0%",
1030
+ "stop-color": r(B)("#FFFFFF", 0)
1031
+ }, null, 8, Kl),
1032
+ s("stop", {
1033
+ offset: "80%",
1034
+ "stop-color": r(B)("#FFFFFF", e.value.style.chart.layout.nuts.selected.gradientIntensity)
1035
+ }, null, 8, Wl),
1036
+ s("stop", {
1037
+ offset: "100%",
1038
+ "stop-color": r(B)("#FFFFFF", 0)
1039
+ }, null, 8, Hl)
1040
+ ], 8, Gl),
1041
+ s("radialGradient", {
1042
+ cx: "50%",
1043
+ cy: "50%",
1044
+ r: "50%",
1045
+ fx: "50%",
1046
+ fy: "50%",
1047
+ id: `nut_${I.value}`
1048
+ }, [
1049
+ s("stop", {
1050
+ offset: "0%",
1051
+ "stop-color": r(B)("#FFFFFF", 0)
1052
+ }, null, 8, ql),
1053
+ s("stop", {
1054
+ offset: "80%",
1055
+ "stop-color": r(B)("#FFFFFF", e.value.style.chart.layout.nuts.gradientIntensity)
1056
+ }, null, 8, Zl),
1057
+ s("stop", {
1058
+ offset: "100%",
1059
+ "stop-color": r(B)("#FFFFFF", 0)
1060
+ }, null, 8, Jl)
1061
+ ], 8, Yl),
1062
+ s("radialGradient", {
1063
+ cx: "50%",
1064
+ cy: "50%",
1065
+ r: "50%",
1066
+ fx: "50%",
1067
+ fy: "50%",
1068
+ id: `nut_underlayer_${I.value}`
1069
+ }, [
1070
+ s("stop", {
1071
+ offset: "0%",
1072
+ "stop-color": r(B)(e.value.style.chart.backgroundColor, 100)
1073
+ }, null, 8, ea),
1074
+ s("stop", {
1075
+ offset: "80%",
1076
+ "stop-color": r(B)(e.value.style.chart.backgroundColor, 60)
1077
+ }, null, 8, ta),
1078
+ s("stop", {
1079
+ offset: "100%",
1080
+ "stop-color": r(B)(e.value.style.chart.backgroundColor, 0)
1081
+ }, null, 8, la)
1082
+ ], 8, Ql)
1083
+ ]),
1084
+ e.value.style.chart.layout.grandTotal.show ? (n(), u("g", aa, [
1085
+ s("text", {
1086
+ x: F.value.seedX,
1087
+ y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
1088
+ "font-size": e.value.style.chart.layout.grandTotal.fontSize,
1089
+ "font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
1090
+ fill: e.value.style.chart.layout.grandTotal.color,
1091
+ "text-anchor": "middle",
1092
+ onClick: a[2] || (a[2] = () => {
1093
+ z(), L(), S.value = !1;
1094
+ })
1095
+ }, d(e.value.style.chart.layout.grandTotal.text), 9, oa),
1096
+ s("text", {
1097
+ x: F.value.seedX,
1098
+ y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
1099
+ "font-size": e.value.style.chart.layout.grandTotal.fontSize,
1100
+ "font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
1101
+ fill: e.value.style.chart.layout.grandTotal.color,
1102
+ "text-anchor": "middle",
1103
+ onClick: a[3] || (a[3] = () => {
1104
+ z(), L(), S.value = !1;
1105
+ })
1106
+ }, d(r(Q)(
1107
+ e.value.style.chart.layout.grandTotal.formatter,
1108
+ O.value,
1109
+ r(m)({
1110
+ p: e.value.style.chart.layout.grandTotal.prefix,
1111
+ v: O.value,
1112
+ s: e.value.style.chart.layout.grandTotal.suffix,
1113
+ r: e.value.style.chart.layout.grandTotal.roundingValue
1114
+ })
1115
+ )), 9, na)
1116
+ ])) : p("", !0),
1117
+ (n(!0), u(k, null, w(q.value, (t) => (n(), u("g", null, [
1118
+ s("defs", null, [
1119
+ s("linearGradient", {
1120
+ id: `link_grad_${t.id}`
1121
+ }, [
1122
+ s("stop", {
1123
+ offset: "0%",
1124
+ "stop-color": t.color
1125
+ }, null, 8, sa),
1126
+ s("stop", {
1127
+ offset: "100%",
1128
+ "stop-color": r(B)(t.color, e.value.style.chart.layout.links.opacity)
1129
+ }, null, 8, ra)
1130
+ ], 8, ua)
1131
+ ]),
1132
+ s("path", {
1133
+ d: Mt(t),
1134
+ stroke: r(B)(t.color, e.value.style.chart.layout.links.opacity),
1135
+ fill: `url(#link_grad_${t.id})`,
1136
+ "stroke-linecap": "round",
1137
+ "stroke-linejoin": "round",
1138
+ style: h(`opacity:${D(t) ? 1 : 0}`),
1139
+ onClick: a[4] || (a[4] = () => {
1140
+ z(), L(), S.value = !1;
1141
+ })
1142
+ }, null, 12, ia)
1143
+ ]))), 256)),
1144
+ (n(!0), u(k, null, w(Y.value, (t) => (n(), u("circle", {
1145
+ cx: t.x,
1146
+ cy: t.y,
1147
+ r: t.r,
1148
+ fill: e.value.style.chart.layout.roots.underlayerColor,
1149
+ stroke: "none",
1150
+ style: h(`cursor:${M.value ? "pointer" : "default"}; opacity:${D(t) ? 1 : 0.05}`)
1151
+ }, null, 12, ca))), 256)),
1152
+ (n(!0), u(k, null, w(Y.value, (t, o) => (n(), u("circle", {
1153
+ "aria-label": Ve(t),
1154
+ cx: t.x,
1155
+ cy: t.y,
1156
+ r: t.r,
1157
+ fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${I.value}_${t.rootIndex})` : t.color,
1158
+ stroke: e.value.style.chart.layout.roots.stroke,
1159
+ "stroke-width": e.value.style.chart.layout.roots.strokeWidth,
1160
+ style: h(`cursor:${M.value ? "pointer" : "default"}; opacity:${D(t) ? 1 : 0.05}`),
1161
+ onClick: (g) => Pe(t)
1162
+ }, null, 12, da))), 256)),
1163
+ e.value.style.chart.layout.roots.labels.show ? (n(), u("g", va, [
1164
+ (n(!0), u(k, null, w(Y.value, (t, o) => (n(), u("text", {
1165
+ x: t.x,
1166
+ y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
1167
+ "text-anchor": "middle",
1168
+ "font-size": e.value.style.chart.layout.roots.labels.fontSize,
1169
+ fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? r(ht)(t.color) : e.value.style.chart.layout.roots.labels.color,
1170
+ "font-weight": "bold",
1171
+ style: h(`cursor:${M.value ? "pointer" : "default"}; opacity:${D(t) ? 1 : 0.05}`),
1172
+ onClick: (g) => Pe(t)
1173
+ }, d(r(Q)(
1174
+ e.value.style.chart.layout.roots.labels.formatter,
1175
+ t.total,
1176
+ r(m)({
1177
+ p: e.value.style.chart.layout.roots.labels.prefix,
1178
+ v: t.total,
1179
+ s: e.value.style.chart.layout.roots.labels.suffix,
1180
+ r: e.value.style.chart.layout.roots.labels.roundingValue
1181
+ }),
1182
+ { datapoint: t }
1183
+ )), 13, ya))), 256)),
1184
+ (n(!0), u(k, null, w(Y.value, (t) => (n(), u("g", null, [
1185
+ v.value && t.rootIndex === v.value.rootIndex || _.value && t.rootIndex === _.value.rootIndex || R.value && t.rootIndex === R.value.rootIndex ? (n(), u("g", ha, [
1186
+ s("text", {
1187
+ x: t.x,
1188
+ y: t.y + t.r + 24,
1189
+ "text-anchor": "middle",
1190
+ fill: e.value.style.chart.layout.roots.labels.name.color,
1191
+ "font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
1192
+ "font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
1193
+ onClick: a[5] || (a[5] = () => {
1194
+ z(), L(), S.value = !1;
1195
+ })
1196
+ }, d(t.name), 9, fa)
1197
+ ])) : p("", !0)
1198
+ ]))), 256))
1199
+ ])) : p("", !0),
1200
+ (n(!0), u(k, null, w(q.value, (t) => (n(), u("rect", {
1201
+ x: t.x1,
1202
+ y: t.y1,
1203
+ height: c.value.branchSize,
1204
+ width: t.x2 - t.x1,
1205
+ fill: e.value.style.chart.layout.branches.underlayerColor,
1206
+ rx: e.value.style.chart.layout.branches.borderRadius,
1207
+ stroke: "none",
1208
+ style: h(`opacity:${D(t) ? 1 : 0.05}`),
1209
+ onClick: (o) => pe(t)
1210
+ }, null, 12, ba))), 256)),
1211
+ (n(!0), u(k, null, w(q.value, (t, o) => (n(), u("rect", {
1212
+ "aria-label": Oe(t),
1213
+ x: t.x1,
1214
+ y: t.y1,
1215
+ height: c.value.branchSize,
1216
+ width: t.x2 - t.x1,
1217
+ fill: e.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${I.value}_${t.rootIndex})` : t.color,
1218
+ rx: e.value.style.chart.layout.branches.borderRadius,
1219
+ stroke: e.value.style.chart.layout.branches.stroke,
1220
+ "stroke-width": e.value.style.chart.layout.branches.strokeWidth,
1221
+ style: h(`cursor:${M.value ? "pointer" : "default"}; opacity:${D(t) ? 1 : 0.05}`),
1222
+ onClick: (g) => pe(t)
1223
+ }, null, 12, pa))), 256)),
1224
+ e.value.style.chart.layout.branches.labels.dataLabels.show ? (n(), u("g", ga, [
1225
+ (n(!0), u(k, null, w(q.value, (t) => (n(), u("g", null, [
1226
+ t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (n(), u("text", {
1227
+ key: 0,
1228
+ x: t.x1 + 6,
1229
+ y: t.y1 + c.value.branchSize / 1.5,
1230
+ "text-anchor": "start",
1231
+ fill: r(ht)(t.color),
1232
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1233
+ "font-weight": "bold",
1234
+ style: h(`cursor:${M.value ? "pointer" : "default"}; opacity:${D(t) ? 1 : 0.05}`),
1235
+ onClick: (o) => pe(t)
1236
+ }, d(r(Q)(
1237
+ e.value.style.chart.layout.branches.labels.dataLabels.formatter,
1238
+ t.value,
1239
+ r(m)({
1240
+ p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
1241
+ v: t.value,
1242
+ s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
1243
+ r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
1244
+ }),
1245
+ { datapoint: t }
1246
+ )), 13, xa)) : p("", !0)
1247
+ ]))), 256))
1248
+ ])) : p("", !0),
1249
+ (n(!0), u(k, null, w(q.value, (t, o) => (n(), u("g", null, [
1250
+ (n(!0), u(k, null, w(r(ft)(
1251
+ { series: t.breakdown, base: 1 },
1252
+ t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1253
+ t.y1 + c.value.branchSize / 2,
1254
+ c.value.branchSize / 3,
1255
+ c.value.branchSize / 3
1256
+ ), (g, x) => (n(), u("path", {
1257
+ d: g.path,
1258
+ stroke: g.color,
1259
+ "stroke-width": 10,
1260
+ fill: "none",
1261
+ style: h(`opacity:${D(t) ? 1 : 0.1}`)
1262
+ }, null, 12, ma))), 256)),
1263
+ s("circle", {
1264
+ "aria-label": `Open details for branch ${t.name} in root ${t.rootName}`,
1265
+ fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${I.value})` : "transparent",
1266
+ cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1267
+ cy: t.y1 + c.value.branchSize / 2,
1268
+ r: c.value.branchSize / 2 + 2,
1269
+ onClick: (g) => Fe(t),
1270
+ style: h(`cursor:${M.value ? "pointer" : "default"};opacity:${D(t) ? 1 : 0.1}`)
1271
+ }, null, 12, _a)
1272
+ ]))), 256)),
1273
+ e.value.style.chart.layout.branches.labels.show && !_.value ? (n(), u("g", ka, [
1274
+ (n(!0), u(k, null, w(q.value, (t) => (n(), u("text", {
1275
+ x: t.x2 + c.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
1276
+ y: t.y1 + c.value.branchSize / 2 + 5,
1277
+ "font-size": e.value.style.chart.layout.branches.labels.fontSize,
1278
+ "font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
1279
+ fill: e.value.style.chart.layout.branches.labels.color,
1280
+ "text-anchor": "start",
1281
+ style: h(`opacity:${D(t) ? 1 : 0.1}`)
1282
+ }, d(t.name), 13, wa))), 256))
1283
+ ])) : p("", !0),
1284
+ s("line", {
1285
+ x1: 256 + c.value.padding.left,
1286
+ x2: 256 + c.value.padding.left,
1287
+ y1: F.value.top,
1288
+ y2: F.value.bottom,
1289
+ stroke: e.value.style.chart.layout.verticalSeparator.stroke,
1290
+ "stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
1291
+ }, null, 8, Ca),
1292
+ !v.value && !_.value ? (n(), u("foreignObject", {
1293
+ key: 6,
1294
+ x: 0,
1295
+ y: F.value.bottom,
1296
+ height: c.value.height - F.value.bottom,
1297
+ width: c.value.width,
1298
+ style: { overflow: "visible" },
1299
+ "data-no-svg-export": "",
1300
+ onClick: a[6] || (a[6] = () => {
1301
+ z(), L(), S.value = !1;
1302
+ })
1303
+ }, [
1304
+ s("div", Ia, [
1305
+ s("div", Ta, [
1306
+ (n(!0), u(k, null, w(Y.value, (t) => (n(), u("div", {
1307
+ style: h(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
1308
+ }, [
1309
+ (n(), u("svg", Aa, [
1310
+ s("circle", {
1311
+ cx: "10",
1312
+ cy: "10",
1313
+ r: "10",
1314
+ fill: t.color,
1315
+ stroke: "none"
1316
+ }, null, 8, za)
1317
+ ])),
1318
+ r(Ye) ? p("", !0) : (n(), u(k, { key: 0 }, [
1319
+ s("span", null, d(t.name) + ":", 1),
1320
+ s("b", null, d(r(Q)(
1321
+ e.value.style.chart.layout.roots.labels.formatter,
1322
+ t.total,
1323
+ r(m)({
1324
+ p: e.value.style.chart.layout.legend.prefix,
1325
+ v: t.total,
1326
+ s: e.value.style.chart.layout.legend.suffix,
1327
+ r: e.value.style.chart.layout.legend.roundingValue
1328
+ }),
1329
+ { datapoint: t }
1330
+ )), 1),
1331
+ ye(" (" + d(r(m)({
1332
+ v: t.total / O.value * 100,
1333
+ s: "%",
1334
+ r: e.value.style.chart.layout.legend.roundingPercentage
1335
+ })) + ") ", 1)
1336
+ ], 64))
1337
+ ], 4))), 256))
1338
+ ])
1339
+ ])
1340
+ ], 8, $a)) : p("", !0),
1341
+ v.value && Z.value ? (n(), u("g", Na, [
1342
+ (n(), u("foreignObject", {
1343
+ x: 0,
1344
+ y: Vt(),
1345
+ height: c.value.height - F.value.bottom,
1346
+ width: c.value.width,
1347
+ style: { overflow: "visible" },
1348
+ onClick: a[7] || (a[7] = () => {
1349
+ z(), L(), S.value = !1;
1350
+ })
1351
+ }, [
1352
+ s("div", Fa, [
1353
+ s("b", null, d(v.value.name), 1),
1354
+ s("div", Pa, [
1355
+ (n(!0), u(k, null, w(v.value.breakdown, (t, o) => (n(), u("div", {
1356
+ style: h(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
1357
+ }, [
1358
+ (n(), u("svg", La, [
1359
+ s("circle", {
1360
+ cx: "10",
1361
+ cy: "10",
1362
+ r: "10",
1363
+ fill: t.color,
1364
+ stroke: "none"
1365
+ }, null, 8, Ba)
1366
+ ])),
1367
+ s("span", null, [
1368
+ ye(d(t.name) + ": ", 1),
1369
+ s("b", null, d(e.value.style.chart.layout.legend.prefix) + " " + d(t.value.toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + d(e.value.style.chart.layout.legend.suffix), 1),
1370
+ ye(" (" + d((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
1371
+ ])
1372
+ ], 4))), 256))
1373
+ ])
1374
+ ])
1375
+ ], 8, Sa)),
1376
+ s("circle", {
1377
+ cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1378
+ cy: v.value.y1 + c.value.branchSize / 2,
1379
+ r: 256,
1380
+ fill: `url(#nut_underlayer_${I.value})`,
1381
+ onClick: J,
1382
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1383
+ }, null, 10, Ra),
1384
+ (n(!0), u(k, null, w(Z.value, (t) => (n(), u("g", null, [
1385
+ ne(t) ? (n(), u("path", {
1386
+ key: 0,
1387
+ d: r(yl)(
1388
+ t,
1389
+ {
1390
+ x: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1391
+ y: v.value.y1 + c.value.branchSize / 2
1392
+ },
1393
+ 16,
1394
+ 16,
1395
+ !1,
1396
+ !1,
1397
+ 64
1398
+ ),
1399
+ stroke: t.color,
1400
+ "stroke-width": "1",
1401
+ "stroke-linecap": "round",
1402
+ "stroke-linejoin": "round",
1403
+ fill: "none",
1404
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1405
+ }, null, 10, Va)) : p("", !0)
1406
+ ]))), 256)),
1407
+ s("circle", {
1408
+ cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1409
+ cy: v.value.y1 + c.value.branchSize / 2,
1410
+ r: 118,
1411
+ fill: e.value.style.chart.backgroundColor,
1412
+ onClick: J,
1413
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1414
+ }, null, 10, Oa),
1415
+ (n(!0), u(k, null, w(Z.value, (t) => (n(), u("path", {
1416
+ d: t.path,
1417
+ stroke: t.color,
1418
+ "stroke-width": 64,
1419
+ fill: "none",
1420
+ onClick: J,
1421
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1422
+ }, null, 10, Ma))), 256)),
1423
+ s("circle", {
1424
+ cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1425
+ cy: v.value.y1 + c.value.branchSize / 2,
1426
+ r: 110,
1427
+ fill: `url(#nutpick_${I.value})`,
1428
+ onClick: J,
1429
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1430
+ }, null, 10, Da),
1431
+ s("circle", {
1432
+ cx: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1433
+ cy: v.value.y1 + c.value.branchSize / 2,
1434
+ r: 64,
1435
+ fill: e.value.style.chart.backgroundColor,
1436
+ onClick: J,
1437
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1438
+ }, null, 10, ja),
1439
+ s("text", {
1440
+ x: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1441
+ y: v.value.y1 + 8,
1442
+ fill: e.value.style.chart.layout.nuts.selected.labels.core.total.color,
1443
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
1444
+ "font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
1445
+ "text-anchor": "middle",
1446
+ onClick: J,
1447
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1448
+ }, d(e.value.translations.total), 11, Ea),
1449
+ s("text", {
1450
+ x: v.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
1451
+ y: v.value.y1 + 36,
1452
+ fill: e.value.style.chart.layout.nuts.selected.labels.core.value.color,
1453
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
1454
+ "font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
1455
+ "text-anchor": "middle",
1456
+ onClick: J,
1457
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1458
+ }, d(r(Q)(
1459
+ e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
1460
+ v.value.value,
1461
+ r(m)({
1462
+ p: e.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
1463
+ v: v.value.value,
1464
+ s: e.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
1465
+ r: e.value.style.chart.layout.nuts.selected.roundingValue
1466
+ }),
1467
+ { datapoint: v.value }
1468
+ )), 11, Xa),
1469
+ (n(!0), u(k, null, w(Z.value, (t, o) => (n(), u("g", null, [
1470
+ ne(t) ? (n(), u("text", {
1471
+ key: 0,
1472
+ x: r(K)(t).x,
1473
+ "text-anchor": r(K)(t).anchor,
1474
+ y: r(he)(t) - e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
1475
+ fill: t.color,
1476
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
1477
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1478
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1479
+ }, " ⬤ ", 14, Ua)) : p("", !0),
1480
+ ne(t) ? (n(), u("text", {
1481
+ key: 1,
1482
+ x: r(K)(t, !0).x,
1483
+ "text-anchor": r(K)(t, !0).anchor,
1484
+ y: r(he)(t),
1485
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1486
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1487
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1488
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1489
+ }, d(v.value.breakdown[o].name), 15, Ga)) : p("", !0)
1490
+ ]))), 256)),
1491
+ (n(!0), u(k, null, w(Z.value, (t, o) => (n(), u("g", null, [
1492
+ ne(t) ? (n(), u("text", {
1493
+ key: 0,
1494
+ x: r(K)(t, !0).x,
1495
+ "text-anchor": r(K)(t).anchor,
1496
+ y: r(he)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1497
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1498
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1499
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1500
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1501
+ }, d(r(m)({
1502
+ v: v.value.breakdown[o].value / v.value.value * 100,
1503
+ s: "%",
1504
+ r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1505
+ })) + " " + d(e.value.translations.of) + " " + d(v.value.breakdown[o].branchName) + " " + d(r(Q)(
1506
+ e.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,
1507
+ v.value.breakdown[o].value,
1508
+ r(m)({
1509
+ p: e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
1510
+ v: v.value.breakdown[o].value,
1511
+ s: e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
1512
+ r: e.value.style.chart.layout.nuts.selected.roundingValue
1513
+ }),
1514
+ { datapoint: Z.value, seriesIndex: o }
1515
+ )), 15, Ka)) : p("", !0),
1516
+ ne(t) ? (n(), u("text", {
1517
+ key: 1,
1518
+ x: r(K)(t, !0).x,
1519
+ "text-anchor": r(K)(t).anchor,
1520
+ y: r(he)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
1521
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1522
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1523
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1524
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1525
+ }, d(r(m)({
1526
+ v: v.value.breakdown[o].proportionToRoot * 100,
1527
+ s: "%",
1528
+ r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1529
+ })) + " " + d(e.value.translations.of) + " " + d(v.value.breakdown[o].rootName), 15, Wa)) : p("", !0),
1530
+ ne(t) ? (n(), u("text", {
1531
+ key: 2,
1532
+ x: r(K)(t, !0).x,
1533
+ "text-anchor": r(K)(t).anchor,
1534
+ y: r(he)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
1535
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
1536
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
1537
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
1538
+ class: N(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
1539
+ }, d(r(m)({
1540
+ v: v.value.breakdown[o].proportionToTree * 100,
1541
+ s: "%",
1542
+ r: e.value.style.chart.layout.nuts.selected.labels.roundingPercentage
1543
+ })) + " " + d(e.value.translations.proportionToTree), 15, Ha)) : p("", !0)
1544
+ ]))), 256))
1545
+ ])) : p("", !0),
1546
+ (n(!0), u(k, null, w(q.value, (t) => (n(), u("g", null, [
1547
+ _.value && _.value.id === t.id && !v.value ? (n(), u("text", {
1548
+ key: 0,
1549
+ x: t.x1 + 6,
1550
+ y: t.y1 + c.value.branchSize + 24,
1551
+ "font-weight": "bold",
1552
+ "text-anchor": "start",
1553
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1554
+ fill: e.value.style.chart.layout.branches.labels.color,
1555
+ onClick: a[8] || (a[8] = () => {
1556
+ z(), L(), S.value = !1;
1557
+ })
1558
+ }, d(t.name) + ": " + d(r(Q)(
1559
+ e.value.style.chart.layout.branches.labels.dataLabels.formatter,
1560
+ t.value,
1561
+ r(m)({
1562
+ p: e.value.style.chart.layout.branches.labels.dataLabels.prefix,
1563
+ v: t.value,
1564
+ s: e.value.style.chart.layout.branches.labels.dataLabels.suffix,
1565
+ r: e.value.style.chart.layout.branches.labels.dataLabels.roundingValue
1566
+ }),
1567
+ { datapoint: t }
1568
+ )), 9, Ya)) : p("", !0),
1569
+ _.value && _.value.id === t.id && !v.value ? (n(), u("text", {
1570
+ key: 1,
1571
+ x: t.x1 + 6,
1572
+ y: t.y1 + c.value.branchSize + 48,
1573
+ "text-anchor": "start",
1574
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1575
+ fill: e.value.style.chart.layout.branches.labels.color,
1576
+ onClick: a[9] || (a[9] = () => {
1577
+ z(), L(), S.value = !1;
1578
+ })
1579
+ }, d(r(m)({
1580
+ v: t.proportionToRoot * 100,
1581
+ s: "%",
1582
+ r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1583
+ })) + " " + d(e.value.translations.of) + " " + d(t.rootName), 9, qa)) : p("", !0),
1584
+ _.value && _.value.id === t.id && !v.value ? (n(), u("text", {
1585
+ key: 2,
1586
+ x: t.x1 + 6,
1587
+ y: t.y1 + c.value.branchSize + 72,
1588
+ "text-anchor": "start",
1589
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
1590
+ fill: e.value.style.chart.layout.branches.labels.color,
1591
+ onClick: a[10] || (a[10] = () => {
1592
+ z(), L(), S.value = !1;
1593
+ })
1594
+ }, d(r(m)({
1595
+ v: t.value / O.value * 100,
1596
+ s: "%",
1597
+ r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1598
+ })) + " " + d(e.value.translations.proportionToTree), 9, Za)) : p("", !0)
1599
+ ]))), 256)),
1600
+ $(l.$slots, "svg", {
1601
+ svg: {
1602
+ ...c.value,
1603
+ isPrintingImg: r(Ae) | r(ze) | fe.value,
1604
+ isPrintingSvg: be.value
1605
+ }
1606
+ }, void 0, !0)
1607
+ ], 46, Ll)) : p("", !0)
1608
+ ]),
1609
+ l.$slots.watermark ? (n(), u("div", Ja, [
1610
+ $(l.$slots, "watermark", X(U({ isPrinting: r(Ae) || r(ze) || fe.value || be.value })), void 0, !0)
1611
+ ])) : p("", !0),
1612
+ $(l.$slots, "legend", { legend: P.value }, void 0, !0),
1613
+ l.$slots.source ? (n(), u("div", Qa, [
1614
+ $(l.$slots, "source", {}, void 0, !0)
1615
+ ], 512)) : p("", !0),
1616
+ We.value && e.value.userOptions.buttons.table ? (n(), ve(nl(me.value.component), ul({ key: 6 }, me.value.props, {
1617
+ ref_key: "tableUnit",
1618
+ ref: re,
1619
+ onClose: Re
1620
+ }), dt({
1621
+ content: A(() => [
1622
+ s("div", {
1623
+ ref_key: "tableContainer",
1624
+ ref: et,
1625
+ class: "vue-ui-chestnut-table",
1626
+ style: h(`${e.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
1627
+ }, [
1628
+ s("div", {
1629
+ style: h(`${e.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`)
1630
+ }, [
1631
+ e.value.table.useDialog ? p("", !0) : (n(), u("div", {
1632
+ key: 0,
1633
+ role: "button",
1634
+ tabindex: "0",
1635
+ style: h(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${M.value ? "pointer" : "default"}; background:${e.value.table.th.backgroundColor};`),
1636
+ onClick: Re,
1637
+ onKeypress: sl(Re, ["enter"])
1638
+ }, [
1639
+ Ee(r(Ke), {
1640
+ name: "close",
1641
+ stroke: e.value.table.th.color,
1642
+ "stroke-width": 2
1643
+ }, null, 8, ["stroke"])
1644
+ ], 36)),
1645
+ s("div", {
1646
+ style: { width: "100%" },
1647
+ class: N({ "vue-ui-responsive": r(Dt) })
1648
+ }, [
1649
+ s("table", eo, [
1650
+ e.value.table.useDialog ? p("", !0) : (n(), u("caption", {
1651
+ key: 0,
1652
+ style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
1653
+ class: "vue-ui-data-table__caption"
1654
+ }, [
1655
+ ye(d(e.value.style.chart.layout.title.text) + " ", 1),
1656
+ e.value.style.chart.layout.title.subtitle.text ? (n(), u("span", to, d(e.value.style.chart.layout.title.subtitle.text), 1)) : p("", !0)
1657
+ ], 4)),
1658
+ s("thead", null, [
1659
+ s("tr", {
1660
+ role: "row",
1661
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1662
+ }, [
1663
+ (n(!0), u(k, null, w(y.value.head, (t) => (n(), u("th", {
1664
+ style: h(`outline:${e.value.table.th.outline}`)
1665
+ }, d(t), 5))), 256))
1666
+ ], 4)
1667
+ ]),
1668
+ s("tbody", null, [
1669
+ (n(!0), u(k, null, w(y.value.body, (t, o) => (n(), u("tr", {
1670
+ class: N({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
1671
+ style: h(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1672
+ }, [
1673
+ s("td", {
1674
+ class: "vue-ui-data-table__tbody__td",
1675
+ style: h(`outline:${e.value.table.td.outline}`),
1676
+ "data-cell": y.value.head[0]
1677
+ }, [
1678
+ s("div", ao, [
1679
+ y.value.body[o - 1] && y.value.body[o - 1].rootName === t.rootName ? (n(), u("span", oo)) : (n(), u("span", no, d(t.rootName), 1))
1680
+ ])
1681
+ ], 12, lo),
1682
+ s("td", {
1683
+ class: "vue-ui-data-table__tbody__td",
1684
+ style: h(`outline:${e.value.table.td.outline}`),
1685
+ "data-cell": y.value.head[1]
1686
+ }, [
1687
+ s("div", so, [
1688
+ y.value.body[o - 1] && y.value.body[o - 1].rootName === t.rootName ? (n(), u("span", ro)) : (n(), u("span", io, d(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
1689
+ ])
1690
+ ], 12, uo),
1691
+ s("td", {
1692
+ class: "vue-ui-data-table__tbody__td",
1693
+ style: h(`outline:${e.value.table.td.outline}`),
1694
+ "data-cell": y.value.head[2]
1695
+ }, [
1696
+ s("div", vo, [
1697
+ y.value.body[o - 1] && y.value.body[o - 1].rootName === t.rootName ? (n(), u("span", yo)) : (n(), u("span", ho, d((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
1698
+ ])
1699
+ ], 12, co),
1700
+ s("td", {
1701
+ class: "vue-ui-data-table__tbody__td",
1702
+ style: h(`outline:${e.value.table.td.outline}`),
1703
+ "data-cell": y.value.head[3]
1704
+ }, [
1705
+ s("div", bo, [
1706
+ y.value.body[o - 1] && y.value.body[o - 1].branchName === t.branchName ? (n(), u("span", po)) : (n(), u("span", go, d(t.branchName), 1))
1707
+ ])
1708
+ ], 12, fo),
1709
+ s("td", {
1710
+ class: "vue-ui-data-table__tbody__td",
1711
+ style: h(`outline:${e.value.table.td.outline}`),
1712
+ "data-cell": y.value.head[4]
1713
+ }, [
1714
+ s("div", mo, [
1715
+ y.value.body[o - 1] && y.value.body[o - 1].branchName === t.branchName ? (n(), u("span", _o)) : (n(), u("span", ko, d(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
1716
+ ])
1717
+ ], 12, xo),
1718
+ s("td", {
1719
+ class: "vue-ui-data-table__tbody__td",
1720
+ style: h(`outline:${e.value.table.td.outline}`),
1721
+ "data-cell": y.value.head[5]
1722
+ }, [
1723
+ s("div", Co, [
1724
+ y.value.body[o - 1] && y.value.body[o - 1].branchName === t.branchName ? (n(), u("span", $o)) : (n(), u("span", Io, d((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
1725
+ ])
1726
+ ], 12, wo),
1727
+ s("td", {
1728
+ class: "vue-ui-data-table__tbody__td",
1729
+ style: h(`outline:${e.value.table.td.outline}`),
1730
+ "data-cell": y.value.head[6]
1731
+ }, [
1732
+ s("div", Ao, [
1733
+ y.value.body[o - 1] && y.value.body[o - 1].branchName === t.branchName ? (n(), u("span", zo)) : (n(), u("span", No, d((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
1734
+ ])
1735
+ ], 12, To),
1736
+ s("td", {
1737
+ class: "vue-ui-data-table__tbody__td",
1738
+ style: h(`outline:${e.value.table.td.outline}`),
1739
+ "data-cell": y.value.head[7]
1740
+ }, [
1741
+ s("div", Fo, d(t.nutName), 1)
1742
+ ], 12, So),
1743
+ s("td", {
1744
+ class: "vue-ui-data-table__tbody__td",
1745
+ style: h(`outline:${e.value.table.td.outline}`),
1746
+ "data-cell": y.value.head[8]
1747
+ }, [
1748
+ s("div", Lo, d(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
1749
+ ], 12, Po),
1750
+ s("td", {
1751
+ class: "vue-ui-data-table__tbody__td",
1752
+ style: h(`outline:${e.value.table.td.outline}`),
1753
+ "data-cell": y.value.head[9]
1754
+ }, [
1755
+ s("div", Ro, d((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
1756
+ ], 12, Bo),
1757
+ s("td", {
1758
+ class: "vue-ui-data-table__tbody__td",
1759
+ style: h(`outline:${e.value.table.td.outline}`),
1760
+ "data-cell": y.value.head[10]
1761
+ }, [
1762
+ s("div", Oo, d((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
1763
+ ], 12, Vo),
1764
+ s("td", {
1765
+ class: "vue-ui-data-table__tbody__td",
1766
+ style: h(`outline:${e.value.table.td.outline}`),
1767
+ "data-cell": y.value.head[11]
1768
+ }, [
1769
+ s("div", Do, d((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
1770
+ ], 12, Mo)
1771
+ ], 6))), 256))
1772
+ ])
1773
+ ])
1774
+ ], 2)
1775
+ ], 4)
1776
+ ], 4)
1777
+ ]),
1778
+ _: 2
1779
+ }, [
1780
+ e.value.table.useDialog ? {
1781
+ name: "title",
1782
+ fn: A(() => [
1783
+ ye(d(me.value.title), 1)
1784
+ ]),
1785
+ key: "0"
1786
+ } : void 0,
1787
+ e.value.table.useDialog ? {
1788
+ name: "actions",
1789
+ fn: A(() => [
1790
+ s("button", {
1791
+ tabindex: "0",
1792
+ class: "vue-ui-user-options-button",
1793
+ onClick: a[11] || (a[11] = (t) => Le(e.value.userOptions.callbacks.csv))
1794
+ }, [
1795
+ Ee(r(Ke), {
1796
+ name: "fileCsv",
1797
+ stroke: me.value.props.color
1798
+ }, null, 8, ["stroke"])
1799
+ ])
1800
+ ]),
1801
+ key: "1"
1802
+ } : void 0
1803
+ ]), 1040)) : p("", !0),
1804
+ $(l.$slots, "skeleton", {}, () => [
1805
+ r(Ye) ? (n(), ve(gl, { key: 0 })) : p("", !0)
1806
+ ], !0)
1807
+ ], 46, zl));
1808
+ }
1809
+ }, an = /* @__PURE__ */ Al(jo, [["__scopeId", "data-v-67379808"]]);
1810
+ export {
1811
+ an as default
1812
+ };