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