@solostylist/ui-kit 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Box-Cu0PvgiL.js → Box-BuuxG3Tr.js} +19 -20
- package/dist/{Menu-C2llDJyI.js → Menu-DmnT6o5K.js} +610 -600
- package/dist/{Stack-uu0uVXox.js → Stack-CkxaDtxz.js} +31 -33
- package/dist/{Typography-DlhXzj-D.js → Typography-Ct1tfVOf.js} +5 -5
- package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
- package/dist/{buttonBaseClasses-Cs778eg3.js → buttonBaseClasses-CTh1kkSM.js} +2 -2
- package/dist/{createSvgIcon-DK6yVt3w.js → createSvgIcon-C26LSZjW.js} +4 -4
- package/dist/{createTheme-DgQJeYRt.js → createTheme-o5OrEPBx.js} +2 -1
- package/dist/{extendSxProp-KlKrlfYx.js → extendSxProp-B1Bo-Q7i.js} +1 -1
- package/dist/{generateUtilityClasses-C-O1qWa9.js → generateUtilityClasses-BEerdfFd.js} +1 -1
- package/dist/{iconButtonClasses-BvY27R_O.js → iconButtonClasses-BAXUV9zR.js} +2 -2
- package/dist/identifier-BWKW9pab.js +234 -0
- package/dist/{index-NeW0SZ-C.js → index-DP0FdjAl.js} +5 -5
- package/dist/main.d.ts +0 -2
- package/dist/main.js +24 -26
- package/dist/{memoTheme-1tTQAxpP.js → memoTheme-BUxBXdzq.js} +37 -35
- package/dist/{menuItemClasses-DtZ7DoOq.js → menuItemClasses-D0q3bQU7.js} +2 -2
- package/dist/{outlinedInputClasses-Dh9m5x_6.js → outlinedInputClasses-Bng2WHfn.js} +2 -2
- package/dist/s-data-table/s-data-table.js +32 -34
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +3 -3
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +8 -8
- package/dist/s-smart-text-field/index.d.ts +0 -2
- package/dist/s-smart-text-field/index.js +1 -4
- package/dist/s-smart-text-field/s-text-field.d.ts +0 -6
- package/dist/s-smart-text-field/s-text-field.js +0 -27133
- package/dist/s-text-editor/s-text-editor-toolbar.js +443 -429
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-tip/s-tip.js +2 -2
- package/dist/{selectClasses-Dfh_2m_V.js → selectClasses-BFIcGZVT.js} +2 -2
- package/dist/{svgIconClasses-BqT1l2-6.js → svgIconClasses-CvmRPAiT.js} +2 -2
- package/dist/theme/customizations/data-display.js +6 -6
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +6 -6
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-CYLH9eLg.js → typographyClasses-Dp267WAR.js} +2 -2
- package/dist/{useControlled-Bvu9pDu8.js → useControlled-DnifWmuD.js} +15 -15
- package/dist/useSlot-DkkwzAuc.js +1179 -0
- package/dist/{useTheme-COYkWUCG.js → useTheme-DvS2uOCK.js} +1 -1
- package/dist/utils/dayjs.js +1 -1
- package/package.json +1 -3
- package/dist/TransitionGroup-CqOrg-mA.js +0 -216
- package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
- package/dist/emotion-serialize.esm-lgBmL_7o.js +0 -195
- package/dist/identifier-CdaB--DW.js +0 -46
- package/dist/useSlot-D9YvaBTd.js +0 -969
|
@@ -1,46 +1,63 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import
|
|
3
|
-
import { P as e, g as
|
|
4
|
-
import { T as
|
|
2
|
+
import ve from "react";
|
|
3
|
+
import { P as e, g as le, a as He, q as ze, l as rt } from "./createTheme-o5OrEPBx.js";
|
|
4
|
+
import { T as Rt, c as te } from "./identifier-BWKW9pab.js";
|
|
5
5
|
import { j as L } from "./jsx-runtime-C5mzlN2N.js";
|
|
6
|
-
import { d as
|
|
7
|
-
import { g as
|
|
8
|
-
import { c as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
import { d as Ot, u as ce, s as W, c as ue, m as it, r as Nt } from "./memoTheme-BUxBXdzq.js";
|
|
7
|
+
import { g as pe } from "./generateUtilityClasses-BEerdfFd.js";
|
|
8
|
+
import { _ as wt, d as St, T as st, c as we, f as Ct, u as oe, a as X, b as We, g as Mt, m as kt, r as Dt, e as It, h as jt, i as Ft, j as Lt } from "./useSlot-DkkwzAuc.js";
|
|
9
|
+
import { u as At } from "./useTheme-DvS2uOCK.js";
|
|
10
|
+
import * as $t from "react-dom";
|
|
11
|
+
import Te from "react-dom";
|
|
12
|
+
import { u as Le } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
13
|
+
const Vt = "exact-prop: ";
|
|
14
|
+
function at(t) {
|
|
15
|
+
return process.env.NODE_ENV === "production" ? t : {
|
|
16
|
+
...t,
|
|
17
|
+
[Vt]: (n) => {
|
|
18
|
+
const o = Object.keys(n).filter((i) => !t.hasOwnProperty(i));
|
|
19
|
+
return o.length > 0 ? new Error(`The following props are not supported: ${o.map((i) => `\`${i}\``).join(", ")}. Please remove them.`) : null;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const _t = /* @__PURE__ */ p.createContext();
|
|
16
24
|
process.env.NODE_ENV !== "production" && (e.node, e.bool);
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
const t =
|
|
20
|
-
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[
|
|
25
|
+
const Ut = () => p.useContext(_t) ?? !1;
|
|
26
|
+
function _e() {
|
|
27
|
+
const t = At(Ot);
|
|
28
|
+
return process.env.NODE_ENV !== "production" && p.useDebugValue(t), t[Rt] || t;
|
|
21
29
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
30
|
+
function Ge(...t) {
|
|
31
|
+
return t.reduce((n, o) => o == null ? n : function(...s) {
|
|
32
|
+
n.apply(this, s), o.apply(this, s);
|
|
33
|
+
}, () => {
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function qt(t, n = 166) {
|
|
37
|
+
let o;
|
|
24
38
|
function i(...s) {
|
|
25
|
-
const
|
|
39
|
+
const r = () => {
|
|
26
40
|
t.apply(this, s);
|
|
27
41
|
};
|
|
28
|
-
clearTimeout(
|
|
42
|
+
clearTimeout(o), o = setTimeout(r, n);
|
|
29
43
|
}
|
|
30
44
|
return i.clear = () => {
|
|
31
|
-
clearTimeout(
|
|
45
|
+
clearTimeout(o);
|
|
32
46
|
}, i;
|
|
33
47
|
}
|
|
34
|
-
function
|
|
48
|
+
function z(t) {
|
|
35
49
|
return t && t.ownerDocument || document;
|
|
36
50
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
51
|
+
function ne(t) {
|
|
52
|
+
return z(t).defaultView || window;
|
|
53
|
+
}
|
|
54
|
+
function Xe(t, n) {
|
|
55
|
+
typeof t == "function" ? t(n) : t && (t.current = n);
|
|
39
56
|
}
|
|
40
|
-
const
|
|
57
|
+
const Ye = {
|
|
41
58
|
disabled: !1
|
|
42
59
|
};
|
|
43
|
-
var
|
|
60
|
+
var Kt = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
44
61
|
enter: e.number,
|
|
45
62
|
exit: e.number,
|
|
46
63
|
appear: e.number
|
|
@@ -57,82 +74,82 @@ process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
|
57
74
|
exitDone: e.string,
|
|
58
75
|
exitActive: e.string
|
|
59
76
|
})]);
|
|
60
|
-
var
|
|
77
|
+
var Bt = function(n) {
|
|
61
78
|
return n.scrollTop;
|
|
62
|
-
},
|
|
63
|
-
|
|
79
|
+
}, me = "unmounted", Z = "exited", ee = "entering", ae = "entered", Ae = "exiting", G = /* @__PURE__ */ function(t) {
|
|
80
|
+
wt(n, t);
|
|
64
81
|
function n(i, s) {
|
|
65
|
-
var
|
|
66
|
-
|
|
82
|
+
var r;
|
|
83
|
+
r = t.call(this, i, s) || this;
|
|
67
84
|
var a = s, l = a && !a.isMounting ? i.enter : i.appear, c;
|
|
68
|
-
return
|
|
85
|
+
return r.appearStatus = null, i.in ? l ? (c = Z, r.appearStatus = ee) : c = ae : i.unmountOnExit || i.mountOnEnter ? c = me : c = Z, r.state = {
|
|
69
86
|
status: c
|
|
70
|
-
},
|
|
87
|
+
}, r.nextCallback = null, r;
|
|
71
88
|
}
|
|
72
|
-
n.getDerivedStateFromProps = function(s,
|
|
89
|
+
n.getDerivedStateFromProps = function(s, r) {
|
|
73
90
|
var a = s.in;
|
|
74
|
-
return a &&
|
|
75
|
-
status:
|
|
91
|
+
return a && r.status === me ? {
|
|
92
|
+
status: Z
|
|
76
93
|
} : null;
|
|
77
94
|
};
|
|
78
|
-
var
|
|
79
|
-
return
|
|
95
|
+
var o = n.prototype;
|
|
96
|
+
return o.componentDidMount = function() {
|
|
80
97
|
this.updateStatus(!0, this.appearStatus);
|
|
81
|
-
},
|
|
82
|
-
var
|
|
98
|
+
}, o.componentDidUpdate = function(s) {
|
|
99
|
+
var r = null;
|
|
83
100
|
if (s !== this.props) {
|
|
84
101
|
var a = this.state.status;
|
|
85
|
-
this.props.in ? a !==
|
|
102
|
+
this.props.in ? a !== ee && a !== ae && (r = ee) : (a === ee || a === ae) && (r = Ae);
|
|
86
103
|
}
|
|
87
|
-
this.updateStatus(!1,
|
|
88
|
-
},
|
|
104
|
+
this.updateStatus(!1, r);
|
|
105
|
+
}, o.componentWillUnmount = function() {
|
|
89
106
|
this.cancelNextCallback();
|
|
90
|
-
},
|
|
91
|
-
var s = this.props.timeout,
|
|
92
|
-
return
|
|
93
|
-
exit:
|
|
107
|
+
}, o.getTimeouts = function() {
|
|
108
|
+
var s = this.props.timeout, r, a, l;
|
|
109
|
+
return r = a = l = s, s != null && typeof s != "number" && (r = s.exit, a = s.enter, l = s.appear !== void 0 ? s.appear : a), {
|
|
110
|
+
exit: r,
|
|
94
111
|
enter: a,
|
|
95
112
|
appear: l
|
|
96
113
|
};
|
|
97
|
-
},
|
|
98
|
-
if (s === void 0 && (s = !1),
|
|
99
|
-
if (this.cancelNextCallback(),
|
|
114
|
+
}, o.updateStatus = function(s, r) {
|
|
115
|
+
if (s === void 0 && (s = !1), r !== null)
|
|
116
|
+
if (this.cancelNextCallback(), r === ee) {
|
|
100
117
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
101
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
102
|
-
a &&
|
|
118
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Te.findDOMNode(this);
|
|
119
|
+
a && Bt(a);
|
|
103
120
|
}
|
|
104
121
|
this.performEnter(s);
|
|
105
122
|
} else
|
|
106
123
|
this.performExit();
|
|
107
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
108
|
-
status:
|
|
124
|
+
else this.props.unmountOnExit && this.state.status === Z && this.setState({
|
|
125
|
+
status: me
|
|
109
126
|
});
|
|
110
|
-
},
|
|
111
|
-
var
|
|
112
|
-
if (!s && !a ||
|
|
127
|
+
}, o.performEnter = function(s) {
|
|
128
|
+
var r = this, a = this.props.enter, l = this.context ? this.context.isMounting : s, c = this.props.nodeRef ? [l] : [Te.findDOMNode(this), l], b = c[0], T = c[1], v = this.getTimeouts(), N = l ? v.appear : v.enter;
|
|
129
|
+
if (!s && !a || Ye.disabled) {
|
|
113
130
|
this.safeSetState({
|
|
114
|
-
status:
|
|
131
|
+
status: ae
|
|
115
132
|
}, function() {
|
|
116
|
-
|
|
133
|
+
r.props.onEntered(b);
|
|
117
134
|
});
|
|
118
135
|
return;
|
|
119
136
|
}
|
|
120
137
|
this.props.onEnter(b, T), this.safeSetState({
|
|
121
|
-
status:
|
|
138
|
+
status: ee
|
|
122
139
|
}, function() {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
status:
|
|
140
|
+
r.props.onEntering(b, T), r.onTransitionEnd(N, function() {
|
|
141
|
+
r.safeSetState({
|
|
142
|
+
status: ae
|
|
126
143
|
}, function() {
|
|
127
|
-
|
|
144
|
+
r.props.onEntered(b, T);
|
|
128
145
|
});
|
|
129
146
|
});
|
|
130
147
|
});
|
|
131
|
-
},
|
|
132
|
-
var s = this,
|
|
133
|
-
if (!
|
|
148
|
+
}, o.performExit = function() {
|
|
149
|
+
var s = this, r = this.props.exit, a = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Te.findDOMNode(this);
|
|
150
|
+
if (!r || Ye.disabled) {
|
|
134
151
|
this.safeSetState({
|
|
135
|
-
status:
|
|
152
|
+
status: Z
|
|
136
153
|
}, function() {
|
|
137
154
|
s.props.onExited(l);
|
|
138
155
|
});
|
|
@@ -143,26 +160,26 @@ var Yt = function(n) {
|
|
|
143
160
|
}, function() {
|
|
144
161
|
s.props.onExiting(l), s.onTransitionEnd(a.exit, function() {
|
|
145
162
|
s.safeSetState({
|
|
146
|
-
status:
|
|
163
|
+
status: Z
|
|
147
164
|
}, function() {
|
|
148
165
|
s.props.onExited(l);
|
|
149
166
|
});
|
|
150
167
|
});
|
|
151
168
|
});
|
|
152
|
-
},
|
|
169
|
+
}, o.cancelNextCallback = function() {
|
|
153
170
|
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
var
|
|
171
|
+
}, o.safeSetState = function(s, r) {
|
|
172
|
+
r = this.setNextCallback(r), this.setState(s, r);
|
|
173
|
+
}, o.setNextCallback = function(s) {
|
|
174
|
+
var r = this, a = !0;
|
|
158
175
|
return this.nextCallback = function(l) {
|
|
159
|
-
a && (a = !1,
|
|
176
|
+
a && (a = !1, r.nextCallback = null, s(l));
|
|
160
177
|
}, this.nextCallback.cancel = function() {
|
|
161
178
|
a = !1;
|
|
162
179
|
}, this.nextCallback;
|
|
163
|
-
},
|
|
164
|
-
this.setNextCallback(
|
|
165
|
-
var a = this.props.nodeRef ? this.props.nodeRef.current :
|
|
180
|
+
}, o.onTransitionEnd = function(s, r) {
|
|
181
|
+
this.setNextCallback(r);
|
|
182
|
+
var a = this.props.nodeRef ? this.props.nodeRef.current : Te.findDOMNode(this), l = s == null && !this.props.addEndListener;
|
|
166
183
|
if (!a || l) {
|
|
167
184
|
setTimeout(this.nextCallback, 0);
|
|
168
185
|
return;
|
|
@@ -172,23 +189,23 @@ var Yt = function(n) {
|
|
|
172
189
|
this.props.addEndListener(b, T);
|
|
173
190
|
}
|
|
174
191
|
s != null && setTimeout(this.nextCallback, s);
|
|
175
|
-
},
|
|
192
|
+
}, o.render = function() {
|
|
176
193
|
var s = this.state.status;
|
|
177
|
-
if (s ===
|
|
194
|
+
if (s === me)
|
|
178
195
|
return null;
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
var l =
|
|
196
|
+
var r = this.props, a = r.children;
|
|
197
|
+
r.in, r.mountOnEnter, r.unmountOnExit, r.appear, r.enter, r.exit, r.timeout, r.addEndListener, r.onEnter, r.onEntering, r.onEntered, r.onExit, r.onExiting, r.onExited, r.nodeRef;
|
|
198
|
+
var l = St(r, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
182
199
|
return (
|
|
183
200
|
// allows for nested Transitions
|
|
184
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ ve.createElement(st.Provider, {
|
|
185
202
|
value: null
|
|
186
|
-
}, typeof a == "function" ? a(s, l) :
|
|
203
|
+
}, typeof a == "function" ? a(s, l) : ve.cloneElement(ve.Children.only(a), l))
|
|
187
204
|
);
|
|
188
205
|
}, n;
|
|
189
|
-
}(
|
|
190
|
-
|
|
191
|
-
|
|
206
|
+
}(ve.Component);
|
|
207
|
+
G.contextType = st;
|
|
208
|
+
G.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
192
209
|
/**
|
|
193
210
|
* A React reference to DOM element that need to transition:
|
|
194
211
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -201,9 +218,9 @@ W.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
201
218
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
202
219
|
*/
|
|
203
220
|
nodeRef: e.shape({
|
|
204
|
-
current: typeof Element > "u" ? e.any : function(t, n,
|
|
221
|
+
current: typeof Element > "u" ? e.any : function(t, n, o, i, s, r) {
|
|
205
222
|
var a = t[n];
|
|
206
|
-
return e.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, n,
|
|
223
|
+
return e.instanceOf(a && "ownerDocument" in a ? a.ownerDocument.defaultView.Element : Element)(t, n, o, i, s, r);
|
|
207
224
|
}
|
|
208
225
|
}),
|
|
209
226
|
/**
|
|
@@ -284,11 +301,11 @@ W.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
284
301
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
285
302
|
*/
|
|
286
303
|
timeout: function(n) {
|
|
287
|
-
var
|
|
288
|
-
n.addEndListener || (
|
|
289
|
-
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0),
|
|
290
|
-
s[
|
|
291
|
-
return
|
|
304
|
+
var o = Kt;
|
|
305
|
+
n.addEndListener || (o = o.isRequired);
|
|
306
|
+
for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
|
|
307
|
+
s[r - 1] = arguments[r];
|
|
308
|
+
return o.apply(void 0, [n].concat(s));
|
|
292
309
|
},
|
|
293
310
|
/**
|
|
294
311
|
* Add a custom transition end trigger. Called with the transitioning
|
|
@@ -357,37 +374,37 @@ W.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
357
374
|
*/
|
|
358
375
|
onExited: e.func
|
|
359
376
|
} : {};
|
|
360
|
-
function
|
|
377
|
+
function se() {
|
|
361
378
|
}
|
|
362
|
-
|
|
379
|
+
G.defaultProps = {
|
|
363
380
|
in: !1,
|
|
364
381
|
mountOnEnter: !1,
|
|
365
382
|
unmountOnExit: !1,
|
|
366
383
|
appear: !1,
|
|
367
384
|
enter: !0,
|
|
368
385
|
exit: !0,
|
|
369
|
-
onEnter:
|
|
370
|
-
onEntering:
|
|
371
|
-
onEntered:
|
|
372
|
-
onExit:
|
|
373
|
-
onExiting:
|
|
374
|
-
onExited:
|
|
386
|
+
onEnter: se,
|
|
387
|
+
onEntering: se,
|
|
388
|
+
onEntered: se,
|
|
389
|
+
onExit: se,
|
|
390
|
+
onExiting: se,
|
|
391
|
+
onExited: se
|
|
375
392
|
};
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
function
|
|
393
|
+
G.UNMOUNTED = me;
|
|
394
|
+
G.EXITED = Z;
|
|
395
|
+
G.ENTERING = ee;
|
|
396
|
+
G.ENTERED = ae;
|
|
397
|
+
G.EXITING = Ae;
|
|
398
|
+
function Ht(t) {
|
|
382
399
|
return typeof t == "string";
|
|
383
400
|
}
|
|
384
|
-
function
|
|
401
|
+
function Ee(t, n, o, i, s) {
|
|
385
402
|
if (process.env.NODE_ENV === "production")
|
|
386
403
|
return null;
|
|
387
|
-
const
|
|
388
|
-
return
|
|
404
|
+
const r = t[n], a = s || n;
|
|
405
|
+
return r == null ? null : r && r.nodeType !== 1 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an HTMLElement.`) : null;
|
|
389
406
|
}
|
|
390
|
-
function
|
|
407
|
+
function zt(t) {
|
|
391
408
|
const n = typeof t;
|
|
392
409
|
switch (n) {
|
|
393
410
|
case "number":
|
|
@@ -398,77 +415,77 @@ function Qt(t) {
|
|
|
398
415
|
return n;
|
|
399
416
|
}
|
|
400
417
|
}
|
|
401
|
-
function
|
|
418
|
+
function lt(t, n, o, i) {
|
|
402
419
|
const s = t[n];
|
|
403
420
|
if (s == null || !Number.isInteger(s)) {
|
|
404
|
-
const
|
|
405
|
-
return new RangeError(`Invalid ${i} \`${n}\` of type \`${
|
|
421
|
+
const r = zt(s);
|
|
422
|
+
return new RangeError(`Invalid ${i} \`${n}\` of type \`${r}\` supplied to \`${o}\`, expected \`integer\`.`);
|
|
406
423
|
}
|
|
407
424
|
return null;
|
|
408
425
|
}
|
|
409
|
-
function
|
|
410
|
-
return t[n] === void 0 ? null :
|
|
426
|
+
function ct(t, n, o, i) {
|
|
427
|
+
return t[n] === void 0 ? null : lt(t, n, o, i);
|
|
411
428
|
}
|
|
412
|
-
function
|
|
429
|
+
function $e() {
|
|
413
430
|
return null;
|
|
414
431
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
const
|
|
418
|
-
function
|
|
432
|
+
ct.isRequired = lt;
|
|
433
|
+
$e.isRequired = $e;
|
|
434
|
+
const ut = process.env.NODE_ENV === "production" ? $e : ct;
|
|
435
|
+
function Wt(t) {
|
|
419
436
|
const {
|
|
420
437
|
prototype: n = {}
|
|
421
438
|
} = t;
|
|
422
439
|
return !!n.isReactComponent;
|
|
423
440
|
}
|
|
424
|
-
function
|
|
425
|
-
const
|
|
426
|
-
if (
|
|
441
|
+
function pt(t, n, o, i, s) {
|
|
442
|
+
const r = t[n], a = s || n;
|
|
443
|
+
if (r == null || // When server-side rendering React doesn't warn either.
|
|
427
444
|
// This is not an accurate check for SSR.
|
|
428
445
|
// This is only in place for Emotion compat.
|
|
429
446
|
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
430
447
|
typeof window > "u")
|
|
431
448
|
return null;
|
|
432
449
|
let l;
|
|
433
|
-
const c =
|
|
434
|
-
return typeof c == "function" && !
|
|
450
|
+
const c = r.type;
|
|
451
|
+
return typeof c == "function" && !Wt(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${i} \`${a}\` supplied to \`${o}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
435
452
|
}
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
function
|
|
453
|
+
const ge = we(e.element, pt);
|
|
454
|
+
ge.isRequired = we(e.element.isRequired, pt);
|
|
455
|
+
function Se(t) {
|
|
439
456
|
var n;
|
|
440
457
|
return parseInt(p.version, 10) >= 19 ? ((n = t == null ? void 0 : t.props) == null ? void 0 : n.ref) || null : (t == null ? void 0 : t.ref) || null;
|
|
441
458
|
}
|
|
442
|
-
const
|
|
443
|
-
function
|
|
459
|
+
const dt = (t) => t.scrollTop;
|
|
460
|
+
function Pe(t, n) {
|
|
444
461
|
const {
|
|
445
|
-
timeout:
|
|
462
|
+
timeout: o,
|
|
446
463
|
easing: i,
|
|
447
464
|
style: s = {}
|
|
448
465
|
} = t;
|
|
449
466
|
return {
|
|
450
|
-
duration: s.transitionDuration ?? (typeof
|
|
467
|
+
duration: s.transitionDuration ?? (typeof o == "number" ? o : o[n.mode] || 0),
|
|
451
468
|
easing: s.transitionTimingFunction ?? (typeof i == "object" ? i[n.mode] : i),
|
|
452
469
|
delay: s.transitionDelay
|
|
453
470
|
};
|
|
454
471
|
}
|
|
455
|
-
function
|
|
472
|
+
function Ve(t) {
|
|
456
473
|
return `scale(${t}, ${t ** 2})`;
|
|
457
474
|
}
|
|
458
|
-
const
|
|
475
|
+
const Gt = {
|
|
459
476
|
entering: {
|
|
460
477
|
opacity: 1,
|
|
461
|
-
transform:
|
|
478
|
+
transform: Ve(1)
|
|
462
479
|
},
|
|
463
480
|
entered: {
|
|
464
481
|
opacity: 1,
|
|
465
482
|
transform: "none"
|
|
466
483
|
}
|
|
467
|
-
}, Ie = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent),
|
|
484
|
+
}, Ie = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Re = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
468
485
|
const {
|
|
469
486
|
addEndListener: i,
|
|
470
487
|
appear: s = !0,
|
|
471
|
-
children:
|
|
488
|
+
children: r,
|
|
472
489
|
easing: a,
|
|
473
490
|
in: l,
|
|
474
491
|
onEnter: c,
|
|
@@ -480,20 +497,20 @@ const en = {
|
|
|
480
497
|
style: E,
|
|
481
498
|
timeout: I = "auto",
|
|
482
499
|
// eslint-disable-next-line react/prop-types
|
|
483
|
-
TransitionComponent: C =
|
|
500
|
+
TransitionComponent: C = G,
|
|
484
501
|
...g
|
|
485
|
-
} = n, w =
|
|
502
|
+
} = n, w = Ct(), u = p.useRef(), f = _e(), y = p.useRef(null), S = oe(y, Se(r), o), O = (d) => (h) => {
|
|
486
503
|
if (d) {
|
|
487
504
|
const j = y.current;
|
|
488
505
|
h === void 0 ? d(j) : d(j, h);
|
|
489
506
|
}
|
|
490
507
|
}, x = O(T), k = O((d, h) => {
|
|
491
|
-
|
|
508
|
+
dt(d);
|
|
492
509
|
const {
|
|
493
510
|
duration: j,
|
|
494
511
|
delay: U,
|
|
495
512
|
easing: R
|
|
496
|
-
} =
|
|
513
|
+
} = Pe({
|
|
497
514
|
style: E,
|
|
498
515
|
timeout: I,
|
|
499
516
|
easing: a
|
|
@@ -509,12 +526,12 @@ const en = {
|
|
|
509
526
|
delay: U,
|
|
510
527
|
easing: R
|
|
511
528
|
})].join(","), c && c(d, h);
|
|
512
|
-
}),
|
|
529
|
+
}), $ = O(b), A = O(m), _ = O((d) => {
|
|
513
530
|
const {
|
|
514
531
|
duration: h,
|
|
515
532
|
delay: j,
|
|
516
533
|
easing: U
|
|
517
|
-
} =
|
|
534
|
+
} = Pe({
|
|
518
535
|
style: E,
|
|
519
536
|
timeout: I,
|
|
520
537
|
easing: a
|
|
@@ -529,7 +546,7 @@ const en = {
|
|
|
529
546
|
duration: Ie ? R : R * 0.666,
|
|
530
547
|
delay: Ie ? j : j || R * 0.333,
|
|
531
548
|
easing: U
|
|
532
|
-
})].join(","), d.style.opacity = 0, d.style.transform =
|
|
549
|
+
})].join(","), d.style.opacity = 0, d.style.transform = Ve(0.75), v && v(d);
|
|
533
550
|
}), q = O(N), M = (d) => {
|
|
534
551
|
I === "auto" && w.start(u.current || 0, d), i && i(y.current, d);
|
|
535
552
|
};
|
|
@@ -538,9 +555,9 @@ const en = {
|
|
|
538
555
|
in: l,
|
|
539
556
|
nodeRef: y,
|
|
540
557
|
onEnter: k,
|
|
541
|
-
onEntered:
|
|
558
|
+
onEntered: $,
|
|
542
559
|
onEntering: x,
|
|
543
|
-
onExit:
|
|
560
|
+
onExit: _,
|
|
544
561
|
onExited: q,
|
|
545
562
|
onExiting: A,
|
|
546
563
|
addEndListener: M,
|
|
@@ -549,21 +566,21 @@ const en = {
|
|
|
549
566
|
children: (d, {
|
|
550
567
|
ownerState: h,
|
|
551
568
|
...j
|
|
552
|
-
}) => /* @__PURE__ */ p.cloneElement(
|
|
569
|
+
}) => /* @__PURE__ */ p.cloneElement(r, {
|
|
553
570
|
style: {
|
|
554
571
|
opacity: 0,
|
|
555
|
-
transform:
|
|
572
|
+
transform: Ve(0.75),
|
|
556
573
|
visibility: d === "exited" && !l ? "hidden" : void 0,
|
|
557
|
-
...
|
|
574
|
+
...Gt[d],
|
|
558
575
|
...E,
|
|
559
|
-
...
|
|
576
|
+
...r.props.style
|
|
560
577
|
},
|
|
561
578
|
ref: S,
|
|
562
579
|
...j
|
|
563
580
|
})
|
|
564
581
|
});
|
|
565
582
|
});
|
|
566
|
-
process.env.NODE_ENV !== "production" && (
|
|
583
|
+
process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
567
584
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
568
585
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
569
586
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -583,7 +600,7 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
583
600
|
/**
|
|
584
601
|
* A single child content element.
|
|
585
602
|
*/
|
|
586
|
-
children:
|
|
603
|
+
children: ge.isRequired,
|
|
587
604
|
/**
|
|
588
605
|
* The transition timing function.
|
|
589
606
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -637,121 +654,125 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
|
|
|
637
654
|
exit: e.number
|
|
638
655
|
})])
|
|
639
656
|
});
|
|
640
|
-
|
|
641
|
-
function
|
|
642
|
-
const n =
|
|
643
|
-
return
|
|
657
|
+
Re && (Re.muiSupportAuto = !0);
|
|
658
|
+
function ft(t = window) {
|
|
659
|
+
const n = t.document.documentElement.clientWidth;
|
|
660
|
+
return t.innerWidth - n;
|
|
644
661
|
}
|
|
645
|
-
function
|
|
662
|
+
function Xt(t) {
|
|
663
|
+
const n = z(t);
|
|
664
|
+
return n.body === t ? ne(t).innerWidth > n.documentElement.clientWidth : t.scrollHeight > t.clientHeight;
|
|
665
|
+
}
|
|
666
|
+
function be(t, n) {
|
|
646
667
|
n ? t.setAttribute("aria-hidden", "true") : t.removeAttribute("aria-hidden");
|
|
647
668
|
}
|
|
648
|
-
function
|
|
649
|
-
return parseInt(
|
|
669
|
+
function Je(t) {
|
|
670
|
+
return parseInt(ne(t).getComputedStyle(t).paddingRight, 10) || 0;
|
|
650
671
|
}
|
|
651
|
-
function
|
|
652
|
-
const
|
|
653
|
-
return
|
|
672
|
+
function Yt(t) {
|
|
673
|
+
const o = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(t.tagName), i = t.tagName === "INPUT" && t.getAttribute("type") === "hidden";
|
|
674
|
+
return o || i;
|
|
654
675
|
}
|
|
655
|
-
function
|
|
656
|
-
const
|
|
676
|
+
function Qe(t, n, o, i, s) {
|
|
677
|
+
const r = [n, o, ...i];
|
|
657
678
|
[].forEach.call(t.children, (a) => {
|
|
658
|
-
const l = !
|
|
659
|
-
l && c &&
|
|
679
|
+
const l = !r.includes(a), c = !Yt(a);
|
|
680
|
+
l && c && be(a, s);
|
|
660
681
|
});
|
|
661
682
|
}
|
|
662
683
|
function je(t, n) {
|
|
663
|
-
let
|
|
664
|
-
return t.some((i, s) => n(i) ? (
|
|
684
|
+
let o = -1;
|
|
685
|
+
return t.some((i, s) => n(i) ? (o = s, !0) : !1), o;
|
|
665
686
|
}
|
|
666
|
-
function
|
|
667
|
-
const
|
|
687
|
+
function Jt(t, n) {
|
|
688
|
+
const o = [], i = t.container;
|
|
668
689
|
if (!n.disableScrollLock) {
|
|
669
|
-
if (
|
|
670
|
-
const a =
|
|
671
|
-
|
|
690
|
+
if (Xt(i)) {
|
|
691
|
+
const a = ft(ne(i));
|
|
692
|
+
o.push({
|
|
672
693
|
value: i.style.paddingRight,
|
|
673
694
|
property: "padding-right",
|
|
674
695
|
el: i
|
|
675
|
-
}), i.style.paddingRight = `${
|
|
676
|
-
const l =
|
|
696
|
+
}), i.style.paddingRight = `${Je(i) + a}px`;
|
|
697
|
+
const l = z(i).querySelectorAll(".mui-fixed");
|
|
677
698
|
[].forEach.call(l, (c) => {
|
|
678
|
-
|
|
699
|
+
o.push({
|
|
679
700
|
value: c.style.paddingRight,
|
|
680
701
|
property: "padding-right",
|
|
681
702
|
el: c
|
|
682
|
-
}), c.style.paddingRight = `${
|
|
703
|
+
}), c.style.paddingRight = `${Je(c) + a}px`;
|
|
683
704
|
});
|
|
684
705
|
}
|
|
685
|
-
let
|
|
706
|
+
let r;
|
|
686
707
|
if (i.parentNode instanceof DocumentFragment)
|
|
687
|
-
|
|
708
|
+
r = z(i).body;
|
|
688
709
|
else {
|
|
689
|
-
const a = i.parentElement, l =
|
|
690
|
-
|
|
710
|
+
const a = i.parentElement, l = ne(i);
|
|
711
|
+
r = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : i;
|
|
691
712
|
}
|
|
692
|
-
|
|
693
|
-
value:
|
|
713
|
+
o.push({
|
|
714
|
+
value: r.style.overflow,
|
|
694
715
|
property: "overflow",
|
|
695
|
-
el:
|
|
716
|
+
el: r
|
|
696
717
|
}, {
|
|
697
|
-
value:
|
|
718
|
+
value: r.style.overflowX,
|
|
698
719
|
property: "overflow-x",
|
|
699
|
-
el:
|
|
720
|
+
el: r
|
|
700
721
|
}, {
|
|
701
|
-
value:
|
|
722
|
+
value: r.style.overflowY,
|
|
702
723
|
property: "overflow-y",
|
|
703
|
-
el:
|
|
704
|
-
}),
|
|
724
|
+
el: r
|
|
725
|
+
}), r.style.overflow = "hidden";
|
|
705
726
|
}
|
|
706
727
|
return () => {
|
|
707
|
-
|
|
708
|
-
value:
|
|
728
|
+
o.forEach(({
|
|
729
|
+
value: r,
|
|
709
730
|
el: a,
|
|
710
731
|
property: l
|
|
711
732
|
}) => {
|
|
712
|
-
|
|
733
|
+
r ? a.style.setProperty(l, r) : a.style.removeProperty(l);
|
|
713
734
|
});
|
|
714
735
|
};
|
|
715
736
|
}
|
|
716
|
-
function
|
|
737
|
+
function Qt(t) {
|
|
717
738
|
const n = [];
|
|
718
|
-
return [].forEach.call(t.children, (
|
|
719
|
-
|
|
739
|
+
return [].forEach.call(t.children, (o) => {
|
|
740
|
+
o.getAttribute("aria-hidden") === "true" && n.push(o);
|
|
720
741
|
}), n;
|
|
721
742
|
}
|
|
722
|
-
class
|
|
743
|
+
class Zt {
|
|
723
744
|
constructor() {
|
|
724
745
|
this.modals = [], this.containers = [];
|
|
725
746
|
}
|
|
726
|
-
add(n,
|
|
747
|
+
add(n, o) {
|
|
727
748
|
let i = this.modals.indexOf(n);
|
|
728
749
|
if (i !== -1)
|
|
729
750
|
return i;
|
|
730
|
-
i = this.modals.length, this.modals.push(n), n.modalRef &&
|
|
731
|
-
const s =
|
|
732
|
-
|
|
733
|
-
const
|
|
734
|
-
return
|
|
751
|
+
i = this.modals.length, this.modals.push(n), n.modalRef && be(n.modalRef, !1);
|
|
752
|
+
const s = Qt(o);
|
|
753
|
+
Qe(o, n.mount, n.modalRef, s, !0);
|
|
754
|
+
const r = je(this.containers, (a) => a.container === o);
|
|
755
|
+
return r !== -1 ? (this.containers[r].modals.push(n), i) : (this.containers.push({
|
|
735
756
|
modals: [n],
|
|
736
|
-
container:
|
|
757
|
+
container: o,
|
|
737
758
|
restore: null,
|
|
738
759
|
hiddenSiblings: s
|
|
739
760
|
}), i);
|
|
740
761
|
}
|
|
741
|
-
mount(n,
|
|
742
|
-
const i = je(this.containers, (
|
|
743
|
-
s.restore || (s.restore =
|
|
762
|
+
mount(n, o) {
|
|
763
|
+
const i = je(this.containers, (r) => r.modals.includes(n)), s = this.containers[i];
|
|
764
|
+
s.restore || (s.restore = Jt(s, o));
|
|
744
765
|
}
|
|
745
|
-
remove(n,
|
|
766
|
+
remove(n, o = !0) {
|
|
746
767
|
const i = this.modals.indexOf(n);
|
|
747
768
|
if (i === -1)
|
|
748
769
|
return i;
|
|
749
|
-
const s = je(this.containers, (a) => a.modals.includes(n)),
|
|
750
|
-
if (
|
|
751
|
-
|
|
770
|
+
const s = je(this.containers, (a) => a.modals.includes(n)), r = this.containers[s];
|
|
771
|
+
if (r.modals.splice(r.modals.indexOf(n), 1), this.modals.splice(i, 1), r.modals.length === 0)
|
|
772
|
+
r.restore && r.restore(), n.modalRef && be(n.modalRef, o), Qe(r.container, n.mount, n.modalRef, r.hiddenSiblings, !1), this.containers.splice(s, 1);
|
|
752
773
|
else {
|
|
753
|
-
const a =
|
|
754
|
-
a.modalRef &&
|
|
774
|
+
const a = r.modals[r.modals.length - 1];
|
|
775
|
+
a.modalRef && be(a.modalRef, !1);
|
|
755
776
|
}
|
|
756
777
|
return i;
|
|
757
778
|
}
|
|
@@ -759,51 +780,51 @@ class sn {
|
|
|
759
780
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === n;
|
|
760
781
|
}
|
|
761
782
|
}
|
|
762
|
-
const
|
|
763
|
-
function
|
|
783
|
+
const en = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
|
784
|
+
function tn(t) {
|
|
764
785
|
const n = parseInt(t.getAttribute("tabindex") || "", 10);
|
|
765
786
|
return Number.isNaN(n) ? t.contentEditable === "true" || (t.nodeName === "AUDIO" || t.nodeName === "VIDEO" || t.nodeName === "DETAILS") && t.getAttribute("tabindex") === null ? 0 : t.tabIndex : n;
|
|
766
787
|
}
|
|
767
|
-
function
|
|
788
|
+
function nn(t) {
|
|
768
789
|
if (t.tagName !== "INPUT" || t.type !== "radio" || !t.name)
|
|
769
790
|
return !1;
|
|
770
791
|
const n = (i) => t.ownerDocument.querySelector(`input[type="radio"]${i}`);
|
|
771
|
-
let
|
|
772
|
-
return
|
|
792
|
+
let o = n(`[name="${t.name}"]:checked`);
|
|
793
|
+
return o || (o = n(`[name="${t.name}"]`)), o !== t;
|
|
773
794
|
}
|
|
774
|
-
function
|
|
775
|
-
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" ||
|
|
795
|
+
function on(t) {
|
|
796
|
+
return !(t.disabled || t.tagName === "INPUT" && t.type === "hidden" || nn(t));
|
|
776
797
|
}
|
|
777
|
-
function
|
|
778
|
-
const n = [],
|
|
779
|
-
return Array.from(t.querySelectorAll(
|
|
780
|
-
const
|
|
781
|
-
|
|
798
|
+
function rn(t) {
|
|
799
|
+
const n = [], o = [];
|
|
800
|
+
return Array.from(t.querySelectorAll(en)).forEach((i, s) => {
|
|
801
|
+
const r = tn(i);
|
|
802
|
+
r === -1 || !on(i) || (r === 0 ? n.push(i) : o.push({
|
|
782
803
|
documentOrder: s,
|
|
783
|
-
tabIndex:
|
|
804
|
+
tabIndex: r,
|
|
784
805
|
node: i
|
|
785
806
|
}));
|
|
786
|
-
}),
|
|
807
|
+
}), o.sort((i, s) => i.tabIndex === s.tabIndex ? i.documentOrder - s.documentOrder : i.tabIndex - s.tabIndex).map((i) => i.node).concat(n);
|
|
787
808
|
}
|
|
788
|
-
function
|
|
809
|
+
function sn() {
|
|
789
810
|
return !0;
|
|
790
811
|
}
|
|
791
|
-
function
|
|
812
|
+
function Oe(t) {
|
|
792
813
|
const {
|
|
793
814
|
children: n,
|
|
794
|
-
disableAutoFocus:
|
|
815
|
+
disableAutoFocus: o = !1,
|
|
795
816
|
disableEnforceFocus: i = !1,
|
|
796
817
|
disableRestoreFocus: s = !1,
|
|
797
|
-
getTabbable:
|
|
798
|
-
isEnabled: a =
|
|
818
|
+
getTabbable: r = rn,
|
|
819
|
+
isEnabled: a = sn,
|
|
799
820
|
open: l
|
|
800
|
-
} = t, c = p.useRef(!1), b = p.useRef(null), T = p.useRef(null), v = p.useRef(null), N = p.useRef(null), m = p.useRef(!1), E = p.useRef(null), I =
|
|
821
|
+
} = t, c = p.useRef(!1), b = p.useRef(null), T = p.useRef(null), v = p.useRef(null), N = p.useRef(null), m = p.useRef(!1), E = p.useRef(null), I = oe(Se(n), E), C = p.useRef(null);
|
|
801
822
|
p.useEffect(() => {
|
|
802
|
-
!l || !E.current || (m.current = !
|
|
803
|
-
}, [
|
|
823
|
+
!l || !E.current || (m.current = !o);
|
|
824
|
+
}, [o, l]), p.useEffect(() => {
|
|
804
825
|
if (!l || !E.current)
|
|
805
826
|
return;
|
|
806
|
-
const u =
|
|
827
|
+
const u = z(E.current);
|
|
807
828
|
return E.current.contains(u.activeElement) || (E.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(`
|
|
808
829
|
`)), E.current.setAttribute("tabIndex", "-1")), m.current && E.current.focus()), () => {
|
|
809
830
|
s || (v.current && v.current.focus && (c.current = !0, v.current.focus()), v.current = null);
|
|
@@ -811,10 +832,10 @@ function Re(t) {
|
|
|
811
832
|
}, [l]), p.useEffect(() => {
|
|
812
833
|
if (!l || !E.current)
|
|
813
834
|
return;
|
|
814
|
-
const u =
|
|
835
|
+
const u = z(E.current), f = (O) => {
|
|
815
836
|
C.current = O, !(i || !a() || O.key !== "Tab") && u.activeElement === E.current && O.shiftKey && (c.current = !0, T.current && T.current.focus());
|
|
816
837
|
}, y = () => {
|
|
817
|
-
var k,
|
|
838
|
+
var k, $;
|
|
818
839
|
const O = E.current;
|
|
819
840
|
if (O === null)
|
|
820
841
|
return;
|
|
@@ -831,9 +852,9 @@ function Re(t) {
|
|
|
831
852
|
if (!m.current)
|
|
832
853
|
return;
|
|
833
854
|
let x = [];
|
|
834
|
-
if ((u.activeElement === b.current || u.activeElement === T.current) && (x =
|
|
835
|
-
const A = !!((k = C.current) != null && k.shiftKey && ((
|
|
836
|
-
typeof
|
|
855
|
+
if ((u.activeElement === b.current || u.activeElement === T.current) && (x = r(E.current)), x.length > 0) {
|
|
856
|
+
const A = !!((k = C.current) != null && k.shiftKey && (($ = C.current) == null ? void 0 : $.key) === "Tab"), _ = x[0], q = x[x.length - 1];
|
|
857
|
+
typeof _ != "string" && typeof q != "string" && (A ? q.focus() : _.focus());
|
|
837
858
|
} else
|
|
838
859
|
O.focus();
|
|
839
860
|
};
|
|
@@ -844,7 +865,7 @@ function Re(t) {
|
|
|
844
865
|
return () => {
|
|
845
866
|
clearInterval(S), u.removeEventListener("focusin", y), u.removeEventListener("keydown", f, !0);
|
|
846
867
|
};
|
|
847
|
-
}, [
|
|
868
|
+
}, [o, i, s, a, l, r]);
|
|
848
869
|
const g = (u) => {
|
|
849
870
|
v.current === null && (v.current = u.relatedTarget), m.current = !0, N.current = u.target;
|
|
850
871
|
const f = n.props.onFocus;
|
|
@@ -869,7 +890,7 @@ function Re(t) {
|
|
|
869
890
|
})]
|
|
870
891
|
});
|
|
871
892
|
}
|
|
872
|
-
process.env.NODE_ENV !== "production" && (
|
|
893
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
873
894
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
874
895
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
875
896
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -877,7 +898,7 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
877
898
|
/**
|
|
878
899
|
* A single child content element.
|
|
879
900
|
*/
|
|
880
|
-
children:
|
|
901
|
+
children: ge,
|
|
881
902
|
/**
|
|
882
903
|
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
|
883
904
|
* replace it to the last focused element when it closes.
|
|
@@ -923,24 +944,24 @@ process.env.NODE_ENV !== "production" && (Re.propTypes = {
|
|
|
923
944
|
*/
|
|
924
945
|
open: e.bool.isRequired
|
|
925
946
|
});
|
|
926
|
-
process.env.NODE_ENV !== "production" && (
|
|
927
|
-
function
|
|
947
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = at(Oe.propTypes));
|
|
948
|
+
function an(t) {
|
|
928
949
|
return typeof t == "function" ? t() : t;
|
|
929
950
|
}
|
|
930
|
-
const
|
|
951
|
+
const Ne = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
931
952
|
const {
|
|
932
953
|
children: i,
|
|
933
954
|
container: s,
|
|
934
|
-
disablePortal:
|
|
935
|
-
} = n, [a, l] = p.useState(null), c =
|
|
936
|
-
if (
|
|
937
|
-
|
|
938
|
-
}, [s,
|
|
939
|
-
if (a && !
|
|
940
|
-
return Xe(
|
|
941
|
-
Xe(
|
|
955
|
+
disablePortal: r = !1
|
|
956
|
+
} = n, [a, l] = p.useState(null), c = oe(/* @__PURE__ */ p.isValidElement(i) ? Se(i) : null, o);
|
|
957
|
+
if (Le(() => {
|
|
958
|
+
r || l(an(s) || document.body);
|
|
959
|
+
}, [s, r]), Le(() => {
|
|
960
|
+
if (a && !r)
|
|
961
|
+
return Xe(o, a), () => {
|
|
962
|
+
Xe(o, null);
|
|
942
963
|
};
|
|
943
|
-
}, [
|
|
964
|
+
}, [o, a, r]), r) {
|
|
944
965
|
if (/* @__PURE__ */ p.isValidElement(i)) {
|
|
945
966
|
const b = {
|
|
946
967
|
ref: c
|
|
@@ -949,9 +970,9 @@ const Oe = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
949
970
|
}
|
|
950
971
|
return i;
|
|
951
972
|
}
|
|
952
|
-
return a && /* @__PURE__ */
|
|
973
|
+
return a && /* @__PURE__ */ $t.createPortal(i, a);
|
|
953
974
|
});
|
|
954
|
-
process.env.NODE_ENV !== "production" && (
|
|
975
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = {
|
|
955
976
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
956
977
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
957
978
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -970,27 +991,27 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
970
991
|
* By default, it uses the body of the top-level document object,
|
|
971
992
|
* so it's simply `document.body` most of the time.
|
|
972
993
|
*/
|
|
973
|
-
container: e.oneOfType([
|
|
994
|
+
container: e.oneOfType([Ee, e.func]),
|
|
974
995
|
/**
|
|
975
996
|
* The `children` will be under the DOM hierarchy of the parent component.
|
|
976
997
|
* @default false
|
|
977
998
|
*/
|
|
978
999
|
disablePortal: e.bool
|
|
979
1000
|
});
|
|
980
|
-
process.env.NODE_ENV !== "production" && (
|
|
981
|
-
const
|
|
1001
|
+
process.env.NODE_ENV !== "production" && (Ne.propTypes = at(Ne.propTypes));
|
|
1002
|
+
const ln = {
|
|
982
1003
|
entering: {
|
|
983
1004
|
opacity: 1
|
|
984
1005
|
},
|
|
985
1006
|
entered: {
|
|
986
1007
|
opacity: 1
|
|
987
1008
|
}
|
|
988
|
-
},
|
|
989
|
-
const i =
|
|
1009
|
+
}, mt = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
1010
|
+
const i = _e(), s = {
|
|
990
1011
|
enter: i.transitions.duration.enteringScreen,
|
|
991
1012
|
exit: i.transitions.duration.leavingScreen
|
|
992
1013
|
}, {
|
|
993
|
-
addEndListener:
|
|
1014
|
+
addEndListener: r,
|
|
994
1015
|
appear: a = !0,
|
|
995
1016
|
children: l,
|
|
996
1017
|
easing: c,
|
|
@@ -1004,16 +1025,16 @@ const mn = {
|
|
|
1004
1025
|
style: C,
|
|
1005
1026
|
timeout: g = s,
|
|
1006
1027
|
// eslint-disable-next-line react/prop-types
|
|
1007
|
-
TransitionComponent: w =
|
|
1028
|
+
TransitionComponent: w = G,
|
|
1008
1029
|
...u
|
|
1009
|
-
} = n, f = p.useRef(null), y =
|
|
1030
|
+
} = n, f = p.useRef(null), y = oe(f, Se(l), o), S = (M) => (d) => {
|
|
1010
1031
|
if (M) {
|
|
1011
1032
|
const h = f.current;
|
|
1012
1033
|
d === void 0 ? M(h) : M(h, d);
|
|
1013
1034
|
}
|
|
1014
1035
|
}, O = S(N), x = S((M, d) => {
|
|
1015
|
-
|
|
1016
|
-
const h =
|
|
1036
|
+
dt(M);
|
|
1037
|
+
const h = Pe({
|
|
1017
1038
|
style: C,
|
|
1018
1039
|
timeout: g,
|
|
1019
1040
|
easing: c
|
|
@@ -1021,8 +1042,8 @@ const mn = {
|
|
|
1021
1042
|
mode: "enter"
|
|
1022
1043
|
});
|
|
1023
1044
|
M.style.webkitTransition = i.transitions.create("opacity", h), M.style.transition = i.transitions.create("opacity", h), T && T(M, d);
|
|
1024
|
-
}), k = S(v),
|
|
1025
|
-
const d =
|
|
1045
|
+
}), k = S(v), $ = S(I), A = S((M) => {
|
|
1046
|
+
const d = Pe({
|
|
1026
1047
|
style: C,
|
|
1027
1048
|
timeout: g,
|
|
1028
1049
|
easing: c
|
|
@@ -1030,8 +1051,8 @@ const mn = {
|
|
|
1030
1051
|
mode: "exit"
|
|
1031
1052
|
});
|
|
1032
1053
|
M.style.webkitTransition = i.transitions.create("opacity", d), M.style.transition = i.transitions.create("opacity", d), m && m(M);
|
|
1033
|
-
}),
|
|
1034
|
-
|
|
1054
|
+
}), _ = S(E), q = (M) => {
|
|
1055
|
+
r && r(f.current, M);
|
|
1035
1056
|
};
|
|
1036
1057
|
return /* @__PURE__ */ L.jsx(w, {
|
|
1037
1058
|
appear: a,
|
|
@@ -1041,8 +1062,8 @@ const mn = {
|
|
|
1041
1062
|
onEntered: k,
|
|
1042
1063
|
onEntering: O,
|
|
1043
1064
|
onExit: A,
|
|
1044
|
-
onExited:
|
|
1045
|
-
onExiting:
|
|
1065
|
+
onExited: _,
|
|
1066
|
+
onExiting: $,
|
|
1046
1067
|
addEndListener: q,
|
|
1047
1068
|
timeout: g,
|
|
1048
1069
|
...u,
|
|
@@ -1053,7 +1074,7 @@ const mn = {
|
|
|
1053
1074
|
style: {
|
|
1054
1075
|
opacity: 0,
|
|
1055
1076
|
visibility: M === "exited" && !b ? "hidden" : void 0,
|
|
1056
|
-
...
|
|
1077
|
+
...ln[M],
|
|
1057
1078
|
...C,
|
|
1058
1079
|
...l.props.style
|
|
1059
1080
|
},
|
|
@@ -1062,7 +1083,7 @@ const mn = {
|
|
|
1062
1083
|
})
|
|
1063
1084
|
});
|
|
1064
1085
|
});
|
|
1065
|
-
process.env.NODE_ENV !== "production" && (
|
|
1086
|
+
process.env.NODE_ENV !== "production" && (mt.propTypes = {
|
|
1066
1087
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1067
1088
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1068
1089
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1082,7 +1103,7 @@ process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
|
1082
1103
|
/**
|
|
1083
1104
|
* A single child content element.
|
|
1084
1105
|
*/
|
|
1085
|
-
children:
|
|
1106
|
+
children: ge.isRequired,
|
|
1086
1107
|
/**
|
|
1087
1108
|
* The transition timing function.
|
|
1088
1109
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -1137,26 +1158,26 @@ process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
|
1137
1158
|
exit: e.number
|
|
1138
1159
|
})])
|
|
1139
1160
|
});
|
|
1140
|
-
function
|
|
1141
|
-
return
|
|
1161
|
+
function cn(t) {
|
|
1162
|
+
return le("MuiBackdrop", t);
|
|
1142
1163
|
}
|
|
1143
|
-
|
|
1144
|
-
const
|
|
1164
|
+
pe("MuiBackdrop", ["root", "invisible"]);
|
|
1165
|
+
const un = (t) => {
|
|
1145
1166
|
const {
|
|
1146
1167
|
classes: n,
|
|
1147
|
-
invisible:
|
|
1168
|
+
invisible: o
|
|
1148
1169
|
} = t;
|
|
1149
|
-
return
|
|
1150
|
-
root: ["root",
|
|
1151
|
-
},
|
|
1152
|
-
},
|
|
1170
|
+
return ue({
|
|
1171
|
+
root: ["root", o && "invisible"]
|
|
1172
|
+
}, cn, n);
|
|
1173
|
+
}, pn = W("div", {
|
|
1153
1174
|
name: "MuiBackdrop",
|
|
1154
1175
|
slot: "Root",
|
|
1155
1176
|
overridesResolver: (t, n) => {
|
|
1156
1177
|
const {
|
|
1157
|
-
ownerState:
|
|
1178
|
+
ownerState: o
|
|
1158
1179
|
} = t;
|
|
1159
|
-
return [n.root,
|
|
1180
|
+
return [n.root, o.invisible && n.invisible];
|
|
1160
1181
|
}
|
|
1161
1182
|
})({
|
|
1162
1183
|
position: "fixed",
|
|
@@ -1177,13 +1198,13 @@ const bn = (t) => {
|
|
|
1177
1198
|
backgroundColor: "transparent"
|
|
1178
1199
|
}
|
|
1179
1200
|
}]
|
|
1180
|
-
}),
|
|
1181
|
-
const i =
|
|
1201
|
+
}), ht = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
1202
|
+
const i = ce({
|
|
1182
1203
|
props: n,
|
|
1183
1204
|
name: "MuiBackdrop"
|
|
1184
1205
|
}), {
|
|
1185
1206
|
children: s,
|
|
1186
|
-
className:
|
|
1207
|
+
className: r,
|
|
1187
1208
|
component: a = "div",
|
|
1188
1209
|
invisible: l = !1,
|
|
1189
1210
|
open: c,
|
|
@@ -1198,7 +1219,7 @@ const bn = (t) => {
|
|
|
1198
1219
|
...i,
|
|
1199
1220
|
component: a,
|
|
1200
1221
|
invisible: l
|
|
1201
|
-
}, g =
|
|
1222
|
+
}, g = un(C), w = {
|
|
1202
1223
|
transition: m,
|
|
1203
1224
|
root: b.Root,
|
|
1204
1225
|
...N
|
|
@@ -1208,13 +1229,13 @@ const bn = (t) => {
|
|
|
1208
1229
|
}, f = {
|
|
1209
1230
|
slots: w,
|
|
1210
1231
|
slotProps: u
|
|
1211
|
-
}, [y, S] =
|
|
1212
|
-
elementType:
|
|
1232
|
+
}, [y, S] = X("root", {
|
|
1233
|
+
elementType: pn,
|
|
1213
1234
|
externalForwardedProps: f,
|
|
1214
|
-
className:
|
|
1235
|
+
className: te(g.root, r),
|
|
1215
1236
|
ownerState: C
|
|
1216
|
-
}), [O, x] =
|
|
1217
|
-
elementType:
|
|
1237
|
+
}), [O, x] = X("transition", {
|
|
1238
|
+
elementType: mt,
|
|
1218
1239
|
externalForwardedProps: f,
|
|
1219
1240
|
ownerState: C
|
|
1220
1241
|
});
|
|
@@ -1227,12 +1248,12 @@ const bn = (t) => {
|
|
|
1227
1248
|
"aria-hidden": !0,
|
|
1228
1249
|
...S,
|
|
1229
1250
|
classes: g,
|
|
1230
|
-
ref:
|
|
1251
|
+
ref: o,
|
|
1231
1252
|
children: s
|
|
1232
1253
|
})
|
|
1233
1254
|
});
|
|
1234
1255
|
});
|
|
1235
|
-
process.env.NODE_ENV !== "production" && (
|
|
1256
|
+
process.env.NODE_ENV !== "production" && (ht.propTypes = {
|
|
1236
1257
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1237
1258
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1238
1259
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1322,57 +1343,57 @@ process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
|
1322
1343
|
exit: e.number
|
|
1323
1344
|
})])
|
|
1324
1345
|
});
|
|
1325
|
-
function
|
|
1346
|
+
function dn(t) {
|
|
1326
1347
|
return typeof t == "function" ? t() : t;
|
|
1327
1348
|
}
|
|
1328
|
-
function
|
|
1349
|
+
function fn(t) {
|
|
1329
1350
|
return t ? t.props.hasOwnProperty("in") : !1;
|
|
1330
1351
|
}
|
|
1331
|
-
const
|
|
1332
|
-
},
|
|
1333
|
-
function
|
|
1352
|
+
const Ze = () => {
|
|
1353
|
+
}, xe = new Zt();
|
|
1354
|
+
function mn(t) {
|
|
1334
1355
|
const {
|
|
1335
1356
|
container: n,
|
|
1336
|
-
disableEscapeKeyDown:
|
|
1357
|
+
disableEscapeKeyDown: o = !1,
|
|
1337
1358
|
disableScrollLock: i = !1,
|
|
1338
1359
|
closeAfterTransition: s = !1,
|
|
1339
|
-
onTransitionEnter:
|
|
1360
|
+
onTransitionEnter: r,
|
|
1340
1361
|
onTransitionExited: a,
|
|
1341
1362
|
children: l,
|
|
1342
1363
|
onClose: c,
|
|
1343
1364
|
open: b,
|
|
1344
1365
|
rootRef: T
|
|
1345
|
-
} = t, v = p.useRef({}), N = p.useRef(null), m = p.useRef(null), E =
|
|
1366
|
+
} = t, v = p.useRef({}), N = p.useRef(null), m = p.useRef(null), E = oe(m, T), [I, C] = p.useState(!b), g = fn(l);
|
|
1346
1367
|
let w = !0;
|
|
1347
1368
|
(t["aria-hidden"] === "false" || t["aria-hidden"] === !1) && (w = !1);
|
|
1348
|
-
const u = () =>
|
|
1349
|
-
|
|
1369
|
+
const u = () => z(N.current), f = () => (v.current.modalRef = m.current, v.current.mount = N.current, v.current), y = () => {
|
|
1370
|
+
xe.mount(f(), {
|
|
1350
1371
|
disableScrollLock: i
|
|
1351
1372
|
}), m.current && (m.current.scrollTop = 0);
|
|
1352
|
-
}, S =
|
|
1353
|
-
const d =
|
|
1354
|
-
|
|
1355
|
-
}), O = () =>
|
|
1356
|
-
N.current = d, d && (b && O() ? y() : m.current &&
|
|
1373
|
+
}, S = We(() => {
|
|
1374
|
+
const d = dn(n) || u().body;
|
|
1375
|
+
xe.add(f(), d), m.current && y();
|
|
1376
|
+
}), O = () => xe.isTopModal(f()), x = We((d) => {
|
|
1377
|
+
N.current = d, d && (b && O() ? y() : m.current && be(m.current, w));
|
|
1357
1378
|
}), k = p.useCallback(() => {
|
|
1358
|
-
|
|
1379
|
+
xe.remove(f(), w);
|
|
1359
1380
|
}, [w]);
|
|
1360
1381
|
p.useEffect(() => () => {
|
|
1361
1382
|
k();
|
|
1362
1383
|
}, [k]), p.useEffect(() => {
|
|
1363
1384
|
b ? S() : (!g || !s) && k();
|
|
1364
1385
|
}, [b, k, g, s, S]);
|
|
1365
|
-
const
|
|
1386
|
+
const $ = (d) => (h) => {
|
|
1366
1387
|
var j;
|
|
1367
1388
|
(j = d.onKeyDown) == null || j.call(d, h), !(h.key !== "Escape" || h.which === 229 || // Wait until IME is settled.
|
|
1368
|
-
!O()) && (
|
|
1389
|
+
!O()) && (o || (h.stopPropagation(), c && c(h, "escapeKeyDown")));
|
|
1369
1390
|
}, A = (d) => (h) => {
|
|
1370
1391
|
var j;
|
|
1371
1392
|
(j = d.onClick) == null || j.call(d, h), h.target === h.currentTarget && c && c(h, "backdropClick");
|
|
1372
1393
|
};
|
|
1373
1394
|
return {
|
|
1374
1395
|
getRootProps: (d = {}) => {
|
|
1375
|
-
const h =
|
|
1396
|
+
const h = Mt(t);
|
|
1376
1397
|
delete h.onTransitionEnter, delete h.onTransitionExited;
|
|
1377
1398
|
const j = {
|
|
1378
1399
|
...h,
|
|
@@ -1387,7 +1408,7 @@ function vn(t) {
|
|
|
1387
1408
|
*/
|
|
1388
1409
|
role: "presentation",
|
|
1389
1410
|
...j,
|
|
1390
|
-
onKeyDown:
|
|
1411
|
+
onKeyDown: $(j),
|
|
1391
1412
|
ref: E
|
|
1392
1413
|
};
|
|
1393
1414
|
},
|
|
@@ -1402,13 +1423,13 @@ function vn(t) {
|
|
|
1402
1423
|
},
|
|
1403
1424
|
getTransitionProps: () => {
|
|
1404
1425
|
const d = () => {
|
|
1405
|
-
C(!1),
|
|
1426
|
+
C(!1), r && r();
|
|
1406
1427
|
}, h = () => {
|
|
1407
1428
|
C(!0), a && a(), s && k();
|
|
1408
1429
|
};
|
|
1409
1430
|
return {
|
|
1410
|
-
onEnter:
|
|
1411
|
-
onExited:
|
|
1431
|
+
onEnter: Ge(d, (l == null ? void 0 : l.props.onEnter) ?? Ze),
|
|
1432
|
+
onExited: Ge(h, (l == null ? void 0 : l.props.onExited) ?? Ze)
|
|
1412
1433
|
};
|
|
1413
1434
|
},
|
|
1414
1435
|
rootRef: E,
|
|
@@ -1418,30 +1439,30 @@ function vn(t) {
|
|
|
1418
1439
|
hasTransition: g
|
|
1419
1440
|
};
|
|
1420
1441
|
}
|
|
1421
|
-
function
|
|
1422
|
-
return
|
|
1442
|
+
function hn(t) {
|
|
1443
|
+
return le("MuiModal", t);
|
|
1423
1444
|
}
|
|
1424
|
-
|
|
1425
|
-
const
|
|
1445
|
+
pe("MuiModal", ["root", "hidden", "backdrop"]);
|
|
1446
|
+
const bn = (t) => {
|
|
1426
1447
|
const {
|
|
1427
1448
|
open: n,
|
|
1428
|
-
exited:
|
|
1449
|
+
exited: o,
|
|
1429
1450
|
classes: i
|
|
1430
1451
|
} = t;
|
|
1431
|
-
return
|
|
1432
|
-
root: ["root", !n &&
|
|
1452
|
+
return ue({
|
|
1453
|
+
root: ["root", !n && o && "hidden"],
|
|
1433
1454
|
backdrop: ["backdrop"]
|
|
1434
|
-
},
|
|
1435
|
-
},
|
|
1455
|
+
}, hn, i);
|
|
1456
|
+
}, En = W("div", {
|
|
1436
1457
|
name: "MuiModal",
|
|
1437
1458
|
slot: "Root",
|
|
1438
1459
|
overridesResolver: (t, n) => {
|
|
1439
1460
|
const {
|
|
1440
|
-
ownerState:
|
|
1461
|
+
ownerState: o
|
|
1441
1462
|
} = t;
|
|
1442
|
-
return [n.root, !
|
|
1463
|
+
return [n.root, !o.open && o.exited && n.hidden];
|
|
1443
1464
|
}
|
|
1444
|
-
})(
|
|
1465
|
+
})(it(({
|
|
1445
1466
|
theme: t
|
|
1446
1467
|
}) => ({
|
|
1447
1468
|
position: "fixed",
|
|
@@ -1458,19 +1479,18 @@ const xn = (t) => {
|
|
|
1458
1479
|
visibility: "hidden"
|
|
1459
1480
|
}
|
|
1460
1481
|
}]
|
|
1461
|
-
}))),
|
|
1482
|
+
}))), gn = W(ht, {
|
|
1462
1483
|
name: "MuiModal",
|
|
1463
|
-
slot: "Backdrop"
|
|
1464
|
-
overridesResolver: (t, n) => n.backdrop
|
|
1484
|
+
slot: "Backdrop"
|
|
1465
1485
|
})({
|
|
1466
1486
|
zIndex: -1
|
|
1467
|
-
}),
|
|
1468
|
-
const i =
|
|
1487
|
+
}), bt = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
1488
|
+
const i = ce({
|
|
1469
1489
|
name: "MuiModal",
|
|
1470
1490
|
props: n
|
|
1471
1491
|
}), {
|
|
1472
|
-
BackdropComponent: s =
|
|
1473
|
-
BackdropProps:
|
|
1492
|
+
BackdropComponent: s = gn,
|
|
1493
|
+
BackdropProps: r,
|
|
1474
1494
|
classes: a,
|
|
1475
1495
|
className: l,
|
|
1476
1496
|
closeAfterTransition: c = !1,
|
|
@@ -1491,10 +1511,10 @@ const xn = (t) => {
|
|
|
1491
1511
|
onTransitionEnter: O,
|
|
1492
1512
|
onTransitionExited: x,
|
|
1493
1513
|
open: k,
|
|
1494
|
-
slotProps:
|
|
1514
|
+
slotProps: $ = {},
|
|
1495
1515
|
slots: A = {},
|
|
1496
1516
|
// eslint-disable-next-line react/prop-types
|
|
1497
|
-
theme:
|
|
1517
|
+
theme: _,
|
|
1498
1518
|
...q
|
|
1499
1519
|
} = i, M = {
|
|
1500
1520
|
...i,
|
|
@@ -1514,22 +1534,22 @@ const xn = (t) => {
|
|
|
1514
1534
|
portalRef: U,
|
|
1515
1535
|
isTopModal: R,
|
|
1516
1536
|
exited: F,
|
|
1517
|
-
hasTransition:
|
|
1518
|
-
} =
|
|
1537
|
+
hasTransition: Y
|
|
1538
|
+
} = mn({
|
|
1519
1539
|
...M,
|
|
1520
|
-
rootRef:
|
|
1521
|
-
}),
|
|
1540
|
+
rootRef: o
|
|
1541
|
+
}), J = {
|
|
1522
1542
|
...M,
|
|
1523
1543
|
exited: F
|
|
1524
|
-
}, K =
|
|
1525
|
-
if (b.props.tabIndex === void 0 && (
|
|
1544
|
+
}, K = bn(J), Q = {};
|
|
1545
|
+
if (b.props.tabIndex === void 0 && (Q.tabIndex = "-1"), Y) {
|
|
1526
1546
|
const {
|
|
1527
1547
|
onEnter: P,
|
|
1528
1548
|
onExited: D
|
|
1529
1549
|
} = j();
|
|
1530
|
-
|
|
1550
|
+
Q.onEnter = P, Q.onExited = D;
|
|
1531
1551
|
}
|
|
1532
|
-
const
|
|
1552
|
+
const ye = {
|
|
1533
1553
|
slots: {
|
|
1534
1554
|
root: N.Root,
|
|
1535
1555
|
backdrop: N.Backdrop,
|
|
@@ -1537,35 +1557,35 @@ const xn = (t) => {
|
|
|
1537
1557
|
},
|
|
1538
1558
|
slotProps: {
|
|
1539
1559
|
...m,
|
|
1540
|
-
|
|
1560
|
+
...$
|
|
1541
1561
|
}
|
|
1542
|
-
}, [Ce, Me] =
|
|
1543
|
-
ref:
|
|
1544
|
-
elementType:
|
|
1562
|
+
}, [Ce, Me] = X("root", {
|
|
1563
|
+
ref: o,
|
|
1564
|
+
elementType: En,
|
|
1545
1565
|
externalForwardedProps: {
|
|
1546
|
-
...
|
|
1566
|
+
...ye,
|
|
1547
1567
|
...q,
|
|
1548
1568
|
component: v
|
|
1549
1569
|
},
|
|
1550
1570
|
getSlotProps: d,
|
|
1551
|
-
ownerState:
|
|
1552
|
-
className:
|
|
1553
|
-
}), [ke, De] =
|
|
1554
|
-
ref:
|
|
1571
|
+
ownerState: J,
|
|
1572
|
+
className: te(l, K == null ? void 0 : K.root, !J.open && J.exited && (K == null ? void 0 : K.hidden))
|
|
1573
|
+
}), [ke, De] = X("backdrop", {
|
|
1574
|
+
ref: r == null ? void 0 : r.ref,
|
|
1555
1575
|
elementType: s,
|
|
1556
|
-
externalForwardedProps:
|
|
1576
|
+
externalForwardedProps: ye,
|
|
1557
1577
|
shouldForwardComponentProp: !0,
|
|
1558
|
-
additionalProps:
|
|
1578
|
+
additionalProps: r,
|
|
1559
1579
|
getSlotProps: (P) => h({
|
|
1560
1580
|
...P,
|
|
1561
1581
|
onClick: (D) => {
|
|
1562
1582
|
P != null && P.onClick && P.onClick(D);
|
|
1563
1583
|
}
|
|
1564
1584
|
}),
|
|
1565
|
-
className:
|
|
1566
|
-
ownerState:
|
|
1585
|
+
className: te(r == null ? void 0 : r.className, K == null ? void 0 : K.backdrop),
|
|
1586
|
+
ownerState: J
|
|
1567
1587
|
});
|
|
1568
|
-
return !y && !k && (!
|
|
1588
|
+
return !y && !k && (!Y || F) ? null : /* @__PURE__ */ L.jsx(Ne, {
|
|
1569
1589
|
ref: U,
|
|
1570
1590
|
container: T,
|
|
1571
1591
|
disablePortal: g,
|
|
@@ -1573,18 +1593,18 @@ const xn = (t) => {
|
|
|
1573
1593
|
...Me,
|
|
1574
1594
|
children: [!f && s ? /* @__PURE__ */ L.jsx(ke, {
|
|
1575
1595
|
...De
|
|
1576
|
-
}) : null, /* @__PURE__ */ L.jsx(
|
|
1596
|
+
}) : null, /* @__PURE__ */ L.jsx(Oe, {
|
|
1577
1597
|
disableEnforceFocus: I,
|
|
1578
1598
|
disableAutoFocus: E,
|
|
1579
1599
|
disableRestoreFocus: w,
|
|
1580
1600
|
isEnabled: R,
|
|
1581
1601
|
open: k,
|
|
1582
|
-
children: /* @__PURE__ */ p.cloneElement(b,
|
|
1602
|
+
children: /* @__PURE__ */ p.cloneElement(b, Q)
|
|
1583
1603
|
})]
|
|
1584
1604
|
})
|
|
1585
1605
|
});
|
|
1586
1606
|
});
|
|
1587
|
-
process.env.NODE_ENV !== "production" && (
|
|
1607
|
+
process.env.NODE_ENV !== "production" && (bt.propTypes = {
|
|
1588
1608
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1589
1609
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1590
1610
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1596,9 +1616,6 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1596
1616
|
* @default styled(Backdrop, {
|
|
1597
1617
|
* name: 'MuiModal',
|
|
1598
1618
|
* slot: 'Backdrop',
|
|
1599
|
-
* overridesResolver: (props, styles) => {
|
|
1600
|
-
* return styles.backdrop;
|
|
1601
|
-
* },
|
|
1602
1619
|
* })({
|
|
1603
1620
|
* zIndex: -1,
|
|
1604
1621
|
* })
|
|
@@ -1612,7 +1629,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1612
1629
|
/**
|
|
1613
1630
|
* A single child content element.
|
|
1614
1631
|
*/
|
|
1615
|
-
children:
|
|
1632
|
+
children: ge.isRequired,
|
|
1616
1633
|
/**
|
|
1617
1634
|
* Override or extend the styles applied to the component.
|
|
1618
1635
|
*/
|
|
@@ -1664,7 +1681,7 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1664
1681
|
* By default, it uses the body of the top-level document object,
|
|
1665
1682
|
* so it's simply `document.body` most of the time.
|
|
1666
1683
|
*/
|
|
1667
|
-
container: e.oneOfType([
|
|
1684
|
+
container: e.oneOfType([Ee, e.func]),
|
|
1668
1685
|
/**
|
|
1669
1686
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
|
1670
1687
|
* replace it to the last focused element when it closes.
|
|
@@ -1758,30 +1775,30 @@ process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
|
1758
1775
|
*/
|
|
1759
1776
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
1760
1777
|
});
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1778
|
+
function yn(t) {
|
|
1779
|
+
return le("MuiPaper", t);
|
|
1763
1780
|
}
|
|
1764
|
-
|
|
1765
|
-
const
|
|
1781
|
+
pe("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"]);
|
|
1782
|
+
const vn = (t) => {
|
|
1766
1783
|
const {
|
|
1767
1784
|
square: n,
|
|
1768
|
-
elevation:
|
|
1785
|
+
elevation: o,
|
|
1769
1786
|
variant: i,
|
|
1770
1787
|
classes: s
|
|
1771
|
-
} = t,
|
|
1772
|
-
root: ["root", i, !n && "rounded", i === "elevation" && `elevation${
|
|
1788
|
+
} = t, r = {
|
|
1789
|
+
root: ["root", i, !n && "rounded", i === "elevation" && `elevation${o}`]
|
|
1773
1790
|
};
|
|
1774
|
-
return
|
|
1775
|
-
},
|
|
1791
|
+
return ue(r, yn, s);
|
|
1792
|
+
}, Tn = W("div", {
|
|
1776
1793
|
name: "MuiPaper",
|
|
1777
1794
|
slot: "Root",
|
|
1778
1795
|
overridesResolver: (t, n) => {
|
|
1779
1796
|
const {
|
|
1780
|
-
ownerState:
|
|
1797
|
+
ownerState: o
|
|
1781
1798
|
} = t;
|
|
1782
|
-
return [n.root, n[
|
|
1799
|
+
return [n.root, n[o.variant], !o.square && n.rounded, o.variant === "elevation" && n[`elevation${o.elevation}`]];
|
|
1783
1800
|
}
|
|
1784
|
-
})(
|
|
1801
|
+
})(it(({
|
|
1785
1802
|
theme: t
|
|
1786
1803
|
}) => ({
|
|
1787
1804
|
backgroundColor: (t.vars || t).palette.background.paper,
|
|
@@ -1810,13 +1827,13 @@ const Nn = (t) => {
|
|
|
1810
1827
|
backgroundImage: "var(--Paper-overlay)"
|
|
1811
1828
|
}
|
|
1812
1829
|
}]
|
|
1813
|
-
}))),
|
|
1830
|
+
}))), Et = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
1814
1831
|
var m;
|
|
1815
|
-
const i =
|
|
1832
|
+
const i = ce({
|
|
1816
1833
|
props: n,
|
|
1817
1834
|
name: "MuiPaper"
|
|
1818
|
-
}), s =
|
|
1819
|
-
className:
|
|
1835
|
+
}), s = _e(), {
|
|
1836
|
+
className: r,
|
|
1820
1837
|
component: a = "div",
|
|
1821
1838
|
elevation: l = 1,
|
|
1822
1839
|
square: c = !1,
|
|
@@ -1828,13 +1845,13 @@ const Nn = (t) => {
|
|
|
1828
1845
|
elevation: l,
|
|
1829
1846
|
square: c,
|
|
1830
1847
|
variant: b
|
|
1831
|
-
}, N =
|
|
1848
|
+
}, N = vn(v);
|
|
1832
1849
|
return process.env.NODE_ENV !== "production" && s.shadows[l] === void 0 && console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
1833
|
-
`)), /* @__PURE__ */ L.jsx(
|
|
1850
|
+
`)), /* @__PURE__ */ L.jsx(Tn, {
|
|
1834
1851
|
as: a,
|
|
1835
1852
|
ownerState: v,
|
|
1836
|
-
className:
|
|
1837
|
-
ref:
|
|
1853
|
+
className: te(N.root, r),
|
|
1854
|
+
ref: o,
|
|
1838
1855
|
...T,
|
|
1839
1856
|
style: {
|
|
1840
1857
|
...b === "elevation" && {
|
|
@@ -1843,14 +1860,14 @@ const Nn = (t) => {
|
|
|
1843
1860
|
"--Paper-overlay": (m = s.vars.overlays) == null ? void 0 : m[l]
|
|
1844
1861
|
},
|
|
1845
1862
|
...!s.vars && s.palette.mode === "dark" && {
|
|
1846
|
-
"--Paper-overlay": `linear-gradient(${
|
|
1863
|
+
"--Paper-overlay": `linear-gradient(${He("#fff", ze(l))}, ${He("#fff", ze(l))})`
|
|
1847
1864
|
}
|
|
1848
1865
|
},
|
|
1849
1866
|
...T.style
|
|
1850
1867
|
}
|
|
1851
1868
|
});
|
|
1852
1869
|
});
|
|
1853
|
-
process.env.NODE_ENV !== "production" && (
|
|
1870
|
+
process.env.NODE_ENV !== "production" && (Et.propTypes = {
|
|
1854
1871
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1855
1872
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1856
1873
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1877,12 +1894,12 @@ process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
|
1877
1894
|
* It accepts values between 0 and 24 inclusive.
|
|
1878
1895
|
* @default 1
|
|
1879
1896
|
*/
|
|
1880
|
-
elevation:
|
|
1897
|
+
elevation: we(ut, (t) => {
|
|
1881
1898
|
const {
|
|
1882
1899
|
elevation: n,
|
|
1883
|
-
variant:
|
|
1900
|
+
variant: o
|
|
1884
1901
|
} = t;
|
|
1885
|
-
return n > 0 &&
|
|
1902
|
+
return n > 0 && o === "outlined" ? new Error(`MUI: Combining \`elevation={${n}}\` with \`variant="${o}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null;
|
|
1886
1903
|
}),
|
|
1887
1904
|
/**
|
|
1888
1905
|
* If `true`, rounded corners are disabled.
|
|
@@ -1903,40 +1920,38 @@ process.env.NODE_ENV !== "production" && (vt.propTypes = {
|
|
|
1903
1920
|
*/
|
|
1904
1921
|
variant: e.oneOfType([e.oneOf(["elevation", "outlined"]), e.string])
|
|
1905
1922
|
});
|
|
1906
|
-
function
|
|
1907
|
-
return
|
|
1923
|
+
function xn(t) {
|
|
1924
|
+
return le("MuiPopover", t);
|
|
1908
1925
|
}
|
|
1909
|
-
|
|
1910
|
-
function
|
|
1911
|
-
let
|
|
1912
|
-
return typeof n == "number" ?
|
|
1926
|
+
pe("MuiPopover", ["root", "paper"]);
|
|
1927
|
+
function et(t, n) {
|
|
1928
|
+
let o = 0;
|
|
1929
|
+
return typeof n == "number" ? o = n : n === "center" ? o = t.height / 2 : n === "bottom" && (o = t.height), o;
|
|
1913
1930
|
}
|
|
1914
|
-
function
|
|
1915
|
-
let
|
|
1916
|
-
return typeof n == "number" ?
|
|
1931
|
+
function tt(t, n) {
|
|
1932
|
+
let o = 0;
|
|
1933
|
+
return typeof n == "number" ? o = n : n === "center" ? o = t.width / 2 : n === "right" && (o = t.width), o;
|
|
1917
1934
|
}
|
|
1918
|
-
function
|
|
1935
|
+
function nt(t) {
|
|
1919
1936
|
return [t.horizontal, t.vertical].map((n) => typeof n == "number" ? `${n}px` : n).join(" ");
|
|
1920
1937
|
}
|
|
1921
|
-
function
|
|
1938
|
+
function he(t) {
|
|
1922
1939
|
return typeof t == "function" ? t() : t;
|
|
1923
1940
|
}
|
|
1924
|
-
const
|
|
1941
|
+
const Pn = (t) => {
|
|
1925
1942
|
const {
|
|
1926
1943
|
classes: n
|
|
1927
1944
|
} = t;
|
|
1928
|
-
return
|
|
1945
|
+
return ue({
|
|
1929
1946
|
root: ["root"],
|
|
1930
1947
|
paper: ["paper"]
|
|
1931
|
-
},
|
|
1932
|
-
},
|
|
1948
|
+
}, xn, n);
|
|
1949
|
+
}, Rn = W(bt, {
|
|
1933
1950
|
name: "MuiPopover",
|
|
1934
|
-
slot: "Root"
|
|
1935
|
-
|
|
1936
|
-
})({}), Tt = z(vt, {
|
|
1951
|
+
slot: "Root"
|
|
1952
|
+
})({}), gt = W(Et, {
|
|
1937
1953
|
name: "MuiPopover",
|
|
1938
|
-
slot: "Paper"
|
|
1939
|
-
overridesResolver: (t, n) => n.paper
|
|
1954
|
+
slot: "Paper"
|
|
1940
1955
|
})({
|
|
1941
1956
|
position: "absolute",
|
|
1942
1957
|
overflowY: "auto",
|
|
@@ -1949,13 +1964,13 @@ const Cn = (t) => {
|
|
|
1949
1964
|
maxHeight: "calc(100% - 32px)",
|
|
1950
1965
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
1951
1966
|
outline: 0
|
|
1952
|
-
}),
|
|
1953
|
-
const i =
|
|
1967
|
+
}), yt = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
1968
|
+
const i = ce({
|
|
1954
1969
|
props: n,
|
|
1955
1970
|
name: "MuiPopover"
|
|
1956
1971
|
}), {
|
|
1957
1972
|
action: s,
|
|
1958
|
-
anchorEl:
|
|
1973
|
+
anchorEl: r,
|
|
1959
1974
|
anchorOrigin: a = {
|
|
1960
1975
|
vertical: "top",
|
|
1961
1976
|
horizontal: "left"
|
|
@@ -1993,64 +2008,64 @@ const Cn = (t) => {
|
|
|
1993
2008
|
TransitionComponent: u,
|
|
1994
2009
|
transitionDuration: f,
|
|
1995
2010
|
TransitionProps: y
|
|
1996
|
-
},
|
|
2011
|
+
}, $ = Pn(k), A = p.useCallback(() => {
|
|
1997
2012
|
if (c === "anchorPosition")
|
|
1998
2013
|
return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
|
|
1999
|
-
const P =
|
|
2014
|
+
const P = he(r), D = P && P.nodeType === 1 ? P : z(x.current).body, V = D.getBoundingClientRect();
|
|
2000
2015
|
if (process.env.NODE_ENV !== "production") {
|
|
2001
2016
|
const H = D.getBoundingClientRect();
|
|
2002
2017
|
process.env.NODE_ENV !== "test" && H.top === 0 && H.left === 0 && H.right === 0 && H.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
2003
2018
|
`));
|
|
2004
2019
|
}
|
|
2005
2020
|
return {
|
|
2006
|
-
top:
|
|
2007
|
-
left:
|
|
2021
|
+
top: V.top + et(V, a.vertical),
|
|
2022
|
+
left: V.left + tt(V, a.horizontal)
|
|
2008
2023
|
};
|
|
2009
|
-
}, [
|
|
2010
|
-
vertical:
|
|
2011
|
-
horizontal:
|
|
2024
|
+
}, [r, a.horizontal, a.vertical, l, c]), _ = p.useCallback((P) => ({
|
|
2025
|
+
vertical: et(P, w.vertical),
|
|
2026
|
+
horizontal: tt(P, w.horizontal)
|
|
2012
2027
|
}), [w.horizontal, w.vertical]), q = p.useCallback((P) => {
|
|
2013
2028
|
const D = {
|
|
2014
2029
|
width: P.offsetWidth,
|
|
2015
2030
|
height: P.offsetHeight
|
|
2016
|
-
},
|
|
2031
|
+
}, V = _(D);
|
|
2017
2032
|
if (c === "none")
|
|
2018
2033
|
return {
|
|
2019
2034
|
top: null,
|
|
2020
2035
|
left: null,
|
|
2021
|
-
transformOrigin:
|
|
2036
|
+
transformOrigin: nt(V)
|
|
2022
2037
|
};
|
|
2023
2038
|
const H = A();
|
|
2024
|
-
let
|
|
2025
|
-
const
|
|
2026
|
-
if (m !== null &&
|
|
2027
|
-
const B =
|
|
2028
|
-
|
|
2029
|
-
} else if (m !== null &&
|
|
2030
|
-
const B =
|
|
2031
|
-
|
|
2039
|
+
let re = H.top - V.vertical, ie = H.left - V.horizontal;
|
|
2040
|
+
const Ue = re + D.height, qe = ie + D.width, Ke = ne(he(r)), de = Ke.innerHeight - m, Be = Ke.innerWidth - m;
|
|
2041
|
+
if (m !== null && re < m) {
|
|
2042
|
+
const B = re - m;
|
|
2043
|
+
re -= B, V.vertical += B;
|
|
2044
|
+
} else if (m !== null && Ue > de) {
|
|
2045
|
+
const B = Ue - de;
|
|
2046
|
+
re -= B, V.vertical += B;
|
|
2032
2047
|
}
|
|
2033
|
-
if (process.env.NODE_ENV !== "production" && D.height >
|
|
2034
|
-
`)), m !== null &&
|
|
2035
|
-
const B =
|
|
2036
|
-
|
|
2037
|
-
} else if (
|
|
2038
|
-
const B =
|
|
2039
|
-
|
|
2048
|
+
if (process.env.NODE_ENV !== "production" && D.height > de && D.height && de && console.error(["MUI: The popover component is too tall.", `Some part of it can not be seen on the screen (${D.height - de}px).`, "Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
2049
|
+
`)), m !== null && ie < m) {
|
|
2050
|
+
const B = ie - m;
|
|
2051
|
+
ie -= B, V.horizontal += B;
|
|
2052
|
+
} else if (qe > Be) {
|
|
2053
|
+
const B = qe - Be;
|
|
2054
|
+
ie -= B, V.horizontal += B;
|
|
2040
2055
|
}
|
|
2041
2056
|
return {
|
|
2042
|
-
top: `${Math.round(
|
|
2043
|
-
left: `${Math.round(
|
|
2044
|
-
transformOrigin:
|
|
2057
|
+
top: `${Math.round(re)}px`,
|
|
2058
|
+
left: `${Math.round(ie)}px`,
|
|
2059
|
+
transformOrigin: nt(V)
|
|
2045
2060
|
};
|
|
2046
|
-
}, [
|
|
2061
|
+
}, [r, c, A, _, m]), [M, d] = p.useState(E), h = p.useCallback(() => {
|
|
2047
2062
|
const P = x.current;
|
|
2048
2063
|
if (!P)
|
|
2049
2064
|
return;
|
|
2050
2065
|
const D = q(P);
|
|
2051
2066
|
D.top !== null && P.style.setProperty("top", D.top), D.left !== null && (P.style.left = D.left), P.style.transformOrigin = D.transformOrigin, d(!0);
|
|
2052
2067
|
}, [q]);
|
|
2053
|
-
p.useEffect(() => (S && window.addEventListener("scroll", h), () => window.removeEventListener("scroll", h)), [
|
|
2068
|
+
p.useEffect(() => (S && window.addEventListener("scroll", h), () => window.removeEventListener("scroll", h)), [r, S, h]);
|
|
2054
2069
|
const j = () => {
|
|
2055
2070
|
h();
|
|
2056
2071
|
}, U = () => {
|
|
@@ -2065,13 +2080,13 @@ const Cn = (t) => {
|
|
|
2065
2080
|
} : null, [E, h]), p.useEffect(() => {
|
|
2066
2081
|
if (!E)
|
|
2067
2082
|
return;
|
|
2068
|
-
const P =
|
|
2083
|
+
const P = qt(() => {
|
|
2069
2084
|
h();
|
|
2070
|
-
}), D =
|
|
2085
|
+
}), D = ne(he(r));
|
|
2071
2086
|
return D.addEventListener("resize", P), () => {
|
|
2072
2087
|
P.clear(), D.removeEventListener("resize", P);
|
|
2073
2088
|
};
|
|
2074
|
-
}, [
|
|
2089
|
+
}, [r, E, h]);
|
|
2075
2090
|
let R = f;
|
|
2076
2091
|
const F = {
|
|
2077
2092
|
slots: {
|
|
@@ -2083,19 +2098,19 @@ const Cn = (t) => {
|
|
|
2083
2098
|
paper: I,
|
|
2084
2099
|
...g
|
|
2085
2100
|
}
|
|
2086
|
-
}, [
|
|
2087
|
-
elementType:
|
|
2101
|
+
}, [Y, J] = X("transition", {
|
|
2102
|
+
elementType: Re,
|
|
2088
2103
|
externalForwardedProps: F,
|
|
2089
2104
|
ownerState: k,
|
|
2090
2105
|
getSlotProps: (P) => ({
|
|
2091
2106
|
...P,
|
|
2092
|
-
onEntering: (D,
|
|
2107
|
+
onEntering: (D, V) => {
|
|
2093
2108
|
var H;
|
|
2094
|
-
(H = P.onEntering) == null || H.call(P, D,
|
|
2109
|
+
(H = P.onEntering) == null || H.call(P, D, V), j();
|
|
2095
2110
|
},
|
|
2096
2111
|
onExited: (D) => {
|
|
2097
|
-
var
|
|
2098
|
-
(
|
|
2112
|
+
var V;
|
|
2113
|
+
(V = P.onExited) == null || V.call(P, D), U();
|
|
2099
2114
|
}
|
|
2100
2115
|
}),
|
|
2101
2116
|
additionalProps: {
|
|
@@ -2103,14 +2118,14 @@ const Cn = (t) => {
|
|
|
2103
2118
|
in: E
|
|
2104
2119
|
}
|
|
2105
2120
|
});
|
|
2106
|
-
f === "auto" && !
|
|
2107
|
-
const K = v || (
|
|
2108
|
-
slots:
|
|
2121
|
+
f === "auto" && !Y.muiSupportAuto && (R = void 0);
|
|
2122
|
+
const K = v || (r ? z(he(r)).body : void 0), [Q, {
|
|
2123
|
+
slots: ye,
|
|
2109
2124
|
slotProps: Ce,
|
|
2110
2125
|
...Me
|
|
2111
|
-
}] =
|
|
2112
|
-
ref:
|
|
2113
|
-
elementType:
|
|
2126
|
+
}] = X("root", {
|
|
2127
|
+
ref: o,
|
|
2128
|
+
elementType: Rn,
|
|
2114
2129
|
externalForwardedProps: {
|
|
2115
2130
|
...F,
|
|
2116
2131
|
...O
|
|
@@ -2121,7 +2136,7 @@ const Cn = (t) => {
|
|
|
2121
2136
|
backdrop: C.backdrop
|
|
2122
2137
|
},
|
|
2123
2138
|
slotProps: {
|
|
2124
|
-
backdrop:
|
|
2139
|
+
backdrop: kt(typeof g.backdrop == "function" ? g.backdrop(k) : g.backdrop, {
|
|
2125
2140
|
invisible: !0
|
|
2126
2141
|
})
|
|
2127
2142
|
},
|
|
@@ -2129,11 +2144,11 @@ const Cn = (t) => {
|
|
|
2129
2144
|
open: E
|
|
2130
2145
|
},
|
|
2131
2146
|
ownerState: k,
|
|
2132
|
-
className:
|
|
2133
|
-
}), [ke, De] =
|
|
2147
|
+
className: te($.root, T)
|
|
2148
|
+
}), [ke, De] = X("paper", {
|
|
2134
2149
|
ref: x,
|
|
2135
|
-
className:
|
|
2136
|
-
elementType:
|
|
2150
|
+
className: $.paper,
|
|
2151
|
+
elementType: gt,
|
|
2137
2152
|
externalForwardedProps: F,
|
|
2138
2153
|
shouldForwardComponentProp: !0,
|
|
2139
2154
|
additionalProps: {
|
|
@@ -2144,15 +2159,15 @@ const Cn = (t) => {
|
|
|
2144
2159
|
},
|
|
2145
2160
|
ownerState: k
|
|
2146
2161
|
});
|
|
2147
|
-
return /* @__PURE__ */ L.jsx(
|
|
2162
|
+
return /* @__PURE__ */ L.jsx(Q, {
|
|
2148
2163
|
...Me,
|
|
2149
|
-
...!
|
|
2150
|
-
slots:
|
|
2164
|
+
...!Ht(Q) && {
|
|
2165
|
+
slots: ye,
|
|
2151
2166
|
slotProps: Ce,
|
|
2152
2167
|
disableScrollLock: S
|
|
2153
2168
|
},
|
|
2154
|
-
children: /* @__PURE__ */ L.jsx(
|
|
2155
|
-
...
|
|
2169
|
+
children: /* @__PURE__ */ L.jsx(Y, {
|
|
2170
|
+
...J,
|
|
2156
2171
|
timeout: R,
|
|
2157
2172
|
children: /* @__PURE__ */ L.jsx(ke, {
|
|
2158
2173
|
...De,
|
|
@@ -2161,7 +2176,7 @@ const Cn = (t) => {
|
|
|
2161
2176
|
})
|
|
2162
2177
|
});
|
|
2163
2178
|
});
|
|
2164
|
-
process.env.NODE_ENV !== "production" && (
|
|
2179
|
+
process.env.NODE_ENV !== "production" && (yt.propTypes = {
|
|
2165
2180
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2166
2181
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2167
2182
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2170,18 +2185,18 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2170
2185
|
* A ref for imperative actions.
|
|
2171
2186
|
* It currently only supports updatePosition() action.
|
|
2172
2187
|
*/
|
|
2173
|
-
action:
|
|
2188
|
+
action: Dt,
|
|
2174
2189
|
/**
|
|
2175
2190
|
* An HTML element, [PopoverVirtualElement](https://mui.com/material-ui/react-popover/#virtual-element),
|
|
2176
2191
|
* or a function that returns either.
|
|
2177
2192
|
* It's used to set the position of the popover.
|
|
2178
2193
|
*/
|
|
2179
|
-
anchorEl:
|
|
2194
|
+
anchorEl: we(e.oneOfType([Ee, e.func]), (t) => {
|
|
2180
2195
|
if (t.open && (!t.anchorReference || t.anchorReference === "anchorEl")) {
|
|
2181
|
-
const n =
|
|
2196
|
+
const n = he(t.anchorEl);
|
|
2182
2197
|
if (n && n.nodeType === 1) {
|
|
2183
|
-
const
|
|
2184
|
-
if (process.env.NODE_ENV !== "test" &&
|
|
2198
|
+
const o = n.getBoundingClientRect();
|
|
2199
|
+
if (process.env.NODE_ENV !== "test" && o.top === 0 && o.left === 0 && o.right === 0 && o.bottom === 0)
|
|
2185
2200
|
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
2186
2201
|
`));
|
|
2187
2202
|
} else
|
|
@@ -2259,7 +2274,7 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2259
2274
|
* By default, it uses the body of the anchorEl's top-level document object,
|
|
2260
2275
|
* so it's simply `document.body` most of the time.
|
|
2261
2276
|
*/
|
|
2262
|
-
container: e.oneOfType([
|
|
2277
|
+
container: e.oneOfType([Ee, e.func]),
|
|
2263
2278
|
/**
|
|
2264
2279
|
* Disable the scroll lock behavior.
|
|
2265
2280
|
* @default false
|
|
@@ -2269,7 +2284,7 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2269
2284
|
* The elevation of the popover.
|
|
2270
2285
|
* @default 8
|
|
2271
2286
|
*/
|
|
2272
|
-
elevation:
|
|
2287
|
+
elevation: ut,
|
|
2273
2288
|
/**
|
|
2274
2289
|
* Specifies how close to the edge of the window the popover can appear.
|
|
2275
2290
|
* If null, the popover will not be constrained by the window.
|
|
@@ -2294,7 +2309,7 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2294
2309
|
* @default {}
|
|
2295
2310
|
*/
|
|
2296
2311
|
PaperProps: e.shape({
|
|
2297
|
-
component:
|
|
2312
|
+
component: It
|
|
2298
2313
|
}),
|
|
2299
2314
|
/**
|
|
2300
2315
|
* The props used for each slot inside.
|
|
@@ -2360,50 +2375,50 @@ process.env.NODE_ENV !== "production" && (xt.propTypes = {
|
|
|
2360
2375
|
*/
|
|
2361
2376
|
TransitionProps: e.object
|
|
2362
2377
|
});
|
|
2363
|
-
function
|
|
2378
|
+
function On(t) {
|
|
2364
2379
|
var v;
|
|
2365
2380
|
const {
|
|
2366
2381
|
elementType: n,
|
|
2367
|
-
externalSlotProps:
|
|
2382
|
+
externalSlotProps: o,
|
|
2368
2383
|
ownerState: i,
|
|
2369
2384
|
skipResolvingSlotProps: s = !1,
|
|
2370
|
-
...
|
|
2371
|
-
} = t, a = s ? {} :
|
|
2385
|
+
...r
|
|
2386
|
+
} = t, a = s ? {} : jt(o, i), {
|
|
2372
2387
|
props: l,
|
|
2373
2388
|
internalRef: c
|
|
2374
|
-
} =
|
|
2375
|
-
...
|
|
2389
|
+
} = Ft({
|
|
2390
|
+
...r,
|
|
2376
2391
|
externalSlotProps: a
|
|
2377
|
-
}), b =
|
|
2378
|
-
return
|
|
2392
|
+
}), b = oe(c, a == null ? void 0 : a.ref, (v = t.additionalProps) == null ? void 0 : v.ref);
|
|
2393
|
+
return Lt(n, {
|
|
2379
2394
|
...l,
|
|
2380
2395
|
ref: b
|
|
2381
2396
|
}, i);
|
|
2382
2397
|
}
|
|
2383
|
-
const
|
|
2384
|
-
process.env.NODE_ENV !== "production" && (
|
|
2385
|
-
function
|
|
2386
|
-
return
|
|
2398
|
+
const vt = /* @__PURE__ */ p.createContext({});
|
|
2399
|
+
process.env.NODE_ENV !== "production" && (vt.displayName = "ListContext");
|
|
2400
|
+
function Nn(t) {
|
|
2401
|
+
return le("MuiList", t);
|
|
2387
2402
|
}
|
|
2388
|
-
|
|
2389
|
-
const
|
|
2403
|
+
pe("MuiList", ["root", "padding", "dense", "subheader"]);
|
|
2404
|
+
const wn = (t) => {
|
|
2390
2405
|
const {
|
|
2391
2406
|
classes: n,
|
|
2392
|
-
disablePadding:
|
|
2407
|
+
disablePadding: o,
|
|
2393
2408
|
dense: i,
|
|
2394
2409
|
subheader: s
|
|
2395
2410
|
} = t;
|
|
2396
|
-
return
|
|
2397
|
-
root: ["root", !
|
|
2398
|
-
},
|
|
2399
|
-
},
|
|
2411
|
+
return ue({
|
|
2412
|
+
root: ["root", !o && "padding", i && "dense", s && "subheader"]
|
|
2413
|
+
}, Nn, n);
|
|
2414
|
+
}, Sn = W("ul", {
|
|
2400
2415
|
name: "MuiList",
|
|
2401
2416
|
slot: "Root",
|
|
2402
2417
|
overridesResolver: (t, n) => {
|
|
2403
2418
|
const {
|
|
2404
|
-
ownerState:
|
|
2419
|
+
ownerState: o
|
|
2405
2420
|
} = t;
|
|
2406
|
-
return [n.root, !
|
|
2421
|
+
return [n.root, !o.disablePadding && n.padding, o.dense && n.dense, o.subheader && n.subheader];
|
|
2407
2422
|
}
|
|
2408
2423
|
})({
|
|
2409
2424
|
listStyle: "none",
|
|
@@ -2426,13 +2441,13 @@ const In = (t) => {
|
|
|
2426
2441
|
paddingTop: 0
|
|
2427
2442
|
}
|
|
2428
2443
|
}]
|
|
2429
|
-
}),
|
|
2430
|
-
const i =
|
|
2444
|
+
}), Tt = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
2445
|
+
const i = ce({
|
|
2431
2446
|
props: n,
|
|
2432
2447
|
name: "MuiList"
|
|
2433
2448
|
}), {
|
|
2434
2449
|
children: s,
|
|
2435
|
-
className:
|
|
2450
|
+
className: r,
|
|
2436
2451
|
component: a = "ul",
|
|
2437
2452
|
dense: l = !1,
|
|
2438
2453
|
disablePadding: c = !1,
|
|
@@ -2445,20 +2460,20 @@ const In = (t) => {
|
|
|
2445
2460
|
component: a,
|
|
2446
2461
|
dense: l,
|
|
2447
2462
|
disablePadding: c
|
|
2448
|
-
}, m =
|
|
2449
|
-
return /* @__PURE__ */ L.jsx(
|
|
2463
|
+
}, m = wn(N);
|
|
2464
|
+
return /* @__PURE__ */ L.jsx(vt.Provider, {
|
|
2450
2465
|
value: v,
|
|
2451
|
-
children: /* @__PURE__ */ L.jsxs(
|
|
2466
|
+
children: /* @__PURE__ */ L.jsxs(Sn, {
|
|
2452
2467
|
as: a,
|
|
2453
|
-
className:
|
|
2454
|
-
ref:
|
|
2468
|
+
className: te(m.root, r),
|
|
2469
|
+
ref: o,
|
|
2455
2470
|
ownerState: N,
|
|
2456
2471
|
...T,
|
|
2457
2472
|
children: [b, s]
|
|
2458
2473
|
})
|
|
2459
2474
|
});
|
|
2460
2475
|
});
|
|
2461
|
-
process.env.NODE_ENV !== "production" && (
|
|
2476
|
+
process.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
2462
2477
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2463
2478
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2464
2479
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2501,24 +2516,20 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
2501
2516
|
*/
|
|
2502
2517
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
2503
2518
|
});
|
|
2504
|
-
function
|
|
2505
|
-
|
|
2506
|
-
return t.innerWidth - n;
|
|
2507
|
-
}
|
|
2508
|
-
function Fe(t, n, r) {
|
|
2509
|
-
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : r ? null : t.firstChild;
|
|
2519
|
+
function Fe(t, n, o) {
|
|
2520
|
+
return t === n ? t.firstChild : n && n.nextElementSibling ? n.nextElementSibling : o ? null : t.firstChild;
|
|
2510
2521
|
}
|
|
2511
|
-
function
|
|
2512
|
-
return t === n ?
|
|
2522
|
+
function ot(t, n, o) {
|
|
2523
|
+
return t === n ? o ? t.firstChild : t.lastChild : n && n.previousElementSibling ? n.previousElementSibling : o ? null : t.lastChild;
|
|
2513
2524
|
}
|
|
2514
|
-
function
|
|
2525
|
+
function xt(t, n) {
|
|
2515
2526
|
if (n === void 0)
|
|
2516
2527
|
return !0;
|
|
2517
|
-
let
|
|
2518
|
-
return
|
|
2528
|
+
let o = t.innerText;
|
|
2529
|
+
return o === void 0 && (o = t.textContent), o = o.trim().toLowerCase(), o.length === 0 ? !1 : n.repeating ? o[0] === n.keys[0] : o.startsWith(n.keys.join(""));
|
|
2519
2530
|
}
|
|
2520
|
-
function
|
|
2521
|
-
let a = !1, l = s(t, n, n ?
|
|
2531
|
+
function fe(t, n, o, i, s, r) {
|
|
2532
|
+
let a = !1, l = s(t, n, n ? o : !1);
|
|
2522
2533
|
for (; l; ) {
|
|
2523
2534
|
if (l === t.firstChild) {
|
|
2524
2535
|
if (a)
|
|
@@ -2526,20 +2537,20 @@ function pe(t, n, r, i, s, o) {
|
|
|
2526
2537
|
a = !0;
|
|
2527
2538
|
}
|
|
2528
2539
|
const c = i ? !1 : l.disabled || l.getAttribute("aria-disabled") === "true";
|
|
2529
|
-
if (!l.hasAttribute("tabindex") || !
|
|
2530
|
-
l = s(t, l,
|
|
2540
|
+
if (!l.hasAttribute("tabindex") || !xt(l, r) || c)
|
|
2541
|
+
l = s(t, l, o);
|
|
2531
2542
|
else
|
|
2532
2543
|
return l.focus(), !0;
|
|
2533
2544
|
}
|
|
2534
2545
|
return !1;
|
|
2535
2546
|
}
|
|
2536
|
-
const
|
|
2547
|
+
const Pt = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
2537
2548
|
const {
|
|
2538
2549
|
// private
|
|
2539
2550
|
// eslint-disable-next-line react/prop-types
|
|
2540
2551
|
actions: i,
|
|
2541
2552
|
autoFocus: s = !1,
|
|
2542
|
-
autoFocusItem:
|
|
2553
|
+
autoFocusItem: r = !1,
|
|
2543
2554
|
children: a,
|
|
2544
2555
|
className: l,
|
|
2545
2556
|
disabledItemsFocusable: c = !1,
|
|
@@ -2553,7 +2564,7 @@ const Nt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2553
2564
|
previousKeyMatched: !0,
|
|
2554
2565
|
lastTime: null
|
|
2555
2566
|
});
|
|
2556
|
-
|
|
2567
|
+
Le(() => {
|
|
2557
2568
|
s && m.current.focus();
|
|
2558
2569
|
}, [s]), p.useImperativeHandle(i, () => ({
|
|
2559
2570
|
adjustStyleForScrollbar: (u, {
|
|
@@ -2561,7 +2572,7 @@ const Nt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2561
2572
|
}) => {
|
|
2562
2573
|
const y = !m.current.style.width;
|
|
2563
2574
|
if (u.clientHeight < m.current.clientHeight && y) {
|
|
2564
|
-
const S = `${
|
|
2575
|
+
const S = `${ft(ne(u))}px`;
|
|
2565
2576
|
m.current.style[f === "rtl" ? "paddingLeft" : "paddingRight"] = S, m.current.style.width = `calc(100% + ${S})`;
|
|
2566
2577
|
}
|
|
2567
2578
|
return m.current;
|
|
@@ -2573,40 +2584,40 @@ const Nt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2573
2584
|
T && T(u);
|
|
2574
2585
|
return;
|
|
2575
2586
|
}
|
|
2576
|
-
const O =
|
|
2587
|
+
const O = z(f).activeElement;
|
|
2577
2588
|
if (y === "ArrowDown")
|
|
2578
|
-
u.preventDefault(),
|
|
2589
|
+
u.preventDefault(), fe(f, O, b, c, Fe);
|
|
2579
2590
|
else if (y === "ArrowUp")
|
|
2580
|
-
u.preventDefault(),
|
|
2591
|
+
u.preventDefault(), fe(f, O, b, c, ot);
|
|
2581
2592
|
else if (y === "Home")
|
|
2582
|
-
u.preventDefault(),
|
|
2593
|
+
u.preventDefault(), fe(f, null, b, c, Fe);
|
|
2583
2594
|
else if (y === "End")
|
|
2584
|
-
u.preventDefault(),
|
|
2595
|
+
u.preventDefault(), fe(f, null, b, c, ot);
|
|
2585
2596
|
else if (y.length === 1) {
|
|
2586
|
-
const x = E.current, k = y.toLowerCase(),
|
|
2587
|
-
x.keys.length > 0 && (
|
|
2588
|
-
const A = O && !x.repeating &&
|
|
2589
|
-
x.previousKeyMatched && (A ||
|
|
2597
|
+
const x = E.current, k = y.toLowerCase(), $ = performance.now();
|
|
2598
|
+
x.keys.length > 0 && ($ - x.lastTime > 500 ? (x.keys = [], x.repeating = !0, x.previousKeyMatched = !0) : x.repeating && k !== x.keys[0] && (x.repeating = !1)), x.lastTime = $, x.keys.push(k);
|
|
2599
|
+
const A = O && !x.repeating && xt(O, x);
|
|
2600
|
+
x.previousKeyMatched && (A || fe(f, O, !1, c, Fe, x)) ? u.preventDefault() : x.previousKeyMatched = !1;
|
|
2590
2601
|
}
|
|
2591
2602
|
T && T(u);
|
|
2592
|
-
}, C =
|
|
2603
|
+
}, C = oe(m, o);
|
|
2593
2604
|
let g = -1;
|
|
2594
2605
|
p.Children.forEach(a, (u, f) => {
|
|
2595
2606
|
if (!/* @__PURE__ */ p.isValidElement(u)) {
|
|
2596
2607
|
g === f && (g += 1, g >= a.length && (g = -1));
|
|
2597
2608
|
return;
|
|
2598
2609
|
}
|
|
2599
|
-
process.env.NODE_ENV !== "production" &&
|
|
2610
|
+
process.env.NODE_ENV !== "production" && rt.isFragment(u) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2600
2611
|
`)), u.props.disabled || (v === "selectedMenu" && u.props.selected || g === -1) && (g = f), g === f && (u.props.disabled || u.props.muiSkipListHighlight || u.type.muiSkipListHighlight) && (g += 1, g >= a.length && (g = -1));
|
|
2601
2612
|
});
|
|
2602
2613
|
const w = p.Children.map(a, (u, f) => {
|
|
2603
2614
|
if (f === g) {
|
|
2604
2615
|
const y = {};
|
|
2605
|
-
return
|
|
2616
|
+
return r && (y.autoFocus = !0), u.props.tabIndex === void 0 && v === "selectedMenu" && (y.tabIndex = 0), /* @__PURE__ */ p.cloneElement(u, y);
|
|
2606
2617
|
}
|
|
2607
2618
|
return u;
|
|
2608
2619
|
});
|
|
2609
|
-
return /* @__PURE__ */ L.jsx(
|
|
2620
|
+
return /* @__PURE__ */ L.jsx(Tt, {
|
|
2610
2621
|
role: "menu",
|
|
2611
2622
|
ref: C,
|
|
2612
2623
|
className: l,
|
|
@@ -2616,7 +2627,7 @@ const Nt = /* @__PURE__ */ p.forwardRef(function(n, r) {
|
|
|
2616
2627
|
children: w
|
|
2617
2628
|
});
|
|
2618
2629
|
});
|
|
2619
|
-
process.env.NODE_ENV !== "production" && (
|
|
2630
|
+
process.env.NODE_ENV !== "production" && (Pt.propTypes = {
|
|
2620
2631
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2621
2632
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2622
2633
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2661,34 +2672,32 @@ process.env.NODE_ENV !== "production" && (Nt.propTypes = {
|
|
|
2661
2672
|
*/
|
|
2662
2673
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2663
2674
|
});
|
|
2664
|
-
function
|
|
2665
|
-
return
|
|
2675
|
+
function Cn(t) {
|
|
2676
|
+
return le("MuiMenu", t);
|
|
2666
2677
|
}
|
|
2667
|
-
|
|
2668
|
-
const
|
|
2678
|
+
pe("MuiMenu", ["root", "paper", "list"]);
|
|
2679
|
+
const Mn = {
|
|
2669
2680
|
vertical: "top",
|
|
2670
2681
|
horizontal: "right"
|
|
2671
|
-
},
|
|
2682
|
+
}, kn = {
|
|
2672
2683
|
vertical: "top",
|
|
2673
2684
|
horizontal: "left"
|
|
2674
|
-
},
|
|
2685
|
+
}, Dn = (t) => {
|
|
2675
2686
|
const {
|
|
2676
2687
|
classes: n
|
|
2677
2688
|
} = t;
|
|
2678
|
-
return
|
|
2689
|
+
return ue({
|
|
2679
2690
|
root: ["root"],
|
|
2680
2691
|
paper: ["paper"],
|
|
2681
2692
|
list: ["list"]
|
|
2682
|
-
},
|
|
2683
|
-
},
|
|
2684
|
-
shouldForwardProp: (t) =>
|
|
2693
|
+
}, Cn, n);
|
|
2694
|
+
}, In = W(yt, {
|
|
2695
|
+
shouldForwardProp: (t) => Nt(t) || t === "classes",
|
|
2685
2696
|
name: "MuiMenu",
|
|
2686
|
-
slot: "Root"
|
|
2687
|
-
|
|
2688
|
-
})({}), Un = z(Tt, {
|
|
2697
|
+
slot: "Root"
|
|
2698
|
+
})({}), jn = W(gt, {
|
|
2689
2699
|
name: "MuiMenu",
|
|
2690
|
-
slot: "Paper"
|
|
2691
|
-
overridesResolver: (t, n) => n.paper
|
|
2700
|
+
slot: "Paper"
|
|
2692
2701
|
})({
|
|
2693
2702
|
// specZ: The maximum height of a simple menu should be one or more rows less than the view
|
|
2694
2703
|
// height. This ensures a tappable area outside of the simple menu with which to dismiss
|
|
@@ -2696,20 +2705,19 @@ const An = {
|
|
|
2696
2705
|
maxHeight: "calc(100% - 96px)",
|
|
2697
2706
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
2698
2707
|
WebkitOverflowScrolling: "touch"
|
|
2699
|
-
}),
|
|
2708
|
+
}), Fn = W(Pt, {
|
|
2700
2709
|
name: "MuiMenu",
|
|
2701
|
-
slot: "List"
|
|
2702
|
-
overridesResolver: (t, n) => n.list
|
|
2710
|
+
slot: "List"
|
|
2703
2711
|
})({
|
|
2704
2712
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
2705
2713
|
outline: 0
|
|
2706
|
-
}),
|
|
2707
|
-
const i =
|
|
2714
|
+
}), Ln = /* @__PURE__ */ p.forwardRef(function(n, o) {
|
|
2715
|
+
const i = ce({
|
|
2708
2716
|
props: n,
|
|
2709
2717
|
name: "MuiMenu"
|
|
2710
2718
|
}), {
|
|
2711
2719
|
autoFocus: s = !0,
|
|
2712
|
-
children:
|
|
2720
|
+
children: r,
|
|
2713
2721
|
className: a,
|
|
2714
2722
|
disableAutoFocusItem: l = !1,
|
|
2715
2723
|
MenuListProps: c = {},
|
|
@@ -2726,7 +2734,7 @@ const An = {
|
|
|
2726
2734
|
slots: g = {},
|
|
2727
2735
|
slotProps: w = {},
|
|
2728
2736
|
...u
|
|
2729
|
-
} = i, f =
|
|
2737
|
+
} = i, f = Ut(), y = {
|
|
2730
2738
|
...i,
|
|
2731
2739
|
autoFocus: s,
|
|
2732
2740
|
disableAutoFocusItem: l,
|
|
@@ -2736,19 +2744,19 @@ const An = {
|
|
|
2736
2744
|
transitionDuration: m,
|
|
2737
2745
|
TransitionProps: I,
|
|
2738
2746
|
variant: C
|
|
2739
|
-
}, S =
|
|
2747
|
+
}, S = Dn(y), O = s && !l && T, x = p.useRef(null), k = (R, F) => {
|
|
2740
2748
|
x.current && x.current.adjustStyleForScrollbar(R, {
|
|
2741
2749
|
direction: f ? "rtl" : "ltr"
|
|
2742
2750
|
}), E && E(R, F);
|
|
2743
|
-
},
|
|
2751
|
+
}, $ = (R) => {
|
|
2744
2752
|
R.key === "Tab" && (R.preventDefault(), b && b(R, "tabKeyDown"));
|
|
2745
2753
|
};
|
|
2746
2754
|
let A = -1;
|
|
2747
|
-
p.Children.map(
|
|
2748
|
-
/* @__PURE__ */ p.isValidElement(R) && (process.env.NODE_ENV !== "production" &&
|
|
2755
|
+
p.Children.map(r, (R, F) => {
|
|
2756
|
+
/* @__PURE__ */ p.isValidElement(R) && (process.env.NODE_ENV !== "production" && rt.isFragment(R) && console.error(["MUI: The Menu component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
|
|
2749
2757
|
`)), R.props.disabled || (C === "selectedMenu" && R.props.selected || A === -1) && (A = F));
|
|
2750
2758
|
});
|
|
2751
|
-
const
|
|
2759
|
+
const _ = {
|
|
2752
2760
|
slots: g,
|
|
2753
2761
|
slotProps: {
|
|
2754
2762
|
list: c,
|
|
@@ -2756,38 +2764,38 @@ const An = {
|
|
|
2756
2764
|
paper: v,
|
|
2757
2765
|
...w
|
|
2758
2766
|
}
|
|
2759
|
-
}, q =
|
|
2767
|
+
}, q = On({
|
|
2760
2768
|
elementType: g.root,
|
|
2761
2769
|
externalSlotProps: w.root,
|
|
2762
2770
|
ownerState: y,
|
|
2763
2771
|
className: [S.root, a]
|
|
2764
|
-
}), [M, d] =
|
|
2772
|
+
}), [M, d] = X("paper", {
|
|
2765
2773
|
className: S.paper,
|
|
2766
|
-
elementType:
|
|
2767
|
-
externalForwardedProps:
|
|
2774
|
+
elementType: jn,
|
|
2775
|
+
externalForwardedProps: _,
|
|
2768
2776
|
shouldForwardComponentProp: !0,
|
|
2769
2777
|
ownerState: y
|
|
2770
|
-
}), [h, j] =
|
|
2771
|
-
className:
|
|
2772
|
-
elementType:
|
|
2778
|
+
}), [h, j] = X("list", {
|
|
2779
|
+
className: te(S.list, c.className),
|
|
2780
|
+
elementType: Fn,
|
|
2773
2781
|
shouldForwardComponentProp: !0,
|
|
2774
|
-
externalForwardedProps:
|
|
2782
|
+
externalForwardedProps: _,
|
|
2775
2783
|
getSlotProps: (R) => ({
|
|
2776
2784
|
...R,
|
|
2777
2785
|
onKeyDown: (F) => {
|
|
2778
|
-
var
|
|
2779
|
-
|
|
2786
|
+
var Y;
|
|
2787
|
+
$(F), (Y = R.onKeyDown) == null || Y.call(R, F);
|
|
2780
2788
|
}
|
|
2781
2789
|
}),
|
|
2782
2790
|
ownerState: y
|
|
2783
|
-
}), U = typeof
|
|
2784
|
-
return /* @__PURE__ */ L.jsx(
|
|
2791
|
+
}), U = typeof _.slotProps.transition == "function" ? _.slotProps.transition(y) : _.slotProps.transition;
|
|
2792
|
+
return /* @__PURE__ */ L.jsx(In, {
|
|
2785
2793
|
onClose: b,
|
|
2786
2794
|
anchorOrigin: {
|
|
2787
2795
|
vertical: "bottom",
|
|
2788
2796
|
horizontal: f ? "right" : "left"
|
|
2789
2797
|
},
|
|
2790
|
-
transformOrigin: f ?
|
|
2798
|
+
transformOrigin: f ? Mn : kn,
|
|
2791
2799
|
slots: {
|
|
2792
2800
|
root: g.root,
|
|
2793
2801
|
paper: M,
|
|
@@ -2810,7 +2818,7 @@ const An = {
|
|
|
2810
2818
|
}
|
|
2811
2819
|
},
|
|
2812
2820
|
open: T,
|
|
2813
|
-
ref:
|
|
2821
|
+
ref: o,
|
|
2814
2822
|
transitionDuration: m,
|
|
2815
2823
|
ownerState: y,
|
|
2816
2824
|
...u,
|
|
@@ -2821,11 +2829,11 @@ const An = {
|
|
|
2821
2829
|
autoFocusItem: O,
|
|
2822
2830
|
variant: C,
|
|
2823
2831
|
...j,
|
|
2824
|
-
children:
|
|
2832
|
+
children: r
|
|
2825
2833
|
})
|
|
2826
2834
|
});
|
|
2827
2835
|
});
|
|
2828
|
-
process.env.NODE_ENV !== "production" && (
|
|
2836
|
+
process.env.NODE_ENV !== "production" && (Ln.propTypes = {
|
|
2829
2837
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2830
2838
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2831
2839
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2834,7 +2842,7 @@ process.env.NODE_ENV !== "production" && (Kn.propTypes = {
|
|
|
2834
2842
|
* An HTML element, or a function that returns one.
|
|
2835
2843
|
* It's used to set the position of the menu.
|
|
2836
2844
|
*/
|
|
2837
|
-
anchorEl: e.oneOfType([
|
|
2845
|
+
anchorEl: e.oneOfType([Ee, e.func]),
|
|
2838
2846
|
/**
|
|
2839
2847
|
* If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
|
|
2840
2848
|
* children are not focusable. If you set this prop to `false` focus will be placed
|
|
@@ -2937,10 +2945,12 @@ process.env.NODE_ENV !== "production" && (Kn.propTypes = {
|
|
|
2937
2945
|
variant: e.oneOf(["menu", "selectedMenu"])
|
|
2938
2946
|
});
|
|
2939
2947
|
export {
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2948
|
+
vt as L,
|
|
2949
|
+
Ln as M,
|
|
2950
|
+
yt as P,
|
|
2951
|
+
z as a,
|
|
2952
|
+
qt as d,
|
|
2953
|
+
Se as g,
|
|
2954
|
+
Ht as i,
|
|
2955
|
+
ne as o
|
|
2946
2956
|
};
|