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