@undp/data-viz 2.4.0 → 2.5.0

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 (262) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +301 -302
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +264 -267
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.d.ts +1 -1
  68. package/dist/DotDensityMap.js +2 -2
  69. package/dist/DualAxisLineChart.cjs +1 -1
  70. package/dist/DualAxisLineChart.cjs.map +1 -1
  71. package/dist/DualAxisLineChart.d.ts +13 -9
  72. package/dist/DualAxisLineChart.js +341 -351
  73. package/dist/DualAxisLineChart.js.map +1 -1
  74. package/dist/DumbbellChart.cjs +1 -1
  75. package/dist/DumbbellChart.cjs.map +1 -1
  76. package/dist/DumbbellChart.d.ts +11 -9
  77. package/dist/DumbbellChart.js +592 -593
  78. package/dist/DumbbellChart.js.map +1 -1
  79. package/dist/GeoHubCompareMaps.cjs +1 -1
  80. package/dist/GeoHubCompareMaps.d.ts +1 -1
  81. package/dist/GeoHubCompareMaps.js +1 -1
  82. package/dist/GeoHubMap.cjs +1 -1
  83. package/dist/GeoHubMap.d.ts +1 -1
  84. package/dist/GeoHubMap.js +1 -1
  85. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  86. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  88. package/dist/GraphEl-B7x5ku_y.cjs +2 -0
  89. package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
  90. package/dist/GraphEl-B8tGXqWk.js +1829 -0
  91. package/dist/GraphEl-B8tGXqWk.js.map +1 -0
  92. package/dist/GriddedGraphs.cjs +1 -1
  93. package/dist/GriddedGraphs.d.ts +28 -16
  94. package/dist/GriddedGraphs.js +1 -1
  95. package/dist/GriddedGraphsFromConfig.d.ts +28 -16
  96. package/dist/HeatMap.cjs +1 -1
  97. package/dist/HeatMap.cjs.map +1 -1
  98. package/dist/HeatMap.d.ts +11 -9
  99. package/dist/HeatMap.js +203 -205
  100. package/dist/HeatMap.js.map +1 -1
  101. package/dist/Histogram.cjs +1 -1
  102. package/dist/Histogram.cjs.map +1 -1
  103. package/dist/Histogram.d.ts +11 -5
  104. package/dist/Histogram.js +88 -89
  105. package/dist/Histogram.js.map +1 -1
  106. package/dist/HybridMap.cjs +1 -1
  107. package/dist/HybridMap.cjs.map +1 -1
  108. package/dist/HybridMap.d.ts +11 -3
  109. package/dist/HybridMap.js +282 -285
  110. package/dist/HybridMap.js.map +1 -1
  111. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  112. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  113. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  114. package/dist/LineChartWithConfidenceInterval.js +393 -395
  115. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  116. package/dist/LinearColorLegend.cjs +1 -1
  117. package/dist/LinearColorLegend.js +1 -1
  118. package/dist/MultiGraphDashboard.d.ts +28 -16
  119. package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
  120. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  121. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  122. package/dist/MultiLineAltChart.cjs +1 -1
  123. package/dist/MultiLineAltChart.cjs.map +1 -1
  124. package/dist/MultiLineAltChart.d.ts +11 -9
  125. package/dist/MultiLineAltChart.js +411 -413
  126. package/dist/MultiLineAltChart.js.map +1 -1
  127. package/dist/MultiLineChart.cjs +1 -1
  128. package/dist/MultiLineChart.cjs.map +1 -1
  129. package/dist/MultiLineChart.d.ts +11 -9
  130. package/dist/MultiLineChart.js +438 -440
  131. package/dist/MultiLineChart.js.map +1 -1
  132. package/dist/ParetoChart.cjs +1 -1
  133. package/dist/ParetoChart.cjs.map +1 -1
  134. package/dist/ParetoChart.d.ts +13 -13
  135. package/dist/ParetoChart.js +347 -355
  136. package/dist/ParetoChart.js.map +1 -1
  137. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
  138. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
  139. package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
  140. package/dist/RadarChart.cjs +1 -1
  141. package/dist/RadarChart.cjs.map +1 -1
  142. package/dist/RadarChart.d.ts +11 -5
  143. package/dist/RadarChart.js +213 -213
  144. package/dist/RadarChart.js.map +1 -1
  145. package/dist/SankeyChart.cjs +1 -1
  146. package/dist/SankeyChart.cjs.map +1 -1
  147. package/dist/SankeyChart.d.ts +11 -9
  148. package/dist/SankeyChart.js +448 -450
  149. package/dist/SankeyChart.js.map +1 -1
  150. package/dist/ScatterPlot.cjs +1 -1
  151. package/dist/ScatterPlot.cjs.map +1 -1
  152. package/dist/ScatterPlot.d.ts +13 -13
  153. package/dist/ScatterPlot.js +490 -498
  154. package/dist/ScatterPlot.js.map +1 -1
  155. package/dist/ScrollStory.d.ts +28 -16
  156. package/dist/SimpleLineChart.cjs +1 -1
  157. package/dist/SimpleLineChart.cjs.map +1 -1
  158. package/dist/SimpleLineChart.d.ts +11 -9
  159. package/dist/SimpleLineChart.js +362 -364
  160. package/dist/SimpleLineChart.js.map +1 -1
  161. package/dist/SingleGraphDashboard.cjs +1 -1
  162. package/dist/SingleGraphDashboard.d.ts +28 -16
  163. package/dist/SingleGraphDashboard.js +1 -1
  164. package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
  165. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
  166. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
  167. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  168. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  169. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
  170. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  171. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
  173. package/dist/SlopeChart.cjs +1 -1
  174. package/dist/SlopeChart.d.ts +1 -1
  175. package/dist/SlopeChart.js +2 -2
  176. package/dist/SparkLine.cjs +1 -1
  177. package/dist/SparkLine.d.ts +1 -1
  178. package/dist/SparkLine.js +1 -1
  179. package/dist/StatCardFromData.cjs +1 -1
  180. package/dist/StatCardFromData.cjs.map +1 -1
  181. package/dist/StatCardFromData.d.ts +11 -9
  182. package/dist/StatCardFromData.js +113 -116
  183. package/dist/StatCardFromData.js.map +1 -1
  184. package/dist/StripChart.cjs +1 -1
  185. package/dist/StripChart.cjs.map +1 -1
  186. package/dist/StripChart.d.ts +11 -9
  187. package/dist/StripChart.js +434 -435
  188. package/dist/StripChart.js.map +1 -1
  189. package/dist/ThreeDGlobe.cjs +1 -1
  190. package/dist/ThreeDGlobe.cjs.map +1 -1
  191. package/dist/ThreeDGlobe.d.ts +11 -3
  192. package/dist/ThreeDGlobe.js +150 -153
  193. package/dist/ThreeDGlobe.js.map +1 -1
  194. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  195. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  196. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  197. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  198. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  199. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  200. package/dist/TreeMapGraph.cjs +1 -1
  201. package/dist/TreeMapGraph.cjs.map +1 -1
  202. package/dist/TreeMapGraph.d.ts +11 -9
  203. package/dist/TreeMapGraph.js +369 -371
  204. package/dist/TreeMapGraph.js.map +1 -1
  205. package/dist/Types.d.ts +28 -16
  206. package/dist/UnitChart.cjs +1 -1
  207. package/dist/UnitChart.cjs.map +1 -1
  208. package/dist/UnitChart.d.ts +11 -5
  209. package/dist/UnitChart.js +118 -119
  210. package/dist/UnitChart.js.map +1 -1
  211. package/dist/WaterfallChart.cjs +1 -1
  212. package/dist/WaterfallChart.cjs.map +1 -1
  213. package/dist/WaterfallChart.d.ts +11 -9
  214. package/dist/WaterfallChart.js +306 -308
  215. package/dist/WaterfallChart.js.map +1 -1
  216. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  217. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  218. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  219. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  220. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  221. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  222. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  223. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  224. package/dist/index-BPyj_6hG.js +375 -0
  225. package/dist/index-BPyj_6hG.js.map +1 -0
  226. package/dist/index-DuLvdHo2.cjs +2 -0
  227. package/dist/index-DuLvdHo2.cjs.map +1 -0
  228. package/dist/index.cjs +1 -1
  229. package/dist/index.d.ts +105 -245
  230. package/dist/index.js +2 -2
  231. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  232. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  233. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  234. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  235. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  236. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  237. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  238. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  239. package/dist/utils.cjs +1 -1
  240. package/dist/utils.d.ts +1 -1
  241. package/dist/utils.js +1 -1
  242. package/package.json +2 -2
  243. package/dist/GraphEl-B73N4RIA.js +0 -1906
  244. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  245. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  246. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  247. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  248. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  249. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  250. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  251. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  252. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  253. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  254. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  255. package/dist/index-B0Awa_de.js +0 -377
  256. package/dist/index-B0Awa_de.js.map +0 -1
  257. package/dist/index-CP8cmNzt.cjs +0 -2
  258. package/dist/index-CP8cmNzt.cjs.map +0 -1
  259. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  260. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  261. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  262. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
