gearboxdownloadmodal 6.0.25 → 6.0.26
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 +124 -124
- 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 na() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var W = Object.assign, j = 0, N, h, O,
|
|
157
|
+
var W = Object.assign, j = 0, N, h, O, D, C, Z, S;
|
|
158
158
|
function z() {
|
|
159
159
|
}
|
|
160
160
|
z.__reactDisabledLog = !0;
|
|
161
161
|
function Y() {
|
|
162
162
|
{
|
|
163
163
|
if (j === 0) {
|
|
164
|
-
N = console.log, h = console.info, O = console.warn,
|
|
164
|
+
N = console.log, h = console.info, O = console.warn, D = console.error, C = console.group, Z = console.groupCollapsed, S = console.groupEnd;
|
|
165
165
|
var c = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -200,7 +200,7 @@ function na() {
|
|
|
200
200
|
value: O
|
|
201
201
|
}),
|
|
202
202
|
error: W({}, c, {
|
|
203
|
-
value:
|
|
203
|
+
value: D
|
|
204
204
|
}),
|
|
205
205
|
group: W({}, c, {
|
|
206
206
|
value: C
|
|
@@ -232,8 +232,8 @@ function na() {
|
|
|
232
232
|
}
|
|
233
233
|
var ee = !1, G;
|
|
234
234
|
{
|
|
235
|
-
var
|
|
236
|
-
G = new
|
|
235
|
+
var R = typeof WeakMap == "function" ? WeakMap : Map;
|
|
236
|
+
G = new R();
|
|
237
237
|
}
|
|
238
238
|
function K(c, w) {
|
|
239
239
|
if (!c || ee)
|
|
@@ -306,7 +306,7 @@ function na() {
|
|
|
306
306
|
var dt = c ? c.displayName || c.name : "", et = dt ? V(dt) : "";
|
|
307
307
|
return typeof c == "function" && G.set(c, et), et;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Ae(c, w, E) {
|
|
310
310
|
return K(c, !1);
|
|
311
311
|
}
|
|
312
312
|
function Te(c) {
|
|
@@ -329,7 +329,7 @@ function na() {
|
|
|
329
329
|
if (typeof c == "object")
|
|
330
330
|
switch (c.$$typeof) {
|
|
331
331
|
case m:
|
|
332
|
-
return
|
|
332
|
+
return Ae(c.render);
|
|
333
333
|
case d:
|
|
334
334
|
return Oe(c.type, w, E);
|
|
335
335
|
case v: {
|
|
@@ -728,7 +728,7 @@ const Co = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZX
|
|
|
728
728
|
children: e
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
|
-
var on = {}, Dn = { exports: {} }, jt = { exports: {} },
|
|
731
|
+
var on = {}, Dn = { exports: {} }, jt = { exports: {} }, se = {};
|
|
732
732
|
/** @license React v16.13.1
|
|
733
733
|
* react-is.production.min.js
|
|
734
734
|
*
|
|
@@ -740,7 +740,7 @@ var on = {}, Dn = { exports: {} }, jt = { exports: {} }, Ae = {};
|
|
|
740
740
|
var jr;
|
|
741
741
|
function aa() {
|
|
742
742
|
if (jr)
|
|
743
|
-
return
|
|
743
|
+
return se;
|
|
744
744
|
jr = 1;
|
|
745
745
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, v = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, f = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
|
|
746
746
|
function M(b) {
|
|
@@ -776,35 +776,35 @@ function aa() {
|
|
|
776
776
|
function L(b) {
|
|
777
777
|
return M(b) === u;
|
|
778
778
|
}
|
|
779
|
-
return
|
|
779
|
+
return se.AsyncMode = m, se.ConcurrentMode = u, se.ContextConsumer = A, se.ContextProvider = a, se.Element = t, se.ForwardRef = s, se.Fragment = r, se.Lazy = f, se.Memo = g, se.Portal = n, se.Profiler = i, se.StrictMode = o, se.Suspense = d, se.isAsyncMode = function(b) {
|
|
780
780
|
return L(b) || M(b) === m;
|
|
781
|
-
},
|
|
781
|
+
}, se.isConcurrentMode = L, se.isContextConsumer = function(b) {
|
|
782
782
|
return M(b) === A;
|
|
783
|
-
},
|
|
783
|
+
}, se.isContextProvider = function(b) {
|
|
784
784
|
return M(b) === a;
|
|
785
|
-
},
|
|
785
|
+
}, se.isElement = function(b) {
|
|
786
786
|
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
787
|
-
},
|
|
787
|
+
}, se.isForwardRef = function(b) {
|
|
788
788
|
return M(b) === s;
|
|
789
|
-
},
|
|
789
|
+
}, se.isFragment = function(b) {
|
|
790
790
|
return M(b) === r;
|
|
791
|
-
},
|
|
791
|
+
}, se.isLazy = function(b) {
|
|
792
792
|
return M(b) === f;
|
|
793
|
-
},
|
|
793
|
+
}, se.isMemo = function(b) {
|
|
794
794
|
return M(b) === g;
|
|
795
|
-
},
|
|
795
|
+
}, se.isPortal = function(b) {
|
|
796
796
|
return M(b) === n;
|
|
797
|
-
},
|
|
797
|
+
}, se.isProfiler = function(b) {
|
|
798
798
|
return M(b) === i;
|
|
799
|
-
},
|
|
799
|
+
}, se.isStrictMode = function(b) {
|
|
800
800
|
return M(b) === o;
|
|
801
|
-
},
|
|
801
|
+
}, se.isSuspense = function(b) {
|
|
802
802
|
return M(b) === d;
|
|
803
|
-
},
|
|
803
|
+
}, se.isValidElementType = function(b) {
|
|
804
804
|
return typeof b == "string" || typeof b == "function" || b === r || b === u || b === i || b === o || b === d || b === v || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === g || b.$$typeof === a || b.$$typeof === A || b.$$typeof === s || b.$$typeof === y || b.$$typeof === I || b.$$typeof === k || b.$$typeof === p);
|
|
805
|
-
},
|
|
805
|
+
}, se.typeOf = M, se;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
807
|
+
var le = {};
|
|
808
808
|
/** @license React v16.13.1
|
|
809
809
|
* react-is.development.js
|
|
810
810
|
*
|
|
@@ -823,8 +823,8 @@ function Aa() {
|
|
|
823
823
|
}
|
|
824
824
|
function L(K) {
|
|
825
825
|
if (typeof K == "object" && K !== null) {
|
|
826
|
-
var
|
|
827
|
-
switch (
|
|
826
|
+
var Ae = K.$$typeof;
|
|
827
|
+
switch (Ae) {
|
|
828
828
|
case t:
|
|
829
829
|
var Te = K.type;
|
|
830
830
|
switch (Te) {
|
|
@@ -845,16 +845,16 @@ function Aa() {
|
|
|
845
845
|
case a:
|
|
846
846
|
return Oe;
|
|
847
847
|
default:
|
|
848
|
-
return
|
|
848
|
+
return Ae;
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
case n:
|
|
852
|
-
return
|
|
852
|
+
return Ae;
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
var b = m, H = u, Q = A, _ = a, ue = t, te = s, ae = r, P = f, $ = g, W = n, j = i, N = o, h = d, O = !1;
|
|
857
|
-
function
|
|
857
|
+
function D(K) {
|
|
858
858
|
return O || (O = !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.")), C(K) || L(K) === m;
|
|
859
859
|
}
|
|
860
860
|
function C(K) {
|
|
@@ -890,11 +890,11 @@ function Aa() {
|
|
|
890
890
|
function G(K) {
|
|
891
891
|
return L(K) === o;
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function R(K) {
|
|
894
894
|
return L(K) === d;
|
|
895
895
|
}
|
|
896
|
-
|
|
897
|
-
}()),
|
|
896
|
+
le.AsyncMode = b, le.ConcurrentMode = H, le.ContextConsumer = Q, le.ContextProvider = _, le.Element = ue, le.ForwardRef = te, le.Fragment = ae, le.Lazy = P, le.Memo = $, le.Portal = W, le.Profiler = j, le.StrictMode = N, le.Suspense = h, le.isAsyncMode = D, le.isConcurrentMode = C, le.isContextConsumer = Z, le.isContextProvider = S, le.isElement = z, le.isForwardRef = Y, le.isFragment = F, le.isLazy = x, le.isMemo = J, le.isPortal = V, le.isProfiler = ee, le.isStrictMode = G, le.isSuspense = R, le.isValidElementType = M, le.typeOf = L;
|
|
897
|
+
}()), le;
|
|
898
898
|
}
|
|
899
899
|
var Nr;
|
|
900
900
|
function Zo() {
|
|
@@ -1070,19 +1070,19 @@ function ua() {
|
|
|
1070
1070
|
function y(C) {
|
|
1071
1071
|
if (process.env.NODE_ENV !== "production")
|
|
1072
1072
|
var Z = {}, S = 0;
|
|
1073
|
-
function z(F, x, J, V, ee, G,
|
|
1074
|
-
if (V = V || v, G = G || J,
|
|
1073
|
+
function z(F, x, J, V, ee, G, R) {
|
|
1074
|
+
if (V = V || v, G = G || J, R !== n) {
|
|
1075
1075
|
if (m) {
|
|
1076
1076
|
var K = new Error(
|
|
1077
1077
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1078
1078
|
);
|
|
1079
1079
|
throw K.name = "Invariant Violation", K;
|
|
1080
1080
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1081
|
-
var
|
|
1082
|
-
!Z[
|
|
1081
|
+
var Ae = V + ":" + J;
|
|
1082
|
+
!Z[Ae] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1083
1083
|
S < 3 && (i(
|
|
1084
1084
|
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + V + "`. 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
|
-
), Z[
|
|
1085
|
+
), Z[Ae] = !0, S++);
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
return x[J] == null ? F ? x[J] === null ? new p("The " + ee + " `" + G + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new p("The " + ee + " `" + G + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : C(x, J, V, ee, G);
|
|
@@ -1150,7 +1150,7 @@ function ua() {
|
|
|
1150
1150
|
function H(C) {
|
|
1151
1151
|
function Z(S, z, Y, F, x) {
|
|
1152
1152
|
if (!(S[z] instanceof C)) {
|
|
1153
|
-
var J = C.name || v, V =
|
|
1153
|
+
var J = C.name || v, V = D(S[z]);
|
|
1154
1154
|
return new p("Invalid " + F + " `" + x + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("instance of `" + J + "`."));
|
|
1155
1155
|
}
|
|
1156
1156
|
return null;
|
|
@@ -1166,9 +1166,9 @@ function ua() {
|
|
|
1166
1166
|
for (var J = S[z], V = 0; V < C.length; V++)
|
|
1167
1167
|
if (f(J, C[V]))
|
|
1168
1168
|
return null;
|
|
1169
|
-
var ee = JSON.stringify(C, function(
|
|
1170
|
-
var
|
|
1171
|
-
return
|
|
1169
|
+
var ee = JSON.stringify(C, function(R, K) {
|
|
1170
|
+
var Ae = h(K);
|
|
1171
|
+
return Ae === "symbol" ? String(K) : K;
|
|
1172
1172
|
});
|
|
1173
1173
|
return new p("Invalid " + F + " `" + x + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + ee + "."));
|
|
1174
1174
|
}
|
|
@@ -1203,13 +1203,13 @@ function ua() {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
function z(Y, F, x, J, V) {
|
|
1205
1205
|
for (var ee = [], G = 0; G < C.length; G++) {
|
|
1206
|
-
var
|
|
1206
|
+
var R = C[G], K = R(Y, F, x, J, V, n);
|
|
1207
1207
|
if (K == null)
|
|
1208
1208
|
return null;
|
|
1209
1209
|
K.data && r(K.data, "expectedType") && ee.push(K.data.expectedType);
|
|
1210
1210
|
}
|
|
1211
|
-
var
|
|
1212
|
-
return new p("Invalid " + J + " `" + V + "` supplied to " + ("`" + x + "`" +
|
|
1211
|
+
var Ae = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
|
|
1212
|
+
return new p("Invalid " + J + " `" + V + "` supplied to " + ("`" + x + "`" + Ae + "."));
|
|
1213
1213
|
}
|
|
1214
1214
|
return y(z);
|
|
1215
1215
|
}
|
|
@@ -1233,9 +1233,9 @@ function ua() {
|
|
|
1233
1233
|
var G = C[ee];
|
|
1234
1234
|
if (typeof G != "function")
|
|
1235
1235
|
return ae(Y, F, x, ee, h(G));
|
|
1236
|
-
var
|
|
1237
|
-
if (
|
|
1238
|
-
return
|
|
1236
|
+
var R = G(J, ee, Y, F, x + "." + ee, n);
|
|
1237
|
+
if (R)
|
|
1238
|
+
return R;
|
|
1239
1239
|
}
|
|
1240
1240
|
return null;
|
|
1241
1241
|
}
|
|
@@ -1248,15 +1248,15 @@ function ua() {
|
|
|
1248
1248
|
return new p("Invalid " + F + " `" + x + "` of type `" + V + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
1249
1249
|
var ee = t({}, S[z], C);
|
|
1250
1250
|
for (var G in ee) {
|
|
1251
|
-
var
|
|
1252
|
-
if (r(C, G) && typeof
|
|
1253
|
-
return ae(Y, F, x, G, h(
|
|
1254
|
-
if (!
|
|
1251
|
+
var R = C[G];
|
|
1252
|
+
if (r(C, G) && typeof R != "function")
|
|
1253
|
+
return ae(Y, F, x, G, h(R));
|
|
1254
|
+
if (!R)
|
|
1255
1255
|
return new p(
|
|
1256
1256
|
"Invalid " + F + " `" + x + "` key `" + G + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(S[z], null, " ") + `
|
|
1257
1257
|
Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
1258
1258
|
);
|
|
1259
|
-
var K =
|
|
1259
|
+
var K = R(J, G, Y, F, x + "." + G, n);
|
|
1260
1260
|
if (K)
|
|
1261
1261
|
return K;
|
|
1262
1262
|
}
|
|
@@ -1330,7 +1330,7 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
|
|
|
1330
1330
|
return Z;
|
|
1331
1331
|
}
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function D(C) {
|
|
1334
1334
|
return !C.constructor || !C.constructor.name ? v : C.constructor.name;
|
|
1335
1335
|
}
|
|
1336
1336
|
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
@@ -4118,7 +4118,7 @@ function Ws(e) {
|
|
|
4118
4118
|
_.iconOut = function(P) {
|
|
4119
4119
|
let { theme: $, type: W, isLoading: j, icon: N } = P, h = null;
|
|
4120
4120
|
const O = { theme: $, type: W };
|
|
4121
|
-
return N === !1 || (Ie(N) ? h = N(O) : ft(N) ? h = Nn(N, O) : lt(N) || xt(N) ? h = N : j ? h = zn.spinner() : ((
|
|
4121
|
+
return N === !1 || (Ie(N) ? h = N(O) : ft(N) ? h = Nn(N, O) : lt(N) || xt(N) ? h = N : j ? h = zn.spinner() : ((D) => D in zn)(W) && (h = zn[W](O))), h;
|
|
4122
4122
|
}(_), Ie(I.onOpen) && (_.onOpen = I.onOpen), Ie(I.onClose) && (_.onClose = I.onClose), _.closeButton = b.closeButton, I.closeButton === !1 || kn(I.closeButton) ? _.closeButton = I.closeButton : I.closeButton === !0 && (_.closeButton = !kn(b.closeButton) || b.closeButton);
|
|
4123
4123
|
let ae = g;
|
|
4124
4124
|
ft(g) && !lt(g.type) ? ae = Nn(g, { closeToast: H, toastProps: _, data: L }) : Ie(g) && (ae = g({ closeToast: H, toastProps: _, data: L })), b.limit && b.limit > 0 && A.count > b.limit && Q ? A.queue.push({ toastContent: ae, toastProps: _, staleId: y }) : xt(p) ? setTimeout(() => {
|
|
@@ -4213,8 +4213,8 @@ function Ss(e) {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
const Ls = (e) => {
|
|
4215
4215
|
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = Ms(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: u, hideProgressBar: s, closeToast: d, transition: v, position: g, className: f, style: p, bodyClassName: y, bodyStyle: I, progressClassName: k, progressStyle: M, updateId: L, role: b, progress: H, rtl: Q, toastId: _, deleteToast: ue, isIn: te, isLoading: ae, iconOut: P, closeOnClick: $, theme: W } = e, j = Ue("Toastify__toast", `Toastify__toast-theme--${W}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": Q }, { "Toastify__toast--close-on-click": $ }), N = Ie(f) ? f({ rtl: Q, position: g, type: u, defaultClassName: j }) : Ue(j, f), h = !!H || !A, O = { closeToast: d, type: u, theme: W };
|
|
4216
|
-
let
|
|
4217
|
-
return i === !1 || (
|
|
4216
|
+
let D = null;
|
|
4217
|
+
return i === !1 || (D = Ie(i) ? i(O) : ft(i) ? Nn(i, O) : di(O)), ie.createElement(v, { isIn: te, done: ue, position: g, preventExitTransition: n, nodeRef: r }, ie.createElement("div", { id: _, onClick: m, className: N, ...o, style: p, ref: r }, ie.createElement("div", { ...te && { role: b }, className: Ie(y) ? y({ type: u }) : Ue("Toastify__toast-body", y), style: I }, P != null && ie.createElement("div", { className: Ue("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, P), ie.createElement("div", null, a)), D, ie.createElement(Ss, { ...L && !h ? { key: `pb-${L}` } : {}, rtl: Q, theme: W, delay: A, isRunning: t, isIn: te, closeToast: d, hide: s, type: u, style: M, className: k, controlledProgress: h, progress: H || 0 })));
|
|
4218
4218
|
}, hn = function(e, t) {
|
|
4219
4219
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
4220
4220
|
}, Os = fn(hn("bounce", !0));
|
|
@@ -6066,7 +6066,7 @@ const _s = ({
|
|
|
6066
6066
|
isTest: b,
|
|
6067
6067
|
urlType: H
|
|
6068
6068
|
}) => {
|
|
6069
|
-
const [Q, _] = B(!1), [ue, te] = B(""), [ae, P] = B(!1), [$, W] = B(!1), [j, N] = B(!1), [h, O] = B("download"), [
|
|
6069
|
+
const [Q, _] = B(!1), [ue, te] = B(""), [ae, P] = B(!1), [$, W] = B(!1), [j, N] = B(!1), [h, O] = B("download"), [D, C] = B(!1), [Z, S] = B(!1), [z, Y] = B(!1);
|
|
6070
6070
|
let F = {
|
|
6071
6071
|
aarki: "html,copy",
|
|
6072
6072
|
adcolony: "copy,html",
|
|
@@ -6113,32 +6113,32 @@ const _s = ({
|
|
|
6113
6113
|
};
|
|
6114
6114
|
const x = () => {
|
|
6115
6115
|
n(e);
|
|
6116
|
-
}, J = async (
|
|
6117
|
-
const
|
|
6116
|
+
}, J = async (R, K) => {
|
|
6117
|
+
const Ae = {
|
|
6118
6118
|
molocoGenerateHtml: !1,
|
|
6119
6119
|
urlType: H
|
|
6120
6120
|
};
|
|
6121
|
-
return G && (K === "copy" ? (S(!0), K = "download",
|
|
6122
|
-
en(u,
|
|
6121
|
+
return G && (K === "copy" ? (S(!0), K = "download", Ae.molocoGenerateHtml = !0) : C(!0)), console.log("getVersion", R, K, Ae), _(!0), new Promise((Te, Oe) => {
|
|
6122
|
+
en(u, R, g, K, b, Ae).then((Ee) => {
|
|
6123
6123
|
_(!1), Te(Ee), S(!1), C(!1);
|
|
6124
6124
|
}).catch((Ee) => {
|
|
6125
6125
|
_(!1), d(Ee.message, Ee), Oe(Ee), S(!1), C(!1);
|
|
6126
6126
|
});
|
|
6127
6127
|
});
|
|
6128
|
-
}, V = async (
|
|
6129
|
-
|
|
6128
|
+
}, V = async (R = !1) => {
|
|
6129
|
+
console.log("handleMolocoDownload", R), R ? S(!0) : C(!0);
|
|
6130
6130
|
const K = {
|
|
6131
6131
|
molocoGenerateHtml: !1
|
|
6132
6132
|
};
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
}).catch((
|
|
6136
|
-
d(
|
|
6133
|
+
R && (K.molocoGenerateHtml = !0), en(u, o, g, "download", b, K).then((Ae) => {
|
|
6134
|
+
R ? S(!1) : C(!1), N(!1);
|
|
6135
|
+
}).catch((Ae) => {
|
|
6136
|
+
d(Ae.message, Ae);
|
|
6137
6137
|
});
|
|
6138
6138
|
}, ee = async () => {
|
|
6139
6139
|
Y(!0);
|
|
6140
|
-
const
|
|
6141
|
-
let K = `${v}/${
|
|
6140
|
+
const R = await Fs(s, u, o, m);
|
|
6141
|
+
let K = `${v}/${R == null ? void 0 : R.url}`;
|
|
6142
6142
|
pn(K) ? (kt("Link Copied"), Y(!1)) : L(K);
|
|
6143
6143
|
}, G = o === "moloco" || o === "molocoV2";
|
|
6144
6144
|
return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -6181,7 +6181,7 @@ const _s = ({
|
|
|
6181
6181
|
top: "0",
|
|
6182
6182
|
padding: "8px"
|
|
6183
6183
|
},
|
|
6184
|
-
children: /* @__PURE__ */ l.jsx("div", { children: i && i.map((
|
|
6184
|
+
children: /* @__PURE__ */ l.jsx("div", { children: i && i.map((R) => R.network).includes(o) ? a ? /* @__PURE__ */ l.jsx(
|
|
6185
6185
|
"div",
|
|
6186
6186
|
{
|
|
6187
6187
|
style: {
|
|
@@ -6197,7 +6197,7 @@ const _s = ({
|
|
|
6197
6197
|
},
|
|
6198
6198
|
children: /* @__PURE__ */ l.jsx(Vs, { typeOfProduct: m })
|
|
6199
6199
|
}
|
|
6200
|
-
) : i.map((
|
|
6200
|
+
) : i.map((R) => /* @__PURE__ */ l.jsx(
|
|
6201
6201
|
"div",
|
|
6202
6202
|
{
|
|
6203
6203
|
style: {
|
|
@@ -6212,9 +6212,9 @@ const _s = ({
|
|
|
6212
6212
|
justifyContent: "center",
|
|
6213
6213
|
alignItems: "center"
|
|
6214
6214
|
},
|
|
6215
|
-
children:
|
|
6215
|
+
children: R.network === o ? R.size.toString().slice(0, 5) + "Mb" : ""
|
|
6216
6216
|
},
|
|
6217
|
-
|
|
6217
|
+
R.network
|
|
6218
6218
|
)) : null })
|
|
6219
6219
|
}
|
|
6220
6220
|
),
|
|
@@ -6268,18 +6268,18 @@ const _s = ({
|
|
|
6268
6268
|
{
|
|
6269
6269
|
className: `${G ? "w-1/2" : "w-2/3"} border-hover-` + m,
|
|
6270
6270
|
downloading: Q,
|
|
6271
|
-
onClickDonwload: async (
|
|
6272
|
-
if (
|
|
6271
|
+
onClickDonwload: async (R) => {
|
|
6272
|
+
if (R.stopPropagation(), G && M.customer === "playableFactoryInternal") {
|
|
6273
6273
|
N(!0);
|
|
6274
6274
|
return;
|
|
6275
6275
|
} else {
|
|
6276
6276
|
te("download");
|
|
6277
|
-
const K = g.iosUrl,
|
|
6278
|
-
y && y.willSpendCredit ? (p(!0), O("download"), P(!0)) : ["Playable", "Flex"].includes(m) && (!K || !
|
|
6277
|
+
const K = g.iosUrl, Ae = g.googleUrl;
|
|
6278
|
+
y && y.willSpendCredit ? (p(!0), O("download"), P(!0)) : ["Playable", "Flex"].includes(m) && (!K || !Ae) || m === "Ready" && H === "single" && !K || m === "Ready" && H === "multi" && (!K || !Ae) ? (p(!0), W(!0)) : (W(!1), P(!1), await J(o, "download"));
|
|
6279
6279
|
}
|
|
6280
6280
|
},
|
|
6281
6281
|
children: G ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6282
|
-
!
|
|
6282
|
+
!D && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6283
6283
|
/* @__PURE__ */ l.jsx(
|
|
6284
6284
|
Jn,
|
|
6285
6285
|
{
|
|
@@ -6297,7 +6297,7 @@ const _s = ({
|
|
|
6297
6297
|
),
|
|
6298
6298
|
M.customer !== "playableFactoryInternal" ? "TXT" : "Download"
|
|
6299
6299
|
] }),
|
|
6300
|
-
|
|
6300
|
+
D && /* @__PURE__ */ l.jsx(Wt, {})
|
|
6301
6301
|
] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6302
6302
|
!Q && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
6303
6303
|
/* @__PURE__ */ l.jsx(
|
|
@@ -6325,10 +6325,10 @@ const _s = ({
|
|
|
6325
6325
|
jn,
|
|
6326
6326
|
{
|
|
6327
6327
|
className: "w-1/3 border-hover-" + m,
|
|
6328
|
-
onClickDonwload: async (
|
|
6329
|
-
|
|
6330
|
-
const K = g.iosUrl,
|
|
6331
|
-
y && (y != null && y.willSpendCredit) ? (O("copy"), p(!0), P(!0)) : m !== "Import" && (!K || !
|
|
6328
|
+
onClickDonwload: async (R) => {
|
|
6329
|
+
R.stopPropagation(), te("copyLink");
|
|
6330
|
+
const K = g.iosUrl, Ae = g.googleUrl;
|
|
6331
|
+
y && (y != null && y.willSpendCredit) ? (O("copy"), p(!0), P(!0)) : m !== "Import" && (!K || !Ae) ? (p(!0), W(!0)) : (P(!1), W(!1), await J(o, "copy"));
|
|
6332
6332
|
},
|
|
6333
6333
|
disabled: k,
|
|
6334
6334
|
children: /* @__PURE__ */ l.jsx(Yo, { className: "h-6 w-6 stroke-dark-full" })
|
|
@@ -6338,10 +6338,10 @@ const _s = ({
|
|
|
6338
6338
|
jn,
|
|
6339
6339
|
{
|
|
6340
6340
|
className: "w-1/2 border-hover-" + m,
|
|
6341
|
-
onClickDonwload: async (
|
|
6342
|
-
|
|
6343
|
-
const K = g.iosUrl,
|
|
6344
|
-
y && (y != null && y.willSpendCredit) ? (O("download"), p(!0), P(!0)) : m !== "Import" && (!K || !
|
|
6341
|
+
onClickDonwload: async (R) => {
|
|
6342
|
+
R.stopPropagation(), te("copyLink");
|
|
6343
|
+
const K = g.iosUrl, Ae = g.googleUrl;
|
|
6344
|
+
y && (y != null && y.willSpendCredit) ? (O("download"), p(!0), P(!0)) : m !== "Import" && (!K || !Ae) ? (p(!0), W(!0)) : (P(!1), W(!1), await V(!0));
|
|
6345
6345
|
},
|
|
6346
6346
|
disabled: k,
|
|
6347
6347
|
children: [
|
|
@@ -6428,7 +6428,7 @@ const _s = ({
|
|
|
6428
6428
|
},
|
|
6429
6429
|
handleDownload: V,
|
|
6430
6430
|
handleDownloadMolocoTest: ee,
|
|
6431
|
-
downloadingMoloco:
|
|
6431
|
+
downloadingMoloco: D,
|
|
6432
6432
|
donwloadintMolocoTest: z,
|
|
6433
6433
|
downloadingMolocoHtml: Z
|
|
6434
6434
|
}
|
|
@@ -6759,7 +6759,7 @@ const _s = ({
|
|
|
6759
6759
|
} else
|
|
6760
6760
|
S.push(Z), M([...k, Z]);
|
|
6761
6761
|
Gt.filter((z) => [...S].includes(z.id)).map((z) => z.name);
|
|
6762
|
-
},
|
|
6762
|
+
}, D = async () => new Promise(async (Z, S) => {
|
|
6763
6763
|
const z = Gt.filter((Y) => [...k].includes(Y.id)).map((Y) => Y.name);
|
|
6764
6764
|
ae(!0), Ys(r, u, z, { urlType: p }).then((Y) => {
|
|
6765
6765
|
ae(!1), Z(Y);
|
|
@@ -6767,7 +6767,7 @@ const _s = ({
|
|
|
6767
6767
|
console.log("get multi download err"), ae(!1), A(Y.message, Y), S(Y);
|
|
6768
6768
|
});
|
|
6769
6769
|
}), C = async () => {
|
|
6770
|
-
u.iosUrl, u.googleUrl, t && t.willSpendCredit ? ($(!0), j("download"), h(!0)) : (h(!1), await
|
|
6770
|
+
u.iosUrl, u.googleUrl, t && t.willSpendCredit ? ($(!0), j("download"), h(!0)) : (h(!1), await D());
|
|
6771
6771
|
};
|
|
6772
6772
|
return ve(() => {
|
|
6773
6773
|
const Z = Gt.filter((S) => {
|
|
@@ -6872,7 +6872,7 @@ const _s = ({
|
|
|
6872
6872
|
handleCopyLink: async () => {
|
|
6873
6873
|
},
|
|
6874
6874
|
download: async () => {
|
|
6875
|
-
h(!1), $(!1), await
|
|
6875
|
+
h(!1), $(!1), await D();
|
|
6876
6876
|
},
|
|
6877
6877
|
onClose: () => {
|
|
6878
6878
|
h(!1), $(!1);
|
|
@@ -6969,7 +6969,7 @@ const ll = ({
|
|
|
6969
6969
|
window.removeEventListener("resize", x);
|
|
6970
6970
|
};
|
|
6971
6971
|
}, []);
|
|
6972
|
-
const
|
|
6972
|
+
const D = async () => {
|
|
6973
6973
|
te(!0);
|
|
6974
6974
|
const x = await Fn(e, i);
|
|
6975
6975
|
return x != null && x.networks || (x.networks = sl), L(x), x;
|
|
@@ -6987,9 +6987,9 @@ const ll = ({
|
|
|
6987
6987
|
try {
|
|
6988
6988
|
let G;
|
|
6989
6989
|
if (r === "Playable" || r === "Ready") {
|
|
6990
|
-
const
|
|
6991
|
-
if (
|
|
6992
|
-
console.log("version",
|
|
6990
|
+
const R = await ol(t, i);
|
|
6991
|
+
if (R) {
|
|
6992
|
+
console.log("version", R), p(R.iosLink), y(R.androidLink), te(!1);
|
|
6993
6993
|
return;
|
|
6994
6994
|
}
|
|
6995
6995
|
if (x && (x.iosUrl || x.googleUrl)) {
|
|
@@ -7000,10 +7000,10 @@ const ll = ({
|
|
|
7000
7000
|
let K = await fetch(u + "/" + J.html).then(
|
|
7001
7001
|
(Oe) => Oe.text()
|
|
7002
7002
|
);
|
|
7003
|
-
const
|
|
7003
|
+
const Ae = ((V = K.match(
|
|
7004
7004
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
7005
7005
|
)) == null ? void 0 : V.at(1)) || "";
|
|
7006
|
-
p(
|
|
7006
|
+
p(Ae);
|
|
7007
7007
|
const Te = ((ee = K.match(
|
|
7008
7008
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
7009
7009
|
)) == null ? void 0 : ee.at(1)) || "";
|
|
@@ -7011,9 +7011,9 @@ const ll = ({
|
|
|
7011
7011
|
} else
|
|
7012
7012
|
y(""), p(""), te(!1);
|
|
7013
7013
|
} else if (r === "Flex") {
|
|
7014
|
-
const
|
|
7015
|
-
if (
|
|
7016
|
-
y(
|
|
7014
|
+
const R = await il(t, i);
|
|
7015
|
+
if (R.googleUrl || R.iosUrl) {
|
|
7016
|
+
y(R.googleUrl), p(R.iosUrl), te(!1);
|
|
7017
7017
|
return;
|
|
7018
7018
|
}
|
|
7019
7019
|
x && (x.iosUrl || x.googleUrl) ? (p(x.iosUrl), y(x.googleUrl), te(!1)) : (y(""), p(""), te(!1));
|
|
@@ -7033,10 +7033,10 @@ const ll = ({
|
|
|
7033
7033
|
}) : _(x)), te(!1);
|
|
7034
7034
|
}, F = async () => await rl(n, i);
|
|
7035
7035
|
return ve(() => {
|
|
7036
|
-
o || (L(null), H(null), _(null), d(null)), o && (r === "Playable" ? (
|
|
7036
|
+
o || (L(null), H(null), _(null), d(null)), o && (r === "Playable" ? (D().then((x) => {
|
|
7037
7037
|
z(null, x);
|
|
7038
7038
|
}), P(!1)) : r === "Ready" ? Y().then((x) => {
|
|
7039
|
-
|
|
7039
|
+
D().then((J) => {
|
|
7040
7040
|
z(null, J), P(!1);
|
|
7041
7041
|
});
|
|
7042
7042
|
}) : r === "Flex" ? Y().then((x) => {
|
|
@@ -7637,8 +7637,8 @@ Bl.default.subscribe($l);
|
|
|
7637
7637
|
}, h.setContentRef = function(O) {
|
|
7638
7638
|
h.content = O, h.props.contentRef && h.props.contentRef(O);
|
|
7639
7639
|
}, h.afterClose = function() {
|
|
7640
|
-
var O = h.props,
|
|
7641
|
-
S && p.remove(Y.body, S), Z && p.remove(Y.getElementsByTagName("html")[0], Z), C && P > 0 && (P -= 1, P === 0 && g.show(
|
|
7640
|
+
var O = h.props, D = O.appElement, C = O.ariaHideApp, Z = O.htmlOpenClassName, S = O.bodyOpenClassName, z = O.parentSelector, Y = z && z().ownerDocument || document;
|
|
7641
|
+
S && p.remove(Y.body, S), Z && p.remove(Y.getElementsByTagName("html")[0], Z), C && P > 0 && (P -= 1, P === 0 && g.show(D)), h.props.shouldFocusAfterRender && (h.props.shouldReturnFocusAfterClose ? (u.returnFocus(h.props.preventScroll), u.teardownScopedFocus()) : u.popWithoutFocus()), h.props.onAfterClose && h.props.onAfterClose(), M.default.deregister(h);
|
|
7642
7642
|
}, h.open = function() {
|
|
7643
7643
|
h.beforeOpen(), h.state.afterOpen && h.state.beforeClose ? (clearTimeout(h.closeTimer), h.setState({ beforeClose: !1 })) : (h.props.shouldFocusAfterRender && (u.setupScopedFocus(h.node), u.markForFocusLater()), h.setState({ isOpen: !0 }, function() {
|
|
7644
7644
|
h.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -7684,16 +7684,16 @@ Bl.default.subscribe($l);
|
|
|
7684
7684
|
return !h.state.isOpen && !h.state.beforeClose;
|
|
7685
7685
|
}, h.contentHasFocus = function() {
|
|
7686
7686
|
return document.activeElement === h.content || h.content.contains(document.activeElement);
|
|
7687
|
-
}, h.buildClassName = function(O,
|
|
7688
|
-
var C = (typeof
|
|
7687
|
+
}, h.buildClassName = function(O, D) {
|
|
7688
|
+
var C = (typeof D > "u" ? "undefined" : r(D)) === "object" ? D : {
|
|
7689
7689
|
base: ue[O],
|
|
7690
7690
|
afterOpen: ue[O] + "--after-open",
|
|
7691
7691
|
beforeClose: ue[O] + "--before-close"
|
|
7692
7692
|
}, Z = C.base;
|
|
7693
|
-
return h.state.afterOpen && (Z = Z + " " + C.afterOpen), h.state.beforeClose && (Z = Z + " " + C.beforeClose), typeof
|
|
7694
|
-
}, h.attributesFromObject = function(O,
|
|
7695
|
-
return Object.keys(
|
|
7696
|
-
return C[O + "-" + Z] =
|
|
7693
|
+
return h.state.afterOpen && (Z = Z + " " + C.afterOpen), h.state.beforeClose && (Z = Z + " " + C.beforeClose), typeof D == "string" && D ? Z + " " + D : Z;
|
|
7694
|
+
}, h.attributesFromObject = function(O, D) {
|
|
7695
|
+
return Object.keys(D).reduce(function(C, Z) {
|
|
7696
|
+
return C[O + "-" + Z] = D[Z], C;
|
|
7697
7697
|
}, {});
|
|
7698
7698
|
}, h.state = {
|
|
7699
7699
|
afterOpen: !1,
|
|
@@ -7718,14 +7718,14 @@ Bl.default.subscribe($l);
|
|
|
7718
7718
|
}, {
|
|
7719
7719
|
key: "beforeOpen",
|
|
7720
7720
|
value: function() {
|
|
7721
|
-
var h = this.props, O = h.appElement,
|
|
7722
|
-
Z && p.add(z.body, Z), C && p.add(z.getElementsByTagName("html")[0], C),
|
|
7721
|
+
var h = this.props, O = h.appElement, D = h.ariaHideApp, C = h.htmlOpenClassName, Z = h.bodyOpenClassName, S = h.parentSelector, z = S && S().ownerDocument || document;
|
|
7722
|
+
Z && p.add(z.body, Z), C && p.add(z.getElementsByTagName("html")[0], C), D && (P += 1, g.hide(O)), M.default.register(this);
|
|
7723
7723
|
}
|
|
7724
7724
|
// Don't steal focus from inner elements
|
|
7725
7725
|
}, {
|
|
7726
7726
|
key: "render",
|
|
7727
7727
|
value: function() {
|
|
7728
|
-
var h = this.props, O = h.id,
|
|
7728
|
+
var h = this.props, O = h.id, D = h.className, C = h.overlayClassName, Z = h.defaultStyles, S = h.children, z = D ? {} : Z.content, Y = C ? {} : Z.overlay;
|
|
7729
7729
|
if (this.shouldBeClosed())
|
|
7730
7730
|
return null;
|
|
7731
7731
|
var F = {
|
|
@@ -7738,7 +7738,7 @@ Bl.default.subscribe($l);
|
|
|
7738
7738
|
id: O,
|
|
7739
7739
|
ref: this.setContentRef,
|
|
7740
7740
|
style: n({}, z, this.props.style.content),
|
|
7741
|
-
className: this.buildClassName("content",
|
|
7741
|
+
className: this.buildClassName("content", D),
|
|
7742
7742
|
tabIndex: "-1",
|
|
7743
7743
|
onKeyDown: this.handleKeyDown,
|
|
7744
7744
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -8358,18 +8358,18 @@ const or = /* @__PURE__ */ $i(hu), gu = ({ width: e, height: t, fill: n }) => /*
|
|
|
8358
8358
|
const [f, p] = B(window.innerWidth), [y, I] = B(!1), [k, M] = B(s), [L, b] = B(!1), [H, Q] = B(!0), [_, ue] = B(null), [te, ae] = B(""), [P, $] = B("Loading..."), [W, j] = B("Loading..."), [N, h] = B("game");
|
|
8359
8359
|
js(a, A, ae, v);
|
|
8360
8360
|
const O = async () => {
|
|
8361
|
-
en(n, "preview", null, null, !1).then((
|
|
8362
|
-
I(!0), M(v + "/" +
|
|
8361
|
+
en(n, "preview", null, null, !1).then((D) => {
|
|
8362
|
+
I(!0), M(v + "/" + D.url), (a === "Flex" || a === "Ready" || a === "Playable") && (D.size >= 5 ? b(!0) : b(!1), ue(D.size)), Q(!1);
|
|
8363
8363
|
});
|
|
8364
8364
|
};
|
|
8365
8365
|
return ve(() => {
|
|
8366
8366
|
e ? y || (O(), I(!0)) : (I(!1), M(""));
|
|
8367
8367
|
}, [e]), ve(() => {
|
|
8368
|
-
const
|
|
8368
|
+
const D = () => {
|
|
8369
8369
|
p(window.innerWidth);
|
|
8370
8370
|
};
|
|
8371
|
-
return window.addEventListener("resize",
|
|
8372
|
-
window.removeEventListener("resize",
|
|
8371
|
+
return window.addEventListener("resize", D), () => {
|
|
8372
|
+
window.removeEventListener("resize", D);
|
|
8373
8373
|
};
|
|
8374
8374
|
}, []), H && e ? /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(
|
|
8375
8375
|
or,
|
|
@@ -8429,11 +8429,11 @@ const or = /* @__PURE__ */ $i(hu), gu = ({ width: e, height: t, fill: n }) => /*
|
|
|
8429
8429
|
) }) : H && a === "Flex" ? null : /* @__PURE__ */ l.jsxs(
|
|
8430
8430
|
"div",
|
|
8431
8431
|
{
|
|
8432
|
-
onMouseDown: (
|
|
8433
|
-
|
|
8432
|
+
onMouseDown: (D) => {
|
|
8433
|
+
D.stopPropagation();
|
|
8434
8434
|
},
|
|
8435
|
-
onMouseUp: (
|
|
8436
|
-
|
|
8435
|
+
onMouseUp: (D) => {
|
|
8436
|
+
D.stopPropagation();
|
|
8437
8437
|
},
|
|
8438
8438
|
children: [
|
|
8439
8439
|
L && e && /* @__PURE__ */ l.jsx(
|
|
@@ -8598,7 +8598,7 @@ const or = /* @__PURE__ */ $i(hu), gu = ({ width: e, height: t, fill: n }) => /*
|
|
|
8598
8598
|
lineHeight: "12px",
|
|
8599
8599
|
zIndex: 50
|
|
8600
8600
|
},
|
|
8601
|
-
children: "Version: 6.0.
|
|
8601
|
+
children: "Version: 6.0.26"
|
|
8602
8602
|
}
|
|
8603
8603
|
)
|
|
8604
8604
|
]
|