vue-data-ui 2.4.2 → 2.4.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 (194) hide show
  1. package/dist/{Arrow-JuK2z9IB.js → Arrow-C7lNL7sY.js} +1 -1
  2. package/dist/{Arrow-DLTRnzcG.cjs → Arrow-Dz6AomGr.cjs} +1 -1
  3. package/dist/{BaseIcon-rRli6Sfv.js → BaseIcon-BbvG1AlW.js} +1 -1
  4. package/dist/{BaseIcon-BGExhz6v.cjs → BaseIcon-uALK38Ov.cjs} +1 -1
  5. package/dist/{DataTable-DJzhv96s.cjs → DataTable-DTzynbND.cjs} +1 -1
  6. package/dist/{DataTable-DTk7C4Pr.js → DataTable-DYqC2pqu.js} +2 -2
  7. package/dist/{Legend-YZ7Hz3o1.cjs → Legend-Cgw4lO2O.cjs} +1 -1
  8. package/dist/{Legend-CYF2gpXG.js → Legend-DNgTCgEK.js} +1 -1
  9. package/dist/{PackageVersion-DVZtsuy4.cjs → PackageVersion-DwI-KhXH.cjs} +1 -1
  10. package/dist/{PackageVersion-CvCRsT5_.js → PackageVersion-VkaUzgmt.js} +1 -1
  11. package/dist/{PenAndPaper-CyXm-yVL.cjs → PenAndPaper-CDFVOo7X.cjs} +1 -1
  12. package/dist/{PenAndPaper-Jb0pLt3G.js → PenAndPaper-DAZYA8Ew.js} +2 -2
  13. package/dist/{Shape-BpPn4eWR.js → Shape-Bwon0l0g.js} +1 -1
  14. package/dist/{Shape-X2F-QV_B.cjs → Shape-D2Dpshg1.cjs} +1 -1
  15. package/dist/{Slicer-CU7dRZR0.js → Slicer-TfpN2Cr4.js} +3 -3
  16. package/dist/{Slicer-CL0tP5a5.cjs → Slicer-uSjfNJjG.cjs} +1 -1
  17. package/dist/{Title-Co5jI5ed.cjs → Title-0Tp4hZ4u.cjs} +1 -1
  18. package/dist/{Title-5VmBwT4i.js → Title-C5pIfQAz.js} +1 -1
  19. package/dist/{Tooltip-Bl6W8Zn7.cjs → Tooltip-9Tp2Yrd1.cjs} +1 -1
  20. package/dist/{Tooltip-Cj4EF7v1.js → Tooltip-Cz24YLfw.js} +1 -1
  21. package/dist/{index-DnVHQ2xI.js → index-Bya_q1J-.js} +4 -1
  22. package/dist/index-eFox7weK.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +4 -1
  25. package/dist/types/vue-data-ui.d.ts +4 -1
  26. package/dist/{useNestedProp-Cox0K0Y5.js → useNestedProp-B33hazbH.js} +1 -1
  27. package/dist/{useNestedProp-q7byAAIJ.cjs → useNestedProp-BkgEhTQY.cjs} +1 -1
  28. package/dist/{usePrinter-BCAFeO_J.cjs → usePrinter-CSRFnDBU.cjs} +1 -1
  29. package/dist/{usePrinter-BEeNAqS5.js → usePrinter-CiHd1FwD.js} +1 -1
  30. package/dist/useResponsive-BY8tgM1n.js +188 -0
  31. package/dist/useResponsive-CodiGUOE.cjs +1 -0
  32. package/dist/{vue-data-ui-CRLLZpt0.cjs → vue-data-ui-BTtxyUc3.cjs} +1 -1
  33. package/dist/{vue-data-ui-W7nnqn0v.js → vue-data-ui-Bduq4f2p.js} +58 -58
  34. package/dist/vue-data-ui.cjs +1 -1
  35. package/dist/vue-data-ui.js +1 -1
  36. package/dist/{vue-ui-3d-bar-bD_n6qL_.cjs → vue-ui-3d-bar-B-P7PMHs.cjs} +2 -2
  37. package/dist/{vue-ui-3d-bar-BwBrUabe.js → vue-ui-3d-bar-BUEq_VdY.js} +41 -34
  38. package/dist/{vue-ui-accordion-DspS4q3f.js → vue-ui-accordion-DfUfL2dI.js} +3 -3
  39. package/dist/{vue-ui-accordion-xXgqfR2l.cjs → vue-ui-accordion-TEMpM1hO.cjs} +1 -1
  40. package/dist/{vue-ui-age-pyramid-CxBvm3uM.js → vue-ui-age-pyramid-CH72tAMb.js} +163 -154
  41. package/dist/vue-ui-age-pyramid-DsbZ1qcQ.cjs +1 -0
  42. package/dist/{vue-ui-annotator-BOofWpzv.js → vue-ui-annotator-DPeJ2its.js} +1 -1
  43. package/dist/{vue-ui-annotator-C6T5_7ZV.cjs → vue-ui-annotator-DU_DJKCw.cjs} +1 -1
  44. package/dist/{vue-ui-bullet-DraC-oFu.js → vue-ui-bullet-CtP3MlUT.js} +167 -136
  45. package/dist/vue-ui-bullet-D8ks_rKr.cjs +34 -0
  46. package/dist/vue-ui-candlestick-D1jdr0bv.cjs +2 -0
  47. package/dist/{vue-ui-candlestick-DQZ5eT1f.js → vue-ui-candlestick-DDil13a0.js} +173 -164
  48. package/dist/{vue-ui-carousel-table-PdLjpH1p.js → vue-ui-carousel-table-BaeIxyc0.js} +76 -69
  49. package/dist/vue-ui-carousel-table-C7SJIOG-.cjs +1 -0
  50. package/dist/{vue-ui-chestnut-ByI_O5hB.js → vue-ui-chestnut-BczSJF6S.js} +96 -89
  51. package/dist/vue-ui-chestnut-ih5r0Bj9.cjs +6 -0
  52. package/dist/{vue-ui-cursor-BvadpA2m.cjs → vue-ui-cursor-C2Pj_CI_.cjs} +1 -1
  53. package/dist/{vue-ui-cursor-BM74l93B.js → vue-ui-cursor-Dg_Dmww-.js} +2 -2
  54. package/dist/{vue-ui-dashboard-CoANBhAM.js → vue-ui-dashboard-Bul9dqx1.js} +2 -2
  55. package/dist/{vue-ui-dashboard-OP51Gs8I.cjs → vue-ui-dashboard-Cg020NiT.cjs} +1 -1
  56. package/dist/{vue-ui-digits-DioaBnkB.js → vue-ui-digits-B8iAa4YZ.js} +2 -2
  57. package/dist/{vue-ui-digits-C7jJJg9k.cjs → vue-ui-digits-Ctgd84JR.cjs} +1 -1
  58. package/dist/vue-ui-donut-D7KT9EAp.cjs +1 -0
  59. package/dist/{vue-ui-donut-ldqSm_JV.js → vue-ui-donut-DUcp-fat.js} +244 -235
  60. package/dist/vue-ui-donut-evolution-CHtJ8iOK.cjs +1 -0
  61. package/dist/{vue-ui-donut-evolution-DAb1xzNd.js → vue-ui-donut-evolution-C_YMbTwq.js} +125 -118
  62. package/dist/vue-ui-dumbbell-B0dikuqO.cjs +9 -0
  63. package/dist/{vue-ui-dumbbell-Dg7PkiKJ.js → vue-ui-dumbbell-Buwngz_V.js} +192 -183
  64. package/dist/{vue-ui-flow-DKT7ZEnr.js → vue-ui-flow-Bz3c0K5P.js} +78 -71
  65. package/dist/vue-ui-flow-D6rc8J-8.cjs +1 -0
  66. package/dist/{vue-ui-galaxy-qAA9be3S.js → vue-ui-galaxy-Cjh0XGTX.js} +49 -42
  67. package/dist/vue-ui-galaxy-CmTt0vBf.cjs +1 -0
  68. package/dist/{vue-ui-gauge-D8yVTIgP.js → vue-ui-gauge-B1UvGkQa.js} +160 -151
  69. package/dist/vue-ui-gauge-B_TKuyM7.cjs +1 -0
  70. package/dist/{vue-ui-gizmo-W6bTkg59.cjs → vue-ui-gizmo-DFW6HnHp.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-DC0uUwI3.js → vue-ui-gizmo-DUQ4t-At.js} +3 -3
  72. package/dist/{vue-ui-heatmap-u1raIzBQ.js → vue-ui-heatmap-C-poazUw.js} +110 -103
  73. package/dist/vue-ui-heatmap-C2HlnqzO.cjs +1 -0
  74. package/dist/{vue-ui-kpi-C-iTxMD2.js → vue-ui-kpi-DXe-vxAk.js} +3 -3
  75. package/dist/{vue-ui-kpi-DY_2WF7U.cjs → vue-ui-kpi-Z4Oi4raz.cjs} +1 -1
  76. package/dist/{vue-ui-mini-loader-C7x7S0hi.js → vue-ui-mini-loader-BVtHTqxS.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-Bfq2MNWu.cjs → vue-ui-mini-loader-MMvpm9pz.cjs} +1 -1
  78. package/dist/{vue-ui-molecule-BFnOIxxs.js → vue-ui-molecule-BaJpDZND.js} +78 -71
  79. package/dist/vue-ui-molecule-BiYIcOKN.cjs +1 -0
  80. package/dist/{vue-ui-mood-radar-CR1v5v2x.js → vue-ui-mood-radar-BUNDwsEI.js} +132 -125
  81. package/dist/vue-ui-mood-radar-C6jMyFkb.cjs +1 -0
  82. package/dist/vue-ui-nested-donuts-DKO2dFKo.cjs +17 -0
  83. package/dist/{vue-ui-nested-donuts-DEiloQzq.js → vue-ui-nested-donuts-mDy2hXa6.js} +198 -189
  84. package/dist/{vue-ui-onion-LsEhBe4x.js → vue-ui-onion-DwFG3HAI.js} +248 -239
  85. package/dist/vue-ui-onion-GWNoZRhw.cjs +5 -0
  86. package/dist/vue-ui-parallel-coordinate-plot-DODn4Ohf.cjs +8 -0
  87. package/dist/{vue-ui-parallel-coordinate-plot-CTlIjJqG.js → vue-ui-parallel-coordinate-plot-ImET_zeo.js} +233 -224
  88. package/dist/{vue-ui-quadrant-DKVVFufb.js → vue-ui-quadrant-BeveRihK.js} +188 -179
  89. package/dist/vue-ui-quadrant-yuFAxV-5.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-8vJikiGH.js → vue-ui-quick-chart-DAhllTfa.js} +343 -334
  91. package/dist/{vue-ui-quick-chart-gG5Ar8-i.cjs → vue-ui-quick-chart-DgFDBzjS.cjs} +2 -2
  92. package/dist/vue-ui-radar-BJH5SE6-.cjs +1 -0
  93. package/dist/{vue-ui-radar-20QhOUer.js → vue-ui-radar-BllatzRa.js} +174 -165
  94. package/dist/{vue-ui-rating-Bbzm5nUK.cjs → vue-ui-rating-BoZo7caL.cjs} +1 -1
  95. package/dist/{vue-ui-rating-DRWJsve1.js → vue-ui-rating-D1ykV4xO.js} +2 -2
  96. package/dist/vue-ui-relation-circle-CKmjOle7.cjs +1 -0
  97. package/dist/{vue-ui-relation-circle-I45_Sk5l.js → vue-ui-relation-circle-xv2l5Be9.js} +142 -133
  98. package/dist/{vue-ui-rings-DG8GCi3y.js → vue-ui-rings-B-ZcX6y1.js} +165 -156
  99. package/dist/vue-ui-rings-DjH3CK23.cjs +2 -0
  100. package/dist/{vue-ui-scatter-Hqu5-F2H.js → vue-ui-scatter-DG43ck1g.js} +269 -260
  101. package/dist/vue-ui-scatter-SBCXAl7q.cjs +1 -0
  102. package/dist/{vue-ui-screenshot-D8nxd5RV.cjs → vue-ui-screenshot-C1JBP_N0.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-cjiqbtLK.js → vue-ui-screenshot-p3ca8cAl.js} +1 -1
  104. package/dist/{vue-ui-skeleton-aZmkNzAe.js → vue-ui-skeleton-BYssP0K4.js} +419 -379
  105. package/dist/vue-ui-skeleton-BqKzuhkB.cjs +41 -0
  106. package/dist/{vue-ui-smiley-B1TA19Hv.cjs → vue-ui-smiley-BXKVpHl2.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-ChNvxygm.js → vue-ui-smiley-D7dDCdpq.js} +2 -2
  108. package/dist/vue-ui-spark-trend-9V60hM3Z.cjs +1 -0
  109. package/dist/{vue-ui-spark-trend-CQxELQcf.js → vue-ui-spark-trend-GWFrO_0z.js} +86 -79
  110. package/dist/vue-ui-sparkbar-Bgn6AY0q.cjs +1 -0
  111. package/dist/{vue-ui-sparkbar-0ixbKZzf.js → vue-ui-sparkbar-CwqlyAyv.js} +90 -83
  112. package/dist/vue-ui-sparkgauge-Dqntz2Zv.cjs +1 -0
  113. package/dist/{vue-ui-sparkgauge-pdYb7OwH.js → vue-ui-sparkgauge-F2XbiXyA.js} +57 -50
  114. package/dist/{vue-ui-sparkhistogram-N69h2q0U.js → vue-ui-sparkhistogram-DRIKK6Ym.js} +74 -67
  115. package/dist/vue-ui-sparkhistogram-DnY4-Sdn.cjs +1 -0
  116. package/dist/vue-ui-sparkline-CAEs-gtK.cjs +1 -0
  117. package/dist/{vue-ui-sparkline-2BKYZMOb.js → vue-ui-sparkline-Cxtzdlhi.js} +134 -125
  118. package/dist/{vue-ui-sparkstackbar-sh03cuOU.js → vue-ui-sparkstackbar-0A1klq9s.js} +84 -77
  119. package/dist/vue-ui-sparkstackbar-D37ms1rx.cjs +1 -0
  120. package/dist/{vue-ui-stackbar-B1si-1RM.js → vue-ui-stackbar-ByOuJSdM.js} +205 -196
  121. package/dist/{vue-ui-stackbar-Dy_saeSe.cjs → vue-ui-stackbar-wun4S3C0.cjs} +2 -2
  122. package/dist/{vue-ui-strip-plot-BYn-QrTQ.js → vue-ui-strip-plot-CMD0MSqY.js} +218 -209
  123. package/dist/vue-ui-strip-plot-IQrypGvz.cjs +1 -0
  124. package/dist/{vue-ui-table-DQORPCDJ.js → vue-ui-table-B75DJ39t.js} +1 -1
  125. package/dist/{vue-ui-table-Ce4waJaj.cjs → vue-ui-table-aj0XZ7T5.cjs} +1 -1
  126. package/dist/{vue-ui-table-heatmap-Csp7Tx8N.js → vue-ui-table-heatmap-BO2ugWqD.js} +55 -48
  127. package/dist/vue-ui-table-heatmap-Ce93TyBF.cjs +1 -0
  128. package/dist/{vue-ui-table-sparkline-DdwVrfUj.js → vue-ui-table-sparkline-CbjfAaj2.js} +88 -81
  129. package/dist/vue-ui-table-sparkline-D6KJjDnU.cjs +1 -0
  130. package/dist/{vue-ui-thermometer-I6ZnlfAv.js → vue-ui-thermometer-Pq4PvSIP.js} +67 -60
  131. package/dist/vue-ui-thermometer-swmi4FmH.cjs +1 -0
  132. package/dist/{vue-ui-timer-COOXcn14.cjs → vue-ui-timer-B6IB6yS6.cjs} +1 -1
  133. package/dist/{vue-ui-timer-pi1SazTU.js → vue-ui-timer-Bk3BvB-B.js} +6 -6
  134. package/dist/{vue-ui-tiremarks-vdPQYiDp.js → vue-ui-tiremarks-CU9HJIqf.js} +84 -77
  135. package/dist/vue-ui-tiremarks-Cn79uQH2.cjs +1 -0
  136. package/dist/vue-ui-treemap-BEMuKV7x.cjs +1 -0
  137. package/dist/{vue-ui-treemap-3FNUlKxL.js → vue-ui-treemap-DY-lRAhC.js} +211 -202
  138. package/dist/vue-ui-vertical-bar-B1e2RxTv.cjs +4 -0
  139. package/dist/{vue-ui-vertical-bar-DwxpB46q.js → vue-ui-vertical-bar-CtnIKsM1.js} +359 -350
  140. package/dist/vue-ui-waffle-BqP7Okgu.cjs +1 -0
  141. package/dist/{vue-ui-waffle-XecHJIc-.js → vue-ui-waffle-reOsx-gJ.js} +177 -168
  142. package/dist/vue-ui-wheel-BuWUGnkC.cjs +1 -0
  143. package/dist/{vue-ui-wheel-Bbih5sSL.js → vue-ui-wheel-kYxny3vn.js} +95 -86
  144. package/dist/{vue-ui-word-cloud-DnhXUn5x.js → vue-ui-word-cloud-DbMqrHAf.js} +192 -183
  145. package/dist/vue-ui-word-cloud-DwLY4QdB.cjs +1 -0
  146. package/dist/vue-ui-xy-CGWzriYn.cjs +3 -0
  147. package/dist/{vue-ui-xy-canvas-C8c2X5fk.js → vue-ui-xy-canvas-B0HTR7OV.js} +255 -246
  148. package/dist/vue-ui-xy-canvas-CgJd5FiT.cjs +9 -0
  149. package/dist/{vue-ui-xy-CqlRuFMc.js → vue-ui-xy-rbACig0h.js} +131 -122
  150. package/package.json +1 -1
  151. package/dist/index-FfZRtJ6A.cjs +0 -9
  152. package/dist/useResponsive-B3TrDDIG.cjs +0 -1
  153. package/dist/useResponsive-NZB-WLRF.js +0 -187
  154. package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +0 -1
  155. package/dist/vue-ui-bullet-ChaEgXvR.cjs +0 -23
  156. package/dist/vue-ui-candlestick--hPCfMFH.cjs +0 -2
  157. package/dist/vue-ui-carousel-table-DpRQklDZ.cjs +0 -1
  158. package/dist/vue-ui-chestnut-ae6x87wl.cjs +0 -6
  159. package/dist/vue-ui-donut-CplNylps.cjs +0 -1
  160. package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +0 -1
  161. package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +0 -9
  162. package/dist/vue-ui-flow-BPt35d5K.cjs +0 -1
  163. package/dist/vue-ui-galaxy-e06PkTmp.cjs +0 -1
  164. package/dist/vue-ui-gauge-DiZVIU0D.cjs +0 -1
  165. package/dist/vue-ui-heatmap-CbZcv_2I.cjs +0 -1
  166. package/dist/vue-ui-molecule-CbKMLrDT.cjs +0 -1
  167. package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +0 -1
  168. package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +0 -17
  169. package/dist/vue-ui-onion-CLvvu4Ku.cjs +0 -5
  170. package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +0 -8
  171. package/dist/vue-ui-quadrant-OM5J1mG3.cjs +0 -1
  172. package/dist/vue-ui-radar-CAaHjDO7.cjs +0 -1
  173. package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +0 -1
  174. package/dist/vue-ui-rings-B9WQ7S5m.cjs +0 -2
  175. package/dist/vue-ui-scatter-BZfg1YIN.cjs +0 -1
  176. package/dist/vue-ui-skeleton-Djv08J67.cjs +0 -41
  177. package/dist/vue-ui-spark-trend-BqrPr63O.cjs +0 -1
  178. package/dist/vue-ui-sparkbar-CrTEPTU5.cjs +0 -1
  179. package/dist/vue-ui-sparkgauge-BYxpe_WV.cjs +0 -1
  180. package/dist/vue-ui-sparkhistogram-D21XDUH2.cjs +0 -1
  181. package/dist/vue-ui-sparkline-Cf4m-Fxo.cjs +0 -1
  182. package/dist/vue-ui-sparkstackbar-dAS8XoJs.cjs +0 -1
  183. package/dist/vue-ui-strip-plot-D53LABpZ.cjs +0 -1
  184. package/dist/vue-ui-table-heatmap-EqHt-O7Y.cjs +0 -1
  185. package/dist/vue-ui-table-sparkline-DONmVOMh.cjs +0 -1
  186. package/dist/vue-ui-thermometer-hQBkMa7u.cjs +0 -1
  187. package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +0 -1
  188. package/dist/vue-ui-treemap-Cv0TSFQa.cjs +0 -1
  189. package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +0 -4
  190. package/dist/vue-ui-waffle-CKM0QyJN.cjs +0 -1
  191. package/dist/vue-ui-wheel-C0dJrzOJ.cjs +0 -1
  192. package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +0 -1
  193. package/dist/vue-ui-xy-BDpqVzAq.cjs +0 -3
  194. package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +0 -9
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-eFox7weK.cjs"),de=require("./useResponsive-CodiGUOE.cjs"),$e=require("./Title-0Tp4hZ4u.cjs"),pe=require("./usePrinter-CSRFnDBU.cjs"),Le=require("./Tooltip-9Tp2Yrd1.cjs"),Pe=require("./DataTable-DTzynbND.cjs"),Te=require("./Legend-Cgw4lO2O.cjs"),Ve=require("./vue-ui-skeleton-BqKzuhkB.cjs"),Ee=require("./vue-ui-accordion-TEMpM1hO.cjs"),he=require("./useNestedProp-BkgEhTQY.cjs"),Ie=require("./PackageVersion-DwI-KhXH.cjs"),ze=require("./PenAndPaper-CDFVOo7X.cjs"),Fe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=N=>(e.pushScopeId("data-v-89a6ba4c"),N=N(),e.popScopeId(),N),Ae=["id"],De=["xmlns","viewBox"],Oe=["id"],qe=["stop-color"],Me=["stop-color"],Re=["id"],Ue=fe(()=>e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:2},null,-1)),je=fe(()=>e.createElementVNode("feColorMatrix",{type:"saturate",values:"0"},null,-1)),Ge=[Ue,je],We=["x","y","height","width"],He=["height","width"],Ye=["rx","x","y","height","width","stroke","stroke-width","filter"],Xe=["rx","x","y","height","width","fill","stroke","stroke-width","filter"],Je=["x","y","height","width","filter"],Ke={key:0},Qe={key:1},Ze={key:2},et={key:3},tt=["onMouseover","x","y","height","width"],lt={key:4,class:"vue-data-ui-watermark"},at=["onClick"],ot={key:0},rt={key:1},ut=["innerHTML"],nt={__name:"vue-ui-waffle",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(N,{expose:ye,emit:ge}){const p=N,{vue_ui_waffle:me}=n.useConfig(),V=e.computed(()=>!!p.dataset&&p.dataset.length),b=e.ref(n.createUid()),be=e.ref(null),A=e.ref(!1),D=e.ref(""),B=e.ref(null),U=e.ref(0),_=e.ref(null),j=e.ref(null),G=e.ref(null),W=e.ref(null),H=e.ref(0),Y=e.ref(0),X=e.ref(0),t=e.computed({get:()=>J(),set:l=>l});function J(){const l=he.useNestedProp({userConfig:p.config,defaultConfig:me});return l.theme?{...he.useNestedProp({userConfig:n.themes.vue_ui_waffle[l.theme]||p.config,defaultConfig:l}),customPalette:n.themePalettes[l.theme]||n.palette}:l}e.watch(()=>p.config,l=>{t.value=J(),K(),H.value+=1,Y.value+=1,X.value+=1},{deep:!0});const E=e.ref(null);function K(){if(n.objectIsEmpty(p.dataset)?n.error({componentName:"VueUiWaffle",type:"dataset"}):p.dataset.forEach((l,r)=>{n.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:a,index:r})})}),t.value.responsive){const l=de.throttle(()=>{const{width:r,height:a}=de.useResponsive({chart:_.value,title:t.value.style.chart.title.text?j.value:null,legend:t.value.style.chart.legend.show?G.value:null,source:W.value});k.value.width=r,k.value.height=a,f.value.width=r,f.value.height=a});E.value=new ResizeObserver(l),E.value.observe(_.value.parentNode)}}e.onMounted(()=>{K()}),e.onBeforeUnmount(()=>{E.value&&E.value.disconnect()});const{isPrinting:Q,isImaging:Z,generatePdf:ee,generateImage:te}=pe.usePrinter({elementId:`vue-ui-waffle_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-waffle"}),le=e.computed(()=>n.convertCustomPalette(t.value.customPalette)),m=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),k=e.ref({height:512,width:512}),f=e.ref({top:0,left:0,height:512,width:512}),w=e.computed(()=>(f.value.width-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),C=e.computed(()=>(f.value.height-t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.spaceBetween)/t.value.style.chart.layout.grid.size),$=e.computed(()=>f.value.width/t.value.style.chart.layout.grid.size),I=e.computed(()=>f.value.height/t.value.style.chart.layout.grid.size);function ae(l){const r=t.value.style.chart.layout.grid.size*t.value.style.chart.layout.grid.size,a=l.reduce((h,R)=>h+R,0),o=l.map(h=>h/a*r),u=o.map(Math.floor),i=o.map(h=>h%1);let d=r-u.reduce((h,R)=>h+R,0);for(;d>0;){let h=i.indexOf(Math.max(...i));u[h]+=1,i[h]=0,d-=1}return u}function oe(){return p.dataset.map((l,r)=>({...l,color:n.convertColorToHex(l.color)||le.value[r]||n.palette[r]||n.palette[r%n.palette.length],uid:`serie_${r}`,absoluteIndex:r}))}const re=e.computed(()=>oe()),c=e.ref(re.value);e.watch(()=>p.dataset,l=>{c.value=oe()},{deep:!0});const ke=e.computed(()=>{const l=c.value.filter((r,a)=>!v.value.includes(r.uid)).map((r,a)=>(r.values||[]).reduce((o,u)=>o+u,0));return ae(l)}),we=e.computed(()=>{const l=c.value.map((r,a)=>(r.values||[]).reduce((o,u)=>o+u));return ae(l)}),L=e.computed(()=>(p.dataset.forEach((l,r)=>{[null,void 0].includes(l.values)&&n.error({componentName:"VueUiWaffle",type:"datasetSerieAttribute",property:"values (number[])",index:r})}),c.value.filter((l,r)=>!v.value.includes(l.uid)).map((l,r)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,o)=>a+o,0),absoluteValues:l.values||[],proportion:ke.value[r]})))),Ce=e.computed(()=>c.value.map((l,r)=>({absoluteIndex:l.absoluteIndex,uid:l.uid,name:l.name,color:l.color,value:(l.values||[]).reduce((a,o)=>a+o,0),absoluteValues:l.values||[],proportion:we.value[r]})));function xe(){return Ce.value.map(l=>({name:l.name,color:l.color,value:l.value,proportion:l.proportion}))}const Be=e.computed(()=>{let l=0;return L.value.map((r,a)=>{const o=l,u=o+r.proportion,i=[];for(let d=Math.floor(o);d<Math.floor(u);d+=1)i.push(d);return l=u,{...r,start:o,rects:i}})}),s=e.computed(()=>Be.value.flatMap((l,r)=>l.rects.map((a,o)=>({isFirst:o===0,isLongEnough:a.length>2,name:l.name,color:l.color,value:l.value,serieIndex:r,absoluteStartIndex:o<3,serieId:l.uid,...l}))).map((l,r)=>({...l,isAbsoluteFirst:r%t.value.style.chart.layout.grid.size===0}))),P=e.computed(()=>{const l=[];for(let r=0;r<t.value.style.chart.layout.grid.size;r+=1)for(let a=0;a<t.value.style.chart.layout.grid.size;a+=1)l.push({isStartOfLine:a===0,position:t.value.style.chart.layout.grid.vertical?r:a,x:(t.value.style.chart.layout.grid.vertical?r:a)*(w.value+t.value.style.chart.layout.grid.spaceBetween),y:(t.value.style.chart.layout.grid.vertical?a:r)*(C.value+t.value.style.chart.layout.grid.spaceBetween)+f.value.top});return l}),v=e.ref([]),x=e.ref(!1),ue=e.ref(null),ne=e.ref(null);function se(l){if(!t.value.useAnimation){v.value.includes(l)?v.value=v.value.filter(u=>u!==l):v.value.length<S.value.length-1&&S.value.length>1&&v.value.push(l);return}const r=re.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);let o=c.value.find(u=>u.uid===l).values.reduce((u,i)=>u+i,0);if(v.value.includes(l)){let i=function(){o>u?(cancelAnimationFrame(ue.value),c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[u]}:d),x.value=!1):(x.value=!0,o+=u*.025,c.value=c.value.map((d,h)=>d.uid===l?{...d,values:[o]}:d),ue.value=requestAnimationFrame(i))};v.value=v.value.filter(d=>d!==l);const u=r;i()}else if(v.value.length<S.value.length-1&&S.value.length>1){let u=function(){o<.1?(cancelAnimationFrame(ne.value),v.value.push(l),c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[0]}:i),x.value=!1):(x.value=!0,o/=1.5,c.value=c.value.map((i,d)=>i.uid===l?{...i,values:[o]}:i),ne.value=requestAnimationFrame(u))};u()}ge("selectLegend",L.value.map(u=>({name:u.name,color:u.color,value:u.value,proportion:u.proportion/Math.pow(t.value.style.chart.layout.grid.size,2)})))}const S=e.computed(()=>c.value.map((l,r)=>({name:l.name,color:l.color||le[r]||n.palette[r]||n.palette[r%n.palette.length],value:(l.values||[]).reduce((a,o)=>a+o,0),uid:l.uid,shape:"square"})).map((l,r)=>({...l,proportion:l.value/c.value.map(a=>(a.values||[]).reduce((o,u)=>o+u,0)).reduce((a,o)=>a+o,0),opacity:v.value.includes(l.uid)?.5:1,segregate:()=>se(l.uid),isSegregated:v.value.includes(l.uid)}))),_e=e.computed(()=>({cy:"waffle-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),y=e.computed(()=>L.value.map(l=>l.value).reduce((l,r)=>l+r,0)),O=e.ref(null);function Se(l){if(v.value.length===p.dataset.length)return;const r=s.value[l];O.value={datapoint:r,seriesIndex:r.absoluteIndex,series:c.value,config:t.value},A.value=!0,B.value=s.value[l].serieIndex;const a=t.value.style.chart.tooltip.customFormat;if(n.isFunction(a)&&n.functionReturnsString(()=>a({seriesIndex:s.value[l].absoluteIndex,datapoint:r,series:c.value,config:t.value})))D.value=a({seriesIndex:s.value[l].absoluteIndex,datapoint:r,series:c.value,config:t.value});else{let o="";if(o+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${r.name}</div>`,o+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${r.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(o+=`<b>${n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,r.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:r.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:r,seriesIndex:s.value[l].absoluteIndex,series:c.value})}</b>`),t.value.style.chart.tooltip.showPercentage){const u=n.dataLabel({v:r.value/y.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage});t.value.style.chart.tooltip.showValue?o+=`<span>(${u})</span></div>`:o+=`<b>${u}%</b></div>`}D.value=o}}const g=e.computed(()=>{const l=L.value.map(a=>({name:a.name,color:a.color})),r=L.value.map(a=>a.value);return{head:l,body:r}});function q(l){return t.value.useBlurOnHover&&![null,void 0].includes(B.value)&&B.value!==l?`url(#blur_${b.value})`:""}function ie(){e.nextTick(()=>{const l=g.value.head.map((o,u)=>[[o.name],[g.value.body[u]],[isNaN(g.value.body[u]/y.value)?"-":g.value.body[u]/y.value*100]]),r=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),a=n.createCsvContent(r);n.downloadCsv({csvContent:a,title:t.value.style.chart.title.text||"vue-ui-waffle"})})}const z=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,y.value,n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:y.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),"100%"],r=g.value.head.map((u,i)=>[{color:u.color,name:u.name},n.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,g.value.body[i],n.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:g.value.body[i],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue})),isNaN(g.value.body[i]/y.value)?"-":n.dataLabel({v:g.value.body[i]/y.value*100,s:"%",r:t.value.table.td.roundingPercentage})]),a={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},shape:"square",breakpoint:t.value.table.responsiveBreakpoint},o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:r,config:a,colNames:o}}),T=e.ref(!1);function Ne(l){T.value=l,U.value+=1}function ce(){m.value.showTable=!m.value.showTable}function ve(){m.value.showTooltip=!m.value.showTooltip}const F=e.ref(!1);function M(){F.value=!F.value}return ye({getData:xe,generatePdf:ee,generateCsv:ie,generateImage:te,toggleTable:ce,toggleTooltip:ve,toggleAnnotator:M}),(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-waffle ${T.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"waffleChart",ref:_,id:`vue-ui-waffle_${b.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ze.PenAndPaper,{key:0,parent:_.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:F.value,onClose:M},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:j,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock($e._sfc_main,{key:`title_${H.value}`,config:{title:{cy:"waffle-title",...t.value.style.chart.title},subtitle:{cy:"waffle-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&V.value?(e.openBlock(),e.createBlock(pe.UserOptions,{ref_key:"details",ref:be,key:`user_options_${U.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Q),isImaging:e.unref(Z),uid:b.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:T.value,isTooltip:m.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:F.value,onToggleFullscreen:Ne,onGeneratePdf:e.unref(ee),onGenerateCsv:ie,onGenerateImage:e.unref(te),onToggleTable:ce,onToggleTooltip:ve,onToggleAnnotator:M},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(n.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ie._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(a,o)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${b.value}_${o}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(n.setOpacity)(e.unref(n.shiftHue)(a.color,.05),100-t.value.style.chart.layout.rect.gradientIntensity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Me)],8,Oe))),256))]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${b.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},Ge,8,Re)]),t.value.useCustomCells&&s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(P.value,(a,o)=>(e.openBlock(),e.createElementBlock("foreignObject",{x:a.x,y:a.y,height:C.value<=0?1e-4:C.value,width:w.value<=0?1e-4:w.value,class:"vue-ui-waffle-custom-cell-foreignObject"},[e.renderSlot(l.$slots,"cell",e.normalizeProps(e.guardReactiveProps({cell:{...a,color:s.value[o].color,...s.value[o]},isSelected:[null,void 0].includes(B.value)?!0:s.value[o].serieIndex===B.value})),void 0,!0)],8,We))),256)):e.createCommentVNode("",!0),!s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock("rect",{key:1,x:12,y:12,height:f.value.height-24,width:f.value.width-24,rx:3,fill:"none",stroke:"black"},null,8,He)):s.value.length&&!t.value.useCustomCells?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,o)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:C.value<=0?1e-4:C.value,width:w.value<=0?1e-4:w.value,fill:"white",stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:q(s.value[o].serieIndex)},null,8,Ye))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,o)=>(e.openBlock(),e.createElementBlock("rect",{rx:t.value.style.chart.layout.rect.rounded?t.value.style.chart.layout.rect.rounding:0,x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:C.value<=0?1e-4:C.value,width:w.value<=0?1e-4:w.value,fill:t.value.style.chart.layout.rect.useGradient&&t.value.style.chart.layout.rect.gradientIntensity>0?`url(#gradient_${b.value}_${o})`:s.value[o].color,stroke:t.value.style.chart.layout.rect.stroke,"stroke-width":t.value.style.chart.layout.rect.strokeWidth,filter:q(s.value[o].serieIndex)},null,8,Xe))),256))],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value.length&&!x.value&&!t.value.style.chart.layout.grid.vertical&&t.value.style.chart.layout.labels.captions.show&&(s.value[o].isFirst&&a.position<t.value.style.chart.layout.grid.size-2||s.value[o].isAbsoluteFirst&&o%t.value.style.chart.layout.grid.size===0&&s.value[o].absoluteStartIndex)?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.x+t.value.style.chart.layout.labels.captions.offsetX+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.labels.captions.offsetY+t.value.style.chart.layout.grid.spaceBetween/2,height:I.value<=0?1e-4:I.value,width:$.value*t.value.style.chart.layout.grid.size<=0?1e-4:$.value*t.value.style.chart.layout.grid.size,filter:q(s.value[o].serieIndex)},[e.createElementVNode("div",{class:"vue-ui-waffle-caption",style:e.normalizeStyle(`height: 100%; width: 100%; font-size:${t.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${$.value/12}px;color:${e.unref(n.adaptColorToBackground)(s.value[o].color)};gap:2px`)},[t.value.style.chart.layout.labels.captions.showSerieName?(e.openBlock(),e.createElementBlock("span",Ke,e.toDisplayString(t.value.style.chart.layout.labels.captions.serieNameAbbreviation?e.unref(n.abbreviate)({source:s.value[o].name,length:t.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize}):s.value[o].name)+": ",1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage?(e.openBlock(),e.createElementBlock("span",Qe,e.toDisplayString(e.unref(n.dataLabel)({v:s.value[o].proportion,s:"%",r:t.value.style.chart.layout.labels.captions.roundingPercentage})),1)):e.createCommentVNode("",!0),t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",Ze," ("+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[o].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[o].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[o],position:a}))+") ",1)):e.createCommentVNode("",!0),!t.value.style.chart.layout.labels.captions.showPercentage&&t.value.style.chart.layout.labels.captions.showValue?(e.openBlock(),e.createElementBlock("span",et,e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,s.value[o].value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:s.value[o].value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.layout.labels.captions.roundingValue}),{datapoint:s.value[o],position:a})),1)):e.createCommentVNode("",!0)],4)],8,Je)):e.createCommentVNode("",!0)],64))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,(a,o)=>(e.openBlock(),e.createElementBlock("rect",{onMouseover:u=>Se(o),onMouseleave:r[0]||(r[0]=u=>{A.value=!1,B.value=null}),x:a.x+t.value.style.chart.layout.grid.spaceBetween/2,y:a.y+t.value.style.chart.layout.grid.spaceBetween/2,height:I.value<=0?1e-4:I.value,width:$.value<=0?1e-4:$.value,fill:"transparent",stroke:"none"},null,40,tt))),256)),e.renderSlot(l.$slots,"svg",{svg:k.value},void 0,!0)],14,De)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",lt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Q)||e.unref(Z)})),void 0,!0)])):e.createCommentVNode("",!0),V.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ve.default,{key:5,config:{type:"waffle",style:{backgroundColor:t.value.style.chart.backgroundColor,waffle:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:G},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Te.Legend,{key:`legend_${X.value}`,legendSet:S.value,config:_e.value,onClickMarker:r[1]||(r[1]=({legend:a})=>se(a.uid))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:o=>a.segregate(),style:e.normalizeStyle(`opacity:${v.value.includes(a.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(a.name)+": "+e.toDisplayString(e.unref(n.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,a.value,e.unref(n.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:a.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue,isAnimating:x.value}),{datapoint:a}))+" ",1),v.value.includes(a.uid)?(e.openBlock(),e.createElementBlock("span",rt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",ot," ("+e.toDisplayString(isNaN(a.value/y.value)?"-":e.unref(n.dataLabel)({v:a.value/y.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage,isAnimating:x.value}))+") ",1))],12,at)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:S.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:W,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Le._sfc_main,{show:m.value.showTooltip&&A.value&&v.value.length<p.dataset.length,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,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:_.value,content:D.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function",fontSize:t.value.style.chart.tooltip.fontSize},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...O.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","fontSize"]),V.value?(e.openBlock(),e.createBlock(Ee.default,{key:7,hideDetails:"",config:{open:m.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(Pe.DataTable,{key:`table_${Y.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:r[2]||(r[2]=a=>m.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,ut)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ae))}},st=Fe._export_sfc(nt,[["__scopeId","data-v-89a6ba4c"]]);exports.default=st;