@carto/meridian-ds 1.4.2-alpha-forwarding-props.1 → 1.4.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 (48) hide show
  1. package/CHANGELOG.md +0 -3
  2. package/dist/{Alert-BbMbtaix.cjs → Alert-B2JgFj6Y.cjs} +1 -1
  3. package/dist/{Alert-1b84B18a.js → Alert-Cn0nq6aq.js} +1 -1
  4. package/dist/MenuItem-CuEx97RN.cjs +1 -0
  5. package/dist/{MenuItem-Cd34y6F3.js → MenuItem-vbfSlKyV.js} +15 -41
  6. package/dist/TablePaginationActions-7wkkiCXh.cjs +9 -0
  7. package/dist/{TablePaginationActions-EDxBCxpG.js → TablePaginationActions-EC4ynZRa.js} +0 -1
  8. package/dist/components/index.cjs +1 -1
  9. package/dist/components/index.js +889 -963
  10. package/dist/theme/index.cjs +1 -1
  11. package/dist/theme/index.js +3 -3
  12. package/dist/types/components/atoms/Button.d.ts.map +1 -1
  13. package/dist/types/components/atoms/IconButton.d.ts.map +1 -1
  14. package/dist/types/components/atoms/Typography.d.ts.map +1 -1
  15. package/dist/types/components/molecules/Menu/Menu.d.ts +1 -2
  16. package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
  17. package/dist/types/components/molecules/Menu/MenuFilter.d.ts +8 -0
  18. package/dist/types/components/molecules/Menu/MenuFilter.d.ts.map +1 -0
  19. package/dist/types/components/molecules/Menu/MenuItem.d.ts +1 -2
  20. package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
  21. package/dist/types/components/molecules/Menu/MenuList.d.ts +1 -2
  22. package/dist/types/components/molecules/Menu/MenuList.d.ts.map +1 -1
  23. package/dist/types/components/molecules/Menu/index.d.ts +2 -2
  24. package/dist/types/components/molecules/Menu/index.d.ts.map +1 -1
  25. package/dist/types/components/organisms/DatePickers/DatePicker.d.ts +1 -1
  26. package/dist/types/components/organisms/DatePickers/DatePicker.d.ts.map +1 -1
  27. package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts +1 -1
  28. package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts.map +1 -1
  29. package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts +1 -1
  30. package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts.map +1 -1
  31. package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -1
  32. package/dist/types/components/organisms/DatePickers/TimePicker.d.ts +1 -1
  33. package/dist/types/components/organisms/DatePickers/TimePicker.d.ts.map +1 -1
  34. package/dist/types/components/organisms/DatePickers/types.d.ts +0 -2
  35. package/dist/types/components/organisms/DatePickers/types.d.ts.map +1 -1
  36. package/dist/types/components/organisms/Dialog/Dialog.d.ts +1 -1
  37. package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -1
  38. package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -1
  39. package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
  40. package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -1
  41. package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -1
  42. package/dist/widgets/index.cjs +1 -1
  43. package/dist/widgets/index.js +2 -2
  44. package/package.json +1 -1
  45. package/dist/MenuItem-Dbss-WG1.cjs +0 -1
  46. package/dist/TablePaginationActions-V8ultBUz.cjs +0 -9
  47. package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts +0 -9
  48. package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts.map +0 -1
@@ -1,20 +1,20 @@
1
- import { jsx as i, jsxs as y, Fragment as V } from "react/jsx-runtime";
2
- import { forwardRef as T, useState as $, useEffect as _, useMemo as pt, useRef as Y, Fragment as Ot, useImperativeHandle as Lt, useCallback as nt } from "react";
3
- import { styled as g, Box as v, Button as gt, CircularProgress as P, TextField as ft, InputAdornment as q, IconButton as W, Tooltip as H, Select as Wt, MenuItem as mt, FormControl as Et, InputLabel as Ht, FormHelperText as ht, ToggleButtonGroup as _t, Menu as Pt, MenuList as Gt, Link as jt, Checkbox as z, ListItemText as bt, Autocomplete as Z, Divider as j, ListItemIcon as Vt, createFilterOptions as Nt, Accordion as Ut, AccordionSummary as Yt, AccordionDetails as qt, Avatar as zt, Snackbar as Zt, Portal as Jt, Fade as Xt, Slide as xt, alpha as Kt, useTheme as N, Toolbar as Qt, AppBar as te, Paper as ee, Dialog as ne, DialogTitle as oe, Chip as ie, DialogContent as ae, DialogActions as re } from "@mui/material";
4
- import { T as S, c as G, u as R, N as ot, A as le } from "../TablePaginationActions-EDxBCxpG.js";
5
- import { a as Vo } from "../TablePaginationActions-EDxBCxpG.js";
6
- import { useIntl as F } from "react-intl";
7
- import { VisibilityOffOutlined as ce, VisibilityOutlined as se, Cancel as yt, AddCircleOutlineOutlined as de, CloseOutlined as Mt, MenuOutlined as ue, HelpOutline as J, TodayOutlined as pe, Check as ge } from "@mui/icons-material";
8
- import { A as Ct } from "../Alert-1b84B18a.js";
1
+ import { jsx as i, jsxs as x, Fragment as j } from "react/jsx-runtime";
2
+ import { forwardRef as L, useState as T, useEffect as H, useMemo as pt, useRef as U, Fragment as Ot, useImperativeHandle as Lt, useCallback as nt } from "react";
3
+ import { styled as p, Box as v, Button as gt, CircularProgress as _, TextField as ft, InputAdornment as Y, IconButton as O, Tooltip as W, Select as Wt, MenuItem as mt, FormControl as Et, InputLabel as Ht, FormHelperText as ht, ToggleButtonGroup as _t, Menu as Pt, MenuList as Gt, Checkbox as q, Link as jt, ListItemText as bt, Autocomplete as z, Divider as G, ListItemIcon as Vt, createFilterOptions as Nt, Accordion as Ut, AccordionSummary as Yt, AccordionDetails as qt, Avatar as zt, Snackbar as Zt, Portal as Jt, Fade as Xt, Slide as xt, alpha as Kt, useTheme as V, Toolbar as Qt, AppBar as te, Paper as ee, Dialog as ne, DialogTitle as oe, Chip as ie, DialogContent as re, DialogActions as ae } from "@mui/material";
4
+ import { T as B, c as P, u as $, N as ot, A as le } from "../TablePaginationActions-EC4ynZRa.js";
5
+ import { a as _o } from "../TablePaginationActions-EC4ynZRa.js";
6
+ import { useIntl as R } from "react-intl";
7
+ import { VisibilityOffOutlined as ce, VisibilityOutlined as se, Cancel as yt, AddCircleOutlineOutlined as de, CloseOutlined as Mt, MenuOutlined as ue, HelpOutline as Z, TodayOutlined as pe, Check as ge } from "@mui/icons-material";
8
+ import { A as Ct } from "../Alert-Cn0nq6aq.js";
9
9
  import "cartocolor";
10
- import { M as vt } from "../MenuItem-Cd34y6F3.js";
11
- import { A as X } from "../ArrowDown-B1AG0MlL.js";
10
+ import { M as vt } from "../MenuItem-vbfSlKyV.js";
11
+ import { A as J } from "../ArrowDown-B1AG0MlL.js";
12
12
  import { DatePicker as fe } from "@mui/x-date-pickers/DatePicker";
13
13
  import { PickersDay as me } from "@mui/x-date-pickers";
14
14
  import { TimePicker as he } from "@mui/x-date-pickers/TimePicker";
15
15
  import { DateTimePicker as be } from "@mui/x-date-pickers/DateTimePicker";
16
16
  import xe from "@mui/material/ClickAwayListener";
