vue-data-ui 3.22.9 → 3.22.10

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 (204) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CDTIUIKV.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-BoTvk0i5.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CLaZJl6K.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  13. package/dist/{Slicer-CW_XPIKL.js → Slicer-WsWTQPKt.js} +21 -21
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-3n516NyE.js} +214 -214
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-BUQOnoPR.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  89. package/dist/exposedLib-CZbtc2a6.js +25 -0
  90. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  91. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  92. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  93. package/dist/{package-ByOT60IK.js → package-BRBLwZUc.js} +1 -1
  94. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  95. package/dist/{render-common-D18VrP0h.js → render-common-DJXFRGhU.js} +10 -10
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/types/utils.d.ts +40 -0
  100. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  101. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  102. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  103. package/dist/utils.js +26 -24
  104. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  105. package/dist/vue-data-ui.js +77 -77
  106. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  107. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  108. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  109. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  110. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  111. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  112. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-BUP1JoNs.js} +287 -287
  113. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  114. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  115. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  116. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CdBFGYOK.js} +37 -37
  117. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  118. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-CgRph4-n.js} +32 -32
  119. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  120. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-ClrukmcB.js} +3 -3
  121. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  122. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  123. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  124. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  125. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  126. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  127. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  128. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-CoL0OzSd.js} +178 -178
  129. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  130. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-CbC5zV3K.js} +9 -9
  131. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  132. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-CuWssH-D.js} +414 -414
  133. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  134. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BdYenScF.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  136. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  137. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-B_6GFlaR.js} +261 -261
  138. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  139. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  141. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  142. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  143. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  144. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-CzLGCFWK.js} +101 -101
  145. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  146. package/dist/vue-ui-ridgeline-BArLhskj.js +1628 -0
  147. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  148. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  149. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-KeIPGp9U.js} +99 -99
  150. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-C1mYDh4R.js} +17 -17
  151. package/dist/vue-ui-spark-trend-EqCqmHmU.js +443 -0
  152. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-BPh45vBP.js} +66 -66
  153. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-CtouPcyW.js} +65 -65
  154. package/dist/vue-ui-sparkhistogram-D4sI0DHN.js +576 -0
  155. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-BDFZ78Fz.js} +51 -51
  156. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  157. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-nMXIY9x8.js} +108 -108
  158. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  159. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-BCf5nthl.js} +65 -65
  160. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  161. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  162. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  163. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  164. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-Bz7EnsM1.js} +5 -5
  165. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  166. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-JxNNtb7v.js} +232 -232
  167. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  168. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  169. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  170. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-R9o00A6c.js} +210 -210
  171. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-CUt6sU1s.js} +766 -766
  172. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-Do34-UbE.js} +134 -134
  173. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  174. package/package.json +1 -1
  175. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  176. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  177. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  178. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  179. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  180. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  181. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  182. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  183. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  184. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  185. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  186. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  187. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  188. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  189. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  190. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  191. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  192. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  193. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  194. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  195. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  196. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  197. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  198. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  199. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  200. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  201. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  202. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  203. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  204. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,1247 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, Bt as n, E as r, K as i, Q as a, Wt as o, Y as s, bt as ee, et as te, i as c, qt as ne, st as re, t as ie, y as l, zt as ae } from "./lib-CnHx5WfV.js";
