@carto/meridian-ds 1.3.6 → 1.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 (44) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{MenuItem-B3IDLBB1.js → MenuItem-CkxKygcd.js} +61 -61
  3. package/dist/{MenuItem-DUV2TC2p.cjs → MenuItem-Fb15qc5Z.cjs} +3 -3
  4. package/dist/components/index.cjs +5 -5
  5. package/dist/components/index.js +2931 -2725
  6. package/dist/theme/index.cjs +1 -1
  7. package/dist/theme/index.js +120 -50
  8. package/dist/types/components/molecules/Autocomplete/Autocomplete.d.ts +9 -0
  9. package/dist/types/components/molecules/Autocomplete/Autocomplete.d.ts.map +1 -0
  10. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts +9 -0
  11. package/dist/types/components/molecules/Autocomplete/CreatableAutocomplete.d.ts.map +1 -0
  12. package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts +15 -0
  13. package/dist/types/components/molecules/Autocomplete/ListBoxWithFilter.d.ts.map +1 -0
  14. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts +9 -0
  15. package/dist/types/components/molecules/Autocomplete/MultipleAutocomplete.d.ts.map +1 -0
  16. package/dist/types/components/molecules/Autocomplete/index.d.ts +4 -0
  17. package/dist/types/components/molecules/Autocomplete/index.d.ts.map +1 -0
  18. package/dist/types/components/molecules/Autocomplete/types.d.ts +42 -0
  19. package/dist/types/components/molecules/Autocomplete/types.d.ts.map +1 -0
  20. package/dist/types/components/molecules/Autocomplete/useAutocompleteRenderOption.d.ts +9 -0
  21. package/dist/types/components/molecules/Autocomplete/useAutocompleteRenderOption.d.ts.map +1 -0
  22. package/dist/types/components/molecules/Autocomplete/useCreatableAutocomplete.d.ts +17 -0
  23. package/dist/types/components/molecules/Autocomplete/useCreatableAutocomplete.d.ts.map +1 -0
  24. package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts +20 -0
  25. package/dist/types/components/molecules/Autocomplete/useMultipleAutocomplete.d.ts.map +1 -0
  26. package/dist/types/components/molecules/Autocomplete/utils.d.ts +3 -0
  27. package/dist/types/components/molecules/Autocomplete/utils.d.ts.map +1 -0
  28. package/dist/types/components/molecules/Menu/MenuFilter.d.ts +8 -0
  29. package/dist/types/components/molecules/Menu/MenuFilter.d.ts.map +1 -0
  30. package/dist/types/components/molecules/Menu/index.d.ts +2 -0
  31. package/dist/types/components/molecules/Menu/index.d.ts.map +1 -1
  32. package/dist/types/components/molecules/index.d.ts +2 -2
  33. package/dist/types/components/molecules/index.d.ts.map +1 -1
  34. package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
  35. package/dist/types/theme/sections/components/forms.d.ts.map +1 -1
  36. package/dist/types/theme/sections/components/navigation.d.ts.map +1 -1
  37. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
  38. package/dist/widgets/index.cjs +4 -4
  39. package/dist/widgets/index.js +570 -568
  40. package/package.json +1 -1
  41. package/dist/types/components/molecules/Autocomplete.d.ts +0 -18
  42. package/dist/types/components/molecules/Autocomplete.d.ts.map +0 -1
  43. package/dist/types/components/molecules/MultipleSelectField/Filters.d.ts +0 -9
  44. package/dist/types/components/molecules/MultipleSelectField/Filters.d.ts.map +0 -1
@@ -1,14 +1,14 @@
1
1
  import { jsxs as v, Fragment as ie, jsx as n } from "react/jsx-runtime";
2
- import Qn, { useMemo as F, useState as _, useEffect as U, useCallback as oe, useRef as re, createContext as ei, useContext as ti, useLayoutEffect as an, createRef as ni } from "react";
3
- import { useTheme as le, styled as m, Box as S, Skeleton as z, Grid as ae, Link as ye, darken as yt, Button as $e, Divider as wt, TextField as ot, InputAdornment as vt, Checkbox as ln, Tooltip as ue, IconButton as fe, debounce as ii, Slider as xt, TableCell as bt, Table as sn, TableHead as cn, TableRow as Je, TableBody as dn, TableContainer as un, TableSortLabel as ri, TablePagination as oi, Menu as kt, MenuItem as Pe, SvgIcon as je, lighten as pn, Typography as De, ClickAwayListener as ai, ToggleButton as li, capitalize as gn, ListItem as si, Chip as ci, List as di, Paper as hn, Popover as ui, Select as pi, ListItemText as gi, Collapse as St, Drawer as hi, Icon as fi, LinearProgress as mi } from "@mui/material";
2
+ import Qn, { useMemo as F, useState as _, useEffect as U, useCallback as oe, useRef as re, forwardRef as ei, createContext as ti, useContext as ni, useLayoutEffect as an, createRef as ii } from "react";
3
+ import { useTheme as le, styled as m, Box as S, Skeleton as z, Grid as ae, Link as ye, darken as yt, Button as $e, Divider as wt, TextField as ot, InputAdornment as vt, Checkbox as ln, Tooltip as ue, IconButton as fe, debounce as ri, Slider as xt, TableCell as bt, Table as sn, TableHead as cn, TableRow as Je, TableBody as dn, TableContainer as un, TableSortLabel as oi, TablePagination as ai, Menu as kt, MenuItem as Pe, SvgIcon as je, lighten as pn, Typography as De, ClickAwayListener as li, ToggleButton as si, capitalize as gn, ListItem as ci, Chip as di, List as ui, Paper as hn, Popover as pi, Select as gi, ListItemText as hi, Collapse as St, Drawer as fi, Icon as mi, LinearProgress as yi } from "@mui/material";
4
4
  import { useIntl as se } from "react-intl";
