vue-data-ui 3.28.10 → 3.28.11

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 (348) hide show
  1. package/dist/BaseDraggableDialog-DVstuNhT.js +1 -0
  2. package/dist/{BaseLegendToggle-BIzyyI1h.js → BaseLegendToggle-VzX69MCo.js} +1 -1
  3. package/dist/BaseZoomControls-D4i_j6vc.js +1 -0
  4. package/dist/ColorPicker-DmVnJGVv.js +1 -0
  5. package/dist/{DataTable-Dof6yhO7.js → DataTable-KeuZB1JM.js} +1 -1
  6. package/dist/{HillActions-BMH9pSmQ.js → HillActions-D--h5brJ.js} +1 -1
  7. package/dist/{Legend-DM0ClX3D.js → Legend-W9YVYVX-.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-DXdAh1Sz.js → NonSvgPenAndPaper-B2kuh5Yb.js} +1 -1
  9. package/dist/{PackageVersion-DKSNC-YP.js → PackageVersion-ksOit8fp.js} +1 -1
  10. package/dist/PenAndPaper-BV5ODysA.js +1 -0
  11. package/dist/SlicerPreview-0m9E7Zh_.js +1 -0
  12. package/dist/{StackChartTable-CZteRybF.js → StackChartTable-D-31a1zL.js} +1 -1
  13. package/dist/{UserOptions-B9EyfU9n.js → UserOptions-K1N7zQRx.js} +1 -1
  14. package/dist/XyAnalysisOptions-CUtj1x2f.js +1 -0
  15. package/dist/components/vue-ui-3d-bar.js +1 -1
  16. package/dist/components/vue-ui-accordion.js +1 -1
  17. package/dist/components/vue-ui-age-pyramid.js +1 -1
  18. package/dist/components/vue-ui-annotator.js +1 -1
  19. package/dist/components/vue-ui-bullet.js +1 -1
  20. package/dist/components/vue-ui-bump.js +1 -1
  21. package/dist/components/vue-ui-candlestick.js +1 -1
  22. package/dist/components/vue-ui-carousel-table.js +1 -1
  23. package/dist/components/vue-ui-chestnut.js +1 -1
  24. package/dist/components/vue-ui-chord.js +1 -1
  25. package/dist/components/vue-ui-circle-pack.js +1 -1
  26. package/dist/components/vue-ui-cursor.js +1 -1
  27. package/dist/components/vue-ui-dag.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-geo.js +1 -1
  38. package/dist/components/vue-ui-gizmo.js +1 -1
  39. package/dist/components/vue-ui-graph.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-hill.js +1 -1
  42. package/dist/components/vue-ui-history-plot.js +1 -1
  43. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-label.js +1 -1
  46. package/dist/components/vue-ui-mini-loader.js +1 -1
  47. package/dist/components/vue-ui-molecule.js +1 -1
  48. package/dist/components/vue-ui-mood-radar.js +1 -1
  49. package/dist/components/vue-ui-nested-donuts.js +1 -1
  50. package/dist/components/vue-ui-onion.js +1 -1
  51. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  52. package/dist/components/vue-ui-quadrant.js +1 -1
  53. package/dist/components/vue-ui-quick-chart.js +1 -1
  54. package/dist/components/vue-ui-radar.js +1 -1
  55. package/dist/components/vue-ui-rating.js +1 -1
  56. package/dist/components/vue-ui-relation-circle.js +1 -1
  57. package/dist/components/vue-ui-ridgeline.js +1 -1
  58. package/dist/components/vue-ui-rings.js +1 -1
  59. package/dist/components/vue-ui-scatter.js +1 -1
  60. package/dist/components/vue-ui-skeleton.js +1 -1
  61. package/dist/components/vue-ui-smiley.js +1 -1
  62. package/dist/components/vue-ui-spark-trend.js +1 -1
  63. package/dist/components/vue-ui-sparkbar.js +1 -1
  64. package/dist/components/vue-ui-sparkgauge.js +1 -1
  65. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  66. package/dist/components/vue-ui-sparkline.js +1 -1
  67. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  68. package/dist/components/vue-ui-stackbar.js +1 -1
  69. package/dist/components/vue-ui-stackline.js +1 -1
  70. package/dist/components/vue-ui-strip-plot.js +1 -1
  71. package/dist/components/vue-ui-table-heatmap.js +1 -1
  72. package/dist/components/vue-ui-table-sparkline.js +1 -1
  73. package/dist/components/vue-ui-table.js +1 -1
  74. package/dist/components/vue-ui-thermometer.js +1 -1
  75. package/dist/components/vue-ui-timer.js +1 -1
  76. package/dist/components/vue-ui-tiremarks.js +1 -1
  77. package/dist/components/vue-ui-treemap.js +1 -1
  78. package/dist/components/vue-ui-vertical-bar.js +1 -1
  79. package/dist/components/vue-ui-waffle.js +1 -1
  80. package/dist/components/vue-ui-wheel.js +1 -1
  81. package/dist/components/vue-ui-word-cloud.js +1 -1
  82. package/dist/components/vue-ui-world.js +1 -1
  83. package/dist/components/vue-ui-xy-canvas.js +1 -1
  84. package/dist/components/vue-ui-xy.js +1 -1
  85. package/dist/package-vXTjpYqq.js +1 -0
  86. package/dist/{render-common-Cy1X2PzP.js → render-common-CPA2hfDW.js} +1 -1
  87. package/dist/resolveChartConfig-0IvbmIE_.js +1 -0
  88. package/dist/ssr/vue-ui-donut.js +1 -1
  89. package/dist/ssr/vue-ui-xy.js +1 -1
  90. package/dist/ssr.js +1 -1
  91. package/dist/style.css +1 -1
  92. package/dist/types/vue-data-ui.d.ts +1 -0
  93. package/dist/useConfig-_JwRfIqE.js +1 -0
  94. package/dist/{useObjectBindings-C_70Czuj.js → useObjectBindings-D789Dz63.js} +1 -1
  95. package/dist/utils.js +1 -1
  96. package/dist/vue-data-ui-0NKIVNqt.js +1 -0
  97. package/dist/vue-data-ui.js +1 -1
  98. package/dist/vue-ui-3d-bar-Cs-_W1Av.js +19 -0
  99. package/dist/{vue-ui-accordion-E8TJfFeK.js → vue-ui-accordion-DxGxf-Rm.js} +1 -1
  100. package/dist/vue-ui-age-pyramid-cWWVFoCj.js +1 -0
  101. package/dist/vue-ui-annotator-D31LD4-s.js +331 -0
  102. package/dist/vue-ui-bullet-CMQzoLKs.js +34 -0
  103. package/dist/vue-ui-bump-SSu5eVbF.js +8 -0
  104. package/dist/vue-ui-candlestick-Cm9jS3n7.js +22 -0
  105. package/dist/vue-ui-carousel-table-D-F54W90.js +1 -0
  106. package/dist/vue-ui-chestnut-DNe1s8TT.js +1 -0
  107. package/dist/vue-ui-chord-DGzpBpuI.js +21 -0
  108. package/dist/vue-ui-circle-pack--iJQtXys.js +13 -0
  109. package/dist/vue-ui-cursor-B7DJRSGD.js +1 -0
  110. package/dist/vue-ui-dag-tsM65e_V.js +9 -0
  111. package/dist/vue-ui-dashboard-CC7IhQZu.js +1 -0
  112. package/dist/{vue-ui-digits-DbxT72mM.js → vue-ui-digits-hv2QeC-H.js} +2 -2
  113. package/dist/vue-ui-donut-B9WXaiPn.js +47 -0
  114. package/dist/vue-ui-donut-evolution-Wz_-FYab.js +2 -0
  115. package/dist/vue-ui-donut-iyVVIGoJ.js +22 -0
  116. package/dist/vue-ui-dumbbell-p3Q2LkBV.js +9 -0
  117. package/dist/vue-ui-flow-BCH8YU8H.js +3 -0
  118. package/dist/vue-ui-funnel-DdrBD9oX.js +1 -0
  119. package/dist/vue-ui-galaxy-DYKEOEL-.js +1 -0
  120. package/dist/vue-ui-gauge-CPgvR_YB.js +1 -0
  121. package/dist/vue-ui-geo-DhJ3Wr_5.js +1 -0
  122. package/dist/vue-ui-gizmo-BTy4Vr1e.js +1 -0
  123. package/dist/{vue-ui-graph-9YSKwYhC.js → vue-ui-graph-C4kfE4G8.js} +3 -3
  124. package/dist/vue-ui-heatmap-lti43RhW.js +1 -0
  125. package/dist/vue-ui-hill-3GVfKQmi.js +1 -0
  126. package/dist/vue-ui-history-plot-DMTPygZA.js +2 -0
  127. package/dist/vue-ui-horizontal-bar-DwWo0CvX.js +4 -0
  128. package/dist/{vue-ui-kpi-BxW6DctE.js → vue-ui-kpi-BTMK37Ix.js} +1 -1
  129. package/dist/{vue-ui-label-rxuzmeyD.js → vue-ui-label-CBrMoFDG.js} +2 -2
  130. package/dist/{vue-ui-mini-loader-DpAYrTYb.js → vue-ui-mini-loader-PsWZLMLF.js} +1 -1
  131. package/dist/vue-ui-molecule-rbDnRA7c.js +1 -0
  132. package/dist/vue-ui-mood-radar-8s1jnO3P.js +1 -0
  133. package/dist/vue-ui-nested-donuts-8bY4HvC-.js +19 -0
  134. package/dist/vue-ui-onion-CgLNDFrZ.js +5 -0
  135. package/dist/vue-ui-parallel-coordinate-plot-ms14eLus.js +9 -0
  136. package/dist/vue-ui-quadrant-6GgQZ8fW.js +2 -0
  137. package/dist/vue-ui-quick-chart-CzRbFXIS.js +16 -0
  138. package/dist/vue-ui-radar-BxsD2JBj.js +1 -0
  139. package/dist/vue-ui-rating-D0QvpD3V.js +1 -0
  140. package/dist/vue-ui-relation-circle-BFPAlaWQ.js +1 -0
  141. package/dist/vue-ui-ridgeline-G2m7eFWe.js +2 -0
  142. package/dist/vue-ui-rings-l_BLWL48.js +1 -0
  143. package/dist/vue-ui-scatter-C4hXe3DM.js +9 -0
  144. package/dist/{vue-ui-skeleton-SlYTmirP.js → vue-ui-skeleton-BLyh-ESb.js} +3 -3
  145. package/dist/{vue-ui-smiley-DZVFOGfv.js → vue-ui-smiley-C00q-teB.js} +1 -1
  146. package/dist/{vue-ui-spark-trend-D155vscB.js → vue-ui-spark-trend-D0hz9kNt.js} +1 -1
  147. package/dist/vue-ui-sparkbar-Dweyr8h-.js +1 -0
  148. package/dist/{vue-ui-sparkgauge-CFj0wLj5.js → vue-ui-sparkgauge-DQfCXKFj.js} +1 -1
  149. package/dist/vue-ui-sparkhistogram-DOfAu86W.js +1 -0
  150. package/dist/vue-ui-sparkline-DuX09S8A.js +1 -0
  151. package/dist/vue-ui-sparkstackbar-vXOpiyrI.js +1 -0
  152. package/dist/vue-ui-stackbar-DsrwNY0p.js +29 -0
  153. package/dist/vue-ui-stackline-e7EYZet7.js +39 -0
  154. package/dist/vue-ui-strip-plot-2DxzeUXU.js +2 -0
  155. package/dist/vue-ui-table-B344jLaG.js +14 -0
  156. package/dist/vue-ui-table-heatmap-BwoRcqFD.js +1 -0
  157. package/dist/vue-ui-table-sparkline-itq8yRCe.js +1 -0
  158. package/dist/vue-ui-thermometer-BSRjS7l3.js +1 -0
  159. package/dist/vue-ui-timer-DM-urc2D.js +64 -0
  160. package/dist/vue-ui-tiremarks-CbIOAO3F.js +1 -0
  161. package/dist/vue-ui-treemap-Cgal4H5O.js +1 -0
  162. package/dist/vue-ui-waffle-BZFI7JLd.js +1 -0
  163. package/dist/vue-ui-wheel-DdKm_Vd8.js +1 -0
  164. package/dist/vue-ui-word-cloud-D40vUb5e.js +4 -0
  165. package/dist/vue-ui-world-BseI3A0C.js +19 -0
  166. package/dist/vue-ui-xy-Bl-DUFcf.js +27 -0
  167. package/dist/vue-ui-xy-DNVd3FPA.js +31 -0
  168. package/dist/vue-ui-xy-canvas-CRSisgSA.js +9 -0
  169. package/dist/vue_ui_3d_bar-Dm8zmL8w.js +1 -0
  170. package/dist/vue_ui_age_pyramid-DXJeenVU.js +1 -0
  171. package/dist/vue_ui_bullet-Biewiy1l.js +1 -0
  172. package/dist/vue_ui_bump-DZoGcET0.js +1 -0
  173. package/dist/vue_ui_candlestick-DpPpEElM.js +1 -0
  174. package/dist/vue_ui_chestnut-BKcntsvv.js +1 -0
  175. package/dist/vue_ui_chord-Crjq1pgV.js +1 -0
  176. package/dist/vue_ui_circle_pack-DarCZyF2.js +1 -0
  177. package/dist/vue_ui_dag-B-4OxeQQ.js +1 -0
  178. package/dist/vue_ui_donut-B2W2nyAS.js +1 -0
  179. package/dist/vue_ui_donut_evolution-BvIyBtun.js +1 -0
  180. package/dist/vue_ui_dumbbell-DyyFLbhQ.js +1 -0
  181. package/dist/vue_ui_flow-aeVlnSsc.js +1 -0
  182. package/dist/vue_ui_funnel-CWrEr790.js +1 -0
  183. package/dist/vue_ui_galaxy-DvaSrGxT.js +1 -0
  184. package/dist/vue_ui_gauge-Brc1-auP.js +1 -0
  185. package/dist/vue_ui_geo-COGanKF8.js +1 -0
  186. package/dist/vue_ui_graph-31AYnh4c.js +1 -0
  187. package/dist/vue_ui_heatmap-Q8YMKNq2.js +1 -0
  188. package/dist/vue_ui_hill-Dbv_VVlr.js +1 -0
  189. package/dist/vue_ui_history_plot-C0kFJh-f.js +1 -0
  190. package/dist/vue_ui_horizontal_bar-uuJ0_9O6.js +1 -0
  191. package/dist/vue_ui_label-D3BzxTFQ.js +1 -0
  192. package/dist/vue_ui_molecule-VokyVu8q.js +1 -0
  193. package/dist/vue_ui_mood_radar-i6r1Gp6v.js +1 -0
  194. package/dist/vue_ui_nested_donuts-BAb9o0Ro.js +1 -0
  195. package/dist/vue_ui_onion-BMjwCChN.js +1 -0
  196. package/dist/vue_ui_parallel_coordinate_plot-Wb2Xmpjs.js +1 -0
  197. package/dist/vue_ui_quadrant-DbLNBD92.js +1 -0
  198. package/dist/vue_ui_quick_chart-KljadV9E.js +1 -0
  199. package/dist/vue_ui_radar-Pd3xOzjc.js +1 -0
  200. package/dist/vue_ui_relation_circle-BLo4XQFQ.js +1 -0
  201. package/dist/vue_ui_ridgeline-BIaWjw_v.js +1 -0
  202. package/dist/vue_ui_rings-C0puwNW1.js +1 -0
  203. package/dist/vue_ui_scatter-4as114Wa.js +1 -0
  204. package/dist/vue_ui_spark_trend-BgPQfeCz.js +1 -0
  205. package/dist/vue_ui_sparkbar-CvcZ5nwT.js +1 -0
  206. package/dist/vue_ui_sparkgauge-D3xirz2w.js +1 -0
  207. package/dist/vue_ui_sparkhistogram-E6G1761_.js +1 -0
  208. package/dist/vue_ui_sparkline-DKZdnbap.js +1 -0
  209. package/dist/vue_ui_sparkstackbar-DZX34uPS.js +1 -0
  210. package/dist/vue_ui_stackbar-BrAzeA3Y.js +1 -0
  211. package/dist/vue_ui_stackline-B6ylXHBJ.js +1 -0
  212. package/dist/vue_ui_strip_plot-uxKGttVC.js +1 -0
  213. package/dist/vue_ui_table_heatmap-DVMDsaVJ.js +1 -0
  214. package/dist/vue_ui_table_sparkline-BQO5A9u8.js +1 -0
  215. package/dist/vue_ui_thermometer-BAFdvXZW.js +1 -0
  216. package/dist/vue_ui_tiremarks-LwElhY5p.js +1 -0
  217. package/dist/vue_ui_treemap-JB0DfAmd.js +1 -0
  218. package/dist/vue_ui_waffle-BVf3Wcda.js +1 -0
  219. package/dist/vue_ui_wheel-bdYAONK7.js +1 -0
  220. package/dist/vue_ui_word_cloud-Dn2Ffjxb.js +1 -0
  221. package/dist/vue_ui_xy-BfaXjpvS.js +1 -0
  222. package/dist/vue_ui_xy_canvas-cQVme5sy.js +1 -0
  223. package/package.json +9 -9
  224. package/dist/BaseDraggableDialog-BK7dj9O6.js +0 -1
  225. package/dist/BaseZoomControls-JSk9zW3D.js +0 -1
  226. package/dist/ColorPicker-CwYfNvwH.js +0 -1
  227. package/dist/PenAndPaper-DoNTA-SV.js +0 -1
  228. package/dist/SlicerPreview-ChKbdZSU.js +0 -1
  229. package/dist/XyAnalysisOptions-CV22ga_a.js +0 -1
  230. package/dist/package-CXaebsLV.js +0 -1
  231. package/dist/resolveChartConfig-CIhClE5R.js +0 -1
  232. package/dist/useConfig-C3FbHv4N.js +0 -1
  233. package/dist/vue-data-ui-O-w339Ac.js +0 -1
  234. package/dist/vue-ui-3d-bar-CcFFARyq.js +0 -19
  235. package/dist/vue-ui-age-pyramid-Di6fKV6f.js +0 -1
  236. package/dist/vue-ui-annotator-sBGtsgcb.js +0 -331
  237. package/dist/vue-ui-bullet-BZLa1xj7.js +0 -34
  238. package/dist/vue-ui-bump-BSdpAH0l.js +0 -8
  239. package/dist/vue-ui-candlestick-BKZASgq9.js +0 -22
  240. package/dist/vue-ui-carousel-table-B20E2K8A.js +0 -1
  241. package/dist/vue-ui-chestnut-DavvzmiQ.js +0 -1
  242. package/dist/vue-ui-chord-D2Hn54i7.js +0 -21
  243. package/dist/vue-ui-circle-pack-BKaS-zWo.js +0 -13
  244. package/dist/vue-ui-cursor-BUOHKNmb.js +0 -1
  245. package/dist/vue-ui-dag-SLYPxbGo.js +0 -9
  246. package/dist/vue-ui-dashboard-Bgt7VLv0.js +0 -1
  247. package/dist/vue-ui-donut-8ZWyXEVs.js +0 -22
  248. package/dist/vue-ui-donut-DBcB8Ym1.js +0 -47
  249. package/dist/vue-ui-donut-evolution-D3lo74Ce.js +0 -2
  250. package/dist/vue-ui-dumbbell-CdarkL8Z.js +0 -9
  251. package/dist/vue-ui-flow-B0dYxGWT.js +0 -3
  252. package/dist/vue-ui-funnel-C0Cl9jMd.js +0 -1
  253. package/dist/vue-ui-galaxy-C_UWOQn4.js +0 -1
  254. package/dist/vue-ui-gauge-B94ToHlW.js +0 -1
  255. package/dist/vue-ui-geo-V-JmJgKS.js +0 -1
  256. package/dist/vue-ui-gizmo-BvVDEnNu.js +0 -1
  257. package/dist/vue-ui-heatmap-DWtbocz5.js +0 -1
  258. package/dist/vue-ui-hill-BH_lYm5G.js +0 -1
  259. package/dist/vue-ui-history-plot-DkWvta0h.js +0 -2
  260. package/dist/vue-ui-horizontal-bar-DbJ1DFjG.js +0 -4
  261. package/dist/vue-ui-molecule-BrG8K2Tm.js +0 -1
  262. package/dist/vue-ui-mood-radar-DEpFpfiW.js +0 -1
  263. package/dist/vue-ui-nested-donuts-CZetOzaq.js +0 -19
  264. package/dist/vue-ui-onion-DvyAxUSj.js +0 -5
  265. package/dist/vue-ui-parallel-coordinate-plot-Bdakcv3w.js +0 -9
  266. package/dist/vue-ui-quadrant-CWZeQjHE.js +0 -2
  267. package/dist/vue-ui-quick-chart-BULxPrPs.js +0 -16
  268. package/dist/vue-ui-radar-CJ_5G0QP.js +0 -1
  269. package/dist/vue-ui-rating-QcJoab0i.js +0 -1
  270. package/dist/vue-ui-relation-circle-Vetly6f0.js +0 -1
  271. package/dist/vue-ui-ridgeline-5a87TiQf.js +0 -2
  272. package/dist/vue-ui-rings-CKuFf5vA.js +0 -1
  273. package/dist/vue-ui-scatter-C2hNg3ED.js +0 -9
  274. package/dist/vue-ui-sparkbar-DFShNanl.js +0 -1
  275. package/dist/vue-ui-sparkhistogram-DwDcqqEj.js +0 -1
  276. package/dist/vue-ui-sparkline-kxl5wQGY.js +0 -1
  277. package/dist/vue-ui-sparkstackbar-CHjaAWVJ.js +0 -1
  278. package/dist/vue-ui-stackbar-BrtUg-Mb.js +0 -29
  279. package/dist/vue-ui-stackline-CU2UkEJU.js +0 -39
  280. package/dist/vue-ui-strip-plot-BmEpoIoU.js +0 -2
  281. package/dist/vue-ui-table-Ddg209i0.js +0 -14
  282. package/dist/vue-ui-table-heatmap-B8AdX6Nq.js +0 -1
  283. package/dist/vue-ui-table-sparkline-B62l_ODH.js +0 -1
  284. package/dist/vue-ui-thermometer-CvxyfTWE.js +0 -1
  285. package/dist/vue-ui-timer-BkNtid9A.js +0 -64
  286. package/dist/vue-ui-tiremarks-BE0nbuHp.js +0 -1
  287. package/dist/vue-ui-treemap-B9wAoh5g.js +0 -1
  288. package/dist/vue-ui-waffle-DqeBiuY3.js +0 -1
  289. package/dist/vue-ui-wheel---NZaS40.js +0 -1
  290. package/dist/vue-ui-word-cloud-DRFGFVmf.js +0 -4
  291. package/dist/vue-ui-world-D5gKzypf.js +0 -19
  292. package/dist/vue-ui-xy-Caj8jz6D.js +0 -31
  293. package/dist/vue-ui-xy-CcVIXfL_.js +0 -27
  294. package/dist/vue-ui-xy-canvas-BceSG3AO.js +0 -9
  295. package/dist/vue_ui_3d_bar-DmAve5Ri.js +0 -1
  296. package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +0 -1
  297. package/dist/vue_ui_bullet-CwVYkpjd.js +0 -1
  298. package/dist/vue_ui_bump-KJL9GYr4.js +0 -1
  299. package/dist/vue_ui_candlestick-DKvha_Ab.js +0 -1
  300. package/dist/vue_ui_chestnut-BxxivKN7.js +0 -1
  301. package/dist/vue_ui_chord-Fq6VBRT1.js +0 -1
  302. package/dist/vue_ui_circle_pack-CfXkXi7v.js +0 -1
  303. package/dist/vue_ui_dag-1b_dLSym.js +0 -1
  304. package/dist/vue_ui_donut-T5PeOqvf.js +0 -1
  305. package/dist/vue_ui_donut_evolution-CVoh3twl.js +0 -1
  306. package/dist/vue_ui_dumbbell-BMcxK0N3.js +0 -1
  307. package/dist/vue_ui_flow-kvV56Es9.js +0 -1
  308. package/dist/vue_ui_funnel-CaEV5hG7.js +0 -1
  309. package/dist/vue_ui_galaxy-B94QInxc.js +0 -1
  310. package/dist/vue_ui_gauge-BJhb6yqE.js +0 -1
  311. package/dist/vue_ui_geo-DL1SMQHp.js +0 -1
  312. package/dist/vue_ui_graph-B1ACwQj7.js +0 -1
  313. package/dist/vue_ui_heatmap-kh5NMmwf.js +0 -1
  314. package/dist/vue_ui_hill-DQi4pQCG.js +0 -1
  315. package/dist/vue_ui_history_plot-soyqUW4Y.js +0 -1
  316. package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +0 -1
  317. package/dist/vue_ui_label-dtPqyFsj.js +0 -1
  318. package/dist/vue_ui_molecule-Bw1UW1Na.js +0 -1
  319. package/dist/vue_ui_mood_radar-CXaBdJnv.js +0 -1
  320. package/dist/vue_ui_nested_donuts-CRtGsJcz.js +0 -1
  321. package/dist/vue_ui_onion-C9BedU_-.js +0 -1
  322. package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +0 -1
  323. package/dist/vue_ui_quadrant-BUv-SqzP.js +0 -1
  324. package/dist/vue_ui_quick_chart-BRfcRW6Z.js +0 -1
  325. package/dist/vue_ui_radar-68iK9Fam.js +0 -1
  326. package/dist/vue_ui_relation_circle-Dkv-cSB6.js +0 -1
  327. package/dist/vue_ui_ridgeline-Di26JtQu.js +0 -1
  328. package/dist/vue_ui_rings-BcDDXHpQ.js +0 -1
  329. package/dist/vue_ui_scatter-C50uFYQL.js +0 -1
  330. package/dist/vue_ui_spark_trend-BOM3zo64.js +0 -1
  331. package/dist/vue_ui_sparkbar-Bpx7QrFq.js +0 -1
  332. package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +0 -1
  333. package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +0 -1
  334. package/dist/vue_ui_sparkline-CvL_e9L8.js +0 -1
  335. package/dist/vue_ui_sparkstackbar-Chtog7hC.js +0 -1
  336. package/dist/vue_ui_stackbar-BkBIi_bL.js +0 -1
  337. package/dist/vue_ui_stackline-D7b63K84.js +0 -1
  338. package/dist/vue_ui_strip_plot-CwMowrhT.js +0 -1
  339. package/dist/vue_ui_table_heatmap-vfeY6r97.js +0 -1
  340. package/dist/vue_ui_table_sparkline-Dlfbza49.js +0 -1
  341. package/dist/vue_ui_thermometer-CRijq6H6.js +0 -1
  342. package/dist/vue_ui_tiremarks-8HFfABNF.js +0 -1
  343. package/dist/vue_ui_treemap-Bv4Rdl5_.js +0 -1
  344. package/dist/vue_ui_waffle-BbBLSluB.js +0 -1
  345. package/dist/vue_ui_wheel-C-479bvJ.js +0 -1
  346. package/dist/vue_ui_word_cloud-DBiJtSyL.js +0 -1
  347. package/dist/vue_ui_xy-CJBM9F6W.js +0 -1
  348. package/dist/vue_ui_xy_canvas-CT-FN9rU.js +0 -1
