@carto/meridian-ds 1.4.3-alpha-codemirror.2 → 1.4.3-alpha-codemirror.4

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.
@@ -1,9 +1,9 @@
1
- import { jsx as n, jsxs as x, Fragment as H } from "react/jsx-runtime";
2
- import { forwardRef as O, useState as B, useEffect as z, useMemo as At, useRef as Z, Fragment as te, useCallback as ot, useImperativeHandle as ee } from "react";
3
- import { styled as m, Box as D, Button as St, CircularProgress as G, TextField as It, InputAdornment as it, IconButton as W, Tooltip as P, Select as oe, MenuItem as $t, FormControl as Bt, InputLabel as Tt, FormHelperText as J, ToggleButtonGroup as re, Menu as ne, MenuList as ie, Link as ae, Checkbox as at, ListItemText as U, Autocomplete as lt, Divider as _, ListItemIcon as rt, createFilterOptions as le, Accordion as ce, AccordionSummary as de, AccordionDetails as se, Avatar as ue, Snackbar as pe, Portal as ge, Fade as fe, Slide as Rt, alpha as Ot, useTheme as j, Toolbar as me, AppBar as be, Paper as he, Dialog as xe, DialogTitle as ye, Chip as Ce, DialogContent as Me, DialogActions as ke } from "@mui/material";
4
- import { T as F, c as N, u as T, N as ft, A as ve } from "../TablePaginationActions-Cj_BbjKR.js";
1
+ import { jsx as n, jsxs as y, Fragment as H } from "react/jsx-runtime";
2
+ import { forwardRef as O, useState as $, useEffect as z, useMemo as At, useRef as Z, Fragment as te, useCallback as ot, useImperativeHandle as ee } from "react";
3
+ import { styled as m, Box as w, Button as St, CircularProgress as G, TextField as It, InputAdornment as it, IconButton as W, Tooltip as P, Select as oe, MenuItem as $t, FormControl as Bt, InputLabel as Tt, FormHelperText as J, ToggleButtonGroup as re, Menu as ne, MenuList as ie, Link as ae, Checkbox as at, ListItemText as U, Autocomplete as lt, Divider as _, ListItemIcon as rt, createFilterOptions as le, Accordion as ce, AccordionSummary as de, AccordionDetails as se, Avatar as ue, Snackbar as pe, Portal as ge, Fade as fe, Slide as Rt, alpha as Ot, useTheme as j, Toolbar as me, AppBar as be, Paper as he, Dialog as xe, DialogTitle as ye, Chip as Ce, DialogContent as Me, DialogActions as ke } from "@mui/material";
4
+ import { T as F, c as N, u as B, N as ft, A as ve } from "../TablePaginationActions-Cj_BbjKR.js";
5
5
  import { a as ei } from "../TablePaginationActions-Cj_BbjKR.js";
6
- import { useIntl as R } from "react-intl";
6
+ import { useIntl as T } from "react-intl";
7
7
  import { VisibilityOffOutlined as we, VisibilityOutlined as De, Cancel as Ft, AddCircleOutlineOutlined as Ae, ContentCopyOutlined as Lt, CloseOutlined as Wt, MenuOutlined as Se, HelpOutline as K, TodayOutlined as Ie, MoreVertOutlined as $e, ErrorOutline as Be, Check as Te } from "@mui/icons-material";
8
8
  import { A as Et } from "../Alert-mpNEqtBu.js";
9
9
  import "cartocolor";
@@ -39,7 +39,7 @@ import "codemirror/addon/fold/indent-fold.js";
39
39
  import "codemirror/addon/fold/markdown-fold.js";
40
40
  import "codemirror/addon/fold/comment-fold.js";
41
41
  import Ge from "@mui/material/ClickAwayListener";
