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