@cfx-dev/ui-components 0.0.6 → 0.0.8
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/{Combination-AG9vHdSx.js → Combination-Dj-a6dCZ.js} +546 -562
- package/dist/assets/global.css +1 -1
- package/dist/assets/themes.css +1 -1
- package/dist/components/Flyout/Flyout.js +1 -1
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +93 -109
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Select/Select.js +271 -280
- package/dist/extends-Dk_bSU3E.js +13 -0
- package/dist/inheritsLoose-A8WKSWDx.js +11 -0
- package/dist/styles-scss/assets/images/bg2-blur.png +0 -0
- package/dist/styles-scss/assets/images/bgpat.png +0 -0
- package/dist/styles-scss/assets/images/checkered_dark.svg +7 -0
- package/dist/styles-scss/assets/images/checkered_light.svg +7 -0
- package/package.json +2 -11
|
@@ -1,30 +1,22 @@
|
|
|
1
|
+
import { _ as Fe } from "./extends-Dk_bSU3E.js";
|
|
1
2
|
import * as D from "react";
|
|
2
|
-
import
|
|
3
|
-
import { g as
|
|
4
|
-
import { a as Ne, c as
|
|
3
|
+
import jr, { createContext as $r, PureComponent as Lr } from "react";
|
|
4
|
+
import { g as Wr } from "./index-C75OpfGQ.js";
|
|
5
|
+
import { a as Ne, c as Ur, u as qr } from "./medium-Dc7QRuE0.js";
|
|
6
|
+
import { _ as Br } from "./inheritsLoose-A8WKSWDx.js";
|
|
5
7
|
function Yr(e, r) {
|
|
6
8
|
if (e == null)
|
|
7
9
|
return {};
|
|
8
|
-
var
|
|
9
|
-
for (var
|
|
10
|
-
if ({}.hasOwnProperty.call(e,
|
|
11
|
-
if (r.indexOf(
|
|
10
|
+
var n = {};
|
|
11
|
+
for (var t in e)
|
|
12
|
+
if ({}.hasOwnProperty.call(e, t)) {
|
|
13
|
+
if (r.indexOf(t) >= 0)
|
|
12
14
|
continue;
|
|
13
|
-
t
|
|
15
|
+
n[t] = e[t];
|
|
14
16
|
}
|
|
15
|
-
return
|
|
17
|
+
return n;
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
return ve = Object.assign ? Object.assign.bind() : function(e) {
|
|
19
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
20
|
-
var t = arguments[r];
|
|
21
|
-
for (var n in t)
|
|
22
|
-
({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
23
|
-
}
|
|
24
|
-
return e;
|
|
25
|
-
}, ve.apply(null, arguments);
|
|
26
|
-
}
|
|
27
|
-
var Ae = { exports: {} }, he = { exports: {} }, C = {};
|
|
19
|
+
var Ae = { exports: {} }, be = { exports: {} }, C = {};
|
|
28
20
|
/** @license React v16.13.1
|
|
29
21
|
* react-is.production.min.js
|
|
30
22
|
*
|
|
@@ -33,12 +25,12 @@ var Ae = { exports: {} }, he = { exports: {} }, C = {};
|
|
|
33
25
|
* This source code is licensed under the MIT license found in the
|
|
34
26
|
* LICENSE file in the root directory of this source tree.
|
|
35
27
|
*/
|
|
36
|
-
var
|
|
28
|
+
var Ke;
|
|
37
29
|
function Gr() {
|
|
38
|
-
if (
|
|
30
|
+
if (Ke)
|
|
39
31
|
return C;
|
|
40
|
-
|
|
41
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103,
|
|
32
|
+
Ke = 1;
|
|
33
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
42
34
|
function I(u) {
|
|
43
35
|
if (typeof u == "object" && u !== null) {
|
|
44
36
|
var q = u.$$typeof;
|
|
@@ -47,7 +39,7 @@ function Gr() {
|
|
|
47
39
|
switch (u = u.type, u) {
|
|
48
40
|
case b:
|
|
49
41
|
case l:
|
|
50
|
-
case
|
|
42
|
+
case t:
|
|
51
43
|
case a:
|
|
52
44
|
case o:
|
|
53
45
|
case v:
|
|
@@ -57,24 +49,24 @@ function Gr() {
|
|
|
57
49
|
case s:
|
|
58
50
|
case p:
|
|
59
51
|
case h:
|
|
60
|
-
case
|
|
52
|
+
case g:
|
|
61
53
|
case f:
|
|
62
54
|
return u;
|
|
63
55
|
default:
|
|
64
56
|
return q;
|
|
65
57
|
}
|
|
66
58
|
}
|
|
67
|
-
case
|
|
59
|
+
case n:
|
|
68
60
|
return q;
|
|
69
61
|
}
|
|
70
62
|
}
|
|
71
63
|
}
|
|
72
|
-
function
|
|
64
|
+
function N(u) {
|
|
73
65
|
return I(u) === l;
|
|
74
66
|
}
|
|
75
|
-
return C.AsyncMode = b, C.ConcurrentMode = l, C.ContextConsumer = s, C.ContextProvider = f, C.Element = r, C.ForwardRef = p, C.Fragment =
|
|
76
|
-
return
|
|
77
|
-
}, C.isConcurrentMode =
|
|
67
|
+
return C.AsyncMode = b, C.ConcurrentMode = l, C.ContextConsumer = s, C.ContextProvider = f, C.Element = r, C.ForwardRef = p, C.Fragment = t, C.Lazy = h, C.Memo = g, C.Portal = n, C.Profiler = a, C.StrictMode = o, C.Suspense = v, C.isAsyncMode = function(u) {
|
|
68
|
+
return N(u) || I(u) === b;
|
|
69
|
+
}, C.isConcurrentMode = N, C.isContextConsumer = function(u) {
|
|
78
70
|
return I(u) === s;
|
|
79
71
|
}, C.isContextProvider = function(u) {
|
|
80
72
|
return I(u) === f;
|
|
@@ -83,13 +75,13 @@ function Gr() {
|
|
|
83
75
|
}, C.isForwardRef = function(u) {
|
|
84
76
|
return I(u) === p;
|
|
85
77
|
}, C.isFragment = function(u) {
|
|
86
|
-
return I(u) ===
|
|
78
|
+
return I(u) === t;
|
|
87
79
|
}, C.isLazy = function(u) {
|
|
88
80
|
return I(u) === h;
|
|
89
81
|
}, C.isMemo = function(u) {
|
|
90
|
-
return I(u) ===
|
|
82
|
+
return I(u) === g;
|
|
91
83
|
}, C.isPortal = function(u) {
|
|
92
|
-
return I(u) ===
|
|
84
|
+
return I(u) === n;
|
|
93
85
|
}, C.isProfiler = function(u) {
|
|
94
86
|
return I(u) === a;
|
|
95
87
|
}, C.isStrictMode = function(u) {
|
|
@@ -97,7 +89,7 @@ function Gr() {
|
|
|
97
89
|
}, C.isSuspense = function(u) {
|
|
98
90
|
return I(u) === v;
|
|
99
91
|
}, C.isValidElementType = function(u) {
|
|
100
|
-
return typeof u == "string" || typeof u == "function" || u ===
|
|
92
|
+
return typeof u == "string" || typeof u == "function" || u === t || u === l || u === a || u === o || u === v || u === m || typeof u == "object" && u !== null && (u.$$typeof === h || u.$$typeof === g || u.$$typeof === f || u.$$typeof === s || u.$$typeof === p || u.$$typeof === A || u.$$typeof === k || u.$$typeof === j || u.$$typeof === y);
|
|
101
93
|
}, C.typeOf = I, C;
|
|
102
94
|
}
|
|
103
95
|
var F = {};
|
|
@@ -109,15 +101,15 @@ var F = {};
|
|
|
109
101
|
* This source code is licensed under the MIT license found in the
|
|
110
102
|
* LICENSE file in the root directory of this source tree.
|
|
111
103
|
*/
|
|
112
|
-
var
|
|
104
|
+
var Xe;
|
|
113
105
|
function Hr() {
|
|
114
|
-
return
|
|
115
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103,
|
|
106
|
+
return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
107
|
+
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, b = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, A = e ? Symbol.for("react.fundamental") : 60117, k = e ? Symbol.for("react.responder") : 60118, j = e ? Symbol.for("react.scope") : 60119;
|
|
116
108
|
function I(c) {
|
|
117
109
|
return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
118
|
-
c ===
|
|
110
|
+
c === t || c === l || c === a || c === o || c === v || c === m || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === g || c.$$typeof === f || c.$$typeof === s || c.$$typeof === p || c.$$typeof === A || c.$$typeof === k || c.$$typeof === j || c.$$typeof === y);
|
|
119
111
|
}
|
|
120
|
-
function
|
|
112
|
+
function N(c) {
|
|
121
113
|
if (typeof c == "object" && c !== null) {
|
|
122
114
|
var W = c.$$typeof;
|
|
123
115
|
switch (W) {
|
|
@@ -126,88 +118,88 @@ function Hr() {
|
|
|
126
118
|
switch (re) {
|
|
127
119
|
case b:
|
|
128
120
|
case l:
|
|
129
|
-
case
|
|
121
|
+
case t:
|
|
130
122
|
case a:
|
|
131
123
|
case o:
|
|
132
124
|
case v:
|
|
133
125
|
return re;
|
|
134
126
|
default:
|
|
135
|
-
var
|
|
136
|
-
switch (
|
|
127
|
+
var me = re && re.$$typeof;
|
|
128
|
+
switch (me) {
|
|
137
129
|
case s:
|
|
138
130
|
case p:
|
|
139
131
|
case h:
|
|
140
|
-
case
|
|
132
|
+
case g:
|
|
141
133
|
case f:
|
|
142
|
-
return
|
|
134
|
+
return me;
|
|
143
135
|
default:
|
|
144
136
|
return W;
|
|
145
137
|
}
|
|
146
138
|
}
|
|
147
|
-
case
|
|
139
|
+
case n:
|
|
148
140
|
return W;
|
|
149
141
|
}
|
|
150
142
|
}
|
|
151
143
|
}
|
|
152
|
-
var u = b, q = l, ce = s, fe = f, se = r, de = p, K =
|
|
144
|
+
var u = b, q = l, ce = s, fe = f, se = r, de = p, K = t, X = h, H = g, B = n, Z = a, L = o, Y = v, Q = !1;
|
|
153
145
|
function ee(c) {
|
|
154
|
-
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(c) ||
|
|
146
|
+
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(c) || N(c) === b;
|
|
155
147
|
}
|
|
156
148
|
function i(c) {
|
|
157
|
-
return
|
|
149
|
+
return N(c) === l;
|
|
158
150
|
}
|
|
159
151
|
function d(c) {
|
|
160
|
-
return
|
|
152
|
+
return N(c) === s;
|
|
161
153
|
}
|
|
162
154
|
function O(c) {
|
|
163
|
-
return
|
|
155
|
+
return N(c) === f;
|
|
164
156
|
}
|
|
165
157
|
function T(c) {
|
|
166
158
|
return typeof c == "object" && c !== null && c.$$typeof === r;
|
|
167
159
|
}
|
|
168
|
-
function
|
|
169
|
-
return
|
|
160
|
+
function E(c) {
|
|
161
|
+
return N(c) === p;
|
|
170
162
|
}
|
|
171
163
|
function P(c) {
|
|
172
|
-
return
|
|
164
|
+
return N(c) === t;
|
|
173
165
|
}
|
|
174
166
|
function S(c) {
|
|
175
|
-
return
|
|
167
|
+
return N(c) === h;
|
|
176
168
|
}
|
|
177
169
|
function x(c) {
|
|
178
|
-
return
|
|
170
|
+
return N(c) === g;
|
|
179
171
|
}
|
|
180
172
|
function w(c) {
|
|
181
|
-
return
|
|
173
|
+
return N(c) === n;
|
|
182
174
|
}
|
|
183
175
|
function R(c) {
|
|
184
|
-
return
|
|
176
|
+
return N(c) === a;
|
|
185
177
|
}
|
|
186
178
|
function _(c) {
|
|
187
|
-
return
|
|
179
|
+
return N(c) === o;
|
|
188
180
|
}
|
|
189
181
|
function $(c) {
|
|
190
|
-
return
|
|
182
|
+
return N(c) === v;
|
|
191
183
|
}
|
|
192
|
-
F.AsyncMode = u, F.ConcurrentMode = q, F.ContextConsumer = ce, F.ContextProvider = fe, F.Element = se, F.ForwardRef = de, F.Fragment = K, F.Lazy = X, F.Memo = H, F.Portal = B, F.Profiler = Z, F.StrictMode = L, F.Suspense = Y, F.isAsyncMode = ee, F.isConcurrentMode = i, F.isContextConsumer = d, F.isContextProvider = O, F.isElement = T, F.isForwardRef =
|
|
184
|
+
F.AsyncMode = u, F.ConcurrentMode = q, F.ContextConsumer = ce, F.ContextProvider = fe, F.Element = se, F.ForwardRef = de, F.Fragment = K, F.Lazy = X, F.Memo = H, F.Portal = B, F.Profiler = Z, F.StrictMode = L, F.Suspense = Y, F.isAsyncMode = ee, F.isConcurrentMode = i, F.isContextConsumer = d, F.isContextProvider = O, F.isElement = T, F.isForwardRef = E, F.isFragment = P, F.isLazy = S, F.isMemo = x, F.isPortal = w, F.isProfiler = R, F.isStrictMode = _, F.isSuspense = $, F.isValidElementType = I, F.typeOf = N;
|
|
193
185
|
}()), F;
|
|
194
186
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
197
|
-
return
|
|
187
|
+
var Ze;
|
|
188
|
+
function dr() {
|
|
189
|
+
return Ze || (Ze = 1, process.env.NODE_ENV === "production" ? be.exports = Gr() : be.exports = Hr()), be.exports;
|
|
198
190
|
}
|
|
199
191
|
/*
|
|
200
192
|
object-assign
|
|
201
193
|
(c) Sindre Sorhus
|
|
202
194
|
@license MIT
|
|
203
195
|
*/
|
|
204
|
-
var
|
|
196
|
+
var ge, Qe;
|
|
205
197
|
function Vr() {
|
|
206
|
-
if (
|
|
207
|
-
return
|
|
208
|
-
|
|
209
|
-
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty,
|
|
210
|
-
function
|
|
198
|
+
if (Qe)
|
|
199
|
+
return ge;
|
|
200
|
+
Qe = 1;
|
|
201
|
+
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
202
|
+
function t(a) {
|
|
211
203
|
if (a == null)
|
|
212
204
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
213
205
|
return Object(a);
|
|
@@ -234,41 +226,41 @@ function Vr() {
|
|
|
234
226
|
return !1;
|
|
235
227
|
}
|
|
236
228
|
}
|
|
237
|
-
return
|
|
238
|
-
for (var s, b =
|
|
229
|
+
return ge = o() ? Object.assign : function(a, f) {
|
|
230
|
+
for (var s, b = t(a), l, p = 1; p < arguments.length; p++) {
|
|
239
231
|
s = Object(arguments[p]);
|
|
240
232
|
for (var v in s)
|
|
241
233
|
r.call(s, v) && (b[v] = s[v]);
|
|
242
234
|
if (e) {
|
|
243
235
|
l = e(s);
|
|
244
236
|
for (var m = 0; m < l.length; m++)
|
|
245
|
-
|
|
237
|
+
n.call(s, l[m]) && (b[l[m]] = s[l[m]]);
|
|
246
238
|
}
|
|
247
239
|
}
|
|
248
240
|
return b;
|
|
249
|
-
},
|
|
241
|
+
}, ge;
|
|
250
242
|
}
|
|
251
|
-
var
|
|
252
|
-
function
|
|
253
|
-
if (
|
|
254
|
-
return
|
|
255
|
-
|
|
243
|
+
var Te, er;
|
|
244
|
+
function je() {
|
|
245
|
+
if (er)
|
|
246
|
+
return Te;
|
|
247
|
+
er = 1;
|
|
256
248
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
257
|
-
return
|
|
249
|
+
return Te = e, Te;
|
|
258
250
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
return
|
|
251
|
+
var Oe, rr;
|
|
252
|
+
function lr() {
|
|
253
|
+
return rr || (rr = 1, Oe = Function.call.bind(Object.prototype.hasOwnProperty)), Oe;
|
|
262
254
|
}
|
|
263
|
-
var
|
|
255
|
+
var Se, nr;
|
|
264
256
|
function zr() {
|
|
265
257
|
if (nr)
|
|
266
|
-
return
|
|
258
|
+
return Se;
|
|
267
259
|
nr = 1;
|
|
268
260
|
var e = function() {
|
|
269
261
|
};
|
|
270
262
|
if (process.env.NODE_ENV !== "production") {
|
|
271
|
-
var r =
|
|
263
|
+
var r = je(), n = {}, t = lr();
|
|
272
264
|
e = function(a) {
|
|
273
265
|
var f = "Warning: " + a;
|
|
274
266
|
typeof console < "u" && console.error(f);
|
|
@@ -281,7 +273,7 @@ function zr() {
|
|
|
281
273
|
function o(a, f, s, b, l) {
|
|
282
274
|
if (process.env.NODE_ENV !== "production") {
|
|
283
275
|
for (var p in a)
|
|
284
|
-
if (
|
|
276
|
+
if (t(a, p)) {
|
|
285
277
|
var v;
|
|
286
278
|
try {
|
|
287
279
|
if (typeof a[p] != "function") {
|
|
@@ -296,26 +288,26 @@ function zr() {
|
|
|
296
288
|
}
|
|
297
289
|
if (v && !(v instanceof Error) && e(
|
|
298
290
|
(b || "React class") + ": type specification of " + s + " `" + p + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
299
|
-
), v instanceof Error && !(v.message in
|
|
300
|
-
|
|
301
|
-
var
|
|
291
|
+
), v instanceof Error && !(v.message in n)) {
|
|
292
|
+
n[v.message] = !0;
|
|
293
|
+
var g = l ? l() : "";
|
|
302
294
|
e(
|
|
303
|
-
"Failed " + s + " type: " + v.message + (
|
|
295
|
+
"Failed " + s + " type: " + v.message + (g ?? "")
|
|
304
296
|
);
|
|
305
297
|
}
|
|
306
298
|
}
|
|
307
299
|
}
|
|
308
300
|
}
|
|
309
301
|
return o.resetWarningCache = function() {
|
|
310
|
-
process.env.NODE_ENV !== "production" && (
|
|
311
|
-
},
|
|
302
|
+
process.env.NODE_ENV !== "production" && (n = {});
|
|
303
|
+
}, Se = o, Se;
|
|
312
304
|
}
|
|
313
|
-
var
|
|
305
|
+
var xe, tr;
|
|
314
306
|
function Jr() {
|
|
315
|
-
if (
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
var e =
|
|
307
|
+
if (tr)
|
|
308
|
+
return xe;
|
|
309
|
+
tr = 1;
|
|
310
|
+
var e = dr(), r = Vr(), n = je(), t = lr(), o = zr(), a = function() {
|
|
319
311
|
};
|
|
320
312
|
process.env.NODE_ENV !== "production" && (a = function(s) {
|
|
321
313
|
var b = "Warning: " + s;
|
|
@@ -328,25 +320,25 @@ function Jr() {
|
|
|
328
320
|
function f() {
|
|
329
321
|
return null;
|
|
330
322
|
}
|
|
331
|
-
return
|
|
323
|
+
return xe = function(s, b) {
|
|
332
324
|
var l = typeof Symbol == "function" && Symbol.iterator, p = "@@iterator";
|
|
333
325
|
function v(i) {
|
|
334
326
|
var d = i && (l && i[l] || i[p]);
|
|
335
327
|
if (typeof d == "function")
|
|
336
328
|
return d;
|
|
337
329
|
}
|
|
338
|
-
var m = "<<anonymous>>",
|
|
339
|
-
array:
|
|
340
|
-
bigint:
|
|
341
|
-
bool:
|
|
342
|
-
func:
|
|
343
|
-
number:
|
|
344
|
-
object:
|
|
345
|
-
string:
|
|
346
|
-
symbol:
|
|
347
|
-
any:
|
|
330
|
+
var m = "<<anonymous>>", g = {
|
|
331
|
+
array: k("array"),
|
|
332
|
+
bigint: k("bigint"),
|
|
333
|
+
bool: k("boolean"),
|
|
334
|
+
func: k("function"),
|
|
335
|
+
number: k("number"),
|
|
336
|
+
object: k("object"),
|
|
337
|
+
string: k("string"),
|
|
338
|
+
symbol: k("symbol"),
|
|
339
|
+
any: j(),
|
|
348
340
|
arrayOf: I,
|
|
349
|
-
element:
|
|
341
|
+
element: N(),
|
|
350
342
|
elementType: u(),
|
|
351
343
|
instanceOf: q,
|
|
352
344
|
node: de(),
|
|
@@ -367,7 +359,7 @@ function Jr() {
|
|
|
367
359
|
if (process.env.NODE_ENV !== "production")
|
|
368
360
|
var d = {}, O = 0;
|
|
369
361
|
function T(P, S, x, w, R, _, $) {
|
|
370
|
-
if (w = w || m, _ = _ || x, $ !==
|
|
362
|
+
if (w = w || m, _ = _ || x, $ !== n) {
|
|
371
363
|
if (b) {
|
|
372
364
|
var c = new Error(
|
|
373
365
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -383,16 +375,16 @@ function Jr() {
|
|
|
383
375
|
}
|
|
384
376
|
return S[x] == null ? P ? S[x] === null ? new y("The " + R + " `" + _ + "` is marked as required " + ("in `" + w + "`, but its value is `null`.")) : new y("The " + R + " `" + _ + "` is marked as required in " + ("`" + w + "`, but its value is `undefined`.")) : null : i(S, x, w, R, _);
|
|
385
377
|
}
|
|
386
|
-
var
|
|
387
|
-
return
|
|
378
|
+
var E = T.bind(null, !1);
|
|
379
|
+
return E.isRequired = T.bind(null, !0), E;
|
|
388
380
|
}
|
|
389
|
-
function
|
|
390
|
-
function d(O, T,
|
|
381
|
+
function k(i) {
|
|
382
|
+
function d(O, T, E, P, S, x) {
|
|
391
383
|
var w = O[T], R = L(w);
|
|
392
384
|
if (R !== i) {
|
|
393
385
|
var _ = Y(w);
|
|
394
386
|
return new y(
|
|
395
|
-
"Invalid " + P + " `" + S + "` of type " + ("`" + _ + "` supplied to `" +
|
|
387
|
+
"Invalid " + P + " `" + S + "` of type " + ("`" + _ + "` supplied to `" + E + "`, expected ") + ("`" + i + "`."),
|
|
396
388
|
{ expectedType: i }
|
|
397
389
|
);
|
|
398
390
|
}
|
|
@@ -400,20 +392,20 @@ function Jr() {
|
|
|
400
392
|
}
|
|
401
393
|
return A(d);
|
|
402
394
|
}
|
|
403
|
-
function
|
|
395
|
+
function j() {
|
|
404
396
|
return A(f);
|
|
405
397
|
}
|
|
406
398
|
function I(i) {
|
|
407
|
-
function d(O, T,
|
|
399
|
+
function d(O, T, E, P, S) {
|
|
408
400
|
if (typeof i != "function")
|
|
409
|
-
return new y("Property `" + S + "` of component `" +
|
|
401
|
+
return new y("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
410
402
|
var x = O[T];
|
|
411
403
|
if (!Array.isArray(x)) {
|
|
412
404
|
var w = L(x);
|
|
413
|
-
return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" +
|
|
405
|
+
return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" + E + "`, expected an array."));
|
|
414
406
|
}
|
|
415
407
|
for (var R = 0; R < x.length; R++) {
|
|
416
|
-
var _ = i(x, R,
|
|
408
|
+
var _ = i(x, R, E, P, S + "[" + R + "]", n);
|
|
417
409
|
if (_ instanceof Error)
|
|
418
410
|
return _;
|
|
419
411
|
}
|
|
@@ -421,33 +413,33 @@ function Jr() {
|
|
|
421
413
|
}
|
|
422
414
|
return A(d);
|
|
423
415
|
}
|
|
424
|
-
function
|
|
425
|
-
function i(d, O, T,
|
|
416
|
+
function N() {
|
|
417
|
+
function i(d, O, T, E, P) {
|
|
426
418
|
var S = d[O];
|
|
427
419
|
if (!s(S)) {
|
|
428
420
|
var x = L(S);
|
|
429
|
-
return new y("Invalid " +
|
|
421
|
+
return new y("Invalid " + E + " `" + P + "` of type " + ("`" + x + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
430
422
|
}
|
|
431
423
|
return null;
|
|
432
424
|
}
|
|
433
425
|
return A(i);
|
|
434
426
|
}
|
|
435
427
|
function u() {
|
|
436
|
-
function i(d, O, T,
|
|
428
|
+
function i(d, O, T, E, P) {
|
|
437
429
|
var S = d[O];
|
|
438
430
|
if (!e.isValidElementType(S)) {
|
|
439
431
|
var x = L(S);
|
|
440
|
-
return new y("Invalid " +
|
|
432
|
+
return new y("Invalid " + E + " `" + P + "` of type " + ("`" + x + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
441
433
|
}
|
|
442
434
|
return null;
|
|
443
435
|
}
|
|
444
436
|
return A(i);
|
|
445
437
|
}
|
|
446
438
|
function q(i) {
|
|
447
|
-
function d(O, T,
|
|
439
|
+
function d(O, T, E, P, S) {
|
|
448
440
|
if (!(O[T] instanceof i)) {
|
|
449
441
|
var x = i.name || m, w = ee(O[T]);
|
|
450
|
-
return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" +
|
|
442
|
+
return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" + E + "`, expected ") + ("instance of `" + x + "`."));
|
|
451
443
|
}
|
|
452
444
|
return null;
|
|
453
445
|
}
|
|
@@ -458,7 +450,7 @@ function Jr() {
|
|
|
458
450
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
459
451
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
460
452
|
) : a("Invalid argument supplied to oneOf, expected an array.")), f;
|
|
461
|
-
function d(O, T,
|
|
453
|
+
function d(O, T, E, P, S) {
|
|
462
454
|
for (var x = O[T], w = 0; w < i.length; w++)
|
|
463
455
|
if (h(x, i[w]))
|
|
464
456
|
return null;
|
|
@@ -466,20 +458,20 @@ function Jr() {
|
|
|
466
458
|
var W = Y(c);
|
|
467
459
|
return W === "symbol" ? String(c) : c;
|
|
468
460
|
});
|
|
469
|
-
return new y("Invalid " + P + " `" + S + "` of value `" + String(x) + "` " + ("supplied to `" +
|
|
461
|
+
return new y("Invalid " + P + " `" + S + "` of value `" + String(x) + "` " + ("supplied to `" + E + "`, expected one of " + R + "."));
|
|
470
462
|
}
|
|
471
463
|
return A(d);
|
|
472
464
|
}
|
|
473
465
|
function fe(i) {
|
|
474
|
-
function d(O, T,
|
|
466
|
+
function d(O, T, E, P, S) {
|
|
475
467
|
if (typeof i != "function")
|
|
476
|
-
return new y("Property `" + S + "` of component `" +
|
|
468
|
+
return new y("Property `" + S + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
477
469
|
var x = O[T], w = L(x);
|
|
478
470
|
if (w !== "object")
|
|
479
|
-
return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" +
|
|
471
|
+
return new y("Invalid " + P + " `" + S + "` of type " + ("`" + w + "` supplied to `" + E + "`, expected an object."));
|
|
480
472
|
for (var R in x)
|
|
481
|
-
if (
|
|
482
|
-
var _ = i(x, R,
|
|
473
|
+
if (t(x, R)) {
|
|
474
|
+
var _ = i(x, R, E, P, S + "." + R, n);
|
|
483
475
|
if (_ instanceof Error)
|
|
484
476
|
return _;
|
|
485
477
|
}
|
|
@@ -497,12 +489,12 @@ function Jr() {
|
|
|
497
489
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(O) + " at index " + d + "."
|
|
498
490
|
), f;
|
|
499
491
|
}
|
|
500
|
-
function T(
|
|
492
|
+
function T(E, P, S, x, w) {
|
|
501
493
|
for (var R = [], _ = 0; _ < i.length; _++) {
|
|
502
|
-
var $ = i[_], c = $(
|
|
494
|
+
var $ = i[_], c = $(E, P, S, x, w, n);
|
|
503
495
|
if (c == null)
|
|
504
496
|
return null;
|
|
505
|
-
c.data &&
|
|
497
|
+
c.data && t(c.data, "expectedType") && R.push(c.data.expectedType);
|
|
506
498
|
}
|
|
507
499
|
var W = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
|
|
508
500
|
return new y("Invalid " + x + " `" + w + "` supplied to " + ("`" + S + "`" + W + "."));
|
|
@@ -510,26 +502,26 @@ function Jr() {
|
|
|
510
502
|
return A(T);
|
|
511
503
|
}
|
|
512
504
|
function de() {
|
|
513
|
-
function i(d, O, T,
|
|
514
|
-
return B(d[O]) ? null : new y("Invalid " +
|
|
505
|
+
function i(d, O, T, E, P) {
|
|
506
|
+
return B(d[O]) ? null : new y("Invalid " + E + " `" + P + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
515
507
|
}
|
|
516
508
|
return A(i);
|
|
517
509
|
}
|
|
518
|
-
function K(i, d, O, T,
|
|
510
|
+
function K(i, d, O, T, E) {
|
|
519
511
|
return new y(
|
|
520
|
-
(i || "React class") + ": " + d + " type `" + O + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
512
|
+
(i || "React class") + ": " + d + " type `" + O + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
521
513
|
);
|
|
522
514
|
}
|
|
523
515
|
function X(i) {
|
|
524
|
-
function d(O, T,
|
|
516
|
+
function d(O, T, E, P, S) {
|
|
525
517
|
var x = O[T], w = L(x);
|
|
526
518
|
if (w !== "object")
|
|
527
|
-
return new y("Invalid " + P + " `" + S + "` of type `" + w + "` " + ("supplied to `" +
|
|
519
|
+
return new y("Invalid " + P + " `" + S + "` of type `" + w + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
528
520
|
for (var R in i) {
|
|
529
521
|
var _ = i[R];
|
|
530
522
|
if (typeof _ != "function")
|
|
531
|
-
return K(
|
|
532
|
-
var $ = _(x, R,
|
|
523
|
+
return K(E, P, S, R, Y(_));
|
|
524
|
+
var $ = _(x, R, E, P, S + "." + R, n);
|
|
533
525
|
if ($)
|
|
534
526
|
return $;
|
|
535
527
|
}
|
|
@@ -538,21 +530,21 @@ function Jr() {
|
|
|
538
530
|
return A(d);
|
|
539
531
|
}
|
|
540
532
|
function H(i) {
|
|
541
|
-
function d(O, T,
|
|
533
|
+
function d(O, T, E, P, S) {
|
|
542
534
|
var x = O[T], w = L(x);
|
|
543
535
|
if (w !== "object")
|
|
544
|
-
return new y("Invalid " + P + " `" + S + "` of type `" + w + "` " + ("supplied to `" +
|
|
536
|
+
return new y("Invalid " + P + " `" + S + "` of type `" + w + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
545
537
|
var R = r({}, O[T], i);
|
|
546
538
|
for (var _ in R) {
|
|
547
539
|
var $ = i[_];
|
|
548
|
-
if (
|
|
549
|
-
return K(
|
|
540
|
+
if (t(i, _) && typeof $ != "function")
|
|
541
|
+
return K(E, P, S, _, Y($));
|
|
550
542
|
if (!$)
|
|
551
543
|
return new y(
|
|
552
|
-
"Invalid " + P + " `" + S + "` key `" + _ + "` supplied to `" +
|
|
544
|
+
"Invalid " + P + " `" + S + "` key `" + _ + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(O[T], null, " ") + `
|
|
553
545
|
Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
554
546
|
);
|
|
555
|
-
var c = $(x, _,
|
|
547
|
+
var c = $(x, _, E, P, S + "." + _, n);
|
|
556
548
|
if (c)
|
|
557
549
|
return c;
|
|
558
550
|
}
|
|
@@ -582,8 +574,8 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
582
574
|
return !1;
|
|
583
575
|
} else
|
|
584
576
|
for (; !(T = O.next()).done; ) {
|
|
585
|
-
var
|
|
586
|
-
if (
|
|
577
|
+
var E = T.value;
|
|
578
|
+
if (E && !B(E[1]))
|
|
587
579
|
return !1;
|
|
588
580
|
}
|
|
589
581
|
} else
|
|
@@ -629,21 +621,21 @@ Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
|
629
621
|
function ee(i) {
|
|
630
622
|
return !i.constructor || !i.constructor.name ? m : i.constructor.name;
|
|
631
623
|
}
|
|
632
|
-
return
|
|
633
|
-
},
|
|
624
|
+
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
625
|
+
}, xe;
|
|
634
626
|
}
|
|
635
|
-
var
|
|
627
|
+
var Pe, or;
|
|
636
628
|
function Kr() {
|
|
637
|
-
if (
|
|
638
|
-
return
|
|
639
|
-
|
|
640
|
-
var e =
|
|
629
|
+
if (or)
|
|
630
|
+
return Pe;
|
|
631
|
+
or = 1;
|
|
632
|
+
var e = je();
|
|
641
633
|
function r() {
|
|
642
634
|
}
|
|
643
|
-
function
|
|
635
|
+
function n() {
|
|
644
636
|
}
|
|
645
|
-
return
|
|
646
|
-
function
|
|
637
|
+
return n.resetWarningCache = r, Pe = function() {
|
|
638
|
+
function t(f, s, b, l, p, v) {
|
|
647
639
|
if (v !== e) {
|
|
648
640
|
var m = new Error(
|
|
649
641
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -651,44 +643,44 @@ function Kr() {
|
|
|
651
643
|
throw m.name = "Invariant Violation", m;
|
|
652
644
|
}
|
|
653
645
|
}
|
|
654
|
-
|
|
646
|
+
t.isRequired = t;
|
|
655
647
|
function o() {
|
|
656
|
-
return
|
|
648
|
+
return t;
|
|
657
649
|
}
|
|
658
650
|
var a = {
|
|
659
|
-
array:
|
|
660
|
-
bigint:
|
|
661
|
-
bool:
|
|
662
|
-
func:
|
|
663
|
-
number:
|
|
664
|
-
object:
|
|
665
|
-
string:
|
|
666
|
-
symbol:
|
|
667
|
-
any:
|
|
651
|
+
array: t,
|
|
652
|
+
bigint: t,
|
|
653
|
+
bool: t,
|
|
654
|
+
func: t,
|
|
655
|
+
number: t,
|
|
656
|
+
object: t,
|
|
657
|
+
string: t,
|
|
658
|
+
symbol: t,
|
|
659
|
+
any: t,
|
|
668
660
|
arrayOf: o,
|
|
669
|
-
element:
|
|
670
|
-
elementType:
|
|
661
|
+
element: t,
|
|
662
|
+
elementType: t,
|
|
671
663
|
instanceOf: o,
|
|
672
|
-
node:
|
|
664
|
+
node: t,
|
|
673
665
|
objectOf: o,
|
|
674
666
|
oneOf: o,
|
|
675
667
|
oneOfType: o,
|
|
676
668
|
shape: o,
|
|
677
669
|
exact: o,
|
|
678
|
-
checkPropTypes:
|
|
670
|
+
checkPropTypes: n,
|
|
679
671
|
resetWarningCache: r
|
|
680
672
|
};
|
|
681
673
|
return a.PropTypes = a, a;
|
|
682
|
-
},
|
|
674
|
+
}, Pe;
|
|
683
675
|
}
|
|
684
676
|
if (process.env.NODE_ENV !== "production") {
|
|
685
|
-
var Xr =
|
|
677
|
+
var Xr = dr(), Zr = !0;
|
|
686
678
|
Ae.exports = Jr()(Xr.isElement, Zr);
|
|
687
679
|
} else
|
|
688
680
|
Ae.exports = Kr()();
|
|
689
681
|
var M = Ae.exports;
|
|
690
|
-
const
|
|
691
|
-
var Ie = "data-focus-lock",
|
|
682
|
+
const vr = /* @__PURE__ */ Wr(M);
|
|
683
|
+
var Ie = "data-focus-lock", pr = "data-focus-lock-disabled", Qr = "data-no-focus-lock", en = "data-autofocus-inside", rn = "data-no-autofocus", we = {
|
|
692
684
|
width: "1px",
|
|
693
685
|
height: "0px",
|
|
694
686
|
padding: 0,
|
|
@@ -697,46 +689,46 @@ var Ie = "data-focus-lock", yr = "data-focus-lock-disabled", Qr = "data-no-focus
|
|
|
697
689
|
top: "1px",
|
|
698
690
|
left: "1px"
|
|
699
691
|
};
|
|
700
|
-
process.env.NODE_ENV !== "production" &&
|
|
701
|
-
var
|
|
702
|
-
var r = e.target,
|
|
692
|
+
process.env.NODE_ENV !== "production" && vr.node;
|
|
693
|
+
var yr = Ne({}, function(e) {
|
|
694
|
+
var r = e.target, n = e.currentTarget;
|
|
703
695
|
return {
|
|
704
696
|
target: r,
|
|
705
|
-
currentTarget:
|
|
697
|
+
currentTarget: n
|
|
706
698
|
};
|
|
707
|
-
}),
|
|
699
|
+
}), mr = Ne(), nn = Ne(), tn = Ur({
|
|
708
700
|
async: !0,
|
|
709
701
|
ssr: typeof document < "u"
|
|
710
|
-
}),
|
|
711
|
-
var
|
|
712
|
-
var
|
|
702
|
+
}), on = /* @__PURE__ */ $r(void 0), an = [], $e = /* @__PURE__ */ D.forwardRef(function(r, n) {
|
|
703
|
+
var t, o = D.useState(), a = o[0], f = o[1], s = D.useRef(), b = D.useRef(!1), l = D.useRef(null), p = D.useState({}), v = p[1], m = r.children, g = r.disabled, h = g === void 0 ? !1 : g, y = r.noFocusGuards, A = y === void 0 ? !1 : y, k = r.persistentFocus, j = k === void 0 ? !1 : k, I = r.crossFrame, N = I === void 0 ? !0 : I, u = r.autoFocus, q = u === void 0 ? !0 : u, ce = r.allowTextSelection, fe = r.group, se = r.className, de = r.whiteList, K = r.hasPositiveIndices, X = r.shards, H = X === void 0 ? an : X, B = r.as, Z = B === void 0 ? "div" : B, L = r.lockProps, Y = L === void 0 ? {} : L, Q = r.sideCar, ee = r.returnFocus, i = ee === void 0 ? !1 : ee, d = r.focusOptions, O = r.onActivation, T = r.onDeactivation, E = D.useState({}), P = E[0], S = D.useCallback(function(G) {
|
|
704
|
+
var ne = G.captureFocusRestore;
|
|
713
705
|
if (!l.current) {
|
|
714
|
-
var
|
|
715
|
-
l.current = V, V !== document.body && (l.current =
|
|
706
|
+
var te, V = (te = document) == null ? void 0 : te.activeElement;
|
|
707
|
+
l.current = V, V !== document.body && (l.current = ne(V));
|
|
716
708
|
}
|
|
717
709
|
s.current && O && O(s.current), b.current = !0, v();
|
|
718
710
|
}, [O]), x = D.useCallback(function() {
|
|
719
711
|
b.current = !1, T && T(s.current), v();
|
|
720
712
|
}, [T]), w = D.useCallback(function(G) {
|
|
721
|
-
var
|
|
722
|
-
if (
|
|
723
|
-
var
|
|
713
|
+
var ne = l.current;
|
|
714
|
+
if (ne) {
|
|
715
|
+
var te = (typeof ne == "function" ? ne() : ne) || document.body, V = typeof i == "function" ? i(te) : i;
|
|
724
716
|
if (V) {
|
|
725
|
-
var
|
|
717
|
+
var Je = typeof V == "object" ? V : void 0;
|
|
726
718
|
l.current = null, G ? Promise.resolve().then(function() {
|
|
727
|
-
return
|
|
728
|
-
}) :
|
|
719
|
+
return te.focus(Je);
|
|
720
|
+
}) : te.focus(Je);
|
|
729
721
|
}
|
|
730
722
|
}
|
|
731
723
|
}, [i]), R = D.useCallback(function(G) {
|
|
732
|
-
b.current &&
|
|
733
|
-
}, []), _ =
|
|
724
|
+
b.current && yr.useMedium(G);
|
|
725
|
+
}, []), _ = mr.useMedium, $ = D.useCallback(function(G) {
|
|
734
726
|
s.current !== G && (s.current = G, f(G));
|
|
735
727
|
}, []);
|
|
736
728
|
process.env.NODE_ENV !== "production" && (typeof ce < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), D.useEffect(function() {
|
|
737
729
|
!s.current && typeof Z != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
738
730
|
}, []));
|
|
739
|
-
var c =
|
|
731
|
+
var c = Fe((t = {}, t[pr] = h && "disabled", t[Ie] = fe, t), Y), W = A !== !0, re = W && A !== "tail", me = qr([n, $]), Nr = D.useMemo(function() {
|
|
740
732
|
return {
|
|
741
733
|
observed: s,
|
|
742
734
|
shards: H,
|
|
@@ -749,21 +741,21 @@ var mr = Ne({}, function(e) {
|
|
|
749
741
|
key: "guard-first",
|
|
750
742
|
"data-focus-guard": !0,
|
|
751
743
|
tabIndex: h ? -1 : 0,
|
|
752
|
-
style:
|
|
744
|
+
style: we
|
|
753
745
|
}),
|
|
754
746
|
K ? /* @__PURE__ */ D.createElement("div", {
|
|
755
747
|
key: "guard-nearest",
|
|
756
748
|
"data-focus-guard": !0,
|
|
757
749
|
tabIndex: h ? -1 : 1,
|
|
758
|
-
style:
|
|
750
|
+
style: we
|
|
759
751
|
}) : null
|
|
760
752
|
], !h && /* @__PURE__ */ D.createElement(Q, {
|
|
761
753
|
id: P,
|
|
762
|
-
sideCar:
|
|
754
|
+
sideCar: tn,
|
|
763
755
|
observed: a,
|
|
764
756
|
disabled: h,
|
|
765
|
-
persistentFocus:
|
|
766
|
-
crossFrame:
|
|
757
|
+
persistentFocus: j,
|
|
758
|
+
crossFrame: N,
|
|
767
759
|
autoFocus: q,
|
|
768
760
|
whiteList: de,
|
|
769
761
|
shards: H,
|
|
@@ -771,21 +763,21 @@ var mr = Ne({}, function(e) {
|
|
|
771
763
|
onDeactivation: x,
|
|
772
764
|
returnFocus: w,
|
|
773
765
|
focusOptions: d
|
|
774
|
-
}), /* @__PURE__ */ D.createElement(Z,
|
|
775
|
-
ref:
|
|
766
|
+
}), /* @__PURE__ */ D.createElement(Z, Fe({
|
|
767
|
+
ref: me
|
|
776
768
|
}, c, {
|
|
777
769
|
className: se,
|
|
778
770
|
onBlur: _,
|
|
779
771
|
onFocus: R
|
|
780
|
-
}), /* @__PURE__ */ D.createElement(
|
|
772
|
+
}), /* @__PURE__ */ D.createElement(on.Provider, {
|
|
781
773
|
value: Nr
|
|
782
774
|
}, m)), re && /* @__PURE__ */ D.createElement("div", {
|
|
783
775
|
"data-focus-guard": !0,
|
|
784
776
|
tabIndex: h ? -1 : 0,
|
|
785
|
-
style:
|
|
777
|
+
style: we
|
|
786
778
|
}));
|
|
787
779
|
});
|
|
788
|
-
|
|
780
|
+
$e.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
789
781
|
children: M.node,
|
|
790
782
|
disabled: M.bool,
|
|
791
783
|
returnFocus: M.oneOfType([M.bool, M.object, M.func]),
|
|
@@ -806,55 +798,47 @@ Le.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
806
798
|
onDeactivation: M.func,
|
|
807
799
|
sideCar: M.any.isRequired
|
|
808
800
|
} : {};
|
|
809
|
-
function
|
|
810
|
-
return Me = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
811
|
-
return t.__proto__ = n, t;
|
|
812
|
-
}, Me(e, r);
|
|
813
|
-
}
|
|
814
|
-
function it(e, r) {
|
|
815
|
-
e.prototype = Object.create(r.prototype), e.prototype.constructor = e, Me(e, r);
|
|
816
|
-
}
|
|
817
|
-
function pe(e) {
|
|
801
|
+
function ve(e) {
|
|
818
802
|
"@babel/helpers - typeof";
|
|
819
|
-
return
|
|
803
|
+
return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
820
804
|
return typeof r;
|
|
821
805
|
} : function(r) {
|
|
822
806
|
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
823
|
-
},
|
|
807
|
+
}, ve(e);
|
|
824
808
|
}
|
|
825
|
-
function
|
|
826
|
-
if (
|
|
809
|
+
function un(e, r) {
|
|
810
|
+
if (ve(e) != "object" || !e)
|
|
827
811
|
return e;
|
|
828
|
-
var
|
|
829
|
-
if (
|
|
830
|
-
var
|
|
831
|
-
if (
|
|
832
|
-
return
|
|
812
|
+
var n = e[Symbol.toPrimitive];
|
|
813
|
+
if (n !== void 0) {
|
|
814
|
+
var t = n.call(e, r || "default");
|
|
815
|
+
if (ve(t) != "object")
|
|
816
|
+
return t;
|
|
833
817
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
834
818
|
}
|
|
835
819
|
return (r === "string" ? String : Number)(e);
|
|
836
820
|
}
|
|
837
|
-
function
|
|
838
|
-
var r =
|
|
839
|
-
return
|
|
821
|
+
function cn(e) {
|
|
822
|
+
var r = un(e, "string");
|
|
823
|
+
return ve(r) == "symbol" ? r : r + "";
|
|
840
824
|
}
|
|
841
|
-
function
|
|
842
|
-
return (r =
|
|
843
|
-
value:
|
|
825
|
+
function fn(e, r, n) {
|
|
826
|
+
return (r = cn(r)) in e ? Object.defineProperty(e, r, {
|
|
827
|
+
value: n,
|
|
844
828
|
enumerable: !0,
|
|
845
829
|
configurable: !0,
|
|
846
830
|
writable: !0
|
|
847
|
-
}) : e[r] =
|
|
831
|
+
}) : e[r] = n, e;
|
|
848
832
|
}
|
|
849
|
-
function
|
|
833
|
+
function sn(e, r) {
|
|
850
834
|
if (process.env.NODE_ENV !== "production") {
|
|
851
835
|
if (typeof e != "function")
|
|
852
836
|
throw new Error("Expected reducePropsToState to be a function.");
|
|
853
837
|
if (typeof r != "function")
|
|
854
838
|
throw new Error("Expected handleStateChangeOnClient to be a function.");
|
|
855
839
|
}
|
|
856
|
-
function t
|
|
857
|
-
return
|
|
840
|
+
function n(t) {
|
|
841
|
+
return t.displayName || t.name || "Component";
|
|
858
842
|
}
|
|
859
843
|
return function(o) {
|
|
860
844
|
if (process.env.NODE_ENV !== "production" && typeof o != "function")
|
|
@@ -866,7 +850,7 @@ function st(e, r) {
|
|
|
866
850
|
})), r(f);
|
|
867
851
|
}
|
|
868
852
|
var b = /* @__PURE__ */ function(l) {
|
|
869
|
-
|
|
853
|
+
Br(p, l);
|
|
870
854
|
function p() {
|
|
871
855
|
return l.apply(this, arguments) || this;
|
|
872
856
|
}
|
|
@@ -879,96 +863,96 @@ function st(e, r) {
|
|
|
879
863
|
}, v.componentDidUpdate = function() {
|
|
880
864
|
s();
|
|
881
865
|
}, v.componentWillUnmount = function() {
|
|
882
|
-
var
|
|
883
|
-
a.splice(
|
|
866
|
+
var g = a.indexOf(this);
|
|
867
|
+
a.splice(g, 1), s();
|
|
884
868
|
}, v.render = function() {
|
|
885
|
-
return /* @__PURE__ */
|
|
869
|
+
return /* @__PURE__ */ jr.createElement(o, this.props);
|
|
886
870
|
}, p;
|
|
887
|
-
}(
|
|
888
|
-
return
|
|
871
|
+
}(Lr);
|
|
872
|
+
return fn(b, "displayName", "SideEffect(" + n(o) + ")"), b;
|
|
889
873
|
};
|
|
890
874
|
}
|
|
891
875
|
var U = function(e) {
|
|
892
|
-
for (var r = Array(e.length),
|
|
893
|
-
r[
|
|
876
|
+
for (var r = Array(e.length), n = 0; n < e.length; ++n)
|
|
877
|
+
r[n] = e[n];
|
|
894
878
|
return r;
|
|
895
879
|
}, J = function(e) {
|
|
896
880
|
return Array.isArray(e) ? e : [e];
|
|
897
|
-
},
|
|
881
|
+
}, br = function(e) {
|
|
898
882
|
return Array.isArray(e) ? e[0] : e;
|
|
899
|
-
},
|
|
883
|
+
}, dn = function(e) {
|
|
900
884
|
if (e.nodeType !== Node.ELEMENT_NODE)
|
|
901
885
|
return !1;
|
|
902
886
|
var r = window.getComputedStyle(e, null);
|
|
903
887
|
return !r || !r.getPropertyValue ? !1 : r.getPropertyValue("display") === "none" || r.getPropertyValue("visibility") === "hidden";
|
|
904
|
-
},
|
|
888
|
+
}, hr = function(e) {
|
|
905
889
|
return e.parentNode && e.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? (
|
|
906
890
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
907
891
|
e.parentNode.host
|
|
908
892
|
) : e.parentNode;
|
|
909
893
|
}, Er = function(e) {
|
|
910
894
|
return e === document || e && e.nodeType === Node.DOCUMENT_NODE;
|
|
911
|
-
},
|
|
895
|
+
}, ln = function(e) {
|
|
912
896
|
return e.hasAttribute("inert");
|
|
913
|
-
},
|
|
914
|
-
return !e || Er(e) || !
|
|
897
|
+
}, vn = function(e, r) {
|
|
898
|
+
return !e || Er(e) || !dn(e) && !ln(e) && r(hr(e));
|
|
899
|
+
}, gr = function(e, r) {
|
|
900
|
+
var n = e.get(r);
|
|
901
|
+
if (n !== void 0)
|
|
902
|
+
return n;
|
|
903
|
+
var t = vn(r, gr.bind(void 0, e));
|
|
904
|
+
return e.set(r, t), t;
|
|
905
|
+
}, pn = function(e, r) {
|
|
906
|
+
return e && !Er(e) ? bn(e) ? r(hr(e)) : !1 : !0;
|
|
915
907
|
}, Tr = function(e, r) {
|
|
916
|
-
var
|
|
917
|
-
if (
|
|
918
|
-
return
|
|
919
|
-
var
|
|
920
|
-
return e.set(r,
|
|
921
|
-
},
|
|
922
|
-
return e && !Er(e) ? bt(e) ? r(gr(e)) : !1 : !0;
|
|
923
|
-
}, Or = function(e, r) {
|
|
924
|
-
var t = e.get(r);
|
|
925
|
-
if (t !== void 0)
|
|
926
|
-
return t;
|
|
927
|
-
var n = pt(r, Or.bind(void 0, e));
|
|
928
|
-
return e.set(r, n), n;
|
|
929
|
-
}, Sr = function(e) {
|
|
908
|
+
var n = e.get(r);
|
|
909
|
+
if (n !== void 0)
|
|
910
|
+
return n;
|
|
911
|
+
var t = pn(r, Tr.bind(void 0, e));
|
|
912
|
+
return e.set(r, t), t;
|
|
913
|
+
}, Or = function(e) {
|
|
930
914
|
return e.dataset;
|
|
931
|
-
},
|
|
915
|
+
}, yn = function(e) {
|
|
932
916
|
return e.tagName === "BUTTON";
|
|
933
|
-
},
|
|
917
|
+
}, Sr = function(e) {
|
|
934
918
|
return e.tagName === "INPUT";
|
|
935
|
-
},
|
|
936
|
-
return
|
|
937
|
-
},
|
|
938
|
-
return !((
|
|
939
|
-
},
|
|
940
|
-
var r = e.getAttribute(
|
|
919
|
+
}, xr = function(e) {
|
|
920
|
+
return Sr(e) && e.type === "radio";
|
|
921
|
+
}, mn = function(e) {
|
|
922
|
+
return !((Sr(e) || yn(e)) && (e.type === "hidden" || e.disabled));
|
|
923
|
+
}, bn = function(e) {
|
|
924
|
+
var r = e.getAttribute(rn);
|
|
941
925
|
return ![!0, "true", ""].includes(r);
|
|
942
|
-
},
|
|
926
|
+
}, Le = function(e) {
|
|
943
927
|
var r;
|
|
944
|
-
return !!(e && (!((r =
|
|
945
|
-
},
|
|
946
|
-
return !
|
|
947
|
-
},
|
|
928
|
+
return !!(e && (!((r = Or(e)) === null || r === void 0) && r.focusGuard));
|
|
929
|
+
}, Me = function(e) {
|
|
930
|
+
return !Le(e);
|
|
931
|
+
}, hn = function(e) {
|
|
948
932
|
return !!e;
|
|
949
|
-
},
|
|
950
|
-
var
|
|
933
|
+
}, En = function(e, r) {
|
|
934
|
+
var n = Math.max(0, e.tabIndex), t = Math.max(0, r.tabIndex), o = n - t, a = e.index - r.index;
|
|
951
935
|
if (o) {
|
|
952
|
-
if (!t)
|
|
953
|
-
return 1;
|
|
954
936
|
if (!n)
|
|
937
|
+
return 1;
|
|
938
|
+
if (!t)
|
|
955
939
|
return -1;
|
|
956
940
|
}
|
|
957
941
|
return o || a;
|
|
958
|
-
},
|
|
942
|
+
}, gn = function(e) {
|
|
959
943
|
return e.tabIndex < 0 && !e.hasAttribute("tabindex") ? 0 : e.tabIndex;
|
|
960
|
-
},
|
|
961
|
-
return U(e).map(function(
|
|
962
|
-
var a =
|
|
944
|
+
}, We = function(e, r, n) {
|
|
945
|
+
return U(e).map(function(t, o) {
|
|
946
|
+
var a = gn(t);
|
|
963
947
|
return {
|
|
964
|
-
node:
|
|
948
|
+
node: t,
|
|
965
949
|
index: o,
|
|
966
|
-
tabIndex:
|
|
950
|
+
tabIndex: n && a === -1 ? (t.dataset || {}).focusGuard ? 0 : -1 : a
|
|
967
951
|
};
|
|
968
|
-
}).filter(function(
|
|
969
|
-
return !r ||
|
|
970
|
-
}).sort(
|
|
971
|
-
},
|
|
952
|
+
}).filter(function(t) {
|
|
953
|
+
return !r || t.tabIndex >= 0;
|
|
954
|
+
}).sort(En);
|
|
955
|
+
}, Tn = [
|
|
972
956
|
"button:enabled",
|
|
973
957
|
"select:enabled",
|
|
974
958
|
"textarea:enabled",
|
|
@@ -986,203 +970,203 @@ var U = function(e) {
|
|
|
986
970
|
"[tabindex]",
|
|
987
971
|
"[contenteditable]",
|
|
988
972
|
"[autofocus]"
|
|
989
|
-
],
|
|
990
|
-
return U((e.shadowRoot || e).children).reduce(function(
|
|
991
|
-
return
|
|
973
|
+
], Ue = Tn.join(","), On = "".concat(Ue, ", [data-focus-guard]"), Pr = function(e, r) {
|
|
974
|
+
return U((e.shadowRoot || e).children).reduce(function(n, t) {
|
|
975
|
+
return n.concat(t.matches(r ? On : Ue) ? [t] : [], Pr(t));
|
|
992
976
|
}, []);
|
|
993
|
-
},
|
|
994
|
-
var
|
|
995
|
-
return e instanceof HTMLIFrameElement && (!((
|
|
977
|
+
}, Sn = function(e, r) {
|
|
978
|
+
var n;
|
|
979
|
+
return e instanceof HTMLIFrameElement && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? ue([e.contentDocument.body], r) : [e];
|
|
996
980
|
}, ue = function(e, r) {
|
|
997
|
-
return e.reduce(function(
|
|
998
|
-
var o, a =
|
|
999
|
-
return
|
|
981
|
+
return e.reduce(function(n, t) {
|
|
982
|
+
var o, a = Pr(t, r), f = (o = []).concat.apply(o, a.map(function(s) {
|
|
983
|
+
return Sn(s, r);
|
|
1000
984
|
}));
|
|
1001
|
-
return
|
|
985
|
+
return n.concat(
|
|
1002
986
|
// add all tabbables inside and within shadow DOMs in DOM order
|
|
1003
987
|
f,
|
|
1004
988
|
// add if node is tabbable itself
|
|
1005
|
-
|
|
1006
|
-
return s ===
|
|
989
|
+
t.parentNode ? U(t.parentNode.querySelectorAll(Ue)).filter(function(s) {
|
|
990
|
+
return s === t;
|
|
1007
991
|
}) : []
|
|
1008
992
|
);
|
|
1009
993
|
}, []);
|
|
1010
|
-
},
|
|
1011
|
-
var r = e.querySelectorAll("[".concat(
|
|
1012
|
-
return U(r).map(function(
|
|
1013
|
-
return ue([
|
|
1014
|
-
}).reduce(function(
|
|
1015
|
-
return
|
|
994
|
+
}, xn = function(e) {
|
|
995
|
+
var r = e.querySelectorAll("[".concat(en, "]"));
|
|
996
|
+
return U(r).map(function(n) {
|
|
997
|
+
return ue([n]);
|
|
998
|
+
}).reduce(function(n, t) {
|
|
999
|
+
return n.concat(t);
|
|
1016
1000
|
}, []);
|
|
1017
|
-
},
|
|
1018
|
-
return U(e).filter(function(
|
|
1019
|
-
return
|
|
1020
|
-
}).filter(function(
|
|
1021
|
-
return
|
|
1001
|
+
}, qe = function(e, r) {
|
|
1002
|
+
return U(e).filter(function(n) {
|
|
1003
|
+
return gr(r, n);
|
|
1004
|
+
}).filter(function(n) {
|
|
1005
|
+
return mn(n);
|
|
1022
1006
|
});
|
|
1023
|
-
},
|
|
1024
|
-
return r === void 0 && (r = /* @__PURE__ */ new Map()), U(e).filter(function(
|
|
1025
|
-
return
|
|
1007
|
+
}, ar = function(e, r) {
|
|
1008
|
+
return r === void 0 && (r = /* @__PURE__ */ new Map()), U(e).filter(function(n) {
|
|
1009
|
+
return Tr(r, n);
|
|
1026
1010
|
});
|
|
1027
|
-
},
|
|
1028
|
-
return
|
|
1029
|
-
},
|
|
1030
|
-
return
|
|
1031
|
-
},
|
|
1032
|
-
return
|
|
1011
|
+
}, Be = function(e, r, n) {
|
|
1012
|
+
return We(qe(ue(e, n), r), !0, n);
|
|
1013
|
+
}, he = function(e, r) {
|
|
1014
|
+
return We(qe(ue(e), r), !1);
|
|
1015
|
+
}, Pn = function(e, r) {
|
|
1016
|
+
return qe(xn(e), r);
|
|
1033
1017
|
}, z = function(e, r) {
|
|
1034
|
-
return e.shadowRoot ? z(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : U(e.children).some(function(
|
|
1035
|
-
var
|
|
1036
|
-
if (
|
|
1037
|
-
var o = (
|
|
1018
|
+
return e.shadowRoot ? z(e.shadowRoot, r) : Object.getPrototypeOf(e).contains !== void 0 && Object.getPrototypeOf(e).contains.call(e, r) ? !0 : U(e.children).some(function(n) {
|
|
1019
|
+
var t;
|
|
1020
|
+
if (n instanceof HTMLIFrameElement) {
|
|
1021
|
+
var o = (t = n.contentDocument) === null || t === void 0 ? void 0 : t.body;
|
|
1038
1022
|
return o ? z(o, r) : !1;
|
|
1039
1023
|
}
|
|
1040
|
-
return z(
|
|
1024
|
+
return z(n, r);
|
|
1041
1025
|
});
|
|
1042
|
-
},
|
|
1043
|
-
for (var r = /* @__PURE__ */ new Set(),
|
|
1044
|
-
for (var o =
|
|
1045
|
-
var a = e[
|
|
1046
|
-
(a & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && r.add(o), (a & Node.DOCUMENT_POSITION_CONTAINS) > 0 && r.add(
|
|
1026
|
+
}, wn = function(e) {
|
|
1027
|
+
for (var r = /* @__PURE__ */ new Set(), n = e.length, t = 0; t < n; t += 1)
|
|
1028
|
+
for (var o = t + 1; o < n; o += 1) {
|
|
1029
|
+
var a = e[t].compareDocumentPosition(e[o]);
|
|
1030
|
+
(a & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && r.add(o), (a & Node.DOCUMENT_POSITION_CONTAINS) > 0 && r.add(t);
|
|
1047
1031
|
}
|
|
1048
1032
|
return e.filter(function(f, s) {
|
|
1049
1033
|
return !r.has(s);
|
|
1050
1034
|
});
|
|
1051
|
-
},
|
|
1052
|
-
return e.parentNode ?
|
|
1053
|
-
},
|
|
1035
|
+
}, wr = function(e) {
|
|
1036
|
+
return e.parentNode ? wr(e.parentNode) : e;
|
|
1037
|
+
}, Ye = function(e) {
|
|
1054
1038
|
var r = J(e);
|
|
1055
|
-
return r.filter(Boolean).reduce(function(
|
|
1056
|
-
var o =
|
|
1057
|
-
return
|
|
1039
|
+
return r.filter(Boolean).reduce(function(n, t) {
|
|
1040
|
+
var o = t.getAttribute(Ie);
|
|
1041
|
+
return n.push.apply(n, o ? wn(U(wr(t).querySelectorAll("[".concat(Ie, '="').concat(o, '"]:not([').concat(pr, '="disabled"])')))) : [t]), n;
|
|
1058
1042
|
}, []);
|
|
1059
|
-
},
|
|
1043
|
+
}, _n = function(e) {
|
|
1060
1044
|
try {
|
|
1061
1045
|
return e();
|
|
1062
1046
|
} catch {
|
|
1063
1047
|
return;
|
|
1064
1048
|
}
|
|
1065
|
-
},
|
|
1049
|
+
}, pe = function(e) {
|
|
1066
1050
|
if (e === void 0 && (e = document), !(!e || !e.activeElement)) {
|
|
1067
1051
|
var r = e.activeElement;
|
|
1068
|
-
return r.shadowRoot ?
|
|
1052
|
+
return r.shadowRoot ? pe(r.shadowRoot) : r instanceof HTMLIFrameElement && _n(function() {
|
|
1069
1053
|
return r.contentWindow.document;
|
|
1070
|
-
}) ?
|
|
1054
|
+
}) ? pe(r.contentWindow.document) : r;
|
|
1071
1055
|
}
|
|
1072
|
-
},
|
|
1056
|
+
}, Rn = function(e, r) {
|
|
1073
1057
|
return e === r;
|
|
1074
|
-
},
|
|
1075
|
-
return !!U(e.querySelectorAll("iframe")).some(function(
|
|
1076
|
-
return
|
|
1058
|
+
}, Cn = function(e, r) {
|
|
1059
|
+
return !!U(e.querySelectorAll("iframe")).some(function(n) {
|
|
1060
|
+
return Rn(n, r);
|
|
1077
1061
|
});
|
|
1078
|
-
},
|
|
1079
|
-
return r === void 0 && (r =
|
|
1080
|
-
return z(
|
|
1062
|
+
}, _r = function(e, r) {
|
|
1063
|
+
return r === void 0 && (r = pe(br(e).ownerDocument)), !r || r.dataset && r.dataset.focusGuard ? !1 : Ye(e).some(function(n) {
|
|
1064
|
+
return z(n, r) || Cn(n, r);
|
|
1081
1065
|
});
|
|
1082
|
-
},
|
|
1066
|
+
}, Fn = function(e) {
|
|
1083
1067
|
e === void 0 && (e = document);
|
|
1084
|
-
var r =
|
|
1085
|
-
return r ? U(e.querySelectorAll("[".concat(Qr, "]"))).some(function(
|
|
1086
|
-
return z(
|
|
1068
|
+
var r = pe(e);
|
|
1069
|
+
return r ? U(e.querySelectorAll("[".concat(Qr, "]"))).some(function(n) {
|
|
1070
|
+
return z(n, r);
|
|
1087
1071
|
}) : !1;
|
|
1088
|
-
},
|
|
1089
|
-
return r.filter(
|
|
1090
|
-
return
|
|
1091
|
-
}).filter(function(
|
|
1092
|
-
return
|
|
1072
|
+
}, An = function(e, r) {
|
|
1073
|
+
return r.filter(xr).filter(function(n) {
|
|
1074
|
+
return n.name === e.name;
|
|
1075
|
+
}).filter(function(n) {
|
|
1076
|
+
return n.checked;
|
|
1093
1077
|
})[0] || e;
|
|
1094
|
-
},
|
|
1095
|
-
return
|
|
1096
|
-
},
|
|
1078
|
+
}, Ge = function(e, r) {
|
|
1079
|
+
return xr(e) && e.name ? An(e, r) : e;
|
|
1080
|
+
}, In = function(e) {
|
|
1097
1081
|
var r = /* @__PURE__ */ new Set();
|
|
1098
|
-
return e.forEach(function(
|
|
1099
|
-
return r.add(
|
|
1100
|
-
}), e.filter(function(
|
|
1101
|
-
return r.has(
|
|
1082
|
+
return e.forEach(function(n) {
|
|
1083
|
+
return r.add(Ge(n, e));
|
|
1084
|
+
}), e.filter(function(n) {
|
|
1085
|
+
return r.has(n);
|
|
1102
1086
|
});
|
|
1103
|
-
},
|
|
1104
|
-
return e[0] && e.length > 1 ?
|
|
1105
|
-
},
|
|
1106
|
-
return e.indexOf(
|
|
1107
|
-
},
|
|
1108
|
-
var a = e.length, f = e[0], s = e[a - 1], b =
|
|
1109
|
-
if (!(
|
|
1110
|
-
var l =
|
|
1087
|
+
}, ir = function(e) {
|
|
1088
|
+
return e[0] && e.length > 1 ? Ge(e[0], e) : e[0];
|
|
1089
|
+
}, ur = function(e, r) {
|
|
1090
|
+
return e.indexOf(Ge(r, e));
|
|
1091
|
+
}, De = "NEW_FOCUS", Mn = function(e, r, n, t, o) {
|
|
1092
|
+
var a = e.length, f = e[0], s = e[a - 1], b = Le(t);
|
|
1093
|
+
if (!(t && e.indexOf(t) >= 0)) {
|
|
1094
|
+
var l = t !== void 0 ? n.indexOf(t) : -1, p = o ? n.indexOf(o) : l, v = o ? e.indexOf(o) : -1;
|
|
1111
1095
|
if (l === -1)
|
|
1112
|
-
return v !== -1 ? v :
|
|
1096
|
+
return v !== -1 ? v : De;
|
|
1113
1097
|
if (v === -1)
|
|
1114
|
-
return
|
|
1115
|
-
var m = l - p,
|
|
1098
|
+
return De;
|
|
1099
|
+
var m = l - p, g = n.indexOf(f), h = n.indexOf(s), y = In(n), A = t !== void 0 ? y.indexOf(t) : -1, k = A - (o ? y.indexOf(o) : l);
|
|
1116
1100
|
if (!m && v >= 0 || r.length === 0)
|
|
1117
1101
|
return v;
|
|
1118
|
-
var
|
|
1119
|
-
if (l <=
|
|
1102
|
+
var j = ur(e, r[0]), I = ur(e, r[r.length - 1]);
|
|
1103
|
+
if (l <= g && b && Math.abs(m) > 1)
|
|
1120
1104
|
return I;
|
|
1121
1105
|
if (l >= h && b && Math.abs(m) > 1)
|
|
1122
|
-
return
|
|
1123
|
-
if (m && Math.abs(
|
|
1106
|
+
return j;
|
|
1107
|
+
if (m && Math.abs(k) > 1)
|
|
1124
1108
|
return v;
|
|
1125
|
-
if (l <=
|
|
1109
|
+
if (l <= g)
|
|
1126
1110
|
return I;
|
|
1127
1111
|
if (l > h)
|
|
1128
|
-
return
|
|
1112
|
+
return j;
|
|
1129
1113
|
if (m)
|
|
1130
1114
|
return Math.abs(m) > 1 ? v : (a + v + m) % a;
|
|
1131
1115
|
}
|
|
1132
|
-
},
|
|
1116
|
+
}, Dn = function(e) {
|
|
1133
1117
|
return function(r) {
|
|
1134
|
-
var
|
|
1118
|
+
var n, t = (n = Or(r)) === null || n === void 0 ? void 0 : n.autofocus;
|
|
1135
1119
|
return (
|
|
1136
1120
|
// @ts-expect-error
|
|
1137
1121
|
r.autofocus || //
|
|
1138
|
-
|
|
1122
|
+
t !== void 0 && t !== "false" || //
|
|
1139
1123
|
e.indexOf(r) >= 0
|
|
1140
1124
|
);
|
|
1141
1125
|
};
|
|
1142
|
-
},
|
|
1143
|
-
var
|
|
1126
|
+
}, cr = function(e, r, n) {
|
|
1127
|
+
var t = e.map(function(a) {
|
|
1144
1128
|
var f = a.node;
|
|
1145
1129
|
return f;
|
|
1146
|
-
}), o =
|
|
1147
|
-
return o && o.length ?
|
|
1130
|
+
}), o = ar(t.filter(Dn(n)));
|
|
1131
|
+
return o && o.length ? ir(o) : ir(ar(r));
|
|
1148
1132
|
}, ke = function(e, r) {
|
|
1149
1133
|
return r === void 0 && (r = []), r.push(e), e.parentNode && ke(e.parentNode.host || e.parentNode, r), r;
|
|
1150
|
-
},
|
|
1151
|
-
for (var
|
|
1152
|
-
var a =
|
|
1153
|
-
if (
|
|
1134
|
+
}, _e = function(e, r) {
|
|
1135
|
+
for (var n = ke(e), t = ke(r), o = 0; o < n.length; o += 1) {
|
|
1136
|
+
var a = n[o];
|
|
1137
|
+
if (t.indexOf(a) >= 0)
|
|
1154
1138
|
return a;
|
|
1155
1139
|
}
|
|
1156
1140
|
return !1;
|
|
1157
|
-
},
|
|
1158
|
-
var
|
|
1141
|
+
}, Rr = function(e, r, n) {
|
|
1142
|
+
var t = J(e), o = J(r), a = t[0], f = !1;
|
|
1159
1143
|
return o.filter(Boolean).forEach(function(s) {
|
|
1160
|
-
f =
|
|
1161
|
-
var l =
|
|
1162
|
-
l && (!f || z(l, f) ? f = l : f =
|
|
1144
|
+
f = _e(f || s, s) || f, n.filter(Boolean).forEach(function(b) {
|
|
1145
|
+
var l = _e(a, b);
|
|
1146
|
+
l && (!f || z(l, f) ? f = l : f = _e(l, f));
|
|
1163
1147
|
});
|
|
1164
1148
|
}), f;
|
|
1165
|
-
},
|
|
1166
|
-
return e.reduce(function(
|
|
1167
|
-
return
|
|
1149
|
+
}, fr = function(e, r) {
|
|
1150
|
+
return e.reduce(function(n, t) {
|
|
1151
|
+
return n.concat(Pn(t, r));
|
|
1168
1152
|
}, []);
|
|
1169
|
-
},
|
|
1170
|
-
var
|
|
1171
|
-
return r.forEach(function(
|
|
1172
|
-
return
|
|
1173
|
-
}), e.map(function(
|
|
1174
|
-
return
|
|
1175
|
-
}).filter(
|
|
1176
|
-
},
|
|
1177
|
-
var
|
|
1153
|
+
}, kn = function(e, r) {
|
|
1154
|
+
var n = /* @__PURE__ */ new Map();
|
|
1155
|
+
return r.forEach(function(t) {
|
|
1156
|
+
return n.set(t.node, t);
|
|
1157
|
+
}), e.map(function(t) {
|
|
1158
|
+
return n.get(t);
|
|
1159
|
+
}).filter(hn);
|
|
1160
|
+
}, Nn = function(e, r) {
|
|
1161
|
+
var n = pe(J(e).length > 0 ? document : br(e).ownerDocument), t = Ye(e).filter(Me), o = Rr(n || e, e, t), a = /* @__PURE__ */ new Map(), f = he(t, a), s = f.filter(function(h) {
|
|
1178
1162
|
var y = h.node;
|
|
1179
|
-
return
|
|
1163
|
+
return Me(y);
|
|
1180
1164
|
});
|
|
1181
1165
|
if (s[0]) {
|
|
1182
|
-
var b =
|
|
1166
|
+
var b = he([o], a).map(function(h) {
|
|
1183
1167
|
var y = h.node;
|
|
1184
1168
|
return y;
|
|
1185
|
-
}), l =
|
|
1169
|
+
}), l = kn(b, s), p = l.map(function(h) {
|
|
1186
1170
|
var y = h.node;
|
|
1187
1171
|
return y;
|
|
1188
1172
|
}), v = l.filter(function(h) {
|
|
@@ -1191,43 +1175,43 @@ var U = function(e) {
|
|
|
1191
1175
|
}).map(function(h) {
|
|
1192
1176
|
var y = h.node;
|
|
1193
1177
|
return y;
|
|
1194
|
-
}), m =
|
|
1195
|
-
if (m ===
|
|
1196
|
-
var
|
|
1178
|
+
}), m = Mn(p, v, b, n, r);
|
|
1179
|
+
if (m === De) {
|
|
1180
|
+
var g = (
|
|
1197
1181
|
// first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
|
|
1198
|
-
|
|
1182
|
+
cr(f, v, fr(t, a)) || cr(f, p, fr(t, a))
|
|
1199
1183
|
);
|
|
1200
|
-
if (
|
|
1201
|
-
return { node:
|
|
1184
|
+
if (g)
|
|
1185
|
+
return { node: g };
|
|
1202
1186
|
console.warn("focus-lock: cannot find any node to move focus into");
|
|
1203
1187
|
return;
|
|
1204
1188
|
}
|
|
1205
1189
|
return m === void 0 ? m : l[m];
|
|
1206
1190
|
}
|
|
1207
|
-
},
|
|
1208
|
-
var r =
|
|
1209
|
-
return
|
|
1191
|
+
}, jn = function(e) {
|
|
1192
|
+
var r = Ye(e).filter(Me), n = Rr(e, e, r), t = We(ue([n], !0), !0, !0), o = ue(r, !1);
|
|
1193
|
+
return t.map(function(a) {
|
|
1210
1194
|
var f = a.node, s = a.index;
|
|
1211
1195
|
return {
|
|
1212
1196
|
node: f,
|
|
1213
1197
|
index: s,
|
|
1214
1198
|
lockItem: o.indexOf(f) >= 0,
|
|
1215
|
-
guard:
|
|
1199
|
+
guard: Le(f)
|
|
1216
1200
|
};
|
|
1217
1201
|
});
|
|
1218
|
-
},
|
|
1202
|
+
}, He = function(e, r) {
|
|
1219
1203
|
e && ("focus" in e && e.focus(r), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1222
|
-
var
|
|
1223
|
-
if (!
|
|
1224
|
-
if (
|
|
1225
|
-
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),
|
|
1226
|
-
|
|
1204
|
+
}, Re = 0, Ce = !1, Cr = function(e, r, n) {
|
|
1205
|
+
n === void 0 && (n = {});
|
|
1206
|
+
var t = Nn(e, r);
|
|
1207
|
+
if (!Ce && t) {
|
|
1208
|
+
if (Re > 2) {
|
|
1209
|
+
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"), Ce = !0, setTimeout(function() {
|
|
1210
|
+
Ce = !1;
|
|
1227
1211
|
}, 1);
|
|
1228
1212
|
return;
|
|
1229
1213
|
}
|
|
1230
|
-
|
|
1214
|
+
Re++, He(t.node, n.focusOptions), Re--;
|
|
1231
1215
|
}
|
|
1232
1216
|
};
|
|
1233
1217
|
function le(e) {
|
|
@@ -1242,63 +1226,63 @@ function le(e) {
|
|
|
1242
1226
|
return (r == null ? void 0 : r.deref()) || null;
|
|
1243
1227
|
};
|
|
1244
1228
|
}
|
|
1245
|
-
var $
|
|
1229
|
+
var $n = function(e) {
|
|
1246
1230
|
if (!e)
|
|
1247
1231
|
return null;
|
|
1248
|
-
for (var r = [],
|
|
1232
|
+
for (var r = [], n = e; n && n !== document.body; )
|
|
1249
1233
|
r.push({
|
|
1250
|
-
current: le(
|
|
1251
|
-
parent: le(
|
|
1252
|
-
left: le(
|
|
1253
|
-
right: le(
|
|
1254
|
-
}),
|
|
1234
|
+
current: le(n),
|
|
1235
|
+
parent: le(n.parentElement),
|
|
1236
|
+
left: le(n.previousElementSibling),
|
|
1237
|
+
right: le(n.nextElementSibling)
|
|
1238
|
+
}), n = n.parentElement;
|
|
1255
1239
|
return {
|
|
1256
1240
|
element: le(e),
|
|
1257
1241
|
stack: r,
|
|
1258
1242
|
ownerDocument: e.ownerDocument
|
|
1259
1243
|
};
|
|
1260
|
-
},
|
|
1261
|
-
var r,
|
|
1244
|
+
}, Ln = function(e) {
|
|
1245
|
+
var r, n, t, o, a;
|
|
1262
1246
|
if (e)
|
|
1263
1247
|
for (var f = e.stack, s = e.ownerDocument, b = /* @__PURE__ */ new Map(), l = 0, p = f; l < p.length; l++) {
|
|
1264
1248
|
var v = p[l], m = (r = v.parent) === null || r === void 0 ? void 0 : r.call(v);
|
|
1265
1249
|
if (m && s.contains(m)) {
|
|
1266
|
-
for (var
|
|
1250
|
+
for (var g = (n = v.left) === null || n === void 0 ? void 0 : n.call(v), h = v.current(), y = m.contains(h) ? h : void 0, A = (t = v.right) === null || t === void 0 ? void 0 : t.call(v), k = Be([m], b), j = (
|
|
1267
1251
|
// that is element itself
|
|
1268
1252
|
(a = (o = y ?? // or something in it's place
|
|
1269
|
-
(
|
|
1253
|
+
(g == null ? void 0 : g.nextElementSibling)) !== null && o !== void 0 ? o : (
|
|
1270
1254
|
// or somebody to the right, still close enough
|
|
1271
1255
|
A
|
|
1272
1256
|
)) !== null && a !== void 0 ? a : (
|
|
1273
1257
|
// or somebody to the left, something?
|
|
1274
|
-
|
|
1258
|
+
g
|
|
1275
1259
|
)
|
|
1276
|
-
);
|
|
1277
|
-
for (var I = 0,
|
|
1278
|
-
var u =
|
|
1279
|
-
if (
|
|
1260
|
+
); j; ) {
|
|
1261
|
+
for (var I = 0, N = k; I < N.length; I++) {
|
|
1262
|
+
var u = N[I];
|
|
1263
|
+
if (j != null && j.contains(u.node))
|
|
1280
1264
|
return u.node;
|
|
1281
1265
|
}
|
|
1282
|
-
|
|
1266
|
+
j = j.nextElementSibling;
|
|
1283
1267
|
}
|
|
1284
|
-
if (
|
|
1285
|
-
return
|
|
1268
|
+
if (k.length)
|
|
1269
|
+
return k[0].node;
|
|
1286
1270
|
}
|
|
1287
1271
|
}
|
|
1288
|
-
},
|
|
1289
|
-
var r = $
|
|
1272
|
+
}, Wn = function(e) {
|
|
1273
|
+
var r = $n(e);
|
|
1290
1274
|
return function() {
|
|
1291
|
-
return
|
|
1275
|
+
return Ln(r);
|
|
1292
1276
|
};
|
|
1293
|
-
},
|
|
1277
|
+
}, Un = function(e, r, n) {
|
|
1294
1278
|
if (!e || !r)
|
|
1295
1279
|
return console.error("no element or scope given"), {};
|
|
1296
|
-
var
|
|
1297
|
-
if (
|
|
1280
|
+
var t = J(r);
|
|
1281
|
+
if (t.every(function(f) {
|
|
1298
1282
|
return !z(f, e);
|
|
1299
1283
|
}))
|
|
1300
1284
|
return console.error("Active element is not contained in the scope"), {};
|
|
1301
|
-
var o =
|
|
1285
|
+
var o = n ? Be(t, /* @__PURE__ */ new Map()) : he(t, /* @__PURE__ */ new Map()), a = o.findIndex(function(f) {
|
|
1302
1286
|
var s = f.node;
|
|
1303
1287
|
return s === e;
|
|
1304
1288
|
});
|
|
@@ -1309,68 +1293,68 @@ var $t = function(e) {
|
|
|
1309
1293
|
first: o[0],
|
|
1310
1294
|
last: o[o.length - 1]
|
|
1311
1295
|
};
|
|
1312
|
-
},
|
|
1313
|
-
var
|
|
1296
|
+
}, qn = function(e, r) {
|
|
1297
|
+
var n = r ? Be(J(e), /* @__PURE__ */ new Map()) : he(J(e), /* @__PURE__ */ new Map());
|
|
1314
1298
|
return {
|
|
1315
|
-
first:
|
|
1316
|
-
last:
|
|
1299
|
+
first: n[0],
|
|
1300
|
+
last: n[n.length - 1]
|
|
1317
1301
|
};
|
|
1318
|
-
},
|
|
1302
|
+
}, Bn = function(e) {
|
|
1319
1303
|
return Object.assign({
|
|
1320
1304
|
scope: document.body,
|
|
1321
1305
|
cycle: !0,
|
|
1322
1306
|
onlyTabbable: !0
|
|
1323
1307
|
}, e);
|
|
1324
|
-
},
|
|
1308
|
+
}, Fr = function(e, r, n) {
|
|
1325
1309
|
r === void 0 && (r = {});
|
|
1326
|
-
var
|
|
1310
|
+
var t = Bn(r), o = Un(e, t.scope, t.onlyTabbable);
|
|
1327
1311
|
if (o) {
|
|
1328
|
-
var a =
|
|
1329
|
-
a &&
|
|
1312
|
+
var a = n(o, t.cycle);
|
|
1313
|
+
a && He(a.node, t.focusOptions);
|
|
1330
1314
|
}
|
|
1331
|
-
},
|
|
1332
|
-
r === void 0 && (r = {}),
|
|
1333
|
-
var o =
|
|
1334
|
-
return o ||
|
|
1315
|
+
}, Yn = function(e, r) {
|
|
1316
|
+
r === void 0 && (r = {}), Fr(e, r, function(n, t) {
|
|
1317
|
+
var o = n.next, a = n.first;
|
|
1318
|
+
return o || t && a;
|
|
1335
1319
|
});
|
|
1336
|
-
},
|
|
1337
|
-
r === void 0 && (r = {}),
|
|
1338
|
-
var o =
|
|
1339
|
-
return o ||
|
|
1320
|
+
}, Gn = function(e, r) {
|
|
1321
|
+
r === void 0 && (r = {}), Fr(e, r, function(n, t) {
|
|
1322
|
+
var o = n.prev, a = n.last;
|
|
1323
|
+
return o || t && a;
|
|
1340
1324
|
});
|
|
1341
|
-
},
|
|
1342
|
-
var
|
|
1343
|
-
a &&
|
|
1344
|
-
},
|
|
1345
|
-
r === void 0 && (r = {}),
|
|
1346
|
-
},
|
|
1347
|
-
r === void 0 && (r = {}),
|
|
1325
|
+
}, Ar = function(e, r, n) {
|
|
1326
|
+
var t, o = qn(e, (t = r.onlyTabbable) !== null && t !== void 0 ? t : !0), a = o[n];
|
|
1327
|
+
a && He(a.node, r.focusOptions);
|
|
1328
|
+
}, Hn = function(e, r) {
|
|
1329
|
+
r === void 0 && (r = {}), Ar(e, r, "first");
|
|
1330
|
+
}, Vn = function(e, r) {
|
|
1331
|
+
r === void 0 && (r = {}), Ar(e, r, "last");
|
|
1348
1332
|
};
|
|
1349
|
-
function
|
|
1333
|
+
function Ve(e) {
|
|
1350
1334
|
setTimeout(e, 1);
|
|
1351
1335
|
}
|
|
1352
|
-
var
|
|
1336
|
+
var zn = function(r) {
|
|
1353
1337
|
return r && "current" in r ? r.current : r;
|
|
1354
|
-
},
|
|
1338
|
+
}, Jn = function() {
|
|
1355
1339
|
return document && document.activeElement === document.body;
|
|
1356
|
-
},
|
|
1357
|
-
return
|
|
1358
|
-
}, ae = null, oe = null, ie = null,
|
|
1340
|
+
}, Kn = function() {
|
|
1341
|
+
return Jn() || Fn();
|
|
1342
|
+
}, ae = null, oe = null, ie = null, ye = !1, Xn = function() {
|
|
1359
1343
|
return !0;
|
|
1360
|
-
},
|
|
1361
|
-
return (ae.whiteList ||
|
|
1362
|
-
},
|
|
1344
|
+
}, Zn = function(r) {
|
|
1345
|
+
return (ae.whiteList || Xn)(r);
|
|
1346
|
+
}, Qn = function(r, n) {
|
|
1363
1347
|
ie = {
|
|
1364
1348
|
observerNode: r,
|
|
1365
|
-
portaledElement:
|
|
1349
|
+
portaledElement: n
|
|
1366
1350
|
};
|
|
1367
|
-
},
|
|
1351
|
+
}, et = function(r) {
|
|
1368
1352
|
return ie && ie.portaledElement === r;
|
|
1369
1353
|
};
|
|
1370
|
-
function
|
|
1354
|
+
function sr(e, r, n, t) {
|
|
1371
1355
|
var o = null, a = e;
|
|
1372
1356
|
do {
|
|
1373
|
-
var f =
|
|
1357
|
+
var f = t[a];
|
|
1374
1358
|
if (f.guard)
|
|
1375
1359
|
f.node.dataset.focusAutoGuard && (o = f);
|
|
1376
1360
|
else if (f.lockItem) {
|
|
@@ -1379,100 +1363,100 @@ function dr(e, r, t, n) {
|
|
|
1379
1363
|
o = null;
|
|
1380
1364
|
} else
|
|
1381
1365
|
break;
|
|
1382
|
-
} while ((a +=
|
|
1366
|
+
} while ((a += n) !== r);
|
|
1383
1367
|
o && (o.node.tabIndex = 0);
|
|
1384
1368
|
}
|
|
1385
|
-
var
|
|
1386
|
-
return r ? !!
|
|
1387
|
-
},
|
|
1388
|
-
return
|
|
1389
|
-
},
|
|
1390
|
-
return
|
|
1391
|
-
return
|
|
1369
|
+
var rt = function(r) {
|
|
1370
|
+
return r ? !!ye : ye === "meanwhile";
|
|
1371
|
+
}, nt = function e(r, n, t) {
|
|
1372
|
+
return n && (n.host === r && (!n.activeElement || t.contains(n.activeElement)) || n.parentNode && e(r, n.parentNode, t));
|
|
1373
|
+
}, tt = function(r, n) {
|
|
1374
|
+
return n.some(function(t) {
|
|
1375
|
+
return nt(r, t, t);
|
|
1392
1376
|
});
|
|
1393
1377
|
}, Ee = function() {
|
|
1394
1378
|
var r = !1;
|
|
1395
1379
|
if (ae) {
|
|
1396
|
-
var
|
|
1380
|
+
var n = ae, t = n.observed, o = n.persistentFocus, a = n.autoFocus, f = n.shards, s = n.crossFrame, b = n.focusOptions, l = t || ie && ie.portaledElement, p = document && document.activeElement;
|
|
1397
1381
|
if (l) {
|
|
1398
|
-
var v = [l].concat(f.map(
|
|
1399
|
-
if ((!p ||
|
|
1382
|
+
var v = [l].concat(f.map(zn).filter(Boolean));
|
|
1383
|
+
if ((!p || Zn(p)) && (o || rt(s) || !Kn() || !oe && a) && (l && !(_r(v) || p && tt(p, v) || et(p)) && (document && !oe && p && !a ? (p.blur && p.blur(), document.body.focus()) : (r = Cr(v, oe, {
|
|
1400
1384
|
focusOptions: b
|
|
1401
|
-
}), ie = {})),
|
|
1402
|
-
var m = document && document.activeElement,
|
|
1385
|
+
}), ie = {})), ye = !1, oe = document && document.activeElement), document && p !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
|
|
1386
|
+
var m = document && document.activeElement, g = jn(v), h = g.map(function(y) {
|
|
1403
1387
|
var A = y.node;
|
|
1404
1388
|
return A;
|
|
1405
1389
|
}).indexOf(m);
|
|
1406
|
-
h > -1 && (
|
|
1407
|
-
var A = y.guard,
|
|
1408
|
-
return A &&
|
|
1390
|
+
h > -1 && (g.filter(function(y) {
|
|
1391
|
+
var A = y.guard, k = y.node;
|
|
1392
|
+
return A && k.dataset.focusAutoGuard;
|
|
1409
1393
|
}).forEach(function(y) {
|
|
1410
1394
|
var A = y.node;
|
|
1411
1395
|
return A.removeAttribute("tabIndex");
|
|
1412
|
-
}),
|
|
1396
|
+
}), sr(h, g.length, 1, g), sr(h, -1, -1, g));
|
|
1413
1397
|
}
|
|
1414
1398
|
}
|
|
1415
1399
|
}
|
|
1416
1400
|
return r;
|
|
1417
|
-
},
|
|
1401
|
+
}, Ir = function(r) {
|
|
1418
1402
|
Ee() && r && (r.stopPropagation(), r.preventDefault());
|
|
1419
|
-
},
|
|
1420
|
-
return
|
|
1421
|
-
},
|
|
1422
|
-
var
|
|
1423
|
-
|
|
1424
|
-
},
|
|
1403
|
+
}, ze = function() {
|
|
1404
|
+
return Ve(Ee);
|
|
1405
|
+
}, ot = function(r) {
|
|
1406
|
+
var n = r.target, t = r.currentTarget;
|
|
1407
|
+
t.contains(n) || Qn(t, n);
|
|
1408
|
+
}, at = function() {
|
|
1425
1409
|
return null;
|
|
1426
1410
|
};
|
|
1427
|
-
process.env.NODE_ENV !== "production" &&
|
|
1428
|
-
var
|
|
1429
|
-
|
|
1430
|
-
|
|
1411
|
+
process.env.NODE_ENV !== "production" && vr.node.isRequired;
|
|
1412
|
+
var Mr = function() {
|
|
1413
|
+
ye = "just", Ve(function() {
|
|
1414
|
+
ye = "meanwhile";
|
|
1431
1415
|
});
|
|
1432
|
-
},
|
|
1433
|
-
document.addEventListener("focusin",
|
|
1434
|
-
},
|
|
1435
|
-
document.removeEventListener("focusin",
|
|
1416
|
+
}, it = function() {
|
|
1417
|
+
document.addEventListener("focusin", Ir), document.addEventListener("focusout", ze), window.addEventListener("blur", Mr);
|
|
1418
|
+
}, ut = function() {
|
|
1419
|
+
document.removeEventListener("focusin", Ir), document.removeEventListener("focusout", ze), window.removeEventListener("blur", Mr);
|
|
1436
1420
|
};
|
|
1437
|
-
function
|
|
1421
|
+
function ct(e) {
|
|
1438
1422
|
return e.filter(function(r) {
|
|
1439
|
-
var
|
|
1440
|
-
return !
|
|
1423
|
+
var n = r.disabled;
|
|
1424
|
+
return !n;
|
|
1441
1425
|
});
|
|
1442
1426
|
}
|
|
1443
|
-
var
|
|
1444
|
-
moveFocusInside:
|
|
1445
|
-
focusInside:
|
|
1446
|
-
focusNextElement:
|
|
1447
|
-
focusPrevElement:
|
|
1448
|
-
focusFirstElement:
|
|
1449
|
-
focusLastElement:
|
|
1450
|
-
captureFocusRestore:
|
|
1427
|
+
var Dr = {
|
|
1428
|
+
moveFocusInside: Cr,
|
|
1429
|
+
focusInside: _r,
|
|
1430
|
+
focusNextElement: Yn,
|
|
1431
|
+
focusPrevElement: Gn,
|
|
1432
|
+
focusFirstElement: Hn,
|
|
1433
|
+
focusLastElement: Vn,
|
|
1434
|
+
captureFocusRestore: Wn
|
|
1451
1435
|
};
|
|
1452
|
-
function
|
|
1436
|
+
function ft(e) {
|
|
1453
1437
|
var r = e.slice(-1)[0];
|
|
1454
|
-
r && !ae &&
|
|
1455
|
-
var
|
|
1456
|
-
ae = r,
|
|
1438
|
+
r && !ae && it();
|
|
1439
|
+
var n = ae, t = n && r && r.id === n.id;
|
|
1440
|
+
ae = r, n && !t && (n.onDeactivation(), e.filter(function(o) {
|
|
1457
1441
|
var a = o.id;
|
|
1458
|
-
return a ===
|
|
1459
|
-
}).length ||
|
|
1442
|
+
return a === n.id;
|
|
1443
|
+
}).length || n.returnFocus(!r)), r ? (oe = null, (!t || n.observed !== r.observed) && r.onActivation(Dr), Ee(), Ve(Ee)) : (ut(), oe = null);
|
|
1460
1444
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
return e(
|
|
1445
|
+
yr.assignSyncMedium(ot);
|
|
1446
|
+
mr.assignMedium(ze);
|
|
1447
|
+
nn.assignMedium(function(e) {
|
|
1448
|
+
return e(Dr);
|
|
1465
1449
|
});
|
|
1466
|
-
const
|
|
1467
|
-
var
|
|
1468
|
-
return /* @__PURE__ */ D.createElement(
|
|
1469
|
-
sideCar:
|
|
1470
|
-
ref:
|
|
1450
|
+
const st = sn(ct, ft)(at);
|
|
1451
|
+
var dt = /* @__PURE__ */ D.forwardRef(function(r, n) {
|
|
1452
|
+
return /* @__PURE__ */ D.createElement($e, Fe({
|
|
1453
|
+
sideCar: st,
|
|
1454
|
+
ref: n
|
|
1471
1455
|
}, r));
|
|
1472
|
-
}), kr =
|
|
1456
|
+
}), kr = $e.propTypes || {};
|
|
1473
1457
|
kr.sideCar;
|
|
1474
|
-
var
|
|
1475
|
-
|
|
1458
|
+
var lt = Yr(kr, ["sideCar"]);
|
|
1459
|
+
dt.propTypes = process.env.NODE_ENV !== "production" ? lt : {};
|
|
1476
1460
|
export {
|
|
1477
|
-
|
|
1461
|
+
dt as F
|
|
1478
1462
|
};
|