package/dist/HybridMap.js CHANGED
@@ -1,38 +1,38 @@
1
- import { _ as oo, m as Vt, a as Ht, j as a, c as ao } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import * as ro from "react";
3
- import io, { useMemo as Ft, useState as S, useRef as qe, useEffect as Ue, useEffectEvent as Tt } from "react";
4
- import { f as no, p as lo } from "./parse-Dv4of-PN.js";
5
- import { g as so, N as co } from "./getSliderMarks-X-_goqH9.js";
6
- import { w as mo } from "./Spinner-B2IIKg9r.js";
7
- import { i as At } from "./index-Bwrro8-q.js";
8
- import { i as Rt, z as po, a as uo, g as ho, b as fo, c as go, d as yo, e as vo, f as xo } from "./index-CKpKc9DR.js";
9
- import { _ as Lt } from "./Typography-BO0gQDIT.js";
10
- import { i as bo } from "./index-DCsFBfJ_.js";
11
- import { n as Gt } from "./Source-QGk8vhkS.js";
12
- import { w as wo } from "./index-w64Zl8io-ihagHOdP.js";
13
- import { T as jo } from "./Tooltip-Bj-s__cI.js";
14
- import { X as ko, E as Co, P as Do, e as No } from "./index-ApTBN0kp.js";
15
- import { D as Mo } from "./DetailsModal-B2XBWR7w.js";
16
- import { s as So } from "./pow-BXYLJHCq.js";
17
- import { o as Oo } from "./ordinal-CHaxGJ_l.js";
18
- import { t as Eo } from "./threshold-DFfqcDMa.js";
19
- import { s as Wt } from "./select-DKy99ogv.js";
1
+ import { _ as Qt, m as _t, a as Gt, j as a, c as eo } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import * as to from "react";
3
+ import oo, { useMemo as Wt, useState as S, useRef as He, useEffect as qe, useEffectEvent as Vt } from "react";
4
+ import { f as ao, p as ro } from "./parse-Dv4of-PN.js";
5
+ import { g as io, N as no } from "./getSliderMarks-X-_goqH9.js";
6
+ import { w as lo } from "./Spinner-B2IIKg9r.js";
7
+ import { i as $t } from "./index-Bwrro8-q.js";
8
+ import { i as Ft, z as so, a as co, g as mo, b as po, c as uo, d as ho, e as fo, f as go } from "./index-CKpKc9DR.js";
9
+ import { _ as zt } from "./Typography-BO0gQDIT.js";
10
+ import { i as yo } from "./index-DCsFBfJ_.js";
11
+ import { n as Tt } from "./Source-QGk8vhkS.js";
12
+ import { w as vo } from "./index-w64Zl8io-ihagHOdP.js";
13
+ import { T as xo } from "./Tooltip-3EYDVa3w.js";
14
+ import { X as bo, E as wo, P as jo, e as ko } from "./index-ApTBN0kp.js";
15
+ import { D as Co } from "./DetailsModal-GqEbGHY2.js";
16
+ import { s as Do } from "./pow-BXYLJHCq.js";
17
+ import { o as No } from "./ordinal-CHaxGJ_l.js";
18
+ import { t as Mo } from "./threshold-DFfqcDMa.js";
19
+ import { s as Pt } from "./select-DKy99ogv.js";
20
20
  import { m as le } from "./proxy-BsxtcZKa.js";
