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