gearboxdownloadmodal 5.0.30 → 5.0.31
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 +70 -75
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ae, { useState as
|
|
1
|
+
import ae, { useState as $, useEffect as we, forwardRef as xi, useReducer as wi, useRef as st, isValidElement as gt, cloneElement as zr, useLayoutEffect as Ki } from "react";
|
|
2
2
|
import Ei from "react-dom";
|
|
3
3
|
function Li(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -90,10 +90,10 @@ function ki() {
|
|
|
90
90
|
ce.unshift("Warning: " + Z), Function.prototype.apply.call(console[l], console, ce);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var O = !1, v = !1,
|
|
93
|
+
var O = !1, v = !1, ee = !1, ne = !1, oe = !1, Ae;
|
|
94
94
|
Ae = Symbol.for("react.module.reference");
|
|
95
95
|
function pe(l) {
|
|
96
|
-
return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || oe || l === o || l === m || l === s || ne || l === h || O || v ||
|
|
96
|
+
return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || oe || l === o || l === m || l === s || ne || l === h || O || v || ee || typeof l == "object" && l !== null && (l.$$typeof === g || 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.
|
|
@@ -283,17 +283,17 @@ function ki() {
|
|
|
283
283
|
}
|
|
284
284
|
} catch (Be) {
|
|
285
285
|
if (Be && R && typeof Be.stack == "string") {
|
|
286
|
-
for (var
|
|
286
|
+
for (var _ = Be.stack.split(`
|
|
287
287
|
`), Ie = R.stack.split(`
|
|
288
|
-
`), he =
|
|
288
|
+
`), he = _.length - 1, qe = Ie.length - 1; he >= 1 && qe >= 0 && _[he] !== Ie[qe]; )
|
|
289
289
|
qe--;
|
|
290
290
|
for (; he >= 1 && qe >= 0; he--, qe--)
|
|
291
|
-
if (
|
|
291
|
+
if (_[he] !== Ie[qe]) {
|
|
292
292
|
if (he !== 1 || qe !== 1)
|
|
293
293
|
do
|
|
294
|
-
if (he--, qe--, qe < 0 ||
|
|
294
|
+
if (he--, qe--, qe < 0 || _[he] !== Ie[qe]) {
|
|
295
295
|
var ke = `
|
|
296
|
-
` +
|
|
296
|
+
` + _[he].replace(" at new ", " at ");
|
|
297
297
|
return l.displayName && ke.includes("<anonymous>") && (ke = ke.replace("<anonymous>", l.displayName)), typeof l == "function" && B.set(l, ke), ke;
|
|
298
298
|
}
|
|
299
299
|
while (he >= 1 && qe >= 0);
|
|
@@ -355,17 +355,17 @@ function ki() {
|
|
|
355
355
|
var ce = Function.call.bind(ve);
|
|
356
356
|
for (var te in l)
|
|
357
357
|
if (ce(l, te)) {
|
|
358
|
-
var
|
|
358
|
+
var _ = void 0;
|
|
359
359
|
try {
|
|
360
360
|
if (typeof l[te] != "function") {
|
|
361
361
|
var Ie = Error((R || "React class") + ": " + S + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
362
362
|
throw Ie.name = "Invariant Violation", Ie;
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
_ = l[te](Z, te, R, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
365
365
|
} catch (he) {
|
|
366
|
-
|
|
366
|
+
_ = he;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
_ && !(_ instanceof Error) && (Se(ie), 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).", R || "React class", S, te, typeof _), Se(null)), _ instanceof Error && !(_.message in me) && (me[_.message] = !0, Se(ie), k("Failed %s type: %s", S, _.message), Se(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -445,7 +445,7 @@ function ki() {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
var fi = function(l, Z, S, R, ie, ce, te) {
|
|
448
|
-
var
|
|
448
|
+
var _ = {
|
|
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 ki() {
|
|
|
456
456
|
// Record the component responsible for creating this element.
|
|
457
457
|
_owner: ce
|
|
458
458
|
};
|
|
459
|
-
return
|
|
459
|
+
return _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
460
460
|
configurable: !1,
|
|
461
461
|
enumerable: !1,
|
|
462
462
|
writable: !0,
|
|
463
463
|
value: !1
|
|
464
|
-
}), Object.defineProperty(
|
|
464
|
+
}), Object.defineProperty(_, "_self", {
|
|
465
465
|
configurable: !1,
|
|
466
466
|
enumerable: !1,
|
|
467
467
|
writable: !1,
|
|
468
468
|
value: R
|
|
469
|
-
}), Object.defineProperty(
|
|
469
|
+
}), Object.defineProperty(_, "_source", {
|
|
470
470
|
configurable: !1,
|
|
471
471
|
enumerable: !1,
|
|
472
472
|
writable: !1,
|
|
473
473
|
value: ie
|
|
474
|
-
}), Object.freeze && (Object.freeze(
|
|
474
|
+
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
475
475
|
};
|
|
476
476
|
function hi(l, Z, S, R, ie) {
|
|
477
477
|
{
|
|
478
|
-
var ce, te = {},
|
|
479
|
-
S !== void 0 && (dn(S),
|
|
478
|
+
var ce, te = {}, _ = null, Ie = null;
|
|
479
|
+
S !== void 0 && (dn(S), _ = "" + S), ci(Z) && (dn(Z.key), _ = "" + Z.key), ui(Z) && (Ie = Z.ref, mi(Z, ie));
|
|
480
480
|
for (ce in Z)
|
|
481
481
|
ve.call(Z, ce) && !li.hasOwnProperty(ce) && (te[ce] = Z[ce]);
|
|
482
482
|
if (l && l.defaultProps) {
|
|
@@ -484,11 +484,11 @@ function ki() {
|
|
|
484
484
|
for (ce in he)
|
|
485
485
|
te[ce] === void 0 && (te[ce] = he[ce]);
|
|
486
486
|
}
|
|
487
|
-
if (
|
|
487
|
+
if (_ || Ie) {
|
|
488
488
|
var qe = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
489
|
-
|
|
489
|
+
_ && di(te, qe), Ie && pi(te, qe);
|
|
490
490
|
}
|
|
491
|
-
return fi(l,
|
|
491
|
+
return fi(l, _, Ie, ie, R, xt.current, te);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
var qr = I.ReactCurrentOwner, hn = I.ReactDebugCurrentFrame;
|
|
@@ -613,12 +613,12 @@ Check the top-level render call using <` + S + ">.");
|
|
|
613
613
|
{
|
|
614
614
|
var te = pe(l);
|
|
615
615
|
if (!te) {
|
|
616
|
-
var
|
|
617
|
-
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (
|
|
616
|
+
var _ = "";
|
|
617
|
+
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (_ += " 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 Ie = qi(ie);
|
|
619
|
-
Ie ?
|
|
619
|
+
Ie ? _ += Ie : _ += qn();
|
|
620
620
|
var he;
|
|
621
|
-
l === null ? he = "null" : _e(l) ? he = "array" : l !== void 0 && l.$$typeof === t ? (he = "<" + (Y(l.type) || "Unknown") + " />",
|
|
621
|
+
l === null ? he = "null" : _e(l) ? he = "array" : l !== void 0 && l.$$typeof === t ? (he = "<" + (Y(l.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : he = 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", he, _);
|
|
622
622
|
}
|
|
623
623
|
var qe = hi(l, Z, S, ie, ce);
|
|
624
624
|
if (qe == null)
|
|
@@ -652,7 +652,7 @@ Check the top-level render call using <` + S + ">.");
|
|
|
652
652
|
process.env.NODE_ENV === "production" ? Yr.exports = Oi() : Yr.exports = ki();
|
|
653
653
|
var u = Yr.exports;
|
|
654
654
|
const ao = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=", Wi = ({ children: e }) => {
|
|
655
|
-
const [t, r] =
|
|
655
|
+
const [t, r] = $(window.innerWidth);
|
|
656
656
|
return we(() => {
|
|
657
657
|
const n = () => {
|
|
658
658
|
r(window.innerWidth);
|
|
@@ -1392,8 +1392,8 @@ function Qi() {
|
|
|
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, o = e ? Symbol.for("react.strict_mode") : 60108, i = 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, m = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, q = 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 W(v) {
|
|
1394
1394
|
if (typeof v == "object" && v !== null) {
|
|
1395
|
-
var
|
|
1396
|
-
switch (
|
|
1395
|
+
var ee = v.$$typeof;
|
|
1396
|
+
switch (ee) {
|
|
1397
1397
|
case t:
|
|
1398
1398
|
switch (v = v.type, v) {
|
|
1399
1399
|
case c:
|
|
@@ -1412,11 +1412,11 @@ function Qi() {
|
|
|
1412
1412
|
case a:
|
|
1413
1413
|
return v;
|
|
1414
1414
|
default:
|
|
1415
|
-
return
|
|
1415
|
+
return ee;
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
case r:
|
|
1419
|
-
return
|
|
1419
|
+
return ee;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
@@ -1500,7 +1500,7 @@ function Hi() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var v = c,
|
|
1503
|
+
var v = c, ee = m, ne = A, oe = a, Ae = t, pe = s, V = n, j = p, Y = h, E = r, K = i, M = o, f = d, w = !1;
|
|
1504
1504
|
function X(L) {
|
|
1505
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.")), b(L) || O(L) === c;
|
|
1506
1506
|
}
|
|
@@ -1540,7 +1540,7 @@ function Hi() {
|
|
|
1540
1540
|
function ye(L) {
|
|
1541
1541
|
return O(L) === d;
|
|
1542
1542
|
}
|
|
1543
|
-
le.AsyncMode = v, le.ConcurrentMode =
|
|
1543
|
+
le.AsyncMode = v, le.ConcurrentMode = ee, le.ContextConsumer = ne, le.ContextProvider = oe, le.Element = Ae, le.ForwardRef = pe, le.Fragment = V, le.Lazy = j, le.Memo = Y, le.Portal = E, le.Profiler = K, le.StrictMode = M, le.Suspense = f, le.isAsyncMode = X, le.isConcurrentMode = b, le.isContextConsumer = x, le.isContextProvider = z, le.isElement = J, le.isForwardRef = D, le.isFragment = Q, le.isLazy = T, le.isMemo = G, le.isPortal = H, le.isProfiler = U, le.isStrictMode = B, le.isSuspense = ye, le.isValidElementType = W, le.typeOf = O;
|
|
1544
1544
|
}()), le;
|
|
1545
1545
|
}
|
|
1546
1546
|
var En;
|
|
@@ -1699,7 +1699,7 @@ function Xi() {
|
|
|
1699
1699
|
arrayOf: W,
|
|
1700
1700
|
element: O(),
|
|
1701
1701
|
elementType: v(),
|
|
1702
|
-
instanceOf:
|
|
1702
|
+
instanceOf: ee,
|
|
1703
1703
|
node: pe(),
|
|
1704
1704
|
objectOf: oe,
|
|
1705
1705
|
oneOf: ne,
|
|
@@ -1794,7 +1794,7 @@ function Xi() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
return C(b);
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function ee(b) {
|
|
1798
1798
|
function x(z, J, D, Q, T) {
|
|
1799
1799
|
if (!(z[J] instanceof b)) {
|
|
1800
1800
|
var G = b.name || g, H = X(z[J]);
|
|
@@ -3779,7 +3779,7 @@ const ze = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
|
|
|
3779
3779
|
return ae.createElement("div", { className: "Toastify__spinner" });
|
|
3780
3780
|
} };
|
|
3781
3781
|
function jA(e) {
|
|
3782
|
-
const [, t] = wi((h) => h + 1, 0), [r, n] =
|
|
3782
|
+
const [, t] = wi((h) => h + 1, 0), [r, n] = $([]), o = st(null), i = st(/* @__PURE__ */ new Map()).current, a = (h) => r.indexOf(h) !== -1, A = st({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: a, getToast: (h) => i.get(h) }).current;
|
|
3783
3783
|
function c(h) {
|
|
3784
3784
|
let { containerId: p } = h;
|
|
3785
3785
|
const { limit: q } = A.props;
|
|
@@ -3798,12 +3798,12 @@ function jA(e) {
|
|
|
3798
3798
|
return !o.current || A.props.enableMultiContainer && j.containerId !== A.props.containerId || i.has(j.toastId) && j.updateId == null;
|
|
3799
3799
|
}(I))
|
|
3800
3800
|
return;
|
|
3801
|
-
const { toastId: k, updateId: W, data: O } = I, { props: v } = A,
|
|
3801
|
+
const { toastId: k, updateId: W, data: O } = I, { props: v } = A, ee = () => m(k), ne = W == null;
|
|
3802
3802
|
ne && A.count++;
|
|
3803
3803
|
const oe = { ...v, style: v.toastStyle, key: A.toastKey++, ...Object.fromEntries(Object.entries(I).filter((j) => {
|
|
3804
3804
|
let [Y, E] = j;
|
|
3805
3805
|
return E != null;
|
|
3806
|
-
})), toastId: k, updateId: W, data: O, closeToast:
|
|
3806
|
+
})), toastId: k, updateId: W, data: O, closeToast: ee, isIn: !1, className: Ft(I.className || v.toastClassName), bodyClassName: Ft(I.bodyClassName || v.bodyClassName), progressClassName: Ft(I.progressClassName || v.progressClassName), autoClose: !I.isLoading && (Ae = I.autoClose, pe = v.autoClose, Ae === !1 || St(Ae) && Ae > 0 ? Ae : pe), deleteToast() {
|
|
3807
3807
|
const j = Vn(i.get(k), "removed");
|
|
3808
3808
|
i.delete(k), ze.emit(4, j);
|
|
3809
3809
|
const Y = A.queue.length;
|
|
@@ -3827,7 +3827,7 @@ function jA(e) {
|
|
|
3827
3827
|
return M === !1 || (xe(M) ? f = M(w) : gt(M) ? f = zr(M, w) : mt(M) || St(M) ? f = M : K ? f = Or.spinner() : ((X) => X in Or)(E) && (f = Or[E](w))), f;
|
|
3828
3828
|
}(oe), xe(I.onOpen) && (oe.onOpen = I.onOpen), xe(I.onClose) && (oe.onClose = I.onClose), oe.closeButton = v.closeButton, I.closeButton === !1 || Sr(I.closeButton) ? oe.closeButton = I.closeButton : I.closeButton === !0 && (oe.closeButton = !Sr(v.closeButton) || v.closeButton);
|
|
3829
3829
|
let V = h;
|
|
3830
|
-
gt(h) && !mt(h.type) ? V = zr(h, { closeToast:
|
|
3830
|
+
gt(h) && !mt(h.type) ? V = zr(h, { closeToast: ee, toastProps: oe, data: O }) : xe(h) && (V = h({ closeToast: ee, toastProps: oe, data: O })), v.limit && v.limit > 0 && A.count > v.limit && ne ? A.queue.push({ toastContent: V, toastProps: oe, staleId: C }) : St(q) ? setTimeout(() => {
|
|
3831
3831
|
g(V, oe, C);
|
|
3832
3832
|
}, q) : g(V, oe, C);
|
|
3833
3833
|
}
|
|
@@ -3856,7 +3856,7 @@ function Xn(e) {
|
|
|
3856
3856
|
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
3857
3857
|
}
|
|
3858
3858
|
function JA(e) {
|
|
3859
|
-
const [t, r] =
|
|
3859
|
+
const [t, r] = $(!1), [n, o] = $(!1), i = st(null), a = st({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = st(e), { autoClose: c, pauseOnHover: m, closeToast: s, onClick: d, closeOnClick: g } = e;
|
|
3860
3860
|
function h(O) {
|
|
3861
3861
|
if (e.draggable) {
|
|
3862
3862
|
O.nativeEvent.type === "touchstart" && O.nativeEvent.preventDefault(), a.didMove = !1, document.addEventListener("mousemove", I), document.addEventListener("mouseup", k), document.addEventListener("touchmove", I), document.addEventListener("touchend", k);
|
|
@@ -3866,8 +3866,8 @@ function JA(e) {
|
|
|
3866
3866
|
}
|
|
3867
3867
|
function p(O) {
|
|
3868
3868
|
if (a.boundingRect) {
|
|
3869
|
-
const { top: v, bottom:
|
|
3870
|
-
O.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= ne && a.x <= oe && a.y >= v && a.y <=
|
|
3869
|
+
const { top: v, bottom: ee, left: ne, right: oe } = a.boundingRect;
|
|
3870
|
+
O.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= ne && a.x <= oe && a.y >= v && a.y <= ee ? C() : q();
|
|
3871
3871
|
}
|
|
3872
3872
|
}
|
|
3873
3873
|
function q() {
|
|
@@ -3918,9 +3918,9 @@ function DA(e) {
|
|
|
3918
3918
|
} });
|
|
3919
3919
|
}
|
|
3920
3920
|
const NA = (e) => {
|
|
3921
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o } = JA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: m, hideProgressBar: s, closeToast: d, transition: g, position: h, className: p, style: q, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: W, updateId: O, role: v, progress:
|
|
3921
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o } = JA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: m, hideProgressBar: s, closeToast: d, transition: g, position: h, className: p, style: q, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: W, updateId: O, role: v, progress: ee, rtl: ne, toastId: oe, deleteToast: Ae, isIn: pe, isLoading: V, iconOut: j, closeOnClick: Y, theme: E } = e, K = tt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${m}`, { "Toastify__toast--rtl": ne }, { "Toastify__toast--close-on-click": Y }), M = xe(p) ? p({ rtl: ne, position: h, type: m, defaultClassName: K }) : tt(K, p), f = !!ee || !A, w = { closeToast: d, type: m, theme: E };
|
|
3922
3922
|
let X = null;
|
|
3923
|
-
return i === !1 || (X = xe(i) ? i(w) : gt(i) ? zr(i, w) : Xo(w)), ae.createElement(g, { isIn: pe, done: Ae, position: h, preventExitTransition: r, nodeRef: n }, ae.createElement("div", { id: oe, onClick: c, className: M, ...o, style: q, ref: n }, ae.createElement("div", { ...pe && { role: v }, className: xe(C) ? C({ type: m }) : tt("Toastify__toast-body", C), style: I }, j != null && ae.createElement("div", { className: tt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !V }) }, j), ae.createElement("div", null, a)), X, ae.createElement(DA, { ...O && !f ? { key: `pb-${O}` } : {}, rtl: ne, theme: E, delay: A, isRunning: t, isIn: pe, closeToast: d, hide: s, type: m, style: W, className: k, controlledProgress: f, progress:
|
|
3923
|
+
return i === !1 || (X = xe(i) ? i(w) : gt(i) ? zr(i, w) : Xo(w)), ae.createElement(g, { isIn: pe, done: Ae, position: h, preventExitTransition: r, nodeRef: n }, ae.createElement("div", { id: oe, onClick: c, className: M, ...o, style: q, ref: n }, ae.createElement("div", { ...pe && { role: v }, className: xe(C) ? C({ type: m }) : tt("Toastify__toast-body", C), style: I }, j != null && ae.createElement("div", { className: tt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !V }) }, j), ae.createElement("div", null, a)), X, ae.createElement(DA, { ...O && !f ? { key: `pb-${O}` } : {}, rtl: ne, theme: E, delay: A, isRunning: t, isIn: pe, closeToast: d, hide: s, type: m, style: W, className: k, controlledProgress: f, progress: ee || 0 })));
|
|
3924
3924
|
}, pr = function(e, t) {
|
|
3925
3925
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3926
3926
|
}, TA = dr(pr("bounce", !0));
|
|
@@ -4159,7 +4159,7 @@ const PA = ({ versionId: e, typeOfProduct: t, api: r, fetchFileUrl: n, copyLinkU
|
|
|
4159
4159
|
fetchFileUrl: i,
|
|
4160
4160
|
copyLinkUrl: a
|
|
4161
4161
|
}) => {
|
|
4162
|
-
const [A, c] =
|
|
4162
|
+
const [A, c] = $(window.innerWidth);
|
|
4163
4163
|
we(() => {
|
|
4164
4164
|
const s = () => {
|
|
4165
4165
|
c(window.innerWidth);
|
|
@@ -4542,7 +4542,7 @@ const Fo = ({ fill: e, stroke: t, className: r, style: n }) => /* @__PURE__ */ u
|
|
|
4542
4542
|
children: e
|
|
4543
4543
|
}
|
|
4544
4544
|
), es = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4545
|
-
const [n, o] =
|
|
4545
|
+
const [n, o] = $(e);
|
|
4546
4546
|
we(() => {
|
|
4547
4547
|
o(e);
|
|
4548
4548
|
}, [e]);
|
|
@@ -5216,7 +5216,7 @@ const is = ({
|
|
|
5216
5216
|
disabled: k,
|
|
5217
5217
|
user: W
|
|
5218
5218
|
}) => {
|
|
5219
|
-
const [O, v] =
|
|
5219
|
+
const [O, v] = $(!1), [ee, ne] = $($A(5)), [oe, Ae] = $(""), [pe, V] = $(!1), [j, Y] = $(!1), [E, K] = $(!1), [M, f] = $("download"), [w, X] = $(!1), [b, x] = $(!1), [z, J] = $(!1);
|
|
5220
5220
|
let D = {
|
|
5221
5221
|
aarki: "html,copy",
|
|
5222
5222
|
adcolony: "copy,html",
|
|
@@ -5322,7 +5322,7 @@ const is = ({
|
|
|
5322
5322
|
s
|
|
5323
5323
|
);
|
|
5324
5324
|
const Se = Wr.includes(F) ? 1 : 0;
|
|
5325
|
-
At(s, N,
|
|
5325
|
+
At(s, N, ee, F, Ke, Se, {}).then(async (Oe) => {
|
|
5326
5326
|
let { url: Fe } = Oe, _e;
|
|
5327
5327
|
if ([
|
|
5328
5328
|
"google",
|
|
@@ -5379,7 +5379,7 @@ const is = ({
|
|
|
5379
5379
|
return tr(`${g}/${N == null ? void 0 : N.url}`), Re("Link Coppied"), N == null ? void 0 : N.url;
|
|
5380
5380
|
}, B = async () => {
|
|
5381
5381
|
X(!0);
|
|
5382
|
-
const N = await At(s, m,
|
|
5382
|
+
const N = await At(s, m, ee, "moloco", !1, Q, {
|
|
5383
5383
|
molocoS3: !0
|
|
5384
5384
|
});
|
|
5385
5385
|
let F = N.url, fe;
|
|
@@ -5394,7 +5394,7 @@ const is = ({
|
|
|
5394
5394
|
), fe.style.display = "none", document.body.appendChild(fe), fe.click(), X(!1), Re("Download successfully"), K(!1);
|
|
5395
5395
|
}, ye = async () => {
|
|
5396
5396
|
x(!0);
|
|
5397
|
-
const N = await At(s, m,
|
|
5397
|
+
const N = await At(s, m, ee, "moloco", !1, Q, {
|
|
5398
5398
|
molocoS3: !0
|
|
5399
5399
|
});
|
|
5400
5400
|
await fetch(g + "/" + N.url).then((F) => {
|
|
@@ -5420,7 +5420,7 @@ const is = ({
|
|
|
5420
5420
|
});
|
|
5421
5421
|
}, L = async () => {
|
|
5422
5422
|
J(!0);
|
|
5423
|
-
const N = await At(s, m,
|
|
5423
|
+
const N = await At(s, m, ee, "moloco", !1, Q, {
|
|
5424
5424
|
molocoS3: !0
|
|
5425
5425
|
});
|
|
5426
5426
|
await fetch(g + "/" + N.url).then((F) => {
|
|
@@ -6002,7 +6002,7 @@ const ms = ({
|
|
|
6002
6002
|
flexDownloadCount: d,
|
|
6003
6003
|
disabled: g
|
|
6004
6004
|
}) => {
|
|
6005
|
-
const [h, p] =
|
|
6005
|
+
const [h, p] = $([]), [q, C] = $([]), [I, k] = $(!1), [W, O] = $(""), [v, ee] = $(!1), [ne, oe] = $(!1), Ae = async (j) => {
|
|
6006
6006
|
k(!0);
|
|
6007
6007
|
const Y = await us(n, j, i);
|
|
6008
6008
|
C(Y.details), O(Y.size), k(!1);
|
|
@@ -6018,13 +6018,13 @@ const ms = ({
|
|
|
6018
6018
|
}, V = async () => {
|
|
6019
6019
|
try {
|
|
6020
6020
|
const j = Mr.filter((f) => [...h].includes(f.id)).map((f) => f.name);
|
|
6021
|
-
|
|
6021
|
+
ee(!0);
|
|
6022
6022
|
const Y = await cs(n, j, i), { url: E } = Y;
|
|
6023
6023
|
let K;
|
|
6024
6024
|
const M = c + "/" + E;
|
|
6025
|
-
K = document.createElement("iframe"), K.setAttribute("src", M), K.style.display = "none", document.body.appendChild(K), K.click(),
|
|
6025
|
+
K = document.createElement("iframe"), K.setAttribute("src", M), K.style.display = "none", document.body.appendChild(K), K.click(), ee(!1), Re("Multi downloaded completed successfully");
|
|
6026
6026
|
} catch (j) {
|
|
6027
|
-
|
|
6027
|
+
ee(!1), A(j.response.data.error.msg), console.error(j);
|
|
6028
6028
|
}
|
|
6029
6029
|
};
|
|
6030
6030
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
@@ -6173,7 +6173,7 @@ const gs = [
|
|
|
6173
6173
|
fileSize: s,
|
|
6174
6174
|
setFileSize: d
|
|
6175
6175
|
}) => {
|
|
6176
|
-
const [g, h] =
|
|
6176
|
+
const [g, h] = $(null), [p, q] = $(null), [C, I] = $(null), [k, W] = $(!1), [O, v] = $("Loading..."), [ee, ne] = $("Loading..."), [oe, Ae] = $(!0), [pe, V] = $(window.innerWidth);
|
|
6177
6177
|
we(() => {
|
|
6178
6178
|
const w = () => {
|
|
6179
6179
|
V(window.innerWidth);
|
|
@@ -6261,7 +6261,7 @@ const gs = [
|
|
|
6261
6261
|
title: A,
|
|
6262
6262
|
typeOfProduct: n,
|
|
6263
6263
|
fileSize: s,
|
|
6264
|
-
urls: { iosUrl: O, googleUrl:
|
|
6264
|
+
urls: { iosUrl: O, googleUrl: ee },
|
|
6265
6265
|
handleIosChange: Y,
|
|
6266
6266
|
handleGoogleChange: E,
|
|
6267
6267
|
disabled: oe,
|
|
@@ -6281,7 +6281,7 @@ const gs = [
|
|
|
6281
6281
|
},
|
|
6282
6282
|
children: /* @__PURE__ */ u.jsx(ln, { isNetworksLoading: !0 })
|
|
6283
6283
|
}
|
|
6284
|
-
) : (g || C) && (n === "Flex" ? p : !0) && !k && O !== "Loading..." &&
|
|
6284
|
+
) : (g || C) && (n === "Flex" ? p : !0) && !k && O !== "Loading..." && ee !== "Loading..." && /* @__PURE__ */ u.jsx(
|
|
6285
6285
|
ms,
|
|
6286
6286
|
{
|
|
6287
6287
|
playable: g,
|
|
@@ -6293,7 +6293,7 @@ const gs = [
|
|
|
6293
6293
|
user: a,
|
|
6294
6294
|
handleDownloadError: c,
|
|
6295
6295
|
fetchFileUrl: m,
|
|
6296
|
-
urls: { iosUrl: O, googleUrl:
|
|
6296
|
+
urls: { iosUrl: O, googleUrl: ee },
|
|
6297
6297
|
game: p,
|
|
6298
6298
|
flexDownloadCount: M,
|
|
6299
6299
|
disabled: oe
|
|
@@ -6789,7 +6789,7 @@ al.default.subscribe(ul);
|
|
|
6789
6789
|
function v(E) {
|
|
6790
6790
|
return E && E.__esModule ? E : { default: E };
|
|
6791
6791
|
}
|
|
6792
|
-
function
|
|
6792
|
+
function ee(E, K) {
|
|
6793
6793
|
if (!(E instanceof K))
|
|
6794
6794
|
throw new TypeError("Cannot call a class as a function");
|
|
6795
6795
|
}
|
|
@@ -6813,7 +6813,7 @@ al.default.subscribe(ul);
|
|
|
6813
6813
|
}, j = 0, Y = function(E) {
|
|
6814
6814
|
oe(K, E);
|
|
6815
6815
|
function K(M) {
|
|
6816
|
-
|
|
6816
|
+
ee(this, K);
|
|
6817
6817
|
var f = ne(this, (K.__proto__ || Object.getPrototypeOf(K)).call(this, M));
|
|
6818
6818
|
return f.setOverlayRef = function(w) {
|
|
6819
6819
|
f.overlay = w, f.props.overlayRef && f.props.overlayRef(w);
|
|
@@ -7378,19 +7378,14 @@ const Ai = /* @__PURE__ */ Li(Kl), El = ({ width: e, height: t }) => /* @__PURE_
|
|
|
7378
7378
|
fetchFileUrl: g,
|
|
7379
7379
|
copyLinkUrl: h
|
|
7380
7380
|
}) => {
|
|
7381
|
-
const [p, q] =
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
I(!0), W(g + "/" + V.url);
|
|
7390
|
-
}
|
|
7391
|
-
);
|
|
7392
|
-
else
|
|
7393
|
-
return;
|
|
7381
|
+
const [p, q] = $(window.innerWidth), [C, I] = $(!1), [k, W] = $(s), [O, v] = $(!1), [ee, ne] = $(!0), [oe, Ae] = $(null), pe = async () => {
|
|
7382
|
+
a === "Flex" ? await er({ _id: r, network: "default" }, A).then((V) => {
|
|
7383
|
+
I(!0), W(g + "/" + V.url), V.size > 5 ? v(!0) : v(!1), Ae(V.size), ne(!1);
|
|
7384
|
+
}).catch(() => {
|
|
7385
|
+
ne(!1);
|
|
7386
|
+
}) : await At(A, r, "", "default", !1, 0, {}).then((V) => {
|
|
7387
|
+
I(!0), W(g + "/" + V.url);
|
|
7388
|
+
});
|
|
7394
7389
|
};
|
|
7395
7390
|
return we(() => {
|
|
7396
7391
|
e ? C || (pe(), I(!0)) : (I(!1), W(""));
|
|
@@ -7401,7 +7396,7 @@ const Ai = /* @__PURE__ */ Li(Kl), El = ({ width: e, height: t }) => /* @__PURE_
|
|
|
7401
7396
|
return window.addEventListener("resize", V), () => {
|
|
7402
7397
|
window.removeEventListener("resize", V);
|
|
7403
7398
|
};
|
|
7404
|
-
}, []),
|
|
7399
|
+
}, []), ee && a === "Flex" ? null : /* @__PURE__ */ u.jsxs(
|
|
7405
7400
|
"div",
|
|
7406
7401
|
{
|
|
7407
7402
|
onMouseDown: (V) => {
|