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