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