@undp/data-viz 2.3.1 → 2.3.3

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 (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/BarGraph.cjs +1 -1
  4. package/dist/BarGraph.js +2 -2
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.js +15 -15
  7. package/dist/BeeSwarmChart.cjs +1 -1
  8. package/dist/BeeSwarmChart.js +2 -2
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +202 -202
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.js +2 -2
  15. package/dist/ButterflyChart.cjs +1 -1
  16. package/dist/ButterflyChart.js +2 -2
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +33 -33
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +2 -2
  23. package/dist/ColorLegend.cjs +1 -1
  24. package/dist/ColorLegend.js +7 -7
  25. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  26. package/dist/ColorLegendWithMouseOver.js +1 -1
  27. package/dist/CopyTextButton.cjs +1 -1
  28. package/dist/CopyTextButton.js +1 -1
  29. package/dist/CsvDownloadButton.cjs +2 -2
  30. package/dist/CsvDownloadButton.js +1 -1
  31. package/dist/DataCards.cjs +1 -1
  32. package/dist/DataCards.js +3 -3
  33. package/dist/DataCards.js.map +1 -1
  34. package/dist/DataTable.cjs +1 -1
  35. package/dist/DataTable.js +2 -2
  36. package/dist/DifferenceLineChart.cjs +1 -1
  37. package/dist/DifferenceLineChart.js +1 -1
  38. package/dist/DonutChart.cjs +1 -1
  39. package/dist/DonutChart.js +20 -20
  40. package/dist/DotDensityMap.cjs +1 -1
  41. package/dist/DotDensityMap.cjs.map +1 -1
  42. package/dist/DotDensityMap.js +46 -46
  43. package/dist/DotDensityMap.js.map +1 -1
  44. package/dist/DualAxisLineChart.cjs +1 -1
  45. package/dist/DualAxisLineChart.js +1 -1
  46. package/dist/DumbbellChart.cjs +1 -1
  47. package/dist/DumbbellChart.js +2 -2
  48. package/dist/{EmptyState-CGeBqbmR.cjs → EmptyState-DX0t62iF.cjs} +2 -2
  49. package/dist/{EmptyState-CGeBqbmR.cjs.map → EmptyState-DX0t62iF.cjs.map} +1 -1
  50. package/dist/{EmptyState-tZBErBKF.js → EmptyState-Pj-emXt5.js} +3 -3
  51. package/dist/{EmptyState-tZBErBKF.js.map → EmptyState-Pj-emXt5.js.map} +1 -1
  52. package/dist/ExcelDownloadButton.cjs +1 -1
  53. package/dist/ExcelDownloadButton.js +7 -7
  54. package/dist/FootNote.cjs +1 -1
  55. package/dist/FootNote.js +1 -1
  56. package/dist/GeoHubCompareMaps.cjs +1 -1
  57. package/dist/GeoHubCompareMaps.js +1 -1
  58. package/dist/GeoHubMap.cjs +1 -1
  59. package/dist/GeoHubMap.js +1 -1
  60. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  61. package/dist/GeoHubMapWithLayerSelection.js +2 -2
  62. package/dist/GraphDescription.cjs +1 -1
  63. package/dist/GraphDescription.js +1 -1
  64. package/dist/{GraphEl-ic8C5Ksc.cjs → GraphEl-CWjTuiYd.cjs} +2 -2
  65. package/dist/{GraphEl-ic8C5Ksc.cjs.map → GraphEl-CWjTuiYd.cjs.map} +1 -1
  66. package/dist/{GraphEl-L5hNe7wJ.js → GraphEl-DDXkYObU.js} +7 -7
  67. package/dist/{GraphEl-L5hNe7wJ.js.map → GraphEl-DDXkYObU.js.map} +1 -1
  68. package/dist/GraphFooter.cjs +1 -1
  69. package/dist/GraphFooter.js +1 -1
  70. package/dist/GraphTitle.cjs +1 -1
  71. package/dist/GraphTitle.js +1 -1
  72. package/dist/GriddedGraphs.cjs +1 -1
  73. package/dist/GriddedGraphs.js +1 -1
  74. package/dist/HeatMap.cjs +1 -1
  75. package/dist/HeatMap.js +1 -1
  76. package/dist/Histogram.cjs +1 -1
  77. package/dist/Histogram.js +1 -1
  78. package/dist/HybridMap.cjs +1 -1
  79. package/dist/HybridMap.cjs.map +1 -1
  80. package/dist/HybridMap.js +42 -42
  81. package/dist/HybridMap.js.map +1 -1
  82. package/dist/ImageDownloadButton.cjs +1 -1
  83. package/dist/ImageDownloadButton.js +1 -1
  84. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  85. package/dist/LineChartWithConfidenceInterval.js +1 -1
  86. package/dist/LinearColorLegend.cjs +1 -1
  87. package/dist/LinearColorLegend.js +1 -1
  88. package/dist/MultiLineAltChart.cjs +1 -1
  89. package/dist/MultiLineAltChart.js +1 -1
  90. package/dist/MultiLineChart.cjs +1 -1
  91. package/dist/MultiLineChart.js +1 -1
  92. package/dist/ParetoChart.cjs +1 -1
  93. package/dist/ParetoChart.js +1 -1
  94. package/dist/RadarChart.cjs +1 -1
  95. package/dist/RadarChart.js +1 -1
  96. package/dist/SVGDownloadButton.cjs +1 -1
  97. package/dist/SVGDownloadButton.js +8 -8
  98. package/dist/SankeyChart.cjs +1 -1
  99. package/dist/SankeyChart.js +80 -80
  100. package/dist/ScatterPlot.cjs +1 -1
  101. package/dist/ScatterPlot.js +2 -2
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.js +1 -1
  104. package/dist/SingleGraphDashboard.cjs +1 -1
  105. package/dist/SingleGraphDashboard.js +1 -1
  106. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  107. package/dist/SingleGraphDashboardGeoHubMaps.js +10 -10
  108. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  109. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  110. package/dist/SlopeChart.cjs +1 -1
  111. package/dist/SlopeChart.js +1 -1
  112. package/dist/{Source-B5AoSlsi.cjs → Source-B3i0Bx2R.cjs} +2 -2
  113. package/dist/{Source-B5AoSlsi.cjs.map → Source-B3i0Bx2R.cjs.map} +1 -1
  114. package/dist/{Source-F8EYCYkV.js → Source-_STIejqs.js} +14 -14
  115. package/dist/{Source-F8EYCYkV.js.map → Source-_STIejqs.js.map} +1 -1
  116. package/dist/Source.cjs +1 -1
  117. package/dist/Source.js +2 -2
  118. package/dist/StatCardFromData.cjs +1 -1
  119. package/dist/StatCardFromData.js +12 -12
  120. package/dist/StripChart.cjs +1 -1
  121. package/dist/StripChart.js +1 -1
  122. package/dist/ThreeDGlobe.cjs +1 -1
  123. package/dist/ThreeDGlobe.js +2 -2
  124. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  125. package/dist/ThresholdColorLegendWithMouseOver.js +10 -10
  126. package/dist/TreeMapGraph.cjs +1 -1
  127. package/dist/TreeMapGraph.js +29 -29
  128. package/dist/Typography-DrJ7IOdw.cjs +2 -0
  129. package/dist/Typography-DrJ7IOdw.cjs.map +1 -0
  130. package/dist/Typography-iR8PEgdt.js +263 -0
  131. package/dist/Typography-iR8PEgdt.js.map +1 -0
  132. package/dist/UnitChart.cjs +1 -1
  133. package/dist/UnitChart.js +25 -25
  134. package/dist/WaterfallChart.cjs +1 -1
  135. package/dist/WaterfallChart.js +1 -1
  136. package/dist/{index-BQYOuXdl.js → index-B-4y_iGB.js} +19 -17
  137. package/dist/index-B-4y_iGB.js.map +1 -0
  138. package/dist/{index-D5ihtaJJ.js → index-BE-lvE4c.js} +3 -3
  139. package/dist/{index-D5ihtaJJ.js.map → index-BE-lvE4c.js.map} +1 -1
  140. package/dist/{index-Dgjq6aZ2.cjs → index-DlrGwLQA.cjs} +2 -2
  141. package/dist/{index-Dgjq6aZ2.cjs.map → index-DlrGwLQA.cjs.map} +1 -1
  142. package/dist/index-sbKVyHS2.cjs +2 -0
  143. package/dist/index-sbKVyHS2.cjs.map +1 -0
  144. package/dist/index.cjs +1 -1
  145. package/dist/index.js +2 -2
  146. package/dist/style.css +1 -1
  147. package/package.json +3 -3
  148. package/dist/Typography-hWfh3H0J.js +0 -142
  149. package/dist/Typography-hWfh3H0J.js.map +0 -1
  150. package/dist/Typography-sa1UE0oF.cjs +0 -2
  151. package/dist/Typography-sa1UE0oF.cjs.map +0 -1
  152. package/dist/index-BQYOuXdl.js.map +0 -1
  153. package/dist/index-C6er0ety.cjs +0 -2
  154. package/dist/index-C6er0ety.cjs.map +0 -1
package/dist/HybridMap.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as Ge, m as ze, b as Be, j as a, c as qe } from "./index-CHPV5EwG-DecW7_qr.js";
1
+ import { _ as Ge, m as ze, b as Ve, j as a, c as qe } from "./index-CHPV5EwG-DecW7_qr.js";
2
2
  import * as He from "react";
