@undp/data-viz 1.5.2 → 1.5.3
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.cjs.map +1 -1
- package/dist/AreaChart.js +3 -2
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +1196 -1224
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.js +130 -142
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +41 -41
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +483 -487
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +99 -99
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +125 -125
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/DataCards.cjs +2 -2
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +6 -6
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.js +66 -68
- package/dist/DataTable.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +3 -2
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.js +205 -205
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +78 -81
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +3 -2
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +64 -65
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/{GraphEl-4RUlclvW.cjs → GraphEl-BcYgMnN2.cjs} +2 -2
- package/dist/{GraphEl-4RUlclvW.cjs.map → GraphEl-BcYgMnN2.cjs.map} +1 -1
- package/dist/{GraphEl-ClIxlWa3.js → GraphEl-CMWeARJ3.js} +2 -2
- package/dist/{GraphEl-ClIxlWa3.js.map → GraphEl-CMWeARJ3.js.map} +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.js +4 -4
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.js +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.js +83 -83
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +7 -6
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.js +2 -2
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +82 -91
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +3 -2
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +2 -2
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +124 -130
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +200 -200
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +149 -155
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +44 -43
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.js +4 -4
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +3 -3
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +107 -113
- package/dist/SlopeChart.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.cjs.map +1 -1
- package/dist/SparkLine.js +3 -2
- package/dist/SparkLine.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +159 -159
- 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 +194 -200
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/ensureCompleteData-DkQYPeDa.cjs +2 -0
- package/dist/ensureCompleteData-DkQYPeDa.cjs.map +1 -0
- package/dist/{ensureCompleteData-BALdOrsS.js → ensureCompleteData-DlmibgaI.js} +28 -8
- package/dist/ensureCompleteData-DlmibgaI.js.map +1 -0
- package/dist/fetchAndParseData-Ba-_CgxS.cjs +16 -0
- package/dist/fetchAndParseData-Ba-_CgxS.cjs.map +1 -0
- package/dist/fetchAndParseData-sapWbnYk.js +583 -0
- package/dist/fetchAndParseData-sapWbnYk.js.map +1 -0
- package/dist/fetchAndParseData.cjs +1 -1
- package/dist/fetchAndParseData.js +1 -1
- package/dist/getJenks-BbngDoBQ.js +19 -0
- package/dist/getJenks-BbngDoBQ.js.map +1 -0
- package/dist/getJenks-GYmdwBqm.cjs +2 -0
- package/dist/getJenks-GYmdwBqm.cjs.map +1 -0
- package/dist/getSliderMarks-9cNoRkDx.js +1023 -0
- package/dist/getSliderMarks-9cNoRkDx.js.map +1 -0
- package/dist/getSliderMarks-CRIbTGYV.cjs +6 -0
- package/dist/getSliderMarks-CRIbTGYV.cjs.map +1 -0
- package/dist/getUniqValue-DiCh_MOD.js +13 -0
- package/dist/getUniqValue-DiCh_MOD.js.map +1 -0
- package/dist/getUniqValue-RViz8tTw.cjs +2 -0
- package/dist/getUniqValue-RViz8tTw.cjs.map +1 -0
- package/dist/{index-BMgDMxKJ.js → index-37q0ULNQ.js} +44 -50
- package/dist/index-37q0ULNQ.js.map +1 -0
- package/dist/index-CVlCtJbC.cjs +2 -0
- package/dist/index-CVlCtJbC.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/sort-DfK1b0F5.js +34 -0
- package/dist/sort-DfK1b0F5.js.map +1 -0
- package/dist/sort-O96oMZLb.cjs +2 -0
- package/dist/sort-O96oMZLb.cjs.map +1 -0
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.js +3 -3
- package/dist/transformDataForAggregation-KXGm6flX.cjs +2 -0
- package/dist/{transformDataForAggregation-BVxVu4yY.cjs.map → transformDataForAggregation-KXGm6flX.cjs.map} +1 -1
- package/dist/{transformDataForAggregation-1BYVFqvF.js → transformDataForAggregation-sBpdlX8n.js} +40 -44
- package/dist/{transformDataForAggregation-1BYVFqvF.js.map → transformDataForAggregation-sBpdlX8n.js.map} +1 -1
- package/dist/{transformDataForGraphFromFile-BC9Ha8hF.js → transformDataForGraphFromFile-ComYvzuz.js} +3 -3
- package/dist/{transformDataForGraphFromFile-BC9Ha8hF.js.map → transformDataForGraphFromFile-ComYvzuz.js.map} +1 -1
- package/dist/{transformDataForGraphFromFile-b41aNQYY.cjs → transformDataForGraphFromFile-DVZodTHd.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-b41aNQYY.cjs.map → transformDataForGraphFromFile-DVZodTHd.cjs.map} +1 -1
- package/dist/uniqBy-BHy4I8PK.js +8 -0
- package/dist/uniqBy-BHy4I8PK.js.map +1 -0
- package/dist/uniqBy-O05lp2S5.cjs +2 -0
- package/dist/uniqBy-O05lp2S5.cjs.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -7
- package/dist/ensureCompleteData-BALdOrsS.js.map +0 -1
- package/dist/ensureCompleteData-BU5Zlccy.cjs +0 -2
- package/dist/ensureCompleteData-BU5Zlccy.cjs.map +0 -1
- package/dist/fetchAndParseData-DBOl1Icl.js +0 -1196
- package/dist/fetchAndParseData-DBOl1Icl.js.map +0 -1
- package/dist/fetchAndParseData-Dcy7AS_0.cjs +0 -16
- package/dist/fetchAndParseData-Dcy7AS_0.cjs.map +0 -1
- package/dist/getJenks-DW96UYNE.js +0 -23
- package/dist/getJenks-DW96UYNE.js.map +0 -1
- package/dist/getJenks-vofIZmeb.cjs +0 -2
- package/dist/getJenks-vofIZmeb.cjs.map +0 -1
- package/dist/getSliderMarks-C0jptXeP.js +0 -1054
- package/dist/getSliderMarks-C0jptXeP.js.map +0 -1
- package/dist/getSliderMarks-CtsEXiLV.cjs +0 -6
- package/dist/getSliderMarks-CtsEXiLV.cjs.map +0 -1
- package/dist/getUniqValue-CfuE_l9c.cjs +0 -2
- package/dist/getUniqValue-CfuE_l9c.cjs.map +0 -1
- package/dist/getUniqValue-CttuU_wn.js +0 -20
- package/dist/getUniqValue-CttuU_wn.js.map +0 -1
- package/dist/index-AqnpA7_O.js +0 -631
- package/dist/index-AqnpA7_O.js.map +0 -1
- package/dist/index-BJOeaYTk.cjs +0 -2
- package/dist/index-BJOeaYTk.cjs.map +0 -1
- package/dist/index-BMgDMxKJ.js.map +0 -1
- package/dist/index-DYH8g9WA.cjs +0 -2
- package/dist/index-DYH8g9WA.cjs.map +0 -1
- package/dist/index-Da2GUKrr.cjs +0 -2
- package/dist/index-Da2GUKrr.cjs.map +0 -1
- package/dist/index-fwdktvAS.js +0 -707
- package/dist/index-fwdktvAS.js.map +0 -1
- package/dist/transformDataForAggregation-BVxVu4yY.cjs +0 -2
package/dist/ChoroplethMap.js
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e, m as je } from "./index-CHPV5EwG-BPSP-7Jg.js";
|
|
2
2
|
import { useState as b, useRef as ae, useEffect as pe } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { y as
|
|
5
|
-
import { p as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { X as Be } from "./Modal-DVVwpKhP.js";
|
|
3
|
+
import { g as we, x as $e } from "./getSliderMarks-9cNoRkDx.js";
|
|
4
|
+
import { y as Ne } from "./Spinner-C85UF28E.js";
|
|
5
|
+
import { p as Ce, f as Me } from "./parse-DlCRUFh_.js";
|
|
6
|
+
import { i as De } from "./index-Bwrro8-q.js";
|
|
7
|
+
import { z as Se, t as Oe, g as Ee, a as Pe, b as Ie, c as Le, d as ze } from "./zoom-DAu91HKr.js";
|
|
8
|
+
import { X as We } from "./Modal-DVVwpKhP.js";
|
|
10
9
|
import { u as ke } from "./Typography-Ctgfl1J5.js";
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { T as
|
|
14
|
-
import { s as
|
|
15
|
-
import { c as
|
|
16
|
-
import { X as
|
|
17
|
-
import { o as
|
|
18
|
-
import { t as
|
|
10
|
+
import { t as Te } from "./index-qfWCwobm.js";
|
|
11
|
+
import { n as Be } from "./numberFormattingFunction-14YCbkN2.js";
|
|
12
|
+
import { T as Ae } from "./Tooltip-CVCGWyzw.js";
|
|
13
|
+
import { s as Ve } from "./string2HTML-oFCROsus.js";
|
|
14
|
+
import { c as Fe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
15
|
+
import { X as He, P as qe, f as Xe } from "./index-BmCqpO1B.js";
|
|
16
|
+
import { o as _e } from "./ordinal-w9Lu4Stb.js";
|
|
17
|
+
import { t as Ue } from "./threshold-DFfqcDMa.js";
|
|
19
18
|
import { s as be } from "./select-DKy99ogv.js";
|
|
20
|
-
import { u as
|
|
19
|
+
import { u as Ge } from "./use-in-view-yS6jzJAp.js";
|
|
21
20
|
import { m as de } from "./proxy-CkpFesk1.js";
|
|
22
|
-
import { A as
|
|
23
|
-
import { GraphFooter as
|
|
24
|
-
import { GraphHeader as
|
|
21
|
+
import { A as Re } from "./index-CNvov0eg.js";
|
|
22
|
+
import { GraphFooter as Ye } from "./GraphFooter.js";
|
|
23
|
+
import { GraphHeader as Je } from "./GraphHeader.js";
|
|
25
24
|
import { Colors as me } from "./Colors.js";
|
|
26
|
-
import { f as
|
|
27
|
-
import { g as
|
|
28
|
-
import { g as
|
|
25
|
+
import { f as Ke } from "./fetchAndParseData-sapWbnYk.js";
|
|
26
|
+
import { g as Ze } from "./getUniqValue-DiCh_MOD.js";
|
|
27
|
+
import { g as Qe } from "./getJenks-BbngDoBQ.js";
|
|
28
|
+
import { u as et } from "./uniqBy-BHy4I8PK.js";
|
|
29
|
+
import { s as tt } from "./sort-DfK1b0F5.js";
|
|
29
30
|
import { c as rt } from "./init-BhZylTFx.js";
|
|
30
31
|
function at(he) {
|
|
31
32
|
const {
|
|
@@ -59,17 +60,17 @@ function at(he) {
|
|
|
59
60
|
animate: j,
|
|
60
61
|
dimmedOpacity: _,
|
|
61
62
|
customLayers: ne
|
|
62
|
-
} = he, [w, M] = b(void 0), J = ae(null), [K, v] = b(!(s < 680)), [D, Z] = b(void 0), [U, Q] = b(void 0), [S, $] = b(void 0), [se, ee] = b(void 0), L = ae(null), te =
|
|
63
|
+
} = he, [w, M] = b(void 0), J = ae(null), [K, v] = b(!(s < 680)), [D, Z] = b(void 0), [U, Q] = b(void 0), [S, $] = b(void 0), [se, ee] = b(void 0), L = ae(null), te = Ge(L, {
|
|
63
64
|
once: j.once,
|
|
64
65
|
amount: j.amount
|
|
65
|
-
}), le = ae(null), y = E ?
|
|
66
|
+
}), le = ae(null), y = E ? _e().domain(g).range(c) : Ue().domain(g).range(c);
|
|
66
67
|
pe(() => {
|
|
67
68
|
const r = be(le.current), l = be(L.current), m = (o) => {
|
|
68
69
|
if (B === "noZoom") return !1;
|
|
69
70
|
if (B === "button") return !o.type.includes("wheel");
|
|
70
|
-
const n = o.type === "wheel",
|
|
71
|
-
return
|
|
72
|
-
}, i =
|
|
71
|
+
const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
|
|
72
|
+
return t ? !0 : n ? B === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
|
|
73
|
+
}, i = Se().scaleExtent(ue).translateExtent(
|
|
73
74
|
I || [
|
|
74
75
|
[-20, -20],
|
|
75
76
|
[s + 20, h + 20]
|
|
@@ -79,13 +80,13 @@ function at(he) {
|
|
|
79
80
|
});
|
|
80
81
|
l.call(i), J.current = i;
|
|
81
82
|
}, [h, s, B]);
|
|
82
|
-
const u =
|
|
83
|
+
const u = Oe(x), z = Te(x), re = u[2] - u[0], ce = u[3] - u[1], A = s * 190 / 960 * 360 / re, ve = h * 190 / 678 * 180 / ce, d = oe * Math.min(A, ve), N = X === "mercator" ? Ee().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "equalEarth" ? Pe().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "naturalEarth" ? Ie().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "orthographic" ? Le().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : ze().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d), G = (r) => {
|
|
83
84
|
if (!L.current || !J.current) return;
|
|
84
85
|
be(L.current).call(J.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
|
|
85
86
|
};
|
|
86
|
-
return /* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
88
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
89
|
+
/* @__PURE__ */ e.jsx(
|
|
89
90
|
de.svg,
|
|
90
91
|
{
|
|
91
92
|
width: `${s}px`,
|
|
@@ -93,10 +94,10 @@ function at(he) {
|
|
|
93
94
|
viewBox: `0 0 ${s} ${h}`,
|
|
94
95
|
ref: L,
|
|
95
96
|
direction: "ltr",
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ e.jsxs("g", { ref: le, children: [
|
|
97
98
|
ne.filter((r) => r.position === "before").map((r) => r.layer),
|
|
98
99
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
99
|
-
x.features.map((r, l) => k.findIndex((i) => i.id === r.properties[q]) !== -1 ? null : /* @__PURE__ */
|
|
100
|
+
x.features.map((r, l) => k.findIndex((i) => i.id === r.properties[q]) !== -1 ? null : /* @__PURE__ */ e.jsx(
|
|
100
101
|
"g",
|
|
101
102
|
{
|
|
102
103
|
opacity: w ? _ : H.length !== 0 ? H.indexOf(r.properties[q]) !== -1 ? 1 : _ : 1,
|
|
@@ -104,13 +105,13 @@ function at(he) {
|
|
|
104
105
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
106
|
r.geometry.coordinates.map((i, o) => {
|
|
106
107
|
let n = "";
|
|
107
|
-
return i.forEach((
|
|
108
|
+
return i.forEach((t) => {
|
|
108
109
|
let a = " M";
|
|
109
|
-
|
|
110
|
+
t.forEach((p, W) => {
|
|
110
111
|
const O = N([p[0], p[1]]);
|
|
111
|
-
W !==
|
|
112
|
+
W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
|
|
112
113
|
}), n += a;
|
|
113
|
-
}), /* @__PURE__ */
|
|
114
|
+
}), /* @__PURE__ */ e.jsx(
|
|
114
115
|
"path",
|
|
115
116
|
{
|
|
116
117
|
d: n,
|
|
@@ -127,10 +128,10 @@ function at(he) {
|
|
|
127
128
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
129
|
r.geometry.coordinates.map((i, o) => {
|
|
129
130
|
let n = "M";
|
|
130
|
-
return i.forEach((
|
|
131
|
-
const p = N([
|
|
131
|
+
return i.forEach((t, a) => {
|
|
132
|
+
const p = N([t[0], t[1]]);
|
|
132
133
|
a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
|
|
133
|
-
}), /* @__PURE__ */
|
|
134
|
+
}), /* @__PURE__ */ e.jsx(
|
|
134
135
|
"path",
|
|
135
136
|
{
|
|
136
137
|
d: n,
|
|
@@ -147,15 +148,15 @@ function at(he) {
|
|
|
147
148
|
},
|
|
148
149
|
l
|
|
149
150
|
)),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ e.jsx(Re, { children: k.map((r) => {
|
|
151
152
|
const l = x.features.findIndex(
|
|
152
153
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
153
154
|
(i) => r.id === i.properties[q]
|
|
154
|
-
), m =
|
|
155
|
+
), m = Fe(r.x) ? R : (
|
|
155
156
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
156
157
|
y(r.x)
|
|
157
158
|
);
|
|
158
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ e.jsx(
|
|
159
160
|
de.g,
|
|
160
161
|
{
|
|
161
162
|
variants: {
|
|
@@ -178,19 +179,19 @@ function at(he) {
|
|
|
178
179
|
Q(void 0), $(void 0), ee(void 0), Y?.(void 0);
|
|
179
180
|
},
|
|
180
181
|
onClick: () => {
|
|
181
|
-
(f || C) && (
|
|
182
|
+
(f || C) && (De(D, r) && fe ? (Z(void 0), f?.(void 0)) : (Z(r), f?.(r)));
|
|
182
183
|
},
|
|
183
184
|
children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
|
|
184
185
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
185
186
|
(i, o) => {
|
|
186
187
|
let n = "";
|
|
187
|
-
return i.forEach((
|
|
188
|
+
return i.forEach((t) => {
|
|
188
189
|
let a = " M";
|
|
189
|
-
|
|
190
|
+
t.forEach((p, W) => {
|
|
190
191
|
const O = N([p[0], p[1]]);
|
|
191
|
-
W !==
|
|
192
|
+
W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
|
|
192
193
|
}), n += a;
|
|
193
|
-
}), /* @__PURE__ */
|
|
194
|
+
}), /* @__PURE__ */ e.jsx(
|
|
194
195
|
de.path,
|
|
195
196
|
{
|
|
196
197
|
d: n,
|
|
@@ -217,10 +218,10 @@ function at(he) {
|
|
|
217
218
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
218
219
|
(i, o) => {
|
|
219
220
|
let n = "M";
|
|
220
|
-
return i.forEach((
|
|
221
|
-
const p = N([
|
|
221
|
+
return i.forEach((t, a) => {
|
|
222
|
+
const p = N([t[0], t[1]]);
|
|
222
223
|
a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
|
|
223
|
-
}), /* @__PURE__ */
|
|
224
|
+
}), /* @__PURE__ */ e.jsx(
|
|
224
225
|
de.path,
|
|
225
226
|
{
|
|
226
227
|
d: n,
|
|
@@ -251,17 +252,17 @@ function at(he) {
|
|
|
251
252
|
U ? x.features.filter(
|
|
252
253
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
253
254
|
(r) => r.properties[q] === U.id
|
|
254
|
-
).map((r, l) => /* @__PURE__ */
|
|
255
|
+
).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
|
|
255
256
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
256
257
|
r.geometry.coordinates.map((m, i) => {
|
|
257
258
|
let o = "";
|
|
258
259
|
return m.forEach((n) => {
|
|
259
|
-
let
|
|
260
|
+
let t = " M";
|
|
260
261
|
n.forEach((a, p) => {
|
|
261
262
|
const W = N([a[0], a[1]]);
|
|
262
|
-
p !== n.length - 1 ?
|
|
263
|
-
}), o +=
|
|
264
|
-
}), /* @__PURE__ */
|
|
263
|
+
p !== n.length - 1 ? t = `${t}${W[0]} ${W[1]}L` : t = `${t}${W[0]} ${W[1]}`;
|
|
264
|
+
}), o += t;
|
|
265
|
+
}), /* @__PURE__ */ e.jsx(
|
|
265
266
|
"path",
|
|
266
267
|
{
|
|
267
268
|
d: o,
|
|
@@ -279,10 +280,10 @@ function at(he) {
|
|
|
279
280
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
280
281
|
r.geometry.coordinates.map((m, i) => {
|
|
281
282
|
let o = "M";
|
|
282
|
-
return m.forEach((n,
|
|
283
|
+
return m.forEach((n, t) => {
|
|
283
284
|
const a = N([n[0], n[1]]);
|
|
284
|
-
|
|
285
|
-
}), /* @__PURE__ */
|
|
285
|
+
t !== m.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
|
|
286
|
+
}), /* @__PURE__ */ e.jsx(
|
|
286
287
|
"path",
|
|
287
288
|
{
|
|
288
289
|
d: o,
|
|
@@ -301,8 +302,8 @@ function at(he) {
|
|
|
301
302
|
] })
|
|
302
303
|
}
|
|
303
304
|
),
|
|
304
|
-
ge === !1 ? null : /* @__PURE__ */
|
|
305
|
-
/* @__PURE__ */
|
|
305
|
+
ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4", children: K ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
306
|
+
/* @__PURE__ */ e.jsx(
|
|
306
307
|
"div",
|
|
307
308
|
{
|
|
308
309
|
style: {
|
|
@@ -321,10 +322,10 @@ function at(he) {
|
|
|
321
322
|
onClick: () => {
|
|
322
323
|
v(!1);
|
|
323
324
|
},
|
|
324
|
-
children: /* @__PURE__ */
|
|
325
|
+
children: /* @__PURE__ */ e.jsx(He, {})
|
|
325
326
|
}
|
|
326
327
|
),
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ e.jsxs(
|
|
328
329
|
"div",
|
|
329
330
|
{
|
|
330
331
|
className: "p-2",
|
|
@@ -333,7 +334,7 @@ function at(he) {
|
|
|
333
334
|
width: E ? void 0 : "340px"
|
|
334
335
|
},
|
|
335
336
|
children: [
|
|
336
|
-
V && V !== "" ? /* @__PURE__ */
|
|
337
|
+
V && V !== "" ? /* @__PURE__ */ e.jsx(
|
|
337
338
|
ke,
|
|
338
339
|
{
|
|
339
340
|
size: "xs",
|
|
@@ -347,7 +348,7 @@ function at(he) {
|
|
|
347
348
|
children: V
|
|
348
349
|
}
|
|
349
350
|
) : null,
|
|
350
|
-
E ? /* @__PURE__ */
|
|
351
|
+
E ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
|
|
351
352
|
"div",
|
|
352
353
|
{
|
|
353
354
|
className: "flex gap-2 items-center",
|
|
@@ -358,19 +359,19 @@ function at(he) {
|
|
|
358
359
|
M(void 0);
|
|
359
360
|
},
|
|
360
361
|
children: [
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ e.jsx(
|
|
362
363
|
"div",
|
|
363
364
|
{
|
|
364
365
|
className: "w-2 h-2 rounded-full",
|
|
365
366
|
style: { backgroundColor: c[l % c.length] }
|
|
366
367
|
}
|
|
367
368
|
),
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ e.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: r })
|
|
369
370
|
]
|
|
370
371
|
},
|
|
371
372
|
l
|
|
372
|
-
)) }) : /* @__PURE__ */
|
|
373
|
-
g.map((r, l) => /* @__PURE__ */
|
|
373
|
+
)) }) : /* @__PURE__ */ e.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ e.jsxs("g", { children: [
|
|
374
|
+
g.map((r, l) => /* @__PURE__ */ e.jsxs(
|
|
374
375
|
"g",
|
|
375
376
|
{
|
|
376
377
|
onMouseOver: () => {
|
|
@@ -381,7 +382,7 @@ function at(he) {
|
|
|
381
382
|
},
|
|
382
383
|
className: "cursor-pointer",
|
|
383
384
|
children: [
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ e.jsx(
|
|
385
386
|
"rect",
|
|
386
387
|
{
|
|
387
388
|
x: l * 320 / c.length + 1,
|
|
@@ -395,21 +396,21 @@ function at(he) {
|
|
|
395
396
|
}
|
|
396
397
|
}
|
|
397
398
|
),
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
+
/* @__PURE__ */ e.jsx(
|
|
399
400
|
"text",
|
|
400
401
|
{
|
|
401
402
|
x: (l + 1) * 320 / c.length,
|
|
402
403
|
y: 25,
|
|
403
404
|
className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
|
|
404
405
|
style: { textAnchor: "middle" },
|
|
405
|
-
children:
|
|
406
|
+
children: Be(r, "NA")
|
|
406
407
|
}
|
|
407
408
|
)
|
|
408
409
|
]
|
|
409
410
|
},
|
|
410
411
|
l
|
|
411
412
|
)),
|
|
412
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx(
|
|
413
414
|
"rect",
|
|
414
415
|
{
|
|
415
416
|
onMouseOver: () => {
|
|
@@ -433,7 +434,7 @@ function at(he) {
|
|
|
433
434
|
]
|
|
434
435
|
}
|
|
435
436
|
)
|
|
436
|
-
] }) : /* @__PURE__ */
|
|
437
|
+
] }) : /* @__PURE__ */ e.jsx(
|
|
437
438
|
"button",
|
|
438
439
|
{
|
|
439
440
|
type: "button",
|
|
@@ -441,11 +442,11 @@ function at(he) {
|
|
|
441
442
|
onClick: () => {
|
|
442
443
|
v(!0);
|
|
443
444
|
},
|
|
444
|
-
children: /* @__PURE__ */
|
|
445
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "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-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
|
|
445
446
|
}
|
|
446
447
|
) }),
|
|
447
|
-
B === "button" && /* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */
|
|
448
|
+
B === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
|
|
449
|
+
/* @__PURE__ */ e.jsx(
|
|
449
450
|
"button",
|
|
450
451
|
{
|
|
451
452
|
onClick: () => G("in"),
|
|
@@ -453,7 +454,7 @@ function at(he) {
|
|
|
453
454
|
children: "+"
|
|
454
455
|
}
|
|
455
456
|
),
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ e.jsx(
|
|
457
458
|
"button",
|
|
458
459
|
{
|
|
459
460
|
onClick: () => G("out"),
|
|
@@ -463,25 +464,25 @@ function at(he) {
|
|
|
463
464
|
)
|
|
464
465
|
] })
|
|
465
466
|
] }),
|
|
466
|
-
C && D !== void 0 ? /* @__PURE__ */
|
|
467
|
-
|
|
467
|
+
C && D !== void 0 ? /* @__PURE__ */ e.jsx(
|
|
468
|
+
We,
|
|
468
469
|
{
|
|
469
470
|
open: D !== void 0,
|
|
470
471
|
onClose: () => {
|
|
471
472
|
Z(void 0);
|
|
472
473
|
},
|
|
473
|
-
children: /* @__PURE__ */
|
|
474
|
+
children: /* @__PURE__ */ e.jsx(
|
|
474
475
|
"div",
|
|
475
476
|
{
|
|
476
477
|
className: "graph-modal-content m-0",
|
|
477
|
-
dangerouslySetInnerHTML: typeof C == "string" ? { __html:
|
|
478
|
+
dangerouslySetInnerHTML: typeof C == "string" ? { __html: Ve(C, D) } : void 0,
|
|
478
479
|
children: typeof C == "function" ? C(D) : null
|
|
479
480
|
}
|
|
480
481
|
)
|
|
481
482
|
}
|
|
482
483
|
) : null,
|
|
483
|
-
U && ie && S && se ? /* @__PURE__ */
|
|
484
|
-
|
|
484
|
+
U && ie && S && se ? /* @__PURE__ */ e.jsx(
|
|
485
|
+
Ae,
|
|
485
486
|
{
|
|
486
487
|
data: U,
|
|
487
488
|
body: ie,
|
|
@@ -493,7 +494,7 @@ function at(he) {
|
|
|
493
494
|
) : null
|
|
494
495
|
] });
|
|
495
496
|
}
|
|
496
|
-
function
|
|
497
|
+
function Lt(he) {
|
|
497
498
|
const {
|
|
498
499
|
data: k,
|
|
499
500
|
mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
|
|
@@ -542,48 +543,47 @@ function It(he) {
|
|
|
542
543
|
dimmedOpacity: te = 0.3,
|
|
543
544
|
customLayers: le = [],
|
|
544
545
|
timeline: y = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 }
|
|
545
|
-
} = he, [u, z] = b(0), [re, ce] = b(0), [A, ve] = b(y.autoplay), d =
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
(e, a) => rt(e, a)
|
|
546
|
+
} = he, [u, z] = b(0), [re, ce] = b(0), [A, ve] = b(y.autoplay), d = tt(
|
|
547
|
+
et(k, "date", !0).map(
|
|
548
|
+
(t) => Ce(`${t}`, y.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
|
|
549
|
+
),
|
|
550
|
+
(t, a) => rt(t, a)
|
|
551
551
|
), [N, G] = b(y.autoplay ? 0 : d.length - 1), [r, l] = b(void 0), m = ae(null), i = ae(null);
|
|
552
552
|
pe(() => {
|
|
553
|
-
const
|
|
553
|
+
const t = new ResizeObserver((a) => {
|
|
554
554
|
z(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
|
|
555
555
|
});
|
|
556
|
-
return m.current && (ce(m.current.clientHeight || 480), z(m.current.clientWidth || 760), s ||
|
|
556
|
+
return m.current && (ce(m.current.clientHeight || 480), z(m.current.clientWidth || 760), s || t.observe(m.current)), () => t.disconnect();
|
|
557
557
|
}, [s, h]), pe(() => {
|
|
558
|
-
typeof g == "string" ?
|
|
558
|
+
typeof g == "string" ? Ke(g).then((a) => {
|
|
559
559
|
l(a);
|
|
560
560
|
}) : l(g);
|
|
561
561
|
}, [g]);
|
|
562
|
-
const o = T || (P === "categorical" ?
|
|
563
|
-
k.map((
|
|
562
|
+
const o = T || (P === "categorical" ? Ze(k, "x") : Qe(
|
|
563
|
+
k.map((t) => t.x),
|
|
564
564
|
x?.length || 4
|
|
565
565
|
));
|
|
566
566
|
pe(() => {
|
|
567
|
-
const
|
|
567
|
+
const t = setInterval(
|
|
568
568
|
() => {
|
|
569
569
|
G((a) => a < d.length - 1 ? a + 1 : 0);
|
|
570
570
|
},
|
|
571
571
|
(y.speed || 2) * 1e3
|
|
572
572
|
);
|
|
573
|
-
return A || clearInterval(
|
|
573
|
+
return A || clearInterval(t), () => clearInterval(t);
|
|
574
574
|
}, [d, A, y.speed]);
|
|
575
|
-
const n =
|
|
575
|
+
const n = we(
|
|
576
576
|
d,
|
|
577
577
|
N,
|
|
578
578
|
y.showOnlyActiveDate,
|
|
579
579
|
y.dateFormat || "yyyy"
|
|
580
580
|
);
|
|
581
|
-
return /* @__PURE__ */
|
|
581
|
+
return /* @__PURE__ */ e.jsx(
|
|
582
582
|
"div",
|
|
583
583
|
{
|
|
584
584
|
className: `${D || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
|
|
585
585
|
dir: K === "he" || K === "ar" ? "rtl" : void 0,
|
|
586
|
-
children: /* @__PURE__ */
|
|
586
|
+
children: /* @__PURE__ */ e.jsx(
|
|
587
587
|
"div",
|
|
588
588
|
{
|
|
589
589
|
className: je(
|
|
@@ -598,14 +598,14 @@ function It(he) {
|
|
|
598
598
|
id: B,
|
|
599
599
|
ref: i,
|
|
600
600
|
"aria-label": Z || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${E ? ` ${E}` : ""}`,
|
|
601
|
-
children: /* @__PURE__ */
|
|
601
|
+
children: /* @__PURE__ */ e.jsx(
|
|
602
602
|
"div",
|
|
603
603
|
{
|
|
604
604
|
className: "flex grow",
|
|
605
605
|
style: { padding: I ? Y || "1rem" : Y || 0 },
|
|
606
|
-
children: /* @__PURE__ */
|
|
607
|
-
c || E || w || M ? /* @__PURE__ */
|
|
608
|
-
|
|
606
|
+
children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
607
|
+
c || E || w || M ? /* @__PURE__ */ e.jsx(
|
|
608
|
+
Je,
|
|
609
609
|
{
|
|
610
610
|
styles: {
|
|
611
611
|
title: S?.title,
|
|
@@ -619,11 +619,11 @@ function It(he) {
|
|
|
619
619
|
graphDescription: E,
|
|
620
620
|
width: s,
|
|
621
621
|
graphDownload: w ? i.current : void 0,
|
|
622
|
-
dataDownload: M ? k.map((
|
|
622
|
+
dataDownload: M ? k.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? k.map((t) => t.data).filter((t) => t !== void 0) : k.filter((t) => t !== void 0) : null
|
|
623
623
|
}
|
|
624
624
|
) : null,
|
|
625
|
-
y.enabled && d.length > 0 && n ? /* @__PURE__ */
|
|
626
|
-
/* @__PURE__ */
|
|
625
|
+
y.enabled && d.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
626
|
+
/* @__PURE__ */ e.jsx(
|
|
627
627
|
"button",
|
|
628
628
|
{
|
|
629
629
|
type: "button",
|
|
@@ -632,11 +632,11 @@ function It(he) {
|
|
|
632
632
|
},
|
|
633
633
|
className: "p-0 border-0 cursor-pointer bg-transparent",
|
|
634
634
|
"aria-label": A ? "Click to pause animation" : "Click to play animation",
|
|
635
|
-
children: A ? /* @__PURE__ */
|
|
635
|
+
children: A ? /* @__PURE__ */ e.jsx(qe, {}) : /* @__PURE__ */ e.jsx(Xe, {})
|
|
636
636
|
}
|
|
637
637
|
),
|
|
638
|
-
/* @__PURE__ */
|
|
639
|
-
|
|
638
|
+
/* @__PURE__ */ e.jsx(
|
|
639
|
+
$e,
|
|
640
640
|
{
|
|
641
641
|
min: d[0],
|
|
642
642
|
max: d[d.length - 1],
|
|
@@ -644,33 +644,33 @@ function It(he) {
|
|
|
644
644
|
step: null,
|
|
645
645
|
defaultValue: d[d.length - 1],
|
|
646
646
|
value: d[N],
|
|
647
|
-
onChangeComplete: (
|
|
648
|
-
G(d.indexOf(
|
|
647
|
+
onChangeComplete: (t) => {
|
|
648
|
+
G(d.indexOf(t));
|
|
649
649
|
},
|
|
650
|
-
onChange: (
|
|
651
|
-
G(d.indexOf(
|
|
650
|
+
onChange: (t) => {
|
|
651
|
+
G(d.indexOf(t));
|
|
652
652
|
},
|
|
653
653
|
"aria-label": "Time slider. Use arrow keys to adjust selected time period."
|
|
654
654
|
}
|
|
655
655
|
)
|
|
656
656
|
] }) : null,
|
|
657
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ e.jsx(
|
|
658
658
|
"div",
|
|
659
659
|
{
|
|
660
660
|
className: "flex flex-col grow justify-center leading-0",
|
|
661
661
|
ref: m,
|
|
662
662
|
"aria-label": "Map area",
|
|
663
|
-
children: (s || u) && (h || re) && r ? /* @__PURE__ */
|
|
663
|
+
children: (s || u) && (h || re) && r ? /* @__PURE__ */ e.jsx(
|
|
664
664
|
at,
|
|
665
665
|
{
|
|
666
666
|
data: k.filter(
|
|
667
|
-
(
|
|
667
|
+
(t) => y.enabled ? t.date === Me(new Date(d[N]), y.dateFormat || "yyyy") : t
|
|
668
668
|
),
|
|
669
669
|
mapData: J ? r : {
|
|
670
670
|
...r,
|
|
671
671
|
features: r.features.filter(
|
|
672
672
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
673
|
-
(
|
|
673
|
+
(t) => t.properties.NAME !== "Antarctica"
|
|
674
674
|
)
|
|
675
675
|
},
|
|
676
676
|
colorDomain: o,
|
|
@@ -706,7 +706,7 @@ function It(he) {
|
|
|
706
706
|
animate: L === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : L || { duration: 0, once: !0, amount: 0 },
|
|
707
707
|
customLayers: le
|
|
708
708
|
}
|
|
709
|
-
) : /* @__PURE__ */
|
|
709
|
+
) : /* @__PURE__ */ e.jsx(
|
|
710
710
|
"div",
|
|
711
711
|
{
|
|
712
712
|
style: {
|
|
@@ -716,13 +716,13 @@ function It(he) {
|
|
|
716
716
|
)}px`
|
|
717
717
|
},
|
|
718
718
|
className: "flex items-center justify-center",
|
|
719
|
-
children: /* @__PURE__ */
|
|
719
|
+
children: /* @__PURE__ */ e.jsx(Ne, { "aria-label": "Loading graph" })
|
|
720
720
|
}
|
|
721
721
|
)
|
|
722
722
|
}
|
|
723
723
|
),
|
|
724
|
-
V || oe ? /* @__PURE__ */
|
|
725
|
-
|
|
724
|
+
V || oe ? /* @__PURE__ */ e.jsx(
|
|
725
|
+
Ye,
|
|
726
726
|
{
|
|
727
727
|
styles: { footnote: S?.footnote, source: S?.source },
|
|
728
728
|
classNames: {
|
|
@@ -743,6 +743,6 @@ function It(he) {
|
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
745
|
export {
|
|
746
|
-
|
|
746
|
+
Lt as ChoroplethMap
|
|
747
747
|
};
|
|
748
748
|
//# sourceMappingURL=ChoroplethMap.js.map
|