@undp/data-viz 2.0.8 → 2.1.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 (215) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +1 -1
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1188 -1213
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +126 -131
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +404 -413
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +179 -184
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +268 -273
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.cjs +1 -1
  39. package/dist/DataCards.d.ts +2 -0
  40. package/dist/DataCards.js +2 -2
  41. package/dist/DataTable.d.ts +2 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  43. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  45. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  46. package/dist/DifferenceLineChart.cjs +1 -1
  47. package/dist/DifferenceLineChart.d.ts +2 -0
  48. package/dist/DifferenceLineChart.js +1 -1
  49. package/dist/DonutChart.cjs +1 -1
  50. package/dist/DonutChart.cjs.map +1 -1
  51. package/dist/DonutChart.d.ts +2 -0
  52. package/dist/DonutChart.js +185 -190
  53. package/dist/DonutChart.js.map +1 -1
  54. package/dist/DotDensityMap.cjs +1 -1
  55. package/dist/DotDensityMap.cjs.map +1 -1
  56. package/dist/DotDensityMap.d.ts +2 -0
  57. package/dist/DotDensityMap.js +198 -203
  58. package/dist/DotDensityMap.js.map +1 -1
  59. package/dist/DualAxisLineChart.cjs +1 -1
  60. package/dist/DualAxisLineChart.d.ts +2 -0
  61. package/dist/DualAxisLineChart.js +1 -1
  62. package/dist/DumbbellChart.cjs +1 -1
  63. package/dist/DumbbellChart.cjs.map +1 -1
  64. package/dist/DumbbellChart.d.ts +2 -0
  65. package/dist/DumbbellChart.js +364 -373
  66. package/dist/DumbbellChart.js.map +1 -1
  67. package/dist/GeoHubCompareMaps.d.ts +2 -0
  68. package/dist/GeoHubMap.d.ts +2 -0
  69. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  70. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  71. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  72. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-ebgfxefq.js} +3 -3
  73. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-ebgfxefq.js.map} +1 -1
  74. package/dist/GriddedGraphs.cjs +1 -1
  75. package/dist/GriddedGraphs.cjs.map +1 -1
  76. package/dist/GriddedGraphs.d.ts +3 -0
  77. package/dist/GriddedGraphs.js +158 -146
  78. package/dist/GriddedGraphs.js.map +1 -1
  79. package/dist/GriddedGraphsFromConfig.d.ts +3 -0
  80. package/dist/HeatMap.cjs +1 -1
  81. package/dist/HeatMap.cjs.map +1 -1
  82. package/dist/HeatMap.d.ts +2 -0
  83. package/dist/HeatMap.js +111 -116
  84. package/dist/HeatMap.js.map +1 -1
  85. package/dist/Histogram.cjs +1 -1
  86. package/dist/Histogram.d.ts +2 -0
  87. package/dist/Histogram.js +1 -1
  88. package/dist/HybridMap.cjs +1 -1
  89. package/dist/HybridMap.cjs.map +1 -1
  90. package/dist/HybridMap.d.ts +2 -0
  91. package/dist/HybridMap.js +202 -207
  92. package/dist/HybridMap.js.map +1 -1
  93. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  94. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  95. package/dist/LineChartWithConfidenceInterval.js +1 -1
  96. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  97. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  98. package/dist/MultiGraphDashboard.cjs +1 -1
  99. package/dist/MultiGraphDashboard.cjs.map +1 -1
  100. package/dist/MultiGraphDashboard.d.ts +3 -0
  101. package/dist/MultiGraphDashboard.js +90 -85
  102. package/dist/MultiGraphDashboard.js.map +1 -1
  103. package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  105. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  106. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  107. package/dist/MultiLineAltChart.cjs +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +1 -1
  110. package/dist/MultiLineChart.cjs +1 -1
  111. package/dist/MultiLineChart.d.ts +2 -0
  112. package/dist/MultiLineChart.js +1 -1
  113. package/dist/ParetoChart.cjs +1 -1
  114. package/dist/ParetoChart.cjs.map +1 -1
  115. package/dist/ParetoChart.d.ts +2 -0
  116. package/dist/ParetoChart.js +187 -192
  117. package/dist/ParetoChart.js.map +1 -1
  118. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.js +76 -72
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  123. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
  124. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  125. package/dist/RadarChart.cjs +1 -1
  126. package/dist/RadarChart.cjs.map +1 -1
  127. package/dist/RadarChart.d.ts +2 -0
  128. package/dist/RadarChart.js +158 -163
  129. package/dist/RadarChart.js.map +1 -1
  130. package/dist/SankeyChart.cjs +1 -1
  131. package/dist/SankeyChart.cjs.map +1 -1
  132. package/dist/SankeyChart.d.ts +2 -0
  133. package/dist/SankeyChart.js +172 -177
  134. package/dist/SankeyChart.js.map +1 -1
  135. package/dist/ScatterPlot.cjs +1 -1
  136. package/dist/ScatterPlot.cjs.map +1 -1
  137. package/dist/ScatterPlot.d.ts +2 -0
  138. package/dist/ScatterPlot.js +222 -227
  139. package/dist/ScatterPlot.js.map +1 -1
  140. package/dist/ScrollStory.d.ts +2 -0
  141. package/dist/SimpleLineChart.cjs +1 -1
  142. package/dist/SimpleLineChart.d.ts +2 -0
  143. package/dist/SimpleLineChart.js +1 -1
  144. package/dist/SingleGraphDashboard.cjs +1 -1
  145. package/dist/SingleGraphDashboard.cjs.map +1 -1
  146. package/dist/SingleGraphDashboard.d.ts +3 -0
  147. package/dist/SingleGraphDashboard.js +131 -128
  148. package/dist/SingleGraphDashboard.js.map +1 -1
  149. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
  150. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  152. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
  155. package/dist/SingleGraphDashboardThreeDGraphs.js +145 -141
  156. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  157. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
  158. package/dist/SlopeChart.cjs +1 -1
  159. package/dist/SlopeChart.cjs.map +1 -1
  160. package/dist/SlopeChart.d.ts +2 -0
  161. package/dist/SlopeChart.js +182 -187
  162. package/dist/SlopeChart.js.map +1 -1
  163. package/dist/SparkLine.cjs +1 -1
  164. package/dist/SparkLine.d.ts +2 -0
  165. package/dist/SparkLine.js +1 -1
  166. package/dist/StatCardFromData.d.ts +2 -0
  167. package/dist/StripChart.cjs +1 -1
  168. package/dist/StripChart.cjs.map +1 -1
  169. package/dist/StripChart.d.ts +2 -0
  170. package/dist/StripChart.js +249 -258
  171. package/dist/StripChart.js.map +1 -1
  172. package/dist/ThreeDGlobe.cjs +1 -1
  173. package/dist/ThreeDGlobe.cjs.map +1 -1
  174. package/dist/ThreeDGlobe.d.ts +2 -0
  175. package/dist/ThreeDGlobe.js +142 -147
  176. package/dist/ThreeDGlobe.js.map +1 -1
  177. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  178. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  179. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  181. package/dist/TreeMapGraph.cjs +1 -1
  182. package/dist/TreeMapGraph.cjs.map +1 -1
  183. package/dist/TreeMapGraph.d.ts +2 -0
  184. package/dist/TreeMapGraph.js +159 -164
  185. package/dist/TreeMapGraph.js.map +1 -1
  186. package/dist/Types.d.ts +3 -0
  187. package/dist/UnitChart.d.ts +2 -0
  188. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  189. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  190. package/dist/getUniqValue-DsqSii6M.js +11 -0
  191. package/dist/getUniqValue-DsqSii6M.js.map +1 -0
  192. package/dist/getUniqValue-NX8DgwND.cjs +2 -0
  193. package/dist/getUniqValue-NX8DgwND.cjs.map +1 -0
  194. package/dist/index-BBV4tAeA.js +330 -0
  195. package/dist/index-BBV4tAeA.js.map +1 -0
  196. package/dist/index-CF5hnGvG.cjs +2 -0
  197. package/dist/index-CF5hnGvG.cjs.map +1 -0
  198. package/dist/index.cjs +1 -1
  199. package/dist/index.d.ts +3 -0
  200. package/dist/index.js +2 -2
  201. package/dist/utils.cjs +1 -1
  202. package/dist/utils.js +1 -1
  203. package/package.json +1 -1
  204. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  205. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  206. package/dist/Tooltip-CwWUegPB.js +0 -43
  207. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  208. package/dist/getUniqValue-BKHCm3zE.js +0 -11
  209. package/dist/getUniqValue-BKHCm3zE.js.map +0 -1
  210. package/dist/getUniqValue-RViz8tTw.cjs +0 -2
  211. package/dist/getUniqValue-RViz8tTw.cjs.map +0 -1
  212. package/dist/index-B2LQV7Tk.js +0 -335
  213. package/dist/index-B2LQV7Tk.js.map +0 -1
  214. package/dist/index-xRHRLDIp.cjs +0 -2
  215. package/dist/index-xRHRLDIp.cjs.map +0 -1