17
- const ye = g(v)({
17
+ const ye = p(v)({
18
18
  position: "absolute",
19
19
  top: 0,
20
20
  left: 0,
@@ -23,7 +23,7 @@ const ye = g(v)({
23
23
  display: "flex",
24
24
  alignItems: "center",
25
25
  justifyContent: "center"
26
- }), Me = g(v)({
26
+ }), Me = p(v)({
27
27
  visibility: "hidden",
28
28
  pointerEvents: "none"
29
29
  });
@@ -32,44 +32,43 @@ function Ce({
32
32
  loading: e,
33
33
  disabled: n,
34
34
  startIcon: o,
35
- endIcon: a,
36
- loadingPosition: r,
35
+ endIcon: r,
36
+ loadingPosition: a,
37
37
  ...l
38
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: [
39
+ const s = /* @__PURE__ */ i(_, { size: 18, color: "inherit" }), d = e && a === void 0, h = () => d ? /* @__PURE__ */ x(v, { sx: { position: "relative" }, children: [
40
40
  /* @__PURE__ */ i(ye, { children: s }),
41
41
  /* @__PURE__ */ i(Me, { children: t })
42
- ] }) : t, d = (m) => {
43
- if (!p)
44
- return e && r !== void 0 ? r === m ? s : void 0 : m === "start" ? o : a;
42
+ ] }) : t, u = (g) => {
43
+ if (!d)
44
+ return e && a !== void 0 ? a === g ? s : void 0 : g === "start" ? o : r;
45
45
  };
46
46
  return /* @__PURE__ */ i(
47
47
  gt,
48
48
  {
49
49
  disabled: e || n,
50
- startIcon: d("start"),
51
- endIcon: d("end"),
50
+ startIcon: u("start"),
51
+ endIcon: u("end"),
52
52
  ...l,
53
- role: "button",
54
53
  ref: c,
55
- children: /* @__PURE__ */ i(S, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: h() })
54
+ children: /* @__PURE__ */ i(B, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: h() })
56
55
  }
57
56
  );
58
57
  }
59
- const bo = T(Ce), ve = g(v)(({ theme: t }) => ({
58
+ const go = L(Ce), ve = p(v)(({ theme: t }) => ({
60
59
  display: "flex",
61
60
  alignItems: "center",
62
61
  gap: t.spacing(0.5)
63
- })), ke = g(S)(({ theme: t }) => ({
62
+ })), De = p(B)(({ theme: t }) => ({
64
63
  ".Mui-disabled &": {
65
64
  color: t.palette.text.disabled
66
65
  }
67
- })), De = g(v)(({ theme: t }) => ({
66
+ })), Ae = p(v)(({ theme: t }) => ({
68
67
  display: "flex",
69
68
  svg: {
70
- width: G,
71
- height: G,
72
- fontSize: G,
69
+ width: P,
70
+ height: P,
71
+ fontSize: P,
73
72
  path: {
74
73
  fill: t.palette.text.secondary,
75
74
  ".Mui-disabled &": {
@@ -78,16 +77,16 @@ const bo = T(Ce), ve = g(v)(({ theme: t }) => ({
78
77
  }
79
78
  }
80
79
  }));
81
- function K({
80
+ function X({
82
81
  label: t,
83
82
  type: e,
84
83
  icon: n,
85
84
  inheritSize: o
86
85
  }) {
87
- return /* @__PURE__ */ y(ve, { children: [
86
+ return /* @__PURE__ */ x(ve, { children: [
88
87
  t,
89
88
  e && /* @__PURE__ */ i(
90
- ke,
89
+ De,
91
90
  {
92
91
  component: "span",
93
92
  variant: o ? "inherit" : "caption",
@@ -96,11 +95,11 @@ function K({
96
95
  children: e === "required" ? "(required)" : "(optional)"
97
96
  }
98
97
  ),
99
- n && /* @__PURE__ */ i(De, { children: n })
98
+ n && /* @__PURE__ */ i(Ae, { children: n })
100
99
  ] });
101
100
  }
102
- function Ae({ InputProps: t, size: e = "small", ...n }, o) {
103
- const a = F(), r = R(a), [l, c] = $(!1);
101
+ function ke({ InputProps: t, size: e = "small", ...n }, o) {
102
+ const r = R(), a = $(r), [l, c] = T(!1);
104
103
  return /* @__PURE__ */ i(
105
104
  ft,
106
105
  {
@@ -110,10 +109,10 @@ function Ae({ InputProps: t, size: e = "small", ...n }, o) {
110
109
  size: e,
111
110
  InputProps: {
112
111
  ...t,
113
- endAdornment: /* @__PURE__ */ i(q, { position: "end", children: /* @__PURE__ */ i(W, { size: e, onClick: () => c(!l), children: /* @__PURE__ */ i(
114
- H,
112
+ endAdornment: /* @__PURE__ */ i(Y, { position: "end", children: /* @__PURE__ */ i(O, { size: e, onClick: () => c(!l), children: /* @__PURE__ */ i(
113
+ W,
115
114
  {
116
- title: r.formatMessage({
115
+ title: a.formatMessage({
117
116
  id: `c4r.form.${l ? "hidePassword" : "showPassword"}`
118
117
  }),
119
118
  children: l ? /* @__PURE__ */ i(ce, {}) : /* @__PURE__ */ i(se, {})
@@ -123,13 +122,13 @@ function Ae({ InputProps: t, size: e = "small", ...n }, o) {
123
122
  }
124
123
  );
125
124
  }
126
- const xo = T(Ae), U = {};
125
+ const fo = L(ke), N = {};
127
126
  function Ie(t = "$lodash$") {
128
- U[t] || (U[t] = 0);
129
- const e = ++U[t];
127
+ N[t] || (N[t] = 0);
128
+ const e = ++N[t];
130
129
  return t === "$lodash$" ? `${e}` : `${t}${e}`;
131
130
  }
132
- const we = g(Wt)(({ theme: t }) => ({
131
+ const we = p(Wt)(({ theme: t }) => ({
133
132
  "& .MuiInputAdornment-positionStart": {
134
133
  paddingLeft: t.spacing(2),
135
134
  "&.MuiInputAdornment-sizeSmall": {
@@ -145,7 +144,7 @@ const we = g(Wt)(({ theme: t }) => ({
145
144
  "&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
146
145
  paddingRight: t.spacing(7)
147
146
  }
148
- })), Be = g(mt)(() => ({
147
+ })), Be = p(mt)(() => ({
149
148
  display: "none"
150
149
  }));
151
150
  function Se({
@@ -153,54 +152,54 @@ function Se({
153
152
  placeholder: e,
154
153
  size: n = "small",
155
154
  displayEmpty: o,
156
- menuProps: a,
157
- inputProps: r,
155
+ menuProps: r,
156
+ inputProps: a,
158
157
  labelId: l,
159
158
  label: c,
160
159
  labelSecondary: s,
161
- helperText: p,
160
+ helperText: d,
162
161
  name: h,
163
- error: d,
164
- focused: m,
165
- disabled: u,
166
- fullWidth: f,
167
- required: M,
162
+ error: u,
163
+ focused: g,
164
+ disabled: f,
165
+ fullWidth: m,
166
+ required: y,
168
167
  "aria-label": b,
169
- ...I
170
- }, k) {
171
- const D = n === "small", [x] = $(() => Ie("select-label-")), C = c ? l ?? x : void 0;
172
- return /* @__PURE__ */ y(
168
+ ...D
169
+ }, w) {
170
+ const A = n === "small", [M] = T(() => Ie("select-label-")), k = c ? l ?? M : void 0;
171
+ return /* @__PURE__ */ x(
173
172
  Et,
174
173
  {
175
174
  size: n,
176
- error: d,
177
- focused: m,
178
- disabled: u,
179
- fullWidth: f,
180
- required: M,
175
+ error: u,
176
+ focused: g,
177
+ disabled: f,
178
+ fullWidth: m,
179
+ required: y,
181
180
  children: [
182
- /* @__PURE__ */ y(v, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
183
- c && /* @__PURE__ */ i(Ht, { shrink: !0, id: C, children: c }),
181
+ /* @__PURE__ */ x(v, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
182
+ c && /* @__PURE__ */ i(Ht, { shrink: !0, id: k, children: c }),
184
183
  s && /* @__PURE__ */ i(v, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: s })
185
184
  ] }),
186
- /* @__PURE__ */ y(
185
+ /* @__PURE__ */ x(
187
186
  we,
188
187
  {
189
- ...I,
190
- labelId: C,
188
+ ...D,
189
+ labelId: k,
191
190
  name: h,
192
- ref: k,
191
+ ref: w,
193
192
  size: n,
194
- fullWidth: f,
193
+ fullWidth: m,
195
194
  displayEmpty: o ?? !!e,
196
195
  inputProps: {
197
- ...r,
196
+ ...a,
198
197
  "aria-label": b
199
198
  },
200
199
  MenuProps: {
201
- ...a,
200
+ ...r,
202
201
  PopoverClasses: {
203
- paper: D ? "MuiMenu-paper-sizeSmall" : void 0
202
+ paper: A ? "MuiMenu-paper-sizeSmall" : void 0
204
203
  },
205
204
  anchorOrigin: {
206
205
  vertical: "bottom",
@@ -213,9 +212,9 @@ function Se({
213
212
  },
214
213
  children: [
215
214
  e && /* @__PURE__ */ i(Be, { disabled: !0, value: "", children: /* @__PURE__ */ i(
216
- S,
215
+ B,
217
216
  {
218
- variant: D ? "body2" : "body1",
217
+ variant: A ? "body2" : "body1",
219
218
  color: "text.hint",
220
219
  component: "span",
221
220
  children: e
@@ -225,12 +224,12 @@ function Se({
225
224
  ]
226
225
  }
227
226
  ),
228
- p && /* @__PURE__ */ i(ht, { "aria-label": `${h}-helper`, children: p })
227
+ d && /* @__PURE__ */ i(ht, { "aria-label": `${h}-helper`, children: d })
229
228
  ]
230
229
  }
231
230
  );
232
231
  }
233
- const Te = T(Se), $e = g(_t, {
232
+ const Te = L(Se), $e = p(_t, {
234
233
  shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
235
234
  })(({ variant: t, backgroundColor: e, theme: n }) => ({
236
235
  // Variants
@@ -302,7 +301,7 @@ const Te = T(Se), $e = g(_t, {
302
301
  backgroundColor: "transparent"
303
302
  }
304
303
  }));
305
- function yo({
304
+ function mo({
306
305
  children: t,
307
306
  variant: e = "floating",
308
307
  backgroundColor: n,
@@ -318,7 +317,7 @@ function yo({
318
317
  }
319
318
  );
320
319
  }
321
- const Re = g("div")(({ theme: t }) => ({
320
+ const Re = p("div")(({ theme: t }) => ({
322
321
  position: "relative",
323
322
  display: "inline-flex",
324
323
  // TODO: Remove this once we have a better way to handle the spacing between icon buttons:
@@ -326,7 +325,7 @@ const Re = g("div")(({ theme: t }) => ({
326
325
  "& + &, & + .optionIconButton": {
327
326
  marginLeft: t.spacing(0.5)
328
327
  }
329
- })), Fe = g(W, {
328
+ })), Fe = p(O, {
330
329
  shouldForwardProp: (t) => !["active"].includes(t)
331
330
  })(({ active: t, theme: e }) => ({
332
331
  ...t && {
@@ -342,16 +341,16 @@ function Oe({
342
341
  tooltipPlacement: e = "top",
343
342
  icon: n,
344
343
  size: o = "medium",
345
- variant: a = "icon",
346
- color: r = "default",
344
+ variant: r = "icon",
345
+ color: a = "default",
347
346
  sx: l,
348
347
  className: c,
349
348
  loading: s,
350
- disabled: p,
349
+ disabled: d,
351
350
  active: h,
352
- ...d
353
- }, m) {
354
- return /* @__PURE__ */ i(H, { placement: e, title: t ?? "", children: /* @__PURE__ */ i(
351
+ ...u
352
+ }, g) {
353
+ return /* @__PURE__ */ i(W, { placement: e, title: t ?? "", children: /* @__PURE__ */ i(
355
354
  Re,
356
355
  {
357
356
  className: `optionIconButton ${c ?? ""}`,
@@ -360,21 +359,20 @@ function Oe({
360
359
  children: /* @__PURE__ */ i(
361
360
  Fe,
362
361
  {
363
- ...d,
364
- ref: m,
362
+ ...u,
363
+ ref: g,
365
364
  size: o,
366
- variant: a,
367
- color: r,
365
+ variant: r,
366
+ color: a,
368
367
  active: h,
369
- disabled: p || s,
370
- role: "button",
371
- children: s ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : n
368
+ disabled: d || s,
369
+ children: s ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : n
372
370
  }
373
371
  )
374
372
  }
375
373
  ) });
376
374
  }
377
- const Le = T(Oe), We = g(Pt, {
375
+ const Le = L(Oe), We = p(Pt, {
378
376
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
379
377
  })(({ theme: t, extended: e, width: n, height: o }) => ({
380
378
  ...e && {
@@ -397,26 +395,10 @@ const Le = T(Oe), We = g(Pt, {
397
395
  }
398
396
  }
399
397
  }));
400
- function Ee({ extended: t, width: e, height: n, MenuListProps: o, ...a }, r) {
401
- return /* @__PURE__ */ i(
402
- We,
403
- {
404
- ...a,
405
- ref: r,
406
- "data-name": "menu",
407
- width: e,
408
- height: n,
409
- extended: t,
410
- MenuListProps: {
411
- ...o,
412
- "data-width": e,
413
- "data-height": n,
414
- "data-extended": t
415
- }
416
- }
417
- );
398
+ function ho(t) {
399
+ return /* @__PURE__ */ i(We, { ...t });
418
400
  }
419
- const Mo = T(Ee), He = g(Gt, {
401
+ const Ee = p(Gt, {
420
402
  shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
421
403
  })(({ theme: t, extended: e, width: n, height: o }) => ({
422
404
  ...e && {
@@ -434,25 +416,12 @@ const Mo = T(Ee), He = g(Gt, {
434
416
  }
435
417
  }
436
418
  }));
437
- function _e({ extended: t, width: e, height: n, ...o }, a) {
438
- return /* @__PURE__ */ i(
439
- He,
440
- {
441
- ...o,
442
- ref: a,
443
- width: e,
444
- height: n,
445
- extended: t,
446
- "data-name": "menu-list",
447
- "data-width": e,
448
- "data-height": n,
449
- "data-extended": t
450
- }
451
- );
419
+ function bo(t) {
420
+ return /* @__PURE__ */ i(Ee, { ...t });
452
421
  }
453
- const Co = T(_e), Pe = g(vt)(() => ({
422
+ const He = p(vt)(() => ({
454
423
  marginTop: "0 !important"
455
- })), Ge = g(jt)(
424
+ })), _e = p(jt)(
456
425
  ({ disabled: t, theme: e }) => ({
457
426
  display: "flex",
458
427
  alignItems: "center",
@@ -465,16 +434,15 @@ const Co = T(_e), Pe = g(vt)(() => ({
465
434
  }
466
435
  })
467
436
  );
468
- function je({
437
+ function Dt({
469
438
  areAllSelected: t,
470
439
  areAnySelected: e,
471
440
  selectAll: n,
472
- selectAllDisabled: o,
473
- ...a
474
- }, r) {
475
- const l = F(), c = R(l);
476
- return /* @__PURE__ */ i(Pe, { ...a, ref: r, fixed: !0, "data-name": "menu-filter", children: /* @__PURE__ */ y(
477
- Ge,
441
+ selectAllDisabled: o
442
+ }) {
443
+ const r = R(), a = $(r);
444
+ return /* @__PURE__ */ i(He, { fixed: !0, children: /* @__PURE__ */ x(
445
+ _e,
478
446
  {
479
447
  variant: "body2",
480
448
  color: "textPrimary",
@@ -485,56 +453,55 @@ function je({
485
453
  tabIndex: 0,
486
454
  children: [
487
455
  /* @__PURE__ */ i(
488
- z,
456
+ q,
489
457
  {
490
458
  checked: t,
491
459
  indeterminate: e && !t,
492
460
  disabled: o
493
461
  }
494
462
  ),
495
- c.formatMessage({ id: "c4r.form.selectAll" })
463
+ a.formatMessage({ id: "c4r.form.selectAll" })
496
464
  ]
497
465
  }
498
466
  ) });
499
467
  }
500
- const kt = T(je);
501
- function Ve({
468
+ function Pe({
502
469
  selectedOptions: t,
503
470
  options: e,
504
471
  onChange: n
505
472
  }) {
506
- const [o, a] = $(t ?? []), r = e.length === o.length, l = o.length > 0;
507
- return _(() => {
508
- o !== t && a(o);
473
+ const [o, r] = T(t ?? []), a = e.length === o.length, l = o.length > 0;
474
+ return H(() => {
475
+ o !== t && r(o);
509
476
  }, [t]), {
510
- areAllSelected: r,
477
+ areAllSelected: a,
511
478
  areAnySelected: l,
512
479
  currentOptions: o,
513
480
  handleChange: (h) => {
514
481
  const {
515
- target: { value: d }
516
- } = h, m = typeof d == "string" ? d.split(",") : d.filter((u) => u !== void 0);
517
- a(m), n(m);
482
+ target: { value: u }
483
+ } = h, g = typeof u == "string" ? u.split(",") : u.filter((f) => f !== void 0);
484
+ r(g), n(g);
518
485
  },
519
486
  selectAll: () => {
520
- const h = e == null ? void 0 : e.filter(({ disabled: d }) => !d).map(({ value: d }) => d);
487
+ const h = e == null ? void 0 : e.filter(({ disabled: u }) => !u).map(({ value: u }) => u);
521
488
  h && (h.every(
522
- (m) => o.includes(m)
523
- ) ? (a([]), n([])) : (a(h), n(h)));
489
+ (g) => o.includes(g)
490
+ ) ? (r([]), n([])) : (r(h), n(h)));
524
491
  },
525
492
  unselectAll: () => {
526
- a([]), n([]);
493
+ r([]), n([]);
527
494
  }
528
495
  };
529
496
  }
530
- const Ne = g(mt)(({ theme: t }) => ({
497
+ const Ge = p(mt)(({ theme: t }) => ({
531
498
  "&.Mui-disabled": {
532
499
  pointerEvents: "auto",
533
500
  "&:hover": {
534
501
  backgroundColor: `${t.palette.background.default} !important`
535
502
  }
536
503
  }
537
- })), Ue = g(q, {
504
+ })), je = p(Y, {
538
505
  shouldForwardProp: (t) => t !== "size"
539
506
  })(({ theme: t, size: e }) => ({
540
507
  display: "none",
@@ -551,86 +518,86 @@ const Ne = g(mt)(({ theme: t }) => ({
551
518
  top: t.spacing(3),
552
519
  right: t.spacing(5)
553
520
  }
554
- })), Ye = [], qe = () => {
521
+ })), Ve = [], Ne = () => {
555
522
  };
556
- function ze({
557
- options: t = Ye,
523
+ function Ue({
524
+ options: t = Ve,
558
525
  selectedOptions: e,
559
526
  size: n = "small",
560
527
  placeholder: o,
561
- showCounter: a,
562
- showFilters: r = !0,
563
- onChange: l = qe,
528
+ showCounter: r,
529
+ showFilters: a = !0,
530
+ onChange: l = Ne,
564
531
  selectAllDisabled: c,
565
532
  tooltipPlacement: s,
566
- variant: p,
533
+ variant: d,
567
534
  ...h
568
- }, d) {
535
+ }, u) {
569
536
  const {
570
- areAllSelected: m,
571
- areAnySelected: u,
572
- currentOptions: f,
573
- handleChange: M,
537
+ areAllSelected: g,
538
+ areAnySelected: f,
539
+ currentOptions: m,
540
+ handleChange: y,
574
541
  selectAll: b,
575
- unselectAll: I
576
- } = Ve({
542
+ unselectAll: D
543
+ } = Pe({
577
544
  options: t,
578
545
  selectedOptions: e,
579
546
  onChange: l
580
- }), k = n === "small", D = k || p === "standard" ? 0 : 2, x = F(), C = R(x), B = `${f.length} ${C.formatMessage({
547
+ }), w = n === "small", A = w || d === "standard" ? 0 : 2, M = R(), k = $(M), I = `${m.length} ${k.formatMessage({
581
548
  id: "c4r.form.selected"
582
- })}`, O = pt(() => m ? /* @__PURE__ */ i(
583
- S,
549
+ })}`, F = pt(() => g ? /* @__PURE__ */ i(
550
+ B,
584
551
  {
585
552
  component: "span",
586
- variant: k ? "body2" : "body1",
553
+ variant: w ? "body2" : "body1",
587
554
  color: "textPrimary",
588
- ml: D,
589
- children: C.formatMessage({ id: "c4r.form.allSelected" })
555
+ ml: A,
556
+ children: k.formatMessage({ id: "c4r.form.allSelected" })
590
557
  }
591
- ) : u ? /* @__PURE__ */ i(
592
- S,
558
+ ) : f ? /* @__PURE__ */ i(
559
+ B,
593
560
  {
594
561
  component: "span",
595
- variant: k ? "body2" : "body1",
562
+ variant: w ? "body2" : "body1",
596
563
  color: "textPrimary",
597
- ml: D,
598
- children: a && f.length > 1 ? B : f.join(", ")
564
+ ml: A,
565
+ children: r && m.length > 1 ? I : m.join(", ")
599
566
  }
600
567
  ) : /* @__PURE__ */ i(
601
- S,
568
+ B,
602
569
  {
603
570
  component: "span",
604
- variant: k ? "body2" : "body1",
571
+ variant: w ? "body2" : "body1",
605
572
  color: "text.hint",
606
- ml: D,
607
- children: o ?? C.formatMessage({ id: "c4r.form.noneSelected" })
573
+ ml: A,
574
+ children: o ?? k.formatMessage({ id: "c4r.form.noneSelected" })
608
575
  }
609
576
  ), [
610
- m,
611
- u,
612
- B,
577
+ g,
613
578
  f,
614
- C,
579
+ I,
580
+ m,
615
581
  k,
616
- D,
582
+ w,
583
+ A,
617
584
  o,
618
- a
585
+ r
619
586
  ]);
620
- return /* @__PURE__ */ y(
587
+ return /* @__PURE__ */ x(
621
588
  Te,
622
589
  {
623
590
  ...h,
624
- ref: d,
591
+ ref: u,
625
592
  multiple: !0,
626
593
  displayEmpty: !0,
627
594
  placeholder: o,
628
- value: f,
629
- renderValue: () => O,
630
- onChange: M,
595
+ value: m,
596
+ renderValue: () => F,
597
+ onChange: y,
631
598
  size: n,
632
- variant: p,
633
- endAdornment: r && u && /* @__PURE__ */ i(Ue, { position: "end", size: n, children: /* @__PURE__ */ i(W, { onClick: I, size: n, children: /* @__PURE__ */ i(yt, {}) }) }),
599
+ variant: d,
600
+ endAdornment: a && f && /* @__PURE__ */ i(je, { position: "end", size: n, children: /* @__PURE__ */ i(O, { onClick: D, size: n, children: /* @__PURE__ */ i(yt, {}) }) }),
634
601
  menuProps: {
635
602
  PaperProps: {
636
603
  sx: {
@@ -641,50 +608,50 @@ function ze({
641
608
  }
642
609
  },
643
610
  children: [
644
- r && /* @__PURE__ */ i(
645
- kt,
611
+ a && /* @__PURE__ */ i(
612
+ Dt,
646
613
  {
647
- areAllSelected: m,
648
- areAnySelected: u,
614
+ areAllSelected: g,
615
+ areAnySelected: f,
649
616
  selectAll: b,
650
617
  selectAllDisabled: c
651
618
  }
652
619
  ),
653
- t == null ? void 0 : t.map((w) => {
654
- const E = /* @__PURE__ */ y(
655
- Ne,
620
+ t == null ? void 0 : t.map((C) => {
621
+ const S = /* @__PURE__ */ x(
622
+ Ge,
656
623
  {
657
- value: w.value,
658
- disabled: w.disabled,
624
+ value: C.value,
625
+ disabled: C.disabled,
659
626
  tabIndex: 0,
660
627
  children: [
661
628
  /* @__PURE__ */ i(
662
- z,
629
+ q,
663
630
  {
664
- disabled: w.disabled,
665
- checked: f.includes(w.value)
631
+ disabled: C.disabled,
632
+ checked: m.includes(C.value)
666
633
  }
667
634
  ),
668
- /* @__PURE__ */ i(bt, { primary: w.label })
635
+ /* @__PURE__ */ i(bt, { primary: C.label })
669
636
  ]
670
637
  },
671
- w.value
638
+ C.value
672
639
  );
673
- return w.tooltip ? /* @__PURE__ */ i(
674
- H,
640
+ return C.tooltip ? /* @__PURE__ */ i(
641
+ W,
675
642
  {
676
- title: w.tooltip,
643
+ title: C.tooltip,
677
644
  placement: s,
678
- children: E
645
+ children: S
679
646
  },
680
- w.value
681
- ) : E;
647
+ C.value
648
+ ) : S;
682
649
  })
683
650
  ]
684
651
  }
685
652
  );
686
653
  }
687
- const vo = T(ze), Ze = g(ft, {
654
+ const xo = L(Ue), Ye = p(ft, {
688
655
  shouldForwardProp: (t) => t !== "cursor"
689
656
  })(
690
657
  ({ cursor: t, theme: e }) => ({
@@ -712,23 +679,23 @@ const vo = T(ze), Ze = g(ft, {
712
679
  }
713
680
  })
714
681
  );
715
- function Je({
682
+ function qe({
716
683
  buttonText: t,
717
684
  hasFiles: e,
718
685
  size: n,
719
686
  error: o,
720
- disabled: a,
721
- handleReset: r,
687
+ disabled: r,
688
+ handleReset: a,
722
689
  handleOpen: l,
723
690
  inProgress: c
724
691
  }) {
725
- 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(
726
- W,
692
+ return /* @__PURE__ */ i(Y, { position: "end", children: c ? /* @__PURE__ */ i(O, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ i(_, { size: 18 }) }) : e ? /* @__PURE__ */ i(
693
+ O,
727
694
  {
728
- onClick: r,
695
+ onClick: a,
729
696
  size: n,
730
697
  "aria-label": "delete",
731
- disabled: a,
698
+ disabled: r,
732
699
  children: /* @__PURE__ */ i(yt, {})
733
700
  }
734
701
  ) : /* @__PURE__ */ i(
@@ -738,39 +705,39 @@ function Je({
738
705
  size: n,
739
706
  variant: "text",
740
707
  color: o ? "default" : "primary",
741
- disabled: a,
708
+ disabled: r,
742
709
  children: t
743
710
  }
744
711
  ) });
745
712
  }
746
- function Xe({
713
+ function ze({
747
714
  name: t,
748
715
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
749
716
  multiple: e,
750
717
  // multiple prop defined here for compatibility with cloud-native but not used in the component
751
718
  handleReset: n,
752
719
  handleOpen: o,
753
- dragOver: a,
754
- error: r,
720
+ dragOver: r,
721
+ error: a,
755
722
  placeholder: l,
756
723
  focused: c,
757
724
  buttonText: s = "Browse",
758
- inProgress: p,
725
+ inProgress: d,
759
726
  InputProps: h,
760
- size: d = "small",
761
- hasFiles: m,
762
- cursor: u = "pointer",
763
- ...f
727
+ size: u = "small",
728
+ hasFiles: g,
729
+ cursor: f = "pointer",
730
+ ...m
764
731
  }) {
765
732
  return /* @__PURE__ */ i(
766
- Ze,
733
+ Ye,
767
734
  {
768
- ...f,
769
- size: d,
770
- error: r,
735
+ ...m,
736
+ size: u,
737
+ error: a,
771
738
  placeholder: l,
772
- focused: c ?? a,
773
- cursor: u,
739
+ focused: c ?? r,
740
+ cursor: f,
774
741
  InputProps: {
775
742
  ...h,
776
743
  name: t,
@@ -778,31 +745,31 @@ function Xe({
778
745
  // not used for any UI logic
779
746
  readOnly: !0,
780
747
  endAdornment: /* @__PURE__ */ i(
781
- Je,
748
+ qe,
782
749
  {
783
750
  buttonText: s,
784
- hasFiles: m,
785
- size: d,
786
- error: r,
787
- disabled: !!a,
751
+ hasFiles: g,
752
+ size: u,
753
+ error: a,
754
+ disabled: !!r,
788
755
  handleReset: n,
789
756
  handleOpen: o,
790
- inProgress: p
757
+ inProgress: d
791
758
  }
792
759
  )
793
760
  }
794
761
  }
795
762
  );
796
763
  }
797
- function Ke({
764
+ function Ze({
798
765
  onChange: t,
799
766
  files: e,
800
767
  multiple: n,
801
768
  placeholder: o,
802
- uploadInputRef: a
769
+ uploadInputRef: r
803
770
  }) {
804
- const r = F(), l = R(r), [c, s] = $(""), [p, h] = $(!1);
805
- _(() => {
771
+ const a = R(), l = $(a), [c, s] = T(""), [d, h] = T(!1);
772
+ H(() => {
806
773
  !e || e.length === 0 ? s("") : e.length === 1 ? s(e[0].name) : s(
807
774
  l.formatMessage(
808
775
  { id: "c4r.form.filesSelected" },
@@ -810,98 +777,98 @@ function Ke({
810
777
  )
811
778
  );
812
779
  }, [e, l]);
813
- const d = () => {
814
- var x;
815
- (x = a.current) == null || x.click();
816
- }, m = (x) => {
817
- x.preventDefault(), h(!0);
818
- }, u = (x) => {
819
- x.preventDefault(), h(!1);
820
- }, f = (x) => {
821
- x.preventDefault(), h(!1);
822
- const C = x.dataTransfer.items, B = M(C);
823
- t == null || t(B);
824
- }, M = (x) => {
825
- const C = [];
826
- for (const B of Array.from(x))
827
- if (B.kind === "file") {
828
- const O = B.getAsFile();
829
- C.push(O);
780
+ const u = () => {
781
+ var M;
782
+ (M = r.current) == null || M.click();
783
+ }, g = (M) => {
784
+ M.preventDefault(), h(!0);
785
+ }, f = (M) => {
786
+ M.preventDefault(), h(!1);
787
+ }, m = (M) => {
788
+ M.preventDefault(), h(!1);
789
+ const k = M.dataTransfer.items, I = y(k);
790
+ t == null || t(I);
791
+ }, y = (M) => {
792
+ const k = [];
793
+ for (const I of Array.from(M))
794
+ if (I.kind === "file") {
795
+ const F = I.getAsFile();
796
+ k.push(F);
830
797
  }
831
- return C;
832
- }, b = (x) => {
833
- const C = Array.from(x.target.files);
834
- t == null || t(C);
835
- }, I = (x) => {
836
- x.stopPropagation(), s("");
837
- }, k = pt(() => {
838
- const x = l.formatMessage(
798
+ return k;
799
+ }, b = (M) => {
800
+ const k = Array.from(M.target.files);
801
+ t == null || t(k);
802
+ }, D = (M) => {
803
+ M.stopPropagation(), s("");
804
+ }, w = pt(() => {
805
+ const M = l.formatMessage(
839
806
  { id: "c4r.form.dragPlaceholder" },
840
807
  { count: n ? 0 : 1 }
841
- ), C = l.formatMessage(
808
+ ), k = l.formatMessage(
842
809
  { id: "c4r.form.dragActivePlaceholder" },
843
810
  { count: n ? 0 : 1 }
844
811
  );
845
- let B = "";
846
- return p ? B = C : B = o ?? x, B;
847
- }, [p, n, o, l]);
812
+ let I = "";
813
+ return d ? I = k : I = o ?? M, I;
814
+ }, [d, n, o, l]);
848
815
  return {
849
816
  filesText: c,
850
- getPlaceholder: k,
851
- dragOver: p,
817
+ getPlaceholder: w,
818
+ dragOver: d,
852
819
  inputEvents: {
853
- onDragOver: m,
854
- onDragLeave: u,
855
- onDrop: f,
856
- onClick: d
820
+ onDragOver: g,
821
+ onDragLeave: f,
822
+ onDrop: m,
823
+ onClick: u
857
824
  },
858
825
  handleFiles: b,
859
- handleReset: I
826
+ handleReset: D
860
827
  };
861
828
  }
862
- const Qe = ["application/JSON"];
863
- function ko({
829
+ const Je = ["application/JSON"];
830
+ function yo({
864
831
  name: t,
865
832
  buttonText: e,
866
833
  accept: n,
867
834
  files: o,
868
- inProgress: a,
869
- onChange: r,
835
+ inProgress: r,
836
+ onChange: a,
870
837
  multiple: l,
871
838
  placeholder: c,
872
839
  error: s,
873
- focused: p,
840
+ focused: d,
874
841
  nativeInputProps: h,
875
- ...d
842
+ ...u
876
843
  }) {
877
- const m = n ?? Qe, u = Y(null), {
878
- filesText: f,
879
- getPlaceholder: M,
844
+ const g = n ?? Je, f = U(null), {
845
+ filesText: m,
846
+ getPlaceholder: y,
880
847
  dragOver: b,
881
- inputEvents: I,
882
- handleFiles: k,
883
- handleReset: D
884
- } = Ke({
885
- uploadInputRef: u,
848
+ inputEvents: D,
849
+ handleFiles: w,
850
+ handleReset: A
851
+ } = Ze({
852
+ uploadInputRef: f,
886
853
  files: o,
887
- onChange: r,
854
+ onChange: a,
888
855
  multiple: l,
889
856
  placeholder: c
890
857
  });
891
- return /* @__PURE__ */ y(V, { children: [
858
+ return /* @__PURE__ */ x(j, { children: [
892
859
  /* @__PURE__ */ i(
893
- Xe,
860
+ ze,
894
861
  {
895
- ...d,
896
- placeholder: M,
897
- value: f,
862
+ ...u,
863
+ placeholder: y,
864
+ value: m,
898
865
  error: s,
899
- focused: p ?? b,
900
- handleReset: D,
866
+ focused: d ?? b,
867
+ handleReset: A,
901
868
  dragOver: b,
902
- inProgress: a,
903
- hasFiles: !!f,
904
- InputProps: I,
869
+ inProgress: r,
870
+ hasFiles: !!m,
871
+ InputProps: D,
905
872
  buttonText: e
906
873
  }
907
874
  ),
@@ -909,30 +876,30 @@ function ko({
909
876
  "input",
910
877
  {
911
878
  ...h,
912
- ref: u,
879
+ ref: f,
913
880
  style: { display: "none" },
914
881
  type: "file",
915
882
  "aria-label": t,
916
883
  name: t,
917
- accept: String(m),
884
+ accept: String(g),
918
885
  multiple: l,
919
- onChange: k
886
+ onChange: w
920
887
  }
921
888
  )
922
889
  ] });
923
890
  }
924
- function tn({
891
+ function Xe({
925
892
  disabled: t,
926
893
  loading: e,
927
894
  ...n
928
895
  }, o) {
929
896
  return /* @__PURE__ */ i(
930
- Z,
897
+ z,
931
898
  {
932
899
  ...n,
933
900
  ref: o,
934
901
  disabled: t || e,
935
- popupIcon: e ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(X, {}),
902
+ popupIcon: e ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(J, {}),
936
903
  "data-name": "autocomplete",
937
904
  ListboxProps: {
938
905
  "aria-multiselectable": !1,
@@ -941,105 +908,105 @@ function tn({
941
908
  }
942
909
  );
943
910
  }
944
- const Do = T(tn), Dt = (t) => t && typeof t == "object" ? t.title ?? String(t) : String(t), At = (t, e) => typeof t != "object" || t === null ? { value: t, multiple: e } : { ...t, multiple: e }, It = (t) => /* @__PURE__ */ i("span", { "data-testid": "more-options-tag", children: `+${t}` });
911
+ const Mo = L(Xe), At = (t) => t && typeof t == "object" ? t.title ?? String(t) : String(t), kt = (t, e) => typeof t != "object" || t === null ? { value: t, multiple: e } : { ...t, multiple: e }, It = (t) => /* @__PURE__ */ i("span", { "data-testid": "more-options-tag", children: `+${t}` });
945
912
  function wt() {
946
- return { renderOption: (e, n, o, a, r) => {
913
+ return { renderOption: (e, n, o, r, a) => {
947
914
  const {
948
915
  title: l,
949
916
  inputValue: c,
950
917
  divider: s,
951
- fixed: p,
918
+ fixed: d,
952
919
  extended: h,
953
- dense: d,
954
- destructive: m,
955
- disabled: u,
956
- subtitle: f,
957
- iconColor: M,
920
+ dense: u,
921
+ destructive: g,
922
+ disabled: f,
923
+ subtitle: m,
924
+ iconColor: y,
958
925
  startAdornment: b,
959
- endAdornment: I,
960
- alternativeTitle: k,
961
- secondaryText: D,
962
- multiple: x
963
- } = 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));
964
- return /* @__PURE__ */ i(Ot, { children: s ? /* @__PURE__ */ i(j, {}) : /* @__PURE__ */ y(V, { children: [
965
- c && /* @__PURE__ */ i(j, {}),
966
- /* @__PURE__ */ y(
926
+ endAdornment: D,
927
+ alternativeTitle: w,
928
+ secondaryText: A,
929
+ multiple: M
930
+ } = n, { key: k, ...I } = e, F = typeof n == "string" || typeof n == "number", C = (S, E, tt, et) => tt || et || (E && typeof E == "object" && "value" in E ? String(E.value) : S(E));
931
+ return /* @__PURE__ */ i(Ot, { children: s ? /* @__PURE__ */ i(G, {}) : /* @__PURE__ */ x(j, { children: [
932
+ c && /* @__PURE__ */ i(G, {}),
933
+ /* @__PURE__ */ x(
967
934
  vt,
968
935
  {
969
- ...B,
970
- ...!O && {
971
- fixed: p,
936
+ ...I,
937
+ ...!F && {
938
+ fixed: d,
972
939
  extended: h,
973
- dense: d,
974
- destructive: m,
975
- disabled: u,
976
- subtitle: f,
977
- iconColor: M
940
+ dense: u,
941
+ destructive: g,
942
+ disabled: f,
943
+ subtitle: m,
944
+ iconColor: y
978
945
  },
979
- "aria-disabled": f || u,
946
+ "aria-disabled": m || f,
980
947
  "aria-selected": o.selected,
981
948
  children: [
982
- !f && (b || x || r) && /* @__PURE__ */ y(Vt, { children: [
983
- r || x && /* @__PURE__ */ i(z, { checked: o.selected }),
949
+ !m && (b || M || a) && /* @__PURE__ */ x(Vt, { children: [
950
+ a || M && /* @__PURE__ */ i(q, { checked: o.selected }),
984
951
  b
985
952
  ] }),
986
- /* @__PURE__ */ y(bt, { children: [
987
- w(
988
- a ?? Dt,
953
+ /* @__PURE__ */ x(bt, { children: [
954
+ C(
955
+ r ?? At,
989
956
  n,
990
- k,
957
+ w,
991
958
  l
992
959
  ),
993
- D && /* @__PURE__ */ i(
994
- S,
960
+ A && /* @__PURE__ */ i(
961
+ B,
995
962
  {
996
963
  component: "p",
997
964
  variant: "caption",
998
965
  color: "text.secondary",
999
- children: D
966
+ children: A
1000
967
  }
1001
968
  )
1002
969
  ] }),
1003
- !f && I
970
+ !m && D
1004
971
  ]
1005
972
  }
1006
973
  )
1007
- ] }) }, C);
974
+ ] }) }, k);
1008
975
  } };
1009
976
  }
1010
- function en({
977
+ function Ke({
1011
978
  getOptionLabel: t,
1012
979
  newItemLabel: e,
1013
980
  newItemIcon: n,
1014
981
  multiple: o
1015
982
  }) {
1016
- const a = F(), r = R(a), l = Nt(), { renderOption: c } = wt();
983
+ const r = R(), a = $(r), l = Nt(), { renderOption: c } = wt();
1017
984
  return {
1018
- creatableFilterOptions: (d, m) => {
1019
- const u = l(
1020
- d,
1021
- m
1022
- ), { inputValue: f } = m, M = d.some(
1023
- (b) => f === t(b)
985
+ creatableFilterOptions: (u, g) => {
986
+ const f = l(
987
+ u,
988
+ g
989
+ ), { inputValue: m } = g, y = u.some(
990
+ (b) => m === t(b)
1024
991
  );
1025
- if (f.length > 1 && f !== "" && !M) {
992
+ if (m.length > 1 && m !== "" && !y) {
1026
993
  let b;
1027
- typeof e == "function" ? b = e(f) : e ? b = `${e} "${f}"` : b = `${r.formatMessage({ id: "c4r.form.add" })} "${f}"`, u.push({
1028
- inputValue: f,
994
+ typeof e == "function" ? b = e(m) : e ? b = `${e} "${m}"` : b = `${a.formatMessage({ id: "c4r.form.add" })} "${m}"`, f.push({
995
+ inputValue: m,
1029
996
  title: b
1030
997
  });
1031
998
  }
1032
- return u;
999
+ return f;
1033
1000
  },
1034
- creatableOptionLabel: (d) => typeof d == "string" ? d : d.inputValue ? d.inputValue : t(d),
1035
- creatableRenderOption: (d, m, u) => {
1036
- const f = m.inputValue ? n ?? /* @__PURE__ */ i(de, {}) : void 0, M = At(m, !!o);
1001
+ creatableOptionLabel: (u) => typeof u == "string" ? u : u.inputValue ? u.inputValue : t(u),
1002
+ creatableRenderOption: (u, g, f) => {
1003
+ const m = g.inputValue ? n ?? /* @__PURE__ */ i(de, {}) : void 0, y = kt(g, !!o);
1037
1004
  return c(
1038
- d,
1039
- M,
1040
1005
  u,
1006
+ y,
1007
+ f,
1041
1008
  t,
1042
- f
1009
+ m
1043
1010
  );
1044
1011
  }
1045
1012
  };
@@ -1050,64 +1017,64 @@ function Bt({
1050
1017
  onChange: n,
1051
1018
  getOptionLabel: o
1052
1019
  }) {
1053
- const [a, r] = $(
1020
+ const [r, a] = T(
1054
1021
  Array.isArray(e) ? e : e ? [e] : []
1055
1022
  ), { renderOption: l } = wt();
1056
- _(() => {
1057
- const m = Array.isArray(e) ? e : e ? [e] : [];
1058
- r(m);
1023
+ H(() => {
1024
+ const g = Array.isArray(e) ? e : e ? [e] : [];
1025
+ a(g);
1059
1026
  }, [e]);
1060
- const c = a.length === t.length, s = a.length > 0 && a.length < t.length;
1027
+ const c = r.length === t.length, s = r.length > 0 && r.length < t.length;
1061
1028
  return {
1062
- multipleValue: a,
1029
+ multipleValue: r,
1063
1030
  allSelected: c,
1064
1031
  someSelected: s,
1065
- handleSelectAll: (m) => {
1066
- const u = c ? [] : [...t];
1067
- r(u), n == null || n(
1068
- m,
1069
- u,
1032
+ handleSelectAll: (g) => {
1033
+ const f = c ? [] : [...t];
1034
+ a(f), n == null || n(
1035
+ g,
1036
+ f,
1070
1037
  "selectOption"
1071
1038
  );
1072
1039
  },
1073
- handleChange: (m, u, f) => {
1074
- r(u === null ? [] : u), n == null || n(m, u, f);
1040
+ handleChange: (g, f, m) => {
1041
+ a(f === null ? [] : f), n == null || n(g, f, m);
1075
1042
  },
1076
- multipleRenderOption: (m, u, f) => {
1077
- const M = At(u, !0);
1043
+ multipleRenderOption: (g, f, m) => {
1044
+ const y = kt(f, !0);
1078
1045
  return l(
1046
+ g,
1047
+ y,
1079
1048
  m,
1080
- M,
1081
- f,
1082
1049
  o
1083
1050
  );
1084
1051
  }
1085
1052
  };
1086
1053
  }
1087
- function nn({
1054
+ function Qe({
1088
1055
  children: t,
1089
1056
  showFilters: e,
1090
1057
  allSelected: n,
1091
1058
  someSelected: o,
1092
- handleSelectAll: a = () => {
1059
+ handleSelectAll: r = () => {
1093
1060
  },
1094
- multiple: r,
1061
+ multiple: a,
1095
1062
  ...l
1096
1063
  }, c) {
1097
- return /* @__PURE__ */ y(
1064
+ return /* @__PURE__ */ x(
1098
1065
  "ul",
1099
1066
  {
1100
1067
  ref: c,
1101
1068
  ...l,
1102
1069
  role: "listbox",
1103
- "aria-multiselectable": r,
1070
+ "aria-multiselectable": a,
1104
1071
  children: [
1105
- e && r && /* @__PURE__ */ i(
1106
- kt,
1072
+ e && a && /* @__PURE__ */ i(
1073
+ Dt,
1107
1074
  {
1108
1075
  areAllSelected: !!n,
1109
1076
  areAnySelected: !!o,
1110
- selectAll: a
1077
+ selectAll: r
1111
1078
  }
1112
1079
  ),
1113
1080
  t
@@ -1115,127 +1082,127 @@ function nn({
1115
1082
  }
1116
1083
  );
1117
1084
  }
1118
- const St = T(nn);
1119
- function on({
1085
+ const St = L(Qe);
1086
+ function tn({
1120
1087
  newItemLabel: t,
1121
1088
  newItemIcon: e,
1122
- getOptionLabel: n = Dt,
1089
+ getOptionLabel: n = At,
1123
1090
  multiple: o,
1124
- disableCloseOnSelect: a,
1125
- disabled: r,
1091
+ disableCloseOnSelect: r,
1092
+ disabled: a,
1126
1093
  loading: l,
1127
1094
  showFilters: c,
1128
1095
  options: s = [],
1129
- value: p,
1096
+ value: d,
1130
1097
  onChange: h,
1131
- getLimitTagsText: d,
1132
- ...m
1133
- }, u) {
1134
- const { freeSolo: f = !0, ...M } = m, {
1098
+ getLimitTagsText: u,
1099
+ ...g
1100
+ }, f) {
1101
+ const { freeSolo: m = !0, ...y } = g, {
1135
1102
  multipleValue: b,
1136
- allSelected: I,
1137
- someSelected: k,
1138
- handleSelectAll: D,
1139
- handleChange: x
1103
+ allSelected: D,
1104
+ someSelected: w,
1105
+ handleSelectAll: A,
1106
+ handleChange: M
1140
1107
  } = Bt({
1141
1108
  options: s,
1142
- value: p,
1109
+ value: d,
1143
1110
  onChange: h
1144
1111
  }), {
1145
- creatableFilterOptions: C,
1146
- creatableOptionLabel: B,
1147
- creatableRenderOption: O
1148
- } = en({
1112
+ creatableFilterOptions: k,
1113
+ creatableOptionLabel: I,
1114
+ creatableRenderOption: F
1115
+ } = Ke({
1149
1116
  getOptionLabel: n,
1150
1117
  newItemLabel: t,
1151
1118
  newItemIcon: e,
1152
1119
  multiple: o
1153
1120
  });
1154
1121
  return /* @__PURE__ */ i(
1155
- Z,
1122
+ z,
1156
1123
  {
1157
- ...M,
1158
- ref: u,
1124
+ ...y,
1125
+ ref: f,
1159
1126
  options: s,
1160
- value: o ? b : p,
1161
- onChange: x,
1162
- filterOptions: C,
1163
- getOptionLabel: B,
1164
- renderOption: O,
1165
- freeSolo: f,
1127
+ value: o ? b : d,
1128
+ onChange: M,
1129
+ filterOptions: k,
1130
+ getOptionLabel: I,
1131
+ renderOption: F,
1132
+ freeSolo: m,
1166
1133
  forcePopupIcon: !0,
1167
1134
  multiple: o,
1168
- disableCloseOnSelect: a ?? o,
1135
+ disableCloseOnSelect: r ?? o,
1169
1136
  ListboxComponent: St,
1170
1137
  ListboxProps: {
1171
1138
  showFilters: c,
1172
- allSelected: I,
1173
- someSelected: k,
1174
- handleSelectAll: D,
1139
+ allSelected: D,
1140
+ someSelected: w,
1141
+ handleSelectAll: A,
1175
1142
  multiple: o
1176
1143
  },
1177
- getLimitTagsText: d ?? It,
1178
- disabled: r || l,
1179
- popupIcon: l ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(X, {}),
1144
+ getLimitTagsText: u ?? It,
1145
+ disabled: a || l,
1146
+ popupIcon: l ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(J, {}),
1180
1147
  "data-name": "creatable-autocomplete"
1181
1148
  }
1182
1149
  );
1183
1150
  }
1184
- const Ao = T(on);
1185
- function an({
1151
+ const Co = L(tn);
1152
+ function en({
1186
1153
  renderOption: t,
1187
1154
  disableCloseOnSelect: e = !0,
1188
1155
  disabled: n,
1189
1156
  loading: o,
1190
- showFilters: a,
1191
- options: r,
1157
+ showFilters: r,
1158
+ options: a,
1192
1159
  value: l,
1193
1160
  onChange: c,
1194
1161
  getOptionLabel: s,
1195
- getLimitTagsText: p,
1162
+ getLimitTagsText: d,
1196
1163
  ...h
1197
- }, d) {
1164
+ }, u) {
1198
1165
  const {
1199
- multipleValue: m,
1200
- allSelected: u,
1201
- someSelected: f,
1202
- handleSelectAll: M,
1166
+ multipleValue: g,
1167
+ allSelected: f,
1168
+ someSelected: m,
1169
+ handleSelectAll: y,
1203
1170
  handleChange: b,
1204
- multipleRenderOption: I
1171
+ multipleRenderOption: D
1205
1172
  } = Bt({
1206
- options: r,
1173
+ options: a,
1207
1174
  value: l,
1208
1175
  onChange: c,
1209
1176
  getOptionLabel: s
1210
1177
  });
1211
1178
  return /* @__PURE__ */ i(
1212
- Z,
1179
+ z,
1213
1180
  {
1214
1181
  ...h,
1215
- ref: d,
1216
- options: r,
1217
- value: m,
1182
+ ref: u,
1183
+ options: a,
1184
+ value: g,
1218
1185
  onChange: b,
1219
1186
  getOptionLabel: s,
1220
- renderOption: t ?? I,
1187
+ renderOption: t ?? D,
1221
1188
  ListboxComponent: St,
1222
1189
  ListboxProps: {
1223
- showFilters: a,
1224
- allSelected: u,
1225
- someSelected: f,
1226
- handleSelectAll: M,
1190
+ showFilters: r,
1191
+ allSelected: f,
1192
+ someSelected: m,
1193
+ handleSelectAll: y,
1227
1194
  multiple: !0
1228
1195
  },
1229
1196
  multiple: !0,
1230
- getLimitTagsText: p ?? It,
1197
+ getLimitTagsText: d ?? It,
1231
1198
  disableCloseOnSelect: e,
1232
1199
  disabled: n || o,
1233
- popupIcon: o ? /* @__PURE__ */ i(P, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(X, {}),
1200
+ popupIcon: o ? /* @__PURE__ */ i(_, { size: 18, color: "inherit" }) : /* @__PURE__ */ i(J, {}),
1234
1201
  "data-name": "multiple-autocomplete"
1235
1202
  }
1236
1203
  );
1237
1204
  }
1238
- const Io = T(an), rn = g("div", {
1205
+ const vo = L(en), nn = p("div", {
1239
1206
  shouldForwardProp: (t) => t !== "variant"
1240
1207
  })(({ variant: t, theme: e }) => ({
1241
1208
  width: "100%",
@@ -1245,12 +1212,12 @@ const Io = T(an), rn = g("div", {
1245
1212
  boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
1246
1213
  }
1247
1214
  }));
1248
- function wo({
1215
+ function Do({
1249
1216
  variant: t = "standard",
1250
1217
  items: e,
1251
1218
  ...n
1252
1219
  }) {
1253
- return /* @__PURE__ */ i(rn, { ...n, variant: t, children: e.map((o, a) => /* @__PURE__ */ y(
1220
+ return /* @__PURE__ */ i(nn, { ...n, variant: t, children: e.map((o, r) => /* @__PURE__ */ x(
1254
1221
  Ut,
1255
1222
  {
1256
1223
  disabled: o.disabled,
@@ -1260,15 +1227,15 @@ function wo({
1260
1227
  /* @__PURE__ */ i(
1261
1228
  Yt,
1262
1229
  {
1263
- "aria-controls": `${a}-content`,
1264
- id: `${a}-header`,
1230
+ "aria-controls": `${r}-content`,
1231
+ id: `${r}-header`,
1265
1232
  children: o.summary
1266
1233
  }
1267
1234
  ),
1268
1235
  /* @__PURE__ */ i(qt, { children: o.content })
1269
1236
  ]
1270
1237
  },
1271
- a
1238
+ r
1272
1239
  )) });
1273
1240
  }
1274
1241
  const it = {
@@ -1276,7 +1243,7 @@ const it = {
1276
1243
  medium: 4,
1277
1244
  small: 3,
1278
1245
  xsmall: 2.25
1279
- }, ln = g(zt, {
1246
+ }, on = p(zt, {
1280
1247
  shouldForwardProp: (t) => t !== "size" && t !== "disabled"
1281
1248
  })(({ theme: t, size: e = "medium", disabled: n = !1 }) => ({
1282
1249
  width: t.spacing(it[e]),
@@ -1293,18 +1260,18 @@ const it = {
1293
1260
  ...t.typography.caption,
1294
1261
  fontWeight: 500,
1295
1262
  svg: {
1296
- width: G,
1297
- height: G
1263
+ width: P,
1264
+ height: P
1298
1265
  }
1299
1266
  },
1300
1267
  ...n && {
1301
1268
  opacity: 0.6
1302
1269
  }
1303
1270
  }));
1304
- function Bo(t) {
1305
- return /* @__PURE__ */ i(ln, { ...t });
1271
+ function Ao(t) {
1272
+ return /* @__PURE__ */ i(on, { ...t });
1306
1273
  }
1307
- const Tt = 480, cn = g(Zt)(({ theme: t }) => ({
1274
+ const Tt = 480, rn = p(Zt)(({ theme: t }) => ({
1308
1275
  bottom: t.spacing(2),
1309
1276
  right: t.spacing(2),
1310
1277
  left: t.spacing(2),
@@ -1315,7 +1282,7 @@ const Tt = 480, cn = g(Zt)(({ theme: t }) => ({
1315
1282
  width: "100%",
1316
1283
  maxWidth: `${Tt}px`
1317
1284
  }
1318
- })), sn = g(v, {
1285
+ })), an = p(v, {
1319
1286
  shouldForwardProp: (t) => t !== "autoWidth"
1320
1287
  })(({ autoWidth: t, theme: e }) => ({
1321
1288
  minWidth: "100%",
@@ -1330,7 +1297,7 @@ const Tt = 480, cn = g(Zt)(({ theme: t }) => ({
1330
1297
  minWidth: "auto"
1331
1298
  }
1332
1299
  }
1333
- })), dn = g(Ct, {
1300
+ })), ln = p(Ct, {
1334
1301
  shouldForwardProp: (t) => !["hasActions", "closeable"].includes(t)
1335
1302
  })(({ hasActions: t, closeable: e, icon: n, theme: o }) => ({
1336
1303
  position: "relative",
@@ -1382,7 +1349,7 @@ const Tt = 480, cn = g(Zt)(({ theme: t }) => ({
1382
1349
  padding: o.spacing(0.75, 0)
1383
1350
  }
1384
1351
  }
1385
- })), un = g(v)(({ theme: t }) => ({
1352
+ })), cn = p(v)(({ theme: t }) => ({
1386
1353
  position: "absolute",
1387
1354
  top: t.spacing(1),
1388
1355
  right: t.spacing(1),
@@ -1393,23 +1360,23 @@ const Tt = 480, cn = g(Zt)(({ theme: t }) => ({
1393
1360
  color: t.palette.white[60]
1394
1361
  }
1395
1362
  }));
1396
- function So({
1363
+ function ko({
1397
1364
  severity: t = "neutral",
1398
1365
  autoHideDuration: e = ot,
1399
1366
  closeable: n = !0,
1400
1367
  children: o,
1401
- title: a,
1402
- action: r,
1368
+ title: r,
1369
+ action: a,
1403
1370
  open: l,
1404
1371
  onClose: c = () => {
1405
1372
  },
1406
1373
  autoWidth: s,
1407
- icon: p,
1374
+ icon: d,
1408
1375
  ...h
1409
1376
  }) {
1410
- const d = F(), m = R(d);
1377
+ const u = R(), g = $(u);
1411
1378
  return /* @__PURE__ */ i(Jt, { children: /* @__PURE__ */ i(
1412
- cn,
1379
+ rn,
1413
1380
  {
1414
1381
  ...h,
1415
1382
  open: l,
@@ -1417,8 +1384,8 @@ function So({
1417
1384
  onClose: c,
1418
1385
  TransitionComponent: s ? Xt : xt,
1419
1386
  "data-auto-width": s,
1420
- children: /* @__PURE__ */ y(
1421
- sn,
1387
+ children: /* @__PURE__ */ x(
1388
+ an,
1422
1389
  {
1423
1390
  sx: {
1424
1391
  position: "relative"
@@ -1426,25 +1393,25 @@ function So({
1426
1393
  autoWidth: s,
1427
1394
  children: [
1428
1395
  /* @__PURE__ */ i(
1429
- dn,
1396
+ ln,
1430
1397
  {
1431
1398
  severity: t,
1432
- action: r,
1433
- icon: p === !1 || t === "neutral" && !p ? !1 : p,
1399
+ action: a,
1400
+ icon: d === !1 || t === "neutral" && !d ? !1 : d,
1434
1401
  elevation: 6,
1435
- hasActions: !!r,
1402
+ hasActions: !!a,
1436
1403
  closeable: n,
1437
- title: a,
1404
+ title: r,
1438
1405
  children: o
1439
1406
  }
1440
1407
  ),
1441
- n && /* @__PURE__ */ i(un, { children: /* @__PURE__ */ i(
1408
+ n && /* @__PURE__ */ i(cn, { children: /* @__PURE__ */ i(
1442
1409
  Le,
1443
1410
  {
1444
1411
  color: "default",
1445
- onClick: (I) => c(I, "timeout"),
1412
+ onClick: (D) => c(D, "timeout"),
1446
1413
  icon: /* @__PURE__ */ i(Mt, {}),
1447
- tooltip: m.formatMessage({
1414
+ tooltip: g.formatMessage({
1448
1415
  id: "c4r.button.close"
1449
1416
  })
1450
1417
  }
@@ -1455,20 +1422,20 @@ function So({
1455
1422
  }
1456
1423
  ) });
1457
1424
  }
1458
- const pn = g("div")(({ theme: t }) => ({
1425
+ const sn = p("div")(({ theme: t }) => ({
1459
1426
  display: "flex",
1460
1427
  alignItems: "center",
1461
1428
  height: le,
1462
1429
  marginRight: t.spacing(1.5)
1463
- })), gn = g(W)(({ theme: t }) => ({
1430
+ })), dn = p(O)(({ theme: t }) => ({
1464
1431
  marginRight: t.spacing(1),
1465
1432
  "&.MuiButtonBase-root svg path": {
1466
1433
  fill: t.palette.brand.appBarContrastText
1467
1434
  }
1468
- })), fn = g(j)(({ theme: t }) => ({
1435
+ })), un = p(G)(({ theme: t }) => ({
1469
1436
  borderColor: Kt(t.palette.brand.appBarContrastText, 0.12)
1470
1437
  }));
1471
- function mn({
1438
+ function pn({
1472
1439
  onClickMenu: t
1473
1440
  }) {
1474
1441
  return (
@@ -1480,15 +1447,15 @@ function mn({
1480
1447
  sx: {
1481
1448
  display: { md: "none", xs: "block" }
1482
1449
  },
1483
- children: /* @__PURE__ */ y(pn, { children: [
1484
- /* @__PURE__ */ i(gn, { onClick: t, children: /* @__PURE__ */ i(ue, {}) }),
1485
- /* @__PURE__ */ i(fn, { orientation: "vertical", flexItem: !0 })
1450
+ children: /* @__PURE__ */ x(sn, { children: [
1451
+ /* @__PURE__ */ i(dn, { onClick: t, children: /* @__PURE__ */ i(ue, {}) }),
1452
+ /* @__PURE__ */ i(un, { orientation: "vertical", flexItem: !0 })
1486
1453
  ] })
1487
1454
  }
1488
1455
  )
1489
1456
  );
1490
1457
  }
1491
- const hn = g("div")(({ theme: t }) => ({
1458
+ const gn = p("div")(({ theme: t }) => ({
1492
1459
  display: "flex",
1493
1460
  marginRight: t.spacing(1.5),
1494
1461
  "& a": {
@@ -1499,18 +1466,18 @@ const hn = g("div")(({ theme: t }) => ({
1499
1466
  height: t.spacing(4)
1500
1467
  }
1501
1468
  }));
1502
- function bn({ logo: t }) {
1503
- return /* @__PURE__ */ i(hn, { children: t });
1469
+ function fn({ logo: t }) {
1470
+ return /* @__PURE__ */ i(gn, { children: t });
1504
1471
  }
1505
- const xn = g(S)({
1472
+ const mn = p(B)({
1506
1473
  display: "flex",
1507
1474
  alignItems: "center",
1508
1475
  whiteSpace: "nowrap"
1509
1476
  });
1510
- function yn({ text: t }) {
1511
- const e = N();
1477
+ function hn({ text: t }) {
1478
+ const e = V();
1512
1479
  return /* @__PURE__ */ i(
1513
- xn,
1480
+ mn,
1514
1481
  {
1515
1482
  component: "span",
1516
1483
  variant: "subtitle1",
@@ -1519,7 +1486,7 @@ function yn({ text: t }) {
1519
1486
  }
1520
1487
  );
1521
1488
  }
1522
- const Mn = g(S)(({ theme: t }) => ({
1489
+ const bn = p(B)(({ theme: t }) => ({
1523
1490
  display: "flex",
1524
1491
  alignItems: "center",
1525
1492
  "&::before": {
@@ -1529,10 +1496,10 @@ const Mn = g(S)(({ theme: t }) => ({
1529
1496
  color: t.palette.brand.appBarContrastText
1530
1497
  }
1531
1498
  }));
1532
- function Cn({ text: t }) {
1533
- const e = N();
1499
+ function xn({ text: t }) {
1500
+ const e = V();
1534
1501
  return /* @__PURE__ */ i(
1535
- Mn,
1502
+ bn,
1536
1503
  {
1537
1504
  component: "span",
1538
1505
  variant: "body2",
@@ -1542,7 +1509,7 @@ function Cn({ text: t }) {
1542
1509
  }
1543
1510
  );
1544
1511
  }
1545
- const vn = g(te)(({ theme: t }) => ({
1512
+ const yn = p(te)(({ theme: t }) => ({
1546
1513
  backgroundColor: t.palette.brand.appBarMain,
1547
1514
  "& .MuiTypography-root": {
1548
1515
  color: t.palette.brand.appBarContrastText
@@ -1550,7 +1517,7 @@ const vn = g(te)(({ theme: t }) => ({
1550
1517
  "& .MuiIconButton-root path": {
1551
1518
  fill: t.palette.brand.appBarContrastText
1552
1519
  }
1553
- })), kn = g("div")(({ theme: t }) => ({
1520
+ })), Mn = p("div")(({ theme: t }) => ({
1554
1521
  display: "flex",
1555
1522
  alignItems: "center",
1556
1523
  maxWidth: "calc(100% - 300px)",
@@ -1558,33 +1525,33 @@ const vn = g(te)(({ theme: t }) => ({
1558
1525
  [t.breakpoints.down("sm")]: {
1559
1526
  minWidth: "192px"
1560
1527
  }
1561
- })), Dn = g("div")(({ theme: t }) => ({
1528
+ })), Cn = p("div")(({ theme: t }) => ({
1562
1529
  display: "flex",
1563
1530
  alignItems: "center",
1564
1531
  justifyContent: "space-between",
1565
1532
  flex: 1,
1566
1533
  marginLeft: t.spacing(1)
1567
1534
  }));
1568
- function To({
1535
+ function Io({
1569
1536
  children: t,
1570
1537
  brandLogo: e,
1571
1538
  brandText: n,
1572
1539
  secondaryText: o,
1573
- showBurgerMenu: a = !1,
1574
- onClickMenu: r,
1540
+ showBurgerMenu: r = !1,
1541
+ onClickMenu: a,
1575
1542
  ...l
1576
1543
  }) {
1577
- return /* @__PURE__ */ i(vn, { ...l, children: /* @__PURE__ */ y(Qt, { children: [
1578
- /* @__PURE__ */ y(kn, { children: [
1579
- a && /* @__PURE__ */ i(mn, { onClickMenu: r }),
1580
- e && /* @__PURE__ */ i(bn, { logo: e }),
1581
- n && /* @__PURE__ */ i(yn, { text: n }),
1582
- o && /* @__PURE__ */ i(Cn, { text: o })
1544
+ return /* @__PURE__ */ i(yn, { ...l, children: /* @__PURE__ */ x(Qt, { children: [
1545
+ /* @__PURE__ */ x(Mn, { children: [
1546
+ r && /* @__PURE__ */ i(pn, { onClickMenu: a }),
1547
+ e && /* @__PURE__ */ i(fn, { logo: e }),
1548
+ n && /* @__PURE__ */ i(hn, { text: n }),
1549
+ o && /* @__PURE__ */ i(xn, { text: o })
1583
1550
  ] }),
1584
- /* @__PURE__ */ i(Dn, { children: t })
1551
+ /* @__PURE__ */ i(Cn, { children: t })
1585
1552
  ] }) });
1586
1553
  }
1587
- const An = g(v, {
1554
+ const vn = p(v, {
1588
1555
  shouldForwardProp: (t) => !["size", "variant"].includes(t)
1589
1556
  })(({ size: t, variant: e, theme: n }) => ({
1590
1557
  position: "absolute",
@@ -1601,24 +1568,24 @@ const An = g(v, {
1601
1568
  }
1602
1569
  }
1603
1570
  }));
1604
- function Q({
1571
+ function K({
1605
1572
  size: t,
1606
1573
  variant: e,
1607
1574
  ...n
1608
1575
  }) {
1609
- const o = F(), a = R(o);
1610
- return /* @__PURE__ */ i(An, { size: t, variant: e, children: /* @__PURE__ */ i(
1611
- W,
1576
+ const o = R(), r = $(o);
1577
+ return /* @__PURE__ */ i(vn, { size: t, variant: e, children: /* @__PURE__ */ i(
1578
+ O,
1612
1579
  {
1613
1580
  ...n,
1614
1581
  size: t,
1615
- "aria-label": a.formatMessage({
1582
+ "aria-label": r.formatMessage({
1616
1583
  id: "c4r.form.clearSelection"
1617
1584
  })
1618
1585
  }
1619
1586
  ) });
1620
1587
  }
1621
- const In = g(v, {
1588
+ const Dn = p(v, {
1622
1589
  shouldForwardProp: (t) => !["size", "variant", "readOnly"].includes(t)
1623
1590
  })(({ size: t, variant: e, readOnly: n, theme: o }) => ({
1624
1591
  // 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
@@ -1651,99 +1618,86 @@ const In = g(v, {
1651
1618
  }
1652
1619
  }
1653
1620
  }));
1654
- function tt({
1621
+ function Q({
1655
1622
  children: t,
1656
1623
  size: e,
1657
1624
  variant: n,
1658
1625
  readOnly: o,
1659
- ...a
1626
+ ...r
1660
1627
  }) {
1661
- return /* @__PURE__ */ i(In, { ...a, size: e, variant: n, readOnly: o, children: t });
1628
+ return /* @__PURE__ */ i(Dn, { ...r, size: e, variant: n, readOnly: o, children: t });
1662
1629
  }
1663
- function at({
1630
+ function rt({
1664
1631
  handleClear: t,
1665
1632
  variant: e = "outlined",
1666
1633
  size: n = "small",
1667
1634
  label: o,
1668
- labelHelpTooltip: a,
1669
- type: r,
1635
+ labelHelpTooltip: r,
1636
+ type: a,
1670
1637
  helperText: l,
1671
1638
  placeholder: c,
1672
1639
  slotProps: s,
1673
- slots: p,
1640
+ slots: d,
1674
1641
  error: h,
1675
- showCalendar: d = !0,
1676
- readOnly: m,
1677
- "aria-label": u,
1678
- "data-testid": f,
1679
- ...M
1642
+ showCalendar: u = !0,
1643
+ readOnly: g,
1644
+ ...f
1680
1645
  }) {
1681
- const b = F(), I = R(b);
1646
+ const m = R(), y = $(m);
1682
1647
  return (
1683
1648
  // Don't remove className, it's used for styling
1684
- /* @__PURE__ */ i(v, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ i(
1685
- tt,
1649
+ /* @__PURE__ */ i(v, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ i(Q, { size: n, variant: e, readOnly: g, children: /* @__PURE__ */ i(
1650
+ fe,
1686
1651
  {
1687
- size: n,
1688
- variant: e,
1689
- readOnly: m,
1690
- "data-name": "date-picker",
1691
- "aria-label": u,
1692
- "data-testid": f,
1693
- children: /* @__PURE__ */ i(
1694
- fe,
1652
+ ...f,
1653
+ label: o && /* @__PURE__ */ i(
1654
+ X,
1695
1655
  {
1696
- ...M,
1697
- label: o && /* @__PURE__ */ i(
1698
- K,
1699
- {
1700
- label: o,
1701
- type: r,
1702
- icon: a && /* @__PURE__ */ i(H, { title: a, children: /* @__PURE__ */ i(J, { htmlColor: "text.secondary" }) })
1703
- }
1704
- ),
1705
- slotProps: {
1706
- // https://mui.com/x/api/date-pickers/date-picker/#slots
1707
- textField: {
1708
- variant: e,
1709
- helperText: l,
1710
- placeholder: c,
1711
- size: n,
1712
- error: h ?? void 0,
1713
- // undefined is needed to allow the component to control the error state for the default validation
1714
- inputProps: {
1715
- "data-testid": "date-picker-input"
1716
- }
1717
- },
1718
- field: {
1719
- clearable: !!t,
1720
- onClear: t
1721
- },
1722
- ...s
1723
- },
1724
- slots: {
1725
- clearButton: (k) => /* @__PURE__ */ i(Q, { ...k, size: n, variant: e }),
1726
- openPickerButton: (k) => /* @__PURE__ */ i(
1727
- W,
1728
- {
1729
- ...k,
1730
- size: n,
1731
- "aria-label": I.formatMessage({
1732
- id: "c4r.form.chooseDate"
1733
- })
1734
- }
1735
- ),
1736
- ...p
1737
- },
1738
- disableOpenPicker: !d,
1739
- readOnly: m
1656
+ label: o,
1657
+ type: a,
1658
+ icon: r && /* @__PURE__ */ i(W, { title: r, children: /* @__PURE__ */ i(Z, { htmlColor: "text.secondary" }) })
1740
1659
  }
1741
- )
1660
+ ),
1661
+ slotProps: {
1662
+ // https://mui.com/x/api/date-pickers/date-picker/#slots
1663
+ textField: {
1664
+ variant: e,
1665
+ helperText: l,
1666
+ placeholder: c,
1667
+ size: n,
1668
+ error: h ?? void 0,
1669
+ // undefined is needed to allow the component to control the error state for the default validation
1670
+ inputProps: {
1671
+ "data-testid": "date-picker-input"
1672
+ }
1673
+ },
1674
+ field: {
1675
+ clearable: !!t,
1676
+ onClear: t
1677
+ },
1678
+ ...s
1679
+ },
1680
+ slots: {
1681
+ clearButton: (b) => /* @__PURE__ */ i(K, { ...b, size: n, variant: e }),
1682
+ openPickerButton: (b) => /* @__PURE__ */ i(
1683
+ O,
1684
+ {
1685
+ ...b,
1686
+ size: n,
1687
+ "aria-label": y.formatMessage({
1688
+ id: "c4r.form.chooseDate"
1689
+ })
1690
+ }
1691
+ ),
1692
+ ...d
1693
+ },
1694
+ disableOpenPicker: !u,
1695
+ readOnly: g
1742
1696
  }
1743
- ) })
1697
+ ) }) })
1744
1698
  );
1745
1699
  }
1746
- const wn = g(v, {
1700
+ const An = p(v, {
1747
1701
  shouldForwardProp: (t) => ![
1748
1702
  "isSelected",
1749
1703
  "isStartDate",
@@ -1758,8 +1712,8 @@ const wn = g(v, {
1758
1712
  isSelected: e,
1759
1713
  isStartDate: n,
1760
1714
  isEndDate: o,
1761
- isSelectedMonth: a,
1762
- isLastDay: r,
1715
+ isSelectedMonth: r,
1716
+ isLastDay: a,
1763
1717
  isFirstDay: l
1764
1718
  }) => ({
1765
1719
  position: "relative",
@@ -1768,7 +1722,7 @@ const wn = g(v, {
1768
1722
  margin: 0
1769
1723
  },
1770
1724
  // Highlight the selected date range
1771
- ...e && a && {
1725
+ ...e && r && {
1772
1726
  // Creates a continuous background color between start and end date
1773
1727
  "&::before": {
1774
1728
  content: '""',
@@ -1784,7 +1738,7 @@ const wn = g(v, {
1784
1738
  borderRadius: `${t.shape.borderRadius}px 0 0 ${t.shape.borderRadius}px`
1785
1739
  },
1786
1740
  // Selected end date OR last day of the month
1787
- ...(o || r) && {
1741
+ ...(o || a) && {
1788
1742
  right: 0,
1789
1743
  borderRadius: `0 ${t.shape.borderRadius}px ${t.shape.borderRadius}px 0`
1790
1744
  }
@@ -1808,7 +1762,7 @@ const wn = g(v, {
1808
1762
  }
1809
1763
  },
1810
1764
  // Last day of month and first selected day in a week
1811
- ...r && {
1765
+ ...a && {
1812
1766
  "&:first-of-type::before": {
1813
1767
  left: 0,
1814
1768
  right: 0,
@@ -1838,7 +1792,7 @@ const wn = g(v, {
1838
1792
  }
1839
1793
  }
1840
1794
  })
1841
- ), Bn = g(me, {
1795
+ ), kn = p(me, {
1842
1796
  shouldForwardProp: (t) => t !== "isDateRangeLimit"
1843
1797
  })(({ theme: t, isDateRangeLimit: e }) => ({
1844
1798
  "&.MuiPickersDay-root": {
@@ -1858,38 +1812,37 @@ const wn = g(v, {
1858
1812
  }
1859
1813
  }
1860
1814
  }
1861
- })), rt = (t, e) => !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
1815
+ })), at = (t, e) => !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
1862
1816
  function lt({
1863
1817
  day: t,
1864
1818
  startDate: e,
1865
1819
  endDate: n,
1866
1820
  selectedMonth: o,
1867
- ...a
1821
+ ...r
1868
1822
  }) {
1869
- 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());
1823
+ const a = !!(e && at(e, t)), l = !!(n && at(n, t)), c = !!(e && n && t.getTime() >= e.getTime() && t.getTime() <= n.getTime()), s = t.getDate() === 1, d = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), h = !!(o && t.getMonth() === o.getMonth());
1870
1824
  return /* @__PURE__ */ i(
1871
- wn,
1825
+ An,
1872
1826
  {
1873
1827
  isSelected: c,
1874
- isStartDate: r,
1828
+ isStartDate: a,
1875
1829
  isEndDate: l,
1876
1830
  isSelectedMonth: h,
1877
- isLastDay: p,
1831
+ isLastDay: d,
1878
1832
  isFirstDay: s,
1879
1833
  children: /* @__PURE__ */ i(
1880
- Bn,
1834
+ kn,
1881
1835
  {
1882
- ...a,
1836
+ ...r,
1883
1837
  day: t,
1884
- selected: c || r || l,
1885
- isDateRangeLimit: r || l,
1886
- "data-name": "pickers-day"
1838
+ selected: c || a || l,
1839
+ isDateRangeLimit: a || l
1887
1840
  }
1888
1841
  )
1889
1842
  }
1890
1843
  );
1891
1844
  }
1892
- const Sn = g(v, {
1845
+ const In = p(v, {
1893
1846
  shouldForwardProp: (t) => !["variant"].includes(t)
1894
1847
  })(({ variant: t, theme: e }) => ({
1895
1848
  display: "flex",
@@ -1939,190 +1892,175 @@ const Sn = g(v, {
1939
1892
  }
1940
1893
  }
1941
1894
  }));
1942
- function $o({
1895
+ function wo({
1943
1896
  globalHelperText: t,
1944
1897
  error: e,
1945
1898
  variant: n = "outlined",
1946
1899
  startProps: o,
1947
- endProps: a,
1948
- "aria-label": r,
1949
- "data-testid": l,
1950
- ...c
1900
+ endProps: r,
1901
+ ...a
1951
1902
  }) {
1952
- const s = F(), p = R(s), [h, d] = $(!1), [m, u] = $(!1), [f, M] = $(
1903
+ const l = R(), c = $(l), [s, d] = T(!1), [h, u] = T(!1), [g, f] = T(
1953
1904
  (o == null ? void 0 : o.value) || null
1954
- ), [b, I] = $((a == null ? void 0 : a.value) || null), [k, D] = $(
1955
- (a == null ? void 0 : a.value) ?? (o == null ? void 0 : o.value) ?? /* @__PURE__ */ new Date()
1956
- ), x = e ?? (o == null ? void 0 : o.error) ?? (a == null ? void 0 : a.error), C = (A, L) => {
1957
- M(A), o != null && o.onChange && o.onChange(A, L), A && L.validationError === null && !m && L.trigger === null && (u(!1), d(!0));
1958
- }, B = (A, L) => {
1959
- I(A), a != null && a.onChange && a.onChange(A, L);
1960
- }, O = () => {
1905
+ ), [m, y] = T((r == null ? void 0 : r.value) || null), [b, D] = T(
1906
+ (r == null ? void 0 : r.value) ?? (o == null ? void 0 : o.value) ?? /* @__PURE__ */ new Date()
1907
+ ), w = e ?? (o == null ? void 0 : o.error) ?? (r == null ? void 0 : r.error), A = (C, S) => {
1908
+ f(C), o != null && o.onChange && o.onChange(C, S), C && S.validationError === null && !h && S.trigger === null && (u(!1), d(!0));
1909
+ }, M = (C, S) => {
1910
+ y(C), r != null && r.onChange && r.onChange(C, S);
1911
+ }, k = () => {
1961
1912
  u(!0), d(!1), setTimeout(() => {
1962
- D(f ?? /* @__PURE__ */ new Date());
1913
+ D(g ?? /* @__PURE__ */ new Date());
1963
1914
  }, 120);
1964
- }, w = () => {
1915
+ }, I = () => {
1965
1916
  u(!1), d(!0), setTimeout(() => {
1966
- D(b ?? f ?? /* @__PURE__ */ new Date());
1917
+ D(m ?? g ?? /* @__PURE__ */ new Date());
1967
1918
  }, 120);
1968
- }, E = () => {
1919
+ }, F = () => {
1969
1920
  u(!1), d(!0), setTimeout(() => {
1970
- D(b ?? f ?? /* @__PURE__ */ new Date());
1921
+ D(m ?? g ?? /* @__PURE__ */ new Date());
1971
1922
  }, 120);
1972
1923
  };
1973
- return /* @__PURE__ */ y(v, { children: [
1974
- /* @__PURE__ */ y(
1975
- Sn,
1976
- {
1977
- variant: n,
1978
- "data-name": "date-range-picker",
1979
- "aria-label": r,
1980
- "data-testid": l,
1981
- children: [
1982
- /* @__PURE__ */ i(
1983
- at,
1984
- {
1985
- ...c,
1986
- ...o,
1987
- value: (o == null ? void 0 : o.value) ?? f,
1988
- maxDate: b ?? void 0,
1989
- label: (o == null ? void 0 : o.label) ?? p.formatMessage({ id: "c4r.form.startDate" }),
1990
- slotProps: {
1991
- popper: {
1992
- placement: "bottom-start",
1993
- "aria-label": p.formatMessage({
1994
- id: "c4r.form.startDateCalendar"
1995
- })
1996
- },
1997
- ...o == null ? void 0 : o.slotProps
1998
- },
1999
- slots: {
2000
- openPickerIcon: pe,
2001
- day: (A) => /* @__PURE__ */ i(
2002
- lt,
2003
- {
2004
- ...A,
2005
- startDate: f,
2006
- endDate: b,
2007
- selectedMonth: k
2008
- }
2009
- ),
2010
- ...o == null ? void 0 : o.slots
2011
- },
2012
- error: (o == null ? void 0 : o.error) ?? e,
2013
- open: m,
2014
- onChange: C,
2015
- onOpen: O,
2016
- onClose: w,
2017
- onMonthChange: (A) => D(A),
2018
- variant: n
2019
- }
2020
- ),
2021
- /* @__PURE__ */ i(
2022
- at,
2023
- {
2024
- ...c,
2025
- ...a,
2026
- value: (a == null ? void 0 : a.value) ?? b,
2027
- minDate: f ?? void 0,
2028
- slotProps: {
2029
- popper: {
2030
- "aria-label": p.formatMessage({
2031
- id: "c4r.form.endDateCalendar"
2032
- })
2033
- },
2034
- ...a == null ? void 0 : a.slotProps
2035
- },
2036
- slots: {
2037
- day: (A) => /* @__PURE__ */ i(
2038
- lt,
2039
- {
2040
- ...A,
2041
- startDate: f,
2042
- endDate: b,
2043
- selectedMonth: k
2044
- }
2045
- ),
2046
- ...a == null ? void 0 : a.slots
2047
- },
2048
- label: (a == null ? void 0 : a.label) ?? p.formatMessage({ id: "c4r.form.endDate" }),
2049
- error: (a == null ? void 0 : a.error) ?? e,
2050
- open: h,
2051
- onOpen: E,
2052
- onClose: () => d(!1),
2053
- onChange: B,
2054
- onMonthChange: (A) => D(A),
2055
- variant: n
2056
- }
2057
- )
2058
- ]
2059
- }
2060
- ),
2061
- t && /* @__PURE__ */ i(ht, { error: x, children: t })
1924
+ return /* @__PURE__ */ x(v, { children: [
1925
+ /* @__PURE__ */ x(In, { variant: n, children: [
1926
+ /* @__PURE__ */ i(
1927
+ rt,
1928
+ {
1929
+ ...a,
1930
+ ...o,
1931
+ value: (o == null ? void 0 : o.value) ?? g,
1932
+ maxDate: m ?? void 0,
1933
+ label: (o == null ? void 0 : o.label) ?? c.formatMessage({ id: "c4r.form.startDate" }),
1934
+ slotProps: {
1935
+ popper: {
1936
+ placement: "bottom-start",
1937
+ "aria-label": c.formatMessage({
1938
+ id: "c4r.form.startDateCalendar"
1939
+ })
1940
+ },
1941
+ ...o == null ? void 0 : o.slotProps
1942
+ },
1943
+ slots: {
1944
+ openPickerIcon: pe,
1945
+ day: (C) => /* @__PURE__ */ i(
1946
+ lt,
1947
+ {
1948
+ ...C,
1949
+ startDate: g,
1950
+ endDate: m,
1951
+ selectedMonth: b
1952
+ }
1953
+ ),
1954
+ ...o == null ? void 0 : o.slots
1955
+ },
1956
+ error: (o == null ? void 0 : o.error) ?? e,
1957
+ open: h,
1958
+ onChange: A,
1959
+ onOpen: k,
1960
+ onClose: I,
1961
+ onMonthChange: (C) => D(C),
1962
+ variant: n
1963
+ }
1964
+ ),
1965
+ /* @__PURE__ */ i(
1966
+ rt,
1967
+ {
1968
+ ...a,
1969
+ ...r,
1970
+ value: (r == null ? void 0 : r.value) ?? m,
1971
+ minDate: g ?? void 0,
1972
+ slotProps: {
1973
+ popper: {
1974
+ "aria-label": c.formatMessage({
1975
+ id: "c4r.form.endDateCalendar"
1976
+ })
1977
+ },
1978
+ ...r == null ? void 0 : r.slotProps
1979
+ },
1980
+ slots: {
1981
+ day: (C) => /* @__PURE__ */ i(
1982
+ lt,
1983
+ {
1984
+ ...C,
1985
+ startDate: g,
1986
+ endDate: m,
1987
+ selectedMonth: b
1988
+ }
1989
+ ),
1990
+ ...r == null ? void 0 : r.slots
1991
+ },
1992
+ label: (r == null ? void 0 : r.label) ?? c.formatMessage({ id: "c4r.form.endDate" }),
1993
+ error: (r == null ? void 0 : r.error) ?? e,
1994
+ open: s,
1995
+ onOpen: F,
1996
+ onClose: () => d(!1),
1997
+ onChange: M,
1998
+ onMonthChange: (C) => D(C),
1999
+ variant: n
2000
+ }
2001
+ )
2002
+ ] }),
2003
+ t && /* @__PURE__ */ i(ht, { error: w, children: t })
2062
2004
  ] });
2063
2005
  }
2064
2006
  const $t = (t, e, n, o) => {
2065
- 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";
2007
+ const r = t == null ? void 0 : t.includes("hours"), a = 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";
2066
2008
  if (o) return o;
2067
2009
  const s = [];
2068
- 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("");
2010
+ return e && s.push("MM/dd/yyyy "), r && s.push(n ? "hh" : "HH"), c || s.push(":"), l && s.push("mm"), a && s.push(":ss"), n && s.push(" a"), s.join("");
2069
2011
  };
2070
- function Ro({
2012
+ function Bo({
2071
2013
  handleClear: t,
2072
2014
  variant: e = "outlined",
2073
2015
  size: n = "small",
2074
2016
  label: o,
2075
- labelHelpTooltip: a,
2076
- type: r,
2017
+ labelHelpTooltip: r,
2018
+ type: a,
2077
2019
  helperText: l,
2078
2020
  placeholder: c,
2079
2021
  error: s,
2080
- showClock: p = !0,
2022
+ showClock: d = !0,
2081
2023
  readOnly: h,
2082
- slotProps: d,
2083
- slots: m,
2084
- ampm: u = !0,
2085
- views: f = ["hours", "minutes"],
2086
- format: M,
2087
- "data-testid": b,
2088
- "aria-label": I,
2089
- ...k
2024
+ slotProps: u,
2025
+ slots: g,
2026
+ ampm: f = !0,
2027
+ views: m = ["hours", "minutes"],
2028
+ format: y,
2029
+ ...b
2090
2030
  }) {
2091
- const D = F(), x = R(D), C = Y(null), [B, O] = $(0);
2092
- return _(() => {
2093
- if (!C.current) return;
2094
- const w = new ResizeObserver((E) => {
2095
- var L;
2096
- const A = (L = E[0]) == null ? void 0 : L.contentRect.width;
2097
- A && O(A);
2031
+ const D = R(), w = $(D), A = U(null), [M, k] = T(0);
2032
+ return H(() => {
2033
+ if (!A.current) return;
2034
+ const I = new ResizeObserver((F) => {
2035
+ var S;
2036
+ const C = (S = F[0]) == null ? void 0 : S.contentRect.width;
2037
+ C && k(C);
2098
2038
  });
2099
- return w.observe(C.current), () => {
2100
- w.disconnect();
2039
+ return I.observe(A.current), () => {
2040
+ I.disconnect();
2101
2041
  };
2102
2042
  }, []), /* @__PURE__ */ i(
2103
- tt,
2043
+ Q,
2104
2044
  {
2105
2045
  size: n,
2106
2046
  variant: e,
2107
2047
  readOnly: h,
2108
- "data-name": "time-picker",
2109
- "data-testid": b ?? "time-picker",
2110
- "aria-label": I,
2048
+ "data-testid": "time-picker",
2111
2049
  children: /* @__PURE__ */ i(
2112
2050
  he,
2113
2051
  {
2114
- ...k,
2115
- ref: C,
2052
+ ...b,
2053
+ ref: A,
2116
2054
  label: /* @__PURE__ */ i(
2117
- K,
2055
+ X,
2118
2056
  {
2119
- label: o ?? x.formatMessage({ id: "c4r.form.time" }),
2120
- type: r,
2121
- icon: a && /* @__PURE__ */ i(H, { title: a, children: /* @__PURE__ */ i(J, { htmlColor: "text.secondary" }) })
2057
+ label: o ?? w.formatMessage({ id: "c4r.form.time" }),
2058
+ type: a,
2059
+ icon: r && /* @__PURE__ */ i(W, { title: r, children: /* @__PURE__ */ i(Z, { htmlColor: "text.secondary" }) })
2122
2060
  }
2123
2061
  ),
2124
2062
  views: ["hours"],
2125
- format: $t(f, !1, u, M),
2063
+ format: $t(m, !1, f, y),
2126
2064
  slotProps: {
2127
2065
  textField: {
2128
2066
  variant: e,
@@ -2144,78 +2082,74 @@ function Ro({
2144
2082
  },
2145
2083
  layout: {
2146
2084
  sx: {
2147
- width: B
2085
+ width: M
2148
2086
  }
2149
2087
  },
2150
- ...d
2088
+ ...u
2151
2089
  },
2152
2090
  slots: {
2153
- clearButton: (w) => /* @__PURE__ */ i(Q, { ...w, size: n, variant: e }),
2154
- openPickerButton: (w) => /* @__PURE__ */ i(
2155
- W,
2091
+ clearButton: (I) => /* @__PURE__ */ i(K, { ...I, size: n, variant: e }),
2092
+ openPickerButton: (I) => /* @__PURE__ */ i(
2093
+ O,
2156
2094
  {
2157
- ...w,
2095
+ ...I,
2158
2096
  size: n,
2159
- "aria-label": x.formatMessage({
2097
+ "aria-label": w.formatMessage({
2160
2098
  id: "c4r.form.chooseDate"
2161
2099
  })
2162
2100
  }
2163
2101
  ),
2164
- ...m
2102
+ ...g
2165
2103
  },
2166
- disableOpenPicker: !p,
2104
+ disableOpenPicker: !d,
2167
2105
  readOnly: h,
2168
- ampm: u
2106
+ ampm: f
2169
2107
  }
2170
2108
  )
2171
2109
  }
2172
2110
  );
2173
2111
  }
2174
- function Fo({
2112
+ function So({
2175
2113
  handleClear: t,
2176
2114
  variant: e = "outlined",
2177
2115
  size: n = "small",
2178
2116
  label: o,
2179
- labelHelpTooltip: a,
2180
- type: r,
2117
+ labelHelpTooltip: r,
2118
+ type: a,
2181
2119
  helperText: l,
2182
2120
  placeholder: c,
2183
2121
  error: s,
2184
- showCalendar: p = !0,
2122
+ showCalendar: d = !0,
2185
2123
  readOnly: h,
2186
- slotProps: d,
2187
- slots: m,
2188
- ampm: u = !0,
2189
- views: f = ["hours", "minutes"],
2190
- format: M,
2191
- "data-testid": b,
2192
- "aria-label": I,
2193
- ...k
2124
+ slotProps: u,
2125
+ slots: g,
2126
+ ampm: f = !0,
2127
+ views: m = ["hours", "minutes"],
2128
+ format: y,
2129
+ ...b
2194
2130
  }) {
2195
- const D = F(), x = R(D);
2131
+ const D = R(), w = $(D);
2196
2132
  return /* @__PURE__ */ i(
2197
- tt,
2133
+ Q,
2198
2134
  {
2199
2135
  size: n,
2200
2136
  variant: e,
2201
2137
  readOnly: h,
2202
- "data-name": "date-time-picker",
2203
- "data-testid": b ?? "date-time-picker",
2204
- "aria-label": I,
2138
+ "data-testid": "date-time-picker",
2205
2139
  children: /* @__PURE__ */ i(
2206
2140
  be,
2207
2141
  {
2208
- ...k,
2142
+ ...b,
2209
2143
  label: /* @__PURE__ */ i(
2210
- K,
2144
+ X,
2211
2145
  {
2212
- label: o ?? x.formatMessage({ id: "c4r.form.time" }),
2213
- type: r,
2214
- icon: a && /* @__PURE__ */ i(H, { title: a, children: /* @__PURE__ */ i(J, { htmlColor: "text.secondary" }) })
2146
+ label: o ?? w.formatMessage({ id: "c4r.form.time" }),
2147
+ type: a,
2148
+ icon: r && /* @__PURE__ */ i(W, { title: r, children: /* @__PURE__ */ i(Z, { htmlColor: "text.secondary" }) })
2215
2149
  }
2216
2150
  ),
2217
2151
  views: ["year", "month", "day", "hours"],
2218
- format: $t(f, !0, u, M),
2152
+ format: $t(m, !0, f, y),
2219
2153
  slotProps: {
2220
2154
  textField: {
2221
2155
  variant: e,
@@ -2232,61 +2166,61 @@ function Fo({
2232
2166
  clearable: !!t,
2233
2167
  onClear: t
2234
2168
  },
2235
- ...d
2169
+ ...u
2236
2170
  },
2237
2171
  slots: {
2238
- clearButton: (C) => /* @__PURE__ */ i(Q, { ...C, size: n, variant: e }),
2239
- openPickerButton: (C) => /* @__PURE__ */ i(
2240
- W,
2172
+ clearButton: (A) => /* @__PURE__ */ i(K, { ...A, size: n, variant: e }),
2173
+ openPickerButton: (A) => /* @__PURE__ */ i(
2174
+ O,
2241
2175
  {
2242
- ...C,
2176
+ ...A,
2243
2177
  size: n,
2244
- "aria-label": x.formatMessage({
2178
+ "aria-label": w.formatMessage({
2245
2179
  id: "c4r.form.chooseDate"
2246
2180
  })
2247
2181
  }
2248
2182
  ),
2249
- ...m
2183
+ ...g
2250
2184
  },
2251
- disableOpenPicker: !p,
2185
+ disableOpenPicker: !d,
2252
2186
  readOnly: h,
2253
- ampm: u
2187
+ ampm: f
2254
2188
  }
2255
2189
  )
2256
2190
  }
2257
2191
  );
2258
2192
  }
2259
- const Tn = [{ outlinedBullet: !1, value: "" }], $n = g("ul")(({ theme: t }) => ({
2193
+ const wn = [{ outlinedBullet: !1, value: "" }], Bn = p("ul")(({ theme: t }) => ({
2260
2194
  listStyle: "none",
2261
2195
  paddingLeft: 0,
2262
2196
  margin: t.spacing(0.5, 0, 0, 0)
2263
- })), Rn = g("li")(({ theme: t }) => ({
2197
+ })), Sn = p("li")(({ theme: t }) => ({
2264
2198
  display: "flex",
2265
2199
  alignItems: "center",
2266
2200
  justifyContent: "space-between",
2267
2201
  "&:not(:last-child)": {
2268
2202
  marginBottom: t.spacing(0.5)
2269
2203
  }
2270
- })), Fn = g("span")(({ theme: t }) => ({
2204
+ })), Tn = p("span")(({ theme: t }) => ({
2271
2205
  width: t.spacing(1),
2272
2206
  height: t.spacing(1),
2273
2207
  marginRight: t.spacing(0.5),
2274
2208
  border: `2px solid ${t.palette.qualitative.bold[1]}`,
2275
2209
  borderRadius: "50%",
2276
2210
  backgroundColor: t.palette.qualitative.bold[1]
2277
- })), On = g(S)(({ theme: t }) => ({
2211
+ })), $n = p(B)(({ theme: t }) => ({
2278
2212
  minWidth: t.spacing(10),
2279
2213
  marginRight: t.spacing(1.5)
2280
2214
  }));
2281
- function Oo({
2282
- items: t = Tn,
2215
+ function To({
2216
+ items: t = wn,
2283
2217
  title: e
2284
2218
  }) {
2285
- return /* @__PURE__ */ y(V, { children: [
2286
- e && /* @__PURE__ */ i(S, { color: "inherit", variant: "caption", weight: "medium", children: e }),
2287
- /* @__PURE__ */ i($n, { children: t.map((n, o) => /* @__PURE__ */ y(Rn, { children: [
2219
+ return /* @__PURE__ */ x(j, { children: [
2220
+ e && /* @__PURE__ */ i(B, { color: "inherit", variant: "caption", weight: "medium", children: e }),
2221
+ /* @__PURE__ */ i(Bn, { children: t.map((n, o) => /* @__PURE__ */ x(Sn, { children: [
2288
2222
  /* @__PURE__ */ i(
2289
- Fn,
2223
+ Tn,
2290
2224
  {
2291
2225
  style: {
2292
2226
  backgroundColor: `${n.outlinedBullet ? "transparent" : n.color}`,
@@ -2294,8 +2228,8 @@ function Oo({
2294
2228
  }
2295
2229
  }
2296
2230
  ),
2297
- n.category && /* @__PURE__ */ i(On, { color: "inherit", variant: "caption", children: n.category }),
2298
- /* @__PURE__ */ i(S, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
2231
+ n.category && /* @__PURE__ */ i($n, { color: "inherit", variant: "caption", children: n.category }),
2232
+ /* @__PURE__ */ i(B, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
2299
2233
  ] }, o)) })
2300
2234
  ] });
2301
2235
  }
@@ -2323,7 +2257,7 @@ const ct = {
2323
2257
  height: "calc(100vh - 80px)",
2324
2258
  maxWidth: "960px"
2325
2259
  }
2326
- }, dt = g(ee, {
2260
+ }, dt = p(ee, {
2327
2261
  shouldForwardProp: (t) => !["fullScreen", "height", "width", "hasForm"].includes(t)
2328
2262
  })(
2329
2263
  ({
@@ -2331,30 +2265,30 @@ const ct = {
2331
2265
  height: e,
2332
2266
  width: n,
2333
2267
  hasForm: o,
2334
- size: a = "small",
2335
- theme: r
2268
+ size: r = "small",
2269
+ theme: a
2336
2270
  }) => ({
2337
2271
  "&.MuiPaper-root": {
2338
2272
  position: "relative",
2339
2273
  display: "flex",
2340
2274
  flexDirection: "column",
2341
- margin: r.spacing(5),
2342
- borderRadius: r.spacing(1),
2343
- ...st[a],
2344
- maxHeight: ct[a],
2345
- [`@media (max-height:${ct[a]})`]: {
2275
+ margin: a.spacing(5),
2276
+ borderRadius: a.spacing(1),
2277
+ ...st[r],
2278
+ maxHeight: ct[r],
2279
+ [`@media (max-height:${ct[r]})`]: {
2346
2280
  maxHeight: "calc(100vh - 80px)",
2347
- ...a === "large" && {
2281
+ ...r === "large" && {
2348
2282
  minHeight: e !== "auto" ? "calc(100vh - 80px)" : "auto"
2349
2283
  }
2350
2284
  },
2351
2285
  ...t && {
2352
2286
  width: "100vw",
2353
- maxWidth: `calc(100vw - ${r.spacing(10)})`,
2287
+ maxWidth: `calc(100vw - ${a.spacing(10)})`,
2354
2288
  height: "100vh",
2355
- maxHeight: `calc(100vh - ${r.spacing(10)})`,
2356
- margin: r.spacing(5),
2357
- borderRadius: r.spacing(1)
2289
+ maxHeight: `calc(100vh - ${a.spacing(10)})`,
2290
+ margin: a.spacing(5),
2291
+ borderRadius: a.spacing(1)
2358
2292
  },
2359
2293
  ...e && {
2360
2294
  height: e,
@@ -2363,7 +2297,7 @@ const ct = {
2363
2297
  ...n && {
2364
2298
  width: n
2365
2299
  },
2366
- [r.breakpoints.down("sm")]: {
2300
+ [a.breakpoints.down("sm")]: {
2367
2301
  position: "absolute",
2368
2302
  width: "100%",
2369
2303
  maxWidth: "100%",
@@ -2377,21 +2311,21 @@ const ct = {
2377
2311
  borderRadius: 0,
2378
2312
  ...e && {
2379
2313
  top: "auto",
2380
- borderRadius: r.spacing(1, 1, 0, 0),
2314
+ borderRadius: a.spacing(1, 1, 0, 0),
2381
2315
  height: e,
2382
2316
  minHeight: e
2383
2317
  }
2384
2318
  },
2385
2319
  // Special case for Dialogs wrapped in Form
2386
2320
  ...o && {
2387
- maxHeight: `calc(100vh - ${r.spacing(10)})`,
2321
+ maxHeight: `calc(100vh - ${a.spacing(10)})`,
2388
2322
  form: {
2389
2323
  flex: 1,
2390
2324
  display: "flex",
2391
2325
  flexDirection: "column",
2392
2326
  justifyContent: "space-between",
2393
2327
  overflow: "hidden",
2394
- ...st[a],
2328
+ ...st[r],
2395
2329
  maxWidth: "100%",
2396
2330
  ...t && {
2397
2331
  width: "100%",
@@ -2406,14 +2340,14 @@ const ct = {
2406
2340
  ...n && {
2407
2341
  width: n
2408
2342
  },
2409
- [r.breakpoints.down("sm")]: {
2343
+ [a.breakpoints.down("sm")]: {
2410
2344
  width: "100%",
2411
2345
  maxWidth: "100%",
2412
2346
  height: "100vh",
2413
2347
  maxHeight: "100vh",
2414
2348
  ...e && {
2415
2349
  top: "auto",
2416
- borderRadius: r.spacing(1, 1, 0, 0),
2350
+ borderRadius: a.spacing(1, 1, 0, 0),
2417
2351
  height: e,
2418
2352
  minHeight: e
2419
2353
  }
@@ -2423,32 +2357,30 @@ const ct = {
2423
2357
  }
2424
2358
  })
2425
2359
  );
2426
- function Ln({
2360
+ function $o({
2427
2361
  nonModal: t,
2428
2362
  children: e,
2429
2363
  size: n = "small",
2430
2364
  PaperProps: o,
2431
- fullScreen: a,
2432
- height: r,
2365
+ fullScreen: r,
2366
+ height: a,
2433
2367
  width: l,
2434
2368
  hasForm: c,
2435
2369
  "aria-label": s,
2436
- "data-testid": p,
2370
+ "data-testid": d,
2437
2371
  ...h
2438
- }, d) {
2372
+ }) {
2439
2373
  return t ? /* @__PURE__ */ i(
2440
2374
  dt,
2441
2375
  {
2442
2376
  size: n,
2443
- fullScreen: a,
2444
- height: r,
2377
+ fullScreen: r,
2378
+ height: a,
2445
2379
  width: l,
2446
2380
  hasForm: c,
2447
2381
  "aria-label": s,
2448
- "data-testid": p,
2449
- "data-name": "dialog",
2382
+ "data-testid": d,
2450
2383
  ...h,
2451
- ref: d,
2452
2384
  children: e
2453
2385
  }
2454
2386
  ) : /* @__PURE__ */ i(
@@ -2458,93 +2390,90 @@ function Ln({
2458
2390
  PaperProps: {
2459
2391
  ...o,
2460
2392
  size: n,
2461
- fullScreen: a,
2462
- height: r,
2393
+ fullScreen: r,
2394
+ height: a,
2463
2395
  width: l,
2464
2396
  hasForm: c
2465
2397
  },
2466
- fullScreen: a,
2398
+ fullScreen: r,
2467
2399
  role: "section",
2468
2400
  "aria-label": s,
2469
- "data-testid": p,
2401
+ "data-testid": d,
2470
2402
  "data-size": n,
2471
2403
  "data-width": l,
2472
- "data-height": r,
2473
- "data-name": "dialog",
2404
+ "data-height": a,
2474
2405
  ...h,
2475
- ref: d,
2476
2406
  children: e
2477
2407
  }
2478
2408
  );
2479
2409
  }
2480
- const Lo = T(Ln), Wn = g(oe)(() => ({
2410
+ const Rn = p(oe)(() => ({
2481
2411
  padding: 0,
2482
2412
  zIndex: 10
2483
- })), En = g(v)(({ theme: t }) => ({
2413
+ })), Fn = p(v)(({ theme: t }) => ({
2484
2414
  display: "flex",
2485
2415
  alignItems: "center",
2486
2416
  justifyContent: "space-between",
2487
2417
  padding: t.spacing(2),
2488
2418
  minHeight: t.spacing(8)
2489
- })), ut = g(v)(({ theme: t }) => ({
2419
+ })), ut = p(v)(({ theme: t }) => ({
2490
2420
  display: "flex",
2491
2421
  alignItems: "center",
2492
2422
  gap: t.spacing(1),
2493
2423
  overflow: "hidden"
2494
- })), Hn = g(Mt)(({ theme: t }) => ({
2424
+ })), On = p(Mt)(({ theme: t }) => ({
2495
2425
  color: t.palette.text.secondary
2496
- })), _n = g(j)(() => ({
2426
+ })), Ln = p(G)(() => ({
2497
2427
  "+ .MuiDialogContent-root": {
2498
2428
  borderTop: "none !important"
2499
2429
  }
2500
2430
  }));
2501
- function Wo({
2431
+ function Ro({
2502
2432
  title: t,
2503
2433
  chipLabel: e,
2504
2434
  chipProps: n,
2505
2435
  children: o,
2506
- onClose: a,
2507
- secondaryActions: r,
2436
+ onClose: r,
2437
+ secondaryActions: a,
2508
2438
  "aria-label": l,
2509
2439
  closeIcon: c,
2510
2440
  ...s
2511
2441
  }) {
2512
- const p = F(), h = R(p);
2513
- return /* @__PURE__ */ y(V, { children: [
2514
- /* @__PURE__ */ y(Wn, { component: "div", "data-name": "dialog-header", ...s, children: [
2515
- /* @__PURE__ */ y(En, { children: [
2516
- /* @__PURE__ */ y(ut, { flex: 1, maxWidth: 0.8, children: [
2442
+ const d = R(), h = $(d);
2443
+ return /* @__PURE__ */ x(j, { children: [
2444
+ /* @__PURE__ */ x(Rn, { component: "div", ...s, children: [
2445
+ /* @__PURE__ */ x(Fn, { children: [
2446
+ /* @__PURE__ */ x(ut, { flex: 1, maxWidth: 0.8, children: [
2517
2447
  /* @__PURE__ */ i(
2518
- S,
2448
+ B,
2519
2449
  {
2520
2450
  component: "h2",
2521
2451
  variant: "inherit",
2522
2452
  noWrap: !0,
2523
2453
  "aria-label": l,
2524
- role: "heading",
2525
2454
  children: t
2526
2455
  }
2527
2456
  ),
2528
2457
  e && /* @__PURE__ */ i(ie, { color: "default", label: e, ...n })
2529
2458
  ] }),
2530
- /* @__PURE__ */ y(ut, { children: [
2531
- r,
2532
- a && /* @__PURE__ */ i(
2533
- H,
2459
+ /* @__PURE__ */ x(ut, { children: [
2460
+ a,
2461
+ r && /* @__PURE__ */ i(
2462
+ W,
2534
2463
  {
2535
2464
  title: h.formatMessage({ id: "c4r.button.close" }),
2536
2465
  placement: "left",
2537
- children: /* @__PURE__ */ i(W, { onClick: a, children: c || /* @__PURE__ */ i(Hn, { "data-testid": "CloseIcon" }) })
2466
+ children: /* @__PURE__ */ i(O, { onClick: r, children: c || /* @__PURE__ */ i(On, { "data-testid": "CloseIcon" }) })
2538
2467
  }
2539
2468
  )
2540
2469
  ] })
2541
2470
  ] }),
2542
2471
  o
2543
2472
  ] }),
2544
- o && /* @__PURE__ */ i(_n, {})
2473
+ o && /* @__PURE__ */ i(Ln, {})
2545
2474
  ] });
2546
2475
  }
2547
- const Pn = g(ae, {
2476
+ const Wn = p(re, {
2548
2477
  shouldForwardProp: (t) => !["scrollableContent", "withGutter", "withBottomGutter"].includes(t)
2549
2478
  })(({ theme: t, scrollableContent: e, withGutter: n, withBottomGutter: o }) => ({
2550
2479
  display: "flex",
@@ -2575,63 +2504,62 @@ const Pn = g(ae, {
2575
2504
  }
2576
2505
  }
2577
2506
  }));
2578
- function Gn({
2507
+ function En({
2579
2508
  children: t,
2580
2509
  scrollableContent: e,
2581
2510
  hasFooterAlert: n,
2582
2511
  withGutter: o = !0,
2583
- withBottomGutter: a = !0,
2584
- onScroll: r,
2512
+ withBottomGutter: r = !0,
2513
+ onScroll: a,
2585
2514
  ...l
2586
2515
  }, c) {
2587
- const s = N(), [p, h] = $(null);
2516
+ const s = V(), [d, h] = T(null);
2588
2517
  Lt(
2589
2518
  c,
2590
- () => p,
2591
- [p]
2519
+ () => d,
2520
+ [d]
2592
2521
  );
2593
- const d = nt(
2594
- (u) => {
2595
- const f = Math.abs(u.scrollHeight - u.clientHeight - u.scrollTop) < 1, M = u.scrollTop === 0, b = `1px solid ${s.palette.divider}`;
2596
- u.style.borderTop = M ? "none" : b, u.style.borderBottom = f && !n ? "none" : b;
2522
+ const u = nt(
2523
+ (f) => {
2524
+ const m = Math.abs(f.scrollHeight - f.clientHeight - f.scrollTop) < 1, y = f.scrollTop === 0, b = `1px solid ${s.palette.divider}`;
2525
+ f.style.borderTop = y ? "none" : b, f.style.borderBottom = m && !n ? "none" : b;
2597
2526
  },
2598
2527
  [s.palette.divider, n]
2599
- ), m = nt(
2600
- (u) => {
2601
- d(u.target), r == null || r(u);
2528
+ ), g = nt(
2529
+ (f) => {
2530
+ u(f.target), a == null || a(f);
2602
2531
  },
2603
- [d, r]
2532
+ [u, a]
2604
2533
  );
2605
- return _(() => {
2606
- p && d(p);
2607
- }, [p, d]), _(() => {
2608
- if (!p || typeof ResizeObserver > "u") return;
2609
- const u = new ResizeObserver(() => {
2610
- d(p);
2534
+ return H(() => {
2535
+ d && u(d);
2536
+ }, [d, u]), H(() => {
2537
+ if (!d || typeof ResizeObserver > "u") return;
2538
+ const f = new ResizeObserver(() => {
2539
+ u(d);
2611
2540
  });
2612
- return u.observe(p), () => u.disconnect();
2613
- }, [p, d]), /* @__PURE__ */ i(
2614
- Pn,
2541
+ return f.observe(d), () => f.disconnect();
2542
+ }, [d, u]), /* @__PURE__ */ i(
2543
+ Wn,
2615
2544
  {
2616
2545
  ref: h,
2617
- onScroll: m,
2546
+ onScroll: g,
2618
2547
  scrollableContent: e,
2619
2548
  withGutter: o,
2620
- withBottomGutter: a && o,
2621
- "data-name": "dialog-content",
2549
+ withBottomGutter: r && o,
2622
2550
  ...l,
2623
2551
  children: t
2624
2552
  }
2625
2553
  );
2626
2554
  }
2627
- const jn = T(Gn), Eo = g(jn, {
2555
+ const Hn = L(En), Fo = p(Hn, {
2628
2556
  shouldForwardProp: (t) => t !== "withAlert"
2629
2557
  })(({ withAlert: t, theme: e }) => ({
2630
2558
  padding: `${e.spacing(0, 2)} !important`,
2631
2559
  ...t && {
2632
2560
  paddingBottom: `${e.spacing(3)} !important`
2633
2561
  }
2634
- })), Vn = g(Ct)(({ theme: t }) => ({
2562
+ })), _n = p(Ct)(({ theme: t }) => ({
2635
2563
  minHeight: "auto",
2636
2564
  padding: 0,
2637
2565
  backgroundColor: "transparent",
@@ -2650,9 +2578,9 @@ function Rt({
2650
2578
  severity: e = "neutral",
2651
2579
  ...n
2652
2580
  }) {
2653
- return /* @__PURE__ */ i(Vn, { severity: e, ...n, "data-name": "dialog-alert", children: t });
2581
+ return /* @__PURE__ */ i(_n, { severity: e, ...n, children: t });
2654
2582
  }
2655
- const Nn = g(v, {
2583
+ const Pn = p(v, {
2656
2584
  shouldForwardProp: (t) => !["dark", "hasChildren"].includes(t)
2657
2585
  })(({ dark: t, hasChildren: e, theme: n }) => ({
2658
2586
  flex: "0 0 auto",
@@ -2674,14 +2602,14 @@ const Nn = g(v, {
2674
2602
  }
2675
2603
  }
2676
2604
  }
2677
- })), Un = g(v)(() => ({
2605
+ })), Gn = p(v)(() => ({
2678
2606
  display: "flex",
2679
2607
  alignItems: "center",
2680
2608
  justifyContent: "space-between",
2681
2609
  "& > div:empty": {
2682
2610
  padding: 0
2683
2611
  }
2684
- })), Yn = g(v, {
2612
+ })), jn = p(v, {
2685
2613
  shouldForwardProp: (t) => t !== "hasAlert"
2686
2614
  })(({ hasAlert: t, theme: e }) => ({
2687
2615
  display: "flex",
@@ -2689,7 +2617,7 @@ const Nn = g(v, {
2689
2617
  gap: e.spacing(1),
2690
2618
  padding: e.spacing(2),
2691
2619
  paddingTop: t ? 0 : e.spacing(2)
2692
- })), Ft = g(re, {
2620
+ })), Ft = p(ae, {
2693
2621
  shouldForwardProp: (t) => t !== "hasAlert"
2694
2622
  })(({ hasAlert: t, theme: e }) => ({
2695
2623
  gap: e.spacing(1),
@@ -2699,34 +2627,33 @@ const Nn = g(v, {
2699
2627
  ".MuiButton-root + .MuiButton-root": {
2700
2628
  marginLeft: 0
2701
2629
  }
2702
- })), qn = g(j)(() => ({
2630
+ })), Vn = p(G)(() => ({
2703
2631
  // To prevent double border in the top when content is scrollable
2704
2632
  marginTop: "-1px"
2705
2633
  }));
2706
- function Ho({
2634
+ function Oo({
2707
2635
  children: t,
2708
2636
  secondaryActions: e,
2709
2637
  alertContent: n,
2710
2638
  alertProps: o,
2711
- dark: a,
2712
- topContent: r,
2639
+ dark: r,
2640
+ topContent: a,
2713
2641
  ...l
2714
2642
  }) {
2715
- return /* @__PURE__ */ y(V, { children: [
2716
- r,
2717
- !!n && /* @__PURE__ */ i(qn, {}),
2718
- /* @__PURE__ */ y(
2719
- Nn,
2643
+ return /* @__PURE__ */ x(j, { children: [
2644
+ a,
2645
+ !!n && /* @__PURE__ */ i(Vn, {}),
2646
+ /* @__PURE__ */ x(
2647
+ Pn,
2720
2648
  {
2721
2649
  ...l,
2722
- dark: a,
2723
- "data-theme": a ? "dark" : "light",
2724
- "data-name": "dialog-footer",
2650
+ dark: r,
2651
+ "data-theme": r ? "dark" : "light",
2725
2652
  hasChildren: !!t,
2726
2653
  children: [
2727
2654
  !!n && /* @__PURE__ */ i(v, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ i(Rt, { ...o, children: n }) }),
2728
- /* @__PURE__ */ y(Un, { children: [
2729
- /* @__PURE__ */ i(Yn, { hasAlert: !!n, children: e }),
2655
+ /* @__PURE__ */ x(Gn, { children: [
2656
+ /* @__PURE__ */ i(jn, { hasAlert: !!n, children: e }),
2730
2657
  /* @__PURE__ */ i(Ft, { hasAlert: !!n, children: t })
2731
2658
  ] })
2732
2659
  ]
@@ -2734,7 +2661,7 @@ function Ho({
2734
2661
  )
2735
2662
  ] });
2736
2663
  }
2737
- const zn = g(v)(({ theme: t }) => ({
2664
+ const Nn = p(v)(({ theme: t }) => ({
2738
2665
  position: "absolute",
2739
2666
  width: "100%",
2740
2667
  zIndex: 100,
@@ -2747,9 +2674,9 @@ const zn = g(v)(({ theme: t }) => ({
2747
2674
  boxSizing: "border-box",
2748
2675
  alignItems: "flex-end",
2749
2676
  background: t.palette.white[60]
2750
- })), Zn = g("div")(() => ({
2677
+ })), Un = p("div")(() => ({
2751
2678
  width: "100%"
2752
- })), Jn = g(v)(({ theme: t }) => ({
2679
+ })), Yn = p(v)(({ theme: t }) => ({
2753
2680
  width: "100%",
2754
2681
  padding: t.spacing(1.5, 2, 2),
2755
2682
  backgroundColor: t.palette.background.paper,
@@ -2759,38 +2686,37 @@ const zn = g(v)(({ theme: t }) => ({
2759
2686
  marginTop: t.spacing(1)
2760
2687
  }
2761
2688
  }));
2762
- function _o({
2689
+ function Lo({
2763
2690
  children: t,
2764
2691
  onClickAway: e,
2765
2692
  actions: n,
2766
2693
  severity: o = "warning",
2767
- opened: a,
2768
- "data-testid": r,
2694
+ opened: r,
2695
+ "data-testid": a,
2769
2696
  "aria-label": l,
2770
2697
  ...c
2771
2698
  }) {
2772
- const s = Y(null), p = N();
2699
+ const s = U(null), d = V();
2773
2700
  return /* @__PURE__ */ i(
2774
- zn,
2701
+ Nn,
2775
2702
  {
2776
2703
  ref: s,
2777
- "data-testid": r,
2704
+ "data-testid": a,
2778
2705
  "aria-label": l,
2779
2706
  role: "presentation",
2780
- "data-name": "dialog-confirmation",
2781
2707
  children: /* @__PURE__ */ i(xe, { onClickAway: () => {
2782
2708
  e && e();
2783
2709
  }, children: /* @__PURE__ */ i(
2784
2710
  xt,
2785
2711
  {
2786
2712
  direction: "up",
2787
- in: a,
2713
+ in: r,
2788
2714
  container: s.current,
2789
2715
  mountOnEnter: !0,
2790
2716
  unmountOnExit: !0,
2791
- easing: p.transitions.easing.easeOut,
2717
+ easing: d.transitions.easing.easeOut,
2792
2718
  timeout: 350,
2793
- children: /* @__PURE__ */ i(Zn, { children: /* @__PURE__ */ y(Jn, { children: [
2719
+ children: /* @__PURE__ */ i(Un, { children: /* @__PURE__ */ x(Yn, { children: [
2794
2720
  /* @__PURE__ */ i(Rt, { severity: o, ...c, children: t }),
2795
2721
  /* @__PURE__ */ i(Ft, { children: n })
2796
2722
  ] }) })
@@ -2799,7 +2725,7 @@ function _o({
2799
2725
  }
2800
2726
  );
2801
2727
  }
2802
- const Xn = g(v)(({ theme: t }) => ({
2728
+ const qn = p(v)(({ theme: t }) => ({
2803
2729
  display: "flex",
2804
2730
  alignItems: "center",
2805
2731
  justifyContent: "center",
@@ -2808,7 +2734,7 @@ const Xn = g(v)(({ theme: t }) => ({
2808
2734
  "& > div": {
2809
2735
  flex: 1
2810
2736
  }
2811
- })), Kn = g(v)(({ theme: t }) => ({
2737
+ })), zn = p(v)(({ theme: t }) => ({
2812
2738
  display: "flex",
2813
2739
  flex: 1,
2814
2740
  flexDirection: "column",
@@ -2836,7 +2762,7 @@ const Xn = g(v)(({ theme: t }) => ({
2836
2762
  content: "none"
2837
2763
  }
2838
2764
  }));
2839
- function Qn({
2765
+ function Zn({
2840
2766
  theme: t,
2841
2767
  completed: e,
2842
2768
  current: n
@@ -2854,7 +2780,7 @@ function Qn({
2854
2780
  color: t.palette.text.secondary
2855
2781
  };
2856
2782
  }
2857
- const to = g("span", {
2783
+ const Jn = p("span", {
2858
2784
  shouldForwardProp: (t) => t !== "completed" && t !== "current"
2859
2785
  })(({ theme: t, completed: e, current: n }) => ({
2860
2786
  display: "flex",
@@ -2866,66 +2792,66 @@ const to = g("span", {
2866
2792
  borderRadius: "50%",
2867
2793
  border: `${t.spacing(0.25)} solid currentColor`,
2868
2794
  ...t.typography.caption,
2869
- ...Qn({ theme: t, completed: e, current: n })
2795
+ ...Zn({ theme: t, completed: e, current: n })
2870
2796
  }));
2871
- function Po({
2797
+ function Wo({
2872
2798
  currentStep: t,
2873
2799
  stepsLabels: e,
2874
2800
  ...n
2875
2801
  }) {
2876
- return /* @__PURE__ */ i(Xn, { ...n, "data-name": "dialog-stepper", children: /* @__PURE__ */ i(v, { sx: { display: "flex" }, children: e.map((o, a) => {
2877
- const r = a + 1, l = r === t, c = r < t;
2878
- return /* @__PURE__ */ y(
2879
- Kn,
2802
+ return /* @__PURE__ */ i(qn, { ...n, children: /* @__PURE__ */ i(v, { sx: { display: "flex" }, children: e.map((o, r) => {
2803
+ const a = r + 1, l = a === t, c = a < t;
2804
+ return /* @__PURE__ */ x(
2805
+ zn,
2880
2806
  {
2881
2807
  "data-state": c ? "completed" : l ? "current" : "uncompleted",
2882
2808
  children: [
2883
- /* @__PURE__ */ i(to, { completed: c, current: l, children: c ? /* @__PURE__ */ i(ge, { fontSize: "small", "aria-label": "Completed step" }) : r }),
2884
- /* @__PURE__ */ i(S, { variant: "caption", component: "div", color: c ? "success.main" : l ? "textPrimary" : "textSecondary", children: o })
2809
+ /* @__PURE__ */ i(Jn, { completed: c, current: l, children: c ? /* @__PURE__ */ i(ge, { fontSize: "small", "aria-label": "Completed step" }) : a }),
2810
+ /* @__PURE__ */ i(B, { variant: "caption", component: "div", color: c ? "success.main" : l ? "textPrimary" : "textSecondary", children: o })
2885
2811
  ]
2886
2812
  },
2887
- a
2813
+ r
2888
2814
  );
2889
2815
  }) }) });
2890
2816
  }
2891
2817
  export {
2892
- wo as AccordionGroup,
2818
+ Do as AccordionGroup,
2893
2819
  Ct as Alert,
2894
- To as AppBar,
2895
- Do as Autocomplete,
2896
- Bo as Avatar,
2897
- bo as Button,
2898
- Ao as CreatableAutocomplete,
2899
- at as DatePicker,
2900
- $o as DateRangePicker,
2901
- Fo as DateTimePicker,
2902
- Lo as Dialog,
2820
+ Io as AppBar,
2821
+ Mo as Autocomplete,
2822
+ Ao as Avatar,
2823
+ go as Button,
2824
+ Co as CreatableAutocomplete,
2825
+ rt as DatePicker,
2826
+ wo as DateRangePicker,
2827
+ So as DateTimePicker,
2828
+ $o as Dialog,
2903
2829
  Ft as DialogActions,
2904
2830
  Rt as DialogAlert,
2905
- _o as DialogConfirmation,
2906
- jn as DialogContent,
2907
- Eo as DialogContentPadded,
2908
- Ho as DialogFooter,
2909
- Wo as DialogHeader,
2831
+ Lo as DialogConfirmation,
2832
+ Hn as DialogContent,
2833
+ Fo as DialogContentPadded,
2834
+ Oo as DialogFooter,
2835
+ Ro as DialogHeader,
2910
2836
  dt as DialogPaper,
2911
- Po as DialogStepper,
2837
+ Wo as DialogStepper,
2912
2838
  Le as IconButton,
2913
- K as LabelWithIndicator,
2914
- Mo as Menu,
2839
+ X as LabelWithIndicator,
2840
+ ho as Menu,
2841
+ Dt as MenuFilter,
2915
2842
  vt as MenuItem,
2916
- kt as MenuItemFilter,
2917
- Co as MenuList,
2918
- Io as MultipleAutocomplete,
2919
- vo as MultipleSelectField,
2920
- xo as PasswordField,
2843
+ bo as MenuList,
2844
+ vo as MultipleAutocomplete,
2845
+ xo as MultipleSelectField,
2846
+ fo as PasswordField,
2921
2847
  Te as SelectField,
2922
- So as Snackbar,
2923
- Vo as TablePaginationActions,
2924
- Ro as TimePicker,
2925
- yo as ToggleButtonGroup,
2926
- Oo as TooltipData,
2927
- S as Typography,
2928
- ko as UploadField,
2929
- Xe as UploadFieldBase,
2848
+ ko as Snackbar,
2849
+ _o as TablePaginationActions,
2850
+ Bo as TimePicker,
2851
+ mo as ToggleButtonGroup,
2852
+ To as TooltipData,
2853
+ B as Typography,
2854
+ yo as UploadField,
2855
+ ze as UploadFieldBase,
2930
2856
  st as dialogDimensionsBySize
2931
2857
  };