gearboxdownloadmodal 4.0.37 → 4.0.38
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 +394 -384
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/Modal.d.ts +2 -0
- package/dist/src/components/Preview.d.ts +2 -0
- package/dist/src/components/Qrcode.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import re, { useState as V, useEffect as be, forwardRef as Io, useReducer as wo, useRef as _e, isValidElement as ut, cloneElement as xr, useLayoutEffect as Ko } from "react";
|
|
2
2
|
import Wo from "react-dom";
|
|
3
3
|
function xo(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -39,7 +39,7 @@ function Mo() {
|
|
|
39
39
|
if (qn)
|
|
40
40
|
return qt;
|
|
41
41
|
qn = 1;
|
|
42
|
-
var e =
|
|
42
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
43
43
|
function A(a, c, s) {
|
|
44
44
|
var u, d = {}, h = null, q = null;
|
|
45
45
|
s !== void 0 && (h = "" + s), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (q = c.ref);
|
|
@@ -65,7 +65,7 @@ var gt = {};
|
|
|
65
65
|
var gn;
|
|
66
66
|
function So() {
|
|
67
67
|
return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
68
|
-
var e =
|
|
68
|
+
var e = re, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), A = Symbol.for("react.provider"), a = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), s = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), q = Symbol.for("react.offscreen"), p = Symbol.iterator, y = "@@iterator";
|
|
69
69
|
function C(l) {
|
|
70
70
|
if (l === null || typeof l != "object")
|
|
71
71
|
return null;
|
|
@@ -82,31 +82,31 @@ function So() {
|
|
|
82
82
|
}
|
|
83
83
|
function N(l, Z, S) {
|
|
84
84
|
{
|
|
85
|
-
var H = I.ReactDebugCurrentFrame,
|
|
86
|
-
|
|
87
|
-
var le = S.map(function(
|
|
88
|
-
return String(
|
|
85
|
+
var H = I.ReactDebugCurrentFrame, te = H.getStackAddendum();
|
|
86
|
+
te !== "" && (Z += "%s", S = S.concat([te]));
|
|
87
|
+
var le = S.map(function(F) {
|
|
88
|
+
return String(F);
|
|
89
89
|
});
|
|
90
90
|
le.unshift("Warning: " + Z), Function.prototype.apply.call(console[l], console, le);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
|
|
93
|
+
var E = !1, b = !1, U = !1, se = !1, $ = !1, ne;
|
|
94
|
+
ne = Symbol.for("react.module.reference");
|
|
95
95
|
function ce(l) {
|
|
96
|
-
return !!(typeof l == "string" || typeof l == "function" || l === n || l === o ||
|
|
96
|
+
return !!(typeof l == "string" || typeof l == "function" || l === n || l === o || $ || l === i || l === s || l === u || se || l === q || E || b || U || typeof l == "object" && l !== null && (l.$$typeof === h || 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.
|
|
100
|
-
l.$$typeof ===
|
|
100
|
+
l.$$typeof === ne || l.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
102
|
function ae(l, Z, S) {
|
|
103
103
|
var H = l.displayName;
|
|
104
104
|
if (H)
|
|
105
105
|
return H;
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var te = Z.displayName || Z.name || "";
|
|
107
|
+
return te !== "" ? S + "(" + te + ")" : S;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ee(l) {
|
|
110
110
|
return l.displayName || "Context";
|
|
111
111
|
}
|
|
112
112
|
function P(l) {
|
|
@@ -134,19 +134,19 @@ function So() {
|
|
|
134
134
|
switch (l.$$typeof) {
|
|
135
135
|
case a:
|
|
136
136
|
var Z = l;
|
|
137
|
-
return
|
|
137
|
+
return ee(Z) + ".Consumer";
|
|
138
138
|
case A:
|
|
139
139
|
var S = l;
|
|
140
|
-
return
|
|
140
|
+
return ee(S._context) + ".Provider";
|
|
141
141
|
case c:
|
|
142
142
|
return ae(l, l.render, "ForwardRef");
|
|
143
143
|
case d:
|
|
144
144
|
var H = l.displayName || null;
|
|
145
145
|
return H !== null ? H : P(l.type) || "Memo";
|
|
146
146
|
case h: {
|
|
147
|
-
var
|
|
147
|
+
var te = l, le = te._payload, F = te._init;
|
|
148
148
|
try {
|
|
149
|
-
return P(
|
|
149
|
+
return P(F(le));
|
|
150
150
|
} catch {
|
|
151
151
|
return null;
|
|
152
152
|
}
|
|
@@ -154,18 +154,18 @@ function So() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var x = Object.assign, w = 0,
|
|
158
|
-
function G() {
|
|
159
|
-
}
|
|
160
|
-
G.__reactDisabledLog = !0;
|
|
157
|
+
var x = Object.assign, w = 0, L, f, W, J, g, K, O;
|
|
161
158
|
function D() {
|
|
159
|
+
}
|
|
160
|
+
D.__reactDisabledLog = !0;
|
|
161
|
+
function G() {
|
|
162
162
|
{
|
|
163
163
|
if (w === 0) {
|
|
164
|
-
|
|
164
|
+
L = console.log, f = console.info, W = console.warn, J = console.error, g = 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, {
|
|
@@ -191,7 +191,7 @@ function So() {
|
|
|
191
191
|
};
|
|
192
192
|
Object.defineProperties(console, {
|
|
193
193
|
log: x({}, l, {
|
|
194
|
-
value:
|
|
194
|
+
value: L
|
|
195
195
|
}),
|
|
196
196
|
info: x({}, l, {
|
|
197
197
|
value: f
|
|
@@ -222,8 +222,8 @@ function So() {
|
|
|
222
222
|
if (Y === void 0)
|
|
223
223
|
try {
|
|
224
224
|
throw Error();
|
|
225
|
-
} catch (
|
|
226
|
-
var H =
|
|
225
|
+
} catch (te) {
|
|
226
|
+
var H = te.stack.trim().match(/\n( *(at )?)/);
|
|
227
227
|
Y = H && H[1] || "";
|
|
228
228
|
}
|
|
229
229
|
return `
|
|
@@ -245,33 +245,33 @@ function So() {
|
|
|
245
245
|
}
|
|
246
246
|
var H;
|
|
247
247
|
Q = !0;
|
|
248
|
-
var
|
|
248
|
+
var te = Error.prepareStackTrace;
|
|
249
249
|
Error.prepareStackTrace = void 0;
|
|
250
250
|
var le;
|
|
251
|
-
le = j.current, j.current = null,
|
|
251
|
+
le = j.current, j.current = null, G();
|
|
252
252
|
try {
|
|
253
253
|
if (Z) {
|
|
254
|
-
var
|
|
254
|
+
var F = function() {
|
|
255
255
|
throw Error();
|
|
256
256
|
};
|
|
257
|
-
if (Object.defineProperty(
|
|
257
|
+
if (Object.defineProperty(F.prototype, "props", {
|
|
258
258
|
set: function() {
|
|
259
259
|
throw Error();
|
|
260
260
|
}
|
|
261
261
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
262
262
|
try {
|
|
263
|
-
Reflect.construct(
|
|
263
|
+
Reflect.construct(F, []);
|
|
264
264
|
} catch (De) {
|
|
265
265
|
H = De;
|
|
266
266
|
}
|
|
267
|
-
Reflect.construct(l, [],
|
|
267
|
+
Reflect.construct(l, [], F);
|
|
268
268
|
} else {
|
|
269
269
|
try {
|
|
270
|
-
|
|
270
|
+
F.call();
|
|
271
271
|
} catch (De) {
|
|
272
272
|
H = De;
|
|
273
273
|
}
|
|
274
|
-
l.call(
|
|
274
|
+
l.call(F.prototype);
|
|
275
275
|
}
|
|
276
276
|
} else {
|
|
277
277
|
try {
|
|
@@ -301,7 +301,7 @@ function So() {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
Q = !1, j.current = le, R(), Error.prepareStackTrace =
|
|
304
|
+
Q = !1, j.current = le, R(), Error.prepareStackTrace = te;
|
|
305
305
|
}
|
|
306
306
|
var st = l ? l.displayName || l.name : "", hn = st ? z(st) : "";
|
|
307
307
|
return typeof l == "function" && T.set(l, hn), hn;
|
|
@@ -333,9 +333,9 @@ function So() {
|
|
|
333
333
|
case d:
|
|
334
334
|
return Ve(l.type, Z, S);
|
|
335
335
|
case h: {
|
|
336
|
-
var H = l,
|
|
336
|
+
var H = l, te = H._payload, le = H._init;
|
|
337
337
|
try {
|
|
338
|
-
return Ve(le(
|
|
338
|
+
return Ve(le(te), Z, S);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -350,22 +350,22 @@ function So() {
|
|
|
350
350
|
} else
|
|
351
351
|
on.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
|
-
function no(l, Z, S, H,
|
|
353
|
+
function no(l, Z, S, H, te) {
|
|
354
354
|
{
|
|
355
355
|
var le = Function.call.bind(Lt);
|
|
356
|
-
for (var
|
|
357
|
-
if (le(l,
|
|
356
|
+
for (var F in l)
|
|
357
|
+
if (le(l, F)) {
|
|
358
358
|
var B = void 0;
|
|
359
359
|
try {
|
|
360
|
-
if (typeof l[
|
|
361
|
-
var ye = Error((H || "React class") + ": " + S + " type `" +
|
|
360
|
+
if (typeof l[F] != "function") {
|
|
361
|
+
var ye = Error((H || "React class") + ": " + S + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[F] + "`.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
|
-
B = l[
|
|
364
|
+
B = l[F](Z, F, H, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (de) {
|
|
366
366
|
B = de;
|
|
367
367
|
}
|
|
368
|
-
B && !(B instanceof Error) && (Et(
|
|
368
|
+
B && !(B instanceof Error) && (Et(te), k("%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).", H || "React class", S, F, typeof B), Et(null)), B instanceof Error && !(B.message in nn) && (nn[B.message] = !0, Et(te), k("Failed %s type: %s", S, B.message), Et(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -444,7 +444,7 @@ function So() {
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
var po = function(l, Z, S, H,
|
|
447
|
+
var po = function(l, Z, S, H, te, le, F) {
|
|
448
448
|
var B = {
|
|
449
449
|
// This tag allows us to uniquely identify this as a React Element
|
|
450
450
|
$$typeof: t,
|
|
@@ -452,7 +452,7 @@ function So() {
|
|
|
452
452
|
type: l,
|
|
453
453
|
key: Z,
|
|
454
454
|
ref: S,
|
|
455
|
-
props:
|
|
455
|
+
props: F,
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: le
|
|
458
458
|
};
|
|
@@ -470,25 +470,25 @@ function So() {
|
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
|
-
value:
|
|
473
|
+
value: te
|
|
474
474
|
}), Object.freeze && (Object.freeze(B.props), Object.freeze(B)), B;
|
|
475
475
|
};
|
|
476
|
-
function fo(l, Z, S, H,
|
|
476
|
+
function fo(l, Z, S, H, te) {
|
|
477
477
|
{
|
|
478
|
-
var le,
|
|
479
|
-
S !== void 0 && (an(S), B = "" + S), lo(Z) && (an(Z.key), B = "" + Z.key), so(Z) && (ye = Z.ref, uo(Z,
|
|
478
|
+
var le, F = {}, B = null, ye = null;
|
|
479
|
+
S !== void 0 && (an(S), B = "" + S), lo(Z) && (an(Z.key), B = "" + Z.key), so(Z) && (ye = Z.ref, uo(Z, te));
|
|
480
480
|
for (le in Z)
|
|
481
|
-
Lt.call(Z, le) && !ao.hasOwnProperty(le) && (
|
|
481
|
+
Lt.call(Z, le) && !ao.hasOwnProperty(le) && (F[le] = Z[le]);
|
|
482
482
|
if (l && l.defaultProps) {
|
|
483
483
|
var de = l.defaultProps;
|
|
484
484
|
for (le in de)
|
|
485
|
-
|
|
485
|
+
F[le] === void 0 && (F[le] = de[le]);
|
|
486
486
|
}
|
|
487
487
|
if (B || ye) {
|
|
488
488
|
var pe = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
489
|
-
B && co(
|
|
489
|
+
B && co(F, pe), ye && mo(F, pe);
|
|
490
490
|
}
|
|
491
|
-
return po(l, B, ye,
|
|
491
|
+
return po(l, B, ye, te, H, ht.current, F);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var cr = I.ReactCurrentOwner, un = I.ReactDebugCurrentFrame;
|
|
@@ -565,10 +565,10 @@ Check the top-level render call using <` + S + ">.");
|
|
|
565
565
|
else if (dr(l))
|
|
566
566
|
l._store && (l._store.validated = !0);
|
|
567
567
|
else if (l) {
|
|
568
|
-
var
|
|
569
|
-
if (typeof
|
|
570
|
-
for (var le =
|
|
571
|
-
dr(
|
|
568
|
+
var te = C(l);
|
|
569
|
+
if (typeof te == "function" && te !== l.entries)
|
|
570
|
+
for (var le = te.call(l), F; !(F = le.next()).done; )
|
|
571
|
+
dr(F.value) && dn(F.value, Z);
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
}
|
|
@@ -591,8 +591,8 @@ Check the top-level render call using <` + S + ">.");
|
|
|
591
591
|
no(S, l.props, "prop", H, l);
|
|
592
592
|
} else if (Z.PropTypes !== void 0 && !mr) {
|
|
593
593
|
mr = !0;
|
|
594
|
-
var
|
|
595
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
594
|
+
var te = P(Z);
|
|
595
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
|
|
596
596
|
}
|
|
597
597
|
typeof Z.getDefaultProps == "function" && !Z.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
598
598
|
}
|
|
@@ -609,21 +609,21 @@ Check the top-level render call using <` + S + ">.");
|
|
|
609
609
|
l.ref !== null && (at(l), k("Invalid attribute `ref` supplied to `React.Fragment`."), at(null));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function fn(l, Z, S, H,
|
|
612
|
+
function fn(l, Z, S, H, te, le) {
|
|
613
613
|
{
|
|
614
|
-
var
|
|
615
|
-
if (!
|
|
614
|
+
var F = ce(l);
|
|
615
|
+
if (!F) {
|
|
616
616
|
var B = "";
|
|
617
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
|
-
var ye = ho(
|
|
618
|
+
var ye = ho(te);
|
|
619
619
|
ye ? B += ye : B += cn();
|
|
620
620
|
var de;
|
|
621
621
|
l === null ? de = "null" : lr(l) ? de = "array" : l !== void 0 && l.$$typeof === t ? (de = "<" + (P(l.type) || "Unknown") + " />", B = " Did you accidentally export a JSX literal instead of a component?") : de = typeof l, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", de, B);
|
|
622
622
|
}
|
|
623
|
-
var pe = fo(l, Z, S,
|
|
623
|
+
var pe = fo(l, Z, S, te, le);
|
|
624
624
|
if (pe == null)
|
|
625
625
|
return pe;
|
|
626
|
-
if (
|
|
626
|
+
if (F) {
|
|
627
627
|
var Ke = Z.children;
|
|
628
628
|
if (Ke !== void 0)
|
|
629
629
|
if (H)
|
|
@@ -1375,7 +1375,7 @@ Je.createBytes = function(e, t) {
|
|
|
1375
1375
|
u < A[a].length && (C[I++] = A[a][u]);
|
|
1376
1376
|
return C;
|
|
1377
1377
|
};
|
|
1378
|
-
var Ho = Je, Mr = { exports: {} }, kt = { exports: {} },
|
|
1378
|
+
var Ho = Je, Mr = { exports: {} }, kt = { exports: {} }, ie = {};
|
|
1379
1379
|
/** @license React v16.13.1
|
|
1380
1380
|
* react-is.production.min.js
|
|
1381
1381
|
*
|
|
@@ -1387,13 +1387,13 @@ var Ho = Je, Mr = { exports: {} }, kt = { exports: {} }, ne = {};
|
|
|
1387
1387
|
var vn;
|
|
1388
1388
|
function Xo() {
|
|
1389
1389
|
if (vn)
|
|
1390
|
-
return
|
|
1390
|
+
return ie;
|
|
1391
1391
|
vn = 1;
|
|
1392
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, h = e ? Symbol.for("react.suspense_list") : 60120, q = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
1393
1393
|
function N(b) {
|
|
1394
1394
|
if (typeof b == "object" && b !== null) {
|
|
1395
|
-
var
|
|
1396
|
-
switch (
|
|
1395
|
+
var U = b.$$typeof;
|
|
1396
|
+
switch (U) {
|
|
1397
1397
|
case t:
|
|
1398
1398
|
switch (b = b.type, b) {
|
|
1399
1399
|
case c:
|
|
@@ -1412,46 +1412,46 @@ function Xo() {
|
|
|
1412
1412
|
case A:
|
|
1413
1413
|
return b;
|
|
1414
1414
|
default:
|
|
1415
|
-
return
|
|
1415
|
+
return U;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
case r:
|
|
1419
|
-
return
|
|
1419
|
+
return U;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function E(b) {
|
|
1424
1424
|
return N(b) === s;
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
1427
|
-
return
|
|
1428
|
-
},
|
|
1426
|
+
return ie.AsyncMode = c, ie.ConcurrentMode = s, ie.ContextConsumer = a, ie.ContextProvider = A, ie.Element = t, ie.ForwardRef = u, ie.Fragment = n, ie.Lazy = p, ie.Memo = q, ie.Portal = r, ie.Profiler = o, ie.StrictMode = i, ie.Suspense = d, ie.isAsyncMode = function(b) {
|
|
1427
|
+
return E(b) || N(b) === c;
|
|
1428
|
+
}, ie.isConcurrentMode = E, ie.isContextConsumer = function(b) {
|
|
1429
1429
|
return N(b) === a;
|
|
1430
|
-
},
|
|
1430
|
+
}, ie.isContextProvider = function(b) {
|
|
1431
1431
|
return N(b) === A;
|
|
1432
|
-
},
|
|
1432
|
+
}, ie.isElement = function(b) {
|
|
1433
1433
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
1434
|
-
},
|
|
1434
|
+
}, ie.isForwardRef = function(b) {
|
|
1435
1435
|
return N(b) === u;
|
|
1436
|
-
},
|
|
1436
|
+
}, ie.isFragment = function(b) {
|
|
1437
1437
|
return N(b) === n;
|
|
1438
|
-
},
|
|
1438
|
+
}, ie.isLazy = function(b) {
|
|
1439
1439
|
return N(b) === p;
|
|
1440
|
-
},
|
|
1440
|
+
}, ie.isMemo = function(b) {
|
|
1441
1441
|
return N(b) === q;
|
|
1442
|
-
},
|
|
1442
|
+
}, ie.isPortal = function(b) {
|
|
1443
1443
|
return N(b) === r;
|
|
1444
|
-
},
|
|
1444
|
+
}, ie.isProfiler = function(b) {
|
|
1445
1445
|
return N(b) === o;
|
|
1446
|
-
},
|
|
1446
|
+
}, ie.isStrictMode = function(b) {
|
|
1447
1447
|
return N(b) === i;
|
|
1448
|
-
},
|
|
1448
|
+
}, ie.isSuspense = function(b) {
|
|
1449
1449
|
return N(b) === d;
|
|
1450
|
-
},
|
|
1450
|
+
}, ie.isValidElementType = function(b) {
|
|
1451
1451
|
return typeof b == "string" || typeof b == "function" || b === n || b === s || b === o || b === i || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === q || b.$$typeof === A || b.$$typeof === a || b.$$typeof === u || b.$$typeof === C || b.$$typeof === I || b.$$typeof === k || b.$$typeof === y);
|
|
1452
|
-
},
|
|
1452
|
+
}, ie.typeOf = N, ie;
|
|
1453
1453
|
}
|
|
1454
|
-
var
|
|
1454
|
+
var oe = {};
|
|
1455
1455
|
/** @license React v16.13.1
|
|
1456
1456
|
* react-is.development.js
|
|
1457
1457
|
*
|
|
@@ -1468,7 +1468,7 @@ function Qo() {
|
|
|
1468
1468
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1469
1469
|
M === n || M === s || M === o || M === i || M === d || M === h || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === q || M.$$typeof === A || M.$$typeof === a || M.$$typeof === u || M.$$typeof === C || M.$$typeof === I || M.$$typeof === k || M.$$typeof === y);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function E(M) {
|
|
1472
1472
|
if (typeof M == "object" && M !== null) {
|
|
1473
1473
|
var we = M.$$typeof;
|
|
1474
1474
|
switch (we) {
|
|
@@ -1500,48 +1500,48 @@ function Qo() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var b = c,
|
|
1503
|
+
var b = c, U = s, se = a, $ = A, ne = t, ce = u, ae = n, ee = p, P = q, x = r, w = o, L = i, f = d, W = !1;
|
|
1504
1504
|
function J(M) {
|
|
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.")), g(M) ||
|
|
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.")), g(M) || E(M) === c;
|
|
1506
1506
|
}
|
|
1507
1507
|
function g(M) {
|
|
1508
|
-
return
|
|
1508
|
+
return E(M) === s;
|
|
1509
1509
|
}
|
|
1510
1510
|
function K(M) {
|
|
1511
|
-
return
|
|
1511
|
+
return E(M) === a;
|
|
1512
1512
|
}
|
|
1513
1513
|
function O(M) {
|
|
1514
|
-
return
|
|
1514
|
+
return E(M) === A;
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function D(M) {
|
|
1517
1517
|
return typeof M == "object" && M !== null && M.$$typeof === t;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1520
|
-
return
|
|
1519
|
+
function G(M) {
|
|
1520
|
+
return E(M) === u;
|
|
1521
1521
|
}
|
|
1522
1522
|
function R(M) {
|
|
1523
|
-
return
|
|
1523
|
+
return E(M) === n;
|
|
1524
1524
|
}
|
|
1525
1525
|
function j(M) {
|
|
1526
|
-
return
|
|
1526
|
+
return E(M) === p;
|
|
1527
1527
|
}
|
|
1528
1528
|
function Y(M) {
|
|
1529
|
-
return
|
|
1529
|
+
return E(M) === q;
|
|
1530
1530
|
}
|
|
1531
1531
|
function z(M) {
|
|
1532
|
-
return
|
|
1532
|
+
return E(M) === r;
|
|
1533
1533
|
}
|
|
1534
1534
|
function Q(M) {
|
|
1535
|
-
return
|
|
1535
|
+
return E(M) === o;
|
|
1536
1536
|
}
|
|
1537
1537
|
function T(M) {
|
|
1538
|
-
return
|
|
1538
|
+
return E(M) === i;
|
|
1539
1539
|
}
|
|
1540
1540
|
function me(M) {
|
|
1541
|
-
return
|
|
1541
|
+
return E(M) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
|
|
1544
|
-
}()),
|
|
1543
|
+
oe.AsyncMode = b, oe.ConcurrentMode = U, oe.ContextConsumer = se, oe.ContextProvider = $, oe.Element = ne, oe.ForwardRef = ce, oe.Fragment = ae, oe.Lazy = ee, oe.Memo = P, oe.Portal = x, oe.Profiler = w, oe.StrictMode = L, oe.Suspense = f, oe.isAsyncMode = J, oe.isConcurrentMode = g, oe.isContextConsumer = K, oe.isContextProvider = O, oe.isElement = D, oe.isForwardRef = G, oe.isFragment = R, oe.isLazy = j, oe.isMemo = Y, oe.isPortal = z, oe.isProfiler = Q, oe.isStrictMode = T, oe.isSuspense = me, oe.isValidElementType = N, oe.typeOf = E;
|
|
1544
|
+
}()), oe;
|
|
1545
1545
|
}
|
|
1546
1546
|
var Cn;
|
|
1547
1547
|
function li() {
|
|
@@ -1697,14 +1697,14 @@ function Bo() {
|
|
|
1697
1697
|
symbol: I("symbol"),
|
|
1698
1698
|
any: k(),
|
|
1699
1699
|
arrayOf: N,
|
|
1700
|
-
element:
|
|
1700
|
+
element: E(),
|
|
1701
1701
|
elementType: b(),
|
|
1702
|
-
instanceOf:
|
|
1702
|
+
instanceOf: U,
|
|
1703
1703
|
node: ce(),
|
|
1704
|
-
objectOf:
|
|
1704
|
+
objectOf: $,
|
|
1705
1705
|
oneOf: se,
|
|
1706
|
-
oneOfType:
|
|
1707
|
-
shape:
|
|
1706
|
+
oneOfType: ne,
|
|
1707
|
+
shape: ee,
|
|
1708
1708
|
exact: P
|
|
1709
1709
|
};
|
|
1710
1710
|
function p(g, K) {
|
|
@@ -1717,7 +1717,7 @@ function Bo() {
|
|
|
1717
1717
|
function C(g) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
1719
|
var K = {}, O = 0;
|
|
1720
|
-
function
|
|
1720
|
+
function D(R, j, Y, z, Q, T, me) {
|
|
1721
1721
|
if (z = z || h, T = T || Y, me !== r) {
|
|
1722
1722
|
if (c) {
|
|
1723
1723
|
var M = new Error(
|
|
@@ -1734,16 +1734,16 @@ function Bo() {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
return j[Y] == null ? R ? j[Y] === null ? new y("The " + Q + " `" + T + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new y("The " + Q + " `" + T + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : g(j, Y, z, Q, T);
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
return
|
|
1737
|
+
var G = D.bind(null, !1);
|
|
1738
|
+
return G.isRequired = D.bind(null, !0), G;
|
|
1739
1739
|
}
|
|
1740
1740
|
function I(g) {
|
|
1741
|
-
function K(O,
|
|
1742
|
-
var z = O[
|
|
1741
|
+
function K(O, D, G, R, j, Y) {
|
|
1742
|
+
var z = O[D], Q = L(z);
|
|
1743
1743
|
if (Q !== g) {
|
|
1744
1744
|
var T = f(z);
|
|
1745
1745
|
return new y(
|
|
1746
|
-
"Invalid " + R + " `" + j + "` of type " + ("`" + T + "` supplied to `" +
|
|
1746
|
+
"Invalid " + R + " `" + j + "` of type " + ("`" + T + "` supplied to `" + G + "`, expected ") + ("`" + g + "`."),
|
|
1747
1747
|
{ expectedType: g }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
@@ -1755,16 +1755,16 @@ function Bo() {
|
|
|
1755
1755
|
return C(A);
|
|
1756
1756
|
}
|
|
1757
1757
|
function N(g) {
|
|
1758
|
-
function K(O,
|
|
1758
|
+
function K(O, D, G, R, j) {
|
|
1759
1759
|
if (typeof g != "function")
|
|
1760
|
-
return new y("Property `" + j + "` of component `" +
|
|
1761
|
-
var Y = O[
|
|
1760
|
+
return new y("Property `" + j + "` of component `" + G + "` has invalid PropType notation inside arrayOf.");
|
|
1761
|
+
var Y = O[D];
|
|
1762
1762
|
if (!Array.isArray(Y)) {
|
|
1763
|
-
var z =
|
|
1764
|
-
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" +
|
|
1763
|
+
var z = L(Y);
|
|
1764
|
+
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" + G + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
1766
|
for (var Q = 0; Q < Y.length; Q++) {
|
|
1767
|
-
var T = g(Y, Q,
|
|
1767
|
+
var T = g(Y, Q, G, R, j + "[" + Q + "]", r);
|
|
1768
1768
|
if (T instanceof Error)
|
|
1769
1769
|
return T;
|
|
1770
1770
|
}
|
|
@@ -1772,33 +1772,33 @@ function Bo() {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
return C(K);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1776
|
-
function g(K, O,
|
|
1775
|
+
function E() {
|
|
1776
|
+
function g(K, O, D, G, R) {
|
|
1777
1777
|
var j = K[O];
|
|
1778
1778
|
if (!a(j)) {
|
|
1779
|
-
var Y =
|
|
1780
|
-
return new y("Invalid " +
|
|
1779
|
+
var Y = L(j);
|
|
1780
|
+
return new y("Invalid " + G + " `" + R + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
1784
|
return C(g);
|
|
1785
1785
|
}
|
|
1786
1786
|
function b() {
|
|
1787
|
-
function g(K, O,
|
|
1787
|
+
function g(K, O, D, G, R) {
|
|
1788
1788
|
var j = K[O];
|
|
1789
1789
|
if (!e.isValidElementType(j)) {
|
|
1790
|
-
var Y =
|
|
1791
|
-
return new y("Invalid " +
|
|
1790
|
+
var Y = L(j);
|
|
1791
|
+
return new y("Invalid " + G + " `" + R + "` of type " + ("`" + Y + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
1795
|
return C(g);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1798
|
-
function K(O,
|
|
1799
|
-
if (!(O[
|
|
1800
|
-
var Y = g.name || h, z = J(O[
|
|
1801
|
-
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" +
|
|
1797
|
+
function U(g) {
|
|
1798
|
+
function K(O, D, G, R, j) {
|
|
1799
|
+
if (!(O[D] instanceof g)) {
|
|
1800
|
+
var Y = g.name || h, z = J(O[D]);
|
|
1801
|
+
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" + G + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
@@ -1809,28 +1809,28 @@ function Bo() {
|
|
|
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 Y = O[
|
|
1812
|
+
function K(O, D, G, R, j) {
|
|
1813
|
+
for (var Y = O[D], z = 0; z < g.length; z++)
|
|
1814
1814
|
if (p(Y, g[z]))
|
|
1815
1815
|
return null;
|
|
1816
1816
|
var Q = JSON.stringify(g, function(me, M) {
|
|
1817
1817
|
var we = f(M);
|
|
1818
1818
|
return we === "symbol" ? String(M) : M;
|
|
1819
1819
|
});
|
|
1820
|
-
return new y("Invalid " + R + " `" + j + "` of value `" + String(Y) + "` " + ("supplied to `" +
|
|
1820
|
+
return new y("Invalid " + R + " `" + j + "` of value `" + String(Y) + "` " + ("supplied to `" + G + "`, expected one of " + Q + "."));
|
|
1821
1821
|
}
|
|
1822
1822
|
return C(K);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
function K(O,
|
|
1824
|
+
function $(g) {
|
|
1825
|
+
function K(O, D, G, R, j) {
|
|
1826
1826
|
if (typeof g != "function")
|
|
1827
|
-
return new y("Property `" + j + "` of component `" +
|
|
1828
|
-
var Y = O[
|
|
1827
|
+
return new y("Property `" + j + "` of component `" + G + "` has invalid PropType notation inside objectOf.");
|
|
1828
|
+
var Y = O[D], z = L(Y);
|
|
1829
1829
|
if (z !== "object")
|
|
1830
|
-
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" +
|
|
1830
|
+
return new y("Invalid " + R + " `" + j + "` of type " + ("`" + z + "` supplied to `" + G + "`, expected an object."));
|
|
1831
1831
|
for (var Q in Y)
|
|
1832
1832
|
if (n(Y, Q)) {
|
|
1833
|
-
var T = g(Y, Q,
|
|
1833
|
+
var T = g(Y, Q, G, R, j + "." + Q, r);
|
|
1834
1834
|
if (T instanceof Error)
|
|
1835
1835
|
return T;
|
|
1836
1836
|
}
|
|
@@ -1838,7 +1838,7 @@ function Bo() {
|
|
|
1838
1838
|
}
|
|
1839
1839
|
return C(K);
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function ne(g) {
|
|
1842
1842
|
if (!Array.isArray(g))
|
|
1843
1843
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), A;
|
|
1844
1844
|
for (var K = 0; K < g.length; K++) {
|
|
@@ -1848,9 +1848,9 @@ function Bo() {
|
|
|
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 G
|
|
1851
|
+
function D(G, R, j, Y, z) {
|
|
1852
1852
|
for (var Q = [], T = 0; T < g.length; T++) {
|
|
1853
|
-
var me = g[T], M = me(
|
|
1853
|
+
var me = g[T], M = me(G, R, j, Y, z, r);
|
|
1854
1854
|
if (M == null)
|
|
1855
1855
|
return null;
|
|
1856
1856
|
M.data && n(M.data, "expectedType") && Q.push(M.data.expectedType);
|
|
@@ -1858,29 +1858,29 @@ function Bo() {
|
|
|
1858
1858
|
var we = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
|
|
1859
1859
|
return new y("Invalid " + Y + " `" + z + "` supplied to " + ("`" + j + "`" + we + "."));
|
|
1860
1860
|
}
|
|
1861
|
-
return C(
|
|
1861
|
+
return C(D);
|
|
1862
1862
|
}
|
|
1863
1863
|
function ce() {
|
|
1864
|
-
function g(K, O,
|
|
1865
|
-
return x(K[O]) ? null : new y("Invalid " +
|
|
1864
|
+
function g(K, O, D, G, R) {
|
|
1865
|
+
return x(K[O]) ? null : new y("Invalid " + G + " `" + R + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
1867
|
return C(g);
|
|
1868
1868
|
}
|
|
1869
|
-
function ae(g, K, O,
|
|
1869
|
+
function ae(g, K, O, D, G) {
|
|
1870
1870
|
return new y(
|
|
1871
|
-
(g || "React class") + ": " + K + " type `" + O + "." +
|
|
1871
|
+
(g || "React class") + ": " + K + " type `" + O + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`."
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1875
|
-
function K(O,
|
|
1876
|
-
var Y = O[
|
|
1874
|
+
function ee(g) {
|
|
1875
|
+
function K(O, D, G, R, j) {
|
|
1876
|
+
var Y = O[D], z = L(Y);
|
|
1877
1877
|
if (z !== "object")
|
|
1878
|
-
return new y("Invalid " + R + " `" + j + "` of type `" + z + "` " + ("supplied to `" +
|
|
1878
|
+
return new y("Invalid " + R + " `" + j + "` of type `" + z + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
1879
1879
|
for (var Q in g) {
|
|
1880
1880
|
var T = g[Q];
|
|
1881
1881
|
if (typeof T != "function")
|
|
1882
|
-
return ae(
|
|
1883
|
-
var me = T(Y, Q,
|
|
1882
|
+
return ae(G, R, j, Q, f(T));
|
|
1883
|
+
var me = T(Y, Q, G, R, j + "." + Q, r);
|
|
1884
1884
|
if (me)
|
|
1885
1885
|
return me;
|
|
1886
1886
|
}
|
|
@@ -1889,21 +1889,21 @@ function Bo() {
|
|
|
1889
1889
|
return C(K);
|
|
1890
1890
|
}
|
|
1891
1891
|
function P(g) {
|
|
1892
|
-
function K(O,
|
|
1893
|
-
var Y = O[
|
|
1892
|
+
function K(O, D, G, R, j) {
|
|
1893
|
+
var Y = O[D], z = L(Y);
|
|
1894
1894
|
if (z !== "object")
|
|
1895
|
-
return new y("Invalid " + R + " `" + j + "` of type `" + z + "` " + ("supplied to `" +
|
|
1896
|
-
var Q = t({}, O[
|
|
1895
|
+
return new y("Invalid " + R + " `" + j + "` of type `" + z + "` " + ("supplied to `" + G + "`, expected `object`."));
|
|
1896
|
+
var Q = t({}, O[D], g);
|
|
1897
1897
|
for (var T in Q) {
|
|
1898
1898
|
var me = g[T];
|
|
1899
1899
|
if (n(g, T) && typeof me != "function")
|
|
1900
|
-
return ae(
|
|
1900
|
+
return ae(G, R, j, T, f(me));
|
|
1901
1901
|
if (!me)
|
|
1902
1902
|
return new y(
|
|
1903
|
-
"Invalid " + R + " `" + j + "` key `" + T + "` supplied to `" +
|
|
1903
|
+
"Invalid " + R + " `" + j + "` key `" + T + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(O[D], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var M = me(Y, T,
|
|
1906
|
+
var M = me(Y, T, G, R, j + "." + T, r);
|
|
1907
1907
|
if (M)
|
|
1908
1908
|
return M;
|
|
1909
1909
|
}
|
|
@@ -1926,15 +1926,15 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1926
1926
|
return !0;
|
|
1927
1927
|
var K = d(g);
|
|
1928
1928
|
if (K) {
|
|
1929
|
-
var O = K.call(g),
|
|
1929
|
+
var O = K.call(g), D;
|
|
1930
1930
|
if (K !== g.entries) {
|
|
1931
|
-
for (; !(
|
|
1932
|
-
if (!x(
|
|
1931
|
+
for (; !(D = O.next()).done; )
|
|
1932
|
+
if (!x(D.value))
|
|
1933
1933
|
return !1;
|
|
1934
1934
|
} else
|
|
1935
|
-
for (; !(
|
|
1936
|
-
var
|
|
1937
|
-
if (
|
|
1935
|
+
for (; !(D = O.next()).done; ) {
|
|
1936
|
+
var G = D.value;
|
|
1937
|
+
if (G && !x(G[1]))
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
}
|
|
1940
1940
|
} else
|
|
@@ -1947,14 +1947,14 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1947
1947
|
function w(g, K) {
|
|
1948
1948
|
return g === "symbol" ? !0 : K ? K["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && K instanceof Symbol : !1;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function L(g) {
|
|
1951
1951
|
var K = typeof g;
|
|
1952
1952
|
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : w(K, g) ? "symbol" : K;
|
|
1953
1953
|
}
|
|
1954
1954
|
function f(g) {
|
|
1955
1955
|
if (typeof g > "u" || g === null)
|
|
1956
1956
|
return "" + g;
|
|
1957
|
-
var K =
|
|
1957
|
+
var K = L(g);
|
|
1958
1958
|
if (K === "object") {
|
|
1959
1959
|
if (g instanceof Date)
|
|
1960
1960
|
return "date";
|
|
@@ -2048,7 +2048,7 @@ var $o = Object.assign || function(e) {
|
|
|
2048
2048
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2049
2049
|
}
|
|
2050
2050
|
return e;
|
|
2051
|
-
}, eA = $t, xe = mi(eA), ci =
|
|
2051
|
+
}, eA = $t, xe = mi(eA), ci = re, zt = mi(ci);
|
|
2052
2052
|
function mi(e) {
|
|
2053
2053
|
return e && e.__esModule ? e : { default: e };
|
|
2054
2054
|
}
|
|
@@ -2099,7 +2099,7 @@ var iA = Object.assign || function(e) {
|
|
|
2099
2099
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2100
2100
|
}
|
|
2101
2101
|
return e;
|
|
2102
|
-
}, oA = Ho, AA = Wt(oA), aA = ni, sA = Wt(aA), lA = $t, Ge = Wt(lA), di =
|
|
2102
|
+
}, oA = Ho, AA = Wt(oA), aA = ni, sA = Wt(aA), lA = $t, Ge = Wt(lA), di = re, uA = Wt(di), cA = Hr, mA = Wt(cA);
|
|
2103
2103
|
function Wt(e) {
|
|
2104
2104
|
return e && e.__esModule ? e : { default: e };
|
|
2105
2105
|
}
|
|
@@ -2411,10 +2411,10 @@ const VA = (e) => {
|
|
|
2411
2411
|
isAsyncFn: BA,
|
|
2412
2412
|
isThenable: UA
|
|
2413
2413
|
};
|
|
2414
|
-
function
|
|
2414
|
+
function _(e, t, r, n, i) {
|
|
2415
2415
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), i && (this.response = i);
|
|
2416
2416
|
}
|
|
2417
|
-
v.inherits(
|
|
2417
|
+
v.inherits(_, Error, {
|
|
2418
2418
|
toJSON: function() {
|
|
2419
2419
|
return {
|
|
2420
2420
|
// Standard
|
|
@@ -2435,7 +2435,7 @@ v.inherits(F, Error, {
|
|
|
2435
2435
|
};
|
|
2436
2436
|
}
|
|
2437
2437
|
});
|
|
2438
|
-
const Zi =
|
|
2438
|
+
const Zi = _.prototype, Ii = {};
|
|
2439
2439
|
[
|
|
2440
2440
|
"ERR_BAD_OPTION_VALUE",
|
|
2441
2441
|
"ERR_BAD_OPTION",
|
|
@@ -2453,13 +2453,13 @@ const Zi = F.prototype, Ii = {};
|
|
|
2453
2453
|
].forEach((e) => {
|
|
2454
2454
|
Ii[e] = { value: e };
|
|
2455
2455
|
});
|
|
2456
|
-
Object.defineProperties(
|
|
2456
|
+
Object.defineProperties(_, Ii);
|
|
2457
2457
|
Object.defineProperty(Zi, "isAxiosError", { value: !0 });
|
|
2458
|
-
|
|
2458
|
+
_.from = (e, t, r, n, i, o) => {
|
|
2459
2459
|
const A = Object.create(Zi);
|
|
2460
2460
|
return v.toFlatObject(e, A, function(c) {
|
|
2461
2461
|
return c !== Error.prototype;
|
|
2462
|
-
}, (a) => a !== "isAxiosError"),
|
|
2462
|
+
}, (a) => a !== "isAxiosError"), _.call(A, e.message, t, r, n, i), A.cause = e, A.name = e.name, o && Object.assign(A, o), A;
|
|
2463
2463
|
};
|
|
2464
2464
|
const FA = null;
|
|
2465
2465
|
function Lr(e) {
|
|
@@ -2498,7 +2498,7 @@ function ir(e, t, r) {
|
|
|
2498
2498
|
if (v.isDate(p))
|
|
2499
2499
|
return p.toISOString();
|
|
2500
2500
|
if (!c && v.isBlob(p))
|
|
2501
|
-
throw new
|
|
2501
|
+
throw new _("Blob is not supported. Use a Buffer instead.");
|
|
2502
2502
|
return v.isArrayBuffer(p) || v.isTypedArray(p) ? c && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
2503
2503
|
}
|
|
2504
2504
|
function u(p, y, C) {
|
|
@@ -2507,10 +2507,10 @@ function ir(e, t, r) {
|
|
|
2507
2507
|
if (v.endsWith(y, "{}"))
|
|
2508
2508
|
y = n ? y : y.slice(0, -2), p = JSON.stringify(p);
|
|
2509
2509
|
else if (v.isArray(p) && _A(p) || (v.isFileList(p) || v.endsWith(y, "[]")) && (I = v.toArray(p)))
|
|
2510
|
-
return y = wi(y), I.forEach(function(N,
|
|
2510
|
+
return y = wi(y), I.forEach(function(N, E) {
|
|
2511
2511
|
!(v.isUndefined(N) || N === null) && t.append(
|
|
2512
2512
|
// eslint-disable-next-line no-nested-ternary
|
|
2513
|
-
A === !0 ? Sn([y],
|
|
2513
|
+
A === !0 ? Sn([y], E, o) : A === null ? y : y + "[]",
|
|
2514
2514
|
s(N)
|
|
2515
2515
|
);
|
|
2516
2516
|
}), !1;
|
|
@@ -2736,7 +2736,7 @@ const Pr = {
|
|
|
2736
2736
|
return JSON.parse(t);
|
|
2737
2737
|
} catch (a) {
|
|
2738
2738
|
if (A)
|
|
2739
|
-
throw a.name === "SyntaxError" ?
|
|
2739
|
+
throw a.name === "SyntaxError" ? _.from(a, _.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
return t;
|
|
@@ -2963,16 +2963,16 @@ function Mi(e) {
|
|
|
2963
2963
|
return !!(e && e.__CANCEL__);
|
|
2964
2964
|
}
|
|
2965
2965
|
function Mt(e, t, r) {
|
|
2966
|
-
|
|
2966
|
+
_.call(this, e ?? "canceled", _.ERR_CANCELED, t, r), this.name = "CanceledError";
|
|
2967
2967
|
}
|
|
2968
|
-
v.inherits(Mt,
|
|
2968
|
+
v.inherits(Mt, _, {
|
|
2969
2969
|
__CANCEL__: !0
|
|
2970
2970
|
});
|
|
2971
2971
|
function qa(e, t, r) {
|
|
2972
2972
|
const n = r.config.validateStatus;
|
|
2973
|
-
!r.status || !n || n(r.status) ? e(r) : t(new
|
|
2973
|
+
!r.status || !n || n(r.status) ? e(r) : t(new _(
|
|
2974
2974
|
"Request failed with status code " + r.status,
|
|
2975
|
-
[
|
|
2975
|
+
[_.ERR_BAD_REQUEST, _.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
2976
2976
|
r.config,
|
|
2977
2977
|
r.request,
|
|
2978
2978
|
r
|
|
@@ -3126,15 +3126,15 @@ const Ia = typeof XMLHttpRequest < "u", wa = Ia && function(e) {
|
|
|
3126
3126
|
if ("onloadend" in s ? s.onloadend = d : s.onreadystatechange = function() {
|
|
3127
3127
|
!s || s.readyState !== 4 || s.status === 0 && !(s.responseURL && s.responseURL.indexOf("file:") === 0) || setTimeout(d);
|
|
3128
3128
|
}, s.onabort = function() {
|
|
3129
|
-
s && (n(new
|
|
3129
|
+
s && (n(new _("Request aborted", _.ECONNABORTED, e, s)), s = null);
|
|
3130
3130
|
}, s.onerror = function() {
|
|
3131
|
-
n(new
|
|
3131
|
+
n(new _("Network Error", _.ERR_NETWORK, e, s)), s = null;
|
|
3132
3132
|
}, s.ontimeout = function() {
|
|
3133
3133
|
let p = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3134
3134
|
const y = e.transitional || xi;
|
|
3135
|
-
e.timeoutErrorMessage && (p = e.timeoutErrorMessage), n(new
|
|
3135
|
+
e.timeoutErrorMessage && (p = e.timeoutErrorMessage), n(new _(
|
|
3136
3136
|
p,
|
|
3137
|
-
y.clarifyTimeoutError ?
|
|
3137
|
+
y.clarifyTimeoutError ? _.ETIMEDOUT : _.ECONNABORTED,
|
|
3138
3138
|
e,
|
|
3139
3139
|
s
|
|
3140
3140
|
)), s = null;
|
|
@@ -3149,7 +3149,7 @@ const Ia = typeof XMLHttpRequest < "u", wa = Ia && function(e) {
|
|
|
3149
3149
|
}, e.cancelToken && e.cancelToken.subscribe(a), e.signal && (e.signal.aborted ? a() : e.signal.addEventListener("abort", a)));
|
|
3150
3150
|
const h = Ca(u);
|
|
3151
3151
|
if (h && Ee.protocols.indexOf(h) === -1) {
|
|
3152
|
-
n(new
|
|
3152
|
+
n(new _("Unsupported protocol " + h + ":", _.ERR_BAD_REQUEST, e));
|
|
3153
3153
|
return;
|
|
3154
3154
|
}
|
|
3155
3155
|
s.send(i || null);
|
|
@@ -3175,7 +3175,7 @@ const Li = {
|
|
|
3175
3175
|
for (let i = 0; i < t && (r = e[i], !(n = v.isString(r) ? Tt[r.toLowerCase()] : r)); i++)
|
|
3176
3176
|
;
|
|
3177
3177
|
if (!n)
|
|
3178
|
-
throw n === !1 ? new
|
|
3178
|
+
throw n === !1 ? new _(
|
|
3179
3179
|
`Adapter ${r} is not supported by the environment`,
|
|
3180
3180
|
"ERR_NOT_SUPPORT"
|
|
3181
3181
|
) : new Error(
|
|
@@ -3288,9 +3288,9 @@ Br.transitional = function(t, r, n) {
|
|
|
3288
3288
|
}
|
|
3289
3289
|
return (o, A, a) => {
|
|
3290
3290
|
if (t === !1)
|
|
3291
|
-
throw new
|
|
3291
|
+
throw new _(
|
|
3292
3292
|
i(A, " has been removed" + (r ? " in " + r : "")),
|
|
3293
|
-
|
|
3293
|
+
_.ERR_DEPRECATED
|
|
3294
3294
|
);
|
|
3295
3295
|
return r && !Jn[A] && (Jn[A] = !0, console.warn(
|
|
3296
3296
|
i(
|
|
@@ -3302,7 +3302,7 @@ Br.transitional = function(t, r, n) {
|
|
|
3302
3302
|
};
|
|
3303
3303
|
function Ka(e, t, r) {
|
|
3304
3304
|
if (typeof e != "object")
|
|
3305
|
-
throw new
|
|
3305
|
+
throw new _("options must be an object", _.ERR_BAD_OPTION_VALUE);
|
|
3306
3306
|
const n = Object.keys(e);
|
|
3307
3307
|
let i = n.length;
|
|
3308
3308
|
for (; i-- > 0; ) {
|
|
@@ -3310,11 +3310,11 @@ function Ka(e, t, r) {
|
|
|
3310
3310
|
if (A) {
|
|
3311
3311
|
const a = e[o], c = a === void 0 || A(a, o, e);
|
|
3312
3312
|
if (c !== !0)
|
|
3313
|
-
throw new
|
|
3313
|
+
throw new _("option " + o + " must be " + c, _.ERR_BAD_OPTION_VALUE);
|
|
3314
3314
|
continue;
|
|
3315
3315
|
}
|
|
3316
3316
|
if (r !== !0)
|
|
3317
|
-
throw new
|
|
3317
|
+
throw new _("Unknown option " + o, _.ERR_BAD_OPTION);
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
3320
|
const Er = {
|
|
@@ -3585,7 +3585,7 @@ fe.CancelToken = Wa;
|
|
|
3585
3585
|
fe.isCancel = Mi;
|
|
3586
3586
|
fe.VERSION = Ei;
|
|
3587
3587
|
fe.toFormData = ir;
|
|
3588
|
-
fe.AxiosError =
|
|
3588
|
+
fe.AxiosError = _;
|
|
3589
3589
|
fe.Cancel = fe.CanceledError;
|
|
3590
3590
|
fe.all = function(t) {
|
|
3591
3591
|
return Promise.all(t);
|
|
@@ -3728,7 +3728,7 @@ function Ar(e) {
|
|
|
3728
3728
|
C.removeEventListener("animationend", I), i ? ka(C, u, o) : u();
|
|
3729
3729
|
};
|
|
3730
3730
|
h || (s ? I() : (y.current = 1, C.className += ` ${p}`, C.addEventListener("animationend", I)));
|
|
3731
|
-
}, [h]),
|
|
3731
|
+
}, [h]), re.createElement(re.Fragment, null, a);
|
|
3732
3732
|
};
|
|
3733
3733
|
}
|
|
3734
3734
|
function Dn(e, t) {
|
|
@@ -3754,17 +3754,17 @@ const Oe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3754
3754
|
});
|
|
3755
3755
|
} }, jt = (e) => {
|
|
3756
3756
|
let { theme: t, type: r, ...n } = e;
|
|
3757
|
-
return
|
|
3757
|
+
return re.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${r})`, ...n });
|
|
3758
3758
|
}, wr = { info: function(e) {
|
|
3759
|
-
return
|
|
3759
|
+
return re.createElement(jt, { ...e }, re.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
3760
3760
|
}, warning: function(e) {
|
|
3761
|
-
return
|
|
3761
|
+
return re.createElement(jt, { ...e }, re.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
3762
3762
|
}, success: function(e) {
|
|
3763
|
-
return
|
|
3763
|
+
return re.createElement(jt, { ...e }, re.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
3764
3764
|
}, error: function(e) {
|
|
3765
|
-
return
|
|
3765
|
+
return re.createElement(jt, { ...e }, re.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
3766
3766
|
}, spinner: function() {
|
|
3767
|
-
return
|
|
3767
|
+
return re.createElement("div", { className: "Toastify__spinner" });
|
|
3768
3768
|
} };
|
|
3769
3769
|
function za(e) {
|
|
3770
3770
|
const [, t] = wo((q) => q + 1, 0), [r, n] = V([]), i = _e(null), o = _e(/* @__PURE__ */ new Map()).current, A = (q) => r.indexOf(q) !== -1, a = _e({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: A, getToast: (q) => o.get(q) }).current;
|
|
@@ -3782,18 +3782,18 @@ function za(e) {
|
|
|
3782
3782
|
}
|
|
3783
3783
|
function d(q, p) {
|
|
3784
3784
|
let { delay: y, staleId: C, ...I } = p;
|
|
3785
|
-
if (!Ir(q) || function(
|
|
3786
|
-
return !i.current || a.props.enableMultiContainer &&
|
|
3785
|
+
if (!Ir(q) || function(ee) {
|
|
3786
|
+
return !i.current || a.props.enableMultiContainer && ee.containerId !== a.props.containerId || o.has(ee.toastId) && ee.updateId == null;
|
|
3787
3787
|
}(I))
|
|
3788
3788
|
return;
|
|
3789
|
-
const { toastId: k, updateId: N, data:
|
|
3789
|
+
const { toastId: k, updateId: N, data: E } = I, { props: b } = a, U = () => s(k), se = N == null;
|
|
3790
3790
|
se && a.count++;
|
|
3791
|
-
const
|
|
3792
|
-
let [P, x] =
|
|
3791
|
+
const $ = { ...b, style: b.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(I).filter((ee) => {
|
|
3792
|
+
let [P, x] = ee;
|
|
3793
3793
|
return x != null;
|
|
3794
|
-
})), toastId: k, updateId: N, data:
|
|
3795
|
-
const
|
|
3796
|
-
o.delete(k), Oe.emit(4,
|
|
3794
|
+
})), toastId: k, updateId: N, data: E, closeToast: U, isIn: !1, className: Xt(I.className || b.toastClassName), bodyClassName: Xt(I.bodyClassName || b.bodyClassName), progressClassName: Xt(I.progressClassName || b.progressClassName), autoClose: !I.isLoading && (ne = I.autoClose, ce = b.autoClose, ne === !1 || bt(ne) && ne > 0 ? ne : ce), deleteToast() {
|
|
3795
|
+
const ee = Dn(o.get(k), "removed");
|
|
3796
|
+
o.delete(k), Oe.emit(4, ee);
|
|
3797
3797
|
const P = a.queue.length;
|
|
3798
3798
|
if (a.count = k == null ? a.count - a.displayedToast : a.count - 1, a.count < 0 && (a.count = 0), P > 0) {
|
|
3799
3799
|
const x = k == null ? a.props.limit : 1;
|
|
@@ -3802,22 +3802,22 @@ function za(e) {
|
|
|
3802
3802
|
else {
|
|
3803
3803
|
const w = x > P ? P : x;
|
|
3804
3804
|
a.displayedToast = w;
|
|
3805
|
-
for (let
|
|
3805
|
+
for (let L = 0; L < w; L++)
|
|
3806
3806
|
u();
|
|
3807
3807
|
}
|
|
3808
3808
|
} else
|
|
3809
3809
|
t();
|
|
3810
3810
|
} };
|
|
3811
|
-
var
|
|
3812
|
-
|
|
3813
|
-
let { theme: P, type: x, isLoading: w, icon:
|
|
3811
|
+
var ne, ce;
|
|
3812
|
+
$.iconOut = function(ee) {
|
|
3813
|
+
let { theme: P, type: x, isLoading: w, icon: L } = ee, f = null;
|
|
3814
3814
|
const W = { theme: P, type: x };
|
|
3815
|
-
return
|
|
3816
|
-
}(
|
|
3815
|
+
return L === !1 || (ve(L) ? f = L(W) : ut(L) ? f = xr(L, W) : nt(L) || bt(L) ? f = L : w ? f = wr.spinner() : ((J) => J in wr)(x) && (f = wr[x](W))), f;
|
|
3816
|
+
}($), ve(I.onOpen) && ($.onOpen = I.onOpen), ve(I.onClose) && ($.onClose = I.onClose), $.closeButton = b.closeButton, I.closeButton === !1 || Ir(I.closeButton) ? $.closeButton = I.closeButton : I.closeButton === !0 && ($.closeButton = !Ir(b.closeButton) || b.closeButton);
|
|
3817
3817
|
let ae = q;
|
|
3818
|
-
ut(q) && !nt(q.type) ? ae = xr(q, { closeToast:
|
|
3819
|
-
h(ae,
|
|
3820
|
-
}, y) : h(ae,
|
|
3818
|
+
ut(q) && !nt(q.type) ? ae = xr(q, { closeToast: U, toastProps: $, data: E }) : ve(q) && (ae = q({ closeToast: U, toastProps: $, data: E })), b.limit && b.limit > 0 && a.count > b.limit && se ? a.queue.push({ toastContent: ae, toastProps: $, staleId: C }) : bt(y) ? setTimeout(() => {
|
|
3819
|
+
h(ae, $, C);
|
|
3820
|
+
}, y) : h(ae, $, C);
|
|
3821
3821
|
}
|
|
3822
3822
|
function h(q, p, y) {
|
|
3823
3823
|
const { toastId: C } = p;
|
|
@@ -3845,17 +3845,17 @@ function Rn(e) {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
function ja(e) {
|
|
3847
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: h } = e;
|
|
3848
|
-
function q(
|
|
3848
|
+
function q(E) {
|
|
3849
3849
|
if (e.draggable) {
|
|
3850
|
-
|
|
3850
|
+
E.nativeEvent.type === "touchstart" && E.nativeEvent.preventDefault(), A.didMove = !1, document.addEventListener("mousemove", I), document.addEventListener("mouseup", k), document.addEventListener("touchmove", I), document.addEventListener("touchend", k);
|
|
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(E.nativeEvent), A.y = Rn(E.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 p(
|
|
3855
|
+
function p(E) {
|
|
3856
3856
|
if (A.boundingRect) {
|
|
3857
|
-
const { top: b, bottom:
|
|
3858
|
-
|
|
3857
|
+
const { top: b, bottom: U, left: se, right: $ } = A.boundingRect;
|
|
3858
|
+
E.nativeEvent.type !== "touchend" && e.pauseOnHover && A.x >= se && A.x <= $ && A.y >= b && A.y <= U ? C() : y();
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
3861
|
function y() {
|
|
@@ -3864,51 +3864,51 @@ function ja(e) {
|
|
|
3864
3864
|
function C() {
|
|
3865
3865
|
r(!1);
|
|
3866
3866
|
}
|
|
3867
|
-
function I(
|
|
3867
|
+
function I(E) {
|
|
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(E), A.y = Rn(E), 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
3871
|
function k() {
|
|
3872
3872
|
document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", k), document.removeEventListener("touchmove", I), document.removeEventListener("touchend", k);
|
|
3873
|
-
const
|
|
3874
|
-
if (A.canDrag && A.didMove &&
|
|
3873
|
+
const E = o.current;
|
|
3874
|
+
if (A.canDrag && A.didMove && E) {
|
|
3875
3875
|
if (A.canDrag = !1, Math.abs(A.delta) > A.removalDistance)
|
|
3876
3876
|
return i(!0), void e.closeToast();
|
|
3877
|
-
|
|
3877
|
+
E.style.transition = "transform 0.2s, opacity 0.2s", E.style.transform = `translate${e.draggableDirection}(0)`, E.style.opacity = "1";
|
|
3878
3878
|
}
|
|
3879
3879
|
}
|
|
3880
3880
|
be(() => {
|
|
3881
3881
|
a.current = e;
|
|
3882
3882
|
}), be(() => (o.current && o.current.addEventListener("d", y, { once: !0 }), ve(e.onOpen) && e.onOpen(ut(e.children) && e.children.props), () => {
|
|
3883
|
-
const
|
|
3884
|
-
ve(
|
|
3883
|
+
const E = a.current;
|
|
3884
|
+
ve(E.onClose) && E.onClose(ut(E.children) && E.children.props);
|
|
3885
3885
|
}), []), be(() => (e.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener("focus", y), window.addEventListener("blur", C)), () => {
|
|
3886
3886
|
e.pauseOnFocusLoss && (window.removeEventListener("focus", y), window.removeEventListener("blur", C));
|
|
3887
3887
|
}), [e.pauseOnFocusLoss]);
|
|
3888
3888
|
const N = { onMouseDown: q, onTouchStart: q, onMouseUp: p, onTouchEnd: p };
|
|
3889
|
-
return c && s && (N.onMouseEnter = C, N.onMouseLeave = y), h && (N.onClick = (
|
|
3890
|
-
d && d(
|
|
3889
|
+
return c && s && (N.onMouseEnter = C, N.onMouseLeave = y), h && (N.onClick = (E) => {
|
|
3890
|
+
d && d(E), A.canCloseOnClick && u();
|
|
3891
3891
|
}), { playToast: y, pauseToast: C, isRunning: t, preventExitTransition: n, toastRef: o, eventHandlers: N };
|
|
3892
3892
|
}
|
|
3893
3893
|
function Ri(e) {
|
|
3894
3894
|
let { closeToast: t, theme: r, ariaLabel: n = "close" } = e;
|
|
3895
|
-
return
|
|
3895
|
+
return re.createElement("button", { className: `Toastify__close-button Toastify__close-button--${r}`, type: "button", onClick: (i) => {
|
|
3896
3896
|
i.stopPropagation(), t(i);
|
|
3897
|
-
}, "aria-label": n },
|
|
3897
|
+
}, "aria-label": n }, re.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, re.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
3898
3898
|
}
|
|
3899
3899
|
function Ja(e) {
|
|
3900
3900
|
let { delay: t, isRunning: r, closeToast: n, type: i = "default", hide: o, className: A, style: a, controlledProgress: c, progress: s, rtl: u, isIn: d, theme: h } = e;
|
|
3901
3901
|
const q = o || c && s === 0, p = { ...a, animationDuration: `${t}ms`, animationPlayState: r ? "running" : "paused", opacity: q ? 0 : 1 };
|
|
3902
3902
|
c && (p.transform = `scaleX(${s})`);
|
|
3903
3903
|
const y = Xe("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${h}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": u }), C = ve(A) ? A({ rtl: u, type: i, defaultClassName: y }) : Xe(y, A);
|
|
3904
|
-
return
|
|
3904
|
+
return re.createElement("div", { role: "progressbar", "aria-hidden": q ? "true" : "false", "aria-label": "notification timer", className: C, style: p, [c && s >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && s < 1 ? null : () => {
|
|
3905
3905
|
d && n();
|
|
3906
3906
|
} });
|
|
3907
3907
|
}
|
|
3908
3908
|
const Na = (e) => {
|
|
3909
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = ja(e), { closeButton: o, children: A, autoClose: a, onClick: c, type: s, hideProgressBar: u, closeToast: d, transition: h, position: q, className: p, style: y, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: N, updateId:
|
|
3909
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = ja(e), { closeButton: o, children: A, autoClose: a, onClick: c, type: s, hideProgressBar: u, closeToast: d, transition: h, position: q, className: p, style: y, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: N, updateId: E, role: b, progress: U, rtl: se, toastId: $, deleteToast: ne, isIn: ce, isLoading: ae, iconOut: ee, closeOnClick: P, theme: x } = e, w = Xe("Toastify__toast", `Toastify__toast-theme--${x}`, `Toastify__toast--${s}`, { "Toastify__toast--rtl": se }, { "Toastify__toast--close-on-click": P }), L = ve(p) ? p({ rtl: se, position: q, type: s, defaultClassName: w }) : Xe(w, p), f = !!U || !a, W = { closeToast: d, type: s, theme: x };
|
|
3910
3910
|
let J = null;
|
|
3911
|
-
return o === !1 || (J = ve(o) ? o(W) : ut(o) ? xr(o, W) : Ri(W)),
|
|
3911
|
+
return o === !1 || (J = ve(o) ? o(W) : ut(o) ? xr(o, W) : Ri(W)), re.createElement(h, { isIn: ce, done: ne, position: q, preventExitTransition: r, nodeRef: n }, re.createElement("div", { id: $, onClick: c, className: L, ...i, style: y, ref: n }, re.createElement("div", { ...ce && { role: b }, className: ve(C) ? C({ type: s }) : Xe("Toastify__toast-body", C), style: I }, ee != null && re.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, ee), re.createElement("div", null, A)), J, re.createElement(Ja, { ...E && !f ? { key: `pb-${E}` } : {}, rtl: se, theme: x, delay: a, isRunning: t, isIn: ce, closeToast: d, hide: u, type: s, style: N, className: k, controlledProgress: f, progress: U || 0 })));
|
|
3912
3912
|
}, ar = 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
|
}, Da = Ar(ar("bounce", !0));
|
|
@@ -3923,11 +3923,11 @@ const zr = Io((e, t) => {
|
|
|
3923
3923
|
}
|
|
3924
3924
|
return be(() => {
|
|
3925
3925
|
t && (t.current = n.current);
|
|
3926
|
-
}, []),
|
|
3926
|
+
}, []), re.createElement("div", { ref: n, className: "Toastify", id: c }, r((u, d) => {
|
|
3927
3927
|
const h = d.length ? { ...A } : { ...A, pointerEvents: "none" };
|
|
3928
|
-
return
|
|
3928
|
+
return re.createElement("div", { className: s(u), style: h, key: `container-${u}` }, d.map((q, p) => {
|
|
3929
3929
|
let { content: y, props: C } = q;
|
|
3930
|
-
return
|
|
3930
|
+
return re.createElement(Na, { ...C, isIn: i(C.toastId), style: { ...C.style, "--nth": p + 1, "--len": d.length }, key: `toast-${C.key}` }, y);
|
|
3931
3931
|
}));
|
|
3932
3932
|
}));
|
|
3933
3933
|
});
|
|
@@ -4023,15 +4023,17 @@ const Ta = ({
|
|
|
4023
4023
|
versionId: e,
|
|
4024
4024
|
typeOfProduct: t,
|
|
4025
4025
|
api: r,
|
|
4026
|
-
fetchFileUrl: n
|
|
4026
|
+
fetchFileUrl: n,
|
|
4027
|
+
copyLinkFlexUrl: i,
|
|
4028
|
+
copyLinkPlayableUrl: o
|
|
4027
4029
|
}) => {
|
|
4028
|
-
const
|
|
4030
|
+
const A = async () => {
|
|
4029
4031
|
if (t === "Flex")
|
|
4030
4032
|
navigator.clipboard.writeText(
|
|
4031
|
-
|
|
4033
|
+
`${i}/preview?versionId=${e}`
|
|
4032
4034
|
), $e("Link copied");
|
|
4033
4035
|
else {
|
|
4034
|
-
const
|
|
4036
|
+
const a = await It(
|
|
4035
4037
|
r,
|
|
4036
4038
|
e,
|
|
4037
4039
|
"test",
|
|
@@ -4041,8 +4043,8 @@ const Ta = ({
|
|
|
4041
4043
|
"var type = e"
|
|
4042
4044
|
);
|
|
4043
4045
|
return navigator.clipboard.writeText(
|
|
4044
|
-
|
|
4045
|
-
), $e("Link coppied"),
|
|
4046
|
+
`${o}/test?version=${e}`
|
|
4047
|
+
), $e("Link coppied"), a == null ? void 0 : a.url;
|
|
4046
4048
|
}
|
|
4047
4049
|
};
|
|
4048
4050
|
return /* @__PURE__ */ m.jsxs(
|
|
@@ -4133,7 +4135,7 @@ const Ta = ({
|
|
|
4133
4135
|
color: "white",
|
|
4134
4136
|
background: "rgba(0, 163, 255, 0)"
|
|
4135
4137
|
},
|
|
4136
|
-
onClick:
|
|
4138
|
+
onClick: A,
|
|
4137
4139
|
children: "Copy Link"
|
|
4138
4140
|
}
|
|
4139
4141
|
)
|
|
@@ -4150,18 +4152,20 @@ const Ta = ({
|
|
|
4150
4152
|
typeOfProduct: r,
|
|
4151
4153
|
api: n,
|
|
4152
4154
|
iframeUrl: i,
|
|
4153
|
-
fetchFileUrl: o
|
|
4155
|
+
fetchFileUrl: o,
|
|
4156
|
+
copyLinkFlexUrl: A,
|
|
4157
|
+
copyLinkPlayableUrl: a
|
|
4154
4158
|
}) => {
|
|
4155
|
-
const [
|
|
4159
|
+
const [c, s] = V(window.innerWidth);
|
|
4156
4160
|
be(() => {
|
|
4157
|
-
const
|
|
4158
|
-
|
|
4161
|
+
const d = () => {
|
|
4162
|
+
s(window.innerWidth);
|
|
4159
4163
|
};
|
|
4160
|
-
return window.addEventListener("resize",
|
|
4161
|
-
window.removeEventListener("resize",
|
|
4164
|
+
return window.addEventListener("resize", d), () => {
|
|
4165
|
+
window.removeEventListener("resize", d);
|
|
4162
4166
|
};
|
|
4163
4167
|
}, []);
|
|
4164
|
-
const
|
|
4168
|
+
const u = (e == null ? void 0 : e.length) > 25 ? e.slice(0, 25) + "..." : e;
|
|
4165
4169
|
return /* @__PURE__ */ m.jsxs(
|
|
4166
4170
|
"div",
|
|
4167
4171
|
{
|
|
@@ -4171,27 +4175,29 @@ const Ta = ({
|
|
|
4171
4175
|
flexDirection: "column",
|
|
4172
4176
|
justifyContent: "space-between",
|
|
4173
4177
|
padding: "5px",
|
|
4174
|
-
height:
|
|
4178
|
+
height: c > 1440 ? "680px" : "620px",
|
|
4175
4179
|
borderRadius: "0px 0px 0px 16px",
|
|
4176
4180
|
marginTop: "20px"
|
|
4177
4181
|
},
|
|
4178
4182
|
children: [
|
|
4179
4183
|
/* @__PURE__ */ m.jsx(Yo, { iframeUrl: i }),
|
|
4180
|
-
/* @__PURE__ */ m.jsx(ko, { name:
|
|
4184
|
+
/* @__PURE__ */ m.jsx(ko, { name: u }),
|
|
4181
4185
|
/* @__PURE__ */ m.jsx(
|
|
4182
4186
|
Ta,
|
|
4183
4187
|
{
|
|
4184
4188
|
versionId: t,
|
|
4185
4189
|
typeOfProduct: r,
|
|
4186
4190
|
api: n,
|
|
4187
|
-
fetchFileUrl: o
|
|
4191
|
+
fetchFileUrl: o,
|
|
4192
|
+
copyLinkFlexUrl: A,
|
|
4193
|
+
copyLinkPlayableUrl: a
|
|
4188
4194
|
}
|
|
4189
4195
|
)
|
|
4190
4196
|
]
|
|
4191
4197
|
}
|
|
4192
4198
|
);
|
|
4193
4199
|
};
|
|
4194
|
-
var
|
|
4200
|
+
var Ae = /* @__PURE__ */ ((e) => (e.Flex = "#7101FF", e.Playable = "#F9830B", e))(Ae || {});
|
|
4195
4201
|
const Xa = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsxs(
|
|
4196
4202
|
"div",
|
|
4197
4203
|
{
|
|
@@ -4204,7 +4210,7 @@ const Xa = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsxs(
|
|
|
4204
4210
|
"span",
|
|
4205
4211
|
{
|
|
4206
4212
|
style: {
|
|
4207
|
-
color: e === "Flex" ?
|
|
4213
|
+
color: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4208
4214
|
},
|
|
4209
4215
|
children: "Select a Network"
|
|
4210
4216
|
}
|
|
@@ -4338,7 +4344,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4338
4344
|
// pl-2
|
|
4339
4345
|
color: "#000000",
|
|
4340
4346
|
// placeholder:text-black
|
|
4341
|
-
borderColor: e === "Flex" ?
|
|
4347
|
+
borderColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4342
4348
|
},
|
|
4343
4349
|
type: "text",
|
|
4344
4350
|
value: r.iosUrl,
|
|
@@ -4407,7 +4413,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4407
4413
|
// pl-2
|
|
4408
4414
|
color: "#000000",
|
|
4409
4415
|
// placeholder:text-black
|
|
4410
|
-
borderColor: e === "Flex" ?
|
|
4416
|
+
borderColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4411
4417
|
},
|
|
4412
4418
|
type: "text",
|
|
4413
4419
|
value: r.googleUrl,
|
|
@@ -4428,7 +4434,7 @@ const Pa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4428
4434
|
"span",
|
|
4429
4435
|
{
|
|
4430
4436
|
style: {
|
|
4431
|
-
color: e === "Flex" ?
|
|
4437
|
+
color: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4432
4438
|
},
|
|
4433
4439
|
children: t
|
|
4434
4440
|
}
|
|
@@ -4659,7 +4665,7 @@ const Xi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4659
4665
|
width: "8px",
|
|
4660
4666
|
height: "8px",
|
|
4661
4667
|
borderRadius: "50%",
|
|
4662
|
-
backgroundColor: e === "Flex" ?
|
|
4668
|
+
backgroundColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4663
4669
|
}
|
|
4664
4670
|
}
|
|
4665
4671
|
),
|
|
@@ -4672,7 +4678,7 @@ const Xi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4672
4678
|
width: "8px",
|
|
4673
4679
|
height: "8px",
|
|
4674
4680
|
borderRadius: "50%",
|
|
4675
|
-
backgroundColor: e === "Flex" ?
|
|
4681
|
+
backgroundColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4676
4682
|
}
|
|
4677
4683
|
}
|
|
4678
4684
|
),
|
|
@@ -4685,7 +4691,7 @@ const Xi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4685
4691
|
width: "8px",
|
|
4686
4692
|
height: "8px",
|
|
4687
4693
|
borderRadius: "50%",
|
|
4688
|
-
backgroundColor: e === "Flex" ?
|
|
4694
|
+
backgroundColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4689
4695
|
}
|
|
4690
4696
|
}
|
|
4691
4697
|
),
|
|
@@ -4698,7 +4704,7 @@ const Xi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4698
4704
|
width: "8px",
|
|
4699
4705
|
height: "8px",
|
|
4700
4706
|
borderRadius: "50%",
|
|
4701
|
-
backgroundColor: e === "Flex" ?
|
|
4707
|
+
backgroundColor: e === "Flex" ? Ae.Flex : Ae.Playable
|
|
4702
4708
|
}
|
|
4703
4709
|
}
|
|
4704
4710
|
)
|
|
@@ -5021,9 +5027,9 @@ const Pn = [
|
|
|
5021
5027
|
flexDownloadCount: k,
|
|
5022
5028
|
disabled: N
|
|
5023
5029
|
}) => {
|
|
5024
|
-
const [
|
|
5030
|
+
const [E, b] = V(!1), [U, se] = V(en(5)), [$, ne] = V(""), [ce, ae] = V(!1), [ee, P] = V(!1), [x, w] = V("download"), L = () => {
|
|
5025
5031
|
r(e);
|
|
5026
|
-
}, f = async (J, g, K, O,
|
|
5032
|
+
}, f = async (J, g, K, O, D, G) => {
|
|
5027
5033
|
try {
|
|
5028
5034
|
if (b(!0), c === "Flex") {
|
|
5029
5035
|
y.iosUrl = p.iosUrl, y.googleUrl = p.googleUrl, await Xn(y, u);
|
|
@@ -5057,7 +5063,7 @@ const Pn = [
|
|
|
5057
5063
|
"voodoo_notion",
|
|
5058
5064
|
"snapchat",
|
|
5059
5065
|
"inmobi"
|
|
5060
|
-
].includes(g) || (g === "fb" || g === "luna") &&
|
|
5066
|
+
].includes(g) || (g === "fb" || g === "luna") && G)
|
|
5061
5067
|
Y = document.createElement("iframe"), Y.setAttribute("src", "/files/" + j), Y.style.display = "none", document.body.appendChild(Y), Y.click();
|
|
5062
5068
|
else if (O) {
|
|
5063
5069
|
let z = await fetch(h + "/" + j).then(
|
|
@@ -5078,9 +5084,9 @@ const Pn = [
|
|
|
5078
5084
|
It(
|
|
5079
5085
|
u,
|
|
5080
5086
|
J,
|
|
5081
|
-
|
|
5087
|
+
U,
|
|
5082
5088
|
g,
|
|
5083
|
-
|
|
5089
|
+
G,
|
|
5084
5090
|
R,
|
|
5085
5091
|
{}
|
|
5086
5092
|
).then(async (j) => {
|
|
@@ -5102,7 +5108,7 @@ const Pn = [
|
|
|
5102
5108
|
"voodoo_notion",
|
|
5103
5109
|
"snapchat",
|
|
5104
5110
|
"inmobi"
|
|
5105
|
-
].includes(g) || (g === "fb" || g === "luna") &&
|
|
5111
|
+
].includes(g) || (g === "fb" || g === "luna") && G)
|
|
5106
5112
|
z = document.createElement("iframe"), z.setAttribute("src", "/files/" + Y), z.style.display = "none", document.body.appendChild(z), z.click();
|
|
5107
5113
|
else if (O) {
|
|
5108
5114
|
let Q = await fetch(h + "/" + Y).then(
|
|
@@ -5155,7 +5161,7 @@ const Pn = [
|
|
|
5155
5161
|
flexDirection: "column",
|
|
5156
5162
|
gap: "20px",
|
|
5157
5163
|
padding: "16px",
|
|
5158
|
-
borderColor: n ? c === "Flex" ?
|
|
5164
|
+
borderColor: n ? c === "Flex" ? Ae.Flex : Ae.Playable : "lightgray",
|
|
5159
5165
|
borderWidth: "1px",
|
|
5160
5166
|
borderStyle: "solid",
|
|
5161
5167
|
backgroundColor: "white",
|
|
@@ -5186,8 +5192,8 @@ const Pn = [
|
|
|
5186
5192
|
Pn.includes(i) && /* @__PURE__ */ m.jsx(
|
|
5187
5193
|
Hi,
|
|
5188
5194
|
{
|
|
5189
|
-
fill: c === "Flex" ?
|
|
5190
|
-
stroke: c === "Flex" ?
|
|
5195
|
+
fill: c === "Flex" ? Ae.Flex : Ae.Playable,
|
|
5196
|
+
stroke: c === "Flex" ? Ae.Flex : Ae.Playable,
|
|
5191
5197
|
className: "mb-1 inline-block w-6",
|
|
5192
5198
|
style: {
|
|
5193
5199
|
marginBottom: "0.25rem",
|
|
@@ -5237,7 +5243,7 @@ const Pn = [
|
|
|
5237
5243
|
/* @__PURE__ */ m.jsx(
|
|
5238
5244
|
"div",
|
|
5239
5245
|
{
|
|
5240
|
-
onClick:
|
|
5246
|
+
onClick: L,
|
|
5241
5247
|
style: {
|
|
5242
5248
|
position: "absolute",
|
|
5243
5249
|
top: "0",
|
|
@@ -5257,7 +5263,7 @@ const Pn = [
|
|
|
5257
5263
|
/* @__PURE__ */ m.jsx(
|
|
5258
5264
|
"img",
|
|
5259
5265
|
{
|
|
5260
|
-
onClick:
|
|
5266
|
+
onClick: L,
|
|
5261
5267
|
style: {
|
|
5262
5268
|
width: "30rem",
|
|
5263
5269
|
// Equivalent to 120/4 = 30rem
|
|
@@ -5284,19 +5290,19 @@ const Pn = [
|
|
|
5284
5290
|
Hn,
|
|
5285
5291
|
{
|
|
5286
5292
|
className: "w-2/3",
|
|
5287
|
-
downloading:
|
|
5293
|
+
downloading: E,
|
|
5288
5294
|
onClickDonwload: async () => {
|
|
5289
5295
|
if (i === "instantGame") {
|
|
5290
5296
|
q(!0);
|
|
5291
5297
|
return;
|
|
5292
5298
|
} else {
|
|
5293
|
-
|
|
5299
|
+
ne("download");
|
|
5294
5300
|
const J = p.iosUrl, g = p.googleUrl;
|
|
5295
5301
|
I && I.willSpendCredit ? (C(!0), w("download"), ae(!0)) : !J || !g ? (C(!0), P(!0)) : (P(!1), ae(!1), await f(s, i, void 0, !0, null, !0));
|
|
5296
5302
|
}
|
|
5297
5303
|
},
|
|
5298
5304
|
children: [
|
|
5299
|
-
!
|
|
5305
|
+
!E && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5300
5306
|
/* @__PURE__ */ m.jsx(
|
|
5301
5307
|
$a,
|
|
5302
5308
|
{
|
|
@@ -5314,7 +5320,7 @@ const Pn = [
|
|
|
5314
5320
|
),
|
|
5315
5321
|
"Download"
|
|
5316
5322
|
] }),
|
|
5317
|
-
|
|
5323
|
+
E && /* @__PURE__ */ m.jsx(Pi, {})
|
|
5318
5324
|
]
|
|
5319
5325
|
}
|
|
5320
5326
|
),
|
|
@@ -5323,9 +5329,9 @@ const Pn = [
|
|
|
5323
5329
|
{
|
|
5324
5330
|
className: "w-1/3",
|
|
5325
5331
|
onClickDonwload: async () => {
|
|
5326
|
-
|
|
5332
|
+
ne("copyLink");
|
|
5327
5333
|
const J = p.iosUrl, g = p.googleUrl;
|
|
5328
|
-
I && (I != null && I.willSpendCredit) ? (w("copy"), C(!0), ae(!0)) : !J || !g ? (C(!0), P(!0)) : (
|
|
5334
|
+
I && (I != null && I.willSpendCredit) ? (w("copy"), C(!0), ae(!0)) : !J || !g ? (C(!0), P(!0)) : (ae(!1), P(!1), await W());
|
|
5329
5335
|
},
|
|
5330
5336
|
disabled: N,
|
|
5331
5337
|
children: /* @__PURE__ */ m.jsx(pi, { className: "h-6 w-6 stroke-dark-full" })
|
|
@@ -5353,7 +5359,7 @@ const Pn = [
|
|
|
5353
5359
|
flexDownloadCount: k
|
|
5354
5360
|
}
|
|
5355
5361
|
),
|
|
5356
|
-
|
|
5362
|
+
ee && /* @__PURE__ */ m.jsx(
|
|
5357
5363
|
es,
|
|
5358
5364
|
{
|
|
5359
5365
|
onClose: () => {
|
|
@@ -5361,7 +5367,7 @@ const Pn = [
|
|
|
5361
5367
|
},
|
|
5362
5368
|
iosLink: p.iosUrl,
|
|
5363
5369
|
googleLink: p.googleUrl,
|
|
5364
|
-
buttonType:
|
|
5370
|
+
buttonType: $,
|
|
5365
5371
|
handleCopyLink: async () => {
|
|
5366
5372
|
P(!1), C(!1), await W();
|
|
5367
5373
|
},
|
|
@@ -5590,8 +5596,8 @@ const Pn = [
|
|
|
5590
5596
|
/* @__PURE__ */ m.jsx(
|
|
5591
5597
|
Hi,
|
|
5592
5598
|
{
|
|
5593
|
-
fill: e === "Flex" ?
|
|
5594
|
-
stroke: e === "Flex" ?
|
|
5599
|
+
fill: e === "Flex" ? Ae.Flex : Ae.Playable,
|
|
5600
|
+
stroke: e === "Flex" ? Ae.Flex : Ae.Playable,
|
|
5595
5601
|
style: { display: "inline-block", width: "1.5rem" },
|
|
5596
5602
|
className: ""
|
|
5597
5603
|
}
|
|
@@ -5624,7 +5630,7 @@ const Pn = [
|
|
|
5624
5630
|
padding: "0.5rem",
|
|
5625
5631
|
width: "12rem",
|
|
5626
5632
|
height: "2.5rem",
|
|
5627
|
-
backgroundColor: t === "Flex" ?
|
|
5633
|
+
backgroundColor: t === "Flex" ? Ae.Flex : Ae.Playable,
|
|
5628
5634
|
color: "white",
|
|
5629
5635
|
fontSize: "0.875rem",
|
|
5630
5636
|
borderRadius: "0.875rem"
|
|
@@ -6022,28 +6028,28 @@ const ss = ({
|
|
|
6022
6028
|
flexDownloadCount: h,
|
|
6023
6029
|
disabled: q
|
|
6024
6030
|
}) => {
|
|
6025
|
-
const [p, y] = V([]), [C, I] = V([]), [k, N] = V(!1), [
|
|
6031
|
+
const [p, y] = V([]), [C, I] = V([]), [k, N] = V(!1), [E, b] = V(""), [U, se] = V(!1), [$, ne] = V(!1), [ce, ae] = V(!1), ee = async (w) => {
|
|
6026
6032
|
N(!0);
|
|
6027
|
-
const
|
|
6033
|
+
const L = await As(
|
|
6028
6034
|
n,
|
|
6029
6035
|
w,
|
|
6030
6036
|
o
|
|
6031
6037
|
);
|
|
6032
|
-
I(
|
|
6038
|
+
I(L.details), b(L.size), N(!1);
|
|
6033
6039
|
}, P = async (w) => {
|
|
6034
|
-
const
|
|
6040
|
+
const L = [...p];
|
|
6035
6041
|
if (p.includes(w)) {
|
|
6036
|
-
const W =
|
|
6037
|
-
|
|
6042
|
+
const W = L.findIndex((J) => J === w);
|
|
6043
|
+
L.splice(W, 1), y(L);
|
|
6038
6044
|
} else
|
|
6039
|
-
i === "Playable" ? (
|
|
6040
|
-
let f = Wr.filter((W) => [...
|
|
6041
|
-
await
|
|
6045
|
+
i === "Playable" ? (L.push(w), y([...p, w])) : (L.splice(0), L.push(w), y([w]));
|
|
6046
|
+
let f = Wr.filter((W) => [...L].includes(W.id)).map((W) => W.name);
|
|
6047
|
+
await ee(f);
|
|
6042
6048
|
}, x = async () => {
|
|
6043
6049
|
try {
|
|
6044
6050
|
const w = Wr.filter((g) => [...p].includes(g.id)).map((g) => g.name);
|
|
6045
6051
|
se(!0);
|
|
6046
|
-
const
|
|
6052
|
+
const L = await as(n, w, o), { url: f } = L;
|
|
6047
6053
|
let W;
|
|
6048
6054
|
const J = s + "/" + f;
|
|
6049
6055
|
W = document.createElement("iframe"), W.setAttribute("src", J), W.style.display = "none", document.body.appendChild(W), W.click(), se(!1), $e("Multi downloaded completed successfully");
|
|
@@ -6074,8 +6080,8 @@ const ss = ({
|
|
|
6074
6080
|
padding: "0.75rem"
|
|
6075
6081
|
},
|
|
6076
6082
|
children: r && Wr.filter((w) => {
|
|
6077
|
-
var
|
|
6078
|
-
return t && ((
|
|
6083
|
+
var L;
|
|
6084
|
+
return t && ((L = t == null ? void 0 : t.networks) == null ? void 0 : L.length) > 0 ? t == null ? void 0 : t.networks.includes(w.name) : e == null ? void 0 : e.networks.includes(w.name);
|
|
6079
6085
|
}).filter(
|
|
6080
6086
|
(w) => w.name === "voodoo" ? A.customer === "customer:20" : !0
|
|
6081
6087
|
).map((w) => /* @__PURE__ */ m.jsx(
|
|
@@ -6094,7 +6100,7 @@ const ss = ({
|
|
|
6094
6100
|
api: o,
|
|
6095
6101
|
handleDownloadError: c,
|
|
6096
6102
|
fetchFileUrl: s,
|
|
6097
|
-
setInstantGameModal:
|
|
6103
|
+
setInstantGameModal: ne,
|
|
6098
6104
|
urls: u,
|
|
6099
6105
|
game: d,
|
|
6100
6106
|
downloadFlex: t,
|
|
@@ -6110,10 +6116,10 @@ const ss = ({
|
|
|
6110
6116
|
]
|
|
6111
6117
|
}
|
|
6112
6118
|
),
|
|
6113
|
-
|
|
6119
|
+
$ && /* @__PURE__ */ m.jsx(
|
|
6114
6120
|
ss,
|
|
6115
6121
|
{
|
|
6116
|
-
onClose: () =>
|
|
6122
|
+
onClose: () => ne(!1),
|
|
6117
6123
|
instantGames: a,
|
|
6118
6124
|
onSuccess: () => console.log("success")
|
|
6119
6125
|
}
|
|
@@ -6135,9 +6141,9 @@ const ss = ({
|
|
|
6135
6141
|
os,
|
|
6136
6142
|
{
|
|
6137
6143
|
onClickMultiDownload: x,
|
|
6138
|
-
networksVersionTotalSize:
|
|
6144
|
+
networksVersionTotalSize: E,
|
|
6139
6145
|
typeOfProduct: i,
|
|
6140
|
-
multiDownloading:
|
|
6146
|
+
multiDownloading: U
|
|
6141
6147
|
}
|
|
6142
6148
|
)
|
|
6143
6149
|
}
|
|
@@ -6210,7 +6216,7 @@ const hs = [
|
|
|
6210
6216
|
}) => {
|
|
6211
6217
|
const [u, d] = V(null), [h, q] = V(null), [p, y] = V(null), [C, I] = V(null), [k, N] = V(!1);
|
|
6212
6218
|
V({});
|
|
6213
|
-
const [
|
|
6219
|
+
const [E, b] = V(null), [U, se] = V("Loading..."), [$, ne] = V("Loading..."), [ce, ae] = V(!0), [ee, P] = V(window.innerWidth);
|
|
6214
6220
|
be(() => {
|
|
6215
6221
|
const O = () => {
|
|
6216
6222
|
P(window.innerWidth);
|
|
@@ -6225,16 +6231,16 @@ const hs = [
|
|
|
6225
6231
|
O != null && O.networks || (O.networks = hs), d(O), N(!1);
|
|
6226
6232
|
}, w = (O) => {
|
|
6227
6233
|
se(O);
|
|
6228
|
-
},
|
|
6229
|
-
|
|
6234
|
+
}, L = (O) => {
|
|
6235
|
+
ne(O);
|
|
6230
6236
|
}, f = async (O) => {
|
|
6231
|
-
var
|
|
6237
|
+
var D, G, R, j;
|
|
6232
6238
|
try {
|
|
6233
6239
|
let Y;
|
|
6234
6240
|
if (n === "Playable") {
|
|
6235
6241
|
const z = await fs(t, o);
|
|
6236
6242
|
if (z) {
|
|
6237
|
-
se(z.iosLink),
|
|
6243
|
+
se(z.iosLink), ne(z.androidLink);
|
|
6238
6244
|
return;
|
|
6239
6245
|
}
|
|
6240
6246
|
Y = await It(
|
|
@@ -6249,17 +6255,17 @@ const hs = [
|
|
|
6249
6255
|
let Q = await fetch(s + "/" + Y.url).then(
|
|
6250
6256
|
(M) => M.text()
|
|
6251
6257
|
);
|
|
6252
|
-
const T = ((
|
|
6258
|
+
const T = ((D = Q.match(
|
|
6253
6259
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6254
|
-
)) == null ? void 0 :
|
|
6260
|
+
)) == null ? void 0 : D.at(1)) || "";
|
|
6255
6261
|
se(T);
|
|
6256
|
-
const me = ((
|
|
6262
|
+
const me = ((G = Q.match(
|
|
6257
6263
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6258
|
-
)) == null ? void 0 :
|
|
6259
|
-
|
|
6264
|
+
)) == null ? void 0 : G.at(1)) || "";
|
|
6265
|
+
ne(me);
|
|
6260
6266
|
} else if (n === "Flex")
|
|
6261
6267
|
if (O)
|
|
6262
|
-
se(O.iosUrl),
|
|
6268
|
+
se(O.iosUrl), ne(O.googleUrl);
|
|
6263
6269
|
else {
|
|
6264
6270
|
Y = await Vt(
|
|
6265
6271
|
{
|
|
@@ -6277,7 +6283,7 @@ const hs = [
|
|
|
6277
6283
|
const T = ((j = z.match(
|
|
6278
6284
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6279
6285
|
)) == null ? void 0 : j.at(1)) || "";
|
|
6280
|
-
|
|
6286
|
+
ne(T);
|
|
6281
6287
|
}
|
|
6282
6288
|
} catch (Y) {
|
|
6283
6289
|
c(Y.response.data.error.msg);
|
|
@@ -6303,8 +6309,8 @@ const hs = [
|
|
|
6303
6309
|
};
|
|
6304
6310
|
return be(() => {
|
|
6305
6311
|
i || (d(null), q(null), y(null), I(null)), i && n === "Playable" ? (x(), f(null), ae(!1), K()) : i && n === "Flex" && (W().then((O) => {
|
|
6306
|
-
ae(!1), g().then((
|
|
6307
|
-
i && (f(
|
|
6312
|
+
ae(!1), g().then((D) => {
|
|
6313
|
+
i && (f(D), ae(!1), q(D));
|
|
6308
6314
|
});
|
|
6309
6315
|
}), J()), i && K();
|
|
6310
6316
|
}, [r, e, t, i]), /* @__PURE__ */ m.jsxs(
|
|
@@ -6312,8 +6318,8 @@ const hs = [
|
|
|
6312
6318
|
{
|
|
6313
6319
|
style: {
|
|
6314
6320
|
display: "flex",
|
|
6315
|
-
height:
|
|
6316
|
-
width:
|
|
6321
|
+
height: ee > 1440 ? "700px" : "650px",
|
|
6322
|
+
width: ee > 1440 ? "675px" : "680px",
|
|
6317
6323
|
flexDirection: "column",
|
|
6318
6324
|
borderRadius: "rounded",
|
|
6319
6325
|
backgroundColor: "#F7F7F8",
|
|
@@ -6327,9 +6333,9 @@ const hs = [
|
|
|
6327
6333
|
title: a,
|
|
6328
6334
|
typeOfProduct: n,
|
|
6329
6335
|
fileSize: C,
|
|
6330
|
-
urls: { iosUrl:
|
|
6336
|
+
urls: { iosUrl: U, googleUrl: $ },
|
|
6331
6337
|
handleIosChange: w,
|
|
6332
|
-
handleGoogleChange:
|
|
6338
|
+
handleGoogleChange: L,
|
|
6333
6339
|
disabled: ce,
|
|
6334
6340
|
api: o,
|
|
6335
6341
|
downloadFlex: p
|
|
@@ -6349,7 +6355,7 @@ const hs = [
|
|
|
6349
6355
|
children: /* @__PURE__ */ m.jsx(Xi, { typeOfProduct: n })
|
|
6350
6356
|
}
|
|
6351
6357
|
),
|
|
6352
|
-
(u || p) && !k &&
|
|
6358
|
+
(u || p) && h && !k && U !== "Loading..." && $ !== "Loading..." && /* @__PURE__ */ m.jsx(
|
|
6353
6359
|
ls,
|
|
6354
6360
|
{
|
|
6355
6361
|
playable: u,
|
|
@@ -6359,10 +6365,10 @@ const hs = [
|
|
|
6359
6365
|
typeOfProduct: n,
|
|
6360
6366
|
api: o,
|
|
6361
6367
|
user: A,
|
|
6362
|
-
instantGames:
|
|
6368
|
+
instantGames: E,
|
|
6363
6369
|
handleDownloadError: c,
|
|
6364
6370
|
fetchFileUrl: s,
|
|
6365
|
-
urls: { iosUrl:
|
|
6371
|
+
urls: { iosUrl: U, googleUrl: $ },
|
|
6366
6372
|
game: h,
|
|
6367
6373
|
flexDownloadCount: W,
|
|
6368
6374
|
disabled: ce
|
|
@@ -6826,9 +6832,9 @@ il.default.subscribe(sl);
|
|
|
6826
6832
|
});
|
|
6827
6833
|
var r = Object.assign || function(x) {
|
|
6828
6834
|
for (var w = 1; w < arguments.length; w++) {
|
|
6829
|
-
var
|
|
6830
|
-
for (var f in
|
|
6831
|
-
Object.prototype.hasOwnProperty.call(
|
|
6835
|
+
var L = arguments[w];
|
|
6836
|
+
for (var f in L)
|
|
6837
|
+
Object.prototype.hasOwnProperty.call(L, f) && (x[f] = L[f]);
|
|
6832
6838
|
}
|
|
6833
6839
|
return x;
|
|
6834
6840
|
}, n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(x) {
|
|
@@ -6836,29 +6842,29 @@ il.default.subscribe(sl);
|
|
|
6836
6842
|
} : function(x) {
|
|
6837
6843
|
return x && typeof Symbol == "function" && x.constructor === Symbol && x !== Symbol.prototype ? "symbol" : typeof x;
|
|
6838
6844
|
}, i = function() {
|
|
6839
|
-
function x(w,
|
|
6840
|
-
for (var f = 0; f <
|
|
6841
|
-
var W =
|
|
6845
|
+
function x(w, L) {
|
|
6846
|
+
for (var f = 0; f < L.length; f++) {
|
|
6847
|
+
var W = L[f];
|
|
6842
6848
|
W.enumerable = W.enumerable || !1, W.configurable = !0, "value" in W && (W.writable = !0), Object.defineProperty(w, W.key, W);
|
|
6843
6849
|
}
|
|
6844
6850
|
}
|
|
6845
|
-
return function(w,
|
|
6846
|
-
return
|
|
6851
|
+
return function(w, L, f) {
|
|
6852
|
+
return L && x(w.prototype, L), f && x(w, f), w;
|
|
6847
6853
|
};
|
|
6848
|
-
}(), o =
|
|
6849
|
-
function
|
|
6854
|
+
}(), o = re, A = $t, a = b(A), c = ke, s = E(c), u = Os, d = b(u), h = ze, q = E(h), p = dt, y = E(p), C = Ye, I = b(C), k = pt, N = b(k);
|
|
6855
|
+
function E(x) {
|
|
6850
6856
|
if (x && x.__esModule)
|
|
6851
6857
|
return x;
|
|
6852
6858
|
var w = {};
|
|
6853
6859
|
if (x != null)
|
|
6854
|
-
for (var
|
|
6855
|
-
Object.prototype.hasOwnProperty.call(x,
|
|
6860
|
+
for (var L in x)
|
|
6861
|
+
Object.prototype.hasOwnProperty.call(x, L) && (w[L] = x[L]);
|
|
6856
6862
|
return w.default = x, w;
|
|
6857
6863
|
}
|
|
6858
6864
|
function b(x) {
|
|
6859
6865
|
return x && x.__esModule ? x : { default: x };
|
|
6860
6866
|
}
|
|
6861
|
-
function
|
|
6867
|
+
function U(x, w) {
|
|
6862
6868
|
if (!(x instanceof w))
|
|
6863
6869
|
throw new TypeError("Cannot call a class as a function");
|
|
6864
6870
|
}
|
|
@@ -6867,30 +6873,30 @@ il.default.subscribe(sl);
|
|
|
6867
6873
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6868
6874
|
return w && (typeof w == "object" || typeof w == "function") ? w : x;
|
|
6869
6875
|
}
|
|
6870
|
-
function
|
|
6876
|
+
function $(x, w) {
|
|
6871
6877
|
if (typeof w != "function" && w !== null)
|
|
6872
6878
|
throw new TypeError("Super expression must either be null or a function, not " + typeof w);
|
|
6873
6879
|
x.prototype = Object.create(w && w.prototype, { constructor: { value: x, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(x, w) : x.__proto__ = w);
|
|
6874
6880
|
}
|
|
6875
|
-
var
|
|
6881
|
+
var ne = {
|
|
6876
6882
|
overlay: "ReactModal__Overlay",
|
|
6877
6883
|
content: "ReactModal__Content"
|
|
6878
6884
|
}, ce = function(w) {
|
|
6879
6885
|
return w.code === "Tab" || w.keyCode === 9;
|
|
6880
6886
|
}, ae = function(w) {
|
|
6881
6887
|
return w.code === "Escape" || w.keyCode === 27;
|
|
6882
|
-
},
|
|
6883
|
-
|
|
6884
|
-
function w(
|
|
6885
|
-
|
|
6886
|
-
var f = se(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this,
|
|
6888
|
+
}, ee = 0, P = function(x) {
|
|
6889
|
+
$(w, x);
|
|
6890
|
+
function w(L) {
|
|
6891
|
+
U(this, w);
|
|
6892
|
+
var f = se(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, L));
|
|
6887
6893
|
return f.setOverlayRef = function(W) {
|
|
6888
6894
|
f.overlay = W, f.props.overlayRef && f.props.overlayRef(W);
|
|
6889
6895
|
}, f.setContentRef = function(W) {
|
|
6890
6896
|
f.content = W, f.props.contentRef && f.props.contentRef(W);
|
|
6891
6897
|
}, f.afterClose = function() {
|
|
6892
|
-
var W = f.props, J = W.appElement, g = W.ariaHideApp, K = W.htmlOpenClassName, O = W.bodyOpenClassName,
|
|
6893
|
-
O && y.remove(
|
|
6898
|
+
var W = f.props, J = W.appElement, g = W.ariaHideApp, K = W.htmlOpenClassName, O = W.bodyOpenClassName, D = W.parentSelector, G = D && D().ownerDocument || document;
|
|
6899
|
+
O && y.remove(G.body, O), K && y.remove(G.getElementsByTagName("html")[0], K), g && ee > 0 && (ee -= 1, ee === 0 && q.show(J)), f.props.shouldFocusAfterRender && (f.props.shouldReturnFocusAfterClose ? (s.returnFocus(f.props.preventScroll), s.teardownScopedFocus()) : s.popWithoutFocus()), f.props.onAfterClose && f.props.onAfterClose(), N.default.deregister(f);
|
|
6894
6900
|
}, f.open = function() {
|
|
6895
6901
|
f.beforeOpen(), f.state.afterOpen && f.state.beforeClose ? (clearTimeout(f.closeTimer), f.setState({ beforeClose: !1 })) : (f.props.shouldFocusAfterRender && (s.setupScopedFocus(f.node), s.markForFocusLater()), f.setState({ isOpen: !0 }, function() {
|
|
6896
6902
|
f.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6938,9 +6944,9 @@ il.default.subscribe(sl);
|
|
|
6938
6944
|
return document.activeElement === f.content || f.content.contains(document.activeElement);
|
|
6939
6945
|
}, f.buildClassName = function(W, J) {
|
|
6940
6946
|
var g = (typeof J > "u" ? "undefined" : n(J)) === "object" ? J : {
|
|
6941
|
-
base:
|
|
6942
|
-
afterOpen:
|
|
6943
|
-
beforeClose:
|
|
6947
|
+
base: ne[W],
|
|
6948
|
+
afterOpen: ne[W] + "--after-open",
|
|
6949
|
+
beforeClose: ne[W] + "--before-close"
|
|
6944
6950
|
}, K = g.base;
|
|
6945
6951
|
return f.state.afterOpen && (K = K + " " + g.afterOpen), f.state.beforeClose && (K = K + " " + g.beforeClose), typeof J == "string" && J ? K + " " + J : K;
|
|
6946
6952
|
}, f.attributesFromObject = function(W, J) {
|
|
@@ -6970,26 +6976,26 @@ il.default.subscribe(sl);
|
|
|
6970
6976
|
}, {
|
|
6971
6977
|
key: "beforeOpen",
|
|
6972
6978
|
value: function() {
|
|
6973
|
-
var f = this.props, W = f.appElement, J = f.ariaHideApp, g = f.htmlOpenClassName, K = f.bodyOpenClassName, O = f.parentSelector,
|
|
6974
|
-
K && y.add(
|
|
6979
|
+
var f = this.props, W = f.appElement, J = f.ariaHideApp, g = f.htmlOpenClassName, K = f.bodyOpenClassName, O = f.parentSelector, D = O && O().ownerDocument || document;
|
|
6980
|
+
K && y.add(D.body, K), g && y.add(D.getElementsByTagName("html")[0], g), J && (ee += 1, q.hide(W)), N.default.register(this);
|
|
6975
6981
|
}
|
|
6976
6982
|
// Don't steal focus from inner elements
|
|
6977
6983
|
}, {
|
|
6978
6984
|
key: "render",
|
|
6979
6985
|
value: function() {
|
|
6980
|
-
var f = this.props, W = f.id, J = f.className, g = f.overlayClassName, K = f.defaultStyles, O = f.children,
|
|
6986
|
+
var f = this.props, W = f.id, J = f.className, g = f.overlayClassName, K = f.defaultStyles, O = f.children, D = J ? {} : K.content, G = g ? {} : K.overlay;
|
|
6981
6987
|
if (this.shouldBeClosed())
|
|
6982
6988
|
return null;
|
|
6983
6989
|
var R = {
|
|
6984
6990
|
ref: this.setOverlayRef,
|
|
6985
6991
|
className: this.buildClassName("overlay", g),
|
|
6986
|
-
style: r({},
|
|
6992
|
+
style: r({}, G, this.props.style.overlay),
|
|
6987
6993
|
onClick: this.handleOverlayOnClick,
|
|
6988
6994
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6989
6995
|
}, j = r({
|
|
6990
6996
|
id: W,
|
|
6991
6997
|
ref: this.setContentRef,
|
|
6992
|
-
style: r({},
|
|
6998
|
+
style: r({}, D, this.props.style.content),
|
|
6993
6999
|
className: this.buildClassName("content", J),
|
|
6994
7000
|
tabIndex: "-1",
|
|
6995
7001
|
onKeyDown: this.handleKeyDown,
|
|
@@ -7136,7 +7142,7 @@ var Un = Object.assign || function(e) {
|
|
|
7136
7142
|
return function(t, r, n) {
|
|
7137
7143
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
7138
7144
|
};
|
|
7139
|
-
}(), ro =
|
|
7145
|
+
}(), ro = re, Ut = St(ro), pl = Wo, Ft = St(pl), fl = $t, X = St(fl), hl = ll, Fn = St(hl), ql = ze, gl = vl(ql), Qe = Ye, _n = St(Qe), yl = ml;
|
|
7140
7146
|
function vl(e) {
|
|
7141
7147
|
if (e && e.__esModule)
|
|
7142
7148
|
return e;
|
|
@@ -7366,14 +7372,16 @@ const Kl = /* @__PURE__ */ xo(wl), Ol = ({
|
|
|
7366
7372
|
title: s,
|
|
7367
7373
|
iframeUrl: u,
|
|
7368
7374
|
handleDownloadError: d,
|
|
7369
|
-
fetchFileUrl: h
|
|
7375
|
+
fetchFileUrl: h,
|
|
7376
|
+
copyLinkFlexUrl: q,
|
|
7377
|
+
copyLinkPlayableUrl: p
|
|
7370
7378
|
}) => {
|
|
7371
|
-
const [
|
|
7379
|
+
const [y, C] = V(window.innerWidth), [I, k] = V(!1), [N, E] = V(u), b = async () => {
|
|
7372
7380
|
A === "Flex" ? await Vt(
|
|
7373
7381
|
{ _id: r, network: "default" },
|
|
7374
7382
|
a
|
|
7375
|
-
).then((
|
|
7376
|
-
|
|
7383
|
+
).then((U) => {
|
|
7384
|
+
k(!0), E(h + "/" + U.url);
|
|
7377
7385
|
}) : await It(
|
|
7378
7386
|
a,
|
|
7379
7387
|
r,
|
|
@@ -7382,18 +7390,18 @@ const Kl = /* @__PURE__ */ xo(wl), Ol = ({
|
|
|
7382
7390
|
!1,
|
|
7383
7391
|
0,
|
|
7384
7392
|
{}
|
|
7385
|
-
).then((
|
|
7386
|
-
|
|
7393
|
+
).then((U) => {
|
|
7394
|
+
k(!0), E(h + "/" + U.url);
|
|
7387
7395
|
});
|
|
7388
7396
|
};
|
|
7389
7397
|
return be(() => {
|
|
7390
|
-
e ?
|
|
7398
|
+
e ? I || (b(), k(!0)) : k(!1);
|
|
7391
7399
|
}, [e]), be(() => {
|
|
7392
|
-
const
|
|
7393
|
-
|
|
7400
|
+
const U = () => {
|
|
7401
|
+
C(window.innerWidth);
|
|
7394
7402
|
};
|
|
7395
|
-
return window.addEventListener("resize",
|
|
7396
|
-
window.removeEventListener("resize",
|
|
7403
|
+
return window.addEventListener("resize", U), () => {
|
|
7404
|
+
window.removeEventListener("resize", U);
|
|
7397
7405
|
};
|
|
7398
7406
|
}, []), /* @__PURE__ */ m.jsxs(
|
|
7399
7407
|
Kl,
|
|
@@ -7410,8 +7418,8 @@ const Kl = /* @__PURE__ */ xo(wl), Ol = ({
|
|
|
7410
7418
|
borderRadius: "0.75rem",
|
|
7411
7419
|
backgroundColor: "white",
|
|
7412
7420
|
zIndex: 50,
|
|
7413
|
-
height:
|
|
7414
|
-
width:
|
|
7421
|
+
height: y > 1440 ? "700px" : "650px",
|
|
7422
|
+
width: y > 1440 ? "965px" : "975px",
|
|
7415
7423
|
overflow: "hidden",
|
|
7416
7424
|
paddingTop: "0px"
|
|
7417
7425
|
},
|
|
@@ -7456,15 +7464,17 @@ const Kl = /* @__PURE__ */ xo(wl), Ol = ({
|
|
|
7456
7464
|
}
|
|
7457
7465
|
),
|
|
7458
7466
|
/* @__PURE__ */ m.jsxs(Eo, { children: [
|
|
7459
|
-
|
|
7467
|
+
I ? /* @__PURE__ */ m.jsx(
|
|
7460
7468
|
Ha,
|
|
7461
7469
|
{
|
|
7462
7470
|
versionName: i,
|
|
7463
7471
|
versionId: r,
|
|
7464
7472
|
typeOfProduct: A,
|
|
7465
|
-
iframeUrl:
|
|
7473
|
+
iframeUrl: N,
|
|
7466
7474
|
api: a,
|
|
7467
|
-
fetchFileUrl: h
|
|
7475
|
+
fetchFileUrl: h,
|
|
7476
|
+
copyLinkFlexUrl: q,
|
|
7477
|
+
copyLinkPlayableUrl: p
|
|
7468
7478
|
}
|
|
7469
7479
|
) : /* @__PURE__ */ m.jsx(m.Fragment, { children: /* @__PURE__ */ m.jsx(
|
|
7470
7480
|
"div",
|
|
@@ -7476,7 +7486,7 @@ const Kl = /* @__PURE__ */ xo(wl), Ol = ({
|
|
|
7476
7486
|
justifyContent: "center",
|
|
7477
7487
|
alignItems: "center",
|
|
7478
7488
|
padding: "5px",
|
|
7479
|
-
height:
|
|
7489
|
+
height: y > 1440 ? "650px" : "625px",
|
|
7480
7490
|
borderRadius: "0px 0px 0px 16px",
|
|
7481
7491
|
marginTop: "20px"
|
|
7482
7492
|
// 'rounded-l-xl' typically means large rounded corners on the left side
|