gearboxdownloadmodal 4.0.11 → 4.0.14
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 +113 -104
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +17 -17
- 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 B, 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;
|
|
@@ -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 V = De.stack.split(`
|
|
287
287
|
`), ye = T.stack.split(`
|
|
288
|
-
`), me =
|
|
288
|
+
`), me = V.length - 1, pe = ye.length - 1; me >= 1 && pe >= 0 && V[me] !== ye[pe]; )
|
|
289
289
|
pe--;
|
|
290
290
|
for (; me >= 1 && pe >= 0; me--, pe--)
|
|
291
|
-
if (
|
|
291
|
+
if (V[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 || V[me] !== ye[pe]) {
|
|
295
295
|
var we = `
|
|
296
|
-
` +
|
|
296
|
+
` + V[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);
|
|
@@ -313,7 +313,7 @@ function Mo() {
|
|
|
313
313
|
var I = l.prototype;
|
|
314
314
|
return !!(I && I.isReactComponent);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Be(l, I, M) {
|
|
317
317
|
if (l == null)
|
|
318
318
|
return "";
|
|
319
319
|
if (typeof l == "function")
|
|
@@ -331,11 +331,11 @@ function Mo() {
|
|
|
331
331
|
case c:
|
|
332
332
|
return Ie(l.render);
|
|
333
333
|
case d:
|
|
334
|
-
return
|
|
334
|
+
return Be(l.type, I, M);
|
|
335
335
|
case q: {
|
|
336
336
|
var T = l, ee = T._payload, Ae = T._init;
|
|
337
337
|
try {
|
|
338
|
-
return
|
|
338
|
+
return Be(Ae(ee), I, M);
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
}
|
|
@@ -345,7 +345,7 @@ function Mo() {
|
|
|
345
345
|
var Et = Object.prototype.hasOwnProperty, nn = {}, on = w.ReactDebugCurrentFrame;
|
|
346
346
|
function Yt(l) {
|
|
347
347
|
if (l) {
|
|
348
|
-
var I = l._owner, M =
|
|
348
|
+
var I = l._owner, M = Be(l.type, l._source, I ? I.type : null);
|
|
349
349
|
on.setExtraStackFrame(M);
|
|
350
350
|
} else
|
|
351
351
|
on.setExtraStackFrame(null);
|
|
@@ -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 V = 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
|
+
V = l[U](I, U, T, M, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (me) {
|
|
366
|
-
|
|
366
|
+
V = me;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
V && !(V instanceof Error) && (Yt(ee), 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).", T || "React class", M, U, typeof V), Yt(null)), V instanceof Error && !(V.message in nn) && (nn[V.message] = !0, Yt(ee), k("Failed %s type: %s", M, V.message), Yt(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -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 V = {
|
|
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 V._store = {}, Object.defineProperty(V._store, "validated", {
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
462
462
|
writable: !0,
|
|
463
463
|
value: !1
|
|
464
|
-
}), Object.defineProperty(
|
|
464
|
+
}), Object.defineProperty(V, "_self", {
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
468
|
value: T
|
|
469
|
-
}), Object.defineProperty(
|
|
469
|
+
}), Object.defineProperty(V, "_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(V.props), Object.freeze(V)), V;
|
|
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 = {}, V = null, ye = null;
|
|
479
|
+
M !== void 0 && (an(M), V = "" + M), so(I) && (an(I.key), V = "" + 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,17 +484,17 @@ function Mo() {
|
|
|
484
484
|
for (Ae in me)
|
|
485
485
|
U[Ae] === void 0 && (U[Ae] = me[Ae]);
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
487
|
+
if (V || ye) {
|
|
488
488
|
var pe = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
489
|
-
|
|
489
|
+
V && uo(U, pe), ye && co(U, pe);
|
|
490
490
|
}
|
|
491
|
-
return mo(l,
|
|
491
|
+
return mo(l, V, ye, ee, T, ht.current, U);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var mr = w.ReactCurrentOwner, un = w.ReactDebugCurrentFrame;
|
|
495
495
|
function at(l) {
|
|
496
496
|
if (l) {
|
|
497
|
-
var I = l._owner, M =
|
|
497
|
+
var I = l._owner, M = Be(l.type, l._source, I ? I.type : null);
|
|
498
498
|
un.setExtraStackFrame(M);
|
|
499
499
|
} else
|
|
500
500
|
un.setExtraStackFrame(null);
|
|
@@ -613,12 +613,12 @@ Check the top-level render call using <` + M + ">.");
|
|
|
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 V = "";
|
|
617
|
+
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (V += " 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 ? V += ye : V += 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") + " />", V = " Did you accidentally export a JSX literal instead of a component?") : me = 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", me, V);
|
|
622
622
|
}
|
|
623
623
|
var pe = po(l, I, M, ee, Ae);
|
|
624
624
|
if (pe == null)
|
|
@@ -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] = B(window.innerWidth);
|
|
656
656
|
return ve(() => {
|
|
657
657
|
const n = () => {
|
|
658
658
|
r(window.innerWidth);
|
|
@@ -1012,7 +1012,7 @@ for (var qe = 8; qe < 256; qe++)
|
|
|
1012
1012
|
Se.EXP_TABLE[qe] = Se.EXP_TABLE[qe - 4] ^ Se.EXP_TABLE[qe - 5] ^ Se.EXP_TABLE[qe - 6] ^ Se.EXP_TABLE[qe - 8];
|
|
1013
1013
|
for (var qe = 0; qe < 255; qe++)
|
|
1014
1014
|
Se.LOG_TABLE[Se.EXP_TABLE[qe]] = qe;
|
|
1015
|
-
var ii = Se,
|
|
1015
|
+
var ii = Se, Ve = ii;
|
|
1016
1016
|
function Gt(e, t) {
|
|
1017
1017
|
if (e.length == null)
|
|
1018
1018
|
throw new Error(e.length + "/" + t);
|
|
@@ -1032,16 +1032,16 @@ Gt.prototype = {
|
|
|
1032
1032
|
multiply: function(e) {
|
|
1033
1033
|
for (var t = new Array(this.getLength() + e.getLength() - 1), r = 0; r < this.getLength(); r++)
|
|
1034
1034
|
for (var n = 0; n < e.getLength(); n++)
|
|
1035
|
-
t[r + n] ^=
|
|
1035
|
+
t[r + n] ^= Ve.gexp(Ve.glog(this.get(r)) + Ve.glog(e.get(n)));
|
|
1036
1036
|
return new Gt(t, 0);
|
|
1037
1037
|
},
|
|
1038
1038
|
mod: function(e) {
|
|
1039
1039
|
if (this.getLength() - e.getLength() < 0)
|
|
1040
1040
|
return this;
|
|
1041
|
-
for (var t =
|
|
1041
|
+
for (var t = Ve.glog(this.get(0)) - Ve.glog(e.get(0)), r = new Array(this.getLength()), n = 0; n < this.getLength(); n++)
|
|
1042
1042
|
r[n] = this.get(n);
|
|
1043
1043
|
for (var n = 0; n < e.getLength(); n++)
|
|
1044
|
-
r[n] ^=
|
|
1044
|
+
r[n] ^= Ve.gexp(Ve.glog(e.get(n)) + t);
|
|
1045
1045
|
return new Gt(r, 0).mod(e);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
@@ -1483,14 +1483,14 @@ function Xo() {
|
|
|
1483
1483
|
case d:
|
|
1484
1484
|
return At;
|
|
1485
1485
|
default:
|
|
1486
|
-
var
|
|
1487
|
-
switch (
|
|
1486
|
+
var Be = At && At.$$typeof;
|
|
1487
|
+
switch (Be) {
|
|
1488
1488
|
case a:
|
|
1489
1489
|
case u:
|
|
1490
1490
|
case h:
|
|
1491
1491
|
case f:
|
|
1492
1492
|
case A:
|
|
1493
|
-
return
|
|
1493
|
+
return Be;
|
|
1494
1494
|
default:
|
|
1495
1495
|
return Ie;
|
|
1496
1496
|
}
|
|
@@ -1662,7 +1662,7 @@ function Po() {
|
|
|
1662
1662
|
}, gr = i, gr;
|
|
1663
1663
|
}
|
|
1664
1664
|
var yr, Wn;
|
|
1665
|
-
function
|
|
1665
|
+
function Bo() {
|
|
1666
1666
|
if (Wn)
|
|
1667
1667
|
return yr;
|
|
1668
1668
|
Wn = 1;
|
|
@@ -1984,7 +1984,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
|
|
|
1984
1984
|
}, yr;
|
|
1985
1985
|
}
|
|
1986
1986
|
var vr, xn;
|
|
1987
|
-
function
|
|
1987
|
+
function Vo() {
|
|
1988
1988
|
if (xn)
|
|
1989
1989
|
return vr;
|
|
1990
1990
|
xn = 1;
|
|
@@ -2034,9 +2034,9 @@ function Bo() {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
if (process.env.NODE_ENV !== "production") {
|
|
2036
2036
|
var Uo = si(), Fo = !0;
|
|
2037
|
-
Sr.exports =
|
|
2037
|
+
Sr.exports = Bo()(Uo.isElement, Fo);
|
|
2038
2038
|
} else
|
|
2039
|
-
Sr.exports =
|
|
2039
|
+
Sr.exports = Vo()();
|
|
2040
2040
|
var er = Sr.exports, Xr = {};
|
|
2041
2041
|
Object.defineProperty(Xr, "__esModule", {
|
|
2042
2042
|
value: !0
|
|
@@ -2357,7 +2357,7 @@ const PA = (e) => {
|
|
|
2357
2357
|
return n;
|
|
2358
2358
|
};
|
|
2359
2359
|
return r(e, 0);
|
|
2360
|
-
},
|
|
2360
|
+
}, BA = Ne("AsyncFunction"), VA = (e) => e && (ir(e) || Oe(e)) && Oe(e.then) && Oe(e.catch), y = {
|
|
2361
2361
|
isArray: mt,
|
|
2362
2362
|
isArrayBuffer: fi,
|
|
2363
2363
|
isBuffer: qA,
|
|
@@ -2408,8 +2408,8 @@ const PA = (e) => {
|
|
|
2408
2408
|
generateString: XA,
|
|
2409
2409
|
isSpecCompliantForm: QA,
|
|
2410
2410
|
toJSONObject: PA,
|
|
2411
|
-
isAsyncFn:
|
|
2412
|
-
isThenable:
|
|
2411
|
+
isAsyncFn: BA,
|
|
2412
|
+
isThenable: VA
|
|
2413
2413
|
};
|
|
2414
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);
|
|
@@ -2700,7 +2700,7 @@ function la(e, t, r) {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
return (r || JSON.stringify)(e);
|
|
2702
2702
|
}
|
|
2703
|
-
const
|
|
2703
|
+
const Br = {
|
|
2704
2704
|
transitional: Wi,
|
|
2705
2705
|
adapter: Le.isNode ? "http" : "xhr",
|
|
2706
2706
|
transformRequest: [function(t, r) {
|
|
@@ -2729,7 +2729,7 @@ const Vr = {
|
|
|
2729
2729
|
return o || i ? (r.setContentType("application/json", !1), la(t)) : t;
|
|
2730
2730
|
}],
|
|
2731
2731
|
transformResponse: [function(t) {
|
|
2732
|
-
const r = this.transitional ||
|
|
2732
|
+
const r = this.transitional || Br.transitional, n = r && r.forcedJSONParsing, i = this.responseType === "json";
|
|
2733
2733
|
if (t && y.isString(t) && (n && !this.responseType || i)) {
|
|
2734
2734
|
const A = !(r && r.silentJSONParsing) && i;
|
|
2735
2735
|
try {
|
|
@@ -2765,9 +2765,9 @@ const Vr = {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
};
|
|
2767
2767
|
y.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
2768
|
-
|
|
2768
|
+
Br.headers[e] = {};
|
|
2769
2769
|
});
|
|
2770
|
-
const
|
|
2770
|
+
const Vr = Br, ua = y.toObjectSet([
|
|
2771
2771
|
"age",
|
|
2772
2772
|
"authorization",
|
|
2773
2773
|
"content-length",
|
|
@@ -2953,7 +2953,7 @@ y.reduceDescriptors(Ar.prototype, ({ value: e }, t) => {
|
|
|
2953
2953
|
y.freezeMethods(Ar);
|
|
2954
2954
|
const Re = Ar;
|
|
2955
2955
|
function Zr(e, t) {
|
|
2956
|
-
const r = this ||
|
|
2956
|
+
const r = this || Vr, n = t || r, i = Re.from(n.headers);
|
|
2957
2957
|
let o = n.data;
|
|
2958
2958
|
return y.forEach(e, function(a) {
|
|
2959
2959
|
o = a.call(r, o, i.normalize(), t ? t.status : void 0);
|
|
@@ -3195,7 +3195,7 @@ function zn(e) {
|
|
|
3195
3195
|
return Ir(e), e.headers = Re.from(e.headers), e.data = Zr.call(
|
|
3196
3196
|
e,
|
|
3197
3197
|
e.transformRequest
|
|
3198
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Si.getAdapter(e.adapter ||
|
|
3198
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Si.getAdapter(e.adapter || Vr.adapter)(e).then(function(n) {
|
|
3199
3199
|
return Ir(e), n.data = Zr.call(
|
|
3200
3200
|
e,
|
|
3201
3201
|
e.transformResponse,
|
|
@@ -3578,7 +3578,7 @@ function Ei(e) {
|
|
|
3578
3578
|
return Ei(ct(e, i));
|
|
3579
3579
|
}, r;
|
|
3580
3580
|
}
|
|
3581
|
-
const fe = Ei(
|
|
3581
|
+
const fe = Ei(Vr);
|
|
3582
3582
|
fe.Axios = Xt;
|
|
3583
3583
|
fe.CanceledError = St;
|
|
3584
3584
|
fe.CancelToken = Ka;
|
|
@@ -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 ka(e) {
|
|
3770
|
-
const [, t] = Io((f) => f + 1, 0), [r, n] =
|
|
3770
|
+
const [, t] = Io((f) => f + 1, 0), [r, n] = B([]), 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;
|
|
@@ -3844,7 +3844,7 @@ function Rn(e) {
|
|
|
3844
3844
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3845
3845
|
}
|
|
3846
3846
|
function za(e) {
|
|
3847
|
-
const [t, r] =
|
|
3847
|
+
const [t, r] = B(!1), [n, i] = B(!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
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", k), document.addEventListener("touchmove", w), document.addEventListener("touchend", k);
|
|
@@ -3942,16 +3942,16 @@ function Ga(e) {
|
|
|
3942
3942
|
function Ct(e, t) {
|
|
3943
3943
|
return Ue.size > 0 ? xe.emit(0, e, t) : vt.push({ content: e, options: t }), t.toastId;
|
|
3944
3944
|
}
|
|
3945
|
-
function
|
|
3945
|
+
function Bt(e, t) {
|
|
3946
3946
|
return { ...t, type: t && t.type || e, toastId: Ga(t) };
|
|
3947
3947
|
}
|
|
3948
3948
|
function Nt(e) {
|
|
3949
|
-
return (t, r) => Ct(t,
|
|
3949
|
+
return (t, r) => Ct(t, Bt(e, r));
|
|
3950
3950
|
}
|
|
3951
3951
|
function se(e, t) {
|
|
3952
|
-
return Ct(e,
|
|
3952
|
+
return Ct(e, Bt("default", t));
|
|
3953
3953
|
}
|
|
3954
|
-
se.loading = (e, t) => Ct(e,
|
|
3954
|
+
se.loading = (e, t) => Ct(e, Bt("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), se.promise = function(e, t, r) {
|
|
3955
3955
|
let n, { pending: i, error: o, success: A } = t;
|
|
3956
3956
|
i && (n = nt(i) ? se.loading(i, r) : se.loading(i.render, { ...r, ...i }));
|
|
3957
3957
|
const a = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, c = (u, d, q) => {
|
|
@@ -3961,7 +3961,7 @@ se.loading = (e, t) => Ct(e, Vt("default", { isLoading: !0, autoClose: !1, close
|
|
|
3961
3961
|
return n ? se.update(n, { ...f, ...h }) : se(h.render, { ...f, ...h }), q;
|
|
3962
3962
|
}, s = be(e) ? e() : e;
|
|
3963
3963
|
return s.then((u) => c("success", A, u)).catch((u) => c("error", o, u)), s;
|
|
3964
|
-
}, se.success = Nt("success"), se.info = Nt("info"), se.error = Nt("error"), se.warning = Nt("warning"), se.warn = se.warning, se.dark = (e, t) => Ct(e,
|
|
3964
|
+
}, se.success = Nt("success"), se.info = Nt("info"), se.error = Nt("error"), se.warning = Nt("warning"), se.warn = se.warning, se.dark = (e, t) => Ct(e, Bt("default", { theme: "dark", ...t })), se.dismiss = (e) => {
|
|
3965
3965
|
Ue.size > 0 ? xe.emit(1, e) : vt = vt.filter((t) => e != null && t.options.toastId !== e);
|
|
3966
3966
|
}, se.clearWaitingQueue = function(e) {
|
|
3967
3967
|
return e === void 0 && (e = {}), xe.emit(5, e);
|
|
@@ -4160,7 +4160,7 @@ const Ra = ({
|
|
|
4160
4160
|
iframeUrl: i,
|
|
4161
4161
|
fetchFileUrl: o
|
|
4162
4162
|
}) => {
|
|
4163
|
-
const [A, a] =
|
|
4163
|
+
const [A, a] = B(window.innerWidth);
|
|
4164
4164
|
ve(() => {
|
|
4165
4165
|
const s = () => {
|
|
4166
4166
|
a(window.innerWidth);
|
|
@@ -4179,10 +4179,9 @@ const Ra = ({
|
|
|
4179
4179
|
flexDirection: "column",
|
|
4180
4180
|
justifyContent: "space-between",
|
|
4181
4181
|
padding: "5px",
|
|
4182
|
-
height: A > 1440 ? "
|
|
4182
|
+
height: A > 1440 ? "680px" : "620px",
|
|
4183
4183
|
borderRadius: "0px 0px 0px 16px",
|
|
4184
4184
|
marginTop: "20px"
|
|
4185
|
-
// 'rounded-l-xl' typically means large rounded corners on the left side
|
|
4186
4185
|
},
|
|
4187
4186
|
children: [
|
|
4188
4187
|
/* @__PURE__ */ m.jsx(Eo, { iframeUrl: i }),
|
|
@@ -4255,7 +4254,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4255
4254
|
}
|
|
4256
4255
|
)
|
|
4257
4256
|
] })
|
|
4258
|
-
] }),
|
|
4257
|
+
] }), Ba = ({
|
|
4259
4258
|
typeOfProduct: e,
|
|
4260
4259
|
fileSize: t,
|
|
4261
4260
|
urls: r,
|
|
@@ -4431,7 +4430,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4431
4430
|
}
|
|
4432
4431
|
)
|
|
4433
4432
|
] });
|
|
4434
|
-
},
|
|
4433
|
+
}, Va = ({ typeOfProduct: e, title: t }) => /* @__PURE__ */ m.jsx("div", { style: { fontSize: "1.5rem", fontWeight: "bold", paddingTop: "20px" }, children: /* @__PURE__ */ m.jsx(
|
|
4435
4434
|
"span",
|
|
4436
4435
|
{
|
|
4437
4436
|
style: {
|
|
@@ -4468,9 +4467,9 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4468
4467
|
// gap-1
|
|
4469
4468
|
},
|
|
4470
4469
|
children: [
|
|
4471
|
-
/* @__PURE__ */ m.jsx(
|
|
4470
|
+
/* @__PURE__ */ m.jsx(Va, { typeOfProduct: e, title: n }),
|
|
4472
4471
|
/* @__PURE__ */ m.jsx(
|
|
4473
|
-
|
|
4472
|
+
Ba,
|
|
4474
4473
|
{
|
|
4475
4474
|
typeOfProduct: e,
|
|
4476
4475
|
fileSize: t,
|
|
@@ -4538,7 +4537,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4538
4537
|
children: e
|
|
4539
4538
|
}
|
|
4540
4539
|
), Fa = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4541
|
-
const [n, i] =
|
|
4540
|
+
const [n, i] = B(e);
|
|
4542
4541
|
ve(() => {
|
|
4543
4542
|
i(e);
|
|
4544
4543
|
}, [e]);
|
|
@@ -4748,7 +4747,7 @@ const Hi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4748
4747
|
]
|
|
4749
4748
|
}
|
|
4750
4749
|
);
|
|
4751
|
-
async function
|
|
4750
|
+
async function Vt(e, t) {
|
|
4752
4751
|
return e.network == "fb" && (e.zip = 1), (await Ye.post(t + "/createFlexVersionLink", e || {})).data;
|
|
4753
4752
|
}
|
|
4754
4753
|
const $a = ({
|
|
@@ -4888,6 +4887,7 @@ const es = ({
|
|
|
4888
4887
|
position: "absolute",
|
|
4889
4888
|
top: 0,
|
|
4890
4889
|
left: 0,
|
|
4890
|
+
zIndex: 50,
|
|
4891
4891
|
display: "flex",
|
|
4892
4892
|
height: "100%",
|
|
4893
4893
|
width: "100%",
|
|
@@ -4915,16 +4915,22 @@ const es = ({
|
|
|
4915
4915
|
position: "absolute",
|
|
4916
4916
|
zIndex: 50,
|
|
4917
4917
|
display: "flex",
|
|
4918
|
-
|
|
4918
|
+
height: "max-content",
|
|
4919
4919
|
width: 350,
|
|
4920
4920
|
flexDirection: "column",
|
|
4921
4921
|
gap: "5px",
|
|
4922
|
-
borderRadius: "
|
|
4923
|
-
|
|
4924
|
-
|
|
4922
|
+
borderRadius: "8px",
|
|
4923
|
+
backgroundColor: "white",
|
|
4924
|
+
padding: "5px"
|
|
4925
4925
|
},
|
|
4926
4926
|
children: [
|
|
4927
|
-
/* @__PURE__ */ m.jsx(
|
|
4927
|
+
/* @__PURE__ */ m.jsx(
|
|
4928
|
+
"h1",
|
|
4929
|
+
{
|
|
4930
|
+
style: { textAlign: "center", fontSize: "18px", lineHeight: "24px" },
|
|
4931
|
+
children: "You are going to spend 1 credit for this download, do you want to continue?"
|
|
4932
|
+
}
|
|
4933
|
+
),
|
|
4928
4934
|
/* @__PURE__ */ m.jsxs("div", { style: { display: "flex", gap: "5px" }, children: [
|
|
4929
4935
|
/* @__PURE__ */ m.jsx(
|
|
4930
4936
|
"button",
|
|
@@ -4933,9 +4939,10 @@ const es = ({
|
|
|
4933
4939
|
style: {
|
|
4934
4940
|
flex: 1,
|
|
4935
4941
|
cursor: "pointer",
|
|
4936
|
-
borderRadius: "
|
|
4942
|
+
borderRadius: "4px",
|
|
4937
4943
|
borderWidth: "1px",
|
|
4938
4944
|
borderColor: "dark-50",
|
|
4945
|
+
// Replace this with the actual color code
|
|
4939
4946
|
padding: "2px",
|
|
4940
4947
|
fontWeight: "bold"
|
|
4941
4948
|
},
|
|
@@ -4945,20 +4952,22 @@ const es = ({
|
|
|
4945
4952
|
/* @__PURE__ */ m.jsx(
|
|
4946
4953
|
"button",
|
|
4947
4954
|
{
|
|
4948
|
-
onClick: async (o) => {
|
|
4949
|
-
o.preventDefault(), o.stopPropagation(), n === "download" ? (await r(), await i()) : n === "copy" && (await t(), await i()), e();
|
|
4950
|
-
},
|
|
4951
4955
|
style: {
|
|
4952
4956
|
flex: 1,
|
|
4953
4957
|
cursor: "pointer",
|
|
4954
|
-
borderRadius: "
|
|
4958
|
+
borderRadius: "4px",
|
|
4955
4959
|
borderWidth: "1px",
|
|
4956
|
-
borderColor: "
|
|
4957
|
-
|
|
4960
|
+
borderColor: "#F9830B",
|
|
4961
|
+
// Replace with the actual color code for red-500
|
|
4962
|
+
backgroundColor: "#F9830B",
|
|
4963
|
+
// Replace with the actual color code
|
|
4958
4964
|
padding: "2px",
|
|
4959
4965
|
fontWeight: "bold",
|
|
4960
4966
|
color: "white"
|
|
4961
4967
|
},
|
|
4968
|
+
onClick: async (o) => {
|
|
4969
|
+
o.preventDefault(), o.stopPropagation(), n === "download" ? (await r(), await i()) : n === "copy" && (await t(), await i()), e();
|
|
4970
|
+
},
|
|
4962
4971
|
children: "Yes"
|
|
4963
4972
|
}
|
|
4964
4973
|
)
|
|
@@ -5000,12 +5009,12 @@ const es = ({
|
|
|
5000
5009
|
downloadFlex: w,
|
|
5001
5010
|
flexDownloadCount: k
|
|
5002
5011
|
}) => {
|
|
5003
|
-
const [J, S] =
|
|
5012
|
+
const [J, S] = B(!1), [b, ie] = B(wt(5)), [ae, F] = B(""), [oe, ue] = B(!1), [ce, P] = B(!1), [_, Z] = B("download"), x = () => {
|
|
5004
5013
|
r(e);
|
|
5005
5014
|
}, z = async (W, N, v, K, O, D) => {
|
|
5006
5015
|
try {
|
|
5007
5016
|
if (S(!0), g.iosUrl = h.iosUrl, g.googleUrl = h.googleUrl, await Xn(g, u), c === "Flex") {
|
|
5008
|
-
const j = await
|
|
5017
|
+
const j = await Vt(
|
|
5009
5018
|
{
|
|
5010
5019
|
_id: W,
|
|
5011
5020
|
network: N
|
|
@@ -5114,7 +5123,7 @@ const es = ({
|
|
|
5114
5123
|
);
|
|
5115
5124
|
return navigator.clipboard.writeText(`${q}/${N == null ? void 0 : N.url}`), $e("Link Coppied"), N == null ? void 0 : N.url;
|
|
5116
5125
|
}
|
|
5117
|
-
const W = await
|
|
5126
|
+
const W = await Vt(
|
|
5118
5127
|
{ _id: s, network: i },
|
|
5119
5128
|
u
|
|
5120
5129
|
);
|
|
@@ -5657,7 +5666,7 @@ const as = ({
|
|
|
5657
5666
|
instantGames: t,
|
|
5658
5667
|
onSuccess: r
|
|
5659
5668
|
}) => {
|
|
5660
|
-
const [n, i] =
|
|
5669
|
+
const [n, i] = B(""), [o, A] = B(""), [a, c] = B(""), [s, u] = B(null), d = async (q) => {
|
|
5661
5670
|
let f, h = await fetch(s == null ? void 0 : s.url).then((g) => g.text());
|
|
5662
5671
|
f = document.createElement("a"), f.setAttribute(
|
|
5663
5672
|
"href",
|
|
@@ -5993,7 +6002,7 @@ const as = ({
|
|
|
5993
6002
|
game: d,
|
|
5994
6003
|
flexDownloadCount: q
|
|
5995
6004
|
}) => {
|
|
5996
|
-
const [f, h] =
|
|
6005
|
+
const [f, h] = B([]), [g, C] = B([]), [w, k] = B(!1), [J, S] = B(""), [b, ie] = B(!1), [ae, F] = B(!1), [oe, ue] = B(!1), ce = async (Z) => {
|
|
5997
6006
|
k(!0);
|
|
5998
6007
|
const x = await os(
|
|
5999
6008
|
n,
|
|
@@ -6173,9 +6182,9 @@ const ps = [
|
|
|
6173
6182
|
handleDownloadError: c,
|
|
6174
6183
|
fetchFileUrl: s
|
|
6175
6184
|
}) => {
|
|
6176
|
-
const [u, d] =
|
|
6177
|
-
|
|
6178
|
-
const [S, b] =
|
|
6185
|
+
const [u, d] = B(null), [q, f] = B(null), [h, g] = B(null), [C, w] = B(null), [k, J] = B(!1);
|
|
6186
|
+
B({});
|
|
6187
|
+
const [S, b] = B(null), [ie, ae] = B(null), [F, oe] = B(null), [ue, ce] = B(!0), [P, _] = B(window.innerWidth);
|
|
6179
6188
|
ve(() => {
|
|
6180
6189
|
const O = () => {
|
|
6181
6190
|
_(window.innerWidth);
|
|
@@ -6221,7 +6230,7 @@ const ps = [
|
|
|
6221
6230
|
if (O)
|
|
6222
6231
|
ae(O.iosUrl), oe(O.googleUrl), ce(!1);
|
|
6223
6232
|
else {
|
|
6224
|
-
Y = await
|
|
6233
|
+
Y = await Vt(
|
|
6225
6234
|
{
|
|
6226
6235
|
_id: t
|
|
6227
6236
|
},
|
|
@@ -6495,7 +6504,7 @@ var Rr = { exports: {} };
|
|
|
6495
6504
|
}
|
|
6496
6505
|
e.exports = t.default;
|
|
6497
6506
|
})(Rr, Rr.exports);
|
|
6498
|
-
var Ws = Rr.exports, ze = {}, xs = process.env.NODE_ENV !== "production",
|
|
6507
|
+
var Ws = Rr.exports, ze = {}, xs = process.env.NODE_ENV !== "production", Bi = function() {
|
|
6499
6508
|
};
|
|
6500
6509
|
if (xs) {
|
|
6501
6510
|
var Os = function(t, r) {
|
|
@@ -6512,7 +6521,7 @@ if (xs) {
|
|
|
6512
6521
|
} catch {
|
|
6513
6522
|
}
|
|
6514
6523
|
};
|
|
6515
|
-
|
|
6524
|
+
Bi = function(e, t, r) {
|
|
6516
6525
|
var n = arguments.length;
|
|
6517
6526
|
r = new Array(n > 2 ? n - 2 : 0);
|
|
6518
6527
|
for (var i = 2; i < n; i++)
|
|
@@ -6524,7 +6533,7 @@ if (xs) {
|
|
|
6524
6533
|
e || Os.apply(null, [t].concat(r));
|
|
6525
6534
|
};
|
|
6526
6535
|
}
|
|
6527
|
-
var Ms =
|
|
6536
|
+
var Ms = Bi, Ee = {}, Vi = { exports: {} };
|
|
6528
6537
|
/*!
|
|
6529
6538
|
Copyright (c) 2015 Jed Watson.
|
|
6530
6539
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
@@ -6540,8 +6549,8 @@ var Ms = Vi, Ee = {}, Bi = { exports: {} };
|
|
|
6540
6549
|
};
|
|
6541
6550
|
e.exports ? e.exports = r : window.ExecutionEnvironment = r;
|
|
6542
6551
|
})();
|
|
6543
|
-
})(
|
|
6544
|
-
var Ss =
|
|
6552
|
+
})(Vi);
|
|
6553
|
+
var Ss = Vi.exports;
|
|
6545
6554
|
Object.defineProperty(Ee, "__esModule", {
|
|
6546
6555
|
value: !0
|
|
6547
6556
|
});
|
|
@@ -6679,17 +6688,17 @@ doc.body (` + e + `):
|
|
|
6679
6688
|
`, console.log(t);
|
|
6680
6689
|
}
|
|
6681
6690
|
}
|
|
6682
|
-
var
|
|
6691
|
+
var Bs = function(t, r) {
|
|
6683
6692
|
return t[r] || (t[r] = 0), t[r] += 1, r;
|
|
6684
|
-
},
|
|
6693
|
+
}, Vs = function(t, r) {
|
|
6685
6694
|
return t[r] && (t[r] -= 1), r;
|
|
6686
6695
|
}, Us = function(t, r, n) {
|
|
6687
6696
|
n.forEach(function(i) {
|
|
6688
|
-
|
|
6697
|
+
Bs(r, i), t.add(i);
|
|
6689
6698
|
});
|
|
6690
6699
|
}, Fs = function(t, r, n) {
|
|
6691
6700
|
n.forEach(function(i) {
|
|
6692
|
-
|
|
6701
|
+
Vs(r, i), r[i] === 0 && t.remove(i);
|
|
6693
6702
|
});
|
|
6694
6703
|
};
|
|
6695
6704
|
dt.add = function(t, r) {
|
|
@@ -6770,7 +6779,7 @@ function ol() {
|
|
|
6770
6779
|
}
|
|
6771
6780
|
console.log("edn bodyTrap ----------");
|
|
6772
6781
|
}
|
|
6773
|
-
function
|
|
6782
|
+
function Bn() {
|
|
6774
6783
|
if (rt.length === 0) {
|
|
6775
6784
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
6776
6785
|
return;
|
|
@@ -6778,7 +6787,7 @@ function Vn() {
|
|
|
6778
6787
|
rt[rt.length - 1].focusContent();
|
|
6779
6788
|
}
|
|
6780
6789
|
function Al(e, t) {
|
|
6781
|
-
!ge && !Me && (ge = document.createElement("div"), ge.setAttribute("data-react-modal-body-trap", ""), ge.style.position = "absolute", ge.style.opacity = "0", ge.setAttribute("tabindex", "0"), ge.addEventListener("focus",
|
|
6790
|
+
!ge && !Me && (ge = document.createElement("div"), ge.setAttribute("data-react-modal-body-trap", ""), ge.style.position = "absolute", ge.style.opacity = "0", ge.setAttribute("tabindex", "0"), ge.addEventListener("focus", Bn), Me = ge.cloneNode(), Me.addEventListener("focus", Bn)), rt = t, rt.length > 0 ? (document.body.firstChild !== ge && document.body.insertBefore(ge, document.body.firstChild), document.body.lastChild !== Me && document.body.appendChild(Me)) : (ge.parentElement && ge.parentElement.removeChild(ge), Me.parentElement && Me.parentElement.removeChild(Me));
|
|
6782
6791
|
}
|
|
6783
6792
|
rl.default.subscribe(Al);
|
|
6784
6793
|
(function(e, t) {
|
|
@@ -7080,7 +7089,7 @@ Object.defineProperty(it, "__esModule", {
|
|
|
7080
7089
|
value: !0
|
|
7081
7090
|
});
|
|
7082
7091
|
it.bodyOpenClassName = it.portalClassName = void 0;
|
|
7083
|
-
var
|
|
7092
|
+
var Vn = Object.assign || function(e) {
|
|
7084
7093
|
for (var t = 1; t < arguments.length; t++) {
|
|
7085
7094
|
var r = arguments[t];
|
|
7086
7095
|
for (var n in r)
|
|
@@ -7146,7 +7155,7 @@ var ft = function(e) {
|
|
|
7146
7155
|
}, i.portalRef = function(s) {
|
|
7147
7156
|
i.portal = s;
|
|
7148
7157
|
}, i.renderPortal = function(s) {
|
|
7149
|
-
var u = $n(), d = u(i, Ft.default.createElement(Un.default,
|
|
7158
|
+
var u = $n(), d = u(i, Ft.default.createElement(Un.default, Vn({ defaultStyles: t.defaultStyles }, s)), i.node);
|
|
7150
7159
|
i.portalRef(d);
|
|
7151
7160
|
}, n), _n(i, o);
|
|
7152
7161
|
}
|
|
@@ -7190,7 +7199,7 @@ var ft = function(e) {
|
|
|
7190
7199
|
return null;
|
|
7191
7200
|
!this.node && Fe && (this.node = Tr("div"));
|
|
7192
7201
|
var n = $n();
|
|
7193
|
-
return n(Ft.default.createElement(Un.default,
|
|
7202
|
+
return n(Ft.default.createElement(Un.default, Vn({
|
|
7194
7203
|
ref: this.portalRef,
|
|
7195
7204
|
defaultStyles: t.defaultStyles
|
|
7196
7205
|
}, this.props)), this.node);
|
|
@@ -7329,8 +7338,8 @@ const Il = /* @__PURE__ */ Wo(Zl), Wl = ({
|
|
|
7329
7338
|
handleDownloadError: d,
|
|
7330
7339
|
fetchFileUrl: q
|
|
7331
7340
|
}) => {
|
|
7332
|
-
const [f, h] =
|
|
7333
|
-
A === "Flex" ? await
|
|
7341
|
+
const [f, h] = B(window.innerWidth), [g, C] = B(!1), [w, k] = B(u), J = async () => {
|
|
7342
|
+
A === "Flex" ? await Vt(
|
|
7334
7343
|
{ _id: r, network: "default" },
|
|
7335
7344
|
a
|
|
7336
7345
|
).then((S) => {
|