3
+ import { t as oe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as se } from "./usePrinter-B-X_Pub0.js";
5
+ import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ue } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as de } from "./useNestedProp-D8NuRneO.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
10
+ import { t as me } from "./img-CNdXiUfZ.js";
11
+ import { n as he } from "./Title-Cr3jP7Qd.js";
12
+ import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as _e } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as ve } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as ye } from "./DefGrad-DVBqDjhO.js";
16
+ import { t as be } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Ce } from "./vue_ui_age_pyramid-BY6c-oX_.js";
20
+ import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as we, createTextVNode as Te, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ke, onMounted as Ae, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as je, shallowRef as Me, toDisplayString as T, toRefs as Ne, unref as E, watch as Pe, watchEffect as Fe, withCtx as D } from "vue";
21
+ //#region src/components/vue-ui-age-pyramid.vue
22
+ var Ie = /* @__PURE__ */ e({ default: () => lt }), Le = ["id"], Re = ["id"], ze = { style: { position: "relative" } }, Be = [
23
+ "xmlns",
24
+ "viewBox",
25
+ "aria-describedby"
26
+ ], Ve = [
27
+ "x",
28
+ "y",
29
+ "width",
30
+ "height"
31
+ ], He = [
32
+ "x",
33
+ "y",
34
+ "width",
35
+ "height",
36
+ "fill",
37
+ "rx"
38
+ ], Ue = [
39
+ "x",
40
+ "y",
41
+ "width",
42
+ "height",
43
+ "fill",
44
+ "rx"
45
+ ], We = [
46
+ "x",
47
+ "y",
48
+ "width",
49
+ "height",
50
+ "fill",
51
+ "rx"
52
+ ], Ge = [
53
+ "x",
54
+ "y",
55
+ "width",
56
+ "height",
57
+ "fill",
58
+ "rx"
59
+ ], Ke = { key: 0 }, qe = [
60
+ "x",
61
+ "y",
62
+ "fill",
63
+ "font-size",
64
+ "font-weight"
65
+ ], Je = [
66
+ "x",
67
+ "y",
68
+ "fill",
69
+ "font-size",
70
+ "font-weight"
71
+ ], Ye = { key: 1 }, Xe = [
72
+ "x",
73
+ "y",
74
+ "font-size",
75
+ "fill",
76
+ "font-weight"
77
+ ], Ze = { key: 2 }, Qe = { key: 0 }, $e = [
78
+ "x1",
79
+ "x2",
80
+ "y1",
81
+ "y2",
82
+ "stroke",
83
+ "stroke-width"
84
+ ], et = [
85
+ "x1",
86
+ "x2",
87
+ "y1",
88
+ "y2",
89
+ "stroke",
90
+ "stroke-width"
91
+ ], tt = [
92
+ "x1",
93
+ "x2",
94
+ "y1",
95
+ "y2",
96
+ "stroke",
97
+ "stroke-width"
98
+ ], nt = [
99
+ "x1",
100
+ "x2",
101
+ "y1",
102
+ "y2",
103
+ "stroke",
104
+ "stroke-width"
105
+ ], rt = [
106
+ "font-size",
107
+ "fill",
108
+ "text-anchor",
109
+ "font-weight",
110
+ "transform"
111
+ ], it = [
112
+ "font-size",
113
+ "fill",
114
+ "text-anchor",
115
+ "font-weight",
116
+ "transform"
117
+ ], at = [
118
+ "x",
119
+ "y",
120
+ "font-size",
121
+ "fill",
122
+ "font-weight"
123
+ ], ot = [
124
+ "x",
125
+ "y",
126
+ "width",
127
+ "height",
128
+ "fill",
129
+ "onMouseover",
130
+ "onMouseleave",
131
+ "onClick"
132
+ ], st = {
133
+ key: 0,
134
+ style: {
135
+ position: "absolute",
136
+ top: "100%",
137
+ left: "0",
138
+ width: "100%"
139
+ },
140
+ "data-dom-to-png-ignore": "",
141
+ "aria-hidden": "true"
142
+ }, ct = {
143
+ key: 5,
144
+ class: "vue-data-ui-watermark"
145
+ }, lt = /*#__PURE__*/ ge({
146
+ __name: "vue-ui-age-pyramid",
147
+ props: {
148
+ config: {
149
+ type: Object,
150
+ default() {
151
+ return {};
152
+ }
153
+ },
154
+ dataset: {
155
+ type: Array,
156
+ default() {
157
+ return [];
158
+ }
159
+ }
160
+ },
161
+ emits: ["copyAlt"],
162
+ setup(e, { expose: ge, emit: Ie }) {
163
+ let lt = _(() => import("./Tooltip-CDbLl3TD.js")), ut = _(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), dt = _(() => import("./vue-ui-accordion-Oo3IsX3-.js").then((e) => e.n)), ft = _(() => import("./DataTable-ByZy5gt1.js")), pt = _(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), mt = _(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), ht = _(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), gt = _(() => import("./BaseDraggableDialog-CdkCqtag.js").then((e) => e.n)), { vue_ui_age_pyramid: _t } = oe(), { isThemeValid: vt, warnInvalidTheme: yt } = fe(), O = e, bt = Ie, xt = d(() => !!O.dataset && O.dataset.length), k = S(i()), A = S(!1), St = S(""), j = S(null), Ct = S(0), M = S(null), wt = S(null), Tt = S(null), Et = S(null), Dt = S(0), Ot = S(0), kt = S(null), N = S(null), At = S(null), P = S(!1), F = S(!1), I = S(null), jt = S({
164
+ x: 0,
165
+ y: 0
166
+ }), L = S("pointer"), Mt = S(!1), R = S(Bt()), z = d(() => R.value.userOptions.useCursorPointer), Nt = d(() => ne({
167
+ defaultConfig: {
168
+ userOptions: { show: !1 },
169
+ table: { show: !1 },
170
+ translations: {
171
+ male: "",
172
+ female: ""
173
+ },
174
+ style: {
175
+ backgroundColor: "#99999930",
176
+ layout: {
177
+ bars: {
178
+ left: { color: "#CACACA" },
179
+ right: { color: "#999999" }
180
+ },
181
+ dataLabels: {
182
+ xAxis: {
183
+ fontSize: 0,
184
+ scale: 1e3,
185
+ translation: ""
186
+ },
187
+ yAxis: { show: !1 }
188
+ },
189
+ grid: { stroke: "#6A6A6A" }
190
+ }
191
+ }
192
+ },
193
+ userConfig: R.value.skeletonConfig ?? {}
194
+ })), { loading: Pt, FINAL_DATASET: Ft, manualLoading: It } = ce({
195
+ ...Ne(O),
196
+ FINAL_CONFIG: R,
197
+ prepareConfig: Bt,
198
+ skeletonDataset: O.config?.skeletonDataset ?? [
199
+ [
200
+ "_",
201
+ 9,
202
+ 2,
203
+ 2
204
+ ],
205
+ [
206
+ "_",
207
+ 8,
208
+ 3,
209
+ 3
210
+ ],
211
+ [
212
+ "_",
213
+ 7,
214
+ 5,
215
+ 5
216
+ ],
217
+ [
218
+ "_",
219
+ 6,
220
+ 8,
221
+ 8
222
+ ],
223
+ [
224
+ "_",
225
+ 5,
226
+ 13,
227
+ 13
228
+ ],
229
+ [
230
+ "_",
231
+ 4,
232
+ 21,
233
+ 21
234
+ ],
235
+ [
236
+ "_",
237
+ 3,
238
+ 34,
239
+ 34
240
+ ],
241
+ [
242
+ "_",
243
+ 2,
244
+ 55,
245
+ 55
246
+ ],
247
+ [
248
+ "_",
249
+ 1,
250
+ 89,
251
+ 89
252
+ ],
253
+ [
254
+ "_",
255
+ 0,
256
+ 144,
257
+ 144
258
+ ]
259
+ ],
260
+ skeletonConfig: ne({
261
+ defaultConfig: R.value,
262
+ userConfig: Nt.value
263
+ })
264
+ }), { userOptionsVisible: Lt, setUserOptionsVisibility: Rt, keepUserOptionState: zt } = xe({ config: R.value }), { svgRef: B } = Se({ config: R.value.style.title });
265
+ function Bt() {
266
+ let e = de({
267
+ userConfig: O.config,
268
+ defaultConfig: _t
269
+ }), t = e.theme;
270
+ if (!t) return e;
271
+ if (!vt.value(e)) return yt(e), e;
272
+ let n = de({
273
+ userConfig: Ce[t] || O.config,
274
+ defaultConfig: e
275
+ });
276
+ return de({
277
+ userConfig: O.config,
278
+ defaultConfig: n
279
+ });
280
+ }
281
+ Pe(() => O.config, (e) => {
282
+ Pt.value || (R.value = Bt()), Lt.value = !R.value.userOptions.showOnChartHover, Ht(), Dt.value += 1, Ot.value += 1, U.value.showTable = R.value.table.show, U.value.showTooltip = R.value.style.tooltip.show;
283
+ }, { deep: !0 }), Pe(() => O.dataset, (e) => {
284
+ Array.isArray(e) && e.length > 0 && (It.value = !1);
285
+ }, { deep: !0 });
286
+ let V = Me(null), H = Me(null);
287
+ Ae(() => {
288
+ Ht();
289
+ });
290
+ let Vt = d(() => !!R.value.debug);
291
+ function Ht() {
292
+ if (t(O.dataset) && (te({
293
+ componentName: "VueUiAgePyramid",
294
+ type: "dataset",
295
+ debug: Vt.value
296
+ }), It.value = !0), t(O.dataset) || (It.value = R.value.loading), R.value.responsive) {
297
+ let e = _e(() => {
298
+ let { width: e, height: t } = ve({
299
+ chart: M.value,
300
+ title: R.value.style.title.text ? wt.value : null,
301
+ source: Tt.value,
302
+ noTitle: Et.value
303
+ });
304
+ requestAnimationFrame(() => {
305
+ W.value.width = e, W.value.height = t;
306
+ });
307
+ });
308
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = M.value.parentNode, V.value.observe(H.value);
309
+ }
310
+ }
311
+ ke(() => {
312
+ V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
313
+ });
314
+ let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = se({
315
+ elementId: `vue-ui-age-pyramid_${k.value}`,
316
+ fileName: R.value.style.title.text || "vue-ui-age-pyramid",
317
+ options: R.value.userOptions.print
318
+ }), qt = d(() => R.value.userOptions.show && !R.value.style.title.text), U = S({
319
+ showTable: R.value.table.show,
320
+ showTooltip: R.value.style.tooltip.show
321
+ });
322
+ Pe(R, () => {
323
+ U.value = {
324
+ showTable: R.value.table.show,
325
+ showTooltip: R.value.style.tooltip.show
326
+ };
327
+ }, { immediate: !0 });
328
+ let W = S({
329
+ height: R.value.style.height,
330
+ width: R.value.style.width
331
+ }), Jt = d(() => W.value.width), Yt = d(() => W.value.height), Xt = S(0), Zt = _e((e) => {
332
+ Xt.value = e;
333
+ }, 100);
334
+ Fe((e) => {
335
+ let t = kt.value;
336
+ if (!t) return;
337
+ let n = new ResizeObserver((e) => {
338
+ Zt(e[0].contentRect.height);
339
+ });
340
+ n.observe(t), e(() => n.disconnect());
341
+ }), ke(() => {
342
+ Xt.value = 0;
343
+ });
344
+ let G = d(() => {
345
+ let e = W.value.width - R.value.style.layout.padding.right - R.value.style.layout.padding.left, t = R.value.style.layout.padding.left, n = W.value.width - R.value.style.layout.padding.right;
346
+ return {
347
+ top: R.value.style.layout.padding.top + R.value.style.layout.dataLabels.sideTitles.fontSize + R.value.style.layout.dataLabels.sideTitles.offsetY + 12,
348
+ left: t,
349
+ right: n,
350
+ bottom: W.value.height - R.value.style.layout.padding.bottom - Xt.value,
351
+ width: e,
352
+ height: W.value.height - R.value.style.layout.padding.top - R.value.style.layout.padding.bottom - Xt.value - R.value.style.layout.dataLabels.sideTitles.fontSize - R.value.style.layout.dataLabels.sideTitles.offsetY - 12,
353
+ centerX: R.value.style.layout.padding.left + e / 2,
354
+ leftChart: {
355
+ width: e / 2 - R.value.style.layout.centerSlit.width,
356
+ right: t + e / 2 - R.value.style.layout.centerSlit.width
357
+ },
358
+ rightChart: {
359
+ width: e / 2 - R.value.style.layout.centerSlit.width,
360
+ left: t + e / 2 + R.value.style.layout.centerSlit.width
361
+ }
362
+ };
363
+ }), Qt = d(() => Ft.value.map((e) => R.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), K = d(() => {
364
+ let e = $t(q.value / 5), t = [], n = [];
365
+ for (let r = 0; r <= 5; r += 1) {
366
+ let i = e * r, a = e * (r - 5);
367
+ t.push({
368
+ value: i,
369
+ x: G.value.left + G.value.width / 2 + R.value.style.layout.centerSlit.width + i / q.value * G.value.leftChart.width
370
+ }), n.push({
371
+ value: Math.abs(a),
372
+ x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - R.value.style.layout.centerSlit.width
373
+ });
374
+ }
375
+ return {
376
+ right: t,
377
+ left: n
378
+ };
379
+ });
380
+ function $t(e) {
381
+ if (e === 0) return 0;
382
+ let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
383
+ return n = Math.round(e / t) * t, n;
384
+ }
385
+ let q = d(() => Math.max(...Ft.value.flatMap((e) => e.slice(-2).map((e) => l(e))))), J = d(() => Ft.value.length), en = d(() => Ft.value.map((e) => ({
386
+ segment: e[0],
387
+ age: e[1],
388
+ left: {
389
+ value: e[2],
390
+ proportionToMax: e[2] / q.value
391
+ },
392
+ right: {
393
+ value: e[3],
394
+ proportionToMax: e[3] / q.value
395
+ }
396
+ }))), Y = d(() => en.value.map((e, t) => {
397
+ let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - R.value.style.layout.bars.gap;
398
+ return {
399
+ segment: e.segment,
400
+ age: e.age,
401
+ left: {
402
+ ...e.left,
403
+ y: n,
404
+ color: R.value.style.layout.bars.left.color,
405
+ x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
406
+ width: l(e.left.proportionToMax * G.value.leftChart.width),
407
+ height: r
408
+ },
409
+ right: {
410
+ ...e.right,
411
+ y: n,
412
+ color: R.value.style.layout.bars.right.color,
413
+ x: G.value.rightChart.left,
414
+ width: l(e.right.proportionToMax * G.value.rightChart.width),
415
+ height: r
416
+ }
417
+ };
418
+ })), tn = S(null);
419
+ function nn(e) {
420
+ let [t, n, r, i] = e;
421
+ return {
422
+ segment: t,
423
+ index: n,
424
+ left: r,
425
+ right: i
426
+ };
427
+ }
428
+ function rn(e, t) {
429
+ R.value.events.datapointClick && R.value.events.datapointClick({
430
+ datapoint: nn(t),
431
+ seriesIndex: e
432
+ });
433
+ }
434
+ function an(e, t) {
435
+ R.value.events.datapointLeave && R.value.events.datapointLeave({
436
+ datapoint: nn(t),
437
+ seriesIndex: e
438
+ }), !(L.value === "keyboard" && I.value === e) && (j.value = null, A.value = !1);
439
+ }
440
+ function on(e) {
441
+ if (!B.value) return;
442
+ let t = Y.value[e];
443
+ if (!t) return;
444
+ let n = o(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, B.value);
445
+ n && (jt.value = n);
446
+ }
447
+ function sn(e, t, n = "pointer") {
448
+ R.value.events.datapointEnter && R.value.events.datapointEnter({
449
+ datapoint: nn(t),
450
+ seriesIndex: e
451
+ }), j.value = e, I.value = e, L.value = n, tn.value = {
452
+ datapoint: t,
453
+ seriesIndex: e,
454
+ series: Y.value,
455
+ config: R.value
456
+ };
457
+ let r = R.value.style.tooltip.customFormat;
458
+ if (ee(r) && re(() => r({
459
+ seriesIndex: e,
460
+ datapoint: {
461
+ segment: t[0],
462
+ index: t[1],
463
+ left: t[2],
464
+ right: t[3]
465
+ },
466
+ series: Y.value,
467
+ config: R.value
468
+ }))) St.value = r({
469
+ seriesIndex: e,
470
+ datapoint: {
471
+ segment: t[0],
472
+ index: t[1],
473
+ left: t[2],
474
+ right: t[3]
475
+ },
476
+ series: Y.value,
477
+ config: R.value
478
+ });
479
+ else {
480
+ let n = "", r = Y.value[e];
481
+ n += `<div><b>${r.segment}</b></div>`, n += `<div>${R.value.translations.age}: ${c(R.value.style.layout.dataLabels.yAxis.formatter, l(r.age), s({ v: l(r.age) }), {
482
+ datapoint: t,
483
+ seriesIndex: e
484
+ })}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}">`, n += "<div style=\"display:flex; flex-direction:row;gap:12px\">", n += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : R.value.style.layout.bars.left.color}"/></svg><div>${R.value.translations.female}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.left.value), s({ v: l(r.left.value) }), {
485
+ datapoint: t,
486
+ seriesIndex: e
487
+ })}</b></div></div>`, n += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : R.value.style.layout.bars.right.color}"/></svg><div>${R.value.translations.male}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value), s({ v: l(r.right.value) }), {
488
+ datapoint: t,
489
+ seriesIndex: e
490
+ })}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}"><div>${R.value.translations.total}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value) + l(r.left.value), s({ v: l(r.right.value) + l(r.left.value) }), {
491
+ datapoint: t,
492
+ seriesIndex: e
493
+ })}</b></div></div>`, n += "</div>", St.value = `<div>${n}</div>`;
494
+ }
495
+ A.value = !0, n === "keyboard" && De(() => {
496
+ on(e);
497
+ });
498
+ }
499
+ function cn(e = null) {
500
+ De(() => {
501
+ let t = [
502
+ R.value.translations.year,
503
+ R.value.translations.age,
504
+ R.value.translations.female,
505
+ R.value.translations.male,
506
+ R.value.translations.total
507
+ ], n = O.dataset.map((e) => [
508
+ e[0],
509
+ e[1],
510
+ e[2],
511
+ e[3],
512
+ e[2] ?? 0 + e[3] ?? 0
513
+ ]), i = r([
514
+ [R.value.style.title.text],
515
+ [R.value.style.title.subtitle.text],
516
+ [
517
+ [""],
518
+ [""],
519
+ [""]
520
+ ],
521
+ t
522
+ ].concat(n));
523
+ e ? e(i) : a({
524
+ csvContent: i,
525
+ title: R.value.style.title.text || "vue-ui-heatmap"
526
+ });
527
+ });
528
+ }
529
+ let X = d(() => {
530
+ let e = [
531
+ R.value.translations.year,
532
+ R.value.translations.age,
533
+ R.value.translations.female,
534
+ R.value.translations.male,
535
+ R.value.translations.total
536
+ ];
537
+ return {
538
+ head: e,
539
+ body: O.dataset.map((e) => [
540
+ e[0],
541
+ e[1],
542
+ e[2] == null ? "" : e[2].toLocaleString(),
543
+ e[3] == null ? "" : e[3].toLocaleString(),
544
+ (e[2] ?? 0 + e[3] ?? 0).toLocaleString()
545
+ ]),
546
+ config: {
547
+ th: {
548
+ backgroundColor: R.value.table.th.backgroundColor,
549
+ color: R.value.table.th.color,
550
+ outline: R.value.table.th.outline
551
+ },
552
+ td: {
553
+ backgroundColor: R.value.table.td.backgroundColor,
554
+ color: R.value.table.td.color,
555
+ outline: R.value.table.td.outline
556
+ },
557
+ breakpoint: R.value.table.responsiveBreakpoint
558
+ },
559
+ colNames: e
560
+ };
561
+ }), Z = S(!1);
562
+ function ln(e) {
563
+ Z.value = e, Ct.value += 1;
564
+ }
565
+ function un() {
566
+ U.value.showTable = !U.value.showTable;
567
+ }
568
+ function dn() {
569
+ U.value.showTooltip = !U.value.showTooltip;
570
+ }
571
+ let Q = S(!1);
572
+ function fn() {
573
+ Q.value = !Q.value;
574
+ }
575
+ async function pn({ scale: e = 2 } = {}) {
576
+ if (!M.value) return;
577
+ let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
578
+ domElement: M.value,
579
+ base64: !0,
580
+ img: !0,
581
+ scale: e
582
+ });
583
+ return {
584
+ imageUri: i,
585
+ base64: a,
586
+ title: R.value.style.title.text,
587
+ width: t,
588
+ height: n,
589
+ aspectRatio: r
590
+ };
591
+ }
592
+ pe({
593
+ timeLabelsEls: kt,
594
+ timeLabels: S([]),
595
+ slicer: S({
596
+ start: 0,
597
+ end: Y.value.length
598
+ }),
599
+ configRef: R,
600
+ rotationPath: [
601
+ "style",
602
+ "layout",
603
+ "dataLabels",
604
+ "xAxis",
605
+ "rotation"
606
+ ],
607
+ autoRotatePath: [
608
+ "style",
609
+ "layout",
610
+ "dataLabels",
611
+ "xAxis",
612
+ "autoRotate",
613
+ "enable"
614
+ ],
615
+ isAutoSize: !1,
616
+ width: Jt,
617
+ height: Yt,
618
+ targetClass: ".vue-ui-age-pyramid-x-axis-label",
619
+ rotation: R.value.style.layout.dataLabels.xAxis.autoRotate.angle
620
+ });
621
+ let $ = d(() => {
622
+ let e = R.value.table.useDialog && !R.value.table.show, t = U.value.showTable;
623
+ return {
624
+ component: e ? gt : dt,
625
+ title: `${R.value.style.title.text}${R.value.style.title.subtitle.text ? `: ${R.value.style.title.subtitle.text}` : ""}`,
626
+ props: e ? {
627
+ backgroundColor: R.value.table.th.backgroundColor,
628
+ color: R.value.table.th.color,
629
+ headerColor: R.value.table.th.color,
630
+ headerBg: R.value.table.th.backgroundColor,
631
+ isFullscreen: Z.value,
632
+ fullscreenParent: M.value,
633
+ forcedWidth: Math.min(800, window.innerWidth * .8),
634
+ isCursorPointer: z.value
635
+ } : {
636
+ hideDetails: !0,
637
+ config: {
638
+ open: t,
639
+ maxHeight: 1e4,
640
+ body: {
641
+ backgroundColor: R.value.style.backgroundColor,
642
+ color: R.value.style.color
643
+ },
644
+ head: {
645
+ backgroundColor: R.value.style.backgroundColor,
646
+ color: R.value.style.color
647
+ }
648
+ }
649
+ }
650
+ };
651
+ });
652
+ Pe(() => U.value.showTable, (e) => {
653
+ R.value.table.show || (e && R.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
654
+ });
655
+ function mn() {
656
+ U.value.showTable = !1, At.value && At.value.setTableIconState(!1);
657
+ }
658
+ let hn = d(() => R.value.style.backgroundColor), { exportSvg: gn, getSvg: _n } = ue({
659
+ svg: B,
660
+ title: d(() => R.value.style.title),
661
+ backgroundColor: hn
662
+ });
663
+ async function vn({ isCb: e }) {
664
+ F.value = !0, await De();
665
+ try {
666
+ if (e) {
667
+ let { blob: e, url: t, text: n, dataUrl: r } = await _n();
668
+ await Promise.resolve(R.value.userOptions.callbacks.svg({
669
+ blob: e,
670
+ url: t,
671
+ text: n,
672
+ dataUrl: r
673
+ }));
674
+ } else await Promise.resolve(gn());
675
+ } finally {
676
+ F.value = !1;
677
+ }
678
+ }
679
+ function yn(e) {
680
+ if (e?.stage === "start") {
681
+ P.value = !0;
682
+ return;
683
+ }
684
+ if (e?.stage === "end") {
685
+ P.value = !1;
686
+ return;
687
+ }
688
+ Kt();
689
+ }
690
+ async function bn() {
691
+ if (bt("copyAlt", {
692
+ config: R.value,
693
+ dataset: Y.value
694
+ }), !R.value.userOptions.callbacks.altCopy) {
695
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
696
+ return;
697
+ }
698
+ await Promise.resolve(R.value.userOptions.callbacks.altCopy({
699
+ config: R.value,
700
+ dataset: Y.value
701
+ }));
702
+ }
703
+ function xn() {
704
+ Mt.value = !0;
705
+ }
706
+ function Sn() {
707
+ j.value = null, I.value = null, L.value = "pointer", A.value = !1, Mt.value = !1;
708
+ }
709
+ function Cn(e) {
710
+ if (!B.value || Q.value || document.activeElement !== B.value || !Y.value.length) return;
711
+ let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
712
+ if (!t && !n && !r && !i) return;
713
+ if (e.preventDefault(), e.stopPropagation(), i) {
714
+ j.value = null, I.value = null, L.value = "pointer", A.value = !1;
715
+ return;
716
+ }
717
+ if (r) {
718
+ if (I.value === null) return;
719
+ let e = O.dataset[I.value];
720
+ if (!e) return;
721
+ rn(I.value, e);
722
+ return;
723
+ }
724
+ let a = I.value, o = j.value, s = a !== null && a >= 0 && a < Y.value.length, ee = o !== null && o >= 0 && o < Y.value.length;
725
+ s ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : ee ? (a = n ? o + 1 : o - 1, a >= Y.value.length && (a = 0), a < 0 && (a = Y.value.length - 1)) : a = n ? 0 : Y.value.length - 1;
726
+ let te = O.dataset[a];
727
+ te && sn(a, te, "keyboard");
728
+ }
729
+ return ge({
730
+ getImage: pn,
731
+ generatePdf: Gt,
732
+ generateCsv: cn,
733
+ generateImage: Kt,
734
+ generateSvg: vn,
735
+ toggleTable: un,
736
+ toggleTooltip: dn,
737
+ toggleAnnotator: fn,
738
+ toggleFullscreen: ln,
739
+ copyAlt: bn
740
+ }), (t, r) => (x(), m("div", {
741
+ class: Oe(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
742
+ ref_key: "agePyramid",
743
+ ref: M,
744
+ id: `vue-ui-age-pyramid_${k.value}`,
745
+ style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.backgroundColor};${R.value.responsive ? "height:100%" : ""}`),
746
+ onMouseenter: r[1] ||= () => E(Rt)(!0),
747
+ onMouseleave: r[2] ||= () => E(Rt)(!1)
748
+ }, [
749
+ h("div", {
750
+ id: `chart-instructions-${k.value}`,
751
+ class: "sr-only"
752
+ }, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
753
+ X.value?.body?.length ? (x(), f(be, {
754
+ key: 0,
755
+ uid: k.value,
756
+ head: X.value.head,
757
+ body: X.value.body,
758
+ notice: R.value.a11y.translations.tableAvailable,
759
+ caption: R.value.a11y.translations.tableCaption
760
+ }, null, 8, [
761
+ "uid",
762
+ "head",
763
+ "body",
764
+ "notice",
765
+ "caption"
766
+ ])) : p("", !0),
767
+ R.value.userOptions.buttons.annotator ? (x(), f(E(pt), {
768
+ key: 1,
769
+ svgRef: E(B),
770
+ backgroundColor: R.value.style.backgroundColor,
771
+ color: R.value.style.color,
772
+ active: Q.value,
773
+ isCursorPointer: z.value,
774
+ onClose: fn
775
+ }, {
776
+ "annotator-action-close": D(() => [w(t.$slots, "annotator-action-close", {}, void 0, !0)]),
777
+ "annotator-action-color": D(({ color: e }) => [w(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
778
+ "annotator-action-draw": D(({ mode: e }) => [w(t.$slots, "annotator-action-draw", y(v({ mode: e })), void 0, !0)]),
779
+ "annotator-action-undo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-undo", y(v({ disabled: e })), void 0, !0)]),
780
+ "annotator-action-redo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-redo", y(v({ disabled: e })), void 0, !0)]),
781
+ "annotator-action-delete": D(({ disabled: e }) => [w(t.$slots, "annotator-action-delete", y(v({ disabled: e })), void 0, !0)]),
782
+ _: 3
783
+ }, 8, [
784
+ "svgRef",
785
+ "backgroundColor",
786
+ "color",
787
+ "active",
788
+ "isCursorPointer"
789
+ ])) : p("", !0),
790
+ qt.value ? (x(), m("div", {
791
+ key: 2,
792
+ ref_key: "noTitle",
793
+ ref: Et,
794
+ class: "vue-data-ui-no-title-space",
795
+ style: "height:36px; width: 100%;background:transparent"
796
+ }, null, 512)) : p("", !0),
797
+ R.value.style.title.text ? (x(), m("div", {
798
+ key: 3,
799
+ ref_key: "chartTitle",
800
+ ref: wt,
801
+ style: "width:100%;background:transparent"
802
+ }, [(x(), f(he, {
803
+ key: `title_${Dt.value}`,
804
+ config: {
805
+ title: {
806
+ cy: "pyramid-div-title",
807
+ ...R.value.style.title
808
+ },
809
+ subtitle: {
810
+ cy: "pyramid-div-subtitle",
811
+ ...R.value.style.title.subtitle
812
+ }
813
+ }
814
+ }, null, 8, ["config"]))], 512)) : p("", !0),
815
+ R.value.userOptions.show && xt.value && (E(zt) || E(Lt)) ? (x(), f(E(mt), {
816
+ ref_key: "userOptionsRef",
817
+ ref: At,
818
+ key: `user_options_${Ct.value}`,
819
+ backgroundColor: R.value.style.backgroundColor,
820
+ color: R.value.style.color,
821
+ isImaging: E(Wt),
822
+ isPrinting: E(Ut),
823
+ uid: k.value,
824
+ hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.tooltip.show,
825
+ hasPdf: R.value.userOptions.buttons.pdf,
826
+ hasXls: R.value.userOptions.buttons.csv,
827
+ hasImg: R.value.userOptions.buttons.img,
828
+ hasSvg: R.value.userOptions.buttons.svg,
829
+ hasTable: R.value.userOptions.buttons.table,
830
+ hasFullscreen: R.value.userOptions.buttons.fullscreen,
831
+ hasAltCopy: R.value.userOptions.buttons.altCopy,
832
+ isFullscreen: Z.value,
833
+ isTooltip: U.value.showTooltip,
834
+ titles: { ...R.value.userOptions.buttonTitles },
835
+ chartElement: M.value,
836
+ position: R.value.userOptions.position,
837
+ hasAnnotator: R.value.userOptions.buttons.annotator,
838
+ isAnnotation: Q.value,
839
+ callbacks: R.value.userOptions.callbacks,
840
+ printScale: R.value.userOptions.print.scale,
841
+ tableDialog: R.value.table.useDialog,
842
+ isCursorPointer: z.value,
843
+ onToggleFullscreen: ln,
844
+ onGeneratePdf: E(Gt),
845
+ onGenerateCsv: cn,
846
+ onGenerateImage: yn,
847
+ onGenerateSvg: vn,
848
+ onToggleTable: un,
849
+ onToggleTooltip: dn,
850
+ onToggleAnnotator: fn,
851
+ onCopyAlt: bn,
852
+ style: b({ visibility: E(zt) ? E(Lt) ? "visible" : "hidden" : "visible" })
853
+ }, we({ _: 2 }, [
854
+ t.$slots.menuIcon ? {
855
+ name: "menuIcon",
856
+ fn: D(({ isOpen: e, color: n }) => [w(t.$slots, "menuIcon", y(v({
857
+ isOpen: e,
858
+ color: n
859
+ })), void 0, !0)]),
860
+ key: "0"
861
+ } : void 0,
862
+ t.$slots.optionTooltip ? {
863
+ name: "optionTooltip",
864
+ fn: D(() => [w(t.$slots, "optionTooltip", {}, void 0, !0)]),
865
+ key: "1"
866
+ } : void 0,
867
+ t.$slots.optionPdf ? {
868
+ name: "optionPdf",
869
+ fn: D(() => [w(t.$slots, "optionPdf", {}, void 0, !0)]),
870
+ key: "2"
871
+ } : void 0,
872
+ t.$slots.optionCsv ? {
873
+ name: "optionCsv",
874
+ fn: D(() => [w(t.$slots, "optionCsv", {}, void 0, !0)]),
875
+ key: "3"
876
+ } : void 0,
877
+ t.$slots.optionImg ? {
878
+ name: "optionImg",
879
+ fn: D(() => [w(t.$slots, "optionImg", {}, void 0, !0)]),
880
+ key: "4"
881
+ } : void 0,
882
+ t.$slots.optionSvg ? {
883
+ name: "optionSvg",
884
+ fn: D(() => [w(t.$slots, "optionSvg", {}, void 0, !0)]),
885
+ key: "5"
886
+ } : void 0,
887
+ t.$slots.optionTable ? {
888
+ name: "optionTable",
889
+ fn: D(() => [w(t.$slots, "optionTable", {}, void 0, !0)]),
890
+ key: "6"
891
+ } : void 0,
892
+ t.$slots.optionFullscreen ? {
893
+ name: "optionFullscreen",
894
+ fn: D(({ toggleFullscreen: e, isFullscreen: n }) => [w(t.$slots, "optionFullscreen", y(v({
895
+ toggleFullscreen: e,
896
+ isFullscreen: n
897
+ })), void 0, !0)]),
898
+ key: "7"
899
+ } : void 0,
900
+ t.$slots.optionAnnotator ? {
901
+ name: "optionAnnotator",
902
+ fn: D(({ toggleAnnotator: e, isAnnotator: n }) => [w(t.$slots, "optionAnnotator", y(v({
903
+ toggleAnnotator: e,
904
+ isAnnotator: n
905
+ })), void 0, !0)]),
906
+ key: "8"
907
+ } : void 0,
908
+ t.$slots.optionAltCopy ? {
909
+ name: "optionAltCopy",
910
+ fn: D(({ altCopy: e }) => [w(t.$slots, "optionAltCopy", y(v({ altCopy: e })), void 0, !0)]),
911
+ key: "9"
912
+ } : void 0,
913
+ t.$slots["custom-menu-before"] ? {
914
+ name: "custom-menu-before",
915
+ fn: D(() => [w(t.$slots, "custom-menu-before", {}, void 0, !0)]),
916
+ key: "10"
917
+ } : void 0,
918
+ t.$slots["custom-menu-after"] ? {
919
+ name: "custom-menu-after",
920
+ fn: D(() => [w(t.$slots, "custom-menu-after", {}, void 0, !0)]),
921
+ key: "11"
922
+ } : void 0
923
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
924
+ h("div", ze, [(x(), m("svg", {
925
+ ref_key: "svgRef",
926
+ ref: B,
927
+ xmlns: E(ie),
928
+ class: Oe({
929
+ "vue-data-ui-fullscreen--on": Z.value,
930
+ "vue-data-ui-fulscreen--off": !Z.value
931
+ }),
932
+ viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
933
+ style: b(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.color}`),
934
+ tabindex: "0",
935
+ "aria-describedby": `chart-instructions-${k.value}`,
936
+ onFocus: xn,
937
+ onBlur: Sn,
938
+ onKeydown: Cn
939
+ }, [
940
+ g(E(ht)),
941
+ t.$slots["chart-background"] ? (x(), m("foreignObject", {
942
+ key: 0,
943
+ x: G.value.left,
944
+ y: G.value.top,
945
+ width: Math.max(.1, G.value.width),
946
+ height: Math.max(.1, G.value.height),
947
+ style: { pointerEvents: "none" }
948
+ }, [w(t.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : p("", !0),
949
+ h("defs", null, [g(ye, {
950
+ t: "linear",
951
+ id: `age_pyramid_left_${k.value}`,
952
+ x1: "0%",
953
+ y1: "0%",
954
+ x2: "100%",
955
+ y2: "0%",
956
+ stops: [[
957
+ "0%",
958
+ R.value.style.layout.bars.left.color,
959
+ 1
960
+ ], [
961
+ "100%",
962
+ E(ae)(E(n)(R.value.style.layout.bars.left.color, R.value.style.layout.bars.gradient.shiftHue), 100 - R.value.style.layout.bars.gradient.intensity),
963
+ 1
964
+ ]]
965
+ }, null, 8, ["id", "stops"]), g(ye, {
966
+ t: "linear",
967
+ id: `age_pyramid_right_${k.value}`,
968
+ x1: "0%",
969
+ y1: "0%",
970
+ x2: "100%",
971
+ y2: "0%",
972
+ stops: [[
973
+ "0%",
974
+ E(ae)(E(n)(R.value.style.layout.bars.right.color, R.value.style.layout.bars.gradient.shiftHue), 100 - R.value.style.layout.bars.gradient.intensity),
975
+ 1
976
+ ], [
977
+ "100%",
978
+ R.value.style.layout.bars.right.color,
979
+ 1
980
+ ]]
981
+ }, null, 8, ["id", "stops"])]),
982
+ (x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", null, [
983
+ h("rect", {
984
+ x: e.left.x,
985
+ y: e.left.y,
986
+ width: E(l)(e.left.width <= 0 ? 1e-4 : e.left.width),
987
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
988
+ fill: R.value.style.layout.bars.gradient.underlayer,
989
+ rx: R.value.style.layout.bars.borderRadius
990
+ }, null, 8, He),
991
+ h("rect", {
992
+ x: e.left.x,
993
+ y: e.left.y,
994
+ width: e.left.width <= 0 ? 1e-4 : e.left.width,
995
+ height: e.left.height <= 0 ? 1e-4 : e.left.height,
996
+ fill: R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : e.left.color,
997
+ rx: R.value.style.layout.bars.borderRadius
998
+ }, null, 8, Ue),
999
+ h("rect", {
1000
+ x: e.right.x,
1001
+ y: e.right.y,
1002
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1003
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1004
+ fill: R.value.style.layout.bars.gradient.underlayer,
1005
+ rx: R.value.style.layout.bars.borderRadius
1006
+ }, null, 8, We),
1007
+ h("rect", {
1008
+ x: e.right.x,
1009
+ y: e.right.y,
1010
+ width: e.right.width <= 0 ? 1e-4 : e.right.width,
1011
+ height: e.right.height <= 0 ? 1e-4 : e.right.height,
1012
+ fill: R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : e.right.color,
1013
+ rx: R.value.style.layout.bars.borderRadius
1014
+ }, null, 8, Ge)
1015
+ ]))), 256)),
1016
+ h("g", null, [
1017
+ R.value.style.layout.dataLabels.sideTitles.show ? (x(), m("g", Ke, [h("text", {
1018
+ x: G.value.left,
1019
+ y: R.value.style.layout.dataLabels.sideTitles.fontSize,
1020
+ fill: R.value.style.layout.dataLabels.sideTitles.useSideColor ? R.value.style.layout.bars.left.color : R.value.style.layout.dataLabels.sideTitles.color,
1021
+ "font-size": R.value.style.layout.dataLabels.sideTitles.fontSize,
1022
+ "text-anchor": "start",
1023
+ "font-weight": R.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1024
+ }, T(R.value.translations.female), 9, qe), h("text", {
1025
+ x: G.value.right,
1026
+ y: R.value.style.layout.dataLabels.sideTitles.fontSize,
1027
+ fill: R.value.style.layout.dataLabels.sideTitles.useSideColor ? R.value.style.layout.bars.right.color : R.value.style.layout.dataLabels.sideTitles.color,
1028
+ "font-size": R.value.style.layout.dataLabels.sideTitles.fontSize,
1029
+ "text-anchor": "end",
1030
+ "font-weight": R.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
1031
+ }, T(R.value.translations.male), 9, Je)])) : p("", !0),
1032
+ R.value.style.layout.dataLabels.yAxis.show ? (x(), m("g", Ye, [(x(!0), m(u, null, C(Qt.value, (e, t) => (x(), m(u, null, [t % R.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (x(), m("text", {
1033
+ key: 0,
1034
+ x: G.value.centerX,
1035
+ y: G.value.top + G.value.height / J.value * t + R.value.style.layout.dataLabels.yAxis.fontSize / 3,
1036
+ "text-anchor": "middle",
1037
+ "font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
1038
+ fill: R.value.style.layout.dataLabels.yAxis.color,
1039
+ "font-weight": R.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
1040
+ }, T(E(c)(R.value.style.layout.dataLabels.yAxis.formatter, e, E(s)({ v: e }), {
1041
+ datapoint: e,
1042
+ seriesIndex: t
1043
+ })), 9, Xe)) : p("", !0)], 64))), 256))])) : p("", !0),
1044
+ R.value.style.layout.dataLabels.xAxis.show ? (x(), m("g", Ze, [
1045
+ R.value.style.layout.grid.show ? (x(), m("g", Qe, [h("line", {
1046
+ x1: K.value.right[0].x,
1047
+ x2: K.value.right.at(-1).x,
1048
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1049
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1050
+ stroke: R.value.style.layout.grid.stroke,
1051
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1052
+ "stroke-linecap": "round"
1053
+ }, null, 8, $e), h("line", {
1054
+ x1: K.value.left[0].x,
1055
+ x2: K.value.left.at(-1).x,
1056
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1057
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1058
+ stroke: R.value.style.layout.grid.stroke,
1059
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1060
+ "stroke-linecap": "round"
1061
+ }, null, 8, et)])) : p("", !0),
1062
+ (x(!0), m(u, null, C(K.value.right, (e, t) => (x(), m("g", null, [R.value.style.layout.grid.show ? (x(), m("line", {
1063
+ key: 0,
1064
+ x1: e.x,
1065
+ x2: e.x,
1066
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1067
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1068
+ stroke: R.value.style.layout.grid.stroke,
1069
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1070
+ "stroke-linecap": "round"
1071
+ }, null, 8, tt)) : p("", !0)]))), 256)),
1072
+ (x(!0), m(u, null, C(K.value.left, (e, t) => (x(), m("g", null, [R.value.style.layout.grid.show ? (x(), m("line", {
1073
+ key: 0,
1074
+ x1: e.x,
1075
+ x2: e.x,
1076
+ y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
1077
+ y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
1078
+ stroke: R.value.style.layout.grid.stroke,
1079
+ "stroke-width": R.value.style.layout.grid.strokeWidth,
1080
+ "stroke-linecap": "round"
1081
+ }, null, 8, nt)) : p("", !0)]))), 256)),
1082
+ h("g", {
1083
+ ref_key: "xAxisLabels",
1084
+ ref: kt
1085
+ }, [(x(!0), m(u, null, C(K.value.right, (e, t) => (x(), m("text", {
1086
+ class: "vue-ui-age-pyramid-x-axis-label",
1087
+ "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
1088
+ fill: R.value.style.layout.dataLabels.xAxis.color,
1089
+ "text-anchor": R.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : R.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1090
+ "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1091
+ transform: `translate(${e.x}, ${G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${R.value.style.layout.dataLabels.xAxis.rotation})`
1092
+ }, T(E(c)(R.value.style.layout.dataLabels.xAxis.formatter, e.value / R.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / R.value.style.layout.dataLabels.xAxis.scale }), {
1093
+ datapoint: e,
1094
+ seriesIndex: t
1095
+ })), 9, rt))), 256)), (x(!0), m(u, null, C(K.value.left, (e, t) => (x(), m("text", {
1096
+ class: "vue-ui-age-pyramid-x-axis-label",
1097
+ "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
1098
+ fill: R.value.style.layout.dataLabels.xAxis.color,
1099
+ "text-anchor": R.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : R.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
1100
+ "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1101
+ transform: `translate(${e.x}, ${G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${R.value.style.layout.dataLabels.xAxis.rotation})`
1102
+ }, T(E(c)(R.value.style.layout.dataLabels.xAxis.formatter, e.value / R.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / R.value.style.layout.dataLabels.xAxis.scale }), {
1103
+ datapoint: e,
1104
+ seriesIndex: t
1105
+ })), 9, it))), 256))], 512),
1106
+ h("text", {
1107
+ x: G.value.right,
1108
+ y: W.value.height,
1109
+ "text-anchor": "end",
1110
+ "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
1111
+ fill: R.value.style.layout.dataLabels.xAxis.color,
1112
+ "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
1113
+ }, T(R.value.style.layout.dataLabels.xAxis.translation), 9, at)
1114
+ ])) : p("", !0)
1115
+ ]),
1116
+ (x(!0), m(u, null, C(e.dataset, (e, t) => (x(), m("g", null, [h("rect", {
1117
+ x: G.value.left,
1118
+ y: G.value.top + G.value.height / J.value * t - R.value.style.layout.bars.gap / 2,
1119
+ width: G.value.width <= 0 ? 1e-4 : G.value.width,
1120
+ height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
1121
+ fill: j.value !== null && j.value === t ? E(ae)(R.value.style.highlighter.color, R.value.style.highlighter.opacity) : "transparent",
1122
+ onMouseover: (n) => sn(t, e, "pointer"),
1123
+ onMouseleave: (n) => an(t, e),
1124
+ onClick: (n) => rn(t, e)
1125
+ }, null, 40, ot)]))), 256)),
1126
+ w(t.$slots, "svg", { svg: {
1127
+ ...W.value,
1128
+ drawingArea: G.value,
1129
+ isPrintingImg: E(Ut) || E(Wt) || P.value,
1130
+ isPrintingSvg: F.value
1131
+ } }, void 0, !0)
1132
+ ], 46, Be)), t.$slots.hint ? (x(), m("div", st, [w(t.$slots, "hint", y(v({
1133
+ hint: R.value.a11y.translations.keyboardNavigation,
1134
+ isVisible: Mt.value
1135
+ })), void 0, !0)])) : p("", !0)]),
1136
+ t.$slots.watermark ? (x(), m("div", ct, [w(t.$slots, "watermark", y(v({ isPrinting: E(Ut) || E(Wt) || P.value || F.value })), void 0, !0)])) : p("", !0),
1137
+ w(t.$slots, "legend", { legend: Y.value }, void 0, !0),
1138
+ t.$slots.source ? (x(), m("div", {
1139
+ key: 6,
1140
+ ref_key: "source",
1141
+ ref: Tt,
1142
+ dir: "auto"
1143
+ }, [w(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
1144
+ g(E(lt), {
1145
+ teleportTo: R.value.style.tooltip.teleportTo,
1146
+ show: U.value.showTooltip && A.value,
1147
+ backgroundColor: R.value.style.tooltip.backgroundColor,
1148
+ color: R.value.style.tooltip.color,
1149
+ borderRadius: R.value.style.tooltip.borderRadius,
1150
+ borderColor: R.value.style.tooltip.borderColor,
1151
+ borderWidth: R.value.style.tooltip.borderWidth,
1152
+ fontSize: R.value.style.tooltip.fontSize,
1153
+ backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
1154
+ position: R.value.style.tooltip.position,
1155
+ offsetX: R.value.style.tooltip.offsetX,
1156
+ offsetY: R.value.style.tooltip.offsetY,
1157
+ parent: M.value,
1158
+ content: St.value,
1159
+ isFullscreen: Z.value,
1160
+ isCustom: R.value.style.tooltip.customFormat && typeof R.value.style.tooltip.customFormat == "function",
1161
+ smooth: R.value.style.tooltip.smooth,
1162
+ backdropFilter: R.value.style.tooltip.backdropFilter,
1163
+ smoothForce: R.value.style.tooltip.smoothForce,
1164
+ smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
1165
+ isA11yMode: L.value === "keyboard",
1166
+ a11yPosition: jt.value
1167
+ }, {
1168
+ "tooltip-before": D(() => [w(t.$slots, "tooltip-before", y(v({ ...tn.value })), void 0, !0)]),
1169
+ tooltip: D(() => [w(t.$slots, "tooltip", y(v({ ...tn.value })), void 0, !0)]),
1170
+ "tooltip-after": D(() => [w(t.$slots, "tooltip-after", y(v({ ...tn.value })), void 0, !0)]),
1171
+ _: 3
1172
+ }, 8, [
1173
+ "teleportTo",
1174
+ "show",
1175
+ "backgroundColor",
1176
+ "color",
1177
+ "borderRadius",
1178
+ "borderColor",
1179
+ "borderWidth",
1180
+ "fontSize",
1181
+ "backgroundOpacity",
1182
+ "position",
1183
+ "offsetX",
1184
+ "offsetY",
1185
+ "parent",
1186
+ "content",
1187
+ "isFullscreen",
1188
+ "isCustom",
1189
+ "smooth",
1190
+ "backdropFilter",
1191
+ "smoothForce",
1192
+ "smoothSnapThreshold",
1193
+ "isA11yMode",
1194
+ "a11yPosition"
1195
+ ]),
1196
+ xt.value && R.value.userOptions.buttons.table ? (x(), f(je($.value.component), Ee({ key: 7 }, $.value.props, {
1197
+ ref_key: "tableUnit",
1198
+ ref: N,
1199
+ onClose: mn
1200
+ }), we({
1201
+ content: D(() => [(x(), f(E(ft), {
1202
+ key: `table_${Ot.value}`,
1203
+ colNames: X.value.colNames,
1204
+ head: X.value.head,
1205
+ body: X.value.body,
1206
+ config: X.value.config,
1207
+ title: R.value.table.useDialog ? "" : $.value.title,
1208
+ withCloseButton: !R.value.table.useDialog,
1209
+ isCursorPointer: z.value,
1210
+ onClose: mn
1211
+ }, {
1212
+ th: D(({ th: e }) => [Te(T(e), 1)]),
1213
+ td: D(({ td: e }) => [Te(T(e), 1)]),
1214
+ _: 1
1215
+ }, 8, [
1216
+ "colNames",
1217
+ "head",
1218
+ "body",
1219
+ "config",
1220
+ "title",
1221
+ "withCloseButton",
1222
+ "isCursorPointer"
1223
+ ]))]),
1224
+ _: 2
1225
+ }, [R.value.table.useDialog ? {
1226
+ name: "title",
1227
+ fn: D(() => [Te(T($.value.title), 1)]),
1228
+ key: "0"
1229
+ } : void 0, R.value.table.useDialog ? {
1230
+ name: "actions",
1231
+ fn: D(() => [h("button", {
1232
+ tabindex: "0",
1233
+ class: "vue-ui-user-options-button",
1234
+ onClick: r[0] ||= (e) => cn(R.value.userOptions.callbacks.csv),
1235
+ style: b({ cursor: z.value ? "pointer" : "default" })
1236
+ }, [g(E(ut), {
1237
+ name: "fileCsv",
1238
+ stroke: $.value.props.color
1239
+ }, null, 8, ["stroke"])], 4)]),
1240
+ key: "1"
1241
+ } : void 0]), 1040)) : p("", !0),
1242
+ w(t.$slots, "skeleton", {}, () => [E(Pt) ? (x(), f(le, { key: 0 })) : p("", !0)], !0)
1243
+ ], 46, Le));
1244
+ }
1245
+ }, [["__scopeId", "data-v-e113be83"]]);
1246
+ //#endregion
1247
+ export { Ie as n, lt as t };