@undp/data-viz 2.1.1 → 2.1.2

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 (80) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +129 -120
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BiVariateChoroplethMap.cjs +1 -1
  6. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  7. package/dist/BiVariateChoroplethMap.js +49 -46
  8. package/dist/BiVariateChoroplethMap.js.map +1 -1
  9. package/dist/BulletChart.cjs +1 -1
  10. package/dist/BulletChart.cjs.map +1 -1
  11. package/dist/BulletChart.d.ts +11 -0
  12. package/dist/BulletChart.js +747 -700
  13. package/dist/BulletChart.js.map +1 -1
  14. package/dist/ButterflyChart.cjs +1 -1
  15. package/dist/ButterflyChart.cjs.map +1 -1
  16. package/dist/ButterflyChart.js +7 -4
  17. package/dist/ButterflyChart.js.map +1 -1
  18. package/dist/ChoroplethMap.cjs +1 -1
  19. package/dist/ChoroplethMap.cjs.map +1 -1
  20. package/dist/ChoroplethMap.js +52 -49
  21. package/dist/ChoroplethMap.js.map +1 -1
  22. package/dist/DotDensityMap.cjs +1 -1
  23. package/dist/DotDensityMap.cjs.map +1 -1
  24. package/dist/DotDensityMap.js +37 -34
  25. package/dist/DotDensityMap.js.map +1 -1
  26. package/dist/DumbbellChart.cjs +1 -1
  27. package/dist/DumbbellChart.cjs.map +1 -1
  28. package/dist/DumbbellChart.js +41 -38
  29. package/dist/DumbbellChart.js.map +1 -1
  30. package/dist/GraphEl-YKUlz-37.cjs +2 -0
  31. package/dist/GraphEl-YKUlz-37.cjs.map +1 -0
  32. package/dist/{GraphEl-DEzobeOM.js → GraphEl-sVZvlyWe.js} +2 -1
  33. package/dist/GraphEl-sVZvlyWe.js.map +1 -0
  34. package/dist/GriddedGraphs.cjs +1 -1
  35. package/dist/GriddedGraphs.js +2 -2
  36. package/dist/HybridMap.cjs +1 -1
  37. package/dist/HybridMap.cjs.map +1 -1
  38. package/dist/HybridMap.js +62 -59
  39. package/dist/HybridMap.js.map +1 -1
  40. package/dist/ScatterPlot.cjs +1 -1
  41. package/dist/ScatterPlot.cjs.map +1 -1
  42. package/dist/ScatterPlot.js +7 -4
  43. package/dist/ScatterPlot.js.map +1 -1
  44. package/dist/SingleGraphDashboard.cjs +1 -1
  45. package/dist/SingleGraphDashboard.js +2 -2
  46. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  47. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  48. package/dist/Types.d.ts +1 -0
  49. package/dist/ensureCompleteData-DS7gCvVd.js +122 -0
  50. package/dist/ensureCompleteData-DS7gCvVd.js.map +1 -0
  51. package/dist/ensureCompleteData-Oib-vGb0.cjs +2 -0
  52. package/dist/ensureCompleteData-Oib-vGb0.cjs.map +1 -0
  53. package/dist/getSchema.cjs +1 -1
  54. package/dist/getSchema.cjs.map +1 -1
  55. package/dist/getSchema.js +15 -15
  56. package/dist/getSchema.js.map +1 -1
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.ts +3 -0
  59. package/dist/index.js +2 -2
  60. package/dist/transformData.cjs +1 -1
  61. package/dist/transformData.js +2 -2
  62. package/dist/transformDataForAggregation-CYoB5Xsk.cjs +2 -0
  63. package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +1 -0
  64. package/dist/{transformDataForAggregation-DEU__LUl.js → transformDataForAggregation-j34UL73s.js} +14 -10
  65. package/dist/transformDataForAggregation-j34UL73s.js.map +1 -0
  66. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs → transformDataForGraphFromFile-CuXxR8uA.cjs} +2 -2
  67. package/dist/{transformDataForGraphFromFile-CzepNVGZ.cjs.map → transformDataForGraphFromFile-CuXxR8uA.cjs.map} +1 -1
  68. package/dist/{transformDataForGraphFromFile-CSG24iF6.js → transformDataForGraphFromFile-DyP-83Nh.js} +2 -2
  69. package/dist/{transformDataForGraphFromFile-CSG24iF6.js.map → transformDataForGraphFromFile-DyP-83Nh.js.map} +1 -1
  70. package/package.json +1 -1
  71. package/dist/GraphEl-B16EYkko.cjs +0 -2
  72. package/dist/GraphEl-B16EYkko.cjs.map +0 -1
  73. package/dist/GraphEl-DEzobeOM.js.map +0 -1
  74. package/dist/ensureCompleteData-DNKEGRiP.js +0 -102
  75. package/dist/ensureCompleteData-DNKEGRiP.js.map +0 -1
  76. package/dist/ensureCompleteData-I6nYmT8E.cjs +0 -2
  77. package/dist/ensureCompleteData-I6nYmT8E.cjs.map +0 -1
  78. package/dist/transformDataForAggregation-DEU__LUl.js.map +0 -1
  79. package/dist/transformDataForAggregation-XNg0OGYE.cjs +0 -2
  80. package/dist/transformDataForAggregation-XNg0OGYE.cjs.map +0 -1
