@amateescu/portal-ui-components 0.0.30-beta → 0.0.30-beta2
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/{Box-ZFRI9JCw.js → Box-Cva4Q3V3.js} +1 -1
- package/dist/{Button-CNfTnafe.js → Button-Doz6-048.js} +3 -3
- package/dist/{ButtonBase-DWpUn0eT.js → ButtonBase-CTqjtEBO.js} +1 -1
- package/dist/{CircularProgress-D6RyizwS.js → CircularProgress-AyUrn4Uo.js} +1 -1
- package/dist/components/CustomButton/CustomButton.js +1 -1
- package/dist/components/CustomButton/CustomButton.stories.js +1 -1
- package/dist/components/CustomPagination/CustomPagination.js +5 -5
- package/dist/components/LoadingAnimation/LoadingAnimation.js +2 -2
- package/dist/components/Login/Login.js +1145 -1153
- package/dist/{createSimplePaletteValueFilter-rq2_biPF.js → createSimplePaletteValueFilter-B5aJotlB.js} +3 -3
- package/dist/{createSvgIcon-jB7EUYpq.js → createSvgIcon-Oc4iJwR0.js} +24 -24
- package/dist/{useSlot-CT4096EK.js → useSlot-CLAoIJ2B.js} +2 -2
- package/package.json +5 -5
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as v, jsxs as ce } from "react/jsx-runtime";
|
|
2
2
|
import '../../assets/theme.css';/* empty css */
|
|
3
|
-
import { c as
|
|
3
|
+
import { c as ke } from "../../createSvgIcon-Oc4iJwR0.js";
|
|
4
4
|
import { t as Ye } from "i18next";
|
|
5
|
-
import { f as st, P as e, q as gn, r as hn, c as
|
|
6
|
-
import * as
|
|
5
|
+
import { f as st, P as e, q as gn, r as hn, c as J, b as K, d as Q, l as yn, g as oe, t as Io, T as No, a as ie, u as ne, s as F, i as mt, v as Qt, m as ae, e as Se, w as eo, x as to, y as Po, z as zt, h as Ne, A as Wt, B as vn } from "../../createSimplePaletteValueFilter-B5aJotlB.js";
|
|
6
|
+
import * as c from "react";
|
|
7
7
|
import ct from "react";
|
|
8
|
-
import { u as Ut, e as Tn, B as oo } from "../../Box-
|
|
8
|
+
import { u as Ut, e as Tn, B as oo } from "../../Box-Cva4Q3V3.js";
|
|
9
9
|
import { Global as xn } from "@emotion/react";
|
|
10
|
-
import { r as En, m as On, c as Cn, i as
|
|
11
|
-
import { u as Vt, B as wn } from "../../Button-
|
|
12
|
-
import { u as Ee, _ as In, T as
|
|
13
|
-
import { b as
|
|
14
|
-
import { a as dt, r as
|
|
15
|
-
import { C as Fn } from "../../CircularProgress-
|
|
10
|
+
import { r as En, m as On, c as Cn, i as ko, b as te, e as Rn, a as Sn, u as no } from "../../useSlot-CLAoIJ2B.js";
|
|
11
|
+
import { u as Vt, B as wn } from "../../Button-Doz6-048.js";
|
|
12
|
+
import { u as Ee, _ as In, T as Mo, B as Nn, a as He, b as Ft, r as Me, e as Fo, c as Pn } from "../../ButtonBase-CTqjtEBO.js";
|
|
13
|
+
import { b as kn } from "../../objectWithoutPropertiesLoose-BTau6TOn.js";
|
|
14
|
+
import { a as dt, r as Mn } from "../../index-xh_JY2OQ.js";
|
|
15
|
+
import { C as Fn } from "../../CircularProgress-AyUrn4Uo.js";
|
|
16
16
|
function jn(t) {
|
|
17
17
|
const {
|
|
18
18
|
prototype: o = {}
|
|
@@ -28,16 +28,16 @@ function jo(t, o, n, r, i) {
|
|
|
28
28
|
typeof window > "u")
|
|
29
29
|
return null;
|
|
30
30
|
let l;
|
|
31
|
-
const
|
|
32
|
-
return typeof
|
|
31
|
+
const d = s.type;
|
|
32
|
+
return typeof d == "function" && !jn(d) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
33
33
|
}
|
|
34
34
|
const it = st(e.element, jo);
|
|
35
35
|
it.isRequired = st(e.element.isRequired, jo);
|
|
36
|
-
const
|
|
37
|
-
function
|
|
36
|
+
const $n = "exact-prop: ";
|
|
37
|
+
function $o(t) {
|
|
38
38
|
return process.env.NODE_ENV === "production" ? t : {
|
|
39
39
|
...t,
|
|
40
|
-
[
|
|
40
|
+
[$n]: (o) => {
|
|
41
41
|
const n = Object.keys(o).filter((r) => !t.hasOwnProperty(r));
|
|
42
42
|
return n.length > 0 ? new Error(`The following props are not supported: ${n.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null;
|
|
43
43
|
}
|
|
@@ -55,7 +55,7 @@ function ro(...t) {
|
|
|
55
55
|
}, () => {
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ao(t, o = 166) {
|
|
59
59
|
let n;
|
|
60
60
|
function r(...i) {
|
|
61
61
|
const s = () => {
|
|
@@ -69,7 +69,7 @@ function $o(t, o = 166) {
|
|
|
69
69
|
}
|
|
70
70
|
function Nt(t, o) {
|
|
71
71
|
var n, r, i;
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ c.isValidElement(t) && o.indexOf(
|
|
73
73
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
74
74
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
75
75
|
// eslint-disable-next-line no-underscore-dangle
|
|
@@ -89,7 +89,7 @@ function Lo(t = window) {
|
|
|
89
89
|
const o = t.document.documentElement.clientWidth;
|
|
90
90
|
return t.innerWidth - o;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function An(t) {
|
|
93
93
|
var g;
|
|
94
94
|
const {
|
|
95
95
|
elementType: o,
|
|
@@ -99,11 +99,11 @@ function $n(t) {
|
|
|
99
99
|
...s
|
|
100
100
|
} = t, a = i ? {} : En(n, r), {
|
|
101
101
|
props: l,
|
|
102
|
-
internalRef:
|
|
102
|
+
internalRef: d
|
|
103
103
|
} = On({
|
|
104
104
|
...s,
|
|
105
105
|
externalSlotProps: a
|
|
106
|
-
}), u = Ee(
|
|
106
|
+
}), u = Ee(d, a == null ? void 0 : a.ref, (g = t.additionalProps) == null ? void 0 : g.ref);
|
|
107
107
|
return Cn(o, {
|
|
108
108
|
...l,
|
|
109
109
|
ref: u
|
|
@@ -111,7 +111,7 @@ function $n(t) {
|
|
|
111
111
|
}
|
|
112
112
|
function at(t) {
|
|
113
113
|
var o;
|
|
114
|
-
return parseInt(
|
|
114
|
+
return parseInt(c.version, 10) >= 19 ? ((o = t == null ? void 0 : t.props) == null ? void 0 : o.ref) || null : (t == null ? void 0 : t.ref) || null;
|
|
115
115
|
}
|
|
116
116
|
function Ln(t) {
|
|
117
117
|
return t == null || Object.keys(t).length === 0;
|
|
@@ -193,7 +193,7 @@ const Wn = yn(), Un = Dn("div", {
|
|
|
193
193
|
name: "MuiContainer",
|
|
194
194
|
defaultTheme: Wn
|
|
195
195
|
}), Hn = (t, o) => {
|
|
196
|
-
const n = (
|
|
196
|
+
const n = (d) => oe(o, d), {
|
|
197
197
|
classes: r,
|
|
198
198
|
fixed: i,
|
|
199
199
|
disableGutters: s,
|
|
@@ -201,7 +201,7 @@ const Wn = yn(), Un = Dn("div", {
|
|
|
201
201
|
} = t, l = {
|
|
202
202
|
root: ["root", a && `maxWidth${K(String(a))}`, i && "fixed", s && "disableGutters"]
|
|
203
203
|
};
|
|
204
|
-
return
|
|
204
|
+
return Q(l, n, r);
|
|
205
205
|
};
|
|
206
206
|
function qn(t = {}) {
|
|
207
207
|
const {
|
|
@@ -229,11 +229,11 @@ function qn(t = {}) {
|
|
|
229
229
|
}), ({
|
|
230
230
|
theme: a,
|
|
231
231
|
ownerState: l
|
|
232
|
-
}) => l.fixed && Object.keys(a.breakpoints.values).reduce((
|
|
232
|
+
}) => l.fixed && Object.keys(a.breakpoints.values).reduce((d, u) => {
|
|
233
233
|
const m = u, g = a.breakpoints.values[m];
|
|
234
|
-
return g !== 0 && (
|
|
234
|
+
return g !== 0 && (d[a.breakpoints.up(m)] = {
|
|
235
235
|
maxWidth: `${g}${a.breakpoints.unit}`
|
|
236
|
-
}),
|
|
236
|
+
}), d;
|
|
237
237
|
}, {}), ({
|
|
238
238
|
theme: a,
|
|
239
239
|
ownerState: l
|
|
@@ -254,7 +254,7 @@ function qn(t = {}) {
|
|
|
254
254
|
maxWidth: `${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
})), s = /* @__PURE__ */
|
|
257
|
+
})), s = /* @__PURE__ */ c.forwardRef(function(l, d) {
|
|
258
258
|
const u = n(l), {
|
|
259
259
|
className: m,
|
|
260
260
|
component: g = "div",
|
|
@@ -275,8 +275,8 @@ function qn(t = {}) {
|
|
|
275
275
|
/* @__PURE__ */ v(i, {
|
|
276
276
|
as: g,
|
|
277
277
|
ownerState: h,
|
|
278
|
-
className:
|
|
279
|
-
ref:
|
|
278
|
+
className: J(C.root, m),
|
|
279
|
+
ref: d,
|
|
280
280
|
...y
|
|
281
281
|
})
|
|
282
282
|
);
|
|
@@ -294,7 +294,7 @@ function qn(t = {}) {
|
|
|
294
294
|
}
|
|
295
295
|
function Ht() {
|
|
296
296
|
const t = Ut(Io);
|
|
297
|
-
return process.env.NODE_ENV !== "production" &&
|
|
297
|
+
return process.env.NODE_ENV !== "production" && c.useDebugValue(t), t[No] || t;
|
|
298
298
|
}
|
|
299
299
|
function zo(t) {
|
|
300
300
|
return /* @__PURE__ */ v(Bo, {
|
|
@@ -330,67 +330,53 @@ function _n() {
|
|
|
330
330
|
return Tn;
|
|
331
331
|
}
|
|
332
332
|
function Kn(t, o) {
|
|
333
|
-
const n = t.charCodeAt(2);
|
|
334
|
-
return t[0] === "o" && t[1] === "n" && n >= 65 && n <= 90 && typeof o == "function";
|
|
335
|
-
}
|
|
336
|
-
function Gn(t, o) {
|
|
337
333
|
if (!t)
|
|
338
334
|
return o;
|
|
339
|
-
function n(a, l) {
|
|
340
|
-
const c = {};
|
|
341
|
-
return Object.keys(l).forEach((u) => {
|
|
342
|
-
Kn(u, l[u]) && typeof a[u] == "function" && (c[u] = (...m) => {
|
|
343
|
-
a[u](...m), l[u](...m);
|
|
344
|
-
});
|
|
345
|
-
}), c;
|
|
346
|
-
}
|
|
347
335
|
if (typeof t == "function" || typeof o == "function")
|
|
348
|
-
return (
|
|
349
|
-
const
|
|
350
|
-
...
|
|
351
|
-
...
|
|
352
|
-
}) : t,
|
|
336
|
+
return (i) => {
|
|
337
|
+
const s = typeof o == "function" ? o(i) : o, a = typeof t == "function" ? t({
|
|
338
|
+
...i,
|
|
339
|
+
...s
|
|
340
|
+
}) : t, l = J(i == null ? void 0 : i.className, s == null ? void 0 : s.className, a == null ? void 0 : a.className);
|
|
353
341
|
return {
|
|
354
|
-
...
|
|
355
|
-
...
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
className: u
|
|
342
|
+
...s,
|
|
343
|
+
...a,
|
|
344
|
+
...!!l && {
|
|
345
|
+
className: l
|
|
359
346
|
},
|
|
360
|
-
...(
|
|
347
|
+
...(s == null ? void 0 : s.style) && (a == null ? void 0 : a.style) && {
|
|
361
348
|
style: {
|
|
362
|
-
...
|
|
363
|
-
...
|
|
349
|
+
...s.style,
|
|
350
|
+
...a.style
|
|
364
351
|
}
|
|
365
352
|
},
|
|
366
|
-
...(
|
|
367
|
-
sx: [...Array.isArray(
|
|
353
|
+
...(s == null ? void 0 : s.sx) && (a == null ? void 0 : a.sx) && {
|
|
354
|
+
sx: [...Array.isArray(s.sx) ? s.sx : [s.sx], ...Array.isArray(a.sx) ? a.sx : [a.sx]]
|
|
368
355
|
}
|
|
369
356
|
};
|
|
370
357
|
};
|
|
371
|
-
const
|
|
358
|
+
const n = o, r = J(n == null ? void 0 : n.className, t == null ? void 0 : t.className);
|
|
372
359
|
return {
|
|
373
360
|
...o,
|
|
374
361
|
...t,
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
className: s
|
|
362
|
+
...!!r && {
|
|
363
|
+
className: r
|
|
378
364
|
},
|
|
379
|
-
...(
|
|
365
|
+
...(n == null ? void 0 : n.style) && (t == null ? void 0 : t.style) && {
|
|
380
366
|
style: {
|
|
381
|
-
...
|
|
367
|
+
...n.style,
|
|
382
368
|
...t.style
|
|
383
369
|
}
|
|
384
370
|
},
|
|
385
|
-
...(
|
|
386
|
-
sx: [...Array.isArray(
|
|
371
|
+
...(n == null ? void 0 : n.sx) && (t == null ? void 0 : t.sx) && {
|
|
372
|
+
sx: [...Array.isArray(n.sx) ? n.sx : [n.sx], ...Array.isArray(t.sx) ? t.sx : [t.sx]]
|
|
387
373
|
}
|
|
388
374
|
};
|
|
389
375
|
}
|
|
390
376
|
const io = {
|
|
391
377
|
disabled: !1
|
|
392
378
|
};
|
|
393
|
-
var
|
|
379
|
+
var Gn = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
394
380
|
enter: e.number,
|
|
395
381
|
exit: e.number,
|
|
396
382
|
appear: e.number
|
|
@@ -407,22 +393,22 @@ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
|
407
393
|
exitDone: e.string,
|
|
408
394
|
exitActive: e.string
|
|
409
395
|
})]);
|
|
410
|
-
var
|
|
396
|
+
var Xn = function(o) {
|
|
411
397
|
return o.scrollTop;
|
|
412
|
-
}, et = "unmounted",
|
|
398
|
+
}, et = "unmounted", Ae = "exited", Le = "entering", Ve = "entered", jt = "exiting", we = /* @__PURE__ */ function(t) {
|
|
413
399
|
In(o, t);
|
|
414
400
|
function o(r, i) {
|
|
415
401
|
var s;
|
|
416
402
|
s = t.call(this, r, i) || this;
|
|
417
|
-
var a = i, l = a && !a.isMounting ? r.enter : r.appear,
|
|
418
|
-
return s.appearStatus = null, r.in ? l ? (
|
|
419
|
-
status:
|
|
403
|
+
var a = i, l = a && !a.isMounting ? r.enter : r.appear, d;
|
|
404
|
+
return s.appearStatus = null, r.in ? l ? (d = Ae, s.appearStatus = Le) : d = Ve : r.unmountOnExit || r.mountOnEnter ? d = et : d = Ae, s.state = {
|
|
405
|
+
status: d
|
|
420
406
|
}, s.nextCallback = null, s;
|
|
421
407
|
}
|
|
422
408
|
o.getDerivedStateFromProps = function(i, s) {
|
|
423
409
|
var a = i.in;
|
|
424
410
|
return a && s.status === et ? {
|
|
425
|
-
status:
|
|
411
|
+
status: Ae
|
|
426
412
|
} : null;
|
|
427
413
|
};
|
|
428
414
|
var n = o.prototype;
|
|
@@ -449,16 +435,16 @@ var Yn = function(o) {
|
|
|
449
435
|
if (this.cancelNextCallback(), s === Le) {
|
|
450
436
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
451
437
|
var a = this.props.nodeRef ? this.props.nodeRef.current : dt.findDOMNode(this);
|
|
452
|
-
a &&
|
|
438
|
+
a && Xn(a);
|
|
453
439
|
}
|
|
454
440
|
this.performEnter(i);
|
|
455
441
|
} else
|
|
456
442
|
this.performExit();
|
|
457
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
443
|
+
else this.props.unmountOnExit && this.state.status === Ae && this.setState({
|
|
458
444
|
status: et
|
|
459
445
|
});
|
|
460
446
|
}, n.performEnter = function(i) {
|
|
461
|
-
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i,
|
|
447
|
+
var s = this, a = this.props.enter, l = this.context ? this.context.isMounting : i, d = this.props.nodeRef ? [l] : [dt.findDOMNode(this), l], u = d[0], m = d[1], g = this.getTimeouts(), T = l ? g.appear : g.enter;
|
|
462
448
|
if (!i && !a || io.disabled) {
|
|
463
449
|
this.safeSetState({
|
|
464
450
|
status: Ve
|
|
@@ -482,7 +468,7 @@ var Yn = function(o) {
|
|
|
482
468
|
var i = this, s = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : dt.findDOMNode(this);
|
|
483
469
|
if (!s || io.disabled) {
|
|
484
470
|
this.safeSetState({
|
|
485
|
-
status:
|
|
471
|
+
status: Ae
|
|
486
472
|
}, function() {
|
|
487
473
|
i.props.onExited(l);
|
|
488
474
|
});
|
|
@@ -493,7 +479,7 @@ var Yn = function(o) {
|
|
|
493
479
|
}, function() {
|
|
494
480
|
i.props.onExiting(l), i.onTransitionEnd(a.exit, function() {
|
|
495
481
|
i.safeSetState({
|
|
496
|
-
status:
|
|
482
|
+
status: Ae
|
|
497
483
|
}, function() {
|
|
498
484
|
i.props.onExited(l);
|
|
499
485
|
});
|
|
@@ -518,7 +504,7 @@ var Yn = function(o) {
|
|
|
518
504
|
return;
|
|
519
505
|
}
|
|
520
506
|
if (this.props.addEndListener) {
|
|
521
|
-
var
|
|
507
|
+
var d = this.props.nodeRef ? [this.nextCallback] : [a, this.nextCallback], u = d[0], m = d[1];
|
|
522
508
|
this.props.addEndListener(u, m);
|
|
523
509
|
}
|
|
524
510
|
i != null && setTimeout(this.nextCallback, i);
|
|
@@ -528,16 +514,16 @@ var Yn = function(o) {
|
|
|
528
514
|
return null;
|
|
529
515
|
var s = this.props, a = s.children;
|
|
530
516
|
s.in, s.mountOnEnter, s.unmountOnExit, s.appear, s.enter, s.exit, s.timeout, s.addEndListener, s.onEnter, s.onEntering, s.onEntered, s.onExit, s.onExiting, s.onExited, s.nodeRef;
|
|
531
|
-
var l =
|
|
517
|
+
var l = kn(s, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
532
518
|
return (
|
|
533
519
|
// allows for nested Transitions
|
|
534
|
-
/* @__PURE__ */ ct.createElement(
|
|
520
|
+
/* @__PURE__ */ ct.createElement(Mo.Provider, {
|
|
535
521
|
value: null
|
|
536
522
|
}, typeof a == "function" ? a(i, l) : ct.cloneElement(ct.Children.only(a), l))
|
|
537
523
|
);
|
|
538
524
|
}, o;
|
|
539
525
|
}(ct.Component);
|
|
540
|
-
we.contextType =
|
|
526
|
+
we.contextType = Mo;
|
|
541
527
|
we.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
542
528
|
/**
|
|
543
529
|
* A React reference to DOM element that need to transition:
|
|
@@ -634,7 +620,7 @@ we.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
634
620
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
635
621
|
*/
|
|
636
622
|
timeout: function(o) {
|
|
637
|
-
var n =
|
|
623
|
+
var n = Gn;
|
|
638
624
|
o.addEndListener || (n = n.isRequired);
|
|
639
625
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
|
|
640
626
|
i[s - 1] = arguments[s];
|
|
@@ -724,7 +710,7 @@ we.defaultProps = {
|
|
|
724
710
|
onExited: Ue
|
|
725
711
|
};
|
|
726
712
|
we.UNMOUNTED = et;
|
|
727
|
-
we.EXITED =
|
|
713
|
+
we.EXITED = Ae;
|
|
728
714
|
we.ENTERING = Le;
|
|
729
715
|
we.ENTERED = Ve;
|
|
730
716
|
we.EXITING = jt;
|
|
@@ -741,11 +727,11 @@ function bt(t, o) {
|
|
|
741
727
|
delay: i.transitionDelay
|
|
742
728
|
};
|
|
743
729
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
730
|
+
function Yn(t) {
|
|
731
|
+
return oe("MuiPaper", t);
|
|
746
732
|
}
|
|
747
|
-
|
|
748
|
-
const
|
|
733
|
+
ie("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
734
|
+
const Zn = (t) => {
|
|
749
735
|
const {
|
|
750
736
|
square: o,
|
|
751
737
|
elevation: n,
|
|
@@ -754,8 +740,8 @@ const Jn = (t) => {
|
|
|
754
740
|
} = t, s = {
|
|
755
741
|
root: ["root", r, !o && "rounded", r === "elevation" && `elevation${n}`]
|
|
756
742
|
};
|
|
757
|
-
return
|
|
758
|
-
},
|
|
743
|
+
return Q(s, Yn, i);
|
|
744
|
+
}, Jn = F("div", {
|
|
759
745
|
name: "MuiPaper",
|
|
760
746
|
slot: "Root",
|
|
761
747
|
overridesResolver: (t, o) => {
|
|
@@ -793,30 +779,30 @@ const Jn = (t) => {
|
|
|
793
779
|
backgroundImage: "var(--Paper-overlay)"
|
|
794
780
|
}
|
|
795
781
|
}]
|
|
796
|
-
}))), _t = /* @__PURE__ */
|
|
782
|
+
}))), _t = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
797
783
|
var b;
|
|
798
|
-
const r =
|
|
784
|
+
const r = ne({
|
|
799
785
|
props: o,
|
|
800
786
|
name: "MuiPaper"
|
|
801
787
|
}), i = Ht(), {
|
|
802
788
|
className: s,
|
|
803
789
|
component: a = "div",
|
|
804
790
|
elevation: l = 1,
|
|
805
|
-
square:
|
|
791
|
+
square: d = !1,
|
|
806
792
|
variant: u = "elevation",
|
|
807
793
|
...m
|
|
808
794
|
} = r, g = {
|
|
809
795
|
...r,
|
|
810
796
|
component: a,
|
|
811
797
|
elevation: l,
|
|
812
|
-
square:
|
|
798
|
+
square: d,
|
|
813
799
|
variant: u
|
|
814
|
-
}, T =
|
|
800
|
+
}, T = Zn(g);
|
|
815
801
|
return process.env.NODE_ENV !== "production" && i.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
816
|
-
`)), /* @__PURE__ */ v(
|
|
802
|
+
`)), /* @__PURE__ */ v(Jn, {
|
|
817
803
|
as: a,
|
|
818
804
|
ownerState: g,
|
|
819
|
-
className:
|
|
805
|
+
className: J(T.root, s),
|
|
820
806
|
ref: n,
|
|
821
807
|
...m,
|
|
822
808
|
style: {
|
|
@@ -860,7 +846,7 @@ process.env.NODE_ENV !== "production" && (_t.propTypes = {
|
|
|
860
846
|
* It accepts values between 0 and 24 inclusive.
|
|
861
847
|
* @default 1
|
|
862
848
|
*/
|
|
863
|
-
elevation: st(
|
|
849
|
+
elevation: st(ko, (t) => {
|
|
864
850
|
const {
|
|
865
851
|
elevation: o,
|
|
866
852
|
variant: n
|
|
@@ -886,14 +872,14 @@ process.env.NODE_ENV !== "production" && (_t.propTypes = {
|
|
|
886
872
|
*/
|
|
887
873
|
variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
|
|
888
874
|
});
|
|
889
|
-
function
|
|
890
|
-
return
|
|
875
|
+
function Qn(t) {
|
|
876
|
+
return oe("MuiAlert", t);
|
|
891
877
|
}
|
|
892
|
-
const ao =
|
|
893
|
-
function
|
|
894
|
-
return
|
|
878
|
+
const ao = ie("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]);
|
|
879
|
+
function er(t) {
|
|
880
|
+
return oe("MuiIconButton", t);
|
|
895
881
|
}
|
|
896
|
-
const lo =
|
|
882
|
+
const lo = ie("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), tr = (t) => {
|
|
897
883
|
const {
|
|
898
884
|
classes: o,
|
|
899
885
|
disabled: n,
|
|
@@ -906,8 +892,8 @@ const lo = se("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
906
892
|
loadingIndicator: ["loadingIndicator"],
|
|
907
893
|
loadingWrapper: ["loadingWrapper"]
|
|
908
894
|
};
|
|
909
|
-
return
|
|
910
|
-
},
|
|
895
|
+
return Q(l, er, o);
|
|
896
|
+
}, or = F(Nn, {
|
|
911
897
|
name: "MuiIconButton",
|
|
912
898
|
slot: "Root",
|
|
913
899
|
overridesResolver: (t, o) => {
|
|
@@ -1019,7 +1005,7 @@ const lo = se("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
1019
1005
|
[`&.${lo.loading}`]: {
|
|
1020
1006
|
color: "transparent"
|
|
1021
1007
|
}
|
|
1022
|
-
}))),
|
|
1008
|
+
}))), nr = F("span", {
|
|
1023
1009
|
name: "MuiIconButton",
|
|
1024
1010
|
slot: "LoadingIndicator",
|
|
1025
1011
|
overridesResolver: (t, o) => o.loadingIndicator
|
|
@@ -1041,8 +1027,8 @@ const lo = se("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
1041
1027
|
display: "flex"
|
|
1042
1028
|
}
|
|
1043
1029
|
}]
|
|
1044
|
-
})), Uo = /* @__PURE__ */
|
|
1045
|
-
const r =
|
|
1030
|
+
})), Uo = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
1031
|
+
const r = ne({
|
|
1046
1032
|
props: o,
|
|
1047
1033
|
name: "MuiIconButton"
|
|
1048
1034
|
}), {
|
|
@@ -1050,7 +1036,7 @@ const lo = se("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
1050
1036
|
children: s,
|
|
1051
1037
|
className: a,
|
|
1052
1038
|
color: l = "default",
|
|
1053
|
-
disabled:
|
|
1039
|
+
disabled: d = !1,
|
|
1054
1040
|
disableFocusRipple: u = !1,
|
|
1055
1041
|
size: m = "medium",
|
|
1056
1042
|
id: g,
|
|
@@ -1065,18 +1051,18 @@ const lo = se("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
1065
1051
|
...r,
|
|
1066
1052
|
edge: i,
|
|
1067
1053
|
color: l,
|
|
1068
|
-
disabled:
|
|
1054
|
+
disabled: d,
|
|
1069
1055
|
disableFocusRipple: u,
|
|
1070
1056
|
loading: T,
|
|
1071
1057
|
loadingIndicator: y,
|
|
1072
1058
|
size: m
|
|
1073
|
-
}, C =
|
|
1074
|
-
return /* @__PURE__ */ ce(
|
|
1059
|
+
}, C = tr(h);
|
|
1060
|
+
return /* @__PURE__ */ ce(or, {
|
|
1075
1061
|
id: T ? O : g,
|
|
1076
|
-
className:
|
|
1062
|
+
className: J(C.root, a),
|
|
1077
1063
|
centerRipple: !0,
|
|
1078
1064
|
focusRipple: !u,
|
|
1079
|
-
disabled:
|
|
1065
|
+
disabled: d || T,
|
|
1080
1066
|
ref: n,
|
|
1081
1067
|
...x,
|
|
1082
1068
|
ownerState: h,
|
|
@@ -1086,7 +1072,7 @@ const lo = se("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
1086
1072
|
style: {
|
|
1087
1073
|
display: "contents"
|
|
1088
1074
|
},
|
|
1089
|
-
children: /* @__PURE__ */ v(
|
|
1075
|
+
children: /* @__PURE__ */ v(nr, {
|
|
1090
1076
|
className: C.loadingIndicator,
|
|
1091
1077
|
ownerState: h,
|
|
1092
1078
|
children: T && y
|
|
@@ -1102,7 +1088,7 @@ process.env.NODE_ENV !== "production" && (Uo.propTypes = {
|
|
|
1102
1088
|
/**
|
|
1103
1089
|
* The icon to display.
|
|
1104
1090
|
*/
|
|
1105
|
-
children: st(e.node, (t) =>
|
|
1091
|
+
children: st(e.node, (t) => c.Children.toArray(t.children).some((n) => /* @__PURE__ */ c.isValidElement(n) && n.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
1106
1092
|
`)) : null),
|
|
1107
1093
|
/**
|
|
1108
1094
|
* Override or extend the styles applied to the component.
|
|
@@ -1173,17 +1159,17 @@ process.env.NODE_ENV !== "production" && (Uo.propTypes = {
|
|
|
1173
1159
|
*/
|
|
1174
1160
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1175
1161
|
});
|
|
1176
|
-
const
|
|
1162
|
+
const rr = ke(/* @__PURE__ */ v("path", {
|
|
1177
1163
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
1178
|
-
}), "SuccessOutlined"),
|
|
1164
|
+
}), "SuccessOutlined"), sr = ke(/* @__PURE__ */ v("path", {
|
|
1179
1165
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
1180
|
-
}), "ReportProblemOutlined"),
|
|
1166
|
+
}), "ReportProblemOutlined"), ir = ke(/* @__PURE__ */ v("path", {
|
|
1181
1167
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
1182
|
-
}), "ErrorOutline"),
|
|
1168
|
+
}), "ErrorOutline"), ar = ke(/* @__PURE__ */ v("path", {
|
|
1183
1169
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
1184
|
-
}), "InfoOutlined"),
|
|
1170
|
+
}), "InfoOutlined"), lr = ke(/* @__PURE__ */ v("path", {
|
|
1185
1171
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1186
|
-
}), "Close"),
|
|
1172
|
+
}), "Close"), cr = (t) => {
|
|
1187
1173
|
const {
|
|
1188
1174
|
variant: o,
|
|
1189
1175
|
color: n,
|
|
@@ -1195,8 +1181,8 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1195
1181
|
message: ["message"],
|
|
1196
1182
|
action: ["action"]
|
|
1197
1183
|
};
|
|
1198
|
-
return
|
|
1199
|
-
},
|
|
1184
|
+
return Q(s, Qn, i);
|
|
1185
|
+
}, dr = F(_t, {
|
|
1200
1186
|
name: "MuiAlert",
|
|
1201
1187
|
slot: "Root",
|
|
1202
1188
|
overridesResolver: (t, o) => {
|
|
@@ -1259,7 +1245,7 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1259
1245
|
}
|
|
1260
1246
|
}))]
|
|
1261
1247
|
};
|
|
1262
|
-
})),
|
|
1248
|
+
})), pr = F("div", {
|
|
1263
1249
|
name: "MuiAlert",
|
|
1264
1250
|
slot: "Icon",
|
|
1265
1251
|
overridesResolver: (t, o) => o.icon
|
|
@@ -1269,7 +1255,7 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1269
1255
|
display: "flex",
|
|
1270
1256
|
fontSize: 22,
|
|
1271
1257
|
opacity: 0.9
|
|
1272
|
-
}),
|
|
1258
|
+
}), ur = F("div", {
|
|
1273
1259
|
name: "MuiAlert",
|
|
1274
1260
|
slot: "Message",
|
|
1275
1261
|
overridesResolver: (t, o) => o.message
|
|
@@ -1277,7 +1263,7 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1277
1263
|
padding: "8px 0",
|
|
1278
1264
|
minWidth: 0,
|
|
1279
1265
|
overflow: "auto"
|
|
1280
|
-
}),
|
|
1266
|
+
}), fr = F("div", {
|
|
1281
1267
|
name: "MuiAlert",
|
|
1282
1268
|
slot: "Action",
|
|
1283
1269
|
overridesResolver: (t, o) => o.action
|
|
@@ -1288,20 +1274,20 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1288
1274
|
marginLeft: "auto",
|
|
1289
1275
|
marginRight: -8
|
|
1290
1276
|
}), co = {
|
|
1291
|
-
success: /* @__PURE__ */ v(
|
|
1277
|
+
success: /* @__PURE__ */ v(rr, {
|
|
1292
1278
|
fontSize: "inherit"
|
|
1293
1279
|
}),
|
|
1294
|
-
warning: /* @__PURE__ */ v(
|
|
1280
|
+
warning: /* @__PURE__ */ v(sr, {
|
|
1295
1281
|
fontSize: "inherit"
|
|
1296
1282
|
}),
|
|
1297
|
-
error: /* @__PURE__ */ v(
|
|
1283
|
+
error: /* @__PURE__ */ v(ir, {
|
|
1298
1284
|
fontSize: "inherit"
|
|
1299
1285
|
}),
|
|
1300
|
-
info: /* @__PURE__ */ v(
|
|
1286
|
+
info: /* @__PURE__ */ v(ar, {
|
|
1301
1287
|
fontSize: "inherit"
|
|
1302
1288
|
})
|
|
1303
|
-
}, Vo = /* @__PURE__ */
|
|
1304
|
-
const r =
|
|
1289
|
+
}, Vo = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
1290
|
+
const r = ne({
|
|
1305
1291
|
props: o,
|
|
1306
1292
|
name: "MuiAlert"
|
|
1307
1293
|
}), {
|
|
@@ -1309,7 +1295,7 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1309
1295
|
children: s,
|
|
1310
1296
|
className: a,
|
|
1311
1297
|
closeText: l = "Close",
|
|
1312
|
-
color:
|
|
1298
|
+
color: d,
|
|
1313
1299
|
components: u = {},
|
|
1314
1300
|
componentsProps: m = {},
|
|
1315
1301
|
icon: g,
|
|
@@ -1323,11 +1309,11 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1323
1309
|
...p
|
|
1324
1310
|
} = r, f = {
|
|
1325
1311
|
...r,
|
|
1326
|
-
color:
|
|
1312
|
+
color: d,
|
|
1327
1313
|
severity: O,
|
|
1328
1314
|
variant: C,
|
|
1329
|
-
colorSeverity:
|
|
1330
|
-
}, E =
|
|
1315
|
+
colorSeverity: d || O
|
|
1316
|
+
}, E = cr(f), S = {
|
|
1331
1317
|
slots: {
|
|
1332
1318
|
closeButton: u.CloseButton,
|
|
1333
1319
|
closeIcon: u.CloseIcon,
|
|
@@ -1337,13 +1323,13 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1337
1323
|
...m,
|
|
1338
1324
|
...y
|
|
1339
1325
|
}
|
|
1340
|
-
}, [P, N] =
|
|
1326
|
+
}, [P, N] = te("root", {
|
|
1341
1327
|
ref: n,
|
|
1342
1328
|
shouldForwardComponentProp: !0,
|
|
1343
|
-
className:
|
|
1344
|
-
elementType:
|
|
1329
|
+
className: J(E.root, a),
|
|
1330
|
+
elementType: dr,
|
|
1345
1331
|
externalForwardedProps: {
|
|
1346
|
-
...
|
|
1332
|
+
...S,
|
|
1347
1333
|
...p
|
|
1348
1334
|
},
|
|
1349
1335
|
ownerState: f,
|
|
@@ -1351,42 +1337,42 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1351
1337
|
role: x,
|
|
1352
1338
|
elevation: 0
|
|
1353
1339
|
}
|
|
1354
|
-
}), [
|
|
1340
|
+
}), [A, L] = te("icon", {
|
|
1355
1341
|
className: E.icon,
|
|
1356
|
-
elementType:
|
|
1357
|
-
externalForwardedProps:
|
|
1342
|
+
elementType: pr,
|
|
1343
|
+
externalForwardedProps: S,
|
|
1358
1344
|
ownerState: f
|
|
1359
|
-
}), [
|
|
1345
|
+
}), [D, $] = te("message", {
|
|
1360
1346
|
className: E.message,
|
|
1361
|
-
elementType:
|
|
1362
|
-
externalForwardedProps:
|
|
1347
|
+
elementType: ur,
|
|
1348
|
+
externalForwardedProps: S,
|
|
1363
1349
|
ownerState: f
|
|
1364
|
-
}), [
|
|
1350
|
+
}), [W, j] = te("action", {
|
|
1365
1351
|
className: E.action,
|
|
1366
|
-
elementType:
|
|
1367
|
-
externalForwardedProps:
|
|
1352
|
+
elementType: fr,
|
|
1353
|
+
externalForwardedProps: S,
|
|
1368
1354
|
ownerState: f
|
|
1369
|
-
}), [R,
|
|
1355
|
+
}), [R, w] = te("closeButton", {
|
|
1370
1356
|
elementType: Uo,
|
|
1371
|
-
externalForwardedProps:
|
|
1357
|
+
externalForwardedProps: S,
|
|
1372
1358
|
ownerState: f
|
|
1373
|
-
}), [
|
|
1374
|
-
elementType:
|
|
1375
|
-
externalForwardedProps:
|
|
1359
|
+
}), [M, H] = te("closeIcon", {
|
|
1360
|
+
elementType: lr,
|
|
1361
|
+
externalForwardedProps: S,
|
|
1376
1362
|
ownerState: f
|
|
1377
1363
|
});
|
|
1378
1364
|
return /* @__PURE__ */ ce(P, {
|
|
1379
1365
|
...N,
|
|
1380
|
-
children: [g !== !1 ? /* @__PURE__ */ v(
|
|
1381
|
-
...D,
|
|
1382
|
-
children: g || T[O] || co[O]
|
|
1383
|
-
}) : null, /* @__PURE__ */ v(B, {
|
|
1366
|
+
children: [g !== !1 ? /* @__PURE__ */ v(A, {
|
|
1384
1367
|
...L,
|
|
1368
|
+
children: g || T[O] || co[O]
|
|
1369
|
+
}) : null, /* @__PURE__ */ v(D, {
|
|
1370
|
+
...$,
|
|
1385
1371
|
children: s
|
|
1386
|
-
}), i != null ? /* @__PURE__ */ v(
|
|
1372
|
+
}), i != null ? /* @__PURE__ */ v(W, {
|
|
1387
1373
|
...j,
|
|
1388
1374
|
children: i
|
|
1389
|
-
}) : null, i == null && b ? /* @__PURE__ */ v(
|
|
1375
|
+
}) : null, i == null && b ? /* @__PURE__ */ v(W, {
|
|
1390
1376
|
...j,
|
|
1391
1377
|
children: /* @__PURE__ */ v(R, {
|
|
1392
1378
|
size: "small",
|
|
@@ -1394,10 +1380,10 @@ const sr = Me(/* @__PURE__ */ v("path", {
|
|
|
1394
1380
|
title: l,
|
|
1395
1381
|
color: "inherit",
|
|
1396
1382
|
onClick: b,
|
|
1397
|
-
...
|
|
1398
|
-
children: /* @__PURE__ */ v(
|
|
1383
|
+
...w,
|
|
1384
|
+
children: /* @__PURE__ */ v(M, {
|
|
1399
1385
|
fontSize: "small",
|
|
1400
|
-
...
|
|
1386
|
+
...H
|
|
1401
1387
|
})
|
|
1402
1388
|
})
|
|
1403
1389
|
}) : null]
|
|
@@ -1440,7 +1426,7 @@ process.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
|
|
1440
1426
|
/**
|
|
1441
1427
|
* The components used for each slot inside.
|
|
1442
1428
|
*
|
|
1443
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
1429
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1444
1430
|
*
|
|
1445
1431
|
* @default {}
|
|
1446
1432
|
*/
|
|
@@ -1452,7 +1438,7 @@ process.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
|
|
1452
1438
|
* The extra props for the slot components.
|
|
1453
1439
|
* You can override the existing props or add new ones.
|
|
1454
1440
|
*
|
|
1455
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
1441
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1456
1442
|
*
|
|
1457
1443
|
* @default {}
|
|
1458
1444
|
*/
|
|
@@ -1528,11 +1514,11 @@ process.env.NODE_ENV !== "production" && (Vo.propTypes = {
|
|
|
1528
1514
|
*/
|
|
1529
1515
|
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
1530
1516
|
});
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1517
|
+
function mr(t) {
|
|
1518
|
+
return oe("MuiTypography", t);
|
|
1533
1519
|
}
|
|
1534
|
-
|
|
1535
|
-
const
|
|
1520
|
+
ie("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
1521
|
+
const br = {
|
|
1536
1522
|
primary: !0,
|
|
1537
1523
|
secondary: !0,
|
|
1538
1524
|
error: !0,
|
|
@@ -1542,7 +1528,7 @@ const gr = {
|
|
|
1542
1528
|
textPrimary: !0,
|
|
1543
1529
|
textSecondary: !0,
|
|
1544
1530
|
textDisabled: !0
|
|
1545
|
-
},
|
|
1531
|
+
}, gr = _n(), hr = (t) => {
|
|
1546
1532
|
const {
|
|
1547
1533
|
align: o,
|
|
1548
1534
|
gutterBottom: n,
|
|
@@ -1553,8 +1539,8 @@ const gr = {
|
|
|
1553
1539
|
} = t, l = {
|
|
1554
1540
|
root: ["root", s, t.align !== "inherit" && `align${K(o)}`, n && "gutterBottom", r && "noWrap", i && "paragraph"]
|
|
1555
1541
|
};
|
|
1556
|
-
return
|
|
1557
|
-
},
|
|
1542
|
+
return Q(l, mr, a);
|
|
1543
|
+
}, yr = F("span", {
|
|
1558
1544
|
name: "MuiTypography",
|
|
1559
1545
|
slot: "Root",
|
|
1560
1546
|
overridesResolver: (t, o) => {
|
|
@@ -1642,21 +1628,21 @@ const gr = {
|
|
|
1642
1628
|
body1: "p",
|
|
1643
1629
|
body2: "p",
|
|
1644
1630
|
inherit: "p"
|
|
1645
|
-
},
|
|
1631
|
+
}, $t = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
1646
1632
|
const {
|
|
1647
1633
|
color: r,
|
|
1648
1634
|
...i
|
|
1649
|
-
} =
|
|
1635
|
+
} = ne({
|
|
1650
1636
|
props: o,
|
|
1651
1637
|
name: "MuiTypography"
|
|
1652
|
-
}), s = !
|
|
1638
|
+
}), s = !br[r], a = gr({
|
|
1653
1639
|
...i,
|
|
1654
1640
|
...s && {
|
|
1655
1641
|
color: r
|
|
1656
1642
|
}
|
|
1657
1643
|
}), {
|
|
1658
1644
|
align: l = "inherit",
|
|
1659
|
-
className:
|
|
1645
|
+
className: d,
|
|
1660
1646
|
component: u,
|
|
1661
1647
|
gutterBottom: m = !1,
|
|
1662
1648
|
noWrap: g = !1,
|
|
@@ -1668,18 +1654,18 @@ const gr = {
|
|
|
1668
1654
|
...a,
|
|
1669
1655
|
align: l,
|
|
1670
1656
|
color: r,
|
|
1671
|
-
className:
|
|
1657
|
+
className: d,
|
|
1672
1658
|
component: u,
|
|
1673
1659
|
gutterBottom: m,
|
|
1674
1660
|
noWrap: g,
|
|
1675
1661
|
paragraph: T,
|
|
1676
1662
|
variant: b,
|
|
1677
1663
|
variantMapping: x
|
|
1678
|
-
}, h = u || (T ? "p" : x[b] || po[b]) || "span", C =
|
|
1679
|
-
return /* @__PURE__ */ v(
|
|
1664
|
+
}, h = u || (T ? "p" : x[b] || po[b]) || "span", C = hr(y);
|
|
1665
|
+
return /* @__PURE__ */ v(yr, {
|
|
1680
1666
|
as: h,
|
|
1681
1667
|
ref: n,
|
|
1682
|
-
className:
|
|
1668
|
+
className: J(C.root, d),
|
|
1683
1669
|
...O,
|
|
1684
1670
|
ownerState: y,
|
|
1685
1671
|
style: {
|
|
@@ -1690,7 +1676,7 @@ const gr = {
|
|
|
1690
1676
|
}
|
|
1691
1677
|
});
|
|
1692
1678
|
});
|
|
1693
|
-
process.env.NODE_ENV !== "production" && (
|
|
1679
|
+
process.env.NODE_ENV !== "production" && ($t.propTypes = {
|
|
1694
1680
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1695
1681
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1696
1682
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1739,7 +1725,7 @@ process.env.NODE_ENV !== "production" && (At.propTypes = {
|
|
|
1739
1725
|
/**
|
|
1740
1726
|
* If `true`, the element will be a paragraph element.
|
|
1741
1727
|
* @default false
|
|
1742
|
-
* @deprecated Use the `component` prop instead. This prop will be removed in
|
|
1728
|
+
* @deprecated Use the `component` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
1743
1729
|
*/
|
|
1744
1730
|
paragraph: e.bool,
|
|
1745
1731
|
/**
|
|
@@ -1776,32 +1762,32 @@ process.env.NODE_ENV !== "production" && (At.propTypes = {
|
|
|
1776
1762
|
*/
|
|
1777
1763
|
variantMapping: e.object
|
|
1778
1764
|
});
|
|
1779
|
-
function
|
|
1765
|
+
function vr(t) {
|
|
1780
1766
|
return typeof t == "function" ? t() : t;
|
|
1781
1767
|
}
|
|
1782
|
-
const gt = /* @__PURE__ */
|
|
1768
|
+
const gt = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
1783
1769
|
const {
|
|
1784
1770
|
children: r,
|
|
1785
1771
|
container: i,
|
|
1786
1772
|
disablePortal: s = !1
|
|
1787
|
-
} = o, [a, l] =
|
|
1773
|
+
} = o, [a, l] = c.useState(null), d = Ee(/* @__PURE__ */ c.isValidElement(r) ? at(r) : null, n);
|
|
1788
1774
|
if (He(() => {
|
|
1789
|
-
s || l(
|
|
1775
|
+
s || l(vr(i) || document.body);
|
|
1790
1776
|
}, [i, s]), He(() => {
|
|
1791
1777
|
if (a && !s)
|
|
1792
1778
|
return so(n, a), () => {
|
|
1793
1779
|
so(n, null);
|
|
1794
1780
|
};
|
|
1795
1781
|
}, [n, a, s]), s) {
|
|
1796
|
-
if (/* @__PURE__ */
|
|
1782
|
+
if (/* @__PURE__ */ c.isValidElement(r)) {
|
|
1797
1783
|
const u = {
|
|
1798
|
-
ref:
|
|
1784
|
+
ref: d
|
|
1799
1785
|
};
|
|
1800
|
-
return /* @__PURE__ */
|
|
1786
|
+
return /* @__PURE__ */ c.cloneElement(r, u);
|
|
1801
1787
|
}
|
|
1802
1788
|
return r;
|
|
1803
1789
|
}
|
|
1804
|
-
return a && /* @__PURE__ */
|
|
1790
|
+
return a && /* @__PURE__ */ Mn.createPortal(r, a);
|
|
1805
1791
|
});
|
|
1806
1792
|
process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
1807
1793
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -1829,11 +1815,11 @@ process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
|
1829
1815
|
*/
|
|
1830
1816
|
disablePortal: e.bool
|
|
1831
1817
|
});
|
|
1832
|
-
process.env.NODE_ENV !== "production" && (gt.propTypes =
|
|
1818
|
+
process.env.NODE_ENV !== "production" && (gt.propTypes = $o(gt.propTypes));
|
|
1833
1819
|
function pt(t) {
|
|
1834
1820
|
return parseInt(t, 10) || 0;
|
|
1835
1821
|
}
|
|
1836
|
-
const
|
|
1822
|
+
const Tr = {
|
|
1837
1823
|
shadow: {
|
|
1838
1824
|
// Visibility needed to hide the extra text area on iPads
|
|
1839
1825
|
visibility: "hidden",
|
|
@@ -1848,44 +1834,44 @@ const xr = {
|
|
|
1848
1834
|
transform: "translateZ(0)"
|
|
1849
1835
|
}
|
|
1850
1836
|
};
|
|
1851
|
-
function
|
|
1837
|
+
function xr(t) {
|
|
1852
1838
|
for (const o in t)
|
|
1853
1839
|
return !1;
|
|
1854
1840
|
return !0;
|
|
1855
1841
|
}
|
|
1856
1842
|
function uo(t) {
|
|
1857
|
-
return
|
|
1843
|
+
return xr(t) || t.outerHeightStyle === 0 && !t.overflowing;
|
|
1858
1844
|
}
|
|
1859
|
-
const Ho = /* @__PURE__ */
|
|
1845
|
+
const Ho = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
1860
1846
|
const {
|
|
1861
1847
|
onChange: r,
|
|
1862
1848
|
maxRows: i,
|
|
1863
1849
|
minRows: s = 1,
|
|
1864
1850
|
style: a,
|
|
1865
1851
|
value: l,
|
|
1866
|
-
...
|
|
1852
|
+
...d
|
|
1867
1853
|
} = o, {
|
|
1868
1854
|
current: u
|
|
1869
|
-
} =
|
|
1855
|
+
} = c.useRef(l != null), m = c.useRef(null), g = Ee(n, m), T = c.useRef(null), b = c.useRef(null), x = c.useCallback(() => {
|
|
1870
1856
|
const p = m.current, f = b.current;
|
|
1871
1857
|
if (!p || !f)
|
|
1872
1858
|
return;
|
|
1873
|
-
const
|
|
1874
|
-
if (
|
|
1859
|
+
const S = Ie(p).getComputedStyle(p);
|
|
1860
|
+
if (S.width === "0px")
|
|
1875
1861
|
return {
|
|
1876
1862
|
outerHeightStyle: 0,
|
|
1877
1863
|
overflowing: !1
|
|
1878
1864
|
};
|
|
1879
|
-
f.style.width =
|
|
1865
|
+
f.style.width = S.width, f.value = p.value || o.placeholder || "x", f.value.slice(-1) === `
|
|
1880
1866
|
` && (f.value += " ");
|
|
1881
|
-
const P =
|
|
1867
|
+
const P = S.boxSizing, N = pt(S.paddingBottom) + pt(S.paddingTop), A = pt(S.borderBottomWidth) + pt(S.borderTopWidth), L = f.scrollHeight;
|
|
1882
1868
|
f.value = "x";
|
|
1883
|
-
const
|
|
1884
|
-
let
|
|
1885
|
-
s && (
|
|
1886
|
-
const
|
|
1869
|
+
const D = f.scrollHeight;
|
|
1870
|
+
let $ = L;
|
|
1871
|
+
s && ($ = Math.max(Number(s) * D, $)), i && ($ = Math.min(Number(i) * D, $)), $ = Math.max($, D);
|
|
1872
|
+
const W = $ + (P === "border-box" ? N + A : 0), j = Math.abs($ - L) <= 1;
|
|
1887
1873
|
return {
|
|
1888
|
-
outerHeightStyle:
|
|
1874
|
+
outerHeightStyle: W,
|
|
1889
1875
|
overflowing: j
|
|
1890
1876
|
};
|
|
1891
1877
|
}, [i, s, o.placeholder]), O = Ft(() => {
|
|
@@ -1894,26 +1880,26 @@ const Ho = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
1894
1880
|
return !1;
|
|
1895
1881
|
const E = f.outerHeightStyle;
|
|
1896
1882
|
return T.current != null && T.current !== E;
|
|
1897
|
-
}), y =
|
|
1883
|
+
}), y = c.useCallback(() => {
|
|
1898
1884
|
const p = m.current, f = x();
|
|
1899
1885
|
if (!p || !f || uo(f))
|
|
1900
1886
|
return;
|
|
1901
1887
|
const E = f.outerHeightStyle;
|
|
1902
1888
|
T.current !== E && (T.current = E, p.style.height = `${E}px`), p.style.overflow = f.overflowing ? "hidden" : "";
|
|
1903
|
-
}, [x]), h =
|
|
1889
|
+
}, [x]), h = c.useRef(-1);
|
|
1904
1890
|
He(() => {
|
|
1905
|
-
const p =
|
|
1891
|
+
const p = Ao(y), f = m == null ? void 0 : m.current;
|
|
1906
1892
|
if (!f)
|
|
1907
1893
|
return;
|
|
1908
1894
|
const E = Ie(f);
|
|
1909
1895
|
E.addEventListener("resize", p);
|
|
1910
|
-
let
|
|
1911
|
-
return typeof ResizeObserver < "u" && (
|
|
1912
|
-
O() && (
|
|
1913
|
-
|
|
1896
|
+
let S;
|
|
1897
|
+
return typeof ResizeObserver < "u" && (S = new ResizeObserver(() => {
|
|
1898
|
+
O() && (S.unobserve(f), cancelAnimationFrame(h.current), y(), h.current = requestAnimationFrame(() => {
|
|
1899
|
+
S.observe(f);
|
|
1914
1900
|
}));
|
|
1915
|
-
}),
|
|
1916
|
-
p.clear(), cancelAnimationFrame(h.current), E.removeEventListener("resize", p),
|
|
1901
|
+
}), S.observe(f)), () => {
|
|
1902
|
+
p.clear(), cancelAnimationFrame(h.current), E.removeEventListener("resize", p), S && S.disconnect();
|
|
1917
1903
|
};
|
|
1918
1904
|
}, [x, y, O]), He(() => {
|
|
1919
1905
|
y();
|
|
@@ -1921,14 +1907,14 @@ const Ho = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
1921
1907
|
const C = (p) => {
|
|
1922
1908
|
u || y(), r && r(p);
|
|
1923
1909
|
};
|
|
1924
|
-
return /* @__PURE__ */ ce(
|
|
1910
|
+
return /* @__PURE__ */ ce(c.Fragment, {
|
|
1925
1911
|
children: [/* @__PURE__ */ v("textarea", {
|
|
1926
1912
|
value: l,
|
|
1927
1913
|
onChange: C,
|
|
1928
1914
|
ref: g,
|
|
1929
1915
|
rows: s,
|
|
1930
1916
|
style: a,
|
|
1931
|
-
...
|
|
1917
|
+
...d
|
|
1932
1918
|
}), /* @__PURE__ */ v("textarea", {
|
|
1933
1919
|
"aria-hidden": !0,
|
|
1934
1920
|
className: o.className,
|
|
@@ -1936,7 +1922,7 @@ const Ho = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
1936
1922
|
ref: b,
|
|
1937
1923
|
tabIndex: -1,
|
|
1938
1924
|
style: {
|
|
1939
|
-
...
|
|
1925
|
+
...Tr.shadow,
|
|
1940
1926
|
...a,
|
|
1941
1927
|
paddingTop: 0,
|
|
1942
1928
|
paddingBottom: 0
|
|
@@ -1979,7 +1965,7 @@ process.env.NODE_ENV !== "production" && (Ho.propTypes = {
|
|
|
1979
1965
|
*/
|
|
1980
1966
|
value: e.oneOfType([e.arrayOf(e.string), e.number, e.string])
|
|
1981
1967
|
});
|
|
1982
|
-
function
|
|
1968
|
+
function At(t) {
|
|
1983
1969
|
return typeof t == "string";
|
|
1984
1970
|
}
|
|
1985
1971
|
function _e({
|
|
@@ -1989,10 +1975,10 @@ function _e({
|
|
|
1989
1975
|
}) {
|
|
1990
1976
|
return o.reduce((r, i) => (r[i] = t[i], n && typeof t[i] > "u" && (r[i] = n[i]), r), {});
|
|
1991
1977
|
}
|
|
1992
|
-
const Tt = /* @__PURE__ */
|
|
1978
|
+
const Tt = /* @__PURE__ */ c.createContext(void 0);
|
|
1993
1979
|
process.env.NODE_ENV !== "production" && (Tt.displayName = "FormControlContext");
|
|
1994
1980
|
function Ke() {
|
|
1995
|
-
return
|
|
1981
|
+
return c.useContext(Tt);
|
|
1996
1982
|
}
|
|
1997
1983
|
function fo(t) {
|
|
1998
1984
|
return t != null && !(Array.isArray(t) && t.length === 0);
|
|
@@ -2000,13 +1986,13 @@ function fo(t) {
|
|
|
2000
1986
|
function ht(t, o = !1) {
|
|
2001
1987
|
return t && (fo(t.value) && t.value !== "" || o && fo(t.defaultValue) && t.defaultValue !== "");
|
|
2002
1988
|
}
|
|
2003
|
-
function
|
|
1989
|
+
function Er(t) {
|
|
2004
1990
|
return t.startAdornment;
|
|
2005
1991
|
}
|
|
2006
|
-
function
|
|
2007
|
-
return
|
|
1992
|
+
function Or(t) {
|
|
1993
|
+
return oe("MuiInputBase", t);
|
|
2008
1994
|
}
|
|
2009
|
-
const qe =
|
|
1995
|
+
const qe = ie("MuiInputBase", ["root", "formControl", "focused", "disabled", "adornedStart", "adornedEnd", "error", "sizeSmall", "multiline", "colorSecondary", "fullWidth", "hiddenLabel", "readOnly", "input", "inputSizeSmall", "inputMultiline", "inputTypeSearch", "inputAdornedStart", "inputAdornedEnd", "inputHiddenLabel"]);
|
|
2010
1996
|
var mo;
|
|
2011
1997
|
const xt = (t, o) => {
|
|
2012
1998
|
const {
|
|
@@ -2018,7 +2004,7 @@ const xt = (t, o) => {
|
|
|
2018
2004
|
ownerState: n
|
|
2019
2005
|
} = t;
|
|
2020
2006
|
return [o.input, n.size === "small" && o.inputSizeSmall, n.multiline && o.inputMultiline, n.type === "search" && o.inputTypeSearch, n.startAdornment && o.inputAdornedStart, n.endAdornment && o.inputAdornedEnd, n.hiddenLabel && o.inputHiddenLabel];
|
|
2021
|
-
},
|
|
2007
|
+
}, Cr = (t) => {
|
|
2022
2008
|
const {
|
|
2023
2009
|
classes: o,
|
|
2024
2010
|
color: n,
|
|
@@ -2027,7 +2013,7 @@ const xt = (t, o) => {
|
|
|
2027
2013
|
endAdornment: s,
|
|
2028
2014
|
focused: a,
|
|
2029
2015
|
formControl: l,
|
|
2030
|
-
fullWidth:
|
|
2016
|
+
fullWidth: d,
|
|
2031
2017
|
hiddenLabel: u,
|
|
2032
2018
|
multiline: m,
|
|
2033
2019
|
readOnly: g,
|
|
@@ -2035,10 +2021,10 @@ const xt = (t, o) => {
|
|
|
2035
2021
|
startAdornment: b,
|
|
2036
2022
|
type: x
|
|
2037
2023
|
} = t, O = {
|
|
2038
|
-
root: ["root", `color${K(n)}`, r && "disabled", i && "error",
|
|
2024
|
+
root: ["root", `color${K(n)}`, r && "disabled", i && "error", d && "fullWidth", a && "focused", l && "formControl", T && T !== "medium" && `size${K(T)}`, m && "multiline", b && "adornedStart", s && "adornedEnd", u && "hiddenLabel", g && "readOnly"],
|
|
2039
2025
|
input: ["input", r && "disabled", x === "search" && "inputTypeSearch", m && "inputMultiline", T === "small" && "inputSizeSmall", u && "inputHiddenLabel", b && "inputAdornedStart", s && "inputAdornedEnd", g && "readOnly"]
|
|
2040
2026
|
};
|
|
2041
|
-
return
|
|
2027
|
+
return Q(O, Or, o);
|
|
2042
2028
|
}, Ot = F("div", {
|
|
2043
2029
|
name: "MuiInputBase",
|
|
2044
2030
|
slot: "Root",
|
|
@@ -2209,8 +2195,8 @@ const xt = (t, o) => {
|
|
|
2209
2195
|
display: "block"
|
|
2210
2196
|
}
|
|
2211
2197
|
}
|
|
2212
|
-
}), Rt = /* @__PURE__ */
|
|
2213
|
-
const r =
|
|
2198
|
+
}), Rt = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
2199
|
+
const r = ne({
|
|
2214
2200
|
props: o,
|
|
2215
2201
|
name: "MuiInputBase"
|
|
2216
2202
|
}), {
|
|
@@ -2218,7 +2204,7 @@ const xt = (t, o) => {
|
|
|
2218
2204
|
autoComplete: s,
|
|
2219
2205
|
autoFocus: a,
|
|
2220
2206
|
className: l,
|
|
2221
|
-
color:
|
|
2207
|
+
color: d,
|
|
2222
2208
|
components: u = {},
|
|
2223
2209
|
componentsProps: m = {},
|
|
2224
2210
|
defaultValue: g,
|
|
@@ -2232,164 +2218,164 @@ const xt = (t, o) => {
|
|
|
2232
2218
|
inputProps: p = {},
|
|
2233
2219
|
inputRef: f,
|
|
2234
2220
|
margin: E,
|
|
2235
|
-
maxRows:
|
|
2221
|
+
maxRows: S,
|
|
2236
2222
|
minRows: P,
|
|
2237
2223
|
multiline: N = !1,
|
|
2238
|
-
name:
|
|
2239
|
-
onBlur:
|
|
2240
|
-
onChange:
|
|
2241
|
-
onClick:
|
|
2242
|
-
onFocus:
|
|
2224
|
+
name: A,
|
|
2225
|
+
onBlur: L,
|
|
2226
|
+
onChange: D,
|
|
2227
|
+
onClick: $,
|
|
2228
|
+
onFocus: W,
|
|
2243
2229
|
onKeyDown: j,
|
|
2244
2230
|
onKeyUp: R,
|
|
2245
|
-
placeholder:
|
|
2246
|
-
readOnly:
|
|
2247
|
-
renderSuffix:
|
|
2231
|
+
placeholder: w,
|
|
2232
|
+
readOnly: M,
|
|
2233
|
+
renderSuffix: H,
|
|
2248
2234
|
rows: I,
|
|
2249
|
-
size:
|
|
2235
|
+
size: _,
|
|
2250
2236
|
slotProps: le = {},
|
|
2251
|
-
slots:
|
|
2252
|
-
startAdornment:
|
|
2253
|
-
type:
|
|
2254
|
-
value:
|
|
2255
|
-
...
|
|
2256
|
-
} = r, fe = p.value != null ? p.value :
|
|
2237
|
+
slots: ye = {},
|
|
2238
|
+
startAdornment: Y,
|
|
2239
|
+
type: X = "text",
|
|
2240
|
+
value: Z,
|
|
2241
|
+
...be
|
|
2242
|
+
} = r, fe = p.value != null ? p.value : Z, {
|
|
2257
2243
|
current: ve
|
|
2258
|
-
} =
|
|
2259
|
-
process.env.NODE_ENV !== "production" &&
|
|
2244
|
+
} = c.useRef(fe != null), re = c.useRef(), B = c.useCallback((G) => {
|
|
2245
|
+
process.env.NODE_ENV !== "production" && G && G.nodeName !== "INPUT" && !G.focus && console.error(["MUI: You have provided a `inputComponent` to the input component", "that does not correctly handle the `ref` prop.", "Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
2260
2246
|
`));
|
|
2261
|
-
}, []),
|
|
2262
|
-
process.env.NODE_ENV !== "production" &&
|
|
2263
|
-
if (
|
|
2264
|
-
return
|
|
2265
|
-
}, [
|
|
2266
|
-
const
|
|
2247
|
+
}, []), z = Ee(re, f, p.ref, B), [U, se] = c.useState(!1), V = Ke();
|
|
2248
|
+
process.env.NODE_ENV !== "production" && c.useEffect(() => {
|
|
2249
|
+
if (V)
|
|
2250
|
+
return V.registerEffect();
|
|
2251
|
+
}, [V]);
|
|
2252
|
+
const ee = _e({
|
|
2267
2253
|
props: r,
|
|
2268
|
-
muiFormControl:
|
|
2254
|
+
muiFormControl: V,
|
|
2269
2255
|
states: ["color", "disabled", "error", "hiddenLabel", "size", "required", "filled"]
|
|
2270
2256
|
});
|
|
2271
|
-
|
|
2272
|
-
!
|
|
2273
|
-
}, [
|
|
2274
|
-
const
|
|
2275
|
-
ht(
|
|
2276
|
-
}, [
|
|
2257
|
+
ee.focused = V ? V.focused : U, c.useEffect(() => {
|
|
2258
|
+
!V && T && U && (se(!1), L && L());
|
|
2259
|
+
}, [V, T, U, L]);
|
|
2260
|
+
const me = V && V.onFilled, Oe = V && V.onEmpty, ge = c.useCallback((G) => {
|
|
2261
|
+
ht(G) ? me && me() : Oe && Oe();
|
|
2262
|
+
}, [me, Oe]);
|
|
2277
2263
|
He(() => {
|
|
2278
2264
|
ve && ge({
|
|
2279
2265
|
value: fe
|
|
2280
2266
|
});
|
|
2281
2267
|
}, [fe, ge, ve]);
|
|
2282
|
-
const Te = (
|
|
2283
|
-
|
|
2284
|
-
}, he = (
|
|
2285
|
-
|
|
2286
|
-
}, de = (
|
|
2268
|
+
const Te = (G) => {
|
|
2269
|
+
W && W(G), p.onFocus && p.onFocus(G), V && V.onFocus ? V.onFocus(G) : se(!0);
|
|
2270
|
+
}, he = (G) => {
|
|
2271
|
+
L && L(G), p.onBlur && p.onBlur(G), V && V.onBlur ? V.onBlur(G) : se(!1);
|
|
2272
|
+
}, de = (G, ...Be) => {
|
|
2287
2273
|
if (!ve) {
|
|
2288
|
-
const ze =
|
|
2274
|
+
const ze = G.target || re.current;
|
|
2289
2275
|
if (ze == null)
|
|
2290
2276
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info." : Po(1));
|
|
2291
2277
|
ge({
|
|
2292
2278
|
value: ze.value
|
|
2293
2279
|
});
|
|
2294
2280
|
}
|
|
2295
|
-
p.onChange && p.onChange(
|
|
2281
|
+
p.onChange && p.onChange(G, ...Be), D && D(G, ...Be);
|
|
2296
2282
|
};
|
|
2297
|
-
|
|
2298
|
-
ge(
|
|
2283
|
+
c.useEffect(() => {
|
|
2284
|
+
ge(re.current);
|
|
2299
2285
|
}, []);
|
|
2300
|
-
const Ce = (
|
|
2301
|
-
|
|
2286
|
+
const Ce = (G) => {
|
|
2287
|
+
re.current && G.currentTarget === G.target && re.current.focus(), $ && $(G);
|
|
2302
2288
|
};
|
|
2303
2289
|
let Pe = C, pe = p;
|
|
2304
|
-
N && Pe === "input" && (I ? (process.env.NODE_ENV !== "production" && (P ||
|
|
2290
|
+
N && Pe === "input" && (I ? (process.env.NODE_ENV !== "production" && (P || S) && console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."), pe = {
|
|
2305
2291
|
type: void 0,
|
|
2306
2292
|
minRows: I,
|
|
2307
2293
|
maxRows: I,
|
|
2308
2294
|
...pe
|
|
2309
2295
|
}) : pe = {
|
|
2310
2296
|
type: void 0,
|
|
2311
|
-
maxRows:
|
|
2297
|
+
maxRows: S,
|
|
2312
2298
|
minRows: P,
|
|
2313
2299
|
...pe
|
|
2314
2300
|
}, Pe = Ho);
|
|
2315
|
-
const De = (
|
|
2316
|
-
ge(
|
|
2301
|
+
const De = (G) => {
|
|
2302
|
+
ge(G.animationName === "mui-auto-fill-cancel" ? re.current : {
|
|
2317
2303
|
value: "x"
|
|
2318
2304
|
});
|
|
2319
2305
|
};
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
}, [
|
|
2306
|
+
c.useEffect(() => {
|
|
2307
|
+
V && V.setAdornedStart(!!Y);
|
|
2308
|
+
}, [V, Y]);
|
|
2323
2309
|
const Fe = {
|
|
2324
2310
|
...r,
|
|
2325
|
-
color:
|
|
2326
|
-
disabled:
|
|
2311
|
+
color: ee.color || "primary",
|
|
2312
|
+
disabled: ee.disabled,
|
|
2327
2313
|
endAdornment: x,
|
|
2328
|
-
error:
|
|
2329
|
-
focused:
|
|
2330
|
-
formControl:
|
|
2314
|
+
error: ee.error,
|
|
2315
|
+
focused: ee.focused,
|
|
2316
|
+
formControl: V,
|
|
2331
2317
|
fullWidth: y,
|
|
2332
|
-
hiddenLabel:
|
|
2318
|
+
hiddenLabel: ee.hiddenLabel,
|
|
2333
2319
|
multiline: N,
|
|
2334
|
-
size:
|
|
2335
|
-
startAdornment:
|
|
2336
|
-
type:
|
|
2337
|
-
}, lt =
|
|
2320
|
+
size: ee.size,
|
|
2321
|
+
startAdornment: Y,
|
|
2322
|
+
type: X
|
|
2323
|
+
}, lt = Cr(Fe), Ge = ye.root || u.Root || Ot, je = le.root || m.root || {}, Xe = ye.input || u.Input || Ct;
|
|
2338
2324
|
return pe = {
|
|
2339
2325
|
...pe,
|
|
2340
2326
|
...le.input ?? m.input
|
|
2341
|
-
}, /* @__PURE__ */ ce(
|
|
2327
|
+
}, /* @__PURE__ */ ce(c.Fragment, {
|
|
2342
2328
|
children: [!b && typeof bo == "function" && // For Emotion/Styled-components, InputGlobalStyles will be a function
|
|
2343
2329
|
// For Pigment CSS, this has no effect because the InputGlobalStyles will be null.
|
|
2344
2330
|
(mo || (mo = /* @__PURE__ */ v(bo, {}))), /* @__PURE__ */ ce(Ge, {
|
|
2345
2331
|
...je,
|
|
2346
2332
|
ref: n,
|
|
2347
2333
|
onClick: Ce,
|
|
2348
|
-
...
|
|
2349
|
-
|
|
2334
|
+
...be,
|
|
2335
|
+
...!At(Ge) && {
|
|
2350
2336
|
ownerState: {
|
|
2351
2337
|
...Fe,
|
|
2352
2338
|
...je.ownerState
|
|
2353
2339
|
}
|
|
2354
2340
|
},
|
|
2355
|
-
className:
|
|
2356
|
-
children: [
|
|
2341
|
+
className: J(lt.root, je.className, l, M && "MuiInputBase-readOnly"),
|
|
2342
|
+
children: [Y, /* @__PURE__ */ v(Tt.Provider, {
|
|
2357
2343
|
value: null,
|
|
2358
2344
|
children: /* @__PURE__ */ v(Xe, {
|
|
2359
|
-
"aria-invalid":
|
|
2345
|
+
"aria-invalid": ee.error,
|
|
2360
2346
|
"aria-describedby": i,
|
|
2361
2347
|
autoComplete: s,
|
|
2362
2348
|
autoFocus: a,
|
|
2363
2349
|
defaultValue: g,
|
|
2364
|
-
disabled:
|
|
2350
|
+
disabled: ee.disabled,
|
|
2365
2351
|
id: h,
|
|
2366
2352
|
onAnimationStart: De,
|
|
2367
|
-
name:
|
|
2368
|
-
placeholder:
|
|
2369
|
-
readOnly:
|
|
2370
|
-
required:
|
|
2353
|
+
name: A,
|
|
2354
|
+
placeholder: w,
|
|
2355
|
+
readOnly: M,
|
|
2356
|
+
required: ee.required,
|
|
2371
2357
|
rows: I,
|
|
2372
2358
|
value: fe,
|
|
2373
2359
|
onKeyDown: j,
|
|
2374
2360
|
onKeyUp: R,
|
|
2375
|
-
type:
|
|
2361
|
+
type: X,
|
|
2376
2362
|
...pe,
|
|
2377
|
-
|
|
2363
|
+
...!At(Xe) && {
|
|
2378
2364
|
as: Pe,
|
|
2379
2365
|
ownerState: {
|
|
2380
2366
|
...Fe,
|
|
2381
2367
|
...pe.ownerState
|
|
2382
2368
|
}
|
|
2383
2369
|
},
|
|
2384
|
-
ref:
|
|
2385
|
-
className:
|
|
2370
|
+
ref: z,
|
|
2371
|
+
className: J(lt.input, pe.className, M && "MuiInputBase-readOnly"),
|
|
2386
2372
|
onBlur: he,
|
|
2387
2373
|
onChange: de,
|
|
2388
2374
|
onFocus: Te
|
|
2389
2375
|
})
|
|
2390
|
-
}), x,
|
|
2391
|
-
...
|
|
2392
|
-
startAdornment:
|
|
2376
|
+
}), x, H ? H({
|
|
2377
|
+
...ee,
|
|
2378
|
+
startAdornment: Y
|
|
2393
2379
|
}) : null]
|
|
2394
2380
|
})]
|
|
2395
2381
|
});
|
|
@@ -2431,7 +2417,7 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
2431
2417
|
/**
|
|
2432
2418
|
* The components used for each slot inside.
|
|
2433
2419
|
*
|
|
2434
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
2420
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2435
2421
|
*
|
|
2436
2422
|
* @default {}
|
|
2437
2423
|
*/
|
|
@@ -2443,7 +2429,7 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
2443
2429
|
* The extra props for the slot components.
|
|
2444
2430
|
* You can override the existing props or add new ones.
|
|
2445
2431
|
*
|
|
2446
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
2432
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2447
2433
|
*
|
|
2448
2434
|
* @default {}
|
|
2449
2435
|
*/
|
|
@@ -2498,7 +2484,7 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
2498
2484
|
/**
|
|
2499
2485
|
* Pass a ref to the `input` element.
|
|
2500
2486
|
*/
|
|
2501
|
-
inputRef:
|
|
2487
|
+
inputRef: Me,
|
|
2502
2488
|
/**
|
|
2503
2489
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
2504
2490
|
* FormControl.
|
|
@@ -2622,47 +2608,47 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
2622
2608
|
*/
|
|
2623
2609
|
value: e.any
|
|
2624
2610
|
});
|
|
2625
|
-
function
|
|
2626
|
-
return
|
|
2611
|
+
function Rr(t) {
|
|
2612
|
+
return oe("MuiInput", t);
|
|
2627
2613
|
}
|
|
2628
2614
|
const Ze = {
|
|
2629
2615
|
...qe,
|
|
2630
|
-
...
|
|
2616
|
+
...ie("MuiInput", ["root", "underline", "input"])
|
|
2631
2617
|
};
|
|
2632
|
-
function
|
|
2633
|
-
return
|
|
2618
|
+
function Sr(t) {
|
|
2619
|
+
return oe("MuiOutlinedInput", t);
|
|
2634
2620
|
}
|
|
2635
2621
|
const Re = {
|
|
2636
2622
|
...qe,
|
|
2637
|
-
...
|
|
2623
|
+
...ie("MuiOutlinedInput", ["root", "notchedOutline", "input"])
|
|
2638
2624
|
};
|
|
2639
|
-
function
|
|
2640
|
-
return
|
|
2625
|
+
function wr(t) {
|
|
2626
|
+
return oe("MuiFilledInput", t);
|
|
2641
2627
|
}
|
|
2642
|
-
const
|
|
2628
|
+
const $e = {
|
|
2643
2629
|
...qe,
|
|
2644
|
-
...
|
|
2645
|
-
},
|
|
2630
|
+
...ie("MuiFilledInput", ["root", "underline", "input", "adornedStart", "adornedEnd", "sizeSmall", "multiline", "hiddenLabel"])
|
|
2631
|
+
}, Ir = ke(/* @__PURE__ */ v("path", {
|
|
2646
2632
|
d: "M7 10l5 5 5-5z"
|
|
2647
|
-
}), "ArrowDropDown"),
|
|
2633
|
+
}), "ArrowDropDown"), Nr = ke(/* @__PURE__ */ v("path", {
|
|
2648
2634
|
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
2649
2635
|
}), "Person");
|
|
2650
|
-
function
|
|
2651
|
-
return
|
|
2636
|
+
function Pr(t) {
|
|
2637
|
+
return oe("MuiAvatar", t);
|
|
2652
2638
|
}
|
|
2653
|
-
|
|
2639
|
+
ie("MuiAvatar", ["root", "colorDefault", "circular", "rounded", "square", "img", "fallback"]);
|
|
2654
2640
|
const kr = (t) => {
|
|
2655
2641
|
const {
|
|
2656
2642
|
classes: o,
|
|
2657
2643
|
variant: n,
|
|
2658
2644
|
colorDefault: r
|
|
2659
2645
|
} = t;
|
|
2660
|
-
return
|
|
2646
|
+
return Q({
|
|
2661
2647
|
root: ["root", n, r && "colorDefault"],
|
|
2662
2648
|
img: ["img"],
|
|
2663
2649
|
fallback: ["fallback"]
|
|
2664
|
-
},
|
|
2665
|
-
},
|
|
2650
|
+
}, Pr, o);
|
|
2651
|
+
}, Mr = F("div", {
|
|
2666
2652
|
name: "MuiAvatar",
|
|
2667
2653
|
slot: "Root",
|
|
2668
2654
|
overridesResolver: (t, o) => {
|
|
@@ -2717,7 +2703,7 @@ const kr = (t) => {
|
|
|
2717
2703
|
}
|
|
2718
2704
|
}
|
|
2719
2705
|
}]
|
|
2720
|
-
}))),
|
|
2706
|
+
}))), Fr = F("img", {
|
|
2721
2707
|
name: "MuiAvatar",
|
|
2722
2708
|
slot: "Img",
|
|
2723
2709
|
overridesResolver: (t, o) => o.img
|
|
@@ -2731,7 +2717,7 @@ const kr = (t) => {
|
|
|
2731
2717
|
color: "transparent",
|
|
2732
2718
|
// Hide the image broken icon, only works on Chrome.
|
|
2733
2719
|
textIndent: 1e4
|
|
2734
|
-
}),
|
|
2720
|
+
}), jr = F(Nr, {
|
|
2735
2721
|
name: "MuiAvatar",
|
|
2736
2722
|
slot: "Fallback",
|
|
2737
2723
|
overridesResolver: (t, o) => o.fallback
|
|
@@ -2745,8 +2731,8 @@ function $r({
|
|
|
2745
2731
|
src: n,
|
|
2746
2732
|
srcSet: r
|
|
2747
2733
|
}) {
|
|
2748
|
-
const [i, s] =
|
|
2749
|
-
return
|
|
2734
|
+
const [i, s] = c.useState(!1);
|
|
2735
|
+
return c.useEffect(() => {
|
|
2750
2736
|
if (!n && !r)
|
|
2751
2737
|
return;
|
|
2752
2738
|
s(!1);
|
|
@@ -2761,8 +2747,8 @@ function $r({
|
|
|
2761
2747
|
};
|
|
2762
2748
|
}, [t, o, n, r]), i;
|
|
2763
2749
|
}
|
|
2764
|
-
const qo = /* @__PURE__ */
|
|
2765
|
-
const r =
|
|
2750
|
+
const qo = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
2751
|
+
const r = ne({
|
|
2766
2752
|
props: o,
|
|
2767
2753
|
name: "MuiAvatar"
|
|
2768
2754
|
}), {
|
|
@@ -2770,7 +2756,7 @@ const qo = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
2770
2756
|
children: s,
|
|
2771
2757
|
className: a,
|
|
2772
2758
|
component: l = "div",
|
|
2773
|
-
slots:
|
|
2759
|
+
slots: d = {},
|
|
2774
2760
|
slotProps: u = {},
|
|
2775
2761
|
imgProps: m,
|
|
2776
2762
|
sizes: g,
|
|
@@ -2791,11 +2777,11 @@ const qo = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
2791
2777
|
srcSet: b
|
|
2792
2778
|
}), p = T || b, f = p && C !== "error";
|
|
2793
2779
|
h.colorDefault = !f, delete h.ownerState;
|
|
2794
|
-
const E = kr(h), [
|
|
2780
|
+
const E = kr(h), [S, P] = te("img", {
|
|
2795
2781
|
className: E.img,
|
|
2796
|
-
elementType:
|
|
2782
|
+
elementType: Fr,
|
|
2797
2783
|
externalForwardedProps: {
|
|
2798
|
-
slots:
|
|
2784
|
+
slots: d,
|
|
2799
2785
|
slotProps: {
|
|
2800
2786
|
img: {
|
|
2801
2787
|
...m,
|
|
@@ -2811,14 +2797,14 @@ const qo = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
2811
2797
|
},
|
|
2812
2798
|
ownerState: h
|
|
2813
2799
|
});
|
|
2814
|
-
return f ? y = /* @__PURE__ */ v(
|
|
2800
|
+
return f ? y = /* @__PURE__ */ v(S, {
|
|
2815
2801
|
...P
|
|
2816
|
-
}) : s || s === 0 ? y = s : p && i ? y = i[0] : y = /* @__PURE__ */ v(
|
|
2802
|
+
}) : s || s === 0 ? y = s : p && i ? y = i[0] : y = /* @__PURE__ */ v(jr, {
|
|
2817
2803
|
ownerState: h,
|
|
2818
2804
|
className: E.fallback
|
|
2819
|
-
}), /* @__PURE__ */ v(
|
|
2805
|
+
}), /* @__PURE__ */ v(Mr, {
|
|
2820
2806
|
as: l,
|
|
2821
|
-
className:
|
|
2807
|
+
className: J(E.root, a),
|
|
2822
2808
|
ref: n,
|
|
2823
2809
|
...O,
|
|
2824
2810
|
ownerState: h,
|
|
@@ -2856,7 +2842,7 @@ process.env.NODE_ENV !== "production" && (qo.propTypes = {
|
|
|
2856
2842
|
/**
|
|
2857
2843
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
|
2858
2844
|
* It can be used to listen for the loading error event.
|
|
2859
|
-
* @deprecated Use `slotProps.img` instead. This prop will be removed in
|
|
2845
|
+
* @deprecated Use `slotProps.img` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
2860
2846
|
*/
|
|
2861
2847
|
imgProps: e.object,
|
|
2862
2848
|
/**
|
|
@@ -2896,14 +2882,14 @@ process.env.NODE_ENV !== "production" && (qo.propTypes = {
|
|
|
2896
2882
|
*/
|
|
2897
2883
|
variant: e.oneOfType([e.oneOf(["circular", "rounded", "square"]), e.string])
|
|
2898
2884
|
});
|
|
2899
|
-
const
|
|
2885
|
+
const Ar = {
|
|
2900
2886
|
entering: {
|
|
2901
2887
|
opacity: 1
|
|
2902
2888
|
},
|
|
2903
2889
|
entered: {
|
|
2904
2890
|
opacity: 1
|
|
2905
2891
|
}
|
|
2906
|
-
}, _o = /* @__PURE__ */
|
|
2892
|
+
}, _o = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
2907
2893
|
const r = Ht(), i = {
|
|
2908
2894
|
enter: r.transitions.duration.enteringScreen,
|
|
2909
2895
|
exit: r.transitions.duration.leavingScreen
|
|
@@ -2911,7 +2897,7 @@ const Lr = {
|
|
|
2911
2897
|
addEndListener: s,
|
|
2912
2898
|
appear: a = !0,
|
|
2913
2899
|
children: l,
|
|
2914
|
-
easing:
|
|
2900
|
+
easing: d,
|
|
2915
2901
|
in: u,
|
|
2916
2902
|
onEnter: m,
|
|
2917
2903
|
onEntered: g,
|
|
@@ -2924,41 +2910,41 @@ const Lr = {
|
|
|
2924
2910
|
// eslint-disable-next-line react/prop-types
|
|
2925
2911
|
TransitionComponent: C = we,
|
|
2926
2912
|
...p
|
|
2927
|
-
} = o, f =
|
|
2913
|
+
} = o, f = c.useRef(null), E = Ee(f, at(l), n), S = (j) => (R) => {
|
|
2928
2914
|
if (j) {
|
|
2929
|
-
const
|
|
2930
|
-
R === void 0 ? j(
|
|
2915
|
+
const w = f.current;
|
|
2916
|
+
R === void 0 ? j(w) : j(w, R);
|
|
2931
2917
|
}
|
|
2932
|
-
}, P =
|
|
2918
|
+
}, P = S(T), N = S((j, R) => {
|
|
2933
2919
|
Wo(j);
|
|
2934
|
-
const
|
|
2920
|
+
const w = bt({
|
|
2935
2921
|
style: y,
|
|
2936
2922
|
timeout: h,
|
|
2937
|
-
easing:
|
|
2923
|
+
easing: d
|
|
2938
2924
|
}, {
|
|
2939
2925
|
mode: "enter"
|
|
2940
2926
|
});
|
|
2941
|
-
j.style.webkitTransition = r.transitions.create("opacity",
|
|
2942
|
-
}),
|
|
2927
|
+
j.style.webkitTransition = r.transitions.create("opacity", w), j.style.transition = r.transitions.create("opacity", w), m && m(j, R);
|
|
2928
|
+
}), A = S(g), L = S(O), D = S((j) => {
|
|
2943
2929
|
const R = bt({
|
|
2944
2930
|
style: y,
|
|
2945
2931
|
timeout: h,
|
|
2946
|
-
easing:
|
|
2932
|
+
easing: d
|
|
2947
2933
|
}, {
|
|
2948
2934
|
mode: "exit"
|
|
2949
2935
|
});
|
|
2950
2936
|
j.style.webkitTransition = r.transitions.create("opacity", R), j.style.transition = r.transitions.create("opacity", R), b && b(j);
|
|
2951
|
-
}),
|
|
2937
|
+
}), $ = S(x);
|
|
2952
2938
|
return /* @__PURE__ */ v(C, {
|
|
2953
2939
|
appear: a,
|
|
2954
2940
|
in: u,
|
|
2955
2941
|
nodeRef: f,
|
|
2956
2942
|
onEnter: N,
|
|
2957
|
-
onEntered:
|
|
2943
|
+
onEntered: A,
|
|
2958
2944
|
onEntering: P,
|
|
2959
|
-
onExit:
|
|
2960
|
-
onExited:
|
|
2961
|
-
onExiting:
|
|
2945
|
+
onExit: D,
|
|
2946
|
+
onExited: $,
|
|
2947
|
+
onExiting: L,
|
|
2962
2948
|
addEndListener: (j) => {
|
|
2963
2949
|
s && s(f.current, j);
|
|
2964
2950
|
},
|
|
@@ -2966,17 +2952,17 @@ const Lr = {
|
|
|
2966
2952
|
...p,
|
|
2967
2953
|
children: (j, {
|
|
2968
2954
|
ownerState: R,
|
|
2969
|
-
...
|
|
2970
|
-
}) => /* @__PURE__ */
|
|
2955
|
+
...w
|
|
2956
|
+
}) => /* @__PURE__ */ c.cloneElement(l, {
|
|
2971
2957
|
style: {
|
|
2972
2958
|
opacity: 0,
|
|
2973
2959
|
visibility: j === "exited" && !u ? "hidden" : void 0,
|
|
2974
|
-
...
|
|
2960
|
+
...Ar[j],
|
|
2975
2961
|
...y,
|
|
2976
2962
|
...l.props.style
|
|
2977
2963
|
},
|
|
2978
2964
|
ref: E,
|
|
2979
|
-
...
|
|
2965
|
+
...w
|
|
2980
2966
|
})
|
|
2981
2967
|
});
|
|
2982
2968
|
});
|
|
@@ -3055,19 +3041,19 @@ process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
|
3055
3041
|
exit: e.number
|
|
3056
3042
|
})])
|
|
3057
3043
|
});
|
|
3058
|
-
function
|
|
3059
|
-
return
|
|
3044
|
+
function Lr(t) {
|
|
3045
|
+
return oe("MuiBackdrop", t);
|
|
3060
3046
|
}
|
|
3061
|
-
|
|
3062
|
-
const
|
|
3047
|
+
ie("MuiBackdrop", ["root", "invisible"]);
|
|
3048
|
+
const Dr = (t) => {
|
|
3063
3049
|
const {
|
|
3064
3050
|
classes: o,
|
|
3065
3051
|
invisible: n
|
|
3066
3052
|
} = t;
|
|
3067
|
-
return
|
|
3053
|
+
return Q({
|
|
3068
3054
|
root: ["root", n && "invisible"]
|
|
3069
|
-
},
|
|
3070
|
-
},
|
|
3055
|
+
}, Lr, o);
|
|
3056
|
+
}, Br = F("div", {
|
|
3071
3057
|
name: "MuiBackdrop",
|
|
3072
3058
|
slot: "Root",
|
|
3073
3059
|
overridesResolver: (t, o) => {
|
|
@@ -3095,8 +3081,8 @@ const Br = (t) => {
|
|
|
3095
3081
|
backgroundColor: "transparent"
|
|
3096
3082
|
}
|
|
3097
3083
|
}]
|
|
3098
|
-
}), Ko = /* @__PURE__ */
|
|
3099
|
-
const r =
|
|
3084
|
+
}), Ko = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
3085
|
+
const r = ne({
|
|
3100
3086
|
props: o,
|
|
3101
3087
|
name: "MuiBackdrop"
|
|
3102
3088
|
}), {
|
|
@@ -3104,7 +3090,7 @@ const Br = (t) => {
|
|
|
3104
3090
|
className: s,
|
|
3105
3091
|
component: a = "div",
|
|
3106
3092
|
invisible: l = !1,
|
|
3107
|
-
open:
|
|
3093
|
+
open: d,
|
|
3108
3094
|
components: u = {},
|
|
3109
3095
|
componentsProps: m = {},
|
|
3110
3096
|
slotProps: g = {},
|
|
@@ -3116,7 +3102,7 @@ const Br = (t) => {
|
|
|
3116
3102
|
...r,
|
|
3117
3103
|
component: a,
|
|
3118
3104
|
invisible: l
|
|
3119
|
-
}, h =
|
|
3105
|
+
}, h = Dr(y), C = {
|
|
3120
3106
|
transition: b,
|
|
3121
3107
|
root: u.Root,
|
|
3122
3108
|
...T
|
|
@@ -3126,24 +3112,24 @@ const Br = (t) => {
|
|
|
3126
3112
|
}, f = {
|
|
3127
3113
|
slots: C,
|
|
3128
3114
|
slotProps: p
|
|
3129
|
-
}, [E,
|
|
3130
|
-
elementType:
|
|
3115
|
+
}, [E, S] = te("root", {
|
|
3116
|
+
elementType: Br,
|
|
3131
3117
|
externalForwardedProps: f,
|
|
3132
|
-
className:
|
|
3118
|
+
className: J(h.root, s),
|
|
3133
3119
|
ownerState: y
|
|
3134
|
-
}), [P, N] =
|
|
3120
|
+
}), [P, N] = te("transition", {
|
|
3135
3121
|
elementType: _o,
|
|
3136
3122
|
externalForwardedProps: f,
|
|
3137
3123
|
ownerState: y
|
|
3138
3124
|
});
|
|
3139
3125
|
return /* @__PURE__ */ v(P, {
|
|
3140
|
-
in:
|
|
3126
|
+
in: d,
|
|
3141
3127
|
timeout: x,
|
|
3142
3128
|
...O,
|
|
3143
3129
|
...N,
|
|
3144
3130
|
children: /* @__PURE__ */ v(E, {
|
|
3145
3131
|
"aria-hidden": !0,
|
|
3146
|
-
...
|
|
3132
|
+
...S,
|
|
3147
3133
|
classes: h,
|
|
3148
3134
|
ref: n,
|
|
3149
3135
|
children: i
|
|
@@ -3175,7 +3161,7 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
|
3175
3161
|
/**
|
|
3176
3162
|
* The components used for each slot inside.
|
|
3177
3163
|
*
|
|
3178
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
3164
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
3179
3165
|
*
|
|
3180
3166
|
* @default {}
|
|
3181
3167
|
*/
|
|
@@ -3186,7 +3172,7 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
|
3186
3172
|
* The extra props for the slot components.
|
|
3187
3173
|
* You can override the existing props or add new ones.
|
|
3188
3174
|
*
|
|
3189
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
3175
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
3190
3176
|
*
|
|
3191
3177
|
* @default {}
|
|
3192
3178
|
*/
|
|
@@ -3227,7 +3213,7 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
|
3227
3213
|
* The component used for the transition.
|
|
3228
3214
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
3229
3215
|
* @default Fade
|
|
3230
|
-
* @deprecated Use `slots.transition` instead. This prop will be removed in
|
|
3216
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
3231
3217
|
*/
|
|
3232
3218
|
TransitionComponent: e.elementType,
|
|
3233
3219
|
/**
|
|
@@ -3251,7 +3237,7 @@ const Go = qn({
|
|
|
3251
3237
|
return [o.root, o[`maxWidth${K(String(n.maxWidth))}`], n.fixed && o.fixed, n.disableGutters && o.disableGutters];
|
|
3252
3238
|
}
|
|
3253
3239
|
}),
|
|
3254
|
-
useThemeProps: (t) =>
|
|
3240
|
+
useThemeProps: (t) => ne({
|
|
3255
3241
|
props: t,
|
|
3256
3242
|
name: "MuiContainer"
|
|
3257
3243
|
})
|
|
@@ -3299,7 +3285,7 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
|
|
|
3299
3285
|
*/
|
|
3300
3286
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
3301
3287
|
});
|
|
3302
|
-
const Lt = typeof qt({}) == "function",
|
|
3288
|
+
const Lt = typeof qt({}) == "function", zr = (t, o) => ({
|
|
3303
3289
|
WebkitFontSmoothing: "antialiased",
|
|
3304
3290
|
// Antialiasing.
|
|
3305
3291
|
MozOsxFontSmoothing: "grayscale",
|
|
@@ -3313,7 +3299,7 @@ const Lt = typeof qt({}) == "function", Wr = (t, o) => ({
|
|
|
3313
3299
|
...o && !t.vars && {
|
|
3314
3300
|
colorScheme: t.palette.mode
|
|
3315
3301
|
}
|
|
3316
|
-
}),
|
|
3302
|
+
}), Wr = (t) => ({
|
|
3317
3303
|
color: (t.vars || t).palette.text.primary,
|
|
3318
3304
|
...t.typography.body1,
|
|
3319
3305
|
backgroundColor: (t.vars || t).palette.background.default,
|
|
@@ -3324,19 +3310,19 @@ const Lt = typeof qt({}) == "function", Wr = (t, o) => ({
|
|
|
3324
3310
|
}), Xo = (t, o = !1) => {
|
|
3325
3311
|
var s, a;
|
|
3326
3312
|
const n = {};
|
|
3327
|
-
o && t.colorSchemes && typeof t.getColorSchemeSelector == "function" && Object.entries(t.colorSchemes).forEach(([l,
|
|
3313
|
+
o && t.colorSchemes && typeof t.getColorSchemeSelector == "function" && Object.entries(t.colorSchemes).forEach(([l, d]) => {
|
|
3328
3314
|
var m, g;
|
|
3329
3315
|
const u = t.getColorSchemeSelector(l);
|
|
3330
3316
|
u.startsWith("@") ? n[u] = {
|
|
3331
3317
|
":root": {
|
|
3332
|
-
colorScheme: (m =
|
|
3318
|
+
colorScheme: (m = d.palette) == null ? void 0 : m.mode
|
|
3333
3319
|
}
|
|
3334
3320
|
} : n[u.replace(/\s*&/, "")] = {
|
|
3335
|
-
colorScheme: (g =
|
|
3321
|
+
colorScheme: (g = d.palette) == null ? void 0 : g.mode
|
|
3336
3322
|
};
|
|
3337
3323
|
});
|
|
3338
3324
|
let r = {
|
|
3339
|
-
html:
|
|
3325
|
+
html: zr(t, o),
|
|
3340
3326
|
"*, *::before, *::after": {
|
|
3341
3327
|
boxSizing: "inherit"
|
|
3342
3328
|
},
|
|
@@ -3346,7 +3332,7 @@ const Lt = typeof qt({}) == "function", Wr = (t, o) => ({
|
|
|
3346
3332
|
body: {
|
|
3347
3333
|
margin: 0,
|
|
3348
3334
|
// Remove the margin in all browsers.
|
|
3349
|
-
...
|
|
3335
|
+
...Wr(t),
|
|
3350
3336
|
// Add support for document.body.requestFullScreen().
|
|
3351
3337
|
// Other elements, if background transparent, are not supported.
|
|
3352
3338
|
"&::backdrop": {
|
|
@@ -3357,7 +3343,7 @@ const Lt = typeof qt({}) == "function", Wr = (t, o) => ({
|
|
|
3357
3343
|
};
|
|
3358
3344
|
const i = (a = (s = t.components) == null ? void 0 : s.MuiCssBaseline) == null ? void 0 : a.styleOverrides;
|
|
3359
3345
|
return i && (r = [r, i]), r;
|
|
3360
|
-
}, ft = "mui-ecs",
|
|
3346
|
+
}, ft = "mui-ecs", Ur = (t) => {
|
|
3361
3347
|
const o = Xo(t, !1), n = Array.isArray(o) ? o[0] : o;
|
|
3362
3348
|
return !t.vars && n && (n.html[`:root:has(${ft})`] = {
|
|
3363
3349
|
colorScheme: t.palette.mode
|
|
@@ -3374,22 +3360,22 @@ const Lt = typeof qt({}) == "function", Wr = (t, o) => ({
|
|
|
3374
3360
|
}
|
|
3375
3361
|
};
|
|
3376
3362
|
}), o;
|
|
3377
|
-
},
|
|
3363
|
+
}, Vr = qt(Lt ? ({
|
|
3378
3364
|
theme: t,
|
|
3379
3365
|
enableColorScheme: o
|
|
3380
3366
|
}) => Xo(t, o) : ({
|
|
3381
3367
|
theme: t
|
|
3382
|
-
}) =>
|
|
3368
|
+
}) => Ur(t));
|
|
3383
3369
|
function Yo(t) {
|
|
3384
|
-
const o =
|
|
3370
|
+
const o = ne({
|
|
3385
3371
|
props: t,
|
|
3386
3372
|
name: "MuiCssBaseline"
|
|
3387
3373
|
}), {
|
|
3388
3374
|
children: n,
|
|
3389
3375
|
enableColorScheme: r = !1
|
|
3390
3376
|
} = o;
|
|
3391
|
-
return /* @__PURE__ */ ce(
|
|
3392
|
-
children: [Lt && /* @__PURE__ */ v(
|
|
3377
|
+
return /* @__PURE__ */ ce(c.Fragment, {
|
|
3378
|
+
children: [Lt && /* @__PURE__ */ v(Vr, {
|
|
3393
3379
|
enableColorScheme: r
|
|
3394
3380
|
}), !Lt && !r && /* @__PURE__ */ v("span", {
|
|
3395
3381
|
className: ft,
|
|
@@ -3416,7 +3402,7 @@ process.env.NODE_ENV !== "production" && (Yo.propTypes = {
|
|
|
3416
3402
|
*/
|
|
3417
3403
|
enableColorScheme: e.bool
|
|
3418
3404
|
});
|
|
3419
|
-
function
|
|
3405
|
+
function Hr(t) {
|
|
3420
3406
|
const o = xe(t);
|
|
3421
3407
|
return o.body === t ? Ie(t).innerWidth > o.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
3422
3408
|
}
|
|
@@ -3426,25 +3412,25 @@ function ot(t, o) {
|
|
|
3426
3412
|
function go(t) {
|
|
3427
3413
|
return parseInt(Ie(t).getComputedStyle(t).paddingRight, 10) || 0;
|
|
3428
3414
|
}
|
|
3429
|
-
function
|
|
3415
|
+
function qr(t) {
|
|
3430
3416
|
const n = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), r = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
|
|
3431
3417
|
return n || r;
|
|
3432
3418
|
}
|
|
3433
3419
|
function ho(t, o, n, r, i) {
|
|
3434
3420
|
const s = [o, n, ...r];
|
|
3435
3421
|
[].forEach.call(t.children, (a) => {
|
|
3436
|
-
const l = !s.includes(a),
|
|
3437
|
-
l &&
|
|
3422
|
+
const l = !s.includes(a), d = !qr(a);
|
|
3423
|
+
l && d && ot(a, i);
|
|
3438
3424
|
});
|
|
3439
3425
|
}
|
|
3440
3426
|
function Pt(t, o) {
|
|
3441
3427
|
let n = -1;
|
|
3442
3428
|
return t.some((r, i) => o(r) ? (n = i, !0) : !1), n;
|
|
3443
3429
|
}
|
|
3444
|
-
function
|
|
3430
|
+
function _r(t, o) {
|
|
3445
3431
|
const n = [], r = t.container;
|
|
3446
3432
|
if (!o.disableScrollLock) {
|
|
3447
|
-
if (
|
|
3433
|
+
if (Hr(r)) {
|
|
3448
3434
|
const a = Lo(Ie(r));
|
|
3449
3435
|
n.push({
|
|
3450
3436
|
value: r.style.paddingRight,
|
|
@@ -3452,12 +3438,12 @@ function Kr(t, o) {
|
|
|
3452
3438
|
el: r
|
|
3453
3439
|
}), r.style.paddingRight = `${go(r) + a}px`;
|
|
3454
3440
|
const l = xe(r).querySelectorAll(".mui-fixed");
|
|
3455
|
-
[].forEach.call(l, (
|
|
3441
|
+
[].forEach.call(l, (d) => {
|
|
3456
3442
|
n.push({
|
|
3457
|
-
value:
|
|
3443
|
+
value: d.style.paddingRight,
|
|
3458
3444
|
property: "padding-right",
|
|
3459
|
-
el:
|
|
3460
|
-
}),
|
|
3445
|
+
el: d
|
|
3446
|
+
}), d.style.paddingRight = `${go(d) + a}px`;
|
|
3461
3447
|
});
|
|
3462
3448
|
}
|
|
3463
3449
|
let s;
|
|
@@ -3491,13 +3477,13 @@ function Kr(t, o) {
|
|
|
3491
3477
|
});
|
|
3492
3478
|
};
|
|
3493
3479
|
}
|
|
3494
|
-
function
|
|
3480
|
+
function Kr(t) {
|
|
3495
3481
|
const o = [];
|
|
3496
3482
|
return [].forEach.call(t.children, (n) => {
|
|
3497
3483
|
n.getAttribute("aria-hidden") === "true" && o.push(n);
|
|
3498
3484
|
}), o;
|
|
3499
3485
|
}
|
|
3500
|
-
class
|
|
3486
|
+
class Gr {
|
|
3501
3487
|
constructor() {
|
|
3502
3488
|
this.modals = [], this.containers = [];
|
|
3503
3489
|
}
|
|
@@ -3506,7 +3492,7 @@ class Xr {
|
|
|
3506
3492
|
if (r !== -1)
|
|
3507
3493
|
return r;
|
|
3508
3494
|
r = this.modals.length, this.modals.push(o), o.modalRef && ot(o.modalRef, !1);
|
|
3509
|
-
const i =
|
|
3495
|
+
const i = Kr(n);
|
|
3510
3496
|
ho(n, o.mount, o.modalRef, i, !0);
|
|
3511
3497
|
const s = Pt(this.containers, (a) => a.container === n);
|
|
3512
3498
|
return s !== -1 ? (this.containers[s].modals.push(o), r) : (this.containers.push({
|
|
@@ -3518,7 +3504,7 @@ class Xr {
|
|
|
3518
3504
|
}
|
|
3519
3505
|
mount(o, n) {
|
|
3520
3506
|
const r = Pt(this.containers, (s) => s.modals.includes(o)), i = this.containers[r];
|
|
3521
|
-
i.restore || (i.restore =
|
|
3507
|
+
i.restore || (i.restore = _r(i, n));
|
|
3522
3508
|
}
|
|
3523
3509
|
remove(o, n = !0) {
|
|
3524
3510
|
const r = this.modals.indexOf(o);
|
|
@@ -3537,33 +3523,33 @@ class Xr {
|
|
|
3537
3523
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === o;
|
|
3538
3524
|
}
|
|
3539
3525
|
}
|
|
3540
|
-
const
|
|
3541
|
-
function
|
|
3526
|
+
const Xr = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
3527
|
+
function Yr(t) {
|
|
3542
3528
|
const o = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
3543
3529
|
return Number.isNaN(o) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : o;
|
|
3544
3530
|
}
|
|
3545
|
-
function
|
|
3531
|
+
function Zr(t) {
|
|
3546
3532
|
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
3547
3533
|
return !1;
|
|
3548
3534
|
const o = (r) => t.ownerDocument.querySelector(`input[type="radio"]${r}`);
|
|
3549
3535
|
let n = o(`[name="${t.name}"]:checked`);
|
|
3550
3536
|
return n || (n = o(`[name="${t.name}"]`)), n !== t;
|
|
3551
3537
|
}
|
|
3552
|
-
function
|
|
3553
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" ||
|
|
3538
|
+
function Jr(t) {
|
|
3539
|
+
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || Zr(t));
|
|
3554
3540
|
}
|
|
3555
|
-
function
|
|
3541
|
+
function Qr(t) {
|
|
3556
3542
|
const o = [], n = [];
|
|
3557
|
-
return Array.from(t.querySelectorAll(
|
|
3558
|
-
const s =
|
|
3559
|
-
s === -1 || !
|
|
3543
|
+
return Array.from(t.querySelectorAll(Xr)).forEach((r, i) => {
|
|
3544
|
+
const s = Yr(r);
|
|
3545
|
+
s === -1 || !Jr(r) || (s === 0 ? o.push(r) : n.push({
|
|
3560
3546
|
documentOrder: i,
|
|
3561
3547
|
tabIndex: s,
|
|
3562
3548
|
node: r
|
|
3563
3549
|
}));
|
|
3564
3550
|
}), n.sort((r, i) => r.tabIndex === i.tabIndex ? r.documentOrder - i.documentOrder : r.tabIndex - i.tabIndex).map((r) => r.node).concat(o);
|
|
3565
3551
|
}
|
|
3566
|
-
function
|
|
3552
|
+
function es() {
|
|
3567
3553
|
return !0;
|
|
3568
3554
|
}
|
|
3569
3555
|
function yt(t) {
|
|
@@ -3572,32 +3558,32 @@ function yt(t) {
|
|
|
3572
3558
|
disableAutoFocus: n = !1,
|
|
3573
3559
|
disableEnforceFocus: r = !1,
|
|
3574
3560
|
disableRestoreFocus: i = !1,
|
|
3575
|
-
getTabbable: s =
|
|
3576
|
-
isEnabled: a =
|
|
3561
|
+
getTabbable: s = Qr,
|
|
3562
|
+
isEnabled: a = es,
|
|
3577
3563
|
open: l
|
|
3578
|
-
} = t,
|
|
3579
|
-
|
|
3564
|
+
} = t, d = c.useRef(!1), u = c.useRef(null), m = c.useRef(null), g = c.useRef(null), T = c.useRef(null), b = c.useRef(!1), x = c.useRef(null), O = Ee(at(o), x), y = c.useRef(null);
|
|
3565
|
+
c.useEffect(() => {
|
|
3580
3566
|
!l || !x.current || (b.current = !n);
|
|
3581
|
-
}, [n, l]),
|
|
3567
|
+
}, [n, l]), c.useEffect(() => {
|
|
3582
3568
|
if (!l || !x.current)
|
|
3583
3569
|
return;
|
|
3584
3570
|
const p = xe(x.current);
|
|
3585
3571
|
return x.current.contains(p.activeElement) || (x.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
3586
3572
|
`)), x.current.setAttribute("tabIndex", "-1")), b.current && x.current.focus()), () => {
|
|
3587
|
-
i || (g.current && g.current.focus && (
|
|
3573
|
+
i || (g.current && g.current.focus && (d.current = !0, g.current.focus()), g.current = null);
|
|
3588
3574
|
};
|
|
3589
|
-
}, [l]),
|
|
3575
|
+
}, [l]), c.useEffect(() => {
|
|
3590
3576
|
if (!l || !x.current)
|
|
3591
3577
|
return;
|
|
3592
3578
|
const p = xe(x.current), f = (P) => {
|
|
3593
|
-
y.current = P, !(r || !a() || P.key !== "Tab") && p.activeElement === x.current && P.shiftKey && (
|
|
3579
|
+
y.current = P, !(r || !a() || P.key !== "Tab") && p.activeElement === x.current && P.shiftKey && (d.current = !0, m.current && m.current.focus());
|
|
3594
3580
|
}, E = () => {
|
|
3595
|
-
var
|
|
3581
|
+
var A, L;
|
|
3596
3582
|
const P = x.current;
|
|
3597
3583
|
if (P === null)
|
|
3598
3584
|
return;
|
|
3599
|
-
if (!p.hasFocus() || !a() ||
|
|
3600
|
-
|
|
3585
|
+
if (!p.hasFocus() || !a() || d.current) {
|
|
3586
|
+
d.current = !1;
|
|
3601
3587
|
return;
|
|
3602
3588
|
}
|
|
3603
3589
|
if (P.contains(p.activeElement) || r && p.activeElement !== u.current && p.activeElement !== m.current)
|
|
@@ -3610,17 +3596,17 @@ function yt(t) {
|
|
|
3610
3596
|
return;
|
|
3611
3597
|
let N = [];
|
|
3612
3598
|
if ((p.activeElement === u.current || p.activeElement === m.current) && (N = s(x.current)), N.length > 0) {
|
|
3613
|
-
const
|
|
3614
|
-
typeof
|
|
3599
|
+
const D = !!((A = y.current) != null && A.shiftKey && ((L = y.current) == null ? void 0 : L.key) === "Tab"), $ = N[0], W = N[N.length - 1];
|
|
3600
|
+
typeof $ != "string" && typeof W != "string" && (D ? W.focus() : $.focus());
|
|
3615
3601
|
} else
|
|
3616
3602
|
P.focus();
|
|
3617
3603
|
};
|
|
3618
3604
|
p.addEventListener("focusin", E), p.addEventListener("keydown", f, !0);
|
|
3619
|
-
const
|
|
3605
|
+
const S = setInterval(() => {
|
|
3620
3606
|
p.activeElement && p.activeElement.tagName === "BODY" && E();
|
|
3621
3607
|
}, 50);
|
|
3622
3608
|
return () => {
|
|
3623
|
-
clearInterval(
|
|
3609
|
+
clearInterval(S), p.removeEventListener("focusin", E), p.removeEventListener("keydown", f, !0);
|
|
3624
3610
|
};
|
|
3625
3611
|
}, [n, r, i, a, l, s]);
|
|
3626
3612
|
const h = (p) => {
|
|
@@ -3630,13 +3616,13 @@ function yt(t) {
|
|
|
3630
3616
|
}, C = (p) => {
|
|
3631
3617
|
g.current === null && (g.current = p.relatedTarget), b.current = !0;
|
|
3632
3618
|
};
|
|
3633
|
-
return /* @__PURE__ */ ce(
|
|
3619
|
+
return /* @__PURE__ */ ce(c.Fragment, {
|
|
3634
3620
|
children: [/* @__PURE__ */ v("div", {
|
|
3635
3621
|
tabIndex: l ? 0 : -1,
|
|
3636
3622
|
onFocus: C,
|
|
3637
3623
|
ref: u,
|
|
3638
3624
|
"data-testid": "sentinelStart"
|
|
3639
|
-
}), /* @__PURE__ */
|
|
3625
|
+
}), /* @__PURE__ */ c.cloneElement(o, {
|
|
3640
3626
|
ref: O,
|
|
3641
3627
|
onFocus: h
|
|
3642
3628
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -3701,16 +3687,16 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
3701
3687
|
*/
|
|
3702
3688
|
open: e.bool.isRequired
|
|
3703
3689
|
});
|
|
3704
|
-
process.env.NODE_ENV !== "production" && (yt.propTypes =
|
|
3705
|
-
function
|
|
3690
|
+
process.env.NODE_ENV !== "production" && (yt.propTypes = $o(yt.propTypes));
|
|
3691
|
+
function ts(t) {
|
|
3706
3692
|
return typeof t == "function" ? t() : t;
|
|
3707
3693
|
}
|
|
3708
|
-
function
|
|
3694
|
+
function os(t) {
|
|
3709
3695
|
return t ? t.props.hasOwnProperty("in") : !1;
|
|
3710
3696
|
}
|
|
3711
3697
|
const yo = () => {
|
|
3712
|
-
}, ut = new
|
|
3713
|
-
function
|
|
3698
|
+
}, ut = new Gr();
|
|
3699
|
+
function ns(t) {
|
|
3714
3700
|
const {
|
|
3715
3701
|
container: o,
|
|
3716
3702
|
disableEscapeKeyDown: n = !1,
|
|
@@ -3719,43 +3705,43 @@ function rs(t) {
|
|
|
3719
3705
|
onTransitionEnter: s,
|
|
3720
3706
|
onTransitionExited: a,
|
|
3721
3707
|
children: l,
|
|
3722
|
-
onClose:
|
|
3708
|
+
onClose: d,
|
|
3723
3709
|
open: u,
|
|
3724
3710
|
rootRef: m
|
|
3725
|
-
} = t, g =
|
|
3711
|
+
} = t, g = c.useRef({}), T = c.useRef(null), b = c.useRef(null), x = Ee(b, m), [O, y] = c.useState(!u), h = os(l);
|
|
3726
3712
|
let C = !0;
|
|
3727
3713
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (C = !1);
|
|
3728
3714
|
const p = () => xe(T.current), f = () => (g.current.modalRef = b.current, g.current.mount = T.current, g.current), E = () => {
|
|
3729
3715
|
ut.mount(f(), {
|
|
3730
3716
|
disableScrollLock: r
|
|
3731
3717
|
}), b.current && (b.current.scrollTop = 0);
|
|
3732
|
-
},
|
|
3733
|
-
const R =
|
|
3718
|
+
}, S = Ft(() => {
|
|
3719
|
+
const R = ts(o) || p().body;
|
|
3734
3720
|
ut.add(f(), R), b.current && E();
|
|
3735
3721
|
}), P = () => ut.isTopModal(f()), N = Ft((R) => {
|
|
3736
3722
|
T.current = R, R && (u && P() ? E() : b.current && ot(b.current, C));
|
|
3737
|
-
}),
|
|
3723
|
+
}), A = c.useCallback(() => {
|
|
3738
3724
|
ut.remove(f(), C);
|
|
3739
3725
|
}, [C]);
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
}, [
|
|
3743
|
-
u ?
|
|
3744
|
-
}, [u,
|
|
3745
|
-
const
|
|
3746
|
-
var
|
|
3747
|
-
(
|
|
3748
|
-
!P()) && (n || (
|
|
3749
|
-
},
|
|
3750
|
-
var
|
|
3751
|
-
(
|
|
3726
|
+
c.useEffect(() => () => {
|
|
3727
|
+
A();
|
|
3728
|
+
}, [A]), c.useEffect(() => {
|
|
3729
|
+
u ? S() : (!h || !i) && A();
|
|
3730
|
+
}, [u, A, h, i, S]);
|
|
3731
|
+
const L = (R) => (w) => {
|
|
3732
|
+
var M;
|
|
3733
|
+
(M = R.onKeyDown) == null || M.call(R, w), !(w.key !== "Escape" || w.which === 229 || // Wait until IME is settled.
|
|
3734
|
+
!P()) && (n || (w.stopPropagation(), d && d(w, "escapeKeyDown")));
|
|
3735
|
+
}, D = (R) => (w) => {
|
|
3736
|
+
var M;
|
|
3737
|
+
(M = R.onClick) == null || M.call(R, w), w.target === w.currentTarget && d && d(w, "backdropClick");
|
|
3752
3738
|
};
|
|
3753
3739
|
return {
|
|
3754
3740
|
getRootProps: (R = {}) => {
|
|
3755
|
-
const
|
|
3756
|
-
delete
|
|
3757
|
-
const
|
|
3758
|
-
...
|
|
3741
|
+
const w = Rn(t);
|
|
3742
|
+
delete w.onTransitionEnter, delete w.onTransitionExited;
|
|
3743
|
+
const M = {
|
|
3744
|
+
...w,
|
|
3759
3745
|
...R
|
|
3760
3746
|
};
|
|
3761
3747
|
return {
|
|
@@ -3766,29 +3752,29 @@ function rs(t) {
|
|
|
3766
3752
|
* https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
|
|
3767
3753
|
*/
|
|
3768
3754
|
role: "presentation",
|
|
3769
|
-
...
|
|
3770
|
-
onKeyDown:
|
|
3755
|
+
...M,
|
|
3756
|
+
onKeyDown: L(M),
|
|
3771
3757
|
ref: x
|
|
3772
3758
|
};
|
|
3773
3759
|
},
|
|
3774
3760
|
getBackdropProps: (R = {}) => {
|
|
3775
|
-
const
|
|
3761
|
+
const w = R;
|
|
3776
3762
|
return {
|
|
3777
3763
|
"aria-hidden": !0,
|
|
3778
|
-
...
|
|
3779
|
-
onClick:
|
|
3764
|
+
...w,
|
|
3765
|
+
onClick: D(w),
|
|
3780
3766
|
open: u
|
|
3781
3767
|
};
|
|
3782
3768
|
},
|
|
3783
3769
|
getTransitionProps: () => {
|
|
3784
3770
|
const R = () => {
|
|
3785
3771
|
y(!1), s && s();
|
|
3786
|
-
},
|
|
3787
|
-
y(!0), a && a(), i &&
|
|
3772
|
+
}, w = () => {
|
|
3773
|
+
y(!0), a && a(), i && A();
|
|
3788
3774
|
};
|
|
3789
3775
|
return {
|
|
3790
3776
|
onEnter: ro(R, (l == null ? void 0 : l.props.onEnter) ?? yo),
|
|
3791
|
-
onExited: ro(
|
|
3777
|
+
onExited: ro(w, (l == null ? void 0 : l.props.onExited) ?? yo)
|
|
3792
3778
|
};
|
|
3793
3779
|
},
|
|
3794
3780
|
rootRef: x,
|
|
@@ -3798,21 +3784,21 @@ function rs(t) {
|
|
|
3798
3784
|
hasTransition: h
|
|
3799
3785
|
};
|
|
3800
3786
|
}
|
|
3801
|
-
function
|
|
3802
|
-
return
|
|
3787
|
+
function rs(t) {
|
|
3788
|
+
return oe("MuiModal", t);
|
|
3803
3789
|
}
|
|
3804
|
-
|
|
3805
|
-
const
|
|
3790
|
+
ie("MuiModal", ["root", "hidden", "backdrop"]);
|
|
3791
|
+
const ss = (t) => {
|
|
3806
3792
|
const {
|
|
3807
3793
|
open: o,
|
|
3808
3794
|
exited: n,
|
|
3809
3795
|
classes: r
|
|
3810
3796
|
} = t;
|
|
3811
|
-
return
|
|
3797
|
+
return Q({
|
|
3812
3798
|
root: ["root", !o && n && "hidden"],
|
|
3813
3799
|
backdrop: ["backdrop"]
|
|
3814
|
-
},
|
|
3815
|
-
},
|
|
3800
|
+
}, rs, r);
|
|
3801
|
+
}, is = F("div", {
|
|
3816
3802
|
name: "MuiModal",
|
|
3817
3803
|
slot: "Root",
|
|
3818
3804
|
overridesResolver: (t, o) => {
|
|
@@ -3838,22 +3824,22 @@ const is = (t) => {
|
|
|
3838
3824
|
visibility: "hidden"
|
|
3839
3825
|
}
|
|
3840
3826
|
}]
|
|
3841
|
-
}))),
|
|
3827
|
+
}))), as = F(Ko, {
|
|
3842
3828
|
name: "MuiModal",
|
|
3843
3829
|
slot: "Backdrop",
|
|
3844
3830
|
overridesResolver: (t, o) => o.backdrop
|
|
3845
3831
|
})({
|
|
3846
3832
|
zIndex: -1
|
|
3847
|
-
}), Zo = /* @__PURE__ */
|
|
3848
|
-
const r =
|
|
3833
|
+
}), Zo = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
3834
|
+
const r = ne({
|
|
3849
3835
|
name: "MuiModal",
|
|
3850
3836
|
props: o
|
|
3851
3837
|
}), {
|
|
3852
|
-
BackdropComponent: i =
|
|
3838
|
+
BackdropComponent: i = as,
|
|
3853
3839
|
BackdropProps: s,
|
|
3854
3840
|
classes: a,
|
|
3855
3841
|
className: l,
|
|
3856
|
-
closeAfterTransition:
|
|
3842
|
+
closeAfterTransition: d = !1,
|
|
3857
3843
|
children: u,
|
|
3858
3844
|
container: m,
|
|
3859
3845
|
component: g,
|
|
@@ -3867,18 +3853,19 @@ const is = (t) => {
|
|
|
3867
3853
|
disableScrollLock: p = !1,
|
|
3868
3854
|
hideBackdrop: f = !1,
|
|
3869
3855
|
keepMounted: E = !1,
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3856
|
+
onBackdropClick: S,
|
|
3857
|
+
onClose: P,
|
|
3858
|
+
onTransitionEnter: N,
|
|
3859
|
+
onTransitionExited: A,
|
|
3860
|
+
open: L,
|
|
3874
3861
|
slotProps: D = {},
|
|
3875
|
-
slots:
|
|
3862
|
+
slots: $ = {},
|
|
3876
3863
|
// eslint-disable-next-line react/prop-types
|
|
3877
|
-
theme:
|
|
3878
|
-
...
|
|
3879
|
-
} = r,
|
|
3864
|
+
theme: W,
|
|
3865
|
+
...j
|
|
3866
|
+
} = r, R = {
|
|
3880
3867
|
...r,
|
|
3881
|
-
closeAfterTransition:
|
|
3868
|
+
closeAfterTransition: d,
|
|
3882
3869
|
disableAutoFocus: x,
|
|
3883
3870
|
disableEnforceFocus: O,
|
|
3884
3871
|
disableEscapeKeyDown: y,
|
|
@@ -3888,78 +3875,78 @@ const is = (t) => {
|
|
|
3888
3875
|
hideBackdrop: f,
|
|
3889
3876
|
keepMounted: E
|
|
3890
3877
|
}, {
|
|
3891
|
-
getRootProps:
|
|
3892
|
-
getBackdropProps:
|
|
3893
|
-
getTransitionProps:
|
|
3894
|
-
portalRef:
|
|
3895
|
-
isTopModal:
|
|
3896
|
-
exited:
|
|
3897
|
-
hasTransition:
|
|
3898
|
-
} =
|
|
3899
|
-
...
|
|
3878
|
+
getRootProps: w,
|
|
3879
|
+
getBackdropProps: M,
|
|
3880
|
+
getTransitionProps: H,
|
|
3881
|
+
portalRef: I,
|
|
3882
|
+
isTopModal: _,
|
|
3883
|
+
exited: le,
|
|
3884
|
+
hasTransition: ye
|
|
3885
|
+
} = ns({
|
|
3886
|
+
...R,
|
|
3900
3887
|
rootRef: n
|
|
3901
|
-
}),
|
|
3902
|
-
...
|
|
3903
|
-
exited:
|
|
3904
|
-
},
|
|
3905
|
-
if (u.props.tabIndex === void 0 && (
|
|
3888
|
+
}), Y = {
|
|
3889
|
+
...R,
|
|
3890
|
+
exited: le
|
|
3891
|
+
}, X = ss(Y), Z = {};
|
|
3892
|
+
if (u.props.tabIndex === void 0 && (Z.tabIndex = "-1"), ye) {
|
|
3906
3893
|
const {
|
|
3907
|
-
onEnter:
|
|
3908
|
-
onExited:
|
|
3909
|
-
} =
|
|
3910
|
-
|
|
3894
|
+
onEnter: z,
|
|
3895
|
+
onExited: U
|
|
3896
|
+
} = H();
|
|
3897
|
+
Z.onEnter = z, Z.onExited = U;
|
|
3911
3898
|
}
|
|
3912
|
-
const
|
|
3899
|
+
const be = {
|
|
3913
3900
|
slots: {
|
|
3914
3901
|
root: T.Root,
|
|
3915
3902
|
backdrop: T.Backdrop,
|
|
3916
|
-
|
|
3903
|
+
...$
|
|
3917
3904
|
},
|
|
3918
3905
|
slotProps: {
|
|
3919
3906
|
...b,
|
|
3920
3907
|
...D
|
|
3921
3908
|
}
|
|
3922
|
-
}, [
|
|
3909
|
+
}, [fe, ve] = te("root", {
|
|
3923
3910
|
ref: n,
|
|
3924
|
-
elementType:
|
|
3911
|
+
elementType: is,
|
|
3925
3912
|
externalForwardedProps: {
|
|
3926
|
-
...
|
|
3927
|
-
...
|
|
3913
|
+
...be,
|
|
3914
|
+
...j,
|
|
3928
3915
|
component: g
|
|
3929
3916
|
},
|
|
3930
|
-
getSlotProps:
|
|
3931
|
-
ownerState:
|
|
3932
|
-
className:
|
|
3933
|
-
}), [
|
|
3917
|
+
getSlotProps: w,
|
|
3918
|
+
ownerState: Y,
|
|
3919
|
+
className: J(l, X == null ? void 0 : X.root, !Y.open && Y.exited && (X == null ? void 0 : X.hidden))
|
|
3920
|
+
}), [re, B] = te("backdrop", {
|
|
3934
3921
|
ref: s == null ? void 0 : s.ref,
|
|
3935
3922
|
elementType: i,
|
|
3936
|
-
externalForwardedProps:
|
|
3923
|
+
externalForwardedProps: be,
|
|
3937
3924
|
shouldForwardComponentProp: !0,
|
|
3938
3925
|
additionalProps: s,
|
|
3939
|
-
getSlotProps: (
|
|
3940
|
-
...
|
|
3941
|
-
onClick: (
|
|
3942
|
-
|
|
3926
|
+
getSlotProps: (z) => M({
|
|
3927
|
+
...z,
|
|
3928
|
+
onClick: (U) => {
|
|
3929
|
+
S && S(U), z != null && z.onClick && z.onClick(U);
|
|
3943
3930
|
}
|
|
3944
3931
|
}),
|
|
3945
|
-
className:
|
|
3946
|
-
ownerState:
|
|
3932
|
+
className: J(s == null ? void 0 : s.className, X == null ? void 0 : X.backdrop),
|
|
3933
|
+
ownerState: Y
|
|
3947
3934
|
});
|
|
3948
|
-
return !E &&
|
|
3949
|
-
ref:
|
|
3935
|
+
return !E && !L && (!ye || le) ? null : /* @__PURE__ */ v(gt, {
|
|
3936
|
+
ref: I,
|
|
3950
3937
|
container: m,
|
|
3951
3938
|
disablePortal: h,
|
|
3952
|
-
children: /* @__PURE__ */ ce(
|
|
3953
|
-
...
|
|
3954
|
-
children: [!f && i ? /* @__PURE__ */ v(
|
|
3955
|
-
...
|
|
3939
|
+
children: /* @__PURE__ */ ce(fe, {
|
|
3940
|
+
...ve,
|
|
3941
|
+
children: [!f && i ? /* @__PURE__ */ v(re, {
|
|
3942
|
+
...B
|
|
3956
3943
|
}) : null, /* @__PURE__ */ v(yt, {
|
|
3957
3944
|
disableEnforceFocus: O,
|
|
3958
3945
|
disableAutoFocus: x,
|
|
3959
3946
|
disableRestoreFocus: C,
|
|
3960
|
-
isEnabled:
|
|
3961
|
-
open:
|
|
3962
|
-
children: /* @__PURE__ */
|
|
3947
|
+
isEnabled: _,
|
|
3948
|
+
open: L,
|
|
3949
|
+
children: /* @__PURE__ */ c.cloneElement(u, Z)
|
|
3963
3950
|
})]
|
|
3964
3951
|
})
|
|
3965
3952
|
});
|
|
@@ -4014,7 +4001,7 @@ process.env.NODE_ENV !== "production" && (Zo.propTypes = {
|
|
|
4014
4001
|
/**
|
|
4015
4002
|
* The components used for each slot inside.
|
|
4016
4003
|
*
|
|
4017
|
-
* @deprecated Use the `slots` prop instead. This prop will be removed in
|
|
4004
|
+
* @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
4018
4005
|
*
|
|
4019
4006
|
* @default {}
|
|
4020
4007
|
*/
|
|
@@ -4026,7 +4013,7 @@ process.env.NODE_ENV !== "production" && (Zo.propTypes = {
|
|
|
4026
4013
|
* The extra props for the slot components.
|
|
4027
4014
|
* You can override the existing props or add new ones.
|
|
4028
4015
|
*
|
|
4029
|
-
* @deprecated Use the `slotProps` prop instead. This prop will be removed in
|
|
4016
|
+
* @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
4030
4017
|
*
|
|
4031
4018
|
* @default {}
|
|
4032
4019
|
*/
|
|
@@ -4096,6 +4083,11 @@ process.env.NODE_ENV !== "production" && (Zo.propTypes = {
|
|
|
4096
4083
|
* @default false
|
|
4097
4084
|
*/
|
|
4098
4085
|
keepMounted: e.bool,
|
|
4086
|
+
/**
|
|
4087
|
+
* Callback fired when the backdrop is clicked.
|
|
4088
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
4089
|
+
*/
|
|
4090
|
+
onBackdropClick: e.func,
|
|
4099
4091
|
/**
|
|
4100
4092
|
* Callback fired when the component requests to be closed.
|
|
4101
4093
|
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
@@ -4138,7 +4130,7 @@ process.env.NODE_ENV !== "production" && (Zo.propTypes = {
|
|
|
4138
4130
|
*/
|
|
4139
4131
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
4140
4132
|
});
|
|
4141
|
-
const
|
|
4133
|
+
const ls = (t) => {
|
|
4142
4134
|
const {
|
|
4143
4135
|
classes: o,
|
|
4144
4136
|
disableUnderline: n,
|
|
@@ -4147,16 +4139,16 @@ const cs = (t) => {
|
|
|
4147
4139
|
size: s,
|
|
4148
4140
|
hiddenLabel: a,
|
|
4149
4141
|
multiline: l
|
|
4150
|
-
} = t,
|
|
4142
|
+
} = t, d = {
|
|
4151
4143
|
root: ["root", !n && "underline", r && "adornedStart", i && "adornedEnd", s === "small" && `size${K(s)}`, a && "hiddenLabel", l && "multiline"],
|
|
4152
4144
|
input: ["input"]
|
|
4153
|
-
}, u =
|
|
4145
|
+
}, u = Q(d, wr, o);
|
|
4154
4146
|
return {
|
|
4155
4147
|
...o,
|
|
4156
4148
|
// forward classes to the InputBase
|
|
4157
4149
|
...u
|
|
4158
4150
|
};
|
|
4159
|
-
},
|
|
4151
|
+
}, cs = F(Ot, {
|
|
4160
4152
|
shouldForwardProp: (t) => Ne(t) || t === "classes",
|
|
4161
4153
|
name: "MuiFilledInput",
|
|
4162
4154
|
slot: "Root",
|
|
@@ -4186,10 +4178,10 @@ const cs = (t) => {
|
|
|
4186
4178
|
backgroundColor: t.vars ? t.vars.palette.FilledInput.bg : r
|
|
4187
4179
|
}
|
|
4188
4180
|
},
|
|
4189
|
-
[`&.${
|
|
4181
|
+
[`&.${$e.focused}`]: {
|
|
4190
4182
|
backgroundColor: t.vars ? t.vars.palette.FilledInput.bg : r
|
|
4191
4183
|
},
|
|
4192
|
-
[`&.${
|
|
4184
|
+
[`&.${$e.disabled}`]: {
|
|
4193
4185
|
backgroundColor: t.vars ? t.vars.palette.FilledInput.disabledBg : s
|
|
4194
4186
|
},
|
|
4195
4187
|
variants: [{
|
|
@@ -4211,12 +4203,12 @@ const cs = (t) => {
|
|
|
4211
4203
|
pointerEvents: "none"
|
|
4212
4204
|
// Transparent to the hover style.
|
|
4213
4205
|
},
|
|
4214
|
-
[`&.${
|
|
4206
|
+
[`&.${$e.focused}:after`]: {
|
|
4215
4207
|
// translateX(0) is a workaround for Safari transform scale bug
|
|
4216
4208
|
// See https://github.com/mui/material-ui/issues/31766
|
|
4217
4209
|
transform: "scaleX(1) translateX(0)"
|
|
4218
4210
|
},
|
|
4219
|
-
[`&.${
|
|
4211
|
+
[`&.${$e.error}`]: {
|
|
4220
4212
|
"&::before, &::after": {
|
|
4221
4213
|
borderBottomColor: (t.vars || t).palette.error.main
|
|
4222
4214
|
}
|
|
@@ -4234,10 +4226,10 @@ const cs = (t) => {
|
|
|
4234
4226
|
pointerEvents: "none"
|
|
4235
4227
|
// Transparent to the hover style.
|
|
4236
4228
|
},
|
|
4237
|
-
[`&:hover:not(.${
|
|
4229
|
+
[`&:hover:not(.${$e.disabled}, .${$e.error}):before`]: {
|
|
4238
4230
|
borderBottom: `1px solid ${(t.vars || t).palette.text.primary}`
|
|
4239
4231
|
},
|
|
4240
|
-
[`&.${
|
|
4232
|
+
[`&.${$e.disabled}:before`]: {
|
|
4241
4233
|
borderBottomStyle: "dotted"
|
|
4242
4234
|
}
|
|
4243
4235
|
}
|
|
@@ -4302,7 +4294,7 @@ const cs = (t) => {
|
|
|
4302
4294
|
}
|
|
4303
4295
|
}]
|
|
4304
4296
|
};
|
|
4305
|
-
})),
|
|
4297
|
+
})), ds = F(Ct, {
|
|
4306
4298
|
name: "MuiFilledInput",
|
|
4307
4299
|
slot: "Input",
|
|
4308
4300
|
overridesResolver: Et
|
|
@@ -4384,8 +4376,8 @@ const cs = (t) => {
|
|
|
4384
4376
|
paddingRight: 0
|
|
4385
4377
|
}
|
|
4386
4378
|
}]
|
|
4387
|
-
}))), St = /* @__PURE__ */
|
|
4388
|
-
const r =
|
|
4379
|
+
}))), St = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
4380
|
+
const r = ne({
|
|
4389
4381
|
props: o,
|
|
4390
4382
|
name: "MuiFilledInput"
|
|
4391
4383
|
}), {
|
|
@@ -4393,7 +4385,7 @@ const cs = (t) => {
|
|
|
4393
4385
|
components: s = {},
|
|
4394
4386
|
componentsProps: a,
|
|
4395
4387
|
fullWidth: l = !1,
|
|
4396
|
-
hiddenLabel:
|
|
4388
|
+
hiddenLabel: d,
|
|
4397
4389
|
// declare here to prevent spreading to DOM
|
|
4398
4390
|
inputComponent: u = "input",
|
|
4399
4391
|
multiline: m = !1,
|
|
@@ -4408,14 +4400,14 @@ const cs = (t) => {
|
|
|
4408
4400
|
inputComponent: u,
|
|
4409
4401
|
multiline: m,
|
|
4410
4402
|
type: b
|
|
4411
|
-
}, y =
|
|
4403
|
+
}, y = ls(r), h = {
|
|
4412
4404
|
root: {
|
|
4413
4405
|
ownerState: O
|
|
4414
4406
|
},
|
|
4415
4407
|
input: {
|
|
4416
4408
|
ownerState: O
|
|
4417
4409
|
}
|
|
4418
|
-
}, C = g ?? a ? zt(h, g ?? a) : h, p = T.root ?? s.Root ??
|
|
4410
|
+
}, C = g ?? a ? zt(h, g ?? a) : h, p = T.root ?? s.Root ?? cs, f = T.input ?? s.Input ?? ds;
|
|
4419
4411
|
return /* @__PURE__ */ v(Rt, {
|
|
4420
4412
|
slots: {
|
|
4421
4413
|
root: p,
|
|
@@ -4460,7 +4452,7 @@ process.env.NODE_ENV !== "production" && (St.propTypes = {
|
|
|
4460
4452
|
/**
|
|
4461
4453
|
* The components used for each slot inside.
|
|
4462
4454
|
*
|
|
4463
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
4455
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
4464
4456
|
*
|
|
4465
4457
|
* @default {}
|
|
4466
4458
|
*/
|
|
@@ -4472,7 +4464,7 @@ process.env.NODE_ENV !== "production" && (St.propTypes = {
|
|
|
4472
4464
|
* The extra props for the slot components.
|
|
4473
4465
|
* You can override the existing props or add new ones.
|
|
4474
4466
|
*
|
|
4475
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
4467
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
4476
4468
|
*
|
|
4477
4469
|
* @default {}
|
|
4478
4470
|
*/
|
|
@@ -4533,7 +4525,7 @@ process.env.NODE_ENV !== "production" && (St.propTypes = {
|
|
|
4533
4525
|
/**
|
|
4534
4526
|
* Pass a ref to the `input` element.
|
|
4535
4527
|
*/
|
|
4536
|
-
inputRef:
|
|
4528
|
+
inputRef: Me,
|
|
4537
4529
|
/**
|
|
4538
4530
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
4539
4531
|
* FormControl.
|
|
@@ -4624,11 +4616,11 @@ process.env.NODE_ENV !== "production" && (St.propTypes = {
|
|
|
4624
4616
|
value: e.any
|
|
4625
4617
|
});
|
|
4626
4618
|
St.muiName = "Input";
|
|
4627
|
-
function
|
|
4628
|
-
return
|
|
4619
|
+
function ps(t) {
|
|
4620
|
+
return oe("MuiFormControl", t);
|
|
4629
4621
|
}
|
|
4630
|
-
|
|
4631
|
-
const
|
|
4622
|
+
ie("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
|
|
4623
|
+
const us = (t) => {
|
|
4632
4624
|
const {
|
|
4633
4625
|
classes: o,
|
|
4634
4626
|
margin: n,
|
|
@@ -4636,8 +4628,8 @@ const fs = (t) => {
|
|
|
4636
4628
|
} = t, i = {
|
|
4637
4629
|
root: ["root", n !== "none" && `margin${K(n)}`, r && "fullWidth"]
|
|
4638
4630
|
};
|
|
4639
|
-
return
|
|
4640
|
-
},
|
|
4631
|
+
return Q(i, ps, o);
|
|
4632
|
+
}, fs = F("div", {
|
|
4641
4633
|
name: "MuiFormControl",
|
|
4642
4634
|
slot: "Root",
|
|
4643
4635
|
overridesResolver: (t, o) => {
|
|
@@ -4681,8 +4673,8 @@ const fs = (t) => {
|
|
|
4681
4673
|
width: "100%"
|
|
4682
4674
|
}
|
|
4683
4675
|
}]
|
|
4684
|
-
}), Jo = /* @__PURE__ */
|
|
4685
|
-
const r =
|
|
4676
|
+
}), Jo = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
4677
|
+
const r = ne({
|
|
4686
4678
|
props: o,
|
|
4687
4679
|
name: "MuiFormControl"
|
|
4688
4680
|
}), {
|
|
@@ -4690,7 +4682,7 @@ const fs = (t) => {
|
|
|
4690
4682
|
className: s,
|
|
4691
4683
|
color: a = "primary",
|
|
4692
4684
|
component: l = "div",
|
|
4693
|
-
disabled:
|
|
4685
|
+
disabled: d = !1,
|
|
4694
4686
|
error: u = !1,
|
|
4695
4687
|
focused: m,
|
|
4696
4688
|
fullWidth: g = !1,
|
|
@@ -4704,7 +4696,7 @@ const fs = (t) => {
|
|
|
4704
4696
|
...r,
|
|
4705
4697
|
color: a,
|
|
4706
4698
|
component: l,
|
|
4707
|
-
disabled:
|
|
4699
|
+
disabled: d,
|
|
4708
4700
|
error: u,
|
|
4709
4701
|
fullWidth: g,
|
|
4710
4702
|
hiddenLabel: T,
|
|
@@ -4712,61 +4704,61 @@ const fs = (t) => {
|
|
|
4712
4704
|
required: x,
|
|
4713
4705
|
size: O,
|
|
4714
4706
|
variant: y
|
|
4715
|
-
}, p =
|
|
4716
|
-
let
|
|
4717
|
-
return i &&
|
|
4718
|
-
if (!Nt(
|
|
4707
|
+
}, p = us(C), [f, E] = c.useState(() => {
|
|
4708
|
+
let w = !1;
|
|
4709
|
+
return i && c.Children.forEach(i, (M) => {
|
|
4710
|
+
if (!Nt(M, ["Input", "Select"]))
|
|
4719
4711
|
return;
|
|
4720
|
-
const
|
|
4721
|
-
|
|
4722
|
-
}),
|
|
4723
|
-
}), [
|
|
4724
|
-
let
|
|
4725
|
-
return i &&
|
|
4726
|
-
Nt(
|
|
4727
|
-
}),
|
|
4728
|
-
}), [N,
|
|
4729
|
-
|
|
4730
|
-
const
|
|
4731
|
-
let
|
|
4732
|
-
const
|
|
4733
|
-
process.env.NODE_ENV !== "production" && (
|
|
4734
|
-
`)),
|
|
4735
|
-
|
|
4712
|
+
const H = Nt(M, ["Select"]) ? M.props.input : M;
|
|
4713
|
+
H && Er(H.props) && (w = !0);
|
|
4714
|
+
}), w;
|
|
4715
|
+
}), [S, P] = c.useState(() => {
|
|
4716
|
+
let w = !1;
|
|
4717
|
+
return i && c.Children.forEach(i, (M) => {
|
|
4718
|
+
Nt(M, ["Input", "Select"]) && (ht(M.props, !0) || ht(M.props.inputProps, !0)) && (w = !0);
|
|
4719
|
+
}), w;
|
|
4720
|
+
}), [N, A] = c.useState(!1);
|
|
4721
|
+
d && N && A(!1);
|
|
4722
|
+
const L = m !== void 0 && !d ? m : N;
|
|
4723
|
+
let D;
|
|
4724
|
+
const $ = c.useRef(!1);
|
|
4725
|
+
process.env.NODE_ENV !== "production" && (D = () => ($.current && console.error(["MUI: There are multiple `InputBase` components inside a FormControl.", "This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
4726
|
+
`)), $.current = !0, () => {
|
|
4727
|
+
$.current = !1;
|
|
4736
4728
|
}));
|
|
4737
|
-
const
|
|
4729
|
+
const W = c.useCallback(() => {
|
|
4738
4730
|
P(!0);
|
|
4739
|
-
}, []), j =
|
|
4731
|
+
}, []), j = c.useCallback(() => {
|
|
4740
4732
|
P(!1);
|
|
4741
|
-
}, []), R =
|
|
4733
|
+
}, []), R = c.useMemo(() => ({
|
|
4742
4734
|
adornedStart: f,
|
|
4743
4735
|
setAdornedStart: E,
|
|
4744
4736
|
color: a,
|
|
4745
|
-
disabled:
|
|
4737
|
+
disabled: d,
|
|
4746
4738
|
error: u,
|
|
4747
|
-
filled:
|
|
4748
|
-
focused:
|
|
4739
|
+
filled: S,
|
|
4740
|
+
focused: L,
|
|
4749
4741
|
fullWidth: g,
|
|
4750
4742
|
hiddenLabel: T,
|
|
4751
4743
|
size: O,
|
|
4752
4744
|
onBlur: () => {
|
|
4753
|
-
|
|
4745
|
+
A(!1);
|
|
4754
4746
|
},
|
|
4755
4747
|
onFocus: () => {
|
|
4756
|
-
|
|
4748
|
+
A(!0);
|
|
4757
4749
|
},
|
|
4758
4750
|
onEmpty: j,
|
|
4759
|
-
onFilled:
|
|
4760
|
-
registerEffect:
|
|
4751
|
+
onFilled: W,
|
|
4752
|
+
registerEffect: D,
|
|
4761
4753
|
required: x,
|
|
4762
4754
|
variant: y
|
|
4763
|
-
}), [f, a,
|
|
4755
|
+
}), [f, a, d, u, S, L, g, T, D, j, W, x, O, y]);
|
|
4764
4756
|
return /* @__PURE__ */ v(Tt.Provider, {
|
|
4765
4757
|
value: R,
|
|
4766
|
-
children: /* @__PURE__ */ v(
|
|
4758
|
+
children: /* @__PURE__ */ v(fs, {
|
|
4767
4759
|
as: l,
|
|
4768
4760
|
ownerState: C,
|
|
4769
|
-
className:
|
|
4761
|
+
className: J(p.root, s),
|
|
4770
4762
|
ref: n,
|
|
4771
4763
|
...h,
|
|
4772
4764
|
children: i
|
|
@@ -4853,12 +4845,12 @@ process.env.NODE_ENV !== "production" && (Jo.propTypes = {
|
|
|
4853
4845
|
*/
|
|
4854
4846
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
4855
4847
|
});
|
|
4856
|
-
function
|
|
4857
|
-
return
|
|
4848
|
+
function ms(t) {
|
|
4849
|
+
return oe("MuiFormHelperText", t);
|
|
4858
4850
|
}
|
|
4859
|
-
const vo =
|
|
4851
|
+
const vo = ie("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
|
|
4860
4852
|
var To;
|
|
4861
|
-
const
|
|
4853
|
+
const bs = (t) => {
|
|
4862
4854
|
const {
|
|
4863
4855
|
classes: o,
|
|
4864
4856
|
contained: n,
|
|
@@ -4867,12 +4859,12 @@ const gs = (t) => {
|
|
|
4867
4859
|
error: s,
|
|
4868
4860
|
filled: a,
|
|
4869
4861
|
focused: l,
|
|
4870
|
-
required:
|
|
4862
|
+
required: d
|
|
4871
4863
|
} = t, u = {
|
|
4872
|
-
root: ["root", i && "disabled", s && "error", r && `size${K(r)}`, n && "contained", l && "focused", a && "filled",
|
|
4864
|
+
root: ["root", i && "disabled", s && "error", r && `size${K(r)}`, n && "contained", l && "focused", a && "filled", d && "required"]
|
|
4873
4865
|
};
|
|
4874
|
-
return
|
|
4875
|
-
},
|
|
4866
|
+
return Q(u, ms, o);
|
|
4867
|
+
}, gs = F("p", {
|
|
4876
4868
|
name: "MuiFormHelperText",
|
|
4877
4869
|
slot: "Root",
|
|
4878
4870
|
overridesResolver: (t, o) => {
|
|
@@ -4913,8 +4905,8 @@ const gs = (t) => {
|
|
|
4913
4905
|
marginRight: 14
|
|
4914
4906
|
}
|
|
4915
4907
|
}]
|
|
4916
|
-
}))), Qo = /* @__PURE__ */
|
|
4917
|
-
const r =
|
|
4908
|
+
}))), Qo = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
4909
|
+
const r = ne({
|
|
4918
4910
|
props: o,
|
|
4919
4911
|
name: "MuiFormHelperText"
|
|
4920
4912
|
}), {
|
|
@@ -4922,7 +4914,7 @@ const gs = (t) => {
|
|
|
4922
4914
|
className: s,
|
|
4923
4915
|
component: a = "p",
|
|
4924
4916
|
disabled: l,
|
|
4925
|
-
error:
|
|
4917
|
+
error: d,
|
|
4926
4918
|
filled: u,
|
|
4927
4919
|
focused: m,
|
|
4928
4920
|
margin: g,
|
|
@@ -4946,10 +4938,10 @@ const gs = (t) => {
|
|
|
4946
4938
|
required: y.required
|
|
4947
4939
|
};
|
|
4948
4940
|
delete h.ownerState;
|
|
4949
|
-
const C =
|
|
4950
|
-
return /* @__PURE__ */ v(
|
|
4941
|
+
const C = bs(h);
|
|
4942
|
+
return /* @__PURE__ */ v(gs, {
|
|
4951
4943
|
as: a,
|
|
4952
|
-
className:
|
|
4944
|
+
className: J(C.root, s),
|
|
4953
4945
|
ref: n,
|
|
4954
4946
|
...x,
|
|
4955
4947
|
ownerState: h,
|
|
@@ -5021,10 +5013,10 @@ process.env.NODE_ENV !== "production" && (Qo.propTypes = {
|
|
|
5021
5013
|
*/
|
|
5022
5014
|
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
5023
5015
|
});
|
|
5024
|
-
function
|
|
5025
|
-
return
|
|
5016
|
+
function hs(t) {
|
|
5017
|
+
return oe("MuiFormLabel", t);
|
|
5026
5018
|
}
|
|
5027
|
-
const nt =
|
|
5019
|
+
const nt = ie("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "error", "filled", "required", "asterisk"]), ys = (t) => {
|
|
5028
5020
|
const {
|
|
5029
5021
|
classes: o,
|
|
5030
5022
|
color: n,
|
|
@@ -5033,12 +5025,12 @@ const nt = se("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
5033
5025
|
error: s,
|
|
5034
5026
|
filled: a,
|
|
5035
5027
|
required: l
|
|
5036
|
-
} = t,
|
|
5028
|
+
} = t, d = {
|
|
5037
5029
|
root: ["root", `color${K(n)}`, i && "disabled", s && "error", a && "filled", r && "focused", l && "required"],
|
|
5038
5030
|
asterisk: ["asterisk", s && "error"]
|
|
5039
5031
|
};
|
|
5040
|
-
return
|
|
5041
|
-
},
|
|
5032
|
+
return Q(d, hs, o);
|
|
5033
|
+
}, vs = F("label", {
|
|
5042
5034
|
name: "MuiFormLabel",
|
|
5043
5035
|
slot: "Root",
|
|
5044
5036
|
overridesResolver: (t, o) => {
|
|
@@ -5075,7 +5067,7 @@ const nt = se("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
5075
5067
|
}
|
|
5076
5068
|
}
|
|
5077
5069
|
}]
|
|
5078
|
-
}))),
|
|
5070
|
+
}))), Ts = F("span", {
|
|
5079
5071
|
name: "MuiFormLabel",
|
|
5080
5072
|
slot: "Asterisk",
|
|
5081
5073
|
overridesResolver: (t, o) => o.asterisk
|
|
@@ -5085,8 +5077,8 @@ const nt = se("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
5085
5077
|
[`&.${nt.error}`]: {
|
|
5086
5078
|
color: (t.vars || t).palette.error.main
|
|
5087
5079
|
}
|
|
5088
|
-
}))), en = /* @__PURE__ */
|
|
5089
|
-
const r =
|
|
5080
|
+
}))), en = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
5081
|
+
const r = ne({
|
|
5090
5082
|
props: o,
|
|
5091
5083
|
name: "MuiFormLabel"
|
|
5092
5084
|
}), {
|
|
@@ -5094,7 +5086,7 @@ const nt = se("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
5094
5086
|
className: s,
|
|
5095
5087
|
color: a,
|
|
5096
5088
|
component: l = "label",
|
|
5097
|
-
disabled:
|
|
5089
|
+
disabled: d,
|
|
5098
5090
|
error: u,
|
|
5099
5091
|
filled: m,
|
|
5100
5092
|
focused: g,
|
|
@@ -5113,14 +5105,14 @@ const nt = se("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled",
|
|
|
5113
5105
|
filled: O.filled,
|
|
5114
5106
|
focused: O.focused,
|
|
5115
5107
|
required: O.required
|
|
5116
|
-
}, h =
|
|
5117
|
-
return /* @__PURE__ */ ce(
|
|
5108
|
+
}, h = ys(y);
|
|
5109
|
+
return /* @__PURE__ */ ce(vs, {
|
|
5118
5110
|
as: l,
|
|
5119
5111
|
ownerState: y,
|
|
5120
|
-
className:
|
|
5112
|
+
className: J(h.root, s),
|
|
5121
5113
|
ref: n,
|
|
5122
5114
|
...b,
|
|
5123
|
-
children: [i, O.required && /* @__PURE__ */ ce(
|
|
5115
|
+
children: [i, O.required && /* @__PURE__ */ ce(Ts, {
|
|
5124
5116
|
ownerState: y,
|
|
5125
5117
|
"aria-hidden": !0,
|
|
5126
5118
|
className: h.asterisk,
|
|
@@ -5184,7 +5176,7 @@ process.env.NODE_ENV !== "production" && (en.propTypes = {
|
|
|
5184
5176
|
function Dt(t) {
|
|
5185
5177
|
return `scale(${t}, ${t ** 2})`;
|
|
5186
5178
|
}
|
|
5187
|
-
const
|
|
5179
|
+
const xs = {
|
|
5188
5180
|
entering: {
|
|
5189
5181
|
opacity: 1,
|
|
5190
5182
|
transform: Dt(1)
|
|
@@ -5193,14 +5185,14 @@ const Es = {
|
|
|
5193
5185
|
opacity: 1,
|
|
5194
5186
|
transform: "none"
|
|
5195
5187
|
}
|
|
5196
|
-
},
|
|
5188
|
+
}, kt = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), vt = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
5197
5189
|
const {
|
|
5198
5190
|
addEndListener: r,
|
|
5199
5191
|
appear: i = !0,
|
|
5200
5192
|
children: s,
|
|
5201
5193
|
easing: a,
|
|
5202
5194
|
in: l,
|
|
5203
|
-
onEnter:
|
|
5195
|
+
onEnter: d,
|
|
5204
5196
|
onEntered: u,
|
|
5205
5197
|
onEntering: m,
|
|
5206
5198
|
onExit: g,
|
|
@@ -5211,16 +5203,16 @@ const Es = {
|
|
|
5211
5203
|
// eslint-disable-next-line react/prop-types
|
|
5212
5204
|
TransitionComponent: y = we,
|
|
5213
5205
|
...h
|
|
5214
|
-
} = o, C = Pn(), p =
|
|
5206
|
+
} = o, C = Pn(), p = c.useRef(), f = Ht(), E = c.useRef(null), S = Ee(E, at(s), n), P = (R) => (w) => {
|
|
5215
5207
|
if (R) {
|
|
5216
|
-
const
|
|
5217
|
-
|
|
5208
|
+
const M = E.current;
|
|
5209
|
+
w === void 0 ? R(M) : R(M, w);
|
|
5218
5210
|
}
|
|
5219
|
-
}, N = P(m),
|
|
5211
|
+
}, N = P(m), A = P((R, w) => {
|
|
5220
5212
|
Wo(R);
|
|
5221
5213
|
const {
|
|
5222
|
-
duration:
|
|
5223
|
-
delay:
|
|
5214
|
+
duration: M,
|
|
5215
|
+
delay: H,
|
|
5224
5216
|
easing: I
|
|
5225
5217
|
} = bt({
|
|
5226
5218
|
style: x,
|
|
@@ -5229,20 +5221,20 @@ const Es = {
|
|
|
5229
5221
|
}, {
|
|
5230
5222
|
mode: "enter"
|
|
5231
5223
|
});
|
|
5232
|
-
let
|
|
5233
|
-
O === "auto" ? (
|
|
5234
|
-
duration:
|
|
5235
|
-
delay:
|
|
5224
|
+
let _;
|
|
5225
|
+
O === "auto" ? (_ = f.transitions.getAutoHeightDuration(R.clientHeight), p.current = _) : _ = M, R.style.transition = [f.transitions.create("opacity", {
|
|
5226
|
+
duration: _,
|
|
5227
|
+
delay: H
|
|
5236
5228
|
}), f.transitions.create("transform", {
|
|
5237
|
-
duration:
|
|
5238
|
-
delay:
|
|
5229
|
+
duration: kt ? _ : _ * 0.666,
|
|
5230
|
+
delay: H,
|
|
5239
5231
|
easing: I
|
|
5240
|
-
})].join(","),
|
|
5241
|
-
}),
|
|
5232
|
+
})].join(","), d && d(R, w);
|
|
5233
|
+
}), L = P(u), D = P(b), $ = P((R) => {
|
|
5242
5234
|
const {
|
|
5243
|
-
duration:
|
|
5244
|
-
delay:
|
|
5245
|
-
easing:
|
|
5235
|
+
duration: w,
|
|
5236
|
+
delay: M,
|
|
5237
|
+
easing: H
|
|
5246
5238
|
} = bt({
|
|
5247
5239
|
style: x,
|
|
5248
5240
|
timeout: O,
|
|
@@ -5251,44 +5243,44 @@ const Es = {
|
|
|
5251
5243
|
mode: "exit"
|
|
5252
5244
|
});
|
|
5253
5245
|
let I;
|
|
5254
|
-
O === "auto" ? (I = f.transitions.getAutoHeightDuration(R.clientHeight), p.current = I) : I =
|
|
5246
|
+
O === "auto" ? (I = f.transitions.getAutoHeightDuration(R.clientHeight), p.current = I) : I = w, R.style.transition = [f.transitions.create("opacity", {
|
|
5255
5247
|
duration: I,
|
|
5256
|
-
delay:
|
|
5248
|
+
delay: M
|
|
5257
5249
|
}), f.transitions.create("transform", {
|
|
5258
|
-
duration:
|
|
5259
|
-
delay:
|
|
5260
|
-
easing:
|
|
5250
|
+
duration: kt ? I : I * 0.666,
|
|
5251
|
+
delay: kt ? M : M || I * 0.333,
|
|
5252
|
+
easing: H
|
|
5261
5253
|
})].join(","), R.style.opacity = 0, R.style.transform = Dt(0.75), g && g(R);
|
|
5262
|
-
}),
|
|
5254
|
+
}), W = P(T);
|
|
5263
5255
|
return /* @__PURE__ */ v(y, {
|
|
5264
5256
|
appear: i,
|
|
5265
5257
|
in: l,
|
|
5266
5258
|
nodeRef: E,
|
|
5267
|
-
onEnter:
|
|
5268
|
-
onEntered:
|
|
5259
|
+
onEnter: A,
|
|
5260
|
+
onEntered: L,
|
|
5269
5261
|
onEntering: N,
|
|
5270
|
-
onExit:
|
|
5271
|
-
onExited:
|
|
5272
|
-
onExiting:
|
|
5262
|
+
onExit: $,
|
|
5263
|
+
onExited: W,
|
|
5264
|
+
onExiting: D,
|
|
5273
5265
|
addEndListener: (R) => {
|
|
5274
5266
|
O === "auto" && C.start(p.current || 0, R), r && r(E.current, R);
|
|
5275
5267
|
},
|
|
5276
5268
|
timeout: O === "auto" ? null : O,
|
|
5277
5269
|
...h,
|
|
5278
5270
|
children: (R, {
|
|
5279
|
-
ownerState:
|
|
5280
|
-
...
|
|
5281
|
-
}) => /* @__PURE__ */
|
|
5271
|
+
ownerState: w,
|
|
5272
|
+
...M
|
|
5273
|
+
}) => /* @__PURE__ */ c.cloneElement(s, {
|
|
5282
5274
|
style: {
|
|
5283
5275
|
opacity: 0,
|
|
5284
5276
|
transform: Dt(0.75),
|
|
5285
5277
|
visibility: R === "exited" && !l ? "hidden" : void 0,
|
|
5286
|
-
...
|
|
5278
|
+
...xs[R],
|
|
5287
5279
|
...x,
|
|
5288
5280
|
...s.props.style
|
|
5289
5281
|
},
|
|
5290
|
-
ref:
|
|
5291
|
-
...
|
|
5282
|
+
ref: S,
|
|
5283
|
+
...M
|
|
5292
5284
|
})
|
|
5293
5285
|
});
|
|
5294
5286
|
});
|
|
@@ -5367,20 +5359,20 @@ process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
|
5367
5359
|
})])
|
|
5368
5360
|
});
|
|
5369
5361
|
vt && (vt.muiSupportAuto = !0);
|
|
5370
|
-
const
|
|
5362
|
+
const Es = (t) => {
|
|
5371
5363
|
const {
|
|
5372
5364
|
classes: o,
|
|
5373
5365
|
disableUnderline: n
|
|
5374
|
-
} = t, i =
|
|
5366
|
+
} = t, i = Q({
|
|
5375
5367
|
root: ["root", !n && "underline"],
|
|
5376
5368
|
input: ["input"]
|
|
5377
|
-
},
|
|
5369
|
+
}, Rr, o);
|
|
5378
5370
|
return {
|
|
5379
5371
|
...o,
|
|
5380
5372
|
// forward classes to the InputBase
|
|
5381
5373
|
...i
|
|
5382
5374
|
};
|
|
5383
|
-
},
|
|
5375
|
+
}, Os = F(Ot, {
|
|
5384
5376
|
shouldForwardProp: (t) => Ne(t) || t === "classes",
|
|
5385
5377
|
name: "MuiInput",
|
|
5386
5378
|
slot: "Root",
|
|
@@ -5470,12 +5462,12 @@ const Os = (t) => {
|
|
|
5470
5462
|
}
|
|
5471
5463
|
}))]
|
|
5472
5464
|
};
|
|
5473
|
-
})),
|
|
5465
|
+
})), Cs = F(Ct, {
|
|
5474
5466
|
name: "MuiInput",
|
|
5475
5467
|
slot: "Input",
|
|
5476
5468
|
overridesResolver: Et
|
|
5477
|
-
})({}), wt = /* @__PURE__ */
|
|
5478
|
-
const r =
|
|
5469
|
+
})({}), wt = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
5470
|
+
const r = ne({
|
|
5479
5471
|
props: o,
|
|
5480
5472
|
name: "MuiInput"
|
|
5481
5473
|
}), {
|
|
@@ -5483,19 +5475,19 @@ const Os = (t) => {
|
|
|
5483
5475
|
components: s = {},
|
|
5484
5476
|
componentsProps: a,
|
|
5485
5477
|
fullWidth: l = !1,
|
|
5486
|
-
inputComponent:
|
|
5478
|
+
inputComponent: d = "input",
|
|
5487
5479
|
multiline: u = !1,
|
|
5488
5480
|
slotProps: m,
|
|
5489
5481
|
slots: g = {},
|
|
5490
5482
|
type: T = "text",
|
|
5491
5483
|
...b
|
|
5492
|
-
} = r, x =
|
|
5484
|
+
} = r, x = Es(r), y = {
|
|
5493
5485
|
root: {
|
|
5494
5486
|
ownerState: {
|
|
5495
5487
|
disableUnderline: i
|
|
5496
5488
|
}
|
|
5497
5489
|
}
|
|
5498
|
-
}, h = m ?? a ? zt(m ?? a, y) : y, C = g.root ?? s.Root ??
|
|
5490
|
+
}, h = m ?? a ? zt(m ?? a, y) : y, C = g.root ?? s.Root ?? Os, p = g.input ?? s.Input ?? Cs;
|
|
5499
5491
|
return /* @__PURE__ */ v(Rt, {
|
|
5500
5492
|
slots: {
|
|
5501
5493
|
root: C,
|
|
@@ -5503,7 +5495,7 @@ const Os = (t) => {
|
|
|
5503
5495
|
},
|
|
5504
5496
|
slotProps: h,
|
|
5505
5497
|
fullWidth: l,
|
|
5506
|
-
inputComponent:
|
|
5498
|
+
inputComponent: d,
|
|
5507
5499
|
multiline: u,
|
|
5508
5500
|
ref: n,
|
|
5509
5501
|
type: T,
|
|
@@ -5540,7 +5532,7 @@ process.env.NODE_ENV !== "production" && (wt.propTypes = {
|
|
|
5540
5532
|
/**
|
|
5541
5533
|
* The components used for each slot inside.
|
|
5542
5534
|
*
|
|
5543
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
5535
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
5544
5536
|
*
|
|
5545
5537
|
* @default {}
|
|
5546
5538
|
*/
|
|
@@ -5552,7 +5544,7 @@ process.env.NODE_ENV !== "production" && (wt.propTypes = {
|
|
|
5552
5544
|
* The extra props for the slot components.
|
|
5553
5545
|
* You can override the existing props or add new ones.
|
|
5554
5546
|
*
|
|
5555
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in
|
|
5547
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
5556
5548
|
*
|
|
5557
5549
|
* @default {}
|
|
5558
5550
|
*/
|
|
@@ -5606,7 +5598,7 @@ process.env.NODE_ENV !== "production" && (wt.propTypes = {
|
|
|
5606
5598
|
/**
|
|
5607
5599
|
* Pass a ref to the `input` element.
|
|
5608
5600
|
*/
|
|
5609
|
-
inputRef:
|
|
5601
|
+
inputRef: Me,
|
|
5610
5602
|
/**
|
|
5611
5603
|
* If `dense`, will adjust vertical spacing. This is normally obtained via context from
|
|
5612
5604
|
* FormControl.
|
|
@@ -5697,11 +5689,11 @@ process.env.NODE_ENV !== "production" && (wt.propTypes = {
|
|
|
5697
5689
|
value: e.any
|
|
5698
5690
|
});
|
|
5699
5691
|
wt.muiName = "Input";
|
|
5700
|
-
function
|
|
5701
|
-
return
|
|
5692
|
+
function Rs(t) {
|
|
5693
|
+
return oe("MuiInputLabel", t);
|
|
5702
5694
|
}
|
|
5703
|
-
|
|
5704
|
-
const
|
|
5695
|
+
ie("MuiInputLabel", ["root", "focused", "disabled", "error", "required", "asterisk", "formControl", "sizeSmall", "shrink", "animated", "standard", "filled", "outlined"]);
|
|
5696
|
+
const Ss = (t) => {
|
|
5705
5697
|
const {
|
|
5706
5698
|
classes: o,
|
|
5707
5699
|
formControl: n,
|
|
@@ -5710,16 +5702,16 @@ const ws = (t) => {
|
|
|
5710
5702
|
disableAnimation: s,
|
|
5711
5703
|
variant: a,
|
|
5712
5704
|
required: l
|
|
5713
|
-
} = t,
|
|
5714
|
-
root: ["root", n && "formControl", !s && "animated", i && "shrink", r && r !== "
|
|
5705
|
+
} = t, d = {
|
|
5706
|
+
root: ["root", n && "formControl", !s && "animated", i && "shrink", r && r !== "normal" && `size${K(r)}`, a],
|
|
5715
5707
|
asterisk: [l && "asterisk"]
|
|
5716
|
-
}, u =
|
|
5708
|
+
}, u = Q(d, Rs, o);
|
|
5717
5709
|
return {
|
|
5718
5710
|
...o,
|
|
5719
5711
|
// forward the focused, disabled, etc. classes to the FormLabel
|
|
5720
5712
|
...u
|
|
5721
5713
|
};
|
|
5722
|
-
},
|
|
5714
|
+
}, ws = F(en, {
|
|
5723
5715
|
shouldForwardProp: (t) => Ne(t) || t === "classes",
|
|
5724
5716
|
name: "MuiInputLabel",
|
|
5725
5717
|
slot: "Root",
|
|
@@ -5853,8 +5845,8 @@ const ws = (t) => {
|
|
|
5853
5845
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
5854
5846
|
}
|
|
5855
5847
|
}]
|
|
5856
|
-
}))), tn = /* @__PURE__ */
|
|
5857
|
-
const r =
|
|
5848
|
+
}))), tn = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
5849
|
+
const r = ne({
|
|
5858
5850
|
name: "MuiInputLabel",
|
|
5859
5851
|
props: o
|
|
5860
5852
|
}), {
|
|
@@ -5862,7 +5854,7 @@ const ws = (t) => {
|
|
|
5862
5854
|
margin: s,
|
|
5863
5855
|
shrink: a,
|
|
5864
5856
|
variant: l,
|
|
5865
|
-
className:
|
|
5857
|
+
className: d,
|
|
5866
5858
|
...u
|
|
5867
5859
|
} = r, m = Ke();
|
|
5868
5860
|
let g = a;
|
|
@@ -5880,11 +5872,11 @@ const ws = (t) => {
|
|
|
5880
5872
|
variant: T.variant,
|
|
5881
5873
|
required: T.required,
|
|
5882
5874
|
focused: T.focused
|
|
5883
|
-
}, x =
|
|
5884
|
-
return /* @__PURE__ */ v(
|
|
5875
|
+
}, x = Ss(b);
|
|
5876
|
+
return /* @__PURE__ */ v(ws, {
|
|
5885
5877
|
"data-shrink": g,
|
|
5886
5878
|
ref: n,
|
|
5887
|
-
className:
|
|
5879
|
+
className: J(x.root, d),
|
|
5888
5880
|
...u,
|
|
5889
5881
|
ownerState: b,
|
|
5890
5882
|
classes: x
|
|
@@ -5945,9 +5937,9 @@ process.env.NODE_ENV !== "production" && (tn.propTypes = {
|
|
|
5945
5937
|
shrink: e.bool,
|
|
5946
5938
|
/**
|
|
5947
5939
|
* The size of the component.
|
|
5948
|
-
* @default '
|
|
5940
|
+
* @default 'normal'
|
|
5949
5941
|
*/
|
|
5950
|
-
size: e.oneOfType([e.oneOf(["
|
|
5942
|
+
size: e.oneOfType([e.oneOf(["normal", "small"]), e.string]),
|
|
5951
5943
|
/**
|
|
5952
5944
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
5953
5945
|
*/
|
|
@@ -5957,23 +5949,23 @@ process.env.NODE_ENV !== "production" && (tn.propTypes = {
|
|
|
5957
5949
|
*/
|
|
5958
5950
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
5959
5951
|
});
|
|
5960
|
-
const on = /* @__PURE__ */
|
|
5952
|
+
const on = /* @__PURE__ */ c.createContext({});
|
|
5961
5953
|
process.env.NODE_ENV !== "production" && (on.displayName = "ListContext");
|
|
5962
|
-
function
|
|
5963
|
-
return
|
|
5954
|
+
function Is(t) {
|
|
5955
|
+
return oe("MuiList", t);
|
|
5964
5956
|
}
|
|
5965
|
-
|
|
5966
|
-
const
|
|
5957
|
+
ie("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
5958
|
+
const Ns = (t) => {
|
|
5967
5959
|
const {
|
|
5968
5960
|
classes: o,
|
|
5969
5961
|
disablePadding: n,
|
|
5970
5962
|
dense: r,
|
|
5971
5963
|
subheader: i
|
|
5972
5964
|
} = t;
|
|
5973
|
-
return
|
|
5965
|
+
return Q({
|
|
5974
5966
|
root: ["root", !n && "padding", r && "dense", i && "subheader"]
|
|
5975
|
-
},
|
|
5976
|
-
},
|
|
5967
|
+
}, Is, o);
|
|
5968
|
+
}, Ps = F("ul", {
|
|
5977
5969
|
name: "MuiList",
|
|
5978
5970
|
slot: "Root",
|
|
5979
5971
|
overridesResolver: (t, o) => {
|
|
@@ -6003,8 +5995,8 @@ const Ps = (t) => {
|
|
|
6003
5995
|
paddingTop: 0
|
|
6004
5996
|
}
|
|
6005
5997
|
}]
|
|
6006
|
-
}), nn = /* @__PURE__ */
|
|
6007
|
-
const r =
|
|
5998
|
+
}), nn = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
5999
|
+
const r = ne({
|
|
6008
6000
|
props: o,
|
|
6009
6001
|
name: "MuiList"
|
|
6010
6002
|
}), {
|
|
@@ -6012,22 +6004,22 @@ const Ps = (t) => {
|
|
|
6012
6004
|
className: s,
|
|
6013
6005
|
component: a = "ul",
|
|
6014
6006
|
dense: l = !1,
|
|
6015
|
-
disablePadding:
|
|
6007
|
+
disablePadding: d = !1,
|
|
6016
6008
|
subheader: u,
|
|
6017
6009
|
...m
|
|
6018
|
-
} = r, g =
|
|
6010
|
+
} = r, g = c.useMemo(() => ({
|
|
6019
6011
|
dense: l
|
|
6020
6012
|
}), [l]), T = {
|
|
6021
6013
|
...r,
|
|
6022
6014
|
component: a,
|
|
6023
6015
|
dense: l,
|
|
6024
|
-
disablePadding:
|
|
6025
|
-
}, b =
|
|
6016
|
+
disablePadding: d
|
|
6017
|
+
}, b = Ns(T);
|
|
6026
6018
|
return /* @__PURE__ */ v(on.Provider, {
|
|
6027
6019
|
value: g,
|
|
6028
|
-
children: /* @__PURE__ */ ce(
|
|
6020
|
+
children: /* @__PURE__ */ ce(Ps, {
|
|
6029
6021
|
as: a,
|
|
6030
|
-
className:
|
|
6022
|
+
className: J(b.root, s),
|
|
6031
6023
|
ref: n,
|
|
6032
6024
|
ownerState: T,
|
|
6033
6025
|
...m,
|
|
@@ -6078,7 +6070,7 @@ process.env.NODE_ENV !== "production" && (nn.propTypes = {
|
|
|
6078
6070
|
*/
|
|
6079
6071
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
6080
6072
|
});
|
|
6081
|
-
function
|
|
6073
|
+
function Mt(t, o, n) {
|
|
6082
6074
|
return t === o ? t.firstChild : o && o.nextElementSibling ? o.nextElementSibling : n ? null : t.firstChild;
|
|
6083
6075
|
}
|
|
6084
6076
|
function xo(t, o, n) {
|
|
@@ -6098,15 +6090,15 @@ function Je(t, o, n, r, i, s) {
|
|
|
6098
6090
|
return !1;
|
|
6099
6091
|
a = !0;
|
|
6100
6092
|
}
|
|
6101
|
-
const
|
|
6102
|
-
if (!l.hasAttribute("tabindex") || !rn(l, s) ||
|
|
6093
|
+
const d = r ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true";
|
|
6094
|
+
if (!l.hasAttribute("tabindex") || !rn(l, s) || d)
|
|
6103
6095
|
l = i(t, l, n);
|
|
6104
6096
|
else
|
|
6105
6097
|
return l.focus(), !0;
|
|
6106
6098
|
}
|
|
6107
6099
|
return !1;
|
|
6108
6100
|
}
|
|
6109
|
-
const sn = /* @__PURE__ */
|
|
6101
|
+
const sn = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
6110
6102
|
const {
|
|
6111
6103
|
// private
|
|
6112
6104
|
// eslint-disable-next-line react/prop-types
|
|
@@ -6115,12 +6107,12 @@ const sn = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
6115
6107
|
autoFocusItem: s = !1,
|
|
6116
6108
|
children: a,
|
|
6117
6109
|
className: l,
|
|
6118
|
-
disabledItemsFocusable:
|
|
6110
|
+
disabledItemsFocusable: d = !1,
|
|
6119
6111
|
disableListWrap: u = !1,
|
|
6120
6112
|
onKeyDown: m,
|
|
6121
6113
|
variant: g = "selectedMenu",
|
|
6122
6114
|
...T
|
|
6123
|
-
} = o, b =
|
|
6115
|
+
} = o, b = c.useRef(null), x = c.useRef({
|
|
6124
6116
|
keys: [],
|
|
6125
6117
|
repeating: !0,
|
|
6126
6118
|
previousKeyMatched: !0,
|
|
@@ -6128,14 +6120,14 @@ const sn = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
6128
6120
|
});
|
|
6129
6121
|
He(() => {
|
|
6130
6122
|
i && b.current.focus();
|
|
6131
|
-
}, [i]),
|
|
6123
|
+
}, [i]), c.useImperativeHandle(r, () => ({
|
|
6132
6124
|
adjustStyleForScrollbar: (p, {
|
|
6133
6125
|
direction: f
|
|
6134
6126
|
}) => {
|
|
6135
6127
|
const E = !b.current.style.width;
|
|
6136
6128
|
if (p.clientHeight < b.current.clientHeight && E) {
|
|
6137
|
-
const
|
|
6138
|
-
b.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] =
|
|
6129
|
+
const S = `${Lo(Ie(p))}px`;
|
|
6130
|
+
b.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = S, b.current.style.width = `calc(100% + ${S})`;
|
|
6139
6131
|
}
|
|
6140
6132
|
return b.current;
|
|
6141
6133
|
}
|
|
@@ -6148,34 +6140,34 @@ const sn = /* @__PURE__ */ d.forwardRef(function(o, n) {
|
|
|
6148
6140
|
}
|
|
6149
6141
|
const P = xe(f).activeElement;
|
|
6150
6142
|
if (E === "ArrowDown")
|
|
6151
|
-
p.preventDefault(), Je(f, P, u,
|
|
6143
|
+
p.preventDefault(), Je(f, P, u, d, Mt);
|
|
6152
6144
|
else if (E === "ArrowUp")
|
|
6153
|
-
p.preventDefault(), Je(f, P, u,
|
|
6145
|
+
p.preventDefault(), Je(f, P, u, d, xo);
|
|
6154
6146
|
else if (E === "Home")
|
|
6155
|
-
p.preventDefault(), Je(f, null, u,
|
|
6147
|
+
p.preventDefault(), Je(f, null, u, d, Mt);
|
|
6156
6148
|
else if (E === "End")
|
|
6157
|
-
p.preventDefault(), Je(f, null, u,
|
|
6149
|
+
p.preventDefault(), Je(f, null, u, d, xo);
|
|
6158
6150
|
else if (E.length === 1) {
|
|
6159
|
-
const N = x.current,
|
|
6160
|
-
N.keys.length > 0 && (
|
|
6161
|
-
const
|
|
6162
|
-
N.previousKeyMatched && (
|
|
6151
|
+
const N = x.current, A = E.toLowerCase(), L = performance.now();
|
|
6152
|
+
N.keys.length > 0 && (L - N.lastTime > 500 ? (N.keys = [], N.repeating = !0, N.previousKeyMatched = !0) : N.repeating && A !== N.keys[0] && (N.repeating = !1)), N.lastTime = L, N.keys.push(A);
|
|
6153
|
+
const D = P && !N.repeating && rn(P, N);
|
|
6154
|
+
N.previousKeyMatched && (D || Je(f, P, !1, d, Mt, N)) ? p.preventDefault() : N.previousKeyMatched = !1;
|
|
6163
6155
|
}
|
|
6164
6156
|
m && m(p);
|
|
6165
6157
|
}, y = Ee(b, n);
|
|
6166
6158
|
let h = -1;
|
|
6167
|
-
|
|
6168
|
-
if (!/* @__PURE__ */
|
|
6159
|
+
c.Children.forEach(a, (p, f) => {
|
|
6160
|
+
if (!/* @__PURE__ */ c.isValidElement(p)) {
|
|
6169
6161
|
h === f && (h += 1, h >= a.length && (h = -1));
|
|
6170
6162
|
return;
|
|
6171
6163
|
}
|
|
6172
6164
|
process.env.NODE_ENV !== "production" && Wt.isFragment(p) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
6173
6165
|
`)), p.props.disabled || (g === "selectedMenu" && p.props.selected || h === -1) && (h = f), h === f && (p.props.disabled || p.props.muiSkipListHighlight || p.type.muiSkipListHighlight) && (h += 1, h >= a.length && (h = -1));
|
|
6174
6166
|
});
|
|
6175
|
-
const C =
|
|
6167
|
+
const C = c.Children.map(a, (p, f) => {
|
|
6176
6168
|
if (f === h) {
|
|
6177
6169
|
const E = {};
|
|
6178
|
-
return s && (E.autoFocus = !0), p.props.tabIndex === void 0 && g === "selectedMenu" && (E.tabIndex = 0), /* @__PURE__ */
|
|
6170
|
+
return s && (E.autoFocus = !0), p.props.tabIndex === void 0 && g === "selectedMenu" && (E.tabIndex = 0), /* @__PURE__ */ c.cloneElement(p, E);
|
|
6179
6171
|
}
|
|
6180
6172
|
return p;
|
|
6181
6173
|
});
|
|
@@ -6235,9 +6227,9 @@ process.env.NODE_ENV !== "production" && (sn.propTypes = {
|
|
|
6235
6227
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
6236
6228
|
});
|
|
6237
6229
|
function ks(t) {
|
|
6238
|
-
return
|
|
6230
|
+
return oe("MuiPopover", t);
|
|
6239
6231
|
}
|
|
6240
|
-
|
|
6232
|
+
ie("MuiPopover", ["root", "paper"]);
|
|
6241
6233
|
function Eo(t, o) {
|
|
6242
6234
|
let n = 0;
|
|
6243
6235
|
return typeof o == "number" ? n = o : o === "center" ? n = t.height / 2 : o === "bottom" && (n = t.height), n;
|
|
@@ -6252,15 +6244,15 @@ function Co(t) {
|
|
|
6252
6244
|
function tt(t) {
|
|
6253
6245
|
return typeof t == "function" ? t() : t;
|
|
6254
6246
|
}
|
|
6255
|
-
const
|
|
6247
|
+
const Ms = (t) => {
|
|
6256
6248
|
const {
|
|
6257
6249
|
classes: o
|
|
6258
6250
|
} = t;
|
|
6259
|
-
return
|
|
6251
|
+
return Q({
|
|
6260
6252
|
root: ["root"],
|
|
6261
6253
|
paper: ["paper"]
|
|
6262
6254
|
}, ks, o);
|
|
6263
|
-
},
|
|
6255
|
+
}, Fs = F(Zo, {
|
|
6264
6256
|
name: "MuiPopover",
|
|
6265
6257
|
slot: "Root",
|
|
6266
6258
|
overridesResolver: (t, o) => o.root
|
|
@@ -6280,8 +6272,8 @@ const Fs = (t) => {
|
|
|
6280
6272
|
maxHeight: "calc(100% - 32px)",
|
|
6281
6273
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
6282
6274
|
outline: 0
|
|
6283
|
-
}), ln = /* @__PURE__ */
|
|
6284
|
-
const r =
|
|
6275
|
+
}), ln = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
6276
|
+
const r = ne({
|
|
6285
6277
|
props: o,
|
|
6286
6278
|
name: "MuiPopover"
|
|
6287
6279
|
}), {
|
|
@@ -6292,7 +6284,7 @@ const Fs = (t) => {
|
|
|
6292
6284
|
horizontal: "left"
|
|
6293
6285
|
},
|
|
6294
6286
|
anchorPosition: l,
|
|
6295
|
-
anchorReference:
|
|
6287
|
+
anchorReference: d = "anchorEl",
|
|
6296
6288
|
children: u,
|
|
6297
6289
|
className: m,
|
|
6298
6290
|
container: g,
|
|
@@ -6312,99 +6304,99 @@ const Fs = (t) => {
|
|
|
6312
6304
|
transitionDuration: f = "auto",
|
|
6313
6305
|
TransitionProps: E = {},
|
|
6314
6306
|
// TODO: remove in v7
|
|
6315
|
-
disableScrollLock:
|
|
6307
|
+
disableScrollLock: S = !1,
|
|
6316
6308
|
...P
|
|
6317
|
-
} = r, N =
|
|
6309
|
+
} = r, N = c.useRef(), A = {
|
|
6318
6310
|
...r,
|
|
6319
6311
|
anchorOrigin: a,
|
|
6320
|
-
anchorReference:
|
|
6312
|
+
anchorReference: d,
|
|
6321
6313
|
elevation: T,
|
|
6322
6314
|
marginThreshold: b,
|
|
6323
6315
|
transformOrigin: C,
|
|
6324
6316
|
TransitionComponent: p,
|
|
6325
6317
|
transitionDuration: f,
|
|
6326
6318
|
TransitionProps: E
|
|
6327
|
-
},
|
|
6328
|
-
if (
|
|
6319
|
+
}, L = Ms(A), D = c.useCallback(() => {
|
|
6320
|
+
if (d === "anchorPosition")
|
|
6329
6321
|
return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
|
|
6330
|
-
const
|
|
6322
|
+
const B = tt(s), z = B && B.nodeType === 1 ? B : xe(N.current).body, U = z.getBoundingClientRect();
|
|
6331
6323
|
if (process.env.NODE_ENV !== "production") {
|
|
6332
|
-
const
|
|
6333
|
-
process.env.NODE_ENV !== "test" &&
|
|
6324
|
+
const se = z.getBoundingClientRect();
|
|
6325
|
+
process.env.NODE_ENV !== "test" && se.top === 0 && se.left === 0 && se.right === 0 && se.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
6334
6326
|
`));
|
|
6335
6327
|
}
|
|
6336
6328
|
return {
|
|
6337
|
-
top:
|
|
6338
|
-
left:
|
|
6329
|
+
top: U.top + Eo(U, a.vertical),
|
|
6330
|
+
left: U.left + Oo(U, a.horizontal)
|
|
6339
6331
|
};
|
|
6340
|
-
}, [s, a.horizontal, a.vertical, l,
|
|
6341
|
-
vertical: Eo(
|
|
6342
|
-
horizontal: Oo(
|
|
6343
|
-
}), [C.horizontal, C.vertical]),
|
|
6344
|
-
const
|
|
6345
|
-
width:
|
|
6346
|
-
height:
|
|
6347
|
-
},
|
|
6348
|
-
if (
|
|
6332
|
+
}, [s, a.horizontal, a.vertical, l, d]), $ = c.useCallback((B) => ({
|
|
6333
|
+
vertical: Eo(B, C.vertical),
|
|
6334
|
+
horizontal: Oo(B, C.horizontal)
|
|
6335
|
+
}), [C.horizontal, C.vertical]), W = c.useCallback((B) => {
|
|
6336
|
+
const z = {
|
|
6337
|
+
width: B.offsetWidth,
|
|
6338
|
+
height: B.offsetHeight
|
|
6339
|
+
}, U = $(z);
|
|
6340
|
+
if (d === "none")
|
|
6349
6341
|
return {
|
|
6350
6342
|
top: null,
|
|
6351
6343
|
left: null,
|
|
6352
|
-
transformOrigin: Co(
|
|
6344
|
+
transformOrigin: Co(U)
|
|
6353
6345
|
};
|
|
6354
|
-
const
|
|
6355
|
-
let
|
|
6356
|
-
const
|
|
6357
|
-
if (b !== null &&
|
|
6358
|
-
const de =
|
|
6359
|
-
|
|
6360
|
-
} else if (b !== null &&
|
|
6361
|
-
const de =
|
|
6362
|
-
|
|
6346
|
+
const se = D();
|
|
6347
|
+
let V = se.top - U.vertical, ee = se.left - U.horizontal;
|
|
6348
|
+
const me = V + z.height, Oe = ee + z.width, ge = Ie(tt(s)), Te = ge.innerHeight - b, he = ge.innerWidth - b;
|
|
6349
|
+
if (b !== null && V < b) {
|
|
6350
|
+
const de = V - b;
|
|
6351
|
+
V -= de, U.vertical += de;
|
|
6352
|
+
} else if (b !== null && me > Te) {
|
|
6353
|
+
const de = me - Te;
|
|
6354
|
+
V -= de, U.vertical += de;
|
|
6363
6355
|
}
|
|
6364
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
6365
|
-
`)), b !== null &&
|
|
6366
|
-
const de =
|
|
6367
|
-
|
|
6356
|
+
if (process.env.NODE_ENV !== "production" && z.height > Te && z.height && Te && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${z.height - Te}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
6357
|
+
`)), b !== null && ee < b) {
|
|
6358
|
+
const de = ee - b;
|
|
6359
|
+
ee -= de, U.horizontal += de;
|
|
6368
6360
|
} else if (Oe > he) {
|
|
6369
6361
|
const de = Oe - he;
|
|
6370
|
-
|
|
6362
|
+
ee -= de, U.horizontal += de;
|
|
6371
6363
|
}
|
|
6372
6364
|
return {
|
|
6373
|
-
top: `${Math.round(
|
|
6374
|
-
left: `${Math.round(
|
|
6375
|
-
transformOrigin: Co(
|
|
6365
|
+
top: `${Math.round(V)}px`,
|
|
6366
|
+
left: `${Math.round(ee)}px`,
|
|
6367
|
+
transformOrigin: Co(U)
|
|
6376
6368
|
};
|
|
6377
|
-
}, [s,
|
|
6378
|
-
const
|
|
6379
|
-
if (!
|
|
6369
|
+
}, [s, d, D, $, b]), [j, R] = c.useState(x), w = c.useCallback(() => {
|
|
6370
|
+
const B = N.current;
|
|
6371
|
+
if (!B)
|
|
6380
6372
|
return;
|
|
6381
|
-
const
|
|
6382
|
-
|
|
6383
|
-
}, [
|
|
6384
|
-
|
|
6385
|
-
const
|
|
6386
|
-
|
|
6387
|
-
},
|
|
6373
|
+
const z = W(B);
|
|
6374
|
+
z.top !== null && B.style.setProperty("top", z.top), z.left !== null && (B.style.left = z.left), B.style.transformOrigin = z.transformOrigin, R(!0);
|
|
6375
|
+
}, [W]);
|
|
6376
|
+
c.useEffect(() => (S && window.addEventListener("scroll", w), () => window.removeEventListener("scroll", w)), [s, S, w]);
|
|
6377
|
+
const M = () => {
|
|
6378
|
+
w();
|
|
6379
|
+
}, H = () => {
|
|
6388
6380
|
R(!1);
|
|
6389
6381
|
};
|
|
6390
|
-
|
|
6391
|
-
x &&
|
|
6392
|
-
}),
|
|
6382
|
+
c.useEffect(() => {
|
|
6383
|
+
x && w();
|
|
6384
|
+
}), c.useImperativeHandle(i, () => x ? {
|
|
6393
6385
|
updatePosition: () => {
|
|
6394
|
-
|
|
6386
|
+
w();
|
|
6395
6387
|
}
|
|
6396
|
-
} : null, [x,
|
|
6388
|
+
} : null, [x, w]), c.useEffect(() => {
|
|
6397
6389
|
if (!x)
|
|
6398
6390
|
return;
|
|
6399
|
-
const
|
|
6400
|
-
|
|
6401
|
-
}),
|
|
6402
|
-
return
|
|
6403
|
-
|
|
6391
|
+
const B = Ao(() => {
|
|
6392
|
+
w();
|
|
6393
|
+
}), z = Ie(tt(s));
|
|
6394
|
+
return z.addEventListener("resize", B), () => {
|
|
6395
|
+
B.clear(), z.removeEventListener("resize", B);
|
|
6404
6396
|
};
|
|
6405
|
-
}, [s, x,
|
|
6397
|
+
}, [s, x, w]);
|
|
6406
6398
|
let I = f;
|
|
6407
|
-
const
|
|
6399
|
+
const _ = {
|
|
6408
6400
|
slots: {
|
|
6409
6401
|
transition: p,
|
|
6410
6402
|
...y
|
|
@@ -6414,19 +6406,19 @@ const Fs = (t) => {
|
|
|
6414
6406
|
paper: O,
|
|
6415
6407
|
...h
|
|
6416
6408
|
}
|
|
6417
|
-
}, [le,
|
|
6409
|
+
}, [le, ye] = te("transition", {
|
|
6418
6410
|
elementType: vt,
|
|
6419
|
-
externalForwardedProps:
|
|
6420
|
-
ownerState:
|
|
6421
|
-
getSlotProps: (
|
|
6422
|
-
...
|
|
6423
|
-
onEntering: (
|
|
6424
|
-
var
|
|
6425
|
-
(
|
|
6411
|
+
externalForwardedProps: _,
|
|
6412
|
+
ownerState: A,
|
|
6413
|
+
getSlotProps: (B) => ({
|
|
6414
|
+
...B,
|
|
6415
|
+
onEntering: (z, U) => {
|
|
6416
|
+
var se;
|
|
6417
|
+
(se = B.onEntering) == null || se.call(B, z, U), M();
|
|
6426
6418
|
},
|
|
6427
|
-
onExited: (
|
|
6428
|
-
var
|
|
6429
|
-
(
|
|
6419
|
+
onExited: (z) => {
|
|
6420
|
+
var U;
|
|
6421
|
+
(U = B.onExited) == null || U.call(B, z), H();
|
|
6430
6422
|
}
|
|
6431
6423
|
}),
|
|
6432
6424
|
additionalProps: {
|
|
@@ -6435,15 +6427,15 @@ const Fs = (t) => {
|
|
|
6435
6427
|
}
|
|
6436
6428
|
});
|
|
6437
6429
|
f === "auto" && !le.muiSupportAuto && (I = void 0);
|
|
6438
|
-
const
|
|
6439
|
-
slots:
|
|
6440
|
-
slotProps:
|
|
6430
|
+
const Y = g || (s ? xe(tt(s)).body : void 0), [X, {
|
|
6431
|
+
slots: Z,
|
|
6432
|
+
slotProps: be,
|
|
6441
6433
|
...fe
|
|
6442
|
-
}] =
|
|
6434
|
+
}] = te("root", {
|
|
6443
6435
|
ref: n,
|
|
6444
|
-
elementType:
|
|
6436
|
+
elementType: Fs,
|
|
6445
6437
|
externalForwardedProps: {
|
|
6446
|
-
...
|
|
6438
|
+
..._,
|
|
6447
6439
|
...P
|
|
6448
6440
|
},
|
|
6449
6441
|
shouldForwardComponentProp: !0,
|
|
@@ -6452,20 +6444,20 @@ const Fs = (t) => {
|
|
|
6452
6444
|
backdrop: y.backdrop
|
|
6453
6445
|
},
|
|
6454
6446
|
slotProps: {
|
|
6455
|
-
backdrop:
|
|
6447
|
+
backdrop: Kn(typeof h.backdrop == "function" ? h.backdrop(A) : h.backdrop, {
|
|
6456
6448
|
invisible: !0
|
|
6457
6449
|
})
|
|
6458
6450
|
},
|
|
6459
|
-
container:
|
|
6451
|
+
container: Y,
|
|
6460
6452
|
open: x
|
|
6461
6453
|
},
|
|
6462
|
-
ownerState:
|
|
6463
|
-
className:
|
|
6464
|
-
}), [ve,
|
|
6454
|
+
ownerState: A,
|
|
6455
|
+
className: J(L.root, m)
|
|
6456
|
+
}), [ve, re] = te("paper", {
|
|
6465
6457
|
ref: N,
|
|
6466
|
-
className:
|
|
6458
|
+
className: L.paper,
|
|
6467
6459
|
elementType: an,
|
|
6468
|
-
externalForwardedProps:
|
|
6460
|
+
externalForwardedProps: _,
|
|
6469
6461
|
shouldForwardComponentProp: !0,
|
|
6470
6462
|
additionalProps: {
|
|
6471
6463
|
elevation: T,
|
|
@@ -6473,20 +6465,20 @@ const Fs = (t) => {
|
|
|
6473
6465
|
opacity: 0
|
|
6474
6466
|
}
|
|
6475
6467
|
},
|
|
6476
|
-
ownerState:
|
|
6468
|
+
ownerState: A
|
|
6477
6469
|
});
|
|
6478
|
-
return /* @__PURE__ */ v(
|
|
6470
|
+
return /* @__PURE__ */ v(X, {
|
|
6479
6471
|
...fe,
|
|
6480
|
-
|
|
6481
|
-
slots:
|
|
6482
|
-
slotProps:
|
|
6483
|
-
disableScrollLock:
|
|
6472
|
+
...!At(X) && {
|
|
6473
|
+
slots: Z,
|
|
6474
|
+
slotProps: be,
|
|
6475
|
+
disableScrollLock: S
|
|
6484
6476
|
},
|
|
6485
6477
|
children: /* @__PURE__ */ v(le, {
|
|
6486
|
-
...
|
|
6478
|
+
...ye,
|
|
6487
6479
|
timeout: I,
|
|
6488
6480
|
children: /* @__PURE__ */ v(ve, {
|
|
6489
|
-
...
|
|
6481
|
+
...re,
|
|
6490
6482
|
children: u
|
|
6491
6483
|
})
|
|
6492
6484
|
})
|
|
@@ -6501,7 +6493,7 @@ process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
|
6501
6493
|
* A ref for imperative actions.
|
|
6502
6494
|
* It currently only supports updatePosition() action.
|
|
6503
6495
|
*/
|
|
6504
|
-
action:
|
|
6496
|
+
action: Me,
|
|
6505
6497
|
/**
|
|
6506
6498
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
6507
6499
|
* or a function that returns either.
|
|
@@ -6554,7 +6546,7 @@ process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
|
6554
6546
|
anchorReference: e.oneOf(["anchorEl", "anchorPosition", "none"]),
|
|
6555
6547
|
/**
|
|
6556
6548
|
* A backdrop component. This prop enables custom backdrop rendering.
|
|
6557
|
-
* @deprecated Use `slots.backdrop` instead. This prop will be removed in
|
|
6549
|
+
* @deprecated Use `slots.backdrop` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
6558
6550
|
* @default styled(Backdrop, {
|
|
6559
6551
|
* name: 'MuiModal',
|
|
6560
6552
|
* slot: 'Backdrop',
|
|
@@ -6568,7 +6560,7 @@ process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
|
6568
6560
|
BackdropComponent: e.elementType,
|
|
6569
6561
|
/**
|
|
6570
6562
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
6571
|
-
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in
|
|
6563
|
+
* @deprecated Use `slotProps.backdrop` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
6572
6564
|
*/
|
|
6573
6565
|
BackdropProps: e.object,
|
|
6574
6566
|
/**
|
|
@@ -6600,7 +6592,7 @@ process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
|
6600
6592
|
* The elevation of the popover.
|
|
6601
6593
|
* @default 8
|
|
6602
6594
|
*/
|
|
6603
|
-
elevation:
|
|
6595
|
+
elevation: ko,
|
|
6604
6596
|
/**
|
|
6605
6597
|
* Specifies how close to the edge of the window the popover can appear.
|
|
6606
6598
|
* If null, the popover will not be constrained by the window.
|
|
@@ -6670,7 +6662,7 @@ process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
|
6670
6662
|
/**
|
|
6671
6663
|
* The component used for the transition.
|
|
6672
6664
|
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
6673
|
-
* @deprecated use the `slots.transition` prop instead. This prop will be removed in
|
|
6665
|
+
* @deprecated use the `slots.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
6674
6666
|
* @default Grow
|
|
6675
6667
|
*/
|
|
6676
6668
|
TransitionComponent: e.elementType,
|
|
@@ -6686,36 +6678,36 @@ process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
|
6686
6678
|
/**
|
|
6687
6679
|
* Props applied to the transition element.
|
|
6688
6680
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
6689
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
6681
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
6690
6682
|
* @default {}
|
|
6691
6683
|
*/
|
|
6692
6684
|
TransitionProps: e.object
|
|
6693
6685
|
});
|
|
6694
|
-
function
|
|
6695
|
-
return
|
|
6686
|
+
function js(t) {
|
|
6687
|
+
return oe("MuiMenu", t);
|
|
6696
6688
|
}
|
|
6697
|
-
|
|
6689
|
+
ie("MuiMenu", ["root", "paper", "list"]);
|
|
6698
6690
|
const $s = {
|
|
6699
6691
|
vertical: "top",
|
|
6700
6692
|
horizontal: "right"
|
|
6701
|
-
},
|
|
6693
|
+
}, As = {
|
|
6702
6694
|
vertical: "top",
|
|
6703
6695
|
horizontal: "left"
|
|
6704
|
-
},
|
|
6696
|
+
}, Ls = (t) => {
|
|
6705
6697
|
const {
|
|
6706
6698
|
classes: o
|
|
6707
6699
|
} = t;
|
|
6708
|
-
return
|
|
6700
|
+
return Q({
|
|
6709
6701
|
root: ["root"],
|
|
6710
6702
|
paper: ["paper"],
|
|
6711
6703
|
list: ["list"]
|
|
6712
|
-
},
|
|
6713
|
-
},
|
|
6704
|
+
}, js, o);
|
|
6705
|
+
}, Ds = F(ln, {
|
|
6714
6706
|
shouldForwardProp: (t) => Ne(t) || t === "classes",
|
|
6715
6707
|
name: "MuiMenu",
|
|
6716
6708
|
slot: "Root",
|
|
6717
6709
|
overridesResolver: (t, o) => o.root
|
|
6718
|
-
})({}),
|
|
6710
|
+
})({}), Bs = F(an, {
|
|
6719
6711
|
name: "MuiMenu",
|
|
6720
6712
|
slot: "Paper",
|
|
6721
6713
|
overridesResolver: (t, o) => o.paper
|
|
@@ -6726,15 +6718,15 @@ const $s = {
|
|
|
6726
6718
|
maxHeight: "calc(100% - 96px)",
|
|
6727
6719
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
6728
6720
|
WebkitOverflowScrolling: "touch"
|
|
6729
|
-
}),
|
|
6721
|
+
}), zs = F(sn, {
|
|
6730
6722
|
name: "MuiMenu",
|
|
6731
6723
|
slot: "List",
|
|
6732
6724
|
overridesResolver: (t, o) => o.list
|
|
6733
6725
|
})({
|
|
6734
6726
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
6735
6727
|
outline: 0
|
|
6736
|
-
}), cn = /* @__PURE__ */
|
|
6737
|
-
const r =
|
|
6728
|
+
}), cn = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
6729
|
+
const r = ne({
|
|
6738
6730
|
props: o,
|
|
6739
6731
|
name: "MuiMenu"
|
|
6740
6732
|
}), {
|
|
@@ -6742,7 +6734,7 @@ const $s = {
|
|
|
6742
6734
|
children: s,
|
|
6743
6735
|
className: a,
|
|
6744
6736
|
disableAutoFocusItem: l = !1,
|
|
6745
|
-
MenuListProps:
|
|
6737
|
+
MenuListProps: d = {},
|
|
6746
6738
|
onClose: u,
|
|
6747
6739
|
open: m,
|
|
6748
6740
|
PaperProps: g = {},
|
|
@@ -6760,64 +6752,64 @@ const $s = {
|
|
|
6760
6752
|
...r,
|
|
6761
6753
|
autoFocus: i,
|
|
6762
6754
|
disableAutoFocusItem: l,
|
|
6763
|
-
MenuListProps:
|
|
6755
|
+
MenuListProps: d,
|
|
6764
6756
|
onEntering: x,
|
|
6765
6757
|
PaperProps: g,
|
|
6766
6758
|
transitionDuration: b,
|
|
6767
6759
|
TransitionProps: O,
|
|
6768
6760
|
variant: y
|
|
6769
|
-
},
|
|
6761
|
+
}, S = Ls(E), P = i && !l && m, N = c.useRef(null), A = (I, _) => {
|
|
6770
6762
|
N.current && N.current.adjustStyleForScrollbar(I, {
|
|
6771
6763
|
direction: f ? "rtl" : "ltr"
|
|
6772
|
-
}), x && x(I,
|
|
6773
|
-
},
|
|
6764
|
+
}), x && x(I, _);
|
|
6765
|
+
}, L = (I) => {
|
|
6774
6766
|
I.key === "Tab" && (I.preventDefault(), u && u(I, "tabKeyDown"));
|
|
6775
6767
|
};
|
|
6776
|
-
let
|
|
6777
|
-
|
|
6778
|
-
/* @__PURE__ */
|
|
6779
|
-
`)), I.props.disabled || (y === "selectedMenu" && I.props.selected ||
|
|
6768
|
+
let D = -1;
|
|
6769
|
+
c.Children.map(s, (I, _) => {
|
|
6770
|
+
/* @__PURE__ */ c.isValidElement(I) && (process.env.NODE_ENV !== "production" && Wt.isFragment(I) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
6771
|
+
`)), I.props.disabled || (y === "selectedMenu" && I.props.selected || D === -1) && (D = _));
|
|
6780
6772
|
});
|
|
6781
|
-
const
|
|
6773
|
+
const $ = {
|
|
6782
6774
|
slots: h,
|
|
6783
6775
|
slotProps: {
|
|
6784
|
-
list:
|
|
6776
|
+
list: d,
|
|
6785
6777
|
transition: O,
|
|
6786
6778
|
paper: g,
|
|
6787
6779
|
...C
|
|
6788
6780
|
}
|
|
6789
|
-
},
|
|
6781
|
+
}, W = An({
|
|
6790
6782
|
elementType: h.root,
|
|
6791
6783
|
externalSlotProps: C.root,
|
|
6792
6784
|
ownerState: E,
|
|
6793
|
-
className: [
|
|
6794
|
-
}), [j, R] =
|
|
6795
|
-
className:
|
|
6796
|
-
elementType:
|
|
6797
|
-
externalForwardedProps:
|
|
6785
|
+
className: [S.root, a]
|
|
6786
|
+
}), [j, R] = te("paper", {
|
|
6787
|
+
className: S.paper,
|
|
6788
|
+
elementType: Bs,
|
|
6789
|
+
externalForwardedProps: $,
|
|
6798
6790
|
shouldForwardComponentProp: !0,
|
|
6799
6791
|
ownerState: E
|
|
6800
|
-
}), [
|
|
6801
|
-
className:
|
|
6802
|
-
elementType:
|
|
6792
|
+
}), [w, M] = te("list", {
|
|
6793
|
+
className: J(S.list, d.className),
|
|
6794
|
+
elementType: zs,
|
|
6803
6795
|
shouldForwardComponentProp: !0,
|
|
6804
|
-
externalForwardedProps:
|
|
6796
|
+
externalForwardedProps: $,
|
|
6805
6797
|
getSlotProps: (I) => ({
|
|
6806
6798
|
...I,
|
|
6807
|
-
onKeyDown: (
|
|
6799
|
+
onKeyDown: (_) => {
|
|
6808
6800
|
var le;
|
|
6809
|
-
|
|
6801
|
+
L(_), (le = I.onKeyDown) == null || le.call(I, _);
|
|
6810
6802
|
}
|
|
6811
6803
|
}),
|
|
6812
6804
|
ownerState: E
|
|
6813
|
-
}),
|
|
6814
|
-
return /* @__PURE__ */ v(
|
|
6805
|
+
}), H = typeof $.slotProps.transition == "function" ? $.slotProps.transition(E) : $.slotProps.transition;
|
|
6806
|
+
return /* @__PURE__ */ v(Ds, {
|
|
6815
6807
|
onClose: u,
|
|
6816
6808
|
anchorOrigin: {
|
|
6817
6809
|
vertical: "bottom",
|
|
6818
6810
|
horizontal: f ? "right" : "left"
|
|
6819
6811
|
},
|
|
6820
|
-
transformOrigin: f ? $s :
|
|
6812
|
+
transformOrigin: f ? $s : As,
|
|
6821
6813
|
slots: {
|
|
6822
6814
|
root: h.root,
|
|
6823
6815
|
paper: j,
|
|
@@ -6828,14 +6820,14 @@ const $s = {
|
|
|
6828
6820
|
}
|
|
6829
6821
|
},
|
|
6830
6822
|
slotProps: {
|
|
6831
|
-
root:
|
|
6823
|
+
root: W,
|
|
6832
6824
|
paper: R,
|
|
6833
6825
|
backdrop: typeof C.backdrop == "function" ? C.backdrop(E) : C.backdrop,
|
|
6834
6826
|
transition: {
|
|
6835
|
-
...
|
|
6827
|
+
...H,
|
|
6836
6828
|
onEntering: (...I) => {
|
|
6837
|
-
var
|
|
6838
|
-
|
|
6829
|
+
var _;
|
|
6830
|
+
A(...I), (_ = H == null ? void 0 : H.onEntering) == null || _.call(H, ...I);
|
|
6839
6831
|
}
|
|
6840
6832
|
}
|
|
6841
6833
|
},
|
|
@@ -6845,12 +6837,12 @@ const $s = {
|
|
|
6845
6837
|
ownerState: E,
|
|
6846
6838
|
...p,
|
|
6847
6839
|
classes: T,
|
|
6848
|
-
children: /* @__PURE__ */ v(
|
|
6840
|
+
children: /* @__PURE__ */ v(w, {
|
|
6849
6841
|
actions: N,
|
|
6850
|
-
autoFocus: i && (
|
|
6842
|
+
autoFocus: i && (D === -1 || l),
|
|
6851
6843
|
autoFocusItem: P,
|
|
6852
6844
|
variant: y,
|
|
6853
|
-
...
|
|
6845
|
+
...M,
|
|
6854
6846
|
children: s
|
|
6855
6847
|
})
|
|
6856
6848
|
});
|
|
@@ -6895,7 +6887,7 @@ process.env.NODE_ENV !== "production" && (cn.propTypes = {
|
|
|
6895
6887
|
disableAutoFocusItem: e.bool,
|
|
6896
6888
|
/**
|
|
6897
6889
|
* Props applied to the [`MenuList`](https://mui.com/material-ui/api/menu-list/) element.
|
|
6898
|
-
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in
|
|
6890
|
+
* @deprecated use the `slotProps.list` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
6899
6891
|
* @default {}
|
|
6900
6892
|
*/
|
|
6901
6893
|
MenuListProps: e.object,
|
|
@@ -6956,7 +6948,7 @@ process.env.NODE_ENV !== "production" && (cn.propTypes = {
|
|
|
6956
6948
|
/**
|
|
6957
6949
|
* Props applied to the transition element.
|
|
6958
6950
|
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
6959
|
-
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in
|
|
6951
|
+
* @deprecated use the `slotProps.transition` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
6960
6952
|
* @default {}
|
|
6961
6953
|
*/
|
|
6962
6954
|
TransitionProps: e.object,
|
|
@@ -6966,10 +6958,10 @@ process.env.NODE_ENV !== "production" && (cn.propTypes = {
|
|
|
6966
6958
|
*/
|
|
6967
6959
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
6968
6960
|
});
|
|
6969
|
-
function
|
|
6970
|
-
return
|
|
6961
|
+
function Ws(t) {
|
|
6962
|
+
return oe("MuiNativeSelect", t);
|
|
6971
6963
|
}
|
|
6972
|
-
const Kt =
|
|
6964
|
+
const Kt = ie("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Us = (t) => {
|
|
6973
6965
|
const {
|
|
6974
6966
|
classes: o,
|
|
6975
6967
|
variant: n,
|
|
@@ -6981,7 +6973,7 @@ const Kt = se("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
6981
6973
|
select: ["select", n, r && "disabled", i && "multiple", a && "error"],
|
|
6982
6974
|
icon: ["icon", `icon${K(n)}`, s && "iconOpen", r && "disabled"]
|
|
6983
6975
|
};
|
|
6984
|
-
return
|
|
6976
|
+
return Q(l, Ws, o);
|
|
6985
6977
|
}, dn = F("select")(({
|
|
6986
6978
|
theme: t
|
|
6987
6979
|
}) => ({
|
|
@@ -7044,7 +7036,7 @@ const Kt = se("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
7044
7036
|
}
|
|
7045
7037
|
}
|
|
7046
7038
|
}]
|
|
7047
|
-
})),
|
|
7039
|
+
})), Vs = F(dn, {
|
|
7048
7040
|
name: "MuiNativeSelect",
|
|
7049
7041
|
slot: "Select",
|
|
7050
7042
|
shouldForwardProp: Ne,
|
|
@@ -7093,7 +7085,7 @@ const Kt = se("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
7093
7085
|
right: 7
|
|
7094
7086
|
}
|
|
7095
7087
|
}]
|
|
7096
|
-
})),
|
|
7088
|
+
})), Hs = F(pn, {
|
|
7097
7089
|
name: "MuiNativeSelect",
|
|
7098
7090
|
slot: "Icon",
|
|
7099
7091
|
overridesResolver: (t, o) => {
|
|
@@ -7102,29 +7094,29 @@ const Kt = se("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
|
|
|
7102
7094
|
} = t;
|
|
7103
7095
|
return [o.icon, n.variant && o[`icon${K(n.variant)}`], n.open && o.iconOpen];
|
|
7104
7096
|
}
|
|
7105
|
-
})({}), un = /* @__PURE__ */
|
|
7097
|
+
})({}), un = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
7106
7098
|
const {
|
|
7107
7099
|
className: r,
|
|
7108
7100
|
disabled: i,
|
|
7109
7101
|
error: s,
|
|
7110
7102
|
IconComponent: a,
|
|
7111
7103
|
inputRef: l,
|
|
7112
|
-
variant:
|
|
7104
|
+
variant: d = "standard",
|
|
7113
7105
|
...u
|
|
7114
7106
|
} = o, m = {
|
|
7115
7107
|
...o,
|
|
7116
7108
|
disabled: i,
|
|
7117
|
-
variant:
|
|
7109
|
+
variant: d,
|
|
7118
7110
|
error: s
|
|
7119
|
-
}, g =
|
|
7120
|
-
return /* @__PURE__ */ ce(
|
|
7121
|
-
children: [/* @__PURE__ */ v(
|
|
7111
|
+
}, g = Us(m);
|
|
7112
|
+
return /* @__PURE__ */ ce(c.Fragment, {
|
|
7113
|
+
children: [/* @__PURE__ */ v(Vs, {
|
|
7122
7114
|
ownerState: m,
|
|
7123
|
-
className:
|
|
7115
|
+
className: J(g.select, r),
|
|
7124
7116
|
disabled: i,
|
|
7125
7117
|
ref: l || n,
|
|
7126
7118
|
...u
|
|
7127
|
-
}), o.multiple ? null : /* @__PURE__ */ v(
|
|
7119
|
+
}), o.multiple ? null : /* @__PURE__ */ v(Hs, {
|
|
7128
7120
|
as: a,
|
|
7129
7121
|
ownerState: m,
|
|
7130
7122
|
className: g.icon
|
|
@@ -7161,7 +7153,7 @@ process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
|
7161
7153
|
* Use that prop to pass a ref to the native select element.
|
|
7162
7154
|
* @deprecated
|
|
7163
7155
|
*/
|
|
7164
|
-
inputRef:
|
|
7156
|
+
inputRef: Me,
|
|
7165
7157
|
/**
|
|
7166
7158
|
* @ignore
|
|
7167
7159
|
*/
|
|
@@ -7187,7 +7179,7 @@ process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
|
7187
7179
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
7188
7180
|
});
|
|
7189
7181
|
var Ro;
|
|
7190
|
-
const
|
|
7182
|
+
const qs = F("fieldset", {
|
|
7191
7183
|
shouldForwardProp: Ne
|
|
7192
7184
|
})({
|
|
7193
7185
|
textAlign: "left",
|
|
@@ -7204,7 +7196,7 @@ const _s = F("fieldset", {
|
|
|
7204
7196
|
borderWidth: 1,
|
|
7205
7197
|
overflow: "hidden",
|
|
7206
7198
|
minWidth: "0%"
|
|
7207
|
-
}),
|
|
7199
|
+
}), _s = F("legend", {
|
|
7208
7200
|
shouldForwardProp: Ne
|
|
7209
7201
|
})(ae(({
|
|
7210
7202
|
theme: t
|
|
@@ -7276,18 +7268,18 @@ function fn(t) {
|
|
|
7276
7268
|
label: i,
|
|
7277
7269
|
notched: s,
|
|
7278
7270
|
...a
|
|
7279
|
-
} = t, l = i != null && i !== "",
|
|
7271
|
+
} = t, l = i != null && i !== "", d = {
|
|
7280
7272
|
...t,
|
|
7281
7273
|
notched: s,
|
|
7282
7274
|
withLabel: l
|
|
7283
7275
|
};
|
|
7284
|
-
return /* @__PURE__ */ v(
|
|
7276
|
+
return /* @__PURE__ */ v(qs, {
|
|
7285
7277
|
"aria-hidden": !0,
|
|
7286
7278
|
className: r,
|
|
7287
|
-
ownerState:
|
|
7279
|
+
ownerState: d,
|
|
7288
7280
|
...a,
|
|
7289
|
-
children: /* @__PURE__ */ v(
|
|
7290
|
-
ownerState:
|
|
7281
|
+
children: /* @__PURE__ */ v(_s, {
|
|
7282
|
+
ownerState: d,
|
|
7291
7283
|
children: l ? /* @__PURE__ */ v("span", {
|
|
7292
7284
|
children: i
|
|
7293
7285
|
}) : (
|
|
@@ -7327,20 +7319,20 @@ process.env.NODE_ENV !== "production" && (fn.propTypes = {
|
|
|
7327
7319
|
*/
|
|
7328
7320
|
style: e.object
|
|
7329
7321
|
});
|
|
7330
|
-
const
|
|
7322
|
+
const Ks = (t) => {
|
|
7331
7323
|
const {
|
|
7332
7324
|
classes: o
|
|
7333
|
-
} = t, r =
|
|
7325
|
+
} = t, r = Q({
|
|
7334
7326
|
root: ["root"],
|
|
7335
7327
|
notchedOutline: ["notchedOutline"],
|
|
7336
7328
|
input: ["input"]
|
|
7337
|
-
},
|
|
7329
|
+
}, Sr, o);
|
|
7338
7330
|
return {
|
|
7339
7331
|
...o,
|
|
7340
7332
|
// forward classes to the InputBase
|
|
7341
7333
|
...r
|
|
7342
7334
|
};
|
|
7343
|
-
},
|
|
7335
|
+
}, Gs = F(Ot, {
|
|
7344
7336
|
shouldForwardProp: (t) => Ne(t) || t === "classes",
|
|
7345
7337
|
name: "MuiOutlinedInput",
|
|
7346
7338
|
slot: "Root",
|
|
@@ -7415,7 +7407,7 @@ const Gs = (t) => {
|
|
|
7415
7407
|
}
|
|
7416
7408
|
}]
|
|
7417
7409
|
};
|
|
7418
|
-
})),
|
|
7410
|
+
})), Xs = F(fn, {
|
|
7419
7411
|
name: "MuiOutlinedInput",
|
|
7420
7412
|
slot: "NotchedOutline",
|
|
7421
7413
|
overridesResolver: (t, o) => o.notchedOutline
|
|
@@ -7426,7 +7418,7 @@ const Gs = (t) => {
|
|
|
7426
7418
|
return {
|
|
7427
7419
|
borderColor: t.vars ? `rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : o
|
|
7428
7420
|
};
|
|
7429
|
-
})),
|
|
7421
|
+
})), Ys = F(Ct, {
|
|
7430
7422
|
name: "MuiOutlinedInput",
|
|
7431
7423
|
slot: "Input",
|
|
7432
7424
|
overridesResolver: Et
|
|
@@ -7483,22 +7475,22 @@ const Gs = (t) => {
|
|
|
7483
7475
|
paddingRight: 0
|
|
7484
7476
|
}
|
|
7485
7477
|
}]
|
|
7486
|
-
}))), It = /* @__PURE__ */
|
|
7478
|
+
}))), It = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
7487
7479
|
var r;
|
|
7488
|
-
const i =
|
|
7480
|
+
const i = ne({
|
|
7489
7481
|
props: o,
|
|
7490
7482
|
name: "MuiOutlinedInput"
|
|
7491
7483
|
}), {
|
|
7492
7484
|
components: s = {},
|
|
7493
7485
|
fullWidth: a = !1,
|
|
7494
7486
|
inputComponent: l = "input",
|
|
7495
|
-
label:
|
|
7487
|
+
label: d,
|
|
7496
7488
|
multiline: u = !1,
|
|
7497
7489
|
notched: m,
|
|
7498
7490
|
slots: g = {},
|
|
7499
7491
|
type: T = "text",
|
|
7500
7492
|
...b
|
|
7501
|
-
} = i, x =
|
|
7493
|
+
} = i, x = Ks(i), O = Ke(), y = _e({
|
|
7502
7494
|
props: i,
|
|
7503
7495
|
muiFormControl: O,
|
|
7504
7496
|
states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
|
|
@@ -7514,18 +7506,18 @@ const Gs = (t) => {
|
|
|
7514
7506
|
multiline: u,
|
|
7515
7507
|
size: y.size,
|
|
7516
7508
|
type: T
|
|
7517
|
-
}, C = g.root ?? s.Root ??
|
|
7509
|
+
}, C = g.root ?? s.Root ?? Gs, p = g.input ?? s.Input ?? Ys;
|
|
7518
7510
|
return /* @__PURE__ */ v(Rt, {
|
|
7519
7511
|
slots: {
|
|
7520
7512
|
root: C,
|
|
7521
7513
|
input: p
|
|
7522
7514
|
},
|
|
7523
|
-
renderSuffix: (f) => /* @__PURE__ */ v(
|
|
7515
|
+
renderSuffix: (f) => /* @__PURE__ */ v(Xs, {
|
|
7524
7516
|
ownerState: h,
|
|
7525
7517
|
className: x.notchedOutline,
|
|
7526
|
-
label:
|
|
7527
|
-
children: [
|
|
7528
|
-
})) :
|
|
7518
|
+
label: d != null && d !== "" && y.required ? r || (r = /* @__PURE__ */ ce(c.Fragment, {
|
|
7519
|
+
children: [d, " ", "*"]
|
|
7520
|
+
})) : d,
|
|
7529
7521
|
notched: typeof m < "u" ? m : !!(f.startAdornment || f.filled || f.focused)
|
|
7530
7522
|
}),
|
|
7531
7523
|
fullWidth: a,
|
|
@@ -7569,7 +7561,7 @@ process.env.NODE_ENV !== "production" && (It.propTypes = {
|
|
|
7569
7561
|
/**
|
|
7570
7562
|
* The components used for each slot inside.
|
|
7571
7563
|
*
|
|
7572
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in
|
|
7564
|
+
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
7573
7565
|
*
|
|
7574
7566
|
* @default {}
|
|
7575
7567
|
*/
|
|
@@ -7618,7 +7610,7 @@ process.env.NODE_ENV !== "production" && (It.propTypes = {
|
|
|
7618
7610
|
/**
|
|
7619
7611
|
* Pass a ref to the `input` element.
|
|
7620
7612
|
*/
|
|
7621
|
-
inputRef:
|
|
7613
|
+
inputRef: Me,
|
|
7622
7614
|
/**
|
|
7623
7615
|
* The label of the `input`. It is only used for layout. The actual labelling
|
|
7624
7616
|
* is handled by `InputLabel`.
|
|
@@ -7707,11 +7699,11 @@ process.env.NODE_ENV !== "production" && (It.propTypes = {
|
|
|
7707
7699
|
});
|
|
7708
7700
|
It.muiName = "Input";
|
|
7709
7701
|
function mn(t) {
|
|
7710
|
-
return
|
|
7702
|
+
return oe("MuiSelect", t);
|
|
7711
7703
|
}
|
|
7712
|
-
const Qe =
|
|
7704
|
+
const Qe = ie("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
|
|
7713
7705
|
var So;
|
|
7714
|
-
const
|
|
7706
|
+
const Zs = F(dn, {
|
|
7715
7707
|
name: "MuiSelect",
|
|
7716
7708
|
slot: "Select",
|
|
7717
7709
|
overridesResolver: (t, o) => {
|
|
@@ -7745,7 +7737,7 @@ const Js = F(dn, {
|
|
|
7745
7737
|
whiteSpace: "nowrap",
|
|
7746
7738
|
overflow: "hidden"
|
|
7747
7739
|
}
|
|
7748
|
-
}),
|
|
7740
|
+
}), Js = F(pn, {
|
|
7749
7741
|
name: "MuiSelect",
|
|
7750
7742
|
slot: "Icon",
|
|
7751
7743
|
overridesResolver: (t, o) => {
|
|
@@ -7754,7 +7746,7 @@ const Js = F(dn, {
|
|
|
7754
7746
|
} = t;
|
|
7755
7747
|
return [o.icon, n.variant && o[`icon${K(n.variant)}`], n.open && o.iconOpen];
|
|
7756
7748
|
}
|
|
7757
|
-
})({}),
|
|
7749
|
+
})({}), Qs = F("input", {
|
|
7758
7750
|
shouldForwardProp: (t) => vn(t) && t !== "classes",
|
|
7759
7751
|
name: "MuiSelect",
|
|
7760
7752
|
slot: "NativeInput",
|
|
@@ -7771,10 +7763,10 @@ const Js = F(dn, {
|
|
|
7771
7763
|
function wo(t, o) {
|
|
7772
7764
|
return typeof o == "object" && o !== null ? t === o : String(t) === String(o);
|
|
7773
7765
|
}
|
|
7774
|
-
function
|
|
7766
|
+
function ei(t) {
|
|
7775
7767
|
return t == null || typeof t == "string" && !t.trim();
|
|
7776
7768
|
}
|
|
7777
|
-
const
|
|
7769
|
+
const ti = (t) => {
|
|
7778
7770
|
const {
|
|
7779
7771
|
classes: o,
|
|
7780
7772
|
variant: n,
|
|
@@ -7787,8 +7779,8 @@ const oi = (t) => {
|
|
|
7787
7779
|
icon: ["icon", `icon${K(n)}`, s && "iconOpen", r && "disabled"],
|
|
7788
7780
|
nativeInput: ["nativeInput"]
|
|
7789
7781
|
};
|
|
7790
|
-
return
|
|
7791
|
-
}, bn = /* @__PURE__ */
|
|
7782
|
+
return Q(l, mn, o);
|
|
7783
|
+
}, bn = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
7792
7784
|
var Zt;
|
|
7793
7785
|
const {
|
|
7794
7786
|
"aria-describedby": r,
|
|
@@ -7796,7 +7788,7 @@ const oi = (t) => {
|
|
|
7796
7788
|
autoFocus: s,
|
|
7797
7789
|
autoWidth: a,
|
|
7798
7790
|
children: l,
|
|
7799
|
-
className:
|
|
7791
|
+
className: d,
|
|
7800
7792
|
defaultOpen: u,
|
|
7801
7793
|
defaultValue: m,
|
|
7802
7794
|
disabled: g,
|
|
@@ -7810,162 +7802,162 @@ const oi = (t) => {
|
|
|
7810
7802
|
name: p,
|
|
7811
7803
|
onBlur: f,
|
|
7812
7804
|
onChange: E,
|
|
7813
|
-
onClose:
|
|
7805
|
+
onClose: S,
|
|
7814
7806
|
onFocus: P,
|
|
7815
7807
|
onOpen: N,
|
|
7816
|
-
open:
|
|
7817
|
-
readOnly:
|
|
7818
|
-
renderValue:
|
|
7819
|
-
required:
|
|
7820
|
-
SelectDisplayProps:
|
|
7808
|
+
open: A,
|
|
7809
|
+
readOnly: L,
|
|
7810
|
+
renderValue: D,
|
|
7811
|
+
required: $,
|
|
7812
|
+
SelectDisplayProps: W = {},
|
|
7821
7813
|
tabIndex: j,
|
|
7822
7814
|
// catching `type` from Input which makes no sense for SelectInput
|
|
7823
7815
|
type: R,
|
|
7824
|
-
value:
|
|
7825
|
-
variant:
|
|
7826
|
-
...
|
|
7827
|
-
} = o, [I,
|
|
7828
|
-
controlled:
|
|
7816
|
+
value: w,
|
|
7817
|
+
variant: M = "standard",
|
|
7818
|
+
...H
|
|
7819
|
+
} = o, [I, _] = no({
|
|
7820
|
+
controlled: w,
|
|
7829
7821
|
default: m,
|
|
7830
7822
|
name: "Select"
|
|
7831
|
-
}), [le,
|
|
7832
|
-
controlled:
|
|
7823
|
+
}), [le, ye] = no({
|
|
7824
|
+
controlled: A,
|
|
7833
7825
|
default: u,
|
|
7834
7826
|
name: "Select"
|
|
7835
|
-
}),
|
|
7827
|
+
}), Y = c.useRef(null), X = c.useRef(null), [Z, be] = c.useState(null), {
|
|
7836
7828
|
current: fe
|
|
7837
|
-
} =
|
|
7838
|
-
|
|
7839
|
-
}, []),
|
|
7840
|
-
|
|
7829
|
+
} = c.useRef(A != null), [ve, re] = c.useState(), B = Ee(n, O), z = c.useCallback((k) => {
|
|
7830
|
+
X.current = k, k && be(k);
|
|
7831
|
+
}, []), U = Z == null ? void 0 : Z.parentNode;
|
|
7832
|
+
c.useImperativeHandle(B, () => ({
|
|
7841
7833
|
focus: () => {
|
|
7842
|
-
|
|
7834
|
+
X.current.focus();
|
|
7843
7835
|
},
|
|
7844
|
-
node:
|
|
7836
|
+
node: Y.current,
|
|
7845
7837
|
value: I
|
|
7846
|
-
}), [I]),
|
|
7847
|
-
u && le &&
|
|
7848
|
-
}, [
|
|
7849
|
-
s &&
|
|
7850
|
-
}, [s]),
|
|
7838
|
+
}), [I]), c.useEffect(() => {
|
|
7839
|
+
u && le && Z && !fe && (re(a ? null : U.clientWidth), X.current.focus());
|
|
7840
|
+
}, [Z, a]), c.useEffect(() => {
|
|
7841
|
+
s && X.current.focus();
|
|
7842
|
+
}, [s]), c.useEffect(() => {
|
|
7851
7843
|
if (!y)
|
|
7852
7844
|
return;
|
|
7853
|
-
const
|
|
7854
|
-
if (
|
|
7855
|
-
const
|
|
7856
|
-
getSelection().isCollapsed &&
|
|
7845
|
+
const k = xe(X.current).getElementById(y);
|
|
7846
|
+
if (k) {
|
|
7847
|
+
const q = () => {
|
|
7848
|
+
getSelection().isCollapsed && X.current.focus();
|
|
7857
7849
|
};
|
|
7858
|
-
return
|
|
7859
|
-
|
|
7850
|
+
return k.addEventListener("click", q), () => {
|
|
7851
|
+
k.removeEventListener("click", q);
|
|
7860
7852
|
};
|
|
7861
7853
|
}
|
|
7862
7854
|
}, [y]);
|
|
7863
|
-
const
|
|
7864
|
-
|
|
7865
|
-
},
|
|
7866
|
-
|
|
7867
|
-
},
|
|
7868
|
-
|
|
7869
|
-
},
|
|
7870
|
-
const
|
|
7871
|
-
|
|
7872
|
-
}, ge = (
|
|
7855
|
+
const se = (k, q) => {
|
|
7856
|
+
k ? N && N(q) : S && S(q), fe || (re(a ? null : U.clientWidth), ye(k));
|
|
7857
|
+
}, V = (k) => {
|
|
7858
|
+
k.button === 0 && (k.preventDefault(), X.current.focus(), se(!0, k));
|
|
7859
|
+
}, ee = (k) => {
|
|
7860
|
+
se(!1, k);
|
|
7861
|
+
}, me = c.Children.toArray(l), Oe = (k) => {
|
|
7862
|
+
const q = me.find((ue) => ue.props.value === k.target.value);
|
|
7863
|
+
q !== void 0 && (_(q.props.value), E && E(k, q));
|
|
7864
|
+
}, ge = (k) => (q) => {
|
|
7873
7865
|
let ue;
|
|
7874
|
-
if (
|
|
7866
|
+
if (q.currentTarget.hasAttribute("tabindex")) {
|
|
7875
7867
|
if (C) {
|
|
7876
7868
|
ue = Array.isArray(I) ? I.slice() : [];
|
|
7877
|
-
const We = I.indexOf(
|
|
7878
|
-
We === -1 ? ue.push(
|
|
7869
|
+
const We = I.indexOf(k.props.value);
|
|
7870
|
+
We === -1 ? ue.push(k.props.value) : ue.splice(We, 1);
|
|
7879
7871
|
} else
|
|
7880
|
-
ue =
|
|
7881
|
-
if (
|
|
7882
|
-
const We =
|
|
7872
|
+
ue = k.props.value;
|
|
7873
|
+
if (k.props.onClick && k.props.onClick(q), I !== ue && (_(ue), E)) {
|
|
7874
|
+
const We = q.nativeEvent || q, Jt = new We.constructor(We.type, We);
|
|
7883
7875
|
Object.defineProperty(Jt, "target", {
|
|
7884
7876
|
writable: !0,
|
|
7885
7877
|
value: {
|
|
7886
7878
|
value: ue,
|
|
7887
7879
|
name: p
|
|
7888
7880
|
}
|
|
7889
|
-
}), E(Jt,
|
|
7881
|
+
}), E(Jt, k);
|
|
7890
7882
|
}
|
|
7891
|
-
C ||
|
|
7883
|
+
C || se(!1, q);
|
|
7892
7884
|
}
|
|
7893
|
-
}, Te = (
|
|
7894
|
-
|
|
7885
|
+
}, Te = (k) => {
|
|
7886
|
+
L || [
|
|
7895
7887
|
" ",
|
|
7896
7888
|
"ArrowUp",
|
|
7897
7889
|
"ArrowDown",
|
|
7898
7890
|
// The native select doesn't respond to enter on macOS, but it's recommended by
|
|
7899
7891
|
// https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
7900
7892
|
"Enter"
|
|
7901
|
-
].includes(
|
|
7902
|
-
}, he =
|
|
7903
|
-
!he && f && (Object.defineProperty(
|
|
7893
|
+
].includes(k.key) && (k.preventDefault(), se(!0, k));
|
|
7894
|
+
}, he = Z !== null && le, de = (k) => {
|
|
7895
|
+
!he && f && (Object.defineProperty(k, "target", {
|
|
7904
7896
|
writable: !0,
|
|
7905
7897
|
value: {
|
|
7906
7898
|
value: I,
|
|
7907
7899
|
name: p
|
|
7908
7900
|
}
|
|
7909
|
-
}), f(
|
|
7901
|
+
}), f(k));
|
|
7910
7902
|
};
|
|
7911
|
-
delete
|
|
7903
|
+
delete H["aria-invalid"];
|
|
7912
7904
|
let Ce, Pe;
|
|
7913
7905
|
const pe = [];
|
|
7914
7906
|
let De = !1, Fe = !1;
|
|
7915
7907
|
(ht({
|
|
7916
7908
|
value: I
|
|
7917
|
-
}) || T) && (
|
|
7918
|
-
const lt =
|
|
7919
|
-
if (!/* @__PURE__ */
|
|
7909
|
+
}) || T) && (D ? Ce = D(I) : De = !0);
|
|
7910
|
+
const lt = me.map((k) => {
|
|
7911
|
+
if (!/* @__PURE__ */ c.isValidElement(k))
|
|
7920
7912
|
return null;
|
|
7921
|
-
process.env.NODE_ENV !== "production" && Wt.isFragment(
|
|
7913
|
+
process.env.NODE_ENV !== "production" && Wt.isFragment(k) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
7922
7914
|
`));
|
|
7923
|
-
let
|
|
7915
|
+
let q;
|
|
7924
7916
|
if (C) {
|
|
7925
7917
|
if (!Array.isArray(I))
|
|
7926
7918
|
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : Po(2));
|
|
7927
|
-
|
|
7919
|
+
q = I.some((ue) => wo(ue, k.props.value)), q && De && pe.push(k.props.children);
|
|
7928
7920
|
} else
|
|
7929
|
-
|
|
7930
|
-
return
|
|
7931
|
-
"aria-selected":
|
|
7932
|
-
onClick: ge(
|
|
7921
|
+
q = wo(I, k.props.value), q && De && (Pe = k.props.children);
|
|
7922
|
+
return q && (Fe = !0), /* @__PURE__ */ c.cloneElement(k, {
|
|
7923
|
+
"aria-selected": q ? "true" : "false",
|
|
7924
|
+
onClick: ge(k),
|
|
7933
7925
|
onKeyUp: (ue) => {
|
|
7934
|
-
ue.key === " " && ue.preventDefault(),
|
|
7926
|
+
ue.key === " " && ue.preventDefault(), k.props.onKeyUp && k.props.onKeyUp(ue);
|
|
7935
7927
|
},
|
|
7936
7928
|
role: "option",
|
|
7937
|
-
selected:
|
|
7929
|
+
selected: q,
|
|
7938
7930
|
value: void 0,
|
|
7939
7931
|
// The value is most likely not a valid HTML attribute.
|
|
7940
|
-
"data-value":
|
|
7932
|
+
"data-value": k.props.value
|
|
7941
7933
|
// Instead, we provide it as a data attribute.
|
|
7942
7934
|
});
|
|
7943
7935
|
});
|
|
7944
|
-
process.env.NODE_ENV !== "production" &&
|
|
7936
|
+
process.env.NODE_ENV !== "production" && c.useEffect(() => {
|
|
7945
7937
|
if (!Fe && !C && I !== "") {
|
|
7946
|
-
const
|
|
7947
|
-
console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${p ? `(name="${p}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${
|
|
7938
|
+
const k = me.map((q) => q.props.value);
|
|
7939
|
+
console.warn([`MUI: You have provided an out-of-range value \`${I}\` for the select ${p ? `(name="${p}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${k.filter((q) => q != null).map((q) => `\`${q}\``).join(", ") || '""'}.`].join(`
|
|
7948
7940
|
`));
|
|
7949
7941
|
}
|
|
7950
|
-
}, [Fe,
|
|
7942
|
+
}, [Fe, me, C, p, I]), De && (C ? pe.length === 0 ? Ce = null : Ce = pe.reduce((k, q, ue) => (k.push(q), ue < pe.length - 1 && k.push(", "), k), []) : Ce = Pe);
|
|
7951
7943
|
let Ge = ve;
|
|
7952
|
-
!a && fe &&
|
|
7944
|
+
!a && fe && Z && (Ge = U.clientWidth);
|
|
7953
7945
|
let je;
|
|
7954
7946
|
typeof j < "u" ? je = j : je = g ? null : 0;
|
|
7955
|
-
const Xe =
|
|
7947
|
+
const Xe = W.id || (p ? `mui-component-select-${p}` : void 0), G = {
|
|
7956
7948
|
...o,
|
|
7957
|
-
variant:
|
|
7949
|
+
variant: M,
|
|
7958
7950
|
value: I,
|
|
7959
7951
|
open: he,
|
|
7960
7952
|
error: b
|
|
7961
|
-
}, Be =
|
|
7953
|
+
}, Be = ti(G), ze = {
|
|
7962
7954
|
...h.PaperProps,
|
|
7963
7955
|
...(Zt = h.slotProps) == null ? void 0 : Zt.paper
|
|
7964
7956
|
}, Yt = Vt();
|
|
7965
|
-
return /* @__PURE__ */ ce(
|
|
7966
|
-
children: [/* @__PURE__ */ v(
|
|
7957
|
+
return /* @__PURE__ */ ce(c.Fragment, {
|
|
7958
|
+
children: [/* @__PURE__ */ v(Zs, {
|
|
7967
7959
|
as: "div",
|
|
7968
|
-
ref:
|
|
7960
|
+
ref: z,
|
|
7969
7961
|
tabIndex: je,
|
|
7970
7962
|
role: "combobox",
|
|
7971
7963
|
"aria-controls": he ? Yt : void 0,
|
|
@@ -7975,17 +7967,17 @@ const oi = (t) => {
|
|
|
7975
7967
|
"aria-label": i,
|
|
7976
7968
|
"aria-labelledby": [y, Xe].filter(Boolean).join(" ") || void 0,
|
|
7977
7969
|
"aria-describedby": r,
|
|
7978
|
-
"aria-required":
|
|
7970
|
+
"aria-required": $ ? "true" : void 0,
|
|
7979
7971
|
"aria-invalid": b ? "true" : void 0,
|
|
7980
7972
|
onKeyDown: Te,
|
|
7981
|
-
onMouseDown: g ||
|
|
7973
|
+
onMouseDown: g || L ? null : V,
|
|
7982
7974
|
onBlur: de,
|
|
7983
7975
|
onFocus: P,
|
|
7984
|
-
...
|
|
7985
|
-
ownerState:
|
|
7986
|
-
className:
|
|
7976
|
+
...W,
|
|
7977
|
+
ownerState: G,
|
|
7978
|
+
className: J(W.className, Be.select, d),
|
|
7987
7979
|
id: Xe,
|
|
7988
|
-
children:
|
|
7980
|
+
children: ei(Ce) ? (
|
|
7989
7981
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
7990
7982
|
So || (So = /* @__PURE__ */ v("span", {
|
|
7991
7983
|
className: "notranslate",
|
|
@@ -7993,29 +7985,29 @@ const oi = (t) => {
|
|
|
7993
7985
|
children: ""
|
|
7994
7986
|
}))
|
|
7995
7987
|
) : Ce
|
|
7996
|
-
}), /* @__PURE__ */ v(
|
|
7988
|
+
}), /* @__PURE__ */ v(Qs, {
|
|
7997
7989
|
"aria-invalid": b,
|
|
7998
7990
|
value: Array.isArray(I) ? I.join(",") : I,
|
|
7999
7991
|
name: p,
|
|
8000
|
-
ref:
|
|
7992
|
+
ref: Y,
|
|
8001
7993
|
"aria-hidden": !0,
|
|
8002
7994
|
onChange: Oe,
|
|
8003
7995
|
tabIndex: -1,
|
|
8004
7996
|
disabled: g,
|
|
8005
7997
|
className: Be.nativeInput,
|
|
8006
7998
|
autoFocus: s,
|
|
8007
|
-
required:
|
|
8008
|
-
...
|
|
8009
|
-
ownerState:
|
|
8010
|
-
}), /* @__PURE__ */ v(
|
|
7999
|
+
required: $,
|
|
8000
|
+
...H,
|
|
8001
|
+
ownerState: G
|
|
8002
|
+
}), /* @__PURE__ */ v(Js, {
|
|
8011
8003
|
as: x,
|
|
8012
8004
|
className: Be.icon,
|
|
8013
|
-
ownerState:
|
|
8005
|
+
ownerState: G
|
|
8014
8006
|
}), /* @__PURE__ */ v(cn, {
|
|
8015
8007
|
id: `menu-${p || ""}`,
|
|
8016
|
-
anchorEl:
|
|
8008
|
+
anchorEl: U,
|
|
8017
8009
|
open: he,
|
|
8018
|
-
onClose:
|
|
8010
|
+
onClose: ee,
|
|
8019
8011
|
anchorOrigin: {
|
|
8020
8012
|
vertical: "bottom",
|
|
8021
8013
|
horizontal: "center"
|
|
@@ -8107,7 +8099,7 @@ process.env.NODE_ENV !== "production" && (bn.propTypes = {
|
|
|
8107
8099
|
* Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
|
|
8108
8100
|
* Equivalent to `ref`
|
|
8109
8101
|
*/
|
|
8110
|
-
inputRef:
|
|
8102
|
+
inputRef: Me,
|
|
8111
8103
|
/**
|
|
8112
8104
|
* The ID of an element that acts as an additional label. The Select will
|
|
8113
8105
|
* be labelled by the additional label and the selected value.
|
|
@@ -8195,10 +8187,10 @@ process.env.NODE_ENV !== "production" && (bn.propTypes = {
|
|
|
8195
8187
|
*/
|
|
8196
8188
|
variant: e.oneOf(["standard", "outlined", "filled"])
|
|
8197
8189
|
});
|
|
8198
|
-
const
|
|
8190
|
+
const oi = (t) => {
|
|
8199
8191
|
const {
|
|
8200
8192
|
classes: o
|
|
8201
|
-
} = t, r =
|
|
8193
|
+
} = t, r = Q({
|
|
8202
8194
|
root: ["root"]
|
|
8203
8195
|
}, mn, o);
|
|
8204
8196
|
return {
|
|
@@ -8210,8 +8202,8 @@ const ni = (t) => {
|
|
|
8210
8202
|
overridesResolver: (t, o) => o.root,
|
|
8211
8203
|
shouldForwardProp: (t) => Ne(t) && t !== "variant",
|
|
8212
8204
|
slot: "Root"
|
|
8213
|
-
},
|
|
8214
|
-
const r =
|
|
8205
|
+
}, ni = F(wt, Gt)(""), ri = F(It, Gt)(""), si = F(St, Gt)(""), Xt = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
8206
|
+
const r = ne({
|
|
8215
8207
|
name: "MuiSelect",
|
|
8216
8208
|
props: o
|
|
8217
8209
|
}), {
|
|
@@ -8219,9 +8211,9 @@ const ni = (t) => {
|
|
|
8219
8211
|
children: s,
|
|
8220
8212
|
classes: a = {},
|
|
8221
8213
|
className: l,
|
|
8222
|
-
defaultOpen:
|
|
8214
|
+
defaultOpen: d = !1,
|
|
8223
8215
|
displayEmpty: u = !1,
|
|
8224
|
-
IconComponent: m =
|
|
8216
|
+
IconComponent: m = Ir,
|
|
8225
8217
|
id: g,
|
|
8226
8218
|
input: T,
|
|
8227
8219
|
inputProps: b,
|
|
@@ -8233,43 +8225,43 @@ const ni = (t) => {
|
|
|
8233
8225
|
onClose: p,
|
|
8234
8226
|
onOpen: f,
|
|
8235
8227
|
open: E,
|
|
8236
|
-
renderValue:
|
|
8228
|
+
renderValue: S,
|
|
8237
8229
|
SelectDisplayProps: P,
|
|
8238
8230
|
variant: N = "outlined",
|
|
8239
|
-
|
|
8240
|
-
} = r,
|
|
8231
|
+
...A
|
|
8232
|
+
} = r, L = C ? un : bn, D = Ke(), $ = _e({
|
|
8241
8233
|
props: r,
|
|
8242
|
-
muiFormControl:
|
|
8234
|
+
muiFormControl: D,
|
|
8243
8235
|
states: ["variant", "error"]
|
|
8244
|
-
}),
|
|
8236
|
+
}), W = $.variant || N, j = {
|
|
8245
8237
|
...r,
|
|
8246
|
-
variant:
|
|
8238
|
+
variant: W,
|
|
8247
8239
|
classes: a
|
|
8248
|
-
}, R =
|
|
8249
|
-
root:
|
|
8250
|
-
...
|
|
8251
|
-
} = R,
|
|
8252
|
-
standard: /* @__PURE__ */ v(
|
|
8240
|
+
}, R = oi(j), {
|
|
8241
|
+
root: w,
|
|
8242
|
+
...M
|
|
8243
|
+
} = R, H = T || {
|
|
8244
|
+
standard: /* @__PURE__ */ v(ni, {
|
|
8253
8245
|
ownerState: j
|
|
8254
8246
|
}),
|
|
8255
|
-
outlined: /* @__PURE__ */ v(
|
|
8247
|
+
outlined: /* @__PURE__ */ v(ri, {
|
|
8256
8248
|
label: x,
|
|
8257
8249
|
ownerState: j
|
|
8258
8250
|
}),
|
|
8259
|
-
filled: /* @__PURE__ */ v(
|
|
8251
|
+
filled: /* @__PURE__ */ v(si, {
|
|
8260
8252
|
ownerState: j
|
|
8261
8253
|
})
|
|
8262
|
-
}[
|
|
8263
|
-
return /* @__PURE__ */ v(
|
|
8264
|
-
children: /* @__PURE__ */
|
|
8254
|
+
}[W], I = Ee(n, at(H));
|
|
8255
|
+
return /* @__PURE__ */ v(c.Fragment, {
|
|
8256
|
+
children: /* @__PURE__ */ c.cloneElement(H, {
|
|
8265
8257
|
// Most of the logic is implemented in `SelectInput`.
|
|
8266
8258
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
|
8267
|
-
inputComponent:
|
|
8259
|
+
inputComponent: L,
|
|
8268
8260
|
inputProps: {
|
|
8269
8261
|
children: s,
|
|
8270
|
-
error:
|
|
8262
|
+
error: $.error,
|
|
8271
8263
|
IconComponent: m,
|
|
8272
|
-
variant:
|
|
8264
|
+
variant: W,
|
|
8273
8265
|
type: void 0,
|
|
8274
8266
|
// We render a select. We can ignore the type provided by the `Input`.
|
|
8275
8267
|
multiple: h,
|
|
@@ -8277,33 +8269,33 @@ const ni = (t) => {
|
|
|
8277
8269
|
id: g
|
|
8278
8270
|
} : {
|
|
8279
8271
|
autoWidth: i,
|
|
8280
|
-
defaultOpen:
|
|
8272
|
+
defaultOpen: d,
|
|
8281
8273
|
displayEmpty: u,
|
|
8282
8274
|
labelId: O,
|
|
8283
8275
|
MenuProps: y,
|
|
8284
8276
|
onClose: p,
|
|
8285
8277
|
onOpen: f,
|
|
8286
8278
|
open: E,
|
|
8287
|
-
renderValue:
|
|
8279
|
+
renderValue: S,
|
|
8288
8280
|
SelectDisplayProps: {
|
|
8289
8281
|
id: g,
|
|
8290
8282
|
...P
|
|
8291
8283
|
}
|
|
8292
8284
|
},
|
|
8293
8285
|
...b,
|
|
8294
|
-
classes: b ? zt(
|
|
8286
|
+
classes: b ? zt(M, b.classes) : M,
|
|
8295
8287
|
...T ? T.props.inputProps : {}
|
|
8296
8288
|
},
|
|
8297
|
-
...(h && C || u) &&
|
|
8289
|
+
...(h && C || u) && W === "outlined" ? {
|
|
8298
8290
|
notched: !0
|
|
8299
8291
|
} : {},
|
|
8300
8292
|
ref: I,
|
|
8301
|
-
className:
|
|
8293
|
+
className: J(H.props.className, l, R.root),
|
|
8302
8294
|
// If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
|
|
8303
8295
|
...!T && {
|
|
8304
|
-
variant:
|
|
8296
|
+
variant: W
|
|
8305
8297
|
},
|
|
8306
|
-
|
|
8298
|
+
...A
|
|
8307
8299
|
})
|
|
8308
8300
|
});
|
|
8309
8301
|
});
|
|
@@ -8455,27 +8447,27 @@ process.env.NODE_ENV !== "production" && (Xt.propTypes = {
|
|
|
8455
8447
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
8456
8448
|
});
|
|
8457
8449
|
Xt.muiName = "Select";
|
|
8458
|
-
function
|
|
8459
|
-
return
|
|
8450
|
+
function ii(t) {
|
|
8451
|
+
return oe("MuiTextField", t);
|
|
8460
8452
|
}
|
|
8461
|
-
|
|
8462
|
-
const
|
|
8453
|
+
ie("MuiTextField", ["root"]);
|
|
8454
|
+
const ai = {
|
|
8463
8455
|
standard: wt,
|
|
8464
8456
|
filled: St,
|
|
8465
8457
|
outlined: It
|
|
8466
|
-
},
|
|
8458
|
+
}, li = (t) => {
|
|
8467
8459
|
const {
|
|
8468
8460
|
classes: o
|
|
8469
8461
|
} = t;
|
|
8470
|
-
return
|
|
8462
|
+
return Q({
|
|
8471
8463
|
root: ["root"]
|
|
8472
|
-
},
|
|
8473
|
-
},
|
|
8464
|
+
}, ii, o);
|
|
8465
|
+
}, ci = F(Jo, {
|
|
8474
8466
|
name: "MuiTextField",
|
|
8475
8467
|
slot: "Root",
|
|
8476
8468
|
overridesResolver: (t, o) => o.root
|
|
8477
|
-
})({}), Bt = /* @__PURE__ */
|
|
8478
|
-
const r =
|
|
8469
|
+
})({}), Bt = /* @__PURE__ */ c.forwardRef(function(o, n) {
|
|
8470
|
+
const r = ne({
|
|
8479
8471
|
props: o,
|
|
8480
8472
|
name: "MuiTextField"
|
|
8481
8473
|
}), {
|
|
@@ -8483,7 +8475,7 @@ const li = {
|
|
|
8483
8475
|
autoFocus: s = !1,
|
|
8484
8476
|
children: a,
|
|
8485
8477
|
className: l,
|
|
8486
|
-
color:
|
|
8478
|
+
color: d = "primary",
|
|
8487
8479
|
defaultValue: u,
|
|
8488
8480
|
disabled: m = !1,
|
|
8489
8481
|
error: g = !1,
|
|
@@ -8497,89 +8489,89 @@ const li = {
|
|
|
8497
8489
|
inputRef: p,
|
|
8498
8490
|
label: f,
|
|
8499
8491
|
maxRows: E,
|
|
8500
|
-
minRows:
|
|
8492
|
+
minRows: S,
|
|
8501
8493
|
multiline: P = !1,
|
|
8502
8494
|
name: N,
|
|
8503
|
-
onBlur:
|
|
8504
|
-
onChange:
|
|
8505
|
-
onFocus:
|
|
8506
|
-
placeholder:
|
|
8507
|
-
required:
|
|
8495
|
+
onBlur: A,
|
|
8496
|
+
onChange: L,
|
|
8497
|
+
onFocus: D,
|
|
8498
|
+
placeholder: $,
|
|
8499
|
+
required: W = !1,
|
|
8508
8500
|
rows: j,
|
|
8509
8501
|
select: R = !1,
|
|
8510
|
-
SelectProps:
|
|
8511
|
-
slots:
|
|
8512
|
-
slotProps:
|
|
8502
|
+
SelectProps: w,
|
|
8503
|
+
slots: M = {},
|
|
8504
|
+
slotProps: H = {},
|
|
8513
8505
|
type: I,
|
|
8514
|
-
value:
|
|
8506
|
+
value: _,
|
|
8515
8507
|
variant: le = "outlined",
|
|
8516
|
-
...
|
|
8517
|
-
} = r,
|
|
8508
|
+
...ye
|
|
8509
|
+
} = r, Y = {
|
|
8518
8510
|
...r,
|
|
8519
8511
|
autoFocus: s,
|
|
8520
|
-
color:
|
|
8512
|
+
color: d,
|
|
8521
8513
|
disabled: m,
|
|
8522
8514
|
error: g,
|
|
8523
8515
|
fullWidth: b,
|
|
8524
8516
|
multiline: P,
|
|
8525
|
-
required:
|
|
8517
|
+
required: W,
|
|
8526
8518
|
select: R,
|
|
8527
8519
|
variant: le
|
|
8528
|
-
},
|
|
8520
|
+
}, X = li(Y);
|
|
8529
8521
|
process.env.NODE_ENV !== "production" && R && !a && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
|
|
8530
|
-
const
|
|
8531
|
-
slots:
|
|
8522
|
+
const Z = Vt(O), be = x && Z ? `${Z}-helper-text` : void 0, fe = f && Z ? `${Z}-label` : void 0, ve = ai[le], re = {
|
|
8523
|
+
slots: M,
|
|
8532
8524
|
slotProps: {
|
|
8533
8525
|
input: C,
|
|
8534
8526
|
inputLabel: y,
|
|
8535
8527
|
htmlInput: h,
|
|
8536
8528
|
formHelperText: T,
|
|
8537
|
-
select:
|
|
8538
|
-
...
|
|
8529
|
+
select: w,
|
|
8530
|
+
...H
|
|
8539
8531
|
}
|
|
8540
|
-
},
|
|
8541
|
-
le === "outlined" && (
|
|
8542
|
-
const [
|
|
8543
|
-
elementType:
|
|
8532
|
+
}, B = {}, z = re.slotProps.inputLabel;
|
|
8533
|
+
le === "outlined" && (z && typeof z.shrink < "u" && (B.notched = z.shrink), B.label = f), R && ((!w || !w.native) && (B.id = void 0), B["aria-describedby"] = void 0);
|
|
8534
|
+
const [U, se] = te("root", {
|
|
8535
|
+
elementType: ci,
|
|
8544
8536
|
shouldForwardComponentProp: !0,
|
|
8545
8537
|
externalForwardedProps: {
|
|
8546
|
-
...
|
|
8547
|
-
...
|
|
8538
|
+
...re,
|
|
8539
|
+
...ye
|
|
8548
8540
|
},
|
|
8549
|
-
ownerState:
|
|
8550
|
-
className:
|
|
8541
|
+
ownerState: Y,
|
|
8542
|
+
className: J(X.root, l),
|
|
8551
8543
|
ref: n,
|
|
8552
8544
|
additionalProps: {
|
|
8553
8545
|
disabled: m,
|
|
8554
8546
|
error: g,
|
|
8555
8547
|
fullWidth: b,
|
|
8556
|
-
required:
|
|
8557
|
-
color:
|
|
8548
|
+
required: W,
|
|
8549
|
+
color: d,
|
|
8558
8550
|
variant: le
|
|
8559
8551
|
}
|
|
8560
|
-
}), [
|
|
8552
|
+
}), [V, ee] = te("input", {
|
|
8561
8553
|
elementType: ve,
|
|
8562
|
-
externalForwardedProps:
|
|
8563
|
-
additionalProps:
|
|
8564
|
-
ownerState:
|
|
8565
|
-
}), [
|
|
8554
|
+
externalForwardedProps: re,
|
|
8555
|
+
additionalProps: B,
|
|
8556
|
+
ownerState: Y
|
|
8557
|
+
}), [me, Oe] = te("inputLabel", {
|
|
8566
8558
|
elementType: tn,
|
|
8567
|
-
externalForwardedProps:
|
|
8568
|
-
ownerState:
|
|
8569
|
-
}), [ge, Te] =
|
|
8559
|
+
externalForwardedProps: re,
|
|
8560
|
+
ownerState: Y
|
|
8561
|
+
}), [ge, Te] = te("htmlInput", {
|
|
8570
8562
|
elementType: "input",
|
|
8571
|
-
externalForwardedProps:
|
|
8572
|
-
ownerState:
|
|
8573
|
-
}), [he, de] =
|
|
8563
|
+
externalForwardedProps: re,
|
|
8564
|
+
ownerState: Y
|
|
8565
|
+
}), [he, de] = te("formHelperText", {
|
|
8574
8566
|
elementType: Qo,
|
|
8575
|
-
externalForwardedProps:
|
|
8576
|
-
ownerState:
|
|
8577
|
-
}), [Ce, Pe] =
|
|
8567
|
+
externalForwardedProps: re,
|
|
8568
|
+
ownerState: Y
|
|
8569
|
+
}), [Ce, Pe] = te("select", {
|
|
8578
8570
|
elementType: Xt,
|
|
8579
|
-
externalForwardedProps:
|
|
8580
|
-
ownerState:
|
|
8581
|
-
}), pe = /* @__PURE__ */ v(
|
|
8582
|
-
"aria-describedby":
|
|
8571
|
+
externalForwardedProps: re,
|
|
8572
|
+
ownerState: Y
|
|
8573
|
+
}), pe = /* @__PURE__ */ v(V, {
|
|
8574
|
+
"aria-describedby": be,
|
|
8583
8575
|
autoComplete: i,
|
|
8584
8576
|
autoFocus: s,
|
|
8585
8577
|
defaultValue: u,
|
|
@@ -8588,38 +8580,38 @@ const li = {
|
|
|
8588
8580
|
name: N,
|
|
8589
8581
|
rows: j,
|
|
8590
8582
|
maxRows: E,
|
|
8591
|
-
minRows:
|
|
8583
|
+
minRows: S,
|
|
8592
8584
|
type: I,
|
|
8593
|
-
value:
|
|
8594
|
-
id:
|
|
8585
|
+
value: _,
|
|
8586
|
+
id: Z,
|
|
8595
8587
|
inputRef: p,
|
|
8596
|
-
onBlur:
|
|
8597
|
-
onChange:
|
|
8598
|
-
onFocus:
|
|
8599
|
-
placeholder:
|
|
8588
|
+
onBlur: A,
|
|
8589
|
+
onChange: L,
|
|
8590
|
+
onFocus: D,
|
|
8591
|
+
placeholder: $,
|
|
8600
8592
|
inputProps: Te,
|
|
8601
8593
|
slots: {
|
|
8602
|
-
input:
|
|
8594
|
+
input: M.htmlInput ? ge : void 0
|
|
8603
8595
|
},
|
|
8604
|
-
...
|
|
8596
|
+
...ee
|
|
8605
8597
|
});
|
|
8606
|
-
return /* @__PURE__ */ ce(
|
|
8607
|
-
...
|
|
8608
|
-
children: [f != null && f !== "" && /* @__PURE__ */ v(
|
|
8609
|
-
htmlFor:
|
|
8598
|
+
return /* @__PURE__ */ ce(U, {
|
|
8599
|
+
...se,
|
|
8600
|
+
children: [f != null && f !== "" && /* @__PURE__ */ v(me, {
|
|
8601
|
+
htmlFor: Z,
|
|
8610
8602
|
id: fe,
|
|
8611
8603
|
...Oe,
|
|
8612
8604
|
children: f
|
|
8613
8605
|
}), R ? /* @__PURE__ */ v(Ce, {
|
|
8614
|
-
"aria-describedby":
|
|
8615
|
-
id:
|
|
8606
|
+
"aria-describedby": be,
|
|
8607
|
+
id: Z,
|
|
8616
8608
|
labelId: fe,
|
|
8617
|
-
value:
|
|
8609
|
+
value: _,
|
|
8618
8610
|
input: pe,
|
|
8619
8611
|
...Pe,
|
|
8620
8612
|
children: a
|
|
8621
8613
|
}) : pe, x && /* @__PURE__ */ v(he, {
|
|
8622
|
-
id:
|
|
8614
|
+
id: be,
|
|
8623
8615
|
...de,
|
|
8624
8616
|
children: x
|
|
8625
8617
|
})]
|
|
@@ -8676,7 +8668,7 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8676
8668
|
error: e.bool,
|
|
8677
8669
|
/**
|
|
8678
8670
|
* Props applied to the [`FormHelperText`](https://mui.com/material-ui/api/form-helper-text/) element.
|
|
8679
|
-
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in
|
|
8671
|
+
* @deprecated Use `slotProps.formHelperText` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
8680
8672
|
*/
|
|
8681
8673
|
FormHelperTextProps: e.object,
|
|
8682
8674
|
/**
|
|
@@ -8696,12 +8688,12 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8696
8688
|
/**
|
|
8697
8689
|
* Props applied to the [`InputLabel`](https://mui.com/material-ui/api/input-label/) element.
|
|
8698
8690
|
* Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
|
|
8699
|
-
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in
|
|
8691
|
+
* @deprecated Use `slotProps.inputLabel` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
8700
8692
|
*/
|
|
8701
8693
|
InputLabelProps: e.object,
|
|
8702
8694
|
/**
|
|
8703
8695
|
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
|
8704
|
-
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in
|
|
8696
|
+
* @deprecated Use `slotProps.htmlInput` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
8705
8697
|
*/
|
|
8706
8698
|
inputProps: e.object,
|
|
8707
8699
|
/**
|
|
@@ -8709,13 +8701,13 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8709
8701
|
* It will be a [`FilledInput`](https://mui.com/material-ui/api/filled-input/),
|
|
8710
8702
|
* [`OutlinedInput`](https://mui.com/material-ui/api/outlined-input/) or [`Input`](https://mui.com/material-ui/api/input/)
|
|
8711
8703
|
* component depending on the `variant` prop value.
|
|
8712
|
-
* @deprecated Use `slotProps.input` instead. This prop will be removed in
|
|
8704
|
+
* @deprecated Use `slotProps.input` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
8713
8705
|
*/
|
|
8714
8706
|
InputProps: e.object,
|
|
8715
8707
|
/**
|
|
8716
8708
|
* Pass a ref to the `input` element.
|
|
8717
8709
|
*/
|
|
8718
|
-
inputRef:
|
|
8710
|
+
inputRef: Me,
|
|
8719
8711
|
/**
|
|
8720
8712
|
* The label content.
|
|
8721
8713
|
*/
|
|
@@ -8778,7 +8770,7 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8778
8770
|
select: e.bool,
|
|
8779
8771
|
/**
|
|
8780
8772
|
* Props applied to the [`Select`](https://mui.com/material-ui/api/select/) element.
|
|
8781
|
-
* @deprecated Use `slotProps.select` instead. This prop will be removed in
|
|
8773
|
+
* @deprecated Use `slotProps.select` instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
8782
8774
|
*/
|
|
8783
8775
|
SelectProps: e.object,
|
|
8784
8776
|
/**
|
|
@@ -8827,9 +8819,9 @@ process.env.NODE_ENV !== "production" && (Bt.propTypes = {
|
|
|
8827
8819
|
*/
|
|
8828
8820
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
8829
8821
|
});
|
|
8830
|
-
const
|
|
8822
|
+
const di = ke(/* @__PURE__ */ v("path", {
|
|
8831
8823
|
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"
|
|
8832
|
-
}), "LockOutlined"),
|
|
8824
|
+
}), "LockOutlined"), Ri = ({ title: t, disableAll: o, error: n, setError: r, handleSubmit: i, version: s }) => /* @__PURE__ */ ce(Go, { component: "main", maxWidth: "xs", children: [
|
|
8833
8825
|
/* @__PURE__ */ v(Yo, {}),
|
|
8834
8826
|
/* @__PURE__ */ ce(
|
|
8835
8827
|
oo,
|
|
@@ -8841,9 +8833,9 @@ const pi = Me(/* @__PURE__ */ v("path", {
|
|
|
8841
8833
|
alignItems: "center"
|
|
8842
8834
|
},
|
|
8843
8835
|
children: [
|
|
8844
|
-
/* @__PURE__ */ v(qo, { sx: { m: 1, bgcolor: "secondary.main" }, children: /* @__PURE__ */ v(
|
|
8845
|
-
/* @__PURE__ */ v(
|
|
8846
|
-
/* @__PURE__ */ v(
|
|
8836
|
+
/* @__PURE__ */ v(qo, { sx: { m: 1, bgcolor: "secondary.main" }, children: /* @__PURE__ */ v(di, {}) }),
|
|
8837
|
+
/* @__PURE__ */ v($t, { component: "h1", variant: "h5", align: "center", children: t }),
|
|
8838
|
+
/* @__PURE__ */ v($t, { component: "h1", variant: "h5", align: "center", children: `${Ye("version")}: ${Ye("softwareName")} ${s}` }),
|
|
8847
8839
|
/* @__PURE__ */ ce(oo, { component: "form", onSubmit: i, noValidate: !0, sx: { mt: 1 }, children: [
|
|
8848
8840
|
/* @__PURE__ */ v(
|
|
8849
8841
|
Bt,
|
|
@@ -8889,5 +8881,5 @@ const pi = Me(/* @__PURE__ */ v("path", {
|
|
|
8889
8881
|
)
|
|
8890
8882
|
] });
|
|
8891
8883
|
export {
|
|
8892
|
-
|
|
8884
|
+
Ri as Login
|
|
8893
8885
|
};
|