vue-data-ui 3.20.1 → 3.20.2

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