@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.
package/dist/HybridMap.js CHANGED
@@ -1,38 +1,38 @@
1
- import { _ as oo, m as Vt, a as Ht, j as a, c as ao } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import * as ro from "react";
3
- import io, { useMemo as Ft, useState as S, useRef as qe, useEffect as Ue, useEffectEvent as Tt } from "react";
4
- import { f as no, p as lo } from "./parse-Dv4of-PN.js";
5
- import { g as so, N as co } from "./getSliderMarks-X-_goqH9.js";
6
- import { w as mo } from "./Spinner-B2IIKg9r.js";
7
- import { i as At } from "./index-Bwrro8-q.js";
8
- import { i as Rt, z as po, a as uo, g as ho, b as fo, c as go, d as yo, e as vo, f as xo } from "./index-CKpKc9DR.js";
9
- import { _ as Lt } from "./Typography-BO0gQDIT.js";
10
- import { i as bo } from "./index-DCsFBfJ_.js";
11
- import { n as Gt } from "./Source-QGk8vhkS.js";
12
- import { w as wo } from "./index-w64Zl8io-ihagHOdP.js";
13
- import { T as jo } from "./Tooltip-Bj-s__cI.js";
14
- import { X as ko, E as Co, P as Do, e as No } from "./index-ApTBN0kp.js";
15
- import { D as Mo } from "./DetailsModal-B2XBWR7w.js";
16
- import { s as So } from "./pow-BXYLJHCq.js";
17
- import { o as Oo } from "./ordinal-CHaxGJ_l.js";
18
- import { t as Eo } from "./threshold-DFfqcDMa.js";
19
- import { s as Wt } from "./select-DKy99ogv.js";
1
+ import { _ as eo, m as Lt, a as Ut, j as a, c as to } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import * as oo from "react";
3
+ import ao, { useMemo as Vt, useState as S, useRef as qe, useEffect as Ue, useEffectEvent as $t } from "react";
4
+ import { f as ro, p as io } from "./parse-Dv4of-PN.js";
5
+ import { g as no, N as lo } from "./getSliderMarks-X-_goqH9.js";
6
+ import { w as so } from "./Spinner-B2IIKg9r.js";
7
+ import { i as Ft } from "./index-Bwrro8-q.js";
8
+ import { i as Tt, z as co, a as mo, g as po, b as uo, c as ho, d as fo, e as go, f as yo } from "./index-CKpKc9DR.js";
9
+ import { _ as Pt } from "./Typography-BO0gQDIT.js";
10
+ import { i as vo } from "./index-DCsFBfJ_.js";
11
+ import { n as At } from "./Source-QGk8vhkS.js";
12
+ import { w as xo } from "./index-w64Zl8io-ihagHOdP.js";
13
+ import { T as bo } from "./Tooltip-Bj-s__cI.js";
14
+ import { X as wo, E as jo, P as ko, e as Co } from "./index-ApTBN0kp.js";
15
+ import { D as Do } from "./DetailsModal-B2XBWR7w.js";
16
+ import { s as No } from "./pow-BXYLJHCq.js";
17
+ import { o as Mo } from "./ordinal-CHaxGJ_l.js";
18
+ import { t as So } from "./threshold-DFfqcDMa.js";
19
+ import { s as _t } from "./select-DKy99ogv.js";
20
20
  import { m as le } from "./proxy-BsxtcZKa.js";
