vue-data-ui 2.4.86 → 2.4.87

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 (169) hide show
  1. package/dist/{Arrow-Bh7Ezbzf.cjs → Arrow-B6C-c2DT.cjs} +1 -1
  2. package/dist/{Arrow-DpgbndsU.js → Arrow-C8PrFeHS.js} +1 -1
  3. package/dist/{BaseIcon-CaKclr1e.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
  4. package/dist/{BaseIcon-CdPe2CAc.js → BaseIcon-plElWres.js} +1 -1
  5. package/dist/{DataTable-DuosyZ6d.cjs → DataTable-BmKl4AAb.cjs} +1 -1
  6. package/dist/{DataTable-BfiPjHpN.js → DataTable-CKke7C6w.js} +2 -2
  7. package/dist/{Legend-BnKYc6ZY.cjs → Legend-CY6wjCYY.cjs} +1 -1
  8. package/dist/{Legend-DiFDWEo2.js → Legend-DMeEvZOT.js} +2 -2
  9. package/dist/{PackageVersion-B5rBHZEb.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
  10. package/dist/{PackageVersion-qom4AEUr.js → PackageVersion-Rh3rgo6A.js} +1 -1
  11. package/dist/{PenAndPaper-5OV7IAca.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
  12. package/dist/{PenAndPaper-C-1AU46J.js → PenAndPaper-DqVsdeLc.js} +3 -3
  13. package/dist/{Shape-Dmv7nCLC.js → Shape-CL3HglYL.js} +1 -1
  14. package/dist/{Shape-CmsIulaS.cjs → Shape-DEwnzwRB.cjs} +1 -1
  15. package/dist/{Slicer-CmBt4xoj.cjs → Slicer-CnNbe-dl.cjs} +1 -1
  16. package/dist/{Slicer-D4ugcR39.js → Slicer-ZryQKOl5.js} +2 -2
  17. package/dist/{Title-ClQ27HaB.js → Title-BU5Aq1_x.js} +1 -1
  18. package/dist/{Title-D3kX1BVl.cjs → Title-C10173bN.cjs} +1 -1
  19. package/dist/{Tooltip-CARCyQNT.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
  20. package/dist/{Tooltip-CGYgJoPR.js → Tooltip-Dm-obTbx.js} +1 -1
  21. package/dist/{index-DqxDpUy0.cjs → index-1HOIfTy2.cjs} +1 -1
  22. package/dist/{index-CXx0JV8R.js → index-BG5J_ybN.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-DNWKDmdP.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
  25. package/dist/{useNestedProp-B-WAbP7E.js → useNestedProp-BN1ZmAKT.js} +1 -1
  26. package/dist/{usePrinter-Ctor1UK0.js → usePrinter-CWeJt84b.js} +1 -1
  27. package/dist/{usePrinter-BC7U4s0U.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
  28. package/dist/{vue-data-ui-DkgWwqtw.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
  29. package/dist/{vue-data-ui-BpAZx3Va.js → vue-data-ui-B5u9V9lC.js} +60 -60
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-1A6t1biQ.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
  33. package/dist/{vue-ui-3d-bar-ngD35pLb.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
  34. package/dist/{vue-ui-accordion-XAEm2rxj.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-BljYKOXR.js → vue-ui-accordion-JBOceVq2.js} +3 -3
  36. package/dist/{vue-ui-age-pyramid-qfVpUr52.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
  37. package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
  38. package/dist/{vue-ui-annotator-CH9QWqAv.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
  39. package/dist/{vue-ui-annotator-pFybuGix.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-C6y7Ddg-.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
  41. package/dist/{vue-ui-bullet-BH7zmX0E.js → vue-ui-bullet-DzosZUYl.js} +8 -8
  42. package/dist/{vue-ui-candlestick-DtCmxeo5.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-RCtFAjEU.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
  44. package/dist/{vue-ui-carousel-table-BeDenKJo.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-BUL063mi.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
  46. package/dist/{vue-ui-chestnut-xDD_4bz2.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
  47. package/dist/{vue-ui-chestnut-B6EalNLT.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
  48. package/dist/{vue-ui-cursor-DbV0HXHB.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-D6Qndjnn.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
  50. package/dist/{vue-ui-dashboard-B_4ot4bz.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
  51. package/dist/{vue-ui-dashboard-B_kj8L_A.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
  52. package/dist/{vue-ui-digits-DKs2fTGz.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
  53. package/dist/{vue-ui-digits-BLI4lCZC.js → vue-ui-digits-CF6qbsmO.js} +2 -2
  54. package/dist/{vue-ui-donut-wBZoPkru.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
  55. package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
  56. package/dist/{vue-ui-donut-evolution-ClOGDHiK.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
  57. package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
  58. package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-PR9tHMvD.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
  60. package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
  61. package/dist/{vue-ui-flow-CxW8g0NW.js → vue-ui-flow-Cie8iHDK.js} +31 -31
  62. package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
  63. package/dist/{vue-ui-funnel-BJNlWIq5.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
  64. package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
  65. package/dist/{vue-ui-galaxy-DuGLDGzf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
  66. package/dist/{vue-ui-gauge-CBx84KCt.js → vue-ui-gauge-CtVmazzP.js} +7 -7
  67. package/dist/{vue-ui-gauge-Dpcxdegh.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
  68. package/dist/{vue-ui-gizmo-Djw5T_Vr.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
  69. package/dist/{vue-ui-gizmo-BPIyNNkI.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
  70. package/dist/{vue-ui-heatmap-DI8gVwfM.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
  71. package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
  72. package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
  73. package/dist/{vue-ui-history-plot-CWfWMwqw.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
  74. package/dist/{vue-ui-kpi-BjGIj-IQ.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
  75. package/dist/{vue-ui-kpi-CBJZp-nE.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
  76. package/dist/{vue-ui-mini-loader-DfeNWsJk.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-Cafts_cp.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
  78. package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
  79. package/dist/{vue-ui-molecule-BTO5WRuL.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
  80. package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-CKGwiCsd.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
  82. package/dist/{vue-ui-nested-donuts-BvkJoiOT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
  83. package/dist/{vue-ui-nested-donuts-JGie_log.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
  84. package/dist/{vue-ui-onion-BXauNEVz.js → vue-ui-onion-D1wExDGP.js} +44 -44
  85. package/dist/{vue-ui-onion-BWoVr0FT.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
  86. package/dist/{vue-ui-parallel-coordinate-plot-njogPtYo.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
  87. package/dist/{vue-ui-parallel-coordinate-plot-BrvB0jer.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
  88. package/dist/{vue-ui-quadrant-DnaOzxMc.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
  89. package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-kAG9Eaxb.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
  91. package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
  92. package/dist/{vue-ui-radar-DRmP5yb4.js → vue-ui-radar--Bt67L0i.js} +107 -107
  93. package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
  94. package/dist/{vue-ui-rating-De5IfgHJ.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
  95. package/dist/{vue-ui-rating-BtLDJSwm.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
  96. package/dist/{vue-ui-relation-circle-B2l-2KnH.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
  97. package/dist/{vue-ui-relation-circle-DKQl7eWX.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
  98. package/dist/{vue-ui-rings-KQoMkv4v.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
  99. package/dist/{vue-ui-rings-Dwyz2fEm.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
  100. package/dist/{vue-ui-scatter-DeOrkD2Y.js → vue-ui-scatter-BwlbShJE.js} +85 -85
  101. package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
  102. package/dist/{vue-ui-screenshot-BLp1_Q6K.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-D1Ekbb27.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
  104. package/dist/{vue-ui-skeleton-qIxxRRaX.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-Cw0-Ac_0.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
  106. package/dist/{vue-ui-smiley-D3WgXFhb.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-D3oqt6Rg.js → vue-ui-smiley-hIooew3m.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-DyhcWMWz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-CVyPm6ms.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-CRMMOv0T.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-C0av7SAn.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-BQnxP_8u.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-B3K4si6u.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-Bo3pkA-I.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-DVAas7L7.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
  116. package/dist/{vue-ui-sparkline-DIHKGu0H.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
  117. package/dist/{vue-ui-sparkline-CDqFBaPU.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-DG87wFd5.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
  119. package/dist/{vue-ui-sparkstackbar-CC-OaMTb.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
  120. package/dist/{vue-ui-stackbar-fZKaRitE.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
  121. package/dist/{vue-ui-stackbar-CVHKHNom.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
  122. package/dist/{vue-ui-strip-plot-WOMaN28I.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
  123. package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
  124. package/dist/{vue-ui-table-CTtYDZPd.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
  125. package/dist/{vue-ui-table-a4m3lpRq.js → vue-ui-table-XThR7HtD.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-i00aBLPq.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-0vDMKYpV.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
  128. package/dist/{vue-ui-table-sparkline-D5lngzCM.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
  129. package/dist/{vue-ui-table-sparkline-DW7t3xfB.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
  130. package/dist/{vue-ui-thermometer-3aeRI-SM.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
  131. package/dist/{vue-ui-thermometer-QtlVD4-S.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
  132. package/dist/{vue-ui-timer-B1nkj0WG.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
  133. package/dist/{vue-ui-timer-mRaLpRHZ.js → vue-ui-timer-CwJoQApu.js} +5 -5
  134. package/dist/{vue-ui-tiremarks-Dv2O6FpS.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
  135. package/dist/{vue-ui-tiremarks-xMuvEsN7.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
  136. package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
  137. package/dist/{vue-ui-treemap-D89aQanB.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
  138. package/dist/{vue-ui-vertical-bar-CwHag6jq.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
  139. package/dist/{vue-ui-vertical-bar-BpLIp4qR.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
  140. package/dist/{vue-ui-waffle-sr2mWvpN.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
  141. package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
  142. package/dist/{vue-ui-wheel-B7DOHXW8.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
  143. package/dist/{vue-ui-wheel-C0KYRHGC.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
  144. package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-BxMb7oCr.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
  146. package/dist/{vue-ui-xy-DlyUTKB5.js → vue-ui-xy-DPT3SYuU.js} +24 -16
  147. package/dist/{vue-ui-xy-D5ROTNHD.cjs → vue-ui-xy-DfnDyl8o.cjs} +2 -2
  148. package/dist/{vue-ui-xy-canvas-DHvkJKQH.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
  149. package/dist/{vue-ui-xy-canvas-BDMk6XVE.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-BgsDYe37.cjs +0 -1
  152. package/dist/vue-ui-donut-B1Cg4vpI.cjs +0 -1
  153. package/dist/vue-ui-donut-evolution-CgB_aexh.cjs +0 -1
  154. package/dist/vue-ui-dumbbell-Cm5O6D4x.cjs +0 -9
  155. package/dist/vue-ui-flow-CIkXePxd.cjs +0 -1
  156. package/dist/vue-ui-funnel-BLXk1z5r.cjs +0 -1
  157. package/dist/vue-ui-galaxy-C01Apc4E.cjs +0 -1
  158. package/dist/vue-ui-heatmap-DYPE1Efx.cjs +0 -1
  159. package/dist/vue-ui-history-plot-BeYYrq5_.cjs +0 -1
  160. package/dist/vue-ui-molecule-Ckh2JsOJ.cjs +0 -1
  161. package/dist/vue-ui-mood-radar-WHFk1KC1.cjs +0 -1
  162. package/dist/vue-ui-quadrant-D8krEYWV.cjs +0 -1
  163. package/dist/vue-ui-quick-chart-DTiell5S.cjs +0 -15
  164. package/dist/vue-ui-radar-DKB9rVav.cjs +0 -1
  165. package/dist/vue-ui-scatter-CDT3zyXP.cjs +0 -1
  166. package/dist/vue-ui-strip-plot-C1pjZ1AT.cjs +0 -1
  167. package/dist/vue-ui-treemap-BupfwSFa.cjs +0 -1
  168. package/dist/vue-ui-waffle-DuPI0NV4.cjs +0 -1
  169. package/dist/vue-ui-word-cloud-BCPMmXhU.cjs +0 -1
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-DqxDpUy0.cjs"),Ve=require("./useNestedProp-DNWKDmdP.cjs"),Me=require("./useResponsive-BJ7DTGpm.cjs"),Te=require("./usePrinter-BC7U4s0U.cjs"),at=require("./Slicer-CmBt4xoj.cjs"),lt=require("./Tooltip-CARCyQNT.cjs"),ot=require("./Title-D3kX1BVl.cjs"),rt=require("./Legend-BnKYc6ZY.cjs"),nt=require("./vue-ui-accordion-XAEm2rxj.cjs"),st=require("./DataTable-DuosyZ6d.cjs"),it=require("./vue-ui-skeleton-qIxxRRaX.cjs"),ut=require("./PackageVersion-B5rBHZEb.cjs"),ct=require("./PenAndPaper-5OV7IAca.cjs"),dt=require("./useUserOptionState-BgepsfED.cjs"),ht=require("./Shape-CmsIulaS.cjs"),vt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),mt=["id"],gt=["xmlns","viewBox"],yt=["x","y","width","height"],bt={key:1},pt=["id"],ft=["stop-color"],kt=["stop-color"],xt=["stop-color"],Bt=["x1","x2","y1","y2","stroke"],wt=["x1","x2","y1","y2","stroke"],Ct=["x1","x2","y1","y2","stroke"],zt=["x1","x2","y1","y2","stroke"],St={key:0},Lt=["x","y","height","rx","width","fill","stroke","stroke-width"],_t={key:0},Et=["x","y","height","rx","width","fill","stroke","stroke-width"],Nt=["x","y","width","rx","height","fill","stroke","stroke-width"],$t={key:0},Vt=["x","y","width","rx","height","fill","stroke","stroke-width"],Mt=["x1","x2","y1","y2","stroke","stroke-width"],Tt=["x1","x2","y1","y2","stroke","stroke-width"],Pt=["x","y","font-size","fill","font-weight"],Ft=["transform","font-size","fill","font-weight"],It=["x","y","font-size","fill","font-weight"],Rt={key:0},Ot=["x","y","font-size","font-weight","fill"],Dt=["x","y","font-size","fill","font-weight"],At={key:0},Ht=["x","y","font-size","font-weight","fill"],qt=["x1","x2","y1","y2","stroke"],Ut=["x","y","font-size","font-weight","fill"],Wt=["x1","x2","y1","y2","stroke"],Yt=["font-size","font-weight","fill","text-anchor","transform"],Xt={key:0},Gt={key:1},Jt=["text-anchor","font-size","font-weight","fill","transform","onClick"],Zt={key:0},Kt={key:1},Qt=["font-size","font-weight","fill","x","y","onClick"],jt=["x","y","width","height","onClick","onMouseenter","fill"],ea=["x","y","width","height","onClick","onMouseenter","fill"],ta={key:4,class:"vue-data-ui-watermark"},aa=["onClick"],la=["innerHTML"],oa={__name:"vue-ui-stackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint","selectLegend","selectTimeLabel"],setup(G,{expose:Pe,emit:J}){const h=G,{vue_ui_stackbar:Fe}=u.useConfig(),Ie=e.useSlots(),M=e.computed({get(){return!!h.dataset&&h.dataset.length},set(l){return l}}),T=e.ref(null),C=e.ref(u.createUid()),D=e.ref(!1),ee=e.ref(null),Z=e.ref(""),p=e.ref([]),te=e.ref(0),ae=e.ref(null),le=e.ref(null),oe=e.ref(null),re=e.ref(null),ne=e.ref(0),A=e.ref(!1),F=e.ref(null),_=e.ref(!1),Re=e.ref(0),Oe=e.ref(0),De=e.ref(0),P=e.ref(null);e.onMounted(()=>{Q()});const t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:K,setUserOptionsVisibility:se,keepUserOptionState:ie}=dt.useUserOptionState({config:t.value});function ue(){const l=Ve.useNestedProp({userConfig:h.config,defaultConfig:Fe});let o={};return l.theme?o={...Ve.useNestedProp({userConfig:u.themes.vue_ui_stackbar[l.theme]||h.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:o=l,h.config&&u.hasDeepProperty(h.config,"style.chart.grid.scale.scaleMin")?o.style.chart.grid.scale.scaleMin=h.config.style.chart.grid.scale.scaleMin:o.style.chart.grid.scale.scaleMin=null,h.config&&u.hasDeepProperty(h.config,"style.chart.grid.scale.scaleMax")?o.style.chart.grid.scale.scaleMax=h.config.style.chart.grid.scale.scaleMax:o.style.chart.grid.scale.scaleMax=null,h.config&&u.hasDeepProperty(h.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=h.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,h.config&&u.hasDeepProperty(h.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=h.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}e.watch(()=>h.config,l=>{t.value=ue(),K.value=!t.value.showOnChartHover,Q(),Re.value+=1,Oe.value+=1,De.value+=1},{deep:!0}),e.watch(()=>h.dataset,l=>{ye()},{deep:!0});const b=e.ref({dataLabels:{show:t.value.style.chart.bars.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),{isPrinting:ce,isImaging:de,generatePdf:he,generateImage:ve}=Te.usePrinter({elementId:`stackbar_${C.value}`,fileName:t.value.style.chart.title.text||"vue-ui-stackbar"}),H=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,paddingRatio:{top:t.value.style.chart.padding.top/t.value.style.chart.height,right:t.value.style.chart.padding.right/t.value.style.chart.width,bottom:t.value.style.chart.padding.bottom/t.value.style.chart.height,left:t.value.style.chart.padding.left/t.value.style.chart.width}}),Ae=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),me=e.ref(null),ge=e.ref(null);e.onMounted(()=>{Q()});function Q(){if(u.objectIsEmpty(h.dataset)?u.error({componentName:"VueUiStackbar",type:"dataset"}):h.dataset.forEach((l,o)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{M.value=!1,u.error({componentName:"VueUiStackbar",type:"datasetSerieAttribute",property:a,index:o})})}),setTimeout(()=>{_.value=!0},10),t.value.responsive){const l=Me.throttle(()=>{_.value=!1;const{width:o,height:a}=Me.useResponsive({chart:T.value,title:t.value.style.chart.title.text?ae.value:null,legend:t.value.style.chart.legend.show?le.value:null,slicer:t.value.style.chart.zoom.show&&S.value>1?oe.value:null,source:re.value});requestAnimationFrame(()=>{H.value.width=o,H.value.height=a,clearTimeout(ge.value),ge.value=setTimeout(()=>{_.value=!0},10)})});me.value=new ResizeObserver(l),me.value.observe(T.value.parentNode)}be()}const n=e.computed(()=>{const{height:l,width:o}=H.value,{right:a}=H.value.paddingRatio,r=t.value.style.chart.padding.top,i=o-o*a,s=l-t.value.style.chart.padding.bottom,y=t.value.style.chart.padding.left,E=o-y-o*a,N=l-r-t.value.style.chart.padding.bottom;return{chartHeight:l,chartWidth:o,top:r,right:i,bottom:s,left:y,width:E,height:N<0?0:N}}),z=e.computed(()=>h.dataset.map((l,o)=>{const a=u.convertColorToHex(l.color)||Ae.value[o]||u.palette[o]||u.palette[o%u.palette.length];return{...l,series:JSON.parse(JSON.stringify(l.series)).map(r=>t.value.style.chart.bars.distributed?Math.abs(r):r),signedSeries:l.series.map(r=>r>=0?1:-1),absoluteIndex:o,id:u.createUid(),color:a}})),S=e.computed(()=>Math.max(...z.value.filter(l=>!p.value.includes(l.id)).map(l=>l.series.length))),c=e.ref({start:0,end:Math.max(...h.dataset.map(l=>l.series.length))});function ye(){be()}async function be(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&P.value?(t.value.style.chart.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),P.value&&P.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),P.value&&P.value.setEndValue(He(t.value.style.chart.zoom.endIndex+1)))):(c.value={start:0,end:Math.max(...h.dataset.map(l=>l.series.length))},ne.value+=1)}function He(l){const o=Math.max(...h.dataset.map(a=>a.series.length));return l>o?o:l<0||t.value.style.chart.zoom.startIndex!==null&&l<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:l}const d=e.computed(()=>{let l;return t.value.orientation==="vertical"?l=n.value.width/(c.value.end-c.value.start):l=n.value.height/(c.value.end-c.value.start),l<=0?0:l}),I=e.computed(()=>u.sumSeries(z.value.filter(l=>!p.value.includes(l.id))).slice(c.value.start,c.value.end)),qe=e.computed(()=>u.sumSeries(z.value.filter(l=>!p.value.includes(l.id)).map(l=>({...l,series:l.series.map((o,a)=>l.signedSeries[a]===-1&&o>=0?-o:o)}))).slice(c.value.start,c.value.end)),q=e.computed(()=>{const l=z.value.filter(o=>!p.value.includes(o.id));return{positive:u.sumSeries(l.map(o=>({...o,series:o.series.slice(c.value.start,c.value.end).map(a=>a>=0?a:0)}))),negative:u.sumSeries(l.map(o=>({...o,series:o.series.slice(c.value.start,c.value.end).map(a=>a<0?a:0)})))}}),B=e.computed(()=>{const l=t.value.style.chart.grid.scale.scaleMax!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMax:Math.max(...q.value.positive),o=Math.min(...q.value.negative),a=t.value.style.chart.grid.scale.scaleMin!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMin:[-1/0,1/0,NaN,void 0,null].includes(o)?0:o,r=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?u.calculateNiceScaleWithExactExtremes(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks):u.calculateNiceScale(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks);return r.ticks.map(i=>({zero:n.value.bottom-n.value.height*(Math.abs(r.min)/(r.max+Math.abs(r.min))),y:n.value.bottom-n.value.height*((i+Math.abs(r.min))/(r.max+Math.abs(r.min))),x:n.value.left-8,horizontal_zero:n.value.left+n.value.width*(Math.abs(r.min)/(r.max+Math.abs(r.min))),horizontal_x:n.value.left+n.value.width*((i+Math.abs(r.min))/(r.max+Math.abs(r.min))),horizontal_y:n.value.bottom-8,value:i}))}),L=e.computed(()=>{const l=[];for(let o=0;o<S.value;o+=1)l.push({text:t.value.style.chart.grid.x.timeLabels.values[o]||String(o),absoluteIndex:o});return l.slice(c.value.start,c.value.end)}),g=e.computed(()=>{if(!M.value)return[];let l=Array(S.value).fill(0),o=Array(S.value).fill(0),a=Array(S.value).fill(0),r=Array(S.value).fill(0);const i=Math.max(...q.value.positive)||0,s=Math.min(...q.value.negative),y=[-1/0,1/0,NaN,void 0,null].includes(s)?0:s,E=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?u.calculateNiceScaleWithExactExtremes(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:y>0?0:y,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:i<0?0:i,t.value.style.chart.grid.scale.ticks):u.calculateNiceScale(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:y>0?0:y,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:i<0?0:i,t.value.style.chart.grid.scale.ticks),{min:N,max:R}=E,$=R+(N>=0?0:Math.abs(N))||1,f=n.value.height,X=n.value.width,Ne=B.value[0]?B.value[0].zero:n.value.bottom,$e=B.value[0]?B.value[0].horizontal_zero:n.value.left;return z.value.filter(O=>!p.value.includes(O.id)).map(O=>{const w=O.series.slice(c.value.start,c.value.end),Ge=O.signedSeries.slice(c.value.start,c.value.end),Je=w.map((v,m)=>n.value.left+d.value*m+d.value*t.value.style.chart.bars.gapRatio/4),Ze=w.map((v,m)=>n.value.top+d.value*m+d.value*t.value.style.chart.bars.gapRatio/4),Ke=w.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;let V,x;return v>0?(x=f*k,V=Ne-x-l[m],l[m]+=x):(x=f*k,V=Ne+a[m],a[m]+=Math.abs(x)),V}),Qe=w.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;let V,x;return v>0?(x=X*k,V=$e+o[m],o[m]+=x):(x=X*k,V=$e-Math.abs(x)-r[m],r[m]+=Math.abs(x)),V}),je=w.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;return v>0?f*k:f*Math.abs(k)}),et=w.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;return v>0?X*k:X*Math.abs(k)}),tt=w.map(v=>Math.abs(v)).reduce((v,m)=>v+m,0);return{...O,proportions:w.map((v,m)=>t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/tt),series:w,signedSeries:Ge,x:Je,y:Ke,height:je,horizontal_width:et,horizontal_y:Ze,horizontal_x:Qe}})}),pe=e.computed(()=>qe.value.map((l,o)=>({value:l,sign:l>=0?1:-1})));function U(l,o,a,r,i){const s=i===-1&&l>=0?-l:l;return u.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,s,u.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:s,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:o,seriesIndex:a,datapointIndex:r})}function fe(l,o,a,r){return u.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,l,u.dataLabel({v:isNaN(l)?0:l,s:"%",r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:o,seriesIndex:a,datapointIndex:r})}function ke(l){const o=JSON.parse(JSON.stringify(g.value)).map(a=>({name:a.name,value:a.series[l]===0?0:a.series[l]||null,proportion:a.proportions[l]||null,color:a.color,id:a.id}));J("selectDatapoint",{datapoint:o,period:L.value[l]})}function xe(l){F.value=l,D.value=!0;const o=t.value.style.chart.tooltip.customFormat,a=JSON.parse(JSON.stringify(g.value)).map(i=>({name:i.name,absoluteIndex:i.absoluteIndex,value:i.series[l]===0?0:(i.signedSeries[l]===-1&&i.series[l]>=0?-i.series[l]:i.series[l])||null,proportion:i.proportions[l]||null,color:i.color,id:i.id})),r=a.map(i=>Math.abs(i.value)).reduce((i,s)=>i+s,0);if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:g.value,config:t.value})))Z.value=o({seriesIndex:l,datapoint:a,series:g.value,config:t.value});else{const{showValue:i,showPercentage:s,borderColor:y,roundingValue:E,roundingPercentage:N}=t.value.style.chart.tooltip;let R="";L.value[l]&&L.value[l].text&&t.value.style.chart.tooltip.showTimeLabel&&(R+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${y};padding-bottom:6px;margin-bottom:3px;">${L.value[l].text}</div>`);const $=[i&&s?"(":"",i&&s?")":""];a.reverse().forEach(f=>{R+=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("./index-1HOIfTy2.cjs"),Ve=require("./useNestedProp-BFNnjpX-.cjs"),Te=require("./useResponsive-BJ7DTGpm.cjs"),Me=require("./usePrinter-i-j4CdEi.cjs"),at=require("./Slicer-CnNbe-dl.cjs"),lt=require("./Tooltip-CL7aSMgq.cjs"),ot=require("./Title-C10173bN.cjs"),rt=require("./Legend-CY6wjCYY.cjs"),st=require("./vue-ui-accordion-Cd6GaDwU.cjs"),nt=require("./DataTable-BmKl4AAb.cjs"),it=require("./vue-ui-skeleton-CLiDRcQX.cjs"),ut=require("./PackageVersion-DvDNPRrJ.cjs"),ct=require("./PenAndPaper--xHLJRME.cjs"),dt=require("./useUserOptionState-BgepsfED.cjs"),ht=require("./Shape-DEwnzwRB.cjs"),vt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),mt=["id"],gt=["xmlns","viewBox"],yt=["x","y","width","height"],bt={key:1},pt=["id"],ft=["stop-color"],kt=["stop-color"],xt=["stop-color"],wt=["x1","x2","y1","y2","stroke"],Bt=["x1","x2","y1","y2","stroke"],Ct=["x1","x2","y1","y2","stroke"],zt=["x1","x2","y1","y2","stroke"],St={key:0},Lt=["x","y","height","rx","width","fill","stroke","stroke-width"],_t={key:0},Et=["x","y","height","rx","width","fill","stroke","stroke-width"],Nt=["x","y","width","rx","height","fill","stroke","stroke-width"],$t={key:0},Vt=["x","y","width","rx","height","fill","stroke","stroke-width"],Tt=["x1","x2","y1","y2","stroke","stroke-width"],Mt=["x1","x2","y1","y2","stroke","stroke-width"],Pt=["x","y","font-size","fill","font-weight"],Ft=["transform","font-size","fill","font-weight"],It=["x","y","font-size","fill","font-weight"],Rt={key:0},Ot=["x","y","font-size","font-weight","fill"],Dt=["x","y","font-size","fill","font-weight"],At={key:0},Ht=["x","y","font-size","font-weight","fill"],qt=["x1","x2","y1","y2","stroke"],Ut=["x","y","font-size","font-weight","fill"],Wt=["x1","x2","y1","y2","stroke"],Yt=["font-size","font-weight","fill","text-anchor","transform"],Xt={key:0},Gt={key:1},Jt=["text-anchor","font-size","font-weight","fill","transform","onClick"],Zt={key:0},Kt={key:1},Qt=["font-size","font-weight","fill","x","y","onClick"],jt=["x","y","width","height","onClick","onMouseenter","fill"],ea=["x","y","width","height","onClick","onMouseenter","fill"],ta={key:4,class:"vue-data-ui-watermark"},aa=["onClick"],la=["innerHTML"],oa={__name:"vue-ui-stackbar",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint","selectLegend","selectTimeLabel"],setup(G,{expose:Pe,emit:J}){const h=G,{vue_ui_stackbar:Fe}=u.useConfig(),Ie=e.useSlots(),T=e.computed({get(){return!!h.dataset&&h.dataset.length},set(l){return l}}),M=e.ref(null),C=e.ref(u.createUid()),D=e.ref(!1),ee=e.ref(null),Z=e.ref(""),p=e.ref([]),te=e.ref(0),ae=e.ref(null),le=e.ref(null),oe=e.ref(null),re=e.ref(null),se=e.ref(0),A=e.ref(!1),F=e.ref(null),_=e.ref(!1),Re=e.ref(0),Oe=e.ref(0),De=e.ref(0),P=e.ref(null);e.onMounted(()=>{Q()});const t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:K,setUserOptionsVisibility:ne,keepUserOptionState:ie}=dt.useUserOptionState({config:t.value});function ue(){const l=Ve.useNestedProp({userConfig:h.config,defaultConfig:Fe});let o={};return l.theme?o={...Ve.useNestedProp({userConfig:u.themes.vue_ui_stackbar[l.theme]||h.config,defaultConfig:l}),customPalette:u.themePalettes[l.theme]||u.palette}:o=l,h.config&&u.hasDeepProperty(h.config,"style.chart.grid.scale.scaleMin")?o.style.chart.grid.scale.scaleMin=h.config.style.chart.grid.scale.scaleMin:o.style.chart.grid.scale.scaleMin=null,h.config&&u.hasDeepProperty(h.config,"style.chart.grid.scale.scaleMax")?o.style.chart.grid.scale.scaleMax=h.config.style.chart.grid.scale.scaleMax:o.style.chart.grid.scale.scaleMax=null,h.config&&u.hasDeepProperty(h.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=h.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,h.config&&u.hasDeepProperty(h.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=h.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}e.watch(()=>h.config,l=>{t.value=ue(),K.value=!t.value.showOnChartHover,Q(),Re.value+=1,Oe.value+=1,De.value+=1,y.value.dataLabels.show=t.value.style.chart.bars.dataLabels.show,y.value.showTable=t.value.table.show,y.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),e.watch(()=>h.dataset,l=>{ye()},{deep:!0});const y=e.ref({dataLabels:{show:t.value.style.chart.bars.dataLabels.show},showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),{isPrinting:ce,isImaging:de,generatePdf:he,generateImage:ve}=Me.usePrinter({elementId:`stackbar_${C.value}`,fileName:t.value.style.chart.title.text||"vue-ui-stackbar"}),H=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,paddingRatio:{top:t.value.style.chart.padding.top/t.value.style.chart.height,right:t.value.style.chart.padding.right/t.value.style.chart.width,bottom:t.value.style.chart.padding.bottom/t.value.style.chart.height,left:t.value.style.chart.padding.left/t.value.style.chart.width}}),Ae=e.computed(()=>u.convertCustomPalette(t.value.customPalette)),me=e.ref(null),ge=e.ref(null);e.onMounted(()=>{Q()});function Q(){if(u.objectIsEmpty(h.dataset)?u.error({componentName:"VueUiStackbar",type:"dataset"}):h.dataset.forEach((l,o)=>{u.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","series"]}).forEach(a=>{T.value=!1,u.error({componentName:"VueUiStackbar",type:"datasetSerieAttribute",property:a,index:o})})}),setTimeout(()=>{_.value=!0},10),t.value.responsive){const l=Te.throttle(()=>{_.value=!1;const{width:o,height:a}=Te.useResponsive({chart:M.value,title:t.value.style.chart.title.text?ae.value:null,legend:t.value.style.chart.legend.show?le.value:null,slicer:t.value.style.chart.zoom.show&&S.value>1?oe.value:null,source:re.value});requestAnimationFrame(()=>{H.value.width=o,H.value.height=a,clearTimeout(ge.value),ge.value=setTimeout(()=>{_.value=!0},10)})});me.value=new ResizeObserver(l),me.value.observe(M.value.parentNode)}be()}const s=e.computed(()=>{const{height:l,width:o}=H.value,{right:a}=H.value.paddingRatio,r=t.value.style.chart.padding.top,i=o-o*a,n=l-t.value.style.chart.padding.bottom,b=t.value.style.chart.padding.left,E=o-b-o*a,N=l-r-t.value.style.chart.padding.bottom;return{chartHeight:l,chartWidth:o,top:r,right:i,bottom:n,left:b,width:E,height:N<0?0:N}}),z=e.computed(()=>h.dataset.map((l,o)=>{const a=u.convertColorToHex(l.color)||Ae.value[o]||u.palette[o]||u.palette[o%u.palette.length];return{...l,series:JSON.parse(JSON.stringify(l.series)).map(r=>t.value.style.chart.bars.distributed?Math.abs(r):r),signedSeries:l.series.map(r=>r>=0?1:-1),absoluteIndex:o,id:u.createUid(),color:a}})),S=e.computed(()=>Math.max(...z.value.filter(l=>!p.value.includes(l.id)).map(l=>l.series.length))),c=e.ref({start:0,end:Math.max(...h.dataset.map(l=>l.series.length))});function ye(){be()}async function be(){(t.value.style.chart.zoom.startIndex!==null||t.value.style.chart.zoom.endIndex!==null)&&P.value?(t.value.style.chart.zoom.startIndex!==null&&(await e.nextTick(),await e.nextTick(),P.value&&P.value.setStartValue(t.value.style.chart.zoom.startIndex)),t.value.style.chart.zoom.endIndex!==null&&(await e.nextTick(),await e.nextTick(),P.value&&P.value.setEndValue(He(t.value.style.chart.zoom.endIndex+1)))):(c.value={start:0,end:Math.max(...h.dataset.map(l=>l.series.length))},se.value+=1)}function He(l){const o=Math.max(...h.dataset.map(a=>a.series.length));return l>o?o:l<0||t.value.style.chart.zoom.startIndex!==null&&l<t.value.style.chart.zoom.startIndex?t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex+1:1:l}const d=e.computed(()=>{let l;return t.value.orientation==="vertical"?l=s.value.width/(c.value.end-c.value.start):l=s.value.height/(c.value.end-c.value.start),l<=0?0:l}),I=e.computed(()=>u.sumSeries(z.value.filter(l=>!p.value.includes(l.id))).slice(c.value.start,c.value.end)),qe=e.computed(()=>u.sumSeries(z.value.filter(l=>!p.value.includes(l.id)).map(l=>({...l,series:l.series.map((o,a)=>l.signedSeries[a]===-1&&o>=0?-o:o)}))).slice(c.value.start,c.value.end)),q=e.computed(()=>{const l=z.value.filter(o=>!p.value.includes(o.id));return{positive:u.sumSeries(l.map(o=>({...o,series:o.series.slice(c.value.start,c.value.end).map(a=>a>=0?a:0)}))),negative:u.sumSeries(l.map(o=>({...o,series:o.series.slice(c.value.start,c.value.end).map(a=>a<0?a:0)})))}}),w=e.computed(()=>{const l=t.value.style.chart.grid.scale.scaleMax!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMax:Math.max(...q.value.positive),o=Math.min(...q.value.negative),a=t.value.style.chart.grid.scale.scaleMin!==null&&!t.value.style.chart.bars.distributed?t.value.style.chart.grid.scale.scaleMin:[-1/0,1/0,NaN,void 0,null].includes(o)?0:o,r=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?u.calculateNiceScaleWithExactExtremes(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks):u.calculateNiceScale(a>0?0:a,l<0?0:l,t.value.style.chart.grid.scale.ticks);return r.ticks.map(i=>({zero:s.value.bottom-s.value.height*(Math.abs(r.min)/(r.max+Math.abs(r.min))),y:s.value.bottom-s.value.height*((i+Math.abs(r.min))/(r.max+Math.abs(r.min))),x:s.value.left-8,horizontal_zero:s.value.left+s.value.width*(Math.abs(r.min)/(r.max+Math.abs(r.min))),horizontal_x:s.value.left+s.value.width*((i+Math.abs(r.min))/(r.max+Math.abs(r.min))),horizontal_y:s.value.bottom-8,value:i}))}),L=e.computed(()=>{const l=[];for(let o=0;o<S.value;o+=1)l.push({text:t.value.style.chart.grid.x.timeLabels.values[o]||String(o),absoluteIndex:o});return l.slice(c.value.start,c.value.end)}),g=e.computed(()=>{if(!T.value)return[];let l=Array(S.value).fill(0),o=Array(S.value).fill(0),a=Array(S.value).fill(0),r=Array(S.value).fill(0);const i=Math.max(...q.value.positive)||0,n=Math.min(...q.value.negative),b=[-1/0,1/0,NaN,void 0,null].includes(n)?0:n,E=!t.value.style.chart.bars.distributed&&(t.value.style.chart.grid.scale.scaleMax!==null||t.value.style.chart.grid.scale.scaleMin!==null)?u.calculateNiceScaleWithExactExtremes(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:b>0?0:b,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:i<0?0:i,t.value.style.chart.grid.scale.ticks):u.calculateNiceScale(t.value.style.chart.grid.scale.scaleMin!==null?t.value.style.chart.grid.scale.scaleMin:b>0?0:b,t.value.style.chart.grid.scale.scaleMax!==null?t.value.style.chart.grid.scale.scaleMax:i<0?0:i,t.value.style.chart.grid.scale.ticks),{min:N,max:R}=E,$=R+(N>=0?0:Math.abs(N))||1,f=s.value.height,X=s.value.width,Ne=w.value[0]?w.value[0].zero:s.value.bottom,$e=w.value[0]?w.value[0].horizontal_zero:s.value.left;return z.value.filter(O=>!p.value.includes(O.id)).map(O=>{const B=O.series.slice(c.value.start,c.value.end),Ge=O.signedSeries.slice(c.value.start,c.value.end),Je=B.map((v,m)=>s.value.left+d.value*m+d.value*t.value.style.chart.bars.gapRatio/4),Ze=B.map((v,m)=>s.value.top+d.value*m+d.value*t.value.style.chart.bars.gapRatio/4),Ke=B.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;let V,x;return v>0?(x=f*k,V=Ne-x-l[m],l[m]+=x):(x=f*k,V=Ne+a[m],a[m]+=Math.abs(x)),V}),Qe=B.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;let V,x;return v>0?(x=X*k,V=$e+o[m],o[m]+=x):(x=X*k,V=$e-Math.abs(x)-r[m],r[m]+=Math.abs(x)),V}),je=B.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;return v>0?f*k:f*Math.abs(k)}),et=B.map((v,m)=>{const k=t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/$;return v>0?X*k:X*Math.abs(k)}),tt=B.map(v=>Math.abs(v)).reduce((v,m)=>v+m,0);return{...O,proportions:B.map((v,m)=>t.value.style.chart.bars.distributed?(v||0)/I.value[m]:(v||0)/tt),series:B,signedSeries:Ge,x:Je,y:Ke,height:je,horizontal_width:et,horizontal_y:Ze,horizontal_x:Qe}})}),pe=e.computed(()=>qe.value.map((l,o)=>({value:l,sign:l>=0?1:-1})));function U(l,o,a,r,i){const n=i===-1&&l>=0?-l:l;return u.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,n,u.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:n,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:o,seriesIndex:a,datapointIndex:r})}function fe(l,o,a,r){return u.applyDataLabel(t.value.style.chart.bars.dataLabels.formatter,l,u.dataLabel({v:isNaN(l)?0:l,s:"%",r:t.value.style.chart.bars.dataLabels.rounding}),{datapoint:o,seriesIndex:a,datapointIndex:r})}function ke(l){const o=JSON.parse(JSON.stringify(g.value)).map(a=>({name:a.name,value:a.series[l]===0?0:a.series[l]||null,proportion:a.proportions[l]||null,color:a.color,id:a.id}));J("selectDatapoint",{datapoint:o,period:L.value[l]})}function xe(l){F.value=l,D.value=!0;const o=t.value.style.chart.tooltip.customFormat,a=JSON.parse(JSON.stringify(g.value)).map(i=>({name:i.name,absoluteIndex:i.absoluteIndex,value:i.series[l]===0?0:(i.signedSeries[l]===-1&&i.series[l]>=0?-i.series[l]:i.series[l])||null,proportion:i.proportions[l]||null,color:i.color,id:i.id})),r=a.map(i=>Math.abs(i.value)).reduce((i,n)=>i+n,0);if(u.isFunction(o)&&u.functionReturnsString(()=>o({seriesIndex:l,datapoint:a,series:g.value,config:t.value})))Z.value=o({seriesIndex:l,datapoint:a,series:g.value,config:t.value});else{const{showValue:i,showPercentage:n,borderColor:b,roundingValue:E,roundingPercentage:N}=t.value.style.chart.tooltip;let R="";L.value[l]&&L.value[l].text&&t.value.style.chart.tooltip.showTimeLabel&&(R+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${b};padding-bottom:6px;margin-bottom:3px;">${L.value[l].text}</div>`);const $=[i&&n?"(":"",i&&n?")":""];a.reverse().forEach(f=>{R+=`
2
2
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
3
3
  <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${t.value.style.chart.bars.gradient.show?`url(#gradient_${f.id})`:f.color}"/>${Ie.pattern?`<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${C.value}_${f.absoluteIndex})"/>`:""}</svg>
4
- ${f.name}${i||s?":":""} ${i?u.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:f.value,s:t.value.style.chart.bars.dataLabels.suffix,r:E}):""} ${$[0]}${s?u.dataLabel({v:isNaN(f.value/r)?0:Math.abs(f.value)/r*100,s:"%",r:N}):""}${$[1]}
4
+ ${f.name}${i||n?":":""} ${i?u.dataLabel({p:t.value.style.chart.bars.dataLabels.prefix,v:f.value,s:t.value.style.chart.bars.dataLabels.suffix,r:E}):""} ${$[0]}${n?u.dataLabel({v:isNaN(f.value/r)?0:Math.abs(f.value)/r*100,s:"%",r:N}):""}${$[1]}
5
5
  </div>
6
- `}),Z.value=`<div>${R}</div>`}}function Ue(l){A.value=l,te.value+=1}function Be(){b.value.showTable=!b.value.showTable}function we(){b.value.dataLabels.show=!b.value.dataLabels.show}function Ce(){b.value.showTooltip=!b.value.showTooltip}function We(){return g.value}const ze=e.computed(()=>{if(g.value.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=g.value.map(({name:a,color:r})=>({label:a,color:r})),o=[];for(let a=c.value.start;a<c.value.end;a+=1){const r=[t.value.style.chart.grid.x.timeLabels.values[a]||a+1];z.value.forEach(i=>{r.push(Number((i.series[a]||0).toFixed(t.value.table.td.roundingValue)))}),o.push(r)}return{head:l,body:o}});function Se(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=["",...ze.value.head.map(s=>s.label)],a=ze.value.body,r=l.concat([o]).concat(a),i=u.createCsvContent(r);u.downloadCsv({csvContent:i,title:t.value.style.chart.title.text||"vue-ui-stackbar"})}const W=e.computed(()=>{const l=[""].concat(g.value.map(i=>i.name)).concat(' <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>');let o=[];for(let i=0;i<S.value;i+=1){const s=g.value.map(y=>y.series[i]??0).reduce((y,E)=>y+E,0);o.push([t.value.style.chart.grid.x.timeLabels.values.slice(c.value.start,c.value.end)[i]??i+1].concat(g.value.map(y=>(y.series[i]??0).toFixed(t.value.table.td.roundingValue))).concat((s??0).toFixed(t.value.table.td.roundingValue)))}const 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},breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.period].concat(g.value.map(i=>i.name)).concat(t.value.table.columnNames.total);return{head:l,body:o.slice(0,c.value.end-c.value.start),config:a,colNames:r}});function Ye(l,o){if(J("selectLegend",g.value.find(a=>a.absoluteIndex===l)),p.value.includes(o.id))p.value=p.value.filter(a=>a!==o.id);else{if(p.value.length===z.value.length-1)return;p.value.push(o.id)}}const Le=e.computed(()=>z.value.map((l,o)=>({...l,shape:"square"})).map(l=>({...l,opacity:p.value.includes(l.id)?.5:1,segregate:()=>Ye(l.absoluteIndex,l),isSegregated:p.value.includes(l.id)}))),Xe=e.computed(()=>({cy:"stackbar-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.ref(!1);function j(){Y.value=!Y.value}function _e(l,o){const a=JSON.parse(JSON.stringify(g.value)).map(r=>({name:r.name,value:r.series[o]===0?0:(r.signedSeries[o]===-1&&r.series[o]>=0?-r.series[o]:r.series[o])||null,proportion:r.proportions[o]||null,color:r.color,id:r.id}));J("selectTimeLabel",{datapoint:a,absoluteIndex:l.absoluteIndex,label:l.text})}function Ee(l,o){return t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?t.value.style.chart.bars.dataLabels.hideEmptyPercentages?o>0:!0:t.value.style.chart.bars.dataLabels.hideEmptyValues?l!==0:!0}return Pe({getData:We,generatePdf:he,generateCsv:Se,generateImage:ve,toggleTable:Be,toggleLabels:we,toggleTooltip:Ce,toggleAnnotator:j}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`stackbar_${C.value}`,ref_key:"stackbarChart",ref:T,class:e.normalizeClass({"vue-ui-stackbar":!0,"vue-data-ui-wrapper-fullscreen":A.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:o[6]||(o[6]=()=>e.unref(se)(!0)),onMouseleave:o[7]||(o[7]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ct.PenAndPaper,{key:0,parent:T.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:Y.value,onClose:j},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:ae,style:"width:100%;background:transparent;padding-bottom:24px"},[e.createVNode(ot._sfc_main,{config:{title:{cy:"stackbar-title",...t.value.style.chart.title},subtitle:{cy:"stackbar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&M.value&&(e.unref(ie)||e.unref(K))?(e.openBlock(),e.createBlock(Te.UserOptions,{ref:"details",key:`user_option_${te.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ce),isImaging:e.unref(de),uid:C.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:A.value,chartElement:T.value,position:t.value.userOptions.position,isTooltip:b.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:Y.value,onToggleFullscreen:Ue,onGeneratePdf:e.unref(he),onGenerateCsv:Se,onGenerateImage:e.unref(ve),onToggleTable:Be,onToggleLabels:we,onToggleTooltip:Ce,onToggleAnnotator:j,style:e.normalizeStyle({visibility:e.unref(ie)?e.unref(K)?"visible":"hidden":"visible"})},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.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),M.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${n.value.chartWidth<=0?10:n.value.chartWidth} ${n.value.chartHeight<=0?10:n.value.chartHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ut._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:n.value.left,y:n.value.top,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,yt)):e.createCommentVNode("",!0),t.value.style.chart.bars.gradient.show?(e.openBlock(),e.createElementBlock("defs",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`gradient_${a.id}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,ft),e.createElementVNode("stop",{offset:"61.8%","stop-color":e.unref(u.lightenHexColor)(a.color,t.value.style.chart.bars.gradient.intensity/100)},null,8,kt),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xt)],8,pt))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines&&t.value.orientation==="vertical"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(B.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left,x2:n.value.right,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,Bt))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines&&t.value.orientation==="horizontal"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(c.value.end-c.value.start+1,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left,x2:n.value.right,y1:n.value.top+d.value*r,y2:n.value.top+d.value*r,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,wt))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showVerticalLines&&t.value.orientation==="vertical"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(c.value.end-c.value.start+1,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left+d.value*r,x2:n.value.left+d.value*r,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,Ct))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines&&t.value.orientation==="horizontal"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(B.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.horizontal_x,x2:a.horizontal_x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,zt))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.$slots.pattern?(e.openBlock(),e.createElementBlock("defs",St,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:a.absoluteIndex,patternId:`pattern_${C.value}_${a.absoluteIndex}`})),void 0,!0)])):e.createCommentVNode("",!0),t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(i,s)=>(e.openBlock(),e.createElementBlock("rect",{x:i,y:a.y[s]<0?0:a.y[s],height:a.height[s]<0?1e-4:a.height[s]||0,rx:t.value.style.chart.bars.borderRadius>a.height[s]/2?(a.height[s]<0?0:a.height[s])/2:t.value.style.chart.bars.borderRadius,width:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:t.value.style.chart.bars.gradient.show?`url(#gradient_${a.id})`:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Lt))),256)),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(i,s)=>(e.openBlock(),e.createElementBlock("rect",{x:i,y:a.y[s]<0?0:a.y[s],height:a.height[s]<0?1e-4:a.height[s]||0,rx:t.value.style.chart.bars.borderRadius>a.height[s]/2?(a.height[s]<0?0:a.height[s])/2:t.value.style.chart.bars.borderRadius,width:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:`url(#pattern_${C.value}_${a.absoluteIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Et))),256))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.horizontal_x,(i,s)=>(e.openBlock(),e.createElementBlock("rect",{x:e.unref(u.forceValidValue)(i,n.value.left),y:a.horizontal_y[s]<0?0:a.horizontal_y[s],width:e.unref(u.forceValidValue)(a.horizontal_width[s]<0?1e-4:a.horizontal_width[s]),rx:t.value.style.chart.bars.borderRadius>a.height[s]/2?(a.height[s]<0?0:a.height[s])/2:t.value.style.chart.bars.borderRadius,height:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:t.value.style.chart.bars.gradient.show?`url(#gradient_${a.id})`:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Nt))),256)),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",$t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.horizontal_x,(i,s)=>(e.openBlock(),e.createElementBlock("rect",{x:e.unref(u.forceValidValue)(i,n.value.left),y:a.horizontal_y[s]<0?0:a.horizontal_y[s],width:e.unref(u.forceValidValue)(a.horizontal_width[s]<0?1e-4:a.horizontal_width[s]),rx:t.value.style.chart.bars.borderRadius>a.height[s]/2?(a.height[s]<0?0:a.height[s])/2:t.value.style.chart.bars.borderRadius,height:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:`url(#pattern_${C.value}_${a.absoluteIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Vt))),256))])):e.createCommentVNode("",!0)],64))]))),256)),t.value.style.chart.grid.x.showAxis?(e.openBlock(),e.createElementBlock("line",{key:6,x1:n.value.left,x2:n.value.right,y1:n.value.bottom,y2:n.value.bottom,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":t.value.style.chart.grid.x.axisThickness,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Mt)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showAxis&&!t.value.style.chart.bars.distributed?(e.openBlock(),e.createElementBlock("line",{key:7,x1:n.value.left,x2:n.value.left,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":t.value.style.chart.grid.y.axisThickness,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Tt)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.axisName.show&&t.value.style.chart.grid.x.axisName.text?(e.openBlock(),e.createElementBlock("text",{key:8,x:n.value.left+n.value.width/2,y:n.value.chartHeight+t.value.style.chart.grid.x.axisName.offsetY,"font-size":t.value.style.chart.grid.x.axisName.fontSize,fill:t.value.style.chart.grid.x.axisName.color,"font-weight":t.value.style.chart.grid.x.axisName.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.grid.x.axisName.text),9,Pt)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisName.show&&t.value.style.chart.grid.y.axisName.text?(e.openBlock(),e.createElementBlock("text",{key:9,transform:`translate(${t.value.style.chart.grid.y.axisName.fontSize+t.value.style.chart.grid.y.axisName.offsetX}, ${n.value.top+n.value.height/2}) rotate(-90)`,"font-size":t.value.style.chart.grid.y.axisName.fontSize,fill:t.value.style.chart.grid.y.axisName.color,"font-weight":t.value.style.chart.grid.y.axisName.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.grid.y.axisName.text),9,Ft)):e.createCommentVNode("",!0),b.value.dataLabels.show&&t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Ee(a.series[s],a.proportions[s])?(e.openBlock(),e.createElementBlock("text",{key:0,x:i+d.value*(1-t.value.style.chart.bars.gapRatio/2)/2,y:a.y[s]+a.height[s]/2+t.value.style.chart.bars.dataLabels.fontSize/3,"font-size":t.value.style.chart.bars.dataLabels.fontSize,fill:t.value.style.chart.bars.dataLabels.adaptColorToBackground?e.unref(u.adaptColorToBackground)(a.color):t.value.style.chart.bars.dataLabels.color,"font-weight":t.value.style.chart.bars.dataLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?fe(a.proportions[s]*100,a,r,s):U(a.series[s],a,r,s,a.signedSeries[s])),9,It)):e.createCommentVNode("",!0)],64))),256))]))),256)),t.value.style.chart.bars.totalValues.show&&g.value.length>1?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.style.chart.bars.dataLabels.hideEmptyValues||a.value!==0?(e.openBlock(),e.createElementBlock("text",{key:0,x:n.value.left+d.value*r+d.value/2,y:n.value.top-t.value.style.chart.bars.totalValues.fontSize/3,"text-anchor":"middle","font-size":t.value.style.chart.bars.totalValues.fontSize,"font-weight":t.value.style.chart.bars.totalValues.bold?"bold":"normal",fill:t.value.style.chart.bars.totalValues.color},e.toDisplayString(U(a.value,a,r,a.sign)),9,Ot)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),b.value.dataLabels.show&&t.value.orientation==="horizontal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.horizontal_x,(i,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Ee(a.series[s],a.proportions[s])?(e.openBlock(),e.createElementBlock("text",{key:0,x:i+(a.horizontal_width[s]<0?1e-4:a.horizontal_width[s])/2,y:a.horizontal_y[s]+d.value*(1-t.value.style.chart.bars.gapRatio/2)/2+t.value.style.chart.bars.dataLabels.fontSize/3,"font-size":t.value.style.chart.bars.dataLabels.fontSize,fill:t.value.style.chart.bars.dataLabels.adaptColorToBackground?e.unref(u.adaptColorToBackground)(a.color):t.value.style.chart.bars.dataLabels.color,"font-weight":t.value.style.chart.bars.dataLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?fe(a.proportions[s]*100,a,r,s):U(a.series[s],a,r,s,a.signedSeries[s])),9,Dt)):e.createCommentVNode("",!0)],64))),256))]))),256)),t.value.style.chart.bars.totalValues.show&&g.value.length>1?(e.openBlock(),e.createElementBlock("g",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.style.chart.bars.dataLabels.hideEmptyValues||a.value!==0?(e.openBlock(),e.createElementBlock("text",{key:0,x:n.value.right+t.value.style.chart.bars.totalValues.fontSize/3,y:n.value.top+d.value*r+d.value/2,"text-anchor":"start","font-size":t.value.style.chart.bars.totalValues.fontSize,"font-weight":t.value.style.chart.bars.totalValues.bold?"bold":"normal",fill:t.value.style.chart.bars.totalValues.color},e.toDisplayString(U(a.value,a,r,a.sign)),9,Ht)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisLabels.show&&!t.value.style.chart.bars.distributed&&t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:n.value.left,x2:n.value.left-6,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1},null,8,qt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{x:a.x,y:a.y+t.value.style.chart.grid.y.axisLabels.fontSize/3,"font-size":t.value.style.chart.grid.y.axisLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a.value,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.grid.y.axisLabels.rounding})),9,Ut))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisLabels.show&&!t.value.style.chart.bars.distributed&&t.value.orientation==="horizontal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.horizontal_x,x2:a.horizontal_x,y1:n.value.bottom,y2:n.value.bottom+6,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,Wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"font-size":t.value.style.chart.grid.x.timeLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,"text-anchor":t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle",transform:`translate(${a.horizontal_x}, ${n.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a.value,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.grid.y.axisLabels.rounding})),9,Yt))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.timeLabels.show&&t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:14},[l.$slots["time-label"]?(e.openBlock(),e.createElementBlock("g",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.renderSlot(l.$slots,"time-label",e.normalizeProps(e.guardReactiveProps({x:n.value.left+d.value*r+d.value/2,y:n.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY,fontSize:t.value.style.chart.grid.x.timeLabels.fontSize,fill:t.value.style.chart.grid.x.timeLabels.color,transform:`translate(${n.value.left+d.value*r+d.value/2}, ${n.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle",show:!0})),void 0,!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.grid.x.timeLabels.fontSize,"font-weight":t.value.style.chart.grid.x.timeLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.x.timeLabels.color,transform:`translate(${n.value.left+d.value*r+d.value/2}, ${n.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`,style:{cursor:"pointer"},onClick:()=>_e(a,r)},e.toDisplayString(a.text),9,Jt))),256))]))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.timeLabels.show&&t.value.orientation==="horizontal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:15},[l.$slots["time-label"]?(e.openBlock(),e.createElementBlock("g",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.renderSlot(l.$slots,"time-label",e.normalizeProps(e.guardReactiveProps({x:n.value.left-8,y:n.value.top+d.value*r+d.value/2+t.value.style.chart.grid.y.axisLabels.fontSize/3,fontSize:t.value.style.chart.grid.x.timeLabels.fontSize,fill:t.value.style.chart.grid.x.timeLabels.color,transform:null,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:"end",show:!0})),void 0,!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"end","font-size":t.value.style.chart.grid.y.axisLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,x:n.value.left-8,y:n.value.top+d.value*r+d.value/2+t.value.style.chart.grid.y.axisLabels.fontSize/3,style:{cursor:"pointer"},onClick:()=>_e(a,r)},e.toDisplayString(a.text),9,Qt))),256))]))],64)):e.createCommentVNode("",!0),b.value.showTooltip&&t.value.orientation==="vertical"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:16},e.renderList(c.value.end-c.value.start,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{x:n.value.left+r*d.value,y:n.value.top,width:d.value,height:n.value.height<0?0:n.value.height,onClick:i=>ke(r),onMouseenter:i=>xe(r),onMouseleave:o[0]||(o[0]=i=>{F.value=null,D.value=!1}),fill:r===F.value?t.value.style.chart.highlighter.color:"transparent",style:e.normalizeStyle({opacity:t.value.style.chart.highlighter.opacity/100})},null,44,jt))),256)):e.createCommentVNode("",!0),b.value.showTooltip&&t.value.orientation==="horizontal"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:17},e.renderList(c.value.end-c.value.start,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{x:n.value.left,y:n.value.top+r*d.value,width:n.value.width<0?0:n.value.width,height:d.value,onClick:i=>ke(r),onMouseenter:i=>xe(r),onMouseleave:o[1]||(o[1]=i=>{F.value=null,D.value=!1}),fill:r===F.value?t.value.style.chart.highlighter.color:"transparent",style:e.normalizeStyle({opacity:t.value.style.chart.highlighter.opacity/100})},null,44,ea))),256)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({...n.value})),void 0,!0)],12,gt)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ta,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(de)})),void 0,!0)])):e.createCommentVNode("",!0),M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(it.default,{key:5,config:{type:"bar",style:{backgroundColor:t.value.style.chart.backgroundColor,bar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartSlicer",ref:oe,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&S.value>1?(e.openBlock(),e.createBlock(at.Slicer,{ref_key:"slicerComponent",ref:P,key:`slicer_${ne.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.grid.x.timeLabels.values[c.value.start]?t.value.style.chart.grid.x.timeLabels.values[c.value.start]:"",labelRight:t.value.style.chart.grid.x.timeLabels.values[c.value.end-1]?t.value.style.chart.grid.x.timeLabels.values[c.value.end-1]:"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:Math.max(...G.dataset.map(a=>a.series.length)),min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":o[2]||(o[2]=a=>c.value.start=a),end:c.value.end,"onUpdate:end":o[3]||(o[3]=a=>c.value.end=a),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:Math.max(...G.dataset.map(a=>a.series.length)),enableRangeHandles:t.value.style.chart.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.chart.zoom.enableSelectionDrag,onReset:ye},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"])):e.createCommentVNode("",!0)],4),e.createVNode(lt._sfc_main,{show:b.value.showTooltip&&D.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:T.value,content:Z.value,isFullscreen:A.value,isCustom:e.unref(u.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...ee.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...ee.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),e.createElementVNode("div",{ref_key:"chartLegend",ref:le},[t.value.style.chart.legend.show&&M.value?(e.openBlock(),e.createBlock(rt.Legend,{key:0,legendSet:Le.value,config:Xe.value,onClickMarker:o[4]||(o[4]=({legend:a})=>a.segregate())},e.createSlots({item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,aa)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:a,index:r})=>[e.createVNode(ht._sfc_main,{shape:a.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${C.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Le.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:re,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),c.value.end-c.value.start<200?(e.openBlock(),e.createBlock(nt.default,{key:7,hideDetails:"",config:{open:b.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.createVNode(st.DataTable,{colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[5]||(o[5]=a=>b.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,la)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.table.td.roundingValue})),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,mt))}},ra=vt._export_sfc(oa,[["__scopeId","data-v-8a416fa2"]]);exports.default=ra;
6
+ `}),Z.value=`<div>${R}</div>`}}function Ue(l){A.value=l,te.value+=1}function we(){y.value.showTable=!y.value.showTable}function Be(){y.value.dataLabels.show=!y.value.dataLabels.show}function Ce(){y.value.showTooltip=!y.value.showTooltip}function We(){return g.value}const ze=e.computed(()=>{if(g.value.length===0)return{head:[],body:[],config:{},columnNames:[]};const l=g.value.map(({name:a,color:r})=>({label:a,color:r})),o=[];for(let a=c.value.start;a<c.value.end;a+=1){const r=[t.value.style.chart.grid.x.timeLabels.values[a]||a+1];z.value.forEach(i=>{r.push(Number((i.series[a]||0).toFixed(t.value.table.td.roundingValue)))}),o.push(r)}return{head:l,body:o}});function Se(){const l=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[""]],o=["",...ze.value.head.map(n=>n.label)],a=ze.value.body,r=l.concat([o]).concat(a),i=u.createCsvContent(r);u.downloadCsv({csvContent:i,title:t.value.style.chart.title.text||"vue-ui-stackbar"})}const W=e.computed(()=>{const l=[""].concat(g.value.map(i=>i.name)).concat(' <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>');let o=[];for(let i=0;i<S.value;i+=1){const n=g.value.map(b=>b.series[i]??0).reduce((b,E)=>b+E,0);o.push([t.value.style.chart.grid.x.timeLabels.values.slice(c.value.start,c.value.end)[i]??i+1].concat(g.value.map(b=>(b.series[i]??0).toFixed(t.value.table.td.roundingValue))).concat((n??0).toFixed(t.value.table.td.roundingValue)))}const 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},breakpoint:t.value.table.responsiveBreakpoint},r=[t.value.table.columnNames.period].concat(g.value.map(i=>i.name)).concat(t.value.table.columnNames.total);return{head:l,body:o.slice(0,c.value.end-c.value.start),config:a,colNames:r}});function Ye(l,o){if(J("selectLegend",g.value.find(a=>a.absoluteIndex===l)),p.value.includes(o.id))p.value=p.value.filter(a=>a!==o.id);else{if(p.value.length===z.value.length-1)return;p.value.push(o.id)}}const Le=e.computed(()=>z.value.map((l,o)=>({...l,shape:"square"})).map(l=>({...l,opacity:p.value.includes(l.id)?.5:1,segregate:()=>Ye(l.absoluteIndex,l),isSegregated:p.value.includes(l.id)}))),Xe=e.computed(()=>({cy:"stackbar-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.ref(!1);function j(){Y.value=!Y.value}function _e(l,o){const a=JSON.parse(JSON.stringify(g.value)).map(r=>({name:r.name,value:r.series[o]===0?0:(r.signedSeries[o]===-1&&r.series[o]>=0?-r.series[o]:r.series[o])||null,proportion:r.proportions[o]||null,color:r.color,id:r.id}));J("selectTimeLabel",{datapoint:a,absoluteIndex:l.absoluteIndex,label:l.text})}function Ee(l,o){return t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?t.value.style.chart.bars.dataLabels.hideEmptyPercentages?o>0:!0:t.value.style.chart.bars.dataLabels.hideEmptyValues?l!==0:!0}return Pe({getData:We,generatePdf:he,generateCsv:Se,generateImage:ve,toggleTable:we,toggleLabels:Be,toggleTooltip:Ce,toggleAnnotator:j}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`stackbar_${C.value}`,ref_key:"stackbarChart",ref:M,class:e.normalizeClass({"vue-ui-stackbar":!0,"vue-data-ui-wrapper-fullscreen":A.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:o[6]||(o[6]=()=>e.unref(ne)(!0)),onMouseleave:o[7]||(o[7]=()=>e.unref(ne)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ct.PenAndPaper,{key:0,parent:M.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:Y.value,onClose:j},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:ae,style:"width:100%;background:transparent;padding-bottom:24px"},[e.createVNode(ot._sfc_main,{config:{title:{cy:"stackbar-title",...t.value.style.chart.title},subtitle:{cy:"stackbar-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&T.value&&(e.unref(ie)||e.unref(K))?(e.openBlock(),e.createBlock(Me.UserOptions,{ref:"details",key:`user_option_${te.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ce),isImaging:e.unref(de),uid:C.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:A.value,chartElement:M.value,position:t.value.userOptions.position,isTooltip:y.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:Y.value,onToggleFullscreen:Ue,onGeneratePdf:e.unref(he),onGenerateCsv:Se,onGenerateImage:e.unref(ve),onToggleTable:we,onToggleLabels:Be,onToggleTooltip:Ce,onToggleAnnotator:j,style:e.normalizeStyle({visibility:e.unref(ie)?e.unref(K)?"visible":"hidden":"visible"})},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.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasLabel","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(u.XMLNS),viewBox:`0 0 ${s.value.chartWidth<=0?10:s.value.chartWidth} ${s.value.chartHeight<=0?10:s.value.chartHeight}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ut._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:s.value.left,y:s.value.top,width:s.value.width<=0?10:s.value.width,height:s.value.height<=0?10:s.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,yt)):e.createCommentVNode("",!0),t.value.style.chart.bars.gradient.show?(e.openBlock(),e.createElementBlock("defs",bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`gradient_${a.id}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":a.color},null,8,ft),e.createElementVNode("stop",{offset:"61.8%","stop-color":e.unref(u.lightenHexColor)(a.color,t.value.style.chart.bars.gradient.intensity/100)},null,8,kt),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,xt)],8,pt))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines&&t.value.orientation==="vertical"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.left,x2:s.value.right,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,wt))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines&&t.value.orientation==="horizontal"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(c.value.end-c.value.start+1,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.left,x2:s.value.right,y1:s.value.top+d.value*r,y2:s.value.top+d.value*r,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,Bt))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showVerticalLines&&t.value.orientation==="vertical"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(c.value.end-c.value.start+1,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.left+d.value*r,x2:s.value.left+d.value*r,y1:s.value.top,y2:s.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,Ct))),256)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.showHorizontalLines&&t.value.orientation==="horizontal"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.horizontal_x,x2:a.horizontal_x,y1:s.value.top,y2:s.value.bottom,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,zt))),256)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.$slots.pattern?(e.openBlock(),e.createElementBlock("defs",St,[e.renderSlot(l.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:a.absoluteIndex,patternId:`pattern_${C.value}_${a.absoluteIndex}`})),void 0,!0)])):e.createCommentVNode("",!0),t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(i,n)=>(e.openBlock(),e.createElementBlock("rect",{x:i,y:a.y[n]<0?0:a.y[n],height:a.height[n]<0?1e-4:a.height[n]||0,rx:t.value.style.chart.bars.borderRadius>a.height[n]/2?(a.height[n]<0?0:a.height[n])/2:t.value.style.chart.bars.borderRadius,width:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:t.value.style.chart.bars.gradient.show?`url(#gradient_${a.id})`:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Lt))),256)),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(i,n)=>(e.openBlock(),e.createElementBlock("rect",{x:i,y:a.y[n]<0?0:a.y[n],height:a.height[n]<0?1e-4:a.height[n]||0,rx:t.value.style.chart.bars.borderRadius>a.height[n]/2?(a.height[n]<0?0:a.height[n])/2:t.value.style.chart.bars.borderRadius,width:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:`url(#pattern_${C.value}_${a.absoluteIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Et))),256))])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.horizontal_x,(i,n)=>(e.openBlock(),e.createElementBlock("rect",{x:e.unref(u.forceValidValue)(i,s.value.left),y:a.horizontal_y[n]<0?0:a.horizontal_y[n],width:e.unref(u.forceValidValue)(a.horizontal_width[n]<0?1e-4:a.horizontal_width[n]),rx:t.value.style.chart.bars.borderRadius>a.height[n]/2?(a.height[n]<0?0:a.height[n])/2:t.value.style.chart.bars.borderRadius,height:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:t.value.style.chart.bars.gradient.show?`url(#gradient_${a.id})`:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Nt))),256)),l.$slots.pattern?(e.openBlock(),e.createElementBlock("g",$t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.horizontal_x,(i,n)=>(e.openBlock(),e.createElementBlock("rect",{x:e.unref(u.forceValidValue)(i,s.value.left),y:a.horizontal_y[n]<0?0:a.horizontal_y[n],width:e.unref(u.forceValidValue)(a.horizontal_width[n]<0?1e-4:a.horizontal_width[n]),rx:t.value.style.chart.bars.borderRadius>a.height[n]/2?(a.height[n]<0?0:a.height[n])/2:t.value.style.chart.bars.borderRadius,height:d.value*(1-t.value.style.chart.bars.gapRatio/2),fill:`url(#pattern_${C.value}_${a.absoluteIndex})`,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.bars.strokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"vue-data-ui-bar-animated":t.value.useCssAnimation,"vue-data-ui-bar-transition":_.value})},null,10,Vt))),256))])):e.createCommentVNode("",!0)],64))]))),256)),t.value.style.chart.grid.x.showAxis?(e.openBlock(),e.createElementBlock("line",{key:6,x1:s.value.left,x2:s.value.right,y1:s.value.bottom,y2:s.value.bottom,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":t.value.style.chart.grid.x.axisThickness,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Tt)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.showAxis&&!t.value.style.chart.bars.distributed?(e.openBlock(),e.createElementBlock("line",{key:7,x1:s.value.left,x2:s.value.left,y1:s.value.top,y2:s.value.bottom,stroke:t.value.style.chart.grid.y.axisColor,"stroke-width":t.value.style.chart.grid.y.axisThickness,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,Mt)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.axisName.show&&t.value.style.chart.grid.x.axisName.text?(e.openBlock(),e.createElementBlock("text",{key:8,x:s.value.left+s.value.width/2,y:s.value.chartHeight+t.value.style.chart.grid.x.axisName.offsetY,"font-size":t.value.style.chart.grid.x.axisName.fontSize,fill:t.value.style.chart.grid.x.axisName.color,"font-weight":t.value.style.chart.grid.x.axisName.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.grid.x.axisName.text),9,Pt)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisName.show&&t.value.style.chart.grid.y.axisName.text?(e.openBlock(),e.createElementBlock("text",{key:9,transform:`translate(${t.value.style.chart.grid.y.axisName.fontSize+t.value.style.chart.grid.y.axisName.offsetX}, ${s.value.top+s.value.height/2}) rotate(-90)`,"font-size":t.value.style.chart.grid.y.axisName.fontSize,fill:t.value.style.chart.grid.y.axisName.color,"font-weight":t.value.style.chart.grid.y.axisName.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.grid.y.axisName.text),9,Ft)):e.createCommentVNode("",!0),y.value.dataLabels.show&&t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:10},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.x,(i,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Ee(a.series[n],a.proportions[n])?(e.openBlock(),e.createElementBlock("text",{key:0,x:i+d.value*(1-t.value.style.chart.bars.gapRatio/2)/2,y:a.y[n]+a.height[n]/2+t.value.style.chart.bars.dataLabels.fontSize/3,"font-size":t.value.style.chart.bars.dataLabels.fontSize,fill:t.value.style.chart.bars.dataLabels.adaptColorToBackground?e.unref(u.adaptColorToBackground)(a.color):t.value.style.chart.bars.dataLabels.color,"font-weight":t.value.style.chart.bars.dataLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?fe(a.proportions[n]*100,a,r,n):U(a.series[n],a,r,n,a.signedSeries[n])),9,It)):e.createCommentVNode("",!0)],64))),256))]))),256)),t.value.style.chart.bars.totalValues.show&&g.value.length>1?(e.openBlock(),e.createElementBlock("g",Rt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.style.chart.bars.dataLabels.hideEmptyValues||a.value!==0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.left+d.value*r+d.value/2,y:s.value.top-t.value.style.chart.bars.totalValues.fontSize/3,"text-anchor":"middle","font-size":t.value.style.chart.bars.totalValues.fontSize,"font-weight":t.value.style.chart.bars.totalValues.bold?"bold":"normal",fill:t.value.style.chart.bars.totalValues.color},e.toDisplayString(U(a.value,a,r,a.sign)),9,Ot)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),y.value.dataLabels.show&&t.value.orientation==="horizontal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:11},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.horizontal_x,(i,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[Ee(a.series[n],a.proportions[n])?(e.openBlock(),e.createElementBlock("text",{key:0,x:i+(a.horizontal_width[n]<0?1e-4:a.horizontal_width[n])/2,y:a.horizontal_y[n]+d.value*(1-t.value.style.chart.bars.gapRatio/2)/2+t.value.style.chart.bars.dataLabels.fontSize/3,"font-size":t.value.style.chart.bars.dataLabels.fontSize,fill:t.value.style.chart.bars.dataLabels.adaptColorToBackground?e.unref(u.adaptColorToBackground)(a.color):t.value.style.chart.bars.dataLabels.color,"font-weight":t.value.style.chart.bars.dataLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.bars.showDistributedPercentage&&t.value.style.chart.bars.distributed?fe(a.proportions[n]*100,a,r,n):U(a.series[n],a,r,n,a.signedSeries[n])),9,Dt)):e.createCommentVNode("",!0)],64))),256))]))),256)),t.value.style.chart.bars.totalValues.show&&g.value.length>1?(e.openBlock(),e.createElementBlock("g",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(pe.value,(a,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[!t.value.style.chart.bars.dataLabels.hideEmptyValues||a.value!==0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.right+t.value.style.chart.bars.totalValues.fontSize/3,y:s.value.top+d.value*r+d.value/2,"text-anchor":"start","font-size":t.value.style.chart.bars.totalValues.fontSize,"font-weight":t.value.style.chart.bars.totalValues.bold?"bold":"normal",fill:t.value.style.chart.bars.totalValues.color},e.toDisplayString(U(a.value,a,r,a.sign)),9,Ht)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisLabels.show&&!t.value.style.chart.bars.distributed&&t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:12},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:s.value.left,x2:s.value.left-6,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1},null,8,qt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{x:a.x,y:a.y+t.value.style.chart.grid.y.axisLabels.fontSize/3,"font-size":t.value.style.chart.grid.y.axisLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a.value,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.grid.y.axisLabels.rounding})),9,Ut))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.y.axisLabels.show&&!t.value.style.chart.bars.distributed&&t.value.orientation==="horizontal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:13},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.horizontal_x,x2:a.horizontal_x,y1:s.value.bottom,y2:s.value.bottom+6,stroke:t.value.style.chart.grid.x.axisColor,"stroke-width":1,"stroke-linecap":"round"},null,8,Wt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"font-size":t.value.style.chart.grid.x.timeLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,"text-anchor":t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle",transform:`translate(${a.horizontal_x}, ${s.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`},e.toDisplayString(e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a.value,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.style.chart.grid.y.axisLabels.rounding})),9,Yt))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.timeLabels.show&&t.value.orientation==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:14},[l.$slots["time-label"]?(e.openBlock(),e.createElementBlock("g",Xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.renderSlot(l.$slots,"time-label",e.normalizeProps(e.guardReactiveProps({x:s.value.left+d.value*r+d.value/2,y:s.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY,fontSize:t.value.style.chart.grid.x.timeLabels.fontSize,fill:t.value.style.chart.grid.x.timeLabels.color,transform:`translate(${s.value.left+d.value*r+d.value/2}, ${s.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle",show:!0})),void 0,!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":t.value.style.chart.grid.x.timeLabels.rotation>0?"start":t.value.style.chart.grid.x.timeLabels.rotation<0?"end":"middle","font-size":t.value.style.chart.grid.x.timeLabels.fontSize,"font-weight":t.value.style.chart.grid.x.timeLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.x.timeLabels.color,transform:`translate(${s.value.left+d.value*r+d.value/2}, ${s.value.bottom+t.value.style.chart.grid.x.timeLabels.fontSize*1.3+t.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${t.value.style.chart.grid.x.timeLabels.rotation})`,style:{cursor:"pointer"},onClick:()=>_e(a,r)},e.toDisplayString(a.text),9,Jt))),256))]))],64)):e.createCommentVNode("",!0),t.value.style.chart.grid.x.timeLabels.show&&t.value.orientation==="horizontal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:15},[l.$slots["time-label"]?(e.openBlock(),e.createElementBlock("g",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.renderSlot(l.$slots,"time-label",e.normalizeProps(e.guardReactiveProps({x:s.value.left-8,y:s.value.top+d.value*r+d.value/2+t.value.style.chart.grid.y.axisLabels.fontSize/3,fontSize:t.value.style.chart.grid.x.timeLabels.fontSize,fill:t.value.style.chart.grid.x.timeLabels.color,transform:null,absoluteIndex:a.absoluteIndex,content:a.text,textAnchor:"end",show:!0})),void 0,!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value,(a,r)=>(e.openBlock(),e.createElementBlock("text",{"text-anchor":"end","font-size":t.value.style.chart.grid.y.axisLabels.fontSize,"font-weight":t.value.style.chart.grid.y.axisLabels.bold?"bold":"normal",fill:t.value.style.chart.grid.y.axisLabels.color,x:s.value.left-8,y:s.value.top+d.value*r+d.value/2+t.value.style.chart.grid.y.axisLabels.fontSize/3,style:{cursor:"pointer"},onClick:()=>_e(a,r)},e.toDisplayString(a.text),9,Qt))),256))]))],64)):e.createCommentVNode("",!0),y.value.showTooltip&&t.value.orientation==="vertical"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:16},e.renderList(c.value.end-c.value.start,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value.left+r*d.value,y:s.value.top,width:d.value,height:s.value.height<0?0:s.value.height,onClick:i=>ke(r),onMouseenter:i=>xe(r),onMouseleave:o[0]||(o[0]=i=>{F.value=null,D.value=!1}),fill:r===F.value?t.value.style.chart.highlighter.color:"transparent",style:e.normalizeStyle({opacity:t.value.style.chart.highlighter.opacity/100})},null,44,jt))),256)):e.createCommentVNode("",!0),y.value.showTooltip&&t.value.orientation==="horizontal"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:17},e.renderList(c.value.end-c.value.start,(a,r)=>(e.openBlock(),e.createElementBlock("rect",{x:s.value.left,y:s.value.top+r*d.value,width:s.value.width<0?0:s.value.width,height:d.value,onClick:i=>ke(r),onMouseenter:i=>xe(r),onMouseleave:o[1]||(o[1]=i=>{F.value=null,D.value=!1}),fill:r===F.value?t.value.style.chart.highlighter.color:"transparent",style:e.normalizeStyle({opacity:t.value.style.chart.highlighter.opacity/100})},null,44,ea))),256)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",e.normalizeProps(e.guardReactiveProps({...s.value})),void 0,!0)],12,gt)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ta,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(de)})),void 0,!0)])):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(it.default,{key:5,config:{type:"bar",style:{backgroundColor:t.value.style.chart.backgroundColor,bar:{axis:{color:"#CCCCCC"},color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartSlicer",ref:oe,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`),"data-html2canvas-ignore":""},[t.value.style.chart.zoom.show&&S.value>1?(e.openBlock(),e.createBlock(at.Slicer,{ref_key:"slicerComponent",ref:P,key:`slicer_${se.value}`,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,fontSize:t.value.style.chart.zoom.fontSize,useResetSlot:t.value.style.chart.zoom.useResetSlot,labelLeft:t.value.style.chart.grid.x.timeLabels.values[c.value.start]?t.value.style.chart.grid.x.timeLabels.values[c.value.start]:"",labelRight:t.value.style.chart.grid.x.timeLabels.values[c.value.end-1]?t.value.style.chart.grid.x.timeLabels.values[c.value.end-1]:"",textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,max:Math.max(...G.dataset.map(a=>a.series.length)),min:0,valueStart:c.value.start,valueEnd:c.value.end,start:c.value.start,"onUpdate:start":o[2]||(o[2]=a=>c.value.start=a),end:c.value.end,"onUpdate:end":o[3]||(o[3]=a=>c.value.end=a),refreshStartPoint:t.value.style.chart.zoom.startIndex!==null?t.value.style.chart.zoom.startIndex:0,refreshEndPoint:t.value.style.chart.zoom.endIndex!==null?t.value.style.chart.zoom.endIndex+1:Math.max(...G.dataset.map(a=>a.series.length)),enableRangeHandles:t.value.style.chart.zoom.enableRangeHandles,enableSelectionDrag:t.value.style.chart.zoom.enableSelectionDrag,onReset:ye},{"reset-action":e.withCtx(({reset:a})=>[e.renderSlot(l.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:a})),void 0,!0)]),_:3},8,["background","borderColor","fontSize","useResetSlot","labelLeft","labelRight","textColor","inputColor","selectColor","max","valueStart","valueEnd","start","end","refreshStartPoint","refreshEndPoint","enableRangeHandles","enableSelectionDrag"])):e.createCommentVNode("",!0)],4),e.createVNode(lt._sfc_main,{show:y.value.showTooltip&&D.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:M.value,content:Z.value,isFullscreen:A.value,isCustom:e.unref(u.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...ee.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...ee.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),e.createElementVNode("div",{ref_key:"chartLegend",ref:le},[t.value.style.chart.legend.show&&T.value?(e.openBlock(),e.createBlock(rt.Legend,{key:0,legendSet:Le.value,config:Xe.value,onClickMarker:o[4]||(o[4]=({legend:a})=>a.segregate())},e.createSlots({item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,aa)]),_:2},[l.$slots.pattern?{name:"legend-pattern",fn:e.withCtx(({legend:a,index:r})=>[e.createVNode(ht._sfc_main,{shape:a.shape,radius:30,stroke:"none",plot:{x:30,y:30},fill:`url(#pattern_${C.value}_${r})`},null,8,["shape","fill"])]),key:"0"}:void 0]),1032,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:Le.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:re,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),c.value.end-c.value.start<200?(e.openBlock(),e.createBlock(st.default,{key:7,hideDetails:"",config:{open:y.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.createVNode(nt.DataTable,{colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[5]||(o[5]=a=>y.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a},null,8,la)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(isNaN(Number(a))?a:e.unref(u.dataLabel)({p:t.value.style.chart.bars.dataLabels.prefix,v:a,s:t.value.style.chart.bars.dataLabels.suffix,r:t.value.table.td.roundingValue})),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,mt))}},ra=vt._export_sfc(oa,[["__scopeId","data-v-5aca4ab3"]]);exports.default=ra;