@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
|
@@ -6,62 +6,61 @@ import { p as be, f as ke } from "./parse-DlCRUFh_.js";
|
|
|
6
6
|
import { i as we } from "./index-Bwrro8-q.js";
|
|
7
7
|
import { z as je, t as Ce, g as $e, a as De, b as Ne, c as Se, d as Me } from "./zoom-C9MFjAaV.js";
|
|
8
8
|
import { t as Ee } from "./index-GEsywGxz.js";
|
|
9
|
-
import { l as Oe } from "./Modal-DGcuAHyK.js";
|
|
10
9
|
import { j as ne } from "./Typography-PxtFcnJb.js";
|
|
11
10
|
import { n as se } from "./numberFormattingFunction-14YCbkN2.js";
|
|
12
|
-
import { T as
|
|
13
|
-
import { s as Pe } from "./string2HTML-DhG75NqA.js";
|
|
11
|
+
import { T as Oe } from "./Tooltip-Dj5eVppQ.js";
|
|
14
12
|
import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
15
|
-
import { X as
|
|
13
|
+
import { X as Le, P as Pe, e as Ie } from "./index-D491FEn1.js";
|
|
14
|
+
import { D as ze } from "./DetailsModal-0Ry5nXiC.js";
|
|
16
15
|
import { s as re } from "./select-DKy99ogv.js";
|
|
17
16
|
import { t as ce } from "./threshold-Bgr20hik.js";
|
|
18
17
|
import { u as We } from "./use-in-view-Cxa7y1TH.js";
|
|
19
18
|
import { m as Lt } from "./proxy-BxkFHwUw.js";
|
|
20
|
-
import { A as
|
|
21
|
-
import { GraphHeader as
|
|
22
|
-
import { GraphFooter as
|
|
19
|
+
import { A as _e } from "./index-BqfRwk1n.js";
|
|
20
|
+
import { GraphHeader as Be } from "./GraphHeader.js";
|
|
21
|
+
import { GraphFooter as Ae } from "./GraphFooter.js";
|
|
23
22
|
import { Colors as ae } from "./Colors.js";
|
|
24
|
-
import { f as
|
|
23
|
+
import { f as Te } from "./fetchAndParseData-BpqkBPQL.js";
|
|
25
24
|
import { g as de } from "./getJenks-BbngDoBQ.js";
|
|
26
|
-
import { u as
|
|
27
|
-
import { a as
|
|
28
|
-
import { s as
|
|
29
|
-
import { a as
|
|
30
|
-
function
|
|
25
|
+
import { u as Fe } from "./uniqBy-BHy4I8PK.js";
|
|
26
|
+
import { a as Ve, G as Ge } from "./GraphContainer-CRqzdKu2.js";
|
|
27
|
+
import { s as He } from "./sort-BIvMlUH1.js";
|
|
28
|
+
import { a as Re } from "./init-BJFW6EwE.js";
|
|
29
|
+
function Ue(d) {
|
|
31
30
|
const {
|
|
32
31
|
data: t,
|
|
33
32
|
xDomain: b,
|
|
34
|
-
mapData:
|
|
33
|
+
mapData: j,
|
|
35
34
|
xColorLegendTitle: It,
|
|
36
|
-
yDomain:
|
|
37
|
-
yColorLegendTitle:
|
|
35
|
+
yDomain: Q,
|
|
36
|
+
yColorLegendTitle: tt,
|
|
38
37
|
width: k,
|
|
39
38
|
height: y,
|
|
40
39
|
colors: x,
|
|
41
40
|
scale: zt,
|
|
42
41
|
centerPoint: $,
|
|
43
42
|
mapBorderWidth: S,
|
|
44
|
-
mapNoDataColor:
|
|
43
|
+
mapNoDataColor: W,
|
|
45
44
|
mapBorderColor: gt,
|
|
46
|
-
tooltip:
|
|
45
|
+
tooltip: et,
|
|
47
46
|
onSeriesMouseOver: ft,
|
|
48
47
|
zoomScaleExtend: yt,
|
|
49
48
|
zoomTranslateExtend: xt,
|
|
50
|
-
highlightedIds:
|
|
51
|
-
onSeriesMouseClick:
|
|
52
|
-
mapProperty:
|
|
53
|
-
resetSelectionOnDoubleClick:
|
|
54
|
-
detailsOnClick:
|
|
49
|
+
highlightedIds: G,
|
|
50
|
+
onSeriesMouseClick: ot,
|
|
51
|
+
mapProperty: H,
|
|
52
|
+
resetSelectionOnDoubleClick: Wt,
|
|
53
|
+
detailsOnClick: C,
|
|
55
54
|
showColorScale: vt,
|
|
56
|
-
styles:
|
|
57
|
-
classNames:
|
|
58
|
-
mapProjection:
|
|
55
|
+
styles: _t,
|
|
56
|
+
classNames: _,
|
|
57
|
+
mapProjection: B,
|
|
59
58
|
zoomInteraction: O,
|
|
60
59
|
animate: D,
|
|
61
60
|
dimmedOpacity: L,
|
|
62
|
-
customLayers:
|
|
61
|
+
customLayers: rt,
|
|
63
62
|
collapseColorScaleByDefault: bt
|
|
64
|
-
} = d, [Bt, kt] = N(bt === void 0 ? !(k < 680) : !bt), [
|
|
63
|
+
} = d, [Bt, kt] = N(bt === void 0 ? !(k < 680) : !bt), [R, wt] = N(void 0), [at, it] = N(void 0), [A, nt] = N(void 0), [st, m] = N(void 0), [p, U] = N(void 0), T = Pt(null), lt = We(T, {
|
|
65
64
|
once: D.once,
|
|
66
65
|
amount: D.amount
|
|
67
66
|
}), jt = Pt(null), F = Pt(null);
|
|
@@ -78,20 +77,20 @@ function Xe(d) {
|
|
|
78
77
|
});
|
|
79
78
|
n.call(s), F.current = s;
|
|
80
79
|
}, [y, k, O]);
|
|
81
|
-
const
|
|
80
|
+
const X = Ce(j), P = Ee(j), M = X[2] - X[0], I = X[3] - X[1], ct = k * 190 / 960 * 360 / M, Ct = y * 190 / 678 * 180 / I, z = zt * Math.min(ct, Ct), E = B === "mercator" ? $e().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : B === "equalEarth" ? De().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : B === "naturalEarth" ? Ne().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : B === "orthographic" ? Se().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : Me().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z), $t = Array.from({
|
|
82
81
|
length: b.length
|
|
83
82
|
}, (e, n) => n), Dt = Array.from({
|
|
84
|
-
length:
|
|
85
|
-
}, (e, n) => n), Nt = ce().domain(b).range($t), St = ce().domain(
|
|
83
|
+
length: Q.length
|
|
84
|
+
}, (e, n) => n), Nt = ce().domain(b).range($t), St = ce().domain(Q).range(Dt), Y = (e) => {
|
|
86
85
|
if (!T.current || !F.current) return;
|
|
87
86
|
re(T.current).call(F.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
|
|
88
87
|
};
|
|
89
88
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
90
89
|
/* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
91
90
|
/* @__PURE__ */ o.jsx(Lt.svg, { viewBox: `0 0 ${k} ${y}`, width: `${k}px`, height: `${y}px`, ref: T, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: jt, children: [
|
|
92
|
-
|
|
91
|
+
rt.filter((e) => e.position === "before").map((e) => e.layer),
|
|
93
92
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
94
|
-
|
|
93
|
+
j.features.map((e, n) => t.findIndex((s) => s.id === e.properties[H]) !== -1 ? null : /* @__PURE__ */ o.jsx(Lt.g, { opacity: R ? L : G.length !== 0 ? G.indexOf(e.properties[H]) !== -1 ? 1 : L : 1, children: e.geometry.type === "MultiPolygon" ? (
|
|
95
94
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
95
|
e.geometry.coordinates.map((s, r) => {
|
|
97
96
|
let a = "";
|
|
@@ -104,7 +103,7 @@ function Xe(d) {
|
|
|
104
103
|
}), /* @__PURE__ */ o.jsx("path", { d: a, style: {
|
|
105
104
|
stroke: gt,
|
|
106
105
|
strokeWidth: S,
|
|
107
|
-
fill:
|
|
106
|
+
fill: W
|
|
108
107
|
} }, r);
|
|
109
108
|
})
|
|
110
109
|
) : (
|
|
@@ -117,21 +116,21 @@ function Xe(d) {
|
|
|
117
116
|
}), /* @__PURE__ */ o.jsx("path", { d: a, style: {
|
|
118
117
|
stroke: gt,
|
|
119
118
|
strokeWidth: S,
|
|
120
|
-
fill:
|
|
119
|
+
fill: W
|
|
121
120
|
} }, r);
|
|
122
121
|
})
|
|
123
122
|
) }, n)),
|
|
124
|
-
/* @__PURE__ */ o.jsx(
|
|
125
|
-
const n =
|
|
123
|
+
/* @__PURE__ */ o.jsx(_e, { children: t.map((e) => {
|
|
124
|
+
const n = j.features.findIndex(
|
|
126
125
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
127
|
-
(a) => e.id === a.properties[
|
|
128
|
-
), u = le(e.x) ? void 0 : Nt(e.x), s = le(e.y) ? void 0 : St(e.y), r = u !== void 0 && s !== void 0 ? x[s][u] :
|
|
126
|
+
(a) => e.id === a.properties[H]
|
|
127
|
+
), u = le(e.x) ? void 0 : Nt(e.x), s = le(e.y) ? void 0 : St(e.y), r = u !== void 0 && s !== void 0 ? x[s][u] : W;
|
|
129
128
|
return /* @__PURE__ */ o.jsx(Lt.g, { variants: {
|
|
130
129
|
initial: {
|
|
131
130
|
opacity: 0
|
|
132
131
|
},
|
|
133
132
|
whileInView: {
|
|
134
|
-
opacity:
|
|
133
|
+
opacity: R ? R === r ? 1 : L : G.length !== 0 ? G.indexOf(e.id) !== -1 ? 1 : L : 1,
|
|
135
134
|
transition: {
|
|
136
135
|
duration: D.duration
|
|
137
136
|
}
|
|
@@ -142,14 +141,14 @@ function Xe(d) {
|
|
|
142
141
|
duration: D.duration
|
|
143
142
|
}
|
|
144
143
|
}, onMouseEnter: (a) => {
|
|
145
|
-
nt(e),
|
|
144
|
+
nt(e), U(a.clientY), m(a.clientX), ft?.(e);
|
|
146
145
|
}, onClick: () => {
|
|
147
|
-
(
|
|
146
|
+
(ot || C) && (we(at, e) && Wt ? (it(void 0), ot?.(void 0)) : (it(e), ot?.(e)));
|
|
148
147
|
}, onMouseMove: (a) => {
|
|
149
|
-
nt(e),
|
|
148
|
+
nt(e), U(a.clientY), m(a.clientX);
|
|
150
149
|
}, onMouseLeave: () => {
|
|
151
|
-
nt(void 0), m(void 0),
|
|
152
|
-
}, children: n === -1 ? null :
|
|
150
|
+
nt(void 0), m(void 0), U(void 0), ft?.(void 0);
|
|
151
|
+
}, children: n === -1 ? null : j.features[n].geometry.type === "MultiPolygon" ? j.features[n].geometry.coordinates.map(
|
|
153
152
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
154
153
|
(a, l) => {
|
|
155
154
|
let i = "";
|
|
@@ -176,11 +175,11 @@ function Xe(d) {
|
|
|
176
175
|
transition: {
|
|
177
176
|
duration: D.duration
|
|
178
177
|
}
|
|
179
|
-
}, d: i, className: `${r ===
|
|
178
|
+
}, d: i, className: `${r === W ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
|
|
180
179
|
strokeWidth: S
|
|
181
180
|
} }, `${e.id}-${l}`);
|
|
182
181
|
}
|
|
183
|
-
) :
|
|
182
|
+
) : j.features[n].geometry.coordinates.map(
|
|
184
183
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
185
184
|
(a, l) => {
|
|
186
185
|
let i = "M";
|
|
@@ -204,15 +203,15 @@ function Xe(d) {
|
|
|
204
203
|
transition: {
|
|
205
204
|
duration: D.duration
|
|
206
205
|
}
|
|
207
|
-
}, className: `${r ===
|
|
206
|
+
}, className: `${r === W ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
|
|
208
207
|
strokeWidth: S
|
|
209
208
|
} }, `${e.id}-${l}`);
|
|
210
209
|
}
|
|
211
210
|
) }, e.id);
|
|
212
211
|
}) }),
|
|
213
|
-
A ?
|
|
212
|
+
A ? j.features.filter(
|
|
214
213
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
215
|
-
(e) => e.properties[
|
|
214
|
+
(e) => e.properties[H] === A.id
|
|
216
215
|
).map((e, n) => /* @__PURE__ */ o.jsx("g", { children: e.geometry.type === "MultiPolygon" ? (
|
|
217
216
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
218
217
|
e.geometry.coordinates.map((u, s) => {
|
|
@@ -243,18 +242,18 @@ function Xe(d) {
|
|
|
243
242
|
} }, s);
|
|
244
243
|
})
|
|
245
244
|
) }, n)) : null,
|
|
246
|
-
|
|
245
|
+
rt.filter((e) => e.position === "after").map((e) => e.layer)
|
|
247
246
|
] }) }),
|
|
248
|
-
vt === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: ue("absolute left-4 bottom-4 map-color-legend",
|
|
247
|
+
vt === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: ue("absolute left-4 bottom-4 map-color-legend", _?.colorLegend), children: Bt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
249
248
|
/* @__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: () => {
|
|
250
249
|
kt(!1);
|
|
251
|
-
}, children: /* @__PURE__ */ o.jsx(
|
|
250
|
+
}, children: /* @__PURE__ */ o.jsx(Le, {}) }),
|
|
252
251
|
/* @__PURE__ */ o.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
|
|
253
252
|
width: "175px"
|
|
254
253
|
}, children: [
|
|
255
254
|
/* @__PURE__ */ o.jsxs("div", { className: "flex gap-1 items-center", children: [
|
|
256
255
|
/* @__PURE__ */ o.jsx("svg", { width: "136px", viewBox: "0 0 136 136", className: "shrink-0", children: /* @__PURE__ */ o.jsxs("g", { children: [
|
|
257
|
-
x.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - n * 25})`, children: e.map((u, s) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: s * 25 + 1, fill: u, width: 23, height: 23, strokeWidth:
|
|
256
|
+
x.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - n * 25})`, children: e.map((u, s) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: s * 25 + 1, fill: u, width: 23, height: 23, strokeWidth: R === u ? 2 : 0.25, style: {
|
|
258
257
|
cursor: "pointer"
|
|
259
258
|
}, onMouseOver: () => {
|
|
260
259
|
wt(u);
|
|
@@ -262,7 +261,7 @@ function Xe(d) {
|
|
|
262
261
|
wt(void 0);
|
|
263
262
|
} }, s)) }, n)),
|
|
264
263
|
/* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: b.map((e, n) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (n + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }, n)) }),
|
|
265
|
-
|
|
264
|
+
Q.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(b.length + 1, 5), 4) * 25 + 10},${100 - n * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }) }, n))
|
|
266
265
|
] }) }),
|
|
267
266
|
/* @__PURE__ */ o.jsx(ne, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
|
|
268
267
|
display: "-webkit-box",
|
|
@@ -272,7 +271,7 @@ function Xe(d) {
|
|
|
272
271
|
writingMode: "vertical-rl",
|
|
273
272
|
height: "8.5rem",
|
|
274
273
|
transform: "rotate(180deg)"
|
|
275
|
-
}, children:
|
|
274
|
+
}, children: tt })
|
|
276
275
|
] }),
|
|
277
276
|
/* @__PURE__ */ o.jsx(ne, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
|
|
278
277
|
display: "-webkit-box",
|
|
@@ -286,136 +285,132 @@ function Xe(d) {
|
|
|
286
285
|
kt(!0);
|
|
287
286
|
}, 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" }) }) }),
|
|
288
287
|
O === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
|
|
289
|
-
/* @__PURE__ */ o.jsx("button", { onClick: () =>
|
|
290
|
-
/* @__PURE__ */ o.jsx("button", { onClick: () =>
|
|
288
|
+
/* @__PURE__ */ o.jsx("button", { onClick: () => Y("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
|
|
289
|
+
/* @__PURE__ */ o.jsx("button", { onClick: () => Y("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 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: "–" })
|
|
291
290
|
] })
|
|
292
291
|
] }),
|
|
293
|
-
A &&
|
|
294
|
-
|
|
295
|
-
it(void 0);
|
|
296
|
-
}, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof w == "string" ? {
|
|
297
|
-
__html: Pe(w, B)
|
|
298
|
-
} : void 0, children: typeof w == "function" ? w(B) : null }) }) : null
|
|
292
|
+
A && et && st && p ? /* @__PURE__ */ o.jsx(Oe, { data: A, body: et, xPos: st, yPos: p, backgroundStyle: _t?.tooltip, className: _?.tooltip }) : null,
|
|
293
|
+
C && at !== void 0 ? /* @__PURE__ */ o.jsx(ze, { body: C, data: at, setData: it, className: _?.modal }) : null
|
|
299
294
|
] });
|
|
300
295
|
}
|
|
301
|
-
function
|
|
296
|
+
function Oo(d) {
|
|
302
297
|
const t = ge.c(101), {
|
|
303
298
|
data: b,
|
|
304
|
-
graphTitle:
|
|
299
|
+
graphTitle: j,
|
|
305
300
|
mapData: It,
|
|
306
|
-
colors:
|
|
307
|
-
sources:
|
|
301
|
+
colors: Q,
|
|
302
|
+
sources: tt,
|
|
308
303
|
graphDescription: k,
|
|
309
304
|
height: y,
|
|
310
305
|
width: x,
|
|
311
306
|
footNote: zt,
|
|
312
307
|
xDomain: $,
|
|
313
308
|
yDomain: S,
|
|
314
|
-
xColorLegendTitle:
|
|
309
|
+
xColorLegendTitle: W,
|
|
315
310
|
yColorLegendTitle: gt,
|
|
316
|
-
tooltip:
|
|
311
|
+
tooltip: et,
|
|
317
312
|
scale: ft,
|
|
318
313
|
centerPoint: yt,
|
|
319
314
|
padding: xt,
|
|
320
|
-
mapBorderWidth:
|
|
321
|
-
mapNoDataColor:
|
|
322
|
-
backgroundColor:
|
|
323
|
-
mapBorderColor:
|
|
324
|
-
relativeHeight:
|
|
315
|
+
mapBorderWidth: G,
|
|
316
|
+
mapNoDataColor: ot,
|
|
317
|
+
backgroundColor: H,
|
|
318
|
+
mapBorderColor: Wt,
|
|
319
|
+
relativeHeight: C,
|
|
325
320
|
onSeriesMouseOver: vt,
|
|
326
|
-
isWorldMap:
|
|
327
|
-
zoomScaleExtend:
|
|
328
|
-
zoomTranslateExtend:
|
|
321
|
+
isWorldMap: _t,
|
|
322
|
+
zoomScaleExtend: _,
|
|
323
|
+
zoomTranslateExtend: B,
|
|
329
324
|
graphID: O,
|
|
330
325
|
showColorScale: D,
|
|
331
326
|
highlightedIds: L,
|
|
332
|
-
onSeriesMouseClick:
|
|
327
|
+
onSeriesMouseClick: rt,
|
|
333
328
|
mapProperty: bt,
|
|
334
329
|
graphDownload: Bt,
|
|
335
330
|
dataDownload: kt,
|
|
336
|
-
showAntarctica:
|
|
331
|
+
showAntarctica: R,
|
|
337
332
|
language: wt,
|
|
338
|
-
minHeight:
|
|
333
|
+
minHeight: at,
|
|
339
334
|
theme: it,
|
|
340
335
|
ariaLabel: A,
|
|
341
336
|
resetSelectionOnDoubleClick: nt,
|
|
342
337
|
detailsOnClick: st,
|
|
343
338
|
styles: m,
|
|
344
339
|
classNames: p,
|
|
345
|
-
mapProjection:
|
|
340
|
+
mapProjection: U,
|
|
346
341
|
zoomInteraction: T,
|
|
347
342
|
animate: lt,
|
|
348
343
|
dimmedOpacity: jt,
|
|
349
344
|
customLayers: F,
|
|
350
|
-
timeline:
|
|
345
|
+
timeline: X,
|
|
351
346
|
collapseColorScaleByDefault: P
|
|
352
|
-
} = d, M = It === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : It, I =
|
|
347
|
+
} = d, M = It === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : It, I = Q === void 0 ? ae.light.bivariateColors.colors05x05 : Q, ct = zt === 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." : zt, Ct = W === void 0 ? "X Color key" : W, z = gt === void 0 ? "Y Color key" : gt, E = ft === void 0 ? 0.95 : ft, $t = G === void 0 ? 0.5 : G, Dt = ot === void 0 ? ae.light.graphNoData : ot, Nt = H === void 0 ? !1 : H, St = Wt === void 0 ? ae.light.grays["gray-500"] : Wt, Y = _t === void 0 ? !0 : _t;
|
|
353
348
|
let e;
|
|
354
|
-
t[0] !==
|
|
349
|
+
t[0] !== _ ? (e = _ === void 0 ? [0.8, 6] : _, t[0] = _, t[1] = e) : e = t[1];
|
|
355
350
|
const n = e, u = D === void 0 ? !0 : D;
|
|
356
351
|
let s;
|
|
357
352
|
t[2] !== L ? (s = L === void 0 ? [] : L, t[2] = L, t[3] = s) : s = t[3];
|
|
358
|
-
const r = s, a = bt === void 0 ? "ISO3" : bt, l = Bt === void 0 ? !1 : Bt, i = kt === void 0 ? !1 : kt, h =
|
|
353
|
+
const r = s, a = bt === void 0 ? "ISO3" : bt, l = Bt === void 0 ? !1 : Bt, i = kt === void 0 ? !1 : kt, h = R === void 0 ? !1 : R, g = wt === void 0 ? "en" : wt, c = at === void 0 ? 0 : at, Mt = it === void 0 ? "light" : it, V = nt === void 0 ? !0 : nt, Jt = T === void 0 ? "button" : T, At = lt === void 0 ? !1 : lt, Kt = jt === void 0 ? 0.3 : jt;
|
|
359
354
|
let Tt;
|
|
360
355
|
t[4] !== F ? (Tt = F === void 0 ? [] : F, t[4] = F, t[5] = Tt) : Tt = t[5];
|
|
361
|
-
const Zt = Tt,
|
|
356
|
+
const Zt = Tt, w = X === void 0 ? {
|
|
362
357
|
enabled: !1,
|
|
363
358
|
autoplay: !1,
|
|
364
359
|
showOnlyActiveDate: !0
|
|
365
|
-
} :
|
|
360
|
+
} : X, [q, me] = N(0), [Et, pe] = N(0), [J, Qt] = N(w.autoplay), f = He(Fe(b, "date", !0).map((v) => be(`${v}`, w.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), eo), [K, Ot] = N(w.autoplay ? 0 : f.length - 1), [dt, he] = N(void 0), te = Pt(null), ie = Pt(null);
|
|
366
361
|
let Ft, Vt;
|
|
367
362
|
t[6] === Symbol.for("react.memo_cache_sentinel") ? (Ft = () => {
|
|
368
|
-
const v = new ResizeObserver((
|
|
369
|
-
me(
|
|
363
|
+
const v = new ResizeObserver((Z) => {
|
|
364
|
+
me(Z[0].target.clientWidth || 620), pe(Z[0].target.clientHeight || 480);
|
|
370
365
|
});
|
|
371
366
|
return te.current && v.observe(te.current), () => v.disconnect();
|
|
372
367
|
}, Vt = [], t[6] = Ft, t[7] = Vt) : (Ft = t[6], Vt = t[7]), qt(Ft, Vt);
|
|
373
|
-
let
|
|
374
|
-
t[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
368
|
+
let Gt;
|
|
369
|
+
t[8] === Symbol.for("react.memo_cache_sentinel") ? (Gt = (v) => {
|
|
375
370
|
he(v);
|
|
376
|
-
}, t[8] =
|
|
377
|
-
const
|
|
371
|
+
}, t[8] = Gt) : Gt = t[8];
|
|
372
|
+
const Ht = fe(Gt);
|
|
378
373
|
let Rt;
|
|
379
|
-
t[9] !== M || t[10] !==
|
|
380
|
-
typeof M == "string" ?
|
|
381
|
-
|
|
382
|
-
}) :
|
|
383
|
-
}, t[9] = M, t[10] =
|
|
374
|
+
t[9] !== M || t[10] !== Ht ? (Rt = () => {
|
|
375
|
+
typeof M == "string" ? Te(M).then((Z) => {
|
|
376
|
+
Ht(Z);
|
|
377
|
+
}) : Ht(M);
|
|
378
|
+
}, t[9] = M, t[10] = Ht, t[11] = Rt) : Rt = t[11];
|
|
384
379
|
let Ut;
|
|
385
380
|
t[12] !== M ? (Ut = [M], t[12] = M, t[13] = Ut) : Ut = t[13], qt(Rt, Ut), qt(() => {
|
|
386
381
|
const v = setInterval(() => {
|
|
387
|
-
Ot((
|
|
388
|
-
}, (
|
|
389
|
-
return
|
|
390
|
-
}, [f,
|
|
391
|
-
const Xt = ye(f,
|
|
382
|
+
Ot((Z) => Z < f.length - 1 ? Z + 1 : 0);
|
|
383
|
+
}, (w.speed || 2) * 1e3);
|
|
384
|
+
return J || clearInterval(v), () => clearInterval(v);
|
|
385
|
+
}, [f, J, w.speed]);
|
|
386
|
+
const Xt = ye(f, K, w.showOnlyActiveDate, w.dateFormat || "yyyy");
|
|
392
387
|
if ($ && S && ($.length !== I[0].length - 1 || S.length !== I.length - 1))
|
|
393
388
|
return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
|
|
394
389
|
const ee = p?.graphContainer, oe = m?.graphContainer;
|
|
395
390
|
let mt;
|
|
396
|
-
t[14] !== p?.description || t[15] !== p?.title || t[16] !== b || t[17] !== i || t[18] !== k || t[19] !== l || t[20] !==
|
|
391
|
+
t[14] !== p?.description || t[15] !== p?.title || t[16] !== b || t[17] !== i || t[18] !== k || t[19] !== l || t[20] !== j || t[21] !== m?.description || t[22] !== m?.title || t[23] !== x ? (mt = j || k || l || i ? /* @__PURE__ */ o.jsx(Be, { styles: {
|
|
397
392
|
title: m?.title,
|
|
398
393
|
description: m?.description
|
|
399
394
|
}, classNames: {
|
|
400
395
|
title: p?.title,
|
|
401
396
|
description: p?.description
|
|
402
|
-
}, graphTitle:
|
|
397
|
+
}, graphTitle: j, graphDescription: k, width: x, graphDownload: l ? ie : void 0, dataDownload: i ? b.map(to).filter(Qe).length > 0 ? b.map(Ze).filter(Ke) : b.filter(Je) : null }) : null, t[14] = p?.description, t[15] = p?.title, t[16] = b, t[17] = i, t[18] = k, t[19] = l, t[20] = j, t[21] = m?.description, t[22] = m?.title, t[23] = x, t[24] = mt) : mt = t[24];
|
|
403
398
|
let pt;
|
|
404
|
-
t[25] !==
|
|
399
|
+
t[25] !== K || t[26] !== Xt || t[27] !== J || t[28] !== Ot || t[29] !== Qt || t[30] !== w.enabled || t[31] !== f ? (pt = w.enabled && f.length > 0 && Xt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
|
|
405
400
|
/* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
|
|
406
|
-
Qt(!
|
|
407
|
-
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label":
|
|
408
|
-
/* @__PURE__ */ o.jsx(xe, { min: f[0], max: f[f.length - 1], marks: Xt, step: null, defaultValue: f[f.length - 1], value: f[
|
|
401
|
+
Qt(!J);
|
|
402
|
+
}, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": J ? "Click to pause animation" : "Click to play animation", children: J ? /* @__PURE__ */ o.jsx(Pe, {}) : /* @__PURE__ */ o.jsx(Ie, {}) }),
|
|
403
|
+
/* @__PURE__ */ o.jsx(xe, { min: f[0], max: f[f.length - 1], marks: Xt, step: null, defaultValue: f[f.length - 1], value: f[K], onChangeComplete: (v) => {
|
|
409
404
|
Ot(f.indexOf(v));
|
|
410
405
|
}, onChange: (v) => {
|
|
411
406
|
Ot(f.indexOf(v));
|
|
412
407
|
}, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
|
|
413
|
-
] }) : null, t[25] =
|
|
408
|
+
] }) : null, t[25] = K, t[26] = Xt, t[27] = J, t[28] = Ot, t[29] = Qt, t[30] = w.enabled, t[31] = f, t[32] = pt) : pt = t[32];
|
|
414
409
|
let ht;
|
|
415
|
-
t[33] !== At || t[34] !== yt || t[35] !== p || t[36] !== P || t[37] !== I || t[38] !== Zt || t[39] !== b || t[40] !== st || t[41] !== Kt || t[42] !== y || t[43] !== r || t[44] !==
|
|
410
|
+
t[33] !== At || t[34] !== yt || t[35] !== p || t[36] !== P || t[37] !== I || t[38] !== Zt || t[39] !== b || t[40] !== st || t[41] !== Kt || t[42] !== y || t[43] !== r || t[44] !== K || t[45] !== Y || t[46] !== St || t[47] !== $t || t[48] !== Dt || t[49] !== U || t[50] !== a || t[51] !== dt || t[52] !== c || t[53] !== rt || t[54] !== vt || t[55] !== C || t[56] !== V || t[57] !== E || t[58] !== h || t[59] !== u || t[60] !== m || t[61] !== Et || t[62] !== q || t[63] !== w.dateFormat || t[64] !== w.enabled || t[65] !== et || t[66] !== f || t[67] !== x || t[68] !== Ct || t[69] !== $ || t[70] !== z || t[71] !== S || t[72] !== Jt || t[73] !== n || t[74] !== B ? (ht = /* @__PURE__ */ o.jsx(Ve, { ref: te, children: q && Et && dt ? /* @__PURE__ */ o.jsx(Ue, { data: b.filter((v) => w.enabled ? v.date === ke(new Date(f[K]), w.dateFormat || "yyyy") : v), mapData: h ? dt : {
|
|
416
411
|
...dt,
|
|
417
|
-
features: dt.features.filter(
|
|
418
|
-
}, xDomain: $ || de(b.map(
|
|
412
|
+
features: dt.features.filter(qe)
|
|
413
|
+
}, xDomain: $ || de(b.map(Ye), I[0].length), yDomain: S || de(b.map(Xe), I.length), width: q, height: Et, scale: E, centerPoint: yt, colors: I, xColorLegendTitle: Ct, yColorLegendTitle: z, mapBorderWidth: $t, mapNoDataColor: Dt, mapBorderColor: St, tooltip: et, onSeriesMouseOver: vt, isWorldMap: Y, zoomScaleExtend: n, zoomTranslateExtend: B, onSeriesMouseClick: rt, mapProperty: a, highlightedIds: r, resetSelectionOnDoubleClick: V, styles: m, showColorScale: u, classNames: p, mapProjection: U || (Y ? "naturalEarth" : "mercator"), detailsOnClick: st, zoomInteraction: Jt, animate: At === !0 ? {
|
|
419
414
|
duration: 0.5,
|
|
420
415
|
once: !0,
|
|
421
416
|
amount: 0.5
|
|
@@ -424,52 +419,52 @@ function Po(d) {
|
|
|
424
419
|
once: !0,
|
|
425
420
|
amount: 0
|
|
426
421
|
}, dimmedOpacity: Kt, customLayers: Zt, collapseColorScaleByDefault: P }) : /* @__PURE__ */ o.jsx("div", { style: {
|
|
427
|
-
height: `${Math.max(c, y || (
|
|
428
|
-
}, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" }) }) }), t[33] = At, t[34] = yt, t[35] = p, t[36] = P, t[37] = I, t[38] = Zt, t[39] = b, t[40] = st, t[41] = Kt, t[42] = y, t[43] = r, t[44] =
|
|
422
|
+
height: `${Math.max(c, y || (C ? c ? (x || q) * C > c ? (x || q) * C : c : (x || q) * C : Et))}px`
|
|
423
|
+
}, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" }) }) }), t[33] = At, t[34] = yt, t[35] = p, t[36] = P, t[37] = I, t[38] = Zt, t[39] = b, t[40] = st, t[41] = Kt, t[42] = y, t[43] = r, t[44] = K, t[45] = Y, t[46] = St, t[47] = $t, t[48] = Dt, t[49] = U, t[50] = a, t[51] = dt, t[52] = c, t[53] = rt, t[54] = vt, t[55] = C, t[56] = V, t[57] = E, t[58] = h, t[59] = u, t[60] = m, t[61] = Et, t[62] = q, t[63] = w.dateFormat, t[64] = w.enabled, t[65] = et, t[66] = f, t[67] = x, t[68] = Ct, t[69] = $, t[70] = z, t[71] = S, t[72] = Jt, t[73] = n, t[74] = B, t[75] = ht) : ht = t[75];
|
|
429
424
|
let ut;
|
|
430
|
-
t[76] !== p?.footnote || t[77] !== p?.source || t[78] !== ct || t[79] !==
|
|
425
|
+
t[76] !== p?.footnote || t[77] !== p?.source || t[78] !== ct || t[79] !== tt || t[80] !== m?.footnote || t[81] !== m?.source || t[82] !== x ? (ut = tt || ct ? /* @__PURE__ */ o.jsx(Ae, { styles: {
|
|
431
426
|
footnote: m?.footnote,
|
|
432
427
|
source: m?.source
|
|
433
428
|
}, classNames: {
|
|
434
429
|
footnote: p?.footnote,
|
|
435
430
|
source: p?.source
|
|
436
|
-
}, sources:
|
|
431
|
+
}, sources: tt, footNote: ct, width: x }) : null, t[76] = p?.footnote, t[77] = p?.source, t[78] = ct, t[79] = tt, t[80] = m?.footnote, t[81] = m?.source, t[82] = x, t[83] = ut) : ut = t[83];
|
|
437
432
|
let Yt;
|
|
438
|
-
return t[84] !== A || t[85] !== Nt || t[86] !== O || t[87] !== y || t[88] !== g || t[89] !== c || t[90] !== xt || t[91] !==
|
|
433
|
+
return t[84] !== A || t[85] !== Nt || t[86] !== O || t[87] !== y || t[88] !== g || t[89] !== c || t[90] !== xt || t[91] !== C || t[92] !== ee || t[93] !== oe || t[94] !== mt || t[95] !== pt || t[96] !== ht || t[97] !== ut || t[98] !== Mt || t[99] !== x ? (Yt = /* @__PURE__ */ o.jsxs(Ge, { className: ee, style: oe, id: O, ref: ie, "aria-label": A, backgroundColor: Nt, theme: Mt, language: g, minHeight: c, width: x, height: y, relativeHeight: C, padding: xt, children: [
|
|
439
434
|
mt,
|
|
440
435
|
pt,
|
|
441
436
|
ht,
|
|
442
437
|
ut
|
|
443
|
-
] }), t[84] = A, t[85] = Nt, t[86] = O, t[87] = y, t[88] = g, t[89] = c, t[90] = xt, t[91] =
|
|
438
|
+
] }), t[84] = A, t[85] = Nt, t[86] = O, t[87] = y, t[88] = g, t[89] = c, t[90] = xt, t[91] = C, t[92] = ee, t[93] = oe, t[94] = mt, t[95] = pt, t[96] = ht, t[97] = ut, t[98] = Mt, t[99] = x, t[100] = Yt) : Yt = t[100], Yt;
|
|
444
439
|
}
|
|
445
|
-
function
|
|
440
|
+
function Xe(d) {
|
|
446
441
|
return d.y;
|
|
447
442
|
}
|
|
448
|
-
function
|
|
443
|
+
function Ye(d) {
|
|
449
444
|
return d.x;
|
|
450
445
|
}
|
|
451
|
-
function
|
|
446
|
+
function qe(d) {
|
|
452
447
|
return d.properties.NAME !== "Antarctica";
|
|
453
448
|
}
|
|
454
|
-
function
|
|
449
|
+
function Je(d) {
|
|
455
450
|
return d !== void 0;
|
|
456
451
|
}
|
|
457
|
-
function
|
|
452
|
+
function Ke(d) {
|
|
458
453
|
return d !== void 0;
|
|
459
454
|
}
|
|
460
|
-
function
|
|
455
|
+
function Ze(d) {
|
|
461
456
|
return d.data;
|
|
462
457
|
}
|
|
463
|
-
function
|
|
458
|
+
function Qe(d) {
|
|
464
459
|
return d !== void 0;
|
|
465
460
|
}
|
|
466
|
-
function
|
|
461
|
+
function to(d) {
|
|
467
462
|
return d.data;
|
|
468
463
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
464
|
+
function eo(d, t) {
|
|
465
|
+
return Re(d, t);
|
|
471
466
|
}
|
|
472
467
|
export {
|
|
473
|
-
|
|
468
|
+
Oo as BiVariateChoroplethMap
|
|
474
469
|
};
|
|
475
470
|
//# sourceMappingURL=BiVariateChoroplethMap.js.map
|