@smart-factor/gem-ui-components 0.0.50 → 0.0.52
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/{Drawer-D8kHnT0B.js → Drawer-Bn6zM0s6.js} +935 -828
- package/dist/{Stack-Dr1yNuib.js → Stack-dIR9-9Sw.js} +2489 -2620
- package/dist/Tree-DPMcYDgW.js +3200 -0
- package/dist/components/AccordionSummary/AccordionSummary.styles.d.ts +0 -1
- package/dist/components/Button/Button.styles.d.ts +0 -1
- package/dist/components/Dialog/Dialog.styles.d.ts +0 -1
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/Dropzone/Dropzone.styles.d.ts +0 -1
- package/dist/components/FixedActionsBottomPanel/FixedActionsBottomPanel.styles.d.ts +0 -1
- package/dist/components/FormComponents/ContextualSearch/ContextualSearch.styles.d.ts +0 -1
- package/dist/components/FormComponents/ContextualSearch/mock.d.ts +0 -1
- package/dist/components/FormComponents/DatePicker/DatePicker.styles.d.ts +0 -1
- package/dist/components/FormComponents/DateTimePicker/DateTimePicker.styles.d.ts +0 -1
- package/dist/components/FormComponents/RadioChips/RadioChips.styles.d.ts +0 -1
- package/dist/components/FormComponents/Select/Select.styles.d.ts +0 -1
- package/dist/components/Grid/Grid.d.ts +4 -0
- package/dist/components/Grid/index.d.ts +2 -0
- package/dist/components/Grid/types.d.ts +40 -0
- package/dist/components/Grid/useGridInitialState.d.ts +6 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.styles.d.ts +0 -1
- package/dist/components/Stepper/Stepper.d.ts +0 -1
- package/dist/components/Stepper/Stepper.styles.d.ts +0 -1
- package/dist/components/StickyContainer/StickyContainer.styles.d.ts +0 -1
- package/dist/components/TableComponents/ContextMenu/ContextMenuContext.d.ts +0 -1
- package/dist/components/TableComponents/ContextMenu/ContextMenuPropsContext/ContextMenuPropsContext.d.ts +0 -1
- package/dist/components/TableComponents/TableCustomToolbar/TableCustomToolbar.d.ts +10 -0
- package/dist/components/TableComponents/TableCustomToolbar/index.d.ts +1 -0
- package/dist/components/TableComponents/TableWithPagination/TableWithPagination.d.ts +1 -1
- package/dist/components/TableComponents/TableWithPagination/types.d.ts +1 -3
- package/dist/components/Toast/Toast.styles.d.ts +0 -1
- package/dist/components/Tree/index.js +1 -1
- package/dist/consts/data-grid.d.ts +0 -1
- package/dist/helpers/columns/index.d.ts +1 -0
- package/dist/hooks/useDataGridInitialState.d.ts +6 -0
- package/dist/hooks/useGetFileUrl.d.ts +0 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +8911 -8339
- package/package.json +1 -1
- package/dist/Tree-B4Bd33fe.js +0 -2958
|
@@ -1,241 +1,339 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as J, P as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import gn, { jsx as x, jsxs as de } from "react/jsx-runtime";
|
|
2
|
+
import { c as J, P as t, _ as d, a as V, b as H, u as W, C as yn, d as U, e as En, s as ye, f as Ee, g as xn, h as xe, i as Tn, j as kn, k as Q, l as ee, m as L, n as $e, o as ne, p as pe, q as te, T as Ke, r as Ye, t as le, v as Ge, w as Xe, x as Pn, y as Rn, B as Nn, S as Pe, z as wn, A as Cn, I as Sn } from "./Stack-dIR9-9Sw.js";
|
|
3
|
+
import * as p from "react";
|
|
4
|
+
import * as On from "react-dom";
|
|
5
5
|
var be = {};
|
|
6
|
-
function
|
|
6
|
+
function In(e) {
|
|
7
7
|
const {
|
|
8
|
-
prototype:
|
|
8
|
+
prototype: n = {}
|
|
9
9
|
} = e;
|
|
10
|
-
return !!
|
|
10
|
+
return !!n.isReactComponent;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
12
|
+
function Ze(e, n, r, o, s) {
|
|
13
|
+
const i = e[n], a = s || n;
|
|
14
|
+
if (i == null || // When server-side rendering React doesn't warn either.
|
|
15
15
|
// This is not an accurate check for SSR.
|
|
16
16
|
// This is only in place for Emotion compat.
|
|
17
17
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
18
18
|
typeof window > "u")
|
|
19
19
|
return null;
|
|
20
20
|
let l;
|
|
21
|
-
const c =
|
|
22
|
-
return typeof c == "function" && !
|
|
21
|
+
const c = i.type;
|
|
22
|
+
return typeof c == "function" && !In(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
23
23
|
}
|
|
24
|
-
const oe = J(
|
|
25
|
-
oe.isRequired = J(
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
return process.env.NODE_ENV === "production" ? e :
|
|
29
|
-
[
|
|
30
|
-
const r = Object.keys(
|
|
24
|
+
const oe = J(t.element, Ze);
|
|
25
|
+
oe.isRequired = J(t.element.isRequired, Ze);
|
|
26
|
+
const Dn = "exact-prop: ";
|
|
27
|
+
function Je(e) {
|
|
28
|
+
return process.env.NODE_ENV === "production" ? e : d({}, e, {
|
|
29
|
+
[Dn]: (n) => {
|
|
30
|
+
const r = Object.keys(n).filter((o) => !e.hasOwnProperty(o));
|
|
31
31
|
return r.length > 0 ? new Error(`The following props are not supported: ${r.map((o) => `\`${o}\``).join(", ")}. Please remove them.`) : null;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Re(e, n, r, o, s) {
|
|
36
36
|
if (process.env.NODE_ENV === "production")
|
|
37
37
|
return null;
|
|
38
|
-
const
|
|
39
|
-
return
|
|
38
|
+
const i = e[n], a = s || n;
|
|
39
|
+
return i == null ? null : i && i.nodeType !== 1 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${r}\`. Expected an HTMLElement.`) : null;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return e.reduce((
|
|
43
|
-
|
|
41
|
+
function Te(...e) {
|
|
42
|
+
return e.reduce((n, r) => r == null ? n : function(...s) {
|
|
43
|
+
n.apply(this, s), r.apply(this, s);
|
|
44
44
|
}, () => {
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Qe(e, n = 166) {
|
|
48
48
|
let r;
|
|
49
|
-
function o(...
|
|
50
|
-
const
|
|
51
|
-
e.apply(this,
|
|
49
|
+
function o(...s) {
|
|
50
|
+
const i = () => {
|
|
51
|
+
e.apply(this, s);
|
|
52
52
|
};
|
|
53
|
-
clearTimeout(r), r = setTimeout(
|
|
53
|
+
clearTimeout(r), r = setTimeout(i, n);
|
|
54
54
|
}
|
|
55
55
|
return o.clear = () => {
|
|
56
56
|
clearTimeout(r);
|
|
57
57
|
}, o;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return process.env.NODE_ENV === "production" ? () => null : (r, o,
|
|
61
|
-
const l =
|
|
62
|
-
return typeof r[o] < "u" ? new Error(`The ${
|
|
59
|
+
function $n(e, n) {
|
|
60
|
+
return process.env.NODE_ENV === "production" ? () => null : (r, o, s, i, a) => {
|
|
61
|
+
const l = s || "<<anonymous>>", c = a || o;
|
|
62
|
+
return typeof r[o] < "u" ? new Error(`The ${i} \`${c}\` of \`${l}\` is deprecated. ${n}`) : null;
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Mn(e, n) {
|
|
66
66
|
var r, o;
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ p.isValidElement(e) && n.indexOf(
|
|
68
68
|
// For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
69
69
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
70
70
|
// eslint-disable-next-line no-underscore-dangle
|
|
71
71
|
(r = e.type.muiName) != null ? r : (o = e.type) == null || (o = o._payload) == null || (o = o.value) == null ? void 0 : o.muiName
|
|
72
72
|
) !== -1;
|
|
73
73
|
}
|
|
74
|
+
function q(e) {
|
|
75
|
+
return e && e.ownerDocument || document;
|
|
76
|
+
}
|
|
74
77
|
function G(e) {
|
|
75
78
|
return q(e).defaultView || window;
|
|
76
79
|
}
|
|
77
|
-
function
|
|
80
|
+
function _n(e, n) {
|
|
78
81
|
if (process.env.NODE_ENV === "production")
|
|
79
82
|
return () => null;
|
|
80
|
-
const r =
|
|
81
|
-
return (
|
|
82
|
-
const
|
|
83
|
+
const r = n ? d({}, n.propTypes) : null;
|
|
84
|
+
return (s) => (i, a, l, c, u, ...f) => {
|
|
85
|
+
const b = u || a, g = r == null ? void 0 : r[b];
|
|
83
86
|
if (g) {
|
|
84
|
-
const y = g(
|
|
87
|
+
const y = g(i, a, l, c, u, ...f);
|
|
85
88
|
if (y)
|
|
86
89
|
return y;
|
|
87
90
|
}
|
|
88
|
-
return typeof
|
|
91
|
+
return typeof i[a] < "u" && !i[s] ? new Error(`The prop \`${b}\` of \`${e}\` can only be used together with the \`${s}\` prop.`) : null;
|
|
89
92
|
};
|
|
90
93
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
let Me = 0;
|
|
95
|
+
function Fn(e) {
|
|
96
|
+
const [n, r] = p.useState(e), o = e || n;
|
|
97
|
+
return p.useEffect(() => {
|
|
98
|
+
n == null && (Me += 1, r(`mui-${Me}`));
|
|
99
|
+
}, [n]), o;
|
|
94
100
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
101
|
+
const _e = p.useId;
|
|
102
|
+
function Bn(e) {
|
|
103
|
+
if (_e !== void 0) {
|
|
104
|
+
const n = _e();
|
|
105
|
+
return e ?? n;
|
|
106
|
+
}
|
|
107
|
+
return Fn(e);
|
|
108
|
+
}
|
|
109
|
+
function jn(e, n, r, o, s) {
|
|
110
|
+
if (process.env.NODE_ENV === "production")
|
|
111
|
+
return null;
|
|
112
|
+
const i = s || n;
|
|
113
|
+
return typeof e[n] < "u" ? new Error(`The prop \`${i}\` is not supported. Please remove it.`) : null;
|
|
114
|
+
}
|
|
115
|
+
function An(e) {
|
|
116
|
+
const n = e.documentElement.clientWidth;
|
|
117
|
+
return Math.abs(window.innerWidth - n);
|
|
118
|
+
}
|
|
119
|
+
function Vn(e) {
|
|
120
|
+
const n = typeof e;
|
|
121
|
+
switch (n) {
|
|
98
122
|
case "number":
|
|
99
123
|
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
100
124
|
case "object":
|
|
101
125
|
return e === null ? "null" : e.constructor.name;
|
|
102
126
|
default:
|
|
103
|
-
return
|
|
127
|
+
return n;
|
|
104
128
|
}
|
|
105
129
|
}
|
|
106
|
-
function
|
|
130
|
+
function Ln(e) {
|
|
107
131
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e;
|
|
108
132
|
}
|
|
109
|
-
const
|
|
110
|
-
function
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
const
|
|
114
|
-
return new RangeError(`Invalid ${o} \`${
|
|
133
|
+
const qn = Number.isInteger || Ln;
|
|
134
|
+
function en(e, n, r, o) {
|
|
135
|
+
const s = e[n];
|
|
136
|
+
if (s == null || !qn(s)) {
|
|
137
|
+
const i = Vn(s);
|
|
138
|
+
return new RangeError(`Invalid ${o} \`${n}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`);
|
|
115
139
|
}
|
|
116
140
|
return null;
|
|
117
141
|
}
|
|
118
|
-
function
|
|
119
|
-
return e[
|
|
142
|
+
function nn(e, n, ...r) {
|
|
143
|
+
return e[n] === void 0 ? null : en(e, n, ...r);
|
|
120
144
|
}
|
|
121
|
-
function
|
|
145
|
+
function ke() {
|
|
122
146
|
return null;
|
|
123
147
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const
|
|
148
|
+
nn.isRequired = en;
|
|
149
|
+
ke.isRequired = ke;
|
|
150
|
+
const tn = process.env.NODE_ENV === "production" ? ke : nn;
|
|
151
|
+
function Hn(e) {
|
|
152
|
+
return typeof e == "string";
|
|
153
|
+
}
|
|
154
|
+
function Un(e, n, r) {
|
|
155
|
+
return e === void 0 || Hn(e) ? n : d({}, n, {
|
|
156
|
+
ownerState: d({}, n.ownerState, r)
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function on(e, n = []) {
|
|
160
|
+
if (e === void 0)
|
|
161
|
+
return {};
|
|
162
|
+
const r = {};
|
|
163
|
+
return Object.keys(e).filter((o) => o.match(/^on[A-Z]/) && typeof e[o] == "function" && !n.includes(o)).forEach((o) => {
|
|
164
|
+
r[o] = e[o];
|
|
165
|
+
}), r;
|
|
166
|
+
}
|
|
167
|
+
function Fe(e) {
|
|
168
|
+
if (e === void 0)
|
|
169
|
+
return {};
|
|
170
|
+
const n = {};
|
|
171
|
+
return Object.keys(e).filter((r) => !(r.match(/^on[A-Z]/) && typeof e[r] == "function")).forEach((r) => {
|
|
172
|
+
n[r] = e[r];
|
|
173
|
+
}), n;
|
|
174
|
+
}
|
|
175
|
+
function zn(e) {
|
|
176
|
+
const {
|
|
177
|
+
getSlotProps: n,
|
|
178
|
+
additionalProps: r,
|
|
179
|
+
externalSlotProps: o,
|
|
180
|
+
externalForwardedProps: s,
|
|
181
|
+
className: i
|
|
182
|
+
} = e;
|
|
183
|
+
if (!n) {
|
|
184
|
+
const y = V(r == null ? void 0 : r.className, i, s == null ? void 0 : s.className, o == null ? void 0 : o.className), v = d({}, r == null ? void 0 : r.style, s == null ? void 0 : s.style, o == null ? void 0 : o.style), P = d({}, r, s, o);
|
|
185
|
+
return y.length > 0 && (P.className = y), Object.keys(v).length > 0 && (P.style = v), {
|
|
186
|
+
props: P,
|
|
187
|
+
internalRef: void 0
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
const a = on(d({}, s, o)), l = Fe(o), c = Fe(s), u = n(a), f = V(u == null ? void 0 : u.className, r == null ? void 0 : r.className, i, s == null ? void 0 : s.className, o == null ? void 0 : o.className), b = d({}, u == null ? void 0 : u.style, r == null ? void 0 : r.style, s == null ? void 0 : s.style, o == null ? void 0 : o.style), g = d({}, u, r, c, l);
|
|
191
|
+
return f.length > 0 && (g.className = f), Object.keys(b).length > 0 && (g.style = b), {
|
|
192
|
+
props: g,
|
|
193
|
+
internalRef: u.ref
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function Wn(e, n, r) {
|
|
197
|
+
return typeof e == "function" ? e(n, r) : e;
|
|
198
|
+
}
|
|
199
|
+
const Kn = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
200
|
+
function Be(e) {
|
|
201
|
+
var n;
|
|
202
|
+
const {
|
|
203
|
+
elementType: r,
|
|
204
|
+
externalSlotProps: o,
|
|
205
|
+
ownerState: s,
|
|
206
|
+
skipResolvingSlotProps: i = !1
|
|
207
|
+
} = e, a = H(e, Kn), l = i ? {} : Wn(o, s), {
|
|
208
|
+
props: c,
|
|
209
|
+
internalRef: u
|
|
210
|
+
} = zn(d({}, a, {
|
|
211
|
+
externalSlotProps: l
|
|
212
|
+
})), f = W(u, l == null ? void 0 : l.ref, (n = e.additionalProps) == null ? void 0 : n.ref);
|
|
213
|
+
return Un(r, d({}, c, {
|
|
214
|
+
ref: f
|
|
215
|
+
}), s);
|
|
216
|
+
}
|
|
217
|
+
function fe(e) {
|
|
218
|
+
if (parseInt(p.version, 10) >= 19) {
|
|
219
|
+
var n;
|
|
220
|
+
return (e == null || (n = e.props) == null ? void 0 : n.ref) || null;
|
|
221
|
+
}
|
|
222
|
+
return (e == null ? void 0 : e.ref) || null;
|
|
223
|
+
}
|
|
224
|
+
const Yn = {
|
|
127
225
|
configure: (e) => {
|
|
128
226
|
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
129
|
-
`)),
|
|
227
|
+
`)), yn.configure(e);
|
|
130
228
|
}
|
|
131
|
-
},
|
|
229
|
+
}, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
132
230
|
__proto__: null,
|
|
133
|
-
capitalize:
|
|
134
|
-
createChainedFunction:
|
|
135
|
-
createSvgIcon:
|
|
136
|
-
debounce:
|
|
137
|
-
deprecatedPropType:
|
|
138
|
-
isMuiElement:
|
|
231
|
+
capitalize: U,
|
|
232
|
+
createChainedFunction: Te,
|
|
233
|
+
createSvgIcon: En,
|
|
234
|
+
debounce: Qe,
|
|
235
|
+
deprecatedPropType: $n,
|
|
236
|
+
isMuiElement: Mn,
|
|
139
237
|
ownerDocument: q,
|
|
140
238
|
ownerWindow: G,
|
|
141
|
-
requirePropFactory:
|
|
142
|
-
setRef:
|
|
143
|
-
unstable_ClassNameGenerator:
|
|
144
|
-
unstable_useEnhancedEffect:
|
|
145
|
-
unstable_useId:
|
|
146
|
-
unsupportedProp:
|
|
147
|
-
useControlled:
|
|
148
|
-
useEventCallback:
|
|
149
|
-
useForkRef:
|
|
150
|
-
useIsFocusVisible:
|
|
151
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
152
|
-
var
|
|
153
|
-
function
|
|
154
|
-
return
|
|
239
|
+
requirePropFactory: _n,
|
|
240
|
+
setRef: ye,
|
|
241
|
+
unstable_ClassNameGenerator: Yn,
|
|
242
|
+
unstable_useEnhancedEffect: Ee,
|
|
243
|
+
unstable_useId: Bn,
|
|
244
|
+
unsupportedProp: jn,
|
|
245
|
+
useControlled: xn,
|
|
246
|
+
useEventCallback: xe,
|
|
247
|
+
useForkRef: W,
|
|
248
|
+
useIsFocusVisible: Tn
|
|
249
|
+
}, Symbol.toStringTag, { value: "Module" })), Xn = /* @__PURE__ */ kn(Gn);
|
|
250
|
+
var je;
|
|
251
|
+
function Zn() {
|
|
252
|
+
return je || (je = 1, function(e) {
|
|
155
253
|
"use client";
|
|
156
254
|
Object.defineProperty(e, "__esModule", {
|
|
157
255
|
value: !0
|
|
158
256
|
}), Object.defineProperty(e, "default", {
|
|
159
257
|
enumerable: !0,
|
|
160
258
|
get: function() {
|
|
161
|
-
return
|
|
259
|
+
return n.createSvgIcon;
|
|
162
260
|
}
|
|
163
261
|
});
|
|
164
|
-
var
|
|
262
|
+
var n = Xn;
|
|
165
263
|
}(be)), be;
|
|
166
264
|
}
|
|
167
|
-
const
|
|
168
|
-
let
|
|
169
|
-
return e < 1 ?
|
|
265
|
+
const Ae = (e) => {
|
|
266
|
+
let n;
|
|
267
|
+
return e < 1 ? n = 5.11916 * e ** 2 : n = 4.5 * Math.log(e + 1) + 2, (n / 100).toFixed(2);
|
|
170
268
|
};
|
|
171
|
-
function
|
|
269
|
+
function Jn(e) {
|
|
172
270
|
return Q("MuiPaper", e);
|
|
173
271
|
}
|
|
174
272
|
ee("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"]);
|
|
175
|
-
const
|
|
273
|
+
const Qn = ["className", "component", "elevation", "square", "variant"], et = (e) => {
|
|
176
274
|
const {
|
|
177
|
-
square:
|
|
275
|
+
square: n,
|
|
178
276
|
elevation: r,
|
|
179
277
|
variant: o,
|
|
180
|
-
classes:
|
|
181
|
-
} = e,
|
|
182
|
-
root: ["root", o, !
|
|
278
|
+
classes: s
|
|
279
|
+
} = e, i = {
|
|
280
|
+
root: ["root", o, !n && "rounded", o === "elevation" && `elevation${r}`]
|
|
183
281
|
};
|
|
184
|
-
return
|
|
185
|
-
},
|
|
282
|
+
return te(i, Jn, s);
|
|
283
|
+
}, nt = L("div", {
|
|
186
284
|
name: "MuiPaper",
|
|
187
285
|
slot: "Root",
|
|
188
|
-
overridesResolver: (e,
|
|
286
|
+
overridesResolver: (e, n) => {
|
|
189
287
|
const {
|
|
190
288
|
ownerState: r
|
|
191
289
|
} = e;
|
|
192
|
-
return [
|
|
290
|
+
return [n.root, n[r.variant], !r.square && n.rounded, r.variant === "elevation" && n[`elevation${r.elevation}`]];
|
|
193
291
|
}
|
|
194
292
|
})(({
|
|
195
293
|
theme: e,
|
|
196
|
-
ownerState:
|
|
294
|
+
ownerState: n
|
|
197
295
|
}) => {
|
|
198
296
|
var r;
|
|
199
|
-
return
|
|
297
|
+
return d({
|
|
200
298
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
201
299
|
color: (e.vars || e).palette.text.primary,
|
|
202
300
|
transition: e.transitions.create("box-shadow")
|
|
203
|
-
}, !
|
|
301
|
+
}, !n.square && {
|
|
204
302
|
borderRadius: e.shape.borderRadius
|
|
205
|
-
},
|
|
303
|
+
}, n.variant === "outlined" && {
|
|
206
304
|
border: `1px solid ${(e.vars || e).palette.divider}`
|
|
207
|
-
},
|
|
208
|
-
boxShadow: (e.vars || e).shadows[
|
|
305
|
+
}, n.variant === "elevation" && d({
|
|
306
|
+
boxShadow: (e.vars || e).shadows[n.elevation]
|
|
209
307
|
}, !e.vars && e.palette.mode === "dark" && {
|
|
210
|
-
backgroundImage: `linear-gradient(${$e("#fff",
|
|
308
|
+
backgroundImage: `linear-gradient(${$e("#fff", Ae(n.elevation))}, ${$e("#fff", Ae(n.elevation))})`
|
|
211
309
|
}, e.vars && {
|
|
212
|
-
backgroundImage: (r = e.vars.overlays) == null ? void 0 : r[
|
|
310
|
+
backgroundImage: (r = e.vars.overlays) == null ? void 0 : r[n.elevation]
|
|
213
311
|
}));
|
|
214
|
-
}),
|
|
215
|
-
const o =
|
|
216
|
-
props:
|
|
312
|
+
}), rn = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
313
|
+
const o = ne({
|
|
314
|
+
props: n,
|
|
217
315
|
name: "MuiPaper"
|
|
218
316
|
}), {
|
|
219
|
-
className:
|
|
220
|
-
component:
|
|
317
|
+
className: s,
|
|
318
|
+
component: i = "div",
|
|
221
319
|
elevation: a = 1,
|
|
222
320
|
square: l = !1,
|
|
223
321
|
variant: c = "elevation"
|
|
224
|
-
} = o,
|
|
225
|
-
component:
|
|
322
|
+
} = o, u = H(o, Qn), f = d({}, o, {
|
|
323
|
+
component: i,
|
|
226
324
|
elevation: a,
|
|
227
325
|
square: l,
|
|
228
326
|
variant: c
|
|
229
|
-
}),
|
|
327
|
+
}), b = et(f);
|
|
230
328
|
return process.env.NODE_ENV !== "production" && pe().shadows[a] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${a}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${a}]\` is defined.`].join(`
|
|
231
|
-
`)), /* @__PURE__ */ x(
|
|
232
|
-
as:
|
|
233
|
-
ownerState:
|
|
234
|
-
className: V(
|
|
329
|
+
`)), /* @__PURE__ */ x(nt, d({
|
|
330
|
+
as: i,
|
|
331
|
+
ownerState: f,
|
|
332
|
+
className: V(b.root, s),
|
|
235
333
|
ref: r
|
|
236
|
-
},
|
|
334
|
+
}, u));
|
|
237
335
|
});
|
|
238
|
-
process.env.NODE_ENV !== "production" && (
|
|
336
|
+
process.env.NODE_ENV !== "production" && (rn.propTypes = {
|
|
239
337
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
240
338
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
241
339
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -243,76 +341,76 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
|
|
|
243
341
|
/**
|
|
244
342
|
* The content of the component.
|
|
245
343
|
*/
|
|
246
|
-
children:
|
|
344
|
+
children: t.node,
|
|
247
345
|
/**
|
|
248
346
|
* Override or extend the styles applied to the component.
|
|
249
347
|
*/
|
|
250
|
-
classes:
|
|
348
|
+
classes: t.object,
|
|
251
349
|
/**
|
|
252
350
|
* @ignore
|
|
253
351
|
*/
|
|
254
|
-
className:
|
|
352
|
+
className: t.string,
|
|
255
353
|
/**
|
|
256
354
|
* The component used for the root node.
|
|
257
355
|
* Either a string to use a HTML element or a component.
|
|
258
356
|
*/
|
|
259
|
-
component:
|
|
357
|
+
component: t.elementType,
|
|
260
358
|
/**
|
|
261
359
|
* Shadow depth, corresponds to `dp` in the spec.
|
|
262
360
|
* It accepts values between 0 and 24 inclusive.
|
|
263
361
|
* @default 1
|
|
264
362
|
*/
|
|
265
|
-
elevation: J(
|
|
363
|
+
elevation: J(tn, (e) => {
|
|
266
364
|
const {
|
|
267
|
-
elevation:
|
|
365
|
+
elevation: n,
|
|
268
366
|
variant: r
|
|
269
367
|
} = e;
|
|
270
|
-
return
|
|
368
|
+
return n > 0 && r === "outlined" ? new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
271
369
|
}),
|
|
272
370
|
/**
|
|
273
371
|
* If `true`, rounded corners are disabled.
|
|
274
372
|
* @default false
|
|
275
373
|
*/
|
|
276
|
-
square:
|
|
374
|
+
square: t.bool,
|
|
277
375
|
/**
|
|
278
376
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
279
377
|
*/
|
|
280
|
-
sx:
|
|
378
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
281
379
|
/**
|
|
282
380
|
* The variant to use.
|
|
283
381
|
* @default 'elevation'
|
|
284
382
|
*/
|
|
285
|
-
variant:
|
|
383
|
+
variant: t.oneOfType([t.oneOf(["elevation", "outlined"]), t.string])
|
|
286
384
|
});
|
|
287
|
-
function
|
|
385
|
+
function tt(e) {
|
|
288
386
|
return typeof e == "function" ? e() : e;
|
|
289
387
|
}
|
|
290
|
-
const ce = /* @__PURE__ */
|
|
388
|
+
const ce = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
291
389
|
const {
|
|
292
390
|
children: o,
|
|
293
|
-
container:
|
|
294
|
-
disablePortal:
|
|
295
|
-
} =
|
|
296
|
-
if (
|
|
297
|
-
|
|
298
|
-
}, [
|
|
299
|
-
if (a && !
|
|
300
|
-
return
|
|
301
|
-
|
|
391
|
+
container: s,
|
|
392
|
+
disablePortal: i = !1
|
|
393
|
+
} = n, [a, l] = p.useState(null), c = W(/* @__PURE__ */ p.isValidElement(o) ? fe(o) : null, r);
|
|
394
|
+
if (Ee(() => {
|
|
395
|
+
i || l(tt(s) || document.body);
|
|
396
|
+
}, [s, i]), Ee(() => {
|
|
397
|
+
if (a && !i)
|
|
398
|
+
return ye(r, a), () => {
|
|
399
|
+
ye(r, null);
|
|
302
400
|
};
|
|
303
|
-
}, [r, a,
|
|
304
|
-
if (/* @__PURE__ */
|
|
305
|
-
const
|
|
401
|
+
}, [r, a, i]), i) {
|
|
402
|
+
if (/* @__PURE__ */ p.isValidElement(o)) {
|
|
403
|
+
const u = {
|
|
306
404
|
ref: c
|
|
307
405
|
};
|
|
308
|
-
return /* @__PURE__ */
|
|
406
|
+
return /* @__PURE__ */ p.cloneElement(o, u);
|
|
309
407
|
}
|
|
310
|
-
return /* @__PURE__ */ x(
|
|
408
|
+
return /* @__PURE__ */ x(p.Fragment, {
|
|
311
409
|
children: o
|
|
312
410
|
});
|
|
313
411
|
}
|
|
314
|
-
return /* @__PURE__ */ x(
|
|
315
|
-
children: a && /* @__PURE__ */
|
|
412
|
+
return /* @__PURE__ */ x(p.Fragment, {
|
|
413
|
+
children: a && /* @__PURE__ */ On.createPortal(o, a)
|
|
316
414
|
});
|
|
317
415
|
});
|
|
318
416
|
process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
@@ -323,7 +421,7 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
|
323
421
|
/**
|
|
324
422
|
* The children to render into the `container`.
|
|
325
423
|
*/
|
|
326
|
-
children:
|
|
424
|
+
children: t.node,
|
|
327
425
|
/**
|
|
328
426
|
* An HTML element or function that returns one.
|
|
329
427
|
* The `container` will have the portal children appended to it.
|
|
@@ -334,91 +432,91 @@ process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
|
334
432
|
* By default, it uses the body of the top-level document object,
|
|
335
433
|
* so it's simply `document.body` most of the time.
|
|
336
434
|
*/
|
|
337
|
-
container:
|
|
435
|
+
container: t.oneOfType([Re, t.func]),
|
|
338
436
|
/**
|
|
339
437
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
340
438
|
* @default false
|
|
341
439
|
*/
|
|
342
|
-
disablePortal:
|
|
440
|
+
disablePortal: t.bool
|
|
343
441
|
});
|
|
344
|
-
process.env.NODE_ENV !== "production" && (ce.propTypes =
|
|
345
|
-
const
|
|
442
|
+
process.env.NODE_ENV !== "production" && (ce.propTypes = Je(ce.propTypes));
|
|
443
|
+
const ot = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], rt = {
|
|
346
444
|
entering: {
|
|
347
445
|
opacity: 1
|
|
348
446
|
},
|
|
349
447
|
entered: {
|
|
350
448
|
opacity: 1
|
|
351
449
|
}
|
|
352
|
-
},
|
|
353
|
-
const o = pe(),
|
|
450
|
+
}, sn = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
451
|
+
const o = pe(), s = {
|
|
354
452
|
enter: o.transitions.duration.enteringScreen,
|
|
355
453
|
exit: o.transitions.duration.leavingScreen
|
|
356
454
|
}, {
|
|
357
|
-
addEndListener:
|
|
455
|
+
addEndListener: i,
|
|
358
456
|
appear: a = !0,
|
|
359
457
|
children: l,
|
|
360
458
|
easing: c,
|
|
361
|
-
in:
|
|
362
|
-
onEnter:
|
|
363
|
-
onEntered:
|
|
459
|
+
in: u,
|
|
460
|
+
onEnter: f,
|
|
461
|
+
onEntered: b,
|
|
364
462
|
onEntering: g,
|
|
365
463
|
onExit: y,
|
|
366
|
-
onExited:
|
|
367
|
-
onExiting:
|
|
464
|
+
onExited: v,
|
|
465
|
+
onExiting: P,
|
|
368
466
|
style: w,
|
|
369
|
-
timeout:
|
|
467
|
+
timeout: S = s,
|
|
370
468
|
// eslint-disable-next-line react/prop-types
|
|
371
|
-
TransitionComponent:
|
|
372
|
-
} =
|
|
373
|
-
if (
|
|
469
|
+
TransitionComponent: D = Ke
|
|
470
|
+
} = n, m = H(n, ot), T = p.useRef(null), C = W(T, fe(l), r), O = (R) => (A) => {
|
|
471
|
+
if (R) {
|
|
374
472
|
const k = T.current;
|
|
375
|
-
A === void 0 ?
|
|
473
|
+
A === void 0 ? R(k) : R(k, A);
|
|
376
474
|
}
|
|
377
|
-
}, E =
|
|
378
|
-
|
|
475
|
+
}, E = O(g), M = O((R, A) => {
|
|
476
|
+
Ye(R);
|
|
379
477
|
const k = le({
|
|
380
478
|
style: w,
|
|
381
|
-
timeout:
|
|
479
|
+
timeout: S,
|
|
382
480
|
easing: c
|
|
383
481
|
}, {
|
|
384
482
|
mode: "enter"
|
|
385
483
|
});
|
|
386
|
-
|
|
387
|
-
}), _ =
|
|
484
|
+
R.style.webkitTransition = o.transitions.create("opacity", k), R.style.transition = o.transitions.create("opacity", k), f && f(R, A);
|
|
485
|
+
}), _ = O(b), I = O(P), $ = O((R) => {
|
|
388
486
|
const A = le({
|
|
389
487
|
style: w,
|
|
390
|
-
timeout:
|
|
488
|
+
timeout: S,
|
|
391
489
|
easing: c
|
|
392
490
|
}, {
|
|
393
491
|
mode: "exit"
|
|
394
492
|
});
|
|
395
|
-
|
|
396
|
-
}), B =
|
|
397
|
-
return /* @__PURE__ */ x(
|
|
493
|
+
R.style.webkitTransition = o.transitions.create("opacity", A), R.style.transition = o.transitions.create("opacity", A), y && y(R);
|
|
494
|
+
}), B = O(v);
|
|
495
|
+
return /* @__PURE__ */ x(D, d({
|
|
398
496
|
appear: a,
|
|
399
|
-
in:
|
|
497
|
+
in: u,
|
|
400
498
|
nodeRef: T,
|
|
401
499
|
onEnter: M,
|
|
402
500
|
onEntered: _,
|
|
403
501
|
onEntering: E,
|
|
404
|
-
onExit:
|
|
502
|
+
onExit: $,
|
|
405
503
|
onExited: B,
|
|
406
|
-
onExiting:
|
|
407
|
-
addEndListener: (
|
|
408
|
-
|
|
504
|
+
onExiting: I,
|
|
505
|
+
addEndListener: (R) => {
|
|
506
|
+
i && i(T.current, R);
|
|
409
507
|
},
|
|
410
|
-
timeout:
|
|
411
|
-
},
|
|
412
|
-
children: (
|
|
413
|
-
style:
|
|
508
|
+
timeout: S
|
|
509
|
+
}, m, {
|
|
510
|
+
children: (R, A) => /* @__PURE__ */ p.cloneElement(l, d({
|
|
511
|
+
style: d({
|
|
414
512
|
opacity: 0,
|
|
415
|
-
visibility:
|
|
416
|
-
},
|
|
417
|
-
ref:
|
|
513
|
+
visibility: R === "exited" && !u ? "hidden" : void 0
|
|
514
|
+
}, rt[R], w, l.props.style),
|
|
515
|
+
ref: C
|
|
418
516
|
}, A))
|
|
419
517
|
}));
|
|
420
518
|
});
|
|
421
|
-
process.env.NODE_ENV !== "production" && (
|
|
519
|
+
process.env.NODE_ENV !== "production" && (sn.propTypes = {
|
|
422
520
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
423
521
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
424
522
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -428,13 +526,13 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
428
526
|
* node and a done callback. Allows for more fine grained transition end
|
|
429
527
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
430
528
|
*/
|
|
431
|
-
addEndListener:
|
|
529
|
+
addEndListener: t.func,
|
|
432
530
|
/**
|
|
433
531
|
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
434
532
|
* Set this to `false` to disable this behavior.
|
|
435
533
|
* @default true
|
|
436
534
|
*/
|
|
437
|
-
appear:
|
|
535
|
+
appear: t.bool,
|
|
438
536
|
/**
|
|
439
537
|
* A single child content element.
|
|
440
538
|
*/
|
|
@@ -443,42 +541,42 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
443
541
|
* The transition timing function.
|
|
444
542
|
* You may specify a single easing or a object containing enter and exit values.
|
|
445
543
|
*/
|
|
446
|
-
easing:
|
|
447
|
-
enter:
|
|
448
|
-
exit:
|
|
449
|
-
}),
|
|
544
|
+
easing: t.oneOfType([t.shape({
|
|
545
|
+
enter: t.string,
|
|
546
|
+
exit: t.string
|
|
547
|
+
}), t.string]),
|
|
450
548
|
/**
|
|
451
549
|
* If `true`, the component will transition in.
|
|
452
550
|
*/
|
|
453
|
-
in:
|
|
551
|
+
in: t.bool,
|
|
454
552
|
/**
|
|
455
553
|
* @ignore
|
|
456
554
|
*/
|
|
457
|
-
onEnter:
|
|
555
|
+
onEnter: t.func,
|
|
458
556
|
/**
|
|
459
557
|
* @ignore
|
|
460
558
|
*/
|
|
461
|
-
onEntered:
|
|
559
|
+
onEntered: t.func,
|
|
462
560
|
/**
|
|
463
561
|
* @ignore
|
|
464
562
|
*/
|
|
465
|
-
onEntering:
|
|
563
|
+
onEntering: t.func,
|
|
466
564
|
/**
|
|
467
565
|
* @ignore
|
|
468
566
|
*/
|
|
469
|
-
onExit:
|
|
567
|
+
onExit: t.func,
|
|
470
568
|
/**
|
|
471
569
|
* @ignore
|
|
472
570
|
*/
|
|
473
|
-
onExited:
|
|
571
|
+
onExited: t.func,
|
|
474
572
|
/**
|
|
475
573
|
* @ignore
|
|
476
574
|
*/
|
|
477
|
-
onExiting:
|
|
575
|
+
onExiting: t.func,
|
|
478
576
|
/**
|
|
479
577
|
* @ignore
|
|
480
578
|
*/
|
|
481
|
-
style:
|
|
579
|
+
style: t.object,
|
|
482
580
|
/**
|
|
483
581
|
* The duration for the transition, in milliseconds.
|
|
484
582
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -487,36 +585,36 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
|
|
|
487
585
|
* exit: theme.transitions.duration.leavingScreen,
|
|
488
586
|
* }
|
|
489
587
|
*/
|
|
490
|
-
timeout:
|
|
491
|
-
appear:
|
|
492
|
-
enter:
|
|
493
|
-
exit:
|
|
588
|
+
timeout: t.oneOfType([t.number, t.shape({
|
|
589
|
+
appear: t.number,
|
|
590
|
+
enter: t.number,
|
|
591
|
+
exit: t.number
|
|
494
592
|
})])
|
|
495
593
|
});
|
|
496
|
-
function
|
|
594
|
+
function st(e) {
|
|
497
595
|
return Q("MuiBackdrop", e);
|
|
498
596
|
}
|
|
499
597
|
ee("MuiBackdrop", ["root", "invisible"]);
|
|
500
|
-
const
|
|
598
|
+
const it = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], at = (e) => {
|
|
501
599
|
const {
|
|
502
|
-
classes:
|
|
600
|
+
classes: n,
|
|
503
601
|
invisible: r
|
|
504
602
|
} = e;
|
|
505
|
-
return
|
|
603
|
+
return te({
|
|
506
604
|
root: ["root", r && "invisible"]
|
|
507
|
-
},
|
|
508
|
-
},
|
|
605
|
+
}, st, n);
|
|
606
|
+
}, lt = L("div", {
|
|
509
607
|
name: "MuiBackdrop",
|
|
510
608
|
slot: "Root",
|
|
511
|
-
overridesResolver: (e,
|
|
609
|
+
overridesResolver: (e, n) => {
|
|
512
610
|
const {
|
|
513
611
|
ownerState: r
|
|
514
612
|
} = e;
|
|
515
|
-
return [
|
|
613
|
+
return [n.root, r.invisible && n.invisible];
|
|
516
614
|
}
|
|
517
615
|
})(({
|
|
518
616
|
ownerState: e
|
|
519
|
-
}) =>
|
|
617
|
+
}) => d({
|
|
520
618
|
position: "fixed",
|
|
521
619
|
display: "flex",
|
|
522
620
|
alignItems: "center",
|
|
@@ -529,44 +627,44 @@ const Gt = ["children", "className", "component", "components", "componentsProps
|
|
|
529
627
|
WebkitTapHighlightColor: "transparent"
|
|
530
628
|
}, e.invisible && {
|
|
531
629
|
backgroundColor: "transparent"
|
|
532
|
-
})),
|
|
533
|
-
var o,
|
|
534
|
-
const a =
|
|
535
|
-
props:
|
|
630
|
+
})), Ne = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
631
|
+
var o, s, i;
|
|
632
|
+
const a = ne({
|
|
633
|
+
props: n,
|
|
536
634
|
name: "MuiBackdrop"
|
|
537
635
|
}), {
|
|
538
636
|
children: l,
|
|
539
637
|
className: c,
|
|
540
|
-
component:
|
|
541
|
-
components:
|
|
542
|
-
componentsProps:
|
|
638
|
+
component: u = "div",
|
|
639
|
+
components: f = {},
|
|
640
|
+
componentsProps: b = {},
|
|
543
641
|
invisible: g = !1,
|
|
544
642
|
open: y,
|
|
545
|
-
slotProps:
|
|
546
|
-
slots:
|
|
547
|
-
TransitionComponent: w =
|
|
548
|
-
transitionDuration:
|
|
549
|
-
} = a,
|
|
550
|
-
component:
|
|
643
|
+
slotProps: v = {},
|
|
644
|
+
slots: P = {},
|
|
645
|
+
TransitionComponent: w = sn,
|
|
646
|
+
transitionDuration: S
|
|
647
|
+
} = a, D = H(a, it), m = d({}, a, {
|
|
648
|
+
component: u,
|
|
551
649
|
invisible: g
|
|
552
|
-
}), T =
|
|
553
|
-
return /* @__PURE__ */ x(w,
|
|
650
|
+
}), T = at(m), C = (o = v.root) != null ? o : b.root;
|
|
651
|
+
return /* @__PURE__ */ x(w, d({
|
|
554
652
|
in: y,
|
|
555
|
-
timeout:
|
|
556
|
-
},
|
|
557
|
-
children: /* @__PURE__ */ x(
|
|
653
|
+
timeout: S
|
|
654
|
+
}, D, {
|
|
655
|
+
children: /* @__PURE__ */ x(lt, d({
|
|
558
656
|
"aria-hidden": !0
|
|
559
|
-
},
|
|
560
|
-
as: (
|
|
561
|
-
className: V(T.root, c,
|
|
562
|
-
ownerState:
|
|
657
|
+
}, C, {
|
|
658
|
+
as: (s = (i = P.root) != null ? i : f.Root) != null ? s : u,
|
|
659
|
+
className: V(T.root, c, C == null ? void 0 : C.className),
|
|
660
|
+
ownerState: d({}, m, C == null ? void 0 : C.ownerState),
|
|
563
661
|
classes: T,
|
|
564
662
|
ref: r,
|
|
565
663
|
children: l
|
|
566
664
|
}))
|
|
567
665
|
}));
|
|
568
666
|
});
|
|
569
|
-
process.env.NODE_ENV !== "production" && (
|
|
667
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
570
668
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
571
669
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
572
670
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -574,20 +672,20 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
574
672
|
/**
|
|
575
673
|
* The content of the component.
|
|
576
674
|
*/
|
|
577
|
-
children:
|
|
675
|
+
children: t.node,
|
|
578
676
|
/**
|
|
579
677
|
* Override or extend the styles applied to the component.
|
|
580
678
|
*/
|
|
581
|
-
classes:
|
|
679
|
+
classes: t.object,
|
|
582
680
|
/**
|
|
583
681
|
* @ignore
|
|
584
682
|
*/
|
|
585
|
-
className:
|
|
683
|
+
className: t.string,
|
|
586
684
|
/**
|
|
587
685
|
* The component used for the root node.
|
|
588
686
|
* Either a string to use a HTML element or a component.
|
|
589
687
|
*/
|
|
590
|
-
component:
|
|
688
|
+
component: t.elementType,
|
|
591
689
|
/**
|
|
592
690
|
* The components used for each slot inside.
|
|
593
691
|
*
|
|
@@ -596,8 +694,8 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
596
694
|
*
|
|
597
695
|
* @default {}
|
|
598
696
|
*/
|
|
599
|
-
components:
|
|
600
|
-
Root:
|
|
697
|
+
components: t.shape({
|
|
698
|
+
Root: t.elementType
|
|
601
699
|
}),
|
|
602
700
|
/**
|
|
603
701
|
* The extra props for the slot components.
|
|
@@ -608,19 +706,19 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
608
706
|
*
|
|
609
707
|
* @default {}
|
|
610
708
|
*/
|
|
611
|
-
componentsProps:
|
|
612
|
-
root:
|
|
709
|
+
componentsProps: t.shape({
|
|
710
|
+
root: t.object
|
|
613
711
|
}),
|
|
614
712
|
/**
|
|
615
713
|
* If `true`, the backdrop is invisible.
|
|
616
714
|
* It can be used when rendering a popover or a custom select component.
|
|
617
715
|
* @default false
|
|
618
716
|
*/
|
|
619
|
-
invisible:
|
|
717
|
+
invisible: t.bool,
|
|
620
718
|
/**
|
|
621
719
|
* If `true`, the component is shown.
|
|
622
720
|
*/
|
|
623
|
-
open:
|
|
721
|
+
open: t.bool.isRequired,
|
|
624
722
|
/**
|
|
625
723
|
* The extra props for the slot components.
|
|
626
724
|
* You can override the existing props or add new ones.
|
|
@@ -629,8 +727,8 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
629
727
|
*
|
|
630
728
|
* @default {}
|
|
631
729
|
*/
|
|
632
|
-
slotProps:
|
|
633
|
-
root:
|
|
730
|
+
slotProps: t.shape({
|
|
731
|
+
root: t.object
|
|
634
732
|
}),
|
|
635
733
|
/**
|
|
636
734
|
* The components used for each slot inside.
|
|
@@ -639,36 +737,36 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
639
737
|
*
|
|
640
738
|
* @default {}
|
|
641
739
|
*/
|
|
642
|
-
slots:
|
|
643
|
-
root:
|
|
740
|
+
slots: t.shape({
|
|
741
|
+
root: t.elementType
|
|
644
742
|
}),
|
|
645
743
|
/**
|
|
646
744
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
647
745
|
*/
|
|
648
|
-
sx:
|
|
746
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
649
747
|
/**
|
|
650
748
|
* The component used for the transition.
|
|
651
749
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
652
750
|
* @default Fade
|
|
653
751
|
*/
|
|
654
|
-
TransitionComponent:
|
|
752
|
+
TransitionComponent: t.elementType,
|
|
655
753
|
/**
|
|
656
754
|
* The duration for the transition, in milliseconds.
|
|
657
755
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
658
756
|
*/
|
|
659
|
-
transitionDuration:
|
|
660
|
-
appear:
|
|
661
|
-
enter:
|
|
662
|
-
exit:
|
|
757
|
+
transitionDuration: t.oneOfType([t.number, t.shape({
|
|
758
|
+
appear: t.number,
|
|
759
|
+
enter: t.number,
|
|
760
|
+
exit: t.number
|
|
663
761
|
})])
|
|
664
762
|
});
|
|
665
|
-
function
|
|
763
|
+
function ct(e) {
|
|
666
764
|
return Q("MuiCircularProgress", e);
|
|
667
765
|
}
|
|
668
766
|
ee("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]);
|
|
669
|
-
const
|
|
670
|
-
let
|
|
671
|
-
const
|
|
767
|
+
const ut = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
768
|
+
let me = (e) => e, Ve, Le, qe, He;
|
|
769
|
+
const z = 44, dt = Ge(Ve || (Ve = me`
|
|
672
770
|
0% {
|
|
673
771
|
transform: rotate(0deg);
|
|
674
772
|
}
|
|
@@ -676,7 +774,7 @@ const U = 44, en = ze(Fe || (Fe = fe`
|
|
|
676
774
|
100% {
|
|
677
775
|
transform: rotate(360deg);
|
|
678
776
|
}
|
|
679
|
-
`)),
|
|
777
|
+
`)), pt = Ge(Le || (Le = me`
|
|
680
778
|
0% {
|
|
681
779
|
stroke-dasharray: 1px, 200px;
|
|
682
780
|
stroke-dashoffset: 0;
|
|
@@ -691,63 +789,63 @@ const U = 44, en = ze(Fe || (Fe = fe`
|
|
|
691
789
|
stroke-dasharray: 100px, 200px;
|
|
692
790
|
stroke-dashoffset: -125px;
|
|
693
791
|
}
|
|
694
|
-
`)),
|
|
792
|
+
`)), ft = (e) => {
|
|
695
793
|
const {
|
|
696
|
-
classes:
|
|
794
|
+
classes: n,
|
|
697
795
|
variant: r,
|
|
698
796
|
color: o,
|
|
699
|
-
disableShrink:
|
|
700
|
-
} = e,
|
|
701
|
-
root: ["root", r, `color${
|
|
797
|
+
disableShrink: s
|
|
798
|
+
} = e, i = {
|
|
799
|
+
root: ["root", r, `color${U(o)}`],
|
|
702
800
|
svg: ["svg"],
|
|
703
|
-
circle: ["circle", `circle${
|
|
801
|
+
circle: ["circle", `circle${U(r)}`, s && "circleDisableShrink"]
|
|
704
802
|
};
|
|
705
|
-
return
|
|
706
|
-
},
|
|
803
|
+
return te(i, ct, n);
|
|
804
|
+
}, mt = L("span", {
|
|
707
805
|
name: "MuiCircularProgress",
|
|
708
806
|
slot: "Root",
|
|
709
|
-
overridesResolver: (e,
|
|
807
|
+
overridesResolver: (e, n) => {
|
|
710
808
|
const {
|
|
711
809
|
ownerState: r
|
|
712
810
|
} = e;
|
|
713
|
-
return [
|
|
811
|
+
return [n.root, n[r.variant], n[`color${U(r.color)}`]];
|
|
714
812
|
}
|
|
715
813
|
})(({
|
|
716
814
|
ownerState: e,
|
|
717
|
-
theme:
|
|
718
|
-
}) =>
|
|
815
|
+
theme: n
|
|
816
|
+
}) => d({
|
|
719
817
|
display: "inline-block"
|
|
720
818
|
}, e.variant === "determinate" && {
|
|
721
|
-
transition:
|
|
819
|
+
transition: n.transitions.create("transform")
|
|
722
820
|
}, e.color !== "inherit" && {
|
|
723
|
-
color: (
|
|
821
|
+
color: (n.vars || n).palette[e.color].main
|
|
724
822
|
}), ({
|
|
725
823
|
ownerState: e
|
|
726
|
-
}) => e.variant === "indeterminate" &&
|
|
824
|
+
}) => e.variant === "indeterminate" && Xe(qe || (qe = me`
|
|
727
825
|
animation: ${0} 1.4s linear infinite;
|
|
728
|
-
`),
|
|
826
|
+
`), dt)), ht = L("svg", {
|
|
729
827
|
name: "MuiCircularProgress",
|
|
730
828
|
slot: "Svg",
|
|
731
|
-
overridesResolver: (e,
|
|
829
|
+
overridesResolver: (e, n) => n.svg
|
|
732
830
|
})({
|
|
733
831
|
display: "block"
|
|
734
832
|
// Keeps the progress centered
|
|
735
|
-
}),
|
|
833
|
+
}), vt = L("circle", {
|
|
736
834
|
name: "MuiCircularProgress",
|
|
737
835
|
slot: "Circle",
|
|
738
|
-
overridesResolver: (e,
|
|
836
|
+
overridesResolver: (e, n) => {
|
|
739
837
|
const {
|
|
740
838
|
ownerState: r
|
|
741
839
|
} = e;
|
|
742
|
-
return [
|
|
840
|
+
return [n.circle, n[`circle${U(r.variant)}`], r.disableShrink && n.circleDisableShrink];
|
|
743
841
|
}
|
|
744
842
|
})(({
|
|
745
843
|
ownerState: e,
|
|
746
|
-
theme:
|
|
747
|
-
}) =>
|
|
844
|
+
theme: n
|
|
845
|
+
}) => d({
|
|
748
846
|
stroke: "currentColor"
|
|
749
847
|
}, e.variant === "determinate" && {
|
|
750
|
-
transition:
|
|
848
|
+
transition: n.transitions.create("stroke-dashoffset")
|
|
751
849
|
}, e.variant === "indeterminate" && {
|
|
752
850
|
// Some default value that looks fine waiting for the animation to kicks in.
|
|
753
851
|
strokeDasharray: "80px, 200px",
|
|
@@ -755,61 +853,61 @@ const U = 44, en = ze(Fe || (Fe = fe`
|
|
|
755
853
|
// Add the unit to fix a Edge 16 and below bug.
|
|
756
854
|
}), ({
|
|
757
855
|
ownerState: e
|
|
758
|
-
}) => e.variant === "indeterminate" && !e.disableShrink &&
|
|
856
|
+
}) => e.variant === "indeterminate" && !e.disableShrink && Xe(He || (He = me`
|
|
759
857
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
760
|
-
`),
|
|
761
|
-
const o =
|
|
762
|
-
props:
|
|
858
|
+
`), pt)), an = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
859
|
+
const o = ne({
|
|
860
|
+
props: n,
|
|
763
861
|
name: "MuiCircularProgress"
|
|
764
862
|
}), {
|
|
765
|
-
className:
|
|
766
|
-
color:
|
|
863
|
+
className: s,
|
|
864
|
+
color: i = "primary",
|
|
767
865
|
disableShrink: a = !1,
|
|
768
866
|
size: l = 40,
|
|
769
867
|
style: c,
|
|
770
|
-
thickness:
|
|
771
|
-
value:
|
|
772
|
-
variant:
|
|
773
|
-
} = o, g =
|
|
774
|
-
color:
|
|
868
|
+
thickness: u = 3.6,
|
|
869
|
+
value: f = 0,
|
|
870
|
+
variant: b = "indeterminate"
|
|
871
|
+
} = o, g = H(o, ut), y = d({}, o, {
|
|
872
|
+
color: i,
|
|
775
873
|
disableShrink: a,
|
|
776
874
|
size: l,
|
|
777
|
-
thickness:
|
|
778
|
-
value:
|
|
779
|
-
variant:
|
|
780
|
-
}),
|
|
781
|
-
if (
|
|
782
|
-
const
|
|
783
|
-
|
|
875
|
+
thickness: u,
|
|
876
|
+
value: f,
|
|
877
|
+
variant: b
|
|
878
|
+
}), v = ft(y), P = {}, w = {}, S = {};
|
|
879
|
+
if (b === "determinate") {
|
|
880
|
+
const D = 2 * Math.PI * ((z - u) / 2);
|
|
881
|
+
P.strokeDasharray = D.toFixed(3), S["aria-valuenow"] = Math.round(f), P.strokeDashoffset = `${((100 - f) / 100 * D).toFixed(3)}px`, w.transform = "rotate(-90deg)";
|
|
784
882
|
}
|
|
785
|
-
return /* @__PURE__ */ x(
|
|
786
|
-
className: V(
|
|
787
|
-
style:
|
|
883
|
+
return /* @__PURE__ */ x(mt, d({
|
|
884
|
+
className: V(v.root, s),
|
|
885
|
+
style: d({
|
|
788
886
|
width: l,
|
|
789
887
|
height: l
|
|
790
888
|
}, w, c),
|
|
791
889
|
ownerState: y,
|
|
792
890
|
ref: r,
|
|
793
891
|
role: "progressbar"
|
|
794
|
-
},
|
|
795
|
-
children: /* @__PURE__ */ x(
|
|
796
|
-
className:
|
|
892
|
+
}, S, g, {
|
|
893
|
+
children: /* @__PURE__ */ x(ht, {
|
|
894
|
+
className: v.svg,
|
|
797
895
|
ownerState: y,
|
|
798
|
-
viewBox: `${
|
|
799
|
-
children: /* @__PURE__ */ x(
|
|
800
|
-
className:
|
|
801
|
-
style:
|
|
896
|
+
viewBox: `${z / 2} ${z / 2} ${z} ${z}`,
|
|
897
|
+
children: /* @__PURE__ */ x(vt, {
|
|
898
|
+
className: v.circle,
|
|
899
|
+
style: P,
|
|
802
900
|
ownerState: y,
|
|
803
|
-
cx:
|
|
804
|
-
cy:
|
|
805
|
-
r: (
|
|
901
|
+
cx: z,
|
|
902
|
+
cy: z,
|
|
903
|
+
r: (z - u) / 2,
|
|
806
904
|
fill: "none",
|
|
807
|
-
strokeWidth:
|
|
905
|
+
strokeWidth: u
|
|
808
906
|
})
|
|
809
907
|
})
|
|
810
908
|
}));
|
|
811
909
|
});
|
|
812
|
-
process.env.NODE_ENV !== "production" && (
|
|
910
|
+
process.env.NODE_ENV !== "production" && (an.propTypes = {
|
|
813
911
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
814
912
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
815
913
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -817,284 +915,284 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
817
915
|
/**
|
|
818
916
|
* Override or extend the styles applied to the component.
|
|
819
917
|
*/
|
|
820
|
-
classes:
|
|
918
|
+
classes: t.object,
|
|
821
919
|
/**
|
|
822
920
|
* @ignore
|
|
823
921
|
*/
|
|
824
|
-
className:
|
|
922
|
+
className: t.string,
|
|
825
923
|
/**
|
|
826
924
|
* The color of the component.
|
|
827
925
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
828
926
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
829
927
|
* @default 'primary'
|
|
830
928
|
*/
|
|
831
|
-
color:
|
|
929
|
+
color: t.oneOfType([t.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), t.string]),
|
|
832
930
|
/**
|
|
833
931
|
* If `true`, the shrink animation is disabled.
|
|
834
932
|
* This only works if variant is `indeterminate`.
|
|
835
933
|
* @default false
|
|
836
934
|
*/
|
|
837
|
-
disableShrink: J(
|
|
935
|
+
disableShrink: J(t.bool, (e) => e.disableShrink && e.variant && e.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null),
|
|
838
936
|
/**
|
|
839
937
|
* The size of the component.
|
|
840
938
|
* If using a number, the pixel unit is assumed.
|
|
841
939
|
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
|
842
940
|
* @default 40
|
|
843
941
|
*/
|
|
844
|
-
size:
|
|
942
|
+
size: t.oneOfType([t.number, t.string]),
|
|
845
943
|
/**
|
|
846
944
|
* @ignore
|
|
847
945
|
*/
|
|
848
|
-
style:
|
|
946
|
+
style: t.object,
|
|
849
947
|
/**
|
|
850
948
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
851
949
|
*/
|
|
852
|
-
sx:
|
|
950
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
853
951
|
/**
|
|
854
952
|
* The thickness of the circle.
|
|
855
953
|
* @default 3.6
|
|
856
954
|
*/
|
|
857
|
-
thickness:
|
|
955
|
+
thickness: t.number,
|
|
858
956
|
/**
|
|
859
957
|
* The value of the progress indicator for the determinate variant.
|
|
860
958
|
* Value between 0 and 100.
|
|
861
959
|
* @default 0
|
|
862
960
|
*/
|
|
863
|
-
value:
|
|
961
|
+
value: t.number,
|
|
864
962
|
/**
|
|
865
963
|
* The variant to use.
|
|
866
964
|
* Use indeterminate when there is no progress value.
|
|
867
965
|
* @default 'indeterminate'
|
|
868
966
|
*/
|
|
869
|
-
variant:
|
|
967
|
+
variant: t.oneOf(["determinate", "indeterminate"])
|
|
870
968
|
});
|
|
871
|
-
function
|
|
872
|
-
const
|
|
873
|
-
return
|
|
969
|
+
function bt(e) {
|
|
970
|
+
const n = q(e);
|
|
971
|
+
return n.body === e ? G(e).innerWidth > n.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
|
|
874
972
|
}
|
|
875
|
-
function Z(e,
|
|
876
|
-
|
|
973
|
+
function Z(e, n) {
|
|
974
|
+
n ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
|
|
877
975
|
}
|
|
878
|
-
function
|
|
976
|
+
function Ue(e) {
|
|
879
977
|
return parseInt(G(e).getComputedStyle(e).paddingRight, 10) || 0;
|
|
880
978
|
}
|
|
881
|
-
function
|
|
979
|
+
function gt(e) {
|
|
882
980
|
const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(e.tagName) !== -1, o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
|
|
883
981
|
return r || o;
|
|
884
982
|
}
|
|
885
|
-
function
|
|
886
|
-
const
|
|
983
|
+
function ze(e, n, r, o, s) {
|
|
984
|
+
const i = [n, r, ...o];
|
|
887
985
|
[].forEach.call(e.children, (a) => {
|
|
888
|
-
const l =
|
|
889
|
-
l && c && Z(a,
|
|
986
|
+
const l = i.indexOf(a) === -1, c = !gt(a);
|
|
987
|
+
l && c && Z(a, s);
|
|
890
988
|
});
|
|
891
989
|
}
|
|
892
|
-
function
|
|
990
|
+
function ge(e, n) {
|
|
893
991
|
let r = -1;
|
|
894
|
-
return e.some((o,
|
|
992
|
+
return e.some((o, s) => n(o) ? (r = s, !0) : !1), r;
|
|
895
993
|
}
|
|
896
|
-
function
|
|
994
|
+
function yt(e, n) {
|
|
897
995
|
const r = [], o = e.container;
|
|
898
|
-
if (!
|
|
899
|
-
if (
|
|
900
|
-
const a =
|
|
996
|
+
if (!n.disableScrollLock) {
|
|
997
|
+
if (bt(o)) {
|
|
998
|
+
const a = An(q(o));
|
|
901
999
|
r.push({
|
|
902
1000
|
value: o.style.paddingRight,
|
|
903
1001
|
property: "padding-right",
|
|
904
1002
|
el: o
|
|
905
|
-
}), o.style.paddingRight = `${
|
|
1003
|
+
}), o.style.paddingRight = `${Ue(o) + a}px`;
|
|
906
1004
|
const l = q(o).querySelectorAll(".mui-fixed");
|
|
907
1005
|
[].forEach.call(l, (c) => {
|
|
908
1006
|
r.push({
|
|
909
1007
|
value: c.style.paddingRight,
|
|
910
1008
|
property: "padding-right",
|
|
911
1009
|
el: c
|
|
912
|
-
}), c.style.paddingRight = `${
|
|
1010
|
+
}), c.style.paddingRight = `${Ue(c) + a}px`;
|
|
913
1011
|
});
|
|
914
1012
|
}
|
|
915
|
-
let
|
|
1013
|
+
let i;
|
|
916
1014
|
if (o.parentNode instanceof DocumentFragment)
|
|
917
|
-
|
|
1015
|
+
i = q(o).body;
|
|
918
1016
|
else {
|
|
919
1017
|
const a = o.parentElement, l = G(o);
|
|
920
|
-
|
|
1018
|
+
i = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
|
|
921
1019
|
}
|
|
922
1020
|
r.push({
|
|
923
|
-
value:
|
|
1021
|
+
value: i.style.overflow,
|
|
924
1022
|
property: "overflow",
|
|
925
|
-
el:
|
|
1023
|
+
el: i
|
|
926
1024
|
}, {
|
|
927
|
-
value:
|
|
1025
|
+
value: i.style.overflowX,
|
|
928
1026
|
property: "overflow-x",
|
|
929
|
-
el:
|
|
1027
|
+
el: i
|
|
930
1028
|
}, {
|
|
931
|
-
value:
|
|
1029
|
+
value: i.style.overflowY,
|
|
932
1030
|
property: "overflow-y",
|
|
933
|
-
el:
|
|
934
|
-
}),
|
|
1031
|
+
el: i
|
|
1032
|
+
}), i.style.overflow = "hidden";
|
|
935
1033
|
}
|
|
936
1034
|
return () => {
|
|
937
1035
|
r.forEach(({
|
|
938
|
-
value:
|
|
1036
|
+
value: i,
|
|
939
1037
|
el: a,
|
|
940
1038
|
property: l
|
|
941
1039
|
}) => {
|
|
942
|
-
|
|
1040
|
+
i ? a.style.setProperty(l, i) : a.style.removeProperty(l);
|
|
943
1041
|
});
|
|
944
1042
|
};
|
|
945
1043
|
}
|
|
946
|
-
function
|
|
947
|
-
const
|
|
1044
|
+
function Et(e) {
|
|
1045
|
+
const n = [];
|
|
948
1046
|
return [].forEach.call(e.children, (r) => {
|
|
949
|
-
r.getAttribute("aria-hidden") === "true" &&
|
|
950
|
-
}),
|
|
1047
|
+
r.getAttribute("aria-hidden") === "true" && n.push(r);
|
|
1048
|
+
}), n;
|
|
951
1049
|
}
|
|
952
|
-
class
|
|
1050
|
+
class xt {
|
|
953
1051
|
constructor() {
|
|
954
1052
|
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
|
955
1053
|
}
|
|
956
|
-
add(
|
|
957
|
-
let o = this.modals.indexOf(
|
|
1054
|
+
add(n, r) {
|
|
1055
|
+
let o = this.modals.indexOf(n);
|
|
958
1056
|
if (o !== -1)
|
|
959
1057
|
return o;
|
|
960
|
-
o = this.modals.length, this.modals.push(
|
|
961
|
-
const
|
|
962
|
-
|
|
963
|
-
const
|
|
964
|
-
return
|
|
965
|
-
modals: [
|
|
1058
|
+
o = this.modals.length, this.modals.push(n), n.modalRef && Z(n.modalRef, !1);
|
|
1059
|
+
const s = Et(r);
|
|
1060
|
+
ze(r, n.mount, n.modalRef, s, !0);
|
|
1061
|
+
const i = ge(this.containers, (a) => a.container === r);
|
|
1062
|
+
return i !== -1 ? (this.containers[i].modals.push(n), o) : (this.containers.push({
|
|
1063
|
+
modals: [n],
|
|
966
1064
|
container: r,
|
|
967
1065
|
restore: null,
|
|
968
|
-
hiddenSiblings:
|
|
1066
|
+
hiddenSiblings: s
|
|
969
1067
|
}), o);
|
|
970
1068
|
}
|
|
971
|
-
mount(
|
|
972
|
-
const o =
|
|
973
|
-
|
|
1069
|
+
mount(n, r) {
|
|
1070
|
+
const o = ge(this.containers, (i) => i.modals.indexOf(n) !== -1), s = this.containers[o];
|
|
1071
|
+
s.restore || (s.restore = yt(s, r));
|
|
974
1072
|
}
|
|
975
|
-
remove(
|
|
976
|
-
const o = this.modals.indexOf(
|
|
1073
|
+
remove(n, r = !0) {
|
|
1074
|
+
const o = this.modals.indexOf(n);
|
|
977
1075
|
if (o === -1)
|
|
978
1076
|
return o;
|
|
979
|
-
const
|
|
980
|
-
if (
|
|
981
|
-
|
|
1077
|
+
const s = ge(this.containers, (a) => a.modals.indexOf(n) !== -1), i = this.containers[s];
|
|
1078
|
+
if (i.modals.splice(i.modals.indexOf(n), 1), this.modals.splice(o, 1), i.modals.length === 0)
|
|
1079
|
+
i.restore && i.restore(), n.modalRef && Z(n.modalRef, r), ze(i.container, n.mount, n.modalRef, i.hiddenSiblings, !1), this.containers.splice(s, 1);
|
|
982
1080
|
else {
|
|
983
|
-
const a =
|
|
1081
|
+
const a = i.modals[i.modals.length - 1];
|
|
984
1082
|
a.modalRef && Z(a.modalRef, !1);
|
|
985
1083
|
}
|
|
986
1084
|
return o;
|
|
987
1085
|
}
|
|
988
|
-
isTopModal(
|
|
989
|
-
return this.modals.length > 0 && this.modals[this.modals.length - 1] ===
|
|
1086
|
+
isTopModal(n) {
|
|
1087
|
+
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
990
1088
|
}
|
|
991
1089
|
}
|
|
992
|
-
const
|
|
993
|
-
function
|
|
994
|
-
const
|
|
995
|
-
return Number.isNaN(
|
|
1090
|
+
const Tt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
1091
|
+
function kt(e) {
|
|
1092
|
+
const n = parseInt(e.getAttribute("tabindex") || "", 10);
|
|
1093
|
+
return Number.isNaN(n) ? e.contentEditable === "true" || (e.nodeName === "AUDIO" || e.nodeName === "VIDEO" || e.nodeName === "DETAILS") && e.getAttribute("tabindex") === null ? 0 : e.tabIndex : n;
|
|
996
1094
|
}
|
|
997
|
-
function
|
|
1095
|
+
function Pt(e) {
|
|
998
1096
|
if (e.tagName !== "INPUT" || e.type !== "radio" || !e.name)
|
|
999
1097
|
return !1;
|
|
1000
|
-
const
|
|
1001
|
-
let r =
|
|
1002
|
-
return r || (r =
|
|
1098
|
+
const n = (o) => e.ownerDocument.querySelector(`input[type="radio"]${o}`);
|
|
1099
|
+
let r = n(`[name="${e.name}"]:checked`);
|
|
1100
|
+
return r || (r = n(`[name="${e.name}"]`)), r !== e;
|
|
1003
1101
|
}
|
|
1004
|
-
function
|
|
1005
|
-
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" ||
|
|
1102
|
+
function Rt(e) {
|
|
1103
|
+
return !(e.disabled || e.tagName === "INPUT" && e.type === "hidden" || Pt(e));
|
|
1006
1104
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1009
|
-
return Array.from(e.querySelectorAll(
|
|
1010
|
-
const
|
|
1011
|
-
|
|
1012
|
-
documentOrder:
|
|
1013
|
-
tabIndex:
|
|
1105
|
+
function Nt(e) {
|
|
1106
|
+
const n = [], r = [];
|
|
1107
|
+
return Array.from(e.querySelectorAll(Tt)).forEach((o, s) => {
|
|
1108
|
+
const i = kt(o);
|
|
1109
|
+
i === -1 || !Rt(o) || (i === 0 ? n.push(o) : r.push({
|
|
1110
|
+
documentOrder: s,
|
|
1111
|
+
tabIndex: i,
|
|
1014
1112
|
node: o
|
|
1015
1113
|
}));
|
|
1016
|
-
}), r.sort((o,
|
|
1114
|
+
}), r.sort((o, s) => o.tabIndex === s.tabIndex ? o.documentOrder - s.documentOrder : o.tabIndex - s.tabIndex).map((o) => o.node).concat(n);
|
|
1017
1115
|
}
|
|
1018
|
-
function
|
|
1116
|
+
function wt() {
|
|
1019
1117
|
return !0;
|
|
1020
1118
|
}
|
|
1021
1119
|
function ue(e) {
|
|
1022
1120
|
const {
|
|
1023
|
-
children:
|
|
1121
|
+
children: n,
|
|
1024
1122
|
disableAutoFocus: r = !1,
|
|
1025
1123
|
disableEnforceFocus: o = !1,
|
|
1026
|
-
disableRestoreFocus:
|
|
1027
|
-
getTabbable:
|
|
1028
|
-
isEnabled: a =
|
|
1124
|
+
disableRestoreFocus: s = !1,
|
|
1125
|
+
getTabbable: i = Nt,
|
|
1126
|
+
isEnabled: a = wt,
|
|
1029
1127
|
open: l
|
|
1030
|
-
} = e, c =
|
|
1031
|
-
|
|
1032
|
-
!l || !
|
|
1033
|
-
}, [r, l]),
|
|
1034
|
-
if (!l || !
|
|
1128
|
+
} = e, c = p.useRef(!1), u = p.useRef(null), f = p.useRef(null), b = p.useRef(null), g = p.useRef(null), y = p.useRef(!1), v = p.useRef(null), P = W(fe(n), v), w = p.useRef(null);
|
|
1129
|
+
p.useEffect(() => {
|
|
1130
|
+
!l || !v.current || (y.current = !r);
|
|
1131
|
+
}, [r, l]), p.useEffect(() => {
|
|
1132
|
+
if (!l || !v.current)
|
|
1035
1133
|
return;
|
|
1036
|
-
const
|
|
1037
|
-
return
|
|
1038
|
-
`)),
|
|
1039
|
-
|
|
1134
|
+
const m = q(v.current);
|
|
1135
|
+
return v.current.contains(m.activeElement) || (v.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(`
|
|
1136
|
+
`)), v.current.setAttribute("tabIndex", "-1")), y.current && v.current.focus()), () => {
|
|
1137
|
+
s || (b.current && b.current.focus && (c.current = !0, b.current.focus()), b.current = null);
|
|
1040
1138
|
};
|
|
1041
|
-
}, [l]),
|
|
1042
|
-
if (!l || !
|
|
1139
|
+
}, [l]), p.useEffect(() => {
|
|
1140
|
+
if (!l || !v.current)
|
|
1043
1141
|
return;
|
|
1044
|
-
const
|
|
1045
|
-
w.current = E, !(o || !a() || E.key !== "Tab") &&
|
|
1046
|
-
},
|
|
1047
|
-
const E =
|
|
1142
|
+
const m = q(v.current), T = (E) => {
|
|
1143
|
+
w.current = E, !(o || !a() || E.key !== "Tab") && m.activeElement === v.current && E.shiftKey && (c.current = !0, f.current && f.current.focus());
|
|
1144
|
+
}, C = () => {
|
|
1145
|
+
const E = v.current;
|
|
1048
1146
|
if (E === null)
|
|
1049
1147
|
return;
|
|
1050
|
-
if (!
|
|
1148
|
+
if (!m.hasFocus() || !a() || c.current) {
|
|
1051
1149
|
c.current = !1;
|
|
1052
1150
|
return;
|
|
1053
1151
|
}
|
|
1054
|
-
if (E.contains(
|
|
1152
|
+
if (E.contains(m.activeElement) || o && m.activeElement !== u.current && m.activeElement !== f.current)
|
|
1055
1153
|
return;
|
|
1056
|
-
if (
|
|
1154
|
+
if (m.activeElement !== g.current)
|
|
1057
1155
|
g.current = null;
|
|
1058
1156
|
else if (g.current !== null)
|
|
1059
1157
|
return;
|
|
1060
1158
|
if (!y.current)
|
|
1061
1159
|
return;
|
|
1062
1160
|
let M = [];
|
|
1063
|
-
if ((
|
|
1064
|
-
var _,
|
|
1065
|
-
const
|
|
1066
|
-
typeof B != "string" && typeof j != "string" && (
|
|
1161
|
+
if ((m.activeElement === u.current || m.activeElement === f.current) && (M = i(v.current)), M.length > 0) {
|
|
1162
|
+
var _, I;
|
|
1163
|
+
const $ = !!((_ = w.current) != null && _.shiftKey && ((I = w.current) == null ? void 0 : I.key) === "Tab"), B = M[0], j = M[M.length - 1];
|
|
1164
|
+
typeof B != "string" && typeof j != "string" && ($ ? j.focus() : B.focus());
|
|
1067
1165
|
} else
|
|
1068
1166
|
E.focus();
|
|
1069
1167
|
};
|
|
1070
|
-
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1168
|
+
m.addEventListener("focusin", C), m.addEventListener("keydown", T, !0);
|
|
1169
|
+
const O = setInterval(() => {
|
|
1170
|
+
m.activeElement && m.activeElement.tagName === "BODY" && C();
|
|
1073
1171
|
}, 50);
|
|
1074
1172
|
return () => {
|
|
1075
|
-
clearInterval(
|
|
1173
|
+
clearInterval(O), m.removeEventListener("focusin", C), m.removeEventListener("keydown", T, !0);
|
|
1076
1174
|
};
|
|
1077
|
-
}, [r, o,
|
|
1078
|
-
const
|
|
1079
|
-
|
|
1080
|
-
const T =
|
|
1081
|
-
T && T(
|
|
1082
|
-
},
|
|
1083
|
-
|
|
1175
|
+
}, [r, o, s, a, l, i]);
|
|
1176
|
+
const S = (m) => {
|
|
1177
|
+
b.current === null && (b.current = m.relatedTarget), y.current = !0, g.current = m.target;
|
|
1178
|
+
const T = n.props.onFocus;
|
|
1179
|
+
T && T(m);
|
|
1180
|
+
}, D = (m) => {
|
|
1181
|
+
b.current === null && (b.current = m.relatedTarget), y.current = !0;
|
|
1084
1182
|
};
|
|
1085
|
-
return /* @__PURE__ */ de(
|
|
1183
|
+
return /* @__PURE__ */ de(p.Fragment, {
|
|
1086
1184
|
children: [/* @__PURE__ */ x("div", {
|
|
1087
1185
|
tabIndex: l ? 0 : -1,
|
|
1088
|
-
onFocus:
|
|
1089
|
-
ref:
|
|
1186
|
+
onFocus: D,
|
|
1187
|
+
ref: u,
|
|
1090
1188
|
"data-testid": "sentinelStart"
|
|
1091
|
-
}), /* @__PURE__ */
|
|
1092
|
-
ref:
|
|
1093
|
-
onFocus:
|
|
1189
|
+
}), /* @__PURE__ */ p.cloneElement(n, {
|
|
1190
|
+
ref: P,
|
|
1191
|
+
onFocus: S
|
|
1094
1192
|
}), /* @__PURE__ */ x("div", {
|
|
1095
1193
|
tabIndex: l ? 0 : -1,
|
|
1096
|
-
onFocus:
|
|
1097
|
-
ref:
|
|
1194
|
+
onFocus: D,
|
|
1195
|
+
ref: f,
|
|
1098
1196
|
"data-testid": "sentinelEnd"
|
|
1099
1197
|
})]
|
|
1100
1198
|
});
|
|
@@ -1117,7 +1215,7 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
|
1117
1215
|
* accessible to assistive technologies, like screen readers.
|
|
1118
1216
|
* @default false
|
|
1119
1217
|
*/
|
|
1120
|
-
disableAutoFocus:
|
|
1218
|
+
disableAutoFocus: t.bool,
|
|
1121
1219
|
/**
|
|
1122
1220
|
* If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
|
|
1123
1221
|
*
|
|
@@ -1125,19 +1223,19 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
|
1125
1223
|
* accessible to assistive technologies, like screen readers.
|
|
1126
1224
|
* @default false
|
|
1127
1225
|
*/
|
|
1128
|
-
disableEnforceFocus:
|
|
1226
|
+
disableEnforceFocus: t.bool,
|
|
1129
1227
|
/**
|
|
1130
1228
|
* If `true`, the focus trap will not restore focus to previously focused element once
|
|
1131
1229
|
* focus trap is hidden or unmounted.
|
|
1132
1230
|
* @default false
|
|
1133
1231
|
*/
|
|
1134
|
-
disableRestoreFocus:
|
|
1232
|
+
disableRestoreFocus: t.bool,
|
|
1135
1233
|
/**
|
|
1136
1234
|
* Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
|
|
1137
1235
|
* For instance, you can provide the "tabbable" npm dependency.
|
|
1138
1236
|
* @param {HTMLElement} root
|
|
1139
1237
|
*/
|
|
1140
|
-
getTabbable:
|
|
1238
|
+
getTabbable: t.func,
|
|
1141
1239
|
/**
|
|
1142
1240
|
* This prop extends the `open` prop.
|
|
1143
1241
|
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
|
@@ -1147,240 +1245,240 @@ process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
|
1147
1245
|
* return true;
|
|
1148
1246
|
* }
|
|
1149
1247
|
*/
|
|
1150
|
-
isEnabled:
|
|
1248
|
+
isEnabled: t.func,
|
|
1151
1249
|
/**
|
|
1152
1250
|
* If `true`, focus is locked.
|
|
1153
1251
|
*/
|
|
1154
|
-
open:
|
|
1252
|
+
open: t.bool.isRequired
|
|
1155
1253
|
});
|
|
1156
|
-
process.env.NODE_ENV !== "production" && (ue.propTypes =
|
|
1157
|
-
function
|
|
1254
|
+
process.env.NODE_ENV !== "production" && (ue.propTypes = Je(ue.propTypes));
|
|
1255
|
+
function Ct(e) {
|
|
1158
1256
|
return typeof e == "function" ? e() : e;
|
|
1159
1257
|
}
|
|
1160
|
-
function
|
|
1258
|
+
function St(e) {
|
|
1161
1259
|
return e ? e.props.hasOwnProperty("in") : !1;
|
|
1162
1260
|
}
|
|
1163
|
-
const
|
|
1164
|
-
function
|
|
1261
|
+
const Ot = new xt();
|
|
1262
|
+
function It(e) {
|
|
1165
1263
|
const {
|
|
1166
|
-
container:
|
|
1264
|
+
container: n,
|
|
1167
1265
|
disableEscapeKeyDown: r = !1,
|
|
1168
1266
|
disableScrollLock: o = !1,
|
|
1169
1267
|
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
|
1170
|
-
manager:
|
|
1171
|
-
closeAfterTransition:
|
|
1268
|
+
manager: s = Ot,
|
|
1269
|
+
closeAfterTransition: i = !1,
|
|
1172
1270
|
onTransitionEnter: a,
|
|
1173
1271
|
onTransitionExited: l,
|
|
1174
1272
|
children: c,
|
|
1175
|
-
onClose:
|
|
1176
|
-
open:
|
|
1177
|
-
rootRef:
|
|
1178
|
-
} = e, g =
|
|
1179
|
-
let
|
|
1180
|
-
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (
|
|
1181
|
-
const T = () => q(y.current),
|
|
1182
|
-
|
|
1273
|
+
onClose: u,
|
|
1274
|
+
open: f,
|
|
1275
|
+
rootRef: b
|
|
1276
|
+
} = e, g = p.useRef({}), y = p.useRef(null), v = p.useRef(null), P = W(v, b), [w, S] = p.useState(!f), D = St(c);
|
|
1277
|
+
let m = !0;
|
|
1278
|
+
(e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (m = !1);
|
|
1279
|
+
const T = () => q(y.current), C = () => (g.current.modalRef = v.current, g.current.mount = y.current, g.current), O = () => {
|
|
1280
|
+
s.mount(C(), {
|
|
1183
1281
|
disableScrollLock: o
|
|
1184
|
-
}),
|
|
1185
|
-
}, E =
|
|
1186
|
-
const k =
|
|
1187
|
-
|
|
1188
|
-
}), M =
|
|
1189
|
-
y.current = k, k && (
|
|
1190
|
-
}),
|
|
1191
|
-
|
|
1192
|
-
}, [
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
}, [
|
|
1196
|
-
|
|
1197
|
-
}, [
|
|
1198
|
-
const
|
|
1282
|
+
}), v.current && (v.current.scrollTop = 0);
|
|
1283
|
+
}, E = xe(() => {
|
|
1284
|
+
const k = Ct(n) || T().body;
|
|
1285
|
+
s.add(C(), k), v.current && O();
|
|
1286
|
+
}), M = p.useCallback(() => s.isTopModal(C()), [s]), _ = xe((k) => {
|
|
1287
|
+
y.current = k, k && (f && M() ? O() : v.current && Z(v.current, m));
|
|
1288
|
+
}), I = p.useCallback(() => {
|
|
1289
|
+
s.remove(C(), m);
|
|
1290
|
+
}, [m, s]);
|
|
1291
|
+
p.useEffect(() => () => {
|
|
1292
|
+
I();
|
|
1293
|
+
}, [I]), p.useEffect(() => {
|
|
1294
|
+
f ? E() : (!D || !i) && I();
|
|
1295
|
+
}, [f, I, D, i, E]);
|
|
1296
|
+
const $ = (k) => (N) => {
|
|
1199
1297
|
var h;
|
|
1200
|
-
(h = k.onKeyDown) == null || h.call(k,
|
|
1201
|
-
!M()) && (r || (
|
|
1202
|
-
}, B = (k) => (
|
|
1298
|
+
(h = k.onKeyDown) == null || h.call(k, N), !(N.key !== "Escape" || N.which === 229 || // Wait until IME is settled.
|
|
1299
|
+
!M()) && (r || (N.stopPropagation(), u && u(N, "escapeKeyDown")));
|
|
1300
|
+
}, B = (k) => (N) => {
|
|
1203
1301
|
var h;
|
|
1204
|
-
(h = k.onClick) == null || h.call(k,
|
|
1302
|
+
(h = k.onClick) == null || h.call(k, N), N.target === N.currentTarget && u && u(N, "backdropClick");
|
|
1205
1303
|
};
|
|
1206
1304
|
return {
|
|
1207
1305
|
getRootProps: (k = {}) => {
|
|
1208
|
-
const
|
|
1209
|
-
delete
|
|
1210
|
-
const h =
|
|
1211
|
-
return
|
|
1306
|
+
const N = on(e);
|
|
1307
|
+
delete N.onTransitionEnter, delete N.onTransitionExited;
|
|
1308
|
+
const h = d({}, N, k);
|
|
1309
|
+
return d({
|
|
1212
1310
|
role: "presentation"
|
|
1213
1311
|
}, h, {
|
|
1214
|
-
onKeyDown:
|
|
1215
|
-
ref:
|
|
1312
|
+
onKeyDown: $(h),
|
|
1313
|
+
ref: P
|
|
1216
1314
|
});
|
|
1217
1315
|
},
|
|
1218
1316
|
getBackdropProps: (k = {}) => {
|
|
1219
|
-
const
|
|
1220
|
-
return
|
|
1317
|
+
const N = k;
|
|
1318
|
+
return d({
|
|
1221
1319
|
"aria-hidden": !0
|
|
1222
|
-
},
|
|
1223
|
-
onClick: B(
|
|
1224
|
-
open:
|
|
1320
|
+
}, N, {
|
|
1321
|
+
onClick: B(N),
|
|
1322
|
+
open: f
|
|
1225
1323
|
});
|
|
1226
1324
|
},
|
|
1227
1325
|
getTransitionProps: () => {
|
|
1228
1326
|
const k = () => {
|
|
1229
|
-
|
|
1230
|
-
},
|
|
1231
|
-
|
|
1327
|
+
S(!1), a && a();
|
|
1328
|
+
}, N = () => {
|
|
1329
|
+
S(!0), l && l(), i && I();
|
|
1232
1330
|
};
|
|
1233
1331
|
return {
|
|
1234
|
-
onEnter:
|
|
1235
|
-
onExited:
|
|
1332
|
+
onEnter: Te(k, c == null ? void 0 : c.props.onEnter),
|
|
1333
|
+
onExited: Te(N, c == null ? void 0 : c.props.onExited)
|
|
1236
1334
|
};
|
|
1237
1335
|
},
|
|
1238
|
-
rootRef:
|
|
1336
|
+
rootRef: P,
|
|
1239
1337
|
portalRef: _,
|
|
1240
1338
|
isTopModal: M,
|
|
1241
1339
|
exited: w,
|
|
1242
|
-
hasTransition:
|
|
1340
|
+
hasTransition: D
|
|
1243
1341
|
};
|
|
1244
1342
|
}
|
|
1245
|
-
function
|
|
1343
|
+
function Dt(e) {
|
|
1246
1344
|
return Q("MuiModal", e);
|
|
1247
1345
|
}
|
|
1248
1346
|
ee("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1249
|
-
const
|
|
1347
|
+
const $t = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], Mt = (e) => {
|
|
1250
1348
|
const {
|
|
1251
|
-
open:
|
|
1349
|
+
open: n,
|
|
1252
1350
|
exited: r,
|
|
1253
1351
|
classes: o
|
|
1254
1352
|
} = e;
|
|
1255
|
-
return
|
|
1256
|
-
root: ["root", !
|
|
1353
|
+
return te({
|
|
1354
|
+
root: ["root", !n && r && "hidden"],
|
|
1257
1355
|
backdrop: ["backdrop"]
|
|
1258
|
-
},
|
|
1259
|
-
},
|
|
1356
|
+
}, Dt, o);
|
|
1357
|
+
}, _t = L("div", {
|
|
1260
1358
|
name: "MuiModal",
|
|
1261
1359
|
slot: "Root",
|
|
1262
|
-
overridesResolver: (e,
|
|
1360
|
+
overridesResolver: (e, n) => {
|
|
1263
1361
|
const {
|
|
1264
1362
|
ownerState: r
|
|
1265
1363
|
} = e;
|
|
1266
|
-
return [
|
|
1364
|
+
return [n.root, !r.open && r.exited && n.hidden];
|
|
1267
1365
|
}
|
|
1268
1366
|
})(({
|
|
1269
1367
|
theme: e,
|
|
1270
|
-
ownerState:
|
|
1271
|
-
}) =>
|
|
1368
|
+
ownerState: n
|
|
1369
|
+
}) => d({
|
|
1272
1370
|
position: "fixed",
|
|
1273
1371
|
zIndex: (e.vars || e).zIndex.modal,
|
|
1274
1372
|
right: 0,
|
|
1275
1373
|
bottom: 0,
|
|
1276
1374
|
top: 0,
|
|
1277
1375
|
left: 0
|
|
1278
|
-
}, !
|
|
1376
|
+
}, !n.open && n.exited && {
|
|
1279
1377
|
visibility: "hidden"
|
|
1280
|
-
})),
|
|
1378
|
+
})), Ft = L(Ne, {
|
|
1281
1379
|
name: "MuiModal",
|
|
1282
1380
|
slot: "Backdrop",
|
|
1283
|
-
overridesResolver: (e,
|
|
1381
|
+
overridesResolver: (e, n) => n.backdrop
|
|
1284
1382
|
})({
|
|
1285
1383
|
zIndex: -1
|
|
1286
|
-
}),
|
|
1287
|
-
var o,
|
|
1288
|
-
const
|
|
1384
|
+
}), ln = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1385
|
+
var o, s, i, a, l, c;
|
|
1386
|
+
const u = ne({
|
|
1289
1387
|
name: "MuiModal",
|
|
1290
|
-
props:
|
|
1388
|
+
props: n
|
|
1291
1389
|
}), {
|
|
1292
|
-
BackdropComponent:
|
|
1293
|
-
BackdropProps:
|
|
1390
|
+
BackdropComponent: f = Ft,
|
|
1391
|
+
BackdropProps: b,
|
|
1294
1392
|
className: g,
|
|
1295
1393
|
closeAfterTransition: y = !1,
|
|
1296
|
-
children:
|
|
1297
|
-
container:
|
|
1394
|
+
children: v,
|
|
1395
|
+
container: P,
|
|
1298
1396
|
component: w,
|
|
1299
|
-
components:
|
|
1300
|
-
componentsProps:
|
|
1301
|
-
disableAutoFocus:
|
|
1397
|
+
components: S = {},
|
|
1398
|
+
componentsProps: D = {},
|
|
1399
|
+
disableAutoFocus: m = !1,
|
|
1302
1400
|
disableEnforceFocus: T = !1,
|
|
1303
|
-
disableEscapeKeyDown:
|
|
1304
|
-
disablePortal:
|
|
1401
|
+
disableEscapeKeyDown: C = !1,
|
|
1402
|
+
disablePortal: O = !1,
|
|
1305
1403
|
disableRestoreFocus: E = !1,
|
|
1306
1404
|
disableScrollLock: M = !1,
|
|
1307
1405
|
hideBackdrop: _ = !1,
|
|
1308
|
-
keepMounted:
|
|
1309
|
-
onBackdropClick:
|
|
1406
|
+
keepMounted: I = !1,
|
|
1407
|
+
onBackdropClick: $,
|
|
1310
1408
|
open: B,
|
|
1311
1409
|
slotProps: j,
|
|
1312
|
-
slots:
|
|
1410
|
+
slots: R
|
|
1313
1411
|
// eslint-disable-next-line react/prop-types
|
|
1314
|
-
} =
|
|
1412
|
+
} = u, A = H(u, $t), k = d({}, u, {
|
|
1315
1413
|
closeAfterTransition: y,
|
|
1316
|
-
disableAutoFocus:
|
|
1414
|
+
disableAutoFocus: m,
|
|
1317
1415
|
disableEnforceFocus: T,
|
|
1318
|
-
disableEscapeKeyDown:
|
|
1319
|
-
disablePortal:
|
|
1416
|
+
disableEscapeKeyDown: C,
|
|
1417
|
+
disablePortal: O,
|
|
1320
1418
|
disableRestoreFocus: E,
|
|
1321
1419
|
disableScrollLock: M,
|
|
1322
1420
|
hideBackdrop: _,
|
|
1323
|
-
keepMounted:
|
|
1421
|
+
keepMounted: I
|
|
1324
1422
|
}), {
|
|
1325
|
-
getRootProps:
|
|
1423
|
+
getRootProps: N,
|
|
1326
1424
|
getBackdropProps: h,
|
|
1327
1425
|
getTransitionProps: F,
|
|
1328
1426
|
portalRef: re,
|
|
1329
|
-
isTopModal:
|
|
1330
|
-
exited:
|
|
1427
|
+
isTopModal: hn,
|
|
1428
|
+
exited: Se,
|
|
1331
1429
|
hasTransition: Oe
|
|
1332
|
-
} =
|
|
1430
|
+
} = It(d({}, k, {
|
|
1333
1431
|
rootRef: r
|
|
1334
|
-
})), X =
|
|
1335
|
-
exited:
|
|
1336
|
-
}),
|
|
1337
|
-
if (
|
|
1432
|
+
})), X = d({}, k, {
|
|
1433
|
+
exited: Se
|
|
1434
|
+
}), K = Mt(X), se = {};
|
|
1435
|
+
if (v.props.tabIndex === void 0 && (se.tabIndex = "-1"), Oe) {
|
|
1338
1436
|
const {
|
|
1339
|
-
onEnter:
|
|
1340
|
-
onExited:
|
|
1437
|
+
onEnter: Y,
|
|
1438
|
+
onExited: ie
|
|
1341
1439
|
} = F();
|
|
1342
|
-
|
|
1440
|
+
se.onEnter = Y, se.onExited = ie;
|
|
1343
1441
|
}
|
|
1344
|
-
const
|
|
1345
|
-
elementType:
|
|
1346
|
-
externalSlotProps:
|
|
1442
|
+
const Ie = (o = (s = R == null ? void 0 : R.root) != null ? s : S.Root) != null ? o : _t, De = (i = (a = R == null ? void 0 : R.backdrop) != null ? a : S.Backdrop) != null ? i : f, he = (l = j == null ? void 0 : j.root) != null ? l : D.root, ve = (c = j == null ? void 0 : j.backdrop) != null ? c : D.backdrop, vn = Be({
|
|
1443
|
+
elementType: Ie,
|
|
1444
|
+
externalSlotProps: he,
|
|
1347
1445
|
externalForwardedProps: A,
|
|
1348
|
-
getSlotProps:
|
|
1446
|
+
getSlotProps: N,
|
|
1349
1447
|
additionalProps: {
|
|
1350
1448
|
ref: r,
|
|
1351
1449
|
as: w
|
|
1352
1450
|
},
|
|
1353
1451
|
ownerState: X,
|
|
1354
|
-
className: V(g,
|
|
1355
|
-
}),
|
|
1452
|
+
className: V(g, he == null ? void 0 : he.className, K == null ? void 0 : K.root, !X.open && X.exited && (K == null ? void 0 : K.hidden))
|
|
1453
|
+
}), bn = Be({
|
|
1356
1454
|
elementType: De,
|
|
1357
|
-
externalSlotProps:
|
|
1358
|
-
additionalProps:
|
|
1359
|
-
getSlotProps: (
|
|
1360
|
-
onClick: (
|
|
1361
|
-
|
|
1455
|
+
externalSlotProps: ve,
|
|
1456
|
+
additionalProps: b,
|
|
1457
|
+
getSlotProps: (Y) => h(d({}, Y, {
|
|
1458
|
+
onClick: (ie) => {
|
|
1459
|
+
$ && $(ie), Y != null && Y.onClick && Y.onClick(ie);
|
|
1362
1460
|
}
|
|
1363
1461
|
})),
|
|
1364
|
-
className: V(
|
|
1462
|
+
className: V(ve == null ? void 0 : ve.className, b == null ? void 0 : b.className, K == null ? void 0 : K.backdrop),
|
|
1365
1463
|
ownerState: X
|
|
1366
1464
|
});
|
|
1367
|
-
return !
|
|
1465
|
+
return !I && !B && (!Oe || Se) ? null : /* @__PURE__ */ x(ce, {
|
|
1368
1466
|
ref: re,
|
|
1369
|
-
container:
|
|
1370
|
-
disablePortal:
|
|
1371
|
-
children: /* @__PURE__ */ de(
|
|
1372
|
-
children: [!_ &&
|
|
1467
|
+
container: P,
|
|
1468
|
+
disablePortal: O,
|
|
1469
|
+
children: /* @__PURE__ */ de(Ie, d({}, vn, {
|
|
1470
|
+
children: [!_ && f ? /* @__PURE__ */ x(De, d({}, bn)) : null, /* @__PURE__ */ x(ue, {
|
|
1373
1471
|
disableEnforceFocus: T,
|
|
1374
|
-
disableAutoFocus:
|
|
1472
|
+
disableAutoFocus: m,
|
|
1375
1473
|
disableRestoreFocus: E,
|
|
1376
|
-
isEnabled:
|
|
1474
|
+
isEnabled: hn,
|
|
1377
1475
|
open: B,
|
|
1378
|
-
children: /* @__PURE__ */
|
|
1476
|
+
children: /* @__PURE__ */ p.cloneElement(v, se)
|
|
1379
1477
|
})]
|
|
1380
1478
|
}))
|
|
1381
1479
|
});
|
|
1382
1480
|
});
|
|
1383
|
-
process.env.NODE_ENV !== "production" && (
|
|
1481
|
+
process.env.NODE_ENV !== "production" && (ln.propTypes = {
|
|
1384
1482
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1385
1483
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1386
1484
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1399,12 +1497,12 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1399
1497
|
* zIndex: -1,
|
|
1400
1498
|
* })
|
|
1401
1499
|
*/
|
|
1402
|
-
BackdropComponent:
|
|
1500
|
+
BackdropComponent: t.elementType,
|
|
1403
1501
|
/**
|
|
1404
1502
|
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
|
1405
1503
|
* @deprecated Use `slotProps.backdrop` instead.
|
|
1406
1504
|
*/
|
|
1407
|
-
BackdropProps:
|
|
1505
|
+
BackdropProps: t.object,
|
|
1408
1506
|
/**
|
|
1409
1507
|
* A single child content element.
|
|
1410
1508
|
*/
|
|
@@ -1412,21 +1510,21 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1412
1510
|
/**
|
|
1413
1511
|
* Override or extend the styles applied to the component.
|
|
1414
1512
|
*/
|
|
1415
|
-
classes:
|
|
1513
|
+
classes: t.object,
|
|
1416
1514
|
/**
|
|
1417
1515
|
* @ignore
|
|
1418
1516
|
*/
|
|
1419
|
-
className:
|
|
1517
|
+
className: t.string,
|
|
1420
1518
|
/**
|
|
1421
1519
|
* When set to true the Modal waits until a nested Transition is completed before closing.
|
|
1422
1520
|
* @default false
|
|
1423
1521
|
*/
|
|
1424
|
-
closeAfterTransition:
|
|
1522
|
+
closeAfterTransition: t.bool,
|
|
1425
1523
|
/**
|
|
1426
1524
|
* The component used for the root node.
|
|
1427
1525
|
* Either a string to use a HTML element or a component.
|
|
1428
1526
|
*/
|
|
1429
|
-
component:
|
|
1527
|
+
component: t.elementType,
|
|
1430
1528
|
/**
|
|
1431
1529
|
* The components used for each slot inside.
|
|
1432
1530
|
*
|
|
@@ -1435,9 +1533,9 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1435
1533
|
*
|
|
1436
1534
|
* @default {}
|
|
1437
1535
|
*/
|
|
1438
|
-
components:
|
|
1439
|
-
Backdrop:
|
|
1440
|
-
Root:
|
|
1536
|
+
components: t.shape({
|
|
1537
|
+
Backdrop: t.elementType,
|
|
1538
|
+
Root: t.elementType
|
|
1441
1539
|
}),
|
|
1442
1540
|
/**
|
|
1443
1541
|
* The extra props for the slot components.
|
|
@@ -1448,9 +1546,9 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1448
1546
|
*
|
|
1449
1547
|
* @default {}
|
|
1450
1548
|
*/
|
|
1451
|
-
componentsProps:
|
|
1452
|
-
backdrop:
|
|
1453
|
-
root:
|
|
1549
|
+
componentsProps: t.shape({
|
|
1550
|
+
backdrop: t.oneOfType([t.func, t.object]),
|
|
1551
|
+
root: t.oneOfType([t.func, t.object])
|
|
1454
1552
|
}),
|
|
1455
1553
|
/**
|
|
1456
1554
|
* An HTML element or function that returns one.
|
|
@@ -1462,7 +1560,7 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1462
1560
|
* By default, it uses the body of the top-level document object,
|
|
1463
1561
|
* so it's simply `document.body` most of the time.
|
|
1464
1562
|
*/
|
|
1465
|
-
container:
|
|
1563
|
+
container: t.oneOfType([Re, t.func]),
|
|
1466
1564
|
/**
|
|
1467
1565
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
1468
1566
|
* replace it to the last focused element when it closes.
|
|
@@ -1472,7 +1570,7 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1472
1570
|
* accessible to assistive technologies, like screen readers.
|
|
1473
1571
|
* @default false
|
|
1474
1572
|
*/
|
|
1475
|
-
disableAutoFocus:
|
|
1573
|
+
disableAutoFocus: t.bool,
|
|
1476
1574
|
/**
|
|
1477
1575
|
* If `true`, the modal will not prevent focus from leaving the modal while open.
|
|
1478
1576
|
*
|
|
@@ -1480,45 +1578,45 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1480
1578
|
* accessible to assistive technologies, like screen readers.
|
|
1481
1579
|
* @default false
|
|
1482
1580
|
*/
|
|
1483
|
-
disableEnforceFocus:
|
|
1581
|
+
disableEnforceFocus: t.bool,
|
|
1484
1582
|
/**
|
|
1485
1583
|
* If `true`, hitting escape will not fire the `onClose` callback.
|
|
1486
1584
|
* @default false
|
|
1487
1585
|
*/
|
|
1488
|
-
disableEscapeKeyDown:
|
|
1586
|
+
disableEscapeKeyDown: t.bool,
|
|
1489
1587
|
/**
|
|
1490
1588
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
1491
1589
|
* @default false
|
|
1492
1590
|
*/
|
|
1493
|
-
disablePortal:
|
|
1591
|
+
disablePortal: t.bool,
|
|
1494
1592
|
/**
|
|
1495
1593
|
* If `true`, the modal will not restore focus to previously focused element once
|
|
1496
1594
|
* modal is hidden or unmounted.
|
|
1497
1595
|
* @default false
|
|
1498
1596
|
*/
|
|
1499
|
-
disableRestoreFocus:
|
|
1597
|
+
disableRestoreFocus: t.bool,
|
|
1500
1598
|
/**
|
|
1501
1599
|
* Disable the scroll lock behavior.
|
|
1502
1600
|
* @default false
|
|
1503
1601
|
*/
|
|
1504
|
-
disableScrollLock:
|
|
1602
|
+
disableScrollLock: t.bool,
|
|
1505
1603
|
/**
|
|
1506
1604
|
* If `true`, the backdrop is not rendered.
|
|
1507
1605
|
* @default false
|
|
1508
1606
|
*/
|
|
1509
|
-
hideBackdrop:
|
|
1607
|
+
hideBackdrop: t.bool,
|
|
1510
1608
|
/**
|
|
1511
1609
|
* Always keep the children in the DOM.
|
|
1512
1610
|
* This prop can be useful in SEO situation or
|
|
1513
1611
|
* when you want to maximize the responsiveness of the Modal.
|
|
1514
1612
|
* @default false
|
|
1515
1613
|
*/
|
|
1516
|
-
keepMounted:
|
|
1614
|
+
keepMounted: t.bool,
|
|
1517
1615
|
/**
|
|
1518
1616
|
* Callback fired when the backdrop is clicked.
|
|
1519
1617
|
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
|
1520
1618
|
*/
|
|
1521
|
-
onBackdropClick:
|
|
1619
|
+
onBackdropClick: t.func,
|
|
1522
1620
|
/**
|
|
1523
1621
|
* Callback fired when the component requests to be closed.
|
|
1524
1622
|
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
@@ -1526,152 +1624,152 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
1526
1624
|
* @param {object} event The event source of the callback.
|
|
1527
1625
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
1528
1626
|
*/
|
|
1529
|
-
onClose:
|
|
1627
|
+
onClose: t.func,
|
|
1530
1628
|
/**
|
|
1531
1629
|
* A function called when a transition enters.
|
|
1532
1630
|
*/
|
|
1533
|
-
onTransitionEnter:
|
|
1631
|
+
onTransitionEnter: t.func,
|
|
1534
1632
|
/**
|
|
1535
1633
|
* A function called when a transition has exited.
|
|
1536
1634
|
*/
|
|
1537
|
-
onTransitionExited:
|
|
1635
|
+
onTransitionExited: t.func,
|
|
1538
1636
|
/**
|
|
1539
1637
|
* If `true`, the component is shown.
|
|
1540
1638
|
*/
|
|
1541
|
-
open:
|
|
1639
|
+
open: t.bool.isRequired,
|
|
1542
1640
|
/**
|
|
1543
1641
|
* The props used for each slot inside the Modal.
|
|
1544
1642
|
* @default {}
|
|
1545
1643
|
*/
|
|
1546
|
-
slotProps:
|
|
1547
|
-
backdrop:
|
|
1548
|
-
root:
|
|
1644
|
+
slotProps: t.shape({
|
|
1645
|
+
backdrop: t.oneOfType([t.func, t.object]),
|
|
1646
|
+
root: t.oneOfType([t.func, t.object])
|
|
1549
1647
|
}),
|
|
1550
1648
|
/**
|
|
1551
1649
|
* The components used for each slot inside the Modal.
|
|
1552
1650
|
* Either a string to use a HTML element or a component.
|
|
1553
1651
|
* @default {}
|
|
1554
1652
|
*/
|
|
1555
|
-
slots:
|
|
1556
|
-
backdrop:
|
|
1557
|
-
root:
|
|
1653
|
+
slots: t.shape({
|
|
1654
|
+
backdrop: t.elementType,
|
|
1655
|
+
root: t.elementType
|
|
1558
1656
|
}),
|
|
1559
1657
|
/**
|
|
1560
1658
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
1561
1659
|
*/
|
|
1562
|
-
sx:
|
|
1660
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
1563
1661
|
});
|
|
1564
|
-
const
|
|
1565
|
-
function
|
|
1566
|
-
const o =
|
|
1662
|
+
const Bt = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
1663
|
+
function jt(e, n, r) {
|
|
1664
|
+
const o = n.getBoundingClientRect(), s = r && r.getBoundingClientRect(), i = G(n);
|
|
1567
1665
|
let a;
|
|
1568
|
-
if (
|
|
1569
|
-
a =
|
|
1666
|
+
if (n.fakeTransform)
|
|
1667
|
+
a = n.fakeTransform;
|
|
1570
1668
|
else {
|
|
1571
|
-
const
|
|
1572
|
-
a =
|
|
1669
|
+
const u = i.getComputedStyle(n);
|
|
1670
|
+
a = u.getPropertyValue("-webkit-transform") || u.getPropertyValue("transform");
|
|
1573
1671
|
}
|
|
1574
1672
|
let l = 0, c = 0;
|
|
1575
1673
|
if (a && a !== "none" && typeof a == "string") {
|
|
1576
|
-
const
|
|
1577
|
-
l = parseInt(
|
|
1674
|
+
const u = a.split("(")[1].split(")")[0].split(",");
|
|
1675
|
+
l = parseInt(u[4], 10), c = parseInt(u[5], 10);
|
|
1578
1676
|
}
|
|
1579
|
-
return e === "left" ?
|
|
1677
|
+
return e === "left" ? s ? `translateX(${s.right + l - o.left}px)` : `translateX(${i.innerWidth + l - o.left}px)` : e === "right" ? s ? `translateX(-${o.right - s.left - l}px)` : `translateX(-${o.left + o.width - l}px)` : e === "up" ? s ? `translateY(${s.bottom + c - o.top}px)` : `translateY(${i.innerHeight + c - o.top}px)` : s ? `translateY(-${o.top - s.top + o.height - c}px)` : `translateY(-${o.top + o.height - c}px)`;
|
|
1580
1678
|
}
|
|
1581
|
-
function
|
|
1679
|
+
function cn(e) {
|
|
1582
1680
|
return typeof e == "function" ? e() : e;
|
|
1583
1681
|
}
|
|
1584
|
-
function ae(e,
|
|
1585
|
-
const o =
|
|
1586
|
-
|
|
1682
|
+
function ae(e, n, r) {
|
|
1683
|
+
const o = cn(r), s = jt(e, n, o);
|
|
1684
|
+
s && (n.style.webkitTransform = s, n.style.transform = s);
|
|
1587
1685
|
}
|
|
1588
|
-
const
|
|
1589
|
-
const o = pe(),
|
|
1686
|
+
const un = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1687
|
+
const o = pe(), s = {
|
|
1590
1688
|
enter: o.transitions.easing.easeOut,
|
|
1591
1689
|
exit: o.transitions.easing.sharp
|
|
1592
|
-
},
|
|
1690
|
+
}, i = {
|
|
1593
1691
|
enter: o.transitions.duration.enteringScreen,
|
|
1594
1692
|
exit: o.transitions.duration.leavingScreen
|
|
1595
1693
|
}, {
|
|
1596
1694
|
addEndListener: a,
|
|
1597
1695
|
appear: l = !0,
|
|
1598
1696
|
children: c,
|
|
1599
|
-
container:
|
|
1600
|
-
direction:
|
|
1601
|
-
easing:
|
|
1697
|
+
container: u,
|
|
1698
|
+
direction: f = "down",
|
|
1699
|
+
easing: b = s,
|
|
1602
1700
|
in: g,
|
|
1603
1701
|
onEnter: y,
|
|
1604
|
-
onEntered:
|
|
1605
|
-
onEntering:
|
|
1702
|
+
onEntered: v,
|
|
1703
|
+
onEntering: P,
|
|
1606
1704
|
onExit: w,
|
|
1607
|
-
onExited:
|
|
1608
|
-
onExiting:
|
|
1609
|
-
style:
|
|
1610
|
-
timeout: T =
|
|
1705
|
+
onExited: S,
|
|
1706
|
+
onExiting: D,
|
|
1707
|
+
style: m,
|
|
1708
|
+
timeout: T = i,
|
|
1611
1709
|
// eslint-disable-next-line react/prop-types
|
|
1612
|
-
TransitionComponent:
|
|
1613
|
-
} =
|
|
1710
|
+
TransitionComponent: C = Ke
|
|
1711
|
+
} = n, O = H(n, Bt), E = p.useRef(null), M = W(fe(c), E, r), _ = (h) => (F) => {
|
|
1614
1712
|
h && (F === void 0 ? h(E.current) : h(E.current, F));
|
|
1615
|
-
},
|
|
1616
|
-
ae(
|
|
1617
|
-
}),
|
|
1713
|
+
}, I = _((h, F) => {
|
|
1714
|
+
ae(f, h, u), Ye(h), y && y(h, F);
|
|
1715
|
+
}), $ = _((h, F) => {
|
|
1618
1716
|
const re = le({
|
|
1619
1717
|
timeout: T,
|
|
1620
|
-
style:
|
|
1621
|
-
easing:
|
|
1718
|
+
style: m,
|
|
1719
|
+
easing: b
|
|
1622
1720
|
}, {
|
|
1623
1721
|
mode: "enter"
|
|
1624
1722
|
});
|
|
1625
|
-
h.style.webkitTransition = o.transitions.create("-webkit-transform",
|
|
1626
|
-
}), B = _(
|
|
1723
|
+
h.style.webkitTransition = o.transitions.create("-webkit-transform", d({}, re)), h.style.transition = o.transitions.create("transform", d({}, re)), h.style.webkitTransform = "none", h.style.transform = "none", P && P(h, F);
|
|
1724
|
+
}), B = _(v), j = _(D), R = _((h) => {
|
|
1627
1725
|
const F = le({
|
|
1628
1726
|
timeout: T,
|
|
1629
|
-
style:
|
|
1630
|
-
easing:
|
|
1727
|
+
style: m,
|
|
1728
|
+
easing: b
|
|
1631
1729
|
}, {
|
|
1632
1730
|
mode: "exit"
|
|
1633
1731
|
});
|
|
1634
|
-
h.style.webkitTransition = o.transitions.create("-webkit-transform", F), h.style.transition = o.transitions.create("transform", F), ae(
|
|
1732
|
+
h.style.webkitTransition = o.transitions.create("-webkit-transform", F), h.style.transition = o.transitions.create("transform", F), ae(f, h, u), w && w(h);
|
|
1635
1733
|
}), A = _((h) => {
|
|
1636
|
-
h.style.webkitTransition = "", h.style.transition = "",
|
|
1734
|
+
h.style.webkitTransition = "", h.style.transition = "", S && S(h);
|
|
1637
1735
|
}), k = (h) => {
|
|
1638
1736
|
a && a(E.current, h);
|
|
1639
|
-
},
|
|
1640
|
-
E.current && ae(
|
|
1641
|
-
}, [
|
|
1642
|
-
return
|
|
1643
|
-
if (g ||
|
|
1737
|
+
}, N = p.useCallback(() => {
|
|
1738
|
+
E.current && ae(f, E.current, u);
|
|
1739
|
+
}, [f, u]);
|
|
1740
|
+
return p.useEffect(() => {
|
|
1741
|
+
if (g || f === "down" || f === "right")
|
|
1644
1742
|
return;
|
|
1645
|
-
const h =
|
|
1646
|
-
E.current && ae(
|
|
1743
|
+
const h = Qe(() => {
|
|
1744
|
+
E.current && ae(f, E.current, u);
|
|
1647
1745
|
}), F = G(E.current);
|
|
1648
1746
|
return F.addEventListener("resize", h), () => {
|
|
1649
1747
|
h.clear(), F.removeEventListener("resize", h);
|
|
1650
1748
|
};
|
|
1651
|
-
}, [
|
|
1652
|
-
g ||
|
|
1653
|
-
}, [g,
|
|
1749
|
+
}, [f, g, u]), p.useEffect(() => {
|
|
1750
|
+
g || N();
|
|
1751
|
+
}, [g, N]), /* @__PURE__ */ x(C, d({
|
|
1654
1752
|
nodeRef: E,
|
|
1655
|
-
onEnter:
|
|
1753
|
+
onEnter: I,
|
|
1656
1754
|
onEntered: B,
|
|
1657
|
-
onEntering:
|
|
1658
|
-
onExit:
|
|
1755
|
+
onEntering: $,
|
|
1756
|
+
onExit: R,
|
|
1659
1757
|
onExited: A,
|
|
1660
1758
|
onExiting: j,
|
|
1661
1759
|
addEndListener: k,
|
|
1662
1760
|
appear: l,
|
|
1663
1761
|
in: g,
|
|
1664
1762
|
timeout: T
|
|
1665
|
-
},
|
|
1666
|
-
children: (h, F) => /* @__PURE__ */
|
|
1763
|
+
}, O, {
|
|
1764
|
+
children: (h, F) => /* @__PURE__ */ p.cloneElement(c, d({
|
|
1667
1765
|
ref: M,
|
|
1668
|
-
style:
|
|
1766
|
+
style: d({
|
|
1669
1767
|
visibility: h === "exited" && !g ? "hidden" : void 0
|
|
1670
|
-
},
|
|
1768
|
+
}, m, c.props.style)
|
|
1671
1769
|
}, F))
|
|
1672
1770
|
}));
|
|
1673
1771
|
});
|
|
1674
|
-
process.env.NODE_ENV !== "production" && (
|
|
1772
|
+
process.env.NODE_ENV !== "production" && (un.propTypes = {
|
|
1675
1773
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1676
1774
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1677
1775
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1681,13 +1779,13 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
1681
1779
|
* node and a done callback. Allows for more fine grained transition end
|
|
1682
1780
|
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
1683
1781
|
*/
|
|
1684
|
-
addEndListener:
|
|
1782
|
+
addEndListener: t.func,
|
|
1685
1783
|
/**
|
|
1686
1784
|
* Perform the enter transition when it first mounts if `in` is also `true`.
|
|
1687
1785
|
* Set this to `false` to disable this behavior.
|
|
1688
1786
|
* @default true
|
|
1689
1787
|
*/
|
|
1690
|
-
appear:
|
|
1788
|
+
appear: t.bool,
|
|
1691
1789
|
/**
|
|
1692
1790
|
* A single child content element.
|
|
1693
1791
|
*/
|
|
@@ -1696,15 +1794,15 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
1696
1794
|
* An HTML element, or a function that returns one.
|
|
1697
1795
|
* It's used to set the container the Slide is transitioning from.
|
|
1698
1796
|
*/
|
|
1699
|
-
container: J(
|
|
1797
|
+
container: J(t.oneOfType([Re, t.func]), (e) => {
|
|
1700
1798
|
if (e.open) {
|
|
1701
|
-
const
|
|
1702
|
-
if (
|
|
1703
|
-
const r =
|
|
1799
|
+
const n = cn(e.container);
|
|
1800
|
+
if (n && n.nodeType === 1) {
|
|
1801
|
+
const r = n.getBoundingClientRect();
|
|
1704
1802
|
if (process.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1705
1803
|
return new Error(["MUI: The `container` 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(`
|
|
1706
1804
|
`));
|
|
1707
|
-
} else if (!
|
|
1805
|
+
} else if (!n || typeof n.getBoundingClientRect != "function" || n.contextElement != null && n.contextElement.nodeType !== 1)
|
|
1708
1806
|
return new Error(["MUI: The `container` prop provided to the component is invalid.", "It should be an HTML element instance."].join(`
|
|
1709
1807
|
`));
|
|
1710
1808
|
}
|
|
@@ -1714,7 +1812,7 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
1714
1812
|
* Direction the child node will enter from.
|
|
1715
1813
|
* @default 'down'
|
|
1716
1814
|
*/
|
|
1717
|
-
direction:
|
|
1815
|
+
direction: t.oneOf(["down", "left", "right", "up"]),
|
|
1718
1816
|
/**
|
|
1719
1817
|
* The transition timing function.
|
|
1720
1818
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -1723,42 +1821,42 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
1723
1821
|
* exit: theme.transitions.easing.sharp,
|
|
1724
1822
|
* }
|
|
1725
1823
|
*/
|
|
1726
|
-
easing:
|
|
1727
|
-
enter:
|
|
1728
|
-
exit:
|
|
1729
|
-
}),
|
|
1824
|
+
easing: t.oneOfType([t.shape({
|
|
1825
|
+
enter: t.string,
|
|
1826
|
+
exit: t.string
|
|
1827
|
+
}), t.string]),
|
|
1730
1828
|
/**
|
|
1731
1829
|
* If `true`, the component will transition in.
|
|
1732
1830
|
*/
|
|
1733
|
-
in:
|
|
1831
|
+
in: t.bool,
|
|
1734
1832
|
/**
|
|
1735
1833
|
* @ignore
|
|
1736
1834
|
*/
|
|
1737
|
-
onEnter:
|
|
1835
|
+
onEnter: t.func,
|
|
1738
1836
|
/**
|
|
1739
1837
|
* @ignore
|
|
1740
1838
|
*/
|
|
1741
|
-
onEntered:
|
|
1839
|
+
onEntered: t.func,
|
|
1742
1840
|
/**
|
|
1743
1841
|
* @ignore
|
|
1744
1842
|
*/
|
|
1745
|
-
onEntering:
|
|
1843
|
+
onEntering: t.func,
|
|
1746
1844
|
/**
|
|
1747
1845
|
* @ignore
|
|
1748
1846
|
*/
|
|
1749
|
-
onExit:
|
|
1847
|
+
onExit: t.func,
|
|
1750
1848
|
/**
|
|
1751
1849
|
* @ignore
|
|
1752
1850
|
*/
|
|
1753
|
-
onExited:
|
|
1851
|
+
onExited: t.func,
|
|
1754
1852
|
/**
|
|
1755
1853
|
* @ignore
|
|
1756
1854
|
*/
|
|
1757
|
-
onExiting:
|
|
1855
|
+
onExiting: t.func,
|
|
1758
1856
|
/**
|
|
1759
1857
|
* @ignore
|
|
1760
1858
|
*/
|
|
1761
|
-
style:
|
|
1859
|
+
style: t.object,
|
|
1762
1860
|
/**
|
|
1763
1861
|
* The duration for the transition, in milliseconds.
|
|
1764
1862
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -1767,62 +1865,62 @@ process.env.NODE_ENV !== "production" && (rt.propTypes = {
|
|
|
1767
1865
|
* exit: theme.transitions.duration.leavingScreen,
|
|
1768
1866
|
* }
|
|
1769
1867
|
*/
|
|
1770
|
-
timeout:
|
|
1771
|
-
appear:
|
|
1772
|
-
enter:
|
|
1773
|
-
exit:
|
|
1868
|
+
timeout: t.oneOfType([t.number, t.shape({
|
|
1869
|
+
appear: t.number,
|
|
1870
|
+
enter: t.number,
|
|
1871
|
+
exit: t.number
|
|
1774
1872
|
})])
|
|
1775
1873
|
});
|
|
1776
|
-
function
|
|
1874
|
+
function At(e) {
|
|
1777
1875
|
return Q("MuiDrawer", e);
|
|
1778
1876
|
}
|
|
1779
1877
|
ee("MuiDrawer", ["root", "docked", "paper", "paperAnchorLeft", "paperAnchorRight", "paperAnchorTop", "paperAnchorBottom", "paperAnchorDockedLeft", "paperAnchorDockedRight", "paperAnchorDockedTop", "paperAnchorDockedBottom", "modal"]);
|
|
1780
|
-
const
|
|
1878
|
+
const Vt = ["BackdropProps"], Lt = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"], dn = (e, n) => {
|
|
1781
1879
|
const {
|
|
1782
1880
|
ownerState: r
|
|
1783
1881
|
} = e;
|
|
1784
|
-
return [
|
|
1785
|
-
},
|
|
1882
|
+
return [n.root, (r.variant === "permanent" || r.variant === "persistent") && n.docked, n.modal];
|
|
1883
|
+
}, qt = (e) => {
|
|
1786
1884
|
const {
|
|
1787
|
-
classes:
|
|
1885
|
+
classes: n,
|
|
1788
1886
|
anchor: r,
|
|
1789
1887
|
variant: o
|
|
1790
|
-
} = e,
|
|
1888
|
+
} = e, s = {
|
|
1791
1889
|
root: ["root"],
|
|
1792
1890
|
docked: [(o === "permanent" || o === "persistent") && "docked"],
|
|
1793
1891
|
modal: ["modal"],
|
|
1794
|
-
paper: ["paper", `paperAnchor${
|
|
1892
|
+
paper: ["paper", `paperAnchor${U(r)}`, o !== "temporary" && `paperAnchorDocked${U(r)}`]
|
|
1795
1893
|
};
|
|
1796
|
-
return
|
|
1797
|
-
},
|
|
1894
|
+
return te(s, At, n);
|
|
1895
|
+
}, Ht = L(ln, {
|
|
1798
1896
|
name: "MuiDrawer",
|
|
1799
1897
|
slot: "Root",
|
|
1800
|
-
overridesResolver:
|
|
1898
|
+
overridesResolver: dn
|
|
1801
1899
|
})(({
|
|
1802
1900
|
theme: e
|
|
1803
1901
|
}) => ({
|
|
1804
1902
|
zIndex: (e.vars || e).zIndex.drawer
|
|
1805
|
-
})),
|
|
1806
|
-
shouldForwardProp:
|
|
1903
|
+
})), We = L("div", {
|
|
1904
|
+
shouldForwardProp: Pn,
|
|
1807
1905
|
name: "MuiDrawer",
|
|
1808
1906
|
slot: "Docked",
|
|
1809
1907
|
skipVariantsResolver: !1,
|
|
1810
|
-
overridesResolver:
|
|
1908
|
+
overridesResolver: dn
|
|
1811
1909
|
})({
|
|
1812
1910
|
flex: "0 0 auto"
|
|
1813
|
-
}),
|
|
1911
|
+
}), Ut = L(rn, {
|
|
1814
1912
|
name: "MuiDrawer",
|
|
1815
1913
|
slot: "Paper",
|
|
1816
|
-
overridesResolver: (e,
|
|
1914
|
+
overridesResolver: (e, n) => {
|
|
1817
1915
|
const {
|
|
1818
1916
|
ownerState: r
|
|
1819
1917
|
} = e;
|
|
1820
|
-
return [
|
|
1918
|
+
return [n.paper, n[`paperAnchor${U(r.anchor)}`], r.variant !== "temporary" && n[`paperAnchorDocked${U(r.anchor)}`]];
|
|
1821
1919
|
}
|
|
1822
1920
|
})(({
|
|
1823
1921
|
theme: e,
|
|
1824
|
-
ownerState:
|
|
1825
|
-
}) =>
|
|
1922
|
+
ownerState: n
|
|
1923
|
+
}) => d({
|
|
1826
1924
|
overflowY: "auto",
|
|
1827
1925
|
display: "flex",
|
|
1828
1926
|
flexDirection: "column",
|
|
@@ -1838,126 +1936,126 @@ const Sn = ["BackdropProps"], Dn = ["anchor", "BackdropProps", "children", "clas
|
|
|
1838
1936
|
// At some point, it would be better to keep it for keyboard users.
|
|
1839
1937
|
// :focus-ring CSS pseudo-class will help.
|
|
1840
1938
|
outline: 0
|
|
1841
|
-
},
|
|
1939
|
+
}, n.anchor === "left" && {
|
|
1842
1940
|
left: 0
|
|
1843
|
-
},
|
|
1941
|
+
}, n.anchor === "top" && {
|
|
1844
1942
|
top: 0,
|
|
1845
1943
|
left: 0,
|
|
1846
1944
|
right: 0,
|
|
1847
1945
|
height: "auto",
|
|
1848
1946
|
maxHeight: "100%"
|
|
1849
|
-
},
|
|
1947
|
+
}, n.anchor === "right" && {
|
|
1850
1948
|
right: 0
|
|
1851
|
-
},
|
|
1949
|
+
}, n.anchor === "bottom" && {
|
|
1852
1950
|
top: "auto",
|
|
1853
1951
|
left: 0,
|
|
1854
1952
|
bottom: 0,
|
|
1855
1953
|
right: 0,
|
|
1856
1954
|
height: "auto",
|
|
1857
1955
|
maxHeight: "100%"
|
|
1858
|
-
},
|
|
1956
|
+
}, n.anchor === "left" && n.variant !== "temporary" && {
|
|
1859
1957
|
borderRight: `1px solid ${(e.vars || e).palette.divider}`
|
|
1860
|
-
},
|
|
1958
|
+
}, n.anchor === "top" && n.variant !== "temporary" && {
|
|
1861
1959
|
borderBottom: `1px solid ${(e.vars || e).palette.divider}`
|
|
1862
|
-
},
|
|
1960
|
+
}, n.anchor === "right" && n.variant !== "temporary" && {
|
|
1863
1961
|
borderLeft: `1px solid ${(e.vars || e).palette.divider}`
|
|
1864
|
-
},
|
|
1962
|
+
}, n.anchor === "bottom" && n.variant !== "temporary" && {
|
|
1865
1963
|
borderTop: `1px solid ${(e.vars || e).palette.divider}`
|
|
1866
|
-
})),
|
|
1964
|
+
})), pn = {
|
|
1867
1965
|
left: "right",
|
|
1868
1966
|
right: "left",
|
|
1869
1967
|
top: "down",
|
|
1870
1968
|
bottom: "up"
|
|
1871
1969
|
};
|
|
1872
|
-
function
|
|
1970
|
+
function zt(e) {
|
|
1873
1971
|
return ["left", "right"].indexOf(e) !== -1;
|
|
1874
1972
|
}
|
|
1875
|
-
function
|
|
1973
|
+
function Wt({
|
|
1876
1974
|
direction: e
|
|
1877
|
-
},
|
|
1878
|
-
return e === "rtl" &&
|
|
1975
|
+
}, n) {
|
|
1976
|
+
return e === "rtl" && zt(n) ? pn[n] : n;
|
|
1879
1977
|
}
|
|
1880
|
-
const
|
|
1881
|
-
const o =
|
|
1882
|
-
props:
|
|
1978
|
+
const fn = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
1979
|
+
const o = ne({
|
|
1980
|
+
props: n,
|
|
1883
1981
|
name: "MuiDrawer"
|
|
1884
|
-
}),
|
|
1885
|
-
enter:
|
|
1886
|
-
exit:
|
|
1982
|
+
}), s = pe(), i = Rn(), a = {
|
|
1983
|
+
enter: s.transitions.duration.enteringScreen,
|
|
1984
|
+
exit: s.transitions.duration.leavingScreen
|
|
1887
1985
|
}, {
|
|
1888
1986
|
anchor: l = "left",
|
|
1889
1987
|
BackdropProps: c,
|
|
1890
|
-
children:
|
|
1891
|
-
className:
|
|
1892
|
-
elevation:
|
|
1988
|
+
children: u,
|
|
1989
|
+
className: f,
|
|
1990
|
+
elevation: b = 16,
|
|
1893
1991
|
hideBackdrop: g = !1,
|
|
1894
1992
|
ModalProps: {
|
|
1895
1993
|
BackdropProps: y
|
|
1896
1994
|
} = {},
|
|
1897
|
-
onClose:
|
|
1898
|
-
open:
|
|
1995
|
+
onClose: v,
|
|
1996
|
+
open: P = !1,
|
|
1899
1997
|
PaperProps: w = {},
|
|
1900
|
-
SlideProps:
|
|
1998
|
+
SlideProps: S,
|
|
1901
1999
|
// eslint-disable-next-line react/prop-types
|
|
1902
|
-
TransitionComponent:
|
|
1903
|
-
transitionDuration:
|
|
2000
|
+
TransitionComponent: D = un,
|
|
2001
|
+
transitionDuration: m = a,
|
|
1904
2002
|
variant: T = "temporary"
|
|
1905
|
-
} = o,
|
|
1906
|
-
|
|
2003
|
+
} = o, C = H(o.ModalProps, Vt), O = H(o, Lt), E = p.useRef(!1);
|
|
2004
|
+
p.useEffect(() => {
|
|
1907
2005
|
E.current = !0;
|
|
1908
2006
|
}, []);
|
|
1909
|
-
const M =
|
|
1910
|
-
direction:
|
|
1911
|
-
}, l),
|
|
2007
|
+
const M = Wt({
|
|
2008
|
+
direction: i ? "rtl" : "ltr"
|
|
2009
|
+
}, l), I = d({}, o, {
|
|
1912
2010
|
anchor: l,
|
|
1913
|
-
elevation:
|
|
1914
|
-
open:
|
|
2011
|
+
elevation: b,
|
|
2012
|
+
open: P,
|
|
1915
2013
|
variant: T
|
|
1916
|
-
},
|
|
1917
|
-
elevation: T === "temporary" ?
|
|
2014
|
+
}, O), $ = qt(I), B = /* @__PURE__ */ x(Ut, d({
|
|
2015
|
+
elevation: T === "temporary" ? b : 0,
|
|
1918
2016
|
square: !0
|
|
1919
2017
|
}, w, {
|
|
1920
|
-
className: V(
|
|
1921
|
-
ownerState:
|
|
1922
|
-
children:
|
|
2018
|
+
className: V($.paper, w.className),
|
|
2019
|
+
ownerState: I,
|
|
2020
|
+
children: u
|
|
1923
2021
|
}));
|
|
1924
2022
|
if (T === "permanent")
|
|
1925
|
-
return /* @__PURE__ */ x(
|
|
1926
|
-
className: V(
|
|
1927
|
-
ownerState:
|
|
2023
|
+
return /* @__PURE__ */ x(We, d({
|
|
2024
|
+
className: V($.root, $.docked, f),
|
|
2025
|
+
ownerState: I,
|
|
1928
2026
|
ref: r
|
|
1929
|
-
},
|
|
2027
|
+
}, O, {
|
|
1930
2028
|
children: B
|
|
1931
2029
|
}));
|
|
1932
|
-
const j = /* @__PURE__ */ x(
|
|
1933
|
-
in:
|
|
1934
|
-
direction:
|
|
1935
|
-
timeout:
|
|
2030
|
+
const j = /* @__PURE__ */ x(D, d({
|
|
2031
|
+
in: P,
|
|
2032
|
+
direction: pn[M],
|
|
2033
|
+
timeout: m,
|
|
1936
2034
|
appear: E.current
|
|
1937
|
-
},
|
|
2035
|
+
}, S, {
|
|
1938
2036
|
children: B
|
|
1939
2037
|
}));
|
|
1940
|
-
return T === "persistent" ? /* @__PURE__ */ x(
|
|
1941
|
-
className: V(
|
|
1942
|
-
ownerState:
|
|
2038
|
+
return T === "persistent" ? /* @__PURE__ */ x(We, d({
|
|
2039
|
+
className: V($.root, $.docked, f),
|
|
2040
|
+
ownerState: I,
|
|
1943
2041
|
ref: r
|
|
1944
|
-
},
|
|
2042
|
+
}, O, {
|
|
1945
2043
|
children: j
|
|
1946
|
-
})) : /* @__PURE__ */ x(
|
|
1947
|
-
BackdropProps:
|
|
1948
|
-
transitionDuration:
|
|
2044
|
+
})) : /* @__PURE__ */ x(Ht, d({
|
|
2045
|
+
BackdropProps: d({}, c, y, {
|
|
2046
|
+
transitionDuration: m
|
|
1949
2047
|
}),
|
|
1950
|
-
className: V(
|
|
1951
|
-
open:
|
|
1952
|
-
ownerState:
|
|
1953
|
-
onClose:
|
|
2048
|
+
className: V($.root, $.modal, f),
|
|
2049
|
+
open: P,
|
|
2050
|
+
ownerState: I,
|
|
2051
|
+
onClose: v,
|
|
1954
2052
|
hideBackdrop: g,
|
|
1955
2053
|
ref: r
|
|
1956
|
-
},
|
|
2054
|
+
}, O, C, {
|
|
1957
2055
|
children: j
|
|
1958
2056
|
}));
|
|
1959
2057
|
});
|
|
1960
|
-
process.env.NODE_ENV !== "production" && (
|
|
2058
|
+
process.env.NODE_ENV !== "production" && (fn.propTypes = {
|
|
1961
2059
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1962
2060
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1963
2061
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1966,38 +2064,38 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
|
1966
2064
|
* Side from which the drawer will appear.
|
|
1967
2065
|
* @default 'left'
|
|
1968
2066
|
*/
|
|
1969
|
-
anchor:
|
|
2067
|
+
anchor: t.oneOf(["bottom", "left", "right", "top"]),
|
|
1970
2068
|
/**
|
|
1971
2069
|
* @ignore
|
|
1972
2070
|
*/
|
|
1973
|
-
BackdropProps:
|
|
2071
|
+
BackdropProps: t.object,
|
|
1974
2072
|
/**
|
|
1975
2073
|
* The content of the component.
|
|
1976
2074
|
*/
|
|
1977
|
-
children:
|
|
2075
|
+
children: t.node,
|
|
1978
2076
|
/**
|
|
1979
2077
|
* Override or extend the styles applied to the component.
|
|
1980
2078
|
*/
|
|
1981
|
-
classes:
|
|
2079
|
+
classes: t.object,
|
|
1982
2080
|
/**
|
|
1983
2081
|
* @ignore
|
|
1984
2082
|
*/
|
|
1985
|
-
className:
|
|
2083
|
+
className: t.string,
|
|
1986
2084
|
/**
|
|
1987
2085
|
* The elevation of the drawer.
|
|
1988
2086
|
* @default 16
|
|
1989
2087
|
*/
|
|
1990
|
-
elevation:
|
|
2088
|
+
elevation: tn,
|
|
1991
2089
|
/**
|
|
1992
2090
|
* If `true`, the backdrop is not rendered.
|
|
1993
2091
|
* @default false
|
|
1994
2092
|
*/
|
|
1995
|
-
hideBackdrop:
|
|
2093
|
+
hideBackdrop: t.bool,
|
|
1996
2094
|
/**
|
|
1997
2095
|
* Props applied to the [`Modal`](/material-ui/api/modal/) element.
|
|
1998
2096
|
* @default {}
|
|
1999
2097
|
*/
|
|
2000
|
-
ModalProps:
|
|
2098
|
+
ModalProps: t.object,
|
|
2001
2099
|
/**
|
|
2002
2100
|
* Callback fired when the component requests to be closed.
|
|
2003
2101
|
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
|
@@ -2005,25 +2103,25 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
|
2005
2103
|
* @param {object} event The event source of the callback.
|
|
2006
2104
|
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
|
2007
2105
|
*/
|
|
2008
|
-
onClose:
|
|
2106
|
+
onClose: t.func,
|
|
2009
2107
|
/**
|
|
2010
2108
|
* If `true`, the component is shown.
|
|
2011
2109
|
* @default false
|
|
2012
2110
|
*/
|
|
2013
|
-
open:
|
|
2111
|
+
open: t.bool,
|
|
2014
2112
|
/**
|
|
2015
2113
|
* Props applied to the [`Paper`](/material-ui/api/paper/) element.
|
|
2016
2114
|
* @default {}
|
|
2017
2115
|
*/
|
|
2018
|
-
PaperProps:
|
|
2116
|
+
PaperProps: t.object,
|
|
2019
2117
|
/**
|
|
2020
2118
|
* Props applied to the [`Slide`](/material-ui/api/slide/) element.
|
|
2021
2119
|
*/
|
|
2022
|
-
SlideProps:
|
|
2120
|
+
SlideProps: t.object,
|
|
2023
2121
|
/**
|
|
2024
2122
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
2025
2123
|
*/
|
|
2026
|
-
sx:
|
|
2124
|
+
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
|
|
2027
2125
|
/**
|
|
2028
2126
|
* The duration for the transition, in milliseconds.
|
|
2029
2127
|
* You may specify a single timeout for all transitions, or individually with an object.
|
|
@@ -2032,80 +2130,89 @@ process.env.NODE_ENV !== "production" && (at.propTypes = {
|
|
|
2032
2130
|
* exit: theme.transitions.duration.leavingScreen,
|
|
2033
2131
|
* }
|
|
2034
2132
|
*/
|
|
2035
|
-
transitionDuration:
|
|
2036
|
-
appear:
|
|
2037
|
-
enter:
|
|
2038
|
-
exit:
|
|
2133
|
+
transitionDuration: t.oneOfType([t.number, t.shape({
|
|
2134
|
+
appear: t.number,
|
|
2135
|
+
enter: t.number,
|
|
2136
|
+
exit: t.number
|
|
2039
2137
|
})]),
|
|
2040
2138
|
/**
|
|
2041
2139
|
* The variant to use.
|
|
2042
2140
|
* @default 'temporary'
|
|
2043
2141
|
*/
|
|
2044
|
-
variant:
|
|
2142
|
+
variant: t.oneOf(["permanent", "persistent", "temporary"])
|
|
2045
2143
|
});
|
|
2046
|
-
const
|
|
2144
|
+
const Kt = ({
|
|
2047
2145
|
size: e = 36,
|
|
2048
|
-
...
|
|
2146
|
+
...n
|
|
2049
2147
|
}) => /* @__PURE__ */ x(
|
|
2050
|
-
|
|
2148
|
+
Ne,
|
|
2051
2149
|
{
|
|
2052
|
-
...
|
|
2150
|
+
...n,
|
|
2053
2151
|
sx: { position: "absolute", backgroundColor: "rgba(0, 0, 0, 0.3)" },
|
|
2054
2152
|
"data-testid": "loading-backdrop",
|
|
2055
|
-
children: /* @__PURE__ */ x(
|
|
2153
|
+
children: /* @__PURE__ */ x(an, { color: "secondary", size: e })
|
|
2056
2154
|
}
|
|
2057
|
-
),
|
|
2058
|
-
var we = {},
|
|
2155
|
+
), Yt = ({ children: e }) => /* @__PURE__ */ x(Nn, { flex: 1, children: e }), Gt = ({ children: e }) => /* @__PURE__ */ x(Pe, { direction: "row", justifyContent: "end", columnGap: 1, pb: 2, children: e });
|
|
2156
|
+
var we = {}, Xt = wn;
|
|
2059
2157
|
Object.defineProperty(we, "__esModule", {
|
|
2060
2158
|
value: !0
|
|
2061
2159
|
});
|
|
2062
|
-
var
|
|
2063
|
-
|
|
2160
|
+
var mn = we.default = void 0, Zt = Xt(Zn()), Jt = gn;
|
|
2161
|
+
mn = we.default = (0, Zt.default)(/* @__PURE__ */ (0, Jt.jsx)("path", {
|
|
2064
2162
|
d: "M19 6.41 17.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"
|
|
2065
2163
|
}), "Close");
|
|
2066
|
-
const
|
|
2067
|
-
|
|
2164
|
+
const Qt = ({ children: e, onClose: n }) => /* @__PURE__ */ de(
|
|
2165
|
+
Pe,
|
|
2068
2166
|
{
|
|
2069
2167
|
direction: "row",
|
|
2070
2168
|
justifyContent: "space-between",
|
|
2071
2169
|
alignItems: "center",
|
|
2072
2170
|
pb: 2,
|
|
2073
2171
|
children: [
|
|
2074
|
-
/* @__PURE__ */ x(
|
|
2075
|
-
/* @__PURE__ */ x(
|
|
2172
|
+
/* @__PURE__ */ x(Cn, { fontSize: 16, fontWeight: "bold", children: e }),
|
|
2173
|
+
/* @__PURE__ */ x(Sn, { size: "small", onClick: n, "data-testid": "drawer-close", children: /* @__PURE__ */ x(mn, { fontSize: "inherit" }) })
|
|
2076
2174
|
]
|
|
2077
2175
|
}
|
|
2078
|
-
),
|
|
2176
|
+
), Ce = ({
|
|
2079
2177
|
anchor: e = "right",
|
|
2080
|
-
children:
|
|
2178
|
+
children: n,
|
|
2081
2179
|
width: r,
|
|
2082
2180
|
loading: o = !1,
|
|
2083
|
-
...
|
|
2084
|
-
}) => /* @__PURE__ */ x(
|
|
2085
|
-
|
|
2086
|
-
/* @__PURE__ */ x(
|
|
2181
|
+
...s
|
|
2182
|
+
}) => /* @__PURE__ */ x(fn, { anchor: e, "data-testid": "drawer", ...s, children: /* @__PURE__ */ de(Pe, { height: "100%", p: 2, width: r, position: "relative", children: [
|
|
2183
|
+
n,
|
|
2184
|
+
/* @__PURE__ */ x(Kt, { open: o })
|
|
2087
2185
|
] }) });
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2186
|
+
Ce.Header = Qt;
|
|
2187
|
+
Ce.Content = Yt;
|
|
2188
|
+
Ce.Footer = Gt;
|
|
2091
2189
|
export {
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2190
|
+
Ne as B,
|
|
2191
|
+
an as C,
|
|
2192
|
+
Ce as D,
|
|
2193
|
+
sn as F,
|
|
2194
|
+
Re as H,
|
|
2195
|
+
Kt as L,
|
|
2196
|
+
ln as M,
|
|
2197
|
+
rn as P,
|
|
2198
|
+
Wn as a,
|
|
2199
|
+
Un as b,
|
|
2200
|
+
ce as c,
|
|
2201
|
+
Be as d,
|
|
2202
|
+
Je as e,
|
|
2203
|
+
jn as f,
|
|
2204
|
+
G as g,
|
|
2205
|
+
Qe as h,
|
|
2206
|
+
Hn as i,
|
|
2207
|
+
tn as j,
|
|
2208
|
+
Mn as k,
|
|
2209
|
+
_n as l,
|
|
2210
|
+
zn as m,
|
|
2211
|
+
fe as n,
|
|
2212
|
+
q as o,
|
|
2213
|
+
oe as p,
|
|
2214
|
+
An as q,
|
|
2215
|
+
Zn as r,
|
|
2216
|
+
ue as s,
|
|
2217
|
+
Bn as u
|
|
2111
2218
|
};
|