vue-data-ui 2.10.3 → 2.10.5

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 (167) hide show
  1. package/README.md +2 -2
  2. package/dist/{Arrow-ClADeuRV.cjs → Arrow-Badwqciu.cjs} +1 -1
  3. package/dist/{Arrow-CsFRQWgn.js → Arrow-Bb5xelJS.js} +1 -1
  4. package/dist/{BaseIcon-BZiTtIp-.cjs → BaseIcon-CvuQ41yl.cjs} +1 -1
  5. package/dist/{BaseIcon-DuZmhYGx.js → BaseIcon-HDOMbyJq.js} +1 -1
  6. package/dist/{ColorPicker-CWTWiV6N.js → ColorPicker-BODnRb0v.js} +3 -3
  7. package/dist/{ColorPicker-ajFBO-uj.cjs → ColorPicker-NOWXYDyd.cjs} +1 -1
  8. package/dist/{DataTable-D8eve3Rv.cjs → DataTable-Bu_0tRZE.cjs} +1 -1
  9. package/dist/{DataTable-D8vcDzp3.js → DataTable-CGMCHKzY.js} +2 -2
  10. package/dist/{Legend-C-9Va34F.cjs → Legend-BDIC5aus.cjs} +1 -1
  11. package/dist/{Legend-BXkorlVx.js → Legend-CLZW3_-V.js} +2 -2
  12. package/dist/PackageVersion-CKutD59c.cjs +1 -0
  13. package/dist/{PackageVersion-Cwa-KDYy.js → PackageVersion-DrU5ubC-.js} +3 -3
  14. package/dist/{PenAndPaper-bYremuGq.js → PenAndPaper-BF6RVx_0.js} +3 -3
  15. package/dist/{PenAndPaper-mD8Ft9s0.cjs → PenAndPaper-Bnvy0XRn.cjs} +1 -1
  16. package/dist/{Shape-BKl_8fSs.js → Shape-D5Dtzm3x.js} +1 -1
  17. package/dist/{Shape-C-MjxBzW.cjs → Shape-NYJ-EMUq.cjs} +1 -1
  18. package/dist/{Slicer-D-8HCnPl.js → Slicer-BrajQoJL.js} +2 -2
  19. package/dist/{Slicer-BbnCHEKM.cjs → Slicer-Cdgf9oDx.cjs} +1 -1
  20. package/dist/{Title-A3qdvX3g.js → Title-BNsKKvQy.js} +1 -1
  21. package/dist/{Title-g0Df2kQZ.cjs → Title-Cj4tUZSu.cjs} +1 -1
  22. package/dist/{Tooltip-CzFLZsDA.cjs → Tooltip-CLjMKc28.cjs} +1 -1
  23. package/dist/{Tooltip-C3RycjbN.js → Tooltip-Dm2APAls.js} +1 -1
  24. package/dist/documentation/installation.md +2 -2
  25. package/dist/{dom-to-png-CDJbBbow.cjs → dom-to-png-BlAkXMo8.cjs} +1 -1
  26. package/dist/{dom-to-png-BycXzYPI.js → dom-to-png-Z6Fps788.js} +1 -1
  27. package/dist/{img-Daf6wWtq.cjs → img-0HoPau8z.cjs} +1 -1
  28. package/dist/{img-BCG9afle.js → img-DhPFunow.js} +1 -1
  29. package/dist/{index-DO87eA2V.js → index-D2h9qRb4.js} +1 -1
  30. package/dist/{index-CLiv4lWF.cjs → index-D6F-xMcR.cjs} +1 -1
  31. package/dist/{pdf-CUKGQwXz.js → pdf-BpYF_lP6.js} +1 -1
  32. package/dist/{pdf-BO4SP770.cjs → pdf-Dm8bjLUW.cjs} +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/{useNestedProp-DWYmdrE5.cjs → useNestedProp-CAbtwUJj.cjs} +1 -1
  35. package/dist/{useNestedProp-fOy4tvij.js → useNestedProp-DlWfv-mw.js} +1 -1
  36. package/dist/{usePrinter-sfF-cTSO.cjs → usePrinter-B9NkBzf5.cjs} +1 -1
  37. package/dist/{usePrinter-BjvSt_Yu.js → usePrinter-BGkHpXM9.js} +3 -3
  38. package/dist/{vue-data-ui-BGjhB0IM.cjs → vue-data-ui-DPoOpdO-.cjs} +1 -1
  39. package/dist/{vue-data-ui-BnXm4F7y.js → vue-data-ui-kWX-2oPX.js} +62 -62
  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-B_iIJS6A.js → vue-ui-3d-bar-CAJh6lT_.js} +9 -9
  43. package/dist/{vue-ui-3d-bar-eQPQ37P9.cjs → vue-ui-3d-bar-CwsCsbwY.cjs} +1 -1
  44. package/dist/{vue-ui-accordion-CMJOxHWq.js → vue-ui-accordion-C-v1kmEc.js} +3 -3
  45. package/dist/{vue-ui-accordion-DQ-y4bL8.cjs → vue-ui-accordion-ChE9WO8Q.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-BKcb5h0_.cjs → vue-ui-age-pyramid-CAtI3F1S.cjs} +1 -1
  47. package/dist/{vue-ui-age-pyramid-DSelZbfg.js → vue-ui-age-pyramid-DdwMF6_I.js} +10 -10
  48. package/dist/{vue-ui-annotator-BnfB4-1v.cjs → vue-ui-annotator-DQ0W7Q5C.cjs} +1 -1
  49. package/dist/{vue-ui-annotator-Ae8rLlRh.js → vue-ui-annotator-bkpTEqep.js} +2 -2
  50. package/dist/{vue-ui-bullet-CV7t3yQK.js → vue-ui-bullet-BEAyOY56.js} +8 -8
  51. package/dist/{vue-ui-bullet-D3wD3j73.cjs → vue-ui-bullet-CQtNg-wR.cjs} +1 -1
  52. package/dist/{vue-ui-candlestick-CP-TFhQo.cjs → vue-ui-candlestick-DJtpSDju.cjs} +1 -1
  53. package/dist/{vue-ui-candlestick-ylYUQUkS.js → vue-ui-candlestick-DKYirN9r.js} +11 -11
  54. package/dist/{vue-ui-carousel-table-B5FwZhGC.cjs → vue-ui-carousel-table-VFiMfJos.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-B8Yes-sQ.js → vue-ui-carousel-table-q1hGM_Iw.js} +4 -4
  56. package/dist/{vue-ui-chestnut-DAskg0cX.js → vue-ui-chestnut-B1VUR7mU.js} +8 -8
  57. package/dist/{vue-ui-chestnut-De2g4Q2p.cjs → vue-ui-chestnut-DRGps83_.cjs} +1 -1
  58. package/dist/{vue-ui-circle-pack-BlKPb01P.js → vue-ui-circle-pack-Bw_j7w4u.js} +9 -9
  59. package/dist/{vue-ui-circle-pack-BRLoGdmB.cjs → vue-ui-circle-pack-CkpLDinw.cjs} +1 -1
  60. package/dist/{vue-ui-cursor-3vZlEDs4.cjs → vue-ui-cursor-D_ZN42gT.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-Fw7eOKi1.js → vue-ui-cursor-ZkCZRUcy.js} +2 -2
  62. package/dist/{vue-ui-dashboard-B_02OPVe.cjs → vue-ui-dashboard-Bcj-LfoN.cjs} +1 -1
  63. package/dist/vue-ui-dashboard-DnEpTStU.js +325 -0
  64. package/dist/{vue-ui-digits-1inXKiGc.js → vue-ui-digits-Bsseebr6.js} +2 -2
  65. package/dist/{vue-ui-digits-D9COqRtQ.cjs → vue-ui-digits-p0PWcPJX.cjs} +1 -1
  66. package/dist/{vue-ui-donut-snJ23_B8.cjs → vue-ui-donut-C3mhQ-03.cjs} +1 -1
  67. package/dist/{vue-ui-donut-B4HiTFOD.js → vue-ui-donut-CwvMWv_q.js} +12 -12
  68. package/dist/{vue-ui-donut-evolution-CwGD6UCG.js → vue-ui-donut-evolution-BzNh2QwP.js} +11 -11
  69. package/dist/{vue-ui-donut-evolution-t8NE1QRt.cjs → vue-ui-donut-evolution-C9eui30b.cjs} +1 -1
  70. package/dist/{vue-ui-dumbbell-BItso2iE.cjs → vue-ui-dumbbell-BheHAxmy.cjs} +1 -1
  71. package/dist/{vue-ui-dumbbell-DdFlUsZF.js → vue-ui-dumbbell-BvNEHy9Z.js} +10 -10
  72. package/dist/{vue-ui-flow-CR-74ZdV.js → vue-ui-flow-DBuLJlEV.js} +9 -9
  73. package/dist/{vue-ui-flow-DZrVpkqa.cjs → vue-ui-flow-vz29fymj.cjs} +1 -1
  74. package/dist/{vue-ui-funnel-P6dph9rO.cjs → vue-ui-funnel-D8brKLer.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-C6Q9kDZj.js → vue-ui-funnel-DhoOe49e.js} +9 -9
  76. package/dist/{vue-ui-galaxy-CRvj8ew8.js → vue-ui-galaxy-DUQ5z3km.js} +11 -11
  77. package/dist/{vue-ui-galaxy-BzfQwtb7.cjs → vue-ui-galaxy-YP3Gl3vG.cjs} +1 -1
  78. package/dist/{vue-ui-gauge-CrrDIYlt.js → vue-ui-gauge-C_8QgadB.js} +7 -7
  79. package/dist/{vue-ui-gauge-BOmHo3_2.cjs → vue-ui-gauge-WH6OGXAD.cjs} +1 -1
  80. package/dist/{vue-ui-gizmo-CdBHJhKH.cjs → vue-ui-gizmo-D2AJKoeB.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-BjKqctlX.js → vue-ui-gizmo-DFy9X5IT.js} +3 -3
  82. package/dist/{vue-ui-heatmap-DQZsO55U.js → vue-ui-heatmap-DH93m9RC.js} +195 -190
  83. package/dist/vue-ui-heatmap-Dx8XPeob.cjs +1 -0
  84. package/dist/{vue-ui-history-plot-DR6KcO-n.js → vue-ui-history-plot-C-9fJrMv.js} +11 -11
  85. package/dist/{vue-ui-history-plot-BwmxWdM2.cjs → vue-ui-history-plot-Cmc7KMnB.cjs} +1 -1
  86. package/dist/{vue-ui-kpi-DPbpUZ9S.js → vue-ui-kpi-C6cv6sCW.js} +3 -3
  87. package/dist/{vue-ui-kpi-CL1YEty9.cjs → vue-ui-kpi-DqpTRLkQ.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-DH6ZNRTg.js → vue-ui-mini-loader-BH-Hztc3.js} +2 -2
  89. package/dist/{vue-ui-mini-loader-sEeyMkrd.cjs → vue-ui-mini-loader-CpxzfBja.cjs} +1 -1
  90. package/dist/{vue-ui-molecule-DLK2q-Oq.js → vue-ui-molecule-1475qvln.js} +11 -11
  91. package/dist/{vue-ui-molecule-CRnMyuuZ.cjs → vue-ui-molecule-avfEzaAy.cjs} +1 -1
  92. package/dist/{vue-ui-mood-radar-lnAFfrjE.cjs → vue-ui-mood-radar-CnAmD4WX.cjs} +1 -1
  93. package/dist/{vue-ui-mood-radar-W5IVToCL.js → vue-ui-mood-radar-SJjT1sCF.js} +11 -11
  94. package/dist/{vue-ui-nested-donuts-DtgPU-KX.js → vue-ui-nested-donuts-6MGMcByL.js} +11 -11
  95. package/dist/{vue-ui-nested-donuts-CeuU6oEJ.cjs → vue-ui-nested-donuts-BkQJr_zV.cjs} +1 -1
  96. package/dist/{vue-ui-onion-WwdP8EpV.cjs → vue-ui-onion-CA2N8k0p.cjs} +1 -1
  97. package/dist/{vue-ui-onion-BeNPgG7G.js → vue-ui-onion-DzreNeV2.js} +11 -11
  98. package/dist/{vue-ui-parallel-coordinate-plot-Ck3SJsIG.js → vue-ui-parallel-coordinate-plot-CyoOsjFp.js} +12 -12
  99. package/dist/{vue-ui-parallel-coordinate-plot-Cv68PCn5.cjs → vue-ui-parallel-coordinate-plot-V6vt-U3H.cjs} +1 -1
  100. package/dist/{vue-ui-quadrant-DZ6ybcaY.cjs → vue-ui-quadrant-C7Fb-DVA.cjs} +1 -1
  101. package/dist/{vue-ui-quadrant-CMkw88lO.js → vue-ui-quadrant-DkMAnQHE.js} +12 -12
  102. package/dist/{vue-ui-quick-chart-Cl6gJp5T.js → vue-ui-quick-chart-BNf57IFn.js} +9 -9
  103. package/dist/{vue-ui-quick-chart-DJa7vHnr.cjs → vue-ui-quick-chart-CQp5GSbr.cjs} +1 -1
  104. package/dist/{vue-ui-radar-D18-CVYt.js → vue-ui-radar-DHxUS4r0.js} +12 -12
  105. package/dist/{vue-ui-radar-DJQ9V5u3.cjs → vue-ui-radar-DVv2P3B3.cjs} +1 -1
  106. package/dist/{vue-ui-rating-4aeU2wx4.js → vue-ui-rating-2dp8n1gK.js} +2 -2
  107. package/dist/{vue-ui-rating-DJ8riM4Y.cjs → vue-ui-rating-CA5buZm1.cjs} +1 -1
  108. package/dist/{vue-ui-relation-circle-CNmTYbJn.cjs → vue-ui-relation-circle-BGY0EsvO.cjs} +1 -1
  109. package/dist/{vue-ui-relation-circle-D5fbkhA5.js → vue-ui-relation-circle-hU35G-pb.js} +7 -7
  110. package/dist/{vue-ui-ridgeline-DYu8Ye38.js → vue-ui-ridgeline-CTE25ofY.js} +12 -12
  111. package/dist/{vue-ui-ridgeline-DcP5wra6.cjs → vue-ui-ridgeline-dhS0sX29.cjs} +1 -1
  112. package/dist/{vue-ui-rings-CLex25i0.cjs → vue-ui-rings-2XntvE5b.cjs} +1 -1
  113. package/dist/{vue-ui-rings-BVR1q--q.js → vue-ui-rings-BgJT1xPm.js} +12 -12
  114. package/dist/{vue-ui-scatter-CSsBerNk.cjs → vue-ui-scatter-Brh98c-o.cjs} +1 -1
  115. package/dist/{vue-ui-scatter-1nnDmU8p.js → vue-ui-scatter-YKeV-y-p.js} +12 -12
  116. package/dist/{vue-ui-skeleton-3odYNTi5.cjs → vue-ui-skeleton-CK5DdXVo.cjs} +1 -1
  117. package/dist/{vue-ui-skeleton-BTg31tSs.js → vue-ui-skeleton-CNP_4H8z.js} +3 -3
  118. package/dist/{vue-ui-smiley-DAbOc9Sm.cjs → vue-ui-smiley-3uIAUF4w.cjs} +1 -1
  119. package/dist/{vue-ui-smiley-BIzjWlLm.js → vue-ui-smiley-BUlzuzq6.js} +2 -2
  120. package/dist/{vue-ui-spark-trend-CRKk0fMc.cjs → vue-ui-spark-trend-CfhhjekZ.cjs} +1 -1
  121. package/dist/{vue-ui-spark-trend-CFYnfyEb.js → vue-ui-spark-trend-DmwQZLUP.js} +5 -5
  122. package/dist/{vue-ui-sparkbar-CCZDQYle.cjs → vue-ui-sparkbar-BxKGdAq3.cjs} +1 -1
  123. package/dist/{vue-ui-sparkbar-V1FyDpDn.js → vue-ui-sparkbar-TLxa0K9v.js} +4 -4
  124. package/dist/{vue-ui-sparkgauge-MgywKNqC.js → vue-ui-sparkgauge-CIwnnQYW.js} +4 -4
  125. package/dist/{vue-ui-sparkgauge-CrirH2LX.cjs → vue-ui-sparkgauge-CWXLMSHa.cjs} +1 -1
  126. package/dist/{vue-ui-sparkhistogram-U__aSGYT.cjs → vue-ui-sparkhistogram-Df0Edni4.cjs} +1 -1
  127. package/dist/{vue-ui-sparkhistogram-CwBviGI7.js → vue-ui-sparkhistogram-w1rEgV9S.js} +5 -5
  128. package/dist/{vue-ui-sparkline-BHiVgcfL.cjs → vue-ui-sparkline-BQCbVZw5.cjs} +1 -1
  129. package/dist/{vue-ui-sparkline-D3v5ydDD.js → vue-ui-sparkline-C2Sf6sF4.js} +4 -4
  130. package/dist/{vue-ui-sparkstackbar--tnnBrOu.js → vue-ui-sparkstackbar-BaVuTNxy.js} +5 -5
  131. package/dist/{vue-ui-sparkstackbar-BrBQ2Vby.cjs → vue-ui-sparkstackbar-BlyzQCK8.cjs} +1 -1
  132. package/dist/{vue-ui-stackbar-C-dJRiXT.js → vue-ui-stackbar-D4H8uFQ5.js} +13 -13
  133. package/dist/{vue-ui-stackbar-D7htqdCz.cjs → vue-ui-stackbar-ypv8uR9d.cjs} +1 -1
  134. package/dist/{vue-ui-strip-plot-hNrBW3SU.cjs → vue-ui-strip-plot-CmrAJ6uF.cjs} +1 -1
  135. package/dist/{vue-ui-strip-plot-B-Mc-qGK.js → vue-ui-strip-plot-Dxh7xzZf.js} +11 -11
  136. package/dist/{vue-ui-table-CQp16PNe.js → vue-ui-table-BD8QgS2P.js} +3 -3
  137. package/dist/{vue-ui-table-ByDKzqNM.cjs → vue-ui-table-BmyVGToW.cjs} +1 -1
  138. package/dist/{vue-ui-table-heatmap-DaEPU0kc.cjs → vue-ui-table-heatmap-CXTW4REL.cjs} +1 -1
  139. package/dist/{vue-ui-table-heatmap-BNl4iQhq.js → vue-ui-table-heatmap-DZIrV6Bq.js} +4 -4
  140. package/dist/{vue-ui-table-sparkline-BgV9zEpQ.cjs → vue-ui-table-sparkline--R1CzNtx.cjs} +1 -1
  141. package/dist/{vue-ui-table-sparkline-lTHfuO-u.js → vue-ui-table-sparkline-B0aYy2JL.js} +5 -5
  142. package/dist/{vue-ui-thermometer-BN6Hyr3r.js → vue-ui-thermometer-Dh0nVf-h.js} +7 -7
  143. package/dist/{vue-ui-thermometer-HB6BdSZ7.cjs → vue-ui-thermometer-DtOy35Jd.cjs} +1 -1
  144. package/dist/{vue-ui-timer-6NZga1VA.cjs → vue-ui-timer-Bo3p5wjo.cjs} +1 -1
  145. package/dist/{vue-ui-timer-DpIbKhWx.js → vue-ui-timer-C4JkVftX.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-Bssfpj2T.cjs → vue-ui-tiremarks-B-3AEiND.cjs} +1 -1
  147. package/dist/{vue-ui-tiremarks-BDlFLwmy.js → vue-ui-tiremarks-GLU60Yzo.js} +7 -7
  148. package/dist/{vue-ui-treemap-CSEqsnF6.js → vue-ui-treemap-QyQqnbJc.js} +12 -12
  149. package/dist/{vue-ui-treemap-X9VKUYSw.cjs → vue-ui-treemap-ZiuUtYjs.cjs} +1 -1
  150. package/dist/{vue-ui-vertical-bar-SgM2OnqX.js → vue-ui-vertical-bar-CbwZCrcW.js} +12 -12
  151. package/dist/{vue-ui-vertical-bar-Bv35bg1C.cjs → vue-ui-vertical-bar-DHZvOGpR.cjs} +1 -1
  152. package/dist/{vue-ui-waffle-CPwuaVId.js → vue-ui-waffle-D_zRZStV.js} +12 -12
  153. package/dist/{vue-ui-waffle-C1L34KiX.cjs → vue-ui-waffle-Yi5W6qYr.cjs} +1 -1
  154. package/dist/{vue-ui-wheel-D2HqXb2O.cjs → vue-ui-wheel-D85CwfOC.cjs} +1 -1
  155. package/dist/{vue-ui-wheel-DbNXTA9I.js → vue-ui-wheel-D_wbd08e.js} +7 -7
  156. package/dist/{vue-ui-word-cloud-Cmm3wp39.cjs → vue-ui-word-cloud-CkActnvX.cjs} +1 -1
  157. package/dist/{vue-ui-word-cloud-B7VTWsl2.js → vue-ui-word-cloud-jMOFgeRb.js} +10 -10
  158. package/dist/{vue-ui-world-51vUWrqr.js → vue-ui-world-XMoqQwg7.js} +11 -11
  159. package/dist/{vue-ui-world-Bi32aYtK.cjs → vue-ui-world-aTdY2yXo.cjs} +1 -1
  160. package/dist/{vue-ui-xy-D1O0m03x.js → vue-ui-xy-DL6V_DZs.js} +16 -16
  161. package/dist/{vue-ui-xy-BxJgh4xL.cjs → vue-ui-xy-DYEFXjnb.cjs} +2 -2
  162. package/dist/{vue-ui-xy-canvas-DsZxaeOo.js → vue-ui-xy-canvas-DpX9D7Ny.js} +12 -12
  163. package/dist/{vue-ui-xy-canvas-DbS90DFy.cjs → vue-ui-xy-canvas-K0Qm3FPR.cjs} +1 -1
  164. package/package.json +1 -1
  165. package/dist/PackageVersion-B6hD3Tku.cjs +0 -1
  166. package/dist/vue-ui-dashboard-jeg6HmFh.js +0 -317
  167. package/dist/vue-ui-heatmap-CfeV2PVZ.cjs +0 -1
