vue-data-ui 3.15.12 → 3.16.1

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 (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -0,0 +1,1437 @@
1
+ import { defineAsyncComponent as ye, ref as d, computed as v, toRefs as Ro, watch as ce, nextTick as ae, onBeforeUnmount as Bt, onMounted as Eo, openBlock as b, createElementBlock as P, normalizeStyle as ge, normalizeClass as jt, createElementVNode as W, toDisplayString as _t, createBlock as U, createCommentVNode as S, unref as w, withCtx as N, renderSlot as k, normalizeProps as $, guardReactiveProps as T, createSlots as Bo, createVNode as Gt, Fragment as be, renderList as ke, mergeProps as jo } from "vue";
2
+ import { j as _o, t as zt, s as qe, X as Go, T as Lt, a3 as zo } from "./lib-DBptbyyI.js";
3
+ import { u as Lo } from "./usePanZoom-CDF7rb3o.js";
4
+ import { t as Zo, u as Wo } from "./useResponsive-DfdjqQps.js";
5
+ import { u as Do } from "./useConfig-DO94Aj5s.js";
6
+ import { u as Yo, B as Xo } from "./BaseScanner-BhhkKVoj.js";
7
+ import { u as qo } from "./usePrinter-CEpYU3r5.js";
8
+ import { u as Ho } from "./useSvgExport-ByUukOZt.js";
9
+ import { u as He } from "./useNestedProp-Bf5XFbs8.js";
10
+ import { u as Uo } from "./useThemeCheck-D1ZYXUwG.js";
11
+ import { u as Vo } from "./useUserOptionState-BIvW1Kz7.js";
12
+ import { u as Ko } from "./useChartAccessibility-9icAAmYg.js";
13
+ import Jo from "./img-LXxMLmCg.js";
14
+ import { g as Qo } from "./geoProjections-D0Vxsz_O.js";
15
+ import en from "./Title-BeMKE1cj.js";
16
+ import tn from "./vue_ui_geo--kg4VoVX.js";
17
+ import { A as on } from "./A11yDataTable-KcVAX2cP.js";
18
+ import { B as Zt } from "./BaseZoomControls-DievbOeJ.js";
19
+ import { _ as nn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
+ const rn = ["id"], an = ["id"], ln = { style: { position: "relative" } }, sn = ["xmlns", "viewBox", "aria-describedby", "id"], un = ["transform"], cn = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], fn = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], dn = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter"], vn = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], mn = ["x", "y", "fill", "font-size"], hn = {
21
+ key: 0,
22
+ style: { position: "absolute", top: "100%", left: "0", width: "100%" },
23
+ "data-dom-to-png-ignore": "",
24
+ "aria-hidden": "true"
25
+ }, pn = {
26
+ key: 6,
27
+ class: "vue-data-ui-watermark"
28
+ }, Wt = 1.5, yn = {
29
+ __name: "vue-ui-geo",
30
+ props: {
31
+ config: {
32
+ type: Object,
33
+ default() {
34
+ return {};
35
+ }
36
+ },
37
+ dataset: {
38
+ type: [Array, Object],
39
+ default() {
40
+ return [];
41
+ }
42
+ }
43
+ },
44
+ emits: ["copyAlt"],
45
+ setup(Dt, { expose: Yt, emit: Xt }) {
46
+ const qt = ye(() => import("./Tooltip-Bf-kM3_A.js")), Ht = ye(() => import("./UserOptions-rW2fRf3V.js")), Ut = ye(() => import("./PenAndPaper-Ct3qJ4lA.js")), Vt = ye(() => import("./PackageVersion-DPO-OOVI.js")), V = Dt, Kt = Xt, { vue_ui_geo: Jt } = Do(), { isThemeValid: Qt, warnInvalidTheme: eo } = Uo(), M = d(_o()), we = d(0), Ue = d(0), fe = d(!1), de = d(!1), R = d(null), _ = d(!1), ve = d(null), Ve = d(null), Ke = d(null), Je = d(null), K = d(null), J = d(null), Qe = d(null), et = d(null), x = d(null), tt = d({ x: 0, y: 0 }), Q = d("pointer"), Ce = d(!1), G = d(!1);
47
+ function ot(e) {
48
+ G.value = e, we.value += 1;
49
+ }
50
+ function Ae() {
51
+ const e = He({
52
+ userConfig: V.config,
53
+ defaultConfig: Jt
54
+ }), o = e.theme;
55
+ if (!o) return e;
56
+ if (!Qt.value(e))
57
+ return eo(e), e;
58
+ const t = He({
59
+ userConfig: tn[o] || V.config,
60
+ defaultConfig: e
61
+ });
62
+ return He({
63
+ userConfig: V.config,
64
+ defaultConfig: t
65
+ });
66
+ }
67
+ const i = d(Ae()), le = v(() => i.value.userOptions.useCursorPointer), { userOptionsVisible: nt, keepUserOptionState: it } = Vo({
68
+ config: i.value
69
+ }), { svgRef: D } = Ko({
70
+ config: i.value.style.chart.title
71
+ }), to = v(() => zt({
72
+ defaultConfig: {
73
+ map: {
74
+ geoJson: {
75
+ type: "FeatureCollection",
76
+ features: [
77
+ {
78
+ type: "Feature",
79
+ properties: { name: "Island A" },
80
+ geometry: {
81
+ type: "Polygon",
82
+ coordinates: [
83
+ [
84
+ [-6, 2],
85
+ [-4, 2],
86
+ [-4, 4],
87
+ [-6, 4],
88
+ [-6, 2]
89
+ ]
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ type: "Feature",
95
+ properties: { name: "Island B" },
96
+ geometry: {
97
+ type: "Polygon",
98
+ coordinates: [
99
+ [
100
+ [-2, -1],
101
+ [1, -1],
102
+ [1, 2],
103
+ [-2, 2],
104
+ [-2, -1]
105
+ ]
106
+ ]
107
+ }
108
+ },
109
+ {
110
+ type: "Feature",
111
+ properties: { name: "Island C" },
112
+ geometry: {
113
+ type: "Polygon",
114
+ coordinates: [
115
+ [
116
+ [3, -3],
117
+ [5, -3],
118
+ [5, -1],
119
+ [3, -1],
120
+ [3, -3]
121
+ ]
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ type: "Feature",
127
+ properties: { name: "Island D" },
128
+ geometry: {
129
+ type: "Polygon",
130
+ coordinates: [
131
+ [
132
+ [4, 3],
133
+ [7, 3],
134
+ [7, 5],
135
+ [4, 5],
136
+ [4, 3]
137
+ ]
138
+ ]
139
+ }
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ userOptions: { show: !1 },
145
+ style: {
146
+ chart: {
147
+ backgroundColor: "#99999930",
148
+ territory: {
149
+ fill: "#99999950",
150
+ stroke: "#8A8A8A",
151
+ strokeWidth: 0.5
152
+ }
153
+ }
154
+ }
155
+ },
156
+ userConfig: i.value.skeletonConfig ?? {}
157
+ })), { loading: Ne, FINAL_DATASET: Fe } = Yo({
158
+ ...Ro(V),
159
+ FINAL_CONFIG: i,
160
+ prepareConfig: Ae,
161
+ allowEmptyDataset: !0,
162
+ skeletonDataset: V.config?.skeletonDataset ?? [],
163
+ skeletonConfig: zt({
164
+ defaultConfig: i.value,
165
+ userConfig: to.value
166
+ })
167
+ }), { isPrinting: Pe, isImaging: $e, generatePdf: rt, generateImage: at } = qo({
168
+ elementId: `vue-ui-geo_${M.value}`,
169
+ fileName: i.value.style.chart.title.text || "vue-ui-geo",
170
+ options: i.value.userOptions.print
171
+ }), oo = v(() => i.value.style.chart.controls.show ? i.value.style.chart.controls.position === "top" ? Qe.value?.$el ?? null : i.value.style.chart.controls.position === "bottom" ? et.value?.$el ?? null : null : null);
172
+ function Te() {
173
+ K.value && (J.value && K.value.unobserve(J.value), K.value.disconnect(), K.value = null, J.value = null);
174
+ }
175
+ const ee = v(() => !!i.value.responsive && !G.value);
176
+ ce(
177
+ () => G.value,
178
+ async (e) => {
179
+ if (e) {
180
+ Te(), te.value = Number(i.value.style.chart.dimensions.width) || te.value, z.value = Number(i.value.style.chart.dimensions.height) || z.value, await ae(), _.value = !1, requestAnimationFrame(() => {
181
+ _.value || he();
182
+ });
183
+ return;
184
+ }
185
+ i.value.responsive && (await ae(), xe());
186
+ }
187
+ );
188
+ function xe() {
189
+ if (Te(), !ee.value) return;
190
+ const e = Zo(() => {
191
+ if (!R.value) return;
192
+ const { width: o, height: t } = Wo({
193
+ chart: R.value,
194
+ noTitle: lt.value ? Ke.value : null,
195
+ title: i.value.style.chart.title.text ? Ve.value : null,
196
+ legend: oo.value,
197
+ source: Je.value
198
+ });
199
+ requestAnimationFrame(() => {
200
+ te.value = Math.max(0.1, Number(o) || 0.1), z.value = Math.max(0.1, Number(t) || 0.1) - 24;
201
+ });
202
+ });
203
+ K.value = new ResizeObserver(e), J.value = R.value ? R.value.parentNode : null, J.value && K.value.observe(J.value), e();
204
+ }
205
+ const lt = v(() => i.value.userOptions.show && !i.value.style.chart.title.text), se = d({
206
+ showTooltip: i.value.style.chart.tooltip.show
207
+ }), E = d(i.value.style.chart.zoom.active);
208
+ ce(
209
+ () => V.config,
210
+ () => {
211
+ i.value = Ae(), se.value.showTooltip = i.value.style.chart.tooltip.show, E.value = i.value.style.chart.zoom.active, te.value = i.value.style.chart.dimensions.width, z.value = i.value.style.chart.dimensions.height, xe(), Ue.value += 1, we.value += 1;
212
+ },
213
+ { deep: !0 }
214
+ );
215
+ const { projections: st } = Qo, ut = v(() => i.value?.projection || "equirectangular"), no = v(() => {
216
+ const e = st?.[ut.value];
217
+ return typeof e == "function" ? e : st.equirectangular;
218
+ }), ct = v(() => i.value.map.geoJson ?? null), ft = {
219
+ aitoff: { width: 1e3, height: 500 },
220
+ azimuthalEquidistant: { width: 1e3, height: 1e3 },
221
+ bonne: { width: 1e3, height: 1e3 },
222
+ equirectangular: { width: 1e3, height: 700 },
223
+ gallPeters: { width: 1e3, height: 800 },
224
+ globe: { width: 1e3, height: 1e3 },
225
+ hammer: { width: 1e3, height: 500 },
226
+ mercator: { width: 1e3, height: 750 },
227
+ mollweide: { width: 1e3, height: 600 },
228
+ robinson: { width: 1e3, height: 600 },
229
+ sinusoidal: { width: 1e3, height: 500 },
230
+ vanDerGrinten: { width: 1e3, height: 1e3 },
231
+ winkelTripel: { width: 1e3, height: 1e3 }
232
+ }, te = d(i.value.style.chart.dimensions.width), z = d(i.value.style.chart.dimensions.height), Ie = v(() => {
233
+ const e = ft[ut.value] || ft.equirectangular;
234
+ return { width: e.width, height: e.height };
235
+ }), I = v(() => {
236
+ const e = Ie.value, o = te.value, t = z.value, n = Number.isFinite(o) && o > 0, r = Number.isFinite(t) && t > 0;
237
+ if (n && r)
238
+ return { width: o, height: t };
239
+ if (n && !r) {
240
+ const a = e.height / e.width;
241
+ return { width: o, height: o * a };
242
+ }
243
+ if (!n && r) {
244
+ const a = e.width / e.height;
245
+ return { width: t * a, height: t };
246
+ }
247
+ return { width: e.width, height: e.height };
248
+ }), io = v(() => {
249
+ const e = i.value?.map?.center, o = [0, 0];
250
+ if (!Array.isArray(e) || e.length !== 2) return o;
251
+ const t = Number(e[0]), n = Number(e[1]);
252
+ return !Number.isFinite(t) || !Number.isFinite(n) ? o : [t, n];
253
+ });
254
+ function oe([e, o]) {
255
+ return no.value(
256
+ [e, o],
257
+ Ie.value.width,
258
+ Ie.value.height,
259
+ io.value
260
+ );
261
+ }
262
+ function ro(e, o = {}) {
263
+ const {
264
+ defaultName: t = "",
265
+ namePropertyCandidates: n = [
266
+ "name",
267
+ "nom",
268
+ "admin",
269
+ "NAME",
270
+ "label",
271
+ "title",
272
+ "description",
273
+ "DESCRIPTION",
274
+ "NAME_1",
275
+ "NAME_2",
276
+ "NAME_3",
277
+ "NAME_EN",
278
+ "name:en",
279
+ "name_en",
280
+ "localname",
281
+ "local_name"
282
+ ],
283
+ includeNullGeometries: r = !1
284
+ } = o, a = { type: "FeatureCollection", features: [] };
285
+ function l(c) {
286
+ return c !== null && typeof c == "object" && !Array.isArray(c);
287
+ }
288
+ function f(c) {
289
+ return !l(c) || typeof c.type != "string" ? !1 : c.type === "GeometryCollection" ? Array.isArray(c.geometries) : Object.hasOwn(c, "coordinates");
290
+ }
291
+ function u(c) {
292
+ if (!l(c)) return "";
293
+ for (const y of n) {
294
+ const A = c[y];
295
+ if (typeof A == "string" && A.trim())
296
+ return A.trim();
297
+ }
298
+ return "";
299
+ }
300
+ function s({ geometry: c, properties: y, fallbackName: A, featureIndex: m }) {
301
+ const g = l(y) ? { ...y } : {}, j = u(g), F = t ? `${t} ${m + 1}` : "", re = j || (typeof A == "string" ? A.trim() : "") || F;
302
+ return !g.name && re && (g.name = re), {
303
+ type: "Feature",
304
+ geometry: c,
305
+ properties: g
306
+ };
307
+ }
308
+ function h(c, y, A, m, g) {
309
+ const j = Array.isArray(c?.geometries) ? c.geometries : [];
310
+ let F = m;
311
+ for (let re = 0; re < j.length; re += 1) {
312
+ const Z = j[re];
313
+ if (Z) {
314
+ if (l(Z) && Z.type === "GeometryCollection") {
315
+ F = h(
316
+ Z,
317
+ y,
318
+ A,
319
+ F,
320
+ g
321
+ );
322
+ continue;
323
+ }
324
+ if (f(Z)) {
325
+ if (Z.coordinates == null && Z.type !== "GeometryCollection") {
326
+ r && (g.push(
327
+ s({
328
+ geometry: null,
329
+ properties: y,
330
+ fallbackName: A,
331
+ featureIndex: F
332
+ })
333
+ ), F += 1);
334
+ continue;
335
+ }
336
+ g.push(
337
+ s({
338
+ geometry: Z,
339
+ properties: y,
340
+ fallbackName: A,
341
+ featureIndex: F
342
+ })
343
+ ), F += 1;
344
+ }
345
+ }
346
+ }
347
+ return F;
348
+ }
349
+ function p(c, y, A = 0) {
350
+ let m = A;
351
+ if (c == null) return m;
352
+ if (Array.isArray(c)) {
353
+ for (const g of c)
354
+ m = p(g, y, m);
355
+ return m;
356
+ }
357
+ if (!l(c) || typeof c.type != "string")
358
+ return m;
359
+ if (c.type === "FeatureCollection") {
360
+ const g = Array.isArray(c.features) ? c.features : [];
361
+ for (const j of g)
362
+ m = p(j, y, m);
363
+ return m;
364
+ }
365
+ if (c.type === "Feature") {
366
+ const g = l(c.properties) ? c.properties : {}, j = u(g), F = c.geometry ?? null;
367
+ return F == null ? (r && (y.push(
368
+ s({
369
+ geometry: null,
370
+ properties: g,
371
+ fallbackName: j,
372
+ featureIndex: m
373
+ })
374
+ ), m += 1), m) : l(F) && F.type === "GeometryCollection" ? h(
375
+ F,
376
+ g,
377
+ j,
378
+ m,
379
+ y
380
+ ) : (f(F) && (y.push(
381
+ s({
382
+ geometry: F,
383
+ properties: g,
384
+ fallbackName: j,
385
+ featureIndex: m
386
+ })
387
+ ), m += 1), m);
388
+ }
389
+ return c.type === "GeometryCollection" ? h(c, {}, "", m, y) : (f(c) && (y.push(
390
+ s({
391
+ geometry: c,
392
+ properties: {},
393
+ fallbackName: "",
394
+ featureIndex: m
395
+ })
396
+ ), m += 1), m);
397
+ }
398
+ const C = [];
399
+ return p(e, C, 0), { ...a, features: C };
400
+ }
401
+ function ao(e) {
402
+ const o = Array.isArray(e?.features) ? e.features : [];
403
+ function t(n) {
404
+ if (!n || typeof n != "object") return "";
405
+ const r = [
406
+ n.name,
407
+ n.nom,
408
+ n.admin,
409
+ n.NAME,
410
+ n.label,
411
+ n.title,
412
+ n.description,
413
+ n.DESCRIPTION,
414
+ n.NAME_1,
415
+ n.NAME_2,
416
+ n.NAME_3,
417
+ n.NAME_EN,
418
+ n["name:en"],
419
+ n.name_en,
420
+ n.localname,
421
+ n.local_name
422
+ ];
423
+ for (const a of r)
424
+ if (typeof a == "string" && a.trim()) return a.trim();
425
+ for (const a of Object.values(n))
426
+ if (typeof a == "string" && a.trim()) return a.trim();
427
+ return "";
428
+ }
429
+ return o.filter((n) => n && n.type === "Feature" && n.geometry).map((n, r) => {
430
+ const a = n.properties || {}, l = t(a);
431
+ return {
432
+ feature: n,
433
+ geometry: n.geometry,
434
+ properties: a,
435
+ name: l,
436
+ uid: `map-feature-${M.value}-${r}`,
437
+ index: r
438
+ };
439
+ });
440
+ }
441
+ const lo = v(
442
+ () => ro(ct.value, {
443
+ defaultName: "",
444
+ includeNullGeometries: !1
445
+ })
446
+ ), me = v(
447
+ () => ao(lo.value)
448
+ );
449
+ function Se(e) {
450
+ if (!e || typeof e.type != "string") return "";
451
+ if (e.type === "GeometryCollection")
452
+ return (Array.isArray(e.geometries) ? e.geometries : []).map((a) => Se(a)).filter(Boolean).join(" ");
453
+ const o = (r) => {
454
+ if (!Array.isArray(r) || r.length < 2) return null;
455
+ const a = Number(r[0]), l = Number(r[1]);
456
+ if (!Number.isFinite(a) || !Number.isFinite(l)) return null;
457
+ const f = oe([a, l]);
458
+ if (!Array.isArray(f) || f.length < 2) return null;
459
+ const u = Number(f[0]), s = Number(f[1]);
460
+ return !Number.isFinite(u) || !Number.isFinite(s) ? null : [u, s];
461
+ }, t = (r) => {
462
+ const a = (r || []).map(o).filter(Boolean);
463
+ return a.length < 2 ? "" : "M" + a.map(([l, f]) => `${l},${f}`).join("L");
464
+ }, n = (r) => (r || []).map((a) => {
465
+ const l = t(a);
466
+ return l ? l + "Z" : "";
467
+ }).filter(Boolean).join(" ");
468
+ return e.type === "Polygon" ? n(e.coordinates) : e.type === "MultiPolygon" ? (e.coordinates || []).map(n).filter(Boolean).join(" ") : e.type === "LineString" ? t(e.coordinates) : e.type === "MultiLineString" ? (e.coordinates || []).map(t).filter(Boolean).join(" ") : "";
469
+ }
470
+ function dt(e) {
471
+ return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap((t) => dt(t)) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" ? Array.isArray(e.coordinates) ? e.coordinates : [] : [] : [];
472
+ }
473
+ function vt(e) {
474
+ return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((t) => vt(t)) : e.type === "Point" || e.type === "MultiPoint";
475
+ }
476
+ const so = v(
477
+ () => me.value.filter((e) => {
478
+ const o = e.geometry;
479
+ return o ? o.type === "GeometryCollection" ? (Array.isArray(o.geometries) ? o.geometries : []).some(
480
+ (n) => n?.type === "Polygon" || n?.type === "MultiPolygon"
481
+ ) : o.type === "Polygon" || o.type === "MultiPolygon" : !1;
482
+ })
483
+ ), uo = v(
484
+ () => me.value.filter((e) => {
485
+ const o = e.geometry;
486
+ return o ? o.type === "GeometryCollection" ? (Array.isArray(o.geometries) ? o.geometries : []).some(
487
+ (n) => n?.type === "LineString" || n?.type === "MultiLineString"
488
+ ) : o.type === "LineString" || o.type === "MultiLineString" : !1;
489
+ })
490
+ ), co = v(
491
+ () => me.value.filter((e) => {
492
+ const o = e.geometry;
493
+ return o ? vt(o) : !1;
494
+ })
495
+ ), mt = v(() => so.value.map((e) => {
496
+ const o = Se(e.geometry);
497
+ return o ? { ...e, path: o } : null;
498
+ }).filter(Boolean)), ht = v(() => uo.value.map((e) => {
499
+ const o = Se(e.geometry);
500
+ return o ? { ...e, path: o } : null;
501
+ }).filter(Boolean)), pt = v(() => {
502
+ const e = [];
503
+ function o(t = {}) {
504
+ const n = t?.style && typeof t.style == "object" ? t.style : {}, r = t.radius ?? t.r ?? n.radius ?? n.r, a = t.color ?? t.fill ?? n.color ?? n.fill, l = t.stroke ?? n.stroke, f = t.strokeWidth ?? t.stroke_width ?? n.strokeWidth ?? n.stroke_width, u = Number.isFinite(Number(r)) ? Number(r) : Number(i.value.style.chart.points.radius), s = a != null && String(a).trim() ? qe(String(a).trim()) : i.value.style.chart.points.fill, h = l != null && String(l).trim() ? qe(String(l).trim()) : i.value.style.chart.points.stroke, p = Number.isFinite(Number(f)) ? Number(f) : Number(i.value.style.chart.points.strokeWidth);
505
+ return { radius: u, fill: s, stroke: h, strokeWidth: p };
506
+ }
507
+ for (const t of co.value) {
508
+ const n = dt(t.geometry);
509
+ for (let r = 0; r < n.length; r += 1) {
510
+ const a = n[r];
511
+ if (!Array.isArray(a) || a.length < 2) continue;
512
+ const l = Number(a[0]), f = Number(a[1]);
513
+ if (!Number.isFinite(l) || !Number.isFinite(f)) continue;
514
+ const u = oe([l, f]), s = u?.[0], h = u?.[1];
515
+ if (!Number.isFinite(s) || !Number.isFinite(h)) continue;
516
+ const p = t?.feature?.properties && typeof t.feature.properties == "object" ? t.feature.properties : {}, C = o(p);
517
+ e.push({
518
+ uid: `${t.uid}-geojson-point-${r}`,
519
+ name: t.name || "",
520
+ x: s,
521
+ y: h,
522
+ ...C,
523
+ originalFeature: t.feature,
524
+ featureIndex: t.index,
525
+ pointIndex: r
526
+ });
527
+ }
528
+ }
529
+ return e;
530
+ });
531
+ function yt(e) {
532
+ if (!e || typeof e.type != "string") return [];
533
+ const o = [], t = (r) => {
534
+ if (!Array.isArray(r) || r.length < 2) return;
535
+ const a = Number(r[0]), l = Number(r[1]);
536
+ if (!Number.isFinite(a) || !Number.isFinite(l)) return;
537
+ const f = oe([a, l]), u = f?.[0], s = f?.[1];
538
+ !Number.isFinite(u) || !Number.isFinite(s) || o.push([u, s]);
539
+ }, n = (r) => {
540
+ if (Array.isArray(r)) {
541
+ if (r.length >= 2 && typeof r[0] == "number" && typeof r[1] == "number") {
542
+ t(r);
543
+ return;
544
+ }
545
+ for (const a of r)
546
+ n(a);
547
+ }
548
+ };
549
+ if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
550
+ for (const r of e.geometries)
551
+ o.push(...yt(r));
552
+ return o;
553
+ }
554
+ return e.type === "Point" ? (t(e.coordinates), o) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(t), o) : (n(e.coordinates), o);
555
+ }
556
+ function fo(e) {
557
+ const o = [];
558
+ for (const u of e)
559
+ o.push(...yt(u.geometry));
560
+ if (!o.length) return null;
561
+ let t = 1 / 0, n = 1 / 0, r = -1 / 0, a = -1 / 0;
562
+ for (const [u, s] of o)
563
+ u < t && (t = u), s < n && (n = s), u > r && (r = u), s > a && (a = s);
564
+ const l = r - t, f = a - n;
565
+ return !(l > 0) || !(f > 0) ? null : { minX: t, minY: n, maxX: r, maxY: a, width: l, height: f };
566
+ }
567
+ const vo = v(() => fo(me.value));
568
+ function mo({ bounds: e, targetWidth: o, targetHeight: t, padding: n }) {
569
+ if (!e || !(e.width > 0) || !(e.height > 0))
570
+ return { scale: 1, translateX: 0, translateY: 0, transform: "" };
571
+ const r = Number.isFinite(Number(n)) ? Number(n) : 0, a = Math.max(1, o - r * 2), l = Math.max(1, t - r * 2), f = a / e.width, u = l / e.height, s = Math.min(f, u), h = e.width * s, p = e.height * s, C = r + (a - h) / 2, c = r + (l - p) / 2, y = C - e.minX * s, A = c - e.minY * s;
572
+ return {
573
+ scale: s,
574
+ translateX: y,
575
+ translateY: A,
576
+ transform: `translate(${y} ${A}) scale(${s})`
577
+ };
578
+ }
579
+ const gt = v(() => {
580
+ const e = vo.value;
581
+ if (!e) return { scale: 1, translateX: 0, translateY: 0, transform: "" };
582
+ const o = i.value?.map?.fitPadding, t = Number.isFinite(Number(o)) ? Number(o) : 0;
583
+ return mo({
584
+ bounds: e,
585
+ targetWidth: I.value.width,
586
+ targetHeight: I.value.height,
587
+ padding: t
588
+ });
589
+ }), ho = v(() => {
590
+ const e = I.value.width, o = I.value.height;
591
+ return `0 0 ${e} ${o}`;
592
+ }), {
593
+ viewBox: ue,
594
+ resetZoom: bt,
595
+ setInitialViewBox: Me,
596
+ scale: kt,
597
+ zoomByFactor: wt
598
+ } = Lo(
599
+ D,
600
+ { x: 0, y: 0, width: I.value.width, height: I.value.height },
601
+ 1,
602
+ E
603
+ );
604
+ function po() {
605
+ E.value = !E.value;
606
+ }
607
+ function Oe(e) {
608
+ const o = gt.value, t = Number(o?.scale) || 1, n = Number(o?.translateX) || 0, r = Number(o?.translateY) || 0;
609
+ return {
610
+ x: e.x * t + n,
611
+ y: e.y * t + r
612
+ };
613
+ }
614
+ function Ct() {
615
+ const e = i.value?.map?.center, o = Number(e?.[0]), t = Number(e?.[1]), n = Array.isArray(e) && e.length === 2 && Number.isFinite(o) && Number.isFinite(t) && (o !== 0 || t !== 0), r = I.value.width, a = I.value.height;
616
+ if (!n)
617
+ return { x: 0, y: 0, width: r, height: a };
618
+ const l = oe([o, t]), f = l?.[0], u = l?.[1];
619
+ if (!Number.isFinite(f) || !Number.isFinite(u))
620
+ return { x: 0, y: 0, width: r, height: a };
621
+ const s = Oe({ x: f, y: u });
622
+ return {
623
+ x: s.x - r / 2,
624
+ y: s.y - a / 2,
625
+ width: r,
626
+ height: a
627
+ };
628
+ }
629
+ function he() {
630
+ const e = Ct();
631
+ Me(e, { overwriteCurrentIfNotZoomed: !0 }), _.value = !0;
632
+ }
633
+ const At = v(() => {
634
+ const e = ue.value;
635
+ return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : ho.value;
636
+ });
637
+ function Re() {
638
+ wt(Wt, !0);
639
+ }
640
+ function Ee() {
641
+ wt(1 / Wt, !0);
642
+ }
643
+ async function Nt() {
644
+ const e = Ct();
645
+ Me(e, { overwriteCurrentIfNotZoomed: !0 }), bt(!0);
646
+ }
647
+ ce(
648
+ () => [
649
+ i.value.projection,
650
+ i.value.map.center?.[0],
651
+ i.value.map.center?.[1],
652
+ i.value.map.fitPadding,
653
+ ct.value
654
+ ],
655
+ async () => {
656
+ _.value = !1, await ae(), requestAnimationFrame(() => {
657
+ _.value || he();
658
+ });
659
+ },
660
+ { deep: !1 }
661
+ ), ce(
662
+ () => [te.value, z.value, ee.value],
663
+ async () => {
664
+ ee.value && (await ae(), Me(
665
+ { x: 0, y: 0, width: I.value.width, height: I.value.height },
666
+ { overwriteCurrentIfNotZoomed: !0 }
667
+ ), _.value = !1, requestAnimationFrame(() => {
668
+ _.value || he();
669
+ }));
670
+ },
671
+ { flush: "post" }
672
+ );
673
+ function yo(e) {
674
+ return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter((o) => o?.type === "Feature" && o.geometry?.type === "Point").map((o, t) => {
675
+ const n = o.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, a = o.geometry.coordinates;
676
+ return {
677
+ uid: `map-point-${M.value}-${t}`,
678
+ name: r,
679
+ coordinates: a,
680
+ color: n.color ?? null,
681
+ radius: n.radius ?? null,
682
+ hoverRadiusRatio: i.value.style.chart.points.hoverRadiusRatio,
683
+ description: n.description ?? null,
684
+ original: o,
685
+ index: t
686
+ };
687
+ }) : Array.isArray(e) ? e.map((o, t) => {
688
+ let n = null, r = `Point ${t + 1}`, a = null, l = null, f = null;
689
+ Array.isArray(o) && o.length >= 2 ? n = [Number(o[0]), Number(o[1])] : o && typeof o == "object" && (Array.isArray(o.coordinates) && o.coordinates.length >= 2 ? n = [Number(o.coordinates[0]), Number(o.coordinates[1])] : Number.isFinite(Number(o.lon)) && Number.isFinite(Number(o.lat)) && (n = [Number(o.lon), Number(o.lat)]), typeof o.name == "string" && o.name.trim() && (r = o.name), o.description != null && (a = o.description), o.color != null && (l = o.color), o.radius != null && (f = o.radius));
690
+ const u = n ? n[0] : NaN, s = n ? n[1] : NaN;
691
+ return !Number.isFinite(u) || !Number.isFinite(s) ? null : {
692
+ uid: `map-point-${M.value}-${t}`,
693
+ name: r,
694
+ coordinates: [u, s],
695
+ color: l,
696
+ radius: f,
697
+ hoverRadiusRatio: i.value.style.chart.points.hoverRadiusRatio,
698
+ description: a,
699
+ original: o,
700
+ index: t
701
+ };
702
+ }).filter(Boolean) : typeof e == "object" ? Object.entries(e).map(([o, t], n) => {
703
+ if (!t || typeof t != "object") return null;
704
+ const r = Array.isArray(t.coordinates) ? t.coordinates : null;
705
+ if (!r || r.length < 2) return null;
706
+ const a = Number(r[0]), l = Number(r[1]);
707
+ return !Number.isFinite(a) || !Number.isFinite(l) ? null : {
708
+ uid: `map-point-${M.value}-${n}-${o}`,
709
+ name: t.name || o,
710
+ coordinates: [a, l],
711
+ color: t.color ?? null,
712
+ radius: t.radius ?? null,
713
+ hoverRadiusRatio: i.value.style.chart.points.hoverRadiusRatio,
714
+ description: t.description ?? null,
715
+ original: t,
716
+ index: n
717
+ };
718
+ }).filter(Boolean) : [] : [];
719
+ }
720
+ const Be = v(() => yo(Fe.value)), je = v(() => Be.value.map((e) => {
721
+ const o = oe(e.coordinates), t = o?.[0], n = o?.[1];
722
+ return !Number.isFinite(t) || !Number.isFinite(n) ? null : {
723
+ ...e,
724
+ x: t,
725
+ y: n,
726
+ fill: e.color ? qe(e.color) : i.value.style.chart.points.fill,
727
+ radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : i.value.style.chart.points.radius
728
+ };
729
+ }).filter(Boolean)), Y = v(() => je.value.map((e, o) => ({
730
+ ...e,
731
+ keyboardIndex: o
732
+ })));
733
+ function go(e) {
734
+ const o = Oe(e), t = zo(o.x, o.y, D.value);
735
+ t && (tt.value = {
736
+ x: t.x,
737
+ y: t.y
738
+ });
739
+ }
740
+ const _e = d(!1), Ge = d(""), L = d(!1), X = d(null), O = d(null);
741
+ function ze(e) {
742
+ Ge.value = e, _e.value = !0;
743
+ }
744
+ function q() {
745
+ _e.value = !1, Ge.value = "";
746
+ }
747
+ function Le(e) {
748
+ return String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#039;");
749
+ }
750
+ function bo(e) {
751
+ ve.value = {
752
+ datapoint: e,
753
+ seriesIndex: e.index,
754
+ series: Be.value,
755
+ config: i.value
756
+ }, L.value = !1;
757
+ const o = i.value.style.chart.tooltip.customFormat;
758
+ if (Lt(o))
759
+ try {
760
+ const r = o(ve.value);
761
+ if (typeof r == "string")
762
+ return L.value = !0, r;
763
+ } catch {
764
+ console.warn("Custom format cannot be applied."), L.value = !1;
765
+ }
766
+ const t = Le(e.name), n = e.description != null ? `<div style="margin-top:6px">${Le(e.description)}</div>` : "";
767
+ return `<div><div style="font-weight:600">${t}</div>${n}</div>`;
768
+ }
769
+ function Ft(e) {
770
+ L.value = !1;
771
+ const o = i.value.style.chart.tooltip.customFormat;
772
+ if (Lt(o))
773
+ try {
774
+ const n = o({
775
+ datapoint: e,
776
+ config: i.value
777
+ });
778
+ if (typeof n == "string")
779
+ return L.value = !0, n;
780
+ } catch {
781
+ console.warn("Custom format cannot be applied."), L.value = !1;
782
+ }
783
+ const t = typeof e?.name == "string" ? e.name.trim() : "";
784
+ return t ? `<div><div style="font-weight:600">${Le(t)}</div></div>` : (L.value = !1, "");
785
+ }
786
+ function Pt(e) {
787
+ if (i.value.events.territoryEnter && i.value.events.territoryEnter({
788
+ datapoint: e,
789
+ seriesIndex: e.index
790
+ }), !(typeof e?.name == "string" ? e.name.trim() : "") && !i.value.style.chart.territory.hover.enabledWhenEmpty) {
791
+ O.value = null, q();
792
+ return;
793
+ }
794
+ O.value = e.uid, ze(Ft(e));
795
+ }
796
+ function $t(e) {
797
+ O.value = null, q(), i.value.events.territoryLeave && i.value.events.territoryLeave({
798
+ datapoint: e,
799
+ seriesIndex: e.index
800
+ });
801
+ }
802
+ function Tt(e) {
803
+ i.value.events.territoryClick && i.value.events.territoryClick({
804
+ datapoint: e,
805
+ seriesIndex: e.index
806
+ });
807
+ }
808
+ function Ze(e, o = null, t = "pointer") {
809
+ Q.value = t, X.value = e.uid, Number.isInteger(o) && (x.value = o), t === "keyboard" && go(e), ze(bo(e)), i.value.events.datapointEnter && i.value.events.datapointEnter({
810
+ datapoint: e,
811
+ seriesIndex: e.index
812
+ });
813
+ }
814
+ function pe(e, o = "pointer") {
815
+ o === "pointer" && Q.value === "keyboard" || (X.value = null, q(), o !== "pointer" && (x.value = null, Q.value = "pointer"), i.value.events.datapointLeave && i.value.events.datapointLeave({
816
+ datapoint: e,
817
+ seriesIndex: e.index
818
+ }));
819
+ }
820
+ const xt = v(() => !!i.value.events.datapointClick && typeof i.value.events.datapointClick == "function");
821
+ function We(e) {
822
+ xt.value && i.value.events.datapointClick({
823
+ datapoint: e,
824
+ seriesIndex: e.index
825
+ });
826
+ }
827
+ const B = v(() => i.value.style.chart.territory), It = v(() => i.value.style.chart.points);
828
+ function ko(e) {
829
+ const o = typeof e?.name == "string" ? e.name.trim() : "";
830
+ if (!o) {
831
+ O.value = null, q();
832
+ return;
833
+ }
834
+ const t = {
835
+ name: o,
836
+ uid: e.uid,
837
+ index: e.featureIndex,
838
+ properties: {}
839
+ };
840
+ O.value = e.uid, ze(Ft(t));
841
+ }
842
+ function wo() {
843
+ O.value = null, q();
844
+ }
845
+ const ne = d(!1);
846
+ function De() {
847
+ ne.value = !ne.value;
848
+ }
849
+ ce(
850
+ () => ne.value,
851
+ (e) => {
852
+ E.value = !e;
853
+ }
854
+ );
855
+ function St() {
856
+ se.value.showTooltip = !se.value.showTooltip;
857
+ }
858
+ const Co = v(() => i.value.style.chart.backgroundColor), Ao = v(() => i.value.style.chart.title), { exportSvg: No, getSvg: Fo } = Ho({
859
+ svg: D,
860
+ title: Ao,
861
+ legend: void 0,
862
+ legendItems: void 0,
863
+ backgroundColor: Co
864
+ });
865
+ async function Mt({ isCb: e }) {
866
+ de.value = !0, await ae();
867
+ try {
868
+ if (e) {
869
+ const { blob: o, url: t, text: n, dataUrl: r } = await Fo();
870
+ await Promise.resolve(i.value.userOptions.callbacks.svg({ blob: o, url: t, text: n, dataUrl: r }));
871
+ } else
872
+ await Promise.resolve(No());
873
+ } finally {
874
+ de.value = !1;
875
+ }
876
+ }
877
+ function Po(e) {
878
+ if (e?.stage === "start") {
879
+ fe.value = !0;
880
+ return;
881
+ }
882
+ if (e?.stage === "end") {
883
+ fe.value = !1;
884
+ return;
885
+ }
886
+ at();
887
+ }
888
+ async function $o({ scale: e = 2 } = {}) {
889
+ if (!R.value) return;
890
+ const { width: o, height: t } = R.value.getBoundingClientRect(), n = o / t, { imageUri: r, base64: a } = await Jo({
891
+ domElement: R.value,
892
+ base64: !0,
893
+ img: !0,
894
+ scale: e
895
+ });
896
+ return {
897
+ imageUri: r,
898
+ base64: a,
899
+ title: i.value.style.chart.title.text,
900
+ width: o,
901
+ height: t,
902
+ aspectRatio: n
903
+ };
904
+ }
905
+ const H = d(!1);
906
+ let ie = null;
907
+ function To() {
908
+ E.value && (H.value = !0);
909
+ }
910
+ function Ye() {
911
+ H.value = !1;
912
+ }
913
+ function xo() {
914
+ E.value && (H.value = !0, ie && clearTimeout(ie), ie = setTimeout(() => {
915
+ H.value = !1, ie = null;
916
+ }, 140));
917
+ }
918
+ Bt(() => {
919
+ ie && clearTimeout(ie);
920
+ });
921
+ async function Ot([e, o], { animated: t = !0 } = {}) {
922
+ const n = Number(e), r = Number(o);
923
+ if (!Number.isFinite(n) || !Number.isFinite(r)) return;
924
+ const a = oe([n, r]), l = a?.[0], f = a?.[1];
925
+ if (!Number.isFinite(l) || !Number.isFinite(f)) return;
926
+ const u = Oe({ x: l, y: f }), s = ue.value ? { ...ue.value } : { x: 0, y: 0, width: I.value.width, height: I.value.height }, h = {
927
+ x: u.x - s.width / 2,
928
+ y: u.y - s.height / 2,
929
+ width: s.width,
930
+ height: s.height
931
+ };
932
+ if (!t) {
933
+ ue.value = h;
934
+ return;
935
+ }
936
+ const p = { ...s }, C = { ...h }, c = 250;
937
+ let y = null;
938
+ const A = (m) => {
939
+ y == null && (y = m);
940
+ const g = Math.min((m - y) / c, 1);
941
+ ue.value = {
942
+ x: p.x + (C.x - p.x) * g,
943
+ y: p.y + (C.y - p.y) * g,
944
+ width: p.width + (C.width - p.width) * g,
945
+ height: p.height + (C.height - p.height) * g
946
+ }, g < 1 && requestAnimationFrame(A);
947
+ };
948
+ requestAnimationFrame(A);
949
+ }
950
+ Eo(async () => {
951
+ xe(), await ae(), requestAnimationFrame(() => {
952
+ _.value || (he(), (i.value.map.center?.[0] || i.value.map.center?.[1]) && Ot(i.value.map.center, { animated: !1 }));
953
+ });
954
+ }), Bt(() => {
955
+ Te();
956
+ });
957
+ async function Rt() {
958
+ if (Kt("copyAlt", {
959
+ config: i.value,
960
+ dataset: Fe.value
961
+ }), !i.value.userOptions.callbacks.altCopy) {
962
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
963
+ return;
964
+ }
965
+ await Promise.resolve(i.value.userOptions.callbacks.altCopy({
966
+ config: i.value,
967
+ dataset: Fe.value
968
+ }));
969
+ }
970
+ function Io(e, o) {
971
+ const t = Y.value;
972
+ if (!t.length) return null;
973
+ const n = t[e];
974
+ if (!n) return null;
975
+ let r = null, a = 1 / 0;
976
+ for (let l = 0; l < t.length; l += 1) {
977
+ if (l === e) continue;
978
+ const f = t[l], u = f.x - n.x, s = f.y - n.y;
979
+ let h = !1, p = 0, C = 0;
980
+ if (o === "right" && u > 0 && (h = !0, p = u, C = Math.abs(s)), o === "left" && u < 0 && (h = !0, p = Math.abs(u), C = Math.abs(s)), o === "down" && s > 0 && (h = !0, p = s, C = Math.abs(u)), o === "up" && s < 0 && (h = !0, p = Math.abs(s), C = Math.abs(u)), !h) continue;
981
+ const c = p * p + C * C * 4;
982
+ c < a && (a = c, r = l);
983
+ }
984
+ return r;
985
+ }
986
+ function Et(e) {
987
+ const o = Y.value;
988
+ return o.length ? e === "right" ? o.reduce((t, n, r, a) => n.x < a[t].x ? r : t, 0) : e === "left" ? o.reduce((t, n, r, a) => n.x > a[t].x ? r : t, 0) : e === "down" ? o.reduce((t, n, r, a) => n.y < a[t].y ? r : t, 0) : e === "up" ? o.reduce((t, n, r, a) => n.y > a[t].y ? r : t, 0) : 0 : null;
989
+ }
990
+ function So() {
991
+ Ce.value = !0;
992
+ }
993
+ function Mo() {
994
+ const e = x.value != null ? Y.value[x.value] : null;
995
+ e ? pe(e, "keyboard") : (x.value = null, Q.value = "pointer", q(), X.value = null), Ce.value = !1;
996
+ }
997
+ function Oo(e) {
998
+ if (!D.value || ne.value || document.activeElement !== D.value || !Y.value.length) return;
999
+ const o = e.key === "ArrowRight", t = e.key === "ArrowLeft", n = e.key === "ArrowDown", r = e.key === "ArrowUp", a = e.key === "Enter" || e.key === " ", l = e.key === "Escape";
1000
+ if (!o && !t && !n && !r && !a && !l) return;
1001
+ if (e.preventDefault(), e.stopPropagation(), l) {
1002
+ const h = x.value != null ? Y.value[x.value] : null;
1003
+ h ? pe(h, "keyboard") : (x.value = null, Q.value = "pointer", q(), X.value = null);
1004
+ return;
1005
+ }
1006
+ if (a) {
1007
+ const h = x.value != null ? Y.value[x.value] : null;
1008
+ if (!h) return;
1009
+ We(h);
1010
+ return;
1011
+ }
1012
+ const f = o ? "right" : t ? "left" : n ? "down" : "up";
1013
+ let u = null;
1014
+ if (x.value == null ? u = Et(f) : (u = Io(x.value, f), u == null && (u = Et(f))), u == null) return;
1015
+ const s = Y.value[u];
1016
+ s && Ze(s, u, "keyboard");
1017
+ }
1018
+ const Xe = v(() => {
1019
+ const e = ["Name", "Latitude", "Longitude", "Description"], o = Be.value.map((t) => {
1020
+ const n = Array.isArray(t.coordinates) ? t.coordinates[1] : null, r = Array.isArray(t.coordinates) ? t.coordinates[0] : null;
1021
+ return [
1022
+ t.name ?? "",
1023
+ Number.isFinite(n) ? String(n) : "",
1024
+ Number.isFinite(r) ? String(r) : "",
1025
+ t.description ?? ""
1026
+ ];
1027
+ });
1028
+ return {
1029
+ headers: e,
1030
+ rows: o
1031
+ };
1032
+ });
1033
+ return Yt({
1034
+ getImage: $o,
1035
+ generatePdf: rt,
1036
+ generateImage: at,
1037
+ generateSvg: Mt,
1038
+ toggleTooltip: St,
1039
+ toggleAnnotator: De,
1040
+ toggleFullscreen: ot,
1041
+ zoomIn: Re,
1042
+ zoomOut: Ee,
1043
+ resetZoom: bt,
1044
+ focusLocation: Ot,
1045
+ copyAlt: Rt
1046
+ }), (e, o) => (b(), P("div", {
1047
+ class: jt(`vue-data-ui-component vue-ui-geo ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${ee.value ? "vue-ui-geo-responsive" : ""} ${H.value ? "vue-ui-geo-interacting" : ""}`),
1048
+ ref_key: "geoChart",
1049
+ ref: R,
1050
+ id: `map_${M.value}`,
1051
+ dir: "auto",
1052
+ style: ge({
1053
+ fontFamily: i.value.style.fontFamily,
1054
+ width: "100%",
1055
+ backgroundColor: i.value.style.chart.backgroundColor,
1056
+ height: ee.value ? `${z.value}px` : void 0
1057
+ })
1058
+ }, [
1059
+ W("div", {
1060
+ id: `chart-instructions-${M.value}`,
1061
+ class: "sr-only"
1062
+ }, [
1063
+ W("p", null, _t(i.value.a11y.translations.keyboardNavigation), 1)
1064
+ ], 8, an),
1065
+ Xe.value?.rows?.length ? (b(), U(on, {
1066
+ key: 0,
1067
+ uid: M.value,
1068
+ head: Xe.value.headers,
1069
+ body: Xe.value.rows,
1070
+ notice: i.value.a11y.translations.tableAvailable,
1071
+ caption: i.value.a11y.translations.tableCaption
1072
+ }, null, 8, ["uid", "head", "body", "notice", "caption"])) : S("", !0),
1073
+ lt.value ? (b(), P("div", {
1074
+ key: 1,
1075
+ ref_key: "noTitle",
1076
+ ref: Ke,
1077
+ class: "vue-data-ui-no-title-space",
1078
+ style: "height:36px; width: 100%;background:transparent"
1079
+ }, null, 512)) : S("", !0),
1080
+ i.value.style.chart.title.text ? (b(), P("div", {
1081
+ key: 2,
1082
+ ref_key: "chartTitle",
1083
+ ref: Ve,
1084
+ style: "width:100%;background:transparent;padding-bottom:12px"
1085
+ }, [
1086
+ (b(), U(en, {
1087
+ key: `title_${Ue.value}`,
1088
+ config: {
1089
+ title: {
1090
+ cy: "geo-title",
1091
+ ...i.value.style.chart.title
1092
+ },
1093
+ subtitle: {
1094
+ cy: "geo-subtitle",
1095
+ ...i.value.style.chart.title.subtitle
1096
+ }
1097
+ }
1098
+ }, null, 8, ["config"]))
1099
+ ], 512)) : S("", !0),
1100
+ i.value.userOptions.buttons.annotator ? (b(), U(w(Ut), {
1101
+ key: 3,
1102
+ svgRef: w(D),
1103
+ backgroundColor: i.value.style.chart.backgroundColor,
1104
+ color: i.value.style.chart.color,
1105
+ active: ne.value,
1106
+ isCursorPointer: le.value,
1107
+ onClose: De
1108
+ }, {
1109
+ "annotator-action-close": N(() => [
1110
+ k(e.$slots, "annotator-action-close", {}, void 0, !0)
1111
+ ]),
1112
+ "annotator-action-color": N(({ color: t }) => [
1113
+ k(e.$slots, "annotator-action-color", $(T({ color: t })), void 0, !0)
1114
+ ]),
1115
+ "annotator-action-draw": N(({ mode: t }) => [
1116
+ k(e.$slots, "annotator-action-draw", $(T({ mode: t })), void 0, !0)
1117
+ ]),
1118
+ "annotator-action-undo": N(({ disabled: t }) => [
1119
+ k(e.$slots, "annotator-action-undo", $(T({ disabled: t })), void 0, !0)
1120
+ ]),
1121
+ "annotator-action-redo": N(({ disabled: t }) => [
1122
+ k(e.$slots, "annotator-action-redo", $(T({ disabled: t })), void 0, !0)
1123
+ ]),
1124
+ "annotator-action-delete": N(({ disabled: t }) => [
1125
+ k(e.$slots, "annotator-action-delete", $(T({ disabled: t })), void 0, !0)
1126
+ ]),
1127
+ _: 3
1128
+ }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : S("", !0),
1129
+ i.value.userOptions.show && (w(it) || w(nt)) ? (b(), U(w(Ht), {
1130
+ ref: "userOptionsRef",
1131
+ key: `user_options_${we.value}`,
1132
+ backgroundColor: i.value.style.chart.backgroundColor,
1133
+ color: i.value.style.chart.color,
1134
+ isPrinting: w(Pe),
1135
+ isImaging: w($e),
1136
+ uid: M.value,
1137
+ hasXls: !1,
1138
+ hasTable: !1,
1139
+ hasTooltip: i.value.userOptions.buttons.tooltip && i.value.style.chart.tooltip.show,
1140
+ hasPdf: i.value.userOptions.buttons.pdf,
1141
+ hasImg: i.value.userOptions.buttons.img,
1142
+ hasSvg: i.value.userOptions.buttons.svg,
1143
+ hasFullscreen: i.value.userOptions.buttons.fullscreen,
1144
+ hasAltCopy: i.value.userOptions.buttons.altCopy,
1145
+ hasAnnotator: i.value.userOptions.buttons.annotator,
1146
+ hasZoom: i.value.userOptions.buttons.zoom,
1147
+ isZoom: E.value,
1148
+ isFullscreen: G.value,
1149
+ isTooltip: se.value.showTooltip,
1150
+ titles: { ...i.value.userOptions.buttonTitles },
1151
+ chartElement: R.value,
1152
+ position: i.value.userOptions.position,
1153
+ isAnnotation: ne.value,
1154
+ callbacks: i.value.userOptions.callbacks,
1155
+ printScale: i.value.userOptions.print.scale,
1156
+ isCursorPointer: le.value,
1157
+ onToggleFullscreen: ot,
1158
+ onGeneratePdf: w(rt),
1159
+ onGenerateImage: Po,
1160
+ onGenerateSvg: Mt,
1161
+ onToggleTooltip: St,
1162
+ onToggleAnnotator: De,
1163
+ onToggleZoom: po,
1164
+ onCopyAlt: Rt,
1165
+ style: ge({
1166
+ visibility: w(it) ? w(nt) ? "visible" : "hidden" : "visible"
1167
+ })
1168
+ }, Bo({ _: 2 }, [
1169
+ e.$slots.menuIcon ? {
1170
+ name: "menuIcon",
1171
+ fn: N(({ isOpen: t, color: n }) => [
1172
+ k(e.$slots, "menuIcon", $(T({ isOpen: t, color: n })), void 0, !0)
1173
+ ]),
1174
+ key: "0"
1175
+ } : void 0,
1176
+ e.$slots.optionTooltip ? {
1177
+ name: "optionTooltip",
1178
+ fn: N(() => [
1179
+ k(e.$slots, "optionTooltip", {}, void 0, !0)
1180
+ ]),
1181
+ key: "1"
1182
+ } : void 0,
1183
+ e.$slots.optionPdf ? {
1184
+ name: "optionPdf",
1185
+ fn: N(() => [
1186
+ k(e.$slots, "optionPdf", {}, void 0, !0)
1187
+ ]),
1188
+ key: "2"
1189
+ } : void 0,
1190
+ e.$slots.optionImg ? {
1191
+ name: "optionImg",
1192
+ fn: N(() => [
1193
+ k(e.$slots, "optionImg", {}, void 0, !0)
1194
+ ]),
1195
+ key: "3"
1196
+ } : void 0,
1197
+ e.$slots.optionSvg ? {
1198
+ name: "optionSvg",
1199
+ fn: N(() => [
1200
+ k(e.$slots, "optionSvg", {}, void 0, !0)
1201
+ ]),
1202
+ key: "4"
1203
+ } : void 0,
1204
+ e.$slots.optionFullscreen ? {
1205
+ name: "optionFullscreen",
1206
+ fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [
1207
+ k(e.$slots, "optionFullscreen", $(T({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
1208
+ ]),
1209
+ key: "5"
1210
+ } : void 0,
1211
+ e.$slots.optionAnnotator ? {
1212
+ name: "optionAnnotator",
1213
+ fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [
1214
+ k(e.$slots, "optionAnnotator", $(T({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
1215
+ ]),
1216
+ key: "6"
1217
+ } : void 0,
1218
+ e.$slots.optionZoom ? {
1219
+ name: "optionZoom",
1220
+ fn: N(({ toggleZoom: t, isZoomLocked: n }) => [
1221
+ k(e.$slots, "optionZoom", $(T({ toggleZoom: t, isZoomLocked: n })), void 0, !0)
1222
+ ]),
1223
+ key: "7"
1224
+ } : void 0,
1225
+ e.$slots.optionAltCopy ? {
1226
+ name: "optionAltCopy",
1227
+ fn: N(({ altCopy: t }) => [
1228
+ k(e.$slots, "optionAltCopy", $(T({ altCopy: t })), void 0, !0)
1229
+ ]),
1230
+ key: "8"
1231
+ } : void 0
1232
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "hasAnnotator", "hasZoom", "isZoom", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : S("", !0),
1233
+ i.value.style.chart.controls.position === "top" && i.value.style.chart.controls.show && !w(Ne) ? (b(), U(Zt, {
1234
+ key: 5,
1235
+ ref_key: "zoomControlsTop",
1236
+ ref: Qe,
1237
+ config: i.value,
1238
+ scale: w(kt),
1239
+ isFullscreen: G.value,
1240
+ isCursorPointer: le.value,
1241
+ onZoomIn: Re,
1242
+ onZoomOut: Ee,
1243
+ onResetZoom: Nt
1244
+ }, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : S("", !0),
1245
+ W("div", ln, [
1246
+ (b(), P("svg", {
1247
+ ref_key: "svgRef",
1248
+ ref: D,
1249
+ xmlns: w(Go),
1250
+ viewBox: At.value,
1251
+ preserveAspectRatio: "xMidYMid meet",
1252
+ "aria-describedby": `map-keyboard-instructions-${M.value}`,
1253
+ tabindex: "0",
1254
+ style: ge({
1255
+ display: "block",
1256
+ width: "100%",
1257
+ height: ee.value ? `${z.value}px` : "auto",
1258
+ background: i.value.style.chart.backgroundColor,
1259
+ touchAction: E.value ? "none" : "auto",
1260
+ cursor: E.value ? H.value ? "grabbing" : "grab" : "default"
1261
+ }),
1262
+ id: `vue-ui-geo_${M.value}`,
1263
+ onPointerdown: To,
1264
+ onPointerup: Ye,
1265
+ onPointercancel: Ye,
1266
+ onPointerleave: Ye,
1267
+ onWheel: xo,
1268
+ onFocus: So,
1269
+ onBlur: Mo,
1270
+ onKeydown: Oo
1271
+ }, [
1272
+ Gt(w(Vt)),
1273
+ W("g", {
1274
+ transform: gt.value.transform,
1275
+ style: ge({ pointerEvents: H.value ? "none" : "auto" })
1276
+ }, [
1277
+ W("g", null, [
1278
+ (b(!0), P(be, null, ke(mt.value, (t) => (b(), P("path", {
1279
+ class: "vue-ui-geo-territory",
1280
+ key: t.uid,
1281
+ d: t.path,
1282
+ fill: O.value === t.uid ? B.value.hover.fill : B.value.fill,
1283
+ stroke: O.value === t.uid ? B.value.hover.stroke : B.value.stroke,
1284
+ "stroke-width": O.value === t.uid ? B.value.hover.strokeWidth : B.value.strokeWidth,
1285
+ "vector-effect": "non-scaling-stroke",
1286
+ onMouseenter: (n) => Pt(t),
1287
+ onMouseleave: (n) => $t(t),
1288
+ onClick: (n) => Tt(t)
1289
+ }, null, 40, cn))), 128))
1290
+ ]),
1291
+ W("g", null, [
1292
+ (b(!0), P(be, null, ke(ht.value, (t) => (b(), P("path", {
1293
+ class: "vue-ui-geo-territory",
1294
+ key: t.uid,
1295
+ d: t.path,
1296
+ fill: "none",
1297
+ stroke: O.value === t.uid ? B.value.hover.stroke : B.value.stroke,
1298
+ "stroke-width": O.value === t.uid ? B.value.hover.strokeWidth : B.value.strokeWidth,
1299
+ "vector-effect": "non-scaling-stroke",
1300
+ onMouseenter: (n) => Pt(t),
1301
+ onMouseleave: (n) => $t(t),
1302
+ onClick: (n) => Tt(t)
1303
+ }, null, 40, fn))), 128))
1304
+ ]),
1305
+ W("g", null, [
1306
+ (b(!0), P(be, null, ke(pt.value, (t) => (b(), P("circle", {
1307
+ key: t.uid,
1308
+ cx: t.x,
1309
+ cy: t.y,
1310
+ r: t.radius,
1311
+ fill: t.fill,
1312
+ stroke: t.stroke,
1313
+ "stroke-width": t.strokeWidth,
1314
+ "vector-effect": "non-scaling-stroke",
1315
+ onMouseenter: (n) => ko(t),
1316
+ onMouseleave: wo
1317
+ }, null, 40, dn))), 128))
1318
+ ]),
1319
+ (b(!0), P(be, null, ke(je.value, (t, n) => (b(), P("g", {
1320
+ key: t.uid
1321
+ }, [
1322
+ k(e.$slots, "datapoint", jo({ ref_for: !0 }, {
1323
+ point: t,
1324
+ onPointEnter: Ze,
1325
+ onPointLeave: pe,
1326
+ onPointClick: We,
1327
+ highlighted: X.value === t.uid
1328
+ }), () => [
1329
+ W("circle", {
1330
+ class: jt({
1331
+ "vue-ui-geo-point": !0,
1332
+ "vue-ui-geo-point-with-event": xt.value && le.value
1333
+ }),
1334
+ cx: t.x,
1335
+ cy: t.y,
1336
+ r: X.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
1337
+ fill: t.fill,
1338
+ stroke: It.value.stroke,
1339
+ "stroke-width": It.value.strokeWidth,
1340
+ "vector-effect": "non-scaling-stroke",
1341
+ onMouseenter: (r) => Ze(t, n),
1342
+ onMouseleave: (r) => pe(t),
1343
+ onClick: (r) => We(t)
1344
+ }, null, 42, vn)
1345
+ ], !0),
1346
+ i.value.style.chart.points.labels.show ? (b(), P("text", {
1347
+ key: 0,
1348
+ class: "vue-ui-geo-point-label",
1349
+ x: t.x,
1350
+ y: t.y + (X.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) + i.value.style.chart.points.labels.offsetY + 1 * i.value.style.chart.points.labels.fontSizeRatio,
1351
+ "text-anchor": "middle",
1352
+ fill: i.value.style.chart.points.labels.color,
1353
+ "font-size": 1 * i.value.style.chart.points.labels.fontSizeRatio
1354
+ }, _t(t.name), 9, mn)) : S("", !0)
1355
+ ]))), 128)),
1356
+ k(e.$slots, "svg", {
1357
+ svg: {
1358
+ drawingArea: At.value,
1359
+ isPrintingImg: w(Pe) | w($e) | fe.value,
1360
+ isPrintingSvg: de.value,
1361
+ data: {
1362
+ areaPaths: mt.value,
1363
+ linePaths: ht.value,
1364
+ geoJsonPoints: pt.value,
1365
+ projectedPoints: je.value
1366
+ }
1367
+ }
1368
+ }, void 0, !0)
1369
+ ], 12, un)
1370
+ ], 44, sn)),
1371
+ e.$slots.hint ? (b(), P("div", hn, [
1372
+ k(e.$slots, "hint", $(T({ hint: i.value.a11y.translations.keyboardNavigation, isVisible: Ce.value })), void 0, !0)
1373
+ ])) : S("", !0)
1374
+ ]),
1375
+ e.$slots.watermark ? (b(), P("div", pn, [
1376
+ k(e.$slots, "watermark", $(T({ isPrinting: w(Pe) || w($e) || fe.value || de.value })), void 0, !0)
1377
+ ])) : S("", !0),
1378
+ i.value.style.chart.controls.position === "bottom" && i.value.style.chart.controls.show && !w(Ne) ? (b(), U(Zt, {
1379
+ key: 7,
1380
+ ref_key: "zoomControlsBottom",
1381
+ ref: et,
1382
+ config: i.value,
1383
+ scale: w(kt),
1384
+ isFullscreen: G.value,
1385
+ isCursorPointer: le.value,
1386
+ onZoomIn: Re,
1387
+ onZoomOut: Ee,
1388
+ onResetZoom: Nt
1389
+ }, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : S("", !0),
1390
+ Gt(w(qt), {
1391
+ teleportTo: i.value.style.chart.tooltip.teleportTo,
1392
+ show: se.value.showTooltip && _e.value,
1393
+ backgroundColor: i.value.style.chart.tooltip.backgroundColor,
1394
+ color: i.value.style.chart.tooltip.color,
1395
+ fontSize: i.value.style.chart.tooltip.fontSize,
1396
+ borderRadius: i.value.style.chart.tooltip.borderRadius,
1397
+ borderColor: i.value.style.chart.tooltip.borderColor,
1398
+ borderWidth: i.value.style.chart.tooltip.borderWidth,
1399
+ backgroundOpacity: i.value.style.chart.tooltip.backgroundOpacity,
1400
+ position: i.value.style.chart.tooltip.position,
1401
+ offsetY: i.value.style.chart.tooltip.offsetY,
1402
+ parent: R.value,
1403
+ content: Ge.value,
1404
+ isCustom: L.value,
1405
+ isFullscreen: G.value,
1406
+ smooth: i.value.style.chart.tooltip.smooth,
1407
+ backdropFilter: i.value.style.chart.tooltip.backdropFilter,
1408
+ smoothForce: i.value.style.chart.tooltip.smoothForce,
1409
+ smoothSnapThreshold: i.value.style.chart.tooltip.smoothSnapThreshold,
1410
+ isA11yMode: Q.value === "keyboard",
1411
+ a11yPosition: tt.value
1412
+ }, {
1413
+ "tooltip-before": N(() => [
1414
+ k(e.$slots, "tooltip-before", $(T({ ...ve.value })), void 0, !0)
1415
+ ]),
1416
+ "tooltip-after": N(() => [
1417
+ k(e.$slots, "tooltip-after", $(T({ ...ve.value })), void 0, !0)
1418
+ ]),
1419
+ _: 3
1420
+ }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1421
+ e.$slots.source ? (b(), P("div", {
1422
+ key: 8,
1423
+ ref_key: "source",
1424
+ ref: Je,
1425
+ dir: "auto"
1426
+ }, [
1427
+ k(e.$slots, "source", {}, void 0, !0)
1428
+ ], 512)) : S("", !0),
1429
+ k(e.$slots, "skeleton", {}, () => [
1430
+ w(Ne) ? (b(), U(Xo, { key: 0 })) : S("", !0)
1431
+ ], !0)
1432
+ ], 14, rn));
1433
+ }
1434
+ }, jn = /* @__PURE__ */ nn(yn, [["__scopeId", "data-v-07753473"]]);
1435
+ export {
1436
+ jn as default
1437
+ };