21
- import { c as vt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
- import { n as Io } from "./numberFormattingFunction-DqMf_v1m.js";
23
- import { u as Bo } from "./use-in-view-KOXq5Kmc.js";
24
- import { A as zo } from "./index-Cv_5q6Rb.js";
25
- import { GraphFooter as Po } from "./GraphFooter.js";
26
- import { GraphHeader as _o } from "./GraphHeader.js";
21
+ import { c as yt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
+ import { n as Oo } from "./numberFormattingFunction-DqMf_v1m.js";
23
+ import { u as Eo } from "./use-in-view-KOXq5Kmc.js";
24
+ import { A as Bo } from "./index-Cv_5q6Rb.js";
25
+ import { GraphFooter as Io } from "./GraphFooter.js";
26
+ import { GraphHeader as zo } from "./GraphHeader.js";
27
27
  import { Colors as ke } from "./Colors.js";
28
- import { f as Ut } from "./fetchAndParseData-BAXhgTDM.js";
29
- import { a as Lo, G as Wo } from "./GraphContainer-B8ZqOzKI.js";
30
- import { g as Vo } from "./getUniqValue-DsqSii6M.js";
31
- import { g as $o } from "./getJenks-DTCcQSDi.js";
32
- var Fo = "Separator", qt = "horizontal", To = ["horizontal", "vertical"], Xt = ro.forwardRef((r, e) => {
33
- const { decorative: t, orientation: w = qt, ...y } = r, l = Ao(w) ? w : qt, v = t ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
34
- return /* @__PURE__ */ Ht.jsx(
35
- wo.div,
28
+ import { f as Rt } from "./fetchAndParseData-BAXhgTDM.js";
29
+ import { a as Po, G as _o } from "./GraphContainer-B8ZqOzKI.js";
30
+ import { g as Lo } from "./getUniqValue-DsqSii6M.js";
31
+ import { g as Wo } from "./getJenks-DTCcQSDi.js";
32
+ var Vo = "Separator", Gt = "horizontal", $o = ["horizontal", "vertical"], qt = oo.forwardRef((r, e) => {
33
+ const { decorative: t, orientation: w = Gt, ...y } = r, l = Fo(w) ? w : Gt, v = t ? { role: "none" } : { "aria-orientation": l === "vertical" ? l : void 0, role: "separator" };
34
+ return /* @__PURE__ */ Ut.jsx(
35
+ xo.div,
36
36
  {
37
37
  "data-orientation": l,
38
38
  ...v,
@@ -41,13 +41,13 @@ var Fo = "Separator", qt = "horizontal", To = ["horizontal", "vertical"], Xt = r
41
41
  }
42
42
  );
43
43
  });
44
- Xt.displayName = Fo;
45
- function Ao(r) {
46
- return To.includes(r);
44
+ qt.displayName = Vo;
45
+ function Fo(r) {
46
+ return $o.includes(r);
47
47
  }
48
- var Yt = Xt;
49
- const Jt = io.forwardRef((r, e) => {
50
- const t = oo.c(14);
48
+ var Ht = qt;
49
+ const Xt = ao.forwardRef((r, e) => {
50
+ const t = eo.c(14);
51
51
  let w, y, l, v;
52
52
  t[0] !== r ? ({
53
53
  className: w,
@@ -57,12 +57,12 @@ const Jt = io.forwardRef((r, e) => {
57
57
  } = r, t[0] = r, t[1] = w, t[2] = y, t[3] = l, t[4] = v) : (w = t[1], y = t[2], l = t[3], v = t[4]);
58
58
  const x = l === void 0 ? "dark" : l, s = v === void 0 ? "horizontal" : v, u = s === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", D = x === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
59
59
  let C;
60
- t[5] !== w || t[6] !== u || t[7] !== D ? (C = Vt(u, D, w), t[5] = w, t[6] = u, t[7] = D, t[8] = C) : C = t[8];
61
- let B;
62
- return t[9] !== s || t[10] !== y || t[11] !== e || t[12] !== C ? (B = /* @__PURE__ */ Ht.jsx(Yt, { ...y, ref: e, orientation: s, className: C }), t[9] = s, t[10] = y, t[11] = e, t[12] = C, t[13] = B) : B = t[13], B;
60
+ t[5] !== w || t[6] !== u || t[7] !== D ? (C = Lt(u, D, w), t[5] = w, t[6] = u, t[7] = D, t[8] = C) : C = t[8];
61
+ let I;
62
+ return t[9] !== s || t[10] !== y || t[11] !== e || t[12] !== C ? (I = /* @__PURE__ */ Ut.jsx(Ht, { ...y, ref: e, orientation: s, className: C }), t[9] = s, t[10] = y, t[11] = e, t[12] = C, t[13] = I) : I = t[13], I;
63
63
  });
64
- Jt.displayName = Yt.displayName;
65
- function Ro(r) {
64
+ Xt.displayName = Ht.displayName;
65
+ function To(r) {
66
66
  const {
67
67
  data: e,
68
68
  colors: t,
@@ -75,70 +75,70 @@ function Ro(r) {
75
75
  scale: u,
76
76
  centerPoint: D,
77
77
  tooltip: C,
78
- showLabels: B,
78
+ showLabels: I,
79
79
  mapBorderWidth: se,
80
80
  mapBorderColor: ce,
81
81
  mapNoDataColor: Ce,
82
- onSeriesMouseOver: G,
82
+ onSeriesMouseOver: R,
83
83
  showColorScale: De,
84
84
  zoomScaleExtend: He,
85
85
  zoomTranslateExtend: Xe,
86
86
  highlightedDataPoints: Ne,
87
87
  onSeriesMouseClick: L,
88
88
  resetSelectionOnDoubleClick: Me,
89
- detailsOnClick: U,
89
+ detailsOnClick: G,
90
90
  styles: N,
91
- classNames: q,
91
+ classNames: U,
92
92
  mapProjection: oe,
93
- zoomInteraction: H,
93
+ zoomInteraction: q,
94
94
  animate: b,
95
95
  dimmedOpacity: W,
96
96
  customLayers: de,
97
97
  maxRadiusValue: Se,
98
98
  categorical: ae,
99
- dotColor: X,
99
+ dotColor: H,
100
100
  collapseColorScaleByDefault: Oe,
101
101
  highlightedIds: re,
102
102
  mapProperty: me,
103
103
  dotLegendTitle: pe,
104
104
  dotBorderColor: Ee,
105
- labelColor: Ie,
106
- projectionRotate: Y,
107
- rewindCoordinatesInMapData: J,
105
+ labelColor: Be,
106
+ projectionRotate: X,
107
+ rewindCoordinatesInMapData: Y,
108
108
  overlayMapData: p,
109
109
  overlayMapBorderColor: g,
110
110
  overlayMapBorderWidth: Ye,
111
111
  locale: Je
112
- } = r, K = Ft(() => J ? Rt(w, {
112
+ } = r, J = Vt(() => Y ? Tt(w, {
113
113
  reverse: !0
114
- }) : w, [w, J]), Ke = Ft(() => !J || !p ? p : Rt(p, {
114
+ }) : w, [w, Y]), Ke = Vt(() => !Y || !p ? p : Tt(p, {
115
115
  reverse: !0
116
- }), [p, J]), [M, O] = S(void 0), [ue, he] = S(Oe === void 0 ? !(s < 680) : !Oe), fe = qe(null), [V, Z] = S(void 0), [ge, z] = S(void 0), [Be, E] = S(void 0), [ze, $] = S(void 0), f = qe(null), j = Bo(f, {
116
+ }), [p, Y]), [M, O] = S(void 0), [ue, he] = S(Oe === void 0 ? !(s < 680) : !Oe), fe = qe(null), [K, Z] = S(void 0), [ge, z] = S(void 0), [Ie, E] = S(void 0), [ze, V] = S(void 0), f = qe(null), j = Eo(f, {
117
117
  once: b.once,
118
118
  amount: b.amount
119
- }), ie = qe(null), k = e.filter((o) => o.radius === void 0 || o.radius === null).length !== e.length ? So().domain([0, Se]).range([0.25, v]).nice() : void 0, Pe = ae ? Oo().domain(l).range(t) : Eo().domain(l).range(t);
119
+ }), ie = qe(null), k = e.filter((o) => o.radius === void 0 || o.radius === null).length !== e.length ? No().domain([0, Se]).range([0.25, v]).nice() : void 0, Pe = ae ? Mo().domain(l).range(t) : So().domain(l).range(t);
120
120
  Ue(() => {
121
- const o = Wt(ie.current), i = Wt(f.current), h = (n) => {
122
- if (H === "noZoom") return !1;
123
- if (H === "button") return !n.type.includes("wheel");
124
- const T = n.type === "wheel", $e = n.type.startsWith("touch"), Fe = n.type === "mousedown" || n.type === "mousemove";
125
- return $e ? !0 : T ? H === "scroll" ? !0 : n.ctrlKey : Fe && !n.button && !n.ctrlKey;
126
- }, _ = po().scaleExtent(He).translateExtent(Xe || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
121
+ const o = _t(ie.current), i = _t(f.current), h = (n) => {
122
+ if (q === "noZoom") return !1;
123
+ if (q === "button") return !n.type.includes("wheel");
124
+ const F = n.type === "wheel", $e = n.type.startsWith("touch"), Fe = n.type === "mousedown" || n.type === "mousemove";
125
+ return $e ? !0 : F ? q === "scroll" ? !0 : n.ctrlKey : Fe && !n.button && !n.ctrlKey;
126
+ }, _ = co().scaleExtent(He).translateExtent(Xe || [[-20, -20], [s + 20, x + 20]]).filter(h).on("zoom", ({
127
127
  transform: n
128
128
  }) => {
129
129
  o.attr("transform", n);
130
130
  });
131
131
  i.call(_), fe.current = _;
132
- }, [x, s, H]);
133
- const Q = uo(K), F = bo(K), _e = (Q[2] - Q[0]) * 1.15, Le = (Q[3] - Q[1]) * 1.15, We = s * 190 / 960 * 360 / _e, Ve = x * 190 / 678 * 180 / Le, P = u * Math.min(We, Ve), ee = oe === "mercator" ? ho().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "equalEarth" ? fo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "naturalEarth" ? go().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "orthographic" ? yo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : vo().rotate(Y).center(D || F.geometry.coordinates).translate([s / 2, x / 2]).scale(P), te = xo().projection(ee), ye = (o) => {
132
+ }, [x, s, q]);
133
+ const Q = mo(J), $ = vo(J), _e = (Q[2] - Q[0]) * 1.15, Le = (Q[3] - Q[1]) * 1.15, We = s * 190 / 960 * 360 / _e, Ve = x * 190 / 678 * 180 / Le, P = u * Math.min(We, Ve), ee = oe === "mercator" ? po().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "equalEarth" ? uo().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "naturalEarth" ? ho().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : oe === "orthographic" ? fo().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P) : go().rotate(X).center(D || $.geometry.coordinates).translate([s / 2, x / 2]).scale(P), te = yo().projection(ee), ye = (o) => {
134
134
  if (!f.current || !fe.current) return;
135
- Wt(f.current).call(fe.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
135
+ _t(f.current).call(fe.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
136
136
  };
137
137
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
138
138
  /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
139
139
  /* @__PURE__ */ a.jsx(le.svg, { width: `${s}px`, height: `${x}px`, viewBox: `0 0 ${s} ${x}`, ref: f, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: ie, children: [
140
140
  de.filter((o) => o.position === "before").map((o) => o.layer),
141
- K.features.map((o, i) => {
141
+ J.features.map((o, i) => {
142
142
  if (!o.properties?.[me]) return null;
143
143
  const h = te(o);
144
144
  return h ? /* @__PURE__ */ a.jsx(le.g, { opacity: M ? W : re ? re.indexOf(o.properties[me]) !== -1 ? 1 : W : 1, children: /* @__PURE__ */ a.jsx("path", { d: h, style: {
@@ -148,16 +148,16 @@ function Ro(r) {
148
148
  vectorEffect: "non-scaling-stroke"
149
149
  } }) }, i) : null;
150
150
  }),
151
- /* @__PURE__ */ a.jsxs(zo, { children: [
151
+ /* @__PURE__ */ a.jsxs(Bo, { children: [
152
152
  e.filter((o) => o.id).map((o) => {
153
- const i = K.features.findIndex(
153
+ const i = J.features.findIndex(
154
154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
155
155
  (n) => o.id === n.properties[me]
156
156
  );
157
157
  if (i === -1) return null;
158
- const h = te(K.features[i]);
158
+ const h = te(J.features[i]);
159
159
  if (!h) return null;
160
- const _ = vt(o.x) ? Ce : (
160
+ const _ = yt(o.x) ? Ce : (
161
161
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
162
162
  Pe(o.x)
163
163
  );
@@ -177,13 +177,13 @@ function Ro(r) {
177
177
  duration: b.duration
178
178
  }
179
179
  }, onMouseEnter: (n) => {
180
- z(o), $(n.clientY), E(n.clientX), G?.(o);
180
+ z(o), V(n.clientY), E(n.clientX), R?.(o);
181
181
  }, onMouseMove: (n) => {
182
- z(o), $(n.clientY), E(n.clientX);
182
+ z(o), V(n.clientY), E(n.clientX);
183
183
  }, onMouseLeave: () => {
184
- z(void 0), E(void 0), $(void 0), G?.(void 0);
184
+ z(void 0), E(void 0), V(void 0), R?.(void 0);
185
185
  }, onClick: () => {
186
- (L || U) && (At(V, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
186
+ (L || G) && (Ft(K, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
187
187
  }, children: /* @__PURE__ */ a.jsx(le.path, { d: h, variants: {
188
188
  initial: {
189
189
  fill: _,
@@ -217,7 +217,7 @@ function Ro(r) {
217
217
  vectorEffect: "non-scaling-stroke"
218
218
  } }) }, i) : null;
219
219
  }),
220
- e.filter((o) => !vt(o.lat) && !vt(o.long)).map((o) => {
220
+ e.filter((o) => !yt(o.lat) && !yt(o.long)).map((o) => {
221
221
  const i = ee([o.long, o.lat])[0] > 0.8 * s ? -1 : 1;
222
222
  return /* @__PURE__ */ a.jsxs(le.g, { className: "undp-map-dots", variants: {
223
223
  initial: {
@@ -235,24 +235,24 @@ function Ro(r) {
235
235
  duration: b.duration
236
236
  }
237
237
  }, onMouseEnter: (h) => {
238
- z(o), $(h.clientY), E(h.clientX), G?.(o);
238
+ z(o), V(h.clientY), E(h.clientX), R?.(o);
239
239
  }, onMouseMove: (h) => {
240
- z(o), $(h.clientY), E(h.clientX);
240
+ z(o), V(h.clientY), E(h.clientX);
241
241
  }, onMouseLeave: () => {
242
- z(void 0), E(void 0), $(void 0), G?.(void 0);
242
+ z(void 0), E(void 0), V(void 0), R?.(void 0);
243
243
  }, onClick: () => {
244
- (L || U) && (At(V, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
244
+ (L || G) && (Ft(K, o) && Me ? (Z(void 0), L?.(void 0)) : (Z(o), L?.(o)));
245
245
  }, transform: `translate(${ee([o.long, o.lat])[0]},${ee([o.long, o.lat])[1]})`, children: [
246
246
  /* @__PURE__ */ a.jsx(le.circle, { cx: 0, cy: 0, variants: {
247
247
  initial: {
248
248
  r: 0,
249
- fill: X,
250
- stroke: Ee || X
249
+ fill: H,
250
+ stroke: Ee || H
251
251
  },
252
252
  whileInView: {
253
253
  r: k ? k(o.radius || 0) : v,
254
- fill: X,
255
- stroke: Ee || X,
254
+ fill: H,
255
+ stroke: Ee || H,
256
256
  transition: {
257
257
  duration: b.duration
258
258
  }
@@ -266,7 +266,7 @@ function Ro(r) {
266
266
  fillOpacity: 0.8,
267
267
  vectorEffect: "non-scaling-stroke"
268
268
  } }),
269
- B && o.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
269
+ I && o.label ? /* @__PURE__ */ a.jsx(le.text, { variants: {
270
270
  initial: {
271
271
  opacity: 0,
272
272
  x: i * (k ? k(o.radius || 0) : v)
@@ -283,9 +283,9 @@ function Ro(r) {
283
283
  transition: {
284
284
  duration: b.duration
285
285
  }
286
- }, y: 0, className: Vt("text-sm", q?.graphObjectValues), style: {
286
+ }, y: 0, className: Lt("text-sm", U?.graphObjectValues), style: {
287
287
  textAnchor: i === -1 ? "end" : "start",
288
- fill: Ie || "#000",
288
+ fill: Be || "#000",
289
289
  vectorEffect: "non-scaling-stroke",
290
290
  ...N?.graphObjectValues || {}
291
291
  }, dx: i * 4, dy: 5, children: o.label }) : null
@@ -294,29 +294,29 @@ function Ro(r) {
294
294
  ] }),
295
295
  de.filter((o) => o.position === "after").map((o) => o.layer)
296
296
  ] }) }),
297
- De === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Vt("absolute left-4 bottom-4 map-color-legend", q?.colorLegend), children: ue ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
297
+ De === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Lt("absolute left-4 bottom-4 map-color-legend", U?.colorLegend), children: ue ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
298
298
  /* @__PURE__ */ a.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: () => {
299
299
  he(!1);
300
- }, children: /* @__PURE__ */ a.jsx(ko, {}) }),
300
+ }, children: /* @__PURE__ */ a.jsx(wo, {}) }),
301
301
  /* @__PURE__ */ a.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
302
302
  width: ae ? void 0 : "340px"
303
303
  }, children: [
304
304
  pe && pe !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
305
305
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
306
306
  /* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
307
- backgroundColor: X
307
+ backgroundColor: H
308
308
  } }),
309
- /* @__PURE__ */ a.jsx(Lt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
309
+ /* @__PURE__ */ a.jsx(Pt, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
310
310
  display: "-webkit-box",
311
311
  WebkitLineClamp: "1",
312
312
  WebkitBoxOrient: "vertical"
313
313
  }, children: pe })
314
314
  ] }),
315
- /* @__PURE__ */ a.jsx(Gt, { size: "xl" }),
316
- /* @__PURE__ */ a.jsx(Jt, {}),
317
- /* @__PURE__ */ a.jsx(Gt, { size: "xl" })
315
+ /* @__PURE__ */ a.jsx(At, { size: "xl" }),
316
+ /* @__PURE__ */ a.jsx(Xt, {}),
317
+ /* @__PURE__ */ a.jsx(At, { size: "xl" })
318
318
  ] }) : null,
319
- y && y !== "" ? /* @__PURE__ */ a.jsx(Lt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
319
+ y && y !== "" ? /* @__PURE__ */ a.jsx(Pt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
320
320
  display: "-webkit-box",
321
321
  WebkitLineClamp: "1",
322
322
  WebkitBoxOrient: "vertical"
@@ -329,7 +329,7 @@ function Ro(r) {
329
329
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
330
330
  backgroundColor: t[i % t.length]
331
331
  } }),
332
- /* @__PURE__ */ a.jsx(Lt, { size: "sm", marginBottom: "none", leading: "none", children: o })
332
+ /* @__PURE__ */ a.jsx(Pt, { size: "sm", marginBottom: "none", leading: "none", children: o })
333
333
  ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
334
334
  l.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
335
335
  O(t[i]);
@@ -344,7 +344,7 @@ function Ro(r) {
344
344
  } }),
345
345
  /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / t.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
346
346
  textAnchor: "middle"
347
- }, children: Io(o, void 0, void 0, void 0, void 0, Je) })
347
+ }, children: Oo(o, void 0, void 0, void 0, void 0, Je) })
348
348
  ] }, i)),
349
349
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
350
350
  O(t[l.length]);
@@ -360,18 +360,18 @@ function Ro(r) {
360
360
  ] })
361
361
  ] }) : /* @__PURE__ */ a.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: () => {
362
362
  he(!0);
363
- }, children: /* @__PURE__ */ a.jsx(Co, {}) }) }),
364
- H === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
363
+ }, children: /* @__PURE__ */ a.jsx(jo, {}) }) }),
364
+ q === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
365
365
  /* @__PURE__ */ a.jsx("button", { onClick: () => ye("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: "+" }),
366
366
  /* @__PURE__ */ a.jsx("button", { onClick: () => ye("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: "–" })
367
367
  ] })
368
368
  ] }),
