@carto/meridian-ds 0.1.0 → 0.1.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/{Alert-Dd9Op7y8.js → Alert-BawVDNyY.js} +158 -172
- package/dist/Alert-CrvY-jFA.cjs +4 -0
- package/dist/{arrow-drop-icon-CHxPlPIN.js → arrow-drop-icon-Dau5xh-6.js} +4 -4
- package/dist/arrow-drop-icon-XN9k9ZtW.cjs +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +472 -489
- package/dist/custom-icons/index.cjs +1 -1
- package/dist/custom-icons/index.js +28 -28
- package/dist/paletteUtils-BEwZhrLg.js +262 -0
- package/dist/paletteUtils-DLQVT9qo.cjs +1 -0
- package/dist/{search-icon-FnUa1LqH.js → search-icon-8Q4AttLX.js} +8 -8
- package/dist/search-icon-CyudR_26.cjs +1 -0
- package/dist/theme/index.cjs +1 -76
- package/dist/theme/index.js +360 -1548
- package/dist/theme-constants-DL1946wP.js +544 -0
- package/dist/theme-constants-PqPZ2w1q.cjs +9 -0
- package/dist/widgets/index.cjs +21 -21
- package/dist/widgets/index.js +2801 -2854
- package/package.json +1 -3
- package/dist/Alert-l8e3Fw5e.cjs +0 -4
- package/dist/arrow-drop-icon-BGl72Unt.cjs +0 -1
- package/dist/createSvgIcon-BhsoeSAN.cjs +0 -68
- package/dist/createSvgIcon-CcKa-Sbo.js +0 -3929
- package/dist/jsx-runtime-B6kdoens.js +0 -634
- package/dist/jsx-runtime-Cek9Ww4S.cjs +0 -30
- package/dist/paletteUtils-B489IFFw.js +0 -320
- package/dist/paletteUtils-DELR0VRh.cjs +0 -3
- package/dist/search-icon-DHF2JDWR.cjs +0 -1
package/dist/components/index.js
CHANGED
|
@@ -1,45 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Button as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return Object.keys(t).length === 0;
|
|
1
|
+
import { jsx as o, jsxs as y, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { Button as q, styled as d, Box as w, TextField as z, InputAdornment as _, IconButton as P, Select as tt, MenuItem as V, FormControl as et, InputLabel as nt, FormHelperText as ot, ToggleButtonGroup as rt, Menu as it, MenuList as at, Link as lt, Checkbox as N, ListItemText as Y, Tooltip as st, CircularProgress as dt, Accordion as ct, AccordionSummary as ut, AccordionDetails as pt, createFilterOptions as gt, Autocomplete as ft, Divider as D, ListItemIcon as U, Avatar as mt, alpha as ht, AppBar as Mt, Toolbar as yt } from "@mui/material";
|
|
3
|
+
import { forwardRef as k, useState as L, useEffect as Z, useMemo as J, useRef as bt, Fragment as vt } from "react";
|
|
4
|
+
import { T, u as $ } from "../Alert-BawVDNyY.js";
|
|
5
|
+
import { A as Ne, a as Ye } from "../Alert-BawVDNyY.js";
|
|
6
|
+
import { b as F, A as xt } from "../theme-constants-DL1946wP.js";
|
|
7
|
+
import { VisibilityOutlined as It, VisibilityOffOutlined as Bt, Cancel as K, AddCircleOutlineOutlined as Tt, MenuOutlined as At } from "@mui/icons-material";
|
|
8
|
+
import { useIntl as E } from "react-intl";
|
|
9
|
+
import { styled as H, useTheme as Q } from "@mui/material/styles";
|
|
10
|
+
function St({ children: t, ...e }, n) {
|
|
11
|
+
return /* @__PURE__ */ o(q, { ...e, ref: n, children: /* @__PURE__ */ o(T, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
|
|
13
12
|
}
|
|
14
|
-
|
|
15
|
-
const n = z.useContext(Ct);
|
|
16
|
-
return !n || Ft(n) ? t : n;
|
|
17
|
-
}
|
|
18
|
-
const Pt = bt();
|
|
19
|
-
function kt(t = Pt) {
|
|
20
|
-
return wt(t);
|
|
21
|
-
}
|
|
22
|
-
function K() {
|
|
23
|
-
const t = kt(jt);
|
|
24
|
-
return process.env.NODE_ENV !== "production" && z.useDebugValue(t), t[vt] || t;
|
|
25
|
-
}
|
|
26
|
-
function Lt({ children: t, ...n }, o) {
|
|
27
|
-
return /* @__PURE__ */ e.jsx(W, { ...n, ref: o, children: /* @__PURE__ */ e.jsx(T, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: t }) });
|
|
28
|
-
}
|
|
29
|
-
const Ge = P(Lt), $t = c(C)(({ theme: t }) => ({
|
|
13
|
+
const ke = k(St), Ct = d(w)(({ theme: t }) => ({
|
|
30
14
|
display: "flex",
|
|
31
15
|
alignItems: "center",
|
|
32
16
|
gap: t.spacing(0.5)
|
|
33
|
-
})),
|
|
17
|
+
})), Ft = d(T)(({ theme: t }) => ({
|
|
34
18
|
".Mui-disabled &": {
|
|
35
19
|
color: t.palette.text.disabled
|
|
36
20
|
}
|
|
37
|
-
})),
|
|
21
|
+
})), wt = d(w)(({ theme: t }) => ({
|
|
38
22
|
display: "flex",
|
|
39
23
|
svg: {
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
42
|
-
fontSize:
|
|
24
|
+
width: F,
|
|
25
|
+
height: F,
|
|
26
|
+
fontSize: F,
|
|
43
27
|
path: {
|
|
44
28
|
fill: t.palette.text.secondary,
|
|
45
29
|
".Mui-disabled &": {
|
|
@@ -48,50 +32,50 @@ const Ge = P(Lt), $t = c(C)(({ theme: t }) => ({
|
|
|
48
32
|
}
|
|
49
33
|
}
|
|
50
34
|
}));
|
|
51
|
-
function
|
|
35
|
+
function $e({
|
|
52
36
|
label: t,
|
|
53
|
-
type:
|
|
54
|
-
icon:
|
|
37
|
+
type: e,
|
|
38
|
+
icon: n,
|
|
55
39
|
inheritSize: r
|
|
56
40
|
}) {
|
|
57
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ y(Ct, { children: [
|
|
58
42
|
t,
|
|
59
|
-
|
|
60
|
-
|
|
43
|
+
e && /* @__PURE__ */ o(
|
|
44
|
+
Ft,
|
|
61
45
|
{
|
|
62
46
|
component: "span",
|
|
63
47
|
variant: r ? "inherit" : "caption",
|
|
64
48
|
color: "textSecondary",
|
|
65
49
|
weight: "regular",
|
|
66
|
-
children:
|
|
50
|
+
children: e === "required" ? "(required)" : "(optional)"
|
|
67
51
|
}
|
|
68
52
|
),
|
|
69
|
-
|
|
53
|
+
n && /* @__PURE__ */ o(wt, { children: n })
|
|
70
54
|
] });
|
|
71
55
|
}
|
|
72
|
-
function
|
|
73
|
-
const [i, l] =
|
|
74
|
-
return /* @__PURE__ */
|
|
75
|
-
|
|
56
|
+
function Pt({ InputProps: t, size: e = "small", ...n }, r) {
|
|
57
|
+
const [i, l] = L(!1);
|
|
58
|
+
return /* @__PURE__ */ o(
|
|
59
|
+
z,
|
|
76
60
|
{
|
|
77
|
-
...
|
|
61
|
+
...n,
|
|
78
62
|
ref: r,
|
|
79
63
|
type: i ? "text" : "password",
|
|
80
|
-
size:
|
|
64
|
+
size: e,
|
|
81
65
|
InputProps: {
|
|
82
66
|
...t,
|
|
83
|
-
endAdornment: /* @__PURE__ */
|
|
67
|
+
endAdornment: /* @__PURE__ */ o(_, { position: "end", children: /* @__PURE__ */ o(P, { size: e, onClick: () => l(!i), children: i ? /* @__PURE__ */ o(It, {}) : /* @__PURE__ */ o(Bt, {}) }) })
|
|
84
68
|
}
|
|
85
69
|
}
|
|
86
70
|
);
|
|
87
71
|
}
|
|
88
|
-
const
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
return t === "$lodash$" ? `${
|
|
72
|
+
const Ee = k(Pt), O = {};
|
|
73
|
+
function Lt(t = "$lodash$") {
|
|
74
|
+
O[t] || (O[t] = 0);
|
|
75
|
+
const e = ++O[t];
|
|
76
|
+
return t === "$lodash$" ? `${e}` : `${t}${e}`;
|
|
93
77
|
}
|
|
94
|
-
const
|
|
78
|
+
const kt = d(tt)(({ theme: t }) => ({
|
|
95
79
|
"& .MuiInputAdornment-positionStart": {
|
|
96
80
|
paddingLeft: t.spacing(2),
|
|
97
81
|
"&.MuiInputAdornment-sizeSmall": {
|
|
@@ -107,54 +91,54 @@ const Gt = c(X)(({ theme: t }) => ({
|
|
|
107
91
|
"&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
|
|
108
92
|
paddingRight: t.spacing(7)
|
|
109
93
|
}
|
|
110
|
-
})),
|
|
94
|
+
})), $t = d(V)(() => ({
|
|
111
95
|
display: "none"
|
|
112
96
|
}));
|
|
113
|
-
function
|
|
97
|
+
function Et({
|
|
114
98
|
children: t,
|
|
115
|
-
placeholder:
|
|
116
|
-
size:
|
|
99
|
+
placeholder: e,
|
|
100
|
+
size: n = "small",
|
|
117
101
|
displayEmpty: r,
|
|
118
102
|
menuProps: i,
|
|
119
103
|
inputProps: l,
|
|
120
104
|
labelId: s,
|
|
121
105
|
label: g,
|
|
122
|
-
labelSecondary:
|
|
123
|
-
helperText:
|
|
106
|
+
labelSecondary: b,
|
|
107
|
+
helperText: v,
|
|
124
108
|
name: u,
|
|
125
109
|
error: p,
|
|
126
|
-
focused:
|
|
127
|
-
disabled:
|
|
128
|
-
fullWidth:
|
|
129
|
-
required:
|
|
110
|
+
focused: h,
|
|
111
|
+
disabled: x,
|
|
112
|
+
fullWidth: M,
|
|
113
|
+
required: f,
|
|
130
114
|
"aria-label": a,
|
|
131
|
-
...
|
|
132
|
-
},
|
|
133
|
-
const
|
|
134
|
-
return /* @__PURE__ */
|
|
135
|
-
|
|
115
|
+
...S
|
|
116
|
+
}, m) {
|
|
117
|
+
const B = n === "small", [c] = L(() => Lt("select-label-")), I = g ? s ?? c : void 0;
|
|
118
|
+
return /* @__PURE__ */ y(
|
|
119
|
+
et,
|
|
136
120
|
{
|
|
137
|
-
size:
|
|
121
|
+
size: n,
|
|
138
122
|
error: p,
|
|
139
|
-
focused:
|
|
140
|
-
disabled:
|
|
141
|
-
fullWidth:
|
|
142
|
-
required:
|
|
123
|
+
focused: h,
|
|
124
|
+
disabled: x,
|
|
125
|
+
fullWidth: M,
|
|
126
|
+
required: f,
|
|
143
127
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
g && /* @__PURE__ */
|
|
146
|
-
|
|
128
|
+
/* @__PURE__ */ y(w, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
129
|
+
g && /* @__PURE__ */ o(nt, { shrink: !0, id: I, children: g }),
|
|
130
|
+
b && /* @__PURE__ */ o(w, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: b })
|
|
147
131
|
] }),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
|
|
132
|
+
/* @__PURE__ */ y(
|
|
133
|
+
kt,
|
|
150
134
|
{
|
|
151
|
-
...
|
|
152
|
-
labelId:
|
|
135
|
+
...S,
|
|
136
|
+
labelId: I,
|
|
153
137
|
name: u,
|
|
154
|
-
ref:
|
|
155
|
-
size:
|
|
156
|
-
fullWidth:
|
|
157
|
-
displayEmpty: r ?? !!
|
|
138
|
+
ref: m,
|
|
139
|
+
size: n,
|
|
140
|
+
fullWidth: M,
|
|
141
|
+
displayEmpty: r ?? !!e,
|
|
158
142
|
inputProps: {
|
|
159
143
|
...l,
|
|
160
144
|
"aria-label": a
|
|
@@ -162,7 +146,7 @@ function Vt({
|
|
|
162
146
|
MenuProps: {
|
|
163
147
|
...i,
|
|
164
148
|
PopoverClasses: {
|
|
165
|
-
paper:
|
|
149
|
+
paper: B ? "MuiMenu-paper-sizeSmall" : void 0
|
|
166
150
|
},
|
|
167
151
|
anchorOrigin: {
|
|
168
152
|
vertical: "bottom",
|
|
@@ -174,43 +158,43 @@ function Vt({
|
|
|
174
158
|
}
|
|
175
159
|
},
|
|
176
160
|
children: [
|
|
177
|
-
|
|
161
|
+
e && /* @__PURE__ */ o($t, { disabled: !0, value: "", children: /* @__PURE__ */ o(
|
|
178
162
|
T,
|
|
179
163
|
{
|
|
180
|
-
variant:
|
|
164
|
+
variant: B ? "body2" : "body1",
|
|
181
165
|
color: "text.hint",
|
|
182
166
|
component: "span",
|
|
183
|
-
children:
|
|
167
|
+
children: e
|
|
184
168
|
}
|
|
185
169
|
) }),
|
|
186
170
|
t
|
|
187
171
|
]
|
|
188
172
|
}
|
|
189
173
|
),
|
|
190
|
-
|
|
174
|
+
v && /* @__PURE__ */ o(ot, { "aria-label": `${u}-helper`, children: v })
|
|
191
175
|
]
|
|
192
176
|
}
|
|
193
177
|
);
|
|
194
178
|
}
|
|
195
|
-
const
|
|
179
|
+
const Rt = k(Et), Ot = d(rt, {
|
|
196
180
|
shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
|
|
197
|
-
})(({ variant: t, backgroundColor:
|
|
181
|
+
})(({ variant: t, backgroundColor: e, theme: n }) => ({
|
|
198
182
|
// Variants
|
|
199
183
|
...t === "contained" && {
|
|
200
184
|
boxShadow: "none"
|
|
201
185
|
},
|
|
202
186
|
...t === "unbounded" && {
|
|
203
187
|
boxShadow: "none",
|
|
204
|
-
borderRadius:
|
|
188
|
+
borderRadius: n.spacing(0.5),
|
|
205
189
|
"& .MuiDivider-root": {
|
|
206
|
-
height:
|
|
190
|
+
height: n.spacing(4),
|
|
207
191
|
"&.MuiToggleButtonGroup-groupedHorizontal": {
|
|
208
|
-
height:
|
|
192
|
+
height: n.spacing(4)
|
|
209
193
|
},
|
|
210
194
|
"&.MuiToggleButtonGroup-groupedVertical": {
|
|
211
195
|
height: "auto",
|
|
212
|
-
width:
|
|
213
|
-
margin: `${
|
|
196
|
+
width: n.spacing(4),
|
|
197
|
+
margin: `${n.spacing(0.5, 0, 1)} !important`,
|
|
214
198
|
borderRadius: "0 !important"
|
|
215
199
|
}
|
|
216
200
|
},
|
|
@@ -220,11 +204,11 @@ const Ht = P(Vt), Wt = c(ot, {
|
|
|
220
204
|
margin: 0
|
|
221
205
|
},
|
|
222
206
|
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedHorizontal": {
|
|
223
|
-
height:
|
|
207
|
+
height: n.spacing(3)
|
|
224
208
|
},
|
|
225
209
|
"& + .MuiDivider-root.MuiToggleButtonGroup-groupedVertical": {
|
|
226
210
|
height: "auto",
|
|
227
|
-
width:
|
|
211
|
+
width: n.spacing(3)
|
|
228
212
|
}
|
|
229
213
|
},
|
|
230
214
|
".MuiToggleButtonGroup-grouped:not(.MuiDivider-root)": {
|
|
@@ -233,17 +217,17 @@ const Ht = P(Vt), Wt = c(ot, {
|
|
|
233
217
|
marginLeft: 0
|
|
234
218
|
},
|
|
235
219
|
"&:not(:last-of-type)": {
|
|
236
|
-
marginRight:
|
|
220
|
+
marginRight: n.spacing(0.5)
|
|
237
221
|
}
|
|
238
222
|
},
|
|
239
223
|
"&.MuiToggleButtonGroup-horizontal:not(.MuiDivider-root)": {
|
|
240
224
|
".MuiToggleButtonGroup-grouped": {
|
|
241
|
-
margin:
|
|
225
|
+
margin: n.spacing(0, 0.5)
|
|
242
226
|
}
|
|
243
227
|
},
|
|
244
228
|
"&.MuiToggleButtonGroup-vertical:not(.MuiDivider-root)": {
|
|
245
229
|
".MuiToggleButtonGroup-grouped": {
|
|
246
|
-
margin:
|
|
230
|
+
margin: n.spacing(0, 0, 0.5),
|
|
247
231
|
"&:not(:last-of-type)": {
|
|
248
232
|
marginRight: 0
|
|
249
233
|
},
|
|
@@ -254,45 +238,44 @@ const Ht = P(Vt), Wt = c(ot, {
|
|
|
254
238
|
}
|
|
255
239
|
},
|
|
256
240
|
// Colors
|
|
257
|
-
...
|
|
258
|
-
backgroundColor:
|
|
241
|
+
...e === "primary" && {
|
|
242
|
+
backgroundColor: n.palette.background.paper
|
|
259
243
|
},
|
|
260
|
-
...
|
|
261
|
-
backgroundColor:
|
|
244
|
+
...e === "secondary" && {
|
|
245
|
+
backgroundColor: n.palette.background.default
|
|
262
246
|
},
|
|
263
|
-
...
|
|
247
|
+
...e === "transparent" && {
|
|
264
248
|
backgroundColor: "transparent"
|
|
265
249
|
}
|
|
266
250
|
}));
|
|
267
|
-
function
|
|
251
|
+
function Re({
|
|
268
252
|
children: t,
|
|
269
|
-
variant:
|
|
270
|
-
backgroundColor:
|
|
253
|
+
variant: e = "floating",
|
|
254
|
+
backgroundColor: n,
|
|
271
255
|
...r
|
|
272
256
|
}) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
Wt,
|
|
257
|
+
return /* @__PURE__ */ o(
|
|
258
|
+
Ot,
|
|
276
259
|
{
|
|
277
260
|
...r,
|
|
278
|
-
variant:
|
|
279
|
-
backgroundColor:
|
|
261
|
+
variant: e,
|
|
262
|
+
backgroundColor: n ?? (e === "unbounded" ? "transparent" : "primary"),
|
|
280
263
|
children: t
|
|
281
264
|
}
|
|
282
265
|
);
|
|
283
266
|
}
|
|
284
|
-
const
|
|
267
|
+
const Dt = d(it, {
|
|
285
268
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
286
|
-
})(({ theme: t, extended:
|
|
287
|
-
...
|
|
269
|
+
})(({ theme: t, extended: e, width: n, height: r }) => ({
|
|
270
|
+
...e && {
|
|
288
271
|
".MuiMenuItem-root": {
|
|
289
272
|
minHeight: t.spacing(6)
|
|
290
273
|
}
|
|
291
274
|
},
|
|
292
|
-
...
|
|
275
|
+
...n && {
|
|
293
276
|
".MuiList-root": {
|
|
294
|
-
width:
|
|
295
|
-
minWidth:
|
|
277
|
+
width: n,
|
|
278
|
+
minWidth: n
|
|
296
279
|
}
|
|
297
280
|
},
|
|
298
281
|
...r && {
|
|
@@ -304,24 +287,24 @@ const Ut = c(rt, {
|
|
|
304
287
|
}
|
|
305
288
|
}
|
|
306
289
|
}));
|
|
307
|
-
function
|
|
308
|
-
return /* @__PURE__ */
|
|
290
|
+
function Oe(t) {
|
|
291
|
+
return /* @__PURE__ */ o(Dt, { ...t });
|
|
309
292
|
}
|
|
310
|
-
const
|
|
293
|
+
const Gt = d(V, {
|
|
311
294
|
shouldForwardProp: (t) => !["subtitle", "destructive", "extended", "fixed", "iconColor"].includes(
|
|
312
295
|
t
|
|
313
296
|
)
|
|
314
297
|
})(
|
|
315
298
|
({
|
|
316
299
|
theme: t,
|
|
317
|
-
dense:
|
|
318
|
-
subtitle:
|
|
300
|
+
dense: e,
|
|
301
|
+
subtitle: n,
|
|
319
302
|
destructive: r,
|
|
320
303
|
extended: i,
|
|
321
304
|
fixed: l,
|
|
322
305
|
iconColor: s = "primary"
|
|
323
306
|
}) => ({
|
|
324
|
-
...
|
|
307
|
+
...n && {
|
|
325
308
|
pointerEvents: "none",
|
|
326
309
|
columnGap: 0,
|
|
327
310
|
...t.typography.caption,
|
|
@@ -423,7 +406,7 @@ const qt = c(O, {
|
|
|
423
406
|
marginTop: t.spacing(1)
|
|
424
407
|
}
|
|
425
408
|
},
|
|
426
|
-
...
|
|
409
|
+
...e && {
|
|
427
410
|
"&.MuiButtonBase-root.MuiMenuItem-root": {
|
|
428
411
|
minHeight: t.spacing(3),
|
|
429
412
|
padding: t.spacing(0.25, 1.5)
|
|
@@ -431,37 +414,37 @@ const qt = c(O, {
|
|
|
431
414
|
}
|
|
432
415
|
})
|
|
433
416
|
);
|
|
434
|
-
function
|
|
435
|
-
return /* @__PURE__ */
|
|
417
|
+
function X(t) {
|
|
418
|
+
return /* @__PURE__ */ o(Gt, { ...t });
|
|
436
419
|
}
|
|
437
|
-
const
|
|
420
|
+
const _t = d(at, {
|
|
438
421
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
439
|
-
})(({ theme: t, extended:
|
|
440
|
-
...
|
|
422
|
+
})(({ theme: t, extended: e, width: n, height: r }) => ({
|
|
423
|
+
...e && {
|
|
441
424
|
".MuiMenuItem-root": {
|
|
442
425
|
minHeight: t.spacing(6)
|
|
443
426
|
}
|
|
444
427
|
},
|
|
445
428
|
"&.MuiList-root": {
|
|
446
|
-
...
|
|
447
|
-
width:
|
|
448
|
-
minWidth:
|
|
429
|
+
...n && {
|
|
430
|
+
width: n,
|
|
431
|
+
minWidth: n
|
|
449
432
|
},
|
|
450
433
|
...r && {
|
|
451
434
|
maxHeight: r
|
|
452
435
|
}
|
|
453
436
|
}
|
|
454
437
|
}));
|
|
455
|
-
function
|
|
456
|
-
return /* @__PURE__ */
|
|
438
|
+
function De(t) {
|
|
439
|
+
return /* @__PURE__ */ o(_t, { ...t });
|
|
457
440
|
}
|
|
458
|
-
function
|
|
441
|
+
function Vt({
|
|
459
442
|
selectedOptions: t,
|
|
460
|
-
options:
|
|
461
|
-
onChange:
|
|
443
|
+
options: e,
|
|
444
|
+
onChange: n
|
|
462
445
|
}) {
|
|
463
|
-
const [r, i] =
|
|
464
|
-
return
|
|
446
|
+
const [r, i] = L(t || []), l = e.length === r.length, s = r.length > 0;
|
|
447
|
+
return Z(() => {
|
|
465
448
|
r !== t && i(r);
|
|
466
449
|
}, [t]), {
|
|
467
450
|
areAllSelected: l,
|
|
@@ -470,56 +453,56 @@ function zt({
|
|
|
470
453
|
handleChange: (u) => {
|
|
471
454
|
const {
|
|
472
455
|
target: { value: p }
|
|
473
|
-
} = u,
|
|
474
|
-
i(
|
|
456
|
+
} = u, h = typeof p == "string" ? p.split(",") : p.filter((x) => x !== void 0);
|
|
457
|
+
i(h), n(h);
|
|
475
458
|
},
|
|
476
459
|
selectAll: () => {
|
|
477
|
-
const u =
|
|
460
|
+
const u = e == null ? void 0 : e.filter(({ disabled: p }) => !p).map(({ value: p }) => p);
|
|
478
461
|
u && (u.every(
|
|
479
|
-
(
|
|
480
|
-
) ? (i([]),
|
|
462
|
+
(h) => r.includes(h)
|
|
463
|
+
) ? (i([]), n([])) : (i(u), n(u)));
|
|
481
464
|
},
|
|
482
465
|
unselectAll: () => {
|
|
483
|
-
i([]),
|
|
466
|
+
i([]), n([]);
|
|
484
467
|
}
|
|
485
468
|
};
|
|
486
469
|
}
|
|
487
|
-
const
|
|
488
|
-
({ disabled: t, theme:
|
|
470
|
+
const Ht = d(lt)(
|
|
471
|
+
({ disabled: t, theme: e }) => ({
|
|
489
472
|
display: "flex",
|
|
490
473
|
alignItems: "center",
|
|
491
|
-
gap:
|
|
474
|
+
gap: e.spacing(1),
|
|
492
475
|
width: "100%",
|
|
493
476
|
textAlign: "initial",
|
|
494
477
|
...t && {
|
|
495
478
|
pointerEvents: "none",
|
|
496
|
-
color:
|
|
479
|
+
color: e.palette.text.disabled
|
|
497
480
|
}
|
|
498
481
|
})
|
|
499
482
|
);
|
|
500
|
-
function
|
|
483
|
+
function Wt({
|
|
501
484
|
areAllSelected: t,
|
|
502
|
-
areAnySelected:
|
|
503
|
-
selectAll:
|
|
485
|
+
areAnySelected: e,
|
|
486
|
+
selectAll: n,
|
|
504
487
|
selectAllDisabled: r
|
|
505
488
|
}) {
|
|
506
|
-
const i =
|
|
507
|
-
return /* @__PURE__ */
|
|
508
|
-
|
|
489
|
+
const i = E(), l = $(i);
|
|
490
|
+
return /* @__PURE__ */ o(X, { fixed: !0, children: /* @__PURE__ */ y(
|
|
491
|
+
Ht,
|
|
509
492
|
{
|
|
510
493
|
variant: "body2",
|
|
511
494
|
color: "textPrimary",
|
|
512
495
|
component: "button",
|
|
513
496
|
underline: "none",
|
|
514
497
|
disabled: !!r,
|
|
515
|
-
onClick:
|
|
498
|
+
onClick: n,
|
|
516
499
|
tabIndex: 0,
|
|
517
500
|
children: [
|
|
518
|
-
/* @__PURE__ */
|
|
519
|
-
|
|
501
|
+
/* @__PURE__ */ o(
|
|
502
|
+
N,
|
|
520
503
|
{
|
|
521
504
|
checked: t,
|
|
522
|
-
indeterminate:
|
|
505
|
+
indeterminate: e && !t,
|
|
523
506
|
disabled: r
|
|
524
507
|
}
|
|
525
508
|
),
|
|
@@ -528,14 +511,14 @@ function Zt({
|
|
|
528
511
|
}
|
|
529
512
|
) });
|
|
530
513
|
}
|
|
531
|
-
const
|
|
514
|
+
const Ut = d(V)(({ theme: t }) => ({
|
|
532
515
|
"&.Mui-disabled": {
|
|
533
516
|
pointerEvents: "auto",
|
|
534
517
|
"&:hover": {
|
|
535
518
|
backgroundColor: `${t.palette.background.default} !important`
|
|
536
519
|
}
|
|
537
520
|
}
|
|
538
|
-
})),
|
|
521
|
+
})), jt = d(_)(({ theme: t }) => ({
|
|
539
522
|
display: "none",
|
|
540
523
|
position: "absolute",
|
|
541
524
|
top: t.spacing(2),
|
|
@@ -546,86 +529,86 @@ const Jt = c(O)(({ theme: t }) => ({
|
|
|
546
529
|
".MuiSvgIcon-root": {
|
|
547
530
|
color: t.palette.text.hint
|
|
548
531
|
}
|
|
549
|
-
})),
|
|
532
|
+
})), qt = [], zt = () => {
|
|
550
533
|
};
|
|
551
|
-
function
|
|
552
|
-
options: t =
|
|
553
|
-
selectedOptions:
|
|
554
|
-
size:
|
|
534
|
+
function Nt({
|
|
535
|
+
options: t = qt,
|
|
536
|
+
selectedOptions: e,
|
|
537
|
+
size: n = "small",
|
|
555
538
|
placeholder: r,
|
|
556
539
|
showCounter: i,
|
|
557
540
|
showFilters: l = !0,
|
|
558
|
-
onChange: s =
|
|
541
|
+
onChange: s = zt,
|
|
559
542
|
selectAllDisabled: g,
|
|
560
|
-
tooltipPlacement:
|
|
561
|
-
variant:
|
|
543
|
+
tooltipPlacement: b,
|
|
544
|
+
variant: v,
|
|
562
545
|
...u
|
|
563
546
|
}, p) {
|
|
564
547
|
const {
|
|
565
|
-
areAllSelected:
|
|
566
|
-
areAnySelected:
|
|
567
|
-
currentOptions:
|
|
568
|
-
handleChange:
|
|
548
|
+
areAllSelected: h,
|
|
549
|
+
areAnySelected: x,
|
|
550
|
+
currentOptions: M,
|
|
551
|
+
handleChange: f,
|
|
569
552
|
selectAll: a,
|
|
570
|
-
unselectAll:
|
|
571
|
-
} =
|
|
553
|
+
unselectAll: S
|
|
554
|
+
} = Vt({
|
|
572
555
|
options: t,
|
|
573
|
-
selectedOptions:
|
|
556
|
+
selectedOptions: e,
|
|
574
557
|
onChange: s
|
|
575
|
-
}),
|
|
558
|
+
}), m = n === "small", B = m || v === "standard" ? 0 : 2, c = E(), I = $(c), A = `${M.length} ${I.formatMessage({
|
|
576
559
|
id: "c4r.form.selected"
|
|
577
|
-
})}`,
|
|
560
|
+
})}`, R = J(() => h ? /* @__PURE__ */ o(
|
|
578
561
|
T,
|
|
579
562
|
{
|
|
580
563
|
component: "span",
|
|
581
|
-
variant:
|
|
564
|
+
variant: m ? "body2" : "body1",
|
|
582
565
|
color: "textPrimary",
|
|
583
|
-
ml:
|
|
584
|
-
children:
|
|
566
|
+
ml: B,
|
|
567
|
+
children: I.formatMessage({ id: "c4r.form.allSelected" })
|
|
585
568
|
}
|
|
586
|
-
) :
|
|
569
|
+
) : x ? /* @__PURE__ */ o(
|
|
587
570
|
T,
|
|
588
571
|
{
|
|
589
572
|
component: "span",
|
|
590
|
-
variant:
|
|
573
|
+
variant: m ? "body2" : "body1",
|
|
591
574
|
color: "textPrimary",
|
|
592
|
-
ml:
|
|
593
|
-
children: i &&
|
|
575
|
+
ml: B,
|
|
576
|
+
children: i && M.length > 1 ? A : M.join(", ")
|
|
594
577
|
}
|
|
595
|
-
) : /* @__PURE__ */
|
|
578
|
+
) : /* @__PURE__ */ o(
|
|
596
579
|
T,
|
|
597
580
|
{
|
|
598
581
|
component: "span",
|
|
599
|
-
variant:
|
|
582
|
+
variant: m ? "body2" : "body1",
|
|
600
583
|
color: "text.hint",
|
|
601
|
-
ml:
|
|
602
|
-
children: r ??
|
|
584
|
+
ml: B,
|
|
585
|
+
children: r ?? I.formatMessage({ id: "c4r.form.noneSelected" })
|
|
603
586
|
}
|
|
604
587
|
), [
|
|
588
|
+
h,
|
|
605
589
|
x,
|
|
590
|
+
A,
|
|
606
591
|
M,
|
|
607
592
|
I,
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
h,
|
|
611
|
-
j,
|
|
593
|
+
m,
|
|
594
|
+
B,
|
|
612
595
|
r,
|
|
613
596
|
i
|
|
614
597
|
]);
|
|
615
|
-
return /* @__PURE__ */
|
|
616
|
-
|
|
598
|
+
return /* @__PURE__ */ y(
|
|
599
|
+
Rt,
|
|
617
600
|
{
|
|
618
601
|
...u,
|
|
619
602
|
ref: p,
|
|
620
603
|
multiple: !0,
|
|
621
604
|
displayEmpty: !0,
|
|
622
605
|
placeholder: r,
|
|
623
|
-
value:
|
|
624
|
-
renderValue: () =>
|
|
625
|
-
onChange:
|
|
626
|
-
size:
|
|
627
|
-
variant:
|
|
628
|
-
endAdornment: l &&
|
|
606
|
+
value: M,
|
|
607
|
+
renderValue: () => R,
|
|
608
|
+
onChange: f,
|
|
609
|
+
size: n,
|
|
610
|
+
variant: v,
|
|
611
|
+
endAdornment: l && x && /* @__PURE__ */ o(jt, { position: "end", children: /* @__PURE__ */ o(P, { onClick: S, size: "small", children: /* @__PURE__ */ o(K, {}) }) }),
|
|
629
612
|
menuProps: {
|
|
630
613
|
PaperProps: {
|
|
631
614
|
sx: {
|
|
@@ -636,67 +619,67 @@ function te({
|
|
|
636
619
|
}
|
|
637
620
|
},
|
|
638
621
|
children: [
|
|
639
|
-
l && /* @__PURE__ */
|
|
640
|
-
|
|
622
|
+
l && /* @__PURE__ */ o(
|
|
623
|
+
Wt,
|
|
641
624
|
{
|
|
642
|
-
areAllSelected:
|
|
643
|
-
areAnySelected:
|
|
625
|
+
areAllSelected: h,
|
|
626
|
+
areAnySelected: x,
|
|
644
627
|
selectAll: a,
|
|
645
628
|
selectAllDisabled: g
|
|
646
629
|
}
|
|
647
630
|
),
|
|
648
|
-
t == null ? void 0 : t.map((
|
|
649
|
-
const
|
|
650
|
-
|
|
631
|
+
t == null ? void 0 : t.map((C) => {
|
|
632
|
+
const W = /* @__PURE__ */ y(
|
|
633
|
+
Ut,
|
|
651
634
|
{
|
|
652
|
-
value:
|
|
653
|
-
disabled:
|
|
635
|
+
value: C.value,
|
|
636
|
+
disabled: C.disabled,
|
|
654
637
|
tabIndex: 0,
|
|
655
638
|
children: [
|
|
656
|
-
/* @__PURE__ */
|
|
657
|
-
|
|
639
|
+
/* @__PURE__ */ o(
|
|
640
|
+
N,
|
|
658
641
|
{
|
|
659
|
-
disabled:
|
|
660
|
-
checked:
|
|
642
|
+
disabled: C.disabled,
|
|
643
|
+
checked: M.includes(C.value)
|
|
661
644
|
}
|
|
662
645
|
),
|
|
663
|
-
/* @__PURE__ */
|
|
646
|
+
/* @__PURE__ */ o(Y, { primary: C.label })
|
|
664
647
|
]
|
|
665
648
|
},
|
|
666
|
-
|
|
649
|
+
C.value
|
|
667
650
|
);
|
|
668
|
-
return
|
|
669
|
-
|
|
651
|
+
return C.tooltip ? /* @__PURE__ */ o(
|
|
652
|
+
st,
|
|
670
653
|
{
|
|
671
|
-
title:
|
|
672
|
-
placement:
|
|
673
|
-
children:
|
|
654
|
+
title: C.tooltip,
|
|
655
|
+
placement: b,
|
|
656
|
+
children: W
|
|
674
657
|
},
|
|
675
|
-
|
|
676
|
-
) :
|
|
658
|
+
C.value
|
|
659
|
+
) : W;
|
|
677
660
|
})
|
|
678
661
|
]
|
|
679
662
|
}
|
|
680
663
|
);
|
|
681
664
|
}
|
|
682
|
-
const
|
|
665
|
+
const Ge = k(Nt), Yt = H(z, {
|
|
683
666
|
shouldForwardProp: (t) => t !== "cursor"
|
|
684
667
|
})(
|
|
685
|
-
({ cursor: t, theme:
|
|
668
|
+
({ cursor: t, theme: e }) => ({
|
|
686
669
|
"&.MuiTextField-root .MuiInputBase-root": {
|
|
687
670
|
cursor: t,
|
|
688
|
-
paddingRight:
|
|
671
|
+
paddingRight: e.spacing(1),
|
|
689
672
|
"& input": {
|
|
690
673
|
cursor: t
|
|
691
674
|
},
|
|
692
675
|
"&.Mui-disabled": {
|
|
693
676
|
pointerEvents: "none",
|
|
694
677
|
"& .MuiButtonBase-root": {
|
|
695
|
-
color:
|
|
678
|
+
color: e.palette.text.disabled
|
|
696
679
|
}
|
|
697
680
|
},
|
|
698
681
|
"&.MuiInputBase-sizeSmall": {
|
|
699
|
-
paddingRight:
|
|
682
|
+
paddingRight: e.spacing(0.5)
|
|
700
683
|
}
|
|
701
684
|
},
|
|
702
685
|
"& .MuiFormLabel-root": {
|
|
@@ -707,30 +690,30 @@ const qe = P(te), ee = G(U, {
|
|
|
707
690
|
}
|
|
708
691
|
})
|
|
709
692
|
);
|
|
710
|
-
function
|
|
693
|
+
function Zt({
|
|
711
694
|
buttonText: t,
|
|
712
|
-
hasFiles:
|
|
713
|
-
size:
|
|
695
|
+
hasFiles: e,
|
|
696
|
+
size: n,
|
|
714
697
|
error: r,
|
|
715
698
|
disabled: i,
|
|
716
699
|
handleReset: l,
|
|
717
700
|
handleOpen: s,
|
|
718
701
|
inProgress: g
|
|
719
702
|
}) {
|
|
720
|
-
return /* @__PURE__ */
|
|
721
|
-
|
|
703
|
+
return /* @__PURE__ */ o(_, { position: "end", children: g ? /* @__PURE__ */ o(P, { "aria-label": "loading", disabled: !0, size: n, children: /* @__PURE__ */ o(dt, { size: 18 }) }) : e ? /* @__PURE__ */ o(
|
|
704
|
+
P,
|
|
722
705
|
{
|
|
723
706
|
onClick: l,
|
|
724
|
-
size:
|
|
707
|
+
size: n,
|
|
725
708
|
"aria-label": "delete",
|
|
726
709
|
disabled: i,
|
|
727
|
-
children: /* @__PURE__ */
|
|
710
|
+
children: /* @__PURE__ */ o(K, {})
|
|
728
711
|
}
|
|
729
|
-
) : /* @__PURE__ */
|
|
730
|
-
|
|
712
|
+
) : /* @__PURE__ */ o(
|
|
713
|
+
q,
|
|
731
714
|
{
|
|
732
715
|
onClick: s,
|
|
733
|
-
size:
|
|
716
|
+
size: n,
|
|
734
717
|
variant: "text",
|
|
735
718
|
color: r ? "default" : "primary",
|
|
736
719
|
disabled: i,
|
|
@@ -738,356 +721,356 @@ function ne({
|
|
|
738
721
|
}
|
|
739
722
|
) });
|
|
740
723
|
}
|
|
741
|
-
function
|
|
724
|
+
function Jt({
|
|
742
725
|
name: t,
|
|
743
726
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
744
|
-
multiple:
|
|
727
|
+
multiple: e,
|
|
745
728
|
// multiple prop defined here for compatibility with cloud-native but not used in the component
|
|
746
|
-
handleReset:
|
|
729
|
+
handleReset: n,
|
|
747
730
|
handleOpen: r,
|
|
748
731
|
dragOver: i,
|
|
749
732
|
error: l,
|
|
750
733
|
placeholder: s,
|
|
751
734
|
focused: g,
|
|
752
|
-
buttonText:
|
|
753
|
-
inProgress:
|
|
735
|
+
buttonText: b = "Browse",
|
|
736
|
+
inProgress: v,
|
|
754
737
|
InputProps: u,
|
|
755
738
|
size: p = "small",
|
|
756
|
-
hasFiles:
|
|
757
|
-
cursor:
|
|
758
|
-
...
|
|
739
|
+
hasFiles: h,
|
|
740
|
+
cursor: x = "pointer",
|
|
741
|
+
...M
|
|
759
742
|
}) {
|
|
760
|
-
return /* @__PURE__ */
|
|
761
|
-
|
|
743
|
+
return /* @__PURE__ */ o(
|
|
744
|
+
Yt,
|
|
762
745
|
{
|
|
763
|
-
...
|
|
746
|
+
...M,
|
|
764
747
|
size: p,
|
|
765
748
|
error: l,
|
|
766
749
|
placeholder: s,
|
|
767
750
|
focused: g ?? i,
|
|
768
|
-
cursor:
|
|
751
|
+
cursor: x,
|
|
769
752
|
InputProps: {
|
|
770
753
|
...u,
|
|
771
754
|
name: t,
|
|
772
755
|
// multiple prop cannot be used here because it is not a valid prop for TextField InputProps
|
|
773
756
|
// not used for any UI logic
|
|
774
757
|
readOnly: !0,
|
|
775
|
-
endAdornment: /* @__PURE__ */
|
|
776
|
-
|
|
758
|
+
endAdornment: /* @__PURE__ */ o(
|
|
759
|
+
Zt,
|
|
777
760
|
{
|
|
778
|
-
buttonText:
|
|
779
|
-
hasFiles:
|
|
761
|
+
buttonText: b,
|
|
762
|
+
hasFiles: h,
|
|
780
763
|
size: p,
|
|
781
764
|
error: l,
|
|
782
765
|
disabled: !!i,
|
|
783
|
-
handleReset:
|
|
766
|
+
handleReset: n,
|
|
784
767
|
handleOpen: r,
|
|
785
|
-
inProgress:
|
|
768
|
+
inProgress: v
|
|
786
769
|
}
|
|
787
770
|
)
|
|
788
771
|
}
|
|
789
772
|
}
|
|
790
773
|
);
|
|
791
774
|
}
|
|
792
|
-
function
|
|
775
|
+
function Kt({
|
|
793
776
|
onChange: t,
|
|
794
|
-
files:
|
|
795
|
-
multiple:
|
|
777
|
+
files: e,
|
|
778
|
+
multiple: n,
|
|
796
779
|
placeholder: r,
|
|
797
780
|
uploadInputRef: i
|
|
798
781
|
}) {
|
|
799
|
-
const l =
|
|
800
|
-
|
|
801
|
-
!
|
|
782
|
+
const l = E(), s = $(l), [g, b] = L(""), [v, u] = L(!1);
|
|
783
|
+
Z(() => {
|
|
784
|
+
!e || e.length === 0 ? b("") : e.length === 1 ? b(e[0].name) : b(
|
|
802
785
|
s.formatMessage(
|
|
803
786
|
{ id: "c4r.form.filesSelected" },
|
|
804
|
-
{ count:
|
|
787
|
+
{ count: e.length }
|
|
805
788
|
)
|
|
806
789
|
);
|
|
807
|
-
}, [
|
|
790
|
+
}, [e, s]);
|
|
808
791
|
const p = () => {
|
|
809
|
-
var
|
|
810
|
-
(
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
},
|
|
816
|
-
|
|
817
|
-
const
|
|
818
|
-
t == null || t(
|
|
819
|
-
},
|
|
820
|
-
const
|
|
821
|
-
for (const
|
|
822
|
-
if (
|
|
823
|
-
const
|
|
824
|
-
|
|
792
|
+
var c;
|
|
793
|
+
(c = i.current) == null || c.click();
|
|
794
|
+
}, h = (c) => {
|
|
795
|
+
c.preventDefault(), u(!0);
|
|
796
|
+
}, x = (c) => {
|
|
797
|
+
c.preventDefault(), u(!1);
|
|
798
|
+
}, M = (c) => {
|
|
799
|
+
c.preventDefault(), u(!1);
|
|
800
|
+
const I = c.dataTransfer.items, A = f(I);
|
|
801
|
+
t == null || t(A);
|
|
802
|
+
}, f = (c) => {
|
|
803
|
+
const I = [];
|
|
804
|
+
for (const A of Array.from(c))
|
|
805
|
+
if (A.kind === "file") {
|
|
806
|
+
const R = A.getAsFile();
|
|
807
|
+
I.push(R);
|
|
825
808
|
}
|
|
826
|
-
return
|
|
827
|
-
}, a = (
|
|
828
|
-
const
|
|
829
|
-
t == null || t(
|
|
830
|
-
},
|
|
831
|
-
|
|
832
|
-
},
|
|
833
|
-
const
|
|
809
|
+
return I;
|
|
810
|
+
}, a = (c) => {
|
|
811
|
+
const I = Array.from(c.target.files);
|
|
812
|
+
t == null || t(I);
|
|
813
|
+
}, S = (c) => {
|
|
814
|
+
c.stopPropagation(), b("");
|
|
815
|
+
}, m = J(() => {
|
|
816
|
+
const c = s.formatMessage(
|
|
834
817
|
{ id: "c4r.form.dragPlaceholder" },
|
|
835
|
-
{ count:
|
|
836
|
-
),
|
|
818
|
+
{ count: n ? 0 : 1 }
|
|
819
|
+
), I = s.formatMessage(
|
|
837
820
|
{ id: "c4r.form.dragActivePlaceholder" },
|
|
838
|
-
{ count:
|
|
821
|
+
{ count: n ? 0 : 1 }
|
|
839
822
|
);
|
|
840
|
-
let
|
|
841
|
-
return
|
|
842
|
-
}, [
|
|
823
|
+
let A = "";
|
|
824
|
+
return v ? A = I : A = r ?? c, A;
|
|
825
|
+
}, [v, n, r, s]);
|
|
843
826
|
return {
|
|
844
827
|
filesText: g,
|
|
845
|
-
getPlaceholder:
|
|
846
|
-
dragOver:
|
|
828
|
+
getPlaceholder: m,
|
|
829
|
+
dragOver: v,
|
|
847
830
|
inputEvents: {
|
|
848
|
-
onDragOver:
|
|
849
|
-
onDragLeave:
|
|
850
|
-
onDrop:
|
|
831
|
+
onDragOver: h,
|
|
832
|
+
onDragLeave: x,
|
|
833
|
+
onDrop: M,
|
|
851
834
|
onClick: p
|
|
852
835
|
},
|
|
853
836
|
handleFiles: a,
|
|
854
|
-
handleReset:
|
|
837
|
+
handleReset: S
|
|
855
838
|
};
|
|
856
839
|
}
|
|
857
|
-
const
|
|
858
|
-
function
|
|
840
|
+
const Qt = ["application/JSON"];
|
|
841
|
+
function _e({
|
|
859
842
|
name: t,
|
|
860
|
-
buttonText:
|
|
861
|
-
accept:
|
|
843
|
+
buttonText: e,
|
|
844
|
+
accept: n,
|
|
862
845
|
files: r,
|
|
863
846
|
inProgress: i,
|
|
864
847
|
onChange: l,
|
|
865
848
|
multiple: s,
|
|
866
849
|
placeholder: g,
|
|
867
|
-
error:
|
|
868
|
-
focused:
|
|
850
|
+
error: b,
|
|
851
|
+
focused: v,
|
|
869
852
|
nativeInputProps: u,
|
|
870
853
|
...p
|
|
871
854
|
}) {
|
|
872
|
-
const
|
|
873
|
-
filesText:
|
|
874
|
-
getPlaceholder:
|
|
855
|
+
const h = n ?? Qt, x = bt(null), {
|
|
856
|
+
filesText: M,
|
|
857
|
+
getPlaceholder: f,
|
|
875
858
|
dragOver: a,
|
|
876
|
-
inputEvents:
|
|
877
|
-
handleFiles:
|
|
878
|
-
handleReset:
|
|
879
|
-
} =
|
|
880
|
-
uploadInputRef:
|
|
859
|
+
inputEvents: S,
|
|
860
|
+
handleFiles: m,
|
|
861
|
+
handleReset: B
|
|
862
|
+
} = Kt({
|
|
863
|
+
uploadInputRef: x,
|
|
881
864
|
files: r,
|
|
882
865
|
onChange: l,
|
|
883
866
|
multiple: s,
|
|
884
867
|
placeholder: g
|
|
885
868
|
});
|
|
886
|
-
return /* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
888
|
-
|
|
869
|
+
return /* @__PURE__ */ y(G, { children: [
|
|
870
|
+
/* @__PURE__ */ o(
|
|
871
|
+
Jt,
|
|
889
872
|
{
|
|
890
873
|
...p,
|
|
891
|
-
placeholder:
|
|
892
|
-
value:
|
|
893
|
-
error:
|
|
894
|
-
focused:
|
|
895
|
-
handleReset:
|
|
874
|
+
placeholder: f,
|
|
875
|
+
value: M,
|
|
876
|
+
error: b,
|
|
877
|
+
focused: v ?? a,
|
|
878
|
+
handleReset: B,
|
|
896
879
|
dragOver: a,
|
|
897
880
|
inProgress: i,
|
|
898
|
-
hasFiles: !!
|
|
899
|
-
InputProps:
|
|
900
|
-
buttonText:
|
|
881
|
+
hasFiles: !!M,
|
|
882
|
+
InputProps: S,
|
|
883
|
+
buttonText: e
|
|
901
884
|
}
|
|
902
885
|
),
|
|
903
|
-
/* @__PURE__ */
|
|
886
|
+
/* @__PURE__ */ o(
|
|
904
887
|
"input",
|
|
905
888
|
{
|
|
906
889
|
...u,
|
|
907
|
-
ref:
|
|
890
|
+
ref: x,
|
|
908
891
|
style: { display: "none" },
|
|
909
892
|
type: "file",
|
|
910
893
|
"aria-label": t,
|
|
911
894
|
name: t,
|
|
912
|
-
accept: String(
|
|
895
|
+
accept: String(h),
|
|
913
896
|
multiple: s,
|
|
914
|
-
onChange:
|
|
897
|
+
onChange: m
|
|
915
898
|
}
|
|
916
899
|
)
|
|
917
900
|
] });
|
|
918
901
|
}
|
|
919
|
-
const
|
|
902
|
+
const Xt = d("div", {
|
|
920
903
|
shouldForwardProp: (t) => t !== "variant"
|
|
921
|
-
})(({ variant: t, theme:
|
|
904
|
+
})(({ variant: t, theme: e }) => ({
|
|
922
905
|
width: "100%",
|
|
923
|
-
borderRadius:
|
|
906
|
+
borderRadius: e.spacing(0.5),
|
|
924
907
|
...t === "outlined" && {
|
|
925
|
-
backgroundColor:
|
|
926
|
-
boxShadow: `inset 0 0 0 1px ${
|
|
908
|
+
backgroundColor: e.palette.background.paper,
|
|
909
|
+
boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
|
|
927
910
|
}
|
|
928
911
|
}));
|
|
929
|
-
function
|
|
912
|
+
function Ve({
|
|
930
913
|
variant: t = "standard",
|
|
931
|
-
items:
|
|
932
|
-
...
|
|
914
|
+
items: e,
|
|
915
|
+
...n
|
|
933
916
|
}) {
|
|
934
|
-
return /* @__PURE__ */
|
|
917
|
+
return /* @__PURE__ */ o(Xt, { ...n, variant: t, children: e.map((r, i) => /* @__PURE__ */ y(
|
|
935
918
|
ct,
|
|
936
919
|
{
|
|
937
920
|
disabled: r.disabled,
|
|
938
921
|
defaultExpanded: r.defaultExpanded,
|
|
939
922
|
onChange: r.onChange,
|
|
940
923
|
children: [
|
|
941
|
-
/* @__PURE__ */
|
|
942
|
-
|
|
924
|
+
/* @__PURE__ */ o(
|
|
925
|
+
ut,
|
|
943
926
|
{
|
|
944
927
|
"aria-controls": `${i}-content`,
|
|
945
928
|
id: `${i}-header`,
|
|
946
929
|
children: r.summary
|
|
947
930
|
}
|
|
948
931
|
),
|
|
949
|
-
/* @__PURE__ */
|
|
932
|
+
/* @__PURE__ */ o(pt, { children: r.content })
|
|
950
933
|
]
|
|
951
934
|
},
|
|
952
935
|
i
|
|
953
936
|
)) });
|
|
954
937
|
}
|
|
955
|
-
const
|
|
956
|
-
function
|
|
938
|
+
const te = gt(), ee = "c4r.form.add";
|
|
939
|
+
function ne(t) {
|
|
957
940
|
return t && typeof t == "object" ? t.title ?? String(t) : String(t);
|
|
958
941
|
}
|
|
959
|
-
function
|
|
942
|
+
function oe({
|
|
960
943
|
creatable: t,
|
|
961
|
-
newItemLabel:
|
|
962
|
-
newItemIcon:
|
|
944
|
+
newItemLabel: e = ee,
|
|
945
|
+
newItemIcon: n,
|
|
963
946
|
freeSolo: r,
|
|
964
947
|
renderOption: i,
|
|
965
948
|
forcePopupIcon: l,
|
|
966
949
|
filterOptions: s,
|
|
967
|
-
getOptionLabel: g =
|
|
968
|
-
...
|
|
969
|
-
},
|
|
970
|
-
const u =
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
a
|
|
974
|
-
), { inputValue: h } = a, j = m.some(
|
|
975
|
-
(d) => h === g(d)
|
|
976
|
-
);
|
|
977
|
-
return h.length > 1 && h !== "" && !j && B.push({
|
|
978
|
-
inputValue: h,
|
|
979
|
-
title: typeof n == "function" ? n(h) : `${p.formatMessage({ id: n })} "${h}"`
|
|
980
|
-
}), B;
|
|
981
|
-
}, M = (m) => typeof m == "string" ? m : m.inputValue ? m.inputValue : g(m), f = (m, a) => /* @__PURE__ */ e.jsx(yt, { children: a.divider ? /* @__PURE__ */ e.jsx(D, {}) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
982
|
-
a.inputValue && /* @__PURE__ */ e.jsx(D, {}),
|
|
983
|
-
/* @__PURE__ */ e.jsxs(
|
|
984
|
-
Q,
|
|
985
|
-
{
|
|
986
|
-
...m,
|
|
987
|
-
fixed: a.fixed,
|
|
988
|
-
extended: a.extended,
|
|
989
|
-
dense: a.dense,
|
|
990
|
-
destructive: a.destructive,
|
|
991
|
-
disabled: a.disabled,
|
|
992
|
-
subtitle: a.subtitle,
|
|
993
|
-
iconColor: a.iconColor,
|
|
994
|
-
children: [
|
|
995
|
-
a.inputValue && /* @__PURE__ */ e.jsx(V, { children: o ?? /* @__PURE__ */ e.jsx(At, {}) }),
|
|
996
|
-
a.startAdornment && !a.inputValue && /* @__PURE__ */ e.jsx(V, { children: a.startAdornment }),
|
|
997
|
-
/* @__PURE__ */ e.jsxs(N, { children: [
|
|
998
|
-
a.alternativeTitle ?? a.title,
|
|
999
|
-
a.secondaryText && /* @__PURE__ */ e.jsx(
|
|
1000
|
-
T,
|
|
1001
|
-
{
|
|
1002
|
-
component: "p",
|
|
1003
|
-
variant: "caption",
|
|
1004
|
-
color: "text.secondary",
|
|
1005
|
-
children: a.secondaryText
|
|
1006
|
-
}
|
|
1007
|
-
)
|
|
1008
|
-
] }),
|
|
1009
|
-
a.endAdornment
|
|
1010
|
-
]
|
|
1011
|
-
}
|
|
1012
|
-
)
|
|
1013
|
-
] }) }, a.inputValue ?? a.title);
|
|
1014
|
-
return /* @__PURE__ */ e.jsx(
|
|
1015
|
-
gt,
|
|
950
|
+
getOptionLabel: g = ne,
|
|
951
|
+
...b
|
|
952
|
+
}, v) {
|
|
953
|
+
const u = E(), p = $(u);
|
|
954
|
+
return /* @__PURE__ */ o(
|
|
955
|
+
ft,
|
|
1016
956
|
{
|
|
1017
|
-
...
|
|
1018
|
-
ref:
|
|
1019
|
-
filterOptions: t ?
|
|
1020
|
-
|
|
1021
|
-
|
|
957
|
+
...b,
|
|
958
|
+
ref: v,
|
|
959
|
+
filterOptions: t ? (f, a) => {
|
|
960
|
+
const S = te(
|
|
961
|
+
f,
|
|
962
|
+
a
|
|
963
|
+
), { inputValue: m } = a, B = f.some(
|
|
964
|
+
(c) => m === g(c)
|
|
965
|
+
);
|
|
966
|
+
return m.length > 1 && m !== "" && !B && S.push({
|
|
967
|
+
inputValue: m,
|
|
968
|
+
title: typeof e == "function" ? e(m) : `${p.formatMessage({ id: e })} "${m}"`
|
|
969
|
+
}), S;
|
|
970
|
+
} : s,
|
|
971
|
+
getOptionLabel: t ? (f) => typeof f == "string" ? f : f.inputValue ? f.inputValue : g(f) : g,
|
|
972
|
+
renderOption: t ? (f, a) => /* @__PURE__ */ o(vt, { children: a.divider ? /* @__PURE__ */ o(D, {}) : /* @__PURE__ */ y(G, { children: [
|
|
973
|
+
a.inputValue && /* @__PURE__ */ o(D, {}),
|
|
974
|
+
/* @__PURE__ */ y(
|
|
975
|
+
X,
|
|
976
|
+
{
|
|
977
|
+
...f,
|
|
978
|
+
fixed: a.fixed,
|
|
979
|
+
extended: a.extended,
|
|
980
|
+
dense: a.dense,
|
|
981
|
+
destructive: a.destructive,
|
|
982
|
+
disabled: a.disabled,
|
|
983
|
+
subtitle: a.subtitle,
|
|
984
|
+
iconColor: a.iconColor,
|
|
985
|
+
children: [
|
|
986
|
+
a.inputValue && /* @__PURE__ */ o(U, { children: n ?? /* @__PURE__ */ o(Tt, {}) }),
|
|
987
|
+
a.startAdornment && !a.inputValue && /* @__PURE__ */ o(U, { children: a.startAdornment }),
|
|
988
|
+
/* @__PURE__ */ y(Y, { children: [
|
|
989
|
+
a.alternativeTitle ?? a.title,
|
|
990
|
+
a.secondaryText && /* @__PURE__ */ o(
|
|
991
|
+
T,
|
|
992
|
+
{
|
|
993
|
+
component: "p",
|
|
994
|
+
variant: "caption",
|
|
995
|
+
color: "text.secondary",
|
|
996
|
+
children: a.secondaryText
|
|
997
|
+
}
|
|
998
|
+
)
|
|
999
|
+
] }),
|
|
1000
|
+
a.endAdornment
|
|
1001
|
+
]
|
|
1002
|
+
}
|
|
1003
|
+
)
|
|
1004
|
+
] }) }, a.inputValue ?? a.title) : i,
|
|
1022
1005
|
freeSolo: t || r,
|
|
1023
1006
|
forcePopupIcon: t || l
|
|
1024
1007
|
}
|
|
1025
1008
|
);
|
|
1026
1009
|
}
|
|
1027
|
-
const
|
|
1010
|
+
const He = k(oe), j = {
|
|
1028
1011
|
large: 5,
|
|
1029
1012
|
medium: 4,
|
|
1030
1013
|
small: 3,
|
|
1031
1014
|
xsmall: 2.25
|
|
1032
|
-
},
|
|
1015
|
+
}, re = d(mt, {
|
|
1033
1016
|
shouldForwardProp: (t) => t !== "size"
|
|
1034
|
-
})(({ theme: t, size:
|
|
1035
|
-
width: t.spacing(
|
|
1036
|
-
height: t.spacing(
|
|
1017
|
+
})(({ theme: t, size: e = "medium" }) => ({
|
|
1018
|
+
width: t.spacing(j[e]),
|
|
1019
|
+
height: t.spacing(j[e]),
|
|
1037
1020
|
...t.typography.subtitle1,
|
|
1038
|
-
...
|
|
1021
|
+
...e === "large" && {
|
|
1039
1022
|
...t.typography.h6
|
|
1040
1023
|
},
|
|
1041
|
-
...
|
|
1024
|
+
...e === "small" && {
|
|
1042
1025
|
...t.typography.caption,
|
|
1043
1026
|
fontWeight: 500
|
|
1044
1027
|
},
|
|
1045
|
-
...
|
|
1028
|
+
...e === "xsmall" && {
|
|
1046
1029
|
...t.typography.caption,
|
|
1047
1030
|
fontWeight: 500,
|
|
1048
1031
|
svg: {
|
|
1049
|
-
width:
|
|
1050
|
-
height:
|
|
1032
|
+
width: F,
|
|
1033
|
+
height: F
|
|
1051
1034
|
}
|
|
1052
1035
|
}
|
|
1053
1036
|
}));
|
|
1054
|
-
function
|
|
1055
|
-
return /* @__PURE__ */
|
|
1037
|
+
function We(t) {
|
|
1038
|
+
return /* @__PURE__ */ o(re, { ...t });
|
|
1056
1039
|
}
|
|
1057
|
-
const
|
|
1040
|
+
const ie = d("div")(({ theme: t }) => ({
|
|
1058
1041
|
display: "flex",
|
|
1059
1042
|
alignItems: "center",
|
|
1060
|
-
height:
|
|
1043
|
+
height: xt,
|
|
1061
1044
|
marginRight: t.spacing(1.5)
|
|
1062
|
-
})),
|
|
1045
|
+
})), ae = d(P)(({ theme: t }) => ({
|
|
1063
1046
|
marginRight: t.spacing(1),
|
|
1064
1047
|
"&.MuiButtonBase-root svg path": {
|
|
1065
1048
|
fill: t.palette.brand.appBarContrastText
|
|
1066
1049
|
}
|
|
1067
|
-
})),
|
|
1068
|
-
borderColor:
|
|
1050
|
+
})), le = d(D)(({ theme: t }) => ({
|
|
1051
|
+
borderColor: ht(t.palette.brand.appBarContrastText, 0.12)
|
|
1069
1052
|
}));
|
|
1070
|
-
function
|
|
1053
|
+
function se({
|
|
1071
1054
|
onClickMenu: t
|
|
1072
1055
|
}) {
|
|
1073
1056
|
return (
|
|
1074
1057
|
// replacing deprecated `<Hidden />` with sx following this MUI5 guide:
|
|
1075
1058
|
// https://mui.com/material-ui/migration/v5-component-changes/#hidden
|
|
1076
|
-
/* @__PURE__ */
|
|
1077
|
-
|
|
1059
|
+
/* @__PURE__ */ o(
|
|
1060
|
+
w,
|
|
1078
1061
|
{
|
|
1079
1062
|
sx: {
|
|
1080
1063
|
display: { md: "none", xs: "block" }
|
|
1081
1064
|
},
|
|
1082
|
-
children: /* @__PURE__ */
|
|
1083
|
-
/* @__PURE__ */
|
|
1084
|
-
/* @__PURE__ */
|
|
1065
|
+
children: /* @__PURE__ */ y(ie, { children: [
|
|
1066
|
+
/* @__PURE__ */ o(ae, { onClick: t, children: /* @__PURE__ */ o(At, {}) }),
|
|
1067
|
+
/* @__PURE__ */ o(le, { orientation: "vertical", flexItem: !0 })
|
|
1085
1068
|
] })
|
|
1086
1069
|
}
|
|
1087
1070
|
)
|
|
1088
1071
|
);
|
|
1089
1072
|
}
|
|
1090
|
-
const
|
|
1073
|
+
const de = d("div")(({ theme: t }) => ({
|
|
1091
1074
|
display: "flex",
|
|
1092
1075
|
marginRight: t.spacing(1.5),
|
|
1093
1076
|
"& a": {
|
|
@@ -1098,27 +1081,27 @@ const me = c("div")(({ theme: t }) => ({
|
|
|
1098
1081
|
height: t.spacing(4)
|
|
1099
1082
|
}
|
|
1100
1083
|
}));
|
|
1101
|
-
function
|
|
1102
|
-
return /* @__PURE__ */
|
|
1084
|
+
function ce({ logo: t }) {
|
|
1085
|
+
return /* @__PURE__ */ o(de, { children: t });
|
|
1103
1086
|
}
|
|
1104
|
-
const
|
|
1087
|
+
const ue = H(T)({
|
|
1105
1088
|
display: "flex",
|
|
1106
1089
|
alignItems: "center",
|
|
1107
1090
|
whiteSpace: "nowrap"
|
|
1108
1091
|
});
|
|
1109
|
-
function
|
|
1110
|
-
const
|
|
1111
|
-
return /* @__PURE__ */
|
|
1112
|
-
|
|
1092
|
+
function pe({ text: t }) {
|
|
1093
|
+
const e = Q();
|
|
1094
|
+
return /* @__PURE__ */ o(
|
|
1095
|
+
ue,
|
|
1113
1096
|
{
|
|
1114
1097
|
component: "span",
|
|
1115
1098
|
variant: "subtitle1",
|
|
1116
|
-
color:
|
|
1099
|
+
color: e.palette.brand.appBarContrastText,
|
|
1117
1100
|
children: t
|
|
1118
1101
|
}
|
|
1119
1102
|
);
|
|
1120
1103
|
}
|
|
1121
|
-
const
|
|
1104
|
+
const ge = H(T)(({ theme: t }) => ({
|
|
1122
1105
|
display: "flex",
|
|
1123
1106
|
alignItems: "center",
|
|
1124
1107
|
"&::before": {
|
|
@@ -1128,20 +1111,20 @@ const be = G(T)(({ theme: t }) => ({
|
|
|
1128
1111
|
color: t.palette.brand.appBarContrastText
|
|
1129
1112
|
}
|
|
1130
1113
|
}));
|
|
1131
|
-
function
|
|
1132
|
-
const
|
|
1133
|
-
return /* @__PURE__ */
|
|
1134
|
-
|
|
1114
|
+
function fe({ text: t }) {
|
|
1115
|
+
const e = Q();
|
|
1116
|
+
return /* @__PURE__ */ o(
|
|
1117
|
+
ge,
|
|
1135
1118
|
{
|
|
1136
1119
|
component: "span",
|
|
1137
1120
|
variant: "body2",
|
|
1138
1121
|
weight: "strong",
|
|
1139
|
-
color:
|
|
1122
|
+
color: e.palette.brand.appBarContrastText,
|
|
1140
1123
|
children: t
|
|
1141
1124
|
}
|
|
1142
1125
|
);
|
|
1143
1126
|
}
|
|
1144
|
-
const
|
|
1127
|
+
const me = d(Mt)(({ theme: t }) => ({
|
|
1145
1128
|
backgroundColor: t.palette.brand.appBarMain,
|
|
1146
1129
|
"& .MuiTypography-root": {
|
|
1147
1130
|
color: t.palette.brand.appBarContrastText
|
|
@@ -1149,7 +1132,7 @@ const je = c(mt)(({ theme: t }) => ({
|
|
|
1149
1132
|
"& .MuiIconButton-root path": {
|
|
1150
1133
|
fill: t.palette.brand.appBarContrastText
|
|
1151
1134
|
}
|
|
1152
|
-
})),
|
|
1135
|
+
})), he = d("div")(({ theme: t }) => ({
|
|
1153
1136
|
display: "flex",
|
|
1154
1137
|
alignItems: "center",
|
|
1155
1138
|
maxWidth: "calc(100% - 300px)",
|
|
@@ -1157,93 +1140,93 @@ const je = c(mt)(({ theme: t }) => ({
|
|
|
1157
1140
|
[t.breakpoints.down("sm")]: {
|
|
1158
1141
|
minWidth: "192px"
|
|
1159
1142
|
}
|
|
1160
|
-
})),
|
|
1143
|
+
})), Me = d("div")(({ theme: t }) => ({
|
|
1161
1144
|
display: "flex",
|
|
1162
1145
|
alignItems: "center",
|
|
1163
1146
|
justifyContent: "space-between",
|
|
1164
1147
|
flex: 1,
|
|
1165
1148
|
marginLeft: t.spacing(1)
|
|
1166
1149
|
}));
|
|
1167
|
-
function
|
|
1150
|
+
function Ue({
|
|
1168
1151
|
children: t,
|
|
1169
|
-
brandLogo:
|
|
1170
|
-
brandText:
|
|
1152
|
+
brandLogo: e,
|
|
1153
|
+
brandText: n,
|
|
1171
1154
|
secondaryText: r,
|
|
1172
1155
|
showBurgerMenu: i = !1,
|
|
1173
1156
|
onClickMenu: l,
|
|
1174
1157
|
...s
|
|
1175
1158
|
}) {
|
|
1176
|
-
return /* @__PURE__ */
|
|
1177
|
-
/* @__PURE__ */
|
|
1178
|
-
i && /* @__PURE__ */
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
r && /* @__PURE__ */
|
|
1159
|
+
return /* @__PURE__ */ o(me, { ...s, children: /* @__PURE__ */ y(yt, { children: [
|
|
1160
|
+
/* @__PURE__ */ y(he, { children: [
|
|
1161
|
+
i && /* @__PURE__ */ o(se, { onClickMenu: l }),
|
|
1162
|
+
e && /* @__PURE__ */ o(ce, { logo: e }),
|
|
1163
|
+
n && /* @__PURE__ */ o(pe, { text: n }),
|
|
1164
|
+
r && /* @__PURE__ */ o(fe, { text: r })
|
|
1182
1165
|
] }),
|
|
1183
|
-
/* @__PURE__ */
|
|
1166
|
+
/* @__PURE__ */ o(Me, { children: t })
|
|
1184
1167
|
] }) });
|
|
1185
1168
|
}
|
|
1186
|
-
const
|
|
1169
|
+
const ye = [{ outlinedBullet: !1, value: "" }], be = d("ul")(({ theme: t }) => ({
|
|
1187
1170
|
listStyle: "none",
|
|
1188
1171
|
paddingLeft: 0,
|
|
1189
1172
|
margin: t.spacing(0.5, 0, 0, 0)
|
|
1190
|
-
})),
|
|
1173
|
+
})), ve = d("li")(({ theme: t }) => ({
|
|
1191
1174
|
display: "flex",
|
|
1192
1175
|
alignItems: "center",
|
|
1193
1176
|
justifyContent: "space-between",
|
|
1194
1177
|
"&:not(:last-child)": {
|
|
1195
1178
|
marginBottom: t.spacing(0.5)
|
|
1196
1179
|
}
|
|
1197
|
-
})),
|
|
1180
|
+
})), xe = d("span")(({ theme: t }) => ({
|
|
1198
1181
|
width: t.spacing(1),
|
|
1199
1182
|
height: t.spacing(1),
|
|
1200
1183
|
marginRight: t.spacing(0.5),
|
|
1201
1184
|
border: `2px solid ${t.palette.qualitative.bold[1]}`,
|
|
1202
1185
|
borderRadius: "50%",
|
|
1203
1186
|
backgroundColor: t.palette.qualitative.bold[1]
|
|
1204
|
-
})),
|
|
1187
|
+
})), Ie = d(T)(({ theme: t }) => ({
|
|
1205
1188
|
minWidth: t.spacing(10),
|
|
1206
1189
|
marginRight: t.spacing(1.5)
|
|
1207
1190
|
}));
|
|
1208
|
-
function
|
|
1209
|
-
items: t =
|
|
1210
|
-
title:
|
|
1191
|
+
function je({
|
|
1192
|
+
items: t = ye,
|
|
1193
|
+
title: e
|
|
1211
1194
|
}) {
|
|
1212
|
-
return /* @__PURE__ */
|
|
1213
|
-
|
|
1214
|
-
/* @__PURE__ */
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
|
|
1195
|
+
return /* @__PURE__ */ y(G, { children: [
|
|
1196
|
+
e && /* @__PURE__ */ o(T, { color: "inherit", variant: "caption", weight: "medium", children: e }),
|
|
1197
|
+
/* @__PURE__ */ o(be, { children: t.map((n, r) => /* @__PURE__ */ y(ve, { children: [
|
|
1198
|
+
/* @__PURE__ */ o(
|
|
1199
|
+
xe,
|
|
1217
1200
|
{
|
|
1218
1201
|
style: {
|
|
1219
|
-
backgroundColor: `${
|
|
1220
|
-
borderColor:
|
|
1202
|
+
backgroundColor: `${n.outlinedBullet ? "transparent" : n.color}`,
|
|
1203
|
+
borderColor: n.color
|
|
1221
1204
|
}
|
|
1222
1205
|
}
|
|
1223
1206
|
),
|
|
1224
|
-
|
|
1225
|
-
/* @__PURE__ */
|
|
1207
|
+
n.category && /* @__PURE__ */ o(Ie, { color: "inherit", variant: "caption", children: n.category }),
|
|
1208
|
+
/* @__PURE__ */ o(T, { color: "inherit", variant: "caption", weight: "medium", children: n.value })
|
|
1226
1209
|
] }, r)) })
|
|
1227
1210
|
] });
|
|
1228
1211
|
}
|
|
1229
1212
|
export {
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1213
|
+
Ve as AccordionGroup,
|
|
1214
|
+
Ne as Alert,
|
|
1215
|
+
Ue as AppBar,
|
|
1216
|
+
He as Autocomplete,
|
|
1217
|
+
We as Avatar,
|
|
1218
|
+
ke as Button,
|
|
1219
|
+
$e as LabelWithIndicator,
|
|
1220
|
+
Oe as Menu,
|
|
1221
|
+
X as MenuItem,
|
|
1222
|
+
De as MenuList,
|
|
1223
|
+
Ge as MultipleSelectField,
|
|
1224
|
+
Ee as PasswordField,
|
|
1225
|
+
Rt as SelectField,
|
|
1226
|
+
Ye as TablePaginationActions,
|
|
1227
|
+
Re as ToggleButtonGroup,
|
|
1228
|
+
je as TooltipData,
|
|
1246
1229
|
T as Typography,
|
|
1247
|
-
|
|
1248
|
-
|
|
1230
|
+
_e as UploadField,
|
|
1231
|
+
Jt as UploadFieldBase
|
|
1249
1232
|
};
|