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