@undp/data-viz 2.1.0 → 2.1.2

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 (120) hide show
  1. package/dist/AreaChart.js +3 -3
  2. package/dist/BarGraph.cjs +1 -1
  3. package/dist/BarGraph.cjs.map +1 -1
  4. package/dist/BarGraph.js +1760 -1604
  5. package/dist/BarGraph.js.map +1 -1
  6. package/dist/BeeSwarmChart.js +2 -2
  7. package/dist/BiVariateChoroplethMap.cjs +1 -1
  8. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  9. package/dist/BiVariateChoroplethMap.js +222 -207
  10. package/dist/BiVariateChoroplethMap.js.map +1 -1
  11. package/dist/BulletChart.cjs +1 -1
  12. package/dist/BulletChart.cjs.map +1 -1
  13. package/dist/BulletChart.d.ts +11 -0
  14. package/dist/BulletChart.js +726 -640
  15. package/dist/BulletChart.js.map +1 -1
  16. package/dist/ButterflyChart.cjs +1 -1
  17. package/dist/ButterflyChart.cjs.map +1 -1
  18. package/dist/ButterflyChart.js +366 -348
  19. package/dist/ButterflyChart.js.map +1 -1
  20. package/dist/ChoroplethMap.cjs +1 -1
  21. package/dist/ChoroplethMap.cjs.map +1 -1
  22. package/dist/ChoroplethMap.js +311 -297
  23. package/dist/ChoroplethMap.js.map +1 -1
  24. package/dist/CirclePackingGraph.js +1 -1
  25. package/dist/DifferenceLineChart.js +3 -3
  26. package/dist/DotDensityMap.cjs +1 -1
  27. package/dist/DotDensityMap.cjs.map +1 -1
  28. package/dist/DotDensityMap.js +219 -203
  29. package/dist/DotDensityMap.js.map +1 -1
  30. package/dist/DualAxisLineChart.js +3 -3
  31. package/dist/DumbbellChart.cjs +1 -1
  32. package/dist/DumbbellChart.cjs.map +1 -1
  33. package/dist/DumbbellChart.js +606 -556
  34. package/dist/DumbbellChart.js.map +1 -1
  35. package/dist/GraphEl-YKUlz-37.cjs +2 -0
  36. package/dist/GraphEl-YKUlz-37.cjs.map +1 -0
  37. package/dist/{GraphEl-ebgfxefq.js → GraphEl-sVZvlyWe.js} +3 -2
  38. package/dist/GraphEl-sVZvlyWe.js.map +1 -0
  39. package/dist/GriddedGraphs.cjs +1 -1
  40. package/dist/GriddedGraphs.js +2 -2
  41. package/dist/HeatMap.js +4 -4
  42. package/dist/Histogram.js +3 -3
  43. package/dist/HybridMap.cjs +1 -1
  44. package/dist/HybridMap.cjs.map +1 -1
  45. package/dist/HybridMap.js +357 -342
  46. package/dist/HybridMap.js.map +1 -1
  47. package/dist/LineChartWithConfidenceInterval.js +3 -3
  48. package/dist/MultiLineAltChart.cjs +1 -1
  49. package/dist/MultiLineAltChart.cjs.map +1 -1
  50. package/dist/MultiLineAltChart.js +453 -425
  51. package/dist/MultiLineAltChart.js.map +1 -1
  52. package/dist/MultiLineChart.js +3 -3
  53. package/dist/ParetoChart.js +2 -2
  54. package/dist/RadarChart.js +1 -1
  55. package/dist/ScatterPlot.cjs +1 -1
  56. package/dist/ScatterPlot.cjs.map +1 -1
  57. package/dist/ScatterPlot.js +471 -452
  58. package/dist/ScatterPlot.js.map +1 -1
  59. package/dist/SimpleLineChart.js +3 -3
  60. package/dist/SingleGraphDashboard.cjs +1 -1
  61. package/dist/SingleGraphDashboard.js +2 -2
  62. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  63. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  64. package/dist/SlopeChart.js +1 -1
  65. package/dist/SparkLine.js +3 -3
  66. package/dist/StripChart.js +1 -1
  67. package/dist/ThreeDGlobe.js +2 -2
  68. package/dist/Types.d.ts +1 -0
  69. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  70. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  71. package/dist/ensureCompleteData-DS7gCvVd.js +122 -0
  72. package/dist/ensureCompleteData-DS7gCvVd.js.map +1 -0
  73. package/dist/ensureCompleteData-Oib-vGb0.cjs +2 -0
  74. package/dist/ensureCompleteData-Oib-vGb0.cjs.map +1 -0
  75. package/dist/getSchema.cjs +1 -1
  76. package/dist/getSchema.cjs.map +1 -1
  77. package/dist/getSchema.js +15 -15
  78. package/dist/getSchema.js.map +1 -1
  79. package/dist/{index-BBV4tAeA.js → index-DPGq3eIL.js} +2 -2
  80. package/dist/{index-BBV4tAeA.js.map → index-DPGq3eIL.js.map} +1 -1
  81. package/dist/index.cjs +1 -1
  82. package/dist/index.d.ts +3 -0
  83. package/dist/index.js +3 -3
  84. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  85. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  86. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  87. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  88. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  89. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  90. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  91. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  92. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  93. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  94. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  95. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  96. package/dist/transformData.cjs +1 -1
  97. package/dist/transformData.js +2 -2
  98. package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
  99. package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
  100. package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
  101. package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
  102. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
  103. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
  104. package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
  105. package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
  106. package/package.json +4 -4
  107. package/dist/GraphEl-B16EYkko.cjs +0 -2
  108. package/dist/GraphEl-B16EYkko.cjs.map +0 -1
  109. package/dist/GraphEl-ebgfxefq.js.map +0 -1
  110. package/dist/ensureCompleteData-DNKEGRiP.js +0 -102
  111. package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
  112. package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
  113. package/dist/ensureCompleteData-I6nYmT8E.cjs.map +0 -1
  114. package/dist/sort-BIvMlUH1.js +0 -34
  115. package/dist/sort-BIvMlUH1.js.map +0 -1
  116. package/dist/sort-O96oMZLb.cjs +0 -2
  117. package/dist/sort-O96oMZLb.cjs.map +0 -1
  118. package/dist/transformDataForAggregation-DEU__LUl.js.map +0 -1
  119. package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
  120. package/dist/transformDataForAggregation-XNg0OGYE.cjs.map +0 -1
