@undp/data-viz 2.3.19 → 2.4.0

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