vue-data-ui 2.7.2 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/{Arrow-Cuf9zUpa.cjs → Arrow-Bslu6In_.cjs} +1 -1
  2. package/dist/{Arrow-SOQeOwmT.js → Arrow-Kbu7LT-f.js} +1 -1
  3. package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-BLhJaEYy.js} +4 -3
  4. package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-WIhlX3LN.cjs} +1 -1
  5. package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-Dlg-p-yo.js} +3 -3
  6. package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-mXlj2N11.cjs} +1 -1
  7. package/dist/{DataTable-C_28ZqiP.js → DataTable-DOKlm7k4.js} +2 -2
  8. package/dist/{DataTable-ByOfBGEi.cjs → DataTable-c3nDhwbO.cjs} +1 -1
  9. package/dist/{Legend-mrAy7yUC.cjs → Legend-Bhl2d6oj.cjs} +1 -1
  10. package/dist/{Legend-CmKaL7xe.js → Legend-CIjMjfNk.js} +2 -2
  11. package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BCLALL_i.js} +1 -1
  12. package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-DFYAej2o.cjs} +1 -1
  13. package/dist/PenAndPaper-CAqWCUZx.cjs +1 -0
  14. package/dist/PenAndPaper-CZs431Nx.js +374 -0
  15. package/dist/{Shape-iIO-95sh.js → Shape-D9MuIPm8.js} +1 -1
  16. package/dist/{Shape-x7U3IhoM.cjs → Shape-wMij_bxG.cjs} +1 -1
  17. package/dist/{Slicer-C49MotZz.js → Slicer-CqYLlNlU.js} +2 -2
  18. package/dist/{Slicer-Ct66sqV1.cjs → Slicer-Duh-nBCD.cjs} +1 -1
  19. package/dist/{Title-BgVFZwZZ.cjs → Title-C5w8bVlo.cjs} +1 -1
  20. package/dist/{Title-Co3F59jq.js → Title-UjBqdYyD.js} +1 -1
  21. package/dist/{Tooltip-Cr89wMKa.js → Tooltip-3NNIdJ6N.js} +1 -1
  22. package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-Dbe23pmt.cjs} +1 -1
  23. package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-6NoDv4_U.js} +1 -1
  24. package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-C-_IolaZ.cjs} +1 -1
  25. package/dist/{img-DQDP5JIH.js → img-BxGd_UqS.js} +1 -1
  26. package/dist/{img-DgRUFehB.cjs → img-DCkGlbCr.cjs} +1 -1
  27. package/dist/{index-gC66Se26.js → index-D3VntmA9.js} +1 -1
  28. package/dist/{index-BeJeDy5m.cjs → index-MIJJ8liG.cjs} +1 -1
  29. package/dist/{pdf-Bu1ahAX2.cjs → pdf-BGp1xMhT.cjs} +1 -1
  30. package/dist/{pdf-lJiGVhtL.js → pdf-BpVckOt1.js} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +2 -1
  33. package/dist/types/vue-data-ui.d.ts +2 -1
  34. package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-DTlOqz2P.js} +1 -1
  35. package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-DwR4JSzw.cjs} +1 -1
  36. package/dist/{usePrinter-KMFl0n0s.js → usePrinter-H3tAjGXs.js} +3 -3
  37. package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-U1x-RAEA.cjs} +1 -1
  38. package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-BuY9ggUz.cjs} +1 -1
  39. package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-DFwVHeO8.js} +60 -60
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +1 -1
  42. package/dist/vue-ui-3d-bar-DeTBYGV_.cjs +19 -0
  43. package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-NNib9NTc.js} +30 -30
  44. package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-DGJQIcdB.js} +3 -3
  45. package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-cBSqrYy3.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-DWG7C-nA.js} +22 -22
  47. package/dist/vue-ui-age-pyramid-DfGSS3SE.cjs +1 -0
  48. package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-Bpy0V7AA.cjs} +1 -1
  49. package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-D21j4NL0.js} +2 -2
  50. package/dist/vue-ui-bullet-CrgeKJBE.cjs +34 -0
  51. package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-MrNlqcTX.js} +36 -36
  52. package/dist/vue-ui-candlestick-DfEQ057F.cjs +2 -0
  53. package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-Dgwjzuq0.js} +11 -11
  54. package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-B9AHiJLA.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-TOSDOJ0J.js} +4 -4
  56. package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-BQwGKI2l.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-DAlxKIqD.js} +32 -32
  58. package/dist/vue-ui-circle-pack-B9HW-E4V.cjs +1 -0
  59. package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-BjD7UG4l.js} +44 -44
  60. package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-Bv_hn_5f.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-CS0L4MjH.js} +2 -2
  62. package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-Cu4QabFb.js} +3 -3
  63. package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-DGJjS8TM.cjs} +1 -1
  64. package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-BusMzORo.cjs} +1 -1
  65. package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-CrqD5QXP.js} +2 -2
  66. package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-CbDkvk9s.js} +12 -12
  67. package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DKD_efmP.js} +69 -69
  68. package/dist/vue-ui-donut-evolution-Dul--Pi_.cjs +1 -0
  69. package/dist/vue-ui-donut-vqs5auMD.cjs +1 -0
  70. package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BGN-Rshy.js} +52 -52
  71. package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-CB6lYwMc.cjs} +1 -1
  72. package/dist/vue-ui-flow-CDPkL02l.cjs +1 -0
  73. package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-g93Xo1mO.js} +75 -75
  74. package/dist/vue-ui-funnel-D1PhFKgP.cjs +1 -0
  75. package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-r_WI2IRS.js} +28 -28
  76. package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-B4JnwjLW.js} +39 -39
  77. package/dist/vue-ui-galaxy-DSXcoM3k.cjs +1 -0
  78. package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-BPz7mbOb.js} +26 -26
  79. package/dist/vue-ui-gauge-Ct1Knstr.cjs +1 -0
  80. package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-BbUqDkQz.js} +3 -3
  81. package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-tet3qRDX.cjs} +1 -1
  82. package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BbmFxESu.js} +10 -10
  83. package/dist/vue-ui-heatmap-RHN_eSK2.cjs +1 -0
  84. package/dist/vue-ui-history-plot-B8_Kig_-.cjs +1 -0
  85. package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-CJFtY1Rm.js} +35 -35
  86. package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-C0IWPkaZ.cjs} +1 -1
  87. package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-CQo8VsEv.js} +3 -3
  88. package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-8wZYNxLC.js} +2 -2
  89. package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-DoOFKxep.cjs} +1 -1
  90. package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-DHb8Roml.js} +45 -45
  91. package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-HnReqNMq.cjs} +1 -1
  92. package/dist/vue-ui-mood-radar-BjmCUY0q.cjs +1 -0
  93. package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-CdBmESCg.js} +40 -40
  94. package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-CO7sSeR-.js} +65 -65
  95. package/dist/vue-ui-nested-donuts-SBaCzHQP.cjs +17 -0
  96. package/dist/vue-ui-onion-BehdICTa.cjs +5 -0
  97. package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-Ci15BQ0y.js} +75 -75
  98. package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-BJbrb-Mp.js} +38 -38
  99. package/dist/vue-ui-parallel-coordinate-plot-BLLONfts.cjs +8 -0
  100. package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-BZTZY3LG.js} +54 -54
  101. package/dist/vue-ui-quadrant-ntmlYIVx.cjs +1 -0
  102. package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-B2OUF1Pk.js} +9 -9
  103. package/dist/vue-ui-quick-chart-BCdm0tx2.cjs +15 -0
  104. package/dist/vue-ui-radar-CUoLdojY.cjs +1 -0
  105. package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-D8DHrSPP.js} +55 -55
  106. package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-BWlmz08s.cjs} +1 -1
  107. package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-D4H6cT0d.js} +2 -2
  108. package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-CWvX8cvJ.js} +7 -7
  109. package/dist/vue-ui-relation-circle-DighSxmd.cjs +1 -0
  110. package/dist/vue-ui-rings-CPIzjzdm.cjs +2 -0
  111. package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-Dq5YT7h-.js} +62 -62
  112. package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BMuJyp6q.js} +44 -44
  113. package/dist/vue-ui-scatter-BSgMQLjw.cjs +1 -0
  114. package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-DOE444ST.cjs} +1 -1
  115. package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-pHcbvN3-.js} +3 -3
  116. package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-BsPExuQ7.js} +2 -2
  117. package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-bHv8hVve.cjs} +1 -1
  118. package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-S0FbKqDW.cjs} +1 -1
  119. package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-eJ5IZSRQ.js} +5 -5
  120. package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-B1pwFeeg.cjs} +1 -1
  121. package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-B9E03kBf.js} +4 -4
  122. package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-BpAFpJN9.cjs} +1 -1
  123. package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CbtRwF8H.js} +4 -4
  124. package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-4gAnz36n.cjs} +1 -1
  125. package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-BJfFPQ-X.js} +5 -5
  126. package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-CJ8rlJiI.cjs} +1 -1
  127. package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-CLz-PMi0.js} +4 -4
  128. package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-C5ZzOhRM.js} +5 -5
  129. package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-ja3t34Mt.cjs} +1 -1
  130. package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-BnuJOk6L.js} +86 -86
  131. package/dist/vue-ui-stackbar-DSWEq3Pa.cjs +6 -0
  132. package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-Cbr3Dkmd.js} +36 -36
  133. package/dist/vue-ui-strip-plot-CyiaXAxw.cjs +1 -0
  134. package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CPJeRMDV.cjs} +1 -1
  135. package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-Cr6jEi4z.js} +1 -1
  136. package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BfKruH6W.cjs} +1 -1
  137. package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-C0J52xWN.js} +4 -4
  138. package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-C9PHXjbW.js} +5 -5
  139. package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-CGUs_6Ij.cjs} +1 -1
  140. package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-Cs8Xt7tQ.js} +50 -50
  141. package/dist/vue-ui-thermometer-DWC--OtD.cjs +1 -0
  142. package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-DD0VvMEs.cjs} +1 -1
  143. package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-DDZHmPLV.js} +5 -5
  144. package/dist/vue-ui-tiremarks-B_koqVkj.cjs +1 -0
  145. package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-DHAdNbAA.js} +25 -25
  146. package/dist/vue-ui-treemap-C_yhbpyF.cjs +1 -0
  147. package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-CfH-P5Oh.js} +12 -12
  148. package/dist/vue-ui-vertical-bar-BRplGFjj.cjs +4 -0
  149. package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-oBdc4YQS.js} +80 -80
  150. package/dist/vue-ui-waffle-Bg5T7RVn.cjs +1 -0
  151. package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-DZ2zIujl.js} +45 -45
  152. package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BerXCO4A.js} +27 -27
  153. package/dist/vue-ui-wheel-Bj3Z92nh.cjs +1 -0
  154. package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-BWQ1ogz9.cjs} +1 -1
  155. package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-U5KISxTe.js} +72 -72
  156. package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-C078AHoi.cjs} +2 -2
  157. package/dist/vue-ui-xy-canvas-BpblELcE.js +1672 -0
  158. package/dist/vue-ui-xy-canvas-C76OoGNJ.cjs +9 -0
  159. package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-y9zEQYMK.js} +16 -16
  160. package/package.json +1 -1
  161. package/dist/PenAndPaper-CmcfpltX.js +0 -243
  162. package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
  163. package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
  164. package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
  165. package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
  166. package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
  167. package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
  168. package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
  169. package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
  170. package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
  171. package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
  172. package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
  173. package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
  174. package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
  175. package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
  178. package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
  180. package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
  182. package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
  184. package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
  185. package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
  186. package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
  188. package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
  189. package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
  190. package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
  191. package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
  192. package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
  193. package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
  194. package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
  195. package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-MIJJ8liG.cjs"),De=require("./Title-C5w8bVlo.cjs"),pe=require("./usePrinter-U1x-RAEA.cjs"),Fe=require("./DataTable-c3nDhwbO.cjs"),Pe=require("./Legend-Bhl2d6oj.cjs"),Ie=require("./vue-ui-skeleton-DOE444ST.cjs"),Oe=require("./Slicer-Duh-nBCD.cjs"),Te=require("./vue-ui-accordion-cBSqrYy3.cjs"),ke=require("./useNestedProp-DwR4JSzw.cjs"),He=require("./PackageVersion-DFYAej2o.cjs"),Re=require("./PenAndPaper-CAqWCUZx.cjs"),Me=require("./useUserOptionState-BgepsfED.cjs"),Ue=require("./useChartAccessibility-Cm7nkzTG.cjs"),qe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),We=["id"],Xe=["xmlns","viewBox"],Ge=["x","y","width","height"],je=["id"],Ye=["stop-color"],Ke=["stop-color"],Ze=["id"],Je=["stop-color"],Qe=["stop-color"],et=["stop-color"],tt={key:1},lt=["x1","x2","y1","y2","stroke","stroke-width"],ot=["x1","x2","y1","y2","stroke","stroke-width"],at={key:0},nt=["x1","x2","y1","y2","stroke","stroke-width"],ut=["x1","x2","y1","y2","stroke","stroke-width"],rt=["x","y","font-size","fill","font-weight"],st=["text-anchor","font-size","fill","transform"],ct=["x1","y1","x2","y2","stroke","stroke-width"],it={key:1},dt=["cx","cy","r","fill"],vt={key:0},ht={key:0},yt=["d","stroke"],mt=["text-anchor","x","y","fill"],ft=["cx","cy","r","fill"],gt={key:0},pt=["cx","cy","fill"],kt={key:1},bt=["d","fill","stroke"],xt={key:2},Bt=["d","fill","stroke"],Ct=["x","y","font-size","fill"],_t=["x","y","width","fill","onClick"],Et=["x","y","width","height","onMouseenter","onClick"],Nt={key:4,"data-cy-zoom":"",class:"vue-ui-donut-evolution-dialog"},wt=["x","y","width","height","fill"],St=["x1","y1","x2","y2","stroke"],Lt=["x1","y2","x2","y1","stroke"],zt=["cx","cy","r"],Vt=["d","stroke"],At=["cx","cy","r","fill"],$t=["d","fill","stroke"],Dt={class:"vue-ui-donut-evolution-focus"},Ft=["text-anchor","x","y","fill"],Pt=["cx","cy","r","fill"],It=["cx","cy","r","fill"],Ot=["x","y","fill"],Tt=["x","y","font-size","fill"],Ht={key:5,class:"vue-data-ui-watermark"},Rt=["onClick"],Mt={key:0},Ut={key:1},qt={key:9,ref:"source",dir:"auto"},Wt={key:0},Xt={key:1},Gt={__name:"vue-ui-donut-evolution",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(be,{expose:xe,emit:Be}){const{vue_ui_donut_evolution:Ce}=r.useConfig(),y=be,$=e.computed(()=>!!y.dataset&&y.dataset.length),i=e.ref({start:0,end:Math.max(...y.dataset.map(o=>o.values.length))});function q(){W()}const N=e.ref(null);async function W(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&N.value?(t.value.style.chart.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),N.value&&N.value.setEndValue(_e(t.value.style.chart.zoom.endIndex+1)))):(i.value={start:0,end:E.value},Y.value+=1)}function _e(o){const a=E.value;return o>a?a:o<0||t.value.style.chart.zoom.startIndex!==null&&o<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:o}e.onMounted(()=>{X()});function X(){r.objectIsEmpty(y.dataset)?r.error({componentName:"VueUiDonutEvolution",type:"dataset"}):y.dataset.length&&y.dataset.forEach((o,a)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:l,index:a})})}),W()}const _=e.ref(r.createUid()),m=e.ref([]),h=e.ref(null),P=e.ref(null),k=e.ref(!1),b=e.ref(null),G=e.ref(null),Ee=e.ref(null),j=e.ref(0),Y=e.ref(0),K=e.ref(0),Z=e.ref(0),J=e.ref(0),Q=Be,t=e.computed({get:()=>oe(),set:o=>o}),{userOptionsVisible:I,setUserOptionsVisibility:ee,keepUserOptionState:te}=Me.useUserOptionState({config:t.value}),{svgRef:le}=Ue.useChartAccessibility({config:t.value.style.chart.title});function oe(){const o=ke.useNestedProp({userConfig:y.config,defaultConfig:Ce});let a={};return o.theme?a={...ke.useNestedProp({userConfig:r.themes.vue_ui_donut_evolution[o.theme]||y.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:a=o,y.config&&r.hasDeepProperty(y.config,"style.chart.zoom.startIndex")?a.style.chart.zoom.startIndex=y.config.style.chart.zoom.startIndex:a.style.chart.zoom.startIndex=null,y.config&&r.hasDeepProperty(y.config,"style.chart.zoom.endIndex")?a.style.chart.zoom.endIndex=y.config.style.chart.zoom.endIndex:a.style.chart.zoom.endIndex=null,a}e.watch(()=>y.config,o=>{t.value=oe(),I.value=!t.value.userOptions.showOnChartHover,X(),K.value+=1,Z.value+=1,J.value+=1,z.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>y.dataset,o=>{q()},{deep:!0});const{isPrinting:ae,isImaging:ne,generatePdf:ue,generateImage:re}=pe.usePrinter({elementId:_.value,fileName:t.value.style.chart.title.text||"vue-ui-donut-evolution",options:t.value.userOptions.print}),Ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),we=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),z=e.ref({showTable:t.value.table.show}),u=e.computed(()=>({top:t.value.style.chart.layout.padding.top,right:t.value.style.chart.layout.padding.right,bottom:t.value.style.chart.layout.padding.bottom,left:t.value.style.chart.layout.padding.left})),c=e.computed(()=>{const o=t.value.style.chart.layout.height,a=t.value.style.chart.layout.width,l=o-u.value.top-u.value.bottom,s=a-u.value.left-u.value.right;return{absoluteHeight:o,absoluteWidth:a,centerX:u.value.left+s/2,centerY:u.value.top+l/2,height:l,width:s}}),C=e.computed(()=>(y.dataset.forEach((o,a)=>{[null,void 0].includes(o.name)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"name",index:a}),[null,void 0].includes(o.values)&&r.error({componentName:"VueUiDonutEvolution",type:"datasetSerieAttribute",property:"values",index:a})}),y.dataset.map((o,a)=>({...o,values:r.sanitizeArray(o.values),color:r.convertColorToHex(o.color)||we.value[a]||r.palette[a]||r.palette[a%r.palette.length],length:(o.values||[]).length,uid:r.createUid()})))),V=e.computed(()=>C.value.filter(o=>!m.value.includes(o.uid)).map(o=>({...o,values:o.values.filter((a,l)=>l>=i.value.start&&l<=i.value.end)}))),E=e.computed(()=>Math.max(...V.value.map(o=>o.length))),g=e.computed(()=>c.value.width/(i.value.end-i.value.start)),f=e.computed(()=>{const o=[];for(let n=0;n<i.value.end-i.value.start;n+=1){const v=V.value.map(B=>B.values[n]??null),d=v.filter(B=>[void 0,null].includes(B)).length===v.length,x=v.reduce((B,p)=>B+p,0),U=v.map(B=>B/x),L=u.value.left+g.value*n+g.value/2;o.push({index:n,percentages:U,subtotal:d||x<0?null:x,values:v,x:L})}const a=0,l=Math.max(...o.map(n=>n.subtotal)),s=o.length===1?l*2:l;return o.map((n,v)=>{const d=g.value/2*.7,x=d>c.value.width/16?c.value.width/16:d,U=h.value===n.index?c.value.width/16:x,L=o.length>4?d*2:d*2>g.value/2*.7?g.value/2*.7:d*2,B=c.value.absoluteHeight-u.value.bottom-c.value.height*n.subtotal/r.calculateNiceScale(a,s,t.value.style.chart.layout.grid.yAxis.dataLabels.steps).max;return{...n,y:B,radius:x,activeRadius:U,hoverRadius:L,donut:r.makeDonut({series:V.value.map((p,ge)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,x,x,1.99999,2,1,360,105.25,x/2),donutHover:r.makeDonut({series:V.value.map((p,ge)=>({color:p.color,name:p.name,value:p.values[v]??0}))},n.x,B,L,L,1.99999,2,1,360,105.25,L/2),donutFocus:r.makeDonut({series:V.value.map((p,ge)=>({color:p.color,name:p.name,value:p.values[v]??0}))},c.value.centerX,c.value.centerY,c.value.height/3.6,c.value.height/3.6,1.99999,2,1,360,105.25,c.value.height/6)}})});function D(o,a,l){return r.applyDataLabel(t.value.style.chart.layout.dataLabels.formatter,o,r.dataLabel({p:t.value.style.chart.layout.dataLabels.prefix,v:o,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.dataLabels.rounding}),{datapoint:a,index:l})}const O=e.computed(()=>({max:Math.max(...f.value.map(o=>o.subtotal)),min:0})),w=e.computed(()=>{const o=f.value.length===1?O.value.max*2:O.value.max;return r.calculateNiceScale(O.value.min,o,t.value.style.chart.layout.grid.yAxis.dataLabels.steps)});function Se(o){return o/w.value.max}const Le=e.computed(()=>w.value.ticks.map(o=>({y:c.value.absoluteHeight-u.value.bottom-c.value.height*Se(o),value:o})));function se(o,a){return isNaN(o.value/r.sumByAttribute(a,"value"))?0:(o.value/r.sumByAttribute(a,"value")*100).toFixed(0)+"%"}function ce(){k.value||(h.value=null,P.value=null)}function ze(o){k.value||(h.value=o.index,P.value=o)}const T=e.ref(null);function H(o,a){o.subtotal&&(P.value=null,h.value=null,k.value=!0,b.value=o,[null,void 0].includes(a)||(T.value=a))}function ie(){b.value=null,k.value=!1,T.value=null}const de=e.computed(()=>C.value.map((o,a)=>({name:o.name,value:o.values.slice(i.value.start,i.value.end).reduce((l,s)=>l+s,0),shape:"circle",uid:o.uid,color:o.color})).sort((o,a)=>a.value-o.value).map(o=>({...o,opacity:m.value.includes(o.uid)?.5:1,segregate:()=>R(o.uid),isSegregated:m.value.includes(o.uid)}))),ve=e.computed(()=>f.value.map(o=>o.subtotal).reduce((o,a)=>o+a,0)),Ve=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function R(o){if(m.value.includes(o))m.value=m.value.filter(a=>a!==o),Q("selectLegend",null);else{if(m.value.length===C.value.length-1)return;m.value.push(o),Q("selectLegend",C.value.find(a=>a.uid===o))}b.value&&H(f.value.find((a,l)=>l===T.value))}const S=e.computed(()=>{const o=[""].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>({name:n.name,color:n.color}))).concat(["Σ"]);let a=[];for(let n=0;n<E.value;n+=1){const v=C.value.filter(d=>!m.value.includes(d.uid)).map(d=>d.values[n]??0).reduce((d,x)=>d+x,0);a.push([t.value.style.chart.layout.grid.xAxis.dataLabels.values[n]??"-"].concat(C.value.filter(d=>!m.value.includes(d.uid)).map(d=>({value:d.values[n]??0,percentage:d.values[n]?d.values[n]/v*100:0}))).concat([`${t.value.style.chart.layout.dataLabels.prefix}${Number(v.toFixed(t.value.table.td.roundingValue))}${t.value.style.chart.layout.dataLabels.suffix}`]))}const l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},s=[t.value.table.columnNames.period].concat(C.value.filter(n=>!m.value.includes(n.uid)).map(n=>n.name)).concat(t.value.table.columnNames.total);return{head:o,body:a,config:l,colNames:s}});function Ae(){return C.value}function he(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[...S.value.head.map(v=>v.name??v)],l=[...S.value.body.map(v=>v.map(d=>d.value??d))],s=o.concat([a]).concat(l),n=r.createCsvContent(s);r.downloadCsv({csvContent:n,title:t.value.style.chart.title.text||"vue-ui-donut-evolution"})})}const A=e.ref(!1);function $e(o){A.value=o,j.value+=1}function ye(){z.value.showTable=!z.value.showTable}const F=e.ref(!1);function M(){F.value=!F.value}function me(o){return o.proportion*100>t.value.style.chart.donuts.hover.hideLabelsUnderValue}function fe(o){return o.proportion*100>t.value.style.chart.donuts.zoom.hideLabelsUnderValue}return xe({getData:Ae,generatePdf:ue,generateCsv:he,generateImage:re,toggleTable:ye,toggleAnnotator:M}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutEvolutionChart",ref:G,class:e.normalizeClass(`vue-ui-donut-evolution ${A.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:_.value,onMouseenter:a[4]||(a[4]=()=>e.unref(ee)(!0)),onMouseleave:a[5]||(a[5]=()=>e.unref(ee)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Re._sfc_main,{key:0,svgRef:e.unref(le),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:M},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Ee,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,style:"width:100%;background:transparent;padding-bottom:24px",onMouseleave:ce},[(e.openBlock(),e.createBlock(De._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"donut-evolution-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-evolution-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],32)):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(te)||e.unref(I))?(e.openBlock(),e.createBlock(pe.UserOptions,{ref:"details",key:`user_options_${j.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(ne),uid:_.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:A.value,titles:{...t.value.userOptions.buttonTitles},chartElement:G.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:$e,onGeneratePdf:e.unref(ue),onGenerateCsv:he,onGenerateImage:e.unref(re),onToggleTable:ye,onToggleAnnotator:M,style:e.normalizeStyle({visibility:e.unref(te)?e.unref(I)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:s})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:s})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:s})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:s})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:le,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":A.value,"vue-data-ui-fulscreen--off":!A.value}),viewBox:`0 0 ${c.value.absoluteWidth} ${c.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(He._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:u.value.left,y:u.value.top,width:c.value.width,height:c.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Ge)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`hover_${_.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,t.value.style.chart.layout.highlighter.opacity)},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.layout.highlighter.color,t.value.style.chart.layout.highlighter.opacity)},null,8,Ke)],8,je),e.createElementVNode("radialGradient",{id:`focus_${_.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,Je),e.createElementVNode("stop",{offset:"77%","stop-color":e.unref(r.setOpacity)("#FFFFFF",30)},null,8,Qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.convertColorToHex)(t.value.style.chart.backgroundColor),0)},null,8,et)],8,Ze)]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",tt,[e.createElementVNode("line",{x1:u.value.left,x2:u.value.left,y1:u.value.top,y2:u.value.top+c.value.height,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,lt),e.createElementVNode("line",{x1:u.value.left,x2:c.value.absoluteWidth-u.value.right,y1:c.value.absoluteHeight-u.value.bottom,y2:c.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,ot),t.value.style.chart.layout.grid.showVerticalLines?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.left+(s+1)*g.value,x2:u.value.left+(s+1)*g.value,y1:u.value.top,y2:c.value.absoluteHeight-u.value.bottom,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,nt))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.yAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:2,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Le.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.left,x2:u.value.left-5,y1:l.y,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,ut)):e.createCommentVNode("",!0),l.value>=w.value.min&&l.value<=w.value.max?(e.openBlock(),e.createElementBlock("text",{key:1,x:u.value.left-8+t.value.style.chart.layout.grid.yAxis.dataLabels.offsetX,y:l.y+t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize/3,"font-size":t.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,"text-anchor":"end",fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-weight":t.value.style.chart.layout.grid.yAxis.dataLabels.bold?"bold":"normal"},e.toDisplayString(e.unref(r.canShowValue)(l.value)?e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue}),{datapoint:l,seriesIndex:s}):""),9,rt)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),t.value.style.chart.layout.grid.xAxis.dataLabels.show?(e.openBlock(),e.createElementBlock("g",{key:3,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":k.value})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value.end-i.value.start,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast&&(s===0||s===E.value-1)||!t.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation>0?"start":t.value.style.chart.layout.grid.xAxis.dataLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,fill:t.value.style.chart.layout.grid.xAxis.dataLabels.color,transform:`translate(${u.value.left+g.value*s+g.value/2}, ${t.value.style.chart.layout.grid.xAxis.dataLabels.offsetY+c.value.absoluteHeight-u.value.bottom+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2}), rotate(${t.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(s)+Number(i.value.start)]??""),9,st)):e.createCommentVNode("",!0)]))),256))],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.line.show&&s<f.value.length-1&&![l.subtotal,f.value[s+1].subtotal].includes(null)?(e.openBlock(),e.createElementBlock("line",{key:0,class:e.normalizeClass({"donut-opacity":!0,"donut-behind":h.value!==null||k.value}),x1:l.x,y1:l.y,x2:f.value[s+1].x,y2:f.value[s+1].y,stroke:t.value.style.chart.layout.line.stroke,"stroke-width":t.value.style.chart.layout.line.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,10,ct)):e.createCommentVNode("",!0),l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",it,[l.subtotal?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:l.activeRadius,fill:t.value.style.chart.backgroundColor},null,8,dt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal?(e.openBlock(),e.createElementBlock("g",vt,[h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,n=>(e.openBlock(),e.createElementBlock("g",null,[me(n)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(n,{x:n.center.endX,y:n.center.endY},12,12,{x:l.x,y:l.y},!1,20),stroke:n.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,yt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("g",null,[me(n)?(e.openBlock(),e.createElementBlock("text",{key:0,"data-cy-hover-label":"","text-anchor":e.unref(r.calcMarkerOffsetX)(n,!0,0).anchor,x:e.unref(r.calcMarkerOffsetX)(n,!0,9).x,y:e.unref(r.calcMarkerOffsetY)(n,14,10),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":8,"font-weight":"bold"},e.toDisplayString(n.name)+": "+e.toDisplayString(se(n,l.donut))+" ("+e.toDisplayString(n.value===null?"-":D(n.value,n,v))+") ",9,mt)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("g",null,[e.createElementVNode("circle",{cx:l.x,cy:l.y,r:l.hoverRadius,fill:t.value.style.chart.backgroundColor},null,8,ft)])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null?(e.openBlock(),e.createElementBlock("g",gt,[l.subtotal===0?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:l.x,cy:l.y,r:3,fill:t.value.style.chart.color},null,8,pt)):h.value!==null&&h.value===s?(e.openBlock(),e.createElementBlock("g",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donutHover,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor},null,8,bt))),256))])):(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.donut,(n,v)=>(e.openBlock(),e.createElementBlock("path",{d:n.arcSlice,fill:`${n.color}`,"stroke-width":.5,stroke:t.value.style.chart.backgroundColor},null,8,Bt))),256))]))])):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",{class:e.normalizeClass({"donut-opacity":!0,"donut-behind":s!==h.value&&h.value!==null||k.value})},[l.subtotal!==null&&t.value.style.chart.layout.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:l.x,y:h.value===l.index&&l.subtotal?l.y+t.value.style.chart.layout.dataLabels.fontSize/3:l.y-l.radius-t.value.style.chart.layout.dataLabels.fontSize+t.value.style.chart.layout.dataLabels.offsetY,"font-size":t.value.style.chart.layout.dataLabels.fontSize,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(D(l.subtotal,l,s)),9,Ct)):e.createCommentVNode("",!0)],2))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{x:u.value.left+s*g.value,y:c.value.absoluteHeight-u.value.bottom-10,width:g.value,height:10,fill:h.value===l.index?`url(#hover_${_.value})`:"transparent",onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,10,_t))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,s)=>(e.openBlock(),e.createElementBlock("rect",{"data-cy-trap":"",x:u.value.left+s*g.value,y:u.value.top,width:g.value,height:c.value.height,fill:"transparent",onMouseenter:n=>ze(l),onMouseleave:ce,onClick:n=>H(l,s),class:e.normalizeClass({"donut-hover":h.value===l.index&&l.subtotal})},null,42,Et))),256)),k.value?(e.openBlock(),e.createElementBlock("g",Nt,[e.createElementVNode("rect",{rx:4,x:u.value.left,y:u.value.top,width:c.value.width,height:c.value.height,fill:t.value.style.chart.backgroundColor,style:{filter:"drop-shadow(0 12px 12px rgba(0,0,0,0.3))"}},null,8,wt),e.createElementVNode("line",{"data-dom-to-png-ignore":"",x1:c.value.absoluteWidth-u.value.right-15,y1:u.value.top+5,x2:c.value.absoluteWidth-u.value.right-4,y2:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,St),e.createElementVNode("line",{"data-dom-to-png-ignore":"",x1:c.value.absoluteWidth-u.value.right-15,y2:u.value.top+5,x2:c.value.absoluteWidth-u.value.right-4,y1:u.value.top+15.5,"stroke-linecap":"round",stroke:t.value.style.chart.color,"stroke-width":"1.5"},null,8,Lt),e.createElementVNode("circle",{"data-cy-close":"",onClick:ie,onKeypress:e.withKeys(ie,["enter"]),cx:c.value.absoluteWidth-u.value.right-c.value.width/40,cy:u.value.top+c.value.height/30,r:c.value.height/12,fill:"transparent",style:{cursor:"pointer"},tabindex:"0"},null,40,zt),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,l=>(e.openBlock(),e.createElementBlock("g",null,[fe(l)?(e.openBlock(),e.createElementBlock("path",{key:0,"data-cy-zoom-donut":"",d:e.unref(r.calcNutArrowPath)(l,{x:c.value.centerX,y:c.value.centerY},12,12,!1,!1,15),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",class:"vue-ui-donut-evolution-focus"},null,8,Vt)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:u.value.left+c.value.width/2,cy:u.value.top+c.value.height/2,r:c.value.height/7,fill:t.value.style.chart.backgroundColor},null,8,At),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:`${l.color}`,"stroke-width":1,stroke:t.value.style.chart.backgroundColor,class:"vue-ui-donut-evolution-focus"},null,8,$t))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.donutFocus,(l,s)=>(e.openBlock(),e.createElementBlock("g",Dt,[fe(l)?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,10).x,y:e.unref(r.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.grid.yAxis.dataLabels.color,"font-size":10,"font-weight":"bold"},e.toDisplayString(l.name)+": "+e.toDisplayString(se(l,b.value.donutFocus))+" ("+e.toDisplayString(l.value===null?"-":D(l.value,l,s))+") ",9,Ft)):e.createCommentVNode("",!0)]))),256)),e.createElementVNode("circle",{cx:u.value.left+c.value.width/2,cy:u.value.top+c.value.height/2,r:c.value.height/3.8,fill:`url(#focus_${_.value})`},null,8,Pt),e.createElementVNode("circle",{cx:u.value.left+c.value.width/2,cy:u.value.top+c.value.height/2,r:c.value.height/7.7,fill:t.value.style.chart.backgroundColor},null,8,It),e.createElementVNode("text",{"text-anchor":"middle",x:u.value.left+c.value.width/2,y:u.value.top+c.value.height/2+14/3,"font-size":14,"font-weight":"bold",fill:t.value.style.chart.layout.dataLabels.color,class:"vue-ui-donut-evolution-focus"},e.toDisplayString(D(b.value.subtotal,b.value,null)),9,Ot),t.value.style.chart.layout.grid.xAxis.dataLabels.values[b.value.index]?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.value.left+6,y:u.value.top+t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*2,"font-size":t.value.style.chart.layout.grid.xAxis.dataLabels.fontSize*1.6,fill:t.value.style.chart.layout.dataLabels.color},e.toDisplayString(t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(b.value.index)+Number(i.value.start)]),9,Tt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:c.value},void 0,!0)],14,Xe)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ht,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(ne)})),void 0,!0)])):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"donutEvolution",style:{backgroundColor:t.value.style.chart.backgroundColor,donutEvolution:{axis:{color:"#CCCCCC"},donuts:{color:"#CCCCCC"}}}}},null,8,["config"])),E.value>1&&t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Oe.Slicer,{ref_key:"slicerComponent",ref:N,key:`slicer_${Y.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.start)]||"",labelRight:t.value.style.chart.layout.grid.xAxis.dataLabels.values[Number(i.value.end)-1]||"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:E.value,min:0,valueStart:i.value.start,valueEnd:i.value.end,start:i.value.start,"onUpdate:start":a[0]||(a[0]=l=>i.value.start=l),end:i.value.end,"onUpdate:end":a[1]||(a[1]=l=>i.value.end=l),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:E.value,enableRangeHandles:t.value.style.chart.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.chart.zoom.enableSelectionDrag,onReset:q},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"])):e.createCommentVNode("",!0),t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Pe.Legend,{key:`legend_${J.value}`,legendSet:de.value,config:Ve.value,onClickMarker:a[2]||(a[2]=({legend:l})=>R(l.uid))},{item:e.withCtx(({legend:l,index:s})=>[e.createElementVNode("div",{onClick:n=>R(l.uid),style:e.normalizeStyle(`opacity:${m.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:s}))+" ",1),m.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",Ut," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Mt," ("+e.toDisplayString(isNaN(l.value/ve.value)?"-":e.unref(r.dataLabel)({v:l.value/ve.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Rt)]),_:1},8,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:de.value},void 0,!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",qt,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createBlock(Te.default,{key:10,hideDetails:"",config:{open:z.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.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${Z.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[3]||(a[3]=l=>z.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name??l),1)]),td:e.withCtx(({td:l})=>[l.value===null?(e.openBlock(),e.createElementBlock("span",Wt,"-")):(e.openBlock(),e.createElementBlock("b",Xt,e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.prefix)+e.toDisplayString(!isNaN(l.value)&&l.value!==null?Number(l.value.toFixed(t.value.table.td.roundingValue)).toLocaleString():l)+e.toDisplayString(isNaN(l.value)?"":t.value.style.chart.layout.dataLabels.suffix),1)),e.createElementVNode("span",null,e.toDisplayString(l.percentage&&!isNaN(l.percentage)?`(${Number(l.percentage.toFixed(t.value.table.td.roundingPercentage)).toLocaleString()}%)`:""),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,We))}},jt=qe._export_sfc(Gt,[["__scopeId","data-v-5d9bec59"]]);exports.default=jt;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-MIJJ8liG.cjs"),Ce=require("./useResponsive-DQmBAoBf.cjs"),De=require("./Title-C5w8bVlo.cjs"),Be=require("./usePrinter-U1x-RAEA.cjs"),Me=require("./DataTable-c3nDhwbO.cjs"),Ye=require("./Tooltip-Dbe23pmt.cjs"),Ae=require("./Legend-Bhl2d6oj.cjs"),Ie=require("./vue-ui-skeleton-DOE444ST.cjs"),qe=require("./vue-ui-accordion-cBSqrYy3.cjs"),_e=require("./useNestedProp-DwR4JSzw.cjs"),Re=require("./PackageVersion-DFYAej2o.cjs"),Ge=require("./PenAndPaper-CAqWCUZx.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),je=require("./Shape-wMij_bxG.cjs"),He=require("./useChartAccessibility-Cm7nkzTG.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Je=["id"],Ke=["xmlns","viewBox"],Qe=["width","height"],Ze={key:1},et=["id"],tt=["stop-color"],lt=["offset","stop-color"],ot=["offset","stop-color"],at=["stop-color"],rt={key:2},nt=["id","cx","cy"],ut=["stop-color","stop-opacity"],st=["stop-color"],it=["id"],ct=["id"],dt=["id"],vt=["flood-color"],ht=["id"],ft=["flood-color"],yt=["d","stroke","filter"],pt=["x1","y1","x2","y2","stroke","filter"],mt=["cx","cy","r","fill","filter"],gt={key:6},kt=["stroke","d"],bt={key:0},wt=["d","fill","stroke","stroke-width","filter"],Ct=["d","fill","stroke","stroke-width","filter"],Bt={key:0},_t=["stroke","d"],xt={key:0},$t=["d","stroke","stroke-width","filter"],St={key:1},Et=["d","fill","stroke","stroke-width","filter"],Nt=["d","fill","stroke","stroke-width","filter"],Pt={key:1},Vt=["cx","cy","r","fill","stroke","stroke-width"],Ft=["cx","cy","r","fill","stroke","stroke-width"],Lt=["cx","cy","r","stroke"],Ot=["cx","cy","r","fill"],zt={key:0},Tt=["d","fill","onMouseenter","onClick"],Xt={key:1},Dt=["cx","cy","r","fill"],Mt=["x","y","fill","font-size"],Yt=["x","y","fill","font-size"],At=["x","y","fill","font-size"],It=["x","y","fill","font-size"],qt=["filter"],Rt={key:0},Gt=["x","y"],Ut={key:1},jt=["cx","cy","fill","stroke","filter","onClick"],Ht=["cx","cy","fill","stroke","filter","onClick"],Wt=["text-anchor","x","y","fill","font-size","onClick"],Jt=["text-anchor","x","y","fill","font-size","onClick"],Kt=["text-anchor","x","y","fill","font-size","onClick"],Qt=["text-anchor","x","y","fill","font-size","onClick"],Zt={key:2},el=["x","y","width"],tl=["x","y","width"],ll={key:5,class:"vue-data-ui-watermark"},ol=["onClick"],al={key:0,style:{"font-variant-numeric":"tabular-nums"}},rl={key:1},nl=["innerHTML"],ul={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(xe,{expose:$e,emit:Se}){const{vue_ui_donut:Ee}=r.useConfig(),Ne=e.useSlots(),b=xe,P=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),V=e.ref(null),G=e.ref(null),U=e.ref(null),O=e.ref(null),j=e.ref(null),H=e.ref(null),W=e.ref(0),J=e.ref(0),K=e.ref(0);e.onMounted(()=>{Q()}),e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});function Q(){if(r.objectIsEmpty(b.dataset)?r.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,u)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{P.value=!1,r.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:u})})}),t.value.responsive){const o=Ce.throttle(()=>{const{width:u,height:l}=Ce.useResponsive({chart:V.value,title:t.value.style.chart.title.text?G.value:null,legend:t.value.style.chart.legend.show?U.value:null,source:j.value,noTitle:H.value,padding:oe.value});requestAnimationFrame(()=>{n.value.width=u,n.value.height=l})});O.value=new ResizeObserver(o),O.value.observe(V.value.parentNode)}}const d=e.ref(r.createUid()),Pe=e.ref(null),z=e.ref(!1),D=e.ref(""),p=e.ref(null),Z=e.ref(0);function ee(){const o=_e.useNestedProp({userConfig:b.config,defaultConfig:Ee});return o.theme?{..._e.useNestedProp({userConfig:r.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}const t=e.computed({get:()=>ee(),set:o=>o}),{userOptionsVisible:M,setUserOptionsVisibility:te,keepUserOptionState:le}=Ue.useUserOptionState({config:t.value}),{svgRef:Y}=He.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>b.config,o=>{t.value=ee(),M.value=!t.value.userOptions.showOnChartHover,Q(),W.value+=1,J.value+=1,K.value+=1,v.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,v.value.showTable=t.value.table.show,v.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const oe=e.computed(()=>{const{top:o,right:u,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${u}px ${l}px ${a}px`,top:o,right:u,bottom:l,left:a}}),{isPrinting:ae,isImaging:re,generatePdf:ne,generateImage:ue}=Be.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),Ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),se=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),v=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),n=e.ref({height:360,width:512}),F=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,u=Math.min(n.value.width,n.value.height)*o,l=u>y.value?y.value:u;return Math.max(l,3)}),ie=Se,x=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:u}))),g=e.ref(x.value);e.watch(()=>x.value,o=>g.value=o);function Fe(){return x.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const w=e.ref([]),ce=e.ref(null),de=e.ref(null),$=e.ref(!1);function ve(o){const u=x.value.find((s,h)=>h===o),l=g.value.find((s,h)=>h===o);let a=l.value;if(w.value.includes(o)){let h=function(){a>s?(cancelAnimationFrame(ce.value),g.value=g.value.map((f,R)=>o===R?{...f,value:s}:f),$.value=!1):($.value=!0,a+=s*.025,g.value=g.value.map((f,R)=>o===R?{...f,value:a}:f),ce.value=requestAnimationFrame(h))};w.value=w.value.filter(f=>f!==o);const s=u.value;h()}else if(w.value.length<x.value.length-1){let s=function(){a<l.value/100?(cancelAnimationFrame(de.value),w.value.push(o),g.value=g.value.map((h,f)=>o===f?{...h,value:0}:h),$.value=!1):($.value=!0,a/=1.1,g.value=g.value.map((h,f)=>o===f?{...h,value:a}:h),de.value=requestAnimationFrame(s))};s()}ie("selectLegend",C.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const C=e.computed(()=>(g.value.forEach((o,u)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),g.value.map((o,u)=>({...o,seriesIndex:u})).filter((o,u)=>!w.value.includes(u)))),he=e.computed(()=>b.dataset.map((o,u)=>({name:o.name,color:r.convertColorToHex(o.color)||se.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:u})).map((o,u)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:w.value.includes(u)?.5:1,segregate:()=>!$.value&&ve(u),isSegregated:w.value.includes(u)}))),Le=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>{const o=Math.min(n.value.width/3,n.value.height/3);return o<55?55:o}),c=e.computed(()=>r.makeDonut({series:C.value},n.value.width/2,n.value.height/2,y.value,y.value,1.99999,2,1,360,105.25,F.value)),i=e.computed(()=>{const o=Math.max(...C.value.map(l=>l.value)),u=C.value.map(l=>l.value/o);return r.createPolarAreas({series:u,center:{x:n.value.width/2,y:n.value.height/2},maxRadius:Math.min(n.value.width,n.value.height)/3})});function E(o){return o.x>n.value.width/2+6?"start":o.x<n.value.width/2-6?"end":"middle"}function Oe(o){return o.middlePoint.y>n.value.height/2?r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:n.value.width/2,centerY:n.value.height/2}).y:r.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:n.value.width/2,centerY:n.value.height/2}).y-100}function k(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function A(o,u){const l=o.value/ze(u);return isNaN(l)?0:r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,r.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function ze(o){return[...o].map(u=>u.value).reduce((u,l)=>u+l,0)}const m=e.computed(()=>C.value.map(o=>o.value).reduce((o,u)=>o+u,0)),fe=e.computed(()=>m.value/C.value.length),ye=e.computed(()=>o=>$.value?o.proportion*100:o.value/m.value*100),I=e.ref(null),L=e.ref(!1);function pe({datapoint:o,relativeIndex:u,seriesIndex:l,show:a=!1}){I.value={datapoint:o,seriesIndex:l,config:t.value,series:x.value},z.value=a,p.value=u;let s="";const h=t.value.style.chart.tooltip.customFormat;if(L.value=!1,r.isFunction(h))try{const f=h({seriesIndex:l,datapoint:o,series:x.value,config:t.value});typeof f=="string"&&(D.value=f,L.value=!0)}catch{console.warn("Custom format cannot be applied."),L.value=!1}if(!L.value){if(s+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${o.color}"/>${Ne.pattern?`<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${d.value}_${l})"/>`:""}</svg>`,t.value.style.chart.tooltip.showValue&&(s+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,relativeIndex:u,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const f=r.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,r.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:u,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${f})</span></div>`:s+=`<b>${f}</b></div>`}t.value.style.chart.comments.showInTooltip&&o.comment&&(s+=`<div class="vue-data-ui-tooltip-comment" style="background:${o.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${o.color}">${o.comment}</div>`),D.value=`<div>${s}</div>`}}function S(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.value})`:""}const B=e.computed(()=>{const o=C.value.map(l=>({name:l.name,color:l.color})),u=C.value.map(l=>l.value);return{head:o,body:u}});function me(){e.nextTick(()=>{const o=B.value.head.map((a,s)=>[[a.name],[B.value.body[s]],[isNaN(B.value.body[s]/m.value)?"-":B.value.body[s]/m.value*100]]),u=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(u);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const T=e.computed(()=>{const o=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:m.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],u=B.value.head.map((s,h)=>[{color:s.color,name:s.name},B.value.body[h],isNaN(B.value.body[h]/m.value)?"-":(B.value.body[h]/m.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],head:o,body:u,config:l}}),N=e.ref(!1);function Te(o){N.value=o,Z.value+=1}const ge=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Xe(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(u=>"-").join("")}function _(o,u){ie("selectDatapoint",{datapoint:o,index:u})}function ke(){v.value.showTable=!v.value.showTable}function be(){v.value.dataLabels.show=!v.value.dataLabels.show}function we(){v.value.showTooltip=!v.value.showTooltip}const X=e.ref(!1);function q(){X.value=!X.value}return $e({getData:Fe,generatePdf:ne,generateCsv:me,generateImage:ue,toggleTable:ke,toggleLabels:be,toggleTooltip:we,toggleAnnotator:q}),(o,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:V,class:e.normalizeClass(`vue-ui-donut ${N.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height:100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`donut__${d.value}`,onMouseenter:u[6]||(u[6]=()=>e.unref(te)(!0)),onMouseleave:u[7]||(u[7]=()=>e.unref(te)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(Y)?(e.openBlock(),e.createBlock(Ge._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:X.value,svgRef:e.unref(Y),onClose:q},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:H,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:G,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(De._sfc_main,{key:`title_${W.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(le)||e.unref(M))?(e.openBlock(),e.createBlock(Be.UserOptions,{ref_key:"details",ref:Pe,key:`user_option_${Z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ae),isImaging:e.unref(re),uid:d.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:N.value,chartElement:V.value,position:t.value.userOptions.position,isTooltip:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:X.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ne),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ke,onToggleLabels:be,onToggleTooltip:we,onToggleAnnotator:q,style:e.normalizeStyle({visibility:e.unref(le)?e.unref(M)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:a})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:a})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionLabels",{},void 0,!0)]),key:"6"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:a})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"7"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"8"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:Y,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":N.value,"vue-data-ui-fulscreen--off":!N.value}),viewBox:`0 0 ${n.value.width<=0?10:n.value.width} ${n.value.height<=0?10:n.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${oe.value.css}`)},[e.createVNode(Re._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,Qe)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock("defs",Ze,[t.value.style.chart.useGradient?(e.openBlock(),e.createElementBlock("radialGradient",{key:0,id:`gradient_${d.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,tt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,lt),e.createElementVNode("stop",{offset:`${(1-F.value/y.value/2)*100}%`,"stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,ot),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,at)],8,et)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,a)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`polar_gradient_${a}_${d.value}`,cx:l.middlePoint.x/n.value.width*100+"%",cy:l.middlePoint.y/n.value.height*100+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.shiftHue)(c.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,ut),e.createElementVNode("stop",{offset:"100%","stop-color":c.value[a].color},null,8,st)],8,nt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${d.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${d.value}`},null,8,ct),u[8]||(u[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,it),e.createElementVNode("filter",{id:`shadow_${d.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,vt)],8,dt),e.createElementVNode("filter",{id:`drop_shadow_${d.value}`,"color-interpolation-filters":"sRGB",x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"3","flood-opacity":"1","flood-color":t.value.style.chart.layout.donut.shadowColor},null,8,ft)],8,ht)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(r.calcNutArrowPath)(l,{x:n.value.width/2,y:n.value.height/2},16,16,!1,!1,F.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:S(a)},null,8,yt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,y1:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).y,x2:i.value[a].middlePoint.x,y2:i.value[a].middlePoint.y,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:S(a)},null,8,pt)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="classic"&&t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("circle",{key:5,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,mt)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{...l,patternId:`pattern_${d.value}_${l.patternIndex}`}),void 0,!0)]))),256))])):e.createCommentVNode("",!0),m.value&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:7},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:l.arcSlice,fill:"#FFFFFF"},null,8,kt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,wt))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:l.arcSlice,fill:e.unref(r.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Ct))),256))],64)):e.createCommentVNode("",!0),m.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[c.value.length>1?(e.openBlock(),e.createElementBlock("g",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{stroke:t.value.style.chart.backgroundColor,d:i.value[a].path,fill:"#FFFFFF"},null,8,_t))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:"transparent",stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:`url(#drop_shadow_${d.value})`},null,8,$t))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#pattern_${d.value}_${l.patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Et))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:t.value.style.chart.useGradient?`url(#polar_gradient_${a}_${d.value})`:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:S(a)},null,8,Nt))),256))])):(e.openBlock(),e.createElementBlock("g",Pt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:`url(#pattern_${d.value}_${c.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Vt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:c.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Ft)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,Lt)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:n.value.width/2,cy:n.value.height/2,r:y.value<=0?10:y.value,fill:`url(#gradient_${d.value})`},null,8,Ot)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[c.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{d:t.value.type==="classic"?l.arcSlice:i.value[a].path,fill:p.value===a?"rgba(0,0,0,0.1)":"transparent",onMouseenter:s=>pe({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:u[0]||(u[0]=s=>{z.value=!1,p.value=null}),onClick:s=>_(l,a)},null,40,Tt))),256))])):(e.openBlock(),e.createElementBlock("g",Xt,[e.createElementVNode("circle",{cx:n.value.width/2,cy:n.value.height/2,r:y.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:u[1]||(u[1]=l=>pe({datapoint:c.value[0],relativeIndex:0,seriesIndex:c.value[0].seriesIndex,show:!0})),onMouseleave:u[2]||(u[2]=l=>{z.value=!1,p.value=null}),onClick:u[3]||(u[3]=l=>_(c.value[0],o.i))},null,40,Dt)]))],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.color,"font-size":t.value.style.chart.layout.labels.hollow.total.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.total.text),13,Mt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2+t.value.style.chart.layout.labels.hollow.total.fontSize-(t.value.style.chart.layout.labels.hollow.average.show?t.value.style.chart.layout.labels.hollow.total.fontSize:0)+t.value.style.chart.layout.labels.hollow.total.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.total.value.color,"font-size":t.value.style.chart.layout.labels.hollow.total.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.total.value.bold?"bold":""}`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,m.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:m.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Yt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.color,"font-size":t.value.style.chart.layout.labels.hollow.average.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.bold?"bold":""}`)},e.toDisplayString(t.value.style.chart.layout.labels.hollow.average.text),13,At)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:n.value.width/2,y:n.value.height/2+(t.value.style.chart.layout.labels.hollow.total.show?t.value.style.chart.layout.labels.hollow.average.fontSize:0)+t.value.style.chart.layout.labels.hollow.average.fontSize+t.value.style.chart.layout.labels.hollow.average.value.offsetY,fill:t.value.style.chart.layout.labels.hollow.average.value.color,"font-size":t.value.style.chart.layout.labels.hollow.average.value.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.hollow.average.value.bold?"bold":""}`)},e.toDisplayString($.value?"--":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,fe.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:fe.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,It)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:S(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-120:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-60:e.unref(r.calcMarkerOffsetX)(l).x,y:e.unref(r.calcMarkerOffsetY)(l)-(ge.value?20:0),width:"120",height:"60",style:{overflow:"visible"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"dataLabel",e.mergeProps({ref_for:!0},{datapoint:l,isBlur:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a,isSafari:ge.value,isVisible:k(l)&&v.value.dataLabels.show,textAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor,percentage:A(l,c.value)}),void 0,!0)])],8,Gt))])):(e.openBlock(),e.createElementBlock("g",Ut,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.calcMarkerOffsetX)(l).x,cy:e.unref(r.calcMarkerOffsetY)(l)-3.5,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).x,cy:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:n.value.width/2,centerY:n.value.height/2}).y,fill:l.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":1,r:3,filter:!t.value.useBlurOnHover||[null,void 0].includes(p.value)||p.value===a?"":`url(#blur_${d.value})`,onClick:s=>_(l,a)},null,8,Ht)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(r.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.calcMarkerOffsetY)(l),fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Wt)):e.createCommentVNode("",!0),k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(r.calcMarkerOffsetX)(l).anchor,x:e.unref(r.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(r.calcMarkerOffsetY)(l)+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(l.name),13,Jt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":E(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).y,fill:t.value.style.chart.layout.labels.percentage.color,"font-size":t.value.style.chart.layout.labels.percentage.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.percentage.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(A(l,c.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}),{datapoint:l})})`:""),13,Kt)):e.createCommentVNode("",!0),k(l)&&v.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":E(i.value[a].middlePoint),x:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x,y:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).y+t.value.style.chart.layout.labels.percentage.fontSize,fill:t.value.style.chart.layout.labels.name.color,"font-size":t.value.style.chart.layout.labels.name.fontSize,style:e.normalizeStyle(`font-weight:${t.value.style.chart.layout.labels.name.bold?"bold":""}`),onClick:s=>_(l,a)},e.toDisplayString(l.name),13,Qt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),v.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",Zt,[k(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(r.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(r.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(r.calcMarkerOffsetX)(l).x),y:e.unref(r.calcMarkerOffsetY)(l)+24+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(r.calcMarkerOffsetX)(l,!0,16).anchor}},void 0,!0)])],8,el)):e.createCommentVNode("",!0),k(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(E(i.value[a].middlePoint)==="end"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width:E(i.value[a].middlePoint)==="middle"?e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(r.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:n.value.width/2,centerY:n.value.height/2}).x),y:Oe(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:{overflow:"visible","pointer-events":"none"}},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:E(i.value[a].middlePoint),flexAlign:E(i.value[a].middlePoint)}},void 0,!0)])],8,tl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,qt))),256)),e.renderSlot(o.$slots,"svg",{svg:n.value},void 0,!0)],14,Ke)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ll,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ae)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:F.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:U},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Ae.Legend,{key:`legend_${K.value}`,legendSet:he.value,config:Le.value,onClickMarker:u[4]||(u[4]=({i:l})=>ve(l))},e.createSlots({item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${w.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,index:a}))+" ",1),w.value.includes(a)?(e.openBlock(),e.createElementBlock("span",rl," ( "+e.toDisplayString(Xe(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",al," ("+e.toDisplayString(isNaN(l.value/m.value)?"-":e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,ye.value(l),e.unref(r.dataLabel)({v:ye.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,ol)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(je._sfc_main,{shape:l.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${d.value}_${a})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"legend",{legend:he.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:j,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Ye._sfc_main,{show:v.value.showTooltip&&z.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:V.value,content:D.value,isCustom:L.value,isFullscreen:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...I.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:v.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.openBlock(),e.createBlock(Me.DataTable,{key:`table_${J.value}`,colNames:T.value.colNames,head:T.value.head,body:T.value.body,config:T.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:u[5]||(u[5]=l=>v.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,nl)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(r.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.value.rounding}))),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Je))}},sl=We._export_sfc(ul,[["__scopeId","data-v-f24dec2a"]]);exports.default=sl;
