vue-data-ui 2.3.2 → 2.3.4

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 (148) hide show
  1. package/dist/Arrow-B6gJebT9.js +101 -0
  2. package/dist/Arrow-C5yj6zwY.cjs +1 -0
  3. package/dist/BaseIcon-7_g11dRj.js +174 -0
  4. package/dist/BaseIcon-JtWoVorZ.cjs +1 -0
  5. package/dist/DataTable-CwaOlAsy.js +127 -0
  6. package/dist/DataTable-Rm9II-m2.cjs +1 -0
  7. package/dist/Legend-CxvJTjEm.js +62 -0
  8. package/dist/Legend-D59FIuMs.cjs +1 -0
  9. package/dist/Shape-CVItL3vh.cjs +1 -0
  10. package/dist/Shape-CjLV0scA.js +107 -0
  11. package/dist/Slicer-Bxg5niHl.js +156 -0
  12. package/dist/Slicer-Cdss5Rus.cjs +1 -0
  13. package/dist/Title-2iks1ziC.js +46 -0
  14. package/dist/Title-Bb-A5OSV.cjs +1 -0
  15. package/dist/Tooltip-C3phqKuU.js +94 -0
  16. package/dist/Tooltip-C_UE6y-E.cjs +1 -0
  17. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  18. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  19. package/dist/html2canvas.esm-BA_v9SIU.cjs +22 -0
  20. package/dist/html2canvas.esm-d2sM-0Wm.js +4870 -0
  21. package/dist/index-p5gfZSvB.cjs +4 -0
  22. package/dist/index-uOtklCCx.js +10268 -0
  23. package/dist/{index.es-BoVO5twe.js → index.es-YufTdp0y.js} +1 -1
  24. package/dist/{index.es-w_iDpZ-o.cjs → index.es-uyeSCnWE.cjs} +1 -1
  25. package/dist/jspdf.es.min-C660YX78.js +8038 -0
  26. package/dist/jspdf.es.min-DLYY9DTT.cjs +243 -0
  27. package/dist/pdf-97UbtKC2.js +44 -0
  28. package/dist/pdf-Cz3729tZ.cjs +1 -0
  29. package/dist/style.css +1 -1
  30. package/dist/useNestedProp-2kIU-7On.cjs +1 -0
  31. package/dist/useNestedProp-BgWkUab_.js +13 -0
  32. package/dist/usePrinter-B6xQCyL-.js +464 -0
  33. package/dist/usePrinter-fZlsJid8.cjs +1 -0
  34. package/dist/useResponsive-B3TrDDIG.cjs +1 -0
  35. package/dist/useResponsive-NZB-WLRF.js +187 -0
  36. package/dist/vue-data-ui-Be0rgmbA.cjs +9 -0
  37. package/dist/vue-data-ui-Ccy6rBZN.js +246 -0
  38. package/dist/vue-data-ui.cjs +1 -1
  39. package/dist/vue-data-ui.js +62 -61
  40. package/dist/vue-ui-3d-bar-BKMPFDi2.js +1085 -0
  41. package/dist/vue-ui-3d-bar-CKa4UXq4.cjs +19 -0
  42. package/dist/vue-ui-accordion-C_pwrAJl.cjs +1 -0
  43. package/dist/vue-ui-accordion-HJPf7My0.js +77 -0
  44. package/dist/vue-ui-age-pyramid-CE1xnA-8.cjs +1 -0
  45. package/dist/vue-ui-age-pyramid-DB_CL-gu.js +596 -0
  46. package/dist/vue-ui-annotator-BAMZcPlH.cjs +371 -0
  47. package/dist/vue-ui-annotator-DQsAL-nZ.js +2177 -0
  48. package/dist/vue-ui-candlestick-DCl8fpNu.js +657 -0
  49. package/dist/vue-ui-candlestick-Duv6oG79.cjs +2 -0
  50. package/dist/vue-ui-chestnut-BYHA6MT4.js +1051 -0
  51. package/dist/vue-ui-chestnut-mIZ4-ZEM.cjs +6 -0
  52. package/dist/vue-ui-cursor-C96IChA3.js +229 -0
  53. package/dist/vue-ui-cursor-De7dy4Mo.cjs +1 -0
  54. package/dist/vue-ui-dashboard-B2Yz41yO.js +232 -0
  55. package/dist/vue-ui-dashboard-BMGwKr0K.cjs +1 -0
  56. package/dist/vue-ui-digits-BnxLp7zQ.js +153 -0
  57. package/dist/vue-ui-digits-DSWyL-5K.cjs +1 -0
  58. package/dist/vue-ui-donut-1kei9ws5.cjs +1 -0
  59. package/dist/vue-ui-donut-B9iXisHK.js +743 -0
  60. package/dist/vue-ui-donut-evolution-B7Sun8sw.js +799 -0
  61. package/dist/vue-ui-donut-evolution-yv17DnGy.cjs +1 -0
  62. package/dist/vue-ui-dumbbell-BJEf_JEq.cjs +9 -0
  63. package/dist/vue-ui-dumbbell-DIsDnD1d.js +624 -0
  64. package/dist/vue-ui-flow-BTivYoGd.js +454 -0
  65. package/dist/vue-ui-flow-DOxJa8di.cjs +1 -0
  66. package/dist/vue-ui-galaxy-BEmywfFB.js +485 -0
  67. package/dist/vue-ui-galaxy-CHGOwCwM.cjs +1 -0
  68. package/dist/vue-ui-gauge-QAfMl-8t.cjs +1 -0
  69. package/dist/vue-ui-gauge-o4rDOqF3.js +466 -0
  70. package/dist/vue-ui-heatmap-BS4EzedX.cjs +1 -0
  71. package/dist/vue-ui-heatmap-DwqQqEsk.js +598 -0
  72. package/dist/vue-ui-kpi-F4qkJ_U-.cjs +1 -0
  73. package/dist/vue-ui-kpi-h8elYTcA.js +54 -0
  74. package/dist/vue-ui-mini-loader-C_8B2Pm6.cjs +1 -0
  75. package/dist/vue-ui-mini-loader-Cgoi9rhH.js +131 -0
  76. package/dist/vue-ui-molecule-Bmv76SWz.js +750 -0
  77. package/dist/vue-ui-molecule-C5CY_YYc.cjs +1 -0
  78. package/dist/vue-ui-mood-radar-BN0dzlfp.cjs +1 -0
  79. package/dist/vue-ui-mood-radar-DeMouUIe.js +548 -0
  80. package/dist/vue-ui-nested-donuts-ZyFoV-Zn.cjs +16 -0
  81. package/dist/vue-ui-nested-donuts-wOUkSVyZ.js +771 -0
  82. package/dist/vue-ui-onion-DCOKG2wG.js +554 -0
  83. package/dist/vue-ui-onion-VmTUo7TR.cjs +1 -0
  84. package/dist/vue-ui-parallel-coordinate-plot-BGtO2P4a.js +651 -0
  85. package/dist/vue-ui-parallel-coordinate-plot-BziXRF8E.cjs +8 -0
  86. package/dist/vue-ui-quadrant--JOTjPZh.js +1178 -0
  87. package/dist/vue-ui-quadrant-DawUUrur.cjs +1 -0
  88. package/dist/vue-ui-quick-chart-LXKfaJgS.js +1310 -0
  89. package/dist/vue-ui-quick-chart-jFlFtiNV.cjs +13 -0
  90. package/dist/vue-ui-radar-CWNIqvcA.js +614 -0
  91. package/dist/vue-ui-radar-VGH-lhaT.cjs +1 -0
  92. package/dist/vue-ui-rating-BNrIoJHN.js +271 -0
  93. package/dist/vue-ui-rating-Dtu6pwGx.cjs +1 -0
  94. package/dist/vue-ui-relation-circle-B3NKudOy.js +304 -0
  95. package/dist/vue-ui-relation-circle-Dwpx9o18.cjs +1 -0
  96. package/dist/vue-ui-rings-CsUngX_F.js +510 -0
  97. package/dist/vue-ui-rings-D9_OG--0.cjs +1 -0
  98. package/dist/vue-ui-scatter-DUsuh7bd.cjs +1 -0
  99. package/dist/vue-ui-scatter-DgxTz4Jx.js +874 -0
  100. package/dist/vue-ui-screenshot-51H_VrYY.js +160 -0
  101. package/dist/vue-ui-screenshot-C2Dz7CAe.cjs +3 -0
  102. package/dist/vue-ui-skeleton-BM9rwmxY.js +2064 -0
  103. package/dist/vue-ui-skeleton-sjfOtCZr.cjs +41 -0
  104. package/dist/vue-ui-smiley-DNnBtHht.cjs +2 -0
  105. package/dist/vue-ui-smiley-H5rSN-1B.js +763 -0
  106. package/dist/vue-ui-spark-trend-CLXZDYlk.js +246 -0
  107. package/dist/vue-ui-spark-trend-R4JJvfry.cjs +1 -0
  108. package/dist/vue-ui-sparkbar-C0k4ah-7.js +242 -0
  109. package/dist/vue-ui-sparkbar-CEUDIw0A.cjs +1 -0
  110. package/dist/vue-ui-sparkgauge-BHj00A07.js +157 -0
  111. package/dist/vue-ui-sparkgauge-CaEw6nmI.cjs +1 -0
  112. package/dist/vue-ui-sparkhistogram-B6GuavEu.cjs +1 -0
  113. package/dist/vue-ui-sparkhistogram-DbMLYKqE.js +244 -0
  114. package/dist/vue-ui-sparkline-CJydanLS.cjs +1 -0
  115. package/dist/vue-ui-sparkline-CYova9x3.js +333 -0
  116. package/dist/vue-ui-sparkstackbar-Df__yM5b.cjs +1 -0
  117. package/dist/vue-ui-sparkstackbar-N5rVBM2h.js +244 -0
  118. package/dist/vue-ui-strip-plot-DJJ1vEWz.js +618 -0
  119. package/dist/vue-ui-strip-plot-b5lhB35d.cjs +1 -0
  120. package/dist/vue-ui-table-NHhOVDbs.cjs +14 -0
  121. package/dist/vue-ui-table-heatmap-Cro2etCY.js +237 -0
  122. package/dist/vue-ui-table-heatmap-DlL2nCqz.cjs +1 -0
  123. package/dist/vue-ui-table-sparkline-Bw2Gc_ur.cjs +1 -0
  124. package/dist/vue-ui-table-sparkline-DppMitqF.js +420 -0
  125. package/dist/vue-ui-table-xSvwJIa7.js +1430 -0
  126. package/dist/vue-ui-thermometer-M2kdp1x5.js +385 -0
  127. package/dist/vue-ui-thermometer-Q_3PX2V3.cjs +1 -0
  128. package/dist/vue-ui-timer-BtSDeIRp.cjs +64 -0
  129. package/dist/vue-ui-timer-CAaQ-QD6.js +453 -0
  130. package/dist/vue-ui-tiremarks-CbGOSEvD.cjs +1 -0
  131. package/dist/vue-ui-tiremarks-JFv4JLP0.js +249 -0
  132. package/dist/vue-ui-treemap-BqDX-bPf.cjs +1 -0
  133. package/dist/vue-ui-treemap-DCnv-xYr.js +722 -0
  134. package/dist/vue-ui-vertical-bar-CEbApJZl.js +737 -0
  135. package/dist/vue-ui-vertical-bar-CJB_KXyr.cjs +4 -0
  136. package/dist/vue-ui-waffle-CTS6C7gu.js +638 -0
  137. package/dist/vue-ui-waffle-IMEbGe-b.cjs +1 -0
  138. package/dist/vue-ui-wheel-CuOmEWMQ.cjs +1 -0
  139. package/dist/vue-ui-wheel-_zyCdFiI.js +227 -0
  140. package/dist/vue-ui-word-cloud-RDlXBEAN.js +346 -0
  141. package/dist/vue-ui-word-cloud-Y7Yk7uUJ.cjs +1 -0
  142. package/dist/vue-ui-xy-BZJQBKnU.cjs +3 -0
  143. package/dist/vue-ui-xy-DsvN9EIQ.js +2064 -0
  144. package/dist/vue-ui-xy-canvas-D_dnbyFS.cjs +9 -0
  145. package/dist/vue-ui-xy-canvas-Dbcw8-9Q.js +1006 -0
  146. package/package.json +1 -1
  147. package/dist/index-C6KVJkgd.cjs +0 -843
  148. package/dist/index-bDBuMYfe.js +0 -57303