21
- import { c as vt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
- import { n as Io } from "./numberFormattingFunction-DqMf_v1m.js";
23
- import { u as Bo } from "./use-in-view-KOXq5Kmc.js";
24
- import { A as zo } from "./index-Cv_5q6Rb.js";
25
- import { GraphFooter as Po } from "./GraphFooter.js";
26
- import { GraphHeader as _o } from "./GraphHeader.js";
27
- import { Colors as ke } from "./Colors.js";
28
- import { f as Ut } from "./fetchAndParseData-BAXhgTDM.js";
29
- import { a as Lo, G as Wo } from "./GraphContainer-B8ZqOzKI.js";
30
- import { g as Vo } from "./getUniqValue-DsqSii6M.js";
31
- import { g as $o } from "./getJenks-DTCcQSDi.js";
32
- var Fo = "Separator", qt = "horizontal", To = ["horizontal", "vertical"], Xt = ro.forwardRef((r, e) => {
33
- const { decorative: t, orientation: w = qt, ...y } = r, l = Ao(w) ? w : qt, v = t ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
34
- return /* @__PURE__ */ Ht.jsx(
35
- wo.div,
21
+ import { c as yt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
+ import { n as So } from "./numberFormattingFunction-BUUV_luR.js";
23
+ import { u as Oo } from "./use-in-view-KOXq5Kmc.js";
24
+ import { A as Eo } from "./index-Cv_5q6Rb.js";
25
+ import { GraphFooter as Bo } from "./GraphFooter.js";
26
+ import { GraphHeader as Io } from "./GraphHeader.js";
27
+ import { Colors as Ce } from "./Colors.js";
28
+ import { f as At } from "./fetchAndParseData-BAXhgTDM.js";
29
+ import { a as zo, G as Po } from "./GraphContainer-B8ZqOzKI.js";
30
+ import { g as _o } from "./getUniqValue-DsqSii6M.js";
31
+ import { g as Lo } from "./getJenks-DTCcQSDi.js";
32
+ var Wo = "Separator", Rt = "horizontal", Vo = ["horizontal", "vertical"], Ut = to.forwardRef((r, e) => {
33
+ const { decorative: o, orientation: w = Rt, ...y } = r, l = $o(w) ? w : Rt, v = o ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
34
+ return /* @__PURE__ */ Gt.jsx(
35
+ vo.div,
36
36
  {
37
37
  "data-orientation": l,
38
38
  ...v,
@@ -41,31 +41,31 @@ var Fo = "Separator", qt = "horizontal", To = ["horizontal", "vertical"], Xt = r
41
41
  }
42
42
  );
43
43
  });
44
- Xt.displayName = Fo;
45
- function Ao(r) {
46
- return To.includes(r);
44
+ Ut.displayName = Wo;
45
+ function $o(r) {
46
+ return Vo.includes(r);
47
47
  }
48
- var Yt = Xt;
49
- const Jt = io.forwardRef((r, e) => {
50
- const t = oo.c(14);
48
+ var qt = Ut;
49
+ const Ht = oo.forwardRef((r, e) => {
50
+ const o = Qt.c(14);
51
51
  let w, y, l, v;
52
- t[0] !== r ? ({
52
+ o[0] !== r ? ({
53
53
  className: w,
54
54
  variant: l,
55
55
  orientation: v,
56
56
  ...y
57
- } = r, t[0] = r, t[1] = w, t[2] = y, t[3] = l, t[4] = v) : (w = t[1], y = t[2], l = t[3], v = t[4]);
57
+ } = r, o[0] = r, o[1] = w, o[2] = y, o[3] = l, o[4] = v) : (w = o[1], y = o[2], l = o[3], v = o[4]);
58
58
  const x = l === void 0 ? "dark" : l, s = v === void 0 ? "horizontal" : v, u = s === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", D = x === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
59
59
  let C;
60
- t[5] !== w || t[6] !== u || t[7] !== D ? (C = Vt(u, D, w), t[5] = w, t[6] = u, t[7] = D, t[8] = C) : C = t[8];
61
- let B;
62
- return t[9] !== s || t[10] !== y || t[11] !== e || t[12] !== C ? (B = /* @__PURE__ */ Ht.jsx(Yt, { ...y, ref: e, orientation: s, className: C }), t[9] = s, t[10] = y, t[11] = e, t[12] = C, t[13] = B) : B = t[13], B;
60
+ o[5] !== w || o[6] !== u || o[7] !== D ? (C = _t(u, D, w), o[5] = w, o[6] = u, o[7] = D, o[8] = C) : C = o[8];
61
+ let I;
62
+ return o[9] !== s || o[10] !== y || o[11] !== e || o[12] !== C ? (I = /* @__PURE__ */ Gt.jsx(qt, { ...y, ref: e, orientation: s, className: C }), o[9] = s, o[10] = y, o[11] = e, o[12] = C, o[13] = I) : I = o[13], I;
63
63
  });
64
- Jt.displayName = Yt.displayName;
65
- function Ro(r) {
64
+ Ht.displayName = qt.displayName;
65
+ function Fo(r) {
66
66
  const {
67
67
  data: e,
68
- colors: t,
68
+ colors: o,
69
69
  mapData: w,
70
70
  mapColorLegendTitle: y,
71
71
  colorDomain: l,
@@ -75,98 +75,98 @@ function Ro(r) {
75
75
  scale: u,
76
76
  centerPoint: D,
77
77
  tooltip: C,
78
- showLabels: B,
78
+ showLabels: I,
79
79
  mapBorderWidth: se,
80
80
  mapBorderColor: ce,
81
- mapNoDataColor: Ce,
81
+ mapNoDataColor: De,
82
82
  onSeriesMouseOver: G,
83
- showColorScale: De,
84
- zoomScaleExtend: He,
85
- zoomTranslateExtend: Xe,
86
- highlightedDataPoints: Ne,
87
- onSeriesMouseClick: L,
88
- resetSelectionOnDoubleClick: Me,
83
+ showColorScale: Ne,
84
+ zoomScaleExtend: Xe,
85
+ zoomTranslateExtend: Ye,
86
+ highlightedDataPoints: Me,
87
+ onSeriesMouseClick: V,
88
+ resetSelectionOnDoubleClick: Se,
89
89
  detailsOnClick: U,
90
90
  styles: N,
91
91
  classNames: q,
92
- mapProjection: oe,
92
+ mapProjection: ae,
93
93
  zoomInteraction: H,
94
94
  animate: b,
95
- dimmedOpacity: W,
95
+ dimmedOpacity: z,
96
96
  customLayers: de,
97
- maxRadiusValue: Se,
98
- categorical: ae,
97
+ maxRadiusValue: Oe,
98
+ categorical: re,
99
99
  dotColor: X,
100
- collapseColorScaleByDefault: Oe,
101
- highlightedIds: re,
100
+ collapseColorScaleByDefault: Ee,
101
+ highlightedIds: $,
102
102
  mapProperty: me,
103
103
  dotLegendTitle: pe,
104
- dotBorderColor: Ee,
104
+ dotBorderColor: Be,
105
105
  labelColor: Ie,
106
106
  projectionRotate: Y,
107
- rewindCoordinatesInMapData: J,
107
+ rewindCoordinatesInMapData: Z,
108
108
  overlayMapData: p,
109
109
  overlayMapBorderColor: g,
110
- overlayMapBorderWidth: Ye,
111
- locale: Je
112
- } = r, K = Ft(() => J ? Rt(w, {
110
+ overlayMapBorderWidth: Ze,
111
+ numberDisplayOptions: ue
112
+ } = r, J = Wt(() => Z ? Ft(w, {
113
113
  reverse: !0
114
- }) : w, [w, J]), Ke = Ft(() => !J || !p ? p : Rt(p, {
114
+ }) : w, [w, Z]), Je = Wt(() => !Z || !p ? p : Ft(p, {
115
115
  reverse: !0
116
- }), [p, J]), [M, O] = S(void 0), [ue, he] = S(Oe === void 0 ? !(s < 680) : !Oe), fe = qe(null), [V, Z] = S(void 0), [ge, z] = S(void 0), [Be, E] = S(void 0), [ze, $] = S(void 0), f = qe(null), j = Bo(f, {
116
+ }), [p, Z]), [M, O] = S(void 0), [he, fe] = S(Ee === void 0 ? !(s < 680) : !Ee), ge = He(null), [K, Q] = S(void 0), [ye, P] = S(void 0), [ze, E] = S(void 0), [Pe, _] = S(void 0), f = He(null), j = Oo(f, {
117
117
  once: b.once,
118
118
  amount: b.amount
119
- }), ie = qe(null), k = e.filter((o) => o.radius === void 0 || o.radius === null).length !== e.length ? So().domain([0, Se]).range([0.25, v]).nice() : void 0, Pe = ae ? Oo().domain(l).range(t) : Eo().domain(l).range(t);
120
- Ue(() => {
121
- const o = Wt(ie.current), i = Wt(f.current), h = (n) => {
119
+ }), ie = He(null), k = e.filter((t) => t.radius === void 0 || t.radius === null).length !== e.length ? Do().domain([0, Oe]).range([0.25, v]).nice() : void 0, _e = re ? No().domain(l).range(o) : Mo().domain(l).range(o);
120
+ qe(() => {
121
+ const t = Pt(ie.current), i = Pt(f.current), h = (n) => {
122
122
  if (H === "noZoom") return !1;
123
123
  if (H === "button") return !n.type.includes("wheel");
124
- const T = n.type === "wheel", $e = n.type.startsWith("touch"), Fe = n.type === "mousedown" || n.type === "mousemove";
125
- return $e ? !0 : T ? H === "scroll" ? !0 : n.ctrlKey : Fe && !n.button && !n.ctrlKey;
126
- }, _ = po().scaleExtent(He).translateExtent(Xe || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
124
+ const T = n.type === "wheel", Fe = n.type.startsWith("touch"), Te = n.type === "mousedown" || n.type === "mousemove";
125
+ return Fe ? !0 : T ? H === "scroll" ? !0 : n.ctrlKey : Te && !n.button && !n.ctrlKey;
126
+ }, W = so().scaleExtent(Xe).translateExtent(Ye || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
127
127
  transform: n
128
128
  }) => {
129
- o.attr("transform", n);
129
+ t.attr("transform", n);
130
130
  });
131
- i.call(_), fe.current = _;
131
+ i.call(W), ge.current = W;
132
132
  }, [x, s, H]);
133
- const Q = uo(K), F = bo(K), _e = (Q[2] - Q[0]) * 1.15, Le = (Q[3] - Q[1]) * 1.15, We = s * 190 / 960 * 360 / _e, Ve = x * 190 / 678 * 180 / Le, P = u * Math.min(We, Ve), ee = oe === "mercator" ? ho().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "equalEarth" ? fo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "naturalEarth" ? go().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "orthographic" ? yo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : vo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P), te = xo().projection(ee), ye = (o) => {
134
- if (!f.current || !fe.current) return;
135
- Wt(f.current).call(fe.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
133
+ const ee = co(J), F = yo(J), Le = (ee[2] - ee[0]) * 1.15, We = (ee[3] - ee[1]) * 1.15, Ve = s * 190 / 960 * 360 / Le, $e = x * 190 / 678 * 180 / We, L = u * Math.min(Ve, $e), te = ae === "mercator" ? mo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : ae === "equalEarth" ? po().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : ae === "naturalEarth" ? uo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : ae === "orthographic" ? ho().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L) : fo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(L), oe = go().projection(te), ve = (t) => {
134
+ if (!f.current || !ge.current) return;
135
+ Pt(f.current).call(ge.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
136
136
  };
137
137
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
138
138
  /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
139
139
  /* @__PURE__ */ a.jsx(le.svg, { width: `${s}px`, height: `${x}px`, viewBox: `0 0 ${s} ${x}`, ref: f, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: ie, children: [
140
- de.filter((o) => o.position === "before").map((o) => o.layer),
141
- K.features.map((o, i) => {
142
- if (!o.properties?.[me]) return null;
143
- const h = te(o);
144
- return h ? /* @__PURE__ */ a.jsx(le.g, { opacity: M ? W : re ? re.indexOf(o.properties[me]) !== -1 ? 1 : W : 1, children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
140
+ de.filter((t) => t.position === "before").map((t) => t.layer),
141
+ J.features.map((t, i) => {
142
+ if (!t.properties?.[me]) return null;
143
+ const h = oe(t);
144
+ return h ? /* @__PURE__ */ a.jsx(le.g, { opacity: M ? z : $ ? $.indexOf(t.properties[me]) !== -1 ? 1 : z : 1, children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
145
145
  stroke: ce,
146
146
  strokeWidth: se,
147
- fill: Ce,
147
+ fill: De,
148
148
  vectorEffect: "non-scaling-stroke"
149
149
  } }) }, i) : null;
150
150
  }),
151
- /* @__PURE__ */ a.jsxs(zo, { children: [
152
- e.filter((o) => o.id).map((o) => {
153
- const i = K.features.findIndex(
151
+ /* @__PURE__ */ a.jsxs(Eo, { children: [
152
+ e.filter((t) => t.id).map((t) => {
153
+ const i = J.features.findIndex(
154
154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
- (n) => o.id === n.properties[me]
155
+ (n) => t.id === n.properties[me]
156
156
  );
157
157
  if (i === -1) return null;
158
- const h = te(K.features[i]);
158
+ const h = oe(J.features[i]);
159
159
  if (!h) return null;
160
- const _ = vt(o.x) ? Ce : (
160
+ const W = yt(t.x) ? De : (
161
161
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
162
- Pe(o.x)
162
+ _e(t.x)
163
163
  );
164
164
  return /* @__PURE__ */ a.jsx(le.g, { className: "undp-map-shapes", variants: {
165
165
  initial: {
166
166
  opacity: 0
167
167
  },
168
168
  whileInView: {
169
- opacity: M ? M === _ ? 1 : W : re ? re.indexOf(o.id) !== -1 ? 1 : W : 1,
169
+ opacity: M ? M === W && (!$ || $.indexOf(t.id) !== -1) ? 1 : z : $ ? $.indexOf(t.id) !== -1 ? 1 : z : 1,
170
170
  transition: {
171
171
  duration: b.duration
172
172
  }
@@ -177,20 +177,20 @@ function Ro(r) {
177
177
  duration: b.duration
178
178
  }
179
179
  }, onMouseEnter: (n) => {
180
- z(o), $(n.clientY), E(n.clientX), G?.(o);
180
+ P(t), _(n.clientY), E(n.clientX), G?.(t);
181
181
  }, onMouseMove: (n) => {
182
- z(o), $(n.clientY), E(n.clientX);
182
+ P(t), _(n.clientY), E(n.clientX);
183
183
  }, onMouseLeave: () => {
184
- z(void 0), E(void 0), $(void 0), G?.(void 0);
184
+ P(void 0), E(void 0), _(void 0), G?.(void 0);
185
185
  }, onClick: () => {
186
- (L || U) && (At(V, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
186
+ (V || U) && ($t(K, t) && Se ? (Q(void 0), V?.(void 0)) : (Q(t), V?.(t)));
187
187
  }, children: /* @__PURE__ */ a.jsx(le.path, { d: h, variants: {
188
188
  initial: {
189
- fill: _,
189
+ fill: W,
190
190
  opacity: 0
191
191
  },
192
192
  whileInView: {
193
- fill: _,
193
+ fill: W,
194
194
  opacity: 1,
195
195
  transition: {
196
196
  duration: b.duration
@@ -205,26 +205,26 @@ function Ro(r) {
205
205
  stroke: ce,
206
206
  strokeWidth: se,
207
207
  vectorEffect: "non-scaling-stroke"
208
- } }, `${o.id}`) }, o.id);
208
+ } }, `${t.id}`) }, t.id);
209
209
  }),
210
- Ke?.features.map((o, i) => {
211
- const h = te(o);
210
+ Je?.features.map((t, i) => {
211
+ const h = oe(t);
212
212
  return h ? /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
213
213
  stroke: g || ce,
214
- strokeWidth: Ye || se + 1,
214
+ strokeWidth: Ze || se + 1,
215
215
  fill: "none",
216
216
  pointerEvents: "none",
217
217
  vectorEffect: "non-scaling-stroke"
218
218
  } }) }, i) : null;
219
219
  }),
220
- e.filter((o) => !vt(o.lat) && !vt(o.long)).map((o) => {
221
- const i = ee([o.long, o.lat])[0] > 0.8 * s ? -1 : 1;
220
+ e.filter((t) => !yt(t.lat) && !yt(t.long)).map((t) => {
221
+ const i = te([t.long, t.lat])[0] > 0.8 * s ? -1 : 1;
222
222
  return /* @__PURE__ */ a.jsxs(le.g, { className: "undp-map-dots", variants: {
223
223
  initial: {
224
224
  opacity: 0
225
225
  },
226
226
  whileInView: {
227
- opacity: Ne ? Ne.indexOf(o.label || "") !== -1 ? 1 : W : 1,
227
+ opacity: Me ? Me.indexOf(t.label || "") !== -1 ? 1 : z : 1,
228
228
  transition: {
229
229
  duration: b.duration
230
230
  }
@@ -235,24 +235,24 @@ function Ro(r) {
235
235
  duration: b.duration
236
236
  }
237
237
  }, onMouseEnter: (h) => {
238
- z(o), $(h.clientY), E(h.clientX), G?.(o);
238
+ P(t), _(h.clientY), E(h.clientX), G?.(t);
239
239
  }, onMouseMove: (h) => {
240
- z(o), $(h.clientY), E(h.clientX);
240
+ P(t), _(h.clientY), E(h.clientX);
241
241
  }, onMouseLeave: () => {
242
- z(void 0), E(void 0), $(void 0), G?.(void 0);
242
+ P(void 0), E(void 0), _(void 0), G?.(void 0);
243
243
  }, onClick: () => {
244
- (L || U) && (At(V, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
245
- }, transform: `translate(${ee([o.long, o.lat])[0]},${ee([o.long, o.lat])[1]})`, children: [
244
+ (V || U) && ($t(K, t) && Se ? (Q(void 0), V?.(void 0)) : (Q(t), V?.(t)));
245
+ }, transform: `translate(${te([t.long, t.lat])[0]},${te([t.long, t.lat])[1]})`, children: [
246
246
  /* @__PURE__ */ a.jsx(le.circle, { cx: 0, cy: 0, variants: {
247
247
  initial: {
248
248
  r: 0,
249
249
  fill: X,
250
- stroke: Ee || X
250
+ stroke: Be || X
251
251
  },
252
252
  whileInView: {
253
- r: k ? k(o.radius || 0) : v,
253
+ r: k ? k(t.radius || 0) : v,
254
254
  fill: X,
255
- stroke: Ee || X,
255
+ stroke: Be || X,
256
256
  transition: {
257
257
  duration: b.duration
258
258
  }
@@ -266,14 +266,14 @@ function Ro(r) {
266
266
  fillOpacity: 0.8,
267
267
  vectorEffect: "non-scaling-stroke"
268
268
  } }),
269
- B && o.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
269
+ I && t.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
270
270
  initial: {
271
271
  opacity: 0,
272
- x: i * (k ? k(o.radius || 0) : v)
272
+ x: i * (k ? k(t.radius || 0) : v)
273
273
  },
274
274
  whileInView: {
275
275
  opacity: 1,
276
- x: i * (k ? k(o.radius || 0) : v),
276
+ x: i * (k ? k(t.radius || 0) : v),
277
277
  transition: {
278
278
  duration: b.duration
279
279
  }
@@ -283,96 +283,96 @@ function Ro(r) {
283
283
  transition: {
284
284
  duration: b.duration
285
285
  }
286
- }, y: 0, className: Vt("text-sm", q?.graphObjectValues), style: {
286
+ }, y: 0, className: _t("text-sm", q?.graphObjectValues), style: {
287
287
  textAnchor: i === -1 ? "end" : "start",
288
288
  fill: Ie || "#000",
289
289
  vectorEffect: "non-scaling-stroke",
290
290
  ...N?.graphObjectValues || {}
291
- }, dx: i * 4, dy: 5, children: o.label }) : null
292
- ] }, o.label || `${o.lat}-${o.long}`);
291
+ }, dx: i * 4, dy: 5, children: t.label }) : null
292
+ ] }, t.label || `${t.lat}-${t.long}`);
293
293
  })
294
294
  ] }),
295
- de.filter((o) => o.position === "after").map((o) => o.layer)
295
+ de.filter((t) => t.position === "after").map((t) => t.layer)
296
296
  ] }) }),
297
- De === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Vt("absolute left-4 bottom-4 map-color-legend", q?.colorLegend), children: ue ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
297
+ Ne === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: _t("absolute left-4 bottom-4 map-color-legend", q?.colorLegend), children: he ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
298
298
  /* @__PURE__ */ a.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
299
- he(!1);
300
- }, children: /* @__PURE__ */ a.jsx(ko, {}) }),
299
+ fe(!1);
300
+ }, children: /* @__PURE__ */ a.jsx(bo, {}) }),
301
301
  /* @__PURE__ */ a.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
302
- width: ae ? void 0 : "340px"
302
+ width: re ? void 0 : "340px"
303
303
  }, children: [
304
304
  pe && pe !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
305
305
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
306
306
  /* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
307
307
  backgroundColor: X
308
308
  } }),
309
- /* @__PURE__ */ a.jsx(Lt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
309
+ /* @__PURE__ */ a.jsx(zt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
310
310
  display: "-webkit-box",
311
311
  WebkitLineClamp: "1",
312
312
  WebkitBoxOrient: "vertical"
313
313
  }, children: pe })
314
314
  ] }),
315
- /* @__PURE__ */ a.jsx(Gt, { size: "xl" }),
316
- /* @__PURE__ */ a.jsx(Jt, {}),
317
- /* @__PURE__ */ a.jsx(Gt, { size: "xl" })
315
+ /* @__PURE__ */ a.jsx(Tt, { size: "xl" }),
316
+ /* @__PURE__ */ a.jsx(Ht, {}),
317
+ /* @__PURE__ */ a.jsx(Tt, { size: "xl" })
318
318
  ] }) : null,
319
- y && y !== "" ? /* @__PURE__ */ a.jsx(Lt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
319
+ y && y !== "" ? /* @__PURE__ */ a.jsx(zt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
320
320
  display: "-webkit-box",
321
321
  WebkitLineClamp: "1",
322
322
  WebkitBoxOrient: "vertical"
323
323
  }, children: y }) : null,
324
- ae ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: l.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
325
- O(t[i % t.length]);
324
+ re ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: l.map((t, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
325
+ O(o[i % o.length]);
326
326
  }, onMouseLeave: () => {
327
327
  O(void 0);
328
328
  }, children: [
329
329
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
330
- backgroundColor: t[i % t.length]
330
+ backgroundColor: o[i % o.length]
331
331
  } }),
332
- /* @__PURE__ */ a.jsx(Lt, { size: "sm", marginBottom: "none", leading: "none", children: o })
332
+ /* @__PURE__ */ a.jsx(zt, { size: "sm", marginBottom: "none", leading: "none", children: t })
333
333
  ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
334
- l.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
335
- O(t[i]);
334
+ l.map((t, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
335
+ O(o[i]);
336
336
  }, onMouseLeave: () => {
337
337
  O(void 0);
338
338
  }, className: "cursor-pointer", children: [
339
- /* @__PURE__ */ a.jsx("rect", { x: i * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className: M === t[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
340
- fill: t[i],
341
- ...M === t[i] ? {} : {
342
- stroke: t[i]
339
+ /* @__PURE__ */ a.jsx("rect", { x: i * 320 / o.length + 1, y: 1, width: 320 / o.length - 2, height: 8, className: M === o[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
340
+ fill: o[i],
341
+ ...M === o[i] ? {} : {
342
+ stroke: o[i]
343
343
  }
344
344
  } }),
345
- /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / t.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
345
+ /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / o.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
346
346
  textAnchor: "middle"
347
- }, children: Io(o, void 0, void 0, void 0, void 0, Je) })
347
+ }, children: So(t, void 0, ue?.precision ?? 2, void 0, void 0, ue?.locale || "en", ue?.padZeros || !1) })
348
348
  ] }, i)),
