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