@@ -1,14 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{$ as n,C as r,D as i,Ft as a,Ht as o,Jt as ee,X as te,d as s,in as ne,nt as re,r as ie}from"./lib-rPeBMZrn.js";import{n as ae,t as oe}from"./useHints-C-TwxM0Y.js";import{t as se}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ce}from"./BaseIcon-CoY0vuL3.js";import{t as le}from"./vue-ui-xy-CcVIXfL_.js";import{t as ue}from"./vue-ui-donut-DBcB8Ym1.js";import{Fragment as c,computed as l,createBlock as de,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createTextVNode as p,createVNode as fe,defineAsyncComponent as pe,mergeProps as me,nextTick as he,normalizeClass as m,normalizeStyle as h,onMounted as ge,openBlock as g,ref as _,renderList as v,toDisplayString as y,unref as b,useCssVars as _e,vModelSelect as ve,vModelText as ye,watch as be,withCtx as xe,withDirectives as x,withKeys as Se,withModifiers as Ce}from"vue";var we=/* @__PURE__ */ e({default:()=>nn}),Te=[`innerHTML`],Ee=[`data-is-open`],De={class:`vue-ui-table-export-hub-options`},Oe={class:`label`},ke=[`id`,`onClick`],Ae=[`innerHTML`],je={class:`vue-ui-table-dialog-field`},Me={class:`label vue-ui-table-dialog-input-label`,style:{width:`100%`}},Ne={style:{width:`fit-content`}},Pe={class:`vue-ui-table`},Fe={key:0},Ie={key:0},Le={key:1},Re={key:0,style:{display:`flex`,"align-items":`center`,"justify-content":`flex-end`}},ze=[`innerHTML`],Be={key:0,style:{"margin-left":`3px`}},Ve={key:0},He={class:`th-filter`},Ue={key:0,class:`th-date`},We={class:`date-wrapper--inputs`},Ge={class:`date-fieldset`},Ke=[`for`],qe=[`id`,`onUpdate:modelValue`,`onInput`],Je={class:`date-fieldset`},Ye=[`for`],Xe=[`id`,`onUpdate:modelValue`,`onInput`],Ze={class:`date-wrapper--button`},Qe=[`onClick`],$e=[`innerHTML`],et=[`innerHTML`],tt=[`innerHTML`],nt=[`onClick`,`disabled`],rt=[`placeholder`,`onUpdate:modelValue`,`name`],it=[`onClick`],at=[`innerHTML`],ot=[`innerHTML`],st=[`innerHTML`],ct=[`onClick`,`innerHTML`],lt=[`innerHTML`],ut={key:5,class:`th-range-filter`},dt=[`for`],ft=[`id`,`max`,`min`,`onUpdate:modelValue`],pt=[`id`,`max`,`min`,`onUpdate:modelValue`],mt=[`for`],ht=[`onClick`,`disabled`],gt=[`id`],_t=[`onClick`],vt=[`onClick`,`onKeyup`],yt=[`innerHTML`,`onClick`,`onKeyup`],bt=[`data-row`],xt=[`data-row`],St=[`data-row`,`onClick`,`onKeyup`,`id`],Ct=[`innerHTML`],wt={key:1},Tt={key:2},Et={key:5},Dt=[`innerHTML`],Ot={key:0},kt={style:{"margin-left":`12px`}},At={class:`format-num`},jt={key:0,class:`format-num`},Mt={key:1,class:`format-num`},Nt={key:2},Pt={key:1,class:`vue-ui-table-paginator format-num`},Ft={key:2,class:`vue-ui-table-size-warning`},It=[`innerHTML`],Lt={key:4,class:`vue-ui-table-pagination format-num`},Rt=[`innerHTML`],zt={for:`pageScroller`,style:{"font-size":`14px`}},Bt=[`max`,`value`],Vt={key:1},Ht=[`innerHTML`],Ut={class:`vue-ui-table-chart-modal-options`},Wt=[`innerHTML`],Gt=[`innerHTML`],Kt=[`innerHTML`],qt={style:{width:`100%`,height:`fit-content`}},Jt={class:`vue-ui-table-fieldset`},Yt={class:`vue-ui-table-fieldset-wrapper`},Xt=[`name`,`id`,`checked`,`onInput`],Zt=[`for`],Qt=[`disabled`],$t=[`innerHTML`],en={style:{width:`100%`,"margin-bottom":`12px`}},tn={key:2,style:{width:`100%`,"margin-bottom":`32px`}},nn=/*#__PURE__*/ se({__name:`vue-ui-table`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`page-change`],setup(e,{expose:se,emit:we}){_e(e=>({v31587cb6:Mn.value,v00ec2749:Nn.value,v13133185:Ln.value,v70a13611:Pn.value,v4ef2a4f1:Rn.value,v7d133a62:zn.value,v2a62de87:Fn.value,v5793af2e:In.value,v1d62a88a:Bn.value}));let nn=pe(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),S=e,rn=we,{vue_ui_table:an}=t(),on=te();_(null);let sn=_(null),cn=_(null),C=_({height:316,type:`bar`,width:512}),w=_({ASC:1,BAR:`bar`,DATE:`date`,DESC:-1,DONUT:`donut`,LINE:`line`,NUMERIC:`numeric`,PERCENTAGE:`percentage`,TEXT:`text`}),ln=_(100),un=_(100);_(0),_(0),_(400),_(200);let dn=_({CELL:`smart-td-selected`,FIRST_TD:`smart-td-selected-first`,LAST_TD:`smart-td-selected-last`,ROW:`smart-td-selected-neighbor`}),fn=_(void 0),pn=_(void 0),T=_({col:void 0,rows:[]}),E=_(0),D=_(20),mn=_(!1),hn=_(!1),O=_({}),k=_({}),gn=_({}),A=_({}),j=_({}),M=_({}),N=_({}),P=_({}),F=_({}),_n=_(S.config.rowsPerPage?S.config.rowsPerPage:25),vn=_([.../* @__PURE__ */ new Set([10,25,50,100,250,500,S.config.rowsPerPage?S.config.rowsPerPage:25,S.dataset.body.length])].sort((e,t)=>e-t)),yn=_(void 0),I=_(void 0),bn=_(void 0),L=_(!1),xn=_(0),Sn=_(``),Cn=_(``),R=_(!1),z=_(JSON.parse(JSON.stringify(S.dataset.body)).map((e,t)=>({...e,absoluteIndex:t}))),wn=_(JSON.parse(JSON.stringify(S.dataset.body)).map((e,t)=>({...e,absoluteIndex:t}))),B=_(JSON.parse(JSON.stringify(S.dataset.header)).map((e,t)=>({average:Object.hasOwn(e,`average`)?e.average:!1,decimals:Object.hasOwn(e,`decimals`)?e.decimals:0,isMultiselect:Object.hasOwn(e,`isMultiselect`)?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,`isPercentage`)?e.isPercentage:!1,isSearch:Object.hasOwn(e,`isSearch`)?e.isSearch:!1,isSort:Object.hasOwn(e,`isSort`)?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,`percentageTo`)?e.percentageTo:void 0,prefix:Object.hasOwn(e,`prefix`)?e.prefix:``,rangeFilter:Object.hasOwn(e,`rangeFilter`)?e.rangeFilter:!1,suffix:Object.hasOwn(e,`suffix`)?e.suffix:``,sum:Object.hasOwn(e,`sum`)?e.sum:!1,type:e.type,index:t}))),Tn=l(()=>`background:${W.value.backgroundColor};color:${W.value.color};outline:${W.value.outline}`);function En(e){return{disabled:e,style:`cursor:${Y.value?`pointer`:`default`};background:${An.value.buttons.backgroundColor};color:${An.value.buttons.color};opacity:${e?An.value.buttons.opacityDisabled:1}`}}function Dn(e,t){return n({p:t.prefix,v:Number(e),s:t.suffix,r:t.decimals})}let On=l(()=>sn.value?sn.value.getBoundingClientRect().height+3:3),V=l(()=>{if(!Object.keys(S.config||{}).length)return an;let e=ne({defaultConfig:an,userConfig:S.config});return r(e)}),H=l(()=>V.value.style.exportMenu),U=l(()=>V.value.style.title),W=l(()=>V.value.style.th),G=l(()=>V.value.style.inputs),kn=l(()=>V.value.style.dropdowns),K=l(()=>V.value.style.closeButtons),q=l(()=>V.value.style.rows),An=l(()=>V.value.style.pagination),J=l(()=>V.value.style.chart),jn=l(()=>V.value.style);ae({config:()=>V.value,dataset:()=>S.dataset,component:`VueUiTable`,rules:[oe.noHint]});let Y=l(()=>V.value.useCursorPointer),Mn=l(()=>W.value.buttons.cancel.inactive.backgroundColor),Nn=l(()=>W.value.buttons.cancel.inactive.color),Pn=l(()=>W.value.buttons.cancel.active.backgroundColor),Fn=l(()=>W.value.buttons.filter.active.backgroundColor),In=l(()=>W.value.buttons.filter.active.color),Ln=l(()=>a(Pn.value,.33)),Rn=l(()=>ee(Pn.value,33)),zn=l(()=>a(Fn.value,.33)),Bn=l(()=>ee(Fn,33)),Vn=l(()=>[...B.value].filter(e=>e.type===w.value.DATE)),Hn=l(()=>[``,...Vn.value.map(e=>e.name)]),Un=l(()=>{let e=Vn.value.find(e=>e.name===Sn.value);return e?e.index:null}),X=l(()=>{let e=[];if(z.value.length)for(let t=0;t<z.value.length;t+=_n.value)e.push(z.value.slice(t,t+_n.value));return e}),Wn=l(()=>X.value[E.value]),Gn=l(()=>Un.value==null?[]:Wn.value.map(e=>e.td[Un.value])),Kn=l(()=>Object.keys(j.value).map(e=>({index:e,name:S.dataset.header[e].name,options:j.value[e]}))),qn=l(()=>V.value.useChart&&T.value.rows.length>1),Jn=l(()=>S.dataset.header.map(e=>e.type).includes(w.value.NUMERIC)),Z=l(()=>({arrowSort:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M3 9l4 -4l4 4m-4 -4v14" /><path d="M21 15l-4 4l-4 -4m4 4v-14" /></svg>`,bar:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M3 12m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M9 8m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M15 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" /><path d="M4 20l14 0" /></svg>`,chart:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M4 19l16 0" /><path d="M4 15l4 -6l4 2l4 -5l4 4" /></svg>`,chevronDown:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M6 9l6 6l6 -6" /></svg>`,chevronLeft:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value*1.6}" height="${D.value*1.6}" 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="M15 6l-6 6l6 6" /></svg>`,chevronRight:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value*1.6}" height="${D.value*1.6}" 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="M9 6l6 6l-6 6" /></svg>`,donut:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value*.8}" height="${D.value*.8}" 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="M12 3v5m4 4h5" /><path d="M8.929 14.582l-3.429 2.918" /><path d="M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" /></svg>`,export:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M12.5 21h-7.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v7.5" /><path d="M3 10h18" /><path d="M10 3v18" /><path d="M16 19h6" /><path d="M19 16l3 3l-3 3" /></svg>`,fileDownload:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M14 3v4a1 1 0 0 0 1 1h4" /><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /><path d="M12 17v-6" /><path d="M9.5 14.5l2.5 2.5l2.5 -2.5" /></svg>`,filter:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" /></svg>`,move:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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 9l3 3l-3 3" /><path d="M15 12h6" /><path d="M6 9l-3 3l3 3" /><path d="M3 12h6" /><path d="M9 18l3 3l3 -3" /><path d="M12 15v6" /><path d="M15 6l-3 -3l-3 3" /><path d="M12 3v6" /></svg>`,sort09:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 3a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 16m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 16v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sort90:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M4 15l3 3l3 -3" /><path d="M7 6v12" /><path d="M17 14a2 2 0 0 1 2 2v3a2 2 0 1 1 -4 0v-3a2 2 0 0 1 2 -2z" /><path d="M17 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" /><path d="M19 5v3a2 2 0 0 1 -2 2h-1.5" /></svg>`,sortAZ:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M15 10v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 21h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sortZA:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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="M15 21v-5c0 -1.38 .62 -2 2 -2s2 .62 2 2v5m0 -3h-4" /><path d="M19 10h-4l4 -7h-4" /><path d="M4 15l3 3l3 -3" /><path d="M7 6v12" /></svg>`,sum:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" 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>`,table:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" fill="white" d="M 10 2, 21 2, 21 21, 10 21Z"/><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z" /><path d="M3 10h18" /><path d="M10 3v18" /></svg>`,warning:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value*.8}" height="${D.value*.8}" 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="M10.24 3.957l-8.422 14.06a1.989 1.989 0 0 0 1.7 2.983h16.845a1.989 1.989 0 0 0 1.7 -2.983l-8.423 -14.06a1.989 1.989 0 0 0 -3.4 0z" /><path d="M12 9v4" /><path d="M12 17h.01" /></svg>`,grip:`<svg xmlns="http://www.w3.org/2000/svg" width="${D.value}" height="${D.value}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /><path d="M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" /></svg>`})),Yn=l(()=>z.value.map(e=>e.td)),Q=l(()=>S.dataset.header[T.value.col]),Xn=l(()=>{let e=T.value.rows.map(e=>e.value).reduce((e,t)=>e+t,0),t=e/T.value.rows.length,n=e=>Number(e.toFixed(Q.value.decimals)).toLocaleString();return{sumPercentage:n(e*100),sumRegular:n(e),averagePercentage:n(t*100),averageRegular:n(t)}}),Zn=_({width:1e3,height:500});function Qn({width:e,height:t}){Zn.value={width:e,height:t}}let $n=l(()=>{if(!qn.value)return[];let e=Q.value,t={pdf:!1,csv:!1,table:!1,annotator:!1},n=Zn.value.height,r=Zn.value.width,i=r/T.value.rows.length,o=Math.max(...T.value.rows.map(e=>e.value)),ee=Math.min(...T.value.rows.map(e=>e.value)),te=e.isPercentage&&e.percentageTo,ne=C.value.type===w.value.DONUT&&I.value&&I.value.name,re=e.name+(te?` / ${S.dataset.header[M.value[T.value.col].referenceIndex].name}`:``)+(ne?` ${V.value.translations.by} ${I.value.name}`:``),ae=e.prefix,oe=e.suffix,se=e=>[{name:re,series:T.value.rows.map(e=>e.value),type:e,useProgression:!0,...e===`line`?{smooth:J.value.layout.line.smooth,color:J.value.layout.line.stroke,useArea:J.value.layout.line.useArea}:{color:J.value.layout.bar.fill}}],ce=se(`line`),le=se(`bar`),ue=J.value.modal.backgroundColor,c=ie(ue),l=e.decimals,de={useCssAnimation:!1,chart:{width:r,height:n-250,backgroundColor:ue,color:c,labels:{fontSize:18,prefix:ae,suffix:oe},grid:{stroke:a(c,.5),labels:{color:c,xAxisLabels:{color:c,show:Gn.value.length,values:Gn.value,datetimeFormatter:J.value.layout.datetimeFormatter,showOnlyAtModulo:J.value.layout.timeLabels.showOnlyAtModulo,modulo:J.value.layout.timeLabels.modulo}}},highlighter:{color:c},legend:{color:c,show:!1},title:{text:re,color:c,textAlign:`center`,fontSize:18},tooltip:{showTimeLabel:Gn.value.length,backgroundOpacity:30,color:c,backgroundColor:ue,showPercentage:!1,roundingValue:l},userOptions:{buttons:{...t}},zoom:{show:J.value.layout.zoom.show,autoFit:J.value.layout.zoom.autoFit,focusOnDrag:!0,minimap:{show:!0}}},line:{labels:{show:!0,color:c,rounding:l},dot:{useSerieColor:!1,fill:J.value.layout.line.plot.fill,strokeWidth:J.value.layout.line.plot.strokeWidth}},bar:{useGradient:!1,border:{useSerieColor:!1,stroke:J.value.layout.bar.stroke,strokeWidth:J.value.layout.bar.strokeWidth},labels:{show:!0,color:c,rounding:l}}},u=ee>=0?0:Math.abs(ee),d=o+u,f=e.isPercentage,p=T.value.rows.map((t,r)=>({x:i*r+i/2,y:(1-(t.value+u)/d)*n,value:f?t.value*100:t.value,suffix:f?`%`:e.suffix?e.suffix:``,prefix:e.prefix?e.prefix:``,index:t.index,absoluteValue:f?Math.abs(t.value)*100:Math.abs(t.value)}));return{donutConfig:{useCssAnimation:!1,userOptions:{position:`left`,buttons:{...t}},style:{chart:{backgroundColor:ue,color:c,layout:{curvedMarkers:!0,donut:{strokeWidth:64},labels:{dataLabels:{suffix:f?`%`:``,prefix:ae},value:{rounding:l},percentage:{color:c,rounding:l},name:{color:c},hollow:{average:{color:c,text:V.value.translations.average,value:{color:c}},total:{color:c,offsetY:-12,text:V.value.translations.total,value:{color:c,offsetY:-12}}}}},legend:{backgroundColor:ue,color:c,roundingValue:l,roundingPercentage:l},padding:{left:12,right:12},title:{text:re,color:c,fontSize:18},tooltip:{backgroundOpacity:30,color:c,backgroundColor:ue,roundingValue:l,roundingValue:l}}}},xyConfig:de,xyDatasetLine:ce,xyDatasetBar:le,progression:p.length>=2&&s(p)}});function er(){let e=I.value.options.map((e,t)=>({name:e,color:o[t]||o[t%o.length],values:[Wn.value.filter((t,n)=>t.td[I.value.index]===e&&T.value.rows.map(e=>e.index).includes(n)).map(e=>e.td[T.value.col]).reduce((e,t)=>Math.abs(e)+Math.abs(t),0)],absoluteValue:Wn.value.filter((t,n)=>t.td[I.value.index]===e&&T.value.rows.map(e=>e.index).includes(n)).map(e=>e.td[T.value.col]).reduce((e,t)=>e+t,0)})).sort((e,t)=>t.value-e.value);fn.value=e,he(()=>{C.value.type=w.value.DONUT,R.value=!1})}function tr(e,t){return!k.value[e]&&(t.isSort||t.isSearch||t.isMultiselect||t.rangeFilter)&&![w.value.DATE].includes(t.type)}function nr(e=`all`){let t=S.dataset.header.map(e=>e.name),n=e===`all`?z.value.map(e=>e.td):Wn.value.map(e=>e.td),r=[t].concat(n),a=i(r);re({csvContent:a,title:Cn.value})}function rr(){let e=document.getElementsByClassName(`th-dropdown`);e.length&&Array.from(e).forEach(e=>{e.dataset.isOpen=!1})}function ir(e,t){let n;clearTimeout(n),n=setTimeout(e,t)}function ar(){let e=document.getElementsByClassName(`tr_${on}`);Array.from(e).forEach(e=>{Array.from(e.getElementsByTagName(`td`)).forEach(e=>{e.dataset.row===`even`?(e.style.background=q.value.even.backgroundColor,e.style.color=q.value.even.color):(e.style.background=q.value.odd.backgroundColor,e.style.color=q.value.odd.color)})}),Array.from(e).forEach(e=>e.dataset.selected=`false`),E.value>X.value.length-1&&(E.value=X.value.length-1),L.value=!1,fn.value=void 0,yn.value=void 0,C.value.type=w.value.BAR,T.value={col:void 0,rows:[]},ln.value=100,un.value=100}function or(e,t){z.value=e.filter(e=>e.td[t]>=N.value[t].min&&e[t]<=N.value[t].max)}function sr(e,t){if(F.value[t]===w.value.ASC&&(e=e.sort((e,n)=>e[t]-n[t])),F.value[t]===w.value.DESC)e=e.sort((e,n)=>n[t]-e[t]);else return 0}function cr(){ar(),Object.keys(N.value).forEach(e=>{or(z.value,e)}),Object.keys(F.value).forEach(e=>{sr(z.value,e)}),pn.value!==void 0&&sr(z.value,pn.value),S.dataset.header.forEach((e,t)=>{if(e.isPercentage){let e=M.value[t].referenceIndex,n=z.value.map(t=>t.td[e]).reduce((e,t)=>e+t,0);z.value.forEach(r=>{r.td[t]=r.td[e]/n})}}),E.value>X.value.length-1&&(E.value=X.value.length-1),[-1].includes(E.value)&&(E.value=0)}function lr(){z.value=wn.value.filter(e=>{for(let t in P.value)if(!e.td[t].toUpperCase().includes(P.value[t].toUpperCase()))return!1;for(let t in j.value)if(!j.value[t].some(n=>n===e.td[t]))return!1;for(let t in O.value){let n=new Date(e.td[t]),r=new Date(O.value[t].from),i=new Date(O.value[t].to);if(n<r||n>i)return!1}return!0}),cr()}function ur(e){return fr(e)/z.value.length}function dr(e){let t=S.dataset.body.map(t=>new Date(t.td[e])),n=new Date(Math.min(...t)),r=new Date(Math.max(...t)),i=n.getFullYear(),a=r.getFullYear(),o=String(n.getMonth()+1).padStart(2,`0`),ee=String(r.getMonth()+1).padStart(2,`0`),te=String(n.getDate()).padStart(2,`0`),s=String(r.getDate()).padStart(2,`0`);return{from:`${i}-${o}-${te}`,to:`${a}-${ee}-${s}`}}function $(e){return[...new Set(S.dataset.body.map(t=>t.td[e]))]}function fr(e){return Yn.value.map(t=>t[e]).map(e=>isNaN(Number(e))?0:e).reduce((e,t)=>e+t,0)}function pr(e){return e.includes(NaN)}function mr(e,t){return!j.value[t]||j.value[t].includes(e)}function hr(e){return!isNaN(Number(String(e).replaceAll(`%`,``)))}function gr(e,t){let n=t.isSort,r=t.isSearch,i=t.isMultiselect&&j.value[e],a=t.rangeFilter,o=e=>{if(a&&N.value[e])return Math.round(N.value[e].min)===A.value[e].min&&Math.round(N.value[e].max)===A.value[e].max};if(n&&r&&i&&a)return[``,void 0].includes(P.value[e])&&[void 0].includes(F.value[e])&&j.value[e].length===$(e).length&&o(e);if(n&&r&&i)return[``,void 0].includes(P.value[e])&&[void 0].includes(F.value[e])&&j.value[e].length===$(e).length;if(n&&r&&a)return[``,void 0].includes(P.value[e])&&[void 0].includes(F.value[e])&&o(e);if(n&&r)return[``,void 0].includes(P.value[e])&&[void 0].includes(F.value[e]);if(n&&i&&a)return[void 0].includes(F.value[e])&&j.value[e].length===$(e).length&&o(e);if(n&&i)return[void 0].includes(F.value[e])&&j.value[e].length===$(e).length;if(r&&i&&a)return[``,void 0].includes(P.value[e])&&j.value[e].length===$(e).length&&o(e);if(r&&i)return[``,void 0].includes(P.value[e])&&j.value[e].length===$(e).length;if(r&&a)return[``,void 0].includes(P.value[e])&&o(e);if(r)return[``,void 0].includes(P.value[e]);if(n&&a)return[void 0].includes(F.value[e])&&o(e);if(n)return[void 0].includes(F.value[e]);if(i&&a)return j.value[e].length===$(e).length&&o(e);if(i)return j.value[e].length===$(e).length}function _r(){return{totalPages:X.value.length,itemsPerPage:_n.value,currentPage:E.value,currentPageData:Wn.value.map(e=>e.td)}}se({getCurrentPageData:_r});function vr(){rn(`page-change`,_r())}let yr=_(null);function br(e){if(ar(),e===`next`&&E.value<X.value.length){if(E.value+1>X.value.length-1)return;E.value+=1}else if(e===`previous`&&E.value>=1)--E.value;else{if(e-1<0||e>X.value.length||e===`previous`)return;E.value=e-1}vr(),yr.value&&yr.value.scrollTo({top:0,left:0,behavior:`smooth`})}function xr(e){e.preventDefault();let t=e.keyCode;if(![38,40,37,39].includes(t))return;let n=e.target.id.match(/cell_(\d+)_(\d+)_([0-9a-fA-F-]{36})/),r=parseInt(n[1]),i=parseInt(n[2]),a=document.getElementById(`cell_${r}_${i+1}_${on}`),o=document.getElementById(`cell_${r}_${i-1}_${on}`),ee=document.getElementById(`cell_${r+1}_${i}_${on}`),te=document.getElementById(`cell_${r-1}_${i}_${on}`),s;switch(!0){case t===39:s=a;break;case t===37:s=o;break;case t===38:s=te;break;case t===40:s=ee;break;default:return}s&&(s.focus(),s.scrollIntoView({behavior:`smooth`,block:`center`}))}function Sr(e){let t=0;for(let n=0;n<e.length;n+=1)t+=e.charCodeAt(n);return t}async function Cr(){return new Promise(e=>{let t=[];B.value.forEach((e,n)=>{if(e.isSearch&&Object.assign(P.value,{[n]:``}),e.isMultiselect&&Object.assign(j.value,{[n]:$(n)}),e.type===w.value.DATE&&(Object.assign(O.value,{[n]:dr(n)}),Object.assign(gn.value,{[n]:!1})),(e.isPercentage||e.percentageTo)&&Object.assign(M.value,{[n]:{reference:e.percentageTo,referenceIndex:S.dataset.header.map(e=>e.name).indexOf(e.percentageTo)}}),e.rangeFilter&&(Object.assign(N.value,{[n]:{min:Math.round(Math.min(...S.dataset.body.map(e=>e.td).map(e=>e[n]))),max:Math.round(Math.max(...S.dataset.body.map(e=>e.td).map(e=>e[n])))}}),Object.assign(A.value,{[n]:{min:Math.round(Math.min(...S.dataset.body.map(e=>e.td).map(e=>e[n]))),max:Math.round(Math.max(...S.dataset.body.map(e=>e.td).map(e=>e[n])))}})),e.isPercentage){let r=S.dataset.header.map(e=>e.name).indexOf(e.percentageTo),i=S.dataset.body.map(e=>e.td[r]).reduce((e,t)=>e+t,0);t.push([n,r,i])}e.type===w.value.NUMERIC&&!e.isPercentage&&Object.assign(k.value,{[n]:pr(S.dataset.body.map(e=>Number(e.td[n])))})}),z.value.forEach((e,n)=>{t.map(t=>{let[n,r,i]=t;e.td[n]=e.td[r]/i}),e.td.forEach((t,r)=>{S.dataset.header[r].type===w.value.TEXT&&S.dataset.header[r].isSearch&&(e[r]=Sr(t)),S.dataset.header[r].type===w.value.DATE&&(e[r]=new Date(t).getTime()),S.dataset.header[r].type===w.value.NUMERIC&&(e[r]=isNaN(Number(t))?r:t),wn.value[n][r]=e[r]})}),e(!0)})}function wr(e,t){return new Promise((n,r)=>{e().then(e=>{try{n(t(e))}catch(e){r(e)}}).catch(e=>{r(e)})})}async function Tr(e){O.value[e]={from:dr(e).from,to:dr(e).to},gn.value[e]=!1,await he(),lr()}function Er(e,t,n){let r=n.currentTarget;clearTimeout(cn.value),r.classList.add(`clicked`),cn.value=setTimeout(()=>{r.classList.remove(`clicked`)},200),pn.value=void 0,t.rangeFilter&&(N.value[e].min=A.value[e].min,N.value[e].max=A.value[e].max),t.isMultiselect?(j.value[e]=$(e),t.type===w.value.TEXT&&(F.value[e]=void 0),t.isSearch&&(P.value[e]=``)):t.type===w.value.NUMERIC?F.value[e]=void 0:t.type===w.value.TEXT?(F.value[e]=void 0,P.value[e]=``):t.type===w.value.DATE&&(F.value[e]=void 0),lr()}function Dr({td:e,rowIndex:t,colIndex:n,headerType:r,event:i}){if(r!==w.value.NUMERIC||isNaN(Number(e))){ar();return}T.value.col!==n&&ar();let a=i.currentTarget.parentNode;T.value.col=n,T.value.rows.map(e=>e.index).includes(t)?(a.dataset.selected=`false`,T.value.rows=T.value.rows.filter(e=>e.index!==t),i.currentTarget.classList.remove(dn.value.CELL),Array.from(a.children).forEach((e,t)=>{e.dataset.row===`even`?(e.style.background=q.value.even.backgroundColor,e.style.color=q.value.even.olor):(e.style.background=q.value.odd.backgroundColor,e.style.color=q.value.odd.color)}),i.currentTarget.dataset.row===`even`?(i.currentTarget.style.background=q.value.even.backgroundColor,i.currentTarget.style.color=q.value.even.color):(i.currentTarget.style.background=q.value.odd.backgroundColor,i.currentTarget.style.color=q.value.odd.color)):(a.dataset.selected=`true`,T.value.rows.push({index:t,value:e}),Array.from(a.children).forEach((e,t)=>{e.dataset.row===`even`?(e.style.background=q.value.even.selectedNeighbors.backgroundColor,e.style.color=q.value.even.selectedNeighbors.color):(e.style.background=q.value.odd.selectedNeighbors.backgroundColor,e.style.color=q.value.odd.selectedNeighbors.color)}),i.currentTarget.dataset.row===`odd`?(i.currentTarget.style.background=q.value.odd.selectedCell.backgroundColor,i.currentTarget.style.color=q.value.odd.selectedCell.color):(i.currentTarget.style.background=q.value.even.selectedCell.backgroundColor,i.currentTarget.style.color=q.value.even.selectedCell.color)),T.value.rows=T.value.rows.sort((e,t)=>e.index-t.index),C.value.type===w.value.DONUT&&T.value.rows.length>0&&er()}function Or(e){T.value.col===e?(yn.value=void 0,ar()):(Wn.value.forEach((t,n)=>{Dr({td:t.td[e],rowIndex:n,colIndex:e,headerType:w.value.NUMERIC,event:{currentTarget:document.getElementById(`cell_${n}_${e}_${on}`)}})}),yn.value=e)}async function kr(e,t){j.value[t].includes(e)?j.value[t]=j.value[t].filter(t=>t!==e):j.value[t].push(e),await he(),lr()}function Ar(e){gn.value[e]=dr(e).from!==O.value[e].from||dr(e).to!==O.value[e].to}function jr(e,t){pn.value=e;let n=t.currentTarget;clearTimeout(cn.value),n.classList.add(`clicked`),cn.value=setTimeout(()=>{n.classList.remove(`clicked`)},200),F.value[e]===1?F.value[e]=w.value.DESC:F.value[e]=w.value.ASC,cr()}function Mr(e,t,n){let r=n.currentTarget;clearTimeout(cn.value),r.classList.add(`clicked`),cn.value=setTimeout(()=>{r.classList.remove(`clicked`)},200);let i=document.getElementById(`th_dropdown_${e}`);i.dataset.isOpen===`false`?i.dataset.isOpen=`true`:i.dataset.isOpen=`false`}function Nr(e){ar(),!e||!e.target.value?E.value=0:E.value=Number(e.target.value),vr()}let Pr=_(null);ge(()=>{if(S.dataset.header.length===0)throw Error(`vue-ui-table error: missing header data.
2
- Provide an array of objects of type:
3
- {
4
- name: string;
5
- type: string; ('text' | 'numeric' | 'date')
6
- average: boolean;
7
- decimals: number | undefined;
8
- sum: boolean;
9
- isSort:boolean;
10
- isSearch: boolean;
11
- isMultiselect: boolean;
12
- isPercentage: boolean;
13
- percentageTo: string; (or '')
14
- }`);if(S.dataset.body.length===0)throw Error(`vue-ui-table error: missing body data`);hn.value=!0,wr(Cr,async()=>{await he(),hn.value=!1}),document.addEventListener(`keydown`,e=>{let t=document.activeElement;(t&&Array.from(t.classList).includes(`td-focusable`)&&e.key.includes(`Arrow`)||e.code===`Space`)&&e.preventDefault()}),Cn.value=H.value.filename,Sn.value=Vn.value[0]?.name??``}),be(()=>S.dataset,e=>{hn.value=!0,z.value=JSON.parse(JSON.stringify(e.body)).map((e,t)=>({...e,absoluteIndex:t})),wn.value=JSON.parse(JSON.stringify(e.body)).map((e,t)=>({...e,absoluteIndex:t})),B.value=JSON.parse(JSON.stringify(e.header)).map((e,t)=>({average:Object.hasOwn(e,`average`)?e.average:!1,decimals:Object.hasOwn(e,`decimals`)?e.decimals:0,isMultiselect:Object.hasOwn(e,`isMultiselect`)?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,`isPercentage`)?e.isPercentage:!1,isSearch:Object.hasOwn(e,`isSearch`)?e.isSearch:!1,isSort:Object.hasOwn(e,`isSort`)?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,`percentageTo`)?e.percentageTo:void 0,prefix:Object.hasOwn(e,`prefix`)?e.prefix:``,rangeFilter:Object.hasOwn(e,`rangeFilter`)?e.rangeFilter:!1,suffix:Object.hasOwn(e,`suffix`)?e.suffix:``,sum:Object.hasOwn(e,`sum`)?e.sum:!1,type:e.type,index:t})),T.value={col:void 0,rows:[]},yn.value=void 0,_n.value=S.config.rowsPerPage?S.config.rowsPerPage:25,M.value={},O.value={},gn.value={},k.value={},A.value={},N.value={},j.value={},P.value={},F.value={},L.value=!1,fn.value=void 0,I.value=void 0,bn.value=void 0,R.value=!1,T.value.col=void 0,T.value.rows=[],wr(Cr,async()=>{Nr(),await he(),hn.value=!1})},{immediate:!0,deep:!0});let Fr=_(null);return be(mn,e=>{e&&Fr.value&&Fr.value.focus()}),be(L,e=>{e?Pr.value&&Pr.value.open():Pr.value&&Pr.value.close()}),(t,r)=>(g(),d(`div`,{class:`vue-data-ui-component vue-ui-table-main`,style:h(`font-family: ${V.value.fontFamily}`)},[H.value.show?(g(),d(`div`,{key:0,class:`vue-ui-table-export-hub`,style:h({top:On.value+`px`})},[f(`button`,{onClick:r[0]||=e=>mn.value=!mn.value,innerHTML:Z.value.export,style:h(`background:${H.value.backgroundColor};color:${H.value.color};cursor:${Y.value?`pointer`:`default`}`)},null,12,Te),f(`div`,{class:`vue-ui-table-export-hub-dropdown`,"data-is-open":mn.value||`false`,style:h(`background:${H.value.backgroundColor};color:${H.value.color}`)},[r[22]||=f(`b`,{class:`vue-ui-table-export-hub-title`},` Export `,-1),f(`button`,{class:`close-dropdown`,onClick:r[1]||=e=>mn.value=!1,style:h(`background:${K.value.backgroundColor};color:${K.value.color};border-radius:${K.value.borderRadius}`)},` ✖ `,4),f(`div`,De,[(g(),d(c,null,v([`All`,`Page`],e=>f(`div`,{key:e,class:`vue-ui-table-export-hub-option-wrapper`},[f(`div`,Oe,[p(y(V.value.translations[`export${e}Label`])+` `,1),e===`All`?(g(),d(c,{key:0},[p(` (`+y(z.value.length)+`)`,1)],64)):u(``,!0)]),f(`button`,{id:`export${e}`,onClick:t=>nr(e.toLowerCase()),style:h(`background:${H.value.buttons.backgroundColor};color:${H.value.buttons.color};cursor:${Y.value?`pointer`:`default`}`)},[f(`div`,{innerHTML:Z.value.fileDownload},null,8,Ae),f(`span`,null,y(V.value.translations[`export${e}Button`]),1)],12,ke)])),64)),f(`div`,je,[f(`label`,Me,[f(`span`,Ne,y(V.value.translations.filename),1),x(f(`input`,{name:`filename`,ref_key:`filenameInputRef`,ref:Fr,onKeydown:r[2]||=Se(Ce(()=>{},[`stop`]),[`space`]),pattern:`.*`,class:`vue-ui-table-dialog-input`,type:`text`,"onUpdate:modelValue":r[3]||=e=>Cn.value=e},null,544),[[ye,Cn.value]])]),Cn.value?(g(),d(`button`,{key:0,class:`vue-ui-table-dialog-field-button`,onClick:r[4]||=e=>Cn.value=``,style:h({cursor:Y.value?`pointer`:`default`})},[fe(ce,{name:`close`,stroke:H.value.color,size:18},null,8,[`stroke`])],4)):u(``,!0)])])],12,Ee)],4)):u(``,!0),f(`div`,{class:`vue-ui-table__wrapper`,style:h(`max-height:${V.value.maxHeight}px`),ref_key:`tableWrapper`,ref:yr},[f(`table`,Pe,[U.value.text?(g(),d(`caption`,{key:0,class:`vue-ui-table__caption`,ref_key:`tableCaption`,ref:sn,style:h({textAlign:U.value.textAlign,paddingLeft:U.value.paddingLeft+`px`,paddingRight:U.value.paddingRight+`px`,backgroundColor:U.value.backgroundColor,boxShadow:`${U.value.backgroundColor} -1px 0px 0px 0px`})},[f(`span`,{style:h({fontSize:U.value.fontSize+`px`,fontWeight:U.value.bold?`bold`:`normal`,color:U.value.color})},y(U.value.text),5),U.value.subtitle.text?(g(),d(c,{key:0},[r[23]||=f(`br`,null,null,-1),f(`span`,{style:h({fontSize:U.value.subtitle.fontSize,fontWeight:U.value.subtitle.bold?`bold`:`normal`,color:U.value.subtitle.color})},y(U.value.subtitle.text),5)],64)):u(``,!0)],4)):u(``,!0),f(`thead`,{id:`tableHead`,class:`vue-ui-table__head`,style:h({background:W.value.backgroundColor,boxShadow:`-1px 0 0 ${W.value.backgroundColor}`,top:On.value-3+`px`})},[f(`tr`,null,[r[24]||=f(`th`,{class:`invisible-cell`},null,-1),(g(!0),d(c,null,v(B.value,(e,t)=>(g(),d(`th`,{key:`thead_${t}`,style:h(`overflow: visible;${Tn.value}`),class:m({"th-has-nan":k.value[t]})},[Jn.value&&([w.value.TEXT,w.value.DATE].includes(e.type)||e.isPercentage)?(g(),d(`span`,Fe,[p(y(e.name)+` `,1),e.isPercentage?(g(),d(`span`,Ie,` / `+y(e.percentageTo),1)):u(``,!0)])):(g(),d(`span`,Le,y(e.name),1))],6))),128))]),Jn.value?(g(),d(c,{key:0},[f(`tr`,null,[r[25]||=f(`th`,{class:`invisible-cell`},null,-1),(g(!0),d(c,null,v(B.value,(e,t)=>(g(),d(`th`,{key:`thead_${t}`,class:m({"th-numeric":!0,"th-has-nan":k.value[t]}),style:h(Tn.value)},[e.sum&&!k.value[t]?(g(),d(`span`,Re,[f(`span`,{innerHTML:Z.value.sum,style:{"margin-bottom":`-4px`,"margin-right":`3px`}},null,8,ze),p(` `+y(Dn(fr(t),e))+` `,1),M.value[t]&&e.percentageTo&&!e.isPercentage?(g(),d(`span`,Be,` (`+y(isNaN(fr(t)/fr(M.value[t].referenceIndex))?`-`:b(n)({v:fr(t)/fr(M.value[t].referenceIndex)*100,s:`%`,r:e.decimals}))+`) `,1)):u(``,!0)])):u(``,!0)],6))),128))]),f(`tr`,null,[r[26]||=f(`th`,{class:`invisible-cell`},null,-1),(g(!0),d(c,null,v(B.value,(e,t)=>(g(),d(`th`,{key:`thead_${t}`,class:m({"th-numeric":!0,"th-has-nan":k.value[t]}),style:h(Tn.value)},[e.average&&!k.value[t]?(g(),d(`span`,Ve,` ~ `+y(isNaN(ur(t))?``:Dn(ur(t),e)),1)):u(``,!0)],6))),128))]),f(`tr`,null,[r[29]||=f(`th`,{class:`invisible-cell`},null,-1),(g(!0),d(c,null,v(B.value,(e,t)=>(g(),d(`th`,{key:`thead_${t}`,class:m({"th-has-nan":k.value[t]}),style:h(Tn.value)},[f(`div`,He,[e.type===w.value.DATE&&O.value[t]?(g(),d(`div`,Ue,[f(`div`,We,[f(`div`,Ge,[f(`label`,{for:`from_${t}`},y(V.value.translations.from),9,Ke),x(f(`input`,{id:`from_${t}`,type:`date`,"onUpdate:modelValue":e=>O.value[t].from=e,onInput:e=>{lr(),Ar(t)},style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border}`)},null,44,qe),[[ye,O.value[t].from]])]),f(`div`,Je,[f(`label`,{for:`to_${t}`},y(V.value.translations.to),9,Ye),x(f(`input`,{id:`to_${t}`,type:`date`,"onUpdate:modelValue":e=>O.value[t].to=e,onInput:e=>{lr(),Ar(t)},style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border}`)},null,44,Xe),[[ye,O.value[t].to]])])]),f(`div`,Ze,[e.isSort?(g(),d(`button`,{key:0,onClick:e=>jr(t,e),class:m({"th-button-active":[w.value.DESC,w.value.ASC].includes(F.value[t])}),style:h(`cursor:${Y.value?`pointer`:`default`}; background:${[w.value.DESC,w.value.ASC].includes(F.value[t])?``:W.value.buttons.filter.inactive.backgroundColor};color:${[w.value.DESC,w.value.ASC].includes(F.value[t])?``:W.value.buttons.filter.inactive.color}`)},[F.value[t]===w.value.ASC?(g(),d(`span`,{key:0,innerHTML:[w.value.DATE].includes(e.type)?Z.value.sort09:Z.value.sortAZ},null,8,$e)):F.value[t]===w.value.DESC?(g(),d(`span`,{key:1,innerHTML:[w.value.DATE].includes(e.type)?Z.value.sort90:Z.value.sortZA},null,8,et)):(g(),d(`span`,{key:2,innerHTML:Z.value.arrowSort},null,8,tt))],14,Qe)):u(``,!0),f(`button`,{onClick:n=>{Tr(t),Er(t,e,n)},disabled:!gn.value[t]&&gr(t,e),class:`th-reset`,style:h({cursor:Y.value?`pointer`:`default`})},` ✖ `,12,nt)])])):u(``,!0),e.isSearch?x((g(),d(`input`,{key:1,placeholder:V.value.translations.inputPlaceholder,"onUpdate:modelValue":e=>P.value[t]=e,onInput:r[5]||=e=>ir(lr,400),name:`search_${t}`,style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border}`)},null,44,rt)),[[ye,P.value[t]]]):u(``,!0),!k.value[t]&&e.isSort&&e.type!==w.value.DATE?(g(),d(`button`,{key:2,onClick:e=>jr(t,e),class:m({"th-button-active":[w.value.DESC,w.value.ASC].includes(F.value[t])}),style:h(`cursor:${Y.value?`pointer`:`default`};background:${[w.value.DESC,w.value.ASC].includes(F.value[t])?``:W.value.buttons.filter.inactive.backgroundColor};color:${[w.value.DESC,w.value.ASC].includes(F.value[t])?``:W.value.buttons.filter.inactive.color}`)},[F.value[t]===w.value.ASC?(g(),d(`span`,{key:0,innerHTML:[w.value.NUMERIC].includes(e.type)?Z.value.sort09:Z.value.sortZA},null,8,at)):F.value[t]===w.value.DESC?(g(),d(`span`,{key:1,innerHTML:[w.value.NUMERIC].includes(e.type)?Z.value.sort90:Z.value.sortAZ},null,8,ot)):(g(),d(`span`,{key:2,innerHTML:Z.value.arrowSort},null,8,st))],14,it)):u(``,!0),e.isMultiselect?(g(),d(`button`,{key:3,onClick:n=>Mr(t,e,n),innerHTML:Z.value.filter,class:m({"th-button-active":j.value[t]&&j.value[t].length!==$(t).length}),style:h(`cursor:${Y.value?`pointer`:`default`};background:${j.value[t]&&j.value[t].length!==$(t).length?``:W.value.buttons.filter.inactive.backgroundColor};color:${j.value[t]&&j.value[t].length!==$(t).length?``:W.value.buttons.filter.inactive.color}`)},null,14,ct)):u(``,!0),T.value.col===t&&qn.value?(g(),d(`button`,{key:4,onClick:r[6]||=e=>L.value=!L.value,innerHTML:Z.value.chart,class:m({"th-button-active":L.value}),style:h(`cursor:${Y.value?`pointer`:`default`};background:${L.value?``:W.value.buttons.filter.inactive.backgroundColor};color:${L.value?``:W.value.buttons.filter.inactive.color}`)},null,14,lt)):u(``,!0),e.rangeFilter&&N.value[t]&&!k.value[t]?(g(),d(`div`,ut,[f(`label`,{for:`rangeMin${t}`},[...r[27]||=[f(`span`,{style:{color:`grey`}},`ᒥ`,-1),p(` min `,-1),f(`span`,{style:{color:`grey`}},`ᒣ`,-1)]],8,dt),x(f(`input`,{type:`number`,id:`rangeMin${t}`,max:A.value[t].max,min:A.value[t].min,"onUpdate:modelValue":e=>N.value[t].min=e,onInput:r[7]||=e=>ir(lr,400),style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border}`)},null,44,ft),[[ye,N.value[t].min,void 0,{number:!0}]]),x(f(`input`,{type:`number`,id:`rangeMax${t}`,max:A.value[t].max,min:A.value[t].min,"onUpdate:modelValue":e=>N.value[t].max=e,onInput:r[8]||=e=>ir(lr,400),style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border}`)},null,44,pt),[[ye,N.value[t].max,void 0,{number:!0}]]),f(`label`,{for:`rangeMax${t}`},[...r[28]||=[f(`span`,{style:{color:`grey`}},`ᒪ`,-1),p(` max `,-1),f(`span`,{style:{color:`grey`}},`ᒧ`,-1)]],8,mt)])):u(``,!0),tr(t,e)?(g(),d(`button`,{key:6,onClick:n=>Er(t,e,n),disabled:gr(t,e),class:`th-reset`,style:h({cursor:Y.value?`pointer`:`default`})},` ✖ `,12,ht)):u(``,!0),e.isMultiselect?(g(),d(`div`,{key:7,class:`th-dropdown`,"data-is-open":`false`,id:`th_dropdown_${t}`,style:h(`background:${kn.value.backgroundColor};color:${kn.value.color}`)},[f(`button`,{class:`close-dropdown`,onClick:n=>Mr(t,e,n),style:h(`cursor:${Y.value?`pointer`:`default`};background:${K.value.backgroundColor};color:${K.value.color}`)},` ✖ `,12,_t),(g(!0),d(c,null,v($(t),(e,n)=>(g(),d(`span`,{class:`th-option`,key:`th_option_${t}_${n}`,onClick:n=>kr(e,t),onKeyup:[Se(n=>kr(e,t),[`enter`]),Se(n=>kr(e,t),[`space`])],style:h(`opacity:${mr(e,t)?1:.5}`),tabindex:`0`},[mr(e,t)?(g(),d(`span`,{key:0,style:h(`color:${kn.value.icons.selected.color};margin-right:5px`),class:`th-icon-green`},y(kn.value.icons.selected.unicode),5)):(g(),d(`span`,{key:1,style:h(`color:${kn.value.icons.unselected.color};margin-right:5px`),class:`th-icon-red`},y(kn.value.icons.unselected.unicode),5)),f(`span`,null,y(e),1)],44,vt))),128))],12,gt)):u(``,!0)])],6))),128))])],64)):u(``,!0),f(`tr`,null,[r[30]||=f(`th`,{class:`invisible-cell`},null,-1),(g(!0),d(c,null,v(B.value,(e,t)=>(g(),d(`th`,{key:`col_selector_${t}`,class:m({"vue-ui-table-col-selector":!k.value[t],"th-has-nan":k.value[t]}),style:h(`background:${t===yn.value&&!k.value[t]?W.value.selected.backgroundColor:W.value.backgroundColor};color:${t===yn.value&&!k.value[t]?W.value.selected.color:W.value.color};outline:${W.value.outline}`)},[k.value[t]?u(``,!0):(g(),d(`div`,{key:0,innerHTML:B.value[t].type===w.value.NUMERIC?Z.value.chevronDown:``,class:m({"col-selector":B.value[t].type===w.value.NUMERIC}),tabindex:`0`,style:h({cursor:Y.value?`pointer`:`default`}),onClick:Ce(e=>Or(t),[`stop`]),onKeyup:Se(e=>Or(t),[`enter`])},null,46,yt))],6))),128))])],4),f(`tbody`,{onClick:rr,onKeydown:r[9]||=e=>xr(e)},[(g(!0),d(c,null,v(Wn.value,(t,r)=>(g(),d(`tr`,{key:`tbody_${r}`,"data-row":r%2==0?`odd`:`even`,class:m(`tr_${b(on)}`),style:h(`${r%2==0?`background:${q.value.odd.backgroundColor};color:${q.value.odd.color}`:`background:${q.value.even.backgroundColor};color:${q.value.even.color}`}`)},[f(`td`,{class:`vue-ui-table-td-iteration`,"data-row":r%2==0?`odd`:`even`,style:h({outline:q.value.outline})},y(t.absoluteIndex+1),13,xt),(g(!0),d(c,null,v(t.td,(i,a)=>(g(),d(`td`,{"data-row":r%2==0?`odd`:`even`,key:`td_${r}_${a}`,style:h(hr(i)||e.dataset.header[a].type===w.value.DATE?`text-align:right;font-variant-numeric: tabular-nums;outline:${q.value.outline}`:`outline:${q.value.outline}`),onClick:t=>Dr({td:i,rowIndex:r,colIndex:a,headerType:e.dataset.header[a].type,event:t}),onKeyup:[Se(t=>Dr({td:i,rowIndex:r,colIndex:a,headerType:e.dataset.header[a].type,event:t}),[`enter`]),Se(t=>Dr({td:i,rowIndex:r,colIndex:a,headerType:e.dataset.header[a].type,event:t}),[`space`])],class:m({"td-numeric":e.dataset.header[a].type===w.value.NUMERIC,"td-focusable":!0,"td-has-nan":k.value[a]}),id:`cell_${r}_${a}_${b(on)}`,tabindex:`0`},[t.meta&&t.meta.markerIndices.includes(a)&&t.meta.unicodeIcon?(g(),d(`span`,{key:0,style:h(`color:${t.meta.color};margin-right:3px`),innerHTML:t.meta.unicodeIcon},null,12,Ct)):u(``,!0),e.dataset.header[a].type===w.value.DATE?(g(),d(`span`,wt,y(e.dataset.header[a].prefix)+` `+y(new Date(i).toLocaleString().slice(0,10))+` `+y(e.dataset.header[a].suffix),1)):e.dataset.header[a].isPercentage?(g(),d(`span`,Tt,y(b(n)({v:Number(i*100),s:`%`,r:e.dataset.header[a].decimals})),1)):M.value[a]&&e.dataset.header[a].percentageTo&&!e.dataset.header[a].isPercentage?(g(),d(`span`,{key:3,class:m({"td-nan":isNaN(Number(i))})},y(isNaN(Number(i))?`${i} is not ${w.value.NUMERIC}`:b(n)({p:e.dataset.header[a].prefix,v:Number(i),s:e.dataset.header[a].suffix,r:e.dataset.header[a].decimals}))+` (`+y(isNaN(Number(i))?``:b(n)({v:Number(i/fr(M.value[a].referenceIndex)*100),s:`%`,r:e.dataset.header[a].decimals}))+`) `,3)):e.dataset.header[a].type===w.value.NUMERIC?(g(),d(`span`,{key:4,class:m({"td-nan":isNaN(Number(i))})},y(isNaN(Number(i))?`${i} is not ${w.value.NUMERIC}`:b(n)({p:e.dataset.header[a].prefix,v:Number(i.toFixed(e.dataset.header[a].decimals)),s:e.dataset.header[a].suffix,r:e.dataset.header[a].decimals})),3)):(g(),d(`span`,Et,y(e.dataset.header[a].prefix)+` `+y(i)+` `+y(e.dataset.header[a].suffix),1))],46,St))),128))],14,bt))),128))],32)])],4),f(`div`,{class:m({"td-selector-info":!0,"td-selector-info--active":T.value.col!==void 0&&T.value.rows.length}),style:h(`background:${jn.value.infoBar.backgroundColor};color:${jn.value.infoBar.color}`)},[T.value.col!==void 0&&T.value.rows.length?(g(),d(c,{key:0},[f(`div`,{innerHTML:Z.value.table,class:`td-selector-icon`},null,8,Dt),f(`span`,null,[f(`b`,null,[p(y(Q.value.name)+` `,1),Q.value.isPercentage?(g(),d(`span`,Ot,` / `+y(e.dataset.header[M.value[T.value.col].referenceIndex].name),1)):u(``,!0)]),f(`span`,kt,[p(y(V.value.translations.nb)+` : `,1),f(`b`,At,y(T.value.rows.length),1)]),(g(),d(c,null,v([`sum`,`average`],e=>f(`span`,{key:e,style:{"margin-left":`12px`}},[p(y(V.value.translations[e])+` : `,1),Q.value.isPercentage?(g(),d(`b`,jt,y(Xn.value[`${e}Percentage`]),1)):(g(),d(`b`,Mt,y(Q.value.prefix)+` `+y(Xn.value[`${e}Regular`])+` `+y(Q.value.suffix),1)),Q.value.isPercentage?(g(),d(`b`,Nt,`%`)):u(``,!0)])),64))]),f(`button`,{onClick:ar,class:`td-selector-info-reset`,style:h(`cursor:${Y.value?`pointer`:`default`};background:${K.value.backgroundColor};color:${K.value.color};border-radius:${K.value.borderRadius}`)},` ✖ `,4)],64)):u(``,!0)],6),z.value.length>10?(g(),d(`div`,Pt,[p(y(V.value.translations.totalRows)+` : `+y(e.dataset.body.length)+` | `+y(V.value.translations.paginatorLabel)+` : `,1),z.value.length>10?x((g(),d(`select`,{key:0,id:`paginatorSelector`,"onUpdate:modelValue":r[10]||=e=>_n.value=e,onChange:r[11]||=e=>{ar(),vr()},style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border}`)},[(g(!0),d(c,null,v(vn.value,(t,n)=>(g(),d(c,null,[z.value.length>t||e.dataset.body.length===t?(g(),d(`option`,{key:`paginator_option_${n}`},y(t),1)):u(``,!0)],64))),256))],36)),[[ve,_n.value,void 0,{number:!0}]]):u(``,!0)])):u(``,!0),_n.value>=250?(g(),d(`div`,Ft,[f(`span`,{innerHTML:Z.value.warning},null,8,It),p(y(V.value.translations.sizeWarning),1)])):u(``,!0),X.value.length>1&&X.value.length<=10?(g(),d(`div`,{key:3,class:`vue-ui-table-navigation-indicator`,style:h(`background:${An.value.navigationIndicator.backgroundColor};width:calc(${E.value/(X.value.length-1)*100}%)`)},null,4)):u(``,!0),X.value.length>1?(g(),d(`div`,Lt,[f(`button`,me({class:`vue-ui-table-navigation`,onClick:r[12]||=Ce(e=>br(`previous`),[`stop`]),innerHTML:Z.value.chevronLeft},En(E.value===0)),null,16,Rt),X.value.length>3?(g(),d(c,{key:0},[f(`button`,me({class:`vue-ui-table-navigation`,onClick:r[13]||=Ce(e=>br(1),[`stop`])},En(E.value===0)),` 1 `,16),X.value.length>10?(g(),d(`div`,{key:0,class:`vue-ui-table-page-scroller-wrapper`,style:h({cursor:Y.value?`pointer`:`default`})},[f(`label`,zt,y(V.value.translations.page)+` `+y(E.value+1)+` / `+y(X.value.length),1),f(`input`,{class:`vue-ui-table-page-scroller`,id:`pageScroller`,type:`range`,step:`1`,min:0,max:X.value.length-1,onInput:r[14]||=e=>Nr(e),value:E.value,style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border};accent-color:${G.value.accentColor}`)},null,44,Bt)],4)):(g(),d(`span`,Vt,y(V.value.translations.page)+` `+y(E.value+1)+` / `+y(X.value.length),1)),f(`button`,me({class:`vue-ui-table-navigation`,onClick:r[15]||=Ce(e=>br(X.value.length),[`stop`])},En(E.value===X.value.length-1)),y(X.value.length),17)],64)):(g(),d(c,{key:1},[p(y(V.value.translations.page)+` `+y(E.value+1)+` / `+y(X.value.length),1)],64)),f(`button`,me({class:`vue-ui-table-navigation`,onClick:r[16]||=Ce(e=>br(`next`),[`stop`]),innerHTML:Z.value.chevronRight},En(E.value===X.value.length-1)),null,16,Ht)])):u(``,!0),fe(b(nn),{ref_key:`chartModal`,ref:Pr,backgroundColor:J.value.modal.backgroundColor,headerColor:J.value.modal.color,color:J.value.modal.color,forcedHeight:500,isCursorPointer:Y.value,withPadding:``,withFullWidth:``,noLayerUpdate:``,onClose:r[21]||=e=>L.value=!1,onSize:Qn},{before:xe(()=>[f(`div`,Ut,[Kn.value.length?(g(),d(`button`,{key:0,onClick:r[17]||=e=>R.value=!0,innerHTML:Z.value.donut,class:m({"is-active-chart":C.value.type===w.value.DONUT||R.value}),style:h(`cursor:${Y.value?`pointer`:`default`};background:${C.value.type===w.value.DONUT||R.value?J.value.modal.buttons.selected.backgroundColor:J.value.modal.buttons.unselected.backgroundColor};color:${C.value.type===w.value.DONUT||R.value?J.value.modal.buttons.selected.color:J.value.modal.buttons.unselected.color}`)},null,14,Wt)):u(``,!0),f(`button`,{onClick:r[18]||=e=>{C.value.type=w.value.LINE,R.value=!1},innerHTML:Z.value.chart,class:m({"is-active-chart":C.value.type===w.value.LINE&&!R.value}),style:h(`cursor:${Y.value?`pointer`:`default`};background:${C.value.type===w.value.LINE&&!R.value?J.value.modal.buttons.selected.backgroundColor:J.value.modal.buttons.unselected.backgroundColor};color:${C.value.type===w.value.LINE&&!R.value?J.value.modal.buttons.selected.color:J.value.modal.buttons.unselected.color}`)},null,14,Gt),f(`button`,{onClick:r[19]||=e=>{C.value.type=w.value.BAR,R.value=!1},innerHTML:Z.value.bar,class:m({"is-active-chart":C.value.type===w.value.BAR&&!R.value}),style:h(`cursor:${Y.value?`pointer`:`default`};background:${C.value.type===w.value.BAR&&!R.value?J.value.modal.buttons.selected.backgroundColor:J.value.modal.buttons.unselected.backgroundColor};color:${C.value.type===w.value.BAR&&!R.value?J.value.modal.buttons.selected.color:J.value.modal.buttons.unselected.color}`)},null,14,Kt)])]),content:xe(()=>[f(`div`,qt,[R.value&&Kn.value.length?(g(),d(`div`,{key:0,style:h(`background:${J.value.modal.backgroundColor};color:${J.value.modal.color}`)},[f(`fieldset`,Jt,[f(`legend`,null,y(V.value.translations.chooseCategoryColumn),1),f(`div`,Yt,[(g(!0),d(c,null,v(Kn.value,(e,t)=>(g(),d(`div`,{key:`donut_radio_${t}`,class:`vue-ui-table-fieldset-option`},[f(`input`,{type:`radio`,name:e.name,id:e.name,checked:I.value&&e.name===I.value.name,onInput:e=>I.value=Kn.value[t],style:h(`background:${G.value.backgroundColor};color:${G.value.color};border:${G.value.border};accent-color:${G.value.accentColor}`)},null,44,Xt),f(`label`,{for:e.name},y(e.name),9,Zt)]))),128))]),f(`button`,{class:`vue-ui-table-generate-donut`,disabled:!I.value,onClick:er,style:h(`cursor:${Y.value?`pointer`:`default`};background:${J.value.modal.buttons.selected.backgroundColor};color:${J.value.modal.buttons.selected.color}`)},[f(`div`,{style:{"margin-bottom":`-3px`},innerHTML:Z.value.donut},null,8,$t),p(` `+y(V.value.translations.makeDonut),1)],12,Qt)])],4)):u(``,!0),[w.value.BAR,w.value.LINE].includes(C.value.type)&&!R.value?(g(),d(c,{key:1},[Hn.value.length>1?(g(),d(`label`,{key:0,style:h({color:J.value.modal.color})},[p(y(V.value.translations.xAxisLabels)+` `,1),x(f(`select`,{"onUpdate:modelValue":r[20]||=e=>Sn.value=e},[(g(!0),d(c,null,v(Hn.value,e=>(g(),d(`option`,null,y(e),1))),256))],512),[[ve,Sn.value]])],4)):u(``,!0),f(`div`,en,[C.value.type===w.value.LINE?(g(),de(le,{key:`chart_line_${xn.value}`,dataset:$n.value.xyDatasetLine,config:$n.value.xyConfig},null,8,[`dataset`,`config`])):u(``,!0),C.value.type===w.value.BAR?(g(),de(le,{key:`chart_bar_${xn.value}`,dataset:$n.value.xyDatasetBar,config:$n.value.xyConfig},null,8,[`dataset`,`config`])):u(``,!0)]),T.value.rows.length>=2?(g(),d(`div`,{key:1,class:`chart-trend`,style:h(`color:${J.value.modal.color}`)},[r[31]||=f(`span`,null,`---`,-1),p(` Trend: `+y(b(n)({v:$n.value.progression.trend*100,s:`%`,r:1})),1)],4)):u(``,!0)],64)):u(``,!0),[w.value.DONUT].includes(C.value.type)&&!R.value?(g(),d(`div`,tn,[fe(ue,{dataset:fn.value,config:$n.value.donutConfig},null,8,[`dataset`,`config`])])):u(``,!0)])]),_:1},8,[`backgroundColor`,`headerColor`,`color`,`isCursorPointer`])],4))}},[[`__scopeId`,`data-v-f857989b`]]);export{we as n,nn as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{D as n,Tt as r,X as i,at as ee,m as te,nt as ne,r as re,zt as a}from"./lib-rPeBMZrn.js";import{n as o,t as ie}from"./useHints-C-TwxM0Y.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ae}from"./resolveChartConfig-CIhClE5R.js";import{n as oe,r as se,t as ce}from"./userOptionsSlots-CWtXN5Q6.js";import{t as le}from"./usePrinter-DVf3YcG5.js";import{t as ue}from"./Shape-CRe8woTu.js";import{t as de}from"./useUserOptionState-CXlFnwPv.js";import{t as fe}from"./vue_ui_table_heatmap-vfeY6r97.js";import{Fragment as c,computed as l,createBlock as pe,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createSlots as me,createVNode as he,defineAsyncComponent as ge,guardReactiveProps as _e,mergeProps as p,nextTick as ve,normalizeClass as m,normalizeProps as ye,normalizeStyle as h,onMounted as g,openBlock as _,ref as v,renderList as y,renderSlot as b,unref as x,useCssVars as be,useSlots as S,watch as C,withCtx as w}from"vue";var T=/* @__PURE__ */ e({default:()=>P}),E=[`id`],D={role:`cell`},O={role:`row`},k=[`data-cell`],A={key:0,style:{display:`flex`,"flex-direction":`row`,gap:`2px`,"align-items":`center`}},j=[`height`,`width`],M={key:0,role:`cell`,"data-cell":`sum`},N={key:1,role:`cell`,"data-cell":`average`},xe={key:2,role:`cell`,"data-cell":`median`},Se={key:1,ref:`source`,dir:`auto`},P=/*#__PURE__*/ s({__name:`vue-ui-table-heatmap`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(e,{expose:s}){be(e=>({v5e150227:Ae.value,v2e941582:ke.value}));let T=ge(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),{vue_ui_table_heatmap:P}=t(),F=e,I=v(i()),L=v(!1),R=v(null),z=v(!1),B=v(0),Ce=S(),V=l({get:()=>K(),set:e=>e}),H=l(()=>V.value.debug);g(()=>{Ce[`chart-background`]&&H.value&&console.warn(`VueUiTableHeatmap does not support the #chart-background slot.`)}),o({config:()=>V.value,dataset:()=>F.dataset,component:`VueUiTableHeatmap`,rules:[ie.emptyArray,{test:e=>e.length>31,message:[`👀 The number of series is > 31. Consider:`,``,`▶️ Using filters to let users choose a maximum number of series to display.`]},{test:e=>e.some(e=>e?.values&&e?.values.length>31),message:[`👀 Some series have a number of data points > 31. Consider:`,``,`▶️ Using filters to let users choose a maximum number of data points to display.`]}]});let{userOptionsVisible:U,setUserOptionsVisibility:W,keepUserOptionState:G}=de({config:V.value});function K(){return ae(F.config,P,fe)}C(()=>F.config,e=>{V.value=K(),U.value=!V.value.userOptions.showOnChartHover,Y()},{deep:!0});let{isPrinting:we,isImaging:Te,generatePdf:q,generateImage:J}=le({elementId:`table_heatmap_${I.value}`,fileName:`vue-ui-table-heatmap`,options:V.value.userOptions.print}),Ee=l(()=>V.value.table.responsiveBreakpoint),De=l(()=>!!F.dataset&&F.dataset.length);g(()=>{Y()});function Y(){a(F.dataset)&&ee({componentName:`VueUiTableHeatmap`,type:`dataset`,debug:H.value});let e=new ResizeObserver(e=>{e.forEach(e=>{L.value=e.contentRect.width<Ee.value})});R.value&&e.observe(R.value)}let X=l(()=>F.dataset.map(e=>{let t=e.values.map(e=>isNaN(e)?0:e),n=t.reduce((e,t)=>e+t,0);return{...e,values:t,serieExtremes:{max:Math.max(...t),min:Math.min(...t)},sum:n,average:n/t.length,median:te(t),displayValues:[e.name,...e.values],id:i()}})),Z=l(()=>{let e=X.value.flatMap(e=>e.values);return{min:Math.min(...e),max:Math.max(...e)}});function Oe(e,t){let n=V.value.style.heatmapColors.useIndividualScale;return r(V.value.style.heatmapColors.min,V.value.style.heatmapColors.max,n?t.min:Z.value.min,n?t.max:Z.value.max,e)}let Q=l(()=>X.value.map(e=>({...e,colors:e.displayValues.map(t=>isNaN(t)?V.value.style.backgroundColor:Oe(t,e.serieExtremes))}))),ke=l(()=>V.value.style.backgroundColor),Ae=l(()=>`${V.value.table.borderWidth}px`);function $(e=null){ve(()=>{let t=Q.value.map(e=>[[e.name],e.displayValues,[e.sum],[e.average],[e.median]]),r=[[[``],V.value.table.head.values,[`sum`],[`average`],[`median`]]].concat(t),i=n(r);e?e(i):ne({csvContent:i,title:`vue-ui-table-heatmap`})})}function je(e){z.value=e,B.value+=1}return s({generatePdf:q,generateCsv:$,generateImage:J}),(e,t)=>(_(),d(`div`,{ref_key:`tableContainer`,ref:R,style:h(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${V.value.userOptions.show?`36px`:``}; ${z.value?`vue-data-ui-wrapper-fullscreen`:``}; position:relative;`),class:m({"vue-data-ui-component":!0,"vue-ui-responsive":L.value}),id:`table_heatmap_${I.value}`,onMouseenter:t[0]||=()=>x(W)(!0),onMouseleave:t[1]||=()=>x(W)(!1)},[V.value.userOptions.show&&De.value&&(x(G)||x(U))?(_(),pe(x(T),p({ref:`details`,key:`user_option_${B.value}`,backgroundColor:V.value.style.backgroundColor,color:V.value.style.color,isPrinting:x(we),isImaging:x(Te),uid:I.value,isFullscreen:z.value,chartElement:R.value},x(se)(V.value.userOptions,`pdf csv img fullscreen`),{onToggleFullscreen:je,onGeneratePdf:x(q),onGenerateCsv:$,onGenerateImage:x(J),style:{visibility:x(G)?x(U)?`visible`:`hidden`:`visible`}}),me({_:2},[y(x(oe)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionFullscreen custom-menu-before custom-menu-after`),t=>({name:t,fn:w(n=>[b(e.$slots,t,ye(_e(x(ce)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`isFullscreen`,`chartElement`,`onGeneratePdf`,`onGenerateImage`,`style`])):u(``,!0),f(`table`,{class:m({"vue-ui-table-heatmap":!0}),style:h(`width:100%;font-family:${V.value.style.fontFamily};background:${V.value.style.backgroundColor};`)},[f(`caption`,null,[b(e.$slots,`caption`,{},void 0,!0)]),f(`thead`,null,[f(`tr`,{role:`row`,style:h(`background:${V.value.table.head.backgroundColor};color:${V.value.table.head.color}`)},[(_(!0),d(c,null,y(V.value.table.head.values,(t,n)=>(_(),d(`th`,D,[b(e.$slots,`head`,p({ref_for:!0},{value:t,rowIndex:n,type:typeof t,isResponsive:L.value}),void 0,!0)]))),256))],4)]),f(`tbody`,null,[(_(!0),d(c,null,y(Q.value,(t,n)=>(_(),d(`tr`,O,[(_(!0),d(c,null,y(t.displayValues,(r,i)=>(_(),d(`td`,{role:`cell`,"data-cell":V.value.table.head.values[i]},[t.color&&i===0?(_(),d(`div`,A,[t.color?(_(),d(`svg`,{key:0,height:V.value.style.shapeSize,width:V.value.style.shapeSize,viewBox:`0 0 20 20`,style:{background:`none`,overflow:`visible`}},[he(ue,{plot:{x:10,y:10},color:t.color,radius:9,shape:t.shape||`circle`},null,8,[`color`,`shape`])],8,j)):u(``,!0),b(e.$slots,`rowTitle`,p({ref_for:!0},{value:r,rowIndex:n,colIndex:i,type:typeof r,isResponsive:L.value}),void 0,!0)])):(_(),d(c,{key:1},[i===0?b(e.$slots,`rowTitle`,p({ref_for:!0},{value:r,rowIndex:n,colIndex:i,type:typeof r,isResponsive:L.value}),void 0,!0,0):u(``,!0),i>0?b(e.$slots,`cell`,p({ref_for:!0},{value:r,rowIndex:n,colIndex:i,type:typeof r,isResponsive:L.value,color:t.colors[i],textColor:x(re)(t.colors[i])}),void 0,!0,1):u(``,!0)],64))],8,k))),256)),V.value.table.showSum?(_(),d(`td`,M,[b(e.$slots,`sum`,p({ref_for:!0},{value:t.sum,rowIndex:n,isResponsive:L.value}),void 0,!0)])):u(``,!0),V.value.table.showAverage?(_(),d(`td`,N,[b(e.$slots,`average`,p({ref_for:!0},{value:t.average,rowIndex:n,isResponsive:L.value}),void 0,!0)])):u(``,!0),V.value.table.showMedian?(_(),d(`td`,xe,[b(e.$slots,`median`,p({ref_for:!0},{value:t.median,rowIndex:n,isResponsive:L.value}),void 0,!0)])):u(``,!0)]))),256))])],4),e.$slots.source?(_(),d(`div`,Se,[b(e.$slots,`source`,{},void 0,!0)],512)):u(``,!0)],46,E))}},[[`__scopeId`,`data-v-3a6455f7`]]);export{T as n,P as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{$ as n,D as r,Ht as i,Jt as a,S as o,X as ee,at as s,i as te,m as ne,nt as re,w as ie,yt as ae,zt as oe}from"./lib-rPeBMZrn.js";import{n as se,t as ce}from"./useHints-C-TwxM0Y.js";import{t as le}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as ue}from"./resolveChartConfig-CIhClE5R.js";import{n as de,t as fe}from"./userOptionsSlots-CWtXN5Q6.js";import{t as pe}from"./usePrinter-DVf3YcG5.js";import{t as me}from"./useUserOptionState-CXlFnwPv.js";import{t as he}from"./vClickOutside-BxNzkY17.js";import{t as ge}from"./vue_ui_table_sparkline-Dlfbza49.js";import{Fragment as c,computed as l,createBlock as _e,createCommentVNode as u,createElementBlock as d,createElementVNode as f,createSlots as ve,createVNode as p,defineAsyncComponent as ye,mergeProps as be,nextTick as xe,normalizeClass as Se,normalizeStyle as m,onBeforeUnmount as Ce,onMounted as we,openBlock as h,ref as g,renderList as _,renderSlot as Te,shallowRef as Ee,toDisplayString as v,unref as y,useCssVars as De,useSlots as Oe,watch as ke,withCtx as Ae,withDirectives as je}from"vue";var Me=/* @__PURE__ */ e({default:()=>b}),Ne=[`id`],Pe={style:{"z-index":`1`,"padding-right":`24px`}},Fe={key:0,style:{display:`flex`,flexDirection:`row`,alignItems:`center`}},Ie={key:0,style:{display:`flex`,flexDirection:`row`,alignItems:`center`}},Le=[`onClick`],Re=[`onClick`],ze=[`data-cell`],Be=[`data-cell`,`onPointerenter`],Ve=[`data-cell`],He=[`data-cell`],Ue=[`data-cell`],We=[`data-cell`],Ge={key:1,ref:`source`,dir:`auto`},b=/*#__PURE__*/ le({__name:`vue-ui-table-sparkline`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:le,emit:Me}){De(e=>({v5fe3988e:e.tdo}));let b=ye(()=>import(`./vue-ui-sparkline-kxl5wQGY.js`).then(e=>e.n)),x=ye(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),Ke=ye(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),{vue_ui_table_sparkline:qe}=t(),S=e,Je=Me,C=g(ee()),Ye=g(0),w=g(0),T=g(null),Xe=Oe(),Ze=g(!1),E=l({get:()=>et(),set:e=>e}),D=l(()=>E.value.userOptions),O=l(()=>E.value.sparkline),k=l(()=>E.value.thead),A=l(()=>E.value.tbody),j=l(()=>E.value.title);we(()=>{Xe[`chart-background`]&&E.value.debug&&console.warn(`VueUiTableSparkline does not support the #chart-background slot.`)}),se({config:()=>E.value,dataset:()=>S.dataset,component:`VueUiTableSparkline`,rules:[ce.emptyArray,{test:e=>e.some(e=>e?.values&&e.values.length>500),message:[`👀 One or more series have > 500 datapoints. Consider if you really need this level of detail.`,``,`▶️ Use larger time scales, or aggregated values`]},{test:e=>e.some(e=>e?.values&&e.values.length>1095),message:[`👀 One or more series have > 1095 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance will be impacted.`]}]});let M=l(()=>E.value.userOptions.useCursorPointer),{userOptionsVisible:N,setUserOptionsVisibility:Qe,keepUserOptionState:$e}=me({config:E.value});function et(){return ue(S.config,qe,ge)}ke(()=>S.config,e=>{E.value=et(),N.value=!E.value.userOptions.showOnChartHover,st(),w.value+=1},{deep:!0}),ke(()=>S.dataset,e=>{W.value=U.value,w.value+=1},{deep:!0});let{isPrinting:tt,isImaging:nt,generatePdf:rt,generateImage:it}=pe({elementId:`table_${C.value}`,fileName:j.value.text||`vue-ui-table-sparkline`,options:E.value.userOptions.print}),at=l(()=>ie(E.value.customPalette)),P=g(null),F=g(!1),ot=l(()=>E.value.responsiveBreakpoint);we(()=>{st()});let I=g(E.value.colNames),L=Ee(null);function st(){oe(S.dataset)&&s({componentName:`VueUiTableSparkline`,type:`dataset`}),L.value&&L.value.disconnect(),L.value=new ResizeObserver(e=>{e.forEach(e=>{F.value=e.contentRect.width<ot.value})}),P.value&&L.value.observe(P.value),I.value=[];for(let e=0;e<mt.value;e+=1)I.value.push(E.value.colNames[e]||`col ${e}`)}Ce(()=>{L.value&&L.value.disconnect()});function R(e){if([null,void 0].includes(e))return null;let t=Number(e);return Number.isFinite(t)?t:null}function z(e){return typeof e==`number`&&Number.isFinite(e)}function ct(e=[]){return e.map(R).filter(z)}function B(e,t,n){let r=R(e),i=R(t),a=z(r),o=z(i);return a&&o?n===-1?r-i:i-r:a?-1:+!!o}function V(e,t,r={}){let i=R(e);return i===null?`-`:te(E.value.formatter,i,n({p:E.value.prefix,v:i,s:E.value.suffix,r:t}),r)}let H=l(()=>(S.dataset.forEach((e,t)=>{ae({datasetObject:e,requiredAttributes:[`name`,`values`]}).forEach(e=>{s({componentName:`VueUiTableSparkline`,type:`datasetSerieAttribute`,property:e,index:t})})}),S.dataset.map((e,t)=>{let n=e.values||[],r=ct(n),a=r.length?r.reduce((e,t)=>e+t,0):null,ee=r.length?a/r.length:null,s=r.length?ne(r):null;return{...e,values:n,color:o(e.color)||at.value[t]||i[t]||i[t%i.length],sum:a,average:ee,median:s,sparklineDataset:n.map((e,t)=>({period:E.value.colNames[t]||`col ${t}`,value:R(e)}))}})));function lt(e){let t=(e[0]?.values||[]).map((t,n)=>e.map(e=>e?.values?.[n]??null)).map(e=>e.map((e,t)=>[e,t]).sort((e,t)=>B(e[0],t[0],1)).map(e=>e[1]));return e.map((e,n)=>({...e,values:e.values||[],orders:t[n]}))}let U=l(()=>lt(H.value)),W=g(U.value),ut=l(()=>Math.max(...W.value.map(e=>(e.values||[]).length))),dt=g(void 0),ft=g(!1),G=g(void 0),pt=g(1);function K(){ft.value=!1,G.value=void 0,X.value=void 0,pt.value=1,$.value.forEach(e=>e.state=1),Y.value={name:1,sum:1,average:1,median:1},W.value=U.value}function q(e,t,n){if([`name`,`sum`,`average`,`median`].includes(e.type)){ht(e.type,t,n);return}if(!bt(t))return;if(Z.value=t,X.value=void 0,![null,void 0].includes(G.value)&&t!==G.value&&(G.value=void 0,K()),$.value[t].state===n&&G.value===t){G.value=void 0,K();return}ft.value=!0,G.value=t;let r=U.value.map(e=>e.values?.[t]??null),i=n;$.value[t].state=i,pt.value=i,t===dt.value?dt.value=void 0:dt.value=t;let a=r.map((e,t)=>[t,e]).sort((e,t)=>B(e[1],t[1],i)).map(e=>e[0]).map(e=>U.value[e]);W.value=a,w.value+=1}let mt=l(()=>Math.max(...S.dataset.map(e=>(e.values||[]).length))),J=l(()=>{let e=I.value.map(e=>({type:`reg`,value:e}));if(!e.length)for(let t=0;t<mt.value;t+=1)e.push({type:`reg`,value:`col ${t+1}`});E.value.showTotal&&(e=[...e,{type:`sum`,value:E.value.translations.total}]);let t;return t=E.value.showAverage&&E.value.showMedian?[...e,{type:`average`,value:E.value.translations.average},{type:`median`,value:E.value.translations.median}]:E.value.showAverage&&!E.value.showMedian?[...e,{type:`average`,value:E.value.translations.average}]:!E.value.showAverage&&E.value.showMedian?[...e,{type:`median`,value:E.value.translations.median}]:e,E.value.showSparklines?[...t,{type:`chart`,value:E.value.translations.chart}]:t}),Y=g({name:1,sum:1,average:1,median:1}),X=g(void 0);function ht(e,t,n){if(!W.value||W.value.length===0||!xt(e))return;if(X.value!==e&&(X.value=void 0),![null,void 0].includes(G.value)&&t!==G.value&&K(),G.value=void 0,Y.value[e]===n&&X.value){X.value=void 0,K();return}X.value=e,ft.value=!0,Y.value[e]=n,[null,void 0].includes(t)||($.value[t].state=Y.value[e]);let r=Y.value[e],i=[...W.value].sort((t,n)=>{let i=t[e],a=n[e];return typeof i==`string`&&typeof a==`string`?r===-1?i.localeCompare(a):a.localeCompare(i):B(i,a,r)});W.value=i}let Z=g(void 0),Q=g(void 0);function gt({dataIndex:e,serieIndex:t}){Z.value=e,Q.value=t,T.value[e]&&!F.value&&T.value[e].scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})}let _t=g(!1);function vt(e){_t.value=e,Ye.value+=1}function yt(e=null){xe(()=>{let t=[E.value.translations.serie].concat(J.value),n=H.value.map((e,t)=>[[e.name],e.values,[e.sum],[e.average],[e.median]]),i=[t].concat(n),a=r(i);e?e(a):re({csvContent:a,title:j.value.text||`vue-ui-table-sparkline`})})}function bt(e){return E.value.sortedDataColumnIndices.includes(e)}function xt(e){return e.type===`name`||e===`name`?E.value.sortedSeriesName:e.type===`sum`||e===`sum`?E.value.sortedSum:e.type===`average`||e===`average`?E.value.sortedAverage:e.type===`median`||e===`median`?E.value.sortedMedian:!1}function St(e,t,n){return[`sum`,`average`,`median`].includes(t.type)?X.value===t.type&&Y.value[t.type]===n?1:.3:e===G.value&&$.value[e].state===n?1:.3}function Ct(){E.value.resetSortOnClickOutside&&K()}let $=l({get:()=>J.value.map(e=>({state:1})),set:e=>e});function wt(e){e?.stage===`start`?Ze.value=!0:e?.stage===`end`?Ze.value=!1:it()}async function Tt(){Je(`copyAlt`,{config:E.value,dataset:H.value}),E.value.userOptions.callbacks.altCopy?await Promise.resolve(E.value.userOptions.callbacks.altCopy({config:E.value,dataset:H.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}return le({generatePdf:rt,generateImage:it,generateCsv:yt,restoreOrder:K,copyAlt:Tt}),(e,t)=>(h(),d(`div`,{ref_key:`tableContainer`,ref:P,class:Se({"vue-data-ui-component":!0,"vue-ui-table-sparkline":!0,"vue-ui-responsive":F.value}),style:{overflow:`hidden`},id:`table_${C.value}`,onMouseenter:t[3]||=()=>y(Qe)(!0),onMouseleave:t[4]||=()=>y(Qe)(!1)},[j.value.text?(h(),d(`div`,{key:0,class:`vue-ui-table-sparkline-caption`,style:m({backgroundColor:j.value.backgroundColor})},[f(`div`,{class:`atom-title`,style:m({fontSize:`${j.value.fontSize}px`,fontWeight:j.value.bold?`bold`:`normal`,color:j.value.color,textAlign:j.value.textAlign})},v(j.value.text),5),j.value.subtitle.text?(h(),d(`div`,{key:0,class:`atom-subtitle`,style:m({fontSize:`${j.value.subtitle.fontSize}px`,fontWeight:j.value.subtitle.bold?`bold`:`normal`,color:j.value.subtitle.color,textAlign:j.value.textAlign})},v(j.value.subtitle.text),5)):u(``,!0)],4)):u(``,!0),f(`div`,{style:{overflow:`auto`},onPointerleave:t[2]||=e=>{Q.value=void 0,Z.value=void 0}},[f(`table`,{class:`vue-ui-data-table`,style:m({fontFamily:E.value.fontFamily,position:`relative`})},[f(`thead`,Pe,[je((h(),d(`tr`,{role:`row`,class:`vue-ui-data-table__thead-row`,style:m({backgroundColor:k.value.backgroundColor,color:k.value.color})},[f(`th`,{role:`cell`,style:m({backgroundColor:k.value.backgroundColor,border:k.value.outline,textAlign:k.value.textAlign,fontWeight:k.value.bold?`bold`:`normal`}),class:`sticky-col-first`},[f(`div`,{style:m({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`3px`,justifyContent:k.value.textAlign})},[f(`span`,null,v(E.value.translations.serie),1),W.value.length>1&&E.value.sortedSeriesName?(h(),d(`div`,Fe,[f(`button`,{class:`vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down`,onClick:t[0]||=e=>q({type:`name`},null,-1),style:m({cursor:M.value?`pointer`:`default`})},[p(y(x),{size:12,name:`arrowBottom`,stroke:k.value.color,style:m({opacity:X.value===`name`&&Y.value.name===-1?1:.3})},null,8,[`stroke`,`style`])],4),f(`button`,{class:`vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up`,onClick:t[1]||=e=>q({type:`name`},null,1),style:m({cursor:M.value?`pointer`:`default`})},[p(y(x),{size:12,name:`arrowTop`,stroke:k.value.color,style:m({opacity:X.value===`name`&&Y.value.name===1?1:.3})},null,8,[`stroke`,`style`])],4)])):u(``,!0)],4)],4),(h(!0),d(c,null,_(J.value,(t,n)=>(h(),d(`th`,{role:`cell`,style:m({background:k.value.backgroundColor,border:k.value.outline,textAlign:k.value.textAlign,fontWeight:k.value.bold?`bold`:`normal`,minWidth:n===J.value.length-1?`${O.value.dimensions.width}px`:`48px`,paddingRight:n===J.value.length-1&&D.value.show?`36px`:``}),class:Se({"sticky-col":n===J.value.length-1&&E.value.showSparklines})},[f(`div`,{style:m({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`3px`,justifyContent:k.value.textAlign})},[f(`span`,null,v(t.value),1),W.value.length>1&&(bt(n)||xt(t))?(h(),d(`div`,Ie,[f(`button`,{class:`vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-down`,onClick:()=>q(t,n,-1),style:m({cursor:M.value?`pointer`:`default`})},[p(y(x),{size:12,name:`arrowBottom`,stroke:k.value.color,style:m({opacity:St(n,t,-1)})},null,8,[`stroke`,`style`])],12,Le),f(`button`,{class:`vue-ui-table-sparkline-sorting-button vue-ui-table-sparkline-sorting-button-up`,onClick:()=>q(t,n,1),style:m({cursor:M.value?`pointer`:`default`})},[p(y(x),{size:12,name:`arrowTop`,stroke:k.value.color,style:m({opacity:St(n,t,1)})},null,8,[`stroke`,`style`])],12,Re)])):u(``,!0)],4),D.value.show&&n===J.value.length-1&&(y($e)||y(N))?(h(),_e(y(Ke),{ref_for:!0,ref:`details`,key:`user_option_${Ye.value}`,backgroundColor:k.value.backgroundColor,color:k.value.color,isPrinting:y(tt),isImaging:y(nt),uid:C.value,hasPdf:D.value.buttons.pdf,hasXls:D.value.buttons.csv,hasImg:D.value.buttons.img,hasFullscreen:D.value.buttons.fullscreen,hasAltCopy:D.value.buttons.altCopy,isFullscreen:_t.value,titles:{...D.value.buttonTitles},chartElement:P.value,position:D.value.position,callbacks:D.value.callbacks,printScale:D.value.print.scale,isCursorPointer:M.value,onToggleFullscreen:vt,onGeneratePdf:y(rt),onGenerateImage:wt,onGenerateCsv:yt,onCopyAlt:Tt,style:m({visibility:y($e)?y(N)?`visible`:`hidden`:`visible`})},ve({_:2},[_(y(de)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionFullscreen optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:Ae(n=>[Te(e.$slots,t,be({ref_for:!0},y(fe)(t,n)),void 0,!0)])}))]),1032,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasPdf`,`hasXls`,`hasImg`,`hasFullscreen`,`hasAltCopy`,`isFullscreen`,`titles`,`chartElement`,`position`,`callbacks`,`printScale`,`isCursorPointer`,`onGeneratePdf`,`style`])):u(``,!0)],6))),256))],4)),[[y(he),Ct]])]),f(`tbody`,null,[(h(!0),d(c,null,_(W.value,(e,t)=>(h(),d(`tr`,{role:`row`,style:m({backgroundColor:A.value.backgroundColor,color:A.value.color}),class:Se({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":t%2==0,"vue-ui-data-table__tbody__row-odd":t%2!=0})},[f(`td`,{role:`cell`,style:m({backgroundColor:A.value.backgroundColor,border:A.value.outline,fontSize:`${A.value.fontSize}px`,fontWeight:A.value.bold?`bold`:`normal`,textAlign:A.value.textAlign}),"data-cell":E.value.translations.serie,class:`vue-ui-data-table__tbody__td sticky-col-first`},[f(`div`,{dir:`auto`,style:m({display:`flex`,flexDirection:`row`,alignItems:`center`,gap:`6px`,justifyContent:A.value.textAlign})},[A.value.showColorMarker?(h(),d(`span`,{key:0,style:m({color:e.color})},`⬤`,4)):u(``,!0),f(`span`,null,v(e.name??`-`),1)],4)],12,ze),(h(!0),d(c,null,_(ut.value,(n,r)=>(h(),d(`td`,{dir:`auto`,role:`cell`,ref_for:!0,ref_key:`TD`,ref:T,style:m({border:A.value.outline,fontSize:`${A.value.fontSize}px`,fontWeight:A.value.bold?`bold`:`normal`,textAlign:A.value.textAlign,background:Z.value!==void 0&&r===Z.value?A.value.selectedColor.useSerieColor?y(a)(e.color,20):A.value.selectedColor.fallback:``}),"data-cell":J.value[r]?J.value[r].value:``,class:`vue-ui-data-table__tbody__td`,onPointerenter:e=>{Q.value=t,Z.value=r}},v(V(e.values[r],E.value.roundingValues,{datapoint:e,seriesIndex:t,datapointIndex:r})),45,Be))),256)),E.value.showTotal?(h(),d(`td`,{key:0,dir:`auto`,role:`cell`,style:m({border:A.value.outline,fontSize:`${A.value.fontSize}px`,fontWeight:A.value.bold?`bold`:`normal`,textAlign:A.value.textAlign}),"data-cell":E.value.translations.total,class:`vue-ui-data-table__tbody__td`},v(V(e.sum,E.value.roundingTotal,{datapoint:e.sum,seriesIndex:t})),13,Ve)):u(``,!0),E.value.showAverage?(h(),d(`td`,{key:1,dir:`auto`,role:`cell`,style:m({border:A.value.outline,fontSize:`${A.value.fontSize}px`,fontWeight:A.value.bold?`bold`:`normal`,textAlign:A.value.textAlign}),"data-cell":E.value.translations.average,class:`vue-ui-data-table__tbody__td`},v(V(e.average,E.value.roundingAverage,{datapoint:e.average,seriesIndex:t})),13,He)):u(``,!0),E.value.showMedian?(h(),d(`td`,{key:2,dir:`auto`,role:`cell`,style:m({border:A.value.outline,fontSize:`${A.value.fontSize}px`,fontWeight:A.value.bold?`bold`:`normal`,textAlign:A.value.textAlign}),"data-cell":E.value.translations.median,class:`vue-ui-data-table__tbody__td`},v(V(e.median,E.value.roundingMedian,{datapoint:e.median,seriesIndex:t})),13,Ue)):u(``,!0),E.value.showSparklines?(h(),d(`td`,{key:3,role:`cell`,"data-cell":E.value.translations.chart,style:m({border:A.value.outline,fontSize:`${A.value.fontSize}px`,fontWeight:A.value.bold?`bold`:`normal`,textAlign:A.value.textAlign,backgroundColor:A.value.backgroundColor,padding:`0`}),class:`vue-ui-data-table__tbody__td sticky-col`},[p(y(b),{onHoverIndex:({index:e})=>gt({dataIndex:e,serieIndex:t}),"height-ratio":O.value.dimensions.heightRatio,"forced-padding":30,dataset:e.sparklineDataset,showInfo:!1,selectedIndex:Z.value,config:{type:O.value.type,style:{backgroundColor:`transparent`,animation:{show:O.value.animation.show&&!y(tt)&&!y(nt),animationFrames:O.value.animation.animationFrames},padding:{right:12},line:{color:e.color,smooth:O.value.smooth,cutNullValues:O.value.cutNullValues,strokeWidth:O.value.strokeWidth},bar:{color:e.color},area:{color:e.color,opacity:O.value.showArea?16:0,useGradient:O.value.useGradient},verticalIndicator:{color:e.color},plot:{radius:9,stroke:A.value.backgroundColor,strokeWidth:3}}}},null,8,[`onHoverIndex`,`height-ratio`,`dataset`,`selectedIndex`,`config`])],12,We)):u(``,!0)],6))),256))])],4)],32),e.$slots.source?(h(),d(`div`,Ge,[Te(e.$slots,`source`,{},void 0,!0)],512)):u(``,!0)],42,Ne))}},[[`__scopeId`,`data-v-bb68c573`]]);export{Me as n,b as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-C3FbHv4N.js";import{$ as a,Ht as o,Jt as ee,S as s,X as te,at as ne,b as c,i as re,in as ie,t as ae,w as oe,yt as se,zt as ce}from"./lib-rPeBMZrn.js";import{n as le,t as ue}from"./BaseScanner-8NdoBs7B.js";import{n as de,t as fe}from"./useHints-C-TwxM0Y.js";import{t as pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as me}from"./resolveChartConfig-CIhClE5R.js";import{t as he}from"./img-D4RQwASc.js";import{n as ge}from"./Title-BliHuXfT.js";import{t as _e}from"./useChartExport-BZts4KFb.js";import{n as ve,r as ye,t as be}from"./userOptionsSlots-CWtXN5Q6.js";import{t as xe}from"./usePrinter-DVf3YcG5.js";import{c as Se}from"./canvas-lib-22VpOI4_.js";import{t as Ce}from"./useResponsive-CENUxfEL.js";import{t as we}from"./DefGrad-DKMq1REY.js";import{t as Te}from"./useUserOptionState-CXlFnwPv.js";import{t as Ee}from"./useChartAccessibility-DOMuYJfm.js";import{t as De}from"./usePrefersMotion-XLHwega2.js";import{t as Oe}from"./useAutoSizeLabelsInsideViewbox-AIRF0PlD.js";import{t as ke}from"./vue_ui_thermometer-CRijq6H6.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Ae,createVNode as je,defineAsyncComponent as Me,guardReactiveProps as h,mergeProps as Ne,normalizeClass as g,normalizeProps as Pe,normalizeStyle as Fe,onMounted as Ie,openBlock as _,ref as v,renderList as y,renderSlot as b,toDisplayString as x,toRefs as Le,unref as S,useCssVars as Re,watch as ze,withCtx as Be}from"vue";var Ve=/* @__PURE__ */ e({default:()=>C}),He=[`id`],Ue={key:1,ref:`noTitle`,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},We=[`xmlns`,`viewBox`,`aria-labelledby`,`aria-describedby`],Ge=[`id`],Ke=[`id`],qe=[`width`,`height`],Je=[`id`],Ye=[`x`,`y`,`width`,`height`,`rx`,`ry`],Xe=[`clip-path`],Ze=[`x`,`y`,`height`,`width`],Qe=[`x`,`y`,`height`,`width`,`fill`],$e=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],et=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],tt=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],nt=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],rt=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],it=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],at=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],ot=[`x1`,`x2`,`y1`,`y2`,`stroke-width`,`stroke`],st=[`x`,`y`,`height`,`width`],ct=[`aria-label`],lt=[`x`,`y`,`height`],ut=[`y`,`x`,`fill`,`font-size`,`font-weight`],dt={key:4,class:`vue-data-ui-watermark`},C=/*#__PURE__*/ pe({__name:`vue-ui-thermometer`,props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},emits:[`copyAlt`],setup(e,{expose:pe,emit:Ve}){Re(e=>({v34c0b983:It.value,v4ff7ff6b:Ft.value,v43c47318:Pt.value}));let C=Me(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),ft=Me(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),pt=Me(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),{vue_ui_thermometer:mt}=i(),ht=De(),w=e,gt=Ve,T=v(te()),E=v(null),_t=v(0),vt=v(0),yt=v(null),bt=v(null),D=v(null),O=v(null),xt=u(()=>!!w.dataset&&Object.keys(w.dataset).length);Ie(()=>{Et()});let k=v(z()),A=u(()=>k.value.userOptions),j=u(()=>k.value.style.chart.graduations),M=u(()=>k.value.style.chart);de({config:()=>k.value,dataset:()=>w.dataset,component:`VueUiThermometer`,rules:[fe.noHint]});let St=v(M.value.thermometer.width),N=v(M.value.height),P=v(M.value.width),Ct=u(()=>k.value.userOptions.useCursorPointer),wt=u(()=>ie({defaultConfig:{userOptions:{show:!1},style:{chart:{animation:{use:!1},backgroundColor:`#99999930`,graduations:{stroke:`#6A6A6A`}}}},userConfig:k.value.skeletonConfig??{}})),{loading:F,FINAL_DATASET:I}=le({...Le(w),FINAL_CONFIG:k,prepareConfig:z,skeletonDataset:w.config?.skeletonDataset??{value:0,from:-100,to:100,steps:20,colors:{from:`#A1A1A1`,to:`#CACACA`}},skeletonConfig:ie({defaultConfig:k.value,userConfig:wt.value})}),Tt=u(()=>k.value.debug);function Et(){if(ce(w.dataset)?ne({componentName:`VueUiThermometer`,type:`dataset`,debug:Tt.value}):se({datasetObject:w.dataset,requiredAttributes:[`value`,`from`,`to`]}).forEach(e=>{ne({componentName:`VueUiThermometer`,type:`datasetAttribute`,property:e,debug:Tt.value})}),k.value.responsive){let e=Se(()=>{let{width:e,height:t}=Ce({chart:E.value,title:k.value.style.title.text?yt.value:null,source:bt.value});requestAnimationFrame(()=>{N.value=Math.max(.1,t-12),P.value=e,Vt()})});D.value&&(O.value&&D.value.unobserve(O.value),D.value.disconnect()),D.value=new ResizeObserver(e),O.value=E.value,D.value.observe(O.value)}Vt()}let{userOptionsVisible:L,setUserOptionsVisibility:Dt,keepUserOptionState:Ot}=Te({config:k.value}),{svgRef:R}=Ee({config:k.value.style.title});function z(){return me(w.config,mt,ke)}ze(()=>w.config,e=>{k.value=z(),L.value=!k.value.userOptions.showOnChartHover,St.value=M.value.thermometer.width,N.value=M.value.height,P.value=M.value.width,Et(),vt.value+=1},{deep:!0});let{isPrinting:B,isImaging:V,generatePdf:kt,generateImage:At}=xe({elementId:`thermometer__${T.value}`,fileName:k.value.style.title.text||`vue-ui-thermometer`,options:k.value.userOptions.print}),jt=u(()=>k.value.userOptions.show&&!k.value.style.title.text),H=u(()=>oe(k.value.customPalette)),U=u(()=>I.value.steps||10);function W(e,t,n){let r=[],i=Mt(e),a=Mt(t);for(let e=0;e<n;e+=1){let t=G(i.red,a.red,e,n),o=G(i.green,a.green,e,n),ee=G(i.blue,a.blue,e,n),s=`#${K(t)}${K(o)}${K(ee)}`;r.push(s)}return r}function Mt(e){let t=e.slice(1);return{red:parseInt(t.slice(0,2),16),green:parseInt(t.slice(2,4),16),blue:parseInt(t.slice(4,6),16)}}function G(e,t,n,r){return Math.round(e+(t-e)*n/r)}function K(e){return e.toString(16).padStart(2,`0`)}let q=u(()=>{let e=Math.max(.1,P.value),t=Math.max(.1,N.value),n=M.value.padding;return{width:e,left:e/2-M.value.thermometer.width/2,right:e/2+M.value.thermometer.width/2,top:n.top,bottom:t-n.bottom-n.top,height:t,thermoHeight:t-n.top-n.bottom,thermoWidth:M.value.thermometer.width}}),Nt=u(()=>q.value),J=u(()=>{let e=c(I.value.from)<0?Math.abs(c(I.value.from)):c(I.value.from),t=c(I.value.to)<0?Math.abs(c(I.value.to)):c(I.value.to),n=0;return n=c(I.value.to)>0?e+t:e>t?e-t:t-e,(1-(Math.abs(c(I.value.from))+c(I.value.value))/n)*q.value.thermoHeight}),Pt=u(()=>`${J.value}px`),Ft=u(()=>`${q.value.thermoHeight}px`),It=u(()=>ht.value?`0ms`:`${M.value.animation.speedMs}ms`),Lt=u(()=>{if(I.value.colors){if(!I.value.colors.from)return W(H.value[0]||o[0],s(I.value.colors.to),U.value||10);if(!I.value.colors.to)return W(s(I.value.colors.from),H.value[1]||o[1],U.value||10)}else return W(H.value[1]||o[1],H.value[0]||o[0],U.value||10);return W(s(I.value.colors.from),s(I.value.colors.to),U.value||10)}),Rt=u(()=>{let e=[],t=0,n=q.value.thermoHeight;for(let r=0;r<n-1;r+=n/U.value)e.push({x:q.value.left,y:q.value.top+r,qYLess:q.value.top+r+n/U.value/4,halfY:q.value.top+r+n/U.value/2,qYMore:q.value.top+r+n/U.value/4*3,color:Lt.value[t],height:Math.max(.1,n/U.value)}),t+=1;return e}),Y=v(!1);function zt(e){Y.value=e,_t.value+=1}let X=v(!1);function Z(){X.value=!X.value}async function Bt({scale:e=2}={}){if(!E.value)return;let{width:t,height:n}=E.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await he({domElement:E.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:k.value.style.title.text,width:t,height:n,aspectRatio:r}}let Q=u({get:()=>M.value.label.fontSize,set:e=>e}),{autoSizeLabels:Vt}=Oe({svgRef:R,fontSize:M.value.label.fontSize,minFontSize:M.value.label.minFontSize,sizeRef:Q,labelClass:`.vue-ui-thermometer-label`}),Ht=u(()=>M.value.backgroundColor),Ut=u(()=>k.value.style.title),{isCallbackImaging:Wt,isCallbackSvg:Gt,generateSvg:Kt,onGenerateImage:qt}=_e({svg:R,title:Ut,legend:null,legendItems:null,backgroundColor:Ht,getSvgCallback:()=>k.value.userOptions.callbacks.svg,generateImage:At});async function Jt(){gt(`copyAlt`,{config:k.value,dataset:I.value}),k.value.userOptions.callbacks.altCopy?await Promise.resolve(k.value.userOptions.callbacks.altCopy({config:k.value,dataset:I.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}let Yt=u(()=>`${T.value}-title`),Xt=u(()=>`${T.value}-desc`),$=u(()=>re(M.value.label.formatter,I.value.value,a({p:M.value.label.prefix,v:I.value.value,s:M.value.label.suffix,r:M.value.label.rounding}),{datapoint:I.value})),Zt=u(()=>k.value.style.title.text||``),Qt=u(()=>{if(F.value)return`...`;let e=c(I.value.from),t=c(I.value.to);return`Thermometer value: ${$.value}. Range: ${e} to ${t}.`});return pe({getImage:Bt,generatePdf:kt,generateImage:At,generateSvg:Kt,toggleAnnotator:Z,toggleFullscreen:zt,copyAlt:Jt}),(e,i)=>(_(),p(`div`,{ref_key:`thermoChart`,ref:E,class:g(`vue-data-ui-component vue-ui-thermometer ${Y.value?`vue-data-ui-wrapper-fullscreen`:``}`),style:Fe(`width:100%;background:${M.value.backgroundColor};color:${M.value.color};font-family:${k.value.style.fontFamily}`),id:`thermometer__${T.value}`,onMouseenter:i[0]||=()=>S(Dt)(!0),onMouseleave:i[1]||=()=>S(Dt)(!1)},[A.value.buttons.annotator?(_(),d(S(ft),Ne({key:0},S(n)(A.value.annotator),{svgRef:S(R),backgroundColor:M.value.backgroundColor,color:M.value.color,active:X.value,isCursorPointer:Ct.value,palette:A.value.annotatorPalette,onClose:Z}),Ae({_:2},[y(S(r),n=>({name:n,fn:Be(r=>[b(e.$slots,n,Pe(h(S(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),jt.value?(_(),p(`div`,Ue,null,512)):f(``,!0),k.value.style.title.text?(_(),p(`div`,{key:2,ref_key:`chartTitle`,ref:yt,style:`width:100%`},[(_(),d(ge,{key:`title_${vt.value}`,config:{title:{cy:`thermometer-div-title`,...k.value.style.title},subtitle:{cy:`thermometer-div-subtitle`,...k.value.style.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),A.value.show&&xt.value&&(S(Ot)||S(L))?(_(),d(S(pt),Ne({ref:`details`,key:`user_options_${_t.value}`,backgroundColor:M.value.backgroundColor,color:M.value.color,isImaging:S(V),isPrinting:S(B),uid:T.value,hasXls:!1,isFullscreen:Y.value,chartElement:E.value},S(ye)(A.value,`pdf img svg fullscreen altCopy annotator`),{isAnnotation:X.value,isCursorPointer:Ct.value,onToggleFullscreen:zt,onGeneratePdf:S(kt),onGenerateImage:S(qt),onGenerateSvg:S(Kt),onToggleAnnotator:Z,onCopyAlt:Jt,style:{visibility:S(Ot)?S(L)?`visible`:`hidden`:`visible`}}),Ae({_:2},[y(S(ve)(e.$slots,`menuIcon optionPdf optionImg optionSvg optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:Be(n=>[b(e.$slots,t,Pe(h(S(be)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isImaging`,`isPrinting`,`uid`,`isFullscreen`,`chartElement`,`isAnnotation`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):f(``,!0),(_(),p(`svg`,{ref_key:`svgRef`,ref:R,xmlns:S(ae),class:g({"vue-data-ui-fullscreen--on":Y.value,"vue-data-ui-fulscreen--off":!Y.value}),width:`100%`,viewBox:`0 0 ${q.value.width} ${q.value.height}`,style:`background:transparent`,"aria-labelledby":Yt.value,"aria-describedby":Xt.value},[m(`title`,{id:Yt.value},x(Zt.value),9,Ge),m(`desc`,{id:Xt.value},x(Qt.value),9,Ke),je(S(C)),b(e.$slots,`svg-underlayer`,{svg:{...Nt.value,isPrintingImg:S(B)||S(V)||S(Wt),isPrintingSvg:S(Gt)}},void 0,!0),e.$slots[`chart-background`]?(_(),p(`foreignObject`,{key:0,x:0,y:0,width:q.value.width,height:q.value.height,style:{pointerEvents:`none`}},[b(e.$slots,`chart-background`,{},void 0,!0)],8,qe)):f(``,!0),m(`defs`,null,[m(`clipPath`,{id:`vueUiPill-${T.value}`,clipPathUnits:`userSpaceOnUse`},[m(`rect`,{x:q.value.left,y:q.value.top,width:q.value.thermoWidth,height:q.value.thermoHeight,rx:q.value.thermoWidth/2,ry:q.value.thermoWidth/2},null,8,Ye)],8,Je),(_(!0),p(l,null,y(Rt.value,(e,t)=>(_(),d(we,{t:`linear`,id:`vueUiThermometerGradient_${t}_${T.value}`,key:`t_${t}_${T.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,e.color,1],[`50%`,S(ee)(e.color,100-j.value.gradient.intensity),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128))]),m(`g`,{"clip-path":`url(#vueUiPill-${T.value})`},[m(`rect`,{x:q.value.left,y:q.value.top,height:q.value.thermoHeight,width:q.value.thermoWidth,fill:`#FFFFFF`},null,8,Ze),(_(!0),p(l,null,y(Rt.value,(e,t)=>(_(),p(`g`,{key:`graduation_${t}`},[m(`rect`,{x:e.x,y:e.y,height:e.height,width:q.value.thermoWidth,fill:j.value.gradient.show?`url(#vueUiThermometerGradient_${t}_${T.value})`:e.color,"shape-rendering":`crispEdges`},null,8,Qe),j.value.show&&[`both`,`left`].includes(j.value.sides)?(_(),p(`line`,{key:0,x1:e.x,x2:e.x+10,y1:e.y,y2:e.y,"stroke-width":j.value.strokeWidth,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,$e)):f(``,!0),j.value.showIntermediate?(_(),p(l,{key:1},[j.value.show&&[`both`,`left`].includes(j.value.sides)?(_(),p(`line`,{key:0,x1:e.x,x2:e.x+5,y1:e.halfY,y2:e.halfY,"stroke-width":j.value.strokeWidth/2,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,et)):f(``,!0),j.value.show&&[`both`,`left`].includes(j.value.sides)?(_(),p(`line`,{key:1,x1:e.x,x2:e.x+2.5,y1:e.qYLess,y2:e.qYLess,"stroke-width":j.value.strokeWidth/2,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,tt)):f(``,!0),j.value.show&&[`both`,`left`].includes(j.value.sides)?(_(),p(`line`,{key:2,x1:e.x,x2:e.x+2.5,y1:e.qYMore,y2:e.qYMore,"stroke-width":j.value.strokeWidth/2,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,nt)):f(``,!0)],64)):f(``,!0),j.value.show&&[`both`,`right`].includes(j.value.sides)?(_(),p(`line`,{key:2,x1:q.value.right,x2:q.value.right-10,y1:e.y,y2:e.y,"stroke-width":j.value.strokeWidth,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,rt)):f(``,!0),j.value.showIntermediate?(_(),p(l,{key:3},[j.value.show&&[`both`,`right`].includes(j.value.sides)?(_(),p(`line`,{key:0,x1:q.value.right,x2:q.value.right-5,y1:e.halfY,y2:e.halfY,"stroke-width":j.value.strokeWidth/2,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,it)):f(``,!0),j.value.show&&[`both`,`right`].includes(j.value.sides)?(_(),p(`line`,{key:1,x1:q.value.right,x2:q.value.right-2.5,y1:e.qYLess,y2:e.qYLess,"stroke-width":j.value.strokeWidth/2,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,at)):f(``,!0),j.value.show&&[`both`,`right`].includes(j.value.sides)?(_(),p(`line`,{key:2,x1:q.value.right,x2:q.value.right-2.5,y1:e.qYMore,y2:e.qYMore,"stroke-width":j.value.strokeWidth/2,stroke:j.value.stroke,"stroke-linecap":`round`},null,8,ot)):f(``,!0)],64)):f(``,!0)]))),128)),m(`rect`,{class:g({"vue-ui-thermometer-temperature":M.value.animation.use}),x:q.value.left,y:q.value.top,height:J.value,width:q.value.thermoWidth,fill:`#FFFFFF66`},null,10,st)],8,Xe),M.value.label.show?(_(),p(`g`,{key:1,role:`status`,"aria-live":`polite`,"aria-label":S(F)?`Loading data`:$.value},[S(F)?(_(),p(`rect`,{key:0,x:q.value.left-60,y:J.value+q.value.top-Q.value/2,width:50,height:Q.value,fill:`#6A6A6A40`,rx:`3`},null,8,lt)):(_(),p(`text`,{key:1,"aria-hidden":`true`,class:g({"vue-ui-thermometer-temperature-value":M.value.animation.use,"vue-ui-thermometer-label":!0}),y:J.value+q.value.top+Q.value/3,x:q.value.left-10,"text-anchor":`end`,fill:M.value.label.color,"font-size":Q.value,"font-weight":M.value.label.bold?`bold`:`normal`},x($.value),11,ut))],8,ct)):f(``,!0),b(e.$slots,`svg`,{svg:{...Nt.value,isPrintingImg:S(B)||S(V)||S(Wt),isPrintingSvg:S(Gt)}},void 0,!0)],10,We)),e.$slots.watermark?(_(),p(`div`,dt,[b(e.$slots,`watermark`,Pe(h({isPrinting:S(B)||S(V)||S(Wt)||S(Gt)})),void 0,!0)])):f(``,!0),e.$slots.source?(_(),p(`div`,{key:5,ref_key:`source`,ref:bt,dir:`auto`},[b(e.$slots,`source`,{},void 0,!0)],512)):f(``,!0),b(e.$slots,`skeleton`,{},()=>[S(F)?(_(),d(ue,{key:0})):f(``,!0)],!0)],46,He))}},[[`__scopeId`,`data-v-8ccdee96`]]);export{Ve as n,C as t};
@@ -1,64 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{X as n,rn as r,t as i}from"./lib-rPeBMZrn.js";import{n as a,t as o}from"./useHints-C-TwxM0Y.js";import{t as s}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as c}from"./useNestedProp-DnGoh-XS.js";import{t as l}from"./BaseIcon-CoY0vuL3.js";import{n as ee}from"./Title-BliHuXfT.js";import{c as te}from"./canvas-lib-22VpOI4_.js";import{t as ne}from"./useResponsive-CENUxfEL.js";import{t as re}from"./DefGrad-DKMq1REY.js";import{t as ie}from"./useChartAccessibility-DOMuYJfm.js";import{computed as u,createBlock as ae,createCommentVNode as d,createElementBlock as f,createElementVNode as p,createVNode as m,defineAsyncComponent as oe,guardReactiveProps as h,mergeProps as se,normalizeProps as g,normalizeStyle as _,onBeforeUnmount as ce,onMounted as le,openBlock as v,ref as y,renderSlot as b,shallowRef as ue,toDisplayString as de,unref as x,watch as fe}from"vue";var pe=class{constructor(e,t,n,r=!0,i=!0){this.interval=t,this.elapsed=0,this.isPaused=!1;let a=new Blob([`
2
- let interval;
3
- let elapsed = 0;
4
- let paused = false;
5
- let startTime;
6
- let tickInterval;
7
-
8
- onmessage = function(e) {
9
- const { action, data } = e.data;
10
-
11
- switch(action) {
12
- case 'start':
13
- startTime = Date.now();
14
- tickInterval = data.interval;
15
- elapsed = 0;
16
- paused = false;
17
- interval = setInterval(() => {
18
- elapsed += tickInterval;
19
- postMessage({ elapsed, timestamp: Date.now() });
20
- }, tickInterval);
21
- break;
22
-
23
- case 'pause':
24
- paused = true;
25
- clearInterval(interval);
26
- elapsed = Date.now() - startTime;
27
- break;
28
-
29
- case 'resume':
30
- if (paused) {
31
- startTime = Date.now() - elapsed;
32
- interval = setInterval(() => {
33
- elapsed += tickInterval;
34
- postMessage({ elapsed, timestamp: Date.now() });
35
- }, tickInterval);
36
- }
37
- paused = false;
38
- break;
39
-
40
- case 'stop':
41
- clearInterval(interval);
42
- elapsed = 0;
43
- postMessage({ elapsed });
44
- break;
45
-
46
- case 'reset':
47
- elapsed = 0;
48
- clearInterval(interval);
49
- postMessage({ elapsed });
50
- break;
51
-
52
- case 'lap':
53
- postMessage({
54
- elapsed,
55
- timestamp: Date.now(),
56
- action: 'lap'
57
- });
58
- break;
59
-
60
- default:
61
- break;
62
- }
63
- };
64
- `],{type:`application/javascript`}),o=URL.createObjectURL(a),s=new Worker(o);function c(e){let t=Math.floor(e/1e3),n=Math.floor(e%1e3/10),a=Math.floor(t/3600),o=Math.floor(t%3600/60),s=t%60,c=``;return i&&(c+=String(a).padStart(2,`0`)+`:`),c+=String(o).padStart(2,`0`)+`:`,c+=String(s).padStart(2,`0`),r&&(c+=`.`+String(n).padStart(2,`0`)),c}this.start=()=>{this.isPaused=!1,s.postMessage({action:`start`,data:{interval:this.interval}})},this.pause=()=>{this.isPaused?this.resume():(this.isPaused=!0,s.postMessage({action:`pause`}))},this.resume=()=>{this.isPaused&&=(s.postMessage({action:`resume`}),!1)},this.stop=()=>{s.postMessage({action:`stop`}),this.isPaused=!1},this.reset=()=>{s.postMessage({action:`reset`}),this.elapsed=0,this.isPaused=!1},this.restart=()=>{this.stop(),this.start()},this.lap=()=>new Promise(e=>{s.postMessage({action:`lap`}),s.addEventListener(`message`,t=>{let{elapsed:n,timestamp:r,action:i}=t.data;if(i===`lap`){let t=c(n);e({timestamp:r||0,elapsed:n,formatted:t})}},{once:!0})}),s.onmessage=t=>{let{elapsed:n,timestamp:r}=t.data;this.elapsed=n,e({timestamp:r||0,elapsed:this.elapsed,formatted:c(this.elapsed)})},s.onerror=e=>{n&&n(e)}}},S=/* @__PURE__ */ e({default:()=>C}),me=[`xmlns`,`viewBox`],he=[`width`,`height`],ge={key:1},_e=[`cx`,`cy`,`r`,`fill`,`stroke`,`stroke-width`],ve=[`d`,`stroke`,`stroke-width`],ye=[`r`,`fill`,`stroke`,`stroke-width`],be=[`r`,`fill`,`stroke`,`stroke-width`],xe=[`x`,`y`],Se={key:5},Ce=[`x`,`y`,`font-size`,`fill`,`font-weight`],we={key:0,class:`vue-ui-timer-controls`},Te=[`title`],Ee=[`title`],De=[`title`],Oe=[`title`],ke=[`title`],C=/*#__PURE__*/ s({__name:`vue-ui-timer`,props:{config:{type:Object,default(){return{}}}},emits:[`start`,`pause`,`reset`,`restart`,`lap`],setup(e,{expose:s,emit:S}){let C=oe(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),{vue_ui_timer:Ae}=t(),w=e,T=S,E=y(null),D=y(null),O=y(null),k=ue(null),A=ue(null),j=y(n()),M=y(0);le(()=>{N()});function N(){if(P.value.responsive){let e=te(()=>{let{width:e,height:t}=ne({chart:E.value,title:P.value.style.title.text?D.value:null,legend:O.value});requestAnimationFrame(()=>{B.value.width=e,B.value.height=t,P.value.responsiveProportionalSizing?(B.value.tracker.core=r({relator:Math.min(e,t),adjuster:P.value.style.width,source:6*I.value.radiusRatio,threshold:1,fallback:1}),B.value.tracker.aura=r({relator:Math.min(e,t),adjuster:P.value.style.width,source:12*I.value.aura.radiusRatio,threshold:1,fallback:1}),B.value.label=r({relator:Math.min(e,t),adjuster:P.value.style.width,source:F.value.label.fontSize,threshold:10,fallback:10})):B.value.label=F.value.label.fontSize})});k.value&&(A.value&&k.value.unobserve(A.value),k.value.disconnect()),k.value=new ResizeObserver(e),A.value=E.value.parentNode,k.value.observe(A.value)}}ce(()=>{k.value&&(A.value&&k.value.unobserve(A.value),k.value.disconnect())});let P=u({get:()=>z(),set:e=>e}),F=u(()=>P.value.stopwatch),I=u(()=>P.value.stopwatch.tracker),L=u(()=>P.value.stopwatch.legend);a({config:()=>P.value,dataset:()=>[],component:`VueUiTimer`,rules:[o.noHint]});let R=u(()=>P.value.useCursorPointer),{svgRef:je}=ie({config:P.value.style.title});function z(){return c({userConfig:w.config,defaultConfig:Ae})}fe(()=>w.config,e=>{P.value=z(),N(),M.value+=1},{deep:!0});let Me=u(()=>{if(F.value.showHours&&F.value.showHundredth)return`00:00:00.00`;if(F.value.showHours&&!F.value.showHundredth)return`00:00:00`;if(!F.value.showHours&&F.value.showHundredth)return`00:00.00`;if(!F.value.showHours&&!F.value.showHundredth)return`00:00`}),B=y({height:P.value.style.height,width:P.value.style.width,tracker:{core:6*I.value.radiusRatio,aura:12*I.value.aura.radiusRatio},label:F.value.label.fontSize}),V=y(0),H=new pe(e=>Ne(e),10,``,F.value.showHundredth,F.value.showHours),U=y(!0),W=y(!1),G=y(!1);function K(){T(`start`),U.value&&H.start(),U.value=!1,W.value=!0}function q(){W.value&&=(T(`reset`),H.stop(),X.value=[],U.value=!0,!1)}function J(){G.value=!G.value,T(`pause`,V.value),H.pause()}function Y(){W.value&&(G.value=!1,T(`restart`),X.value=[],H.restart())}let X=y([]);async function Z(){if(!W.value||G.value)return;let e=await H.lap();e&&(X.value.push(e),T(`lap`,X.value))}function Ne({timestamp:e,elapsed:t,formatted:n}){V.value={timestamp:e,elapsed:t,formatted:n}}let Q=u(()=>Math.min(B.value.width,B.value.height)/2.5*F.value.track.radiusRatio);function Pe(e,t){return e*(360/(t*1e3))%360}function Fe(e){let t=Math.PI/180*e;return{cx:B.value.width/2+Q.value*Math.cos(t),cy:B.value.height/2+Q.value*Math.sin(t)}}let $=u(()=>{let e=Pe(V.value.elapsed,F.value.cycleSeconds),{cx:t,cy:n}=Fe(e-90),r=+(e>180);return{cx:t||B.value.width/2,cy:n||B.value.height/2-Q.value,largeArcFlag:r,sweepFlag:1}});return s({start:K,pause:J,reset:q,restart:Y,lap:Z}),(e,t)=>(v(),f(`div`,{ref_key:`timerChart`,ref:E,class:`vue-data-ui-component vue-ui-timer`,style:_({fontFamily:P.value.style.fontFamily,width:`100%`,height:P.value.responsive?`100%`:`auto`,textAlign:`center`})},[P.value.style.title.text?(v(),f(`div`,{key:0,ref_key:`chartTitle`,ref:D,style:_({width:`100%`,background:P.value.style.backgroundColor})},[(v(),ae(ee,{key:`title_${M.value}`,config:{title:{cy:`title`,...P.value.style.title},subtitle:{cy:`subtitle`,...P.value.style.title.subtitle}}},null,8,[`config`]))],4)):d(``,!0),(v(),f(`svg`,{ref_key:`svgRef`,ref:je,xmlns:x(i),viewBox:`0 0 ${B.value.width<=0?10:B.value.width} ${B.value.height<=0?10:B.value.height}`,style:_({maxWidth:`100%`,overflow:`visible`,background:P.value.style.backgroundColor})},[m(x(C)),e.$slots[`chart-background`]?(v(),f(`foreignObject`,{key:0,x:0,y:0,width:B.value.width<=0?10:B.value.width,height:B.value.height<=0?10:B.value.height,style:{pointerEvents:`none`}},[b(e.$slots,`chart-background`,{},void 0,!0)],8,he)):d(``,!0),I.value.gradient.show?(v(),f(`defs`,ge,[m(re,{t:`radial`,id:`tracker_gradient_${j.value}`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,stops:[[`0%`,I.value.gradient.color,1],[`100%`,I.value.fill,1]]},null,8,[`id`,`stops`])])):d(``,!0),p(`circle`,{cx:B.value.width/2,cy:B.value.height/2,r:Q.value,fill:F.value.track.fill,stroke:F.value.track.stroke,"stroke-width":F.value.track.strokeWidth},null,8,_e),F.value.cycleTrack.show?(v(),f(`path`,{key:2,d:`M ${B.value.width/2},${B.value.height/2-Q.value} A ${Q.value},${Q.value} 0 ${$.value.largeArcFlag},${$.value.sweepFlag} ${$.value.cx},${$.value.cy}`,stroke:F.value.cycleTrack.stroke,"stroke-width":F.value.cycleTrack.strokeWidth,"stroke-linecap":`round`,fill:`none`},null,8,ve)):d(``,!0),p(`circle`,se($.value,{r:B.value.tracker.core,fill:I.value.gradient.show?`url(#tracker_gradient_${j.value})`:I.value.fill,stroke:I.value.stroke,"stroke-width":I.value.strokeWidth}),null,16,ye),I.value.aura.show?(v(),f(`circle`,se({key:3},$.value,{r:B.value.tracker.aura,fill:`${I.value.aura.fill}`,opacity:.2,stroke:I.value.aura.stroke,"stroke-width":I.value.aura.strokeWidth}),null,16,be)):d(``,!0),e.$slots.time?(v(),f(`foreignObject`,{key:4,x:B.value.width/2,y:B.value.height/2,height:`0.1`,width:`0.1`,style:{overflow:`visible`}},[b(e.$slots,`time`,g(h({...V.value,...B.value})),void 0,!0)],8,xe)):e.$slots.timeSvg?(v(),f(`g`,Se,[b(e.$slots,`timeSvg`,g(h({...V.value,...B.value})),void 0,!0)])):(v(),f(`text`,{key:6,x:B.value.width/2,y:B.value.height/2+B.value.label/4,"font-size":B.value.label,"text-anchor":`middle`,fill:F.value.label.color,"font-weight":F.value.label.bold?`bold`:`normal`,style:{"font-variant-numeric":`tabular-nums !important`}},de(V.value.formatted||Me.value),9,Ce))],12,me)),p(`div`,{ref_key:`chartLegend`,ref:O,style:_({width:`100%`,backgroundColor:L.value.backgroundColor})},[e.$slots.controls?d(``,!0):(v(),f(`div`,we,[L.value.buttons.start?(v(),f(`button`,{key:0,title:L.value.buttonTitles.start,onClick:K,class:`vue-ui-timer-button`,style:_({opacity:W.value?.2:1,cursor:W.value?`default`:R.value?`pointer`:`default`})},[m(l,{name:`play`,stroke:L.value.buttons.iconColor},null,8,[`stroke`])],12,Te)):d(``,!0),L.value.buttons.pause?(v(),f(`button`,{key:1,title:G.value?L.value.buttonTitles.resume:L.value.buttonTitles.pause,onClick:J,class:`vue-ui-timer-button`,style:_({opacity:W.value?1:.2,cursor:W.value&&R.value?`pointer`:`default`})},[m(l,{name:`pause`,stroke:L.value.buttons.iconColor},null,8,[`stroke`])],12,Ee)):d(``,!0),L.value.buttons.reset?(v(),f(`button`,{key:2,title:L.value.buttonTitles.reset,onClick:q,class:`vue-ui-timer-button`,style:_({opacity:W.value?1:.2,cursor:W.value&&R.value?`pointer`:`default`})},[m(l,{name:`stop`,stroke:L.value.buttons.iconColor},null,8,[`stroke`])],12,De)):d(``,!0),L.value.buttons.restart?(v(),f(`button`,{key:3,title:L.value.buttonTitles.restart,onClick:Y,class:`vue-ui-timer-button`,style:_({opacity:W.value?1:.2,cursor:W.value&&R.value?`pointer`:`default`})},[m(l,{name:`restart`,stroke:L.value.buttons.iconColor},null,8,[`stroke`])],12,Oe)):d(``,!0),L.value.buttons.lap?(v(),f(`button`,{key:4,title:L.value.buttonTitles.lap,onClick:Z,class:`vue-ui-timer-button`,style:_({opacity:W.value&&!G.value?1:.2,cursor:W.value&&!G.value&&R.value?`pointer`:`default`})},[m(l,{name:`lap`,stroke:L.value.buttons.iconColor},null,8,[`stroke`])],12,ke)):d(``,!0)])),b(e.$slots,`controls`,g(h({start:K,pause:J,reset:q,restart:Y,lap:Z,laps:X.value,isRunning:W.value,isPaused:G.value,...V.value})),void 0,!0),b(e.$slots,`laps`,g(h({laps:X.value,lap:Z,isRunning:W.value,isPaused:G.value,...V.value})),void 0,!0)],4)],4))}},[[`__scopeId`,`data-v-27b9f373`]]);export{S as n,C as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-C3FbHv4N.js";import{$ as a,X as o,Yt as s,at as c,b as l,i as ee,in as te,t as ne,zt as re}from"./lib-rPeBMZrn.js";import{n as ie,t as ae}from"./BaseScanner-8NdoBs7B.js";import{n as oe,t as se}from"./useHints-C-TwxM0Y.js";import{t as ce}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as le}from"./resolveChartConfig-CIhClE5R.js";import{t as ue}from"./chartImage-DPGnEuYM.js";import{n as de}from"./Title-BliHuXfT.js";import{t as fe}from"./useChartExport-BZts4KFb.js";import{n as pe,r as me,t as he}from"./userOptionsSlots-CWtXN5Q6.js";import{t as ge}from"./usePrinter-DVf3YcG5.js";import{c as _e}from"./canvas-lib-22VpOI4_.js";import{t as ve}from"./useResponsive-CENUxfEL.js";import{t as ye}from"./useUserOptionState-CXlFnwPv.js";import{t as be}from"./useChartAccessibility-DOMuYJfm.js";import{t as xe}from"./usePrefersMotion-XLHwega2.js";import{t as Se}from"./vue_ui_tiremarks-8HFfABNF.js";import{Fragment as Ce,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as we,createSlots as Te,createVNode as Ee,defineAsyncComponent as m,guardReactiveProps as h,mergeProps as De,normalizeClass as g,normalizeProps as Oe,normalizeStyle as ke,onMounted as Ae,openBlock as _,ref as v,renderList as y,renderSlot as b,toDisplayString as x,toRefs as je,unref as S,watch as Me,withCtx as Ne}from"vue";var Pe=/* @__PURE__ */ e({default:()=>C}),Fe=[`id`],Ie=[`xmlns`,`viewBox`,`aria-labelledby`,`aria-describedby`],Le=[`id`],Re=[`id`],ze=[`width`,`height`],Be={key:1},Ve=[`d`,`stroke-width`,`stroke`],He={key:2},Ue=[`x1`,`y1`,`x2`,`y2`,`stroke-width`,`stroke`],We=[`aria-label`],Ge=[`x`,`y`,`height`],Ke=[`x`,`y`,`font-size`,`fill`,`font-weight`,`text-anchor`],qe={key:4,class:`vue-data-ui-watermark`},C=/*#__PURE__*/ ce({__name:`vue-ui-tiremarks`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`copyAlt`],setup(e,{expose:ce,emit:Pe}){let C=m(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),Je=m(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),Ye=m(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),{vue_ui_tiremarks:Xe}=i(),w=xe(),T=e,Ze=Pe,Qe=u(()=>!!T.dataset&&Object.keys(T.dataset).length),E=v(o()),D=v(null),$e=v(null),et=v(null),tt=v(null),nt=v(0),rt=v(0),O=v(null),k=v(null),A=v(R()),j=u(()=>A.value.userOptions),M=u(()=>A.value.style.chart.layout),N=u(()=>A.value.style.chart);oe({config:()=>A.value,dataset:()=>T.dataset,component:`VueUiTiremarks`,rules:[se.noHint]});let it=u(()=>A.value.userOptions.useCursorPointer),at=u(()=>te({defaultConfig:{userOptions:{show:!1},style:{chart:{backgroundColor:`#99999930`,animation:{use:!1},layout:{activeColor:`#6A6A6A80`,inactiveColor:`#CACACA80`,ticks:{gradient:{show:!1}}}}}},userConfig:A.value.skeletonConfig??{}})),{loading:P,FINAL_DATASET:F}=ie({...je(T),FINAL_CONFIG:A,prepareConfig:R,skeletonDataset:T.config?.skeletonDataset??{percentage:50},skeletonConfig:te({defaultConfig:A.value,userConfig:at.value})}),{userOptionsVisible:I,setUserOptionsVisibility:ot,keepUserOptionState:st}=ye({config:A.value}),{svgRef:L}=be({config:N.value.title});function R(){return le(T.config,Xe,Se)}Me(()=>T.config,e=>{A.value=R(),I.value=!A.value.userOptions.showOnChartHover,G.value=N.value.width,K.value=N.value.height,pt(),rt.value+=1},{deep:!0});let{isPrinting:z,isImaging:B,generatePdf:ct,generateImage:lt}=ge({elementId:E.value,fileName:N.value.title.text||`vue-ui-tiremarks`,options:A.value.userOptions.print}),ut=u(()=>A.value.userOptions.show&&!N.value.title.text),V=v(N.value.animation.use&&!w.value?0:l(F.value.percentage));Me(()=>F.value,e=>{N.value.animation.use&&!w.value?dt(e.percentage):V.value=e.percentage||0},{deep:!0}),Ae(()=>{pt()});function dt(e){let t=N.value.animation.speed,n=Math.abs(e-V.value)/(t*120);function r(){V.value<e?V.value=Math.min(V.value+n,e):V.value>e&&(V.value=Math.max(V.value-n,e)),V.value!==e&&requestAnimationFrame(r)}r()}let ft=u(()=>A.value.debug);function pt(){if(re(T.dataset)&&c({componentName:`VueUiTiremarks`,type:`dataset`,debug:ft.value}),A.value.responsive){let e=_e(()=>{let{width:e,height:t}=ve({chart:D.value,title:N.value.title.text?et.value:null,source:tt.value});requestAnimationFrame(()=>{G.value=Math.max(.1,e),K.value=Math.max(.1,t-12)})});O.value&&(k.value&&O.value.unobserve(k.value),O.value.disconnect()),O.value=new ResizeObserver(e),k.value=D.value.parentNode,O.value.observe(k.value)}dt(F.value.percentage||0)}let H=u(()=>M.value.display===`vertical`),U=u(()=>{let e=N.value.percentage.show,t={top:e?48:12,left:e?64:16,right:e?64:16,bottom:e?48:12};return H.value?{top:N.value.percentage.verticalPosition===`top`?t.top:3,left:3,right:3,bottom:N.value.percentage.verticalPosition===`bottom`?t.bottom:3}:{top:0,bottom:0,left:N.value.percentage.horizontalPosition===`left`?t.left:16,right:N.value.percentage.horizontalPosition===`right`?t.right:10}}),W=u(()=>Object.values(U.value).reduce((e,t)=>e+t,0)),G=v(N.value.width),K=v(N.value.height),q=u(()=>({height:K.value,width:G.value})),mt=u(()=>({horizontal:{x:Y.value.x+(N.value.percentage.horizontalPosition===`left`?6:3),y:q.value.height/2-Y.value.fontSize/2},vertical:{x:q.value.width/2-20,y:Y.value.y-Y.value.fontSize/2}})[M.value.display]),J=u(()=>H.value?{mark:(q.value.height-W.value)/100*.5,space:(q.value.height-W.value)/100*.5}:{mark:(q.value.width-W.value)/100*.5,space:(q.value.width-W.value)/100*.5}),ht=u(()=>{let e=[];for(let t=0;t<100;t+=1){let n=M.value.ticks.gradient.show?s(M.value.activeColor,t/100*(M.value.ticks.gradient.shiftHueIntensity/100)):M.value.activeColor;if(H.value){let r=M.value.crescendo?(100-t)*(q.value.width-U.value.left-U.value.right)/100/3:0,i=U.value.left+4+r,a=q.value.width-U.value.right-4-r,o=q.value.height-U.value.bottom-t*J.value.mark-t*J.value.space-J.value.mark,s=q.value.height-U.value.bottom-t*J.value.mark-t*J.value.space-J.value.mark,c=(a-i)/M.value.curveAngleX,l=M.value.curveAngleY*((1+t)/100);e.push({x1:i,x2:a,y1:o,y2:s,curve:`M ${i} ${o} C ${i+c} ${o-l}, ${a-c} ${s-l}, ${a} ${s}`,color:n})}else{let r=M.value.crescendo?(100-t)*(q.value.height-U.value.top-U.value.bottom)/100/3:0,i=U.value.left+t*J.value.mark+t*J.value.space-J.value.mark,a=i,o=U.value.top+4+r,s=q.value.height-U.value.bottom-4-r,c=M.value.curveAngleY*((1+t)/100),l=(s-o)/M.value.curveAngleX;e.push({x1:i,x2:a,y1:o,y2:s,curve:`M ${i} ${o} C ${i+c} ${o+l}, ${a+c} ${s-l}, ${a} ${s}`,color:n})}}return e}),Y=u(()=>{let e,t,n,r=N.value.percentage.fontSize/3;return H.value?N.value.percentage.verticalPosition===`top`?(e=q.value.width/2,t=U.value.top/2,n=`middle`):N.value.percentage.verticalPosition===`bottom`&&(e=q.value.width/2,t=q.value.height-U.value.bottom/2+r,n=`middle`):N.value.percentage.horizontalPosition===`left`?(e=4,t=q.value.height/2+r,n=`start`):N.value.percentage.horizontalPosition===`right`&&(e=q.value.width-U.value.right+8,t=q.value.height/2+r,n=`start`),{x:e,y:t,textAnchor:n,bold:N.value.percentage.bold,fontSize:N.value.percentage.fontSize,fill:N.value.percentage.color}}),X=v(!1);function gt(e){X.value=e,nt.value+=1}let Z=v(!1);function _t(){Z.value=!Z.value}let vt=ue(D,()=>N.value.title.text),yt=u(()=>N.value.backgroundColor),bt=u(()=>N.value.title),{isCallbackImaging:Q,isCallbackSvg:xt,generateSvg:St,onGenerateImage:Ct}=fe({svg:L,title:bt,legend:null,legendItems:null,backgroundColor:yt,getSvgCallback:()=>A.value.userOptions.callbacks.svg,generateImage:lt});async function wt(){Ze(`copyAlt`,{config:A.value,dataset:F.value}),A.value.userOptions.callbacks.altCopy?await Promise.resolve(A.value.userOptions.callbacks.altCopy({config:A.value,dataset:F.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}let Tt=u(()=>`${E.value}-title`),Et=u(()=>`${E.value}-desc`),$=u(()=>ee(N.value.percentage.formatter,V.value,a({v:V.value,s:`%`,r:N.value.percentage.rounding}))),Dt=u(()=>N.value.title.text||``),Ot=u(()=>P.value?`Loading data`:`Value: ${$.value}`);return ce({getImage:vt,generatePdf:ct,generateImage:lt,generateSvg:St,toggleAnnotator:_t,toggleFullscreen:gt,copyAlt:wt}),(e,i)=>(_(),p(`div`,{ref_key:`tiremarksChart`,ref:D,class:g(`vue-data-ui-component vue-ui-tiremarks ${A.value.useCssAnimation?``:`vue-ui-dna`}`),style:ke(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${N.value.backgroundColor}`),id:E.value,onMouseenter:i[0]||=()=>S(ot)(!0),onMouseleave:i[1]||=()=>S(ot)(!1)},[j.value.buttons.annotator?(_(),d(S(C),De({key:0},S(n)(j.value.annotator),{svgRef:S(L),backgroundColor:N.value.backgroundColor,color:N.value.color,active:Z.value,isCursorPointer:it.value,palette:j.value.annotatorPalette,onClose:_t}),Te({_:2},[y(S(r),n=>({name:n,fn:Ne(r=>[b(e.$slots,n,Oe(h(S(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),ut.value?(_(),p(`div`,{key:1,ref_key:`noTitle`,ref:$e,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),N.value.title.text?(_(),p(`div`,{key:2,ref_key:`chartTitle`,ref:et,style:`width:100%;background:transparent;padding-bottom:12px`},[(_(),d(de,{key:`title_${rt.value}`,config:{title:{cy:`wheel-title`,...N.value.title},subtitle:{cy:`wheel-subtitle`,...N.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),j.value.show&&Qe.value&&(S(st)||S(I))?(_(),d(S(Je),De({ref:`details`,key:`user_options_${nt.value}`,backgroundColor:N.value.backgroundColor,color:N.value.color,isPrinting:S(z),isImaging:S(B),uid:E.value,hasXls:!1,isFullscreen:X.value,chartElement:D.value},S(me)(j.value,`pdf img svg fullscreen altCopy annotator`),{isAnnotation:Z.value,isCursorPointer:it.value,onToggleFullscreen:gt,onGeneratePdf:S(ct),onGenerateImage:S(Ct),onGenerateSvg:S(St),onToggleAnnotator:_t,onCopyAlt:wt,style:{visibility:S(st)?S(I)?`visible`:`hidden`:`visible`}}),Te({_:2},[y(S(pe)(e.$slots,`menuIcon optionPdf optionImg optionSvg optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:Ne(n=>[b(e.$slots,t,Oe(h(S(he)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`isFullscreen`,`chartElement`,`isAnnotation`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):f(``,!0),(_(),p(`svg`,{ref_key:`svgRef`,ref:L,xmlns:S(ne),class:g({"vue-data-ui-fullscreen--on":X.value,"vue-data-ui-fulscreen--off":!X.value}),viewBox:`0 0 ${G.value} ${K.value}`,style:ke(`max-width:100%; overflow: visible; background:transparent;color:${N.value.color}`),role:`img`,"aria-labelledby":Tt.value,"aria-describedby":Et.value},[we(`title`,{id:Tt.value},x(Dt.value),9,Le),we(`desc`,{id:Et.value},x(Ot.value),9,Re),Ee(S(Ye)),b(e.$slots,`svg-underlayer`,{svg:{...q.value,isPrintingImg:S(z)||S(B)||S(Q),isPrintingSvg:S(xt)}},void 0,!0),e.$slots[`chart-background`]?(_(),p(`foreignObject`,{key:0,x:0,y:0,width:q.value.width,height:q.value.height,style:{pointerEvents:`none`}},[b(e.$slots,`chart-background`,{},void 0,!0)],8,ze)):f(``,!0),M.value.curved?(_(),p(`g`,Be,[(_(!0),p(Ce,null,y(ht.value,(e,t)=>(_(),p(`path`,{d:e.curve,"stroke-width":J.value.mark,stroke:V.value>=t?e.color:M.value.inactiveColor,"stroke-linecap":`round`,fill:`none`,class:g({"vue-ui-tick-animated":N.value.animation.use&&!S(w)&&t<=V.value})},null,10,Ve))),256))])):(_(),p(`g`,He,[(_(!0),p(Ce,null,y(ht.value,(e,t)=>(_(),p(`line`,{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,"stroke-width":J.value.mark,stroke:V.value>=t?e.color:M.value.inactiveColor,"stroke-linecap":`round`},null,8,Ue))),256))])),N.value.percentage.show?(_(),p(`g`,{key:3,role:`status`,"aria-live":`polite`,"aria-label":S(P)?`...`:`${$.value}`},[S(P)?(_(),p(`rect`,{key:0,x:mt.value.x,y:mt.value.y,width:40,height:Y.value.fontSize,fill:`#6A6A6A80`,rx:3},null,8,Ge)):(_(),p(`text`,{key:1,"aria-hidden":`true`,x:Y.value.x,y:Y.value.y,"font-size":Y.value.fontSize,fill:M.value.ticks.gradient.show&&N.value.percentage.useGradientColor?S(s)(M.value.activeColor,V.value/100*(M.value.ticks.gradient.shiftHueIntensity/100)):N.value.percentage.color,"font-weight":Y.value.bold?`bold`:`normal`,"text-anchor":Y.value.textAnchor},x($.value),9,Ke))],8,We)):f(``,!0),b(e.$slots,`svg`,{svg:{...q.value,isPrintingImg:S(z)||S(B)||S(Q),isPrintingSvg:S(xt)}},void 0,!0)],14,Ie)),e.$slots.watermark?(_(),p(`div`,qe,[b(e.$slots,`watermark`,Oe(h({isPrinting:S(z)||S(B)||S(Q)||S(xt)})),void 0,!0)])):f(``,!0),e.$slots.source?(_(),p(`div`,{key:5,ref_key:`source`,ref:tt,dir:`auto`},[b(e.$slots,`source`,{},void 0,!0)],512)):f(``,!0),b(e.$slots,`skeleton`,{},()=>[S(P)?(_(),d(ae,{key:0})):f(``,!0)],!0)],46,Fe))}},[[`__scopeId`,`data-v-688efa59`]]);export{Pe as n,C as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-C3FbHv4N.js";import{$ as a,D as o,Dt as s,Ft as c,Ht as l,S as u,X as d,Zt as f,at as ee,et as te,i as ne,in as re,nt as ie,pt as ae,r as oe,t as se,w as ce,zt as le}from"./lib-rPeBMZrn.js";import{n as ue,t as de}from"./BaseScanner-8NdoBs7B.js";import{n as fe,t as pe}from"./useHints-C-TwxM0Y.js";import{t as me}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as he}from"./resolveChartConfig-CIhClE5R.js";import{t as ge}from"./chartImage-DPGnEuYM.js";import{t as _e}from"./BaseIcon-CoY0vuL3.js";import{n as ve}from"./Title-BliHuXfT.js";import{t as ye}from"./useChartExport-BZts4KFb.js";import{n as be,t as xe}from"./tableIntegration-CNoJ1CIY.js";import{n as Se,r as Ce,t as we}from"./userOptionsSlots-CWtXN5Q6.js";import{t as Te}from"./usePrinter-DVf3YcG5.js";import{t as Ee}from"./useTransitions-ChGGrtrv.js";import{c as De}from"./canvas-lib-22VpOI4_.js";import{t as Oe}from"./useResponsive-CENUxfEL.js";import{t as ke}from"./DefGrad-DKMq1REY.js";import{t as Ae}from"./BaseLegendToggle-BIzyyI1h.js";import{t as je}from"./A11yDataTable-DWNlWXzs.js";import{t as Me}from"./useUserOptionState-CXlFnwPv.js";import{t as Ne}from"./useChartAccessibility-DOMuYJfm.js";import{n as Pe}from"./annotationViewport-X8fvs7pz.js";import{t as Fe}from"./Legend-DM0ClX3D.js";import{t as Ie}from"./usePanZoom-CE6Ofyy8.js";import{t as Le}from"./vue_ui_treemap-Bv4Rdl5_.js";import{Fragment as Re,Teleport as ze,computed as p,createBlock as m,createCommentVNode as h,createElementBlock as g,createElementVNode as _,createSlots as Be,createTextVNode as Ve,createVNode as He,defineAsyncComponent as Ue,guardReactiveProps as v,mergeProps as We,nextTick as Ge,normalizeClass as Ke,normalizeProps as y,normalizeStyle as qe,onBeforeUnmount as Je,onMounted as Ye,openBlock as b,ref as x,renderList as Xe,renderSlot as S,resolveDynamicComponent as Ze,shallowRef as C,toDisplayString as Qe,toRefs as $e,unref as w,useCssVars as et,useSlots as tt,watch as nt,withCtx as T,withKeys as rt,withModifiers as it}from"vue";function at(e,t){let n=e.length;if(n===0)throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);{let r=1/0,i=-1/0,a=0;for(let t=0;t<n;t+=1){let n=e[t].normalizedValue;n<r&&(r=n),n>i&&(i=n),a+=n}return Math.max(t**2*i/a**2,a**2/(t**2*r))}}function ot(e){let{xOffset:t,yOffset:n,width:r,height:i}=e;return{x0:t,y0:n,x1:t+r,y1:n+i}}function st(e,t,n){if(e.length===0)return!0;{let r=e.concat(t);return at(e,n)>=at(r,n)}}function ct(e){let t=[],n=e.length;for(let r=0;r<n;r+=1){let n=e[r],i=n.length;for(let e=0;e<i;e+=1)t.push(n[e])}return t}function lt(e,t){return D({...t,children:e})}function ut(e){return(e.x1-e.x0)*(e.y1-e.y0)}function dt(e,t){let{width:n,height:r,xOffset:i,yOffset:a}=mt(t),o=e.length,s=e.map(e=>e.normalizedValue||0).reduce((e,t)=>e+t,0),c=s/r,l=s/n,u=i,d=a,f=[];if(n>=r){for(let t=0;t<o;t+=1){let n=e[t],r=d+n.normalizedValue/c,i={x0:u,y0:d,x1:u+c,y1:r},a=Object.assign({},n,i);d=r,f.push(a)}return f}for(let t=0;t<o;t+=1){let n=e[t],r=u+n.normalizedValue/l,i={x0:u,y0:d,x1:r,y1:d+l},a=Object.assign({},n,i);u=r,f.push(a)}return f}function ft(e){let t=mt(e),n=t.width,r=t.height;return Math.min(n,r)}function pt(e,t){let n=e.length,r=t/e.map(e=>e.value??0).reduce((e,t)=>e+t,0),i=[],a,o;for(let t=0;t<n;t+=1)o=e[t],a=Object.assign({},o,{normalizedValue:o.value*(r||0)}),i.push(a);return i}function mt(e){let{x0:t,y0:n,x1:r,y1:i}=e;return{xOffset:t,yOffset:n,width:r-t,height:i-n}}function E(e,t,n,r){let i=e,a=t,o=n,s=r;for(;;){let e=i.length;if(e===0){let e=dt(a,o);return s.concat(e)}let t=ft(o),n=i[0],r=i.slice(1,e);if(st(a,n,t)){let e=a.concat(n);i=r,a=e,o=o,s=s}else{let e=a.length,t=0;for(let n=0;n<e;n+=1)t+=a[n].normalizedValue;let n=ht(o,t),r=dt(a,o),c=s.concat(r);i=i,a=[],o=n,s=c}}}function D(e){if(e.children===void 0||!e.children.length)return[e];{let t=E(pt(e.children,ut(e)),[],e,[]),n=t.length,r=[];for(let e=0;e<n;e+=1)r.push(D(t[e]));return ct(r)}}function ht(e,t){let{width:n,height:r,xOffset:i,yOffset:a}=mt(e);if(n>=r){let e=t/r,o=n-e;return ot({xOffset:i+e,yOffset:a,width:o,height:r})}{let e=t/n,o=r-e;return ot({xOffset:i,yOffset:a+e,width:n,height:o})}}var gt=/* @__PURE__ */ e({default:()=>Gt}),_t=[`id`],vt=[`id`],yt=[`id`],bt=[`tabindex`,`onClick`,`onKeydown`,`data-last-crumb`,`onMouseenter`,`onFocus`],xt={class:`vue-ui-treemap-crumb-unit`},St={class:`vue-ui-treemap-crumb-unit-label`},Ct={key:0,style:{width:`24px`,display:`flex`,"align-items":`center`}},wt={key:0,class:`vue-ui-treemap-crumb-unit-arrow`},Tt={style:{position:`relative`}},Et=[`xmlns`,`aria-describedby`,`viewBox`],Dt={key:0},Ot=[`x`,`y`,`height`,`width`,`fill`,`rx`,`stroke`,`stroke-width`,`onClick`,`onMouseenter`,`onMouseleave`],kt=[`id`],At=[`x`,`y`,`width`,`height`],jt=[`clip-path`],Mt=[`transform`],Nt=[`transform`],Pt=[`x`,`y`,`fill`,`font-size`,`font-family`,`font-weight`],Ft={key:0},It=[`x`,`y`,`height`,`width`],Lt={style:{width:`100%`,height:`100%`,overflow:`hidden`},class:`vue-ui-treemap-cell`},Rt={key:0,"data-dom-to-png-ignore":``,class:`reset-wrapper`},zt={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},Bt={key:6,class:`vue-data-ui-watermark`},Vt=[`id`],Ht=[`onClick`],Ut={style:{display:`flex`,"align-items":`center`}},Wt=4,Gt=/*#__PURE__*/ me({__name:`vue-ui-treemap`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`selectDatapoint`,`copyAlt`],setup(e,{expose:me,emit:at}){et(e=>({e8095b48:Ai.value}));let ot=Ue(()=>import(`./DataTable-Dof6yhO7.js`)),st=Ue(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),ct=Ue(()=>import(`./vue-ui-accordion-E8TJfFeK.js`).then(e=>e.n)),ut=Ue(()=>import(`./Tooltip-C1q0Qoh7.js`)),dt=Ue(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),ft=Ue(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),pt=Ue(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_treemap:mt}=i(),E=e,D=at,ht=tt(),gt=p(()=>!!E.dataset&&E.dataset.length),Gt=p(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),O=x(d()),Kt=x(!1),qt=x(``),Jt=x(!1),Yt=x(0),k=x([]),A=C(null),Xt=C(null),Zt=C(null),Qt=C(null),$t=C(null),en=x(0),tn=x(0),nn=x(0),j=x([]),rn=x(null),an=x(!1),on=x(null),sn=x(null),cn=x(null),ln=x(/* @__PURE__ */ new Map),M=x(null),un=x({x:0,y:0}),dn=x(`pointer`),fn=x(!1),N=x(Sn()),P=p(()=>N.value.userOptions),F=p(()=>N.value.style.chart.tooltip),I=p(()=>N.value.style.chart.legend),L=p(()=>N.value.style.chart.layout.labels),R=p(()=>N.value.style.chart.layout),z=p(()=>N.value.style.chart);fe({config:()=>N.value,dataset:()=>E.dataset,component:`VueUiTreemap`,rules:[pe.emptyArray,{test:e=>e.length===1&&e[0]?.children&&e[0].children.length<6&&e[0].children.length>0||e.flatMap(e=>e?.children?.length??0).reduce((e,t)=>e+t,0)<6,message:[`👀 The number of data points is < 6. Consider:`,``,`▶️ Using another type of chart instead to better show proportions: VueUiDonut, VueUiWaffle`]},{test:e=>e.length===1&&e[0]?.children&&e[0].children.length===0,message:[`👀 There is a series defined in the dataset but it has no children items.`,``,`▶️ Add children items to your series.`]}]});let{transitionEnabled:pn}=Ee({config:()=>N.value.transitions,dataset:()=>E.dataset}),B=p(()=>N.value.userOptions.useCursorPointer),mn=p(()=>re({defaultConfig:{userOptions:{show:!1},style:{chart:{backgroundColor:`#999999`,layout:{labels:{showDefaultLabels:!1},rects:{stroke:`#6A6A6A`}},legend:{backgroundColor:`transparent`}}}},userConfig:N.value.skeletonConfig??{}})),{loading:hn,FINAL_DATASET:gn,manualLoading:_n}=ue({...$e(E),FINAL_CONFIG:N,prepareConfig:Sn,skeletonDataset:E.config?.skeletonDataset??[{name:`_`,value:53,color:`#CACACA90`,children:[{name:`_`,value:21},{name:`_`,value:13},{name:`_`,value:8},{name:`_`,value:5},{name:`_`,value:3},{name:`_`,value:2},{name:`_`,value:1}]}],skeletonConfig:re({defaultConfig:N.value,userConfig:mn.value})}),{userOptionsVisible:vn,setUserOptionsVisibility:yn,keepUserOptionState:bn}=Me({config:N.value}),{svgRef:xn}=Ne({config:z.value.title});function Sn(){return he(E.config,mt,Le)}let Cn=f(E.config);nt(()=>E.config,(e,t)=>{let n=f(e),r=n!==Cn;Cn=n;let i=Sn();r?(hn.value||(N.value=i),vn.value=!N.value.userOptions.showOnChartHover,en.value+=1,tn.value+=1,nn.value+=1,V.value.showTable=N.value.table.show,V.value.showTooltip=F.value.show,V.value.showZoom=z.value.zoom?.show??!1):(N.value.style.chart.tooltip=i.style.chart.tooltip,V.value.showTooltip=N.value.style.chart.tooltip.show)},{deep:!0});let{isPrinting:wn,isImaging:Tn,generatePdf:En,generateImage:Dn}=Te({elementId:`treemap_${O.value}`,fileName:z.value.title.text||`vue-ui-treemap`,options:N.value.userOptions.print}),On=p(()=>N.value.userOptions.show&&!z.value.title.text),kn=p(()=>ce(N.value.customPalette)),V=x({showTable:N.value.table.show,showTooltip:F.value.show,showZoom:z.value.zoom?.show??!1});nt(N,()=>{V.value={showTable:N.value.table.show,showTooltip:F.value.show,showZoom:z.value.zoom?.show??!1}},{immediate:!0});let An=x({height:z.value.height,width:z.value.width});function jn(e){let t=A.value,n=An.value.height;return!t||!n?e:e*(n/t.getBoundingClientRect().height)}function Mn(){if(!rn.value||X.value.length<=1)return 0;let e=rn.value,t=getComputedStyle(e);return jn(e.offsetHeight+parseFloat(t.marginTop||`0`)+parseFloat(t.marginBottom||`0`)+parseFloat(t.paddingTop||`0`)+parseFloat(t.paddingBottom||`0`))}let H=p(()=>{let e=z.value.padding,t=An.value.width,n=An.value.height,r=Mn(),i=e.left,a=t-e.right,o=e.top,s=n-e.bottom-r;return{left:i,top:o,right:a,bottom:s,width:a-i,height:Math.max(0,s-o),vbWidth:t,vbHeight:n-r,offsetY:r}}),U=x(te(gn.value)),W=x(U.value),Nn=C(/* @__PURE__ */ new Map);nt([U,()=>N.value],()=>{cn.value=null,ln.value=/* @__PURE__ */ new Map},{deep:!0}),nt(()=>k.value,()=>{cn.value=null,ln.value=/* @__PURE__ */ new Map,Ln(),nn.value+=1,tn.value+=1},{deep:!0}),nt([()=>An.value.width,()=>An.value.height],()=>{ln.value=/* @__PURE__ */ new Map});function Pn(e){Array.isArray(e)&&e.forEach((e,t)=>{e.id||=d(),e.sourceColor===void 0&&(e.sourceColor=u(e.color)||null);let n=e.sourceColor||Nn.value.get(e.id)||kn.value[t]||l[t]||l[t%l.length];n=u(n),Nn.value.set(e.id,n),e.color=n,Fn(e,n)})}function Fn(e,t){Array.isArray(e.children)&&e.children.forEach(n=>{n.id||=d(),n.parentId=e.id,n.sourceColor===void 0&&(n.sourceColor=u(n.color)||null);let r=n.sourceColor||t;n.color=r,Fn(n,r)})}function In(e){let t=Y(e);for(;t?.parentId;)t=Y(t.parentId);return t?.id??null}function Ln(){let e=U.value.filter(e=>!k.value.includes(e.id));if(!j.value.length){W.value=e;return}let t=j.value[j.value.length-1],n=Y(t);if(!n){j.value=[],W.value=e;return}let r=In(n.id);r&&k.value.includes(r)?(j.value=[],W.value=e):W.value=[n]}nt(()=>gn.value,()=>{U.value=te(gn.value),Pn(U.value),Ln(),nn.value+=1,tn.value+=1},{deep:!0,immediate:!0,flush:`post`});let Rn=C(null),zn=C(null);Ye(()=>{an.value=!0,Vn()});let Bn=p(()=>N.value.debug);Ye(()=>{ht[`chart-background`]&&Bn.value&&console.warn(`VueUiTreemap does not support the #chart-background slot.`)});function Vn(){if(le(E.dataset)&&ee({componentName:`VueUiTreemap`,type:`dataset`,debug:Bn.value}),Pn(U.value),le(E.dataset)||(_n.value=N.value.loading),N.value.responsive){let e=De(()=>{let{width:e,height:t}=Oe({chart:A.value,title:z.value.title.text?Xt.value:null,legend:I.value.show?Zt.value:null,source:Qt.value,noTitle:$t.value});requestAnimationFrame(()=>{An.value.width=e,An.value.height=t-12})});Rn.value&&(zn.value&&Rn.value.unobserve(zn.value),Rn.value.disconnect()),Rn.value=new ResizeObserver(e),zn.value=A.value.parentNode,Rn.value.observe(zn.value)}}Je(()=>{Rn.value&&(zn.value&&Rn.value.unobserve(zn.value),Rn.value.disconnect())});let Hn=p(()=>W.value.map((e,t)=>({...e,color:u(e.color)||kn.value[t]||l[t]||l[t%l.length]})).filter(e=>!k.value.includes(e.id))),Un=p(()=>U.value.filter(e=>!k.value.includes(e.id)).map(e=>e.value||0).reduce((e,t)=>e+t,0)),Wn=p({get(){let e=[...Hn.value];return R.value.sorted&&(e=[...Hn.value].sort((e,t)=>t.value-e.value)),e.map(e=>({...e}))},set(e){return e}});function Gn(e,t){return e.value/t}function Kn(e,t,n){let r=R.value.rects.colorRatio-Gn(t,n);return c(e,r<0?0:r)}function qn(e){return Array.isArray(e.children)&&e.children.length>0}function Jn(e){return[...e].sort((e,t)=>{let n=qn(e),r=qn(t);if(n!==r)return n-r;let i=Number(e.value)||0;return(Number(t.value)||0)-i})}function Yn(e,t,n,r,i){return Jn(e).map((e,a)=>{let o=e.sourceColor||u(e.color)||u(t)||kn.value[a]||l[a]||l[a%l.length],s=e.sourceColor?e.sourceColor:Kn(o,e,r),c=Gn(e,r),d=i??e.parentId??e.id,f=Array.isArray(e.children)&&e.children.length&&e.children.reduce((e,t)=>e+(Number(t.value)||0),0)||1;return{...e,color:s,proportion:c,parentName:n,rootId:d,children:Array.isArray(e.children)&&e.children.length?Yn(e.children,o,e.name,f,d):void 0}})}function Xn(e){let t=lr(e),n=Zn(e),r=t*.55,i=t*.55,a=t*1.05,o=t*1.05,s=t*.35,c=n?a+o+s:t*.45,l=e.x0+r,u=e.x1-r,d=e.y0+c,f=e.y1-i;return u<=l||f<=d?null:{x0:l,y0:d,x1:u,y1:f}}function Zn(e){return L.value.hideUnderProportion===0||Qn(e)}function Qn(e){let t=Number(L.value.hideUnderProportion);return!Number.isFinite(t)||t<=0||e.proportion>t}function $n(e,t,n=0,r=null){if(!Array.isArray(e)||!e.length)return[];let i=e.map(e=>{let{children:t,...n}=e;return{...n}}),a=new Map(e.map(e=>[e.id,Array.isArray(e.children)?e.children:[]])),o=new Map(e.map(e=>[e.id,e])),s=lt(i,t),c=[];for(let e of s){let t=a.get(e.id)||[],i=o.get(e.id),s={...e,depth:n,parentId:r??e.parentId??null,color:i?.color??e.color??null,children:t,isVisibleNode:!0,showLabel:Zn(e)};if(c.push(s),t.length){let r=Xn(s);r&&c.push(...$n(t,r,n+1,e.id))}}return c}let er=p(()=>{let e=W.value.length?W.value:Wn.value,t=e.map(e=>Number(e.value)||0).reduce((e,t)=>e+t,0)||1;return $n(e.map((e,n)=>{let r=e.children?e.children.reduce((e,t)=>e+(Number(t.value)||0),0):e.value,{children:i,...a}=e,o=e.sourceColor||u(e.color)||Nn.value.get(e.id)||kn.value[n]||l[n]||l[n%l.length],s=e.sourceColor?e.sourceColor:Kn(o,e,t);return{...a,id:e.id||d(),parentId:e.parentId??null,name:e.name,value:e.value,color:s,proportion:(Number(e.value)||0)/t,children:Array.isArray(e.children)&&e.children.length?Yn(e.children,o,e.name,r||1):void 0}}),{x0:H.value.left,y0:H.value.top,x1:H.value.left+H.value.width,y1:H.value.top+H.value.height})}),G=p(()=>er.value);function tr(e){return(Z.value&&Z.value.id===e.id?R.value.rects.selected.strokeWidth:R.value.rects.strokeWidth)*Gr.value}function K({y0:e,y1:t}){return t-e<=0?1e-4:Math.round((t-e)*1e4)/1e4}function q({x0:e,x1:t}){return t-e<=0?1e-4:Math.round((t-e)*1e4)/1e4}function nr(){let e=L.value,t=Number(e.minFontSize),n=Number(e.fontSize),r=Math.max(0,Math.min(Number.isFinite(t)?t:0,Number.isFinite(n)?n:0));return{lowerBound:r,upperBound:Math.max(r,Number.isFinite(n)?n:r)}}function rr(e){let t=Math.min(4,Math.max(e*.25,.5));return{paddingX:t,paddingTop:t}}function ir(e,t){let{paddingX:n,paddingTop:r}=rr(t),i=t*1.1;return{x:e.x0+n,y:e.y0+r,width:Math.max(q(e)-n*2,0),height:Math.max(K(e)-r*2,0),lineHeight:i}}function ar(e,t){return ne(L.value.formatter,e.value,a({p:L.value.prefix,v:e.value,s:L.value.suffix,r:F.value.roundingValue}),{datapoint:e,seriesIndex:t})}function or(e,t){let n=ar(e,t);return Array.isArray(e.children)&&e.children.length?[`${e.name} (${n})`]:[`${e.name}`,n].filter(e=>`${e}`.length)}function sr(e,t,n){let r=or(e,n),i=ir(e,t);return!r.length||i.width<=0||i.height<=0||r.length*i.lineHeight>i.height?!1:r.every((e,n)=>Si(e,t,n===0?500:400)<=i.width)}function cr(e,t,n,r){let i=or(e,t),a=Math.max(1,...i.map(e=>String(e).length)),o=Math.min(18,Math.max(10,Math.ceil(a*.7))),s=Math.max(1,i.length),c=Math.max(q(e)-1,1e-4),l=Math.max(K(e)-1,1e-4),u=c/(o*.58),d=l/(s*1.35);return Math.max(n,Math.min(r,u,d))}function lr(e,t){let{lowerBound:n,upperBound:r}=nr(),i=Math.max(1e-4,Math.min(q(e),K(e))),a=Math.max(n,Math.min(r,i*.9)),o=Math.min(a,cr(e,t,n,r));if(sr(e,o,t)||!sr(e,n,t))return o;let s=n,c=o,l=n;for(let n=0;n<8;n+=1){let n=(s+c)/2;sr(e,n,t)?(l=n,s=n):c=n}let u=Math.max(n,o*.7);return l>=u?l:o}function ur(e){Jt.value=e,Yt.value+=1}let J=p(()=>({x:0,y:0,width:H.value.vbWidth,height:H.value.vbHeight}));function Y(e,t=U.value){for(let n of t){if(n.id===e)return n;if(n.children){let t=Y(e,n.children);if(t)return t}}return null}function dr(e){let t=[],n=Y(e);for(;n&&n.parentId;){let e=Y(n.parentId);if(!e)break;t.unshift(e.id),n=e}return t}let fr=p(()=>j.value.length>0);function pr(){W.value=U.value.slice(),j.value=[],D(`selectDatapoint`,void 0)}function mr(){return j.value[j.value.length-1]??null}function hr(e,t,n){j.value=[...dr(e.id),e.id],W.value=[e],N.value.events.datapointClick&&N.value.events.datapointClick({datapoint:t??e,seriesIndex:n}),D(`selectDatapoint`,t??e)}function gr(e,t){let n=mr();if(!n){pr();return}let r=Y(n);if(!r?.parentId){N.value.events.datapointClick&&N.value.events.datapointClick({datapoint:e,seriesIndex:t}),pr();return}let i=Y(r.parentId);i?(j.value=[...dr(i.id),i.id],W.value=[i],N.value.events.datapointClick&&N.value.events.datapointClick({datapoint:e,seriesIndex:t}),D(`selectDatapoint`,e)):pr()}function _r(e,t){if(!e){pr();return}let n=Y(e.id);n&&(mr()===n.id?gr(e,t):hr(n,e,t))}function vr(e){return e?mr()===e.id:!1}let X=p(()=>{let e=[{id:null,label:`All`}];if(j.value.length>0){let t=Y(j.value[j.value.length-1]),n=[];for(;t;)n.unshift(t),t=t.parentId?Y(t.parentId):null;for(let t of n)e.push({id:t.id,label:t.name,node:t})}return e}),Z=C(null),yr=p(()=>U.value.map((e,t)=>({...e,color:u(e.color)||kn.value[t]||l[t]||l[t%l.length],shape:`square`})).sort((e,t)=>t.value-e.value).map((e,t)=>{let n=e.value/U.value.map(e=>e.value).reduce((e,t)=>e+t,0);return{...e,proportion:n,isSegregated:k.value.includes(e.id),segregate:()=>Cr(e),opacity:k.value.includes(e.id)?.5:1,display:`${e.name}${I.value.showPercentage||I.value.showValue?`: `:``}${I.value.showValue?ne(L.value.formatter,e.value,a({p:L.value.prefix,v:e.value,s:L.value.suffix,r:I.value.roundingValue}),{datapoint:e}):``}${I.value.showPercentage?k.value.includes(e.id)?`${I.value.showValue?` (`:``}- %${I.value.showValue?`)`:``}`:`${I.value.showValue?` (`:``}${isNaN(e.value/Un.value)?`-`:(e.value/Un.value*100).toFixed(I.value.roundingPercentage)}%${I.value.showValue?`)`:``}`:``}`}})),br=p(()=>({cy:`treemap-div-legend`,backgroundColor:I.value.backgroundColor,color:I.value.color,fontSize:I.value.fontSize,paddingBottom:12,fontWeight:I.value.bold?`bold`:``})),xr=p(()=>k.value.length===yr.value.length);function Sr(){k.value.length?k.value=[]:yr.value.forEach(e=>{k.value.push(e.id)}),D(`selectLegend`,U.value.filter(e=>!k.value.includes(e.id)))}function Cr(e){Z.value=null,k.value.includes(e.id)?k.value=k.value.filter(t=>t!==e.id):k.value.length<E.dataset.length-1&&k.value.push(e.id),D(`selectLegend`,U.value.filter(e=>!k.value.includes(e.id)))}function wr(e){return U.value.length?U.value.find(t=>t.name===e)||(Bn.value&&console.warn(`VueUiTreemap - Series name not found "${e}"`),null):(Bn.value&&console.warn(`VueUiTreemap - There are no series to show.`),null)}function Tr(e){let t=wr(e);t!==null&&k.value.includes(t.id)&&Cr({id:t.id})}function Er(e){let t=wr(e);t!==null&&(k.value.includes(t.id)||Cr({id:t.id}))}function Dr({datapoint:e,seriesIndex:t}){Z.value=null,Kt.value=!1,M.value=null,dn.value=`pointer`,N.value.events.datapointLeave&&N.value.events.datapointLeave({datapoint:e,seriesIndex:t})}let Or=x(null);function kr({datapoint:e,seriesIndex:t,triggerMode:n=`pointer`}){if(xr.value||n===`pointer`&&zr.value)return;N.value.events.datapointEnter&&N.value.events.datapointEnter({datapoint:e,seriesIndex:t}),M.value=t,dn.value=n,Z.value=e,Or.value={datapoint:e,seriesIndex:t,config:N.value,series:Hn.value};let r=F.value.customFormat;if(s(r)&&ae(()=>r({seriesIndex:t,datapoint:e,series:Hn.value,config:N.value})))qt.value=r({seriesIndex:t,datapoint:e,series:Hn.value,config:N.value});else{let n=``;n+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${F.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`,n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`,n+=`<b>${ne(L.value.formatter,e.value,a({p:L.value.prefix,v:e.value,s:L.value.suffix,r:F.value.roundingValue}),{datapoint:e,seriesIndex:t})}</b>`,qt.value=`<div>${n}</div>`}Kt.value=!0}let Q=p(()=>({head:G.value.map(e=>({name:e.name,color:e.color})),body:G.value.map(e=>e.value)}));function Ar(e=null){Ge(()=>{let t=Q.value.head.map((e,t)=>[[e.name],[Q.value.body[t]],[isNaN(Q.value.body[t]/Un.value)?`-`:Q.value.body[t]/Un.value*100]]),n=[[z.value.title.text],[z.value.title.subtitle.text],[[``],[`val`],[`%`]]].concat(t),r=o(n);e?e(r):ie({csvContent:r,title:z.value.title.text||`vue-ui-treemap`})})}let jr=p(()=>{let e=[N.value.table.columnNames.series,N.value.table.columnNames.value,N.value.table.columnNames.percentage],t=Q.value.head.map((e,t)=>{let n=ne(L.value.formatter,Q.value.body[t],a({p:L.value.prefix,v:Q.value.body[t],s:L.value.suffix,r:N.value.table.td.roundingValue}));return[{color:e.color,name:e.name,shape:`square`},n,isNaN(Q.value.body[t]/Un.value)?`-`:a({v:Q.value.body[t]/Un.value*100,s:`%`,r:N.value.table.td.roundingPercentage})]}),n={th:{backgroundColor:N.value.table.th.backgroundColor,color:N.value.table.th.color,outline:N.value.table.th.outline},td:{backgroundColor:N.value.table.td.backgroundColor,color:N.value.table.td.color,outline:N.value.table.td.outline},breakpoint:N.value.table.responsiveBreakpoint};return{colNames:[N.value.table.columnNames.series,N.value.table.columnNames.value],head:e,body:t,config:n}});function Mr(){return G.value}function Nr(){V.value.showTable=!V.value.showTable}function Pr(){V.value.showTooltip=!V.value.showTooltip}function Fr(){V.value.showZoom=!V.value.showZoom}let Ir=x(!1);function Lr(){Ir.value=!Ir.value}let Rr=p(()=>!Ir.value&&V.value.showZoom),zr=x(null),Br=x(!1),{viewBox:$,resetZoom:Vr,isZoom:Hr,setInitialViewBox:Ur,scale:Wr}=Ie(xn,{x:J.value.x,y:J.value.y,width:Math.max(10,J.value.width),height:Math.max(10,J.value.height)},1,Rr),Gr=p(()=>1/Wr.value),Kr=p(()=>Math.min(1,L.value.fontSizeZoomFactor/Math.max(Wr.value,1e-4))),qr=p(()=>`scale(${Kr.value})`),Jr=p(()=>V.value.showZoom||Hr.value);nt([()=>J.value.x,()=>J.value.y,()=>J.value.width,()=>J.value.height],()=>{Ge(()=>{Ur({x:J.value.x,y:J.value.y,width:Math.max(10,J.value.width),height:Math.max(10,J.value.height)})})},{immediate:!0});function Yr(e){Rr.value&&(e.button===void 0||e.button===0)&&(zr.value={x:e.clientX,y:e.clientY},Br.value=!1)}function Xr(e){if(!Rr.value||!zr.value)return;let t=e.clientX-zr.value.x,n=e.clientY-zr.value.y;Math.hypot(t,n)>Wt&&(Br.value=!0)}function Zr(){zr.value=null,Br.value&&window.setTimeout(()=>{Br.value=!1},0)}function Qr(e,t){Br.value||_r(e,t)}let $r=x(null);function ei(e){$r.value=e}function ti(){$r.value=null}let ni=ge(A,()=>z.value.title.text),ri=p(()=>xe({config:N,style:z,mutableConfig:V,dialog:pt,accordion:ct,isFullscreen:Jt,parent:A,maxWidth:800,isCursorPointer:B}));nt(()=>V.value.showTable,e=>be(e,N,on));function ii(){V.value.showTable=!1,sn.value&&sn.value.setTableIconState(!1)}let ai=p(()=>yr.value.map(e=>({...e,name:e.display}))),oi=p(()=>z.value.backgroundColor),si=p(()=>z.value.title),{isCallbackImaging:ci,isCallbackSvg:li,generateSvg:ui,onGenerateImage:di}=ye({svg:xn,title:si,legend:I,legendItems:ai,backgroundColor:oi,getSvgCallback:()=>N.value.userOptions.callbacks.svg,generateImage:Dn});function fi(e,t){let n=lr(e,t),{paddingX:r,paddingTop:i}=rr(n);return{fontSize:n,paddingX:r,paddingTop:i,lineHeight:n*1.1}}function pi(e){return oe(e.color??z.value.backgroundColor)}function mi({availableHeight:e,lineHeight:t,lineIndex:n}){if(n===0)return 1/0;let r=e/(n+1);return r<1e-4?-1/0:t<=0?1/0:r/t}function hi(){return Number(L.value.hideUnderProportion)===0}function gi(e){let t=Kr.value;return e.alwaysShowAllLines?`scale(${Math.min(t,e.allLinesScaleCap)})`:qr.value}function _i({rect:e,seriesIndex:t}){if(!e||!L.value.showDefaultLabels||!Zn(e))return null;let{fontSize:n,paddingX:r,paddingTop:i,lineHeight:a}=fi(e,t),o=pi(e),s=or(e,t).map(e=>String(e??``)),c=ir(e,n);if(!s.some(Boolean)||c.width<=0||c.height<=0)return null;let l=hi(),u=l?Math.max(1e-4,Math.min(1,c.height/Math.max(s.length*a,1e-4))):1,d=`treemap_clip_${O.value}_${e.id}`,f=e.x0,ee=e.y0,te=Math.max(q(e),0),ne=Math.max(K(e),0);return{key:vi(e),clipId:d,clipX:f,clipY:ee,clipWidth:te,clipHeight:ne,translate:`translate(${e.x0}, ${e.y0})`,alwaysShowAllLines:l,allLinesScaleCap:u,lines:s.map((t,s)=>({key:`${e.id}_${s}`,text:t,x:r,y:i+a*s,maxZoomFactor:mi({availableHeight:c.height,lineHeight:a,lineIndex:s}),fill:o,fontSize:n,fontFamily:N.value.style.fontFamily,fontWeight:s===0?500:400}))}}function vi(e){return`${e.id}`}let yi=p(()=>ht.rect||hn.value||!L.value.showDefaultLabels||xr.value?[]:G.value.map((e,t)=>e.showLabel?_i({rect:e,seriesIndex:t}):null).filter(Boolean)),bi;function xi(){return typeof document>`u`?null:(bi||=document.createElement(`canvas`),bi.getContext(`2d`))}function Si(e,t,n=400){let r=xi();return r?(r.font=`${n} ${t}px ${N.value.style.fontFamily}`,r.measureText(String(e)).width):e.length*t*.6}function Ci(e){let t=R.value.rects.borderRadius,n=q(e),r=K(e);return Math.min(t,Math.min(n,r)/6)}async function wi(){D(`copyAlt`,{config:N.value,dataset:G.value}),N.value.userOptions.callbacks.altCopy?await Promise.resolve(N.value.userOptions.callbacks.altCopy({config:N.value,dataset:G.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Ti(){M.value=null,fn.value=!0}function Ei(){M.value=null,dn.value=`pointer`,Kt.value=!1,Z.value=null,fn.value=!1}function Di(e){if(!xn.value||Ir.value||document.activeElement!==xn.value||!G.value.length||xr.value)return;let t=[`ArrowLeft`,`ArrowUp`].includes(e.key),n=[`ArrowRight`,`ArrowDown`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){M.value=null,dn.value=`pointer`,Kt.value=!1,Z.value=null;return}if(r){if(M.value===null)return;let e=G.value[M.value];if(!e)return;_r(e,M.value);return}let a=M.value,o=Z.value?G.value.findIndex(e=>e.id===Z.value.id):null,s=a!==null&&a>=0&&a<G.value.length,c=o!==null&&o>=0&&o<G.value.length;s?n?(a+=1,a>=G.value.length&&(a=0)):t&&(--a,a<0&&(a=G.value.length-1)):c?(a=n?o+1:o-1,a>=G.value.length&&(a=0),a<0&&(a=G.value.length-1)):a=n?0:G.value.length-1;let l=G.value[a];l&&(Oi(a),kr({datapoint:l,seriesIndex:a,triggerMode:`keyboard`}))}function Oi(e){if(!Number.isFinite(e)||!xn.value)return;let t=G.value[e];if(!t)return;let n=t.x0+q(t)/2,r=t.y0+K(t)/2,i=xn.value.getBoundingClientRect();un.value={x:i.left+(n-$.value.x)/$.value.width*i.width,y:i.top+(r-$.value.y)/$.value.height*i.height}}let ki=p(()=>({headers:jr.value?.colNames??[],rows:jr.value?.body??[]})),Ai=p(()=>z.value.color);me({getData:Mr,getImage:ni,generateCsv:Ar,generateImage:Dn,generateSvg:ui,generatePdf:En,hideSeries:Er,showSeries:Tr,toggleTable:Nr,toggleTooltip:Pr,toggleZoom:Fr,toggleAnnotator:Lr,toggleFullscreen:ur,resetZoom:Vr,copyAlt:wi});let ji=p(()=>Pe(N.value.userOptions?.annotator?.followZoom,$.value));return(e,i)=>(b(),g(`div`,{ref_key:`treemapChart`,ref:A,class:Ke(`vue-data-ui-component vue-ui-treemap ${Jt.value?`vue-data-ui-wrapper-fullscreen`:``} ${N.value.useCssAnimation?``:`vue-ui-dna`}`),style:qe(`font-family:${N.value.style.fontFamily};width:100%; ${N.value.responsive?`height: 100%;`:``} text-align:center;background:${z.value.backgroundColor}`),id:`treemap_${O.value}`,onMouseenter:i[3]||=()=>w(yn)(!0),onMouseleave:i[4]||=()=>w(yn)(!1)},[_(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[_(`p`,null,Qe(N.value.a11y.translations.keyboardNavigation),1)],8,vt),ki.value?.rows?.length?(b(),m(je,{key:0,uid:O.value,head:ki.value.headers,body:ki.value.rows,notice:N.value.a11y.translations.tableAvailable,caption:N.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):h(``,!0),P.value.buttons.annotator?(b(),m(w(st),We({key:1},w(n)(P.value.annotator),{svgRef:w(xn),followZoom:N.value.userOptions?.annotator?.followZoom,annotationViewport:ji.value,backgroundColor:z.value.backgroundColor,color:z.value.color,active:Ir.value,isCursorPointer:B.value,palette:P.value.annotatorPalette,onClose:Lr}),Be({_:2},[Xe(w(r),n=>({name:n,fn:T(r=>[S(e.$slots,n,y(v(w(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`followZoom`,`annotationViewport`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):h(``,!0),On.value?(b(),g(`div`,{key:2,ref_key:`noTitle`,ref:$t,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):h(``,!0),z.value.title.text?(b(),g(`div`,{key:3,ref_key:`chartTitle`,ref:Xt,style:qe(`width:100%;background:${z.value.backgroundColor};padding-bottom:6px`)},[(b(),m(ve,{key:`title_${en.value}`,config:{title:{cy:`treemap-div-title`,...z.value.title},subtitle:{cy:`treemap-div-subtitle`,...z.value.title.subtitle}}},null,8,[`config`]))],4)):h(``,!0),_(`div`,{id:`legend-top-${O.value}`},null,8,yt),P.value.show&&gt.value&&(w(bn)||w(vn))?(b(),m(w(dt),We({ref_key:`userOptionsRef`,ref:sn,key:`user_option_${Yt.value}`,backgroundColor:z.value.backgroundColor,color:z.value.color,isPrinting:w(wn),isImaging:w(Tn),uid:O.value,hasTooltip:P.value.buttons.tooltip&&F.value.show,isFullscreen:Jt.value,isTooltip:V.value.showTooltip,chartElement:A.value},w(Ce)(P.value,`pdf csv img svg table fullscreen altCopy annotator zoom`),{isAnnotation:Ir.value,tableDialog:N.value.table.useDialog,isCursorPointer:B.value,isZoom:V.value.showZoom,onToggleFullscreen:ur,onGeneratePdf:w(En),onGenerateCsv:Ar,onGenerateImage:w(di),onGenerateSvg:w(ui),onToggleTable:Nr,onToggleTooltip:Pr,onToggleAnnotator:Lr,onToggleZoom:Fr,onCopyAlt:wi,style:{visibility:w(bn)?w(vn)?`visible`:`hidden`:`visible`}}),Be({_:2},[Xe(w(Se)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionZoom optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:T(n=>[S(e.$slots,t,y(v(w(we)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasTooltip`,`isFullscreen`,`isTooltip`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`isZoom`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):h(``,!0),X.value.length>1?(b(),g(`nav`,{key:5,class:`vue-ui-treemap-breadcrumbs`,"data-dom-to-png-ignore":``,ref_key:`breadcrumbsNav`,ref:rn},[(b(!0),g(Re,null,Xe(X.value,(t,n)=>(b(),g(`span`,{role:`button`,tabindex:n<X.value.length-1?0:void 0,key:t.id||`root`,onClick:e=>n===X.value.length-1?()=>{}:_r(t.node),onKeydown:[rt(it(e=>n===X.value.length-1?void 0:_r(t.node),[`prevent`]),[`enter`]),rt(it(e=>n===X.value.length-1?void 0:_r(t.node),[`prevent`]),[`space`])],class:`vue-ui-treemap-crumb`,"data-last-crumb":n===X.value.length-1,style:qe({color:z.value.color,cursor:B.value?`pointer`:`default`}),onMouseenter:e=>ei(n),onMouseleave:ti,onFocus:e=>ei(n),onBlur:ti},[_(`span`,xt,[_(`span`,St,[S(e.$slots,`breadcrumb-label`,We({ref_for:!0},{crumb:t,isRoot:n===0,isFocus:$r.value===n}),()=>[n===0?(b(),g(`div`,Ct,[He(_e,{name:$r.value===0?`homeFilled`:`home`,stroke:z.value.color},null,8,[`name`,`stroke`])])):(b(),g(Re,{key:1},[Ve(Qe(t.label),1)],64))],!0)]),n<X.value.length-1?(b(),g(`span`,wt,[S(e.$slots,`breadcrumb-arrow`,{},()=>[i[5]||=Ve(` › `,-1)],!0)])):h(``,!0)])],44,bt))),128))],512)):h(``,!0),_(`div`,Tt,[(b(),g(`svg`,{ref_key:`svgRef`,ref:xn,xmlns:w(se),"aria-describedby":`chart-instructions-${O.value}`,class:Ke({"vue-data-ui-fullscreen--on":Jt.value,"vue-data-ui-fulscreen--off":!Jt.value,"vue-data-ui-zoom-plus":!fr.value,"vue-data-ui-zoom-minus":fr.value,"vue-data-ui-no-transition":!w(pn),loading:w(hn)}),viewBox:`${w($).x} ${w($).y} ${w($).width<=0?10:w($).width} ${w($).height<=0?10:w($).height}`,style:qe(`max-width:100%; overflow:${Jr.value?`hidden`:`visible`}; background:transparent;color:${z.value.color}`),tabindex:`0`,onFocus:Ti,onBlur:Ei,onKeydown:Di,onPointerdown:Yr,onPointermove:Xr,onPointerup:Zr,onPointercancel:Zr,onPointerleave:Zr},[He(w(ft)),S(e.$slots,`svg-underlayer`,y(v({svg:H.value,isZoom:fr.value,rect:Z.value,config:N.value,isPrintingImg:w(wn)||w(Tn)||w(ci),isPrintingSvg:w(li)})),void 0,!0),(b(!0),g(Re,null,Xe(G.value,(e,t)=>(b(),g(`g`,{key:`tgrad_${e.id}`},[R.value.rects.gradient.show?(b(),g(`defs`,Dt,[He(ke,{t:`radial`,id:`tgrad_${e.id}`,gradientTransform:`translate(-1, -1.000001) scale(2, 2)`,stops:[[`18%`,e.color,1],[`100%`,w(c)(e.color,R.value.rects.gradient.intensity/100),1]]},null,8,[`id`,`stops`])])):h(``,!0)]))),128)),_(`g`,null,[(b(!0),g(Re,null,Xe(G.value,(e,t)=>(b(),g(`g`,{key:`rect_${e.id}_${e.depth}`},[_(`rect`,{x:e.x0,y:e.y0,height:K(e),width:q(e),fill:Gt.value?e.color??z.value.backgroundColor:R.value.rects.gradient.show?xr.value?z.value.backgroundColor:`url(#tgrad_${e.id})`:e.color??z.value.backgroundColor,rx:w(Wr)>1?Ci(e)*Gr.value:Ci(e),stroke:Z.value&&Z.value.id===e.id?R.value.rects.selected.stroke:R.value.rects.stroke,"stroke-width":tr(e),onClick:it(n=>Qr(e,t),[`stop`]),onMouseenter:()=>kr({datapoint:e,seriesIndex:t,triggerMode:`pointer`}),onMouseleave:n=>Dr({datapoint:e,seriesIndex:t}),style:qe(`opacity:${Z.value?Z.value.id===e.id?1:R.value.rects.selected.unselectedOpacity:1}`),class:Ke([`vue-ui-treemap-rect`,w(pn)?`vue-data-ui-transition`:``,vr(e)?`vue-data-ui-zoom-minus`:`vue-data-ui-zoom-plus`])},null,46,Ot)]))),128)),(b(!0),g(Re,null,Xe(yi.value,e=>(b(),g(`g`,{key:e.key,style:{"pointer-events":`none`}},[_(`defs`,null,[_(`clipPath`,{id:e.clipId,clipPathUnits:`userSpaceOnUse`},[_(`rect`,{class:Ke({"vue-data-ui-transition":w(pn)}),x:e.clipX,y:e.clipY,width:e.clipWidth,height:e.clipHeight},null,10,At)],8,kt)]),_(`g`,{"clip-path":`url(#${e.clipId})`},[_(`g`,{transform:e.translate},[_(`g`,{class:Ke({"vue-data-ui-transition":w(pn)}),transform:gi(e)},[(b(!0),g(Re,null,Xe(e.lines,t=>(b(),g(Re,{key:t.key},[t.text&&(e.alwaysShowAllLines||Kr.value<=t.maxZoomFactor)?(b(),g(`text`,{key:0,x:t.x,y:t.y,fill:t.fill,"font-size":t.fontSize,"font-family":t.fontFamily,"font-weight":t.fontWeight,class:Ke({"vue-data-ui-transition":w(pn)}),"text-anchor":`start`,"dominant-baseline":`text-before-edge`},Qe(t.text),11,Pt)):h(``,!0)],64))),128))],10,Nt)],8,Mt)],8,jt)]))),128)),e.$slots.rect?(b(),g(`g`,Ft,[(b(!0),g(Re,null,Xe(G.value,(t,n)=>(b(),g(`g`,{key:`slot_${t.id}_${t.depth}`},[(b(),g(`foreignObject`,{x:t.x0,y:t.y0,height:K(t),width:q(t),class:`vue-ui-treemap-cell-foreignObject`,style:{"pointer-events":`none`,overflow:`hidden`}},[_(`div`,Lt,[w(hn)?h(``,!0):S(e.$slots,`rect`,We({ref_for:!0},{rect:{...t,height:K(t),width:q(t),isSelected:!Z.value||Z.value.id===t.id},shouldShow:Qn(t)||fr.value,fontSize:lr(t,n),isZoom:fr.value,textColor:w(oe)(t.color)}),void 0,!0,0)])],8,It))]))),128))])):h(``,!0)]),S(e.$slots,`svg`,y(v({svg:H.value,isZoom:fr.value,rect:Z.value,config:N.value,isPrintingImg:w(wn)||w(Tn)||w(ci),isPrintingSvg:w(li)})),void 0,!0)],46,Et)),w(Hr)?(b(),g(`div`,Rt,[S(e.$slots,`reset-action`,{reset:w(Vr)},()=>[_(`button`,{"data-cy-reset":``,tabindex:`0`,role:`button`,class:`vue-data-ui-refresh-button`,style:qe({background:z.value.backgroundColor,cursor:B.value?`pointer`:`default`}),onClick:i[0]||=e=>w(Vr)(!0)},[He(_e,{name:`refresh`,stroke:z.value.color},null,8,[`stroke`])],4)],!0)])):h(``,!0),e.$slots.hint?(b(),g(`div`,zt,[S(e.$slots,`hint`,y(v({hint:N.value.a11y.translations.keyboardNavigation,isVisible:fn.value})),void 0,!0)])):h(``,!0)]),e.$slots.watermark?(b(),g(`div`,Bt,[S(e.$slots,`watermark`,y(v({isPrinting:w(wn)||w(Tn)||w(ci)||w(li)})),void 0,!0)])):h(``,!0),_(`div`,{id:`legend-bottom-${O.value}`},null,8,Vt),an.value&&(I.value.show||e.$slots.legend)?(b(),m(ze,{key:7,to:I.value.position===`top`?`#legend-top-${O.value}`:`#legend-bottom-${O.value}`},[_(`div`,{ref_key:`chartLegend`,ref:Zt},[S(e.$slots,`legend`,{legend:yr.value},()=>[I.value.show?(b(),m(Fe,{key:`legend_${nn.value}`,legendSet:yr.value,config:br.value,id:`treemap_legend_${O.value}`,isCursorPointer:B.value,onClickMarker:i[1]||=({legend:e})=>Cr(e)},{item:T(({legend:e,index:t})=>[w(hn)?h(``,!0):(b(),g(`div`,{key:0,onClick:t=>Cr(e),style:qe(`opacity:${k.value.includes(e.id)?.5:1}`)},Qe(e.display),13,Ht))]),legendToggle:T(()=>[yr.value.length>2&&I.value.selectAllToggle.show&&!w(hn)?(b(),m(Ae,{key:0,backgroundColor:I.value.selectAllToggle.backgroundColor,color:I.value.selectAllToggle.color,fontSize:I.value.fontSize,checked:k.value.length>0,isCursorPointer:B.value,onToggle:Sr},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):h(``,!0)]),_:1},8,[`legendSet`,`config`,`id`,`isCursorPointer`])):h(``,!0)],!0)],512)],8,[`to`])):h(``,!0),e.$slots.source?(b(),g(`div`,{key:8,ref_key:`source`,ref:Qt,dir:`auto`},[S(e.$slots,`source`,{},void 0,!0)],512)):h(``,!0),He(w(ut),{teleportTo:F.value.teleportTo,show:V.value.showTooltip&&Kt.value,backgroundColor:F.value.backgroundColor,color:F.value.color,fontSize:F.value.fontSize,borderRadius:F.value.borderRadius,borderColor:F.value.borderColor,borderWidth:F.value.borderWidth,backgroundOpacity:F.value.backgroundOpacity,position:F.value.position,offsetX:F.value.offsetX,offsetY:F.value.offsetY,parent:A.value,content:qt.value,isFullscreen:Jt.value,isCustom:w(s)(F.value.customFormat),smooth:F.value.smooth,backdropFilter:F.value.backdropFilter,smoothForce:F.value.smoothForce,smoothSnapThreshold:F.value.smoothSnapThreshold,isA11yMode:dn.value===`keyboard`,a11yPosition:un.value},{"tooltip-before":T(()=>[S(e.$slots,`tooltip-before`,y(v({...Or.value})),void 0,!0)]),tooltip:T(()=>[S(e.$slots,`tooltip`,y(v({...Or.value})),void 0,!0)]),"tooltip-after":T(()=>[S(e.$slots,`tooltip-after`,y(v({...Or.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),gt.value&&P.value.buttons.table?(b(),m(Ze(ri.value.component),We({key:9},ri.value.props,{ref_key:`tableUnit`,ref:on,onClose:ii}),Be({content:T(()=>[(b(),m(w(ot),{key:`table_${tn.value}`,colNames:jr.value.colNames,head:jr.value.head,body:jr.value.body,config:jr.value.config,title:N.value.table.useDialog?``:ri.value.title,withCloseButton:!N.value.table.useDialog,isCursorPointer:B.value,onClose:ii},{th:T(({th:e})=>[_(`div`,Ut,Qe(e),1)]),td:T(({td:e})=>[Ve(Qe(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[N.value.table.useDialog?{name:`title`,fn:T(()=>[Ve(Qe(ri.value.title),1)]),key:`0`}:void 0,N.value.table.useDialog?{name:`actions`,fn:T(()=>[_(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:i[2]||=e=>Ar(P.value.callbacks.csv),style:qe({cursor:B.value?`pointer`:`default`})},[He(_e,{name:`fileCsv`,stroke:ri.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):h(``,!0),S(e.$slots,`skeleton`,{},()=>[w(hn)?(b(),m(de,{key:0})):h(``,!0)],!0)],46,_t))}},[[`__scopeId`,`data-v-5a29df3b`]]);export{gt as n,Gt as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-C3FbHv4N.js";import{$ as a,D as o,Dt as s,Ht as c,Jt as l,S as ee,X as te,Yt as ne,Zt as re,at as ie,i as ae,in as oe,n as se,nt as ce,pt as le,r as ue,t as de,w as fe,yt as pe,zt as me}from"./lib-rPeBMZrn.js";import{n as he,t as ge}from"./BaseScanner-8NdoBs7B.js";import{n as _e,t as ve}from"./useHints-C-TwxM0Y.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as be}from"./resolveChartConfig-CIhClE5R.js";import{t as xe}from"./chartImage-DPGnEuYM.js";import{n as Se}from"./Title-BliHuXfT.js";import{t as Ce}from"./useChartExport-BZts4KFb.js";import{n as we,t as Te}from"./tableIntegration-CNoJ1CIY.js";import{n as Ee,r as De,t as Oe}from"./userOptionsSlots-CWtXN5Q6.js";import{t as ke}from"./usePrinter-DVf3YcG5.js";import{t as Ae}from"./useTransitions-ChGGrtrv.js";import{t as je}from"./Shape-CRe8woTu.js";import{c as Me}from"./canvas-lib-22VpOI4_.js";import{t as Ne}from"./useResponsive-CENUxfEL.js";import{t as Pe}from"./DefGrad-DKMq1REY.js";import{t as Fe}from"./BaseLegendToggle-BIzyyI1h.js";import{t as Ie}from"./A11yDataTable-DWNlWXzs.js";import{t as Le}from"./useUserOptionState-CXlFnwPv.js";import{t as Re}from"./useChartAccessibility-DOMuYJfm.js";import{t as ze}from"./labelUtils-CdtU-yB_.js";import{t as Be}from"./Legend-DM0ClX3D.js";import{t as Ve}from"./usePrefersMotion-XLHwega2.js";import{t as He}from"./vue_ui_waffle-BbBLSluB.js";import{Fragment as u,Teleport as Ue,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,createSlots as We,createTextVNode as Ge,createVNode as Ke,defineAsyncComponent as g,guardReactiveProps as qe,mergeProps as Je,nextTick as Ye,normalizeClass as _,normalizeProps as Xe,normalizeStyle as v,onBeforeUnmount as Ze,onMounted as Qe,openBlock as y,ref as b,renderList as x,renderSlot as S,resolveDynamicComponent as $e,shallowRef as et,toDisplayString as tt,toRefs as nt,unref as C,useSlots as rt,watch as it,withCtx as w}from"vue";var at=/* @__PURE__ */ e({default:()=>Nt}),ot=[`id`],st=[`id`],ct=[`id`],lt={style:{position:`relative`}},ut=[`xmlns`,`aria-describedby`,`viewBox`],dt=[`id`],ft=[`x`,`y`,`height`,`width`],pt=[`height`,`width`],mt={key:0},ht=[`d`,`stroke`,`stroke-width`,`filter`],gt=[`d`,`fill`,`stroke`,`stroke-width`,`filter`],_t={key:0},vt=[`d`,`fill`,`filter`],yt=[`rx`,`x`,`y`,`height`,`width`,`stroke`,`stroke-width`,`filter`],bt=[`rx`,`x`,`y`,`height`,`width`,`fill`,`stroke`,`stroke-width`,`filter`],xt={key:0},St=[`rx`,`x`,`y`,`height`,`width`,`fill`,`filter`],Ct=[`points`,`stroke`,`stroke-width`,`stroke-linejoin`],wt=[`textContent`,`x`,`y`,`font-size`,`fill`,`filter`],Tt=[`d`,`onMouseover`,`onMouseleave`,`onClick`],Et=[`x`,`y`,`height`,`width`,`onMouseover`,`onMouseleave`,`onClick`],Dt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},Ot={key:5,class:`vue-data-ui-watermark`},kt=[`id`],At=[`onClick`],jt={key:0},Mt={key:1},Nt=/*#__PURE__*/ ye({__name:`vue-ui-waffle`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`selectLegend`,`copyAlt`],setup(e,{expose:ye,emit:at}){let Nt=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),Pt=g(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),Ft=g(()=>import(`./DataTable-Dof6yhO7.js`)),It=g(()=>import(`./vue-ui-accordion-E8TJfFeK.js`).then(e=>e.n)),Lt=g(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),Rt=g(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),zt=g(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),Bt=g(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_waffle:Vt}=i(),Ht=Ve(),T=e,Ut=rt(),Wt=d({get(){return!!T.dataset&&T.dataset.length},set(e){return e}}),E=b(te()),Gt=b(!1),Kt=b(``),D=b(null),qt=b(0),Jt=b(null),Yt=b(null),Xt=b(null),Zt=b(null),Qt=b(null),$t=b(0),en=b(0),tn=b(0),nn=b(!1),rn=b(null),an=b(null),O=b(null),on=b({x:0,y:0}),sn=b(`pointer`),cn=b(!1),k=b(vn()),A=d(()=>k.value.userOptions),j=d(()=>k.value.style.chart.tooltip),M=d(()=>k.value.style.chart.legend),N=d(()=>k.value.style.chart.layout.rect),P=d(()=>k.value.style.chart.layout.grid),F=d(()=>k.value.style.chart.layout),I=d(()=>k.value.style.chart),{transitionEnabled:L}=Ae({config:()=>k.value.transitions,dataset:()=>T.dataset});_e({config:()=>k.value,dataset:()=>T.dataset,component:`VueUiWaffle`,rules:[ve.singleSeries,ve.emptyArray,{test:e=>e.length>6,message:[`👀 The number of series is > 6. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]}]});let ln=d(()=>k.value.userOptions.useCursorPointer),un=d(()=>oe({defaultConfig:{useCustomCells:!1,userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,layout:{labels:{captions:{show:!1}},rect:{stroke:`#999999`}},legend:{backgroundColor:`transparent`,showValue:!1,showPercentage:!1}}}},userConfig:k.value.skeletonConfig??{}})),{loading:dn,FINAL_DATASET:fn,manualLoading:pn}=he({...nt(T),FINAL_CONFIG:k,prepareConfig:vn,callback:()=>{Promise.resolve().then(async()=>{W.value=Nn()})},skeletonDataset:T.config?.skeletonDataset??[{name:``,values:[1],color:`#AAAAAA`},{name:``,values:[1],color:`#BABABA`},{name:``,values:[1],color:`#CACACA`}],skeletonConfig:oe({defaultConfig:k.value,userConfig:un.value})}),{userOptionsVisible:mn,setUserOptionsVisibility:hn,keepUserOptionState:gn}=Le({config:k.value}),{svgRef:_n}=Re({config:I.value.title});function vn(){return be(T.config,Vt,He)}let yn=re(T.config);it(()=>T.config,(e,t)=>{let n=re(e),r=n!==yn;yn=n;let i=vn();r?(dn.value||(k.value=i),mn.value=!k.value.userOptions.showOnChartHover,Sn(),$t.value+=1,en.value+=1,tn.value+=1,z.value.showTable=k.value.table.show,z.value.showTooltip=j.value.show):(k.value.style.chart.tooltip=i.style.chart.tooltip,z.value.showTooltip=k.value.style.chart.tooltip.show)},{deep:!0});let R=et(null),bn=et(null),xn=d(()=>k.value.debug);function Sn(){if(me(T.dataset)?(ie({componentName:`VueUiWaffle`,type:`dataset`,debug:xn.value}),Wt.value=!1,pn.value=!0):xn.value&&T.dataset.forEach((e,t)=>{pe({datasetObject:e,requiredAttributes:[`name`,`values`]}).forEach(e=>{ie({componentName:`VueUiWaffle`,type:`datasetSerieAttribute`,property:e,index:t})})}),me(T.dataset)||(pn.value=k.value.loading),k.value.responsive){let e=Me(()=>{let{width:e,height:t}=Ne({chart:Jt.value,title:I.value.title.text?Yt.value:null,legend:M.value.show?Xt.value:null,source:Zt.value,noTitle:Qt.value});requestAnimationFrame(()=>{B.value.width=e,B.value.height=t,V.value.width=e,V.value.height=t})});R.value&&(bn.value&&R.value.unobserve(bn.value),R.value.disconnect()),R.value=new ResizeObserver(e),bn.value=Jt.value.parentNode,R.value.observe(bn.value)}}Qe(()=>{nn.value=!0,Sn()}),Ze(()=>{R.value&&(bn.value&&R.value.unobserve(bn.value),R.value.disconnect())});let{isPrinting:Cn,isImaging:wn,generatePdf:Tn,generateImage:En}=ke({elementId:`vue-ui-waffle_${E.value}`,fileName:I.value.title.text||`vue-ui-waffle`,options:k.value.userOptions.print}),Dn=d(()=>k.value.userOptions.show&&!I.value.title.text),On=d(()=>fe(k.value.customPalette)),z=b({showTable:k.value.table.show,showTooltip:j.value.show});it(k,()=>{z.value={showTable:k.value.table.show,showTooltip:j.value.show}},{immediate:!0});let B=b({height:512,width:512}),V=b({top:0,left:0,height:512,width:512}),H=d(()=>(V.value.width-P.value.size*P.value.spaceBetween)/P.value.size),U=d(()=>(V.value.height-P.value.size*P.value.spaceBetween)/P.value.size),kn=d(()=>Math.max(1e-4,V.value.width/P.value.size)),An=d(()=>Math.max(1e-4,V.value.height/P.value.size));function jn(e){let t=P.value.size*P.value.size,n=e.reduce((e,t)=>e+t,0),r=e.map(e=>e/n*t),i=r.map(Math.floor),a=r.map(e=>e%1),o=t-i.reduce((e,t)=>e+t,0);for(;o>0;){let e=a.indexOf(Math.max(...a));i[e]+=1,a[e]=0,--o}return i}let Mn=b(!1);function Nn(){return Mn.value=fn.value.flatMap(e=>e.values.reduce((e,t)=>e+t,0)).reduce((e,t)=>e+t,0)===0,fn.value.map((e,t)=>({...e,color:ee(e.color)||On.value[t]||c[t]||c[t%c.length],uid:`serie_${t}`,absoluteIndex:t}))}let Pn=d(()=>Nn()),W=b(Pn.value);it(()=>T.dataset,e=>{Array.isArray(e)&&e.length>0&&(pn.value=!1)},{immediate:!0}),it(()=>T.dataset,e=>{W.value=Nn()},{deep:!0});let Fn=d(()=>jn(W.value.filter((e,t)=>!J.value.includes(e.uid)).map((e,t)=>Mn.value?1:(e.values||[]).reduce((e,t)=>e+t,0)))),In=d(()=>jn(W.value.map((e,t)=>Mn.value?1:(e.values||[]).reduce((e,t)=>e+t)))),Ln=d(()=>P.value.size**2),G=d(()=>(xn.value&&fn.value.forEach((e,t)=>{[null,void 0].includes(e.values)&&ie({componentName:`VueUiWaffle`,type:`datasetSerieAttribute`,property:`values (number[])`,index:t})}),W.value.filter((e,t)=>!J.value.includes(e.uid)).map((e,t)=>{let n=Fn.value[t];return{absoluteIndex:e.absoluteIndex,uid:e.uid,name:e.name,color:e.color,value:(e.values||[]).reduce((e,t)=>e+t,0),absoluteValues:e.values||[],squareCount:n,proportion:n/Ln.value}}))),Rn=d(()=>W.value.map((e,t)=>{let n=In.value[t];return{absoluteIndex:e.absoluteIndex,uid:e.uid,name:e.name,color:e.color,value:(e.values||[]).reduce((e,t)=>e+t,0),absoluteValues:e.values||[],squareCount:n,proportion:n/Ln.value}}));function zn(){return Rn.value.map(e=>({name:e.name,color:e.color,value:e.value,squareCount:e.squareCount,proportion:e.proportion}))}let Bn=d(()=>{let e=0;return G.value.map((t,n)=>{let r=e,i=r+t.squareCount,a=[];for(let e=Math.floor(r);e<Math.floor(i);e+=1)a.push(e);return e=i,{...t,start:r,rects:a}})}),K=d(()=>Bn.value.flatMap((e,t)=>e.rects.map((n,r)=>({isFirst:r===0,isLongEnough:n.length>2,name:e.name,color:e.color,value:e.value,serieIndex:t,absoluteStartIndex:r<3,serieId:e.uid,...e}))).map((e,t)=>({...e,isAbsoluteFirst:t%P.value.size===0}))),q=d(()=>{let e=[];for(let t=0;t<P.value.size;t+=1)for(let n=0;n<P.value.size;n+=1)e.push({isStartOfLine:n===0,position:P.value.vertical?t:n,x:(P.value.vertical?t:n)*(H.value+P.value.spaceBetween),y:(P.value.vertical?n:t)*(U.value+P.value.spaceBetween)+V.value.top});return e}),J=b([]),Vn=b(!1),Hn=b(Object.create(null)),Un=b(Object.create(null)),Y=b(0);function Wn(e,t){W.value=W.value.map(n=>n.uid===e?{...n,values:[t]}:n)}function Gn(e,t){let n=t.find(t=>t.uid===e);return n?(n.values||[]).reduce((e,t)=>e+t,0):0}function Kn(e){let t=!1;Hn.value[e]&&(cancelAnimationFrame(Hn.value[e]),delete Hn.value[e],t=!0),Un.value[e]&&(cancelAnimationFrame(Un.value[e]),delete Un.value[e],t=!0),t&&(Y.value=Math.max(0,Y.value-1),Vn.value=Y.value>0)}function qn({seriesId:e,fromValue:t,toValue:n,mode:r}){Kn(e),Y.value+=1,Vn.value=!0;let i=t;return new Promise(a=>{function o(){if(r===`increase`){if(i>=n){Wn(e,n),--Y.value,Y.value<=0&&(Vn.value=!1),delete Hn.value[e],a();return}i+=n*.025,i>n&&(i=n),Wn(e,i),Hn.value[e]=requestAnimationFrame(o)}else{if(i<=t/100){Wn(e,0),--Y.value,Y.value<=0&&(Vn.value=!1),delete Un.value[e],a();return}i/=1.15,Wn(e,i),Un.value[e]=requestAnimationFrame(o)}}o()})}function Jn(){W.value=Pn.value;let e=J.value.length>0;k.value.useAnimation?e?[...J.value].forEach(e=>{Yn(e,!0)}):X.value.map(e=>e.uid).forEach(e=>{Yn(e,!0)}):e?J.value=[]:J.value=X.value.map(e=>e.uid)}function Yn(e,t=!1){if(Mn.value&&!t)return;let n=t||J.value.length<X.value.length-1&&X.value.length>1;if(!k.value.useAnimation){J.value.includes(e)?J.value=J.value.filter(t=>t!==e):n&&J.value.push(e);return}let r=Gn(e,Pn.value),i=Gn(e,W.value);if(i!==0||r!==0){if(J.value.includes(e)){if(J.value=J.value.filter(t=>t!==e),Ht.value){Kn(e),Wn(e,r),cr(`selectLegend`,G.value.map(e=>({name:e.name,color:e.color,value:e.value,proportion:e.proportion})));return}qn({seriesId:e,fromValue:i,toValue:r,mode:`increase`}).then(()=>{cr(`selectLegend`,G.value.map(e=>({name:e.name,color:e.color,value:e.value,proportion:e.proportion})))})}else n&&(Ht.value?(Kn(e),J.value.includes(e)||J.value.push(e),Wn(e,0),cr(`selectLegend`,G.value.map(e=>({name:e.name,color:e.color,value:e.value,proportion:e.proportion})))):qn({seriesId:e,fromValue:i,toValue:0,mode:`decrease`}).then(()=>{J.value.includes(e)||J.value.push(e),Wn(e,0),cr(`selectLegend`,G.value.map(e=>({name:e.name,color:e.color,value:e.value,proportion:e.proportion})))}))}}function Xn(e){return Rn.value.length?Rn.value.find(t=>t.name===e)||(xn.value&&console.warn(`VueUiWaffle - Series name not found "${e}"`),null):(xn.value&&console.warn(`VueUiWaffle - There are no series to show.`),null)}function Zn(e){let t=Xn(e);t!==null&&J.value.includes(t.uid)&&Yn(t.uid)}function Qn(e){let t=Xn(e);t!==null&&(J.value.includes(t.uid)||Yn(t.uid))}function $n({val:e,percentage:t,showVal:n,showPercentage:r,config:i}){return ze({config:i,val:e,percentage:t,showVal:n,showPercentage:r})}let X=d(()=>W.value.map((e,t)=>{let n=(e.values||[]).reduce((e,t)=>e+t,0),r=n/W.value.map(e=>(e.values||[]).reduce((e,t)=>e+t,0)).reduce((e,t)=>e+t,0);return{name:e.name,color:e.color||On[t]||c[t]||c[t%c.length],value:n,proportion:r,uid:e.uid,shape:`square`}}).map((e,t)=>{let n=$n({val:ae(F.value.labels.dataLabels.formatter,e.value,a({p:F.value.labels.dataLabels.prefix,v:e.value,s:F.value.labels.dataLabels.suffix,r:M.value.roundingValue}),{datapoint:e,index:t}),percentage:isNaN(e.value/Z.value)?`-`:a({v:e.value/Z.value*100,s:`%`,r:M.value.roundingPercentage}),showVal:M.value.showValue,showPercentage:M.value.showPercentage,config:M.value});return{...e,opacity:J.value.includes(e.uid)?.5:1,segregate:()=>Yn(e.uid),isSegregated:J.value.includes(e.uid),display:`${e.name}${M.value.showPercentage||M.value.showValue?`: `:``}${n}`}})),er=d(()=>({cy:`waffle-div-legend`,backgroundColor:M.value.backgroundColor,color:M.value.color,fontSize:M.value.fontSize,paddingBottom:12,fontWeight:M.value.bold?`bold`:``})),Z=d(()=>G.value.map(e=>e.value).reduce((e,t)=>e+t,0)),tr=b(null),nr=b(null),Q=d(()=>{let e=/* @__PURE__ */ new Map;return K.value.forEach((t,n)=>{e.has(t.serieIndex)?e.get(t.serieIndex).rectIndexes.push(n):e.set(t.serieIndex,{serieIndex:t.serieIndex,absoluteIndex:t.absoluteIndex,serieId:t.serieId,name:t.name,color:t.color,value:t.value,proportion:t.proportion,rectIndexes:[n]})}),Array.from(e.values()).sort((e,t)=>e.serieIndex-t.serieIndex)});function rr(e){return Q.value.find(t=>t.serieIndex===e)||null}function ir(e){let t=rr(e);return!t||!t.rectIndexes.length?null:t.rectIndexes[0]}function ar(e){let t=K.value[e];k.value.events.datapointClick&&k.value.events.datapointClick({datapoint:t,seriesIndex:t.serieIndex})}function or(e){let t=K.value[e];k.value.events.datapointLeave&&k.value.events.datapointLeave({datapoint:t,seriesIndex:t.serieIndex}),nr.value=null,Gt.value=!1,D.value=null,O.value=null,sn.value=`pointer`}function sr(e,t=`pointer`){if(J.value.length===T.dataset.length)return;let n=K.value[e];if(!n)return;sn.value=t,O.value=n.serieIndex,tr.value={datapoint:n,seriesIndex:n.absoluteIndex,series:W.value,config:k.value},k.value.events.datapointEnter&&nr.value!==n.serieIndex&&k.value.events.datapointEnter({datapoint:n,seriesIndex:n.serieIndex}),nr.value=n.serieIndex,Gt.value=!0,D.value=n.serieIndex;let r=j.value.customFormat;if(s(r)&&le(()=>r({seriesIndex:n.absoluteIndex,datapoint:n,series:W.value,config:k.value})))Kt.value=r({seriesIndex:n.absoluteIndex,datapoint:n,series:W.value,config:k.value});else{let e=``;e+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${j.value.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`,e+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${Ut.pattern?`<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${E.value}_${n.absoluteIndex})"/>`:``}</svg>`,e+=`<b>${$n({config:j.value,showVal:j.value.showValue,showPercentage:j.value.showPercentage,val:`<span>${ae(F.value.labels.dataLabels.formatter,n.value,a({p:F.value.labels.dataLabels.prefix,v:n.value,s:F.value.labels.dataLabels.suffix,r:j.value.roundingValue}),{datapoint:n,seriesIndex:n.absoluteIndex,series:W.value})}</span>`,percentage:`<span>${a({v:Mn.value?1/fn.value.length*100:n.value/Z.value*100,s:`%`,r:j.value.roundingPercentage})}</span>`})}</b></div>`,Kt.value=e}}let cr=at,$=d(()=>({head:G.value.map(e=>({name:e.name,color:e.color})),body:G.value.map(e=>e.value)}));function lr(e){return k.value.useBlurOnHover&&![null,void 0].includes(D.value)&&D.value!==e?`url(#blur_${E.value})`:``}function ur(e){return[null,void 0].includes(D.value)||D.value===e?{opacity:1}:{opacity:N.value.selection.unselectedOpacity}}function dr(e){return e.length<=3?e:e.filter((t,n)=>{let r=e[(n-1+e.length)%e.length],i=e[(n+1)%e.length],a=r.x===t.x&&t.x===i.x,o=r.y===t.y&&t.y===i.y;return!a&&!o})}function fr(e){if(!e.length)return[];let t=new Set(e.map(({row:e,col:t})=>`${e}:${t}`)),n=[],r=/* @__PURE__ */ new Set,i=[[-1,0],[0,1],[1,0],[0,-1]];e.forEach(e=>{let a=`${e.row}:${e.col}`;if(r.has(a))return;let o=[],s=[e];for(r.add(a);s.length;){let e=s.shift();o.push(e),i.forEach(([n,i])=>{let a=e.row+n,o=e.col+i,c=`${a}:${o}`;t.has(c)&&!r.has(c)&&(r.add(c),s.push({row:a,col:o}))})}n.push(o)});let a=[];return n.forEach(e=>{let t=new Set(e.map(({row:e,col:t})=>`${e}:${t}`)),n=[];e.forEach(({row:e,col:r})=>{t.has(`${e-1}:${r}`)||n.push({start:{x:r,y:e},end:{x:r+1,y:e}}),t.has(`${e}:${r+1}`)||n.push({start:{x:r+1,y:e},end:{x:r+1,y:e+1}}),t.has(`${e+1}:${r}`)||n.push({start:{x:r+1,y:e+1},end:{x:r,y:e+1}}),t.has(`${e}:${r-1}`)||n.push({start:{x:r,y:e+1},end:{x:r,y:e}})});let r=/* @__PURE__ */ new Map,i=e=>`${e.start.x}:${e.start.y}>${e.end.x}:${e.end.y}`,o=e=>`${e.x}:${e.y}`,s=new Set(n.map(i));for(n.forEach(e=>{let t=o(e.start);r.has(t)||r.set(t,[]),r.get(t).push(e)});s.size;){let e=s.values().next().value,t=n.find(t=>i(t)===e),c=t.start,l=[c],ee=t;for(;ee;){s.delete(i(ee));let e=ee.end;if(o(e)===o(c))break;l.push(e),ee=(r.get(o(e))||[]).find(e=>s.has(i(e)))}l.length>=4&&a.push(dr(l))}}),a}function pr(e){let t=P.value.size,n=P.value.vertical,r=[];return K.value.forEach((i,a)=>{if(i.serieIndex!==e)return;let o=Math.floor(a/t),s=a%t;r.push({row:n?s:o,col:n?o:s})}),r}function mr(e){let t=kn.value,n=An.value;return fr(pr(e)).map(e=>e.map(({x:e,y:r})=>({x:e*t,y:V.value.top+r*n})))}function hr(e){return e.map(({x:e,y:t})=>`${e},${t}`).join(` `)}function gr(e){return e.map(e=>{if(!e.length)return``;let[t,...n]=e,r=n.map(({x:e,y:t})=>`L ${e} ${t}`).join(` `);return`M ${t.x} ${t.y} ${r} Z`}).filter(Boolean).join(` `)}let _r=d(()=>!N.value.selection?.wrap?.show||[null,void 0].includes(D.value)?[]:mr(D.value).map(hr)),vr=d(()=>{if(!N.value.merged)return[];let e=/* @__PURE__ */ new Map;return K.value.forEach((t,n)=>{e.has(t.serieIndex)||e.set(t.serieIndex,{serieIndex:t.serieIndex,absoluteIndex:t.absoluteIndex,color:t.color,gradientIndex:n,rectIndex:n})}),Array.from(e.values()).map(e=>({...e,d:gr(mr(e.serieIndex))})).filter(e=>e.d)});function yr(e,t){return F.value.labels.captions.show?K.value.length&&!Vn.value&&!P.value.vertical&&(K.value[e].isFirst&&t.position<P.value.size-2||K.value[e].isAbsoluteFirst&&e%P.value.size===0&&K.value[e].absoluteStartIndex):!1}function br(e,t=null){let n=ae(F.value.labels.dataLabels.formatter,K.value[e].value,a({p:F.value.labels.dataLabels.prefix,v:K.value[e].value,s:F.value.labels.dataLabels.suffix,r:F.value.labels.captions.roundingValue}),{datapoint:K.value[e],position:t}),r=a({v:K.value[e].proportion*100,s:`%`,r:F.value.labels.captions.roundingPercentage}),i=(F.value.labels.captions.serieNameAbbreviation?se({source:K.value[e].name,length:F.value.labels.captions.serieNameMaxAbbreviationSize}):K.value[e].name)+(F.value.labels.captions.showPercentage||F.value.labels.captions.showValue?`:`:``);return`${F.value.labels.captions.showSerieName?i:``} ${$n({val:n,percentage:r,showVal:F.value.labels.captions.showValue,showPercentage:F.value.labels.captions.showPercentage,config:F.value.labels.dataLabels})}`}function xr(e=null){Ye(()=>{let t=$.value.head.map((e,t)=>[[e.name],[$.value.body[t]],[isNaN($.value.body[t]/Z.value)?`-`:$.value.body[t]/Z.value*100]]),n=[[I.value.title.text],[I.value.title.subtitle.text],[[``],[`val`],[`%`]]].concat(t),r=o(n);e?e(r):ce({csvContent:r,title:I.value.title.text||`vue-ui-waffle`})})}let Sr=d(()=>({head:[`__SUM__`,ae(F.value.labels.dataLabels.formatter,Z.value,a({p:F.value.labels.dataLabels.prefix,v:Z.value,s:F.value.labels.dataLabels.suffix,r:k.value.table.td.roundingValue})),`100%`],body:$.value.head.map((e,t)=>[{color:e.color,name:e.name},ae(F.value.labels.dataLabels.formatter,$.value.body[t],a({p:F.value.labels.dataLabels.prefix,v:$.value.body[t],s:F.value.labels.dataLabels.suffix,r:k.value.table.td.roundingValue})),isNaN($.value.body[t]/Z.value)?`-`:a({v:$.value.body[t]/Z.value*100,s:`%`,r:k.value.table.td.roundingPercentage})]),config:{th:{backgroundColor:k.value.table.th.backgroundColor,color:k.value.table.th.color,outline:k.value.table.th.outline},td:{backgroundColor:k.value.table.td.backgroundColor,color:k.value.table.td.color,outline:k.value.table.td.outline},shape:`square`,breakpoint:k.value.table.responsiveBreakpoint},colNames:[k.value.table.columnNames.series,k.value.table.columnNames.value,k.value.table.columnNames.percentage]})),Cr=b(!1);function wr(e){Cr.value=e,qt.value+=1}function Tr(){z.value.showTable=!z.value.showTable}function Er(){z.value.showTooltip=!z.value.showTooltip}let Dr=b(!1);function Or(){Dr.value=!Dr.value}let kr=xe(Jt,()=>I.value.title.text),Ar=d(()=>Te({config:k,style:I,mutableConfig:z,dialog:Bt,accordion:It,isFullscreen:Cr,parent:Jt,maxWidth:500,isCursorPointer:ln}));it(()=>z.value.showTable,e=>we(e,k,rn));function jr(){z.value.showTable=!1,an.value&&an.value.setTableIconState(!1)}let Mr=d(()=>X.value.map(e=>({...e,name:e.display}))),Nr=d(()=>I.value.backgroundColor),Pr=d(()=>I.value.title),{isCallbackImaging:Fr,isCallbackSvg:Ir,generateSvg:Lr,onGenerateImage:Rr}=Ce({svg:_n,title:Pr,legend:M,legendItems:Mr,backgroundColor:Nr,getSvgCallback:()=>k.value.userOptions.callbacks.svg,generateImage:En});async function zr(){cr(`copyAlt`,{config:k.value,dataset:Rn.value}),k.value.userOptions.callbacks.altCopy?await Promise.resolve(k.value.userOptions.callbacks.altCopy({config:k.value,dataset:Rn.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Br(){O.value=null,cn.value=!0}function Vr(){O.value=null,sn.value=`pointer`,Gt.value=!1,D.value=null,nr.value=null,cn.value=!1}function Hr(e){if(!_n.value||Dr.value||document.activeElement!==_n.value||!Q.value.length||J.value.length===T.dataset.length)return;let t=[`ArrowLeft`,`ArrowUp`].includes(e.key),n=[`ArrowRight`,`ArrowDown`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){O.value=null,sn.value=`pointer`,Gt.value=!1,D.value=null,nr.value=null;return}if(r){if(O.value===null)return;let e=ir(O.value);if(e===null)return;ar(e);return}let a=Q.value.findIndex(e=>e.serieIndex===O.value),o=null;if(o=a===-1?n?Q.value[0]:Q.value[Q.value.length-1]:n?Q.value[(a+1)%Q.value.length]:Q.value[(a-1+Q.value.length)%Q.value.length],!o)return;let s=ir(o.serieIndex);s!==null&&(Ur(o.serieIndex),sr(s,`keyboard`))}function Ur(e){if(!Number.isFinite(e)||!_n.value)return;let t=rr(e);if(!t||!t.rectIndexes.length)return;let n=t.rectIndexes.map(e=>{let t=q.value[e];return t?{x:t.x+P.value.spaceBetween/2+kn.value/2,y:t.y+P.value.spaceBetween/2+An.value/2}:null}).filter(Boolean);if(!n.length)return;let r=Math.min(...n.map(e=>e.x)),i=Math.max(...n.map(e=>e.x)),a=Math.min(...n.map(e=>e.y)),o=Math.max(...n.map(e=>e.y)),s=(r+i)/2,c=(a+o)/2,l=_n.value.getBoundingClientRect();on.value={x:l.left+s/B.value.width*l.width,y:l.top+c/B.value.height*l.height}}let Wr=d(()=>({headers:Sr.value?.colNames??[],rows:Sr.value?.body??[]}));return ye({getData:zn,getImage:kr,generatePdf:Tn,generateCsv:xr,generateImage:En,generateSvg:Lr,hideSeries:Qn,showSeries:Zn,toggleTable:Tr,toggleTooltip:Er,toggleAnnotator:Or,toggleFullscreen:wr,copyAlt:zr}),(e,i)=>(y(),m(`div`,{class:_(`vue-data-ui-component vue-ui-waffle ${Cr.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`waffleChart`,ref:Jt,id:`vue-ui-waffle_${E.value}`,style:v(`font-family:${k.value.style.fontFamily};width:100%; text-align:center;background:${I.value.backgroundColor};${k.value.responsive?`height: 100%`:``}`),onMouseenter:i[2]||=()=>C(hn)(!0),onMouseleave:i[3]||=()=>C(hn)(!1)},[h(`div`,{id:`chart-instructions-${E.value}`,class:`sr-only`},[h(`p`,null,tt(k.value.a11y.translations.keyboardNavigation),1)],8,st),Wr.value?.rows?.length?(y(),f(Ie,{key:0,uid:E.value,head:Wr.value.headers,body:Wr.value.rows,notice:k.value.a11y.translations.tableAvailable,caption:k.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):p(``,!0),A.value.buttons.annotator?(y(),f(C(Rt),Je({key:1},C(n)(A.value.annotator),{svgRef:C(_n),backgroundColor:I.value.backgroundColor,color:I.value.color,active:Dr.value,isCursorPointer:ln.value,palette:A.value.annotatorPalette,onClose:Or}),We({_:2},[x(C(r),n=>({name:n,fn:w(r=>[S(e.$slots,n,Xe(qe(C(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):p(``,!0),Dn.value?(y(),m(`div`,{key:2,ref_key:`noTitle`,ref:Qt,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):p(``,!0),I.value.title.text?(y(),m(`div`,{key:3,ref_key:`chartTitle`,ref:Yt,style:`width:100%;background:transparent;padding-bottom:12px`},[(y(),f(Se,{key:`title_${$t.value}`,config:{title:{cy:`waffle-title`,...I.value.title},subtitle:{cy:`waffle-subtitle`,...I.value.title.subtitle}}},null,8,[`config`]))],512)):p(``,!0),h(`div`,{id:`legend-top-${E.value}`},null,8,ct),A.value.show&&Wt.value&&(C(gn)||C(mn))?(y(),f(C(Lt),Je({ref_key:`userOptionsRef`,ref:an,key:`user_options_${qt.value}`,backgroundColor:I.value.backgroundColor,color:I.value.color,isPrinting:C(Cn),isImaging:C(wn),uid:E.value,hasTooltip:A.value.buttons.tooltip&&j.value.show,isFullscreen:Cr.value,isTooltip:z.value.showTooltip,chartElement:Jt.value},C(De)(A.value,`pdf csv img svg table fullscreen altCopy annotator`),{isAnnotation:Dr.value,tableDialog:k.value.table.useDialog,isCursorPointer:ln.value,onToggleFullscreen:wr,onGeneratePdf:C(Tn),onGenerateCsv:xr,onGenerateImage:C(Rr),onGenerateSvg:C(Lr),onToggleTable:Tr,onToggleTooltip:Er,onToggleAnnotator:Or,onCopyAlt:zr,style:{visibility:C(gn)?C(mn)?`visible`:`hidden`:`visible`}}),We({_:2},[x(C(Ee)(e.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:w(n=>[S(e.$slots,t,Xe(qe(C(Oe)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasTooltip`,`isFullscreen`,`isTooltip`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):p(``,!0),h(`div`,lt,[(y(),m(`svg`,{ref_key:`svgRef`,ref:_n,xmlns:C(de),"aria-describedby":`chart-instructions-${E.value}`,class:_({"vue-data-ui-fullscreen--on":Cr.value,"vue-data-ui-fulscreen--off":!Cr.value,"vue-data-ui-no-transition":!C(L)}),tabindex:`0`,viewBox:`0 0 ${B.value.width<=0?10:B.value.width} ${B.value.height<=0?10:B.value.height}`,style:v(`max-width:100%;overflow:visible;background:transparent;color:${I.value.color}`),onFocus:Br,onBlur:Vr,onKeydown:Hr},[Ke(C(zt)),S(e.$slots,`svg-underlayer`,{svg:{...B.value,isPrintingImg:C(Cn)||C(wn)||C(Fr),isPrintingSvg:C(Ir)}},void 0,!0),h(`defs`,null,[(y(!0),m(u,null,x(K.value,(e,t)=>(y(),f(Pe,{t:`radial`,cx:`50%`,cy:`50%`,r:`50%`,fx:`50%`,fy:`50%`,id:`gradient_${E.value}_${t}`,key:`gradient_${E.value}_${t}`,stops:[[`0%`,C(l)(C(ne)(e.color,.05),100-N.value.gradientIntensity),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128))]),h(`defs`,null,[h(`filter`,{id:`blur_${E.value}`,x:`-50%`,y:`-50%`,width:`200%`,height:`200%`},[...i[4]||=[h(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:2},null,-1),h(`feColorMatrix`,{type:`saturate`,values:`0`},null,-1)]],8,dt)]),k.value.useCustomCells&&K.value.length&&e.$slots.cell?(y(!0),m(u,{key:0},x(q.value,(t,n)=>(y(),m(`foreignObject`,{x:t.x,y:t.y,height:U.value<=0?1e-4:U.value,width:H.value<=0?1e-4:H.value,class:`vue-ui-waffle-custom-cell-foreignObject`},[S(e.$slots,`cell`,Je({ref_for:!0},{cell:{...t,color:K.value[n].color,height:Math.max(0,U.value),width:Math.max(0,H.value),...K.value[n]},isSelected:[null,void 0].includes(D.value)?!0:K.value[n].serieIndex===D.value}),void 0,!0)],8,ft))),256)):p(``,!0),!K.value.length&&!k.value.useCustomCells?(y(),m(`rect`,{key:1,x:12,y:12,height:V.value.height-24,width:V.value.width-24,rx:3,fill:`none`,stroke:`black`},null,8,pt)):K.value.length&&!k.value.useCustomCells?(y(),m(u,{key:2},[e.$slots.pattern?(y(),m(`g`,mt,[(y(!0),m(u,null,x(Pn.value,t=>(y(),m(`defs`,null,[S(e.$slots,`pattern`,Je({ref_for:!0},{seriesIndex:t.absoluteIndex,patternId:`pattern_${E.value}_${t.absoluteIndex}`}),void 0,!0)]))),256))])):p(``,!0),N.value.merged?(y(),m(u,{key:1},[(y(!0),m(u,null,x(vr.value,e=>(y(),m(`path`,{key:`merged-underlayer-${e.serieIndex}`,d:e.d,fill:`white`,"fill-rule":`evenodd`,stroke:N.value.stroke,"stroke-width":N.value.strokeWidth,"stroke-linejoin":`round`,filter:lr(e.serieIndex),style:v(ur(e.serieIndex)),class:_({"vue-data-ui-transition":C(L)})},null,14,ht))),128)),(y(!0),m(u,null,x(vr.value,e=>(y(),m(`path`,{key:`merged-serie-${e.serieIndex}`,d:e.d,fill:N.value.useGradient&&N.value.gradientIntensity>0?`url(#gradient_${E.value}_${e.gradientIndex})`:e.color,"fill-rule":`evenodd`,stroke:N.value.stroke,"stroke-width":N.value.strokeWidth,"stroke-linejoin":`round`,filter:lr(e.serieIndex),style:v(ur(e.serieIndex)),class:_({"vue-data-ui-transition":C(L)})},null,14,gt))),128)),e.$slots.pattern?(y(),m(`g`,_t,[(y(!0),m(u,null,x(vr.value,e=>(y(),m(`path`,{key:`merged-pattern-${e.serieIndex}`,d:e.d,fill:`url(#pattern_${E.value}_${e.absoluteIndex})`,"fill-rule":`evenodd`,stroke:`none`,filter:lr(e.serieIndex),style:v(ur(e.serieIndex)),class:_({"vue-data-ui-transition":C(L)})},null,14,vt))),128))])):p(``,!0)],64)):(y(),m(u,{key:2},[(y(!0),m(u,null,x(q.value,(e,t)=>(y(),m(`rect`,{rx:N.value.rounded?N.value.rounding:0,x:e.x+P.value.spaceBetween/2,y:e.y+P.value.spaceBetween/2,height:U.value<=0?1e-4:U.value,width:H.value<=0?1e-4:H.value,fill:`white`,stroke:N.value.stroke,"stroke-width":N.value.strokeWidth,filter:lr(K.value[t].serieIndex),style:v(ur(K.value[t].serieIndex)),class:_({"vue-data-ui-transition":C(L)})},null,14,yt))),256)),(y(!0),m(u,null,x(q.value,(e,t)=>(y(),m(`rect`,{rx:N.value.rounded?N.value.rounding:0,x:e.x+P.value.spaceBetween/2,y:e.y+P.value.spaceBetween/2,height:U.value<=0?1e-4:U.value,width:H.value<=0?1e-4:H.value,fill:N.value.useGradient&&N.value.gradientIntensity>0?`url(#gradient_${E.value}_${t})`:K.value[t].color,stroke:N.value.stroke,"stroke-width":N.value.strokeWidth,filter:lr(K.value[t].serieIndex),style:v(ur(K.value[t].serieIndex)),class:_({"vue-data-ui-transition":C(L)})},null,14,bt))),256)),e.$slots.pattern?(y(),m(`g`,xt,[(y(!0),m(u,null,x(q.value,(e,t)=>(y(),m(`rect`,{rx:N.value.rounded?N.value.rounding:0,x:e.x+P.value.spaceBetween/2,y:e.y+P.value.spaceBetween/2,height:U.value<=0?1e-4:U.value,width:H.value<=0?1e-4:H.value,fill:`url(#pattern_${E.value}_${K.value[t].absoluteIndex})`,stroke:`none`,filter:lr(K.value[t].serieIndex),style:v(ur(K.value[t].serieIndex)),class:_({"vue-data-ui-transition":C(L)})},null,14,St))),256))])):p(``,!0)],64))],64)):p(``,!0),e.$slots.cellSvg?(y(!0),m(u,{key:3},x(q.value,(t,n)=>(y(),m(`g`,null,[S(e.$slots,`cellSvg`,Je({ref_for:!0},{cell:{...t,color:K.value[n].color,height:Math.max(0,U.value),width:Math.max(0,H.value),...K.value[n]},isSelected:[null,void 0].includes(D.value)?!0:K.value[n].serieIndex===D.value}),void 0,!0)]))),256)):p(``,!0),(y(!0),m(u,null,x(_r.value,(e,t)=>(y(),m(`polygon`,{key:`selected-series-wrap-${t}`,points:e,fill:`none`,stroke:N.value.selection.wrap.stroke,"stroke-width":N.value.selection.wrap.strokeWidth,"stroke-linejoin":N.value.selection.wrap.strokeLinejoin,"pointer-events":`none`},null,8,Ct))),128)),(y(!0),m(u,null,x(q.value,(e,t)=>(y(),m(u,null,[yr(t,e)?(y(),m(`text`,{key:`datalabel_${t}`,textContent:tt(br(t,e)),x:e.x+F.value.labels.captions.offsetX+P.value.spaceBetween/2+6,y:e.y+F.value.labels.captions.offsetY+P.value.spaceBetween/2+An.value/2+F.value.labels.captions.fontSize/3,"font-size":F.value.labels.captions.fontSize,fill:C(ue)(K.value[t].color),filter:lr(K.value[t].serieIndex),class:_({"vue-data-ui-transition":C(L)})},null,10,wt)):p(``,!0)],64))),256)),N.value.merged&&!k.value.useCustomCells?(y(!0),m(u,{key:4},x(vr.value,e=>(y(),m(`path`,{key:`tooltip-trap-${e.serieIndex}`,d:e.d,fill:`transparent`,"fill-rule":`evenodd`,stroke:`none`,"pointer-events":`fill`,onMouseover:t=>sr(e.rectIndex),onMouseleave:t=>or(e.rectIndex),onClick:t=>ar(e.rectIndex)},null,40,Tt))),128)):(y(!0),m(u,{key:5},x(q.value,(e,t)=>(y(),m(`rect`,{key:`tooltip-trap-${t}`,x:e.x+P.value.spaceBetween/2,y:e.y+P.value.spaceBetween/2,height:An.value,width:kn.value,fill:`transparent`,stroke:`none`,onMouseover:e=>sr(t),onMouseleave:e=>or(t),onClick:e=>ar(t)},null,40,Et))),128)),S(e.$slots,`svg`,{svg:{...B.value,isPrintingImg:C(Cn)||C(wn)||C(Fr),isPrintingSvg:C(Ir)}},void 0,!0)],46,ut)),e.$slots.hint?(y(),m(`div`,Dt,[S(e.$slots,`hint`,Xe(qe({hint:k.value.a11y.translations.keyboardNavigation,isVisible:cn.value})),void 0,!0)])):p(``,!0)]),e.$slots.watermark?(y(),m(`div`,Ot,[S(e.$slots,`watermark`,Xe(qe({isPrinting:C(Cn)||C(wn)||C(Fr)||C(Ir)})),void 0,!0)])):p(``,!0),h(`div`,{id:`legend-bottom-${E.value}`},null,8,kt),nn.value&&(M.value.show||e.$slots.legend)?(y(),f(Ue,{key:6,to:M.value.position===`top`?`#legend-top-${E.value}`:`#legend-bottom-${E.value}`},[h(`div`,{ref_key:`chartLegend`,ref:Xt},[S(e.$slots,`legend`,{legend:X.value},()=>[M.value.show?(y(),f(Be,{key:`legend_${tn.value}`,legendSet:X.value,config:er.value,isCursorPointer:ln.value,onClickMarker:i[0]||=({legend:e})=>Yn(e.uid)},We({item:w(({legend:e})=>[h(`div`,{onClick:t=>e.segregate(),style:v(`opacity:${J.value.includes(e.uid)?.5:1}`)},tt(e.display),13,At)]),legendToggle:w(()=>[X.value.length>2&&M.value.selectAllToggle.show&&!C(dn)?(y(),f(Fe,{key:0,backgroundColor:M.value.selectAllToggle.backgroundColor,color:M.value.selectAllToggle.color,fontSize:M.value.fontSize,checked:J.value.length>0,isCursorPointer:ln.value,onToggle:Jn},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):p(``,!0)]),_:2},[e.$slots.pattern?{name:`legend-pattern`,fn:w(({legend:e,index:t})=>[Ke(je,{shape:e.shape,radius:30,stroke:`none`,plot:{x:30,y:30},fill:`url(#pattern_${E.value}_${t})`},null,8,[`shape`,`fill`])]),key:`0`}:void 0]),1032,[`legendSet`,`config`,`isCursorPointer`])):p(``,!0)],!0)],512)],8,[`to`])):p(``,!0),e.$slots.source?(y(),m(`div`,{key:7,ref_key:`source`,ref:Zt,dir:`auto`},[S(e.$slots,`source`,{},void 0,!0)],512)):p(``,!0),Ke(C(Nt),{teleportTo:j.value.teleportTo,show:z.value.showTooltip&&Gt.value&&J.value.length<T.dataset.length,backgroundColor:j.value.backgroundColor,color:j.value.color,borderRadius:j.value.borderRadius,borderColor:j.value.borderColor,borderWidth:j.value.borderWidth,backgroundOpacity:j.value.backgroundOpacity,position:j.value.position,offsetX:j.value.offsetX,offsetY:j.value.offsetY,parent:Jt.value,content:Kt.value,isCustom:j.value.customFormat&&typeof j.value.customFormat==`function`,fontSize:j.value.fontSize,isFullscreen:Cr.value,smooth:j.value.smooth,backdropFilter:j.value.backdropFilter,smoothForce:j.value.smoothForce,smoothSnapThreshold:j.value.smoothSnapThreshold,isA11yMode:sn.value===`keyboard`,a11yPosition:on.value},{"tooltip-before":w(()=>[S(e.$slots,`tooltip-before`,Xe(qe({...tr.value})),void 0,!0)]),tooltip:w(()=>[S(e.$slots,`tooltip`,Xe(qe({...tr.value})),void 0,!0)]),"tooltip-after":w(()=>[S(e.$slots,`tooltip-after`,Xe(qe({...tr.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isCustom`,`fontSize`,`isFullscreen`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),Wt.value&&A.value.buttons.table?(y(),f($e(Ar.value.component),Je({key:8},Ar.value.props,{ref_key:`tableUnit`,ref:rn,onClose:jr}),We({content:w(()=>[(y(),f(C(Ft),{key:`table_${en.value}`,colNames:Sr.value.colNames,head:Sr.value.head,body:Sr.value.body,config:Sr.value.config,title:k.value.table.useDialog?``:Ar.value.title,withCloseButton:!k.value.table.useDialog,isCursorPointer:ln.value,onClose:jr},{th:w(({th:e})=>[e===`__SUM__`?(y(),m(`div`,jt,[Ke(C(Pt),{name:`sigma`,stroke:Sr.value.config.th.color,size:16},null,8,[`stroke`])])):(y(),m(`div`,Mt,tt(e),1))]),td:w(({td:e})=>[Ge(tt(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[k.value.table.useDialog?{name:`title`,fn:w(()=>[Ge(tt(Ar.value.title),1)]),key:`0`}:void 0,k.value.table.useDialog?{name:`actions`,fn:w(()=>[h(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:i[1]||=e=>xr(A.value.callbacks.csv),style:v({cursor:ln.value?`pointer`:`default`})},[Ke(C(Pt),{name:`fileCsv`,stroke:Ar.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),S(e.$slots,`skeleton`,{},()=>[C(dn)?(y(),f(ge,{key:0})):p(``,!0)],!0)],46,ot))}},[[`__scopeId`,`data-v-002c14ec`]]);export{at as n,Nt as t};