42
- const je = m(D)({
42
+ const je = m(w)({
43
43
  position: "absolute",
44
44
  top: 0,
45
45
  left: 0,
@@ -48,7 +48,7 @@ const je = m(D)({
48
48
  display: "flex",
49
49
  alignItems: "center",
50
50
  justifyContent: "center"
51
- }), Ve = m(D)({
51
+ }), Ve = m(w)({
52
52
  visibility: "hidden",
53
53
  pointerEvents: "none"
54
54
  });
@@ -61,7 +61,7 @@ function Ue({
61
61
  loadingPosition: l,
62
62
  ...a
63
63
  }, c) {
64
- const d = /* @__PURE__ */ n(G, { size: 18, color: "inherit" }), u = e && l === void 0, p = () => u ? /* @__PURE__ */ x(D, { sx: { position: "relative" }, children: [
64
+ const d = /* @__PURE__ */ n(G, { size: 18, color: "inherit" }), u = e && l === void 0, p = () => u ? /* @__PURE__ */ y(w, { sx: { position: "relative" }, children: [
65
65
  /* @__PURE__ */ n(je, { children: d }),
66
66
  /* @__PURE__ */ n(Ve, { children: t })
67
67
  ] }) : t, s = (b) => {
@@ -81,7 +81,7 @@ function Ue({
81
81
  }
82
82
  );
83
83
  }
84
- const nt = O(Ue), Ye = m(D)(({ theme: t }) => ({
84
+ const nt = O(Ue), Ye = m(w)(({ theme: t }) => ({
85
85
  display: "flex",
86
86
  alignItems: "center",
87
87
  gap: t.spacing(0.5)
@@ -89,7 +89,7 @@ const nt = O(Ue), Ye = m(D)(({ theme: t }) => ({
89
89
  ".Mui-disabled &": {
90
90
  color: t.palette.text.disabled
91
91
  }
92
- })), Ze = m(D)(({ theme: t }) => ({
92
+ })), Ze = m(w)(({ theme: t }) => ({
93
93
  display: "flex",
94
94
  svg: {
95
95
  width: N,
@@ -109,7 +109,7 @@ function X({
109
109
  icon: o,
110
110
  inheritSize: r
111
111
  }) {
112
- return /* @__PURE__ */ x(Ye, { children: [
112
+ return /* @__PURE__ */ y(Ye, { children: [
113
113
  t,
114
114
  e && /* @__PURE__ */ n(
115
115
  qe,
@@ -125,7 +125,7 @@ function X({
125
125
  ] });
126
126
  }
127
127
  function Je({ InputProps: t, size: e = "small", ...o }, r) {
128
- const i = R(), l = T(i), [a, c] = B(!1);
128
+ const i = T(), l = B(i), [a, c] = $(!1);
129
129
  return /* @__PURE__ */ n(
130
130
  It,
131
131
  {
@@ -189,12 +189,12 @@ function to({
189
189
  focused: b,
190
190
  disabled: g,
191
191
  fullWidth: f,
192
- required: y,
193
- "aria-label": h,
194
- ...w
195
- }, M) {
196
- const A = o === "small", [C] = B(() => Ke("select-label-")), k = c ? a ?? C : void 0;
197
- return /* @__PURE__ */ x(
192
+ required: C,
193
+ "aria-label": x,
194
+ ...v
195
+ }, k) {
196
+ const D = o === "small", [M] = $(() => Ke("select-label-")), h = c ? a ?? M : void 0;
197
+ return /* @__PURE__ */ y(
198
198
  Bt,
199
199
  {
200
200
  size: o,
@@ -202,32 +202,32 @@ function to({
202
202
  focused: b,
203
203
  disabled: g,
204
204
  fullWidth: f,
205
- required: y,
205
+ required: C,
206
206
  "data-name": "select-field",
207
207
  "data-size": o,
208
208
  children: [
209
- /* @__PURE__ */ x(D, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
210
- c && /* @__PURE__ */ n(Tt, { shrink: !0, id: k, children: c }),
211
- d && /* @__PURE__ */ n(D, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: d })
209
+ /* @__PURE__ */ y(w, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
210
+ c && /* @__PURE__ */ n(Tt, { shrink: !0, id: h, children: c }),
211
+ d && /* @__PURE__ */ n(w, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: d })
212
212
  ] }),
213
- /* @__PURE__ */ x(
213
+ /* @__PURE__ */ y(
214
214
  Xe,
215
215
  {
216
- ...w,
217
- labelId: k,
216
+ ...v,
217
+ labelId: h,
218
218
  name: p,
219
- ref: M,
219
+ ref: k,
220
220
  size: o,
221
221
  fullWidth: f,
222
222
  displayEmpty: r ?? !!e,
223
223
  inputProps: {
224
224
  ...l,
225
- "aria-label": h
225
+ "aria-label": x
226
226
  },
227
227
  MenuProps: {
228
228
  ...i,
229
229
  PopoverClasses: {
230
- paper: A ? "MuiMenu-paper-sizeSmall" : void 0
230
+ paper: D ? "MuiMenu-paper-sizeSmall" : void 0
231
231
  },
232
232
  anchorOrigin: {
233
233
  vertical: "bottom",
@@ -242,7 +242,7 @@ function to({
242
242
  e && /* @__PURE__ */ n(Qe, { disabled: !0, value: "", children: /* @__PURE__ */ n(
243
243
  F,
244
244
  {
245
- variant: A ? "body2" : "body1",
245
+ variant: D ? "body2" : "body1",
246
246
  color: "text.hint",
247
247
  component: "span",
248
248
  children: e
@@ -500,7 +500,7 @@ function fo({
500
500
  "aria-label": i,
501
501
  "data-testid": l
502
502
  }, a) {
503
- const c = R(), d = T(c);
503
+ const c = T(), d = B(c);
504
504
  return /* @__PURE__ */ n(
505
505
  po,
506
506
  {
@@ -509,7 +509,7 @@ function fo({
509
509
  "data-name": "menu-filter",
510
510
  "aria-label": i,
511
511
  "data-testid": l,
512
- children: /* @__PURE__ */ x(
512
+ children: /* @__PURE__ */ y(
513
513
  go,
514
514
  {
515
515
  variant: "body2",
@@ -541,7 +541,7 @@ function mo({
541
541
  options: e,
542
542
  onChange: o
543
543
  }) {
544
- const [r, i] = B(t ?? []), l = e.length === r.length, a = r.length > 0;
544
+ const [r, i] = $(t ?? []), l = e.length === r.length, a = r.length > 0;
545
545
  return z(() => {
546
546
  r !== t && i(r);
547
547
  }, [t]), {
@@ -608,54 +608,54 @@ function Co({
608
608
  areAllSelected: b,
609
609
  areAnySelected: g,
610
610
  currentOptions: f,
611
- handleChange: y,
612
- selectAll: h,
613
- unselectAll: w
611
+ handleChange: C,
612
+ selectAll: x,
613
+ unselectAll: v
614
614
  } = mo({
615
615
  options: t,
616
616
  selectedOptions: e,
617
617
  onChange: a
618
- }), M = o === "small", A = M || u === "standard" ? 0 : 2, C = R(), k = T(C), v = `${f.length} ${k.formatMessage({
618
+ }), k = o === "small", D = k || u === "standard" ? 0 : 2, M = T(), h = B(M), A = `${f.length} ${h.formatMessage({
619
619
  id: "c4r.form.selected"
620
- })}`, $ = At(() => b ? /* @__PURE__ */ n(
620
+ })}`, R = At(() => b ? /* @__PURE__ */ n(
621
621
  F,
622
622
  {
623
623
  component: "span",
624
- variant: M ? "body2" : "body1",
624
+ variant: k ? "body2" : "body1",
625
625
  color: "textPrimary",
626
- ml: A,
627
- children: k.formatMessage({ id: "c4r.form.allSelected" })
626
+ ml: D,
627
+ children: h.formatMessage({ id: "c4r.form.allSelected" })
628
628
  }
629
629
  ) : g ? /* @__PURE__ */ n(
630
630
  F,
631
631
  {
632
632
  component: "span",
633
- variant: M ? "body2" : "body1",
633
+ variant: k ? "body2" : "body1",
634
634
  color: "textPrimary",
635
- ml: A,
636
- children: i && f.length > 1 ? v : f.join(", ")
635
+ ml: D,
636
+ children: i && f.length > 1 ? A : f.join(", ")
637
637
  }
638
638
  ) : /* @__PURE__ */ n(
639
639
  F,
640
640
  {
641
641
  component: "span",
642
- variant: M ? "body2" : "body1",
642
+ variant: k ? "body2" : "body1",
643
643
  color: "text.hint",
644
- ml: A,
645
- children: r ?? k.formatMessage({ id: "c4r.form.noneSelected" })
644
+ ml: D,
645
+ children: r ?? h.formatMessage({ id: "c4r.form.noneSelected" })
646
646
  }
647
647
  ), [
648
648
  b,
649
649
  g,
650
- v,
650
+ A,
651
651
  f,
652
+ h,
652
653
  k,
653
- M,
654
- A,
654
+ D,
655
655
  r,
656
656
  i
657
657
  ]);
658
- return /* @__PURE__ */ x(
658
+ return /* @__PURE__ */ y(
659
659
  eo,
660
660
  {
661
661
  ...p,
@@ -664,11 +664,11 @@ function Co({
664
664
  displayEmpty: !0,
665
665
  placeholder: r,
666
666
  value: f,
667
- renderValue: () => $,
668
- onChange: y,
667
+ renderValue: () => R,
668
+ onChange: C,
669
669
  size: o,
670
670
  variant: u,
671
- endAdornment: l && g && /* @__PURE__ */ n(ho, { position: "end", size: o, children: /* @__PURE__ */ n(W, { onClick: w, size: o, children: /* @__PURE__ */ n(Ft, {}) }) }),
671
+ endAdornment: l && g && /* @__PURE__ */ n(ho, { position: "end", size: o, children: /* @__PURE__ */ n(W, { onClick: v, size: o, children: /* @__PURE__ */ n(Ft, {}) }) }),
672
672
  menuProps: {
673
673
  PaperProps: {
674
674
  sx: {
@@ -684,12 +684,12 @@ function Co({
684
684
  {
685
685
  areAllSelected: b,
686
686
  areAnySelected: g,
687
- selectAll: h,
687
+ selectAll: x,
688
688
  selectAllDisabled: c
689
689
  }
690
690
  ),
691
691
  t == null ? void 0 : t.map((I) => {
692
- const E = /* @__PURE__ */ x(
692
+ const E = /* @__PURE__ */ y(
693
693
  bo,
694
694
  {
695
695
  value: I.value,
@@ -839,7 +839,7 @@ function wo({
839
839
  placeholder: r,
840
840
  uploadInputRef: i
841
841
  }) {
842
- const l = R(), a = T(l), [c, d] = B(""), [u, p] = B(!1);
842
+ const l = T(), a = B(l), [c, d] = $(""), [u, p] = $(!1);
843
843
  z(() => {
844
844
  !e || e.length === 0 ? d("") : e.length === 1 ? d(e[0].name) : d(
845
845
  a.formatMessage(
@@ -849,43 +849,43 @@ function wo({
849
849
  );
850
850
  }, [e, a]);
851
851
  const s = () => {
852
- var C;
853
- (C = i.current) == null || C.click();
854
- }, b = (C) => {
855
- C.preventDefault(), p(!0);
856
- }, g = (C) => {
857
- C.preventDefault(), p(!1);
858
- }, f = (C) => {
859
- C.preventDefault(), p(!1);
860
- const k = C.dataTransfer.items, v = y(k);
861
- t == null || t(v);
862
- }, y = (C) => {
863
- const k = [];
864
- for (const v of Array.from(C))
865
- if (v.kind === "file") {
866
- const $ = v.getAsFile();
867
- k.push($);
852
+ var M;
853
+ (M = i.current) == null || M.click();
854
+ }, b = (M) => {
855
+ M.preventDefault(), p(!0);
856
+ }, g = (M) => {
857
+ M.preventDefault(), p(!1);
858
+ }, f = (M) => {
859
+ M.preventDefault(), p(!1);
860
+ const h = M.dataTransfer.items, A = C(h);
861
+ t == null || t(A);
862
+ }, C = (M) => {
863
+ const h = [];
864
+ for (const A of Array.from(M))
865
+ if (A.kind === "file") {
866
+ const R = A.getAsFile();
867
+ h.push(R);
868
868
  }
869
- return k;
870
- }, h = (C) => {
871
- const k = Array.from(C.target.files);
872
- t == null || t(k);
873
- }, w = (C) => {
874
- C.stopPropagation(), d("");
875
- }, M = At(() => {
876
- const C = a.formatMessage(
869
+ return h;
870
+ }, x = (M) => {
871
+ const h = Array.from(M.target.files);
872
+ t == null || t(h);
873
+ }, v = (M) => {
874
+ M.stopPropagation(), d("");
875
+ }, k = At(() => {
876
+ const M = a.formatMessage(
877
877
  { id: "c4r.form.dragPlaceholder" },
878
878
  { count: o ? 0 : 1 }
879
- ), k = a.formatMessage(
879
+ ), h = a.formatMessage(
880
880
  { id: "c4r.form.dragActivePlaceholder" },
881
881
  { count: o ? 0 : 1 }
882
882
  );
883
- let v = "";
884
- return u ? v = k : v = r ?? C, v;
883
+ let A = "";
884
+ return u ? A = h : A = r ?? M, A;
885
885
  }, [u, o, r, a]);
886
886
  return {
887
887
  filesText: c,
888
- getPlaceholder: M,
888
+ getPlaceholder: k,
889
889
  dragOver: u,
890
890
  inputEvents: {
891
891
  onDragOver: b,
@@ -893,8 +893,8 @@ function wo({
893
893
  onDrop: f,
894
894
  onClick: s
895
895
  },
896
- handleFiles: h,
897
- handleReset: w
896
+ handleFiles: x,
897
+ handleReset: v
898
898
  };
899
899
  }
900
900
  const Do = ["application/JSON"];
@@ -914,11 +914,11 @@ function Pn({
914
914
  }) {
915
915
  const b = o ?? Do, g = Z(null), {
916
916
  filesText: f,
917
- getPlaceholder: y,
918
- dragOver: h,
919
- inputEvents: w,
920
- handleFiles: M,
921
- handleReset: A
917
+ getPlaceholder: C,
918
+ dragOver: x,
919
+ inputEvents: v,
920
+ handleFiles: k,
921
+ handleReset: D
922
922
  } = wo({
923
923
  uploadInputRef: g,
924
924
  files: r,
@@ -926,20 +926,20 @@ function Pn({
926
926
  multiple: a,
927
927
  placeholder: c
928
928
  });
929
- return /* @__PURE__ */ x(H, { children: [
929
+ return /* @__PURE__ */ y(H, { children: [
930
930
  /* @__PURE__ */ n(
931
931
  vo,
932
932
  {
933
933
  ...s,
934
- placeholder: y,
934
+ placeholder: C,
935
935
  value: f,
936
936
  error: d,
937
- focused: u ?? h,
938
- handleReset: A,
939
- dragOver: h,
937
+ focused: u ?? x,
938
+ handleReset: D,
939
+ dragOver: x,
940
940
  inProgress: i,
941
941
  hasFiles: !!f,
942
- InputProps: w,
942
+ InputProps: v,
943
943
  buttonText: e
944
944
  }
945
945
  ),
@@ -954,7 +954,7 @@ function Pn({
954
954
  name: t,
955
955
  accept: String(b),
956
956
  multiple: a,
957
- onChange: M
957
+ onChange: k
958
958
  }
959
959
  )
960
960
  ] });
@@ -992,57 +992,57 @@ function _t() {
992
992
  destructive: b,
993
993
  disabled: g,
994
994
  subtitle: f,
995
- iconColor: y,
996
- startAdornment: h,
997
- endAdornment: w,
998
- alternativeTitle: M,
999
- secondaryText: A,
1000
- multiple: C
1001
- } = o, { key: k, ...v } = e, $ = typeof o == "string" || typeof o == "number", I = (E, S, L, V) => L || V || (S && typeof S == "object" && "value" in S ? String(S.value) : E(S));
1002
- return /* @__PURE__ */ n(te, { children: d ? /* @__PURE__ */ n(_, {}) : /* @__PURE__ */ x(H, { children: [
995
+ iconColor: C,
996
+ startAdornment: x,
997
+ endAdornment: v,
998
+ alternativeTitle: k,
999
+ secondaryText: D,
1000
+ multiple: M
1001
+ } = o, { key: h, ...A } = e, R = typeof o == "string" || typeof o == "number", I = (E, S, L, V) => L || V || (S && typeof S == "object" && "value" in S ? String(S.value) : E(S));
1002
+ return /* @__PURE__ */ n(te, { children: d ? /* @__PURE__ */ n(_, {}) : /* @__PURE__ */ y(H, { children: [
1003
1003
  c && /* @__PURE__ */ n(_, {}),
1004
- /* @__PURE__ */ x(
1004
+ /* @__PURE__ */ y(
1005
1005
  Y,
1006
1006
  {
1007
- ...v,
1008
- ...!$ && {
1007
+ ...A,
1008
+ ...!R && {
1009
1009
  fixed: u,
1010
1010
  extended: p,
1011
1011
  dense: s,
1012
1012
  destructive: b,
1013
1013
  disabled: g,
1014
1014
  subtitle: f,
1015
- iconColor: y
1015
+ iconColor: C
1016
1016
  },
1017
1017
  "aria-disabled": f || g,
1018
1018
  "aria-selected": r.selected,
1019
1019
  children: [
1020
- !f && (h || C || l) && /* @__PURE__ */ x(rt, { children: [
1021
- l || C && /* @__PURE__ */ n(at, { checked: r.selected }),
1022
- h
1020
+ !f && (x || M || l) && /* @__PURE__ */ y(rt, { children: [
1021
+ l || M && /* @__PURE__ */ n(at, { checked: r.selected }),
1022
+ x
1023
1023
  ] }),
1024
- /* @__PURE__ */ x(U, { children: [
1024
+ /* @__PURE__ */ y(U, { children: [
1025
1025
  I(
1026
1026
  i ?? Pt,
1027
1027
  o,
1028
- M,
1028
+ k,
1029
1029
  a
1030
1030
  ),
1031
- A && /* @__PURE__ */ n(
1031
+ D && /* @__PURE__ */ n(
1032
1032
  F,
1033
1033
  {
1034
1034
  component: "p",
1035
1035
  variant: "caption",
1036
1036
  color: "text.secondary",
1037
- children: A
1037
+ children: D
1038
1038
  }
1039
1039
  )
1040
1040
  ] }),
1041
- !f && w
1041
+ !f && v
1042
1042
  ]
1043
1043
  }
1044
1044
  )
1045
- ] }) }, k);
1045
+ ] }) }, h);
1046
1046
  } };
1047
1047
  }
1048
1048
  function So({
@@ -1051,30 +1051,30 @@ function So({
1051
1051
  newItemIcon: o,
1052
1052
  multiple: r
1053
1053
  }) {
1054
- const i = R(), l = T(i), a = le(), { renderOption: c } = _t();
1054
+ const i = T(), l = B(i), a = le(), { renderOption: c } = _t();
1055
1055
  return {
1056
1056
  creatableFilterOptions: (s, b) => {
1057
1057
  const g = a(
1058
1058
  s,
1059
1059
  b
1060
- ), { inputValue: f } = b, y = s.some(
1061
- (h) => f === t(h)
1060
+ ), { inputValue: f } = b, C = s.some(
1061
+ (x) => f === t(x)
1062
1062
  );
1063
- if (f.length > 1 && f !== "" && !y) {
1064
- let h;
1065
- typeof e == "function" ? h = e(f) : e ? h = `${e} "${f}"` : h = `${l.formatMessage({ id: "c4r.form.add" })} "${f}"`, g.push({
1063
+ if (f.length > 1 && f !== "" && !C) {
1064
+ let x;
1065
+ typeof e == "function" ? x = e(f) : e ? x = `${e} "${f}"` : x = `${l.formatMessage({ id: "c4r.form.add" })} "${f}"`, g.push({
1066
1066
  inputValue: f,
1067
- title: h
1067
+ title: x
1068
1068
  });
1069
1069
  }
1070
1070
  return g;
1071
1071
  },
1072
1072
  creatableOptionLabel: (s) => typeof s == "string" ? s : s.inputValue ? s.inputValue : t(s),
1073
1073
  creatableRenderOption: (s, b, g) => {
1074
- const f = b.inputValue ? o ?? /* @__PURE__ */ n(Ae, {}) : void 0, y = zt(b, !!r);
1074
+ const f = b.inputValue ? o ?? /* @__PURE__ */ n(Ae, {}) : void 0, C = zt(b, !!r);
1075
1075
  return c(
1076
1076
  s,
1077
- y,
1077
+ C,
1078
1078
  g,
1079
1079
  t,
1080
1080
  f
@@ -1088,7 +1088,7 @@ function Gt({
1088
1088
  onChange: o,
1089
1089
  getOptionLabel: r
1090
1090
  }) {
1091
- const [i, l] = B(
1091
+ const [i, l] = $(
1092
1092
  Array.isArray(e) ? e : e ? [e] : []
1093
1093
  ), { renderOption: a } = _t();
1094
1094
  z(() => {
@@ -1112,10 +1112,10 @@ function Gt({
1112
1112
  l(g === null ? [] : g), o == null || o(b, g, f);
1113
1113
  },
1114
1114
  multipleRenderOption: (b, g, f) => {
1115
- const y = zt(g, !0);
1115
+ const C = zt(g, !0);
1116
1116
  return a(
1117
1117
  b,
1118
- y,
1118
+ C,
1119
1119
  f,
1120
1120
  r
1121
1121
  );
@@ -1132,7 +1132,7 @@ function Io({
1132
1132
  multiple: l,
1133
1133
  ...a
1134
1134
  }, c) {
1135
- return /* @__PURE__ */ x(
1135
+ return /* @__PURE__ */ y(
1136
1136
  "ul",
1137
1137
  {
1138
1138
  ref: c,
@@ -1169,20 +1169,20 @@ function $o({
1169
1169
  getLimitTagsText: s,
1170
1170
  ...b
1171
1171
  }, g) {
1172
- const { freeSolo: f = !0, ...y } = b, {
1173
- multipleValue: h,
1174
- allSelected: w,
1175
- someSelected: M,
1176
- handleSelectAll: A,
1177
- handleChange: C
1172
+ const { freeSolo: f = !0, ...C } = b, {
1173
+ multipleValue: x,
1174
+ allSelected: v,
1175
+ someSelected: k,
1176
+ handleSelectAll: D,
1177
+ handleChange: M
1178
1178
  } = Gt({
1179
1179
  options: d,
1180
1180
  value: u,
1181
1181
  onChange: p
1182
1182
  }), {
1183
- creatableFilterOptions: k,
1184
- creatableOptionLabel: v,
1185
- creatableRenderOption: $
1183
+ creatableFilterOptions: h,
1184
+ creatableOptionLabel: A,
1185
+ creatableRenderOption: R
1186
1186
  } = So({
1187
1187
  getOptionLabel: o,
1188
1188
  newItemLabel: t,
@@ -1192,14 +1192,14 @@ function $o({
1192
1192
  return /* @__PURE__ */ n(
1193
1193
  lt,
1194
1194
  {
1195
- ...y,
1195
+ ...C,
1196
1196
  ref: g,
1197
1197
  options: d,
1198
- value: r ? h : u,
1199
- onChange: C,
1200
- filterOptions: k,
1201
- getOptionLabel: v,
1202
- renderOption: $,
1198
+ value: r ? x : u,
1199
+ onChange: M,
1200
+ filterOptions: h,
1201
+ getOptionLabel: A,
1202
+ renderOption: R,
1203
1203
  freeSolo: f,
1204
1204
  forcePopupIcon: !0,
1205
1205
  multiple: r,
@@ -1207,9 +1207,9 @@ function $o({
1207
1207
  ListboxComponent: jt,
1208
1208
  ListboxProps: {
1209
1209
  showFilters: c,
1210
- allSelected: w,
1211
- someSelected: M,
1212
- handleSelectAll: A,
1210
+ allSelected: v,
1211
+ someSelected: k,
1212
+ handleSelectAll: D,
1213
1213
  multiple: r
1214
1214
  },
1215
1215
  getLimitTagsText: s ?? Nt,
@@ -1237,9 +1237,9 @@ function Bo({
1237
1237
  multipleValue: b,
1238
1238
  allSelected: g,
1239
1239
  someSelected: f,
1240
- handleSelectAll: y,
1241
- handleChange: h,
1242
- multipleRenderOption: w
1240
+ handleSelectAll: C,
1241
+ handleChange: x,
1242
+ multipleRenderOption: v
1243
1243
  } = Gt({
1244
1244
  options: l,
1245
1245
  value: a,
@@ -1253,15 +1253,15 @@ function Bo({
1253
1253
  ref: s,
1254
1254
  options: l,
1255
1255
  value: b,
1256
- onChange: h,
1256
+ onChange: x,
1257
1257
  getOptionLabel: d,
1258
- renderOption: t ?? w,
1258
+ renderOption: t ?? v,
1259
1259
  ListboxComponent: jt,
1260
1260
  ListboxProps: {
1261
1261
  showFilters: i,
1262
1262
  allSelected: g,
1263
1263
  someSelected: f,
1264
- handleSelectAll: y,
1264
+ handleSelectAll: C,
1265
1265
  multiple: !0
1266
1266
  },
1267
1267
  multiple: !0,
@@ -1288,24 +1288,24 @@ const _n = O(Bo), To = ({
1288
1288
  tooltipPlacement: s = "top",
1289
1289
  ...b
1290
1290
  }, g) => {
1291
- const f = R(), y = T(f), [h, w] = B(!1), { copy: M } = Vt(i, l), A = (C) => {
1292
- C.preventDefault(), M(o).then(() => {
1293
- r == null || r(), w(!0);
1291
+ const f = T(), C = B(f), [x, v] = $(!1), { copy: k } = Vt(i, l), D = (M) => {
1292
+ M.preventDefault(), k(o).then(() => {
1293
+ r == null || r(), v(!0);
1294
1294
  }).catch(console.error);
1295
1295
  };
1296
- return /* @__PURE__ */ x(H, { children: [
1296
+ return /* @__PURE__ */ y(H, { children: [
1297
1297
  /* @__PURE__ */ n(
1298
1298
  P,
1299
1299
  {
1300
- title: y.formatMessage({ id: i }),
1300
+ title: C.formatMessage({ id: i }),
1301
1301
  leaveDelay: 0,
1302
1302
  placement: s,
1303
- children: /* @__PURE__ */ x(
1304
- D,
1303
+ children: /* @__PURE__ */ y(
1304
+ w,
1305
1305
  {
1306
1306
  ...b,
1307
1307
  sx: { cursor: e ? void 0 : "pointer" },
1308
- onClick: A,
1308
+ onClick: D,
1309
1309
  "data-name": "copiable",
1310
1310
  ref: g,
1311
1311
  children: [
@@ -1331,12 +1331,12 @@ const _n = O(Bo), To = ({
1331
1331
  /* @__PURE__ */ n(
1332
1332
  dt,
1333
1333
  {
1334
- open: h,
1334
+ open: x,
1335
1335
  autoWidth: !0,
1336
1336
  closeable: !1,
1337
1337
  autoHideDuration: 4e3,
1338
- onClose: () => w(!1),
1339
- children: y.formatMessage({ id: l })
1338
+ onClose: () => v(!1),
1339
+ children: C.formatMessage({ id: l })
1340
1340
  }
1341
1341
  )
1342
1342
  ] });
@@ -1345,7 +1345,7 @@ async function Oo(t) {
1345
1345
  return await navigator.clipboard.writeText(t);
1346
1346
  }
1347
1347
  const Vt = (t = "c4r.button.copy", e = "c4r.notifications.copiedToClipboard") => {
1348
- const [o, r] = B(t);
1348
+ const [o, r] = $(t);
1349
1349
  return {
1350
1350
  message: o,
1351
1351
  copy: async (l) => {
@@ -1367,7 +1367,7 @@ function Gn({
1367
1367
  items: e,
1368
1368
  ...o
1369
1369
  }) {
1370
- return /* @__PURE__ */ n(Fo, { ...o, variant: t, children: e.map((r, i) => /* @__PURE__ */ x(
1370
+ return /* @__PURE__ */ n(Fo, { ...o, variant: t, children: e.map((r, i) => /* @__PURE__ */ y(
1371
1371
  ce,
1372
1372
  {
1373
1373
  disabled: r.disabled,
@@ -1432,7 +1432,7 @@ const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
1432
1432
  width: "100%",
1433
1433
  maxWidth: `${Ut}px`
1434
1434
  }
1435
- })), Eo = m(D, {
1435
+ })), Eo = m(w, {
1436
1436
  shouldForwardProp: (t) => t !== "autoWidth"
1437
1437
  })(({ autoWidth: t, theme: e }) => ({
1438
1438
  minWidth: "100%",
@@ -1499,7 +1499,7 @@ const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
1499
1499
  padding: r.spacing(0.75, 0)
1500
1500
  }
1501
1501
  }
1502
- })), Po = m(D)(({ theme: t }) => ({
1502
+ })), Po = m(w)(({ theme: t }) => ({
1503
1503
  position: "absolute",
1504
1504
  top: t.spacing(1),
1505
1505
  right: t.spacing(1),
@@ -1524,7 +1524,7 @@ function dt({
1524
1524
  icon: u,
1525
1525
  ...p
1526
1526
  }) {
1527
- const s = R(), b = T(s);
1527
+ const s = T(), b = B(s);
1528
1528
  return /* @__PURE__ */ n(ge, { children: /* @__PURE__ */ n(
1529
1529
  Wo,
1530
1530
  {
@@ -1534,7 +1534,7 @@ function dt({
1534
1534
  onClose: c,
1535
1535
  TransitionComponent: d ? fe : Rt,
1536
1536
  "data-auto-width": d,
1537
- children: /* @__PURE__ */ x(
1537
+ children: /* @__PURE__ */ y(
1538
1538
  Eo,
1539
1539
  {
1540
1540
  sx: {
@@ -1559,7 +1559,7 @@ function dt({
1559
1559
  q,
1560
1560
  {
1561
1561
  color: "default",
1562
- onClick: (w) => c(w, "timeout"),
1562
+ onClick: (v) => c(v, "timeout"),
1563
1563
  icon: /* @__PURE__ */ n(Wt, {}),
1564
1564
  tooltip: b.formatMessage({
1565
1565
  id: "c4r.button.close"
@@ -1592,12 +1592,12 @@ function Go({
1592
1592
  // replacing deprecated `<Hidden />` with sx following this MUI5 guide:
1593
1593
  // https://mui.com/material-ui/migration/v5-component-changes/#hidden
1594
1594
  /* @__PURE__ */ n(
1595
- D,
1595
+ w,
1596
1596
  {
1597
1597
  sx: {
1598
1598
  display: { md: "none", xs: "block" }
1599
1599
  },
1600
- children: /* @__PURE__ */ x(zo, { children: [
1600
+ children: /* @__PURE__ */ y(zo, { children: [
1601
1601
  /* @__PURE__ */ n(No, { onClick: t, children: /* @__PURE__ */ n(Se, {}) }),
1602
1602
  /* @__PURE__ */ n(_o, { orientation: "vertical", flexItem: !0 })
1603
1603
  ] })
@@ -1691,8 +1691,8 @@ function Vn({
1691
1691
  onClickMenu: l,
1692
1692
  ...a
1693
1693
  }) {
1694
- return /* @__PURE__ */ n(Jo, { ...a, children: /* @__PURE__ */ x(me, { children: [
1695
- /* @__PURE__ */ x(Ko, { children: [
1694
+ return /* @__PURE__ */ n(Jo, { ...a, children: /* @__PURE__ */ y(me, { children: [
1695
+ /* @__PURE__ */ y(Ko, { children: [
1696
1696
  i && /* @__PURE__ */ n(Go, { onClickMenu: l }),
1697
1697
  e && /* @__PURE__ */ n(Vo, { logo: e }),
1698
1698
  o && /* @__PURE__ */ n(Yo, { text: o }),
@@ -1701,7 +1701,7 @@ function Vn({
1701
1701
  /* @__PURE__ */ n(Xo, { children: t })
1702
1702
  ] }) });
1703
1703
  }
1704
- const Qo = m(D, {
1704
+ const Qo = m(w, {
1705
1705
  shouldForwardProp: (t) => !["size", "variant"].includes(t)
1706
1706
  })(({ size: t, variant: e, theme: o }) => ({
1707
1707
  position: "absolute",
@@ -1723,7 +1723,7 @@ function st({
1723
1723
  variant: e,
1724
1724
  ...o
1725
1725
  }) {
1726
- const r = R(), i = T(r);
1726
+ const r = T(), i = B(r);
1727
1727
  return /* @__PURE__ */ n(Qo, { size: t, variant: e, children: /* @__PURE__ */ n(
1728
1728
  W,
1729
1729
  {
@@ -1735,7 +1735,7 @@ function st({
1735
1735
  }
1736
1736
  ) });
1737
1737
  }
1738
- const tr = m(D, {
1738
+ const tr = m(w, {
1739
1739
  shouldForwardProp: (t) => !["size", "variant", "readOnly"].includes(t)
1740
1740
  })(({ size: t, variant: e, readOnly: o, theme: r }) => ({
1741
1741
  // There is no specific slot to change TextField styles at DatePicker level, so we need to wrap our component to isolate this override. https://mui.com/x/react-date-pickers/date-picker/#customization
@@ -1793,12 +1793,12 @@ function xt({
1793
1793
  readOnly: b,
1794
1794
  "aria-label": g,
1795
1795
  "data-testid": f,
1796
- ...y
1796
+ ...C
1797
1797
  }) {
1798
- const h = R(), w = T(h);
1798
+ const x = T(), v = B(x);
1799
1799
  return (
1800
1800
  // Don't remove className, it's used for styling
1801
- /* @__PURE__ */ n(D, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ n(
1801
+ /* @__PURE__ */ n(w, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ n(
1802
1802
  ut,
1803
1803
  {
1804
1804
  size: o,
@@ -1810,7 +1810,7 @@ function xt({
1810
1810
  children: /* @__PURE__ */ n(
1811
1811
  Re,
1812
1812
  {
1813
- ...y,
1813
+ ...C,
1814
1814
  label: r && /* @__PURE__ */ n(
1815
1815
  X,
1816
1816
  {
@@ -1839,13 +1839,13 @@ function xt({
1839
1839
  ...d
1840
1840
  },
1841
1841
  slots: {
1842
- clearButton: (M) => /* @__PURE__ */ n(st, { ...M, size: o, variant: e }),
1843
- openPickerButton: (M) => /* @__PURE__ */ n(
1842
+ clearButton: (k) => /* @__PURE__ */ n(st, { ...k, size: o, variant: e }),
1843
+ openPickerButton: (k) => /* @__PURE__ */ n(
1844
1844
  W,
1845
1845
  {
1846
- ...M,
1846
+ ...k,
1847
1847
  size: o,
1848
- "aria-label": w.formatMessage({
1848
+ "aria-label": v.formatMessage({
1849
1849
  id: "c4r.form.chooseDate"
1850
1850
  })
1851
1851
  }
@@ -1860,7 +1860,7 @@ function xt({
1860
1860
  ) })
1861
1861
  );
1862
1862
  }
1863
- const er = m(D, {
1863
+ const er = m(w, {
1864
1864
  shouldForwardProp: (t) => ![
1865
1865
  "isSelected",
1866
1866
  "isStartDate",
@@ -2006,7 +2006,7 @@ function Ct({
2006
2006
  }
2007
2007
  );
2008
2008
  }
2009
- const rr = m(D, {
2009
+ const rr = m(w, {
2010
2010
  shouldForwardProp: (t) => !["variant"].includes(t)
2011
2011
  })(({ variant: t, theme: e }) => ({
2012
2012
  display: "flex",
@@ -2066,29 +2066,29 @@ function Un({
2066
2066
  "data-testid": a,
2067
2067
  ...c
2068
2068
  }) {
2069
- const d = R(), u = T(d), [p, s] = B(!1), [b, g] = B(!1), [f, y] = B(
2069
+ const d = T(), u = B(d), [p, s] = $(!1), [b, g] = $(!1), [f, C] = $(
2070
2070
  (r == null ? void 0 : r.value) || null
2071
- ), [h, w] = B((i == null ? void 0 : i.value) || null), [M, A] = B(
2071
+ ), [x, v] = $((i == null ? void 0 : i.value) || null), [k, D] = $(
2072
2072
  (i == null ? void 0 : i.value) ?? (r == null ? void 0 : r.value) ?? /* @__PURE__ */ new Date()
2073
- ), C = e ?? (r == null ? void 0 : r.error) ?? (i == null ? void 0 : i.error), k = (S, L) => {
2074
- y(S), r != null && r.onChange && r.onChange(S, L), S && L.validationError === null && !b && L.trigger === null && (g(!1), s(!0));
2075
- }, v = (S, L) => {
2076
- w(S), i != null && i.onChange && i.onChange(S, L);
2077
- }, $ = () => {
2073
+ ), M = e ?? (r == null ? void 0 : r.error) ?? (i == null ? void 0 : i.error), h = (S, L) => {
2074
+ C(S), r != null && r.onChange && r.onChange(S, L), S && L.validationError === null && !b && L.trigger === null && (g(!1), s(!0));
2075
+ }, A = (S, L) => {
2076
+ v(S), i != null && i.onChange && i.onChange(S, L);
2077
+ }, R = () => {
2078
2078
  g(!0), s(!1), setTimeout(() => {
2079
- A(f ?? /* @__PURE__ */ new Date());
2079
+ D(f ?? /* @__PURE__ */ new Date());
2080
2080
  }, 120);
2081
2081
  }, I = () => {
2082
2082
  g(!1), s(!0), setTimeout(() => {
2083
- A(h ?? f ?? /* @__PURE__ */ new Date());
2083
+ D(x ?? f ?? /* @__PURE__ */ new Date());
2084
2084
  }, 120);
2085
2085
  }, E = () => {
2086
2086
  g(!1), s(!0), setTimeout(() => {
2087
- A(h ?? f ?? /* @__PURE__ */ new Date());
2087
+ D(x ?? f ?? /* @__PURE__ */ new Date());
2088
2088
  }, 120);
2089
2089
  };
2090
- return /* @__PURE__ */ x(D, { children: [
2091
- /* @__PURE__ */ x(
2090
+ return /* @__PURE__ */ y(w, { children: [
2091
+ /* @__PURE__ */ y(
2092
2092
  rr,
2093
2093
  {
2094
2094
  variant: o,
@@ -2102,7 +2102,7 @@ function Un({
2102
2102
  ...c,
2103
2103
  ...r,
2104
2104
  value: (r == null ? void 0 : r.value) ?? f,
2105
- maxDate: h ?? void 0,
2105
+ maxDate: x ?? void 0,
2106
2106
  label: (r == null ? void 0 : r.label) ?? u.formatMessage({ id: "c4r.form.startDate" }),
2107
2107
  slotProps: {
2108
2108
  popper: {
@@ -2120,18 +2120,18 @@ function Un({
2120
2120
  {
2121
2121
  ...S,
2122
2122
  startDate: f,
2123
- endDate: h,
2124
- selectedMonth: M
2123
+ endDate: x,
2124
+ selectedMonth: k
2125
2125
  }
2126
2126
  ),
2127
2127
  ...r == null ? void 0 : r.slots
2128
2128
  },
2129
2129
  error: (r == null ? void 0 : r.error) ?? e,
2130
2130
  open: b,
2131
- onChange: k,
2132
- onOpen: $,
2131
+ onChange: h,
2132
+ onOpen: R,
2133
2133
  onClose: I,
2134
- onMonthChange: (S) => A(S),
2134
+ onMonthChange: (S) => D(S),
2135
2135
  variant: o
2136
2136
  }
2137
2137
  ),
@@ -2140,7 +2140,7 @@ function Un({
2140
2140
  {
2141
2141
  ...c,
2142
2142
  ...i,
2143
- value: (i == null ? void 0 : i.value) ?? h,
2143
+ value: (i == null ? void 0 : i.value) ?? x,
2144
2144
  minDate: f ?? void 0,
2145
2145
  slotProps: {
2146
2146
  popper: {
@@ -2156,8 +2156,8 @@ function Un({
2156
2156
  {
2157
2157
  ...S,
2158
2158
  startDate: f,
2159
- endDate: h,
2160
- selectedMonth: M
2159
+ endDate: x,
2160
+ selectedMonth: k
2161
2161
  }
2162
2162
  ),
2163
2163
  ...i == null ? void 0 : i.slots
@@ -2167,15 +2167,15 @@ function Un({
2167
2167
  open: p,
2168
2168
  onOpen: E,
2169
2169
  onClose: () => s(!1),
2170
- onChange: v,
2171
- onMonthChange: (S) => A(S),
2170
+ onChange: A,
2171
+ onMonthChange: (S) => D(S),
2172
2172
  variant: o
2173
2173
  }
2174
2174
  )
2175
2175
  ]
2176
2176
  }
2177
2177
  ),
2178
- t && /* @__PURE__ */ n(J, { error: C, children: t })
2178
+ t && /* @__PURE__ */ n(J, { error: M, children: t })
2179
2179
  ] });
2180
2180
  }
2181
2181
  const Yt = (t, e, o, r) => {
@@ -2200,20 +2200,20 @@ function Yn({
2200
2200
  slots: b,
2201
2201
  ampm: g = !0,
2202
2202
  views: f = ["hours", "minutes"],
2203
- format: y,
2204
- "data-testid": h,
2205
- "aria-label": w,
2206
- ...M
2203
+ format: C,
2204
+ "data-testid": x,
2205
+ "aria-label": v,
2206
+ ...k
2207
2207
  }) {
2208
- const A = R(), C = T(A), k = Z(null), [v, $] = B(0);
2208
+ const D = T(), M = B(D), h = Z(null), [A, R] = $(0);
2209
2209
  return z(() => {
2210
- if (!k.current) return;
2210
+ if (!h.current) return;
2211
2211
  const I = new ResizeObserver((E) => {
2212
2212
  var L;
2213
2213
  const S = (L = E[0]) == null ? void 0 : L.contentRect.width;
2214
- S && $(S);
2214
+ S && R(S);
2215
2215
  });
2216
- return I.observe(k.current), () => {
2216
+ return I.observe(h.current), () => {
2217
2217
  I.disconnect();
2218
2218
  };
2219
2219
  }, []), /* @__PURE__ */ n(
@@ -2223,23 +2223,23 @@ function Yn({
2223
2223
  variant: e,
2224
2224
  readOnly: p,
2225
2225
  "data-name": "time-picker",
2226
- "data-testid": h ?? "time-picker",
2227
- "aria-label": w,
2226
+ "data-testid": x ?? "time-picker",
2227
+ "aria-label": v,
2228
2228
  children: /* @__PURE__ */ n(
2229
2229
  Fe,
2230
2230
  {
2231
- ...M,
2232
- ref: k,
2231
+ ...k,
2232
+ ref: h,
2233
2233
  label: /* @__PURE__ */ n(
2234
2234
  X,
2235
2235
  {
2236
- label: r ?? C.formatMessage({ id: "c4r.form.time" }),
2236
+ label: r ?? M.formatMessage({ id: "c4r.form.time" }),
2237
2237
  type: l,
2238
2238
  icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
2239
2239
  }
2240
2240
  ),
2241
2241
  views: ["hours"],
2242
- format: Yt(f, !1, g, y),
2242
+ format: Yt(f, !1, g, C),
2243
2243
  slotProps: {
2244
2244
  textField: {
2245
2245
  variant: e,
@@ -2261,7 +2261,7 @@ function Yn({
2261
2261
  },
2262
2262
  layout: {
2263
2263
  sx: {
2264
- width: v
2264
+ width: A
2265
2265
  }
2266
2266
  },
2267
2267
  ...s
@@ -2273,7 +2273,7 @@ function Yn({
2273
2273
  {
2274
2274
  ...I,
2275
2275
  size: o,
2276
- "aria-label": C.formatMessage({
2276
+ "aria-label": M.formatMessage({
2277
2277
  id: "c4r.form.chooseDate"
2278
2278
  })
2279
2279
  }
@@ -2304,12 +2304,12 @@ function qn({
2304
2304
  slots: b,
2305
2305
  ampm: g = !0,
2306
2306
  views: f = ["hours", "minutes"],
2307
- format: y,
2308
- "data-testid": h,
2309
- "aria-label": w,
2310
- ...M
2307
+ format: C,
2308
+ "data-testid": x,
2309
+ "aria-label": v,
2310
+ ...k
2311
2311
  }) {
2312
- const A = R(), C = T(A);
2312
+ const D = T(), M = B(D);
2313
2313
  return /* @__PURE__ */ n(
2314
2314
  ut,
2315
2315
  {
@@ -2317,22 +2317,22 @@ function qn({
2317
2317
  variant: e,
2318
2318
  readOnly: p,
2319
2319
  "data-name": "date-time-picker",
2320
- "data-testid": h ?? "date-time-picker",
2321
- "aria-label": w,
2320
+ "data-testid": x ?? "date-time-picker",
2321
+ "aria-label": v,
2322
2322
  children: /* @__PURE__ */ n(
2323
2323
  Le,
2324
2324
  {
2325
- ...M,
2325
+ ...k,
2326
2326
  label: /* @__PURE__ */ n(
2327
2327
  X,
2328
2328
  {
2329
- label: r ?? C.formatMessage({ id: "c4r.form.time" }),
2329
+ label: r ?? M.formatMessage({ id: "c4r.form.time" }),
2330
2330
  type: l,
2331
2331
  icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
2332
2332
  }
2333
2333
  ),
2334
2334
  views: ["year", "month", "day", "hours"],
2335
- format: Yt(f, !0, g, y),
2335
+ format: Yt(f, !0, g, C),
2336
2336
  slotProps: {
2337
2337
  textField: {
2338
2338
  variant: e,
@@ -2352,13 +2352,13 @@ function qn({
2352
2352
  ...s
2353
2353
  },
2354
2354
  slots: {
2355
- clearButton: (k) => /* @__PURE__ */ n(st, { ...k, size: o, variant: e }),
2356
- openPickerButton: (k) => /* @__PURE__ */ n(
2355
+ clearButton: (h) => /* @__PURE__ */ n(st, { ...h, size: o, variant: e }),
2356
+ openPickerButton: (h) => /* @__PURE__ */ n(
2357
2357
  W,
2358
2358
  {
2359
- ...k,
2359
+ ...h,
2360
2360
  size: o,
2361
- "aria-label": C.formatMessage({
2361
+ "aria-label": M.formatMessage({
2362
2362
  id: "c4r.form.chooseDate"
2363
2363
  })
2364
2364
  }
@@ -2399,9 +2399,9 @@ function Zn({
2399
2399
  items: t = nr,
2400
2400
  title: e
2401
2401
  }) {
2402
- return /* @__PURE__ */ x(H, { children: [
2402
+ return /* @__PURE__ */ y(H, { children: [
2403
2403
  e && /* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: e }),
2404
- /* @__PURE__ */ n(ir, { children: t.map((o, r) => /* @__PURE__ */ x(ar, { children: [
2404
+ /* @__PURE__ */ n(ir, { children: t.map((o, r) => /* @__PURE__ */ y(ar, { children: [
2405
2405
  /* @__PURE__ */ n(
2406
2406
  lr,
2407
2407
  {
@@ -2416,7 +2416,7 @@ function Zn({
2416
2416
  ] }, r)) })
2417
2417
  ] });
2418
2418
  }
2419
- const dr = m(D, {
2419
+ const dr = m(w, {
2420
2420
  shouldForwardProp: (t) => !["withGutter", "disabled"].includes(t)
2421
2421
  })(
2422
2422
  ({ withGutter: t, disabled: e, theme: o }) => ({
@@ -2447,8 +2447,8 @@ function qt({
2447
2447
  disabled: d,
2448
2448
  ...u
2449
2449
  }) {
2450
- const p = R(), s = T(p);
2451
- return t ? /* @__PURE__ */ x(
2450
+ const p = T(), s = B(p);
2451
+ return t ? /* @__PURE__ */ y(
2452
2452
  dr,
2453
2453
  {
2454
2454
  withGutter: i,
@@ -2487,7 +2487,7 @@ function qt({
2487
2487
  }
2488
2488
  ) : null;
2489
2489
  }
2490
- const Mt = m(D, { shouldForwardProp: (t) => t !== "size" })(({ size: t, theme: e }) => ({
2490
+ const Mt = m(w, { shouldForwardProp: (t) => t !== "size" })(({ size: t, theme: e }) => ({
2491
2491
  position: "absolute",
2492
2492
  top: 0,
2493
2493
  right: e.spacing(0.5),
@@ -2504,17 +2504,17 @@ function sr({
2504
2504
  onClickExpand: o,
2505
2505
  size: r
2506
2506
  }) {
2507
- const i = R(), l = T(i), a = !!o, c = e !== void 0, d = a && c, { copy: u } = Vt(), [p, s] = B(!1), [b, g] = B(null), f = !!b, y = (M) => {
2508
- g(M.currentTarget);
2509
- }, h = () => {
2507
+ const i = T(), l = B(i), a = !!o, c = e !== void 0, d = a && c, { copy: u } = Vt(), [p, s] = $(!1), [b, g] = $(null), f = !!b, C = (k) => {
2508
+ g(k.currentTarget);
2509
+ }, x = () => {
2510
2510
  g(null);
2511
- }, w = (M) => {
2512
- M.preventDefault(), e && u(e).then(() => {
2511
+ }, v = (k) => {
2512
+ k.preventDefault(), e && u(e).then(() => {
2513
2513
  s(!0);
2514
2514
  }).catch(console.error);
2515
2515
  };
2516
- return !a && !c ? null : d ? /* @__PURE__ */ x(H, { children: [
2517
- /* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
2516
+ return !a && !c ? null : d ? /* @__PURE__ */ y(H, { children: [
2517
+ /* @__PURE__ */ y(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
2518
2518
  /* @__PURE__ */ n(
2519
2519
  q,
2520
2520
  {
@@ -2527,26 +2527,26 @@ function sr({
2527
2527
  "aria-controls": f ? "basic-menu" : void 0,
2528
2528
  "aria-haspopup": "true",
2529
2529
  "aria-expanded": f ? "true" : void 0,
2530
- onClick: y
2530
+ onClick: C
2531
2531
  }
2532
2532
  ),
2533
- /* @__PURE__ */ x(
2533
+ /* @__PURE__ */ y(
2534
2534
  co,
2535
2535
  {
2536
2536
  anchorEl: b,
2537
2537
  open: f,
2538
- onClose: h,
2538
+ onClose: x,
2539
2539
  id: "menu",
2540
2540
  MenuListProps: { "aria-labelledby": "menu-button" },
2541
2541
  "aria-label": "Code area actions",
2542
2542
  transformOrigin: { vertical: "top", horizontal: "right" },
2543
2543
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
2544
2544
  children: [
2545
- /* @__PURE__ */ x(Y, { onClick: w, disabled: t, id: "copy", children: [
2545
+ /* @__PURE__ */ y(Y, { onClick: v, disabled: t, id: "copy", children: [
2546
2546
  /* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(Lt, {}) }),
2547
2547
  /* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.copy" }) })
2548
2548
  ] }),
2549
- /* @__PURE__ */ x(Y, { onClick: o, disabled: t, id: "expand", children: [
2549
+ /* @__PURE__ */ y(Y, { onClick: o, disabled: t, id: "expand", children: [
2550
2550
  /* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(mt, {}) }),
2551
2551
  /* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.expand" }) })
2552
2552
  ] })
@@ -2567,7 +2567,7 @@ function sr({
2567
2567
  })
2568
2568
  }
2569
2569
  )
2570
- ] }) : /* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
2570
+ ] }) : /* @__PURE__ */ y(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
2571
2571
  c && /* @__PURE__ */ n(
2572
2572
  Ro,
2573
2573
  {
@@ -2591,7 +2591,7 @@ function sr({
2591
2591
  )
2592
2592
  ] });
2593
2593
  }
2594
- const ur = m(D, {
2594
+ const ur = m(w, {
2595
2595
  shouldForwardProp: (t) => !["size", "height"].includes(t)
2596
2596
  })(({ size: t, height: e, theme: o }) => ({
2597
2597
  position: "relative",
@@ -2803,11 +2803,10 @@ function gr({
2803
2803
  height: s,
2804
2804
  "data-testid": b,
2805
2805
  "aria-label": g = "Code editor text area",
2806
- "aria-labelledby": f,
2807
- ...y
2806
+ ...f
2808
2807
  }) {
2809
- var k;
2810
- const h = Z(), w = {
2808
+ var M;
2809
+ const C = Z(), x = {
2811
2810
  mode: "sql",
2812
2811
  theme: "light",
2813
2812
  lineNumbers: !0,
@@ -2824,35 +2823,35 @@ function gr({
2824
2823
  scanUp: !1
2825
2824
  },
2826
2825
  ...t
2827
- }, [M, A] = B(null);
2826
+ }, [v, k] = $(null);
2828
2827
  z(() => () => {
2829
- A(null);
2828
+ k(null);
2830
2829
  }, []);
2831
- const C = ot(
2832
- ({ from: v, to: $ }) => {
2833
- M.foldCode(
2830
+ const D = ot(
2831
+ ({ from: h, to: A }) => {
2832
+ v.foldCode(
2834
2833
  0,
2835
2834
  {
2836
2835
  rangeFinder: () => {
2837
- if ($)
2836
+ if (A)
2838
2837
  return {
2839
- from: { line: v - 1, ch: 0 },
2840
- to: { line: $ - 1, ch: 0 }
2838
+ from: { line: h - 1, ch: 0 },
2839
+ to: { line: A - 1, ch: 0 }
2841
2840
  };
2842
2841
  }
2843
2842
  },
2844
2843
  "fold"
2845
2844
  );
2846
2845
  },
2847
- [M]
2846
+ [v]
2848
2847
  );
2849
2848
  return z(() => {
2850
- if (!e || !M) return;
2851
- const v = pr(e);
2852
- if (v.length)
2853
- for (const $ of v)
2854
- C($);
2855
- }, [e, C, M]), /* @__PURE__ */ x(
2849
+ if (!e || !v) return;
2850
+ const h = pr(e);
2851
+ if (h.length)
2852
+ for (const A of h)
2853
+ D(A);
2854
+ }, [e, D, v]), /* @__PURE__ */ y(
2856
2855
  ur,
2857
2856
  {
2858
2857
  size: p,
@@ -2860,27 +2859,26 @@ function gr({
2860
2859
  id: r,
2861
2860
  "data-size": p,
2862
2861
  "data-height": s,
2863
- "data-mode": typeof (t == null ? void 0 : t.mode) == "object" && ((k = t.mode) != null && k.name) ? t.mode.name : t == null ? void 0 : t.mode,
2862
+ "data-mode": typeof (t == null ? void 0 : t.mode) == "object" && ((M = t.mode) != null && M.name) ? t.mode.name : t == null ? void 0 : t.mode,
2864
2863
  "data-fold-gutter": t == null ? void 0 : t.foldGutter,
2865
2864
  "data-testid": b,
2866
- "aria-label": f ? void 0 : g,
2867
- "aria-labelledby": f,
2865
+ "aria-label": g,
2868
2866
  "data-name": "code-area-input",
2869
2867
  children: [
2870
2868
  e !== void 0 && /* @__PURE__ */ n(
2871
2869
  Ee,
2872
2870
  {
2873
- ...y,
2871
+ ...f,
2874
2872
  value: e,
2875
- editorDidMount: (v) => {
2876
- h.current = v, A(v), i == null || i(v);
2873
+ editorDidMount: (h) => {
2874
+ C.current = h, k(h), i == null || i(h);
2877
2875
  },
2878
- options: w,
2879
- onBeforeChange: (v, $, I) => {
2880
- l == null || l(I);
2876
+ options: x,
2877
+ onBeforeChange: (h, A, R) => {
2878
+ l == null || l(R);
2881
2879
  },
2882
- onBlur: (v) => {
2883
- a == null || a(v.getValue());
2880
+ onBlur: (h) => {
2881
+ a == null || a(h.getValue());
2884
2882
  },
2885
2883
  onFocus: c
2886
2884
  }
@@ -2888,11 +2886,11 @@ function gr({
2888
2886
  o !== void 0 && /* @__PURE__ */ n(
2889
2887
  He,
2890
2888
  {
2891
- ...y,
2889
+ ...f,
2892
2890
  value: o,
2893
- options: w,
2894
- onBlur: (v) => {
2895
- a == null || a(v.getValue());
2891
+ options: x,
2892
+ onBlur: (h) => {
2893
+ a == null || a(h.getValue());
2896
2894
  },
2897
2895
  onFocus: c
2898
2896
  }
@@ -2905,7 +2903,7 @@ const fr = m(Bt)(() => ({
2905
2903
  display: "flex",
2906
2904
  flexDirection: "column",
2907
2905
  flex: 1
2908
- })), mr = m(D, {
2906
+ })), mr = m(w, {
2909
2907
  shouldForwardProp: (t) => ![
2910
2908
  "variant",
2911
2909
  "error",
@@ -3039,7 +3037,7 @@ const fr = m(Bt)(() => ({
3039
3037
  }
3040
3038
  }
3041
3039
  })
3042
- ), br = m(D, {
3040
+ ), br = m(w, {
3043
3041
  shouldForwardProp: (t) => t !== "hasActions"
3044
3042
  })(({ theme: t, hasActions: e }) => ({
3045
3043
  flex: "1 1 auto",
@@ -3072,23 +3070,23 @@ function xr({
3072
3070
  helperText: b,
3073
3071
  error: g,
3074
3072
  size: f = "small",
3075
- variant: y = "outlined",
3076
- onClickExpand: h,
3077
- onClickFooter: w,
3078
- disabledButtonFooter: M,
3079
- labelIdButtonFooter: A,
3080
- ariaLabelButtonFooter: C,
3081
- options: k,
3082
- id: v = "code-area-field",
3083
- saveLoading: $,
3073
+ variant: C = "outlined",
3074
+ onClickExpand: x,
3075
+ onClickFooter: v,
3076
+ disabledButtonFooter: k,
3077
+ labelIdButtonFooter: D,
3078
+ ariaLabelButtonFooter: M,
3079
+ options: h,
3080
+ id: A = "code-area-field",
3081
+ saveLoading: R,
3084
3082
  showSaveSnackbar: I,
3085
3083
  onCloseSaveSnackbar: E,
3086
3084
  fullScreen: S,
3087
3085
  isExpanded: L,
3088
3086
  ...V
3089
3087
  }) {
3090
- const [Xt, pt] = B(!1), gt = (k == null ? void 0 : k.readOnly) ?? !1, Qt = (k == null ? void 0 : k.lineNumbers) ?? !0;
3091
- return /* @__PURE__ */ x(
3088
+ const [Xt, pt] = $(!1), gt = (h == null ? void 0 : h.readOnly) ?? !1, Qt = (h == null ? void 0 : h.lineNumbers) ?? !0;
3089
+ return /* @__PURE__ */ y(
3092
3090
  fr,
3093
3091
  {
3094
3092
  size: f,
@@ -3097,18 +3095,18 @@ function xr({
3097
3095
  "aria-disabled": p,
3098
3096
  "data-size": f,
3099
3097
  "data-full-screen": S,
3100
- "data-variant": y,
3098
+ "data-variant": C,
3101
3099
  "data-name": "code-area-field",
3102
3100
  children: [
3103
3101
  a && /* @__PURE__ */ n(
3104
3102
  Tt,
3105
3103
  {
3106
- htmlFor: v,
3104
+ htmlFor: A,
3107
3105
  disabled: p,
3108
3106
  error: g,
3109
3107
  focused: Xt,
3110
3108
  shrink: !0,
3111
- id: `${v}-label`,
3109
+ id: `${A}-label`,
3112
3110
  children: /* @__PURE__ */ n(
3113
3111
  X,
3114
3112
  {
@@ -3124,31 +3122,31 @@ function xr({
3124
3122
  )
3125
3123
  }
3126
3124
  ),
3127
- /* @__PURE__ */ x(
3125
+ /* @__PURE__ */ y(
3128
3126
  mr,
3129
3127
  {
3130
- variant: y,
3128
+ variant: C,
3131
3129
  error: !!g,
3132
3130
  disabled: p,
3133
3131
  readOnly: gt,
3134
3132
  lineNumbers: Qt,
3135
- className: y === "filled" ? "codeArea-filled" : "",
3133
+ className: C === "filled" ? "codeArea-filled" : "",
3136
3134
  fullScreen: S,
3137
3135
  children: [
3138
3136
  /* @__PURE__ */ n(
3139
3137
  sr,
3140
3138
  {
3141
- onClickExpand: h,
3139
+ onClickExpand: x,
3142
3140
  copyValue: s,
3143
3141
  disabled: p,
3144
3142
  size: L ? "medium" : "small"
3145
3143
  }
3146
3144
  ),
3147
- /* @__PURE__ */ n(br, { hasActions: !!s || !!h, children: /* @__PURE__ */ n(
3145
+ /* @__PURE__ */ n(br, { hasActions: !!s || !!x, children: /* @__PURE__ */ n(
3148
3146
  gr,
3149
3147
  {
3150
3148
  ...V,
3151
- id: v,
3149
+ id: A,
3152
3150
  disabled: p,
3153
3151
  value: t,
3154
3152
  defaultValue: e,
@@ -3166,21 +3164,21 @@ function xr({
3166
3164
  styleActiveLine: !1,
3167
3165
  matchBrackets: !1
3168
3166
  },
3169
- ...k
3167
+ ...h
3170
3168
  },
3171
- "aria-labelledby": a ? `${v}-label` : void 0
3169
+ "aria-labelledby": a ? `${A}-label` : void 0
3172
3170
  }
3173
3171
  ) }),
3174
3172
  /* @__PURE__ */ n(
3175
3173
  qt,
3176
3174
  {
3177
- labelIdButtonFooter: A,
3178
- ariaLabelButtonFooter: C,
3179
- onClickFooter: w,
3175
+ labelIdButtonFooter: D,
3176
+ ariaLabelButtonFooter: M,
3177
+ onClickFooter: v,
3180
3178
  disabled: p,
3181
- disabledButtonFooter: M,
3179
+ disabledButtonFooter: k,
3182
3180
  size: "small",
3183
- loading: !!$,
3181
+ loading: !!R,
3184
3182
  showSnackbar: I,
3185
3183
  onCloseSnackbar: E
3186
3184
  }
@@ -3193,7 +3191,7 @@ function xr({
3193
3191
  }
3194
3192
  );
3195
3193
  }
3196
- const yr = m(D)(({ theme: t }) => ({
3194
+ const yr = m(w)(({ theme: t }) => ({
3197
3195
  position: "relative",
3198
3196
  marginBottom: "1px",
3199
3197
  padding: t.spacing(1.5, 2, 1.5, 5.5),
@@ -3220,7 +3218,7 @@ const yr = m(D)(({ theme: t }) => ({
3220
3218
  ".MuiFormHelperText-root": {
3221
3219
  marginTop: 0
3222
3220
  }
3223
- })), Cr = m(D)(({ theme: t }) => ({
3221
+ })), Cr = m(w)(({ theme: t }) => ({
3224
3222
  position: "relative",
3225
3223
  zIndex: 3,
3226
3224
  display: "flex",
@@ -3232,8 +3230,8 @@ function Mr({
3232
3230
  hasDivider: e
3233
3231
  }) {
3234
3232
  const o = j();
3235
- return t ? /* @__PURE__ */ x(H, { children: [
3236
- /* @__PURE__ */ n(yr, { children: /* @__PURE__ */ x(Cr, { children: [
3233
+ return t ? /* @__PURE__ */ y(H, { children: [
3234
+ /* @__PURE__ */ n(yr, { children: /* @__PURE__ */ y(Cr, { children: [
3237
3235
  /* @__PURE__ */ n(Be, { htmlColor: o.palette.error.main }),
3238
3236
  /* @__PURE__ */ n(J, { error: !0, children: t })
3239
3237
  ] }) }),
@@ -3421,13 +3419,13 @@ function kr({
3421
3419
  const vr = O(kr), wr = m(ye)(() => ({
3422
3420
  padding: 0,
3423
3421
  zIndex: 10
3424
- })), Dr = m(D)(({ theme: t }) => ({
3422
+ })), Dr = m(w)(({ theme: t }) => ({
3425
3423
  display: "flex",
3426
3424
  alignItems: "center",
3427
3425
  justifyContent: "space-between",
3428
3426
  padding: t.spacing(2),
3429
3427
  minHeight: t.spacing(8)
3430
- })), Dt = m(D)(({ theme: t }) => ({
3428
+ })), Dt = m(w)(({ theme: t }) => ({
3431
3429
  display: "flex",
3432
3430
  alignItems: "center",
3433
3431
  gap: t.spacing(1),
@@ -3450,11 +3448,11 @@ function Ir({
3450
3448
  closeIcon: c,
3451
3449
  ...d
3452
3450
  }) {
3453
- const u = R(), p = T(u);
3454
- return /* @__PURE__ */ x(H, { children: [
3455
- /* @__PURE__ */ x(wr, { component: "div", "data-name": "dialog-header", ...d, children: [
3456
- /* @__PURE__ */ x(Dr, { children: [
3457
- /* @__PURE__ */ x(Dt, { flex: 1, maxWidth: 0.8, children: [
3451
+ const u = T(), p = B(u);
3452
+ return /* @__PURE__ */ y(H, { children: [
3453
+ /* @__PURE__ */ y(wr, { component: "div", "data-name": "dialog-header", ...d, children: [
3454
+ /* @__PURE__ */ y(Dr, { children: [
3455
+ /* @__PURE__ */ y(Dt, { flex: 1, maxWidth: 0.8, children: [
3458
3456
  /* @__PURE__ */ n(
3459
3457
  F,
3460
3458
  {
@@ -3468,7 +3466,7 @@ function Ir({
3468
3466
  ),
3469
3467
  e && /* @__PURE__ */ n(Ce, { color: "default", label: e, ...o })
3470
3468
  ] }),
3471
- /* @__PURE__ */ x(Dt, { children: [
3469
+ /* @__PURE__ */ y(Dt, { children: [
3472
3470
  l,
3473
3471
  i && /* @__PURE__ */ n(
3474
3472
  P,
@@ -3525,7 +3523,7 @@ function Br({
3525
3523
  onScroll: l,
3526
3524
  ...a
3527
3525
  }, c) {
3528
- const d = j(), [u, p] = B(null);
3526
+ const d = j(), [u, p] = $(null);
3529
3527
  ee(
3530
3528
  c,
3531
3529
  () => u,
@@ -3533,8 +3531,8 @@ function Br({
3533
3531
  );
3534
3532
  const s = ot(
3535
3533
  (g) => {
3536
- const f = Math.abs(g.scrollHeight - g.clientHeight - g.scrollTop) < 1, y = g.scrollTop === 0, h = `1px solid ${d.palette.divider}`;
3537
- g.style.borderTop = y ? "none" : h, g.style.borderBottom = f && !o ? "none" : h;
3534
+ const f = Math.abs(g.scrollHeight - g.clientHeight - g.scrollTop) < 1, C = g.scrollTop === 0, x = `1px solid ${d.palette.divider}`;
3535
+ g.style.borderTop = C ? "none" : x, g.style.borderBottom = f && !o ? "none" : x;
3538
3536
  },
3539
3537
  [d.palette.divider, o]
3540
3538
  ), b = ot(
@@ -3593,7 +3591,7 @@ function Jt({
3593
3591
  }) {
3594
3592
  return /* @__PURE__ */ n(Tr, { severity: e, ...o, "data-name": "dialog-alert", children: t });
3595
3593
  }
3596
- const Rr = m(D, {
3594
+ const Rr = m(w, {
3597
3595
  shouldForwardProp: (t) => !["dark", "hasChildren"].includes(t)
3598
3596
  })(({ dark: t, hasChildren: e, theme: o }) => ({
3599
3597
  flex: "0 0 auto",
@@ -3615,14 +3613,14 @@ const Rr = m(D, {
3615
3613
  }
3616
3614
  }
3617
3615
  }
3618
- })), Or = m(D)(() => ({
3616
+ })), Or = m(w)(() => ({
3619
3617
  display: "flex",
3620
3618
  alignItems: "center",
3621
3619
  justifyContent: "space-between",
3622
3620
  "& > div:empty": {
3623
3621
  padding: 0
3624
3622
  }
3625
- })), Fr = m(D, {
3623
+ })), Fr = m(w, {
3626
3624
  shouldForwardProp: (t) => t !== "hasAlert"
3627
3625
  })(({ hasAlert: t, theme: e }) => ({
3628
3626
  display: "flex",
@@ -3653,10 +3651,10 @@ function Wr({
3653
3651
  topContent: l,
3654
3652
  ...a
3655
3653
  }) {
3656
- return /* @__PURE__ */ x(H, { children: [
3654
+ return /* @__PURE__ */ y(H, { children: [
3657
3655
  l,
3658
3656
  !!o && /* @__PURE__ */ n(Lr, {}),
3659
- /* @__PURE__ */ x(
3657
+ /* @__PURE__ */ y(
3660
3658
  Rr,
3661
3659
  {
3662
3660
  ...a,
@@ -3665,8 +3663,8 @@ function Wr({
3665
3663
  "data-name": "dialog-footer",
3666
3664
  hasChildren: !!t,
3667
3665
  children: [
3668
- !!o && /* @__PURE__ */ n(D, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ n(Jt, { ...r, children: o }) }),
3669
- /* @__PURE__ */ x(Or, { children: [
3666
+ !!o && /* @__PURE__ */ n(w, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ n(Jt, { ...r, children: o }) }),
3667
+ /* @__PURE__ */ y(Or, { children: [
3670
3668
  /* @__PURE__ */ n(Fr, { hasAlert: !!o, children: e }),
3671
3669
  /* @__PURE__ */ n(Kt, { hasAlert: !!o, children: t })
3672
3670
  ] })
@@ -3675,7 +3673,7 @@ function Wr({
3675
3673
  )
3676
3674
  ] });
3677
3675
  }
3678
- const Er = m(D)(({ theme: t }) => ({
3676
+ const Er = m(w)(({ theme: t }) => ({
3679
3677
  position: "absolute",
3680
3678
  width: "100%",
3681
3679
  zIndex: 100,
@@ -3690,7 +3688,7 @@ const Er = m(D)(({ theme: t }) => ({
3690
3688
  background: t.palette.white[60]
3691
3689
  })), Hr = m("div")(() => ({
3692
3690
  width: "100%"
3693
- })), Pr = m(D)(({ theme: t }) => ({
3691
+ })), Pr = m(w)(({ theme: t }) => ({
3694
3692
  width: "100%",
3695
3693
  padding: t.spacing(1.5, 2, 2),
3696
3694
  backgroundColor: t.palette.background.paper,
@@ -3731,7 +3729,7 @@ function zr({
3731
3729
  unmountOnExit: !0,
3732
3730
  easing: u.transitions.easing.easeOut,
3733
3731
  timeout: 350,
3734
- children: /* @__PURE__ */ n(Hr, { children: /* @__PURE__ */ x(Pr, { children: [
3732
+ children: /* @__PURE__ */ n(Hr, { children: /* @__PURE__ */ y(Pr, { children: [
3735
3733
  /* @__PURE__ */ n(Jt, { severity: r, ...c, children: t }),
3736
3734
  /* @__PURE__ */ n(Kt, { children: o })
3737
3735
  ] }) })
@@ -3740,7 +3738,7 @@ function zr({
3740
3738
  }
3741
3739
  );
3742
3740
  }
3743
- const Nr = m(D)(({ theme: t }) => ({
3741
+ const Nr = m(w)(({ theme: t }) => ({
3744
3742
  display: "flex",
3745
3743
  alignItems: "center",
3746
3744
  justifyContent: "center",
@@ -3749,7 +3747,7 @@ const Nr = m(D)(({ theme: t }) => ({
3749
3747
  "& > div": {
3750
3748
  flex: 1
3751
3749
  }
3752
- })), _r = m(D)(({ theme: t }) => ({
3750
+ })), _r = m(w)(({ theme: t }) => ({
3753
3751
  display: "flex",
3754
3752
  flex: 1,
3755
3753
  flexDirection: "column",
@@ -3814,9 +3812,9 @@ function Kn({
3814
3812
  stepsLabels: e,
3815
3813
  ...o
3816
3814
  }) {
3817
- return /* @__PURE__ */ n(Nr, { ...o, "data-name": "dialog-stepper", children: /* @__PURE__ */ n(D, { sx: { display: "flex" }, children: e.map((r, i) => {
3815
+ return /* @__PURE__ */ n(Nr, { ...o, "data-name": "dialog-stepper", children: /* @__PURE__ */ n(w, { sx: { display: "flex" }, children: e.map((r, i) => {
3818
3816
  const l = i + 1, a = l === t, c = l < t;
3819
- return /* @__PURE__ */ x(
3817
+ return /* @__PURE__ */ y(
3820
3818
  _r,
3821
3819
  {
3822
3820
  "data-state": c ? "completed" : a ? "current" : "uncompleted",
@@ -3870,7 +3868,7 @@ function Yr({
3870
3868
  severity: c = "warning",
3871
3869
  content: d
3872
3870
  }) {
3873
- const u = R(), p = T(u);
3871
+ const u = T(), p = B(u);
3874
3872
  return !t || !e ? null : /* @__PURE__ */ n(
3875
3873
  zr,
3876
3874
  {
@@ -3879,7 +3877,7 @@ function Yr({
3879
3877
  title: p.formatMessage({
3880
3878
  id: a || "c4r.dialog.confirmation.title"
3881
3879
  }),
3882
- actions: /* @__PURE__ */ x(H, { children: [
3880
+ actions: /* @__PURE__ */ y(H, { children: [
3883
3881
  e && (r || /* @__PURE__ */ n(nt, { onClick: e, children: p.formatMessage({
3884
3882
  id: o || "c4r.button.cancel"
3885
3883
  }) })),
@@ -3909,21 +3907,21 @@ function Xn({
3909
3907
  onCloseConfirm: b,
3910
3908
  footerProps: g,
3911
3909
  saveLoading: f,
3912
- showSaveSnackbar: y,
3913
- onCloseSaveSnackbar: h,
3914
- "data-testid": w,
3915
- "aria-label": M,
3916
- ...A
3910
+ showSaveSnackbar: C,
3911
+ onCloseSaveSnackbar: x,
3912
+ "data-testid": v,
3913
+ "aria-label": k,
3914
+ ...D
3917
3915
  }) {
3918
- const C = r || !!l || !!g;
3919
- return t ? /* @__PURE__ */ x(
3916
+ const M = r || !!l || !!g;
3917
+ return t ? /* @__PURE__ */ y(
3920
3918
  vr,
3921
3919
  {
3922
3920
  open: t,
3923
3921
  fullScreen: !0,
3924
3922
  onClose: e,
3925
- "data-testid": w,
3926
- "aria-label": M,
3923
+ "data-testid": v,
3924
+ "aria-label": k,
3927
3925
  "data-name": "code-area-dialog",
3928
3926
  children: [
3929
3927
  /* @__PURE__ */ n(
@@ -3937,13 +3935,13 @@ function Xn({
3937
3935
  /* @__PURE__ */ n(Ur, { error: r, children: /* @__PURE__ */ n(
3938
3936
  xr,
3939
3937
  {
3940
- ...A,
3938
+ ...D,
3941
3939
  disabled: u,
3942
3940
  variant: null,
3943
3941
  isExpanded: !0
3944
3942
  }
3945
3943
  ) }),
3946
- C && /* @__PURE__ */ n(
3944
+ M && /* @__PURE__ */ n(
3947
3945
  Wr,
3948
3946
  {
3949
3947
  ...g,
@@ -3960,8 +3958,8 @@ function Xn({
3960
3958
  variant: "contained",
3961
3959
  size: "medium",
3962
3960
  loading: !!f,
3963
- showSnackbar: y,
3964
- onCloseSnackbar: h
3961
+ showSnackbar: C,
3962
+ onCloseSnackbar: x
3965
3963
  }
3966
3964
  )
3967
3965
  }