gearboxdownloadmodal 8.0.12 → 8.0.14

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 CHANGED
@@ -1,4 +1,4 @@
1
- import de, { useState as X, useEffect as Ie, forwardRef as $a, useReducer as Ao, useRef as Et, isValidElement as Ht, cloneElement as Vr, useLayoutEffect as el, createContext as tl, useDebugValue as nl, useCallback as rl, useContext as il } from "react";
1
+ import de, { useState as U, useEffect as Ie, forwardRef as $a, useReducer as Ao, useRef as Et, isValidElement as Ht, cloneElement as Vr, useLayoutEffect as el, createContext as tl, useDebugValue as nl, useCallback as rl, useContext as il } from "react";
2
2
  import sl from "react-dom";
3
3
  function ol(t) {
4
4
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -154,14 +154,14 @@ function ul() {
154
154
  }
155
155
  return null;
156
156
  }
157
- var E = Object.assign, L = 0, G, y, M, U, w, I, V;
157
+ var E = Object.assign, L = 0, G, y, M, Q, w, I, V;
158
158
  function H() {
159
159
  }
160
160
  H.__reactDisabledLog = !0;
161
161
  function J() {
162
162
  {
163
163
  if (L === 0) {
164
- G = console.log, y = console.info, M = console.warn, U = console.error, w = console.group, I = console.groupCollapsed, V = console.groupEnd;
164
+ G = console.log, y = console.info, M = console.warn, Q = console.error, w = console.group, I = console.groupCollapsed, V = console.groupEnd;
165
165
  var h = {
166
166
  configurable: !0,
167
167
  enumerable: !0,
@@ -200,7 +200,7 @@ function ul() {
200
200
  value: M
201
201
  }),
202
202
  error: E({}, h, {
203
- value: U
203
+ value: Q
204
204
  }),
205
205
  group: E({}, h, {
206
206
  value: w
@@ -342,13 +342,13 @@ function ul() {
342
342
  }
343
343
  return "";
344
344
  }
345
- var Be = Object.prototype.hasOwnProperty, D = {}, Q = q.ReactDebugCurrentFrame;
345
+ var Be = Object.prototype.hasOwnProperty, D = {}, X = q.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
- Q.setExtraStackFrame(N);
349
+ X.setExtraStackFrame(N);
350
350
  } else
351
- Q.setExtraStackFrame(null);
351
+ X.setExtraStackFrame(null);
352
352
  }
353
353
  function qe(h, O, N, ee, fe) {
354
354
  {
@@ -667,7 +667,7 @@ React keys must be passed directly to JSX without using spread:
667
667
  process.env.NODE_ENV === "production" ? Xr.exports = ll() : Xr.exports = ul();
668
668
  var c = Xr.exports;
669
669
  const co = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4OThfMzEyMjcpIj4NCiAgICA8cGF0aCBkPSJNMjAuMzQxNiAxMi4yMjY2TDEyLjc5NDkgMTkuNzczMiIgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44Ig0KICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPg0KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZVdpZHRoPSIxLjgiDQogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogICAgPHBhdGgNCiAgICAgIGQ9Ik0xNi41Njg0IDI4QzkuOTQwMzYgMjggNC41NjgzNiAyMi42MjggNC41NjgzNiAxNkM0LjU2ODM2IDkuMzcyIDkuOTQwMzYgNCAxNi41Njg0IDRDMjMuMTk2NCA0IDI4LjU2ODQgOS4zNzIgMjguNTY4NCAxNkMyOC41Njg0IDIyLjYyOCAyMy4xOTY0IDI4IDE2LjU2ODQgMjhaIg0KICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogIDwvZz4NCiAgPGRlZnM+DQogICAgPGNsaXBQYXRoIGlkPSJjbGlwMF8xODk4XzMxMjI3Ij4NCiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4NCiAgICA8L2NsaXBQYXRoPg0KICA8L2RlZnM+DQo8L3N2Zz4=", Al = ({ children: t }) => {
670
- const [e, n] = X(window.innerWidth);
670
+ const [e, n] = U(window.innerWidth);
671
671
  return Ie(() => {
672
672
  const r = () => {
673
673
  n(window.innerWidth);
@@ -854,7 +854,7 @@ function pl() {
854
854
  }
855
855
  }
856
856
  var C = l, T = A, x = a, K = o, Y = e, W = u, z = r, j = g, B = p, E = n, L = s, G = i, y = d, M = !1;
857
- function U(R) {
857
+ function Q(R) {
858
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) {
@@ -893,7 +893,7 @@ function pl() {
893
893
  function ge(R) {
894
894
  return S(R) === d;
895
895
  }
896
- he.AsyncMode = C, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider = K, he.Element = Y, he.ForwardRef = W, he.Fragment = z, he.Lazy = j, he.Memo = B, he.Portal = E, he.Profiler = L, he.StrictMode = G, he.Suspense = y, he.isAsyncMode = 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;
896
+ he.AsyncMode = C, he.ConcurrentMode = T, he.ContextConsumer = x, he.ContextProvider = K, he.Element = Y, he.ForwardRef = W, he.Fragment = z, he.Lazy = j, he.Memo = B, he.Portal = E, he.Profiler = L, he.StrictMode = G, he.Suspense = y, he.isAsyncMode = Q, he.isConcurrentMode = w, he.isContextConsumer = I, he.isContextProvider = V, he.isElement = H, he.isForwardRef = J, he.isFragment = P, he.isLazy = F, he.isMemo = _, he.isPortal = ne, he.isProfiler = se, he.isStrictMode = $, he.isSuspense = ge, he.isValidElementType = k, he.typeOf = S;
897
897
  }()), he;
898
898
  }
899
899
  var rs;
@@ -1150,7 +1150,7 @@ function gl() {
1150
1150
  function T(w) {
1151
1151
  function I(V, H, J, P, F) {
1152
1152
  if (!(V[H] instanceof w)) {
1153
- var _ = w.name || f, ne = U(V[H]);
1153
+ var _ = w.name || f, ne = Q(V[H]);
1154
1154
  return new m("Invalid " + P + " `" + F + "` of type " + ("`" + ne + "` supplied to `" + J + "`, expected ") + ("instance of `" + _ + "`."));
1155
1155
  }
1156
1156
  return null;
@@ -1330,7 +1330,7 @@ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
1330
1330
  return I;
1331
1331
  }
1332
1332
  }
1333
- function U(w) {
1333
+ function Q(w) {
1334
1334
  return !w.constructor || !w.constructor.name ? f : w.constructor.name;
1335
1335
  }
1336
1336
  return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
@@ -2599,13 +2599,13 @@ class Vn extends or {
2599
2599
  L.push(G[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 = (M, U, w) => {
2602
+ const y = (M, Q, w) => {
2603
2603
  const I = x && w !== f ? w : B;
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);
2604
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(M, l, Q, I, E, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(M, l, Q, I, E, n), this.emit("missingKey", M, l, Q, f);
2605
2605
  };
2606
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) => {
2607
+ const Q = this.pluralResolver.getSuffixes(M, n);
2608
+ W && n[`defaultValue${this.options.pluralSeparator}zero`] && Q.indexOf(`${this.options.pluralSeparator}zero`) < 0 && Q.push(`${this.options.pluralSeparator}zero`), Q.forEach((w) => {
2609
2609
  y([M], o + w, n[`defaultValue${w}`] || z);
2610
2610
  });
2611
2611
  }) : y(L, o, z));
@@ -5671,7 +5671,7 @@ const Qe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
5671
5671
  return de.createElement("div", { className: "Toastify__spinner" });
5672
5672
  } };
5673
5673
  function Fc(t) {
5674
- const [, e] = Ao((p) => p + 1, 0), [n, r] = X([]), i = Et(null), s = Et(/* @__PURE__ */ new Map()).current, o = (p) => n.indexOf(p) !== -1, a = Et({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: t, containerId: null, isToastActive: o, getToast: (p) => s.get(p) }).current;
5674
+ const [, e] = Ao((p) => p + 1, 0), [n, r] = U([]), i = Et(null), s = Et(/* @__PURE__ */ new Map()).current, o = (p) => n.indexOf(p) !== -1, a = Et({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: t, containerId: null, isToastActive: o, getToast: (p) => s.get(p) }).current;
5675
5675
  function l(p) {
5676
5676
  let { containerId: g } = p;
5677
5677
  const { limit: m } = a.props;
@@ -5716,7 +5716,7 @@ function Fc(t) {
5716
5716
  K.iconOut = function(j) {
5717
5717
  let { theme: B, type: E, isLoading: L, icon: G } = j, y = null;
5718
5718
  const 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;
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() : ((Q) => Q in Rr)(E) && (y = Rr[E](M))), y;
5720
5720
  }(K), De(q.onOpen) && (K.onOpen = q.onOpen), De(q.onClose) && (K.onClose = q.onClose), K.closeButton = C.closeButton, q.closeButton === !1 || zr(q.closeButton) ? K.closeButton = q.closeButton : q.closeButton === !0 && (K.closeButton = !zr(C.closeButton) || C.closeButton);
5721
5721
  let z = p;
5722
5722
  Ht(p) && !Mt(p.type) ? z = Vr(p, { closeToast: T, toastProps: K, data: S }) : De(p) && (z = p({ closeToast: T, toastProps: K, data: S })), C.limit && C.limit > 0 && a.count > C.limit && x ? a.queue.push({ toastContent: z, toastProps: K, staleId: v }) : ln(m) ? setTimeout(() => {
@@ -5748,7 +5748,7 @@ function Ns(t) {
5748
5748
  return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientY : t.clientY;
5749
5749
  }
5750
5750
  function _c(t) {
5751
- const [e, n] = X(!1), [r, i] = X(!1), s = Et(null), o = Et({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = Et(t), { autoClose: l, pauseOnHover: A, closeToast: u, onClick: d, closeOnClick: f } = t;
5751
+ const [e, n] = U(!1), [r, i] = U(!1), s = Et(null), o = Et({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, a = Et(t), { autoClose: l, pauseOnHover: A, closeToast: u, onClick: d, closeOnClick: f } = t;
5752
5752
  function p(S) {
5753
5753
  if (t.draggable) {
5754
5754
  S.nativeEvent.type === "touchstart" && S.nativeEvent.preventDefault(), o.didMove = !1, document.addEventListener("mousemove", q), document.addEventListener("mouseup", Z), document.addEventListener("touchmove", q), document.addEventListener("touchend", Z);
@@ -5811,8 +5811,8 @@ function $c(t) {
5811
5811
  }
5812
5812
  const ed = (t) => {
5813
5813
  const { isRunning: e, preventExitTransition: n, toastRef: r, eventHandlers: i } = _c(t), { closeButton: s, children: o, autoClose: a, onClick: l, type: A, hideProgressBar: u, closeToast: d, transition: f, position: p, className: g, style: m, bodyClassName: v, bodyStyle: q, progressClassName: Z, progressStyle: k, updateId: S, role: C, progress: T, rtl: x, toastId: K, deleteToast: Y, isIn: W, isLoading: z, iconOut: j, closeOnClick: B, theme: E } = t, L = yt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${A}`, { "Toastify__toast--rtl": x }, { "Toastify__toast--close-on-click": B }), G = De(g) ? g({ rtl: x, position: p, type: A, defaultClassName: L }) : yt(L, g), y = !!T || !a, 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: C }, className: De(v) ? v({ type: A }) : yt("Toastify__toast-body", v), style: q }, j != null && de.createElement("div", { className: yt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), de.createElement("div", null, o)), 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 })));
5814
+ let Q = null;
5815
+ return s === !1 || (Q = 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: C }, className: De(v) ? v({ type: A }) : yt("Toastify__toast-body", v), style: q }, j != null && de.createElement("div", { className: yt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !z }) }, j), de.createElement("div", null, o)), Q, de.createElement($c, { ...S && !y ? { key: `pb-${S}` } : {}, rtl: x, theme: E, delay: a, isRunning: e, isIn: W, closeToast: d, hide: u, type: A, style: 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));
@@ -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 U = m(y);
6211
+ const Q = m(y);
6212
6212
  try {
6213
- return On(U);
6213
+ return On(Q);
6214
6214
  } finally {
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();
6215
+ Y.d.set(y, Q.n), Ps(Y.v) && da(x, Y.v, Q), (M = e.get(y)) == null || M.t.add(x), W || z();
6216
6216
  }
6217
6217
  };
6218
6218
  let B, E;
@@ -6515,7 +6515,7 @@ const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([]), qn = vn(!1), wd = ({
6515
6515
  androidLink: l,
6516
6516
  urlType: A
6517
6517
  }) => {
6518
- const [u, d] = X(!1), [f, p] = Te(qn), g = n === "Playable" ? f : !0, m = async () => {
6518
+ const [u, d] = U(!1), [f, p] = Te(qn), g = n === "Playable" ? f : !0, m = async () => {
6519
6519
  d(!0), pn(
6520
6520
  t,
6521
6521
  "default",
@@ -6689,7 +6689,7 @@ const pa = vn(""), ha = vn(!1), Yi = vn([]), ma = vn([]), qn = vn(!1), wd = ({
6689
6689
  androidLink: u,
6690
6690
  urlType: d
6691
6691
  }) => {
6692
- const [f, p] = X(window.innerWidth);
6692
+ const [f, p] = U(window.innerWidth);
6693
6693
  console.log("iosLink", A), Ie(() => {
6694
6694
  console.log("re add event listener");
6695
6695
  function m(v) {
@@ -7361,7 +7361,7 @@ const Xs = ({
7361
7361
  children: t
7362
7362
  }
7363
7363
  ), Md = ({ checked: t, typeOfProduct: e, id: n }) => {
7364
- const [r, i] = X(t);
7364
+ const [r, i] = U(t);
7365
7365
  Ie(() => {
7366
7366
  i(t);
7367
7367
  }, [t]);
@@ -7589,7 +7589,7 @@ const Wd = ({ typeOfProduct: t }) => /* @__PURE__ */ c.jsx(
7589
7589
  urlType: a
7590
7590
  }) => {
7591
7591
  let l = "";
7592
- return o === "Ready" && a === "single" ? l = ae.t("common:redirection_url_is_empty_are_you_sure_want_to_continue") : !e && !n ? l = ae.t("common:both_links_are_empty_are_you_sure_want_to_continue") : e ? n || (l = ae.t("common:google_link_is_empty_are_you_sure_want_to_continue")) : l = ae.t("common:ios_link_is_empty_are_you_sure_want_to_continue"), /* @__PURE__ */ c.jsxs(
7592
+ return o === "Ready" && a === "single" ? l = ae.t("common:redirection_url_is_empty_are_you_sure_want_to_continue") : !e && !n ? l = ae.t("common:both_links_are_empty_are_you_sure_want_to_continue") : e ? n || (l = ae.t("common:google_play_link_is_empty_are_you_sure_want_to_continue")) : l = ae.t("common:ios_link_is_empty_are_you_sure_want_to_continue"), /* @__PURE__ */ c.jsxs(
7593
7593
  "div",
7594
7594
  {
7595
7595
  style: {
@@ -8269,7 +8269,7 @@ const Yd = ({
8269
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), [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 = {
8272
+ const [W, z] = U(!1), [j, B] = U(""), [E, L] = U(!1), [G, y] = U(!1), [M, Q] = U(!1), [w, I] = U("download"), [V, H] = U(!1), [J, P] = U(!1), [F, _] = U(!1), [ne, se] = U(!1), [$, ge] = U(!1), [R, we] = U(!1), [We, je] = U(!1), [Be, D] = Te(Yi), [X, oe] = Te(qn), qe = l === "Playable" ? X : !0, be = {
8273
8273
  cdn: "Generate Link",
8274
8274
  adikteev: "Copy CDN"
8275
8275
  }, ze = () => {
@@ -8308,7 +8308,7 @@ const Yd = ({
8308
8308
  molocoGenerateHtml: !1
8309
8309
  };
8310
8310
  ue && (Ce.molocoGenerateHtml = !0), pn(A, i, qe ? p : null, "download", C, Ce).then((Oe) => {
8311
- ue ? P(!1) : H(!1), U(!1);
8311
+ ue ? P(!1) : H(!1), Q(!1);
8312
8312
  }).catch((Oe) => {
8313
8313
  d(Oe.message, Oe);
8314
8314
  });
@@ -8447,7 +8447,7 @@ const Yd = ({
8447
8447
  downloading: W,
8448
8448
  onClickDonwload: async (ue) => {
8449
8449
  if (ue.stopPropagation(), console.log("user in onclickdownload", k), ut && k.customer === "playableFactoryInternal") {
8450
- U(!0);
8450
+ Q(!0);
8451
8451
  return;
8452
8452
  } else if (At)
8453
8453
  se(!0);
@@ -8591,7 +8591,7 @@ const Yd = ({
8591
8591
  zd,
8592
8592
  {
8593
8593
  onClose: () => {
8594
- U(!1);
8594
+ Q(!1);
8595
8595
  },
8596
8596
  handleDownload: Ct,
8597
8597
  handleDownloadMolocoTest: Rt,
@@ -9025,38 +9025,38 @@ const Yd = ({
9025
9025
  setCdnUrl: S,
9026
9026
  customer: C
9027
9027
  }) => {
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) => {
9028
+ const [T, x] = U([]), [K, Y] = U([]), [W, z] = U(!1), [j, B] = U(""), [E, L] = U(!1), [G, y] = U(!1), [M, Q] = U("download"), [w, I] = U(!1), [V, H] = U(!1), [J, P] = U(!1), [F, _] = Te(pa), [ne, se] = Te(ha), [$] = Te(Yi), [ge, R] = Te(qn), we = i === "Playable" ? ge : !0, We = async (X = !1) => {
9029
+ X && 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 (Q) => {
9035
- if (Q === "adikteev")
9034
+ }, je = async (X) => {
9035
+ if (X === "adikteev" || X === "cdn")
9036
9036
  return;
9037
9037
  const oe = [...T];
9038
- if (T.includes(Q)) {
9039
- const qe = oe.findIndex((be) => be === Q);
9038
+ if (T.includes(X)) {
9039
+ const qe = oe.findIndex((be) => be === X);
9040
9040
  oe.splice(qe, 1), x(oe);
9041
9041
  } else
9042
- oe.push(Q), x([...T, Q]);
9042
+ oe.push(X), x([...T, X]);
9043
9043
  $.filter((qe) => [...oe].includes(qe.id)).map((qe) => qe.name);
9044
- }, Be = async () => new Promise(async (Q, oe) => {
9044
+ }, Be = async () => new Promise(async (X, 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), Q(be);
9047
+ L(!1), X(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), U("download"), I(!0)) : (I(!1), await Be());
9052
+ A.iosUrl, A.googleUrl, e && e.willSpendCredit ? (y(!0), Q("download"), I(!0)) : (I(!1), await Be());
9053
9053
  };
9054
9054
  return Ie(() => {
9055
- const Q = $.filter((oe) => {
9055
+ const X = $.filter((oe) => {
9056
9056
  var qe;
9057
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) : oe;
9058
9058
  }).filter((oe) => oe.name === "voodoo" ? o.customer === "customer:20" : !0).map((oe) => oe.id);
9059
- console.log("networks", Q), x(v ? Q : []);
9059
+ console.log("networks", X), x(v ? X : []);
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((Q) => {
9081
+ children: n && $.filter((X) => {
9082
9082
  var oe;
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;
9083
+ return e && ((oe = e == null ? void 0 : e.networks) == null ? void 0 : oe.length) > 0 ? typeof X == "string" ? e == null ? void 0 : e.networks.includes(X) : e == null ? void 0 : e.networks.includes(X.name) : i === "Import" ? t == null ? void 0 : t.networks.filter((qe) => qe.status === "paid").some((qe) => qe.name === X.name) : X;
9084
9084
  }).filter(
9085
- (Q) => Q.name === "voodoo" ? o.customer === "customer:20" : !0
9086
- ).map((Q) => {
9087
- let oe = Q.imageSrc;
9088
- if (Q.name === "web") {
9085
+ (X) => X.name === "voodoo" ? o.customer === "customer:20" : !0
9086
+ ).map((X) => {
9087
+ let oe = X.imageSrc;
9088
+ if (X.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: Q.id,
9096
- name: Q.name,
9095
+ id: X.id,
9096
+ name: X.name,
9097
9097
  imageUrl: oe,
9098
- selected: T.includes(Q.id),
9098
+ selected: T.includes(X.id),
9099
9099
  handleCardClick: je,
9100
9100
  networkVersionSize: K,
9101
9101
  fileSizeLoading: W,
9102
- showCheckBox: Q.id !== "adikteev",
9102
+ showCheckBox: X.id !== "adikteev" && X.id !== "cdn",
9103
9103
  typeOfProduct: i,
9104
9104
  versionId: r,
9105
9105
  api: s,
@@ -9119,7 +9119,7 @@ const Yd = ({
9119
9119
  generateCDN: We,
9120
9120
  cdnUrl: k
9121
9121
  },
9122
- Q.id
9122
+ X.id
9123
9123
  );
9124
9124
  })
9125
9125
  }
@@ -9292,15 +9292,15 @@ const _d = ({
9292
9292
  urlType: q,
9293
9293
  setUrlType: Z
9294
9294
  }) => {
9295
- const [k, S] = X(null), [C, T] = X(null), [x, K] = X(null), [Y, W] = X(!1), [z, j] = X(!0), [B, E] = X(window.innerWidth), [L, G] = X(!1), [y, M] = X(!1), [U, w] = X("");
9295
+ const [k, S] = U(null), [C, T] = U(null), [x, K] = U(null), [Y, W] = U(!1), [z, j] = U(!0), [B, E] = U(window.innerWidth), [L, G] = U(!1), [y, M] = U(!1), [Q, w] = U("");
9296
9296
  Te(pa), Te(ha);
9297
9297
  const [I, V] = Te(ma), [H, J] = Te(qn);
9298
9298
  Ie(() => {
9299
- !U && r !== "Fusion" && ud(e).then((D) => {
9299
+ !Q && r !== "Fusion" && ud(e).then((D) => {
9300
9300
  D != null && D.exist && w(D.uploadPath);
9301
9301
  });
9302
- }, [U]), console.log("download modal version: 8.0.9");
9303
- const [P, F] = X(!1);
9302
+ }, [Q]), console.log("download modal version: 8.0.9");
9303
+ const [P, F] = U(!1);
9304
9304
  Ie(() => {
9305
9305
  }, [P]), Ie(() => {
9306
9306
  const D = () => {
@@ -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, Q) => {
9317
+ }, ne = (D, X) => {
9318
9318
  clearTimeout(Qs), Qs = setTimeout(() => {
9319
- r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: Q }, { urlType: q });
9319
+ r === "Playable" && !H || Ri(e, { iosUrl: D, googleUrl: X }, { urlType: q });
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, Q) => {
9325
+ }, ge = async (D, X) => {
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 (Q && Q.html) {
9340
- const $e = `${A}/${Q.html}?t=${Date.now()}`;
9339
+ if (X && X.html) {
9340
+ const $e = `${A}/${X.html}?t=${Date.now()}`;
9341
9341
  let Ct = await fetch($e).then((At) => At.text());
9342
9342
  const Rt = ((oe = Ct.match(/var\s+iosLink\s*=\s*['|"](https?[^\s'"]+)['|"]/)) == null ? void 0 : oe.at(1)) || "";
9343
9343
  m(Rt);
@@ -9370,26 +9370,26 @@ const _d = ({
9370
9370
  ...D,
9371
9371
  networks: D.networks
9372
9372
  })))), W(!1);
9373
- }, we = async () => await Bd(n, s), [We, je] = X(null), Be = async (D) => await Fd(D, s);
9373
+ }, we = async () => await Bd(n, s), [We, je] = U(null), Be = async (D) => await Fd(D, s);
9374
9374
  return Ie(() => {
9375
9375
  i || (S(null), T(null), K(null), d(null), je(null)), i && (r === "Playable" ? we().then((D) => {
9376
- Be(D.customer).then((Q) => {
9377
- je(Q);
9378
- }), _().then((Q) => {
9379
- ge(null, Q);
9376
+ Be(D.customer).then((X) => {
9377
+ je(X);
9378
+ }), _().then((X) => {
9379
+ ge(null, X);
9380
9380
  }), j(!1);
9381
9381
  }) : r === "Ready" ? R().then((D) => {
9382
- _().then((Q) => {
9383
- ge(null, Q), j(!1);
9382
+ _().then((X) => {
9383
+ ge(null, X), j(!1);
9384
9384
  });
9385
9385
  }) : r === "Flex" ? R().then((D) => {
9386
- j(!1), we().then((Q) => {
9387
- i && (ge(Q, null), j(!1), T(Q));
9386
+ j(!1), we().then((X) => {
9387
+ i && (ge(X, null), j(!1), T(X));
9388
9388
  });
9389
9389
  }) : r === "Import" ? Ud(e, s).then((D) => {
9390
9390
  S(D), m(D.iosUrl || ""), v(D.googleUrl || ""), W(!1), j(!1);
9391
9391
  }) : r === "Fusion" && (j(!1), we().then((D) => {
9392
- i && (ge(D, null), j(!1), D.networks = I.filter((Q) => Q !== "cdn"), T(D));
9392
+ i && (ge(D, null), j(!1), D.networks = I.filter((X) => X !== "cdn"), T(D));
9393
9393
  })));
9394
9394
  }, [n, t, e, i]), /* @__PURE__ */ c.jsxs(
9395
9395
  "div",
@@ -9460,7 +9460,7 @@ const _d = ({
9460
9460
  allNetworksSelected: P,
9461
9461
  cdnModal: y,
9462
9462
  setCdnModal: M,
9463
- cdnUrl: U,
9463
+ cdnUrl: Q,
9464
9464
  setCdnUrl: w,
9465
9465
  customer: We ?? void 0
9466
9466
  }
@@ -9986,8 +9986,8 @@ Nf.default.subscribe(Gf);
9986
9986
  }, y.setContentRef = function(M) {
9987
9987
  y.content = M, y.props.contentRef && y.props.contentRef(M);
9988
9988
  }, y.afterClose = function() {
9989
- var M = y.props, U = M.appElement, w = M.ariaHideApp, I = M.htmlOpenClassName, V = M.bodyOpenClassName, H = M.parentSelector, J = H && H().ownerDocument || document;
9990
- 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);
9989
+ var M = y.props, Q = M.appElement, w = M.ariaHideApp, I = M.htmlOpenClassName, V = M.bodyOpenClassName, H = M.parentSelector, J = H && H().ownerDocument || document;
9990
+ V && m.remove(J.body, V), I && m.remove(J.getElementsByTagName("html")[0], I), w && j > 0 && (j -= 1, j === 0 && p.show(Q)), y.props.shouldFocusAfterRender && (y.props.shouldReturnFocusAfterClose ? (A.returnFocus(y.props.preventScroll), A.teardownScopedFocus()) : A.popWithoutFocus()), y.props.onAfterClose && y.props.onAfterClose(), k.default.deregister(y);
9991
9991
  }, y.open = function() {
9992
9992
  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() {
9993
9993
  y.openAnimationFrame = requestAnimationFrame(function() {
@@ -10033,16 +10033,16 @@ Nf.default.subscribe(Gf);
10033
10033
  return !y.state.isOpen && !y.state.beforeClose;
10034
10034
  }, y.contentHasFocus = function() {
10035
10035
  return document.activeElement === y.content || y.content.contains(document.activeElement);
10036
- }, y.buildClassName = function(M, U) {
10037
- var w = (typeof U > "u" ? "undefined" : r(U)) === "object" ? U : {
10036
+ }, y.buildClassName = function(M, Q) {
10037
+ var w = (typeof Q > "u" ? "undefined" : r(Q)) === "object" ? Q : {
10038
10038
  base: Y[M],
10039
10039
  afterOpen: Y[M] + "--after-open",
10040
10040
  beforeClose: Y[M] + "--before-close"
10041
10041
  }, I = w.base;
10042
- return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof U == "string" && U ? I + " " + U : I;
10043
- }, y.attributesFromObject = function(M, U) {
10044
- return Object.keys(U).reduce(function(w, I) {
10045
- return w[M + "-" + I] = U[I], w;
10042
+ return y.state.afterOpen && (I = I + " " + w.afterOpen), y.state.beforeClose && (I = I + " " + w.beforeClose), typeof Q == "string" && Q ? I + " " + Q : I;
10043
+ }, y.attributesFromObject = function(M, Q) {
10044
+ return Object.keys(Q).reduce(function(w, I) {
10045
+ return w[M + "-" + I] = Q[I], w;
10046
10046
  }, {});
10047
10047
  }, y.state = {
10048
10048
  afterOpen: !1,
@@ -10067,14 +10067,14 @@ Nf.default.subscribe(Gf);
10067
10067
  }, {
10068
10068
  key: "beforeOpen",
10069
10069
  value: function() {
10070
- var y = this.props, M = y.appElement, U = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, V = y.parentSelector, H = V && V().ownerDocument || document;
10071
- I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), U && (j += 1, p.hide(M)), k.default.register(this);
10070
+ var y = this.props, M = y.appElement, Q = y.ariaHideApp, w = y.htmlOpenClassName, I = y.bodyOpenClassName, V = y.parentSelector, H = V && V().ownerDocument || document;
10071
+ I && m.add(H.body, I), w && m.add(H.getElementsByTagName("html")[0], w), Q && (j += 1, p.hide(M)), k.default.register(this);
10072
10072
  }
10073
10073
  // Don't steal focus from inner elements
10074
10074
  }, {
10075
10075
  key: "render",
10076
10076
  value: function() {
10077
- 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;
10077
+ var y = this.props, M = y.id, Q = y.className, w = y.overlayClassName, I = y.defaultStyles, V = y.children, H = Q ? {} : I.content, J = w ? {} : I.overlay;
10078
10078
  if (this.shouldBeClosed())
10079
10079
  return null;
10080
10080
  var P = {
@@ -10087,7 +10087,7 @@ Nf.default.subscribe(Gf);
10087
10087
  id: M,
10088
10088
  ref: this.setContentRef,
10089
10089
  style: n({}, H, this.props.style.content),
10090
- className: this.buildClassName("content", U),
10090
+ className: this.buildClassName("content", Q),
10091
10091
  tabIndex: "-1",
10092
10092
  onKeyDown: this.handleKeyDown,
10093
10093
  onMouseDown: this.handleContentOnMouseDown,
@@ -12804,7 +12804,7 @@ const uo = 5, rh = ({
12804
12804
  producerApi: A,
12805
12805
  api: u
12806
12806
  }) => {
12807
- const [d, f] = X(!1), [p, g] = X(!1);
12807
+ const [d, f] = U(!1), [p, g] = U(!1);
12808
12808
  Ie(() => {
12809
12809
  const q = Gn(l, {
12810
12810
  path: "/socket.io"
@@ -13076,7 +13076,7 @@ const uh = ({
13076
13076
  copyLinkUrl: p,
13077
13077
  fusionData: g
13078
13078
  }) => {
13079
- const [m, v] = X(window.innerWidth), [q, Z] = X(!1), [k, S] = X(u), [C, T] = X(!1), [x, K] = X(!0), [Y, W] = X(null), [z, j] = X(""), [B, E] = X("Loading..."), [L, G] = X("Loading..."), [y, M] = X("game"), [U, w] = Te(Yi), [I, V] = Te(ma);
13079
+ const [m, v] = U(window.innerWidth), [q, Z] = U(!1), [k, S] = U(u), [C, T] = U(!1), [x, K] = U(!0), [Y, W] = U(null), [z, j] = U(""), [B, E] = U("Loading..."), [L, G] = U("Loading..."), [y, M] = U("game"), [Q, w] = Te(Yi), [I, V] = Te(ma);
13080
13080
  ad(o, a, j, f, g);
13081
13081
  const H = async () => {
13082
13082
  let J = await sh(a, o, n, l.customer);