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