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