@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.
- package/CHANGELOG.md +0 -3
- package/dist/{Alert-BbMbtaix.cjs → Alert-B2JgFj6Y.cjs} +1 -1
- package/dist/{Alert-1b84B18a.js → Alert-Cn0nq6aq.js} +1 -1
- package/dist/MenuItem-CuEx97RN.cjs +1 -0
- package/dist/{MenuItem-Cd34y6F3.js → MenuItem-vbfSlKyV.js} +15 -41
- package/dist/TablePaginationActions-7wkkiCXh.cjs +9 -0
- package/dist/{TablePaginationActions-EDxBCxpG.js → TablePaginationActions-EC4ynZRa.js} +0 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +889 -963
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.js +3 -3
- package/dist/types/components/atoms/Button.d.ts.map +1 -1
- package/dist/types/components/atoms/IconButton.d.ts.map +1 -1
- package/dist/types/components/atoms/Typography.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/Menu.d.ts +1 -2
- package/dist/types/components/molecules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuFilter.d.ts +8 -0
- package/dist/types/components/molecules/Menu/MenuFilter.d.ts.map +1 -0
- package/dist/types/components/molecules/Menu/MenuItem.d.ts +1 -2
- package/dist/types/components/molecules/Menu/MenuItem.d.ts.map +1 -1
- package/dist/types/components/molecules/Menu/MenuList.d.ts +1 -2
- 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/DatePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DatePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DateRangePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/DateTimePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/PickersDay.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts +1 -1
- package/dist/types/components/organisms/DatePickers/TimePicker.d.ts.map +1 -1
- package/dist/types/components/organisms/DatePickers/types.d.ts +0 -2
- package/dist/types/components/organisms/DatePickers/types.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/Dialog.d.ts +1 -1
- package/dist/types/components/organisms/Dialog/Dialog.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogContent.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogFooter.d.ts.map +1 -1
- package/dist/types/components/organisms/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/widgets/index.cjs +1 -1
- package/dist/widgets/index.js +2 -2
- package/package.json +1 -1
- package/dist/MenuItem-Dbss-WG1.cjs +0 -1
- package/dist/TablePaginationActions-V8ultBUz.cjs +0 -9
- package/dist/types/components/molecules/Menu/MenuItemFilter.d.ts +0 -9
- package/dist/types/components/molecules/Menu/MenuItemFilter.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
|
|
4
|
-
import { T as
|
|
5
|
-
import { a as
|
|
6
|
-
import { useIntl as
|
|
7
|
-
import { VisibilityOffOutlined as ce, VisibilityOutlined as se, Cancel as yt, AddCircleOutlineOutlined as de, CloseOutlined as Mt, MenuOutlined as ue, HelpOutline as
|
|
8
|
-
import { A as Ct } from "../Alert-
|
|
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-
|
|
11
|
-
import { A as
|
|
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 =
|
|
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 =
|
|
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:
|
|
36
|
-
loadingPosition:
|
|
35
|
+
endIcon: r,
|
|
36
|
+
loadingPosition: a,
|
|
37
37
|
...l
|
|
38
38
|
}, c) {
|
|
39
|
-
const s = /* @__PURE__ */ i(
|
|
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,
|
|
43
|
-
if (!
|
|
44
|
-
return e &&
|
|
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:
|
|
51
|
-
endIcon:
|
|
50
|
+
startIcon: u("start"),
|
|
51
|
+
endIcon: u("end"),
|
|
52
52
|
...l,
|
|
53
|
-
role: "button",
|
|
54
53
|
ref: c,
|
|
55
|
-
children: /* @__PURE__ */ i(
|
|
54
|
+
children: /* @__PURE__ */ i(B, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: h() })
|
|
56
55
|
}
|
|
57
56
|
);
|
|
58
57
|
}
|
|
59
|
-
const
|
|
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
|
-
})),
|
|
62
|
+
})), De = p(B)(({ theme: t }) => ({
|
|
64
63
|
".Mui-disabled &": {
|
|
65
64
|
color: t.palette.text.disabled
|
|
66
65
|
}
|
|
67
|
-
})),
|
|
66
|
+
})), Ae = p(v)(({ theme: t }) => ({
|
|
68
67
|
display: "flex",
|
|
69
68
|
svg: {
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
72
|
-
fontSize:
|
|
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
|
|
80
|
+
function X({
|
|
82
81
|
label: t,
|
|
83
82
|
type: e,
|
|
84
83
|
icon: n,
|
|
85
84
|
inheritSize: o
|
|
86
85
|
}) {
|
|
87
|
-
return /* @__PURE__ */
|
|
86
|
+
return /* @__PURE__ */ x(ve, { children: [
|
|
88
87
|
t,
|
|
89
88
|
e && /* @__PURE__ */ i(
|
|
90
|
-
|
|
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(
|
|
98
|
+
n && /* @__PURE__ */ i(Ae, { children: n })
|
|
100
99
|
] });
|
|
101
100
|
}
|
|
102
|
-
function
|
|
103
|
-
const
|
|
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(
|
|
114
|
-
|
|
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:
|
|
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
|
|
125
|
+
const fo = L(ke), N = {};
|
|
127
126
|
function Ie(t = "$lodash$") {
|
|
128
|
-
|
|
129
|
-
const e = ++
|
|
127
|
+
N[t] || (N[t] = 0);
|
|
128
|
+
const e = ++N[t];
|
|
130
129
|
return t === "$lodash$" ? `${e}` : `${t}${e}`;
|
|
131
130
|
}
|
|
132
|
-
const we =
|
|
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 =
|
|
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:
|
|
157
|
-
inputProps:
|
|
155
|
+
menuProps: r,
|
|
156
|
+
inputProps: a,
|
|
158
157
|
labelId: l,
|
|
159
158
|
label: c,
|
|
160
159
|
labelSecondary: s,
|
|
161
|
-
helperText:
|
|
160
|
+
helperText: d,
|
|
162
161
|
name: h,
|
|
163
|
-
error:
|
|
164
|
-
focused:
|
|
165
|
-
disabled:
|
|
166
|
-
fullWidth:
|
|
167
|
-
required:
|
|
162
|
+
error: u,
|
|
163
|
+
focused: g,
|
|
164
|
+
disabled: f,
|
|
165
|
+
fullWidth: m,
|
|
166
|
+
required: y,
|
|
168
167
|
"aria-label": b,
|
|
169
|
-
...
|
|
170
|
-
},
|
|
171
|
-
const
|
|
172
|
-
return /* @__PURE__ */
|
|
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:
|
|
177
|
-
focused:
|
|
178
|
-
disabled:
|
|
179
|
-
fullWidth:
|
|
180
|
-
required:
|
|
175
|
+
error: u,
|
|
176
|
+
focused: g,
|
|
177
|
+
disabled: f,
|
|
178
|
+
fullWidth: m,
|
|
179
|
+
required: y,
|
|
181
180
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
c && /* @__PURE__ */ i(Ht, { shrink: !0, id:
|
|
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__ */
|
|
185
|
+
/* @__PURE__ */ x(
|
|
187
186
|
we,
|
|
188
187
|
{
|
|
189
|
-
...
|
|
190
|
-
labelId:
|
|
188
|
+
...D,
|
|
189
|
+
labelId: k,
|
|
191
190
|
name: h,
|
|
192
|
-
ref:
|
|
191
|
+
ref: w,
|
|
193
192
|
size: n,
|
|
194
|
-
fullWidth:
|
|
193
|
+
fullWidth: m,
|
|
195
194
|
displayEmpty: o ?? !!e,
|
|
196
195
|
inputProps: {
|
|
197
|
-
...
|
|
196
|
+
...a,
|
|
198
197
|
"aria-label": b
|
|
199
198
|
},
|
|
200
199
|
MenuProps: {
|
|
201
|
-
...
|
|
200
|
+
...r,
|
|
202
201
|
PopoverClasses: {
|
|
203
|
-
paper:
|
|
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
|
-
|
|
215
|
+
B,
|
|
217
216
|
{
|
|
218
|
-
variant:
|
|
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
|
-
|
|
227
|
+
d && /* @__PURE__ */ i(ht, { "aria-label": `${h}-helper`, children: d })
|
|
229
228
|
]
|
|
230
229
|
}
|
|
231
230
|
);
|
|
232
231
|
}
|
|
233
|
-
const Te =
|
|
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
|
|
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 =
|
|
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 =
|
|
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:
|
|
346
|
-
color:
|
|
344
|
+
variant: r = "icon",
|
|
345
|
+
color: a = "default",
|
|
347
346
|
sx: l,
|
|
348
347
|
className: c,
|
|
349
348
|
loading: s,
|
|
350
|
-
disabled:
|
|
349
|
+
disabled: d,
|
|
351
350
|
active: h,
|
|
352
|
-
...
|
|
353
|
-
},
|
|
354
|
-
return /* @__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
|
-
...
|
|
364
|
-
ref:
|
|
362
|
+
...u,
|
|
363
|
+
ref: g,
|
|
365
364
|
size: o,
|
|
366
|
-
variant:
|
|
367
|
-
color:
|
|
365
|
+
variant: r,
|
|
366
|
+
color: a,
|
|
368
367
|
active: h,
|
|
369
|
-
disabled:
|
|
370
|
-
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
422
|
+
const He = p(vt)(() => ({
|
|
454
423
|
marginTop: "0 !important"
|
|
455
|
-
})),
|
|
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
|
|
437
|
+
function Dt({
|
|
469
438
|
areAllSelected: t,
|
|
470
439
|
areAnySelected: e,
|
|
471
440
|
selectAll: n,
|
|
472
|
-
selectAllDisabled: o
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
456
|
+
q,
|
|
489
457
|
{
|
|
490
458
|
checked: t,
|
|
491
459
|
indeterminate: e && !t,
|
|
492
460
|
disabled: o
|
|
493
461
|
}
|
|
494
462
|
),
|
|
495
|
-
|
|
463
|
+
a.formatMessage({ id: "c4r.form.selectAll" })
|
|
496
464
|
]
|
|
497
465
|
}
|
|
498
466
|
) });
|
|
499
467
|
}
|
|
500
|
-
|
|
501
|
-
function Ve({
|
|
468
|
+
function Pe({
|
|
502
469
|
selectedOptions: t,
|
|
503
470
|
options: e,
|
|
504
471
|
onChange: n
|
|
505
472
|
}) {
|
|
506
|
-
const [o,
|
|
507
|
-
return
|
|
508
|
-
o !== t &&
|
|
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:
|
|
477
|
+
areAllSelected: a,
|
|
511
478
|
areAnySelected: l,
|
|
512
479
|
currentOptions: o,
|
|
513
480
|
handleChange: (h) => {
|
|
514
481
|
const {
|
|
515
|
-
target: { value:
|
|
516
|
-
} = h,
|
|
517
|
-
|
|
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:
|
|
487
|
+
const h = e == null ? void 0 : e.filter(({ disabled: u }) => !u).map(({ value: u }) => u);
|
|
521
488
|
h && (h.every(
|
|
522
|
-
(
|
|
523
|
-
) ? (
|
|
489
|
+
(g) => o.includes(g)
|
|
490
|
+
) ? (r([]), n([])) : (r(h), n(h)));
|
|
524
491
|
},
|
|
525
492
|
unselectAll: () => {
|
|
526
|
-
|
|
493
|
+
r([]), n([]);
|
|
527
494
|
}
|
|
528
495
|
};
|
|
529
496
|
}
|
|
530
|
-
const
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
521
|
+
})), Ve = [], Ne = () => {
|
|
555
522
|
};
|
|
556
|
-
function
|
|
557
|
-
options: t =
|
|
523
|
+
function Ue({
|
|
524
|
+
options: t = Ve,
|
|
558
525
|
selectedOptions: e,
|
|
559
526
|
size: n = "small",
|
|
560
527
|
placeholder: o,
|
|
561
|
-
showCounter:
|
|
562
|
-
showFilters:
|
|
563
|
-
onChange: l =
|
|
528
|
+
showCounter: r,
|
|
529
|
+
showFilters: a = !0,
|
|
530
|
+
onChange: l = Ne,
|
|
564
531
|
selectAllDisabled: c,
|
|
565
532
|
tooltipPlacement: s,
|
|
566
|
-
variant:
|
|
533
|
+
variant: d,
|
|
567
534
|
...h
|
|
568
|
-
},
|
|
535
|
+
}, u) {
|
|
569
536
|
const {
|
|
570
|
-
areAllSelected:
|
|
571
|
-
areAnySelected:
|
|
572
|
-
currentOptions:
|
|
573
|
-
handleChange:
|
|
537
|
+
areAllSelected: g,
|
|
538
|
+
areAnySelected: f,
|
|
539
|
+
currentOptions: m,
|
|
540
|
+
handleChange: y,
|
|
574
541
|
selectAll: b,
|
|
575
|
-
unselectAll:
|
|
576
|
-
} =
|
|
542
|
+
unselectAll: D
|
|
543
|
+
} = Pe({
|
|
577
544
|
options: t,
|
|
578
545
|
selectedOptions: e,
|
|
579
546
|
onChange: l
|
|
580
|
-
}),
|
|
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
|
-
})}`,
|
|
583
|
-
|
|
549
|
+
})}`, F = pt(() => g ? /* @__PURE__ */ i(
|
|
550
|
+
B,
|
|
584
551
|
{
|
|
585
552
|
component: "span",
|
|
586
|
-
variant:
|
|
553
|
+
variant: w ? "body2" : "body1",
|
|
587
554
|
color: "textPrimary",
|
|
588
|
-
ml:
|
|
589
|
-
children:
|
|
555
|
+
ml: A,
|
|
556
|
+
children: k.formatMessage({ id: "c4r.form.allSelected" })
|
|
590
557
|
}
|
|
591
|
-
) :
|
|
592
|
-
|
|
558
|
+
) : f ? /* @__PURE__ */ i(
|
|
559
|
+
B,
|
|
593
560
|
{
|
|
594
561
|
component: "span",
|
|
595
|
-
variant:
|
|
562
|
+
variant: w ? "body2" : "body1",
|
|
596
563
|
color: "textPrimary",
|
|
597
|
-
ml:
|
|
598
|
-
children:
|
|
564
|
+
ml: A,
|
|
565
|
+
children: r && m.length > 1 ? I : m.join(", ")
|
|
599
566
|
}
|
|
600
567
|
) : /* @__PURE__ */ i(
|
|
601
|
-
|
|
568
|
+
B,
|
|
602
569
|
{
|
|
603
570
|
component: "span",
|
|
604
|
-
variant:
|
|
571
|
+
variant: w ? "body2" : "body1",
|
|
605
572
|
color: "text.hint",
|
|
606
|
-
ml:
|
|
607
|
-
children: o ??
|
|
573
|
+
ml: A,
|
|
574
|
+
children: o ?? k.formatMessage({ id: "c4r.form.noneSelected" })
|
|
608
575
|
}
|
|
609
576
|
), [
|
|
610
|
-
|
|
611
|
-
u,
|
|
612
|
-
B,
|
|
577
|
+
g,
|
|
613
578
|
f,
|
|
614
|
-
|
|
579
|
+
I,
|
|
580
|
+
m,
|
|
615
581
|
k,
|
|
616
|
-
|
|
582
|
+
w,
|
|
583
|
+
A,
|
|
617
584
|
o,
|
|
618
|
-
|
|
585
|
+
r
|
|
619
586
|
]);
|
|
620
|
-
return /* @__PURE__ */
|
|
587
|
+
return /* @__PURE__ */ x(
|
|
621
588
|
Te,
|
|
622
589
|
{
|
|
623
590
|
...h,
|
|
624
|
-
ref:
|
|
591
|
+
ref: u,
|
|
625
592
|
multiple: !0,
|
|
626
593
|
displayEmpty: !0,
|
|
627
594
|
placeholder: o,
|
|
628
|
-
value:
|
|
629
|
-
renderValue: () =>
|
|
630
|
-
onChange:
|
|
595
|
+
value: m,
|
|
596
|
+
renderValue: () => F,
|
|
597
|
+
onChange: y,
|
|
631
598
|
size: n,
|
|
632
|
-
variant:
|
|
633
|
-
endAdornment:
|
|
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
|
-
|
|
645
|
-
|
|
611
|
+
a && /* @__PURE__ */ i(
|
|
612
|
+
Dt,
|
|
646
613
|
{
|
|
647
|
-
areAllSelected:
|
|
648
|
-
areAnySelected:
|
|
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((
|
|
654
|
-
const
|
|
655
|
-
|
|
620
|
+
t == null ? void 0 : t.map((C) => {
|
|
621
|
+
const S = /* @__PURE__ */ x(
|
|
622
|
+
Ge,
|
|
656
623
|
{
|
|
657
|
-
value:
|
|
658
|
-
disabled:
|
|
624
|
+
value: C.value,
|
|
625
|
+
disabled: C.disabled,
|
|
659
626
|
tabIndex: 0,
|
|
660
627
|
children: [
|
|
661
628
|
/* @__PURE__ */ i(
|
|
662
|
-
|
|
629
|
+
q,
|
|
663
630
|
{
|
|
664
|
-
disabled:
|
|
665
|
-
checked:
|
|
631
|
+
disabled: C.disabled,
|
|
632
|
+
checked: m.includes(C.value)
|
|
666
633
|
}
|
|
667
634
|
),
|
|
668
|
-
/* @__PURE__ */ i(bt, { primary:
|
|
635
|
+
/* @__PURE__ */ i(bt, { primary: C.label })
|
|
669
636
|
]
|
|
670
637
|
},
|
|
671
|
-
|
|
638
|
+
C.value
|
|
672
639
|
);
|
|
673
|
-
return
|
|
674
|
-
|
|
640
|
+
return C.tooltip ? /* @__PURE__ */ i(
|
|
641
|
+
W,
|
|
675
642
|
{
|
|
676
|
-
title:
|
|
643
|
+
title: C.tooltip,
|
|
677
644
|
placement: s,
|
|
678
|
-
children:
|
|
645
|
+
children: S
|
|
679
646
|
},
|
|
680
|
-
|
|
681
|
-
) :
|
|
647
|
+
C.value
|
|
648
|
+
) : S;
|
|
682
649
|
})
|
|
683
650
|
]
|
|
684
651
|
}
|
|
685
652
|
);
|
|
686
653
|
}
|
|
687
|
-
const
|
|
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
|
|
682
|
+
function qe({
|
|
716
683
|
buttonText: t,
|
|
717
684
|
hasFiles: e,
|
|
718
685
|
size: n,
|
|
719
686
|
error: o,
|
|
720
|
-
disabled:
|
|
721
|
-
handleReset:
|
|
687
|
+
disabled: r,
|
|
688
|
+
handleReset: a,
|
|
722
689
|
handleOpen: l,
|
|
723
690
|
inProgress: c
|
|
724
691
|
}) {
|
|
725
|
-
return /* @__PURE__ */ i(
|
|
726
|
-
|
|
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:
|
|
695
|
+
onClick: a,
|
|
729
696
|
size: n,
|
|
730
697
|
"aria-label": "delete",
|
|
731
|
-
disabled:
|
|
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:
|
|
708
|
+
disabled: r,
|
|
742
709
|
children: t
|
|
743
710
|
}
|
|
744
711
|
) });
|
|
745
712
|
}
|
|
746
|
-
function
|
|
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:
|
|
754
|
-
error:
|
|
720
|
+
dragOver: r,
|
|
721
|
+
error: a,
|
|
755
722
|
placeholder: l,
|
|
756
723
|
focused: c,
|
|
757
724
|
buttonText: s = "Browse",
|
|
758
|
-
inProgress:
|
|
725
|
+
inProgress: d,
|
|
759
726
|
InputProps: h,
|
|
760
|
-
size:
|
|
761
|
-
hasFiles:
|
|
762
|
-
cursor:
|
|
763
|
-
...
|
|
727
|
+
size: u = "small",
|
|
728
|
+
hasFiles: g,
|
|
729
|
+
cursor: f = "pointer",
|
|
730
|
+
...m
|
|
764
731
|
}) {
|
|
765
732
|
return /* @__PURE__ */ i(
|
|
766
|
-
|
|
733
|
+
Ye,
|
|
767
734
|
{
|
|
768
|
-
...
|
|
769
|
-
size:
|
|
770
|
-
error:
|
|
735
|
+
...m,
|
|
736
|
+
size: u,
|
|
737
|
+
error: a,
|
|
771
738
|
placeholder: l,
|
|
772
|
-
focused: c ??
|
|
773
|
-
cursor:
|
|
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
|
-
|
|
748
|
+
qe,
|
|
782
749
|
{
|
|
783
750
|
buttonText: s,
|
|
784
|
-
hasFiles:
|
|
785
|
-
size:
|
|
786
|
-
error:
|
|
787
|
-
disabled: !!
|
|
751
|
+
hasFiles: g,
|
|
752
|
+
size: u,
|
|
753
|
+
error: a,
|
|
754
|
+
disabled: !!r,
|
|
788
755
|
handleReset: n,
|
|
789
756
|
handleOpen: o,
|
|
790
|
-
inProgress:
|
|
757
|
+
inProgress: d
|
|
791
758
|
}
|
|
792
759
|
)
|
|
793
760
|
}
|
|
794
761
|
}
|
|
795
762
|
);
|
|
796
763
|
}
|
|
797
|
-
function
|
|
764
|
+
function Ze({
|
|
798
765
|
onChange: t,
|
|
799
766
|
files: e,
|
|
800
767
|
multiple: n,
|
|
801
768
|
placeholder: o,
|
|
802
|
-
uploadInputRef:
|
|
769
|
+
uploadInputRef: r
|
|
803
770
|
}) {
|
|
804
|
-
const
|
|
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
|
|
814
|
-
var
|
|
815
|
-
(
|
|
816
|
-
},
|
|
817
|
-
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
},
|
|
821
|
-
|
|
822
|
-
const
|
|
823
|
-
t == null || t(
|
|
824
|
-
},
|
|
825
|
-
const
|
|
826
|
-
for (const
|
|
827
|
-
if (
|
|
828
|
-
const
|
|
829
|
-
|
|
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
|
|
832
|
-
}, b = (
|
|
833
|
-
const
|
|
834
|
-
t == null || t(
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
},
|
|
838
|
-
const
|
|
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
|
-
),
|
|
808
|
+
), k = l.formatMessage(
|
|
842
809
|
{ id: "c4r.form.dragActivePlaceholder" },
|
|
843
810
|
{ count: n ? 0 : 1 }
|
|
844
811
|
);
|
|
845
|
-
let
|
|
846
|
-
return
|
|
847
|
-
}, [
|
|
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:
|
|
851
|
-
dragOver:
|
|
817
|
+
getPlaceholder: w,
|
|
818
|
+
dragOver: d,
|
|
852
819
|
inputEvents: {
|
|
853
|
-
onDragOver:
|
|
854
|
-
onDragLeave:
|
|
855
|
-
onDrop:
|
|
856
|
-
onClick:
|
|
820
|
+
onDragOver: g,
|
|
821
|
+
onDragLeave: f,
|
|
822
|
+
onDrop: m,
|
|
823
|
+
onClick: u
|
|
857
824
|
},
|
|
858
825
|
handleFiles: b,
|
|
859
|
-
handleReset:
|
|
826
|
+
handleReset: D
|
|
860
827
|
};
|
|
861
828
|
}
|
|
862
|
-
const
|
|
863
|
-
function
|
|
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:
|
|
869
|
-
onChange:
|
|
835
|
+
inProgress: r,
|
|
836
|
+
onChange: a,
|
|
870
837
|
multiple: l,
|
|
871
838
|
placeholder: c,
|
|
872
839
|
error: s,
|
|
873
|
-
focused:
|
|
840
|
+
focused: d,
|
|
874
841
|
nativeInputProps: h,
|
|
875
|
-
...
|
|
842
|
+
...u
|
|
876
843
|
}) {
|
|
877
|
-
const
|
|
878
|
-
filesText:
|
|
879
|
-
getPlaceholder:
|
|
844
|
+
const g = n ?? Je, f = U(null), {
|
|
845
|
+
filesText: m,
|
|
846
|
+
getPlaceholder: y,
|
|
880
847
|
dragOver: b,
|
|
881
|
-
inputEvents:
|
|
882
|
-
handleFiles:
|
|
883
|
-
handleReset:
|
|
884
|
-
} =
|
|
885
|
-
uploadInputRef:
|
|
848
|
+
inputEvents: D,
|
|
849
|
+
handleFiles: w,
|
|
850
|
+
handleReset: A
|
|
851
|
+
} = Ze({
|
|
852
|
+
uploadInputRef: f,
|
|
886
853
|
files: o,
|
|
887
|
-
onChange:
|
|
854
|
+
onChange: a,
|
|
888
855
|
multiple: l,
|
|
889
856
|
placeholder: c
|
|
890
857
|
});
|
|
891
|
-
return /* @__PURE__ */
|
|
858
|
+
return /* @__PURE__ */ x(j, { children: [
|
|
892
859
|
/* @__PURE__ */ i(
|
|
893
|
-
|
|
860
|
+
ze,
|
|
894
861
|
{
|
|
895
|
-
...
|
|
896
|
-
placeholder:
|
|
897
|
-
value:
|
|
862
|
+
...u,
|
|
863
|
+
placeholder: y,
|
|
864
|
+
value: m,
|
|
898
865
|
error: s,
|
|
899
|
-
focused:
|
|
900
|
-
handleReset:
|
|
866
|
+
focused: d ?? b,
|
|
867
|
+
handleReset: A,
|
|
901
868
|
dragOver: b,
|
|
902
|
-
inProgress:
|
|
903
|
-
hasFiles: !!
|
|
904
|
-
InputProps:
|
|
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:
|
|
879
|
+
ref: f,
|
|
913
880
|
style: { display: "none" },
|
|
914
881
|
type: "file",
|
|
915
882
|
"aria-label": t,
|
|
916
883
|
name: t,
|
|
917
|
-
accept: String(
|
|
884
|
+
accept: String(g),
|
|
918
885
|
multiple: l,
|
|
919
|
-
onChange:
|
|
886
|
+
onChange: w
|
|
920
887
|
}
|
|
921
888
|
)
|
|
922
889
|
] });
|
|
923
890
|
}
|
|
924
|
-
function
|
|
891
|
+
function Xe({
|
|
925
892
|
disabled: t,
|
|
926
893
|
loading: e,
|
|
927
894
|
...n
|
|
928
895
|
}, o) {
|
|
929
896
|
return /* @__PURE__ */ i(
|
|
930
|
-
|
|
897
|
+
z,
|
|
931
898
|
{
|
|
932
899
|
...n,
|
|
933
900
|
ref: o,
|
|
934
901
|
disabled: t || e,
|
|
935
|
-
popupIcon: e ? /* @__PURE__ */ i(
|
|
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
|
|
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,
|
|
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:
|
|
918
|
+
fixed: d,
|
|
952
919
|
extended: h,
|
|
953
|
-
dense:
|
|
954
|
-
destructive:
|
|
955
|
-
disabled:
|
|
956
|
-
subtitle:
|
|
957
|
-
iconColor:
|
|
920
|
+
dense: u,
|
|
921
|
+
destructive: g,
|
|
922
|
+
disabled: f,
|
|
923
|
+
subtitle: m,
|
|
924
|
+
iconColor: y,
|
|
958
925
|
startAdornment: b,
|
|
959
|
-
endAdornment:
|
|
960
|
-
alternativeTitle:
|
|
961
|
-
secondaryText:
|
|
962
|
-
multiple:
|
|
963
|
-
} = n, { key:
|
|
964
|
-
return /* @__PURE__ */ i(Ot, { children: s ? /* @__PURE__ */ i(
|
|
965
|
-
c && /* @__PURE__ */ i(
|
|
966
|
-
/* @__PURE__ */
|
|
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
|
-
...
|
|
970
|
-
...!
|
|
971
|
-
fixed:
|
|
936
|
+
...I,
|
|
937
|
+
...!F && {
|
|
938
|
+
fixed: d,
|
|
972
939
|
extended: h,
|
|
973
|
-
dense:
|
|
974
|
-
destructive:
|
|
975
|
-
disabled:
|
|
976
|
-
subtitle:
|
|
977
|
-
iconColor:
|
|
940
|
+
dense: u,
|
|
941
|
+
destructive: g,
|
|
942
|
+
disabled: f,
|
|
943
|
+
subtitle: m,
|
|
944
|
+
iconColor: y
|
|
978
945
|
},
|
|
979
|
-
"aria-disabled":
|
|
946
|
+
"aria-disabled": m || f,
|
|
980
947
|
"aria-selected": o.selected,
|
|
981
948
|
children: [
|
|
982
|
-
!
|
|
983
|
-
|
|
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__ */
|
|
987
|
-
|
|
988
|
-
|
|
953
|
+
/* @__PURE__ */ x(bt, { children: [
|
|
954
|
+
C(
|
|
955
|
+
r ?? At,
|
|
989
956
|
n,
|
|
990
|
-
|
|
957
|
+
w,
|
|
991
958
|
l
|
|
992
959
|
),
|
|
993
|
-
|
|
994
|
-
|
|
960
|
+
A && /* @__PURE__ */ i(
|
|
961
|
+
B,
|
|
995
962
|
{
|
|
996
963
|
component: "p",
|
|
997
964
|
variant: "caption",
|
|
998
965
|
color: "text.secondary",
|
|
999
|
-
children:
|
|
966
|
+
children: A
|
|
1000
967
|
}
|
|
1001
968
|
)
|
|
1002
969
|
] }),
|
|
1003
|
-
!
|
|
970
|
+
!m && D
|
|
1004
971
|
]
|
|
1005
972
|
}
|
|
1006
973
|
)
|
|
1007
|
-
] }) },
|
|
974
|
+
] }) }, k);
|
|
1008
975
|
} };
|
|
1009
976
|
}
|
|
1010
|
-
function
|
|
977
|
+
function Ke({
|
|
1011
978
|
getOptionLabel: t,
|
|
1012
979
|
newItemLabel: e,
|
|
1013
980
|
newItemIcon: n,
|
|
1014
981
|
multiple: o
|
|
1015
982
|
}) {
|
|
1016
|
-
const
|
|
983
|
+
const r = R(), a = $(r), l = Nt(), { renderOption: c } = wt();
|
|
1017
984
|
return {
|
|
1018
|
-
creatableFilterOptions: (
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
), { inputValue:
|
|
1023
|
-
(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 (
|
|
992
|
+
if (m.length > 1 && m !== "" && !y) {
|
|
1026
993
|
let b;
|
|
1027
|
-
typeof e == "function" ? b = e(
|
|
1028
|
-
inputValue:
|
|
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
|
|
999
|
+
return f;
|
|
1033
1000
|
},
|
|
1034
|
-
creatableOptionLabel: (
|
|
1035
|
-
creatableRenderOption: (
|
|
1036
|
-
const
|
|
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
|
-
|
|
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 [
|
|
1020
|
+
const [r, a] = T(
|
|
1054
1021
|
Array.isArray(e) ? e : e ? [e] : []
|
|
1055
1022
|
), { renderOption: l } = wt();
|
|
1056
|
-
|
|
1057
|
-
const
|
|
1058
|
-
|
|
1023
|
+
H(() => {
|
|
1024
|
+
const g = Array.isArray(e) ? e : e ? [e] : [];
|
|
1025
|
+
a(g);
|
|
1059
1026
|
}, [e]);
|
|
1060
|
-
const c =
|
|
1027
|
+
const c = r.length === t.length, s = r.length > 0 && r.length < t.length;
|
|
1061
1028
|
return {
|
|
1062
|
-
multipleValue:
|
|
1029
|
+
multipleValue: r,
|
|
1063
1030
|
allSelected: c,
|
|
1064
1031
|
someSelected: s,
|
|
1065
|
-
handleSelectAll: (
|
|
1066
|
-
const
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
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: (
|
|
1074
|
-
|
|
1040
|
+
handleChange: (g, f, m) => {
|
|
1041
|
+
a(f === null ? [] : f), n == null || n(g, f, m);
|
|
1075
1042
|
},
|
|
1076
|
-
multipleRenderOption: (
|
|
1077
|
-
const
|
|
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
|
|
1054
|
+
function Qe({
|
|
1088
1055
|
children: t,
|
|
1089
1056
|
showFilters: e,
|
|
1090
1057
|
allSelected: n,
|
|
1091
1058
|
someSelected: o,
|
|
1092
|
-
handleSelectAll:
|
|
1059
|
+
handleSelectAll: r = () => {
|
|
1093
1060
|
},
|
|
1094
|
-
multiple:
|
|
1061
|
+
multiple: a,
|
|
1095
1062
|
...l
|
|
1096
1063
|
}, c) {
|
|
1097
|
-
return /* @__PURE__ */
|
|
1064
|
+
return /* @__PURE__ */ x(
|
|
1098
1065
|
"ul",
|
|
1099
1066
|
{
|
|
1100
1067
|
ref: c,
|
|
1101
1068
|
...l,
|
|
1102
1069
|
role: "listbox",
|
|
1103
|
-
"aria-multiselectable":
|
|
1070
|
+
"aria-multiselectable": a,
|
|
1104
1071
|
children: [
|
|
1105
|
-
e &&
|
|
1106
|
-
|
|
1072
|
+
e && a && /* @__PURE__ */ i(
|
|
1073
|
+
Dt,
|
|
1107
1074
|
{
|
|
1108
1075
|
areAllSelected: !!n,
|
|
1109
1076
|
areAnySelected: !!o,
|
|
1110
|
-
selectAll:
|
|
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 =
|
|
1119
|
-
function
|
|
1085
|
+
const St = L(Qe);
|
|
1086
|
+
function tn({
|
|
1120
1087
|
newItemLabel: t,
|
|
1121
1088
|
newItemIcon: e,
|
|
1122
|
-
getOptionLabel: n =
|
|
1089
|
+
getOptionLabel: n = At,
|
|
1123
1090
|
multiple: o,
|
|
1124
|
-
disableCloseOnSelect:
|
|
1125
|
-
disabled:
|
|
1091
|
+
disableCloseOnSelect: r,
|
|
1092
|
+
disabled: a,
|
|
1126
1093
|
loading: l,
|
|
1127
1094
|
showFilters: c,
|
|
1128
1095
|
options: s = [],
|
|
1129
|
-
value:
|
|
1096
|
+
value: d,
|
|
1130
1097
|
onChange: h,
|
|
1131
|
-
getLimitTagsText:
|
|
1132
|
-
...
|
|
1133
|
-
},
|
|
1134
|
-
const { freeSolo:
|
|
1098
|
+
getLimitTagsText: u,
|
|
1099
|
+
...g
|
|
1100
|
+
}, f) {
|
|
1101
|
+
const { freeSolo: m = !0, ...y } = g, {
|
|
1135
1102
|
multipleValue: b,
|
|
1136
|
-
allSelected:
|
|
1137
|
-
someSelected:
|
|
1138
|
-
handleSelectAll:
|
|
1139
|
-
handleChange:
|
|
1103
|
+
allSelected: D,
|
|
1104
|
+
someSelected: w,
|
|
1105
|
+
handleSelectAll: A,
|
|
1106
|
+
handleChange: M
|
|
1140
1107
|
} = Bt({
|
|
1141
1108
|
options: s,
|
|
1142
|
-
value:
|
|
1109
|
+
value: d,
|
|
1143
1110
|
onChange: h
|
|
1144
1111
|
}), {
|
|
1145
|
-
creatableFilterOptions:
|
|
1146
|
-
creatableOptionLabel:
|
|
1147
|
-
creatableRenderOption:
|
|
1148
|
-
} =
|
|
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
|
-
|
|
1122
|
+
z,
|
|
1156
1123
|
{
|
|
1157
|
-
...
|
|
1158
|
-
ref:
|
|
1124
|
+
...y,
|
|
1125
|
+
ref: f,
|
|
1159
1126
|
options: s,
|
|
1160
|
-
value: o ? b :
|
|
1161
|
-
onChange:
|
|
1162
|
-
filterOptions:
|
|
1163
|
-
getOptionLabel:
|
|
1164
|
-
renderOption:
|
|
1165
|
-
freeSolo:
|
|
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:
|
|
1135
|
+
disableCloseOnSelect: r ?? o,
|
|
1169
1136
|
ListboxComponent: St,
|
|
1170
1137
|
ListboxProps: {
|
|
1171
1138
|
showFilters: c,
|
|
1172
|
-
allSelected:
|
|
1173
|
-
someSelected:
|
|
1174
|
-
handleSelectAll:
|
|
1139
|
+
allSelected: D,
|
|
1140
|
+
someSelected: w,
|
|
1141
|
+
handleSelectAll: A,
|
|
1175
1142
|
multiple: o
|
|
1176
1143
|
},
|
|
1177
|
-
getLimitTagsText:
|
|
1178
|
-
disabled:
|
|
1179
|
-
popupIcon: l ? /* @__PURE__ */ i(
|
|
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
|
|
1185
|
-
function
|
|
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:
|
|
1191
|
-
options:
|
|
1157
|
+
showFilters: r,
|
|
1158
|
+
options: a,
|
|
1192
1159
|
value: l,
|
|
1193
1160
|
onChange: c,
|
|
1194
1161
|
getOptionLabel: s,
|
|
1195
|
-
getLimitTagsText:
|
|
1162
|
+
getLimitTagsText: d,
|
|
1196
1163
|
...h
|
|
1197
|
-
},
|
|
1164
|
+
}, u) {
|
|
1198
1165
|
const {
|
|
1199
|
-
multipleValue:
|
|
1200
|
-
allSelected:
|
|
1201
|
-
someSelected:
|
|
1202
|
-
handleSelectAll:
|
|
1166
|
+
multipleValue: g,
|
|
1167
|
+
allSelected: f,
|
|
1168
|
+
someSelected: m,
|
|
1169
|
+
handleSelectAll: y,
|
|
1203
1170
|
handleChange: b,
|
|
1204
|
-
multipleRenderOption:
|
|
1171
|
+
multipleRenderOption: D
|
|
1205
1172
|
} = Bt({
|
|
1206
|
-
options:
|
|
1173
|
+
options: a,
|
|
1207
1174
|
value: l,
|
|
1208
1175
|
onChange: c,
|
|
1209
1176
|
getOptionLabel: s
|
|
1210
1177
|
});
|
|
1211
1178
|
return /* @__PURE__ */ i(
|
|
1212
|
-
|
|
1179
|
+
z,
|
|
1213
1180
|
{
|
|
1214
1181
|
...h,
|
|
1215
|
-
ref:
|
|
1216
|
-
options:
|
|
1217
|
-
value:
|
|
1182
|
+
ref: u,
|
|
1183
|
+
options: a,
|
|
1184
|
+
value: g,
|
|
1218
1185
|
onChange: b,
|
|
1219
1186
|
getOptionLabel: s,
|
|
1220
|
-
renderOption: t ??
|
|
1187
|
+
renderOption: t ?? D,
|
|
1221
1188
|
ListboxComponent: St,
|
|
1222
1189
|
ListboxProps: {
|
|
1223
|
-
showFilters:
|
|
1224
|
-
allSelected:
|
|
1225
|
-
someSelected:
|
|
1226
|
-
handleSelectAll:
|
|
1190
|
+
showFilters: r,
|
|
1191
|
+
allSelected: f,
|
|
1192
|
+
someSelected: m,
|
|
1193
|
+
handleSelectAll: y,
|
|
1227
1194
|
multiple: !0
|
|
1228
1195
|
},
|
|
1229
1196
|
multiple: !0,
|
|
1230
|
-
getLimitTagsText:
|
|
1197
|
+
getLimitTagsText: d ?? It,
|
|
1231
1198
|
disableCloseOnSelect: e,
|
|
1232
1199
|
disabled: n || o,
|
|
1233
|
-
popupIcon: o ? /* @__PURE__ */ i(
|
|
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
|
|
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
|
|
1215
|
+
function Do({
|
|
1249
1216
|
variant: t = "standard",
|
|
1250
1217
|
items: e,
|
|
1251
1218
|
...n
|
|
1252
1219
|
}) {
|
|
1253
|
-
return /* @__PURE__ */ i(
|
|
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": `${
|
|
1264
|
-
id: `${
|
|
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
|
-
|
|
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
|
-
},
|
|
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:
|
|
1297
|
-
height:
|
|
1263
|
+
width: P,
|
|
1264
|
+
height: P
|
|
1298
1265
|
}
|
|
1299
1266
|
},
|
|
1300
1267
|
...n && {
|
|
1301
1268
|
opacity: 0.6
|
|
1302
1269
|
}
|
|
1303
1270
|
}));
|
|
1304
|
-
function
|
|
1305
|
-
return /* @__PURE__ */ i(
|
|
1271
|
+
function Ao(t) {
|
|
1272
|
+
return /* @__PURE__ */ i(on, { ...t });
|
|
1306
1273
|
}
|
|
1307
|
-
const Tt = 480,
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
|
1363
|
+
function ko({
|
|
1397
1364
|
severity: t = "neutral",
|
|
1398
1365
|
autoHideDuration: e = ot,
|
|
1399
1366
|
closeable: n = !0,
|
|
1400
1367
|
children: o,
|
|
1401
|
-
title:
|
|
1402
|
-
action:
|
|
1368
|
+
title: r,
|
|
1369
|
+
action: a,
|
|
1403
1370
|
open: l,
|
|
1404
1371
|
onClose: c = () => {
|
|
1405
1372
|
},
|
|
1406
1373
|
autoWidth: s,
|
|
1407
|
-
icon:
|
|
1374
|
+
icon: d,
|
|
1408
1375
|
...h
|
|
1409
1376
|
}) {
|
|
1410
|
-
const
|
|
1377
|
+
const u = R(), g = $(u);
|
|
1411
1378
|
return /* @__PURE__ */ i(Jt, { children: /* @__PURE__ */ i(
|
|
1412
|
-
|
|
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__ */
|
|
1421
|
-
|
|
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
|
-
|
|
1396
|
+
ln,
|
|
1430
1397
|
{
|
|
1431
1398
|
severity: t,
|
|
1432
|
-
action:
|
|
1433
|
-
icon:
|
|
1399
|
+
action: a,
|
|
1400
|
+
icon: d === !1 || t === "neutral" && !d ? !1 : d,
|
|
1434
1401
|
elevation: 6,
|
|
1435
|
-
hasActions: !!
|
|
1402
|
+
hasActions: !!a,
|
|
1436
1403
|
closeable: n,
|
|
1437
|
-
title:
|
|
1404
|
+
title: r,
|
|
1438
1405
|
children: o
|
|
1439
1406
|
}
|
|
1440
1407
|
),
|
|
1441
|
-
n && /* @__PURE__ */ i(
|
|
1408
|
+
n && /* @__PURE__ */ i(cn, { children: /* @__PURE__ */ i(
|
|
1442
1409
|
Le,
|
|
1443
1410
|
{
|
|
1444
1411
|
color: "default",
|
|
1445
|
-
onClick: (
|
|
1412
|
+
onClick: (D) => c(D, "timeout"),
|
|
1446
1413
|
icon: /* @__PURE__ */ i(Mt, {}),
|
|
1447
|
-
tooltip:
|
|
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
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
1435
|
+
})), un = p(G)(({ theme: t }) => ({
|
|
1469
1436
|
borderColor: Kt(t.palette.brand.appBarContrastText, 0.12)
|
|
1470
1437
|
}));
|
|
1471
|
-
function
|
|
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__ */
|
|
1484
|
-
/* @__PURE__ */ i(
|
|
1485
|
-
/* @__PURE__ */ i(
|
|
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
|
|
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
|
|
1503
|
-
return /* @__PURE__ */ i(
|
|
1469
|
+
function fn({ logo: t }) {
|
|
1470
|
+
return /* @__PURE__ */ i(gn, { children: t });
|
|
1504
1471
|
}
|
|
1505
|
-
const
|
|
1472
|
+
const mn = p(B)({
|
|
1506
1473
|
display: "flex",
|
|
1507
1474
|
alignItems: "center",
|
|
1508
1475
|
whiteSpace: "nowrap"
|
|
1509
1476
|
});
|
|
1510
|
-
function
|
|
1511
|
-
const e =
|
|
1477
|
+
function hn({ text: t }) {
|
|
1478
|
+
const e = V();
|
|
1512
1479
|
return /* @__PURE__ */ i(
|
|
1513
|
-
|
|
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
|
|
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
|
|
1533
|
-
const e =
|
|
1499
|
+
function xn({ text: t }) {
|
|
1500
|
+
const e = V();
|
|
1534
1501
|
return /* @__PURE__ */ i(
|
|
1535
|
-
|
|
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
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
|
1535
|
+
function Io({
|
|
1569
1536
|
children: t,
|
|
1570
1537
|
brandLogo: e,
|
|
1571
1538
|
brandText: n,
|
|
1572
1539
|
secondaryText: o,
|
|
1573
|
-
showBurgerMenu:
|
|
1574
|
-
onClickMenu:
|
|
1540
|
+
showBurgerMenu: r = !1,
|
|
1541
|
+
onClickMenu: a,
|
|
1575
1542
|
...l
|
|
1576
1543
|
}) {
|
|
1577
|
-
return /* @__PURE__ */ i(
|
|
1578
|
-
/* @__PURE__ */
|
|
1579
|
-
|
|
1580
|
-
e && /* @__PURE__ */ i(
|
|
1581
|
-
n && /* @__PURE__ */ i(
|
|
1582
|
-
o && /* @__PURE__ */ i(
|
|
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(
|
|
1551
|
+
/* @__PURE__ */ i(Cn, { children: t })
|
|
1585
1552
|
] }) });
|
|
1586
1553
|
}
|
|
1587
|
-
const
|
|
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
|
|
1571
|
+
function K({
|
|
1605
1572
|
size: t,
|
|
1606
1573
|
variant: e,
|
|
1607
1574
|
...n
|
|
1608
1575
|
}) {
|
|
1609
|
-
const o =
|
|
1610
|
-
return /* @__PURE__ */ i(
|
|
1611
|
-
|
|
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":
|
|
1582
|
+
"aria-label": r.formatMessage({
|
|
1616
1583
|
id: "c4r.form.clearSelection"
|
|
1617
1584
|
})
|
|
1618
1585
|
}
|
|
1619
1586
|
) });
|
|
1620
1587
|
}
|
|
1621
|
-
const
|
|
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
|
|
1621
|
+
function Q({
|
|
1655
1622
|
children: t,
|
|
1656
1623
|
size: e,
|
|
1657
1624
|
variant: n,
|
|
1658
1625
|
readOnly: o,
|
|
1659
|
-
...
|
|
1626
|
+
...r
|
|
1660
1627
|
}) {
|
|
1661
|
-
return /* @__PURE__ */ i(
|
|
1628
|
+
return /* @__PURE__ */ i(Dn, { ...r, size: e, variant: n, readOnly: o, children: t });
|
|
1662
1629
|
}
|
|
1663
|
-
function
|
|
1630
|
+
function rt({
|
|
1664
1631
|
handleClear: t,
|
|
1665
1632
|
variant: e = "outlined",
|
|
1666
1633
|
size: n = "small",
|
|
1667
1634
|
label: o,
|
|
1668
|
-
labelHelpTooltip:
|
|
1669
|
-
type:
|
|
1635
|
+
labelHelpTooltip: r,
|
|
1636
|
+
type: a,
|
|
1670
1637
|
helperText: l,
|
|
1671
1638
|
placeholder: c,
|
|
1672
1639
|
slotProps: s,
|
|
1673
|
-
slots:
|
|
1640
|
+
slots: d,
|
|
1674
1641
|
error: h,
|
|
1675
|
-
showCalendar:
|
|
1676
|
-
readOnly:
|
|
1677
|
-
|
|
1678
|
-
"data-testid": f,
|
|
1679
|
-
...M
|
|
1642
|
+
showCalendar: u = !0,
|
|
1643
|
+
readOnly: g,
|
|
1644
|
+
...f
|
|
1680
1645
|
}) {
|
|
1681
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
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
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
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
|
|
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:
|
|
1762
|
-
isLastDay:
|
|
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 &&
|
|
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 ||
|
|
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
|
-
...
|
|
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
|
-
),
|
|
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
|
-
})),
|
|
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
|
-
...
|
|
1821
|
+
...r
|
|
1868
1822
|
}) {
|
|
1869
|
-
const
|
|
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
|
-
|
|
1825
|
+
An,
|
|
1872
1826
|
{
|
|
1873
1827
|
isSelected: c,
|
|
1874
|
-
isStartDate:
|
|
1828
|
+
isStartDate: a,
|
|
1875
1829
|
isEndDate: l,
|
|
1876
1830
|
isSelectedMonth: h,
|
|
1877
|
-
isLastDay:
|
|
1831
|
+
isLastDay: d,
|
|
1878
1832
|
isFirstDay: s,
|
|
1879
1833
|
children: /* @__PURE__ */ i(
|
|
1880
|
-
|
|
1834
|
+
kn,
|
|
1881
1835
|
{
|
|
1882
|
-
...
|
|
1836
|
+
...r,
|
|
1883
1837
|
day: t,
|
|
1884
|
-
selected: c ||
|
|
1885
|
-
isDateRangeLimit:
|
|
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
|
|
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
|
|
1895
|
+
function wo({
|
|
1943
1896
|
globalHelperText: t,
|
|
1944
1897
|
error: e,
|
|
1945
1898
|
variant: n = "outlined",
|
|
1946
1899
|
startProps: o,
|
|
1947
|
-
endProps:
|
|
1948
|
-
|
|
1949
|
-
"data-testid": l,
|
|
1950
|
-
...c
|
|
1900
|
+
endProps: r,
|
|
1901
|
+
...a
|
|
1951
1902
|
}) {
|
|
1952
|
-
const
|
|
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
|
-
), [
|
|
1955
|
-
(
|
|
1956
|
-
),
|
|
1957
|
-
|
|
1958
|
-
},
|
|
1959
|
-
|
|
1960
|
-
},
|
|
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(
|
|
1913
|
+
D(g ?? /* @__PURE__ */ new Date());
|
|
1963
1914
|
}, 120);
|
|
1964
|
-
},
|
|
1915
|
+
}, I = () => {
|
|
1965
1916
|
u(!1), d(!0), setTimeout(() => {
|
|
1966
|
-
D(
|
|
1917
|
+
D(m ?? g ?? /* @__PURE__ */ new Date());
|
|
1967
1918
|
}, 120);
|
|
1968
|
-
},
|
|
1919
|
+
}, F = () => {
|
|
1969
1920
|
u(!1), d(!0), setTimeout(() => {
|
|
1970
|
-
D(
|
|
1921
|
+
D(m ?? g ?? /* @__PURE__ */ new Date());
|
|
1971
1922
|
}, 120);
|
|
1972
1923
|
};
|
|
1973
|
-
return /* @__PURE__ */
|
|
1974
|
-
/* @__PURE__ */
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
{
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
...
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
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
|
|
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 "),
|
|
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
|
|
2012
|
+
function Bo({
|
|
2071
2013
|
handleClear: t,
|
|
2072
2014
|
variant: e = "outlined",
|
|
2073
2015
|
size: n = "small",
|
|
2074
2016
|
label: o,
|
|
2075
|
-
labelHelpTooltip:
|
|
2076
|
-
type:
|
|
2017
|
+
labelHelpTooltip: r,
|
|
2018
|
+
type: a,
|
|
2077
2019
|
helperText: l,
|
|
2078
2020
|
placeholder: c,
|
|
2079
2021
|
error: s,
|
|
2080
|
-
showClock:
|
|
2022
|
+
showClock: d = !0,
|
|
2081
2023
|
readOnly: h,
|
|
2082
|
-
slotProps:
|
|
2083
|
-
slots:
|
|
2084
|
-
ampm:
|
|
2085
|
-
views:
|
|
2086
|
-
format:
|
|
2087
|
-
|
|
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 =
|
|
2092
|
-
return
|
|
2093
|
-
if (!
|
|
2094
|
-
const
|
|
2095
|
-
var
|
|
2096
|
-
const
|
|
2097
|
-
|
|
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
|
|
2100
|
-
|
|
2039
|
+
return I.observe(A.current), () => {
|
|
2040
|
+
I.disconnect();
|
|
2101
2041
|
};
|
|
2102
2042
|
}, []), /* @__PURE__ */ i(
|
|
2103
|
-
|
|
2043
|
+
Q,
|
|
2104
2044
|
{
|
|
2105
2045
|
size: n,
|
|
2106
2046
|
variant: e,
|
|
2107
2047
|
readOnly: h,
|
|
2108
|
-
"data-
|
|
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
|
-
...
|
|
2115
|
-
ref:
|
|
2052
|
+
...b,
|
|
2053
|
+
ref: A,
|
|
2116
2054
|
label: /* @__PURE__ */ i(
|
|
2117
|
-
|
|
2055
|
+
X,
|
|
2118
2056
|
{
|
|
2119
|
-
label: o ??
|
|
2120
|
-
type:
|
|
2121
|
-
icon:
|
|
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(
|
|
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:
|
|
2085
|
+
width: M
|
|
2148
2086
|
}
|
|
2149
2087
|
},
|
|
2150
|
-
...
|
|
2088
|
+
...u
|
|
2151
2089
|
},
|
|
2152
2090
|
slots: {
|
|
2153
|
-
clearButton: (
|
|
2154
|
-
openPickerButton: (
|
|
2155
|
-
|
|
2091
|
+
clearButton: (I) => /* @__PURE__ */ i(K, { ...I, size: n, variant: e }),
|
|
2092
|
+
openPickerButton: (I) => /* @__PURE__ */ i(
|
|
2093
|
+
O,
|
|
2156
2094
|
{
|
|
2157
|
-
...
|
|
2095
|
+
...I,
|
|
2158
2096
|
size: n,
|
|
2159
|
-
"aria-label":
|
|
2097
|
+
"aria-label": w.formatMessage({
|
|
2160
2098
|
id: "c4r.form.chooseDate"
|
|
2161
2099
|
})
|
|
2162
2100
|
}
|
|
2163
2101
|
),
|
|
2164
|
-
...
|
|
2102
|
+
...g
|
|
2165
2103
|
},
|
|
2166
|
-
disableOpenPicker: !
|
|
2104
|
+
disableOpenPicker: !d,
|
|
2167
2105
|
readOnly: h,
|
|
2168
|
-
ampm:
|
|
2106
|
+
ampm: f
|
|
2169
2107
|
}
|
|
2170
2108
|
)
|
|
2171
2109
|
}
|
|
2172
2110
|
);
|
|
2173
2111
|
}
|
|
2174
|
-
function
|
|
2112
|
+
function So({
|
|
2175
2113
|
handleClear: t,
|
|
2176
2114
|
variant: e = "outlined",
|
|
2177
2115
|
size: n = "small",
|
|
2178
2116
|
label: o,
|
|
2179
|
-
labelHelpTooltip:
|
|
2180
|
-
type:
|
|
2117
|
+
labelHelpTooltip: r,
|
|
2118
|
+
type: a,
|
|
2181
2119
|
helperText: l,
|
|
2182
2120
|
placeholder: c,
|
|
2183
2121
|
error: s,
|
|
2184
|
-
showCalendar:
|
|
2122
|
+
showCalendar: d = !0,
|
|
2185
2123
|
readOnly: h,
|
|
2186
|
-
slotProps:
|
|
2187
|
-
slots:
|
|
2188
|
-
ampm:
|
|
2189
|
-
views:
|
|
2190
|
-
format:
|
|
2191
|
-
|
|
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 =
|
|
2131
|
+
const D = R(), w = $(D);
|
|
2196
2132
|
return /* @__PURE__ */ i(
|
|
2197
|
-
|
|
2133
|
+
Q,
|
|
2198
2134
|
{
|
|
2199
2135
|
size: n,
|
|
2200
2136
|
variant: e,
|
|
2201
2137
|
readOnly: h,
|
|
2202
|
-
"data-
|
|
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
|
-
...
|
|
2142
|
+
...b,
|
|
2209
2143
|
label: /* @__PURE__ */ i(
|
|
2210
|
-
|
|
2144
|
+
X,
|
|
2211
2145
|
{
|
|
2212
|
-
label: o ??
|
|
2213
|
-
type:
|
|
2214
|
-
icon:
|
|
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(
|
|
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
|
-
...
|
|
2169
|
+
...u
|
|
2236
2170
|
},
|
|
2237
2171
|
slots: {
|
|
2238
|
-
clearButton: (
|
|
2239
|
-
openPickerButton: (
|
|
2240
|
-
|
|
2172
|
+
clearButton: (A) => /* @__PURE__ */ i(K, { ...A, size: n, variant: e }),
|
|
2173
|
+
openPickerButton: (A) => /* @__PURE__ */ i(
|
|
2174
|
+
O,
|
|
2241
2175
|
{
|
|
2242
|
-
...
|
|
2176
|
+
...A,
|
|
2243
2177
|
size: n,
|
|
2244
|
-
"aria-label":
|
|
2178
|
+
"aria-label": w.formatMessage({
|
|
2245
2179
|
id: "c4r.form.chooseDate"
|
|
2246
2180
|
})
|
|
2247
2181
|
}
|
|
2248
2182
|
),
|
|
2249
|
-
...
|
|
2183
|
+
...g
|
|
2250
2184
|
},
|
|
2251
|
-
disableOpenPicker: !
|
|
2185
|
+
disableOpenPicker: !d,
|
|
2252
2186
|
readOnly: h,
|
|
2253
|
-
ampm:
|
|
2187
|
+
ampm: f
|
|
2254
2188
|
}
|
|
2255
2189
|
)
|
|
2256
2190
|
}
|
|
2257
2191
|
);
|
|
2258
2192
|
}
|
|
2259
|
-
const
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
2211
|
+
})), $n = p(B)(({ theme: t }) => ({
|
|
2278
2212
|
minWidth: t.spacing(10),
|
|
2279
2213
|
marginRight: t.spacing(1.5)
|
|
2280
2214
|
}));
|
|
2281
|
-
function
|
|
2282
|
-
items: t =
|
|
2215
|
+
function To({
|
|
2216
|
+
items: t = wn,
|
|
2283
2217
|
title: e
|
|
2284
2218
|
}) {
|
|
2285
|
-
return /* @__PURE__ */
|
|
2286
|
-
e && /* @__PURE__ */ i(
|
|
2287
|
-
/* @__PURE__ */ i(
|
|
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
|
-
|
|
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(
|
|
2298
|
-
/* @__PURE__ */ i(
|
|
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 =
|
|
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:
|
|
2335
|
-
theme:
|
|
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:
|
|
2342
|
-
borderRadius:
|
|
2343
|
-
...st[
|
|
2344
|
-
maxHeight: ct[
|
|
2345
|
-
[`@media (max-height:${ct[
|
|
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
|
-
...
|
|
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 - ${
|
|
2287
|
+
maxWidth: `calc(100vw - ${a.spacing(10)})`,
|
|
2354
2288
|
height: "100vh",
|
|
2355
|
-
maxHeight: `calc(100vh - ${
|
|
2356
|
-
margin:
|
|
2357
|
-
borderRadius:
|
|
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
|
-
[
|
|
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:
|
|
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 - ${
|
|
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[
|
|
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
|
-
[
|
|
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:
|
|
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
|
|
2360
|
+
function $o({
|
|
2427
2361
|
nonModal: t,
|
|
2428
2362
|
children: e,
|
|
2429
2363
|
size: n = "small",
|
|
2430
2364
|
PaperProps: o,
|
|
2431
|
-
fullScreen:
|
|
2432
|
-
height:
|
|
2365
|
+
fullScreen: r,
|
|
2366
|
+
height: a,
|
|
2433
2367
|
width: l,
|
|
2434
2368
|
hasForm: c,
|
|
2435
2369
|
"aria-label": s,
|
|
2436
|
-
"data-testid":
|
|
2370
|
+
"data-testid": d,
|
|
2437
2371
|
...h
|
|
2438
|
-
}
|
|
2372
|
+
}) {
|
|
2439
2373
|
return t ? /* @__PURE__ */ i(
|
|
2440
2374
|
dt,
|
|
2441
2375
|
{
|
|
2442
2376
|
size: n,
|
|
2443
|
-
fullScreen:
|
|
2444
|
-
height:
|
|
2377
|
+
fullScreen: r,
|
|
2378
|
+
height: a,
|
|
2445
2379
|
width: l,
|
|
2446
2380
|
hasForm: c,
|
|
2447
2381
|
"aria-label": s,
|
|
2448
|
-
"data-testid":
|
|
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:
|
|
2462
|
-
height:
|
|
2393
|
+
fullScreen: r,
|
|
2394
|
+
height: a,
|
|
2463
2395
|
width: l,
|
|
2464
2396
|
hasForm: c
|
|
2465
2397
|
},
|
|
2466
|
-
fullScreen:
|
|
2398
|
+
fullScreen: r,
|
|
2467
2399
|
role: "section",
|
|
2468
2400
|
"aria-label": s,
|
|
2469
|
-
"data-testid":
|
|
2401
|
+
"data-testid": d,
|
|
2470
2402
|
"data-size": n,
|
|
2471
2403
|
"data-width": l,
|
|
2472
|
-
"data-height":
|
|
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
|
|
2410
|
+
const Rn = p(oe)(() => ({
|
|
2481
2411
|
padding: 0,
|
|
2482
2412
|
zIndex: 10
|
|
2483
|
-
})),
|
|
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 =
|
|
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
|
-
})),
|
|
2424
|
+
})), On = p(Mt)(({ theme: t }) => ({
|
|
2495
2425
|
color: t.palette.text.secondary
|
|
2496
|
-
})),
|
|
2426
|
+
})), Ln = p(G)(() => ({
|
|
2497
2427
|
"+ .MuiDialogContent-root": {
|
|
2498
2428
|
borderTop: "none !important"
|
|
2499
2429
|
}
|
|
2500
2430
|
}));
|
|
2501
|
-
function
|
|
2431
|
+
function Ro({
|
|
2502
2432
|
title: t,
|
|
2503
2433
|
chipLabel: e,
|
|
2504
2434
|
chipProps: n,
|
|
2505
2435
|
children: o,
|
|
2506
|
-
onClose:
|
|
2507
|
-
secondaryActions:
|
|
2436
|
+
onClose: r,
|
|
2437
|
+
secondaryActions: a,
|
|
2508
2438
|
"aria-label": l,
|
|
2509
2439
|
closeIcon: c,
|
|
2510
2440
|
...s
|
|
2511
2441
|
}) {
|
|
2512
|
-
const
|
|
2513
|
-
return /* @__PURE__ */
|
|
2514
|
-
/* @__PURE__ */
|
|
2515
|
-
/* @__PURE__ */
|
|
2516
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
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__ */
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
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(
|
|
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(
|
|
2473
|
+
o && /* @__PURE__ */ i(Ln, {})
|
|
2545
2474
|
] });
|
|
2546
2475
|
}
|
|
2547
|
-
const
|
|
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
|
|
2507
|
+
function En({
|
|
2579
2508
|
children: t,
|
|
2580
2509
|
scrollableContent: e,
|
|
2581
2510
|
hasFooterAlert: n,
|
|
2582
2511
|
withGutter: o = !0,
|
|
2583
|
-
withBottomGutter:
|
|
2584
|
-
onScroll:
|
|
2512
|
+
withBottomGutter: r = !0,
|
|
2513
|
+
onScroll: a,
|
|
2585
2514
|
...l
|
|
2586
2515
|
}, c) {
|
|
2587
|
-
const s =
|
|
2516
|
+
const s = V(), [d, h] = T(null);
|
|
2588
2517
|
Lt(
|
|
2589
2518
|
c,
|
|
2590
|
-
() =>
|
|
2591
|
-
[
|
|
2519
|
+
() => d,
|
|
2520
|
+
[d]
|
|
2592
2521
|
);
|
|
2593
|
-
const
|
|
2594
|
-
(
|
|
2595
|
-
const
|
|
2596
|
-
|
|
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
|
-
),
|
|
2600
|
-
(
|
|
2601
|
-
|
|
2528
|
+
), g = nt(
|
|
2529
|
+
(f) => {
|
|
2530
|
+
u(f.target), a == null || a(f);
|
|
2602
2531
|
},
|
|
2603
|
-
[
|
|
2532
|
+
[u, a]
|
|
2604
2533
|
);
|
|
2605
|
-
return
|
|
2606
|
-
|
|
2607
|
-
}, [
|
|
2608
|
-
if (!
|
|
2609
|
-
const
|
|
2610
|
-
d
|
|
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
|
|
2613
|
-
}, [
|
|
2614
|
-
|
|
2541
|
+
return f.observe(d), () => f.disconnect();
|
|
2542
|
+
}, [d, u]), /* @__PURE__ */ i(
|
|
2543
|
+
Wn,
|
|
2615
2544
|
{
|
|
2616
2545
|
ref: h,
|
|
2617
|
-
onScroll:
|
|
2546
|
+
onScroll: g,
|
|
2618
2547
|
scrollableContent: e,
|
|
2619
2548
|
withGutter: o,
|
|
2620
|
-
withBottomGutter:
|
|
2621
|
-
"data-name": "dialog-content",
|
|
2549
|
+
withBottomGutter: r && o,
|
|
2622
2550
|
...l,
|
|
2623
2551
|
children: t
|
|
2624
2552
|
}
|
|
2625
2553
|
);
|
|
2626
2554
|
}
|
|
2627
|
-
const
|
|
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
|
-
})),
|
|
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(
|
|
2581
|
+
return /* @__PURE__ */ i(_n, { severity: e, ...n, children: t });
|
|
2654
2582
|
}
|
|
2655
|
-
const
|
|
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
|
-
})),
|
|
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
|
-
})),
|
|
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 =
|
|
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
|
-
})),
|
|
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
|
|
2634
|
+
function Oo({
|
|
2707
2635
|
children: t,
|
|
2708
2636
|
secondaryActions: e,
|
|
2709
2637
|
alertContent: n,
|
|
2710
2638
|
alertProps: o,
|
|
2711
|
-
dark:
|
|
2712
|
-
topContent:
|
|
2639
|
+
dark: r,
|
|
2640
|
+
topContent: a,
|
|
2713
2641
|
...l
|
|
2714
2642
|
}) {
|
|
2715
|
-
return /* @__PURE__ */
|
|
2716
|
-
|
|
2717
|
-
!!n && /* @__PURE__ */ i(
|
|
2718
|
-
/* @__PURE__ */
|
|
2719
|
-
|
|
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:
|
|
2723
|
-
"data-theme":
|
|
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__ */
|
|
2729
|
-
/* @__PURE__ */ i(
|
|
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
|
|
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
|
-
})),
|
|
2677
|
+
})), Un = p("div")(() => ({
|
|
2751
2678
|
width: "100%"
|
|
2752
|
-
})),
|
|
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
|
|
2689
|
+
function Lo({
|
|
2763
2690
|
children: t,
|
|
2764
2691
|
onClickAway: e,
|
|
2765
2692
|
actions: n,
|
|
2766
2693
|
severity: o = "warning",
|
|
2767
|
-
opened:
|
|
2768
|
-
"data-testid":
|
|
2694
|
+
opened: r,
|
|
2695
|
+
"data-testid": a,
|
|
2769
2696
|
"aria-label": l,
|
|
2770
2697
|
...c
|
|
2771
2698
|
}) {
|
|
2772
|
-
const s =
|
|
2699
|
+
const s = U(null), d = V();
|
|
2773
2700
|
return /* @__PURE__ */ i(
|
|
2774
|
-
|
|
2701
|
+
Nn,
|
|
2775
2702
|
{
|
|
2776
2703
|
ref: s,
|
|
2777
|
-
"data-testid":
|
|
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:
|
|
2713
|
+
in: r,
|
|
2788
2714
|
container: s.current,
|
|
2789
2715
|
mountOnEnter: !0,
|
|
2790
2716
|
unmountOnExit: !0,
|
|
2791
|
-
easing:
|
|
2717
|
+
easing: d.transitions.easing.easeOut,
|
|
2792
2718
|
timeout: 350,
|
|
2793
|
-
children: /* @__PURE__ */ i(
|
|
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
|
|
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
|
-
})),
|
|
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
|
|
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
|
|
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
|
-
...
|
|
2795
|
+
...Zn({ theme: t, completed: e, current: n })
|
|
2870
2796
|
}));
|
|
2871
|
-
function
|
|
2797
|
+
function Wo({
|
|
2872
2798
|
currentStep: t,
|
|
2873
2799
|
stepsLabels: e,
|
|
2874
2800
|
...n
|
|
2875
2801
|
}) {
|
|
2876
|
-
return /* @__PURE__ */ i(
|
|
2877
|
-
const
|
|
2878
|
-
return /* @__PURE__ */
|
|
2879
|
-
|
|
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(
|
|
2884
|
-
/* @__PURE__ */ i(
|
|
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
|
-
|
|
2813
|
+
r
|
|
2888
2814
|
);
|
|
2889
2815
|
}) }) });
|
|
2890
2816
|
}
|
|
2891
2817
|
export {
|
|
2892
|
-
|
|
2818
|
+
Do as AccordionGroup,
|
|
2893
2819
|
Ct as Alert,
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
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
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
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
|
-
|
|
2837
|
+
Wo as DialogStepper,
|
|
2912
2838
|
Le as IconButton,
|
|
2913
|
-
|
|
2914
|
-
|
|
2839
|
+
X as LabelWithIndicator,
|
|
2840
|
+
ho as Menu,
|
|
2841
|
+
Dt as MenuFilter,
|
|
2915
2842
|
vt as MenuItem,
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
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
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
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
|
};
|