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