369
- U && V !== void 0 ? /* @__PURE__ */ a.jsx(Mo, { body: U, data: V, setData: Z, className: q?.modal }) : null,
370
- ge && C && Be && ze ? /* @__PURE__ */ a.jsx(jo, { data: ge, body: C, xPos: Be, yPos: ze, backgroundStyle: N?.tooltip, className: q?.tooltip }) : null
369
+ G && K !== void 0 ? /* @__PURE__ */ a.jsx(Do, { body: G, data: K, setData: Z, className: U?.modal }) : null,
370
+ ge && C && Ie && ze ? /* @__PURE__ */ a.jsx(bo, { data: ge, body: C, xPos: Ie, yPos: ze, backgroundStyle: N?.tooltip, className: U?.tooltip }) : null
371
371
  ] });
372
372
  }
373
- function Ia(r) {
374
- const e = ao.c(143), {
373
+ function Oa(r) {
374
+ const e = to.c(141), {
375
375
  data: t,
376
376
  mapData: w,
377
377
  graphTitle: y,
@@ -382,155 +382,152 @@ function Ia(r) {
382
382
  width: u,
383
383
  footNote: D,
384
384
  mapColorLegendTitle: C,
385
- colorDomain: B,
385
+ colorDomain: I,
386
386
  choroplethScaleType: se,
387
387
  radius: ce,
388
388
  scale: Ce,
389
- centerPoint: G,
389
+ centerPoint: R,
390
390
  padding: De,
391
391
  mapBorderWidth: He,
392
392
  mapNoDataColor: Xe,
393
393
  backgroundColor: Ne,
394
394
  showLabels: L,
395
395
  mapBorderColor: Me,
396
- tooltip: U,
396
+ tooltip: G,
397
397
  relativeHeight: N,
398
- onSeriesMouseOver: q,
398
+ onSeriesMouseOver: U,
399
399
  isWorldMap: oe,
400
- showColorScale: H,
400
+ showColorScale: q,
401
401
  zoomScaleExtend: b,
402
402
  zoomTranslateExtend: W,
403
403
  graphID: de,
404
404
  highlightedDataPoints: Se,
405
405
  onSeriesMouseClick: ae,
406
- graphDownload: X,
406
+ graphDownload: H,
407
407
  dataDownload: Oe,
408
408
  showAntarctica: re,
409
409
  language: me,
410
410
  minHeight: pe,
411
411
  theme: Ee,
412
- ariaLabel: Ie,
413
- resetSelectionOnDoubleClick: Y,
414
- detailsOnClick: J,
412
+ ariaLabel: Be,
413
+ resetSelectionOnDoubleClick: X,
414
+ detailsOnClick: Y,
415
415
  styles: p,
416
416
  classNames: g,
417
417
  mapProjection: Ye,
418
418
  zoomInteraction: Je,
419
- animate: K,
419
+ animate: J,
420
420
  dimmedOpacity: Ke,
421
421
  customLayers: M,
422
422
  maxRadiusValue: O,
423
423
  timeline: ue,
424
424
  collapseColorScaleByDefault: he,
425
425
  dotColor: fe,
426
- highlightedIds: V,
426
+ highlightedIds: K,
427
427
  mapProperty: Z,
428
428
  dotLegendTitle: ge,
429
429
  dotBorderColor: z,
430
- labelColor: Be,
430
+ labelColor: Ie,
431
431
  projectionRotate: E,
432
432
  rewindCoordinatesInMapData: ze,
433
- locale: $,
433
+ locale: V,
434
434
  mapOverlay: f
435
- } = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === 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." : D, k = se === void 0 ? "threshold" : se, Pe = ce === void 0 ? 5 : ce, Q = Ce === void 0 ? 0.95 : Ce, F = He === void 0 ? 0.5 : He, _e = Xe === void 0 ? ke.light.graphNoData : Xe, Le = Ne === void 0 ? !1 : Ne, We = L === void 0 ? !1 : L, Ve = Me === void 0 ? ke.light.grays["gray-500"] : Me, P = oe === void 0 ? !0 : oe, ee = H === void 0 ? !0 : H;
435
+ } = r, j = w === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : w, ie = D === 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." : D, k = se === void 0 ? "threshold" : se, Pe = ce === void 0 ? 5 : ce, Q = Ce === void 0 ? 0.95 : Ce, $ = He === void 0 ? 0.5 : He, _e = Xe === void 0 ? ke.light.graphNoData : Xe, Le = Ne === void 0 ? !1 : Ne, We = L === void 0 ? !1 : L, Ve = Me === void 0 ? ke.light.grays["gray-500"] : Me, P = oe === void 0 ? !0 : oe, ee = q === void 0 ? !0 : q;
436
436
  let te;
437
437
  e[0] !== b ? (te = b === void 0 ? [0.8, 6] : b, e[0] = b, e[1] = te) : te = e[1];
438
- const ye = te, o = X === void 0 ? !1 : X, i = Oe === void 0 ? !1 : Oe, h = re === void 0 ? !1 : re, _ = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, T = Ee === void 0 ? "light" : Ee, $e = Y === void 0 ? !0 : Y, Fe = Ye === void 0 ? "naturalEarth" : Ye, xt = Je === void 0 ? "button" : Je, Ze = K === void 0 ? !1 : K, bt = Ke === void 0 ? 0.3 : Ke;
438
+ const ye = te, o = H === void 0 ? !1 : H, i = Oe === void 0 ? !1 : Oe, h = re === void 0 ? !1 : re, _ = me === void 0 ? "en" : me, n = pe === void 0 ? 0 : pe, F = Ee === void 0 ? "light" : Ee, $e = X === void 0 ? !0 : X, Fe = Ye === void 0 ? "naturalEarth" : Ye, vt = Je === void 0 ? "button" : Je, Ze = J === void 0 ? !1 : J, xt = Ke === void 0 ? 0.3 : Ke;
439
439
  let Qe;
440
440
  e[2] !== M ? (Qe = M === void 0 ? [] : M, e[2] = M, e[3] = Qe) : Qe = e[3];
441
- const wt = Qe;
441
+ const bt = Qe;
442
442
  let et;
443
443
  e[4] !== ue ? (et = ue === void 0 ? {
444
444
  enabled: !1,
445
445
  autoplay: !1,
446
446
  showOnlyActiveDate: !0
447
447
  } : ue, e[4] = ue, e[5] = et) : et = e[5];
448
- const c = et, jt = fe === void 0 ? ke.primaryColors["blue-600"] : fe;
448
+ const c = et, wt = fe === void 0 ? ke.primaryColors["blue-600"] : fe, jt = Z === void 0 ? "ISO3" : Z, kt = Ie === void 0 ? ke.primaryColors["blue-600"] : Ie;
449
449
  let tt;
450
- e[6] !== V ? (tt = V === void 0 ? [] : V, e[6] = V, e[7] = tt) : tt = e[7];
451
- const kt = tt, Ct = Z === void 0 ? "ISO3" : Z, Dt = Be === void 0 ? ke.primaryColors["blue-600"] : Be;
452
- let ot;
453
- e[8] !== E ? (ot = E === void 0 ? [0, 0] : E, e[8] = E, e[9] = ot) : ot = e[9];
454
- const Nt = ot, Mt = ze === void 0 ? !0 : ze, St = $ === void 0 ? "en" : $, [ne, Kt] = S(0), [Te, Zt] = S(0), [A, Qt] = S(c.autoplay);
450
+ e[6] !== E ? (tt = E === void 0 ? [0, 0] : E, e[6] = E, e[7] = tt) : tt = e[7];
451
+ const Ct = tt, Dt = ze === void 0 ? !0 : ze, Nt = V === void 0 ? "en" : V, [ne, Yt] = S(0), [Te, Jt] = S(0), [T, Kt] = S(c.autoplay);
455
452
  let Ae;
456
- if (e[10] !== t || e[11] !== c.dateFormat) {
453
+ if (e[8] !== t || e[9] !== c.dateFormat) {
457
454
  let d;
458
- e[13] !== c.dateFormat ? (d = (I) => lo(`${I.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[13] = c.dateFormat, e[14] = d) : d = e[14], Ae = [...new Set(t.filter(ea).map(d))], Ae.sort(Qo), e[10] = t, e[11] = c.dateFormat, e[12] = Ae;
455
+ e[11] !== c.dateFormat ? (d = (B) => io(`${B.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = c.dateFormat, e[12] = d) : d = e[12], Ae = [...new Set(t.filter(Zo).map(d))], Ae.sort(Ko), e[8] = t, e[9] = c.dateFormat, e[10] = Ae;
459
456
  } else
460
- Ae = e[12];
461
- const m = Ae, [R, Ot] = S(c.autoplay ? 0 : m.length - 1), [ve, eo] = S(void 0), [Et, to] = S(void 0), It = qe(null), $t = qe(null);
462
- let at;
463
- e[15] !== k || e[16] !== B || e[17] !== l?.length || e[18] !== t ? (at = B || (k === "categorical" ? Vo(t, "x") : $o(t.map(Zo), l?.length || 4)), e[15] = k, e[16] = B, e[17] = l?.length, e[18] = t, e[19] = at) : at = e[19];
464
- const Re = at;
465
- let rt, it;
466
- e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rt = () => {
467
- const d = new ResizeObserver((I) => {
468
- Kt(I[0].target.clientWidth || 620), Zt(I[0].target.clientHeight || 480);
457
+ Ae = e[10];
458
+ const m = Ae, [A, Mt] = S(c.autoplay ? 0 : m.length - 1), [ve, Zt] = S(void 0), [St, Qt] = S(void 0), Ot = qe(null), Wt = qe(null);
459
+ let ot;
460
+ e[13] !== k || e[14] !== I || e[15] !== l?.length || e[16] !== t ? (ot = I || (k === "categorical" ? Lo(t, "x") : Wo(t.map(Jo), l?.length || 4)), e[13] = k, e[14] = I, e[15] = l?.length, e[16] = t, e[17] = ot) : ot = e[17];
461
+ const Re = ot;
462
+ let at, rt;
463
+ e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (at = () => {
464
+ const d = new ResizeObserver((B) => {
465
+ Yt(B[0].target.clientWidth || 620), Jt(B[0].target.clientHeight || 480);
469
466
  });
470
- return It.current && d.observe(It.current), () => d.disconnect();
471
- }, it = [], e[20] = rt, e[21] = it) : (rt = e[20], it = e[21]), Ue(rt, it);
472
- let nt;
473
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (nt = (d) => {
474
- eo(d);
475
- }, e[22] = nt) : nt = e[22];
476
- const lt = Tt(nt);
467
+ return Ot.current && d.observe(Ot.current), () => d.disconnect();
468
+ }, rt = [], e[18] = at, e[19] = rt) : (at = e[18], rt = e[19]), Ue(at, rt);
469
+ let it;
470
+ e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (it = (d) => {
471
+ Zt(d);
472
+ }, e[20] = it) : it = e[20];
473
+ const nt = $t(it);
474
+ let lt;
475
+ e[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lt = (d) => {
476
+ Qt(d);
477
+ }, e[21] = lt) : lt = e[21];
478
+ const Ge = $t(lt);
477
479
  let st;
478
- e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (st = (d) => {
479
- to(d);
480
- }, e[23] = st) : st = e[23];
481
- const Ge = Tt(st);
480
+ e[22] !== j || e[23] !== nt ? (st = () => {
481
+ typeof j == "string" ? Rt(j).then((B) => {
482
+ nt(B);
483
+ }) : nt(j);
484
+ }, e[22] = j, e[23] = nt, e[24] = st) : st = e[24];
482
485
  let ct;
483
- e[24] !== j || e[25] !== lt ? (ct = () => {
484
- typeof j == "string" ? Ut(j).then((I) => {
485
- lt(I);
486
- }) : lt(j);
487
- }, e[24] = j, e[25] = lt, e[26] = ct) : ct = e[26];
486
+ e[25] !== j ? (ct = [j], e[25] = j, e[26] = ct) : ct = e[26], Ue(st, ct);
488
487
  let dt;
489
- e[27] !== j ? (dt = [j], e[27] = j, e[28] = dt) : dt = e[28], Ue(ct, dt);
490
- let mt;
491
- e[29] !== f?.mapData || e[30] !== Ge ? (mt = () => {
492
- f?.mapData || Ge(void 0), typeof f?.mapData == "string" ? Ut(f?.mapData).then((I) => {
493
- Ge(I);
488
+ e[27] !== f?.mapData || e[28] !== Ge ? (dt = () => {
489
+ f?.mapData || Ge(void 0), typeof f?.mapData == "string" ? Rt(f?.mapData).then((B) => {
490
+ Ge(B);
494
491
  }) : Ge(f?.mapData);
495
- }, e[29] = f?.mapData, e[30] = Ge, e[31] = mt) : mt = e[31];
496
- const Bt = f?.mapData;
497
- let pt;
498
- e[32] !== Bt ? (pt = [Bt], e[32] = Bt, e[33] = pt) : pt = e[33], Ue(mt, pt);
499
- let ut, ht;
500
- e[34] !== A || e[35] !== c.speed || e[36] !== m ? (ut = () => {
492
+ }, e[27] = f?.mapData, e[28] = Ge, e[29] = dt) : dt = e[29];
493
+ const Et = f?.mapData;
494
+ let mt;
495
+ e[30] !== Et ? (mt = [Et], e[30] = Et, e[31] = mt) : mt = e[31], Ue(dt, mt);
496
+ let pt, ut;
497
+ e[32] !== T || e[33] !== c.speed || e[34] !== m ? (pt = () => {
501
498
  const d = setInterval(() => {
502
- Ot((I) => I < m.length - 1 ? I + 1 : 0);
499
+ Mt((B) => B < m.length - 1 ? B + 1 : 0);
503
500
  }, (c.speed || 2) * 1e3);
504
- return A || clearInterval(d), () => clearInterval(d);
505
- }, ht = [m, A, c.speed], e[34] = A, e[35] = c.speed, e[36] = m, e[37] = ut, e[38] = ht) : (ut = e[37], ht = e[38]), Ue(ut, ht);
506
- const zt = c.dateFormat || "yyyy";
507
- let ft;
508
- e[39] !== R || e[40] !== zt || e[41] !== c.showOnlyActiveDate || e[42] !== m ? (ft = so(m, R, c.showOnlyActiveDate, zt), e[39] = R, e[40] = zt, e[41] = c.showOnlyActiveDate, e[42] = m, e[43] = ft) : ft = e[43];
509
- const gt = ft, Pt = g?.graphContainer, _t = p?.graphContainer;
501
+ return T || clearInterval(d), () => clearInterval(d);
502
+ }, ut = [m, T, c.speed], e[32] = T, e[33] = c.speed, e[34] = m, e[35] = pt, e[36] = ut) : (pt = e[35], ut = e[36]), Ue(pt, ut);
503
+ const Bt = c.dateFormat || "yyyy";
504
+ let ht;
505
+ e[37] !== A || e[38] !== Bt || e[39] !== c.showOnlyActiveDate || e[40] !== m ? (ht = no(m, A, c.showOnlyActiveDate, Bt), e[37] = A, e[38] = Bt, e[39] = c.showOnlyActiveDate, e[40] = m, e[41] = ht) : ht = e[41];
506
+ const ft = ht, It = g?.graphContainer, zt = p?.graphContainer;
510
507
  let xe;
511
- e[44] !== g?.description || e[45] !== g?.title || e[46] !== t || e[47] !== i || e[48] !== x || e[49] !== o || e[50] !== y || e[51] !== p?.description || e[52] !== p?.title || e[53] !== u ? (xe = y || x || o || i ? /* @__PURE__ */ a.jsx(_o, { styles: {
508
+ e[42] !== g?.description || e[43] !== g?.title || e[44] !== t || e[45] !== i || e[46] !== x || e[47] !== o || e[48] !== y || e[49] !== p?.description || e[50] !== p?.title || e[51] !== u ? (xe = y || x || o || i ? /* @__PURE__ */ a.jsx(zo, { styles: {
512
509
  title: p?.title,
513
510
  description: p?.description
514
511
  }, classNames: {
515
512
  title: g?.title,
516
513
  description: g?.description
517
- }, graphTitle: y, graphDescription: x, width: u, graphDownload: o ? $t : void 0, dataDownload: i ? t.map(Ko).filter(Jo).length > 0 ? t.map(Yo).filter(Xo) : t.filter(Ho) : null }) : null, e[44] = g?.description, e[45] = g?.title, e[46] = t, e[47] = i, e[48] = x, e[49] = o, e[50] = y, e[51] = p?.description, e[52] = p?.title, e[53] = u, e[54] = xe) : xe = e[54];
514
+ }, graphTitle: y, graphDescription: x, width: u, graphDownload: o ? Wt : void 0, dataDownload: i ? t.map(Yo).filter(Xo).length > 0 ? t.map(Ho).filter(qo) : t.filter(Uo) : null }) : null, e[42] = g?.description, e[43] = g?.title, e[44] = t, e[45] = i, e[46] = x, e[47] = o, e[48] = y, e[49] = p?.description, e[50] = p?.title, e[51] = u, e[52] = xe) : xe = e[52];
518
515
  let be;
519
- e[55] !== R || e[56] !== gt || e[57] !== A || e[58] !== c.enabled || e[59] !== m ? (be = c.enabled && m.length > 0 && gt ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
516
+ e[53] !== A || e[54] !== ft || e[55] !== T || e[56] !== c.enabled || e[57] !== m ? (be = c.enabled && m.length > 0 && ft ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
520
517
  /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
521
- Qt(!A);
522
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ a.jsx(Do, {}) : /* @__PURE__ */ a.jsx(No, {}) }),
523
- /* @__PURE__ */ a.jsx(co, { min: m[0], max: m[m.length - 1], marks: gt, step: null, defaultValue: m[m.length - 1], value: m[R], onChangeComplete: (d) => {
524
- Ot(m.indexOf(d));
518
+ Kt(!T);
519
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": T ? "Click to pause animation" : "Click to play animation", children: T ? /* @__PURE__ */ a.jsx(ko, {}) : /* @__PURE__ */ a.jsx(Co, {}) }),
520
+ /* @__PURE__ */ a.jsx(lo, { min: m[0], max: m[m.length - 1], marks: ft, step: null, defaultValue: m[m.length - 1], value: m[A], onChangeComplete: (d) => {
521
+ Mt(m.indexOf(d));
525
522
  }, onChange: (d) => {
526
- Ot(m.indexOf(d));
523
+ Mt(m.indexOf(d));
527
524
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
528
- ] }) : null, e[55] = R, e[56] = gt, e[57] = A, e[58] = c.enabled, e[59] = m, e[60] = be) : be = e[60];
525
+ ] }) : null, e[53] = A, e[54] = ft, e[55] = T, e[56] = c.enabled, e[57] = m, e[58] = be) : be = e[58];
529
526
  let we;
530
- e[61] !== Ze || e[62] !== G || e[63] !== k || e[64] !== g || e[65] !== he || e[66] !== l || e[67] !== wt || e[68] !== t || e[69] !== J || e[70] !== bt || e[71] !== Re || e[72] !== z || e[73] !== jt || e[74] !== ge || e[75] !== s || e[76] !== Se || e[77] !== kt || e[78] !== R || e[79] !== P || e[80] !== Dt || e[81] !== St || e[82] !== Ve || e[83] !== F || e[84] !== C || e[85] !== _e || e[86] !== f?.mapBorderColor || e[87] !== f?.mapBorderWidth || e[88] !== Fe || e[89] !== Ct || e[90] !== ve || e[91] !== O || e[92] !== n || e[93] !== ae || e[94] !== q || e[95] !== Et || e[96] !== Nt || e[97] !== Pe || e[98] !== N || e[99] !== $e || e[100] !== Mt || e[101] !== Q || e[102] !== h || e[103] !== ee || e[104] !== We || e[105] !== p || e[106] !== Te || e[107] !== ne || e[108] !== T || e[109] !== c.dateFormat || e[110] !== c.enabled || e[111] !== U || e[112] !== m || e[113] !== u || e[114] !== xt || e[115] !== ye || e[116] !== W ? (we = /* @__PURE__ */ a.jsx(Lo, { ref: It, children: ne && Te && ve ? /* @__PURE__ */ a.jsx(Ro, { dotColor: jt, data: t.filter((d) => c.enabled ? `${d.date}` === no(new Date(m[R]), c.dateFormat || "yyyy") : d), mapData: h ? ve : {
527
+ e[59] !== Ze || e[60] !== R || e[61] !== k || e[62] !== g || e[63] !== he || e[64] !== l || e[65] !== bt || e[66] !== t || e[67] !== Y || e[68] !== xt || e[69] !== Re || e[70] !== z || e[71] !== wt || e[72] !== ge || e[73] !== s || e[74] !== Se || e[75] !== K || e[76] !== A || e[77] !== P || e[78] !== kt || e[79] !== Nt || e[80] !== Ve || e[81] !== $ || e[82] !== C || e[83] !== _e || e[84] !== f?.mapBorderColor || e[85] !== f?.mapBorderWidth || e[86] !== Fe || e[87] !== jt || e[88] !== ve || e[89] !== O || e[90] !== n || e[91] !== ae || e[92] !== U || e[93] !== St || e[94] !== Ct || e[95] !== Pe || e[96] !== N || e[97] !== $e || e[98] !== Dt || e[99] !== Q || e[100] !== h || e[101] !== ee || e[102] !== We || e[103] !== p || e[104] !== Te || e[105] !== ne || e[106] !== F || e[107] !== c.dateFormat || e[108] !== c.enabled || e[109] !== G || e[110] !== m || e[111] !== u || e[112] !== vt || e[113] !== ye || e[114] !== W ? (we = /* @__PURE__ */ a.jsx(Po, { ref: Ot, children: ne && Te && ve ? /* @__PURE__ */ a.jsx(To, { dotColor: wt, data: t.filter((d) => c.enabled ? `${d.date}` === ro(new Date(m[A]), c.dateFormat || "yyyy") : d), mapData: h ? ve : {
531
528
  ...ve,
532
- features: ve.features.filter(qo)
533
- }, overlayMapData: Et, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Re, width: ne, height: Te, scale: Q, centerPoint: G, colors: l || (k === "categorical" ? ke[T].sequentialColors[`neutralColorsx0${Re.length}`] : ke[T].sequentialColors[`neutralColorsx0${Re.length + 1}`]), mapColorLegendTitle: C, radius: Pe, categorical: k === "categorical", mapBorderWidth: F, mapNoDataColor: _e, mapBorderColor: Ve, tooltip: U, onSeriesMouseOver: q, showLabels: We, isWorldMap: P, showColorScale: ee, zoomScaleExtend: ye, zoomTranslateExtend: W, onSeriesMouseClick: ae, highlightedDataPoints: Se, resetSelectionOnDoubleClick: $e, styles: p, classNames: g, zoomInteraction: xt, detailsOnClick: J, mapProjection: Fe || (P ? "naturalEarth" : "mercator"), animate: Ze === !0 ? {
529
+ features: ve.features.filter(Go)
530
+ }, overlayMapData: St, overlayMapBorderColor: f?.mapBorderColor, overlayMapBorderWidth: f?.mapBorderWidth, colorDomain: Re, width: ne, height: Te, scale: Q, centerPoint: R, colors: l || (k === "categorical" ? ke[F].sequentialColors[`neutralColorsx0${Re.length}`] : ke[F].sequentialColors[`neutralColorsx0${Re.length + 1}`]), mapColorLegendTitle: C, radius: Pe, categorical: k === "categorical", mapBorderWidth: $, mapNoDataColor: _e, mapBorderColor: Ve, tooltip: G, onSeriesMouseOver: U, showLabels: We, isWorldMap: P, showColorScale: ee, zoomScaleExtend: ye, zoomTranslateExtend: W, onSeriesMouseClick: ae, highlightedDataPoints: Se, resetSelectionOnDoubleClick: $e, styles: p, classNames: g, zoomInteraction: vt, detailsOnClick: Y, mapProjection: Fe || (P ? "naturalEarth" : "mercator"), animate: Ze === !0 ? {
534
531
  duration: 0.5,
535
532
  once: !0,
536
533
  amount: 0.5
@@ -538,59 +535,59 @@ function Ia(r) {
538
535
  duration: 0,
539
536
  once: !0,
540
537
  amount: 0
541
- }, dimmedOpacity: bt, customLayers: wt, maxRadiusValue: vt(O) ? Math.max(...t.map(Uo).filter(Go)) : O, collapseColorScaleByDefault: he, highlightedIds: kt, mapProperty: Ct, dotLegendTitle: ge, dotBorderColor: z, labelColor: Dt, projectionRotate: Nt, rewindCoordinatesInMapData: Mt, locale: St }) : /* @__PURE__ */ a.jsx("div", { style: {
538
+ }, dimmedOpacity: xt, customLayers: bt, maxRadiusValue: yt(O) ? Math.max(...t.map(Ro).filter(Ao)) : O, collapseColorScaleByDefault: he, highlightedIds: K, mapProperty: jt, dotLegendTitle: ge, dotBorderColor: z, labelColor: kt, projectionRotate: Ct, rewindCoordinatesInMapData: Dt, locale: Nt }) : /* @__PURE__ */ a.jsx("div", { style: {
542
539
  height: `${Math.max(n, s || (N ? n ? (u || ne) * N > n ? (u || ne) * N : n : (u || ne) * N : Te))}px`
543
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(mo, { "aria-label": "Loading graph" }) }) }), e[61] = Ze, e[62] = G, e[63] = k, e[64] = g, e[65] = he, e[66] = l, e[67] = wt, e[68] = t, e[69] = J, e[70] = bt, e[71] = Re, e[72] = z, e[73] = jt, e[74] = ge, e[75] = s, e[76] = Se, e[77] = kt, e[78] = R, e[79] = P, e[80] = Dt, e[81] = St, e[82] = Ve, e[83] = F, e[84] = C, e[85] = _e, e[86] = f?.mapBorderColor, e[87] = f?.mapBorderWidth, e[88] = Fe, e[89] = Ct, e[90] = ve, e[91] = O, e[92] = n, e[93] = ae, e[94] = q, e[95] = Et, e[96] = Nt, e[97] = Pe, e[98] = N, e[99] = $e, e[100] = Mt, e[101] = Q, e[102] = h, e[103] = ee, e[104] = We, e[105] = p, e[106] = Te, e[107] = ne, e[108] = T, e[109] = c.dateFormat, e[110] = c.enabled, e[111] = U, e[112] = m, e[113] = u, e[114] = xt, e[115] = ye, e[116] = W, e[117] = we) : we = e[117];
540
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(so, { "aria-label": "Loading graph" }) }) }), e[59] = Ze, e[60] = R, e[61] = k, e[62] = g, e[63] = he, e[64] = l, e[65] = bt, e[66] = t, e[67] = Y, e[68] = xt, e[69] = Re, e[70] = z, e[71] = wt, e[72] = ge, e[73] = s, e[74] = Se, e[75] = K, e[76] = A, e[77] = P, e[78] = kt, e[79] = Nt, e[80] = Ve, e[81] = $, e[82] = C, e[83] = _e, e[84] = f?.mapBorderColor, e[85] = f?.mapBorderWidth, e[86] = Fe, e[87] = jt, e[88] = ve, e[89] = O, e[90] = n, e[91] = ae, e[92] = U, e[93] = St, e[94] = Ct, e[95] = Pe, e[96] = N, e[97] = $e, e[98] = Dt, e[99] = Q, e[100] = h, e[101] = ee, e[102] = We, e[103] = p, e[104] = Te, e[105] = ne, e[106] = F, e[107] = c.dateFormat, e[108] = c.enabled, e[109] = G, e[110] = m, e[111] = u, e[112] = vt, e[113] = ye, e[114] = W, e[115] = we) : we = e[115];
544
541
  let je;
545
- e[118] !== g?.footnote || e[119] !== g?.source || e[120] !== ie || e[121] !== v || e[122] !== p?.footnote || e[123] !== p?.source || e[124] !== u ? (je = v || ie ? /* @__PURE__ */ a.jsx(Po, { styles: {
542
+ e[116] !== g?.footnote || e[117] !== g?.source || e[118] !== ie || e[119] !== v || e[120] !== p?.footnote || e[121] !== p?.source || e[122] !== u ? (je = v || ie ? /* @__PURE__ */ a.jsx(Io, { styles: {
546
543
  footnote: p?.footnote,
547
544
  source: p?.source
548
545
  }, classNames: {
549
546
  footnote: g?.footnote,
550
547
  source: g?.source
551
- }, sources: v, footNote: ie, width: u }) : null, e[118] = g?.footnote, e[119] = g?.source, e[120] = ie, e[121] = v, e[122] = p?.footnote, e[123] = p?.source, e[124] = u, e[125] = je) : je = e[125];
552
- let yt;
553
- return e[126] !== Ie || e[127] !== Le || e[128] !== de || e[129] !== s || e[130] !== _ || e[131] !== n || e[132] !== De || e[133] !== N || e[134] !== Pt || e[135] !== _t || e[136] !== xe || e[137] !== be || e[138] !== we || e[139] !== je || e[140] !== T || e[141] !== u ? (yt = /* @__PURE__ */ a.jsxs(Wo, { className: Pt, style: _t, id: de, ref: $t, "aria-label": Ie, backgroundColor: Le, theme: T, language: _, minHeight: n, width: u, height: s, relativeHeight: N, padding: De, children: [
548
+ }, sources: v, footNote: ie, width: u }) : null, e[116] = g?.footnote, e[117] = g?.source, e[118] = ie, e[119] = v, e[120] = p?.footnote, e[121] = p?.source, e[122] = u, e[123] = je) : je = e[123];
549
+ let gt;
550
+ return e[124] !== Be || e[125] !== Le || e[126] !== de || e[127] !== s || e[128] !== _ || e[129] !== n || e[130] !== De || e[131] !== N || e[132] !== It || e[133] !== zt || e[134] !== xe || e[135] !== be || e[136] !== we || e[137] !== je || e[138] !== F || e[139] !== u ? (gt = /* @__PURE__ */ a.jsxs(_o, { className: It, style: zt, id: de, ref: Wt, "aria-label": Be, backgroundColor: Le, theme: F, language: _, minHeight: n, width: u, height: s, relativeHeight: N, padding: De, children: [
554
551
  xe,
555
552
  be,
556
553
  we,
557
554
  je
558
- ] }), e[126] = Ie, e[127] = Le, e[128] = de, e[129] = s, e[130] = _, e[131] = n, e[132] = De, e[133] = N, e[134] = Pt, e[135] = _t, e[136] = xe, e[137] = be, e[138] = we, e[139] = je, e[140] = T, e[141] = u, e[142] = yt) : yt = e[142], yt;
555
+ ] }), e[124] = Be, e[125] = Le, e[126] = de, e[127] = s, e[128] = _, e[129] = n, e[130] = De, e[131] = N, e[132] = It, e[133] = zt, e[134] = xe, e[135] = be, e[136] = we, e[137] = je, e[138] = F, e[139] = u, e[140] = gt) : gt = e[140], gt;
559
556
  }
560
- function Go(r) {
557
+ function Ao(r) {
561
558
  return r != null;
562
559
  }
563
- function Uo(r) {
560
+ function Ro(r) {
564
561
  return r.radius;
565
562
  }
566
- function qo(r) {
563
+ function Go(r) {
567
564
  return r.properties?.NAME !== "Antarctica";
568
565
  }
569
- function Ho(r) {
566
+ function Uo(r) {
570
567
  return r !== void 0;
571
568
  }
572
- function Xo(r) {
569
+ function qo(r) {
573
570
  return r !== void 0;
574
571
  }
575
- function Yo(r) {
572
+ function Ho(r) {
576
573
  return r.data;
577
574
  }
578
- function Jo(r) {
575
+ function Xo(r) {
579
576
  return r !== void 0;
580
577
  }
581
- function Ko(r) {
578
+ function Yo(r) {
582
579
  return r.data;
583
580
  }
584
- function Zo(r) {
581
+ function Jo(r) {
585
582
  return r.x;
586
583
  }
587
- function Qo(r, e) {
584
+ function Ko(r, e) {
588
585
  return r - e;
589
586
  }
590
- function ea(r) {
587
+ function Zo(r) {
591
588
  return r.date;
592
589
  }
593
590
  export {
594
- Ia as HybridMap
591
+ Oa as HybridMap
595
592
  };
596
593
  //# sourceMappingURL=HybridMap.js.map