@carto/meridian-ds 1.4.3-alpha-codemirror.3 → 1.4.3-alpha-codemirror.5
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/dist/components/index.cjs +2 -2
- package/dist/components/index.js +668 -676
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +4 -4
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +1 -2
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +1 -1
- package/dist/types/components/organisms/CodeArea/types.d.ts +0 -1
- package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/components/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { forwardRef as O, useState as
|
|
3
|
-
import { styled as m, Box as w, Button as St, CircularProgress as G, TextField as It, InputAdornment as it, IconButton as
|
|
4
|
-
import { T as F, c as N, u as
|
|
5
|
-
import { a as
|
|
1
|
+
import { jsx as n, jsxs as x, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, useState as B, useEffect as z, useMemo as At, useRef as Z, Fragment as Qt, useCallback as ot, useImperativeHandle as te } from "react";
|
|
3
|
+
import { styled as m, Box as w, Button as St, CircularProgress as G, TextField as It, InputAdornment as it, IconButton as E, Tooltip as P, Select as ee, MenuItem as Bt, FormControl as $t, InputLabel as Tt, FormHelperText as J, ToggleButtonGroup as oe, Menu as re, MenuList as ne, Link as ie, Checkbox as at, ListItemText as U, Autocomplete as lt, Divider as _, ListItemIcon as rt, createFilterOptions as ae, Accordion as le, AccordionSummary as ce, AccordionDetails as de, Avatar as se, Snackbar as ue, Portal as pe, Fade as ge, Slide as Rt, alpha as Ot, useTheme as j, Toolbar as fe, AppBar as me, Paper as be, Dialog as he, DialogTitle as xe, Chip as ye, DialogContent as Ce, DialogActions as Me } from "@mui/material";
|
|
4
|
+
import { T as F, c as N, u as $, N as ft, A as ke } from "../TablePaginationActions-Cj_BbjKR.js";
|
|
5
|
+
import { a as ti } from "../TablePaginationActions-Cj_BbjKR.js";
|
|
6
6
|
import { useIntl as T } from "react-intl";
|
|
7
|
-
import { VisibilityOffOutlined as
|
|
7
|
+
import { VisibilityOffOutlined as ve, VisibilityOutlined as we, Cancel as Ft, AddCircleOutlineOutlined as De, ContentCopyOutlined as Lt, CloseOutlined as Wt, MenuOutlined as Ae, HelpOutline as K, TodayOutlined as Se, MoreVertOutlined as Ie, ErrorOutline as Be, Check as $e } from "@mui/icons-material";
|
|
8
8
|
import { A as Et } from "../Alert-mpNEqtBu.js";
|
|
9
9
|
import "cartocolor";
|
|
10
10
|
import { M as Y } from "../MenuItem-Cd34y6F3.js";
|
|
11
11
|
import { A as ct } from "../ArrowDown-CMhYkZ2p.js";
|
|
12
|
-
import { DatePicker as
|
|
13
|
-
import { PickersDay as
|
|
14
|
-
import { TimePicker as
|
|
15
|
-
import { DateTimePicker as
|
|
16
|
-
import { O as mt, C as
|
|
17
|
-
import { Controlled as
|
|
18
|
-
import { lime as bt, blue as tt, purple as
|
|
12
|
+
import { DatePicker as Te } from "@mui/x-date-pickers/DatePicker";
|
|
13
|
+
import { PickersDay as Re } from "@mui/x-date-pickers";
|
|
14
|
+
import { TimePicker as Oe } from "@mui/x-date-pickers/TimePicker";
|
|
15
|
+
import { DateTimePicker as Fe } from "@mui/x-date-pickers/DateTimePicker";
|
|
16
|
+
import { O as mt, C as Le } from "../OpenDiagonallyRight-BkCaUpcr.js";
|
|
17
|
+
import { Controlled as We, UnControlled as Ee } from "react-codemirror2";
|
|
18
|
+
import { lime as bt, blue as tt, purple as He, teal as Pe, red as ze, indigo as Ne } from "@mui/material/colors";
|
|
19
19
|
import "codemirror/lib/codemirror.css";
|
|
20
20
|
import "codemirror/lib/codemirror.js";
|
|
21
21
|
import "codemirror/mode/sql/sql.js";
|
|
@@ -38,8 +38,8 @@ import "codemirror/addon/fold/xml-fold.js";
|
|
|
38
38
|
import "codemirror/addon/fold/indent-fold.js";
|
|
39
39
|
import "codemirror/addon/fold/markdown-fold.js";
|
|
40
40
|
import "codemirror/addon/fold/comment-fold.js";
|
|
41
|
-
import
|
|
42
|
-
const
|
|
41
|
+
import _e from "@mui/material/ClickAwayListener";
|
|
42
|
+
const Ge = m(w)({
|
|
43
43
|
position: "absolute",
|
|
44
44
|
top: 0,
|
|
45
45
|
left: 0,
|
|
@@ -48,11 +48,11 @@ const je = m(w)({
|
|
|
48
48
|
display: "flex",
|
|
49
49
|
alignItems: "center",
|
|
50
50
|
justifyContent: "center"
|
|
51
|
-
}),
|
|
51
|
+
}), je = m(w)({
|
|
52
52
|
visibility: "hidden",
|
|
53
53
|
pointerEvents: "none"
|
|
54
54
|
});
|
|
55
|
-
function
|
|
55
|
+
function Ve({
|
|
56
56
|
children: t,
|
|
57
57
|
loading: e,
|
|
58
58
|
disabled: o,
|
|
@@ -61,11 +61,11 @@ function Ue({
|
|
|
61
61
|
loadingPosition: l,
|
|
62
62
|
...a
|
|
63
63
|
}, c) {
|
|
64
|
-
const d = /* @__PURE__ */ n(G, { size: 18, color: "inherit" }),
|
|
65
|
-
/* @__PURE__ */ n(
|
|
66
|
-
/* @__PURE__ */ n(
|
|
64
|
+
const d = /* @__PURE__ */ n(G, { size: 18, color: "inherit" }), p = e && l === void 0, u = () => p ? /* @__PURE__ */ x(w, { sx: { position: "relative" }, children: [
|
|
65
|
+
/* @__PURE__ */ n(Ge, { children: d }),
|
|
66
|
+
/* @__PURE__ */ n(je, { children: t })
|
|
67
67
|
] }) : t, s = (b) => {
|
|
68
|
-
if (!
|
|
68
|
+
if (!p)
|
|
69
69
|
return e && l !== void 0 ? l === b ? d : void 0 : b === "start" ? r : i;
|
|
70
70
|
};
|
|
71
71
|
return /* @__PURE__ */ n(
|
|
@@ -77,19 +77,19 @@ function Ue({
|
|
|
77
77
|
...a,
|
|
78
78
|
role: a.href ? "link" : "button",
|
|
79
79
|
ref: c,
|
|
80
|
-
children: /* @__PURE__ */ n(F, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children:
|
|
80
|
+
children: /* @__PURE__ */ n(F, { variant: "inherit", color: "inherit", noWrap: !0, component: "span", children: u() })
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
|
-
const nt = O(
|
|
84
|
+
const nt = O(Ve), Ue = m(w)(({ theme: t }) => ({
|
|
85
85
|
display: "flex",
|
|
86
86
|
alignItems: "center",
|
|
87
87
|
gap: t.spacing(0.5)
|
|
88
|
-
})),
|
|
88
|
+
})), Ye = m(F)(({ theme: t }) => ({
|
|
89
89
|
".Mui-disabled &": {
|
|
90
90
|
color: t.palette.text.disabled
|
|
91
91
|
}
|
|
92
|
-
})),
|
|
92
|
+
})), qe = m(w)(({ theme: t }) => ({
|
|
93
93
|
display: "flex",
|
|
94
94
|
svg: {
|
|
95
95
|
width: N,
|
|
@@ -109,10 +109,10 @@ function X({
|
|
|
109
109
|
icon: o,
|
|
110
110
|
inheritSize: r
|
|
111
111
|
}) {
|
|
112
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ x(Ue, { children: [
|
|
113
113
|
t,
|
|
114
114
|
e && /* @__PURE__ */ n(
|
|
115
|
-
|
|
115
|
+
Ye,
|
|
116
116
|
{
|
|
117
117
|
component: "span",
|
|
118
118
|
variant: r ? "inherit" : "caption",
|
|
@@ -121,11 +121,11 @@ function X({
|
|
|
121
121
|
children: e === "required" ? "(required)" : "(optional)"
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
|
-
o && /* @__PURE__ */ n(
|
|
124
|
+
o && /* @__PURE__ */ n(qe, { children: o })
|
|
125
125
|
] });
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
const i = T(), l =
|
|
127
|
+
function Ze({ InputProps: t, size: e = "small", ...o }, r) {
|
|
128
|
+
const i = T(), l = $(i), [a, c] = B(!1);
|
|
129
129
|
return /* @__PURE__ */ n(
|
|
130
130
|
It,
|
|
131
131
|
{
|
|
@@ -135,26 +135,26 @@ function Je({ InputProps: t, size: e = "small", ...o }, r) {
|
|
|
135
135
|
size: e,
|
|
136
136
|
InputProps: {
|
|
137
137
|
...t,
|
|
138
|
-
endAdornment: /* @__PURE__ */ n(it, { position: "end", children: /* @__PURE__ */ n(
|
|
138
|
+
endAdornment: /* @__PURE__ */ n(it, { position: "end", children: /* @__PURE__ */ n(E, { size: e, onClick: () => c(!a), children: /* @__PURE__ */ n(
|
|
139
139
|
P,
|
|
140
140
|
{
|
|
141
141
|
title: l.formatMessage({
|
|
142
142
|
id: `c4r.form.${a ? "hidePassword" : "showPassword"}`
|
|
143
143
|
}),
|
|
144
|
-
children: a ? /* @__PURE__ */ n(
|
|
144
|
+
children: a ? /* @__PURE__ */ n(ve, {}) : /* @__PURE__ */ n(we, {})
|
|
145
145
|
}
|
|
146
146
|
) }) })
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
152
|
-
function
|
|
151
|
+
const Fn = O(Ze), et = {};
|
|
152
|
+
function Je(t = "$lodash$") {
|
|
153
153
|
et[t] || (et[t] = 0);
|
|
154
154
|
const e = ++et[t];
|
|
155
155
|
return t === "$lodash$" ? `${e}` : `${t}${e}`;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const Ke = m(ee)(({ theme: t }) => ({
|
|
158
158
|
"& .MuiInputAdornment-positionStart": {
|
|
159
159
|
paddingLeft: t.spacing(2),
|
|
160
160
|
"&.MuiInputAdornment-sizeSmall": {
|
|
@@ -170,10 +170,10 @@ const Xe = m(oe)(({ theme: t }) => ({
|
|
|
170
170
|
"&.MuiInputBase-root .MuiSelect-select.MuiSelect-multiple": {
|
|
171
171
|
paddingRight: t.spacing(7)
|
|
172
172
|
}
|
|
173
|
-
})),
|
|
173
|
+
})), Xe = m(Bt)(() => ({
|
|
174
174
|
display: "none"
|
|
175
175
|
}));
|
|
176
|
-
function
|
|
176
|
+
function Qe({
|
|
177
177
|
children: t,
|
|
178
178
|
placeholder: e,
|
|
179
179
|
size: o = "small",
|
|
@@ -183,46 +183,46 @@ function to({
|
|
|
183
183
|
labelId: a,
|
|
184
184
|
label: c,
|
|
185
185
|
labelSecondary: d,
|
|
186
|
-
helperText:
|
|
187
|
-
name:
|
|
186
|
+
helperText: p,
|
|
187
|
+
name: u,
|
|
188
188
|
error: s,
|
|
189
189
|
focused: b,
|
|
190
190
|
disabled: g,
|
|
191
191
|
fullWidth: f,
|
|
192
|
-
required:
|
|
193
|
-
"aria-label":
|
|
192
|
+
required: M,
|
|
193
|
+
"aria-label": h,
|
|
194
194
|
...v
|
|
195
195
|
}, k) {
|
|
196
|
-
const D = o === "small", [
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
|
|
196
|
+
const D = o === "small", [y] = B(() => Je("select-label-")), C = c ? a ?? y : void 0;
|
|
197
|
+
return /* @__PURE__ */ x(
|
|
198
|
+
$t,
|
|
199
199
|
{
|
|
200
200
|
size: o,
|
|
201
201
|
error: s,
|
|
202
202
|
focused: b,
|
|
203
203
|
disabled: g,
|
|
204
204
|
fullWidth: f,
|
|
205
|
-
required:
|
|
205
|
+
required: M,
|
|
206
206
|
"data-name": "select-field",
|
|
207
207
|
"data-size": o,
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
c && /* @__PURE__ */ n(Tt, { shrink: !0, id:
|
|
209
|
+
/* @__PURE__ */ x(w, { display: "flex", alignItems: "center", justifyContent: "space-between", children: [
|
|
210
|
+
c && /* @__PURE__ */ n(Tt, { shrink: !0, id: C, children: c }),
|
|
211
211
|
d && /* @__PURE__ */ n(w, { display: "flex", alignItems: "center", ml: 2, mb: 0.5, children: d })
|
|
212
212
|
] }),
|
|
213
|
-
/* @__PURE__ */
|
|
214
|
-
|
|
213
|
+
/* @__PURE__ */ x(
|
|
214
|
+
Ke,
|
|
215
215
|
{
|
|
216
216
|
...v,
|
|
217
|
-
labelId:
|
|
218
|
-
name:
|
|
217
|
+
labelId: C,
|
|
218
|
+
name: u,
|
|
219
219
|
ref: k,
|
|
220
220
|
size: o,
|
|
221
221
|
fullWidth: f,
|
|
222
222
|
displayEmpty: r ?? !!e,
|
|
223
223
|
inputProps: {
|
|
224
224
|
...l,
|
|
225
|
-
"aria-label":
|
|
225
|
+
"aria-label": h
|
|
226
226
|
},
|
|
227
227
|
MenuProps: {
|
|
228
228
|
...i,
|
|
@@ -239,7 +239,7 @@ function to({
|
|
|
239
239
|
}
|
|
240
240
|
},
|
|
241
241
|
children: [
|
|
242
|
-
e && /* @__PURE__ */ n(
|
|
242
|
+
e && /* @__PURE__ */ n(Xe, { disabled: !0, value: "", children: /* @__PURE__ */ n(
|
|
243
243
|
F,
|
|
244
244
|
{
|
|
245
245
|
variant: D ? "body2" : "body1",
|
|
@@ -252,12 +252,12 @@ function to({
|
|
|
252
252
|
]
|
|
253
253
|
}
|
|
254
254
|
),
|
|
255
|
-
|
|
255
|
+
p && /* @__PURE__ */ n(J, { "aria-label": `${u}-helper`, children: p })
|
|
256
256
|
]
|
|
257
257
|
}
|
|
258
258
|
);
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const to = O(Qe), eo = m(oe, {
|
|
261
261
|
shouldForwardProp: (t) => t !== "variant" && t !== "backgroundColor"
|
|
262
262
|
})(({ variant: t, backgroundColor: e, theme: o }) => ({
|
|
263
263
|
// Variants
|
|
@@ -329,14 +329,14 @@ const eo = O(to), oo = m(re, {
|
|
|
329
329
|
backgroundColor: "transparent"
|
|
330
330
|
}
|
|
331
331
|
}));
|
|
332
|
-
function
|
|
332
|
+
function Ln({
|
|
333
333
|
children: t,
|
|
334
334
|
variant: e = "floating",
|
|
335
335
|
backgroundColor: o,
|
|
336
336
|
...r
|
|
337
337
|
}) {
|
|
338
338
|
return /* @__PURE__ */ n(
|
|
339
|
-
|
|
339
|
+
eo,
|
|
340
340
|
{
|
|
341
341
|
...r,
|
|
342
342
|
variant: e,
|
|
@@ -345,7 +345,7 @@ function Wn({
|
|
|
345
345
|
}
|
|
346
346
|
);
|
|
347
347
|
}
|
|
348
|
-
const
|
|
348
|
+
const oo = m("div")(({ theme: t }) => ({
|
|
349
349
|
position: "relative",
|
|
350
350
|
display: "inline-flex",
|
|
351
351
|
// TODO: Remove this once we have a better way to handle the spacing between icon buttons:
|
|
@@ -353,7 +353,7 @@ const ro = m("div")(({ theme: t }) => ({
|
|
|
353
353
|
"& + &, & + .optionIconButton": {
|
|
354
354
|
marginLeft: t.spacing(0.5)
|
|
355
355
|
}
|
|
356
|
-
})),
|
|
356
|
+
})), ro = m(E, {
|
|
357
357
|
shouldForwardProp: (t) => !["active"].includes(t)
|
|
358
358
|
})(({ active: t, theme: e }) => ({
|
|
359
359
|
...t && {
|
|
@@ -364,7 +364,7 @@ const ro = m("div")(({ theme: t }) => ({
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
}));
|
|
367
|
-
function
|
|
367
|
+
function no({
|
|
368
368
|
tooltip: t,
|
|
369
369
|
tooltipPlacement: e = "top",
|
|
370
370
|
icon: o,
|
|
@@ -374,26 +374,26 @@ function io({
|
|
|
374
374
|
sx: a,
|
|
375
375
|
className: c,
|
|
376
376
|
loading: d,
|
|
377
|
-
disabled:
|
|
378
|
-
active:
|
|
377
|
+
disabled: p,
|
|
378
|
+
active: u,
|
|
379
379
|
...s
|
|
380
380
|
}, b) {
|
|
381
381
|
return /* @__PURE__ */ n(P, { placement: e, title: t ?? "", children: /* @__PURE__ */ n(
|
|
382
|
-
|
|
382
|
+
oo,
|
|
383
383
|
{
|
|
384
384
|
className: `optionIconButton ${c ?? ""}`,
|
|
385
385
|
sx: a,
|
|
386
386
|
"data-testid": "icon-button",
|
|
387
387
|
children: /* @__PURE__ */ n(
|
|
388
|
-
|
|
388
|
+
ro,
|
|
389
389
|
{
|
|
390
390
|
...s,
|
|
391
391
|
ref: b,
|
|
392
392
|
size: r,
|
|
393
393
|
variant: i,
|
|
394
394
|
color: l,
|
|
395
|
-
active:
|
|
396
|
-
disabled:
|
|
395
|
+
active: u,
|
|
396
|
+
disabled: p || d,
|
|
397
397
|
role: "button",
|
|
398
398
|
children: d ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : o
|
|
399
399
|
}
|
|
@@ -401,7 +401,7 @@ function io({
|
|
|
401
401
|
}
|
|
402
402
|
) });
|
|
403
403
|
}
|
|
404
|
-
const q = O(
|
|
404
|
+
const q = O(no), io = m(re, {
|
|
405
405
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
406
406
|
})(({ theme: t, extended: e, width: o, height: r }) => ({
|
|
407
407
|
...e && {
|
|
@@ -424,9 +424,9 @@ const q = O(io), ao = m(ne, {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
}));
|
|
427
|
-
function
|
|
427
|
+
function ao({ extended: t, width: e, height: o, MenuListProps: r, ...i }, l) {
|
|
428
428
|
return /* @__PURE__ */ n(
|
|
429
|
-
|
|
429
|
+
io,
|
|
430
430
|
{
|
|
431
431
|
...i,
|
|
432
432
|
ref: l,
|
|
@@ -443,7 +443,7 @@ function lo({ extended: t, width: e, height: o, MenuListProps: r, ...i }, l) {
|
|
|
443
443
|
}
|
|
444
444
|
);
|
|
445
445
|
}
|
|
446
|
-
const
|
|
446
|
+
const lo = O(ao), co = m(ne, {
|
|
447
447
|
shouldForwardProp: (t) => !["extended", "width", "height"].includes(t)
|
|
448
448
|
})(({ theme: t, extended: e, width: o, height: r }) => ({
|
|
449
449
|
...e && {
|
|
@@ -461,9 +461,9 @@ const co = O(lo), so = m(ie, {
|
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
463
|
}));
|
|
464
|
-
function
|
|
464
|
+
function so({ extended: t, width: e, height: o, ...r }, i) {
|
|
465
465
|
return /* @__PURE__ */ n(
|
|
466
|
-
|
|
466
|
+
co,
|
|
467
467
|
{
|
|
468
468
|
...r,
|
|
469
469
|
ref: i,
|
|
@@ -477,9 +477,9 @@ function uo({ extended: t, width: e, height: o, ...r }, i) {
|
|
|
477
477
|
}
|
|
478
478
|
);
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const Wn = O(so), uo = m(Y)(() => ({
|
|
481
481
|
marginTop: "0 !important"
|
|
482
|
-
})),
|
|
482
|
+
})), po = m(ie)(
|
|
483
483
|
({ disabled: t, theme: e }) => ({
|
|
484
484
|
display: "flex",
|
|
485
485
|
alignItems: "center",
|
|
@@ -492,7 +492,7 @@ const En = O(uo), po = m(Y)(() => ({
|
|
|
492
492
|
}
|
|
493
493
|
})
|
|
494
494
|
);
|
|
495
|
-
function
|
|
495
|
+
function go({
|
|
496
496
|
areAllSelected: t,
|
|
497
497
|
areAnySelected: e,
|
|
498
498
|
selectAll: o,
|
|
@@ -500,17 +500,17 @@ function fo({
|
|
|
500
500
|
"aria-label": i,
|
|
501
501
|
"data-testid": l
|
|
502
502
|
}, a) {
|
|
503
|
-
const c = T(), d =
|
|
503
|
+
const c = T(), d = $(c);
|
|
504
504
|
return /* @__PURE__ */ n(
|
|
505
|
-
|
|
505
|
+
uo,
|
|
506
506
|
{
|
|
507
507
|
ref: a,
|
|
508
508
|
fixed: !0,
|
|
509
509
|
"data-name": "menu-filter",
|
|
510
510
|
"aria-label": i,
|
|
511
511
|
"data-testid": l,
|
|
512
|
-
children: /* @__PURE__ */
|
|
513
|
-
|
|
512
|
+
children: /* @__PURE__ */ x(
|
|
513
|
+
po,
|
|
514
514
|
{
|
|
515
515
|
variant: "body2",
|
|
516
516
|
color: "textPrimary",
|
|
@@ -535,44 +535,44 @@ function fo({
|
|
|
535
535
|
}
|
|
536
536
|
);
|
|
537
537
|
}
|
|
538
|
-
const Ht = O(
|
|
539
|
-
function
|
|
538
|
+
const Ht = O(go);
|
|
539
|
+
function fo({
|
|
540
540
|
selectedOptions: t,
|
|
541
541
|
options: e,
|
|
542
542
|
onChange: o
|
|
543
543
|
}) {
|
|
544
|
-
const [r, i] =
|
|
544
|
+
const [r, i] = B(t ?? []), l = e.length === r.length, a = r.length > 0;
|
|
545
545
|
return z(() => {
|
|
546
546
|
r !== t && i(r);
|
|
547
547
|
}, [t]), {
|
|
548
548
|
areAllSelected: l,
|
|
549
549
|
areAnySelected: a,
|
|
550
550
|
currentOptions: r,
|
|
551
|
-
handleChange: (
|
|
551
|
+
handleChange: (u) => {
|
|
552
552
|
const {
|
|
553
553
|
target: { value: s }
|
|
554
|
-
} =
|
|
554
|
+
} = u, b = typeof s == "string" ? s.split(",") : s.filter((g) => g !== void 0);
|
|
555
555
|
i(b), o(b);
|
|
556
556
|
},
|
|
557
557
|
selectAll: () => {
|
|
558
|
-
const
|
|
559
|
-
|
|
558
|
+
const u = e == null ? void 0 : e.filter(({ disabled: s }) => !s).map(({ value: s }) => s);
|
|
559
|
+
u && (u.every(
|
|
560
560
|
(b) => r.includes(b)
|
|
561
|
-
) ? (i([]), o([])) : (i(
|
|
561
|
+
) ? (i([]), o([])) : (i(u), o(u)));
|
|
562
562
|
},
|
|
563
563
|
unselectAll: () => {
|
|
564
564
|
i([]), o([]);
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
const
|
|
568
|
+
const mo = m(Bt)(({ theme: t }) => ({
|
|
569
569
|
"&.Mui-disabled": {
|
|
570
570
|
pointerEvents: "auto",
|
|
571
571
|
"&:hover": {
|
|
572
572
|
backgroundColor: `${t.palette.background.default} !important`
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
})),
|
|
575
|
+
})), bo = m(it, {
|
|
576
576
|
shouldForwardProp: (t) => t !== "size"
|
|
577
577
|
})(({ theme: t, size: e }) => ({
|
|
578
578
|
display: "none",
|
|
@@ -589,33 +589,33 @@ const bo = m($t)(({ theme: t }) => ({
|
|
|
589
589
|
top: t.spacing(3),
|
|
590
590
|
right: t.spacing(5)
|
|
591
591
|
}
|
|
592
|
-
})),
|
|
592
|
+
})), ho = [], xo = () => {
|
|
593
593
|
};
|
|
594
|
-
function
|
|
595
|
-
options: t =
|
|
594
|
+
function yo({
|
|
595
|
+
options: t = ho,
|
|
596
596
|
selectedOptions: e,
|
|
597
597
|
size: o = "small",
|
|
598
598
|
placeholder: r,
|
|
599
599
|
showCounter: i,
|
|
600
600
|
showFilters: l = !0,
|
|
601
|
-
onChange: a =
|
|
601
|
+
onChange: a = xo,
|
|
602
602
|
selectAllDisabled: c,
|
|
603
603
|
tooltipPlacement: d,
|
|
604
|
-
variant:
|
|
605
|
-
...
|
|
604
|
+
variant: p,
|
|
605
|
+
...u
|
|
606
606
|
}, s) {
|
|
607
607
|
const {
|
|
608
608
|
areAllSelected: b,
|
|
609
609
|
areAnySelected: g,
|
|
610
610
|
currentOptions: f,
|
|
611
|
-
handleChange:
|
|
612
|
-
selectAll:
|
|
611
|
+
handleChange: M,
|
|
612
|
+
selectAll: h,
|
|
613
613
|
unselectAll: v
|
|
614
|
-
} =
|
|
614
|
+
} = fo({
|
|
615
615
|
options: t,
|
|
616
616
|
selectedOptions: e,
|
|
617
617
|
onChange: a
|
|
618
|
-
}), k = o === "small", D = k ||
|
|
618
|
+
}), k = o === "small", D = k || p === "standard" ? 0 : 2, y = T(), C = $(y), A = `${f.length} ${C.formatMessage({
|
|
619
619
|
id: "c4r.form.selected"
|
|
620
620
|
})}`, R = At(() => b ? /* @__PURE__ */ n(
|
|
621
621
|
F,
|
|
@@ -624,7 +624,7 @@ function Co({
|
|
|
624
624
|
variant: k ? "body2" : "body1",
|
|
625
625
|
color: "textPrimary",
|
|
626
626
|
ml: D,
|
|
627
|
-
children:
|
|
627
|
+
children: C.formatMessage({ id: "c4r.form.allSelected" })
|
|
628
628
|
}
|
|
629
629
|
) : g ? /* @__PURE__ */ n(
|
|
630
630
|
F,
|
|
@@ -642,33 +642,33 @@ function Co({
|
|
|
642
642
|
variant: k ? "body2" : "body1",
|
|
643
643
|
color: "text.hint",
|
|
644
644
|
ml: D,
|
|
645
|
-
children: r ??
|
|
645
|
+
children: r ?? C.formatMessage({ id: "c4r.form.noneSelected" })
|
|
646
646
|
}
|
|
647
647
|
), [
|
|
648
648
|
b,
|
|
649
649
|
g,
|
|
650
650
|
A,
|
|
651
651
|
f,
|
|
652
|
-
|
|
652
|
+
C,
|
|
653
653
|
k,
|
|
654
654
|
D,
|
|
655
655
|
r,
|
|
656
656
|
i
|
|
657
657
|
]);
|
|
658
|
-
return /* @__PURE__ */
|
|
659
|
-
|
|
658
|
+
return /* @__PURE__ */ x(
|
|
659
|
+
to,
|
|
660
660
|
{
|
|
661
|
-
...
|
|
661
|
+
...u,
|
|
662
662
|
ref: s,
|
|
663
663
|
multiple: !0,
|
|
664
664
|
displayEmpty: !0,
|
|
665
665
|
placeholder: r,
|
|
666
666
|
value: f,
|
|
667
667
|
renderValue: () => R,
|
|
668
|
-
onChange:
|
|
668
|
+
onChange: M,
|
|
669
669
|
size: o,
|
|
670
|
-
variant:
|
|
671
|
-
endAdornment: l && g && /* @__PURE__ */ n(
|
|
670
|
+
variant: p,
|
|
671
|
+
endAdornment: l && g && /* @__PURE__ */ n(bo, { position: "end", size: o, children: /* @__PURE__ */ n(E, { onClick: v, size: o, children: /* @__PURE__ */ n(Ft, {}) }) }),
|
|
672
672
|
menuProps: {
|
|
673
673
|
PaperProps: {
|
|
674
674
|
sx: {
|
|
@@ -684,13 +684,13 @@ function Co({
|
|
|
684
684
|
{
|
|
685
685
|
areAllSelected: b,
|
|
686
686
|
areAnySelected: g,
|
|
687
|
-
selectAll:
|
|
687
|
+
selectAll: h,
|
|
688
688
|
selectAllDisabled: c
|
|
689
689
|
}
|
|
690
690
|
),
|
|
691
691
|
t == null ? void 0 : t.map((I) => {
|
|
692
|
-
const
|
|
693
|
-
|
|
692
|
+
const W = /* @__PURE__ */ x(
|
|
693
|
+
mo,
|
|
694
694
|
{
|
|
695
695
|
value: I.value,
|
|
696
696
|
disabled: I.disabled,
|
|
@@ -713,16 +713,16 @@ function Co({
|
|
|
713
713
|
{
|
|
714
714
|
title: I.tooltip,
|
|
715
715
|
placement: d,
|
|
716
|
-
children:
|
|
716
|
+
children: W
|
|
717
717
|
},
|
|
718
718
|
I.value
|
|
719
|
-
) :
|
|
719
|
+
) : W;
|
|
720
720
|
})
|
|
721
721
|
]
|
|
722
722
|
}
|
|
723
723
|
);
|
|
724
724
|
}
|
|
725
|
-
const
|
|
725
|
+
const En = O(yo), Co = m(It, {
|
|
726
726
|
shouldForwardProp: (t) => t !== "cursor"
|
|
727
727
|
})(
|
|
728
728
|
({ cursor: t, theme: e }) => ({
|
|
@@ -750,7 +750,7 @@ const Hn = O(Co), Mo = m(It, {
|
|
|
750
750
|
}
|
|
751
751
|
})
|
|
752
752
|
);
|
|
753
|
-
function
|
|
753
|
+
function Mo({
|
|
754
754
|
buttonText: t,
|
|
755
755
|
hasFiles: e,
|
|
756
756
|
size: o,
|
|
@@ -760,8 +760,8 @@ function ko({
|
|
|
760
760
|
handleOpen: a,
|
|
761
761
|
inProgress: c
|
|
762
762
|
}) {
|
|
763
|
-
return /* @__PURE__ */ n(it, { position: "end", children: c ? /* @__PURE__ */ n(
|
|
764
|
-
|
|
763
|
+
return /* @__PURE__ */ n(it, { position: "end", children: c ? /* @__PURE__ */ n(E, { "aria-label": "Loading", disabled: !0, size: o, children: /* @__PURE__ */ n(G, { size: 18 }) }) : e ? /* @__PURE__ */ n(
|
|
764
|
+
E,
|
|
765
765
|
{
|
|
766
766
|
onClick: l,
|
|
767
767
|
size: o,
|
|
@@ -781,7 +781,7 @@ function ko({
|
|
|
781
781
|
}
|
|
782
782
|
) });
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function ko({
|
|
785
785
|
name: t,
|
|
786
786
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
787
787
|
multiple: e,
|
|
@@ -793,15 +793,15 @@ function vo({
|
|
|
793
793
|
placeholder: a,
|
|
794
794
|
focused: c,
|
|
795
795
|
buttonText: d = "Browse",
|
|
796
|
-
inProgress:
|
|
797
|
-
InputProps:
|
|
796
|
+
inProgress: p,
|
|
797
|
+
InputProps: u,
|
|
798
798
|
size: s = "small",
|
|
799
799
|
hasFiles: b,
|
|
800
800
|
cursor: g = "pointer",
|
|
801
801
|
...f
|
|
802
802
|
}) {
|
|
803
803
|
return /* @__PURE__ */ n(
|
|
804
|
-
|
|
804
|
+
Co,
|
|
805
805
|
{
|
|
806
806
|
...f,
|
|
807
807
|
size: s,
|
|
@@ -810,13 +810,13 @@ function vo({
|
|
|
810
810
|
focused: c ?? i,
|
|
811
811
|
cursor: g,
|
|
812
812
|
InputProps: {
|
|
813
|
-
...
|
|
813
|
+
...u,
|
|
814
814
|
name: t,
|
|
815
815
|
// multiple prop cannot be used here because it is not a valid prop for TextField InputProps
|
|
816
816
|
// not used for any UI logic
|
|
817
817
|
readOnly: !0,
|
|
818
818
|
endAdornment: /* @__PURE__ */ n(
|
|
819
|
-
|
|
819
|
+
Mo,
|
|
820
820
|
{
|
|
821
821
|
buttonText: d,
|
|
822
822
|
hasFiles: b,
|
|
@@ -825,21 +825,21 @@ function vo({
|
|
|
825
825
|
disabled: !!i,
|
|
826
826
|
handleReset: o,
|
|
827
827
|
handleOpen: r,
|
|
828
|
-
inProgress:
|
|
828
|
+
inProgress: p
|
|
829
829
|
}
|
|
830
830
|
)
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function vo({
|
|
836
836
|
onChange: t,
|
|
837
837
|
files: e,
|
|
838
838
|
multiple: o,
|
|
839
839
|
placeholder: r,
|
|
840
840
|
uploadInputRef: i
|
|
841
841
|
}) {
|
|
842
|
-
const l = T(), a =
|
|
842
|
+
const l = T(), a = $(l), [c, d] = B(""), [p, u] = B(!1);
|
|
843
843
|
z(() => {
|
|
844
844
|
!e || e.length === 0 ? d("") : e.length === 1 ? d(e[0].name) : d(
|
|
845
845
|
a.formatMessage(
|
|
@@ -849,56 +849,56 @@ function wo({
|
|
|
849
849
|
);
|
|
850
850
|
}, [e, a]);
|
|
851
851
|
const s = () => {
|
|
852
|
-
var
|
|
853
|
-
(
|
|
854
|
-
}, b = (
|
|
855
|
-
|
|
856
|
-
}, g = (
|
|
857
|
-
|
|
858
|
-
}, f = (
|
|
859
|
-
|
|
860
|
-
const
|
|
852
|
+
var y;
|
|
853
|
+
(y = i.current) == null || y.click();
|
|
854
|
+
}, b = (y) => {
|
|
855
|
+
y.preventDefault(), u(!0);
|
|
856
|
+
}, g = (y) => {
|
|
857
|
+
y.preventDefault(), u(!1);
|
|
858
|
+
}, f = (y) => {
|
|
859
|
+
y.preventDefault(), u(!1);
|
|
860
|
+
const C = y.dataTransfer.items, A = M(C);
|
|
861
861
|
t == null || t(A);
|
|
862
|
-
},
|
|
863
|
-
const
|
|
864
|
-
for (const A of Array.from(
|
|
862
|
+
}, M = (y) => {
|
|
863
|
+
const C = [];
|
|
864
|
+
for (const A of Array.from(y))
|
|
865
865
|
if (A.kind === "file") {
|
|
866
866
|
const R = A.getAsFile();
|
|
867
|
-
|
|
867
|
+
C.push(R);
|
|
868
868
|
}
|
|
869
|
-
return
|
|
870
|
-
},
|
|
871
|
-
const
|
|
872
|
-
t == null || t(
|
|
873
|
-
}, v = (
|
|
874
|
-
|
|
869
|
+
return C;
|
|
870
|
+
}, h = (y) => {
|
|
871
|
+
const C = Array.from(y.target.files);
|
|
872
|
+
t == null || t(C);
|
|
873
|
+
}, v = (y) => {
|
|
874
|
+
y.stopPropagation(), d("");
|
|
875
875
|
}, k = At(() => {
|
|
876
|
-
const
|
|
876
|
+
const y = a.formatMessage(
|
|
877
877
|
{ id: "c4r.form.dragPlaceholder" },
|
|
878
878
|
{ count: o ? 0 : 1 }
|
|
879
|
-
),
|
|
879
|
+
), C = a.formatMessage(
|
|
880
880
|
{ id: "c4r.form.dragActivePlaceholder" },
|
|
881
881
|
{ count: o ? 0 : 1 }
|
|
882
882
|
);
|
|
883
883
|
let A = "";
|
|
884
|
-
return
|
|
885
|
-
}, [
|
|
884
|
+
return p ? A = C : A = r ?? y, A;
|
|
885
|
+
}, [p, o, r, a]);
|
|
886
886
|
return {
|
|
887
887
|
filesText: c,
|
|
888
888
|
getPlaceholder: k,
|
|
889
|
-
dragOver:
|
|
889
|
+
dragOver: p,
|
|
890
890
|
inputEvents: {
|
|
891
891
|
onDragOver: b,
|
|
892
892
|
onDragLeave: g,
|
|
893
893
|
onDrop: f,
|
|
894
894
|
onClick: s
|
|
895
895
|
},
|
|
896
|
-
handleFiles:
|
|
896
|
+
handleFiles: h,
|
|
897
897
|
handleReset: v
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
|
-
const
|
|
901
|
-
function
|
|
900
|
+
const wo = ["application/JSON"];
|
|
901
|
+
function Hn({
|
|
902
902
|
name: t,
|
|
903
903
|
buttonText: e,
|
|
904
904
|
accept: o,
|
|
@@ -908,35 +908,35 @@ function Pn({
|
|
|
908
908
|
multiple: a,
|
|
909
909
|
placeholder: c,
|
|
910
910
|
error: d,
|
|
911
|
-
focused:
|
|
912
|
-
nativeInputProps:
|
|
911
|
+
focused: p,
|
|
912
|
+
nativeInputProps: u,
|
|
913
913
|
...s
|
|
914
914
|
}) {
|
|
915
|
-
const b = o ??
|
|
915
|
+
const b = o ?? wo, g = Z(null), {
|
|
916
916
|
filesText: f,
|
|
917
|
-
getPlaceholder:
|
|
918
|
-
dragOver:
|
|
917
|
+
getPlaceholder: M,
|
|
918
|
+
dragOver: h,
|
|
919
919
|
inputEvents: v,
|
|
920
920
|
handleFiles: k,
|
|
921
921
|
handleReset: D
|
|
922
|
-
} =
|
|
922
|
+
} = vo({
|
|
923
923
|
uploadInputRef: g,
|
|
924
924
|
files: r,
|
|
925
925
|
onChange: l,
|
|
926
926
|
multiple: a,
|
|
927
927
|
placeholder: c
|
|
928
928
|
});
|
|
929
|
-
return /* @__PURE__ */
|
|
929
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
930
930
|
/* @__PURE__ */ n(
|
|
931
|
-
|
|
931
|
+
ko,
|
|
932
932
|
{
|
|
933
933
|
...s,
|
|
934
|
-
placeholder:
|
|
934
|
+
placeholder: M,
|
|
935
935
|
value: f,
|
|
936
936
|
error: d,
|
|
937
|
-
focused:
|
|
937
|
+
focused: p ?? h,
|
|
938
938
|
handleReset: D,
|
|
939
|
-
dragOver:
|
|
939
|
+
dragOver: h,
|
|
940
940
|
inProgress: i,
|
|
941
941
|
hasFiles: !!f,
|
|
942
942
|
InputProps: v,
|
|
@@ -946,7 +946,7 @@ function Pn({
|
|
|
946
946
|
/* @__PURE__ */ n(
|
|
947
947
|
"input",
|
|
948
948
|
{
|
|
949
|
-
...
|
|
949
|
+
...u,
|
|
950
950
|
ref: g,
|
|
951
951
|
style: { display: "none" },
|
|
952
952
|
type: "file",
|
|
@@ -959,7 +959,7 @@ function Pn({
|
|
|
959
959
|
)
|
|
960
960
|
] });
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function Do({
|
|
963
963
|
disabled: t,
|
|
964
964
|
loading: e,
|
|
965
965
|
...o
|
|
@@ -979,49 +979,49 @@ function Ao({
|
|
|
979
979
|
}
|
|
980
980
|
);
|
|
981
981
|
}
|
|
982
|
-
const
|
|
982
|
+
const Pn = O(Do), Pt = (t) => t && typeof t == "object" ? t.title ?? String(t) : String(t), zt = (t, e) => typeof t != "object" || t === null ? { value: t, multiple: e } : { ...t, multiple: e }, Nt = (t) => /* @__PURE__ */ n("span", { "data-testid": "more-options-tag", children: `+${t}` });
|
|
983
983
|
function _t() {
|
|
984
984
|
return { renderOption: (e, o, r, i, l) => {
|
|
985
985
|
const {
|
|
986
986
|
title: a,
|
|
987
987
|
inputValue: c,
|
|
988
988
|
divider: d,
|
|
989
|
-
fixed:
|
|
990
|
-
extended:
|
|
989
|
+
fixed: p,
|
|
990
|
+
extended: u,
|
|
991
991
|
dense: s,
|
|
992
992
|
destructive: b,
|
|
993
993
|
disabled: g,
|
|
994
994
|
subtitle: f,
|
|
995
|
-
iconColor:
|
|
996
|
-
startAdornment:
|
|
995
|
+
iconColor: M,
|
|
996
|
+
startAdornment: h,
|
|
997
997
|
endAdornment: v,
|
|
998
998
|
alternativeTitle: k,
|
|
999
999
|
secondaryText: D,
|
|
1000
|
-
multiple:
|
|
1001
|
-
} = o, { key:
|
|
1002
|
-
return /* @__PURE__ */ n(
|
|
1000
|
+
multiple: y
|
|
1001
|
+
} = o, { key: C, ...A } = e, R = typeof o == "string" || typeof o == "number", I = (W, S, L, V) => L || V || (S && typeof S == "object" && "value" in S ? String(S.value) : W(S));
|
|
1002
|
+
return /* @__PURE__ */ n(Qt, { children: d ? /* @__PURE__ */ n(_, {}) : /* @__PURE__ */ x(H, { children: [
|
|
1003
1003
|
c && /* @__PURE__ */ n(_, {}),
|
|
1004
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ x(
|
|
1005
1005
|
Y,
|
|
1006
1006
|
{
|
|
1007
1007
|
...A,
|
|
1008
1008
|
...!R && {
|
|
1009
|
-
fixed:
|
|
1010
|
-
extended:
|
|
1009
|
+
fixed: p,
|
|
1010
|
+
extended: u,
|
|
1011
1011
|
dense: s,
|
|
1012
1012
|
destructive: b,
|
|
1013
1013
|
disabled: g,
|
|
1014
1014
|
subtitle: f,
|
|
1015
|
-
iconColor:
|
|
1015
|
+
iconColor: M
|
|
1016
1016
|
},
|
|
1017
1017
|
"aria-disabled": f || g,
|
|
1018
1018
|
"aria-selected": r.selected,
|
|
1019
1019
|
children: [
|
|
1020
|
-
!f && (
|
|
1021
|
-
l ||
|
|
1022
|
-
|
|
1020
|
+
!f && (h || y || l) && /* @__PURE__ */ x(rt, { children: [
|
|
1021
|
+
l || y && /* @__PURE__ */ n(at, { checked: r.selected }),
|
|
1022
|
+
h
|
|
1023
1023
|
] }),
|
|
1024
|
-
/* @__PURE__ */
|
|
1024
|
+
/* @__PURE__ */ x(U, { children: [
|
|
1025
1025
|
I(
|
|
1026
1026
|
i ?? Pt,
|
|
1027
1027
|
o,
|
|
@@ -1042,39 +1042,39 @@ function _t() {
|
|
|
1042
1042
|
]
|
|
1043
1043
|
}
|
|
1044
1044
|
)
|
|
1045
|
-
] }) },
|
|
1045
|
+
] }) }, C);
|
|
1046
1046
|
} };
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function Ao({
|
|
1049
1049
|
getOptionLabel: t,
|
|
1050
1050
|
newItemLabel: e,
|
|
1051
1051
|
newItemIcon: o,
|
|
1052
1052
|
multiple: r
|
|
1053
1053
|
}) {
|
|
1054
|
-
const i = T(), l =
|
|
1054
|
+
const i = T(), l = $(i), a = ae(), { renderOption: c } = _t();
|
|
1055
1055
|
return {
|
|
1056
1056
|
creatableFilterOptions: (s, b) => {
|
|
1057
1057
|
const g = a(
|
|
1058
1058
|
s,
|
|
1059
1059
|
b
|
|
1060
|
-
), { inputValue: f } = b,
|
|
1061
|
-
(
|
|
1060
|
+
), { inputValue: f } = b, M = s.some(
|
|
1061
|
+
(h) => f === t(h)
|
|
1062
1062
|
);
|
|
1063
|
-
if (f.length > 1 && f !== "" && !
|
|
1064
|
-
let
|
|
1065
|
-
typeof e == "function" ?
|
|
1063
|
+
if (f.length > 1 && f !== "" && !M) {
|
|
1064
|
+
let h;
|
|
1065
|
+
typeof e == "function" ? h = e(f) : e ? h = `${e} "${f}"` : h = `${l.formatMessage({ id: "c4r.form.add" })} "${f}"`, g.push({
|
|
1066
1066
|
inputValue: f,
|
|
1067
|
-
title:
|
|
1067
|
+
title: h
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
1070
|
return g;
|
|
1071
1071
|
},
|
|
1072
1072
|
creatableOptionLabel: (s) => typeof s == "string" ? s : s.inputValue ? s.inputValue : t(s),
|
|
1073
1073
|
creatableRenderOption: (s, b, g) => {
|
|
1074
|
-
const f = b.inputValue ? o ?? /* @__PURE__ */ n(
|
|
1074
|
+
const f = b.inputValue ? o ?? /* @__PURE__ */ n(De, {}) : void 0, M = zt(b, !!r);
|
|
1075
1075
|
return c(
|
|
1076
1076
|
s,
|
|
1077
|
-
|
|
1077
|
+
M,
|
|
1078
1078
|
g,
|
|
1079
1079
|
t,
|
|
1080
1080
|
f
|
|
@@ -1088,7 +1088,7 @@ function Gt({
|
|
|
1088
1088
|
onChange: o,
|
|
1089
1089
|
getOptionLabel: r
|
|
1090
1090
|
}) {
|
|
1091
|
-
const [i, l] =
|
|
1091
|
+
const [i, l] = B(
|
|
1092
1092
|
Array.isArray(e) ? e : e ? [e] : []
|
|
1093
1093
|
), { renderOption: a } = _t();
|
|
1094
1094
|
z(() => {
|
|
@@ -1112,17 +1112,17 @@ function Gt({
|
|
|
1112
1112
|
l(g === null ? [] : g), o == null || o(b, g, f);
|
|
1113
1113
|
},
|
|
1114
1114
|
multipleRenderOption: (b, g, f) => {
|
|
1115
|
-
const
|
|
1115
|
+
const M = zt(g, !0);
|
|
1116
1116
|
return a(
|
|
1117
1117
|
b,
|
|
1118
|
-
|
|
1118
|
+
M,
|
|
1119
1119
|
f,
|
|
1120
1120
|
r
|
|
1121
1121
|
);
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function So({
|
|
1126
1126
|
children: t,
|
|
1127
1127
|
showFilters: e,
|
|
1128
1128
|
allSelected: o,
|
|
@@ -1132,7 +1132,7 @@ function Io({
|
|
|
1132
1132
|
multiple: l,
|
|
1133
1133
|
...a
|
|
1134
1134
|
}, c) {
|
|
1135
|
-
return /* @__PURE__ */
|
|
1135
|
+
return /* @__PURE__ */ x(
|
|
1136
1136
|
"ul",
|
|
1137
1137
|
{
|
|
1138
1138
|
ref: c,
|
|
@@ -1153,8 +1153,8 @@ function Io({
|
|
|
1153
1153
|
}
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
1156
|
-
const jt = O(
|
|
1157
|
-
function
|
|
1156
|
+
const jt = O(So);
|
|
1157
|
+
function Io({
|
|
1158
1158
|
newItemLabel: t,
|
|
1159
1159
|
newItemIcon: e,
|
|
1160
1160
|
getOptionLabel: o = Pt,
|
|
@@ -1164,26 +1164,26 @@ function $o({
|
|
|
1164
1164
|
loading: a,
|
|
1165
1165
|
showFilters: c,
|
|
1166
1166
|
options: d = [],
|
|
1167
|
-
value:
|
|
1168
|
-
onChange:
|
|
1167
|
+
value: p,
|
|
1168
|
+
onChange: u,
|
|
1169
1169
|
getLimitTagsText: s,
|
|
1170
1170
|
...b
|
|
1171
1171
|
}, g) {
|
|
1172
|
-
const { freeSolo: f = !0, ...
|
|
1173
|
-
multipleValue:
|
|
1172
|
+
const { freeSolo: f = !0, ...M } = b, {
|
|
1173
|
+
multipleValue: h,
|
|
1174
1174
|
allSelected: v,
|
|
1175
1175
|
someSelected: k,
|
|
1176
1176
|
handleSelectAll: D,
|
|
1177
|
-
handleChange:
|
|
1177
|
+
handleChange: y
|
|
1178
1178
|
} = Gt({
|
|
1179
1179
|
options: d,
|
|
1180
|
-
value:
|
|
1181
|
-
onChange:
|
|
1180
|
+
value: p,
|
|
1181
|
+
onChange: u
|
|
1182
1182
|
}), {
|
|
1183
|
-
creatableFilterOptions:
|
|
1183
|
+
creatableFilterOptions: C,
|
|
1184
1184
|
creatableOptionLabel: A,
|
|
1185
1185
|
creatableRenderOption: R
|
|
1186
|
-
} =
|
|
1186
|
+
} = Ao({
|
|
1187
1187
|
getOptionLabel: o,
|
|
1188
1188
|
newItemLabel: t,
|
|
1189
1189
|
newItemIcon: e,
|
|
@@ -1192,12 +1192,12 @@ function $o({
|
|
|
1192
1192
|
return /* @__PURE__ */ n(
|
|
1193
1193
|
lt,
|
|
1194
1194
|
{
|
|
1195
|
-
...
|
|
1195
|
+
...M,
|
|
1196
1196
|
ref: g,
|
|
1197
1197
|
options: d,
|
|
1198
|
-
value: r ?
|
|
1199
|
-
onChange:
|
|
1200
|
-
filterOptions:
|
|
1198
|
+
value: r ? h : p,
|
|
1199
|
+
onChange: y,
|
|
1200
|
+
filterOptions: C,
|
|
1201
1201
|
getOptionLabel: A,
|
|
1202
1202
|
renderOption: R,
|
|
1203
1203
|
freeSolo: f,
|
|
@@ -1219,7 +1219,7 @@ function $o({
|
|
|
1219
1219
|
}
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
|
-
const
|
|
1222
|
+
const zn = O(Io);
|
|
1223
1223
|
function Bo({
|
|
1224
1224
|
renderOption: t,
|
|
1225
1225
|
disableCloseOnSelect: e = !0,
|
|
@@ -1230,15 +1230,15 @@ function Bo({
|
|
|
1230
1230
|
value: a,
|
|
1231
1231
|
onChange: c,
|
|
1232
1232
|
getOptionLabel: d,
|
|
1233
|
-
getLimitTagsText:
|
|
1234
|
-
...
|
|
1233
|
+
getLimitTagsText: p,
|
|
1234
|
+
...u
|
|
1235
1235
|
}, s) {
|
|
1236
1236
|
const {
|
|
1237
1237
|
multipleValue: b,
|
|
1238
1238
|
allSelected: g,
|
|
1239
1239
|
someSelected: f,
|
|
1240
|
-
handleSelectAll:
|
|
1241
|
-
handleChange:
|
|
1240
|
+
handleSelectAll: M,
|
|
1241
|
+
handleChange: h,
|
|
1242
1242
|
multipleRenderOption: v
|
|
1243
1243
|
} = Gt({
|
|
1244
1244
|
options: l,
|
|
@@ -1249,11 +1249,11 @@ function Bo({
|
|
|
1249
1249
|
return /* @__PURE__ */ n(
|
|
1250
1250
|
lt,
|
|
1251
1251
|
{
|
|
1252
|
-
...
|
|
1252
|
+
...u,
|
|
1253
1253
|
ref: s,
|
|
1254
1254
|
options: l,
|
|
1255
1255
|
value: b,
|
|
1256
|
-
onChange:
|
|
1256
|
+
onChange: h,
|
|
1257
1257
|
getOptionLabel: d,
|
|
1258
1258
|
renderOption: t ?? v,
|
|
1259
1259
|
ListboxComponent: jt,
|
|
@@ -1261,11 +1261,11 @@ function Bo({
|
|
|
1261
1261
|
showFilters: i,
|
|
1262
1262
|
allSelected: g,
|
|
1263
1263
|
someSelected: f,
|
|
1264
|
-
handleSelectAll:
|
|
1264
|
+
handleSelectAll: M,
|
|
1265
1265
|
multiple: !0
|
|
1266
1266
|
},
|
|
1267
1267
|
multiple: !0,
|
|
1268
|
-
getLimitTagsText:
|
|
1268
|
+
getLimitTagsText: p ?? Nt,
|
|
1269
1269
|
disableCloseOnSelect: e,
|
|
1270
1270
|
disabled: o || r,
|
|
1271
1271
|
popupIcon: r ? /* @__PURE__ */ n(G, { size: 18, color: "inherit" }) : /* @__PURE__ */ n(ct, {}),
|
|
@@ -1273,7 +1273,7 @@ function Bo({
|
|
|
1273
1273
|
}
|
|
1274
1274
|
);
|
|
1275
1275
|
}
|
|
1276
|
-
const
|
|
1276
|
+
const Nn = O(Bo), $o = ({
|
|
1277
1277
|
children: t,
|
|
1278
1278
|
disabled: e,
|
|
1279
1279
|
value: o,
|
|
@@ -1283,24 +1283,24 @@ const _n = O(Bo), To = ({
|
|
|
1283
1283
|
button: a,
|
|
1284
1284
|
buttonLabel: c,
|
|
1285
1285
|
buttonProps: d,
|
|
1286
|
-
ariaLabel:
|
|
1287
|
-
dataTestId:
|
|
1286
|
+
ariaLabel: p,
|
|
1287
|
+
dataTestId: u,
|
|
1288
1288
|
tooltipPlacement: s = "top",
|
|
1289
1289
|
...b
|
|
1290
1290
|
}, g) => {
|
|
1291
|
-
const f = T(),
|
|
1292
|
-
|
|
1291
|
+
const f = T(), M = $(f), [h, v] = B(!1), { copy: k } = Vt(i, l), D = (y) => {
|
|
1292
|
+
y.preventDefault(), k(o).then(() => {
|
|
1293
1293
|
r == null || r(), v(!0);
|
|
1294
1294
|
}).catch(console.error);
|
|
1295
1295
|
};
|
|
1296
|
-
return /* @__PURE__ */
|
|
1296
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
1297
1297
|
/* @__PURE__ */ n(
|
|
1298
1298
|
P,
|
|
1299
1299
|
{
|
|
1300
|
-
title:
|
|
1300
|
+
title: M.formatMessage({ id: i }),
|
|
1301
1301
|
leaveDelay: 0,
|
|
1302
1302
|
placement: s,
|
|
1303
|
-
children: /* @__PURE__ */
|
|
1303
|
+
children: /* @__PURE__ */ x(
|
|
1304
1304
|
w,
|
|
1305
1305
|
{
|
|
1306
1306
|
...b,
|
|
@@ -1316,8 +1316,8 @@ const _n = O(Bo), To = ({
|
|
|
1316
1316
|
...d,
|
|
1317
1317
|
disabled: e,
|
|
1318
1318
|
icon: /* @__PURE__ */ n(Lt, {}),
|
|
1319
|
-
"data-testid":
|
|
1320
|
-
"aria-label":
|
|
1319
|
+
"data-testid": u,
|
|
1320
|
+
"aria-label": p || c,
|
|
1321
1321
|
sx: {
|
|
1322
1322
|
display: "flex"
|
|
1323
1323
|
}
|
|
@@ -1331,28 +1331,28 @@ const _n = O(Bo), To = ({
|
|
|
1331
1331
|
/* @__PURE__ */ n(
|
|
1332
1332
|
dt,
|
|
1333
1333
|
{
|
|
1334
|
-
open:
|
|
1334
|
+
open: h,
|
|
1335
1335
|
autoWidth: !0,
|
|
1336
1336
|
closeable: !1,
|
|
1337
1337
|
autoHideDuration: 4e3,
|
|
1338
1338
|
onClose: () => v(!1),
|
|
1339
|
-
children:
|
|
1339
|
+
children: M.formatMessage({ id: l })
|
|
1340
1340
|
}
|
|
1341
1341
|
)
|
|
1342
1342
|
] });
|
|
1343
|
-
},
|
|
1344
|
-
async function
|
|
1343
|
+
}, To = O($o);
|
|
1344
|
+
async function Ro(t) {
|
|
1345
1345
|
return await navigator.clipboard.writeText(t);
|
|
1346
1346
|
}
|
|
1347
1347
|
const Vt = (t = "c4r.button.copy", e = "c4r.notifications.copiedToClipboard") => {
|
|
1348
|
-
const [o, r] =
|
|
1348
|
+
const [o, r] = B(t);
|
|
1349
1349
|
return {
|
|
1350
1350
|
message: o,
|
|
1351
1351
|
copy: async (l) => {
|
|
1352
|
-
await
|
|
1352
|
+
await Ro(l), r(e), setTimeout(() => r(t), 1e3);
|
|
1353
1353
|
}
|
|
1354
1354
|
};
|
|
1355
|
-
},
|
|
1355
|
+
}, Oo = m("div", {
|
|
1356
1356
|
shouldForwardProp: (t) => t !== "variant"
|
|
1357
1357
|
})(({ variant: t, theme: e }) => ({
|
|
1358
1358
|
width: "100%",
|
|
@@ -1362,27 +1362,27 @@ const Vt = (t = "c4r.button.copy", e = "c4r.notifications.copiedToClipboard") =>
|
|
|
1362
1362
|
boxShadow: `inset 0 0 0 1px ${e.palette.divider}`
|
|
1363
1363
|
}
|
|
1364
1364
|
}));
|
|
1365
|
-
function
|
|
1365
|
+
function _n({
|
|
1366
1366
|
variant: t = "standard",
|
|
1367
1367
|
items: e,
|
|
1368
1368
|
...o
|
|
1369
1369
|
}) {
|
|
1370
|
-
return /* @__PURE__ */ n(
|
|
1371
|
-
|
|
1370
|
+
return /* @__PURE__ */ n(Oo, { ...o, variant: t, children: e.map((r, i) => /* @__PURE__ */ x(
|
|
1371
|
+
le,
|
|
1372
1372
|
{
|
|
1373
1373
|
disabled: r.disabled,
|
|
1374
1374
|
defaultExpanded: r.defaultExpanded,
|
|
1375
1375
|
onChange: r.onChange,
|
|
1376
1376
|
children: [
|
|
1377
1377
|
/* @__PURE__ */ n(
|
|
1378
|
-
|
|
1378
|
+
ce,
|
|
1379
1379
|
{
|
|
1380
1380
|
"aria-controls": `${i}-content`,
|
|
1381
1381
|
id: `${i}-header`,
|
|
1382
1382
|
children: r.summary
|
|
1383
1383
|
}
|
|
1384
1384
|
),
|
|
1385
|
-
/* @__PURE__ */ n(
|
|
1385
|
+
/* @__PURE__ */ n(de, { children: r.content })
|
|
1386
1386
|
]
|
|
1387
1387
|
},
|
|
1388
1388
|
i
|
|
@@ -1393,7 +1393,7 @@ const ht = {
|
|
|
1393
1393
|
medium: 4,
|
|
1394
1394
|
small: 3,
|
|
1395
1395
|
xsmall: 2.25
|
|
1396
|
-
},
|
|
1396
|
+
}, Fo = m(se, {
|
|
1397
1397
|
shouldForwardProp: (t) => t !== "size" && t !== "disabled"
|
|
1398
1398
|
})(({ theme: t, size: e = "medium", disabled: o = !1 }) => ({
|
|
1399
1399
|
width: t.spacing(ht[e]),
|
|
@@ -1418,10 +1418,10 @@ const ht = {
|
|
|
1418
1418
|
opacity: 0.6
|
|
1419
1419
|
}
|
|
1420
1420
|
}));
|
|
1421
|
-
function
|
|
1422
|
-
return /* @__PURE__ */ n(
|
|
1421
|
+
function Gn(t) {
|
|
1422
|
+
return /* @__PURE__ */ n(Fo, { ...t });
|
|
1423
1423
|
}
|
|
1424
|
-
const Ut = 480,
|
|
1424
|
+
const Ut = 480, Lo = m(ue)(({ theme: t }) => ({
|
|
1425
1425
|
bottom: t.spacing(2),
|
|
1426
1426
|
right: t.spacing(2),
|
|
1427
1427
|
left: t.spacing(2),
|
|
@@ -1432,7 +1432,7 @@ const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
|
|
|
1432
1432
|
width: "100%",
|
|
1433
1433
|
maxWidth: `${Ut}px`
|
|
1434
1434
|
}
|
|
1435
|
-
})),
|
|
1435
|
+
})), Wo = m(w, {
|
|
1436
1436
|
shouldForwardProp: (t) => t !== "autoWidth"
|
|
1437
1437
|
})(({ autoWidth: t, theme: e }) => ({
|
|
1438
1438
|
minWidth: "100%",
|
|
@@ -1447,7 +1447,7 @@ const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
|
|
|
1447
1447
|
minWidth: "auto"
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
|
-
})),
|
|
1450
|
+
})), Eo = m(Et, {
|
|
1451
1451
|
shouldForwardProp: (t) => !["hasActions", "closeable"].includes(t)
|
|
1452
1452
|
})(({ hasActions: t, closeable: e, icon: o, theme: r }) => ({
|
|
1453
1453
|
position: "relative",
|
|
@@ -1499,7 +1499,7 @@ const Ut = 480, Wo = m(pe)(({ theme: t }) => ({
|
|
|
1499
1499
|
padding: r.spacing(0.75, 0)
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
})),
|
|
1502
|
+
})), Ho = m(w)(({ theme: t }) => ({
|
|
1503
1503
|
position: "absolute",
|
|
1504
1504
|
top: t.spacing(1),
|
|
1505
1505
|
right: t.spacing(1),
|
|
@@ -1521,21 +1521,21 @@ function dt({
|
|
|
1521
1521
|
onClose: c = () => {
|
|
1522
1522
|
},
|
|
1523
1523
|
autoWidth: d,
|
|
1524
|
-
icon:
|
|
1525
|
-
...
|
|
1524
|
+
icon: p,
|
|
1525
|
+
...u
|
|
1526
1526
|
}) {
|
|
1527
|
-
const s = T(), b =
|
|
1528
|
-
return /* @__PURE__ */ n(
|
|
1529
|
-
|
|
1527
|
+
const s = T(), b = $(s);
|
|
1528
|
+
return /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(
|
|
1529
|
+
Lo,
|
|
1530
1530
|
{
|
|
1531
|
-
...
|
|
1531
|
+
...u,
|
|
1532
1532
|
open: a,
|
|
1533
1533
|
autoHideDuration: e === null ? null : e || ft,
|
|
1534
1534
|
onClose: c,
|
|
1535
|
-
TransitionComponent: d ?
|
|
1535
|
+
TransitionComponent: d ? ge : Rt,
|
|
1536
1536
|
"data-auto-width": d,
|
|
1537
|
-
children: /* @__PURE__ */
|
|
1538
|
-
|
|
1537
|
+
children: /* @__PURE__ */ x(
|
|
1538
|
+
Wo,
|
|
1539
1539
|
{
|
|
1540
1540
|
sx: {
|
|
1541
1541
|
position: "relative"
|
|
@@ -1543,11 +1543,11 @@ function dt({
|
|
|
1543
1543
|
autoWidth: d,
|
|
1544
1544
|
children: [
|
|
1545
1545
|
/* @__PURE__ */ n(
|
|
1546
|
-
|
|
1546
|
+
Eo,
|
|
1547
1547
|
{
|
|
1548
1548
|
severity: t,
|
|
1549
1549
|
action: l,
|
|
1550
|
-
icon:
|
|
1550
|
+
icon: p === !1 || t === "neutral" && !p ? !1 : p,
|
|
1551
1551
|
elevation: 6,
|
|
1552
1552
|
hasActions: !!l,
|
|
1553
1553
|
closeable: o,
|
|
@@ -1555,7 +1555,7 @@ function dt({
|
|
|
1555
1555
|
children: r
|
|
1556
1556
|
}
|
|
1557
1557
|
),
|
|
1558
|
-
o && /* @__PURE__ */ n(
|
|
1558
|
+
o && /* @__PURE__ */ n(Ho, { children: /* @__PURE__ */ n(
|
|
1559
1559
|
q,
|
|
1560
1560
|
{
|
|
1561
1561
|
color: "default",
|
|
@@ -1572,20 +1572,20 @@ function dt({
|
|
|
1572
1572
|
}
|
|
1573
1573
|
) });
|
|
1574
1574
|
}
|
|
1575
|
-
const
|
|
1575
|
+
const Po = m("div")(({ theme: t }) => ({
|
|
1576
1576
|
display: "flex",
|
|
1577
1577
|
alignItems: "center",
|
|
1578
|
-
height:
|
|
1578
|
+
height: ke,
|
|
1579
1579
|
marginRight: t.spacing(1.5)
|
|
1580
|
-
})),
|
|
1580
|
+
})), zo = m(E)(({ theme: t }) => ({
|
|
1581
1581
|
marginRight: t.spacing(1),
|
|
1582
1582
|
"&.MuiButtonBase-root svg path": {
|
|
1583
1583
|
fill: t.palette.brand.appBarContrastText
|
|
1584
1584
|
}
|
|
1585
|
-
})),
|
|
1585
|
+
})), No = m(_)(({ theme: t }) => ({
|
|
1586
1586
|
borderColor: Ot(t.palette.brand.appBarContrastText, 0.12)
|
|
1587
1587
|
}));
|
|
1588
|
-
function
|
|
1588
|
+
function _o({
|
|
1589
1589
|
onClickMenu: t
|
|
1590
1590
|
}) {
|
|
1591
1591
|
return (
|
|
@@ -1597,15 +1597,15 @@ function Go({
|
|
|
1597
1597
|
sx: {
|
|
1598
1598
|
display: { md: "none", xs: "block" }
|
|
1599
1599
|
},
|
|
1600
|
-
children: /* @__PURE__ */
|
|
1601
|
-
/* @__PURE__ */ n(
|
|
1602
|
-
/* @__PURE__ */ n(
|
|
1600
|
+
children: /* @__PURE__ */ x(Po, { children: [
|
|
1601
|
+
/* @__PURE__ */ n(zo, { onClick: t, children: /* @__PURE__ */ n(Ae, {}) }),
|
|
1602
|
+
/* @__PURE__ */ n(No, { orientation: "vertical", flexItem: !0 })
|
|
1603
1603
|
] })
|
|
1604
1604
|
}
|
|
1605
1605
|
)
|
|
1606
1606
|
);
|
|
1607
1607
|
}
|
|
1608
|
-
const
|
|
1608
|
+
const Go = m("div")(({ theme: t }) => ({
|
|
1609
1609
|
display: "flex",
|
|
1610
1610
|
marginRight: t.spacing(1.5),
|
|
1611
1611
|
"& a": {
|
|
@@ -1616,18 +1616,18 @@ const jo = m("div")(({ theme: t }) => ({
|
|
|
1616
1616
|
height: t.spacing(4)
|
|
1617
1617
|
}
|
|
1618
1618
|
}));
|
|
1619
|
-
function
|
|
1620
|
-
return /* @__PURE__ */ n(
|
|
1619
|
+
function jo({ logo: t }) {
|
|
1620
|
+
return /* @__PURE__ */ n(Go, { children: t });
|
|
1621
1621
|
}
|
|
1622
|
-
const
|
|
1622
|
+
const Vo = m(F)({
|
|
1623
1623
|
display: "flex",
|
|
1624
1624
|
alignItems: "center",
|
|
1625
1625
|
whiteSpace: "nowrap"
|
|
1626
1626
|
});
|
|
1627
|
-
function
|
|
1627
|
+
function Uo({ text: t }) {
|
|
1628
1628
|
const e = j();
|
|
1629
1629
|
return /* @__PURE__ */ n(
|
|
1630
|
-
|
|
1630
|
+
Vo,
|
|
1631
1631
|
{
|
|
1632
1632
|
component: "span",
|
|
1633
1633
|
variant: "subtitle1",
|
|
@@ -1636,7 +1636,7 @@ function Yo({ text: t }) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
1639
|
-
const
|
|
1639
|
+
const Yo = m(F)(({ theme: t }) => ({
|
|
1640
1640
|
display: "flex",
|
|
1641
1641
|
alignItems: "center",
|
|
1642
1642
|
"&::before": {
|
|
@@ -1646,10 +1646,10 @@ const qo = m(F)(({ theme: t }) => ({
|
|
|
1646
1646
|
color: t.palette.brand.appBarContrastText
|
|
1647
1647
|
}
|
|
1648
1648
|
}));
|
|
1649
|
-
function
|
|
1649
|
+
function qo({ text: t }) {
|
|
1650
1650
|
const e = j();
|
|
1651
1651
|
return /* @__PURE__ */ n(
|
|
1652
|
-
|
|
1652
|
+
Yo,
|
|
1653
1653
|
{
|
|
1654
1654
|
component: "span",
|
|
1655
1655
|
variant: "body2",
|
|
@@ -1659,7 +1659,7 @@ function Zo({ text: t }) {
|
|
|
1659
1659
|
}
|
|
1660
1660
|
);
|
|
1661
1661
|
}
|
|
1662
|
-
const
|
|
1662
|
+
const Zo = m(me)(({ theme: t }) => ({
|
|
1663
1663
|
backgroundColor: t.palette.brand.appBarMain,
|
|
1664
1664
|
"& .MuiTypography-root": {
|
|
1665
1665
|
color: t.palette.brand.appBarContrastText
|
|
@@ -1667,7 +1667,7 @@ const Jo = m(be)(({ theme: t }) => ({
|
|
|
1667
1667
|
"& .MuiIconButton-root path": {
|
|
1668
1668
|
fill: t.palette.brand.appBarContrastText
|
|
1669
1669
|
}
|
|
1670
|
-
})),
|
|
1670
|
+
})), Jo = m("div")(({ theme: t }) => ({
|
|
1671
1671
|
display: "flex",
|
|
1672
1672
|
alignItems: "center",
|
|
1673
1673
|
maxWidth: "calc(100% - 300px)",
|
|
@@ -1675,14 +1675,14 @@ const Jo = m(be)(({ theme: t }) => ({
|
|
|
1675
1675
|
[t.breakpoints.down("sm")]: {
|
|
1676
1676
|
minWidth: "192px"
|
|
1677
1677
|
}
|
|
1678
|
-
})),
|
|
1678
|
+
})), Ko = m("div")(({ theme: t }) => ({
|
|
1679
1679
|
display: "flex",
|
|
1680
1680
|
alignItems: "center",
|
|
1681
1681
|
justifyContent: "space-between",
|
|
1682
1682
|
flex: 1,
|
|
1683
1683
|
marginLeft: t.spacing(1)
|
|
1684
1684
|
}));
|
|
1685
|
-
function
|
|
1685
|
+
function jn({
|
|
1686
1686
|
children: t,
|
|
1687
1687
|
brandLogo: e,
|
|
1688
1688
|
brandText: o,
|
|
@@ -1691,17 +1691,17 @@ function Vn({
|
|
|
1691
1691
|
onClickMenu: l,
|
|
1692
1692
|
...a
|
|
1693
1693
|
}) {
|
|
1694
|
-
return /* @__PURE__ */ n(
|
|
1695
|
-
/* @__PURE__ */
|
|
1696
|
-
i && /* @__PURE__ */ n(
|
|
1697
|
-
e && /* @__PURE__ */ n(
|
|
1698
|
-
o && /* @__PURE__ */ n(
|
|
1699
|
-
r && /* @__PURE__ */ n(
|
|
1694
|
+
return /* @__PURE__ */ n(Zo, { ...a, children: /* @__PURE__ */ x(fe, { children: [
|
|
1695
|
+
/* @__PURE__ */ x(Jo, { children: [
|
|
1696
|
+
i && /* @__PURE__ */ n(_o, { onClickMenu: l }),
|
|
1697
|
+
e && /* @__PURE__ */ n(jo, { logo: e }),
|
|
1698
|
+
o && /* @__PURE__ */ n(Uo, { text: o }),
|
|
1699
|
+
r && /* @__PURE__ */ n(qo, { text: r })
|
|
1700
1700
|
] }),
|
|
1701
|
-
/* @__PURE__ */ n(
|
|
1701
|
+
/* @__PURE__ */ n(Ko, { children: t })
|
|
1702
1702
|
] }) });
|
|
1703
1703
|
}
|
|
1704
|
-
const
|
|
1704
|
+
const Xo = m(w, {
|
|
1705
1705
|
shouldForwardProp: (t) => !["size", "variant"].includes(t)
|
|
1706
1706
|
})(({ size: t, variant: e, theme: o }) => ({
|
|
1707
1707
|
position: "absolute",
|
|
@@ -1723,9 +1723,9 @@ function st({
|
|
|
1723
1723
|
variant: e,
|
|
1724
1724
|
...o
|
|
1725
1725
|
}) {
|
|
1726
|
-
const r = T(), i =
|
|
1727
|
-
return /* @__PURE__ */ n(
|
|
1728
|
-
|
|
1726
|
+
const r = T(), i = $(r);
|
|
1727
|
+
return /* @__PURE__ */ n(Xo, { size: t, variant: e, children: /* @__PURE__ */ n(
|
|
1728
|
+
E,
|
|
1729
1729
|
{
|
|
1730
1730
|
...o,
|
|
1731
1731
|
size: t,
|
|
@@ -1735,7 +1735,7 @@ function st({
|
|
|
1735
1735
|
}
|
|
1736
1736
|
) });
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1738
|
+
const Qo = m(w, {
|
|
1739
1739
|
shouldForwardProp: (t) => !["size", "variant", "readOnly"].includes(t)
|
|
1740
1740
|
})(({ size: t, variant: e, readOnly: o, theme: r }) => ({
|
|
1741
1741
|
// 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
|
|
@@ -1775,7 +1775,7 @@ function ut({
|
|
|
1775
1775
|
readOnly: r,
|
|
1776
1776
|
...i
|
|
1777
1777
|
}) {
|
|
1778
|
-
return /* @__PURE__ */ n(
|
|
1778
|
+
return /* @__PURE__ */ n(Qo, { ...i, size: e, variant: o, readOnly: r, children: t });
|
|
1779
1779
|
}
|
|
1780
1780
|
function xt({
|
|
1781
1781
|
handleClear: t,
|
|
@@ -1787,15 +1787,15 @@ function xt({
|
|
|
1787
1787
|
helperText: a,
|
|
1788
1788
|
placeholder: c,
|
|
1789
1789
|
slotProps: d,
|
|
1790
|
-
slots:
|
|
1791
|
-
error:
|
|
1790
|
+
slots: p,
|
|
1791
|
+
error: u,
|
|
1792
1792
|
showCalendar: s = !0,
|
|
1793
1793
|
readOnly: b,
|
|
1794
1794
|
"aria-label": g,
|
|
1795
1795
|
"data-testid": f,
|
|
1796
|
-
...
|
|
1796
|
+
...M
|
|
1797
1797
|
}) {
|
|
1798
|
-
const
|
|
1798
|
+
const h = T(), v = $(h);
|
|
1799
1799
|
return (
|
|
1800
1800
|
// Don't remove className, it's used for styling
|
|
1801
1801
|
/* @__PURE__ */ n(w, { className: "CartoDatePicker-root", "data-testid": "date-picker", children: /* @__PURE__ */ n(
|
|
@@ -1808,9 +1808,9 @@ function xt({
|
|
|
1808
1808
|
"aria-label": g,
|
|
1809
1809
|
"data-testid": f,
|
|
1810
1810
|
children: /* @__PURE__ */ n(
|
|
1811
|
-
|
|
1811
|
+
Te,
|
|
1812
1812
|
{
|
|
1813
|
-
...
|
|
1813
|
+
...M,
|
|
1814
1814
|
label: r && /* @__PURE__ */ n(
|
|
1815
1815
|
X,
|
|
1816
1816
|
{
|
|
@@ -1826,7 +1826,7 @@ function xt({
|
|
|
1826
1826
|
helperText: a,
|
|
1827
1827
|
placeholder: c,
|
|
1828
1828
|
size: o,
|
|
1829
|
-
error:
|
|
1829
|
+
error: u ?? void 0,
|
|
1830
1830
|
// undefined is needed to allow the component to control the error state for the default validation
|
|
1831
1831
|
inputProps: {
|
|
1832
1832
|
"data-testid": "date-picker-input"
|
|
@@ -1841,7 +1841,7 @@ function xt({
|
|
|
1841
1841
|
slots: {
|
|
1842
1842
|
clearButton: (k) => /* @__PURE__ */ n(st, { ...k, size: o, variant: e }),
|
|
1843
1843
|
openPickerButton: (k) => /* @__PURE__ */ n(
|
|
1844
|
-
|
|
1844
|
+
E,
|
|
1845
1845
|
{
|
|
1846
1846
|
...k,
|
|
1847
1847
|
size: o,
|
|
@@ -1850,7 +1850,7 @@ function xt({
|
|
|
1850
1850
|
})
|
|
1851
1851
|
}
|
|
1852
1852
|
),
|
|
1853
|
-
...
|
|
1853
|
+
...p
|
|
1854
1854
|
},
|
|
1855
1855
|
disableOpenPicker: !s,
|
|
1856
1856
|
readOnly: b
|
|
@@ -1860,7 +1860,7 @@ function xt({
|
|
|
1860
1860
|
) })
|
|
1861
1861
|
);
|
|
1862
1862
|
}
|
|
1863
|
-
const
|
|
1863
|
+
const tr = m(w, {
|
|
1864
1864
|
shouldForwardProp: (t) => ![
|
|
1865
1865
|
"isSelected",
|
|
1866
1866
|
"isStartDate",
|
|
@@ -1955,7 +1955,7 @@ const er = m(w, {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
})
|
|
1958
|
-
),
|
|
1958
|
+
), er = m(Re, {
|
|
1959
1959
|
shouldForwardProp: (t) => t !== "isDateRangeLimit"
|
|
1960
1960
|
})(({ theme: t, isDateRangeLimit: e }) => ({
|
|
1961
1961
|
"&.MuiPickersDay-root": {
|
|
@@ -1983,18 +1983,18 @@ function Ct({
|
|
|
1983
1983
|
selectedMonth: r,
|
|
1984
1984
|
...i
|
|
1985
1985
|
}) {
|
|
1986
|
-
const l = !!(e && yt(e, t)), a = !!(o && yt(o, t)), c = !!(e && o && t.getTime() >= e.getTime() && t.getTime() <= o.getTime()), d = t.getDate() === 1,
|
|
1986
|
+
const l = !!(e && yt(e, t)), a = !!(o && yt(o, t)), c = !!(e && o && t.getTime() >= e.getTime() && t.getTime() <= o.getTime()), d = t.getDate() === 1, p = t.getDate() === new Date(t.getFullYear(), t.getMonth() + 1, 0).getDate(), u = !!(r && t.getMonth() === r.getMonth());
|
|
1987
1987
|
return /* @__PURE__ */ n(
|
|
1988
|
-
|
|
1988
|
+
tr,
|
|
1989
1989
|
{
|
|
1990
1990
|
isSelected: c,
|
|
1991
1991
|
isStartDate: l,
|
|
1992
1992
|
isEndDate: a,
|
|
1993
|
-
isSelectedMonth:
|
|
1994
|
-
isLastDay:
|
|
1993
|
+
isSelectedMonth: u,
|
|
1994
|
+
isLastDay: p,
|
|
1995
1995
|
isFirstDay: d,
|
|
1996
1996
|
children: /* @__PURE__ */ n(
|
|
1997
|
-
|
|
1997
|
+
er,
|
|
1998
1998
|
{
|
|
1999
1999
|
...i,
|
|
2000
2000
|
day: t,
|
|
@@ -2006,7 +2006,7 @@ function Ct({
|
|
|
2006
2006
|
}
|
|
2007
2007
|
);
|
|
2008
2008
|
}
|
|
2009
|
-
const
|
|
2009
|
+
const or = m(w, {
|
|
2010
2010
|
shouldForwardProp: (t) => !["variant"].includes(t)
|
|
2011
2011
|
})(({ variant: t, theme: e }) => ({
|
|
2012
2012
|
display: "flex",
|
|
@@ -2056,7 +2056,7 @@ const rr = m(w, {
|
|
|
2056
2056
|
}
|
|
2057
2057
|
}
|
|
2058
2058
|
}));
|
|
2059
|
-
function
|
|
2059
|
+
function Vn({
|
|
2060
2060
|
globalHelperText: t,
|
|
2061
2061
|
error: e,
|
|
2062
2062
|
variant: o = "outlined",
|
|
@@ -2066,12 +2066,12 @@ function Un({
|
|
|
2066
2066
|
"data-testid": a,
|
|
2067
2067
|
...c
|
|
2068
2068
|
}) {
|
|
2069
|
-
const d = T(),
|
|
2069
|
+
const d = T(), p = $(d), [u, s] = B(!1), [b, g] = B(!1), [f, M] = B(
|
|
2070
2070
|
(r == null ? void 0 : r.value) || null
|
|
2071
|
-
), [
|
|
2071
|
+
), [h, v] = B((i == null ? void 0 : i.value) || null), [k, D] = B(
|
|
2072
2072
|
(i == null ? void 0 : i.value) ?? (r == null ? void 0 : r.value) ?? /* @__PURE__ */ new Date()
|
|
2073
|
-
),
|
|
2074
|
-
|
|
2073
|
+
), y = e ?? (r == null ? void 0 : r.error) ?? (i == null ? void 0 : i.error), C = (S, L) => {
|
|
2074
|
+
M(S), r != null && r.onChange && r.onChange(S, L), S && L.validationError === null && !b && L.trigger === null && (g(!1), s(!0));
|
|
2075
2075
|
}, A = (S, L) => {
|
|
2076
2076
|
v(S), i != null && i.onChange && i.onChange(S, L);
|
|
2077
2077
|
}, R = () => {
|
|
@@ -2080,16 +2080,16 @@ function Un({
|
|
|
2080
2080
|
}, 120);
|
|
2081
2081
|
}, I = () => {
|
|
2082
2082
|
g(!1), s(!0), setTimeout(() => {
|
|
2083
|
-
D(
|
|
2083
|
+
D(h ?? f ?? /* @__PURE__ */ new Date());
|
|
2084
2084
|
}, 120);
|
|
2085
|
-
},
|
|
2085
|
+
}, W = () => {
|
|
2086
2086
|
g(!1), s(!0), setTimeout(() => {
|
|
2087
|
-
D(
|
|
2087
|
+
D(h ?? f ?? /* @__PURE__ */ new Date());
|
|
2088
2088
|
}, 120);
|
|
2089
2089
|
};
|
|
2090
|
-
return /* @__PURE__ */
|
|
2091
|
-
/* @__PURE__ */
|
|
2092
|
-
|
|
2090
|
+
return /* @__PURE__ */ x(w, { children: [
|
|
2091
|
+
/* @__PURE__ */ x(
|
|
2092
|
+
or,
|
|
2093
2093
|
{
|
|
2094
2094
|
variant: o,
|
|
2095
2095
|
"data-name": "date-range-picker",
|
|
@@ -2102,25 +2102,25 @@ function Un({
|
|
|
2102
2102
|
...c,
|
|
2103
2103
|
...r,
|
|
2104
2104
|
value: (r == null ? void 0 : r.value) ?? f,
|
|
2105
|
-
maxDate:
|
|
2106
|
-
label: (r == null ? void 0 : r.label) ??
|
|
2105
|
+
maxDate: h ?? void 0,
|
|
2106
|
+
label: (r == null ? void 0 : r.label) ?? p.formatMessage({ id: "c4r.form.startDate" }),
|
|
2107
2107
|
slotProps: {
|
|
2108
2108
|
popper: {
|
|
2109
2109
|
placement: "bottom-start",
|
|
2110
|
-
"aria-label":
|
|
2110
|
+
"aria-label": p.formatMessage({
|
|
2111
2111
|
id: "c4r.form.startDateCalendar"
|
|
2112
2112
|
})
|
|
2113
2113
|
},
|
|
2114
2114
|
...r == null ? void 0 : r.slotProps
|
|
2115
2115
|
},
|
|
2116
2116
|
slots: {
|
|
2117
|
-
openPickerIcon:
|
|
2117
|
+
openPickerIcon: Se,
|
|
2118
2118
|
day: (S) => /* @__PURE__ */ n(
|
|
2119
2119
|
Ct,
|
|
2120
2120
|
{
|
|
2121
2121
|
...S,
|
|
2122
2122
|
startDate: f,
|
|
2123
|
-
endDate:
|
|
2123
|
+
endDate: h,
|
|
2124
2124
|
selectedMonth: k
|
|
2125
2125
|
}
|
|
2126
2126
|
),
|
|
@@ -2128,7 +2128,7 @@ function Un({
|
|
|
2128
2128
|
},
|
|
2129
2129
|
error: (r == null ? void 0 : r.error) ?? e,
|
|
2130
2130
|
open: b,
|
|
2131
|
-
onChange:
|
|
2131
|
+
onChange: C,
|
|
2132
2132
|
onOpen: R,
|
|
2133
2133
|
onClose: I,
|
|
2134
2134
|
onMonthChange: (S) => D(S),
|
|
@@ -2140,11 +2140,11 @@ function Un({
|
|
|
2140
2140
|
{
|
|
2141
2141
|
...c,
|
|
2142
2142
|
...i,
|
|
2143
|
-
value: (i == null ? void 0 : i.value) ??
|
|
2143
|
+
value: (i == null ? void 0 : i.value) ?? h,
|
|
2144
2144
|
minDate: f ?? void 0,
|
|
2145
2145
|
slotProps: {
|
|
2146
2146
|
popper: {
|
|
2147
|
-
"aria-label":
|
|
2147
|
+
"aria-label": p.formatMessage({
|
|
2148
2148
|
id: "c4r.form.endDateCalendar"
|
|
2149
2149
|
})
|
|
2150
2150
|
},
|
|
@@ -2156,16 +2156,16 @@ function Un({
|
|
|
2156
2156
|
{
|
|
2157
2157
|
...S,
|
|
2158
2158
|
startDate: f,
|
|
2159
|
-
endDate:
|
|
2159
|
+
endDate: h,
|
|
2160
2160
|
selectedMonth: k
|
|
2161
2161
|
}
|
|
2162
2162
|
),
|
|
2163
2163
|
...i == null ? void 0 : i.slots
|
|
2164
2164
|
},
|
|
2165
|
-
label: (i == null ? void 0 : i.label) ??
|
|
2165
|
+
label: (i == null ? void 0 : i.label) ?? p.formatMessage({ id: "c4r.form.endDate" }),
|
|
2166
2166
|
error: (i == null ? void 0 : i.error) ?? e,
|
|
2167
|
-
open:
|
|
2168
|
-
onOpen:
|
|
2167
|
+
open: u,
|
|
2168
|
+
onOpen: W,
|
|
2169
2169
|
onClose: () => s(!1),
|
|
2170
2170
|
onChange: A,
|
|
2171
2171
|
onMonthChange: (S) => D(S),
|
|
@@ -2175,7 +2175,7 @@ function Un({
|
|
|
2175
2175
|
]
|
|
2176
2176
|
}
|
|
2177
2177
|
),
|
|
2178
|
-
t && /* @__PURE__ */ n(J, { error:
|
|
2178
|
+
t && /* @__PURE__ */ n(J, { error: y, children: t })
|
|
2179
2179
|
] });
|
|
2180
2180
|
}
|
|
2181
2181
|
const Yt = (t, e, o, r) => {
|
|
@@ -2184,7 +2184,7 @@ const Yt = (t, e, o, r) => {
|
|
|
2184
2184
|
const d = [];
|
|
2185
2185
|
return e && d.push("MM/dd/yyyy "), i && d.push(o ? "hh" : "HH"), c || d.push(":"), a && d.push("mm"), l && d.push(":ss"), o && d.push(" a"), d.join("");
|
|
2186
2186
|
};
|
|
2187
|
-
function
|
|
2187
|
+
function Un({
|
|
2188
2188
|
handleClear: t,
|
|
2189
2189
|
variant: e = "outlined",
|
|
2190
2190
|
size: o = "small",
|
|
@@ -2194,26 +2194,26 @@ function Yn({
|
|
|
2194
2194
|
helperText: a,
|
|
2195
2195
|
placeholder: c,
|
|
2196
2196
|
error: d,
|
|
2197
|
-
showClock:
|
|
2198
|
-
readOnly:
|
|
2197
|
+
showClock: p = !0,
|
|
2198
|
+
readOnly: u,
|
|
2199
2199
|
slotProps: s,
|
|
2200
2200
|
slots: b,
|
|
2201
2201
|
ampm: g = !0,
|
|
2202
2202
|
views: f = ["hours", "minutes"],
|
|
2203
|
-
format:
|
|
2204
|
-
"data-testid":
|
|
2203
|
+
format: M,
|
|
2204
|
+
"data-testid": h,
|
|
2205
2205
|
"aria-label": v,
|
|
2206
2206
|
...k
|
|
2207
2207
|
}) {
|
|
2208
|
-
const D = T(),
|
|
2208
|
+
const D = T(), y = $(D), C = Z(null), [A, R] = B(0);
|
|
2209
2209
|
return z(() => {
|
|
2210
|
-
if (!
|
|
2211
|
-
const I = new ResizeObserver((
|
|
2210
|
+
if (!C.current) return;
|
|
2211
|
+
const I = new ResizeObserver((W) => {
|
|
2212
2212
|
var L;
|
|
2213
|
-
const S = (L =
|
|
2213
|
+
const S = (L = W[0]) == null ? void 0 : L.contentRect.width;
|
|
2214
2214
|
S && R(S);
|
|
2215
2215
|
});
|
|
2216
|
-
return I.observe(
|
|
2216
|
+
return I.observe(C.current), () => {
|
|
2217
2217
|
I.disconnect();
|
|
2218
2218
|
};
|
|
2219
2219
|
}, []), /* @__PURE__ */ n(
|
|
@@ -2221,25 +2221,25 @@ function Yn({
|
|
|
2221
2221
|
{
|
|
2222
2222
|
size: o,
|
|
2223
2223
|
variant: e,
|
|
2224
|
-
readOnly:
|
|
2224
|
+
readOnly: u,
|
|
2225
2225
|
"data-name": "time-picker",
|
|
2226
|
-
"data-testid":
|
|
2226
|
+
"data-testid": h ?? "time-picker",
|
|
2227
2227
|
"aria-label": v,
|
|
2228
2228
|
children: /* @__PURE__ */ n(
|
|
2229
|
-
|
|
2229
|
+
Oe,
|
|
2230
2230
|
{
|
|
2231
2231
|
...k,
|
|
2232
|
-
ref:
|
|
2232
|
+
ref: C,
|
|
2233
2233
|
label: /* @__PURE__ */ n(
|
|
2234
2234
|
X,
|
|
2235
2235
|
{
|
|
2236
|
-
label: r ??
|
|
2236
|
+
label: r ?? y.formatMessage({ id: "c4r.form.time" }),
|
|
2237
2237
|
type: l,
|
|
2238
2238
|
icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
|
|
2239
2239
|
}
|
|
2240
2240
|
),
|
|
2241
2241
|
views: ["hours"],
|
|
2242
|
-
format: Yt(f, !1, g,
|
|
2242
|
+
format: Yt(f, !1, g, M),
|
|
2243
2243
|
slotProps: {
|
|
2244
2244
|
textField: {
|
|
2245
2245
|
variant: e,
|
|
@@ -2269,26 +2269,26 @@ function Yn({
|
|
|
2269
2269
|
slots: {
|
|
2270
2270
|
clearButton: (I) => /* @__PURE__ */ n(st, { ...I, size: o, variant: e }),
|
|
2271
2271
|
openPickerButton: (I) => /* @__PURE__ */ n(
|
|
2272
|
-
|
|
2272
|
+
E,
|
|
2273
2273
|
{
|
|
2274
2274
|
...I,
|
|
2275
2275
|
size: o,
|
|
2276
|
-
"aria-label":
|
|
2276
|
+
"aria-label": y.formatMessage({
|
|
2277
2277
|
id: "c4r.form.chooseDate"
|
|
2278
2278
|
})
|
|
2279
2279
|
}
|
|
2280
2280
|
),
|
|
2281
2281
|
...b
|
|
2282
2282
|
},
|
|
2283
|
-
disableOpenPicker: !
|
|
2284
|
-
readOnly:
|
|
2283
|
+
disableOpenPicker: !p,
|
|
2284
|
+
readOnly: u,
|
|
2285
2285
|
ampm: g
|
|
2286
2286
|
}
|
|
2287
2287
|
)
|
|
2288
2288
|
}
|
|
2289
2289
|
);
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function Yn({
|
|
2292
2292
|
handleClear: t,
|
|
2293
2293
|
variant: e = "outlined",
|
|
2294
2294
|
size: o = "small",
|
|
@@ -2298,41 +2298,41 @@ function qn({
|
|
|
2298
2298
|
helperText: a,
|
|
2299
2299
|
placeholder: c,
|
|
2300
2300
|
error: d,
|
|
2301
|
-
showCalendar:
|
|
2302
|
-
readOnly:
|
|
2301
|
+
showCalendar: p = !0,
|
|
2302
|
+
readOnly: u,
|
|
2303
2303
|
slotProps: s,
|
|
2304
2304
|
slots: b,
|
|
2305
2305
|
ampm: g = !0,
|
|
2306
2306
|
views: f = ["hours", "minutes"],
|
|
2307
|
-
format:
|
|
2308
|
-
"data-testid":
|
|
2307
|
+
format: M,
|
|
2308
|
+
"data-testid": h,
|
|
2309
2309
|
"aria-label": v,
|
|
2310
2310
|
...k
|
|
2311
2311
|
}) {
|
|
2312
|
-
const D = T(),
|
|
2312
|
+
const D = T(), y = $(D);
|
|
2313
2313
|
return /* @__PURE__ */ n(
|
|
2314
2314
|
ut,
|
|
2315
2315
|
{
|
|
2316
2316
|
size: o,
|
|
2317
2317
|
variant: e,
|
|
2318
|
-
readOnly:
|
|
2318
|
+
readOnly: u,
|
|
2319
2319
|
"data-name": "date-time-picker",
|
|
2320
|
-
"data-testid":
|
|
2320
|
+
"data-testid": h ?? "date-time-picker",
|
|
2321
2321
|
"aria-label": v,
|
|
2322
2322
|
children: /* @__PURE__ */ n(
|
|
2323
|
-
|
|
2323
|
+
Fe,
|
|
2324
2324
|
{
|
|
2325
2325
|
...k,
|
|
2326
2326
|
label: /* @__PURE__ */ n(
|
|
2327
2327
|
X,
|
|
2328
2328
|
{
|
|
2329
|
-
label: r ??
|
|
2329
|
+
label: r ?? y.formatMessage({ id: "c4r.form.time" }),
|
|
2330
2330
|
type: l,
|
|
2331
2331
|
icon: i && /* @__PURE__ */ n(P, { title: i, children: /* @__PURE__ */ n(K, { htmlColor: "text.secondary" }) })
|
|
2332
2332
|
}
|
|
2333
2333
|
),
|
|
2334
2334
|
views: ["year", "month", "day", "hours"],
|
|
2335
|
-
format: Yt(f, !0, g,
|
|
2335
|
+
format: Yt(f, !0, g, M),
|
|
2336
2336
|
slotProps: {
|
|
2337
2337
|
textField: {
|
|
2338
2338
|
variant: e,
|
|
@@ -2352,58 +2352,58 @@ function qn({
|
|
|
2352
2352
|
...s
|
|
2353
2353
|
},
|
|
2354
2354
|
slots: {
|
|
2355
|
-
clearButton: (
|
|
2356
|
-
openPickerButton: (
|
|
2357
|
-
|
|
2355
|
+
clearButton: (C) => /* @__PURE__ */ n(st, { ...C, size: o, variant: e }),
|
|
2356
|
+
openPickerButton: (C) => /* @__PURE__ */ n(
|
|
2357
|
+
E,
|
|
2358
2358
|
{
|
|
2359
|
-
...
|
|
2359
|
+
...C,
|
|
2360
2360
|
size: o,
|
|
2361
|
-
"aria-label":
|
|
2361
|
+
"aria-label": y.formatMessage({
|
|
2362
2362
|
id: "c4r.form.chooseDate"
|
|
2363
2363
|
})
|
|
2364
2364
|
}
|
|
2365
2365
|
),
|
|
2366
2366
|
...b
|
|
2367
2367
|
},
|
|
2368
|
-
disableOpenPicker: !
|
|
2369
|
-
readOnly:
|
|
2368
|
+
disableOpenPicker: !p,
|
|
2369
|
+
readOnly: u,
|
|
2370
2370
|
ampm: g
|
|
2371
2371
|
}
|
|
2372
2372
|
)
|
|
2373
2373
|
}
|
|
2374
2374
|
);
|
|
2375
2375
|
}
|
|
2376
|
-
const
|
|
2376
|
+
const rr = [{ outlinedBullet: !1, value: "" }], nr = m("ul")(({ theme: t }) => ({
|
|
2377
2377
|
listStyle: "none",
|
|
2378
2378
|
paddingLeft: 0,
|
|
2379
2379
|
margin: t.spacing(0.5, 0, 0, 0)
|
|
2380
|
-
})),
|
|
2380
|
+
})), ir = m("li")(({ theme: t }) => ({
|
|
2381
2381
|
display: "flex",
|
|
2382
2382
|
alignItems: "center",
|
|
2383
2383
|
justifyContent: "space-between",
|
|
2384
2384
|
"&:not(:last-child)": {
|
|
2385
2385
|
marginBottom: t.spacing(0.5)
|
|
2386
2386
|
}
|
|
2387
|
-
})),
|
|
2387
|
+
})), ar = m("span")(({ theme: t }) => ({
|
|
2388
2388
|
width: t.spacing(1),
|
|
2389
2389
|
height: t.spacing(1),
|
|
2390
2390
|
marginRight: t.spacing(0.5),
|
|
2391
2391
|
border: `2px solid ${t.palette.qualitative.bold[1]}`,
|
|
2392
2392
|
borderRadius: "50%",
|
|
2393
2393
|
backgroundColor: t.palette.qualitative.bold[1]
|
|
2394
|
-
})),
|
|
2394
|
+
})), lr = m(F)(({ theme: t }) => ({
|
|
2395
2395
|
minWidth: t.spacing(10),
|
|
2396
2396
|
marginRight: t.spacing(1.5)
|
|
2397
2397
|
}));
|
|
2398
|
-
function
|
|
2399
|
-
items: t =
|
|
2398
|
+
function qn({
|
|
2399
|
+
items: t = rr,
|
|
2400
2400
|
title: e
|
|
2401
2401
|
}) {
|
|
2402
|
-
return /* @__PURE__ */
|
|
2402
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
2403
2403
|
e && /* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: e }),
|
|
2404
|
-
/* @__PURE__ */ n(
|
|
2404
|
+
/* @__PURE__ */ n(nr, { children: t.map((o, r) => /* @__PURE__ */ x(ir, { children: [
|
|
2405
2405
|
/* @__PURE__ */ n(
|
|
2406
|
-
|
|
2406
|
+
ar,
|
|
2407
2407
|
{
|
|
2408
2408
|
style: {
|
|
2409
2409
|
backgroundColor: `${o.outlinedBullet ? "transparent" : o.color}`,
|
|
@@ -2411,12 +2411,12 @@ function Zn({
|
|
|
2411
2411
|
}
|
|
2412
2412
|
}
|
|
2413
2413
|
),
|
|
2414
|
-
o.category && /* @__PURE__ */ n(
|
|
2414
|
+
o.category && /* @__PURE__ */ n(lr, { color: "inherit", variant: "caption", children: o.category }),
|
|
2415
2415
|
/* @__PURE__ */ n(F, { color: "inherit", variant: "caption", weight: "medium", children: o.value })
|
|
2416
2416
|
] }, r)) })
|
|
2417
2417
|
] });
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2419
|
+
const cr = m(w, {
|
|
2420
2420
|
shouldForwardProp: (t) => !["withGutter", "disabled"].includes(t)
|
|
2421
2421
|
})(
|
|
2422
2422
|
({ withGutter: t, disabled: e, theme: o }) => ({
|
|
@@ -2438,34 +2438,32 @@ const dr = m(w, {
|
|
|
2438
2438
|
function qt({
|
|
2439
2439
|
onClickFooter: t,
|
|
2440
2440
|
labelIdButtonFooter: e,
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
...u
|
|
2441
|
+
disabledButtonFooter: o,
|
|
2442
|
+
withGutter: r = !0,
|
|
2443
|
+
showSnackbar: i,
|
|
2444
|
+
onCloseSnackbar: l,
|
|
2445
|
+
loading: a,
|
|
2446
|
+
disabled: c,
|
|
2447
|
+
...d
|
|
2449
2448
|
}) {
|
|
2450
|
-
const p = T(),
|
|
2451
|
-
return t ? /* @__PURE__ */
|
|
2452
|
-
|
|
2449
|
+
const p = T(), u = $(p);
|
|
2450
|
+
return t ? /* @__PURE__ */ x(
|
|
2451
|
+
cr,
|
|
2453
2452
|
{
|
|
2454
|
-
withGutter:
|
|
2455
|
-
disabled:
|
|
2453
|
+
withGutter: r,
|
|
2454
|
+
disabled: c,
|
|
2456
2455
|
"data-name": "code-area-footer",
|
|
2457
|
-
"data-gutter":
|
|
2456
|
+
"data-gutter": r,
|
|
2458
2457
|
children: [
|
|
2459
2458
|
/* @__PURE__ */ n(
|
|
2460
2459
|
nt,
|
|
2461
2460
|
{
|
|
2462
2461
|
variant: "text",
|
|
2463
|
-
...
|
|
2464
|
-
loading:
|
|
2462
|
+
...d,
|
|
2463
|
+
loading: a,
|
|
2465
2464
|
onClick: t,
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
children: s.formatMessage({
|
|
2465
|
+
disabled: c || o,
|
|
2466
|
+
children: u.formatMessage({
|
|
2469
2467
|
id: e || "c4r.button.save"
|
|
2470
2468
|
})
|
|
2471
2469
|
}
|
|
@@ -2473,12 +2471,12 @@ function qt({
|
|
|
2473
2471
|
/* @__PURE__ */ n(
|
|
2474
2472
|
dt,
|
|
2475
2473
|
{
|
|
2476
|
-
open:
|
|
2474
|
+
open: i,
|
|
2477
2475
|
autoWidth: !0,
|
|
2478
2476
|
closeable: !1,
|
|
2479
2477
|
autoHideDuration: 4e3,
|
|
2480
|
-
onClose:
|
|
2481
|
-
children:
|
|
2478
|
+
onClose: l,
|
|
2479
|
+
children: u.formatMessage({
|
|
2482
2480
|
id: "c4r.notifications.changesSaved"
|
|
2483
2481
|
})
|
|
2484
2482
|
}
|
|
@@ -2498,55 +2496,55 @@ const Mt = m(w, { shouldForwardProp: (t) => t !== "size" })(({ size: t, theme: e
|
|
|
2498
2496
|
padding: t === "small" ? e.spacing(0.5) : e.spacing(1, 2, 2),
|
|
2499
2497
|
paddingRight: t === "small" ? 0 : e.spacing(1.5)
|
|
2500
2498
|
}));
|
|
2501
|
-
function
|
|
2499
|
+
function dr({
|
|
2502
2500
|
disabled: t,
|
|
2503
2501
|
copyValue: e,
|
|
2504
2502
|
onClickExpand: o,
|
|
2505
2503
|
size: r
|
|
2506
2504
|
}) {
|
|
2507
|
-
const i = T(), l =
|
|
2505
|
+
const i = T(), l = $(i), a = !!o, c = e !== void 0, d = a && c, { copy: p } = Vt(), [u, s] = B(!1), [b, g] = B(null), f = !!b, M = (k) => {
|
|
2508
2506
|
g(k.currentTarget);
|
|
2509
|
-
},
|
|
2507
|
+
}, h = () => {
|
|
2510
2508
|
g(null);
|
|
2511
2509
|
}, v = (k) => {
|
|
2512
|
-
k.preventDefault(), e &&
|
|
2510
|
+
k.preventDefault(), e && p(e).then(() => {
|
|
2513
2511
|
s(!0);
|
|
2514
2512
|
}).catch(console.error);
|
|
2515
2513
|
};
|
|
2516
|
-
return !a && !c ? null : d ? /* @__PURE__ */
|
|
2517
|
-
/* @__PURE__ */
|
|
2514
|
+
return !a && !c ? null : d ? /* @__PURE__ */ x(H, { children: [
|
|
2515
|
+
/* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
|
|
2518
2516
|
/* @__PURE__ */ n(
|
|
2519
2517
|
q,
|
|
2520
2518
|
{
|
|
2521
2519
|
color: "default",
|
|
2522
2520
|
size: r,
|
|
2523
|
-
icon: /* @__PURE__ */ n(
|
|
2521
|
+
icon: /* @__PURE__ */ n(Ie, {}),
|
|
2524
2522
|
disabled: t,
|
|
2525
2523
|
tooltip: l.formatMessage({ id: "c4r.button.showOptions" }),
|
|
2526
2524
|
tooltipPlacement: "top",
|
|
2527
2525
|
"aria-controls": f ? "basic-menu" : void 0,
|
|
2528
2526
|
"aria-haspopup": "true",
|
|
2529
2527
|
"aria-expanded": f ? "true" : void 0,
|
|
2530
|
-
onClick:
|
|
2528
|
+
onClick: M
|
|
2531
2529
|
}
|
|
2532
2530
|
),
|
|
2533
|
-
/* @__PURE__ */
|
|
2534
|
-
|
|
2531
|
+
/* @__PURE__ */ x(
|
|
2532
|
+
lo,
|
|
2535
2533
|
{
|
|
2536
2534
|
anchorEl: b,
|
|
2537
2535
|
open: f,
|
|
2538
|
-
onClose:
|
|
2536
|
+
onClose: h,
|
|
2539
2537
|
id: "menu",
|
|
2540
2538
|
MenuListProps: { "aria-labelledby": "menu-button" },
|
|
2541
2539
|
"aria-label": "Code area actions",
|
|
2542
2540
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
2543
2541
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
2544
2542
|
children: [
|
|
2545
|
-
/* @__PURE__ */
|
|
2543
|
+
/* @__PURE__ */ x(Y, { onClick: v, disabled: t, id: "copy", children: [
|
|
2546
2544
|
/* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(Lt, {}) }),
|
|
2547
2545
|
/* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.copy" }) })
|
|
2548
2546
|
] }),
|
|
2549
|
-
/* @__PURE__ */
|
|
2547
|
+
/* @__PURE__ */ x(Y, { onClick: o, disabled: t, id: "expand", children: [
|
|
2550
2548
|
/* @__PURE__ */ n(rt, { children: /* @__PURE__ */ n(mt, {}) }),
|
|
2551
2549
|
/* @__PURE__ */ n(U, { children: l.formatMessage({ id: "c4r.button.expand" }) })
|
|
2552
2550
|
] })
|
|
@@ -2557,7 +2555,7 @@ function sr({
|
|
|
2557
2555
|
/* @__PURE__ */ n(
|
|
2558
2556
|
dt,
|
|
2559
2557
|
{
|
|
2560
|
-
open:
|
|
2558
|
+
open: u,
|
|
2561
2559
|
autoWidth: !0,
|
|
2562
2560
|
closeable: !1,
|
|
2563
2561
|
autoHideDuration: 4e3,
|
|
@@ -2567,9 +2565,9 @@ function sr({
|
|
|
2567
2565
|
})
|
|
2568
2566
|
}
|
|
2569
2567
|
)
|
|
2570
|
-
] }) : /* @__PURE__ */
|
|
2568
|
+
] }) : /* @__PURE__ */ x(Mt, { size: r, "data-size": r, "data-name": "code-area-header", children: [
|
|
2571
2569
|
c && /* @__PURE__ */ n(
|
|
2572
|
-
|
|
2570
|
+
To,
|
|
2573
2571
|
{
|
|
2574
2572
|
disabled: t,
|
|
2575
2573
|
value: e,
|
|
@@ -2591,7 +2589,7 @@ function sr({
|
|
|
2591
2589
|
)
|
|
2592
2590
|
] });
|
|
2593
2591
|
}
|
|
2594
|
-
const
|
|
2592
|
+
const sr = m(w, {
|
|
2595
2593
|
shouldForwardProp: (t) => !["size", "height"].includes(t)
|
|
2596
2594
|
})(({ size: t, height: e, theme: o }) => ({
|
|
2597
2595
|
position: "relative",
|
|
@@ -2708,13 +2706,13 @@ const ur = m(w, {
|
|
|
2708
2706
|
},
|
|
2709
2707
|
// Theme: light
|
|
2710
2708
|
"& .cm-keyword, & .cm-string, & .cm-string-2, & .cm-other": {
|
|
2711
|
-
color:
|
|
2709
|
+
color: He[500]
|
|
2712
2710
|
},
|
|
2713
2711
|
"& .cm-operator, & .cm-tag, & .cm-attribute": {
|
|
2714
|
-
color:
|
|
2712
|
+
color: Pe[700]
|
|
2715
2713
|
},
|
|
2716
2714
|
"& .cm-number, & .cm-property, & .cm-builtin": {
|
|
2717
|
-
color:
|
|
2715
|
+
color: ze[700]
|
|
2718
2716
|
},
|
|
2719
2717
|
"& .cm-comment": {
|
|
2720
2718
|
color: o.palette.text.secondary
|
|
@@ -2729,7 +2727,7 @@ const ur = m(w, {
|
|
|
2729
2727
|
color: tt[800]
|
|
2730
2728
|
},
|
|
2731
2729
|
"& .cm-variable-3, & .cm-type": {
|
|
2732
|
-
color:
|
|
2730
|
+
color: Ne[800]
|
|
2733
2731
|
},
|
|
2734
2732
|
"& .CodeMirror-foldmarker": {
|
|
2735
2733
|
textShadow: "none",
|
|
@@ -2764,7 +2762,7 @@ const ur = m(w, {
|
|
|
2764
2762
|
}
|
|
2765
2763
|
}
|
|
2766
2764
|
}));
|
|
2767
|
-
function
|
|
2765
|
+
function ur(t) {
|
|
2768
2766
|
const e = t.split(`
|
|
2769
2767
|
`), o = [], r = [];
|
|
2770
2768
|
for (e.forEach((i, l) => {
|
|
@@ -2788,7 +2786,7 @@ function pr(t) {
|
|
|
2788
2786
|
}
|
|
2789
2787
|
return o;
|
|
2790
2788
|
}
|
|
2791
|
-
function
|
|
2789
|
+
function pr({
|
|
2792
2790
|
options: t,
|
|
2793
2791
|
value: e,
|
|
2794
2792
|
defaultValue: o,
|
|
@@ -2798,22 +2796,22 @@ function gr({
|
|
|
2798
2796
|
onBlur: a,
|
|
2799
2797
|
onFocus: c,
|
|
2800
2798
|
placeholder: d,
|
|
2801
|
-
disabled:
|
|
2802
|
-
size:
|
|
2799
|
+
disabled: p,
|
|
2800
|
+
size: u = "small",
|
|
2803
2801
|
height: s,
|
|
2804
2802
|
"data-testid": b,
|
|
2805
2803
|
"aria-label": g = "Code editor text area",
|
|
2806
2804
|
...f
|
|
2807
2805
|
}) {
|
|
2808
|
-
var
|
|
2809
|
-
const
|
|
2806
|
+
var y;
|
|
2807
|
+
const M = Z(), h = {
|
|
2810
2808
|
mode: "sql",
|
|
2811
2809
|
theme: "light",
|
|
2812
2810
|
lineNumbers: !0,
|
|
2813
2811
|
lineWrapping: !0,
|
|
2814
2812
|
extraKeys: { "Ctrl-Space": "autocomplete" },
|
|
2815
2813
|
placeholder: d,
|
|
2816
|
-
disabled:
|
|
2814
|
+
disabled: p,
|
|
2817
2815
|
gutters: ["CodeMirror-linenumbers", "CodeMirror-foldgutter"],
|
|
2818
2816
|
styleActiveLine: { nonEmpty: !0 },
|
|
2819
2817
|
styleActiveSelected: !0,
|
|
@@ -2823,19 +2821,19 @@ function gr({
|
|
|
2823
2821
|
scanUp: !1
|
|
2824
2822
|
},
|
|
2825
2823
|
...t
|
|
2826
|
-
}, [v, k] =
|
|
2824
|
+
}, [v, k] = B(null);
|
|
2827
2825
|
z(() => () => {
|
|
2828
2826
|
k(null);
|
|
2829
2827
|
}, []);
|
|
2830
2828
|
const D = ot(
|
|
2831
|
-
({ from:
|
|
2829
|
+
({ from: C, to: A }) => {
|
|
2832
2830
|
v.foldCode(
|
|
2833
2831
|
0,
|
|
2834
2832
|
{
|
|
2835
2833
|
rangeFinder: () => {
|
|
2836
2834
|
if (A)
|
|
2837
2835
|
return {
|
|
2838
|
-
from: { line:
|
|
2836
|
+
from: { line: C - 1, ch: 0 },
|
|
2839
2837
|
to: { line: A - 1, ch: 0 }
|
|
2840
2838
|
};
|
|
2841
2839
|
}
|
|
@@ -2847,50 +2845,50 @@ function gr({
|
|
|
2847
2845
|
);
|
|
2848
2846
|
return z(() => {
|
|
2849
2847
|
if (!e || !v) return;
|
|
2850
|
-
const
|
|
2851
|
-
if (
|
|
2852
|
-
for (const A of
|
|
2848
|
+
const C = ur(e);
|
|
2849
|
+
if (C.length)
|
|
2850
|
+
for (const A of C)
|
|
2853
2851
|
D(A);
|
|
2854
|
-
}, [e, D, v]), /* @__PURE__ */
|
|
2855
|
-
|
|
2852
|
+
}, [e, D, v]), /* @__PURE__ */ x(
|
|
2853
|
+
sr,
|
|
2856
2854
|
{
|
|
2857
|
-
size:
|
|
2855
|
+
size: u,
|
|
2858
2856
|
height: s,
|
|
2859
2857
|
id: r,
|
|
2860
|
-
"data-size":
|
|
2858
|
+
"data-size": u,
|
|
2861
2859
|
"data-height": s,
|
|
2862
|
-
"data-mode": typeof (t == null ? void 0 : t.mode) == "object" && ((
|
|
2860
|
+
"data-mode": typeof (t == null ? void 0 : t.mode) == "object" && ((y = t.mode) != null && y.name) ? t.mode.name : t == null ? void 0 : t.mode,
|
|
2863
2861
|
"data-fold-gutter": t == null ? void 0 : t.foldGutter,
|
|
2864
2862
|
"data-testid": b,
|
|
2865
2863
|
"aria-label": g,
|
|
2866
2864
|
"data-name": "code-area-input",
|
|
2867
2865
|
children: [
|
|
2868
2866
|
e !== void 0 && /* @__PURE__ */ n(
|
|
2869
|
-
|
|
2867
|
+
We,
|
|
2870
2868
|
{
|
|
2871
2869
|
...f,
|
|
2872
2870
|
value: e,
|
|
2873
|
-
editorDidMount: (
|
|
2874
|
-
|
|
2871
|
+
editorDidMount: (C) => {
|
|
2872
|
+
M.current = C, k(C), i == null || i(C);
|
|
2875
2873
|
},
|
|
2876
|
-
options:
|
|
2877
|
-
onBeforeChange: (
|
|
2874
|
+
options: h,
|
|
2875
|
+
onBeforeChange: (C, A, R) => {
|
|
2878
2876
|
l == null || l(R);
|
|
2879
2877
|
},
|
|
2880
|
-
onBlur: (
|
|
2881
|
-
a == null || a(
|
|
2878
|
+
onBlur: (C) => {
|
|
2879
|
+
a == null || a(C.getValue());
|
|
2882
2880
|
},
|
|
2883
2881
|
onFocus: c
|
|
2884
2882
|
}
|
|
2885
2883
|
),
|
|
2886
2884
|
o !== void 0 && /* @__PURE__ */ n(
|
|
2887
|
-
|
|
2885
|
+
Ee,
|
|
2888
2886
|
{
|
|
2889
2887
|
...f,
|
|
2890
2888
|
value: o,
|
|
2891
|
-
options:
|
|
2892
|
-
onBlur: (
|
|
2893
|
-
a == null || a(
|
|
2889
|
+
options: h,
|
|
2890
|
+
onBlur: (C) => {
|
|
2891
|
+
a == null || a(C.getValue());
|
|
2894
2892
|
},
|
|
2895
2893
|
onFocus: c
|
|
2896
2894
|
}
|
|
@@ -2899,11 +2897,11 @@ function gr({
|
|
|
2899
2897
|
}
|
|
2900
2898
|
);
|
|
2901
2899
|
}
|
|
2902
|
-
const
|
|
2900
|
+
const gr = m($t)(() => ({
|
|
2903
2901
|
display: "flex",
|
|
2904
2902
|
flexDirection: "column",
|
|
2905
2903
|
flex: 1
|
|
2906
|
-
})),
|
|
2904
|
+
})), fr = m(w, {
|
|
2907
2905
|
shouldForwardProp: (t) => ![
|
|
2908
2906
|
"variant",
|
|
2909
2907
|
"error",
|
|
@@ -3037,7 +3035,7 @@ const fr = m(Bt)(() => ({
|
|
|
3037
3035
|
}
|
|
3038
3036
|
}
|
|
3039
3037
|
})
|
|
3040
|
-
),
|
|
3038
|
+
), mr = m(w, {
|
|
3041
3039
|
shouldForwardProp: (t) => t !== "hasActions"
|
|
3042
3040
|
})(({ theme: t, hasActions: e }) => ({
|
|
3043
3041
|
flex: "1 1 auto",
|
|
@@ -3049,12 +3047,12 @@ const fr = m(Bt)(() => ({
|
|
|
3049
3047
|
paddingRight: `${t.spacing(4)} !important`
|
|
3050
3048
|
}
|
|
3051
3049
|
}
|
|
3052
|
-
})),
|
|
3050
|
+
})), br = m(K)(({ theme: t }) => ({
|
|
3053
3051
|
width: N,
|
|
3054
3052
|
height: N,
|
|
3055
3053
|
fill: t.palette.text.secondary
|
|
3056
3054
|
}));
|
|
3057
|
-
function
|
|
3055
|
+
function hr({
|
|
3058
3056
|
value: t,
|
|
3059
3057
|
defaultValue: e,
|
|
3060
3058
|
validate: o,
|
|
@@ -3064,56 +3062,54 @@ function xr({
|
|
|
3064
3062
|
label: a,
|
|
3065
3063
|
labelHelpTooltip: c,
|
|
3066
3064
|
placeholder: d,
|
|
3067
|
-
type:
|
|
3068
|
-
disabled:
|
|
3065
|
+
type: p,
|
|
3066
|
+
disabled: u,
|
|
3069
3067
|
copyValue: s,
|
|
3070
3068
|
helperText: b,
|
|
3071
3069
|
error: g,
|
|
3072
3070
|
size: f = "small",
|
|
3073
|
-
variant:
|
|
3074
|
-
onClickExpand:
|
|
3071
|
+
variant: M = "outlined",
|
|
3072
|
+
onClickExpand: h,
|
|
3075
3073
|
onClickFooter: v,
|
|
3076
3074
|
disabledButtonFooter: k,
|
|
3077
3075
|
labelIdButtonFooter: D,
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
...V
|
|
3076
|
+
options: y,
|
|
3077
|
+
id: C = "code-area-field",
|
|
3078
|
+
saveLoading: A,
|
|
3079
|
+
showSaveSnackbar: R,
|
|
3080
|
+
onCloseSaveSnackbar: I,
|
|
3081
|
+
fullScreen: W,
|
|
3082
|
+
isExpanded: S,
|
|
3083
|
+
...L
|
|
3087
3084
|
}) {
|
|
3088
|
-
const [
|
|
3089
|
-
return /* @__PURE__ */
|
|
3090
|
-
|
|
3085
|
+
const [V, pt] = B(!1), gt = (y == null ? void 0 : y.readOnly) ?? !1, Xt = (y == null ? void 0 : y.lineNumbers) ?? !0;
|
|
3086
|
+
return /* @__PURE__ */ x(
|
|
3087
|
+
gr,
|
|
3091
3088
|
{
|
|
3092
3089
|
size: f,
|
|
3093
3090
|
error: g,
|
|
3094
|
-
disabled:
|
|
3095
|
-
"aria-disabled":
|
|
3091
|
+
disabled: u,
|
|
3092
|
+
"aria-disabled": u,
|
|
3096
3093
|
"data-size": f,
|
|
3097
|
-
"data-full-screen":
|
|
3098
|
-
"data-variant":
|
|
3094
|
+
"data-full-screen": W,
|
|
3095
|
+
"data-variant": M,
|
|
3099
3096
|
"data-name": "code-area-field",
|
|
3100
3097
|
children: [
|
|
3101
3098
|
a && /* @__PURE__ */ n(
|
|
3102
3099
|
Tt,
|
|
3103
3100
|
{
|
|
3104
|
-
htmlFor:
|
|
3105
|
-
disabled:
|
|
3101
|
+
htmlFor: C,
|
|
3102
|
+
disabled: u,
|
|
3106
3103
|
error: g,
|
|
3107
|
-
focused:
|
|
3104
|
+
focused: V,
|
|
3108
3105
|
shrink: !0,
|
|
3109
|
-
id: `${A}-label`,
|
|
3110
3106
|
children: /* @__PURE__ */ n(
|
|
3111
3107
|
X,
|
|
3112
3108
|
{
|
|
3113
3109
|
label: a,
|
|
3114
|
-
type:
|
|
3110
|
+
type: p,
|
|
3115
3111
|
icon: c ? /* @__PURE__ */ n(P, { title: c, children: /* @__PURE__ */ n(
|
|
3116
|
-
|
|
3112
|
+
br,
|
|
3117
3113
|
{
|
|
3118
3114
|
"aria-label": typeof c == "string" ? c : void 0
|
|
3119
3115
|
}
|
|
@@ -3122,32 +3118,32 @@ function xr({
|
|
|
3122
3118
|
)
|
|
3123
3119
|
}
|
|
3124
3120
|
),
|
|
3125
|
-
/* @__PURE__ */
|
|
3126
|
-
|
|
3121
|
+
/* @__PURE__ */ x(
|
|
3122
|
+
fr,
|
|
3127
3123
|
{
|
|
3128
|
-
variant:
|
|
3124
|
+
variant: M,
|
|
3129
3125
|
error: !!g,
|
|
3130
|
-
disabled:
|
|
3126
|
+
disabled: u,
|
|
3131
3127
|
readOnly: gt,
|
|
3132
|
-
lineNumbers:
|
|
3133
|
-
className:
|
|
3134
|
-
fullScreen:
|
|
3128
|
+
lineNumbers: Xt,
|
|
3129
|
+
className: M === "filled" ? "codeArea-filled" : "",
|
|
3130
|
+
fullScreen: W,
|
|
3135
3131
|
children: [
|
|
3136
3132
|
/* @__PURE__ */ n(
|
|
3137
|
-
|
|
3133
|
+
dr,
|
|
3138
3134
|
{
|
|
3139
|
-
onClickExpand:
|
|
3135
|
+
onClickExpand: h,
|
|
3140
3136
|
copyValue: s,
|
|
3141
|
-
disabled:
|
|
3142
|
-
size:
|
|
3137
|
+
disabled: u,
|
|
3138
|
+
size: S ? "medium" : "small"
|
|
3143
3139
|
}
|
|
3144
3140
|
),
|
|
3145
|
-
/* @__PURE__ */ n(
|
|
3146
|
-
|
|
3141
|
+
/* @__PURE__ */ n(mr, { hasActions: !!s || !!h, children: /* @__PURE__ */ n(
|
|
3142
|
+
pr,
|
|
3147
3143
|
{
|
|
3148
|
-
...
|
|
3149
|
-
id:
|
|
3150
|
-
disabled:
|
|
3144
|
+
...L,
|
|
3145
|
+
id: C,
|
|
3146
|
+
disabled: u,
|
|
3151
3147
|
value: t,
|
|
3152
3148
|
defaultValue: e,
|
|
3153
3149
|
placeholder: d,
|
|
@@ -3164,23 +3160,21 @@ function xr({
|
|
|
3164
3160
|
styleActiveLine: !1,
|
|
3165
3161
|
matchBrackets: !1
|
|
3166
3162
|
},
|
|
3167
|
-
...
|
|
3168
|
-
}
|
|
3169
|
-
"aria-labelledby": a ? `${A}-label` : void 0
|
|
3163
|
+
...y
|
|
3164
|
+
}
|
|
3170
3165
|
}
|
|
3171
3166
|
) }),
|
|
3172
3167
|
/* @__PURE__ */ n(
|
|
3173
3168
|
qt,
|
|
3174
3169
|
{
|
|
3175
3170
|
labelIdButtonFooter: D,
|
|
3176
|
-
ariaLabelButtonFooter: M,
|
|
3177
3171
|
onClickFooter: v,
|
|
3178
|
-
disabled:
|
|
3172
|
+
disabled: u,
|
|
3179
3173
|
disabledButtonFooter: k,
|
|
3180
3174
|
size: "small",
|
|
3181
|
-
loading: !!
|
|
3182
|
-
showSnackbar:
|
|
3183
|
-
onCloseSnackbar:
|
|
3175
|
+
loading: !!A,
|
|
3176
|
+
showSnackbar: R,
|
|
3177
|
+
onCloseSnackbar: I
|
|
3184
3178
|
}
|
|
3185
3179
|
)
|
|
3186
3180
|
]
|
|
@@ -3191,7 +3185,7 @@ function xr({
|
|
|
3191
3185
|
}
|
|
3192
3186
|
);
|
|
3193
3187
|
}
|
|
3194
|
-
const
|
|
3188
|
+
const xr = m(w)(({ theme: t }) => ({
|
|
3195
3189
|
position: "relative",
|
|
3196
3190
|
marginBottom: "1px",
|
|
3197
3191
|
padding: t.spacing(1.5, 2, 1.5, 5.5),
|
|
@@ -3218,20 +3212,20 @@ const yr = m(w)(({ theme: t }) => ({
|
|
|
3218
3212
|
".MuiFormHelperText-root": {
|
|
3219
3213
|
marginTop: 0
|
|
3220
3214
|
}
|
|
3221
|
-
})),
|
|
3215
|
+
})), yr = m(w)(({ theme: t }) => ({
|
|
3222
3216
|
position: "relative",
|
|
3223
3217
|
zIndex: 3,
|
|
3224
3218
|
display: "flex",
|
|
3225
3219
|
alignItems: "center",
|
|
3226
3220
|
gap: t.spacing(1)
|
|
3227
3221
|
}));
|
|
3228
|
-
function
|
|
3222
|
+
function Cr({
|
|
3229
3223
|
children: t,
|
|
3230
3224
|
hasDivider: e
|
|
3231
3225
|
}) {
|
|
3232
3226
|
const o = j();
|
|
3233
|
-
return t ? /* @__PURE__ */
|
|
3234
|
-
/* @__PURE__ */ n(
|
|
3227
|
+
return t ? /* @__PURE__ */ x(H, { children: [
|
|
3228
|
+
/* @__PURE__ */ n(xr, { children: /* @__PURE__ */ x(yr, { children: [
|
|
3235
3229
|
/* @__PURE__ */ n(Be, { htmlColor: o.palette.error.main }),
|
|
3236
3230
|
/* @__PURE__ */ n(J, { error: !0, children: t })
|
|
3237
3231
|
] }) }),
|
|
@@ -3262,7 +3256,7 @@ const kt = {
|
|
|
3262
3256
|
height: "calc(100vh - 80px)",
|
|
3263
3257
|
maxWidth: "960px"
|
|
3264
3258
|
}
|
|
3265
|
-
}, wt = m(
|
|
3259
|
+
}, wt = m(be, {
|
|
3266
3260
|
shouldForwardProp: (t) => !["fullScreen", "height", "width", "hasForm"].includes(t)
|
|
3267
3261
|
})(
|
|
3268
3262
|
({
|
|
@@ -3362,7 +3356,7 @@ const kt = {
|
|
|
3362
3356
|
}
|
|
3363
3357
|
})
|
|
3364
3358
|
);
|
|
3365
|
-
function
|
|
3359
|
+
function Mr({
|
|
3366
3360
|
nonModal: t,
|
|
3367
3361
|
children: e,
|
|
3368
3362
|
size: o = "small",
|
|
@@ -3372,8 +3366,8 @@ function kr({
|
|
|
3372
3366
|
width: a,
|
|
3373
3367
|
hasForm: c,
|
|
3374
3368
|
"aria-label": d,
|
|
3375
|
-
"data-testid":
|
|
3376
|
-
...
|
|
3369
|
+
"data-testid": p,
|
|
3370
|
+
...u
|
|
3377
3371
|
}, s) {
|
|
3378
3372
|
return t ? /* @__PURE__ */ n(
|
|
3379
3373
|
wt,
|
|
@@ -3384,14 +3378,14 @@ function kr({
|
|
|
3384
3378
|
width: a,
|
|
3385
3379
|
hasForm: c,
|
|
3386
3380
|
"aria-label": d,
|
|
3387
|
-
"data-testid":
|
|
3381
|
+
"data-testid": p,
|
|
3388
3382
|
"data-name": "dialog",
|
|
3389
|
-
...
|
|
3383
|
+
...u,
|
|
3390
3384
|
ref: s,
|
|
3391
3385
|
children: e
|
|
3392
3386
|
}
|
|
3393
3387
|
) : /* @__PURE__ */ n(
|
|
3394
|
-
|
|
3388
|
+
he,
|
|
3395
3389
|
{
|
|
3396
3390
|
PaperComponent: wt,
|
|
3397
3391
|
PaperProps: {
|
|
@@ -3405,21 +3399,21 @@ function kr({
|
|
|
3405
3399
|
fullScreen: i,
|
|
3406
3400
|
role: "section",
|
|
3407
3401
|
"aria-label": d,
|
|
3408
|
-
"data-testid":
|
|
3402
|
+
"data-testid": p,
|
|
3409
3403
|
"data-size": o,
|
|
3410
3404
|
"data-width": a,
|
|
3411
3405
|
"data-height": l,
|
|
3412
3406
|
"data-name": "dialog",
|
|
3413
|
-
...
|
|
3407
|
+
...u,
|
|
3414
3408
|
ref: s,
|
|
3415
3409
|
children: e
|
|
3416
3410
|
}
|
|
3417
3411
|
);
|
|
3418
3412
|
}
|
|
3419
|
-
const
|
|
3413
|
+
const kr = O(Mr), vr = m(xe)(() => ({
|
|
3420
3414
|
padding: 0,
|
|
3421
3415
|
zIndex: 10
|
|
3422
|
-
})),
|
|
3416
|
+
})), wr = m(w)(({ theme: t }) => ({
|
|
3423
3417
|
display: "flex",
|
|
3424
3418
|
alignItems: "center",
|
|
3425
3419
|
justifyContent: "space-between",
|
|
@@ -3430,14 +3424,14 @@ const vr = O(kr), wr = m(ye)(() => ({
|
|
|
3430
3424
|
alignItems: "center",
|
|
3431
3425
|
gap: t.spacing(1),
|
|
3432
3426
|
overflow: "hidden"
|
|
3433
|
-
})),
|
|
3427
|
+
})), Dr = m(Wt)(({ theme: t }) => ({
|
|
3434
3428
|
color: t.palette.text.secondary
|
|
3435
|
-
})),
|
|
3429
|
+
})), Ar = m(_)(() => ({
|
|
3436
3430
|
"+ .MuiDialogContent-root": {
|
|
3437
3431
|
borderTop: "none !important"
|
|
3438
3432
|
}
|
|
3439
3433
|
}));
|
|
3440
|
-
function
|
|
3434
|
+
function Sr({
|
|
3441
3435
|
title: t,
|
|
3442
3436
|
chipLabel: e,
|
|
3443
3437
|
chipProps: o,
|
|
@@ -3448,11 +3442,11 @@ function Ir({
|
|
|
3448
3442
|
closeIcon: c,
|
|
3449
3443
|
...d
|
|
3450
3444
|
}) {
|
|
3451
|
-
const
|
|
3452
|
-
return /* @__PURE__ */
|
|
3453
|
-
/* @__PURE__ */
|
|
3454
|
-
/* @__PURE__ */
|
|
3455
|
-
/* @__PURE__ */
|
|
3445
|
+
const p = T(), u = $(p);
|
|
3446
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
3447
|
+
/* @__PURE__ */ x(vr, { component: "div", "data-name": "dialog-header", ...d, children: [
|
|
3448
|
+
/* @__PURE__ */ x(wr, { children: [
|
|
3449
|
+
/* @__PURE__ */ x(Dt, { flex: 1, maxWidth: 0.8, children: [
|
|
3456
3450
|
/* @__PURE__ */ n(
|
|
3457
3451
|
F,
|
|
3458
3452
|
{
|
|
@@ -3464,26 +3458,26 @@ function Ir({
|
|
|
3464
3458
|
children: t
|
|
3465
3459
|
}
|
|
3466
3460
|
),
|
|
3467
|
-
e && /* @__PURE__ */ n(
|
|
3461
|
+
e && /* @__PURE__ */ n(ye, { color: "default", label: e, ...o })
|
|
3468
3462
|
] }),
|
|
3469
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__PURE__ */ x(Dt, { children: [
|
|
3470
3464
|
l,
|
|
3471
3465
|
i && /* @__PURE__ */ n(
|
|
3472
3466
|
P,
|
|
3473
3467
|
{
|
|
3474
|
-
title:
|
|
3468
|
+
title: u.formatMessage({ id: "c4r.button.close" }),
|
|
3475
3469
|
placement: "left",
|
|
3476
|
-
children: /* @__PURE__ */ n(
|
|
3470
|
+
children: /* @__PURE__ */ n(E, { onClick: i, children: c || /* @__PURE__ */ n(Dr, { "data-testid": "CloseIcon" }) })
|
|
3477
3471
|
}
|
|
3478
3472
|
)
|
|
3479
3473
|
] })
|
|
3480
3474
|
] }),
|
|
3481
3475
|
r
|
|
3482
3476
|
] }),
|
|
3483
|
-
r && /* @__PURE__ */ n(
|
|
3477
|
+
r && /* @__PURE__ */ n(Ar, {})
|
|
3484
3478
|
] });
|
|
3485
3479
|
}
|
|
3486
|
-
const
|
|
3480
|
+
const Ir = m(Ce, {
|
|
3487
3481
|
shouldForwardProp: (t) => !["scrollableContent", "withGutter", "withBottomGutter"].includes(t)
|
|
3488
3482
|
})(({ theme: t, scrollableContent: e, withGutter: o, withBottomGutter: r }) => ({
|
|
3489
3483
|
display: "flex",
|
|
@@ -3523,16 +3517,16 @@ function Br({
|
|
|
3523
3517
|
onScroll: l,
|
|
3524
3518
|
...a
|
|
3525
3519
|
}, c) {
|
|
3526
|
-
const d = j(), [
|
|
3527
|
-
|
|
3520
|
+
const d = j(), [p, u] = B(null);
|
|
3521
|
+
te(
|
|
3528
3522
|
c,
|
|
3529
|
-
() =>
|
|
3530
|
-
[
|
|
3523
|
+
() => p,
|
|
3524
|
+
[p]
|
|
3531
3525
|
);
|
|
3532
3526
|
const s = ot(
|
|
3533
3527
|
(g) => {
|
|
3534
|
-
const f = Math.abs(g.scrollHeight - g.clientHeight - g.scrollTop) < 1,
|
|
3535
|
-
g.style.borderTop =
|
|
3528
|
+
const f = Math.abs(g.scrollHeight - g.clientHeight - g.scrollTop) < 1, M = g.scrollTop === 0, h = `1px solid ${d.palette.divider}`;
|
|
3529
|
+
g.style.borderTop = M ? "none" : h, g.style.borderBottom = f && !o ? "none" : h;
|
|
3536
3530
|
},
|
|
3537
3531
|
[d.palette.divider, o]
|
|
3538
3532
|
), b = ot(
|
|
@@ -3542,17 +3536,17 @@ function Br({
|
|
|
3542
3536
|
[s, l]
|
|
3543
3537
|
);
|
|
3544
3538
|
return z(() => {
|
|
3545
|
-
|
|
3546
|
-
}, [
|
|
3547
|
-
if (!
|
|
3539
|
+
p && s(p);
|
|
3540
|
+
}, [p, s]), z(() => {
|
|
3541
|
+
if (!p || typeof ResizeObserver > "u") return;
|
|
3548
3542
|
const g = new ResizeObserver(() => {
|
|
3549
|
-
s(
|
|
3543
|
+
s(p);
|
|
3550
3544
|
});
|
|
3551
|
-
return g.observe(
|
|
3552
|
-
}, [
|
|
3553
|
-
|
|
3545
|
+
return g.observe(p), () => g.disconnect();
|
|
3546
|
+
}, [p, s]), /* @__PURE__ */ n(
|
|
3547
|
+
Ir,
|
|
3554
3548
|
{
|
|
3555
|
-
ref:
|
|
3549
|
+
ref: u,
|
|
3556
3550
|
onScroll: b,
|
|
3557
3551
|
scrollableContent: e,
|
|
3558
3552
|
withGutter: r,
|
|
@@ -3563,14 +3557,14 @@ function Br({
|
|
|
3563
3557
|
}
|
|
3564
3558
|
);
|
|
3565
3559
|
}
|
|
3566
|
-
const Zt = O(Br),
|
|
3560
|
+
const Zt = O(Br), Zn = m(Zt, {
|
|
3567
3561
|
shouldForwardProp: (t) => t !== "withAlert"
|
|
3568
3562
|
})(({ withAlert: t, theme: e }) => ({
|
|
3569
3563
|
padding: `${e.spacing(0, 2)} !important`,
|
|
3570
3564
|
...t && {
|
|
3571
3565
|
paddingBottom: `${e.spacing(3)} !important`
|
|
3572
3566
|
}
|
|
3573
|
-
})),
|
|
3567
|
+
})), $r = m(Et)(({ theme: t }) => ({
|
|
3574
3568
|
minHeight: "auto",
|
|
3575
3569
|
padding: 0,
|
|
3576
3570
|
backgroundColor: "transparent",
|
|
@@ -3589,9 +3583,9 @@ function Jt({
|
|
|
3589
3583
|
severity: e = "neutral",
|
|
3590
3584
|
...o
|
|
3591
3585
|
}) {
|
|
3592
|
-
return /* @__PURE__ */ n(
|
|
3586
|
+
return /* @__PURE__ */ n($r, { severity: e, ...o, "data-name": "dialog-alert", children: t });
|
|
3593
3587
|
}
|
|
3594
|
-
const
|
|
3588
|
+
const Tr = m(w, {
|
|
3595
3589
|
shouldForwardProp: (t) => !["dark", "hasChildren"].includes(t)
|
|
3596
3590
|
})(({ dark: t, hasChildren: e, theme: o }) => ({
|
|
3597
3591
|
flex: "0 0 auto",
|
|
@@ -3613,14 +3607,14 @@ const Rr = m(w, {
|
|
|
3613
3607
|
}
|
|
3614
3608
|
}
|
|
3615
3609
|
}
|
|
3616
|
-
})),
|
|
3610
|
+
})), Rr = m(w)(() => ({
|
|
3617
3611
|
display: "flex",
|
|
3618
3612
|
alignItems: "center",
|
|
3619
3613
|
justifyContent: "space-between",
|
|
3620
3614
|
"& > div:empty": {
|
|
3621
3615
|
padding: 0
|
|
3622
3616
|
}
|
|
3623
|
-
})),
|
|
3617
|
+
})), Or = m(w, {
|
|
3624
3618
|
shouldForwardProp: (t) => t !== "hasAlert"
|
|
3625
3619
|
})(({ hasAlert: t, theme: e }) => ({
|
|
3626
3620
|
display: "flex",
|
|
@@ -3628,7 +3622,7 @@ const Rr = m(w, {
|
|
|
3628
3622
|
gap: e.spacing(1),
|
|
3629
3623
|
padding: e.spacing(2),
|
|
3630
3624
|
paddingTop: t ? 0 : e.spacing(2)
|
|
3631
|
-
})), Kt = m(
|
|
3625
|
+
})), Kt = m(Me, {
|
|
3632
3626
|
shouldForwardProp: (t) => t !== "hasAlert"
|
|
3633
3627
|
})(({ hasAlert: t, theme: e }) => ({
|
|
3634
3628
|
gap: e.spacing(1),
|
|
@@ -3638,11 +3632,11 @@ const Rr = m(w, {
|
|
|
3638
3632
|
".MuiButton-root + .MuiButton-root": {
|
|
3639
3633
|
marginLeft: 0
|
|
3640
3634
|
}
|
|
3641
|
-
})),
|
|
3635
|
+
})), Fr = m(_)(() => ({
|
|
3642
3636
|
// To prevent double border in the top when content is scrollable
|
|
3643
3637
|
marginTop: "-1px"
|
|
3644
3638
|
}));
|
|
3645
|
-
function
|
|
3639
|
+
function Lr({
|
|
3646
3640
|
children: t,
|
|
3647
3641
|
secondaryActions: e,
|
|
3648
3642
|
alertContent: o,
|
|
@@ -3651,11 +3645,11 @@ function Wr({
|
|
|
3651
3645
|
topContent: l,
|
|
3652
3646
|
...a
|
|
3653
3647
|
}) {
|
|
3654
|
-
return /* @__PURE__ */
|
|
3648
|
+
return /* @__PURE__ */ x(H, { children: [
|
|
3655
3649
|
l,
|
|
3656
|
-
!!o && /* @__PURE__ */ n(
|
|
3657
|
-
/* @__PURE__ */
|
|
3658
|
-
|
|
3650
|
+
!!o && /* @__PURE__ */ n(Fr, {}),
|
|
3651
|
+
/* @__PURE__ */ x(
|
|
3652
|
+
Tr,
|
|
3659
3653
|
{
|
|
3660
3654
|
...a,
|
|
3661
3655
|
dark: i,
|
|
@@ -3664,8 +3658,8 @@ function Wr({
|
|
|
3664
3658
|
hasChildren: !!t,
|
|
3665
3659
|
children: [
|
|
3666
3660
|
!!o && /* @__PURE__ */ n(w, { sx: { p: 2, pt: 1.5, pb: 1 }, children: /* @__PURE__ */ n(Jt, { ...r, children: o }) }),
|
|
3667
|
-
/* @__PURE__ */
|
|
3668
|
-
/* @__PURE__ */ n(
|
|
3661
|
+
/* @__PURE__ */ x(Rr, { children: [
|
|
3662
|
+
/* @__PURE__ */ n(Or, { hasAlert: !!o, children: e }),
|
|
3669
3663
|
/* @__PURE__ */ n(Kt, { hasAlert: !!o, children: t })
|
|
3670
3664
|
] })
|
|
3671
3665
|
]
|
|
@@ -3673,7 +3667,7 @@ function Wr({
|
|
|
3673
3667
|
)
|
|
3674
3668
|
] });
|
|
3675
3669
|
}
|
|
3676
|
-
const
|
|
3670
|
+
const Wr = m(w)(({ theme: t }) => ({
|
|
3677
3671
|
position: "absolute",
|
|
3678
3672
|
width: "100%",
|
|
3679
3673
|
zIndex: 100,
|
|
@@ -3686,9 +3680,9 @@ const Er = m(w)(({ theme: t }) => ({
|
|
|
3686
3680
|
boxSizing: "border-box",
|
|
3687
3681
|
alignItems: "flex-end",
|
|
3688
3682
|
background: t.palette.white[60]
|
|
3689
|
-
})),
|
|
3683
|
+
})), Er = m("div")(() => ({
|
|
3690
3684
|
width: "100%"
|
|
3691
|
-
})),
|
|
3685
|
+
})), Hr = m(w)(({ theme: t }) => ({
|
|
3692
3686
|
width: "100%",
|
|
3693
3687
|
padding: t.spacing(1.5, 2, 2),
|
|
3694
3688
|
backgroundColor: t.palette.background.paper,
|
|
@@ -3698,7 +3692,7 @@ const Er = m(w)(({ theme: t }) => ({
|
|
|
3698
3692
|
marginTop: t.spacing(1)
|
|
3699
3693
|
}
|
|
3700
3694
|
}));
|
|
3701
|
-
function
|
|
3695
|
+
function Pr({
|
|
3702
3696
|
children: t,
|
|
3703
3697
|
onClickAway: e,
|
|
3704
3698
|
actions: o,
|
|
@@ -3708,16 +3702,16 @@ function zr({
|
|
|
3708
3702
|
"aria-label": a,
|
|
3709
3703
|
...c
|
|
3710
3704
|
}) {
|
|
3711
|
-
const d = Z(null),
|
|
3705
|
+
const d = Z(null), p = j();
|
|
3712
3706
|
return /* @__PURE__ */ n(
|
|
3713
|
-
|
|
3707
|
+
Wr,
|
|
3714
3708
|
{
|
|
3715
3709
|
ref: d,
|
|
3716
3710
|
"data-testid": l,
|
|
3717
3711
|
"aria-label": a,
|
|
3718
3712
|
role: "presentation",
|
|
3719
3713
|
"data-name": "dialog-confirmation",
|
|
3720
|
-
children: /* @__PURE__ */ n(
|
|
3714
|
+
children: /* @__PURE__ */ n(_e, { onClickAway: () => {
|
|
3721
3715
|
e && e();
|
|
3722
3716
|
}, children: /* @__PURE__ */ n(
|
|
3723
3717
|
Rt,
|
|
@@ -3727,9 +3721,9 @@ function zr({
|
|
|
3727
3721
|
container: d.current,
|
|
3728
3722
|
mountOnEnter: !0,
|
|
3729
3723
|
unmountOnExit: !0,
|
|
3730
|
-
easing:
|
|
3724
|
+
easing: p.transitions.easing.easeOut,
|
|
3731
3725
|
timeout: 350,
|
|
3732
|
-
children: /* @__PURE__ */ n(
|
|
3726
|
+
children: /* @__PURE__ */ n(Er, { children: /* @__PURE__ */ x(Hr, { children: [
|
|
3733
3727
|
/* @__PURE__ */ n(Jt, { severity: r, ...c, children: t }),
|
|
3734
3728
|
/* @__PURE__ */ n(Kt, { children: o })
|
|
3735
3729
|
] }) })
|
|
@@ -3738,7 +3732,7 @@ function zr({
|
|
|
3738
3732
|
}
|
|
3739
3733
|
);
|
|
3740
3734
|
}
|
|
3741
|
-
const
|
|
3735
|
+
const zr = m(w)(({ theme: t }) => ({
|
|
3742
3736
|
display: "flex",
|
|
3743
3737
|
alignItems: "center",
|
|
3744
3738
|
justifyContent: "center",
|
|
@@ -3747,7 +3741,7 @@ const Nr = m(w)(({ theme: t }) => ({
|
|
|
3747
3741
|
"& > div": {
|
|
3748
3742
|
flex: 1
|
|
3749
3743
|
}
|
|
3750
|
-
})),
|
|
3744
|
+
})), Nr = m(w)(({ theme: t }) => ({
|
|
3751
3745
|
display: "flex",
|
|
3752
3746
|
flex: 1,
|
|
3753
3747
|
flexDirection: "column",
|
|
@@ -3775,7 +3769,7 @@ const Nr = m(w)(({ theme: t }) => ({
|
|
|
3775
3769
|
content: "none"
|
|
3776
3770
|
}
|
|
3777
3771
|
}));
|
|
3778
|
-
function
|
|
3772
|
+
function _r({
|
|
3779
3773
|
theme: t,
|
|
3780
3774
|
completed: e,
|
|
3781
3775
|
current: o
|
|
@@ -3793,7 +3787,7 @@ function Gr({
|
|
|
3793
3787
|
color: t.palette.text.secondary
|
|
3794
3788
|
};
|
|
3795
3789
|
}
|
|
3796
|
-
const
|
|
3790
|
+
const Gr = m("span", {
|
|
3797
3791
|
shouldForwardProp: (t) => t !== "completed" && t !== "current"
|
|
3798
3792
|
})(({ theme: t, completed: e, current: o }) => ({
|
|
3799
3793
|
display: "flex",
|
|
@@ -3805,21 +3799,21 @@ const jr = m("span", {
|
|
|
3805
3799
|
borderRadius: "50%",
|
|
3806
3800
|
border: `${t.spacing(0.25)} solid currentColor`,
|
|
3807
3801
|
...t.typography.caption,
|
|
3808
|
-
...
|
|
3802
|
+
..._r({ theme: t, completed: e, current: o })
|
|
3809
3803
|
}));
|
|
3810
|
-
function
|
|
3804
|
+
function Jn({
|
|
3811
3805
|
currentStep: t,
|
|
3812
3806
|
stepsLabels: e,
|
|
3813
3807
|
...o
|
|
3814
3808
|
}) {
|
|
3815
|
-
return /* @__PURE__ */ n(
|
|
3809
|
+
return /* @__PURE__ */ n(zr, { ...o, "data-name": "dialog-stepper", children: /* @__PURE__ */ n(w, { sx: { display: "flex" }, children: e.map((r, i) => {
|
|
3816
3810
|
const l = i + 1, a = l === t, c = l < t;
|
|
3817
|
-
return /* @__PURE__ */
|
|
3818
|
-
|
|
3811
|
+
return /* @__PURE__ */ x(
|
|
3812
|
+
Nr,
|
|
3819
3813
|
{
|
|
3820
3814
|
"data-state": c ? "completed" : a ? "current" : "uncompleted",
|
|
3821
3815
|
children: [
|
|
3822
|
-
/* @__PURE__ */ n(
|
|
3816
|
+
/* @__PURE__ */ n(Gr, { completed: c, current: a, children: c ? /* @__PURE__ */ n($e, { fontSize: "small", "aria-label": "Completed step" }) : l }),
|
|
3823
3817
|
/* @__PURE__ */ n(F, { variant: "caption", component: "div", color: c ? "success.main" : a ? "textPrimary" : "textSecondary", children: r })
|
|
3824
3818
|
]
|
|
3825
3819
|
},
|
|
@@ -3827,7 +3821,7 @@ function Kn({
|
|
|
3827
3821
|
);
|
|
3828
3822
|
}) }) });
|
|
3829
3823
|
}
|
|
3830
|
-
const
|
|
3824
|
+
const jr = m(Zt, {
|
|
3831
3825
|
shouldForwardProp: (t) => !["error", "withBorder"].includes(t)
|
|
3832
3826
|
})(
|
|
3833
3827
|
({ error: t, withBorder: e, theme: o }) => ({
|
|
@@ -3849,49 +3843,49 @@ const Vr = m(Zt, {
|
|
|
3849
3843
|
}
|
|
3850
3844
|
})
|
|
3851
3845
|
);
|
|
3852
|
-
function
|
|
3846
|
+
function Vr({
|
|
3853
3847
|
children: t,
|
|
3854
3848
|
error: e,
|
|
3855
3849
|
withBorder: o = !0,
|
|
3856
3850
|
withGutter: r = !1
|
|
3857
3851
|
}) {
|
|
3858
|
-
return t ? /* @__PURE__ */ n(
|
|
3852
|
+
return t ? /* @__PURE__ */ n(jr, { withGutter: r, error: e, withBorder: o, children: t }) : null;
|
|
3859
3853
|
}
|
|
3860
|
-
function
|
|
3854
|
+
function Ur({
|
|
3861
3855
|
onClose: t,
|
|
3862
3856
|
onCancel: e,
|
|
3863
|
-
|
|
3857
|
+
cancelLabelId: o,
|
|
3864
3858
|
cancelButton: r,
|
|
3865
3859
|
closeButton: i,
|
|
3866
|
-
|
|
3867
|
-
|
|
3860
|
+
contentLabelId: l,
|
|
3861
|
+
titleLabelId: a,
|
|
3868
3862
|
severity: c = "warning",
|
|
3869
3863
|
content: d
|
|
3870
3864
|
}) {
|
|
3871
|
-
const
|
|
3865
|
+
const p = T(), u = $(p);
|
|
3872
3866
|
return !t || !e ? null : /* @__PURE__ */ n(
|
|
3873
|
-
|
|
3867
|
+
Pr,
|
|
3874
3868
|
{
|
|
3875
3869
|
opened: !0,
|
|
3876
3870
|
severity: c,
|
|
3877
|
-
title:
|
|
3871
|
+
title: u.formatMessage({
|
|
3878
3872
|
id: a || "c4r.dialog.confirmation.title"
|
|
3879
3873
|
}),
|
|
3880
|
-
actions: /* @__PURE__ */
|
|
3881
|
-
e && (r || /* @__PURE__ */ n(nt, { onClick: e, children:
|
|
3874
|
+
actions: /* @__PURE__ */ x(H, { children: [
|
|
3875
|
+
e && (r || /* @__PURE__ */ n(nt, { onClick: e, children: u.formatMessage({
|
|
3882
3876
|
id: o || "c4r.button.cancel"
|
|
3883
3877
|
}) })),
|
|
3884
|
-
t && (i || /* @__PURE__ */ n(nt, { variant: "contained", onClick: t, children:
|
|
3878
|
+
t && (i || /* @__PURE__ */ n(nt, { variant: "contained", onClick: t, children: u.formatMessage({
|
|
3885
3879
|
id: "c4r.button.leave"
|
|
3886
3880
|
}) }))
|
|
3887
3881
|
] }),
|
|
3888
|
-
children: d ||
|
|
3882
|
+
children: d || u.formatMessage({
|
|
3889
3883
|
id: l || "c4r.dialog.confirmation.content"
|
|
3890
3884
|
})
|
|
3891
3885
|
}
|
|
3892
3886
|
);
|
|
3893
3887
|
}
|
|
3894
|
-
function
|
|
3888
|
+
function Kn({
|
|
3895
3889
|
open: t,
|
|
3896
3890
|
onClose: e,
|
|
3897
3891
|
title: o,
|
|
@@ -3900,76 +3894,74 @@ function Xn({
|
|
|
3900
3894
|
onClickFooter: l,
|
|
3901
3895
|
disabledButtonFooter: a,
|
|
3902
3896
|
labelIdButtonFooter: c,
|
|
3903
|
-
|
|
3904
|
-
disabled: u,
|
|
3897
|
+
disabled: d,
|
|
3905
3898
|
showConfirmation: p,
|
|
3906
|
-
onCancelConfirm:
|
|
3907
|
-
onCloseConfirm:
|
|
3908
|
-
footerProps:
|
|
3909
|
-
saveLoading:
|
|
3910
|
-
showSaveSnackbar:
|
|
3911
|
-
onCloseSaveSnackbar:
|
|
3912
|
-
"data-testid":
|
|
3913
|
-
"aria-label":
|
|
3914
|
-
...
|
|
3899
|
+
onCancelConfirm: u,
|
|
3900
|
+
onCloseConfirm: s,
|
|
3901
|
+
footerProps: b,
|
|
3902
|
+
saveLoading: g,
|
|
3903
|
+
showSaveSnackbar: f,
|
|
3904
|
+
onCloseSaveSnackbar: M,
|
|
3905
|
+
"data-testid": h,
|
|
3906
|
+
"aria-label": v,
|
|
3907
|
+
...k
|
|
3915
3908
|
}) {
|
|
3916
|
-
const
|
|
3917
|
-
return t ? /* @__PURE__ */
|
|
3918
|
-
|
|
3909
|
+
const D = r || !!l || !!b;
|
|
3910
|
+
return t ? /* @__PURE__ */ x(
|
|
3911
|
+
kr,
|
|
3919
3912
|
{
|
|
3920
3913
|
open: t,
|
|
3921
3914
|
fullScreen: !0,
|
|
3922
3915
|
onClose: e,
|
|
3923
|
-
"data-testid":
|
|
3924
|
-
"aria-label":
|
|
3916
|
+
"data-testid": h,
|
|
3917
|
+
"aria-label": v,
|
|
3925
3918
|
"data-name": "code-area-dialog",
|
|
3926
3919
|
children: [
|
|
3927
3920
|
/* @__PURE__ */ n(
|
|
3928
|
-
|
|
3921
|
+
Sr,
|
|
3929
3922
|
{
|
|
3930
3923
|
title: o,
|
|
3931
3924
|
onClose: e,
|
|
3932
|
-
closeIcon: !l && /* @__PURE__ */ n(
|
|
3925
|
+
closeIcon: !l && /* @__PURE__ */ n(Le, {})
|
|
3933
3926
|
}
|
|
3934
3927
|
),
|
|
3935
|
-
/* @__PURE__ */ n(
|
|
3936
|
-
|
|
3928
|
+
/* @__PURE__ */ n(Vr, { error: r, children: /* @__PURE__ */ n(
|
|
3929
|
+
hr,
|
|
3937
3930
|
{
|
|
3938
|
-
...
|
|
3939
|
-
disabled:
|
|
3931
|
+
...k,
|
|
3932
|
+
disabled: d,
|
|
3940
3933
|
variant: null,
|
|
3941
3934
|
isExpanded: !0
|
|
3942
3935
|
}
|
|
3943
3936
|
) }),
|
|
3944
|
-
|
|
3945
|
-
|
|
3937
|
+
D && /* @__PURE__ */ n(
|
|
3938
|
+
Lr,
|
|
3946
3939
|
{
|
|
3947
|
-
...
|
|
3948
|
-
topContent: r && /* @__PURE__ */ n(
|
|
3940
|
+
...b,
|
|
3941
|
+
topContent: r && /* @__PURE__ */ n(Cr, { hasDivider: !!l, children: i }),
|
|
3949
3942
|
children: !!l && /* @__PURE__ */ n(
|
|
3950
3943
|
qt,
|
|
3951
3944
|
{
|
|
3952
3945
|
onClickFooter: l,
|
|
3953
3946
|
labelIdButtonFooter: c,
|
|
3954
|
-
|
|
3955
|
-
disabled: u,
|
|
3947
|
+
disabled: d,
|
|
3956
3948
|
disabledButtonFooter: a,
|
|
3957
3949
|
withGutter: !1,
|
|
3958
3950
|
variant: "contained",
|
|
3959
3951
|
size: "medium",
|
|
3960
|
-
loading: !!
|
|
3961
|
-
showSnackbar:
|
|
3962
|
-
onCloseSnackbar:
|
|
3952
|
+
loading: !!g,
|
|
3953
|
+
showSnackbar: f,
|
|
3954
|
+
onCloseSnackbar: M
|
|
3963
3955
|
}
|
|
3964
3956
|
)
|
|
3965
3957
|
}
|
|
3966
3958
|
),
|
|
3967
3959
|
p && /* @__PURE__ */ n(
|
|
3968
|
-
|
|
3960
|
+
Ur,
|
|
3969
3961
|
{
|
|
3970
|
-
onClose:
|
|
3971
|
-
onCancel:
|
|
3972
|
-
|
|
3962
|
+
onClose: s ?? e,
|
|
3963
|
+
onCancel: u,
|
|
3964
|
+
cancelLabelId: "c4r.button.keepEditing"
|
|
3973
3965
|
}
|
|
3974
3966
|
)
|
|
3975
3967
|
]
|
|
@@ -3977,54 +3969,54 @@ function Xn({
|
|
|
3977
3969
|
) : null;
|
|
3978
3970
|
}
|
|
3979
3971
|
export {
|
|
3980
|
-
|
|
3972
|
+
_n as AccordionGroup,
|
|
3981
3973
|
Et as Alert,
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3974
|
+
jn as AppBar,
|
|
3975
|
+
Pn as Autocomplete,
|
|
3976
|
+
Gn as Avatar,
|
|
3985
3977
|
nt as Button,
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3978
|
+
Kn as CodeAreaDialog,
|
|
3979
|
+
Ur as CodeAreaDialogConfirmation,
|
|
3980
|
+
Vr as CodeAreaDialogContent,
|
|
3981
|
+
Cr as CodeAreaDialogError,
|
|
3982
|
+
hr as CodeAreaField,
|
|
3991
3983
|
qt as CodeAreaFooter,
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3984
|
+
dr as CodeAreaHeader,
|
|
3985
|
+
pr as CodeAreaInput,
|
|
3986
|
+
To as CopiableComponent,
|
|
3987
|
+
zn as CreatableAutocomplete,
|
|
3996
3988
|
xt as DatePicker,
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
3989
|
+
Vn as DateRangePicker,
|
|
3990
|
+
Yn as DateTimePicker,
|
|
3991
|
+
kr as Dialog,
|
|
4000
3992
|
Kt as DialogActions,
|
|
4001
3993
|
Jt as DialogAlert,
|
|
4002
|
-
|
|
3994
|
+
Pr as DialogConfirmation,
|
|
4003
3995
|
Zt as DialogContent,
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
3996
|
+
Zn as DialogContentPadded,
|
|
3997
|
+
Lr as DialogFooter,
|
|
3998
|
+
Sr as DialogHeader,
|
|
4007
3999
|
wt as DialogPaper,
|
|
4008
|
-
|
|
4000
|
+
Jn as DialogStepper,
|
|
4009
4001
|
q as IconButton,
|
|
4010
4002
|
X as LabelWithIndicator,
|
|
4011
|
-
|
|
4003
|
+
lo as Menu,
|
|
4012
4004
|
Y as MenuItem,
|
|
4013
4005
|
Ht as MenuItemFilter,
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4006
|
+
Wn as MenuList,
|
|
4007
|
+
Nn as MultipleAutocomplete,
|
|
4008
|
+
En as MultipleSelectField,
|
|
4009
|
+
Fn as PasswordField,
|
|
4010
|
+
to as SelectField,
|
|
4019
4011
|
dt as Snackbar,
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4012
|
+
ti as TablePaginationActions,
|
|
4013
|
+
Un as TimePicker,
|
|
4014
|
+
Ln as ToggleButtonGroup,
|
|
4015
|
+
qn as TooltipData,
|
|
4024
4016
|
F as Typography,
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4017
|
+
Hn as UploadField,
|
|
4018
|
+
ko as UploadFieldBase,
|
|
4019
|
+
Ro as copyString,
|
|
4028
4020
|
vt as dialogDimensionsBySize,
|
|
4029
4021
|
Vt as useCopyValue
|
|
4030
4022
|
};
|