@@ -6,62 +6,61 @@ import { p as be, f as ke } from "./parse-DlCRUFh_.js";
6
6
  import { i as we } from "./index-Bwrro8-q.js";
7
7
  import { z as je, t as Ce, g as $e, a as De, b as Ne, c as Se, d as Me } from "./zoom-C9MFjAaV.js";
8
8
  import { t as Ee } from "./index-GEsywGxz.js";
9
- import { l as Oe } from "./Modal-DGcuAHyK.js";
10
9
  import { j as ne } from "./Typography-PxtFcnJb.js";
11
10
  import { n as se } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { T as Le } from "./Tooltip-CwWUegPB.js";
13
- import { s as Pe } from "./string2HTML-DhG75NqA.js";
11
+ import { T as Oe } from "./Tooltip-Dj5eVppQ.js";
14
12
  import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
- import { X as Ie, P as ze, e as _e } from "./index-D491FEn1.js";
13
+ import { X as Le, P as Pe, e as Ie } from "./index-D491FEn1.js";
14
+ import { D as ze } from "./DetailsModal-0Ry5nXiC.js";
16
15
  import { s as re } from "./select-DKy99ogv.js";
17
16
  import { t as ce } from "./threshold-Bgr20hik.js";
18
17
  import { u as We } from "./use-in-view-Cxa7y1TH.js";
19
18
  import { m as Lt } from "./proxy-BxkFHwUw.js";
20
- import { A as Be } from "./index-BqfRwk1n.js";
21
- import { GraphHeader as Ae } from "./GraphHeader.js";
22
- import { GraphFooter as Te } from "./GraphFooter.js";
19
+ import { A as _e } from "./index-BqfRwk1n.js";
20
+ import { GraphHeader as Be } from "./GraphHeader.js";
21
+ import { GraphFooter as Ae } from "./GraphFooter.js";
23
22
  import { Colors as ae } from "./Colors.js";
24
- import { f as Fe } from "./fetchAndParseData-BpqkBPQL.js";
23
+ import { f as Te } from "./fetchAndParseData-BpqkBPQL.js";
25
24
  import { g as de } from "./getJenks-BbngDoBQ.js";