3
3
  import Ue, { useMemo as Xe, useState as S, useRef as Rt, useEffect as de, useEffectEvent as Ye } from "react";
4
4
  import { f as Je, p as Ke } from "./parse-Dv4of-PN.js";
@@ -6,12 +6,12 @@ import { g as Ze, N as Qe } from "./getSliderMarks-Cvg8zHBU.js";
6
6
  import { w as to } from "./Spinner--r2RrJV8.js";
7
7
  import { i as Pe } from "./index-Bwrro8-q.js";
8
8
  import { i as eo, z as oo, a as ao, g as ro, b as io, c as no, d as lo, e as so, f as co } from "./index-Dp_SfsUA.js";
9
- import { j as Oe } from "./Typography-hWfh3H0J.js";
9
+ import { _ as Oe } from "./Typography-iR8PEgdt.js";
10
10
  import { i as mo } from "./index-DCsFBfJ_.js";
11
- import { n as Le } from "./Source-F8EYCYkV.js";
11
+ import { n as Le } from "./Source-_STIejqs.js";
12
12
  import { w as po } from "./index-Dzc_aaI9-CG2Ar7l1.js";
13
13
  import { T as uo } from "./Tooltip-BRnAz2Gv.js";
14
- import { X as ho, P as go, e as fo } from "./index-BQYOuXdl.js";
14
+ import { X as ho, P as go, e as fo } from "./index-B-4y_iGB.js";
15
15
  import { D as yo } from "./DetailsModal-BMCTgVsk.js";
