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