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