gearboxdownloadmodal 6.0.84 → 6.0.85
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 +136 -136
- 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, U, w, I,
|
|
157
|
+
var E = Object.assign, L = 0, G, y, K, U, w, I, X;
|
|
158
158
|
function H() {
|
|
159
159
|
}
|
|
160
160
|
H.__reactDisabledLog = !0;
|
|
161
161
|
function D() {
|
|
162
162
|
{
|
|
163
163
|
if (L === 0) {
|
|
164
|
-
G = console.log, y = console.info, K = console.warn, U = console.error, w = console.group, I = console.groupCollapsed,
|
|
164
|
+
G = console.log, y = console.info, K = console.warn, U = console.error, w = console.group, I = console.groupCollapsed, X = console.groupEnd;
|
|
165
165
|
var h = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -209,7 +209,7 @@ function ul() {
|
|
|
209
209
|
value: I
|
|
210
210
|
}),
|
|
211
211
|
groupEnd: E({}, h, {
|
|
212
|
-
value:
|
|
212
|
+
value: X
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -342,13 +342,13 @@ function ul() {
|
|
|
342
342
|
}
|
|
343
343
|
return "";
|
|
344
344
|
}
|
|
345
|
-
var Je = Object.prototype.hasOwnProperty, J = {},
|
|
346
|
-
function
|
|
345
|
+
var Je = Object.prototype.hasOwnProperty, J = {}, V = b.ReactDebugCurrentFrame;
|
|
346
|
+
function oe(h) {
|
|
347
347
|
if (h) {
|
|
348
348
|
var O = h._owner, N = Ee(h.type, h._source, O ? O.type : null);
|
|
349
|
-
|
|
349
|
+
V.setExtraStackFrame(N);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
V.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
353
|
function $(h, O, N, te, pe) {
|
|
354
354
|
{
|
|
@@ -365,13 +365,13 @@ function ul() {
|
|
|
365
365
|
} catch (Ce) {
|
|
366
366
|
Ae = Ce;
|
|
367
367
|
}
|
|
368
|
-
Ae && !(Ae instanceof Error) && (
|
|
368
|
+
Ae && !(Ae instanceof Error) && (oe(pe), Z("%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).", te || "React class", N, de, typeof Ae), oe(null)), Ae instanceof Error && !(Ae.message in J) && (J[Ae.message] = !0, oe(pe), Z("Failed %s type: %s", N, Ae.message), oe(null));
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var ae = Array.isArray;
|
|
373
373
|
function ge(h) {
|
|
374
|
-
return
|
|
374
|
+
return ae(h);
|
|
375
375
|
}
|
|
376
376
|
function Bt(h) {
|
|
377
377
|
{
|
|
@@ -863,7 +863,7 @@ function pl() {
|
|
|
863
863
|
function I(R) {
|
|
864
864
|
return S(R) === a;
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function X(R) {
|
|
867
867
|
return S(R) === o;
|
|
868
868
|
}
|
|
869
869
|
function H(R) {
|
|
@@ -893,7 +893,7 @@ function pl() {
|
|
|
893
893
|
function be(R) {
|
|
894
894
|
return S(R) === c;
|
|
895
895
|
}
|
|
896
|
-
me.AsyncMode = q, me.ConcurrentMode = T, me.ContextConsumer = x, me.ContextProvider = k, me.Element = Y, me.ForwardRef = W, me.Fragment = z, me.Lazy = j, me.Memo = B, me.Portal = E, me.Profiler = L, me.StrictMode = G, me.Suspense = y, me.isAsyncMode = U, me.isConcurrentMode = w, me.isContextConsumer = I, me.isContextProvider =
|
|
896
|
+
me.AsyncMode = q, me.ConcurrentMode = T, me.ContextConsumer = x, me.ContextProvider = k, me.Element = Y, me.ForwardRef = W, me.Fragment = z, me.Lazy = j, me.Memo = B, me.Portal = E, me.Profiler = L, me.StrictMode = G, me.Suspense = y, me.isAsyncMode = U, me.isConcurrentMode = w, me.isContextConsumer = I, me.isContextProvider = X, me.isElement = H, me.isForwardRef = D, me.isFragment = P, me.isLazy = Q, me.isMemo = F, me.isPortal = re, me.isProfiler = le, me.isStrictMode = ee, me.isSuspense = be, me.isValidElementType = M, me.typeOf = S;
|
|
897
897
|
}()), me;
|
|
898
898
|
}
|
|
899
899
|
var _i;
|
|
@@ -1069,7 +1069,7 @@ function gl() {
|
|
|
1069
1069
|
m.prototype = Error.prototype;
|
|
1070
1070
|
function v(w) {
|
|
1071
1071
|
if (process.env.NODE_ENV !== "production")
|
|
1072
|
-
var I = {},
|
|
1072
|
+
var I = {}, X = 0;
|
|
1073
1073
|
function H(P, Q, F, re, le, ee, be) {
|
|
1074
1074
|
if (re = re || f, ee = ee || F, be !== n) {
|
|
1075
1075
|
if (l) {
|
|
@@ -1080,9 +1080,9 @@ function gl() {
|
|
|
1080
1080
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1081
1081
|
var we = re + ":" + F;
|
|
1082
1082
|
!I[we] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1083
|
-
|
|
1083
|
+
X < 3 && (s(
|
|
1084
1084
|
"You are manually calling a React.PropTypes validation function for the `" + ee + "` prop on `" + re + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1085
|
-
), I[we] = !0,
|
|
1085
|
+
), I[we] = !0, X++);
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
return Q[F] == null ? P ? Q[F] === null ? new m("The " + le + " `" + ee + "` is marked as required " + ("in `" + re + "`, but its value is `null`.")) : new m("The " + le + " `" + ee + "` is marked as required in " + ("`" + re + "`, but its value is `undefined`.")) : null : w(Q, F, re, le, ee);
|
|
@@ -1091,8 +1091,8 @@ function gl() {
|
|
|
1091
1091
|
return D.isRequired = H.bind(null, !0), D;
|
|
1092
1092
|
}
|
|
1093
1093
|
function b(w) {
|
|
1094
|
-
function I(
|
|
1095
|
-
var re =
|
|
1094
|
+
function I(X, H, D, P, Q, F) {
|
|
1095
|
+
var re = X[H], le = G(re);
|
|
1096
1096
|
if (le !== w) {
|
|
1097
1097
|
var ee = y(re);
|
|
1098
1098
|
return new m(
|
|
@@ -1108,10 +1108,10 @@ function gl() {
|
|
|
1108
1108
|
return v(o);
|
|
1109
1109
|
}
|
|
1110
1110
|
function M(w) {
|
|
1111
|
-
function I(
|
|
1111
|
+
function I(X, H, D, P, Q) {
|
|
1112
1112
|
if (typeof w != "function")
|
|
1113
1113
|
return new m("Property `" + Q + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
|
|
1114
|
-
var F =
|
|
1114
|
+
var F = X[H];
|
|
1115
1115
|
if (!Array.isArray(F)) {
|
|
1116
1116
|
var re = G(F);
|
|
1117
1117
|
return new m("Invalid " + P + " `" + Q + "` of type " + ("`" + re + "` supplied to `" + D + "`, expected an array."));
|
|
@@ -1126,8 +1126,8 @@ function gl() {
|
|
|
1126
1126
|
return v(I);
|
|
1127
1127
|
}
|
|
1128
1128
|
function S() {
|
|
1129
|
-
function w(I,
|
|
1130
|
-
var Q = I[
|
|
1129
|
+
function w(I, X, H, D, P) {
|
|
1130
|
+
var Q = I[X];
|
|
1131
1131
|
if (!a(Q)) {
|
|
1132
1132
|
var F = G(Q);
|
|
1133
1133
|
return new m("Invalid " + D + " `" + P + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected a single ReactElement."));
|
|
@@ -1137,8 +1137,8 @@ function gl() {
|
|
|
1137
1137
|
return v(w);
|
|
1138
1138
|
}
|
|
1139
1139
|
function q() {
|
|
1140
|
-
function w(I,
|
|
1141
|
-
var Q = I[
|
|
1140
|
+
function w(I, X, H, D, P) {
|
|
1141
|
+
var Q = I[X];
|
|
1142
1142
|
if (!t.isValidElementType(Q)) {
|
|
1143
1143
|
var F = G(Q);
|
|
1144
1144
|
return new m("Invalid " + D + " `" + P + "` of type " + ("`" + F + "` supplied to `" + H + "`, expected a single ReactElement type."));
|
|
@@ -1148,9 +1148,9 @@ function gl() {
|
|
|
1148
1148
|
return v(w);
|
|
1149
1149
|
}
|
|
1150
1150
|
function T(w) {
|
|
1151
|
-
function I(
|
|
1152
|
-
if (!(
|
|
1153
|
-
var F = w.name || f, re = U(
|
|
1151
|
+
function I(X, H, D, P, Q) {
|
|
1152
|
+
if (!(X[H] instanceof w)) {
|
|
1153
|
+
var F = w.name || f, re = U(X[H]);
|
|
1154
1154
|
return new m("Invalid " + P + " `" + Q + "` of type " + ("`" + re + "` supplied to `" + D + "`, expected ") + ("instance of `" + F + "`."));
|
|
1155
1155
|
}
|
|
1156
1156
|
return null;
|
|
@@ -1162,8 +1162,8 @@ function gl() {
|
|
|
1162
1162
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
1163
1163
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1164
1164
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1165
|
-
function I(
|
|
1166
|
-
for (var F =
|
|
1165
|
+
function I(X, H, D, P, Q) {
|
|
1166
|
+
for (var F = X[H], re = 0; re < w.length; re++)
|
|
1167
1167
|
if (g(F, w[re]))
|
|
1168
1168
|
return null;
|
|
1169
1169
|
var le = JSON.stringify(w, function(be, R) {
|
|
@@ -1175,10 +1175,10 @@ function gl() {
|
|
|
1175
1175
|
return v(I);
|
|
1176
1176
|
}
|
|
1177
1177
|
function k(w) {
|
|
1178
|
-
function I(
|
|
1178
|
+
function I(X, H, D, P, Q) {
|
|
1179
1179
|
if (typeof w != "function")
|
|
1180
1180
|
return new m("Property `" + Q + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
|
|
1181
|
-
var F =
|
|
1181
|
+
var F = X[H], re = G(F);
|
|
1182
1182
|
if (re !== "object")
|
|
1183
1183
|
return new m("Invalid " + P + " `" + Q + "` of type " + ("`" + re + "` supplied to `" + D + "`, expected an object."));
|
|
1184
1184
|
for (var le in F)
|
|
@@ -1195,10 +1195,10 @@ function gl() {
|
|
|
1195
1195
|
if (!Array.isArray(w))
|
|
1196
1196
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
1197
1197
|
for (var I = 0; I < w.length; I++) {
|
|
1198
|
-
var
|
|
1199
|
-
if (typeof
|
|
1198
|
+
var X = w[I];
|
|
1199
|
+
if (typeof X != "function")
|
|
1200
1200
|
return s(
|
|
1201
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(
|
|
1201
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(X) + " at index " + I + "."
|
|
1202
1202
|
), o;
|
|
1203
1203
|
}
|
|
1204
1204
|
function H(D, P, Q, F, re) {
|
|
@@ -1214,19 +1214,19 @@ function gl() {
|
|
|
1214
1214
|
return v(H);
|
|
1215
1215
|
}
|
|
1216
1216
|
function W() {
|
|
1217
|
-
function w(I,
|
|
1218
|
-
return E(I[
|
|
1217
|
+
function w(I, X, H, D, P) {
|
|
1218
|
+
return E(I[X]) ? null : new m("Invalid " + D + " `" + P + "` supplied to " + ("`" + H + "`, expected a ReactNode."));
|
|
1219
1219
|
}
|
|
1220
1220
|
return v(w);
|
|
1221
1221
|
}
|
|
1222
|
-
function z(w, I,
|
|
1222
|
+
function z(w, I, X, H, D) {
|
|
1223
1223
|
return new m(
|
|
1224
|
-
(w || "React class") + ": " + I + " type `" +
|
|
1224
|
+
(w || "React class") + ": " + I + " type `" + X + "." + H + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
1225
1225
|
);
|
|
1226
1226
|
}
|
|
1227
1227
|
function j(w) {
|
|
1228
|
-
function I(
|
|
1229
|
-
var F =
|
|
1228
|
+
function I(X, H, D, P, Q) {
|
|
1229
|
+
var F = X[H], re = G(F);
|
|
1230
1230
|
if (re !== "object")
|
|
1231
1231
|
return new m("Invalid " + P + " `" + Q + "` of type `" + re + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1232
1232
|
for (var le in w) {
|
|
@@ -1242,18 +1242,18 @@ function gl() {
|
|
|
1242
1242
|
return v(I);
|
|
1243
1243
|
}
|
|
1244
1244
|
function B(w) {
|
|
1245
|
-
function I(
|
|
1246
|
-
var F =
|
|
1245
|
+
function I(X, H, D, P, Q) {
|
|
1246
|
+
var F = X[H], re = G(F);
|
|
1247
1247
|
if (re !== "object")
|
|
1248
1248
|
return new m("Invalid " + P + " `" + Q + "` of type `" + re + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1249
|
-
var le = e({},
|
|
1249
|
+
var le = e({}, X[H], w);
|
|
1250
1250
|
for (var ee in le) {
|
|
1251
1251
|
var be = w[ee];
|
|
1252
1252
|
if (r(w, ee) && typeof be != "function")
|
|
1253
1253
|
return z(D, P, Q, ee, y(be));
|
|
1254
1254
|
if (!be)
|
|
1255
1255
|
return new m(
|
|
1256
|
-
"Invalid " + P + " `" + Q + "` key `" + ee + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(
|
|
1256
|
+
"Invalid " + P + " `" + Q + "` key `" + ee + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify(X[H], null, " ") + `
|
|
1257
1257
|
Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
1258
1258
|
);
|
|
1259
1259
|
var R = be(F, ee, D, P, Q + "." + ee, n);
|
|
@@ -1279,13 +1279,13 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1279
1279
|
return !0;
|
|
1280
1280
|
var I = c(w);
|
|
1281
1281
|
if (I) {
|
|
1282
|
-
var
|
|
1282
|
+
var X = I.call(w), H;
|
|
1283
1283
|
if (I !== w.entries) {
|
|
1284
|
-
for (; !(H =
|
|
1284
|
+
for (; !(H = X.next()).done; )
|
|
1285
1285
|
if (!E(H.value))
|
|
1286
1286
|
return !1;
|
|
1287
1287
|
} else
|
|
1288
|
-
for (; !(H =
|
|
1288
|
+
for (; !(H = X.next()).done; ) {
|
|
1289
1289
|
var D = H.value;
|
|
1290
1290
|
if (D && !E(D[1]))
|
|
1291
1291
|
return !1;
|
|
@@ -8056,26 +8056,26 @@ const Yd = ({
|
|
|
8056
8056
|
generateCDN: k,
|
|
8057
8057
|
cdnUrl: Y
|
|
8058
8058
|
}) => {
|
|
8059
|
-
const [W, z] = _(!1), [j, B] = _(""), [E, L] = _(!1), [G, y] = _(!1), [K, U] = _(!1), [w, I] = _("download"), [
|
|
8059
|
+
const [W, z] = _(!1), [j, B] = _(""), [E, L] = _(!1), [G, y] = _(!1), [K, U] = _(!1), [w, I] = _("download"), [X, H] = _(!1), [D, P] = _(!1), [Q, F] = _(!1), [re, le] = Ne(ki), [ee, be] = Ne(pn), R = l === "Playable" ? ee : !0, we = {
|
|
8060
8060
|
cdn: "Generate Link",
|
|
8061
8061
|
adikteev: "Copy CDN"
|
|
8062
8062
|
}, Me = () => {
|
|
8063
8063
|
n(t);
|
|
8064
|
-
}, Ee = async ($,
|
|
8064
|
+
}, Ee = async ($, ae) => {
|
|
8065
8065
|
const ge = {
|
|
8066
8066
|
molocoGenerateHtml: !1,
|
|
8067
8067
|
urlType: T
|
|
8068
8068
|
};
|
|
8069
|
-
if (
|
|
8069
|
+
if (V && (ae === "copy" ? (P(!0), ae = "download", ge.molocoGenerateHtml = !0) : H(!0)), console.log("getVersion", $, ae, ge), $ === "cdn") {
|
|
8070
8070
|
x(!0), await k(!0);
|
|
8071
8071
|
return;
|
|
8072
8072
|
}
|
|
8073
|
-
return $ === "adikteev" && (
|
|
8073
|
+
return $ === "adikteev" && (ae = "copy"), z(!0), new Promise((Bt, kt) => {
|
|
8074
8074
|
ln(
|
|
8075
8075
|
A,
|
|
8076
8076
|
$,
|
|
8077
8077
|
R ? p : null,
|
|
8078
|
-
|
|
8078
|
+
ae,
|
|
8079
8079
|
q,
|
|
8080
8080
|
ge
|
|
8081
8081
|
).then((it) => {
|
|
@@ -8086,10 +8086,10 @@ const Yd = ({
|
|
|
8086
8086
|
});
|
|
8087
8087
|
}, Je = async ($ = !1) => {
|
|
8088
8088
|
$ ? P(!0) : H(!0);
|
|
8089
|
-
const
|
|
8089
|
+
const ae = {
|
|
8090
8090
|
molocoGenerateHtml: !1
|
|
8091
8091
|
};
|
|
8092
|
-
$ && (
|
|
8092
|
+
$ && (ae.molocoGenerateHtml = !0), ln(A, i, R ? p : null, "download", q, ae).then((ge) => {
|
|
8093
8093
|
$ ? P(!1) : H(!1), U(!1);
|
|
8094
8094
|
}).catch((ge) => {
|
|
8095
8095
|
c(ge.message, ge);
|
|
@@ -8097,9 +8097,9 @@ const Yd = ({
|
|
|
8097
8097
|
}, J = async () => {
|
|
8098
8098
|
F(!0);
|
|
8099
8099
|
const $ = await Rd(u, A, i, l);
|
|
8100
|
-
let
|
|
8101
|
-
Dt(
|
|
8102
|
-
},
|
|
8100
|
+
let ae = `${f}/${$ == null ? void 0 : $.url}`;
|
|
8101
|
+
Dt(ae) ? (Lt(ue.t("common:link_copied")), F(!1)) : S(ae);
|
|
8102
|
+
}, V = i === "moloco" || i === "molocoV2", oe = re.find(($) => $.name === i);
|
|
8103
8103
|
return /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8104
8104
|
/* @__PURE__ */ d.jsxs(
|
|
8105
8105
|
"div",
|
|
@@ -8225,20 +8225,20 @@ const Yd = ({
|
|
|
8225
8225
|
/* @__PURE__ */ d.jsx(
|
|
8226
8226
|
jr,
|
|
8227
8227
|
{
|
|
8228
|
-
className: `${
|
|
8228
|
+
className: `${V ? "w-1/2" : "w-2/3"} border-hover-` + l,
|
|
8229
8229
|
downloading: W,
|
|
8230
8230
|
onClickDonwload: async ($) => {
|
|
8231
|
-
if ($.stopPropagation(),
|
|
8231
|
+
if ($.stopPropagation(), V && M.customer === "playableFactoryInternal") {
|
|
8232
8232
|
U(!0);
|
|
8233
8233
|
return;
|
|
8234
8234
|
} else {
|
|
8235
8235
|
B("download");
|
|
8236
|
-
const
|
|
8237
|
-
i === "cdn" && v && v.willSpendCredit && !Y || i !== "cdn" && v && v.willSpendCredit ? (m(!0), I("download"), L(!0)) : ["Playable", "Flex"].includes(l) && (!
|
|
8236
|
+
const ae = p.iosUrl, ge = p.googleUrl;
|
|
8237
|
+
i === "cdn" && v && v.willSpendCredit && !Y || i !== "cdn" && v && v.willSpendCredit ? (m(!0), I("download"), L(!0)) : ["Playable", "Flex"].includes(l) && (!ae || !ge) || l === "Ready" && T === "single" && !ae || l === "Ready" && T === "multi" && (!ae || !ge) ? (m(!0), y(!0)) : (y(!1), L(!1), await Ee(i, "download"));
|
|
8238
8238
|
}
|
|
8239
8239
|
},
|
|
8240
|
-
children:
|
|
8241
|
-
!
|
|
8240
|
+
children: V ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8241
|
+
!X && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8242
8242
|
/* @__PURE__ */ d.jsx(
|
|
8243
8243
|
zr,
|
|
8244
8244
|
{
|
|
@@ -8256,7 +8256,7 @@ const Yd = ({
|
|
|
8256
8256
|
),
|
|
8257
8257
|
M.customer !== "playableFactoryInternal" ? ue.t("common:txt") : ue.t("common:download")
|
|
8258
8258
|
] }),
|
|
8259
|
-
|
|
8259
|
+
X && /* @__PURE__ */ d.jsx(sn, {})
|
|
8260
8260
|
] }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8261
8261
|
!W && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8262
8262
|
/* @__PURE__ */ d.jsx(
|
|
@@ -8280,27 +8280,27 @@ const Yd = ({
|
|
|
8280
8280
|
] })
|
|
8281
8281
|
}
|
|
8282
8282
|
),
|
|
8283
|
-
|
|
8283
|
+
oe && oe.downloadType.includes("copy") && /* @__PURE__ */ d.jsx(
|
|
8284
8284
|
jr,
|
|
8285
8285
|
{
|
|
8286
8286
|
className: "w-1/3 border-hover-" + l,
|
|
8287
8287
|
onClickDonwload: async ($) => {
|
|
8288
8288
|
$.stopPropagation(), B("copyLink");
|
|
8289
|
-
const
|
|
8290
|
-
v && (v != null && v.willSpendCredit) ? (I("copy"), m(!0), L(!0)) : l !== "Import" && (!
|
|
8289
|
+
const ae = p.iosUrl, ge = p.googleUrl;
|
|
8290
|
+
v && (v != null && v.willSpendCredit) ? (I("copy"), m(!0), L(!0)) : l !== "Import" && (!ae || !ge) ? (m(!0), y(!0)) : (L(!1), y(!1), await Ee(i, "copy"));
|
|
8291
8291
|
},
|
|
8292
8292
|
disabled: Z,
|
|
8293
8293
|
children: /* @__PURE__ */ d.jsx(bo, { className: "h-6 w-6 stroke-dark-full" })
|
|
8294
8294
|
}
|
|
8295
8295
|
),
|
|
8296
|
-
|
|
8296
|
+
V && M.customer !== "playableFactoryInternal" && /* @__PURE__ */ d.jsxs(
|
|
8297
8297
|
jr,
|
|
8298
8298
|
{
|
|
8299
8299
|
className: "w-1/2 border-hover-" + l,
|
|
8300
8300
|
onClickDonwload: async ($) => {
|
|
8301
8301
|
$.stopPropagation(), B("copyLink");
|
|
8302
|
-
const
|
|
8303
|
-
v && (v != null && v.willSpendCredit) ? (I("download"), m(!0), L(!0)) : l !== "Import" && (!
|
|
8302
|
+
const ae = p.iosUrl, ge = p.googleUrl;
|
|
8303
|
+
v && (v != null && v.willSpendCredit) ? (I("download"), m(!0), L(!0)) : l !== "Import" && (!ae || !ge) ? (m(!0), y(!0)) : (L(!1), y(!1), await Je(!0));
|
|
8304
8304
|
},
|
|
8305
8305
|
disabled: Z,
|
|
8306
8306
|
children: [
|
|
@@ -8375,7 +8375,7 @@ const Yd = ({
|
|
|
8375
8375
|
},
|
|
8376
8376
|
handleDownload: Je,
|
|
8377
8377
|
handleDownloadMolocoTest: J,
|
|
8378
|
-
downloadingMoloco:
|
|
8378
|
+
downloadingMoloco: X,
|
|
8379
8379
|
donwloadintMolocoTest: Q,
|
|
8380
8380
|
downloadingMolocoHtml: D
|
|
8381
8381
|
}
|
|
@@ -8791,38 +8791,38 @@ const Yd = ({
|
|
|
8791
8791
|
setCdnUrl: S,
|
|
8792
8792
|
customer: q
|
|
8793
8793
|
}) => {
|
|
8794
|
-
const [T, x] = _([]), [k, Y] = _([]), [W, z] = _(!1), [j, B] = _(""), [E, L] = _(!1), [G, y] = _(!1), [K, U] = _("download"), [w, I] = _(!1), [
|
|
8795
|
-
|
|
8796
|
-
S(
|
|
8797
|
-
}).catch((
|
|
8798
|
-
a(
|
|
8794
|
+
const [T, x] = _([]), [k, Y] = _([]), [W, z] = _(!1), [j, B] = _(""), [E, L] = _(!1), [G, y] = _(!1), [K, U] = _("download"), [w, I] = _(!1), [X, H] = _(!1), [D, P] = _(!1), [Q, F] = Ne(ua), [re, le] = Ne(Aa), [ee] = Ne(ki), [be, R] = Ne(pn), we = i === "Playable" ? be : !0, Me = async (V = !1) => {
|
|
8795
|
+
V && M || D || (P(!0), ln(r, "cdn", we ? A : null, null, !1, {}).then((oe) => {
|
|
8796
|
+
S(oe.url), P(!1);
|
|
8797
|
+
}).catch((oe) => {
|
|
8798
|
+
a(oe.message, oe), P(!1);
|
|
8799
8799
|
}));
|
|
8800
|
-
}, Ee = async (
|
|
8801
|
-
if (
|
|
8800
|
+
}, Ee = async (V) => {
|
|
8801
|
+
if (V === "adikteev")
|
|
8802
8802
|
return;
|
|
8803
|
-
const
|
|
8804
|
-
if (T.includes(
|
|
8805
|
-
const $ =
|
|
8806
|
-
|
|
8803
|
+
const oe = [...T];
|
|
8804
|
+
if (T.includes(V)) {
|
|
8805
|
+
const $ = oe.findIndex((ae) => ae === V);
|
|
8806
|
+
oe.splice($, 1), x(oe);
|
|
8807
8807
|
} else
|
|
8808
|
-
|
|
8809
|
-
ee.filter(($) => [...
|
|
8810
|
-
}, Je = async () => new Promise(async (
|
|
8811
|
-
const $ = ee.filter((
|
|
8812
|
-
L(!0), od(r, A, $, { urlType: m }).then((
|
|
8813
|
-
L(!1),
|
|
8814
|
-
}).catch((
|
|
8815
|
-
console.log("get multi download err"), L(!1), a(
|
|
8808
|
+
oe.push(V), x([...T, V]);
|
|
8809
|
+
ee.filter(($) => [...oe].includes($.id)).map(($) => $.name);
|
|
8810
|
+
}, Je = async () => new Promise(async (V, oe) => {
|
|
8811
|
+
const $ = ee.filter((ae) => [...T].includes(ae.id)).map((ae) => ae.name);
|
|
8812
|
+
L(!0), od(r, A, $, { urlType: m }).then((ae) => {
|
|
8813
|
+
L(!1), V(ae);
|
|
8814
|
+
}).catch((ae) => {
|
|
8815
|
+
console.log("get multi download err"), L(!1), a(ae.message, ae), oe(ae);
|
|
8816
8816
|
});
|
|
8817
8817
|
}), J = async () => {
|
|
8818
8818
|
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), U("download"), I(!0)) : (I(!1), await Je());
|
|
8819
8819
|
};
|
|
8820
8820
|
return Ze(() => {
|
|
8821
|
-
const
|
|
8821
|
+
const V = ee.filter((oe) => {
|
|
8822
8822
|
var $;
|
|
8823
|
-
return e && (($ = e == null ? void 0 : e.networks) == null ? void 0 : $.length) > 0 ? e == null ? void 0 : e.networks.includes(
|
|
8824
|
-
}).filter((
|
|
8825
|
-
x(v ?
|
|
8823
|
+
return e && (($ = e == null ? void 0 : e.networks) == null ? void 0 : $.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((ae) => ae.status === "paid").some((ae) => ae.name === oe.name) : (t == null ? void 0 : t.networks.includes(oe.name)) || (u == null ? void 0 : u.networks.includes(oe.name));
|
|
8824
|
+
}).filter((oe) => oe.name === "voodoo" ? o.customer === "customer:20" : !0).map((oe) => oe.id);
|
|
8825
|
+
x(v ? V : []);
|
|
8826
8826
|
}, [v]), /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
8827
8827
|
/* @__PURE__ */ d.jsx(
|
|
8828
8828
|
"div",
|
|
@@ -8844,28 +8844,28 @@ const Yd = ({
|
|
|
8844
8844
|
overflowY: "auto",
|
|
8845
8845
|
padding: "0.75rem"
|
|
8846
8846
|
},
|
|
8847
|
-
children: n && ee.filter((
|
|
8848
|
-
var
|
|
8849
|
-
return e && ((
|
|
8847
|
+
children: n && ee.filter((V) => {
|
|
8848
|
+
var oe;
|
|
8849
|
+
return e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0 ? typeof V == "string" ? e == null ? void 0 : e.networks.includes(V) : e == null ? void 0 : e.networks.includes(V.name) : i === "Import" ? t == null ? void 0 : t.networks.filter(($) => $.status === "paid").some(($) => $.name === V.name) : q != null && q.networks ? q.networks.includes(V.name) : (t == null ? void 0 : t.networks.includes(V.name)) || (u == null ? void 0 : u.networks.includes(V.name));
|
|
8850
8850
|
}).filter(
|
|
8851
|
-
(
|
|
8852
|
-
).map((
|
|
8853
|
-
let
|
|
8854
|
-
if (
|
|
8851
|
+
(V) => V.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
8852
|
+
).map((V) => {
|
|
8853
|
+
let oe = V.imageSrc;
|
|
8854
|
+
if (V.name === "web") {
|
|
8855
8855
|
let $ = "web_" + i.toLowerCase() + ".png";
|
|
8856
|
-
|
|
8856
|
+
oe = oe.replace("web.png", $);
|
|
8857
8857
|
}
|
|
8858
8858
|
return /* @__PURE__ */ d.jsx(
|
|
8859
8859
|
Yd,
|
|
8860
8860
|
{
|
|
8861
|
-
id:
|
|
8862
|
-
name:
|
|
8863
|
-
imageUrl:
|
|
8864
|
-
selected: T.includes(
|
|
8861
|
+
id: V.id,
|
|
8862
|
+
name: V.name,
|
|
8863
|
+
imageUrl: oe,
|
|
8864
|
+
selected: T.includes(V.id),
|
|
8865
8865
|
handleCardClick: Ee,
|
|
8866
8866
|
networkVersionSize: k,
|
|
8867
8867
|
fileSizeLoading: W,
|
|
8868
|
-
showCheckBox:
|
|
8868
|
+
showCheckBox: V.id !== "adikteev",
|
|
8869
8869
|
typeOfProduct: i,
|
|
8870
8870
|
versionId: r,
|
|
8871
8871
|
api: s,
|
|
@@ -8885,7 +8885,7 @@ const Yd = ({
|
|
|
8885
8885
|
generateCDN: Me,
|
|
8886
8886
|
cdnUrl: M
|
|
8887
8887
|
},
|
|
8888
|
-
|
|
8888
|
+
V.id
|
|
8889
8889
|
);
|
|
8890
8890
|
})
|
|
8891
8891
|
}
|
|
@@ -8948,7 +8948,7 @@ const Yd = ({
|
|
|
8948
8948
|
url: Q
|
|
8949
8949
|
}
|
|
8950
8950
|
),
|
|
8951
|
-
|
|
8951
|
+
X && /* @__PURE__ */ d.jsx(
|
|
8952
8952
|
ni,
|
|
8953
8953
|
{
|
|
8954
8954
|
width: "100%",
|
|
@@ -9056,7 +9056,7 @@ const Fd = ({
|
|
|
9056
9056
|
}) => {
|
|
9057
9057
|
const [M, S] = _(null), [q, T] = _(null), [x, k] = _(null), [Y, W] = _(!1), [z, j] = _(!0), [B, E] = _(window.innerWidth), [L, G] = _(!1), [y, K] = _(!1), [U, w] = _("");
|
|
9058
9058
|
Ne(ua), Ne(Aa);
|
|
9059
|
-
const [I,
|
|
9059
|
+
const [I, X] = Ne(ca), [H, D] = Ne(pn);
|
|
9060
9060
|
Ze(() => {
|
|
9061
9061
|
!U && r !== "Fusion" && ud(e).then((J) => {
|
|
9062
9062
|
J != null && J.exist && w(J.uploadPath);
|
|
@@ -9076,18 +9076,18 @@ const Fd = ({
|
|
|
9076
9076
|
W(!0);
|
|
9077
9077
|
const J = await $r(t, s);
|
|
9078
9078
|
return J != null && J.networks || (J.networks = Ps), S(J), J;
|
|
9079
|
-
}, re = (J,
|
|
9079
|
+
}, re = (J, V) => {
|
|
9080
9080
|
clearTimeout(Hs), Hs = setTimeout(() => {
|
|
9081
|
-
r === "Playable" && !H || Li(e, { iosUrl: J, googleUrl:
|
|
9081
|
+
r === "Playable" && !H || Li(e, { iosUrl: J, googleUrl: V }, { urlType: b });
|
|
9082
9082
|
}, 1e3);
|
|
9083
9083
|
}, le = (J) => {
|
|
9084
9084
|
m(J), re(J, g);
|
|
9085
9085
|
}, ee = (J) => {
|
|
9086
9086
|
v(J), re(p, J);
|
|
9087
|
-
}, be = async (J,
|
|
9088
|
-
var
|
|
9087
|
+
}, be = async (J, V) => {
|
|
9088
|
+
var oe, $;
|
|
9089
9089
|
try {
|
|
9090
|
-
let
|
|
9090
|
+
let ae;
|
|
9091
9091
|
if (r === "Playable" || r === "Ready") {
|
|
9092
9092
|
const ge = await Bd(e, s);
|
|
9093
9093
|
if (ge) {
|
|
@@ -9098,12 +9098,12 @@ const Fd = ({
|
|
|
9098
9098
|
m(J.iosUrl), v(J.googleUrl), W(!1);
|
|
9099
9099
|
return;
|
|
9100
9100
|
}
|
|
9101
|
-
if (
|
|
9102
|
-
const Bt = `${A}/${
|
|
9101
|
+
if (V && V.html) {
|
|
9102
|
+
const Bt = `${A}/${V.html}?t=${Date.now()}`;
|
|
9103
9103
|
let kt = await fetch(Bt).then((gt) => gt.text());
|
|
9104
|
-
const it = ((
|
|
9104
|
+
const it = ((oe = kt.match(
|
|
9105
9105
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
9106
|
-
)) == null ? void 0 :
|
|
9106
|
+
)) == null ? void 0 : oe.at(1)) || "";
|
|
9107
9107
|
m(it);
|
|
9108
9108
|
const mn = (($ = kt.match(
|
|
9109
9109
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
@@ -9120,8 +9120,8 @@ const Fd = ({
|
|
|
9120
9120
|
J && (J.iosUrl || J.googleUrl) ? (m(J.iosUrl), v(J.googleUrl), W(!1)) : (v(""), m(""), W(!1));
|
|
9121
9121
|
} else
|
|
9122
9122
|
r === "Fusion" && (J && (J.iosUrl || J.googleUrl) ? (m(J.iosUrl), v(J.googleUrl), W(!1)) : (v(""), m(""), W(!1)));
|
|
9123
|
-
} catch (
|
|
9124
|
-
l(
|
|
9123
|
+
} catch (ae) {
|
|
9124
|
+
l(ae.response.data.error.msg);
|
|
9125
9125
|
}
|
|
9126
9126
|
}, R = async () => {
|
|
9127
9127
|
W(!0);
|
|
@@ -9139,23 +9139,23 @@ const Fd = ({
|
|
|
9139
9139
|
}, we = async () => await Hd(n, s), [Me, Ee] = _(null), Je = async (J) => await Qd(J, s);
|
|
9140
9140
|
return Ze(() => {
|
|
9141
9141
|
i || (S(null), T(null), k(null), c(null), Ee(null)), i && (r === "Playable" ? we().then((J) => {
|
|
9142
|
-
Je(J.customer).then((
|
|
9143
|
-
Ee(
|
|
9144
|
-
}), F().then((
|
|
9145
|
-
be(null,
|
|
9142
|
+
Je(J.customer).then((V) => {
|
|
9143
|
+
Ee(V);
|
|
9144
|
+
}), F().then((V) => {
|
|
9145
|
+
be(null, V);
|
|
9146
9146
|
}), j(!1);
|
|
9147
9147
|
}) : r === "Ready" ? R().then((J) => {
|
|
9148
|
-
F().then((
|
|
9149
|
-
be(null,
|
|
9148
|
+
F().then((V) => {
|
|
9149
|
+
be(null, V), j(!1);
|
|
9150
9150
|
});
|
|
9151
9151
|
}) : r === "Flex" ? R().then((J) => {
|
|
9152
|
-
j(!1), we().then((
|
|
9153
|
-
i && (be(
|
|
9152
|
+
j(!1), we().then((V) => {
|
|
9153
|
+
i && (be(V, null), j(!1), T(V));
|
|
9154
9154
|
});
|
|
9155
9155
|
}) : r === "Import" ? Xd(e, s).then((J) => {
|
|
9156
9156
|
S(J), m(J.iosUrl || ""), v(J.googleUrl || ""), W(!1), j(!1);
|
|
9157
9157
|
}) : r === "Fusion" && (j(!1), we().then((J) => {
|
|
9158
|
-
i && (be(J, null), j(!1), J.networks = I.filter((
|
|
9158
|
+
i && (be(J, null), j(!1), J.networks = I.filter((V) => V !== "cdn"), T(J));
|
|
9159
9159
|
})));
|
|
9160
9160
|
}, [n, t, e, i]), /* @__PURE__ */ d.jsxs(
|
|
9161
9161
|
"div",
|
|
@@ -9752,8 +9752,8 @@ Yf.default.subscribe(Tf);
|
|
|
9752
9752
|
}, y.setContentRef = function(K) {
|
|
9753
9753
|
y.content = K, y.props.contentRef && y.props.contentRef(K);
|
|
9754
9754
|
}, y.afterClose = function() {
|
|
9755
|
-
var K = y.props, U = K.appElement, w = K.ariaHideApp, I = K.htmlOpenClassName,
|
|
9756
|
-
|
|
9755
|
+
var K = y.props, U = K.appElement, w = K.ariaHideApp, I = K.htmlOpenClassName, X = K.bodyOpenClassName, H = K.parentSelector, D = H && H().ownerDocument || document;
|
|
9756
|
+
X && m.remove(D.body, X), I && m.remove(D.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(U)), 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);
|
|
9757
9757
|
}, y.open = function() {
|
|
9758
9758
|
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() {
|
|
9759
9759
|
y.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -9833,14 +9833,14 @@ Yf.default.subscribe(Tf);
|
|
|
9833
9833
|
}, {
|
|
9834
9834
|
key: "beforeOpen",
|
|
9835
9835
|
value: function() {
|
|
9836
|
-
var y = this.props, K = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName,
|
|
9836
|
+
var y = this.props, K = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, X = y.parentSelector, H = X && X().ownerDocument || document;
|
|
9837
9837
|
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), U && (j += 1, p.hide(K)), M.default.register(this);
|
|
9838
9838
|
}
|
|
9839
9839
|
// Don't steal focus from inner elements
|
|
9840
9840
|
}, {
|
|
9841
9841
|
key: "render",
|
|
9842
9842
|
value: function() {
|
|
9843
|
-
var y = this.props, K = y.id, U = y.className, w = y.overlayClassName, I = y.defaultStyles,
|
|
9843
|
+
var y = this.props, K = y.id, U = y.className, w = y.overlayClassName, I = y.defaultStyles, X = y.children, H = U ? {} : I.content, D = w ? {} : I.overlay;
|
|
9844
9844
|
if (this.shouldBeClosed())
|
|
9845
9845
|
return null;
|
|
9846
9846
|
var P = {
|
|
@@ -9863,7 +9863,7 @@ Yf.default.subscribe(Tf);
|
|
|
9863
9863
|
"aria-label": this.props.contentLabel
|
|
9864
9864
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
9865
9865
|
"data-testid": this.props.testId
|
|
9866
|
-
}), F = this.props.contentElement(Q,
|
|
9866
|
+
}), F = this.props.contentElement(Q, X);
|
|
9867
9867
|
return this.props.overlayElement(P, F);
|
|
9868
9868
|
}
|
|
9869
9869
|
}]), L;
|
|
@@ -12840,7 +12840,7 @@ const lh = ({
|
|
|
12840
12840
|
copyLinkUrl: p,
|
|
12841
12841
|
fusionData: g
|
|
12842
12842
|
}) => {
|
|
12843
|
-
const [m, v] = _(window.innerWidth), [b, Z] = _(!1), [M, S] = _(u), [q, T] = _(!1), [x, k] = _(!0), [Y, W] = _(null), [z, j] = _(""), [B, E] = _("Loading..."), [L, G] = _("Loading..."), [y, K] = _("game"), [U, w] = Ne(ki), [I,
|
|
12843
|
+
const [m, v] = _(window.innerWidth), [b, Z] = _(!1), [M, S] = _(u), [q, T] = _(!1), [x, k] = _(!0), [Y, W] = _(null), [z, j] = _(""), [B, E] = _("Loading..."), [L, G] = _("Loading..."), [y, K] = _("game"), [U, w] = Ne(ki), [I, X] = Ne(ca);
|
|
12844
12844
|
ad(o, a, j, f, g);
|
|
12845
12845
|
const H = async () => {
|
|
12846
12846
|
let D = await ih(a, o);
|
|
@@ -12848,7 +12848,7 @@ const lh = ({
|
|
|
12848
12848
|
id("Networks not found");
|
|
12849
12849
|
return;
|
|
12850
12850
|
}
|
|
12851
|
-
D = D.map((P) => (P.name = P.id, P)), w(D),
|
|
12851
|
+
D = D.map((P) => (P.name = P.id, P)), w(D), X(
|
|
12852
12852
|
D.map((P) => P.id).filter((P) => P !== "default")
|
|
12853
12853
|
), ld(D), ln(n, "preview", null, null, !1).then((P) => {
|
|
12854
12854
|
Z(!0), S(f + "/" + P.url), (o === "Flex" || o === "Ready" || o === "Playable" || o === "Fusion") && (P.size >= 5 ? T(!0) : T(!1), W(P.size)), k(!1);
|