@carto/meridian-ds 1.2.1-alpha.1 → 1.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/dist/{Alert-FLV5jJYV.cjs → Alert-C0xmyi3Z.cjs} +1 -1
  3. package/dist/{Alert-DDz3-_16.js → Alert-DbN79ENW.js} +1 -1
  4. package/dist/{MenuItem-BTaTqbU8.js → MenuItem-B3IDLBB1.js} +1 -1
  5. package/dist/{MenuItem-CxZTr9gk.cjs → MenuItem-DUV2TC2p.cjs} +1 -1
  6. package/dist/{TablePaginationActions-GazQOp5y.js → TablePaginationActions-BmvmVQd9.js} +183 -149
  7. package/dist/TablePaginationActions-Bv-6vZ7z.cjs +9 -0
  8. package/dist/components/index.cjs +5 -5
  9. package/dist/components/index.js +4302 -3469
  10. package/dist/custom-icons/index.cjs +1 -1
  11. package/dist/custom-icons/index.js +519 -415
  12. package/dist/theme/index.cjs +1 -1
  13. package/dist/theme/index.js +176 -71
  14. package/dist/types/components/atoms/Button.d.ts +13 -0
  15. package/dist/types/components/atoms/Button.d.ts.map +1 -1
  16. package/dist/types/components/atoms/IconButton.d.ts +28 -0
  17. package/dist/types/components/atoms/IconButton.d.ts.map +1 -0
  18. package/dist/types/components/atoms/index.d.ts +2 -0
  19. package/dist/types/components/atoms/index.d.ts.map +1 -1
  20. package/dist/types/components/molecules/Snackbar.d.ts +11 -0
  21. package/dist/types/components/molecules/Snackbar.d.ts.map +1 -0
  22. package/dist/types/components/molecules/index.d.ts +2 -0
  23. package/dist/types/components/molecules/index.d.ts.map +1 -1
  24. package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -1
  25. package/dist/types/components/organisms/Dialog/Dialog.d.ts +4 -0
  26. package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -0
  27. package/dist/types/components/organisms/Dialog/DialogAlert.d.ts +4 -0
  28. package/dist/types/components/organisms/Dialog/DialogAlert.d.ts.map +1 -0
  29. package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts +4 -0
  30. package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -0
  31. package/dist/types/components/organisms/Dialog/DialogContent.d.ts +7 -0
  32. package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -0
  33. package/dist/types/components/organisms/Dialog/DialogFooter.d.ts +7 -0
  34. package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -0
  35. package/dist/types/components/organisms/Dialog/DialogHeader.d.ts +4 -0
  36. package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -0
  37. package/dist/types/components/organisms/Dialog/DialogPaper.d.ts +32 -0
  38. package/dist/types/components/organisms/Dialog/DialogPaper.d.ts.map +1 -0
  39. package/dist/types/components/organisms/Dialog/DialogStepper.d.ts +3 -0
  40. package/dist/types/components/organisms/Dialog/DialogStepper.d.ts.map +1 -0
  41. package/dist/types/components/organisms/Dialog/index.d.ts +9 -0
  42. package/dist/types/components/organisms/Dialog/index.d.ts.map +1 -0
  43. package/dist/types/components/organisms/Dialog/types.d.ts +69 -0
  44. package/dist/types/components/organisms/Dialog/types.d.ts.map +1 -0
  45. package/dist/types/components/organisms/index.d.ts +2 -0
  46. package/dist/types/components/organisms/index.d.ts.map +1 -1
  47. package/dist/types/custom-icons/Comments.d.ts +4 -0
  48. package/dist/types/custom-icons/Comments.d.ts.map +1 -0
  49. package/dist/types/custom-icons/Rain.d.ts.map +1 -1
  50. package/dist/types/custom-icons/SelectDestination.d.ts +4 -0
  51. package/dist/types/custom-icons/SelectDestination.d.ts.map +1 -0
  52. package/dist/types/custom-icons/index.d.ts +3 -0
  53. package/dist/types/custom-icons/index.d.ts.map +1 -1
  54. package/dist/types/localization/en.d.ts +11 -0
  55. package/dist/types/localization/en.d.ts.map +1 -1
  56. package/dist/types/localization/es.d.ts +11 -0
  57. package/dist/types/localization/es.d.ts.map +1 -1
  58. package/dist/types/localization/id.d.ts +11 -0
  59. package/dist/types/localization/id.d.ts.map +1 -1
  60. package/dist/types/localization/index.d.ts +33 -0
  61. package/dist/types/localization/index.d.ts.map +1 -1
  62. package/dist/types/theme/sections/components/buttons.d.ts.map +1 -1
  63. package/dist/types/theme/theme-constants.d.ts +1 -0
  64. package/dist/types/theme/theme-constants.d.ts.map +1 -1
  65. package/dist/types/theme/types.d.ts +10 -0
  66. package/dist/types/theme/types.d.ts.map +1 -1
  67. package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
  68. package/dist/types/widgets/FeatureSelectionWidgetUI/FeatureSelectionUIGeometryChips.d.ts.map +1 -1
  69. package/dist/widgets/index.cjs +8 -8
  70. package/dist/widgets/index.js +508 -508
  71. package/package.json +3 -2
  72. package/dist/TablePaginationActions-DyJEKn3l.cjs +0 -9
@@ -1,14 +1,14 @@
1
1
  import { jsxs as w, Fragment as ie, jsx as n } from "react/jsx-runtime";
2
- import Jn, { useMemo as F, useState as _, useEffect as U, useCallback as oe, useRef as re, createContext as Qn, useContext as ei, useLayoutEffect as an, createRef as ti } from "react";
3
- import { useTheme as le, styled as m, Box as S, Skeleton as H, Grid as ae, Link as ye, darken as yt, Button as Pe, Divider as vt, TextField as ot, InputAdornment as wt, Checkbox as ln, Tooltip as ue, IconButton as fe, debounce as ni, Slider as xt, TableCell as bt, Table as sn, TableHead as cn, TableRow as Je, TableBody as dn, TableContainer as un, TableSortLabel as ii, TablePagination as ri, Menu as kt, MenuItem as $e, SvgIcon as je, lighten as pn, Typography as De, ClickAwayListener as oi, ToggleButton as ai, capitalize as gn, ListItem as li, Chip as si, List as ci, Paper as hn, Popover as di, Select as ui, ListItemText as pi, Collapse as St, Drawer as gi, Icon as hi, LinearProgress as fi } from "@mui/material";
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 H, Grid as ae, Link as ye, darken as yt, Button as Pe, Divider as vt, TextField as ot, InputAdornment as wt, 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 $e, 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";
4
4
  import { useIntl as se } from "react-intl";
