gearboxdownloadmodal 4.0.11 → 4.0.12
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 -103
- 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);
|
|
@@ -4255,7 +4255,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4255
4255
|
}
|
|
4256
4256
|
)
|
|
4257
4257
|
] })
|
|
4258
|
-
] }),
|
|
4258
|
+
] }), Ba = ({
|
|
4259
4259
|
typeOfProduct: e,
|
|
4260
4260
|
fileSize: t,
|
|
4261
4261
|
urls: r,
|
|
@@ -4431,7 +4431,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4431
4431
|
}
|
|
4432
4432
|
)
|
|
4433
4433
|
] });
|
|
4434
|
-
},
|
|
4434
|
+
}, Va = ({ typeOfProduct: e, title: t }) => /* @__PURE__ */ m.jsx("div", { style: { fontSize: "1.5rem", fontWeight: "bold", paddingTop: "20px" }, children: /* @__PURE__ */ m.jsx(
|
|
4435
4435
|
"span",
|
|
4436
4436
|
{
|
|
4437
4437
|
style: {
|
|
@@ -4468,9 +4468,9 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4468
4468
|
// gap-1
|
|
4469
4469
|
},
|
|
4470
4470
|
children: [
|
|
4471
|
-
/* @__PURE__ */ m.jsx(
|
|
4471
|
+
/* @__PURE__ */ m.jsx(Va, { typeOfProduct: e, title: n }),
|
|
4472
4472
|
/* @__PURE__ */ m.jsx(
|
|
4473
|
-
|
|
4473
|
+
Ba,
|
|
4474
4474
|
{
|
|
4475
4475
|
typeOfProduct: e,
|
|
4476
4476
|
fileSize: t,
|
|
@@ -4538,7 +4538,7 @@ const Qa = () => /* @__PURE__ */ m.jsxs("svg", { width: "24", height: "24", view
|
|
|
4538
4538
|
children: e
|
|
4539
4539
|
}
|
|
4540
4540
|
), Fa = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4541
|
-
const [n, i] =
|
|
4541
|
+
const [n, i] = B(e);
|
|
4542
4542
|
ve(() => {
|
|
4543
4543
|
i(e);
|
|
4544
4544
|
}, [e]);
|
|
@@ -4748,7 +4748,7 @@ const Hi = ({ typeOfProduct: e }) => /* @__PURE__ */ m.jsx(
|
|
|
4748
4748
|
]
|
|
4749
4749
|
}
|
|
4750
4750
|
);
|
|
4751
|
-
async function
|
|
4751
|
+
async function Vt(e, t) {
|
|
4752
4752
|
return e.network == "fb" && (e.zip = 1), (await Ye.post(t + "/createFlexVersionLink", e || {})).data;
|
|
4753
4753
|
}
|
|
4754
4754
|
const $a = ({
|
|
@@ -4888,6 +4888,7 @@ const es = ({
|
|
|
4888
4888
|
position: "absolute",
|
|
4889
4889
|
top: 0,
|
|
4890
4890
|
left: 0,
|
|
4891
|
+
zIndex: 50,
|
|
4891
4892
|
display: "flex",
|
|
4892
4893
|
height: "100%",
|
|
4893
4894
|
width: "100%",
|
|
@@ -4915,16 +4916,22 @@ const es = ({
|
|
|
4915
4916
|
position: "absolute",
|
|
4916
4917
|
zIndex: 50,
|
|
4917
4918
|
display: "flex",
|
|
4918
|
-
|
|
4919
|
+
height: "max-content",
|
|
4919
4920
|
width: 350,
|
|
4920
4921
|
flexDirection: "column",
|
|
4921
4922
|
gap: "5px",
|
|
4922
|
-
borderRadius: "
|
|
4923
|
-
|
|
4924
|
-
|
|
4923
|
+
borderRadius: "8px",
|
|
4924
|
+
backgroundColor: "white",
|
|
4925
|
+
padding: "5px"
|
|
4925
4926
|
},
|
|
4926
4927
|
children: [
|
|
4927
|
-
/* @__PURE__ */ m.jsx(
|
|
4928
|
+
/* @__PURE__ */ m.jsx(
|
|
4929
|
+
"h1",
|
|
4930
|
+
{
|
|
4931
|
+
style: { textAlign: "center", fontSize: "18px", lineHeight: "24px" },
|
|
4932
|
+
children: "You are going to spend 1 credit for this download, do you want to continue?"
|
|
4933
|
+
}
|
|
4934
|
+
),
|
|
4928
4935
|
/* @__PURE__ */ m.jsxs("div", { style: { display: "flex", gap: "5px" }, children: [
|
|
4929
4936
|
/* @__PURE__ */ m.jsx(
|
|
4930
4937
|
"button",
|
|
@@ -4933,9 +4940,10 @@ const es = ({
|
|
|
4933
4940
|
style: {
|
|
4934
4941
|
flex: 1,
|
|
4935
4942
|
cursor: "pointer",
|
|
4936
|
-
borderRadius: "
|
|
4943
|
+
borderRadius: "4px",
|
|
4937
4944
|
borderWidth: "1px",
|
|
4938
4945
|
borderColor: "dark-50",
|
|
4946
|
+
// Replace this with the actual color code
|
|
4939
4947
|
padding: "2px",
|
|
4940
4948
|
fontWeight: "bold"
|
|
4941
4949
|
},
|
|
@@ -4945,20 +4953,22 @@ const es = ({
|
|
|
4945
4953
|
/* @__PURE__ */ m.jsx(
|
|
4946
4954
|
"button",
|
|
4947
4955
|
{
|
|
4948
|
-
onClick: async (o) => {
|
|
4949
|
-
o.preventDefault(), o.stopPropagation(), n === "download" ? (await r(), await i()) : n === "copy" && (await t(), await i()), e();
|
|
4950
|
-
},
|
|
4951
4956
|
style: {
|
|
4952
4957
|
flex: 1,
|
|
4953
4958
|
cursor: "pointer",
|
|
4954
|
-
borderRadius: "
|
|
4959
|
+
borderRadius: "4px",
|
|
4955
4960
|
borderWidth: "1px",
|
|
4956
|
-
borderColor: "
|
|
4957
|
-
|
|
4961
|
+
borderColor: "#F9830B",
|
|
4962
|
+
// Replace with the actual color code for red-500
|
|
4963
|
+
backgroundColor: "#F9830B",
|
|
4964
|
+
// Replace with the actual color code
|
|
4958
4965
|
padding: "2px",
|
|
4959
4966
|
fontWeight: "bold",
|
|
4960
4967
|
color: "white"
|
|
4961
4968
|
},
|
|
4969
|
+
onClick: async (o) => {
|
|
4970
|
+
o.preventDefault(), o.stopPropagation(), n === "download" ? (await r(), await i()) : n === "copy" && (await t(), await i()), e();
|
|
4971
|
+
},
|
|
4962
4972
|
children: "Yes"
|
|
4963
4973
|
}
|
|
4964
4974
|
)
|
|
@@ -5000,12 +5010,12 @@ const es = ({
|
|
|
5000
5010
|
downloadFlex: w,
|
|
5001
5011
|
flexDownloadCount: k
|
|
5002
5012
|
}) => {
|
|
5003
|
-
const [J, S] =
|
|
5013
|
+
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
5014
|
r(e);
|
|
5005
5015
|
}, z = async (W, N, v, K, O, D) => {
|
|
5006
5016
|
try {
|
|
5007
5017
|
if (S(!0), g.iosUrl = h.iosUrl, g.googleUrl = h.googleUrl, await Xn(g, u), c === "Flex") {
|
|
5008
|
-
const j = await
|
|
5018
|
+
const j = await Vt(
|
|
5009
5019
|
{
|
|
5010
5020
|
_id: W,
|
|
5011
5021
|
network: N
|
|
@@ -5114,7 +5124,7 @@ const es = ({
|
|
|
5114
5124
|
);
|
|
5115
5125
|
return navigator.clipboard.writeText(`${q}/${N == null ? void 0 : N.url}`), $e("Link Coppied"), N == null ? void 0 : N.url;
|
|
5116
5126
|
}
|
|
5117
|
-
const W = await
|
|
5127
|
+
const W = await Vt(
|
|
5118
5128
|
{ _id: s, network: i },
|
|
5119
5129
|
u
|
|
5120
5130
|
);
|
|
@@ -5311,7 +5321,7 @@ const es = ({
|
|
|
5311
5321
|
]
|
|
5312
5322
|
}
|
|
5313
5323
|
),
|
|
5314
|
-
oe && /* @__PURE__ */ m.jsx(
|
|
5324
|
+
!oe && /* @__PURE__ */ m.jsx(
|
|
5315
5325
|
es,
|
|
5316
5326
|
{
|
|
5317
5327
|
creditConfirmType: _,
|
|
@@ -5657,7 +5667,7 @@ const as = ({
|
|
|
5657
5667
|
instantGames: t,
|
|
5658
5668
|
onSuccess: r
|
|
5659
5669
|
}) => {
|
|
5660
|
-
const [n, i] =
|
|
5670
|
+
const [n, i] = B(""), [o, A] = B(""), [a, c] = B(""), [s, u] = B(null), d = async (q) => {
|
|
5661
5671
|
let f, h = await fetch(s == null ? void 0 : s.url).then((g) => g.text());
|
|
5662
5672
|
f = document.createElement("a"), f.setAttribute(
|
|
5663
5673
|
"href",
|
|
@@ -5993,7 +6003,7 @@ const as = ({
|
|
|
5993
6003
|
game: d,
|
|
5994
6004
|
flexDownloadCount: q
|
|
5995
6005
|
}) => {
|
|
5996
|
-
const [f, h] =
|
|
6006
|
+
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
6007
|
k(!0);
|
|
5998
6008
|
const x = await os(
|
|
5999
6009
|
n,
|
|
@@ -6173,9 +6183,9 @@ const ps = [
|
|
|
6173
6183
|
handleDownloadError: c,
|
|
6174
6184
|
fetchFileUrl: s
|
|
6175
6185
|
}) => {
|
|
6176
|
-
const [u, d] =
|
|
6177
|
-
|
|
6178
|
-
const [S, b] =
|
|
6186
|
+
const [u, d] = B(null), [q, f] = B(null), [h, g] = B(null), [C, w] = B(null), [k, J] = B(!1);
|
|
6187
|
+
B({});
|
|
6188
|
+
const [S, b] = B(null), [ie, ae] = B(null), [F, oe] = B(null), [ue, ce] = B(!0), [P, _] = B(window.innerWidth);
|
|
6179
6189
|
ve(() => {
|
|
6180
6190
|
const O = () => {
|
|
6181
6191
|
_(window.innerWidth);
|
|
@@ -6221,7 +6231,7 @@ const ps = [
|
|
|
6221
6231
|
if (O)
|
|
6222
6232
|
ae(O.iosUrl), oe(O.googleUrl), ce(!1);
|
|
6223
6233
|
else {
|
|
6224
|
-
Y = await
|
|
6234
|
+
Y = await Vt(
|
|
6225
6235
|
{
|
|
6226
6236
|
_id: t
|
|
6227
6237
|
},
|
|
@@ -6495,7 +6505,7 @@ var Rr = { exports: {} };
|
|
|
6495
6505
|
}
|
|
6496
6506
|
e.exports = t.default;
|
|
6497
6507
|
})(Rr, Rr.exports);
|
|
6498
|
-
var Ws = Rr.exports, ze = {}, xs = process.env.NODE_ENV !== "production",
|
|
6508
|
+
var Ws = Rr.exports, ze = {}, xs = process.env.NODE_ENV !== "production", Bi = function() {
|
|
6499
6509
|
};
|
|
6500
6510
|
if (xs) {
|
|
6501
6511
|
var Os = function(t, r) {
|
|
@@ -6512,7 +6522,7 @@ if (xs) {
|
|
|
6512
6522
|
} catch {
|
|
6513
6523
|
}
|
|
6514
6524
|
};
|
|
6515
|
-
|
|
6525
|
+
Bi = function(e, t, r) {
|
|
6516
6526
|
var n = arguments.length;
|
|
6517
6527
|
r = new Array(n > 2 ? n - 2 : 0);
|
|
6518
6528
|
for (var i = 2; i < n; i++)
|
|
@@ -6524,7 +6534,7 @@ if (xs) {
|
|
|
6524
6534
|
e || Os.apply(null, [t].concat(r));
|
|
6525
6535
|
};
|
|
6526
6536
|
}
|
|
6527
|
-
var Ms =
|
|
6537
|
+
var Ms = Bi, Ee = {}, Vi = { exports: {} };
|
|
6528
6538
|
/*!
|
|
6529
6539
|
Copyright (c) 2015 Jed Watson.
|
|
6530
6540
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
@@ -6540,8 +6550,8 @@ var Ms = Vi, Ee = {}, Bi = { exports: {} };
|
|
|
6540
6550
|
};
|
|
6541
6551
|
e.exports ? e.exports = r : window.ExecutionEnvironment = r;
|
|
6542
6552
|
})();
|
|
6543
|
-
})(
|
|
6544
|
-
var Ss =
|
|
6553
|
+
})(Vi);
|
|
6554
|
+
var Ss = Vi.exports;
|
|
6545
6555
|
Object.defineProperty(Ee, "__esModule", {
|
|
6546
6556
|
value: !0
|
|
6547
6557
|
});
|
|
@@ -6679,17 +6689,17 @@ doc.body (` + e + `):
|
|
|
6679
6689
|
`, console.log(t);
|
|
6680
6690
|
}
|
|
6681
6691
|
}
|
|
6682
|
-
var
|
|
6692
|
+
var Bs = function(t, r) {
|
|
6683
6693
|
return t[r] || (t[r] = 0), t[r] += 1, r;
|
|
6684
|
-
},
|
|
6694
|
+
}, Vs = function(t, r) {
|
|
6685
6695
|
return t[r] && (t[r] -= 1), r;
|
|
6686
6696
|
}, Us = function(t, r, n) {
|
|
6687
6697
|
n.forEach(function(i) {
|
|
6688
|
-
|
|
6698
|
+
Bs(r, i), t.add(i);
|
|
6689
6699
|
});
|
|
6690
6700
|
}, Fs = function(t, r, n) {
|
|
6691
6701
|
n.forEach(function(i) {
|
|
6692
|
-
|
|
6702
|
+
Vs(r, i), r[i] === 0 && t.remove(i);
|
|
6693
6703
|
});
|
|
6694
6704
|
};
|
|
6695
6705
|
dt.add = function(t, r) {
|
|
@@ -6770,7 +6780,7 @@ function ol() {
|
|
|
6770
6780
|
}
|
|
6771
6781
|
console.log("edn bodyTrap ----------");
|
|
6772
6782
|
}
|
|
6773
|
-
function
|
|
6783
|
+
function Bn() {
|
|
6774
6784
|
if (rt.length === 0) {
|
|
6775
6785
|
process.env.NODE_ENV !== "production" && console.warn("React-Modal: Open instances > 0 expected");
|
|
6776
6786
|
return;
|
|
@@ -6778,7 +6788,7 @@ function Vn() {
|
|
|
6778
6788
|
rt[rt.length - 1].focusContent();
|
|
6779
6789
|
}
|
|
6780
6790
|
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",
|
|
6791
|
+
!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
6792
|
}
|
|
6783
6793
|
rl.default.subscribe(Al);
|
|
6784
6794
|
(function(e, t) {
|
|
@@ -7080,7 +7090,7 @@ Object.defineProperty(it, "__esModule", {
|
|
|
7080
7090
|
value: !0
|
|
7081
7091
|
});
|
|
7082
7092
|
it.bodyOpenClassName = it.portalClassName = void 0;
|
|
7083
|
-
var
|
|
7093
|
+
var Vn = Object.assign || function(e) {
|
|
7084
7094
|
for (var t = 1; t < arguments.length; t++) {
|
|
7085
7095
|
var r = arguments[t];
|
|
7086
7096
|
for (var n in r)
|
|
@@ -7146,7 +7156,7 @@ var ft = function(e) {
|
|
|
7146
7156
|
}, i.portalRef = function(s) {
|
|
7147
7157
|
i.portal = s;
|
|
7148
7158
|
}, i.renderPortal = function(s) {
|
|
7149
|
-
var u = $n(), d = u(i, Ft.default.createElement(Un.default,
|
|
7159
|
+
var u = $n(), d = u(i, Ft.default.createElement(Un.default, Vn({ defaultStyles: t.defaultStyles }, s)), i.node);
|
|
7150
7160
|
i.portalRef(d);
|
|
7151
7161
|
}, n), _n(i, o);
|
|
7152
7162
|
}
|
|
@@ -7190,7 +7200,7 @@ var ft = function(e) {
|
|
|
7190
7200
|
return null;
|
|
7191
7201
|
!this.node && Fe && (this.node = Tr("div"));
|
|
7192
7202
|
var n = $n();
|
|
7193
|
-
return n(Ft.default.createElement(Un.default,
|
|
7203
|
+
return n(Ft.default.createElement(Un.default, Vn({
|
|
7194
7204
|
ref: this.portalRef,
|
|
7195
7205
|
defaultStyles: t.defaultStyles
|
|
7196
7206
|
}, this.props)), this.node);
|
|
@@ -7329,8 +7339,8 @@ const Il = /* @__PURE__ */ Wo(Zl), Wl = ({
|
|
|
7329
7339
|
handleDownloadError: d,
|
|
7330
7340
|
fetchFileUrl: q
|
|
7331
7341
|
}) => {
|
|
7332
|
-
const [f, h] =
|
|
7333
|
-
A === "Flex" ? await
|
|
7342
|
+
const [f, h] = B(window.innerWidth), [g, C] = B(!1), [w, k] = B(u), J = async () => {
|
|
7343
|
+
A === "Flex" ? await Vt(
|
|
7334
7344
|
{ _id: r, network: "default" },
|
|
7335
7345
|
a
|
|
7336
7346
|
).then((S) => {
|