gearboxdownloadmodal 7.0.5 → 7.0.6
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 -78
- 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
|
@@ -154,14 +154,14 @@ function ul() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var E = Object.assign, L = 0, G, y, K,
|
|
157
|
+
var E = Object.assign, L = 0, G, y, K, Q, w, I, V;
|
|
158
158
|
function H() {
|
|
159
159
|
}
|
|
160
160
|
H.__reactDisabledLog = !0;
|
|
161
161
|
function J() {
|
|
162
162
|
{
|
|
163
163
|
if (L === 0) {
|
|
164
|
-
G = console.log, y = console.info, K = console.warn,
|
|
164
|
+
G = console.log, y = console.info, K = console.warn, Q = console.error, w = console.group, I = console.groupCollapsed, V = console.groupEnd;
|
|
165
165
|
var h = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -200,7 +200,7 @@ function ul() {
|
|
|
200
200
|
value: K
|
|
201
201
|
}),
|
|
202
202
|
error: E({}, h, {
|
|
203
|
-
value:
|
|
203
|
+
value: Q
|
|
204
204
|
}),
|
|
205
205
|
group: E({}, h, {
|
|
206
206
|
value: w
|
|
@@ -342,13 +342,13 @@ function ul() {
|
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var Be = Object.prototype.hasOwnProperty, D = {},
|
|
345
|
+
var Be = Object.prototype.hasOwnProperty, D = {}, U = q.ReactDebugCurrentFrame;
|
|
346
346
|
function oe(h) {
|
|
347
347
|
if (h) {
|
|
348
348
|
var O = h._owner, N = We(h.type, h._source, O ? O.type : null);
|
|
349
|
-
|
|
349
|
+
U.setExtraStackFrame(N);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
U.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
353
|
function qe(h, O, N, ee, fe) {
|
|
354
354
|
{
|
|
@@ -854,7 +854,7 @@ function pl() {
|
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
var C = l, T = A, x = a, k = o, Y = e, W = u, z = r, j = g, B = p, E = n, L = s, G = i, y = d, K = !1;
|
|
857
|
-
function
|
|
857
|
+
function Q(R) {
|
|
858
858
|
return K || (K = !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.")), w(R) || S(R) === l;
|
|
859
859
|
}
|
|
860
860
|
function w(R) {
|
|
@@ -893,7 +893,7 @@ function pl() {
|
|
|
893
893
|
function ge(R) {
|
|
894
894
|
return S(R) === d;
|
|
895
895
|
}
|
|
896
|
-
he.AsyncMode = C, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider = k, he.Element = Y, he.ForwardRef = W, he.Fragment = z, he.Lazy = j, he.Memo = B, he.Portal = E, he.Profiler = L, he.StrictMode = G, he.Suspense = y, he.isAsyncMode =
|
|
896
|
+
he.AsyncMode = C, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider = k, he.Element = Y, he.ForwardRef = W, he.Fragment = z, he.Lazy = j, he.Memo = B, he.Portal = E, he.Profiler = L, he.StrictMode = G, he.Suspense = y, he.isAsyncMode = Q, he.isConcurrentMode = w, he.isContextConsumer = I, he.isContextProvider = V, he.isElement = H, he.isForwardRef = J, he.isFragment = P, he.isLazy = F, he.isMemo = _, he.isPortal = ne, he.isProfiler = se, he.isStrictMode = $, he.isSuspense = ge, he.isValidElementType = M, he.typeOf = S;
|
|
897
897
|
}()), he;
|
|
898
898
|
}
|
|
899
899
|
var rs;
|
|
@@ -1150,7 +1150,7 @@ function gl() {
|
|
|
1150
1150
|
function T(w) {
|
|
1151
1151
|
function I(V, H, J, P, F) {
|
|
1152
1152
|
if (!(V[H] instanceof w)) {
|
|
1153
|
-
var _ = w.name || f, ne =
|
|
1153
|
+
var _ = w.name || f, ne = Q(V[H]);
|
|
1154
1154
|
return new m("Invalid " + P + " `" + F + "` of type " + ("`" + ne + "` supplied to `" + J + "`, expected ") + ("instance of `" + _ + "`."));
|
|
1155
1155
|
}
|
|
1156
1156
|
return null;
|
|
@@ -1330,7 +1330,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1330
1330
|
return I;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Q(w) {
|
|
1334
1334
|
return !w.constructor || !w.constructor.name ? f : w.constructor.name;
|
|
1335
1335
|
}
|
|
1336
1336
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
@@ -2599,13 +2599,13 @@ class Vn extends or {
|
|
|
2599
2599
|
L.push(G[K]);
|
|
2600
2600
|
else
|
|
2601
2601
|
this.options.saveMissingTo === "all" ? L = this.languageUtils.toResolveHierarchy(n.lng || this.language) : L.push(n.lng || this.language);
|
|
2602
|
-
const y = (K,
|
|
2602
|
+
const y = (K, Q, w) => {
|
|
2603
2603
|
const I = x && w !== f ? w : B;
|
|
2604
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(K, l,
|
|
2604
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(K, l, Q, I, E, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(K, l, Q, I, E, n), this.emit("missingKey", K, l, Q, f);
|
|
2605
2605
|
};
|
|
2606
2606
|
this.options.saveMissing && (this.options.saveMissingPlurals && T ? L.forEach((K) => {
|
|
2607
|
-
const
|
|
2608
|
-
W && n[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
2607
|
+
const Q = this.pluralResolver.getSuffixes(K, n);
|
|
2608
|
+
W && n[`defaultValue${this.options.pluralSeparator}zero`] && Q.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Q.push(`${this.options.pluralSeparator}zero`), Q.forEach((w) => {
|
|
2609
2609
|
y([K], o + w, n[`defaultValue${w}`] || z);
|
|
2610
2610
|
});
|
|
2611
2611
|
}) : y(L, o, z));
|
|
@@ -5716,7 +5716,7 @@ function Fc(t) {
|
|
|
5716
5716
|
k.iconOut = function(j) {
|
|
5717
5717
|
let { theme: B, type: E, isLoading: L, icon: G } = j, y = null;
|
|
5718
5718
|
const K = { theme: B, type: E };
|
|
5719
|
-
return G === !1 || (De(G) ? y = G(K) : Ht(G) ? y = Vr(G, K) : Mt(G) || ln(G) ? y = G : L ? y = Rr.spinner() : ((
|
|
5719
|
+
return G === !1 || (De(G) ? y = G(K) : Ht(G) ? y = Vr(G, K) : Mt(G) || ln(G) ? y = G : L ? y = Rr.spinner() : ((Q) => Q in Rr)(E) && (y = Rr[E](K))), y;
|
|
5720
5720
|
}(k), De(q.onOpen) && (k.onOpen = q.onOpen), De(q.onClose) && (k.onClose = q.onClose), k.closeButton = C.closeButton, q.closeButton === !1 || zr(q.closeButton) ? k.closeButton = q.closeButton : q.closeButton === !0 && (k.closeButton = !zr(C.closeButton) || C.closeButton);
|
|
5721
5721
|
let z = p;
|
|
5722
5722
|
Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps: k, data: S }) : De(p) && (z = p({ closeToast: T, toastProps: k, data: S })), C.limit && C.limit > 0 && a.count > C.limit && x ? a.queue.push({ toastContent: z, toastProps: k, staleId: v }) : ln(m) ? setTimeout(() => {
|
|
@@ -5811,8 +5811,8 @@ function $c(t) {
|
|
|
5811
5811
|
}
|
|
5812
5812
|
const ed = (t) => {
|
|
5813
5813
|
const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: v, bodyStyle: q, progressClassName: Z, progressStyle: M, updateId: S, role: C, progress: T, rtl: x, toastId: k, deleteToast: Y, isIn: W, isLoading: z, iconOut: j, closeOnClick: B, theme: E } = t, L = yt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": B }), G = De(g) ? g({ rtl: x, position: p, type: A, defaultClassName: L }) : yt(L, g), y = !!T || !a, K = { closeToast: d, type: A, theme: E };
|
|
5814
|
-
let
|
|
5815
|
-
return s === !1 || (
|
|
5814
|
+
let Q = null;
|
|
5815
|
+
return s === !1 || (Q = De(s) ? s(K) : Ht(s) ? Vr(s, K) : oa(K)), de.createElement(f, { isIn: W, done: Y, position: p, preventExitTransition: n, nodeRef: r }, de.createElement("div", { id: k, onClick: l, className: G, ...i, style: m, ref: r }, de.createElement("div", { ...W && { role: C }, className: De(v) ? v({ type: A }) : yt("Toastify__toast-body", v), style: q }, j != null && de.createElement("div", { className: yt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), de.createElement("div", null, o)), Q, de.createElement($c, { ...S && !y ? { key: `pb-${S}` } : {}, rtl: x, theme: E, delay: a, isRunning: e, isIn: W, closeToast: d, hide: u, type: A, style: M, className: Z, controlledProgress: y, progress: T || 0 })));
|
|
5816
5816
|
}, pr = function(t, e) {
|
|
5817
5817
|
return e === void 0 && (e = !1), { enter: `Toastify--animate Toastify__${t}-enter`, exit: `Toastify--animate Toastify__${t}-exit`, appendPosition: e };
|
|
5818
5818
|
}, td = fr(pr("bounce", !0));
|
|
@@ -6208,11 +6208,11 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6208
6208
|
throw new Error("no atom init");
|
|
6209
6209
|
return On(w);
|
|
6210
6210
|
}
|
|
6211
|
-
const
|
|
6211
|
+
const Q = m(y);
|
|
6212
6212
|
try {
|
|
6213
|
-
return On(
|
|
6213
|
+
return On(Q);
|
|
6214
6214
|
} finally {
|
|
6215
|
-
Y.d.set(y,
|
|
6215
|
+
Y.d.set(y, Q.n), Ps(Y.v) && da(x, Y.v, Q), (K = e.get(y)) == null || K.t.add(x), W || z();
|
|
6216
6216
|
}
|
|
6217
6217
|
};
|
|
6218
6218
|
let B, E;
|
|
@@ -8285,7 +8285,7 @@ const Yd = ({
|
|
|
8285
8285
|
generateCDN: k,
|
|
8286
8286
|
cdnUrl: Y
|
|
8287
8287
|
}) => {
|
|
8288
|
-
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K,
|
|
8288
|
+
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K, Q] = X(!1), [w, I] = X("download"), [V, H] = X(!1), [J, P] = X(!1), [F, _] = X(!1), [ne, se] = X(!1), [$, ge] = X(!1), [R, we] = X(!1), [Re, We] = X(!1), [Be, D] = Te(Yi), [U, oe] = Te(qn), qe = l === "Playable" ? U : !0, be = {
|
|
8289
8289
|
cdn: "Generate Link",
|
|
8290
8290
|
adikteev: "Copy CDN"
|
|
8291
8291
|
}, je = () => {
|
|
@@ -8320,7 +8320,7 @@ const Yd = ({
|
|
|
8320
8320
|
molocoGenerateHtml: !1
|
|
8321
8321
|
};
|
|
8322
8322
|
ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download", C, Ce).then((Oe) => {
|
|
8323
|
-
ue ? P(!1) : H(!1),
|
|
8323
|
+
ue ? P(!1) : H(!1), Q(!1);
|
|
8324
8324
|
}).catch((Oe) => {
|
|
8325
8325
|
d(Oe.message, Oe);
|
|
8326
8326
|
});
|
|
@@ -8459,7 +8459,7 @@ const Yd = ({
|
|
|
8459
8459
|
downloading: W,
|
|
8460
8460
|
onClickDonwload: async (ue) => {
|
|
8461
8461
|
if (ue.stopPropagation(), ut && M.customer === "playableFactoryInternal") {
|
|
8462
|
-
|
|
8462
|
+
Q(!0);
|
|
8463
8463
|
return;
|
|
8464
8464
|
} else if (At)
|
|
8465
8465
|
se(!0);
|
|
@@ -8603,7 +8603,7 @@ const Yd = ({
|
|
|
8603
8603
|
zd,
|
|
8604
8604
|
{
|
|
8605
8605
|
onClose: () => {
|
|
8606
|
-
|
|
8606
|
+
Q(!1);
|
|
8607
8607
|
},
|
|
8608
8608
|
handleDownload: Ct,
|
|
8609
8609
|
handleDownloadMolocoTest: Rt,
|
|
@@ -9037,38 +9037,38 @@ const Yd = ({
|
|
|
9037
9037
|
setCdnUrl: S,
|
|
9038
9038
|
customer: C
|
|
9039
9039
|
}) => {
|
|
9040
|
-
const [T, x] = X([]), [k, Y] = X([]), [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K,
|
|
9041
|
-
|
|
9040
|
+
const [T, x] = X([]), [k, Y] = X([]), [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [K, Q] = X("download"), [w, I] = X(!1), [V, H] = X(!1), [J, P] = X(!1), [F, _] = Te(pa), [ne, se] = Te(ha), [$] = Te(Yi), [ge, R] = Te(qn), we = i === "Playable" ? ge : !0, Re = async (U = !1) => {
|
|
9041
|
+
U && M || J || (P(!0), pn(r, "cdn", we ? A : null, null, !1, {}).then((oe) => {
|
|
9042
9042
|
S(oe.url), P(!1);
|
|
9043
9043
|
}).catch((oe) => {
|
|
9044
9044
|
a(oe.message, oe), P(!1);
|
|
9045
9045
|
}));
|
|
9046
|
-
}, We = async (
|
|
9047
|
-
if (
|
|
9046
|
+
}, We = async (U) => {
|
|
9047
|
+
if (U === "adikteev")
|
|
9048
9048
|
return;
|
|
9049
9049
|
const oe = [...T];
|
|
9050
|
-
if (T.includes(
|
|
9051
|
-
const qe = oe.findIndex((be) => be ===
|
|
9050
|
+
if (T.includes(U)) {
|
|
9051
|
+
const qe = oe.findIndex((be) => be === U);
|
|
9052
9052
|
oe.splice(qe, 1), x(oe);
|
|
9053
9053
|
} else
|
|
9054
|
-
oe.push(
|
|
9054
|
+
oe.push(U), x([...T, U]);
|
|
9055
9055
|
$.filter((qe) => [...oe].includes(qe.id)).map((qe) => qe.name);
|
|
9056
|
-
}, Be = async () => new Promise(async (
|
|
9056
|
+
}, Be = async () => new Promise(async (U, oe) => {
|
|
9057
9057
|
const qe = $.filter((be) => [...T].includes(be.id)).map((be) => be.name);
|
|
9058
9058
|
L(!0), od(r, A, qe, { urlType: m }).then((be) => {
|
|
9059
|
-
L(!1),
|
|
9059
|
+
L(!1), U(be);
|
|
9060
9060
|
}).catch((be) => {
|
|
9061
9061
|
console.log("get multi download err"), L(!1), a(be.message, be), oe(be);
|
|
9062
9062
|
});
|
|
9063
9063
|
}), D = async () => {
|
|
9064
|
-
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0),
|
|
9064
|
+
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), Q("download"), I(!0)) : (I(!1), await Be());
|
|
9065
9065
|
};
|
|
9066
9066
|
return Ie(() => {
|
|
9067
|
-
const
|
|
9067
|
+
const U = $.filter((oe) => {
|
|
9068
9068
|
var qe;
|
|
9069
9069
|
return e && ((qe = e == null ? void 0 : e.networks) == null ? void 0 : qe.length) > 0 ? typeof oe == "string" ? e == null ? void 0 : e.networks.includes(oe) : e == null ? void 0 : e.networks.includes(oe.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((be) => be.status === "paid").some((be) => be.name === oe.name) : (t == null ? void 0 : t.networks.includes(oe.name)) || (u == null ? void 0 : u.networks.includes(oe.name));
|
|
9070
9070
|
}).filter((oe) => oe.name === "voodoo" ? o.customer === "customer:20" : !0).map((oe) => oe.id);
|
|
9071
|
-
x(v ?
|
|
9071
|
+
x(v ? U : []);
|
|
9072
9072
|
}, [v]), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
9073
9073
|
/* @__PURE__ */ c.jsx(
|
|
9074
9074
|
"div",
|
|
@@ -9090,28 +9090,35 @@ const Yd = ({
|
|
|
9090
9090
|
overflowY: "auto",
|
|
9091
9091
|
padding: "0.75rem"
|
|
9092
9092
|
},
|
|
9093
|
-
children: n && $.filter((
|
|
9093
|
+
children: n && $.filter((U) => {
|
|
9094
9094
|
var oe;
|
|
9095
|
-
|
|
9095
|
+
if (e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0)
|
|
9096
|
+
return typeof U == "string" ? e == null ? void 0 : e.networks.includes(U) : e == null ? void 0 : e.networks.includes(U.name);
|
|
9097
|
+
if (i === "Import")
|
|
9098
|
+
return t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === U.name);
|
|
9099
|
+
if (!U)
|
|
9100
|
+
t == null || t.networks.includes(U);
|
|
9101
|
+
else
|
|
9102
|
+
return U;
|
|
9096
9103
|
}).filter(
|
|
9097
|
-
(
|
|
9098
|
-
).map((
|
|
9099
|
-
let oe =
|
|
9100
|
-
if (
|
|
9104
|
+
(U) => U.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
9105
|
+
).map((U) => {
|
|
9106
|
+
let oe = U.imageSrc;
|
|
9107
|
+
if (U.name === "web") {
|
|
9101
9108
|
let qe = "web_" + i.toLowerCase() + ".png";
|
|
9102
9109
|
oe = oe.replace("web.png", qe);
|
|
9103
9110
|
}
|
|
9104
9111
|
return /* @__PURE__ */ c.jsx(
|
|
9105
9112
|
Nd,
|
|
9106
9113
|
{
|
|
9107
|
-
id:
|
|
9108
|
-
name:
|
|
9114
|
+
id: U.id,
|
|
9115
|
+
name: U.name,
|
|
9109
9116
|
imageUrl: oe,
|
|
9110
|
-
selected: T.includes(
|
|
9117
|
+
selected: T.includes(U.id),
|
|
9111
9118
|
handleCardClick: We,
|
|
9112
9119
|
networkVersionSize: k,
|
|
9113
9120
|
fileSizeLoading: W,
|
|
9114
|
-
showCheckBox:
|
|
9121
|
+
showCheckBox: U.id !== "adikteev",
|
|
9115
9122
|
typeOfProduct: i,
|
|
9116
9123
|
versionId: r,
|
|
9117
9124
|
api: s,
|
|
@@ -9131,7 +9138,7 @@ const Yd = ({
|
|
|
9131
9138
|
generateCDN: Re,
|
|
9132
9139
|
cdnUrl: M
|
|
9133
9140
|
},
|
|
9134
|
-
|
|
9141
|
+
U.id
|
|
9135
9142
|
);
|
|
9136
9143
|
})
|
|
9137
9144
|
}
|
|
@@ -9300,14 +9307,14 @@ const _d = ({
|
|
|
9300
9307
|
urlType: q,
|
|
9301
9308
|
setUrlType: Z
|
|
9302
9309
|
}) => {
|
|
9303
|
-
const [M, S] = X(null), [C, T] = X(null), [x, k] = X(null), [Y, W] = X(!1), [z, j] = X(!0), [B, E] = X(window.innerWidth), [L, G] = X(!1), [y, K] = X(!1), [
|
|
9310
|
+
const [M, S] = X(null), [C, T] = X(null), [x, k] = X(null), [Y, W] = X(!1), [z, j] = X(!0), [B, E] = X(window.innerWidth), [L, G] = X(!1), [y, K] = X(!1), [Q, w] = X("");
|
|
9304
9311
|
Te(pa), Te(ha);
|
|
9305
9312
|
const [I, V] = Te(ma), [H, J] = Te(qn);
|
|
9306
9313
|
Ie(() => {
|
|
9307
|
-
!
|
|
9314
|
+
!Q && r !== "Fusion" && ud(e).then((D) => {
|
|
9308
9315
|
D != null && D.exist && w(D.uploadPath);
|
|
9309
9316
|
});
|
|
9310
|
-
}, [
|
|
9317
|
+
}, [Q]), console.log("download modal version: 6.0.75");
|
|
9311
9318
|
const [P, F] = X(!1);
|
|
9312
9319
|
Ie(() => {
|
|
9313
9320
|
}, [P]), Ie(() => {
|
|
@@ -9322,15 +9329,15 @@ const _d = ({
|
|
|
9322
9329
|
W(!0);
|
|
9323
9330
|
const D = await oi(t, s);
|
|
9324
9331
|
return D != null && D.networks || (D.networks = Us), S(D), D;
|
|
9325
|
-
}, ne = (D,
|
|
9332
|
+
}, ne = (D, U) => {
|
|
9326
9333
|
clearTimeout(Qs), Qs = setTimeout(() => {
|
|
9327
|
-
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl:
|
|
9334
|
+
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: U }, { urlType: q });
|
|
9328
9335
|
}, 1e3);
|
|
9329
9336
|
}, se = (D) => {
|
|
9330
9337
|
m(D), ne(D, g);
|
|
9331
9338
|
}, $ = (D) => {
|
|
9332
9339
|
v(D), ne(p, D);
|
|
9333
|
-
}, ge = async (D,
|
|
9340
|
+
}, ge = async (D, U) => {
|
|
9334
9341
|
var oe, qe;
|
|
9335
9342
|
try {
|
|
9336
9343
|
let be;
|
|
@@ -9344,8 +9351,8 @@ const _d = ({
|
|
|
9344
9351
|
m(D.iosUrl), v(D.googleUrl), W(!1);
|
|
9345
9352
|
return;
|
|
9346
9353
|
}
|
|
9347
|
-
if (
|
|
9348
|
-
const $e = `${A}/${
|
|
9354
|
+
if (U && U.html) {
|
|
9355
|
+
const $e = `${A}/${U.html}?t=${Date.now()}`;
|
|
9349
9356
|
let Ct = await fetch($e).then((At) => At.text());
|
|
9350
9357
|
const Rt = ((oe = Ct.match(
|
|
9351
9358
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
@@ -9385,23 +9392,23 @@ const _d = ({
|
|
|
9385
9392
|
}, we = async () => await Bd(n, s), [Re, We] = X(null), Be = async (D) => await Fd(D, s);
|
|
9386
9393
|
return Ie(() => {
|
|
9387
9394
|
i || (S(null), T(null), k(null), d(null), We(null)), i && (r === "Playable" ? we().then((D) => {
|
|
9388
|
-
Be(D.customer).then((
|
|
9389
|
-
We(
|
|
9390
|
-
}), _().then((
|
|
9391
|
-
ge(null,
|
|
9395
|
+
Be(D.customer).then((U) => {
|
|
9396
|
+
We(U);
|
|
9397
|
+
}), _().then((U) => {
|
|
9398
|
+
ge(null, U);
|
|
9392
9399
|
}), j(!1);
|
|
9393
9400
|
}) : r === "Ready" ? R().then((D) => {
|
|
9394
|
-
_().then((
|
|
9395
|
-
ge(null,
|
|
9401
|
+
_().then((U) => {
|
|
9402
|
+
ge(null, U), j(!1);
|
|
9396
9403
|
});
|
|
9397
9404
|
}) : r === "Flex" ? R().then((D) => {
|
|
9398
|
-
j(!1), we().then((
|
|
9399
|
-
i && (ge(
|
|
9405
|
+
j(!1), we().then((U) => {
|
|
9406
|
+
i && (ge(U, null), j(!1), T(U));
|
|
9400
9407
|
});
|
|
9401
9408
|
}) : r === "Import" ? Ud(e, s).then((D) => {
|
|
9402
9409
|
S(D), m(D.iosUrl || ""), v(D.googleUrl || ""), W(!1), j(!1);
|
|
9403
9410
|
}) : r === "Fusion" && (j(!1), we().then((D) => {
|
|
9404
|
-
i && (ge(D, null), j(!1), D.networks = I.filter((
|
|
9411
|
+
i && (ge(D, null), j(!1), D.networks = I.filter((U) => U !== "cdn"), T(D));
|
|
9405
9412
|
})));
|
|
9406
9413
|
}, [n, t, e, i]), /* @__PURE__ */ c.jsxs(
|
|
9407
9414
|
"div",
|
|
@@ -9472,7 +9479,7 @@ const _d = ({
|
|
|
9472
9479
|
allNetworksSelected: P,
|
|
9473
9480
|
cdnModal: y,
|
|
9474
9481
|
setCdnModal: K,
|
|
9475
|
-
cdnUrl:
|
|
9482
|
+
cdnUrl: Q,
|
|
9476
9483
|
setCdnUrl: w,
|
|
9477
9484
|
customer: Re ?? void 0
|
|
9478
9485
|
}
|
|
@@ -9998,8 +10005,8 @@ Nf.default.subscribe(Gf);
|
|
|
9998
10005
|
}, y.setContentRef = function(K) {
|
|
9999
10006
|
y.content = K, y.props.contentRef && y.props.contentRef(K);
|
|
10000
10007
|
}, y.afterClose = function() {
|
|
10001
|
-
var K = y.props,
|
|
10002
|
-
V && m.remove(J.body, V), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(
|
|
10008
|
+
var K = y.props, Q = K.appElement, w = K.ariaHideApp, I = K.htmlOpenClassName, V = K.bodyOpenClassName, H = K.parentSelector, J = H && H().ownerDocument || document;
|
|
10009
|
+
V && m.remove(J.body, V), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(Q)), y.props.shouldFocusAfterRender && (y.props.shouldReturnFocusAfterClose ? (A.returnFocus(y.props.preventScroll), A.teardownScopedFocus()) : A.popWithoutFocus()), y.props.onAfterClose && y.props.onAfterClose(), M.default.deregister(y);
|
|
10003
10010
|
}, y.open = function() {
|
|
10004
10011
|
y.beforeOpen(), y.state.afterOpen && y.state.beforeClose ? (clearTimeout(y.closeTimer), y.setState({ beforeClose: !1 })) : (y.props.shouldFocusAfterRender && (A.setupScopedFocus(y.node), A.markForFocusLater()), y.setState({ isOpen: !0 }, function() {
|
|
10005
10012
|
y.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -10045,16 +10052,16 @@ Nf.default.subscribe(Gf);
|
|
|
10045
10052
|
return !y.state.isOpen && !y.state.beforeClose;
|
|
10046
10053
|
}, y.contentHasFocus = function() {
|
|
10047
10054
|
return document.activeElement === y.content || y.content.contains(document.activeElement);
|
|
10048
|
-
}, y.buildClassName = function(K,
|
|
10049
|
-
var w = (typeof
|
|
10055
|
+
}, y.buildClassName = function(K, Q) {
|
|
10056
|
+
var w = (typeof Q > "u" ? "undefined" : r(Q)) === "object" ? Q : {
|
|
10050
10057
|
base: Y[K],
|
|
10051
10058
|
afterOpen: Y[K] + "--after-open",
|
|
10052
10059
|
beforeClose: Y[K] + "--before-close"
|
|
10053
10060
|
}, I = w.base;
|
|
10054
|
-
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof
|
|
10055
|
-
}, y.attributesFromObject = function(K,
|
|
10056
|
-
return Object.keys(
|
|
10057
|
-
return w[K + "-" + I] =
|
|
10061
|
+
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof Q == "string" && Q ? I + " " + Q : I;
|
|
10062
|
+
}, y.attributesFromObject = function(K, Q) {
|
|
10063
|
+
return Object.keys(Q).reduce(function(w, I) {
|
|
10064
|
+
return w[K + "-" + I] = Q[I], w;
|
|
10058
10065
|
}, {});
|
|
10059
10066
|
}, y.state = {
|
|
10060
10067
|
afterOpen: !1,
|
|
@@ -10079,14 +10086,14 @@ Nf.default.subscribe(Gf);
|
|
|
10079
10086
|
}, {
|
|
10080
10087
|
key: "beforeOpen",
|
|
10081
10088
|
value: function() {
|
|
10082
|
-
var y = this.props, K = y.appElement,
|
|
10083
|
-
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w),
|
|
10089
|
+
var y = this.props, K = y.appElement, Q = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, V = y.parentSelector, H = V && V().ownerDocument || document;
|
|
10090
|
+
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), Q && (j += 1, p.hide(K)), M.default.register(this);
|
|
10084
10091
|
}
|
|
10085
10092
|
// Don't steal focus from inner elements
|
|
10086
10093
|
}, {
|
|
10087
10094
|
key: "render",
|
|
10088
10095
|
value: function() {
|
|
10089
|
-
var y = this.props, K = y.id,
|
|
10096
|
+
var y = this.props, K = y.id, Q = y.className, w = y.overlayClassName, I = y.defaultStyles, V = y.children, H = Q ? {} : I.content, J = w ? {} : I.overlay;
|
|
10090
10097
|
if (this.shouldBeClosed())
|
|
10091
10098
|
return null;
|
|
10092
10099
|
var P = {
|
|
@@ -10099,7 +10106,7 @@ Nf.default.subscribe(Gf);
|
|
|
10099
10106
|
id: K,
|
|
10100
10107
|
ref: this.setContentRef,
|
|
10101
10108
|
style: n({}, H, this.props.style.content),
|
|
10102
|
-
className: this.buildClassName("content",
|
|
10109
|
+
className: this.buildClassName("content", Q),
|
|
10103
10110
|
tabIndex: "-1",
|
|
10104
10111
|
onKeyDown: this.handleKeyDown,
|
|
10105
10112
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -13086,7 +13093,7 @@ const uh = ({
|
|
|
13086
13093
|
copyLinkUrl: p,
|
|
13087
13094
|
fusionData: g
|
|
13088
13095
|
}) => {
|
|
13089
|
-
const [m, v] = X(window.innerWidth), [q, Z] = X(!1), [M, S] = X(u), [C, T] = X(!1), [x, k] = X(!0), [Y, W] = X(null), [z, j] = X(""), [B, E] = X("Loading..."), [L, G] = X("Loading..."), [y, K] = X("game"), [
|
|
13096
|
+
const [m, v] = X(window.innerWidth), [q, Z] = X(!1), [M, S] = X(u), [C, T] = X(!1), [x, k] = X(!0), [Y, W] = X(null), [z, j] = X(""), [B, E] = X("Loading..."), [L, G] = X("Loading..."), [y, K] = X("game"), [Q, w] = Te(Yi), [I, V] = Te(ma);
|
|
13090
13097
|
ad(o, a, j, f, g);
|
|
13091
13098
|
const H = async () => {
|
|
13092
13099
|
let J = await sh(a, o);
|