@@ -1,41 +1,39 @@
1
- import { j as o, m as le, c as ce } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useState as k, useRef as Mt, useEffect as Ut, useEffectEvent as me } from "react";
3
- import { p as de, f as ue } from "./parse-DlCRUFh_.js";
4
- import { g as pe, N as fe } from "./getSliderMarks-HIDJ0_Cd.js";
5
- import { w as he } from "./Spinner-D7rnnwnA.js";
6
- import { i as ge } from "./index-Bwrro8-q.js";
7
- import { z as ye, t as xe, g as ve, a as be, b as we, c as je, d as De } from "./zoom-C9MFjAaV.js";
8
- import { j as ke } from "./Typography-PxtFcnJb.js";
9
- import { t as Ce } from "./index-GEsywGxz.js";
10
- import { T as Ne } from "./Tooltip-Dj5eVppQ.js";
11
- import { Colors as M } from "./Colors.js";
12
- import { X as Se, P as Oe, e as $e } from "./index-D491FEn1.js";
13
- import { D as Me } from "./DetailsModal-0Ry5nXiC.js";
14
- import { s as Ee } from "./pow-DE4c7dbW.js";
15
- import { s as oe } from "./select-DKy99ogv.js";
16
- import { u as Pe } from "./use-in-view-Cxa7y1TH.js";
17
- import { m as Ht } from "./proxy-BxkFHwUw.js";
18
- import { A as ze } from "./index-BqfRwk1n.js";
19
- import { GraphFooter as Le } from "./GraphFooter.js";
20
- import { GraphHeader as _e } from "./GraphHeader.js";
21
- import { f as Ie } from "./fetchAndParseData-BpqkBPQL.js";
22
- import { c as Be } from "./checkIfNullOrUndefined-DmfiKkNw.js";
23
- import { u as ae } from "./uniqBy-BHy4I8PK.js";
24
- import { a as We, G as Ve } from "./GraphContainer-CRqzdKu2.js";
25
- import { s as Ae } from "./sort-BIvMlUH1.js";
26
- import { a as Te } from "./init-BJFW6EwE.js";
27
- function Fe(a) {
1
+ import { j as o, m as pe, c as fe } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useState as C, useRef as Mt, useEffect as Kt, useEffectEvent as he } from "react";
3
+ import { f as ge, p as ye } from "./parse-DlCRUFh_.js";
4
+ import { g as xe, N as ve } from "./getSliderMarks-HIDJ0_Cd.js";
5
+ import { w as be } from "./Spinner-D7rnnwnA.js";
6
+ import { i as we } from "./index-Bwrro8-q.js";
7
+ import { z as De, t as je, g as ke, a as Ce, b as Ne, c as Se, d as Oe } from "./zoom-C9MFjAaV.js";
8
+ import { j as $e } from "./Typography-PxtFcnJb.js";
9
+ import { t as Me } from "./index-GEsywGxz.js";
10
+ import { T as Ee } from "./Tooltip-Dj5eVppQ.js";
11
+ import { Colors as _ } from "./Colors.js";
12
+ import { X as Pe, P as _e, e as ze } from "./index-D491FEn1.js";
13
+ import { D as Le } from "./DetailsModal-0Ry5nXiC.js";
14
+ import { s as Ie } from "./pow-CM2aze4M.js";
15
+ import { s as le } from "./select-DKy99ogv.js";
16
+ import { u as Ae } from "./use-in-view-Cxa7y1TH.js";
17
+ import { m as Yt } from "./proxy-BxkFHwUw.js";
18
+ import { A as Be } from "./index-BqfRwk1n.js";
19
+ import { GraphFooter as We } from "./GraphFooter.js";
20
+ import { GraphHeader as Fe } from "./GraphHeader.js";
21
+ import { f as Ve } from "./fetchAndParseData-BpqkBPQL.js";
22
+ import { c as Te } from "./checkIfNullOrUndefined-DmfiKkNw.js";
23
+ import { u as Ge } from "./uniqBy-BHy4I8PK.js";
24
+ import { a as Re, G as He } from "./GraphContainer-CRqzdKu2.js";
25
+ function Ue(a) {
28
26
  const {
29
27
  data: t,
30
28
  colors: r,
31
29
  mapData: q,
32
- colorLegendTitle: E,
30
+ colorLegendTitle: z,
33
31
  colorDomain: b,
34
- radius: N,
32
+ radius: S,
35
33
  height: f,
36
- width: c,
37
- scale: u,
38
- centerPoint: P,
34
+ width: u,
35
+ scale: p,
36
+ centerPoint: L,
39
37
  tooltip: X,
40
38
  showLabels: pt,
41
39
  mapBorderWidth: ft,
@@ -44,79 +42,79 @@ function Fe(a) {
44
42
  onSeriesMouseOver: K,
45
43
  showColorScale: Et,
46
44
  zoomScaleExtend: Pt,
47
- zoomTranslateExtend: zt,
45
+ zoomTranslateExtend: _t,
48
46
  highlightedDataPoints: gt,
49
47
  onSeriesMouseClick: Z,
50
48
  resetSelectionOnDoubleClick: yt,
51
49
  detailsOnClick: x,
52
50
  styles: xt,
53
51
  classNames: J,
54
- mapProjection: W,
55
- zoomInteraction: C,
52
+ mapProjection: V,
53
+ zoomInteraction: N,
56
54
  animate: w,
57
55
  dimmedOpacity: Q,
58
- customLayers: V,
56
+ customLayers: T,
59
57
  maxRadiusValue: vt,
60
58
  collapseColorScaleByDefault: bt
61
- } = a, [wt, jt] = k(void 0), [Lt, Dt] = k(bt === void 0 ? !(c < 680) : !bt), tt = Mt(null), [A, et] = k(void 0), [ot, s] = k(void 0), [l, T] = k(void 0), [kt, rt] = k(void 0), z = Mt(null), L = Pe(z, {
59
+ } = a, [wt, Dt] = C(void 0), [zt, jt] = C(bt === void 0 ? !(u < 680) : !bt), tt = Mt(null), [G, et] = C(void 0), [ot, c] = C(void 0), [m, R] = C(void 0), [kt, rt] = C(void 0), I = Mt(null), A = Ae(I, {
62
60
  once: w.once,
63
61
  amount: w.amount
64
- }), F = Mt(null), S = t.filter((e) => e.radius === void 0 || e.radius === null).length !== t.length ? Ee().domain([0, vt]).range([0.25, N]).nice() : void 0;
65
- Ut(() => {
66
- const e = oe(F.current), h = oe(z.current), i = (n) => {
67
- if (C === "noZoom") return !1;
68
- if (C === "button") return !n.type.includes("wheel");
69
- const j = n.type === "wheel", v = n.type.startsWith("touch"), y = n.type === "mousedown" || n.type === "mousemove";
70
- return v ? !0 : j ? C === "scroll" ? !0 : n.ctrlKey : y && !n.button && !n.ctrlKey;
71
- }, D = ye().scaleExtent(Pt).translateExtent(zt || [[-20, -20], [c + 20, f + 20]]).filter(i).on("zoom", ({
72
- transform: n
62
+ }), H = Mt(null), j = t.filter((e) => e.radius === void 0 || e.radius === null).length !== t.length ? Ie().domain([0, vt]).range([0.25, S]).nice() : void 0;
63
+ Kt(() => {
64
+ const e = le(H.current), h = le(I.current), i = (l) => {
65
+ if (N === "noZoom") return !1;
66
+ if (N === "button") return !l.type.includes("wheel");
67
+ const D = l.type === "wheel", v = l.type.startsWith("touch"), y = l.type === "mousedown" || l.type === "mousemove";
68
+ return v ? !0 : D ? N === "scroll" ? !0 : l.ctrlKey : y && !l.button && !l.ctrlKey;
69
+ }, k = De().scaleExtent(Pt).translateExtent(_t || [[-20, -20], [u + 20, f + 20]]).filter(i).on("zoom", ({
70
+ transform: l
73
71
  }) => {
74
- e.attr("transform", n);
72
+ e.attr("transform", l);
75
73
  });
76
- h.call(D), tt.current = D;
77
- }, [f, c, C]);
78
- const _ = xe(q), g = Ce(q), at = _[2] - _[0], Ct = _[3] - _[1], Nt = c * 190 / 960 * 360 / at, St = f * 190 / 678 * 180 / Ct, O = u * Math.min(Nt, St), I = W === "mercator" ? ve().rotate([0, 0]).center(P || g.geometry.coordinates).translate([c / 2, f / 2]).scale(O) : W === "equalEarth" ? be().rotate([0, 0]).center(P || g.geometry.coordinates).translate([c / 2, f / 2]).scale(O) : W === "naturalEarth" ? we().rotate([0, 0]).center(P || g.geometry.coordinates).translate([c / 2, f / 2]).scale(O) : W === "orthographic" ? je().rotate([0, 0]).center(P || g.geometry.coordinates).translate([c / 2, f / 2]).scale(O) : De().rotate([0, 0]).center(P || g.geometry.coordinates).translate([c / 2, f / 2]).scale(O), it = (e) => {
79
- if (!z.current || !tt.current) return;
80
- oe(z.current).call(tt.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
74
+ h.call(k), tt.current = k;
75
+ }, [f, u, N]);
76
+ const B = je(q), g = Me(q), at = B[2] - B[0], Ct = B[3] - B[1], Nt = u * 190 / 960 * 360 / at, St = f * 190 / 678 * 180 / Ct, O = p * Math.min(Nt, St), W = V === "mercator" ? ke().rotate([0, 0]).center(L || g.geometry.coordinates).translate([u / 2, f / 2]).scale(O) : V === "equalEarth" ? Ce().rotate([0, 0]).center(L || g.geometry.coordinates).translate([u / 2, f / 2]).scale(O) : V === "naturalEarth" ? Ne().rotate([0, 0]).center(L || g.geometry.coordinates).translate([u / 2, f / 2]).scale(O) : V === "orthographic" ? Se().rotate([0, 0]).center(L || g.geometry.coordinates).translate([u / 2, f / 2]).scale(O) : Oe().rotate([0, 0]).center(L || g.geometry.coordinates).translate([u / 2, f / 2]).scale(O), it = (e) => {
77
+ if (!I.current || !tt.current) return;
78
+ le(I.current).call(tt.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
81
79
  };
82
80
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
83
81
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
84
- /* @__PURE__ */ o.jsx(Ht.svg, { width: `${c}px`, height: `${f}px`, viewBox: `0 0 ${c} ${f}`, ref: z, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: F, children: [
85
- V.filter((e) => e.position === "before").map((e) => e.layer),
82
+ /* @__PURE__ */ o.jsx(Yt.svg, { width: `${u}px`, height: `${f}px`, viewBox: `0 0 ${u} ${f}`, ref: I, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: H, children: [
83
+ T.filter((e) => e.position === "before").map((e) => e.layer),
86
84
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
87
85
  q.features.map((e, h) => /* @__PURE__ */ o.jsx("g", { children: e.geometry.type === "MultiPolygon" ? (
88
86
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
89
- e.geometry.coordinates.map((i, D) => {
90
- let n = "";
91
- return i.forEach((j) => {
87
+ e.geometry.coordinates.map((i, k) => {
88
+ let l = "";
89
+ return i.forEach((D) => {
92
90
  let v = " M";
93
- j.forEach((y, nt) => {
94
- const B = I([y[0], y[1]]);
95
- nt !== j.length - 1 ? v = `${v}${B[0]} ${B[1]}L` : v = `${v}${B[0]} ${B[1]}`;
96
- }), n += v;
97
- }), /* @__PURE__ */ o.jsx("path", { d: n, style: {
91
+ D.forEach((y, nt) => {
92
+ const F = W([y[0], y[1]]);
93
+ nt !== D.length - 1 ? v = `${v}${F[0]} ${F[1]}L` : v = `${v}${F[0]} ${F[1]}`;
94
+ }), l += v;
95
+ }), /* @__PURE__ */ o.jsx("path", { d: l, style: {
98
96
  stroke: ht,
99
97
  strokeWidth: ft,
100
98
  fill: Y
101
- } }, D);
99
+ } }, k);
102
100
  })
103
101
  ) : (
104
102
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
105
- e.geometry.coordinates.map((i, D) => {
106
- let n = "M";
107
- return i.forEach((j, v) => {
108
- const y = I([j[0], j[1]]);
109
- v !== i.length - 1 ? n = `${n}${y[0]} ${y[1]}L` : n = `${n}${y[0]} ${y[1]}`;
110
- }), /* @__PURE__ */ o.jsx("path", { d: n, style: {
103
+ e.geometry.coordinates.map((i, k) => {
104
+ let l = "M";
105
+ return i.forEach((D, v) => {
106
+ const y = W([D[0], D[1]]);
107
+ v !== i.length - 1 ? l = `${l}${y[0]} ${y[1]}L` : l = `${l}${y[0]} ${y[1]}`;
108
+ }), /* @__PURE__ */ o.jsx("path", { d: l, style: {
111
109
  stroke: ht,
112
110
  strokeWidth: ft,
113
111
  fill: Y
114
- } }, D);
112
+ } }, k);
115
113
  })
116
114
  ) }, h)),
117
- /* @__PURE__ */ o.jsx(ze, { children: t.map((e) => {
118
- const h = t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : M.gray;
119
- return /* @__PURE__ */ o.jsxs(Ht.g, { variants: {
115
+ /* @__PURE__ */ o.jsx(Be, { children: t.map((e) => {
116
+ const h = t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : _.gray;
117
+ return /* @__PURE__ */ o.jsxs(Yt.g, { variants: {
120
118
  initial: {
121
119
  opacity: 0
122
120
  },
@@ -126,35 +124,35 @@ function Fe(a) {
126
124
  duration: w.duration
127
125
  }
128
126
  }
129
- }, initial: "initial", animate: L ? "whileInView" : "initial", exit: {
127
+ }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
130
128
  opacity: 0,
131
129
  transition: {
132
130
  duration: w.duration
133
131
  }
134
132
  }, onMouseEnter: (i) => {
135
- s(e), rt(i.clientY), T(i.clientX), K?.(e);
133
+ c(e), rt(i.clientY), R(i.clientX), K?.(e);
136
134
  }, onMouseMove: (i) => {
137
- s(e), rt(i.clientY), T(i.clientX);
135
+ c(e), rt(i.clientY), R(i.clientX);
138
136
  }, onMouseLeave: () => {
139
- s(void 0), T(void 0), rt(void 0), K?.(void 0);
137
+ c(void 0), R(void 0), rt(void 0), K?.(void 0);
140
138
  }, onClick: () => {
141
- (Z || x) && (ge(A, e) && yt ? (et(void 0), Z?.(void 0)) : (et(e), Z?.(e)));
142
- }, transform: `translate(${I([e.long, e.lat])[0]},${I([e.long, e.lat])[1]})`, children: [
143
- /* @__PURE__ */ o.jsx(Ht.circle, { cx: 0, cy: 0, variants: {
139
+ (Z || x) && (we(G, e) && yt ? (et(void 0), Z?.(void 0)) : (et(e), Z?.(e)));
140
+ }, transform: `translate(${W([e.long, e.lat])[0]},${W([e.long, e.lat])[1]})`, children: [
141
+ /* @__PURE__ */ o.jsx(Yt.circle, { cx: 0, cy: 0, variants: {
144
142
  initial: {
145
143
  r: 0,
146
- fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : M.gray,
147
- stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : M.gray
144
+ fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : _.gray,
145
+ stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : _.gray
148
146
  },
149
147
  whileInView: {
150
- r: S ? S(e.radius || 0) : N,
151
- fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : M.gray,
152
- stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : M.gray,
148
+ r: j ? j(e.radius || 0) : S,
149
+ fill: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : _.gray,
150
+ stroke: t.filter((i) => i.color).length === 0 ? r[0] : e.color ? r[b.indexOf(`${e.color}`)] : _.gray,
153
151
  transition: {
154
152
  duration: w.duration
155
153
  }
156
154
  }
157
- }, initial: "initial", animate: L ? "whileInView" : "initial", exit: {
155
+ }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
158
156
  r: 0,
159
157
  transition: {
160
158
  duration: w.duration
@@ -162,19 +160,19 @@ function Fe(a) {
162
160
  }, style: {
163
161
  fillOpacity: 0.8
164
162
  } }),
165
- pt && e.label ? /* @__PURE__ */ o.jsx(Ht.text, { variants: {
163
+ pt && e.label ? /* @__PURE__ */ o.jsx(Yt.text, { variants: {
166
164
  initial: {
167
165
  opacity: 0,
168
- x: S ? S(e.radius || 0) : N
166
+ x: j ? j(e.radius || 0) : S
169
167
  },
170
168
  whileInView: {
171
169
  opacity: 1,
172
- x: S ? S(e.radius || 0) : N,
170
+ x: j ? j(e.radius || 0) : S,
173
171
  transition: {
174
172
  duration: w.duration
175
173
  }
176
174
  }
177
- }, initial: "initial", animate: L ? "whileInView" : "initial", exit: {
175
+ }, initial: "initial", animate: A ? "whileInView" : "initial", exit: {
178
176
  opacity: 0,
179
177
  transition: {
180
178
  duration: w.duration
@@ -184,54 +182,54 @@ function Fe(a) {
184
182
  }, dx: 4, dy: 5, children: e.label }) : null
185
183
  ] }, e.label || `${e.lat}-${e.long}`);
186
184
  }) }),
187
- V.filter((e) => e.position === "after").map((e) => e.layer)
185
+ T.filter((e) => e.position === "after").map((e) => e.layer)
188
186
  ] }) }),
189
- t.filter((e) => e.color).length === 0 || Et === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: le("absolute left-4 bottom-4 map-color-legend", J?.colorLegend), children: Lt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
187
+ t.filter((e) => e.color).length === 0 || Et === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: pe("absolute left-4 bottom-4 map-color-legend", J?.colorLegend), children: zt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
190
188
  /* @__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: () => {
191
- Dt(!1);
192
- }, children: /* @__PURE__ */ o.jsx(Se, {}) }),
189
+ jt(!1);
190
+ }, children: /* @__PURE__ */ o.jsx(Pe, {}) }),
193
191
  /* @__PURE__ */ o.jsxs("div", { className: "p-2", style: {
194
192
  backgroundColor: "rgba(240,240,240, 0.7)"
195
193
  }, children: [
196
- E && E !== "" ? /* @__PURE__ */ o.jsx("p", { className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
194
+ z && z !== "" ? /* @__PURE__ */ o.jsx("p", { className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
197
195
  display: "-webkit-box",
198
196
  WebkitLineClamp: "1",
199
197
  WebkitBoxOrient: "vertical"
200
- }, children: E }) : null,
198
+ }, children: z }) : null,
201
199
  /* @__PURE__ */ o.jsx("div", { className: "flex flex-col gap-3", children: b.map((e, h) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
202
- jt(r[h % r.length]);
200
+ Dt(r[h % r.length]);
203
201
  }, onMouseLeave: () => {
204
- jt(void 0);
202
+ Dt(void 0);
205
203
  }, children: [
206
204
  /* @__PURE__ */ o.jsx("div", { className: "w-2 h-2 rounded-full", style: {
207
205
  backgroundColor: r[h % r.length]
208
206
  } }),
209
- /* @__PURE__ */ o.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: e })
207
+ /* @__PURE__ */ o.jsx($e, { size: "sm", marginBottom: "none", leading: "none", children: e })
210
208
  ] }, h)) })
211
209
  ] })
212
210
  ] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start", onClick: () => {
213
- Dt(!0);
211
+ jt(!0);
214
212
  }, 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" }) }) }),
215
- C === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
213
+ N === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
216
214
  /* @__PURE__ */ o.jsx("button", { onClick: () => it("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: "+" }),
217
215
  /* @__PURE__ */ o.jsx("button", { onClick: () => it("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: "–" })
218
216
  ] })
219
217
  ] }),
220
- x && A !== void 0 ? /* @__PURE__ */ o.jsx(Me, { body: x, data: A, setData: et, className: J?.modal }) : null,
221
- ot && X && l && kt ? /* @__PURE__ */ o.jsx(Ne, { data: ot, body: X, xPos: l, yPos: kt, backgroundStyle: xt?.tooltip, className: J?.tooltip }) : null
218
+ x && G !== void 0 ? /* @__PURE__ */ o.jsx(Le, { body: x, data: G, setData: et, className: J?.modal }) : null,
219
+ ot && X && m && kt ? /* @__PURE__ */ o.jsx(Ee, { data: ot, body: X, xPos: m, yPos: kt, backgroundStyle: xt?.tooltip, className: J?.tooltip }) : null
222
220
  ] });
223
221
  }
224
- function So(a) {
225
- const t = ce.c(102), {
222
+ function Mo(a) {
223
+ const t = fe.c(117), {
226
224
  data: r,
227
225
  mapData: q,
228
- graphTitle: E,
226
+ graphTitle: z,
229
227
  colors: b,
230
- sources: N,
228
+ sources: S,
231
229
  graphDescription: f,
232
- height: c,
233
- width: u,
234
- footNote: P,
230
+ height: u,
231
+ width: p,
232
+ footNote: L,
235
233
  colorLegendTitle: X,
236
234
  colorDomain: pt,
237
235
  radius: ft,
@@ -240,162 +238,180 @@ function So(a) {
240
238
  padding: K,
241
239
  mapBorderWidth: Et,
242
240
  mapNoDataColor: Pt,
243
- backgroundColor: zt,
241
+ backgroundColor: _t,
244
242
  showLabels: gt,
245
243
  mapBorderColor: Z,
246
244
  tooltip: yt,
247
245
  relativeHeight: x,
248
246
  onSeriesMouseOver: xt,
249
247
  isWorldMap: J,
250
- showColorScale: W,
251
- zoomScaleExtend: C,
248
+ showColorScale: V,
249
+ zoomScaleExtend: N,
252
250
  zoomTranslateExtend: w,
253
251
  graphID: Q,
254
- highlightedDataPoints: V,
252
+ highlightedDataPoints: T,
255
253
  onSeriesMouseClick: vt,
256
254
  graphDownload: bt,
257
255
  dataDownload: wt,
258
- showAntarctica: jt,
259
- language: Lt,
260
- minHeight: Dt,
256
+ showAntarctica: Dt,
257
+ language: zt,
258
+ minHeight: jt,
261
259
  theme: tt,
262
- ariaLabel: A,
260
+ ariaLabel: G,
263
261
  resetSelectionOnDoubleClick: et,
264
262
  detailsOnClick: ot,
265
- styles: s,
266
- classNames: l,
267
- mapProjection: T,
263
+ styles: c,
264
+ classNames: m,
265
+ mapProjection: R,
268
266
  zoomInteraction: kt,
269
267
  animate: rt,
270
- dimmedOpacity: z,
271
- customLayers: L,
272
- maxRadiusValue: F,
273
- timeline: S,
274
- collapseColorScaleByDefault: _
275
- } = a, g = q === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : q, at = P === 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." : P, Ct = ft === void 0 ? 5 : ft, Nt = ht === void 0 ? 0.95 : ht, St = Et === void 0 ? 0.5 : Et, O = Pt === void 0 ? M.light.graphNoData : Pt, I = zt === void 0 ? !1 : zt, it = gt === void 0 ? !1 : gt, e = Z === void 0 ? M.light.grays["gray-500"] : Z, h = J === void 0 ? !0 : J, i = W === void 0 ? !0 : W;
268
+ dimmedOpacity: I,
269
+ customLayers: A,
270
+ maxRadiusValue: H,
271
+ timeline: j,
272
+ collapseColorScaleByDefault: B
273
+ } = a, g = q === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : q, at = L === 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." : L, Ct = ft === void 0 ? 5 : ft, Nt = ht === void 0 ? 0.95 : ht, St = Et === void 0 ? 0.5 : Et, O = Pt === void 0 ? _.light.graphNoData : Pt, W = _t === void 0 ? !1 : _t, it = gt === void 0 ? !1 : gt, e = Z === void 0 ? _.light.grays["gray-500"] : Z, h = J === void 0 ? !0 : J, i = V === void 0 ? !0 : V;
274
+ let k;
275
+ t[0] !== N ? (k = N === void 0 ? [0.8, 6] : N, t[0] = N, t[1] = k) : k = t[1];
276
+ const l = k;
276
277
  let D;
277
- t[0] !== C ? (D = C === void 0 ? [0.8, 6] : C, t[0] = C, t[1] = D) : D = t[1];
278
- const n = D;
279
- let j;
280
- t[2] !== V ? (j = V === void 0 ? [] : V, t[2] = V, t[3] = j) : j = t[3];
281
- const v = j, y = bt === void 0 ? !1 : bt, nt = wt === void 0 ? !1 : wt, B = jt === void 0 ? !1 : jt, qt = Lt === void 0 ? "en" : Lt, $ = Dt === void 0 ? 0 : Dt, st = tt === void 0 ? "light" : tt, Xt = et === void 0 ? !0 : et, Yt = kt === void 0 ? "button" : kt, _t = rt === void 0 ? !1 : rt, Kt = z === void 0 ? 0.3 : z;
278
+ t[2] !== T ? (D = T === void 0 ? [] : T, t[2] = T, t[3] = D) : D = t[3];
279
+ const v = D, y = bt === void 0 ? !1 : bt, nt = wt === void 0 ? !1 : wt, F = Dt === void 0 ? !1 : Dt, Zt = zt === void 0 ? "en" : zt, $ = jt === void 0 ? 0 : jt, lt = tt === void 0 ? "light" : tt, Jt = et === void 0 ? !0 : et, Qt = kt === void 0 ? "button" : kt, Lt = rt === void 0 ? !1 : rt, te = I === void 0 ? 0.3 : I;
282
280
  let It;
283
- t[4] !== L ? (It = L === void 0 ? [] : L, t[4] = L, t[5] = It) : It = t[5];
284
- const Zt = It, p = S === void 0 ? {
281
+ t[4] !== A ? (It = A === void 0 ? [] : A, t[4] = A, t[5] = It) : It = t[5];
282
+ const ee = It;
283
+ let At;
284
+ t[6] !== j ? (At = j === void 0 ? {
285
285
  enabled: !1,
286
286
  autoplay: !1,
287
287
  showOnlyActiveDate: !0
288
- } : S, [G, ie] = k(0), [Ot, ne] = k(0), [R, Jt] = k(p.autoplay), m = Ae(ae(r, "date", !0).map((d) => de(`${d}`, p.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), Qe), [H, $t] = k(p.autoplay ? 0 : m.length - 1), [lt, se] = k(void 0), Qt = Mt(null), re = Mt(null);
288
+ } : j, t[6] = j, t[7] = At) : At = t[7];
289
+ const n = At, [U, ce] = C(0), [Ot, de] = C(0), [M, me] = C(n.autoplay);
290
+ let $t;
291
+ if (t[8] !== r || t[9] !== n.dateFormat) {
292
+ let d;
293
+ t[11] !== n.dateFormat ? (d = (P) => ye(`${P.date}`, n.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[11] = n.dateFormat, t[12] = d) : d = t[12], $t = [...new Set(r.filter(ao).map(d))], $t.sort(ro), t[8] = r, t[9] = n.dateFormat, t[10] = $t;
294
+ } else
295
+ $t = t[10];
296
+ const s = $t, [E, oe] = C(n.autoplay ? 0 : s.length - 1), [st, ue] = C(void 0), re = Mt(null), se = Mt(null);
289
297
  let Bt, Wt;
290
- t[6] === Symbol.for("react.memo_cache_sentinel") ? (Bt = () => {
291
- const d = new ResizeObserver((U) => {
292
- ie(U[0].target.clientWidth || 620), ne(U[0].target.clientHeight || 480);
298
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (Bt = () => {
299
+ const d = new ResizeObserver((P) => {
300
+ ce(P[0].target.clientWidth || 620), de(P[0].target.clientHeight || 480);
293
301
  });
294
- return Qt.current && d.observe(Qt.current), () => d.disconnect();
295
- }, Wt = [], t[6] = Bt, t[7] = Wt) : (Bt = t[6], Wt = t[7]), Ut(Bt, Wt);
296
- let Vt;
297
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (Vt = (d) => {
298
- se(d);
299
- }, t[8] = Vt) : Vt = t[8];
300
- const At = me(Vt);
301
- let Tt;
302
- t[9] !== g || t[10] !== At ? (Tt = () => {
303
- typeof g == "string" ? Ie(g).then((U) => {
304
- At(U);
305
- }) : At(g);
306
- }, t[9] = g, t[10] = At, t[11] = Tt) : Tt = t[11];
302
+ return re.current && d.observe(re.current), () => d.disconnect();
303
+ }, Wt = [], t[13] = Bt, t[14] = Wt) : (Bt = t[13], Wt = t[14]), Kt(Bt, Wt);
307
304
  let Ft;
308
- t[12] !== g ? (Ft = [g], t[12] = g, t[13] = Ft) : Ft = t[13], Ut(Tt, Ft), Ut(() => {
305
+ t[15] === Symbol.for("react.memo_cache_sentinel") ? (Ft = (d) => {
306
+ ue(d);
307
+ }, t[15] = Ft) : Ft = t[15];
308
+ const Vt = he(Ft);
309
+ let Tt;
310
+ t[16] !== g || t[17] !== Vt ? (Tt = () => {
311
+ typeof g == "string" ? Ve(g).then((P) => {
312
+ Vt(P);
313
+ }) : Vt(g);
314
+ }, t[16] = g, t[17] = Vt, t[18] = Tt) : Tt = t[18];
315
+ let Gt;
316
+ t[19] !== g ? (Gt = [g], t[19] = g, t[20] = Gt) : Gt = t[20], Kt(Tt, Gt);
317
+ let Rt, Ht;
318
+ t[21] !== M || t[22] !== n.speed || t[23] !== s ? (Rt = () => {
309
319
  const d = setInterval(() => {
310
- $t((U) => U < m.length - 1 ? U + 1 : 0);
311
- }, (p.speed || 2) * 1e3);
312
- return R || clearInterval(d), () => clearInterval(d);
313
- }, [m, R, p.speed]);
314
- const Gt = pe(m, H, p.showOnlyActiveDate, p.dateFormat || "yyyy"), te = l?.graphContainer, ee = s?.graphContainer;
320
+ oe((P) => P < s.length - 1 ? P + 1 : 0);
321
+ }, (n.speed || 2) * 1e3);
322
+ return M || clearInterval(d), () => clearInterval(d);
323
+ }, Ht = [s, M, n.speed], t[21] = M, t[22] = n.speed, t[23] = s, t[24] = Rt, t[25] = Ht) : (Rt = t[24], Ht = t[25]), Kt(Rt, Ht);
324
+ const ae = n.dateFormat || "yyyy";
325
+ let Ut;
326
+ t[26] !== E || t[27] !== ae || t[28] !== n.showOnlyActiveDate || t[29] !== s ? (Ut = xe(s, E, n.showOnlyActiveDate, ae), t[26] = E, t[27] = ae, t[28] = n.showOnlyActiveDate, t[29] = s, t[30] = Ut) : Ut = t[30];
327
+ const qt = Ut, ie = m?.graphContainer, ne = c?.graphContainer;
315
328
  let ct;
316
- t[14] !== l?.description || t[15] !== l?.title || t[16] !== r || t[17] !== nt || t[18] !== f || t[19] !== y || t[20] !== E || t[21] !== s?.description || t[22] !== s?.title || t[23] !== u ? (ct = E || f || y || nt ? /* @__PURE__ */ o.jsx(_e, { styles: {
317
- title: s?.title,
318
- description: s?.description
329
+ t[31] !== m?.description || t[32] !== m?.title || t[33] !== r || t[34] !== nt || t[35] !== f || t[36] !== y || t[37] !== z || t[38] !== c?.description || t[39] !== c?.title || t[40] !== p ? (ct = z || f || y || nt ? /* @__PURE__ */ o.jsx(Fe, { styles: {
330
+ title: c?.title,
331
+ description: c?.description
319
332
  }, classNames: {
320
- title: l?.title,
321
- description: l?.description
322
- }, graphTitle: E, graphDescription: f, width: u, graphDownload: y ? re : void 0, dataDownload: nt ? r.map(Je).filter(Ze).length > 0 ? r.map(Ke).filter(Ye) : r.filter(Xe) : null }) : null, t[14] = l?.description, t[15] = l?.title, t[16] = r, t[17] = nt, t[18] = f, t[19] = y, t[20] = E, t[21] = s?.description, t[22] = s?.title, t[23] = u, t[24] = ct) : ct = t[24];
323
- let mt;
324
- t[25] !== H || t[26] !== Gt || t[27] !== R || t[28] !== $t || t[29] !== Jt || t[30] !== p.enabled || t[31] !== m ? (mt = p.enabled && m.length > 0 && Gt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
333
+ title: m?.title,
334
+ description: m?.description
335
+ }, graphTitle: z, graphDescription: f, width: p, graphDownload: y ? se : void 0, dataDownload: nt ? r.map(oo).filter(eo).length > 0 ? r.map(to).filter(Qe) : r.filter(Je) : null }) : null, t[31] = m?.description, t[32] = m?.title, t[33] = r, t[34] = nt, t[35] = f, t[36] = y, t[37] = z, t[38] = c?.description, t[39] = c?.title, t[40] = p, t[41] = ct) : ct = t[41];
336
+ let dt;
337
+ t[42] !== E || t[43] !== qt || t[44] !== M || t[45] !== n.enabled || t[46] !== s ? (dt = n.enabled && s.length > 0 && qt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
325
338
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
326
- Jt(!R);
327
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": R ? "Click to pause animation" : "Click to play animation", children: R ? /* @__PURE__ */ o.jsx(Oe, {}) : /* @__PURE__ */ o.jsx($e, {}) }),
328
- /* @__PURE__ */ o.jsx(fe, { min: m[0], max: m[m.length - 1], marks: Gt, step: null, defaultValue: m[m.length - 1], value: m[H], onChangeComplete: (d) => {
329
- $t(m.indexOf(d));
339
+ me(!M);
340
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": M ? "Click to pause animation" : "Click to play animation", children: M ? /* @__PURE__ */ o.jsx(_e, {}) : /* @__PURE__ */ o.jsx(ze, {}) }),
341
+ /* @__PURE__ */ o.jsx(ve, { min: s[0], max: s[s.length - 1], marks: qt, step: null, defaultValue: s[s.length - 1], value: s[E], onChangeComplete: (d) => {
342
+ oe(s.indexOf(d));
330
343
  }, onChange: (d) => {
331
- $t(m.indexOf(d));
344
+ oe(s.indexOf(d));
332
345
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
333
- ] }) : null, t[25] = H, t[26] = Gt, t[27] = R, t[28] = $t, t[29] = Jt, t[30] = p.enabled, t[31] = m, t[32] = mt) : mt = t[32];
334
- let dt;
335
- t[33] !== _t || t[34] !== Y || t[35] !== l || t[36] !== _ || t[37] !== pt || t[38] !== X || t[39] !== b || t[40] !== Zt || t[41] !== r || t[42] !== ot || t[43] !== Kt || t[44] !== c || t[45] !== v || t[46] !== H || t[47] !== h || t[48] !== e || t[49] !== St || t[50] !== O || t[51] !== T || t[52] !== lt || t[53] !== F || t[54] !== $ || t[55] !== vt || t[56] !== xt || t[57] !== Ct || t[58] !== x || t[59] !== Xt || t[60] !== Nt || t[61] !== B || t[62] !== i || t[63] !== it || t[64] !== s || t[65] !== Ot || t[66] !== G || t[67] !== st || t[68] !== p.dateFormat || t[69] !== p.enabled || t[70] !== yt || t[71] !== m || t[72] !== u || t[73] !== Yt || t[74] !== n || t[75] !== w ? (dt = /* @__PURE__ */ o.jsx(We, { ref: Qt, children: G && Ot && lt ? /* @__PURE__ */ o.jsx(Fe, { data: r.filter((d) => p.enabled ? d.date === ue(new Date(m[H]), p.dateFormat || "yyyy") : d), mapData: B ? lt : {
336
- ...lt,
337
- features: lt.features.filter(qe)
338
- }, colorDomain: r.filter(Ue).length === 0 ? [] : pt || ae(r, "color", !0), width: G, height: Ot, scale: Nt, centerPoint: Y, colors: r.filter(He).length === 0 ? b ? [b] : [M.primaryColors["blue-600"]] : b || M[st].categoricalColors.colors, colorLegendTitle: X, radius: Ct, mapBorderWidth: St, mapNoDataColor: O, mapBorderColor: e, tooltip: yt, onSeriesMouseOver: xt, showLabels: it, isWorldMap: h, showColorScale: i, zoomScaleExtend: n, zoomTranslateExtend: w, onSeriesMouseClick: vt, highlightedDataPoints: v, resetSelectionOnDoubleClick: Xt, styles: s, classNames: l, zoomInteraction: Yt, detailsOnClick: ot, mapProjection: T || (h ? "naturalEarth" : "mercator"), animate: _t === !0 ? {
346
+ ] }) : null, t[42] = E, t[43] = qt, t[44] = M, t[45] = n.enabled, t[46] = s, t[47] = dt) : dt = t[47];
347
+ let mt;
348
+ t[48] !== Lt || t[49] !== Y || t[50] !== m || t[51] !== B || t[52] !== pt || t[53] !== X || t[54] !== b || t[55] !== ee || t[56] !== r || t[57] !== ot || t[58] !== te || t[59] !== u || t[60] !== v || t[61] !== E || t[62] !== h || t[63] !== e || t[64] !== St || t[65] !== O || t[66] !== R || t[67] !== st || t[68] !== H || t[69] !== $ || t[70] !== vt || t[71] !== xt || t[72] !== Ct || t[73] !== x || t[74] !== Jt || t[75] !== Nt || t[76] !== F || t[77] !== i || t[78] !== it || t[79] !== c || t[80] !== Ot || t[81] !== U || t[82] !== lt || t[83] !== n.dateFormat || t[84] !== n.enabled || t[85] !== yt || t[86] !== s || t[87] !== p || t[88] !== Qt || t[89] !== l || t[90] !== w ? (mt = /* @__PURE__ */ o.jsx(Re, { ref: re, children: U && Ot && st ? /* @__PURE__ */ o.jsx(Ue, { data: r.filter((d) => n.enabled ? d.date === ge(new Date(s[E]), n.dateFormat || "yyyy") : d), mapData: F ? st : {
349
+ ...st,
350
+ features: st.features.filter(Ze)
351
+ }, colorDomain: r.filter(Ke).length === 0 ? [] : pt || Ge(r, "color", !0), width: U, height: Ot, scale: Nt, centerPoint: Y, colors: r.filter(Ye).length === 0 ? b ? [b] : [_.primaryColors["blue-600"]] : b || _[lt].categoricalColors.colors, colorLegendTitle: X, radius: Ct, mapBorderWidth: St, mapNoDataColor: O, mapBorderColor: e, tooltip: yt, onSeriesMouseOver: xt, showLabels: it, isWorldMap: h, showColorScale: i, zoomScaleExtend: l, zoomTranslateExtend: w, onSeriesMouseClick: vt, highlightedDataPoints: v, resetSelectionOnDoubleClick: Jt, styles: c, classNames: m, zoomInteraction: Qt, detailsOnClick: ot, mapProjection: R || (h ? "naturalEarth" : "mercator"), animate: Lt === !0 ? {
339
352
  duration: 0.5,
340
353
  once: !0,
341
354
  amount: 0.5
342
- } : _t || {
355
+ } : Lt || {
343
356
  duration: 0,
344
357
  once: !0,
345
358
  amount: 0
346
- }, dimmedOpacity: Kt, customLayers: Zt, maxRadiusValue: Be(F) ? Math.max(...r.map(Re).filter(Ge)) : F, collapseColorScaleByDefault: _ }) : /* @__PURE__ */ o.jsx("div", { style: {
347
- height: `${Math.max($, c || (x ? $ ? (u || G) * x > $ ? (u || G) * x : $ : (u || G) * x : Ot))}px`
348
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(he, { "aria-label": "Loading graph" }) }) }), t[33] = _t, t[34] = Y, t[35] = l, t[36] = _, t[37] = pt, t[38] = X, t[39] = b, t[40] = Zt, t[41] = r, t[42] = ot, t[43] = Kt, t[44] = c, t[45] = v, t[46] = H, t[47] = h, t[48] = e, t[49] = St, t[50] = O, t[51] = T, t[52] = lt, t[53] = F, t[54] = $, t[55] = vt, t[56] = xt, t[57] = Ct, t[58] = x, t[59] = Xt, t[60] = Nt, t[61] = B, t[62] = i, t[63] = it, t[64] = s, t[65] = Ot, t[66] = G, t[67] = st, t[68] = p.dateFormat, t[69] = p.enabled, t[70] = yt, t[71] = m, t[72] = u, t[73] = Yt, t[74] = n, t[75] = w, t[76] = dt) : dt = t[76];
359
+ }, dimmedOpacity: te, customLayers: ee, maxRadiusValue: Te(H) ? Math.max(...r.map(Xe).filter(qe)) : H, collapseColorScaleByDefault: B }) : /* @__PURE__ */ o.jsx("div", { style: {
360
+ height: `${Math.max($, u || (x ? $ ? (p || U) * x > $ ? (p || U) * x : $ : (p || U) * x : Ot))}px`
361
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(be, { "aria-label": "Loading graph" }) }) }), t[48] = Lt, t[49] = Y, t[50] = m, t[51] = B, t[52] = pt, t[53] = X, t[54] = b, t[55] = ee, t[56] = r, t[57] = ot, t[58] = te, t[59] = u, t[60] = v, t[61] = E, t[62] = h, t[63] = e, t[64] = St, t[65] = O, t[66] = R, t[67] = st, t[68] = H, t[69] = $, t[70] = vt, t[71] = xt, t[72] = Ct, t[73] = x, t[74] = Jt, t[75] = Nt, t[76] = F, t[77] = i, t[78] = it, t[79] = c, t[80] = Ot, t[81] = U, t[82] = lt, t[83] = n.dateFormat, t[84] = n.enabled, t[85] = yt, t[86] = s, t[87] = p, t[88] = Qt, t[89] = l, t[90] = w, t[91] = mt) : mt = t[91];
349
362
  let ut;
350
- t[77] !== l?.footnote || t[78] !== l?.source || t[79] !== at || t[80] !== N || t[81] !== s?.footnote || t[82] !== s?.source || t[83] !== u ? (ut = N || at ? /* @__PURE__ */ o.jsx(Le, { styles: {
351
- footnote: s?.footnote,
352
- source: s?.source
363
+ t[92] !== m?.footnote || t[93] !== m?.source || t[94] !== at || t[95] !== S || t[96] !== c?.footnote || t[97] !== c?.source || t[98] !== p ? (ut = S || at ? /* @__PURE__ */ o.jsx(We, { styles: {
364
+ footnote: c?.footnote,
365
+ source: c?.source
353
366
  }, classNames: {
354
- footnote: l?.footnote,
355
- source: l?.source
356
- }, sources: N, footNote: at, width: u }) : null, t[77] = l?.footnote, t[78] = l?.source, t[79] = at, t[80] = N, t[81] = s?.footnote, t[82] = s?.source, t[83] = u, t[84] = ut) : ut = t[84];
357
- let Rt;
358
- return t[85] !== A || t[86] !== I || t[87] !== Q || t[88] !== c || t[89] !== qt || t[90] !== $ || t[91] !== K || t[92] !== x || t[93] !== te || t[94] !== ee || t[95] !== ct || t[96] !== mt || t[97] !== dt || t[98] !== ut || t[99] !== st || t[100] !== u ? (Rt = /* @__PURE__ */ o.jsxs(Ve, { className: te, style: ee, id: Q, ref: re, "aria-label": A, backgroundColor: I, theme: st, language: qt, minHeight: $, width: u, height: c, relativeHeight: x, padding: K, children: [
367
+ footnote: m?.footnote,
368
+ source: m?.source
369
+ }, sources: S, footNote: at, width: p }) : null, t[92] = m?.footnote, t[93] = m?.source, t[94] = at, t[95] = S, t[96] = c?.footnote, t[97] = c?.source, t[98] = p, t[99] = ut) : ut = t[99];
370
+ let Xt;
371
+ return t[100] !== G || t[101] !== W || t[102] !== Q || t[103] !== u || t[104] !== Zt || t[105] !== $ || t[106] !== K || t[107] !== x || t[108] !== ie || t[109] !== ne || t[110] !== ct || t[111] !== dt || t[112] !== mt || t[113] !== ut || t[114] !== lt || t[115] !== p ? (Xt = /* @__PURE__ */ o.jsxs(He, { className: ie, style: ne, id: Q, ref: se, "aria-label": G, backgroundColor: W, theme: lt, language: Zt, minHeight: $, width: p, height: u, relativeHeight: x, padding: K, children: [
359
372
  ct,
360
- mt,
361
373
  dt,
374
+ mt,
362
375
  ut
363
- ] }), t[85] = A, t[86] = I, t[87] = Q, t[88] = c, t[89] = qt, t[90] = $, t[91] = K, t[92] = x, t[93] = te, t[94] = ee, t[95] = ct, t[96] = mt, t[97] = dt, t[98] = ut, t[99] = st, t[100] = u, t[101] = Rt) : Rt = t[101], Rt;
376
+ ] }), t[100] = G, t[101] = W, t[102] = Q, t[103] = u, t[104] = Zt, t[105] = $, t[106] = K, t[107] = x, t[108] = ie, t[109] = ne, t[110] = ct, t[111] = dt, t[112] = mt, t[113] = ut, t[114] = lt, t[115] = p, t[116] = Xt) : Xt = t[116], Xt;
364
377
  }
365
- function Ge(a) {
378
+ function qe(a) {
366
379
  return a != null;
367
380
  }
368
- function Re(a) {
381
+ function Xe(a) {
369
382
  return a.radius;
370
383
  }
371
- function He(a) {
384
+ function Ye(a) {
372
385
  return a.color;
373
386
  }
374
- function Ue(a) {
387
+ function Ke(a) {
375
388
  return a.color;
376
389
  }
377
- function qe(a) {
390
+ function Ze(a) {
378
391
  return a.properties.NAME !== "Antarctica";
379
392
  }
380
- function Xe(a) {
393
+ function Je(a) {
381
394
  return a !== void 0;
382
395
  }
383
- function Ye(a) {
396
+ function Qe(a) {
384
397
  return a !== void 0;
385
398
  }
386
- function Ke(a) {
399
+ function to(a) {
387
400
  return a.data;
388
401
  }
389
- function Ze(a) {
402
+ function eo(a) {
390
403
  return a !== void 0;
391
404
  }
392
- function Je(a) {
405
+ function oo(a) {
393
406
  return a.data;
394
407
  }
395
- function Qe(a, t) {
396
- return Te(a, t);
408
+ function ro(a, t) {
409
+ return a - t;
410
+ }
411
+ function ao(a) {
412
+ return a.date;
397
413
  }
398
414
  export {
399
- So as DotDensityMap
415
+ Mo as DotDensityMap
400
416
  };
401
417
  //# sourceMappingURL=DotDensityMap.js.map