gearboxdownloadmodal 5.0.49 → 5.0.50
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 +55 -55
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/dist/src/utils/color.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import oe, { useState as $, useEffect as
|
|
1
|
+
import oe, { useState as $, useEffect as Ee, forwardRef as wo, useReducer as Ko, useRef as st, isValidElement as yt, cloneElement as jr, useLayoutEffect as Lo } from "react";
|
|
2
2
|
import Eo from "react-dom";
|
|
3
3
|
function So(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -653,7 +653,7 @@ process.env.NODE_ENV === "production" ? Jr.exports = Oo() : Jr.exports = Wo();
|
|
|
653
653
|
var u = Jr.exports;
|
|
654
654
|
const li = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=", Mo = ({ children: e }) => {
|
|
655
655
|
const [t, r] = $(window.innerWidth);
|
|
656
|
-
return
|
|
656
|
+
return Ee(() => {
|
|
657
657
|
const n = () => {
|
|
658
658
|
r(window.innerWidth);
|
|
659
659
|
};
|
|
@@ -3681,13 +3681,13 @@ function Hr(e, t) {
|
|
|
3681
3681
|
Hr({ read: Xn.decodeValue, write: Xn.encodeValue }, cn);
|
|
3682
3682
|
let Xi;
|
|
3683
3683
|
typeof window < "u" && (Xi = Bi("token"));
|
|
3684
|
-
const
|
|
3684
|
+
const Se = WA.create({
|
|
3685
3685
|
headers: {
|
|
3686
3686
|
Authorization: Xi
|
|
3687
3687
|
}
|
|
3688
3688
|
});
|
|
3689
3689
|
async function At(e, t, r, n, i, o, a, A) {
|
|
3690
|
-
return (await
|
|
3690
|
+
return (await Se.post(e + "/createPlayableVersionLink", {
|
|
3691
3691
|
_id: t,
|
|
3692
3692
|
nano: r,
|
|
3693
3693
|
network: n,
|
|
@@ -3715,7 +3715,7 @@ function tt() {
|
|
|
3715
3715
|
(e = arguments[r++]) && (t = Ui(e)) && (n && (n += " "), n += t);
|
|
3716
3716
|
return n;
|
|
3717
3717
|
}
|
|
3718
|
-
const Wt = (e) => typeof e == "number" && !isNaN(e), mt = (e) => typeof e == "string",
|
|
3718
|
+
const Wt = (e) => typeof e == "number" && !isNaN(e), mt = (e) => typeof e == "string", Le = (e) => typeof e == "function", $t = (e) => mt(e) || Le(e) ? e : null, Or = (e) => yt(e) || mt(e) || Le(e) || Wt(e);
|
|
3719
3719
|
function jA(e, t, r) {
|
|
3720
3720
|
r === void 0 && (r = 300);
|
|
3721
3721
|
const { scrollHeight: n, style: i } = e;
|
|
@@ -3735,7 +3735,7 @@ function fr(e) {
|
|
|
3735
3735
|
J.target === m.current && (C.dispatchEvent(new Event("d")), C.removeEventListener("animationend", M), C.removeEventListener("animationcancel", M), q.current === 0 && J.type !== "animationcancel" && C.classList.remove(...x));
|
|
3736
3736
|
};
|
|
3737
3737
|
C.classList.add(...x), C.addEventListener("animationend", M), C.addEventListener("animationcancel", M);
|
|
3738
|
-
}, []),
|
|
3738
|
+
}, []), Ee(() => {
|
|
3739
3739
|
const C = m.current, x = () => {
|
|
3740
3740
|
C.removeEventListener("animationend", x), i ? jA(C, s, o) : s();
|
|
3741
3741
|
};
|
|
@@ -3824,10 +3824,10 @@ function JA(e) {
|
|
|
3824
3824
|
F.iconOut = function(ee) {
|
|
3825
3825
|
let { theme: S, type: Z, isLoading: W, icon: O } = ee, f = null;
|
|
3826
3826
|
const k = { theme: S, type: Z };
|
|
3827
|
-
return O === !1 || (
|
|
3828
|
-
}(F),
|
|
3827
|
+
return O === !1 || (Le(O) ? f = O(k) : yt(O) ? f = jr(O, k) : mt(O) || Wt(O) ? f = O : W ? f = Wr.spinner() : ((z) => z in Wr)(Z) && (f = Wr[Z](k))), f;
|
|
3828
|
+
}(F), Le(x.onOpen) && (F.onOpen = x.onOpen), Le(x.onClose) && (F.onClose = x.onClose), F.closeButton = b.closeButton, x.closeButton === !1 || Or(x.closeButton) ? F.closeButton = x.closeButton : x.closeButton === !0 && (F.closeButton = !Or(b.closeButton) || b.closeButton);
|
|
3829
3829
|
let ue = h;
|
|
3830
|
-
yt(h) && !mt(h.type) ? ue = jr(h, { closeToast: X, toastProps: F, data: K }) :
|
|
3830
|
+
yt(h) && !mt(h.type) ? ue = jr(h, { closeToast: X, toastProps: F, data: K }) : Le(h) && (ue = h({ closeToast: X, toastProps: F, data: K })), b.limit && b.limit > 0 && A.count > b.limit && U ? A.queue.push({ toastContent: ue, toastProps: F, staleId: C }) : Wt(q) ? setTimeout(() => {
|
|
3831
3831
|
g(ue, F, C);
|
|
3832
3832
|
}, q) : g(ue, F, C);
|
|
3833
3833
|
}
|
|
@@ -3837,9 +3837,9 @@ function JA(e) {
|
|
|
3837
3837
|
const x = { content: h, props: p };
|
|
3838
3838
|
o.set(C, x), n((M) => [...M, C].filter((J) => J !== q)), je.emit(4, Un(x, x.props.updateId == null ? "added" : "updated"));
|
|
3839
3839
|
}
|
|
3840
|
-
return
|
|
3840
|
+
return Ee(() => (A.containerId = e.containerId, je.cancelEmit(3).on(0, m).on(1, (h) => i.current && d(h)).on(5, c).emit(2, A), () => {
|
|
3841
3841
|
o.clear(), je.emit(3, A);
|
|
3842
|
-
}), []),
|
|
3842
|
+
}), []), Ee(() => {
|
|
3843
3843
|
A.props = e, A.isToastActive = a, A.displayedToast = r.length;
|
|
3844
3844
|
}), { getToastToRender: function(h) {
|
|
3845
3845
|
const p = /* @__PURE__ */ new Map(), q = Array.from(o.values());
|
|
@@ -3889,12 +3889,12 @@ function DA(e) {
|
|
|
3889
3889
|
K.style.transition = "transform 0.2s, opacity 0.2s", K.style.transform = `translate${e.draggableDirection}(0)`, K.style.opacity = "1";
|
|
3890
3890
|
}
|
|
3891
3891
|
}
|
|
3892
|
-
|
|
3892
|
+
Ee(() => {
|
|
3893
3893
|
A.current = e;
|
|
3894
|
-
}),
|
|
3894
|
+
}), Ee(() => (o.current && o.current.addEventListener("d", q, { once: !0 }), Le(e.onOpen) && e.onOpen(yt(e.children) && e.children.props), () => {
|
|
3895
3895
|
const K = A.current;
|
|
3896
|
-
|
|
3897
|
-
}), []),
|
|
3896
|
+
Le(K.onClose) && K.onClose(yt(K.children) && K.children.props);
|
|
3897
|
+
}), []), Ee(() => (e.pauseOnFocusLoss && (document.hasFocus() || C(), window.addEventListener("focus", q), window.addEventListener("blur", C)), () => {
|
|
3898
3898
|
e.pauseOnFocusLoss && (window.removeEventListener("focus", q), window.removeEventListener("blur", C));
|
|
3899
3899
|
}), [e.pauseOnFocusLoss]);
|
|
3900
3900
|
const J = { onMouseDown: h, onTouchStart: h, onMouseUp: p, onTouchEnd: p };
|
|
@@ -3912,15 +3912,15 @@ function NA(e) {
|
|
|
3912
3912
|
let { delay: t, isRunning: r, closeToast: n, type: i = "default", hide: o, className: a, style: A, controlledProgress: c, progress: d, rtl: s, isIn: m, theme: g } = e;
|
|
3913
3913
|
const h = o || c && d === 0, p = { ...A, animationDuration: `${t}ms`, animationPlayState: r ? "running" : "paused", opacity: h ? 0 : 1 };
|
|
3914
3914
|
c && (p.transform = `scaleX(${d})`);
|
|
3915
|
-
const q = tt("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${g}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": s }), C =
|
|
3915
|
+
const q = tt("Toastify__progress-bar", c ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${g}`, `Toastify__progress-bar--${i}`, { "Toastify__progress-bar--rtl": s }), C = Le(a) ? a({ rtl: s, type: i, defaultClassName: q }) : tt(q, a);
|
|
3916
3916
|
return oe.createElement("div", { role: "progressbar", "aria-hidden": h ? "true" : "false", "aria-label": "notification timer", className: C, style: p, [c && d >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: c && d < 1 ? null : () => {
|
|
3917
3917
|
m && n();
|
|
3918
3918
|
} });
|
|
3919
3919
|
}
|
|
3920
3920
|
const TA = (e) => {
|
|
3921
|
-
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = DA(e), { closeButton: o, children: a, autoClose: A, onClick: c, type: d, hideProgressBar: s, closeToast: m, transition: g, position: h, className: p, style: q, bodyClassName: C, bodyStyle: x, progressClassName: M, progressStyle: J, updateId: K, role: b, progress: X, rtl: U, toastId: F, deleteToast: se, isIn: le, isLoading: ue, iconOut: ee, closeOnClick: S, theme: Z } = e, W = tt("Toastify__toast", `Toastify__toast-theme--${Z}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": U }, { "Toastify__toast--close-on-click": S }), O =
|
|
3921
|
+
const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: i } = DA(e), { closeButton: o, children: a, autoClose: A, onClick: c, type: d, hideProgressBar: s, closeToast: m, transition: g, position: h, className: p, style: q, bodyClassName: C, bodyStyle: x, progressClassName: M, progressStyle: J, updateId: K, role: b, progress: X, rtl: U, toastId: F, deleteToast: se, isIn: le, isLoading: ue, iconOut: ee, closeOnClick: S, theme: Z } = e, W = tt("Toastify__toast", `Toastify__toast-theme--${Z}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": U }, { "Toastify__toast--close-on-click": S }), O = Le(p) ? p({ rtl: U, position: h, type: d, defaultClassName: W }) : tt(W, p), f = !!X || !A, k = { closeToast: m, type: d, theme: Z };
|
|
3922
3922
|
let z = null;
|
|
3923
|
-
return o === !1 || (z =
|
|
3923
|
+
return o === !1 || (z = Le(o) ? o(k) : yt(o) ? jr(o, k) : Fi(k)), oe.createElement(g, { isIn: le, done: se, position: h, preventExitTransition: r, nodeRef: n }, oe.createElement("div", { id: F, onClick: c, className: O, ...i, style: q, ref: n }, oe.createElement("div", { ...le && { role: b }, className: Le(C) ? C({ type: d }) : tt("Toastify__toast-body", C), style: x }, ee != null && oe.createElement("div", { className: tt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ue }) }, ee), oe.createElement("div", null, a)), z, oe.createElement(NA, { ...K && !f ? { key: `pb-${K}` } : {}, rtl: U, theme: Z, delay: A, isRunning: t, isIn: le, closeToast: m, hide: s, type: d, style: J, className: M, controlledProgress: f, progress: X || 0 })));
|
|
3924
3924
|
}, hr = function(e, t) {
|
|
3925
3925
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3926
3926
|
}, GA = fr(hr("bounce", !0));
|
|
@@ -3931,9 +3931,9 @@ const Pr = wo((e, t) => {
|
|
|
3931
3931
|
const { getToastToRender: r, containerRef: n, isToastActive: i } = JA(e), { className: o, style: a, rtl: A, containerId: c } = e;
|
|
3932
3932
|
function d(s) {
|
|
3933
3933
|
const m = tt("Toastify__toast-container", `Toastify__toast-container--${s}`, { "Toastify__toast-container--rtl": A });
|
|
3934
|
-
return
|
|
3934
|
+
return Le(o) ? o({ position: s, rtl: A, defaultClassName: m }) : tt(m, $t(o));
|
|
3935
3935
|
}
|
|
3936
|
-
return
|
|
3936
|
+
return Ee(() => {
|
|
3937
3937
|
t && (t.current = n.current);
|
|
3938
3938
|
}, []), oe.createElement("div", { ref: n, className: "Toastify", id: c }, r((s, m) => {
|
|
3939
3939
|
const g = m.length ? { ...a } : { ...a, pointerEvents: "none" };
|
|
@@ -3971,7 +3971,7 @@ pe.loading = (e, t) => Mt(e, tr("default", { isLoading: !0, autoClose: !1, close
|
|
|
3971
3971
|
return void pe.dismiss(n);
|
|
3972
3972
|
const h = { type: s, ...A, ...r, data: g }, p = mt(m) ? { render: m } : m;
|
|
3973
3973
|
return n ? pe.update(n, { ...h, ...p }) : pe(p.render, { ...h, ...p }), g;
|
|
3974
|
-
}, d =
|
|
3974
|
+
}, d = Le(e) ? e() : e;
|
|
3975
3975
|
return d.then((s) => c("success", a, s)).catch((s) => c("error", o, s)), d;
|
|
3976
3976
|
}, pe.success = Vt("success"), pe.info = Vt("info"), pe.error = Vt("error"), pe.warning = Vt("warning"), pe.warn = pe.warning, pe.dark = (e, t) => Mt(e, tr("default", { theme: "dark", ...t })), pe.dismiss = (e) => {
|
|
3977
3977
|
ot.size > 0 ? je.emit(1, e) : Ot = Ot.filter((t) => e != null && t.options.toastId !== e);
|
|
@@ -4007,7 +4007,7 @@ pe.loading = (e, t) => Mt(e, tr("default", { isLoading: !0, autoClose: !1, close
|
|
|
4007
4007
|
}).on(3, (e) => {
|
|
4008
4008
|
ot.delete(e.containerId || e), ot.size === 0 && je.off(0).off(1).off(5);
|
|
4009
4009
|
});
|
|
4010
|
-
function
|
|
4010
|
+
function ke(e) {
|
|
4011
4011
|
pe.success(e, {
|
|
4012
4012
|
position: "top-center",
|
|
4013
4013
|
autoClose: 650,
|
|
@@ -4020,7 +4020,7 @@ function Le(e) {
|
|
|
4020
4020
|
});
|
|
4021
4021
|
}
|
|
4022
4022
|
async function rr(e, t) {
|
|
4023
|
-
return e.network == "fb" && (e.zip = 1), (await
|
|
4023
|
+
return e.network == "fb" && (e.zip = 1), (await Se.post(t + "/createFlexVersionLink", e || {})).data;
|
|
4024
4024
|
}
|
|
4025
4025
|
function lt(e) {
|
|
4026
4026
|
const t = document.createElement("input");
|
|
@@ -4032,7 +4032,7 @@ function lt(e) {
|
|
|
4032
4032
|
}
|
|
4033
4033
|
}
|
|
4034
4034
|
async function nr(e, t, r) {
|
|
4035
|
-
return (await
|
|
4035
|
+
return (await Se.post(e + "/createImportedVersionLink", {
|
|
4036
4036
|
_id: t,
|
|
4037
4037
|
network: r
|
|
4038
4038
|
// zip,
|
|
@@ -4051,11 +4051,11 @@ const HA = ({
|
|
|
4051
4051
|
if (t === "Flex") {
|
|
4052
4052
|
await rr({ _id: e, network: "default" }, r);
|
|
4053
4053
|
let A = `${i}/preview?versionId=${e}`;
|
|
4054
|
-
lt(A) ?
|
|
4054
|
+
lt(A) ? ke("Link copied") : o(A);
|
|
4055
4055
|
} else if (t === "Import") {
|
|
4056
4056
|
const A = await nr(r, e, "test");
|
|
4057
4057
|
let c = `${i}/preview?versionId=${e}_`;
|
|
4058
|
-
return lt(c) || o(c),
|
|
4058
|
+
return lt(c) || o(c), ke("Link copied"), A == null ? void 0 : A.url;
|
|
4059
4059
|
} else {
|
|
4060
4060
|
const A = await At(
|
|
4061
4061
|
r,
|
|
@@ -4067,7 +4067,7 @@ const HA = ({
|
|
|
4067
4067
|
"var type = e"
|
|
4068
4068
|
);
|
|
4069
4069
|
let c = `${i}/preview?versionId=${e}_`;
|
|
4070
|
-
return lt(c) ?
|
|
4070
|
+
return lt(c) ? ke("Link copied") : o(c), A == null ? void 0 : A.url;
|
|
4071
4071
|
}
|
|
4072
4072
|
};
|
|
4073
4073
|
return /* @__PURE__ */ u.jsxs(
|
|
@@ -4180,7 +4180,7 @@ const HA = ({
|
|
|
4180
4180
|
setSafariCopyLink: A
|
|
4181
4181
|
}) => {
|
|
4182
4182
|
const [c, d] = $(window.innerWidth);
|
|
4183
|
-
|
|
4183
|
+
Ee(() => {
|
|
4184
4184
|
const m = () => {
|
|
4185
4185
|
d(window.innerWidth);
|
|
4186
4186
|
};
|
|
@@ -4220,7 +4220,7 @@ const HA = ({
|
|
|
4220
4220
|
}
|
|
4221
4221
|
);
|
|
4222
4222
|
};
|
|
4223
|
-
var Ze = /* @__PURE__ */ ((e) => (e.Flex = "#7101FF", e.Playable = "#F9830B", e.Import = "#
|
|
4223
|
+
var Ze = /* @__PURE__ */ ((e) => (e.Flex = "#7101FF", e.Playable = "#F9830B", e.Import = "#00a3ff", e))(Ze || {});
|
|
4224
4224
|
const VA = ({ typeOfProduct: e }) => /* @__PURE__ */ u.jsxs(
|
|
4225
4225
|
"div",
|
|
4226
4226
|
{
|
|
@@ -4243,7 +4243,7 @@ const VA = ({ typeOfProduct: e }) => /* @__PURE__ */ u.jsxs(
|
|
|
4243
4243
|
}
|
|
4244
4244
|
);
|
|
4245
4245
|
async function BA(e, t) {
|
|
4246
|
-
return (await
|
|
4246
|
+
return (await Se.post(t + "/buyRequest", {
|
|
4247
4247
|
requestType: e
|
|
4248
4248
|
})).data;
|
|
4249
4249
|
}
|
|
@@ -4266,7 +4266,7 @@ const XA = () => /* @__PURE__ */ u.jsxs("svg", { width: "24", height: "24", view
|
|
|
4266
4266
|
{
|
|
4267
4267
|
style: { marginLeft: "0.5rem", display: "flex", alignItems: "center", fontSize: "12px", fontWeight: "bold", textDecoration: "underline", color: "#yourColorHere" },
|
|
4268
4268
|
onClick: () => BA("Flex Credit", t).then(
|
|
4269
|
-
(r) =>
|
|
4269
|
+
(r) => ke("You will be contacted regarding your request.")
|
|
4270
4270
|
),
|
|
4271
4271
|
children: [
|
|
4272
4272
|
"Get more",
|
|
@@ -4566,7 +4566,7 @@ const $i = ({ fill: e, stroke: t, className: r, style: n }) => /* @__PURE__ */ u
|
|
|
4566
4566
|
}
|
|
4567
4567
|
), ts = ({ checked: e, typeOfProduct: t, id: r }) => {
|
|
4568
4568
|
const [n, i] = $(e);
|
|
4569
|
-
|
|
4569
|
+
Ee(() => {
|
|
4570
4570
|
i(e);
|
|
4571
4571
|
}, [e]);
|
|
4572
4572
|
const o = () => {
|
|
@@ -5007,7 +5007,7 @@ const rs = ({ typeOfProduct: e }) => /* @__PURE__ */ u.jsx(
|
|
|
5007
5007
|
}
|
|
5008
5008
|
);
|
|
5009
5009
|
async function ei(e, t, r) {
|
|
5010
|
-
return (await
|
|
5010
|
+
return (await Se.post(r + "/updatePlayableVersion", {
|
|
5011
5011
|
...t,
|
|
5012
5012
|
_id: e
|
|
5013
5013
|
})).data;
|
|
@@ -5204,7 +5204,7 @@ const as = ({
|
|
|
5204
5204
|
}
|
|
5205
5205
|
);
|
|
5206
5206
|
async function ti(e, t) {
|
|
5207
|
-
return (await
|
|
5207
|
+
return (await Se.post(t + "/updateFlexUrl", e || {})).data;
|
|
5208
5208
|
}
|
|
5209
5209
|
const zr = [
|
|
5210
5210
|
"adcolony",
|
|
@@ -5322,7 +5322,7 @@ const zr = [
|
|
|
5322
5322
|
let fe = g + "/" + Ke;
|
|
5323
5323
|
Q(fe, Ke);
|
|
5324
5324
|
}
|
|
5325
|
-
X(!1),
|
|
5325
|
+
X(!1), ke("Download successfully");
|
|
5326
5326
|
};
|
|
5327
5327
|
if (c === "Flex") {
|
|
5328
5328
|
await ti(
|
|
@@ -5410,11 +5410,11 @@ const zr = [
|
|
|
5410
5410
|
`var type = ${i}`
|
|
5411
5411
|
);
|
|
5412
5412
|
let B = `${g}/${j == null ? void 0 : j.url}`;
|
|
5413
|
-
return lt(B) ?
|
|
5413
|
+
return lt(B) ? ke("Link Copied") : K(B), j == null ? void 0 : j.url;
|
|
5414
5414
|
} else if (c === "Import") {
|
|
5415
5415
|
const j = await nr(s, d, i);
|
|
5416
5416
|
let B = `${g}/${j == null ? void 0 : j.url}`;
|
|
5417
|
-
return lt(B) ?
|
|
5417
|
+
return lt(B) ? ke("Link Copied") : K(B), j == null ? void 0 : j.url;
|
|
5418
5418
|
} else {
|
|
5419
5419
|
await ti(
|
|
5420
5420
|
{
|
|
@@ -5426,7 +5426,7 @@ const zr = [
|
|
|
5426
5426
|
);
|
|
5427
5427
|
const j = await rr({ _id: d, network: i }, s);
|
|
5428
5428
|
let B = `${g}/${j == null ? void 0 : j.url}`;
|
|
5429
|
-
return lt(B) ?
|
|
5429
|
+
return lt(B) ? ke("Link Copied") : K(B), j == null ? void 0 : j.url;
|
|
5430
5430
|
}
|
|
5431
5431
|
}, ve = async () => {
|
|
5432
5432
|
v(!0);
|
|
@@ -5442,7 +5442,7 @@ const zr = [
|
|
|
5442
5442
|
ce = document.createElement("a"), ce.setAttribute("href", "data:html/plain;charset=utf-8," + encodeURIComponent(we)), ce.setAttribute(
|
|
5443
5443
|
"download",
|
|
5444
5444
|
B.split("/").reduce((de, De) => De, "")
|
|
5445
|
-
), ce.style.display = "none", document.body.appendChild(ce), ce.click(), v(!1),
|
|
5445
|
+
), ce.style.display = "none", document.body.appendChild(ce), ce.click(), v(!1), ke("Download successfully"), O(!1);
|
|
5446
5446
|
}, L = async () => {
|
|
5447
5447
|
D(!0);
|
|
5448
5448
|
const j = await At(s, d, U, "moloco", !1, T, {
|
|
@@ -5466,7 +5466,7 @@ const zr = [
|
|
|
5466
5466
|
"data:application/json;charset=utf-8," + encodeURIComponent(we.Applovin)
|
|
5467
5467
|
), de.setAttribute("download", (j == null ? void 0 : j.url.split("/").at(-1)) + ".json"), de.style.display = "none", de.onclick = () => {
|
|
5468
5468
|
document.body.removeChild(de);
|
|
5469
|
-
}, document.body.appendChild(de), de.click(), O(!1),
|
|
5469
|
+
}, document.body.appendChild(de), de.click(), O(!1), ke("Download successfully"), D(!1);
|
|
5470
5470
|
});
|
|
5471
5471
|
});
|
|
5472
5472
|
}, xe = async () => {
|
|
@@ -5492,7 +5492,7 @@ const zr = [
|
|
|
5492
5492
|
"data:application/json;charset=utf-8," + encodeURIComponent(we.Chartboost)
|
|
5493
5493
|
), de.setAttribute("download", (j == null ? void 0 : j.url.split("/").at(-1)) + ".json"), de.style.display = "none", de.onclick = () => {
|
|
5494
5494
|
document.body.removeChild(de);
|
|
5495
|
-
}, document.body.appendChild(de), de.click(), O(!1),
|
|
5495
|
+
}, document.body.appendChild(de), de.click(), O(!1), ke("Download successfully"), Y(!1);
|
|
5496
5496
|
});
|
|
5497
5497
|
});
|
|
5498
5498
|
};
|
|
@@ -5669,7 +5669,7 @@ const zr = [
|
|
|
5669
5669
|
onClickDonwload: async () => {
|
|
5670
5670
|
le("copyLink");
|
|
5671
5671
|
const j = h.iosUrl, B = h.googleUrl;
|
|
5672
|
-
C && (C != null && C.willSpendCredit) ? (k("copy"), q(!0), ee(!0)) : !j || !B ? (q(!0), Z(!0)) : (ee(!1), Z(!1), await V());
|
|
5672
|
+
C && (C != null && C.willSpendCredit) ? (k("copy"), q(!0), ee(!0)) : c !== "Import" && (!j || !B) ? (q(!0), Z(!0)) : (ee(!1), Z(!1), await V());
|
|
5673
5673
|
},
|
|
5674
5674
|
disabled: M,
|
|
5675
5675
|
children: /* @__PURE__ */ u.jsx(Zi, { className: "h-6 w-6 stroke-dark-full" })
|
|
@@ -6027,13 +6027,13 @@ const zr = [
|
|
|
6027
6027
|
}
|
|
6028
6028
|
);
|
|
6029
6029
|
async function cs(e, t, r) {
|
|
6030
|
-
return (await
|
|
6030
|
+
return (await Se.post(r + "/getPlayableVersionSize", {
|
|
6031
6031
|
_id: e,
|
|
6032
6032
|
networks: t
|
|
6033
6033
|
})).data;
|
|
6034
6034
|
}
|
|
6035
6035
|
async function ds(e, t, r) {
|
|
6036
|
-
return (await
|
|
6036
|
+
return (await Se.post(r + "/createPlayableVersionLinkMulti", {
|
|
6037
6037
|
_id: e,
|
|
6038
6038
|
networks: t
|
|
6039
6039
|
})).data;
|
|
@@ -6074,7 +6074,7 @@ const ms = ({
|
|
|
6074
6074
|
const Z = await ds(n, S, o), { url: W } = Z;
|
|
6075
6075
|
let O;
|
|
6076
6076
|
const f = c + "/" + W;
|
|
6077
|
-
O = document.createElement("iframe"), O.setAttribute("src", f), O.style.display = "none", document.body.appendChild(O), O.click(), U(!1),
|
|
6077
|
+
O = document.createElement("iframe"), O.setAttribute("src", f), O.style.display = "none", document.body.appendChild(O), O.click(), U(!1), ke("Multi downloaded completed successfully");
|
|
6078
6078
|
} catch (S) {
|
|
6079
6079
|
U(!1), A(S.response.data.error.msg), console.error(S);
|
|
6080
6080
|
}
|
|
@@ -6166,27 +6166,27 @@ const ms = ({
|
|
|
6166
6166
|
] });
|
|
6167
6167
|
};
|
|
6168
6168
|
async function ps(e, t) {
|
|
6169
|
-
return (await
|
|
6169
|
+
return (await Se.post(t + "/findPlayable", { _id: e })).data;
|
|
6170
6170
|
}
|
|
6171
6171
|
async function fs(e, t) {
|
|
6172
|
-
return (await
|
|
6172
|
+
return (await Se.post(t + "/getFlexDownloadCount", e)).data;
|
|
6173
6173
|
}
|
|
6174
6174
|
async function hs(e, t) {
|
|
6175
6175
|
try {
|
|
6176
|
-
return (await
|
|
6176
|
+
return (await Se.post(t + "/findGame", { _id: e })).data;
|
|
6177
6177
|
} catch {
|
|
6178
6178
|
}
|
|
6179
6179
|
}
|
|
6180
6180
|
async function qs(e, t) {
|
|
6181
|
-
return (await
|
|
6181
|
+
return (await Se.post(t + "/getPlayableVersionMarketLink", {
|
|
6182
6182
|
_id: e
|
|
6183
6183
|
})).data;
|
|
6184
6184
|
}
|
|
6185
6185
|
async function gs(e, t) {
|
|
6186
|
-
return (await
|
|
6186
|
+
return (await Se.post(t + "/getFlexData", { _id: e })).data;
|
|
6187
6187
|
}
|
|
6188
6188
|
async function vs(e, t) {
|
|
6189
|
-
return (await
|
|
6189
|
+
return (await Se.post(t + "/getImportedPlayable", { id: e })).data;
|
|
6190
6190
|
}
|
|
6191
6191
|
const ys = [
|
|
6192
6192
|
"adcolony",
|
|
@@ -6231,7 +6231,7 @@ const ys = [
|
|
|
6231
6231
|
setSafariCopyLink: g
|
|
6232
6232
|
}) => {
|
|
6233
6233
|
const [h, p] = $(null), [q, C] = $(null), [x, M] = $(null), [J, K] = $(!1), [b, X] = $("Loading..."), [U, F] = $("Loading..."), [se, le] = $(!0), [ue, ee] = $(window.innerWidth);
|
|
6234
|
-
|
|
6234
|
+
Ee(() => {
|
|
6235
6235
|
const z = () => {
|
|
6236
6236
|
ee(window.innerWidth);
|
|
6237
6237
|
};
|
|
@@ -6290,7 +6290,7 @@ const ys = [
|
|
|
6290
6290
|
networks: bs
|
|
6291
6291
|
}) : M(z), K(!1);
|
|
6292
6292
|
}, k = async () => await hs(r, o);
|
|
6293
|
-
return
|
|
6293
|
+
return Ee(() => {
|
|
6294
6294
|
i || (p(null), C(null), M(null), m(null)), i && (n === "Playable" ? (S().then((z) => {
|
|
6295
6295
|
O(null, z);
|
|
6296
6296
|
}), le(!1)) : n === "Flex" ? f().then((z) => {
|
|
@@ -7561,9 +7561,9 @@ const $r = /* @__PURE__ */ So(El), Sl = ({ width: e, height: t }) => /* @__PURE_
|
|
|
7561
7561
|
x(!0), J(g + "/" + S.url), U(!1);
|
|
7562
7562
|
});
|
|
7563
7563
|
};
|
|
7564
|
-
return
|
|
7564
|
+
return Ee(() => {
|
|
7565
7565
|
e ? C || (ee(), x(!0)) : (x(!1), J(""));
|
|
7566
|
-
}, [e]),
|
|
7566
|
+
}, [e]), Ee(() => {
|
|
7567
7567
|
const S = () => {
|
|
7568
7568
|
q(window.innerWidth);
|
|
7569
7569
|
};
|