26
- import { u as Ve } from "./uniqBy-BHy4I8PK.js";
27
- import { a as He, G as Ge } from "./GraphContainer-CRqzdKu2.js";
28
- import { s as Re } from "./sort-BIvMlUH1.js";
29
- import { a as Ue } from "./init-BJFW6EwE.js";
30
- function Xe(d) {
25
+ import { u as Fe } from "./uniqBy-BHy4I8PK.js";
26
+ import { a as Ve, G as Ge } from "./GraphContainer-CRqzdKu2.js";
27
+ import { s as He } from "./sort-BIvMlUH1.js";
28
+ import { a as Re } from "./init-BJFW6EwE.js";
29
+ function Ue(d) {
31
30
  const {
32
31
  data: t,
33
32
  xDomain: b,
34
- mapData: C,
33
+ mapData: j,
35
34
  xColorLegendTitle: It,
36
- yDomain: tt,
37
- yColorLegendTitle: et,
35
+ yDomain: Q,
36
+ yColorLegendTitle: tt,
38
37
  width: k,
39
38
  height: y,
40
39
  colors: x,
41
40
  scale: zt,
42
41
  centerPoint: $,
43
42
  mapBorderWidth: S,
44
- mapNoDataColor: _,
43
+ mapNoDataColor: W,
45
44
  mapBorderColor: gt,
46
- tooltip: ot,
45
+ tooltip: et,
47
46
  onSeriesMouseOver: ft,
48
47
  zoomScaleExtend: yt,
49
48
  zoomTranslateExtend: xt,
50
- highlightedIds: H,
51
- onSeriesMouseClick: rt,
52
- mapProperty: G,
53
- resetSelectionOnDoubleClick: _t,
54
- detailsOnClick: w,
49
+ highlightedIds: G,
50
+ onSeriesMouseClick: ot,
51
+ mapProperty: H,
52
+ resetSelectionOnDoubleClick: Wt,
53
+ detailsOnClick: C,
55
54
  showColorScale: vt,
56
- styles: Wt,
57
- classNames: R,
58
- mapProjection: W,
55
+ styles: _t,
56
+ classNames: _,
57
+ mapProjection: B,
59
58
  zoomInteraction: O,
60
59
  animate: D,
61
60
  dimmedOpacity: L,
62
- customLayers: at,
61
+ customLayers: rt,
63
62
  collapseColorScaleByDefault: bt
64
- } = d, [Bt, kt] = N(bt === void 0 ? !(k < 680) : !bt), [U, wt] = N(void 0), [B, it] = N(void 0), [A, nt] = N(void 0), [st, m] = N(void 0), [p, X] = N(void 0), T = Pt(null), lt = We(T, {
63
+ } = d, [Bt, kt] = N(bt === void 0 ? !(k < 680) : !bt), [R, wt] = N(void 0), [at, it] = N(void 0), [A, nt] = N(void 0), [st, m] = N(void 0), [p, U] = N(void 0), T = Pt(null), lt = We(T, {
65
64
  once: D.once,
66
65
  amount: D.amount
67
66
  }), jt = Pt(null), F = Pt(null);
@@ -78,20 +77,20 @@ function Xe(d) {
78
77
  });
79
78
  n.call(s), F.current = s;
80
79
  }, [y, k, O]);
81
- const Y = Ce(C), P = Ee(C), M = Y[2] - Y[0], I = Y[3] - Y[1], ct = k * 190 / 960 * 360 / M, Ct = y * 190 / 678 * 180 / I, z = zt * Math.min(ct, Ct), E = W === "mercator" ? $e().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : W === "equalEarth" ? De().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : W === "naturalEarth" ? Ne().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : W === "orthographic" ? Se().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : Me().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z), $t = Array.from({
80
+ const X = Ce(j), P = Ee(j), M = X[2] - X[0], I = X[3] - X[1], ct = k * 190 / 960 * 360 / M, Ct = y * 190 / 678 * 180 / I, z = zt * Math.min(ct, Ct), E = B === "mercator" ? $e().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : B === "equalEarth" ? De().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : B === "naturalEarth" ? Ne().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : B === "orthographic" ? Se().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : Me().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z), $t = Array.from({
82
81
  length: b.length
83
82
  }, (e, n) => n), Dt = Array.from({
84
- length: tt.length
85
- }, (e, n) => n), Nt = ce().domain(b).range($t), St = ce().domain(tt).range(Dt), q = (e) => {
83
+ length: Q.length
84
+ }, (e, n) => n), Nt = ce().domain(b).range($t), St = ce().domain(Q).range(Dt), Y = (e) => {
86
85
  if (!T.current || !F.current) return;
87
86
  re(T.current).call(F.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
88
87
  };
89
88
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
90
89
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
91
90
  /* @__PURE__ */ o.jsx(Lt.svg, { viewBox: `0 0 ${k} ${y}`, width: `${k}px`, height: `${y}px`, ref: T, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: jt, children: [
92
- at.filter((e) => e.position === "before").map((e) => e.layer),
91
+ rt.filter((e) => e.position === "before").map((e) => e.layer),
93
92
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
94
- C.features.map((e, n) => t.findIndex((s) => s.id === e.properties[G]) !== -1 ? null : /* @__PURE__ */ o.jsx(Lt.g, { opacity: U ? L : H.length !== 0 ? H.indexOf(e.properties[G]) !== -1 ? 1 : L : 1, children: e.geometry.type === "MultiPolygon" ? (
93
+ j.features.map((e, n) => t.findIndex((s) => s.id === e.properties[H]) !== -1 ? null : /* @__PURE__ */ o.jsx(Lt.g, { opacity: R ? L : G.length !== 0 ? G.indexOf(e.properties[H]) !== -1 ? 1 : L : 1, children: e.geometry.type === "MultiPolygon" ? (
95
94
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
95
  e.geometry.coordinates.map((s, r) => {
97
96
  let a = "";
@@ -104,7 +103,7 @@ function Xe(d) {
104
103
  }), /* @__PURE__ */ o.jsx("path", { d: a, style: {
105
104
  stroke: gt,
106
105
  strokeWidth: S,
107
- fill: _
106
+ fill: W
108
107
  } }, r);
109
108
  })
110
109
  ) : (
@@ -117,21 +116,21 @@ function Xe(d) {
117
116
  }), /* @__PURE__ */ o.jsx("path", { d: a, style: {
118
117
  stroke: gt,
119
118
  strokeWidth: S,
120
- fill: _
119
+ fill: W
121
120
  } }, r);
122
121
  })
123
122
  ) }, n)),
124
- /* @__PURE__ */ o.jsx(Be, { children: t.map((e) => {
125
- const n = C.features.findIndex(
123
+ /* @__PURE__ */ o.jsx(_e, { children: t.map((e) => {
124
+ const n = j.features.findIndex(
126
125
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
- (a) => e.id === a.properties[G]
128
- ), u = le(e.x) ? void 0 : Nt(e.x), s = le(e.y) ? void 0 : St(e.y), r = u !== void 0 && s !== void 0 ? x[s][u] : _;
126
+ (a) => e.id === a.properties[H]
127
+ ), u = le(e.x) ? void 0 : Nt(e.x), s = le(e.y) ? void 0 : St(e.y), r = u !== void 0 && s !== void 0 ? x[s][u] : W;
129
128
  return /* @__PURE__ */ o.jsx(Lt.g, { variants: {
130
129
  initial: {
131
130
  opacity: 0
132
131
  },
133
132
  whileInView: {
134
- opacity: U ? U === r ? 1 : L : H.length !== 0 ? H.indexOf(e.id) !== -1 ? 1 : L : 1,
133
+ opacity: R ? R === r ? 1 : L : G.length !== 0 ? G.indexOf(e.id) !== -1 ? 1 : L : 1,
135
134
  transition: {
136
135
  duration: D.duration
137
136
  }
@@ -142,14 +141,14 @@ function Xe(d) {
142
141
  duration: D.duration
143
142
  }
144
143
  }, onMouseEnter: (a) => {
145
- nt(e), X(a.clientY), m(a.clientX), ft?.(e);
144
+ nt(e), U(a.clientY), m(a.clientX), ft?.(e);
146
145
  }, onClick: () => {
147
- (rt || w) && (we(B, e) && _t ? (it(void 0), rt?.(void 0)) : (it(e), rt?.(e)));
146
+ (ot || C) && (we(at, e) && Wt ? (it(void 0), ot?.(void 0)) : (it(e), ot?.(e)));
148
147
  }, onMouseMove: (a) => {
149
- nt(e), X(a.clientY), m(a.clientX);
148
+ nt(e), U(a.clientY), m(a.clientX);
150
149
  }, onMouseLeave: () => {
151
- nt(void 0), m(void 0), X(void 0), ft?.(void 0);
152
- }, children: n === -1 ? null : C.features[n].geometry.type === "MultiPolygon" ? C.features[n].geometry.coordinates.map(
150
+ nt(void 0), m(void 0), U(void 0), ft?.(void 0);
151
+ }, children: n === -1 ? null : j.features[n].geometry.type === "MultiPolygon" ? j.features[n].geometry.coordinates.map(
153
152
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
153
  (a, l) => {
155
154
  let i = "";
@@ -176,11 +175,11 @@ function Xe(d) {
176
175
  transition: {
177
176
  duration: D.duration
178
177
  }
179
- }, d: i, className: `${r === _ ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
178
+ }, d: i, className: `${r === W ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
180
179
  strokeWidth: S
181
180
  } }, `${e.id}-${l}`);
182
181
  }
183
- ) : C.features[n].geometry.coordinates.map(
182
+ ) : j.features[n].geometry.coordinates.map(
184
183
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
185
184
  (a, l) => {
186
185
  let i = "M";
@@ -204,15 +203,15 @@ function Xe(d) {
204
203
  transition: {
205
204
  duration: D.duration
206
205
  }
207
- }, className: `${r === _ ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
206
+ }, className: `${r === W ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
208
207
  strokeWidth: S
209
208
  } }, `${e.id}-${l}`);
210
209
  }
211
210
  ) }, e.id);
212
211
  }) }),
213
- A ? C.features.filter(
212
+ A ? j.features.filter(
214
213
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
215
- (e) => e.properties[G] === A.id
214
+ (e) => e.properties[H] === A.id
216
215
  ).map((e, n) => /* @__PURE__ */ o.jsx("g", { children: e.geometry.type === "MultiPolygon" ? (
217
216
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
218
217
  e.geometry.coordinates.map((u, s) => {
@@ -243,18 +242,18 @@ function Xe(d) {
243
242
  } }, s);
244
243
  })
245
244
  ) }, n)) : null,
246
- at.filter((e) => e.position === "after").map((e) => e.layer)
245
+ rt.filter((e) => e.position === "after").map((e) => e.layer)
247
246
  ] }) }),