@@ -0,0 +1,325 @@
1
+ import { useCssVars as ae, computed as V, defineAsyncComponent as o, ref as r, watch as ie, createElementBlock as y, openBlock as g, createCommentVNode as N, createElementVNode as b, normalizeStyle as S, createStaticVNode as ne, Fragment as W, renderList as le, normalizeClass as re, renderSlot as z, createBlock as se, resolveDynamicComponent as de, mergeProps as ce } from "vue";
2
+ import he from "./pdf-BpYF_lP6.js";
3
+ import { u as ve } from "./useNestedProp-DlWfv-mw.js";
4
+ import { u as pe, c as fe } from "./index-D2h9qRb4.js";
5
+ import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const ge = {
7
+ key: 0,
8
+ "data-dom-to-png-ignore": "",
9
+ style: { width: "100%", display: "flex", "justify-content": "end" }
10
+ }, be = ["disabled"], Ue = ["stroke"], Ve = { key: 1 }, ye = ["id"], we = ["onMousedown", "onTouchstart"], ke = ["onMousedown", "onTouchstart"], Te = ["onMousedown", "onTouchstart"], Me = ["onMousedown", "onTouchstart"], Ce = ["onMousedown", "onTouchstart"], $ = 1, _e = {
11
+ __name: "vue-ui-dashboard",
12
+ props: {
13
+ dataset: Array,
14
+ config: Object
15
+ },
16
+ emits: ["change"],
17
+ setup(R, { expose: B, emit: E }) {
18
+ ae((e) => ({
19
+ "56f02d00": J.value,
20
+ "2fbe8dda": Z.value
21
+ }));
22
+ const L = {
23
+ VueDataUi: o(() => import("./vue-data-ui-kWX-2oPX.js")),
24
+ VueUi3dBar: o(() => import("./vue-ui-3d-bar-CAJh6lT_.js")),
25
+ VueUiAccordion: o(() => import("./vue-ui-accordion-C-v1kmEc.js")),
26
+ VueUiAgePyramid: o(() => import("./vue-ui-age-pyramid-DdwMF6_I.js")),
27
+ VueUiAnnotator: o(() => import("./vue-ui-annotator-bkpTEqep.js")),
28
+ VueUiCandlestick: o(() => import("./vue-ui-candlestick-DKYirN9r.js")),
29
+ VueUiChestnut: o(() => import("./vue-ui-chestnut-B1VUR7mU.js")),
30
+ VueUiDigits: o(() => import("./vue-ui-digits-Bsseebr6.js")),
31
+ VueUiDonut: o(() => import("./vue-ui-donut-CwvMWv_q.js")),
32
+ VueUiDonutEvolution: o(() => import("./vue-ui-donut-evolution-BzNh2QwP.js")),
33
+ VueUiDumbbell: o(() => import("./vue-ui-dumbbell-BvNEHy9Z.js")),
34
+ VueUiFlow: o(() => import("./vue-ui-flow-DBuLJlEV.js")),
35
+ VueUiGalaxy: o(() => import("./vue-ui-galaxy-DUQ5z3km.js")),
36
+ VueUiGauge: o(() => import("./vue-ui-gauge-C_8QgadB.js")),
37
+ VueUiHeatmap: o(() => import("./vue-ui-heatmap-DH93m9RC.js")),
38
+ VueUiKpi: o(() => import("./vue-ui-kpi-C6cv6sCW.js")),
39
+ VueUiMiniLoader: o(() => import("./vue-ui-mini-loader-BH-Hztc3.js")),
40
+ VueUiMolecule: o(() => import("./vue-ui-molecule-1475qvln.js")),
41
+ VueUiMoodRadar: o(() => import("./vue-ui-mood-radar-SJjT1sCF.js")),
42
+ VueUiNestedDonuts: o(() => import("./vue-ui-nested-donuts-6MGMcByL.js")),
43
+ VueUiOnion: o(() => import("./vue-ui-onion-DzreNeV2.js")),
44
+ VueUiParallelCoordinatePlot: o(() => import("./vue-ui-parallel-coordinate-plot-CyoOsjFp.js")),
45
+ VueUiQuadrant: o(() => import("./vue-ui-quadrant-DkMAnQHE.js")),
46
+ VueUiQuickChart: o(() => import("./vue-ui-quick-chart-BNf57IFn.js")),
47
+ VueUiRadar: o(() => import("./vue-ui-radar-DHxUS4r0.js")),
48
+ VueUiRating: o(() => import("./vue-ui-rating-2dp8n1gK.js")),
49
+ VueUiRelationCircle: o(() => import("./vue-ui-relation-circle-hU35G-pb.js")),
50
+ VueUiRings: o(() => import("./vue-ui-rings-BgJT1xPm.js")),
51
+ VueUiScatter: o(() => import("./vue-ui-scatter-YKeV-y-p.js")),
52
+ VueUiSkeleton: o(() => import("./vue-ui-skeleton-CNP_4H8z.js")),
53
+ VueUiSmiley: o(() => import("./vue-ui-smiley-BUlzuzq6.js")),
54
+ VueUiSparkHistogram: o(() => import("./vue-ui-sparkhistogram-w1rEgV9S.js")),
55
+ VueUiSparkStackbar: o(() => import("./vue-ui-sparkstackbar-BaVuTNxy.js")),
56
+ VueUiSparkTrend: o(() => import("./vue-ui-spark-trend-DmwQZLUP.js")),
57
+ VueUiSparkbar: o(() => import("./vue-ui-sparkbar-TLxa0K9v.js")),
58
+ VueUiSparkgauge: o(() => import("./vue-ui-sparkgauge-CIwnnQYW.js")),
59
+ VueUiSparkline: o(() => import("./vue-ui-sparkline-C2Sf6sF4.js")),
60
+ VueUiStripPlot: o(() => import("./vue-ui-strip-plot-Dxh7xzZf.js")),
61
+ VueUiTable: o(() => import("./vue-ui-table-BD8QgS2P.js")),
62
+ VueUiTableHeatmap: o(() => import("./vue-ui-table-heatmap-DZIrV6Bq.js")),
63
+ VueUiTableSparkline: o(() => import("./vue-ui-table-sparkline-B0aYy2JL.js")),
64
+ VueUiThermometer: o(() => import("./vue-ui-thermometer-Dh0nVf-h.js")),
65
+ VueUiTimer: o(() => import("./vue-ui-timer-C4JkVftX.js")),
66
+ VueUiTiremarks: o(() => import("./vue-ui-tiremarks-GLU60Yzo.js")),
67
+ VueUiTreemap: o(() => import("./vue-ui-treemap-QyQqnbJc.js")),
68
+ VueUiVerticalBar: o(() => import("./vue-ui-vertical-bar-CbwZCrcW.js")),
69
+ VueUiWaffle: o(() => import("./vue-ui-waffle-D_zRZStV.js")),
70
+ VueUiWheel: o(() => import("./vue-ui-wheel-D_wbd08e.js")),
71
+ VueUiWordCloud: o(() => import("./vue-ui-word-cloud-jMOFgeRb.js")),
72
+ VueUiXy: o(() => import("./vue-ui-xy-DL6V_DZs.js")),
73
+ VueUiXyCanvas: o(() => import("./vue-ui-xy-canvas-DpX9D7Ny.js")),
74
+ VueUiCarouselTable: o(() => import("./vue-ui-carousel-table-q1hGM_Iw.js")),
75
+ VueUiGizmo: o(() => import("./vue-ui-gizmo-DFy9X5IT.js")),
76
+ VueUiStackbar: o(() => import("./vue-ui-stackbar-D4H8uFQ5.js")),
77
+ VueUiBullet: o(() => import("./vue-ui-bullet-BEAyOY56.js")),
78
+ VueUiFunnel: o(() => import("./vue-ui-funnel-DhoOe49e.js")),
79
+ VueUiHistoryPlot: o(() => import("./vue-ui-history-plot-C-9fJrMv.js")),
80
+ VueUiCirclePack: o(() => import("./vue-ui-circle-pack-Bw_j7w4u.js")),
81
+ VueUiWorld: o(() => import("./vue-ui-world-XMoqQwg7.js"))
82
+ }, { vue_ui_dashboard: F } = pe(), D = R, s = V(() => ve({
83
+ userConfig: D.config,
84
+ defaultConfig: F
85
+ })), P = r(fe()), h = r(s.value.locked);
86
+ function A() {
87
+ h.value = !h.value;
88
+ }
89
+ const l = r(D.dataset.map((e, t) => ({
90
+ ...e,
91
+ index: t
92
+ }))), X = V(
93
+ () => l.value.map((e) => ({
94
+ ...e,
95
+ resolvedComponent: typeof e.component == "string" ? L[e.component] : e.component
96
+ }))
97
+ ), v = r(null), n = r(null), p = r({ x: 0, y: 0 }), f = r({ x: 0, y: 0 }), d = r(null), c = r(!1), m = r(null), T = r(!1), w = r(!1);
98
+ function x(e) {
99
+ const t = e.target;
100
+ (t.tagName === "INPUT" && t.type === "range" || t.classList.contains("range-handle")) && (w.value = !0);
101
+ }
102
+ function H(e) {
103
+ const t = e.target;
104
+ t.tagName === "INPUT" && t.type === "range" && (w.value = !1);
105
+ }
106
+ function I() {
107
+ T.value = !0, he({
108
+ domElement: document.getElementById(`vue-ui-dashboard_${P.value}`),
109
+ fileName: "vue-ui-dashboard"
110
+ }).finally(() => {
111
+ T.value = !1;
112
+ });
113
+ }
114
+ function G(e) {
115
+ if (!h.value && (c.value = !0, m.value = e, n.value === null)) {
116
+ v.value = e, p.value = { x: event.clientX, y: event.clientY };
117
+ const t = l.value[e], a = 100 - t.width, u = 100 - t.height;
118
+ t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left > a && (t.left = a), t.top > u && (t.top = u), t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left + t.width > 100 && (t.left = 100 - t.width), t.top + t.height > 100 && (t.top = 100 - t.height);
119
+ }
120
+ }
121
+ function M(e, t) {
122
+ c.value = !0, m.value = e, n.value = { index: e, direction: t };
123
+ const a = l.value[e];
124
+ f.value = { x: event.clientX, y: event.clientY, initialWidth: a.width, initialHeight: a.height };
125
+ }
126
+ function Y(e, t, a) {
127
+ if (n.value.direction.includes("top")) {
128
+ const u = e.height - a / d.value.offsetHeight * 100;
129
+ u >= $ && (e.top += a / d.value.offsetHeight * 100, e.height = u);
130
+ }
131
+ if (n.value.direction.includes("bottom")) {
132
+ const u = e.height + a / d.value.offsetHeight * 100;
133
+ u >= $ && (e.height = u);
134
+ }
135
+ if (n.value.direction.includes("left")) {
136
+ const u = e.width - t / d.value.offsetWidth * 100;
137
+ u >= $ && (e.left += t / d.value.offsetWidth * 100, e.width = u);
138
+ }
139
+ if (n.value.direction.includes("right")) {
140
+ const u = e.width + t / d.value.offsetWidth * 100;
141
+ u >= $ && (e.width = u);
142
+ }
143
+ }
144
+ function O(e) {
145
+ if (!(h.value || w.value)) {
146
+ if (c.value = !0, v.value !== null) {
147
+ const t = l.value[v.value], a = e.clientX - p.value.x, u = e.clientY - p.value.y, i = t.left + a / d.value.offsetWidth * 100, U = t.top + u / d.value.offsetHeight * 100;
148
+ i >= 0 && U >= 0 && i + t.width <= 100 && U + t.height <= 100 && (t.left = i, t.top = U), p.value = { x: e.clientX, y: e.clientY };
149
+ }
150
+ if (n.value !== null) {
151
+ const t = l.value[n.value.index], a = e.clientX - f.value.x, u = e.clientY - f.value.y;
152
+ Y(t, a, u), f.value = { x: e.clientX, y: e.clientY };
153
+ }
154
+ }
155
+ }
156
+ const j = E;
157
+ ie(
158
+ l,
159
+ (e) => {
160
+ e && !c.value && j("change", l.value);
161
+ },
162
+ { deep: !0 }
163
+ );
164
+ function Q() {
165
+ v.value = null, n.value = null, c.value = !1, m.value = null, l.value.forEach((e) => {
166
+ e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
167
+ });
168
+ }
169
+ function K(e) {
170
+ h.value || w.value || (c.value = !0, m.value = e, n.value === null && (v.value = e, p.value = { x: event.touches[0].clientX, y: event.touches[0].clientY }));
171
+ }
172
+ function C(e, t, a) {
173
+ if (c.value = !0, m.value = e, n.value === null) {
174
+ n.value = { index: e, direction: t };
175
+ const u = l.value[e];
176
+ f.value = { x: a.touches[0].clientX, y: a.touches[0].clientY, initialWidth: u.width, initialHeight: u.height };
177
+ }
178
+ }
179
+ function _(e) {
180
+ if (c.value = !0, e.preventDefault(), n.value !== null) {
181
+ const t = l.value[n.value.index], a = e.touches[0].clientX - f.value.x, u = e.touches[0].clientY - f.value.y;
182
+ Y(t, a, u), f.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
183
+ }
184
+ }
185
+ function q(e) {
186
+ if (!(h.value || w.value) && (c.value = !0, e.preventDefault(), v.value !== null)) {
187
+ const t = l.value[v.value], a = e.touches[0].clientX - p.value.x, u = e.touches[0].clientY - p.value.y, i = t.left + a / d.value.offsetWidth * 100, U = t.top + u / d.value.offsetHeight * 100;
188
+ i >= 0 && U >= 0 && i + t.width <= 100 && U + t.height <= 100 && (t.left = i, t.top = U), p.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
189
+ }
190
+ }
191
+ function k() {
192
+ c.value = !1, m.value = null, v.value = null, n.value = null, l.value.forEach((e) => {
193
+ e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
194
+ });
195
+ }
196
+ const J = V(() => s.value.style.item.borderColor), Z = V(() => s.value.style.resizeHandles.backgroundColor), ee = V(() => s.value.style.board.aspectRatio), te = V(() => s.value.style.board.backgroundColor), oe = V(() => s.value.style.board.border);
197
+ function ue() {
198
+ return l.value;
199
+ }
200
+ return B({
201
+ generatePdf: I,
202
+ getItemsPositions: ue,
203
+ toggleLock: A
204
+ }), (e, t) => (g(), y("div", {
205
+ onMousedown: x,
206
+ onMouseup: H,
207
+ onTouchstart: x,
208
+ onTouchend: H
209
+ }, [
210
+ s.value.allowPrint ? (g(), y("div", ge, [
211
+ b("button", {
212
+ class: "vue-ui-dashboard-button",
213
+ onClick: I,
214
+ disabled: T.value,
215
+ style: S([{ "margin-top": "12px" }, `color:${s.value.style.board.color}`])
216
+ }, [
217
+ T.value ? (g(), y("svg", {
218
+ key: 0,
219
+ class: "vue-ui-dashboard-print-icon",
220
+ xmlns: "http://www.w3.org/2000/svg",
221
+ width: "20",
222
+ height: "20",
223
+ viewBox: "0 0 24 24",
224
+ "stroke-width": "1.5",
225
+ stroke: s.value.style.board.color,
226
+ fill: "none",
227
+ "stroke-linecap": "round",
228
+ "stroke-linejoin": "round"
229
+ }, t[4] || (t[4] = [
230
+ ne('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-f5946722></path><path d="M18 16v.01" data-v-f5946722></path><path d="M6 16v.01" data-v-f5946722></path><path d="M12 5v.01" data-v-f5946722></path><path d="M12 12v.01" data-v-f5946722></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-f5946722></path>', 6)
231
+ ]), 8, Ue)) : (g(), y("span", Ve, "PDF"))
232
+ ], 12, be)
233
+ ])) : N("", !0),
234
+ b("div", {
235
+ class: "vue-ui-dashboard-container",
236
+ ref_key: "dashboardContainer",
237
+ ref: d,
238
+ id: `vue-ui-dashboard_${P.value}`,
239
+ style: S(`border:${oe.value}; background:${te.value}; aspect-ratio:${ee.value}`)
240
+ }, [
241
+ b("div", {
242
+ class: "vue-ui-dashboard-grid-container",
243
+ ref: "container",
244
+ onMousemove: O,
245
+ onMouseup: Q,
246
+ onTouchmove: q,
247
+ onTouchend: k,
248
+ style: S(`background:${s.value.style.board.backgroundColor}`)
249
+ }, [
250
+ t[5] || (t[5] = b("div", { class: "vue-ui-dashboard-grid" }, null, -1)),
251
+ (g(!0), y(W, null, le(X.value, (a, u) => (g(), y("div", {
252
+ key: a.id,
253
+ class: re({ "vue-ui-dashboard-grid-item": !0, "vue-ui-dashboard-grid-item--locked": h.value }),
254
+ style: S({
255
+ width: `${a.width}%`,
256
+ height: `${a.height}%`,
257
+ left: `${a.left}%`,
258
+ top: `${a.top}%`,
259
+ cursor: "move",
260
+ boxShadow: m.value === u ? "0 6px 12px -3px rgba(0,0,0,0.3)" : "",
261
+ zIndex: m.value === u ? X.value.length + 1 : a.index,
262
+ backgroundColor: s.value.style.item.backgroundColor
263
+ }),
264
+ onMousedown: (i) => G(u),
265
+ onTouchstart: (i) => K(u)
266
+ }, [
267
+ h.value ? N("", !0) : (g(), y(W, { key: 0 }, [
268
+ b("div", {
269
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",
270
+ onMousedown: (i) => M(u, "top-left"),
271
+ onTouchstart: (i) => C(u, "top-left", i),
272
+ onTouchmove: t[0] || (t[0] = (i) => _(i)),
273
+ onTouchend: k
274
+ }, null, 40, ke),
275
+ b("div", {
276
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",
277
+ onMousedown: (i) => M(u, "top-right"),
278
+ onTouchstart: (i) => C(u, "top-right", i),
279
+ onTouchmove: t[1] || (t[1] = (i) => _(i)),
280
+ onTouchend: k
281
+ }, null, 40, Te),
282
+ b("div", {
283
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",
284
+ onMousedown: (i) => M(u, "bottom-left"),
285
+ onTouchstart: (i) => C(u, "bottom-left", i),
286
+ onTouchmove: t[2] || (t[2] = (i) => _(i)),
287
+ onTouchend: k
288
+ }, null, 40, Me),
289
+ b("div", {
290
+ class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",
291
+ onMousedown: (i) => M(u, "bottom-right"),
292
+ onTouchstart: (i) => C(u, "bottom-right", i),
293
+ onTouchmove: t[3] || (t[3] = (i) => _(i)),
294
+ onTouchend: k
295
+ }, null, 40, Ce)
296
+ ], 64)),
297
+ z(e.$slots, "top", {
298
+ item: a,
299
+ index: u
300
+ }, void 0, !0),
301
+ a.resolvedComponent ? (g(), se(de(a.resolvedComponent), ce({
302
+ key: 1,
303
+ ref_for: !0
304
+ }, a.props), null, 16)) : z(e.$slots, "content", {
305
+ key: 2,
306
+ item: a,
307
+ index: u,
308
+ left: a.left,
309
+ top: a.top,
310
+ height: a.height,
311
+ width: a.width
312
+ }, void 0, !0),
313
+ z(e.$slots, "bottom", {
314
+ item: a,
315
+ index: u
316
+ }, void 0, !0)
317
+ ], 46, we))), 128))
318
+ ], 36)
319
+ ], 12, ye)
320
+ ], 32));
321
+ }
322
+ }, Xe = /* @__PURE__ */ me(_e, [["__scopeId", "data-v-f5946722"]]);
323
+ export {
324
+ Xe as default
325
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as k, computed as d, createElementBlock as i, openBlock as $, Fragment as o, createCommentVNode as m, createElementVNode as l, normalizeStyle as v, unref as C, renderList as b, createBlock as N } from "vue";
2
- import { u as q } from "./useNestedProp-fOy4tvij.js";
3
- import { u as M, X as S } from "./index-DO87eA2V.js";
2
+ import { u as q } from "./useNestedProp-DlWfv-mw.js";
3
+ import { u as M, X as S } from "./index-D2h9qRb4.js";
4
4
  const w = { key: 0 }, B = ["d", "fill"], F = ["d", "fill"], X = ["d", "fill"], E = ["d", "fill"], I = ["d", "fill"], O = ["d", "fill"], A = ["d", "fill"], D = { key: 1 }, G = ["cx", "cy", "fill"], V = {
5
5
  __name: "Digit",
6
6
  props: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-DWYmdrE5.cjs"),L=require("./index-CLiv4lWF.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const $=e,u=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes($.quanta)?u.value.X:u.value[$.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const{vue_ui_digits:$}=L.useConfig(),u=e,l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),i=[],n={x:10,y:10};let d=0;for(let y=0;y<c.length;y+=1){const o=c[y];i.push({x:n.x+d,y:n.y,quanta:o}),o=="."?d+=2:d+=44}return i}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,i)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-ui-digits",xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("./useNestedProp-CAbtwUJj.cjs"),L=require("./index-D6F-xMcR.cjs"),f={key:0},m=["d","fill"],k=["d","fill"],h=["d","fill"],v=["d","fill"],C=["d","fill"],N=["d","fill"],b=["d","fill"],B={key:1},E=["cx","cy","fill"],q={__name:"Digit",props:{quanta:{type:String,default:null},backgroundColor:{type:String,default:"#e1e5e8"},color:{type:String,default:"#000000"},x:{type:Number,default:0},y:{type:Number,default:0}},setup(e){const $=e,u=t.ref({0:"1111110",1:"0110000",2:"1101101",3:"1111001",4:"0110011",5:"1011011",6:"1011111",7:"1110000",8:"1111111",9:"1111011","-":"0000001",X:"0000000"}),l=t.computed(()=>[void 0,null].includes($.quanta)?u.value.X:u.value[$.quanta]);return(a,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[[void 0,null,"."].includes(e.quanta)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("g",f,[t.createElementVNode("path",{d:`M ${e.x} ${e.y} L ${e.x+2} ${e.y-2} L ${e.x+24} ${e.y-2} L ${e.x+26} ${e.y} L ${e.x+24} ${e.y+2} L ${e.x+2} ${e.y+2}Z`,fill:l.value[0]==1?e.color:e.backgroundColor,stroke:"none"},null,8,m),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+26} L ${e.x+26} ${e.y+4} L ${e.x+28} ${e.y+2} L ${e.x+30} ${e.y+4} L ${e.x+30} ${e.y+26} L ${e.x+28} ${e.y+28} L ${e.x+26} ${e.y+26}`,fill:l.value[1]==1?e.color:e.backgroundColor,stroke:"none"},null,8,k),t.createElementVNode("path",{d:`M ${e.x+26} ${e.y+56} L ${e.x+26} ${e.y+34} L ${e.x+28} ${e.y+32} L ${e.x+30} ${e.y+34} L ${e.x+30} ${e.y+56} L ${e.x+28} ${e.y+58} L ${e.x+26} ${e.y+56}`,fill:l.value[2]==1?e.color:e.backgroundColor,stroke:"none"},null,8,h),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+58} L ${e.x} ${e.y+60} L ${e.x+2} ${e.y+62} L ${e.x+24} ${e.y+62} L ${e.x+26} ${e.y+60} L ${e.x+24} ${e.y+58} L ${e.x+2} ${e.y+58}`,fill:l.value[3]==1?e.color:e.backgroundColor,stroke:"none"},null,8,v),t.createElementVNode("path",{d:`M ${e.x} ${e.y+34} L ${e.x-2} ${e.y+32} L ${e.x-4} ${e.y+34} L ${e.x-4} ${e.y+56} L ${e.x-2} ${e.y+58} L ${e.x} ${e.y+56} L ${e.x} ${e.y+34}`,fill:l.value[4]==1?e.color:e.backgroundColor,stroke:"none"},null,8,C),t.createElementVNode("path",{d:`M ${e.x-2} ${e.y+2} L ${e.x} ${e.y+4} L ${e.x} ${e.y+26} L ${e.x-2} ${e.y+28} L ${e.x-4} ${e.y+26} L ${e.x-4} ${e.y+4} L ${e.x-2} ${e.y+2}`,fill:l.value[5]==1?e.color:e.backgroundColor,stroke:"none"},null,8,N),t.createElementVNode("path",{d:`M ${e.x+2} ${e.y+28} L ${e.x} ${e.y+30} L ${e.x+2} ${e.y+32} L ${e.x+24} ${e.y+32} L ${e.x+26} ${e.y+30} L ${e.x+24} ${e.y+28} L ${e.x+2} ${e.y+28}`,fill:l.value[6]==1?e.color:e.backgroundColor,stroke:"none"},null,8,b)])),e.quanta=="."?(t.openBlock(),t.createElementBlock("g",B,[t.createElementVNode("circle",{cx:e.x-8,cy:e.y+60,r:3,fill:e.color},null,8,E)])):t.createCommentVNode("",!0)],64))}},M=["xmlns","viewBox"],V={__name:"vue-ui-digits",props:{dataset:{type:Number,default:0},config:{type:Object,default(){return{}}}},setup(e){const{vue_ui_digits:$}=L.useConfig(),u=e,l=t.computed(()=>g.useNestedProp({userConfig:u.config,defaultConfig:$})),a=t.computed(()=>{const c=(u.dataset||0).toString().split(""),i=[],n={x:10,y:10};let d=0;for(let y=0;y<c.length;y+=1){const o=c[y];i.push({x:n.x+d,y:n.y,quanta:o}),o=="."?d+=2:d+=44}return i}),x=t.computed(()=>Math.max(...a.value.map(c=>c.x))+36);return(c,i)=>(t.openBlock(),t.createElementBlock("svg",{class:"vue-ui-digits",xmlns:t.unref(L.XMLNS),viewBox:`0 0 ${x.value} 80`,style:t.normalizeStyle(`background:${l.value.backgroundColor};${l.value.height?`height:${l.value.height};`:""}${l.value.width?`width:${l.value.width}`:""}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,n=>(t.openBlock(),t.createBlock(q,{x:n.x,y:n.y,quanta:n.quanta,color:l.value.digits.color,backgroundColor:l.value.digits.skeletonColor},null,8,["x","y","quanta","color","backgroundColor"]))),256))],12,M))}};exports.default=V;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CLiv4lWF.cjs"),Ee=require("./useResponsive-DQmBAoBf.cjs"),We=require("./Title-g0Df2kQZ.cjs"),Pe=require("./usePrinter-sfF-cTSO.cjs"),je=require("./DataTable-D8eve3Rv.cjs"),He=require("./Tooltip-CzFLZsDA.cjs"),Je=require("./Legend-C-9Va34F.cjs"),Ke=require("./vue-ui-skeleton-3odYNTi5.cjs"),Qe=require("./vue-ui-accordion-DQ-y4bL8.cjs"),Fe=require("./useNestedProp-DWYmdrE5.cjs"),Ze=require("./PackageVersion-B6hD3Tku.cjs"),et=require("./PenAndPaper-mD8Ft9s0.cjs"),tt=require("./useUserOptionState-BgepsfED.cjs"),lt=require("./Shape-C-MjxBzW.cjs"),ot=require("./useChartAccessibility-Cm7nkzTG.cjs"),at=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),nt=["id"],rt=["xmlns","viewBox"],ut=["width","height"],st={key:1},it=["id"],ct=["stop-color"],dt=["offset","stop-color"],vt=["offset","stop-color"],ht=["stop-color"],ft={key:2},mt=["id","cx","cy"],yt=["stop-color","stop-opacity"],pt=["stop-color"],gt=["id"],kt=["id"],bt=["id"],wt=["flood-color"],Ct=["id"],Bt=["flood-color"],_t=["d","stroke","filter"],xt=["d","stroke","filter"],$t=["cx","cy","r","fill","filter"],St={key:6},Nt=["stroke","d"],Et={key:0},Pt=["d","fill","stroke","stroke-width","filter"],Ft=["d","fill","stroke","stroke-width","filter"],Vt={key:0},Lt=["stroke","d"],Tt={key:0},Ot=["d","stroke","stroke-width","filter"],zt={key:1},At=["d","fill","stroke","stroke-width","filter"],Mt=["d","fill","stroke","stroke-width","filter"],Xt={key:1},Dt=["cx","cy","r","fill","stroke","stroke-width"],Yt=["cx","cy","r","fill","stroke","stroke-width"],It=["cx","cy","r","stroke"],qt=["cx","cy","r","fill"],Rt={key:0},Gt=["d","fill","onMouseenter","onClick"],Ut={key:1},Wt=["cx","cy","r","fill"],jt=["x","y","fill","font-size"],Ht=["x","y","fill","font-size"],Jt=["x","y","fill","font-size"],Kt=["x","y","fill","font-size"],Qt=["filter"],Zt={key:0},el=["x","y"],tl={key:1},ll=["cx","cy","fill","stroke","filter","onClick"],ol=["cx","cy","fill","stroke","filter","onClick"],al=["text-anchor","x","y","fill","font-size","onClick"],nl=["text-anchor","x","y","fill","font-size","onClick"],rl=["text-anchor","x","y","fill","font-size","onClick"],ul=["text-anchor","x","y","fill","font-size","onClick"],sl={key:2},il=["x","y","width"],cl=["x","y","width"],dl={key:5,class:"vue-data-ui-watermark"},vl=["onClick"],hl={key:0,style:{"font-variant-numeric":"tabular-nums"}},fl={key:1},ml=["innerHTML"],yl={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(Q,{expose:Ve,emit:Le}){const{vue_ui_donut:Te}=n.useConfig(),Oe=e.useSlots(),b=Q,A=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),M=e.ref(null),Z=e.ref(null),ee=e.ref(null),Y=e.ref(null),te=e.ref(null),le=e.ref(null),oe=e.ref(0),ae=e.ref(0),ne=e.ref(0);e.onMounted(()=>{re()}),e.onBeforeUnmount(()=>{Y.value&&Y.value.disconnect()});function re(){if(n.objectIsEmpty(b.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,r)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{A.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const o=Ee.throttle(()=>{const{width:r,height:l}=Ee.useResponsive({chart:M.value,title:t.value.style.chart.title.text?Z.value:null,legend:t.value.style.chart.legend.show?ee.value:null,source:te.value,noTitle:le.value,padding:de.value});requestAnimationFrame(()=>{u.value.width=r,u.value.height=l})});Y.value=new ResizeObserver(o),Y.value.observe(M.value.parentNode)}}const d=e.ref(n.createUid()),ze=e.ref(null),I=e.ref(!1),U=e.ref(""),p=e.ref(null),ue=e.ref(0);function se(){const o=Fe.useNestedProp({userConfig:b.config,defaultConfig:Te});return o.theme?{...Fe.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>se(),set:o=>o}),y=e.ref(!0),$=e.ref([]);function Ae(o,r=1e3,l=50){return new Promise(a=>{const s=o.length;$.value=Array(s).fill(0);let v=0;o.forEach((h,m)=>{setTimeout(()=>{const N=performance.now();function _(D){const G=Math.min((D-N)/r,1),Ue=n.easeOutCubic(G);$.value[m]=h*Ue,$.value=[...$.value],G<1?requestAnimationFrame(_):($.value[m]=h,$.value=[...$.value],v+=1,v===s&&a())}requestAnimationFrame(_)},m*l)})})}e.onMounted(async()=>{const o=b.dataset.map(r=>r.values.reduce((l,a)=>l+a,0));t.value.startAnimation.show&&await Ae(o,t.value.startAnimation.durationMs,t.value.startAnimation.staggerMs),y.value=!1});const{userOptionsVisible:W,setUserOptionsVisibility:ie,keepUserOptionState:ce}=tt.useUserOptionState({config:t.value}),{svgRef:j}=ot.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>b.config,o=>{t.value=se(),W.value=!t.value.userOptions.showOnChartHover,re(),oe.value+=1,ae.value+=1,ne.value+=1,c.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const de=e.computed(()=>{const{top:o,right:r,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${r}px ${l}px ${a}px`,top:o,right:r,bottom:l,left:a}}),{isPrinting:ve,isImaging:he,generatePdf:fe,generateImage:me}=Pe.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),Me=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ye=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),u=e.ref({height:360,width:512}),T=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,r=Math.min(u.value.width,u.value.height)*o,l=r>f.value?f.value:r;return Math.max(l,3)}),pe=Le,S=e.computed(()=>b.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||ye.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:r,seriesIndex:r,ghost:!1,pattern:`pattern_${d.value}_${r}`}))),w=e.ref(S.value);e.watch(()=>S.value,o=>w.value=o);function Xe(){return S.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const x=e.ref([]);e.ref(null),e.ref(null);const V=e.ref(!1);function ge({from:o,to:r,duration:l,onUpdate:a,onDone:s,easing:v=n.easeOutCubic}){const h=performance.now();function m(N){const _=Math.min((N-h)/l,1),D=v(_),G=o+(r-o)*D;a(G,_),_<1?requestAnimationFrame(m):(a(r,1),s&&s())}requestAnimationFrame(m)}function ke(o){const r=S.value.find((s,v)=>v===o);let a=w.value.find((s,v)=>v===o).value;if(x.value.includes(o)){let v=function(){w.value=w.value.map((m,N)=>o===N?{...m,value:s}:m)},h=function(){V.value=!0,ge({from:a,to:s,duration:t.value.serieToggleAnimation.durationMs,onUpdate:(m,N)=>{w.value=w.value.map((_,D)=>o===D?{..._,value:m}:_)},onDone:()=>{v(),V.value=!1}})};x.value=x.value.filter(m=>m!==o);const s=r.value;t.value.serieToggleAnimation.show&&t.value.type==="classic"?h():v()}else if(x.value.length<S.value.length-1){let s=function(){x.value.push(o),w.value=w.value.map((h,m)=>o===m?{...h,value:0}:h)},v=function(){V.value=!0,ge({from:a,to:0,duration:t.value.serieToggleAnimation.durationMs,onUpdate:(h,m)=>{w.value=w.value.map((N,_)=>o===_?{...N,value:h}:N)},onDone:()=>{s(),V.value=!1}})};t.value.serieToggleAnimation.show&&t.value.type==="classic"?v():s()}pe("selectLegend",E.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const De=e.computed(()=>b.dataset.reduce((o,r)=>o+r.values.reduce((l,a)=>l+a,0),0)),E=e.computed(()=>{if(y.value){const o=$.value.map((l,a)=>({...S.value[a],value:l,color:S.value[a].color,ghost:!1})),r=De.value-$.value.reduce((l,a)=>l+a,0);return r>0&&o.push({name:"__ghost__",value:r,color:"transparent",ghost:!0}),o}else return w.value.forEach((o,r)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),w.value.map((o,r)=>({...o,seriesIndex:r})).filter((o,r)=>!x.value.includes(r))}),be=e.computed(()=>b.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||ye.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:r})).map((o,r)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:x.value.includes(r)?.5:1,segregate:()=>!V.value&&ke(r),isSegregated:x.value.includes(r)}))),Ye=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":""})),f=e.computed(()=>{const o=Math.min(u.value.width/3,u.value.height/3);return o<55?55:o}),g=e.computed(()=>n.makeDonut({series:E.value},u.value.width/2,u.value.height/2,f.value,f.value,1.99999,2,1,360,105.25,T.value)),C=e.computed(()=>g.value.filter(o=>!o.ghost)),i=e.computed(()=>{const o=Math.max(...E.value.map(l=>l.value)),r=E.value.map(l=>l.value/o);return n.createPolarAreas({series:r,center:{x:u.value.width/2,y:u.value.height/2},maxRadius:Math.min(u.value.width,u.value.height)/3,hasGhost:y.value})});function O(o){return o.x>u.value.width/2+6?"start":o.x<u.value.width/2-6?"end":"middle"}function Ie(o){return o.middlePoint.y>u.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:u.value.width/2,centerY:u.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:u.value.width/2,centerY:u.value.height/2}).y-100}function B(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function H(o,r){const l=o.value/qe(r);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function qe(o){return[...o].map(r=>r.value).reduce((r,l)=>r+l,0)}const k=e.computed(()=>E.value.map(o=>o.value).reduce((o,r)=>o+r,0)),we=e.computed(()=>k.value/E.value.length),Ce=e.computed(()=>o=>V.value?o.proportion*100:o.value/k.value*100),J=e.ref(null),X=e.ref(!1);function Be({datapoint:o,relativeIndex:r,seriesIndex:l,show:a=!1}){J.value={datapoint:o,seriesIndex:l,config:t.value,series:S.value},I.value=a,p.value=r;let s="";const v=t.value.style.chart.tooltip.customFormat;if(X.value=!1,n.isFunction(v))try{const h=v({seriesIndex:l,datapoint:o,series:S.value,config:t.value});typeof h=="string"&&(U.value=h,X.value=!0)}catch{console.warn("Custom format cannot be applied."),X.value=!1}if(!X.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}"/>${Oe.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>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.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:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const h=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${h})</span></div>`:s+=`<b>${h}</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>`),U.value=`<div>${s}</div>`}}function L(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.value})`:""}const P=e.computed(()=>{const o=E.value.map(l=>({name:l.name,color:l.color})),r=E.value.map(l=>l.value);return{head:o,body:r}});function _e(){e.nextTick(()=>{const o=P.value.head.map((a,s)=>[[a.name],[P.value.body[s]],[isNaN(P.value.body[s]/k.value)?"-":P.value.body[s]/k.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=n.createCsvContent(r);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const q=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>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:k.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=P.value.head.map((s,v)=>[{color:s.color,name:s.name},P.value.body[v],isNaN(P.value.body[v]/k.value)?"-":(P.value.body[v]/k.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:r,config:l}}),z=e.ref(!1);function Re(o){z.value=o,ue.value+=1}const xe=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Ge(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function F(o,r){pe("selectDatapoint",{datapoint:o,index:r})}function $e(){c.value.showTable=!c.value.showTable}function Se(){c.value.dataLabels.show=!c.value.dataLabels.show}function Ne(){c.value.showTooltip=!c.value.showTooltip}const R=e.ref(!1);function K(){R.value=!R.value}return Ve({getData:Xe,generatePdf:fe,generateCsv:_e,generateImage:me,toggleTable:$e,toggleLabels:Se,toggleTooltip:Ne,toggleAnnotator:K}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:M,class:e.normalizeClass(`vue-ui-donut ${z.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:r[6]||(r[6]=()=>e.unref(ie)(!0)),onMouseleave:r[7]||(r[7]=()=>e.unref(ie)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(j)?(e.openBlock(),e.createBlock(et._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:R.value,svgRef:e.unref(j),onClose:K},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Me.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:le,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:Z,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(We._sfc_main,{key:`title_${oe.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&&A.value&&(e.unref(ce)||e.unref(W))?(e.openBlock(),e.createBlock(Pe.UserOptions,{ref_key:"details",ref:ze,key:`user_option_${ue.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ve),isImaging:e.unref(he),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:z.value,chartElement:M.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:R.value,onToggleFullscreen:Re,onGeneratePdf:e.unref(fe),onGenerateCsv:_e,onGenerateImage:e.unref(me),onToggleTable:$e,onToggleLabels:Se,onToggleTooltip:Ne,onToggleAnnotator:K,style:e.normalizeStyle({visibility:e.unref(ce)?e.unref(W)?"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),A.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:j,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":z.value,"vue-data-ui-fulscreen--off":!z.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${de.value.css}`)},[e.createVNode(Ze._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,ut)):e.createCommentVNode("",!0),t.value.type==="classic"&&!isNaN(T.value/f.value)?(e.openBlock(),e.createElementBlock("defs",st,[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(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,ct),e.createElementVNode("stop",{offset:`${(1-T.value/f.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,dt),e.createElementVNode("stop",{offset:`${(1-T.value/f.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,vt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,ht)],8,it)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",ft,[(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:(isNaN(l.middlePoint.x/u.value.width*100)?0:l.middlePoint.x/u.value.width*100)+"%",cy:(isNaN(l.middlePoint.y/u.value.height*100)?0:l.middlePoint.y/u.value.height*100)+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(g.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,yt),e.createElementVNode("stop",{offset:"100%","stop-color":g.value[a].color},null,8,pt)],8,mt))),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,kt),r[8]||(r[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,gt),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,wt)],8,bt),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,Bt)],8,Ct)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(g.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:u.value.width/2,y:u.value.height/2},16,16,!1,!1,T.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:L(a)},null,8,_t)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(g.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x},${e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).y} ${i.value[a].middlePoint.x},${i.value[a].middlePoint.y}`,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:L(a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,xt)):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:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,$t)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.dataset,(l,a)=>(e.openBlock(),e.createElementBlock("defs",{key:`pattern-${l.patternIndex}`},[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:a,patternId:`pattern_${d.value}_${a}`}),void 0,!0)]))),128))])):e.createCommentVNode("",!0),k.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,Nt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Et,[(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(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:L(a)},null,8,Pt))),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(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:L(a)},null,8,Ft))),256))],64)):e.createCommentVNode("",!0),k.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[g.value.length>1?(e.openBlock(),e.createElementBlock("g",Vt,[(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",style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,Lt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",Tt,[(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})`,style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,Ot))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(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",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:L(a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,At))),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:L(a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,Mt))),256))])):(e.openBlock(),e.createElementBlock("g",Xt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:`url(#pattern_${d.value}_${g.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Dt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:g.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Yt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,It)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:`url(#gradient_${d.value})`},null,8,qt)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[g.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.filter(l=>!l.ghost),(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=>Be({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=s=>{I.value=!1,p.value=null}),onClick:s=>F(l,a)},null,40,Gt))),256))])):(e.openBlock(),e.createElementBlock("g",Ut,[e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:r[1]||(r[1]=l=>Be({datapoint:g.value[0],relativeIndex:0,seriesIndex:g.value[0].seriesIndex,show:!0})),onMouseleave:r[2]||(r[2]=l=>{I.value=!1,p.value=null}),onClick:r[3]||(r[3]=l=>F(g.value[0],o.i))},null,40,Wt)]))],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:u.value.width/2,y:u.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,jt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:u.value.width/2,y:u.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(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,k.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:k.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Ht)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:u.value.width/2,y:u.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,Jt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:u.value.width/2,y:u.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(V.value||y.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,we.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:we.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Kt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:L(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Zt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(xe.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:xe.value,isVisible:B(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:H(l,C.value)}),void 0,!0)])],8,el))])):(e.openBlock(),e.createElementBlock("g",tl,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.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=>F(l,a)},null,8,ll)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.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=>F(l,a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,ol)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.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=>F(l,a)},e.toDisplayString(H(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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,al)):e.createCommentVNode("",!0),B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.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=>F(l,a)},e.toDisplayString(l.name),13,nl)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":O(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.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({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`,fontWeight:t.value.style.chart.layout.labels.percentage.bold?"bold":"normal"}),onClick:s=>F(l,a)},e.toDisplayString(H(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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,rl)):e.createCommentVNode("",!0),B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":O(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.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({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`,fontWeight:t.value.style.chart.layout.labels.name.bold?"bold":"normal"}),onClick:s=>F(l,a)},e.toDisplayString(l.name),13,ul)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",sl,[B(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.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(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,isFirstLoad:y.value}},void 0,!0)])],8,il)):e.createCommentVNode("",!0),B(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(O(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width:O(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x),y:Ie(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`,overflow:"visible",pointerEvents:"none"})},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:O(i.value[a].middlePoint),flexAlign:O(i.value[a].middlePoint),isFirstLoad:y.value}},void 0,!0)])],12,cl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Qt))),256)),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,rt)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ve)||e.unref(he)})),void 0,!0)])):e.createCommentVNode("",!0),A.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ke.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:T.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:ee},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Je.Legend,{key:`legend_${ne.value}`,legendSet:be.value,config:Ye.value,onClickMarker:r[4]||(r[4]=({i:l})=>ke(l))},e.createSlots({item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${x.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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),x.value.includes(a)?(e.openBlock(),e.createElementBlock("span",fl," ( "+e.toDisplayString(Ge(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",hl," ("+e.toDisplayString(isNaN(l.value/k.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,Ce.value(l),e.unref(n.dataLabel)({v:Ce.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,vl)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(lt._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:be.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:te,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(He._sfc_main,{show:c.value.showTooltip&&I.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:M.value,content:U.value,isCustom:X.value,isFullscreen:z.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...J.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...J.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),A.value?(e.openBlock(),e.createBlock(Qe.default,{key:8,hideDetails:"",config:{open:c.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(je.DataTable,{key:`table_${ae.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[5]||(r[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,ml)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.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,nt))}},pl=at._export_sfc(yl,[["__scopeId","data-v-5f5d7ad3"]]);exports.default=pl;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D6F-xMcR.cjs"),Ee=require("./useResponsive-DQmBAoBf.cjs"),We=require("./Title-Cj4tUZSu.cjs"),Pe=require("./usePrinter-B9NkBzf5.cjs"),je=require("./DataTable-Bu_0tRZE.cjs"),He=require("./Tooltip-CLjMKc28.cjs"),Je=require("./Legend-BDIC5aus.cjs"),Ke=require("./vue-ui-skeleton-CK5DdXVo.cjs"),Qe=require("./vue-ui-accordion-ChE9WO8Q.cjs"),Fe=require("./useNestedProp-CAbtwUJj.cjs"),Ze=require("./PackageVersion-CKutD59c.cjs"),et=require("./PenAndPaper-Bnvy0XRn.cjs"),tt=require("./useUserOptionState-BgepsfED.cjs"),lt=require("./Shape-NYJ-EMUq.cjs"),ot=require("./useChartAccessibility-Cm7nkzTG.cjs"),at=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),nt=["id"],rt=["xmlns","viewBox"],ut=["width","height"],st={key:1},it=["id"],ct=["stop-color"],dt=["offset","stop-color"],vt=["offset","stop-color"],ht=["stop-color"],ft={key:2},mt=["id","cx","cy"],yt=["stop-color","stop-opacity"],pt=["stop-color"],gt=["id"],kt=["id"],bt=["id"],wt=["flood-color"],Ct=["id"],Bt=["flood-color"],_t=["d","stroke","filter"],xt=["d","stroke","filter"],$t=["cx","cy","r","fill","filter"],St={key:6},Nt=["stroke","d"],Et={key:0},Pt=["d","fill","stroke","stroke-width","filter"],Ft=["d","fill","stroke","stroke-width","filter"],Vt={key:0},Lt=["stroke","d"],Tt={key:0},Ot=["d","stroke","stroke-width","filter"],zt={key:1},At=["d","fill","stroke","stroke-width","filter"],Mt=["d","fill","stroke","stroke-width","filter"],Xt={key:1},Dt=["cx","cy","r","fill","stroke","stroke-width"],Yt=["cx","cy","r","fill","stroke","stroke-width"],It=["cx","cy","r","stroke"],qt=["cx","cy","r","fill"],Rt={key:0},Gt=["d","fill","onMouseenter","onClick"],Ut={key:1},Wt=["cx","cy","r","fill"],jt=["x","y","fill","font-size"],Ht=["x","y","fill","font-size"],Jt=["x","y","fill","font-size"],Kt=["x","y","fill","font-size"],Qt=["filter"],Zt={key:0},el=["x","y"],tl={key:1},ll=["cx","cy","fill","stroke","filter","onClick"],ol=["cx","cy","fill","stroke","filter","onClick"],al=["text-anchor","x","y","fill","font-size","onClick"],nl=["text-anchor","x","y","fill","font-size","onClick"],rl=["text-anchor","x","y","fill","font-size","onClick"],ul=["text-anchor","x","y","fill","font-size","onClick"],sl={key:2},il=["x","y","width"],cl=["x","y","width"],dl={key:5,class:"vue-data-ui-watermark"},vl=["onClick"],hl={key:0,style:{"font-variant-numeric":"tabular-nums"}},fl={key:1},ml=["innerHTML"],yl={__name:"vue-ui-donut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(Q,{expose:Ve,emit:Le}){const{vue_ui_donut:Te}=n.useConfig(),Oe=e.useSlots(),b=Q,A=e.computed({get(){return!!b.dataset&&b.dataset.length},set(o){return o}}),M=e.ref(null),Z=e.ref(null),ee=e.ref(null),Y=e.ref(null),te=e.ref(null),le=e.ref(null),oe=e.ref(0),ae=e.ref(0),ne=e.ref(0);e.onMounted(()=>{re()}),e.onBeforeUnmount(()=>{Y.value&&Y.value.disconnect()});function re(){if(n.objectIsEmpty(b.dataset)?n.error({componentName:"VueUiDonut",type:"dataset"}):b.dataset.forEach((o,r)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{A.value=!1,n.error({componentName:"VueUiDonut",type:"datasetSerieAttribute",property:l,index:r})})}),t.value.responsive){const o=Ee.throttle(()=>{const{width:r,height:l}=Ee.useResponsive({chart:M.value,title:t.value.style.chart.title.text?Z.value:null,legend:t.value.style.chart.legend.show?ee.value:null,source:te.value,noTitle:le.value,padding:de.value});requestAnimationFrame(()=>{u.value.width=r,u.value.height=l})});Y.value=new ResizeObserver(o),Y.value.observe(M.value.parentNode)}}const d=e.ref(n.createUid()),ze=e.ref(null),I=e.ref(!1),U=e.ref(""),p=e.ref(null),ue=e.ref(0);function se(){const o=Fe.useNestedProp({userConfig:b.config,defaultConfig:Te});return o.theme?{...Fe.useNestedProp({userConfig:n.themes.vue_ui_donut[o.theme]||b.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}const t=e.computed({get:()=>se(),set:o=>o}),y=e.ref(!0),$=e.ref([]);function Ae(o,r=1e3,l=50){return new Promise(a=>{const s=o.length;$.value=Array(s).fill(0);let v=0;o.forEach((h,m)=>{setTimeout(()=>{const N=performance.now();function _(D){const G=Math.min((D-N)/r,1),Ue=n.easeOutCubic(G);$.value[m]=h*Ue,$.value=[...$.value],G<1?requestAnimationFrame(_):($.value[m]=h,$.value=[...$.value],v+=1,v===s&&a())}requestAnimationFrame(_)},m*l)})})}e.onMounted(async()=>{const o=b.dataset.map(r=>r.values.reduce((l,a)=>l+a,0));t.value.startAnimation.show&&await Ae(o,t.value.startAnimation.durationMs,t.value.startAnimation.staggerMs),y.value=!1});const{userOptionsVisible:W,setUserOptionsVisibility:ie,keepUserOptionState:ce}=tt.useUserOptionState({config:t.value}),{svgRef:j}=ot.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>b.config,o=>{t.value=se(),W.value=!t.value.userOptions.showOnChartHover,re(),oe.value+=1,ae.value+=1,ne.value+=1,c.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,c.value.showTable=t.value.table.show,c.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const de=e.computed(()=>{const{top:o,right:r,bottom:l,left:a}=t.value.style.chart.padding;return{css:`padding:${o}px ${r}px ${l}px ${a}px`,top:o,right:r,bottom:l,left:a}}),{isPrinting:ve,isImaging:he,generatePdf:fe,generateImage:me}=Pe.usePrinter({elementId:`donut__${d.value}`,fileName:t.value.style.chart.title.text||"vue-ui-donut",options:t.value.userOptions.print}),Me=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ye=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),c=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),u=e.ref({height:360,width:512}),T=e.computed(()=>{const o=t.value.style.chart.layout.donut.strokeWidth/512,r=Math.min(u.value.width,u.value.height)*o,l=r>f.value?f.value:r;return Math.max(l,3)}),pe=Le,S=e.computed(()=>b.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||ye.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:o.values.reduce((l,a)=>l+a,0),absoluteValues:o.values,comment:o.comment||"",patternIndex:r,seriesIndex:r,ghost:!1,pattern:`pattern_${d.value}_${r}`}))),w=e.ref(S.value);e.watch(()=>S.value,o=>w.value=o);function Xe(){return S.value.map(o=>({name:o.name,color:o.color,value:o.value}))}const x=e.ref([]);e.ref(null),e.ref(null);const V=e.ref(!1);function ge({from:o,to:r,duration:l,onUpdate:a,onDone:s,easing:v=n.easeOutCubic}){const h=performance.now();function m(N){const _=Math.min((N-h)/l,1),D=v(_),G=o+(r-o)*D;a(G,_),_<1?requestAnimationFrame(m):(a(r,1),s&&s())}requestAnimationFrame(m)}function ke(o){const r=S.value.find((s,v)=>v===o);let a=w.value.find((s,v)=>v===o).value;if(x.value.includes(o)){let v=function(){w.value=w.value.map((m,N)=>o===N?{...m,value:s}:m)},h=function(){V.value=!0,ge({from:a,to:s,duration:t.value.serieToggleAnimation.durationMs,onUpdate:(m,N)=>{w.value=w.value.map((_,D)=>o===D?{..._,value:m}:_)},onDone:()=>{v(),V.value=!1}})};x.value=x.value.filter(m=>m!==o);const s=r.value;t.value.serieToggleAnimation.show&&t.value.type==="classic"?h():v()}else if(x.value.length<S.value.length-1){let s=function(){x.value.push(o),w.value=w.value.map((h,m)=>o===m?{...h,value:0}:h)},v=function(){V.value=!0,ge({from:a,to:0,duration:t.value.serieToggleAnimation.durationMs,onUpdate:(h,m)=>{w.value=w.value.map((N,_)=>o===_?{...N,value:h}:N)},onDone:()=>{s(),V.value=!1}})};t.value.serieToggleAnimation.show&&t.value.type==="classic"?v():s()}pe("selectLegend",E.value.map(s=>({name:s.name,color:s.color,value:s.value})))}const De=e.computed(()=>b.dataset.reduce((o,r)=>o+r.values.reduce((l,a)=>l+a,0),0)),E=e.computed(()=>{if(y.value){const o=$.value.map((l,a)=>({...S.value[a],value:l,color:S.value[a].color,ghost:!1})),r=De.value-$.value.reduce((l,a)=>l+a,0);return r>0&&o.push({name:"__ghost__",value:r,color:"transparent",ghost:!0}),o}else return w.value.forEach((o,r)=>{if([null,void 0].includes(o.values))return{...o,values:[]}}),w.value.map((o,r)=>({...o,seriesIndex:r})).filter((o,r)=>!x.value.includes(r))}),be=e.computed(()=>b.dataset.map((o,r)=>({name:o.name,color:n.convertColorToHex(o.color)||ye.value[r]||n.palette[r]||n.palette[r%n.palette.length],value:(o.values||[]).reduce((l,a)=>l+a,0),shape:"circle",patternIndex:r})).map((o,r)=>({...o,proportion:o.value/b.dataset.map(l=>(l.values||[]).reduce((a,s)=>a+s,0)).reduce((l,a)=>l+a,0),opacity:x.value.includes(r)?.5:1,segregate:()=>!V.value&&ke(r),isSegregated:x.value.includes(r)}))),Ye=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":""})),f=e.computed(()=>{const o=Math.min(u.value.width/3,u.value.height/3);return o<55?55:o}),g=e.computed(()=>n.makeDonut({series:E.value},u.value.width/2,u.value.height/2,f.value,f.value,1.99999,2,1,360,105.25,T.value)),C=e.computed(()=>g.value.filter(o=>!o.ghost)),i=e.computed(()=>{const o=Math.max(...E.value.map(l=>l.value)),r=E.value.map(l=>l.value/o);return n.createPolarAreas({series:r,center:{x:u.value.width/2,y:u.value.height/2},maxRadius:Math.min(u.value.width,u.value.height)/3,hasGhost:y.value})});function O(o){return o.x>u.value.width/2+6?"start":o.x<u.value.width/2-6?"end":"middle"}function Ie(o){return o.middlePoint.y>u.value.height/2?n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:100,centerX:u.value.width/2,centerY:u.value.height/2}).y:n.offsetFromCenterPoint({initX:o.middlePoint.x,initY:o.middlePoint.y,offset:0,centerX:u.value.width/2,centerY:u.value.height/2}).y-100}function B(o){return o.proportion*100>t.value.style.chart.layout.labels.dataLabels.hideUnderValue}function H(o,r){const l=o.value/qe(r);return isNaN(l)?0:n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,l*100,n.dataLabel({v:l*100,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding}),{datapoint:o})}function qe(o){return[...o].map(r=>r.value).reduce((r,l)=>r+l,0)}const k=e.computed(()=>E.value.map(o=>o.value).reduce((o,r)=>o+r,0)),we=e.computed(()=>k.value/E.value.length),Ce=e.computed(()=>o=>V.value?o.proportion*100:o.value/k.value*100),J=e.ref(null),X=e.ref(!1);function Be({datapoint:o,relativeIndex:r,seriesIndex:l,show:a=!1}){J.value={datapoint:o,seriesIndex:l,config:t.value,series:S.value},I.value=a,p.value=r;let s="";const v=t.value.style.chart.tooltip.customFormat;if(X.value=!1,n.isFunction(v))try{const h=v({seriesIndex:l,datapoint:o,series:S.value,config:t.value});typeof h=="string"&&(U.value=h,X.value=!0)}catch{console.warn("Custom format cannot be applied."),X.value=!1}if(!X.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}"/>${Oe.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>${n.applyDataLabel(t.value.style.chart.layout.labels.value.formatter,o.value,n.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:r,seriesIndex:l})}</b>`),t.value.style.chart.tooltip.showPercentage){const h=n.applyDataLabel(t.value.style.chart.layout.labels.percentage.formatter,o.proportion*100,n.dataLabel({v:o.proportion*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage}),{datapoint:o,relativeIndex:r,seriesIndex:l});t.value.style.chart.tooltip.showValue?s+=`<span>(${h})</span></div>`:s+=`<b>${h}</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>`),U.value=`<div>${s}</div>`}}function L(o){return t.value.useBlurOnHover&&![null,void 0].includes(p.value)&&p.value!==o?`url(#blur_${d.value})`:""}const P=e.computed(()=>{const o=E.value.map(l=>({name:l.name,color:l.color})),r=E.value.map(l=>l.value);return{head:o,body:r}});function _e(){e.nextTick(()=>{const o=P.value.head.map((a,s)=>[[a.name],[P.value.body[s]],[isNaN(P.value.body[s]/k.value)?"-":P.value.body[s]/k.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=n.createCsvContent(r);n.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-donut"})})}const q=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>',n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:k.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],r=P.value.head.map((s,v)=>[{color:s.color,name:s.name},P.value.body[v],isNaN(P.value.body[v]/k.value)?"-":(P.value.body[v]/k.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:r,config:l}}),z=e.ref(!1);function Re(o){z.value=o,ue.value+=1}const xe=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent));function Ge(o){return o.toFixed(t.value.style.chart.legend.roundingPercentage).split("").map(r=>"-").join("")}function F(o,r){pe("selectDatapoint",{datapoint:o,index:r})}function $e(){c.value.showTable=!c.value.showTable}function Se(){c.value.dataLabels.show=!c.value.dataLabels.show}function Ne(){c.value.showTooltip=!c.value.showTooltip}const R=e.ref(!1);function K(){R.value=!R.value}return Ve({getData:Xe,generatePdf:fe,generateCsv:_e,generateImage:me,toggleTable:$e,toggleLabels:Se,toggleTooltip:Ne,toggleAnnotator:K}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"donutChart",ref:M,class:e.normalizeClass(`vue-ui-donut ${z.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:r[6]||(r[6]=()=>e.unref(ie)(!0)),onMouseleave:r[7]||(r[7]=()=>e.unref(ie)(!1))},[t.value.userOptions.buttons.annotator&&e.unref(j)?(e.openBlock(),e.createBlock(et._sfc_main,{key:0,color:t.value.style.chart.color,backgroundColor:t.value.style.chart.backgroundColor,active:R.value,svgRef:e.unref(j),onClose:K},null,8,["color","backgroundColor","active","svgRef"])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"userConfig",{},void 0,!0),Me.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:le,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:Z,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(We._sfc_main,{key:`title_${oe.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&&A.value&&(e.unref(ce)||e.unref(W))?(e.openBlock(),e.createBlock(Pe.UserOptions,{ref_key:"details",ref:ze,key:`user_option_${ue.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ve),isImaging:e.unref(he),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:z.value,chartElement:M.value,position:t.value.userOptions.position,isTooltip:c.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:R.value,onToggleFullscreen:Re,onGeneratePdf:e.unref(fe),onGenerateCsv:_e,onGenerateImage:e.unref(me),onToggleTable:$e,onToggleLabels:Se,onToggleTooltip:Ne,onToggleAnnotator:K,style:e.normalizeStyle({visibility:e.unref(ce)?e.unref(W)?"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),A.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:j,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":z.value,"vue-data-ui-fulscreen--off":!z.value}),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};${de.value.css}`)},[e.createVNode(Ze._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:u.value.width<=0?10:u.value.width,height:u.value.height<=0?10:u.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,ut)):e.createCommentVNode("",!0),t.value.type==="classic"&&!isNaN(T.value/f.value)?(e.openBlock(),e.createElementBlock("defs",st,[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(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,ct),e.createElementVNode("stop",{offset:`${(1-T.value/f.value)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",0),"stop-opacity":"0"},null,8,dt),e.createElementVNode("stop",{offset:`${(1-T.value/f.value/2)*100}%`,"stop-color":e.unref(n.setOpacity)("#FFFFFF",t.value.style.chart.gradientIntensity)},null,8,vt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(t.value.style.chart.backgroundColor,0),"stop-opacity":"0"},null,8,ht)],8,it)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock("defs",ft,[(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:(isNaN(l.middlePoint.x/u.value.width*100)?0:l.middlePoint.x/u.value.width*100)+"%",cy:(isNaN(l.middlePoint.y/u.value.height*100)?0:l.middlePoint.y/u.value.height*100)+"%",r:"62%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.shiftHue)(g.value[a].color,.05),"stop-opacity":t.value.style.chart.gradientIntensity/100},null,8,yt),e.createElementVNode("stop",{offset:"100%","stop-color":g.value[a].color},null,8,pt)],8,mt))),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,kt),r[8]||(r[8]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,gt),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,wt)],8,bt),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,Bt)],8,Ct)]),t.value.type==="classic"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(g.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(n.calcNutArrowPath)(l,{x:u.value.width/2,y:u.value.height/2},16,16,!1,!1,T.value,12,t.value.style.chart.layout.curvedMarkers),stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:L(a)},null,8,_t)):e.createCommentVNode("",!0)]))),256)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(g.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",null,[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x},${e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).y} ${i.value[a].middlePoint.x},${i.value[a].middlePoint.y}`,stroke:l.color,"stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:L(a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,xt)):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:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:t.value.style.chart.backgroundColor,filter:`url(#shadow_${d.value})`},null,8,$t)):e.createCommentVNode("",!0),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.dataset,(l,a)=>(e.openBlock(),e.createElementBlock("defs",{key:`pattern-${l.patternIndex}`},[e.renderSlot(o.$slots,"pattern",e.mergeProps({ref_for:!0},{seriesIndex:a,patternId:`pattern_${d.value}_${a}`}),void 0,!0)]))),128))])):e.createCommentVNode("",!0),k.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,Nt))),256)),o.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Et,[(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(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:L(a)},null,8,Pt))),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(n.setOpacity)(l.color,80),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:L(a)},null,8,Ft))),256))],64)):e.createCommentVNode("",!0),k.value&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[g.value.length>1?(e.openBlock(),e.createElementBlock("g",Vt,[(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",style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,Lt))),256)),t.value.style.chart.layout.donut.useShadow?(e.openBlock(),e.createElementBlock("g",Tt,[(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})`,style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,Ot))),256))])):e.createCommentVNode("",!0),o.$slots.pattern?(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",{class:"vue-ui-donut-arc-path",d:i.value[a].path,fill:`url(#${l.pattern})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth,filter:L(a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,At))),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:L(a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,Mt))),256))])):(e.openBlock(),e.createElementBlock("g",Xt,[o.$slots.pattern?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:`url(#pattern_${d.value}_${g.value[0].patternIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Dt)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:t.value.style.chart.useGradient?`url(#polar_gradient_0_${d.value})`:g.value[0].color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.donut.borderWidth},null,8,Yt)]))],64)):(e.openBlock(),e.createElementBlock("circle",{key:9,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:"transparent",stroke:t.value.style.chart.backgroundColor},null,8,It)),t.value.style.chart.useGradient&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("circle",{key:10,cx:u.value.width/2,cy:u.value.height/2,r:f.value<=0?10:f.value,fill:`url(#gradient_${d.value})`},null,8,qt)):e.createCommentVNode("",!0),k.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[g.value.length>1||t.value.type==="classic"?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value.filter(l=>!l.ghost),(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=>Be({datapoint:l,relativeIndex:a,seriesIndex:l.seriesIndex,show:!0}),onMouseleave:r[0]||(r[0]=s=>{I.value=!1,p.value=null}),onClick:s=>F(l,a)},null,40,Gt))),256))])):(e.openBlock(),e.createElementBlock("g",Ut,[e.createElementVNode("circle",{cx:u.value.width/2,cy:u.value.height/2,r:f.value,fill:p.value===o.i?"rgba(0,0,0,0.1)":"transparent",onMouseenter:r[1]||(r[1]=l=>Be({datapoint:g.value[0],relativeIndex:0,seriesIndex:g.value[0].seriesIndex,show:!0})),onMouseleave:r[2]||(r[2]=l=>{I.value=!1,p.value=null}),onClick:r[3]||(r[3]=l=>F(g.value[0],o.i))},null,40,Wt)]))],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:u.value.width/2,y:u.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,jt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.total.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",x:u.value.width/2,y:u.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(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.total.value.formatter,k.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.total.value.prefix,v:k.value,s:t.value.style.chart.layout.labels.hollow.total.value.suffix}))),13,Ht)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":"middle",x:u.value.width/2,y:u.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,Jt)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.hollow.average.show?(e.openBlock(),e.createElementBlock("text",{key:3,"text-anchor":"middle",x:u.value.width/2,y:u.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(V.value||y.value?"--":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.hollow.average.value.formatter,we.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.hollow.average.value.prefix,v:we.value,s:t.value.style.chart.layout.labels.hollow.average.value.suffix,r:t.value.style.chart.layout.labels.hollow.average.value.rounding}))),13,Kt)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value.filter(l=>!l.ghost),(l,a)=>(e.openBlock(),e.createElementBlock("g",{filter:L(a),class:e.normalizeClass({animated:t.value.useCssAnimation})},[t.value.style.chart.layout.labels.dataLabels.useLabelSlots?(e.openBlock(),e.createElementBlock("g",Zt,[(e.openBlock(),e.createElementBlock("foreignObject",{x:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-120:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-60:e.unref(n.calcMarkerOffsetX)(l).x,y:e.unref(n.calcMarkerOffsetY)(l)-(xe.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:xe.value,isVisible:B(l)&&c.value.dataLabels.show,textAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,percentage:H(l,C.value)}),void 0,!0)])],8,el))])):(e.openBlock(),e.createElementBlock("g",tl,[t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.calcMarkerOffsetX)(l).x,cy:e.unref(n.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=>F(l,a)},null,8,ll)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.value.height/2}).x,cy:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:24,centerX:u.value.width/2,centerY:u.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=>F(l,a),style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`})},null,12,ol)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="classic"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":e.unref(n.calcMarkerOffsetX)(l,!0,12).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.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=>F(l,a)},e.toDisplayString(H(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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,al)):e.createCommentVNode("",!0),B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(n.calcMarkerOffsetX)(l).anchor,x:e.unref(n.calcMarkerOffsetX)(l,!0,12).x,y:e.unref(n.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=>F(l,a)},e.toDisplayString(l.name),13,nl)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="polar"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":O(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.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({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`,fontWeight:t.value.style.chart.layout.labels.percentage.bold?"bold":"normal"}),onClick:s=>F(l,a)},e.toDisplayString(H(l,C.value))+" "+e.toDisplayString(t.value.style.chart.layout.labels.value.show?`(${e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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,rl)):e.createCommentVNode("",!0),B(l)&&c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":O(i.value[a].middlePoint),x:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x,y:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.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({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`,fontWeight:t.value.style.chart.layout.labels.name.bold?"bold":"normal"}),onClick:s=>F(l,a)},e.toDisplayString(l.name),13,ul)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)])),c.value.dataLabels.show&&t.value.style.chart.comments.show&&l.comment?(e.openBlock(),e.createElementBlock("g",sl,[B(l)&&t.value.type==="classic"?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:t.value.style.chart.comments.offsetX+(e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="end"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width:e.unref(n.calcMarkerOffsetX)(l,!0).anchor==="middle"?e.unref(n.calcMarkerOffsetX)(l).x-t.value.style.chart.comments.width/2:e.unref(n.calcMarkerOffsetX)(l).x),y:e.unref(n.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(n.calcMarkerOffsetX)(l,!0,16,!0).anchor,flexAlign:e.unref(n.calcMarkerOffsetX)(l,!0,16).anchor,isFirstLoad:y.value}},void 0,!0)])],8,il)):e.createCommentVNode("",!0),B(l)&&t.value.type==="polar"?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:t.value.style.chart.comments.offsetX+(O(i.value[a].middlePoint)==="end"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width:O(i.value[a].middlePoint)==="middle"?e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x-t.value.style.chart.comments.width/2:e.unref(n.offsetFromCenterPoint)({initX:i.value[a].middlePoint.x,initY:i.value[a].middlePoint.y,offset:42,centerX:u.value.width/2,centerY:u.value.height/2}).x),y:Ie(i.value[a])+t.value.style.chart.comments.offsetY,width:t.value.style.chart.comments.width,height:"200",style:e.normalizeStyle({transition:y.value||!t.value.serieToggleAnimation.show?"none":`all ${t.value.serieToggleAnimation.durationMs}ms ease-in-out`,overflow:"visible",pointerEvents:"none"})},[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"plot-comment",{plot:{...l,textAlign:O(i.value[a].middlePoint),flexAlign:O(i.value[a].middlePoint),isFirstLoad:y.value}},void 0,!0)])],12,cl)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],10,Qt))),256)),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,rt)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",dl,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ve)||e.unref(he)})),void 0,!0)])):e.createCommentVNode("",!0),A.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ke.default,{key:6,config:{type:"donut",style:{backgroundColor:t.value.style.chart.backgroundColor,donut:{color:"#CCCCCC",strokeWidth:T.value*.8}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:ee},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Je.Legend,{key:`legend_${ne.value}`,legendSet:be.value,config:Ye.value,onClickMarker:r[4]||(r[4]=({i:l})=>ke(l))},e.createSlots({item:e.withCtx(({legend:l,index:a})=>[e.createElementVNode("div",{style:e.normalizeStyle(`opacity:${x.value.includes(a)?.5:1}`),onClick:s=>l.segregate()},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l.value,e.unref(n.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),x.value.includes(a)?(e.openBlock(),e.createElementBlock("span",fl," ( "+e.toDisplayString(Ge(l.proportion*100))+" % ) ",1)):(e.openBlock(),e.createElementBlock("span",hl," ("+e.toDisplayString(isNaN(l.value/k.value)?"-":e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,Ce.value(l),e.unref(n.dataLabel)({v:Ce.value(l),s:"%",r:t.value.style.chart.legend.roundingPercentage})))+") ",1))],12,vl)]),_:2},[o.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:l,index:a})=>[e.createVNode(lt._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:be.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:te,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(He._sfc_main,{show:c.value.showTooltip&&I.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:M.value,content:U.value,isCustom:X.value,isFullscreen:z.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...J.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...J.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),A.value?(e.openBlock(),e.createBlock(Qe.default,{key:8,hideDetails:"",config:{open:c.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(je.DataTable,{key:`table_${ae.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[5]||(r[5]=l=>c.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,ml)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name?l.name:isNaN(Number(l))?l.includes("%")?l:e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.percentage.formatter,l,e.unref(n.dataLabel)({v:l,s:"%",r:t.value.style.chart.layout.labels.percentage.rounding})):e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.value.formatter,l,e.unref(n.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,nt))}},pl=at._export_sfc(yl,[["__scopeId","data-v-5f5d7ad3"]]);exports.default=pl;