vue-data-ui 2.4.41 → 2.4.43

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 (168) hide show
  1. package/README.md +34 -34
  2. package/dist/{Arrow-6z0ZQva_.js → Arrow-BB6bdwAh.js} +1 -1
  3. package/dist/{Arrow-Cht76m69.cjs → Arrow-DGDnIooM.cjs} +1 -1
  4. package/dist/{BaseIcon-DCE3wRiG.js → BaseIcon-Cg6tqk_d.js} +1 -1
  5. package/dist/{BaseIcon-D-JUZiGA.cjs → BaseIcon-Cj2lO-KJ.cjs} +1 -1
  6. package/dist/{DataTable-Cr3Xkxe4.cjs → DataTable-DnaY4y8p.cjs} +1 -1
  7. package/dist/{DataTable-B5DiCrf_.js → DataTable-YQ5lDRtX.js} +2 -2
  8. package/dist/{Legend-DzxQIjDO.js → Legend-3DteuHjj.js} +1 -1
  9. package/dist/{Legend-BXG_XPom.cjs → Legend-BPogA3ac.cjs} +1 -1
  10. package/dist/{PackageVersion-CMtZxTqq.cjs → PackageVersion-CQ9hp4g5.cjs} +1 -1
  11. package/dist/{PackageVersion-S7OD_s5u.js → PackageVersion-CS8EAteX.js} +1 -1
  12. package/dist/{PenAndPaper-DWYhyZye.cjs → PenAndPaper-B1DxKWdn.cjs} +1 -1
  13. package/dist/{PenAndPaper-BxJZd7k9.js → PenAndPaper-D22t_fD9.js} +3 -3
  14. package/dist/{Shape-C3ywBhkW.js → Shape-7VxscoGH.js} +1 -1
  15. package/dist/{Shape-CvL90fNe.cjs → Shape-BIoU-M2b.cjs} +1 -1
  16. package/dist/Slicer-BcXvtaNe.js +423 -0
  17. package/dist/Slicer-C_1pd_Kh.cjs +1 -0
  18. package/dist/{Title-BB0O0yol.js → Title-DQcop8gI.js} +1 -1
  19. package/dist/{Title-D9gPXVTT.cjs → Title-DoxrpVfD.cjs} +1 -1
  20. package/dist/{Tooltip-GvLaModr.js → Tooltip-Dx07vASW.js} +33 -25
  21. package/dist/Tooltip-t5_yWU6c.cjs +1 -0
  22. package/dist/documentation/installation.md +34 -34
  23. package/dist/index-Ce0TFqvS.cjs +9 -0
  24. package/dist/{index-B6Q1Fyk0.js → index-CvhiHStv.js} +48 -42
  25. package/dist/style.css +1 -1
  26. package/dist/types/vue-data-ui.d.cts +6 -0
  27. package/dist/types/vue-data-ui.d.ts +6 -0
  28. package/dist/{useNestedProp-DQpuJSz3.js → useNestedProp-Ccre6tXM.js} +1 -1
  29. package/dist/{useNestedProp-bZitLnbb.cjs → useNestedProp-Dv81zO0o.cjs} +1 -1
  30. package/dist/{usePrinter-D8dIU7aG.js → usePrinter-BVA2_kNp.js} +1 -1
  31. package/dist/{usePrinter-DtpFEgOX.cjs → usePrinter-Dq9TRqqU.cjs} +1 -1
  32. package/dist/{vue-data-ui-H24TWcBx.js → vue-data-ui-CXGGUSE5.js} +60 -60
  33. package/dist/{vue-data-ui-DBN7iJHU.cjs → vue-data-ui-DBaa-Zm-.cjs} +1 -1
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +3 -3
  36. package/dist/{vue-ui-3d-bar-BaNI_M3v.cjs → vue-ui-3d-bar-B0eWYShT.cjs} +1 -1
  37. package/dist/{vue-ui-3d-bar-BA2CQYGW.js → vue-ui-3d-bar-Bvyn0JAH.js} +9 -9
  38. package/dist/{vue-ui-accordion-u4xDSvRn.cjs → vue-ui-accordion-2oBs8M8G.cjs} +1 -1
  39. package/dist/{vue-ui-accordion-BOHicozd.js → vue-ui-accordion-CzsbGsxC.js} +3 -3
  40. package/dist/{vue-ui-age-pyramid-DN25tjv-.cjs → vue-ui-age-pyramid-8dnWY_2V.cjs} +1 -1
  41. package/dist/{vue-ui-age-pyramid-vKWko9vn.js → vue-ui-age-pyramid-gy4b8534.js} +42 -41
  42. package/dist/{vue-ui-annotator-D4KNucw5.js → vue-ui-annotator-BOxVmY-t.js} +1 -1
  43. package/dist/{vue-ui-annotator-BcxUQ5tM.cjs → vue-ui-annotator-D4AFe-ds.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-DZgtd_qb.js → vue-ui-bullet-CYRzrrdq.js} +15 -15
  45. package/dist/{vue-ui-bullet-C3DKTZbg.cjs → vue-ui-bullet-DS61aLmi.cjs} +1 -1
  46. package/dist/vue-ui-candlestick-CnMW4VI7.cjs +2 -0
  47. package/dist/vue-ui-candlestick-z1XCCmjs.js +740 -0
  48. package/dist/{vue-ui-carousel-table-Bpsrlbx9.js → vue-ui-carousel-table-Dusdq9C-.js} +4 -4
  49. package/dist/{vue-ui-carousel-table-C62szGjt.cjs → vue-ui-carousel-table-STfjKv04.cjs} +1 -1
  50. package/dist/{vue-ui-chestnut-VWwSZnUX.cjs → vue-ui-chestnut-CiOs7_Mn.cjs} +1 -1
  51. package/dist/{vue-ui-chestnut-DhPSNM96.js → vue-ui-chestnut-xOUxz__4.js} +8 -8
  52. package/dist/{vue-ui-cursor-BM2OiZnZ.js → vue-ui-cursor-BAZcn7gS.js} +2 -2
  53. package/dist/{vue-ui-cursor-BwnZYB4D.cjs → vue-ui-cursor-CgulNaZF.cjs} +1 -1
  54. package/dist/{vue-ui-dashboard-D8FU1GbE.cjs → vue-ui-dashboard-B-e6E048.cjs} +1 -1
  55. package/dist/{vue-ui-dashboard-BcnW7vDs.js → vue-ui-dashboard-CM5h0sJK.js} +2 -2
  56. package/dist/{vue-ui-digits-BmQBwho3.cjs → vue-ui-digits-DE-VUfnq.cjs} +1 -1
  57. package/dist/{vue-ui-digits-M4Pvrg0n.js → vue-ui-digits-DFYtiFpE.js} +2 -2
  58. package/dist/{vue-ui-donut-BgsQjURe.js → vue-ui-donut-B7WCvZ9X.js} +99 -98
  59. package/dist/{vue-ui-donut-CZZfvbPk.cjs → vue-ui-donut-Dh1MEQSX.cjs} +1 -1
  60. package/dist/vue-ui-donut-evolution-E8YRIlka.cjs +1 -0
  61. package/dist/vue-ui-donut-evolution-tseD-zkG.js +908 -0
  62. package/dist/{vue-ui-dumbbell-zv7yiPPM.js → vue-ui-dumbbell-CB-nTGSr.js} +10 -10
  63. package/dist/{vue-ui-dumbbell-CsMqgiGr.cjs → vue-ui-dumbbell-DoajPALb.cjs} +1 -1
  64. package/dist/{vue-ui-flow-E5MkZ3Yb.cjs → vue-ui-flow-DZo1e2BI.cjs} +1 -1
  65. package/dist/{vue-ui-flow-BqtIWBkz.js → vue-ui-flow-DgM7D7Kz.js} +46 -46
  66. package/dist/{vue-ui-funnel-CmVLAttG.js → vue-ui-funnel-Bae7zmv7.js} +19 -19
  67. package/dist/{vue-ui-funnel-QU0_JscL.cjs → vue-ui-funnel-FwQya4Js.cjs} +1 -1
  68. package/dist/{vue-ui-galaxy-BPDH-9KW.cjs → vue-ui-galaxy-BmQPNy0t.cjs} +1 -1
  69. package/dist/{vue-ui-galaxy-sy8zvgcg.js → vue-ui-galaxy-C1hMuu_6.js} +53 -52
  70. package/dist/{vue-ui-gauge-D_yokJMS.cjs → vue-ui-gauge-4Gy_NFvq.cjs} +1 -1
  71. package/dist/{vue-ui-gauge--hARSvgz.js → vue-ui-gauge-CvUdCkBJ.js} +7 -7
  72. package/dist/{vue-ui-gizmo-CvTeq5j0.js → vue-ui-gizmo-B6t4exHM.js} +3 -3
  73. package/dist/{vue-ui-gizmo-AUJq3EQL.cjs → vue-ui-gizmo-F0ACp4Ym.cjs} +1 -1
  74. package/dist/{vue-ui-heatmap-lI8oO-nh.js → vue-ui-heatmap-CNptUmPc.js} +60 -59
  75. package/dist/{vue-ui-heatmap-D-xNLuqW.cjs → vue-ui-heatmap-DeLrr3m8.cjs} +1 -1
  76. package/dist/{vue-ui-history-plot-D3CwJpll.js → vue-ui-history-plot-DnVFjg0P.js} +60 -59
  77. package/dist/{vue-ui-history-plot-BC0Rvo-r.cjs → vue-ui-history-plot-iK6KKQTl.cjs} +1 -1
  78. package/dist/{vue-ui-kpi-C0agq-Os.js → vue-ui-kpi-BIb8GWpr.js} +3 -3
  79. package/dist/{vue-ui-kpi-B4FQKZ_r.cjs → vue-ui-kpi-BOLWEQ7j.cjs} +1 -1
  80. package/dist/{vue-ui-mini-loader-BJ70GAEv.cjs → vue-ui-mini-loader-dzvCTPe_.cjs} +1 -1
  81. package/dist/{vue-ui-mini-loader-CkjJ5pRO.js → vue-ui-mini-loader-vn8l58Co.js} +2 -2
  82. package/dist/{vue-ui-molecule-V9UFJHeV.js → vue-ui-molecule-BXVfvrYp.js} +26 -25
  83. package/dist/{vue-ui-molecule-CsQfkIEE.cjs → vue-ui-molecule-CztdOxnV.cjs} +1 -1
  84. package/dist/{vue-ui-mood-radar-CdU2vusL.cjs → vue-ui-mood-radar-COiSqYpY.cjs} +1 -1
  85. package/dist/{vue-ui-mood-radar-Cj_wOEbY.js → vue-ui-mood-radar-FyUqJ_WI.js} +11 -11
  86. package/dist/{vue-ui-nested-donuts-DFVQwbHg.js → vue-ui-nested-donuts-C3mVKHnx.js} +78 -77
  87. package/dist/{vue-ui-nested-donuts-DevV-xZr.cjs → vue-ui-nested-donuts-CyzGIcRn.cjs} +2 -2
  88. package/dist/{vue-ui-onion-BJ-PjA7d.js → vue-ui-onion-C3uZpdTX.js} +49 -48
  89. package/dist/{vue-ui-onion-DGWktnME.cjs → vue-ui-onion-PCbFeTBq.cjs} +2 -2
  90. package/dist/{vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs → vue-ui-parallel-coordinate-plot-BbyG3T_L.cjs} +3 -3
  91. package/dist/{vue-ui-parallel-coordinate-plot-33naX1Ss.js → vue-ui-parallel-coordinate-plot-_nN05_KZ.js} +70 -69
  92. package/dist/{vue-ui-quadrant-xJaZzXgo.js → vue-ui-quadrant-CqcqhOTk.js} +55 -54
  93. package/dist/{vue-ui-quadrant-DqZqBb2L.cjs → vue-ui-quadrant-D48AnGwm.cjs} +1 -1
  94. package/dist/vue-ui-quick-chart-CUG-kf3L.cjs +15 -0
  95. package/dist/{vue-ui-quick-chart-BwN9eLye.js → vue-ui-quick-chart-CvhtEA16.js} +637 -622
  96. package/dist/{vue-ui-radar-CQ66YUG5.cjs → vue-ui-radar-CKq_4-3B.cjs} +1 -1
  97. package/dist/{vue-ui-radar-B4EXwJDY.js → vue-ui-radar-o4cmO82a.js} +38 -37
  98. package/dist/{vue-ui-rating-DNkygw1i.js → vue-ui-rating-CuBodH3C.js} +2 -2
  99. package/dist/{vue-ui-rating-D334I4ju.cjs → vue-ui-rating-DG1svxO9.cjs} +1 -1
  100. package/dist/{vue-ui-relation-circle-CP2Z6IWV.cjs → vue-ui-relation-circle-AXwyCjxM.cjs} +1 -1
  101. package/dist/{vue-ui-relation-circle-BKeSh28h.js → vue-ui-relation-circle-C--j7Q0q.js} +19 -19
  102. package/dist/{vue-ui-rings-D6M3UNSE.js → vue-ui-rings-DpVKPZCb.js} +49 -48
  103. package/dist/vue-ui-rings-fAvuiSZU.cjs +2 -0
  104. package/dist/{vue-ui-scatter-C9ZoWV1q.cjs → vue-ui-scatter-CHY2sxci.cjs} +1 -1
  105. package/dist/{vue-ui-scatter-JUPbbsO7.js → vue-ui-scatter-D_KsmIg_.js} +26 -25
  106. package/dist/{vue-ui-screenshot-JMBX_AWn.cjs → vue-ui-screenshot-Baj16IKL.cjs} +1 -1
  107. package/dist/{vue-ui-screenshot-DmLDHfF9.js → vue-ui-screenshot-C21qDF26.js} +1 -1
  108. package/dist/{vue-ui-skeleton-E9_X0-sa.cjs → vue-ui-skeleton-BdbO4Bxt.cjs} +1 -1
  109. package/dist/{vue-ui-skeleton-D7rg5vFC.js → vue-ui-skeleton-p82n8dLi.js} +3 -3
  110. package/dist/{vue-ui-smiley-BAlHZm8H.js → vue-ui-smiley-DDBn_kg-.js} +2 -2
  111. package/dist/{vue-ui-smiley-aRTznf8z.cjs → vue-ui-smiley-DGdo7pOJ.cjs} +1 -1
  112. package/dist/{vue-ui-spark-trend-J9swikF_.js → vue-ui-spark-trend-CM-XDvvj.js} +5 -5
  113. package/dist/{vue-ui-spark-trend-DZR6Fqu5.cjs → vue-ui-spark-trend-CyiYuOb3.cjs} +1 -1
  114. package/dist/{vue-ui-sparkbar-B0tCpwZ9.js → vue-ui-sparkbar-BRWlzT5P.js} +4 -4
  115. package/dist/{vue-ui-sparkbar-Bjmi8pMf.cjs → vue-ui-sparkbar-Bi952P46.cjs} +1 -1
  116. package/dist/{vue-ui-sparkgauge-DVX2pIC3.js → vue-ui-sparkgauge-BPcFMY0I.js} +4 -4
  117. package/dist/{vue-ui-sparkgauge-Dhzbkn67.cjs → vue-ui-sparkgauge-bhzDdT-A.cjs} +1 -1
  118. package/dist/{vue-ui-sparkhistogram-gIaXDrFh.cjs → vue-ui-sparkhistogram-BdiA32Fs.cjs} +1 -1
  119. package/dist/{vue-ui-sparkhistogram-Wd6q0mqj.js → vue-ui-sparkhistogram-DAtbloqL.js} +5 -5
  120. package/dist/{vue-ui-sparkline-B5ySeM9y.cjs → vue-ui-sparkline-BXa0bOgm.cjs} +1 -1
  121. package/dist/{vue-ui-sparkline-DYT-gts9.js → vue-ui-sparkline-CbnPVyxs.js} +4 -4
  122. package/dist/{vue-ui-sparkstackbar-ilvB3RBv.cjs → vue-ui-sparkstackbar-BDupdTEm.cjs} +1 -1
  123. package/dist/{vue-ui-sparkstackbar-BMGA05VR.js → vue-ui-sparkstackbar-BdjWWadM.js} +5 -5
  124. package/dist/vue-ui-stackbar-CUXctt_2.js +1026 -0
  125. package/dist/vue-ui-stackbar-DvIG4zyP.cjs +6 -0
  126. package/dist/{vue-ui-strip-plot-DPo7osh_.cjs → vue-ui-strip-plot-C5r83jmv.cjs} +1 -1
  127. package/dist/{vue-ui-strip-plot-B-r4luYX.js → vue-ui-strip-plot-lb-y68Hd.js} +71 -70
  128. package/dist/{vue-ui-table-wlXHwJVW.js → vue-ui-table-DFfsqpZU.js} +1 -1
  129. package/dist/{vue-ui-table-C6z56ODT.cjs → vue-ui-table-DgCMMvSx.cjs} +1 -1
  130. package/dist/{vue-ui-table-heatmap-CM-c7n0F.js → vue-ui-table-heatmap-BiSTfmrM.js} +9 -9
  131. package/dist/{vue-ui-table-heatmap-B05GifSw.cjs → vue-ui-table-heatmap-jp5xDCCO.cjs} +1 -1
  132. package/dist/{vue-ui-table-sparkline-Dx-ePVqW.cjs → vue-ui-table-sparkline-8itAuNdX.cjs} +1 -1
  133. package/dist/{vue-ui-table-sparkline-DHaEHFG_.js → vue-ui-table-sparkline-B7sNio6G.js} +5 -5
  134. package/dist/{vue-ui-thermometer-HCpOZBHv.cjs → vue-ui-thermometer-CsY6PZxF.cjs} +1 -1
  135. package/dist/{vue-ui-thermometer-BU_ckSdu.js → vue-ui-thermometer-Cvoq-NoB.js} +7 -7
  136. package/dist/{vue-ui-timer-CUChwyzF.cjs → vue-ui-timer-BBYru0Q7.cjs} +1 -1
  137. package/dist/{vue-ui-timer-DiRZ849L.js → vue-ui-timer-CKkmEEyh.js} +9 -9
  138. package/dist/{vue-ui-tiremarks-yoQtfbj7.cjs → vue-ui-tiremarks-CJyRAXGr.cjs} +1 -1
  139. package/dist/{vue-ui-tiremarks-BHMNb_tq.js → vue-ui-tiremarks-CVDQcr2f.js} +7 -7
  140. package/dist/{vue-ui-treemap-BInwLSes.cjs → vue-ui-treemap-BKA7MrUz.cjs} +1 -1
  141. package/dist/{vue-ui-treemap-BpD6OdL3.js → vue-ui-treemap-BLDOoQdk.js} +98 -97
  142. package/dist/{vue-ui-vertical-bar-hS4gzdKs.cjs → vue-ui-vertical-bar-BNZ-jiBi.cjs} +2 -2
  143. package/dist/{vue-ui-vertical-bar-CBNWMmCg.js → vue-ui-vertical-bar-DgluCuy7.js} +58 -57
  144. package/dist/{vue-ui-waffle-Cmq6zhD8.cjs → vue-ui-waffle-COGvHmU8.cjs} +1 -1
  145. package/dist/{vue-ui-waffle-BE8iTrGF.js → vue-ui-waffle-DOZ8DM_y.js} +79 -78
  146. package/dist/{vue-ui-wheel-BXSIBRLM.js → vue-ui-wheel-BiHGxIWR.js} +7 -7
  147. package/dist/{vue-ui-wheel-BT0mLxln.cjs → vue-ui-wheel-DrhwR-Z-.cjs} +1 -1
  148. package/dist/{vue-ui-word-cloud-3wvSYRbp.js → vue-ui-word-cloud-CEfsjt8Y.js} +10 -10
  149. package/dist/{vue-ui-word-cloud-BXHlm41O.cjs → vue-ui-word-cloud-ClzpBDxZ.cjs} +1 -1
  150. package/dist/{vue-ui-xy-D8XvOgW6.js → vue-ui-xy-BU03SArU.js} +888 -837
  151. package/dist/vue-ui-xy-CO99Ia72.cjs +3 -0
  152. package/dist/{vue-ui-xy-canvas-Cx7vPyfT.js → vue-ui-xy-canvas-D6xrOdYB.js} +378 -365
  153. package/dist/vue-ui-xy-canvas-lOb9PCZm.cjs +9 -0
  154. package/package.json +1 -1
  155. package/dist/Slicer-B2aHb4bj.cjs +0 -1
  156. package/dist/Slicer-D9ASV60L.js +0 -400
  157. package/dist/Tooltip-ypQtmi99.cjs +0 -1
  158. package/dist/index-B5Ugkauv.cjs +0 -9
  159. package/dist/vue-ui-candlestick-C8yBMu8-.js +0 -725
  160. package/dist/vue-ui-candlestick-DVEofXBZ.cjs +0 -2
  161. package/dist/vue-ui-donut-evolution-BO2-ARBX.js +0 -895
  162. package/dist/vue-ui-donut-evolution-DP14ctdf.cjs +0 -1
  163. package/dist/vue-ui-quick-chart-BzpXJYR_.cjs +0 -15
  164. package/dist/vue-ui-rings-2oDSTctd.cjs +0 -2
  165. package/dist/vue-ui-stackbar-BZKwsAjO.cjs +0 -6
  166. package/dist/vue-ui-stackbar-BZbOagnf.js +0 -947
  167. package/dist/vue-ui-xy-CfduqTWA.cjs +0 -3
  168. package/dist/vue-ui-xy-canvas-BTR-cL02.cjs +0 -9
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-Ce0TFqvS.cjs"),Ae=require("./useResponsive-BJ7DTGpm.cjs"),ue=require("./BaseIcon-Cj2lO-KJ.cjs"),qe=require("./Tooltip-t5_yWU6c.cjs"),Le=require("./usePrinter-Dq9TRqqU.cjs"),We=require("./Slicer-C_1pd_Kh.cjs"),je=require("./vue-ui-skeleton-BdbO4Bxt.cjs"),_e=require("./useNestedProp-Dv81zO0o.cjs"),Ge=require("./PackageVersion-CQ9hp4g5.cjs"),He=require("./PenAndPaper-B1DxKWdn.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={LINE:"LINE",BAR:"BAR",DONUT:"DONUT"},Ye=["SERIE","SERIES","DATA","VALUE","VALUES","NUM"];function Ze({dataset:c,barLineSwitch:w=6}){let f=null,b=null,N=0;if((typeof c=="number"||typeof c=="string")&&console.warn(`The provided dataset (${c}) is not sufficient to build a chart`),K(c)&&($(c)&&(c.length<w?f=S.BAR:f=S.LINE,b=c,N=c.length),se(c))){if(!Qe(c))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(c[0]),G=Object.values(c[0]);if(!U.some(A=>Ke(A)))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;ze(G,A=>typeof A=="number")&&(f=S.DONUT,b=c),ze(G,A=>Array.isArray(A)&&$(A))&&(Ce(c)>w?f=S.LINE:f=S.BAR,N=Ce(c),b=c.map(A=>({...A,data:et(A,P=>$(P))}))),c=c.map(A=>Ne(A)),b=b.map(A=>Ne(A))}return K(c)&&[...new Set(c.flatMap(U=>Array.isArray(U)))][0],{dataset:c,type:f,usableDataset:b,maxSeriesLength:N}}function Ve(c){return!c||K(c)&&!c.length}function K(c){return Array.isArray(c)}function $(c){if(!K(c)||Ve(c))return!1;const w=c.map(f=>Number(f));return![...new Set(w.flatMap(f=>typeof f=="number"&&!isNaN(f)))].includes(!1)}function se(c){return!K(c)||Ve(c)||!![...new Set(c.flatMap(f=>typeof f=="object"&&!Array.isArray(f)))].includes(!1)?!1:!c.map(f=>Object.keys(f).length>0).includes(!1)}function Je(c,w){const f=Object.keys(c).sort(),b=Object.keys(w).sort();if(f.length!==b.length)return!1;for(let N=0;N<f.length;N+=1){const V=f[N],M=b[N];if(V!==M||typeof c[V]!=typeof w[M])return!1}return!0}function Qe(c){if(c.length<=1)return!0;for(let w=0;w<c.length;w+=1)for(let f=w+1;f<c.length;f+=1)if(!Je(c[w],c[f]))return!1;return!0}function Ke(c){return Ye.includes(c.toUpperCase())}function ze(c,w){let f=[];for(let b=0;b<c.length;b+=1)f.push(w(c[b]));return f.includes(!0)}function Ce(c){return Math.max(...[...c].flatMap(w=>Object.values(w).filter(f=>$(f)).map(f=>f.length)))}function et(c,w){return Object.values(c).filter(f=>w(f))[0]}function Ne(c){const w={};for(let f in c)c.hasOwnProperty(f)&&(w[f.toUpperCase()]=c[f]);return w}const Fe=c=>(e.pushScopeId("data-v-7c8df607"),c=c(),e.popScopeId(),c),tt=["id"],lt=["xmlns","viewBox"],at=["id"],ot=["id"],nt=Fe(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),rt=["id"],it=["flood-color"],ut={key:0,class:"donut-label-connectors"},st=["d","stroke","stroke-width","filter"],ct=["cx","cy","r","fill","filter"],dt={class:"donut"},vt=["d","fill","stroke","stroke-width","filter"],mt=["d","onMouseenter","onClick"],ft={key:1,class:"donut-labels quick-animation"},ht=["cx","cy","fill","stroke","filter"],pt=["text-anchor","x","y","fill","font-size","filter"],kt=["text-anchor","x","y","fill","font-size","filter"],gt={key:2,class:"donut-hollow quick-animation"},yt=["x","y","font-size","fill"],xt=["x","y","font-size","fill"],St={key:0,class:"line-grid"},bt=["x1","x2","y1","y2","stroke","stroke-width"],Bt=["x1","x2","y1","y2","stroke","stroke-width"],wt={key:1,class:"line-axis"},Et=["x1","x2","y1","y2","stroke","stroke-width"],At=["x1","x2","y1","y2","stroke","stroke-width"],Lt={key:2,class:"yLabels"},_t=["x1","x2","y1","y2","stroke","stroke-width"],zt=["x","y","font-size","fill"],Ct={key:3,class:"periodLabels"},Nt=["x1","x2","y1","y2","stroke","stroke-width"],Vt=["font-size","text-anchor","fill","transform"],Ft={class:"plots"},Pt={class:"line-plot-series"},$t=["d","stroke","stroke-width"],It=["d","stroke","stroke-width"],Tt=["d","stroke","stroke-width"],Rt=["d","stroke","stroke-width"],Ot=["cx","cy","fill","stroke"],Dt={key:4,class:"dataLabels"},Mt=["font-size","fill","x","y"],Ut={class:"tooltip-traps"},qt=["x","y","height","width","fill","onMouseenter","onClick"],Wt={key:0,class:"line-grid"},jt=["x1","x2","y1","y2","stroke","stroke-width"],Gt=["x1","x2","y1","y2","stroke","stroke-width"],Ht={key:1,class:"line-axis"},Xt=["x1","x2","y1","y2","stroke","stroke-width"],Yt=["x1","x2","y1","y2","stroke","stroke-width"],Zt={key:2,class:"yLabels"},Jt=["x1","x2","y1","y2","stroke","stroke-width"],Qt=["x","y","font-size","fill"],Kt={key:3,class:"periodLabels"},el=["x1","x2","y1","y2","stroke","stroke-width"],tl=["font-size","text-anchor","transform","fill"],ll={class:"plots"},al=["x","width","height","y","fill","stroke","stroke-width"],ol=["to"],nl=["from","to"],rl={key:4,class:"dataLabels"},il=["x","y","font-size","fill"],ul={class:"tooltip-traps"},sl=["x","y","height","width","fill","onMouseenter","onClick"],cl={key:3,class:"axis-labels"},dl={key:0},vl=["font-size","fill","x","y"],ml={key:1},fl=["font-size","fill","x","y"],hl={key:2},pl=["font-size","fill","transform"],kl={key:3},gl=["font-size","fill","transform"],yl={key:6,class:"vue-data-ui-watermark"},xl=["onClick"],Sl=["onClick"],bl=["onClick"],Bl={key:1,class:"vue-ui-quick-chart-not-processable"},wl=Fe(()=>e.createElementVNode("span",null,"Dataset is not processable",-1)),El={__name:"vue-ui-quick-chart",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,Object,String,Number],default(){return null}}},emits:["selectDatapoint","selectLegend"],setup(c,{expose:w,emit:f}){const b=c,{vue_ui_quick_chart:N}=u.useConfig(),V=e.ref(null),M=e.ref(null),U=e.ref(null),G=e.ref(null),A=e.ref(u.createUid()),P=e.ref(!1),H=e.ref(null),T=e.ref(""),F=e.ref(null),ve=e.ref(null),me=e.ref(null),x=e.ref([]),fe=e.ref(0),ee=e.ref(0),t=e.computed({get:()=>he(),set:n=>n});function he(){const n=_e.useNestedProp({userConfig:b.config,defaultConfig:N});let s={};return n.theme?s={..._e.useNestedProp({userConfig:u.themes.vue_ui_quick_chart[n.theme]||b.config,defaultConfig:n}),customPalette:u.themePalettes[n.theme]||u.palette}:s=n,b.config&&u.hasDeepProperty(b.config,"zoomStartIndex")?s.zoomStartIndex=b.config.zoomStartIndex:s.zoomStartIndex=null,b.config&&u.hasDeepProperty(b.config,"zoomEndIndex")?s.zoomEndIndex=b.config.zoomEndIndex:s.zoomEndIndex=null,s}e.watch(()=>b.config,n=>{t.value=he(),y.value.width=t.value.width,y.value.height=t.value.height,ge()},{deep:!0}),e.watch(()=>b.dataset,n=>{h.value=Y.value,k.value.start=0,k.value.end=h.value.maxSeriesLength,ee.value+=1},{deep:!0});const X=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),Y=e.computed(()=>{const n=Ze({dataset:u.sanitizeArray(b.dataset,["serie","series","data","value","values","num"]),barLineSwitch:t.value.chartIsBarUnderDatasetLength});return n||console.error("VueUiQuickChart : Dataset is not processable"),n}),h=e.ref(Y.value),Pe=e.computed(()=>!!h.value),B=e.computed(()=>h.value?h.value.type:null);e.watch(()=>B.value,n=>{n||u.error({componentName:"VueUiQuickChart",type:"dataset"})},{immediate:!0});const{isPrinting:te,isImaging:le,generatePdf:pe,generateImage:ke}=Le.usePrinter({elementId:`${B.value}_${A.value}`,fileName:t.value.title||B.value}),$e=e.computed(()=>t.value.showUserOptions&&!t.value.title),y=e.ref({width:t.value.width,height:t.value.height}),ae=e.ref({showTooltip:t.value.showTooltip}),oe=e.ref(null);e.onMounted(()=>{ge()});function ge(){if(t.value.responsive){const n=Ae.throttle(()=>{const{width:s,height:l}=Ae.useResponsive({chart:V.value,title:t.value.title?M.value:null,legend:t.value.showLegend?U.value:null,slicer:[S.BAR,S.LINE].includes(B.value)&&t.value.zoomXy&&h.value.maxSeriesLength>1?G.value:null,source:ve.value,noTitle:me.value});y.value.width=s,y.value.height=l});oe.value=new ResizeObserver(n),oe.value.observe(V.value.parentNode)}we()}e.onBeforeUnmount(()=>{oe.value&&oe.value.disconnect()});const Ie=e.computed(()=>{switch(B.value){case S.LINE:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;case S.BAR:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;case S.DONUT:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`;default:return`0 0 ${y.value.width<=0?10:y.value.width} ${y.value.height<=0?10:y.value.height}`}});function ye(n){return[...n].map(s=>s.value).reduce((s,l)=>s+l,0)}function Z(n){return t.value.blurOnHover&&![null,void 0].includes(F.value)&&F.value!==n?`url(#blur_${A.value})`:""}function xe(n,s){x.value.includes(n)?x.value=x.value.filter(l=>l!==n):x.value.length<s&&x.value.push(n)}const Se=e.ref(null),be=e.ref(null),ne=e.ref(!1);function Te(n,s){ne.value=!0;let l=n.value;if(x.value.includes(n.id)){let i=function(){l>r?(ne.value=!1,cancelAnimationFrame(be.value),h.value={...h.value,dataset:h.value.dataset.map((m,_)=>n.id===`donut_${_}`?{...m,value:r,VALUE:r}:m)}):(l+=r*.025,h.value={...h.value,dataset:h.value.dataset.map((m,_)=>n.id===`donut_${_}`?{...m,value:l,VALUE:l}:m)},be.value=requestAnimationFrame(i))};x.value=x.value.filter(m=>m!==n.id);const r=Y.value.dataset.find((m,_)=>n.id===`donut_${_}`).VALUE;i()}else if(s.length>1){let r=function(){l<.1?(ne.value=!1,cancelAnimationFrame(Se.value),x.value.push(n.id),h.value={...h.value,dataset:h.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:0,VALUE:0}:i)}):(l/=1.1,h.value={...h.value,dataset:h.value.dataset.map((i,m)=>n.id===`donut_${m}`?{...i,value:l,VALUE:l}:i)},Se.value=requestAnimationFrame(r))};r()}}const I=e.ref(null);function Re(n){I.value=n}const Be=e.computed(()=>t.value.donutThicknessRatio<.15?.15:t.value.donutThicknessRatio>.4?.4:t.value.donutThicknessRatio),E=e.computed(()=>{if(B.value!==S.DONUT)return null;const n=h.value.dataset.map((a,o)=>({...a,value:a.VALUE||a.DATA||a.SERIE||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`donut_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):X.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],immutableValue:a.value}));function s(a,o){return u.dataLabel({v:isNaN(a.value/ye(o))?0:a.value/ye(o)*100,s:"%",r:t.value.dataLabelRoundingPercentage})}function l(a){return a.proportion*100>t.value.donutHideLabelUnderPercentage}function r(a,o){const g=Y.value.dataset.find((L,z)=>`donut_${z}`===a).VALUE;return Math.abs(String(Number(g.toFixed(0))).length-String(Number(o.toFixed(0))).length)}function i({datapoint:a,seriesIndex:o}){H.value={datapoint:a,seriesIndex:o,config:t.value,dataset:n},F.value=a.id;const g=t.value.tooltipCustomFormat;if(u.isFunction(g)&&u.functionReturnsString(()=>g({datapoint:a,seriesIndex:o,series:n,config:t.value})))T.value=g({datapoint:a,seriesIndex:o,series:n,config:t.value});else{let p="";p+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${a.name}</div>`,p+=`<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="${a.color}"/></svg>`,p+=`<b>${u.applyDataLabel(t.value.formatter,a.value,u.dataLabel({p:t.value.valuePrefix,v:a.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:a,seriesIndex:o})}</b>`,p+=`<span>(${u.dataLabel({v:a.proportion*100,s:"%",r:t.value.dataLabelRoundingPercentage})})</span></div>`,T.value=`<div>${p}</div>`}P.value=!0}function m(){P.value=!1,F.value=null,I.value=null}const _={centerX:y.value.width/2,centerY:y.value.height/2},C=n.filter(a=>!x.value.includes(a.id)).map(a=>a.value||0).reduce((a,o)=>a+o,0),W=n.map((a,o)=>({...a,proportion:(a.value||0)/C,value:a.value||0,absoluteValue:Y.value.dataset.find((g,p)=>`donut_${p}`===a.id).VALUE})),R=y.value.width/2,j=y.value.height/2,O=y.value.height*t.value.donutRadiusRatio;return{dataset:W.filter(a=>!x.value.includes(a.id)),legend:W,drawingArea:_,displayArcPercentage:s,isArcBigEnough:l,useTooltip:i,killTooltip:m,getSpaces:r,total:C,cx:R,cy:j,radius:O,chart:u.makeDonut({series:n.filter(a=>!x.value.includes(a.id))},R,j,O,O,1.99999,2,1,360,105.25,y.value.height*Be.value)}}),k=e.ref({start:0,end:h.value.maxSeriesLength});function Oe(){we()}const q=e.ref(null);async function we(){(t.value.zoomStartIndex!==null||t.value.zoomEndIndex!==null)&&q.value?(t.value.zoomStartIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setStartValue(t.value.zoomStartIndex)),t.value.zoomEndIndex!==null&&(await e.nextTick(),await e.nextTick(),q.value&&q.value.setEndValue(De(t.value.zoomEndIndex+1)))):(k.value={start:0,end:h.value.maxSeriesLength},ee.value+=1)}function De(n){const s=h.value.maxSeriesLength;return n>s?s:n<0||t.value.zoomStartIndex!==null&&n<t.value.zoomStartIndex?t.value.zoomStartIndex!==null?t.value.zoomStartIndex+1:1:n}const Me=e.computed(()=>{if(!t.value.zoomMinimap.show||B.value===S.DONUT)return[];let n=[];$(h.value.dataset)&&(n=h.value.dataset),se(h.value.dataset)&&(n=h.value.dataset.map((i,m)=>({values:i.VALUE||i.DATA||i.SERIE||i.SERIES||i.VALUES||i.NUM||0,id:B.value===S.LINE?`line_${m}`:`bar_${m}`})).filter(i=>!x.value.includes(i.id)));const s=$(n)?n.length:Math.max(...n.map(i=>i.values.length));let l=[];if($(n))l=n;else for(let i=0;i<s;i+=1)l.push(n.map(m=>m.values[i]||0).reduce((m,_)=>(m||0)+(_||0),0));const r=Math.min(...l);return l.map(i=>i+(r<0?Math.abs(r):0))}),v=e.computed(()=>{if(B.value!==S.LINE)return null;const n={height:y.value.height,width:y.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:n.width-t.value.xyPaddingRight,bottom:n.height-t.value.xyPaddingBottom,width:n.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:n.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];$(h.value.dataset)&&(l=[{values:h.value.dataset.slice(k.value.start,k.value.end),absoluteIndices:h.value.dataset.map((a,o)=>o).slice(k.value.start,k.value.end),name:t.value.title,color:X.value[t.value.paletteStartIndex]||u.palette[t.value.paletteStartIndex],id:"line_0"}]),se(h.value.dataset)&&(l=h.value.dataset.map((a,o)=>({...a,values:a.VALUE||a.DATA||a.SERIE||a.SERIES||a.VALUES||a.NUM||0,name:a.NAME||a.DESCRIPTION||a.TITLE||a.LABEL||`Serie ${o}`,id:`line_${o}`})).map((a,o)=>({...a,color:a.COLOR?u.convertColorToHex(a.COLOR):X.value[o+t.value.paletteStartIndex]||u.palette[o+t.value.paletteStartIndex]||u.palette[(o+t.value.paletteStartIndex)%u.palette.length],values:a.values.slice(k.value.start,k.value.end),absoluteIndices:a.values.map((g,p)=>p).slice(k.value.start,k.value.end)})));const r={max:Math.max(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),min:Math.min(...l.filter(a=>!x.value.includes(a.id)).flatMap(a=>a.values)),maxSeries:Math.max(...l.map(a=>a.values.length))},i=u.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,_=r.max<0?s.top:s.bottom-m/(i.max+m)*s.height,C=s.width/r.maxSeries,W=i.ticks.map(a=>({y:s.bottom-s.height*((a+m)/(i.max+m)),x:s.left-8,value:a})),R=l.map((a,o)=>({...a,coordinates:a.values.map((g,p)=>({x:s.left+C*(p+1)-C/2,y:s.bottom-(g+m)/(i.max+m)*s.height,value:g}))})).map(a=>{let o=[];return a.coordinates.forEach(g=>{o.push(`${g.x},${g.y} `)}),{...a,linePath:o.join(" ")}});function j(a){F.value=a,I.value=a;const o=l.map(p=>({...p,value:p.values[a],absoluteIndex:p.absoluteIndices[a]})).filter(p=>!x.value.includes(p.id));H.value={datapoint:o,seriesIndex:a,config:t.value,dataset:l};const g=t.value.tooltipCustomFormat;if(u.isFunction(g)&&u.functionReturnsString(()=>g({datapoint:o,seriesIndex:a,series:l,config:t.value})))T.value=g({datapoint:o,seriesIndex:a,series:l,config:t.value});else{let p="";t.value.xyPeriods[o[0].absoluteIndex]&&(p+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[o[0].absoluteIndex]}</div>`),o.forEach((L,z)=>{p+=`
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="${L.color}"/></svg>
4
+ <span>${L.name}:</span>
5
+ <b>${u.applyDataLabel(t.value.formatter,L.value,u.dataLabel({p:t.value.valuePrefix,v:L.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:L,seriesIndex:z})}
6
+ </b>
7
+ </div>
8
+ `}),T.value=p}P.value=!0}function O(){F.value=null,P.value=!1}return{absoluteZero:_,dataset:R.filter(a=>!x.value.includes(a.id)),legend:R,drawingArea:s,extremes:r,slotSize:C,yLabels:W,useTooltip:j,killTooltip:O}}),d=e.computed(()=>{if(B.value!==S.BAR)return null;const n={height:y.value.height,width:y.value.width},s={left:t.value.xyPaddingLeft,top:t.value.xyPaddingTop,right:n.width-t.value.xyPaddingRight,bottom:n.height-t.value.xyPaddingBottom,width:n.width-t.value.xyPaddingLeft-t.value.xyPaddingRight,height:n.height-t.value.xyPaddingTop-t.value.xyPaddingBottom};let l=[];$(h.value.dataset)&&(l=[{values:h.value.dataset.slice(k.value.start,k.value.end),absoluteIndices:h.value.dataset.map((o,g)=>g).slice(k.value.start,k.value.end),name:t.value.title,color:X.value[t.value.paletteStartIndex]||u.palette[t.value.paletteStartIndex],id:"bar_0"}]),se(h.value.dataset)&&(l=h.value.dataset.map((o,g)=>({...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 ${g}`,id:`bar_${g}`})).map((o,g)=>({...o,color:o.COLOR?u.convertColorToHex(o.COLOR):X.value[g+t.value.paletteStartIndex]||u.palette[g+t.value.paletteStartIndex]||u.palette[(g+t.value.paletteStartIndex)%u.palette.length],values:o.values.slice(k.value.start,k.value.end),absoluteIndices:o.values.map((p,L)=>L).slice(k.value.start,k.value.end)})));const r={max:Math.max(...l.filter(o=>!x.value.includes(o.id)).flatMap(o=>o.values))<0?0: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.filter(o=>!x.value.includes(o.id)).map(o=>o.values.length))},i=u.calculateNiceScale(r.min<0?r.min:0,r.max,t.value.xyScaleSegments),m=i.min<0?Math.abs(i.min):0,_=s.bottom-m/(i.max+m)*s.height,C=s.width/r.maxSeries,W=i.ticks.map(o=>({y:s.bottom-s.height*((o+m)/(i.max+m)),x:s.left-8,value:o})),R=l.map((o,g)=>({...o,coordinates:o.values.map((p,L)=>{const z=(p+m)/(r.max+m)*s.height,J=Math.abs(p)/Math.abs(r.min)*(s.height-_),de=m/(r.max+m)*s.height,Q=C/l.filter(D=>!x.value.includes(D.id)).length-t.value.barGap/l.filter(D=>!x.value.includes(D.id)).length;return{x:s.left+C*L+Q*g+t.value.barGap/2,y:p>0?s.bottom-z:_,height:p>0?z-de:J,value:p,width:Q}})})),j=l.filter(o=>!x.value.includes(o.id)).map((o,g)=>({...o,coordinates:o.values.map((p,L)=>{const z=(p+m)/(r.max+m)*s.height,J=Math.abs(p)/(r.max+m)*s.height,de=m/(r.max+m)*s.height,Q=C/l.filter(D=>!x.value.includes(D.id)).length-t.value.barGap/l.filter(D=>!x.value.includes(D.id)).length;return{x:s.left+C*L+Q*g+t.value.barGap/2,y:p>0?s.bottom-z:_,height:p>0?z-de:J,value:p,width:Q}})}));function O(o){F.value=o,I.value=o;const g=l.map(L=>({...L,value:L.values[o],absoluteIndex:L.absoluteIndices[o]})).filter(L=>!x.value.includes(L.id));H.value={datapoint:g,seriesIndex:o,config:t.value,dataset:l};const p=t.value.tooltipCustomFormat;if(u.isFunction(p)&&u.functionReturnsString(()=>p({datapoint:g,seriesIndex:o,series:l,config:t.value})))T.value=p({point:g,seriesIndex:o,series:l,config:t.value});else{let L="";t.value.xyPeriods[g[0].absoluteIndex]&&(L+=`<div style="border-bottom:1px solid ${t.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${t.value.xyPeriods[g[0].absoluteIndex]}</div>`),g.forEach((z,J)=>{L+=`
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>${u.applyDataLabel(t.value.formatter,z.value,u.dataLabel({p:t.value.valuePrefix,v:z.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:z,seriesIndex:J})}
13
+ </b>
14
+ </div>
15
+ `}),T.value=L}P.value=!0}function a(){P.value=!1,F.value=null,I.value=null}return{absoluteZero:_,dataset:j.filter(o=>!x.value.includes(o.id)),legend:R,drawingArea:s,extremes:r,slotSize:C,yLabels:W,useTooltip:O,killTooltip:a}}),re=e.ref(!1);function Ue(n){re.value=n,fe.value+=1}function Ee(){ae.value.showTooltip=!ae.value.showTooltip}const ie=e.ref(!1);function ce(){ie.value=!ie.value}return w({generatePdf:pe,generateImage:ke,toggleTooltip:Ee,toggleAnnotator:ce}),(n,s)=>Pe.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:`${B.value}_${A.value}`,ref_key:"quickChart",ref:V,class:e.normalizeClass({"vue-ui-quick-chart":!0,"vue-data-ui-wrapper-fullscreen":re.value}),style:e.normalizeStyle(`background:${t.value.backgroundColor};color:${t.value.color};font-family:${t.value.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`)},[t.value.userOptionsButtons.annotator?(e.openBlock(),e.createBlock(He.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.backgroundColor,color:t.value.color,active:ie.value,onClose:ce},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),$e.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:me,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.showUserOptions?(e.openBlock(),e.createBlock(Le.UserOptions,{ref:"details",key:`user_option_${fe.value}`,backgroundColor:t.value.backgroundColor,color:t.value.color,isPrinting:e.unref(te),isImaging:e.unref(le),uid:A.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:ae.value.showTooltip,isFullscreen:re.value,titles:{...t.value.userOptionsButtonTitles},chartElement:V.value,position:t.value.userOptionsPosition,hasAnnotator:t.value.userOptionsButtons.annotator,isAnnotation:ie.value,onToggleFullscreen:Ue,onGeneratePdf:e.unref(pe),onGenerateImage:e.unref(ke),onToggleTooltip:Ee,onToggleAnnotator:ce},e.createSlots({_:2},[n.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,n.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,n.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,n.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(n.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0,n.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:r})=>[e.renderSlot(n.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),t.value.title?(e.openBlock(),e.createElementBlock("div",{key:3,ref_key:"quickChartTitle",ref:M,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,xmlns:e.unref(u.XMLNS),viewBox:Ie.value,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.color}`)},[e.createVNode(Ge._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${A.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2,id:`blur_std_${A.value}`},null,8,ot),nt],8,at),e.createElementVNode("filter",{id:`shadow_${A.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,it)],8,rt)]),B.value===S.DONUT?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[E.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("path",{key:0,d:e.unref(u.calcNutArrowPath)(l,{x:y.value.width/2,y:y.value.height/2},16,16,!1,!1,y.value.height*Be.value),stroke:l.color,"stroke-width":t.value.donutLabelMarkerStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none",filter:Z(l.id)},null,8,st)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:E.value.cx,cy:E.value.cy,r:E.value.radius,fill:t.value.backgroundColor,filter:t.value.donutUseShadow?`url(#shadow_${A.value})`:""},null,8,ct),e.createElementVNode("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.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:Z(l.id)},null,8,vt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock("path",{d:l.arcSlice,fill:"transparent",onMouseenter:i=>E.value.useTooltip({datapoint:l,seriesIndex:r}),onMouseout:s[0]||(s[0]=i=>E.value.killTooltip()),onClick:i=>f("selectDatapoint",l)},null,40,mt))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value.chart,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[E.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:e.unref(u.calcMarkerOffsetX)(l).x,cy:e.unref(u.calcMarkerOffsetY)(l)-3.7,fill:l.color,stroke:t.value.backgroundColor,"stroke-width":1,r:3,filter:Z(l.id)},null,8,ht)):e.createCommentVNode("",!0),E.value.isArcBigEnough(l)?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":e.unref(u.calcMarkerOffsetX)(l,!0,20).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0).x,y:e.unref(u.calcMarkerOffsetY)(l),fill:t.value.color,"font-size":t.value.dataLabelFontSize,filter:Z(l.id)},e.toDisplayString(E.value.displayArcPercentage(l,E.value.chart))+" ("+e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,l.value,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r}))+") ",9,pt)):e.createCommentVNode("",!0),E.value.isArcBigEnough(l,!0,20)?(e.openBlock(),e.createElementBlock("text",{key:2,"text-anchor":e.unref(u.calcMarkerOffsetX)(l).anchor,x:e.unref(u.calcMarkerOffsetX)(l,!0).x,y:e.unref(u.calcMarkerOffsetY)(l)+t.value.dataLabelFontSize,fill:t.value.color,"font-size":t.value.dataLabelFontSize,filter:Z(l.id)},e.toDisplayString(l.name),9,kt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.donutShowTotal?(e.openBlock(),e.createElementBlock("g",gt,[e.createElementVNode("text",{"text-anchor":"middle",x:E.value.drawingArea.centerX,y:E.value.drawingArea.centerY-t.value.donutTotalLabelFontSize/2,"font-size":t.value.donutTotalLabelFontSize,fill:t.value.color},e.toDisplayString(t.value.donutTotalLabelText),9,yt),e.createElementVNode("text",{"text-anchor":"middle",x:E.value.drawingArea.centerX,y:E.value.drawingArea.centerY+t.value.donutTotalLabelFontSize,"font-size":t.value.donutTotalLabelFontSize,fill:t.value.color},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.valuePrefix,v:E.value.total,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue})),9,xt)])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),B.value===S.LINE?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.xyShowGrid?(e.openBlock(),e.createElementBlock("g",St,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.yLabels,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=v.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:v.value.drawingArea.left,x2:v.value.drawingArea.right,y1:l.y,y2:l.y,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,bt)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.extremes.maxSeries+1,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:v.value.drawingArea.left+v.value.slotSize*r,x2:v.value.drawingArea.left+v.value.slotSize*r,y1:v.value.drawingArea.top,y2:v.value.drawingArea.bottom,stroke:t.value.xyGridStroke,"stroke-width":t.value.xyGridStrokeWidth,"stroke-linecap":"round"},null,8,Bt))),256))])):e.createCommentVNode("",!0),t.value.xyShowAxis?(e.openBlock(),e.createElementBlock("g",wt,[e.createElementVNode("line",{x1:v.value.drawingArea.left,x2:v.value.drawingArea.left,y1:v.value.drawingArea.top,y2:v.value.drawingArea.bottom,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Et),e.createElementVNode("line",{x1:v.value.drawingArea.left,x2:v.value.drawingArea.right,y1:isNaN(v.value.absoluteZero)?v.value.drawingArea.bottom:v.value.absoluteZero,y2:isNaN(v.value.absoluteZero)?v.value.drawingArea.bottom:v.value.absoluteZero,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,At)])):e.createCommentVNode("",!0),t.value.xyShowScale?(e.openBlock(),e.createElementBlock("g",Lt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.yLabels,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[l.y<=v.value.drawingArea.bottom?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.x+4,x2:v.value.drawingArea.left,y1:l.y,y2:l.y,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,_t)):e.createCommentVNode("",!0),l.y<=v.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(u.applyDataLabel)(t.value.formatter,l.value,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),9,zt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.xyShowScale&&t.value.xyPeriods.length?(e.openBlock(),e.createElementBlock("g",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(k.value.start,k.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:v.value.drawingArea.left+v.value.slotSize*(r+1)-v.value.slotSize/2,x2:v.value.drawingArea.left+v.value.slotSize*(r+1)-v.value.slotSize/2,y1:v.value.drawingArea.bottom,y2:v.value.drawingArea.bottom+4,stroke:t.value.xyAxisStroke,"stroke-width":t.value.xyAxisStrokeWidth,"stroke-linecap":"round"},null,8,Nt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(k.value.start,k.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",fill:t.value.color,transform:`translate(${v.value.drawingArea.left+v.value.slotSize*(r+1)-v.value.slotSize/2}, ${v.value.drawingArea.bottom+t.value.xyLabelsXFontSize+6}), rotate(${t.value.xyPeriodLabelsRotation})`},e.toDisplayString(l),9,Vt))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",Ft,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock("g",Pt,[t.value.lineSmooth?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("path",{d:`M ${e.unref(u.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,$t),e.createElementVNode("path",{d:`M ${e.unref(u.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,It)],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,Tt),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,Rt)],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(i,m)=>(e.openBlock(),e.createElementBlock("circle",{cx:i.x,cy:e.unref(u.checkNaN)(i.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,Ot))),256))]))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",Dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.dataset,(l,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.coordinates,(i,m)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"middle","font-size":t.value.dataLabelFontSize,fill:l.color,x:i.x,y:e.unref(u.checkNaN)(i.y)-t.value.dataLabelFontSize/2,class:"quick-animation",style:{transition:"all 0.3s ease-in-out"}},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,e.unref(u.checkNaN)(i.value),e.unref(u.dataLabel)({p:t.value.valuePrefix,v:e.unref(u.checkNaN)(i.value),s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:i,seriesIndex:m})),9,Mt))),256))],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",Ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value.extremes.maxSeries,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{x:v.value.drawingArea.left+r*v.value.slotSize,y:v.value.drawingArea.top,height:v.value.drawingArea.height<=0?1e-5:v.value.drawingArea.height,width:v.value.slotSize<=0?1e-5:v.value.slotSize,fill:[F.value,I.value].includes(r)?t.value.xyHighlighterColor:"transparent",style:e.normalizeStyle(`opacity:${t.value.xyHighlighterOpacity}`),onMouseenter:i=>v.value.useTooltip(r),onMouseleave:s[1]||(s[1]=i=>v.value.killTooltip()),onClick:i=>f("selectDatapoint",v.value.dataset.map(m=>({...m,value:m.values[r]})))},null,44,qt))),256))])],64)):e.createCommentVNode("",!0),B.value===S.BAR?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.xyShowGrid?(e.openBlock(),e.createElementBlock("g",Wt,[(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,jt)):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,Gt))),256))])):e.createCommentVNode("",!0),t.value.xyShowAxis?(e.openBlock(),e.createElementBlock("g",Ht,[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,Xt),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,Yt)])):e.createCommentVNode("",!0),t.value.xyShowScale?(e.openBlock(),e.createElementBlock("g",Zt,[(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,Jt)):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(u.applyDataLabel)(t.value.formatter,l.value,e.unref(u.dataLabel)({p:t.value.valuePrefix,v:l.value,s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:l,seriesIndex:r})),9,Qt)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.xyShowScale&&t.value.xyPeriods.length?(e.openBlock(),e.createElementBlock("g",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(k.value.start,k.value.end),(l,r)=>(e.openBlock(),e.createElementBlock("line",{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,el))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.xyPeriods.slice(k.value.start,k.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(${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})`,fill:t.value.color},e.toDisplayString(l),9,tl))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",ll,[(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,(i,m)=>(e.openBlock(),e.createElementBlock("rect",{x:i.x,width:i.width<=0?1e-5:i.width,height:e.unref(u.checkNaN)(i.height<=0?1e-5:i.height),y:e.unref(u.checkNaN)(i.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&&i.value<0})},[t.value.barAnimated&&i.value>0&&!e.unref(te)&&!e.unref(le)?(e.openBlock(),e.createElementBlock("animate",{key:0,attributeName:"height",from:0,to:i.height,dur:"0.5s"},null,8,ol)):e.createCommentVNode("",!0),t.value.barAnimated&&i.value>0&&!e.unref(te)&&!e.unref(le)?(e.openBlock(),e.createElementBlock("animate",{key:1,attributeName:"y",from:d.value.absoluteZero,to:d.value.absoluteZero-i.height,dur:"0.5s"},null,8,nl)):e.createCommentVNode("",!0)],10,al))),256))],64))),256))]),t.value.showDataLabels?(e.openBlock(),e.createElementBlock("g",rl,[(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,(i,m)=>(e.openBlock(),e.createElementBlock("text",{x:i.x+i.width/2,y:e.unref(u.checkNaN)(i.y)-t.value.dataLabelFontSize/2,"text-anchor":"middle","font-size":t.value.dataLabelFontSize,fill:l.color,class:"quick-animation"},e.toDisplayString(e.unref(u.applyDataLabel)(t.value.formatter,e.unref(u.checkNaN)(i.value),e.unref(u.dataLabel)({p:t.value.valuePrefix,v:e.unref(u.checkNaN)(i.value),s:t.value.valueSuffix,r:t.value.dataLabelRoundingValue}),{datapoint:i,seriesIndex:m})),9,il))),256))],64))),256))])):e.createCommentVNode("",!0),e.createElementVNode("g",ul,[(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:[F.value,I.value].includes(r)?t.value.xyHighlighterColor:"transparent",style:e.normalizeStyle(`opacity:${t.value.xyHighlighterOpacity}`),onMouseenter:i=>d.value.useTooltip(r),onMouseleave:s[2]||(s[2]=i=>d.value.killTooltip()),onClick:i=>f("selectDatapoint",d.value.dataset.map(m=>({...m,value:m.values[r]})))},null,44,sl))),256))])],64)):e.createCommentVNode("",!0),[S.LINE,S.BAR].includes(B.value)?(e.openBlock(),e.createElementBlock("g",cl,[t.value.xAxisLabel&&B.value===S.LINE?(e.openBlock(),e.createElementBlock("g",dl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,"text-anchor":"middle",x:v.value.drawingArea.left+v.value.drawingArea.width/2,y:y.value.height-t.value.axisLabelsFontSize/3},e.toDisplayString(t.value.xAxisLabel),9,vl)])):e.createCommentVNode("",!0),t.value.xAxisLabel&&B.value===S.BAR?(e.openBlock(),e.createElementBlock("g",ml,[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:y.value.height-t.value.axisLabelsFontSize/3},e.toDisplayString(t.value.xAxisLabel),9,fl)])):e.createCommentVNode("",!0),t.value.yAxisLabel&&B.value===S.LINE?(e.openBlock(),e.createElementBlock("g",hl,[e.createElementVNode("text",{"font-size":t.value.axisLabelsFontSize,fill:t.value.color,transform:`translate(${t.value.axisLabelsFontSize}, ${v.value.drawingArea.top+v.value.drawingArea.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.yAxisLabel),9,pl)])):e.createCommentVNode("",!0),t.value.yAxisLabel&&B.value===S.BAR?(e.openBlock(),e.createElementBlock("g",kl,[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,gl)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],12,lt)):e.createCommentVNode("",!0),B.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(je.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"])),n.$slots.watermark?(e.openBlock(),e.createElementBlock("div",yl,[e.renderSlot(n.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(te)||e.unref(le)})),void 0,!0)])):e.createCommentVNode("",!0),[S.BAR,S.LINE].includes(B.value)&&t.value.zoomXy&&h.value.maxSeriesLength>1?(e.openBlock(),e.createElementBlock("div",{key:`slicer_${ee.value}`,ref_key:"quickChartSlicer",ref:G},[(e.openBlock(),e.createBlock(We.Slicer,{ref_key:"slicerComponent",ref:q,key:`slicer_${ee.value}`,background:t.value.zoomColor,borderColor:t.value.backgroundColor,fontSize:t.value.zoomFontSize,useResetSlot:t.value.zoomUseResetSlot,labelLeft:t.value.xyPeriods[k.value.start]?t.value.xyPeriods[k.value.start]:"",labelRight:t.value.xyPeriods[k.value.end-1]?t.value.xyPeriods[k.value.end-1]:"",textColor:t.value.color,inputColor:t.value.zoomColor,selectColor:t.value.zoomHighlightColor,max:h.value.maxSeriesLength,min:0,valueStart:k.value.start,valueEnd:k.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:Me.value,minimapIndicatorColor:t.value.zoomMinimap.indicatorColor,minimapSelectedIndex:I.value,start:k.value.start,"onUpdate:start":s[3]||(s[3]=l=>k.value.start=l),end:k.value.end,"onUpdate:end":s[4]||(s[4]=l=>k.value.end=l),refreshStartPoint:t.value.zoomStartIndex!==null?t.value.zoomStartIndex:0,refreshEndPoint:t.value.zoomEndIndex!==null?t.value.zoomEndIndex+1:h.value.maxSeriesLength,onReset:Oe,onTrapMouse:Re},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(n.$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","minimapSelectedIndex","start","end","refreshStartPoint","refreshEndPoint"]))])):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(E.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:i=>{Te(l,E.value.dataset),f("selectLegend",l)},style:e.normalizeStyle(`cursor: ${E.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(n.$slots,"legend",e.normalizeProps(e.mergeProps({key:0},{legend:l})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ue.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(u.applyDataLabel)(t.value.formatter,l.absoluteValue,e.unref(u.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)):ne.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(u.dataLabel)({v:l.value/E.value.total*100,s:"%",r:t.value.dataLabelRoundingPercentage}))+") ",5))],64))],12,xl))),256)):e.createCommentVNode("",!0),B.value===S.LINE?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(v.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:i=>{xe(l.id,v.value.legend.length-1),f("selectLegend",l)},style:e.normalizeStyle(`cursor: ${v.value.legend.length>1?"pointer":"default"}; opacity:${x.value.includes(l.id)?"0.5":"1"}`)},[t.value.useCustomLegend?e.renderSlot(n.$slots,"legend",e.normalizeProps(e.mergeProps({key:0},{legend:l})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ue.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,Sl))),256)):e.createCommentVNode("",!0),B.value===S.BAR?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(d.value.legend,(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-quick-chart-legend-item",onClick:i=>{xe(l.id,d.value.legend.length-1),f("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(n.$slots,"legend",e.normalizeProps(e.mergeProps({key:0},{legend:l})),void 0,!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ue.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,bl))),256)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),n.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:9,ref_key:"source",ref:ve,dir:"auto"},[e.renderSlot(n.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(qe._sfc_main,{show:ae.value.showTooltip&&P.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:V.value,content:T.value,isFullscreen:re.value,isCustom:e.unref(u.isFunction)(t.value.tooltipCustomFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(n.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...H.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(n.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...H.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"])],14,tt)):(e.openBlock(),e.createElementBlock("div",Bl,[e.createVNode(ue.default,{name:"circleCancel",stroke:"red"}),wl]))}},Al=Xe._export_sfc(El,[["__scopeId","data-v-7c8df607"]]);exports.default=Al;