gearboxdownloadmodal 4.0.6 → 4.0.7
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.es.js +335 -331
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import te, { useState as
|
|
1
|
+
import te, { useState as V, useEffect as ve, forwardRef as Zo, useReducer as Io, useRef as _e, isValidElement as ut, cloneElement as Or, useLayoutEffect as wo } from "react";
|
|
2
2
|
import Ko from "react-dom";
|
|
3
3
|
function Wo(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -73,14 +73,14 @@ function Mo() {
|
|
|
73
73
|
return typeof I == "function" ? I : null;
|
|
74
74
|
}
|
|
75
75
|
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
76
|
-
function
|
|
76
|
+
function z(l) {
|
|
77
77
|
{
|
|
78
78
|
for (var I = arguments.length, M = new Array(I > 1 ? I - 1 : 0), T = 1; T < I; T++)
|
|
79
79
|
M[T - 1] = arguments[T];
|
|
80
|
-
|
|
80
|
+
J("error", l, M);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function J(l, I, M) {
|
|
84
84
|
{
|
|
85
85
|
var T = w.ReactDebugCurrentFrame, ee = T.getStackAddendum();
|
|
86
86
|
ee !== "" && (I += "%s", M = M.concat([ee]));
|
|
@@ -90,10 +90,10 @@ function Mo() {
|
|
|
90
90
|
Ae.unshift("Warning: " + I), Function.prototype.apply.call(console[l], console, Ae);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var S = !1, b = !1, ie = !1, ae = !1, F = !1, oe;
|
|
94
94
|
oe = Symbol.for("react.module.reference");
|
|
95
95
|
function ue(l) {
|
|
96
|
-
return !!(typeof l == "string" || typeof l == "function" || l === n || l === o || F || l === i || l === s || l === u || ae || l === f ||
|
|
96
|
+
return !!(typeof l == "string" || typeof l == "function" || l === n || l === o || F || l === i || l === s || l === u || ae || l === f || S || b || ie || typeof l == "object" && l !== null && (l.$$typeof === q || l.$$typeof === d || l.$$typeof === A || l.$$typeof === a || l.$$typeof === c || // This needs to include all possible module reference object
|
|
97
97
|
// types supported by any Flight configuration anywhere since
|
|
98
98
|
// we don't know which Flight build this will end up being used
|
|
99
99
|
// with.
|
|
@@ -112,7 +112,7 @@ function Mo() {
|
|
|
112
112
|
function _(l) {
|
|
113
113
|
if (l == null)
|
|
114
114
|
return null;
|
|
115
|
-
if (typeof l.tag == "number" &&
|
|
115
|
+
if (typeof l.tag == "number" && z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof l == "function")
|
|
116
116
|
return l.displayName || l.name || null;
|
|
117
117
|
if (typeof l == "string")
|
|
118
118
|
return l;
|
|
@@ -154,18 +154,18 @@ function Mo() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var Z = Object.assign, x = 0, k, p, W,
|
|
158
|
-
function
|
|
157
|
+
var Z = Object.assign, x = 0, k, p, W, N, v, K, O;
|
|
158
|
+
function D() {
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
D.__reactDisabledLog = !0;
|
|
161
161
|
function j() {
|
|
162
162
|
{
|
|
163
163
|
if (x === 0) {
|
|
164
|
-
k = console.log, p = console.info, W = console.warn,
|
|
164
|
+
k = console.log, p = console.info, W = console.warn, N = console.error, v = console.group, K = console.groupCollapsed, O = console.groupEnd;
|
|
165
165
|
var l = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
|
-
value:
|
|
168
|
+
value: D,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
@@ -200,7 +200,7 @@ function Mo() {
|
|
|
200
200
|
value: W
|
|
201
201
|
}),
|
|
202
202
|
error: Z({}, l, {
|
|
203
|
-
value:
|
|
203
|
+
value: N
|
|
204
204
|
}),
|
|
205
205
|
group: Z({}, l, {
|
|
206
206
|
value: v
|
|
@@ -213,21 +213,21 @@ function Mo() {
|
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
x < 0 &&
|
|
216
|
+
x < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
var
|
|
219
|
+
var E = w.ReactCurrentDispatcher, Y;
|
|
220
220
|
function R(l, I, M) {
|
|
221
221
|
{
|
|
222
|
-
if (
|
|
222
|
+
if (Y === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
225
|
} catch (ee) {
|
|
226
226
|
var T = ee.stack.trim().match(/\n( *(at )?)/);
|
|
227
|
-
|
|
227
|
+
Y = T && T[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
230
|
-
` +
|
|
230
|
+
` + Y + l;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
var Q = !1, X;
|
|
@@ -235,7 +235,7 @@ function Mo() {
|
|
|
235
235
|
var de = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
236
|
X = new de();
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function L(l, I) {
|
|
239
239
|
if (!l || Q)
|
|
240
240
|
return "";
|
|
241
241
|
{
|
|
@@ -248,7 +248,7 @@ function Mo() {
|
|
|
248
248
|
var ee = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var Ae;
|
|
251
|
-
Ae =
|
|
251
|
+
Ae = E.current, E.current = null, j();
|
|
252
252
|
try {
|
|
253
253
|
if (I) {
|
|
254
254
|
var U = function() {
|
|
@@ -283,17 +283,17 @@ function Mo() {
|
|
|
283
283
|
}
|
|
284
284
|
} catch (De) {
|
|
285
285
|
if (De && T && typeof De.stack == "string") {
|
|
286
|
-
for (var
|
|
286
|
+
for (var B = De.stack.split(`
|
|
287
287
|
`), ye = T.stack.split(`
|
|
288
|
-
`), me =
|
|
288
|
+
`), me = B.length - 1, pe = ye.length - 1; me >= 1 && pe >= 0 && B[me] !== ye[pe]; )
|
|
289
289
|
pe--;
|
|
290
290
|
for (; me >= 1 && pe >= 0; me--, pe--)
|
|
291
|
-
if (
|
|
291
|
+
if (B[me] !== ye[pe]) {
|
|
292
292
|
if (me !== 1 || pe !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (me--, pe--, pe < 0 ||
|
|
294
|
+
if (me--, pe--, pe < 0 || B[me] !== ye[pe]) {
|
|
295
295
|
var we = `
|
|
296
|
-
` +
|
|
296
|
+
` + B[me].replace(" at new ", " at ");
|
|
297
297
|
return l.displayName && we.includes("<anonymous>") && (we = we.replace("<anonymous>", l.displayName)), typeof l == "function" && X.set(l, we), we;
|
|
298
298
|
}
|
|
299
299
|
while (me >= 1 && pe >= 0);
|
|
@@ -301,13 +301,13 @@ function Mo() {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
Q = !1,
|
|
304
|
+
Q = !1, E.current = Ae, G(), Error.prepareStackTrace = ee;
|
|
305
305
|
}
|
|
306
306
|
var st = l ? l.displayName || l.name : "", hn = st ? R(st) : "";
|
|
307
307
|
return typeof l == "function" && X.set(l, hn), hn;
|
|
308
308
|
}
|
|
309
309
|
function Ie(l, I, M) {
|
|
310
|
-
return
|
|
310
|
+
return L(l, !1);
|
|
311
311
|
}
|
|
312
312
|
function At(l) {
|
|
313
313
|
var I = l.prototype;
|
|
@@ -317,7 +317,7 @@ function Mo() {
|
|
|
317
317
|
if (l == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof l == "function")
|
|
320
|
-
return
|
|
320
|
+
return L(l, At(l));
|
|
321
321
|
if (typeof l == "string")
|
|
322
322
|
return R(l);
|
|
323
323
|
switch (l) {
|
|
@@ -355,17 +355,17 @@ function Mo() {
|
|
|
355
355
|
var Ae = Function.call.bind(Et);
|
|
356
356
|
for (var U in l)
|
|
357
357
|
if (Ae(l, U)) {
|
|
358
|
-
var
|
|
358
|
+
var B = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof l[U] != "function") {
|
|
361
361
|
var ye = Error((T || "React class") + ": " + M + " type `" + U + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[U] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
362
|
throw ye.name = "Invariant Violation", ye;
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
B = l[U](I, U, T, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (me) {
|
|
366
|
-
|
|
366
|
+
B = me;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
B && !(B instanceof Error) && (Yt(ee), z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", T || "React class", M, U, typeof B), Yt(null)), B instanceof Error && !(B.message in nn) && (nn[B.message] = !0, Yt(ee), z("Failed %s type: %s", M, B.message), Yt(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -391,7 +391,7 @@ function Mo() {
|
|
|
391
391
|
}
|
|
392
392
|
function an(l) {
|
|
393
393
|
if (oo(l))
|
|
394
|
-
return
|
|
394
|
+
return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", io(l)), An(l);
|
|
395
395
|
}
|
|
396
396
|
var ht = w.ReactCurrentOwner, Ao = {
|
|
397
397
|
key: !0,
|
|
@@ -419,13 +419,13 @@ function Mo() {
|
|
|
419
419
|
function lo(l, I) {
|
|
420
420
|
if (typeof l.ref == "string" && ht.current && I && ht.current.stateNode !== I) {
|
|
421
421
|
var M = _(ht.current.type);
|
|
422
|
-
cr[M] || (
|
|
422
|
+
cr[M] || (z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', _(ht.current.type), l.ref), cr[M] = !0);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
function uo(l, I) {
|
|
426
426
|
{
|
|
427
427
|
var M = function() {
|
|
428
|
-
sn || (sn = !0,
|
|
428
|
+
sn || (sn = !0, z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
429
429
|
};
|
|
430
430
|
M.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
431
431
|
get: M,
|
|
@@ -436,7 +436,7 @@ function Mo() {
|
|
|
436
436
|
function co(l, I) {
|
|
437
437
|
{
|
|
438
438
|
var M = function() {
|
|
439
|
-
ln || (ln = !0,
|
|
439
|
+
ln || (ln = !0, z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", I));
|
|
440
440
|
};
|
|
441
441
|
M.isReactWarning = !0, Object.defineProperty(l, "ref", {
|
|
442
442
|
get: M,
|
|
@@ -445,7 +445,7 @@ function Mo() {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
var mo = function(l, I, M, T, ee, Ae, U) {
|
|
448
|
-
var
|
|
448
|
+
var B = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: t,
|
|
451
451
|
// Built-in properties that belong on the element
|
|
@@ -456,27 +456,27 @@ function Mo() {
|
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: Ae
|
|
458
458
|
};
|
|
459
|
-
return
|
|
459
|
+
return B._store = {}, Object.defineProperty(B._store, "validated", {
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
462
462
|
writable: !0,
|
|
463
463
|
value: !1
|
|
464
|
-
}), Object.defineProperty(
|
|
464
|
+
}), Object.defineProperty(B, "_self", {
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
468
|
value: T
|
|
469
|
-
}), Object.defineProperty(
|
|
469
|
+
}), Object.defineProperty(B, "_source", {
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
473
|
value: ee
|
|
474
|
-
}), Object.freeze && (Object.freeze(
|
|
474
|
+
}), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
|
|
475
475
|
};
|
|
476
476
|
function po(l, I, M, T, ee) {
|
|
477
477
|
{
|
|
478
|
-
var Ae, U = {},
|
|
479
|
-
M !== void 0 && (an(M),
|
|
478
|
+
var Ae, U = {}, B = null, ye = null;
|
|
479
|
+
M !== void 0 && (an(M), B = "" + M), so(I) && (an(I.key), B = "" + I.key), ao(I) && (ye = I.ref, lo(I, ee));
|
|
480
480
|
for (Ae in I)
|
|
481
481
|
Et.call(I, Ae) && !Ao.hasOwnProperty(Ae) && (U[Ae] = I[Ae]);
|
|
482
482
|
if (l && l.defaultProps) {
|
|
@@ -484,11 +484,11 @@ function Mo() {
|
|
|
484
484
|
for (Ae in me)
|
|
485
485
|
U[Ae] === void 0 && (U[Ae] = me[Ae]);
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
487
|
+
if (B || ye) {
|
|
488
488
|
var pe = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
489
|
-
|
|
489
|
+
B && uo(U, pe), ye && co(U, pe);
|
|
490
490
|
}
|
|
491
|
-
return mo(l,
|
|
491
|
+
return mo(l, B, ye, ee, T, ht.current, U);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var mr = w.ReactCurrentOwner, un = w.ReactDebugCurrentFrame;
|
|
@@ -550,7 +550,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
550
550
|
return;
|
|
551
551
|
mn[M] = !0;
|
|
552
552
|
var T = "";
|
|
553
|
-
l && l._owner && l._owner !== mr.current && (T = " It was passed a child from " + _(l._owner.type) + "."), at(l),
|
|
553
|
+
l && l._owner && l._owner !== mr.current && (T = " It was passed a child from " + _(l._owner.type) + "."), at(l), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', M, T), at(null);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
function pn(l, I) {
|
|
@@ -592,9 +592,9 @@ Check the top-level render call using <` + M + ">.");
|
|
|
592
592
|
} else if (I.PropTypes !== void 0 && !dr) {
|
|
593
593
|
dr = !0;
|
|
594
594
|
var ee = _(I);
|
|
595
|
-
|
|
595
|
+
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ee || "Unknown");
|
|
596
596
|
}
|
|
597
|
-
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved &&
|
|
597
|
+
typeof I.getDefaultProps == "function" && !I.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function go(l) {
|
|
@@ -602,23 +602,23 @@ Check the top-level render call using <` + M + ">.");
|
|
|
602
602
|
for (var I = Object.keys(l.props), M = 0; M < I.length; M++) {
|
|
603
603
|
var T = I[M];
|
|
604
604
|
if (T !== "children" && T !== "key") {
|
|
605
|
-
at(l),
|
|
605
|
+
at(l), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", T), at(null);
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
|
-
l.ref !== null && (at(l),
|
|
609
|
+
l.ref !== null && (at(l), z("Invalid attribute `ref` supplied to `React.Fragment`."), at(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
function fn(l, I, M, T, ee, Ae) {
|
|
613
613
|
{
|
|
614
614
|
var U = ue(l);
|
|
615
615
|
if (!U) {
|
|
616
|
-
var
|
|
617
|
-
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (
|
|
616
|
+
var B = "";
|
|
617
|
+
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (B += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
618
|
var ye = fo(ee);
|
|
619
|
-
ye ?
|
|
619
|
+
ye ? B += ye : B += cn();
|
|
620
620
|
var me;
|
|
621
|
-
l === null ? me = "null" : ur(l) ? me = "array" : l !== void 0 && l.$$typeof === t ? (me = "<" + (_(l.type) || "Unknown") + " />",
|
|
621
|
+
l === null ? me = "null" : ur(l) ? me = "array" : l !== void 0 && l.$$typeof === t ? (me = "<" + (_(l.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : me = typeof l, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", me, B);
|
|
622
622
|
}
|
|
623
623
|
var pe = po(l, I, M, ee, Ae);
|
|
624
624
|
if (pe == null)
|
|
@@ -632,7 +632,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
632
632
|
pn(we[st], l);
|
|
633
633
|
Object.freeze && Object.freeze(we);
|
|
634
634
|
} else
|
|
635
|
-
|
|
635
|
+
z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
636
636
|
else
|
|
637
637
|
pn(we, l);
|
|
638
638
|
}
|
|
@@ -652,7 +652,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
652
652
|
process.env.NODE_ENV === "production" ? Mr.exports = Oo() : Mr.exports = Mo();
|
|
653
653
|
var m = Mr.exports;
|
|
654
654
|
const So = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=", Lo = ({ children: e }) => {
|
|
655
|
-
const [t, r] =
|
|
655
|
+
const [t, r] = V(window.innerWidth);
|
|
656
656
|
return ve(() => {
|
|
657
657
|
const n = () => {
|
|
658
658
|
r(window.innerWidth);
|
|
@@ -1389,8 +1389,8 @@ function Ho() {
|
|
|
1389
1389
|
if (vn)
|
|
1390
1390
|
return re;
|
|
1391
1391
|
vn = 1;
|
|
1392
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118,
|
|
1393
|
-
function
|
|
1392
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1393
|
+
function J(b) {
|
|
1394
1394
|
if (typeof b == "object" && b !== null) {
|
|
1395
1395
|
var ie = b.$$typeof;
|
|
1396
1396
|
switch (ie) {
|
|
@@ -1420,36 +1420,36 @@ function Ho() {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1423
|
+
function S(b) {
|
|
1424
|
+
return J(b) === s;
|
|
1425
1425
|
}
|
|
1426
1426
|
return re.AsyncMode = c, re.ConcurrentMode = s, re.ContextConsumer = a, re.ContextProvider = A, re.Element = t, re.ForwardRef = u, re.Fragment = n, re.Lazy = h, re.Memo = f, re.Portal = r, re.Profiler = o, re.StrictMode = i, re.Suspense = d, re.isAsyncMode = function(b) {
|
|
1427
|
-
return
|
|
1428
|
-
}, re.isConcurrentMode =
|
|
1429
|
-
return
|
|
1427
|
+
return S(b) || J(b) === c;
|
|
1428
|
+
}, re.isConcurrentMode = S, re.isContextConsumer = function(b) {
|
|
1429
|
+
return J(b) === a;
|
|
1430
1430
|
}, re.isContextProvider = function(b) {
|
|
1431
|
-
return
|
|
1431
|
+
return J(b) === A;
|
|
1432
1432
|
}, re.isElement = function(b) {
|
|
1433
1433
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
1434
1434
|
}, re.isForwardRef = function(b) {
|
|
1435
|
-
return
|
|
1435
|
+
return J(b) === u;
|
|
1436
1436
|
}, re.isFragment = function(b) {
|
|
1437
|
-
return
|
|
1437
|
+
return J(b) === n;
|
|
1438
1438
|
}, re.isLazy = function(b) {
|
|
1439
|
-
return
|
|
1439
|
+
return J(b) === h;
|
|
1440
1440
|
}, re.isMemo = function(b) {
|
|
1441
|
-
return
|
|
1441
|
+
return J(b) === f;
|
|
1442
1442
|
}, re.isPortal = function(b) {
|
|
1443
|
-
return
|
|
1443
|
+
return J(b) === r;
|
|
1444
1444
|
}, re.isProfiler = function(b) {
|
|
1445
|
-
return
|
|
1445
|
+
return J(b) === o;
|
|
1446
1446
|
}, re.isStrictMode = function(b) {
|
|
1447
|
-
return
|
|
1447
|
+
return J(b) === i;
|
|
1448
1448
|
}, re.isSuspense = function(b) {
|
|
1449
|
-
return
|
|
1449
|
+
return J(b) === d;
|
|
1450
1450
|
}, re.isValidElementType = function(b) {
|
|
1451
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === s || b === o || b === i || b === d || b === q || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === f || b.$$typeof === A || b.$$typeof === a || b.$$typeof === u || b.$$typeof === C || b.$$typeof === w || b.$$typeof ===
|
|
1452
|
-
}, re.typeOf =
|
|
1451
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === s || b === o || b === i || b === d || b === q || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === f || b.$$typeof === A || b.$$typeof === a || b.$$typeof === u || b.$$typeof === C || b.$$typeof === w || b.$$typeof === z || b.$$typeof === g);
|
|
1452
|
+
}, re.typeOf = J, re;
|
|
1453
1453
|
}
|
|
1454
1454
|
var ne = {};
|
|
1455
1455
|
/** @license React v16.13.1
|
|
@@ -1463,17 +1463,17 @@ var ne = {};
|
|
|
1463
1463
|
var bn;
|
|
1464
1464
|
function Xo() {
|
|
1465
1465
|
return bn || (bn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1466
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118,
|
|
1467
|
-
function
|
|
1468
|
-
return typeof
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
function L
|
|
1472
|
-
if (typeof
|
|
1473
|
-
var Ie =
|
|
1466
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, A = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, q = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, w = e ? Symbol.for("react.responder") : 60118, z = e ? Symbol.for("react.scope") : 60119;
|
|
1467
|
+
function J(L) {
|
|
1468
|
+
return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1469
|
+
L === n || L === s || L === o || L === i || L === d || L === q || typeof L == "object" && L !== null && (L.$$typeof === h || L.$$typeof === f || L.$$typeof === A || L.$$typeof === a || L.$$typeof === u || L.$$typeof === C || L.$$typeof === w || L.$$typeof === z || L.$$typeof === g);
|
|
1470
|
+
}
|
|
1471
|
+
function S(L) {
|
|
1472
|
+
if (typeof L == "object" && L !== null) {
|
|
1473
|
+
var Ie = L.$$typeof;
|
|
1474
1474
|
switch (Ie) {
|
|
1475
1475
|
case t:
|
|
1476
|
-
var At =
|
|
1476
|
+
var At = L.type;
|
|
1477
1477
|
switch (At) {
|
|
1478
1478
|
case c:
|
|
1479
1479
|
case s:
|
|
@@ -1501,46 +1501,46 @@ function Xo() {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
var b = c, ie = s, ae = a, F = A, oe = t, ue = u, ce = n, P = h, _ = f, Z = r, x = o, k = i, p = d, W = !1;
|
|
1504
|
-
function
|
|
1505
|
-
return W || (W = !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.")), v(
|
|
1504
|
+
function N(L) {
|
|
1505
|
+
return W || (W = !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.")), v(L) || S(L) === c;
|
|
1506
1506
|
}
|
|
1507
|
-
function v(
|
|
1508
|
-
return L
|
|
1507
|
+
function v(L) {
|
|
1508
|
+
return S(L) === s;
|
|
1509
1509
|
}
|
|
1510
|
-
function K(
|
|
1511
|
-
return L
|
|
1510
|
+
function K(L) {
|
|
1511
|
+
return S(L) === a;
|
|
1512
1512
|
}
|
|
1513
|
-
function O(
|
|
1514
|
-
return L
|
|
1513
|
+
function O(L) {
|
|
1514
|
+
return S(L) === A;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return typeof
|
|
1516
|
+
function D(L) {
|
|
1517
|
+
return typeof L == "object" && L !== null && L.$$typeof === t;
|
|
1518
1518
|
}
|
|
1519
|
-
function j(
|
|
1520
|
-
return L
|
|
1519
|
+
function j(L) {
|
|
1520
|
+
return S(L) === u;
|
|
1521
1521
|
}
|
|
1522
|
-
function G(
|
|
1523
|
-
return L
|
|
1522
|
+
function G(L) {
|
|
1523
|
+
return S(L) === n;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return L
|
|
1525
|
+
function E(L) {
|
|
1526
|
+
return S(L) === h;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
return L
|
|
1528
|
+
function Y(L) {
|
|
1529
|
+
return S(L) === f;
|
|
1530
1530
|
}
|
|
1531
|
-
function R(
|
|
1532
|
-
return L
|
|
1531
|
+
function R(L) {
|
|
1532
|
+
return S(L) === r;
|
|
1533
1533
|
}
|
|
1534
|
-
function Q(
|
|
1535
|
-
return L
|
|
1534
|
+
function Q(L) {
|
|
1535
|
+
return S(L) === o;
|
|
1536
1536
|
}
|
|
1537
|
-
function X(
|
|
1538
|
-
return L
|
|
1537
|
+
function X(L) {
|
|
1538
|
+
return S(L) === i;
|
|
1539
1539
|
}
|
|
1540
|
-
function de(
|
|
1541
|
-
return L
|
|
1540
|
+
function de(L) {
|
|
1541
|
+
return S(L) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
ne.AsyncMode = b, ne.ConcurrentMode = ie, ne.ContextConsumer = ae, ne.ContextProvider = F, ne.Element = oe, ne.ForwardRef = ue, ne.Fragment = ce, ne.Lazy = P, ne.Memo = _, ne.Portal = Z, ne.Profiler = x, ne.StrictMode = k, ne.Suspense = p, ne.isAsyncMode =
|
|
1543
|
+
ne.AsyncMode = b, ne.ConcurrentMode = ie, ne.ContextConsumer = ae, ne.ContextProvider = F, ne.Element = oe, ne.ForwardRef = ue, ne.Fragment = ce, ne.Lazy = P, ne.Memo = _, ne.Portal = Z, ne.Profiler = x, ne.StrictMode = k, ne.Suspense = p, ne.isAsyncMode = N, ne.isConcurrentMode = v, ne.isContextConsumer = K, ne.isContextProvider = O, ne.isElement = D, ne.isForwardRef = j, ne.isFragment = G, ne.isLazy = E, ne.isMemo = Y, ne.isPortal = R, ne.isProfiler = Q, ne.isStrictMode = X, ne.isSuspense = de, ne.isValidElementType = J, ne.typeOf = S;
|
|
1544
1544
|
}()), ne;
|
|
1545
1545
|
}
|
|
1546
1546
|
var Cn;
|
|
@@ -1695,9 +1695,9 @@ function Vo() {
|
|
|
1695
1695
|
object: w("object"),
|
|
1696
1696
|
string: w("string"),
|
|
1697
1697
|
symbol: w("symbol"),
|
|
1698
|
-
any:
|
|
1699
|
-
arrayOf:
|
|
1700
|
-
element:
|
|
1698
|
+
any: z(),
|
|
1699
|
+
arrayOf: J,
|
|
1700
|
+
element: S(),
|
|
1701
1701
|
elementType: b(),
|
|
1702
1702
|
instanceOf: ie,
|
|
1703
1703
|
node: ue(),
|
|
@@ -1717,33 +1717,33 @@ function Vo() {
|
|
|
1717
1717
|
function C(v) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
1719
|
var K = {}, O = 0;
|
|
1720
|
-
function
|
|
1721
|
-
if (R = R || q, X = X ||
|
|
1720
|
+
function D(G, E, Y, R, Q, X, de) {
|
|
1721
|
+
if (R = R || q, X = X || Y, de !== r) {
|
|
1722
1722
|
if (c) {
|
|
1723
|
-
var
|
|
1723
|
+
var L = new Error(
|
|
1724
1724
|
"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"
|
|
1725
1725
|
);
|
|
1726
|
-
throw
|
|
1726
|
+
throw L.name = "Invariant Violation", L;
|
|
1727
1727
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1728
|
-
var Ie = R + ":" +
|
|
1728
|
+
var Ie = R + ":" + Y;
|
|
1729
1729
|
!K[Ie] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1730
1730
|
O < 3 && (o(
|
|
1731
1731
|
"You are manually calling a React.PropTypes validation function for the `" + X + "` prop on `" + R + "`. 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."
|
|
1732
1732
|
), K[Ie] = !0, O++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return Y
|
|
1735
|
+
return E[Y] == null ? G ? E[Y] === null ? new g("The " + Q + " `" + X + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new g("The " + Q + " `" + X + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : v(E, Y, R, Q, X);
|
|
1736
1736
|
}
|
|
1737
|
-
var j =
|
|
1738
|
-
return j.isRequired =
|
|
1737
|
+
var j = D.bind(null, !1);
|
|
1738
|
+
return j.isRequired = D.bind(null, !0), j;
|
|
1739
1739
|
}
|
|
1740
1740
|
function w(v) {
|
|
1741
|
-
function K(O,
|
|
1742
|
-
var R = O[
|
|
1741
|
+
function K(O, D, j, G, E, Y) {
|
|
1742
|
+
var R = O[D], Q = k(R);
|
|
1743
1743
|
if (Q !== v) {
|
|
1744
1744
|
var X = p(R);
|
|
1745
1745
|
return new g(
|
|
1746
|
-
"Invalid " + G + " `" +
|
|
1746
|
+
"Invalid " + G + " `" + E + "` of type " + ("`" + X + "` supplied to `" + j + "`, expected ") + ("`" + v + "`."),
|
|
1747
1747
|
{ expectedType: v }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
@@ -1751,20 +1751,20 @@ function Vo() {
|
|
|
1751
1751
|
}
|
|
1752
1752
|
return C(K);
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function z() {
|
|
1755
1755
|
return C(A);
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
function K(O,
|
|
1757
|
+
function J(v) {
|
|
1758
|
+
function K(O, D, j, G, E) {
|
|
1759
1759
|
if (typeof v != "function")
|
|
1760
|
-
return new g("Property `" +
|
|
1761
|
-
var
|
|
1762
|
-
if (!Array.isArray(
|
|
1763
|
-
var R = k(
|
|
1764
|
-
return new g("Invalid " + G + " `" +
|
|
1760
|
+
return new g("Property `" + E + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
1761
|
+
var Y = O[D];
|
|
1762
|
+
if (!Array.isArray(Y)) {
|
|
1763
|
+
var R = k(Y);
|
|
1764
|
+
return new g("Invalid " + G + " `" + E + "` of type " + ("`" + R + "` supplied to `" + j + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
|
-
for (var Q = 0; Q <
|
|
1767
|
-
var X = v(
|
|
1766
|
+
for (var Q = 0; Q < Y.length; Q++) {
|
|
1767
|
+
var X = v(Y, Q, j, G, E + "[" + Q + "]", r);
|
|
1768
1768
|
if (X instanceof Error)
|
|
1769
1769
|
return X;
|
|
1770
1770
|
}
|
|
@@ -1772,33 +1772,33 @@ function Vo() {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
return C(K);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
function v(K, O,
|
|
1777
|
-
var
|
|
1778
|
-
if (!a(
|
|
1779
|
-
var
|
|
1780
|
-
return new g("Invalid " + j + " `" + G + "` of type " + ("`" +
|
|
1775
|
+
function S() {
|
|
1776
|
+
function v(K, O, D, j, G) {
|
|
1777
|
+
var E = K[O];
|
|
1778
|
+
if (!a(E)) {
|
|
1779
|
+
var Y = k(E);
|
|
1780
|
+
return new g("Invalid " + j + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
1784
|
return C(v);
|
|
1785
1785
|
}
|
|
1786
1786
|
function b() {
|
|
1787
|
-
function v(K, O,
|
|
1788
|
-
var
|
|
1789
|
-
if (!e.isValidElementType(
|
|
1790
|
-
var
|
|
1791
|
-
return new g("Invalid " + j + " `" + G + "` of type " + ("`" +
|
|
1787
|
+
function v(K, O, D, j, G) {
|
|
1788
|
+
var E = K[O];
|
|
1789
|
+
if (!e.isValidElementType(E)) {
|
|
1790
|
+
var Y = k(E);
|
|
1791
|
+
return new g("Invalid " + j + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
1795
|
return C(v);
|
|
1796
1796
|
}
|
|
1797
1797
|
function ie(v) {
|
|
1798
|
-
function K(O,
|
|
1799
|
-
if (!(O[
|
|
1800
|
-
var
|
|
1801
|
-
return new g("Invalid " + G + " `" +
|
|
1798
|
+
function K(O, D, j, G, E) {
|
|
1799
|
+
if (!(O[D] instanceof v)) {
|
|
1800
|
+
var Y = v.name || q, R = N(O[D]);
|
|
1801
|
+
return new g("Invalid " + G + " `" + E + "` of type " + ("`" + R + "` supplied to `" + j + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
@@ -1809,28 +1809,28 @@ function Vo() {
|
|
|
1809
1809
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1810
1810
|
"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])."
|
|
1811
1811
|
) : o("Invalid argument supplied to oneOf, expected an array.")), A;
|
|
1812
|
-
function K(O,
|
|
1813
|
-
for (var
|
|
1814
|
-
if (h(
|
|
1812
|
+
function K(O, D, j, G, E) {
|
|
1813
|
+
for (var Y = O[D], R = 0; R < v.length; R++)
|
|
1814
|
+
if (h(Y, v[R]))
|
|
1815
1815
|
return null;
|
|
1816
|
-
var Q = JSON.stringify(v, function(de,
|
|
1817
|
-
var Ie = p(
|
|
1818
|
-
return Ie === "symbol" ? String(
|
|
1816
|
+
var Q = JSON.stringify(v, function(de, L) {
|
|
1817
|
+
var Ie = p(L);
|
|
1818
|
+
return Ie === "symbol" ? String(L) : L;
|
|
1819
1819
|
});
|
|
1820
|
-
return new g("Invalid " + G + " `" +
|
|
1820
|
+
return new g("Invalid " + G + " `" + E + "` of value `" + String(Y) + "` " + ("supplied to `" + j + "`, expected one of " + Q + "."));
|
|
1821
1821
|
}
|
|
1822
1822
|
return C(K);
|
|
1823
1823
|
}
|
|
1824
1824
|
function F(v) {
|
|
1825
|
-
function K(O,
|
|
1825
|
+
function K(O, D, j, G, E) {
|
|
1826
1826
|
if (typeof v != "function")
|
|
1827
|
-
return new g("Property `" +
|
|
1828
|
-
var
|
|
1827
|
+
return new g("Property `" + E + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var Y = O[D], R = k(Y);
|
|
1829
1829
|
if (R !== "object")
|
|
1830
|
-
return new g("Invalid " + G + " `" +
|
|
1831
|
-
for (var Q in
|
|
1832
|
-
if (n(
|
|
1833
|
-
var X = v(
|
|
1830
|
+
return new g("Invalid " + G + " `" + E + "` of type " + ("`" + R + "` supplied to `" + j + "`, expected an object."));
|
|
1831
|
+
for (var Q in Y)
|
|
1832
|
+
if (n(Y, Q)) {
|
|
1833
|
+
var X = v(Y, Q, j, G, E + "." + Q, r);
|
|
1834
1834
|
if (X instanceof Error)
|
|
1835
1835
|
return X;
|
|
1836
1836
|
}
|
|
@@ -1848,39 +1848,39 @@ function Vo() {
|
|
|
1848
1848
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(O) + " at index " + K + "."
|
|
1849
1849
|
), A;
|
|
1850
1850
|
}
|
|
1851
|
-
function
|
|
1851
|
+
function D(j, G, E, Y, R) {
|
|
1852
1852
|
for (var Q = [], X = 0; X < v.length; X++) {
|
|
1853
|
-
var de = v[X],
|
|
1854
|
-
if (
|
|
1853
|
+
var de = v[X], L = de(j, G, E, Y, R, r);
|
|
1854
|
+
if (L == null)
|
|
1855
1855
|
return null;
|
|
1856
|
-
|
|
1856
|
+
L.data && n(L.data, "expectedType") && Q.push(L.data.expectedType);
|
|
1857
1857
|
}
|
|
1858
1858
|
var Ie = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
|
|
1859
|
-
return new g("Invalid " +
|
|
1859
|
+
return new g("Invalid " + Y + " `" + R + "` supplied to " + ("`" + E + "`" + Ie + "."));
|
|
1860
1860
|
}
|
|
1861
|
-
return C(
|
|
1861
|
+
return C(D);
|
|
1862
1862
|
}
|
|
1863
1863
|
function ue() {
|
|
1864
|
-
function v(K, O,
|
|
1865
|
-
return Z(K[O]) ? null : new g("Invalid " + j + " `" + G + "` supplied to " + ("`" +
|
|
1864
|
+
function v(K, O, D, j, G) {
|
|
1865
|
+
return Z(K[O]) ? null : new g("Invalid " + j + " `" + G + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
1867
|
return C(v);
|
|
1868
1868
|
}
|
|
1869
|
-
function ce(v, K, O,
|
|
1869
|
+
function ce(v, K, O, D, j) {
|
|
1870
1870
|
return new g(
|
|
1871
|
-
(v || "React class") + ": " + K + " type `" + O + "." +
|
|
1871
|
+
(v || "React class") + ": " + K + " type `" + O + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
1874
|
function P(v) {
|
|
1875
|
-
function K(O,
|
|
1876
|
-
var
|
|
1875
|
+
function K(O, D, j, G, E) {
|
|
1876
|
+
var Y = O[D], R = k(Y);
|
|
1877
1877
|
if (R !== "object")
|
|
1878
|
-
return new g("Invalid " + G + " `" +
|
|
1878
|
+
return new g("Invalid " + G + " `" + E + "` of type `" + R + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1879
1879
|
for (var Q in v) {
|
|
1880
1880
|
var X = v[Q];
|
|
1881
1881
|
if (typeof X != "function")
|
|
1882
|
-
return ce(j, G,
|
|
1883
|
-
var de = X(
|
|
1882
|
+
return ce(j, G, E, Q, p(X));
|
|
1883
|
+
var de = X(Y, Q, j, G, E + "." + Q, r);
|
|
1884
1884
|
if (de)
|
|
1885
1885
|
return de;
|
|
1886
1886
|
}
|
|
@@ -1889,23 +1889,23 @@ function Vo() {
|
|
|
1889
1889
|
return C(K);
|
|
1890
1890
|
}
|
|
1891
1891
|
function _(v) {
|
|
1892
|
-
function K(O,
|
|
1893
|
-
var
|
|
1892
|
+
function K(O, D, j, G, E) {
|
|
1893
|
+
var Y = O[D], R = k(Y);
|
|
1894
1894
|
if (R !== "object")
|
|
1895
|
-
return new g("Invalid " + G + " `" +
|
|
1896
|
-
var Q = t({}, O[
|
|
1895
|
+
return new g("Invalid " + G + " `" + E + "` of type `" + R + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1896
|
+
var Q = t({}, O[D], v);
|
|
1897
1897
|
for (var X in Q) {
|
|
1898
1898
|
var de = v[X];
|
|
1899
1899
|
if (n(v, X) && typeof de != "function")
|
|
1900
|
-
return ce(j, G,
|
|
1900
|
+
return ce(j, G, E, X, p(de));
|
|
1901
1901
|
if (!de)
|
|
1902
1902
|
return new g(
|
|
1903
|
-
"Invalid " + G + " `" +
|
|
1903
|
+
"Invalid " + G + " `" + E + "` key `" + X + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(O[D], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var
|
|
1907
|
-
if (
|
|
1908
|
-
return
|
|
1906
|
+
var L = de(Y, X, j, G, E + "." + X, r);
|
|
1907
|
+
if (L)
|
|
1908
|
+
return L;
|
|
1909
1909
|
}
|
|
1910
1910
|
return null;
|
|
1911
1911
|
}
|
|
@@ -1926,14 +1926,14 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
|
1926
1926
|
return !0;
|
|
1927
1927
|
var K = d(v);
|
|
1928
1928
|
if (K) {
|
|
1929
|
-
var O = K.call(v),
|
|
1929
|
+
var O = K.call(v), D;
|
|
1930
1930
|
if (K !== v.entries) {
|
|
1931
|
-
for (; !(
|
|
1932
|
-
if (!Z(
|
|
1931
|
+
for (; !(D = O.next()).done; )
|
|
1932
|
+
if (!Z(D.value))
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
} else
|
|
1935
|
-
for (; !(
|
|
1936
|
-
var j =
|
|
1935
|
+
for (; !(D = O.next()).done; ) {
|
|
1936
|
+
var j = D.value;
|
|
1937
1937
|
if (j && !Z(j[1]))
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
}
|
|
@@ -1977,7 +1977,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
|
1977
1977
|
return K;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function N(v) {
|
|
1981
1981
|
return !v.constructor || !v.constructor.name ? q : v.constructor.name;
|
|
1982
1982
|
}
|
|
1983
1983
|
return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
|
|
@@ -2507,11 +2507,11 @@ function or(e, t, r) {
|
|
|
2507
2507
|
if (y.endsWith(g, "{}"))
|
|
2508
2508
|
g = n ? g : g.slice(0, -2), h = JSON.stringify(h);
|
|
2509
2509
|
else if (y.isArray(h) && FA(h) || (y.isFileList(h) || y.endsWith(g, "[]")) && (w = y.toArray(h)))
|
|
2510
|
-
return g = Ii(g), w.forEach(function(
|
|
2511
|
-
!(y.isUndefined(
|
|
2510
|
+
return g = Ii(g), w.forEach(function(J, S) {
|
|
2511
|
+
!(y.isUndefined(J) || J === null) && t.append(
|
|
2512
2512
|
// eslint-disable-next-line no-nested-ternary
|
|
2513
|
-
A === !0 ? Sn([g],
|
|
2514
|
-
s(
|
|
2513
|
+
A === !0 ? Sn([g], S, o) : A === null ? g : g + "[]",
|
|
2514
|
+
s(J)
|
|
2515
2515
|
);
|
|
2516
2516
|
}), !1;
|
|
2517
2517
|
}
|
|
@@ -2526,14 +2526,14 @@ function or(e, t, r) {
|
|
|
2526
2526
|
if (!y.isUndefined(h)) {
|
|
2527
2527
|
if (d.indexOf(h) !== -1)
|
|
2528
2528
|
throw Error("Circular reference detected in " + g.join("."));
|
|
2529
|
-
d.push(h), y.forEach(h, function(w,
|
|
2529
|
+
d.push(h), y.forEach(h, function(w, z) {
|
|
2530
2530
|
(!(y.isUndefined(w) || w === null) && i.call(
|
|
2531
2531
|
t,
|
|
2532
2532
|
w,
|
|
2533
|
-
y.isString(
|
|
2533
|
+
y.isString(z) ? z.trim() : z,
|
|
2534
2534
|
g,
|
|
2535
2535
|
q
|
|
2536
|
-
)) === !0 && f(w, g ? g.concat(
|
|
2536
|
+
)) === !0 && f(w, g ? g.concat(z) : [z]);
|
|
2537
2537
|
}), d.pop();
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
@@ -3719,10 +3719,10 @@ function ar(e) {
|
|
|
3719
3719
|
let { children: a, position: c, preventExitTransition: s, done: u, nodeRef: d, isIn: q } = A;
|
|
3720
3720
|
const f = n ? `${t}--${c}` : t, h = n ? `${r}--${c}` : r, g = _e(0);
|
|
3721
3721
|
return wo(() => {
|
|
3722
|
-
const C = d.current, w = f.split(" "),
|
|
3723
|
-
|
|
3722
|
+
const C = d.current, w = f.split(" "), z = (J) => {
|
|
3723
|
+
J.target === d.current && (C.dispatchEvent(new Event("d")), C.removeEventListener("animationend", z), C.removeEventListener("animationcancel", z), g.current === 0 && J.type !== "animationcancel" && C.classList.remove(...w));
|
|
3724
3724
|
};
|
|
3725
|
-
C.classList.add(...w), C.addEventListener("animationend",
|
|
3725
|
+
C.classList.add(...w), C.addEventListener("animationend", z), C.addEventListener("animationcancel", z);
|
|
3726
3726
|
}, []), ve(() => {
|
|
3727
3727
|
const C = d.current, w = () => {
|
|
3728
3728
|
C.removeEventListener("animationend", w), i ? Ya(C, u, o) : u();
|
|
@@ -3767,7 +3767,7 @@ const xe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3767
3767
|
return te.createElement("div", { className: "Toastify__spinner" });
|
|
3768
3768
|
} };
|
|
3769
3769
|
function za(e) {
|
|
3770
|
-
const [, t] = Io((f) => f + 1, 0), [r, n] =
|
|
3770
|
+
const [, t] = Io((f) => f + 1, 0), [r, n] = V([]), i = _e(null), o = _e(/* @__PURE__ */ new Map()).current, A = (f) => r.indexOf(f) !== -1, a = _e({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: A, getToast: (f) => o.get(f) }).current;
|
|
3771
3771
|
function c(f) {
|
|
3772
3772
|
let { containerId: h } = f;
|
|
3773
3773
|
const { limit: g } = a.props;
|
|
@@ -3786,17 +3786,17 @@ function za(e) {
|
|
|
3786
3786
|
return !i.current || a.props.enableMultiContainer && P.containerId !== a.props.containerId || o.has(P.toastId) && P.updateId == null;
|
|
3787
3787
|
}(w))
|
|
3788
3788
|
return;
|
|
3789
|
-
const { toastId:
|
|
3789
|
+
const { toastId: z, updateId: J, data: S } = w, { props: b } = a, ie = () => s(z), ae = J == null;
|
|
3790
3790
|
ae && a.count++;
|
|
3791
3791
|
const F = { ...b, style: b.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(w).filter((P) => {
|
|
3792
3792
|
let [_, Z] = P;
|
|
3793
3793
|
return Z != null;
|
|
3794
|
-
})), toastId:
|
|
3795
|
-
const P = Dn(o.get(
|
|
3796
|
-
o.delete(
|
|
3794
|
+
})), toastId: z, updateId: J, data: S, closeToast: ie, isIn: !1, className: Qt(w.className || b.toastClassName), bodyClassName: Qt(w.bodyClassName || b.bodyClassName), progressClassName: Qt(w.progressClassName || b.progressClassName), autoClose: !w.isLoading && (oe = w.autoClose, ue = b.autoClose, oe === !1 || bt(oe) && oe > 0 ? oe : ue), deleteToast() {
|
|
3795
|
+
const P = Dn(o.get(z), "removed");
|
|
3796
|
+
o.delete(z), xe.emit(4, P);
|
|
3797
3797
|
const _ = a.queue.length;
|
|
3798
|
-
if (a.count =
|
|
3799
|
-
const Z =
|
|
3798
|
+
if (a.count = z == null ? a.count - a.displayedToast : a.count - 1, a.count < 0 && (a.count = 0), _ > 0) {
|
|
3799
|
+
const Z = z == null ? a.props.limit : 1;
|
|
3800
3800
|
if (_ === 1 || Z === 1)
|
|
3801
3801
|
a.displayedToast++, u();
|
|
3802
3802
|
else {
|
|
@@ -3812,10 +3812,10 @@ function za(e) {
|
|
|
3812
3812
|
F.iconOut = function(P) {
|
|
3813
3813
|
let { theme: _, type: Z, isLoading: x, icon: k } = P, p = null;
|
|
3814
3814
|
const W = { theme: _, type: Z };
|
|
3815
|
-
return k === !1 || (be(k) ? p = k(W) : ut(k) ? p = Or(k, W) : nt(k) || bt(k) ? p = k : x ? p = Kr.spinner() : ((
|
|
3815
|
+
return k === !1 || (be(k) ? p = k(W) : ut(k) ? p = Or(k, W) : nt(k) || bt(k) ? p = k : x ? p = Kr.spinner() : ((N) => N in Kr)(Z) && (p = Kr[Z](W))), p;
|
|
3816
3816
|
}(F), be(w.onOpen) && (F.onOpen = w.onOpen), be(w.onClose) && (F.onClose = w.onClose), F.closeButton = b.closeButton, w.closeButton === !1 || wr(w.closeButton) ? F.closeButton = w.closeButton : w.closeButton === !0 && (F.closeButton = !wr(b.closeButton) || b.closeButton);
|
|
3817
3817
|
let ce = f;
|
|
3818
|
-
ut(f) && !nt(f.type) ? ce = Or(f, { closeToast: ie, toastProps: F, data:
|
|
3818
|
+
ut(f) && !nt(f.type) ? ce = Or(f, { closeToast: ie, toastProps: F, data: S }) : be(f) && (ce = f({ closeToast: ie, toastProps: F, data: S })), b.limit && b.limit > 0 && a.count > b.limit && ae ? a.queue.push({ toastContent: ce, toastProps: F, staleId: C }) : bt(g) ? setTimeout(() => {
|
|
3819
3819
|
q(ce, F, C);
|
|
3820
3820
|
}, g) : q(ce, F, C);
|
|
3821
3821
|
}
|
|
@@ -3823,7 +3823,7 @@ function za(e) {
|
|
|
3823
3823
|
const { toastId: C } = h;
|
|
3824
3824
|
g && o.delete(g);
|
|
3825
3825
|
const w = { content: f, props: h };
|
|
3826
|
-
o.set(C, w), n((
|
|
3826
|
+
o.set(C, w), n((z) => [...z, C].filter((J) => J !== g)), xe.emit(4, Dn(w, w.props.updateId == null ? "added" : "updated"));
|
|
3827
3827
|
}
|
|
3828
3828
|
return ve(() => (a.containerId = e.containerId, xe.cancelEmit(3).on(0, d).on(1, (f) => i.current && s(f)).on(5, c).emit(2, a), () => {
|
|
3829
3829
|
o.clear(), xe.emit(3, a);
|
|
@@ -3844,18 +3844,18 @@ function Rn(e) {
|
|
|
3844
3844
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3845
3845
|
}
|
|
3846
3846
|
function ka(e) {
|
|
3847
|
-
const [t, r] =
|
|
3848
|
-
function f(
|
|
3847
|
+
const [t, r] = V(!1), [n, i] = V(!1), o = _e(null), A = _e({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = _e(e), { autoClose: c, pauseOnHover: s, closeToast: u, onClick: d, closeOnClick: q } = e;
|
|
3848
|
+
function f(S) {
|
|
3849
3849
|
if (e.draggable) {
|
|
3850
|
-
|
|
3850
|
+
S.nativeEvent.type === "touchstart" && S.nativeEvent.preventDefault(), A.didMove = !1, document.addEventListener("mousemove", w), document.addEventListener("mouseup", z), document.addEventListener("touchmove", w), document.addEventListener("touchend", z);
|
|
3851
3851
|
const b = o.current;
|
|
3852
|
-
A.canCloseOnClick = !0, A.canDrag = !0, A.boundingRect = b.getBoundingClientRect(), b.style.transition = "", A.x = Gn(
|
|
3852
|
+
A.canCloseOnClick = !0, A.canDrag = !0, A.boundingRect = b.getBoundingClientRect(), b.style.transition = "", A.x = Gn(S.nativeEvent), A.y = Rn(S.nativeEvent), e.draggableDirection === "x" ? (A.start = A.x, A.removalDistance = b.offsetWidth * (e.draggablePercent / 100)) : (A.start = A.y, A.removalDistance = b.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent / 100));
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
|
-
function h(
|
|
3855
|
+
function h(S) {
|
|
3856
3856
|
if (A.boundingRect) {
|
|
3857
3857
|
const { top: b, bottom: ie, left: ae, right: F } = A.boundingRect;
|
|
3858
|
-
|
|
3858
|
+
S.nativeEvent.type !== "touchend" && e.pauseOnHover && A.x >= ae && A.x <= F && A.y >= b && A.y <= ie ? C() : g();
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
3861
|
function g() {
|
|
@@ -3864,31 +3864,31 @@ function ka(e) {
|
|
|
3864
3864
|
function C() {
|
|
3865
3865
|
r(!1);
|
|
3866
3866
|
}
|
|
3867
|
-
function w(
|
|
3867
|
+
function w(S) {
|
|
3868
3868
|
const b = o.current;
|
|
3869
|
-
A.canDrag && b && (A.didMove = !0, t && C(), A.x = Gn(
|
|
3869
|
+
A.canDrag && b && (A.didMove = !0, t && C(), A.x = Gn(S), A.y = Rn(S), A.delta = e.draggableDirection === "x" ? A.x - A.start : A.y - A.start, A.start !== A.x && (A.canCloseOnClick = !1), b.style.transform = `translate${e.draggableDirection}(${A.delta}px)`, b.style.opacity = "" + (1 - Math.abs(A.delta / A.removalDistance)));
|
|
3870
3870
|
}
|
|
3871
|
-
function
|
|
3872
|
-
document.removeEventListener("mousemove", w), document.removeEventListener("mouseup",
|
|
3873
|
-
const
|
|
3874
|
-
if (A.canDrag && A.didMove &&
|
|
3871
|
+
function z() {
|
|
3872
|
+
document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", z), document.removeEventListener("touchmove", w), document.removeEventListener("touchend", z);
|
|
3873
|
+
const S = o.current;
|
|
3874
|
+
if (A.canDrag && A.didMove && S) {
|
|
3875
3875
|
if (A.canDrag = !1, Math.abs(A.delta) > A.removalDistance)
|
|
3876
3876
|
return i(!0), void e.closeToast();
|
|
3877
|
-
|
|
3877
|
+
S.style.transition = "transform 0.2s, opacity 0.2s", S.style.transform = `translate${e.draggableDirection}(0)`, S.style.opacity = "1";
|
|
3878
3878
|
}
|
|
3879
3879
|
}
|
|
3880
3880
|
ve(() => {
|
|
3881
3881
|
a.current = e;
|
|
3882
3882
|
}), ve(() => (o.current && o.current.addEventListener("d", g, { once: !0 }), be(e.onOpen) && e.onOpen(ut(e.children) && e.children.props), () => {
|
|
3883
|
-
const
|
|
3884
|
-
be(
|
|
3883
|
+
const S = a.current;
|
|
3884
|
+
be(S.onClose) && S.onClose(ut(S.children) && S.children.props);
|
|
3885
3885
|
}), []), ve(() => (e.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener("focus", g), window.addEventListener("blur", C)), () => {
|
|
3886
3886
|
e.pauseOnFocusLoss && (window.removeEventListener("focus", g), window.removeEventListener("blur", C));
|
|
3887
3887
|
}), [e.pauseOnFocusLoss]);
|
|
3888
|
-
const
|
|
3889
|
-
return c && s && (
|
|
3890
|
-
d && d(
|
|
3891
|
-
}), { playToast: g, pauseToast: C, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers:
|
|
3888
|
+
const J = { onMouseDown: f, onTouchStart: f, onMouseUp: h, onTouchEnd: h };
|
|
3889
|
+
return c && s && (J.onMouseEnter = C, J.onMouseLeave = g), q && (J.onClick = (S) => {
|
|
3890
|
+
d && d(S), A.canCloseOnClick && u();
|
|
3891
|
+
}), { playToast: g, pauseToast: C, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers: J };
|
|
3892
3892
|
}
|
|
3893
3893
|
function Gi(e) {
|
|
3894
3894
|
let { closeToast: t, theme: r, ariaLabel: n = "close" } = e;
|
|
@@ -3906,9 +3906,9 @@ function ja(e) {
|
|
|
3906
3906
|
} });
|
|
3907
3907
|
}
|
|
3908
3908
|
const Ja = (e) => {
|
|
3909
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = ka(e), { closeButton: o, children: A, autoClose: a, onClick: c, type: s, hideProgressBar: u, closeToast: d, transition: q, position: f, className: h, style: g, bodyClassName: C, bodyStyle: w, progressClassName:
|
|
3910
|
-
let
|
|
3911
|
-
return o === !1 || (
|
|
3909
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = ka(e), { closeButton: o, children: A, autoClose: a, onClick: c, type: s, hideProgressBar: u, closeToast: d, transition: q, position: f, className: h, style: g, bodyClassName: C, bodyStyle: w, progressClassName: z, progressStyle: J, updateId: S, role: b, progress: ie, rtl: ae, toastId: F, deleteToast: oe, isIn: ue, isLoading: ce, iconOut: P, closeOnClick: _, theme: Z } = e, x = Xe("Toastify__toast", `Toastify__toast-theme--${Z}`, `Toastify__toast--${s}`, { "Toastify__toast--rtl": ae }, { "Toastify__toast--close-on-click": _ }), k = be(h) ? h({ rtl: ae, position: f, type: s, defaultClassName: x }) : Xe(x, h), p = !!ie || !a, W = { closeToast: d, type: s, theme: Z };
|
|
3910
|
+
let N = null;
|
|
3911
|
+
return o === !1 || (N = be(o) ? o(W) : ut(o) ? Or(o, W) : Gi(W)), te.createElement(q, { isIn: ue, done: oe, position: f, preventExitTransition: r, nodeRef: n }, te.createElement("div", { id: F, onClick: c, className: k, ...i, style: g, ref: n }, te.createElement("div", { ...ue && { role: b }, className: be(C) ? C({ type: s }) : Xe("Toastify__toast-body", C), style: w }, P != null && te.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ce }) }, P), te.createElement("div", null, A)), N, te.createElement(ja, { ...S && !p ? { key: `pb-${S}` } : {}, rtl: ae, theme: Z, delay: a, isRunning: t, isIn: ue, closeToast: d, hide: u, type: s, style: J, className: z, controlledProgress: p, progress: ie || 0 })));
|
|
3912
3912
|
}, sr = function(e, t) {
|
|
3913
3913
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3914
3914
|
}, Na = ar(sr("bounce", !0));
|
|
@@ -4160,7 +4160,7 @@ const Ra = ({
|
|
|
4160
4160
|
iframeUrl: i,
|
|
4161
4161
|
fetchFileUrl: o
|
|
4162
4162
|
}) => {
|
|
4163
|
-
const [A, a] =
|
|
4163
|
+
const [A, a] = V(window.innerWidth);
|
|
4164
4164
|
ve(() => {
|
|
4165
4165
|
const s = () => {
|
|
4166
4166
|
a(window.innerWidth);
|
|
@@ -4538,7 +4538,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4538
4538
|
children: e
|
|
4539
4539
|
}
|
|
4540
4540
|
), Fa = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4541
|
-
const [n, i] =
|
|
4541
|
+
const [n, i] = V(e);
|
|
4542
4542
|
ve(() => {
|
|
4543
4543
|
i(e);
|
|
4544
4544
|
}, [e]);
|
|
@@ -4936,26 +4936,26 @@ const es = ({
|
|
|
4936
4936
|
game: g,
|
|
4937
4937
|
setIsConfirmActive: C,
|
|
4938
4938
|
downloadFlex: w,
|
|
4939
|
-
flexDownloadCount:
|
|
4939
|
+
flexDownloadCount: z
|
|
4940
4940
|
}) => {
|
|
4941
|
-
const [
|
|
4941
|
+
const [J, S] = V(!1), [b, ie] = V(wt(5)), [ae, F] = V(""), [oe, ue] = V(!1), [ce, P] = V(!1), [_, Z] = V("download"), x = () => {
|
|
4942
4942
|
r(e);
|
|
4943
|
-
}, k = async (W,
|
|
4943
|
+
}, k = async (W, N, v, K, O, D) => {
|
|
4944
4944
|
try {
|
|
4945
|
-
if (
|
|
4945
|
+
if (S(!0), g.iosUrl = h.iosUrl, g.googleUrl = h.googleUrl, await Xn(g, u), c === "Flex") {
|
|
4946
4946
|
const j = await Bt(
|
|
4947
4947
|
{
|
|
4948
4948
|
_id: W,
|
|
4949
|
-
network:
|
|
4949
|
+
network: N
|
|
4950
4950
|
},
|
|
4951
4951
|
u
|
|
4952
4952
|
);
|
|
4953
4953
|
let G = j.url;
|
|
4954
4954
|
if (!G) {
|
|
4955
|
-
|
|
4955
|
+
S(!1), d(j.message, j);
|
|
4956
4956
|
return;
|
|
4957
4957
|
}
|
|
4958
|
-
let
|
|
4958
|
+
let E;
|
|
4959
4959
|
if ([
|
|
4960
4960
|
"google",
|
|
4961
4961
|
"toutiao",
|
|
@@ -4973,33 +4973,33 @@ const es = ({
|
|
|
4973
4973
|
"voodoo_notion",
|
|
4974
4974
|
"snapchat",
|
|
4975
4975
|
"inmobi"
|
|
4976
|
-
].includes(
|
|
4977
|
-
|
|
4976
|
+
].includes(N) || (N === "fb" || N === "luna") && D)
|
|
4977
|
+
E = document.createElement("iframe"), E.setAttribute("src", "/files/" + G), E.style.display = "none", document.body.appendChild(E), E.click();
|
|
4978
4978
|
else if (K) {
|
|
4979
|
-
let
|
|
4979
|
+
let Y = await fetch(q + "/" + G).then(
|
|
4980
4980
|
(R) => R.text()
|
|
4981
4981
|
);
|
|
4982
|
-
|
|
4982
|
+
E = document.createElement("a"), E.setAttribute(
|
|
4983
4983
|
"href",
|
|
4984
|
-
"data:html/plain;charset=utf-8," + encodeURIComponent(
|
|
4985
|
-
),
|
|
4984
|
+
"data:html/plain;charset=utf-8," + encodeURIComponent(Y)
|
|
4985
|
+
), E.setAttribute(
|
|
4986
4986
|
"download",
|
|
4987
4987
|
G.split("/").reduce((R, Q) => Q, "")
|
|
4988
|
-
),
|
|
4988
|
+
), E.style.display = "none", document.body.appendChild(E), E.click();
|
|
4989
4989
|
}
|
|
4990
|
-
return
|
|
4990
|
+
return S(!1), G;
|
|
4991
4991
|
} else {
|
|
4992
|
-
const j = Qn.includes(
|
|
4992
|
+
const j = Qn.includes(N) ? 1 : 0;
|
|
4993
4993
|
It(
|
|
4994
4994
|
u,
|
|
4995
4995
|
W,
|
|
4996
4996
|
b,
|
|
4997
|
-
J,
|
|
4998
4997
|
N,
|
|
4998
|
+
D,
|
|
4999
4999
|
j,
|
|
5000
5000
|
{}
|
|
5001
5001
|
).then(async (G) => {
|
|
5002
|
-
let { url:
|
|
5002
|
+
let { url: E } = G, Y;
|
|
5003
5003
|
if ([
|
|
5004
5004
|
"google",
|
|
5005
5005
|
"toutiao",
|
|
@@ -5017,31 +5017,31 @@ const es = ({
|
|
|
5017
5017
|
"voodoo_notion",
|
|
5018
5018
|
"snapchat",
|
|
5019
5019
|
"inmobi"
|
|
5020
|
-
].includes(
|
|
5021
|
-
|
|
5020
|
+
].includes(N) || (N === "fb" || N === "luna") && D)
|
|
5021
|
+
Y = document.createElement("iframe"), Y.setAttribute("src", "/files/" + E), Y.style.display = "none", document.body.appendChild(Y), Y.click();
|
|
5022
5022
|
else if (K) {
|
|
5023
|
-
let R = await fetch(q + "/" +
|
|
5023
|
+
let R = await fetch(q + "/" + E).then(
|
|
5024
5024
|
(Q) => Q.text()
|
|
5025
5025
|
);
|
|
5026
|
-
|
|
5026
|
+
Y = document.createElement("a"), Y.setAttribute(
|
|
5027
5027
|
"href",
|
|
5028
5028
|
"data:html/plain;charset=utf-8," + encodeURIComponent(R)
|
|
5029
|
-
),
|
|
5029
|
+
), Y.setAttribute(
|
|
5030
5030
|
"download",
|
|
5031
|
-
|
|
5032
|
-
),
|
|
5031
|
+
E.split("/").reduce((Q, X) => X, "")
|
|
5032
|
+
), Y.style.display = "none", document.body.appendChild(Y), Y.click();
|
|
5033
5033
|
}
|
|
5034
|
-
return
|
|
5034
|
+
return S(!1), $e("Download successfully"), E;
|
|
5035
5035
|
}).catch((G) => {
|
|
5036
5036
|
d(G.response.data.error.msg);
|
|
5037
5037
|
});
|
|
5038
5038
|
}
|
|
5039
5039
|
} catch (j) {
|
|
5040
|
-
|
|
5040
|
+
S(!1), d(j.response.data.error.msg);
|
|
5041
5041
|
}
|
|
5042
5042
|
}, p = async () => {
|
|
5043
5043
|
if (g.iosUrl = h.iosUrl, g.googleUrl = h.googleUrl, await Xn(g, u), c === "Playable") {
|
|
5044
|
-
const
|
|
5044
|
+
const N = await It(
|
|
5045
5045
|
u,
|
|
5046
5046
|
s,
|
|
5047
5047
|
wt(5),
|
|
@@ -5050,7 +5050,7 @@ const es = ({
|
|
|
5050
5050
|
1,
|
|
5051
5051
|
`var type = ${i}`
|
|
5052
5052
|
);
|
|
5053
|
-
return navigator.clipboard.writeText(`${q}/${
|
|
5053
|
+
return navigator.clipboard.writeText(`${q}/${N == null ? void 0 : N.url}`), $e("Link Coppied"), N == null ? void 0 : N.url;
|
|
5054
5054
|
}
|
|
5055
5055
|
const W = await Bt(
|
|
5056
5056
|
{ _id: s, network: i },
|
|
@@ -5197,19 +5197,19 @@ const es = ({
|
|
|
5197
5197
|
Hn,
|
|
5198
5198
|
{
|
|
5199
5199
|
className: "w-2/3",
|
|
5200
|
-
downloading:
|
|
5200
|
+
downloading: J,
|
|
5201
5201
|
onClickDonwload: async () => {
|
|
5202
5202
|
if (i === "instantGame") {
|
|
5203
5203
|
f(!0);
|
|
5204
5204
|
return;
|
|
5205
5205
|
} else {
|
|
5206
5206
|
F("download");
|
|
5207
|
-
const W = h.iosUrl,
|
|
5208
|
-
w.willSpendCredit ? (C(!0), Z("download"), ue(!0)) : !W || !
|
|
5207
|
+
const W = h.iosUrl, N = h.googleUrl;
|
|
5208
|
+
w.willSpendCredit ? (C(!0), Z("download"), ue(!0)) : !W || !N ? (C(!0), P(!0)) : (P(!1), ue(!1), await k(s, i, void 0, !0, null, !0));
|
|
5209
5209
|
}
|
|
5210
5210
|
},
|
|
5211
5211
|
children: [
|
|
5212
|
-
!
|
|
5212
|
+
!J && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5213
5213
|
/* @__PURE__ */ m.jsx(
|
|
5214
5214
|
_a,
|
|
5215
5215
|
{
|
|
@@ -5227,7 +5227,7 @@ const es = ({
|
|
|
5227
5227
|
),
|
|
5228
5228
|
"Download"
|
|
5229
5229
|
] }),
|
|
5230
|
-
|
|
5230
|
+
J && /* @__PURE__ */ m.jsx(Qi, {})
|
|
5231
5231
|
]
|
|
5232
5232
|
}
|
|
5233
5233
|
),
|
|
@@ -5237,8 +5237,8 @@ const es = ({
|
|
|
5237
5237
|
className: "w-1/3",
|
|
5238
5238
|
onClickDonwload: async () => {
|
|
5239
5239
|
F("copyLink");
|
|
5240
|
-
const W = h.iosUrl,
|
|
5241
|
-
w.willSpendCredit ? (Z("copy"), C(!0), ue(!0)) : !W || !
|
|
5240
|
+
const W = h.iosUrl, N = h.googleUrl;
|
|
5241
|
+
w.willSpendCredit ? (Z("copy"), C(!0), ue(!0)) : !W || !N ? (C(!0), P(!0)) : (ue(!1), P(!1), await p());
|
|
5242
5242
|
},
|
|
5243
5243
|
children: /* @__PURE__ */ m.jsx(di, { className: "h-6 w-6 stroke-dark-full" })
|
|
5244
5244
|
}
|
|
@@ -5260,7 +5260,7 @@ const es = ({
|
|
|
5260
5260
|
P(!1), C(!1), await k(s, i, void 0, !0, null, !0);
|
|
5261
5261
|
},
|
|
5262
5262
|
onClose: () => ue(!1),
|
|
5263
|
-
flexDownloadCount:
|
|
5263
|
+
flexDownloadCount: z
|
|
5264
5264
|
}
|
|
5265
5265
|
),
|
|
5266
5266
|
ce && /* @__PURE__ */ m.jsx(
|
|
@@ -5595,7 +5595,7 @@ const as = ({
|
|
|
5595
5595
|
instantGames: t,
|
|
5596
5596
|
onSuccess: r
|
|
5597
5597
|
}) => {
|
|
5598
|
-
const [n, i] =
|
|
5598
|
+
const [n, i] = V(""), [o, A] = V(""), [a, c] = V(""), [s, u] = V(null), d = async (q) => {
|
|
5599
5599
|
let f, h = await fetch(s == null ? void 0 : s.url).then((g) => g.text());
|
|
5600
5600
|
f = document.createElement("a"), f.setAttribute(
|
|
5601
5601
|
"href",
|
|
@@ -5931,14 +5931,14 @@ const as = ({
|
|
|
5931
5931
|
game: d,
|
|
5932
5932
|
flexDownloadCount: q
|
|
5933
5933
|
}) => {
|
|
5934
|
-
const [f, h] =
|
|
5935
|
-
|
|
5934
|
+
const [f, h] = V([]), [g, C] = V([]), [w, z] = V(!1), [J, S] = V(""), [b, ie] = V(!1), [ae, F] = V(!1), [oe, ue] = V(!1), ce = async (Z) => {
|
|
5935
|
+
z(!0);
|
|
5936
5936
|
const x = await os(
|
|
5937
5937
|
n,
|
|
5938
5938
|
Z,
|
|
5939
5939
|
o
|
|
5940
5940
|
);
|
|
5941
|
-
C(x.details),
|
|
5941
|
+
C(x.details), S(x.size), z(!1);
|
|
5942
5942
|
}, P = async (Z) => {
|
|
5943
5943
|
const x = [...f];
|
|
5944
5944
|
if (f.includes(Z)) {
|
|
@@ -5950,7 +5950,7 @@ const as = ({
|
|
|
5950
5950
|
await ce(k);
|
|
5951
5951
|
}, _ = async () => {
|
|
5952
5952
|
try {
|
|
5953
|
-
const Z = xr.filter((
|
|
5953
|
+
const Z = xr.filter((N) => [...f].includes(N.id)).map((N) => N.name);
|
|
5954
5954
|
ie(!0);
|
|
5955
5955
|
const x = await As(n, Z, o), { url: k } = x;
|
|
5956
5956
|
let p;
|
|
@@ -6043,7 +6043,7 @@ const as = ({
|
|
|
6043
6043
|
is,
|
|
6044
6044
|
{
|
|
6045
6045
|
onClickMultiDownload: _,
|
|
6046
|
-
networksVersionTotalSize:
|
|
6046
|
+
networksVersionTotalSize: J,
|
|
6047
6047
|
typeOfProduct: i,
|
|
6048
6048
|
multiDownloading: b
|
|
6049
6049
|
}
|
|
@@ -6111,9 +6111,9 @@ const ps = [
|
|
|
6111
6111
|
handleDownloadError: c,
|
|
6112
6112
|
fetchFileUrl: s
|
|
6113
6113
|
}) => {
|
|
6114
|
-
const [u, d] =
|
|
6115
|
-
|
|
6116
|
-
const [
|
|
6114
|
+
const [u, d] = V(null), [q, f] = V(null), [h, g] = V(null), [C, w] = V(null), [z, J] = V(!1);
|
|
6115
|
+
V({});
|
|
6116
|
+
const [S, b] = V(null), [ie, ae] = V(null), [F, oe] = V(null), [ue, ce] = V(!0), [P, _] = V(window.innerWidth);
|
|
6117
6117
|
ve(() => {
|
|
6118
6118
|
const O = () => {
|
|
6119
6119
|
_(window.innerWidth);
|
|
@@ -6123,19 +6123,19 @@ const ps = [
|
|
|
6123
6123
|
};
|
|
6124
6124
|
}, []);
|
|
6125
6125
|
const Z = async () => {
|
|
6126
|
-
|
|
6126
|
+
J(!0);
|
|
6127
6127
|
const O = await ls(e, o);
|
|
6128
|
-
O != null && O.networks || (O.networks = ps), d(O),
|
|
6128
|
+
O != null && O.networks || (O.networks = ps), d(O), J(!1);
|
|
6129
6129
|
}, x = (O) => {
|
|
6130
6130
|
ae(O);
|
|
6131
6131
|
}, k = (O) => {
|
|
6132
6132
|
oe(O);
|
|
6133
6133
|
}, p = async (O) => {
|
|
6134
|
-
var
|
|
6134
|
+
var D, j, G, E;
|
|
6135
6135
|
try {
|
|
6136
|
-
let
|
|
6136
|
+
let Y;
|
|
6137
6137
|
if (n === "Playable") {
|
|
6138
|
-
|
|
6138
|
+
Y = await It(
|
|
6139
6139
|
o,
|
|
6140
6140
|
t,
|
|
6141
6141
|
wt(5),
|
|
@@ -6144,12 +6144,12 @@ const ps = [
|
|
|
6144
6144
|
0,
|
|
6145
6145
|
{}
|
|
6146
6146
|
);
|
|
6147
|
-
let R = await fetch(s + "/" +
|
|
6147
|
+
let R = await fetch(s + "/" + Y.url).then(
|
|
6148
6148
|
(de) => de.text()
|
|
6149
6149
|
);
|
|
6150
|
-
const Q = ((
|
|
6150
|
+
const Q = ((D = R.match(
|
|
6151
6151
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6152
|
-
)) == null ? void 0 :
|
|
6152
|
+
)) == null ? void 0 : D.at(1)) || "";
|
|
6153
6153
|
ae(Q);
|
|
6154
6154
|
const X = ((j = R.match(
|
|
6155
6155
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
@@ -6159,31 +6159,31 @@ const ps = [
|
|
|
6159
6159
|
if (O)
|
|
6160
6160
|
ae(O.iosUrl), oe(O.googleUrl), ce(!1);
|
|
6161
6161
|
else {
|
|
6162
|
-
|
|
6162
|
+
Y = await Bt(
|
|
6163
6163
|
{
|
|
6164
6164
|
_id: t
|
|
6165
6165
|
},
|
|
6166
6166
|
o
|
|
6167
6167
|
);
|
|
6168
|
-
let R = await fetch(s + "/" +
|
|
6168
|
+
let R = await fetch(s + "/" + Y.url).then(
|
|
6169
6169
|
(de) => de.text()
|
|
6170
6170
|
);
|
|
6171
6171
|
const Q = ((G = R.match(
|
|
6172
6172
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6173
6173
|
)) == null ? void 0 : G.at(1)) || "";
|
|
6174
6174
|
ae(Q);
|
|
6175
|
-
const X = ((
|
|
6175
|
+
const X = ((E = R.match(
|
|
6176
6176
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6177
|
-
)) == null ? void 0 :
|
|
6177
|
+
)) == null ? void 0 : E.at(1)) || "";
|
|
6178
6178
|
oe(X), ce(!1);
|
|
6179
6179
|
}
|
|
6180
6180
|
return;
|
|
6181
6181
|
}
|
|
6182
|
-
} catch (
|
|
6183
|
-
c(
|
|
6182
|
+
} catch (Y) {
|
|
6183
|
+
c(Y.response.data.error.msg);
|
|
6184
6184
|
}
|
|
6185
6185
|
}, W = async () => {
|
|
6186
|
-
|
|
6186
|
+
J(!0);
|
|
6187
6187
|
const O = await us(
|
|
6188
6188
|
{ _id: t },
|
|
6189
6189
|
o
|
|
@@ -6191,8 +6191,8 @@ const ps = [
|
|
|
6191
6191
|
["admin", "pm", "tester"].includes(A.role) ? g({
|
|
6192
6192
|
...O,
|
|
6193
6193
|
networks: fs
|
|
6194
|
-
}) : g(O),
|
|
6195
|
-
},
|
|
6194
|
+
}) : g(O), J(!1);
|
|
6195
|
+
}, N = async () => {
|
|
6196
6196
|
const O = await cs({ _id: t }, o);
|
|
6197
6197
|
w(O.size);
|
|
6198
6198
|
}, v = async () => await ms(r, o), K = async () => {
|
|
@@ -6200,7 +6200,7 @@ const ps = [
|
|
|
6200
6200
|
b(O);
|
|
6201
6201
|
};
|
|
6202
6202
|
return ve(() => {
|
|
6203
|
-
i || (d(null), f(null), g(null), w(null)), i && n === "Playable" ? (Z(), p(null), K()) : i && n === "Flex" && (W(),
|
|
6203
|
+
i || (d(null), f(null), g(null), w(null)), i && n === "Playable" ? (Z(), p(null), K()) : i && n === "Flex" && (W(), N(), v().then((O) => {
|
|
6204
6204
|
i && p(O);
|
|
6205
6205
|
})), i && K();
|
|
6206
6206
|
}, [r, e, t, i]), ve(() => {
|
|
@@ -6235,7 +6235,7 @@ const ps = [
|
|
|
6235
6235
|
downloadFlex: h
|
|
6236
6236
|
}
|
|
6237
6237
|
),
|
|
6238
|
-
|
|
6238
|
+
z && /* @__PURE__ */ m.jsx(
|
|
6239
6239
|
"div",
|
|
6240
6240
|
{
|
|
6241
6241
|
style: {
|
|
@@ -6249,7 +6249,7 @@ const ps = [
|
|
|
6249
6249
|
children: /* @__PURE__ */ m.jsx(Hi, { typeOfProduct: n })
|
|
6250
6250
|
}
|
|
6251
6251
|
),
|
|
6252
|
-
(u || h) && !
|
|
6252
|
+
(u || h) && !z && /* @__PURE__ */ m.jsx(
|
|
6253
6253
|
ss,
|
|
6254
6254
|
{
|
|
6255
6255
|
playable: u,
|
|
@@ -6259,7 +6259,7 @@ const ps = [
|
|
|
6259
6259
|
typeOfProduct: n,
|
|
6260
6260
|
api: o,
|
|
6261
6261
|
user: A,
|
|
6262
|
-
instantGames:
|
|
6262
|
+
instantGames: S,
|
|
6263
6263
|
handleDownloadError: c,
|
|
6264
6264
|
fetchFileUrl: s,
|
|
6265
6265
|
urls: { iosUrl: ie, googleUrl: F },
|
|
@@ -6744,8 +6744,8 @@ rl.default.subscribe(Al);
|
|
|
6744
6744
|
return function(x, k, p) {
|
|
6745
6745
|
return k && Z(x.prototype, k), p && Z(x, p), x;
|
|
6746
6746
|
};
|
|
6747
|
-
}(), o = te, A = er, a = b(A), c = ze, s =
|
|
6748
|
-
function
|
|
6747
|
+
}(), o = te, A = er, a = b(A), c = ze, s = S(c), u = Ws, d = b(u), q = ke, f = S(q), h = dt, g = S(h), C = Ee, w = b(C), z = pt, J = b(z);
|
|
6748
|
+
function S(Z) {
|
|
6749
6749
|
if (Z && Z.__esModule)
|
|
6750
6750
|
return Z;
|
|
6751
6751
|
var x = {};
|
|
@@ -6788,8 +6788,8 @@ rl.default.subscribe(Al);
|
|
|
6788
6788
|
}, p.setContentRef = function(W) {
|
|
6789
6789
|
p.content = W, p.props.contentRef && p.props.contentRef(W);
|
|
6790
6790
|
}, p.afterClose = function() {
|
|
6791
|
-
var W = p.props,
|
|
6792
|
-
O && g.remove(j.body, O), K && g.remove(j.getElementsByTagName("html")[0], K), v && P > 0 && (P -= 1, P === 0 && f.show(
|
|
6791
|
+
var W = p.props, N = W.appElement, v = W.ariaHideApp, K = W.htmlOpenClassName, O = W.bodyOpenClassName, D = W.parentSelector, j = D && D().ownerDocument || document;
|
|
6792
|
+
O && g.remove(j.body, O), K && g.remove(j.getElementsByTagName("html")[0], K), v && P > 0 && (P -= 1, P === 0 && f.show(N)), p.props.shouldFocusAfterRender && (p.props.shouldReturnFocusAfterClose ? (s.returnFocus(p.props.preventScroll), s.teardownScopedFocus()) : s.popWithoutFocus()), p.props.onAfterClose && p.props.onAfterClose(), J.default.deregister(p);
|
|
6793
6793
|
}, p.open = function() {
|
|
6794
6794
|
p.beforeOpen(), p.state.afterOpen && p.state.beforeClose ? (clearTimeout(p.closeTimer), p.setState({ beforeClose: !1 })) : (p.props.shouldFocusAfterRender && (s.setupScopedFocus(p.node), s.markForFocusLater()), p.setState({ isOpen: !0 }, function() {
|
|
6795
6795
|
p.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6835,16 +6835,16 @@ rl.default.subscribe(Al);
|
|
|
6835
6835
|
return !p.state.isOpen && !p.state.beforeClose;
|
|
6836
6836
|
}, p.contentHasFocus = function() {
|
|
6837
6837
|
return document.activeElement === p.content || p.content.contains(document.activeElement);
|
|
6838
|
-
}, p.buildClassName = function(W,
|
|
6839
|
-
var v = (typeof
|
|
6838
|
+
}, p.buildClassName = function(W, N) {
|
|
6839
|
+
var v = (typeof N > "u" ? "undefined" : n(N)) === "object" ? N : {
|
|
6840
6840
|
base: oe[W],
|
|
6841
6841
|
afterOpen: oe[W] + "--after-open",
|
|
6842
6842
|
beforeClose: oe[W] + "--before-close"
|
|
6843
6843
|
}, K = v.base;
|
|
6844
|
-
return p.state.afterOpen && (K = K + " " + v.afterOpen), p.state.beforeClose && (K = K + " " + v.beforeClose), typeof
|
|
6845
|
-
}, p.attributesFromObject = function(W,
|
|
6846
|
-
return Object.keys(
|
|
6847
|
-
return v[W + "-" + K] =
|
|
6844
|
+
return p.state.afterOpen && (K = K + " " + v.afterOpen), p.state.beforeClose && (K = K + " " + v.beforeClose), typeof N == "string" && N ? K + " " + N : K;
|
|
6845
|
+
}, p.attributesFromObject = function(W, N) {
|
|
6846
|
+
return Object.keys(N).reduce(function(v, K) {
|
|
6847
|
+
return v[W + "-" + K] = N[K], v;
|
|
6848
6848
|
}, {});
|
|
6849
6849
|
}, p.state = {
|
|
6850
6850
|
afterOpen: !1,
|
|
@@ -6869,14 +6869,14 @@ rl.default.subscribe(Al);
|
|
|
6869
6869
|
}, {
|
|
6870
6870
|
key: "beforeOpen",
|
|
6871
6871
|
value: function() {
|
|
6872
|
-
var p = this.props, W = p.appElement,
|
|
6873
|
-
K && g.add(
|
|
6872
|
+
var p = this.props, W = p.appElement, N = p.ariaHideApp, v = p.htmlOpenClassName, K = p.bodyOpenClassName, O = p.parentSelector, D = O && O().ownerDocument || document;
|
|
6873
|
+
K && g.add(D.body, K), v && g.add(D.getElementsByTagName("html")[0], v), N && (P += 1, f.hide(W)), J.default.register(this);
|
|
6874
6874
|
}
|
|
6875
6875
|
// Don't steal focus from inner elements
|
|
6876
6876
|
}, {
|
|
6877
6877
|
key: "render",
|
|
6878
6878
|
value: function() {
|
|
6879
|
-
var p = this.props, W = p.id,
|
|
6879
|
+
var p = this.props, W = p.id, N = p.className, v = p.overlayClassName, K = p.defaultStyles, O = p.children, D = N ? {} : K.content, j = v ? {} : K.overlay;
|
|
6880
6880
|
if (this.shouldBeClosed())
|
|
6881
6881
|
return null;
|
|
6882
6882
|
var G = {
|
|
@@ -6885,11 +6885,11 @@ rl.default.subscribe(Al);
|
|
|
6885
6885
|
style: r({}, j, this.props.style.overlay),
|
|
6886
6886
|
onClick: this.handleOverlayOnClick,
|
|
6887
6887
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6888
|
-
},
|
|
6888
|
+
}, E = r({
|
|
6889
6889
|
id: W,
|
|
6890
6890
|
ref: this.setContentRef,
|
|
6891
|
-
style: r({},
|
|
6892
|
-
className: this.buildClassName("content",
|
|
6891
|
+
style: r({}, D, this.props.style.content),
|
|
6892
|
+
className: this.buildClassName("content", N),
|
|
6893
6893
|
tabIndex: "-1",
|
|
6894
6894
|
onKeyDown: this.handleKeyDown,
|
|
6895
6895
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -6899,8 +6899,8 @@ rl.default.subscribe(Al);
|
|
|
6899
6899
|
"aria-label": this.props.contentLabel
|
|
6900
6900
|
}, this.attributesFromObject("aria", r({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
6901
6901
|
"data-testid": this.props.testId
|
|
6902
|
-
}),
|
|
6903
|
-
return this.props.overlayElement(G,
|
|
6902
|
+
}), Y = this.props.contentElement(E, O);
|
|
6903
|
+
return this.props.overlayElement(G, Y);
|
|
6904
6904
|
}
|
|
6905
6905
|
}]), x;
|
|
6906
6906
|
}(o.Component);
|
|
@@ -7267,11 +7267,13 @@ const Il = /* @__PURE__ */ Wo(Zl), Wl = ({
|
|
|
7267
7267
|
handleDownloadError: d,
|
|
7268
7268
|
fetchFileUrl: q
|
|
7269
7269
|
}) => {
|
|
7270
|
-
const [f, h] =
|
|
7270
|
+
const [f, h] = V(window.innerWidth), [g, C] = V(!1), [w, z] = V(u), J = async () => {
|
|
7271
7271
|
A === "Flex" ? await Bt(
|
|
7272
7272
|
{ _id: r, network: "default" },
|
|
7273
7273
|
a
|
|
7274
|
-
).then((
|
|
7274
|
+
).then((S) => {
|
|
7275
|
+
C(!0), z(S.url);
|
|
7276
|
+
}) : await It(
|
|
7275
7277
|
a,
|
|
7276
7278
|
r,
|
|
7277
7279
|
wt(5),
|
|
@@ -7279,16 +7281,18 @@ const Il = /* @__PURE__ */ Wo(Zl), Wl = ({
|
|
|
7279
7281
|
!1,
|
|
7280
7282
|
0,
|
|
7281
7283
|
{}
|
|
7282
|
-
).then((
|
|
7284
|
+
).then((S) => {
|
|
7285
|
+
C(!0), z(S.url);
|
|
7286
|
+
});
|
|
7283
7287
|
};
|
|
7284
7288
|
return ve(() => {
|
|
7285
|
-
e ? g || (
|
|
7289
|
+
e ? g || (J(), C(!0)) : C(!1);
|
|
7286
7290
|
}, [e]), ve(() => {
|
|
7287
|
-
const
|
|
7291
|
+
const S = () => {
|
|
7288
7292
|
h(window.innerWidth);
|
|
7289
7293
|
};
|
|
7290
|
-
return window.addEventListener("resize",
|
|
7291
|
-
window.removeEventListener("resize",
|
|
7294
|
+
return window.addEventListener("resize", S), () => {
|
|
7295
|
+
window.removeEventListener("resize", S);
|
|
7292
7296
|
};
|
|
7293
7297
|
}, []), /* @__PURE__ */ m.jsxs(
|
|
7294
7298
|
Il,
|
|
@@ -7357,7 +7361,7 @@ const Il = /* @__PURE__ */ Wo(Zl), Wl = ({
|
|
|
7357
7361
|
versionName: i,
|
|
7358
7362
|
versionId: r,
|
|
7359
7363
|
typeOfProduct: A,
|
|
7360
|
-
iframeUrl:
|
|
7364
|
+
iframeUrl: w,
|
|
7361
7365
|
api: a,
|
|
7362
7366
|
fetchFileUrl: q
|
|
7363
7367
|
}
|