vue-data-ui 2.7.2 → 2.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. package/dist/{Arrow-Cuf9zUpa.cjs → Arrow-CwCPcRDq.cjs} +1 -1
  2. package/dist/{Arrow-SOQeOwmT.js → Arrow-DZ9pNVTr.js} +1 -1
  3. package/dist/{BaseIcon-C0unoacb.cjs → BaseIcon-BQ6ScTsr.cjs} +1 -1
  4. package/dist/{BaseIcon-DqYzMisq.js → BaseIcon-CdxldTMn.js} +4 -3
  5. package/dist/{ColorPicker-DLNc3kpl.cjs → ColorPicker-D6mp4NrH.cjs} +1 -1
  6. package/dist/{ColorPicker-DyOTLjAA.js → ColorPicker-DF9jbKW-.js} +3 -3
  7. package/dist/{DataTable-ByOfBGEi.cjs → DataTable-4qcYZrGF.cjs} +1 -1
  8. package/dist/{DataTable-C_28ZqiP.js → DataTable-BFNGlApm.js} +2 -2
  9. package/dist/{Legend-CmKaL7xe.js → Legend-B4eIw732.js} +2 -2
  10. package/dist/{Legend-mrAy7yUC.cjs → Legend-D8qnv865.cjs} +1 -1
  11. package/dist/{PackageVersion-39l3KkzC.js → PackageVersion-BZ8-AoE_.js} +1 -1
  12. package/dist/{PackageVersion-By81XV8X.cjs → PackageVersion-sCi6-fwm.cjs} +1 -1
  13. package/dist/PenAndPaper--_AE7XzJ.js +374 -0
  14. package/dist/PenAndPaper-DXiYR_ED.cjs +1 -0
  15. package/dist/{Shape-iIO-95sh.js → Shape-BQd108EW.js} +1 -1
  16. package/dist/{Shape-x7U3IhoM.cjs → Shape-BjIO2Dd_.cjs} +1 -1
  17. package/dist/{Slicer-Ct66sqV1.cjs → Slicer-B10GL6W6.cjs} +1 -1
  18. package/dist/{Slicer-C49MotZz.js → Slicer-BtX8p8CI.js} +2 -2
  19. package/dist/{Title-BgVFZwZZ.cjs → Title-DWFudmma.cjs} +1 -1
  20. package/dist/{Title-Co3F59jq.js → Title-ND4kMErl.js} +1 -1
  21. package/dist/{Tooltip-Cr89wMKa.js → Tooltip-BWe5TPIJ.js} +1 -1
  22. package/dist/{Tooltip-B8E9uCVm.cjs → Tooltip-DPqJ5wwr.cjs} +1 -1
  23. package/dist/{dom-to-png-D9eujpXB.cjs → dom-to-png-DBOO7SYL.cjs} +1 -1
  24. package/dist/{dom-to-png-DtBlqZMR.js → dom-to-png-DOe_fDQ9.js} +1 -1
  25. package/dist/{img-DgRUFehB.cjs → img-BTldOAS7.cjs} +1 -1
  26. package/dist/{img-DQDP5JIH.js → img-K80BXoXO.js} +1 -1
  27. package/dist/{index-gC66Se26.js → index-B_dU_4T8.js} +1 -1
  28. package/dist/{index-BeJeDy5m.cjs → index-HGCbG8YK.cjs} +1 -1
  29. package/dist/{pdf-lJiGVhtL.js → pdf-BKSh5KBc.js} +1 -1
  30. package/dist/{pdf-Bu1ahAX2.cjs → pdf-IEdK_h03.cjs} +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +2 -1
  33. package/dist/types/vue-data-ui.d.ts +2 -1
  34. package/dist/{useNestedProp-BusTOV-6.js → useNestedProp-7s4Pw7x0.js} +1 -1
  35. package/dist/{useNestedProp-CF-iHhIC.cjs → useNestedProp-O_JTsxQj.cjs} +1 -1
  36. package/dist/{usePrinter-Bz_kd3vb.cjs → usePrinter-B2PvJuo8.cjs} +1 -1
  37. package/dist/{usePrinter-KMFl0n0s.js → usePrinter-CLObTJ4a.js} +3 -3
  38. package/dist/{vue-data-ui-BApY_erH.js → vue-data-ui-Dvy8nai9.js} +60 -60
  39. package/dist/{vue-data-ui-Bak-lr4I.cjs → vue-data-ui-NmIWCiVH.cjs} +1 -1
  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-CUG7pspB.cjs +19 -0
  43. package/dist/{vue-ui-3d-bar-BWjU0K3_.js → vue-ui-3d-bar-Cf-VSMqf.js} +30 -30
  44. package/dist/{vue-ui-accordion-j2beIma_.js → vue-ui-accordion-C5dj9Voo.js} +3 -3
  45. package/dist/{vue-ui-accordion-CZBJSHT_.cjs → vue-ui-accordion-CSuxLH7L.cjs} +1 -1
  46. package/dist/{vue-ui-age-pyramid-Cmw4WVB4.js → vue-ui-age-pyramid-BYHyKvk4.js} +22 -22
  47. package/dist/vue-ui-age-pyramid-qT6V3Y8O.cjs +1 -0
  48. package/dist/{vue-ui-annotator-BVv5XkoE.cjs → vue-ui-annotator-KzRsqSTn.cjs} +1 -1
  49. package/dist/{vue-ui-annotator-CKmqZjUD.js → vue-ui-annotator-clyvpxxd.js} +2 -2
  50. package/dist/{vue-ui-bullet-U_yJjO0m.js → vue-ui-bullet-CJL4NBSU.js} +36 -36
  51. package/dist/vue-ui-bullet-DMuibl8n.cjs +34 -0
  52. package/dist/{vue-ui-candlestick-DhdlFIQE.js → vue-ui-candlestick-1jHdWerO.js} +11 -11
  53. package/dist/vue-ui-candlestick-CMsFiP9C.cjs +2 -0
  54. package/dist/{vue-ui-carousel-table-Ej7qzKkp.js → vue-ui-carousel-table-BCVjpGff.js} +4 -4
  55. package/dist/{vue-ui-carousel-table-BhC5cEe3.cjs → vue-ui-carousel-table-CtGRQBIN.cjs} +1 -1
  56. package/dist/{vue-ui-chestnut-BzNHXzDj.cjs → vue-ui-chestnut-CEQFlk-j.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-L0bS5jtX.js → vue-ui-chestnut-YX5q5qpY.js} +32 -32
  58. package/dist/{vue-ui-circle-pack-DwCzeO3L.js → vue-ui-circle-pack-DFhj3arJ.js} +44 -44
  59. package/dist/vue-ui-circle-pack-cXdePcYh.cjs +1 -0
  60. package/dist/{vue-ui-cursor-0mZP5nBc.cjs → vue-ui-cursor-DGtZLxpF.cjs} +1 -1
  61. package/dist/{vue-ui-cursor-DwHdXwLS.js → vue-ui-cursor-DwDTg8Za.js} +2 -2
  62. package/dist/{vue-ui-dashboard-DILmOchy.js → vue-ui-dashboard-DQ4-1OKY.js} +3 -3
  63. package/dist/{vue-ui-dashboard-CegApY8_.cjs → vue-ui-dashboard-etx_lWpJ.cjs} +1 -1
  64. package/dist/{vue-ui-digits-Dbwzk-sl.js → vue-ui-digits-Crcwygqg.js} +2 -2
  65. package/dist/{vue-ui-digits-me8Nky0A.cjs → vue-ui-digits-lRbvyU_i.cjs} +1 -1
  66. package/dist/{vue-ui-donut-DwE-iZSV.js → vue-ui-donut-C2h_qoIM.js} +12 -12
  67. package/dist/vue-ui-donut-DQeJn_KK.cjs +1 -0
  68. package/dist/vue-ui-donut-evolution-Dbg5HueS.cjs +1 -0
  69. package/dist/{vue-ui-donut-evolution-DhFABvEv.js → vue-ui-donut-evolution-DbzqkGBx.js} +69 -69
  70. package/dist/{vue-ui-dumbbell-Cqq4iV6-.js → vue-ui-dumbbell-BVuQjSso.js} +52 -52
  71. package/dist/{vue-ui-dumbbell-CL15d-aQ.cjs → vue-ui-dumbbell-BaYSfxY1.cjs} +1 -1
  72. package/dist/{vue-ui-flow-CU-orj9I.js → vue-ui-flow-2FOH_Mxn.js} +75 -75
  73. package/dist/vue-ui-flow-B8NKKaa2.cjs +1 -0
  74. package/dist/{vue-ui-funnel-DQmQmdNV.js → vue-ui-funnel-CYt4xsc4.js} +28 -28
  75. package/dist/vue-ui-funnel-Cgm1VcJC.cjs +1 -0
  76. package/dist/{vue-ui-galaxy-nqyCbQ9j.js → vue-ui-galaxy-CmmTED3N.js} +39 -39
  77. package/dist/vue-ui-galaxy-D8oPaBdc.cjs +1 -0
  78. package/dist/vue-ui-gauge-Ushp2qER.cjs +1 -0
  79. package/dist/{vue-ui-gauge-BV3CJfqe.js → vue-ui-gauge-vlhW2o0y.js} +26 -26
  80. package/dist/{vue-ui-gizmo-CNRAH2zT.cjs → vue-ui-gizmo-B16t4cjE.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-CJwSAsxs.js → vue-ui-gizmo-DtWADzHM.js} +3 -3
  82. package/dist/{vue-ui-heatmap-B1s7KejC.js → vue-ui-heatmap-BcNWrSYu.js} +10 -10
  83. package/dist/vue-ui-heatmap-PVrUXZ6f.cjs +1 -0
  84. package/dist/vue-ui-history-plot-D9hGmpzL.cjs +1 -0
  85. package/dist/{vue-ui-history-plot-z_KFt5z_.js → vue-ui-history-plot-aqwCckl3.js} +35 -35
  86. package/dist/{vue-ui-kpi-DabR5K70.js → vue-ui-kpi-fIEea6oo.js} +3 -3
  87. package/dist/{vue-ui-kpi-FaGp6_XP.cjs → vue-ui-kpi-zRnAot1s.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-_plxZxma.cjs → vue-ui-mini-loader-0TKahM6o.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-w-BmywLJ.js → vue-ui-mini-loader-CnequKa7.js} +2 -2
  90. package/dist/{vue-ui-molecule-3ClCLk7L.cjs → vue-ui-molecule-C7qRnQk-.cjs} +1 -1
  91. package/dist/{vue-ui-molecule-aiWG--to.js → vue-ui-molecule-bHqvHzsr.js} +45 -45
  92. package/dist/vue-ui-mood-radar-BGHGOC3W.cjs +1 -0
  93. package/dist/{vue-ui-mood-radar-DwxCn06q.js → vue-ui-mood-radar-BLLnwnLw.js} +40 -40
  94. package/dist/{vue-ui-nested-donuts-ONgAaLY-.js → vue-ui-nested-donuts-C5mqI9Vf.js} +65 -65
  95. package/dist/vue-ui-nested-donuts-r9LWv_9T.cjs +17 -0
  96. package/dist/vue-ui-onion-CKJJIQO8.cjs +5 -0
  97. package/dist/{vue-ui-onion-DjoQuBo8.js → vue-ui-onion-DGU0vHXZ.js} +75 -75
  98. package/dist/{vue-ui-parallel-coordinate-plot-DWGVzaHE.js → vue-ui-parallel-coordinate-plot-B4tVo343.js} +38 -38
  99. package/dist/vue-ui-parallel-coordinate-plot-CTF--y5O.cjs +8 -0
  100. package/dist/{vue-ui-quadrant-CgiD9c7i.js → vue-ui-quadrant-CDZspHBg.js} +54 -54
  101. package/dist/vue-ui-quadrant-De8bmwz_.cjs +1 -0
  102. package/dist/vue-ui-quick-chart-Bi7Vdl9I.cjs +15 -0
  103. package/dist/{vue-ui-quick-chart-5NiRxtpD.js → vue-ui-quick-chart-baWAo-Ln.js} +9 -9
  104. package/dist/{vue-ui-radar-CfKAy0nI.js → vue-ui-radar-CG8tGSHg.js} +55 -55
  105. package/dist/vue-ui-radar-DAxiwdD4.cjs +1 -0
  106. package/dist/{vue-ui-rating-yiM_5H0W.cjs → vue-ui-rating-Bm6BESO1.cjs} +1 -1
  107. package/dist/{vue-ui-rating-CbZvsZNv.js → vue-ui-rating-CcMWLaSP.js} +2 -2
  108. package/dist/{vue-ui-relation-circle-RRK2jhHr.js → vue-ui-relation-circle-D4vD3HD_.js} +7 -7
  109. package/dist/vue-ui-relation-circle-rM2pEsYK.cjs +1 -0
  110. package/dist/vue-ui-rings-Mt51bBc5.cjs +2 -0
  111. package/dist/{vue-ui-rings-CiMKMEpp.js → vue-ui-rings-R91Q3vZF.js} +62 -62
  112. package/dist/{vue-ui-scatter-9PFXuvoo.js → vue-ui-scatter-BKY7zeC_.js} +44 -44
  113. package/dist/vue-ui-scatter-COs46vAF.cjs +1 -0
  114. package/dist/{vue-ui-skeleton-KW-jcPRN.cjs → vue-ui-skeleton-BBWwBSGZ.cjs} +1 -1
  115. package/dist/{vue-ui-skeleton-7Zfds6H1.js → vue-ui-skeleton-CTZKsfWs.js} +3 -3
  116. package/dist/{vue-ui-smiley-D0jhMBUh.js → vue-ui-smiley-3XabGcpa.js} +2 -2
  117. package/dist/{vue-ui-smiley-BNQlshyY.cjs → vue-ui-smiley-CZ2XNWEt.cjs} +1 -1
  118. package/dist/{vue-ui-spark-trend-CLm12POW.cjs → vue-ui-spark-trend-CZnUiwhV.cjs} +1 -1
  119. package/dist/{vue-ui-spark-trend-D8nDY0fS.js → vue-ui-spark-trend-Dd_5kNG9.js} +5 -5
  120. package/dist/{vue-ui-sparkbar-ChEbpWYC.cjs → vue-ui-sparkbar-CZJ8RFMM.cjs} +1 -1
  121. package/dist/{vue-ui-sparkbar-wKlwMCph.js → vue-ui-sparkbar-DT_G3f_6.js} +4 -4
  122. package/dist/{vue-ui-sparkgauge-CvhIe_mP.js → vue-ui-sparkgauge-CoGcwj8-.js} +4 -4
  123. package/dist/{vue-ui-sparkgauge-DG824sGI.cjs → vue-ui-sparkgauge-Cra2_GdA.cjs} +1 -1
  124. package/dist/{vue-ui-sparkhistogram-B8k8a538.cjs → vue-ui-sparkhistogram-ClJhce64.cjs} +1 -1
  125. package/dist/{vue-ui-sparkhistogram-CVmbTFTc.js → vue-ui-sparkhistogram-ZI-zkp6j.js} +5 -5
  126. package/dist/{vue-ui-sparkline-CtqAbSzZ.js → vue-ui-sparkline-C4HvM0A7.js} +4 -4
  127. package/dist/{vue-ui-sparkline-7wnWuXDQ.cjs → vue-ui-sparkline-Cehnojts.cjs} +1 -1
  128. package/dist/{vue-ui-sparkstackbar-57SONMGP.cjs → vue-ui-sparkstackbar-B6su4lbU.cjs} +1 -1
  129. package/dist/{vue-ui-sparkstackbar-DfwEeUC5.js → vue-ui-sparkstackbar-DbXifSgX.js} +5 -5
  130. package/dist/vue-ui-stackbar-Dxjx916g.cjs +6 -0
  131. package/dist/{vue-ui-stackbar-CGSVPiPx.js → vue-ui-stackbar-bBQdWmxo.js} +86 -86
  132. package/dist/{vue-ui-strip-plot-fJFkn8_0.js → vue-ui-strip-plot-BaAUPB0O.js} +36 -36
  133. package/dist/vue-ui-strip-plot-D3Mc4jJS.cjs +1 -0
  134. package/dist/{vue-ui-table-Das3959J.cjs → vue-ui-table-CO12Arh5.cjs} +1 -1
  135. package/dist/{vue-ui-table-CliL2Wsp.js → vue-ui-table-DyjampQ2.js} +1 -1
  136. package/dist/{vue-ui-table-heatmap-C28ozf2S.cjs → vue-ui-table-heatmap-BrXBITN7.cjs} +1 -1
  137. package/dist/{vue-ui-table-heatmap-ZsJMMGpG.js → vue-ui-table-heatmap-DC3LbLR1.js} +4 -4
  138. package/dist/{vue-ui-table-sparkline-0i9FAXug.cjs → vue-ui-table-sparkline-C-L8YXVO.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-CrQNShdH.js → vue-ui-table-sparkline-MCUi0UPR.js} +5 -5
  140. package/dist/{vue-ui-thermometer-BaGL6WSb.js → vue-ui-thermometer-0Jw0Kc3K.js} +50 -50
  141. package/dist/vue-ui-thermometer-BbAmbpxI.cjs +1 -0
  142. package/dist/{vue-ui-timer-CFtgJ_Vi.cjs → vue-ui-timer-CgcO44Ga.cjs} +1 -1
  143. package/dist/{vue-ui-timer-Nk94fV-n.js → vue-ui-timer-D43Y73z-.js} +5 -5
  144. package/dist/vue-ui-tiremarks-B7GobiRR.cjs +1 -0
  145. package/dist/{vue-ui-tiremarks-zYgdq_99.js → vue-ui-tiremarks-C2z7LZOy.js} +25 -25
  146. package/dist/vue-ui-treemap-YuZUqTkv.cjs +1 -0
  147. package/dist/{vue-ui-treemap-CAxPcxn-.js → vue-ui-treemap-t2jSZWbw.js} +12 -12
  148. package/dist/{vue-ui-vertical-bar-Di3FBkwJ.js → vue-ui-vertical-bar-CXbzdSDN.js} +80 -80
  149. package/dist/vue-ui-vertical-bar-RH9oo9ao.cjs +4 -0
  150. package/dist/vue-ui-waffle-C6PA3aJK.cjs +1 -0
  151. package/dist/{vue-ui-waffle-DBJAQsEf.js → vue-ui-waffle-Z9KsaCxx.js} +45 -45
  152. package/dist/{vue-ui-wheel-BTZEr2Vs.js → vue-ui-wheel-BbBHPjUa.js} +27 -27
  153. package/dist/vue-ui-wheel-BmWfP7V3.cjs +1 -0
  154. package/dist/{vue-ui-word-cloud-DBCVUkLM.js → vue-ui-word-cloud-CUi3fEZc.js} +72 -72
  155. package/dist/{vue-ui-word-cloud-BEaRWIu-.cjs → vue-ui-word-cloud-DysEgxAX.cjs} +1 -1
  156. package/dist/{vue-ui-xy-DbN93Pcf.cjs → vue-ui-xy-B7Q6HDzu.cjs} +2 -2
  157. package/dist/{vue-ui-xy-aKaGgYGL.js → vue-ui-xy-BWN8izeD.js} +16 -16
  158. package/dist/vue-ui-xy-canvas-DZB78JsG.cjs +9 -0
  159. package/dist/vue-ui-xy-canvas-DfhloBZx.js +1672 -0
  160. package/package.json +1 -1
  161. package/dist/PenAndPaper-CmcfpltX.js +0 -243
  162. package/dist/PenAndPaper-DNbX5hR8.cjs +0 -1
  163. package/dist/vue-ui-3d-bar-CmbTiJVx.cjs +0 -19
  164. package/dist/vue-ui-age-pyramid-Sv-HbbDJ.cjs +0 -1
  165. package/dist/vue-ui-bullet-vcmTY4AX.cjs +0 -34
  166. package/dist/vue-ui-candlestick-DQT-8PRz.cjs +0 -2
  167. package/dist/vue-ui-circle-pack-CVLJs0XP.cjs +0 -1
  168. package/dist/vue-ui-donut-FoRYusUX.cjs +0 -1
  169. package/dist/vue-ui-donut-evolution-BIK2yfIJ.cjs +0 -1
  170. package/dist/vue-ui-flow-N825fjRf.cjs +0 -1
  171. package/dist/vue-ui-funnel-B6XMYl89.cjs +0 -1
  172. package/dist/vue-ui-galaxy-p-sbDnSY.cjs +0 -1
  173. package/dist/vue-ui-gauge-DsZFk8T_.cjs +0 -1
  174. package/dist/vue-ui-heatmap-VXgeMOwT.cjs +0 -1
  175. package/dist/vue-ui-history-plot-JmeGiR--.cjs +0 -1
  176. package/dist/vue-ui-mood-radar-CO5sPVVG.cjs +0 -1
  177. package/dist/vue-ui-nested-donuts-D0nALasd.cjs +0 -17
  178. package/dist/vue-ui-onion-CBqx4q4k.cjs +0 -5
  179. package/dist/vue-ui-parallel-coordinate-plot-uNCmnSvz.cjs +0 -8
  180. package/dist/vue-ui-quadrant-BOkyMgCm.cjs +0 -1
  181. package/dist/vue-ui-quick-chart-BRp_bNso.cjs +0 -15
  182. package/dist/vue-ui-radar-BpicgiWF.cjs +0 -1
  183. package/dist/vue-ui-relation-circle-Dg6rdyGP.cjs +0 -1
  184. package/dist/vue-ui-rings-A49lyv-J.cjs +0 -2
  185. package/dist/vue-ui-scatter-C_jHsy8M.cjs +0 -1
  186. package/dist/vue-ui-stackbar--0FZ_eBi.cjs +0 -6
  187. package/dist/vue-ui-strip-plot-C_ggDAQ-.cjs +0 -1
  188. package/dist/vue-ui-thermometer-h0rymM2v.cjs +0 -1
  189. package/dist/vue-ui-tiremarks-Cj8-XGcp.cjs +0 -1
  190. package/dist/vue-ui-treemap-CybL6mVf.cjs +0 -1
  191. package/dist/vue-ui-vertical-bar-D4IkwvAB.cjs +0 -4
  192. package/dist/vue-ui-waffle-7otLUrER.cjs +0 -1
  193. package/dist/vue-ui-wheel-BUJXtmeP.cjs +0 -1
  194. package/dist/vue-ui-xy-canvas-CF_lqLg-.cjs +0 -9
  195. package/dist/vue-ui-xy-canvas-CVQ__d4u.js +0 -1500
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-HGCbG8YK.cjs"),Ne=require("./useResponsive-DQmBAoBf.cjs"),ce=require("./BaseIcon-BQ6ScTsr.cjs"),Xe=require("./Tooltip-DPqJ5wwr.cjs"),Ve=require("./usePrinter-B2PvJuo8.cjs"),Ye=require("./Slicer-B10GL6W6.cjs"),Ze=require("./vue-ui-skeleton-BBWwBSGZ.cjs"),Pe=require("./useNestedProp-O_JTsxQj.cjs"),Je=require("./PackageVersion-sCi6-fwm.cjs"),Qe=require("./PenAndPaper-DXiYR_ED.cjs"),Ke=require("./useChartAccessibility-Cm7nkzTG.cjs"),et=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},tt=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function lt({dataset:v,barLineSwitch:B=6}){let f=null,_=null,L=0;if((typeof v=="number"||typeof v=="string")&&console.warn(`The provided dataset (${v}) is not sufficient to build a chart`),te(v)&&(I(v)&&(v.length<B?f=S.BAR:f=S.LINE,_=v,L=v.length),de(v))){if(!ot(v))return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."),!1;const U=Object.keys(v[0]),G=Object.values(v[0]);if(!U.some(E=>nt(E)))return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."),!1;$e(G,E=>typeof E=="number")&&(f=S.DONUT,_=v),$e(G,E=>Array.isArray(E)&&I(E))&&(Fe(v)>B?f=S.LINE:f=S.BAR,L=Fe(v),_=v.map(E=>({...E,data:rt(E,$=>I($))}))),v=v.map(E=>Ie(E)),_=_.map(E=>Ie(E))}return te(v)&&[...new Set(v.flatMap(U=>Array.isArray(U)))][0],{dataset:v,type:f,usableDataset:_,maxSeriesLength:L}}function Oe(v){return!v||te(v)&&!v.length}function te(v){return Array.isArray(v)}function I(v){if(!te(v)||Oe(v))return!1;const B=v.map(f=>Number(f));return![...new Set(B.flatMap(f=>typeof f=="number"&&!isNaN(f)))].includes(!1)}function de(v){return!te(v)||Oe(v)||!![...new Set(v.flatMap(f=>typeof f=="object"&&!Array.isArray(f)))].includes(!1)?!1:!v.map(f=>Object.keys(f).length>0).includes(!1)}function at(v,B){const f=Object.keys(v).sort(),_=Object.keys(B).sort();if(f.length!==_.length)return!1;for(let L=0;L<f.length;L+=1){const P=f[L],D=_[L];if(P!==D||typeof v[P]!=typeof B[D])return!1}return!0}function ot(v){if(v.length<=1)return!0;for(let B=0;B<v.length;B+=1)for(let f=B+1;f<v.length;f+=1)if(!at(v[B],v[f]))return!1;return!0}function nt(v){return tt.includes(v.toUpperCase())}function $e(v,B){let f=[];for(let _=0;_<v.length;_+=1)f.push(B(v[_]));return f.includes(!0)}function Fe(v){return Math.max(...[...v].flatMap(B=>Object.values(B).filter(f=>I(f)).map(f=>f.length)))}function rt(v,B){return Object.values(v).filter(f=>B(f))[0]}function Ie(v){const B={};for(let f in v)v.hasOwnProperty(f)&&(B[f.toUpperCase()]=v[f]);return B}const it=["id"],ut=["xmlns","viewBox"],st=["x","y","width","height"],ct=["x","y","width","height"],dt=["width","height"],vt=["id"],mt=["id"],ht=["id"],ft=["flood-color"],pt={key:0,class:"donut-label-connectors"},kt=["d","stroke","stroke-width","filter"],gt=["cx","cy","r","fill","filter"],yt={class:"donut"},xt=["d","fill","stroke","stroke-width","filter"],St=["d","onMouseenter","onClick"],bt={key:1,class:"donut-labels quick-animation"},Bt=["cx","cy","fill","stroke","filter"],wt=["text-anchor","x","y","fill","font-size","filter"],Et=["text-anchor","x","y","fill","font-size","filter"],At={key:2,class:"donut-hollow quick-animation"},Lt=["x","y","font-size","fill"],Ct=["x","y","font-size","fill"],_t={key:0,class:"line-grid"},zt=["x1","x2","y1","y2","stroke","stroke-width"],Nt=["x1","x2","y1","y2","stroke","stroke-width"],Vt={key:1,class:"line-axis"},Pt=["x1","x2","y1","y2","stroke","stroke-width"],$t=["x1","x2","y1","y2","stroke","stroke-width"],Ft={key:2,class:"yLabels"},It=["x1","x2","y1","y2","stroke","stroke-width"],Ot=["x","y","font-size","fill"],Tt={key:3,class:"periodLabels"},Rt=["x1","x2","y1","y2","stroke","stroke-width"],Mt=["font-size","text-anchor","fill","transform"],Dt={class:"plots"},Ut={class:"line-plot-series"},qt=["d","stroke","stroke-width"],Ht=["d","stroke","stroke-width"],Wt=["d","stroke","stroke-width"],jt=["d","stroke","stroke-width"],Gt=["cx","cy","fill","stroke"],Xt={key:4,class:"dataLabels"},Yt=["font-size","fill","x","y"],Zt={class:"tooltip-traps"},Jt=["x","y","height","width","fill","onMouseenter","onClick"],Qt={key:0,class:"line-grid"},Kt=["x1","x2","y1","y2","stroke","stroke-width"],el=["x1","x2","y1","y2","stroke","stroke-width"],tl={key:1,class:"line-axis"},ll=["x1","x2","y1","y2","stroke","stroke-width"],al=["x1","x2","y1","y2","stroke","stroke-width"],ol={key:2,class:"yLabels"},nl=["x1","x2","y1","y2","stroke","stroke-width"],rl=["x","y","font-size","fill"],il={key:3,class:"periodLabels"},ul=["x1","x2","y1","y2","stroke","stroke-width"],sl=["font-size","text-anchor","transform","fill"],cl={class:"plots"},dl=["x","width","height","y","fill","stroke","stroke-width"],vl=["to"],ml=["from","to"],hl={key:4,class:"dataLabels"},fl=["x","y","font-size","fill"],pl={class:"tooltip-traps"},kl=["x","y","height","width","fill","onMouseenter","onClick"],gl={key:6,class:"axis-labels"},yl={key:0},xl=["font-size","fill","x","y"],Sl={key:1},bl=["font-size","fill","x","y"],Bl={key:2},wl=["font-size","fill","transform"],El={key:3},Al=["font-size","fill","transform"],Ll={key:6,class:"vue-data-ui-watermark"},Cl=["onClick"],_l=["onClick"],zl=["onClick"],Nl={key:1,class:"vue-ui-quick-chart-not-processable"},Vl={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(v,{expose:B,emit:f}){const{vue_ui_quick_chart:_}=i.useConfig(),L=v,P=e.ref(null),D=e.ref(null),U=e.ref(null),G=e.ref(null),E=e.ref(i.createUid()),$=e.ref(!1),X=e.ref(null),O=e.ref(""),V=e.ref(null),he=e.ref(null),fe=e.ref(null),x=e.ref([]),pe=e.ref(0),le=e.ref(0),t=e.computed({get:()=>xe(),set:a=>a}),{svgRef:ke}=Ke.useChartAccessibility({config:{text:t.value.title}}),Te=e.computed(()=>t.value.showUserOptionsOnChartHover),ge=e.computed(()=>t.value.keepUserOptionsStateOnChartLeave),ae=e.ref(!t.value.showUserOptionsOnChartHover);function ye(a=!1){Te.value&&(ae.value=a)}function xe(){const a=Pe.useNestedProp({userConfig:L.config,defaultConfig:_});let s={};return a.theme?s={...Pe.useNestedProp({userConfig:i.themes.vue_ui_quick_chart[a.theme]||L.config,defaultConfig:a}),customPalette:i.themePalettes[a.theme]||i.palette}:s=a,L.config&&i.hasDeepProperty(L.config,"zoomStartIndex")?s.zoomStartIndex=L.config.zoomStartIndex:s.zoomStartIndex=null,L.config&&i.hasDeepProperty(L.config,"zoomEndIndex")?s.zoomEndIndex=L.config.zoomEndIndex:s.zoomEndIndex=null,s}e.watch(()=>L.config,a=>{t.value=xe(),g.value.width=t.value.width,g.value.height=t.value.height,ae.value=!t.value.showUserOptionsOnChartHover,Be(),J.value.showTooltip=t.value.showTooltip},{deep:!0}),e.watch(()=>L.dataset,a=>{p.value=Z.value,h.value.start=0,h.value.end=p.value.maxSeriesLength,le.value+=1},{deep:!0});const Y=e.computed(()=>i.convertCustomPalette(t.value.customPalette)),q=f,Z=e.computed(()=>{const a=lt({dataset:i.sanitizeArray(L.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return a||console.error("VueUiQuickChart : Dataset is not processable"),a}),p=e.ref(Z.value),Re=e.computed(()=>!!p.value),b=e.computed(()=>p.value?p.value.type:null);e.watch(()=>b.value,a=>{a||i.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:oe,isImaging:ne,generatePdf:Se,generateImage:be}=Ve.usePrinter({elementId:`${b.value}_${E.value}`,fileName:t.value.title||b.value,options:t.value.userOptionsPrint}),Me=e.computed(()=>t.value.showUserOptions&&!t.value.title),g=e.ref({width:t.value.width,height:t.value.height}),J=e.ref({showTooltip:t.value.showTooltip}),re=e.ref(null);e.onMounted(()=>{Be()});function Be(){if(t.value.responsive){const a=Ne.throttle(()=>{const{width:s,height:l}=Ne.useResponsive({chart:P.value,title:t.value.title?D.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(b.value)&&t.value.zoomXy&&p.value.maxSeriesLength>1?G.value:null,source:he.value,noTitle:fe.value});requestAnimationFrame(()=>{g.value.width=s,g.value.height=l})});re.value=new ResizeObserver(a),re.value.observe(P.value.parentNode)}_e()}e.onBeforeUnmount(()=>{re.value&&re.value.disconnect()});const De=e.computed(()=>{switch(b.value){case S.LINE:return`0 0 ${g.value.width<=0?10:g.value.width} ${g.value.height<=0?10:g.value.height}`;case S.BAR:return`0 0 ${g.value.width<=0?10:g.value.width} ${g.value.height<=0?10:g.value.height}`;case S.DONUT:return`0 0 ${g.value.width<=0?10:g.value.width} ${g.value.height<=0?10:g.value.height}`;default:return`0 0 ${g.value.width<=0?10:g.value.width} ${g.value.height<=0?10:g.value.height}`}});function we(a){return[...a].map(s=>s.value).reduce((s,l)=>s+l,0)}function Q(a){return t.value.blurOnHover&&![null,void 0].includes(V.value)&&V.value!==a?`url(#blur_${E.value})`:""}function Ee(a,s){x.value.includes(a)?x.value=x.value.filter(l=>l!==a):x.value.length<s&&x.value.push(a)}const Ae=e.ref(null),Le=e.ref(null),ie=e.ref(!1);function Ue(a,s){ie.value=!0;let l=a.value;const r=Z.value.dataset.find((u,m)=>a.id===`donut_${m}`).VALUE;if(x.value.includes(a.id)){let u=function(){l>r?(ie.value=!1,cancelAnimationFrame(Le.value),p.value={...p.value,dataset:p.value.dataset.map((m,C)=>a.id===`donut_${C}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,p.value={...p.value,dataset:p.value.dataset.map((m,C)=>a.id===`donut_${C}`?{...m,value:l,VALUE:l}:m)},Le.value=requestAnimationFrame(u))};x.value=x.value.filter(m=>m!==a.id),u()}else if(s.length>1){let u=function(){l<r/100?(ie.value=!1,cancelAnimationFrame(Ae.value),x.value.push(a.id),p.value={...p.value,dataset:p.value.dataset.map((m,C)=>a.id===`donut_${C}`?{...m,value:0,VALUE:0}:m)}):(l/=1.1,p.value={...p.value,dataset:p.value.dataset.map((m,C)=>a.id===`donut_${C}`?{...m,value:l,VALUE:l}:m)},Ae.value=requestAnimationFrame(u))};u()}}const F=e.ref(null);function qe(a){F.value=a}const Ce=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),w=e.computed(()=>{if(b.value!==S.DONUT)return null;const a=p.value.dataset.map((o,n)=>({...o,value:o.VALUE||o.DATA||o.SERIE||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${n}`,id:`donut_${n}`})).map((o,n)=>({...o,color:o.COLOR?i.convertColorToHex(o.COLOR):Y.value[n+t.value.paletteStartIndex]||i.palette[n+t.value.paletteStartIndex]||i.palette[(n+t.value.paletteStartIndex)%i.palette.length],immutableValue:o.value}));function s(o,n){return i.dataLabel({v:isNaN(o.value/we(n))?0:o.value/we(n)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(o){return o.proportion*100>t.value.donutHideLabelUnderPercentage}function r(o,n){const y=Z.value.dataset.find((A,z)=>`donut_${z}`===o).VALUE;return Math.abs(String(Number(y.toFixed(0))).length-String(Number(n.toFixed(0))).length)}function u({datapoint:o,seriesIndex:n}){X.value={datapoint:o,seriesIndex:n,config:t.value,dataset:a},V.value=o.id;const y=t.value.tooltipCustomFormat;if(i.isFunction(y)&&i.functionReturnsString(()=>y({datapoint:o,seriesIndex:n,series:a,config:t.value})))O.value=y({datapoint:o,seriesIndex:n,series:a,config:t.value});else{let k="";k+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,k+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}"/></svg>`,k+=`<b>${i.applyDataLabel(t.value.formatter,o.value,i.dataLabel({p:t.value.valuePrefix,v:o.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:o,seriesIndex:n})}</b>`,k+=`<span>(${i.dataLabel({v:o.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,O.value=`<div>${k}</div>`}$.value=!0}function m(){$.value=!1,V.value=null,F.value=null}const C={centerX:g.value.width/2,centerY:g.value.height/2},N=a.filter(o=>!x.value.includes(o.id)).map(o=>o.value||0).reduce((o,n)=>o+n,0),W=a.map((o,n)=>({...o,proportion:(o.value||0)/N,value:o.value||0,absoluteValue:Z.value.dataset.find((y,k)=>`donut_${k}`===o.id).VALUE})),T=g.value.width/2,j=g.value.height/2,R=g.value.height*t.value.donutRadiusRatio;return{dataset:W.filter(o=>!x.value.includes(o.id)),legend:W,drawingArea:C,displayArcPercentage:s,isArcBigEnough:l,useTooltip:u,killTooltip:m,getSpaces:r,total:N,cx:T,cy:j,radius:R,chart:i.makeDonut({series:a.filter(o=>!x.value.includes(o.id))},T,j,R,R,1.99999,2,1,360,105.25,g.value.height*Ce.value)}}),h=e.ref({start:0,end:p.value.maxSeriesLength});function He(){_e()}const H=e.ref(null);async function _e(){(t.value.zoomStartIndex!==null||t.value.zoomEndIndex!==null)&&H.value?(t.value.zoomStartIndex!==null&&(await e.nextTick(),await e.nextTick(),H.value&&H.value.setStartValue(t.value.zoomStartIndex)),t.value.zoomEndIndex!==null&&(await e.nextTick(),await e.nextTick(),H.value&&H.value.setEndValue(We(t.value.zoomEndIndex+1)))):(h.value={start:0,end:p.value.maxSeriesLength},le.value+=1)}function We(a){const s=p.value.maxSeriesLength;return a>s?s:a<0||t.value.zoomStartIndex!==null&&a<t.value.zoomStartIndex?t.value.zoomStartIndex!==null?t.value.zoomStartIndex+1:1:a}const je=e.computed(()=>{if(!t.value.zoomMinimap.show||b.value===S.DONUT)return[];let a=[];I(p.value.dataset)&&(a=p.value.dataset),de(p.value.dataset)&&(a=p.value.dataset.map((u,m)=>({values:u.VALUE||u.DATA||u.SERIE||u.SERIES||u.VALUES||u.NUM||0,id:b.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(u=>!x.value.includes(u.id)));const s=I(a)?a.length:Math.max(...a.map(u=>u.values.length));let l=[];if(I(a))l=a;else for(let u=0;u<s;u+=1)l.push(a.map(m=>m.values[u]||0).reduce((m,C)=>(m||0)+(C||0),0));const r=Math.min(...l);return l.map(u=>u+(r<0?Math.abs(r):0))}),d=e.computed(()=>{if(b.value!==S.LINE)return null;const a={height:g.value.height,width:g.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:a.width-t.value.xyPaddingRight,bottom:a.height-t.value.xyPaddingBottom,width:a.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:a.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];I(p.value.dataset)&&(l=[{values:p.value.dataset.slice(h.value.start,h.value.end),absoluteIndices:p.value.dataset.map((o,n)=>n).slice(h.value.start,h.value.end),name:t.value.title,color:Y.value[t.value.paletteStartIndex]||i.palette[t.value.paletteStartIndex],id:"line_0"}]),de(p.value.dataset)&&(l=p.value.dataset.map((o,n)=>({...o,values:o.VALUE||o.DATA||o.SERIE||o.SERIES||o.VALUES||o.NUM||0,name:o.NAME||o.DESCRIPTION||o.TITLE||o.LABEL||`Serie ${n}`,id:`line_${n}`})).map((o,n)=>({...o,color:o.COLOR?i.convertColorToHex(o.COLOR):Y.value[n+t.value.paletteStartIndex]||i.palette[n+t.value.paletteStartIndex]||i.palette[(n+t.value.paletteStartIndex)%i.palette.length],values:o.values.slice(h.value.start,h.value.end),absoluteIndices:o.values.map((y,k)=>k).slice(h.value.start,h.value.end)})));const r={max:Math.max(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),min:Math.min(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values)),maxSeries:Math.max(...l.map(o=>o.values.length))},u=i.calculateNiceScale(r.min<0?r.min:0,r.max<0?0:r.max,t.value.xyScaleSegments),m=r.min<0?Math.abs(r.min):0,C=r.max<0?s.top:s.bottom-m/(u.max+m)*s.height,N=s.width/r.maxSeries,W=u.ticks.map(o=>({y:s.bottom-s.height*((o+m)/(u.max+m)),x:s.left-8,value:o})),T=l.map((o,n)=>({...o,coordinates:o.values.map((y,k)=>({x:s.left+N*(k+1)-N/2,y:s.bottom-(y+m)/(u.max+m)*s.height,value:y}))})).map(o=>{let n=[];return o.coordinates.forEach(y=>{n.push(`${y.x},${y.y} `)}),{...o,linePath:n.join(" ")}});function j(o){V.value=o,F.value=o;const n=l.map(k=>({...k,value:k.values[o],absoluteIndex:k.absoluteIndices[o]})).filter(k=>!x.value.includes(k.id));X.value={datapoint:n,seriesIndex:o,config:t.value,dataset:l};const y=t.value.tooltipCustomFormat;if(i.isFunction(y)&&i.functionReturnsString(()=>y({datapoint:n,seriesIndex:o,series:l,config:t.value})))O.value=y({datapoint:n,seriesIndex:o,series:l,config:t.value});else{let k="";t.value.xyPeriods[n[0].absoluteIndex]&&(k+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[n[0].absoluteIndex]}</div>`),n.forEach((A,z)=>{k+=`
2
+ <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
3
+ <svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${A.color}"/></svg>
4
+ <span>${A.name}:</span>
5
+ <b>${i.applyDataLabel(t.value.formatter,A.value,i.dataLabel({p:t.value.valuePrefix,v:A.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:A,seriesIndex:z})}
6
+ </b>
7
+ </div>
8
+ `}),O.value=k}$.value=!0}function R(){V.value=null,F.value=null,$.value=!1}return{absoluteZero:C,dataset:T.filter(o=>!x.value.includes(o.id)),legend:T,drawingArea:s,extremes:r,slotSize:N,yLabels:W,useTooltip:j,killTooltip:R}}),c=e.computed(()=>{if(b.value!==S.BAR)return null;const a={height:g.value.height,width:g.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:a.width-t.value.xyPaddingRight,bottom:a.height-t.value.xyPaddingBottom,width:a.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:a.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];I(p.value.dataset)&&(l=[{values:p.value.dataset.slice(h.value.start,h.value.end),absoluteIndices:p.value.dataset.map((n,y)=>y).slice(h.value.start,h.value.end),name:t.value.title,color:Y.value[t.value.paletteStartIndex]||i.palette[t.value.paletteStartIndex],id:"bar_0"}]),de(p.value.dataset)&&(l=p.value.dataset.map((n,y)=>({...n,values:n.VALUE||n.DATA||n.SERIE||n.SERIES||n.VALUES||n.NUM||0,name:n.NAME||n.DESCRIPTION||n.TITLE||n.LABEL||`Serie ${y}`,id:`bar_${y}`})).map((n,y)=>({...n,color:n.COLOR?i.convertColorToHex(n.COLOR):Y.value[y+t.value.paletteStartIndex]||i.palette[y+t.value.paletteStartIndex]||i.palette[(y+t.value.paletteStartIndex)%i.palette.length],values:n.values.slice(h.value.start,h.value.end),absoluteIndices:n.values.map((k,A)=>A).slice(h.value.start,h.value.end)})));const r={max:Math.max(...l.filter(n=>!x.value.includes(n.id)).flatMap(n=>n.values))<0?0:Math.max(...l.filter(n=>!x.value.includes(n.id)).flatMap(n=>n.values)),min:Math.min(...l.filter(n=>!x.value.includes(n.id)).flatMap(n=>n.values)),maxSeries:Math.max(...l.filter(n=>!x.value.includes(n.id)).map(n=>n.values.length))},u=i.calculateNiceScale(r.min<0?r.min:0,r.max,t.value.xyScaleSegments),m=u.min<0?Math.abs(u.min):0,C=s.bottom-m/(u.max+m)*s.height,N=s.width/r.maxSeries,W=u.ticks.map(n=>({y:s.bottom-s.height*((n+m)/(u.max+m)),x:s.left-8,value:n})),T=l.map((n,y)=>({...n,coordinates:n.values.map((k,A)=>{const z=(k+m)/(r.max+m)*s.height,K=Math.abs(k)/Math.abs(r.min)*(s.height-C),me=m/(r.max+m)*s.height,ee=N/l.filter(M=>!x.value.includes(M.id)).length-t.value.barGap/l.filter(M=>!x.value.includes(M.id)).length;return{x:s.left+N*A+ee*y+t.value.barGap/2,y:k>0?s.bottom-z:C,height:k>0?z-me:K,value:k,width:ee}})})),j=l.filter(n=>!x.value.includes(n.id)).map((n,y)=>({...n,coordinates:n.values.map((k,A)=>{const z=(k+m)/(r.max+m)*s.height,K=Math.abs(k)/(r.max+m)*s.height,me=m/(r.max+m)*s.height,ee=N/l.filter(M=>!x.value.includes(M.id)).length-t.value.barGap/l.filter(M=>!x.value.includes(M.id)).length;return{x:s.left+N*A+ee*y+t.value.barGap/2,y:k>0?s.bottom-z:C,height:k>0?z-me:K,value:k,width:ee}})}));function R(n){V.value=n,F.value=n;const y=l.map(A=>({...A,value:A.values[n],absoluteIndex:A.absoluteIndices[n]})).filter(A=>!x.value.includes(A.id));X.value={datapoint:y,seriesIndex:n,config:t.value,dataset:l};const k=t.value.tooltipCustomFormat;if(i.isFunction(k)&&i.functionReturnsString(()=>k({datapoint:y,seriesIndex:n,series:l,config:t.value})))O.value=k({point:y,seriesIndex:n,series:l,config:t.value});else{let A="";t.value.xyPeriods[y[0].absoluteIndex]&&(A+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[y[0].absoluteIndex]}</div>`),y.forEach((z,K)=>{A+=`
9
+ <div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
10
+ <svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${z.color}"/></svg>
11
+ <span>${z.name}:</span>
12
+ <b>${i.applyDataLabel(t.value.formatter,z.value,i.dataLabel({p:t.value.valuePrefix,v:z.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:z,seriesIndex:K})}
13
+ </b>
14
+ </div>
15
+ `}),O.value=A}$.value=!0}function o(){$.value=!1,V.value=null,F.value=null}return{absoluteZero:C,dataset:j.filter(n=>!x.value.includes(n.id)),legend:T,drawingArea:s,extremes:r,slotSize:N,yLabels:W,useTooltip:R,killTooltip:o}}),ue=e.ref(!1);function Ge(a){ue.value=a,pe.value+=1}function ze(){J.value.showTooltip=!J.value.showTooltip}const se=e.ref(!1);function ve(){se.value=!se.value}return B({generatePdf:Se,generateImage:be,toggleTooltip:ze,toggleAnnotator:ve}),(a,s)=>Re.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:`${b.value}_${E.value}`,ref_key:"quickChart",ref:P,class:e.normalizeClass({"vue-ui-quick-chart":!0,"vue-data-ui-wrapper-fullscreen":ue.value}),style:e.normalizeStyle(`background:${t.value.backgroundColor};color:${t.value.color};font-family:${t.value.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:s[5]||(s[5]=()=>ye(!0)),onMouseleave:s[6]||(s[6]=()=>ye(!1))},[t.value.userOptionsButtons.annotator?(e.openBlock(),e.createBlock(Qe._sfc_main,{key:0,svgRef:e.unref(ke),backgroundColor:t.value.backgroundColor,color:t.value.color,active:se.value,onClose:ve},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Me.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:fe,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.showUserOptions&&(ge.value||ae.value)?(e.openBlock(),e.createBlock(Ve.UserOptions,{ref:"details",key:`user_option_${pe.value}`,backgroundColor:t.value.backgroundColor,color:t.value.color,isPrinting:e.unref(oe),isImaging:e.unref(ne),uid:E.value,hasTooltip:t.value.userOptionsButtons.tooltip&&t.value.showTooltip,hasPdf:t.value.userOptionsButtons.pdf,hasImg:t.value.userOptionsButtons.img,hasFullscreen:t.value.userOptionsButtons.fullscreen,hasXls:!1,isTooltip:J.value.showTooltip,isFullscreen:ue.value,titles:{...t.value.userOptionsButtonTitles},chartElement:P.value,position:t.value.userOptionsPosition,hasAnnotator:t.value.userOptionsButtons.annotator,isAnnotation:se.value,onToggleFullscreen:Ge,onGeneratePdf:e.unref(Se),onGenerateImage:e.unref(be),onToggleTooltip:ze,onToggleAnnotator:ve,style:e.normalizeStyle({visibility:ge.value?ae.value?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:r})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:r})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),t.value.title?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"quickChartTitle",ref:D,class:"vue-ui-quick-chart-title",style:e.normalizeStyle(`background:transparent;color:${t.value.color};font-size:${t.value.titleFontSize}px;font-weight:${t.value.titleBold?"bold":"normal"};text-align:${t.value.titleTextAlign}`)},e.toDisplayString(t.value.title),5)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ke,xmlns:e.unref(i.XMLNS),viewBox:De.value,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.color}`)},[e.createVNode(Je._sfc_main),a.$slots["chart-background"]&&b.value===S.BAR?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:c.value.drawingArea.left,y:c.value.drawingArea.top,width:c.value.drawingArea.width,height:c.value.drawingArea.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,st)):e.createCommentVNode("",!0),a.$slots["chart-background"]&&b.value===S.LINE?(e.openBlock(),e.createElementBlock("foreignObject",{key:1,x:d.value.drawingArea.left,y:d.value.drawingArea.top,width:d.value.drawingArea.width,height:d.value.drawingArea.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,ct)):e.createCommentVNode("",!0),a.$slots["chart-background"]&&b.value===S.DONUT?(e.openBlock(),e.createElementBlock("foreignObject",{key:2,x:0,y:0,width:g.value.width,height:g.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,dt)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${E.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${E.value}`},null,8,mt),s[7]||(s[7]=e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1))],8,vt),e.createElementVNode("filter",{id:`shadow_${E.value}`,"color-interpolation-filters":"sRGB"},[e.createElementVNode("feDropShadow",{dx:"0",dy:"0",stdDeviation:"10","flood-opacity":"0.5","flood-color":t.value.donutShadowColor},null,8,ft)],8,ht)]),b.value===S.DONUT?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(i.calcNutArrowPath)(l,{x:g.value.width/2,y:g.value.height/2},16,16,!1,!1,g.value.height*Ce.value),stroke:l.color,"stroke-width":t.value.donutLabelMarkerStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:Q(l.id)},null,8,kt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:w.value.cx,cy:w.value.cy,r:w.value.radius,fill:t.value.backgroundColor,filter:t.value.donutUseShadow?`url(#shadow_${E.value})`:""},null,8,gt),e.createElementVNode("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:l.color,stroke:t.value.backgroundColor,"stroke-width":t.value.donutStrokeWidth,filter:Q(l.id)},null,8,xt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:"transparent",onMouseenter:u=>w.value.useTooltip({datapoint:l,seriesIndex:r}),onMouseout:s[0]||(s[0]=u=>w.value.killTooltip()),onClick:u=>q("selectDatapoint",l)},null,40,St))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[w.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(i.calcMarkerOffsetX)(l).x,cy:e.unref(i.calcMarkerOffsetY)(l)-3.7,fill:l.color,stroke:t.value.backgroundColor,"stroke-width":1,r:3,filter:Q(l.id)},null,8,Bt)):e.createCommentVNode("",!0),w.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(i.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(i.calcMarkerOffsetX)(l,!0).x,y:e.unref(i.calcMarkerOffsetY)(l),fill:t.value.color,"font-size":t.value.dataLabelFontSize,filter:Q(l.id)},e.toDisplayString(w.value.displayArcPercentage(l,w.value.chart))+" ("+e.toDisplayString(e.unref(i.applyDataLabel)(t.value.formatter,l.value,e.unref(i.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r}))+") ",9,wt)):e.createCommentVNode("",!0),w.value.isArcBigEnough(l,!0,20)?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(i.calcMarkerOffsetX)(l).anchor,x:e.unref(i.calcMarkerOffsetX)(l,!0).x,y:e.unref(i.calcMarkerOffsetY)(l)+t.value.dataLabelFontSize,fill:t.value.color,"font-size":t.value.dataLabelFontSize,filter:Q(l.id)},e.toDisplayString(l.name),9,Et)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.donutShowTotal?(e.openBlock(),e.createElementBlock("g",At,[e.createElementVNode("text",{"text-anchor":"middle",x:w.value.drawingArea.centerX,y:w.value.drawingArea.centerY-t.value.donutTotalLabelFontSize/2,"font-size":t.value.donutTotalLabelFontSize,fill:t.value.color},e.toDisplayString(t.value.donutTotalLabelText),9,Lt),e.createElementVNode("text",{"text-anchor":"middle",x:w.value.drawingArea.centerX,y:w.value.drawingArea.centerY+t.value.donutTotalLabelFontSize,"font-size":t.value.donutTotalLabelFontSize,fill:t.value.color},e.toDisplayString(e.unref(i.dataLabel)({p:t.value.valuePrefix,v:w.value.total,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue})),9,Ct)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),b.value===S.LINE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[t.value.xyShowGrid?(e.openBlock(),e.createElementBlock("g",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.yLabels,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=d.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:d.value.drawingArea.left,x2:d.value.drawingArea.right,y1:l.y,y2:l.y,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,zt)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.extremes.maxSeries+1,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:d.value.drawingArea.left+d.value.slotSize*r,x2:d.value.drawingArea.left+d.value.slotSize*r,y1:d.value.drawingArea.top,y2:d.value.drawingArea.bottom,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,Nt))),256))])):e.createCommentVNode("",!0),t.value.xyShowAxis?(e.openBlock(),e.createElementBlock("g",Vt,[e.createElementVNode("line",{x1:d.value.drawingArea.left,x2:d.value.drawingArea.left,y1:d.value.drawingArea.top,y2:d.value.drawingArea.bottom,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Pt),e.createElementVNode("line",{x1:d.value.drawingArea.left,x2:d.value.drawingArea.right,y1:isNaN(d.value.absoluteZero)?d.value.drawingArea.bottom:d.value.absoluteZero,y2:isNaN(d.value.absoluteZero)?d.value.drawingArea.bottom:d.value.absoluteZero,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,$t)])):e.createCommentVNode("",!0),t.value.xyShowScale?(e.openBlock(),e.createElementBlock("g",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.yLabels,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=d.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.x+4,x2:d.value.drawingArea.left,y1:l.y,y2:l.y,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,It)):e.createCommentVNode("",!0),l.y<=d.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x,y:l.y+t.value.xyLabelsYFontSize/3,"text-anchor":"end","font-size":t.value.xyLabelsYFontSize,fill:t.value.color},e.toDisplayString(e.unref(i.applyDataLabel)(t.value.formatter,l.value,e.unref(i.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),9,Ot)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.xyShowScale&&t.value.xyPeriods.length?(e.openBlock(),e.createElementBlock("g",Tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(h.value.start,h.value.end),(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.xyPeriodsShowOnlyAtModulo||t.value.xyPeriodsShowOnlyAtModulo&&r%Math.floor((h.value.end-h.value.start)/t.value.xyPeriodsModulo)===0||h.value.end-h.value.start<=t.value.xyPeriodsModulo?(e.openBlock(),e.createElementBlock("line",{key:0,x1:d.value.drawingArea.left+d.value.slotSize*(r+1)-d.value.slotSize/2,x2:d.value.drawingArea.left+d.value.slotSize*(r+1)-d.value.slotSize/2,y1:d.value.drawingArea.bottom,y2:d.value.drawingArea.bottom+4,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Rt)):e.createCommentVNode("",!0),!t.value.xyPeriodsShowOnlyAtModulo||t.value.xyPeriodsShowOnlyAtModulo&&r%Math.floor((h.value.end-h.value.start)/t.value.xyPeriodsModulo)===0||h.value.end-h.value.start<=t.value.xyPeriodsModulo?(e.openBlock(),e.createElementBlock("text",{key:1,"font-size":t.value.xyLabelsXFontSize,"text-anchor":t.value.xyPeriodLabelsRotation>0?"start":t.value.xyPeriodLabelsRotation<0?"end":"middle",fill:t.value.color,transform:`translate(${d.value.drawingArea.left+d.value.slotSize*(r+1)-d.value.slotSize/2}, ${d.value.drawingArea.bottom+t.value.xyLabelsXFontSize+6}), rotate(${t.value.xyPeriodLabelsRotation})`},e.toDisplayString(l),9,Mt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock("g",Ut,[t.value.lineSmooth?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("path",{d:`M ${e.unref(i.createSmoothPath)(l.coordinates)}`,stroke:t.value.backgroundColor,"stroke-width":t.value.lineStrokeWidth+1,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,qt),e.createElementVNode("path",{d:`M ${e.unref(i.createSmoothPath)(l.coordinates)}`,stroke:l.color,"stroke-width":t.value.lineStrokeWidth,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,Ht)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:`M ${l.linePath}`,stroke:t.value.backgroundColor,"stroke-width":t.value.lineStrokeWidth+1,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,Wt),e.createElementVNode("path",{d:`M ${l.linePath}`,stroke:l.color,"stroke-width":t.value.lineStrokeWidth,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"quick-animation":!0,"vue-data-ui-line-animated":t.value.lineAnimated}),style:{transition:"all 0.3s ease-in-out"}},null,10,jt)],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(u,m)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:e.unref(i.checkNaN)(u.y),r:3,fill:l.color,stroke:t.value.backgroundColor,"stroke-width":"0.5",class:"quick-animation",style:{transition:"all 0.3s ease-in-out"}},null,8,Gt))),256))]))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(u,m)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle","font-size":t.value.dataLabelFontSize,fill:l.color,x:u.x,y:e.unref(i.checkNaN)(u.y)-t.value.dataLabelFontSize/2,class:"quick-animation",style:{transition:"all 0.3s ease-in-out"}},e.toDisplayString(e.unref(i.applyDataLabel)(t.value.formatter,e.unref(i.checkNaN)(u.value),e.unref(i.dataLabel)({p:t.value.valuePrefix,v:e.unref(i.checkNaN)(u.value),s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:u,seriesIndex:m})),9,Yt))),256))],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.extremes.maxSeries,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{x:d.value.drawingArea.left+r*d.value.slotSize,y:d.value.drawingArea.top,height:d.value.drawingArea.height<=0?1e-5:d.value.drawingArea.height,width:d.value.slotSize<=0?1e-5:d.value.slotSize,fill:[V.value,F.value].includes(r)?t.value.xyHighlighterColor:"transparent",style:e.normalizeStyle(`opacity:${t.value.xyHighlighterOpacity}`),onMouseenter:u=>d.value.useTooltip(r),onMouseleave:s[1]||(s[1]=u=>d.value.killTooltip()),onClick:u=>q("selectDatapoint",d.value.dataset.map(m=>({...m,value:m.values[r]})))},null,44,Jt))),256))])],64)):e.createCommentVNode("",!0),b.value===S.BAR?(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[t.value.xyShowGrid?(e.openBlock(),e.createElementBlock("g",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.yLabels,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=c.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:c.value.drawingArea.left,x2:c.value.drawingArea.right,y1:l.y,y2:l.y,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,Kt)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.extremes.maxSeries+1,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:c.value.drawingArea.left+c.value.slotSize*r,x2:c.value.drawingArea.left+c.value.slotSize*r,y1:c.value.drawingArea.top,y2:c.value.drawingArea.bottom,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,el))),256))])):e.createCommentVNode("",!0),t.value.xyShowAxis?(e.openBlock(),e.createElementBlock("g",tl,[e.createElementVNode("line",{x1:c.value.drawingArea.left,x2:c.value.drawingArea.left,y1:c.value.drawingArea.top,y2:c.value.drawingArea.bottom,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,ll),e.createElementVNode("line",{x1:c.value.drawingArea.left,x2:c.value.drawingArea.right,y1:isNaN(c.value.absoluteZero)?c.value.drawingArea.bottom:c.value.absoluteZero,y2:isNaN(c.value.absoluteZero)?c.value.drawingArea.bottom:c.value.absoluteZero,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,al)])):e.createCommentVNode("",!0),t.value.xyShowScale?(e.openBlock(),e.createElementBlock("g",ol,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.yLabels,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=c.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.x+4,x2:c.value.drawingArea.left,y1:l.y,y2:l.y,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,nl)):e.createCommentVNode("",!0),l.y<=c.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("text",{key:1,x:l.x,y:l.y+t.value.xyLabelsYFontSize/3,"text-anchor":"end","font-size":t.value.xyLabelsYFontSize,fill:t.value.color},e.toDisplayString(e.unref(i.applyDataLabel)(t.value.formatter,l.value,e.unref(i.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),9,rl)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.xyShowScale&&t.value.xyPeriods.length?(e.openBlock(),e.createElementBlock("g",il,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(h.value.start,h.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:c.value.drawingArea.left+c.value.slotSize*(r+1)-c.value.slotSize/2,x2:c.value.drawingArea.left+c.value.slotSize*(r+1)-c.value.slotSize/2,y1:c.value.drawingArea.bottom,y2:c.value.drawingArea.bottom+4,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,ul))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(h.value.start,h.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("text",{"font-size":t.value.xyLabelsXFontSize,"text-anchor":t.value.xyPeriodLabelsRotation>0?"start":t.value.xyPeriodLabelsRotation<0?"end":"middle",transform:`translate(${c.value.drawingArea.left+c.value.slotSize*(r+1)-c.value.slotSize/2}, ${c.value.drawingArea.bottom+t.value.xyLabelsXFontSize+6}) rotate(${t.value.xyPeriodLabelsRotation})`,fill:t.value.color},e.toDisplayString(l),9,sl))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",cl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(u,m)=>(e.openBlock(),e.createElementBlock("rect",{x:u.x,width:u.width<=0?1e-5:u.width,height:e.unref(i.checkNaN)(u.height<=0?1e-5:u.height),y:e.unref(i.checkNaN)(u.y),fill:l.color,stroke:t.value.backgroundColor,"stroke-width":t.value.barStrokeWidth,"stroke-linecap":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.barAnimated&&u.value<0})},[t.value.barAnimated&&u.value>0&&!e.unref(oe)&&!e.unref(ne)?(e.openBlock(),e.createElementBlock("animate",{key:0,attributeName:"height",from:0,to:u.height,dur:"0.5s"},null,8,vl)):e.createCommentVNode("",!0),t.value.barAnimated&&u.value>0&&!e.unref(oe)&&!e.unref(ne)?(e.openBlock(),e.createElementBlock("animate",{key:1,attributeName:"y",from:c.value.absoluteZero,to:c.value.absoluteZero-u.height,dur:"0.5s"},null,8,ml)):e.createCommentVNode("",!0)],10,dl))),256))],64))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",hl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(u,m)=>(e.openBlock(),e.createElementBlock("text",{x:u.x+u.width/2,y:e.unref(i.checkNaN)(u.y)-t.value.dataLabelFontSize/2,"text-anchor":"middle","font-size":t.value.dataLabelFontSize,fill:l.color,class:"quick-animation"},e.toDisplayString(e.unref(i.applyDataLabel)(t.value.formatter,e.unref(i.checkNaN)(u.value),e.unref(i.dataLabel)({p:t.value.valuePrefix,v:e.unref(i.checkNaN)(u.value),s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:u,seriesIndex:m})),9,fl))),256))],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",pl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.extremes.maxSeries,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{x:c.value.drawingArea.left+r*c.value.slotSize,y:c.value.drawingArea.top,height:c.value.drawingArea.height<=0?1e-5:c.value.drawingArea.height,width:c.value.slotSize<=0?1e-5:c.value.slotSize,fill:[V.value,F.value].includes(r)?t.value.xyHighlighterColor:"transparent",style:e.normalizeStyle(`opacity:${t.value.xyHighlighterOpacity}`),onMouseenter:u=>c.value.useTooltip(r),onMouseleave:s[2]||(s[2]=u=>c.value.killTooltip()),onClick:u=>q("selectDatapoint",c.value.dataset.map(m=>({...m,value:m.values[r]})))},null,44,kl))),256))])],64)):e.createCommentVNode("",!0),[S.LINE,S.BAR].includes(b.value)?(e.openBlock(),e.createElementBlock("g",gl,[t.value.xAxisLabel&&b.value===S.LINE?(e.openBlock(),e.createElementBlock("g",yl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,"text-anchor":"middle",x:d.value.drawingArea.left+d.value.drawingArea.width/2,y:g.value.height-t.value.axisLabelsFontSize/3},e.toDisplayString(t.value.xAxisLabel),9,xl)])):e.createCommentVNode("",!0),t.value.xAxisLabel&&b.value===S.BAR?(e.openBlock(),e.createElementBlock("g",Sl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,"text-anchor":"middle",x:c.value.drawingArea.left+c.value.drawingArea.width/2,y:g.value.height-t.value.axisLabelsFontSize/3},e.toDisplayString(t.value.xAxisLabel),9,bl)])):e.createCommentVNode("",!0),t.value.yAxisLabel&&b.value===S.LINE?(e.openBlock(),e.createElementBlock("g",Bl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,transform:`translate(${t.value.axisLabelsFontSize}, ${d.value.drawingArea.top+d.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.yAxisLabel),9,wl)])):e.createCommentVNode("",!0),t.value.yAxisLabel&&b.value===S.BAR?(e.openBlock(),e.createElementBlock("g",El,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,transform:`translate(${t.value.axisLabelsFontSize}, ${c.value.drawingArea.top+c.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.yAxisLabel),9,Al)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],12,ut)):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ze.default,{key:5,config:{type:"line",style:{backgroundColor:t.value.backgroundColor,line:{axis:{color:t.value.xyAxisStroke},path:{color:t.value.xyAxisStroke,strokeWidth:.5}}}}},null,8,["config"])),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ll,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(oe)||e.unref(ne)})),void 0,!0)])):e.createCommentVNode("",!0),[S.BAR,S.LINE].includes(b.value)&&t.value.zoomXy&&p.value.maxSeriesLength>1?(e.openBlock(),e.createElementBlock("div",{key:`slicer_${le.value}`,ref_key:"quickChartSlicer",ref:G},[(e.openBlock(),e.createBlock(Ye.Slicer,{ref_key:"slicerComponent",ref:H,key:`slicer_${le.value}`,background:t.value.zoomColor,borderColor:t.value.backgroundColor,fontSize:t.value.zoomFontSize,useResetSlot:t.value.zoomUseResetSlot,labelLeft:t.value.xyPeriods[h.value.start]?t.value.xyPeriods[h.value.start]:"",labelRight:t.value.xyPeriods[h.value.end-1]?t.value.xyPeriods[h.value.end-1]:"",textColor:t.value.color,inputColor:t.value.zoomColor,selectColor:t.value.zoomHighlightColor,max:p.value.maxSeriesLength,min:0,valueStart:h.value.start,valueEnd:h.value.end,smoothMinimap:t.value.zoomMinimap.smooth,minimapSelectedColor:t.value.zoomMinimap.selectedColor,minimapSelectedColorOpacity:t.value.zoomMinimap.selectedColorOpacity,minimapSelectionRadius:t.value.zoomMinimap.selectionRadius,minimapLineColor:t.value.zoomMinimap.lineColor,minimap:je.value,minimapIndicatorColor:t.value.zoomMinimap.indicatorColor,verticalHandles:t.value.zoomMinimap.verticalHandles,minimapSelectedIndex:F.value,start:h.value.start,"onUpdate:start":s[3]||(s[3]=l=>h.value.start=l),end:h.value.end,"onUpdate:end":s[4]||(s[4]=l=>h.value.end=l),refreshStartPoint:t.value.zoomStartIndex!==null?t.value.zoomStartIndex:0,refreshEndPoint:t.value.zoomEndIndex!==null?t.value.zoomEndIndex+1:p.value.maxSeriesLength,enableRangeHandles:t.value.zoomEnableRangeHandles,enableSelectionDrag:t.value.zoomEnableSelectionDrag,onReset:He,onTrapMouse:qe},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(a.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","smoothMinimap","minimapSelectedColor","minimapSelectedColorOpacity","minimapSelectionRadius","minimapLineColor","minimap","minimapIndicatorColor","verticalHandles","minimapSelectedIndex","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"]))])):e.createCommentVNode("",!0),t.value.showLegend?(e.openBlock(),e.createElementBlock("div",{key:8,ref_key:"quickChartLegend",ref:U,class:"vue-ui-quick-chart-legend",style:e.normalizeStyle(`background:transparent;color:${t.value.color}`)},[b.value===S.DONUT?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(w.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:u=>{Ue(l,w.value.dataset),q("selectLegend",l)},style:e.normalizeStyle(`cursor: ${w.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(a.$slots,"legend",e.mergeProps({key:0,ref_for:!0},{legend:l}),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ce.default,{name:t.value.legendIcon,stroke:l.color,size:t.value.legendIconSize},null,8,["name","stroke","size"]),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)},e.toDisplayString(l.name),5),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px;font-variant-numeric:tabular-nums`)},e.toDisplayString(x.value.includes(l.id)?"-":e.unref(i.applyDataLabel)(t.value.formatter,l.absoluteValue,e.unref(i.dataLabel)({p:t.value.valuePrefix,v:l.absoluteValue,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),5),x.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)}," ( - % ) ",4)):ie.value?(e.openBlock(),e.createElementBlock("span",{key:1,style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)}," ( - % ) ",4)):(e.openBlock(),e.createElementBlock("span",{key:2,style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px; font-variant-numeric: tabular-nums;`)}," ("+e.toDisplayString(e.unref(i.dataLabel)({v:l.value/w.value.total*100,s:"%",r:t.value.dataLabelRoundingPercentage}))+") ",5))],64))],12,Cl))),256)):e.createCommentVNode("",!0),b.value===S.LINE?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(d.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:u=>{Ee(l.id,d.value.legend.length-1),q("selectLegend",l)},style:e.normalizeStyle(`cursor: ${d.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(a.$slots,"legend",e.mergeProps({key:0,ref_for:!0},{legend:l}),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ce.default,{name:t.value.legendIcon,stroke:l.color,size:t.value.legendIconSize},null,8,["name","stroke","size"]),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)},e.toDisplayString(l.name),5)],64))],12,_l))),256)):e.createCommentVNode("",!0),b.value===S.BAR?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(c.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:u=>{Ee(l.id,c.value.legend.length-1),q("selectLegend",l)},style:e.normalizeStyle(`cursor: ${c.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(a.$slots,"legend",e.mergeProps({key:0,ref_for:!0},{legend:l}),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ce.default,{name:t.value.legendIcon,stroke:l.color,size:t.value.legendIconSize},null,8,["name","stroke","size"]),e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.legendFontSize}px`)},e.toDisplayString(l.name),5)],64))],12,zl))),256)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:he,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Xe._sfc_main,{show:J.value.showTooltip&&$.value,backgroundColor:t.value.backgroundColor,color:t.value.color,borderRadius:t.value.tooltipBorderRadius,borderColor:t.value.tooltipBorderColor,borderWidth:t.value.tooltipBorderWidth,fontSize:t.value.tooltipFontSize,backgroundOpacity:t.value.tooltipBackgroundOpacity,position:t.value.tooltipPosition,offsetY:t.value.tooltipOffsetY,parent:P.value,content:O.value,isFullscreen:ue.value,isCustom:e.unref(i.isFunction)(t.value.tooltipCustomFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...X.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...X.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"])],46,it)):(e.openBlock(),e.createElementBlock("div",Nl,[e.createVNode(ce.default,{name:"circleCancel",stroke:"red"}),s[8]||(s[8]=e.createElementVNode("span",null,"Dataset is not processable",-1))]))}},Pl=et._export_sfc(Vl,[["__scopeId","data-v-e110140a"]]);exports.default=Pl;
@@ -1,14 +1,14 @@
1
1
  import { ref as L, computed as B, watch as Ne, onMounted as wt, onBeforeUnmount as At, nextTick as Ie, createElementBlock as l, openBlock as a, normalizeStyle as M, normalizeClass as ve, createBlock as Ee, createCommentVNode as f, createVNode as de, unref as g, createSlots as _t, withCtx as X, renderSlot as N, normalizeProps as ae, guardReactiveProps as le, toDisplayString as O, createElementVNode as _, Fragment as m, renderList as $, mergeProps as Fe } from "vue";
2
- import { u as zt, c as Lt, t as $t, p as q, a as Ct, C as nt, b as It, J as Et, e as Pt, d as Ue, m as Ot, D as it, X as Tt, j as Rt, k as Be, n as ke, i as Z, f as D, T as ut, v as Y, x as Pe, y as De } from "./index-gC66Se26.js";
2
+ import { u as zt, c as Lt, t as $t, p as q, a as Ct, C as nt, b as It, J as Et, e as Pt, d as Ue, m as Ot, D as it, X as Tt, j as Rt, k as Be, n as ke, i as Z, f as D, T as ut, v as Y, x as Pe, y as De } from "./index-B_dU_4T8.js";
3
3
  import { t as Mt, u as Nt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import Oe from "./BaseIcon-DqYzMisq.js";
5
- import { _ as Ft } from "./Tooltip-Cr89wMKa.js";
6
- import { u as Ut, U as Bt } from "./usePrinter-KMFl0n0s.js";
7
- import { S as Dt } from "./Slicer-C49MotZz.js";
8
- import Vt from "./vue-ui-skeleton-7Zfds6H1.js";
9
- import { u as rt } from "./useNestedProp-BusTOV-6.js";
10
- import { _ as qt } from "./PackageVersion-39l3KkzC.js";
11
- import { P as Wt } from "./PenAndPaper-CmcfpltX.js";
4
+ import Oe from "./BaseIcon-CdxldTMn.js";
5
+ import { _ as Ft } from "./Tooltip-BWe5TPIJ.js";
6
+ import { u as Ut, U as Bt } from "./usePrinter-CLObTJ4a.js";
7
+ import { S as Dt } from "./Slicer-BtX8p8CI.js";
8
+ import Vt from "./vue-ui-skeleton-CTZKsfWs.js";
9
+ import { u as rt } from "./useNestedProp-7s4Pw7x0.js";
10
+ import { _ as qt } from "./PackageVersion-BZ8-AoE_.js";
11
+ import { _ as Wt } from "./PenAndPaper--_AE7XzJ.js";
12
12
  import { u as Ht } from "./useChartAccessibility-BWojgys7.js";
13
13
  import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const A = {
@@ -1,21 +1,21 @@
1
- import { computed as p, ref as i, watch as He, onMounted as Ye, onBeforeUnmount as Qe, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as W, normalizeClass as M, createBlock as $, createCommentVNode as d, createElementVNode as _, createVNode as ee, createSlots as Je, withCtx as y, renderSlot as f, normalizeProps as N, guardReactiveProps as S, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as xe, nextTick as Ke } from "vue";
2
- import { u as Ze, c as et, t as tt, p as x, a as at, o as ot, e as I, b as lt, g as Ae, d as Oe, Q as Fe, v as rt, i as Ne, f as V, X as st, s as te, w as nt, R as Se, q as ut, r as it, x as ct, y as dt } from "./index-gC66Se26.js";
1
+ import { computed as p, ref as i, watch as He, onMounted as Ye, onBeforeUnmount as Qe, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as W, normalizeClass as M, createBlock as _, createCommentVNode as d, createElementVNode as $, createVNode as ee, createSlots as Je, withCtx as y, renderSlot as f, normalizeProps as N, guardReactiveProps as S, Fragment as T, renderList as P, toDisplayString as U, createTextVNode as xe, nextTick as Ke } from "vue";
2
+ import { u as Ze, c as et, t as tt, p as x, a as at, o as ot, e as I, b as lt, g as Oe, d as Ae, Q as Fe, v as rt, i as Ne, f as V, X as st, s as te, w as nt, R as Se, q as ut, r as it, x as ct, y as dt } from "./index-B_dU_4T8.js";
3
3
  import { t as vt, u as ht } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as pt } from "./Title-Co3F59jq.js";
5
- import { u as gt, U as ft } from "./usePrinter-KMFl0n0s.js";
6
- import { _ as yt } from "./Tooltip-Cr89wMKa.js";
7
- import mt from "./vue-ui-sparkbar-wKlwMCph.js";
8
- import { L as bt } from "./Legend-CmKaL7xe.js";
9
- import { D as kt } from "./DataTable-C_28ZqiP.js";
10
- import Ct from "./vue-ui-skeleton-7Zfds6H1.js";
11
- import wt from "./vue-ui-accordion-j2beIma_.js";
12
- import { u as Ie } from "./useNestedProp-BusTOV-6.js";
13
- import { _ as $t } from "./PackageVersion-39l3KkzC.js";
14
- import { P as _t } from "./PenAndPaper-CmcfpltX.js";
4
+ import { _ as pt } from "./Title-ND4kMErl.js";
5
+ import { u as gt, U as ft } from "./usePrinter-CLObTJ4a.js";
6
+ import { _ as yt } from "./Tooltip-BWe5TPIJ.js";
7
+ import mt from "./vue-ui-sparkbar-DT_G3f_6.js";
8
+ import { L as bt } from "./Legend-B4eIw732.js";
9
+ import { D as kt } from "./DataTable-BFNGlApm.js";
10
+ import Ct from "./vue-ui-skeleton-CTZKsfWs.js";
11
+ import wt from "./vue-ui-accordion-C5dj9Voo.js";
12
+ import { u as Ie } from "./useNestedProp-7s4Pw7x0.js";
13
+ import { _ as _t } from "./PackageVersion-BZ8-AoE_.js";
14
+ import { _ as $t } from "./PenAndPaper--_AE7XzJ.js";
15
15
  import { u as Tt } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { u as Pt } from "./useChartAccessibility-BWojgys7.js";
17
17
  import { _ as xt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["id"], St = ["stop-color"], It = ["stop-color"], Rt = { key: 1 }, Lt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], zt = { key: 0 }, Mt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Vt = { key: 2 }, Et = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Bt = ["points", "stroke", "stroke-width"], Dt = ["points", "stroke", "stroke-width", "fill"], Gt = { key: 3 }, Wt = ["cx", "cy", "fill", "r", "stroke"], Xt = {
18
+ const Ot = ["id"], At = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["id"], St = ["stop-color"], It = ["stop-color"], Rt = { key: 1 }, Lt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], zt = { key: 0 }, Mt = ["d", "stroke", "stroke-width"], Ut = ["d", "stroke", "stroke-width"], Vt = { key: 2 }, Et = ["x", "y", "text-anchor", "font-size", "fill", "onMouseenter"], Bt = ["points", "stroke", "stroke-width"], Dt = ["points", "stroke", "stroke-width", "fill"], Gt = { key: 3 }, Wt = ["cx", "cy", "fill", "r", "stroke"], Xt = {
19
19
  key: 5,
20
20
  class: "vue-data-ui-watermark"
21
21
  }, jt = ["onClick"], qt = {
@@ -116,20 +116,20 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
116
116
  })), u = i({
117
117
  height: 312,
118
118
  width: 512
119
- }), Be = ze, v = i([]), z = i(null), A = i(!1);
119
+ }), Be = ze, v = i([]), z = i(null), O = i(!1);
120
120
  function ke(t) {
121
- A.value = !0, v.value.includes(t) ? (z.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
122
- A.value = !1, z.value = null;
121
+ O.value = !0, v.value.includes(t) ? (z.value = t, v.value = v.value.filter((a) => a !== t), setTimeout(() => {
122
+ O.value = !1, z.value = null;
123
123
  }, 500)) : (v.value.push(t), setTimeout(() => {
124
- A.value = !1;
125
- }, 500)), Be("selectLegend", O.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
124
+ O.value = !1;
125
+ }, 500)), Be("selectLegend", A.value.filter((a, o) => !v.value.includes(o)).map((a) => ({
126
126
  name: a.name,
127
127
  color: a.color,
128
128
  proportion: a.totalProportion
129
129
  })));
130
130
  }
131
131
  function De() {
132
- return O.value.map((t) => ({
132
+ return A.value.map((t) => ({
133
133
  name: t.name,
134
134
  color: t.color,
135
135
  proportion: t.totalProportion
@@ -144,7 +144,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
144
144
  type: "datasetAttributeEmpty",
145
145
  property: "categories"
146
146
  }) : g.dataset.categories.forEach((t, a) => {
147
- Ae({
147
+ Oe({
148
148
  datasetObject: t,
149
149
  requiredAttributes: ["name"]
150
150
  }).forEach((o) => {
@@ -160,7 +160,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
160
160
  type: "datasetAttribute",
161
161
  property: "series ({ name: string; values: number[]; color?: string; target: number}[])"
162
162
  }) : g.dataset.series.forEach((t, a) => {
163
- Ae({
163
+ Oe({
164
164
  datasetObject: t,
165
165
  requiredAttributes: ["name", "values", "target"]
166
166
  }).forEach((o) => {
@@ -175,15 +175,15 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
175
175
  }), g.dataset.categories.map((t, a) => ({
176
176
  name: t.name,
177
177
  categoryId: `radar_category_${w.value}_${a}`,
178
- color: Oe(t.color) || be.value[a] || x[a] || x[a % x.length],
178
+ color: Ae(t.color) || be.value[a] || x[a] || x[a % x.length],
179
179
  prefix: t.prefix ?? "",
180
180
  suffix: t.suffix ?? ""
181
181
  })))), k = p(() => R.value ? g.dataset.series.map((t, a) => ({
182
182
  ...t,
183
- color: Oe(t.color) || be.value[a] || x[a] || x[a % x.length],
183
+ color: Ae(t.color) || be.value[a] || x[a] || x[a % x.length],
184
184
  serieId: `radar_serie_${w.value}_${a}`,
185
185
  formatter: t.formatter || null
186
- })) : []), Ce = p(() => Math.max(...k.value.flatMap((t) => t.values))), we = p(() => k.value.length), H = p(() => Math.min(u.value.width, u.value.height) / 3), $e = p(() => Fe({
186
+ })) : []), Ce = p(() => Math.max(...k.value.flatMap((t) => t.values))), we = p(() => k.value.length), H = p(() => Math.min(u.value.width, u.value.height) / 3), _e = p(() => Fe({
187
187
  plot: { x: u.value.width / 2, y: u.value.height / 2 },
188
188
  radius: H.value,
189
189
  sides: we.value,
@@ -193,7 +193,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
193
193
  for (let a = 0; a < H.value; a += H.value / e.value.style.chart.layout.grid.graduations)
194
194
  t.push(a);
195
195
  return t;
196
- }), C = p(() => $e.value.coordinates.map((t, a) => {
196
+ }), C = p(() => _e.value.coordinates.map((t, a) => {
197
197
  const o = k.value[a].values.map((l) => We({
198
198
  centerX: u.value.width / 2,
199
199
  centerY: u.value.height / 2,
@@ -217,7 +217,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
217
217
  y: a + (l - a) * s
218
218
  };
219
219
  }
220
- const O = p(() => {
220
+ const A = p(() => {
221
221
  const t = k.value.map((a, o) => a.values.map((l) => l / (a.target || Ce.value)));
222
222
  return m.value.map((a, o) => ({
223
223
  ...a,
@@ -238,7 +238,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
238
238
  const t = [
239
239
  { name: e.value.translations.datapoint, color: "" },
240
240
  { name: e.value.translations.target, color: "" },
241
- ...O.value
241
+ ...A.value
242
242
  ], a = g.dataset.series.map((l) => [
243
243
  l.name,
244
244
  Ne(
@@ -316,9 +316,9 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
316
316
  j.value = o;
317
317
  }
318
318
  }
319
- function _e() {
319
+ function $e() {
320
320
  Ke(() => {
321
- const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...O.value.flatMap((h) => [[h.name], ["%"]])], o = g.dataset.series.map((h, Yt) => [h.name, h.target, ...h.values.flatMap((Z) => [
321
+ const t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = [[""], [e.value.translations.target], ...A.value.flatMap((h) => [[h.name], ["%"]])], o = g.dataset.series.map((h, Yt) => [h.name, h.target, ...h.values.flatMap((Z) => [
322
322
  Z,
323
323
  isNaN(Z / h.target) ? "" : Z / h.target * 100
324
324
  ])]), l = t.concat([a]).concat(o), s = ut(l);
@@ -342,7 +342,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
342
342
  return Le({
343
343
  getData: De,
344
344
  generatePdf: ye,
345
- generateCsv: _e,
345
+ generateCsv: $e,
346
346
  generateImage: me,
347
347
  toggleTable: Te,
348
348
  toggleTooltip: Pe,
@@ -356,7 +356,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
356
356
  onMouseenter: a[3] || (a[3] = () => c(ce)(!0)),
357
357
  onMouseleave: a[4] || (a[4] = () => c(ce)(!1))
358
358
  }, [
359
- e.value.userOptions.buttons.annotator ? (r(), $(_t, {
359
+ e.value.userOptions.buttons.annotator ? (r(), _($t, {
360
360
  key: 0,
361
361
  svgRef: c(ve),
362
362
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -377,7 +377,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
377
377
  ref: oe,
378
378
  style: "width:100%;background:transparent;padding-bottom:12px"
379
379
  }, [
380
- (r(), $(pt, {
380
+ (r(), _(pt, {
381
381
  key: `title_${ne.value}`,
382
382
  config: {
383
383
  title: {
@@ -391,7 +391,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
391
391
  }
392
392
  }, null, 8, ["config"]))
393
393
  ], 512)) : d("", !0),
394
- e.value.userOptions.show && R.value && (c(de) || c(q)) ? (r(), $(ft, {
394
+ e.value.userOptions.show && R.value && (c(de) || c(q)) ? (r(), _(ft, {
395
395
  ref_key: "details",
396
396
  ref: Ue,
397
397
  key: `user_options_${ae.value}`,
@@ -415,7 +415,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
415
415
  isAnnotation: G.value,
416
416
  onToggleFullscreen: qe,
417
417
  onGeneratePdf: c(ye),
418
- onGenerateCsv: _e,
418
+ onGenerateCsv: $e,
419
419
  onGenerateImage: c(me),
420
420
  onToggleTable: Te,
421
421
  onToggleTooltip: Pe,
@@ -490,7 +490,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
490
490
  viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
491
491
  style: W(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
492
492
  }, [
493
- ee($t),
493
+ ee(_t),
494
494
  t.$slots["chart-background"] ? (r(), n("foreignObject", {
495
495
  key: 0,
496
496
  x: 0,
@@ -503,7 +503,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
503
503
  }, [
504
504
  f(t.$slots, "chart-background", {}, void 0, !0)
505
505
  ], 8, Ft)) : d("", !0),
506
- _("defs", null, [
506
+ $("defs", null, [
507
507
  (r(!0), n(T, null, P(m.value, (o, l) => (r(), n("radialGradient", {
508
508
  cx: "50%",
509
509
  cy: "50%",
@@ -512,11 +512,11 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
512
512
  fy: "50%",
513
513
  id: `radar_gradient_${w.value}_${l}`
514
514
  }, [
515
- _("stop", {
515
+ $("stop", {
516
516
  offset: "0%",
517
517
  "stop-color": c(te)(c(nt)(o.color, 0.05), e.value.style.chart.layout.dataPolygon.opacity)
518
518
  }, null, 8, St),
519
- _("stop", {
519
+ $("stop", {
520
520
  offset: "100%",
521
521
  "stop-color": c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity)
522
522
  }, null, 8, It)
@@ -545,8 +545,8 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
545
545
  }, null, 8, Mt))), 256))
546
546
  ])) : d("", !0)
547
547
  ])) : d("", !0),
548
- _("path", {
549
- d: $e.value.path,
548
+ $("path", {
549
+ d: _e.value.path,
550
550
  fill: "none",
551
551
  stroke: e.value.style.chart.layout.outerPolygon.stroke,
552
552
  "stroke-width": e.value.style.chart.layout.outerPolygon.strokeWidth,
@@ -567,14 +567,14 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
567
567
  }, U(o.name), 41, Et))), 256))
568
568
  ])) : d("", !0),
569
569
  (r(!0), n(T, null, P(m.value, (o, l) => (r(), n("g", null, [
570
- _("g", null, [
570
+ $("g", null, [
571
571
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
572
572
  key: 0,
573
573
  points: c(Se)(C.value.map((s) => s.plots[l]), !1, !0),
574
574
  stroke: e.value.style.chart.backgroundColor,
575
575
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
576
576
  fill: "none",
577
- class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": A.value && z.value === l && e.value.useCssAnimation })
577
+ class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && z.value === l && e.value.useCssAnimation })
578
578
  }, null, 10, Bt)) : d("", !0),
579
579
  e.value.useCssAnimation || !e.value.useCssAnimation && !v.value.includes(l) ? (r(), n("polygon", {
580
580
  key: 1,
@@ -582,7 +582,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
582
582
  stroke: o.color,
583
583
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
584
584
  fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${w.value}_${l})` : c(te)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
585
- class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": A.value && z.value === l && e.value.useCssAnimation })
585
+ class: M({ "animated-out": v.value.includes(l) && e.value.useCssAnimation, "animated-in": O.value && z.value === l && e.value.useCssAnimation })
586
586
  }, null, 10, Dt)) : d("", !0)
587
587
  ])
588
588
  ]))), 256)),
@@ -595,16 +595,16 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
595
595
  r: D.value !== null && D.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
596
596
  stroke: v.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
597
597
  "stroke-width": 0.5,
598
- class: M({ "animated-out": v.value.includes(h) && e.value.useCssAnimation, "animated-in": A.value && z.value === h && e.value.useCssAnimation })
598
+ class: M({ "animated-out": v.value.includes(h) && e.value.useCssAnimation, "animated-in": O.value && z.value === h && e.value.useCssAnimation })
599
599
  }, null, 10, Wt))), 256))
600
600
  ]))), 256))
601
601
  ])) : d("", !0),
602
602
  f(t.$slots, "svg", { svg: u.value }, void 0, !0)
603
- ], 14, Ot)) : d("", !0),
603
+ ], 14, At)) : d("", !0),
604
604
  t.$slots.watermark ? (r(), n("div", Xt, [
605
605
  f(t.$slots, "watermark", N(S({ isPrinting: c(ge) || c(fe) })), void 0, !0)
606
606
  ])) : d("", !0),
607
- R.value ? d("", !0) : (r(), $(Ct, {
607
+ R.value ? d("", !0) : (r(), _(Ct, {
608
608
  key: 6,
609
609
  config: {
610
610
  type: "radar",
@@ -621,18 +621,18 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
621
621
  }
622
622
  }
623
623
  }, null, 8, ["config"])),
624
- _("div", {
624
+ $("div", {
625
625
  ref_key: "chartLegend",
626
626
  ref: le
627
627
  }, [
628
- e.value.style.chart.legend.show ? (r(), $(bt, {
628
+ e.value.style.chart.legend.show ? (r(), _(bt, {
629
629
  key: `legend_${ie.value}`,
630
- legendSet: O.value,
630
+ legendSet: A.value,
631
631
  config: Xe.value,
632
632
  onClickMarker: a[1] || (a[1] = ({ i: o }) => ke(o))
633
633
  }, {
634
634
  item: y(({ legend: o, index: l }) => [
635
- _("div", {
635
+ $("div", {
636
636
  onClick: (s) => o.segregate(),
637
637
  style: W(`opacity:${v.value.includes(l) ? 0.5 : 1}`)
638
638
  }, U(o.name) + ": " + U(c(V)({
@@ -644,7 +644,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
644
644
  _: 1
645
645
  }, 8, ["legendSet", "config"])) : f(t.$slots, "legend", {
646
646
  key: 1,
647
- legend: O.value
647
+ legend: A.value
648
648
  }, void 0, !0)
649
649
  ], 512),
650
650
  t.$slots.source ? (r(), n("div", {
@@ -686,7 +686,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
686
686
  ]),
687
687
  _: 3
688
688
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
689
- R.value ? (r(), $(wt, {
689
+ R.value ? (r(), _(wt, {
690
690
  key: 8,
691
691
  hideDetails: "",
692
692
  config: {
@@ -703,7 +703,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
703
703
  }
704
704
  }, {
705
705
  content: y(() => [
706
- (r(), $(kt, {
706
+ (r(), _(kt, {
707
707
  key: `table_${ue.value}`,
708
708
  colNames: B.value.colNames,
709
709
  head: B.value.head,
@@ -723,7 +723,7 @@ const At = ["id"], Ot = ["xmlns", "viewBox"], Ft = ["width", "height"], Nt = ["i
723
723
  ]),
724
724
  _: 1
725
725
  }, 8, ["config"])) : d("", !0)
726
- ], 46, At));
726
+ ], 46, Ot));
727
727
  }
728
728
  }, ha = /* @__PURE__ */ xt(Ht, [["__scopeId", "data-v-b6116edd"]]);
729
729
  export {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-HGCbG8YK.cjs"),se=require("./useResponsive-DQmBAoBf.cjs"),Pe=require("./Title-DWFudmma.cjs"),ue=require("./usePrinter-B2PvJuo8.cjs"),_e=require("./Tooltip-DPqJ5wwr.cjs"),$e=require("./vue-ui-sparkbar-CZJ8RFMM.cjs"),Te=require("./Legend-D8qnv865.cjs"),Ne=require("./DataTable-4qcYZrGF.cjs"),xe=require("./vue-ui-skeleton-BBWwBSGZ.cjs"),Se=require("./vue-ui-accordion-CSuxLH7L.cjs"),ie=require("./useNestedProp-O_JTsxQj.cjs"),Ee=require("./PackageVersion-sCi6-fwm.cjs"),Ve=require("./PenAndPaper-DXiYR_ED.cjs"),Oe=require("./useUserOptionState-BgepsfED.cjs"),Fe=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Le=["id"],ze=["xmlns","viewBox"],Ie=["width","height"],Re=["id"],qe=["stop-color"],Me=["stop-color"],Ue={key:1},De=["x1","y1","x2","y2","stroke","stroke-width"],Ge={key:0},We=["d","stroke","stroke-width"],He=["d","stroke","stroke-width"],je={key:2},Xe=["x","y","text-anchor","font-size","fill","onMouseenter"],Ye=["points","stroke","stroke-width"],Je=["points","stroke","stroke-width","fill"],Ke={key:3},Qe=["cx","cy","fill","r","stroke"],Ze={key:5,class:"vue-data-ui-watermark"},et=["onClick"],tt={key:0,style:{"max-width":"200px",margin:"0 auto"}},ot={__name:"vue-ui-radar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(ce,{expose:de,emit:ve}){const{vue_ui_radar:pe}=n.useConfig(),d=ce,b=e.computed(()=>!!d.dataset&&Object.keys(d.dataset).length),f=e.ref(n.createUid()),he=e.ref(null),T=e.ref(!1),N=e.ref(""),L=e.ref(0),C=e.ref(null),z=e.ref(null),I=e.ref(null),R=e.ref(null),q=e.ref(null),M=e.ref(0),U=e.ref(0),D=e.ref(0),t=e.computed({get:()=>j(),set:o=>o}),{userOptionsVisible:x,setUserOptionsVisibility:G,keepUserOptionState:W}=Oe.useUserOptionState({config:t.value}),{svgRef:H}=Fe.useChartAccessibility({config:t.value.style.chart.title});function j(){const o=ie.useNestedProp({userConfig:d.config,defaultConfig:pe});return o.theme?{...ie.useNestedProp({userConfig:n.themes.vue_ui_radar[o.theme]||d.config,defaultConfig:o}),customPalette:n.themePalettes[o.theme]||n.palette}:o}e.watch(()=>d.config,o=>{t.value=j(),x.value=!t.value.userOptions.showOnChartHover,X(),M.value+=1,U.value+=1,D.value+=1,p.value.dataLabels.show=t.value.style.chart.layout.labels.dataLabels.show,p.value.showTable=t.value.table.show,p.value.showTooltip=t.value.style.chart.tootlip.show},{deep:!0});const B=e.ref(null);function X(){if(n.objectIsEmpty(d.dataset)&&n.error({componentName:"VueUiRadar",type:"dataset"}),t.value.responsive){const o=se.throttle(()=>{const{width:a,height:l}=se.useResponsive({chart:C.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?I.value:null,source:R.value,noTitle:q.value});requestAnimationFrame(()=>{u.value.width=a,u.value.height=l})});B.value=new ResizeObserver(o),B.value.observe(C.value.parentNode)}}e.onMounted(()=>{X()}),e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ue.usePrinter({elementId:`vue-ui-radar_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-radar",options:t.value.userOptions.print}),ge=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Z=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),p=e.ref({dataLabels:{show:t.value.style.chart.layout.labels.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),fe=e.computed(()=>({style:{backgroundColor:"#FFFFFF00",animation:{show:t.value.style.chart.tooltip.animation.show,animationFrames:t.value.style.chart.tooltip.animation.animationFrames},labels:{fontSize:t.value.style.chart.tooltip.fontSize,name:{color:t.value.style.chart.tooltip.color}},gutter:{backgroundColor:"#CCCCCC",opacity:30}}})),u=e.ref({height:312,width:512}),me=ve,i=e.ref([]),w=e.ref(null),m=e.ref(!1);function ee(o){m.value=!0,i.value.includes(o)?(w.value=o,i.value=i.value.filter(a=>a!==o),setTimeout(()=>{m.value=!1,w.value=null},500)):(i.value.push(o),setTimeout(()=>{m.value=!1},500)),me("selectLegend",y.value.filter((a,l)=>!i.value.includes(l)).map(a=>({name:a.name,color:a.color,proportion:a.totalProportion})))}function ye(){return y.value.map(o=>({name:o.name,color:o.color,proportion:o.totalProportion}))}const v=e.computed(()=>[null,void 0].includes(d.dataset.categories)?(n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"categories ({ name: string; prefix?: string; suffix?: string}[])"}),[]):(d.dataset.categories.length===0?n.error({componentName:"VueUiRadar",type:"datasetAttributeEmpty",property:"categories"}):d.dataset.categories.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:`category.${l} at index ${a}`,index:a})})}),[null,void 0].includes(d.dataset.series)?n.error({componentName:"VueUiRadar",type:"datasetAttribute",property:"series ({ name: string; values: number[]; color?: string; target: number}[])"}):d.dataset.series.forEach((o,a)=>{n.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values","target"]}).forEach(l=>{n.error({componentName:"VueUiRadar",type:"datasetSerieAttribute",key:"series",property:l,index:a})})}),d.dataset.categories.map((o,a)=>({name:o.name,categoryId:`radar_category_${f.value}_${a}`,color:n.convertColorToHex(o.color)||Z.value[a]||n.palette[a]||n.palette[a%n.palette.length],prefix:o.prefix??"",suffix:o.suffix??""})))),h=e.computed(()=>b.value?d.dataset.series.map((o,a)=>({...o,color:n.convertColorToHex(o.color)||Z.value[a]||n.palette[a]||n.palette[a%n.palette.length],serieId:`radar_serie_${f.value}_${a}`,formatter:o.formatter||null})):[]),te=e.computed(()=>Math.max(...h.value.flatMap(o=>o.values))),oe=e.computed(()=>h.value.length),S=e.computed(()=>Math.min(u.value.width,u.value.height)/3),ae=e.computed(()=>n.createPolygonPath({plot:{x:u.value.width/2,y:u.value.height/2},radius:S.value,sides:oe.value,rotation:0})),ke=e.computed(()=>{const o=[];for(let a=0;a<S.value;a+=S.value/t.value.style.chart.layout.grid.graduations)o.push(a);return o}),g=e.computed(()=>ae.value.coordinates.map((o,a)=>{const l=h.value[a].values.map(r=>be({centerX:u.value.width/2,centerY:u.value.height/2,apexX:o.x,apexY:o.y,proportion:r/(h.value[a].target||te.value)}));return{...o,...h.value[a],plots:l}}));function E({x:o,y:a}){let l="middle";return o=Math.round(o),a=Math.round(a),o>u.value.width/2&&(o+=12,l="start"),o<u.value.width/2&&(o-=12,l="end"),a>u.value.height/2&&(a+=20),a<u.value.height/2&&(a-=12),a===u.value.height/2&&(a+=4),{x:o,y:a,anchor:l}}function be({centerX:o,centerY:a,apexX:l,apexY:r,proportion:s}){return{x:o+(l-o)*s,y:a+(r-a)*s}}const y=e.computed(()=>{const o=h.value.map((a,l)=>a.values.map(r=>r/(a.target||te.value)));return v.value.map((a,l)=>({...a,totalProportion:n.checkNaN(o.map(r=>r[l]).reduce((r,s)=>r+s,0)/h.value.length),shape:"circle",opacity:i.value.includes(l)?.5:1,segregate:()=>ee(l),isSegregated:i.value.includes(l)}))}),Ce=e.computed(()=>({cy:"radar-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":""})),P=e.computed(()=>{const o=[{name:t.value.translations.datapoint,color:""},{name:t.value.translations.target,color:""},...y.value],a=d.dataset.series.map(r=>[r.name,n.applyDataLabel(r.formatter,r.target,n.dataLabel({p:r.prefix,v:r.target,s:r.suffix,r:t.value.table.td.roundingValue})),...r.values.map((s,c)=>`${n.applyDataLabel(r.formatter,s,n.dataLabel({p:v.value[c].prefix,v:s,s:v.value[c].suffix,r:t.value.table.td.roundingValue}))} (${isNaN(s/r.target)?"":n.dataLabel({v:s/r.target*100,s:"%",r: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{head:o,body:a,config:l,colNames:o}}),_=e.ref(null),V=e.ref([]),O=e.ref(null);function we(o,a){V.value=[],_.value=a,T.value=!0;let l="";O.value={datapoint:o,seriesIndex:a,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value};const r=t.value.style.chart.tooltip.customFormat;if(n.isFunction(r)&&n.functionReturnsString(()=>r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value})))N.value=r({seriesIndex:a,datapoint:o,series:{categories:v.value,datapoints:h.value,radar:g.value},config:t.value});else{l+=`<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>`;for(let s=0;s<o.values.length;s+=1)i.value.includes(s)||V.value.push({name:v.value[s].name,value:o.values[s]/o.target*100,color:v.value[s].color,suffix:"%)",prefix:`${n.dataLabel({p:v.value[s].prefix??"",v:o.values[s],s:v.value[s].suffix??"",r:t.value.style.chart.tooltip.roundingValue})} (`,rounding:t.value.style.chart.tooltip.roundingPercentage,formatter:o.formatter});N.value=l}}function le(){e.nextTick(()=>{const o=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],a=[[""],[t.value.translations.target],...y.value.flatMap(c=>[[c.name],["%"]])],l=d.dataset.series.map((c,lt)=>[c.name,c.target,...c.values.flatMap(A=>[A,isNaN(A/c.target)?"":A/c.target*100])]),r=o.concat([a]).concat(l),s=n.createCsvContent(r);n.downloadCsv({csvContent:s,title:t.value.style.chart.title.text||"vue-ui-radar"})})}const k=e.ref(!1);function Be(o){k.value=o,L.value+=1}function re(){p.value.showTable=!p.value.showTable}function ne(){p.value.showTooltip=!p.value.showTooltip}const $=e.ref(!1);function F(){$.value=!$.value}return de({getData:ye,generatePdf:K,generateCsv:le,generateImage:Q,toggleTable:re,toggleTooltip:ne,toggleAnnotator:F}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-radar ${k.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"radarChart",ref:C,id:`vue-ui-radar_${f.value}`,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}`),onMouseenter:a[3]||(a[3]=()=>e.unref(G)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(G)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ve._sfc_main,{key:0,svgRef:e.unref(H),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:F},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ge.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:q,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:12px"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${M.value}`,config:{title:{cy:"radar-div-title",...t.value.style.chart.title},subtitle:{cy:"radar-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(W)||e.unref(x))?(e.openBlock(),e.createBlock(ue.UserOptions,{ref_key:"details",ref:he,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(J),isPrinting:e.unref(Y),uid:f.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,isTooltip:p.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:C.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:Be,onGeneratePdf:e.unref(K),onGenerateCsv:le,onGenerateImage:e.unref(Q),onToggleTable:re,onToggleTooltip:ne,onToggleAnnotator:F,style:e.normalizeStyle({visibility:e.unref(W)?e.unref(x)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:r})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:r})),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.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:H,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.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}`)},[e.createVNode(Ee._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,Ie)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`radar_gradient_${f.value}_${r}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(l.color,.05),t.value.style.chart.layout.dataPolygon.opacity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity)},null,8,Me)],8,Re))),256))]),t.value.style.chart.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,l=>(e.openBlock(),e.createElementBlock("line",{x1:u.value.width/2,y1:u.value.height/2,x2:l.x,y2:l.y,stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,De))),256)),t.value.style.chart.layout.grid.graduations>0?(e.openBlock(),e.createElementBlock("g",Ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ke.value,l=>(e.openBlock(),e.createElementBlock("path",{d:e.unref(n.createPolygonPath)({plot:{x:u.value.width/2,y:u.value.height/2},radius:l,sides:oe.value,rotation:0}).path,fill:"none",stroke:t.value.style.chart.layout.grid.stroke,"stroke-width":t.value.style.chart.layout.grid.strokeWidth},null,8,We))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("path",{d:ae.value.path,fill:"none",stroke:t.value.style.chart.layout.outerPolygon.stroke,"stroke-width":t.value.style.chart.layout.outerPolygon.strokeWidth,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,He),t.value.style.chart.layout.labels.dataLabels.show?(e.openBlock(),e.createElementBlock("g",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:E(l).x,y:E(l).y,"text-anchor":E(l).anchor,"font-size":t.value.style.chart.layout.labels.dataLabels.fontSize,fill:t.value.style.chart.layout.labels.dataLabels.color,onMouseenter:s=>we(l,r),onMouseleave:a[0]||(a[0]=s=>{T.value=!1,_.value=null})},e.toDisplayString(l.name),41,Xe))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("g",null,[t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth+1,fill:"none",class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":m.value&&w.value===r&&t.value.useCssAnimation})},null,10,Ye)):e.createCommentVNode("",!0),t.value.useCssAnimation||!t.value.useCssAnimation&&!i.value.includes(r)?(e.openBlock(),e.createElementBlock("polygon",{key:1,points:e.unref(n.makePath)(g.value.map(s=>s.plots[r]),!1,!0),stroke:l.color,"stroke-width":t.value.style.chart.layout.dataPolygon.strokeWidth,fill:t.value.style.chart.layout.dataPolygon.transparent?"transparent":t.value.style.chart.layout.dataPolygon.useGradient?`url(#radar_gradient_${f.value}_${r})`:e.unref(n.setOpacity)(l.color,t.value.style.chart.layout.dataPolygon.opacity),class:e.normalizeClass({"animated-out":i.value.includes(r)&&t.value.useCssAnimation,"animated-in":m.value&&w.value===r&&t.value.useCssAnimation})},null,10,Je)):e.createCommentVNode("",!0)])]))),256)),t.value.style.chart.layout.plots.show?(e.openBlock(),e.createElementBlock("g",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(s,c)=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:i.value.includes(c)?"transparent":v.value[c].color,r:_.value!==null&&_.value===r?t.value.style.chart.layout.plots.radius*1.6:t.value.style.chart.layout.plots.radius,stroke:i.value.includes(c)?"transparent":t.value.style.chart.backgroundColor,"stroke-width":.5,class:e.normalizeClass({"animated-out":i.value.includes(c)&&t.value.useCssAnimation,"animated-in":m.value&&w.value===c&&t.value.useCssAnimation})},null,10,Qe))),256))]))),256))])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:u.value},void 0,!0)],14,ze)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),b.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(xe.default,{key:6,config:{type:"radar",style:{backgroundColor:t.value.style.chart.backgroundColor,radar:{grid:{color:t.value.style.chart.layout.outerPolygon.stroke},shapes:{color:t.value.style.chart.layout.outerPolygon.stroke}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:I},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Te.Legend,{key:`legend_${D.value}`,legendSet:y.value,config:Ce.value,onClickMarker:a[1]||(a[1]=({i:l})=>ee(l))},{item:e.withCtx(({legend:l,index:r})=>[e.createElementVNode("div",{onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${i.value.includes(r)?.5:1}`)},e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(n.dataLabel)({v:l.totalProportion*100,s:"%",r:t.value.style.chart.legend.roundingPercentage})),13,et)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:y.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:R,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(_e._sfc_main,{show:p.value.showTooltip&&T.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,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,fontSize:t.value.style.chart.tooltip.fontSize,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:C.value,content:N.value,isFullscreen:k.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[["function"].includes(typeof t.value.style.chart.tooltip.customFormat)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode($e.default,{dataset:V.value,config:fe.value,backgroundOpacity:0},null,8,["dataset","config"])])),e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","fontSize","position","offsetY","parent","content","isFullscreen","isCustom"]),b.value?(e.openBlock(),e.createBlock(Se.default,{key:8,hideDetails:"",config:{open:p.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(Ne.DataTable,{key:`table_${U.value}`,colNames:P.value.colNames,head:P.value.head,body:P.value.body,config:P.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>p.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l.name),1)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Le))}},at=Ae._export_sfc(ot,[["__scopeId","data-v-b6116edd"]]);exports.default=at;