@@ -1,19 +1,19 @@
1
- import { computed as g, ref as d, watch as fe, onMounted as be, onBeforeUnmount as Ie, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as F, normalizeClass as ge, createBlock as L, createCommentVNode as v, createElementVNode as i, createSlots as Ge, withCtx as _, renderSlot as p, normalizeProps as V, guardReactiveProps as E, createVNode as Me, Fragment as C, renderList as $, toDisplayString as A, createTextVNode as pe, nextTick as De } from "vue";
2
- import { u as Fe, c as me, a as Ve, o as Ee, e as _e, g as Re, v as ke, D as He, f as z, X as xe, i as B, l as we, h as Ce, q as We, r as Ue } from "./index-gC66Se26.js";
1
+ import { computed as g, ref as d, watch as fe, onMounted as be, onBeforeUnmount as Ie, createElementBlock as r, openBlock as o, unref as u, normalizeStyle as F, normalizeClass as ge, createBlock as L, createCommentVNode as v, createElementVNode as i, createSlots as Ge, withCtx as _, renderSlot as m, normalizeProps as V, guardReactiveProps as E, createVNode as Me, Fragment as C, renderList as $, toDisplayString as A, createTextVNode as me, nextTick as De } from "vue";
2
+ import { u as Fe, c as pe, a as Ve, o as Ee, e as _e, g as Re, v as ke, D as He, f as z, X as xe, i as B, l as we, h as Ce, q as We, r as Ue } from "./index-D3VntmA9.js";
3
3
  import { t as Be, u as je } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as qe } from "./Title-Co3F59jq.js";
