@undp/data-viz 2.4.0 → 2.4.1

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