gearboxdownloadmodal 6.0.49 → 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 +85 -74
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/insights.svg +14 -14
- package/dist/src/services/fusion.d.ts +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
|
}
|
|
@@ -3731,13 +3731,15 @@ async function Zs(e, t, n) {
|
|
|
3731
3731
|
networks: t
|
|
3732
3732
|
})).data;
|
|
3733
3733
|
}
|
|
3734
|
-
async function Is(e, t, n, r, o, i) {
|
|
3734
|
+
async function Is(e, t, n, r, o, i, a, A) {
|
|
3735
3735
|
return (await ve.post(e + "/createFusionVersionLink", {
|
|
3736
3736
|
_id: t,
|
|
3737
3737
|
network: n,
|
|
3738
3738
|
fusionData: r,
|
|
3739
3739
|
isPfTest: o,
|
|
3740
|
-
extras: i
|
|
3740
|
+
extras: i,
|
|
3741
|
+
androidLink: a,
|
|
3742
|
+
iosLink: A
|
|
3741
3743
|
})).data;
|
|
3742
3744
|
}
|
|
3743
3745
|
async function ws(e, t) {
|
|
@@ -3890,10 +3892,10 @@ function Ss(e) {
|
|
|
3890
3892
|
const j = { theme: oe, type: E };
|
|
3891
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;
|
|
3892
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);
|
|
3893
|
-
let
|
|
3894
|
-
yt(v) && !ut(v.type) ?
|
|
3895
|
-
C(
|
|
3896
|
-
}, 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);
|
|
3897
3899
|
}
|
|
3898
3900
|
function C(v, q, m) {
|
|
3899
3901
|
const { toastId: f } = q;
|
|
@@ -3982,9 +3984,9 @@ function Ws(e) {
|
|
|
3982
3984
|
} });
|
|
3983
3985
|
}
|
|
3984
3986
|
const Es = (e) => {
|
|
3985
|
-
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 };
|
|
3986
3988
|
let re = null;
|
|
3987
|
-
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 })));
|
|
3988
3990
|
}, Zn = function(e, t) {
|
|
3989
3991
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3990
3992
|
}, Ls = Cn(Zn("bounce", !0));
|
|
@@ -4162,7 +4164,16 @@ async function Yt(e, t, n, r = "download", o = !1, i = null) {
|
|
|
4162
4164
|
}).catch((u) => {
|
|
4163
4165
|
let s = u.response.data.error.msg;
|
|
4164
4166
|
A({ message: s });
|
|
4165
|
-
}) : Je === "Fusion" && Is(
|
|
4167
|
+
}) : Je === "Fusion" && Is(
|
|
4168
|
+
Me,
|
|
4169
|
+
e,
|
|
4170
|
+
t,
|
|
4171
|
+
Ci,
|
|
4172
|
+
o,
|
|
4173
|
+
i,
|
|
4174
|
+
n == null ? void 0 : n.googleUrl,
|
|
4175
|
+
n == null ? void 0 : n.iosUrl
|
|
4176
|
+
).then(async (u) => {
|
|
4166
4177
|
let s = u.url;
|
|
4167
4178
|
await d(s), a(u);
|
|
4168
4179
|
}).catch((u) => {
|
|
@@ -5852,7 +5863,7 @@ const $s = ({
|
|
|
5852
5863
|
generateCDN: W,
|
|
5853
5864
|
cdnUrl: X
|
|
5854
5865
|
}) => {
|
|
5855
|
-
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);
|
|
5856
5867
|
let B = {
|
|
5857
5868
|
aarki: "html,copy",
|
|
5858
5869
|
adcolony: "copy,html",
|
|
@@ -5902,7 +5913,7 @@ const $s = ({
|
|
|
5902
5913
|
adikteev: "Copy CDN"
|
|
5903
5914
|
}, w = () => {
|
|
5904
5915
|
n(e);
|
|
5905
|
-
},
|
|
5916
|
+
}, ie = async (N, ee) => {
|
|
5906
5917
|
const ge = {
|
|
5907
5918
|
molocoGenerateHtml: !1,
|
|
5908
5919
|
urlType: D
|
|
@@ -5911,11 +5922,11 @@ const $s = ({
|
|
|
5911
5922
|
G(!0), await W(!0);
|
|
5912
5923
|
return;
|
|
5913
5924
|
}
|
|
5914
|
-
return N === "adikteev" && (ee = "copy"),
|
|
5925
|
+
return N === "adikteev" && (ee = "copy"), ae(!0), new Promise((pt, Ue) => {
|
|
5915
5926
|
Yt(u, N, v, ee, g, ge).then((nt) => {
|
|
5916
|
-
|
|
5927
|
+
ae(!1), pt(nt), V(!1), z(!1);
|
|
5917
5928
|
}).catch((nt) => {
|
|
5918
|
-
|
|
5929
|
+
ae(!1), p(nt.message, nt), Ue(nt), V(!1), z(!1);
|
|
5919
5930
|
});
|
|
5920
5931
|
});
|
|
5921
5932
|
}, L = async (N = !1) => {
|
|
@@ -6068,7 +6079,7 @@ const $s = ({
|
|
|
6068
6079
|
} else {
|
|
6069
6080
|
oe("download");
|
|
6070
6081
|
const ee = v.iosUrl, ge = v.googleUrl;
|
|
6071
|
-
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"));
|
|
6072
6083
|
}
|
|
6073
6084
|
},
|
|
6074
6085
|
children: _ ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -6121,7 +6132,7 @@ const $s = ({
|
|
|
6121
6132
|
onClickDonwload: async (N) => {
|
|
6122
6133
|
N.stopPropagation(), oe("copyLink");
|
|
6123
6134
|
const ee = v.iosUrl, ge = v.googleUrl;
|
|
6124
|
-
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"));
|
|
6125
6136
|
},
|
|
6126
6137
|
disabled: Z,
|
|
6127
6138
|
children: /* @__PURE__ */ l.jsx(Xo, { className: "h-6 w-6 stroke-dark-full" })
|
|
@@ -6183,10 +6194,10 @@ const $s = ({
|
|
|
6183
6194
|
{
|
|
6184
6195
|
creditConfirmType: b,
|
|
6185
6196
|
handleCopyLink: async () => {
|
|
6186
|
-
h(!1), m(!1), await
|
|
6197
|
+
h(!1), m(!1), await ie(o, "copy");
|
|
6187
6198
|
},
|
|
6188
6199
|
download: async () => {
|
|
6189
|
-
h(!1), m(!1), await
|
|
6200
|
+
h(!1), m(!1), await ie(o, "download");
|
|
6190
6201
|
},
|
|
6191
6202
|
onClose: () => {
|
|
6192
6203
|
O(!1), m(!1);
|
|
@@ -6204,10 +6215,10 @@ const $s = ({
|
|
|
6204
6215
|
googleLink: v.googleUrl,
|
|
6205
6216
|
buttonType: P,
|
|
6206
6217
|
handleCopyLink: async () => {
|
|
6207
|
-
h(!1), m(!1), await
|
|
6218
|
+
h(!1), m(!1), await ie(o, "copy");
|
|
6208
6219
|
},
|
|
6209
6220
|
download: async () => {
|
|
6210
|
-
h(!1), m(!1), await
|
|
6221
|
+
h(!1), m(!1), await ie(o, "download");
|
|
6211
6222
|
},
|
|
6212
6223
|
typeOfProduct: d,
|
|
6213
6224
|
urlType: D
|
|
@@ -6900,12 +6911,12 @@ const fo = (e, t) => e.unstable_is ? e.unstable_is(t) : t === e, ho = (e) => "in
|
|
|
6900
6911
|
}, a = (m) => _t(i(void 0, m)), A = (m, f) => {
|
|
6901
6912
|
const y = (G) => {
|
|
6902
6913
|
var W, X;
|
|
6903
|
-
const H = n(G),
|
|
6914
|
+
const H = n(G), ae = new Set((W = H.m) == null ? void 0 : W.t);
|
|
6904
6915
|
for (const P of H.p)
|
|
6905
|
-
|
|
6916
|
+
ae.add(P);
|
|
6906
6917
|
return (X = dl(m, G)) == null || X.forEach((P) => {
|
|
6907
|
-
|
|
6908
|
-
}),
|
|
6918
|
+
ae.add(P);
|
|
6919
|
+
}), ae;
|
|
6909
6920
|
}, Z = [], S = /* @__PURE__ */ new Set(), M = (G) => {
|
|
6910
6921
|
if (!S.has(G)) {
|
|
6911
6922
|
S.add(G);
|
|
@@ -6918,13 +6929,13 @@ const fo = (e, t) => e.unstable_is ? e.unstable_is(t) : t === e, ho = (e) => "in
|
|
|
6918
6929
|
const g = /* @__PURE__ */ new Set([f]), D = (G) => S.has(G);
|
|
6919
6930
|
for (let G = Z.length - 1; G >= 0; --G) {
|
|
6920
6931
|
const W = Z[G], X = n(W), H = X.n;
|
|
6921
|
-
let
|
|
6932
|
+
let ae = !1;
|
|
6922
6933
|
for (const P of X.d.keys())
|
|
6923
6934
|
if (P !== W && g.has(P)) {
|
|
6924
|
-
|
|
6935
|
+
ae = !0;
|
|
6925
6936
|
break;
|
|
6926
6937
|
}
|
|
6927
|
-
|
|
6938
|
+
ae && (i(m, W, D), s(m, W, X), H !== X.n && (vo(m, W, X), g.add(W))), S.delete(W);
|
|
6928
6939
|
}
|
|
6929
6940
|
}, d = (m, f, ...y) => {
|
|
6930
6941
|
const Z = (g) => _t(i(m, g)), S = (g, ...D) => {
|
|
@@ -6932,8 +6943,8 @@ const fo = (e, t) => e.unstable_is ? e.unstable_is(t) : t === e, ho = (e) => "in
|
|
|
6932
6943
|
if (fo(f, g)) {
|
|
6933
6944
|
if (!ho(g))
|
|
6934
6945
|
throw new Error("atom not writable");
|
|
6935
|
-
const W = n(g), X = "v" in W, H = W.v,
|
|
6936
|
-
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));
|
|
6937
6948
|
} else
|
|
6938
6949
|
G = d(m, g, ...D);
|
|
6939
6950
|
return gt(m), G;
|
|
@@ -7230,7 +7241,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7230
7241
|
cdnUrl: S,
|
|
7231
7242
|
setCdnUrl: M
|
|
7232
7243
|
}) => {
|
|
7233
|
-
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) => {
|
|
7234
7245
|
ne && S || z || (J(!0), Yt(r, "cdn", u, null, !1, {}).then((_) => {
|
|
7235
7246
|
M(_.url), J(!1);
|
|
7236
7247
|
}).catch((_) => {
|
|
@@ -7244,7 +7255,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7244
7255
|
} else
|
|
7245
7256
|
_.push(ne), D([...g, ne]);
|
|
7246
7257
|
Ut.filter((N) => [..._].includes(N.id)).map((N) => N.name);
|
|
7247
|
-
},
|
|
7258
|
+
}, ie = async () => new Promise(async (ne, _) => {
|
|
7248
7259
|
const N = Ut.filter((ee) => [...g].includes(ee.id)).map((ee) => ee.name);
|
|
7249
7260
|
E(!0), zs(r, u, N, { urlType: m }).then((ee) => {
|
|
7250
7261
|
E(!1), ne(ee);
|
|
@@ -7252,7 +7263,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7252
7263
|
console.log("get multi download err"), E(!1), A(ee.message, ee), _(ee);
|
|
7253
7264
|
});
|
|
7254
7265
|
}), L = async () => {
|
|
7255
|
-
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());
|
|
7256
7267
|
};
|
|
7257
7268
|
return be(() => {
|
|
7258
7269
|
const ne = Ut.filter((_) => {
|
|
@@ -7346,7 +7357,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7346
7357
|
tl,
|
|
7347
7358
|
{
|
|
7348
7359
|
onClickMultiDownload: L,
|
|
7349
|
-
networksVersionTotalSize:
|
|
7360
|
+
networksVersionTotalSize: ae,
|
|
7350
7361
|
typeOfProduct: o,
|
|
7351
7362
|
multiDownloading: oe
|
|
7352
7363
|
}
|
|
@@ -7409,7 +7420,7 @@ const Ki = wi(""), Si = wi(!1), vl = ({ onClose: e, url: t }) => /* @__PURE__ */
|
|
|
7409
7420
|
handleCopyLink: async () => {
|
|
7410
7421
|
},
|
|
7411
7422
|
download: async () => {
|
|
7412
|
-
b(!1), Y(!1), await
|
|
7423
|
+
b(!1), Y(!1), await ie();
|
|
7413
7424
|
},
|
|
7414
7425
|
onClose: () => {
|
|
7415
7426
|
b(!1), Y(!1);
|
|
@@ -7495,7 +7506,7 @@ const Ml = ({
|
|
|
7495
7506
|
urlType: y,
|
|
7496
7507
|
setUrlType: Z
|
|
7497
7508
|
}) => {
|
|
7498
|
-
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("");
|
|
7499
7510
|
un(Ki), un(Si), be(() => {
|
|
7500
7511
|
!re && r !== "Fusion" && Js(t).then((w) => {
|
|
7501
7512
|
w != null && w.exist && b(w.uploadPath);
|
|
@@ -7515,15 +7526,15 @@ const Ml = ({
|
|
|
7515
7526
|
H(!0);
|
|
7516
7527
|
const w = await rr(e, i);
|
|
7517
7528
|
return w != null && w.networks || (w.networks = Sl), M(w), w;
|
|
7518
|
-
}, J = (w,
|
|
7529
|
+
}, J = (w, ie) => {
|
|
7519
7530
|
clearTimeout(Co), Co = setTimeout(() => {
|
|
7520
|
-
Ir(t, { iosUrl: w, googleUrl:
|
|
7531
|
+
Ir(t, { iosUrl: w, googleUrl: ie }, { urlType: y });
|
|
7521
7532
|
}, 1e3);
|
|
7522
7533
|
}, V = (w) => {
|
|
7523
7534
|
m(w), J(w, q);
|
|
7524
7535
|
}, Q = (w) => {
|
|
7525
7536
|
f(w), J(v, w);
|
|
7526
|
-
}, T = async (w,
|
|
7537
|
+
}, T = async (w, ie) => {
|
|
7527
7538
|
var L, ne;
|
|
7528
7539
|
try {
|
|
7529
7540
|
let _;
|
|
@@ -7537,8 +7548,8 @@ const Ml = ({
|
|
|
7537
7548
|
m(w.iosUrl), f(w.googleUrl), H(!1);
|
|
7538
7549
|
return;
|
|
7539
7550
|
}
|
|
7540
|
-
if (
|
|
7541
|
-
let ee = await fetch(u + "/" +
|
|
7551
|
+
if (ie && ie.html) {
|
|
7552
|
+
let ee = await fetch(u + "/" + ie.html).then(
|
|
7542
7553
|
(Ue) => Ue.text()
|
|
7543
7554
|
);
|
|
7544
7555
|
const ge = ((L = ee.match(
|
|
@@ -7578,17 +7589,17 @@ const Ml = ({
|
|
|
7578
7589
|
o || (M(null), D(null), W(null), p(null)), o && (r === "Playable" ? (z().then((w) => {
|
|
7579
7590
|
T(null, w);
|
|
7580
7591
|
}), P(!1)) : r === "Ready" ? B().then((w) => {
|
|
7581
|
-
z().then((
|
|
7582
|
-
T(null,
|
|
7592
|
+
z().then((ie) => {
|
|
7593
|
+
T(null, ie), P(!1);
|
|
7583
7594
|
});
|
|
7584
7595
|
}) : r === "Flex" ? B().then((w) => {
|
|
7585
|
-
P(!1), te().then((
|
|
7586
|
-
o && (T(
|
|
7596
|
+
P(!1), te().then((ie) => {
|
|
7597
|
+
o && (T(ie, null), P(!1), D(ie));
|
|
7587
7598
|
});
|
|
7588
7599
|
}) : r === "Import" ? xl(t, i).then((w) => {
|
|
7589
7600
|
M(w), m(w.iosUrl || ""), f(w.googleUrl || ""), H(!1), P(!1);
|
|
7590
7601
|
}) : r === "Fusion" && (P(!1), te().then((w) => {
|
|
7591
|
-
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));
|
|
7592
7603
|
})));
|
|
7593
7604
|
}, [n, e, t, o]), /* @__PURE__ */ l.jsxs(
|
|
7594
7605
|
"div",
|
|
@@ -7613,7 +7624,7 @@ const Ml = ({
|
|
|
7613
7624
|
urls: { iosUrl: v, googleUrl: q },
|
|
7614
7625
|
handleIosChange: V,
|
|
7615
7626
|
handleGoogleChange: Q,
|
|
7616
|
-
disabled:
|
|
7627
|
+
disabled: ae,
|
|
7617
7628
|
api: i,
|
|
7618
7629
|
creditDownload: G,
|
|
7619
7630
|
user: a,
|
|
@@ -7652,7 +7663,7 @@ const Ml = ({
|
|
|
7652
7663
|
urls: { iosUrl: v, googleUrl: q },
|
|
7653
7664
|
game: g,
|
|
7654
7665
|
getDownloadCount: B,
|
|
7655
|
-
disabled:
|
|
7666
|
+
disabled: ae,
|
|
7656
7667
|
setSafariCopyLink: C,
|
|
7657
7668
|
isTest: O,
|
|
7658
7669
|
urlType: y,
|
|
@@ -8172,7 +8183,7 @@ fu.default.subscribe(yu);
|
|
|
8172
8183
|
content: "ReactModal__Content"
|
|
8173
8184
|
}, H = function(O) {
|
|
8174
8185
|
return O.code === "Tab" || O.keyCode === 9;
|
|
8175
|
-
},
|
|
8186
|
+
}, ae = function(O) {
|
|
8176
8187
|
return O.code === "Escape" || O.keyCode === 27;
|
|
8177
8188
|
}, P = 0, oe = function(E) {
|
|
8178
8189
|
W(O, E);
|
|
@@ -8212,7 +8223,7 @@ fu.default.subscribe(yu);
|
|
|
8212
8223
|
closesAt: null
|
|
8213
8224
|
}, h.afterClose);
|
|
8214
8225
|
}, h.handleKeyDown = function(j) {
|
|
8215
|
-
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));
|
|
8216
8227
|
}, h.handleOverlayOnClick = function(j) {
|
|
8217
8228
|
h.shouldClose === null && (h.shouldClose = !0), h.shouldClose && h.props.shouldCloseOnOverlayClick && (h.ownerHandlesClose() ? h.requestClose(j) : h.focusContent()), h.shouldClose = null;
|
|
8218
8229
|
}, h.handleContentOnMouseUp = function() {
|
|
@@ -8907,7 +8918,7 @@ const cr = /* @__PURE__ */ ua(zu), Yu = ({ width: e, height: t, fill: n }) => /*
|
|
|
8907
8918
|
copyLinkUrl: v,
|
|
8908
8919
|
fusionData: q
|
|
8909
8920
|
}) => {
|
|
8910
|
-
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");
|
|
8911
8922
|
Ys(a, A, P, C, q);
|
|
8912
8923
|
const re = async () => {
|
|
8913
8924
|
Yt(n, "preview", null, null, !1).then((b) => {
|
|
@@ -9130,13 +9141,13 @@ const cr = /* @__PURE__ */ ua(zu), Yu = ({ width: e, height: t, fill: n }) => /*
|
|
|
9130
9141
|
)
|
|
9131
9142
|
] }),
|
|
9132
9143
|
/* @__PURE__ */ l.jsx(nr, {}),
|
|
9133
|
-
|
|
9144
|
+
ae && /* @__PURE__ */ l.jsx(
|
|
9134
9145
|
Nu,
|
|
9135
9146
|
{
|
|
9136
9147
|
onClose: () => {
|
|
9137
|
-
Ct(
|
|
9148
|
+
Ct(ae), P("");
|
|
9138
9149
|
},
|
|
9139
|
-
url:
|
|
9150
|
+
url: ae
|
|
9140
9151
|
}
|
|
9141
9152
|
),
|
|
9142
9153
|
/* @__PURE__ */ l.jsx(
|