5
- import { u as Ye, U as Ze } from "./usePrinter-KMFl0n0s.js";
6
- import { D as Je } from "./DataTable-C_28ZqiP.js";
7
- import Ke from "./vue-ui-skeleton-7Zfds6H1.js";
8
- import { L as Qe } from "./Legend-CmKaL7xe.js";
9
- import et from "./vue-ui-accordion-j2beIma_.js";
10
- import { u as $e } from "./useNestedProp-BusTOV-6.js";
11
- import { _ as tt } from "./PackageVersion-39l3KkzC.js";
12
- import { P as lt } from "./PenAndPaper-CmcfpltX.js";
4
+ import { _ as qe } from "./Title-UjBqdYyD.js";
5
+ import { u as Ye, U as Ze } from "./usePrinter-H3tAjGXs.js";
6
+ import { D as Je } from "./DataTable-DOKlm7k4.js";
7
+ import Ke from "./vue-ui-skeleton-pHcbvN3-.js";
8
+ import { L as Qe } from "./Legend-CIjMjfNk.js";
9
+ import et from "./vue-ui-accordion-DGJQIcdB.js";
10
+ import { u as $e } from "./useNestedProp-DTlOqz2P.js";
11
+ import { _ as tt } from "./PackageVersion-BCLALL_i.js";
12
+ import { _ as lt } from "./PenAndPaper-CZs431Nx.js";
13
13
  import { u as at } from "./useUserOptionState-BIvW1Kz7.js";