248
- vt === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: ue("absolute left-4 bottom-4 map-color-legend", R?.colorLegend), children: Bt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
247
+ vt === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: ue("absolute left-4 bottom-4 map-color-legend", _?.colorLegend), children: Bt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
249
248
  /* @__PURE__ */ o.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: () => {
250
249
  kt(!1);
251
- }, children: /* @__PURE__ */ o.jsx(Ie, {}) }),
250
+ }, children: /* @__PURE__ */ o.jsx(Le, {}) }),
252
251
  /* @__PURE__ */ o.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
253
252
  width: "175px"
254
253
  }, children: [
255
254
  /* @__PURE__ */ o.jsxs("div", { className: "flex gap-1 items-center", children: [
256
255
  /* @__PURE__ */ o.jsx("svg", { width: "136px", viewBox: "0 0 136 136", className: "shrink-0", children: /* @__PURE__ */ o.jsxs("g", { children: [
257
- x.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - n * 25})`, children: e.map((u, s) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: s * 25 + 1, fill: u, width: 23, height: 23, strokeWidth: U === u ? 2 : 0.25, style: {
256
+ x.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - n * 25})`, children: e.map((u, s) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: s * 25 + 1, fill: u, width: 23, height: 23, strokeWidth: R === u ? 2 : 0.25, style: {
258
257
  cursor: "pointer"
259
258
  }, onMouseOver: () => {
260
259
  wt(u);
@@ -262,7 +261,7 @@ function Xe(d) {
262
261
  wt(void 0);
263
262
  } }, s)) }, n)),
264
263
  /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: b.map((e, n) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (n + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }, n)) }),
265
- tt.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(b.length + 1, 5), 4) * 25 + 10},${100 - n * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }) }, n))
264
+ Q.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(b.length + 1, 5), 4) * 25 + 10},${100 - n * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }) }, n))
266
265
  ] }) }),
267
266
  /* @__PURE__ */ o.jsx(ne, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
268
267
  display: "-webkit-box",
@@ -272,7 +271,7 @@ function Xe(d) {
272
271
  writingMode: "vertical-rl",
273
272
  height: "8.5rem",
274
273
  transform: "rotate(180deg)"
275
- }, children: et })
274
+ }, children: tt })
276
275
  ] }),
