@pittorica/alert-dialog-react 0.22.0 → 0.22.3
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/index.js +317 -317
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ function me() {
|
|
|
23
23
|
function mt(e) {
|
|
24
24
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
25
25
|
}
|
|
26
|
-
var Ie = { exports: {} }, Se = { exports: {} },
|
|
26
|
+
var Ie = { exports: {} }, Se = { exports: {} }, F = {};
|
|
27
27
|
/** @license React v16.13.1
|
|
28
28
|
* react-is.production.min.js
|
|
29
29
|
*
|
|
@@ -34,9 +34,9 @@ var Ie = { exports: {} }, Se = { exports: {} }, C = {};
|
|
|
34
34
|
*/
|
|
35
35
|
var an;
|
|
36
36
|
function bt() {
|
|
37
|
-
if (an) return
|
|
37
|
+
if (an) return F;
|
|
38
38
|
an = 1;
|
|
39
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108,
|
|
39
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, b = 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, $ = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
40
40
|
function P(f) {
|
|
41
41
|
if (typeof f == "object" && f !== null) {
|
|
42
42
|
var V = f.$$typeof;
|
|
@@ -46,7 +46,7 @@ function bt() {
|
|
|
46
46
|
case m:
|
|
47
47
|
case p:
|
|
48
48
|
case r:
|
|
49
|
-
case
|
|
49
|
+
case i:
|
|
50
50
|
case o:
|
|
51
51
|
case l:
|
|
52
52
|
return f;
|
|
@@ -56,7 +56,7 @@ function bt() {
|
|
|
56
56
|
case v:
|
|
57
57
|
case h:
|
|
58
58
|
case g:
|
|
59
|
-
case
|
|
59
|
+
case u:
|
|
60
60
|
return f;
|
|
61
61
|
default:
|
|
62
62
|
return V;
|
|
@@ -67,38 +67,38 @@ function bt() {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function k(f) {
|
|
71
71
|
return P(f) === p;
|
|
72
72
|
}
|
|
73
|
-
return
|
|
74
|
-
return
|
|
75
|
-
},
|
|
73
|
+
return F.AsyncMode = m, F.ConcurrentMode = p, F.ContextConsumer = c, F.ContextProvider = u, F.Element = n, F.ForwardRef = v, F.Fragment = r, F.Lazy = h, F.Memo = g, F.Portal = t, F.Profiler = i, F.StrictMode = o, F.Suspense = l, F.isAsyncMode = function(f) {
|
|
74
|
+
return k(f) || P(f) === m;
|
|
75
|
+
}, F.isConcurrentMode = k, F.isContextConsumer = function(f) {
|
|
76
76
|
return P(f) === c;
|
|
77
|
-
},
|
|
78
|
-
return P(f) ===
|
|
79
|
-
},
|
|
77
|
+
}, F.isContextProvider = function(f) {
|
|
78
|
+
return P(f) === u;
|
|
79
|
+
}, F.isElement = function(f) {
|
|
80
80
|
return typeof f == "object" && f !== null && f.$$typeof === n;
|
|
81
|
-
},
|
|
81
|
+
}, F.isForwardRef = function(f) {
|
|
82
82
|
return P(f) === v;
|
|
83
|
-
},
|
|
83
|
+
}, F.isFragment = function(f) {
|
|
84
84
|
return P(f) === r;
|
|
85
|
-
},
|
|
85
|
+
}, F.isLazy = function(f) {
|
|
86
86
|
return P(f) === h;
|
|
87
|
-
},
|
|
87
|
+
}, F.isMemo = function(f) {
|
|
88
88
|
return P(f) === g;
|
|
89
|
-
},
|
|
89
|
+
}, F.isPortal = function(f) {
|
|
90
90
|
return P(f) === t;
|
|
91
|
-
},
|
|
92
|
-
return P(f) ===
|
|
93
|
-
},
|
|
91
|
+
}, F.isProfiler = function(f) {
|
|
92
|
+
return P(f) === i;
|
|
93
|
+
}, F.isStrictMode = function(f) {
|
|
94
94
|
return P(f) === o;
|
|
95
|
-
},
|
|
95
|
+
}, F.isSuspense = function(f) {
|
|
96
96
|
return P(f) === l;
|
|
97
|
-
},
|
|
98
|
-
return typeof f == "string" || typeof f == "function" || f === r || f === p || f ===
|
|
99
|
-
},
|
|
97
|
+
}, F.isValidElementType = function(f) {
|
|
98
|
+
return typeof f == "string" || typeof f == "function" || f === r || f === p || f === i || f === o || f === l || f === b || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === g || f.$$typeof === u || f.$$typeof === c || f.$$typeof === v || f.$$typeof === $ || f.$$typeof === _ || f.$$typeof === C || f.$$typeof === y);
|
|
99
|
+
}, F.typeOf = P, F;
|
|
100
100
|
}
|
|
101
|
-
var
|
|
101
|
+
var D = {};
|
|
102
102
|
/** @license React v16.13.1
|
|
103
103
|
* react-is.development.js
|
|
104
104
|
*
|
|
@@ -110,12 +110,12 @@ var M = {};
|
|
|
110
110
|
var cn;
|
|
111
111
|
function ht() {
|
|
112
112
|
return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
113
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108,
|
|
113
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, c = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, b = 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, $ = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
114
114
|
function P(s) {
|
|
115
115
|
return typeof s == "string" || typeof s == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
116
|
-
s === r || s === p || s ===
|
|
116
|
+
s === r || s === p || s === i || s === o || s === l || s === b || typeof s == "object" && s !== null && (s.$$typeof === h || s.$$typeof === g || s.$$typeof === u || s.$$typeof === c || s.$$typeof === v || s.$$typeof === $ || s.$$typeof === _ || s.$$typeof === C || s.$$typeof === y);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function k(s) {
|
|
119
119
|
if (typeof s == "object" && s !== null) {
|
|
120
120
|
var B = s.$$typeof;
|
|
121
121
|
switch (B) {
|
|
@@ -125,7 +125,7 @@ function ht() {
|
|
|
125
125
|
case m:
|
|
126
126
|
case p:
|
|
127
127
|
case r:
|
|
128
|
-
case
|
|
128
|
+
case i:
|
|
129
129
|
case o:
|
|
130
130
|
case l:
|
|
131
131
|
return ae;
|
|
@@ -136,7 +136,7 @@ function ht() {
|
|
|
136
136
|
case v:
|
|
137
137
|
case h:
|
|
138
138
|
case g:
|
|
139
|
-
case
|
|
139
|
+
case u:
|
|
140
140
|
return Oe;
|
|
141
141
|
default:
|
|
142
142
|
return B;
|
|
@@ -147,48 +147,48 @@ function ht() {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
-
var f = m, V = p, q = c, U =
|
|
150
|
+
var f = m, V = p, q = c, U = u, Q = n, A = v, z = r, ee = h, ie = g, J = t, ue = i, W = o, H = l, ne = !1;
|
|
151
151
|
function Z(s) {
|
|
152
|
-
return ne || (ne = !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.")), a(s) ||
|
|
152
|
+
return ne || (ne = !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.")), a(s) || k(s) === m;
|
|
153
153
|
}
|
|
154
154
|
function a(s) {
|
|
155
|
-
return
|
|
155
|
+
return k(s) === p;
|
|
156
156
|
}
|
|
157
157
|
function d(s) {
|
|
158
|
-
return
|
|
158
|
+
return k(s) === c;
|
|
159
159
|
}
|
|
160
160
|
function O(s) {
|
|
161
|
-
return
|
|
161
|
+
return k(s) === u;
|
|
162
162
|
}
|
|
163
163
|
function x(s) {
|
|
164
164
|
return typeof s == "object" && s !== null && s.$$typeof === n;
|
|
165
165
|
}
|
|
166
166
|
function E(s) {
|
|
167
|
-
return
|
|
167
|
+
return k(s) === v;
|
|
168
168
|
}
|
|
169
169
|
function S(s) {
|
|
170
|
-
return
|
|
170
|
+
return k(s) === r;
|
|
171
171
|
}
|
|
172
172
|
function w(s) {
|
|
173
|
-
return
|
|
173
|
+
return k(s) === h;
|
|
174
174
|
}
|
|
175
175
|
function N(s) {
|
|
176
|
-
return
|
|
176
|
+
return k(s) === g;
|
|
177
177
|
}
|
|
178
178
|
function T(s) {
|
|
179
|
-
return
|
|
179
|
+
return k(s) === t;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
181
|
+
function M(s) {
|
|
182
|
+
return k(s) === i;
|
|
183
183
|
}
|
|
184
184
|
function j(s) {
|
|
185
|
-
return
|
|
185
|
+
return k(s) === o;
|
|
186
186
|
}
|
|
187
187
|
function R(s) {
|
|
188
|
-
return
|
|
188
|
+
return k(s) === l;
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
}()),
|
|
190
|
+
D.AsyncMode = f, D.ConcurrentMode = V, D.ContextConsumer = q, D.ContextProvider = U, D.Element = Q, D.ForwardRef = A, D.Fragment = z, D.Lazy = ee, D.Memo = ie, D.Portal = J, D.Profiler = ue, D.StrictMode = W, D.Suspense = H, D.isAsyncMode = Z, D.isConcurrentMode = a, D.isContextConsumer = d, D.isContextProvider = O, D.isElement = x, D.isForwardRef = E, D.isFragment = S, D.isLazy = w, D.isMemo = N, D.isPortal = T, D.isProfiler = M, D.isStrictMode = j, D.isSuspense = R, D.isValidElementType = P, D.typeOf = k;
|
|
191
|
+
}()), D;
|
|
192
192
|
}
|
|
193
193
|
var fn;
|
|
194
194
|
function jn() {
|
|
@@ -204,22 +204,22 @@ function gt() {
|
|
|
204
204
|
if (sn) return Te;
|
|
205
205
|
sn = 1;
|
|
206
206
|
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
207
|
-
function r(
|
|
208
|
-
if (
|
|
207
|
+
function r(i) {
|
|
208
|
+
if (i == null)
|
|
209
209
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
210
|
-
return Object(
|
|
210
|
+
return Object(i);
|
|
211
211
|
}
|
|
212
212
|
function o() {
|
|
213
213
|
try {
|
|
214
214
|
if (!Object.assign)
|
|
215
215
|
return !1;
|
|
216
|
-
var
|
|
217
|
-
if (
|
|
216
|
+
var i = new String("abc");
|
|
217
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
218
218
|
return !1;
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
var m = Object.getOwnPropertyNames(
|
|
222
|
-
return
|
|
219
|
+
for (var u = {}, c = 0; c < 10; c++)
|
|
220
|
+
u["_" + String.fromCharCode(c)] = c;
|
|
221
|
+
var m = Object.getOwnPropertyNames(u).map(function(v) {
|
|
222
|
+
return u[v];
|
|
223
223
|
});
|
|
224
224
|
if (m.join("") !== "0123456789")
|
|
225
225
|
return !1;
|
|
@@ -231,8 +231,8 @@ function gt() {
|
|
|
231
231
|
return !1;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
return Te = o() ? Object.assign : function(
|
|
235
|
-
for (var c, m = r(
|
|
234
|
+
return Te = o() ? Object.assign : function(i, u) {
|
|
235
|
+
for (var c, m = r(i), p, v = 1; v < arguments.length; v++) {
|
|
236
236
|
c = Object(arguments[v]);
|
|
237
237
|
for (var l in c)
|
|
238
238
|
n.call(c, l) && (m[l] = c[l]);
|
|
@@ -264,28 +264,28 @@ function Et() {
|
|
|
264
264
|
};
|
|
265
265
|
if (process.env.NODE_ENV !== "production") {
|
|
266
266
|
var n = Be(), t = {}, r = Pn();
|
|
267
|
-
e = function(
|
|
268
|
-
var
|
|
269
|
-
typeof console < "u" && console.error(
|
|
267
|
+
e = function(i) {
|
|
268
|
+
var u = "Warning: " + i;
|
|
269
|
+
typeof console < "u" && console.error(u);
|
|
270
270
|
try {
|
|
271
|
-
throw new Error(
|
|
271
|
+
throw new Error(u);
|
|
272
272
|
} catch {
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function o(
|
|
276
|
+
function o(i, u, c, m, p) {
|
|
277
277
|
if (process.env.NODE_ENV !== "production") {
|
|
278
|
-
for (var v in
|
|
279
|
-
if (r(
|
|
278
|
+
for (var v in i)
|
|
279
|
+
if (r(i, v)) {
|
|
280
280
|
var l;
|
|
281
281
|
try {
|
|
282
|
-
if (typeof
|
|
282
|
+
if (typeof i[v] != "function") {
|
|
283
283
|
var b = Error(
|
|
284
|
-
(m || "React class") + ": " + c + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
284
|
+
(m || "React class") + ": " + c + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
285
285
|
);
|
|
286
286
|
throw b.name = "Invariant Violation", b;
|
|
287
287
|
}
|
|
288
|
-
l =
|
|
288
|
+
l = i[v](u, v, m, c, null, n);
|
|
289
289
|
} catch (h) {
|
|
290
290
|
l = h;
|
|
291
291
|
}
|
|
@@ -309,9 +309,9 @@ var _e, yn;
|
|
|
309
309
|
function Ot() {
|
|
310
310
|
if (yn) return _e;
|
|
311
311
|
yn = 1;
|
|
312
|
-
var e = jn(), n = gt(), t = Be(), r = Pn(), o = Et(),
|
|
312
|
+
var e = jn(), n = gt(), t = Be(), r = Pn(), o = Et(), i = function() {
|
|
313
313
|
};
|
|
314
|
-
process.env.NODE_ENV !== "production" && (
|
|
314
|
+
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
315
315
|
var m = "Warning: " + c;
|
|
316
316
|
typeof console < "u" && console.error(m);
|
|
317
317
|
try {
|
|
@@ -319,7 +319,7 @@ function Ot() {
|
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
|
-
function
|
|
322
|
+
function u() {
|
|
323
323
|
return null;
|
|
324
324
|
}
|
|
325
325
|
return _e = function(c, m) {
|
|
@@ -338,9 +338,9 @@ function Ot() {
|
|
|
338
338
|
object: _("object"),
|
|
339
339
|
string: _("string"),
|
|
340
340
|
symbol: _("symbol"),
|
|
341
|
-
any:
|
|
341
|
+
any: C(),
|
|
342
342
|
arrayOf: P,
|
|
343
|
-
element:
|
|
343
|
+
element: k(),
|
|
344
344
|
elementType: f(),
|
|
345
345
|
instanceOf: V,
|
|
346
346
|
node: A(),
|
|
@@ -348,7 +348,7 @@ function Ot() {
|
|
|
348
348
|
oneOf: q,
|
|
349
349
|
oneOfType: Q,
|
|
350
350
|
shape: ee,
|
|
351
|
-
exact:
|
|
351
|
+
exact: ie
|
|
352
352
|
};
|
|
353
353
|
function h(a, d) {
|
|
354
354
|
return a === d ? a !== 0 || 1 / a === 1 / d : a !== a && d !== d;
|
|
@@ -357,10 +357,10 @@ function Ot() {
|
|
|
357
357
|
this.message = a, this.data = d && typeof d == "object" ? d : {}, this.stack = "";
|
|
358
358
|
}
|
|
359
359
|
y.prototype = Error.prototype;
|
|
360
|
-
function
|
|
360
|
+
function $(a) {
|
|
361
361
|
if (process.env.NODE_ENV !== "production")
|
|
362
362
|
var d = {}, O = 0;
|
|
363
|
-
function x(S, w, N, T,
|
|
363
|
+
function x(S, w, N, T, M, j, R) {
|
|
364
364
|
if (T = T || b, j = j || N, R !== t) {
|
|
365
365
|
if (m) {
|
|
366
366
|
var s = new Error(
|
|
@@ -370,20 +370,20 @@ function Ot() {
|
|
|
370
370
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
371
371
|
var B = T + ":" + N;
|
|
372
372
|
!d[B] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
373
|
-
O < 3 && (
|
|
373
|
+
O < 3 && (i(
|
|
374
374
|
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + T + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
375
375
|
), d[B] = !0, O++);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
return w[N] == null ? S ? w[N] === null ? new y("The " +
|
|
378
|
+
return w[N] == null ? S ? w[N] === null ? new y("The " + M + " `" + j + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new y("The " + M + " `" + j + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : a(w, N, T, M, j);
|
|
379
379
|
}
|
|
380
380
|
var E = x.bind(null, !1);
|
|
381
381
|
return E.isRequired = x.bind(null, !0), E;
|
|
382
382
|
}
|
|
383
383
|
function _(a) {
|
|
384
384
|
function d(O, x, E, S, w, N) {
|
|
385
|
-
var T = O[x],
|
|
386
|
-
if (
|
|
385
|
+
var T = O[x], M = W(T);
|
|
386
|
+
if (M !== a) {
|
|
387
387
|
var j = H(T);
|
|
388
388
|
return new y(
|
|
389
389
|
"Invalid " + S + " `" + w + "` of type " + ("`" + j + "` supplied to `" + E + "`, expected ") + ("`" + a + "`."),
|
|
@@ -392,10 +392,10 @@ function Ot() {
|
|
|
392
392
|
}
|
|
393
393
|
return null;
|
|
394
394
|
}
|
|
395
|
-
return
|
|
395
|
+
return $(d);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
return
|
|
397
|
+
function C() {
|
|
398
|
+
return $(u);
|
|
399
399
|
}
|
|
400
400
|
function P(a) {
|
|
401
401
|
function d(O, x, E, S, w) {
|
|
@@ -406,16 +406,16 @@ function Ot() {
|
|
|
406
406
|
var T = W(N);
|
|
407
407
|
return new y("Invalid " + S + " `" + w + "` of type " + ("`" + T + "` supplied to `" + E + "`, expected an array."));
|
|
408
408
|
}
|
|
409
|
-
for (var
|
|
410
|
-
var j = a(N,
|
|
409
|
+
for (var M = 0; M < N.length; M++) {
|
|
410
|
+
var j = a(N, M, E, S, w + "[" + M + "]", t);
|
|
411
411
|
if (j instanceof Error)
|
|
412
412
|
return j;
|
|
413
413
|
}
|
|
414
414
|
return null;
|
|
415
415
|
}
|
|
416
|
-
return
|
|
416
|
+
return $(d);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function k() {
|
|
419
419
|
function a(d, O, x, E, S) {
|
|
420
420
|
var w = d[O];
|
|
421
421
|
if (!c(w)) {
|
|
@@ -424,7 +424,7 @@ function Ot() {
|
|
|
424
424
|
}
|
|
425
425
|
return null;
|
|
426
426
|
}
|
|
427
|
-
return
|
|
427
|
+
return $(a);
|
|
428
428
|
}
|
|
429
429
|
function f() {
|
|
430
430
|
function a(d, O, x, E, S) {
|
|
@@ -435,7 +435,7 @@ function Ot() {
|
|
|
435
435
|
}
|
|
436
436
|
return null;
|
|
437
437
|
}
|
|
438
|
-
return
|
|
438
|
+
return $(a);
|
|
439
439
|
}
|
|
440
440
|
function V(a) {
|
|
441
441
|
function d(O, x, E, S, w) {
|
|
@@ -445,24 +445,24 @@ function Ot() {
|
|
|
445
445
|
}
|
|
446
446
|
return null;
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return $(d);
|
|
449
449
|
}
|
|
450
450
|
function q(a) {
|
|
451
451
|
if (!Array.isArray(a))
|
|
452
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
452
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
453
453
|
"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])."
|
|
454
|
-
) :
|
|
454
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
455
455
|
function d(O, x, E, S, w) {
|
|
456
456
|
for (var N = O[x], T = 0; T < a.length; T++)
|
|
457
457
|
if (h(N, a[T]))
|
|
458
458
|
return null;
|
|
459
|
-
var
|
|
459
|
+
var M = JSON.stringify(a, function(j, R) {
|
|
460
460
|
var s = H(R);
|
|
461
461
|
return s === "symbol" ? String(R) : R;
|
|
462
462
|
});
|
|
463
|
-
return new y("Invalid " + S + " `" + w + "` of value `" + String(N) + "` " + ("supplied to `" + E + "`, expected one of " +
|
|
463
|
+
return new y("Invalid " + S + " `" + w + "` of value `" + String(N) + "` " + ("supplied to `" + E + "`, expected one of " + M + "."));
|
|
464
464
|
}
|
|
465
|
-
return
|
|
465
|
+
return $(d);
|
|
466
466
|
}
|
|
467
467
|
function U(a) {
|
|
468
468
|
function d(O, x, E, S, w) {
|
|
@@ -471,43 +471,43 @@ function Ot() {
|
|
|
471
471
|
var N = O[x], T = W(N);
|
|
472
472
|
if (T !== "object")
|
|
473
473
|
return new y("Invalid " + S + " `" + w + "` of type " + ("`" + T + "` supplied to `" + E + "`, expected an object."));
|
|
474
|
-
for (var
|
|
475
|
-
if (r(N,
|
|
476
|
-
var j = a(N,
|
|
474
|
+
for (var M in N)
|
|
475
|
+
if (r(N, M)) {
|
|
476
|
+
var j = a(N, M, E, S, w + "." + M, t);
|
|
477
477
|
if (j instanceof Error)
|
|
478
478
|
return j;
|
|
479
479
|
}
|
|
480
480
|
return null;
|
|
481
481
|
}
|
|
482
|
-
return
|
|
482
|
+
return $(d);
|
|
483
483
|
}
|
|
484
484
|
function Q(a) {
|
|
485
485
|
if (!Array.isArray(a))
|
|
486
|
-
return process.env.NODE_ENV !== "production" &&
|
|
486
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
487
487
|
for (var d = 0; d < a.length; d++) {
|
|
488
488
|
var O = a[d];
|
|
489
489
|
if (typeof O != "function")
|
|
490
|
-
return
|
|
490
|
+
return i(
|
|
491
491
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(O) + " at index " + d + "."
|
|
492
|
-
),
|
|
492
|
+
), u;
|
|
493
493
|
}
|
|
494
494
|
function x(E, S, w, N, T) {
|
|
495
|
-
for (var
|
|
495
|
+
for (var M = [], j = 0; j < a.length; j++) {
|
|
496
496
|
var R = a[j], s = R(E, S, w, N, T, t);
|
|
497
497
|
if (s == null)
|
|
498
498
|
return null;
|
|
499
|
-
s.data && r(s.data, "expectedType") &&
|
|
499
|
+
s.data && r(s.data, "expectedType") && M.push(s.data.expectedType);
|
|
500
500
|
}
|
|
501
|
-
var B =
|
|
501
|
+
var B = M.length > 0 ? ", expected one of type [" + M.join(", ") + "]" : "";
|
|
502
502
|
return new y("Invalid " + N + " `" + T + "` supplied to " + ("`" + w + "`" + B + "."));
|
|
503
503
|
}
|
|
504
|
-
return
|
|
504
|
+
return $(x);
|
|
505
505
|
}
|
|
506
506
|
function A() {
|
|
507
507
|
function a(d, O, x, E, S) {
|
|
508
508
|
return J(d[O]) ? null : new y("Invalid " + E + " `" + S + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
|
|
509
509
|
}
|
|
510
|
-
return
|
|
510
|
+
return $(a);
|
|
511
511
|
}
|
|
512
512
|
function z(a, d, O, x, E) {
|
|
513
513
|
return new y(
|
|
@@ -519,25 +519,25 @@ function Ot() {
|
|
|
519
519
|
var N = O[x], T = W(N);
|
|
520
520
|
if (T !== "object")
|
|
521
521
|
return new y("Invalid " + S + " `" + w + "` of type `" + T + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
522
|
-
for (var
|
|
523
|
-
var j = a[
|
|
522
|
+
for (var M in a) {
|
|
523
|
+
var j = a[M];
|
|
524
524
|
if (typeof j != "function")
|
|
525
|
-
return z(E, S, w,
|
|
526
|
-
var R = j(N,
|
|
525
|
+
return z(E, S, w, M, H(j));
|
|
526
|
+
var R = j(N, M, E, S, w + "." + M, t);
|
|
527
527
|
if (R)
|
|
528
528
|
return R;
|
|
529
529
|
}
|
|
530
530
|
return null;
|
|
531
531
|
}
|
|
532
|
-
return
|
|
532
|
+
return $(d);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ie(a) {
|
|
535
535
|
function d(O, x, E, S, w) {
|
|
536
536
|
var N = O[x], T = W(N);
|
|
537
537
|
if (T !== "object")
|
|
538
538
|
return new y("Invalid " + S + " `" + w + "` of type `" + T + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
539
|
-
var
|
|
540
|
-
for (var j in
|
|
539
|
+
var M = n({}, O[x], a);
|
|
540
|
+
for (var j in M) {
|
|
541
541
|
var R = a[j];
|
|
542
542
|
if (r(a, j) && typeof R != "function")
|
|
543
543
|
return z(E, S, w, j, H(R));
|
|
@@ -552,7 +552,7 @@ Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
|
552
552
|
}
|
|
553
553
|
return null;
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return $(d);
|
|
556
556
|
}
|
|
557
557
|
function J(a) {
|
|
558
558
|
switch (typeof a) {
|
|
@@ -587,12 +587,12 @@ Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
|
587
587
|
return !1;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function ue(a, d) {
|
|
591
591
|
return a === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
|
|
592
592
|
}
|
|
593
593
|
function W(a) {
|
|
594
594
|
var d = typeof a;
|
|
595
|
-
return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" :
|
|
595
|
+
return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : ue(d, a) ? "symbol" : d;
|
|
596
596
|
}
|
|
597
597
|
function H(a) {
|
|
598
598
|
if (typeof a > "u" || a === null)
|
|
@@ -626,17 +626,17 @@ Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
|
626
626
|
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
627
627
|
}, _e;
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var $e, mn;
|
|
630
630
|
function wt() {
|
|
631
|
-
if (mn) return
|
|
631
|
+
if (mn) return $e;
|
|
632
632
|
mn = 1;
|
|
633
633
|
var e = Be();
|
|
634
634
|
function n() {
|
|
635
635
|
}
|
|
636
636
|
function t() {
|
|
637
637
|
}
|
|
638
|
-
return t.resetWarningCache = n,
|
|
639
|
-
function r(
|
|
638
|
+
return t.resetWarningCache = n, $e = function() {
|
|
639
|
+
function r(u, c, m, p, v, l) {
|
|
640
640
|
if (l !== e) {
|
|
641
641
|
var b = new Error(
|
|
642
642
|
"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"
|
|
@@ -648,7 +648,7 @@ function wt() {
|
|
|
648
648
|
function o() {
|
|
649
649
|
return r;
|
|
650
650
|
}
|
|
651
|
-
var
|
|
651
|
+
var i = {
|
|
652
652
|
array: r,
|
|
653
653
|
bigint: r,
|
|
654
654
|
bool: r,
|
|
@@ -671,8 +671,8 @@ function wt() {
|
|
|
671
671
|
checkPropTypes: t,
|
|
672
672
|
resetWarningCache: n
|
|
673
673
|
};
|
|
674
|
-
return
|
|
675
|
-
},
|
|
674
|
+
return i.PropTypes = i, i;
|
|
675
|
+
}, $e;
|
|
676
676
|
}
|
|
677
677
|
if (process.env.NODE_ENV !== "production") {
|
|
678
678
|
var xt = jn(), Nt = !0;
|
|
@@ -681,8 +681,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
681
681
|
Ie.exports = wt()();
|
|
682
682
|
var I = Ie.exports;
|
|
683
683
|
const _n = /* @__PURE__ */ mt(I);
|
|
684
|
-
var Ae = "data-focus-lock",
|
|
685
|
-
function
|
|
684
|
+
var Ae = "data-focus-lock", $n = "data-focus-lock-disabled", St = "data-no-focus-lock", Tt = "data-autofocus-inside", jt = "data-no-autofocus";
|
|
685
|
+
function ke(e, n) {
|
|
686
686
|
return typeof e == "function" ? e(n) : e && (e.current = n), e;
|
|
687
687
|
}
|
|
688
688
|
function Pt(e, n) {
|
|
@@ -707,26 +707,26 @@ function Pt(e, n) {
|
|
|
707
707
|
return t.callback = n, t.facade;
|
|
708
708
|
}
|
|
709
709
|
var _t = typeof window < "u" ? on.useLayoutEffect : on.useEffect, bn = /* @__PURE__ */ new WeakMap();
|
|
710
|
-
function
|
|
710
|
+
function $t(e, n) {
|
|
711
711
|
var t = Pt(null, function(r) {
|
|
712
712
|
return e.forEach(function(o) {
|
|
713
|
-
return
|
|
713
|
+
return ke(o, r);
|
|
714
714
|
});
|
|
715
715
|
});
|
|
716
716
|
return _t(function() {
|
|
717
717
|
var r = bn.get(t);
|
|
718
718
|
if (r) {
|
|
719
|
-
var o = new Set(r),
|
|
719
|
+
var o = new Set(r), i = new Set(e), u = t.current;
|
|
720
720
|
o.forEach(function(c) {
|
|
721
|
-
|
|
722
|
-
}),
|
|
723
|
-
o.has(c) ||
|
|
721
|
+
i.has(c) || ke(c, null);
|
|
722
|
+
}), i.forEach(function(c) {
|
|
723
|
+
o.has(c) || ke(c, u);
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
726
|
bn.set(t, e);
|
|
727
727
|
}, [e]), t;
|
|
728
728
|
}
|
|
729
|
-
var
|
|
729
|
+
var Me = {
|
|
730
730
|
width: "1px",
|
|
731
731
|
height: "0px",
|
|
732
732
|
padding: 0,
|
|
@@ -745,58 +745,58 @@ var Re = function() {
|
|
|
745
745
|
return e;
|
|
746
746
|
}, Re.apply(this, arguments);
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function kn(e) {
|
|
749
749
|
return e;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
n === void 0 && (n =
|
|
751
|
+
function Mn(e, n) {
|
|
752
|
+
n === void 0 && (n = kn);
|
|
753
753
|
var t = [], r = !1, o = {
|
|
754
754
|
read: function() {
|
|
755
755
|
if (r)
|
|
756
756
|
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
757
757
|
return t.length ? t[t.length - 1] : e;
|
|
758
758
|
},
|
|
759
|
-
useMedium: function(
|
|
760
|
-
var
|
|
761
|
-
return t.push(
|
|
759
|
+
useMedium: function(i) {
|
|
760
|
+
var u = n(i, r);
|
|
761
|
+
return t.push(u), function() {
|
|
762
762
|
t = t.filter(function(c) {
|
|
763
|
-
return c !==
|
|
763
|
+
return c !== u;
|
|
764
764
|
});
|
|
765
765
|
};
|
|
766
766
|
},
|
|
767
|
-
assignSyncMedium: function(
|
|
767
|
+
assignSyncMedium: function(i) {
|
|
768
768
|
for (r = !0; t.length; ) {
|
|
769
|
-
var
|
|
770
|
-
t = [],
|
|
769
|
+
var u = t;
|
|
770
|
+
t = [], u.forEach(i);
|
|
771
771
|
}
|
|
772
772
|
t = {
|
|
773
773
|
push: function(c) {
|
|
774
|
-
return
|
|
774
|
+
return i(c);
|
|
775
775
|
},
|
|
776
776
|
filter: function() {
|
|
777
777
|
return t;
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
780
|
},
|
|
781
|
-
assignMedium: function(
|
|
781
|
+
assignMedium: function(i) {
|
|
782
782
|
r = !0;
|
|
783
|
-
var
|
|
783
|
+
var u = [];
|
|
784
784
|
if (t.length) {
|
|
785
785
|
var c = t;
|
|
786
|
-
t = [], c.forEach(
|
|
786
|
+
t = [], c.forEach(i), u = t;
|
|
787
787
|
}
|
|
788
788
|
var m = function() {
|
|
789
|
-
var v =
|
|
790
|
-
|
|
789
|
+
var v = u;
|
|
790
|
+
u = [], v.forEach(i);
|
|
791
791
|
}, p = function() {
|
|
792
792
|
return Promise.resolve().then(m);
|
|
793
793
|
};
|
|
794
794
|
p(), t = {
|
|
795
795
|
push: function(v) {
|
|
796
|
-
|
|
796
|
+
u.push(v), p();
|
|
797
797
|
},
|
|
798
798
|
filter: function(v) {
|
|
799
|
-
return
|
|
799
|
+
return u = u.filter(v), t;
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
}
|
|
@@ -804,32 +804,32 @@ function Fn(e, n) {
|
|
|
804
804
|
return o;
|
|
805
805
|
}
|
|
806
806
|
function Ge(e, n) {
|
|
807
|
-
return n === void 0 && (n =
|
|
807
|
+
return n === void 0 && (n = kn), Mn(e, n);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function kt(e) {
|
|
810
810
|
e === void 0 && (e = {});
|
|
811
|
-
var n =
|
|
811
|
+
var n = Mn(null);
|
|
812
812
|
return n.options = Re({ async: !0, ssr: !1 }, e), n;
|
|
813
813
|
}
|
|
814
|
-
var
|
|
814
|
+
var Fn = Ge({}, function(e) {
|
|
815
815
|
var n = e.target, t = e.currentTarget;
|
|
816
816
|
return {
|
|
817
817
|
target: n,
|
|
818
818
|
currentTarget: t
|
|
819
819
|
};
|
|
820
|
-
}),
|
|
820
|
+
}), Dn = Ge(), Mt = Ge(), Ft = kt({
|
|
821
821
|
async: !0,
|
|
822
822
|
ssr: typeof document < "u"
|
|
823
|
-
}),
|
|
824
|
-
var t, r = se(), o = r[0],
|
|
823
|
+
}), Dt = /* @__PURE__ */ Sn(void 0), Ct = [], Ue = /* @__PURE__ */ Tn(function(e, n) {
|
|
824
|
+
var t, r = se(), o = r[0], i = r[1], u = we(), c = we(!1), m = we(null), p = se({}), v = p[1], l = e.children, b = e.disabled, g = b === void 0 ? !1 : b, h = e.noFocusGuards, y = h === void 0 ? !1 : h, $ = e.persistentFocus, _ = $ === void 0 ? !1 : $, C = e.crossFrame, P = C === void 0 ? !0 : C, k = e.autoFocus, f = k === void 0 ? !0 : k, V = e.allowTextSelection, q = e.group, U = e.className, Q = e.whiteList, A = e.hasPositiveIndices, z = e.shards, ee = z === void 0 ? Ct : z, ie = e.as, J = ie === void 0 ? "div" : ie, ue = e.lockProps, W = ue === void 0 ? {} : ue, H = e.sideCar, ne = e.returnFocus, Z = ne === void 0 ? !1 : ne, a = e.focusOptions, d = e.onActivation, O = e.onDeactivation, x = se({}), E = x[0], S = ve(function(Y) {
|
|
825
825
|
var ce = Y.captureFocusRestore;
|
|
826
826
|
if (!m.current) {
|
|
827
827
|
var fe, te = (fe = document) == null ? void 0 : fe.activeElement;
|
|
828
828
|
m.current = te, te !== document.body && (m.current = ce(te));
|
|
829
829
|
}
|
|
830
|
-
|
|
830
|
+
u.current && d && d(u.current), c.current = !0, v();
|
|
831
831
|
}, [d]), w = ve(function() {
|
|
832
|
-
c.current = !1, O && O(
|
|
832
|
+
c.current = !1, O && O(u.current), v();
|
|
833
833
|
}, [O]), N = ve(function(Y) {
|
|
834
834
|
var ce = m.current;
|
|
835
835
|
if (ce) {
|
|
@@ -842,39 +842,39 @@ var Cn = Ge({}, function(e) {
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}, [Z]), T = ve(function(Y) {
|
|
845
|
-
c.current &&
|
|
846
|
-
}, []),
|
|
847
|
-
|
|
845
|
+
c.current && Fn.useMedium(Y);
|
|
846
|
+
}, []), M = Dn.useMedium, j = ve(function(Y) {
|
|
847
|
+
u.current !== Y && (u.current = Y, i(Y));
|
|
848
848
|
}, []);
|
|
849
849
|
process.env.NODE_ENV !== "production" && (typeof V < "u" && console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"), xe(function() {
|
|
850
|
-
!
|
|
850
|
+
!u.current && typeof J != "string" && console.error("FocusLock: could not obtain ref to internal node");
|
|
851
851
|
}, []));
|
|
852
|
-
var R = me((t = {}, t[
|
|
852
|
+
var R = me((t = {}, t[$n] = g && "disabled", t[Ae] = q, t), W), s = y !== !0, B = s && y !== "tail", ae = $t([n, j]), Oe = st(function() {
|
|
853
853
|
return {
|
|
854
|
-
observed:
|
|
854
|
+
observed: u,
|
|
855
855
|
shards: ee,
|
|
856
856
|
enabled: !g,
|
|
857
857
|
get active() {
|
|
858
858
|
return c.current;
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
|
-
}, [g, c, ee,
|
|
861
|
+
}, [g, c, ee, u]);
|
|
862
862
|
return /* @__PURE__ */ K.createElement(lt, null, s && [
|
|
863
863
|
/* @__PURE__ */ K.createElement("div", {
|
|
864
864
|
key: "guard-first",
|
|
865
865
|
"data-focus-guard": !0,
|
|
866
866
|
tabIndex: g ? -1 : 0,
|
|
867
|
-
style:
|
|
867
|
+
style: Me
|
|
868
868
|
}),
|
|
869
869
|
A ? /* @__PURE__ */ K.createElement("div", {
|
|
870
870
|
key: "guard-nearest",
|
|
871
871
|
"data-focus-guard": !0,
|
|
872
872
|
tabIndex: g ? -1 : 1,
|
|
873
|
-
style:
|
|
873
|
+
style: Me
|
|
874
874
|
}) : null
|
|
875
875
|
], !g && /* @__PURE__ */ K.createElement(H, {
|
|
876
876
|
id: E,
|
|
877
|
-
sideCar:
|
|
877
|
+
sideCar: Ft,
|
|
878
878
|
observed: o,
|
|
879
879
|
disabled: g,
|
|
880
880
|
persistentFocus: _,
|
|
@@ -891,14 +891,14 @@ var Cn = Ge({}, function(e) {
|
|
|
891
891
|
ref: ae
|
|
892
892
|
}, R, {
|
|
893
893
|
className: U,
|
|
894
|
-
onBlur:
|
|
894
|
+
onBlur: M,
|
|
895
895
|
onFocus: T
|
|
896
|
-
}), /* @__PURE__ */ K.createElement(
|
|
896
|
+
}), /* @__PURE__ */ K.createElement(Dt.Provider, {
|
|
897
897
|
value: Oe
|
|
898
898
|
}, l)), B && /* @__PURE__ */ K.createElement("div", {
|
|
899
899
|
"data-focus-guard": !0,
|
|
900
900
|
tabIndex: g ? -1 : 0,
|
|
901
|
-
style:
|
|
901
|
+
style: Me
|
|
902
902
|
}));
|
|
903
903
|
});
|
|
904
904
|
Ue.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -973,11 +973,11 @@ function Lt(e, n) {
|
|
|
973
973
|
return function(r) {
|
|
974
974
|
if (process.env.NODE_ENV !== "production" && typeof r != "function")
|
|
975
975
|
throw new Error("Expected WrappedComponent to be a React component.");
|
|
976
|
-
var o = [],
|
|
977
|
-
function
|
|
978
|
-
|
|
976
|
+
var o = [], i;
|
|
977
|
+
function u() {
|
|
978
|
+
i = e(o.map(function(m) {
|
|
979
979
|
return m.props;
|
|
980
|
-
})), n(
|
|
980
|
+
})), n(i);
|
|
981
981
|
}
|
|
982
982
|
var c = /* @__PURE__ */ function(m) {
|
|
983
983
|
It(p, m);
|
|
@@ -985,16 +985,16 @@ function Lt(e, n) {
|
|
|
985
985
|
return m.apply(this, arguments) || this;
|
|
986
986
|
}
|
|
987
987
|
p.peek = function() {
|
|
988
|
-
return
|
|
988
|
+
return i;
|
|
989
989
|
};
|
|
990
990
|
var v = p.prototype;
|
|
991
991
|
return v.componentDidMount = function() {
|
|
992
|
-
o.push(this),
|
|
992
|
+
o.push(this), u();
|
|
993
993
|
}, v.componentDidUpdate = function() {
|
|
994
|
-
|
|
994
|
+
u();
|
|
995
995
|
}, v.componentWillUnmount = function() {
|
|
996
996
|
var l = o.indexOf(this);
|
|
997
|
-
o.splice(l, 1),
|
|
997
|
+
o.splice(l, 1), u();
|
|
998
998
|
}, v.render = function() {
|
|
999
999
|
return /* @__PURE__ */ K.createElement(r, this.props);
|
|
1000
1000
|
}, p;
|
|
@@ -1008,7 +1008,7 @@ var G = function(e) {
|
|
|
1008
1008
|
return n;
|
|
1009
1009
|
}, oe = function(e) {
|
|
1010
1010
|
return Array.isArray(e) ? e : [e];
|
|
1011
|
-
},
|
|
1011
|
+
}, Cn = function(e) {
|
|
1012
1012
|
return Array.isArray(e) ? e[0] : e;
|
|
1013
1013
|
}, Wt = function(e) {
|
|
1014
1014
|
if (e.nodeType !== Node.ELEMENT_NODE)
|
|
@@ -1061,23 +1061,23 @@ var G = function(e) {
|
|
|
1061
1061
|
}, Ht = function(e) {
|
|
1062
1062
|
return !!e;
|
|
1063
1063
|
}, Yt = function(e, n) {
|
|
1064
|
-
var t = Math.max(0, e.tabIndex), r = Math.max(0, n.tabIndex), o = t - r,
|
|
1064
|
+
var t = Math.max(0, e.tabIndex), r = Math.max(0, n.tabIndex), o = t - r, i = e.index - n.index;
|
|
1065
1065
|
if (o) {
|
|
1066
1066
|
if (!t)
|
|
1067
1067
|
return 1;
|
|
1068
1068
|
if (!r)
|
|
1069
1069
|
return -1;
|
|
1070
1070
|
}
|
|
1071
|
-
return o ||
|
|
1071
|
+
return o || i;
|
|
1072
1072
|
}, Kt = function(e) {
|
|
1073
1073
|
return e.tabIndex < 0 && !e.hasAttribute("tabindex") ? 0 : e.tabIndex;
|
|
1074
1074
|
}, Je = function(e, n, t) {
|
|
1075
1075
|
return G(e).map(function(r, o) {
|
|
1076
|
-
var
|
|
1076
|
+
var i = Kt(r);
|
|
1077
1077
|
return {
|
|
1078
1078
|
node: r,
|
|
1079
1079
|
index: o,
|
|
1080
|
-
tabIndex: t &&
|
|
1080
|
+
tabIndex: t && i === -1 ? (r.dataset || {}).focusGuard ? 0 : -1 : i
|
|
1081
1081
|
};
|
|
1082
1082
|
}).filter(function(r) {
|
|
1083
1083
|
return !n || r.tabIndex >= 0;
|
|
@@ -1109,12 +1109,12 @@ var G = function(e) {
|
|
|
1109
1109
|
return e instanceof HTMLIFrameElement && !((t = e.contentDocument) === null || t === void 0) && t.body ? pe([e.contentDocument.body], n) : [e];
|
|
1110
1110
|
}, pe = function(e, n) {
|
|
1111
1111
|
return e.reduce(function(t, r) {
|
|
1112
|
-
var o,
|
|
1112
|
+
var o, i = Bn(r, n), u = (o = []).concat.apply(o, i.map(function(c) {
|
|
1113
1113
|
return Qt(c, n);
|
|
1114
1114
|
}));
|
|
1115
1115
|
return t.concat(
|
|
1116
1116
|
// add all tabbables inside and within shadow DOMs in DOM order
|
|
1117
|
-
|
|
1117
|
+
u,
|
|
1118
1118
|
// add if node is tabbable itself
|
|
1119
1119
|
r.parentNode ? G(r.parentNode.querySelectorAll(He)).filter(function(c) {
|
|
1120
1120
|
return c === r;
|
|
@@ -1156,10 +1156,10 @@ var G = function(e) {
|
|
|
1156
1156
|
}, tr = function(e) {
|
|
1157
1157
|
for (var n = /* @__PURE__ */ new Set(), t = e.length, r = 0; r < t; r += 1)
|
|
1158
1158
|
for (var o = r + 1; o < t; o += 1) {
|
|
1159
|
-
var
|
|
1160
|
-
(
|
|
1159
|
+
var i = e[r].compareDocumentPosition(e[o]);
|
|
1160
|
+
(i & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0 && n.add(o), (i & Node.DOCUMENT_POSITION_CONTAINS) > 0 && n.add(r);
|
|
1161
1161
|
}
|
|
1162
|
-
return e.filter(function(
|
|
1162
|
+
return e.filter(function(u, c) {
|
|
1163
1163
|
return !n.has(c);
|
|
1164
1164
|
});
|
|
1165
1165
|
}, Gn = function(e) {
|
|
@@ -1168,7 +1168,7 @@ var G = function(e) {
|
|
|
1168
1168
|
var n = oe(e);
|
|
1169
1169
|
return n.filter(Boolean).reduce(function(t, r) {
|
|
1170
1170
|
var o = r.getAttribute(Ae);
|
|
1171
|
-
return t.push.apply(t, o ? tr(G(Gn(r).querySelectorAll("[".concat(Ae, '="').concat(o, '"]:not([').concat(
|
|
1171
|
+
return t.push.apply(t, o ? tr(G(Gn(r).querySelectorAll("[".concat(Ae, '="').concat(o, '"]:not([').concat($n, '="disabled"])')))) : [r]), t;
|
|
1172
1172
|
}, []);
|
|
1173
1173
|
}, rr = function(e) {
|
|
1174
1174
|
try {
|
|
@@ -1185,15 +1185,15 @@ var G = function(e) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
}, or = function(e, n) {
|
|
1187
1187
|
return e === n;
|
|
1188
|
-
},
|
|
1188
|
+
}, ir = function(e, n) {
|
|
1189
1189
|
return !!G(e.querySelectorAll("iframe")).some(function(t) {
|
|
1190
1190
|
return or(t, n);
|
|
1191
1191
|
});
|
|
1192
1192
|
}, Un = function(e, n) {
|
|
1193
|
-
return n === void 0 && (n = ge(
|
|
1194
|
-
return re(t, n) ||
|
|
1193
|
+
return n === void 0 && (n = ge(Cn(e).ownerDocument)), !n || n.dataset && n.dataset.focusGuard ? !1 : Ze(e).some(function(t) {
|
|
1194
|
+
return re(t, n) || ir(t, n);
|
|
1195
1195
|
});
|
|
1196
|
-
},
|
|
1196
|
+
}, ur = function(e) {
|
|
1197
1197
|
e === void 0 && (e = document);
|
|
1198
1198
|
var n = ge(e);
|
|
1199
1199
|
return n ? G(e.querySelectorAll("[".concat(St, "]"))).some(function(t) {
|
|
@@ -1219,21 +1219,21 @@ var G = function(e) {
|
|
|
1219
1219
|
}, En = function(e, n) {
|
|
1220
1220
|
return e.indexOf(Xe(n, e));
|
|
1221
1221
|
}, We = "NEW_FOCUS", fr = function(e, n, t, r, o) {
|
|
1222
|
-
var
|
|
1222
|
+
var i = e.length, u = e[0], c = e[i - 1], m = ze(r);
|
|
1223
1223
|
if (!(r && e.indexOf(r) >= 0)) {
|
|
1224
1224
|
var p = r !== void 0 ? t.indexOf(r) : -1, v = o ? t.indexOf(o) : p, l = o ? e.indexOf(o) : -1;
|
|
1225
1225
|
if (p === -1)
|
|
1226
1226
|
return l !== -1 ? l : We;
|
|
1227
1227
|
if (l === -1)
|
|
1228
1228
|
return We;
|
|
1229
|
-
var b = p - v, g = t.indexOf(
|
|
1229
|
+
var b = p - v, g = t.indexOf(u), h = t.indexOf(c), y = cr(t), $ = r !== void 0 ? y.indexOf(r) : -1, _ = o ? y.indexOf(o) : $, C = y.filter(function(U) {
|
|
1230
1230
|
return U.tabIndex >= 0;
|
|
1231
|
-
}), P = r !== void 0 ?
|
|
1231
|
+
}), P = r !== void 0 ? C.indexOf(r) : -1, k = o ? C.indexOf(o) : P, f = P >= 0 && k >= 0 ? (
|
|
1232
1232
|
// old/new are tabbables, measure distance in tabbable space
|
|
1233
|
-
|
|
1233
|
+
k - P
|
|
1234
1234
|
) : (
|
|
1235
1235
|
// or else measure in focusable space
|
|
1236
|
-
_ -
|
|
1236
|
+
_ - $
|
|
1237
1237
|
);
|
|
1238
1238
|
if (!b && l >= 0 || n.length === 0)
|
|
1239
1239
|
return l;
|
|
@@ -1249,7 +1249,7 @@ var G = function(e) {
|
|
|
1249
1249
|
if (p > h)
|
|
1250
1250
|
return V;
|
|
1251
1251
|
if (b)
|
|
1252
|
-
return Math.abs(b) > 1 ? l : (
|
|
1252
|
+
return Math.abs(b) > 1 ? l : (i + l + b) % i;
|
|
1253
1253
|
}
|
|
1254
1254
|
}, sr = function(e) {
|
|
1255
1255
|
return function(n) {
|
|
@@ -1262,28 +1262,28 @@ var G = function(e) {
|
|
|
1262
1262
|
);
|
|
1263
1263
|
};
|
|
1264
1264
|
}, On = function(e, n, t) {
|
|
1265
|
-
var r = e.map(function(
|
|
1266
|
-
var
|
|
1267
|
-
return
|
|
1265
|
+
var r = e.map(function(i) {
|
|
1266
|
+
var u = i.node;
|
|
1267
|
+
return u;
|
|
1268
1268
|
}), o = hn(r.filter(sr(t)));
|
|
1269
1269
|
return o && o.length ? gn(o) : gn(hn(n));
|
|
1270
1270
|
}, qe = function(e, n) {
|
|
1271
1271
|
return n === void 0 && (n = []), n.push(e), e.parentNode && qe(e.parentNode.host || e.parentNode, n), n;
|
|
1272
|
-
},
|
|
1272
|
+
}, Fe = function(e, n) {
|
|
1273
1273
|
for (var t = qe(e), r = qe(n), o = 0; o < t.length; o += 1) {
|
|
1274
|
-
var
|
|
1275
|
-
if (r.indexOf(
|
|
1276
|
-
return
|
|
1274
|
+
var i = t[o];
|
|
1275
|
+
if (r.indexOf(i) >= 0)
|
|
1276
|
+
return i;
|
|
1277
1277
|
}
|
|
1278
1278
|
return !1;
|
|
1279
1279
|
}, zn = function(e, n, t) {
|
|
1280
|
-
var r = oe(e), o = oe(n),
|
|
1280
|
+
var r = oe(e), o = oe(n), i = r[0], u = !1;
|
|
1281
1281
|
return o.filter(Boolean).forEach(function(c) {
|
|
1282
|
-
|
|
1283
|
-
var p =
|
|
1284
|
-
p && (!
|
|
1282
|
+
u = Fe(u || c, c) || u, t.filter(Boolean).forEach(function(m) {
|
|
1283
|
+
var p = Fe(i, m);
|
|
1284
|
+
p && (!u || re(p, u) ? u = p : u = Fe(p, u));
|
|
1285
1285
|
});
|
|
1286
|
-
}),
|
|
1286
|
+
}), u;
|
|
1287
1287
|
}, wn = function(e, n) {
|
|
1288
1288
|
return e.reduce(function(t, r) {
|
|
1289
1289
|
return t.concat(nr(r, n));
|
|
@@ -1296,12 +1296,12 @@ var G = function(e) {
|
|
|
1296
1296
|
return t.get(r);
|
|
1297
1297
|
}).filter(Ht);
|
|
1298
1298
|
}, dr = function(e, n) {
|
|
1299
|
-
var t = ge(oe(e).length > 0 ? document :
|
|
1299
|
+
var t = ge(oe(e).length > 0 ? document : Cn(e).ownerDocument), r = Ze(e).filter(Le), o = zn(t || e, e, r), i = /* @__PURE__ */ new Map(), u = he(r, i), c = u.filter(function(h) {
|
|
1300
1300
|
var y = h.node;
|
|
1301
1301
|
return Le(y);
|
|
1302
1302
|
});
|
|
1303
1303
|
if (c[0]) {
|
|
1304
|
-
var m = he([o],
|
|
1304
|
+
var m = he([o], i).map(function(h) {
|
|
1305
1305
|
var y = h.node;
|
|
1306
1306
|
return y;
|
|
1307
1307
|
}), p = lr(m, c), v = p.map(function(h) {
|
|
@@ -1317,7 +1317,7 @@ var G = function(e) {
|
|
|
1317
1317
|
if (b === We) {
|
|
1318
1318
|
var g = (
|
|
1319
1319
|
// first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
|
|
1320
|
-
On(
|
|
1320
|
+
On(u, l, wn(r, i)) || On(u, v, wn(r, i))
|
|
1321
1321
|
);
|
|
1322
1322
|
if (g)
|
|
1323
1323
|
return { node: g };
|
|
@@ -1328,28 +1328,28 @@ var G = function(e) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
}, pr = function(e) {
|
|
1330
1330
|
var n = Ze(e).filter(Le), t = zn(e, e, n), r = Je(pe([t], !0), !0, !0), o = pe(n, !1);
|
|
1331
|
-
return r.map(function(
|
|
1332
|
-
var
|
|
1331
|
+
return r.map(function(i) {
|
|
1332
|
+
var u = i.node, c = i.index;
|
|
1333
1333
|
return {
|
|
1334
|
-
node:
|
|
1334
|
+
node: u,
|
|
1335
1335
|
index: c,
|
|
1336
|
-
lockItem: o.indexOf(
|
|
1337
|
-
guard: ze(
|
|
1336
|
+
lockItem: o.indexOf(u) >= 0,
|
|
1337
|
+
guard: ze(u)
|
|
1338
1338
|
};
|
|
1339
1339
|
});
|
|
1340
1340
|
}, Qe = function(e, n) {
|
|
1341
1341
|
e && ("focus" in e && e.focus(n), "contentWindow" in e && e.contentWindow && e.contentWindow.focus());
|
|
1342
|
-
},
|
|
1342
|
+
}, De = 0, Ce = !1, Jn = function(e, n, t) {
|
|
1343
1343
|
t === void 0 && (t = {});
|
|
1344
1344
|
var r = dr(e, n);
|
|
1345
|
-
if (!
|
|
1346
|
-
if (
|
|
1347
|
-
console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),
|
|
1348
|
-
|
|
1345
|
+
if (!Ce && r) {
|
|
1346
|
+
if (De > 2) {
|
|
1347
|
+
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() {
|
|
1348
|
+
Ce = !1;
|
|
1349
1349
|
}, 1);
|
|
1350
1350
|
return;
|
|
1351
1351
|
}
|
|
1352
|
-
|
|
1352
|
+
De++, Qe(r.node, t.focusOptions), De--;
|
|
1353
1353
|
}
|
|
1354
1354
|
};
|
|
1355
1355
|
function ye(e) {
|
|
@@ -1380,28 +1380,28 @@ var vr = function(e) {
|
|
|
1380
1380
|
ownerDocument: e.ownerDocument
|
|
1381
1381
|
};
|
|
1382
1382
|
}, yr = function(e) {
|
|
1383
|
-
var n, t, r, o,
|
|
1383
|
+
var n, t, r, o, i;
|
|
1384
1384
|
if (e)
|
|
1385
|
-
for (var
|
|
1385
|
+
for (var u = e.stack, c = e.ownerDocument, m = /* @__PURE__ */ new Map(), p = 0, v = u; p < v.length; p++) {
|
|
1386
1386
|
var l = v[p], b = (n = l.parent) === null || n === void 0 ? void 0 : n.call(l);
|
|
1387
1387
|
if (b && c.contains(b)) {
|
|
1388
|
-
for (var g = (t = l.left) === null || t === void 0 ? void 0 : t.call(l), h = l.current(), y = b.contains(h) ? h : void 0,
|
|
1388
|
+
for (var g = (t = l.left) === null || t === void 0 ? void 0 : t.call(l), h = l.current(), y = b.contains(h) ? h : void 0, $ = (r = l.right) === null || r === void 0 ? void 0 : r.call(l), _ = Ke([b], m), C = (
|
|
1389
1389
|
// that is element itself
|
|
1390
|
-
(
|
|
1390
|
+
(i = (o = y ?? // or something in it's place
|
|
1391
1391
|
(g == null ? void 0 : g.nextElementSibling)) !== null && o !== void 0 ? o : (
|
|
1392
1392
|
// or somebody to the right, still close enough
|
|
1393
|
-
|
|
1394
|
-
)) !== null &&
|
|
1393
|
+
$
|
|
1394
|
+
)) !== null && i !== void 0 ? i : (
|
|
1395
1395
|
// or somebody to the left, something?
|
|
1396
1396
|
g
|
|
1397
1397
|
)
|
|
1398
|
-
);
|
|
1399
|
-
for (var P = 0,
|
|
1400
|
-
var f =
|
|
1401
|
-
if (
|
|
1398
|
+
); C; ) {
|
|
1399
|
+
for (var P = 0, k = _; P < k.length; P++) {
|
|
1400
|
+
var f = k[P];
|
|
1401
|
+
if (C != null && C.contains(f.node))
|
|
1402
1402
|
return f.node;
|
|
1403
1403
|
}
|
|
1404
|
-
|
|
1404
|
+
C = C.nextElementSibling;
|
|
1405
1405
|
}
|
|
1406
1406
|
if (_.length)
|
|
1407
1407
|
return _[0].node;
|
|
@@ -1416,18 +1416,18 @@ var vr = function(e) {
|
|
|
1416
1416
|
if (!e || !n)
|
|
1417
1417
|
return console.error("no element or scope given"), {};
|
|
1418
1418
|
var r = oe(n);
|
|
1419
|
-
if (r.every(function(
|
|
1420
|
-
return !re(
|
|
1419
|
+
if (r.every(function(u) {
|
|
1420
|
+
return !re(u, e);
|
|
1421
1421
|
}))
|
|
1422
1422
|
return console.error("Active element is not contained in the scope"), {};
|
|
1423
|
-
var o = t ? Ke(r, /* @__PURE__ */ new Map()) : he(r, /* @__PURE__ */ new Map()),
|
|
1424
|
-
var c =
|
|
1423
|
+
var o = t ? Ke(r, /* @__PURE__ */ new Map()) : he(r, /* @__PURE__ */ new Map()), i = o.findIndex(function(u) {
|
|
1424
|
+
var c = u.node;
|
|
1425
1425
|
return c === e;
|
|
1426
1426
|
});
|
|
1427
|
-
if (
|
|
1427
|
+
if (i !== -1)
|
|
1428
1428
|
return {
|
|
1429
|
-
prev: o[
|
|
1430
|
-
next: o[
|
|
1429
|
+
prev: o[i - 1],
|
|
1430
|
+
next: o[i + 1],
|
|
1431
1431
|
first: o[0],
|
|
1432
1432
|
last: o[o.length - 1]
|
|
1433
1433
|
};
|
|
@@ -1447,22 +1447,22 @@ var vr = function(e) {
|
|
|
1447
1447
|
n === void 0 && (n = {});
|
|
1448
1448
|
var r = hr(n), o = mr(e, r.scope, r.onlyTabbable);
|
|
1449
1449
|
if (o) {
|
|
1450
|
-
var
|
|
1451
|
-
|
|
1450
|
+
var i = t(o, r.cycle);
|
|
1451
|
+
i && Qe(i.node, r.focusOptions);
|
|
1452
1452
|
}
|
|
1453
1453
|
}, gr = function(e, n) {
|
|
1454
1454
|
n === void 0 && (n = {}), Yn(e, n, function(t, r) {
|
|
1455
|
-
var o = t.next,
|
|
1456
|
-
return o || r &&
|
|
1455
|
+
var o = t.next, i = t.first;
|
|
1456
|
+
return o || r && i;
|
|
1457
1457
|
});
|
|
1458
1458
|
}, Er = function(e, n) {
|
|
1459
1459
|
n === void 0 && (n = {}), Yn(e, n, function(t, r) {
|
|
1460
|
-
var o = t.prev,
|
|
1461
|
-
return o || r &&
|
|
1460
|
+
var o = t.prev, i = t.last;
|
|
1461
|
+
return o || r && i;
|
|
1462
1462
|
});
|
|
1463
1463
|
}, Kn = function(e, n, t) {
|
|
1464
|
-
var r, o = br(e, (r = n.onlyTabbable) !== null && r !== void 0 ? r : !0),
|
|
1465
|
-
|
|
1464
|
+
var r, o = br(e, (r = n.onlyTabbable) !== null && r !== void 0 ? r : !0), i = o[t];
|
|
1465
|
+
i && Qe(i.node, n.focusOptions);
|
|
1466
1466
|
}, Or = function(e, n) {
|
|
1467
1467
|
n === void 0 && (n = {}), Kn(e, n, "first");
|
|
1468
1468
|
}, wr = function(e, n) {
|
|
@@ -1476,7 +1476,7 @@ var xr = function(e) {
|
|
|
1476
1476
|
}, Zn = function() {
|
|
1477
1477
|
return document && document.activeElement === document.body;
|
|
1478
1478
|
}, Nr = function() {
|
|
1479
|
-
return Zn() ||
|
|
1479
|
+
return Zn() || ur();
|
|
1480
1480
|
}, le = null, L = null, xn = function() {
|
|
1481
1481
|
return null;
|
|
1482
1482
|
}, de = null, Ee = !1, nn = !1, Sr = function() {
|
|
@@ -1492,67 +1492,67 @@ var xr = function(e) {
|
|
|
1492
1492
|
return de && de.portaledElement === e;
|
|
1493
1493
|
};
|
|
1494
1494
|
function Nn(e, n, t, r) {
|
|
1495
|
-
var o = null,
|
|
1495
|
+
var o = null, i = e;
|
|
1496
1496
|
do {
|
|
1497
|
-
var
|
|
1498
|
-
if (
|
|
1499
|
-
|
|
1500
|
-
else if (
|
|
1501
|
-
if (
|
|
1497
|
+
var u = r[i];
|
|
1498
|
+
if (u.guard)
|
|
1499
|
+
u.node.dataset.focusAutoGuard && (o = u);
|
|
1500
|
+
else if (u.lockItem) {
|
|
1501
|
+
if (i !== e)
|
|
1502
1502
|
return;
|
|
1503
1503
|
o = null;
|
|
1504
1504
|
} else
|
|
1505
1505
|
break;
|
|
1506
|
-
} while ((
|
|
1506
|
+
} while ((i += t) !== n);
|
|
1507
1507
|
o && (o.node.tabIndex = 0);
|
|
1508
1508
|
}
|
|
1509
1509
|
var _r = function(e) {
|
|
1510
1510
|
return e ? !!Ee : Ee === "meanwhile";
|
|
1511
|
-
},
|
|
1511
|
+
}, $r = function e(n, t, r) {
|
|
1512
1512
|
return t && (t.host === n && (!t.activeElement || r.contains(t.activeElement)) || t.parentNode && e(n, t.parentNode, r));
|
|
1513
|
-
},
|
|
1513
|
+
}, kr = function(e, n) {
|
|
1514
1514
|
return n.some(function(t) {
|
|
1515
|
-
return
|
|
1515
|
+
return $r(e, t, t);
|
|
1516
1516
|
});
|
|
1517
1517
|
}, Xn = function(e) {
|
|
1518
1518
|
return he(e, /* @__PURE__ */ new Map());
|
|
1519
|
-
},
|
|
1519
|
+
}, Mr = function(e) {
|
|
1520
1520
|
return !Xn([e.parentNode]).some(function(n) {
|
|
1521
1521
|
return n.node === e;
|
|
1522
1522
|
});
|
|
1523
1523
|
}, Ne = function() {
|
|
1524
1524
|
var e = !1;
|
|
1525
1525
|
if (le) {
|
|
1526
|
-
var n = le, t = n.observed, r = n.persistentFocus, o = n.autoFocus,
|
|
1527
|
-
if (Zn() && L && L !== document.body && (!document.body.contains(L) ||
|
|
1526
|
+
var n = le, t = n.observed, r = n.persistentFocus, o = n.autoFocus, i = n.shards, u = n.crossFrame, c = n.focusOptions, m = n.noFocusGuards, p = t || de && de.portaledElement;
|
|
1527
|
+
if (Zn() && L && L !== document.body && (!document.body.contains(L) || Mr(L))) {
|
|
1528
1528
|
var v = xn();
|
|
1529
1529
|
v && v.focus();
|
|
1530
1530
|
}
|
|
1531
1531
|
var l = document && document.activeElement;
|
|
1532
1532
|
if (p) {
|
|
1533
|
-
var b = [p].concat(
|
|
1534
|
-
if (!_r(
|
|
1533
|
+
var b = [p].concat(i.map(xr).filter(Boolean)), g = function() {
|
|
1534
|
+
if (!_r(u) || !m || !L || nn)
|
|
1535
1535
|
return !1;
|
|
1536
|
-
var _ = Xn(b),
|
|
1537
|
-
var
|
|
1538
|
-
return
|
|
1536
|
+
var _ = Xn(b), C = _.findIndex(function(P) {
|
|
1537
|
+
var k = P.node;
|
|
1538
|
+
return k === L;
|
|
1539
1539
|
});
|
|
1540
|
-
return
|
|
1540
|
+
return C === 0 || C === _.length - 1;
|
|
1541
1541
|
};
|
|
1542
|
-
if ((!l || Tr(l)) && (r || g() || !Nr() || !L && o) && (p && !(Un(b) || l &&
|
|
1542
|
+
if ((!l || Tr(l)) && (r || g() || !Nr() || !L && o) && (p && !(Un(b) || l && kr(l, b) || Pr(l)) && (document && !L && l && !o ? (l.blur && l.blur(), document.body.focus()) : (e = Jn(b, L, {
|
|
1543
1543
|
focusOptions: c
|
|
1544
1544
|
}), de = {})), L = document && document.activeElement, L !== document.body && (xn = Hn(L)), Ee = !1), document && l !== document.activeElement && document.querySelector("[data-focus-auto-guard]")) {
|
|
1545
|
-
var h = document && document.activeElement, y = pr(b),
|
|
1546
|
-
var
|
|
1547
|
-
return
|
|
1545
|
+
var h = document && document.activeElement, y = pr(b), $ = y.map(function(_) {
|
|
1546
|
+
var C = _.node;
|
|
1547
|
+
return C;
|
|
1548
1548
|
}).indexOf(h);
|
|
1549
|
-
|
|
1550
|
-
var
|
|
1551
|
-
return
|
|
1549
|
+
$ > -1 && (y.filter(function(_) {
|
|
1550
|
+
var C = _.guard, P = _.node;
|
|
1551
|
+
return C && P.dataset.focusAutoGuard;
|
|
1552
1552
|
}).forEach(function(_) {
|
|
1553
|
-
var
|
|
1554
|
-
return
|
|
1555
|
-
}), Nn(
|
|
1553
|
+
var C = _.node;
|
|
1554
|
+
return C.removeAttribute("tabIndex");
|
|
1555
|
+
}), Nn($, y.length, 1, y), Nn($, -1, -1, y));
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
@@ -1561,10 +1561,10 @@ var _r = function(e) {
|
|
|
1561
1561
|
Ne() && e && (e.stopPropagation(), e.preventDefault());
|
|
1562
1562
|
}, tn = function() {
|
|
1563
1563
|
return en(Ne);
|
|
1564
|
-
},
|
|
1564
|
+
}, Fr = function(e) {
|
|
1565
1565
|
var n = e.target, t = e.currentTarget;
|
|
1566
1566
|
t.contains(n) || jr(t, n);
|
|
1567
|
-
},
|
|
1567
|
+
}, Dr = function() {
|
|
1568
1568
|
return null;
|
|
1569
1569
|
};
|
|
1570
1570
|
process.env.NODE_ENV !== "production" && _n.node.isRequired;
|
|
@@ -1574,7 +1574,7 @@ var et = function() {
|
|
|
1574
1574
|
nn = !1, Ee = "just", en(function() {
|
|
1575
1575
|
Ee = "meanwhile";
|
|
1576
1576
|
});
|
|
1577
|
-
},
|
|
1577
|
+
}, Cr = function() {
|
|
1578
1578
|
document.addEventListener("focusin", Qn), document.addEventListener("focusout", tn), window.addEventListener("focus", et), window.addEventListener("blur", nt);
|
|
1579
1579
|
}, Ir = function() {
|
|
1580
1580
|
document.removeEventListener("focusin", Qn), document.removeEventListener("focusout", tn), window.removeEventListener("focus", et), window.removeEventListener("blur", nt);
|
|
@@ -1596,19 +1596,19 @@ var tt = {
|
|
|
1596
1596
|
};
|
|
1597
1597
|
function Rr(e) {
|
|
1598
1598
|
var n = e.slice(-1)[0];
|
|
1599
|
-
n && !le &&
|
|
1599
|
+
n && !le && Cr();
|
|
1600
1600
|
var t = le, r = t && n && n.id === t.id;
|
|
1601
1601
|
le = n, t && !r && (t.onDeactivation(), e.filter(function(o) {
|
|
1602
|
-
var
|
|
1603
|
-
return
|
|
1602
|
+
var i = o.id;
|
|
1603
|
+
return i === t.id;
|
|
1604
1604
|
}).length || t.returnFocus(!n)), n ? (L = null, (!r || t.observed !== n.observed) && n.onActivation(tt), Ne(), en(Ne)) : (Ir(), L = null);
|
|
1605
1605
|
}
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1606
|
+
Fn.assignSyncMedium(Fr);
|
|
1607
|
+
Dn.assignMedium(tn);
|
|
1608
|
+
Mt.assignMedium(function(e) {
|
|
1609
1609
|
return e(tt);
|
|
1610
1610
|
});
|
|
1611
|
-
const Vr = Lt(Ar, Rr)(
|
|
1611
|
+
const Vr = Lt(Ar, Rr)(Dr);
|
|
1612
1612
|
var rt = /* @__PURE__ */ Tn(function(e, n) {
|
|
1613
1613
|
return /* @__PURE__ */ K.createElement(Ue, me({
|
|
1614
1614
|
sideCar: Vr,
|
|
@@ -1618,30 +1618,30 @@ var rt = /* @__PURE__ */ Tn(function(e, n) {
|
|
|
1618
1618
|
ot.sideCar;
|
|
1619
1619
|
var Lr = yt(ot, ["sideCar"]);
|
|
1620
1620
|
rt.propTypes = process.env.NODE_ENV !== "production" ? Lr : {};
|
|
1621
|
-
function
|
|
1621
|
+
function it(e) {
|
|
1622
1622
|
var n, t, r = "";
|
|
1623
1623
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1624
1624
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1625
1625
|
var o = e.length;
|
|
1626
|
-
for (n = 0; n < o; n++) e[n] && (t =
|
|
1626
|
+
for (n = 0; n < o; n++) e[n] && (t = it(e[n])) && (r && (r += " "), r += t);
|
|
1627
1627
|
} else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
1628
1628
|
return r;
|
|
1629
1629
|
}
|
|
1630
1630
|
function Wr() {
|
|
1631
|
-
for (var e, n, t = 0, r = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (n =
|
|
1631
|
+
for (var e, n, t = 0, r = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (n = it(e)) && (r && (r += " "), r += n);
|
|
1632
1632
|
return r;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function ut(e) {
|
|
1635
1635
|
var n, t, r = "";
|
|
1636
1636
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
1637
1637
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1638
1638
|
var o = e.length;
|
|
1639
|
-
for (n = 0; n < o; n++) e[n] && (t =
|
|
1639
|
+
for (n = 0; n < o; n++) e[n] && (t = ut(e[n])) && (r && (r += " "), r += t);
|
|
1640
1640
|
} else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
1641
1641
|
return r;
|
|
1642
1642
|
}
|
|
1643
1643
|
function qr() {
|
|
1644
|
-
for (var e, n, t = 0, r = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (n =
|
|
1644
|
+
for (var e, n, t = 0, r = "", o = arguments.length; t < o; t++) (e = arguments[t]) && (n = ut(e)) && (r && (r += " "), r += n);
|
|
1645
1645
|
return r;
|
|
1646
1646
|
}
|
|
1647
1647
|
const at = ({
|
|
@@ -1650,8 +1650,8 @@ const at = ({
|
|
|
1650
1650
|
children: t,
|
|
1651
1651
|
display: r,
|
|
1652
1652
|
m: o,
|
|
1653
|
-
mt:
|
|
1654
|
-
mr:
|
|
1653
|
+
mt: i,
|
|
1654
|
+
mr: u,
|
|
1655
1655
|
mb: c,
|
|
1656
1656
|
ml: m,
|
|
1657
1657
|
p,
|
|
@@ -1661,11 +1661,11 @@ const at = ({
|
|
|
1661
1661
|
pl: g,
|
|
1662
1662
|
width: h,
|
|
1663
1663
|
height: y,
|
|
1664
|
-
position:
|
|
1664
|
+
position: $,
|
|
1665
1665
|
style: _,
|
|
1666
|
-
className:
|
|
1666
|
+
className: C,
|
|
1667
1667
|
href: P,
|
|
1668
|
-
target:
|
|
1668
|
+
target: k,
|
|
1669
1669
|
rel: f,
|
|
1670
1670
|
htmlFor: V,
|
|
1671
1671
|
type: q,
|
|
@@ -1673,7 +1673,7 @@ const at = ({
|
|
|
1673
1673
|
...Q
|
|
1674
1674
|
}) => {
|
|
1675
1675
|
const A = {};
|
|
1676
|
-
r && (A.display = r), h && (A.width = h), y && (A.height = y),
|
|
1676
|
+
r && (A.display = r), h && (A.width = h), y && (A.height = y), $ && (A.position = $), o && (A.margin = `var(--pittorica-space-${o})`), i && (A.marginTop = `var(--pittorica-space-${i})`), u && (A.marginRight = `var(--pittorica-space-${u})`), c && (A.marginBottom = `var(--pittorica-space-${c})`), m && (A.marginLeft = `var(--pittorica-space-${m})`), p && (A.padding = `var(--pittorica-space-${p})`), v && (A.paddingTop = `var(--pittorica-space-${v})`), l && (A.paddingRight = `var(--pittorica-space-${l})`), b && (A.paddingBottom = `var(--pittorica-space-${b})`), g && (A.paddingLeft = `var(--pittorica-space-${g})`);
|
|
1677
1677
|
const z = {
|
|
1678
1678
|
..._,
|
|
1679
1679
|
...A
|
|
@@ -1682,10 +1682,10 @@ const at = ({
|
|
|
1682
1682
|
n,
|
|
1683
1683
|
{
|
|
1684
1684
|
ref: e,
|
|
1685
|
-
className: qr("pittorica-box",
|
|
1685
|
+
className: qr("pittorica-box", C),
|
|
1686
1686
|
style: z,
|
|
1687
1687
|
href: P,
|
|
1688
|
-
target:
|
|
1688
|
+
target: k,
|
|
1689
1689
|
rel: f,
|
|
1690
1690
|
htmlFor: V,
|
|
1691
1691
|
type: q,
|
|
@@ -1702,8 +1702,8 @@ const Br = Sn(null), Gr = ({
|
|
|
1702
1702
|
children: t,
|
|
1703
1703
|
className: r,
|
|
1704
1704
|
appearance: o,
|
|
1705
|
-
closeOnOverlayClick:
|
|
1706
|
-
closeOnEsc:
|
|
1705
|
+
closeOnOverlayClick: i = !0,
|
|
1706
|
+
closeOnEsc: u = !0
|
|
1707
1707
|
}) => {
|
|
1708
1708
|
const c = un(), m = un(), [p, v] = se(), l = we(null), [b, g] = se(!1);
|
|
1709
1709
|
return xe(() => {
|
|
@@ -1711,10 +1711,10 @@ const Br = Sn(null), Gr = ({
|
|
|
1711
1711
|
}, []), xe(() => {
|
|
1712
1712
|
if (!e) return;
|
|
1713
1713
|
const h = (y) => {
|
|
1714
|
-
y.key === "Escape" &&
|
|
1714
|
+
y.key === "Escape" && u && n();
|
|
1715
1715
|
};
|
|
1716
1716
|
return globalThis.addEventListener("keydown", h), () => globalThis.removeEventListener("keydown", h);
|
|
1717
|
-
}, [e, n,
|
|
1717
|
+
}, [e, n, u]), xe(() => {
|
|
1718
1718
|
if (!e) return;
|
|
1719
1719
|
const h = globalThis.getComputedStyle(document.body).overflow;
|
|
1720
1720
|
return document.body.style.overflow = "hidden", () => {
|
|
@@ -1737,7 +1737,7 @@ const Br = Sn(null), Gr = ({
|
|
|
1737
1737
|
"div",
|
|
1738
1738
|
{
|
|
1739
1739
|
className: "pittorica-dialog-overlay pittorica-theme",
|
|
1740
|
-
onClick:
|
|
1740
|
+
onClick: i ? n : void 0,
|
|
1741
1741
|
"data-appearance": o ?? p,
|
|
1742
1742
|
"aria-hidden": "true",
|
|
1743
1743
|
children: /* @__PURE__ */ X(rt, { returnFocus: !0, children: /* @__PURE__ */ X(
|
|
@@ -1763,8 +1763,8 @@ const Br = Sn(null), Gr = ({
|
|
|
1763
1763
|
children: t,
|
|
1764
1764
|
className: r,
|
|
1765
1765
|
appearance: o,
|
|
1766
|
-
closeOnOverlayClick:
|
|
1767
|
-
closeOnEsc:
|
|
1766
|
+
closeOnOverlayClick: i = !1,
|
|
1767
|
+
closeOnEsc: u = !1
|
|
1768
1768
|
}) => /* @__PURE__ */ X(
|
|
1769
1769
|
Gr,
|
|
1770
1770
|
{
|
|
@@ -1772,8 +1772,8 @@ const Br = Sn(null), Gr = ({
|
|
|
1772
1772
|
onClose: n,
|
|
1773
1773
|
className: r,
|
|
1774
1774
|
appearance: o,
|
|
1775
|
-
closeOnOverlayClick:
|
|
1776
|
-
closeOnEsc:
|
|
1775
|
+
closeOnOverlayClick: i,
|
|
1776
|
+
closeOnEsc: u,
|
|
1777
1777
|
children: /* @__PURE__ */ X(
|
|
1778
1778
|
"div",
|
|
1779
1779
|
{
|