gearboxdownloadmodal 6.0.50 → 6.0.51
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 -71
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -99,7 +99,7 @@ function ma() {
|
|
|
99
99
|
// with.
|
|
100
100
|
c.$$typeof === X || c.getModuleId !== void 0));
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ae(c, x, k) {
|
|
103
103
|
var U = c.displayName;
|
|
104
104
|
if (U)
|
|
105
105
|
return U;
|
|
@@ -139,7 +139,7 @@ function ma() {
|
|
|
139
139
|
var k = c;
|
|
140
140
|
return P(k._context) + ".Provider";
|
|
141
141
|
case d:
|
|
142
|
-
return
|
|
142
|
+
return ae(c, c.render, "ForwardRef");
|
|
143
143
|
case p:
|
|
144
144
|
var U = c.displayName || null;
|
|
145
145
|
return U !== null ? U : oe(c.type) || "Memo";
|
|
@@ -232,8 +232,8 @@ function ma() {
|
|
|
232
232
|
}
|
|
233
233
|
var te = !1, w;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
w = new
|
|
235
|
+
var ie = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
w = new ie();
|
|
237
237
|
}
|
|
238
238
|
function L(c, x) {
|
|
239
239
|
if (!c || te)
|
|
@@ -1500,7 +1500,7 @@ function Ka() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var g = d, D = u, G = A, W = a, X = t, H = s,
|
|
1503
|
+
var g = d, D = u, G = A, W = a, X = t, H = s, ae = r, P = q, oe = v, E = n, O = i, Y = o, h = p, j = !1;
|
|
1504
1504
|
function re(L) {
|
|
1505
1505
|
return j || (j = !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) || M(L) === d;
|
|
1506
1506
|
}
|
|
@@ -1537,10 +1537,10 @@ function Ka() {
|
|
|
1537
1537
|
function w(L) {
|
|
1538
1538
|
return M(L) === o;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function ie(L) {
|
|
1541
1541
|
return M(L) === p;
|
|
1542
1542
|
}
|
|
1543
|
-
me.AsyncMode = g, me.ConcurrentMode = D, me.ContextConsumer = G, me.ContextProvider = W, me.Element = X, me.ForwardRef = H, me.Fragment =
|
|
1543
|
+
me.AsyncMode = g, me.ConcurrentMode = D, me.ContextConsumer = G, me.ContextProvider = W, me.Element = X, me.ForwardRef = H, me.Fragment = ae, me.Lazy = P, me.Memo = oe, me.Portal = E, me.Profiler = O, me.StrictMode = Y, me.Suspense = h, me.isAsyncMode = re, me.isConcurrentMode = b, me.isContextConsumer = K, me.isContextProvider = R, me.isElement = z, me.isForwardRef = J, me.isFragment = V, me.isLazy = Q, me.isMemo = T, me.isPortal = B, me.isProfiler = te, me.isStrictMode = w, me.isSuspense = ie, me.isValidElementType = S, me.typeOf = M;
|
|
1544
1544
|
}()), me;
|
|
1545
1545
|
}
|
|
1546
1546
|
var Hr;
|
|
@@ -1717,8 +1717,8 @@ function Wa() {
|
|
|
1717
1717
|
function f(b) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
1719
|
var K = {}, R = 0;
|
|
1720
|
-
function z(V, Q, T, B, te, w,
|
|
1721
|
-
if (B = B || C, w = w || T,
|
|
1720
|
+
function z(V, Q, T, B, te, w, ie) {
|
|
1721
|
+
if (B = B || C, w = w || T, ie !== n) {
|
|
1722
1722
|
if (d) {
|
|
1723
1723
|
var L = new Error(
|
|
1724
1724
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -1813,7 +1813,7 @@ function Wa() {
|
|
|
1813
1813
|
for (var T = R[z], B = 0; B < b.length; B++)
|
|
1814
1814
|
if (q(T, b[B]))
|
|
1815
1815
|
return null;
|
|
1816
|
-
var te = JSON.stringify(b, function(
|
|
1816
|
+
var te = JSON.stringify(b, function(ie, L) {
|
|
1817
1817
|
var ne = h(L);
|
|
1818
1818
|
return ne === "symbol" ? String(L) : L;
|
|
1819
1819
|
});
|
|
@@ -1850,7 +1850,7 @@ function Wa() {
|
|
|
1850
1850
|
}
|
|
1851
1851
|
function z(J, V, Q, T, B) {
|
|
1852
1852
|
for (var te = [], w = 0; w < b.length; w++) {
|
|
1853
|
-
var
|
|
1853
|
+
var ie = b[w], L = ie(J, V, Q, T, B, n);
|
|
1854
1854
|
if (L == null)
|
|
1855
1855
|
return null;
|
|
1856
1856
|
L.data && r(L.data, "expectedType") && te.push(L.data.expectedType);
|
|
@@ -1866,7 +1866,7 @@ function Wa() {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
return f(b);
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function ae(b, K, R, z, J) {
|
|
1870
1870
|
return new m(
|
|
1871
1871
|
(b || "React class") + ": " + K + " type `" + R + "." + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`."
|
|
1872
1872
|
);
|
|
@@ -1879,10 +1879,10 @@ function Wa() {
|
|
|
1879
1879
|
for (var te in b) {
|
|
1880
1880
|
var w = b[te];
|
|
1881
1881
|
if (typeof w != "function")
|
|
1882
|
-
return
|
|
1883
|
-
var
|
|
1884
|
-
if (
|
|
1885
|
-
return
|
|
1882
|
+
return ae(J, V, Q, te, h(w));
|
|
1883
|
+
var ie = w(T, te, J, V, Q + "." + te, n);
|
|
1884
|
+
if (ie)
|
|
1885
|
+
return ie;
|
|
1886
1886
|
}
|
|
1887
1887
|
return null;
|
|
1888
1888
|
}
|
|
@@ -1895,15 +1895,15 @@ function Wa() {
|
|
|
1895
1895
|
return new m("Invalid " + V + " `" + Q + "` of type `" + B + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
1896
1896
|
var te = t({}, R[z], b);
|
|
1897
1897
|
for (var w in te) {
|
|
1898
|
-
var
|
|
1899
|
-
if (r(b, w) && typeof
|
|
1900
|
-
return
|
|
1901
|
-
if (!
|
|
1898
|
+
var ie = b[w];
|
|
1899
|
+
if (r(b, w) && typeof ie != "function")
|
|
1900
|
+
return ae(J, V, Q, w, h(ie));
|
|
1901
|
+
if (!ie)
|
|
1902
1902
|
return new m(
|
|
1903
1903
|
"Invalid " + V + " `" + Q + "` key `" + w + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(R[z], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var L =
|
|
1906
|
+
var L = ie(T, w, J, V, Q + "." + w, n);
|
|
1907
1907
|
if (L)
|
|
1908
1908
|
return L;
|
|
1909
1909
|
}
|
|
@@ -3892,10 +3892,10 @@ function Ss(e) {
|
|
|
3892
3892
|
const j = { theme: oe, type: E };
|
|
3893
3893
|
return Y === !1 || (Ke(Y) ? h = Y(j) : yt(Y) ? h = Pn(Y, j) : ut(Y) || Lt(Y) ? h = Y : O ? h = Rn.spinner() : ((re) => re in Rn)(E) && (h = Rn[E](j))), h;
|
|
3894
3894
|
}(W), Ke(y.onOpen) && (W.onOpen = y.onOpen), Ke(y.onClose) && (W.onClose = y.onClose), W.closeButton = g.closeButton, y.closeButton === !1 || Dn(y.closeButton) ? W.closeButton = y.closeButton : y.closeButton === !0 && (W.closeButton = !Dn(g.closeButton) || g.closeButton);
|
|
3895
|
-
let
|
|
3896
|
-
yt(v) && !ut(v.type) ?
|
|
3897
|
-
C(
|
|
3898
|
-
}, m) : C(
|
|
3895
|
+
let ae = v;
|
|
3896
|
+
yt(v) && !ut(v.type) ? ae = Pn(v, { closeToast: D, toastProps: W, data: M }) : Ke(v) && (ae = v({ closeToast: D, toastProps: W, data: M })), g.limit && g.limit > 0 && A.count > g.limit && G ? A.queue.push({ toastContent: ae, toastProps: W, staleId: f }) : Lt(m) ? setTimeout(() => {
|
|
3897
|
+
C(ae, W, f);
|
|
3898
|
+
}, m) : C(ae, W, f);
|
|
3899
3899
|
}
|
|
3900
3900
|
function C(v, q, m) {
|
|
3901
3901
|
const { toastId: f } = q;
|
|
@@ -3984,9 +3984,9 @@ function Ws(e) {
|
|
|
3984
3984
|
} });
|
|
3985
3985
|
}
|
|
3986
3986
|
const Es = (e) => {
|
|
3987
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = Ms(e), { closeButton: i, children: a, autoClose: A, onClick: d, type: u, hideProgressBar: s, closeToast: p, transition: C, position: v, className: q, style: m, bodyClassName: f, bodyStyle: y, progressClassName: Z, progressStyle: S, updateId: M, role: g, progress: D, rtl: G, toastId: W, deleteToast: X, isIn: H, isLoading:
|
|
3987
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = Ms(e), { closeButton: i, children: a, autoClose: A, onClick: d, type: u, hideProgressBar: s, closeToast: p, transition: C, position: v, className: q, style: m, bodyClassName: f, bodyStyle: y, progressClassName: Z, progressStyle: S, updateId: M, role: g, progress: D, rtl: G, toastId: W, deleteToast: X, isIn: H, isLoading: ae, iconOut: P, closeOnClick: oe, theme: E } = e, O = $e("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": G }, { "Toastify__toast--close-on-click": oe }), Y = Ke(q) ? q({ rtl: G, position: v, type: u, defaultClassName: O }) : $e(O, q), h = !!D || !A, j = { closeToast: p, type: u, theme: E };
|
|
3988
3988
|
let re = null;
|
|
3989
|
-
return i === !1 || (re = Ke(i) ? i(j) : yt(i) ? Pn(i, j) : yi(j)), ue.createElement(C, { isIn: H, done: X, position: v, preventExitTransition: n, nodeRef: r }, ue.createElement("div", { id: W, onClick: d, className: Y, ...o, style: m, ref: r }, ue.createElement("div", { ...H && { role: g }, className: Ke(f) ? f({ type: u }) : $e("Toastify__toast-body", f), style: y }, P != null && ue.createElement("div", { className: $e("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !
|
|
3989
|
+
return i === !1 || (re = Ke(i) ? i(j) : yt(i) ? Pn(i, j) : yi(j)), ue.createElement(C, { isIn: H, done: X, position: v, preventExitTransition: n, nodeRef: r }, ue.createElement("div", { id: W, onClick: d, className: Y, ...o, style: m, ref: r }, ue.createElement("div", { ...H && { role: g }, className: Ke(f) ? f({ type: u }) : $e("Toastify__toast-body", f), style: y }, P != null && ue.createElement("div", { className: $e("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, P), ue.createElement("div", null, a)), re, ue.createElement(Ws, { ...M && !h ? { key: `pb-${M}` } : {}, rtl: G, theme: E, delay: A, isRunning: t, isIn: H, closeToast: p, hide: s, type: u, style: S, className: Z, controlledProgress: h, progress: D || 0 })));
|
|
3990
3990
|
}, Zn = function(e, t) {
|
|
3991
3991
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3992
3992
|
}, Ls = Cn(Zn("bounce", !0));
|
|
@@ -5863,7 +5863,7 @@ const $s = ({
|
|
|
5863
5863
|
generateCDN: W,
|
|
5864
5864
|
cdnUrl: X
|
|
5865
5865
|
}) => {
|
|
5866
|
-
const [H,
|
|
5866
|
+
const [H, ae] = F(!1), [P, oe] = F(""), [E, O] = F(!1), [Y, h] = F(!1), [j, re] = F(!1), [b, K] = F("download"), [R, z] = F(!1), [J, V] = F(!1), [Q, T] = F(!1);
|
|
5867
5867
|
let B = {
|
|
5868
5868
|
aarki: "html,copy",
|
|
5869
5869
|
adcolony: "copy,html",
|
|
@@ -5913,7 +5913,7 @@ const $s = ({
|
|
|
5913
5913
|
adikteev: "Copy CDN"
|
|
5914
5914
|
}, w = () => {
|
|
5915
5915
|
n(e);
|
|
5916
|
-
},
|
|
5916
|
+
}, ie = async (N, ee) => {
|
|
5917
5917
|
const ge = {
|
|
5918
5918
|
molocoGenerateHtml: !1,
|
|
5919
5919
|
urlType: D
|
|
@@ -5922,11 +5922,11 @@ const $s = ({
|
|
|
5922
5922
|
G(!0), await W(!0);
|
|
5923
5923
|
return;
|
|
5924
5924
|
}
|
|
5925
|
-
return N === "adikteev" && (ee = "copy"),
|
|
5925
|
+
return N === "adikteev" && (ee = "copy"), ae(!0), new Promise((pt, Ue) => {
|
|
5926
5926
|
Yt(u, N, v, ee, g, ge).then((nt) => {
|
|
5927
|
-
|
|
5927
|
+
ae(!1), pt(nt), V(!1), z(!1);
|
|
5928
5928
|
}).catch((nt) => {
|
|
5929
|
-
|
|
5929
|
+
ae(!1), p(nt.message, nt), Ue(nt), V(!1), z(!1);
|
|
5930
5930
|
});
|
|
5931
5931
|
});
|
|
5932
5932
|
}, L = async (N = !1) => {
|
|
@@ -6079,7 +6079,7 @@ const $s = ({
|
|
|
6079
6079
|
} else {
|
|
6080
6080
|
oe("download");
|
|
6081
6081
|
const ee = v.iosUrl, ge = v.googleUrl;
|
|
6082
|
-
o === "cdn" && f && f.willSpendCredit && !X || o !== "cdn" && f && f.willSpendCredit ? (m(!0), K("download"), O(!0)) : ["Playable", "Flex"].includes(d) && (!ee || !ge) || d === "Ready" && D === "single" && !ee || d === "Ready" && D === "multi" && (!ee || !ge) ? (m(!0), h(!0)) : (h(!1), O(!1), await
|
|
6082
|
+
o === "cdn" && f && f.willSpendCredit && !X || o !== "cdn" && f && f.willSpendCredit ? (m(!0), K("download"), O(!0)) : ["Playable", "Flex"].includes(d) && (!ee || !ge) || d === "Ready" && D === "single" && !ee || d === "Ready" && D === "multi" && (!ee || !ge) ? (m(!0), h(!0)) : (h(!1), O(!1), await ie(o, "download"));
|
|
6083
6083
|
}
|
|
6084
6084
|
},
|
|
6085
6085
|
children: _ ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -6132,7 +6132,7 @@ const $s = ({
|
|
|
6132
6132
|
onClickDonwload: async (N) => {
|
|
6133
6133
|
N.stopPropagation(), oe("copyLink");
|
|
6134
6134
|
const ee = v.iosUrl, ge = v.googleUrl;
|
|
6135
|
-
f && (f != null && f.willSpendCredit) ? (K("copy"), m(!0), O(!0)) : d !== "Import" && (!ee || !ge) ? (m(!0), h(!0)) : (O(!1), h(!1), await
|
|
6135
|
+
f && (f != null && f.willSpendCredit) ? (K("copy"), m(!0), O(!0)) : d !== "Import" && (!ee || !ge) ? (m(!0), h(!0)) : (O(!1), h(!1), await ie(o, "copy"));
|
|
6136
6136
|
},
|
|
6137
6137
|
disabled: Z,
|
|
6138
6138
|
children: /* @__PURE__ */ l.jsx(Xo, { className: "h-6 w-6 stroke-dark-full" })
|
|
@@ -6194,10 +6194,10 @@ const $s = ({
|
|
|
6194
6194
|
{
|
|
6195
6195
|
creditConfirmType: b,
|
|
6196
6196
|
handleCopyLink: async () => {
|
|
6197
|
-
h(!1), m(!1), await
|
|
6197
|
+
h(!1), m(!1), await ie(o, "copy");
|
|
6198
6198
|
},
|
|
6199
6199
|
download: async () => {
|
|
6200
|
-
h(!1), m(!1), await
|
|
6200
|
+
h(!1), m(!1), await ie(o, "download");
|
|
6201
6201
|
},
|
|
6202
6202
|
onClose: () => {
|
|
6203
6203
|
O(!1), m(!1);
|
|
@@ -6215,10 +6215,10 @@ const $s = ({
|
|
|
6215
6215
|
googleLink: v.googleUrl,
|
|
6216
6216
|
buttonType: P,
|
|
6217
6217
|
handleCopyLink: async () => {
|
|
6218
|
-
h(!1), m(!1), await
|
|
6218
|
+
h(!1), m(!1), await ie(o, "copy");
|
|
6219
6219
|
},
|
|
6220
6220
|
download: async () => {
|
|
6221
|
-
h(!1), m(!1), await
|
|
6221
|
+
h(!1), m(!1), await ie(o, "download");
|
|
6222
6222
|
},
|
|
6223
6223
|
typeOfProduct: d,
|
|
6224
6224
|
urlType: D
|
|
@@ -6911,12 +6911,12 @@ const fo = (e, t) => e.unstable_is ? e.unstable_is(t) : t === e, ho = (e) => "in
|
|
|
6911
6911
|
}, a = (m) => _t(i(void 0, m)), A = (m, f) => {
|
|
6912
6912
|
const y = (G) => {
|
|
6913
6913
|
var W, X;
|
|
6914
|
-
const H = n(G),
|
|
6914
|
+
const H = n(G), ae = new Set((W = H.m) == null ? void 0 : W.t);
|
|
6915
6915
|
for (const P of H.p)
|
|
6916
|
-
|
|
6916
|
+
ae.add(P);
|
|
6917
6917
|
return (X = dl(m, G)) == null || X.forEach((P) => {
|
|
6918
|
-
|
|
6919
|
-
}),
|
|
6918
|
+
ae.add(P);
|
|
6919
|
+
}), ae;
|
|
6920
6920
|
}, Z = [], S = /* @__PURE__ */ new Set(), M = (G) => {
|
|
6921
6921
|
if (!S.has(G)) {
|
|
6922
6922
|
S.add(G);
|
|
@@ -6929,13 +6929,13 @@ const fo = (e, t) => e.unstable_is ? e.unstable_is(t) : t === e, ho = (e) => "in
|
|
|
6929
6929
|
const g = /* @__PURE__ */ new Set([f]), D = (G) => S.has(G);
|
|
6930
6930
|
for (let G = Z.length - 1; G >= 0; --G) {
|
|
6931
6931
|
const W = Z[G], X = n(W), H = X.n;
|
|
6932
|
-
let
|
|
6932
|
+
let ae = !1;
|
|
6933
6933
|
for (const P of X.d.keys())
|
|
6934
6934
|
if (P !== W && g.has(P)) {
|
|
6935
|
-
|
|
6935
|
+
ae = !0;
|
|
6936
6936
|
break;
|
|
6937
6937
|
}
|
|
6938
|
-
|
|
6938
|
+
ae && (i(m, W, D), s(m, W, X), H !== X.n && (vo(m, W, X), g.add(W))), S.delete(W);
|
|
6939
6939
|
}
|
|
6940
6940
|
}, d = (m, f, ...y) => {
|
|
6941
6941
|
const Z = (g) => _t(i(m, g)), S = (g, ...D) => {
|
|
@@ -6943,8 +6943,8 @@ const fo = (e, t) => e.unstable_is ? e.unstable_is(t) : t === e, ho = (e) => "in
|
|
|
6943
6943
|
if (fo(f, g)) {
|
|
6944
6944
|
if (!ho(g))
|
|
6945
6945
|
throw new Error("atom not writable");
|
|
6946
|
-
const W = n(g), X = "v" in W, H = W.v,
|
|
6947
|
-
r(g, W,
|
|
6946
|
+
const W = n(g), X = "v" in W, H = W.v, ae = D[0];
|
|
6947
|
+
r(g, W, ae), s(m, g, W), (!X || !Object.is(H, W.v)) && (vo(m, g, W), A(m, g));
|
|
6948
6948
|
} else
|
|
6949
6949
|
G = d(m, g, ...D);
|
|
6950
6950
|
return gt(m), G;
|
|
@@ -7241,7 +7241,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7241
7241
|
cdnUrl: S,
|
|
7242
7242
|
setCdnUrl: M
|
|
7243
7243
|
}) => {
|
|
7244
|
-
const [g, D] = F([]), [G, W] = F([]), [X, H] = F(!1), [
|
|
7244
|
+
const [g, D] = F([]), [G, W] = F([]), [X, H] = F(!1), [ae, P] = F(""), [oe, E] = F(!1), [O, Y] = F(!1), [h, j] = F("download"), [re, b] = F(!1), [K, R] = F(!1), [z, J] = F(!1), [V, Q] = un(Ki), [T, B] = un(Si), te = async (ne = !1) => {
|
|
7245
7245
|
ne && S || z || (J(!0), Yt(r, "cdn", u, null, !1, {}).then((_) => {
|
|
7246
7246
|
M(_.url), J(!1);
|
|
7247
7247
|
}).catch((_) => {
|
|
@@ -7255,7 +7255,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7255
7255
|
} else
|
|
7256
7256
|
_.push(ne), D([...g, ne]);
|
|
7257
7257
|
Ut.filter((N) => [..._].includes(N.id)).map((N) => N.name);
|
|
7258
|
-
},
|
|
7258
|
+
}, ie = async () => new Promise(async (ne, _) => {
|
|
7259
7259
|
const N = Ut.filter((ee) => [...g].includes(ee.id)).map((ee) => ee.name);
|
|
7260
7260
|
E(!0), zs(r, u, N, { urlType: m }).then((ee) => {
|
|
7261
7261
|
E(!1), ne(ee);
|
|
@@ -7263,7 +7263,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7263
7263
|
console.log("get multi download err"), E(!1), A(ee.message, ee), _(ee);
|
|
7264
7264
|
});
|
|
7265
7265
|
}), L = async () => {
|
|
7266
|
-
u.iosUrl, u.googleUrl, t && t.willSpendCredit ? (Y(!0), j("download"), b(!0)) : (b(!1), await
|
|
7266
|
+
u.iosUrl, u.googleUrl, t && t.willSpendCredit ? (Y(!0), j("download"), b(!0)) : (b(!1), await ie());
|
|
7267
7267
|
};
|
|
7268
7268
|
return be(() => {
|
|
7269
7269
|
const ne = Ut.filter((_) => {
|
|
@@ -7357,7 +7357,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7357
7357
|
tl,
|
|
7358
7358
|
{
|
|
7359
7359
|
onClickMultiDownload: L,
|
|
7360
|
-
networksVersionTotalSize:
|
|
7360
|
+
networksVersionTotalSize: ae,
|
|
7361
7361
|
typeOfProduct: o,
|
|
7362
7362
|
multiDownloading: oe
|
|
7363
7363
|
}
|
|
@@ -7420,7 +7420,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7420
7420
|
handleCopyLink: async () => {
|
|
7421
7421
|
},
|
|
7422
7422
|
download: async () => {
|
|
7423
|
-
b(!1), Y(!1), await
|
|
7423
|
+
b(!1), Y(!1), await ie();
|
|
7424
7424
|
},
|
|
7425
7425
|
onClose: () => {
|
|
7426
7426
|
b(!1), Y(!1);
|
|
@@ -7506,7 +7506,7 @@ const Ml = ({
|
|
|
7506
7506
|
urlType: y,
|
|
7507
7507
|
setUrlType: Z
|
|
7508
7508
|
}) => {
|
|
7509
|
-
const [S, M] = F(null), [g, D] = F(null), [G, W] = F(null), [X, H] = F(!1), [
|
|
7509
|
+
const [S, M] = F(null), [g, D] = F(null), [G, W] = F(null), [X, H] = F(!1), [ae, P] = F(!0), [oe, E] = F(window.innerWidth), [O, Y] = F(!1), [h, j] = F(!1), [re, b] = F("");
|
|
7510
7510
|
un(Ki), un(Si), be(() => {
|
|
7511
7511
|
!re && r !== "Fusion" && Js(t).then((w) => {
|
|
7512
7512
|
w != null && w.exist && b(w.uploadPath);
|
|
@@ -7526,15 +7526,15 @@ const Ml = ({
|
|
|
7526
7526
|
H(!0);
|
|
7527
7527
|
const w = await rr(e, i);
|
|
7528
7528
|
return w != null && w.networks || (w.networks = Sl), M(w), w;
|
|
7529
|
-
}, J = (w,
|
|
7529
|
+
}, J = (w, ie) => {
|
|
7530
7530
|
clearTimeout(Co), Co = setTimeout(() => {
|
|
7531
|
-
Ir(t, { iosUrl: w, googleUrl:
|
|
7531
|
+
Ir(t, { iosUrl: w, googleUrl: ie }, { urlType: y });
|
|
7532
7532
|
}, 1e3);
|
|
7533
7533
|
}, V = (w) => {
|
|
7534
7534
|
m(w), J(w, q);
|
|
7535
7535
|
}, Q = (w) => {
|
|
7536
7536
|
f(w), J(v, w);
|
|
7537
|
-
}, T = async (w,
|
|
7537
|
+
}, T = async (w, ie) => {
|
|
7538
7538
|
var L, ne;
|
|
7539
7539
|
try {
|
|
7540
7540
|
let _;
|
|
@@ -7548,8 +7548,8 @@ const Ml = ({
|
|
|
7548
7548
|
m(w.iosUrl), f(w.googleUrl), H(!1);
|
|
7549
7549
|
return;
|
|
7550
7550
|
}
|
|
7551
|
-
if (
|
|
7552
|
-
let ee = await fetch(u + "/" +
|
|
7551
|
+
if (ie && ie.html) {
|
|
7552
|
+
let ee = await fetch(u + "/" + ie.html).then(
|
|
7553
7553
|
(Ue) => Ue.text()
|
|
7554
7554
|
);
|
|
7555
7555
|
const ge = ((L = ee.match(
|
|
@@ -7589,17 +7589,17 @@ const Ml = ({
|
|
|
7589
7589
|
o || (M(null), D(null), W(null), p(null)), o && (r === "Playable" ? (z().then((w) => {
|
|
7590
7590
|
T(null, w);
|
|
7591
7591
|
}), P(!1)) : r === "Ready" ? B().then((w) => {
|
|
7592
|
-
z().then((
|
|
7593
|
-
T(null,
|
|
7592
|
+
z().then((ie) => {
|
|
7593
|
+
T(null, ie), P(!1);
|
|
7594
7594
|
});
|
|
7595
7595
|
}) : r === "Flex" ? B().then((w) => {
|
|
7596
|
-
P(!1), te().then((
|
|
7597
|
-
o && (T(
|
|
7596
|
+
P(!1), te().then((ie) => {
|
|
7597
|
+
o && (T(ie, null), P(!1), D(ie));
|
|
7598
7598
|
});
|
|
7599
7599
|
}) : r === "Import" ? xl(t, i).then((w) => {
|
|
7600
7600
|
M(w), m(w.iosUrl || ""), f(w.googleUrl || ""), H(!1), P(!1);
|
|
7601
7601
|
}) : r === "Fusion" && (P(!1), te().then((w) => {
|
|
7602
|
-
o && (T(w, null), P(!1), w.networks = Qn, D(w));
|
|
7602
|
+
o && (T(w, null), P(!1), w.networks = Qn.filter((ie) => ie !== "cdn"), D(w));
|
|
7603
7603
|
})));
|
|
7604
7604
|
}, [n, e, t, o]), /* @__PURE__ */ l.jsxs(
|
|
7605
7605
|
"div",
|
|
@@ -7624,7 +7624,7 @@ const Ml = ({
|
|
|
7624
7624
|
urls: { iosUrl: v, googleUrl: q },
|
|
7625
7625
|
handleIosChange: V,
|
|
7626
7626
|
handleGoogleChange: Q,
|
|
7627
|
-
disabled:
|
|
7627
|
+
disabled: ae,
|
|
7628
7628
|
api: i,
|
|
7629
7629
|
creditDownload: G,
|
|
7630
7630
|
user: a,
|
|
@@ -7663,7 +7663,7 @@ const Ml = ({
|
|
|
7663
7663
|
urls: { iosUrl: v, googleUrl: q },
|
|
7664
7664
|
game: g,
|
|
7665
7665
|
getDownloadCount: B,
|
|
7666
|
-
disabled:
|
|
7666
|
+
disabled: ae,
|
|
7667
7667
|
setSafariCopyLink: C,
|
|
7668
7668
|
isTest: O,
|
|
7669
7669
|
urlType: y,
|
|
@@ -8183,7 +8183,7 @@ fu.default.subscribe(yu);
|
|
|
8183
8183
|
content: "ReactModal__Content"
|
|
8184
8184
|
}, H = function(O) {
|
|
8185
8185
|
return O.code === "Tab" || O.keyCode === 9;
|
|
8186
|
-
},
|
|
8186
|
+
}, ae = function(O) {
|
|
8187
8187
|
return O.code === "Escape" || O.keyCode === 27;
|
|
8188
8188
|
}, P = 0, oe = function(E) {
|
|
8189
8189
|
W(O, E);
|
|
@@ -8223,7 +8223,7 @@ fu.default.subscribe(yu);
|
|
|
8223
8223
|
closesAt: null
|
|
8224
8224
|
}, h.afterClose);
|
|
8225
8225
|
}, h.handleKeyDown = function(j) {
|
|
8226
|
-
H(j) && (0, p.default)(h.content, j), h.props.shouldCloseOnEsc &&
|
|
8226
|
+
H(j) && (0, p.default)(h.content, j), h.props.shouldCloseOnEsc && ae(j) && (j.stopPropagation(), h.requestClose(j));
|
|
8227
8227
|
}, h.handleOverlayOnClick = function(j) {
|
|
8228
8228
|
h.shouldClose === null && (h.shouldClose = !0), h.shouldClose && h.props.shouldCloseOnOverlayClick && (h.ownerHandlesClose() ? h.requestClose(j) : h.focusContent()), h.shouldClose = null;
|
|
8229
8229
|
}, h.handleContentOnMouseUp = function() {
|
|
@@ -8918,7 +8918,7 @@ const cr = /* @__PURE__ */ ua(zu), Yu = ({ width: e, height: t, fill: n }) => /*
|
|
|
8918
8918
|
copyLinkUrl: v,
|
|
8919
8919
|
fusionData: q
|
|
8920
8920
|
}) => {
|
|
8921
|
-
const [m, f] = F(window.innerWidth), [y, Z] = F(!1), [S, M] = F(s), [g, D] = F(!1), [G, W] = F(!0), [X, H] = F(null), [
|
|
8921
|
+
const [m, f] = F(window.innerWidth), [y, Z] = F(!1), [S, M] = F(s), [g, D] = F(!1), [G, W] = F(!0), [X, H] = F(null), [ae, P] = F(""), [oe, E] = F("Loading..."), [O, Y] = F("Loading..."), [h, j] = F("game");
|
|
8922
8922
|
Ys(a, A, P, C, q);
|
|
8923
8923
|
const re = async () => {
|
|
8924
8924
|
Yt(n, "preview", null, null, !1).then((b) => {
|
|
@@ -9141,13 +9141,13 @@ const cr = /* @__PURE__ */ ua(zu), Yu = ({ width: e, height: t, fill: n }) => /*
|
|
|
9141
9141
|
)
|
|
9142
9142
|
] }),
|
|
9143
9143
|
/* @__PURE__ */ l.jsx(nr, {}),
|
|
9144
|
-
|
|
9144
|
+
ae && /* @__PURE__ */ l.jsx(
|
|
9145
9145
|
Nu,
|
|
9146
9146
|
{
|
|
9147
9147
|
onClose: () => {
|
|
9148
|
-
Ct(
|
|
9148
|
+
Ct(ae), P("");
|
|
9149
9149
|
},
|
|
9150
|
-
url:
|
|
9150
|
+
url: ae
|
|
9151
9151
|
}
|
|
9152
9152
|
),
|
|
9153
9153
|
/* @__PURE__ */ l.jsx(
|