349
349
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
350
- O(t[l.length]);
350
+ O(o[l.length]);
351
351
  }, onMouseLeave: () => {
352
352
  O(void 0);
353
- }, x: l.length * 320 / t.length + 1, y: 1, width: 320 / t.length - 2, height: 8, className: `cursor-pointer ${M === t[l.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
354
- fill: t[l.length],
355
- ...M === t[l.length] ? {} : {
356
- stroke: t[l.length]
353
+ }, x: l.length * 320 / o.length + 1, y: 1, width: 320 / o.length - 2, height: 8, className: `cursor-pointer ${M === o[l.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
354
+ fill: o[l.length],
355
+ ...M === o[l.length] ? {} : {
356
+ stroke: o[l.length]
357
357
  }
358
358
  } }) })
359
359
  ] }) })
360
360
  ] })
361
361
  ] }) : /* @__PURE__ */ a.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
362
- he(!0);
363
- }, children: /* @__PURE__ */ a.jsx(Co, {}) }) }),
362
+ fe(!0);
363
+ }, children: /* @__PURE__ */ a.jsx(wo, {}) }) }),
364
364
  H === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
365
- /* @__PURE__ */ a.jsx("button", { onClick: () => ye("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
366
- /* @__PURE__ */ a.jsx("button", { onClick: () => ye("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
365
+ /* @__PURE__ */ a.jsx("button", { onClick: () => ve("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
366
+ /* @__PURE__ */ a.jsx("button", { onClick: () => ve("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
367
367
  ] })
368
368
  ] }),
369
- U && V !== void 0 ? /* @__PURE__ */ a.jsx(Mo, { body: U, data: V, setData: Z, className: q?.modal }) : null,
370
- ge && C && Be && ze ? /* @__PURE__ */ a.jsx(jo, { data: ge, body: C, xPos: Be, yPos: ze, backgroundStyle: N?.tooltip, className: q?.tooltip }) : null
369
+ U && K !== void 0 ? /* @__PURE__ */ a.jsx(Co, { body: U, data: K, setData: Q, className: q?.modal }) : null,
370
+ ye && C && ze && Pe ? /* @__PURE__ */ a.jsx(xo, { data: ye, body: C, xPos: ze, yPos: Pe, backgroundStyle: N?.tooltip, className: q?.tooltip }) : null
371
371
  ] });
372
372
  }
373
- function Ia(r) {
374
- const e = ao.c(143), {
375
- data: t,
373
+ function Sa(r) {
374
+ const e = eo.c(141), {
375
+ data: o,
376
376
  mapData: w,
377
377
  graphTitle: y,
378
378
  colors: l,
@@ -382,215 +382,212 @@ function Ia(r) {
382
382
  width: u,
383
383
  footNote: D,
384
384
  mapColorLegendTitle: C,
385
- colorDomain: B,
385
+ colorDomain: I,
386
386
  choroplethScaleType: se,
387
387
  radius: ce,
388
- scale: Ce,
388
+ scale: De,
389
389
  centerPoint: G,
390
- padding: De,
391
- mapBorderWidth: He,
392
- mapNoDataColor: Xe,
393
- backgroundColor: Ne,
394
- showLabels: L,
395
- mapBorderColor: Me,
390
+ padding: Ne,
391
+ mapBorderWidth: Xe,
392
+ mapNoDataColor: Ye,
393
+ backgroundColor: Me,
394
+ showLabels: V,
395
+ mapBorderColor: Se,
396
396
  tooltip: U,
397
397
  relativeHeight: N,
398
398
  onSeriesMouseOver: q,
399
- isWorldMap: oe,
399
+ isWorldMap: ae,
400
400
  showColorScale: H,
401
401
  zoomScaleExtend: b,
402
- zoomTranslateExtend: W,
402
+ zoomTranslateExtend: z,
403
403
  graphID: de,
404
- highlightedDataPoints: Se,
405
- onSeriesMouseClick: ae,
404
+ highlightedDataPoints: Oe,
405
+ onSeriesMouseClick: re,
406
406
  graphDownload: X,
407
- dataDownload: Oe,
408
- showAntarctica: re,
407
+ dataDownload: Ee,
408
+ showAntarctica: $,
409
409
  language: me,
410
410
  minHeight: pe,
411
- theme: Ee,
411
+ theme: Be,
412
412
  ariaLabel: Ie,
413
413
  resetSelectionOnDoubleClick: Y,
414
- detailsOnClick: J,
414
+ detailsOnClick: Z,
415
415
  styles: p,
416
416
  classNames: g,
417
- mapProjection: Ye,
418
- zoomInteraction: Je,
419
- animate: K,
420
- dimmedOpacity: Ke,
417
+ mapProjection: Ze,
418
+ zoomInteraction: ue,
419
+ animate: J,
420
+ dimmedOpacity: Je,
421
421
  customLayers: M,
422
422
  maxRadiusValue: O,
423
- timeline: ue,
424
- collapseColorScaleByDefault: he,
425
- dotColor: fe,
426
- highlightedIds: V,
427
- mapProperty: Z,
428
- dotLegendTitle: ge,
429
- dotBorderColor: z,
430
- labelColor: Be,
423
+ timeline: he,
424
+ collapseColorScaleByDefault: fe,
425
+ dotColor: ge,
426
+ highlightedIds: K,
427
+ mapProperty: Q,
428
+ dotLegendTitle: ye,
429
+ dotBorderColor: P,
430
+ labelColor: ze,
431
431
  projectionRotate: E,
432
- rewindCoordinatesInMapData: ze,
433
- locale: $,
432
+ rewindCoordinatesInMapData: Pe,
433
+ numberDisplayOptions: _,
434
434
  mapOverlay: f
435
- } = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : D, k = se === void 0 ? "threshold" : se, Pe = ce === void 0 ? 5 : ce, Q = Ce === void 0 ? 0.95 : Ce, F = He === void 0 ? 0.5 : He, _e = Xe === void 0 ? ke.light.graphNoData : Xe, Le = Ne === void 0 ? !1 : Ne, We = L === void 0 ? !1 : L, Ve = Me === void 0 ? ke.light.grays["gray-500"] : Me, P = oe === void 0 ? !0 : oe, ee = H === void 0 ? !0 : H;
436
- let te;
437
- e[0] !== b ? (te = b === void 0 ? [0.8, 6] : b, e[0] = b, e[1] = te) : te = e[1];
438
- const ye = te, o = X === void 0 ? !1 : X, i = Oe === void 0 ? !1 : Oe, h = re === void 0 ? !1 : re, _ = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, T = Ee === void 0 ? "light" : Ee, $e = Y === void 0 ? !0 : Y, Fe = Ye === void 0 ? "naturalEarth" : Ye, xt = Je === void 0 ? "button" : Je, Ze = K === void 0 ? !1 : K, bt = Ke === void 0 ? 0.3 : Ke;
435
+ } = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : D, k = se === void 0 ? "threshold" : se, _e = ce === void 0 ? 5 : ce, ee = De === void 0 ? 0.95 : De, F = Xe === void 0 ? 0.5 : Xe, Le = Ye === void 0 ? Ce.light.graphNoData : Ye, We = Me === void 0 ? !1 : Me, Ve = V === void 0 ? !1 : V, $e = Se === void 0 ? Ce.light.grays["gray-500"] : Se, L = ae === void 0 ? !0 : ae, te = H === void 0 ? !0 : H;
436
+ let oe;
437
+ e[0] !== b ? (oe = b === void 0 ? [0.8, 6] : b, e[0] = b, e[1] = oe) : oe = e[1];
438
+ const ve = oe, t = X === void 0 ? !1 : X, i = Ee === void 0 ? !1 : Ee, h = $ === void 0 ? !1 : $, W = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, T = Be === void 0 ? "light" : Be, Fe = Y === void 0 ? !0 : Y, Te = Ze === void 0 ? "naturalEarth" : Ze, vt = ue === void 0 ? "button" : ue, Ke = J === void 0 ? !1 : J, xt = Je === void 0 ? 0.3 : Je;
439
439
  let Qe;
440
440
  e[2] !== M ? (Qe = M === void 0 ? [] : M, e[2] = M, e[3] = Qe) : Qe = e[3];
441
- const wt = Qe;
441
+ const bt = Qe;
442
442
  let et;
443
- e[4] !== ue ? (et = ue === void 0 ? {
443
+ e[4] !== he ? (et = he === void 0 ? {
444
444
  enabled: !1,
445
445
  autoplay: !1,
446
446
  showOnlyActiveDate: !0
447
- } : ue, e[4] = ue, e[5] = et) : et = e[5];
448
- const c = et, jt = fe === void 0 ? ke.primaryColors["blue-600"] : fe;
447
+ } : he, e[4] = he, e[5] = et) : et = e[5];
448
+ const c = et, wt = ge === void 0 ? Ce.primaryColors["blue-600"] : ge, jt = Q === void 0 ? "ISO3" : Q, kt = ze === void 0 ? Ce.primaryColors["blue-600"] : ze;
449
449
  let tt;
450
- e[6] !== V ? (tt = V === void 0 ? [] : V, e[6] = V, e[7] = tt) : tt = e[7];
451
- const kt = tt, Ct = Z === void 0 ? "ISO3" : Z, Dt = Be === void 0 ? ke.primaryColors["blue-600"] : Be;
452
- let ot;
453
- e[8] !== E ? (ot = E === void 0 ? [0, 0] : E, e[8] = E, e[9] = ot) : ot = e[9];
454
- const Nt = ot, Mt = ze === void 0 ? !0 : ze, St = $ === void 0 ? "en" : $, [ne, Kt] = S(0), [Te, Zt] = S(0), [A, Qt] = S(c.autoplay);
455
- let Ae;
456
- if (e[10] !== t || e[11] !== c.dateFormat) {
450
+ e[6] !== E ? (tt = E === void 0 ? [0, 0] : E, e[6] = E, e[7] = tt) : tt = e[7];
451
+ const Ct = tt, Dt = Pe === void 0 ? !0 : Pe, [ne, Xt] = S(0), [Ae, Yt] = S(0), [A, Zt] = S(c.autoplay);
452
+ let Re;
453
+ if (e[8] !== o || e[9] !== c.dateFormat) {
457
454
  let d;
458
- e[13] !== c.dateFormat ? (d = (I) => lo(`${I.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = c.dateFormat, e[14] = d) : d = e[14], Ae = [...new Set(t.filter(ea).map(d))], Ae.sort(Qo), e[10] = t, e[11] = c.dateFormat, e[12] = Ae;
455
+ e[11] !== c.dateFormat ? (d = (B) => ro(`${B.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = c.dateFormat, e[12] = d) : d = e[12], Re = [...new Set(o.filter(Jo).map(d))], Re.sort(Zo), e[8] = o, e[9] = c.dateFormat, e[10] = Re;
459
456
  } else
460
- Ae = e[12];
461
- const m = Ae, [R, Ot] = S(c.autoplay ? 0 : m.length - 1), [ve, eo] = S(void 0), [Et, to] = S(void 0), It = qe(null), $t = qe(null);
462
- let at;
463
- e[15] !== k || e[16] !== B || e[17] !== l?.length || e[18] !== t ? (at = B || (k === "categorical" ? Vo(t, "x") : $o(t.map(Zo), l?.length || 4)), e[15] = k, e[16] = B, e[17] = l?.length, e[18] = t, e[19] = at) : at = e[19];
464
- const Re = at;
465
- let rt, it;
466
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rt = () => {
467
- const d = new ResizeObserver((I) => {
468
- Kt(I[0].target.clientWidth || 620), Zt(I[0].target.clientHeight || 480);
457
+ Re = e[10];
458
+ const m = Re, [R, Nt] = S(c.autoplay ? 0 : m.length - 1), [xe, Jt] = S(void 0), [Mt, Kt] = S(void 0), St = He(null), Lt = He(null);
459
+ let ot;
460
+ e[13] !== k || e[14] !== I || e[15] !== l?.length || e[16] !== o ? (ot = I || (k === "categorical" ? _o(o, "x") : Lo(o.map(Yo), l?.length || 4)), e[13] = k, e[14] = I, e[15] = l?.length, e[16] = o, e[17] = ot) : ot = e[17];
461
+ const Ge = ot;
462
+ let at, rt;
463
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (at = () => {
464
+ const d = new ResizeObserver((B) => {
465
+ Xt(B[0].target.clientWidth || 620), Yt(B[0].target.clientHeight || 480);
469
466
  });
470
- return It.current && d.observe(It.current), () => d.disconnect();
471
- }, it = [], e[20] = rt, e[21] = it) : (rt = e[20], it = e[21]), Ue(rt, it);
472
- let nt;
473
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nt = (d) => {
474
- eo(d);
475
- }, e[22] = nt) : nt = e[22];
476
- const lt = Tt(nt);
467
+ return St.current && d.observe(St.current), () => d.disconnect();
468
+ }, rt = [], e[18] = at, e[19] = rt) : (at = e[18], rt = e[19]), qe(at, rt);
469
+ let it;
470
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (it = (d) => {
471
+ Jt(d);
472
+ }, e[20] = it) : it = e[20];
473
+ const nt = Vt(it);
474
+ let lt;
475
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lt = (d) => {
476
+ Kt(d);
477
+ }, e[21] = lt) : lt = e[21];
478
+ const Ue = Vt(lt);
477
479
  let st;
478
- e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (st = (d) => {
479
- to(d);
480
- }, e[23] = st) : st = e[23];
481
- const Ge = Tt(st);
480
+ e[22] !== j || e[23] !== nt ? (st = () => {
481
+ typeof j == "string" ? At(j).then((B) => {
482
+ nt(B);
483
+ }) : nt(j);
484
+ }, e[22] = j, e[23] = nt, e[24] = st) : st = e[24];
482
485
  let ct;
483
- e[24] !== j || e[25] !== lt ? (ct = () => {
484
- typeof j == "string" ? Ut(j).then((I) => {
485
- lt(I);
486
- }) : lt(j);
487
- }, e[24] = j, e[25] = lt, e[26] = ct) : ct = e[26];
486
+ e[25] !== j ? (ct = [j], e[25] = j, e[26] = ct) : ct = e[26], qe(st, ct);
488
487
  let dt;
489
- e[27] !== j ? (dt = [j], e[27] = j, e[28] = dt) : dt = e[28], Ue(ct, dt);
488
+ e[27] !== f?.mapData || e[28] !== Ue ? (dt = () => {
489
+ f?.mapData || Ue(void 0), typeof f?.mapData == "string" ? At(f?.mapData).then((B) => {
490
+ Ue(B);
491
+ }) : Ue(f?.mapData);
492
+ }, e[27] = f?.mapData, e[28] = Ue, e[29] = dt) : dt = e[29];
493
+ const Ot = f?.mapData;
490
494
  let mt;
491
- e[29] !== f?.mapData || e[30] !== Ge ? (mt = () => {
492
- f?.mapData || Ge(void 0), typeof f?.mapData == "string" ? Ut(f?.mapData).then((I) => {
493
- Ge(I);
494
- }) : Ge(f?.mapData);
495
- }, e[29] = f?.mapData, e[30] = Ge, e[31] = mt) : mt = e[31];
496
- const Bt = f?.mapData;
497
- let pt;
498
- e[32] !== Bt ? (pt = [Bt], e[32] = Bt, e[33] = pt) : pt = e[33], Ue(mt, pt);
499
- let ut, ht;
500
- e[34] !== A || e[35] !== c.speed || e[36] !== m ? (ut = () => {
495
+ e[30] !== Ot ? (mt = [Ot], e[30] = Ot, e[31] = mt) : mt = e[31], qe(dt, mt);
496
+ let pt, ut;
497
+ e[32] !== A || e[33] !== c.speed || e[34] !== m ? (pt = () => {
501
498
  const d = setInterval(() => {
502
- Ot((I) => I < m.length - 1 ? I + 1 : 0);
499
+ Nt((B) => B < m.length - 1 ? B + 1 : 0);
503
500
  }, (c.speed || 2) * 1e3);
504
501
  return A || clearInterval(d), () => clearInterval(d);
505
- }, ht = [m, A, c.speed], e[34] = A, e[35] = c.speed, e[36] = m, e[37] = ut, e[38] = ht) : (ut = e[37], ht = e[38]), Ue(ut, ht);
506
- const zt = c.dateFormat || "yyyy";
507
- let ft;
508
- e[39] !== R || e[40] !== zt || e[41] !== c.showOnlyActiveDate || e[42] !== m ? (ft = so(m, R, c.showOnlyActiveDate, zt), e[39] = R, e[40] = zt, e[41] = c.showOnlyActiveDate, e[42] = m, e[43] = ft) : ft = e[43];
509
- const gt = ft, Pt = g?.graphContainer, _t = p?.graphContainer;
510
- let xe;
511
- e[44] !== g?.description || e[45] !== g?.title || e[46] !== t || e[47] !== i || e[48] !== x || e[49] !== o || e[50] !== y || e[51] !== p?.description || e[52] !== p?.title || e[53] !== u ? (xe = y || x || o || i ? /* @__PURE__ */ a.jsx(_o, { styles: {
502
+ }, ut = [m, A, c.speed], e[32] = A, e[33] = c.speed, e[34] = m, e[35] = pt, e[36] = ut) : (pt = e[35], ut = e[36]), qe(pt, ut);
503
+ const Et = c.dateFormat || "yyyy";
504
+ let ht;
505
+ e[37] !== R || e[38] !== Et || e[39] !== c.showOnlyActiveDate || e[40] !== m ? (ht = io(m, R, c.showOnlyActiveDate, Et), e[37] = R, e[38] = Et, e[39] = c.showOnlyActiveDate, e[40] = m, e[41] = ht) : ht = e[41];
506
+ const ft = ht, Bt = g?.graphContainer, It = p?.graphContainer;
507
+ let be;
508
+ e[42] !== g?.description || e[43] !== g?.title || e[44] !== o || e[45] !== i || e[46] !== x || e[47] !== t || e[48] !== y || e[49] !== p?.description || e[50] !== p?.title || e[51] !== u ? (be = y || x || t || i ? /* @__PURE__ */ a.jsx(Io, { styles: {
512
509
  title: p?.title,
513
510
  description: p?.description
514
511
  }, classNames: {
515
512
  title: g?.title,
516
513
  description: g?.description
517
- }, graphTitle: y, graphDescription: x, width: u, graphDownload: o ? $t : void 0, dataDownload: i ? t.map(Ko).filter(Jo).length > 0 ? t.map(Yo).filter(Xo) : t.filter(Ho) : null }) : null, e[44] = g?.description, e[45] = g?.title, e[46] = t, e[47] = i, e[48] = x, e[49] = o, e[50] = y, e[51] = p?.description, e[52] = p?.title, e[53] = u, e[54] = xe) : xe = e[54];
518
- let be;
519
- e[55] !== R || e[56] !== gt || e[57] !== A || e[58] !== c.enabled || e[59] !== m ? (be = c.enabled && m.length > 0 && gt ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
514
+ }, graphTitle: y, graphDescription: x, width: u, graphDownload: t ? Lt : void 0, dataDownload: i ? o.map(Xo).filter(Ho).length > 0 ? o.map(qo).filter(Uo) : o.filter(Go) : null }) : null, e[42] = g?.description, e[43] = g?.title, e[44] = o, e[45] = i, e[46] = x, e[47] = t, e[48] = y, e[49] = p?.description, e[50] = p?.title, e[51] = u, e[52] = be) : be = e[52];
515
+ let we;
516
+ e[53] !== R || e[54] !== ft || e[55] !== A || e[56] !== c.enabled || e[57] !== m ? (we = c.enabled && m.length > 0 && ft ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
520
517
  /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
521
- Qt(!A);
522
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ a.jsx(Do, {}) : /* @__PURE__ */ a.jsx(No, {}) }),
523
- /* @__PURE__ */ a.jsx(co, { min: m[0], max: m[m.length - 1], marks: gt, step: null, defaultValue: m[m.length - 1], value: m[R], onChangeComplete: (d) => {
524
- Ot(m.indexOf(d));
518
+ Zt(!A);
519
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ a.jsx(jo, {}) : /* @__PURE__ */ a.jsx(ko, {}) }),
520
+ /* @__PURE__ */ a.jsx(no, { min: m[0], max: m[m.length - 1], marks: ft, step: null, defaultValue: m[m.length - 1], value: m[R], onChangeComplete: (d) => {
521
+ Nt(m.indexOf(d));
525
522
  }, onChange: (d) => {
526
- Ot(m.indexOf(d));
523
+ Nt(m.indexOf(d));
527
524
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
528
- ] }) : null, e[55] = R, e[56] = gt, e[57] = A, e[58] = c.enabled, e[59] = m, e[60] = be) : be = e[60];
529
- let we;
530
- e[61] !== Ze || e[62] !== G || e[63] !== k || e[64] !== g || e[65] !== he || e[66] !== l || e[67] !== wt || e[68] !== t || e[69] !== J || e[70] !== bt || e[71] !== Re || e[72] !== z || e[73] !== jt || e[74] !== ge || e[75] !== s || e[76] !== Se || e[77] !== kt || e[78] !== R || e[79] !== P || e[80] !== Dt || e[81] !== St || e[82] !== Ve || e[83] !== F || e[84] !== C || e[85] !== _e || e[86] !== f?.mapBorderColor || e[87] !== f?.mapBorderWidth || e[88] !== Fe || e[89] !== Ct || e[90] !== ve || e[91] !== O || e[92] !== n || e[93] !== ae || e[94] !== q || e[95] !== Et || e[96] !== Nt || e[97] !== Pe || e[98] !== N || e[99] !== $e || e[100] !== Mt || e[101] !== Q || e[102] !== h || e[103] !== ee || e[104] !== We || e[105] !== p || e[106] !== Te || e[107] !== ne || e[108] !== T || e[109] !== c.dateFormat || e[110] !== c.enabled || e[111] !== U || e[112] !== m || e[113] !== u || e[114] !== xt || e[115] !== ye || e[116] !== W ? (we = /* @__PURE__ */ a.jsx(Lo, { ref: It, children: ne && Te && ve ? /* @__PURE__ */ a.jsx(Ro, { dotColor: jt, data: t.filter((d) => c.enabled ? `${d.date}` === no(new Date(m[R]), c.dateFormat || "yyyy") : d), mapData: h ? ve : {
531
- ...ve,
532
- features: ve.features.filter(qo)
533
- }, overlayMapData: Et, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Re, width: ne, height: Te, scale: Q, centerPoint: G, colors: l || (k === "categorical" ? ke[T].sequentialColors[`neutralColorsx0${Re.length}`] : ke[T].sequentialColors[`neutralColorsx0${Re.length + 1}`]), mapColorLegendTitle: C, radius: Pe, categorical: k === "categorical", mapBorderWidth: F, mapNoDataColor: _e, mapBorderColor: Ve, tooltip: U, onSeriesMouseOver: q, showLabels: We, isWorldMap: P, showColorScale: ee, zoomScaleExtend: ye, zoomTranslateExtend: W, onSeriesMouseClick: ae, highlightedDataPoints: Se, resetSelectionOnDoubleClick: $e, styles: p, classNames: g, zoomInteraction: xt, detailsOnClick: J, mapProjection: Fe || (P ? "naturalEarth" : "mercator"), animate: Ze === !0 ? {
525
+ ] }) : null, e[53] = R, e[54] = ft, e[55] = A, e[56] = c.enabled, e[57] = m, e[58] = we) : we = e[58];
526
+ let je;
527
+ e[59] !== Ke || e[60] !== G || e[61] !== k || e[62] !== g || e[63] !== fe || e[64] !== l || e[65] !== bt || e[66] !== o || e[67] !== Z || e[68] !== xt || e[69] !== Ge || e[70] !== P || e[71] !== wt || e[72] !== ye || e[73] !== s || e[74] !== Oe || e[75] !== K || e[76] !== R || e[77] !== L || e[78] !== kt || e[79] !== $e || e[80] !== F || e[81] !== C || e[82] !== Le || e[83] !== f?.mapBorderColor || e[84] !== f?.mapBorderWidth || e[85] !== Te || e[86] !== jt || e[87] !== xe || e[88] !== O || e[89] !== n || e[90] !== _ || e[91] !== re || e[92] !== q || e[93] !== Mt || e[94] !== Ct || e[95] !== _e || e[96] !== N || e[97] !== Fe || e[98] !== Dt || e[99] !== ee || e[100] !== h || e[101] !== te || e[102] !== Ve || e[103] !== p || e[104] !== Ae || e[105] !== ne || e[106] !== T || e[107] !== c.dateFormat || e[108] !== c.enabled || e[109] !== U || e[110] !== m || e[111] !== u || e[112] !== vt || e[113] !== ve || e[114] !== z ? (je = /* @__PURE__ */ a.jsx(zo, { ref: St, children: ne && Ae && xe ? /* @__PURE__ */ a.jsx(Fo, { dotColor: wt, data: o.filter((d) => c.enabled ? `${d.date}` === ao(new Date(m[R]), c.dateFormat || "yyyy") : d), mapData: h ? xe : {
528
+ ...xe,
529
+ features: xe.features.filter(Ro)
530
+ }, overlayMapData: Mt, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Ge, width: ne, height: Ae, scale: ee, centerPoint: G, colors: l || (k === "categorical" ? Ce[T].sequentialColors[`neutralColorsx0${Ge.length}`] : Ce[T].sequentialColors[`neutralColorsx0${Ge.length + 1}`]), mapColorLegendTitle: C, radius: _e, categorical: k === "categorical", mapBorderWidth: F, mapNoDataColor: Le, mapBorderColor: $e, tooltip: U, onSeriesMouseOver: q, showLabels: Ve, isWorldMap: L, showColorScale: te, zoomScaleExtend: ve, zoomTranslateExtend: z, onSeriesMouseClick: re, highlightedDataPoints: Oe, resetSelectionOnDoubleClick: Fe, styles: p, classNames: g, zoomInteraction: vt, detailsOnClick: Z, mapProjection: Te || (L ? "naturalEarth" : "mercator"), animate: Ke === !0 ? {
534
531
  duration: 0.5,
535
532
  once: !0,
536
533
  amount: 0.5
537
- } : Ze || {
534
+ } : Ke || {
538
535
  duration: 0,
539
536
  once: !0,
540
537
  amount: 0
541
- }, dimmedOpacity: bt, customLayers: wt, maxRadiusValue: vt(O) ? Math.max(...t.map(Uo).filter(Go)) : O, collapseColorScaleByDefault: he, highlightedIds: kt, mapProperty: Ct, dotLegendTitle: ge, dotBorderColor: z, labelColor: Dt, projectionRotate: Nt, rewindCoordinatesInMapData: Mt, locale: St }) : /* @__PURE__ */ a.jsx("div", { style: {
542
- height: `${Math.max(n, s || (N ? n ? (u || ne) * N > n ? (u || ne) * N : n : (u || ne) * N : Te))}px`
543
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(mo, { "aria-label": "Loading graph" }) }) }), e[61] = Ze, e[62] = G, e[63] = k, e[64] = g, e[65] = he, e[66] = l, e[67] = wt, e[68] = t, e[69] = J, e[70] = bt, e[71] = Re, e[72] = z, e[73] = jt, e[74] = ge, e[75] = s, e[76] = Se, e[77] = kt, e[78] = R, e[79] = P, e[80] = Dt, e[81] = St, e[82] = Ve, e[83] = F, e[84] = C, e[85] = _e, e[86] = f?.mapBorderColor, e[87] = f?.mapBorderWidth, e[88] = Fe, e[89] = Ct, e[90] = ve, e[91] = O, e[92] = n, e[93] = ae, e[94] = q, e[95] = Et, e[96] = Nt, e[97] = Pe, e[98] = N, e[99] = $e, e[100] = Mt, e[101] = Q, e[102] = h, e[103] = ee, e[104] = We, e[105] = p, e[106] = Te, e[107] = ne, e[108] = T, e[109] = c.dateFormat, e[110] = c.enabled, e[111] = U, e[112] = m, e[113] = u, e[114] = xt, e[115] = ye, e[116] = W, e[117] = we) : we = e[117];
544
- let je;
545
- e[118] !== g?.footnote || e[119] !== g?.source || e[120] !== ie || e[121] !== v || e[122] !== p?.footnote || e[123] !== p?.source || e[124] !== u ? (je = v || ie ? /* @__PURE__ */ a.jsx(Po, { styles: {
538
+ }, dimmedOpacity: xt, customLayers: bt, maxRadiusValue: yt(O) ? Math.max(...o.map(Ao).filter(To)) : O, collapseColorScaleByDefault: fe, highlightedIds: K, mapProperty: jt, dotLegendTitle: ye, dotBorderColor: P, labelColor: kt, projectionRotate: Ct, rewindCoordinatesInMapData: Dt, numberDisplayOptions: _ }) : /* @__PURE__ */ a.jsx("div", { style: {
539
+ height: `${Math.max(n, s || (N ? n ? (u || ne) * N > n ? (u || ne) * N : n : (u || ne) * N : Ae))}px`
540
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(lo, { "aria-label": "Loading graph" }) }) }), e[59] = Ke, e[60] = G, e[61] = k, e[62] = g, e[63] = fe, e[64] = l, e[65] = bt, e[66] = o, e[67] = Z, e[68] = xt, e[69] = Ge, e[70] = P, e[71] = wt, e[72] = ye, e[73] = s, e[74] = Oe, e[75] = K, e[76] = R, e[77] = L, e[78] = kt, e[79] = $e, e[80] = F, e[81] = C, e[82] = Le, e[83] = f?.mapBorderColor, e[84] = f?.mapBorderWidth, e[85] = Te, e[86] = jt, e[87] = xe, e[88] = O, e[89] = n, e[90] = _, e[91] = re, e[92] = q, e[93] = Mt, e[94] = Ct, e[95] = _e, e[96] = N, e[97] = Fe, e[98] = Dt, e[99] = ee, e[100] = h, e[101] = te, e[102] = Ve, e[103] = p, e[104] = Ae, e[105] = ne, e[106] = T, e[107] = c.dateFormat, e[108] = c.enabled, e[109] = U, e[110] = m, e[111] = u, e[112] = vt, e[113] = ve, e[114] = z, e[115] = je) : je = e[115];
541
+ let ke;
542
+ e[116] !== g?.footnote || e[117] !== g?.source || e[118] !== ie || e[119] !== v || e[120] !== p?.footnote || e[121] !== p?.source || e[122] !== u ? (ke = v || ie ? /* @__PURE__ */ a.jsx(Bo, { styles: {
546
543
  footnote: p?.footnote,
547
544
  source: p?.source
548
545
  }, classNames: {
549
546
  footnote: g?.footnote,
550
547
  source: g?.source
551
- }, sources: v, footNote: ie, width: u }) : null, e[118] = g?.footnote, e[119] = g?.source, e[120] = ie, e[121] = v, e[122] = p?.footnote, e[123] = p?.source, e[124] = u, e[125] = je) : je = e[125];
552
- let yt;
553
- return e[126] !== Ie || e[127] !== Le || e[128] !== de || e[129] !== s || e[130] !== _ || e[131] !== n || e[132] !== De || e[133] !== N || e[134] !== Pt || e[135] !== _t || e[136] !== xe || e[137] !== be || e[138] !== we || e[139] !== je || e[140] !== T || e[141] !== u ? (yt = /* @__PURE__ */ a.jsxs(Wo, { className: Pt, style: _t, id: de, ref: $t, "aria-label": Ie, backgroundColor: Le, theme: T, language: _, minHeight: n, width: u, height: s, relativeHeight: N, padding: De, children: [
554
- xe,
548
+ }, sources: v, footNote: ie, width: u }) : null, e[116] = g?.footnote, e[117] = g?.source, e[118] = ie, e[119] = v, e[120] = p?.footnote, e[121] = p?.source, e[122] = u, e[123] = ke) : ke = e[123];
549
+ let gt;
550
+ return e[124] !== Ie || e[125] !== We || e[126] !== de || e[127] !== s || e[128] !== W || e[129] !== n || e[130] !== Ne || e[131] !== N || e[132] !== Bt || e[133] !== It || e[134] !== be || e[135] !== we || e[136] !== je || e[137] !== ke || e[138] !== T || e[139] !== u ? (gt = /* @__PURE__ */ a.jsxs(Po, { className: Bt, style: It, id: de, ref: Lt, "aria-label": Ie, backgroundColor: We, theme: T, language: W, minHeight: n, width: u, height: s, relativeHeight: N, padding: Ne, children: [
555
551
  be,
556
552
  we,
557
- je
558
- ] }), e[126] = Ie, e[127] = Le, e[128] = de, e[129] = s, e[130] = _, e[131] = n, e[132] = De, e[133] = N, e[134] = Pt, e[135] = _t, e[136] = xe, e[137] = be, e[138] = we, e[139] = je, e[140] = T, e[141] = u, e[142] = yt) : yt = e[142], yt;
553
+ je,
554
+ ke
555
+ ] }), e[124] = Ie, e[125] = We, e[126] = de, e[127] = s, e[128] = W, e[129] = n, e[130] = Ne, e[131] = N, e[132] = Bt, e[133] = It, e[134] = be, e[135] = we, e[136] = je, e[137] = ke, e[138] = T, e[139] = u, e[140] = gt) : gt = e[140], gt;
559
556
  }
560
- function Go(r) {
557
+ function To(r) {
561
558
  return r != null;
562
559
  }
563
- function Uo(r) {
560
+ function Ao(r) {
564
561
  return r.radius;
565
562
  }
566
- function qo(r) {
563
+ function Ro(r) {
567
564
  return r.properties?.NAME !== "Antarctica";
568
565
  }
569
- function Ho(r) {
566
+ function Go(r) {
570
567
  return r !== void 0;
571
568
  }
572
- function Xo(r) {
569
+ function Uo(r) {
573
570
  return r !== void 0;
574
571
  }
575
- function Yo(r) {
572
+ function qo(r) {
576
573
  return r.data;
577
574
  }
578
- function Jo(r) {
575
+ function Ho(r) {
579
576
  return r !== void 0;
580
577
  }
581
- function Ko(r) {
578
+ function Xo(r) {
582
579
  return r.data;
583
580
  }
584
- function Zo(r) {
581
+ function Yo(r) {
585
582
  return r.x;
586
583
  }
587
- function Qo(r, e) {
584
+ function Zo(r, e) {
588
585
  return r - e;
589
586
  }
590
- function ea(r) {
587
+ function Jo(r) {
591
588
  return r.date;
592
589
  }
593
590
  export {
594
- Ia as HybridMap
591
+ Sa as HybridMap
595
592
  };
596
593
  //# sourceMappingURL=HybridMap.js.map