vue-data-ui 2.6.40 → 2.6.42

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 (200) hide show
  1. package/dist/{Arrow-DczKng-K.cjs → Arrow-C6-3JiKs.cjs} +1 -1
  2. package/dist/{Arrow-CKYmYJHq.js → Arrow-i50QW7Eq.js} +1 -1
  3. package/dist/{BaseIcon-rw8rKNKS.js → BaseIcon-BYl8WVrn.js} +1 -1
  4. package/dist/{BaseIcon-Db1HIrAt.cjs → BaseIcon-CGjwy6WD.cjs} +1 -1
  5. package/dist/{ColorPicker-oA_W-jVk.cjs → ColorPicker-Cpi--TbY.cjs} +1 -1
  6. package/dist/{ColorPicker-DyZK3Mhl.js → ColorPicker-rv2BDrXO.js} +3 -3
  7. package/dist/{DataTable-DvwmNjb-.js → DataTable-B_PZ5EQ5.js} +2 -2
  8. package/dist/{DataTable-Be-eTBzq.cjs → DataTable-Dp7g_Ei4.cjs} +1 -1
  9. package/dist/{Legend-Be8mrJpb.js → Legend-BB51QBPV.js} +2 -2
  10. package/dist/{Legend-j3YoAtEf.cjs → Legend-BB6S3gBp.cjs} +1 -1
  11. package/dist/{PackageVersion-D9Lm1C1X.js → PackageVersion-Cz-oD7U6.js} +1 -1
  12. package/dist/{PackageVersion-D_gJvbGU.cjs → PackageVersion-Dj3KQ8Ax.cjs} +1 -1
  13. package/dist/{PenAndPaper-DR58HO_U.js → PenAndPaper-DOTH2X_u.js} +3 -3
  14. package/dist/{PenAndPaper-DWG9pfri.cjs → PenAndPaper-OCjAJH70.cjs} +1 -1
  15. package/dist/{Shape-BuwIrUMv.js → Shape-CGBgd_EH.js} +1 -1
  16. package/dist/{Shape-BF6K6die.cjs → Shape-DCTTj5cs.cjs} +1 -1
  17. package/dist/{Slicer-bY7XVDi5.cjs → Slicer-BHKFOTCG.cjs} +1 -1
  18. package/dist/{Slicer-CUm2ijlc.js → Slicer-Dhto2Wym.js} +2 -2
  19. package/dist/{Title-BP4K_GLE.cjs → Title-BkwZ_rBI.cjs} +1 -1
  20. package/dist/{Title-D_MGglyN.js → Title-y0r2c8bY.js} +1 -1
  21. package/dist/{Tooltip-HRgkF8HD.js → Tooltip-CbWEnMUw.js} +1 -1
  22. package/dist/{Tooltip-KXn1rQhr.cjs → Tooltip-DhhX9jKQ.cjs} +1 -1
  23. package/dist/{html2canvas.esm-D53btDlk.cjs → html2canvas.esm-BA_v9SIU.cjs} +2 -2
  24. package/dist/{html2canvas.esm-Dr4iCOK6.js → html2canvas.esm-DgdJBc_o.js} +196 -196
  25. package/dist/img-BIeSHu0f.js +15 -0
  26. package/dist/img-D6uvziU0.cjs +1 -0
  27. package/dist/index-Crz6y51C.cjs +9 -0
  28. package/dist/{index-BaaDnc4F.js → index-DWsIpwzs.js} +426 -384
  29. package/dist/{index.es-RWt7DWPC.js → index.es-BloWY6jv.js} +1285 -1285
  30. package/dist/{index.es-DvaaoatM.cjs → index.es-HygMioe_.cjs} +6 -6
  31. package/dist/{jspdf.es.min-Rw70uifz.cjs → jspdf.es.min-C518mmma.cjs} +57 -57
  32. package/dist/{jspdf.es.min-eTA26cmm.js → jspdf.es.min-t_OLULUR.js} +3038 -3038
  33. package/dist/pdf-BpXLKlRx.cjs +1 -0
  34. package/dist/{pdf-DVWl3Adn.js → pdf-H8Iw_Wax.js} +6 -6
  35. package/dist/style.css +1 -1
  36. package/dist/types/vue-data-ui.d.cts +16 -0
  37. package/dist/types/vue-data-ui.d.ts +16 -0
  38. package/dist/{useNestedProp-0jJvFRhK.cjs → useNestedProp-B8CE091o.cjs} +1 -1
  39. package/dist/{useNestedProp-D8vQcOps.js → useNestedProp-Bole8bsm.js} +1 -1
  40. package/dist/{usePrinter-y4-4tCWT.js → usePrinter-B8LELMkA.js} +125 -122
  41. package/dist/{usePrinter-C1Rlqzcj.cjs → usePrinter-Cqxw0sR7.cjs} +1 -1
  42. package/dist/{vue-data-ui-XwZHx4pB.js → vue-data-ui-BHNNKB7k.js} +61 -61
  43. package/dist/{vue-data-ui-CF4CU0e2.cjs → vue-data-ui-Dizs9qYs.cjs} +1 -1
  44. package/dist/vue-data-ui.cjs +1 -1
  45. package/dist/vue-data-ui.js +8 -8
  46. package/dist/{vue-ui-3d-bar-BOMvMoht.cjs → vue-ui-3d-bar-D-jstByg.cjs} +8 -8
  47. package/dist/{vue-ui-3d-bar-BYV4-yM3.js → vue-ui-3d-bar-D1DTuPTJ.js} +55 -54
  48. package/dist/{vue-ui-accordion-C5C3XQ8f.cjs → vue-ui-accordion-10T9IdE-.cjs} +1 -1
  49. package/dist/{vue-ui-accordion-CF9kQTXq.js → vue-ui-accordion-WrimcQK1.js} +3 -3
  50. package/dist/vue-ui-age-pyramid-0uO95dEL.cjs +1 -0
  51. package/dist/{vue-ui-age-pyramid-8KtaPkny.js → vue-ui-age-pyramid-vSOQxYMZ.js} +13 -12
  52. package/dist/{vue-ui-annotator-Dq1h3MZY.cjs → vue-ui-annotator-CzqmXArP.cjs} +1 -1
  53. package/dist/{vue-ui-annotator-KiLEzFIU.js → vue-ui-annotator-DuX2lvw8.js} +3 -3
  54. package/dist/vue-ui-bullet-hJsuFbdK.cjs +34 -0
  55. package/dist/{vue-ui-bullet-DBEuIuyH.js → vue-ui-bullet-ni1A0wmE.js} +11 -10
  56. package/dist/{vue-ui-candlestick-C13zgiOI.js → vue-ui-candlestick-CtFOtkuX.js} +14 -13
  57. package/dist/{vue-ui-candlestick-VazI0lag.cjs → vue-ui-candlestick-JSYKg3QU.cjs} +2 -2
  58. package/dist/vue-ui-carousel-table-BJsBlOAu.cjs +1 -0
  59. package/dist/{vue-ui-carousel-table-CoA9OyeC.js → vue-ui-carousel-table-Bc8SG-3_.js} +7 -6
  60. package/dist/{vue-ui-chestnut-V0eah1wF.cjs → vue-ui-chestnut-EPeVQvs_.cjs} +2 -2
  61. package/dist/{vue-ui-chestnut-kAdb7Jpi.js → vue-ui-chestnut-VR_UxBpO.js} +37 -36
  62. package/dist/{vue-ui-circle-pack-B0CreTV1.js → vue-ui-circle-pack-ECXVp4H4.js} +14 -13
  63. package/dist/vue-ui-circle-pack-NstojV4G.cjs +1 -0
  64. package/dist/{vue-ui-cursor-sHfZ-rR3.js → vue-ui-cursor-DRP_eOrg.js} +2 -2
  65. package/dist/{vue-ui-cursor-oLpASwAy.cjs → vue-ui-cursor-IZ28NWCv.cjs} +1 -1
  66. package/dist/{vue-ui-dashboard-CB7KJEOi.cjs → vue-ui-dashboard-BVoasjGP.cjs} +1 -1
  67. package/dist/{vue-ui-dashboard-D2ZQBDuk.js → vue-ui-dashboard-Bg4eu3bx.js} +3 -3
  68. package/dist/{vue-ui-digits-CiV3V0ry.js → vue-ui-digits-B2qzXXO6.js} +2 -2
  69. package/dist/{vue-ui-digits-e7EBKTDv.cjs → vue-ui-digits-BKR62-KQ.cjs} +1 -1
  70. package/dist/{vue-ui-donut-CrjqZ1ji.js → vue-ui-donut-BWbLJHC5.js} +15 -14
  71. package/dist/vue-ui-donut-Bnc5n4vE.cjs +1 -0
  72. package/dist/{vue-ui-donut-evolution-D_F3H8Oa.js → vue-ui-donut-evolution-Cpmdg9Na.js} +45 -44
  73. package/dist/vue-ui-donut-evolution-DyQPblkZ.cjs +1 -0
  74. package/dist/vue-ui-dumbbell-BjGLUyTB.cjs +9 -0
  75. package/dist/{vue-ui-dumbbell-POvEBmaZ.js → vue-ui-dumbbell-kOEJnUNy.js} +43 -42
  76. package/dist/vue-ui-flow-BxqHFumu.cjs +1 -0
  77. package/dist/{vue-ui-flow-BIfoibps.js → vue-ui-flow-DVvxwHKl.js} +53 -52
  78. package/dist/vue-ui-funnel-CPGQJsTE.cjs +1 -0
  79. package/dist/{vue-ui-funnel-DfF9uQGX.js → vue-ui-funnel-Dh9Zio3k.js} +13 -12
  80. package/dist/{vue-ui-galaxy-D6sV6X5K.js → vue-ui-galaxy-DBrUSx1b.js} +31 -30
  81. package/dist/vue-ui-galaxy-S4L3B76T.cjs +1 -0
  82. package/dist/vue-ui-gauge-Cs-ypQfN.cjs +1 -0
  83. package/dist/{vue-ui-gauge-CvbPkLM2.js → vue-ui-gauge-tZvlIU-S.js} +36 -35
  84. package/dist/{vue-ui-gizmo-DMsTB4ES.cjs → vue-ui-gizmo-CCSsG2_b.cjs} +1 -1
  85. package/dist/{vue-ui-gizmo-DUi7lRRe.js → vue-ui-gizmo-Dci5soUk.js} +3 -3
  86. package/dist/vue-ui-heatmap-DJ7wdUPo.cjs +1 -0
  87. package/dist/{vue-ui-heatmap-Dg8XejgT.js → vue-ui-heatmap-DOcrZCVa.js} +73 -72
  88. package/dist/vue-ui-history-plot-Cdbru79N.cjs +1 -0
  89. package/dist/{vue-ui-history-plot-BSd5bL15.js → vue-ui-history-plot-qtdp25Sg.js} +33 -32
  90. package/dist/{vue-ui-kpi-BAMbt0nE.js → vue-ui-kpi-DTXy_HfT.js} +3 -3
  91. package/dist/{vue-ui-kpi-m4GUxnZu.cjs → vue-ui-kpi-vLsne_Vi.cjs} +1 -1
  92. package/dist/{vue-ui-mini-loader-DiBQaEPy.js → vue-ui-mini-loader-B1MEbk8x.js} +2 -2
  93. package/dist/{vue-ui-mini-loader-BqVkQxqo.cjs → vue-ui-mini-loader-CuWWrNo9.cjs} +1 -1
  94. package/dist/vue-ui-molecule-BwO_9sCz.js +830 -0
  95. package/dist/vue-ui-molecule-huq_1VnO.cjs +1 -0
  96. package/dist/vue-ui-mood-radar-B4k3k2q7.cjs +1 -0
  97. package/dist/{vue-ui-mood-radar-INGk_0vz.js → vue-ui-mood-radar-CLiiGRyR.js} +14 -13
  98. package/dist/{vue-ui-nested-donuts-BABAXqTX.js → vue-ui-nested-donuts-CxAFaOns.js} +14 -13
  99. package/dist/{vue-ui-nested-donuts-COy2x2EF.cjs → vue-ui-nested-donuts-t_TWJrWV.cjs} +2 -2
  100. package/dist/{vue-ui-onion-B1NZLFqG.cjs → vue-ui-onion-DIQLewG_.cjs} +2 -2
  101. package/dist/{vue-ui-onion-CJkmj1Nh.js → vue-ui-onion-gweww1Nd.js} +14 -13
  102. package/dist/{vue-ui-parallel-coordinate-plot-CtpGIUKU.cjs → vue-ui-parallel-coordinate-plot-B48BZpEc.cjs} +2 -2
  103. package/dist/{vue-ui-parallel-coordinate-plot-DTUIv9ah.js → vue-ui-parallel-coordinate-plot-Dos2dhCW.js} +35 -34
  104. package/dist/vue-ui-quadrant-BYDJYypD.cjs +1 -0
  105. package/dist/{vue-ui-quadrant-CxNnHjD9.js → vue-ui-quadrant-fXKeOjn-.js} +43 -42
  106. package/dist/{vue-ui-quick-chart-BaHq9DyU.cjs → vue-ui-quick-chart-BVVVrJyc.cjs} +2 -2
  107. package/dist/{vue-ui-quick-chart-CJnwyWdJ.js → vue-ui-quick-chart-BojZdQHp.js} +12 -11
  108. package/dist/vue-ui-radar-C5mA8lGM.cjs +1 -0
  109. package/dist/{vue-ui-radar-CsvmcspN.js → vue-ui-radar-D4mB15zr.js} +15 -14
  110. package/dist/{vue-ui-rating-D7kDYc6s.js → vue-ui-rating-BG_CF73W.js} +10 -10
  111. package/dist/{vue-ui-rating-C-ef3ayK.cjs → vue-ui-rating-P9KkC2lE.cjs} +1 -1
  112. package/dist/vue-ui-relation-circle-CfNGeO3G.cjs +1 -0
  113. package/dist/{vue-ui-relation-circle-CY8ZIPpL.js → vue-ui-relation-circle-xYqp0Vj9.js} +13 -12
  114. package/dist/{vue-ui-rings-DEuJ9t0h.cjs → vue-ui-rings-Ba7xV0bh.cjs} +2 -2
  115. package/dist/{vue-ui-rings-Cxf9NoYT.js → vue-ui-rings-CTw5Guq9.js} +15 -14
  116. package/dist/{vue-ui-scatter-CiO-B7Jh.js → vue-ui-scatter-CMhOzUfw.js} +45 -44
  117. package/dist/vue-ui-scatter-UeHQSMn_.cjs +1 -0
  118. package/dist/{vue-ui-screenshot-BMuBV3BB.js → vue-ui-screenshot-DkB1LMw4.js} +2 -2
  119. package/dist/{vue-ui-screenshot--OYVY1cw.cjs → vue-ui-screenshot-Dqiqn0Tt.cjs} +1 -1
  120. package/dist/{vue-ui-skeleton-CM4wEsYA.cjs → vue-ui-skeleton-BZsFiqo5.cjs} +1 -1
  121. package/dist/{vue-ui-skeleton-6RiQNJSb.js → vue-ui-skeleton-DDZb9FFJ.js} +57 -57
  122. package/dist/{vue-ui-smiley-CUDVroKW.js → vue-ui-smiley-BgS5Przf.js} +2 -2
  123. package/dist/{vue-ui-smiley-DMzfsrun.cjs → vue-ui-smiley-CUmfLZx6.cjs} +1 -1
  124. package/dist/{vue-ui-spark-trend-fnRrg8Jj.js → vue-ui-spark-trend-NRIFklnc.js} +5 -5
  125. package/dist/{vue-ui-spark-trend-CTI98gTQ.cjs → vue-ui-spark-trend-w10yXsJZ.cjs} +1 -1
  126. package/dist/{vue-ui-sparkbar-HhcSqSxf.cjs → vue-ui-sparkbar-aigBoTy2.cjs} +1 -1
  127. package/dist/{vue-ui-sparkbar-msGI6wfO.js → vue-ui-sparkbar-ejr7X72c.js} +4 -4
  128. package/dist/{vue-ui-sparkgauge-C3obUsLf.js → vue-ui-sparkgauge-BOf5aBj9.js} +4 -4
  129. package/dist/{vue-ui-sparkgauge-DRpIVDwy.cjs → vue-ui-sparkgauge-CkefH_Q3.cjs} +1 -1
  130. package/dist/{vue-ui-sparkhistogram-DOVSl-l-.js → vue-ui-sparkhistogram-C64SJzGD.js} +5 -5
  131. package/dist/{vue-ui-sparkhistogram-OtRll6_F.cjs → vue-ui-sparkhistogram-Dtn7OLFq.cjs} +1 -1
  132. package/dist/{vue-ui-sparkline-Dyd6TPTP.cjs → vue-ui-sparkline-BKGLvlLw.cjs} +1 -1
  133. package/dist/{vue-ui-sparkline-DkX9L35W.js → vue-ui-sparkline-POZCJkr9.js} +15 -15
  134. package/dist/{vue-ui-sparkstackbar-Cfn7LKpJ.cjs → vue-ui-sparkstackbar-BxeVbtHZ.cjs} +1 -1
  135. package/dist/{vue-ui-sparkstackbar-Cq7MW3Jk.js → vue-ui-sparkstackbar-C7v5flng.js} +5 -5
  136. package/dist/{vue-ui-stackbar-BNy2XBmJ.js → vue-ui-stackbar-DUvKoTiT.js} +16 -15
  137. package/dist/{vue-ui-stackbar-DDbZ-_sO.cjs → vue-ui-stackbar-OS-G2tRA.cjs} +2 -2
  138. package/dist/{vue-ui-strip-plot-Cq9CqXxr.js → vue-ui-strip-plot-DvQPyqtk.js} +14 -13
  139. package/dist/vue-ui-strip-plot-IcTvmihM.cjs +1 -0
  140. package/dist/{vue-ui-table-js0Gdfqi.cjs → vue-ui-table-Bo5KWUa-.cjs} +2 -2
  141. package/dist/{vue-ui-table-BowZcUb5.js → vue-ui-table-C8zG8WTp.js} +1 -1
  142. package/dist/vue-ui-table-heatmap-DvRBb7Za.cjs +1 -0
  143. package/dist/{vue-ui-table-heatmap-BmObY7ZK.js → vue-ui-table-heatmap-N2a-kKWJ.js} +9 -8
  144. package/dist/{vue-ui-table-sparkline-BKDgWukC.js → vue-ui-table-sparkline-DOYmxyiy.js} +9 -8
  145. package/dist/vue-ui-table-sparkline-DVhyXHjb.cjs +1 -0
  146. package/dist/vue-ui-thermometer-CshBwaty.cjs +1 -0
  147. package/dist/{vue-ui-thermometer-BOF4YYvE.js → vue-ui-thermometer-DsFTU7hy.js} +26 -25
  148. package/dist/{vue-ui-timer-D6WS06mW.js → vue-ui-timer-BazkEbRz.js} +5 -5
  149. package/dist/{vue-ui-timer-BVoMdC97.cjs → vue-ui-timer-b4eSKrHr.cjs} +1 -1
  150. package/dist/{vue-ui-tiremarks-BD81LT9b.js → vue-ui-tiremarks-LjeTpuwu.js} +20 -19
  151. package/dist/vue-ui-tiremarks-tCyisBN-.cjs +1 -0
  152. package/dist/{vue-ui-treemap-CKETyAhh.js → vue-ui-treemap-CkPWe6se.js} +14 -13
  153. package/dist/vue-ui-treemap-o4rsDy3h.cjs +1 -0
  154. package/dist/{vue-ui-vertical-bar-nq74gMNu.cjs → vue-ui-vertical-bar-D3vjiqvq.cjs} +3 -3
  155. package/dist/{vue-ui-vertical-bar-D4RH4OTK.js → vue-ui-vertical-bar-ViFIMQc9.js} +16 -15
  156. package/dist/vue-ui-waffle-4Wpu2k9B.cjs +1 -0
  157. package/dist/{vue-ui-waffle-BHP27c7Q.js → vue-ui-waffle-D8uQiqvC.js} +15 -14
  158. package/dist/{vue-ui-wheel-BpEPqKp-.js → vue-ui-wheel-DgJ52HhJ.js} +10 -9
  159. package/dist/vue-ui-wheel-Wkp_TkAj.cjs +1 -0
  160. package/dist/{vue-ui-word-cloud-JH_eHxVf.js → vue-ui-word-cloud-BmX0SdIe.js} +39 -38
  161. package/dist/vue-ui-word-cloud-CtR6FmsK.cjs +1 -0
  162. package/dist/vue-ui-xy-B68466-C.cjs +3 -0
  163. package/dist/{vue-ui-xy-BGOtOn8w.js → vue-ui-xy-CnNugA_v.js} +52 -50
  164. package/dist/{vue-ui-xy-canvas-DLZANhlq.cjs → vue-ui-xy-canvas-D7IJkVz1.cjs} +2 -2
  165. package/dist/{vue-ui-xy-canvas-DVzzeUmj.js → vue-ui-xy-canvas-DRbFpLFp.js} +134 -133
  166. package/package.json +2 -2
  167. package/dist/img-BPGizWpM.cjs +0 -1
  168. package/dist/img-itj0Vdmx.js +0 -15
  169. package/dist/index-CBRI5uwl.cjs +0 -9
  170. package/dist/pdf-DSkQT5iH.cjs +0 -1
  171. package/dist/vue-ui-age-pyramid-Cm10v1iS.cjs +0 -1
  172. package/dist/vue-ui-bullet-yeUQYuwe.cjs +0 -34
  173. package/dist/vue-ui-carousel-table-Dkqumt0q.cjs +0 -1
  174. package/dist/vue-ui-circle-pack-CnYgigzx.cjs +0 -1
  175. package/dist/vue-ui-donut-DL51Fl9m.cjs +0 -1
  176. package/dist/vue-ui-donut-evolution-mCx3HfHW.cjs +0 -1
  177. package/dist/vue-ui-dumbbell-BIDzrdGX.cjs +0 -9
  178. package/dist/vue-ui-flow-D8CWkD2E.cjs +0 -1
  179. package/dist/vue-ui-funnel-DNQKb-CW.cjs +0 -1
  180. package/dist/vue-ui-galaxy-CXAhWSW2.cjs +0 -1
  181. package/dist/vue-ui-gauge-CODDDBdK.cjs +0 -1
  182. package/dist/vue-ui-heatmap-DDo0YoPA.cjs +0 -1
  183. package/dist/vue-ui-history-plot-Wb0vm3oN.cjs +0 -1
  184. package/dist/vue-ui-molecule-SgHDaN5w.cjs +0 -1
  185. package/dist/vue-ui-molecule-kryFDlxX.js +0 -826
  186. package/dist/vue-ui-mood-radar-p2yhGTuV.cjs +0 -1
  187. package/dist/vue-ui-quadrant-ZmF2s1_3.cjs +0 -1
  188. package/dist/vue-ui-radar-BgeUqzpX.cjs +0 -1
  189. package/dist/vue-ui-relation-circle-DRkjUqb1.cjs +0 -1
  190. package/dist/vue-ui-scatter-BlBNhmJ4.cjs +0 -1
  191. package/dist/vue-ui-strip-plot-t6_CVzQF.cjs +0 -1
  192. package/dist/vue-ui-table-heatmap-BAczw65J.cjs +0 -1
  193. package/dist/vue-ui-table-sparkline-HE8HXlhe.cjs +0 -1
  194. package/dist/vue-ui-thermometer-2RqSKVQ8.cjs +0 -1
  195. package/dist/vue-ui-tiremarks-CiZUYcuP.cjs +0 -1
  196. package/dist/vue-ui-treemap-BQeFDdrJ.cjs +0 -1
  197. package/dist/vue-ui-waffle-atvdP-Pb.cjs +0 -1
  198. package/dist/vue-ui-wheel-Diad5HyF.cjs +0 -1
  199. package/dist/vue-ui-word-cloud-B_ykSDTr.cjs +0 -1
  200. package/dist/vue-ui-xy-Csz1n4M-.cjs +0 -3
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CBRI5uwl.cjs"),ee=require("./usePrinter-C1Rlqzcj.cjs"),ge=require("./vue-ui-skeleton-CM4wEsYA.cjs"),ke=require("./BaseIcon-Db1HIrAt.cjs"),_e=require("./vue-ui-accordion-C5C3XQ8f.cjs"),te=require("./useNestedProp-0jJvFRhK.cjs"),xe=require("./PackageVersion-D_gJvbGU.cjs"),Be=require("./PenAndPaper-DWG9pfri.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./useChartAccessibility-Cm7nkzTG.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=["id"],we={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ze=["xmlns","viewBox"],Ve=["width","height"],$e={key:1},Te=["fill","font-weight","font-size","x","y"],Fe=["fill","font-weight","font-size","x","y"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Ie=["stop-color"],Me=["stop-color"],Re=["id"],Ae=["stop-color"],Xe=["stop-color"],je=["stop-color"],Ge=["id"],Ue=["stop-color"],qe=["stop-color"],Ye=["stop-color"],He=["id"],We=["stop-color"],Ke=["stop-color"],Je=["stop-color"],Qe={key:2},Ze=["x","y","font-size","font-weight","fill"],et=["x","y","font-size","font-weight","fill"],tt=["d","stroke"],lt=["cx","cy","r","fill"],at=["cx","cy","r","fill","stroke","stroke-width","onClick"],ot={key:3},nt=["x","y","font-size","fill","onClick"],rt={key:0},st=["x","y","fill","font-size","font-weight"],ut=["x","y","height","width","fill","rx","onClick"],ct=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],it={key:4},dt=["x","y","fill","font-size","onClick"],yt=["d","stroke"],vt=["fill","cx","cy","r","onClick"],ht={key:5},ft=["x","y","font-size","font-weight","fill"],pt=["x1","x2","y1","y2","stroke","stroke-width"],mt=["y","height","width"],bt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},gt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},kt={viewBox:"0 0 20 20",height:"16",width:"16"},_t=["fill"],xt={key:7},Bt=["y","height","width"],Et={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},Nt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},St={viewBox:"0 0 20 20",height:"16",width:"16"},Ct=["fill"],wt=["cx","cy","fill"],zt=["d","stroke"],Vt=["cx","cy","fill"],$t=["d","stroke"],Tt=["cx","cy","fill"],Ft=["cx","cy","fill"],Lt=["x","y","fill","font-size","font-weight"],Dt=["x","y","fill","font-size","font-weight"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],It=["x","text-anchor","y","fill","font-size"],Mt=["x","text-anchor","y","fill","font-size"],Rt=["x","text-anchor","y","fill","font-size"],At=["x","y","font-size","fill"],Xt=["x","y","font-size","fill"],jt=["x","y","font-size","fill"],Gt={key:4,class:"vue-data-ui-watermark"},Ut={key:6,ref:"source",dir:"auto"},qt={style:{"padding-top":"36px",position:"relative"}},Yt={class:"vue-ui-data-table"},Ht={key:0},Wt=["data-cell"],Kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Jt={key:0},Qt={key:1},Zt=["data-cell"],el={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tl={key:0},ll={key:1},al=["data-cell"],ol={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nl={key:0},rl={key:1},sl=["data-cell"],ul={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},cl={key:0},il={key:1},dl=["data-cell"],yl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vl={key:0},hl={key:1},fl=["data-cell"],pl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ml={key:0},bl={key:1},gl=["data-cell"],kl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_l={key:0},xl={key:1},Bl=["data-cell"],El={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nl=["data-cell"],Sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Cl=["data-cell"],wl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},zl=["data-cell"],Vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},$l=["data-cell"],Tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Fl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(le,{expose:ae,emit:oe}){e.useCssVars(a=>({"4c4794f5":a.tdo}));const{vue_ui_chestnut:ne}=o.useConfig(),k=le,z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),I=e.ref(null),re=e.ref(null),M=e.ref(0),t=e.computed({get:()=>j(),set:a=>a}),{userOptionsVisible:T,setUserOptionsVisibility:R,keepUserOptionState:A}=Ee.useUserOptionState({config:t.value}),{svgRef:X}=Ne.useChartAccessibility({config:t.value.style.chart.layout.title});function j(){const a=te.useNestedProp({userConfig:k.config,defaultConfig:ne});return a.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=j(),T.value=!t.value.userOptions.showOnChartHover,S.value.showTable=t.value.table.show,J()},{deep:!0});const{isPrinting:G,isImaging:U,generatePdf:q,generateImage:Y}=ee.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),se=e.computed(()=>t.value.userOptions.show),F=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show}),L=e.ref(null),H=e.ref(!1),ue=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),p=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||F.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function ce(){return m.value}const C=oe,ie=e.computed(()=>m.value.flatMap(a=>a.branches).length),de=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ye=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),W=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=p.value.height/m.value.length/2,n=a.total/de.value*(l>64?64:l);return{...a,x:p.value.seedX,y:p.value.top+p.value.height/m.value.length*(s+1)-(p.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),ve=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),he=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>he.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+p.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:W.value,x2:384*a.value/ye.value*ve.value+W.value})));function D(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function f(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function fe(a){f(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),C("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,C("selectNut",null)}function O(a){v.value&&v.value.id===a.id?(v.value=null,f(),C("selectBranch",null)):(f(),v.value=a,C("selectBranch",a))}function K(a){b.value&&b.value.id===a.id?(f(),C("selectRoot",null)):(f(),b.value=a,C("selectRoot",a))}function pe(){return p.value.bottom-(u.value.y1+180)<0?0:p.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function me(){const a=new ResizeObserver(s=>{s.forEach(l=>{H.value=l.contentRect.width<ue.value})});L.value&&a.observe(L.value)}e.onMounted(()=>{J()});function J(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ie.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,me()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Dl)=>y.table)));return{head:a,body:s}});function Q(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function be(a){V.value=a,M.value+=1}function Z(){S.value.showTable=!S.value.showTable}const $=e.ref(!1);function P(){$.value=!$.value}return ae({getData:ce,generatePdf:q,generateCsv:Q,generateImage:Y,toggleTable:Z,toggleAnnotator:P}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:I,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,svgRef:e.unref(X),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:P},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",we,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(A)||e.unref(T))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:re,key:`user_options_${M.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(U),isPrinting:e.unref(G),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:be,onGeneratePdf:e.unref(q),onGenerateCsv:Q,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(A)?e.unref(T)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:X,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(xe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",$e,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:f},e.toDisplayString(t.value.style.chart.layout.title.text),9,Te)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:f},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Fe)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Oe)],8,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Me)],8,Pe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,je)],8,Re),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ue),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ye)],8,Ge),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,We),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Je)],8,He)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",Qe,[e.createElementVNode("text",{x:p.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:f},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ze),e.createElementVNode("text",{x:p.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:f},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,et)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-Crz6y51C.cjs"),ee=require("./usePrinter-Cqxw0sR7.cjs"),ge=require("./vue-ui-skeleton-BZsFiqo5.cjs"),ke=require("./BaseIcon-CGjwy6WD.cjs"),_e=require("./vue-ui-accordion-10T9IdE-.cjs"),te=require("./useNestedProp-B8CE091o.cjs"),xe=require("./PackageVersion-Dj3KQ8Ax.cjs"),Be=require("./PenAndPaper-OCjAJH70.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./useChartAccessibility-Cm7nkzTG.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=["id"],we={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ze=["xmlns","viewBox"],Ve=["width","height"],$e={key:1},Te=["fill","font-weight","font-size","x","y"],Fe=["fill","font-weight","font-size","x","y"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Ie=["stop-color"],Me=["stop-color"],Re=["id"],Ae=["stop-color"],Xe=["stop-color"],je=["stop-color"],Ge=["id"],Ue=["stop-color"],qe=["stop-color"],Ye=["stop-color"],He=["id"],We=["stop-color"],Ke=["stop-color"],Je=["stop-color"],Qe={key:2},Ze=["x","y","font-size","font-weight","fill"],et=["x","y","font-size","font-weight","fill"],tt=["d","stroke"],lt=["cx","cy","r","fill"],at=["cx","cy","r","fill","stroke","stroke-width","onClick"],ot={key:3},nt=["x","y","font-size","fill","onClick"],rt={key:0},st=["x","y","fill","font-size","font-weight"],ut=["x","y","height","width","fill","rx","onClick"],ct=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],it={key:4},dt=["x","y","fill","font-size","onClick"],yt=["d","stroke"],vt=["fill","cx","cy","r","onClick"],ht={key:5},pt=["x","y","font-size","font-weight","fill"],ft=["x1","x2","y1","y2","stroke","stroke-width"],mt=["y","height","width"],bt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},gt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},kt={viewBox:"0 0 20 20",height:"16",width:"16"},_t=["fill"],xt={key:7},Bt=["y","height","width"],Et={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},Nt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},St={viewBox:"0 0 20 20",height:"16",width:"16"},Ct=["fill"],wt=["cx","cy","fill"],zt=["d","stroke"],Vt=["cx","cy","fill"],$t=["d","stroke"],Tt=["cx","cy","fill"],Ft=["cx","cy","fill"],Lt=["x","y","fill","font-size","font-weight"],Dt=["x","y","fill","font-size","font-weight"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],It=["x","text-anchor","y","fill","font-size"],Mt=["x","text-anchor","y","fill","font-size"],Rt=["x","text-anchor","y","fill","font-size"],At=["x","y","font-size","fill"],Xt=["x","y","font-size","fill"],jt=["x","y","font-size","fill"],Gt={key:4,class:"vue-data-ui-watermark"},Ut={key:6,ref:"source",dir:"auto"},qt={style:{"padding-top":"36px",position:"relative"}},Yt={class:"vue-ui-data-table"},Ht={key:0},Wt=["data-cell"],Kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Jt={key:0},Qt={key:1},Zt=["data-cell"],el={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tl={key:0},ll={key:1},al=["data-cell"],ol={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nl={key:0},rl={key:1},sl=["data-cell"],ul={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},cl={key:0},il={key:1},dl=["data-cell"],yl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vl={key:0},hl={key:1},pl=["data-cell"],fl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ml={key:0},bl={key:1},gl=["data-cell"],kl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_l={key:0},xl={key:1},Bl=["data-cell"],El={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nl=["data-cell"],Sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Cl=["data-cell"],wl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},zl=["data-cell"],Vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},$l=["data-cell"],Tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Fl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(le,{expose:ae,emit:oe}){e.useCssVars(a=>({"2dd0b74d":a.tdo}));const{vue_ui_chestnut:ne}=o.useConfig(),k=le,z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),I=e.ref(null),re=e.ref(null),M=e.ref(0),t=e.computed({get:()=>j(),set:a=>a}),{userOptionsVisible:T,setUserOptionsVisibility:R,keepUserOptionState:A}=Ee.useUserOptionState({config:t.value}),{svgRef:X}=Ne.useChartAccessibility({config:t.value.style.chart.layout.title});function j(){const a=te.useNestedProp({userConfig:k.config,defaultConfig:ne});return a.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=j(),T.value=!t.value.userOptions.showOnChartHover,S.value.showTable=t.value.table.show,J()},{deep:!0});const{isPrinting:G,isImaging:U,generatePdf:q,generateImage:Y}=ee.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut",options:t.value.userOptions.print}),se=e.computed(()=>t.value.userOptions.show),F=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show}),L=e.ref(null),H=e.ref(!1),ue=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),f=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||F.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function ce(){return m.value}const C=oe,ie=e.computed(()=>m.value.flatMap(a=>a.branches).length),de=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ye=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),W=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=f.value.height/m.value.length/2,n=a.total/de.value*(l>64?64:l);return{...a,x:f.value.seedX,y:f.value.top+f.value.height/m.value.length*(s+1)-(f.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),ve=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),he=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>he.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+f.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:W.value,x2:384*a.value/ye.value*ve.value+W.value})));function D(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function p(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function pe(a){p(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),C("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,C("selectNut",null)}function O(a){v.value&&v.value.id===a.id?(v.value=null,p(),C("selectBranch",null)):(p(),v.value=a,C("selectBranch",a))}function K(a){b.value&&b.value.id===a.id?(p(),C("selectRoot",null)):(p(),b.value=a,C("selectRoot",a))}function fe(){return f.value.bottom-(u.value.y1+180)<0?0:f.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function me(){const a=new ResizeObserver(s=>{s.forEach(l=>{H.value=l.contentRect.width<ue.value})});L.value&&a.observe(L.value)}e.onMounted(()=>{J()});function J(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ie.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,me()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Dl)=>y.table)));return{head:a,body:s}});function Q(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function be(a){V.value=a,M.value+=1}function Z(){S.value.showTable=!S.value.showTable}const $=e.ref(!1);function P(){$.value=!$.value}return ae({getData:ce,generatePdf:q,generateCsv:Q,generateImage:Y,toggleTable:Z,toggleAnnotator:P}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:I,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,svgRef:e.unref(X),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:P},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",we,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(A)||e.unref(T))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:re,key:`user_options_${M.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(U),isPrinting:e.unref(G),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:be,onGeneratePdf:e.unref(q),onGenerateCsv:Q,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(A)?e.unref(T)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:X,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(xe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",$e,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.text),9,Te)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:p},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Fe)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Oe)],8,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Me)],8,Pe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,je)],8,Re),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ue),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ye)],8,Ge),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,We),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Je)],8,He)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",Qe,[e.createElementVNode("text",{x:f.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ze),e.createElementVNode("text",{x:f.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:p},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,et)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
2
2
  ${l.x1},${l.y1+d}
3
3
  C${l.x1-20},${l.y1+d}
4
4
  ${l.x1-80},${l.y1+d}
5
5
  ${D(l).x+D(l).r/2}, ${D(l).y}
6
- `,stroke:e.unref(o.setOpacity)(l.color,t.value.style.chart.layout.links.opacity),fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:e.normalizeStyle(`opacity:${g(l)?1:0}`),onClick:f},null,12,tt))),256))]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`)},null,12,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${h.value}_${l.rootIndex})`:l.color,stroke:t.value.style.chart.layout.roots.stroke,"stroke-width":t.value.style.chart.layout.roots.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>K(l)},null,12,at))),256)),t.value.style.chart.layout.roots.labels.show?(e.openBlock(),e.createElementBlock("g",ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y+t.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":t.value.style.chart.layout.roots.labels.fontSize,fill:t.value.style.chart.layout.roots.labels.adaptColorToBackground?e.unref(o.adaptColorToBackground)(l.color):t.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>K(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.roots.labels.prefix,v:l.total,s:t.value.style.chart.layout.roots.labels.suffix,r:t.value.style.chart.layout.roots.labels.roundingValue}),{datapoint:l})),13,nt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("g",null,[u.value&&l.rootIndex===u.value.rootIndex||v.value&&l.rootIndex===v.value.rootIndex||b.value&&l.rootIndex===b.value.rootIndex?(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("text",{x:l.x,y:l.y+l.r+24,"text-anchor":"middle",fill:t.value.style.chart.layout.roots.labels.name.color,"font-size":t.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":t.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:f},e.toDisplayString(l.name),9,st)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.underlayerColor,rx:t.value.style.chart.layout.branches.borderRadius,stroke:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.05}`),onClick:n=>O(l)},null,12,ut))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${h.value}_${l.rootIndex})`:l.color,rx:t.value.style.chart.layout.branches.borderRadius,stroke:t.value.style.chart.layout.branches.stroke,"stroke-width":t.value.style.chart.layout.branches.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>O(l)},null,12,ct))),256)),t.value.style.chart.layout.branches.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[l.proportionToRoot*100>t.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize/1.5,"text-anchor":"start",fill:e.unref(o.adaptColorToBackground)(l.color),"font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:n=>O(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),13,dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o.makeDonut)({series:l.breakdown,base:1},l.x2+24+t.value.style.chart.layout.nuts.offsetX,l.y1+r.value.branchSize/2,r.value.branchSize/3,r.value.branchSize/3),(d,i)=>(e.openBlock(),e.createElementBlock("path",{d:d.path,stroke:d.color,"stroke-width":10,fill:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},null,12,yt))),256)),e.createElementVNode("circle",{fill:t.value.style.chart.layout.nuts.useGradient?`url(#nut_${h.value})`:"transparent",cx:l.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:l.y1+r.value.branchSize/2,r:r.value.branchSize/2+2,onClick:d=>fe(l),style:e.normalizeStyle(`cursor:pointer;opacity:${g(l)?1:.1}`)},null,12,vt)]))),256)),t.value.style.chart.layout.branches.labels.show&&!v.value?(e.openBlock(),e.createElementBlock("g",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x2+r.value.branchSize+24+t.value.style.chart.layout.nuts.offsetX,y:l.y1+r.value.branchSize/2+5,"font-size":t.value.style.chart.layout.branches.labels.fontSize,"font-weight":t.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:t.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},e.toDisplayString(l.name),13,ft))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:256+r.value.padding.left,x2:256+r.value.padding.left,y1:p.value.top,y2:p.value.bottom,stroke:t.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":t.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,pt),!u.value&&!v.value?(e.openBlock(),e.createElementBlock("foreignObject",{key:6,x:0,y:p.value.bottom,height:r.value.height-p.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:f},[e.createElementVNode("div",bt,[e.createElementVNode("div",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",kt,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,_t)])),e.createElementVNode("span",null,e.toDisplayString(l.name)+":",1),e.createElementVNode("b",null,e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.legend.prefix,v:l.total,s:t.value.style.chart.layout.legend.suffix,r:t.value.style.chart.layout.legend.roundingValue}),{datapoint:l})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(o.dataLabel)({v:l.total/_.value*100,s:"%",r:t.value.style.chart.layout.legend.roundingPercentage}))+") ",1)],4))),256))])])],8,mt)):e.createCommentVNode("",!0),u.value&&x.value?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:0,y:pe(),height:r.value.height-p.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:f},[e.createElementVNode("div",Et,[e.createElementVNode("b",null,e.toDisplayString(u.value.name),1),e.createElementVNode("div",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.breakdown,(l,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",St,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,Ct)])),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+": ",1),e.createElementVNode("b",null,e.toDisplayString(t.value.style.chart.layout.legend.prefix)+" "+e.toDisplayString(l.value.toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+e.toDisplayString(t.value.style.chart.layout.legend.suffix),1),e.createTextVNode(" ("+e.toDisplayString((l.proportionToBranch*100).toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,Bt)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,wt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+r.value.branchSize/2},16,16,!1,!1,64),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,zt)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:118,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Vt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("path",{d:l.path,stroke:l.color,"stroke-width":64,fill:"none",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,$t))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:100,fill:`url(#nutpick_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Tt),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:48,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Ft),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+8,fill:t.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(t.value.translations.total),11,Lt),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+36,fill:t.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.core.value.prefix,v:u.value.value,s:t.value.style.chart.layout.nuts.selected.labels.core.value.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:u.value})),11,Dt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:l.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,Ot)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(u.value.breakdown[n].name),15,Pt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].value/u.value.value*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].branchName)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.breakdown[n].value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,v:u.value.breakdown[n].value,s:t.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:x.value,seriesIndex:n})),15,It)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToRoot*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].rootName),15,Mt)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:2,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToTree*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),15,Rt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:f},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),9,At)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x1+6,y:l.y1+r.value.branchSize+48,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:f},e.toDisplayString(e.unref(o.dataLabel)({v:l.proportionToRoot*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(l.rootName),9,Xt)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.x1+6,y:l.y1+r.value.branchSize+72,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:f},e.toDisplayString(e.unref(o.dataLabel)({v:l.value/_.value*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),9,jt)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,ze)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Gt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ge.default,{key:5,config:{type:"chestnut",style:{backgroundColor:t.value.style.chart.backgroundColor,chestnut:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(a.$slots,"legend",{legend:m.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createBlock(_e.default,{key:7,hideDetails:"",config:{open:S.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:L,class:"vue-ui-chestnut-table"},[e.createElementVNode("div",qt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:s[0]||(s[0]=l=>S.value.showTable=!1),onKeypress:s[1]||(s[1]=e.withKeys(l=>S.value.showTable=!1,["enter"]))},[e.createVNode(ke.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%"},class:e.normalizeClass({"vue-ui-responsive":H.value})},[e.createElementVNode("table",Yt,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.layout.title.text)+" ",1),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Ht,e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},e.toDisplayString(l),5))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.body,(l,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[0]},[e.createElementVNode("div",Kt,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",Jt)):(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(l.rootName),1))])],12,Wt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[1]},[e.createElementVNode("div",el,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",tl)):(e.openBlock(),e.createElementBlock("span",ll,e.toDisplayString(l.rootValue.toFixed(t.value.table.td.roundingValue)),1))])],12,Zt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[2]},[e.createElementVNode("div",ol,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",nl)):(e.openBlock(),e.createElementBlock("span",rl,e.toDisplayString((l.rootToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,al),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[3]},[e.createElementVNode("div",ul,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",cl)):(e.openBlock(),e.createElementBlock("span",il,e.toDisplayString(l.branchName),1))])],12,sl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[4]},[e.createElementVNode("div",yl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",vl)):(e.openBlock(),e.createElementBlock("span",hl,e.toDisplayString(l.branchValue.toFixed(t.value.table.td.roundingValue)),1))])],12,dl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[5]},[e.createElementVNode("div",pl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",ml)):(e.openBlock(),e.createElementBlock("span",bl,e.toDisplayString((l.branchToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,fl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[6]},[e.createElementVNode("div",kl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",_l)):(e.openBlock(),e.createElementBlock("span",xl,e.toDisplayString((l.branchToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,gl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[7]},[e.createElementVNode("div",El,e.toDisplayString(l.nutName),1)],12,Bl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[8]},[e.createElementVNode("div",Sl,e.toDisplayString(l.nutValue.toFixed(t.value.table.td.roundingValue)),1)],12,Nl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[9]},[e.createElementVNode("div",wl,e.toDisplayString((l.nutToBranch*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,Cl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[10]},[e.createElementVNode("div",Vl,e.toDisplayString((l.nutToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,zl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[11]},[e.createElementVNode("div",Tl,e.toDisplayString((l.nutToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,$l)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ce))}},Ll=Se._export_sfc(Fl,[["__scopeId","data-v-3dcea4e3"]]);exports.default=Ll;
6
+ `,stroke:e.unref(o.setOpacity)(l.color,t.value.style.chart.layout.links.opacity),fill:"none","stroke-width":"2","shape-rendering":"cirspEdges",style:e.normalizeStyle(`opacity:${g(l)?1:0}`),onClick:p},null,12,tt))),256))]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.underlayerColor,stroke:"none",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`)},null,12,lt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,r:l.r,fill:t.value.style.chart.layout.roots.useGradient?`url(#root_gradient_${h.value}_${l.rootIndex})`:l.color,stroke:t.value.style.chart.layout.roots.stroke,"stroke-width":t.value.style.chart.layout.roots.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>K(l)},null,12,at))),256)),t.value.style.chart.layout.roots.labels.show?(e.openBlock(),e.createElementBlock("g",ot,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{x:l.x,y:l.y+t.value.style.chart.layout.roots.labels.fontSize/2.6,"text-anchor":"middle","font-size":t.value.style.chart.layout.roots.labels.fontSize,fill:t.value.style.chart.layout.roots.labels.adaptColorToBackground?e.unref(o.adaptColorToBackground)(l.color):t.value.style.chart.layout.roots.labels.color,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>K(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.roots.labels.prefix,v:l.total,s:t.value.style.chart.layout.roots.labels.suffix,r:t.value.style.chart.layout.roots.labels.roundingValue}),{datapoint:l})),13,nt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("g",null,[u.value&&l.rootIndex===u.value.rootIndex||v.value&&l.rootIndex===v.value.rootIndex||b.value&&l.rootIndex===b.value.rootIndex?(e.openBlock(),e.createElementBlock("g",rt,[e.createElementVNode("text",{x:l.x,y:l.y+l.r+24,"text-anchor":"middle",fill:t.value.style.chart.layout.roots.labels.name.color,"font-size":t.value.style.chart.layout.roots.labels.name.fontSize,"font-weight":t.value.style.chart.layout.roots.labels.name.bold?"bold":"normal",onClick:p},e.toDisplayString(l.name),9,st)])):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.underlayerColor,rx:t.value.style.chart.layout.branches.borderRadius,stroke:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.05}`),onClick:n=>O(l)},null,12,ut))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("rect",{x:l.x1,y:l.y1,height:r.value.branchSize,width:l.x2-l.x1,fill:t.value.style.chart.layout.branches.useGradient?`url(#branch_gradient_${h.value}_${l.rootIndex})`:l.color,rx:t.value.style.chart.layout.branches.borderRadius,stroke:t.value.style.chart.layout.branches.stroke,"stroke-width":t.value.style.chart.layout.branches.strokeWidth,style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:d=>O(l)},null,12,ct))),256)),t.value.style.chart.layout.branches.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",it,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[l.proportionToRoot*100>t.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize/1.5,"text-anchor":"start",fill:e.unref(o.adaptColorToBackground)(l.color),"font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,"font-weight":"bold",style:e.normalizeStyle(`cursor:pointer; opacity:${g(l)?1:.05}`),onClick:n=>O(l)},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),13,dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o.makeDonut)({series:l.breakdown,base:1},l.x2+24+t.value.style.chart.layout.nuts.offsetX,l.y1+r.value.branchSize/2,r.value.branchSize/3,r.value.branchSize/3),(d,i)=>(e.openBlock(),e.createElementBlock("path",{d:d.path,stroke:d.color,"stroke-width":10,fill:"none",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},null,12,yt))),256)),e.createElementVNode("circle",{fill:t.value.style.chart.layout.nuts.useGradient?`url(#nut_${h.value})`:"transparent",cx:l.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:l.y1+r.value.branchSize/2,r:r.value.branchSize/2+2,onClick:d=>pe(l),style:e.normalizeStyle(`cursor:pointer;opacity:${g(l)?1:.1}`)},null,12,vt)]))),256)),t.value.style.chart.layout.branches.labels.show&&!v.value?(e.openBlock(),e.createElementBlock("g",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("text",{x:l.x2+r.value.branchSize+24+t.value.style.chart.layout.nuts.offsetX,y:l.y1+r.value.branchSize/2+5,"font-size":t.value.style.chart.layout.branches.labels.fontSize,"font-weight":t.value.style.chart.layout.branches.labels.bold?"bold":"normal",fill:t.value.style.chart.layout.branches.labels.color,"text-anchor":"start",style:e.normalizeStyle(`opacity:${g(l)?1:.1}`)},e.toDisplayString(l.name),13,pt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:256+r.value.padding.left,x2:256+r.value.padding.left,y1:f.value.top,y2:f.value.bottom,stroke:t.value.style.chart.layout.verticalSeparator.stroke,"stroke-width":t.value.style.chart.layout.verticalSeparator.strokeWidth},null,8,ft),!u.value&&!v.value?(e.openBlock(),e.createElementBlock("foreignObject",{key:6,x:0,y:f.value.bottom,height:r.value.height-f.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:p},[e.createElementVNode("div",bt,[e.createElementVNode("div",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,l=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",kt,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,_t)])),e.createElementVNode("span",null,e.toDisplayString(l.name)+":",1),e.createElementVNode("b",null,e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.roots.labels.formatter,l.total,e.unref(o.dataLabel)({p:t.value.style.chart.layout.legend.prefix,v:l.total,s:t.value.style.chart.layout.legend.suffix,r:t.value.style.chart.layout.legend.roundingValue}),{datapoint:l})),1),e.createTextVNode(" ("+e.toDisplayString(e.unref(o.dataLabel)({v:l.total/_.value*100,s:"%",r:t.value.style.chart.layout.legend.roundingPercentage}))+") ",1)],4))),256))])])],8,mt)):e.createCommentVNode("",!0),u.value&&x.value?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:0,y:fe(),height:r.value.height-f.value.bottom,width:r.value.width,style:{overflow:"visible"},onClick:p},[e.createElementVNode("div",Et,[e.createElementVNode("b",null,e.toDisplayString(u.value.name),1),e.createElementVNode("div",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.breakdown,(l,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${t.value.style.chart.layout.legend.fontSize}px;`)},[(e.openBlock(),e.createElementBlock("svg",St,[e.createElementVNode("circle",{cx:"10",cy:"10",r:"10",fill:l.color,stroke:"none"},null,8,Ct)])),e.createElementVNode("span",null,[e.createTextVNode(e.toDisplayString(l.name)+": ",1),e.createElementVNode("b",null,e.toDisplayString(t.value.style.chart.layout.legend.prefix)+" "+e.toDisplayString(l.value.toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingValue))+" "+e.toDisplayString(t.value.style.chart.layout.legend.suffix),1),e.createTextVNode(" ("+e.toDisplayString((l.proportionToBranch*100).toFixed(t.value.style.chart.layout.nuts.selected.labels.roundingPercentage))+"%)",1)])],4))),256))])])],8,Bt)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:256,fill:`url(#nut_underlayer_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,wt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(o.calcNutArrowPath)(l,{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+r.value.branchSize/2},16,16,!1,!1,64),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,zt)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:118,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Vt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,l=>(e.openBlock(),e.createElementBlock("path",{d:l.path,stroke:l.color,"stroke-width":64,fill:"none",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,$t))),256)),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:100,fill:`url(#nutpick_${h.value})`,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Tt),e.createElementVNode("circle",{cx:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,cy:u.value.y1+r.value.branchSize/2,r:48,fill:t.value.style.chart.backgroundColor,onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},null,10,Ft),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+8,fill:t.value.style.chart.layout.nuts.selected.labels.core.total.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.total.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(t.value.translations.total),11,Lt),e.createElementVNode("text",{x:u.value.x2+24+t.value.style.chart.layout.nuts.offsetX,y:u.value.y1+36,fill:t.value.style.chart.layout.nuts.selected.labels.core.value.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,"font-weight":t.value.style.chart.layout.nuts.selected.labels.core.value.bold?"bold":"normal","text-anchor":"middle",onClick:N,class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.core.value.prefix,v:u.value.value,s:t.value.style.chart.layout.nuts.selected.labels.core.value.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:u.value})),11,Dt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:l.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")}," ⬤ ",14,Ot)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l,!0).anchor,y:e.unref(o.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(u.value.breakdown[n].name),15,Pt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[w(l)?(e.openBlock(),e.createElementBlock("text",{key:0,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].value/u.value.value*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].branchName)+" "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter,u.value.breakdown[n].value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,v:u.value.breakdown[n].value,s:t.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,r:t.value.style.chart.layout.nuts.selected.roundingValue}),{datapoint:x.value,seriesIndex:n})),15,It)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:1,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*2,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToRoot*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(u.value.breakdown[n].rootName),15,Mt)):e.createCommentVNode("",!0),w(l)?(e.openBlock(),e.createElementBlock("text",{key:2,x:e.unref(o.calcMarkerOffsetX)(l,!0).x,"text-anchor":e.unref(o.calcMarkerOffsetX)(l).anchor,y:e.unref(o.calcMarkerOffsetY)(l)+t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize*3,fill:t.value.style.chart.layout.nuts.selected.labels.dataLabels.color,"font-size":t.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.nuts.selected.labels.dataLabels.bold?"bold":""}`),class:e.normalizeClass(t.value.style.chart.layout.nuts.selected.useMotion?"vue-ui-chestnut-animated":"")},e.toDisplayString(e.unref(o.dataLabel)({v:u.value.breakdown[n].proportionToTree*100,s:"%",r:t.value.style.chart.layout.nuts.selected.labels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),15,Rt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.x1+6,y:l.y1+r.value.branchSize+24,"font-weight":"bold","text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.branches.labels.dataLabels.formatter,l.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.branches.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.branches.labels.dataLabels.suffix,r:t.value.style.chart.layout.branches.labels.dataLabels.roundingValue}),{datapoint:l})),9,At)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x1+6,y:l.y1+r.value.branchSize+48,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(e.unref(o.dataLabel)({v:l.proportionToRoot*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.of)+" "+e.toDisplayString(l.rootName),9,Xt)):e.createCommentVNode("",!0),v.value&&v.value.id===l.id&&!u.value?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.x1+6,y:l.y1+r.value.branchSize+72,"text-anchor":"start","font-size":t.value.style.chart.layout.branches.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.branches.labels.color,onClick:p},e.toDisplayString(e.unref(o.dataLabel)({v:l.value/_.value*100,s:"%",r:t.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage}))+" "+e.toDisplayString(t.value.translations.proportionToTree),9,jt)):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:r.value},void 0,!0)],14,ze)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Gt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(G)||e.unref(U)})),void 0,!0)])):e.createCommentVNode("",!0),z.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ge.default,{key:5,config:{type:"chestnut",style:{backgroundColor:t.value.style.chart.backgroundColor,chestnut:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(a.$slots,"legend",{legend:m.value},void 0,!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",Ut,[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createBlock(_e.default,{key:7,hideDetails:"",config:{open:S.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"tableContainer",ref:L,class:"vue-ui-chestnut-table"},[e.createElementVNode("div",qt,[e.createElementVNode("div",{role:"button",tabindex:"0",style:e.normalizeStyle(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${t.value.table.th.backgroundColor};`),onClick:s[0]||(s[0]=l=>S.value.showTable=!1),onKeypress:s[1]||(s[1]=e.withKeys(l=>S.value.showTable=!1,["enter"]))},[e.createVNode(ke.default,{name:"close",stroke:t.value.table.th.color,"stroke-width":2},null,8,["stroke"])],36),e.createElementVNode("div",{style:{width:"100%"},class:e.normalizeClass({"vue-ui-responsive":H.value})},[e.createElementVNode("table",Yt,[e.createElementVNode("caption",{style:e.normalizeStyle({backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline}),class:"vue-ui-data-table__caption"},[e.createTextVNode(e.toDisplayString(t.value.style.chart.layout.title.text)+" ",1),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("span",Ht,e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),1)):e.createCommentVNode("",!0)],4),e.createElementVNode("thead",null,[e.createElementVNode("tr",{role:"row",style:e.normalizeStyle(`background:${t.value.table.th.backgroundColor};color:${t.value.table.th.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.head,l=>(e.openBlock(),e.createElementBlock("th",{style:e.normalizeStyle(`outline:${t.value.table.th.outline}`)},e.toDisplayString(l),5))),256))],4)]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.body,(l,n)=>(e.openBlock(),e.createElementBlock("tr",{class:e.normalizeClass({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":n%2===0,"vue-ui-data-table__tbody__row-odd":n%2!==0}),style:e.normalizeStyle(`background:${t.value.table.td.backgroundColor};color:${t.value.table.td.color}`)},[e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[0]},[e.createElementVNode("div",Kt,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",Jt)):(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(l.rootName),1))])],12,Wt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[1]},[e.createElementVNode("div",el,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",tl)):(e.openBlock(),e.createElementBlock("span",ll,e.toDisplayString(l.rootValue.toFixed(t.value.table.td.roundingValue)),1))])],12,Zt),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[2]},[e.createElementVNode("div",ol,[c.value.body[n-1]&&c.value.body[n-1].rootName===l.rootName?(e.openBlock(),e.createElementBlock("span",nl)):(e.openBlock(),e.createElementBlock("span",rl,e.toDisplayString((l.rootToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,al),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[3]},[e.createElementVNode("div",ul,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",cl)):(e.openBlock(),e.createElementBlock("span",il,e.toDisplayString(l.branchName),1))])],12,sl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[4]},[e.createElementVNode("div",yl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",vl)):(e.openBlock(),e.createElementBlock("span",hl,e.toDisplayString(l.branchValue.toFixed(t.value.table.td.roundingValue)),1))])],12,dl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[5]},[e.createElementVNode("div",fl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",ml)):(e.openBlock(),e.createElementBlock("span",bl,e.toDisplayString((l.branchToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,pl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[6]},[e.createElementVNode("div",kl,[c.value.body[n-1]&&c.value.body[n-1].branchName===l.branchName?(e.openBlock(),e.createElementBlock("span",_l)):(e.openBlock(),e.createElementBlock("span",xl,e.toDisplayString((l.branchToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1))])],12,gl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[7]},[e.createElementVNode("div",El,e.toDisplayString(l.nutName),1)],12,Bl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[8]},[e.createElementVNode("div",Sl,e.toDisplayString(l.nutValue.toFixed(t.value.table.td.roundingValue)),1)],12,Nl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[9]},[e.createElementVNode("div",wl,e.toDisplayString((l.nutToBranch*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,Cl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[10]},[e.createElementVNode("div",Vl,e.toDisplayString((l.nutToRoot*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,zl),e.createElementVNode("td",{class:"vue-ui-data-table__tbody__td",style:e.normalizeStyle(`outline:${t.value.table.td.outline}`),"data-cell":c.value.head[11]},[e.createElementVNode("div",Tl,e.toDisplayString((l.nutToTotal*100).toFixed(t.value.table.td.roundingPercentage))+"% ",1)],12,$l)],6))),256))])])],2)])],512)]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ce))}},Ll=Se._export_sfc(Fl,[["__scopeId","data-v-c0036b55"]]);exports.default=Ll;
@@ -1,12 +1,12 @@
1
1
  import { useCssVars as He, computed as m, ref as T, watch as We, onMounted as Ke, createElementBlock as o, openBlock as a, unref as n, normalizeStyle as h, normalizeClass as k, createBlock as K, createCommentVNode as f, renderSlot as S, createSlots as Je, withCtx as B, normalizeProps as J, guardReactiveProps as Q, createVNode as Ce, createElementVNode as s, toDisplayString as c, Fragment as g, renderList as _, createTextVNode as Z, withKeys as Qe, nextTick as Te } from "vue";
2
- import { u as Ze, c as et, t as tt, p as P, a as lt, b as at, g as ne, e as ee, d as re, o as ot, X as st, s as F, w as ze, i as G, f as z, G as Ne, m as Se, j as ut, k as H, n as V, q as nt, r as rt } from "./index-BaaDnc4F.js";
3
- import { u as it, U as ct } from "./usePrinter-y4-4tCWT.js";
4
- import dt from "./vue-ui-skeleton-6RiQNJSb.js";
5
- import vt from "./BaseIcon-rw8rKNKS.js";
6
- import yt from "./vue-ui-accordion-CF9kQTXq.js";
7
- import { u as Fe } from "./useNestedProp-D8vQcOps.js";
8
- import { _ as ht } from "./PackageVersion-D9Lm1C1X.js";
9
- import { P as ft } from "./PenAndPaper-DR58HO_U.js";
2
+ import { u as Ze, c as et, t as tt, p as P, a as lt, b as at, g as ne, e as ee, d as re, o as ot, X as st, s as F, w as ze, i as G, f as z, G as Ne, m as Se, j as ut, k as H, n as V, q as nt, r as rt } from "./index-DWsIpwzs.js";
3
+ import { u as it, U as ct } from "./usePrinter-B8LELMkA.js";
4
+ import dt from "./vue-ui-skeleton-DDZb9FFJ.js";
5
+ import vt from "./BaseIcon-BYl8WVrn.js";
6
+ import yt from "./vue-ui-accordion-WrimcQK1.js";
7
+ import { u as Fe } from "./useNestedProp-Bole8bsm.js";
8
+ import { _ as ht } from "./PackageVersion-Cz-oD7U6.js";
9
+ import { P as ft } from "./PenAndPaper-DOTH2X_u.js";
10
10
  import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
11
11
  import { u as pt } from "./useChartAccessibility-BWojgys7.js";
12
12
  import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -15,7 +15,7 @@ const _t = ["id"], xt = {
15
15
  ref: "noTitle",
16
16
  class: "vue-data-ui-no-title-space",
17
17
  style: "height:36px; width: 100%;background:transparent"
18
- }, mt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = { key: 1 }, $t = ["fill", "font-weight", "font-size", "x", "y"], Ct = ["fill", "font-weight", "font-size", "x", "y"], Tt = ["id"], zt = ["stop-color"], Nt = ["stop-color"], St = ["id"], Ft = ["stop-color"], It = ["stop-color"], Lt = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Rt = ["stop-color"], Ot = ["id"], Mt = ["stop-color"], Bt = ["stop-color"], jt = ["stop-color"], At = ["id"], Xt = ["stop-color"], Gt = ["stop-color"], Et = ["stop-color"], Ut = { key: 2 }, Dt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["x", "y", "font-size", "font-weight", "fill"], qt = ["d", "stroke"], Ht = ["cx", "cy", "r", "fill"], Wt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Kt = { key: 3 }, Jt = ["x", "y", "font-size", "fill", "onClick"], Qt = { key: 0 }, Zt = ["x", "y", "fill", "font-size", "font-weight"], el = ["x", "y", "height", "width", "fill", "rx", "onClick"], tl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], ll = { key: 4 }, al = ["x", "y", "fill", "font-size", "onClick"], ol = ["d", "stroke"], sl = ["fill", "cx", "cy", "r", "onClick"], ul = { key: 5 }, nl = ["x", "y", "font-size", "font-weight", "fill"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["y", "height", "width"], cl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, dl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, vl = {
18
+ }, mt = ["xmlns", "viewBox"], kt = ["width", "height"], wt = { key: 1 }, $t = ["fill", "font-weight", "font-size", "x", "y"], Ct = ["fill", "font-weight", "font-size", "x", "y"], Tt = ["id"], zt = ["stop-color"], Nt = ["stop-color"], St = ["id"], Ft = ["stop-color"], It = ["stop-color"], Lt = ["id"], Pt = ["stop-color"], Vt = ["stop-color"], Ot = ["stop-color"], Rt = ["id"], Mt = ["stop-color"], Bt = ["stop-color"], jt = ["stop-color"], At = ["id"], Xt = ["stop-color"], Gt = ["stop-color"], Et = ["stop-color"], Ut = { key: 2 }, Dt = ["x", "y", "font-size", "font-weight", "fill"], Yt = ["x", "y", "font-size", "font-weight", "fill"], qt = ["d", "stroke"], Ht = ["cx", "cy", "r", "fill"], Wt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], Kt = { key: 3 }, Jt = ["x", "y", "font-size", "fill", "onClick"], Qt = { key: 0 }, Zt = ["x", "y", "fill", "font-size", "font-weight"], el = ["x", "y", "height", "width", "fill", "rx", "onClick"], tl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], ll = { key: 4 }, al = ["x", "y", "fill", "font-size", "onClick"], ol = ["d", "stroke"], sl = ["fill", "cx", "cy", "r", "onClick"], ul = { key: 5 }, nl = ["x", "y", "font-size", "font-weight", "fill"], rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = ["y", "height", "width"], cl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, dl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, vl = {
19
19
  viewBox: "0 0 20 20",
20
20
  height: "16",
21
21
  width: "16"
@@ -23,7 +23,7 @@ const _t = ["id"], xt = {
23
23
  viewBox: "0 0 20 20",
24
24
  height: "16",
25
25
  width: "16"
26
- }, _l = ["fill"], xl = ["cx", "cy", "fill"], ml = ["d", "stroke"], kl = ["cx", "cy", "fill"], wl = ["d", "stroke"], $l = ["cx", "cy", "fill"], Cl = ["cx", "cy", "fill"], Tl = ["x", "y", "fill", "font-size", "font-weight"], zl = ["x", "y", "fill", "font-size", "font-weight"], Nl = ["x", "text-anchor", "y", "fill", "font-size"], Sl = ["x", "text-anchor", "y", "fill", "font-size"], Fl = ["x", "text-anchor", "y", "fill", "font-size"], Il = ["x", "text-anchor", "y", "fill", "font-size"], Ll = ["x", "text-anchor", "y", "fill", "font-size"], Pl = ["x", "y", "font-size", "fill"], Vl = ["x", "y", "font-size", "fill"], Rl = ["x", "y", "font-size", "fill"], Ol = {
26
+ }, _l = ["fill"], xl = ["cx", "cy", "fill"], ml = ["d", "stroke"], kl = ["cx", "cy", "fill"], wl = ["d", "stroke"], $l = ["cx", "cy", "fill"], Cl = ["cx", "cy", "fill"], Tl = ["x", "y", "fill", "font-size", "font-weight"], zl = ["x", "y", "fill", "font-size", "font-weight"], Nl = ["x", "text-anchor", "y", "fill", "font-size"], Sl = ["x", "text-anchor", "y", "fill", "font-size"], Fl = ["x", "text-anchor", "y", "fill", "font-size"], Il = ["x", "text-anchor", "y", "fill", "font-size"], Ll = ["x", "text-anchor", "y", "fill", "font-size"], Pl = ["x", "y", "font-size", "fill"], Vl = ["x", "y", "font-size", "fill"], Ol = ["x", "y", "font-size", "fill"], Rl = {
27
27
  key: 4,
28
28
  class: "vue-data-ui-watermark"
29
29
  }, Ml = {
@@ -49,32 +49,33 @@ const _t = ["id"], xt = {
49
49
  emits: ["selectRoot", "selectBranch", "selectNut"],
50
50
  setup(Ie, { expose: Le, emit: Pe }) {
51
51
  He((l) => ({
52
- "4c4794f5": l.tdo
52
+ "2dd0b74d": l.tdo
53
53
  }));
54
- const { vue_ui_chestnut: Ve } = Ze(), R = Ie, Y = m(() => !!R.dataset && R.dataset.length), w = T(et()), ie = T(null), Re = T(null), ce = T(0), e = m({
54
+ const { vue_ui_chestnut: Ve } = Ze(), O = Ie, Y = m(() => !!O.dataset && O.dataset.length), w = T(et()), ie = T(null), Oe = T(null), ce = T(0), e = m({
55
55
  get: () => he(),
56
56
  set: (l) => l
57
57
  }), { userOptionsVisible: te, setUserOptionsVisibility: de, keepUserOptionState: ve } = bt({ config: e.value }), { svgRef: ye } = pt({ config: e.value.style.chart.layout.title });
58
58
  function he() {
59
59
  const l = Fe({
60
- userConfig: R.config,
60
+ userConfig: O.config,
61
61
  defaultConfig: Ve
62
62
  });
63
63
  return l.theme ? {
64
64
  ...Fe({
65
- userConfig: lt.vue_ui_chestnut[l.theme] || R.config,
65
+ userConfig: lt.vue_ui_chestnut[l.theme] || O.config,
66
66
  defaultConfig: l
67
67
  }),
68
68
  customPalette: tt[l.theme] || P
69
69
  } : l;
70
70
  }
71
- We(() => R.config, (l) => {
71
+ We(() => O.config, (l) => {
72
72
  e.value = he(), te.value = !e.value.userOptions.showOnChartHover, E.value.showTable = e.value.table.show, ke();
73
73
  }, { deep: !0 });
74
74
  const { isPrinting: fe, isImaging: be, generatePdf: pe, generateImage: ge } = it({
75
75
  elementId: `vue-ui-chestnut_${w.value}`,
76
- fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut"
77
- }), Oe = m(() => e.value.userOptions.show), le = m(() => at(e.value.customPalette)), E = T({
76
+ fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
77
+ options: e.value.userOptions.print
78
+ }), Re = m(() => e.value.userOptions.show), le = m(() => at(e.value.customPalette)), E = T({
78
79
  showTable: e.value.table.show
79
80
  }), ae = T(null), _e = T(!1), Me = m(() => e.value.table.responsiveBreakpoint), r = T({
80
81
  gap: 6,
@@ -96,7 +97,7 @@ const _t = ["id"], xt = {
96
97
  width: r.value.width - (r.value.padding.left + r.value.padding.right),
97
98
  height: r.value.height - (r.value.padding.top + r.value.padding.bottom),
98
99
  seedX: r.value.padding.left + 64
99
- })), O = m(() => Y.value ? R.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (R.dataset.forEach((l, i) => {
100
+ })), R = m(() => Y.value ? O.dataset.flatMap((l) => (l.branches || []).map((i) => i.value || 0)).reduce((l, i) => l + i, 0) : 0), N = m(() => (O.dataset.forEach((l, i) => {
100
101
  ne({
101
102
  datasetObject: l,
102
103
  requiredAttributes: ["name", "branches"]
@@ -132,7 +133,7 @@ const _t = ["id"], xt = {
132
133
  });
133
134
  });
134
135
  });
135
- }), R.dataset.map((l, i) => {
136
+ }), O.dataset.map((l, i) => {
136
137
  const t = (l.branches || []).map((u) => u.value || 0).reduce((u, b) => u + b, 0);
137
138
  return {
138
139
  ...l,
@@ -154,14 +155,14 @@ const _t = ["id"], xt = {
154
155
  table: {
155
156
  rootName: l.name,
156
157
  rootValue: t,
157
- rootToTotal: t / O.value,
158
+ rootToTotal: t / R.value,
158
159
  branchName: u.name,
159
160
  branchValue: u.value,
160
- branchToTotal: u.value / O.value,
161
+ branchToTotal: u.value / R.value,
161
162
  branchToRoot: u.value / t,
162
163
  nutName: y.name,
163
164
  nutValue: y.value,
164
- nutToTotal: y.value / O.value,
165
+ nutToTotal: y.value / R.value,
165
166
  nutToRoot: y.value / t,
166
167
  nutToBranch: y.value / u.value
167
168
  },
@@ -172,7 +173,7 @@ const _t = ["id"], xt = {
172
173
  branchTotal: u.value >= 0 ? u.value : 0,
173
174
  proportionToBranch: y.value / u.value,
174
175
  proportionToRoot: y.value / t,
175
- proportionToTree: y.value / O.value,
176
+ proportionToTree: y.value / R.value,
176
177
  rootIndex: i,
177
178
  id: y.id || `nut_${i}_${b}_${p}_${w.value}`,
178
179
  color: re(y.color) || le.value[p] || P[p] || P[p % P.length],
@@ -248,7 +249,7 @@ const _t = ["id"], xt = {
248
249
  ke();
249
250
  });
250
251
  function ke() {
251
- ot(R.dataset) && ee({
252
+ ot(O.dataset) && ee({
252
253
  componentName: "VueUiChestnut",
253
254
  type: "dataset"
254
255
  });
@@ -274,7 +275,7 @@ const _t = ["id"], xt = {
274
275
  });
275
276
  function we() {
276
277
  Te(() => {
277
- const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", O.value], [""]], i = v.value.head, t = v.value.body.map((y, p) => [
278
+ const l = [[e.value.style.chart.layout.title.text], [e.value.style.chart.layout.title.subtitle.text], [""], ["Grand total", R.value], [""]], i = v.value.head, t = v.value.body.map((y, p) => [
278
279
  v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootName,
279
280
  v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootValue,
280
281
  v.value.body[p - 1] && v.value.body[p - 1].rootName === y.rootName ? "" : y.rootToTotal,
@@ -326,10 +327,10 @@ const _t = ["id"], xt = {
326
327
  active: W.value,
327
328
  onClose: ue
328
329
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
329
- Oe.value ? (a(), o("div", xt, null, 512)) : f("", !0),
330
+ Re.value ? (a(), o("div", xt, null, 512)) : f("", !0),
330
331
  e.value.userOptions.show && Y.value && (n(ve) || n(te)) ? (a(), K(ct, {
331
332
  ref_key: "details",
332
- ref: Re,
333
+ ref: Oe,
333
334
  key: `user_options_${ce.value}`,
334
335
  backgroundColor: e.value.style.chart.backgroundColor,
335
336
  color: e.value.style.chart.color,
@@ -504,7 +505,7 @@ const _t = ["id"], xt = {
504
505
  s("stop", {
505
506
  offset: "100%",
506
507
  "stop-color": n(F)("#FFFFFF", 0)
507
- }, null, 8, Rt)
508
+ }, null, 8, Ot)
508
509
  ], 8, Lt),
509
510
  s("radialGradient", {
510
511
  cx: "50%",
@@ -526,7 +527,7 @@ const _t = ["id"], xt = {
526
527
  offset: "100%",
527
528
  "stop-color": n(F)("#FFFFFF", 0)
528
529
  }, null, 8, jt)
529
- ], 8, Ot),
530
+ ], 8, Rt),
530
531
  s("radialGradient", {
531
532
  cx: "50%",
532
533
  cy: "50%",
@@ -569,10 +570,10 @@ const _t = ["id"], xt = {
569
570
  onClick: $
570
571
  }, c(n(G)(
571
572
  e.value.style.chart.layout.grandTotal.formatter,
572
- O.value,
573
+ R.value,
573
574
  n(z)({
574
575
  p: e.value.style.chart.layout.grandTotal.prefix,
575
- v: O.value,
576
+ v: R.value,
576
577
  s: e.value.style.chart.layout.grandTotal.suffix,
577
578
  r: e.value.style.chart.layout.grandTotal.roundingValue
578
579
  })
@@ -773,7 +774,7 @@ const _t = ["id"], xt = {
773
774
  { datapoint: t }
774
775
  )), 1),
775
776
  Z(" (" + c(n(z)({
776
- v: t.total / O.value * 100,
777
+ v: t.total / R.value * 100,
777
778
  s: "%",
778
779
  r: e.value.style.chart.layout.legend.roundingPercentage
779
780
  })) + ") ", 1)
@@ -1027,14 +1028,14 @@ const _t = ["id"], xt = {
1027
1028
  fill: e.value.style.chart.layout.branches.labels.color,
1028
1029
  onClick: $
1029
1030
  }, c(n(z)({
1030
- v: t.value / O.value * 100,
1031
+ v: t.value / R.value * 100,
1031
1032
  s: "%",
1032
1033
  r: e.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
1033
- })) + " " + c(e.value.translations.proportionToTree), 9, Rl)) : f("", !0)
1034
+ })) + " " + c(e.value.translations.proportionToTree), 9, Ol)) : f("", !0)
1034
1035
  ]))), 256)),
1035
1036
  S(l.$slots, "svg", { svg: r.value }, void 0, !0)
1036
1037
  ], 14, mt)) : f("", !0),
1037
- l.$slots.watermark ? (a(), o("div", Ol, [
1038
+ l.$slots.watermark ? (a(), o("div", Rl, [
1038
1039
  S(l.$slots, "watermark", J(Q({ isPrinting: n(fe) || n(be) })), void 0, !0)
1039
1040
  ])) : f("", !0),
1040
1041
  Y.value ? f("", !0) : (a(), K(dt, {
@@ -1225,7 +1226,7 @@ const _t = ["id"], xt = {
1225
1226
  }, 8, ["config"])) : f("", !0)
1226
1227
  ], 46, _t));
1227
1228
  }
1228
- }, ja = /* @__PURE__ */ gt(Ca, [["__scopeId", "data-v-3dcea4e3"]]);
1229
+ }, ja = /* @__PURE__ */ gt(Ca, [["__scopeId", "data-v-c0036b55"]]);
1229
1230
  export {
1230
1231
  ja as default
1231
1232
  };
@@ -1,14 +1,14 @@
1
1
  import { useCssVars as We, computed as w, ref as p, watch as $e, onMounted as Xe, watchEffect as Ye, createElementBlock as b, openBlock as f, unref as m, normalizeStyle as K, normalizeClass as Te, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Ze, withCtx as z, normalizeProps as U, guardReactiveProps as B, createVNode as Je, Fragment as Q, renderList as Ke, createElementVNode as C, mergeProps as Pe, toDisplayString as j, createTextVNode as Qe, nextTick as Se } from "vue";
2
- import { u as et, c as Ie, t as ie, p as ee, a as tt, o as lt, e as at, b as ot, d as st, h as Oe, f as ce, X as nt, l as rt, G as q, a8 as ut, q as it, r as ct, i as Fe } from "./index-BaaDnc4F.js";
3
- import { u as Ne } from "./useNestedProp-D8vQcOps.js";
4
- import { u as vt, U as dt } from "./usePrinter-y4-4tCWT.js";
5
- import { _ as ht } from "./Title-D_MGglyN.js";
6
- import { P as ft } from "./PenAndPaper-DR58HO_U.js";
2
+ import { u as et, c as Ie, t as ie, p as ee, a as tt, o as lt, e as at, b as ot, d as st, h as Oe, f as ce, X as nt, l as rt, G as q, a9 as ut, q as it, r as ct, i as Fe } from "./index-DWsIpwzs.js";
3
+ import { u as Ne } from "./useNestedProp-Bole8bsm.js";
4
+ import { u as vt, U as dt } from "./usePrinter-B8LELMkA.js";
5
+ import { _ as ht } from "./Title-y0r2c8bY.js";
6
+ import { P as ft } from "./PenAndPaper-DOTH2X_u.js";
7
7
  import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { _ as mt } from "./PackageVersion-D9Lm1C1X.js";
9
- import pt from "./vue-ui-accordion-CF9kQTXq.js";
10
- import { D as bt } from "./DataTable-DvwmNjb-.js";
11
- import gt from "./vue-ui-skeleton-6RiQNJSb.js";
8
+ import { _ as mt } from "./PackageVersion-Cz-oD7U6.js";
9
+ import pt from "./vue-ui-accordion-WrimcQK1.js";
10
+ import { D as bt } from "./DataTable-B_PZ5EQ5.js";
11
+ import gt from "./vue-ui-skeleton-DDZb9FFJ.js";
12
12
  import { u as kt } from "./useChartAccessibility-BWojgys7.js";
13
13
  import { t as xt, u as wt } from "./useResponsive-vZgZwV-S.js";
14
14
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -100,8 +100,8 @@ const zt = ["id"], $t = ["xmlns", "viewBox", "height", "width"], Tt = ["x", "y",
100
100
  emits: ["selectDatapoint"],
101
101
  setup(r, { expose: c, emit: h }) {
102
102
  We((t) => ({
103
- bf62f51c: N.value,
104
- "623b642a": oe.value
103
+ cf72f1fe: N.value,
104
+ "4e89318c": oe.value
105
105
  }));
106
106
  const i = r, v = h, { vue_ui_circle_pack: o } = et(), a = w(() => !!i.dataset && i.dataset.length), s = p(Ie()), u = p(null), g = p(null), $ = p(null), E = p(0), R = p(0), A = p(0), W = p(null), e = w({
107
107
  get: () => fe(),
@@ -129,7 +129,8 @@ const zt = ["id"], $t = ["xmlns", "viewBox", "height", "width"], Tt = ["x", "y",
129
129
  }, { deep: !0 });
130
130
  const { isPrinting: ye, isImaging: me, generatePdf: pe, generateImage: be } = vt({
131
131
  elementId: `vue-ui-circle-pack_${s.value}`,
132
- fileName: e.value.style.chart.title.text || "vue-ui-circle-pack"
132
+ fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
133
+ options: e.value.userOptions.print
133
134
  }), De = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), D = p({
134
135
  showTable: e.value.table.show
135
136
  }), ge = p(null), I = p({ h: 10, w: 10 }), ke = p(0), O = p([0, 0, 100, 100]), X = p({ h: 0, w: 0 });
@@ -652,7 +653,7 @@ const zt = ["id"], $t = ["xmlns", "viewBox", "height", "width"], Tt = ["x", "y",
652
653
  }, 8, ["config"])) : k("", !0)
653
654
  ], 46, zt));
654
655
  }
655
- }, sl = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-6e0719a8"]]);
656
+ }, sl = /* @__PURE__ */ Ct(Bt, [["__scopeId", "data-v-bb4f66a5"]]);
656
657
  export {
657
658
  sl as default
658
659
  };