package/dist/HybridMap.js CHANGED
@@ -29,8 +29,8 @@ import { f as yo } from "./fetchAndParseData-BpqkBPQL.js";
29
29
  import { a as xo, G as vo } from "./GraphContainer-CRqzdKu2.js";
30
30
  import { g as bo } from "./getUniqValue-DsqSii6M.js";
31
31
  import { g as wo } from "./getJenks-BbngDoBQ.js";
32
- var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = Ae.forwardRef((i, t) => {
33
- const { decorative: e, orientation: h = Se, ...w } = i, n = Co(h) ? h : Se, k = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
32
+ var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = Ae.forwardRef((r, t) => {
33
+ const { decorative: e, orientation: h = Se, ...w } = r, n = Co(h) ? h : Se, k = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
34
34
  return /* @__PURE__ */ Oe.jsx(
35
35
  oo.div,
36
36
  {
@@ -42,19 +42,19 @@ var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = A
42
42
  );
43
43
  });
44
44
  Ee.displayName = ko;
45
- function Co(i) {
46
- return jo.includes(i);
45
+ function Co(r) {
46
+ return jo.includes(r);
47
47
  }
48
48
  var Ie = Ee;
49
- const ze = Fe.forwardRef((i, t) => {
49
+ const ze = Fe.forwardRef((r, t) => {
50
50
  const e = Be.c(14);
51
51
  let h, w, n, k;
52
- e[0] !== i ? ({
52
+ e[0] !== r ? ({
53
53
  className: h,
54
54
  variant: n,
55
55
  orientation: k,
56
56
  ...w
57
- } = i, e[0] = i, e[1] = h, e[2] = w, e[3] = n, e[4] = k) : (h = e[1], w = e[2], n = e[3], k = e[4]);
57
+ } = r, e[0] = r, e[1] = h, e[2] = w, e[3] = n, e[4] = k) : (h = e[1], w = e[2], n = e[3], k = e[4]);
58
58
  const j = n === void 0 ? "dark" : n, d = k === void 0 ? "horizontal" : k, g = d === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", S = j === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
59
59
  let N;
60
60
  e[5] !== h || e[6] !== g || e[7] !== S ? (N = Me(g, S, h), e[5] = h, e[6] = g, e[7] = S, e[8] = N) : N = e[8];
@@ -62,7 +62,7 @@ const ze = Fe.forwardRef((i, t) => {
62
62
  return e[9] !== d || e[10] !== w || e[11] !== t || e[12] !== N ? (L = /* @__PURE__ */ Oe.jsx(Ie, { ...w, ref: t, orientation: d, className: N }), e[9] = d, e[10] = w, e[11] = t, e[12] = N, e[13] = L) : L = e[13], L;
63
63
  });
64
64
  ze.displayName = Ie.displayName;
65
- function No(i) {
65
+ function No(r) {
66
66
  const {
67
67
  data: t,
68
68
  colors: e,
@@ -103,12 +103,12 @@ function No(i) {
103
103
  dotLegendTitle: vt,
104
104
  dotBorderColor: zt,
105
105
  labelColor: Lt
106
- } = i, [P, _] = z(void 0), [b, v] = z(It === void 0 ? !(d < 680) : !It), st = Tt(null), [ct, et] = z(void 0), [Pt, E] = z(void 0), [dt, I] = z(void 0), [bt, R] = z(void 0), V = Tt(null), q = uo(V, {
106
+ } = r, [P, _] = z(void 0), [b, v] = z(It === void 0 ? !(d < 680) : !It), st = Tt(null), [ct, et] = z(void 0), [Pt, E] = z(void 0), [dt, I] = z(void 0), [bt, R] = z(void 0), V = Tt(null), q = uo(V, {
107
107
  once: x.once,
108
108
  amount: x.amount
109
109
  }), wt = Tt(null), B = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? so().domain([0, yt]).range([0.25, k]).nice() : void 0, Gt = nt ? co().domain(n).range(e) : mo().domain(n).range(e);
110
110
  se(() => {
111
- const o = Ce(wt.current), r = Ce(V.current), M = (m) => {
111
+ const o = Ce(wt.current), i = Ce(V.current), M = (m) => {
112
112
  if (Q === "noZoom") return !1;
113
113
  if (Q === "button") return !m.type.includes("wheel");
114
114
  const s = m.type === "wheel", C = m.type.startsWith("touch"), p = m.type === "mousedown" || m.type === "mousemove";
@@ -118,7 +118,7 @@ function No(i) {
118
118
  }) => {
119
119
  o.attr("transform", m);
120
120
  });
121
- r.call(l), st.current = l;
121
+ i.call(l), st.current = l;
122
122
  }, [j, d, Q]);
123
123
  const D = Ye(h), W = eo(h), G = D[2] - D[0], _t = D[3] - D[1], Vt = d * 190 / 960 * 360 / G, Bt = j * 190 / 678 * 180 / _t, H = g * Math.min(Vt, Bt), A = it === "mercator" ? Je().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "equalEarth" ? Ke().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "naturalEarth" ? Ze().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "orthographic" ? Qe().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : to().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H), kt = (o) => {
124
124
  if (!V.current || !st.current) return;
@@ -129,7 +129,7 @@ function No(i) {
129
129
  /* @__PURE__ */ a.jsx(ht.svg, { width: `${d}px`, height: `${j}px`, viewBox: `0 0 ${d} ${j}`, ref: V, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: wt, children: [
130
130
  ft.filter((o) => o.position === "before").map((o) => o.layer),
131
131
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
- h.features.map((o, r) => t.findIndex((l) => l.id === o.properties[xt]) !== -1 ? null : /* @__PURE__ */ a.jsx("g", { opacity: P ? T : lt.length !== 0 ? lt.indexOf(o.properties[xt]) !== -1 ? 1 : T : 1, children: o.geometry.type === "MultiPolygon" ? (
132
+ h.features.map((o, i) => t.findIndex((l) => l.id === o.properties[xt]) !== -1 ? null : /* @__PURE__ */ a.jsx("g", { opacity: P ? T : lt.length !== 0 ? lt.indexOf(o.properties[xt]) !== -1 ? 1 : T : 1, children: o.geometry.type === "MultiPolygon" ? (
133
133
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
134
134
  o.geometry.coordinates.map((l, m) => {
135
135
  let s = "";
@@ -158,10 +158,10 @@ function No(i) {
158
158
  fill: gt
159
159
  } }, m);
160
160
  })
161
- ) }, r)),
161
+ ) }, i)),
162
162
  /* @__PURE__ */ a.jsxs(ho, { children: [
163
163
  t.filter((o) => o.id).map((o) => {
164
- const r = h.features.findIndex(
164
+ const i = h.features.findIndex(
165
165
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
166
  (l) => o.id === l.properties[xt]
167
167
  ), M = ce(o.x) ? gt : (
@@ -191,7 +191,7 @@ function No(i) {
191
191
  E(void 0), I(void 0), R(void 0), K?.(void 0);
192
192
  }, onClick: () => {
193
193
  (F || Z) && (De(ct, o) && Et ? (et(void 0), F?.(void 0)) : (et(o), F?.(o)));
194
- }, children: r === -1 ? null : h.features[r].geometry.type === "MultiPolygon" ? h.features[r].geometry.coordinates.map(
194
+ }, children: i === -1 ? null : h.features[i].geometry.type === "MultiPolygon" ? h.features[i].geometry.coordinates.map(
195
195
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
196
196
  (l, m) => {
197
197
  let s = "";
@@ -223,7 +223,7 @@ function No(i) {
223
223
  strokeWidth: ot
224
224
  } }, `${o.id}-${m}`);
225
225
  }
226
- ) : h.features[r].geometry.coordinates.map(
226
+ ) : h.features[i].geometry.coordinates.map(
227
227
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
228
228
  (l, m) => {
229
229
  let s = "M";
@@ -269,10 +269,10 @@ function No(i) {
269
269
  transition: {
270
270
  duration: x.duration
271
271
  }
272
- }, onMouseEnter: (r) => {
273
- E(o), R(r.clientY), I(r.clientX), K?.(o);
274
- }, onMouseMove: (r) => {
275
- E(o), R(r.clientY), I(r.clientX);
272
+ }, onMouseEnter: (i) => {
273
+ E(o), R(i.clientY), I(i.clientX), K?.(o);
274
+ }, onMouseMove: (i) => {
275
+ E(o), R(i.clientY), I(i.clientX);
276
276
  }, onMouseLeave: () => {
277
277
  E(void 0), I(void 0), R(void 0), K?.(void 0);
278
278
  }, onClick: () => {
@@ -352,31 +352,31 @@ function No(i) {
352
352
  WebkitLineClamp: "1",
353
353
  WebkitBoxOrient: "vertical"
354
354
  }, children: w }) : null,
355
- nt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, r) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
356
- _(e[r % e.length]);
355
+ nt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
356
+ _(e[i % e.length]);
357
357
  }, onMouseLeave: () => {
358
358
  _(void 0);
359
359
  }, children: [
360
360
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
361
- backgroundColor: e[r % e.length]
361
+ backgroundColor: e[i % e.length]
362
362
  } }),
363
363
  /* @__PURE__ */ a.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: o })
364
- ] }, r)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
365
- n.map((o, r) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
366
- _(e[r]);
364
+ ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
365
+ n.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
366
+ _(e[i]);
367
367
  }, onMouseLeave: () => {
368
368
  _(void 0);
369
369
  }, className: "cursor-pointer", children: [
370
- /* @__PURE__ */ a.jsx("rect", { x: r * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: P === e[r] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
371
- fill: e[r],
372
- ...P === e[r] ? {} : {
373
- stroke: e[r]
370
+ /* @__PURE__ */ a.jsx("rect", { x: i * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: P === e[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
371
+ fill: e[i],
372
+ ...P === e[i] ? {} : {
373
+ stroke: e[i]
374
374
  }
375
375
  } }),
376
- /* @__PURE__ */ a.jsx("text", { x: (r + 1) * 320 / e.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
376
+ /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / e.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
377
377
  textAnchor: "middle"
378
378
  }, children: po(o, "NA") })
379
- ] }, r)),
379
+ ] }, i)),
380
380
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
381
381
  _(e[n.length]);
382
382
  }, onMouseLeave: () => {
@@ -401,7 +401,7 @@ function No(i) {
401
401
  Pt && N && dt && bt ? /* @__PURE__ */ a.jsx(ao, { data: Pt, body: N, xPos: dt, yPos: bt, backgroundStyle: O?.tooltip, className: rt?.tooltip }) : null
402
402
  ] });
403
403
  }
404
- function pa(i) {
404
+ function ua(r) {
405
405
  const t = We.c(131), {
406
406
  data: e,
407
407
  mapData: h,
@@ -459,7 +459,7 @@ function pa(i) {
459
459
  dotLegendTitle: wt,
460
460
  dotBorderColor: B,
461
461
  labelColor: Gt
462
- } = i, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, W = S === 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." : S, G = ot === void 0 ? "threshold" : ot, _t = at === void 0 ? 5 : at, Vt = gt === void 0 ? 0.95 : gt, Bt = Rt === void 0 ? 0.5 : Rt, H = qt === void 0 ? St.light.graphNoData : qt, A = Ot === void 0 ? !1 : Ot, kt = F === void 0 ? !1 : F, o = Et === void 0 ? St.light.grays["gray-500"] : Et, r = it === void 0 ? !0 : it, M = Q === void 0 ? !0 : Q;
462
+ } = r, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, W = S === 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." : S, G = ot === void 0 ? "threshold" : ot, _t = at === void 0 ? 5 : at, Vt = gt === void 0 ? 0.95 : gt, Bt = Rt === void 0 ? 0.5 : Rt, H = qt === void 0 ? St.light.graphNoData : qt, A = Ot === void 0 ? !1 : Ot, kt = F === void 0 ? !1 : F, o = Et === void 0 ? St.light.grays["gray-500"] : Et, i = it === void 0 ? !0 : it, M = Q === void 0 ? !0 : Q;
463
463
  let l;
464
464
  t[0] !== x ? (l = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = l) : l = t[1];
465
465
  const m = l;
@@ -482,7 +482,7 @@ function pa(i) {
482
482
  let At;
483
483
  if (t[10] !== e || t[11] !== c.dateFormat) {
484
484
  let y;
485
- t[13] !== c.dateFormat ? (y = (J) => qe(`${J}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
485
+ t[13] !== c.dateFormat ? (y = (J) => qe(`${J.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.filter(_o).map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
486
486
  } else
487
487
  At = t[12];
488
488
  const u = At, [Y, xe] = z(c.autoplay ? 0 : u.length - 1), [jt, Ve] = z(void 0), ve = Tt(null), Ne = Tt(null);
@@ -540,10 +540,10 @@ function pa(i) {
540
540
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
541
541
  ] }) : null, t[49] = Y, t[50] = ne, t[51] = X, t[52] = c.enabled, t[53] = u, t[54] = Nt) : Nt = t[54];
542
542
  let Dt;
543
- t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== _ || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !== r || t[74] !== ye || t[75] !== o || t[76] !== Bt || t[77] !== N || t[78] !== H || t[79] !== st || t[80] !== fe || t[81] !== jt || t[82] !== dt || t[83] !== U || t[84] !== nt || t[85] !== rt || t[86] !== _t || t[87] !== O || t[88] !== de || t[89] !== Vt || t[90] !== mt || t[91] !== M || t[92] !== kt || t[93] !== b || t[94] !== Wt || t[95] !== ut || t[96] !== pt || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Z || t[100] !== u || t[101] !== g || t[102] !== me || t[103] !== m || t[104] !== T ? (Dt = /* @__PURE__ */ a.jsx(xo, { ref: ve, children: ut && Wt && jt ? /* @__PURE__ */ a.jsx(No, { dotColor: he, data: e.filter((y) => c.enabled ? y.date === Re(new Date(u[Y]), c.dateFormat || "yyyy") : y), mapData: mt ? jt : {
543
+ t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== _ || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !== i || t[74] !== ye || t[75] !== o || t[76] !== Bt || t[77] !== N || t[78] !== H || t[79] !== st || t[80] !== fe || t[81] !== jt || t[82] !== dt || t[83] !== U || t[84] !== nt || t[85] !== rt || t[86] !== _t || t[87] !== O || t[88] !== de || t[89] !== Vt || t[90] !== mt || t[91] !== M || t[92] !== kt || t[93] !== b || t[94] !== Wt || t[95] !== ut || t[96] !== pt || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Z || t[100] !== u || t[101] !== g || t[102] !== me || t[103] !== m || t[104] !== T ? (Dt = /* @__PURE__ */ a.jsx(xo, { ref: ve, children: ut && Wt && jt ? /* @__PURE__ */ a.jsx(No, { dotColor: he, data: e.filter((y) => c.enabled ? y.date === Re(new Date(u[Y]), c.dateFormat || "yyyy") : y), mapData: mt ? jt : {
544
544
  ...jt,
545
545
  features: jt.features.filter(So)
546
- }, colorDomain: Ft, width: ut, height: Wt, scale: Vt, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: rt, showLabels: kt, isWorldMap: r, showColorScale: M, zoomScaleExtend: m, zoomTranslateExtend: T, onSeriesMouseClick: nt, highlightedDataPoints: C, resetSelectionOnDoubleClick: de, styles: b, classNames: v, zoomInteraction: me, detailsOnClick: _, mapProjection: st || (r ? "naturalEarth" : "mercator"), animate: Ht === !0 ? {
546
+ }, colorDomain: Ft, width: ut, height: Wt, scale: Vt, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: rt, showLabels: kt, isWorldMap: i, showColorScale: M, zoomScaleExtend: m, zoomTranslateExtend: T, onSeriesMouseClick: nt, highlightedDataPoints: C, resetSelectionOnDoubleClick: de, styles: b, classNames: v, zoomInteraction: me, detailsOnClick: _, mapProjection: st || (i ? "naturalEarth" : "mercator"), animate: Ht === !0 ? {
547
547
  duration: 0.5,
548
548
  once: !0,
549
549
  amount: 0.5
@@ -553,7 +553,7 @@ function pa(i) {
553
553
  amount: 0
554
554
  }, dimmedOpacity: pe, customLayers: ue, maxRadiusValue: ce(dt) ? Math.max(...e.map($o).filter(Do)) : dt, collapseColorScaleByDefault: bt, highlightedIds: ge, mapProperty: fe, dotLegendTitle: wt, dotBorderColor: B, labelColor: ye }) : /* @__PURE__ */ a.jsx("div", { style: {
555
555
  height: `${Math.max(U, d || (O ? U ? (g || ut) * O > U ? (g || ut) * O : U : (g || ut) * O : Wt))}px`
556
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = _, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] = r, t[74] = ye, t[75] = o, t[76] = Bt, t[77] = N, t[78] = H, t[79] = st, t[80] = fe, t[81] = jt, t[82] = dt, t[83] = U, t[84] = nt, t[85] = rt, t[86] = _t, t[87] = O, t[88] = de, t[89] = Vt, t[90] = mt, t[91] = M, t[92] = kt, t[93] = b, t[94] = Wt, t[95] = ut, t[96] = pt, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Z, t[100] = u, t[101] = g, t[102] = me, t[103] = m, t[104] = T, t[105] = Dt) : Dt = t[105];
556
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = _, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] = i, t[74] = ye, t[75] = o, t[76] = Bt, t[77] = N, t[78] = H, t[79] = st, t[80] = fe, t[81] = jt, t[82] = dt, t[83] = U, t[84] = nt, t[85] = rt, t[86] = _t, t[87] = O, t[88] = de, t[89] = Vt, t[90] = mt, t[91] = M, t[92] = kt, t[93] = b, t[94] = Wt, t[95] = ut, t[96] = pt, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Z, t[100] = u, t[101] = g, t[102] = me, t[103] = m, t[104] = T, t[105] = Dt) : Dt = t[105];
557
557
  let $t;
558
558
  t[106] !== v?.footnote || t[107] !== v?.source || t[108] !== W || t[109] !== k || t[110] !== b?.footnote || t[111] !== b?.source || t[112] !== g ? ($t = k || W ? /* @__PURE__ */ a.jsx(go, { styles: {
559
559
  footnote: b?.footnote,
@@ -570,37 +570,40 @@ function pa(i) {
570
570
  $t
571
571
  ] }), t[114] = Lt, t[115] = A, t[116] = ft, t[117] = d, t[118] = $, t[119] = U, t[120] = Mt, t[121] = O, t[122] = we, t[123] = ke, t[124] = Ct, t[125] = Nt, t[126] = Dt, t[127] = $t, t[128] = pt, t[129] = g, t[130] = le) : le = t[130], le;
572
572
  }
573
- function Do(i) {
574
- return i != null;
573
+ function Do(r) {
574
+ return r != null;
575
575
  }
576
- function $o(i) {
577
- return i.radius;
576
+ function $o(r) {
577
+ return r.radius;
578
578
  }
579
- function So(i) {
580
- return i.properties.NAME !== "Antarctica";
579
+ function So(r) {
580
+ return r.properties.NAME !== "Antarctica";
581
581
  }
582
- function Mo(i) {
583
- return i !== void 0;
582
+ function Mo(r) {
583
+ return r !== void 0;
584
584
  }
585
- function Oo(i) {
586
- return i !== void 0;
585
+ function Oo(r) {
586
+ return r !== void 0;
587
587
  }
588
- function Eo(i) {
589
- return i.data;
588
+ function Eo(r) {
589
+ return r.data;
590
590
  }
591
- function Io(i) {
592
- return i !== void 0;
591
+ function Io(r) {
592
+ return r !== void 0;
593
593
  }
594
- function zo(i) {
595
- return i.data;
594
+ function zo(r) {
595
+ return r.data;
596
596
  }
597
- function Lo(i) {
598
- return i.x;
597
+ function Lo(r) {
598
+ return r.x;
599
599
  }
600
- function Po(i, t) {
601
- return i - t;
600
+ function Po(r, t) {
601
+ return r - t;
602
+ }
603
+ function _o(r) {
604
+ return r.date;
602
605
  }
603
606
  export {
604
- pa as HybridMap
607
+ ua as HybridMap
605
608
  };
606
609
  //# sourceMappingURL=HybridMap.js.map