277
276
  /* @__PURE__ */ o.jsx(ne, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
278
277
  display: "-webkit-box",
@@ -286,136 +285,132 @@ function Xe(d) {
286
285
  kt(!0);
287
286
  }, children: /* @__PURE__ */ o.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
288
287
  O === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
289
- /* @__PURE__ */ o.jsx("button", { onClick: () => q("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
290
- /* @__PURE__ */ o.jsx("button", { onClick: () => q("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 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: "–" })
288
+ /* @__PURE__ */ o.jsx("button", { onClick: () => Y("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
289
+ /* @__PURE__ */ o.jsx("button", { onClick: () => Y("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 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: "–" })
291
290
  ] })
292
291
  ] }),
293
- A && ot && st && p ? /* @__PURE__ */ o.jsx(Le, { data: A, body: ot, xPos: st, yPos: p, backgroundStyle: Wt?.tooltip, className: R?.tooltip }) : null,
294
- w && B !== void 0 ? /* @__PURE__ */ o.jsx(Oe, { open: B !== void 0, onClose: () => {
295
- it(void 0);
296
- }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof w == "string" ? {
297
- __html: Pe(w, B)
298
- } : void 0, children: typeof w == "function" ? w(B) : null }) }) : null
292
+ A && et && st && p ? /* @__PURE__ */ o.jsx(Oe, { data: A, body: et, xPos: st, yPos: p, backgroundStyle: _t?.tooltip, className: _?.tooltip }) : null,
293
+ C && at !== void 0 ? /* @__PURE__ */ o.jsx(ze, { body: C, data: at, setData: it, className: _?.modal }) : null
299
294
  ] });
300
295
  }
301
- function Po(d) {
296
+ function Oo(d) {
302
297
  const t = ge.c(101), {
303
298
  data: b,
304
- graphTitle: C,
299
+ graphTitle: j,
305
300
  mapData: It,
306
- colors: tt,
307
- sources: et,
301
+ colors: Q,
302
+ sources: tt,
308
303
  graphDescription: k,
309
304
  height: y,
310
305
  width: x,
311
306
  footNote: zt,
312
307
  xDomain: $,
313
308
  yDomain: S,
314
- xColorLegendTitle: _,
309
+ xColorLegendTitle: W,
315
310
  yColorLegendTitle: gt,
316
- tooltip: ot,
311
+ tooltip: et,
317
312
  scale: ft,
318
313
  centerPoint: yt,
319
314
  padding: xt,
320
- mapBorderWidth: H,
321
- mapNoDataColor: rt,
322
- backgroundColor: G,
323
- mapBorderColor: _t,
324
- relativeHeight: w,
315
+ mapBorderWidth: G,
316
+ mapNoDataColor: ot,
317
+ backgroundColor: H,
318
+ mapBorderColor: Wt,
319
+ relativeHeight: C,
325
320
  onSeriesMouseOver: vt,
326
- isWorldMap: Wt,
327
- zoomScaleExtend: R,
328
- zoomTranslateExtend: W,
321
+ isWorldMap: _t,
322
+ zoomScaleExtend: _,
323
+ zoomTranslateExtend: B,
329
324
  graphID: O,
330
325
  showColorScale: D,
331
326
  highlightedIds: L,
332
- onSeriesMouseClick: at,
327
+ onSeriesMouseClick: rt,
333
328
  mapProperty: bt,
334
329
  graphDownload: Bt,
335
330
  dataDownload: kt,
336
- showAntarctica: U,
331
+ showAntarctica: R,
337
332
  language: wt,
338
- minHeight: B,
333
+ minHeight: at,
339
334
  theme: it,
340
335
  ariaLabel: A,
341
336
  resetSelectionOnDoubleClick: nt,
342
337
  detailsOnClick: st,
343
338
  styles: m,
344
339
  classNames: p,
345
- mapProjection: X,
340
+ mapProjection: U,
346
341
  zoomInteraction: T,
347
342
  animate: lt,
348
343
  dimmedOpacity: jt,
349
344
  customLayers: F,
350
- timeline: Y,
345
+ timeline: X,
351
346
  collapseColorScaleByDefault: P
352
- } = d, M = It === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : It, I = tt === void 0 ? ae.light.bivariateColors.colors05x05 : tt, ct = zt === 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." : zt, Ct = _ === void 0 ? "X Color key" : _, z = gt === void 0 ? "Y Color key" : gt, E = ft === void 0 ? 0.95 : ft, $t = H === void 0 ? 0.5 : H, Dt = rt === void 0 ? ae.light.graphNoData : rt, Nt = G === void 0 ? !1 : G, St = _t === void 0 ? ae.light.grays["gray-500"] : _t, q = Wt === void 0 ? !0 : Wt;
347
+ } = d, M = It === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : It, I = Q === void 0 ? ae.light.bivariateColors.colors05x05 : Q, ct = zt === 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." : zt, Ct = W === void 0 ? "X Color key" : W, z = gt === void 0 ? "Y Color key" : gt, E = ft === void 0 ? 0.95 : ft, $t = G === void 0 ? 0.5 : G, Dt = ot === void 0 ? ae.light.graphNoData : ot, Nt = H === void 0 ? !1 : H, St = Wt === void 0 ? ae.light.grays["gray-500"] : Wt, Y = _t === void 0 ? !0 : _t;
353
348
  let e;
354
- t[0] !== R ? (e = R === void 0 ? [0.8, 6] : R, t[0] = R, t[1] = e) : e = t[1];
349
+ t[0] !== _ ? (e = _ === void 0 ? [0.8, 6] : _, t[0] = _, t[1] = e) : e = t[1];
355
350
  const n = e, u = D === void 0 ? !0 : D;
356
351
  let s;
357
352
  t[2] !== L ? (s = L === void 0 ? [] : L, t[2] = L, t[3] = s) : s = t[3];
358
- const r = s, a = bt === void 0 ? "ISO3" : bt, l = Bt === void 0 ? !1 : Bt, i = kt === void 0 ? !1 : kt, h = U === void 0 ? !1 : U, g = wt === void 0 ? "en" : wt, c = B === void 0 ? 0 : B, Mt = it === void 0 ? "light" : it, V = nt === void 0 ? !0 : nt, Jt = T === void 0 ? "button" : T, At = lt === void 0 ? !1 : lt, Kt = jt === void 0 ? 0.3 : jt;
353
+ const r = s, a = bt === void 0 ? "ISO3" : bt, l = Bt === void 0 ? !1 : Bt, i = kt === void 0 ? !1 : kt, h = R === void 0 ? !1 : R, g = wt === void 0 ? "en" : wt, c = at === void 0 ? 0 : at, Mt = it === void 0 ? "light" : it, V = nt === void 0 ? !0 : nt, Jt = T === void 0 ? "button" : T, At = lt === void 0 ? !1 : lt, Kt = jt === void 0 ? 0.3 : jt;
359
354
  let Tt;
360
355
  t[4] !== F ? (Tt = F === void 0 ? [] : F, t[4] = F, t[5] = Tt) : Tt = t[5];
361
- const Zt = Tt, j = Y === void 0 ? {
356
+ const Zt = Tt, w = X === void 0 ? {
362
357
  enabled: !1,
363
358
  autoplay: !1,
364
359
  showOnlyActiveDate: !0
365
- } : Y, [J, me] = N(0), [Et, pe] = N(0), [K, Qt] = N(j.autoplay), f = Re(Ve(b, "date", !0).map((v) => be(`${v}`, j.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [Z, Ot] = N(j.autoplay ? 0 : f.length - 1), [dt, he] = N(void 0), te = Pt(null), ie = Pt(null);
360
+ } : X, [q, me] = N(0), [Et, pe] = N(0), [J, Qt] = N(w.autoplay), f = He(Fe(b, "date", !0).map((v) => be(`${v}`, w.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), eo), [K, Ot] = N(w.autoplay ? 0 : f.length - 1), [dt, he] = N(void 0), te = Pt(null), ie = Pt(null);
366
361
  let Ft, Vt;
367
362
  t[6] === Symbol.for("react.memo_cache_sentinel") ? (Ft = () => {
368
- const v = new ResizeObserver((Q) => {
369
- me(Q[0].target.clientWidth || 620), pe(Q[0].target.clientHeight || 480);
363
+ const v = new ResizeObserver((Z) => {
364
+ me(Z[0].target.clientWidth || 620), pe(Z[0].target.clientHeight || 480);
370
365
  });
371
366
  return te.current && v.observe(te.current), () => v.disconnect();
372
367
  }, Vt = [], t[6] = Ft, t[7] = Vt) : (Ft = t[6], Vt = t[7]), qt(Ft, Vt);
373
- let Ht;
374
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (Ht = (v) => {
368
+ let Gt;
369
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (Gt = (v) => {
375
370
  he(v);
376
- }, t[8] = Ht) : Ht = t[8];
377
- const Gt = fe(Ht);
371
+ }, t[8] = Gt) : Gt = t[8];
372
+ const Ht = fe(Gt);
378
373
  let Rt;
379
- t[9] !== M || t[10] !== Gt ? (Rt = () => {
380
- typeof M == "string" ? Fe(M).then((Q) => {
381
- Gt(Q);
382
- }) : Gt(M);
383
- }, t[9] = M, t[10] = Gt, t[11] = Rt) : Rt = t[11];
374
+ t[9] !== M || t[10] !== Ht ? (Rt = () => {
375
+ typeof M == "string" ? Te(M).then((Z) => {
376
+ Ht(Z);
377
+ }) : Ht(M);
378
+ }, t[9] = M, t[10] = Ht, t[11] = Rt) : Rt = t[11];
384
379
  let Ut;
385
380
  t[12] !== M ? (Ut = [M], t[12] = M, t[13] = Ut) : Ut = t[13], qt(Rt, Ut), qt(() => {
386
381
  const v = setInterval(() => {
387
- Ot((Q) => Q < f.length - 1 ? Q + 1 : 0);
388
- }, (j.speed || 2) * 1e3);
389
- return K || clearInterval(v), () => clearInterval(v);
390
- }, [f, K, j.speed]);
391
- const Xt = ye(f, Z, j.showOnlyActiveDate, j.dateFormat || "yyyy");
382
+ Ot((Z) => Z < f.length - 1 ? Z + 1 : 0);
383
+ }, (w.speed || 2) * 1e3);
384
+ return J || clearInterval(v), () => clearInterval(v);
385
+ }, [f, J, w.speed]);
386
+ const Xt = ye(f, K, w.showOnlyActiveDate, w.dateFormat || "yyyy");
392
387
  if ($ && S && ($.length !== I[0].length - 1 || S.length !== I.length - 1))
393
388
  return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
394
389
  const ee = p?.graphContainer, oe = m?.graphContainer;
395
390
  let mt;
396
- t[14] !== p?.description || t[15] !== p?.title || t[16] !== b || t[17] !== i || t[18] !== k || t[19] !== l || t[20] !== C || t[21] !== m?.description || t[22] !== m?.title || t[23] !== x ? (mt = C || k || l || i ? /* @__PURE__ */ o.jsx(Ae, { styles: {
391
+ t[14] !== p?.description || t[15] !== p?.title || t[16] !== b || t[17] !== i || t[18] !== k || t[19] !== l || t[20] !== j || t[21] !== m?.description || t[22] !== m?.title || t[23] !== x ? (mt = j || k || l || i ? /* @__PURE__ */ o.jsx(Be, { styles: {
397
392
  title: m?.title,
398
393
  description: m?.description
399
394
  }, classNames: {
400
395
  title: p?.title,
401
396
  description: p?.description
402
- }, graphTitle: C, graphDescription: k, width: x, graphDownload: l ? ie : void 0, dataDownload: i ? b.map(eo).filter(to).length > 0 ? b.map(Qe).filter(Ze) : b.filter(Ke) : null }) : null, t[14] = p?.description, t[15] = p?.title, t[16] = b, t[17] = i, t[18] = k, t[19] = l, t[20] = C, t[21] = m?.description, t[22] = m?.title, t[23] = x, t[24] = mt) : mt = t[24];
397
+ }, graphTitle: j, graphDescription: k, width: x, graphDownload: l ? ie : void 0, dataDownload: i ? b.map(to).filter(Qe).length > 0 ? b.map(Ze).filter(Ke) : b.filter(Je) : null }) : null, t[14] = p?.description, t[15] = p?.title, t[16] = b, t[17] = i, t[18] = k, t[19] = l, t[20] = j, t[21] = m?.description, t[22] = m?.title, t[23] = x, t[24] = mt) : mt = t[24];
403
398
  let pt;
404
- t[25] !== Z || t[26] !== Xt || t[27] !== K || t[28] !== Ot || t[29] !== Qt || t[30] !== j.enabled || t[31] !== f ? (pt = j.enabled && f.length > 0 && Xt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
399
+ t[25] !== K || t[26] !== Xt || t[27] !== J || t[28] !== Ot || t[29] !== Qt || t[30] !== w.enabled || t[31] !== f ? (pt = w.enabled && f.length > 0 && Xt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
405
400
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
406
- Qt(!K);
407
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": K ? "Click to pause animation" : "Click to play animation", children: K ? /* @__PURE__ */ o.jsx(ze, {}) : /* @__PURE__ */ o.jsx(_e, {}) }),
408
- /* @__PURE__ */ o.jsx(xe, { min: f[0], max: f[f.length - 1], marks: Xt, step: null, defaultValue: f[f.length - 1], value: f[Z], onChangeComplete: (v) => {
401
+ Qt(!J);
402
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": J ? "Click to pause animation" : "Click to play animation", children: J ? /* @__PURE__ */ o.jsx(Pe, {}) : /* @__PURE__ */ o.jsx(Ie, {}) }),
403
+ /* @__PURE__ */ o.jsx(xe, { min: f[0], max: f[f.length - 1], marks: Xt, step: null, defaultValue: f[f.length - 1], value: f[K], onChangeComplete: (v) => {
409
404
  Ot(f.indexOf(v));
410
405
  }, onChange: (v) => {
411
406
  Ot(f.indexOf(v));
412
407
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
413
- ] }) : null, t[25] = Z, t[26] = Xt, t[27] = K, t[28] = Ot, t[29] = Qt, t[30] = j.enabled, t[31] = f, t[32] = pt) : pt = t[32];
408
+ ] }) : null, t[25] = K, t[26] = Xt, t[27] = J, t[28] = Ot, t[29] = Qt, t[30] = w.enabled, t[31] = f, t[32] = pt) : pt = t[32];
414
409
  let ht;
415
- t[33] !== At || t[34] !== yt || t[35] !== p || t[36] !== P || t[37] !== I || t[38] !== Zt || t[39] !== b || t[40] !== st || t[41] !== Kt || t[42] !== y || t[43] !== r || t[44] !== Z || t[45] !== q || t[46] !== St || t[47] !== $t || t[48] !== Dt || t[49] !== X || t[50] !== a || t[51] !== dt || t[52] !== c || t[53] !== at || t[54] !== vt || t[55] !== w || t[56] !== V || t[57] !== E || t[58] !== h || t[59] !== u || t[60] !== m || t[61] !== Et || t[62] !== J || t[63] !== j.dateFormat || t[64] !== j.enabled || t[65] !== ot || t[66] !== f || t[67] !== x || t[68] !== Ct || t[69] !== $ || t[70] !== z || t[71] !== S || t[72] !== Jt || t[73] !== n || t[74] !== W ? (ht = /* @__PURE__ */ o.jsx(He, { ref: te, children: J && Et && dt ? /* @__PURE__ */ o.jsx(Xe, { data: b.filter((v) => j.enabled ? v.date === ke(new Date(f[Z]), j.dateFormat || "yyyy") : v), mapData: h ? dt : {
410
+ t[33] !== At || t[34] !== yt || t[35] !== p || t[36] !== P || t[37] !== I || t[38] !== Zt || t[39] !== b || t[40] !== st || t[41] !== Kt || t[42] !== y || t[43] !== r || t[44] !== K || t[45] !== Y || t[46] !== St || t[47] !== $t || t[48] !== Dt || t[49] !== U || t[50] !== a || t[51] !== dt || t[52] !== c || t[53] !== rt || t[54] !== vt || t[55] !== C || t[56] !== V || t[57] !== E || t[58] !== h || t[59] !== u || t[60] !== m || t[61] !== Et || t[62] !== q || t[63] !== w.dateFormat || t[64] !== w.enabled || t[65] !== et || t[66] !== f || t[67] !== x || t[68] !== Ct || t[69] !== $ || t[70] !== z || t[71] !== S || t[72] !== Jt || t[73] !== n || t[74] !== B ? (ht = /* @__PURE__ */ o.jsx(Ve, { ref: te, children: q && Et && dt ? /* @__PURE__ */ o.jsx(Ue, { data: b.filter((v) => w.enabled ? v.date === ke(new Date(f[K]), w.dateFormat || "yyyy") : v), mapData: h ? dt : {
416
411
  ...dt,
417
- features: dt.features.filter(Je)
418
- }, xDomain: $ || de(b.map(qe), I[0].length), yDomain: S || de(b.map(Ye), I.length), width: J, height: Et, scale: E, centerPoint: yt, colors: I, xColorLegendTitle: Ct, yColorLegendTitle: z, mapBorderWidth: $t, mapNoDataColor: Dt, mapBorderColor: St, tooltip: ot, onSeriesMouseOver: vt, isWorldMap: q, zoomScaleExtend: n, zoomTranslateExtend: W, onSeriesMouseClick: at, mapProperty: a, highlightedIds: r, resetSelectionOnDoubleClick: V, styles: m, showColorScale: u, classNames: p, mapProjection: X || (q ? "naturalEarth" : "mercator"), detailsOnClick: st, zoomInteraction: Jt, animate: At === !0 ? {
412
+ features: dt.features.filter(qe)
413
+ }, xDomain: $ || de(b.map(Ye), I[0].length), yDomain: S || de(b.map(Xe), I.length), width: q, height: Et, scale: E, centerPoint: yt, colors: I, xColorLegendTitle: Ct, yColorLegendTitle: z, mapBorderWidth: $t, mapNoDataColor: Dt, mapBorderColor: St, tooltip: et, onSeriesMouseOver: vt, isWorldMap: Y, zoomScaleExtend: n, zoomTranslateExtend: B, onSeriesMouseClick: rt, mapProperty: a, highlightedIds: r, resetSelectionOnDoubleClick: V, styles: m, showColorScale: u, classNames: p, mapProjection: U || (Y ? "naturalEarth" : "mercator"), detailsOnClick: st, zoomInteraction: Jt, animate: At === !0 ? {
419
414
  duration: 0.5,
420
415
  once: !0,
421
416
  amount: 0.5
@@ -424,52 +419,52 @@ function Po(d) {
424
419
  once: !0,
425
420
  amount: 0
426
421
  }, dimmedOpacity: Kt, customLayers: Zt, collapseColorScaleByDefault: P }) : /* @__PURE__ */ o.jsx("div", { style: {
427
- height: `${Math.max(c, y || (w ? c ? (x || J) * w > c ? (x || J) * w : c : (x || J) * w : Et))}px`
428
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" }) }) }), t[33] = At, t[34] = yt, t[35] = p, t[36] = P, t[37] = I, t[38] = Zt, t[39] = b, t[40] = st, t[41] = Kt, t[42] = y, t[43] = r, t[44] = Z, t[45] = q, t[46] = St, t[47] = $t, t[48] = Dt, t[49] = X, t[50] = a, t[51] = dt, t[52] = c, t[53] = at, t[54] = vt, t[55] = w, t[56] = V, t[57] = E, t[58] = h, t[59] = u, t[60] = m, t[61] = Et, t[62] = J, t[63] = j.dateFormat, t[64] = j.enabled, t[65] = ot, t[66] = f, t[67] = x, t[68] = Ct, t[69] = $, t[70] = z, t[71] = S, t[72] = Jt, t[73] = n, t[74] = W, t[75] = ht) : ht = t[75];
422
+ height: `${Math.max(c, y || (C ? c ? (x || q) * C > c ? (x || q) * C : c : (x || q) * C : Et))}px`
423
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" }) }) }), t[33] = At, t[34] = yt, t[35] = p, t[36] = P, t[37] = I, t[38] = Zt, t[39] = b, t[40] = st, t[41] = Kt, t[42] = y, t[43] = r, t[44] = K, t[45] = Y, t[46] = St, t[47] = $t, t[48] = Dt, t[49] = U, t[50] = a, t[51] = dt, t[52] = c, t[53] = rt, t[54] = vt, t[55] = C, t[56] = V, t[57] = E, t[58] = h, t[59] = u, t[60] = m, t[61] = Et, t[62] = q, t[63] = w.dateFormat, t[64] = w.enabled, t[65] = et, t[66] = f, t[67] = x, t[68] = Ct, t[69] = $, t[70] = z, t[71] = S, t[72] = Jt, t[73] = n, t[74] = B, t[75] = ht) : ht = t[75];
429
424
  let ut;
430
- t[76] !== p?.footnote || t[77] !== p?.source || t[78] !== ct || t[79] !== et || t[80] !== m?.footnote || t[81] !== m?.source || t[82] !== x ? (ut = et || ct ? /* @__PURE__ */ o.jsx(Te, { styles: {
425
+ t[76] !== p?.footnote || t[77] !== p?.source || t[78] !== ct || t[79] !== tt || t[80] !== m?.footnote || t[81] !== m?.source || t[82] !== x ? (ut = tt || ct ? /* @__PURE__ */ o.jsx(Ae, { styles: {
431
426
  footnote: m?.footnote,
432
427
  source: m?.source
433
428
  }, classNames: {
434
429
  footnote: p?.footnote,
435
430
  source: p?.source
436
- }, sources: et, footNote: ct, width: x }) : null, t[76] = p?.footnote, t[77] = p?.source, t[78] = ct, t[79] = et, t[80] = m?.footnote, t[81] = m?.source, t[82] = x, t[83] = ut) : ut = t[83];
431
+ }, sources: tt, footNote: ct, width: x }) : null, t[76] = p?.footnote, t[77] = p?.source, t[78] = ct, t[79] = tt, t[80] = m?.footnote, t[81] = m?.source, t[82] = x, t[83] = ut) : ut = t[83];
437
432
  let Yt;
438
- return t[84] !== A || t[85] !== Nt || t[86] !== O || t[87] !== y || t[88] !== g || t[89] !== c || t[90] !== xt || t[91] !== w || t[92] !== ee || t[93] !== oe || t[94] !== mt || t[95] !== pt || t[96] !== ht || t[97] !== ut || t[98] !== Mt || t[99] !== x ? (Yt = /* @__PURE__ */ o.jsxs(Ge, { className: ee, style: oe, id: O, ref: ie, "aria-label": A, backgroundColor: Nt, theme: Mt, language: g, minHeight: c, width: x, height: y, relativeHeight: w, padding: xt, children: [
433
+ return t[84] !== A || t[85] !== Nt || t[86] !== O || t[87] !== y || t[88] !== g || t[89] !== c || t[90] !== xt || t[91] !== C || t[92] !== ee || t[93] !== oe || t[94] !== mt || t[95] !== pt || t[96] !== ht || t[97] !== ut || t[98] !== Mt || t[99] !== x ? (Yt = /* @__PURE__ */ o.jsxs(Ge, { className: ee, style: oe, id: O, ref: ie, "aria-label": A, backgroundColor: Nt, theme: Mt, language: g, minHeight: c, width: x, height: y, relativeHeight: C, padding: xt, children: [
439
434
  mt,
440
435
  pt,
441
436
  ht,
442
437
  ut
443
- ] }), t[84] = A, t[85] = Nt, t[86] = O, t[87] = y, t[88] = g, t[89] = c, t[90] = xt, t[91] = w, t[92] = ee, t[93] = oe, t[94] = mt, t[95] = pt, t[96] = ht, t[97] = ut, t[98] = Mt, t[99] = x, t[100] = Yt) : Yt = t[100], Yt;
438
+ ] }), t[84] = A, t[85] = Nt, t[86] = O, t[87] = y, t[88] = g, t[89] = c, t[90] = xt, t[91] = C, t[92] = ee, t[93] = oe, t[94] = mt, t[95] = pt, t[96] = ht, t[97] = ut, t[98] = Mt, t[99] = x, t[100] = Yt) : Yt = t[100], Yt;
444
439
  }
445
- function Ye(d) {
440
+ function Xe(d) {
446
441
  return d.y;
447
442
  }
448
- function qe(d) {
443
+ function Ye(d) {
449
444
  return d.x;
450
445
  }
451
- function Je(d) {
446
+ function qe(d) {
452
447
  return d.properties.NAME !== "Antarctica";
453
448
  }
454
- function Ke(d) {
449
+ function Je(d) {
455
450
  return d !== void 0;
456
451
  }
457
- function Ze(d) {
452
+ function Ke(d) {
458
453
  return d !== void 0;
459
454
  }
460
- function Qe(d) {
455
+ function Ze(d) {
461
456
  return d.data;
462
457
  }
463
- function to(d) {
458
+ function Qe(d) {
464
459
  return d !== void 0;
465
460
  }
466
- function eo(d) {
461
+ function to(d) {
467
462
  return d.data;
468
463
  }
469
- function oo(d, t) {
470
- return Ue(d, t);
464
+ function eo(d, t) {
465
+ return Re(d, t);
471
466
  }
472
467
  export {
473
- Po as BiVariateChoroplethMap
468
+ Oo as BiVariateChoroplethMap
474
469
  };
475
470
  //# sourceMappingURL=BiVariateChoroplethMap.js.map