5
- import { t as yi, u as ce, T as H, S as B, B as Mt, a as wi, b as pt } from "../TablePaginationActions-BmvmVQd9.js";
6
- import vi from "echarts-for-react";
7
- import { FixedSizeList as xi } from "react-window";
8
- import { S as Qe, a as bi } from "../SwatchSquare-DAne_6Gi.js";
9
- import { ChevronLeft as ki, ChevronRight as Si, KeyboardArrowDown as Mi, ErrorOutline as Ii, Cancel as Ti, VisibilityOutlined as Ci, VisibilityOffOutlined as Ai, ExpandLess as fn, ExpandMore as mn, Close as Ei, LayersOutlined as Li, MoreVert as Di } from "@mui/icons-material";
10
- import { A as $i } from "../Alert-DbN79ENW.js";
11
- import { c as yn, a as Pi, b as wn } from "../paletteUtils-BEwZhrLg.js";
5
+ import { t as wi, u as ce, T as H, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-BmvmVQd9.js";
6
+ import xi from "echarts-for-react";
7
+ import { FixedSizeList as bi } from "react-window";
8
+ import { S as Qe, a as ki } from "../SwatchSquare-DAne_6Gi.js";
9
+ import { ChevronLeft as Si, ChevronRight as Mi, KeyboardArrowDown as Ii, ErrorOutline as Ti, Cancel as Ci, VisibilityOutlined as Ai, VisibilityOffOutlined as Ei, ExpandLess as fn, ExpandMore as mn, Close as Li, LayersOutlined as Di, MoreVert as $i } from "@mui/icons-material";
10
+ import { A as Pi } from "../Alert-DbN79ENW.js";
11
+ import { c as yn, a as Oi, b as wn } from "../paletteUtils-BEwZhrLg.js";
12
12
  function vn() {
13
13
  let e = !1;
14
14
  return window.PointerEvent && "maxTouchPoints" in navigator ? navigator.maxTouchPoints > 0 && (e = !0) : (window.matchMedia && window.matchMedia("(any-pointer:coarse)").matches || window.TouchEvent || "ontouchstart" in window) && (e = !0), e;
@@ -16,8 +16,8 @@ function vn() {
16
16
  function ge(e) {
17
17
  return !e || typeof e != "object" ? e : `${e.prefix ?? ""}${e.value}${e.suffix ?? ""}`;
18
18
  }
19
- const Oi = [], Wi = {}, Ot = (e) => e;
20
- function Ri(e, t) {
19
+ const Wi = [], Ri = {}, Ot = (e) => e;
20
+ function Fi(e, t) {
21
21
  if (!e || Array.isArray(e) && e.length === 0)
22
22
  return null;
23
23
  const i = Array.isArray(e) ? e : [e];
@@ -33,15 +33,15 @@ function Ri(e, t) {
33
33
  return `<div style="margin-top: 4px">${String(d)}${c}</div>`;
34
34
  }).join(" "), r;
35
35
  }
36
- function Fi({
36
+ function Ni({
37
37
  height: e,
38
- labels: t = Wi,
38
+ labels: t = Ri,
39
39
  yAxisData: i,
40
- selectedBars: r = Oi,
40
+ selectedBars: r = Wi,
41
41
  series: o,
42
42
  colors: a,
43
43
  tooltip: l = !0,
44
- tooltipFormatter: d = Ri,
44
+ tooltipFormatter: d = Fi,
45
45
  xAxisFormatter: s = Ot,
46
46
  yAxisFormatter: u = Ot,
47
47
  onSelectedBarsChange: p,
@@ -70,16 +70,16 @@ function Fi({
70
70
  labels: t,
71
71
  height: e ?? parseInt(w.spacing(22)),
72
72
  // parseInt removes 'px' from the string,
73
- selectedBars: Ni(r),
73
+ selectedBars: Bi(r),
74
74
  yAxisData: b,
75
75
  colors: k,
76
76
  series: h
77
77
  };
78
78
  }
79
- function Ni(e) {
79
+ function Bi(e) {
80
80
  return (e ?? []).length ? e.map((t) => Array.isArray(t) && t.length === 2 ? t : Array.isArray(t) ? [...Array(2)].map((r, o) => t[o] ?? 0) : [t, 0]) : [];
81
81
  }
82
- var Bi = function e(t, i) {
82
+ var _i = function e(t, i) {
83
83
  if (t === i) return !0;
84
84
  if (t && i && typeof t == "object" && typeof i == "object") {
85
85
  if (t.constructor !== i.constructor) return !1;
@@ -104,8 +104,8 @@ var Bi = function e(t, i) {
104
104
  }
105
105
  return t !== t && i !== i;
106
106
  };
107
- const Le = /* @__PURE__ */ yi(Bi);
108
- class We extends vi {
107
+ const Le = /* @__PURE__ */ wi(_i);
108
+ class We extends xi {
109
109
  componentDidUpdate(t) {
110
110
  const { shouldSetOption: i } = this.props;
111
111
  if (typeof i == "function" && !i(t, this.props))
@@ -179,12 +179,12 @@ const at = 240, xn = m(S)(({ theme: e }) => ({
179
179
  "& + &": {
180
180
  marginLeft: "1px"
181
181
  }
182
- })), _i = m(z)(({ theme: e }) => ({
182
+ })), Hi = m(z)(({ theme: e }) => ({
183
183
  backgroundColor: e.palette.common.white
184
184
  })), Rt = m(z)(({ theme: e }) => ({
185
185
  backgroundColor: e.palette.grey[100]
186
186
  }));
187
- function Hi({ height: e }) {
187
+ function zi({ height: e }) {
188
188
  return /* @__PURE__ */ v(ie, { children: [
189
189
  /* @__PURE__ */ n(S, { mb: 2, children: /* @__PURE__ */ n(z, { width: 48, height: 8 }) }),
190
190
  /* @__PURE__ */ v(xn, { style: { height: e || at }, children: [
@@ -202,7 +202,7 @@ function ke(e) {
202
202
  e && !r && (i(!0), o(!0)), e || i(!1);
203
203
  }, [e, r]), { showSkeleton: t };
204
204
  }
205
- const zi = vn(), ji = m(ae)(({ theme: e }) => ({
205
+ const ji = vn(), Yi = m(ae)(({ theme: e }) => ({
206
206
  marginBottom: e.spacing(2),
207
207
  flexDirection: "row",
208
208
  justifyContent: "space-between",
@@ -210,11 +210,11 @@ const zi = vn(), ji = m(ae)(({ theme: e }) => ({
210
210
  "& .MuiTypography-caption": {
211
211
  color: e.palette.text.secondary
212
212
  }
213
- })), Yi = m(ye)(({ theme: e }) => ({
213
+ })), Vi = m(ye)(({ theme: e }) => ({
214
214
  ...e.typography.caption,
215
215
  cursor: "pointer"
216
216
  }));
217
- function ns(e) {
217
+ function is(e) {
218
218
  const {
219
219
  yAxisData: t,
220
220
  xAxisData: i,
@@ -232,7 +232,7 @@ function ns(e) {
232
232
  filterable: f,
233
233
  animation: w,
234
234
  isLoading: h
235
- } = Fi(e), b = r.length > 1, k = le(), M = se(), T = ce(M), { showSkeleton: x } = ke(!!h), A = F(
235
+ } = Ni(e), b = r.length > 1, k = le(), M = se(), T = ce(M), { showSkeleton: x } = ke(!!h), A = F(
236
236
  () => ({
237
237
  show: l,
238
238
  trigger: "axis",
@@ -244,9 +244,9 @@ function ns(e) {
244
244
  color: k.palette.common.white
245
245
  },
246
246
  backgroundColor: k.palette.black[90],
247
- position: function(I, R, X, j, q) {
247
+ position: function(I, R, X, j, K) {
248
248
  const te = { top: 0 };
249
- return q.contentSize[0] < q.viewSize[0] - I[0] ? te.left = I[0] : te.right = q.viewSize[0] - I[0], te;
249
+ return K.contentSize[0] < K.viewSize[0] - I[0] ? te.left = I[0] : te.right = K.viewSize[0] - I[0], te;
250
250
  },
251
251
  formatter: (I) => d(I, c)
252
252
  }),
@@ -275,7 +275,7 @@ function ns(e) {
275
275
  ), L = F(() => {
276
276
  let I = [];
277
277
  return y ? I = t.reduce((R, X) => (X.forEach(
278
- (j, q) => R[q] = (R[q] ?? 0) + (j ?? Number.MIN_SAFE_INTEGER)
278
+ (j, K) => R[K] = (R[K] ?? 0) + (j ?? Number.MIN_SAFE_INTEGER)
279
279
  ), R), []) : I = t.flat().map((R) => R ?? Number.MIN_SAFE_INTEGER), Math.max(...I);
280
280
  }, [t, y]), P = F(
281
281
  () => ({
@@ -314,9 +314,9 @@ function ns(e) {
314
314
  animation: w,
315
315
  barMaxWidth: 100,
316
316
  data: I.map((X, j) => {
317
- const q = o.some(
318
- ([Y, K = 0]) => Y === j && K === R
319
- ), te = !!o.length && !q;
317
+ const K = o.some(
318
+ ([Y, Z = 0]) => Y === j && Z === R
319
+ ), te = !!o.length && !K;
320
320
  return {
321
321
  value: X,
322
322
  ...te && {
@@ -326,7 +326,7 @@ function ns(e) {
326
326
  };
327
327
  }),
328
328
  ...y && { stack: "total" },
329
- ...!zi && {
329
+ ...!ji && {
330
330
  emphasis: {
331
331
  focus: "series",
332
332
  itemStyle: {
@@ -378,15 +378,15 @@ function ns(e) {
378
378
  }, D = oe(
379
379
  (I) => {
380
380
  if (a) {
381
- const R = [...o], { dataIndex: X, componentIndex: j } = I, q = R.findIndex(
382
- ([Y, K = 0]) => X === Y && j === K
381
+ const R = [...o], { dataIndex: X, componentIndex: j } = I, K = R.findIndex(
382
+ ([Y, Z = 0]) => X === Y && j === Z
383
383
  );
384
- q === -1 ? R.push([X, j]) : R.splice(q, 1);
384
+ K === -1 ? R.push([X, j]) : R.splice(K, 1);
385
385
  const te = R.map(
386
- ([Y, K = 0]) => ({
386
+ ([Y, Z = 0]) => ({
387
387
  xAxis: i[Y],
388
- serie: r[K],
389
- yAxis: t[K][Y]
388
+ serie: r[Z],
389
+ yAxis: t[Z][Y]
390
390
  })
391
391
  );
392
392
  a(b ? R : R.map((Y) => Y[0]), te);
@@ -406,14 +406,14 @@ function ns(e) {
406
406
  } : {},
407
407
  [f, D]
408
408
  );
409
- return x ? /* @__PURE__ */ n(Hi, { height: g }) : /* @__PURE__ */ v("div", { children: [
410
- a && /* @__PURE__ */ v(ji, { container: !0, children: [
409
+ return x ? /* @__PURE__ */ n(zi, { height: g }) : /* @__PURE__ */ v("div", { children: [
410
+ a && /* @__PURE__ */ v(Yi, { container: !0, children: [
411
411
  /* @__PURE__ */ n(H, { variant: "caption", children: o.length > 0 ? T.formatMessage(
412
412
  { id: "c4r.widgets.bar.selectedItems" },
413
413
  { items: o.length }
414
414
  ) : T.formatMessage({ id: "c4r.widgets.bar.all" }) }),
415
415
  o && o.length > 0 && /* @__PURE__ */ n(
416
- Yi,
416
+ Vi,
417
417
  {
418
418
  onClick: () => J(),
419
419
  onKeyDown: G,
@@ -489,7 +489,7 @@ const kn = m(ae)(({ theme: e }) => ({
489
489
  color: t.text.secondary
490
490
  }
491
491
  })
492
- ), Vi = m(ae)(({ theme: e }) => ({
492
+ ), Gi = m(ae)(({ theme: e }) => ({
493
493
  height: e.spacing(0.5),
494
494
  width: "100%",
495
495
  margin: e.spacing(0.5, 0, 0.25, 0),
@@ -503,13 +503,13 @@ const kn = m(ae)(({ theme: e }) => ({
503
503
  transition: `background-color ${e.transitions.easing.sharp} ${e.transitions.duration.shortest}ms,
504
504
  width ${e.transitions.easing.sharp} ${e.transitions.duration.complex}ms`
505
505
  }
506
- })), Gi = m(ae, {
506
+ })), Ui = m(ae, {
507
507
  shouldForwardProp: (e) => e !== "isSelectable"
508
508
  })(({ theme: e, isSelectable: t }) => ({
509
509
  ...t && {
510
510
  width: `calc(100% - ${e.spacing(4)})`
511
511
  }
512
- })), Ui = m(H)(({ theme: e }) => ({
512
+ })), Xi = m(H)(({ theme: e }) => ({
513
513
  fontWeight: e.typography.fontWeightBold,
514
514
  marginRight: e.spacing(2)
515
515
  })), Ve = m(ye)(({ theme: e }) => ({
@@ -518,7 +518,7 @@ const kn = m(ae)(({ theme: e }) => ({
518
518
  "& + hr": {
519
519
  margin: e.spacing(0, 1)
520
520
  }
521
- })), Xi = m(S)(({ theme: e }) => ({
521
+ })), qi = m(S)(({ theme: e }) => ({
522
522
  ...e.typography.body2
523
523
  })), Bt = m($e)(({ theme: e }) => ({
524
524
  position: "absolute",
@@ -533,17 +533,17 @@ const kn = m(ae)(({ theme: e }) => ({
533
533
  height: "auto",
534
534
  marginTop: e.spacing(2)
535
535
  }
536
- })), qi = m(z)(({ theme: e }) => ({
536
+ })), Ki = m(z)(({ theme: e }) => ({
537
537
  marginTop: e.spacing(1.25),
538
538
  marginBottom: e.spacing(1.75)
539
- })), Ki = (e) => e % 2 === 1, Mn = () => /* @__PURE__ */ v(ie, { children: [
539
+ })), Zi = (e) => e % 2 === 1, Mn = () => /* @__PURE__ */ v(ie, { children: [
540
540
  /* @__PURE__ */ n(z, { width: 48, height: 8 }),
541
541
  /* @__PURE__ */ n(kn, { container: !0, mt: 3, children: [...Array(6)].map((e, t) => /* @__PURE__ */ v(Sn, { container: !0, spacing: 1, children: [
542
542
  /* @__PURE__ */ v(ae, { container: !0, item: !0, direction: "row", justifyContent: "space-between", children: [
543
- /* @__PURE__ */ n(z, { width: Ki(t) ? 72 : 48, height: 8 }),
543
+ /* @__PURE__ */ n(z, { width: Zi(t) ? 72 : 48, height: 8 }),
544
544
  /* @__PURE__ */ n(z, { width: 48, height: 8 })
545
545
  ] }),
546
- /* @__PURE__ */ n(qi, { height: 4, width: "100%" })
546
+ /* @__PURE__ */ n(Ki, { height: 4, width: "100%" })
547
547
  ] }, t)) })
548
548
  ] });
549
549
  function In(e) {
@@ -568,7 +568,7 @@ function gt({
568
568
  };
569
569
  o.current = requestAnimationFrame(u);
570
570
  }
571
- function Zi({
571
+ function Ji({
572
572
  start: e,
573
573
  end: t,
574
574
  duration: i,
@@ -596,17 +596,17 @@ function Zi({
596
596
  };
597
597
  o.current = requestAnimationFrame(y);
598
598
  }
599
- const Ji = [], Qi = {}, er = (e) => e, ct = () => {
600
- }, tr = (e) => e.reduce((t, i) => t + (i.value ?? 0), 0);
601
- function is({
599
+ const Qi = [], er = {}, tr = (e) => e, ct = () => {
600
+ }, nr = (e) => e.reduce((t, i) => t + (i.value ?? 0), 0);
601
+ function rs({
602
602
  data: e,
603
- formatter: t = er,
604
- labels: i = Qi,
603
+ formatter: t = tr,
604
+ labels: i = er,
605
605
  maxItems: r = 5,
606
606
  order: o = Te.RANKING,
607
- selectedCategories: a = Ji,
607
+ selectedCategories: a = Qi,
608
608
  onSelectedCategoriesChange: l = ct,
609
- onMaxItemsOverflow: d = tr,
609
+ onMaxItemsOverflow: d = nr,
610
610
  animation: s = !0,
611
611
  filterable: u = !0,
612
612
  searchable: p = !0,
@@ -616,24 +616,24 @@ function is({
616
616
  []
617
617
  ), [L, P] = _([]), $ = re(null), W = re(), J = In(L), G = re([]), { showSkeleton: D } = ke(!!c), N = se(), I = ce(N);
618
618
  function R(E) {
619
- return g.reduce((Z, Q) => (E.includes(Q.name) && Z.push(Q.name), Z), []);
619
+ return g.reduce((q, Q) => (E.includes(Q.name) && q.push(Q.name), q), []);
620
620
  }
621
621
  function X(E) {
622
622
  if (E !== Me) {
623
- let Z;
624
- a.includes(E) ? Z = a.filter((Q) => Q !== E) : Z = [...a, E], l && l(Z);
623
+ let q;
624
+ a.includes(E) ? q = a.filter((Q) => Q !== E) : q = [...a, E], l && l(q);
625
625
  }
626
626
  }
627
- const j = () => l([]), q = (E) => {
627
+ const j = () => l([]), K = (E) => {
628
628
  E.key === "Enter" && j();
629
629
  }, te = () => {
630
630
  l([]), A([]);
631
631
  }, Y = (E) => {
632
632
  E.key === "Enter" && te();
633
- }, K = () => {
633
+ }, Z = () => {
634
634
  A(R(a));
635
635
  }, de = (E) => {
636
- E.key === "Enter" && K();
636
+ E.key === "Enter" && Z();
637
637
  }, we = () => {
638
638
  const E = R(
639
639
  C
@@ -645,8 +645,8 @@ function is({
645
645
  T(""), k(!1);
646
646
  }, ee = (E) => {
647
647
  if (E !== Me) {
648
- let Z;
649
- C.includes(E) ? Z = C.filter((Q) => Q !== E) : Z = [...C, E], O(Z);
648
+ let q;
649
+ C.includes(E) ? q = C.filter((Q) => Q !== E) : q = [...C, E], O(q);
650
650
  }
651
651
  }, ne = (E) => {
652
652
  E.currentTarget.scrollIntoView();
@@ -657,11 +657,11 @@ function is({
657
657
  }, Re = oe(
658
658
  (E) => {
659
659
  if (b)
660
- return M ? E.filter((Z) => {
660
+ return M ? E.filter((q) => {
661
661
  var xe;
662
- if (!Z.name)
662
+ if (!q.name)
663
663
  return !1;
664
- const Q = String(Z.name);
664
+ const Q = String(q.name);
665
665
  return !!(Q.toLowerCase().includes(M.toLowerCase()) || (xe = i[Q]) != null && xe.toLowerCase().includes(M.toLowerCase()));
666
666
  }) : E;
667
667
  if (x.length)
@@ -673,15 +673,15 @@ function is({
673
673
  }), Q;
674
674
  }, []);
675
675
  {
676
- const Z = E.slice(0, r);
677
- if (Z.length < E.length) {
676
+ const q = E.slice(0, r);
677
+ if (q.length < E.length) {
678
678
  const Q = {
679
679
  name: Me,
680
680
  value: d(E.slice(r))
681
681
  };
682
- return [...Z, Q];
682
+ return [...q, Q];
683
683
  } else
684
- return Z;
684
+ return q;
685
685
  }
686
686
  },
687
687
  [
@@ -707,10 +707,10 @@ function is({
707
707
  }, [a]), U(() => {
708
708
  if (e) {
709
709
  if (o === Te.RANKING) {
710
- const E = [...e].sort((Q, xe) => (xe.value ?? 0) - (Q.value ?? 0)), Z = Re(E);
711
- Z.length > 0 ? h(Z[0].value ?? 0) : h(1), f(Z);
710
+ const E = [...e].sort((Q, xe) => (xe.value ?? 0) - (Q.value ?? 0)), q = Re(E);
711
+ q.length > 0 ? h(q[0].value ?? 0) : h(1), f(q);
712
712
  } else if (o === Te.FIXED) {
713
- h(Math.max(...e.map((Z) => Z.value ?? 0)));
713
+ h(Math.max(...e.map((q) => q.value ?? 0)));
714
714
  const E = Re(e);
715
715
  f(E);
716
716
  }
@@ -728,7 +728,7 @@ function is({
728
728
  J && (G.current = J);
729
729
  }, [J]), U(() => {
730
730
  if (s)
731
- return Zi({
731
+ return Ji({
732
732
  start: (G.current || []).map((E) => ({
733
733
  ...E,
734
734
  value: E.value ?? 0
@@ -746,7 +746,7 @@ function is({
746
746
  }, [b, W]);
747
747
  function Xn({
748
748
  data: E,
749
- onCategoryClick: Z
749
+ onCategoryClick: q
750
750
  }) {
751
751
  const Q = t(E.value ?? 0), [xe, Ye] = _(!1), be = re(null), lt = () => {
752
752
  var $t, Pt;
@@ -757,7 +757,7 @@ function is({
757
757
  window.removeEventListener("resize", lt);
758
758
  }), []);
759
759
  const Zn = (st) => {
760
- st.key === "Enter" && Z();
760
+ st.key === "Enter" && q();
761
761
  }, Jn = !b && a.length > 0 && !a.includes(E.name);
762
762
  return /* @__PURE__ */ v(
763
763
  Sn,
@@ -765,7 +765,7 @@ function is({
765
765
  container: !0,
766
766
  direction: "row",
767
767
  spacing: 1,
768
- onClick: u ? Z : ct,
768
+ onClick: u ? q : ct,
769
769
  onKeyDown: u ? Zn : ct,
770
770
  selectable: u,
771
771
  unselected: Jn,
@@ -779,7 +779,7 @@ function is({
779
779
  tabIndex: -1
780
780
  }
781
781
  ) }),
782
- /* @__PURE__ */ v(Gi, { container: !0, item: !0, xs: !0, isSelectable: b, children: [
782
+ /* @__PURE__ */ v(Ui, { container: !0, item: !0, xs: !0, isSelectable: b, children: [
783
783
  /* @__PURE__ */ v(
784
784
  ae,
785
785
  {
@@ -794,7 +794,7 @@ function is({
794
794
  {
795
795
  title: Dt(E.name),
796
796
  disableHoverListener: !xe,
797
- children: /* @__PURE__ */ n(Ui, { variant: "body2", noWrap: !0, ref: be, children: Dt(E.name) })
797
+ children: /* @__PURE__ */ n(Xi, { variant: "body2", noWrap: !0, ref: be, children: Dt(E.name) })
798
798
  }
799
799
  ),
800
800
  typeof Q == "object" && Q !== null ? /* @__PURE__ */ v("span", { children: [
@@ -805,7 +805,7 @@ function is({
805
805
  ]
806
806
  }
807
807
  ),
808
- /* @__PURE__ */ n(Vi, { className: "progressbar", item: !0, children: /* @__PURE__ */ n("div", { style: { width: Un(E.value ?? 0) } }) })
808
+ /* @__PURE__ */ n(Gi, { className: "progressbar", item: !0, children: /* @__PURE__ */ n("div", { style: { width: Un(E.value ?? 0) } }) })
809
809
  ] })
810
810
  ]
811
811
  }
@@ -814,10 +814,10 @@ function is({
814
814
  if ((e == null ? void 0 : e.length) === 0 || D) return /* @__PURE__ */ n(Mn, {});
815
815
  const qn = ({
816
816
  index: E,
817
- style: Z
817
+ style: q
818
818
  }) => {
819
819
  const Q = L[E];
820
- return Q ? /* @__PURE__ */ n("div", { style: Z, children: /* @__PURE__ */ n(
820
+ return Q ? /* @__PURE__ */ n("div", { style: q, children: /* @__PURE__ */ n(
821
821
  Xn,
822
822
  {
823
823
  data: Q,
@@ -825,7 +825,7 @@ function is({
825
825
  }
826
826
  ) }) : null;
827
827
  }, Kn = () => b ? 320 : L.length <= r ? L.length * 38 : x.length > 0 ? x.length * 38 : (r + 1) * 38;
828
- return /* @__PURE__ */ v(Xi, { children: [
828
+ return /* @__PURE__ */ v(qi, { children: [
829
829
  u && g.length > 0 && /* @__PURE__ */ v(Nt, { container: !0, children: [
830
830
  /* @__PURE__ */ n(H, { variant: "caption", children: a.length > 0 ? I.formatMessage(
831
831
  { id: "c4r.widgets.category.selectedItems" },
@@ -854,7 +854,7 @@ function is({
854
854
  /* @__PURE__ */ n(
855
855
  Ve,
856
856
  {
857
- onClick: K,
857
+ onClick: Z,
858
858
  onKeyDown: de,
859
859
  underline: "hover",
860
860
  tabIndex: 0,
@@ -868,7 +868,7 @@ function is({
868
868
  Ve,
869
869
  {
870
870
  onClick: j,
871
- onKeyDown: q,
871
+ onKeyDown: K,
872
872
  underline: "hover",
873
873
  tabIndex: 0,
874
874
  children: I.formatMessage({
@@ -901,9 +901,11 @@ function is({
901
901
  /* @__PURE__ */ n(Bt, { size: "small", onClick: V, children: I.formatMessage({ id: "c4r.widgets.category.cancel" }) })
902
902
  ] }),
903
903
  /* @__PURE__ */ n(kn, { container: !0, item: !0, children: L.length ? /* @__PURE__ */ n(
904
- xi,
904
+ bi,
905
905
  {
906
- outerElementType: (E) => /* @__PURE__ */ n("div", { ...E, "data-testid": "category-widget-list" }),
906
+ outerElementType: ei(
907
+ (E, q) => /* @__PURE__ */ n("div", { ref: q, "data-testid": "category-widget-list", ...E })
908
+ ),
907
909
  height: Kn(),
908
910
  width: "100%",
909
911
  itemCount: L.length,
@@ -945,14 +947,14 @@ function is({
945
947
  ) }) : null
946
948
  ] });
947
949
  }
948
- const Tn = () => /* @__PURE__ */ n(S, { pt: 0.5, children: /* @__PURE__ */ n(z, { height: 24, width: 120 }) }), nr = m("span")(() => ({
950
+ const Tn = () => /* @__PURE__ */ n(S, { pt: 0.5, children: /* @__PURE__ */ n(z, { height: 24, width: 120 }) }), ir = m("span")(() => ({
949
951
  marginRight: "2px"
950
- })), ir = m("span")(() => ({
952
+ })), rr = m("span")(() => ({
951
953
  marginLeft: "2px"
952
- })), Ge = "-", rr = (e) => e;
953
- function rs({
954
+ })), Ge = "-", or = (e) => e;
955
+ function os({
954
956
  data: e = Ge,
955
- formatter: t = rr,
957
+ formatter: t = or,
956
958
  animation: i = !0,
957
959
  isLoading: r = !1
958
960
  }) {
@@ -976,9 +978,9 @@ function rs({
976
978
  }), [i, e, a]);
977
979
  const p = t(o), c = typeof p == "object" && p !== null, y = p === Ge;
978
980
  return u ? /* @__PURE__ */ n(Tn, {}) : c ? /* @__PURE__ */ v(H, { variant: "h5", component: "div", weight: "medium", children: [
979
- /* @__PURE__ */ n(nr, { children: p.prefix }),
981
+ /* @__PURE__ */ n(ir, { children: p.prefix }),
980
982
  p.value,
981
- /* @__PURE__ */ n(ir, { children: p.suffix })
983
+ /* @__PURE__ */ n(rr, { children: p.suffix })
982
984
  ] }) : /* @__PURE__ */ n(
983
985
  H,
984
986
  {
@@ -995,7 +997,7 @@ function rs({
995
997
  }
996
998
  const _t = {};
997
999
  let Ne = null;
998
- function or({
1000
+ function ar({
999
1001
  data: e,
1000
1002
  filterable: t,
1001
1003
  selectedBars: i,
@@ -1077,7 +1079,7 @@ function dt(e, t, i) {
1077
1079
  _t[t] && (e != null && e.handler) && e.off(t, i);
1078
1080
  };
1079
1081
  }
1080
- function ar({ height: e }) {
1082
+ function lr({ height: e }) {
1081
1083
  return /* @__PURE__ */ v(ie, { children: [
1082
1084
  /* @__PURE__ */ n(S, { mb: 2, children: /* @__PURE__ */ n(z, { width: 48, height: 8 }) }),
1083
1085
  /* @__PURE__ */ v(bn, { style: { height: e ?? at }, children: [
@@ -1096,7 +1098,7 @@ function ar({ height: e }) {
1096
1098
  ] })
1097
1099
  ] });
1098
1100
  }
1099
- const lr = vn(), sr = m(ae)(({ theme: e }) => ({
1101
+ const sr = vn(), cr = m(ae)(({ theme: e }) => ({
1100
1102
  marginBottom: e.spacing(2),
1101
1103
  flexDirection: "row",
1102
1104
  justifyContent: "space-between",
@@ -1104,12 +1106,12 @@ const lr = vn(), sr = m(ae)(({ theme: e }) => ({
1104
1106
  "& .MuiTypography-caption": {
1105
1107
  color: e.palette.text.secondary
1106
1108
  }
1107
- })), cr = m(ye)(({ theme: e }) => ({
1109
+ })), dr = m(ye)(({ theme: e }) => ({
1108
1110
  ...e.typography.caption,
1109
1111
  cursor: "pointer"
1110
- })), dr = [], ur = () => {
1112
+ })), ur = [], pr = () => {
1111
1113
  }, et = (e) => e;
1112
- function pr(e, t = et, i = et) {
1114
+ function gr(e, t = et, i = et) {
1113
1115
  if (!e)
1114
1116
  return null;
1115
1117
  if (Array.isArray(e) && e.length === 0)
@@ -1120,7 +1122,7 @@ function pr(e, t = et, i = et) {
1120
1122
  const [a, l, d] = o.value, s = ge(t(a)), u = ge(t(l)), p = ge(i(d)), c = `${s} <span style="vertical-align: 1px;">—</span> ${u}`, y = `<div style="margin-left: 8px; display: inline">${p}</div>`;
1121
1123
  return `${c} <div style="margin-top: 4px">${String(r)}${y}</div>`;
1122
1124
  }
1123
- function os({
1125
+ function as({
1124
1126
  data: e,
1125
1127
  ticks: t,
1126
1128
  min: i,
@@ -1128,19 +1130,19 @@ function os({
1128
1130
  xAxisFormatter: o = et,
1129
1131
  yAxisFormatter: a = et,
1130
1132
  yAxisType: l = "dense",
1131
- selectedBars: d = dr,
1132
- onSelectedBarsChange: s = ur,
1133
+ selectedBars: d = ur,
1134
+ onSelectedBarsChange: s = pr,
1133
1135
  tooltip: u = !0,
1134
- tooltipFormatter: p = pr,
1136
+ tooltipFormatter: p = gr,
1135
1137
  animation: c = !0,
1136
1138
  filterable: y = !0,
1137
1139
  height: g = 200,
1138
1140
  isLoading: f
1139
1141
  }) {
1140
1142
  const w = se(), h = le(), b = ce(w), { showSkeleton: k } = ke(!!f), M = !!y && !!s, [T, x] = _(), A = (I) => x(I), C = F(
1141
- () => fr(e, t, i, r),
1143
+ () => mr(e, t, i, r),
1142
1144
  [e, t, i, r]
1143
- ), { onEvents: O, markAreaOptions: L } = or({
1145
+ ), { onEvents: O, markAreaOptions: L } = ar({
1144
1146
  data: C,
1145
1147
  filterable: M,
1146
1148
  selectedBars: d,
@@ -1190,7 +1192,7 @@ function os({
1190
1192
  padding: [B * 0.5, B * 0.5, 0, B * 0.5],
1191
1193
  formatter: (I) => {
1192
1194
  const R = ge(o(I));
1193
- return I === i ? gr(R) : I === r ? hr(R) : R;
1195
+ return I === i ? hr(R) : I === r ? fr(R) : R;
1194
1196
  },
1195
1197
  color: h.palette.black[60]
1196
1198
  }
@@ -1203,9 +1205,9 @@ function os({
1203
1205
  padding: [0, 0, B * 1.25, 0],
1204
1206
  inside: !0,
1205
1207
  color: (j) => {
1206
- const q = Math.max(...e.map((Y) => Y ?? Number.MIN_SAFE_INTEGER)) || 1;
1208
+ const K = Math.max(...e.map((Y) => Y ?? Number.MIN_SAFE_INTEGER)) || 1;
1207
1209
  let te = "transparent";
1208
- return j >= q && (te = h.palette.black[60]), te;
1210
+ return j >= K && (te = h.palette.black[60]), te;
1209
1211
  },
1210
1212
  ...h.typography.overlineDelicate,
1211
1213
  formatter: (j) => ge(a(j))
@@ -1244,16 +1246,16 @@ function os({
1244
1246
  a,
1245
1247
  l
1246
1248
  ]), J = F(() => {
1247
- const I = i === r && C.filter((j) => j[2] !== 0).length === 1, X = (I ? [C[0], C[C.length - 1]] : C).map((j, q) => {
1248
- const Y = d.length && !d.includes(q) ? h.palette.black[25] : h.palette.secondary.main;
1249
+ const I = i === r && C.filter((j) => j[2] !== 0).length === 1, X = (I ? [C[0], C[C.length - 1]] : C).map((j, K) => {
1250
+ const Y = d.length && !d.includes(K) ? h.palette.black[25] : h.palette.secondary.main;
1249
1251
  return { value: j, itemStyle: { color: Y } };
1250
1252
  });
1251
1253
  return {
1252
1254
  type: "custom",
1253
1255
  cursor: "pointer",
1254
1256
  markArea: L,
1255
- renderItem: function(j, q) {
1256
- const te = j.dataIndex === C.length - 1, Y = j.dataIndex === 0, K = X[j.dataIndex].itemStyle.color, de = q.value(0), we = q.value(1), ve = q.value(2), [V, ee] = q.coord([de, ve]), [ne, pe] = q.size([we - de, ve]);
1257
+ renderItem: function(j, K) {
1258
+ const te = j.dataIndex === C.length - 1, Y = j.dataIndex === 0, Z = X[j.dataIndex].itemStyle.color, de = K.value(0), we = K.value(1), ve = K.value(2), [V, ee] = K.coord([de, ve]), [ne, pe] = K.size([we - de, ve]);
1257
1259
  return {
1258
1260
  type: "rect",
1259
1261
  shape: {
@@ -1263,11 +1265,11 @@ function os({
1263
1265
  width: I ? V - V / 10 : ne - (te ? 0 : 1),
1264
1266
  height: pe
1265
1267
  },
1266
- style: { fill: K },
1267
- ...!lr && {
1268
+ style: { fill: Z },
1269
+ ...!sr && {
1268
1270
  emphasis: {
1269
1271
  style: {
1270
- fill: yt(K, 0.25)
1272
+ fill: yt(Z, 0.25)
1271
1273
  }
1272
1274
  }
1273
1275
  }
@@ -1311,8 +1313,8 @@ function os({
1311
1313
  ), N = (I) => {
1312
1314
  I.key === "Enter" && s([]);
1313
1315
  };
1314
- return k ? /* @__PURE__ */ n(ar, { height: g }) : /* @__PURE__ */ v("div", { children: [
1315
- M && /* @__PURE__ */ v(sr, { container: !0, children: [
1316
+ return k ? /* @__PURE__ */ n(lr, { height: g }) : /* @__PURE__ */ v("div", { children: [
1317
+ M && /* @__PURE__ */ v(cr, { container: !0, children: [
1316
1318
  /* @__PURE__ */ n(H, { variant: "caption", weight: "strong", children: d.length > 0 ? b.formatMessage(
1317
1319
  { id: "c4r.widgets.histogram.selectedItems" },
1318
1320
  {
@@ -1322,7 +1324,7 @@ function os({
1322
1324
  }
1323
1325
  ) : b.formatMessage({ id: "c4r.widgets.histogram.all" }) }),
1324
1326
  d.length > 0 && /* @__PURE__ */ n(
1325
- cr,
1327
+ dr,
1326
1328
  {
1327
1329
  onClick: () => s([]),
1328
1330
  onKeyDown: N,
@@ -1344,14 +1346,14 @@ function os({
1344
1346
  )
1345
1347
  ] });
1346
1348
  }
1347
- function gr(e) {
1349
+ function hr(e) {
1348
1350
  return `${Array(String(e).length).fill(" ").join("")}${e}`;
1349
1351
  }
1350
- function hr(e) {
1352
+ function fr(e) {
1351
1353
  const t = Array(String(e).length).fill(" ").join("");
1352
1354
  return `${e}${t}`;
1353
1355
  }
1354
- function fr(e, t, i, r) {
1356
+ function mr(e, t, i, r) {
1355
1357
  return e.map(
1356
1358
  (o, a) => [
1357
1359
  a === 0 ? i : t[a - 1],
@@ -1360,7 +1362,7 @@ function fr(e, t, i, r) {
1360
1362
  ]
1361
1363
  );
1362
1364
  }
1363
- function mr(e, t, i, r) {
1365
+ function yr(e, t, i, r) {
1364
1366
  const o = le(), a = F(() => t === Te.RANKING ? e.slice().sort((s, u) => (u.value ?? 0) - (s.value ?? 0)) : e, [e, t]), l = F(() => {
1365
1367
  const s = [];
1366
1368
  let u = 0;
@@ -1388,27 +1390,27 @@ function mr(e, t, i, r) {
1388
1390
  });
1389
1391
  }, [l, r, o]);
1390
1392
  }
1391
- const yr = m(S)(({ theme: e }) => ({
1393
+ const wr = m(S)(({ theme: e }) => ({
1392
1394
  zIndex: 1,
1393
1395
  display: "flex",
1394
1396
  flexDirection: "column",
1395
1397
  alignItems: "center",
1396
1398
  justifyContent: "center",
1397
1399
  paddingBottom: e.spacing(1)
1398
- })), wr = m(S)(({ theme: e }) => ({
1400
+ })), vr = m(S)(({ theme: e }) => ({
1399
1401
  display: "flex",
1400
1402
  alignItems: "center",
1401
1403
  gap: e.spacing(1),
1402
1404
  maxWidth: "140px",
1403
1405
  textTransform: "uppercase"
1404
- })), vr = m(S)(({ theme: e }) => ({
1406
+ })), xr = m(S)(({ theme: e }) => ({
1405
1407
  display: "inline-block",
1406
1408
  borderRadius: e.spacing(0.5),
1407
1409
  width: e.spacing(1),
1408
1410
  minWidth: e.spacing(1),
1409
1411
  height: e.spacing(1)
1410
1412
  }));
1411
- function xr({
1413
+ function br({
1412
1414
  data: e,
1413
1415
  selectedCategories: t,
1414
1416
  formatter: i
@@ -1420,13 +1422,13 @@ function xr({
1420
1422
  t.length > 0 ? u = e.filter(
1421
1423
  (f) => t.includes(f.name)
1422
1424
  ) : u = e;
1423
- const p = br(u), c = u.find((f) => f === p);
1425
+ const p = kr(u), c = u.find((f) => f === p);
1424
1426
  if (!c)
1425
1427
  return null;
1426
1428
  let y = 0;
1427
1429
  for (const f of e)
1428
1430
  y += f.value ?? 0;
1429
- const g = kr(
1431
+ const g = Sr(
1430
1432
  c.value ?? 0,
1431
1433
  y,
1432
1434
  i
@@ -1437,50 +1439,50 @@ function xr({
1437
1439
  a && o(a);
1438
1440
  }, [a, o]);
1439
1441
  const { name: l, percentage: d, color: s } = r ?? {};
1440
- return r ? /* @__PURE__ */ v(yr, { children: [
1442
+ return r ? /* @__PURE__ */ v(wr, { children: [
1441
1443
  /* @__PURE__ */ n(H, { variant: "h5", children: d }),
1442
- /* @__PURE__ */ v(wr, { children: [
1443
- /* @__PURE__ */ n(vr, { bgcolor: s, component: "span" }),
1444
+ /* @__PURE__ */ v(vr, { children: [
1445
+ /* @__PURE__ */ n(xr, { bgcolor: s, component: "span" }),
1444
1446
  /* @__PURE__ */ n(H, { component: "span", variant: "body2", noWrap: !0, children: l })
1445
1447
  ] })
1446
1448
  ] }) : null;
1447
1449
  }
1448
- function br(e) {
1450
+ function kr(e) {
1449
1451
  const t = e.filter(
1450
1452
  (i) => i.name !== Oe
1451
1453
  );
1452
1454
  return t.length === 0 ? e[0] : t.reduce((i, r) => (r.value ?? 0) > (i.value ?? 0) ? r : i);
1453
1455
  }
1454
- function kr(e, t, i) {
1456
+ function Sr(e, t, i) {
1455
1457
  let r = 0;
1456
1458
  return t !== 0 && (r = e / t * 100), i ? i(r) : `${r}%`;
1457
1459
  }
1458
- const Ht = 32, Sr = m(S)(({ theme: e }) => ({
1460
+ const Ht = 32, Mr = m(S)(({ theme: e }) => ({
1459
1461
  display: "flex",
1460
1462
  alignItems: "center",
1461
1463
  justifyContent: "center",
1462
1464
  marginTop: e.spacing(0.5)
1463
- })), Mr = m("div")(() => ({
1465
+ })), Ir = m("div")(() => ({
1464
1466
  display: "flex",
1465
1467
  alignItems: "center",
1466
1468
  justifyContent: "center",
1467
1469
  position: "relative"
1468
- })), Ir = m(_i)(() => ({
1470
+ })), Tr = m(Hi)(() => ({
1469
1471
  position: "absolute",
1470
1472
  zIndex: 1
1471
- })), Tr = m("div")(({ theme: e }) => ({
1473
+ })), Cr = m("div")(({ theme: e }) => ({
1472
1474
  display: "flex",
1473
1475
  flexDirection: "column",
1474
1476
  alignItems: "center",
1475
1477
  gap: e.spacing(1),
1476
1478
  position: "absolute",
1477
1479
  zIndex: 2
1478
- })), Cr = m(S)(({ theme: e }) => ({
1480
+ })), Ar = m(S)(({ theme: e }) => ({
1479
1481
  display: "flex",
1480
1482
  alignItems: "center",
1481
1483
  gap: e.spacing(2),
1482
1484
  height: e.spacing(5)
1483
- })), Ar = m("div")(({ theme: e }) => ({
1485
+ })), Er = m("div")(({ theme: e }) => ({
1484
1486
  display: "flex",
1485
1487
  alignItems: "center",
1486
1488
  gap: e.spacing(1.5)
@@ -1489,32 +1491,32 @@ function Cn({ height: e }) {
1489
1491
  const t = parseInt(String(e), 10) || at, i = t - Ht, r = i - Ht;
1490
1492
  return /* @__PURE__ */ v(S, { mt: 0.5, children: [
1491
1493
  /* @__PURE__ */ n(z, { height: 8, width: 64 }),
1492
- /* @__PURE__ */ n(Sr, { height: t, children: /* @__PURE__ */ v(Mr, { children: [
1494
+ /* @__PURE__ */ n(Mr, { height: t, children: /* @__PURE__ */ v(Ir, { children: [
1493
1495
  /* @__PURE__ */ n(z, { variant: "circular", width: i, height: i }),
1494
1496
  /* @__PURE__ */ n(
1495
- Ir,
1497
+ Tr,
1496
1498
  {
1497
1499
  variant: "circular",
1498
1500
  width: r,
1499
1501
  height: r
1500
1502
  }
1501
1503
  ),
1502
- /* @__PURE__ */ v(Tr, { children: [
1504
+ /* @__PURE__ */ v(Cr, { children: [
1503
1505
  /* @__PURE__ */ n(z, { height: 24, width: 72 }),
1504
1506
  /* @__PURE__ */ n(z, { height: 8, width: 48 })
1505
1507
  ] })
1506
1508
  ] }) }),
1507
- /* @__PURE__ */ n(Cr, { children: [...Array(2)].map((o, a) => /* @__PURE__ */ v(Ar, { children: [
1509
+ /* @__PURE__ */ n(Ar, { children: [...Array(2)].map((o, a) => /* @__PURE__ */ v(Er, { children: [
1508
1510
  /* @__PURE__ */ n(z, { variant: "circular", width: 8, height: 8 }),
1509
1511
  /* @__PURE__ */ n(z, { width: 48, height: 8 })
1510
1512
  ] }, a)) })
1511
1513
  ] });
1512
1514
  }
1513
- const Er = m(S)(({ theme: e }) => ({
1515
+ const Lr = m(S)(({ theme: e }) => ({
1514
1516
  position: "relative",
1515
1517
  padding: e.spacing(1.25, 1, 0, 1),
1516
1518
  width: "100%"
1517
- })), Lr = m(S)(({ theme: e }) => ({
1519
+ })), Dr = m(S)(({ theme: e }) => ({
1518
1520
  position: "relative",
1519
1521
  display: "flex",
1520
1522
  flexDirection: "row",
@@ -1523,7 +1525,7 @@ const Er = m(S)(({ theme: e }) => ({
1523
1525
  // Accessibility tweak to display focus indicator properly
1524
1526
  padding: e.spacing(0.5),
1525
1527
  margin: e.spacing(-0.5)
1526
- })), Dr = m(S)(({ theme: e }) => ({
1528
+ })), $r = m(S)(({ theme: e }) => ({
1527
1529
  display: "flex",
1528
1530
  flexDirection: "row",
1529
1531
  gap: e.spacing(1),
@@ -1531,7 +1533,7 @@ const Er = m(S)(({ theme: e }) => ({
1531
1533
  textOverflow: "ellipsis",
1532
1534
  whiteSpace: "nowrap",
1533
1535
  cursor: "pointer"
1534
- })), $r = m(S)(({ theme: e }) => ({
1536
+ })), Pr = m(S)(({ theme: e }) => ({
1535
1537
  display: "inline-block",
1536
1538
  position: "absolute",
1537
1539
  left: e.spacing(-2),
@@ -1540,13 +1542,13 @@ const Er = m(S)(({ theme: e }) => ({
1540
1542
  zIndex: 1,
1541
1543
  width: e.spacing(2.5),
1542
1544
  background: `linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${e.palette.background.paper} 100%)`
1543
- })), Pr = m(S)(({ theme: e }) => ({
1545
+ })), Or = m(S)(({ theme: e }) => ({
1544
1546
  position: "absolute",
1545
1547
  padding: e.spacing(0.25, 1),
1546
1548
  top: e.spacing(0),
1547
1549
  right: 0,
1548
1550
  background: e.palette.background.paper
1549
- })), Or = m(S, {
1551
+ })), Wr = m(S, {
1550
1552
  shouldForwardProp: (e) => e !== "color"
1551
1553
  })(({ theme: e, color: t }) => {
1552
1554
  const i = e.spacing(1);
@@ -1597,9 +1599,9 @@ function An({
1597
1599
  }), x.observe(p.current)), () => {
1598
1600
  x == null || x.disconnect();
1599
1601
  };
1600
- }, [p, k]), /* @__PURE__ */ v(Er, { ref: p, children: [
1602
+ }, [p, k]), /* @__PURE__ */ v(Lr, { ref: p, children: [
1601
1603
  /* @__PURE__ */ n(
1602
- Lr,
1604
+ Dr,
1603
1605
  {
1604
1606
  ref: c,
1605
1607
  style: {
@@ -1609,7 +1611,7 @@ function An({
1609
1611
  if (A < l) return null;
1610
1612
  const C = t.length === 0 || t.includes(x.name);
1611
1613
  return /* @__PURE__ */ v(
1612
- Dr,
1614
+ $r,
1613
1615
  {
1614
1616
  tabIndex: 0,
1615
1617
  onClick: i ? () => i(x.name) : void 0,
@@ -1619,7 +1621,7 @@ function An({
1619
1621
  },
1620
1622
  children: [
1621
1623
  /* @__PURE__ */ n(
1622
- Or,
1624
+ Wr,
1623
1625
  {
1624
1626
  color: C ? x.color : r.palette.text.disabled
1625
1627
  }
@@ -1639,8 +1641,8 @@ function An({
1639
1641
  })
1640
1642
  }
1641
1643
  ),
1642
- (o || l > 0) && /* @__PURE__ */ v(Pr, { ref: y, children: [
1643
- /* @__PURE__ */ n($r, {}),
1644
+ (o || l > 0) && /* @__PURE__ */ v(Or, { ref: y, children: [
1645
+ /* @__PURE__ */ n(Pr, {}),
1644
1646
  /* @__PURE__ */ n(
1645
1647
  ue,
1646
1648
  {
@@ -1653,7 +1655,7 @@ function An({
1653
1655
  size: "small",
1654
1656
  disabled: l === 0,
1655
1657
  onClick: h,
1656
- children: /* @__PURE__ */ n(ki, {})
1658
+ children: /* @__PURE__ */ n(Si, {})
1657
1659
  }
1658
1660
  )
1659
1661
  }
@@ -1670,7 +1672,7 @@ function An({
1670
1672
  size: "small",
1671
1673
  disabled: !o,
1672
1674
  onClick: w,
1673
- children: /* @__PURE__ */ n(Si, {})
1675
+ children: /* @__PURE__ */ n(Mi, {})
1674
1676
  }
1675
1677
  )
1676
1678
  }
@@ -1678,12 +1680,12 @@ function An({
1678
1680
  ] })
1679
1681
  ] });
1680
1682
  }
1681
- const ht = "232px", Wr = m(ae)(({ theme: e }) => ({
1683
+ const ht = "232px", Rr = m(ae)(({ theme: e }) => ({
1682
1684
  flexDirection: "row",
1683
1685
  justifyContent: "space-between",
1684
1686
  alignItems: "center",
1685
1687
  marginBottom: e.spacing(0.5)
1686
- })), Rr = m(S, {
1688
+ })), Fr = m(S, {
1687
1689
  shouldForwardProp: (e) => e !== "height" && e !== "width"
1688
1690
  })(
1689
1691
  ({ height: e, width: t }) => ({
@@ -1696,22 +1698,22 @@ const ht = "232px", Wr = m(ae)(({ theme: e }) => ({
1696
1698
  width: t || "100%",
1697
1699
  height: e || "100%"
1698
1700
  })
1699
- ), Fr = m(We)(() => ({
1701
+ ), Nr = m(We)(() => ({
1700
1702
  position: "absolute",
1701
1703
  top: 0,
1702
1704
  right: 0,
1703
1705
  left: 0,
1704
1706
  bottom: 0
1705
- })), zt = [], Nr = {}, Br = (e) => e;
1706
- function as({
1707
+ })), zt = [], Br = {}, _r = (e) => e;
1708
+ function ls({
1707
1709
  name: e,
1708
1710
  data: t,
1709
- formatter: i = Br,
1710
- tooltipFormatter: r = _r,
1711
+ formatter: i = _r,
1712
+ tooltipFormatter: r = Hr,
1711
1713
  percentFormatter: o,
1712
1714
  height: a = ht,
1713
1715
  width: l = ht,
1714
- labels: d = Nr,
1716
+ labels: d = Br,
1715
1717
  colors: s = zt,
1716
1718
  animation: u = !0,
1717
1719
  filterable: p = !0,
@@ -1721,7 +1723,7 @@ function as({
1721
1723
  maxItems: f = 11,
1722
1724
  order: w = Te.RANKING
1723
1725
  }) {
1724
- const h = le(), b = mr(t, w, f, s), { showSkeleton: k } = ke(!!g), M = se(), T = ce(M), x = F(() => o || ((G) => `${M.formatNumber(G, {
1726
+ const h = le(), b = yr(t, w, f, s), { showSkeleton: k } = ke(!!g), M = se(), T = ce(M), x = F(() => o || ((G) => `${M.formatNumber(G, {
1725
1727
  maximumFractionDigits: 2,
1726
1728
  minimumFractionDigits: 2
1727
1729
  })}%`), [M, o]), A = F(() => {
@@ -1814,7 +1816,7 @@ function as({
1814
1816
  G.key === "Enter" && W();
1815
1817
  };
1816
1818
  return k ? /* @__PURE__ */ n(Cn, { height: a }) : /* @__PURE__ */ v(ie, { children: [
1817
- p && /* @__PURE__ */ v(Wr, { container: !0, children: [
1819
+ p && /* @__PURE__ */ v(Rr, { container: !0, children: [
1818
1820
  /* @__PURE__ */ n(H, { variant: "caption", color: "textSecondary", children: c.length ? T.formatMessage(
1819
1821
  { id: "c4r.widgets.pie.selectedItems" },
1820
1822
  { items: c.length }
@@ -1830,9 +1832,9 @@ function as({
1830
1832
  }
1831
1833
  )
1832
1834
  ] }),
1833
- /* @__PURE__ */ v(Rr, { height: a, width: l, children: [
1835
+ /* @__PURE__ */ v(Fr, { height: a, width: l, children: [
1834
1836
  /* @__PURE__ */ n(
1835
- xr,
1837
+ br,
1836
1838
  {
1837
1839
  data: b,
1838
1840
  selectedCategories: c,
@@ -1840,7 +1842,7 @@ function as({
1840
1842
  }
1841
1843
  ),
1842
1844
  /* @__PURE__ */ n(
1843
- Fr,
1845
+ Nr,
1844
1846
  {
1845
1847
  option: O,
1846
1848
  onEvents: $,
@@ -1859,7 +1861,7 @@ function as({
1859
1861
  )
1860
1862
  ] });
1861
1863
  }
1862
- function _r(e, t, i) {
1864
+ function Hr(e, t, i) {
1863
1865
  var s;
1864
1866
  const r = Array.isArray(e) ? e[0] : e;
1865
1867
  if (!r)
@@ -1870,19 +1872,19 @@ function _r(e, t, i) {
1870
1872
  <p style="display:flex;align-items:center;font-size: 11px;font-weight:500;line-height:1.454;margin:0;"><span style="${d}"></span> <span style="margin:0 4px;font-weight:400;">${o}</span> (${a})</p></div>
1871
1873
  `.trim();
1872
1874
  }
1873
- const Hr = m(ae)(({ theme: e }) => ({
1875
+ const zr = m(ae)(({ theme: e }) => ({
1874
1876
  position: "relative",
1875
1877
  alignItems: "center",
1876
1878
  height: e.spacing(4)
1877
- })), zr = m(ae)(({ theme: e }) => ({
1879
+ })), jr = m(ae)(({ theme: e }) => ({
1878
1880
  position: "absolute",
1879
1881
  zIndex: 1,
1880
1882
  padding: e.spacing(0, 3)
1881
1883
  }));
1882
- function jr() {
1884
+ function Yr() {
1883
1885
  return /* @__PURE__ */ v(ae, { container: !0, children: [
1884
- /* @__PURE__ */ v(Hr, { container: !0, item: !0, children: [
1885
- /* @__PURE__ */ v(zr, { container: !0, item: !0, justifyContent: "space-between", children: [
1886
+ /* @__PURE__ */ v(zr, { container: !0, item: !0, children: [
1887
+ /* @__PURE__ */ v(jr, { container: !0, item: !0, justifyContent: "space-between", children: [
1886
1888
  /* @__PURE__ */ n(Rt, { variant: "circular", width: 12, height: 12 }),
1887
1889
  /* @__PURE__ */ n(Rt, { variant: "circular", width: 12, height: 12 })
1888
1890
  ] }),
@@ -1894,13 +1896,13 @@ function jr() {
1894
1896
  ] })
1895
1897
  ] });
1896
1898
  }
1897
- const Yr = m(S)(() => ({
1899
+ const Vr = m(S)(() => ({
1898
1900
  position: "relative"
1899
- })), Vr = m(S)(({ theme: { spacing: e } }) => ({
1901
+ })), Gr = m(S)(({ theme: { spacing: e } }) => ({
1900
1902
  display: "flex",
1901
1903
  flexDirection: "row-reverse",
1902
1904
  height: e(1.5)
1903
- })), Gr = m(ye)(() => ({
1905
+ })), Ur = m(ye)(() => ({
1904
1906
  cursor: "pointer"
1905
1907
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1906
1908
  })), jt = m(ot)(({ theme: { spacing: e } }) => ({
@@ -1922,11 +1924,11 @@ const Yr = m(S)(() => ({
1922
1924
  margin: 0
1923
1925
  }
1924
1926
  }
1925
- })), Ur = m(xt)(({ theme: { palette: e } }) => ({
1927
+ })), Xr = m(xt)(({ theme: { palette: e } }) => ({
1926
1928
  "& .MuiSlider-rail": {
1927
1929
  color: e.text.hint
1928
1930
  }
1929
- })), Xr = m(xt)(({ theme: { palette: e, spacing: t } }) => ({
1931
+ })), qr = m(xt)(({ theme: { palette: e, spacing: t } }) => ({
1930
1932
  pointerEvents: "none",
1931
1933
  position: "absolute",
1932
1934
  zIndex: 1,
@@ -1951,7 +1953,7 @@ const Yr = m(S)(() => ({
1951
1953
  transform: "translateY(-50%)"
1952
1954
  }
1953
1955
  }));
1954
- function ls({
1956
+ function ss({
1955
1957
  data: e,
1956
1958
  min: t,
1957
1959
  max: i,
@@ -1974,7 +1976,7 @@ function ls({
1974
1976
  if (!(x[0].value > x[1].value))
1975
1977
  return x;
1976
1978
  }, [r, i, t]), f = F(
1977
- () => o ? ii(o, 250) : null,
1979
+ () => o ? ri(o, 250) : null,
1978
1980
  [o]
1979
1981
  ), w = (x) => {
1980
1982
  u([...x]), d([...x]), f && f([...x]);
@@ -1999,9 +2001,9 @@ function ls({
1999
2001
  function T(x) {
2000
2002
  x.key === "Enter" && M();
2001
2003
  }
2002
- return y ? /* @__PURE__ */ n(jr, {}) : /* @__PURE__ */ v(Yr, { children: [
2003
- /* @__PURE__ */ n(Vr, { children: b && /* @__PURE__ */ n(H, { variant: "caption", color: "primary", children: /* @__PURE__ */ n(
2004
- Gr,
2004
+ return y ? /* @__PURE__ */ n(Yr, {}) : /* @__PURE__ */ v(Vr, { children: [
2005
+ /* @__PURE__ */ n(Gr, { children: b && /* @__PURE__ */ n(H, { variant: "caption", color: "primary", children: /* @__PURE__ */ n(
2006
+ Ur,
2005
2007
  {
2006
2008
  onClick: M,
2007
2009
  onKeyDown: T,
@@ -2013,7 +2015,7 @@ function ls({
2013
2015
  ) }) }),
2014
2016
  /* @__PURE__ */ v(S, { children: [
2015
2017
  /* @__PURE__ */ n(
2016
- Ur,
2018
+ Xr,
2017
2019
  {
2018
2020
  getAriaLabel: (x) => x === 0 ? c.formatMessage({ id: "c4r.widgets.range.minValue" }) : c.formatMessage({ id: "c4r.widgets.range.maxValue" }),
2019
2021
  value: l,
@@ -2023,7 +2025,7 @@ function ls({
2023
2025
  }
2024
2026
  ),
2025
2027
  r && r.length === 2 && /* @__PURE__ */ n(
2026
- Xr,
2028
+ qr,
2027
2029
  {
2028
2030
  getAriaLabel: (x) => x === 0 ? c.formatMessage({ id: "c4r.widgets.range.minLimit" }) : c.formatMessage({ id: "c4r.widgets.range.maxLimit" }),
2029
2031
  value: r,
@@ -2071,7 +2073,7 @@ function ls({
2071
2073
  ] })
2072
2074
  ] });
2073
2075
  }
2074
- const qr = m(bn)(({ theme: e }) => ({
2076
+ const Kr = m(bn)(({ theme: e }) => ({
2075
2077
  flexDirection: "column",
2076
2078
  alignItems: "center",
2077
2079
  justifyContent: "center",
@@ -2082,29 +2084,29 @@ const qr = m(bn)(({ theme: e }) => ({
2082
2084
  maxWidth: "75%"
2083
2085
  }
2084
2086
  }
2085
- })), Kr = m(S)(() => ({
2087
+ })), Zr = m(S)(() => ({
2086
2088
  position: "relative",
2087
2089
  display: "flex",
2088
2090
  justifyContent: "space-between",
2089
2091
  width: "80%",
2090
2092
  maxWidth: "50%"
2091
2093
  }));
2092
- function Zr({ height: e }) {
2094
+ function Jr({ height: e }) {
2093
2095
  function t() {
2094
2096
  return Math.floor(Math.random() * 5);
2095
2097
  }
2096
2098
  return /* @__PURE__ */ v(S, { height: e ?? at, children: [
2097
2099
  /* @__PURE__ */ n(S, { mb: 4, children: /* @__PURE__ */ n(z, { width: 48, height: 8 }) }),
2098
- /* @__PURE__ */ n(qr, { height: "80%", children: [...Array(3)].map((i, r) => (
2100
+ /* @__PURE__ */ n(Kr, { height: "80%", children: [...Array(3)].map((i, r) => (
2099
2101
  // Every row is placed with an incremental margin left to reinforce the effect of a scatter plot
2100
- /* @__PURE__ */ n(Kr, { ml: r * 3, children: [...Array(4)].map((o, a) => (
2102
+ /* @__PURE__ */ n(Zr, { ml: r * 3, children: [...Array(4)].map((o, a) => (
2101
2103
  // Random margins are used to create the effect of a scatter plot
2102
2104
  /* @__PURE__ */ n(S, { mt: t(), ml: t(), children: /* @__PURE__ */ n(z, { variant: "circular", width: 12, height: 12 }) }, a)
2103
2105
  )) }, r)
2104
2106
  )) })
2105
2107
  ] });
2106
2108
  }
2107
- function Jr(e, t) {
2109
+ function Qr(e, t) {
2108
2110
  var s;
2109
2111
  const i = Array.isArray(e.tooltip) ? e.tooltip[0] : e.tooltip, r = Array.isArray(t.tooltip) ? t.tooltip[0] : t.tooltip, o = i == null ? void 0 : i.formatter, a = r == null ? void 0 : r.formatter, l = (s = e.series[0]) == null ? void 0 : s.data, d = t.series[0].data;
2110
2112
  return o !== a ? !1 : l && d && l.length === d.length ? !d.some(({ value: u }, p) => {
@@ -2112,7 +2114,7 @@ function Jr(e, t) {
2112
2114
  return u !== ((c = l[p]) == null ? void 0 : c.value);
2113
2115
  }) : !1;
2114
2116
  }
2115
- function Qr({
2117
+ function eo({
2116
2118
  tooltipFormatter: e,
2117
2119
  xAxisFormatter: t = tt,
2118
2120
  yAxisFormatter: i = tt
@@ -2151,7 +2153,7 @@ function Qr({
2151
2153
  }
2152
2154
  };
2153
2155
  }
2154
- function eo({
2156
+ function to({
2155
2157
  name: e,
2156
2158
  data: t,
2157
2159
  animation: i
@@ -2165,30 +2167,30 @@ function eo({
2165
2167
  }
2166
2168
  ];
2167
2169
  }
2168
- const to = Qn.memo(
2170
+ const no = Qn.memo(
2169
2171
  We,
2170
- (e, t) => Jr(
2172
+ (e, t) => Qr(
2171
2173
  e.option,
2172
2174
  t.option
2173
2175
  )
2174
- ), Yt = 225, no = [], tt = (e) => e;
2175
- function ss({
2176
+ ), Yt = 225, io = [], tt = (e) => e;
2177
+ function cs({
2176
2178
  name: e = null,
2177
- data: t = no,
2179
+ data: t = io,
2178
2180
  animation: i = !0,
2179
2181
  xAxisFormatter: r = tt,
2180
2182
  yAxisFormatter: o = tt,
2181
- tooltipFormatter: a = io,
2183
+ tooltipFormatter: a = ro,
2182
2184
  isLoading: l
2183
2185
  }) {
2184
2186
  const d = le(), s = re(), [u, p] = _({
2185
2187
  series: []
2186
2188
  }), { showSkeleton: c } = ke(!!l);
2187
2189
  return U(() => {
2188
- const y = Qr(
2190
+ const y = eo(
2189
2191
  { xAxisFormatter: r, yAxisFormatter: o, tooltipFormatter: a },
2190
2192
  d
2191
- ), g = eo({
2193
+ ), g = to({
2192
2194
  name: e,
2193
2195
  data: t || [],
2194
2196
  animation: i
@@ -2205,8 +2207,8 @@ function ss({
2205
2207
  r,
2206
2208
  o,
2207
2209
  a
2208
- ]), c ? /* @__PURE__ */ n(Zr, { height: Yt }) : /* @__PURE__ */ n(
2209
- to,
2210
+ ]), c ? /* @__PURE__ */ n(Jr, { height: Yt }) : /* @__PURE__ */ n(
2211
+ no,
2210
2212
  {
2211
2213
  ref: s,
2212
2214
  option: u,
@@ -2215,7 +2217,7 @@ function ss({
2215
2217
  }
2216
2218
  );
2217
2219
  }
2218
- function io(e) {
2220
+ function ro(e) {
2219
2221
  const t = Array.isArray(e) ? e[0] : e, i = (t == null ? void 0 : t.value) || [];
2220
2222
  return `[${i[0]}, ${i[1]})`;
2221
2223
  }
@@ -2230,7 +2232,7 @@ function Ue({
2230
2232
  }
2231
2233
  return [...Array(t)].map((o, a) => /* @__PURE__ */ n(bt, { children: /* @__PURE__ */ n(z, { width: e ?? r(i), height: 8 }) }, a));
2232
2234
  }
2233
- const ro = m(S)(({ theme: e }) => ({
2235
+ const oo = m(S)(({ theme: e }) => ({
2234
2236
  display: "flex",
2235
2237
  flexDirection: "row",
2236
2238
  justifyContent: "flex-end",
@@ -2238,17 +2240,17 @@ const ro = m(S)(({ theme: e }) => ({
2238
2240
  gap: e.spacing(2),
2239
2241
  margin: 0,
2240
2242
  padding: e.spacing(2, 1)
2241
- })), oo = m(un)(() => ({
2243
+ })), ao = m(un)(() => ({
2242
2244
  overflow: "hidden"
2243
2245
  }));
2244
- function ao({
2246
+ function lo({
2245
2247
  style: e,
2246
2248
  dense: t,
2247
2249
  pagination: i,
2248
2250
  rowsPerPage: r
2249
2251
  }) {
2250
2252
  return /* @__PURE__ */ v(ie, { children: [
2251
- /* @__PURE__ */ n(oo, { style: e, children: /* @__PURE__ */ v(sn, { "aria-label": "skeleton table", size: t ? "small" : "medium", children: [
2253
+ /* @__PURE__ */ n(ao, { style: e, children: /* @__PURE__ */ v(sn, { "aria-label": "skeleton table", size: t ? "small" : "medium", children: [
2252
2254
  /* @__PURE__ */ n(cn, { children: /* @__PURE__ */ v(Je, { children: [
2253
2255
  /* @__PURE__ */ n(Ue, { rows: 1, width: 8 }),
2254
2256
  /* @__PURE__ */ n(Ue, { width: 56 })
@@ -2260,7 +2262,7 @@ function ao({
2260
2262
  ] }, a)
2261
2263
  ) })
2262
2264
  ] }) }),
2263
- i && /* @__PURE__ */ v(ro, { children: [
2265
+ i && /* @__PURE__ */ v(oo, { children: [
2264
2266
  /* @__PURE__ */ n(z, { width: 56, height: 8 }),
2265
2267
  /* @__PURE__ */ n(S, { mr: 1, children: /* @__PURE__ */ n(z, { width: 52, height: 16 }) }),
2266
2268
  /* @__PURE__ */ n(z, { width: 60, height: 8 }),
@@ -2269,18 +2271,18 @@ function ao({
2269
2271
  ] })
2270
2272
  ] });
2271
2273
  }
2272
- const lo = m(ri)(({ theme: e }) => ({
2274
+ const so = m(oi)(({ theme: e }) => ({
2273
2275
  ...e.typography.caption,
2274
2276
  color: e.palette.text.secondary,
2275
2277
  whiteSpace: "nowrap"
2276
- })), so = m(Je)(({ theme: e }) => ({
2278
+ })), co = m(Je)(({ theme: e }) => ({
2277
2279
  maxHeight: e.spacing(6.5),
2278
2280
  transition: "background-color 0.25s ease",
2279
2281
  "&.MuiTableRow-hover:hover": {
2280
2282
  cursor: "pointer",
2281
2283
  backgroundColor: e.palette.background.default
2282
2284
  }
2283
- })), co = m(bt)(() => ({
2285
+ })), uo = m(bt)(() => ({
2284
2286
  overflow: "hidden",
2285
2287
  "& p": {
2286
2288
  maxWidth: "100%",
@@ -2288,14 +2290,14 @@ const lo = m(ri)(({ theme: e }) => ({
2288
2290
  overflow: "hidden",
2289
2291
  textOverflow: "ellipsis"
2290
2292
  }
2291
- })), uo = m(oi)(({ theme: e }) => ({
2293
+ })), po = m(ai)(({ theme: e }) => ({
2292
2294
  height: e.spacing(6),
2293
2295
  overflowX: "auto",
2294
2296
  overflowY: "hidden"
2295
2297
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
2296
- })), po = 10, go = [5, 10, 25], Be = () => {
2298
+ })), go = 10, ho = [5, 10, 25], Be = () => {
2297
2299
  };
2298
- function cs({
2300
+ function ds({
2299
2301
  columns: e,
2300
2302
  rows: t,
2301
2303
  sorting: i = !1,
@@ -2307,8 +2309,8 @@ function cs({
2307
2309
  totalCount: s,
2308
2310
  page: u,
2309
2311
  onSetPage: p = Be,
2310
- rowsPerPage: c = po,
2311
- rowsPerPageOptions: y = go,
2312
+ rowsPerPage: c = go,
2313
+ rowsPerPageOptions: y = ho,
2312
2314
  onSetRowsPerPage: g = Be,
2313
2315
  onRowClick: f = Be,
2314
2316
  onRowMouseEnter: w,
@@ -2348,7 +2350,7 @@ function cs({
2348
2350
  J.height = `calc(${b} - ${D}px)`;
2349
2351
  }
2350
2352
  return O ? /* @__PURE__ */ n(
2351
- ao,
2353
+ lo,
2352
2354
  {
2353
2355
  rowsPerPage: c,
2354
2356
  style: J,
@@ -2358,7 +2360,7 @@ function cs({
2358
2360
  ) : /* @__PURE__ */ v(ie, { children: [
2359
2361
  /* @__PURE__ */ n(un, { style: J, children: /* @__PURE__ */ v(sn, { stickyHeader: !0, size: k ? "small" : "medium", children: [
2360
2362
  /* @__PURE__ */ n(
2361
- ho,
2363
+ fo,
2362
2364
  {
2363
2365
  columns: e,
2364
2366
  sorting: i,
@@ -2368,7 +2370,7 @@ function cs({
2368
2370
  }
2369
2371
  ),
2370
2372
  /* @__PURE__ */ n(
2371
- fo,
2373
+ mo,
2372
2374
  {
2373
2375
  columns: e,
2374
2376
  rows: t,
@@ -2379,7 +2381,7 @@ function cs({
2379
2381
  )
2380
2382
  ] }) }),
2381
2383
  d && /* @__PURE__ */ n(
2382
- uo,
2384
+ po,
2383
2385
  {
2384
2386
  ref: x,
2385
2387
  rowsPerPageOptions: y,
@@ -2394,7 +2396,7 @@ function cs({
2394
2396
  onPageChange: $,
2395
2397
  onRowsPerPageChange: W,
2396
2398
  ActionsComponent: () => /* @__PURE__ */ n(
2397
- wi,
2399
+ vi,
2398
2400
  {
2399
2401
  count: s,
2400
2402
  rowsPerPage: c,
@@ -2407,7 +2409,7 @@ function cs({
2407
2409
  )
2408
2410
  ] });
2409
2411
  }
2410
- function ho({
2412
+ function fo({
2411
2413
  columns: e,
2412
2414
  sorting: t,
2413
2415
  sortBy: i,
@@ -2415,7 +2417,7 @@ function ho({
2415
2417
  onSort: o
2416
2418
  }) {
2417
2419
  return /* @__PURE__ */ n(cn, { children: /* @__PURE__ */ n(Je, { children: e.map(({ field: a, headerName: l, align: d }) => /* @__PURE__ */ n(bt, { align: d ?? "left", children: t ? /* @__PURE__ */ n(
2418
- lo,
2420
+ so,
2419
2421
  {
2420
2422
  active: i === a,
2421
2423
  direction: i === a ? r : "asc",
@@ -2424,7 +2426,7 @@ function ho({
2424
2426
  }
2425
2427
  ) : l ?? a }, a)) }) });
2426
2428
  }
2427
- function fo({
2429
+ function mo({
2428
2430
  columns: e,
2429
2431
  rows: t,
2430
2432
  onRowMouseEnter: i,
@@ -2434,7 +2436,7 @@ function fo({
2434
2436
  return /* @__PURE__ */ n(dn, { children: t.map((a, l) => {
2435
2437
  const d = String(a.cartodb_id || a.id || l);
2436
2438
  return /* @__PURE__ */ n(
2437
- so,
2439
+ co,
2438
2440
  {
2439
2441
  hover: !!o,
2440
2442
  onMouseEnter: () => i == null ? void 0 : i(a),
@@ -2445,7 +2447,7 @@ function fo({
2445
2447
  var f;
2446
2448
  let g = (f = Object.entries(a).find(([w]) => w.toUpperCase() === s.toUpperCase())) == null ? void 0 : f[1];
2447
2449
  return y ? g = y(g) : typeof g == "bigint" ? g = g.toString() : Array.isArray(g) ? g = `[${g.map((w) => typeof w == "string" ? `"${w}"` : String(w)).join(", ")}]` : typeof g == "object" && g !== null && (g = JSON.stringify(g)), (u ?? s) && /* @__PURE__ */ n(
2448
- co,
2450
+ uo,
2449
2451
  {
2450
2452
  scope: "row",
2451
2453
  align: p ?? "left",
@@ -2510,13 +2512,13 @@ function nt(e, t) {
2510
2512
  return o;
2511
2513
  }
2512
2514
  }
2513
- function mo(e) {
2515
+ function yo(e) {
2514
2516
  let t, i = 0;
2515
2517
  for (const { name: r } of e)
2516
2518
  r !== t && (t = r, i++);
2517
2519
  return i;
2518
2520
  }
2519
- function yo(e) {
2521
+ function wo(e) {
2520
2522
  const t = new Date(e), i = t.getDay(), r = t.getDate() - i + (i ? 1 : -6);
2521
2523
  return t.setDate(r), t.setHours(0, 0, 0, 0), t.getTime();
2522
2524
  }
@@ -2526,19 +2528,19 @@ const Tt = {
2526
2528
  month: Ee,
2527
2529
  week: Ee,
2528
2530
  day: Ee,
2529
- hour: bo,
2531
+ hour: ko,
2530
2532
  minute: Gt,
2531
2533
  second: Gt
2532
- }, wo = {
2533
- year: Eo,
2534
- month: Ao,
2535
- week: Co,
2536
- day: To,
2537
- hour: Io,
2538
- minute: Mo,
2539
- second: So
2534
+ }, vo = {
2535
+ year: Lo,
2536
+ month: Eo,
2537
+ week: Ao,
2538
+ day: Co,
2539
+ hour: To,
2540
+ minute: Io,
2541
+ second: Mo
2540
2542
  };
2541
- function vo({
2543
+ function xo({
2542
2544
  date: e,
2543
2545
  stepSize: t
2544
2546
  }) {
@@ -2566,10 +2568,10 @@ function Dn({
2566
2568
  }) {
2567
2569
  if (!Tt[t])
2568
2570
  throw new Error("formatBucketRange: missing formatter or invalid stepSize");
2569
- const { start: o, end: a } = ko({ date: e, stepSize: t, stepMultiplier: i });
2571
+ const { start: o, end: a } = So({ date: e, stepSize: t, stepMultiplier: i });
2570
2572
  if (i === 1) {
2571
2573
  if (t === "day")
2572
- return vo({ date: o, stepSize: t });
2574
+ return xo({ date: o, stepSize: t });
2573
2575
  if (t === "second")
2574
2576
  return `${Ee(o)} ${ft(
2575
2577
  o
@@ -2577,11 +2579,11 @@ function Dn({
2577
2579
  }
2578
2580
  return it({ start: o, end: a, stepSize: t });
2579
2581
  }
2580
- const Ct = (e) => 1e3 * e, At = (e) => Ct(60 * e), xo = (e) => At(60 * e);
2582
+ const Ct = (e) => 1e3 * e, At = (e) => Ct(60 * e), bo = (e) => At(60 * e);
2581
2583
  function Ee(e) {
2582
2584
  return e.toLocaleDateString();
2583
2585
  }
2584
- function bo(e) {
2586
+ function ko(e) {
2585
2587
  return Ee(e) + " " + e.toLocaleTimeString(void 0, {
2586
2588
  hour: "numeric",
2587
2589
  minute: "2-digit",
@@ -2599,17 +2601,17 @@ function ft(e) {
2599
2601
  function Gt(e) {
2600
2602
  return Ee(e) + " " + ft(e);
2601
2603
  }
2602
- function ko({
2604
+ function So({
2603
2605
  date: e,
2604
2606
  stepSize: t,
2605
2607
  stepMultiplier: i = 1
2606
2608
  }) {
2607
- const r = wo[t];
2609
+ const r = vo[t];
2608
2610
  if (!r)
2609
2611
  throw new Error("getBucketInterval: invalid bucket size");
2610
2612
  return r({ date: e, stepMultiplier: i });
2611
2613
  }
2612
- function So({
2614
+ function Mo({
2613
2615
  date: e,
2614
2616
  stepMultiplier: t = 1
2615
2617
  }) {
@@ -2624,7 +2626,7 @@ function So({
2624
2626
  ), r = new Date(i.getTime() + Ct(t - 1) + 999);
2625
2627
  return { start: i, end: r };
2626
2628
  }
2627
- function Mo({
2629
+ function Io({
2628
2630
  date: e,
2629
2631
  stepMultiplier: t = 1
2630
2632
  }) {
@@ -2641,7 +2643,7 @@ function Mo({
2641
2643
  );
2642
2644
  return { start: i, end: r };
2643
2645
  }
2644
- function Io({
2646
+ function To({
2645
2647
  date: e,
2646
2648
  stepMultiplier: t = 1
2647
2649
  }) {
@@ -2654,11 +2656,11 @@ function Io({
2654
2656
  0,
2655
2657
  0
2656
2658
  ), r = new Date(
2657
- i.getTime() + xo(t - 1) + At(59)
2659
+ i.getTime() + bo(t - 1) + At(59)
2658
2660
  );
2659
2661
  return { start: i, end: r };
2660
2662
  }
2661
- function To({
2663
+ function Co({
2662
2664
  date: e,
2663
2665
  stepMultiplier: t = 1
2664
2666
  }) {
@@ -2677,25 +2679,25 @@ function To({
2677
2679
  );
2678
2680
  return { start: i, end: r };
2679
2681
  }
2680
- function Co({
2682
+ function Ao({
2681
2683
  date: e,
2682
2684
  stepMultiplier: t = 1
2683
2685
  }) {
2684
- const i = new Date(yo(e)), r = new Date(
2686
+ const i = new Date(wo(e)), r = new Date(
2685
2687
  i.getFullYear(),
2686
2688
  i.getMonth(),
2687
2689
  i.getDate() + 6 + 7 * (t - 1)
2688
2690
  );
2689
2691
  return { start: i, end: r };
2690
2692
  }
2691
- function Ao({
2693
+ function Eo({
2692
2694
  date: e,
2693
2695
  stepMultiplier: t = 1
2694
2696
  }) {
2695
2697
  const i = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e.getFullYear(), e.getMonth() + t, 0);
2696
2698
  return { start: i, end: r };
2697
2699
  }
2698
- function Eo({
2700
+ function Lo({
2699
2701
  date: e,
2700
2702
  stepMultiplier: t = 1
2701
2703
  }) {
@@ -2703,7 +2705,7 @@ function Eo({
2703
2705
  return { start: i, end: r };
2704
2706
  }
2705
2707
  const me = () => {
2706
- }, $n = ei({
2708
+ }, $n = ti({
2707
2709
  isPlaying: !1,
2708
2710
  setIsPlaying: me,
2709
2711
  isPaused: !1,
@@ -2716,9 +2718,9 @@ const me = () => {
2716
2718
  intl: {}
2717
2719
  });
2718
2720
  function Et() {
2719
- return ti($n);
2721
+ return ni($n);
2720
2722
  }
2721
- function Lo({
2723
+ function Do({
2722
2724
  children: e,
2723
2725
  isPlaying: t,
2724
2726
  isPaused: i,
@@ -2771,7 +2773,7 @@ function Lo({
2771
2773
  const Ut = {};
2772
2774
  let Xe = null;
2773
2775
  const _e = { seriesId: "0" };
2774
- function Do({
2776
+ function $o({
2775
2777
  echartsInstance: e,
2776
2778
  data: t,
2777
2779
  canSelectLines: i,
@@ -2943,8 +2945,8 @@ function qe(e, t, i) {
2943
2945
  Ut[t] && (e != null && e.handler) && e.off(t, i);
2944
2946
  };
2945
2947
  }
2946
- const Pn = B * 22, On = "100%", $o = 5, Po = 3, Oo = B * 20;
2947
- function Wo({
2948
+ const Pn = B * 22, On = "100%", Po = 5, Oo = 3, Wo = B * 20;
2949
+ function Ro({
2948
2950
  chartType: e,
2949
2951
  formatter: t,
2950
2952
  timeAxisSplitNumber: i,
@@ -3046,9 +3048,9 @@ function Wo({
3046
3048
  show: !1
3047
3049
  },
3048
3050
  splitNumber: i ?? (M !== void 0 ? Math.min(
3049
- Po,
3050
- Math.ceil(M / Oo)
3051
- ) : $o)
3051
+ Oo,
3052
+ Math.ceil(M / Wo)
3053
+ ) : Po)
3052
3054
  },
3053
3055
  yAxis: {
3054
3056
  type: "value",
@@ -3081,14 +3083,14 @@ function Wo({
3081
3083
  max: x
3082
3084
  }
3083
3085
  };
3084
- }, [w, x, t, M, i, f]), { timelineOptions: O, timeWindowOptions: L } = Do({
3086
+ }, [w, x, t, M, i, f]), { timelineOptions: O, timeWindowOptions: L } = $o({
3085
3087
  echartsInstance: h,
3086
3088
  data: a,
3087
3089
  canSelectLines: !!g,
3088
3090
  filterable: c
3089
3091
  }), P = F(
3090
3092
  () => l.map(({ data: D, color: N, name: I }, R) => {
3091
- const X = y && y.length > 0, j = X && y.includes(I), q = !X || j ? N : w.palette.action.disabledBackground;
3093
+ const X = y && y.length > 0, j = X && y.includes(I), K = !X || j ? N : w.palette.action.disabledBackground;
3092
3094
  return {
3093
3095
  id: String(R),
3094
3096
  name: I,
@@ -3098,7 +3100,7 @@ function Wo({
3098
3100
  data: D,
3099
3101
  type: e,
3100
3102
  smooth: !0,
3101
- color: q,
3103
+ color: K,
3102
3104
  z: X && j ? 10 : 0,
3103
3105
  lineStyle: {
3104
3106
  width: 2
@@ -3108,7 +3110,7 @@ function Wo({
3108
3110
  scale: 2,
3109
3111
  lineStyle: {
3110
3112
  width: 2,
3111
- color: q
3113
+ color: K
3112
3114
  }
3113
3115
  }
3114
3116
  };
@@ -3180,7 +3182,7 @@ function Wo({
3180
3182
  }
3181
3183
  );
3182
3184
  }
3183
- const Ro = {
3185
+ const Fo = {
3184
3186
  [Se.YEARS]: 60 * 60 * 24 * 7,
3185
3187
  // Week
3186
3188
  [Se.MONTHS]: 60 * 60 * 24,
@@ -3195,8 +3197,8 @@ const Ro = {
3195
3197
  // Quarter hour
3196
3198
  [Se.SECONDS]: 1
3197
3199
  // Second
3198
- }, Fo = [0.5, 1, 2, 3];
3199
- function No({
3200
+ }, No = [0.5, 1, 2, 3];
3201
+ function Bo({
3200
3202
  data: e,
3201
3203
  stepSize: t
3202
3204
  }) {
@@ -3209,7 +3211,7 @@ function No({
3209
3211
  togglePlay: y,
3210
3212
  intl: g
3211
3213
  } = Et();
3212
- jo(
3214
+ Yo(
3213
3215
  () => (d || s) && c(),
3214
3216
  // Only executed when data changes
3215
3217
  [e]
@@ -3224,8 +3226,8 @@ function No({
3224
3226
  };
3225
3227
  U(() => {
3226
3228
  if (d && u.length === 2 && e.length) {
3227
- const x = Ro[t] * 1e3;
3228
- return Yo({
3229
+ const x = Fo[t] * 1e3;
3230
+ return Vo({
3229
3231
  data: e,
3230
3232
  timeWindow: u,
3231
3233
  msTimeWindowStep: x * o,
@@ -3240,7 +3242,7 @@ function No({
3240
3242
  }
3241
3243
  }, [e, d, t, p, w, o]), U(() => {
3242
3244
  if (d && u.length === 1 && e.length)
3243
- return Go({
3245
+ return Uo({
3244
3246
  speed: o,
3245
3247
  timelinePosition: u[0],
3246
3248
  data: e,
@@ -3269,7 +3271,7 @@ function No({
3269
3271
  color: "default",
3270
3272
  onClick: b,
3271
3273
  "data-testid": "clock",
3272
- children: /* @__PURE__ */ n(Bo, {})
3274
+ children: /* @__PURE__ */ n(_o, {})
3273
3275
  }
3274
3276
  ),
3275
3277
  /* @__PURE__ */ v(
@@ -3281,7 +3283,7 @@ function No({
3281
3283
  onClose: k,
3282
3284
  children: [
3283
3285
  /* @__PURE__ */ n(Pe, { disabled: !0, children: /* @__PURE__ */ n(H, { variant: "caption", color: "textSecondary", children: g.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
3284
- Fo.map((T) => /* @__PURE__ */ v(
3286
+ No.map((T) => /* @__PURE__ */ v(
3285
3287
  Pe,
3286
3288
  {
3287
3289
  selected: T === o,
@@ -3304,7 +3306,7 @@ function No({
3304
3306
  disabled: !(s || d),
3305
3307
  onClick: w,
3306
3308
  "data-testid": "stop",
3307
- children: /* @__PURE__ */ n(Ho, {})
3309
+ children: /* @__PURE__ */ n(zo, {})
3308
3310
  }
3309
3311
  ) }),
3310
3312
  /* @__PURE__ */ n(S, { mt: 0.75, children: /* @__PURE__ */ n(
@@ -3314,12 +3316,12 @@ function No({
3314
3316
  size: "small",
3315
3317
  color: "primary",
3316
3318
  onClick: h,
3317
- children: d ? /* @__PURE__ */ n(zo, {}) : /* @__PURE__ */ n(_o, {})
3319
+ children: d ? /* @__PURE__ */ n(jo, {}) : /* @__PURE__ */ n(Ho, {})
3318
3320
  }
3319
3321
  ) })
3320
3322
  ] });
3321
3323
  }
3322
- function Bo() {
3324
+ function _o() {
3323
3325
  return /* @__PURE__ */ n(je, { viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
3324
3326
  "path",
3325
3327
  {
@@ -3329,7 +3331,7 @@ function Bo() {
3329
3331
  }
3330
3332
  ) });
3331
3333
  }
3332
- function _o() {
3334
+ function Ho() {
3333
3335
  return /* @__PURE__ */ n(je, { "data-testid": "play-icon", children: /* @__PURE__ */ n(
3334
3336
  "path",
3335
3337
  {
@@ -3339,7 +3341,7 @@ function _o() {
3339
3341
  }
3340
3342
  ) });
3341
3343
  }
3342
- function Ho() {
3344
+ function zo() {
3343
3345
  return /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n(
3344
3346
  "path",
3345
3347
  {
@@ -3349,7 +3351,7 @@ function Ho() {
3349
3351
  }
3350
3352
  ) });
3351
3353
  }
3352
- function zo() {
3354
+ function jo() {
3353
3355
  return /* @__PURE__ */ n(je, { "data-testid": "pause-icon", children: /* @__PURE__ */ n(
3354
3356
  "path",
3355
3357
  {
@@ -3359,13 +3361,13 @@ function zo() {
3359
3361
  }
3360
3362
  ) });
3361
3363
  }
3362
- function jo(e, t = []) {
3364
+ function Yo(e, t = []) {
3363
3365
  const i = re(!1);
3364
3366
  U(() => {
3365
3367
  i.current ? e() : i.current = !0;
3366
3368
  }, t);
3367
3369
  }
3368
- function Yo({
3370
+ function Vo({
3369
3371
  msTimeWindowStep: e,
3370
3372
  timeWindow: t,
3371
3373
  data: i,
@@ -3384,8 +3386,8 @@ function Yo({
3384
3386
  };
3385
3387
  d();
3386
3388
  }
3387
- const Vo = 2;
3388
- function Go({
3389
+ const Go = 2;
3390
+ function Uo({
3389
3391
  speed: e,
3390
3392
  timelinePosition: t,
3391
3393
  data: i,
@@ -3394,10 +3396,10 @@ function Go({
3394
3396
  animationRef: a
3395
3397
  }) {
3396
3398
  let l = nt(t, i) ?? 0, d = i[l].name;
3397
- const s = mo(i), u = Math.max(
3399
+ const s = yo(i), u = Math.max(
3398
3400
  Math.round(Math.sqrt(s) / 2),
3399
3401
  // FPS based on number of unique time points
3400
- Vo
3402
+ Go
3401
3403
  // Min FPS
3402
3404
  ) * e, p = () => {
3403
3405
  a.current.timeoutId = setTimeout(() => {
@@ -3415,20 +3417,20 @@ function Go({
3415
3417
  };
3416
3418
  p();
3417
3419
  }
3418
- const Uo = m(S)(() => ({
3420
+ const Xo = m(S)(() => ({
3419
3421
  containerType: "inline-size",
3420
3422
  display: "flex",
3421
3423
  flexDirection: "column"
3422
- })), Xo = m(S)(() => ({
3424
+ })), qo = m(S)(() => ({
3423
3425
  display: "flex",
3424
3426
  flexDirection: "column"
3425
3427
  })), Wn = m(S)(() => ({
3426
3428
  display: "flex",
3427
3429
  flexDirection: "row"
3428
- })), qo = m(Wn)(() => ({
3430
+ })), Ko = m(Wn)(() => ({
3429
3431
  alignItems: "center",
3430
3432
  justifyContent: "space-between"
3431
- })), Ko = m(S)(({ theme: e }) => ({
3433
+ })), Zo = m(S)(({ theme: e }) => ({
3432
3434
  flexShrink: 0,
3433
3435
  marginLeft: 0,
3434
3436
  paddingLeft: e.spacing(1),
@@ -3437,7 +3439,7 @@ const Uo = m(S)(() => ({
3437
3439
  },
3438
3440
  paddingBottom: e.spacing(1.5),
3439
3441
  alignSelf: "flex-end"
3440
- })), Zo = m(S)(({ theme: e }) => ({
3442
+ })), Jo = m(S)(({ theme: e }) => ({
3441
3443
  alignSelf: "normal",
3442
3444
  minWidth: 0,
3443
3445
  paddingLeft: e.spacing(5),
@@ -3455,17 +3457,17 @@ function Rn({
3455
3457
  }) {
3456
3458
  const a = o && /* @__PURE__ */ n(S, { flex: 0, mt: 2, children: o });
3457
3459
  return /* @__PURE__ */ v(
3458
- Uo,
3460
+ Xo,
3459
3461
  {
3460
3462
  style: {
3461
3463
  flex: e ? "1" : void 0
3462
3464
  },
3463
3465
  children: [
3464
- /* @__PURE__ */ n(qo, { flex: 0, children: t }),
3465
- i ? /* @__PURE__ */ v(Xo, { flex: 1, children: [
3466
+ /* @__PURE__ */ n(Ko, { flex: 0, children: t }),
3467
+ i ? /* @__PURE__ */ v(qo, { flex: 1, children: [
3466
3468
  /* @__PURE__ */ v(Wn, { flex: 1, children: [
3467
- /* @__PURE__ */ n(Ko, { flex: 0, children: i }),
3468
- /* @__PURE__ */ n(Zo, { flex: 1, children: r })
3469
+ /* @__PURE__ */ n(Zo, { flex: 0, children: i }),
3470
+ /* @__PURE__ */ n(Jo, { flex: 1, children: r })
3469
3471
  ] }),
3470
3472
  a
3471
3473
  ] }) : /* @__PURE__ */ v(ie, { children: [
@@ -3476,7 +3478,7 @@ function Rn({
3476
3478
  }
3477
3479
  );
3478
3480
  }
3479
- const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox: "0 0 720 124", ...e, children: /* @__PURE__ */ n(
3481
+ const Qo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox: "0 0 720 124", ...e, children: /* @__PURE__ */ n(
3480
3482
  "path",
3481
3483
  {
3482
3484
  d: "M0.74707 123C11.8168 119.656 26.7934 118.37 53.4909 102.164C73.1959 90.2031 92.5604 81.3284 108.188 76.6983C122.841 72.357 136.188 74.3832 144.653 75.1549C150.496 75.6876 195.443 82.8718 207.164 83.6435C218.885 84.4152 241.676 87.502 274.234 80.5567C306.791 73.6115 305.869 75.4585 330.233 67.438C388.837 48.1456 433.461 2.6348 458.511 1.07229C495.627 -1.24279 512.557 52.7758 539.255 58.1776C565.952 63.5795 583.534 64.3512 601.766 55.0909C619.999 45.8305 625.859 40.4287 646.045 38.1136C666.231 35.7985 683.812 41.972 718.975 70.5247",
@@ -3485,20 +3487,20 @@ const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3485
3487
  strokeLinejoin: "round",
3486
3488
  vectorEffect: "non-scaling-stroke"
3487
3489
  }
3488
- ) }), Qo = m(S)(() => ({
3490
+ ) }), ea = m(S)(() => ({
3489
3491
  display: "flex",
3490
3492
  flexDirection: "column",
3491
3493
  justifyContent: "flex-end"
3492
- })), ea = m(S)(() => ({
3494
+ })), ta = m(S)(() => ({
3493
3495
  position: "relative",
3494
3496
  height: "100%",
3495
3497
  alignSelf: "normal",
3496
3498
  display: "flex",
3497
3499
  flexDirection: "column",
3498
3500
  justifyContent: "flex-end"
3499
- })), ta = m(S)(({ theme: e }) => ({
3501
+ })), na = m(S)(({ theme: e }) => ({
3500
3502
  padding: e.spacing(2.25, 0, 0.5, 2)
3501
- })), na = m(xn)(({ theme: e }) => ({
3503
+ })), ia = m(xn)(({ theme: e }) => ({
3502
3504
  flexDirection: "column",
3503
3505
  flex: 1,
3504
3506
  height: "100%",
@@ -3512,12 +3514,12 @@ const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3512
3514
  stroke: e.palette.black[8]
3513
3515
  }
3514
3516
  }
3515
- })), ia = m(S)(({ theme: e }) => ({
3517
+ })), ra = m(S)(({ theme: e }) => ({
3516
3518
  display: "flex",
3517
3519
  flexDirection: "row",
3518
3520
  justifyContent: "space-between",
3519
3521
  padding: e.spacing(1.25, 0.5, 0.75, 0.5)
3520
- })), ra = m(S)(({ theme: e }) => ({
3522
+ })), oa = m(S)(({ theme: e }) => ({
3521
3523
  display: "flex",
3522
3524
  flexDirection: "row",
3523
3525
  gap: e.spacing(2),
@@ -3527,7 +3529,7 @@ const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3527
3529
  display: "flex",
3528
3530
  flexDirection: "row",
3529
3531
  gap: e.spacing(1)
3530
- })), oa = ({
3532
+ })), aa = ({
3531
3533
  fitHeight: e,
3532
3534
  height: t,
3533
3535
  showControls: i,
@@ -3537,20 +3539,20 @@ const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3537
3539
  {
3538
3540
  fitHeight: !!e,
3539
3541
  header: /* @__PURE__ */ n(S, { pt: 1.25, pb: 0.75, children: /* @__PURE__ */ n(z, { width: 48, height: 8 }) }),
3540
- controls: i && /* @__PURE__ */ v(Qo, { children: [
3542
+ controls: i && /* @__PURE__ */ v(ea, { children: [
3541
3543
  /* @__PURE__ */ n(S, { p: 0.5, children: /* @__PURE__ */ n(z, { width: 16, height: 16 }) }),
3542
3544
  /* @__PURE__ */ n(S, { mt: 2, p: 0.5, children: /* @__PURE__ */ n(z, { width: 16, height: 16 }) }),
3543
3545
  /* @__PURE__ */ n(S, { mt: 1, p: 0.5, children: /* @__PURE__ */ n(z, { width: 16, height: 16 }) })
3544
3546
  ] }),
3545
- chart: /* @__PURE__ */ v(ea, { style: { height: e ? On : t ?? Pn }, children: [
3546
- /* @__PURE__ */ n(ta, { flex: 0, children: /* @__PURE__ */ n(z, { width: 24, height: 8 }) }),
3547
- /* @__PURE__ */ n(na, { flex: 1, children: /* @__PURE__ */ n(Jo, { preserveAspectRatio: "none" }) }),
3548
- /* @__PURE__ */ v(ia, { flex: 0, children: [
3547
+ chart: /* @__PURE__ */ v(ta, { style: { height: e ? On : t ?? Pn }, children: [
3548
+ /* @__PURE__ */ n(na, { flex: 0, children: /* @__PURE__ */ n(z, { width: 24, height: 8 }) }),
3549
+ /* @__PURE__ */ n(ia, { flex: 1, children: /* @__PURE__ */ n(Qo, { preserveAspectRatio: "none" }) }),
3550
+ /* @__PURE__ */ v(ra, { flex: 0, children: [
3549
3551
  /* @__PURE__ */ n(z, { width: 32, height: 8 }),
3550
3552
  /* @__PURE__ */ n(z, { width: 32, height: 8 })
3551
3553
  ] })
3552
3554
  ] }),
3553
- legend: r && (r && /* @__PURE__ */ v(ra, { children: [
3555
+ legend: r && (r && /* @__PURE__ */ v(oa, { children: [
3554
3556
  /* @__PURE__ */ v(Xt, { children: [
3555
3557
  /* @__PURE__ */ n(z, { width: 8, height: 8 }),
3556
3558
  /* @__PURE__ */ n(z, { width: 48, height: 8 })
@@ -3562,7 +3564,7 @@ const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3562
3564
  ] }))
3563
3565
  }
3564
3566
  ), Fn = (e) => e, Nn = [];
3565
- function ds({
3567
+ function us({
3566
3568
  data: e = Nn,
3567
3569
  categories: t,
3568
3570
  stepSize: i,
@@ -3598,7 +3600,7 @@ function ds({
3598
3600
  var R, X;
3599
3601
  if (I.length === 2) {
3600
3602
  ((R = J.current) == null ? void 0 : R.length) === 1 && (f == null || f(void 0));
3601
- const j = I.sort((q, te) => q < te ? -1 : 1).map(Ln);
3603
+ const j = I.sort((K, te) => K < te ? -1 : 1).map(Ln);
3602
3604
  b == null || b(j);
3603
3605
  }
3604
3606
  if (I.length === 1) {
@@ -3611,7 +3613,7 @@ function ds({
3611
3613
  [b, f, e]
3612
3614
  );
3613
3615
  return D ? /* @__PURE__ */ n(
3614
- oa,
3616
+ aa,
3615
3617
  {
3616
3618
  fitHeight: p,
3617
3619
  height: u,
@@ -3619,7 +3621,7 @@ function ds({
3619
3621
  showLegend: $
3620
3622
  }
3621
3623
  ) : /* @__PURE__ */ n(
3622
- Lo,
3624
+ Do,
3623
3625
  {
3624
3626
  isPlaying: T,
3625
3627
  onPlay: x,
@@ -3630,7 +3632,7 @@ function ds({
3630
3632
  onTimeWindowUpdate: N,
3631
3633
  intl: G,
3632
3634
  children: /* @__PURE__ */ n(
3633
- aa,
3635
+ la,
3634
3636
  {
3635
3637
  data: e,
3636
3638
  categories: t,
@@ -3657,7 +3659,7 @@ function ds({
3657
3659
  }
3658
3660
  );
3659
3661
  }
3660
- function aa({
3662
+ function la({
3661
3663
  data: e = Nn,
3662
3664
  categories: t,
3663
3665
  stepSize: i,
@@ -3688,14 +3690,14 @@ function aa({
3688
3690
  }
3689
3691
  }, [k, e]), U(() => {
3690
3692
  if (!e.length) return;
3691
- const Y = e[0].name, K = e[e.length - 1].name;
3692
- (O[0] < Y || O[1] > K || O[1] < Y || O[1] > K) && P([]);
3693
+ const Y = e[0].name, Z = e[e.length - 1].name;
3694
+ (O[0] < Y || O[1] > Z || O[1] < Y || O[1] > Z) && P([]);
3693
3695
  }, [e]);
3694
3696
  const W = F(() => {
3695
- const Y = {}, K = t ? t.map((de) => ({
3697
+ const Y = {}, Z = t ? t.map((de) => ({
3696
3698
  name: de,
3697
3699
  data: [],
3698
- color: Pi(de, {
3700
+ color: Oi(de, {
3699
3701
  palette: f,
3700
3702
  fallbackColor: x,
3701
3703
  colorMapping: Y
@@ -3714,19 +3716,19 @@ function aa({
3714
3716
  categoryIndex: V
3715
3717
  } of e) {
3716
3718
  const ee = V ?? (t && ve ? t.indexOf(ve) : 0);
3717
- ee === -1 || t && ee >= t.length || !Number.isFinite(ee) || K[ee].data.push([de, we]);
3719
+ ee === -1 || t && ee >= t.length || !Number.isFinite(ee) || Z[ee].data.push([de, we]);
3718
3720
  }
3719
- return K;
3721
+ return Z;
3720
3722
  }, [t, e, f, x, T.palette.secondary.main]), J = F(() => {
3721
3723
  if (!e.length)
3722
3724
  return "";
3723
3725
  if (O.length === 2) {
3724
- const [Y, K] = O.map((de) => new Date(de));
3725
- return it({ start: Y, end: K, stepSize: i });
3726
+ const [Y, Z] = O.map((de) => new Date(de));
3727
+ return it({ start: Y, end: Z, stepSize: i });
3726
3728
  }
3727
3729
  if (!A && !C) {
3728
- const Y = new Date(e[0].name), K = new Date(e[e.length - 1].name);
3729
- return it({ start: Y, end: K, stepSize: i });
3730
+ const Y = new Date(e[0].name), Z = new Date(e[e.length - 1].name);
3731
+ return it({ start: Y, end: Z, stepSize: i });
3730
3732
  }
3731
3733
  if (O.length === 1) {
3732
3734
  const Y = new Date(O[0]);
@@ -3739,8 +3741,8 @@ function aa({
3739
3741
  }, I = oe(
3740
3742
  (Y) => {
3741
3743
  if (h) {
3742
- const K = [...w], de = K.indexOf(Y);
3743
- de === -1 ? K.push(Y) : K.splice(de, 1), h(K);
3744
+ const Z = [...w], de = Z.indexOf(Y);
3745
+ de === -1 ? Z.push(Y) : Z.splice(de, 1), h(Z);
3744
3746
  }
3745
3747
  },
3746
3748
  [h, w]
@@ -3764,9 +3766,9 @@ function aa({
3764
3766
  {
3765
3767
  fitHeight: p,
3766
3768
  header: X,
3767
- controls: g && c && /* @__PURE__ */ n(No, { data: e, stepSize: i }),
3769
+ controls: g && c && /* @__PURE__ */ n(Bo, { data: e, stepSize: i }),
3768
3770
  chart: /* @__PURE__ */ n(
3769
- Wo,
3771
+ Ro,
3770
3772
  {
3771
3773
  chartType: o,
3772
3774
  timeAxisSplitNumber: a,
@@ -3802,15 +3804,15 @@ function aa({
3802
3804
  }
3803
3805
  );
3804
3806
  }
3805
- const la = m("div")(({ theme: e }) => ({
3807
+ const sa = m("div")(({ theme: e }) => ({
3806
3808
  padding: e.spacing(2, 0),
3807
3809
  ...e.typography.body2
3808
- })), sa = m(S)(({ theme: e }) => ({
3810
+ })), ca = m(S)(({ theme: e }) => ({
3809
3811
  overflow: "auto",
3810
3812
  maxHeight: e.spacing(40),
3811
3813
  paddingRight: e.spacing(1),
3812
3814
  margin: e.spacing(0.5, 0)
3813
- })), ca = m(S)(({ theme: e }) => ({
3815
+ })), da = m(S)(({ theme: e }) => ({
3814
3816
  display: "flex",
3815
3817
  alignItems: "center",
3816
3818
  flexWrap: "wrap",
@@ -3828,11 +3830,11 @@ const la = m("div")(({ theme: e }) => ({
3828
3830
  height: e.spacing(1),
3829
3831
  borderRadius: e.spacing(1),
3830
3832
  backgroundColor: t
3831
- })), da = m(S)(({ theme: e }) => ({
3833
+ })), ua = m(S)(({ theme: e }) => ({
3832
3834
  display: "flex",
3833
3835
  alignItems: "center",
3834
3836
  gap: e.spacing(2)
3835
- })), ua = m("div")(({ theme: e }) => ({
3837
+ })), pa = m("div")(({ theme: e }) => ({
3836
3838
  height: e.spacing(0.5),
3837
3839
  width: "100%",
3838
3840
  borderRadius: e.spacing(0.5),
@@ -3863,14 +3865,14 @@ const la = m("div")(({ theme: e }) => ({
3863
3865
  "& a": {
3864
3866
  cursor: "pointer"
3865
3867
  }
3866
- })), pa = m(ue)(({ theme: e }) => ({
3868
+ })), ga = m(ue)(({ theme: e }) => ({
3867
3869
  ".MuiTooltip-tooltip": {
3868
3870
  color: e.palette.common.white,
3869
3871
  maxWidth: 260,
3870
3872
  marginBottom: 0,
3871
3873
  overflow: "hidden"
3872
3874
  }
3873
- })), ga = m(ot)(({ theme: e }) => ({
3875
+ })), ha = m(ot)(({ theme: e }) => ({
3874
3876
  marginTop: e.spacing(-0.5)
3875
3877
  }));
3876
3878
  m(S)(() => ({
@@ -3878,7 +3880,7 @@ m(S)(() => ({
3878
3880
  flexWrap: "nowrap",
3879
3881
  justifyContent: "space-between"
3880
3882
  }));
3881
- const ha = m("div", {
3883
+ const fa = m("div", {
3882
3884
  shouldForwardProp: (e) => e !== "filterable"
3883
3885
  })(({ filterable: e }) => ({
3884
3886
  "& .progressbar div": {
@@ -3890,18 +3892,18 @@ const ha = m("div", {
3890
3892
  backgroundColor: "var(--hover-color)"
3891
3893
  }
3892
3894
  }
3893
- })), fa = m(S)(({ theme: e }) => ({
3895
+ })), ma = m(S)(({ theme: e }) => ({
3894
3896
  display: "flex",
3895
3897
  alignItems: "center",
3896
3898
  flexWrap: "nowrap",
3897
3899
  overflow: "hidden",
3898
3900
  gap: e.spacing(1)
3899
- })), ma = m(S)(({ theme: e }) => ({
3901
+ })), ya = m(S)(({ theme: e }) => ({
3900
3902
  padding: e.spacing(0.5, 0),
3901
3903
  flexGrow: "1",
3902
3904
  maxWidth: "100%",
3903
3905
  minWidth: 0
3904
- })), ya = m(S, {
3906
+ })), wa = m(S, {
3905
3907
  shouldForwardProp: (e) => e !== "backgroundColor"
3906
3908
  })(({ theme: e, backgroundColor: t }) => ({
3907
3909
  marginLeft: e.spacing(1),
@@ -3910,7 +3912,7 @@ const ha = m("div", {
3910
3912
  color: "white",
3911
3913
  borderRadius: e.spacing(2)
3912
3914
  }));
3913
- function wa(e, t, i, r, o) {
3915
+ function va(e, t, i, r, o) {
3914
3916
  const l = (e[0] ?? []).map((d, s) => {
3915
3917
  const u = String(d.name), p = r.length > 0 && !r.includes(u), c = i[s] ?? u, y = e.map((g, f) => {
3916
3918
  var w;
@@ -3930,29 +3932,29 @@ function wa(e, t, i, r, o) {
3930
3932
  return Math.max(...s.data.map((c) => c.value)) - u;
3931
3933
  }), l;
3932
3934
  }
3933
- const va = 500;
3934
- function xa(e, t = {}) {
3935
+ const xa = 500;
3936
+ function ba(e, t = {}) {
3935
3937
  const { disabled: i, duration: r, animateOnMount: o, initialValue: a = 0 } = t, l = re(null), [d, s] = _(
3936
3938
  () => o ? a : e
3937
3939
  );
3938
3940
  return U(() => (i ? s(e) : gt({
3939
3941
  start: d,
3940
3942
  end: e,
3941
- duration: r ?? va,
3943
+ duration: r ?? xa,
3942
3944
  drawFrame: (u) => s(u),
3943
3945
  requestRef: l
3944
3946
  }), () => {
3945
3947
  l.current && cancelAnimationFrame(l.current);
3946
3948
  }), [e, i, r]), d;
3947
3949
  }
3948
- const ba = {};
3950
+ const ka = {};
3949
3951
  function Hn({
3950
3952
  enabled: e = !0,
3951
3953
  value: t = 0,
3952
- options: i = ba,
3954
+ options: i = ka,
3953
3955
  formatter: r
3954
3956
  }) {
3955
- const a = xa(t || 0, {
3957
+ const a = ba(t || 0, {
3956
3958
  ...{
3957
3959
  animateOnMount: !0,
3958
3960
  disabled: e === !1 || t === null || t === void 0
@@ -3961,12 +3963,12 @@ function Hn({
3961
3963
  });
3962
3964
  return /* @__PURE__ */ n("span", { children: r ? r(a) : a });
3963
3965
  }
3964
- const mt = (e) => e, ka = () => {
3965
- }, Sa = [];
3966
- function Ma({
3966
+ const mt = (e) => e, Sa = () => {
3967
+ }, Ma = [];
3968
+ function Ia({
3967
3969
  item: e,
3968
3970
  index: t = 0,
3969
- names: i = Sa,
3971
+ names: i = Ma,
3970
3972
  formatter: r = mt
3971
3973
  }) {
3972
3974
  const o = le(), a = e.data[0], l = e.data[t], d = i[t], s = (l.value - a.value) / (a.value || 1) * 100, u = Math.sign(s) === -1 ? "-" : "+", p = Math.sign(s) === -1 ? o.palette.error.main : o.palette.success.main, c = e.key === Oe ? o.palette.text.disabled : p;
@@ -3981,14 +3983,14 @@ function Ma({
3981
3983
  ),
3982
3984
  /* @__PURE__ */ n(De, { color: "inherit", variant: "caption", children: d }),
3983
3985
  /* @__PURE__ */ n(S, { style: { flexGrow: 1 } }),
3984
- /* @__PURE__ */ n(ya, { backgroundColor: c, children: /* @__PURE__ */ v(De, { color: "inherit", variant: "caption", children: [
3986
+ /* @__PURE__ */ n(wa, { backgroundColor: c, children: /* @__PURE__ */ v(De, { color: "inherit", variant: "caption", children: [
3985
3987
  u,
3986
3988
  r(Math.abs(s))
3987
3989
  ] }) })
3988
3990
  ] }) })
3989
3991
  ] });
3990
3992
  }
3991
- function Ia({
3993
+ function Ta({
3992
3994
  item: e,
3993
3995
  animation: t = !0,
3994
3996
  animationOptions: i,
@@ -3997,7 +3999,7 @@ function Ia({
3997
3999
  checkboxChecked: a,
3998
4000
  formatter: l = mt,
3999
4001
  tooltipFormatter: d = mt,
4000
- onClick: s = ka,
4002
+ onClick: s = Sa,
4001
4003
  names: u,
4002
4004
  tooltip: p
4003
4005
  }) {
@@ -4005,7 +4007,7 @@ function Ia({
4005
4007
  return `${Math.min(100, (g || 0) / r * 100)}%`;
4006
4008
  }
4007
4009
  const y = (g) => /* @__PURE__ */ n(
4008
- Ma,
4010
+ Ia,
4009
4011
  {
4010
4012
  item: e,
4011
4013
  names: u,
@@ -4013,19 +4015,19 @@ function Ia({
4013
4015
  index: g
4014
4016
  }
4015
4017
  );
4016
- return /* @__PURE__ */ v(fa, { onClick: () => s(e.key), children: [
4018
+ return /* @__PURE__ */ v(ma, { onClick: () => s(e.key), children: [
4017
4019
  o ? /* @__PURE__ */ n(ln, { checked: a }) : null,
4018
- /* @__PURE__ */ v(ma, { children: [
4020
+ /* @__PURE__ */ v(ya, { children: [
4019
4021
  /* @__PURE__ */ n(De, { variant: "body2", noWrap: !0, children: e.label }),
4020
4022
  e.data.map((g, f) => /* @__PURE__ */ n(
4021
- pa,
4023
+ ga,
4022
4024
  {
4023
4025
  title: y(f),
4024
4026
  placement: "top-start",
4025
4027
  arrow: !1,
4026
4028
  disableHoverListener: !p,
4027
- children: /* @__PURE__ */ v(da, { children: [
4028
- /* @__PURE__ */ n(ua, { className: "progressbar", children: /* @__PURE__ */ n(
4029
+ children: /* @__PURE__ */ v(ua, { children: [
4030
+ /* @__PURE__ */ n(pa, { className: "progressbar", children: /* @__PURE__ */ n(
4029
4031
  "div",
4030
4032
  {
4031
4033
  style: {
@@ -4058,9 +4060,9 @@ function Ia({
4058
4060
  ] })
4059
4061
  ] });
4060
4062
  }
4061
- const Kt = (e) => e, Ta = () => {
4063
+ const Kt = (e) => e, Ca = () => {
4062
4064
  }, He = [];
4063
- function us({
4065
+ function ps({
4064
4066
  names: e = He,
4065
4067
  data: t = He,
4066
4068
  labels: i = He,
@@ -4072,7 +4074,7 @@ function us({
4072
4074
  searchable: s = !0,
4073
4075
  filterable: u = !0,
4074
4076
  selectedCategories: p = He,
4075
- onSelectedCategoriesChange: c = Ta,
4077
+ onSelectedCategoriesChange: c = Ca,
4076
4078
  formatter: y = Kt,
4077
4079
  tooltipFormatter: g = Kt,
4078
4080
  tooltip: f = !0,
@@ -4084,7 +4086,7 @@ function us({
4084
4086
  h.palette.primary.main,
4085
4087
  h.palette.info.main
4086
4088
  ];
4087
- return wa(
4089
+ return va(
4088
4090
  t,
4089
4091
  V,
4090
4092
  i,
@@ -4118,12 +4120,12 @@ function us({
4118
4120
  return /* @__PURE__ */ n(Mn, {});
4119
4121
  const R = b ? D : M ? G : J;
4120
4122
  function X() {
4121
- T(!0), c([...x]), K();
4123
+ T(!0), c([...x]), Z();
4122
4124
  }
4123
4125
  function j() {
4124
4126
  T(!1);
4125
4127
  }
4126
- function q() {
4128
+ function K() {
4127
4129
  c([]);
4128
4130
  }
4129
4131
  function te() {
@@ -4132,7 +4134,7 @@ function us({
4132
4134
  function Y() {
4133
4135
  k(!0), A([...p]);
4134
4136
  }
4135
- function K() {
4137
+ function Z() {
4136
4138
  k(!1), A([]);
4137
4139
  }
4138
4140
  function de(V) {
@@ -4148,7 +4150,7 @@ function us({
4148
4150
  pe.length === $.length && (pe = []), A(pe);
4149
4151
  }
4150
4152
  const ve = u ? b ? we : de : void 0;
4151
- return /* @__PURE__ */ v(la, { children: [
4153
+ return /* @__PURE__ */ v(sa, { children: [
4152
4154
  u ? /* @__PURE__ */ v(qt, { center: !0, children: [
4153
4155
  /* @__PURE__ */ n(H, { variant: "caption", children: p.length > 0 ? P.formatMessage(
4154
4156
  { id: "c4r.widgets.category.selectedItems" },
@@ -4169,7 +4171,7 @@ function us({
4169
4171
  id: "c4r.widgets.category.lock"
4170
4172
  }) }),
4171
4173
  /* @__PURE__ */ n(wt, { orientation: "vertical", flexItem: !0 }),
4172
- /* @__PURE__ */ n(ye, { onClick: q, children: P.formatMessage({
4174
+ /* @__PURE__ */ n(ye, { onClick: K, children: P.formatMessage({
4173
4175
  id: "c4r.widgets.category.clear"
4174
4176
  }) })
4175
4177
  ]
@@ -4177,7 +4179,7 @@ function us({
4177
4179
  ) : null })
4178
4180
  ] }) : null,
4179
4181
  b ? /* @__PURE__ */ n(qt, { children: /* @__PURE__ */ n(
4180
- ga,
4182
+ ha,
4181
4183
  {
4182
4184
  size: "small",
4183
4185
  placeholder: P.formatMessage({
@@ -4190,7 +4192,7 @@ function us({
4190
4192
  }
4191
4193
  }
4192
4194
  ) }) : null,
4193
- /* @__PURE__ */ v(sa, { children: [
4195
+ /* @__PURE__ */ v(ca, { children: [
4194
4196
  R.length === 0 ? /* @__PURE__ */ v(ie, { children: [
4195
4197
  /* @__PURE__ */ n(H, { variant: "body2", children: P.formatMessage({
4196
4198
  id: "c4r.widgets.category.noResults"
@@ -4200,8 +4202,8 @@ function us({
4200
4202
  { searchValue: C }
4201
4203
  ) })
4202
4204
  ] }) : null,
4203
- R.map((V) => /* @__PURE__ */ n(ha, { children: /* @__PURE__ */ n(
4204
- Ia,
4205
+ R.map((V) => /* @__PURE__ */ n(fa, { children: /* @__PURE__ */ n(
4206
+ Ta,
4205
4207
  {
4206
4208
  item: V,
4207
4209
  animation: l,
@@ -4230,43 +4232,43 @@ function us({
4230
4232
  )
4231
4233
  }
4232
4234
  ) : null,
4233
- b ? /* @__PURE__ */ n($e, { size: "small", color: "primary", onClick: K, children: P.formatMessage({ id: "c4r.widgets.category.cancel" }) }) : null,
4234
- /* @__PURE__ */ n(ca, { children: e.map((V, ee) => /* @__PURE__ */ v(Bn, { children: [
4235
+ b ? /* @__PURE__ */ n($e, { size: "small", color: "primary", onClick: Z, children: P.formatMessage({ id: "c4r.widgets.category.cancel" }) }) : null,
4236
+ /* @__PURE__ */ n(da, { children: e.map((V, ee) => /* @__PURE__ */ v(Bn, { children: [
4235
4237
  /* @__PURE__ */ n(_n, { color: (r == null ? void 0 : r[ee]) ?? h.palette.background.default }),
4236
4238
  /* @__PURE__ */ n(H, { variant: "overline", children: V })
4237
4239
  ] }, e[ee])) })
4238
4240
  ] });
4239
4241
  }
4240
- const Ca = m(H)(({ theme: e }) => ({
4242
+ const Aa = m(H)(({ theme: e }) => ({
4241
4243
  display: "inline-block",
4242
4244
  marginTop: e.spacing(0.5)
4243
4245
  }));
4244
- function Aa({
4246
+ function Ea({
4245
4247
  row: e
4246
4248
  }) {
4247
4249
  const t = le();
4248
- return e.label ? /* @__PURE__ */ n(S, { color: e.color ?? t.palette.text.secondary, children: /* @__PURE__ */ n(Ca, { color: "inherit", variant: "caption", children: e.label }) }) : null;
4250
+ return e.label ? /* @__PURE__ */ n(S, { color: e.color ?? t.palette.text.secondary, children: /* @__PURE__ */ n(Aa, { color: "inherit", variant: "caption", children: e.label }) }) : null;
4249
4251
  }
4250
- const Ea = m("div")(({ theme: e }) => ({
4252
+ const La = m("div")(({ theme: e }) => ({
4251
4253
  margin: 0,
4252
4254
  ...e.typography.h5,
4253
4255
  fontWeight: Number(e.typography.fontWeightMedium),
4254
4256
  color: e.palette.text.primary,
4255
4257
  display: "flex"
4256
- })), La = m(H)(({ theme: e }) => ({
4257
- marginRight: e.spacing(0.5)
4258
4258
  })), Da = m(H)(({ theme: e }) => ({
4259
+ marginRight: e.spacing(0.5)
4260
+ })), $a = m(H)(({ theme: e }) => ({
4259
4261
  marginLeft: e.spacing(0.5)
4260
4262
  }));
4261
- function $a({
4263
+ function Pa({
4262
4264
  row: e,
4263
4265
  animated: t,
4264
4266
  animationOptions: i,
4265
4267
  formatter: r
4266
4268
  }) {
4267
4269
  const o = le(), { prefix: a, value: l, suffix: d, shouldBeHighlighted: s } = e;
4268
- return /* @__PURE__ */ v(Ea, { children: [
4269
- a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(La, { color: "inherit", component: "span", variant: "subtitle2", children: a }) }) : null,
4270
+ return /* @__PURE__ */ v(La, { children: [
4271
+ a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Da, { color: "inherit", component: "span", variant: "subtitle2", children: a }) }) : null,
4270
4272
  /* @__PURE__ */ n(S, { fontWeight: s ? "bold" : "", children: /* @__PURE__ */ n(
4271
4273
  Hn,
4272
4274
  {
@@ -4276,26 +4278,26 @@ function $a({
4276
4278
  formatter: r
4277
4279
  }
4278
4280
  ) }),
4279
- d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Da, { color: "inherit", component: "span", variant: "subtitle2", children: d }) }) : null
4281
+ d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n($a, { color: "inherit", component: "span", variant: "subtitle2", children: d }) }) : null
4280
4282
  ] });
4281
4283
  }
4282
- const Pa = (e) => e, Zt = [], Oa = m("div")(({ theme: e }) => ({
4284
+ const Oa = (e) => e, Zt = [], Wa = m("div")(({ theme: e }) => ({
4283
4285
  "&:nth-of-type(n+2)": {
4284
4286
  marginTop: e.spacing(2)
4285
4287
  }
4286
4288
  }));
4287
- function ps({
4289
+ function gs({
4288
4290
  data: e = Zt,
4289
4291
  colors: t = Zt,
4290
4292
  animated: i = !0,
4291
4293
  animationOptions: r,
4292
- formatter: o = Pa,
4294
+ formatter: o = Oa,
4293
4295
  isLoading: a = !1
4294
4296
  }) {
4295
- const l = Wa(e, t);
4296
- return a ? /* @__PURE__ */ n(Tn, {}) : /* @__PURE__ */ n("div", { children: l.map((d, s) => /* @__PURE__ */ v(Oa, { children: [
4297
+ const l = Ra(e, t);
4298
+ return a ? /* @__PURE__ */ n(Tn, {}) : /* @__PURE__ */ n("div", { children: l.map((d, s) => /* @__PURE__ */ v(Wa, { children: [
4297
4299
  /* @__PURE__ */ n(
4298
- $a,
4300
+ Pa,
4299
4301
  {
4300
4302
  row: d,
4301
4303
  animated: i,
@@ -4303,14 +4305,14 @@ function ps({
4303
4305
  formatter: o
4304
4306
  }
4305
4307
  ),
4306
- /* @__PURE__ */ n(Aa, { row: d })
4308
+ /* @__PURE__ */ n(Ea, { row: d })
4307
4309
  ] }, s)) });
4308
4310
  }
4309
- function Wa(e, t) {
4311
+ function Ra(e, t) {
4310
4312
  const i = e.map((o, a) => ({ ...o, color: t[a], shouldBeHighlighted: !1 })).filter((o) => o.value !== void 0);
4311
4313
  return i && i.length > 1 && (i[0].shouldBeHighlighted = !0), i;
4312
4314
  }
4313
- function Ra(e, t = [], i = [], r, o = []) {
4315
+ function Fa(e, t = [], i = [], r, o = []) {
4314
4316
  return e.map((a, l) => {
4315
4317
  const d = o.length > 0 && !o.includes(a.name), u = (t != null && t.length ? t : r.palette.qualitative.bold)[l];
4316
4318
  return {
@@ -4321,7 +4323,7 @@ function Ra(e, t = [], i = [], r, o = []) {
4321
4323
  };
4322
4324
  });
4323
4325
  }
4324
- function Fa(e, t, i) {
4326
+ function Na(e, t, i) {
4325
4327
  const r = `
4326
4328
  font-size: 12px;
4327
4329
  line-height: 1.33;
@@ -4341,23 +4343,23 @@ function Fa(e, t, i) {
4341
4343
  <p style="${o}">${String(a.marker)} ${s} (${u} %)</p>
4342
4344
  `.trim();
4343
4345
  }
4344
- const Na = (e) => e, Ba = () => {
4345
- }, Ke = [], _a = "260px";
4346
- function gs({
4346
+ const Ba = (e) => e, _a = () => {
4347
+ }, Ke = [], Ha = "260px";
4348
+ function hs({
4347
4349
  names: e = Ke,
4348
4350
  data: t = Ke,
4349
4351
  labels: i = Ke,
4350
4352
  colors: r = Ke,
4351
- height: o = _a,
4353
+ height: o = Ha,
4352
4354
  animation: a = !0,
4353
- formatter: l = Na,
4354
- tooltipFormatter: d = Fa,
4355
+ formatter: l = Ba,
4356
+ tooltipFormatter: d = Na,
4355
4357
  selectedCategories: s = [],
4356
- onCategorySelected: u = Ba,
4358
+ onCategorySelected: u = _a,
4357
4359
  isLoading: p = !1
4358
4360
  }) {
4359
4361
  const c = le(), y = re(), g = F(() => t.map(
4360
- (b, k) => Ra(b, r[k], i[k], c, s)
4362
+ (b, k) => Fa(b, r[k], i[k], c, s)
4361
4363
  ), [t, r, i, c, s]), f = F(() => {
4362
4364
  const b = g.length > 1;
4363
4365
  let k;
@@ -4500,14 +4502,14 @@ function gs({
4500
4502
  }
4501
4503
  ) : null;
4502
4504
  }
4503
- const Ha = () => {
4505
+ const za = () => {
4504
4506
  };
4505
- function za({
4507
+ function ja({
4506
4508
  icon: e,
4507
4509
  hoverTooltip: t,
4508
4510
  clickTooltip: i,
4509
4511
  enabled: r,
4510
- onEnabledChange: o = Ha,
4512
+ onEnabledChange: o = za,
4511
4513
  tooltipPlacement: a = "bottom"
4512
4514
  }) {
4513
4515
  const [l, d] = _(!1), [s, u] = _(r);
@@ -4522,7 +4524,7 @@ function za({
4522
4524
  window.removeEventListener("keydown", c);
4523
4525
  };
4524
4526
  }
4525
- }, [r, o]), /* @__PURE__ */ n(ai, { onClickAway: () => u(!1), children: /* @__PURE__ */ n(
4527
+ }, [r, o]), /* @__PURE__ */ n(li, { onClickAway: () => u(!1), children: /* @__PURE__ */ n(
4526
4528
  ue,
4527
4529
  {
4528
4530
  title: s ? i : t,
@@ -4533,7 +4535,7 @@ function za({
4533
4535
  s || d(!1);
4534
4536
  },
4535
4537
  children: /* @__PURE__ */ n(
4536
- li,
4538
+ si,
4537
4539
  {
4538
4540
  value: "selectedMode",
4539
4541
  selected: r,
@@ -4544,31 +4546,31 @@ function za({
4544
4546
  }
4545
4547
  ) });
4546
4548
  }
4547
- const ja = m(fe, {
4549
+ const Ya = m(fe, {
4548
4550
  shouldForwardProp: (e) => e !== "isOpen"
4549
4551
  })(({ isOpen: e, theme: t }) => ({
4550
4552
  color: t.palette.text.secondary,
4551
4553
  width: t.spacing(3),
4552
4554
  transform: `rotate(${e ? "180" : "0"}deg)`,
4553
4555
  backgroundColor: e ? t.palette.action.hover : void 0
4554
- })), Ya = m(Pe, {
4556
+ })), Va = m(Pe, {
4555
4557
  shouldForwardProp: (e) => e !== "disabled"
4556
4558
  })(({ disabled: e, theme: t }) => ({
4557
4559
  ...e && {
4558
4560
  pointerEvents: "none",
4559
4561
  color: t.palette.text.disabled
4560
4562
  }
4561
- })), Va = m(Pe)(() => ({
4563
+ })), Ga = m(Pe)(() => ({
4562
4564
  "&.Mui-disabled": {
4563
4565
  opacity: 1
4564
4566
  }
4565
- })), Ga = () => {
4567
+ })), Ua = () => {
4566
4568
  };
4567
- function Ua({
4569
+ function Xa({
4568
4570
  selectionModes: e,
4569
4571
  editModes: t,
4570
4572
  selectedMode: i,
4571
- onSelectMode: r = Ga,
4573
+ onSelectMode: r = Ua,
4572
4574
  enabled: o,
4573
4575
  tooltipPlacement: a = "bottom",
4574
4576
  tooltipText: l = "",
@@ -4580,7 +4582,7 @@ function Ua({
4580
4582
  }, h = !!e.length && !!t.length, b = (M) => t.some((T) => T.id === M.id);
4581
4583
  function k(M) {
4582
4584
  return /* @__PURE__ */ n(
4583
- Ya,
4585
+ Va,
4584
4586
  {
4585
4587
  selected: o && i === M.id,
4586
4588
  onClick: () => w(M.id),
@@ -4595,7 +4597,7 @@ function Ua({
4595
4597
  }
4596
4598
  return /* @__PURE__ */ v(ie, { children: [
4597
4599
  /* @__PURE__ */ n(ue, { title: l, placement: a, children: /* @__PURE__ */ n(
4598
- ja,
4600
+ Ya,
4599
4601
  {
4600
4602
  id: "feature-selection-menu-button",
4601
4603
  "aria-controls": "feature-selection-menu",
@@ -4603,7 +4605,7 @@ function Ua({
4603
4605
  "aria-expanded": y ? "true" : void 0,
4604
4606
  onClick: g,
4605
4607
  isOpen: y,
4606
- children: /* @__PURE__ */ n(Mi, {})
4608
+ children: /* @__PURE__ */ n(Ii, {})
4607
4609
  }
4608
4610
  ) }),
4609
4611
  /* @__PURE__ */ v(
@@ -4616,7 +4618,7 @@ function Ua({
4616
4618
  onClose: f,
4617
4619
  MenuListProps: { "aria-labelledby": "feature-selection-menu-button" },
4618
4620
  children: [
4619
- d && /* @__PURE__ */ n(Va, { disabled: !0, children: /* @__PURE__ */ n(H, { variant: "caption", color: "textSecondary", children: d }) }),
4621
+ d && /* @__PURE__ */ n(Ga, { disabled: !0, children: /* @__PURE__ */ n(H, { variant: "caption", color: "textSecondary", children: d }) }),
4620
4622
  !!e.length && e.map(k),
4621
4623
  h && /* @__PURE__ */ n(wt, { sx: { margin: ({ spacing: M }) => M(1, 0) } }),
4622
4624
  !!t.length && t.map(k)
@@ -4625,7 +4627,7 @@ function Ua({
4625
4627
  )
4626
4628
  ] });
4627
4629
  }
4628
- const Xa = m(di)(({ theme: e }) => ({
4630
+ const qa = m(ui)(({ theme: e }) => ({
4629
4631
  display: "flex",
4630
4632
  alignItems: "center",
4631
4633
  marginLeft: e.spacing(1.5),
@@ -4637,11 +4639,11 @@ const Xa = m(di)(({ theme: e }) => ({
4637
4639
  "&::-webkit-scrollbar": {
4638
4640
  display: "none"
4639
4641
  }
4640
- })), qa = () => {
4642
+ })), Ka = () => {
4641
4643
  };
4642
- function Ka({
4644
+ function Za({
4643
4645
  features: e,
4644
- onSelectGeometry: t = qa,
4646
+ onSelectGeometry: t = Ka,
4645
4647
  onDeleteGeometry: i,
4646
4648
  chipTooltip: r,
4647
4649
  disabledChipTooltip: o,
@@ -4665,7 +4667,7 @@ function Ka({
4665
4667
  return d || ((b = f.properties) == null ? void 0 : b.name) || `${h} ${w + 1}`;
4666
4668
  }
4667
4669
  const [y, g] = _(!1);
4668
- return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(Xa, { sx: { gap: a === "small" ? 0.5 : 1 }, children: e.map((f, w) => {
4670
+ return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(qa, { sx: { gap: a === "small" ? 0.5 : 1 }, children: e.map((f, w) => {
4669
4671
  var T, x;
4670
4672
  const h = (T = f.properties) == null ? void 0 : T.disabled, b = (x = f.properties) == null ? void 0 : x.invalid;
4671
4673
  let k = r;
@@ -4675,23 +4677,23 @@ function Ka({
4675
4677
  id: "c4r.widgets.featureSelection.remove"
4676
4678
  }));
4677
4679
  let M = "secondary";
4678
- return h && (M = "default"), b && (M = "error"), /* @__PURE__ */ n(si, { disablePadding: !0, children: /* @__PURE__ */ n(
4680
+ return h && (M = "default"), b && (M = "error"), /* @__PURE__ */ n(ci, { disablePadding: !0, children: /* @__PURE__ */ n(
4679
4681
  ue,
4680
4682
  {
4681
4683
  disableHoverListener: h ? !o : !r,
4682
4684
  title: k,
4683
4685
  placement: l,
4684
4686
  children: /* @__PURE__ */ n(
4685
- ci,
4687
+ di,
4686
4688
  {
4687
4689
  size: a,
4688
4690
  label: c(f, w),
4689
4691
  color: M,
4690
4692
  onClick: () => t(f),
4691
4693
  onDelete: i ? () => i(f) : void 0,
4692
- icon: b ? /* @__PURE__ */ n(Ii, { color: "error" }) : void 0,
4694
+ icon: b ? /* @__PURE__ */ n(Ti, { color: "error" }) : void 0,
4693
4695
  deleteIcon: /* @__PURE__ */ n(
4694
- Ti,
4696
+ Ci,
4695
4697
  {
4696
4698
  onMouseEnter: () => g(!0),
4697
4699
  onMouseLeave: () => g(!1)
@@ -4703,16 +4705,16 @@ function Ka({
4703
4705
  ) }, w);
4704
4706
  }) }) });
4705
4707
  }
4706
- const Za = m(hn)(({ theme: e }) => ({
4708
+ const Ja = m(hn)(({ theme: e }) => ({
4707
4709
  display: "flex",
4708
4710
  alignItems: "center",
4709
4711
  justifyContent: "space-between",
4710
4712
  maxHeight: e.spacing(5),
4711
4713
  padding: e.spacing(0.5)
4712
- })), Ja = [];
4713
- function hs({
4714
+ })), Qa = [];
4715
+ function fs({
4714
4716
  selectionModes: e,
4715
- editModes: t = Ja,
4717
+ editModes: t = Qa,
4716
4718
  selectedMode: i,
4717
4719
  onSelectMode: r,
4718
4720
  enabled: o = !1,
@@ -4758,9 +4760,9 @@ function hs({
4758
4760
  }) : g.formatMessage({
4759
4761
  id: "c4r.widgets.featureSelection.clickToCreate"
4760
4762
  });
4761
- return /* @__PURE__ */ v(Za, { children: [
4763
+ return /* @__PURE__ */ v(Ja, { children: [
4762
4764
  /* @__PURE__ */ n(
4763
- za,
4765
+ ja,
4764
4766
  {
4765
4767
  icon: h == null ? void 0 : h.icon,
4766
4768
  hoverTooltip: k,
@@ -4771,7 +4773,7 @@ function hs({
4771
4773
  }
4772
4774
  ),
4773
4775
  /* @__PURE__ */ n(
4774
- Ua,
4776
+ Xa,
4775
4777
  {
4776
4778
  selectionModes: f,
4777
4779
  editModes: w,
@@ -4789,7 +4791,7 @@ function hs({
4789
4791
  }
4790
4792
  ),
4791
4793
  !!l && /* @__PURE__ */ n(
4792
- Ka,
4794
+ Za,
4793
4795
  {
4794
4796
  features: [l],
4795
4797
  onSelectGeometry: d,
@@ -4810,7 +4812,7 @@ function hs({
4810
4812
  function Jt(e) {
4811
4813
  return e.charAt(0).toLowerCase() + e.slice(1);
4812
4814
  }
4813
- const zn = 240, Qa = m(hn, {
4815
+ const zn = 240, el = m(hn, {
4814
4816
  shouldForwardProp: (e) => e !== "collapsed"
4815
4817
  })(({ theme: e, collapsed: t }) => ({
4816
4818
  width: t ? "min-content" : zn,
@@ -4818,7 +4820,7 @@ const zn = 240, Qa = m(hn, {
4818
4820
  maxHeight: "calc(100% - 120px)",
4819
4821
  display: "flex",
4820
4822
  flexDirection: "column"
4821
- })), el = m("header", {
4823
+ })), tl = m("header", {
4822
4824
  shouldForwardProp: (e) => e !== "collapsed"
4823
4825
  })(({ theme: e, collapsed: t }) => ({
4824
4826
  display: "flex",
@@ -4827,7 +4829,7 @@ const zn = 240, Qa = m(hn, {
4827
4829
  padding: e.spacing(1),
4828
4830
  paddingLeft: e.spacing(2),
4829
4831
  borderBottom: t ? void 0 : `1px solid ${e.palette.divider}`
4830
- })), tl = m("header")(({ theme: e }) => ({
4832
+ })), nl = m("header")(({ theme: e }) => ({
4831
4833
  padding: e.spacing(1.5),
4832
4834
  paddingRight: e.spacing(2),
4833
4835
  gap: e.spacing(0.5),
@@ -4837,13 +4839,13 @@ const zn = 240, Qa = m(hn, {
4837
4839
  zIndex: 2,
4838
4840
  top: 0,
4839
4841
  background: e.palette.background.paper
4840
- })), nl = m("div")(({ theme: e }) => ({
4842
+ })), il = m("div")(({ theme: e }) => ({
4841
4843
  display: "flex",
4842
4844
  gap: e.spacing(2),
4843
4845
  alignItems: "center",
4844
4846
  padding: e.spacing(1),
4845
4847
  minWidth: `calc(${zn}px - ${e.spacing(4)})`
4846
- })), il = m(ot)(({ theme: e }) => ({
4848
+ })), rl = m(ot)(({ theme: e }) => ({
4847
4849
  display: "flex",
4848
4850
  width: e.spacing(7.5),
4849
4851
  flexShrink: 0,
@@ -4851,7 +4853,7 @@ const zn = 240, Qa = m(hn, {
4851
4853
  WebkitAppearance: "none",
4852
4854
  margin: 0
4853
4855
  }
4854
- })), rl = m("ul", {
4856
+ })), ol = m("ul", {
4855
4857
  shouldForwardProp: (e) => e !== "opacity"
4856
4858
  })(({ theme: e, opacity: t }) => ({
4857
4859
  opacity: t,
@@ -4866,10 +4868,10 @@ const zn = 240, Qa = m(hn, {
4866
4868
  paddingBottom: e.spacing(1),
4867
4869
  display: "flex",
4868
4870
  flexDirection: "column"
4869
- })), ol = m("li")(() => ({
4871
+ })), al = m("li")(() => ({
4870
4872
  display: "flex",
4871
4873
  alignItems: "center"
4872
- })), al = m("div")(({ theme: e }) => ({
4874
+ })), ll = m("div")(({ theme: e }) => ({
4873
4875
  marginRight: e.spacing(1.5),
4874
4876
  width: pt,
4875
4877
  height: pt,
@@ -4883,16 +4885,16 @@ const zn = 240, Qa = m(hn, {
4883
4885
  width: e,
4884
4886
  overflow: "auto",
4885
4887
  maxHeight: `calc(100% - ${t.spacing(1.5)})`
4886
- })), ll = m("section")(({ theme: e }) => ({
4888
+ })), sl = m("section")(({ theme: e }) => ({
4887
4889
  "&:not(:first-of-type)": {
4888
4890
  borderTop: `1px solid ${e.palette.divider}`
4889
4891
  }
4890
- })), sl = m("div")(() => ({
4892
+ })), cl = m("div")(() => ({
4891
4893
  flexGrow: 1,
4892
4894
  flexShrink: 1,
4893
4895
  minWidth: 0
4894
4896
  }));
4895
- function cl({
4897
+ function dl({
4896
4898
  menuRef: e,
4897
4899
  open: t,
4898
4900
  toggleOpen: i,
@@ -4915,13 +4917,13 @@ function cl({
4915
4917
  size: "small",
4916
4918
  color: t ? "primary" : "default",
4917
4919
  onClick: () => i(!t),
4918
- children: /* @__PURE__ */ n(bi, {})
4920
+ children: /* @__PURE__ */ n(ki, {})
4919
4921
  }
4920
4922
  )
4921
4923
  }
4922
4924
  ),
4923
4925
  /* @__PURE__ */ n(
4924
- ui,
4926
+ pi,
4925
4927
  {
4926
4928
  open: t,
4927
4929
  onClose: () => i(!1),
@@ -4939,7 +4941,7 @@ function cl({
4939
4941
  sx: { transform: "translate(-12px, 36px)" }
4940
4942
  }
4941
4943
  },
4942
- children: /* @__PURE__ */ v(nl, { children: [
4944
+ children: /* @__PURE__ */ v(il, { children: [
4943
4945
  /* @__PURE__ */ n(
4944
4946
  xt,
4945
4947
  {
@@ -4951,7 +4953,7 @@ function cl({
4951
4953
  }
4952
4954
  ),
4953
4955
  /* @__PURE__ */ n(
4954
- il,
4956
+ rl,
4955
4957
  {
4956
4958
  size: "small",
4957
4959
  type: "number",
@@ -5006,7 +5008,7 @@ function Lt({
5006
5008
  }
5007
5009
  var Ie = /* @__PURE__ */ ((e) => (e.CATEGORY = "category", e.ICON = "icon", e.CONTINUOUS_RAMP = "continuous_ramp", e.BINS = "bins", e.PROPORTION = "proportion", e))(Ie || {});
5008
5010
  const ut = 20;
5009
- function dl({
5011
+ function ul({
5010
5012
  legend: e
5011
5013
  }) {
5012
5014
  const {
@@ -5018,7 +5020,7 @@ function dl({
5018
5020
  } = e, l = wn(i, t.length), d = t.length > ut, s = se(), u = ce(s);
5019
5021
  return /* @__PURE__ */ v(ie, { children: [
5020
5022
  /* @__PURE__ */ n(jn, { "data-testid": "categories-legend", children: t.slice(0, ut).map((p, c) => /* @__PURE__ */ n(
5021
- hl,
5023
+ fl,
5022
5024
  {
5023
5025
  label: String(p),
5024
5026
  color: l[c % l.length],
@@ -5047,7 +5049,7 @@ function dl({
5047
5049
  )
5048
5050
  ] });
5049
5051
  }
5050
- const ul = ({
5052
+ const pl = ({
5051
5053
  isMax: e,
5052
5054
  color: t,
5053
5055
  isStrokeColor: i,
@@ -5066,7 +5068,7 @@ const ul = ({
5066
5068
  boxSizing: "content-box"
5067
5069
  },
5068
5070
  ...i ? { borderColor: t } : { backgroundColor: t }
5069
- }), pl = ({
5071
+ }), gl = ({
5070
5072
  icon: e,
5071
5073
  color: t,
5072
5074
  maskedIcon: i
@@ -5083,7 +5085,7 @@ const ul = ({
5083
5085
  backgroundColor: "rgba(0,0,0,0)",
5084
5086
  backgroundImage: `url(${e})`
5085
5087
  }
5086
- }), gl = m(S, {
5088
+ }), hl = m(S, {
5087
5089
  shouldForwardProp: (e) => e !== "icon" && e !== "maskedIcon" && e !== "color" && e !== "isStrokeColor"
5088
5090
  })(({ icon: e, maskedIcon: t, color: i, isStrokeColor: r, theme: o }) => ({
5089
5091
  whiteSpace: "nowrap",
@@ -5094,9 +5096,9 @@ const ul = ({
5094
5096
  borderRadius: "50%",
5095
5097
  position: "relative",
5096
5098
  border: "2px solid transparent",
5097
- ...e ? pl({ icon: e, color: i, maskedIcon: t }) : ul({ color: i, isStrokeColor: r, theme: o })
5099
+ ...e ? gl({ icon: e, color: i, maskedIcon: t }) : pl({ color: i, isStrokeColor: r, theme: o })
5098
5100
  }));
5099
- function hl({
5101
+ function fl({
5100
5102
  label: e,
5101
5103
  isStrokeColor: t,
5102
5104
  color: i = "#000",
@@ -5105,7 +5107,7 @@ function hl({
5105
5107
  }) {
5106
5108
  return /* @__PURE__ */ v(S, { component: "li", sx: { display: "flex", alignItems: "center" }, children: [
5107
5109
  /* @__PURE__ */ n(
5108
- gl,
5110
+ hl,
5109
5111
  {
5110
5112
  className: "marker",
5111
5113
  mr: 1.5,
@@ -5124,7 +5126,7 @@ const Ze = 6, rt = {
5124
5126
  1: 9,
5125
5127
  2: 6,
5126
5128
  3: 3
5127
- }, fl = m(S, {
5129
+ }, ml = m(S, {
5128
5130
  shouldForwardProp: (e) => e !== "index"
5129
5131
  })(({ index: e = 0, theme: t }) => {
5130
5132
  const i = t.spacing(rt[e]), r = t.spacing(rt[e]);
@@ -5138,20 +5140,20 @@ const Ze = 6, rt = {
5138
5140
  width: i,
5139
5141
  height: r
5140
5142
  };
5141
- }), ml = m(S)(({ theme: { spacing: e } }) => ({
5143
+ }), yl = m(S)(({ theme: { spacing: e } }) => ({
5142
5144
  display: "flex",
5143
5145
  justifyContent: "flex-end",
5144
5146
  flexShrink: 0,
5145
5147
  position: "relative",
5146
5148
  width: e(rt[0]),
5147
5149
  height: e(rt[0])
5148
- })), yl = m(S)(({ theme: { spacing: e } }) => ({
5150
+ })), wl = m(S)(({ theme: { spacing: e } }) => ({
5149
5151
  display: "flex",
5150
5152
  gap: e(1),
5151
5153
  alignItems: "stretch",
5152
5154
  justifyContent: "stretch",
5153
5155
  padding: e(2, 0)
5154
- })), wl = m(S)(() => ({
5156
+ })), vl = m(S)(() => ({
5155
5157
  display: "flex",
5156
5158
  flexDirection: "column",
5157
5159
  justifyContent: "space-around",
@@ -5159,20 +5161,20 @@ const Ze = 6, rt = {
5159
5161
  flexGrow: 1,
5160
5162
  flexShrink: 1
5161
5163
  }));
5162
- function vl({
5164
+ function xl({
5163
5165
  legend: e
5164
5166
  }) {
5165
- const t = se(), i = ce(t), r = e.showMinMax ?? !0, { min: o, max: a, error: l } = xl(e), [d, s] = l ? [0, 0] : bl(o, a);
5166
- return /* @__PURE__ */ v(yl, { "data-testid": "proportion-legend", children: [
5167
- /* @__PURE__ */ n(ml, { children: [...Array(4)].map((u, p) => /* @__PURE__ */ n(
5168
- fl,
5167
+ const t = se(), i = ce(t), r = e.showMinMax ?? !0, { min: o, max: a, error: l } = bl(e), [d, s] = l ? [0, 0] : kl(o, a);
5168
+ return /* @__PURE__ */ v(wl, { "data-testid": "proportion-legend", children: [
5169
+ /* @__PURE__ */ n(yl, { children: [...Array(4)].map((u, p) => /* @__PURE__ */ n(
5170
+ ml,
5169
5171
  {
5170
5172
  index: p,
5171
5173
  component: "span"
5172
5174
  },
5173
5175
  p
5174
5176
  )) }),
5175
- /* @__PURE__ */ n(wl, { children: l ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(H, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ v(ie, { children: [
5177
+ /* @__PURE__ */ n(vl, { children: l ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(H, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ v(ie, { children: [
5176
5178
  /* @__PURE__ */ v(H, { variant: "overline", color: "textSecondary", children: [
5177
5179
  r && i.formatMessage({ id: "c4r.widgets.legend.max" }) + ": ",
5178
5180
  t.formatNumber(a, {
@@ -5198,21 +5200,21 @@ function Yn({ labels: e }) {
5198
5200
  let t = e == null ? void 0 : e[e.length - 1], i = e == null ? void 0 : e[0];
5199
5201
  return Number.isFinite(i) || (i = parseInt(String(i), 10)), Number.isFinite(t) || (t = parseInt(String(t), 10)), [i, t];
5200
5202
  }
5201
- function xl(e) {
5203
+ function bl(e) {
5202
5204
  let t = !1;
5203
5205
  const [i, r] = Yn(e);
5204
5206
  return (Number.isNaN(i) || Number.isNaN(r)) && (t = !0), { min: i, max: r, error: t };
5205
5207
  }
5206
- function bl(e, t) {
5208
+ function kl(e, t) {
5207
5209
  const i = (t - e) / 3;
5208
5210
  return [e + i, t - i];
5209
5211
  }
5210
- function kl({
5212
+ function Sl({
5211
5213
  legend: e
5212
5214
  }) {
5213
5215
  const { labels: t = [], icons: i = [] } = e;
5214
- return /* @__PURE__ */ n(jn, { "data-testid": "icon-legend", children: t.map((r, o) => /* @__PURE__ */ v(ol, { children: [
5215
- /* @__PURE__ */ n(al, { children: /* @__PURE__ */ n(
5216
+ return /* @__PURE__ */ n(jn, { "data-testid": "icon-legend", children: t.map((r, o) => /* @__PURE__ */ v(al, { children: [
5217
+ /* @__PURE__ */ n(ll, { children: /* @__PURE__ */ n(
5216
5218
  "img",
5217
5219
  {
5218
5220
  src: i[o],
@@ -5224,7 +5226,7 @@ function kl({
5224
5226
  /* @__PURE__ */ n(Lt, { visible: !0, title: r })
5225
5227
  ] }, r)) });
5226
5228
  }
5227
- function Sl(e) {
5229
+ function Ml(e) {
5228
5230
  return typeof e[0] == "object" && "label" in e[0];
5229
5231
  }
5230
5232
  function en({
@@ -5234,17 +5236,17 @@ function en({
5234
5236
  const { labels: i = [], colors: r = [], showMinMax: o = !0 } = t, a = wn(
5235
5237
  r,
5236
5238
  !i.length || e ? 2 : i.length + 1
5237
- ), l = Sl(i), d = l ? i.map(({ value: f }) => f) : i, s = l ? i.map(({ label: f }) => f) : i, [u, p] = Yn({ labels: d }), c = Number.isNaN(u) || Number.isNaN(p);
5239
+ ), l = Ml(i), d = l ? i.map(({ value: f }) => f) : i, s = l ? i.map(({ label: f }) => f) : i, [u, p] = Yn({ labels: d }), c = Number.isNaN(u) || Number.isNaN(p);
5238
5240
  let y = s[s.length - 1], g = s[0];
5239
5241
  return !e && o && (g = "< " + g, y = "≥ " + y), /* @__PURE__ */ n(S, { py: 2, "data-testid": "ramp-legend", children: c ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(H, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ v(ie, { children: [
5240
5242
  /* @__PURE__ */ n(S, { display: "flex", pb: 1, children: e ? /* @__PURE__ */ n(
5241
- Ml,
5243
+ Il,
5242
5244
  {
5243
5245
  "data-testid": "step-continuous",
5244
5246
  palette: a
5245
5247
  }
5246
5248
  ) : /* @__PURE__ */ n(
5247
- Tl,
5249
+ Cl,
5248
5250
  {
5249
5251
  palette: a,
5250
5252
  labels: s,
@@ -5258,7 +5260,7 @@ function en({
5258
5260
  ] })
5259
5261
  ] }) });
5260
5262
  }
5261
- const Ml = m(S, {
5263
+ const Il = m(S, {
5262
5264
  shouldForwardProp: (e) => e !== "palette"
5263
5265
  })(({ palette: e, theme: t }) => ({
5264
5266
  display: "block",
@@ -5266,7 +5268,7 @@ const Ml = m(S, {
5266
5268
  height: t.spacing(1),
5267
5269
  borderRadius: t.spacing(0.5),
5268
5270
  background: `linear-gradient(to right, ${e.join()})`
5269
- })), Il = m(S, {
5271
+ })), Tl = m(S, {
5270
5272
  shouldForwardProp: (e) => e !== "color"
5271
5273
  })(({ color: e, theme: t }) => ({
5272
5274
  display: "block",
@@ -5280,7 +5282,7 @@ const Ml = m(S, {
5280
5282
  borderRadius: t.spacing(0, 0.5, 0.5, 0)
5281
5283
  }
5282
5284
  }));
5283
- function Tl({
5285
+ function Cl({
5284
5286
  labels: e = [],
5285
5287
  palette: t = [],
5286
5288
  max: i,
@@ -5289,17 +5291,17 @@ function Tl({
5289
5291
  const o = e.length ? [r, ...e] : [r, i];
5290
5292
  return /* @__PURE__ */ n(ie, { children: o.map((a, l) => {
5291
5293
  const d = l === 0 ? r : l === o.length - 1 ? i : `${a} - ${o[l + 1]}`;
5292
- return /* @__PURE__ */ n(ue, { title: d, children: /* @__PURE__ */ n(Il, { "data-testid": "step-discontinuous", color: t[l] }) }, l);
5294
+ return /* @__PURE__ */ n(ue, { title: d, children: /* @__PURE__ */ n(Tl, { "data-testid": "step-discontinuous", color: t[l] }) }, l);
5293
5295
  }) });
5294
5296
  }
5295
- const Cl = {
5296
- [Ie.CATEGORY]: dl,
5297
- [Ie.PROPORTION]: vl,
5298
- [Ie.ICON]: kl,
5297
+ const Al = {
5298
+ [Ie.CATEGORY]: ul,
5299
+ [Ie.PROPORTION]: xl,
5300
+ [Ie.ICON]: Sl,
5299
5301
  [Ie.BINS]: (e) => /* @__PURE__ */ n(en, { ...e, isContinuous: !1 }),
5300
5302
  [Ie.CONTINUOUS_RAMP]: (e) => /* @__PURE__ */ n(en, { ...e, isContinuous: !0 })
5301
5303
  };
5302
- function Al({ legend: e }) {
5304
+ function El({ legend: e }) {
5303
5305
  const t = se(), i = ce(t);
5304
5306
  return e.select || !e.type ? null : /* @__PURE__ */ v(H, { variant: "body2", color: "textSecondary", component: "p", children: [
5305
5307
  e.type,
@@ -5308,17 +5310,17 @@ function Al({ legend: e }) {
5308
5310
  "."
5309
5311
  ] });
5310
5312
  }
5311
- function El(e) {
5313
+ function Ll(e) {
5312
5314
  return e.type === Ie.PROPORTION ? "c4r.widgets.legend.subtitles.proportion" : e.type === Ie.ICON || e.customMarkers ? "c4r.widgets.legend.subtitles.icon" : e.isStrokeColor ? "c4r.widgets.legend.subtitles.strokeColor" : "c4r.widgets.legend.subtitles.color";
5313
5315
  }
5314
- function Ll({
5316
+ function Dl({
5315
5317
  layer: e,
5316
5318
  legend: t,
5317
5319
  customLegendTypes: i,
5318
5320
  onChangeSelection: r
5319
5321
  }) {
5320
5322
  var p;
5321
- const o = se(), a = ce(o), l = t.type, s = Cl[l] ?? i[l] ?? Al, u = ((p = t.select) == null ? void 0 : p.options) ?? [];
5323
+ const o = se(), a = ce(o), l = t.type, s = Al[l] ?? i[l] ?? El, u = ((p = t.select) == null ? void 0 : p.options) ?? [];
5322
5324
  return /* @__PURE__ */ v(S, { component: "li", "data-testid": "legend-layer-variable", px: 2, children: [
5323
5325
  t.attr ? /* @__PURE__ */ v(S, { pb: 1, children: [
5324
5326
  /* @__PURE__ */ n(
@@ -5328,7 +5330,7 @@ function Ll({
5328
5330
  variant: "overlineDelicate",
5329
5331
  color: "textSecondary",
5330
5332
  component: "p",
5331
- children: a.formatMessage({ id: El(t) })
5333
+ children: a.formatMessage({ id: Ll(t) })
5332
5334
  }
5333
5335
  ),
5334
5336
  /* @__PURE__ */ n(H, { variant: "caption", component: "p", children: t.attr })
@@ -5336,7 +5338,7 @@ function Ll({
5336
5338
  t.select ? /* @__PURE__ */ v(S, { pb: 1, children: [
5337
5339
  /* @__PURE__ */ n(H, { variant: "caption", weight: "medium", component: "p", children: t.select.label }),
5338
5340
  /* @__PURE__ */ n(
5339
- pi,
5341
+ gi,
5340
5342
  {
5341
5343
  "data-testid": "legend-layer-variable-select",
5342
5344
  name: "legend-select",
@@ -5355,19 +5357,19 @@ function Ll({
5355
5357
  }
5356
5358
  }
5357
5359
  },
5358
- children: u.map((c) => /* @__PURE__ */ n(Pe, { value: c.value, children: /* @__PURE__ */ n(gi, { primary: c.label }) }, c.value))
5360
+ children: u.map((c) => /* @__PURE__ */ n(Pe, { value: c.value, children: /* @__PURE__ */ n(hi, { primary: c.label }) }, c.value))
5359
5361
  }
5360
5362
  )
5361
5363
  ] }) : null,
5362
5364
  /* @__PURE__ */ n(s, { layer: e, legend: t })
5363
5365
  ] });
5364
5366
  }
5365
- const Dl = {};
5367
+ const $l = {};
5366
5368
  function Vn(e) {
5367
5369
  return e ? Array.isArray(e) ? e.every((t) => Vn(t)) : !e.select && !e.type : !0;
5368
5370
  }
5369
5371
  function tn({
5370
- customLegendTypes: e = Dl,
5372
+ customLegendTypes: e = $l,
5371
5373
  layer: t,
5372
5374
  onChangeCollapsed: i,
5373
5375
  onChangeOpacity: r,
@@ -5377,15 +5379,15 @@ function tn({
5377
5379
  minZoom: d = 0,
5378
5380
  currentZoom: s = 0
5379
5381
  }) {
5380
- const u = se(), p = ce(u), c = re(null), [y, g] = _(!1), f = t.id, w = t.title, h = t.visible ?? !0, b = t.switchable ?? !0, k = t.collapsed ?? !1, M = (t.collapsible ?? !0) && !Vn(t.legend), T = t.opacity ?? 1, x = t.showOpacityControl ?? !0, A = h && !k, C = A ? /* @__PURE__ */ n(fn, {}) : /* @__PURE__ */ n(mn, {}), O = (t == null ? void 0 : t.minZoom) !== void 0 || (t == null ? void 0 : t.maxZoom) !== void 0, L = t.minZoom ?? d, P = t.maxZoom ?? l, $ = O && (L > d || P < l), W = s < L || s > P, J = $l({
5382
+ const u = se(), p = ce(u), c = re(null), [y, g] = _(!1), f = t.id, w = t.title, h = t.visible ?? !0, b = t.switchable ?? !0, k = t.collapsed ?? !1, M = (t.collapsible ?? !0) && !Vn(t.legend), T = t.opacity ?? 1, x = t.showOpacityControl ?? !0, A = h && !k, C = A ? /* @__PURE__ */ n(fn, {}) : /* @__PURE__ */ n(mn, {}), O = (t == null ? void 0 : t.minZoom) !== void 0 || (t == null ? void 0 : t.maxZoom) !== void 0, L = t.minZoom ?? d, P = t.maxZoom ?? l, $ = O && (L > d || P < l), W = s < L || s > P, J = Pl({
5381
5383
  intl: p,
5382
5384
  minZoom: d,
5383
5385
  maxZoom: l,
5384
5386
  layerMinZoom: L,
5385
5387
  layerMaxZoom: P
5386
5388
  }), G = t.helperText ?? ($ ? J : ""), D = F(() => t.legend ? Array.isArray(t.legend) ? t.legend : [t.legend] : [], [t.legend]);
5387
- return t.legend ? /* @__PURE__ */ v(ll, { "data-testid": "legend-layer", "aria-label": w, children: [
5388
- /* @__PURE__ */ v(tl, { ref: c, children: [
5389
+ return t.legend ? /* @__PURE__ */ v(sl, { "data-testid": "legend-layer", "aria-label": w, children: [
5390
+ /* @__PURE__ */ v(nl, { ref: c, children: [
5389
5391
  M && /* @__PURE__ */ n(
5390
5392
  fe,
5391
5393
  {
@@ -5398,7 +5400,7 @@ function tn({
5398
5400
  children: C
5399
5401
  }
5400
5402
  ),
5401
- /* @__PURE__ */ v(sl, { children: [
5403
+ /* @__PURE__ */ v(cl, { children: [
5402
5404
  /* @__PURE__ */ n(Lt, { visible: h, title: w ?? "" }),
5403
5405
  $ && /* @__PURE__ */ n(
5404
5406
  ue,
@@ -5427,7 +5429,7 @@ function tn({
5427
5429
  )
5428
5430
  ] }),
5429
5431
  x && h && !k && /* @__PURE__ */ n(
5430
- cl,
5432
+ dl,
5431
5433
  {
5432
5434
  menuRef: c,
5433
5435
  open: y,
@@ -5451,7 +5453,7 @@ function tn({
5451
5453
  collapsed: h ? k : !1,
5452
5454
  visible: !h
5453
5455
  }),
5454
- children: h ? /* @__PURE__ */ n(Ci, {}) : /* @__PURE__ */ n(Ai, {})
5456
+ children: h ? /* @__PURE__ */ n(Ai, {}) : /* @__PURE__ */ n(Ei, {})
5455
5457
  }
5456
5458
  )
5457
5459
  }
@@ -5459,12 +5461,12 @@ function tn({
5459
5461
  ] }),
5460
5462
  /* @__PURE__ */ v(St, { unmountOnExit: !0, timeout: 100, in: A, children: [
5461
5463
  /* @__PURE__ */ n(
5462
- rl,
5464
+ ol,
5463
5465
  {
5464
5466
  "data-testid": "legend-layer-variable-list",
5465
5467
  opacity: W ? 0.5 : 1,
5466
5468
  children: D.map((N, I) => /* @__PURE__ */ n(
5467
- Ll,
5469
+ Dl,
5468
5470
  {
5469
5471
  legend: N,
5470
5472
  layer: t,
@@ -5488,7 +5490,7 @@ function tn({
5488
5490
  ] })
5489
5491
  ] }) : null;
5490
5492
  }
5491
- function $l({
5493
+ function Pl({
5492
5494
  intl: e,
5493
5495
  minZoom: t,
5494
5496
  maxZoom: i,
@@ -5500,11 +5502,11 @@ function $l({
5500
5502
  }), s = e.formatMessage({ id: "c4r.widgets.legend.zoomNote" }), u = o < i ? `${l} ${o}` : "", p = r > t ? `${d} ${r}` : "", c = [u, p].filter(Boolean).join(` ${a} `);
5501
5503
  return c ? `${s} ${c}` : "";
5502
5504
  }
5503
- const Pl = {}, ze = () => {
5504
- }, Ol = [];
5505
- function fs({
5506
- customLegendTypes: e = Pl,
5507
- layers: t = Ol,
5505
+ const Ol = {}, ze = () => {
5506
+ }, Wl = [];
5507
+ function ms({
5508
+ customLegendTypes: e = Ol,
5509
+ layers: t = Wl,
5508
5510
  collapsed: i = !1,
5509
5511
  onChangeCollapsed: r = ze,
5510
5512
  onChangeVisibility: o = ze,
@@ -5518,26 +5520,26 @@ function fs({
5518
5520
  isMobile: y,
5519
5521
  sx: g
5520
5522
  }) {
5521
- const f = se(), w = ce(f), h = /* @__PURE__ */ v(el, { collapsed: i, children: [
5523
+ const f = se(), w = ce(f), h = /* @__PURE__ */ v(tl, { collapsed: i, children: [
5522
5524
  /* @__PURE__ */ n(H, { variant: "caption", flexGrow: 1, children: s }),
5523
5525
  /* @__PURE__ */ n(
5524
5526
  ue,
5525
5527
  {
5526
5528
  title: w.formatMessage({ id: "c4r.widgets.legend.close" }),
5527
- children: /* @__PURE__ */ n(fe, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(Ei, {}) })
5529
+ children: /* @__PURE__ */ n(fe, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(Li, {}) })
5528
5530
  }
5529
5531
  )
5530
5532
  ] }), b = /* @__PURE__ */ n(
5531
5533
  ue,
5532
5534
  {
5533
5535
  title: w.formatMessage({ id: "c4r.widgets.legend.open" }),
5534
- children: /* @__PURE__ */ n(fe, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(Li, {}) })
5536
+ children: /* @__PURE__ */ n(fe, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(Di, {}) })
5535
5537
  }
5536
5538
  );
5537
- return /* @__PURE__ */ n(Qa, { sx: g, elevation: 3, collapsed: i || !!y, children: y ? /* @__PURE__ */ v(ie, { children: [
5539
+ return /* @__PURE__ */ n(el, { sx: g, elevation: 3, collapsed: i || !!y, children: y ? /* @__PURE__ */ v(ie, { children: [
5538
5540
  b,
5539
5541
  /* @__PURE__ */ v(
5540
- hi,
5542
+ fi,
5541
5543
  {
5542
5544
  anchor: "bottom",
5543
5545
  open: !i,
@@ -5596,31 +5598,31 @@ function nn({
5596
5598
  }
5597
5599
  ) }) : /* @__PURE__ */ n(S, { mt: -1 });
5598
5600
  }
5599
- function ms({
5601
+ function ys({
5600
5602
  title: e = "No data available",
5601
5603
  body: t = "There are no results for the combination of filters applied to your data. Try tweaking your filters, or zoom and pan the map to adjust the Map View.",
5602
5604
  severity: i = void 0,
5603
5605
  ...r
5604
5606
  }) {
5605
- return i ? /* @__PURE__ */ n($i, { title: e, severity: i, ...r, children: /* @__PURE__ */ n(nn, { children: t }) }) : /* @__PURE__ */ v(S, { ...r, children: [
5607
+ return i ? /* @__PURE__ */ n(Pi, { title: e, severity: i, ...r, children: /* @__PURE__ */ n(nn, { children: t }) }) : /* @__PURE__ */ v(S, { ...r, children: [
5606
5608
  e && /* @__PURE__ */ n(H, { variant: "body2", children: e }),
5607
5609
  /* @__PURE__ */ n(nn, { color: "textSecondary", children: t })
5608
5610
  ] });
5609
5611
  }
5610
- const Wl = m(S, {
5612
+ const Rl = m(S, {
5611
5613
  shouldForwardProp: (e) => e !== "margin"
5612
5614
  })(({ theme: e, margin: t }) => ({
5613
5615
  margin: 0,
5614
5616
  position: "relative",
5615
5617
  maxWidth: "100%",
5616
5618
  padding: t ?? e.spacing(2, 2.5)
5617
- })), Rl = m(mi)(({ theme: e }) => ({
5619
+ })), Fl = m(yi)(({ theme: e }) => ({
5618
5620
  position: "absolute",
5619
5621
  top: 0,
5620
5622
  left: 0,
5621
5623
  width: "100%",
5622
5624
  height: e.spacing(0.25)
5623
- })), Fl = m(ae, {
5625
+ })), Nl = m(ae, {
5624
5626
  shouldForwardProp: (e) => e !== "expanded"
5625
5627
  })(({ theme: e, expanded: t = !0 }) => ({
5626
5628
  display: "flex",
@@ -5630,7 +5632,7 @@ const Wl = m(S, {
5630
5632
  width: "100%",
5631
5633
  ...t ? { minHeight: e.spacing(3) } : { height: e.spacing(3) },
5632
5634
  padding: 0
5633
- })), Nl = m($e, {
5635
+ })), Bl = m($e, {
5634
5636
  shouldForwardProp: (e) => e !== "expandable"
5635
5637
  })(({ theme: e, expandable: t = !0 }) => ({
5636
5638
  flex: 1,
@@ -5655,7 +5657,7 @@ const Wl = m(S, {
5655
5657
  width: e.spacing(3),
5656
5658
  height: e.spacing(3),
5657
5659
  color: e.palette.text.secondary
5658
- }), Bl = m(fn)(({ theme: e }) => Gn({ theme: e })), _l = m(mn)(({ theme: e }) => Gn({ theme: e })), Hl = m(De, {
5660
+ }), _l = m(fn)(({ theme: e }) => Gn({ theme: e })), Hl = m(mn)(({ theme: e }) => Gn({ theme: e })), zl = m(De, {
5659
5661
  shouldForwardProp: (e) => e !== "expanded"
5660
5662
  })(({ expanded: e = !0 }) => ({
5661
5663
  wordBreak: "break-word",
@@ -5669,7 +5671,7 @@ const Wl = m(S, {
5669
5671
  whiteSpace: "nowrap",
5670
5672
  textOverflow: "ellipsis"
5671
5673
  }
5672
- })), zl = m(ae)(({ theme: e }) => ({
5674
+ })), jl = m(ae)(({ theme: e }) => ({
5673
5675
  display: "flex",
5674
5676
  alignItems: "center",
5675
5677
  gap: e.spacing(1),
@@ -5677,18 +5679,18 @@ const Wl = m(S, {
5677
5679
  marginLeft: e.spacing(1)
5678
5680
  })), rn = m(fe)(({ theme: e }) => ({
5679
5681
  color: e.palette.text.secondary
5680
- })), jl = m(kt)(({ theme: e }) => ({
5682
+ })), Yl = m(kt)(({ theme: e }) => ({
5681
5683
  ".MuiPaper-root": {
5682
5684
  marginTop: e.spacing(5),
5683
5685
  maxHeight: e.spacing(21),
5684
5686
  minWidth: e.spacing(16)
5685
5687
  }
5686
- })), on = [], Yl = /* @__PURE__ */ n(Di, {});
5687
- function ys({
5688
+ })), on = [], Vl = /* @__PURE__ */ n($i, {});
5689
+ function ws({
5688
5690
  title: e,
5689
5691
  actions: t = on,
5690
5692
  options: i = on,
5691
- optionsIcon: r = Yl,
5693
+ optionsIcon: r = Vl,
5692
5694
  children: o,
5693
5695
  contentProps: a,
5694
5696
  disabled: l = !1,
@@ -5700,7 +5702,7 @@ function ys({
5700
5702
  isLoading: y = !1,
5701
5703
  margin: g
5702
5704
  }) {
5703
- const f = ni(), [w, h] = _(!0), b = s !== void 0 && u !== void 0, k = d !== !1 ? b ? s : w : !0, M = b ? u : h, [T, x] = _(null), A = !!T, C = () => {
5705
+ const f = ii(), [w, h] = _(!0), b = s !== void 0 && u !== void 0, k = d !== !1 ? b ? s : w : !0, M = b ? u : h, [T, x] = _(null), A = !!T, C = () => {
5704
5706
  d && M(!k);
5705
5707
  }, O = (W) => x(W.currentTarget), L = () => x(null);
5706
5708
  function P(W) {
@@ -5716,20 +5718,20 @@ function ys({
5716
5718
  },
5717
5719
  W.id
5718
5720
  );
5719
- return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ v(Wl, { margin: g, component: "section", "aria-label": e, children: [
5720
- y ? /* @__PURE__ */ n(Rl, {}) : null,
5721
- /* @__PURE__ */ v(Fl, { container: !0, expanded: s, children: [
5721
+ return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ v(Rl, { margin: g, component: "section", "aria-label": e, children: [
5722
+ y ? /* @__PURE__ */ n(Fl, {}) : null,
5723
+ /* @__PURE__ */ v(Nl, { container: !0, expanded: s, children: [
5722
5724
  /* @__PURE__ */ n(
5723
- Nl,
5725
+ Bl,
5724
5726
  {
5725
5727
  expandable: d,
5726
- startIcon: d && /* @__PURE__ */ n(fi, { children: k ? /* @__PURE__ */ n(Bl, {}) : /* @__PURE__ */ n(_l, {}) }),
5728
+ startIcon: d && /* @__PURE__ */ n(mi, { children: k ? /* @__PURE__ */ n(_l, {}) : /* @__PURE__ */ n(Hl, {}) }),
5727
5729
  onClick: C,
5728
5730
  tabIndex: d ? 0 : -1,
5729
- children: /* @__PURE__ */ n(ue, { title: e, children: /* @__PURE__ */ n(Hl, { expanded: s, align: "left", variant: "subtitle1", children: e }) })
5731
+ children: /* @__PURE__ */ n(ue, { title: e, children: /* @__PURE__ */ n(zl, { expanded: s, align: "left", variant: "subtitle1", children: e }) })
5730
5732
  }
5731
5733
  ),
5732
- /* @__PURE__ */ v(zl, { item: !0, children: [
5734
+ /* @__PURE__ */ v(jl, { item: !0, children: [
5733
5735
  c,
5734
5736
  t.length > 0 && t.map((W) => W.tooltip ? /* @__PURE__ */ n(
5735
5737
  ue,
@@ -5753,7 +5755,7 @@ function ys({
5753
5755
  }
5754
5756
  ),
5755
5757
  /* @__PURE__ */ n(
5756
- jl,
5758
+ Yl,
5757
5759
  {
5758
5760
  id: "options-menu",
5759
5761
  elevation: 8,
@@ -5790,33 +5792,33 @@ function ys({
5790
5792
  ] });
5791
5793
  }
5792
5794
  export {
5793
- ns as BarWidgetUI,
5794
- is as CategoryWidgetUI,
5795
- us as ComparativeCategoryWidgetUI,
5796
- ps as ComparativeFormulaWidgetUI,
5797
- gs as ComparativePieWidgetUI,
5798
- Ua as FeatureSelectionUIDropdown,
5799
- Ka as FeatureSelectionUIGeometryChips,
5800
- za as FeatureSelectionUIToggleButton,
5801
- hs as FeatureSelectionWidgetUI,
5802
- rs as FormulaWidgetUI,
5795
+ is as BarWidgetUI,
5796
+ rs as CategoryWidgetUI,
5797
+ ps as ComparativeCategoryWidgetUI,
5798
+ gs as ComparativeFormulaWidgetUI,
5799
+ hs as ComparativePieWidgetUI,
5800
+ Xa as FeatureSelectionUIDropdown,
5801
+ Za as FeatureSelectionUIGeometryChips,
5802
+ ja as FeatureSelectionUIToggleButton,
5803
+ fs as FeatureSelectionWidgetUI,
5804
+ os as FormulaWidgetUI,
5803
5805
  Se as GroupDateTypes,
5804
- os as HistogramWidgetUI,
5806
+ as as HistogramWidgetUI,
5805
5807
  Ie as LEGEND_TYPES,
5806
- dl as LegendCategories,
5807
- kl as LegendIcon,
5808
- vl as LegendProportion,
5808
+ ul as LegendCategories,
5809
+ Sl as LegendIcon,
5810
+ xl as LegendProportion,
5809
5811
  en as LegendRamp,
5810
- fs as LegendWidgetUI,
5811
- ms as NoDataAlert,
5812
- as as PieWidgetUI,
5813
- ls as RangeWidgetUI,
5814
- ss as ScatterPlotWidgetUI,
5812
+ ms as LegendWidgetUI,
5813
+ ys as NoDataAlert,
5814
+ ls as PieWidgetUI,
5815
+ ss as RangeWidgetUI,
5816
+ cs as ScatterPlotWidgetUI,
5815
5817
  It as TIME_SERIES_CHART_TYPES,
5816
- cs as TableWidgetUI,
5817
- Lo as TimeSeriesProvider,
5818
- ds as TimeSeriesWidgetUI,
5819
- ys as WrapperWidgetUI,
5818
+ ds as TableWidgetUI,
5819
+ Do as TimeSeriesProvider,
5820
+ us as TimeSeriesWidgetUI,
5821
+ ws as WrapperWidgetUI,
5820
5822
  Et as useTimeSeriesContext,
5821
- Do as useTimeSeriesInteractivity
5823
+ $o as useTimeSeriesInteractivity
5822
5824
  };