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