5
- import { t as mi, u as ce, T as z, S as B, B as Mt, a as yi, b as pt } from "../TablePaginationActions-GazQOp5y.js";
6
- import vi from "echarts-for-react";
7
- import { FixedSizeList as wi } from "react-window";
8
- import { S as Qe, a as xi } from "../SwatchSquare-DAne_6Gi.js";
9
- import { ChevronLeft as bi, ChevronRight as ki, KeyboardArrowDown as Si, ErrorOutline as Mi, Cancel as Ii, VisibilityOutlined as Ci, VisibilityOffOutlined as Ti, ExpandLess as fn, ExpandMore as mn, Close as Ai, LayersOutlined as Ei, MoreVert as Li } from "@mui/icons-material";
10
- import { A as Di } from "../Alert-DDz3-_16.js";
11
- import { c as yn, a as Pi, b as vn } from "../paletteUtils-BEwZhrLg.js";
5
+ import { t as yi, u as ce, T as z, S as B, B as Mt, a as vi, b as pt } from "../TablePaginationActions-BmvmVQd9.js";
6
+ import wi 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 Ci, VisibilityOutlined as Ti, 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 Pi } from "../Alert-DbN79ENW.js";
11
+ import { c as yn, a as $i, b as vn } from "../paletteUtils-BEwZhrLg.js";
12
12
  function wn() {
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 wn() {
16
16
  function ge(e) {
17
17
  return !e || typeof e != "object" ? e : `${e.prefix ?? ""}${e.value}${e.suffix ?? ""}`;
18
18
  }
19
- const $i = [], Oi = {}, Ot = (e) => e;
20
- function Wi(e, t) {
19
+ const Oi = [], Wi = {}, Ot = (e) => e;
20
+ function Ri(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 Wi(e, t) {
33
33
  return `<div style="margin-top: 4px">${String(d)}${c}</div>`;
34
34
  }).join(" "), r;
35
35
  }
36
- function Ri({
36
+ function Fi({
37
37
  height: e,
38
- labels: t = Oi,
38
+ labels: t = Wi,
39
39
  yAxisData: i,
40
- selectedBars: r = $i,
40
+ selectedBars: r = Oi,
41
41
  series: o,
42
42
  colors: a,
43
43
  tooltip: l = !0,
44
- tooltipFormatter: d = Wi,
44
+ tooltipFormatter: d = Ri,
45
45
  xAxisFormatter: s = Ot,
46
46
  yAxisFormatter: u = Ot,
47
47
  onSelectedBarsChange: p,
@@ -70,16 +70,16 @@ function Ri({
70
70
  labels: t,
71
71
  height: e ?? parseInt(v.spacing(22)),
72
72
  // parseInt removes 'px' from the string,
73
- selectedBars: Fi(r),
73
+ selectedBars: Ni(r),
74
74
  yAxisData: b,
75
75
  colors: k,
76
76
  series: h
77
77
  };
78
78
  }
79
- function Fi(e) {
79
+ function Ni(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 Ni = function e(t, i) {
82
+ var Bi = 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 Ni = function e(t, i) {
104
104
  }
105
105
  return t !== t && i !== i;
106
106
  };
107
- const Le = /* @__PURE__ */ mi(Ni);
108
- class We extends vi {
107
+ const Le = /* @__PURE__ */ yi(Bi);
108
+ class We extends wi {
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
- })), Bi = m(H)(({ theme: e }) => ({
182
+ })), _i = m(H)(({ theme: e }) => ({
183
183
  backgroundColor: e.palette.common.white
184
184
  })), Rt = m(H)(({ theme: e }) => ({
185
185
  backgroundColor: e.palette.grey[100]
186
186
  }));
187
- function _i({ height: e }) {
187
+ function zi({ height: e }) {
188
188
  return /* @__PURE__ */ w(ie, { children: [
189
189
  /* @__PURE__ */ n(S, { mb: 2, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
190
190
  /* @__PURE__ */ w(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 = wn(), Hi = m(ae)(({ theme: e }) => ({
205
+ const Hi = wn(), ji = 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 = wn(), Hi = m(ae)(({ theme: e }) => ({
210
210
  "& .MuiTypography-caption": {
211
211
  color: e.palette.text.secondary
212
212
  }
213
- })), ji = m(ye)(({ theme: e }) => ({
213
+ })), Yi = m(ye)(({ theme: e }) => ({
214
214
  ...e.typography.caption,
215
215
  cursor: "pointer"
216
216
  }));
217
- function ts(e) {
217
+ function ns(e) {
218
218
  const {
219
219
  yAxisData: t,
220
220
  xAxisData: i,
@@ -232,7 +232,7 @@ function ts(e) {
232
232
  filterable: f,
233
233
  animation: v,
234
234
  isLoading: h
235
- } = Ri(e), b = r.length > 1, k = le(), M = se(), C = ce(M), { showSkeleton: x } = ke(!!h), A = F(
235
+ } = Fi(e), b = r.length > 1, k = le(), M = se(), C = ce(M), { showSkeleton: x } = ke(!!h), A = F(
236
236
  () => ({
237
237
  show: l,
238
238
  trigger: "axis",
@@ -326,7 +326,7 @@ function ts(e) {
326
326
  };
327
327
  }),
328
328
  ...y && { stack: "total" },
329
- ...!zi && {
329
+ ...!Hi && {
330
330
  emphasis: {
331
331
  focus: "series",
332
332
  itemStyle: {
@@ -406,14 +406,14 @@ function ts(e) {
406
406
  } : {},
407
407
  [f, E]
408
408
  );
409
- return x ? /* @__PURE__ */ n(_i, { height: g }) : /* @__PURE__ */ w("div", { children: [
410
- a && /* @__PURE__ */ w(Hi, { container: !0, children: [
409
+ return x ? /* @__PURE__ */ n(zi, { height: g }) : /* @__PURE__ */ w("div", { children: [
410
+ a && /* @__PURE__ */ w(ji, { container: !0, children: [
411
411
  /* @__PURE__ */ n(z, { variant: "caption", children: o.length > 0 ? C.formatMessage(
412
412
  { id: "c4r.widgets.bar.selectedItems" },
413
413
  { items: o.length }
414
414
  ) : C.formatMessage({ id: "c4r.widgets.bar.all" }) }),
415
415
  o && o.length > 0 && /* @__PURE__ */ n(
416
- ji,
416
+ Yi,
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
- ), Yi = m(ae)(({ theme: e }) => ({
492
+ ), Vi = 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
- })), Vi = m(ae, {
506
+ })), Gi = 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
- })), Gi = m(z)(({ theme: e }) => ({
512
+ })), Ui = m(z)(({ 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
- })), Ui = m(S)(({ theme: e }) => ({
521
+ })), qi = m(S)(({ theme: e }) => ({
522
522
  ...e.typography.body2
523
523
  })), Bt = m(Pe)(({ 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(H)(({ theme: e }) => ({
536
+ })), Xi = m(H)(({ theme: e }) => ({
537
537
  marginTop: e.spacing(1.25),
538
538
  marginBottom: e.spacing(1.75)
539
- })), Xi = (e) => e % 2 === 1, Mn = () => /* @__PURE__ */ w(ie, { children: [
539
+ })), Ki = (e) => e % 2 === 1, Mn = () => /* @__PURE__ */ w(ie, { children: [
540
540
  /* @__PURE__ */ n(H, { width: 48, height: 8 }),
541
541
  /* @__PURE__ */ n(kn, { container: !0, mt: 3, children: [...Array(6)].map((e, t) => /* @__PURE__ */ w(Sn, { container: !0, spacing: 1, children: [
542
542
  /* @__PURE__ */ w(ae, { container: !0, item: !0, direction: "row", justifyContent: "space-between", children: [
543
- /* @__PURE__ */ n(H, { width: Xi(t) ? 72 : 48, height: 8 }),
543
+ /* @__PURE__ */ n(H, { width: Ki(t) ? 72 : 48, height: 8 }),
544
544
  /* @__PURE__ */ n(H, { width: 48, height: 8 })
545
545
  ] }),
546
- /* @__PURE__ */ n(qi, { height: 4, width: "100%" })
546
+ /* @__PURE__ */ n(Xi, { 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 Ki({
571
+ function Zi({
572
572
  start: e,
573
573
  end: t,
574
574
  duration: i,
@@ -596,17 +596,17 @@ function Ki({
596
596
  };
597
597
  o.current = requestAnimationFrame(y);
598
598
  }
599
- const Zi = [], Ji = {}, Qi = (e) => e, ct = () => {
600
- }, er = (e) => e.reduce((t, i) => t + (i.value ?? 0), 0);
601
- function ns({
599
+ const Ji = [], Qi = {}, er = (e) => e, ct = () => {
600
+ }, tr = (e) => e.reduce((t, i) => t + (i.value ?? 0), 0);
601
+ function is({
602
602
  data: e,
603
- formatter: t = Qi,
604
- labels: i = Ji,
603
+ formatter: t = er,
604
+ labels: i = Qi,
605
605
  maxItems: r = 5,
606
606
  order: o = Ce.RANKING,
607
- selectedCategories: a = Zi,
607
+ selectedCategories: a = Ji,
608
608
  onSelectedCategoriesChange: l = ct,
609
- onMaxItemsOverflow: d = er,
609
+ onMaxItemsOverflow: d = tr,
610
610
  animation: s = !0,
611
611
  filterable: u = !0,
612
612
  searchable: p = !0,
@@ -728,7 +728,7 @@ function ns({
728
728
  J && (G.current = J);
729
729
  }, [J]), U(() => {
730
730
  if (s)
731
- return Ki({
731
+ return Zi({
732
732
  start: (G.current || []).map((D) => ({
733
733
  ...D,
734
734
  value: D.value ?? 0
@@ -756,9 +756,9 @@ function ns({
756
756
  U(() => (lt(), window.addEventListener("resize", lt), () => {
757
757
  window.removeEventListener("resize", lt);
758
758
  }), []);
759
- const Kn = (st) => {
759
+ const Zn = (st) => {
760
760
  st.key === "Enter" && Z();
761
- }, Zn = !b && a.length > 0 && !a.includes(D.name);
761
+ }, Jn = !b && a.length > 0 && !a.includes(D.name);
762
762
  return /* @__PURE__ */ w(
763
763
  Sn,
764
764
  {
@@ -766,9 +766,9 @@ function ns({
766
766
  direction: "row",
767
767
  spacing: 1,
768
768
  onClick: u ? Z : ct,
769
- onKeyDown: u ? Kn : ct,
769
+ onKeyDown: u ? Zn : ct,
770
770
  selectable: u,
771
- unselected: Zn,
771
+ unselected: Jn,
772
772
  name: D.name === Me ? Me : "",
773
773
  tabIndex: u ? 0 : -1,
774
774
  children: [
@@ -779,7 +779,7 @@ function ns({
779
779
  tabIndex: -1
780
780
  }
781
781
  ) }),
782
- /* @__PURE__ */ w(Vi, { container: !0, item: !0, xs: !0, isSelectable: b, children: [
782
+ /* @__PURE__ */ w(Gi, { container: !0, item: !0, xs: !0, isSelectable: b, children: [
783
783
  /* @__PURE__ */ w(
784
784
  ae,
785
785
  {
@@ -794,7 +794,7 @@ function ns({
794
794
  {
795
795
  title: Dt(D.name),
796
796
  disableHoverListener: !xe,
797
- children: /* @__PURE__ */ n(Gi, { variant: "body2", noWrap: !0, ref: be, children: Dt(D.name) })
797
+ children: /* @__PURE__ */ n(Ui, { variant: "body2", noWrap: !0, ref: be, children: Dt(D.name) })
798
798
  }
799
799
  ),
800
800
  typeof Q == "object" && Q !== null ? /* @__PURE__ */ w("span", { children: [
@@ -805,7 +805,7 @@ function ns({
805
805
  ]
806
806
  }
807
807
  ),
808
- /* @__PURE__ */ n(Yi, { className: "progressbar", item: !0, children: /* @__PURE__ */ n("div", { style: { width: Un(D.value ?? 0) } }) })
808
+ /* @__PURE__ */ n(Vi, { className: "progressbar", item: !0, children: /* @__PURE__ */ n("div", { style: { width: Un(D.value ?? 0) } }) })
809
809
  ] })
810
810
  ]
811
811
  }
@@ -824,8 +824,8 @@ function ns({
824
824
  onCategoryClick: () => b ? ee(Q.name) : q(Q.name)
825
825
  }
826
826
  ) }) : null;
827
- };
828
- return /* @__PURE__ */ w(Ui, { children: [
827
+ }, Kn = () => b ? 320 : x.length > 0 ? x.length * 38 : (r + 1) * 38;
828
+ return /* @__PURE__ */ w(qi, { children: [
829
829
  u && g.length > 0 && /* @__PURE__ */ w(Nt, { container: !0, children: [
830
830
  /* @__PURE__ */ n(z, { variant: "caption", children: a.length > 0 ? I.formatMessage(
831
831
  { id: "c4r.widgets.category.selectedItems" },
@@ -901,9 +901,9 @@ function ns({
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
- wi,
904
+ xi,
905
905
  {
906
- height: b ? y.spacingValue * 40 : (r + 1) * y.spacingValue * 4.75,
906
+ height: Kn(),
907
907
  width: "100%",
908
908
  itemCount: L.length,
909
909
  itemSize: y.spacingValue * 4.5,
@@ -943,14 +943,14 @@ function ns({
943
943
  ) }) : null
944
944
  ] });
945
945
  }
946
- const Cn = () => /* @__PURE__ */ n(S, { pt: 0.5, children: /* @__PURE__ */ n(H, { height: 24, width: 120 }) }), tr = m("span")(() => ({
946
+ const Cn = () => /* @__PURE__ */ n(S, { pt: 0.5, children: /* @__PURE__ */ n(H, { height: 24, width: 120 }) }), nr = m("span")(() => ({
947
947
  marginRight: "2px"
948
- })), nr = m("span")(() => ({
948
+ })), ir = m("span")(() => ({
949
949
  marginLeft: "2px"
950
- })), Ge = "-", ir = (e) => e;
951
- function is({
950
+ })), Ge = "-", rr = (e) => e;
951
+ function rs({
952
952
  data: e = Ge,
953
- formatter: t = ir,
953
+ formatter: t = rr,
954
954
  animation: i = !0,
955
955
  isLoading: r = !1
956
956
  }) {
@@ -974,9 +974,9 @@ function is({
974
974
  }), [i, e, a]);
975
975
  const p = t(o), c = typeof p == "object" && p !== null, y = p === Ge;
976
976
  return u ? /* @__PURE__ */ n(Cn, {}) : c ? /* @__PURE__ */ w(z, { variant: "h5", component: "div", weight: "medium", children: [
977
- /* @__PURE__ */ n(tr, { children: p.prefix }),
977
+ /* @__PURE__ */ n(nr, { children: p.prefix }),
978
978
  p.value,
979
- /* @__PURE__ */ n(nr, { children: p.suffix })
979
+ /* @__PURE__ */ n(ir, { children: p.suffix })
980
980
  ] }) : /* @__PURE__ */ n(
981
981
  z,
982
982
  {
@@ -993,7 +993,7 @@ function is({
993
993
  }
994
994
  const _t = {};
995
995
  let Ne = null;
996
- function rr({
996
+ function or({
997
997
  data: e,
998
998
  filterable: t,
999
999
  selectedBars: i,
@@ -1075,7 +1075,7 @@ function dt(e, t, i) {
1075
1075
  _t[t] && (e != null && e.handler) && e.off(t, i);
1076
1076
  };
1077
1077
  }
1078
- function or({ height: e }) {
1078
+ function ar({ height: e }) {
1079
1079
  return /* @__PURE__ */ w(ie, { children: [
1080
1080
  /* @__PURE__ */ n(S, { mb: 2, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
1081
1081
  /* @__PURE__ */ w(bn, { style: { height: e ?? at }, children: [
@@ -1094,7 +1094,7 @@ function or({ height: e }) {
1094
1094
  ] })
1095
1095
  ] });
1096
1096
  }
1097
- const ar = wn(), lr = m(ae)(({ theme: e }) => ({
1097
+ const lr = wn(), sr = m(ae)(({ theme: e }) => ({
1098
1098
  marginBottom: e.spacing(2),
1099
1099
  flexDirection: "row",
1100
1100
  justifyContent: "space-between",
@@ -1102,12 +1102,12 @@ const ar = wn(), lr = m(ae)(({ theme: e }) => ({
1102
1102
  "& .MuiTypography-caption": {
1103
1103
  color: e.palette.text.secondary
1104
1104
  }
1105
- })), sr = m(ye)(({ theme: e }) => ({
1105
+ })), cr = m(ye)(({ theme: e }) => ({
1106
1106
  ...e.typography.caption,
1107
1107
  cursor: "pointer"
1108
- })), cr = [], dr = () => {
1108
+ })), dr = [], ur = () => {
1109
1109
  }, et = (e) => e;
1110
- function ur(e, t = et, i = et) {
1110
+ function pr(e, t = et, i = et) {
1111
1111
  if (!e)
1112
1112
  return null;
1113
1113
  if (Array.isArray(e) && e.length === 0)
@@ -1118,7 +1118,7 @@ function ur(e, t = et, i = et) {
1118
1118
  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>`;
1119
1119
  return `${c} <div style="margin-top: 4px">${String(r)}${y}</div>`;
1120
1120
  }
1121
- function rs({
1121
+ function os({
1122
1122
  data: e,
1123
1123
  ticks: t,
1124
1124
  min: i,
@@ -1126,19 +1126,19 @@ function rs({
1126
1126
  xAxisFormatter: o = et,
1127
1127
  yAxisFormatter: a = et,
1128
1128
  yAxisType: l = "dense",
1129
- selectedBars: d = cr,
1130
- onSelectedBarsChange: s = dr,
1129
+ selectedBars: d = dr,
1130
+ onSelectedBarsChange: s = ur,
1131
1131
  tooltip: u = !0,
1132
- tooltipFormatter: p = ur,
1132
+ tooltipFormatter: p = pr,
1133
1133
  animation: c = !0,
1134
1134
  filterable: y = !0,
1135
1135
  height: g = 200,
1136
1136
  isLoading: f
1137
1137
  }) {
1138
1138
  const v = se(), h = le(), b = ce(v), { showSkeleton: k } = ke(!!f), M = !!y && !!s, [C, x] = _(), A = (I) => x(I), T = F(
1139
- () => hr(e, t, i, r),
1139
+ () => fr(e, t, i, r),
1140
1140
  [e, t, i, r]
1141
- ), { onEvents: O, markAreaOptions: L } = rr({
1141
+ ), { onEvents: O, markAreaOptions: L } = or({
1142
1142
  data: T,
1143
1143
  filterable: M,
1144
1144
  selectedBars: d,
@@ -1188,7 +1188,7 @@ function rs({
1188
1188
  padding: [B * 0.5, B * 0.5, 0, B * 0.5],
1189
1189
  formatter: (I) => {
1190
1190
  const R = ge(o(I));
1191
- return I === i ? pr(R) : I === r ? gr(R) : R;
1191
+ return I === i ? gr(R) : I === r ? hr(R) : R;
1192
1192
  },
1193
1193
  color: h.palette.black[60]
1194
1194
  }
@@ -1262,7 +1262,7 @@ function rs({
1262
1262
  height: pe
1263
1263
  },
1264
1264
  style: { fill: K },
1265
- ...!ar && {
1265
+ ...!lr && {
1266
1266
  emphasis: {
1267
1267
  style: {
1268
1268
  fill: yt(K, 0.25)
@@ -1309,8 +1309,8 @@ function rs({
1309
1309
  ), N = (I) => {
1310
1310
  I.key === "Enter" && s([]);
1311
1311
  };
1312
- return k ? /* @__PURE__ */ n(or, { height: g }) : /* @__PURE__ */ w("div", { children: [
1313
- M && /* @__PURE__ */ w(lr, { container: !0, children: [
1312
+ return k ? /* @__PURE__ */ n(ar, { height: g }) : /* @__PURE__ */ w("div", { children: [
1313
+ M && /* @__PURE__ */ w(sr, { container: !0, children: [
1314
1314
  /* @__PURE__ */ n(z, { variant: "caption", weight: "strong", children: d.length > 0 ? b.formatMessage(
1315
1315
  { id: "c4r.widgets.histogram.selectedItems" },
1316
1316
  {
@@ -1320,7 +1320,7 @@ function rs({
1320
1320
  }
1321
1321
  ) : b.formatMessage({ id: "c4r.widgets.histogram.all" }) }),
1322
1322
  d.length > 0 && /* @__PURE__ */ n(
1323
- sr,
1323
+ cr,
1324
1324
  {
1325
1325
  onClick: () => s([]),
1326
1326
  onKeyDown: N,
@@ -1342,14 +1342,14 @@ function rs({
1342
1342
  )
1343
1343
  ] });
1344
1344
  }
1345
- function pr(e) {
1345
+ function gr(e) {
1346
1346
  return `${Array(String(e).length).fill(" ").join("")}${e}`;
1347
1347
  }
1348
- function gr(e) {
1348
+ function hr(e) {
1349
1349
  const t = Array(String(e).length).fill(" ").join("");
1350
1350
  return `${e}${t}`;
1351
1351
  }
1352
- function hr(e, t, i, r) {
1352
+ function fr(e, t, i, r) {
1353
1353
  return e.map(
1354
1354
  (o, a) => [
1355
1355
  a === 0 ? i : t[a - 1],
@@ -1358,7 +1358,7 @@ function hr(e, t, i, r) {
1358
1358
  ]
1359
1359
  );
1360
1360
  }
1361
- function fr(e, t, i, r) {
1361
+ function mr(e, t, i, r) {
1362
1362
  const o = le(), a = F(() => t === Ce.RANKING ? e.slice().sort((s, u) => (u.value ?? 0) - (s.value ?? 0)) : e, [e, t]), l = F(() => {
1363
1363
  const s = [];
1364
1364
  let u = 0;
@@ -1386,27 +1386,27 @@ function fr(e, t, i, r) {
1386
1386
  });
1387
1387
  }, [l, r, o]);
1388
1388
  }
1389
- const mr = m(S)(({ theme: e }) => ({
1389
+ const yr = m(S)(({ theme: e }) => ({
1390
1390
  zIndex: 1,
1391
1391
  display: "flex",
1392
1392
  flexDirection: "column",
1393
1393
  alignItems: "center",
1394
1394
  justifyContent: "center",
1395
1395
  paddingBottom: e.spacing(1)
1396
- })), yr = m(S)(({ theme: e }) => ({
1396
+ })), vr = m(S)(({ theme: e }) => ({
1397
1397
  display: "flex",
1398
1398
  alignItems: "center",
1399
1399
  gap: e.spacing(1),
1400
1400
  maxWidth: "140px",
1401
1401
  textTransform: "uppercase"
1402
- })), vr = m(S)(({ theme: e }) => ({
1402
+ })), wr = m(S)(({ theme: e }) => ({
1403
1403
  display: "inline-block",
1404
1404
  borderRadius: e.spacing(0.5),
1405
1405
  width: e.spacing(1),
1406
1406
  minWidth: e.spacing(1),
1407
1407
  height: e.spacing(1)
1408
1408
  }));
1409
- function wr({
1409
+ function xr({
1410
1410
  data: e,
1411
1411
  selectedCategories: t,
1412
1412
  formatter: i
@@ -1418,13 +1418,13 @@ function wr({
1418
1418
  t.length > 0 ? u = e.filter(
1419
1419
  (f) => t.includes(f.name)
1420
1420
  ) : u = e;
1421
- const p = xr(u), c = u.find((f) => f === p);
1421
+ const p = br(u), c = u.find((f) => f === p);
1422
1422
  if (!c)
1423
1423
  return null;
1424
1424
  let y = 0;
1425
1425
  for (const f of e)
1426
1426
  y += f.value ?? 0;
1427
- const g = br(
1427
+ const g = kr(
1428
1428
  c.value ?? 0,
1429
1429
  y,
1430
1430
  i
@@ -1435,50 +1435,50 @@ function wr({
1435
1435
  a && o(a);
1436
1436
  }, [a, o]);
1437
1437
  const { name: l, percentage: d, color: s } = r ?? {};
1438
- return r ? /* @__PURE__ */ w(mr, { children: [
1438
+ return r ? /* @__PURE__ */ w(yr, { children: [
1439
1439
  /* @__PURE__ */ n(z, { variant: "h5", children: d }),
1440
- /* @__PURE__ */ w(yr, { children: [
1441
- /* @__PURE__ */ n(vr, { bgcolor: s, component: "span" }),
1440
+ /* @__PURE__ */ w(vr, { children: [
1441
+ /* @__PURE__ */ n(wr, { bgcolor: s, component: "span" }),
1442
1442
  /* @__PURE__ */ n(z, { component: "span", variant: "body2", noWrap: !0, children: l })
1443
1443
  ] })
1444
1444
  ] }) : null;
1445
1445
  }
1446
- function xr(e) {
1446
+ function br(e) {
1447
1447
  const t = e.filter(
1448
1448
  (i) => i.name !== Oe
1449
1449
  );
1450
1450
  return t.length === 0 ? e[0] : t.reduce((i, r) => (r.value ?? 0) > (i.value ?? 0) ? r : i);
1451
1451
  }
1452
- function br(e, t, i) {
1452
+ function kr(e, t, i) {
1453
1453
  let r = 0;
1454
1454
  return t !== 0 && (r = e / t * 100), i ? i(r) : `${r}%`;
1455
1455
  }
1456
- const zt = 32, kr = m(S)(({ theme: e }) => ({
1456
+ const zt = 32, Sr = m(S)(({ theme: e }) => ({
1457
1457
  display: "flex",
1458
1458
  alignItems: "center",
1459
1459
  justifyContent: "center",
1460
1460
  marginTop: e.spacing(0.5)
1461
- })), Sr = m("div")(() => ({
1461
+ })), Mr = m("div")(() => ({
1462
1462
  display: "flex",
1463
1463
  alignItems: "center",
1464
1464
  justifyContent: "center",
1465
1465
  position: "relative"
1466
- })), Mr = m(Bi)(() => ({
1466
+ })), Ir = m(_i)(() => ({
1467
1467
  position: "absolute",
1468
1468
  zIndex: 1
1469
- })), Ir = m("div")(({ theme: e }) => ({
1469
+ })), Cr = m("div")(({ theme: e }) => ({
1470
1470
  display: "flex",
1471
1471
  flexDirection: "column",
1472
1472
  alignItems: "center",
1473
1473
  gap: e.spacing(1),
1474
1474
  position: "absolute",
1475
1475
  zIndex: 2
1476
- })), Cr = m(S)(({ theme: e }) => ({
1476
+ })), Tr = m(S)(({ theme: e }) => ({
1477
1477
  display: "flex",
1478
1478
  alignItems: "center",
1479
1479
  gap: e.spacing(2),
1480
1480
  height: e.spacing(5)
1481
- })), Tr = m("div")(({ theme: e }) => ({
1481
+ })), Ar = m("div")(({ theme: e }) => ({
1482
1482
  display: "flex",
1483
1483
  alignItems: "center",
1484
1484
  gap: e.spacing(1.5)
@@ -1487,32 +1487,32 @@ function Tn({ height: e }) {
1487
1487
  const t = parseInt(String(e), 10) || at, i = t - zt, r = i - zt;
1488
1488
  return /* @__PURE__ */ w(S, { mt: 0.5, children: [
1489
1489
  /* @__PURE__ */ n(H, { height: 8, width: 64 }),
1490
- /* @__PURE__ */ n(kr, { height: t, children: /* @__PURE__ */ w(Sr, { children: [
1490
+ /* @__PURE__ */ n(Sr, { height: t, children: /* @__PURE__ */ w(Mr, { children: [
1491
1491
  /* @__PURE__ */ n(H, { variant: "circular", width: i, height: i }),
1492
1492
  /* @__PURE__ */ n(
1493
- Mr,
1493
+ Ir,
1494
1494
  {
1495
1495
  variant: "circular",
1496
1496
  width: r,
1497
1497
  height: r
1498
1498
  }
1499
1499
  ),
1500
- /* @__PURE__ */ w(Ir, { children: [
1500
+ /* @__PURE__ */ w(Cr, { children: [
1501
1501
  /* @__PURE__ */ n(H, { height: 24, width: 72 }),
1502
1502
  /* @__PURE__ */ n(H, { height: 8, width: 48 })
1503
1503
  ] })
1504
1504
  ] }) }),
1505
- /* @__PURE__ */ n(Cr, { children: [...Array(2)].map((o, a) => /* @__PURE__ */ w(Tr, { children: [
1505
+ /* @__PURE__ */ n(Tr, { children: [...Array(2)].map((o, a) => /* @__PURE__ */ w(Ar, { children: [
1506
1506
  /* @__PURE__ */ n(H, { variant: "circular", width: 8, height: 8 }),
1507
1507
  /* @__PURE__ */ n(H, { width: 48, height: 8 })
1508
1508
  ] }, a)) })
1509
1509
  ] });
1510
1510
  }
1511
- const Ar = m(S)(({ theme: e }) => ({
1511
+ const Er = m(S)(({ theme: e }) => ({
1512
1512
  position: "relative",
1513
1513
  padding: e.spacing(1.25, 1, 0, 1),
1514
1514
  width: "100%"
1515
- })), Er = m(S)(({ theme: e }) => ({
1515
+ })), Lr = m(S)(({ theme: e }) => ({
1516
1516
  position: "relative",
1517
1517
  display: "flex",
1518
1518
  flexDirection: "row",
@@ -1521,7 +1521,7 @@ const Ar = m(S)(({ theme: e }) => ({
1521
1521
  // Accessibility tweak to display focus indicator properly
1522
1522
  padding: e.spacing(0.5),
1523
1523
  margin: e.spacing(-0.5)
1524
- })), Lr = m(S)(({ theme: e }) => ({
1524
+ })), Dr = m(S)(({ theme: e }) => ({
1525
1525
  display: "flex",
1526
1526
  flexDirection: "row",
1527
1527
  gap: e.spacing(1),
@@ -1529,7 +1529,7 @@ const Ar = m(S)(({ theme: e }) => ({
1529
1529
  textOverflow: "ellipsis",
1530
1530
  whiteSpace: "nowrap",
1531
1531
  cursor: "pointer"
1532
- })), Dr = m(S)(({ theme: e }) => ({
1532
+ })), Pr = m(S)(({ theme: e }) => ({
1533
1533
  display: "inline-block",
1534
1534
  position: "absolute",
1535
1535
  left: e.spacing(-2),
@@ -1538,13 +1538,13 @@ const Ar = m(S)(({ theme: e }) => ({
1538
1538
  zIndex: 1,
1539
1539
  width: e.spacing(2.5),
1540
1540
  background: `linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, ${e.palette.background.paper} 100%)`
1541
- })), Pr = m(S)(({ theme: e }) => ({
1541
+ })), $r = m(S)(({ theme: e }) => ({
1542
1542
  position: "absolute",
1543
1543
  padding: e.spacing(0.25, 1),
1544
1544
  top: e.spacing(0),
1545
1545
  right: 0,
1546
1546
  background: e.palette.background.paper
1547
- })), $r = m(S, {
1547
+ })), Or = m(S, {
1548
1548
  shouldForwardProp: (e) => e !== "color"
1549
1549
  })(({ theme: e, color: t }) => {
1550
1550
  const i = e.spacing(1);
@@ -1595,9 +1595,9 @@ function An({
1595
1595
  }), x.observe(p.current)), () => {
1596
1596
  x == null || x.disconnect();
1597
1597
  };
1598
- }, [p, k]), /* @__PURE__ */ w(Ar, { ref: p, children: [
1598
+ }, [p, k]), /* @__PURE__ */ w(Er, { ref: p, children: [
1599
1599
  /* @__PURE__ */ n(
1600
- Er,
1600
+ Lr,
1601
1601
  {
1602
1602
  ref: c,
1603
1603
  style: {
@@ -1607,7 +1607,7 @@ function An({
1607
1607
  if (A < l) return null;
1608
1608
  const T = t.length === 0 || t.includes(x.name);
1609
1609
  return /* @__PURE__ */ w(
1610
- Lr,
1610
+ Dr,
1611
1611
  {
1612
1612
  tabIndex: 0,
1613
1613
  onClick: i ? () => i(x.name) : void 0,
@@ -1617,7 +1617,7 @@ function An({
1617
1617
  },
1618
1618
  children: [
1619
1619
  /* @__PURE__ */ n(
1620
- $r,
1620
+ Or,
1621
1621
  {
1622
1622
  color: T ? x.color : r.palette.text.disabled
1623
1623
  }
@@ -1637,8 +1637,8 @@ function An({
1637
1637
  })
1638
1638
  }
1639
1639
  ),
1640
- (o || l > 0) && /* @__PURE__ */ w(Pr, { ref: y, children: [
1641
- /* @__PURE__ */ n(Dr, {}),
1640
+ (o || l > 0) && /* @__PURE__ */ w($r, { ref: y, children: [
1641
+ /* @__PURE__ */ n(Pr, {}),
1642
1642
  /* @__PURE__ */ n(
1643
1643
  ue,
1644
1644
  {
@@ -1651,7 +1651,7 @@ function An({
1651
1651
  size: "small",
1652
1652
  disabled: l === 0,
1653
1653
  onClick: h,
1654
- children: /* @__PURE__ */ n(bi, {})
1654
+ children: /* @__PURE__ */ n(ki, {})
1655
1655
  }
1656
1656
  )
1657
1657
  }
@@ -1668,7 +1668,7 @@ function An({
1668
1668
  size: "small",
1669
1669
  disabled: !o,
1670
1670
  onClick: v,
1671
- children: /* @__PURE__ */ n(ki, {})
1671
+ children: /* @__PURE__ */ n(Si, {})
1672
1672
  }
1673
1673
  )
1674
1674
  }
@@ -1676,12 +1676,12 @@ function An({
1676
1676
  ] })
1677
1677
  ] });
1678
1678
  }
1679
- const ht = "232px", Or = m(ae)(({ theme: e }) => ({
1679
+ const ht = "232px", Wr = m(ae)(({ theme: e }) => ({
1680
1680
  flexDirection: "row",
1681
1681
  justifyContent: "space-between",
1682
1682
  alignItems: "center",
1683
1683
  marginBottom: e.spacing(0.5)
1684
- })), Wr = m(S, {
1684
+ })), Rr = m(S, {
1685
1685
  shouldForwardProp: (e) => e !== "height" && e !== "width"
1686
1686
  })(
1687
1687
  ({ height: e, width: t }) => ({
@@ -1694,22 +1694,22 @@ const ht = "232px", Or = m(ae)(({ theme: e }) => ({
1694
1694
  width: t || "100%",
1695
1695
  height: e || "100%"
1696
1696
  })
1697
- ), Rr = m(We)(() => ({
1697
+ ), Fr = m(We)(() => ({
1698
1698
  position: "absolute",
1699
1699
  top: 0,
1700
1700
  right: 0,
1701
1701
  left: 0,
1702
1702
  bottom: 0
1703
- })), Ht = [], Fr = {}, Nr = (e) => e;
1704
- function os({
1703
+ })), Ht = [], Nr = {}, Br = (e) => e;
1704
+ function as({
1705
1705
  name: e,
1706
1706
  data: t,
1707
- formatter: i = Nr,
1708
- tooltipFormatter: r = Br,
1707
+ formatter: i = Br,
1708
+ tooltipFormatter: r = _r,
1709
1709
  percentFormatter: o,
1710
1710
  height: a = ht,
1711
1711
  width: l = ht,
1712
- labels: d = Fr,
1712
+ labels: d = Nr,
1713
1713
  colors: s = Ht,
1714
1714
  animation: u = !0,
1715
1715
  filterable: p = !0,
@@ -1719,7 +1719,7 @@ function os({
1719
1719
  maxItems: f = 11,
1720
1720
  order: v = Ce.RANKING
1721
1721
  }) {
1722
- const h = le(), b = fr(t, v, f, s), { showSkeleton: k } = ke(!!g), M = se(), C = ce(M), x = F(() => o || ((G) => `${M.formatNumber(G, {
1722
+ const h = le(), b = mr(t, v, f, s), { showSkeleton: k } = ke(!!g), M = se(), C = ce(M), x = F(() => o || ((G) => `${M.formatNumber(G, {
1723
1723
  maximumFractionDigits: 2,
1724
1724
  minimumFractionDigits: 2
1725
1725
  })}%`), [M, o]), A = F(() => {
@@ -1812,7 +1812,7 @@ function os({
1812
1812
  G.key === "Enter" && W();
1813
1813
  };
1814
1814
  return k ? /* @__PURE__ */ n(Tn, { height: a }) : /* @__PURE__ */ w(ie, { children: [
1815
- p && /* @__PURE__ */ w(Or, { container: !0, children: [
1815
+ p && /* @__PURE__ */ w(Wr, { container: !0, children: [
1816
1816
  /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: c.length ? C.formatMessage(
1817
1817
  { id: "c4r.widgets.pie.selectedItems" },
1818
1818
  { items: c.length }
@@ -1828,9 +1828,9 @@ function os({
1828
1828
  }
1829
1829
  )
1830
1830
  ] }),
1831
- /* @__PURE__ */ w(Wr, { height: a, width: l, children: [
1831
+ /* @__PURE__ */ w(Rr, { height: a, width: l, children: [
1832
1832
  /* @__PURE__ */ n(
1833
- wr,
1833
+ xr,
1834
1834
  {
1835
1835
  data: b,
1836
1836
  selectedCategories: c,
@@ -1838,7 +1838,7 @@ function os({
1838
1838
  }
1839
1839
  ),
1840
1840
  /* @__PURE__ */ n(
1841
- Rr,
1841
+ Fr,
1842
1842
  {
1843
1843
  option: O,
1844
1844
  onEvents: P,
@@ -1857,7 +1857,7 @@ function os({
1857
1857
  )
1858
1858
  ] });
1859
1859
  }
1860
- function Br(e, t, i) {
1860
+ function _r(e, t, i) {
1861
1861
  var s;
1862
1862
  const r = Array.isArray(e) ? e[0] : e;
1863
1863
  if (!r)
@@ -1868,19 +1868,19 @@ function Br(e, t, i) {
1868
1868
  <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>
1869
1869
  `.trim();
1870
1870
  }
1871
- const _r = m(ae)(({ theme: e }) => ({
1871
+ const zr = m(ae)(({ theme: e }) => ({
1872
1872
  position: "relative",
1873
1873
  alignItems: "center",
1874
1874
  height: e.spacing(4)
1875
- })), zr = m(ae)(({ theme: e }) => ({
1875
+ })), Hr = m(ae)(({ theme: e }) => ({
1876
1876
  position: "absolute",
1877
1877
  zIndex: 1,
1878
1878
  padding: e.spacing(0, 3)
1879
1879
  }));
1880
- function Hr() {
1880
+ function jr() {
1881
1881
  return /* @__PURE__ */ w(ae, { container: !0, children: [
1882
- /* @__PURE__ */ w(_r, { container: !0, item: !0, children: [
1883
- /* @__PURE__ */ w(zr, { container: !0, item: !0, justifyContent: "space-between", children: [
1882
+ /* @__PURE__ */ w(zr, { container: !0, item: !0, children: [
1883
+ /* @__PURE__ */ w(Hr, { container: !0, item: !0, justifyContent: "space-between", children: [
1884
1884
  /* @__PURE__ */ n(Rt, { variant: "circular", width: 12, height: 12 }),
1885
1885
  /* @__PURE__ */ n(Rt, { variant: "circular", width: 12, height: 12 })
1886
1886
  ] }),
@@ -1892,13 +1892,13 @@ function Hr() {
1892
1892
  ] })
1893
1893
  ] });
1894
1894
  }
1895
- const jr = m(S)(() => ({
1895
+ const Yr = m(S)(() => ({
1896
1896
  position: "relative"
1897
- })), Yr = m(S)(({ theme: { spacing: e } }) => ({
1897
+ })), Vr = m(S)(({ theme: { spacing: e } }) => ({
1898
1898
  display: "flex",
1899
1899
  flexDirection: "row-reverse",
1900
1900
  height: e(1.5)
1901
- })), Vr = m(ye)(() => ({
1901
+ })), Gr = m(ye)(() => ({
1902
1902
  cursor: "pointer"
1903
1903
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1904
1904
  })), jt = m(ot)(({ theme: { spacing: e } }) => ({
@@ -1920,11 +1920,11 @@ const jr = m(S)(() => ({
1920
1920
  margin: 0
1921
1921
  }
1922
1922
  }
1923
- })), Gr = m(xt)(({ theme: { palette: e } }) => ({
1923
+ })), Ur = m(xt)(({ theme: { palette: e } }) => ({
1924
1924
  "& .MuiSlider-rail": {
1925
1925
  color: e.text.hint
1926
1926
  }
1927
- })), Ur = m(xt)(({ theme: { palette: e, spacing: t } }) => ({
1927
+ })), qr = m(xt)(({ theme: { palette: e, spacing: t } }) => ({
1928
1928
  pointerEvents: "none",
1929
1929
  position: "absolute",
1930
1930
  zIndex: 1,
@@ -1949,7 +1949,7 @@ const jr = m(S)(() => ({
1949
1949
  transform: "translateY(-50%)"
1950
1950
  }
1951
1951
  }));
1952
- function as({
1952
+ function ls({
1953
1953
  data: e,
1954
1954
  min: t,
1955
1955
  max: i,
@@ -1972,7 +1972,7 @@ function as({
1972
1972
  if (!(x[0].value > x[1].value))
1973
1973
  return x;
1974
1974
  }, [r, i, t]), f = F(
1975
- () => o ? ni(o, 250) : null,
1975
+ () => o ? ii(o, 250) : null,
1976
1976
  [o]
1977
1977
  ), v = (x) => {
1978
1978
  u([...x]), d([...x]), f && f([...x]);
@@ -1997,9 +1997,9 @@ function as({
1997
1997
  function C(x) {
1998
1998
  x.key === "Enter" && M();
1999
1999
  }
2000
- return y ? /* @__PURE__ */ n(Hr, {}) : /* @__PURE__ */ w(jr, { children: [
2001
- /* @__PURE__ */ n(Yr, { children: b && /* @__PURE__ */ n(z, { variant: "caption", color: "primary", children: /* @__PURE__ */ n(
2002
- Vr,
2000
+ return y ? /* @__PURE__ */ n(jr, {}) : /* @__PURE__ */ w(Yr, { children: [
2001
+ /* @__PURE__ */ n(Vr, { children: b && /* @__PURE__ */ n(z, { variant: "caption", color: "primary", children: /* @__PURE__ */ n(
2002
+ Gr,
2003
2003
  {
2004
2004
  onClick: M,
2005
2005
  onKeyDown: C,
@@ -2011,7 +2011,7 @@ function as({
2011
2011
  ) }) }),
2012
2012
  /* @__PURE__ */ w(S, { children: [
2013
2013
  /* @__PURE__ */ n(
2014
- Gr,
2014
+ Ur,
2015
2015
  {
2016
2016
  getAriaLabel: (x) => x === 0 ? c.formatMessage({ id: "c4r.widgets.range.minValue" }) : c.formatMessage({ id: "c4r.widgets.range.maxValue" }),
2017
2017
  value: l,
@@ -2021,7 +2021,7 @@ function as({
2021
2021
  }
2022
2022
  ),
2023
2023
  r && r.length === 2 && /* @__PURE__ */ n(
2024
- Ur,
2024
+ qr,
2025
2025
  {
2026
2026
  getAriaLabel: (x) => x === 0 ? c.formatMessage({ id: "c4r.widgets.range.minLimit" }) : c.formatMessage({ id: "c4r.widgets.range.maxLimit" }),
2027
2027
  value: r,
@@ -2069,7 +2069,7 @@ function as({
2069
2069
  ] })
2070
2070
  ] });
2071
2071
  }
2072
- const qr = m(bn)(({ theme: e }) => ({
2072
+ const Xr = m(bn)(({ theme: e }) => ({
2073
2073
  flexDirection: "column",
2074
2074
  alignItems: "center",
2075
2075
  justifyContent: "center",
@@ -2080,29 +2080,29 @@ const qr = m(bn)(({ theme: e }) => ({
2080
2080
  maxWidth: "75%"
2081
2081
  }
2082
2082
  }
2083
- })), Xr = m(S)(() => ({
2083
+ })), Kr = m(S)(() => ({
2084
2084
  position: "relative",
2085
2085
  display: "flex",
2086
2086
  justifyContent: "space-between",
2087
2087
  width: "80%",
2088
2088
  maxWidth: "50%"
2089
2089
  }));
2090
- function Kr({ height: e }) {
2090
+ function Zr({ height: e }) {
2091
2091
  function t() {
2092
2092
  return Math.floor(Math.random() * 5);
2093
2093
  }
2094
2094
  return /* @__PURE__ */ w(S, { height: e ?? at, children: [
2095
2095
  /* @__PURE__ */ n(S, { mb: 4, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
2096
- /* @__PURE__ */ n(qr, { height: "80%", children: [...Array(3)].map((i, r) => (
2096
+ /* @__PURE__ */ n(Xr, { height: "80%", children: [...Array(3)].map((i, r) => (
2097
2097
  // Every row is placed with an incremental margin left to reinforce the effect of a scatter plot
2098
- /* @__PURE__ */ n(Xr, { ml: r * 3, children: [...Array(4)].map((o, a) => (
2098
+ /* @__PURE__ */ n(Kr, { ml: r * 3, children: [...Array(4)].map((o, a) => (
2099
2099
  // Random margins are used to create the effect of a scatter plot
2100
2100
  /* @__PURE__ */ n(S, { mt: t(), ml: t(), children: /* @__PURE__ */ n(H, { variant: "circular", width: 12, height: 12 }) }, a)
2101
2101
  )) }, r)
2102
2102
  )) })
2103
2103
  ] });
2104
2104
  }
2105
- function Zr(e, t) {
2105
+ function Jr(e, t) {
2106
2106
  var s;
2107
2107
  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;
2108
2108
  return o !== a ? !1 : l && d && l.length === d.length ? !d.some(({ value: u }, p) => {
@@ -2110,7 +2110,7 @@ function Zr(e, t) {
2110
2110
  return u !== ((c = l[p]) == null ? void 0 : c.value);
2111
2111
  }) : !1;
2112
2112
  }
2113
- function Jr({
2113
+ function Qr({
2114
2114
  tooltipFormatter: e,
2115
2115
  xAxisFormatter: t = tt,
2116
2116
  yAxisFormatter: i = tt
@@ -2149,7 +2149,7 @@ function Jr({
2149
2149
  }
2150
2150
  };
2151
2151
  }
2152
- function Qr({
2152
+ function eo({
2153
2153
  name: e,
2154
2154
  data: t,
2155
2155
  animation: i
@@ -2163,30 +2163,30 @@ function Qr({
2163
2163
  }
2164
2164
  ];
2165
2165
  }
2166
- const eo = Jn.memo(
2166
+ const to = Qn.memo(
2167
2167
  We,
2168
- (e, t) => Zr(
2168
+ (e, t) => Jr(
2169
2169
  e.option,
2170
2170
  t.option
2171
2171
  )
2172
- ), Yt = 225, to = [], tt = (e) => e;
2173
- function ls({
2172
+ ), Yt = 225, no = [], tt = (e) => e;
2173
+ function ss({
2174
2174
  name: e = null,
2175
- data: t = to,
2175
+ data: t = no,
2176
2176
  animation: i = !0,
2177
2177
  xAxisFormatter: r = tt,
2178
2178
  yAxisFormatter: o = tt,
2179
- tooltipFormatter: a = no,
2179
+ tooltipFormatter: a = io,
2180
2180
  isLoading: l
2181
2181
  }) {
2182
2182
  const d = le(), s = re(), [u, p] = _({
2183
2183
  series: []
2184
2184
  }), { showSkeleton: c } = ke(!!l);
2185
2185
  return U(() => {
2186
- const y = Jr(
2186
+ const y = Qr(
2187
2187
  { xAxisFormatter: r, yAxisFormatter: o, tooltipFormatter: a },
2188
2188
  d
2189
- ), g = Qr({
2189
+ ), g = eo({
2190
2190
  name: e,
2191
2191
  data: t || [],
2192
2192
  animation: i
@@ -2203,8 +2203,8 @@ function ls({
2203
2203
  r,
2204
2204
  o,
2205
2205
  a
2206
- ]), c ? /* @__PURE__ */ n(Kr, { height: Yt }) : /* @__PURE__ */ n(
2207
- eo,
2206
+ ]), c ? /* @__PURE__ */ n(Zr, { height: Yt }) : /* @__PURE__ */ n(
2207
+ to,
2208
2208
  {
2209
2209
  ref: s,
2210
2210
  option: u,
@@ -2213,7 +2213,7 @@ function ls({
2213
2213
  }
2214
2214
  );
2215
2215
  }
2216
- function no(e) {
2216
+ function io(e) {
2217
2217
  const t = Array.isArray(e) ? e[0] : e, i = (t == null ? void 0 : t.value) || [];
2218
2218
  return `[${i[0]}, ${i[1]})`;
2219
2219
  }
@@ -2228,7 +2228,7 @@ function Ue({
2228
2228
  }
2229
2229
  return [...Array(t)].map((o, a) => /* @__PURE__ */ n(bt, { children: /* @__PURE__ */ n(H, { width: e ?? r(i), height: 8 }) }, a));
2230
2230
  }
2231
- const io = m(S)(({ theme: e }) => ({
2231
+ const ro = m(S)(({ theme: e }) => ({
2232
2232
  display: "flex",
2233
2233
  flexDirection: "row",
2234
2234
  justifyContent: "flex-end",
@@ -2236,17 +2236,17 @@ const io = m(S)(({ theme: e }) => ({
2236
2236
  gap: e.spacing(2),
2237
2237
  margin: 0,
2238
2238
  padding: e.spacing(2, 1)
2239
- })), ro = m(un)(() => ({
2239
+ })), oo = m(un)(() => ({
2240
2240
  overflow: "hidden"
2241
2241
  }));
2242
- function oo({
2242
+ function ao({
2243
2243
  style: e,
2244
2244
  dense: t,
2245
2245
  pagination: i,
2246
2246
  rowsPerPage: r
2247
2247
  }) {
2248
2248
  return /* @__PURE__ */ w(ie, { children: [
2249
- /* @__PURE__ */ n(ro, { style: e, children: /* @__PURE__ */ w(sn, { "aria-label": "skeleton table", size: t ? "small" : "medium", children: [
2249
+ /* @__PURE__ */ n(oo, { style: e, children: /* @__PURE__ */ w(sn, { "aria-label": "skeleton table", size: t ? "small" : "medium", children: [
2250
2250
  /* @__PURE__ */ n(cn, { children: /* @__PURE__ */ w(Je, { children: [
2251
2251
  /* @__PURE__ */ n(Ue, { rows: 1, width: 8 }),
2252
2252
  /* @__PURE__ */ n(Ue, { width: 56 })
@@ -2258,7 +2258,7 @@ function oo({
2258
2258
  ] }, a)
2259
2259
  ) })
2260
2260
  ] }) }),
2261
- i && /* @__PURE__ */ w(io, { children: [
2261
+ i && /* @__PURE__ */ w(ro, { children: [
2262
2262
  /* @__PURE__ */ n(H, { width: 56, height: 8 }),
2263
2263
  /* @__PURE__ */ n(S, { mr: 1, children: /* @__PURE__ */ n(H, { width: 52, height: 16 }) }),
2264
2264
  /* @__PURE__ */ n(H, { width: 60, height: 8 }),
@@ -2267,18 +2267,18 @@ function oo({
2267
2267
  ] })
2268
2268
  ] });
2269
2269
  }
2270
- const ao = m(ii)(({ theme: e }) => ({
2270
+ const lo = m(ri)(({ theme: e }) => ({
2271
2271
  ...e.typography.caption,
2272
2272
  color: e.palette.text.secondary,
2273
2273
  whiteSpace: "nowrap"
2274
- })), lo = m(Je)(({ theme: e }) => ({
2274
+ })), so = m(Je)(({ theme: e }) => ({
2275
2275
  maxHeight: e.spacing(6.5),
2276
2276
  transition: "background-color 0.25s ease",
2277
2277
  "&.MuiTableRow-hover:hover": {
2278
2278
  cursor: "pointer",
2279
2279
  backgroundColor: e.palette.background.default
2280
2280
  }
2281
- })), so = m(bt)(() => ({
2281
+ })), co = m(bt)(() => ({
2282
2282
  overflow: "hidden",
2283
2283
  "& p": {
2284
2284
  maxWidth: "100%",
@@ -2286,14 +2286,14 @@ const ao = m(ii)(({ theme: e }) => ({
2286
2286
  overflow: "hidden",
2287
2287
  textOverflow: "ellipsis"
2288
2288
  }
2289
- })), co = m(ri)(({ theme: e }) => ({
2289
+ })), uo = m(oi)(({ theme: e }) => ({
2290
2290
  height: e.spacing(6),
2291
2291
  overflowX: "auto",
2292
2292
  overflowY: "hidden"
2293
2293
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
2294
- })), uo = 10, po = [5, 10, 25], Be = () => {
2294
+ })), po = 10, go = [5, 10, 25], Be = () => {
2295
2295
  };
2296
- function ss({
2296
+ function cs({
2297
2297
  columns: e,
2298
2298
  rows: t,
2299
2299
  sorting: i = !1,
@@ -2305,8 +2305,8 @@ function ss({
2305
2305
  totalCount: s,
2306
2306
  page: u,
2307
2307
  onSetPage: p = Be,
2308
- rowsPerPage: c = uo,
2309
- rowsPerPageOptions: y = po,
2308
+ rowsPerPage: c = po,
2309
+ rowsPerPageOptions: y = go,
2310
2310
  onSetRowsPerPage: g = Be,
2311
2311
  onRowClick: f = Be,
2312
2312
  onRowMouseEnter: v,
@@ -2346,7 +2346,7 @@ function ss({
2346
2346
  J.height = `calc(${b} - ${E}px)`;
2347
2347
  }
2348
2348
  return O ? /* @__PURE__ */ n(
2349
- oo,
2349
+ ao,
2350
2350
  {
2351
2351
  rowsPerPage: c,
2352
2352
  style: J,
@@ -2356,7 +2356,7 @@ function ss({
2356
2356
  ) : /* @__PURE__ */ w(ie, { children: [
2357
2357
  /* @__PURE__ */ n(un, { style: J, children: /* @__PURE__ */ w(sn, { stickyHeader: !0, size: k ? "small" : "medium", children: [
2358
2358
  /* @__PURE__ */ n(
2359
- go,
2359
+ ho,
2360
2360
  {
2361
2361
  columns: e,
2362
2362
  sorting: i,
@@ -2366,7 +2366,7 @@ function ss({
2366
2366
  }
2367
2367
  ),
2368
2368
  /* @__PURE__ */ n(
2369
- ho,
2369
+ fo,
2370
2370
  {
2371
2371
  columns: e,
2372
2372
  rows: t,
@@ -2377,7 +2377,7 @@ function ss({
2377
2377
  )
2378
2378
  ] }) }),
2379
2379
  d && /* @__PURE__ */ n(
2380
- co,
2380
+ uo,
2381
2381
  {
2382
2382
  ref: x,
2383
2383
  rowsPerPageOptions: y,
@@ -2392,7 +2392,7 @@ function ss({
2392
2392
  onPageChange: P,
2393
2393
  onRowsPerPageChange: W,
2394
2394
  ActionsComponent: () => /* @__PURE__ */ n(
2395
- yi,
2395
+ vi,
2396
2396
  {
2397
2397
  count: s,
2398
2398
  rowsPerPage: c,
@@ -2405,7 +2405,7 @@ function ss({
2405
2405
  )
2406
2406
  ] });
2407
2407
  }
2408
- function go({
2408
+ function ho({
2409
2409
  columns: e,
2410
2410
  sorting: t,
2411
2411
  sortBy: i,
@@ -2413,7 +2413,7 @@ function go({
2413
2413
  onSort: o
2414
2414
  }) {
2415
2415
  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(
2416
- ao,
2416
+ lo,
2417
2417
  {
2418
2418
  active: i === a,
2419
2419
  direction: i === a ? r : "asc",
@@ -2422,7 +2422,7 @@ function go({
2422
2422
  }
2423
2423
  ) : l ?? a }, a)) }) });
2424
2424
  }
2425
- function ho({
2425
+ function fo({
2426
2426
  columns: e,
2427
2427
  rows: t,
2428
2428
  onRowMouseEnter: i,
@@ -2432,7 +2432,7 @@ function ho({
2432
2432
  return /* @__PURE__ */ n(dn, { children: t.map((a, l) => {
2433
2433
  const d = String(a.cartodb_id || a.id || l);
2434
2434
  return /* @__PURE__ */ n(
2435
- lo,
2435
+ so,
2436
2436
  {
2437
2437
  hover: !!o,
2438
2438
  onMouseEnter: () => i == null ? void 0 : i(a),
@@ -2443,7 +2443,7 @@ function ho({
2443
2443
  var f;
2444
2444
  let g = (f = Object.entries(a).find(([v]) => v.toUpperCase() === s.toUpperCase())) == null ? void 0 : f[1];
2445
2445
  return y ? g = y(g) : typeof g == "bigint" ? g = g.toString() : Array.isArray(g) ? g = `[${g.map((v) => typeof v == "string" ? `"${v}"` : String(v)).join(", ")}]` : typeof g == "object" && g !== null && (g = JSON.stringify(g)), (u ?? s) && /* @__PURE__ */ n(
2446
- so,
2446
+ co,
2447
2447
  {
2448
2448
  scope: "row",
2449
2449
  align: p ?? "left",
@@ -2508,13 +2508,13 @@ function nt(e, t) {
2508
2508
  return o;
2509
2509
  }
2510
2510
  }
2511
- function fo(e) {
2511
+ function mo(e) {
2512
2512
  let t, i = 0;
2513
2513
  for (const { name: r } of e)
2514
2514
  r !== t && (t = r, i++);
2515
2515
  return i;
2516
2516
  }
2517
- function mo(e) {
2517
+ function yo(e) {
2518
2518
  const t = new Date(e), i = t.getDay(), r = t.getDate() - i + (i ? 1 : -6);
2519
2519
  return t.setDate(r), t.setHours(0, 0, 0, 0), t.getTime();
2520
2520
  }
@@ -2524,19 +2524,19 @@ const Ct = {
2524
2524
  month: Ee,
2525
2525
  week: Ee,
2526
2526
  day: Ee,
2527
- hour: xo,
2527
+ hour: bo,
2528
2528
  minute: Gt,
2529
2529
  second: Gt
2530
- }, yo = {
2531
- year: Ao,
2532
- month: To,
2533
- week: Co,
2534
- day: Io,
2535
- hour: Mo,
2536
- minute: So,
2537
- second: ko
2530
+ }, vo = {
2531
+ year: Eo,
2532
+ month: Ao,
2533
+ week: To,
2534
+ day: Co,
2535
+ hour: Io,
2536
+ minute: Mo,
2537
+ second: So
2538
2538
  };
2539
- function vo({
2539
+ function wo({
2540
2540
  date: e,
2541
2541
  stepSize: t
2542
2542
  }) {
@@ -2564,10 +2564,10 @@ function Dn({
2564
2564
  }) {
2565
2565
  if (!Ct[t])
2566
2566
  throw new Error("formatBucketRange: missing formatter or invalid stepSize");
2567
- const { start: o, end: a } = bo({ date: e, stepSize: t, stepMultiplier: i });
2567
+ const { start: o, end: a } = ko({ date: e, stepSize: t, stepMultiplier: i });
2568
2568
  if (i === 1) {
2569
2569
  if (t === "day")
2570
- return vo({ date: o, stepSize: t });
2570
+ return wo({ date: o, stepSize: t });
2571
2571
  if (t === "second")
2572
2572
  return `${Ee(o)} ${ft(
2573
2573
  o
@@ -2575,11 +2575,11 @@ function Dn({
2575
2575
  }
2576
2576
  return it({ start: o, end: a, stepSize: t });
2577
2577
  }
2578
- const Tt = (e) => 1e3 * e, At = (e) => Tt(60 * e), wo = (e) => At(60 * e);
2578
+ const Tt = (e) => 1e3 * e, At = (e) => Tt(60 * e), xo = (e) => At(60 * e);
2579
2579
  function Ee(e) {
2580
2580
  return e.toLocaleDateString();
2581
2581
  }
2582
- function xo(e) {
2582
+ function bo(e) {
2583
2583
  return Ee(e) + " " + e.toLocaleTimeString(void 0, {
2584
2584
  hour: "numeric",
2585
2585
  minute: "2-digit",
@@ -2597,17 +2597,17 @@ function ft(e) {
2597
2597
  function Gt(e) {
2598
2598
  return Ee(e) + " " + ft(e);
2599
2599
  }
2600
- function bo({
2600
+ function ko({
2601
2601
  date: e,
2602
2602
  stepSize: t,
2603
2603
  stepMultiplier: i = 1
2604
2604
  }) {
2605
- const r = yo[t];
2605
+ const r = vo[t];
2606
2606
  if (!r)
2607
2607
  throw new Error("getBucketInterval: invalid bucket size");
2608
2608
  return r({ date: e, stepMultiplier: i });
2609
2609
  }
2610
- function ko({
2610
+ function So({
2611
2611
  date: e,
2612
2612
  stepMultiplier: t = 1
2613
2613
  }) {
@@ -2622,7 +2622,7 @@ function ko({
2622
2622
  ), r = new Date(i.getTime() + Tt(t - 1) + 999);
2623
2623
  return { start: i, end: r };
2624
2624
  }
2625
- function So({
2625
+ function Mo({
2626
2626
  date: e,
2627
2627
  stepMultiplier: t = 1
2628
2628
  }) {
@@ -2639,7 +2639,7 @@ function So({
2639
2639
  );
2640
2640
  return { start: i, end: r };
2641
2641
  }
2642
- function Mo({
2642
+ function Io({
2643
2643
  date: e,
2644
2644
  stepMultiplier: t = 1
2645
2645
  }) {
@@ -2652,11 +2652,11 @@ function Mo({
2652
2652
  0,
2653
2653
  0
2654
2654
  ), r = new Date(
2655
- i.getTime() + wo(t - 1) + At(59)
2655
+ i.getTime() + xo(t - 1) + At(59)
2656
2656
  );
2657
2657
  return { start: i, end: r };
2658
2658
  }
2659
- function Io({
2659
+ function Co({
2660
2660
  date: e,
2661
2661
  stepMultiplier: t = 1
2662
2662
  }) {
@@ -2675,25 +2675,25 @@ function Io({
2675
2675
  );
2676
2676
  return { start: i, end: r };
2677
2677
  }
2678
- function Co({
2678
+ function To({
2679
2679
  date: e,
2680
2680
  stepMultiplier: t = 1
2681
2681
  }) {
2682
- const i = new Date(mo(e)), r = new Date(
2682
+ const i = new Date(yo(e)), r = new Date(
2683
2683
  i.getFullYear(),
2684
2684
  i.getMonth(),
2685
2685
  i.getDate() + 6 + 7 * (t - 1)
2686
2686
  );
2687
2687
  return { start: i, end: r };
2688
2688
  }
2689
- function To({
2689
+ function Ao({
2690
2690
  date: e,
2691
2691
  stepMultiplier: t = 1
2692
2692
  }) {
2693
2693
  const i = new Date(e.getFullYear(), e.getMonth(), 1), r = new Date(e.getFullYear(), e.getMonth() + t, 0);
2694
2694
  return { start: i, end: r };
2695
2695
  }
2696
- function Ao({
2696
+ function Eo({
2697
2697
  date: e,
2698
2698
  stepMultiplier: t = 1
2699
2699
  }) {
@@ -2701,7 +2701,7 @@ function Ao({
2701
2701
  return { start: i, end: r };
2702
2702
  }
2703
2703
  const me = () => {
2704
- }, Pn = Qn({
2704
+ }, Pn = ei({
2705
2705
  isPlaying: !1,
2706
2706
  setIsPlaying: me,
2707
2707
  isPaused: !1,
@@ -2714,9 +2714,9 @@ const me = () => {
2714
2714
  intl: {}
2715
2715
  });
2716
2716
  function Et() {
2717
- return ei(Pn);
2717
+ return ti(Pn);
2718
2718
  }
2719
- function Eo({
2719
+ function Lo({
2720
2720
  children: e,
2721
2721
  isPlaying: t,
2722
2722
  isPaused: i,
@@ -2769,7 +2769,7 @@ function Eo({
2769
2769
  const Ut = {};
2770
2770
  let qe = null;
2771
2771
  const _e = { seriesId: "0" };
2772
- function Lo({
2772
+ function Do({
2773
2773
  echartsInstance: e,
2774
2774
  data: t,
2775
2775
  canSelectLines: i,
@@ -2941,8 +2941,8 @@ function Xe(e, t, i) {
2941
2941
  Ut[t] && (e != null && e.handler) && e.off(t, i);
2942
2942
  };
2943
2943
  }
2944
- const $n = B * 22, On = "100%", Do = 5, Po = 3, $o = B * 20;
2945
- function Oo({
2944
+ const $n = B * 22, On = "100%", Po = 5, $o = 3, Oo = B * 20;
2945
+ function Wo({
2946
2946
  chartType: e,
2947
2947
  formatter: t,
2948
2948
  timeAxisSplitNumber: i,
@@ -3044,9 +3044,9 @@ function Oo({
3044
3044
  show: !1
3045
3045
  },
3046
3046
  splitNumber: i ?? (M !== void 0 ? Math.min(
3047
- Po,
3048
- Math.ceil(M / $o)
3049
- ) : Do)
3047
+ $o,
3048
+ Math.ceil(M / Oo)
3049
+ ) : Po)
3050
3050
  },
3051
3051
  yAxis: {
3052
3052
  type: "value",
@@ -3079,7 +3079,7 @@ function Oo({
3079
3079
  max: x
3080
3080
  }
3081
3081
  };
3082
- }, [v, x, t, M, i, f]), { timelineOptions: O, timeWindowOptions: L } = Lo({
3082
+ }, [v, x, t, M, i, f]), { timelineOptions: O, timeWindowOptions: L } = Do({
3083
3083
  echartsInstance: h,
3084
3084
  data: a,
3085
3085
  canSelectLines: !!g,
@@ -3178,7 +3178,7 @@ function Oo({
3178
3178
  }
3179
3179
  );
3180
3180
  }
3181
- const Wo = {
3181
+ const Ro = {
3182
3182
  [Se.YEARS]: 60 * 60 * 24 * 7,
3183
3183
  // Week
3184
3184
  [Se.MONTHS]: 60 * 60 * 24,
@@ -3193,8 +3193,8 @@ const Wo = {
3193
3193
  // Quarter hour
3194
3194
  [Se.SECONDS]: 1
3195
3195
  // Second
3196
- }, Ro = [0.5, 1, 2, 3];
3197
- function Fo({
3196
+ }, Fo = [0.5, 1, 2, 3];
3197
+ function No({
3198
3198
  data: e,
3199
3199
  stepSize: t
3200
3200
  }) {
@@ -3207,7 +3207,7 @@ function Fo({
3207
3207
  togglePlay: y,
3208
3208
  intl: g
3209
3209
  } = Et();
3210
- Ho(
3210
+ jo(
3211
3211
  () => (d || s) && c(),
3212
3212
  // Only executed when data changes
3213
3213
  [e]
@@ -3222,8 +3222,8 @@ function Fo({
3222
3222
  };
3223
3223
  U(() => {
3224
3224
  if (d && u.length === 2 && e.length) {
3225
- const x = Wo[t] * 1e3;
3226
- return jo({
3225
+ const x = Ro[t] * 1e3;
3226
+ return Yo({
3227
3227
  data: e,
3228
3228
  timeWindow: u,
3229
3229
  msTimeWindowStep: x * o,
@@ -3238,7 +3238,7 @@ function Fo({
3238
3238
  }
3239
3239
  }, [e, d, t, p, v, o]), U(() => {
3240
3240
  if (d && u.length === 1 && e.length)
3241
- return Vo({
3241
+ return Go({
3242
3242
  speed: o,
3243
3243
  timelinePosition: u[0],
3244
3244
  data: e,
@@ -3267,7 +3267,7 @@ function Fo({
3267
3267
  color: "default",
3268
3268
  onClick: b,
3269
3269
  "data-testid": "clock",
3270
- children: /* @__PURE__ */ n(No, {})
3270
+ children: /* @__PURE__ */ n(Bo, {})
3271
3271
  }
3272
3272
  ),
3273
3273
  /* @__PURE__ */ w(
@@ -3279,7 +3279,7 @@ function Fo({
3279
3279
  onClose: k,
3280
3280
  children: [
3281
3281
  /* @__PURE__ */ n($e, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: g.formatMessage({ id: "c4r.widgets.timeSeries.speed" }) }) }),
3282
- Ro.map((C) => /* @__PURE__ */ w(
3282
+ Fo.map((C) => /* @__PURE__ */ w(
3283
3283
  $e,
3284
3284
  {
3285
3285
  selected: C === o,
@@ -3302,7 +3302,7 @@ function Fo({
3302
3302
  disabled: !(s || d),
3303
3303
  onClick: v,
3304
3304
  "data-testid": "stop",
3305
- children: /* @__PURE__ */ n(_o, {})
3305
+ children: /* @__PURE__ */ n(zo, {})
3306
3306
  }
3307
3307
  ) }),
3308
3308
  /* @__PURE__ */ n(S, { mt: 0.75, children: /* @__PURE__ */ n(
@@ -3312,12 +3312,12 @@ function Fo({
3312
3312
  size: "small",
3313
3313
  color: "primary",
3314
3314
  onClick: h,
3315
- children: d ? /* @__PURE__ */ n(zo, {}) : /* @__PURE__ */ n(Bo, {})
3315
+ children: d ? /* @__PURE__ */ n(Ho, {}) : /* @__PURE__ */ n(_o, {})
3316
3316
  }
3317
3317
  ) })
3318
3318
  ] });
3319
3319
  }
3320
- function No() {
3320
+ function Bo() {
3321
3321
  return /* @__PURE__ */ n(je, { viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
3322
3322
  "path",
3323
3323
  {
@@ -3327,7 +3327,7 @@ function No() {
3327
3327
  }
3328
3328
  ) });
3329
3329
  }
3330
- function Bo() {
3330
+ function _o() {
3331
3331
  return /* @__PURE__ */ n(je, { "data-testid": "play-icon", children: /* @__PURE__ */ n(
3332
3332
  "path",
3333
3333
  {
@@ -3337,7 +3337,7 @@ function Bo() {
3337
3337
  }
3338
3338
  ) });
3339
3339
  }
3340
- function _o() {
3340
+ function zo() {
3341
3341
  return /* @__PURE__ */ n(je, { children: /* @__PURE__ */ n(
3342
3342
  "path",
3343
3343
  {
@@ -3347,7 +3347,7 @@ function _o() {
3347
3347
  }
3348
3348
  ) });
3349
3349
  }
3350
- function zo() {
3350
+ function Ho() {
3351
3351
  return /* @__PURE__ */ n(je, { "data-testid": "pause-icon", children: /* @__PURE__ */ n(
3352
3352
  "path",
3353
3353
  {
@@ -3357,13 +3357,13 @@ function zo() {
3357
3357
  }
3358
3358
  ) });
3359
3359
  }
3360
- function Ho(e, t = []) {
3360
+ function jo(e, t = []) {
3361
3361
  const i = re(!1);
3362
3362
  U(() => {
3363
3363
  i.current ? e() : i.current = !0;
3364
3364
  }, t);
3365
3365
  }
3366
- function jo({
3366
+ function Yo({
3367
3367
  msTimeWindowStep: e,
3368
3368
  timeWindow: t,
3369
3369
  data: i,
@@ -3382,8 +3382,8 @@ function jo({
3382
3382
  };
3383
3383
  d();
3384
3384
  }
3385
- const Yo = 2;
3386
- function Vo({
3385
+ const Vo = 2;
3386
+ function Go({
3387
3387
  speed: e,
3388
3388
  timelinePosition: t,
3389
3389
  data: i,
@@ -3392,10 +3392,10 @@ function Vo({
3392
3392
  animationRef: a
3393
3393
  }) {
3394
3394
  let l = nt(t, i) ?? 0, d = i[l].name;
3395
- const s = fo(i), u = Math.max(
3395
+ const s = mo(i), u = Math.max(
3396
3396
  Math.round(Math.sqrt(s) / 2),
3397
3397
  // FPS based on number of unique time points
3398
- Yo
3398
+ Vo
3399
3399
  // Min FPS
3400
3400
  ) * e, p = () => {
3401
3401
  a.current.timeoutId = setTimeout(() => {
@@ -3413,20 +3413,20 @@ function Vo({
3413
3413
  };
3414
3414
  p();
3415
3415
  }
3416
- const Go = m(S)(() => ({
3416
+ const Uo = m(S)(() => ({
3417
3417
  containerType: "inline-size",
3418
3418
  display: "flex",
3419
3419
  flexDirection: "column"
3420
- })), Uo = m(S)(() => ({
3420
+ })), qo = m(S)(() => ({
3421
3421
  display: "flex",
3422
3422
  flexDirection: "column"
3423
3423
  })), Wn = m(S)(() => ({
3424
3424
  display: "flex",
3425
3425
  flexDirection: "row"
3426
- })), qo = m(Wn)(() => ({
3426
+ })), Xo = m(Wn)(() => ({
3427
3427
  alignItems: "center",
3428
3428
  justifyContent: "space-between"
3429
- })), Xo = m(S)(({ theme: e }) => ({
3429
+ })), Ko = m(S)(({ theme: e }) => ({
3430
3430
  flexShrink: 0,
3431
3431
  marginLeft: 0,
3432
3432
  paddingLeft: e.spacing(1),
@@ -3435,7 +3435,7 @@ const Go = m(S)(() => ({
3435
3435
  },
3436
3436
  paddingBottom: e.spacing(1.5),
3437
3437
  alignSelf: "flex-end"
3438
- })), Ko = m(S)(({ theme: e }) => ({
3438
+ })), Zo = m(S)(({ theme: e }) => ({
3439
3439
  alignSelf: "normal",
3440
3440
  minWidth: 0,
3441
3441
  paddingLeft: e.spacing(5),
@@ -3453,17 +3453,17 @@ function Rn({
3453
3453
  }) {
3454
3454
  const a = o && /* @__PURE__ */ n(S, { flex: 0, mt: 2, children: o });
3455
3455
  return /* @__PURE__ */ w(
3456
- Go,
3456
+ Uo,
3457
3457
  {
3458
3458
  style: {
3459
3459
  flex: e ? "1" : void 0
3460
3460
  },
3461
3461
  children: [
3462
- /* @__PURE__ */ n(qo, { flex: 0, children: t }),
3463
- i ? /* @__PURE__ */ w(Uo, { flex: 1, children: [
3462
+ /* @__PURE__ */ n(Xo, { flex: 0, children: t }),
3463
+ i ? /* @__PURE__ */ w(qo, { flex: 1, children: [
3464
3464
  /* @__PURE__ */ w(Wn, { flex: 1, children: [
3465
- /* @__PURE__ */ n(Xo, { flex: 0, children: i }),
3466
- /* @__PURE__ */ n(Ko, { flex: 1, children: r })
3465
+ /* @__PURE__ */ n(Ko, { flex: 0, children: i }),
3466
+ /* @__PURE__ */ n(Zo, { flex: 1, children: r })
3467
3467
  ] }),
3468
3468
  a
3469
3469
  ] }) : /* @__PURE__ */ w(ie, { children: [
@@ -3474,7 +3474,7 @@ function Rn({
3474
3474
  }
3475
3475
  );
3476
3476
  }
3477
- const Zo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox: "0 0 720 124", ...e, children: /* @__PURE__ */ n(
3477
+ const Jo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox: "0 0 720 124", ...e, children: /* @__PURE__ */ n(
3478
3478
  "path",
3479
3479
  {
3480
3480
  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",
@@ -3483,20 +3483,20 @@ const Zo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3483
3483
  strokeLinejoin: "round",
3484
3484
  vectorEffect: "non-scaling-stroke"
3485
3485
  }
3486
- ) }), Jo = m(S)(() => ({
3486
+ ) }), Qo = m(S)(() => ({
3487
3487
  display: "flex",
3488
3488
  flexDirection: "column",
3489
3489
  justifyContent: "flex-end"
3490
- })), Qo = m(S)(() => ({
3490
+ })), ea = m(S)(() => ({
3491
3491
  position: "relative",
3492
3492
  height: "100%",
3493
3493
  alignSelf: "normal",
3494
3494
  display: "flex",
3495
3495
  flexDirection: "column",
3496
3496
  justifyContent: "flex-end"
3497
- })), ea = m(S)(({ theme: e }) => ({
3497
+ })), ta = m(S)(({ theme: e }) => ({
3498
3498
  padding: e.spacing(2.25, 0, 0.5, 2)
3499
- })), ta = m(xn)(({ theme: e }) => ({
3499
+ })), na = m(xn)(({ theme: e }) => ({
3500
3500
  flexDirection: "column",
3501
3501
  flex: 1,
3502
3502
  height: "100%",
@@ -3510,12 +3510,12 @@ const Zo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3510
3510
  stroke: e.palette.black[8]
3511
3511
  }
3512
3512
  }
3513
- })), na = m(S)(({ theme: e }) => ({
3513
+ })), ia = m(S)(({ theme: e }) => ({
3514
3514
  display: "flex",
3515
3515
  flexDirection: "row",
3516
3516
  justifyContent: "space-between",
3517
3517
  padding: e.spacing(1.25, 0.5, 0.75, 0.5)
3518
- })), ia = m(S)(({ theme: e }) => ({
3518
+ })), ra = m(S)(({ theme: e }) => ({
3519
3519
  display: "flex",
3520
3520
  flexDirection: "row",
3521
3521
  gap: e.spacing(2),
@@ -3525,7 +3525,7 @@ const Zo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3525
3525
  display: "flex",
3526
3526
  flexDirection: "row",
3527
3527
  gap: e.spacing(1)
3528
- })), ra = ({
3528
+ })), oa = ({
3529
3529
  fitHeight: e,
3530
3530
  height: t,
3531
3531
  showControls: i,
@@ -3535,20 +3535,20 @@ const Zo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3535
3535
  {
3536
3536
  fitHeight: !!e,
3537
3537
  header: /* @__PURE__ */ n(S, { pt: 1.25, pb: 0.75, children: /* @__PURE__ */ n(H, { width: 48, height: 8 }) }),
3538
- controls: i && /* @__PURE__ */ w(Jo, { children: [
3538
+ controls: i && /* @__PURE__ */ w(Qo, { children: [
3539
3539
  /* @__PURE__ */ n(S, { p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) }),
3540
3540
  /* @__PURE__ */ n(S, { mt: 2, p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) }),
3541
3541
  /* @__PURE__ */ n(S, { mt: 1, p: 0.5, children: /* @__PURE__ */ n(H, { width: 16, height: 16 }) })
3542
3542
  ] }),
3543
- chart: /* @__PURE__ */ w(Qo, { style: { height: e ? On : t ?? $n }, children: [
3544
- /* @__PURE__ */ n(ea, { flex: 0, children: /* @__PURE__ */ n(H, { width: 24, height: 8 }) }),
3545
- /* @__PURE__ */ n(ta, { flex: 1, children: /* @__PURE__ */ n(Zo, { preserveAspectRatio: "none" }) }),
3546
- /* @__PURE__ */ w(na, { flex: 0, children: [
3543
+ chart: /* @__PURE__ */ w(ea, { style: { height: e ? On : t ?? $n }, children: [
3544
+ /* @__PURE__ */ n(ta, { flex: 0, children: /* @__PURE__ */ n(H, { width: 24, height: 8 }) }),
3545
+ /* @__PURE__ */ n(na, { flex: 1, children: /* @__PURE__ */ n(Jo, { preserveAspectRatio: "none" }) }),
3546
+ /* @__PURE__ */ w(ia, { flex: 0, children: [
3547
3547
  /* @__PURE__ */ n(H, { width: 32, height: 8 }),
3548
3548
  /* @__PURE__ */ n(H, { width: 32, height: 8 })
3549
3549
  ] })
3550
3550
  ] }),
3551
- legend: r && (r && /* @__PURE__ */ w(ia, { children: [
3551
+ legend: r && (r && /* @__PURE__ */ w(ra, { children: [
3552
3552
  /* @__PURE__ */ w(qt, { children: [
3553
3553
  /* @__PURE__ */ n(H, { width: 8, height: 8 }),
3554
3554
  /* @__PURE__ */ n(H, { width: 48, height: 8 })
@@ -3560,7 +3560,7 @@ const Zo = (e) => /* @__PURE__ */ n(je, { width: "720", height: "124", viewBox:
3560
3560
  ] }))
3561
3561
  }
3562
3562
  ), Fn = (e) => e, Nn = [];
3563
- function cs({
3563
+ function ds({
3564
3564
  data: e = Nn,
3565
3565
  categories: t,
3566
3566
  stepSize: i,
@@ -3609,7 +3609,7 @@ function cs({
3609
3609
  [b, f, e]
3610
3610
  );
3611
3611
  return E ? /* @__PURE__ */ n(
3612
- ra,
3612
+ oa,
3613
3613
  {
3614
3614
  fitHeight: p,
3615
3615
  height: u,
@@ -3617,7 +3617,7 @@ function cs({
3617
3617
  showLegend: P
3618
3618
  }
3619
3619
  ) : /* @__PURE__ */ n(
3620
- Eo,
3620
+ Lo,
3621
3621
  {
3622
3622
  isPlaying: C,
3623
3623
  onPlay: x,
@@ -3628,7 +3628,7 @@ function cs({
3628
3628
  onTimeWindowUpdate: N,
3629
3629
  intl: G,
3630
3630
  children: /* @__PURE__ */ n(
3631
- oa,
3631
+ aa,
3632
3632
  {
3633
3633
  data: e,
3634
3634
  categories: t,
@@ -3655,7 +3655,7 @@ function cs({
3655
3655
  }
3656
3656
  );
3657
3657
  }
3658
- function oa({
3658
+ function aa({
3659
3659
  data: e = Nn,
3660
3660
  categories: t,
3661
3661
  stepSize: i,
@@ -3693,7 +3693,7 @@ function oa({
3693
3693
  const Y = {}, K = t ? t.map((de) => ({
3694
3694
  name: de,
3695
3695
  data: [],
3696
- color: Pi(de, {
3696
+ color: $i(de, {
3697
3697
  palette: f,
3698
3698
  fallbackColor: x,
3699
3699
  colorMapping: Y
@@ -3762,9 +3762,9 @@ function oa({
3762
3762
  {
3763
3763
  fitHeight: p,
3764
3764
  header: q,
3765
- controls: g && c && /* @__PURE__ */ n(Fo, { data: e, stepSize: i }),
3765
+ controls: g && c && /* @__PURE__ */ n(No, { data: e, stepSize: i }),
3766
3766
  chart: /* @__PURE__ */ n(
3767
- Oo,
3767
+ Wo,
3768
3768
  {
3769
3769
  chartType: o,
3770
3770
  timeAxisSplitNumber: a,
@@ -3800,15 +3800,15 @@ function oa({
3800
3800
  }
3801
3801
  );
3802
3802
  }
3803
- const aa = m("div")(({ theme: e }) => ({
3803
+ const la = m("div")(({ theme: e }) => ({
3804
3804
  padding: e.spacing(2, 0),
3805
3805
  ...e.typography.body2
3806
- })), la = m(S)(({ theme: e }) => ({
3806
+ })), sa = m(S)(({ theme: e }) => ({
3807
3807
  overflow: "auto",
3808
3808
  maxHeight: e.spacing(40),
3809
3809
  paddingRight: e.spacing(1),
3810
3810
  margin: e.spacing(0.5, 0)
3811
- })), sa = m(S)(({ theme: e }) => ({
3811
+ })), ca = m(S)(({ theme: e }) => ({
3812
3812
  display: "flex",
3813
3813
  alignItems: "center",
3814
3814
  flexWrap: "wrap",
@@ -3826,11 +3826,11 @@ const aa = m("div")(({ theme: e }) => ({
3826
3826
  height: e.spacing(1),
3827
3827
  borderRadius: e.spacing(1),
3828
3828
  backgroundColor: t
3829
- })), ca = m(S)(({ theme: e }) => ({
3829
+ })), da = m(S)(({ theme: e }) => ({
3830
3830
  display: "flex",
3831
3831
  alignItems: "center",
3832
3832
  gap: e.spacing(2)
3833
- })), da = m("div")(({ theme: e }) => ({
3833
+ })), ua = m("div")(({ theme: e }) => ({
3834
3834
  height: e.spacing(0.5),
3835
3835
  width: "100%",
3836
3836
  borderRadius: e.spacing(0.5),
@@ -3861,14 +3861,14 @@ const aa = m("div")(({ theme: e }) => ({
3861
3861
  "& a": {
3862
3862
  cursor: "pointer"
3863
3863
  }
3864
- })), ua = m(ue)(({ theme: e }) => ({
3864
+ })), pa = m(ue)(({ theme: e }) => ({
3865
3865
  ".MuiTooltip-tooltip": {
3866
3866
  color: e.palette.common.white,
3867
3867
  maxWidth: 260,
3868
3868
  marginBottom: 0,
3869
3869
  overflow: "hidden"
3870
3870
  }
3871
- })), pa = m(ot)(({ theme: e }) => ({
3871
+ })), ga = m(ot)(({ theme: e }) => ({
3872
3872
  marginTop: e.spacing(-0.5)
3873
3873
  }));
3874
3874
  m(S)(() => ({
@@ -3876,7 +3876,7 @@ m(S)(() => ({
3876
3876
  flexWrap: "nowrap",
3877
3877
  justifyContent: "space-between"
3878
3878
  }));
3879
- const ga = m("div", {
3879
+ const ha = m("div", {
3880
3880
  shouldForwardProp: (e) => e !== "filterable"
3881
3881
  })(({ filterable: e }) => ({
3882
3882
  "& .progressbar div": {
@@ -3888,18 +3888,18 @@ const ga = m("div", {
3888
3888
  backgroundColor: "var(--hover-color)"
3889
3889
  }
3890
3890
  }
3891
- })), ha = m(S)(({ theme: e }) => ({
3891
+ })), fa = m(S)(({ theme: e }) => ({
3892
3892
  display: "flex",
3893
3893
  alignItems: "center",
3894
3894
  flexWrap: "nowrap",
3895
3895
  overflow: "hidden",
3896
3896
  gap: e.spacing(1)
3897
- })), fa = m(S)(({ theme: e }) => ({
3897
+ })), ma = m(S)(({ theme: e }) => ({
3898
3898
  padding: e.spacing(0.5, 0),
3899
3899
  flexGrow: "1",
3900
3900
  maxWidth: "100%",
3901
3901
  minWidth: 0
3902
- })), ma = m(S, {
3902
+ })), ya = m(S, {
3903
3903
  shouldForwardProp: (e) => e !== "backgroundColor"
3904
3904
  })(({ theme: e, backgroundColor: t }) => ({
3905
3905
  marginLeft: e.spacing(1),
@@ -3908,7 +3908,7 @@ const ga = m("div", {
3908
3908
  color: "white",
3909
3909
  borderRadius: e.spacing(2)
3910
3910
  }));
3911
- function ya(e, t, i, r, o) {
3911
+ function va(e, t, i, r, o) {
3912
3912
  const l = (e[0] ?? []).map((d, s) => {
3913
3913
  const u = String(d.name), p = r.length > 0 && !r.includes(u), c = i[s] ?? u, y = e.map((g, f) => {
3914
3914
  var v;
@@ -3928,29 +3928,29 @@ function ya(e, t, i, r, o) {
3928
3928
  return Math.max(...s.data.map((c) => c.value)) - u;
3929
3929
  }), l;
3930
3930
  }
3931
- const va = 500;
3932
- function wa(e, t = {}) {
3931
+ const wa = 500;
3932
+ function xa(e, t = {}) {
3933
3933
  const { disabled: i, duration: r, animateOnMount: o, initialValue: a = 0 } = t, l = re(null), [d, s] = _(
3934
3934
  () => o ? a : e
3935
3935
  );
3936
3936
  return U(() => (i ? s(e) : gt({
3937
3937
  start: d,
3938
3938
  end: e,
3939
- duration: r ?? va,
3939
+ duration: r ?? wa,
3940
3940
  drawFrame: (u) => s(u),
3941
3941
  requestRef: l
3942
3942
  }), () => {
3943
3943
  l.current && cancelAnimationFrame(l.current);
3944
3944
  }), [e, i, r]), d;
3945
3945
  }
3946
- const xa = {};
3946
+ const ba = {};
3947
3947
  function zn({
3948
3948
  enabled: e = !0,
3949
3949
  value: t = 0,
3950
- options: i = xa,
3950
+ options: i = ba,
3951
3951
  formatter: r
3952
3952
  }) {
3953
- const a = wa(t || 0, {
3953
+ const a = xa(t || 0, {
3954
3954
  ...{
3955
3955
  animateOnMount: !0,
3956
3956
  disabled: e === !1 || t === null || t === void 0
@@ -3959,12 +3959,12 @@ function zn({
3959
3959
  });
3960
3960
  return /* @__PURE__ */ n("span", { children: r ? r(a) : a });
3961
3961
  }
3962
- const mt = (e) => e, ba = () => {
3963
- }, ka = [];
3964
- function Sa({
3962
+ const mt = (e) => e, ka = () => {
3963
+ }, Sa = [];
3964
+ function Ma({
3965
3965
  item: e,
3966
3966
  index: t = 0,
3967
- names: i = ka,
3967
+ names: i = Sa,
3968
3968
  formatter: r = mt
3969
3969
  }) {
3970
3970
  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;
@@ -3979,14 +3979,14 @@ function Sa({
3979
3979
  ),
3980
3980
  /* @__PURE__ */ n(De, { color: "inherit", variant: "caption", children: d }),
3981
3981
  /* @__PURE__ */ n(S, { style: { flexGrow: 1 } }),
3982
- /* @__PURE__ */ n(ma, { backgroundColor: c, children: /* @__PURE__ */ w(De, { color: "inherit", variant: "caption", children: [
3982
+ /* @__PURE__ */ n(ya, { backgroundColor: c, children: /* @__PURE__ */ w(De, { color: "inherit", variant: "caption", children: [
3983
3983
  u,
3984
3984
  r(Math.abs(s))
3985
3985
  ] }) })
3986
3986
  ] }) })
3987
3987
  ] });
3988
3988
  }
3989
- function Ma({
3989
+ function Ia({
3990
3990
  item: e,
3991
3991
  animation: t = !0,
3992
3992
  animationOptions: i,
@@ -3995,7 +3995,7 @@ function Ma({
3995
3995
  checkboxChecked: a,
3996
3996
  formatter: l = mt,
3997
3997
  tooltipFormatter: d = mt,
3998
- onClick: s = ba,
3998
+ onClick: s = ka,
3999
3999
  names: u,
4000
4000
  tooltip: p
4001
4001
  }) {
@@ -4003,7 +4003,7 @@ function Ma({
4003
4003
  return `${Math.min(100, (g || 0) / r * 100)}%`;
4004
4004
  }
4005
4005
  const y = (g) => /* @__PURE__ */ n(
4006
- Sa,
4006
+ Ma,
4007
4007
  {
4008
4008
  item: e,
4009
4009
  names: u,
@@ -4011,19 +4011,19 @@ function Ma({
4011
4011
  index: g
4012
4012
  }
4013
4013
  );
4014
- return /* @__PURE__ */ w(ha, { onClick: () => s(e.key), children: [
4014
+ return /* @__PURE__ */ w(fa, { onClick: () => s(e.key), children: [
4015
4015
  o ? /* @__PURE__ */ n(ln, { checked: a }) : null,
4016
- /* @__PURE__ */ w(fa, { children: [
4016
+ /* @__PURE__ */ w(ma, { children: [
4017
4017
  /* @__PURE__ */ n(De, { variant: "body2", noWrap: !0, children: e.label }),
4018
4018
  e.data.map((g, f) => /* @__PURE__ */ n(
4019
- ua,
4019
+ pa,
4020
4020
  {
4021
4021
  title: y(f),
4022
4022
  placement: "top-start",
4023
4023
  arrow: !1,
4024
4024
  disableHoverListener: !p,
4025
- children: /* @__PURE__ */ w(ca, { children: [
4026
- /* @__PURE__ */ n(da, { className: "progressbar", children: /* @__PURE__ */ n(
4025
+ children: /* @__PURE__ */ w(da, { children: [
4026
+ /* @__PURE__ */ n(ua, { className: "progressbar", children: /* @__PURE__ */ n(
4027
4027
  "div",
4028
4028
  {
4029
4029
  style: {
@@ -4056,9 +4056,9 @@ function Ma({
4056
4056
  ] })
4057
4057
  ] });
4058
4058
  }
4059
- const Kt = (e) => e, Ia = () => {
4059
+ const Kt = (e) => e, Ca = () => {
4060
4060
  }, ze = [];
4061
- function ds({
4061
+ function us({
4062
4062
  names: e = ze,
4063
4063
  data: t = ze,
4064
4064
  labels: i = ze,
@@ -4070,7 +4070,7 @@ function ds({
4070
4070
  searchable: s = !0,
4071
4071
  filterable: u = !0,
4072
4072
  selectedCategories: p = ze,
4073
- onSelectedCategoriesChange: c = Ia,
4073
+ onSelectedCategoriesChange: c = Ca,
4074
4074
  formatter: y = Kt,
4075
4075
  tooltipFormatter: g = Kt,
4076
4076
  tooltip: f = !0,
@@ -4082,7 +4082,7 @@ function ds({
4082
4082
  h.palette.primary.main,
4083
4083
  h.palette.info.main
4084
4084
  ];
4085
- return ya(
4085
+ return va(
4086
4086
  t,
4087
4087
  V,
4088
4088
  i,
@@ -4146,7 +4146,7 @@ function ds({
4146
4146
  pe.length === P.length && (pe = []), A(pe);
4147
4147
  }
4148
4148
  const we = u ? b ? ve : de : void 0;
4149
- return /* @__PURE__ */ w(aa, { children: [
4149
+ return /* @__PURE__ */ w(la, { children: [
4150
4150
  u ? /* @__PURE__ */ w(Xt, { center: !0, children: [
4151
4151
  /* @__PURE__ */ n(z, { variant: "caption", children: p.length > 0 ? $.formatMessage(
4152
4152
  { id: "c4r.widgets.category.selectedItems" },
@@ -4175,7 +4175,7 @@ function ds({
4175
4175
  ) : null })
4176
4176
  ] }) : null,
4177
4177
  b ? /* @__PURE__ */ n(Xt, { children: /* @__PURE__ */ n(
4178
- pa,
4178
+ ga,
4179
4179
  {
4180
4180
  size: "small",
4181
4181
  placeholder: $.formatMessage({
@@ -4188,7 +4188,7 @@ function ds({
4188
4188
  }
4189
4189
  }
4190
4190
  ) }) : null,
4191
- /* @__PURE__ */ w(la, { children: [
4191
+ /* @__PURE__ */ w(sa, { children: [
4192
4192
  R.length === 0 ? /* @__PURE__ */ w(ie, { children: [
4193
4193
  /* @__PURE__ */ n(z, { variant: "body2", children: $.formatMessage({
4194
4194
  id: "c4r.widgets.category.noResults"
@@ -4198,8 +4198,8 @@ function ds({
4198
4198
  { searchValue: T }
4199
4199
  ) })
4200
4200
  ] }) : null,
4201
- R.map((V) => /* @__PURE__ */ n(ga, { children: /* @__PURE__ */ n(
4202
- Ma,
4201
+ R.map((V) => /* @__PURE__ */ n(ha, { children: /* @__PURE__ */ n(
4202
+ Ia,
4203
4203
  {
4204
4204
  item: V,
4205
4205
  animation: l,
@@ -4229,42 +4229,42 @@ function ds({
4229
4229
  }
4230
4230
  ) : null,
4231
4231
  b ? /* @__PURE__ */ n(Pe, { size: "small", color: "primary", onClick: K, children: $.formatMessage({ id: "c4r.widgets.category.cancel" }) }) : null,
4232
- /* @__PURE__ */ n(sa, { children: e.map((V, ee) => /* @__PURE__ */ w(Bn, { children: [
4232
+ /* @__PURE__ */ n(ca, { children: e.map((V, ee) => /* @__PURE__ */ w(Bn, { children: [
4233
4233
  /* @__PURE__ */ n(_n, { color: (r == null ? void 0 : r[ee]) ?? h.palette.background.default }),
4234
4234
  /* @__PURE__ */ n(z, { variant: "overline", children: V })
4235
4235
  ] }, e[ee])) })
4236
4236
  ] });
4237
4237
  }
4238
- const Ca = m(z)(({ theme: e }) => ({
4238
+ const Ta = m(z)(({ theme: e }) => ({
4239
4239
  display: "inline-block",
4240
4240
  marginTop: e.spacing(0.5)
4241
4241
  }));
4242
- function Ta({
4242
+ function Aa({
4243
4243
  row: e
4244
4244
  }) {
4245
4245
  const t = le();
4246
- 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;
4246
+ return e.label ? /* @__PURE__ */ n(S, { color: e.color ?? t.palette.text.secondary, children: /* @__PURE__ */ n(Ta, { color: "inherit", variant: "caption", children: e.label }) }) : null;
4247
4247
  }
4248
- const Aa = m("div")(({ theme: e }) => ({
4248
+ const Ea = m("div")(({ theme: e }) => ({
4249
4249
  margin: 0,
4250
4250
  ...e.typography.h5,
4251
4251
  fontWeight: Number(e.typography.fontWeightMedium),
4252
4252
  color: e.palette.text.primary,
4253
4253
  display: "flex"
4254
- })), Ea = m(z)(({ theme: e }) => ({
4255
- marginRight: e.spacing(0.5)
4256
4254
  })), La = m(z)(({ theme: e }) => ({
4255
+ marginRight: e.spacing(0.5)
4256
+ })), Da = m(z)(({ theme: e }) => ({
4257
4257
  marginLeft: e.spacing(0.5)
4258
4258
  }));
4259
- function Da({
4259
+ function Pa({
4260
4260
  row: e,
4261
4261
  animated: t,
4262
4262
  animationOptions: i,
4263
4263
  formatter: r
4264
4264
  }) {
4265
4265
  const o = le(), { prefix: a, value: l, suffix: d, shouldBeHighlighted: s } = e;
4266
- return /* @__PURE__ */ w(Aa, { children: [
4267
- a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Ea, { color: "inherit", component: "span", variant: "subtitle2", children: a }) }) : null,
4266
+ return /* @__PURE__ */ w(Ea, { children: [
4267
+ a ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(La, { color: "inherit", component: "span", variant: "subtitle2", children: a }) }) : null,
4268
4268
  /* @__PURE__ */ n(S, { fontWeight: s ? "bold" : "", children: /* @__PURE__ */ n(
4269
4269
  zn,
4270
4270
  {
@@ -4274,26 +4274,26 @@ function Da({
4274
4274
  formatter: r
4275
4275
  }
4276
4276
  ) }),
4277
- d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(La, { color: "inherit", component: "span", variant: "subtitle2", children: d }) }) : null
4277
+ d ? /* @__PURE__ */ n(S, { color: o.palette.text.secondary, children: /* @__PURE__ */ n(Da, { color: "inherit", component: "span", variant: "subtitle2", children: d }) }) : null
4278
4278
  ] });
4279
4279
  }
4280
- const Pa = (e) => e, Zt = [], $a = m("div")(({ theme: e }) => ({
4280
+ const $a = (e) => e, Zt = [], Oa = m("div")(({ theme: e }) => ({
4281
4281
  "&:nth-of-type(n+2)": {
4282
4282
  marginTop: e.spacing(2)
4283
4283
  }
4284
4284
  }));
4285
- function us({
4285
+ function ps({
4286
4286
  data: e = Zt,
4287
4287
  colors: t = Zt,
4288
4288
  animated: i = !0,
4289
4289
  animationOptions: r,
4290
- formatter: o = Pa,
4290
+ formatter: o = $a,
4291
4291
  isLoading: a = !1
4292
4292
  }) {
4293
- const l = Oa(e, t);
4294
- return a ? /* @__PURE__ */ n(Cn, {}) : /* @__PURE__ */ n("div", { children: l.map((d, s) => /* @__PURE__ */ w($a, { children: [
4293
+ const l = Wa(e, t);
4294
+ return a ? /* @__PURE__ */ n(Cn, {}) : /* @__PURE__ */ n("div", { children: l.map((d, s) => /* @__PURE__ */ w(Oa, { children: [
4295
4295
  /* @__PURE__ */ n(
4296
- Da,
4296
+ Pa,
4297
4297
  {
4298
4298
  row: d,
4299
4299
  animated: i,
@@ -4301,14 +4301,14 @@ function us({
4301
4301
  formatter: o
4302
4302
  }
4303
4303
  ),
4304
- /* @__PURE__ */ n(Ta, { row: d })
4304
+ /* @__PURE__ */ n(Aa, { row: d })
4305
4305
  ] }, s)) });
4306
4306
  }
4307
- function Oa(e, t) {
4307
+ function Wa(e, t) {
4308
4308
  const i = e.map((o, a) => ({ ...o, color: t[a], shouldBeHighlighted: !1 })).filter((o) => o.value !== void 0);
4309
4309
  return i && i.length > 1 && (i[0].shouldBeHighlighted = !0), i;
4310
4310
  }
4311
- function Wa(e, t = [], i = [], r, o = []) {
4311
+ function Ra(e, t = [], i = [], r, o = []) {
4312
4312
  return e.map((a, l) => {
4313
4313
  const d = o.length > 0 && !o.includes(a.name), u = (t != null && t.length ? t : r.palette.qualitative.bold)[l];
4314
4314
  return {
@@ -4319,7 +4319,7 @@ function Wa(e, t = [], i = [], r, o = []) {
4319
4319
  };
4320
4320
  });
4321
4321
  }
4322
- function Ra(e, t, i) {
4322
+ function Fa(e, t, i) {
4323
4323
  const r = `
4324
4324
  font-size: 12px;
4325
4325
  line-height: 1.33;
@@ -4339,23 +4339,23 @@ function Ra(e, t, i) {
4339
4339
  <p style="${o}">${String(a.marker)} ${s} (${u} %)</p>
4340
4340
  `.trim();
4341
4341
  }
4342
- const Fa = (e) => e, Na = () => {
4343
- }, Ke = [], Ba = "260px";
4344
- function ps({
4342
+ const Na = (e) => e, Ba = () => {
4343
+ }, Ke = [], _a = "260px";
4344
+ function gs({
4345
4345
  names: e = Ke,
4346
4346
  data: t = Ke,
4347
4347
  labels: i = Ke,
4348
4348
  colors: r = Ke,
4349
- height: o = Ba,
4349
+ height: o = _a,
4350
4350
  animation: a = !0,
4351
- formatter: l = Fa,
4352
- tooltipFormatter: d = Ra,
4351
+ formatter: l = Na,
4352
+ tooltipFormatter: d = Fa,
4353
4353
  selectedCategories: s = [],
4354
- onCategorySelected: u = Na,
4354
+ onCategorySelected: u = Ba,
4355
4355
  isLoading: p = !1
4356
4356
  }) {
4357
4357
  const c = le(), y = re(), g = F(() => t.map(
4358
- (b, k) => Wa(b, r[k], i[k], c, s)
4358
+ (b, k) => Ra(b, r[k], i[k], c, s)
4359
4359
  ), [t, r, i, c, s]), f = F(() => {
4360
4360
  const b = g.length > 1;
4361
4361
  let k;
@@ -4498,14 +4498,14 @@ function ps({
4498
4498
  }
4499
4499
  ) : null;
4500
4500
  }
4501
- const _a = () => {
4501
+ const za = () => {
4502
4502
  };
4503
- function za({
4503
+ function Ha({
4504
4504
  icon: e,
4505
4505
  hoverTooltip: t,
4506
4506
  clickTooltip: i,
4507
4507
  enabled: r,
4508
- onEnabledChange: o = _a,
4508
+ onEnabledChange: o = za,
4509
4509
  tooltipPlacement: a = "bottom"
4510
4510
  }) {
4511
4511
  const [l, d] = _(!1), [s, u] = _(r);
@@ -4520,7 +4520,7 @@ function za({
4520
4520
  window.removeEventListener("keydown", c);
4521
4521
  };
4522
4522
  }
4523
- }, [r, o]), /* @__PURE__ */ n(oi, { onClickAway: () => u(!1), children: /* @__PURE__ */ n(
4523
+ }, [r, o]), /* @__PURE__ */ n(ai, { onClickAway: () => u(!1), children: /* @__PURE__ */ n(
4524
4524
  ue,
4525
4525
  {
4526
4526
  title: s ? i : t,
@@ -4531,7 +4531,7 @@ function za({
4531
4531
  s || d(!1);
4532
4532
  },
4533
4533
  children: /* @__PURE__ */ n(
4534
- ai,
4534
+ li,
4535
4535
  {
4536
4536
  value: "selectedMode",
4537
4537
  selected: r,
@@ -4542,31 +4542,31 @@ function za({
4542
4542
  }
4543
4543
  ) });
4544
4544
  }
4545
- const Ha = m(fe, {
4545
+ const ja = m(fe, {
4546
4546
  shouldForwardProp: (e) => e !== "isOpen"
4547
4547
  })(({ isOpen: e, theme: t }) => ({
4548
4548
  color: t.palette.text.secondary,
4549
4549
  width: t.spacing(3),
4550
4550
  transform: `rotate(${e ? "180" : "0"}deg)`,
4551
4551
  backgroundColor: e ? t.palette.action.hover : void 0
4552
- })), ja = m($e, {
4552
+ })), Ya = m($e, {
4553
4553
  shouldForwardProp: (e) => e !== "disabled"
4554
4554
  })(({ disabled: e, theme: t }) => ({
4555
4555
  ...e && {
4556
4556
  pointerEvents: "none",
4557
4557
  color: t.palette.text.disabled
4558
4558
  }
4559
- })), Ya = m($e)(() => ({
4559
+ })), Va = m($e)(() => ({
4560
4560
  "&.Mui-disabled": {
4561
4561
  opacity: 1
4562
4562
  }
4563
- })), Va = () => {
4563
+ })), Ga = () => {
4564
4564
  };
4565
- function Ga({
4565
+ function Ua({
4566
4566
  selectionModes: e,
4567
4567
  editModes: t,
4568
4568
  selectedMode: i,
4569
- onSelectMode: r = Va,
4569
+ onSelectMode: r = Ga,
4570
4570
  enabled: o,
4571
4571
  tooltipPlacement: a = "bottom",
4572
4572
  tooltipText: l = "",
@@ -4578,7 +4578,7 @@ function Ga({
4578
4578
  }, h = !!e.length && !!t.length, b = (M) => t.some((C) => C.id === M.id);
4579
4579
  function k(M) {
4580
4580
  return /* @__PURE__ */ n(
4581
- ja,
4581
+ Ya,
4582
4582
  {
4583
4583
  selected: o && i === M.id,
4584
4584
  onClick: () => v(M.id),
@@ -4593,7 +4593,7 @@ function Ga({
4593
4593
  }
4594
4594
  return /* @__PURE__ */ w(ie, { children: [
4595
4595
  /* @__PURE__ */ n(ue, { title: l, placement: a, children: /* @__PURE__ */ n(
4596
- Ha,
4596
+ ja,
4597
4597
  {
4598
4598
  id: "feature-selection-menu-button",
4599
4599
  "aria-controls": "feature-selection-menu",
@@ -4601,7 +4601,7 @@ function Ga({
4601
4601
  "aria-expanded": y ? "true" : void 0,
4602
4602
  onClick: g,
4603
4603
  isOpen: y,
4604
- children: /* @__PURE__ */ n(Si, {})
4604
+ children: /* @__PURE__ */ n(Mi, {})
4605
4605
  }
4606
4606
  ) }),
4607
4607
  /* @__PURE__ */ w(
@@ -4614,7 +4614,7 @@ function Ga({
4614
4614
  onClose: f,
4615
4615
  MenuListProps: { "aria-labelledby": "feature-selection-menu-button" },
4616
4616
  children: [
4617
- d && /* @__PURE__ */ n(Ya, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: d }) }),
4617
+ d && /* @__PURE__ */ n(Va, { disabled: !0, children: /* @__PURE__ */ n(z, { variant: "caption", color: "textSecondary", children: d }) }),
4618
4618
  !!e.length && e.map(k),
4619
4619
  h && /* @__PURE__ */ n(vt, { sx: { margin: ({ spacing: M }) => M(1, 0) } }),
4620
4620
  !!t.length && t.map(k)
@@ -4623,7 +4623,7 @@ function Ga({
4623
4623
  )
4624
4624
  ] });
4625
4625
  }
4626
- const Ua = m(ci)(({ theme: e }) => ({
4626
+ const qa = m(di)(({ theme: e }) => ({
4627
4627
  display: "flex",
4628
4628
  alignItems: "center",
4629
4629
  marginLeft: e.spacing(1.5),
@@ -4635,11 +4635,11 @@ const Ua = m(ci)(({ theme: e }) => ({
4635
4635
  "&::-webkit-scrollbar": {
4636
4636
  display: "none"
4637
4637
  }
4638
- })), qa = () => {
4638
+ })), Xa = () => {
4639
4639
  };
4640
- function Xa({
4640
+ function Ka({
4641
4641
  features: e,
4642
- onSelectGeometry: t = qa,
4642
+ onSelectGeometry: t = Xa,
4643
4643
  onDeleteGeometry: i,
4644
4644
  chipTooltip: r,
4645
4645
  disabledChipTooltip: o,
@@ -4663,7 +4663,7 @@ function Xa({
4663
4663
  return d || ((b = f.properties) == null ? void 0 : b.name) || `${h} ${v + 1}`;
4664
4664
  }
4665
4665
  const [y, g] = _(!1);
4666
- return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(Ua, { sx: { gap: a === "small" ? 0.5 : 1 }, children: e.map((f, v) => {
4666
+ return /* @__PURE__ */ n(S, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ n(qa, { sx: { gap: a === "small" ? 0.5 : 1 }, children: e.map((f, v) => {
4667
4667
  var C, x;
4668
4668
  const h = (C = f.properties) == null ? void 0 : C.disabled, b = (x = f.properties) == null ? void 0 : x.invalid;
4669
4669
  let k = r;
@@ -4673,23 +4673,23 @@ function Xa({
4673
4673
  id: "c4r.widgets.featureSelection.remove"
4674
4674
  }));
4675
4675
  let M = "secondary";
4676
- return h && (M = "default"), b && (M = "error"), /* @__PURE__ */ n(li, { disablePadding: !0, children: /* @__PURE__ */ n(
4676
+ return h && (M = "default"), b && (M = "error"), /* @__PURE__ */ n(si, { disablePadding: !0, children: /* @__PURE__ */ n(
4677
4677
  ue,
4678
4678
  {
4679
4679
  disableHoverListener: h ? !o : !r,
4680
4680
  title: k,
4681
4681
  placement: l,
4682
4682
  children: /* @__PURE__ */ n(
4683
- si,
4683
+ ci,
4684
4684
  {
4685
4685
  size: a,
4686
4686
  label: c(f, v),
4687
4687
  color: M,
4688
4688
  onClick: () => t(f),
4689
4689
  onDelete: i ? () => i(f) : void 0,
4690
- icon: b ? /* @__PURE__ */ n(Mi, { color: "error" }) : void 0,
4690
+ icon: b ? /* @__PURE__ */ n(Ii, { color: "error" }) : void 0,
4691
4691
  deleteIcon: /* @__PURE__ */ n(
4692
- Ii,
4692
+ Ci,
4693
4693
  {
4694
4694
  onMouseEnter: () => g(!0),
4695
4695
  onMouseLeave: () => g(!1)
@@ -4701,16 +4701,16 @@ function Xa({
4701
4701
  ) }, v);
4702
4702
  }) }) });
4703
4703
  }
4704
- const Ka = m(hn)(({ theme: e }) => ({
4704
+ const Za = m(hn)(({ theme: e }) => ({
4705
4705
  display: "flex",
4706
4706
  alignItems: "center",
4707
4707
  justifyContent: "space-between",
4708
4708
  maxHeight: e.spacing(5),
4709
4709
  padding: e.spacing(0.5)
4710
- })), Za = [];
4711
- function gs({
4710
+ })), Ja = [];
4711
+ function hs({
4712
4712
  selectionModes: e,
4713
- editModes: t = Za,
4713
+ editModes: t = Ja,
4714
4714
  selectedMode: i,
4715
4715
  onSelectMode: r,
4716
4716
  enabled: o = !1,
@@ -4756,9 +4756,9 @@ function gs({
4756
4756
  }) : g.formatMessage({
4757
4757
  id: "c4r.widgets.featureSelection.clickToCreate"
4758
4758
  });
4759
- return /* @__PURE__ */ w(Ka, { children: [
4759
+ return /* @__PURE__ */ w(Za, { children: [
4760
4760
  /* @__PURE__ */ n(
4761
- za,
4761
+ Ha,
4762
4762
  {
4763
4763
  icon: h == null ? void 0 : h.icon,
4764
4764
  hoverTooltip: k,
@@ -4769,7 +4769,7 @@ function gs({
4769
4769
  }
4770
4770
  ),
4771
4771
  /* @__PURE__ */ n(
4772
- Ga,
4772
+ Ua,
4773
4773
  {
4774
4774
  selectionModes: f,
4775
4775
  editModes: v,
@@ -4787,7 +4787,7 @@ function gs({
4787
4787
  }
4788
4788
  ),
4789
4789
  !!l && /* @__PURE__ */ n(
4790
- Xa,
4790
+ Ka,
4791
4791
  {
4792
4792
  features: [l],
4793
4793
  onSelectGeometry: d,
@@ -4808,7 +4808,7 @@ function gs({
4808
4808
  function Jt(e) {
4809
4809
  return e.charAt(0).toLowerCase() + e.slice(1);
4810
4810
  }
4811
- const Hn = 240, Ja = m(hn, {
4811
+ const Hn = 240, Qa = m(hn, {
4812
4812
  shouldForwardProp: (e) => e !== "collapsed"
4813
4813
  })(({ theme: e, collapsed: t }) => ({
4814
4814
  width: t ? "min-content" : Hn,
@@ -4816,7 +4816,7 @@ const Hn = 240, Ja = m(hn, {
4816
4816
  maxHeight: "calc(100% - 120px)",
4817
4817
  display: "flex",
4818
4818
  flexDirection: "column"
4819
- })), Qa = m("header", {
4819
+ })), el = m("header", {
4820
4820
  shouldForwardProp: (e) => e !== "collapsed"
4821
4821
  })(({ theme: e, collapsed: t }) => ({
4822
4822
  display: "flex",
@@ -4825,7 +4825,7 @@ const Hn = 240, Ja = m(hn, {
4825
4825
  padding: e.spacing(1),
4826
4826
  paddingLeft: e.spacing(2),
4827
4827
  borderBottom: t ? void 0 : `1px solid ${e.palette.divider}`
4828
- })), el = m("header")(({ theme: e }) => ({
4828
+ })), tl = m("header")(({ theme: e }) => ({
4829
4829
  padding: e.spacing(1.5),
4830
4830
  paddingRight: e.spacing(2),
4831
4831
  gap: e.spacing(0.5),
@@ -4835,13 +4835,13 @@ const Hn = 240, Ja = m(hn, {
4835
4835
  zIndex: 2,
4836
4836
  top: 0,
4837
4837
  background: e.palette.background.paper
4838
- })), tl = m("div")(({ theme: e }) => ({
4838
+ })), nl = m("div")(({ theme: e }) => ({
4839
4839
  display: "flex",
4840
4840
  gap: e.spacing(2),
4841
4841
  alignItems: "center",
4842
4842
  padding: e.spacing(1),
4843
4843
  minWidth: `calc(${Hn}px - ${e.spacing(4)})`
4844
- })), nl = m(ot)(({ theme: e }) => ({
4844
+ })), il = m(ot)(({ theme: e }) => ({
4845
4845
  display: "flex",
4846
4846
  width: e.spacing(7.5),
4847
4847
  flexShrink: 0,
@@ -4849,7 +4849,7 @@ const Hn = 240, Ja = m(hn, {
4849
4849
  WebkitAppearance: "none",
4850
4850
  margin: 0
4851
4851
  }
4852
- })), il = m("ul", {
4852
+ })), rl = m("ul", {
4853
4853
  shouldForwardProp: (e) => e !== "opacity"
4854
4854
  })(({ theme: e, opacity: t }) => ({
4855
4855
  opacity: t,
@@ -4864,10 +4864,10 @@ const Hn = 240, Ja = m(hn, {
4864
4864
  paddingBottom: e.spacing(1),
4865
4865
  display: "flex",
4866
4866
  flexDirection: "column"
4867
- })), rl = m("li")(() => ({
4867
+ })), ol = m("li")(() => ({
4868
4868
  display: "flex",
4869
4869
  alignItems: "center"
4870
- })), ol = m("div")(({ theme: e }) => ({
4870
+ })), al = m("div")(({ theme: e }) => ({
4871
4871
  marginRight: e.spacing(1.5),
4872
4872
  width: pt,
4873
4873
  height: pt,
@@ -4881,16 +4881,16 @@ const Hn = 240, Ja = m(hn, {
4881
4881
  width: e,
4882
4882
  overflow: "auto",
4883
4883
  maxHeight: `calc(100% - ${t.spacing(1.5)})`
4884
- })), al = m("section")(({ theme: e }) => ({
4884
+ })), ll = m("section")(({ theme: e }) => ({
4885
4885
  "&:not(:first-of-type)": {
4886
4886
  borderTop: `1px solid ${e.palette.divider}`
4887
4887
  }
4888
- })), ll = m("div")(() => ({
4888
+ })), sl = m("div")(() => ({
4889
4889
  flexGrow: 1,
4890
4890
  flexShrink: 1,
4891
4891
  minWidth: 0
4892
4892
  }));
4893
- function sl({
4893
+ function cl({
4894
4894
  menuRef: e,
4895
4895
  open: t,
4896
4896
  toggleOpen: i,
@@ -4913,13 +4913,13 @@ function sl({
4913
4913
  size: "small",
4914
4914
  color: t ? "primary" : "default",
4915
4915
  onClick: () => i(!t),
4916
- children: /* @__PURE__ */ n(xi, {})
4916
+ children: /* @__PURE__ */ n(bi, {})
4917
4917
  }
4918
4918
  )
4919
4919
  }
4920
4920
  ),
4921
4921
  /* @__PURE__ */ n(
4922
- di,
4922
+ ui,
4923
4923
  {
4924
4924
  open: t,
4925
4925
  onClose: () => i(!1),
@@ -4937,7 +4937,7 @@ function sl({
4937
4937
  sx: { transform: "translate(-12px, 36px)" }
4938
4938
  }
4939
4939
  },
4940
- children: /* @__PURE__ */ w(tl, { children: [
4940
+ children: /* @__PURE__ */ w(nl, { children: [
4941
4941
  /* @__PURE__ */ n(
4942
4942
  xt,
4943
4943
  {
@@ -4949,7 +4949,7 @@ function sl({
4949
4949
  }
4950
4950
  ),
4951
4951
  /* @__PURE__ */ n(
4952
- nl,
4952
+ il,
4953
4953
  {
4954
4954
  size: "small",
4955
4955
  type: "number",
@@ -5005,7 +5005,7 @@ function Lt({
5005
5005
  }
5006
5006
  var Ie = /* @__PURE__ */ ((e) => (e.CATEGORY = "category", e.ICON = "icon", e.CONTINUOUS_RAMP = "continuous_ramp", e.BINS = "bins", e.PROPORTION = "proportion", e))(Ie || {});
5007
5007
  const ut = 20;
5008
- function cl({
5008
+ function dl({
5009
5009
  legend: e
5010
5010
  }) {
5011
5011
  const {
@@ -5017,7 +5017,7 @@ function cl({
5017
5017
  } = e, l = vn(i, t.length), d = t.length > ut, s = se(), u = ce(s);
5018
5018
  return /* @__PURE__ */ w(ie, { children: [
5019
5019
  /* @__PURE__ */ n(jn, { "data-testid": "categories-legend", children: t.slice(0, ut).map((p, c) => /* @__PURE__ */ n(
5020
- gl,
5020
+ hl,
5021
5021
  {
5022
5022
  label: String(p),
5023
5023
  color: l[c % l.length],
@@ -5046,7 +5046,7 @@ function cl({
5046
5046
  )
5047
5047
  ] });
5048
5048
  }
5049
- const dl = ({
5049
+ const ul = ({
5050
5050
  isMax: e,
5051
5051
  color: t,
5052
5052
  isStrokeColor: i,
@@ -5065,7 +5065,7 @@ const dl = ({
5065
5065
  boxSizing: "content-box"
5066
5066
  },
5067
5067
  ...i ? { borderColor: t } : { backgroundColor: t }
5068
- }), ul = ({
5068
+ }), pl = ({
5069
5069
  icon: e,
5070
5070
  color: t,
5071
5071
  maskedIcon: i
@@ -5082,7 +5082,7 @@ const dl = ({
5082
5082
  backgroundColor: "rgba(0,0,0,0)",
5083
5083
  backgroundImage: `url(${e})`
5084
5084
  }
5085
- }), pl = m(S, {
5085
+ }), gl = m(S, {
5086
5086
  shouldForwardProp: (e) => e !== "icon" && e !== "maskedIcon" && e !== "color" && e !== "isStrokeColor"
5087
5087
  })(({ icon: e, maskedIcon: t, color: i, isStrokeColor: r, theme: o }) => ({
5088
5088
  whiteSpace: "nowrap",
@@ -5093,9 +5093,9 @@ const dl = ({
5093
5093
  borderRadius: "50%",
5094
5094
  position: "relative",
5095
5095
  border: "2px solid transparent",
5096
- ...e ? ul({ icon: e, color: i, maskedIcon: t }) : dl({ color: i, isStrokeColor: r, theme: o })
5096
+ ...e ? pl({ icon: e, color: i, maskedIcon: t }) : ul({ color: i, isStrokeColor: r, theme: o })
5097
5097
  }));
5098
- function gl({
5098
+ function hl({
5099
5099
  label: e,
5100
5100
  isStrokeColor: t,
5101
5101
  color: i = "#000",
@@ -5104,7 +5104,7 @@ function gl({
5104
5104
  }) {
5105
5105
  return /* @__PURE__ */ w(S, { component: "li", sx: { display: "flex", alignItems: "center" }, children: [
5106
5106
  /* @__PURE__ */ n(
5107
- pl,
5107
+ gl,
5108
5108
  {
5109
5109
  className: "marker",
5110
5110
  mr: 1.5,
@@ -5130,7 +5130,7 @@ const Ze = 6, rt = {
5130
5130
  1: 9,
5131
5131
  2: 6,
5132
5132
  3: 3
5133
- }, hl = m(S, {
5133
+ }, fl = m(S, {
5134
5134
  shouldForwardProp: (e) => e !== "index"
5135
5135
  })(({ index: e = 0, theme: t }) => {
5136
5136
  const i = t.spacing(rt[e]), r = t.spacing(rt[e]);
@@ -5144,20 +5144,20 @@ const Ze = 6, rt = {
5144
5144
  width: i,
5145
5145
  height: r
5146
5146
  };
5147
- }), fl = m(S)(({ theme: { spacing: e } }) => ({
5147
+ }), ml = m(S)(({ theme: { spacing: e } }) => ({
5148
5148
  display: "flex",
5149
5149
  justifyContent: "flex-end",
5150
5150
  flexShrink: 0,
5151
5151
  position: "relative",
5152
5152
  width: e(rt[0]),
5153
5153
  height: e(rt[0])
5154
- })), ml = m(S)(({ theme: { spacing: e } }) => ({
5154
+ })), yl = m(S)(({ theme: { spacing: e } }) => ({
5155
5155
  display: "flex",
5156
5156
  gap: e(1),
5157
5157
  alignItems: "stretch",
5158
5158
  justifyContent: "stretch",
5159
5159
  padding: e(2, 0)
5160
- })), yl = m(S)(() => ({
5160
+ })), vl = m(S)(() => ({
5161
5161
  display: "flex",
5162
5162
  flexDirection: "column",
5163
5163
  justifyContent: "space-around",
@@ -5165,20 +5165,20 @@ const Ze = 6, rt = {
5165
5165
  flexGrow: 1,
5166
5166
  flexShrink: 1
5167
5167
  }));
5168
- function vl({
5168
+ function wl({
5169
5169
  legend: e
5170
5170
  }) {
5171
- const t = se(), i = ce(t), r = e.showMinMax ?? !0, { min: o, max: a, error: l } = wl(e), [d, s] = l ? [0, 0] : xl(o, a);
5172
- return /* @__PURE__ */ w(ml, { "data-testid": "proportion-legend", children: [
5173
- /* @__PURE__ */ n(fl, { children: [...Array(4)].map((u, p) => /* @__PURE__ */ n(
5174
- hl,
5171
+ 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);
5172
+ return /* @__PURE__ */ w(yl, { "data-testid": "proportion-legend", children: [
5173
+ /* @__PURE__ */ n(ml, { children: [...Array(4)].map((u, p) => /* @__PURE__ */ n(
5174
+ fl,
5175
5175
  {
5176
5176
  index: p,
5177
5177
  component: "span"
5178
5178
  },
5179
5179
  p
5180
5180
  )) }),
5181
- /* @__PURE__ */ n(yl, { children: l ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(z, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ w(ie, { children: [
5181
+ /* @__PURE__ */ n(vl, { children: l ? /* @__PURE__ */ n(S, { maxWidth: 240, children: /* @__PURE__ */ n(z, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ w(ie, { children: [
5182
5182
  /* @__PURE__ */ w(z, { variant: "overline", color: "textSecondary", children: [
5183
5183
  r && i.formatMessage({ id: "c4r.widgets.legend.max" }) + ": ",
5184
5184
  t.formatNumber(a, {
@@ -5204,21 +5204,21 @@ function Yn({ labels: e }) {
5204
5204
  let t = e == null ? void 0 : e[e.length - 1], i = e == null ? void 0 : e[0];
5205
5205
  return Number.isFinite(i) || (i = parseInt(String(i), 10)), Number.isFinite(t) || (t = parseInt(String(t), 10)), [i, t];
5206
5206
  }
5207
- function wl(e) {
5207
+ function xl(e) {
5208
5208
  let t = !1;
5209
5209
  const [i, r] = Yn(e);
5210
5210
  return (Number.isNaN(i) || Number.isNaN(r)) && (t = !0), { min: i, max: r, error: t };
5211
5211
  }
5212
- function xl(e, t) {
5212
+ function bl(e, t) {
5213
5213
  const i = (t - e) / 3;
5214
5214
  return [e + i, t - i];
5215
5215
  }
5216
- function bl({
5216
+ function kl({
5217
5217
  legend: e
5218
5218
  }) {
5219
5219
  const { labels: t = [], icons: i = [] } = e;
5220
- return /* @__PURE__ */ n(jn, { "data-testid": "icon-legend", children: t.map((r, o) => /* @__PURE__ */ w(rl, { children: [
5221
- /* @__PURE__ */ n(ol, { children: /* @__PURE__ */ n(
5220
+ return /* @__PURE__ */ n(jn, { "data-testid": "icon-legend", children: t.map((r, o) => /* @__PURE__ */ w(ol, { children: [
5221
+ /* @__PURE__ */ n(al, { children: /* @__PURE__ */ n(
5222
5222
  "img",
5223
5223
  {
5224
5224
  src: i[o],
@@ -5237,7 +5237,7 @@ function bl({
5237
5237
  )
5238
5238
  ] }, r)) });
5239
5239
  }
5240
- function kl(e) {
5240
+ function Sl(e) {
5241
5241
  return typeof e[0] == "object" && "label" in e[0];
5242
5242
  }
5243
5243
  function en({
@@ -5247,17 +5247,17 @@ function en({
5247
5247
  const { labels: i = [], colors: r = [], showMinMax: o = !0 } = t, a = vn(
5248
5248
  r,
5249
5249
  !i.length || e ? 2 : i.length + 1
5250
- ), l = kl(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);
5250
+ ), 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);
5251
5251
  let y = s[s.length - 1], g = s[0];
5252
5252
  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(z, { variant: "overline", children: "You need to specify valid numbers for the labels property" }) }) : /* @__PURE__ */ w(ie, { children: [
5253
5253
  /* @__PURE__ */ n(S, { display: "flex", pb: 1, children: e ? /* @__PURE__ */ n(
5254
- Sl,
5254
+ Ml,
5255
5255
  {
5256
5256
  "data-testid": "step-continuous",
5257
5257
  palette: a
5258
5258
  }
5259
5259
  ) : /* @__PURE__ */ n(
5260
- Il,
5260
+ Cl,
5261
5261
  {
5262
5262
  palette: a,
5263
5263
  labels: s,
@@ -5271,7 +5271,7 @@ function en({
5271
5271
  ] })
5272
5272
  ] }) });
5273
5273
  }
5274
- const Sl = m(S, {
5274
+ const Ml = m(S, {
5275
5275
  shouldForwardProp: (e) => e !== "palette"
5276
5276
  })(({ palette: e, theme: t }) => ({
5277
5277
  display: "block",
@@ -5279,7 +5279,7 @@ const Sl = m(S, {
5279
5279
  height: t.spacing(1),
5280
5280
  borderRadius: t.spacing(0.5),
5281
5281
  background: `linear-gradient(to right, ${e.join()})`
5282
- })), Ml = m(S, {
5282
+ })), Il = m(S, {
5283
5283
  shouldForwardProp: (e) => e !== "color"
5284
5284
  })(({ color: e, theme: t }) => ({
5285
5285
  display: "block",
@@ -5293,7 +5293,7 @@ const Sl = m(S, {
5293
5293
  borderRadius: t.spacing(0, 0.5, 0.5, 0)
5294
5294
  }
5295
5295
  }));
5296
- function Il({
5296
+ function Cl({
5297
5297
  labels: e = [],
5298
5298
  palette: t = [],
5299
5299
  max: i,
@@ -5302,17 +5302,17 @@ function Il({
5302
5302
  const o = e.length ? [r, ...e] : [r, i];
5303
5303
  return /* @__PURE__ */ n(ie, { children: o.map((a, l) => {
5304
5304
  const d = l === 0 ? r : l === o.length - 1 ? i : `${a} - ${o[l + 1]}`;
5305
- return /* @__PURE__ */ n(ue, { title: d, children: /* @__PURE__ */ n(Ml, { "data-testid": "step-discontinuous", color: t[l] }) }, l);
5305
+ return /* @__PURE__ */ n(ue, { title: d, children: /* @__PURE__ */ n(Il, { "data-testid": "step-discontinuous", color: t[l] }) }, l);
5306
5306
  }) });
5307
5307
  }
5308
- const Cl = {
5309
- [Ie.CATEGORY]: cl,
5310
- [Ie.PROPORTION]: vl,
5311
- [Ie.ICON]: bl,
5308
+ const Tl = {
5309
+ [Ie.CATEGORY]: dl,
5310
+ [Ie.PROPORTION]: wl,
5311
+ [Ie.ICON]: kl,
5312
5312
  [Ie.BINS]: (e) => /* @__PURE__ */ n(en, { ...e, isContinuous: !1 }),
5313
5313
  [Ie.CONTINUOUS_RAMP]: (e) => /* @__PURE__ */ n(en, { ...e, isContinuous: !0 })
5314
5314
  };
5315
- function Tl({ legend: e }) {
5315
+ function Al({ legend: e }) {
5316
5316
  const t = se(), i = ce(t);
5317
5317
  return e.select || !e.type ? null : /* @__PURE__ */ w(z, { variant: "body2", color: "textSecondary", component: "p", children: [
5318
5318
  e.type,
@@ -5321,17 +5321,17 @@ function Tl({ legend: e }) {
5321
5321
  "."
5322
5322
  ] });
5323
5323
  }
5324
- function Al(e) {
5324
+ function El(e) {
5325
5325
  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";
5326
5326
  }
5327
- function El({
5327
+ function Ll({
5328
5328
  layer: e,
5329
5329
  legend: t,
5330
5330
  customLegendTypes: i,
5331
5331
  onChangeSelection: r
5332
5332
  }) {
5333
5333
  var p;
5334
- const o = se(), a = ce(o), l = t.type, s = Cl[l] ?? i[l] ?? Tl, u = ((p = t.select) == null ? void 0 : p.options) ?? [];
5334
+ const o = se(), a = ce(o), l = t.type, s = Tl[l] ?? i[l] ?? Al, u = ((p = t.select) == null ? void 0 : p.options) ?? [];
5335
5335
  return /* @__PURE__ */ w(S, { component: "li", "data-testid": "legend-layer-variable", px: 2, children: [
5336
5336
  t.attr ? /* @__PURE__ */ w(S, { pb: 1, children: [
5337
5337
  /* @__PURE__ */ n(
@@ -5341,7 +5341,7 @@ function El({
5341
5341
  variant: "overlineDelicate",
5342
5342
  color: "textSecondary",
5343
5343
  component: "p",
5344
- children: a.formatMessage({ id: Al(t) })
5344
+ children: a.formatMessage({ id: El(t) })
5345
5345
  }
5346
5346
  ),
5347
5347
  /* @__PURE__ */ n(z, { variant: "caption", component: "p", children: t.attr })
@@ -5349,7 +5349,7 @@ function El({
5349
5349
  t.select ? /* @__PURE__ */ w(S, { pb: 1, children: [
5350
5350
  /* @__PURE__ */ n(z, { variant: "caption", weight: "medium", component: "p", children: t.select.label }),
5351
5351
  /* @__PURE__ */ n(
5352
- ui,
5352
+ pi,
5353
5353
  {
5354
5354
  "data-testid": "legend-layer-variable-select",
5355
5355
  name: "legend-select",
@@ -5368,19 +5368,19 @@ function El({
5368
5368
  }
5369
5369
  }
5370
5370
  },
5371
- children: u.map((c) => /* @__PURE__ */ n($e, { value: c.value, children: /* @__PURE__ */ n(pi, { primary: c.label }) }, c.value))
5371
+ children: u.map((c) => /* @__PURE__ */ n($e, { value: c.value, children: /* @__PURE__ */ n(gi, { primary: c.label }) }, c.value))
5372
5372
  }
5373
5373
  )
5374
5374
  ] }) : null,
5375
5375
  /* @__PURE__ */ n(s, { layer: e, legend: t })
5376
5376
  ] });
5377
5377
  }
5378
- const Ll = {};
5378
+ const Dl = {};
5379
5379
  function Vn(e) {
5380
5380
  return e ? Array.isArray(e) ? e.every((t) => Vn(t)) : !e.select && !e.type : !0;
5381
5381
  }
5382
5382
  function tn({
5383
- customLegendTypes: e = Ll,
5383
+ customLegendTypes: e = Dl,
5384
5384
  layer: t,
5385
5385
  onChangeCollapsed: i,
5386
5386
  onChangeOpacity: r,
@@ -5390,15 +5390,15 @@ function tn({
5390
5390
  minZoom: d = 0,
5391
5391
  currentZoom: s = 0
5392
5392
  }) {
5393
- const u = se(), p = ce(u), c = re(null), [y, g] = _(!1), f = t.id, v = t.title, h = t.visible ?? !0, b = t.switchable ?? !0, k = t.collapsed ?? !1, M = (t.collapsible ?? !0) && !Vn(t.legend), C = t.opacity ?? 1, x = t.showOpacityControl ?? !0, A = h && !k, T = 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, $ = t.maxZoom ?? l, P = O && (L > d || $ < l), W = s < L || s > $, J = Dl({
5393
+ const u = se(), p = ce(u), c = re(null), [y, g] = _(!1), f = t.id, v = t.title, h = t.visible ?? !0, b = t.switchable ?? !0, k = t.collapsed ?? !1, M = (t.collapsible ?? !0) && !Vn(t.legend), C = t.opacity ?? 1, x = t.showOpacityControl ?? !0, A = h && !k, T = 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, $ = t.maxZoom ?? l, P = O && (L > d || $ < l), W = s < L || s > $, J = Pl({
5394
5394
  intl: p,
5395
5395
  minZoom: d,
5396
5396
  maxZoom: l,
5397
5397
  layerMinZoom: L,
5398
5398
  layerMaxZoom: $
5399
5399
  }), G = t.helperText ?? (P ? J : ""), E = F(() => t.legend ? Array.isArray(t.legend) ? t.legend : [t.legend] : [], [t.legend]);
5400
- return t.legend ? /* @__PURE__ */ w(al, { "data-testid": "legend-layer", "aria-label": v, children: [
5401
- /* @__PURE__ */ w(el, { ref: c, children: [
5400
+ return t.legend ? /* @__PURE__ */ w(ll, { "data-testid": "legend-layer", "aria-label": v, children: [
5401
+ /* @__PURE__ */ w(tl, { ref: c, children: [
5402
5402
  M && /* @__PURE__ */ n(
5403
5403
  fe,
5404
5404
  {
@@ -5411,7 +5411,7 @@ function tn({
5411
5411
  children: T
5412
5412
  }
5413
5413
  ),
5414
- /* @__PURE__ */ w(ll, { children: [
5414
+ /* @__PURE__ */ w(sl, { children: [
5415
5415
  /* @__PURE__ */ n(Lt, { visible: h, title: v ?? "" }),
5416
5416
  P && /* @__PURE__ */ n(
5417
5417
  ue,
@@ -5440,7 +5440,7 @@ function tn({
5440
5440
  )
5441
5441
  ] }),
5442
5442
  x && h && !k && /* @__PURE__ */ n(
5443
- sl,
5443
+ cl,
5444
5444
  {
5445
5445
  menuRef: c,
5446
5446
  open: y,
@@ -5464,7 +5464,7 @@ function tn({
5464
5464
  collapsed: h ? k : !1,
5465
5465
  visible: !h
5466
5466
  }),
5467
- children: h ? /* @__PURE__ */ n(Ci, {}) : /* @__PURE__ */ n(Ti, {})
5467
+ children: h ? /* @__PURE__ */ n(Ti, {}) : /* @__PURE__ */ n(Ai, {})
5468
5468
  }
5469
5469
  )
5470
5470
  }
@@ -5472,12 +5472,12 @@ function tn({
5472
5472
  ] }),
5473
5473
  /* @__PURE__ */ w(St, { unmountOnExit: !0, timeout: 100, in: A, children: [
5474
5474
  /* @__PURE__ */ n(
5475
- il,
5475
+ rl,
5476
5476
  {
5477
5477
  "data-testid": "legend-layer-variable-list",
5478
5478
  opacity: W ? 0.5 : 1,
5479
5479
  children: E.map((N, I) => /* @__PURE__ */ n(
5480
- El,
5480
+ Ll,
5481
5481
  {
5482
5482
  legend: N,
5483
5483
  layer: t,
@@ -5501,7 +5501,7 @@ function tn({
5501
5501
  ] })
5502
5502
  ] }) : null;
5503
5503
  }
5504
- function Dl({
5504
+ function Pl({
5505
5505
  intl: e,
5506
5506
  minZoom: t,
5507
5507
  maxZoom: i,
@@ -5513,11 +5513,11 @@ function Dl({
5513
5513
  }), 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} `);
5514
5514
  return c ? `${s} ${c}` : "";
5515
5515
  }
5516
- const Pl = {}, He = () => {
5517
- }, $l = [];
5518
- function hs({
5519
- customLegendTypes: e = Pl,
5520
- layers: t = $l,
5516
+ const $l = {}, He = () => {
5517
+ }, Ol = [];
5518
+ function fs({
5519
+ customLegendTypes: e = $l,
5520
+ layers: t = Ol,
5521
5521
  collapsed: i = !1,
5522
5522
  onChangeCollapsed: r = He,
5523
5523
  onChangeVisibility: o = He,
@@ -5531,26 +5531,26 @@ function hs({
5531
5531
  isMobile: y,
5532
5532
  sx: g
5533
5533
  }) {
5534
- const f = se(), v = ce(f), h = /* @__PURE__ */ w(Qa, { collapsed: i, children: [
5534
+ const f = se(), v = ce(f), h = /* @__PURE__ */ w(el, { collapsed: i, children: [
5535
5535
  /* @__PURE__ */ n(z, { variant: "caption", flexGrow: 1, children: s }),
5536
5536
  /* @__PURE__ */ n(
5537
5537
  ue,
5538
5538
  {
5539
5539
  title: v.formatMessage({ id: "c4r.widgets.legend.close" }),
5540
- children: /* @__PURE__ */ n(fe, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(Ai, {}) })
5540
+ children: /* @__PURE__ */ n(fe, { size: "small", onClick: () => r(!0), children: /* @__PURE__ */ n(Ei, {}) })
5541
5541
  }
5542
5542
  )
5543
5543
  ] }), b = /* @__PURE__ */ n(
5544
5544
  ue,
5545
5545
  {
5546
5546
  title: v.formatMessage({ id: "c4r.widgets.legend.open" }),
5547
- children: /* @__PURE__ */ n(fe, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(Ei, {}) })
5547
+ children: /* @__PURE__ */ n(fe, { "aria-label": s, onClick: () => r(!1), children: /* @__PURE__ */ n(Li, {}) })
5548
5548
  }
5549
5549
  );
5550
- return /* @__PURE__ */ n(Ja, { sx: g, elevation: 3, collapsed: i || !!y, children: y ? /* @__PURE__ */ w(ie, { children: [
5550
+ return /* @__PURE__ */ n(Qa, { sx: g, elevation: 3, collapsed: i || !!y, children: y ? /* @__PURE__ */ w(ie, { children: [
5551
5551
  b,
5552
5552
  /* @__PURE__ */ w(
5553
- gi,
5553
+ hi,
5554
5554
  {
5555
5555
  anchor: "bottom",
5556
5556
  open: !i,
@@ -5609,31 +5609,31 @@ function nn({
5609
5609
  }
5610
5610
  ) }) : /* @__PURE__ */ n(S, { mt: -1 });
5611
5611
  }
5612
- function fs({
5612
+ function ms({
5613
5613
  title: e = "No data available",
5614
5614
  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.",
5615
5615
  severity: i = void 0,
5616
5616
  ...r
5617
5617
  }) {
5618
- return i ? /* @__PURE__ */ n(Di, { title: e, severity: i, ...r, children: /* @__PURE__ */ n(nn, { children: t }) }) : /* @__PURE__ */ w(S, { ...r, children: [
5618
+ return i ? /* @__PURE__ */ n(Pi, { title: e, severity: i, ...r, children: /* @__PURE__ */ n(nn, { children: t }) }) : /* @__PURE__ */ w(S, { ...r, children: [
5619
5619
  e && /* @__PURE__ */ n(z, { variant: "body2", children: e }),
5620
5620
  /* @__PURE__ */ n(nn, { color: "textSecondary", children: t })
5621
5621
  ] });
5622
5622
  }
5623
- const Ol = m(S, {
5623
+ const Wl = m(S, {
5624
5624
  shouldForwardProp: (e) => e !== "margin"
5625
5625
  })(({ theme: e, margin: t }) => ({
5626
5626
  margin: 0,
5627
5627
  position: "relative",
5628
5628
  maxWidth: "100%",
5629
5629
  padding: t ?? e.spacing(2, 2.5)
5630
- })), Wl = m(fi)(({ theme: e }) => ({
5630
+ })), Rl = m(mi)(({ theme: e }) => ({
5631
5631
  position: "absolute",
5632
5632
  top: 0,
5633
5633
  left: 0,
5634
5634
  width: "100%",
5635
5635
  height: e.spacing(0.25)
5636
- })), Rl = m(ae, {
5636
+ })), Fl = m(ae, {
5637
5637
  shouldForwardProp: (e) => e !== "expanded"
5638
5638
  })(({ theme: e, expanded: t = !0 }) => ({
5639
5639
  display: "flex",
@@ -5643,7 +5643,7 @@ const Ol = m(S, {
5643
5643
  width: "100%",
5644
5644
  ...t ? { minHeight: e.spacing(3) } : { height: e.spacing(3) },
5645
5645
  padding: 0
5646
- })), Fl = m(Pe, {
5646
+ })), Nl = m(Pe, {
5647
5647
  shouldForwardProp: (e) => e !== "expandable"
5648
5648
  })(({ theme: e, expandable: t = !0 }) => ({
5649
5649
  flex: 1,
@@ -5668,7 +5668,7 @@ const Ol = m(S, {
5668
5668
  width: e.spacing(3),
5669
5669
  height: e.spacing(3),
5670
5670
  color: e.palette.text.secondary
5671
- }), Nl = m(fn)(({ theme: e }) => Gn({ theme: e })), Bl = m(mn)(({ theme: e }) => Gn({ theme: e })), _l = m(De, {
5671
+ }), Bl = m(fn)(({ theme: e }) => Gn({ theme: e })), _l = m(mn)(({ theme: e }) => Gn({ theme: e })), zl = m(De, {
5672
5672
  shouldForwardProp: (e) => e !== "expanded"
5673
5673
  })(({ expanded: e = !0 }) => ({
5674
5674
  wordBreak: "break-word",
@@ -5682,7 +5682,7 @@ const Ol = m(S, {
5682
5682
  whiteSpace: "nowrap",
5683
5683
  textOverflow: "ellipsis"
5684
5684
  }
5685
- })), zl = m(ae)(({ theme: e }) => ({
5685
+ })), Hl = m(ae)(({ theme: e }) => ({
5686
5686
  display: "flex",
5687
5687
  alignItems: "center",
5688
5688
  gap: e.spacing(1),
@@ -5690,18 +5690,18 @@ const Ol = m(S, {
5690
5690
  marginLeft: e.spacing(1)
5691
5691
  })), rn = m(fe)(({ theme: e }) => ({
5692
5692
  color: e.palette.text.secondary
5693
- })), Hl = m(kt)(({ theme: e }) => ({
5693
+ })), jl = m(kt)(({ theme: e }) => ({
5694
5694
  ".MuiPaper-root": {
5695
5695
  marginTop: e.spacing(5),
5696
5696
  maxHeight: e.spacing(21),
5697
5697
  minWidth: e.spacing(16)
5698
5698
  }
5699
- })), on = [], jl = /* @__PURE__ */ n(Li, {});
5700
- function ms({
5699
+ })), on = [], Yl = /* @__PURE__ */ n(Di, {});
5700
+ function ys({
5701
5701
  title: e,
5702
5702
  actions: t = on,
5703
5703
  options: i = on,
5704
- optionsIcon: r = jl,
5704
+ optionsIcon: r = Yl,
5705
5705
  children: o,
5706
5706
  contentProps: a,
5707
5707
  disabled: l = !1,
@@ -5713,7 +5713,7 @@ function ms({
5713
5713
  isLoading: y = !1,
5714
5714
  margin: g
5715
5715
  }) {
5716
- const f = ti(), [v, h] = _(!0), b = s !== void 0 && u !== void 0, k = d !== !1 ? b ? s : v : !0, M = b ? u : h, [C, x] = _(null), A = !!C, T = () => {
5716
+ const f = ni(), [v, h] = _(!0), b = s !== void 0 && u !== void 0, k = d !== !1 ? b ? s : v : !0, M = b ? u : h, [C, x] = _(null), A = !!C, T = () => {
5717
5717
  d && M(!k);
5718
5718
  }, O = (W) => x(W.currentTarget), L = () => x(null);
5719
5719
  function $(W) {
@@ -5729,20 +5729,20 @@ function ms({
5729
5729
  },
5730
5730
  W.id
5731
5731
  );
5732
- return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ w(Ol, { margin: g, component: "section", "aria-label": e, children: [
5733
- y ? /* @__PURE__ */ n(Wl, {}) : null,
5734
- /* @__PURE__ */ w(Rl, { container: !0, expanded: s, children: [
5732
+ return l ? o ? /* @__PURE__ */ n(ie, { children: o }) : null : /* @__PURE__ */ w(Wl, { margin: g, component: "section", "aria-label": e, children: [
5733
+ y ? /* @__PURE__ */ n(Rl, {}) : null,
5734
+ /* @__PURE__ */ w(Fl, { container: !0, expanded: s, children: [
5735
5735
  /* @__PURE__ */ n(
5736
- Fl,
5736
+ Nl,
5737
5737
  {
5738
5738
  expandable: d,
5739
- startIcon: d && /* @__PURE__ */ n(hi, { children: k ? /* @__PURE__ */ n(Nl, {}) : /* @__PURE__ */ n(Bl, {}) }),
5739
+ startIcon: d && /* @__PURE__ */ n(fi, { children: k ? /* @__PURE__ */ n(Bl, {}) : /* @__PURE__ */ n(_l, {}) }),
5740
5740
  onClick: T,
5741
5741
  tabIndex: d ? 0 : -1,
5742
- children: /* @__PURE__ */ n(ue, { title: e, children: /* @__PURE__ */ n(_l, { expanded: s, align: "left", variant: "subtitle1", children: e }) })
5742
+ children: /* @__PURE__ */ n(ue, { title: e, children: /* @__PURE__ */ n(zl, { expanded: s, align: "left", variant: "subtitle1", children: e }) })
5743
5743
  }
5744
5744
  ),
5745
- /* @__PURE__ */ w(zl, { item: !0, children: [
5745
+ /* @__PURE__ */ w(Hl, { item: !0, children: [
5746
5746
  c,
5747
5747
  t.length > 0 && t.map((W) => W.tooltip ? /* @__PURE__ */ n(
5748
5748
  ue,
@@ -5766,7 +5766,7 @@ function ms({
5766
5766
  }
5767
5767
  ),
5768
5768
  /* @__PURE__ */ n(
5769
- Hl,
5769
+ jl,
5770
5770
  {
5771
5771
  id: "options-menu",
5772
5772
  elevation: 8,
@@ -5803,33 +5803,33 @@ function ms({
5803
5803
  ] });
5804
5804
  }
5805
5805
  export {
5806
- ts as BarWidgetUI,
5807
- ns as CategoryWidgetUI,
5808
- ds as ComparativeCategoryWidgetUI,
5809
- us as ComparativeFormulaWidgetUI,
5810
- ps as ComparativePieWidgetUI,
5811
- Ga as FeatureSelectionUIDropdown,
5812
- Xa as FeatureSelectionUIGeometryChips,
5813
- za as FeatureSelectionUIToggleButton,
5814
- gs as FeatureSelectionWidgetUI,
5815
- is as FormulaWidgetUI,
5806
+ ns as BarWidgetUI,
5807
+ is as CategoryWidgetUI,
5808
+ us as ComparativeCategoryWidgetUI,
5809
+ ps as ComparativeFormulaWidgetUI,
5810
+ gs as ComparativePieWidgetUI,
5811
+ Ua as FeatureSelectionUIDropdown,
5812
+ Ka as FeatureSelectionUIGeometryChips,
5813
+ Ha as FeatureSelectionUIToggleButton,
5814
+ hs as FeatureSelectionWidgetUI,
5815
+ rs as FormulaWidgetUI,
5816
5816
  Se as GroupDateTypes,
5817
- rs as HistogramWidgetUI,
5817
+ os as HistogramWidgetUI,
5818
5818
  Ie as LEGEND_TYPES,
5819
- cl as LegendCategories,
5820
- bl as LegendIcon,
5821
- vl as LegendProportion,
5819
+ dl as LegendCategories,
5820
+ kl as LegendIcon,
5821
+ wl as LegendProportion,
5822
5822
  en as LegendRamp,
5823
- hs as LegendWidgetUI,
5824
- fs as NoDataAlert,
5825
- os as PieWidgetUI,
5826
- as as RangeWidgetUI,
5827
- ls as ScatterPlotWidgetUI,
5823
+ fs as LegendWidgetUI,
5824
+ ms as NoDataAlert,
5825
+ as as PieWidgetUI,
5826
+ ls as RangeWidgetUI,
5827
+ ss as ScatterPlotWidgetUI,
5828
5828
  It as TIME_SERIES_CHART_TYPES,
5829
- ss as TableWidgetUI,
5830
- Eo as TimeSeriesProvider,
5831
- cs as TimeSeriesWidgetUI,
5832
- ms as WrapperWidgetUI,
5829
+ cs as TableWidgetUI,
5830
+ Lo as TimeSeriesProvider,
5831
+ ds as TimeSeriesWidgetUI,
5832
+ ys as WrapperWidgetUI,
5833
5833
  Et as useTimeSeriesContext,
5834
- Lo as useTimeSeriesInteractivity
5834
+ Do as useTimeSeriesInteractivity
5835
5835
  };