14
14
  import { u as st } from "./useChartAccessibility-BWojgys7.js";
15
15
  import { _ as ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], it = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill"], gt = { key: 4 }, pt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["id"], _t = ["stop-color"], kt = ["stop-color"], xt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["stop-color"], At = ["id"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Pt = { key: 0 }, Ot = ["d", "fill"], It = { key: 1 }, Gt = ["x", "y", "height", "width", "fill"], Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ft = { key: 5 }, Vt = ["x", "y", "fill", "font-size"], Et = { key: 6 }, Rt = ["x", "y", "fill", "font-size"], Ht = {
16
+ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"], it = { key: 1 }, ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], dt = { key: 2 }, vt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yt = { key: 3 }, ft = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x", "y", "font-size", "fill"], gt = { key: 4 }, mt = ["x", "y", "font-size", "fill", "font-weight"], pt = ["id"], _t = ["stop-color"], kt = ["stop-color"], xt = ["stop-color"], wt = ["id"], Ct = ["stop-color"], $t = ["stop-color"], Lt = ["stop-color"], At = ["id"], zt = ["stop-color"], St = ["stop-color"], Xt = ["id"], Nt = ["stop-color"], Tt = ["stop-color"], Ot = { key: 0 }, Pt = ["d", "fill"], It = { key: 1 }, Gt = ["x", "y", "height", "width", "fill"], Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Dt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ft = { key: 5 }, Vt = ["x", "y", "fill", "font-size"], Et = { key: 6 }, Rt = ["x", "y", "fill", "font-size"], Ht = {
17
17
  key: 5,
18
18
  class: "vue-data-ui-watermark"
19
19
  }, Wt = ["xmlns", "height", "width"], Ut = ["fill"], Bt = ["innerHTML"], jt = {
@@ -41,7 +41,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
41
41
  set(l) {
42
42
  return l;
43
43
  }
44
- }), y = d(me()), j = d(0), P = d(null), q = d(null), Y = d(null), Z = d(null), J = d(null), K = d(0), Q = d(0), ee = d(0), e = g({
44
+ }), y = d(pe()), j = d(0), O = d(null), q = d(null), Y = d(null), Z = d(null), J = d(null), K = d(0), Q = d(0), ee = d(0), e = g({
45
45
  get: () => se(),
46
46
  set: (l) => l
47
47
  }), { userOptionsVisible: R, setUserOptionsVisibility: te, keepUserOptionState: le } = at({ config: e.value }), { svgRef: ae } = st({ config: e.value.style.chart.title });
