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