gearboxdownloadmodal 8.0.2 → 8.0.4
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 +253 -253
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -77,10 +77,10 @@ function ul() {
|
|
|
77
77
|
{
|
|
78
78
|
for (var O = arguments.length, N = new Array(O > 1 ? O - 1 : 0), ee = 1; ee < O; ee++)
|
|
79
79
|
N[ee - 1] = arguments[ee];
|
|
80
|
-
|
|
80
|
+
k("error", h, N);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function k(h, O, N) {
|
|
84
84
|
{
|
|
85
85
|
var ee = b.ReactDebugCurrentFrame, fe = ee.getStackAddendum();
|
|
86
86
|
fe !== "" && (O += "%s", N = N.concat([fe]));
|
|
@@ -90,10 +90,10 @@ function ul() {
|
|
|
90
90
|
me.unshift("Warning: " + O), Function.prototype.apply.call(console[h], console, me);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var S = !1, q = !1, T = !1, x = !1,
|
|
93
|
+
var S = !1, q = !1, T = !1, x = !1, K = !1, Y;
|
|
94
94
|
Y = Symbol.for("react.module.reference");
|
|
95
95
|
function W(h) {
|
|
96
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === s ||
|
|
96
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === s || K || h === i || h === A || h === u || x || h === p || S || q || T || typeof h == "object" && h !== null && (h.$$typeof === f || h.$$typeof === d || h.$$typeof === o || h.$$typeof === a || h.$$typeof === l || // This needs to include all possible module reference object
|
|
97
97
|
// types supported by any Flight configuration anywhere since
|
|
98
98
|
// we don't know which Flight build this will end up being used
|
|
99
99
|
// with.
|
|
@@ -154,14 +154,14 @@ function ul() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var E = Object.assign, L = 0, G, y,
|
|
157
|
+
var E = Object.assign, L = 0, G, y, M, U, 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,
|
|
164
|
+
G = console.log, y = console.info, M = console.warn, U = console.error, w = console.group, I = console.groupCollapsed, V = console.groupEnd;
|
|
165
165
|
var h = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -197,10 +197,10 @@ function ul() {
|
|
|
197
197
|
value: y
|
|
198
198
|
}),
|
|
199
199
|
warn: E({}, h, {
|
|
200
|
-
value:
|
|
200
|
+
value: M
|
|
201
201
|
}),
|
|
202
202
|
error: E({}, h, {
|
|
203
|
-
value:
|
|
203
|
+
value: U
|
|
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 = {}, Q = b.ReactDebugCurrentFrame;
|
|
346
346
|
function oe(h) {
|
|
347
347
|
if (h) {
|
|
348
348
|
var O = h._owner, N = je(h.type, h._source, O ? O.type : null);
|
|
349
|
-
|
|
349
|
+
Q.setExtraStackFrame(N);
|
|
350
350
|
} else
|
|
351
|
-
|
|
351
|
+
Q.setExtraStackFrame(null);
|
|
352
352
|
}
|
|
353
353
|
function qe(h, O, N, ee, fe) {
|
|
354
354
|
{
|
|
@@ -743,7 +743,7 @@ function fl() {
|
|
|
743
743
|
return pe;
|
|
744
744
|
ts = 1;
|
|
745
745
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, Z = t ? Symbol.for("react.scope") : 60119;
|
|
746
|
-
function
|
|
746
|
+
function k(q) {
|
|
747
747
|
if (typeof q == "object" && q !== null) {
|
|
748
748
|
var T = q.$$typeof;
|
|
749
749
|
switch (T) {
|
|
@@ -774,35 +774,35 @@ function fl() {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
function S(q) {
|
|
777
|
-
return
|
|
777
|
+
return k(q) === A;
|
|
778
778
|
}
|
|
779
779
|
return pe.AsyncMode = l, pe.ConcurrentMode = A, pe.ContextConsumer = a, pe.ContextProvider = o, pe.Element = e, pe.ForwardRef = u, pe.Fragment = r, pe.Lazy = g, pe.Memo = p, pe.Portal = n, pe.Profiler = s, pe.StrictMode = i, pe.Suspense = d, pe.isAsyncMode = function(q) {
|
|
780
|
-
return S(q) ||
|
|
780
|
+
return S(q) || k(q) === l;
|
|
781
781
|
}, pe.isConcurrentMode = S, pe.isContextConsumer = function(q) {
|
|
782
|
-
return
|
|
782
|
+
return k(q) === a;
|
|
783
783
|
}, pe.isContextProvider = function(q) {
|
|
784
|
-
return
|
|
784
|
+
return k(q) === o;
|
|
785
785
|
}, pe.isElement = function(q) {
|
|
786
786
|
return typeof q == "object" && q !== null && q.$$typeof === e;
|
|
787
787
|
}, pe.isForwardRef = function(q) {
|
|
788
|
-
return
|
|
788
|
+
return k(q) === u;
|
|
789
789
|
}, pe.isFragment = function(q) {
|
|
790
|
-
return
|
|
790
|
+
return k(q) === r;
|
|
791
791
|
}, pe.isLazy = function(q) {
|
|
792
|
-
return
|
|
792
|
+
return k(q) === g;
|
|
793
793
|
}, pe.isMemo = function(q) {
|
|
794
|
-
return
|
|
794
|
+
return k(q) === p;
|
|
795
795
|
}, pe.isPortal = function(q) {
|
|
796
|
-
return
|
|
796
|
+
return k(q) === n;
|
|
797
797
|
}, pe.isProfiler = function(q) {
|
|
798
|
-
return
|
|
798
|
+
return k(q) === s;
|
|
799
799
|
}, pe.isStrictMode = function(q) {
|
|
800
|
-
return
|
|
800
|
+
return k(q) === i;
|
|
801
801
|
}, pe.isSuspense = function(q) {
|
|
802
|
-
return
|
|
802
|
+
return k(q) === d;
|
|
803
803
|
}, pe.isValidElementType = function(q) {
|
|
804
804
|
return typeof q == "string" || typeof q == "function" || q === r || q === A || q === s || q === i || q === d || q === f || typeof q == "object" && q !== null && (q.$$typeof === g || q.$$typeof === p || q.$$typeof === o || q.$$typeof === a || q.$$typeof === u || q.$$typeof === v || q.$$typeof === b || q.$$typeof === Z || q.$$typeof === m);
|
|
805
|
-
}, pe.typeOf =
|
|
805
|
+
}, pe.typeOf = k, pe;
|
|
806
806
|
}
|
|
807
807
|
var he = {};
|
|
808
808
|
/** @license React v16.13.1
|
|
@@ -817,7 +817,7 @@ var ns;
|
|
|
817
817
|
function pl() {
|
|
818
818
|
return ns || (ns = 1, process.env.NODE_ENV !== "production" && function() {
|
|
819
819
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, i = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, A = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, Z = t ? Symbol.for("react.scope") : 60119;
|
|
820
|
-
function
|
|
820
|
+
function k(R) {
|
|
821
821
|
return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
822
822
|
R === r || R === A || R === s || R === i || R === d || R === f || typeof R == "object" && R !== null && (R.$$typeof === g || R.$$typeof === p || R.$$typeof === o || R.$$typeof === a || R.$$typeof === u || R.$$typeof === v || R.$$typeof === b || R.$$typeof === Z || R.$$typeof === m);
|
|
823
823
|
}
|
|
@@ -853,9 +853,9 @@ function pl() {
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
var q = l, T = A, x = a,
|
|
857
|
-
function
|
|
858
|
-
return
|
|
856
|
+
var q = 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, M = !1;
|
|
857
|
+
function U(R) {
|
|
858
|
+
return M || (M = !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) {
|
|
861
861
|
return S(R) === A;
|
|
@@ -893,7 +893,7 @@ function pl() {
|
|
|
893
893
|
function ge(R) {
|
|
894
894
|
return S(R) === d;
|
|
895
895
|
}
|
|
896
|
-
he.AsyncMode = q, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider =
|
|
896
|
+
he.AsyncMode = q, 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 = U, 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 = k, he.typeOf = S;
|
|
897
897
|
}()), he;
|
|
898
898
|
}
|
|
899
899
|
var rs;
|
|
@@ -1049,12 +1049,12 @@ function gl() {
|
|
|
1049
1049
|
string: b("string"),
|
|
1050
1050
|
symbol: b("symbol"),
|
|
1051
1051
|
any: Z(),
|
|
1052
|
-
arrayOf:
|
|
1052
|
+
arrayOf: k,
|
|
1053
1053
|
element: S(),
|
|
1054
1054
|
elementType: q(),
|
|
1055
1055
|
instanceOf: T,
|
|
1056
1056
|
node: W(),
|
|
1057
|
-
objectOf:
|
|
1057
|
+
objectOf: K,
|
|
1058
1058
|
oneOf: x,
|
|
1059
1059
|
oneOfType: Y,
|
|
1060
1060
|
shape: j,
|
|
@@ -1107,7 +1107,7 @@ function gl() {
|
|
|
1107
1107
|
function Z() {
|
|
1108
1108
|
return v(o);
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function k(w) {
|
|
1111
1111
|
function I(V, H, J, P, F) {
|
|
1112
1112
|
if (typeof w != "function")
|
|
1113
1113
|
return new m("Property `" + F + "` of component `" + J + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -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 = U(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;
|
|
@@ -1174,7 +1174,7 @@ function gl() {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
return v(I);
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function K(w) {
|
|
1178
1178
|
function I(V, H, J, P, F) {
|
|
1179
1179
|
if (typeof w != "function")
|
|
1180
1180
|
return new m("Property `" + F + "` of component `" + J + "` has invalid PropType notation inside objectOf.");
|
|
@@ -1198,7 +1198,7 @@ function gl() {
|
|
|
1198
1198
|
var V = w[I];
|
|
1199
1199
|
if (typeof V != "function")
|
|
1200
1200
|
return s(
|
|
1201
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1201
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(V) + " at index " + I + "."
|
|
1202
1202
|
), o;
|
|
1203
1203
|
}
|
|
1204
1204
|
function H(J, P, F, _, ne) {
|
|
@@ -1316,7 +1316,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1316
1316
|
}
|
|
1317
1317
|
return I;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function M(w) {
|
|
1320
1320
|
var I = y(w);
|
|
1321
1321
|
switch (I) {
|
|
1322
1322
|
case "array":
|
|
@@ -1330,7 +1330,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
|
|
|
1330
1330
|
return I;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function U(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;
|
|
@@ -2552,8 +2552,8 @@ class Vn extends or {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
const d = this.resolve(e, n);
|
|
2554
2554
|
let f = d && d.res;
|
|
2555
|
-
const p = d && d.usedKey || o, g = d && d.exactUsedKey || o, m = Object.prototype.toString.apply(f), v = ["[object Number]", "[object Function]", "[object RegExp]"], b = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, Z = !this.i18nFormat || this.i18nFormat.handleAsObject,
|
|
2556
|
-
if (Z && f &&
|
|
2555
|
+
const p = d && d.usedKey || o, g = d && d.exactUsedKey || o, m = Object.prototype.toString.apply(f), v = ["[object Number]", "[object Function]", "[object RegExp]"], b = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, Z = !this.i18nFormat || this.i18nFormat.handleAsObject, k = !te(f) && typeof f != "boolean" && typeof f != "number";
|
|
2556
|
+
if (Z && f && k && v.indexOf(m) < 0 && !(te(b) && Array.isArray(f))) {
|
|
2557
2557
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
2558
2558
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2559
2559
|
const S = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(p, f, {
|
|
@@ -2566,12 +2566,12 @@ class Vn extends or {
|
|
|
2566
2566
|
const S = Array.isArray(f), q = S ? [] : {}, T = S ? g : p;
|
|
2567
2567
|
for (const x in f)
|
|
2568
2568
|
if (Object.prototype.hasOwnProperty.call(f, x)) {
|
|
2569
|
-
const
|
|
2570
|
-
q[x] = this.translate(
|
|
2569
|
+
const K = `${T}${s}${x}`;
|
|
2570
|
+
q[x] = this.translate(K, {
|
|
2571
2571
|
...n,
|
|
2572
2572
|
joinArrays: !1,
|
|
2573
2573
|
ns: a
|
|
2574
|
-
}), q[x] ===
|
|
2574
|
+
}), q[x] === K && (q[x] = f[x]);
|
|
2575
2575
|
}
|
|
2576
2576
|
f = q;
|
|
2577
2577
|
}
|
|
@@ -2579,34 +2579,34 @@ class Vn extends or {
|
|
|
2579
2579
|
f = f.join(b), f && (f = this.extendTranslation(f, e, n, r));
|
|
2580
2580
|
else {
|
|
2581
2581
|
let S = !1, q = !1;
|
|
2582
|
-
const T = n.count !== void 0 && !te(n.count), x = Vn.hasDefaultValue(n),
|
|
2582
|
+
const T = n.count !== void 0 && !te(n.count), x = Vn.hasDefaultValue(n), K = T ? this.pluralResolver.getSuffix(A, n.count, n) : "", Y = n.ordinal && T ? this.pluralResolver.getSuffix(A, n.count, {
|
|
2583
2583
|
ordinal: !1
|
|
2584
|
-
}) : "", W = T && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), z = W && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${
|
|
2584
|
+
}) : "", W = T && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), z = W && n[`defaultValue${this.options.pluralSeparator}zero`] || n[`defaultValue${K}`] || n[`defaultValue${Y}`] || n.defaultValue;
|
|
2585
2585
|
!this.isValidLookup(f) && x && (S = !0, f = z), this.isValidLookup(f) || (q = !0, f = o);
|
|
2586
2586
|
const B = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && q ? void 0 : f, E = x && z !== f && this.options.updateMissing;
|
|
2587
2587
|
if (q || S || E) {
|
|
2588
2588
|
if (this.logger.log(E ? "updateKey" : "missingKey", A, l, o, E ? z : f), s) {
|
|
2589
|
-
const
|
|
2589
|
+
const M = this.resolve(o, {
|
|
2590
2590
|
...n,
|
|
2591
2591
|
keySeparator: !1
|
|
2592
2592
|
});
|
|
2593
|
-
|
|
2593
|
+
M && M.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2594
2594
|
}
|
|
2595
2595
|
let L = [];
|
|
2596
2596
|
const G = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
2597
2597
|
if (this.options.saveMissingTo === "fallback" && G && G[0])
|
|
2598
|
-
for (let
|
|
2599
|
-
L.push(G[
|
|
2598
|
+
for (let M = 0; M < G.length; M++)
|
|
2599
|
+
L.push(G[M]);
|
|
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 = (
|
|
2602
|
+
const y = (M, U, w) => {
|
|
2603
2603
|
const I = x && w !== f ? w : B;
|
|
2604
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2604
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(M, l, U, I, E, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(M, l, U, I, E, n), this.emit("missingKey", M, l, U, f);
|
|
2605
2605
|
};
|
|
2606
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && T ? L.forEach((
|
|
2607
|
-
const
|
|
2608
|
-
W && n[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
2609
|
-
y([
|
|
2606
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && T ? L.forEach((M) => {
|
|
2607
|
+
const U = this.pluralResolver.getSuffixes(M, n);
|
|
2608
|
+
W && n[`defaultValue${this.options.pluralSeparator}zero`] && U.indexOf(`${this.options.pluralSeparator}zero`) < 0 && U.push(`${this.options.pluralSeparator}zero`), U.forEach((w) => {
|
|
2609
|
+
y([M], o + w, n[`defaultValue${w}`] || z);
|
|
2610
2610
|
});
|
|
2611
2611
|
}) : y(L, o, z));
|
|
2612
2612
|
}
|
|
@@ -2687,9 +2687,9 @@ class Vn extends or {
|
|
|
2687
2687
|
Z.push(x), f && (Z.push(x + S), n.ordinal && S.indexOf(T) === 0 && Z.push(x + S.replace(T, this.options.pluralSeparator)), p && Z.push(x + q));
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
|
-
let
|
|
2691
|
-
for (;
|
|
2692
|
-
this.isValidLookup(r) || (s =
|
|
2690
|
+
let k;
|
|
2691
|
+
for (; k = Z.pop(); )
|
|
2692
|
+
this.isValidLookup(r) || (s = k, r = this.getResource(b, v, k, n));
|
|
2693
2693
|
}));
|
|
2694
2694
|
});
|
|
2695
2695
|
}), {
|
|
@@ -4096,11 +4096,11 @@ function Ar(t, e, n) {
|
|
|
4096
4096
|
if (C.endsWith(m, "{}"))
|
|
4097
4097
|
m = r ? m : m.slice(0, -2), g = JSON.stringify(g);
|
|
4098
4098
|
else if (C.isArray(g) && PA(g) || (C.isFileList(g) || C.endsWith(m, "[]")) && (b = C.toArray(g)))
|
|
4099
|
-
return m = Jo(m), b.forEach(function(
|
|
4100
|
-
!(C.isUndefined(
|
|
4099
|
+
return m = Jo(m), b.forEach(function(k, S) {
|
|
4100
|
+
!(C.isUndefined(k) || k === null) && e.append(
|
|
4101
4101
|
// eslint-disable-next-line no-nested-ternary
|
|
4102
4102
|
o === !0 ? xs([m], S, s) : o === null ? m : m + "[]",
|
|
4103
|
-
A(
|
|
4103
|
+
A(k)
|
|
4104
4104
|
);
|
|
4105
4105
|
}), !1;
|
|
4106
4106
|
}
|
|
@@ -4989,16 +4989,16 @@ const Ic = async (t) => {
|
|
|
4989
4989
|
duplex: "half",
|
|
4990
4990
|
withCredentials: d
|
|
4991
4991
|
});
|
|
4992
|
-
let
|
|
4992
|
+
let k = await fetch(v);
|
|
4993
4993
|
const S = ei && (A === "stream" || A === "response");
|
|
4994
4994
|
if (ei && (a || S)) {
|
|
4995
4995
|
const T = {};
|
|
4996
|
-
["status", "statusText", "headers"].forEach((
|
|
4997
|
-
T[
|
|
4996
|
+
["status", "statusText", "headers"].forEach((K) => {
|
|
4997
|
+
T[K] = k[K];
|
|
4998
4998
|
});
|
|
4999
|
-
const x = C.toFiniteNumber(
|
|
5000
|
-
|
|
5001
|
-
Os(
|
|
4999
|
+
const x = C.toFiniteNumber(k.headers.get("content-length"));
|
|
5000
|
+
k = new Response(
|
|
5001
|
+
Os(k.body, ks, a && Ls(
|
|
5002
5002
|
x,
|
|
5003
5003
|
Xn(a, !0)
|
|
5004
5004
|
), S && b, $r),
|
|
@@ -5006,24 +5006,24 @@ const Ic = async (t) => {
|
|
|
5006
5006
|
);
|
|
5007
5007
|
}
|
|
5008
5008
|
A = A || "text";
|
|
5009
|
-
let q = await Un[C.findKey(Un, A) || "text"](
|
|
5009
|
+
let q = await Un[C.findKey(Un, A) || "text"](k, t);
|
|
5010
5010
|
return !S && b(), g && g(), await new Promise((T, x) => {
|
|
5011
5011
|
Bo(T, x, {
|
|
5012
5012
|
data: q,
|
|
5013
|
-
headers: it.from(
|
|
5014
|
-
status:
|
|
5015
|
-
statusText:
|
|
5013
|
+
headers: it.from(k.headers),
|
|
5014
|
+
status: k.status,
|
|
5015
|
+
statusText: k.statusText,
|
|
5016
5016
|
config: t,
|
|
5017
5017
|
request: v
|
|
5018
5018
|
});
|
|
5019
5019
|
});
|
|
5020
|
-
} catch (
|
|
5021
|
-
throw b(),
|
|
5020
|
+
} catch (k) {
|
|
5021
|
+
throw b(), k && k.name === "TypeError" && /fetch/i.test(k.message) ? Object.assign(
|
|
5022
5022
|
new ie("Network Error", ie.ERR_NETWORK, t, v),
|
|
5023
5023
|
{
|
|
5024
|
-
cause:
|
|
5024
|
+
cause: k.cause || k
|
|
5025
5025
|
}
|
|
5026
|
-
) : ie.from(
|
|
5026
|
+
) : ie.from(k, k && k.code, t, v);
|
|
5027
5027
|
}
|
|
5028
5028
|
}), ti = {
|
|
5029
5029
|
http: GA,
|
|
@@ -5623,8 +5623,8 @@ function fr(t) {
|
|
|
5623
5623
|
let { children: a, position: l, preventExitTransition: A, done: u, nodeRef: d, isIn: f } = o;
|
|
5624
5624
|
const p = r ? `${e}--${l}` : e, g = r ? `${n}--${l}` : n, m = Et(0);
|
|
5625
5625
|
return el(() => {
|
|
5626
|
-
const v = d.current, b = p.split(" "), Z = (
|
|
5627
|
-
|
|
5626
|
+
const v = d.current, b = p.split(" "), Z = (k) => {
|
|
5627
|
+
k.target === d.current && (v.dispatchEvent(new Event("d")), v.removeEventListener("animationend", Z), v.removeEventListener("animationcancel", Z), m.current === 0 && k.type !== "animationcancel" && v.classList.remove(...b));
|
|
5628
5628
|
};
|
|
5629
5629
|
v.classList.add(...b), v.addEventListener("animationend", Z), v.addEventListener("animationcancel", Z);
|
|
5630
5630
|
}, []), Ie(() => {
|
|
@@ -5690,12 +5690,12 @@ function Fc(t) {
|
|
|
5690
5690
|
return !i.current || a.props.enableMultiContainer && j.containerId !== a.props.containerId || s.has(j.toastId) && j.updateId == null;
|
|
5691
5691
|
}(b))
|
|
5692
5692
|
return;
|
|
5693
|
-
const { toastId: Z, updateId:
|
|
5693
|
+
const { toastId: Z, updateId: k, data: S } = b, { props: q } = a, T = () => A(Z), x = k == null;
|
|
5694
5694
|
x && a.count++;
|
|
5695
|
-
const
|
|
5695
|
+
const K = { ...q, style: q.toastStyle, key: a.toastKey++, ...Object.fromEntries(Object.entries(b).filter((j) => {
|
|
5696
5696
|
let [B, E] = j;
|
|
5697
5697
|
return E != null;
|
|
5698
|
-
})), toastId: Z, updateId:
|
|
5698
|
+
})), toastId: Z, updateId: k, data: S, closeToast: T, isIn: !1, className: Rn(b.className || q.toastClassName), bodyClassName: Rn(b.bodyClassName || q.bodyClassName), progressClassName: Rn(b.progressClassName || q.progressClassName), autoClose: !b.isLoading && (Y = b.autoClose, W = q.autoClose, Y === !1 || ln(Y) && Y > 0 ? Y : W), deleteToast() {
|
|
5699
5699
|
const j = Rs(s.get(Z), "removed");
|
|
5700
5700
|
s.delete(Z), Qe.emit(4, j);
|
|
5701
5701
|
const B = a.queue.length;
|
|
@@ -5713,21 +5713,21 @@ function Fc(t) {
|
|
|
5713
5713
|
e();
|
|
5714
5714
|
} };
|
|
5715
5715
|
var Y, W;
|
|
5716
|
-
|
|
5716
|
+
K.iconOut = function(j) {
|
|
5717
5717
|
let { theme: B, type: E, isLoading: L, icon: G } = j, y = null;
|
|
5718
|
-
const
|
|
5719
|
-
return G === !1 || (De(G) ? y = G(
|
|
5720
|
-
}(
|
|
5718
|
+
const M = { theme: B, type: E };
|
|
5719
|
+
return G === !1 || (De(G) ? y = G(M) : Ht(G) ? y = Vr(G, M) : Mt(G) || ln(G) ? y = G : L ? y = Rr.spinner() : ((U) => U in Rr)(E) && (y = Rr[E](M))), y;
|
|
5720
|
+
}(K), De(b.onOpen) && (K.onOpen = b.onOpen), De(b.onClose) && (K.onClose = b.onClose), K.closeButton = q.closeButton, b.closeButton === !1 || zr(b.closeButton) ? K.closeButton = b.closeButton : b.closeButton === !0 && (K.closeButton = !zr(q.closeButton) || q.closeButton);
|
|
5721
5721
|
let z = p;
|
|
5722
|
-
Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps:
|
|
5723
|
-
f(z,
|
|
5724
|
-
}, m) : f(z,
|
|
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 })), q.limit && q.limit > 0 && a.count > q.limit && x ? a.queue.push({ toastContent: z, toastProps: K, staleId: v }) : ln(m) ? setTimeout(() => {
|
|
5723
|
+
f(z, K, v);
|
|
5724
|
+
}, m) : f(z, K, v);
|
|
5725
5725
|
}
|
|
5726
5726
|
function f(p, g, m) {
|
|
5727
5727
|
const { toastId: v } = g;
|
|
5728
5728
|
m && s.delete(m);
|
|
5729
5729
|
const b = { content: p, props: g };
|
|
5730
|
-
s.set(v, b), r((Z) => [...Z, v].filter((
|
|
5730
|
+
s.set(v, b), r((Z) => [...Z, v].filter((k) => k !== m)), Qe.emit(4, Rs(b, b.props.updateId == null ? "added" : "updated"));
|
|
5731
5731
|
}
|
|
5732
5732
|
return Ie(() => (a.containerId = t.containerId, Qe.cancelEmit(3).on(0, d).on(1, (p) => i.current && A(p)).on(5, l).emit(2, a), () => {
|
|
5733
5733
|
s.clear(), Qe.emit(3, a);
|
|
@@ -5758,8 +5758,8 @@ function _c(t) {
|
|
|
5758
5758
|
}
|
|
5759
5759
|
function g(S) {
|
|
5760
5760
|
if (o.boundingRect) {
|
|
5761
|
-
const { top: q, bottom: T, left: x, right:
|
|
5762
|
-
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <=
|
|
5761
|
+
const { top: q, bottom: T, left: x, right: K } = o.boundingRect;
|
|
5762
|
+
S.nativeEvent.type !== "touchend" && t.pauseOnHover && o.x >= x && o.x <= K && o.y >= q && o.y <= T ? v() : m();
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
5765
5765
|
function m() {
|
|
@@ -5789,10 +5789,10 @@ function _c(t) {
|
|
|
5789
5789
|
}), []), Ie(() => (t.pauseOnFocusLoss && (document.hasFocus() || v(), window.addEventListener("focus", m), window.addEventListener("blur", v)), () => {
|
|
5790
5790
|
t.pauseOnFocusLoss && (window.removeEventListener("focus", m), window.removeEventListener("blur", v));
|
|
5791
5791
|
}), [t.pauseOnFocusLoss]);
|
|
5792
|
-
const
|
|
5793
|
-
return l && A && (
|
|
5792
|
+
const k = { onMouseDown: p, onTouchStart: p, onMouseUp: g, onTouchEnd: g };
|
|
5793
|
+
return l && A && (k.onMouseEnter = v, k.onMouseLeave = m), f && (k.onClick = (S) => {
|
|
5794
5794
|
d && d(S), o.canCloseOnClick && u();
|
|
5795
|
-
}), { playToast: m, pauseToast: v, isRunning: e, preventExitTransition: r, toastRef: s, eventHandlers:
|
|
5795
|
+
}), { playToast: m, pauseToast: v, isRunning: e, preventExitTransition: r, toastRef: s, eventHandlers: k };
|
|
5796
5796
|
}
|
|
5797
5797
|
function oa(t) {
|
|
5798
5798
|
let { closeToast: e, theme: n, ariaLabel: r = "close" } = t;
|
|
@@ -5810,9 +5810,9 @@ function $c(t) {
|
|
|
5810
5810
|
} });
|
|
5811
5811
|
}
|
|
5812
5812
|
const ed = (t) => {
|
|
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: b, progressClassName: Z, progressStyle:
|
|
5814
|
-
let
|
|
5815
|
-
return s === !1 || (
|
|
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: b, progressClassName: Z, progressStyle: k, updateId: S, role: q, 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, M = { closeToast: d, type: A, theme: E };
|
|
5814
|
+
let U = null;
|
|
5815
|
+
return s === !1 || (U = De(s) ? s(M) : Ht(s) ? Vr(s, M) : oa(M)), 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: q }, className: De(v) ? v({ type: A }) : yt("Toastify__toast-body", v), style: b }, j != null && de.createElement("div", { className: yt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), de.createElement("div", null, o)), U, 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: k, 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));
|
|
@@ -6136,10 +6136,10 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6136
6136
|
return (g = f.onMount) == null ? void 0 : g.call(f, p);
|
|
6137
6137
|
}, ...d) => {
|
|
6138
6138
|
const f = d[0] || ((x) => {
|
|
6139
|
-
let
|
|
6140
|
-
return
|
|
6139
|
+
let K = t.get(x);
|
|
6140
|
+
return K || (K = { d: /* @__PURE__ */ new Map(), p: /* @__PURE__ */ new Set(), n: 0 }, t.set(x, K), A == null || A(x, T)), K;
|
|
6141
6141
|
}), p = d[1] || (() => {
|
|
6142
|
-
const x = [],
|
|
6142
|
+
const x = [], K = (Y) => {
|
|
6143
6143
|
try {
|
|
6144
6144
|
Y();
|
|
6145
6145
|
} catch (W) {
|
|
@@ -6147,30 +6147,30 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6147
6147
|
}
|
|
6148
6148
|
};
|
|
6149
6149
|
do {
|
|
6150
|
-
o.f &&
|
|
6150
|
+
o.f && K(o.f);
|
|
6151
6151
|
const Y = /* @__PURE__ */ new Set(), W = Y.add.bind(Y);
|
|
6152
6152
|
r.forEach((z) => {
|
|
6153
6153
|
var j;
|
|
6154
6154
|
return (j = e.get(z)) == null ? void 0 : j.l.forEach(W);
|
|
6155
|
-
}), r.clear(), s.forEach(W), s.clear(), i.forEach(W), i.clear(), Y.forEach(
|
|
6155
|
+
}), r.clear(), s.forEach(W), s.clear(), i.forEach(W), i.clear(), Y.forEach(K), r.size && g();
|
|
6156
6156
|
} while (r.size || s.size || i.size);
|
|
6157
6157
|
if (x.length)
|
|
6158
6158
|
throw new AggregateError(x);
|
|
6159
6159
|
}), g = d[2] || (() => {
|
|
6160
|
-
const x = [],
|
|
6160
|
+
const x = [], K = /* @__PURE__ */ new WeakSet(), Y = /* @__PURE__ */ new WeakSet(), W = Array.from(r);
|
|
6161
6161
|
for (; W.length; ) {
|
|
6162
6162
|
const z = W[W.length - 1], j = f(z);
|
|
6163
6163
|
if (Y.has(z)) {
|
|
6164
6164
|
W.pop();
|
|
6165
6165
|
continue;
|
|
6166
6166
|
}
|
|
6167
|
-
if (
|
|
6167
|
+
if (K.has(z)) {
|
|
6168
6168
|
n.get(z) === j.n && x.push([z, j]), Y.add(z), W.pop();
|
|
6169
6169
|
continue;
|
|
6170
6170
|
}
|
|
6171
|
-
|
|
6171
|
+
K.add(z);
|
|
6172
6172
|
for (const B of Hs(z, j, e))
|
|
6173
|
-
|
|
6173
|
+
K.has(B) || W.push(B);
|
|
6174
6174
|
}
|
|
6175
6175
|
for (let z = x.length - 1; z >= 0; --z) {
|
|
6176
6176
|
const [j, B] = x[z];
|
|
@@ -6183,13 +6183,13 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6183
6183
|
E && (m(j), Z(j)), n.delete(j);
|
|
6184
6184
|
}
|
|
6185
6185
|
}), m = d[3] || ((x) => {
|
|
6186
|
-
var
|
|
6186
|
+
var K;
|
|
6187
6187
|
const Y = f(x);
|
|
6188
6188
|
if (Gs(Y) && (e.has(x) && n.get(x) !== Y.n || Array.from(Y.d).every(
|
|
6189
|
-
([y,
|
|
6189
|
+
([y, M]) => (
|
|
6190
6190
|
// Recursively, read the atom state of the dependency, and
|
|
6191
6191
|
// check if the atom epoch number is unchanged
|
|
6192
|
-
m(y).n ===
|
|
6192
|
+
m(y).n === M
|
|
6193
6193
|
)
|
|
6194
6194
|
)))
|
|
6195
6195
|
return Y;
|
|
@@ -6198,7 +6198,7 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6198
6198
|
const z = () => {
|
|
6199
6199
|
e.has(x) && (Z(x), g(), p());
|
|
6200
6200
|
}, j = (y) => {
|
|
6201
|
-
var
|
|
6201
|
+
var M;
|
|
6202
6202
|
if (Js(x, y)) {
|
|
6203
6203
|
const w = f(y);
|
|
6204
6204
|
if (!Gs(w))
|
|
@@ -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 U = m(y);
|
|
6212
6212
|
try {
|
|
6213
|
-
return On(
|
|
6213
|
+
return On(U);
|
|
6214
6214
|
} finally {
|
|
6215
|
-
Y.d.set(y,
|
|
6215
|
+
Y.d.set(y, U.n), Ps(Y.v) && da(x, Y.v, U), (M = e.get(y)) == null || M.t.add(x), W || z();
|
|
6216
6216
|
}
|
|
6217
6217
|
};
|
|
6218
6218
|
let B, E;
|
|
@@ -6240,18 +6240,18 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6240
6240
|
} catch (y) {
|
|
6241
6241
|
return delete Y.v, Y.e = y, ++Y.n, Y;
|
|
6242
6242
|
} finally {
|
|
6243
|
-
W = !1, G !== Y.n && n.get(x) === G && (n.set(x, Y.n), r.add(x), (
|
|
6243
|
+
W = !1, G !== Y.n && n.get(x) === G && (n.set(x, Y.n), r.add(x), (K = o.c) == null || K.call(o, x));
|
|
6244
6244
|
}
|
|
6245
6245
|
}), v = d[4] || ((x) => {
|
|
6246
|
-
const
|
|
6247
|
-
for (;
|
|
6248
|
-
const Y =
|
|
6246
|
+
const K = [x];
|
|
6247
|
+
for (; K.length; ) {
|
|
6248
|
+
const Y = K.pop(), W = f(Y);
|
|
6249
6249
|
for (const z of Hs(Y, W, e)) {
|
|
6250
6250
|
const j = f(z);
|
|
6251
|
-
n.set(z, j.n),
|
|
6251
|
+
n.set(z, j.n), K.push(z);
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
|
-
}), b = d[5] || ((x, ...
|
|
6254
|
+
}), b = d[5] || ((x, ...K) => {
|
|
6255
6255
|
let Y = !0;
|
|
6256
6256
|
const W = (j) => On(m(j)), z = (j, ...B) => {
|
|
6257
6257
|
var E;
|
|
@@ -6270,18 +6270,18 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6270
6270
|
}
|
|
6271
6271
|
};
|
|
6272
6272
|
try {
|
|
6273
|
-
return l(x, W, z, ...
|
|
6273
|
+
return l(x, W, z, ...K);
|
|
6274
6274
|
} finally {
|
|
6275
6275
|
Y = !1;
|
|
6276
6276
|
}
|
|
6277
6277
|
}), Z = d[6] || ((x) => {
|
|
6278
|
-
var
|
|
6278
|
+
var K;
|
|
6279
6279
|
const Y = f(x), W = e.get(x);
|
|
6280
6280
|
if (W && !Ps(Y.v)) {
|
|
6281
6281
|
for (const [z, j] of Y.d)
|
|
6282
6282
|
if (!W.d.has(z)) {
|
|
6283
6283
|
const B = f(z);
|
|
6284
|
-
|
|
6284
|
+
k(z).t.add(x), W.d.add(z), j !== B.n && (r.add(z), (K = o.c) == null || K.call(o, z), v(z));
|
|
6285
6285
|
}
|
|
6286
6286
|
for (const z of W.d || [])
|
|
6287
6287
|
if (!Y.d.has(z)) {
|
|
@@ -6290,19 +6290,19 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6290
6290
|
j == null || j.t.delete(x);
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
|
-
}),
|
|
6294
|
-
var
|
|
6293
|
+
}), k = d[7] || ((x) => {
|
|
6294
|
+
var K;
|
|
6295
6295
|
const Y = f(x);
|
|
6296
6296
|
let W = e.get(x);
|
|
6297
6297
|
if (!W) {
|
|
6298
6298
|
m(x);
|
|
6299
6299
|
for (const z of Y.d.keys())
|
|
6300
|
-
|
|
6300
|
+
k(z).t.add(x);
|
|
6301
6301
|
if (W = {
|
|
6302
6302
|
l: /* @__PURE__ */ new Set(),
|
|
6303
6303
|
d: new Set(Y.d.keys()),
|
|
6304
6304
|
t: /* @__PURE__ */ new Set()
|
|
6305
|
-
}, e.set(x, W), (
|
|
6305
|
+
}, e.set(x, W), (K = o.m) == null || K.call(o, x), Ts(x)) {
|
|
6306
6306
|
const z = () => {
|
|
6307
6307
|
let j = !0;
|
|
6308
6308
|
const B = (...E) => {
|
|
@@ -6331,14 +6331,14 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6331
6331
|
}
|
|
6332
6332
|
return W;
|
|
6333
6333
|
}), S = d[8] || ((x) => {
|
|
6334
|
-
var
|
|
6334
|
+
var K;
|
|
6335
6335
|
const Y = f(x);
|
|
6336
6336
|
let W = e.get(x);
|
|
6337
6337
|
if (W && !W.l.size && !Array.from(W.t).some((z) => {
|
|
6338
6338
|
var j;
|
|
6339
6339
|
return (j = e.get(z)) == null ? void 0 : j.d.has(x);
|
|
6340
6340
|
})) {
|
|
6341
|
-
W.u && s.add(W.u), W = void 0, e.delete(x), (
|
|
6341
|
+
W.u && s.add(W.u), W = void 0, e.delete(x), (K = o.u) == null || K.call(o, x);
|
|
6342
6342
|
for (const z of Y.d.keys()) {
|
|
6343
6343
|
const j = S(z);
|
|
6344
6344
|
j == null || j.t.delete(x);
|
|
@@ -6368,21 +6368,21 @@ const cd = Symbol(), dd = (t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ *
|
|
|
6368
6368
|
v,
|
|
6369
6369
|
b,
|
|
6370
6370
|
Z,
|
|
6371
|
-
|
|
6371
|
+
k,
|
|
6372
6372
|
S
|
|
6373
6373
|
], T = {
|
|
6374
6374
|
get: (x) => On(m(x)),
|
|
6375
|
-
set: (x, ...
|
|
6375
|
+
set: (x, ...K) => {
|
|
6376
6376
|
try {
|
|
6377
|
-
return b(x, ...
|
|
6377
|
+
return b(x, ...K);
|
|
6378
6378
|
} finally {
|
|
6379
6379
|
g(), p();
|
|
6380
6380
|
}
|
|
6381
6381
|
},
|
|
6382
|
-
sub: (x,
|
|
6383
|
-
const W =
|
|
6384
|
-
return W.add(
|
|
6385
|
-
W.delete(
|
|
6382
|
+
sub: (x, K) => {
|
|
6383
|
+
const W = k(x).l;
|
|
6384
|
+
return W.add(K), p(), () => {
|
|
6385
|
+
W.delete(K), S(x), p();
|
|
6386
6386
|
};
|
|
6387
6387
|
}
|
|
6388
6388
|
};
|
|
@@ -6530,7 +6530,7 @@ const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([]), qn = vn(!1), wd = ({
|
|
|
6530
6530
|
var S, q, T, x;
|
|
6531
6531
|
let b = "";
|
|
6532
6532
|
if (e && (n === "Playable" || n === "Ready")) {
|
|
6533
|
-
const
|
|
6533
|
+
const K = await oi(e, r), Y = (q = (S = K == null ? void 0 : K.data) == null ? void 0 : S.globalProps) == null ? void 0 : q.defaultLandscape, W = (x = (T = K == null ? void 0 : K.data) == null ? void 0 : T.globalProps) == null ? void 0 : x.defaultPhoneIndex;
|
|
6534
6534
|
Y && (b += "&landscape=true"), W !== void 0 && (b += `&phoneIndex=${W}`);
|
|
6535
6535
|
}
|
|
6536
6536
|
oi(e, r), d(!1);
|
|
@@ -8261,30 +8261,34 @@ const Yd = ({
|
|
|
8261
8261
|
creditDownload: v,
|
|
8262
8262
|
getDownloadCount: b,
|
|
8263
8263
|
disabled: Z,
|
|
8264
|
-
user:
|
|
8264
|
+
user: k,
|
|
8265
8265
|
setSafariCopyLink: S,
|
|
8266
8266
|
isTest: q,
|
|
8267
8267
|
urlType: T,
|
|
8268
8268
|
setCdnModal: x,
|
|
8269
|
-
generateCDN:
|
|
8269
|
+
generateCDN: K,
|
|
8270
8270
|
cdnUrl: Y
|
|
8271
8271
|
}) => {
|
|
8272
|
-
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [
|
|
8272
|
+
const [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [M, U] = 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), [We, je] = X(!1), [Be, D] = Te(Yi), [Q, oe] = Te(qn), qe = l === "Playable" ? Q : !0, be = {
|
|
8273
8273
|
cdn: "Generate Link",
|
|
8274
8274
|
adikteev: "Copy CDN"
|
|
8275
8275
|
}, ze = () => {
|
|
8276
8276
|
n(t);
|
|
8277
8277
|
}, $e = async (ue, Ce, Oe) => {
|
|
8278
|
+
if (z(!0), l === "Flex" && k.flex === !1) {
|
|
8279
|
+
d("|ACCESS|"), z(!1);
|
|
8280
|
+
return;
|
|
8281
|
+
}
|
|
8278
8282
|
const Yt = {
|
|
8279
8283
|
molocoGenerateHtml: !1,
|
|
8280
8284
|
urlType: T,
|
|
8281
8285
|
responsiveType: "responsive"
|
|
8282
8286
|
};
|
|
8283
8287
|
if (ut ? Ce === "copy" ? (P(!0), Ce = "download", Yt.molocoGenerateHtml = !0) : H(!0) : At && (Yt.responsiveType = Oe), console.log("getVersion", ue, Ce, Yt), ue === "cdn") {
|
|
8284
|
-
x(!0), await
|
|
8288
|
+
x(!0), await K(!0), z(!1);
|
|
8285
8289
|
return;
|
|
8286
8290
|
}
|
|
8287
|
-
return ue === "adikteev" && (Ce = "copy"),
|
|
8291
|
+
return ue === "adikteev" && (Ce = "copy"), new Promise((yr, vr) => {
|
|
8288
8292
|
pn(
|
|
8289
8293
|
A,
|
|
8290
8294
|
ue,
|
|
@@ -8304,7 +8308,7 @@ const Yd = ({
|
|
|
8304
8308
|
molocoGenerateHtml: !1
|
|
8305
8309
|
};
|
|
8306
8310
|
ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download", q, Ce).then((Oe) => {
|
|
8307
|
-
ue ? P(!1) : H(!1),
|
|
8311
|
+
ue ? P(!1) : H(!1), U(!1);
|
|
8308
8312
|
}).catch((Oe) => {
|
|
8309
8313
|
d(Oe.message, Oe);
|
|
8310
8314
|
});
|
|
@@ -8442,12 +8446,8 @@ const Yd = ({
|
|
|
8442
8446
|
className: `${ut ? "w-1/2" : "w-2/3"} border-hover-` + l,
|
|
8443
8447
|
downloading: W,
|
|
8444
8448
|
onClickDonwload: async (ue) => {
|
|
8445
|
-
if (ue.stopPropagation(),
|
|
8446
|
-
|
|
8447
|
-
return;
|
|
8448
|
-
}
|
|
8449
|
-
if (ut && M.customer === "playableFactoryInternal") {
|
|
8450
|
-
Q(!0);
|
|
8449
|
+
if (ue.stopPropagation(), console.log("user in onclickdownload", k), ut && k.customer === "playableFactoryInternal") {
|
|
8450
|
+
U(!0);
|
|
8451
8451
|
return;
|
|
8452
8452
|
} else if (At)
|
|
8453
8453
|
se(!0);
|
|
@@ -8474,7 +8474,7 @@ const Yd = ({
|
|
|
8474
8474
|
}
|
|
8475
8475
|
}
|
|
8476
8476
|
),
|
|
8477
|
-
|
|
8477
|
+
k.customer !== "playableFactoryInternal" ? ae.t("common:txt") : ae.t("common:download")
|
|
8478
8478
|
] }),
|
|
8479
8479
|
V && /* @__PURE__ */ c.jsx(cn, {})
|
|
8480
8480
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -8513,7 +8513,7 @@ const Yd = ({
|
|
|
8513
8513
|
children: /* @__PURE__ */ c.jsx(Io, { className: "h-6 w-6 stroke-dark-full" })
|
|
8514
8514
|
}
|
|
8515
8515
|
),
|
|
8516
|
-
ut &&
|
|
8516
|
+
ut && k.customer !== "playableFactoryInternal" && /* @__PURE__ */ c.jsxs(
|
|
8517
8517
|
Tr,
|
|
8518
8518
|
{
|
|
8519
8519
|
className: "w-1/2 border-hover-" + l,
|
|
@@ -8587,11 +8587,11 @@ const Yd = ({
|
|
|
8587
8587
|
urlType: T
|
|
8588
8588
|
}
|
|
8589
8589
|
),
|
|
8590
|
-
|
|
8590
|
+
M && k.customer === "playableFactoryInternal" && /* @__PURE__ */ c.jsx(
|
|
8591
8591
|
zd,
|
|
8592
8592
|
{
|
|
8593
8593
|
onClose: () => {
|
|
8594
|
-
|
|
8594
|
+
U(!1);
|
|
8595
8595
|
},
|
|
8596
8596
|
handleDownload: Ct,
|
|
8597
8597
|
handleDownloadMolocoTest: Rt,
|
|
@@ -9021,42 +9021,42 @@ const Yd = ({
|
|
|
9021
9021
|
allNetworksSelected: v,
|
|
9022
9022
|
cdnModal: b,
|
|
9023
9023
|
setCdnModal: Z,
|
|
9024
|
-
cdnUrl:
|
|
9024
|
+
cdnUrl: k,
|
|
9025
9025
|
setCdnUrl: S,
|
|
9026
9026
|
customer: q
|
|
9027
9027
|
}) => {
|
|
9028
|
-
const [T, x] = X([]), [
|
|
9029
|
-
|
|
9028
|
+
const [T, x] = X([]), [K, Y] = X([]), [W, z] = X(!1), [j, B] = X(""), [E, L] = X(!1), [G, y] = X(!1), [M, U] = 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, We = async (Q = !1) => {
|
|
9029
|
+
Q && k || J || (P(!0), pn(r, "cdn", we ? A : null, null, !1, {}).then((oe) => {
|
|
9030
9030
|
S(oe.url), P(!1);
|
|
9031
9031
|
}).catch((oe) => {
|
|
9032
9032
|
a(oe.message, oe), P(!1);
|
|
9033
9033
|
}));
|
|
9034
|
-
}, je = async (
|
|
9035
|
-
if (
|
|
9034
|
+
}, je = async (Q) => {
|
|
9035
|
+
if (Q === "adikteev")
|
|
9036
9036
|
return;
|
|
9037
9037
|
const oe = [...T];
|
|
9038
|
-
if (T.includes(
|
|
9039
|
-
const qe = oe.findIndex((be) => be ===
|
|
9038
|
+
if (T.includes(Q)) {
|
|
9039
|
+
const qe = oe.findIndex((be) => be === Q);
|
|
9040
9040
|
oe.splice(qe, 1), x(oe);
|
|
9041
9041
|
} else
|
|
9042
|
-
oe.push(
|
|
9042
|
+
oe.push(Q), x([...T, Q]);
|
|
9043
9043
|
$.filter((qe) => [...oe].includes(qe.id)).map((qe) => qe.name);
|
|
9044
|
-
}, Be = async () => new Promise(async (
|
|
9044
|
+
}, Be = async () => new Promise(async (Q, oe) => {
|
|
9045
9045
|
const qe = $.filter((be) => [...T].includes(be.id)).map((be) => be.name);
|
|
9046
9046
|
L(!0), od(r, A, qe, { urlType: m }).then((be) => {
|
|
9047
|
-
L(!1),
|
|
9047
|
+
L(!1), Q(be);
|
|
9048
9048
|
}).catch((be) => {
|
|
9049
9049
|
console.log("get multi download err"), L(!1), a(be.message, be), oe(be);
|
|
9050
9050
|
});
|
|
9051
9051
|
}), D = async () => {
|
|
9052
|
-
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0),
|
|
9052
|
+
A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), U("download"), I(!0)) : (I(!1), await Be());
|
|
9053
9053
|
};
|
|
9054
9054
|
return Ie(() => {
|
|
9055
|
-
const
|
|
9055
|
+
const Q = $.filter((oe) => {
|
|
9056
9056
|
var qe;
|
|
9057
|
-
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) :
|
|
9057
|
+
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);
|
|
9058
9058
|
}).filter((oe) => oe.name === "voodoo" ? o.customer === "customer:20" : !0).map((oe) => oe.id);
|
|
9059
|
-
x(v ?
|
|
9059
|
+
x(v ? Q : []);
|
|
9060
9060
|
}, [v]), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
9061
9061
|
/* @__PURE__ */ c.jsx(
|
|
9062
9062
|
"div",
|
|
@@ -9078,28 +9078,28 @@ const Yd = ({
|
|
|
9078
9078
|
overflowY: "auto",
|
|
9079
9079
|
padding: "0.75rem"
|
|
9080
9080
|
},
|
|
9081
|
-
children: n && $.filter((
|
|
9081
|
+
children: n && $.filter((Q) => {
|
|
9082
9082
|
var oe;
|
|
9083
|
-
return e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0 ? typeof
|
|
9083
|
+
return e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0 ? typeof Q == "string" ? e == null ? void 0 : e.networks.includes(Q) : e == null ? void 0 : e.networks.includes(Q.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === Q.name) : q != null && q.networks ? q.networks.includes(Q.name) : Q;
|
|
9084
9084
|
}).filter(
|
|
9085
|
-
(
|
|
9086
|
-
).map((
|
|
9087
|
-
let oe =
|
|
9088
|
-
if (
|
|
9085
|
+
(Q) => Q.name === "voodoo" ? o.customer === "customer:20" : !0
|
|
9086
|
+
).map((Q) => {
|
|
9087
|
+
let oe = Q.imageSrc;
|
|
9088
|
+
if (Q.name === "web") {
|
|
9089
9089
|
let qe = "web_" + i.toLowerCase() + ".png";
|
|
9090
9090
|
oe = oe.replace("web.png", qe);
|
|
9091
9091
|
}
|
|
9092
9092
|
return /* @__PURE__ */ c.jsx(
|
|
9093
9093
|
Nd,
|
|
9094
9094
|
{
|
|
9095
|
-
id:
|
|
9096
|
-
name:
|
|
9095
|
+
id: Q.id,
|
|
9096
|
+
name: Q.name,
|
|
9097
9097
|
imageUrl: oe,
|
|
9098
|
-
selected: T.includes(
|
|
9098
|
+
selected: T.includes(Q.id),
|
|
9099
9099
|
handleCardClick: je,
|
|
9100
|
-
networkVersionSize:
|
|
9100
|
+
networkVersionSize: K,
|
|
9101
9101
|
fileSizeLoading: W,
|
|
9102
|
-
showCheckBox:
|
|
9102
|
+
showCheckBox: Q.id !== "adikteev",
|
|
9103
9103
|
typeOfProduct: i,
|
|
9104
9104
|
versionId: r,
|
|
9105
9105
|
api: s,
|
|
@@ -9117,9 +9117,9 @@ const Yd = ({
|
|
|
9117
9117
|
urlType: m,
|
|
9118
9118
|
setCdnModal: Z,
|
|
9119
9119
|
generateCDN: We,
|
|
9120
|
-
cdnUrl:
|
|
9120
|
+
cdnUrl: k
|
|
9121
9121
|
},
|
|
9122
|
-
|
|
9122
|
+
Q.id
|
|
9123
9123
|
);
|
|
9124
9124
|
})
|
|
9125
9125
|
}
|
|
@@ -9159,7 +9159,7 @@ const Yd = ({
|
|
|
9159
9159
|
versionId: r,
|
|
9160
9160
|
urls: A,
|
|
9161
9161
|
handleDownloadError: a,
|
|
9162
|
-
cdnUrl:
|
|
9162
|
+
cdnUrl: k,
|
|
9163
9163
|
setCdnUrl: S,
|
|
9164
9164
|
generateCDN: async () => {
|
|
9165
9165
|
if (!J) {
|
|
@@ -9191,7 +9191,7 @@ const Yd = ({
|
|
|
9191
9191
|
{
|
|
9192
9192
|
width: "100%",
|
|
9193
9193
|
height: "100%",
|
|
9194
|
-
creditConfirmType:
|
|
9194
|
+
creditConfirmType: M,
|
|
9195
9195
|
handleCopyLink: async () => {
|
|
9196
9196
|
},
|
|
9197
9197
|
download: async () => {
|
|
@@ -9206,7 +9206,7 @@ const Yd = ({
|
|
|
9206
9206
|
w && /* @__PURE__ */ c.jsx(
|
|
9207
9207
|
ui,
|
|
9208
9208
|
{
|
|
9209
|
-
creditConfirmType:
|
|
9209
|
+
creditConfirmType: M,
|
|
9210
9210
|
handleCopyLink: async () => {
|
|
9211
9211
|
},
|
|
9212
9212
|
download: async () => {
|
|
@@ -9292,14 +9292,14 @@ const _d = ({
|
|
|
9292
9292
|
urlType: b,
|
|
9293
9293
|
setUrlType: Z
|
|
9294
9294
|
}) => {
|
|
9295
|
-
const [
|
|
9295
|
+
const [k, S] = X(null), [q, 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, M] = X(!1), [U, w] = X("");
|
|
9296
9296
|
Te(pa), Te(ha);
|
|
9297
9297
|
const [I, V] = Te(ma), [H, J] = Te(qn);
|
|
9298
9298
|
Ie(() => {
|
|
9299
|
-
!
|
|
9299
|
+
!U && r !== "Fusion" && ud(e).then((D) => {
|
|
9300
9300
|
D != null && D.exist && w(D.uploadPath);
|
|
9301
9301
|
});
|
|
9302
|
-
}, [
|
|
9302
|
+
}, [U]), console.log("download modal version: 6.0.75");
|
|
9303
9303
|
const [P, F] = X(!1);
|
|
9304
9304
|
Ie(() => {
|
|
9305
9305
|
}, [P]), Ie(() => {
|
|
@@ -9314,15 +9314,15 @@ const _d = ({
|
|
|
9314
9314
|
W(!0);
|
|
9315
9315
|
const D = await oi(t, s);
|
|
9316
9316
|
return D != null && D.networks || (D.networks = Us), S(D), D;
|
|
9317
|
-
}, ne = (D,
|
|
9317
|
+
}, ne = (D, Q) => {
|
|
9318
9318
|
clearTimeout(Qs), Qs = setTimeout(() => {
|
|
9319
|
-
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl:
|
|
9319
|
+
r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: Q }, { urlType: b });
|
|
9320
9320
|
}, 1e3);
|
|
9321
9321
|
}, se = (D) => {
|
|
9322
9322
|
m(D), ne(D, g);
|
|
9323
9323
|
}, $ = (D) => {
|
|
9324
9324
|
v(D), ne(p, D);
|
|
9325
|
-
}, ge = async (D,
|
|
9325
|
+
}, ge = async (D, Q) => {
|
|
9326
9326
|
var oe, qe;
|
|
9327
9327
|
try {
|
|
9328
9328
|
let be;
|
|
@@ -9336,8 +9336,8 @@ const _d = ({
|
|
|
9336
9336
|
m(D.iosUrl), v(D.googleUrl), W(!1);
|
|
9337
9337
|
return;
|
|
9338
9338
|
}
|
|
9339
|
-
if (
|
|
9340
|
-
const $e = `${A}/${
|
|
9339
|
+
if (Q && Q.html) {
|
|
9340
|
+
const $e = `${A}/${Q.html}?t=${Date.now()}`;
|
|
9341
9341
|
let Ct = await fetch($e).then((At) => At.text());
|
|
9342
9342
|
const Rt = ((oe = Ct.match(
|
|
9343
9343
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
@@ -9364,36 +9364,36 @@ const _d = ({
|
|
|
9364
9364
|
}, R = async () => {
|
|
9365
9365
|
W(!0);
|
|
9366
9366
|
let D;
|
|
9367
|
-
r === "Flex" ? D = await Hd({ _id: e }, s) : r === "Ready" && (D = await Qd({ _id: e }, s)), D && (["admin", "pm", "tester", "sales"].includes(o.role) ?
|
|
9367
|
+
r === "Flex" ? D = await Hd({ _id: e }, s) : r === "Ready" && (D = await Qd({ _id: e }, s)), D && (["admin", "pm", "tester", "sales"].includes(o.role) ? K({
|
|
9368
9368
|
...D,
|
|
9369
9369
|
networks: I
|
|
9370
|
-
}) : (console.log("result", D), r === "Ready" && !D.canDownload ?
|
|
9370
|
+
}) : (console.log("result", D), r === "Ready" && !D.canDownload ? K({
|
|
9371
9371
|
...D,
|
|
9372
9372
|
networks: Us
|
|
9373
|
-
}) : (console.log("result", D),
|
|
9373
|
+
}) : (console.log("result", D), K({
|
|
9374
9374
|
...D,
|
|
9375
9375
|
networks: D.networks
|
|
9376
9376
|
})))), W(!1);
|
|
9377
9377
|
}, we = async () => await Bd(n, s), [We, je] = X(null), Be = async (D) => await Fd(D, s);
|
|
9378
9378
|
return Ie(() => {
|
|
9379
|
-
i || (S(null), T(null),
|
|
9380
|
-
Be(D.customer).then((
|
|
9381
|
-
je(
|
|
9382
|
-
}), _().then((
|
|
9383
|
-
ge(null,
|
|
9379
|
+
i || (S(null), T(null), K(null), d(null), je(null)), i && (r === "Playable" ? we().then((D) => {
|
|
9380
|
+
Be(D.customer).then((Q) => {
|
|
9381
|
+
je(Q);
|
|
9382
|
+
}), _().then((Q) => {
|
|
9383
|
+
ge(null, Q);
|
|
9384
9384
|
}), j(!1);
|
|
9385
9385
|
}) : r === "Ready" ? R().then((D) => {
|
|
9386
|
-
_().then((
|
|
9387
|
-
ge(null,
|
|
9386
|
+
_().then((Q) => {
|
|
9387
|
+
ge(null, Q), j(!1);
|
|
9388
9388
|
});
|
|
9389
9389
|
}) : r === "Flex" ? R().then((D) => {
|
|
9390
|
-
j(!1), we().then((
|
|
9391
|
-
i && (ge(
|
|
9390
|
+
j(!1), we().then((Q) => {
|
|
9391
|
+
i && (ge(Q, null), j(!1), T(Q));
|
|
9392
9392
|
});
|
|
9393
9393
|
}) : r === "Import" ? Ud(e, s).then((D) => {
|
|
9394
9394
|
S(D), m(D.iosUrl || ""), v(D.googleUrl || ""), W(!1), j(!1);
|
|
9395
9395
|
}) : r === "Fusion" && (j(!1), we().then((D) => {
|
|
9396
|
-
i && (ge(D, null), j(!1), D.networks = I.filter((
|
|
9396
|
+
i && (ge(D, null), j(!1), D.networks = I.filter((Q) => Q !== "cdn"), T(D));
|
|
9397
9397
|
})));
|
|
9398
9398
|
}, [n, t, e, i]), /* @__PURE__ */ c.jsxs(
|
|
9399
9399
|
"div",
|
|
@@ -9442,10 +9442,10 @@ const _d = ({
|
|
|
9442
9442
|
},
|
|
9443
9443
|
children: /* @__PURE__ */ c.jsx(cn, { isNetworksLoading: !0 })
|
|
9444
9444
|
}
|
|
9445
|
-
) : (
|
|
9445
|
+
) : (k || x || r === "Fusion") && (r === "Flex" ? q : !0) && !Y && p !== "Loading..." && g !== "Loading..." && /* @__PURE__ */ c.jsx(
|
|
9446
9446
|
Pd,
|
|
9447
9447
|
{
|
|
9448
|
-
playable:
|
|
9448
|
+
playable: k,
|
|
9449
9449
|
creditDownload: x,
|
|
9450
9450
|
visible: i,
|
|
9451
9451
|
versionId: e,
|
|
@@ -9463,8 +9463,8 @@ const _d = ({
|
|
|
9463
9463
|
urlType: b,
|
|
9464
9464
|
allNetworksSelected: P,
|
|
9465
9465
|
cdnModal: y,
|
|
9466
|
-
setCdnModal:
|
|
9467
|
-
cdnUrl:
|
|
9466
|
+
setCdnModal: M,
|
|
9467
|
+
cdnUrl: U,
|
|
9468
9468
|
setCdnUrl: w,
|
|
9469
9469
|
customer: We ?? void 0
|
|
9470
9470
|
}
|
|
@@ -9939,14 +9939,14 @@ Nf.default.subscribe(Gf);
|
|
|
9939
9939
|
}, i = function() {
|
|
9940
9940
|
function E(L, G) {
|
|
9941
9941
|
for (var y = 0; y < G.length; y++) {
|
|
9942
|
-
var
|
|
9943
|
-
|
|
9942
|
+
var M = G[y];
|
|
9943
|
+
M.enumerable = M.enumerable || !1, M.configurable = !0, "value" in M && (M.writable = !0), Object.defineProperty(L, M.key, M);
|
|
9944
9944
|
}
|
|
9945
9945
|
}
|
|
9946
9946
|
return function(L, G, y) {
|
|
9947
9947
|
return G && E(L.prototype, G), y && E(L, y), L;
|
|
9948
9948
|
};
|
|
9949
|
-
}(), s = de, o = ir, a = q(o), l = at, A = S(l), u = Af, d = q(u), f = lt, p = S(f), g = Ut, m = S(g), v = st, b = q(v), Z = Qt,
|
|
9949
|
+
}(), s = de, o = ir, a = q(o), l = at, A = S(l), u = Af, d = q(u), f = lt, p = S(f), g = Ut, m = S(g), v = st, b = q(v), Z = Qt, k = q(Z);
|
|
9950
9950
|
function S(E) {
|
|
9951
9951
|
if (E && E.__esModule)
|
|
9952
9952
|
return E;
|
|
@@ -9968,7 +9968,7 @@ Nf.default.subscribe(Gf);
|
|
|
9968
9968
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9969
9969
|
return L && (typeof L == "object" || typeof L == "function") ? L : E;
|
|
9970
9970
|
}
|
|
9971
|
-
function
|
|
9971
|
+
function K(E, L) {
|
|
9972
9972
|
if (typeof L != "function" && L !== null)
|
|
9973
9973
|
throw new TypeError("Super expression must either be null or a function, not " + typeof L);
|
|
9974
9974
|
E.prototype = Object.create(L && L.prototype, { constructor: { value: E, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(E, L) : E.__proto__ = L);
|
|
@@ -9981,17 +9981,17 @@ Nf.default.subscribe(Gf);
|
|
|
9981
9981
|
}, z = function(L) {
|
|
9982
9982
|
return L.code === "Escape" || L.keyCode === 27;
|
|
9983
9983
|
}, j = 0, B = function(E) {
|
|
9984
|
-
|
|
9984
|
+
K(L, E);
|
|
9985
9985
|
function L(G) {
|
|
9986
9986
|
T(this, L);
|
|
9987
9987
|
var y = x(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, G));
|
|
9988
|
-
return y.setOverlayRef = function(
|
|
9989
|
-
y.overlay =
|
|
9990
|
-
}, y.setContentRef = function(
|
|
9991
|
-
y.content =
|
|
9988
|
+
return y.setOverlayRef = function(M) {
|
|
9989
|
+
y.overlay = M, y.props.overlayRef && y.props.overlayRef(M);
|
|
9990
|
+
}, y.setContentRef = function(M) {
|
|
9991
|
+
y.content = M, y.props.contentRef && y.props.contentRef(M);
|
|
9992
9992
|
}, y.afterClose = function() {
|
|
9993
|
-
var
|
|
9994
|
-
V && m.remove(J.body, V), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(
|
|
9993
|
+
var M = y.props, U = M.appElement, w = M.ariaHideApp, I = M.htmlOpenClassName, V = M.bodyOpenClassName, H = M.parentSelector, J = H && H().ownerDocument || document;
|
|
9994
|
+
V && m.remove(J.body, V), I && m.remove(J.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(), k.default.deregister(y);
|
|
9995
9995
|
}, y.open = function() {
|
|
9996
9996
|
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() {
|
|
9997
9997
|
y.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -10006,8 +10006,8 @@ Nf.default.subscribe(Gf);
|
|
|
10006
10006
|
}, y.focusContent = function() {
|
|
10007
10007
|
return y.content && !y.contentHasFocus() && y.content.focus({ preventScroll: !0 });
|
|
10008
10008
|
}, y.closeWithTimeout = function() {
|
|
10009
|
-
var
|
|
10010
|
-
y.setState({ beforeClose: !0, closesAt:
|
|
10009
|
+
var M = Date.now() + y.props.closeTimeoutMS;
|
|
10010
|
+
y.setState({ beforeClose: !0, closesAt: M }, function() {
|
|
10011
10011
|
y.closeTimer = setTimeout(y.closeWithoutTimeout, y.state.closesAt - Date.now());
|
|
10012
10012
|
});
|
|
10013
10013
|
}, y.closeWithoutTimeout = function() {
|
|
@@ -10017,36 +10017,36 @@ Nf.default.subscribe(Gf);
|
|
|
10017
10017
|
afterOpen: !1,
|
|
10018
10018
|
closesAt: null
|
|
10019
10019
|
}, y.afterClose);
|
|
10020
|
-
}, y.handleKeyDown = function(
|
|
10021
|
-
W(
|
|
10022
|
-
}, y.handleOverlayOnClick = function(
|
|
10023
|
-
y.shouldClose === null && (y.shouldClose = !0), y.shouldClose && y.props.shouldCloseOnOverlayClick && (y.ownerHandlesClose() ? y.requestClose(
|
|
10020
|
+
}, y.handleKeyDown = function(M) {
|
|
10021
|
+
W(M) && (0, d.default)(y.content, M), y.props.shouldCloseOnEsc && z(M) && (M.stopPropagation(), y.requestClose(M));
|
|
10022
|
+
}, y.handleOverlayOnClick = function(M) {
|
|
10023
|
+
y.shouldClose === null && (y.shouldClose = !0), y.shouldClose && y.props.shouldCloseOnOverlayClick && (y.ownerHandlesClose() ? y.requestClose(M) : y.focusContent()), y.shouldClose = null;
|
|
10024
10024
|
}, y.handleContentOnMouseUp = function() {
|
|
10025
10025
|
y.shouldClose = !1;
|
|
10026
|
-
}, y.handleOverlayOnMouseDown = function(
|
|
10027
|
-
!y.props.shouldCloseOnOverlayClick &&
|
|
10026
|
+
}, y.handleOverlayOnMouseDown = function(M) {
|
|
10027
|
+
!y.props.shouldCloseOnOverlayClick && M.target == y.overlay && M.preventDefault();
|
|
10028
10028
|
}, y.handleContentOnClick = function() {
|
|
10029
10029
|
y.shouldClose = !1;
|
|
10030
10030
|
}, y.handleContentOnMouseDown = function() {
|
|
10031
10031
|
y.shouldClose = !1;
|
|
10032
|
-
}, y.requestClose = function(
|
|
10033
|
-
return y.ownerHandlesClose() && y.props.onRequestClose(
|
|
10032
|
+
}, y.requestClose = function(M) {
|
|
10033
|
+
return y.ownerHandlesClose() && y.props.onRequestClose(M);
|
|
10034
10034
|
}, y.ownerHandlesClose = function() {
|
|
10035
10035
|
return y.props.onRequestClose;
|
|
10036
10036
|
}, y.shouldBeClosed = function() {
|
|
10037
10037
|
return !y.state.isOpen && !y.state.beforeClose;
|
|
10038
10038
|
}, y.contentHasFocus = function() {
|
|
10039
10039
|
return document.activeElement === y.content || y.content.contains(document.activeElement);
|
|
10040
|
-
}, y.buildClassName = function(
|
|
10041
|
-
var w = (typeof
|
|
10042
|
-
base: Y[
|
|
10043
|
-
afterOpen: Y[
|
|
10044
|
-
beforeClose: Y[
|
|
10040
|
+
}, y.buildClassName = function(M, U) {
|
|
10041
|
+
var w = (typeof U > "u" ? "undefined" : r(U)) === "object" ? U : {
|
|
10042
|
+
base: Y[M],
|
|
10043
|
+
afterOpen: Y[M] + "--after-open",
|
|
10044
|
+
beforeClose: Y[M] + "--before-close"
|
|
10045
10045
|
}, I = w.base;
|
|
10046
|
-
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof
|
|
10047
|
-
}, y.attributesFromObject = function(
|
|
10048
|
-
return Object.keys(
|
|
10049
|
-
return w[
|
|
10046
|
+
return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof U == "string" && U ? I + " " + U : I;
|
|
10047
|
+
}, y.attributesFromObject = function(M, U) {
|
|
10048
|
+
return Object.keys(U).reduce(function(w, I) {
|
|
10049
|
+
return w[M + "-" + I] = U[I], w;
|
|
10050
10050
|
}, {});
|
|
10051
10051
|
}, y.state = {
|
|
10052
10052
|
afterOpen: !1,
|
|
@@ -10060,8 +10060,8 @@ Nf.default.subscribe(Gf);
|
|
|
10060
10060
|
}
|
|
10061
10061
|
}, {
|
|
10062
10062
|
key: "componentDidUpdate",
|
|
10063
|
-
value: function(y,
|
|
10064
|
-
process.env.NODE_ENV !== "production" && (y.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), y.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !y.isOpen ? this.open() : !this.props.isOpen && y.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
10063
|
+
value: function(y, M) {
|
|
10064
|
+
process.env.NODE_ENV !== "production" && (y.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), y.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !y.isOpen ? this.open() : !this.props.isOpen && y.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !M.isOpen && this.focusContent();
|
|
10065
10065
|
}
|
|
10066
10066
|
}, {
|
|
10067
10067
|
key: "componentWillUnmount",
|
|
@@ -10071,14 +10071,14 @@ Nf.default.subscribe(Gf);
|
|
|
10071
10071
|
}, {
|
|
10072
10072
|
key: "beforeOpen",
|
|
10073
10073
|
value: function() {
|
|
10074
|
-
var y = this.props,
|
|
10075
|
-
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w),
|
|
10074
|
+
var y = this.props, M = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, V = y.parentSelector, H = V && V().ownerDocument || document;
|
|
10075
|
+
I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), U && (j += 1, p.hide(M)), k.default.register(this);
|
|
10076
10076
|
}
|
|
10077
10077
|
// Don't steal focus from inner elements
|
|
10078
10078
|
}, {
|
|
10079
10079
|
key: "render",
|
|
10080
10080
|
value: function() {
|
|
10081
|
-
var y = this.props,
|
|
10081
|
+
var y = this.props, M = y.id, U = y.className, w = y.overlayClassName, I = y.defaultStyles, V = y.children, H = U ? {} : I.content, J = w ? {} : I.overlay;
|
|
10082
10082
|
if (this.shouldBeClosed())
|
|
10083
10083
|
return null;
|
|
10084
10084
|
var P = {
|
|
@@ -10088,10 +10088,10 @@ Nf.default.subscribe(Gf);
|
|
|
10088
10088
|
onClick: this.handleOverlayOnClick,
|
|
10089
10089
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
10090
10090
|
}, F = n({
|
|
10091
|
-
id:
|
|
10091
|
+
id: M,
|
|
10092
10092
|
ref: this.setContentRef,
|
|
10093
10093
|
style: n({}, H, this.props.style.content),
|
|
10094
|
-
className: this.buildClassName("content",
|
|
10094
|
+
className: this.buildClassName("content", U),
|
|
10095
10095
|
tabIndex: "-1",
|
|
10096
10096
|
onKeyDown: this.handleKeyDown,
|
|
10097
10097
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -12818,8 +12818,8 @@ const uo = 5, rh = ({
|
|
|
12818
12818
|
}), b.on("video-compressing", async (Z) => {
|
|
12819
12819
|
if (console.log(Z), Z.userId === a._id && Z.isSuccess) {
|
|
12820
12820
|
console.log("Video compress successfull");
|
|
12821
|
-
const
|
|
12822
|
-
o(
|
|
12821
|
+
const k = await nh({ _id: i }, u);
|
|
12822
|
+
o(k.size), t(!1);
|
|
12823
12823
|
}
|
|
12824
12824
|
}), b.on("error", (Z) => {
|
|
12825
12825
|
console.error("Socket error:", Z);
|
|
@@ -13078,7 +13078,7 @@ const uh = ({
|
|
|
13078
13078
|
copyLinkUrl: p,
|
|
13079
13079
|
fusionData: g
|
|
13080
13080
|
}) => {
|
|
13081
|
-
const [m, v] = X(window.innerWidth), [b, Z] = X(!1), [
|
|
13081
|
+
const [m, v] = X(window.innerWidth), [b, Z] = X(!1), [k, S] = X(u), [q, T] = X(!1), [x, K] = X(!0), [Y, W] = X(null), [z, j] = X(""), [B, E] = X("Loading..."), [L, G] = X("Loading..."), [y, M] = X("game"), [U, w] = Te(Yi), [I, V] = Te(ma);
|
|
13082
13082
|
ad(o, a, j, f, g);
|
|
13083
13083
|
const H = async () => {
|
|
13084
13084
|
let J = await sh(a, o);
|
|
@@ -13089,7 +13089,7 @@ const uh = ({
|
|
|
13089
13089
|
J = J.map((P) => (P.name = P.id, P)), w(J), V(
|
|
13090
13090
|
J.map((P) => P.id).filter((P) => P !== "default")
|
|
13091
13091
|
), ld(J), pn(n, "preview", null, null, !1).then((P) => {
|
|
13092
|
-
Z(!0), S(f + "/" + P.url), (o === "Flex" || o === "Ready" || o === "Playable" || o === "Fusion") && (P.size >= 5 ? T(!0) : T(!1), W(P.size)),
|
|
13092
|
+
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);
|
|
13093
13093
|
});
|
|
13094
13094
|
};
|
|
13095
13095
|
return Ie(() => {
|
|
@@ -13107,7 +13107,7 @@ const uh = ({
|
|
|
13107
13107
|
isOpen: t,
|
|
13108
13108
|
ariaHideApp: !1,
|
|
13109
13109
|
onRequestClose: () => {
|
|
13110
|
-
e(), o === "Flex" &&
|
|
13110
|
+
e(), o === "Flex" && K(!0);
|
|
13111
13111
|
},
|
|
13112
13112
|
style: {
|
|
13113
13113
|
content: {
|
|
@@ -13171,7 +13171,7 @@ const uh = ({
|
|
|
13171
13171
|
{
|
|
13172
13172
|
setIsExceedingFileSizeAccepted: T,
|
|
13173
13173
|
closeModal: e,
|
|
13174
|
-
setLoading:
|
|
13174
|
+
setLoading: K,
|
|
13175
13175
|
typeOfProduct: o,
|
|
13176
13176
|
versionId: n,
|
|
13177
13177
|
fileSize: Y,
|
|
@@ -13188,7 +13188,7 @@ const uh = ({
|
|
|
13188
13188
|
isOpen: t,
|
|
13189
13189
|
ariaHideApp: !1,
|
|
13190
13190
|
onRequestClose: () => {
|
|
13191
|
-
e(), o === "Flex" &&
|
|
13191
|
+
e(), o === "Flex" && K(!0);
|
|
13192
13192
|
},
|
|
13193
13193
|
style: {
|
|
13194
13194
|
content: {
|
|
@@ -13233,7 +13233,7 @@ const uh = ({
|
|
|
13233
13233
|
"button",
|
|
13234
13234
|
{
|
|
13235
13235
|
onClick: () => {
|
|
13236
|
-
e(), o === "Flex" &&
|
|
13236
|
+
e(), o === "Flex" && K(!0);
|
|
13237
13237
|
},
|
|
13238
13238
|
style: {
|
|
13239
13239
|
color: "#718096",
|
|
@@ -13254,7 +13254,7 @@ const uh = ({
|
|
|
13254
13254
|
versionId: n,
|
|
13255
13255
|
playableId: s || "",
|
|
13256
13256
|
typeOfProduct: o,
|
|
13257
|
-
iframeUrl:
|
|
13257
|
+
iframeUrl: k,
|
|
13258
13258
|
api: a,
|
|
13259
13259
|
fetchFileUrl: f,
|
|
13260
13260
|
copyLinkUrl: p,
|
|
@@ -13310,7 +13310,7 @@ const uh = ({
|
|
|
13310
13310
|
setIosLink: E,
|
|
13311
13311
|
setAndroidLink: G,
|
|
13312
13312
|
urlType: y,
|
|
13313
|
-
setUrlType:
|
|
13313
|
+
setUrlType: M
|
|
13314
13314
|
}
|
|
13315
13315
|
)
|
|
13316
13316
|
] }),
|