@@ -62,7 +62,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
62
62
  }, { deep: !0 }), fe(() => b.dataset, (l) => {
63
63
  de();
64
64
  }, { deep: !0 });
65
- const O = d(null);
65
+ const P = d(null);
66
66
  be(() => {
67
67
  oe();
68
68
  });
@@ -85,7 +85,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
85
85
  }), e.value.responsive) {
86
86
  const l = Be(() => {
87
87
  const { width: n, height: t } = je({
88
- chart: P.value,
88
+ chart: O.value,
89
89
  title: e.value.style.chart.title.text ? q.value : null,
90
90
  legend: e.value.style.chart.legend.show ? Y.value : null,
91
91
  source: Z.value,
@@ -95,11 +95,11 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
95
95
  N.value = n, h.value = t / b.dataset.length, f.value = I();
96
96
  });
97
97
  });
98
- O.value = new ResizeObserver(l), O.value.observe(P.value.parentNode);
98
+ P.value = new ResizeObserver(l), P.value.observe(O.value.parentNode);
99
99
  }
100
100
  }
101
101
  Ie(() => {
102
- O.value && O.value.disconnect();
102
+ P.value && P.value.disconnect();
103
103
  });
104
104
  const { isPrinting: re, isImaging: ne, generatePdf: ue, generateImage: ie } = Ye({
105
105
  elementId: `dumbbell_${y.value}`,
@@ -111,7 +111,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
111
111
  ...l,
112
112
  start: ke(l.start),
113
113
  end: ke(l.end),
114
- id: me()
114
+ id: pe()
115
115
  }))), H = g(() => ({
116
116
  max: Math.max(...k.value.flatMap((l) => [l.start, l.end])),
117
117
  min: Math.min(...k.value.flatMap((l) => [l.start, l.end]))
@@ -132,12 +132,12 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
132
132
  });
133
133
  function I() {
134
134
  return k.value.map((l, n) => {
135
- const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, m = t + (a - t) / 2;
135
+ const t = s.value.left + (l.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, a = s.value.left + (l.end + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, p = t + (a - t) / 2;
136
136
  return {
137
137
  ...l,
138
138
  startX: t,
139
139
  endX: a,
140
- centerX: m,
140
+ centerX: p,
141
141
  y: s.value.top + n * h.value + h.value / 2,
142
142
  endVal: l.start
143
143
  };
@@ -152,18 +152,18 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
152
152
  let l = f.value.map((t) => t.start).reduce((t, a) => t + a, 0);
153
153
  function n() {
154
154
  const t = k.value.map((a) => a.end - a.start);
155
- l >= Xe.value ? (cancelAnimationFrame(ce.value), f.value = I()) : (f.value = f.value.map((a, m) => {
156
- a.endVal += t[m] * (e.value.animationSpeed / 100);
155
+ l >= Xe.value ? (cancelAnimationFrame(ce.value), f.value = I()) : (f.value = f.value.map((a, p) => {
156
+ a.endVal += t[p] * (e.value.animationSpeed / 100);
157
157
  const w = s.value.left + (a.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, D = s.value.left + (a.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * s.value.widthPlotReference, U = w + (D - w) / 2;
158
158
  return {
159
159
  ...a,
160
160
  startX: w,
161
161
  endX: D,
162
162
  centerX: U,
163
- y: s.value.top + m * h.value + h.value / 2,
163
+ y: s.value.top + p * h.value + h.value / 2,
164
164
  endVal: a.endVal
165
165
  };
166
- }), l = f.value.map((a) => a.endVal).reduce((a, m) => a + m, 0), ce.value = requestAnimationFrame(n));
166
+ }), l = f.value.map((a) => a.endVal).reduce((a, p) => a + p, 0), ce.value = requestAnimationFrame(n));
167
167
  }
168
168
  e.value.useAnimation ? n() : f.value = I();
169
169
  }
@@ -192,7 +192,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
192
192
  e.value.table.columnNames.start,
193
193
  e.value.table.columnNames.end,
194
194
  e.value.table.columnNames.progression
195
- ], n = x.value.head.map((m, w) => {
195
+ ], n = x.value.head.map((p, w) => {
196
196
  const D = z({
197
197
  p: e.value.style.chart.labels.prefix,
198
198
  v: x.value.body[w].start,
@@ -203,16 +203,16 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
203
203
  v: x.value.body[w].end,
204
204
  s: e.value.style.chart.labels.suffix,
205
205
  r: e.value.table.td.roundingValue
206
- }), Oe = z({
206
+ }), Pe = z({
207
207
  v: 100 * (x.value.body[w].end / x.value.body[w].start - 1),
208
208
  s: "%",
209
209
  r: e.value.table.td.roundingPercentage
210
210
  });
211
211
  return [
212
- { name: m.name },
212
+ { name: p.name },
213
213
  D,
214
214
  U,
215
- Oe
215
+ Pe
216
216
  ];
217
217
  }), t = {
218
218
  th: {
@@ -241,9 +241,9 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
241
241
  });
242
242
  function he() {
243
243
  De(() => {
244
- const l = x.value.head.map((a, m) => [[
244
+ const l = x.value.head.map((a, p) => [[
245
245
  a.name
246
- ], [x.value.body[m].start], [x.value.body[m].end]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = We(n);
246
+ ], [x.value.body[p].start], [x.value.body[p].end]]), n = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = We(n);
247
247
  Ue({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
248
248
  });
249
249
  }
@@ -251,7 +251,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
251
251
  function Te(l) {
252
252
  T.value = l, j.value += 1;
253
253
  }
254
- function Pe() {
254
+ function Oe() {
255
255
  return f.value;
256
256
  }
257
257
  function ye() {
@@ -262,7 +262,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
262
262
  M.value = !M.value;
263
263
  }
264
264
  return Ae({
265
- getData: Pe,
265
+ getData: Oe,
266
266
  generatePdf: ue,
267
267
  generateCsv: he,
268
268
  generateImage: ie,
@@ -270,7 +270,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
270
270
  toggleAnnotator: W
271
271
  }), (l, n) => (o(), r("div", {
272
272
  ref_key: "dumbbellChart",
273
- ref: P,
273
+ ref: O,
274
274
  class: ge(`vue-ui-dumbbell ${T.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
275
275
  style: F(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
276
276
  id: `dumbbell_${y.value}`,
@@ -327,7 +327,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
327
327
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
328
328
  isFullscreen: T.value,
329
329
  titles: { ...e.value.userOptions.buttonTitles },
330
- chartElement: P.value,
330
+ chartElement: O.value,
331
331
  position: e.value.userOptions.position,
332
332
  hasAnnotator: e.value.userOptions.buttons.annotator,
333
333
  isAnnotation: M.value,
@@ -344,49 +344,49 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
344
344
  l.$slots.menuIcon ? {
345
345
  name: "menuIcon",
346
346
  fn: _(({ isOpen: t, color: a }) => [
347
- p(l.$slots, "menuIcon", V(E({ isOpen: t, color: a })), void 0, !0)
347
+ m(l.$slots, "menuIcon", V(E({ isOpen: t, color: a })), void 0, !0)
348
348
  ]),
349
349
  key: "0"
350
350
  } : void 0,
351
351
  l.$slots.optionPdf ? {
352
352
  name: "optionPdf",
353
353
  fn: _(() => [
354
- p(l.$slots, "optionPdf", {}, void 0, !0)
354
+ m(l.$slots, "optionPdf", {}, void 0, !0)
355
355
  ]),
356
356
  key: "1"
357
357
  } : void 0,
358
358
  l.$slots.optionCsv ? {
359
359
  name: "optionCsv",
360
360
  fn: _(() => [
361
- p(l.$slots, "optionCsv", {}, void 0, !0)
361
+ m(l.$slots, "optionCsv", {}, void 0, !0)
362
362
  ]),
363
363
  key: "2"
364
364
  } : void 0,
365
365
  l.$slots.optionImg ? {
366
366
  name: "optionImg",
367
367
  fn: _(() => [
368
- p(l.$slots, "optionImg", {}, void 0, !0)
368
+ m(l.$slots, "optionImg", {}, void 0, !0)
369
369
  ]),
370
370
  key: "3"
371
371
  } : void 0,
372
372
  l.$slots.optionTable ? {
373
373
  name: "optionTable",
374
374
  fn: _(() => [
375
- p(l.$slots, "optionTable", {}, void 0, !0)
375
+ m(l.$slots, "optionTable", {}, void 0, !0)
376
376
  ]),
377
377
  key: "4"
378
378
  } : void 0,
379
379
  l.$slots.optionFullscreen ? {
380
380
  name: "optionFullscreen",
381
381
  fn: _(({ toggleFullscreen: t, isFullscreen: a }) => [
382
- p(l.$slots, "optionFullscreen", V(E({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
382
+ m(l.$slots, "optionFullscreen", V(E({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
383
383
  ]),
384
384
  key: "5"
385
385
  } : void 0,
386
386
  l.$slots.optionAnnotator ? {
387
387
  name: "optionAnnotator",
388
388
  fn: _(({ toggleAnnotator: t, isAnnotator: a }) => [
389
- p(l.$slots, "optionAnnotator", V(E({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
389
+ m(l.$slots, "optionAnnotator", V(E({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
390
390
  ]),
391
391
  key: "6"
392
392
  } : void 0
@@ -411,7 +411,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
411
411
  pointerEvents: "none"
412
412
  }
413
413
  }, [
414
- p(l.$slots, "chart-background", {}, void 0, !0)
414
+ m(l.$slots, "chart-background", {}, void 0, !0)
415
415
  ], 8, ut)) : v("", !0),
416
416
  e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", it, [
417
417
  (o(!0), r(C, null, $(c.value.ticks, (t, a) => (o(), r("line", {
@@ -483,7 +483,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
483
483
  r: e.value.style.chart.labels.xAxisLabels.rounding
484
484
  }),
485
485
  { datapoint: t, seriesIndex: a }
486
- )), 9, pt))), 256))
486
+ )), 9, mt))), 256))
487
487
  ])) : v("", !0),
488
488
  i("defs", null, [
489
489
  i("radialGradient", {
@@ -502,7 +502,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
502
502
  offset: "100%",
503
503
  "stop-color": e.value.style.chart.plots.startColor
504
504
  }, null, 8, xt)
505
- ], 8, mt),
505
+ ], 8, pt),
506
506
  i("radialGradient", {
507
507
  id: `end_grad_${y.value}`,
508
508
  fy: "30%"
@@ -556,7 +556,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
556
556
  }, null, 8, Tt)
557
557
  ], 8, Xt)
558
558
  ]),
559
- e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Pt, [
559
+ e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", Ot, [
560
560
  i("path", {
561
561
  d: `M
562
562
  ${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
@@ -568,7 +568,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
568
568
  Z
569
569
  `,
570
570
  fill: t.endX > t.startX ? `url(#grad_positive_${y.value})` : `url(#grad_negative_${y.value})`
571
- }, null, 8, Ot)
571
+ }, null, 8, Pt)
572
572
  ])) : (o(), r("g", It, [
573
573
  i("rect", {
574
574
  x: t.endX > t.startX ? t.startX : t.endX,
@@ -633,10 +633,10 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
633
633
  { datapoint: t, seriesIndex: a }
634
634
  )), 9, Rt))), 256))
635
635
  ])) : v("", !0),
636
- p(l.$slots, "svg", { svg: s.value }, void 0, !0)
636
+ m(l.$slots, "svg", { svg: s.value }, void 0, !0)
637
637
  ], 14, nt)) : v("", !0),
638
638
  l.$slots.watermark ? (o(), r("div", Ht, [
639
- p(l.$slots, "watermark", V(E({ isPrinting: u(re) || u(ne) })), void 0, !0)
639
+ m(l.$slots, "watermark", V(E({ isPrinting: u(re) || u(ne) })), void 0, !0)
640
640
  ])) : v("", !0),
641
641
  S.value ? v("", !0) : (o(), L(Ke, {
642
642
  key: 6,
@@ -676,11 +676,11 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
676
676
  fill: t.color
677
677
  }, null, 8, Ut)
678
678
  ], 8, Wt)),
679
- pe(" " + A(t.name), 1)
679
+ me(" " + A(t.name), 1)
680
680
  ], 4)
681
681
  ]),
682
682
  _: 1
683
- }, 8, ["legendSet", "config"])) : p(l.$slots, "legend", {
683
+ }, 8, ["legendSet", "config"])) : m(l.$slots, "legend", {
684
684
  key: 1,
685
685
  legend: ve.value
686
686
  }, void 0, !0)
@@ -691,7 +691,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
691
691
  ref: Z,
692
692
  dir: "auto"
693
693
  }, [
694
- p(l.$slots, "source", {}, void 0, !0)
694
+ m(l.$slots, "source", {}, void 0, !0)
695
695
  ], 512)) : v("", !0),
696
696
  S.value ? (o(), L(et, {
697
697
  key: 8,
@@ -726,7 +726,7 @@ const rt = ["id"], nt = ["xmlns", "viewBox"], ut = ["x", "y", "width", "height"]
726
726
  }, null, 8, Bt)
727
727
  ]),
728
728
  td: _(({ td: t }) => [
729
- pe(A(t.name || t), 1)
729
+ me(A(t.name || t), 1)
730
730
  ]),
731
731
  _: 1
732
732
  }, 8, ["colNames", "head", "body", "config", "title"]))