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