@@ -0,0 +1,1051 @@
1
+ import { useCssVars as Pe, computed as $, ref as z, onMounted as Ve, openBlock as a, createElementBlock as o, normalizeClass as m, normalizeStyle as h, createBlock as Q, unref as y, createSlots as Re, withCtx as E, renderSlot as X, normalizeProps as Be, guardReactiveProps as Me, createCommentVNode as b, toDisplayString as n, createElementVNode as s, Fragment as p, renderList as _, createTextVNode as Y, withKeys as je, createVNode as Xe, nextTick as ve } from "vue";
2
+ import { u as Oe, c as Ge, t as Ee, a as Ae, p as I, b as Ue, g as Z, e as H, d as ee, o as De, X as Ye, s as ye, r as F, C as he, m as fe, i as qe, j as L, k as q, n as He, q as We } from "./index-uOtklCCx.js";
3
+ import { u as Ke, U as Je } from "./usePrinter-B6xQCyL-.js";
4
+ import Qe from "./vue-ui-skeleton-BM9rwmxY.js";
5
+ import Ze from "./BaseIcon-7_g11dRj.js";
6
+ import et from "./vue-ui-accordion-HJPf7My0.js";
7
+ import { u as be } from "./useNestedProp-BgWkUab_.js";
8
+ import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const lt = ["id"], at = ["xmlns", "viewBox"], ot = { key: 0 }, st = ["fill", "font-weight", "font-size", "x", "y"], ut = ["fill", "font-weight", "font-size", "x", "y"], nt = ["id"], rt = ["stop-color"], it = ["stop-color"], ct = ["id"], dt = ["stop-color"], vt = ["stop-color"], yt = ["id"], ht = ["stop-color"], ft = ["stop-color"], bt = ["stop-color"], pt = ["id"], _t = ["stop-color"], gt = ["stop-color"], xt = ["stop-color"], mt = ["id"], kt = ["stop-color"], wt = ["stop-color"], $t = ["stop-color"], Ct = { key: 1 }, zt = ["x", "y", "font-size", "font-weight", "fill"], Tt = ["x", "y", "font-size", "font-weight", "fill"], Ft = ["d", "stroke"], Nt = ["cx", "cy", "r", "fill"], St = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], It = { key: 2 }, Lt = ["x", "y", "font-size", "fill", "onClick"], Pt = { key: 0 }, Vt = ["x", "y", "fill", "font-size", "font-weight"], Rt = ["x", "y", "height", "width", "fill", "rx", "onClick"], Bt = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], Mt = { key: 3 }, jt = ["x", "y", "fill", "font-size", "onClick"], Xt = ["d", "stroke"], Ot = ["cx", "cy", "fill", "onClick"], Gt = ["fill", "cx", "cy", "r", "onClick"], Et = { key: 4 }, At = ["x", "y", "font-size", "font-weight", "fill"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["y", "height", "width"], Yt = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, qt = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Ht = {
10
+ viewBox: "0 0 20 20",
11
+ height: "16",
12
+ width: "16"
13
+ }, Wt = ["fill"], Kt = { key: 6 }, Jt = ["y", "height", "width"], Qt = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Zt = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, el = {
14
+ viewBox: "0 0 20 20",
15
+ height: "16",
16
+ width: "16"
17
+ }, tl = ["fill"], ll = ["d", "stroke"], al = ["cx", "cy", "fill"], ol = ["cx", "cy", "fill"], sl = ["d", "stroke"], ul = ["cx", "cy", "fill"], nl = ["cx", "cy", "fill"], rl = ["x", "y", "fill", "font-size", "font-weight"], il = ["x", "y", "fill", "font-size", "font-weight"], cl = ["x", "text-anchor", "y", "fill", "font-size"], dl = ["x", "text-anchor", "y", "fill", "font-size"], vl = ["x", "text-anchor", "y", "fill", "font-size"], yl = ["x", "text-anchor", "y", "fill", "font-size"], hl = ["x", "text-anchor", "y", "fill", "font-size"], fl = ["x", "y", "font-size", "fill"], bl = ["x", "y", "font-size", "fill"], pl = ["x", "y", "font-size", "fill"], _l = { style: { "padding-top": "36px", position: "relative" } }, gl = { class: "vue-ui-data-table" }, xl = { key: 0 }, ml = ["data-cell"], kl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wl = { key: 0 }, $l = { key: 1 }, Cl = ["data-cell"], zl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Tl = { key: 0 }, Fl = { key: 1 }, Nl = ["data-cell"], Sl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Il = { key: 0 }, Ll = { key: 1 }, Pl = ["data-cell"], Vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Rl = { key: 0 }, Bl = { key: 1 }, Ml = ["data-cell"], jl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Xl = { key: 0 }, Ol = { key: 1 }, Gl = ["data-cell"], El = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Al = { key: 0 }, Ul = { key: 1 }, Dl = ["data-cell"], Yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ql = { key: 0 }, Hl = { key: 1 }, Wl = ["data-cell"], Kl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Jl = ["data-cell"], Ql = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Zl = ["data-cell"], ea = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ta = ["data-cell"], la = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, aa = ["data-cell"], oa = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, sa = {
18
+ __name: "vue-ui-chestnut",
19
+ props: {
20
+ config: {
21
+ type: Object,
22
+ default() {
23
+ return {};
24
+ }
25
+ },
26
+ dataset: {
27
+ type: Array,
28
+ default() {
29
+ return [];
30
+ }
31
+ }
32
+ },
33
+ emits: ["selectRoot", "selectBranch", "selectNut"],
34
+ setup(pe, { expose: _e, emit: O }) {
35
+ const P = pe;
36
+ Pe((l) => ({
37
+ a08a8b28: l.tdo
38
+ }));
39
+ const { vue_ui_chestnut: ge } = Oe(), A = $(() => !!P.dataset && P.dataset.length), k = z(Ge()), te = z(null), xe = z(null), le = z(0), e = $(() => {
40
+ const l = be({
41
+ userConfig: P.config,
42
+ defaultConfig: ge
43
+ });
44
+ return l.theme ? {
45
+ ...be({
46
+ userConfig: Ee.vue_ui_chestnut[l.theme] || P.config,
47
+ defaultConfig: l
48
+ }),
49
+ customPalette: Ae[l.theme] || I
50
+ } : l;
51
+ }), { isPrinting: me, isImaging: ke, generatePdf: ae, generateImage: oe } = Ke({
52
+ elementId: `vue-ui-chestnut_${k.value}`,
53
+ fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
54
+ }), W = $(() => Ue(e.value.customPalette)), U = z({
55
+ showTable: e.value.table.show
56
+ }), se = z(null), ue = z(!1), we = $(() => e.value.table.responsiveBreakpoint), r = z({
57
+ gap: 6,
58
+ padding: {
59
+ top: 102,
60
+ left: 12,
61
+ right: 12,
62
+ bottom: 96
63
+ },
64
+ width: 1024,
65
+ height: 0,
66
+ branchSize: 32,
67
+ branchStart: 128
68
+ }), C = $(() => ({
69
+ left: r.value.padding.left,
70
+ top: r.value.padding.top,
71
+ right: r.value.width - r.value.padding.right,
72
+ bottom: r.value.height - r.value.padding.bottom,
73
+ width: r.value.width - (r.value.padding.left + r.value.padding.right),
74
+ height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
75
+ seedX: r.value.padding.left + 64
76
+ })), V = $(() => A.value ? P.dataset.flatMap((l) => l.branches.map((i) => i.value)).reduce((l, i) => l + i) : 0), T = $(() => (P.dataset.forEach((l, i) => {
77
+ Z({
78
+ datasetObject: l,
79
+ requiredAttributes: ["name", "branches"]
80
+ }).forEach((t) => {
81
+ H({
82
+ componentName: "VueUiChestnut",
83
+ type: "datasetSerieAttribute",
84
+ property: t,
85
+ index: i
86
+ });
87
+ }), l.branches && l.branches.forEach((t, u) => {
88
+ Z({
89
+ datasetObject: t,
90
+ requiredAttributes: ["name", "value"]
91
+ }).forEach((f) => {
92
+ H({
93
+ componentName: "VueUiChestnut",
94
+ type: "datasetSerieAttribute",
95
+ property: f,
96
+ index: `${i} - ${u}`
97
+ });
98
+ }), t.breakdown && t.breakdown.forEach((f, v) => {
99
+ Z({
100
+ datasetObject: f,
101
+ requiredAttributes: ["name", "value"]
102
+ }).forEach((g) => {
103
+ H({
104
+ componentName: "VueUiChestnut",
105
+ type: "datasetSerieAttribute",
106
+ property: g,
107
+ index: `${i} - ${u} - ${v}`
108
+ });
109
+ });
110
+ });
111
+ });
112
+ }), P.dataset.map((l, i) => {
113
+ const t = l.branches.map((u) => u.value).reduce((u, f) => u + f);
114
+ return {
115
+ ...l,
116
+ color: ee(l.color) || W.value[i] || I[i] || I[i % I.length],
117
+ id: l.id || `root_${i}_${k.value}`,
118
+ type: "root",
119
+ total: t,
120
+ rootIndex: i,
121
+ branches: l.branches.map((u, f) => ({
122
+ ...u,
123
+ rootName: l.name,
124
+ rootIndex: i,
125
+ color: ee(l.color) || W.value[i] || I[i] || I[i % I.length],
126
+ value: u.value >= 0 ? u.value : 0,
127
+ id: u.id || `branch_${i}_${f}_${k.value}`,
128
+ proportionToRoot: u.value / t,
129
+ type: "branch",
130
+ breakdown: u.breakdown.map((v, g) => ({
131
+ table: {
132
+ rootName: l.name,
133
+ rootValue: t,
134
+ rootToTotal: t / V.value,
135
+ branchName: u.name,
136
+ branchValue: u.value,
137
+ branchToTotal: u.value / V.value,
138
+ branchToRoot: u.value / t,
139
+ nutName: v.name,
140
+ nutValue: v.value,
141
+ nutToTotal: v.value / V.value,
142
+ nutToRoot: v.value / t,
143
+ nutToBranch: v.value / u.value
144
+ },
145
+ ...v,
146
+ type: "nut",
147
+ branchName: u.name,
148
+ rootName: l.name,
149
+ branchTotal: u.value >= 0 ? u.value : 0,
150
+ proportionToBranch: v.value / u.value,
151
+ proportionToRoot: v.value / t,
152
+ proportionToTree: v.value / V.value,
153
+ rootIndex: i,
154
+ id: v.id || `nut_${i}_${f}_${g}_${k.value}`,
155
+ color: ee(v.color) || W.value[g] || I[g] || I[g % I.length],
156
+ value: v.value >= 0 ? v.value : 0
157
+ }))
158
+ }))
159
+ };
160
+ })));
161
+ function $e() {
162
+ return T.value;
163
+ }
164
+ const Ce = $(() => T.value.flatMap((l) => l.branches).length), ze = $(() => Math.max(...T.value.map((l) => l.branches.map((i) => i.value).reduce((i, t) => i + t, 0)))), Te = $(() => Math.max(...T.value.flatMap((l) => l.branches.map((i) => i.value)))), ne = $(() => 256 + r.value.padding.left), B = $(() => T.value.sort((l, i) => i.total - l.total).map((l, i) => {
165
+ const t = C.value.height / T.value.length / 2, u = l.total / ze.value * (t > 64 ? 64 : t);
166
+ return {
167
+ ...l,
168
+ x: C.value.seedX,
169
+ y: C.value.top + C.value.height / T.value.length * (i + 1) - (C.value.height / T.value.length / 2 + r.value.gap / 2),
170
+ r: u < r.value.branchSize / 2 ? r.value.branchSize / 2 : u
171
+ };
172
+ })), Fe = $(() => 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), Ne = $(() => B.value.flatMap((l) => l.branches)), R = $(() => Ne.value.sort((l, i) => i.value - l.value).map((l, i) => ({
173
+ ...l,
174
+ y1: i * r.value.branchSize + C.value.top + i * r.value.gap,
175
+ y2: i * r.value.branchSize + r.value.branchSize,
176
+ x1: ne.value,
177
+ x2: 384 * l.value / Te.value * Fe.value + ne.value
178
+ })));
179
+ function K(l) {
180
+ const i = B.value.find((t) => t.rootIndex === l.rootIndex);
181
+ return { x: i.x, y: i.y, r: i.r };
182
+ }
183
+ const d = z(null), M = z(null), x = z(null), N = z(null);
184
+ function w() {
185
+ d.value = null, x.value = null, N.value = null;
186
+ }
187
+ function S(l) {
188
+ return N.value ? N.value === null ? !0 : l.type === "root" ? l.id === N.value.id : l.rootIndex === N.value.rootIndex : d.value === null && x.value === null ? !0 : l.type === "nut" ? d.value.id === l.id : l.type === "branch" ? x.value.id === l.id : l.type === "root" ? x.value && x.value.rootIndex === l.rootIndex || d.value && d.value.rootIndex === l.rootIndex : !1;
189
+ }
190
+ function re(l) {
191
+ w(), ve(() => {
192
+ d.value = l, x.value = l, M.value = fe(
193
+ { series: l.breakdown, base: 1 },
194
+ l.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
195
+ l.y1 + r.value.branchSize / 2,
196
+ 80,
197
+ 80
198
+ ), O("selectNut", l.breakdown);
199
+ });
200
+ }
201
+ function j() {
202
+ d.value = null, M.value = null, O("selectNut", null);
203
+ }
204
+ function J(l) {
205
+ x.value && x.value.id === l.id ? (x.value = null, w(), O("selectBranch", null)) : (w(), x.value = l, O("selectBranch", l));
206
+ }
207
+ function ie(l) {
208
+ N.value && N.value.id === l.id ? (w(), O("selectRoot", null)) : (w(), N.value = l, O("selectRoot", l));
209
+ }
210
+ function Se() {
211
+ return C.value.bottom - (d.value.y1 + 180) < 0 ? 0 : C.value.bottom;
212
+ }
213
+ function G(l) {
214
+ return l.proportion * 100 > e.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
215
+ }
216
+ function Ie() {
217
+ new ResizeObserver((i) => {
218
+ i.forEach((t) => {
219
+ ue.value = t.contentRect.width < we.value;
220
+ });
221
+ }).observe(se.value);
222
+ }
223
+ Ve(() => {
224
+ De(P.dataset) && H({
225
+ componentName: "VueUiChestnut",
226
+ type: "dataset"
227
+ });
228
+ const l = Ce.value * (r.value.branchSize + r.value.gap) + r.value.padding.top + r.value.padding.bottom;
229
+ r.value.height = l, Ie();
230
+ });
231
+ const c = $(() => {
232
+ const l = [
233
+ e.value.table.th.translations.rootName,
234
+ e.value.table.th.translations.rootValue,
235
+ e.value.table.th.translations.rootToTotal,
236
+ e.value.table.th.translations.branchName,
237
+ e.value.table.th.translations.branchValue,
238
+ e.value.table.th.translations.branchToRoot,
239
+ e.value.table.th.translations.branchToTotal,
240
+ e.value.table.th.translations.nutName,
241
+ e.value.table.th.translations.nutValue,
242
+ e.value.table.th.translations.nutToBranch,
243
+ e.value.table.th.translations.nutToRoot,
244
+ e.value.table.th.translations.nutToTotal
245
+ ], i = T.value.flatMap((t, u) => t.branches.flatMap((f, v) => f.breakdown.flatMap((g, ua) => g.table)));
246
+ return { head: l, body: i };
247
+ });
248
+ function ce() {
249
+ ve(() => {
250
+ const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", V.value], [""]], i = c.value.head, t = c.value.body.map((v, g) => [
251
+ c.value.body[g - 1] && c.value.body[g - 1].rootName === v.rootName ? "" : v.rootName,
252
+ c.value.body[g - 1] && c.value.body[g - 1].rootName === v.rootName ? "" : v.rootValue,
253
+ c.value.body[g - 1] && c.value.body[g - 1].rootName === v.rootName ? "" : v.rootToTotal,
254
+ c.value.body[g - 1] && c.value.body[g - 1].branchName === v.branchName ? "" : v.branchName,
255
+ c.value.body[g - 1] && c.value.body[g - 1].branchName === v.branchName ? "" : v.branchValue,
256
+ c.value.body[g - 1] && c.value.body[g - 1].branchName === v.branchName ? "" : v.branchToRoot,
257
+ c.value.body[g - 1] && c.value.body[g - 1].branchName === v.branchName ? "" : v.branchToTotal,
258
+ v.nutName,
259
+ v.nutValue,
260
+ v.nutToBranch,
261
+ v.nutToRoot,
262
+ v.nutToTotal
263
+ ]), u = l.concat([i]).concat(t), f = He(u);
264
+ We({ csvContent: f, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
265
+ });
266
+ }
267
+ const D = z(!1);
268
+ function Le(l) {
269
+ D.value = l, le.value += 1;
270
+ }
271
+ function de() {
272
+ U.value.showTable = !U.value.showTable;
273
+ }
274
+ return _e({
275
+ getData: $e,
276
+ generatePdf: ae,
277
+ generateCsv: ce,
278
+ generateImage: oe,
279
+ toggleTable: de
280
+ }), (l, i) => (a(), o("div", {
281
+ class: m(`vue-ui-chestnut ${D.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
282
+ ref_key: "chestnutChart",
283
+ ref: te,
284
+ id: `vue-ui-chestnut_${k.value}`,
285
+ style: h(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;padding-top:36px;background:${e.value.style.chart.backgroundColor}`)
286
+ }, [
287
+ e.value.userOptions.show && A.value ? (a(), Q(Je, {
288
+ ref_key: "details",
289
+ ref: xe,
290
+ key: `user_options_${le.value}`,
291
+ backgroundColor: e.value.style.chart.backgroundColor,
292
+ color: e.value.style.chart.color,
293
+ isImaging: y(ke),
294
+ isPrinting: y(me),
295
+ uid: k.value,
296
+ hasPdf: e.value.userOptions.buttons.pdf,
297
+ hasImg: e.value.userOptions.buttons.img,
298
+ hasXls: e.value.userOptions.buttons.csv,
299
+ hasTable: e.value.userOptions.buttons.table,
300
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
301
+ isFullscreen: D.value,
302
+ titles: { ...e.value.userOptions.buttonTitles },
303
+ chartElement: te.value,
304
+ onToggleFullscreen: Le,
305
+ onGeneratePdf: y(ae),
306
+ onGenerateCsv: ce,
307
+ onGenerateImage: y(oe),
308
+ onToggleTable: de
309
+ }, Re({ _: 2 }, [
310
+ l.$slots.optionPdf ? {
311
+ name: "optionPdf",
312
+ fn: E(() => [
313
+ X(l.$slots, "optionPdf", {}, void 0, !0)
314
+ ]),
315
+ key: "0"
316
+ } : void 0,
317
+ l.$slots.optionCsv ? {
318
+ name: "optionCsv",
319
+ fn: E(() => [
320
+ X(l.$slots, "optionCsv", {}, void 0, !0)
321
+ ]),
322
+ key: "1"
323
+ } : void 0,
324
+ l.$slots.optionImg ? {
325
+ name: "optionImg",
326
+ fn: E(() => [
327
+ X(l.$slots, "optionImg", {}, void 0, !0)
328
+ ]),
329
+ key: "2"
330
+ } : void 0,
331
+ l.$slots.optionTable ? {
332
+ name: "optionTable",
333
+ fn: E(() => [
334
+ X(l.$slots, "optionTable", {}, void 0, !0)
335
+ ]),
336
+ key: "3"
337
+ } : void 0,
338
+ l.$slots.optionFullscreen ? {
339
+ name: "optionFullscreen",
340
+ fn: E(({ toggleFullscreen: t, isFullscreen: u }) => [
341
+ X(l.$slots, "optionFullscreen", Be(Me({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
342
+ ]),
343
+ key: "4"
344
+ } : void 0
345
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : b("", !0),
346
+ r.value.height > 0 && A.value ? (a(), o("svg", {
347
+ key: 1,
348
+ xmlns: y(Ye),
349
+ class: m({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
350
+ viewBox: `0 0 ${r.value.width} ${r.value.height}`,
351
+ style: h(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
352
+ }, [
353
+ d.value ? b("", !0) : (a(), o("g", ot, [
354
+ e.value.style.chart.layout.title.text ? (a(), o("text", {
355
+ key: 0,
356
+ "text-anchor": "middle",
357
+ fill: e.value.style.chart.layout.title.color,
358
+ "font-weight": e.value.style.chart.layout.title.bold ? "bold" : "normal",
359
+ "font-size": e.value.style.chart.layout.title.fontSize,
360
+ x: r.value.width / 2,
361
+ y: 12 + e.value.style.chart.layout.title.fontSize + e.value.style.chart.layout.title.offsetY,
362
+ onClick: w
363
+ }, n(e.value.style.chart.layout.title.text), 9, st)) : b("", !0),
364
+ e.value.style.chart.layout.title.subtitle.text ? (a(), o("text", {
365
+ key: 1,
366
+ "text-anchor": "middle",
367
+ fill: e.value.style.chart.layout.title.subtitle.color,
368
+ "font-weight": e.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
369
+ "font-size": e.value.style.chart.layout.title.subtitle.fontSize,
370
+ x: r.value.width / 2,
371
+ y: 48 + e.value.style.chart.layout.title.subtitle.fontSize + e.value.style.chart.layout.title.subtitle.offsetY,
372
+ onClick: w
373
+ }, n(e.value.style.chart.layout.title.subtitle.text), 9, ut)) : b("", !0)
374
+ ])),
375
+ s("defs", null, [
376
+ (a(!0), o(p, null, _(T.value, (t, u) => (a(), o("radialGradient", {
377
+ cx: "50%",
378
+ cy: "50%",
379
+ r: "50%",
380
+ fx: "50%",
381
+ fy: "50%",
382
+ id: `root_gradient_${k.value}_${t.rootIndex}`
383
+ }, [
384
+ s("stop", {
385
+ offset: "0%",
386
+ "stop-color": `${y(ye)(t.color, 0.05)}${y(F)[100 - e.value.style.chart.layout.roots.gradientIntensity]}`
387
+ }, null, 8, rt),
388
+ s("stop", {
389
+ offset: "100%",
390
+ "stop-color": t.color
391
+ }, null, 8, it)
392
+ ], 8, nt))), 256)),
393
+ (a(!0), o(p, null, _(T.value, (t) => (a(), o("linearGradient", {
394
+ x1: "0%",
395
+ y1: "0%",
396
+ x2: "100%",
397
+ y2: "0%",
398
+ id: `branch_gradient_${k.value}_${t.rootIndex}`
399
+ }, [
400
+ s("stop", {
401
+ offset: "0%",
402
+ "stop-color": t.color
403
+ }, null, 8, dt),
404
+ s("stop", {
405
+ offset: "100%",
406
+ "stop-color": `${y(ye)(t.color, 0.02)}${y(F)[100 - e.value.style.chart.layout.branches.gradientIntensity]}`
407
+ }, null, 8, vt)
408
+ ], 8, ct))), 256)),
409
+ s("radialGradient", {
410
+ cx: "50%",
411
+ cy: "50%",
412
+ r: "50%",
413
+ fx: "50%",
414
+ fy: "50%",
415
+ id: `nutpick_${k.value}`
416
+ }, [
417
+ s("stop", {
418
+ offset: "0%",
419
+ "stop-color": `#FFFFFF${y(F)[0]}`
420
+ }, null, 8, ht),
421
+ s("stop", {
422
+ offset: "80%",
423
+ "stop-color": `#FFFFFF${y(F)[e.value.style.chart.layout.nuts.selected.gradientIntensity]}`
424
+ }, null, 8, ft),
425
+ s("stop", {
426
+ offset: "100%",
427
+ "stop-color": `#FFFFFF${y(F)[0]}`
428
+ }, null, 8, bt)
429
+ ], 8, yt),
430
+ s("radialGradient", {
431
+ cx: "50%",
432
+ cy: "50%",
433
+ r: "50%",
434
+ fx: "50%",
435
+ fy: "50%",
436
+ id: `nut_${k.value}`
437
+ }, [
438
+ s("stop", {
439
+ offset: "0%",
440
+ "stop-color": `#FFFFFF${y(F)[0]}`
441
+ }, null, 8, _t),
442
+ s("stop", {
443
+ offset: "80%",
444
+ "stop-color": `#FFFFFF${y(F)[e.value.style.chart.layout.nuts.gradientIntensity]}`
445
+ }, null, 8, gt),
446
+ s("stop", {
447
+ offset: "100%",
448
+ "stop-color": `#FFFFFF${y(F)[0]}`
449
+ }, null, 8, xt)
450
+ ], 8, pt),
451
+ s("radialGradient", {
452
+ cx: "50%",
453
+ cy: "50%",
454
+ r: "50%",
455
+ fx: "50%",
456
+ fy: "50%",
457
+ id: `nut_underlayer_${k.value}`
458
+ }, [
459
+ s("stop", {
460
+ offset: "0%",
461
+ "stop-color": `${e.value.style.chart.backgroundColor}${y(F)[100]}`
462
+ }, null, 8, kt),
463
+ s("stop", {
464
+ offset: "80%",
465
+ "stop-color": `${e.value.style.chart.backgroundColor}${y(F)[60]}`
466
+ }, null, 8, wt),
467
+ s("stop", {
468
+ offset: "100%",
469
+ "stop-color": `${e.value.style.chart.backgroundColor}${y(F)[0]}`
470
+ }, null, 8, $t)
471
+ ], 8, mt)
472
+ ]),
473
+ e.value.style.chart.layout.grandTotal.show ? (a(), o("g", Ct, [
474
+ s("text", {
475
+ x: C.value.seedX,
476
+ y: 32 + e.value.style.chart.layout.grandTotal.offsetY,
477
+ "font-size": e.value.style.chart.layout.grandTotal.fontSize,
478
+ "font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
479
+ fill: e.value.style.chart.layout.grandTotal.color,
480
+ "text-anchor": "middle",
481
+ onClick: w
482
+ }, n(e.value.style.chart.layout.grandTotal.text), 9, zt),
483
+ s("text", {
484
+ x: C.value.seedX,
485
+ y: 38 + e.value.style.chart.layout.grandTotal.fontSize + e.value.style.chart.layout.grandTotal.offsetY,
486
+ "font-size": e.value.style.chart.layout.grandTotal.fontSize,
487
+ "font-weight": e.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
488
+ fill: e.value.style.chart.layout.grandTotal.color,
489
+ "text-anchor": "middle",
490
+ onClick: w
491
+ }, n(e.value.style.chart.layout.grandTotal.prefix) + " " + n(V.value.toFixed(e.value.style.chart.layout.grandTotal.roundingValue)) + " " + n(e.value.style.chart.layout.grandTotal.suffix), 9, Tt)
492
+ ])) : b("", !0),
493
+ (a(!0), o(p, null, _(R.value, (t) => (a(), o("g", null, [
494
+ (a(!0), o(p, null, _(r.value.branchSize, (u, f) => (a(), o("path", {
495
+ d: `M
496
+ ${t.x1},${t.y1 + f}
497
+ C${t.x1 - 20},${t.y1 + f}
498
+ ${t.x1 - 80},${t.y1 + f}
499
+ ${K(t).x + K(t).r / 2}, ${K(t).y}
500
+ `,
501
+ stroke: `${t.color}${y(F)[e.value.style.chart.layout.links.opacity]}`,
502
+ fill: "none",
503
+ "stroke-width": "2",
504
+ "shape-rendering": "cirspEdges",
505
+ style: h(`opacity:${S(t) ? 1 : 0}`),
506
+ onClick: w
507
+ }, null, 12, Ft))), 256))
508
+ ]))), 256)),
509
+ (a(!0), o(p, null, _(B.value, (t) => (a(), o("circle", {
510
+ cx: t.x,
511
+ cy: t.y,
512
+ r: t.r,
513
+ fill: e.value.style.chart.layout.roots.underlayerColor,
514
+ stroke: "none",
515
+ style: h(`cursor:pointer; opacity:${S(t) ? 1 : 0.05}`)
516
+ }, null, 12, Nt))), 256)),
517
+ (a(!0), o(p, null, _(B.value, (t, u) => (a(), o("circle", {
518
+ cx: t.x,
519
+ cy: t.y,
520
+ r: t.r,
521
+ fill: e.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${k.value}_${t.rootIndex})` : t.color,
522
+ stroke: e.value.style.chart.layout.roots.stroke,
523
+ "stroke-width": e.value.style.chart.layout.roots.strokeWidth,
524
+ style: h(`cursor:pointer; opacity:${S(t) ? 1 : 0.05}`),
525
+ onClick: (f) => ie(t)
526
+ }, null, 12, St))), 256)),
527
+ e.value.style.chart.layout.roots.labels.show ? (a(), o("g", It, [
528
+ (a(!0), o(p, null, _(B.value, (t, u) => (a(), o("text", {
529
+ x: t.x,
530
+ y: t.y + e.value.style.chart.layout.roots.labels.fontSize / 2.6,
531
+ "text-anchor": "middle",
532
+ "font-size": e.value.style.chart.layout.roots.labels.fontSize,
533
+ fill: e.value.style.chart.layout.roots.labels.adaptColorToBackground ? y(he)(t.color) : e.value.style.chart.layout.roots.labels.color,
534
+ "font-weight": "bold",
535
+ style: h(`cursor:pointer; opacity:${S(t) ? 1 : 0.05}`),
536
+ onClick: (f) => ie(t)
537
+ }, n(e.value.style.chart.layout.roots.labels.prefix) + " " + n(t.total.toFixed(e.value.style.chart.layout.roots.labels.roundingValue)) + " " + n(e.value.style.chart.layout.roots.labels.suffix), 13, Lt))), 256)),
538
+ (a(!0), o(p, null, _(B.value, (t) => (a(), o("g", null, [
539
+ d.value && t.rootIndex === d.value.rootIndex || x.value && t.rootIndex === x.value.rootIndex || N.value && t.rootIndex === N.value.rootIndex ? (a(), o("g", Pt, [
540
+ s("text", {
541
+ x: t.x,
542
+ y: t.y + t.r + 24,
543
+ "text-anchor": "middle",
544
+ fill: e.value.style.chart.layout.roots.labels.name.color,
545
+ "font-size": e.value.style.chart.layout.roots.labels.name.fontSize,
546
+ "font-weight": e.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
547
+ onClick: w
548
+ }, n(t.name), 9, Vt)
549
+ ])) : b("", !0)
550
+ ]))), 256))
551
+ ])) : b("", !0),
552
+ (a(!0), o(p, null, _(R.value, (t) => (a(), o("rect", {
553
+ x: t.x1,
554
+ y: t.y1,
555
+ height: r.value.branchSize,
556
+ width: t.x2 - t.x1,
557
+ fill: e.value.style.chart.layout.branches.underlayerColor,
558
+ rx: e.value.style.chart.layout.branches.borderRadius,
559
+ stroke: "none",
560
+ style: h(`opacity:${S(t) ? 1 : 0.05}`),
561
+ onClick: (u) => J(t)
562
+ }, null, 12, Rt))), 256)),
563
+ (a(!0), o(p, null, _(R.value, (t, u) => (a(), o("rect", {
564
+ x: t.x1,
565
+ y: t.y1,
566
+ height: r.value.branchSize,
567
+ width: t.x2 - t.x1,
568
+ fill: e.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${k.value}_${t.rootIndex})` : t.color,
569
+ rx: e.value.style.chart.layout.branches.borderRadius,
570
+ stroke: e.value.style.chart.layout.branches.stroke,
571
+ "stroke-width": e.value.style.chart.layout.branches.strokeWidth,
572
+ style: h(`cursor:pointer; opacity:${S(t) ? 1 : 0.05}`),
573
+ onClick: (f) => J(t)
574
+ }, null, 12, Bt))), 256)),
575
+ e.value.style.chart.layout.branches.labels.dataLabels.show ? (a(), o("g", Mt, [
576
+ (a(!0), o(p, null, _(R.value, (t) => (a(), o("g", null, [
577
+ t.proportionToRoot * 100 > e.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (a(), o("text", {
578
+ key: 0,
579
+ x: t.x1 + 6,
580
+ y: t.y1 + r.value.branchSize / 1.5,
581
+ "text-anchor": "start",
582
+ fill: y(he)(t.color),
583
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
584
+ "font-weight": "bold",
585
+ style: h(`cursor:pointer; opacity:${S(t) ? 1 : 0.05}`),
586
+ onClick: (u) => J(t)
587
+ }, n(e.value.style.chart.layout.branches.labels.dataLabels.prefix) + " " + n(t.value.toFixed(e.value.style.chart.layout.branches.labels.dataLabels.roundingValue)) + " " + n(e.value.style.chart.layout.branches.labels.dataLabels.suffix), 13, jt)) : b("", !0)
588
+ ]))), 256))
589
+ ])) : b("", !0),
590
+ (a(!0), o(p, null, _(R.value, (t, u) => (a(), o("g", null, [
591
+ (a(!0), o(p, null, _(y(fe)(
592
+ { series: t.breakdown, base: 1 },
593
+ t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
594
+ t.y1 + r.value.branchSize / 2,
595
+ r.value.branchSize / 3,
596
+ r.value.branchSize / 3
597
+ ), (f, v) => (a(), o("path", {
598
+ d: f.path,
599
+ stroke: f.color,
600
+ "stroke-width": 10,
601
+ fill: "none",
602
+ style: h(`opacity:${S(t) ? 1 : 0.1}`)
603
+ }, null, 12, Xt))), 256)),
604
+ (a(!0), o(p, null, _(R.value, (f) => (a(), o("circle", {
605
+ cx: f.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
606
+ cy: f.y1 + r.value.branchSize / 2,
607
+ r: 6,
608
+ fill: e.value.style.chart.backgroundColor,
609
+ onClick: (v) => re(f),
610
+ style: { cursor: "pointer" }
611
+ }, null, 8, Ot))), 256)),
612
+ s("circle", {
613
+ fill: e.value.style.chart.layout.nuts.useGradient ? `url(#nut_${k.value})` : "transparent",
614
+ cx: t.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
615
+ cy: t.y1 + r.value.branchSize / 2,
616
+ r: r.value.branchSize / 2 + 2,
617
+ onClick: (f) => re(t),
618
+ style: h(`cursor:pointer;opacity:${S(t) ? 1 : 0.1}`)
619
+ }, null, 12, Gt)
620
+ ]))), 256)),
621
+ e.value.style.chart.layout.branches.labels.show && !x.value ? (a(), o("g", Et, [
622
+ (a(!0), o(p, null, _(R.value, (t) => (a(), o("text", {
623
+ x: t.x2 + r.value.branchSize + 24 + e.value.style.chart.layout.nuts.offsetX,
624
+ y: t.y1 + r.value.branchSize / 2 + 5,
625
+ "font-size": e.value.style.chart.layout.branches.labels.fontSize,
626
+ "font-weight": e.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
627
+ fill: e.value.style.chart.layout.branches.labels.color,
628
+ "text-anchor": "start",
629
+ style: h(`opacity:${S(t) ? 1 : 0.1}`)
630
+ }, n(t.name), 13, At))), 256))
631
+ ])) : b("", !0),
632
+ s("line", {
633
+ x1: 256 + r.value.padding.left,
634
+ x2: 256 + r.value.padding.left,
635
+ y1: C.value.top,
636
+ y2: C.value.bottom,
637
+ stroke: e.value.style.chart.layout.verticalSeparator.stroke,
638
+ "stroke-width": e.value.style.chart.layout.verticalSeparator.strokeWidth
639
+ }, null, 8, Ut),
640
+ !d.value && !x.value ? (a(), o("foreignObject", {
641
+ key: 5,
642
+ x: 0,
643
+ y: C.value.bottom,
644
+ height: r.value.height - C.value.bottom,
645
+ width: r.value.width,
646
+ style: { overflow: "visible" },
647
+ onClick: w
648
+ }, [
649
+ s("div", Yt, [
650
+ s("div", qt, [
651
+ (a(!0), o(p, null, _(B.value, (t) => (a(), o("div", {
652
+ style: h(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
653
+ }, [
654
+ (a(), o("svg", Ht, [
655
+ s("circle", {
656
+ cx: "10",
657
+ cy: "10",
658
+ r: "10",
659
+ fill: t.color,
660
+ stroke: "none"
661
+ }, null, 8, Wt)
662
+ ])),
663
+ s("span", null, n(t.name) + ":", 1),
664
+ Y(),
665
+ s("b", null, n(e.value.style.chart.layout.legend.prefix) + " " + n(t.total.toFixed(e.value.style.chart.layout.legend.roundingValue)) + " " + n(e.value.style.chart.layout.legend.suffix), 1),
666
+ Y("(" + n((t.total / V.value * 100).toFixed(e.value.style.chart.layout.legend.roundingPercentage)) + "%) ", 1)
667
+ ], 4))), 256))
668
+ ])
669
+ ])
670
+ ], 8, Dt)) : b("", !0),
671
+ d.value && M.value ? (a(), o("g", Kt, [
672
+ (a(), o("foreignObject", {
673
+ x: 0,
674
+ y: Se(),
675
+ height: r.value.height - C.value.bottom,
676
+ width: r.value.width,
677
+ style: { overflow: "visible" },
678
+ onClick: w
679
+ }, [
680
+ s("div", Qt, [
681
+ s("b", null, n(d.value.name), 1),
682
+ s("div", Zt, [
683
+ (a(!0), o(p, null, _(d.value.breakdown, (t, u) => (a(), o("div", {
684
+ style: h(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${e.value.style.chart.layout.legend.fontSize}px;`)
685
+ }, [
686
+ (a(), o("svg", el, [
687
+ s("circle", {
688
+ cx: "10",
689
+ cy: "10",
690
+ r: "10",
691
+ fill: t.color,
692
+ stroke: "none"
693
+ }, null, 8, tl)
694
+ ])),
695
+ s("span", null, [
696
+ Y(n(t.name) + ": ", 1),
697
+ s("b", null, n(e.value.style.chart.layout.legend.prefix) + " " + n(t.value.toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + n(e.value.style.chart.layout.legend.suffix), 1),
698
+ Y(" (" + n((t.proportionToBranch * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
699
+ ])
700
+ ], 4))), 256))
701
+ ])
702
+ ])
703
+ ], 8, Jt)),
704
+ (a(!0), o(p, null, _(M.value, (t) => (a(), o("g", null, [
705
+ G(t) ? (a(), o("path", {
706
+ key: 0,
707
+ d: y(qe)(t),
708
+ stroke: t.color,
709
+ "stroke-width": "1",
710
+ "stroke-linecap": "round",
711
+ "stroke-linejoin": "round",
712
+ fill: "none",
713
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
714
+ }, null, 10, ll)) : b("", !0)
715
+ ]))), 256)),
716
+ s("circle", {
717
+ cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
718
+ cy: d.value.y1 + r.value.branchSize / 2,
719
+ r: 256,
720
+ fill: `url(#nut_underlayer_${k.value})`,
721
+ onClick: j,
722
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
723
+ }, null, 10, al),
724
+ s("circle", {
725
+ cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
726
+ cy: d.value.y1 + r.value.branchSize / 2,
727
+ r: 118,
728
+ fill: e.value.style.chart.backgroundColor,
729
+ onClick: j,
730
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
731
+ }, null, 10, ol),
732
+ (a(!0), o(p, null, _(M.value, (t) => (a(), o("path", {
733
+ d: t.path,
734
+ stroke: t.color,
735
+ "stroke-width": 64,
736
+ fill: "none",
737
+ onClick: j,
738
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
739
+ }, null, 10, sl))), 256)),
740
+ s("circle", {
741
+ cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
742
+ cy: d.value.y1 + r.value.branchSize / 2,
743
+ r: 100,
744
+ fill: `url(#nutpick_${k.value})`,
745
+ onClick: j,
746
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
747
+ }, null, 10, ul),
748
+ s("circle", {
749
+ cx: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
750
+ cy: d.value.y1 + r.value.branchSize / 2,
751
+ r: 48,
752
+ fill: e.value.style.chart.backgroundColor,
753
+ onClick: j,
754
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
755
+ }, null, 10, nl),
756
+ s("text", {
757
+ x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
758
+ y: d.value.y1 + 8,
759
+ fill: e.value.style.chart.layout.nuts.selected.labels.core.total.color,
760
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
761
+ "font-weight": e.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
762
+ "text-anchor": "middle",
763
+ onClick: j,
764
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
765
+ }, n(e.value.translations.total), 11, rl),
766
+ s("text", {
767
+ x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
768
+ y: d.value.y1 + 36,
769
+ fill: e.value.style.chart.layout.nuts.selected.labels.core.value.color,
770
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
771
+ "font-weight": e.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
772
+ "text-anchor": "middle",
773
+ onClick: j,
774
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
775
+ }, n(e.value.style.chart.layout.nuts.selected.labels.core.value.prefix) + " " + n(d.value.value.toFixed(e.value.style.chart.layout.nuts.selected.roundingValue)) + " " + n(e.value.style.chart.layout.nuts.selected.labels.core.value.suffix), 11, il),
776
+ (a(!0), o(p, null, _(M.value, (t, u) => (a(), o("g", null, [
777
+ G(t) ? (a(), o("text", {
778
+ key: 0,
779
+ x: y(L)(t).x,
780
+ "text-anchor": y(L)(t).anchor,
781
+ y: y(q)(t),
782
+ fill: t.color,
783
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
784
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
785
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
786
+ }, " ⬤ ", 14, cl)) : b("", !0),
787
+ G(t) ? (a(), o("text", {
788
+ key: 1,
789
+ x: y(L)(t, !0).x,
790
+ "text-anchor": y(L)(t, !0).anchor,
791
+ y: y(q)(t),
792
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
793
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
794
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
795
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
796
+ }, n(d.value.breakdown[u].name), 15, dl)) : b("", !0)
797
+ ]))), 256)),
798
+ (a(!0), o(p, null, _(M.value, (t, u) => (a(), o("g", null, [
799
+ G(t) ? (a(), o("text", {
800
+ key: 0,
801
+ x: y(L)(t, !0).x,
802
+ "text-anchor": y(L)(t).anchor,
803
+ y: y(q)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
804
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
805
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
806
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
807
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
808
+ }, n((d.value.breakdown[u].value / d.value.value * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "% " + n(e.value.translations.of) + " " + n(d.value.breakdown[u].branchName) + " (" + n(e.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix) + " " + n(d.value.breakdown[u].value) + " " + n(e.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix) + ") ", 15, vl)) : b("", !0),
809
+ G(t) ? (a(), o("text", {
810
+ key: 1,
811
+ x: y(L)(t, !0).x,
812
+ "text-anchor": y(L)(t).anchor,
813
+ y: y(q)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
814
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
815
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
816
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
817
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
818
+ }, n((d.value.breakdown[u].proportionToRoot * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "% " + n(e.value.translations.of) + " " + n(d.value.breakdown[u].rootName), 15, yl)) : b("", !0),
819
+ G(t) ? (a(), o("text", {
820
+ key: 2,
821
+ x: y(L)(t, !0).x,
822
+ "text-anchor": y(L)(t).anchor,
823
+ y: y(q)(t) + e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
824
+ fill: e.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
825
+ "font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
826
+ style: h(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
827
+ class: m(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
828
+ }, n((d.value.breakdown[u].proportionToTree * 100).toFixed(e.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "% " + n(e.value.translations.proportionToTree), 15, hl)) : b("", !0)
829
+ ]))), 256))
830
+ ])) : b("", !0),
831
+ (a(!0), o(p, null, _(R.value, (t) => (a(), o("g", null, [
832
+ x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
833
+ key: 0,
834
+ x: t.x1 + 6,
835
+ y: t.y1 + r.value.branchSize + 24,
836
+ "font-weight": "bold",
837
+ "text-anchor": "start",
838
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
839
+ fill: e.value.style.chart.layout.branches.labels.color,
840
+ onClick: w
841
+ }, n(t.name) + ": " + n(e.value.style.chart.layout.branches.labels.dataLabels.prefix) + " " + n(t.value.toFixed(e.value.style.chart.layout.branches.labels.dataLabels.roundingValue)) + " " + n(e.value.style.chart.layout.branches.labels.dataLabels.suffix), 9, fl)) : b("", !0),
842
+ x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
843
+ key: 1,
844
+ x: t.x1 + 6,
845
+ y: t.y1 + r.value.branchSize + 48,
846
+ "text-anchor": "start",
847
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
848
+ fill: e.value.style.chart.layout.branches.labels.color,
849
+ onClick: w
850
+ }, n((t.proportionToRoot * 100).toFixed(e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage)) + "% " + n(e.value.translations.of) + " " + n(t.rootName), 9, bl)) : b("", !0),
851
+ x.value && x.value.id === t.id && !d.value ? (a(), o("text", {
852
+ key: 2,
853
+ x: t.x1 + 6,
854
+ y: t.y1 + r.value.branchSize + 72,
855
+ "text-anchor": "start",
856
+ "font-size": e.value.style.chart.layout.branches.labels.dataLabels.fontSize,
857
+ fill: e.value.style.chart.layout.branches.labels.color,
858
+ onClick: w
859
+ }, n((t.value / V.value * 100).toFixed(e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage)) + "% " + n(e.value.translations.proportionToTree), 9, pl)) : b("", !0)
860
+ ]))), 256)),
861
+ X(l.$slots, "svg", { svg: r.value }, void 0, !0)
862
+ ], 14, at)) : b("", !0),
863
+ A.value ? b("", !0) : (a(), Q(Qe, {
864
+ key: 2,
865
+ config: {
866
+ type: "chestnut",
867
+ style: {
868
+ backgroundColor: e.value.style.chart.backgroundColor,
869
+ chestnut: {
870
+ color: "#CCCCCC"
871
+ }
872
+ }
873
+ }
874
+ }, null, 8, ["config"])),
875
+ X(l.$slots, "legend", { legend: T.value }, void 0, !0),
876
+ A.value ? (a(), Q(et, {
877
+ key: 3,
878
+ hideDetails: "",
879
+ config: {
880
+ open: U.value.showTable,
881
+ maxHeight: 1e4,
882
+ body: {
883
+ backgroundColor: e.value.style.chart.backgroundColor,
884
+ color: e.value.style.chart.color
885
+ },
886
+ head: {
887
+ backgroundColor: e.value.style.chart.backgroundColor,
888
+ color: e.value.style.chart.color
889
+ }
890
+ }
891
+ }, {
892
+ content: E(() => [
893
+ s("div", {
894
+ ref_key: "tableContainer",
895
+ ref: se,
896
+ class: "vue-ui-chestnut-table"
897
+ }, [
898
+ s("div", _l, [
899
+ s("div", {
900
+ role: "button",
901
+ tabindex: "0",
902
+ 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:pointer; background:${e.value.table.th.backgroundColor};`),
903
+ onClick: i[0] || (i[0] = (t) => U.value.showTable = !1),
904
+ onKeypress: i[1] || (i[1] = je((t) => U.value.showTable = !1, ["enter"]))
905
+ }, [
906
+ Xe(Ze, {
907
+ name: "close",
908
+ stroke: e.value.table.th.color,
909
+ "stroke-width": 2
910
+ }, null, 8, ["stroke"])
911
+ ], 36),
912
+ s("div", {
913
+ style: { width: "100%" },
914
+ class: m({ "vue-ui-responsive": ue.value })
915
+ }, [
916
+ s("table", gl, [
917
+ s("caption", {
918
+ style: h({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
919
+ class: "vue-ui-data-table__caption"
920
+ }, [
921
+ Y(n(e.value.style.chart.layout.title.text) + " ", 1),
922
+ e.value.style.chart.layout.title.subtitle.text ? (a(), o("span", xl, n(e.value.style.chart.layout.title.subtitle.text), 1)) : b("", !0)
923
+ ], 4),
924
+ s("thead", null, [
925
+ s("tr", {
926
+ role: "row",
927
+ style: h(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
928
+ }, [
929
+ (a(!0), o(p, null, _(c.value.head, (t) => (a(), o("th", {
930
+ style: h(`outline:${e.value.table.th.outline}`)
931
+ }, n(t), 5))), 256))
932
+ ], 4)
933
+ ]),
934
+ s("tbody", null, [
935
+ (a(!0), o(p, null, _(c.value.body, (t, u) => (a(), o("tr", {
936
+ class: m({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": u % 2 === 0, "vue-ui-data-table__tbody__row-odd": u % 2 !== 0 }),
937
+ style: h(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
938
+ }, [
939
+ s("td", {
940
+ class: "vue-ui-data-table__tbody__td",
941
+ style: h(`outline:${e.value.table.td.outline}`),
942
+ "data-cell": c.value.head[0]
943
+ }, [
944
+ s("div", kl, [
945
+ c.value.body[u - 1] && c.value.body[u - 1].rootName === t.rootName ? (a(), o("span", wl)) : (a(), o("span", $l, n(t.rootName), 1))
946
+ ])
947
+ ], 12, ml),
948
+ s("td", {
949
+ class: "vue-ui-data-table__tbody__td",
950
+ style: h(`outline:${e.value.table.td.outline}`),
951
+ "data-cell": c.value.head[1]
952
+ }, [
953
+ s("div", zl, [
954
+ c.value.body[u - 1] && c.value.body[u - 1].rootName === t.rootName ? (a(), o("span", Tl)) : (a(), o("span", Fl, n(t.rootValue.toFixed(e.value.table.td.roundingValue)), 1))
955
+ ])
956
+ ], 12, Cl),
957
+ s("td", {
958
+ class: "vue-ui-data-table__tbody__td",
959
+ style: h(`outline:${e.value.table.td.outline}`),
960
+ "data-cell": c.value.head[2]
961
+ }, [
962
+ s("div", Sl, [
963
+ c.value.body[u - 1] && c.value.body[u - 1].rootName === t.rootName ? (a(), o("span", Il)) : (a(), o("span", Ll, n((t.rootToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
964
+ ])
965
+ ], 12, Nl),
966
+ s("td", {
967
+ class: "vue-ui-data-table__tbody__td",
968
+ style: h(`outline:${e.value.table.td.outline}`),
969
+ "data-cell": c.value.head[3]
970
+ }, [
971
+ s("div", Vl, [
972
+ c.value.body[u - 1] && c.value.body[u - 1].branchName === t.branchName ? (a(), o("span", Rl)) : (a(), o("span", Bl, n(t.branchName), 1))
973
+ ])
974
+ ], 12, Pl),
975
+ s("td", {
976
+ class: "vue-ui-data-table__tbody__td",
977
+ style: h(`outline:${e.value.table.td.outline}`),
978
+ "data-cell": c.value.head[4]
979
+ }, [
980
+ s("div", jl, [
981
+ c.value.body[u - 1] && c.value.body[u - 1].branchName === t.branchName ? (a(), o("span", Xl)) : (a(), o("span", Ol, n(t.branchValue.toFixed(e.value.table.td.roundingValue)), 1))
982
+ ])
983
+ ], 12, Ml),
984
+ s("td", {
985
+ class: "vue-ui-data-table__tbody__td",
986
+ style: h(`outline:${e.value.table.td.outline}`),
987
+ "data-cell": c.value.head[5]
988
+ }, [
989
+ s("div", El, [
990
+ c.value.body[u - 1] && c.value.body[u - 1].branchName === t.branchName ? (a(), o("span", Al)) : (a(), o("span", Ul, n((t.branchToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
991
+ ])
992
+ ], 12, Gl),
993
+ s("td", {
994
+ class: "vue-ui-data-table__tbody__td",
995
+ style: h(`outline:${e.value.table.td.outline}`),
996
+ "data-cell": c.value.head[6]
997
+ }, [
998
+ s("div", Yl, [
999
+ c.value.body[u - 1] && c.value.body[u - 1].branchName === t.branchName ? (a(), o("span", ql)) : (a(), o("span", Hl, n((t.branchToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1))
1000
+ ])
1001
+ ], 12, Dl),
1002
+ s("td", {
1003
+ class: "vue-ui-data-table__tbody__td",
1004
+ style: h(`outline:${e.value.table.td.outline}`),
1005
+ "data-cell": c.value.head[7]
1006
+ }, [
1007
+ s("div", Kl, n(t.nutName), 1)
1008
+ ], 12, Wl),
1009
+ s("td", {
1010
+ class: "vue-ui-data-table__tbody__td",
1011
+ style: h(`outline:${e.value.table.td.outline}`),
1012
+ "data-cell": c.value.head[8]
1013
+ }, [
1014
+ s("div", Ql, n(t.nutValue.toFixed(e.value.table.td.roundingValue)), 1)
1015
+ ], 12, Jl),
1016
+ s("td", {
1017
+ class: "vue-ui-data-table__tbody__td",
1018
+ style: h(`outline:${e.value.table.td.outline}`),
1019
+ "data-cell": c.value.head[9]
1020
+ }, [
1021
+ s("div", ea, n((t.nutToBranch * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
1022
+ ], 12, Zl),
1023
+ s("td", {
1024
+ class: "vue-ui-data-table__tbody__td",
1025
+ style: h(`outline:${e.value.table.td.outline}`),
1026
+ "data-cell": c.value.head[10]
1027
+ }, [
1028
+ s("div", la, n((t.nutToRoot * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
1029
+ ], 12, ta),
1030
+ s("td", {
1031
+ class: "vue-ui-data-table__tbody__td",
1032
+ style: h(`outline:${e.value.table.td.outline}`),
1033
+ "data-cell": c.value.head[11]
1034
+ }, [
1035
+ s("div", oa, n((t.nutToTotal * 100).toFixed(e.value.table.td.roundingPercentage)) + "% ", 1)
1036
+ ], 12, aa)
1037
+ ], 6))), 256))
1038
+ ])
1039
+ ])
1040
+ ], 2)
1041
+ ])
1042
+ ], 512)
1043
+ ]),
1044
+ _: 1
1045
+ }, 8, ["config"])) : b("", !0)
1046
+ ], 14, lt));
1047
+ }
1048
+ }, fa = /* @__PURE__ */ tt(sa, [["__scopeId", "data-v-bf0d15ab"]]);
1049
+ export {
1050
+ fa as default
1051
+ };