gearboxdownloadmodal 3.0.0 → 3.0.1
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 +71 -72
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -90,10 +90,10 @@ function Ka() {
|
|
|
90
90
|
ie.unshift("Warning: " + Z), Function.prototype.apply.call(console[s], console, ie);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var W = !1, q = !1, se = !1, J = !1,
|
|
93
|
+
var W = !1, q = !1, se = !1, J = !1, G = !1, oe;
|
|
94
94
|
oe = Symbol.for("react.module.reference");
|
|
95
95
|
function B(s) {
|
|
96
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a ||
|
|
96
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === a || G || s === A || s === u || s === l || J || s === f || W || q || se || typeof s == "object" && s !== null && (s.$$typeof === g || s.$$typeof === m || s.$$typeof === o || s.$$typeof === i || s.$$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.
|
|
@@ -1480,7 +1480,7 @@ function Da() {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
var q = c, se = u, J = i,
|
|
1483
|
+
var q = c, se = u, J = i, G = o, oe = t, B = l, ee = n, H = p, R = f, w = r, L = a, S = A, d = m, E = !1;
|
|
1484
1484
|
function te(M) {
|
|
1485
1485
|
return E || (E = !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(M) || W(M) === c;
|
|
1486
1486
|
}
|
|
@@ -1520,7 +1520,7 @@ function Da() {
|
|
|
1520
1520
|
function he(M) {
|
|
1521
1521
|
return W(M) === m;
|
|
1522
1522
|
}
|
|
1523
|
-
ae.AsyncMode = q, ae.ConcurrentMode = se, ae.ContextConsumer = J, ae.ContextProvider =
|
|
1523
|
+
ae.AsyncMode = q, ae.ConcurrentMode = se, ae.ContextConsumer = J, ae.ContextProvider = G, ae.Element = oe, ae.ForwardRef = B, ae.Fragment = ee, ae.Lazy = H, ae.Memo = R, ae.Portal = w, ae.Profiler = L, ae.StrictMode = S, ae.Suspense = d, ae.isAsyncMode = te, ae.isConcurrentMode = b, ae.isContextConsumer = C, ae.isContextProvider = k, ae.isElement = x, ae.isForwardRef = j, ae.isFragment = Q, ae.isLazy = T, ae.isMemo = X, ae.isPortal = P, ae.isProfiler = _, ae.isStrictMode = V, ae.isSuspense = he, ae.isValidElementType = z, ae.typeOf = W;
|
|
1524
1524
|
}()), ae;
|
|
1525
1525
|
}
|
|
1526
1526
|
var Zn;
|
|
@@ -1681,7 +1681,7 @@ function Ta() {
|
|
|
1681
1681
|
elementType: q(),
|
|
1682
1682
|
instanceOf: se,
|
|
1683
1683
|
node: B(),
|
|
1684
|
-
objectOf:
|
|
1684
|
+
objectOf: G,
|
|
1685
1685
|
oneOf: J,
|
|
1686
1686
|
oneOfType: oe,
|
|
1687
1687
|
shape: H,
|
|
@@ -1801,7 +1801,7 @@ function Ta() {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
return I(C);
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function G(b) {
|
|
1805
1805
|
function C(k, x, j, Q, T) {
|
|
1806
1806
|
if (typeof b != "function")
|
|
1807
1807
|
return new v("Property `" + T + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
@@ -3768,7 +3768,7 @@ function Li(e) {
|
|
|
3768
3768
|
return;
|
|
3769
3769
|
const { toastId: Y, updateId: z, data: W } = K, { props: q } = i, se = () => u(Y), J = z == null;
|
|
3770
3770
|
J && i.count++;
|
|
3771
|
-
const
|
|
3771
|
+
const G = { ...q, style: q.toastStyle, key: i.toastKey++, ...Object.fromEntries(Object.entries(K).filter((H) => {
|
|
3772
3772
|
let [R, w] = H;
|
|
3773
3773
|
return w != null;
|
|
3774
3774
|
})), toastId: Y, updateId: z, data: W, closeToast: se, isIn: !1, className: Ht(K.className || q.toastClassName), bodyClassName: Ht(K.bodyClassName || q.bodyClassName), progressClassName: Ht(K.progressClassName || q.progressClassName), autoClose: !K.isLoading && (oe = K.autoClose, B = q.autoClose, oe === !1 || bt(oe) && oe > 0 ? oe : B), deleteToast() {
|
|
@@ -3789,15 +3789,15 @@ function Li(e) {
|
|
|
3789
3789
|
t();
|
|
3790
3790
|
} };
|
|
3791
3791
|
var oe, B;
|
|
3792
|
-
|
|
3792
|
+
G.iconOut = function(H) {
|
|
3793
3793
|
let { theme: R, type: w, isLoading: L, icon: S } = H, d = null;
|
|
3794
3794
|
const E = { theme: R, type: w };
|
|
3795
3795
|
return S === !1 || (ye(S) ? d = S(E) : lt(S) ? d = Or(S, E) : rt(S) || bt(S) ? d = S : L ? d = Kr.spinner() : ((te) => te in Kr)(w) && (d = Kr[w](E))), d;
|
|
3796
|
-
}(
|
|
3796
|
+
}(G), ye(K.onOpen) && (G.onOpen = K.onOpen), ye(K.onClose) && (G.onClose = K.onClose), G.closeButton = q.closeButton, K.closeButton === !1 || Ir(K.closeButton) ? G.closeButton = K.closeButton : K.closeButton === !0 && (G.closeButton = !Ir(q.closeButton) || q.closeButton);
|
|
3797
3797
|
let ee = f;
|
|
3798
|
-
lt(f) && !rt(f.type) ? ee = Or(f, { closeToast: se, toastProps:
|
|
3799
|
-
g(ee,
|
|
3800
|
-
}, v) : g(ee,
|
|
3798
|
+
lt(f) && !rt(f.type) ? ee = Or(f, { closeToast: se, toastProps: G, data: W }) : ye(f) && (ee = f({ closeToast: se, toastProps: G, data: W })), q.limit && q.limit > 0 && i.count > q.limit && J ? i.queue.push({ toastContent: ee, toastProps: G, staleId: I }) : bt(v) ? setTimeout(() => {
|
|
3799
|
+
g(ee, G, I);
|
|
3800
|
+
}, v) : g(ee, G, I);
|
|
3801
3801
|
}
|
|
3802
3802
|
function g(f, p, v) {
|
|
3803
3803
|
const { toastId: I } = p;
|
|
@@ -3834,8 +3834,8 @@ function Ei(e) {
|
|
|
3834
3834
|
}
|
|
3835
3835
|
function p(W) {
|
|
3836
3836
|
if (o.boundingRect) {
|
|
3837
|
-
const { top: q, bottom: se, left: J, right:
|
|
3838
|
-
W.nativeEvent.type !== "touchend" && e.pauseOnHover && o.x >= J && o.x <=
|
|
3837
|
+
const { top: q, bottom: se, left: J, right: G } = o.boundingRect;
|
|
3838
|
+
W.nativeEvent.type !== "touchend" && e.pauseOnHover && o.x >= J && o.x <= G && o.y >= q && o.y <= se ? I() : v();
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
3841
|
function v() {
|
|
@@ -3886,9 +3886,9 @@ function Yi(e) {
|
|
|
3886
3886
|
} });
|
|
3887
3887
|
}
|
|
3888
3888
|
const xi = (e) => {
|
|
3889
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: A } = Ei(e), { closeButton: a, children: o, autoClose: i, onClick: c, type: u, hideProgressBar: l, closeToast: m, transition: g, position: f, className: p, style: v, bodyClassName: I, bodyStyle: K, progressClassName: Y, progressStyle: z, updateId: W, role: q, progress: se, rtl: J, toastId:
|
|
3889
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: A } = Ei(e), { closeButton: a, children: o, autoClose: i, onClick: c, type: u, hideProgressBar: l, closeToast: m, transition: g, position: f, className: p, style: v, bodyClassName: I, bodyStyle: K, progressClassName: Y, progressStyle: z, updateId: W, role: q, progress: se, rtl: J, toastId: G, deleteToast: oe, isIn: B, isLoading: ee, iconOut: H, closeOnClick: R, theme: w } = e, L = Xe("Toastify__toast", `Toastify__toast-theme--${w}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": J }, { "Toastify__toast--close-on-click": R }), S = ye(p) ? p({ rtl: J, position: f, type: u, defaultClassName: L }) : Xe(L, p), d = !!se || !i, E = { closeToast: m, type: u, theme: w };
|
|
3890
3890
|
let te = null;
|
|
3891
|
-
return a === !1 || (te = ye(a) ? a(E) : lt(a) ? Or(a, E) : NA(E)), ne.createElement(g, { isIn: B, done: oe, position: f, preventExitTransition: r, nodeRef: n }, ne.createElement("div", { id:
|
|
3891
|
+
return a === !1 || (te = ye(a) ? a(E) : lt(a) ? Or(a, E) : NA(E)), ne.createElement(g, { isIn: B, done: oe, position: f, preventExitTransition: r, nodeRef: n }, ne.createElement("div", { id: G, onClick: c, className: S, ...A, style: v, ref: n }, ne.createElement("div", { ...B && { role: q }, className: ye(I) ? I({ type: u }) : Xe("Toastify__toast-body", I), style: K }, H != null && ne.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ee }) }, H), ne.createElement("div", null, o)), te, ne.createElement(Yi, { ...W && !d ? { key: `pb-${W}` } : {}, rtl: J, theme: w, delay: i, isRunning: t, isIn: B, closeToast: m, hide: l, type: u, style: z, className: Y, controlledProgress: d, progress: se || 0 })));
|
|
3892
3892
|
}, ir = function(e, t) {
|
|
3893
3893
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3894
3894
|
}, zi = or(ir("bounce", !0));
|
|
@@ -4653,10 +4653,9 @@ const Hn = [
|
|
|
4653
4653
|
}) => {
|
|
4654
4654
|
const [f, p] = me(!1), [v, I] = me(Vt(5)), K = () => {
|
|
4655
4655
|
r(e);
|
|
4656
|
-
}, Y = async (W, q, se, J,
|
|
4656
|
+
}, Y = async (W, q, se, J, G, oe) => {
|
|
4657
4657
|
try {
|
|
4658
4658
|
if (p(!0), c === "Flex") {
|
|
4659
|
-
console.log(se), console.log(D);
|
|
4660
4659
|
const B = await jr(
|
|
4661
4660
|
{
|
|
4662
4661
|
_id: W,
|
|
@@ -4724,11 +4723,11 @@ const Hn = [
|
|
|
4724
4723
|
}
|
|
4725
4724
|
return p(!1), ut("Download successfully"), H;
|
|
4726
4725
|
}).catch((ee) => {
|
|
4727
|
-
m(ee.
|
|
4726
|
+
console.log("emre"), m(ee.response.data.error.msg);
|
|
4728
4727
|
});
|
|
4729
4728
|
}
|
|
4730
4729
|
} catch (B) {
|
|
4731
|
-
m(B.
|
|
4730
|
+
p(!1), m(B.response.data.error.msg);
|
|
4732
4731
|
}
|
|
4733
4732
|
}, z = async () => {
|
|
4734
4733
|
if (c === "Playable") {
|
|
@@ -5219,31 +5218,31 @@ const es = ({
|
|
|
5219
5218
|
}) => {
|
|
5220
5219
|
const [l, m] = me([]), [g, f] = me([]), [p, v] = me(!1), [I, K] = me(""), [Y, z] = me(!1), W = async (J) => {
|
|
5221
5220
|
v(!0);
|
|
5222
|
-
const
|
|
5221
|
+
const G = await _i(
|
|
5223
5222
|
n,
|
|
5224
5223
|
J,
|
|
5225
5224
|
a
|
|
5226
5225
|
);
|
|
5227
|
-
f(
|
|
5226
|
+
f(G.details), K(G.size), v(!1);
|
|
5228
5227
|
}, q = async (J) => {
|
|
5229
|
-
const
|
|
5228
|
+
const G = [...l];
|
|
5230
5229
|
if (l.includes(J)) {
|
|
5231
|
-
const B =
|
|
5232
|
-
|
|
5230
|
+
const B = G.findIndex((ee) => ee === J);
|
|
5231
|
+
G.splice(B, 1), m(G);
|
|
5233
5232
|
} else
|
|
5234
|
-
A === "Playable" ? (
|
|
5235
|
-
let oe = Wr.filter((B) => [...
|
|
5233
|
+
A === "Playable" ? (G.push(J), m([...l, J])) : (G.splice(0), G.push(J), m([J]));
|
|
5234
|
+
let oe = Wr.filter((B) => [...G].includes(B.id)).map((B) => B.name);
|
|
5236
5235
|
await W(oe);
|
|
5237
5236
|
}, se = async () => {
|
|
5238
5237
|
try {
|
|
5239
5238
|
const J = Wr.filter((H) => [...l].includes(H.id)).map((H) => H.name);
|
|
5240
5239
|
z(!0);
|
|
5241
|
-
const
|
|
5240
|
+
const G = await $i(n, J, a), { url: oe } = G;
|
|
5242
5241
|
let B;
|
|
5243
5242
|
const ee = u + "/" + oe;
|
|
5244
5243
|
B = document.createElement("iframe"), B.setAttribute("src", ee), B.style.display = "none", document.body.appendChild(B), B.click(), z(!1), ut("Multi downloaded completed successfully");
|
|
5245
5244
|
} catch (J) {
|
|
5246
|
-
c(J.
|
|
5245
|
+
c(J.response.data.error.msg), console.error(J);
|
|
5247
5246
|
}
|
|
5248
5247
|
};
|
|
5249
5248
|
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
@@ -5269,8 +5268,8 @@ const es = ({
|
|
|
5269
5268
|
padding: "1.75rem"
|
|
5270
5269
|
},
|
|
5271
5270
|
children: r && Wr.filter((J) => {
|
|
5272
|
-
var
|
|
5273
|
-
return t && ((
|
|
5271
|
+
var G;
|
|
5272
|
+
return t && ((G = t == null ? void 0 : t.networks) == null ? void 0 : G.length) > 0 ? t == null ? void 0 : t.networks.includes(J.name) : e == null ? void 0 : e.networks.includes(J.name);
|
|
5274
5273
|
}).filter(
|
|
5275
5274
|
(J) => J.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
5276
5275
|
).map((J) => /* @__PURE__ */ y.jsx(
|
|
@@ -5353,7 +5352,7 @@ const os = [
|
|
|
5353
5352
|
}) => {
|
|
5354
5353
|
const [l, m] = me(null), [g, f] = me(null), [p, v] = me(null), [I, K] = me(null), [Y, z] = me(!1);
|
|
5355
5354
|
me({});
|
|
5356
|
-
const [W, q] = me(null), [se, J] = me(null), [
|
|
5355
|
+
const [W, q] = me(null), [se, J] = me(null), [G, oe] = me(null), B = async () => {
|
|
5357
5356
|
z(!0);
|
|
5358
5357
|
const S = await ts(e, a);
|
|
5359
5358
|
S != null && S.networks || (S.networks = os), m(S), z(!1);
|
|
@@ -5407,7 +5406,7 @@ const os = [
|
|
|
5407
5406
|
return;
|
|
5408
5407
|
}
|
|
5409
5408
|
} catch (C) {
|
|
5410
|
-
c(C.
|
|
5409
|
+
c(C.response.data.error.msg);
|
|
5411
5410
|
}
|
|
5412
5411
|
}, H = async () => {
|
|
5413
5412
|
z(!0);
|
|
@@ -5447,7 +5446,7 @@ const os = [
|
|
|
5447
5446
|
title: i,
|
|
5448
5447
|
typeOfProduct: n,
|
|
5449
5448
|
fileSize: I,
|
|
5450
|
-
urls: { iosUrl: se, googleUrl:
|
|
5449
|
+
urls: { iosUrl: se, googleUrl: G }
|
|
5451
5450
|
}
|
|
5452
5451
|
),
|
|
5453
5452
|
Y && /* @__PURE__ */ y.jsx(
|
|
@@ -5978,7 +5977,7 @@ Ps.default.subscribe(Fs);
|
|
|
5978
5977
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5979
5978
|
return L && (typeof L == "object" || typeof L == "function") ? L : w;
|
|
5980
5979
|
}
|
|
5981
|
-
function
|
|
5980
|
+
function G(w, L) {
|
|
5982
5981
|
if (typeof L != "function" && L !== null)
|
|
5983
5982
|
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
5984
5983
|
w.prototype = Object.create(L && L.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(w, L) : w.__proto__ = L);
|
|
@@ -5991,7 +5990,7 @@ Ps.default.subscribe(Fs);
|
|
|
5991
5990
|
}, ee = function(L) {
|
|
5992
5991
|
return L.code === "Escape" || L.keyCode === 27;
|
|
5993
5992
|
}, H = 0, R = function(w) {
|
|
5994
|
-
|
|
5993
|
+
G(L, w);
|
|
5995
5994
|
function L(S) {
|
|
5996
5995
|
se(this, L);
|
|
5997
5996
|
var d = J(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, S));
|
|
@@ -6247,7 +6246,7 @@ var Pn = Object.assign || function(e) {
|
|
|
6247
6246
|
return function(t, r, n) {
|
|
6248
6247
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
6249
6248
|
};
|
|
6250
|
-
}(), FA = ne, Ut = St(FA), nu = ba, Ft = St(nu), Au = $t,
|
|
6249
|
+
}(), FA = ne, Ut = St(FA), nu = ba, Ft = St(nu), Au = $t, D = St(Au), au = _s, Vn = St(au), ou = xe, iu = uu(ou), Qe = Ee, Bn = St(Qe), su = tu;
|
|
6251
6250
|
function uu(e) {
|
|
6252
6251
|
if (e && e.__esModule)
|
|
6253
6252
|
return e;
|
|
@@ -6355,44 +6354,44 @@ var ft = function(e) {
|
|
|
6355
6354
|
}]), t;
|
|
6356
6355
|
}(FA.Component);
|
|
6357
6356
|
ft.propTypes = {
|
|
6358
|
-
isOpen:
|
|
6359
|
-
style:
|
|
6360
|
-
content:
|
|
6361
|
-
overlay:
|
|
6357
|
+
isOpen: D.default.bool.isRequired,
|
|
6358
|
+
style: D.default.shape({
|
|
6359
|
+
content: D.default.object,
|
|
6360
|
+
overlay: D.default.object
|
|
6362
6361
|
}),
|
|
6363
|
-
portalClassName:
|
|
6364
|
-
bodyOpenClassName:
|
|
6365
|
-
htmlOpenClassName:
|
|
6366
|
-
className:
|
|
6367
|
-
base:
|
|
6368
|
-
afterOpen:
|
|
6369
|
-
beforeClose:
|
|
6362
|
+
portalClassName: D.default.string,
|
|
6363
|
+
bodyOpenClassName: D.default.string,
|
|
6364
|
+
htmlOpenClassName: D.default.string,
|
|
6365
|
+
className: D.default.oneOfType([D.default.string, D.default.shape({
|
|
6366
|
+
base: D.default.string.isRequired,
|
|
6367
|
+
afterOpen: D.default.string.isRequired,
|
|
6368
|
+
beforeClose: D.default.string.isRequired
|
|
6370
6369
|
})]),
|
|
6371
|
-
overlayClassName:
|
|
6372
|
-
base:
|
|
6373
|
-
afterOpen:
|
|
6374
|
-
beforeClose:
|
|
6370
|
+
overlayClassName: D.default.oneOfType([D.default.string, D.default.shape({
|
|
6371
|
+
base: D.default.string.isRequired,
|
|
6372
|
+
afterOpen: D.default.string.isRequired,
|
|
6373
|
+
beforeClose: D.default.string.isRequired
|
|
6375
6374
|
})]),
|
|
6376
|
-
appElement:
|
|
6377
|
-
onAfterOpen:
|
|
6378
|
-
onRequestClose:
|
|
6379
|
-
closeTimeoutMS:
|
|
6380
|
-
ariaHideApp:
|
|
6381
|
-
shouldFocusAfterRender:
|
|
6382
|
-
shouldCloseOnOverlayClick:
|
|
6383
|
-
shouldReturnFocusAfterClose:
|
|
6384
|
-
preventScroll:
|
|
6385
|
-
parentSelector:
|
|
6386
|
-
aria:
|
|
6387
|
-
data:
|
|
6388
|
-
role:
|
|
6389
|
-
contentLabel:
|
|
6390
|
-
shouldCloseOnEsc:
|
|
6391
|
-
overlayRef:
|
|
6392
|
-
contentRef:
|
|
6393
|
-
id:
|
|
6394
|
-
overlayElement:
|
|
6395
|
-
contentElement:
|
|
6375
|
+
appElement: D.default.oneOfType([D.default.instanceOf(Bn.default), D.default.instanceOf(Qe.SafeHTMLCollection), D.default.instanceOf(Qe.SafeNodeList), D.default.arrayOf(D.default.instanceOf(Bn.default))]),
|
|
6376
|
+
onAfterOpen: D.default.func,
|
|
6377
|
+
onRequestClose: D.default.func,
|
|
6378
|
+
closeTimeoutMS: D.default.number,
|
|
6379
|
+
ariaHideApp: D.default.bool,
|
|
6380
|
+
shouldFocusAfterRender: D.default.bool,
|
|
6381
|
+
shouldCloseOnOverlayClick: D.default.bool,
|
|
6382
|
+
shouldReturnFocusAfterClose: D.default.bool,
|
|
6383
|
+
preventScroll: D.default.bool,
|
|
6384
|
+
parentSelector: D.default.func,
|
|
6385
|
+
aria: D.default.object,
|
|
6386
|
+
data: D.default.object,
|
|
6387
|
+
role: D.default.string,
|
|
6388
|
+
contentLabel: D.default.string,
|
|
6389
|
+
shouldCloseOnEsc: D.default.bool,
|
|
6390
|
+
overlayRef: D.default.func,
|
|
6391
|
+
contentRef: D.default.func,
|
|
6392
|
+
id: D.default.string,
|
|
6393
|
+
overlayElement: D.default.func,
|
|
6394
|
+
contentElement: D.default.func
|
|
6396
6395
|
};
|
|
6397
6396
|
ft.defaultProps = {
|
|
6398
6397
|
isOpen: !1,
|