16
16
  import { s as xo } from "./pow-CaIrlM4J.js";
17
17
  import { o as vo } from "./ordinal-CHaxGJ_l.js";
@@ -29,9 +29,9 @@ import { f as No } from "./fetchAndParseData-BAXhgTDM.js";
29
29
  import { a as So, G as Mo } from "./GraphContainer-CF6ws3pd.js";
30
30
  import { g as Oo } from "./getUniqValue-DsqSii6M.js";
31
31
  import { g as Io } from "./getJenks-DTCcQSDi.js";
32
- var zo = "Separator", Ve = "horizontal", Eo = ["horizontal", "vertical"], _e = He.forwardRef((r, t) => {
33
- const { decorative: e, orientation: b = Ve, ...g } = r, n = Po(b) ? b : Ve, f = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
34
- return /* @__PURE__ */ Be.jsx(
32
+ var zo = "Separator", _e = "horizontal", Eo = ["horizontal", "vertical"], Be = He.forwardRef((r, t) => {
33
+ const { decorative: e, orientation: b = _e, ...g } = r, n = Po(b) ? b : _e, f = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
34
+ return /* @__PURE__ */ Ve.jsx(
35
35
  po.div,
36
36
  {
37
37
  "data-orientation": n,
@@ -41,11 +41,11 @@ var zo = "Separator", Ve = "horizontal", Eo = ["horizontal", "vertical"], _e = H
41
41
  }
42
42
  );
43
43
  });
44
- _e.displayName = zo;
44
+ Be.displayName = zo;
45
45
  function Po(r) {
46
46
  return Eo.includes(r);
47
47
  }
48
- var $e = _e;
48
+ var $e = Be;
49
49
  const Ae = Ue.forwardRef((r, t) => {
50
50
  const e = Ge.c(14);
51
51
  let b, g, n, f;
@@ -59,7 +59,7 @@ const Ae = Ue.forwardRef((r, t) => {
59
59
  let w;
60
60
  e[5] !== b || e[6] !== u || e[7] !== k ? (w = ze(u, k, b), e[5] = b, e[6] = u, e[7] = k, e[8] = w) : w = e[8];
61
61
  let M;
62
- return e[9] !== l || e[10] !== g || e[11] !== t || e[12] !== w ? (M = /* @__PURE__ */ Be.jsx($e, { ...g, ref: t, orientation: l, className: w }), e[9] = l, e[10] = g, e[11] = t, e[12] = w, e[13] = M) : M = e[13], M;
62
+ return e[9] !== l || e[10] !== g || e[11] !== t || e[12] !== w ? (M = /* @__PURE__ */ Ve.jsx($e, { ...g, ref: t, orientation: l, className: w }), e[9] = l, e[10] = g, e[11] = t, e[12] = w, e[13] = M) : M = e[13], M;
63
63
  });
64
64
  Ae.displayName = $e.displayName;
65
65
  function Lo(r) {
@@ -107,12 +107,12 @@ function Lo(r) {
107
107
  rewindCoordinatesInMapData: pt
108
108
  } = r, d = Xe(() => pt ? eo(b, {
109
109
  reverse: !0
110
- }) : b, [b, pt]), [s, V] = S(void 0), [Ht, Et] = S(Ot === void 0 ? !(l < 680) : !Ot), ut = Rt(null), [B, O] = S(void 0), [ot, I] = S(void 0), [Pt, D] = S(void 0), [Lt, z] = S(void 0), _ = Rt(null), K = jo(_, {
110
+ }) : b, [b, pt]), [s, _] = S(void 0), [Ht, Et] = S(Ot === void 0 ? !(l < 680) : !Ot), ut = Rt(null), [V, O] = S(void 0), [ot, I] = S(void 0), [Pt, D] = S(void 0), [Lt, z] = S(void 0), B = Rt(null), K = jo(B, {
111
111
  once: x.once,
112
112
  amount: x.amount
113
113
  }), at = Rt(null), $ = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? xo().domain([0, ct]).range([0.25, f]).nice() : void 0, E = tt ? vo().domain(n).range(e) : bo().domain(n).range(e);
114
114
  de(() => {
115
- const o = Ie(at.current), i = Ie(_.current), v = (m) => {
115
+ const o = Ie(at.current), i = Ie(B.current), v = (m) => {
116
116
  if (X === "noZoom") return !1;
117
117
  if (X === "button") return !m.type.includes("wheel");
118
118
  const gt = m.type === "wheel", ft = m.type.startsWith("touch"), At = m.type === "mousedown" || m.type === "mousemove";
@@ -124,13 +124,13 @@ function Lo(r) {
124
124
  });
125
125
  i.call(N), ut.current = N;
126
126
  }, [y, l, X]);
127
- const A = ao(d), j = mo(d), Vt = A[2] - A[0], Bt = A[3] - A[1], _t = l * 190 / 960 * 360 / Vt, $t = y * 190 / 678 * 180 / Bt, F = u * Math.min(_t, $t), Z = Q === "mercator" ? ro().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "equalEarth" ? io().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "naturalEarth" ? no().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "orthographic" ? lo().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : so().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F), ht = co().projection(Z), rt = (o) => {
128
- if (!_.current || !ut.current) return;
129
- Ie(_.current).call(ut.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
127
+ const A = ao(d), j = mo(d), _t = (A[2] - A[0]) * 1.15, Vt = (A[3] - A[1]) * 1.15, Bt = l * 190 / 960 * 360 / _t, $t = y * 190 / 678 * 180 / Vt, F = u * Math.min(Bt, $t), Z = Q === "mercator" ? ro().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "equalEarth" ? io().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "naturalEarth" ? no().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : Q === "orthographic" ? lo().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F) : so().rotate(J).center(k || j.geometry.coordinates).translate([l / 2, y / 2]).scale(F), ht = co().projection(Z), rt = (o) => {
128
+ if (!B.current || !ut.current) return;
129
+ Ie(B.current).call(ut.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
130
130
  };
131
131
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
132
132
  /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
133
- /* @__PURE__ */ a.jsx(lt.svg, { width: `${l}px`, height: `${y}px`, viewBox: `0 0 ${l} ${y}`, ref: _, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: at, children: [
133
+ /* @__PURE__ */ a.jsx(lt.svg, { width: `${l}px`, height: `${y}px`, viewBox: `0 0 ${l} ${y}`, ref: B, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: at, children: [
134
134
  st.filter((o) => o.position === "before").map((o) => o.layer),
135
135
  d.features.map((o, i) => {
136
136
  if (!o.properties?.[dt]) return null;
@@ -154,7 +154,7 @@ function Lo(r) {
154
154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
155
  E(o.x)
156
156
  );
157
- return /* @__PURE__ */ a.jsx(lt.g, { variants: {
157
+ return /* @__PURE__ */ a.jsx(lt.g, { className: "undp-map-shapes", variants: {
158
158
  initial: {
159
159
  opacity: 0
160
160
  },
@@ -176,7 +176,7 @@ function Lo(r) {
176
176
  }, onMouseLeave: () => {
177
177
  I(void 0), D(void 0), z(void 0), q?.(void 0);
178
178
  }, onClick: () => {
179
- (P || H) && (Pe(B, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
179
+ (P || H) && (Pe(V, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
180
180
  }, children: /* @__PURE__ */ a.jsx(lt.path, { d: v, variants: {
181
181
  initial: {
182
182
  fill: N,
@@ -200,8 +200,8 @@ function Lo(r) {
200
200
  } }, `${o.id}`) }, o.id);
201
201
  }),
202
202
  t.filter((o) => !me(o.lat) && !me(o.long)).map((o) => {
203
- const i = Z([o.long, o.lat])[0] > 0.6 * l ? -1 : 1;
204
- return /* @__PURE__ */ a.jsxs(lt.g, { variants: {
203
+ const i = Z([o.long, o.lat])[0] > 0.8 * l ? -1 : 1;
204
+ return /* @__PURE__ */ a.jsxs(lt.g, { className: "undp-map-dots", variants: {
205
205
  initial: {
206
206
  opacity: 0
207
207
  },
@@ -223,7 +223,7 @@ function Lo(r) {
223
223
  }, onMouseLeave: () => {
224
224
  I(void 0), D(void 0), z(void 0), q?.(void 0);
225
225
  }, onClick: () => {
226
- (P || H) && (Pe(B, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
226
+ (P || H) && (Pe(V, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
227
227
  }, transform: `translate(${Z([o.long, o.lat])[0]},${Z([o.long, o.lat])[1]})`, children: [
228
228
  /* @__PURE__ */ a.jsx(lt.circle, { cx: 0, cy: 0, variants: {
229
229
  initial: {
@@ -302,9 +302,9 @@ function Lo(r) {
302
302
  WebkitBoxOrient: "vertical"
303
303
  }, children: g }) : null,
304
304
  tt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
305
- V(e[i % e.length]);
305
+ _(e[i % e.length]);
306
306
  }, onMouseLeave: () => {
307
- V(void 0);
307
+ _(void 0);
308
308
  }, children: [
309
309
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
310
310
  backgroundColor: e[i % e.length]
@@ -312,9 +312,9 @@ function Lo(r) {
312
312
  /* @__PURE__ */ a.jsx(Oe, { size: "sm", marginBottom: "none", leading: "none", children: o })
313
313
  ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
314
314
  n.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
315
- V(e[i]);
315
+ _(e[i]);
316
316
  }, onMouseLeave: () => {
317
- V(void 0);
317
+ _(void 0);
318
318
  }, className: "cursor-pointer", children: [
319
319
  /* @__PURE__ */ a.jsx("rect", { x: i * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: s === e[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
320
320
  fill: e[i],
@@ -327,9 +327,9 @@ function Lo(r) {
327
327
  }, children: wo(o, "NA") })
328
328
  ] }, i)),
329
329
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
330
- V(e[n.length]);
330
+ _(e[n.length]);
331
331
  }, onMouseLeave: () => {
332
- V(void 0);
332
+ _(void 0);
333
333
  }, x: n.length * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: `cursor-pointer ${s === e[n.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
334
334
  fill: e[n.length],
335
335
  ...s === e[n.length] ? {} : {
@@ -346,7 +346,7 @@ function Lo(r) {
346
346
  /* @__PURE__ */ a.jsx("button", { onClick: () => rt("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: "–" })
347
347
  ] })
348
348
  ] }),
349
- H && B !== void 0 ? /* @__PURE__ */ a.jsx(yo, { body: H, data: B, setData: O, className: U?.modal }) : null,
349
+ H && V !== void 0 ? /* @__PURE__ */ a.jsx(yo, { body: H, data: V, setData: O, className: U?.modal }) : null,
350
350
  ot && w && Pt && Lt ? /* @__PURE__ */ a.jsx(uo, { data: ot, body: w, xPos: Pt, yPos: Lt, backgroundStyle: C?.tooltip, className: U?.tooltip }) : null
351
351
  ] });
352
352
  }
@@ -394,11 +394,11 @@ function ja(r) {
394
394
  detailsOnClick: pt,
395
395
  styles: d,
396
396
  classNames: s,
397
- mapProjection: V,
397
+ mapProjection: _,
398
398
  zoomInteraction: Ht,
399
399
  animate: Et,
400
400
  dimmedOpacity: ut,
401
- customLayers: B,
401
+ customLayers: V,
402
402
  maxRadiusValue: O,
403
403
  timeline: ot,
404
404
  collapseColorScaleByDefault: I,
@@ -406,19 +406,19 @@ function ja(r) {
406
406
  highlightedIds: D,
407
407
  mapProperty: Lt,
408
408
  dotLegendTitle: z,
409
- dotBorderColor: _,
409
+ dotBorderColor: B,
410
410
  labelColor: K,
411
411
  projectionRotate: at,
412
412
  rewindCoordinatesInMapData: $
413
- } = r, E = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : b, A = k === 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." : k, j = kt === void 0 ? "threshold" : kt, Vt = Ct === void 0 ? 5 : Ct, Bt = Dt === void 0 ? 0.95 : Dt, _t = Gt === void 0 ? 0.5 : Gt, $t = qt === void 0 ? jt.light.graphNoData : qt, F = St === void 0 ? !1 : St, Z = P === void 0 ? !1 : P, ht = Mt === void 0 ? jt.light.grays["gray-500"] : Mt, rt = Q === void 0 ? !0 : Q, o = X === void 0 ? !0 : X;
413
+ } = r, E = b === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : b, A = k === 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." : k, j = kt === void 0 ? "threshold" : kt, _t = Ct === void 0 ? 5 : Ct, Vt = Dt === void 0 ? 0.95 : Dt, Bt = Gt === void 0 ? 0.5 : Gt, $t = qt === void 0 ? jt.light.graphNoData : qt, F = St === void 0 ? !1 : St, Z = P === void 0 ? !1 : P, ht = Mt === void 0 ? jt.light.grays["gray-500"] : Mt, rt = Q === void 0 ? !0 : Q, o = X === void 0 ? !0 : X;
414
414
  let i;
415
415
  t[0] !== x ? (i = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = i) : i = t[1];
416
416
  const v = i;
417
417
  let N;
418
418
  t[2] !== ct ? (N = ct === void 0 ? [] : ct, t[2] = ct, t[3] = N) : N = t[3];
419
- const m = N, gt = Y === void 0 ? !1 : Y, ft = Ot === void 0 ? !1 : Ot, At = et === void 0 ? !1 : et, pe = dt === void 0 ? "en" : dt, T = mt === void 0 ? 0 : mt, it = It === void 0 ? "light" : It, ue = J === void 0 ? !0 : J, he = V === void 0 ? "naturalEarth" : V, ge = Ht === void 0 ? "button" : Ht, Ut = Et === void 0 ? !1 : Et, fe = ut === void 0 ? 0.3 : ut;
419
+ const m = N, gt = Y === void 0 ? !1 : Y, ft = Ot === void 0 ? !1 : Ot, At = et === void 0 ? !1 : et, pe = dt === void 0 ? "en" : dt, T = mt === void 0 ? 0 : mt, it = It === void 0 ? "light" : It, ue = J === void 0 ? !0 : J, he = _ === void 0 ? "naturalEarth" : _, ge = Ht === void 0 ? "button" : Ht, Ut = Et === void 0 ? !1 : Et, fe = ut === void 0 ? 0.3 : ut;
420
420
  let Xt;
421
- t[4] !== B ? (Xt = B === void 0 ? [] : B, t[4] = B, t[5] = Xt) : Xt = t[5];
421
+ t[4] !== V ? (Xt = V === void 0 ? [] : V, t[4] = V, t[5] = Xt) : Xt = t[5];
422
422
  const ye = Xt;
423
423
  let Yt;
424
424
  t[6] !== ot ? (Yt = ot === void 0 ? {
@@ -494,10 +494,10 @@ function ja(r) {
494
494
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
495
495
  ] }) : null, t[51] = R, t[52] = se, t[53] = W, t[54] = c.enabled, t[55] = p, t[56] = vt) : vt = t[56];
496
496
  let bt;
497
- t[57] !== Ut || t[58] !== q || t[59] !== j || t[60] !== s || t[61] !== I || t[62] !== n || t[63] !== ye || t[64] !== e || t[65] !== pt || t[66] !== fe || t[67] !== Wt || t[68] !== _ || t[69] !== xe || t[70] !== z || t[71] !== l || t[72] !== m || t[73] !== ve || t[74] !== R || t[75] !== rt || t[76] !== we || t[77] !== ht || t[78] !== _t || t[79] !== w || t[80] !== $t || t[81] !== he || t[82] !== be || t[83] !== yt || t[84] !== O || t[85] !== T || t[86] !== tt || t[87] !== U || t[88] !== je || t[89] !== Vt || t[90] !== C || t[91] !== ue || t[92] !== ke || t[93] !== Bt || t[94] !== At || t[95] !== o || t[96] !== Z || t[97] !== d || t[98] !== Ft || t[99] !== nt || t[100] !== it || t[101] !== c.dateFormat || t[102] !== c.enabled || t[103] !== H || t[104] !== p || t[105] !== u || t[106] !== ge || t[107] !== v || t[108] !== L ? (bt = /* @__PURE__ */ a.jsx(So, { ref: De, children: nt && Ft && yt ? /* @__PURE__ */ a.jsx(Lo, { dotColor: xe, data: e.filter((h) => c.enabled ? h.date === Je(new Date(p[R]), c.dateFormat || "yyyy") : h), mapData: At ? yt : {
497
+ t[57] !== Ut || t[58] !== q || t[59] !== j || t[60] !== s || t[61] !== I || t[62] !== n || t[63] !== ye || t[64] !== e || t[65] !== pt || t[66] !== fe || t[67] !== Wt || t[68] !== B || t[69] !== xe || t[70] !== z || t[71] !== l || t[72] !== m || t[73] !== ve || t[74] !== R || t[75] !== rt || t[76] !== we || t[77] !== ht || t[78] !== Bt || t[79] !== w || t[80] !== $t || t[81] !== he || t[82] !== be || t[83] !== yt || t[84] !== O || t[85] !== T || t[86] !== tt || t[87] !== U || t[88] !== je || t[89] !== _t || t[90] !== C || t[91] !== ue || t[92] !== ke || t[93] !== Vt || t[94] !== At || t[95] !== o || t[96] !== Z || t[97] !== d || t[98] !== Ft || t[99] !== nt || t[100] !== it || t[101] !== c.dateFormat || t[102] !== c.enabled || t[103] !== H || t[104] !== p || t[105] !== u || t[106] !== ge || t[107] !== v || t[108] !== L ? (bt = /* @__PURE__ */ a.jsx(So, { ref: De, children: nt && Ft && yt ? /* @__PURE__ */ a.jsx(Lo, { dotColor: xe, data: e.filter((h) => c.enabled ? h.date === Je(new Date(p[R]), c.dateFormat || "yyyy") : h), mapData: At ? yt : {
498
498
  ...yt,
499
- features: yt.features.filter(_o)
500
- }, colorDomain: Wt, width: nt, height: Ft, scale: Bt, centerPoint: q, colors: n || (j === "categorical" ? jt[it].sequentialColors[`neutralColorsx0${Wt.length}`] : jt[it].sequentialColors[`neutralColorsx0${Wt.length + 1}`]), mapColorLegendTitle: w, radius: Vt, categorical: j === "categorical", mapBorderWidth: _t, mapNoDataColor: $t, mapBorderColor: ht, tooltip: H, onSeriesMouseOver: U, showLabels: Z, isWorldMap: rt, showColorScale: o, zoomScaleExtend: v, zoomTranslateExtend: L, onSeriesMouseClick: tt, highlightedDataPoints: m, resetSelectionOnDoubleClick: ue, styles: d, classNames: s, zoomInteraction: ge, detailsOnClick: pt, mapProjection: he || (rt ? "naturalEarth" : "mercator"), animate: Ut === !0 ? {
499
+ features: yt.features.filter(Bo)
500
+ }, colorDomain: Wt, width: nt, height: Ft, scale: Vt, centerPoint: q, colors: n || (j === "categorical" ? jt[it].sequentialColors[`neutralColorsx0${Wt.length}`] : jt[it].sequentialColors[`neutralColorsx0${Wt.length + 1}`]), mapColorLegendTitle: w, radius: _t, categorical: j === "categorical", mapBorderWidth: Bt, mapNoDataColor: $t, mapBorderColor: ht, tooltip: H, onSeriesMouseOver: U, showLabels: Z, isWorldMap: rt, showColorScale: o, zoomScaleExtend: v, zoomTranslateExtend: L, onSeriesMouseClick: tt, highlightedDataPoints: m, resetSelectionOnDoubleClick: ue, styles: d, classNames: s, zoomInteraction: ge, detailsOnClick: pt, mapProjection: he || (rt ? "naturalEarth" : "mercator"), animate: Ut === !0 ? {
501
501
  duration: 0.5,
502
502
  once: !0,
503
503
  amount: 0.5
@@ -505,9 +505,9 @@ function ja(r) {
505
505
  duration: 0,
506
506
  once: !0,
507
507
  amount: 0
508
- }, dimmedOpacity: fe, customLayers: ye, maxRadiusValue: me(O) ? Math.max(...e.map(Bo).filter(Vo)) : O, collapseColorScaleByDefault: I, highlightedIds: ve, mapProperty: be, dotLegendTitle: z, dotBorderColor: _, labelColor: we, projectionRotate: je, rewindCoordinatesInMapData: ke }) : /* @__PURE__ */ a.jsx("div", { style: {
508
+ }, dimmedOpacity: fe, customLayers: ye, maxRadiusValue: me(O) ? Math.max(...e.map(Vo).filter(_o)) : O, collapseColorScaleByDefault: I, highlightedIds: ve, mapProperty: be, dotLegendTitle: z, dotBorderColor: B, labelColor: we, projectionRotate: je, rewindCoordinatesInMapData: ke }) : /* @__PURE__ */ a.jsx("div", { style: {
509
509
  height: `${Math.max(T, l || (C ? T ? (u || nt) * C > T ? (u || nt) * C : T : (u || nt) * C : Ft))}px`
510
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(to, { "aria-label": "Loading graph" }) }) }), t[57] = Ut, t[58] = q, t[59] = j, t[60] = s, t[61] = I, t[62] = n, t[63] = ye, t[64] = e, t[65] = pt, t[66] = fe, t[67] = Wt, t[68] = _, t[69] = xe, t[70] = z, t[71] = l, t[72] = m, t[73] = ve, t[74] = R, t[75] = rt, t[76] = we, t[77] = ht, t[78] = _t, t[79] = w, t[80] = $t, t[81] = he, t[82] = be, t[83] = yt, t[84] = O, t[85] = T, t[86] = tt, t[87] = U, t[88] = je, t[89] = Vt, t[90] = C, t[91] = ue, t[92] = ke, t[93] = Bt, t[94] = At, t[95] = o, t[96] = Z, t[97] = d, t[98] = Ft, t[99] = nt, t[100] = it, t[101] = c.dateFormat, t[102] = c.enabled, t[103] = H, t[104] = p, t[105] = u, t[106] = ge, t[107] = v, t[108] = L, t[109] = bt) : bt = t[109];
510
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(to, { "aria-label": "Loading graph" }) }) }), t[57] = Ut, t[58] = q, t[59] = j, t[60] = s, t[61] = I, t[62] = n, t[63] = ye, t[64] = e, t[65] = pt, t[66] = fe, t[67] = Wt, t[68] = B, t[69] = xe, t[70] = z, t[71] = l, t[72] = m, t[73] = ve, t[74] = R, t[75] = rt, t[76] = we, t[77] = ht, t[78] = Bt, t[79] = w, t[80] = $t, t[81] = he, t[82] = be, t[83] = yt, t[84] = O, t[85] = T, t[86] = tt, t[87] = U, t[88] = je, t[89] = _t, t[90] = C, t[91] = ue, t[92] = ke, t[93] = Vt, t[94] = At, t[95] = o, t[96] = Z, t[97] = d, t[98] = Ft, t[99] = nt, t[100] = it, t[101] = c.dateFormat, t[102] = c.enabled, t[103] = H, t[104] = p, t[105] = u, t[106] = ge, t[107] = v, t[108] = L, t[109] = bt) : bt = t[109];
511
511
  let wt;
512
512
  t[110] !== s?.footnote || t[111] !== s?.source || t[112] !== A || t[113] !== f || t[114] !== d?.footnote || t[115] !== d?.source || t[116] !== u ? (wt = f || A ? /* @__PURE__ */ a.jsx(Co, { styles: {
513
513
  footnote: d?.footnote,
@@ -524,13 +524,13 @@ function ja(r) {
524
524
  wt
525
525
  ] }), t[118] = zt, t[119] = F, t[120] = st, t[121] = l, t[122] = pe, t[123] = T, t[124] = Nt, t[125] = C, t[126] = Se, t[127] = Me, t[128] = xt, t[129] = vt, t[130] = bt, t[131] = wt, t[132] = it, t[133] = u, t[134] = ce) : ce = t[134], ce;
526
526
  }
527
- function Vo(r) {
527
+ function _o(r) {
528
528
  return r != null;
529
529
  }
530
- function Bo(r) {
530
+ function Vo(r) {
531
531
  return r.radius;
532
532
  }
533
- function _o(r) {
533
+ function Bo(r) {
534
534
  return r.properties.NAME !== "Antarctica";
535
535
  }
536
536
  function $o(r) {