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