@carto/meridian-ds 1.4.2-alpha-unit-tests.1 → 1.4.2-multiple-selectall.1

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.
@@ -35,13 +35,13 @@ function Ce({
35
35
  endIcon: a,
36
36
  loadingPosition: r,
37
37
  ...l
38
- }, c) {
39
- const s = /* @__PURE__ */ i(P, { size: 18, color: "inherit" }), p = e && r === void 0, h = () => p ? /* @__PURE__ */ y(v, { sx: { position: "relative" }, children: [
40
- /* @__PURE__ */ i(ye, { children: s }),
38
+ }, s) {
39
+ const c = /* @__PURE__ */ i(P, { size: 18, color: "inherit" }), p = e && r === void 0, h = () => p ? /* @__PURE__ */ y(v, { sx: { position: "relative" }, children: [
40
+ /* @__PURE__ */ i(ye, { children: c }),
41
41
  /* @__PURE__ */ i(Me, { children: t })
42
42
  ] }) : t, d = (m) => {
43
43
  if (!p)
44
- return e && r !== void 0 ? r === m ? s : void 0 : m === "start" ? o : a;
44
+ return e && r !== void 0 ? r === m ? c : void 0 : m === "start" ? o : a;
45
45
  };
46
46
  return /* @__PURE__ */ i(
47
47
  gt,
@@ -51,7 +51,7 @@ function Ce({
51
51
  endIcon: d("end"),
52
52
  ...l,
53
53
  role: l.href ? "link" : "button",
54
- ref: c,
54
+ ref: s,
55
55
  children: /* @__PURE__ */ i(S, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: h() })
56
56
  }
57
57
  );
@@ -100,7 +100,7 @@ function K({
100
100
  ] });
101
101
  }
102
102
  function Ae({ InputProps: t, size: e = "small", ...n }, o) {
103
- const a = F(), r = R(a), [l, c] = $(!1);
103
+ const a = F(), r = R(a), [l, s] = $(!1);
104
104
  return /* @__PURE__ */ i(
105
105
  ft,
106
106
  {
@@ -110,7 +110,7 @@ function Ae({ InputProps: t, size: e = "small", ...n }, o) {
110
110
  size: e,
111
111
  InputProps: {
112
112
  ...t,
113
- endAdornment: /* @__PURE__ */ i(q, { position: "end", children: /* @__PURE__ */ i(W, { size: e, onClick: () => c(!l), children: /* @__PURE__ */ i(
113
+ endAdornment: /* @__PURE__ */ i(q, { position: "end", children: /* @__PURE__ */ i(W, { size: e, onClick: () => s(!l), children: /* @__PURE__ */ i(
114
114
  H,
115
115
  {
116
116
  title: r.formatMessage({
@@ -156,8 +156,8 @@ function Se({
156
156
  menuProps: a,
157
157
  inputProps: r,
158
158
  labelId: l,
159
- label: c,
160
- labelSecondary: s,
159
+ label: s,
160
+ labelSecondary: c,
161
161
  helperText: p,
162
162
  name: h,
163
163
  error: d,
@@ -168,7 +168,7 @@ function Se({
168
168
  "aria-label": b,
169
169
  ...I
170
170
  }, k) {
171
- const D = n === "small", [x] = $(() => Ie("select-label-")), C = c ? l ?? x : void 0;
171
+ const D = n === "small", [x] = $(() => Ie("select-label-")), C = s ? l ?? x : void 0;
172
172
  return /* @__PURE__ */ y(
173
173
  Et,
174
174
  {
@@ -182,8 +182,8 @@ function Se({
182
182
  "data-size": n,
183
183
  children: [
184
184
  /* @__PURE__ */ y(v, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
185
- c && /* @__PURE__ */ i(Ht, { shrink: !0, id: C, children: c }),
186
- s && /* @__PURE__ */ i(v, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: s })
185
+ s && /* @__PURE__ */ i(Ht, { shrink: !0, id: C, children: s }),
186
+ c && /* @__PURE__ */ i(v, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: c })
187
187
  ] }),
188
188
  /* @__PURE__ */ y(
189
189
  we,
@@ -347,8 +347,8 @@ function Oe({
347
347
  variant: a = "icon",
348
348
  color: r = "default",
349
349
  sx: l,
350
- className: c,
351
- loading: s,
350
+ className: s,
351
+ loading: c,
352
352
  disabled: p,
353
353
  active: h,
354
354
  ...d
@@ -356,7 +356,7 @@ function Oe({
356
356
  return /* @__PURE__ */ i(H, { placement: e, title: t ?? "", children: /* @__PURE__ */ i(
357
357
  Re,
358
358
  {
359
- className: `optionIconButton ${c ?? ""}`,
359
+ className: `optionIconButton ${s ?? ""}`,
360
360
  sx: l,
361
361
  "data-testid": "icon-button",
362
362
  children: /* @__PURE__ */ i(
@@ -368,9 +368,9 @@ function Oe({
368
368
  variant: a,
369
369
  color: r,
370
370
  active: h,
371
- disabled: p || s,
371
+ disabled: p || c,
372
372
  role: "button",
373
- children: s ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : n
373
+ children: c ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : n
374
374
  }
375
375
  )
376
376
  }
@@ -472,32 +472,43 @@ function je({
472
472
  areAnySelected: e,
473
473
  selectAll: n,
474
474
  selectAllDisabled: o,
475
- ...a
476
- }, r) {
477
- const l = F(), c = R(l);
478
- return /* @__PURE__ */ i(Pe, { ...a, ref: r, fixed: !0, "data-name": "menu-filter", children: /* @__PURE__ */ y(
479
- Ge,
475
+ "aria-label": a,
476
+ "data-testid": r
477
+ }, l) {
478
+ const s = F(), c = R(s);
479
+ return /* @__PURE__ */ i(
480
+ Pe,
480
481
  {
481
- variant: "body2",
482
- color: "textPrimary",
483
- component: "button",
484
- underline: "none",
485
- disabled: !!o,
486
- onClick: n,
487
- tabIndex: 0,
488
- children: [
489
- /* @__PURE__ */ i(
490
- z,
491
- {
492
- checked: t,
493
- indeterminate: e && !t,
494
- disabled: o
495
- }
496
- ),
497
- c.formatMessage({ id: "c4r.form.selectAll" })
498
- ]
482
+ ref: l,
483
+ fixed: !0,
484
+ "data-name": "menu-filter",
485
+ "aria-label": a,
486
+ "data-testid": r,
487
+ children: /* @__PURE__ */ y(
488
+ Ge,
489
+ {
490
+ variant: "body2",
491
+ color: "textPrimary",
492
+ component: "button",
493
+ underline: "none",
494
+ disabled: !!o,
495
+ onClick: n,
496
+ tabIndex: 0,
497
+ children: [
498
+ /* @__PURE__ */ i(
499
+ z,
500
+ {
501
+ checked: t,
502
+ indeterminate: e && !t,
503
+ disabled: o
504
+ }
505
+ ),
506
+ c.formatMessage({ id: "c4r.form.selectAll" })
507
+ ]
508
+ }
509
+ )
499
510
  }
500
- ) });
511
+ );
501
512
  }
502
513
  const kt = T(je);
503
514
  function Ve({
@@ -563,8 +574,8 @@ function ze({
563
574
  showCounter: a,
564
575
  showFilters: r = !0,
565
576
  onChange: l = qe,
566
- selectAllDisabled: c,
567
- tooltipPlacement: s,
577
+ selectAllDisabled: s,
578
+ tooltipPlacement: c,
568
579
  variant: p,
569
580
  ...h
570
581
  }, d) {
@@ -649,7 +660,7 @@ function ze({
649
660
  areAllSelected: m,
650
661
  areAnySelected: u,
651
662
  selectAll: b,
652
- selectAllDisabled: c
663
+ selectAllDisabled: s
653
664
  }
654
665
  ),
655
666
  t == null ? void 0 : t.map((w) => {
@@ -676,7 +687,7 @@ function ze({
676
687
  H,
677
688
  {
678
689
  title: w.tooltip,
679
- placement: s,
690
+ placement: c,
680
691
  children: E
681
692
  },
682
693
  w.value
@@ -722,14 +733,14 @@ function Je({
722
733
  disabled: a,
723
734
  handleReset: r,
724
735
  handleOpen: l,
725
- inProgress: c
736
+ inProgress: s
726
737
  }) {
727
- return /* @__PURE__ */ i(q, { position: "end", children: c ? /* @__PURE__ */ i(W, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ i(P, { size: 18 }) }) : e ? /* @__PURE__ */ i(
738
+ return /* @__PURE__ */ i(q, { position: "end", children: s ? /* @__PURE__ */ i(W, { "aria-label": "Loading", disabled: !0, size: n, children: /* @__PURE__ */ i(P, { size: 18 }) }) : e ? /* @__PURE__ */ i(
728
739
  W,
729
740
  {
730
741
  onClick: r,
731
742
  size: n,
732
- "aria-label": "delete",
743
+ "aria-label": "Delete",
733
744
  disabled: a,
734
745
  children: /* @__PURE__ */ i(yt, {})
735
746
  }
@@ -755,8 +766,8 @@ function Xe({
755
766
  dragOver: a,
756
767
  error: r,
757
768
  placeholder: l,
758
- focused: c,
759
- buttonText: s = "Browse",
769
+ focused: s,
770
+ buttonText: c = "Browse",
760
771
  inProgress: p,
761
772
  InputProps: h,
762
773
  size: d = "small",
@@ -771,7 +782,7 @@ function Xe({
771
782
  size: d,
772
783
  error: r,
773
784
  placeholder: l,
774
- focused: c ?? a,
785
+ focused: s ?? a,
775
786
  cursor: u,
776
787
  InputProps: {
777
788
  ...h,
@@ -782,7 +793,7 @@ function Xe({
782
793
  endAdornment: /* @__PURE__ */ i(
783
794
  Je,
784
795
  {
785
- buttonText: s,
796
+ buttonText: c,
786
797
  hasFiles: m,
787
798
  size: d,
788
799
  error: r,
@@ -803,9 +814,9 @@ function Ke({
803
814
  placeholder: o,
804
815
  uploadInputRef: a
805
816
  }) {
806
- const r = F(), l = R(r), [c, s] = $(""), [p, h] = $(!1);
817
+ const r = F(), l = R(r), [s, c] = $(""), [p, h] = $(!1);
807
818
  _(() => {
808
- !e || e.length === 0 ? s("") : e.length === 1 ? s(e[0].name) : s(
819
+ !e || e.length === 0 ? c("") : e.length === 1 ? c(e[0].name) : c(
809
820
  l.formatMessage(
810
821
  { id: "c4r.form.filesSelected" },
811
822
  { count: e.length }
@@ -835,7 +846,7 @@ function Ke({
835
846
  const C = Array.from(x.target.files);
836
847
  t == null || t(C);
837
848
  }, I = (x) => {
838
- x.stopPropagation(), s("");
849
+ x.stopPropagation(), c("");
839
850
  }, k = pt(() => {
840
851
  const x = l.formatMessage(
841
852
  { id: "c4r.form.dragPlaceholder" },
@@ -848,7 +859,7 @@ function Ke({
848
859
  return p ? B = C : B = o ?? x, B;
849
860
  }, [p, n, o, l]);
850
861
  return {
851
- filesText: c,
862
+ filesText: s,
852
863
  getPlaceholder: k,
853
864
  dragOver: p,
854
865
  inputEvents: {
@@ -870,8 +881,8 @@ function ko({
870
881
  inProgress: a,
871
882
  onChange: r,
872
883
  multiple: l,
873
- placeholder: c,
874
- error: s,
884
+ placeholder: s,
885
+ error: c,
875
886
  focused: p,
876
887
  nativeInputProps: h,
877
888
  ...d
@@ -888,7 +899,7 @@ function ko({
888
899
  files: o,
889
900
  onChange: r,
890
901
  multiple: l,
891
- placeholder: c
902
+ placeholder: s
892
903
  });
893
904
  return /* @__PURE__ */ y(V, { children: [
894
905
  /* @__PURE__ */ i(
@@ -897,7 +908,7 @@ function ko({
897
908
  ...d,
898
909
  placeholder: M,
899
910
  value: f,
900
- error: s,
911
+ error: c,
901
912
  focused: p ?? b,
902
913
  handleReset: D,
903
914
  dragOver: b,
@@ -948,8 +959,8 @@ function wt() {
948
959
  return { renderOption: (e, n, o, a, r) => {
949
960
  const {
950
961
  title: l,
951
- inputValue: c,
952
- divider: s,
962
+ inputValue: s,
963
+ divider: c,
953
964
  fixed: p,
954
965
  extended: h,
955
966
  dense: d,
@@ -963,8 +974,8 @@ function wt() {
963
974
  secondaryText: D,
964
975
  multiple: x
965
976
  } = n, { key: C, ...B } = e, O = typeof n == "string" || typeof n == "number", w = (E, A, L, et) => L || et || (A && typeof A == "object" && "value" in A ? String(A.value) : E(A));
966
- return /* @__PURE__ */ i(Ot, { children: s ? /* @__PURE__ */ i(j, {}) : /* @__PURE__ */ y(V, { children: [
967
- c && /* @__PURE__ */ i(j, {}),
977
+ return /* @__PURE__ */ i(Ot, { children: c ? /* @__PURE__ */ i(j, {}) : /* @__PURE__ */ y(V, { children: [
978
+ s && /* @__PURE__ */ i(j, {}),
968
979
  /* @__PURE__ */ y(
969
980
  vt,
970
981
  {
@@ -1015,7 +1026,7 @@ function en({
1015
1026
  newItemIcon: n,
1016
1027
  multiple: o
1017
1028
  }) {
1018
- const a = F(), r = R(a), l = Nt(), { renderOption: c } = wt();
1029
+ const a = F(), r = R(a), l = Nt(), { renderOption: s } = wt();
1019
1030
  return {
1020
1031
  creatableFilterOptions: (d, m) => {
1021
1032
  const u = l(
@@ -1036,7 +1047,7 @@ function en({
1036
1047
  creatableOptionLabel: (d) => typeof d == "string" ? d : d.inputValue ? d.inputValue : t(d),
1037
1048
  creatableRenderOption: (d, m, u) => {
1038
1049
  const f = m.inputValue ? n ?? /* @__PURE__ */ i(de, {}) : void 0, M = At(m, !!o);
1039
- return c(
1050
+ return s(
1040
1051
  d,
1041
1052
  M,
1042
1053
  u,
@@ -1059,13 +1070,13 @@ function Bt({
1059
1070
  const m = Array.isArray(e) ? e : e ? [e] : [];
1060
1071
  r(m);
1061
1072
  }, [e]);
1062
- const c = a.length === t.length, s = a.length > 0 && a.length < t.length;
1073
+ const s = a.length === t.length, c = a.length > 0 && a.length < t.length;
1063
1074
  return {
1064
1075
  multipleValue: a,
1065
- allSelected: c,
1066
- someSelected: s,
1076
+ allSelected: s,
1077
+ someSelected: c,
1067
1078
  handleSelectAll: (m) => {
1068
- const u = c ? [] : [...t];
1079
+ const u = s ? [] : [...t];
1069
1080
  r(u), n == null || n(
1070
1081
  m,
1071
1082
  u,
@@ -1095,11 +1106,11 @@ function nn({
1095
1106
  },
1096
1107
  multiple: r,
1097
1108
  ...l
1098
- }, c) {
1109
+ }, s) {
1099
1110
  return /* @__PURE__ */ y(
1100
1111
  "ul",
1101
1112
  {
1102
- ref: c,
1113
+ ref: s,
1103
1114
  ...l,
1104
1115
  role: "listbox",
1105
1116
  "aria-multiselectable": r,
@@ -1126,8 +1137,8 @@ function on({
1126
1137
  disableCloseOnSelect: a,
1127
1138
  disabled: r,
1128
1139
  loading: l,
1129
- showFilters: c,
1130
- options: s = [],
1140
+ showFilters: s,
1141
+ options: c = [],
1131
1142
  value: p,
1132
1143
  onChange: h,
1133
1144
  getLimitTagsText: d,
@@ -1140,7 +1151,7 @@ function on({
1140
1151
  handleSelectAll: D,
1141
1152
  handleChange: x
1142
1153
  } = Bt({
1143
- options: s,
1154
+ options: c,
1144
1155
  value: p,
1145
1156
  onChange: h
1146
1157
  }), {
@@ -1158,7 +1169,7 @@ function on({
1158
1169
  {
1159
1170
  ...M,
1160
1171
  ref: u,
1161
- options: s,
1172
+ options: c,
1162
1173
  value: o ? b : p,
1163
1174
  onChange: x,
1164
1175
  filterOptions: C,
@@ -1170,7 +1181,7 @@ function on({
1170
1181
  disableCloseOnSelect: a ?? o,
1171
1182
  ListboxComponent: St,
1172
1183
  ListboxProps: {
1173
- showFilters: c,
1184
+ showFilters: s,
1174
1185
  allSelected: I,
1175
1186
  someSelected: k,
1176
1187
  handleSelectAll: D,
@@ -1192,8 +1203,8 @@ function an({
1192
1203
  showFilters: a,
1193
1204
  options: r,
1194
1205
  value: l,
1195
- onChange: c,
1196
- getOptionLabel: s,
1206
+ onChange: s,
1207
+ getOptionLabel: c,
1197
1208
  getLimitTagsText: p,
1198
1209
  ...h
1199
1210
  }, d) {
@@ -1207,8 +1218,8 @@ function an({
1207
1218
  } = Bt({
1208
1219
  options: r,
1209
1220
  value: l,
1210
- onChange: c,
1211
- getOptionLabel: s
1221
+ onChange: s,
1222
+ getOptionLabel: c
1212
1223
  });
1213
1224
  return /* @__PURE__ */ i(
1214
1225
  Z,
@@ -1218,7 +1229,7 @@ function an({
1218
1229
  options: r,
1219
1230
  value: m,
1220
1231
  onChange: b,
1221
- getOptionLabel: s,
1232
+ getOptionLabel: c,
1222
1233
  renderOption: t ?? I,
1223
1234
  ListboxComponent: St,
1224
1235
  ListboxProps: {
@@ -1403,9 +1414,9 @@ function So({
1403
1414
  title: a,
1404
1415
  action: r,
1405
1416
  open: l,
1406
- onClose: c = () => {
1417
+ onClose: s = () => {
1407
1418
  },
1408
- autoWidth: s,
1419
+ autoWidth: c,
1409
1420
  icon: p,
1410
1421
  ...h
1411
1422
  }) {
@@ -1416,16 +1427,16 @@ function So({
1416
1427
  ...h,
1417
1428
  open: l,
1418
1429
  autoHideDuration: e === null ? null : e || ot,
1419
- onClose: c,
1420
- TransitionComponent: s ? Xt : xt,
1421
- "data-auto-width": s,
1430
+ onClose: s,
1431
+ TransitionComponent: c ? Xt : xt,
1432
+ "data-auto-width": c,
1422
1433
  children: /* @__PURE__ */ y(
1423
1434
  sn,
1424
1435
  {
1425
1436
  sx: {
1426
1437
  position: "relative"
1427
1438
  },
1428
- autoWidth: s,
1439
+ autoWidth: c,
1429
1440
  children: [
1430
1441
  /* @__PURE__ */ i(
1431
1442
  dn,
@@ -1444,7 +1455,7 @@ function So({
1444
1455
  Le,
1445
1456
  {
1446
1457
  color: "default",
1447
- onClick: (I) => c(I, "timeout"),
1458
+ onClick: (I) => s(I, "timeout"),
1448
1459
  icon: /* @__PURE__ */ i(Mt, {}),
1449
1460
  tooltip: m.formatMessage({
1450
1461
  id: "c4r.button.close"
@@ -1670,8 +1681,8 @@ function at({
1670
1681
  labelHelpTooltip: a,
1671
1682
  type: r,
1672
1683
  helperText: l,
1673
- placeholder: c,
1674
- slotProps: s,
1684
+ placeholder: s,
1685
+ slotProps: c,
1675
1686
  slots: p,
1676
1687
  error: h,
1677
1688
  showCalendar: d = !0,
@@ -1709,7 +1720,7 @@ function at({
1709
1720
  textField: {
1710
1721
  variant: e,
1711
1722
  helperText: l,
1712
- placeholder: c,
1723
+ placeholder: s,
1713
1724
  size: n,
1714
1725
  error: h ?? void 0,
1715
1726
  // undefined is needed to allow the component to control the error state for the default validation
@@ -1721,7 +1732,7 @@ function at({
1721
1732
  clearable: !!t,
1722
1733
  onClear: t
1723
1734
  },
1724
- ...s
1735
+ ...c
1725
1736
  },
1726
1737
  slots: {
1727
1738
  clearButton: (k) => /* @__PURE__ */ i(Q, { ...k, size: n, variant: e }),
@@ -1868,22 +1879,22 @@ function lt({
1868
1879
  selectedMonth: o,
1869
1880
  ...a
1870
1881
  }) {
1871
- const r = !!(e && rt(e, t)), l = !!(n && rt(n, t)), c = !!(e && n && t.getTime() >= e.getTime() && t.getTime() <= n.getTime()), s = t.getDate() === 1, p = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), h = !!(o && t.getMonth() === o.getMonth());
1882
+ const r = !!(e && rt(e, t)), l = !!(n && rt(n, t)), s = !!(e && n && t.getTime() >= e.getTime() && t.getTime() <= n.getTime()), c = t.getDate() === 1, p = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), h = !!(o && t.getMonth() === o.getMonth());
1872
1883
  return /* @__PURE__ */ i(
1873
1884
  wn,
1874
1885
  {
1875
- isSelected: c,
1886
+ isSelected: s,
1876
1887
  isStartDate: r,
1877
1888
  isEndDate: l,
1878
1889
  isSelectedMonth: h,
1879
1890
  isLastDay: p,
1880
- isFirstDay: s,
1891
+ isFirstDay: c,
1881
1892
  children: /* @__PURE__ */ i(
1882
1893
  Bn,
1883
1894
  {
1884
1895
  ...a,
1885
1896
  day: t,
1886
- selected: c || r || l,
1897
+ selected: s || r || l,
1887
1898
  isDateRangeLimit: r || l,
1888
1899
  "data-name": "pickers-day"
1889
1900
  }
@@ -1949,9 +1960,9 @@ function $o({
1949
1960
  endProps: a,
1950
1961
  "aria-label": r,
1951
1962
  "data-testid": l,
1952
- ...c
1963
+ ...s
1953
1964
  }) {
1954
- const s = F(), p = R(s), [h, d] = $(!1), [m, u] = $(!1), [f, M] = $(
1965
+ const c = F(), p = R(c), [h, d] = $(!1), [m, u] = $(!1), [f, M] = $(
1955
1966
  (o == null ? void 0 : o.value) || null
1956
1967
  ), [b, I] = $((a == null ? void 0 : a.value) || null), [k, D] = $(
1957
1968
  (a == null ? void 0 : a.value) ?? (o == null ? void 0 : o.value) ?? /* @__PURE__ */ new Date()
@@ -1984,7 +1995,7 @@ function $o({
1984
1995
  /* @__PURE__ */ i(
1985
1996
  at,
1986
1997
  {
1987
- ...c,
1998
+ ...s,
1988
1999
  ...o,
1989
2000
  value: (o == null ? void 0 : o.value) ?? f,
1990
2001
  maxDate: b ?? void 0,
@@ -2023,7 +2034,7 @@ function $o({
2023
2034
  /* @__PURE__ */ i(
2024
2035
  at,
2025
2036
  {
2026
- ...c,
2037
+ ...s,
2027
2038
  ...a,
2028
2039
  value: (a == null ? void 0 : a.value) ?? b,
2029
2040
  minDate: f ?? void 0,
@@ -2064,10 +2075,10 @@ function $o({
2064
2075
  ] });
2065
2076
  }
2066
2077
  const $t = (t, e, n, o) => {
2067
- const a = t == null ? void 0 : t.includes("hours"), r = t == null ? void 0 : t.includes("seconds"), l = t == null ? void 0 : t.includes("minutes"), c = (t == null ? void 0 : t.length) === 1 && t[0] === "hours";
2078
+ const a = t == null ? void 0 : t.includes("hours"), r = t == null ? void 0 : t.includes("seconds"), l = t == null ? void 0 : t.includes("minutes"), s = (t == null ? void 0 : t.length) === 1 && t[0] === "hours";
2068
2079
  if (o) return o;
2069
- const s = [];
2070
- return e && s.push("MM/dd/yyyy "), a && s.push(n ? "hh" : "HH"), c || s.push(":"), l && s.push("mm"), r && s.push(":ss"), n && s.push(" a"), s.join("");
2080
+ const c = [];
2081
+ return e && c.push("MM/dd/yyyy "), a && c.push(n ? "hh" : "HH"), s || c.push(":"), l && c.push("mm"), r && c.push(":ss"), n && c.push(" a"), c.join("");
2071
2082
  };
2072
2083
  function Ro({
2073
2084
  handleClear: t,
@@ -2077,8 +2088,8 @@ function Ro({
2077
2088
  labelHelpTooltip: a,
2078
2089
  type: r,
2079
2090
  helperText: l,
2080
- placeholder: c,
2081
- error: s,
2091
+ placeholder: s,
2092
+ error: c,
2082
2093
  showClock: p = !0,
2083
2094
  readOnly: h,
2084
2095
  slotProps: d,
@@ -2129,9 +2140,9 @@ function Ro({
2129
2140
  textField: {
2130
2141
  variant: e,
2131
2142
  helperText: l,
2132
- placeholder: c,
2143
+ placeholder: s,
2133
2144
  size: n,
2134
- error: s ?? void 0,
2145
+ error: c ?? void 0,
2135
2146
  // undefined is needed to allow the component to control the error state for the default validation
2136
2147
  inputProps: {
2137
2148
  "data-testid": "time-picker-input"
@@ -2181,8 +2192,8 @@ function Fo({
2181
2192
  labelHelpTooltip: a,
2182
2193
  type: r,
2183
2194
  helperText: l,
2184
- placeholder: c,
2185
- error: s,
2195
+ placeholder: s,
2196
+ error: c,
2186
2197
  showCalendar: p = !0,
2187
2198
  readOnly: h,
2188
2199
  slotProps: d,
@@ -2222,9 +2233,9 @@ function Fo({
2222
2233
  textField: {
2223
2234
  variant: e,
2224
2235
  helperText: l,
2225
- placeholder: c,
2236
+ placeholder: s,
2226
2237
  size: n,
2227
- error: s ?? void 0,
2238
+ error: c ?? void 0,
2228
2239
  // undefined is needed to allow the component to control the error state for the default validation
2229
2240
  inputProps: {
2230
2241
  "data-testid": "date-time-picker-input"
@@ -2433,8 +2444,8 @@ function Ln({
2433
2444
  fullScreen: a,
2434
2445
  height: r,
2435
2446
  width: l,
2436
- hasForm: c,
2437
- "aria-label": s,
2447
+ hasForm: s,
2448
+ "aria-label": c,
2438
2449
  "data-testid": p,
2439
2450
  ...h
2440
2451
  }, d) {
@@ -2445,8 +2456,8 @@ function Ln({
2445
2456
  fullScreen: a,
2446
2457
  height: r,
2447
2458
  width: l,
2448
- hasForm: c,
2449
- "aria-label": s,
2459
+ hasForm: s,
2460
+ "aria-label": c,
2450
2461
  "data-testid": p,
2451
2462
  "data-name": "dialog",
2452
2463
  ...h,
@@ -2463,11 +2474,11 @@ function Ln({
2463
2474
  fullScreen: a,
2464
2475
  height: r,
2465
2476
  width: l,
2466
- hasForm: c
2477
+ hasForm: s
2467
2478
  },
2468
2479
  fullScreen: a,
2469
2480
  role: "section",
2470
- "aria-label": s,
2481
+ "aria-label": c,
2471
2482
  "data-testid": p,
2472
2483
  "data-size": n,
2473
2484
  "data-width": l,
@@ -2508,12 +2519,12 @@ function Wo({
2508
2519
  onClose: a,
2509
2520
  secondaryActions: r,
2510
2521
  "aria-label": l,
2511
- closeIcon: c,
2512
- ...s
2522
+ closeIcon: s,
2523
+ ...c
2513
2524
  }) {
2514
2525
  const p = F(), h = R(p);
2515
2526
  return /* @__PURE__ */ y(V, { children: [
2516
- /* @__PURE__ */ y(Wn, { component: "div", "data-name": "dialog-header", ...s, children: [
2527
+ /* @__PURE__ */ y(Wn, { component: "div", "data-name": "dialog-header", ...c, children: [
2517
2528
  /* @__PURE__ */ y(En, { children: [
2518
2529
  /* @__PURE__ */ y(ut, { flex: 1, maxWidth: 0.8, children: [
2519
2530
  /* @__PURE__ */ i(
@@ -2536,7 +2547,7 @@ function Wo({
2536
2547
  {
2537
2548
  title: h.formatMessage({ id: "c4r.button.close" }),
2538
2549
  placement: "left",
2539
- children: /* @__PURE__ */ i(W, { onClick: a, children: c || /* @__PURE__ */ i(Hn, { "data-testid": "CloseIcon" }) })
2550
+ children: /* @__PURE__ */ i(W, { onClick: a, children: s || /* @__PURE__ */ i(Hn, { "data-testid": "CloseIcon" }) })
2540
2551
  }
2541
2552
  )
2542
2553
  ] })
@@ -2585,19 +2596,19 @@ function Gn({
2585
2596
  withBottomGutter: a = !0,
2586
2597
  onScroll: r,
2587
2598
  ...l
2588
- }, c) {
2589
- const s = N(), [p, h] = $(null);
2599
+ }, s) {
2600
+ const c = N(), [p, h] = $(null);
2590
2601
  Lt(
2591
- c,
2602
+ s,
2592
2603
  () => p,
2593
2604
  [p]
2594
2605
  );
2595
2606
  const d = nt(
2596
2607
  (u) => {
2597
- const f = Math.abs(u.scrollHeight - u.clientHeight - u.scrollTop) < 1, M = u.scrollTop === 0, b = `1px solid ${s.palette.divider}`;
2608
+ const f = Math.abs(u.scrollHeight - u.clientHeight - u.scrollTop) < 1, M = u.scrollTop === 0, b = `1px solid ${c.palette.divider}`;
2598
2609
  u.style.borderTop = M ? "none" : b, u.style.borderBottom = f && !n ? "none" : b;
2599
2610
  },
2600
- [s.palette.divider, n]
2611
+ [c.palette.divider, n]
2601
2612
  ), m = nt(
2602
2613
  (u) => {
2603
2614
  d(u.target), r == null || r(u);
@@ -2769,13 +2780,13 @@ function _o({
2769
2780
  opened: a,
2770
2781
  "data-testid": r,
2771
2782
  "aria-label": l,
2772
- ...c
2783
+ ...s
2773
2784
  }) {
2774
- const s = Y(null), p = N();
2785
+ const c = Y(null), p = N();
2775
2786
  return /* @__PURE__ */ i(
2776
2787
  zn,
2777
2788
  {
2778
- ref: s,
2789
+ ref: c,
2779
2790
  "data-testid": r,
2780
2791
  "aria-label": l,
2781
2792
  role: "presentation",
@@ -2787,13 +2798,13 @@ function _o({
2787
2798
  {
2788
2799
  direction: "up",
2789
2800
  in: a,
2790
- container: s.current,
2801
+ container: c.current,
2791
2802
  mountOnEnter: !0,
2792
2803
  unmountOnExit: !0,
2793
2804
  easing: p.transitions.easing.easeOut,
2794
2805
  timeout: 350,
2795
2806
  children: /* @__PURE__ */ i(Zn, { children: /* @__PURE__ */ y(Jn, { children: [
2796
- /* @__PURE__ */ i(Rt, { severity: o, ...c, children: t }),
2807
+ /* @__PURE__ */ i(Rt, { severity: o, ...s, children: t }),
2797
2808
  /* @__PURE__ */ i(Ft, { children: n })
2798
2809
  ] }) })
2799
2810
  }
@@ -2876,14 +2887,14 @@ function Po({
2876
2887
  ...n
2877
2888
  }) {
2878
2889
  return /* @__PURE__ */ i(Xn, { ...n, "data-name": "dialog-stepper", children: /* @__PURE__ */ i(v, { sx: { display: "flex" }, children: e.map((o, a) => {
2879
- const r = a + 1, l = r === t, c = r < t;
2890
+ const r = a + 1, l = r === t, s = r < t;
2880
2891
  return /* @__PURE__ */ y(
2881
2892
  Kn,
2882
2893
  {
2883
- "data-state": c ? "completed" : l ? "current" : "uncompleted",
2894
+ "data-state": s ? "completed" : l ? "current" : "uncompleted",
2884
2895
  children: [
2885
- /* @__PURE__ */ i(to, { completed: c, current: l, children: c ? /* @__PURE__ */ i(ge, { fontSize: "small", "aria-label": "Completed step" }) : r }),
2886
- /* @__PURE__ */ i(S, { variant: "caption", component: "div", color: c ? "success.main" : l ? "textPrimary" : "textSecondary", children: o })
2896
+ /* @__PURE__ */ i(to, { completed: s, current: l, children: s ? /* @__PURE__ */ i(ge, { fontSize: "small", "aria-label": "Completed step" }) : r }),
2897
+ /* @__PURE__ */ i(S, { variant: "caption", component: "div", color: s ? "success.main" : l ? "textPrimary" : "textSecondary", children: o })
2887
2898
  ]
2888
2899
  },
2889
2900
  a