gearboxdownloadmodal 6.0.31 → 6.0.33

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 ie, { useState as T, useEffect as Ce, forwardRef as Bi, useReducer as Ui, useRef as it, isValidElement as ht, cloneElement as Dn, useLayoutEffect as Fi } from "react";
1
+ import ie, { useState as T, useEffect as ve, forwardRef as Bi, useReducer as Ui, useRef as it, isValidElement as ht, cloneElement as Dn, useLayoutEffect as Fi } from "react";
2
2
  import _i from "react-dom";
3
3
  function $i(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -668,7 +668,7 @@ process.env.NODE_ENV === "production" ? Gn.exports = ta() : Gn.exports = na();
668
668
  var s = Gn.exports;
669
669
  const Co = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE4OThfMzEyMjcpIj4NCiAgICA8cGF0aCBkPSJNMjAuMzQxNiAxMi4yMjY2TDEyLjc5NDkgMTkuNzczMiIgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44Ig0KICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPg0KICAgIDxwYXRoIGQ9Ik0yMC4zNDE2IDE5Ljc3MzJMMTIuNzk0OSAxMi4yMjY2IiBzdHJva2U9IiMwRjBGMUUiIHN0cm9rZVdpZHRoPSIxLjgiDQogICAgICBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogICAgPHBhdGgNCiAgICAgIGQ9Ik0xNi41Njg0IDI4QzkuOTQwMzYgMjggNC41NjgzNiAyMi42MjggNC41NjgzNiAxNkM0LjU2ODM2IDkuMzcyIDkuOTQwMzYgNCAxNi41Njg0IDRDMjMuMTk2NCA0IDI4LjU2ODQgOS4zNzIgMjguNTY4NCAxNkMyOC41Njg0IDIyLjYyOCAyMy4xOTY0IDI4IDE2LjU2ODQgMjhaIg0KICAgICAgc3Ryb2tlPSIjMEYwRjFFIiBzdHJva2VXaWR0aD0iMS44IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIC8+DQogIDwvZz4NCiAgPGRlZnM+DQogICAgPGNsaXBQYXRoIGlkPSJjbGlwMF8xODk4XzMxMjI3Ij4NCiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4NCiAgICA8L2NsaXBQYXRoPg0KICA8L2RlZnM+DQo8L3N2Zz4=", ra = ({ children: e }) => {
670
670
  const [t, n] = T(window.innerWidth);
671
- return Ce(() => {
671
+ return ve(() => {
672
672
  const r = () => {
673
673
  n(window.innerWidth);
674
674
  };
@@ -1667,29 +1667,29 @@ Wo.prototype = {
1667
1667
  this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
1668
1668
  }
1669
1669
  };
1670
- var ga = Wo, je = {
1670
+ var ga = Wo, ze = {
1671
1671
  glog: function(e) {
1672
1672
  if (e < 1)
1673
1673
  throw new Error("glog(" + e + ")");
1674
- return je.LOG_TABLE[e];
1674
+ return ze.LOG_TABLE[e];
1675
1675
  },
1676
1676
  gexp: function(e) {
1677
1677
  for (; e < 0; )
1678
1678
  e += 255;
1679
1679
  for (; e >= 256; )
1680
1680
  e -= 255;
1681
- return je.EXP_TABLE[e];
1681
+ return ze.EXP_TABLE[e];
1682
1682
  },
1683
1683
  EXP_TABLE: new Array(256),
1684
1684
  LOG_TABLE: new Array(256)
1685
1685
  };
1686
- for (var be = 0; be < 8; be++)
1687
- je.EXP_TABLE[be] = 1 << be;
1688
- for (var be = 8; be < 256; be++)
1689
- je.EXP_TABLE[be] = je.EXP_TABLE[be - 4] ^ je.EXP_TABLE[be - 5] ^ je.EXP_TABLE[be - 6] ^ je.EXP_TABLE[be - 8];
1690
- for (var be = 0; be < 255; be++)
1691
- je.LOG_TABLE[je.EXP_TABLE[be]] = be;
1692
- var Mo = je, nt = Mo;
1686
+ for (var Ce = 0; Ce < 8; Ce++)
1687
+ ze.EXP_TABLE[Ce] = 1 << Ce;
1688
+ for (var Ce = 8; Ce < 256; Ce++)
1689
+ ze.EXP_TABLE[Ce] = ze.EXP_TABLE[Ce - 4] ^ ze.EXP_TABLE[Ce - 5] ^ ze.EXP_TABLE[Ce - 6] ^ ze.EXP_TABLE[Ce - 8];
1690
+ for (var Ce = 0; Ce < 255; Ce++)
1691
+ ze.LOG_TABLE[ze.EXP_TABLE[Ce]] = Ce;
1692
+ var Mo = ze, nt = Mo;
1693
1693
  function Vt(e, t) {
1694
1694
  if (e.length == null)
1695
1695
  throw new Error(e.length + "/" + t);
@@ -1731,7 +1731,7 @@ var So = Vt, Se = xo, Qr = So, qa = Mo, Be = {
1731
1731
  PATTERN101: 5,
1732
1732
  PATTERN110: 6,
1733
1733
  PATTERN111: 7
1734
- }, ve = {
1734
+ }, be = {
1735
1735
  PATTERN_POSITION_TABLE: [
1736
1736
  [],
1737
1737
  [6, 18],
@@ -1778,13 +1778,13 @@ var So = Vt, Se = xo, Qr = So, qa = Mo, Be = {
1778
1778
  G18: 7973,
1779
1779
  G15_MASK: 21522,
1780
1780
  getBCHTypeInfo: function(e) {
1781
- for (var t = e << 10; ve.getBCHDigit(t) - ve.getBCHDigit(ve.G15) >= 0; )
1782
- t ^= ve.G15 << ve.getBCHDigit(t) - ve.getBCHDigit(ve.G15);
1783
- return (e << 10 | t) ^ ve.G15_MASK;
1781
+ for (var t = e << 10; be.getBCHDigit(t) - be.getBCHDigit(be.G15) >= 0; )
1782
+ t ^= be.G15 << be.getBCHDigit(t) - be.getBCHDigit(be.G15);
1783
+ return (e << 10 | t) ^ be.G15_MASK;
1784
1784
  },
1785
1785
  getBCHTypeNumber: function(e) {
1786
- for (var t = e << 12; ve.getBCHDigit(t) - ve.getBCHDigit(ve.G18) >= 0; )
1787
- t ^= ve.G18 << ve.getBCHDigit(t) - ve.getBCHDigit(ve.G18);
1786
+ for (var t = e << 12; be.getBCHDigit(t) - be.getBCHDigit(be.G18) >= 0; )
1787
+ t ^= be.G18 << be.getBCHDigit(t) - be.getBCHDigit(be.G18);
1788
1788
  return e << 12 | t;
1789
1789
  },
1790
1790
  getBCHDigit: function(e) {
@@ -1793,7 +1793,7 @@ var So = Vt, Se = xo, Qr = So, qa = Mo, Be = {
1793
1793
  return t;
1794
1794
  },
1795
1795
  getPatternPosition: function(e) {
1796
- return ve.PATTERN_POSITION_TABLE[e - 1];
1796
+ return be.PATTERN_POSITION_TABLE[e - 1];
1797
1797
  },
1798
1798
  getMask: function(e, t, n) {
1799
1799
  switch (e) {
@@ -1891,7 +1891,7 @@ var So = Vt, Se = xo, Qr = So, qa = Mo, Be = {
1891
1891
  var d = Math.abs(100 * l / t / t - 50) / 5;
1892
1892
  return n += d * 10, n;
1893
1893
  }
1894
- }, ya = ve, va = fa, Lo = ha, Oo = ga, $e = ya, ba = So;
1894
+ }, ya = be, va = fa, Lo = ha, Oo = ga, $e = ya, ba = So;
1895
1895
  function He(e, t) {
1896
1896
  this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
1897
1897
  }
@@ -2201,22 +2201,22 @@ const { toString: Na } = Object.prototype, { getPrototypeOf: ur } = Object, cn =
2201
2201
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
2202
2202
  })(/* @__PURE__ */ Object.create(null)), Re = (e) => (e = e.toLowerCase(), (t) => cn(t) === e), mn = (e) => (t) => typeof t === e, { isArray: gt } = Array, Lt = mn("undefined");
2203
2203
  function Ra(e) {
2204
- return e !== null && !Lt(e) && e.constructor !== null && !Lt(e.constructor) && Ee(e.constructor.isBuffer) && e.constructor.isBuffer(e);
2204
+ return e !== null && !Lt(e) && e.constructor !== null && !Lt(e.constructor) && ke(e.constructor.isBuffer) && e.constructor.isBuffer(e);
2205
2205
  }
2206
2206
  const Jo = Re("ArrayBuffer");
2207
2207
  function Da(e) {
2208
2208
  let t;
2209
2209
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Jo(e.buffer), t;
2210
2210
  }
2211
- const Ga = mn("string"), Ee = mn("function"), No = mn("number"), dn = (e) => e !== null && typeof e == "object", Ta = (e) => e === !0 || e === !1, Bt = (e) => {
2211
+ const Ga = mn("string"), ke = mn("function"), No = mn("number"), dn = (e) => e !== null && typeof e == "object", Ta = (e) => e === !0 || e === !1, Bt = (e) => {
2212
2212
  if (cn(e) !== "object")
2213
2213
  return !1;
2214
2214
  const t = ur(e);
2215
2215
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
2216
- }, Ha = Re("Date"), Xa = Re("File"), Qa = Re("Blob"), Pa = Re("FileList"), Va = (e) => dn(e) && Ee(e.pipe), Ba = (e) => {
2216
+ }, Ha = Re("Date"), Xa = Re("File"), Qa = Re("Blob"), Pa = Re("FileList"), Va = (e) => dn(e) && ke(e.pipe), Ba = (e) => {
2217
2217
  let t;
2218
- return e && (typeof FormData == "function" && e instanceof FormData || Ee(e.append) && ((t = cn(e)) === "formdata" || // detect form-data instance
2219
- t === "object" && Ee(e.toString) && e.toString() === "[object FormData]"));
2218
+ return e && (typeof FormData == "function" && e instanceof FormData || ke(e.append) && ((t = cn(e)) === "formdata" || // detect form-data instance
2219
+ t === "object" && ke(e.toString) && e.toString() === "[object FormData]"));
2220
2220
  }, Ua = Re("URLSearchParams"), [Fa, _a, $a, eA] = ["ReadableStream", "Request", "Response", "Headers"].map(Re), tA = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2221
2221
  function zt(e, t, { allOwnKeys: n = !1 } = {}) {
2222
2222
  if (e === null || typeof e > "u")
@@ -2252,7 +2252,7 @@ function Hn() {
2252
2252
  return t;
2253
2253
  }
2254
2254
  const nA = (e, t, n, { allOwnKeys: r } = {}) => (zt(t, (o, i) => {
2255
- n && Ee(o) ? e[i] = Yo(o, n) : e[i] = o;
2255
+ n && ke(o) ? e[i] = Yo(o, n) : e[i] = o;
2256
2256
  }, { allOwnKeys: r }), e), rA = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), oA = (e, t, n, r) => {
2257
2257
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
2258
2258
  value: t.prototype
@@ -2310,10 +2310,10 @@ const nA = (e, t, n, { allOwnKeys: r } = {}) => (zt(t, (o, i) => {
2310
2310
  }), Object.defineProperties(e, r);
2311
2311
  }, pA = (e) => {
2312
2312
  To(e, (t, n) => {
2313
- if (Ee(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
2313
+ if (ke(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
2314
2314
  return !1;
2315
2315
  const r = e[n];
2316
- if (Ee(r)) {
2316
+ if (ke(r)) {
2317
2317
  if (t.enumerable = !1, "writable" in t) {
2318
2318
  t.writable = !1;
2319
2319
  return;
@@ -2343,7 +2343,7 @@ const nA = (e, t, n, { allOwnKeys: r } = {}) => (zt(t, (o, i) => {
2343
2343
  return n;
2344
2344
  };
2345
2345
  function yA(e) {
2346
- return !!(e && Ee(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
2346
+ return !!(e && ke(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
2347
2347
  }
2348
2348
  const vA = (e) => {
2349
2349
  const t = new Array(10), n = (r, o) => {
@@ -2362,7 +2362,7 @@ const vA = (e) => {
2362
2362
  return r;
2363
2363
  };
2364
2364
  return n(e, 0);
2365
- }, bA = Re("AsyncFunction"), CA = (e) => e && (dn(e) || Ee(e)) && Ee(e.then) && Ee(e.catch), q = {
2365
+ }, bA = Re("AsyncFunction"), CA = (e) => e && (dn(e) || ke(e)) && ke(e.then) && ke(e.catch), q = {
2366
2366
  isArray: gt,
2367
2367
  isArrayBuffer: Jo,
2368
2368
  isBuffer: Ra,
@@ -2382,7 +2382,7 @@ const vA = (e) => {
2382
2382
  isFile: Xa,
2383
2383
  isBlob: Qa,
2384
2384
  isRegExp: dA,
2385
- isFunction: Ee,
2385
+ isFunction: ke,
2386
2386
  isStream: Va,
2387
2387
  isURLSearchParams: Ua,
2388
2388
  isTypedArray: sA,
@@ -3923,22 +3923,22 @@ function Fn(e, t) {
3923
3923
  Fn({ read: ao.decodeValue, write: ao.encodeValue }, yr);
3924
3924
  let ci;
3925
3925
  typeof window < "u" && (ci = ui("token"));
3926
- const ye = fs.create({
3926
+ const qe = fs.create({
3927
3927
  headers: {
3928
3928
  Authorization: ci
3929
3929
  }
3930
3930
  });
3931
3931
  async function ys(e, t, n) {
3932
- return (await ye.post(n + "/createFlexVersionLinkMulti", {
3932
+ return (await qe.post(n + "/createFlexVersionLinkMulti", {
3933
3933
  _id: e,
3934
3934
  networks: t
3935
3935
  })).data;
3936
3936
  }
3937
3937
  async function vs(e, t) {
3938
- return e.network == "fb" && (e.zip = 1), (await ye.post(t + "/createFlexVersionLink", e || {})).data;
3938
+ return e.network == "fb" && (e.zip = 1), (await qe.post(t + "/createFlexVersionLink", e || {})).data;
3939
3939
  }
3940
3940
  async function bs(e, t, n) {
3941
- return (await ye.post(e + "/createImportedVersionLink", {
3941
+ return (await qe.post(e + "/createImportedVersionLink", {
3942
3942
  _id: t,
3943
3943
  network: n
3944
3944
  // zip,
@@ -3946,7 +3946,7 @@ async function bs(e, t, n) {
3946
3946
  })).data;
3947
3947
  }
3948
3948
  async function Cs(e, t, n, r, o) {
3949
- return (await ye.post(e + "/createPlayableVersionLink", {
3949
+ return (await qe.post(e + "/createPlayableVersionLink", {
3950
3950
  _id: t,
3951
3951
  network: n,
3952
3952
  isPfTest: r,
@@ -3954,13 +3954,13 @@ async function Cs(e, t, n, r, o) {
3954
3954
  })).data;
3955
3955
  }
3956
3956
  async function Zs(e, t, n) {
3957
- return (await ye.post(n + "/createPlayableVersionLinkMulti", {
3957
+ return (await qe.post(n + "/createPlayableVersionLinkMulti", {
3958
3958
  _id: e,
3959
3959
  networks: t
3960
3960
  })).data;
3961
3961
  }
3962
3962
  async function Is(e, t, n, r, o) {
3963
- return (await ye.post(e + "/createReadyVersionLink", {
3963
+ return (await qe.post(e + "/createReadyVersionLink", {
3964
3964
  _id: t,
3965
3965
  network: n,
3966
3966
  isPfTest: r,
@@ -3968,16 +3968,19 @@ async function Is(e, t, n, r, o) {
3968
3968
  })).data;
3969
3969
  }
3970
3970
  async function ws(e, t, n) {
3971
- return (await ye.post(n + "/createReadyVersionLinkMulti", {
3971
+ return (await qe.post(n + "/createReadyVersionLinkMulti", {
3972
3972
  _id: e,
3973
3973
  networks: t
3974
3974
  })).data;
3975
3975
  }
3976
3976
  async function xs(e, t) {
3977
- return (await ye.post(t + "/updateFlexUrl", e || {})).data;
3977
+ return (await qe.post(t + "/getCdnExportName", e || {})).data;
3978
+ }
3979
+ async function Ks(e, t) {
3980
+ return (await qe.post(t + "/updateFlexUrl", e || {})).data;
3978
3981
  }
3979
3982
  async function Ao(e, t, n) {
3980
- return (await ye.post(n + "/updatePlayableVersion", {
3983
+ return (await qe.post(n + "/updatePlayableVersion", {
3981
3984
  ...t,
3982
3985
  _id: e
3983
3986
  })).data;
@@ -4010,7 +4013,7 @@ function Fe() {
4010
4013
  return r;
4011
4014
  }
4012
4015
  const Wt = (e) => typeof e == "number" && !isNaN(e), ut = (e) => typeof e == "string", xe = (e) => typeof e == "function", _t = (e) => ut(e) || xe(e) ? e : null, zn = (e) => ht(e) || ut(e) || xe(e) || Wt(e);
4013
- function Ks(e, t, n) {
4016
+ function Ws(e, t, n) {
4014
4017
  n === void 0 && (n = 300);
4015
4018
  const { scrollHeight: r, style: o } = e;
4016
4019
  requestAnimationFrame(() => {
@@ -4029,9 +4032,9 @@ function gn(e) {
4029
4032
  M.target === d.current && (y.dispatchEvent(new Event("d")), y.removeEventListener("animationend", k), y.removeEventListener("animationcancel", k), p.current === 0 && M.type !== "animationcancel" && y.classList.remove(...I));
4030
4033
  };
4031
4034
  y.classList.add(...I), y.addEventListener("animationend", k), y.addEventListener("animationcancel", k);
4032
- }, []), Ce(() => {
4035
+ }, []), ve(() => {
4033
4036
  const y = d.current, I = () => {
4034
- y.removeEventListener("animationend", I), o ? Ks(y, l, i) : l();
4037
+ y.removeEventListener("animationend", I), o ? Ws(y, l, i) : l();
4035
4038
  };
4036
4039
  v || (u ? I() : (p.current = 1, y.className += ` ${f}`, y.addEventListener("animationend", I)));
4037
4040
  }, [v]), ie.createElement(ie.Fragment, null, A);
@@ -4072,7 +4075,7 @@ const Oe = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
4072
4075
  }, spinner: function() {
4073
4076
  return ie.createElement("div", { className: "Toastify__spinner" });
4074
4077
  } };
4075
- function Ws(e) {
4078
+ function Ms(e) {
4076
4079
  const [, t] = Ui((g) => g + 1, 0), [n, r] = T([]), o = it(null), i = it(/* @__PURE__ */ new Map()).current, a = (g) => n.indexOf(g) !== -1, A = it({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: a, getToast: (g) => i.get(g) }).current;
4077
4080
  function m(g) {
4078
4081
  let { containerId: f } = g;
@@ -4131,9 +4134,9 @@ function Ws(e) {
4131
4134
  const I = { content: g, props: f };
4132
4135
  i.set(y, I), r((k) => [...k, y].filter((M) => M !== p)), Oe.emit(4, so(I, I.props.updateId == null ? "added" : "updated"));
4133
4136
  }
4134
- return Ce(() => (A.containerId = e.containerId, Oe.cancelEmit(3).on(0, d).on(1, (g) => o.current && u(g)).on(5, m).emit(2, A), () => {
4137
+ return ve(() => (A.containerId = e.containerId, Oe.cancelEmit(3).on(0, d).on(1, (g) => o.current && u(g)).on(5, m).emit(2, A), () => {
4135
4138
  i.clear(), Oe.emit(3, A);
4136
- }), []), Ce(() => {
4139
+ }), []), ve(() => {
4137
4140
  A.props = e, A.isToastActive = a, A.displayedToast = n.length;
4138
4141
  }), { getToastToRender: function(g) {
4139
4142
  const f = /* @__PURE__ */ new Map(), p = Array.from(i.values());
@@ -4149,7 +4152,7 @@ function lo(e) {
4149
4152
  function uo(e) {
4150
4153
  return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
4151
4154
  }
4152
- function Ms(e) {
4155
+ function Ss(e) {
4153
4156
  const [t, n] = T(!1), [r, o] = T(!1), i = it(null), a = it({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = it(e), { autoClose: m, pauseOnHover: u, closeToast: l, onClick: d, closeOnClick: v } = e;
4154
4157
  function g(L) {
4155
4158
  if (e.draggable) {
@@ -4183,12 +4186,12 @@ function Ms(e) {
4183
4186
  L.style.transition = "transform 0.2s, opacity 0.2s", L.style.transform = `translate${e.draggableDirection}(0)`, L.style.opacity = "1";
4184
4187
  }
4185
4188
  }
4186
- Ce(() => {
4189
+ ve(() => {
4187
4190
  A.current = e;
4188
- }), Ce(() => (i.current && i.current.addEventListener("d", p, { once: !0 }), xe(e.onOpen) && e.onOpen(ht(e.children) && e.children.props), () => {
4191
+ }), ve(() => (i.current && i.current.addEventListener("d", p, { once: !0 }), xe(e.onOpen) && e.onOpen(ht(e.children) && e.children.props), () => {
4189
4192
  const L = A.current;
4190
4193
  xe(L.onClose) && L.onClose(ht(L.children) && L.children.props);
4191
- }), []), Ce(() => (e.pauseOnFocusLoss && (document.hasFocus() || y(), window.addEventListener("focus", p), window.addEventListener("blur", y)), () => {
4194
+ }), []), ve(() => (e.pauseOnFocusLoss && (document.hasFocus() || y(), window.addEventListener("focus", p), window.addEventListener("blur", y)), () => {
4192
4195
  e.pauseOnFocusLoss && (window.removeEventListener("focus", p), window.removeEventListener("blur", y));
4193
4196
  }), [e.pauseOnFocusLoss]);
4194
4197
  const M = { onMouseDown: g, onTouchStart: g, onMouseUp: f, onTouchEnd: f };
@@ -4202,7 +4205,7 @@ function di(e) {
4202
4205
  o.stopPropagation(), t(o);
4203
4206
  }, "aria-label": r }, ie.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, ie.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
4204
4207
  }
4205
- function Ss(e) {
4208
+ function Ls(e) {
4206
4209
  let { delay: t, isRunning: n, closeToast: r, type: o = "default", hide: i, className: a, style: A, controlledProgress: m, progress: u, rtl: l, isIn: d, theme: v } = e;
4207
4210
  const g = i || m && u === 0, f = { ...A, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused", opacity: g ? 0 : 1 };
4208
4211
  m && (f.transform = `scaleX(${u})`);
@@ -4211,45 +4214,45 @@ function Ss(e) {
4211
4214
  d && r();
4212
4215
  } });
4213
4216
  }
4214
- const Ls = (e) => {
4215
- const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = Ms(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: u, hideProgressBar: l, closeToast: d, transition: v, position: g, className: f, style: p, bodyClassName: y, bodyStyle: I, progressClassName: k, progressStyle: M, updateId: L, role: b, progress: G, rtl: X, toastId: F, deleteToast: ue, isIn: te, isLoading: ae, iconOut: Q, closeOnClick: _, theme: K } = e, Y = Fe("Toastify__toast", `Toastify__toast-theme--${K}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": X }, { "Toastify__toast--close-on-click": _ }), J = xe(f) ? f({ rtl: X, position: g, type: u, defaultClassName: Y }) : Fe(Y, f), h = !!G || !A, j = { closeToast: d, type: u, theme: K };
4217
+ const Os = (e) => {
4218
+ const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = Ss(e), { closeButton: i, children: a, autoClose: A, onClick: m, type: u, hideProgressBar: l, closeToast: d, transition: v, position: g, className: f, style: p, bodyClassName: y, bodyStyle: I, progressClassName: k, progressStyle: M, updateId: L, role: b, progress: G, rtl: X, toastId: F, deleteToast: ue, isIn: te, isLoading: ae, iconOut: Q, closeOnClick: _, theme: K } = e, Y = Fe("Toastify__toast", `Toastify__toast-theme--${K}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": X }, { "Toastify__toast--close-on-click": _ }), J = xe(f) ? f({ rtl: X, position: g, type: u, defaultClassName: Y }) : Fe(Y, f), h = !!G || !A, j = { closeToast: d, type: u, theme: K };
4216
4219
  let R = null;
4217
- return i === !1 || (R = xe(i) ? i(j) : ht(i) ? Dn(i, j) : di(j)), ie.createElement(v, { isIn: te, done: ue, position: g, preventExitTransition: n, nodeRef: r }, ie.createElement("div", { id: F, onClick: m, className: J, ...o, style: p, ref: r }, ie.createElement("div", { ...te && { role: b }, className: xe(y) ? y({ type: u }) : Fe("Toastify__toast-body", y), style: I }, Q != null && ie.createElement("div", { className: Fe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, Q), ie.createElement("div", null, a)), R, ie.createElement(Ss, { ...L && !h ? { key: `pb-${L}` } : {}, rtl: X, theme: K, delay: A, isRunning: t, isIn: te, closeToast: d, hide: l, type: u, style: M, className: k, controlledProgress: h, progress: G || 0 })));
4220
+ return i === !1 || (R = xe(i) ? i(j) : ht(i) ? Dn(i, j) : di(j)), ie.createElement(v, { isIn: te, done: ue, position: g, preventExitTransition: n, nodeRef: r }, ie.createElement("div", { id: F, onClick: m, className: J, ...o, style: p, ref: r }, ie.createElement("div", { ...te && { role: b }, className: xe(y) ? y({ type: u }) : Fe("Toastify__toast-body", y), style: I }, Q != null && ie.createElement("div", { className: Fe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ae }) }, Q), ie.createElement("div", null, a)), R, ie.createElement(Ls, { ...L && !h ? { key: `pb-${L}` } : {}, rtl: X, theme: K, delay: A, isRunning: t, isIn: te, closeToast: d, hide: l, type: u, style: M, className: k, controlledProgress: h, progress: G || 0 })));
4218
4221
  }, qn = function(e, t) {
4219
4222
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
4220
- }, Os = gn(qn("bounce", !0));
4223
+ }, Es = gn(qn("bounce", !0));
4221
4224
  gn(qn("slide", !0));
4222
4225
  gn(qn("zoom"));
4223
4226
  gn(qn("flip"));
4224
4227
  const _n = Bi((e, t) => {
4225
- const { getToastToRender: n, containerRef: r, isToastActive: o } = Ws(e), { className: i, style: a, rtl: A, containerId: m } = e;
4228
+ const { getToastToRender: n, containerRef: r, isToastActive: o } = Ms(e), { className: i, style: a, rtl: A, containerId: m } = e;
4226
4229
  function u(l) {
4227
4230
  const d = Fe("Toastify__toast-container", `Toastify__toast-container--${l}`, { "Toastify__toast-container--rtl": A });
4228
4231
  return xe(i) ? i({ position: l, rtl: A, defaultClassName: d }) : Fe(d, _t(i));
4229
4232
  }
4230
- return Ce(() => {
4233
+ return ve(() => {
4231
4234
  t && (t.current = r.current);
4232
4235
  }, []), ie.createElement("div", { ref: r, className: "Toastify", id: m }, n((l, d) => {
4233
4236
  const v = d.length ? { ...a } : { ...a, pointerEvents: "none" };
4234
4237
  return ie.createElement("div", { className: u(l), style: v, key: `container-${l}` }, d.map((g, f) => {
4235
4238
  let { content: p, props: y } = g;
4236
- return ie.createElement(Ls, { ...y, isIn: o(y.toastId), style: { ...y.style, "--nth": f + 1, "--len": d.length }, key: `toast-${y.key}` }, p);
4239
+ return ie.createElement(Os, { ...y, isIn: o(y.toastId), style: { ...y.style, "--nth": f + 1, "--len": d.length }, key: `toast-${y.key}` }, p);
4237
4240
  }));
4238
4241
  }));
4239
4242
  });
4240
- _n.displayName = "ToastContainer", _n.defaultProps = { position: "top-right", transition: Os, autoClose: 5e3, closeButton: di, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
4241
- let Jn, rt = /* @__PURE__ */ new Map(), Kt = [], Es = 1;
4243
+ _n.displayName = "ToastContainer", _n.defaultProps = { position: "top-right", transition: Es, autoClose: 5e3, closeButton: di, pauseOnHover: !0, pauseOnFocusLoss: !0, closeOnClick: !0, draggable: !0, draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
4244
+ let Jn, rt = /* @__PURE__ */ new Map(), Kt = [], ks = 1;
4242
4245
  function pi() {
4243
- return "" + Es++;
4246
+ return "" + ks++;
4244
4247
  }
4245
- function ks(e) {
4248
+ function js(e) {
4246
4249
  return e && (ut(e.toastId) || Wt(e.toastId)) ? e.toastId : pi();
4247
4250
  }
4248
4251
  function Mt(e, t) {
4249
4252
  return rt.size > 0 ? Oe.emit(0, e, t) : Kt.push({ content: e, options: t }), t.toastId;
4250
4253
  }
4251
4254
  function rn(e, t) {
4252
- return { ...t, type: t && t.type || e, toastId: ks(t) };
4255
+ return { ...t, type: t && t.type || e, toastId: js(t) };
4253
4256
  }
4254
4257
  function Xt(e) {
4255
4258
  return (t, n) => Mt(t, rn(e, n));
@@ -4313,23 +4316,23 @@ function yt(e) {
4313
4316
  theme: "light"
4314
4317
  });
4315
4318
  }
4316
- let vr = "", Xe = "Playable", ze = null, fi = null;
4319
+ let vr = "", Xe = "Playable", Ee = null, fi = null;
4317
4320
  const br = async (e, t, n) => {
4318
4321
  Xe === "Playable" ? t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && await Ao(
4319
4322
  e,
4320
4323
  { iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
4321
- ze
4322
- ) : Xe === "Flex" ? t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && await xs(
4324
+ Ee
4325
+ ) : Xe === "Flex" ? t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && await Ks(
4323
4326
  {
4324
4327
  _id: e,
4325
4328
  iosLink: t == null ? void 0 : t.iosUrl,
4326
4329
  androidLink: t == null ? void 0 : t.googleUrl
4327
4330
  },
4328
- ze
4331
+ Ee
4329
4332
  ) : Xe === "Ready" && t && t.iosUrl !== "Loading..." && t.googleUrl !== "Loading..." && ((n == null ? void 0 : n.urlType) === "single" && (t.googleUrl = t.iosUrl), await Ao(
4330
4333
  e,
4331
4334
  { iosLink: t == null ? void 0 : t.iosUrl, androidLink: t == null ? void 0 : t.googleUrl },
4332
- ze
4335
+ Ee
4333
4336
  ));
4334
4337
  }, $t = async (e) => {
4335
4338
  let t = vr + "/" + e, n = e;
@@ -4339,21 +4342,21 @@ const br = async (e, t, n) => {
4339
4342
  }).catch((r) => {
4340
4343
  console.error("File error:", r);
4341
4344
  });
4342
- }, js = (e, t) => {
4345
+ }, zs = (e, t) => {
4343
4346
  let n = vr + "/" + e;
4344
4347
  Yt(n) ? yt("Link Copied") : t(n);
4345
4348
  };
4346
4349
  async function Ot(e, t, n, r = "download", o = !1, i = null) {
4347
4350
  return new Promise(async (a, A) => {
4348
4351
  let m = async (u) => {
4349
- r === "download" ? await $t(u) : r === "copy" && js(u, fi);
4352
+ r === "download" ? await $t(u) : r === "copy" && zs(u, fi);
4350
4353
  };
4351
4354
  try {
4352
4355
  await br(e, n, i);
4353
4356
  } catch (u) {
4354
4357
  console.log("updateUrls error", u);
4355
4358
  }
4356
- Xe === "Playable" ? Cs(ze, e, t, o, i).then(async (u) => {
4359
+ Xe === "Playable" ? Cs(Ee, e, t, o, i).then(async (u) => {
4357
4360
  let { url: l } = u;
4358
4361
  await m(l), a(u);
4359
4362
  }).catch((u) => {
@@ -4365,7 +4368,7 @@ async function Ot(e, t, n, r = "download", o = !1, i = null) {
4365
4368
  network: t,
4366
4369
  extras: i
4367
4370
  },
4368
- ze
4371
+ Ee
4369
4372
  ).then(async (u) => {
4370
4373
  if (u.message) {
4371
4374
  A(u);
@@ -4376,13 +4379,13 @@ async function Ot(e, t, n, r = "download", o = !1, i = null) {
4376
4379
  }).catch((u) => {
4377
4380
  let l = u.response.data.error.msg;
4378
4381
  A({ message: l });
4379
- }) : Xe === "Import" ? bs(ze, e, t).then(async (u) => {
4382
+ }) : Xe === "Import" ? bs(Ee, e, t).then(async (u) => {
4380
4383
  let l = u.url;
4381
4384
  await m(l), a(u);
4382
4385
  }).catch((u) => {
4383
4386
  let l = u.response.data.error.msg;
4384
4387
  A({ message: l });
4385
- }) : Xe === "Ready" && Is(ze, e, t, o, i).then(async (u) => {
4388
+ }) : Xe === "Ready" && Is(Ee, e, t, o, i).then(async (u) => {
4386
4389
  if (u.message) {
4387
4390
  A(u);
4388
4391
  return;
@@ -4395,9 +4398,9 @@ async function Ot(e, t, n, r = "download", o = !1, i = null) {
4395
4398
  });
4396
4399
  });
4397
4400
  }
4398
- async function zs(e, t, n, r = null) {
4401
+ async function Ys(e, t, n, r = null) {
4399
4402
  return new Promise(async (o, i) => {
4400
- await br(e, t, r), Xe === "Flex" ? ys(e, n, ze).then(async (a) => {
4403
+ await br(e, t, r), Xe === "Flex" ? ys(e, n, Ee).then(async (a) => {
4401
4404
  if (a.message) {
4402
4405
  i(a);
4403
4406
  return;
@@ -4406,7 +4409,7 @@ async function zs(e, t, n, r = null) {
4406
4409
  }).catch((a) => {
4407
4410
  let A = a.response.data.error.msg;
4408
4411
  i({ message: A });
4409
- }) : Xe === "Ready" ? ws(e, n, ze).then(async (a) => {
4412
+ }) : Xe === "Ready" ? ws(e, n, Ee).then(async (a) => {
4410
4413
  if (a.message) {
4411
4414
  i(a);
4412
4415
  return;
@@ -4416,7 +4419,7 @@ async function zs(e, t, n, r = null) {
4416
4419
  console.log("err", a);
4417
4420
  let A = a.response.data.error.msg;
4418
4421
  i({ message: A });
4419
- }) : Zs(e, n, ze).then(async (a) => {
4422
+ }) : Zs(e, n, Ee).then(async (a) => {
4420
4423
  await $t(a.url), o(a.url);
4421
4424
  }).catch((a) => {
4422
4425
  let A = a.response.data.error.msg;
@@ -4424,13 +4427,22 @@ async function zs(e, t, n, r = null) {
4424
4427
  });
4425
4428
  });
4426
4429
  }
4427
- function Ys(e, t, n, r) {
4428
- Xe = e, ze = t, fi = n, vr = r;
4430
+ function Js(e, t, n, r) {
4431
+ Xe = e, Ee = t, fi = n, vr = r;
4432
+ }
4433
+ async function Ns(e) {
4434
+ return await xs(
4435
+ {
4436
+ versionId: e,
4437
+ checkExistance: !0
4438
+ },
4439
+ Ee
4440
+ );
4429
4441
  }
4430
4442
  async function $n(e, t) {
4431
- return (await ye.post(t + "/findPlayable", { _id: e })).data;
4443
+ return (await qe.post(t + "/findPlayable", { _id: e })).data;
4432
4444
  }
4433
- const Js = ({
4445
+ const Rs = ({
4434
4446
  versionId: e,
4435
4447
  playableId: t,
4436
4448
  typeOfProduct: n,
@@ -4604,7 +4616,7 @@ const Js = ({
4604
4616
  ]
4605
4617
  }
4606
4618
  );
4607
- }, Ns = ({
4619
+ }, Ds = ({
4608
4620
  versionName: e,
4609
4621
  versionId: t,
4610
4622
  playableId: n,
@@ -4619,7 +4631,7 @@ const Js = ({
4619
4631
  urlType: d
4620
4632
  }) => {
4621
4633
  const [v, g] = T(window.innerWidth);
4622
- console.log("iosLink", u), Ce(() => {
4634
+ console.log("iosLink", u), ve(() => {
4623
4635
  console.log("re add event listener");
4624
4636
  function p(y) {
4625
4637
  console.log(y), y.data === "cta" && (console.log("Received 'cta' message from iframe"), u && window.open(u, "_blank"));
@@ -4627,7 +4639,7 @@ const Js = ({
4627
4639
  return window.addEventListener("message", p, !1), () => {
4628
4640
  window.removeEventListener("message", p);
4629
4641
  };
4630
- }, [u, l]), Ce(() => {
4642
+ }, [u, l]), ve(() => {
4631
4643
  const p = () => {
4632
4644
  g(window.innerWidth);
4633
4645
  };
@@ -4653,7 +4665,7 @@ const Js = ({
4653
4665
  /* @__PURE__ */ s.jsx(oa, { iframeUrl: i }),
4654
4666
  /* @__PURE__ */ s.jsx(ia, { name: f }),
4655
4667
  /* @__PURE__ */ s.jsx(
4656
- Js,
4668
+ Rs,
4657
4669
  {
4658
4670
  versionId: t,
4659
4671
  playableId: n,
@@ -4671,10 +4683,10 @@ const Js = ({
4671
4683
  }
4672
4684
  );
4673
4685
  };
4674
- var qe = /* @__PURE__ */ ((e) => (e.Flex = "#7101FF", e.Playable = "#F9830B", e.Import = "#00a3ff", e.Ready = "#0060A5", e))(qe || {});
4686
+ var ye = /* @__PURE__ */ ((e) => (e.Flex = "#7101FF", e.Playable = "#F9830B", e.Import = "#00a3ff", e.Ready = "#0060A5", e))(ye || {});
4675
4687
  const hi = ({ checked: e, typeOfProduct: t, id: n }) => {
4676
4688
  const [r, o] = T(e);
4677
- Ce(() => {
4689
+ ve(() => {
4678
4690
  o(e);
4679
4691
  }, [e]);
4680
4692
  const i = () => {
@@ -4740,8 +4752,8 @@ const hi = ({ checked: e, typeOfProduct: t, id: n }) => {
4740
4752
  xmlns: "http://www.w3.org/2000/svg",
4741
4753
  style: { height: "14px", width: "14px" },
4742
4754
  viewBox: "0 0 20 20",
4743
- fill: qe[t],
4744
- stroke: qe[t],
4755
+ fill: ye[t],
4756
+ stroke: ye[t],
4745
4757
  strokeWidth: "1",
4746
4758
  children: /* @__PURE__ */ s.jsx(
4747
4759
  "path",
@@ -4762,7 +4774,7 @@ const hi = ({ checked: e, typeOfProduct: t, id: n }) => {
4762
4774
  )
4763
4775
  }
4764
4776
  );
4765
- }, Rs = ({
4777
+ }, Gs = ({
4766
4778
  typeOfProduct: e,
4767
4779
  allNetworksSelected: t,
4768
4780
  setAllNetworksSelected: n
@@ -4790,7 +4802,7 @@ const hi = ({ checked: e, typeOfProduct: t, id: n }) => {
4790
4802
  "span",
4791
4803
  {
4792
4804
  style: {
4793
- color: qe[e]
4805
+ color: ye[e]
4794
4806
  },
4795
4807
  children: "Select Network"
4796
4808
  }
@@ -4837,18 +4849,18 @@ const hi = ({ checked: e, typeOfProduct: t, id: n }) => {
4837
4849
  ]
4838
4850
  }
4839
4851
  );
4840
- async function Ds(e, t) {
4841
- return (await ye.post(t + "/buyRequest", {
4852
+ async function Ts(e, t) {
4853
+ return (await qe.post(t + "/buyRequest", {
4842
4854
  requestType: e
4843
4855
  })).data;
4844
4856
  }
4845
- const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4857
+ const Hs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
4846
4858
  /* @__PURE__ */ s.jsxs("g", { "clip-path": "url(#clip0_518_12094)", children: [
4847
4859
  /* @__PURE__ */ s.jsx("path", { d: "M4.50977 11.99L19.4898 11.99", stroke: "#7101FF", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" }),
4848
4860
  /* @__PURE__ */ s.jsx("path", { d: "M13.5068 17.977L19.4828 12L13.5068 6.02299", stroke: "#7101FF", "stroke-width": "1.5", "stroke-linecap": "round", "stroke-linejoin": "round" })
4849
4861
  ] }),
4850
4862
  /* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx("clipPath", { id: "clip0_518_12094", children: /* @__PURE__ */ s.jsx("rect", { width: "24", height: "24", fill: "white", transform: "translate(0 24) rotate(-90)" }) }) })
4851
- ] }), Ts = ({ creditDownload: e, api: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4863
+ ] }), Xs = ({ creditDownload: e, api: t }) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
4852
4864
  /* @__PURE__ */ s.jsx("div", { style: { marginTop: "0.5rem", paddingLeft: "1.5rem", paddingRight: "1.5rem", fontWeight: 100 }, children: "If you continue to export, you will spend 1 credit." }),
4853
4865
  /* @__PURE__ */ s.jsxs("div", { style: { display: "flex", alignItems: "center", width: "100%", paddingLeft: "1.5rem", paddingRight: "1.5rem", paddingTop: "0.25rem", fontSize: "12px", fontWeight: 100 }, children: [
4854
4866
  "You have",
@@ -4860,12 +4872,12 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
4860
4872
  "button",
4861
4873
  {
4862
4874
  style: { marginLeft: "0.5rem", display: "flex", alignItems: "center", fontSize: "12px", fontWeight: "bold", textDecoration: "underline", color: "#yourColorHere" },
4863
- onClick: () => Ds("Flex Credit", t).then(
4875
+ onClick: () => Ts("Flex Credit", t).then(
4864
4876
  (n) => yt("You will be contacted regarding your request.")
4865
4877
  ),
4866
4878
  children: [
4867
4879
  "Get more",
4868
- /* @__PURE__ */ s.jsx(Gs, {})
4880
+ /* @__PURE__ */ s.jsx(Hs, {})
4869
4881
  ]
4870
4882
  }
4871
4883
  )
@@ -4935,7 +4947,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
4935
4947
  // pl-2
4936
4948
  color: "#000000",
4937
4949
  // placeholder:text-black
4938
- borderColor: qe[e],
4950
+ borderColor: ye[e],
4939
4951
  marginRight: "2rem"
4940
4952
  },
4941
4953
  type: "text",
@@ -5006,7 +5018,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5006
5018
  // pl-2
5007
5019
  color: "#000000",
5008
5020
  // placeholder:text-black
5009
- borderColor: qe[e],
5021
+ borderColor: ye[e],
5010
5022
  marginRight: "2rem"
5011
5023
  //typeOfProduct === "Flex" ? ColorStyle.Flex : ColorStyle.Playable,
5012
5024
  },
@@ -5021,7 +5033,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5021
5033
  }
5022
5034
  )
5023
5035
  ] });
5024
- }, Hs = ({
5036
+ }, Qs = ({
5025
5037
  typeOfProduct: e,
5026
5038
  urls: t,
5027
5039
  handleIosChange: n,
@@ -5083,7 +5095,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5083
5095
  // pl-2
5084
5096
  color: "#000000",
5085
5097
  // placeholder:text-black
5086
- borderColor: qe[e],
5098
+ borderColor: ye[e],
5087
5099
  marginRight: "2rem"
5088
5100
  },
5089
5101
  type: "text",
@@ -5096,7 +5108,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5096
5108
  ]
5097
5109
  }
5098
5110
  ) });
5099
- }, Xs = ({
5111
+ }, Ps = ({
5100
5112
  typeOfProduct: e,
5101
5113
  fileSize: t,
5102
5114
  urls: n,
@@ -5167,7 +5179,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5167
5179
  // pl-2
5168
5180
  color: "#000000",
5169
5181
  // placeholder:text-black
5170
- borderColor: qe[e]
5182
+ borderColor: ye[e]
5171
5183
  //typeOfProduct === "Flex" ? ColorStyle.Flex : ColorStyle.Playable,
5172
5184
  },
5173
5185
  type: "checkbox",
@@ -5306,7 +5318,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5306
5318
  }
5307
5319
  ),
5308
5320
  d === "single" && /* @__PURE__ */ s.jsx(
5309
- Hs,
5321
+ Qs,
5310
5322
  {
5311
5323
  typeOfProduct: e,
5312
5324
  urls: n,
@@ -5325,16 +5337,16 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5325
5337
  disabled: i
5326
5338
  }
5327
5339
  ) }),
5328
- (A == null ? void 0 : A.willSpendCredit) && /* @__PURE__ */ s.jsx(Ts, { creditDownload: A, api: a })
5340
+ (A == null ? void 0 : A.willSpendCredit) && /* @__PURE__ */ s.jsx(Xs, { creditDownload: A, api: a })
5329
5341
  ]
5330
5342
  }
5331
5343
  ) });
5332
- }, Qs = ({ typeOfProduct: e, title: t, fileSize: n }) => /* @__PURE__ */ s.jsxs("div", { style: { fontSize: "1.5rem", fontWeight: "bold", paddingTop: "20px" }, children: [
5344
+ }, Vs = ({ typeOfProduct: e, title: t, fileSize: n }) => /* @__PURE__ */ s.jsxs("div", { style: { fontSize: "1.5rem", fontWeight: "bold", paddingTop: "20px" }, children: [
5333
5345
  /* @__PURE__ */ s.jsx(
5334
5346
  "span",
5335
5347
  {
5336
5348
  style: {
5337
- color: qe[e]
5349
+ color: ye[e]
5338
5350
  },
5339
5351
  children: t
5340
5352
  }
@@ -5357,7 +5369,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5357
5369
  ]
5358
5370
  }
5359
5371
  )
5360
- ] }), Ps = ({
5372
+ ] }), Bs = ({
5361
5373
  typeOfProduct: e,
5362
5374
  fileSize: t,
5363
5375
  urls: n,
@@ -5393,9 +5405,9 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5393
5405
  // gap-1
5394
5406
  },
5395
5407
  children: [
5396
- /* @__PURE__ */ s.jsx(Qs, { typeOfProduct: e, title: r, fileSize: t }),
5408
+ /* @__PURE__ */ s.jsx(Vs, { typeOfProduct: e, title: r, fileSize: t }),
5397
5409
  /* @__PURE__ */ s.jsx(
5398
- Xs,
5410
+ Ps,
5399
5411
  {
5400
5412
  typeOfProduct: e,
5401
5413
  fileSize: t,
@@ -5413,7 +5425,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5413
5425
  }
5414
5426
  ),
5415
5427
  /* @__PURE__ */ s.jsx(
5416
- Rs,
5428
+ Gs,
5417
5429
  {
5418
5430
  typeOfProduct: e,
5419
5431
  allNetworksSelected: f,
@@ -5457,7 +5469,7 @@ const Gs = () => /* @__PURE__ */ s.jsxs("svg", { width: "24", height: "24", view
5457
5469
  children: e
5458
5470
  }
5459
5471
  );
5460
- const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5472
+ const Us = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5461
5473
  "div",
5462
5474
  {
5463
5475
  style: {
@@ -5485,7 +5497,7 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5485
5497
  width: "8px",
5486
5498
  height: "8px",
5487
5499
  borderRadius: "50%",
5488
- backgroundColor: qe[e]
5500
+ backgroundColor: ye[e]
5489
5501
  }
5490
5502
  }
5491
5503
  ),
@@ -5498,7 +5510,7 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5498
5510
  width: "8px",
5499
5511
  height: "8px",
5500
5512
  borderRadius: "50%",
5501
- backgroundColor: qe[e]
5513
+ backgroundColor: ye[e]
5502
5514
  }
5503
5515
  }
5504
5516
  ),
@@ -5511,7 +5523,7 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5511
5523
  width: "8px",
5512
5524
  height: "8px",
5513
5525
  borderRadius: "50%",
5514
- backgroundColor: qe[e]
5526
+ backgroundColor: ye[e]
5515
5527
  }
5516
5528
  }
5517
5529
  ),
@@ -5524,7 +5536,7 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5524
5536
  width: "8px",
5525
5537
  height: "8px",
5526
5538
  borderRadius: "50%",
5527
- backgroundColor: qe[e]
5539
+ backgroundColor: ye[e]
5528
5540
  }
5529
5541
  }
5530
5542
  )
@@ -5584,7 +5596,7 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5584
5596
  )
5585
5597
  ]
5586
5598
  }
5587
- ), Bs = ({
5599
+ ), Fs = ({
5588
5600
  onClose: e,
5589
5601
  iosLink: t,
5590
5602
  googleLink: n,
@@ -5809,7 +5821,7 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
5809
5821
  )
5810
5822
  ]
5811
5823
  }
5812
- ), Us = ({
5824
+ ), _s = ({
5813
5825
  onClose: e,
5814
5826
  handleDownload: t,
5815
5827
  handleDownloadMolocoTest: n,
@@ -6034,14 +6046,14 @@ const Vs = ({ typeOfProduct: e }) => /* @__PURE__ */ s.jsx(
6034
6046
  ]
6035
6047
  }
6036
6048
  );
6037
- async function Fs(e, t, n, r) {
6038
- return (await ye.post(e + "/createMolocoTestPage", {
6049
+ async function $s(e, t, n, r) {
6050
+ return (await qe.post(e + "/createMolocoTestPage", {
6039
6051
  _id: t,
6040
6052
  network: n,
6041
6053
  typeOfProduct: r
6042
6054
  })).data;
6043
6055
  }
6044
- const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6056
+ const el = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6045
6057
  "svg",
6046
6058
  {
6047
6059
  xmlns: "http://www.w3.org/2000/svg",
@@ -6058,8 +6070,14 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6058
6070
  /* @__PURE__ */ s.jsx("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })
6059
6071
  ]
6060
6072
  }
6061
- ), $s = ({ onClose: e, versionId: t, urls: n, handleDownloadError: r }) => {
6062
- const [o, i] = T(""), [a, A] = T(!1), m = async () => {
6073
+ ), tl = ({ onClose: e, versionId: t, urls: n, handleDownloadError: r }) => {
6074
+ const [o, i] = T(""), [a, A] = T(!1);
6075
+ ve(() => {
6076
+ o || Ns(t).then((u) => {
6077
+ console.log(u), u.exist && i(u.uploadPath);
6078
+ });
6079
+ }, [o]);
6080
+ const m = async () => {
6063
6081
  A(!0), Ot(t, "cdn", n, null, !1, {}).then((u) => {
6064
6082
  const l = u.url.replace(
6065
6083
  "playablefactory.b-cdn.net",
@@ -6180,7 +6198,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6180
6198
  alignItems: "center",
6181
6199
  flexShrink: 0
6182
6200
  },
6183
- children: /* @__PURE__ */ s.jsx(_s, {})
6201
+ children: /* @__PURE__ */ s.jsx(el, {})
6184
6202
  }
6185
6203
  ),
6186
6204
  /* @__PURE__ */ s.jsx(
@@ -6241,7 +6259,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6241
6259
  ]
6242
6260
  }
6243
6261
  );
6244
- }, el = ({
6262
+ }, nl = ({
6245
6263
  id: e,
6246
6264
  imageUrl: t,
6247
6265
  handleCardClick: n,
@@ -6337,7 +6355,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6337
6355
  });
6338
6356
  }, le = async () => {
6339
6357
  x(!0);
6340
- const ee = await Fs(l, u, o, m);
6358
+ const ee = await $s(l, u, o, m);
6341
6359
  let ce = `${v}/${ee == null ? void 0 : ee.url}`;
6342
6360
  Yt(ce) ? (yt("Link Copied"), x(!1)) : L(ce);
6343
6361
  }, W = o === "moloco" || o === "molocoV2";
@@ -6351,7 +6369,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6351
6369
  flexDirection: "column",
6352
6370
  gap: "20px",
6353
6371
  padding: "16px",
6354
- borderColor: r ? qe[m] : "lightgray",
6372
+ borderColor: r ? ye[m] : "lightgray",
6355
6373
  borderWidth: "1px",
6356
6374
  borderStyle: "solid",
6357
6375
  backgroundColor: "white",
@@ -6395,7 +6413,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6395
6413
  alignItems: "center",
6396
6414
  marginRight: "2rem"
6397
6415
  },
6398
- children: /* @__PURE__ */ s.jsx(Vs, { typeOfProduct: m })
6416
+ children: /* @__PURE__ */ s.jsx(Us, { typeOfProduct: m })
6399
6417
  }
6400
6418
  ) : i.map((ee) => /* @__PURE__ */ s.jsx(
6401
6419
  "div",
@@ -6604,7 +6622,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6604
6622
  }
6605
6623
  ),
6606
6624
  _ && /* @__PURE__ */ s.jsx(
6607
- Bs,
6625
+ Fs,
6608
6626
  {
6609
6627
  onClose: () => {
6610
6628
  K(!1), p(!1);
@@ -6623,7 +6641,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6623
6641
  }
6624
6642
  ),
6625
6643
  Y && M.customer === "playableFactoryInternal" && /* @__PURE__ */ s.jsx(
6626
- Us,
6644
+ _s,
6627
6645
  {
6628
6646
  onClose: () => {
6629
6647
  J(!1);
@@ -6636,7 +6654,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6636
6654
  }
6637
6655
  ),
6638
6656
  h && /* @__PURE__ */ s.jsx(
6639
- $s,
6657
+ tl,
6640
6658
  {
6641
6659
  onClose: () => {
6642
6660
  j(!1);
@@ -6898,7 +6916,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6898
6916
  name: "cdn",
6899
6917
  imageSrc: "https://home.playablefactory.com/cdn.png"
6900
6918
  }
6901
- ], tl = ({ children: e, typeOfProduct: t, className: n, onClick: r }) => {
6919
+ ], rl = ({ children: e, typeOfProduct: t, className: n, onClick: r }) => {
6902
6920
  const o = {
6903
6921
  display: "flex",
6904
6922
  flexDirection: "column",
@@ -6907,13 +6925,13 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6907
6925
  padding: "0.5rem",
6908
6926
  width: "12rem",
6909
6927
  height: "2.5rem",
6910
- backgroundColor: qe[t],
6928
+ backgroundColor: ye[t],
6911
6929
  color: "white",
6912
6930
  fontSize: "0.875rem",
6913
6931
  borderRadius: "0.875rem"
6914
6932
  };
6915
6933
  return /* @__PURE__ */ s.jsx("button", { onClick: r, className: n, style: o, children: e });
6916
- }, nl = ({
6934
+ }, ol = ({
6917
6935
  networksVersionTotalSize: e,
6918
6936
  typeOfProduct: t,
6919
6937
  onClickMultiDownload: n,
@@ -6938,11 +6956,11 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6938
6956
  borderRadius: "0.875rem",
6939
6957
  alignItems: "center",
6940
6958
  justifyContent: "center",
6941
- backgroundColor: qe[t]
6959
+ backgroundColor: ye[t]
6942
6960
  },
6943
6961
  children: /* @__PURE__ */ s.jsx(St, {})
6944
6962
  }
6945
- ) : /* @__PURE__ */ s.jsx(tl, { typeOfProduct: t, onClick: n, children: /* @__PURE__ */ s.jsx(
6963
+ ) : /* @__PURE__ */ s.jsx(rl, { typeOfProduct: t, onClick: n, children: /* @__PURE__ */ s.jsx(
6946
6964
  "span",
6947
6965
  {
6948
6966
  style: {
@@ -6954,7 +6972,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6954
6972
  }
6955
6973
  ) })
6956
6974
  }
6957
- ), rl = ({
6975
+ ), il = ({
6958
6976
  playable: e,
6959
6977
  creditDownload: t,
6960
6978
  visible: n,
@@ -6984,7 +7002,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6984
7002
  Qt.filter((z) => [...S].includes(z.id)).map((z) => z.name);
6985
7003
  }, R = async () => new Promise(async (Z, S) => {
6986
7004
  const z = Qt.filter((O) => [...k].includes(O.id)).map((O) => O.name);
6987
- ae(!0), zs(r, u, z, { urlType: p }).then((O) => {
7005
+ ae(!0), Ys(r, u, z, { urlType: p }).then((O) => {
6988
7006
  ae(!1), Z(O);
6989
7007
  }).catch((O) => {
6990
7008
  console.log("get multi download err"), ae(!1), A(O.message, O), S(O);
@@ -6992,7 +7010,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
6992
7010
  }), C = async () => {
6993
7011
  u.iosUrl, u.googleUrl, t && t.willSpendCredit ? (_(!0), Y("download"), h(!0)) : (h(!1), await R());
6994
7012
  };
6995
- return Ce(() => {
7013
+ return ve(() => {
6996
7014
  const Z = Qt.filter((S) => {
6997
7015
  var z;
6998
7016
  return t && ((z = t == null ? void 0 : t.networks) == null ? void 0 : z.length) > 0 ? t == null ? void 0 : t.networks.includes(S.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((O) => O.status === "paid").some((O) => O.name === S.name) : e == null ? void 0 : e.networks.includes(S.name);
@@ -7031,7 +7049,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
7031
7049
  S = S.replace("web.png", z);
7032
7050
  }
7033
7051
  return /* @__PURE__ */ s.jsx(
7034
- el,
7052
+ nl,
7035
7053
  {
7036
7054
  id: Z.id,
7037
7055
  name: Z.name,
@@ -7078,7 +7096,7 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
7078
7096
  paddingTop: "5px"
7079
7097
  },
7080
7098
  children: /* @__PURE__ */ s.jsx(
7081
- nl,
7099
+ ol,
7082
7100
  {
7083
7101
  onClickMultiDownload: C,
7084
7102
  networksVersionTotalSize: F,
@@ -7105,30 +7123,30 @@ const _s = ({ title: e, titleId: t }) => /* @__PURE__ */ s.jsxs(
7105
7123
  )
7106
7124
  ] });
7107
7125
  };
7108
- async function ol(e, t) {
7109
- return (await ye.post(t + "/getFlexDownloadCount", e)).data;
7126
+ async function al(e, t) {
7127
+ return (await qe.post(t + "/getFlexDownloadCount", e)).data;
7110
7128
  }
7111
- async function il(e, t) {
7129
+ async function Al(e, t) {
7112
7130
  try {
7113
- return (await ye.post(t + "/findGame", { _id: e })).data;
7131
+ return (await qe.post(t + "/findGame", { _id: e })).data;
7114
7132
  } catch {
7115
7133
  }
7116
7134
  }
7117
- async function al(e, t) {
7118
- return (await ye.post(t + "/getPlayableVersionMarketLink", {
7135
+ async function sl(e, t) {
7136
+ return (await qe.post(t + "/getPlayableVersionMarketLink", {
7119
7137
  _id: e
7120
7138
  })).data;
7121
7139
  }
7122
- async function Al(e, t) {
7123
- return (await ye.post(t + "/getFlexData", { _id: e })).data;
7140
+ async function ll(e, t) {
7141
+ return (await qe.post(t + "/getFlexData", { _id: e })).data;
7124
7142
  }
7125
- async function sl(e, t) {
7126
- return (await ye.post(t + "/getImportedPlayable", { id: e })).data;
7143
+ async function ul(e, t) {
7144
+ return (await qe.post(t + "/getImportedPlayable", { id: e })).data;
7127
7145
  }
7128
- async function ll(e, t) {
7129
- return (await ye.post(t + "/getReadyDownloadCount", e)).data;
7146
+ async function cl(e, t) {
7147
+ return (await qe.post(t + "/getReadyDownloadCount", e)).data;
7130
7148
  }
7131
- const ul = [
7149
+ const ml = [
7132
7150
  "adcolony",
7133
7151
  "ironsource",
7134
7152
  "applovin",
@@ -7160,7 +7178,7 @@ const ul = [
7160
7178
  "cdn"
7161
7179
  ];
7162
7180
  let po = null;
7163
- const cl = ({
7181
+ const dl = ({
7164
7182
  playableId: e,
7165
7183
  versionId: t,
7166
7184
  gameId: n,
@@ -7184,8 +7202,8 @@ const cl = ({
7184
7202
  const [M, L] = T(null), [b, G] = T(null), [X, F] = T(null), [ue, te] = T(!1), [ae, Q] = T(!0), [_, K] = T(window.innerWidth), [Y, J] = T(!1);
7185
7203
  console.log("download modal version: 6.0.22");
7186
7204
  const [h, j] = T(!1);
7187
- Ce(() => {
7188
- }, [h]), Ce(() => {
7205
+ ve(() => {
7206
+ }, [h]), ve(() => {
7189
7207
  const x = () => {
7190
7208
  K(window.innerWidth);
7191
7209
  };
@@ -7196,7 +7214,7 @@ const cl = ({
7196
7214
  const R = async () => {
7197
7215
  te(!0);
7198
7216
  const x = await $n(e, i);
7199
- return x != null && x.networks || (x.networks = ul), L(x), x;
7217
+ return x != null && x.networks || (x.networks = ml), L(x), x;
7200
7218
  }, C = (x, N) => {
7201
7219
  clearTimeout(po), po = setTimeout(() => {
7202
7220
  console.log("Update URLS:"), br(t, { iosUrl: x, googleUrl: N }, { urlType: I });
@@ -7211,7 +7229,7 @@ const cl = ({
7211
7229
  try {
7212
7230
  let B;
7213
7231
  if (r === "Playable" || r === "Ready") {
7214
- const le = await al(t, i);
7232
+ const le = await sl(t, i);
7215
7233
  if (le) {
7216
7234
  console.log("version", le), p(le.iosLink), y(le.androidLink), te(!1);
7217
7235
  return;
@@ -7235,7 +7253,7 @@ const cl = ({
7235
7253
  } else
7236
7254
  y(""), p(""), te(!1);
7237
7255
  } else if (r === "Flex") {
7238
- const le = await Al(t, i);
7256
+ const le = await ll(t, i);
7239
7257
  if (le.googleUrl || le.iosUrl) {
7240
7258
  y(le.googleUrl), p(le.iosUrl), te(!1);
7241
7259
  return;
@@ -7248,15 +7266,15 @@ const cl = ({
7248
7266
  }, O = async () => {
7249
7267
  te(!0);
7250
7268
  let x;
7251
- r === "Flex" ? x = await ol({ _id: t }, i) : r === "Ready" && (x = await ll({ _id: t }, i)), x && (["admin", "pm", "tester", "sales"].includes(a.role) ? F({
7269
+ r === "Flex" ? x = await al({ _id: t }, i) : r === "Ready" && (x = await cl({ _id: t }, i)), x && (["admin", "pm", "tester", "sales"].includes(a.role) ? F({
7252
7270
  ...x,
7253
7271
  networks: mo
7254
7272
  }) : r === "Ready" && !x.canDownload ? F({
7255
7273
  ...x,
7256
7274
  networks: mo
7257
7275
  }) : F(x)), te(!1);
7258
- }, $ = async () => await il(n, i);
7259
- return Ce(() => {
7276
+ }, $ = async () => await Al(n, i);
7277
+ return ve(() => {
7260
7278
  o || (L(null), G(null), F(null), d(null)), o && (r === "Playable" ? (R().then((x) => {
7261
7279
  z(null, x);
7262
7280
  }), Q(!1)) : r === "Ready" ? O().then((x) => {
@@ -7267,7 +7285,7 @@ const cl = ({
7267
7285
  Q(!1), $().then((N) => {
7268
7286
  o && (z(N, null), Q(!1), G(N));
7269
7287
  });
7270
- }) : r === "Import" && sl(t, i).then((x) => {
7288
+ }) : r === "Import" && ul(t, i).then((x) => {
7271
7289
  console.log(x), L(x), p(x.iosUrl || ""), y(x.googleUrl || ""), te(!1), Q(!1);
7272
7290
  }));
7273
7291
  }, [n, e, t, o]), /* @__PURE__ */ s.jsxs(
@@ -7285,7 +7303,7 @@ const cl = ({
7285
7303
  },
7286
7304
  children: [
7287
7305
  /* @__PURE__ */ s.jsx(
7288
- Ps,
7306
+ Bs,
7289
7307
  {
7290
7308
  title: A,
7291
7309
  typeOfProduct: r,
@@ -7318,7 +7336,7 @@ const cl = ({
7318
7336
  children: /* @__PURE__ */ s.jsx(St, { isNetworksLoading: !0 })
7319
7337
  }
7320
7338
  ) : (M || X) && (r === "Flex" ? b : !0) && !ue && g !== "Loading..." && f !== "Loading..." && /* @__PURE__ */ s.jsx(
7321
- rl,
7339
+ il,
7322
7340
  {
7323
7341
  playable: M,
7324
7342
  creditDownload: X,
@@ -7406,24 +7424,24 @@ var qi = nr.exports;
7406
7424
  Object.defineProperty(De, "__esModule", {
7407
7425
  value: !0
7408
7426
  });
7409
- De.resetState = fl;
7410
- De.log = hl;
7427
+ De.resetState = gl;
7428
+ De.log = ql;
7411
7429
  De.handleBlur = Et;
7412
7430
  De.handleFocus = kt;
7413
- De.markForFocusLater = gl;
7414
- De.returnFocus = ql;
7415
- De.popWithoutFocus = yl;
7416
- De.setupScopedFocus = vl;
7417
- De.teardownScopedFocus = bl;
7418
- var ml = qi, dl = pl(ml);
7419
- function pl(e) {
7431
+ De.markForFocusLater = yl;
7432
+ De.returnFocus = vl;
7433
+ De.popWithoutFocus = bl;
7434
+ De.setupScopedFocus = Cl;
7435
+ De.teardownScopedFocus = Zl;
7436
+ var pl = qi, fl = hl(pl);
7437
+ function hl(e) {
7420
7438
  return e && e.__esModule ? e : { default: e };
7421
7439
  }
7422
7440
  var mt = [], ft = null, rr = !1;
7423
- function fl() {
7441
+ function gl() {
7424
7442
  mt = [];
7425
7443
  }
7426
- function hl() {
7444
+ function ql() {
7427
7445
  process.env.NODE_ENV !== "production" && (console.log("focusManager ----------"), mt.forEach(function(e) {
7428
7446
  var t = e || {};
7429
7447
  console.log(t.nodeName, t.className, t.id);
@@ -7438,16 +7456,16 @@ function kt() {
7438
7456
  return;
7439
7457
  setTimeout(function() {
7440
7458
  if (!ft.contains(document.activeElement)) {
7441
- var e = (0, dl.default)(ft)[0] || ft;
7459
+ var e = (0, fl.default)(ft)[0] || ft;
7442
7460
  e.focus();
7443
7461
  }
7444
7462
  }, 0);
7445
7463
  }
7446
7464
  }
7447
- function gl() {
7465
+ function yl() {
7448
7466
  mt.push(document.activeElement);
7449
7467
  }
7450
- function ql() {
7468
+ function vl() {
7451
7469
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = null;
7452
7470
  try {
7453
7471
  mt.length !== 0 && (t = mt.pop(), t.focus({ preventScroll: e }));
@@ -7456,13 +7474,13 @@ function ql() {
7456
7474
  console.warn(["You tried to return focus to", t, "but it is not in the DOM anymore"].join(" "));
7457
7475
  }
7458
7476
  }
7459
- function yl() {
7477
+ function bl() {
7460
7478
  mt.length > 0 && mt.pop();
7461
7479
  }
7462
- function vl(e) {
7480
+ function Cl(e) {
7463
7481
  ft = e, window.addEventListener ? (window.addEventListener("blur", Et, !1), document.addEventListener("focus", kt, !0)) : (window.attachEvent("onBlur", Et), document.attachEvent("onFocus", kt));
7464
7482
  }
7465
- function bl() {
7483
+ function Zl() {
7466
7484
  ft = null, window.addEventListener ? (window.removeEventListener("blur", Et), document.removeEventListener("focus", kt)) : (window.detachEvent("onBlur", Et), document.detachEvent("onFocus", kt));
7467
7485
  }
7468
7486
  var or = { exports: {} };
@@ -7506,10 +7524,10 @@ var or = { exports: {} };
7506
7524
  }
7507
7525
  e.exports = t.default;
7508
7526
  })(or, or.exports);
7509
- var Cl = or.exports, Ge = {}, Zl = process.env.NODE_ENV !== "production", yi = function() {
7527
+ var Il = or.exports, Ge = {}, wl = process.env.NODE_ENV !== "production", yi = function() {
7510
7528
  };
7511
- if (Zl) {
7512
- var Il = function(t, n) {
7529
+ if (wl) {
7530
+ var xl = function(t, n) {
7513
7531
  var r = arguments.length;
7514
7532
  n = new Array(r > 1 ? r - 1 : 0);
7515
7533
  for (var o = 1; o < r; o++)
@@ -7532,10 +7550,10 @@ if (Zl) {
7532
7550
  throw new Error(
7533
7551
  "`warning(condition, format, ...args)` requires a warning message argument"
7534
7552
  );
7535
- e || Il.apply(null, [t].concat(n));
7553
+ e || xl.apply(null, [t].concat(n));
7536
7554
  };
7537
7555
  }
7538
- var wl = yi, Ne = {}, vi = { exports: {} };
7556
+ var Kl = yi, Ne = {}, vi = { exports: {} };
7539
7557
  /*!
7540
7558
  Copyright (c) 2015 Jed Watson.
7541
7559
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -7552,44 +7570,44 @@ var wl = yi, Ne = {}, vi = { exports: {} };
7552
7570
  e.exports ? e.exports = n : window.ExecutionEnvironment = n;
7553
7571
  })();
7554
7572
  })(vi);
7555
- var xl = vi.exports;
7573
+ var Wl = vi.exports;
7556
7574
  Object.defineProperty(Ne, "__esModule", {
7557
7575
  value: !0
7558
7576
  });
7559
7577
  Ne.canUseDOM = Ne.SafeNodeList = Ne.SafeHTMLCollection = void 0;
7560
- var Kl = xl, Wl = Ml(Kl);
7561
- function Ml(e) {
7578
+ var Ml = Wl, Sl = Ll(Ml);
7579
+ function Ll(e) {
7562
7580
  return e && e.__esModule ? e : { default: e };
7563
7581
  }
7564
- var yn = Wl.default, Sl = yn.canUseDOM ? window.HTMLElement : {};
7582
+ var yn = Sl.default, Ol = yn.canUseDOM ? window.HTMLElement : {};
7565
7583
  Ne.SafeHTMLCollection = yn.canUseDOM ? window.HTMLCollection : {};
7566
7584
  Ne.SafeNodeList = yn.canUseDOM ? window.NodeList : {};
7567
7585
  Ne.canUseDOM = yn.canUseDOM;
7568
- Ne.default = Sl;
7586
+ Ne.default = Ol;
7569
7587
  Object.defineProperty(Ge, "__esModule", {
7570
7588
  value: !0
7571
7589
  });
7572
- Ge.resetState = jl;
7573
- Ge.log = zl;
7590
+ Ge.resetState = Yl;
7591
+ Ge.log = Jl;
7574
7592
  Ge.assertNodeList = bi;
7575
- Ge.setElement = Yl;
7593
+ Ge.setElement = Nl;
7576
7594
  Ge.validateElement = Cr;
7577
- Ge.hide = Jl;
7578
- Ge.show = Nl;
7579
- Ge.documentNotReadyOrSSRTesting = Rl;
7580
- var Ll = wl, Ol = kl(Ll), El = Ne;
7581
- function kl(e) {
7595
+ Ge.hide = Rl;
7596
+ Ge.show = Dl;
7597
+ Ge.documentNotReadyOrSSRTesting = Gl;
7598
+ var El = Kl, kl = zl(El), jl = Ne;
7599
+ function zl(e) {
7582
7600
  return e && e.__esModule ? e : { default: e };
7583
7601
  }
7584
7602
  var Ke = null;
7585
- function jl() {
7603
+ function Yl() {
7586
7604
  Ke && (Ke.removeAttribute ? Ke.removeAttribute("aria-hidden") : Ke.length != null ? Ke.forEach(function(e) {
7587
7605
  return e.removeAttribute("aria-hidden");
7588
7606
  }) : document.querySelectorAll(Ke).forEach(function(e) {
7589
7607
  return e.removeAttribute("aria-hidden");
7590
7608
  })), Ke = null;
7591
7609
  }
7592
- function zl() {
7610
+ function Jl() {
7593
7611
  if (process.env.NODE_ENV !== "production") {
7594
7612
  var e = Ke || {};
7595
7613
  console.log("ariaAppHider ----------"), console.log(e.nodeName, e.className, e.id), console.log("end ariaAppHider ----------");
@@ -7599,9 +7617,9 @@ function bi(e, t) {
7599
7617
  if (!e || !e.length)
7600
7618
  throw new Error("react-modal: No elements were found for selector " + t + ".");
7601
7619
  }
7602
- function Yl(e) {
7620
+ function Nl(e) {
7603
7621
  var t = e;
7604
- if (typeof t == "string" && El.canUseDOM) {
7622
+ if (typeof t == "string" && jl.canUseDOM) {
7605
7623
  var n = document.querySelectorAll(t);
7606
7624
  bi(n, t), t = n;
7607
7625
  }
@@ -7609,9 +7627,9 @@ function Yl(e) {
7609
7627
  }
7610
7628
  function Cr(e) {
7611
7629
  var t = e || Ke;
7612
- return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, Ol.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
7630
+ return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, kl.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
7613
7631
  }
7614
- function Jl(e) {
7632
+ function Rl(e) {
7615
7633
  var t = !0, n = !1, r = void 0;
7616
7634
  try {
7617
7635
  for (var o = Cr(e)[Symbol.iterator](), i; !(t = (i = o.next()).done); t = !0) {
@@ -7629,7 +7647,7 @@ function Jl(e) {
7629
7647
  }
7630
7648
  }
7631
7649
  }
7632
- function Nl(e) {
7650
+ function Dl(e) {
7633
7651
  var t = !0, n = !1, r = void 0;
7634
7652
  try {
7635
7653
  for (var o = Cr(e)[Symbol.iterator](), i; !(t = (i = o.next()).done); t = !0) {
@@ -7647,20 +7665,20 @@ function Nl(e) {
7647
7665
  }
7648
7666
  }
7649
7667
  }
7650
- function Rl() {
7668
+ function Gl() {
7651
7669
  Ke = null;
7652
7670
  }
7653
7671
  var vt = {};
7654
7672
  Object.defineProperty(vt, "__esModule", {
7655
7673
  value: !0
7656
7674
  });
7657
- vt.resetState = Dl;
7658
- vt.log = Gl;
7675
+ vt.resetState = Tl;
7676
+ vt.log = Hl;
7659
7677
  var at = {}, At = {};
7660
7678
  function fo(e, t) {
7661
7679
  e.classList.remove(t);
7662
7680
  }
7663
- function Dl() {
7681
+ function Tl() {
7664
7682
  var e = document.getElementsByTagName("html")[0];
7665
7683
  for (var t in at)
7666
7684
  fo(e, at[t]);
@@ -7669,7 +7687,7 @@ function Dl() {
7669
7687
  fo(n, At[r]);
7670
7688
  at = {}, At = {};
7671
7689
  }
7672
- function Gl() {
7690
+ function Hl() {
7673
7691
  if (process.env.NODE_ENV !== "production") {
7674
7692
  var e = document.getElementsByTagName("html")[0].className, t = `Show tracked classes:
7675
7693
 
@@ -7690,38 +7708,38 @@ doc.body (` + e + `):
7690
7708
  `, console.log(t);
7691
7709
  }
7692
7710
  }
7693
- var Tl = function(t, n) {
7711
+ var Xl = function(t, n) {
7694
7712
  return t[n] || (t[n] = 0), t[n] += 1, n;
7695
- }, Hl = function(t, n) {
7713
+ }, Ql = function(t, n) {
7696
7714
  return t[n] && (t[n] -= 1), n;
7697
- }, Xl = function(t, n, r) {
7715
+ }, Pl = function(t, n, r) {
7698
7716
  r.forEach(function(o) {
7699
- Tl(n, o), t.add(o);
7717
+ Xl(n, o), t.add(o);
7700
7718
  });
7701
- }, Ql = function(t, n, r) {
7719
+ }, Vl = function(t, n, r) {
7702
7720
  r.forEach(function(o) {
7703
- Hl(n, o), n[o] === 0 && t.remove(o);
7721
+ Ql(n, o), n[o] === 0 && t.remove(o);
7704
7722
  });
7705
7723
  };
7706
7724
  vt.add = function(t, n) {
7707
- return Xl(t.classList, t.nodeName.toLowerCase() == "html" ? at : At, n.split(" "));
7725
+ return Pl(t.classList, t.nodeName.toLowerCase() == "html" ? at : At, n.split(" "));
7708
7726
  };
7709
7727
  vt.remove = function(t, n) {
7710
- return Ql(t.classList, t.nodeName.toLowerCase() == "html" ? at : At, n.split(" "));
7728
+ return Vl(t.classList, t.nodeName.toLowerCase() == "html" ? at : At, n.split(" "));
7711
7729
  };
7712
7730
  var bt = {};
7713
7731
  Object.defineProperty(bt, "__esModule", {
7714
7732
  value: !0
7715
7733
  });
7716
- bt.log = Vl;
7717
- bt.resetState = Bl;
7718
- function Pl(e, t) {
7734
+ bt.log = Ul;
7735
+ bt.resetState = Fl;
7736
+ function Bl(e, t) {
7719
7737
  if (!(e instanceof t))
7720
7738
  throw new TypeError("Cannot call a class as a function");
7721
7739
  }
7722
7740
  var Ci = function e() {
7723
7741
  var t = this;
7724
- Pl(this, e), this.register = function(n) {
7742
+ Bl(this, e), this.register = function(n) {
7725
7743
  if (t.openInstances.indexOf(n) !== -1) {
7726
7744
  process.env.NODE_ENV !== "production" && console.warn("React-Modal: Cannot register modal instance that's already open");
7727
7745
  return;
@@ -7746,12 +7764,12 @@ var Ci = function e() {
7746
7764
  });
7747
7765
  }, this.openInstances = [], this.subscribers = [];
7748
7766
  }, on = new Ci();
7749
- function Vl() {
7767
+ function Ul() {
7750
7768
  console.log("portalOpenInstances ----------"), console.log(on.openInstances.length), on.openInstances.forEach(function(e) {
7751
7769
  return console.log(e);
7752
7770
  }), console.log("end portalOpenInstances ----------");
7753
7771
  }
7754
- function Bl() {
7772
+ function Fl() {
7755
7773
  on = new Ci();
7756
7774
  }
7757
7775
  bt.default = on;
@@ -7759,23 +7777,23 @@ var Zr = {};
7759
7777
  Object.defineProperty(Zr, "__esModule", {
7760
7778
  value: !0
7761
7779
  });
7762
- Zr.resetState = $l;
7763
- Zr.log = eu;
7764
- var Ul = bt, Fl = _l(Ul);
7765
- function _l(e) {
7780
+ Zr.resetState = tu;
7781
+ Zr.log = nu;
7782
+ var _l = bt, $l = eu(_l);
7783
+ function eu(e) {
7766
7784
  return e && e.__esModule ? e : { default: e };
7767
7785
  }
7768
- var Ze = void 0, ke = void 0, st = [];
7769
- function $l() {
7770
- for (var e = [Ze, ke], t = 0; t < e.length; t++) {
7786
+ var Ze = void 0, je = void 0, st = [];
7787
+ function tu() {
7788
+ for (var e = [Ze, je], t = 0; t < e.length; t++) {
7771
7789
  var n = e[t];
7772
7790
  n && n.parentNode && n.parentNode.removeChild(n);
7773
7791
  }
7774
- Ze = ke = null, st = [];
7792
+ Ze = je = null, st = [];
7775
7793
  }
7776
- function eu() {
7794
+ function nu() {
7777
7795
  console.log("bodyTrap ----------"), console.log(st.length);
7778
- for (var e = [Ze, ke], t = 0; t < e.length; t++) {
7796
+ for (var e = [Ze, je], t = 0; t < e.length; t++) {
7779
7797
  var n = e[t], r = n || {};
7780
7798
  console.log(r.nodeName, r.className, r.id);
7781
7799
  }
@@ -7788,10 +7806,10 @@ function ho() {
7788
7806
  }
7789
7807
  st[st.length - 1].focusContent();
7790
7808
  }
7791
- function tu(e, t) {
7792
- !Ze && !ke && (Ze = document.createElement("div"), Ze.setAttribute("data-react-modal-body-trap", ""), Ze.style.position = "absolute", Ze.style.opacity = "0", Ze.setAttribute("tabindex", "0"), Ze.addEventListener("focus", ho), ke = Ze.cloneNode(), ke.addEventListener("focus", ho)), st = t, st.length > 0 ? (document.body.firstChild !== Ze && document.body.insertBefore(Ze, document.body.firstChild), document.body.lastChild !== ke && document.body.appendChild(ke)) : (Ze.parentElement && Ze.parentElement.removeChild(Ze), ke.parentElement && ke.parentElement.removeChild(ke));
7809
+ function ru(e, t) {
7810
+ !Ze && !je && (Ze = document.createElement("div"), Ze.setAttribute("data-react-modal-body-trap", ""), Ze.style.position = "absolute", Ze.style.opacity = "0", Ze.setAttribute("tabindex", "0"), Ze.addEventListener("focus", ho), je = Ze.cloneNode(), je.addEventListener("focus", ho)), st = t, st.length > 0 ? (document.body.firstChild !== Ze && document.body.insertBefore(Ze, document.body.firstChild), document.body.lastChild !== je && document.body.appendChild(je)) : (Ze.parentElement && Ze.parentElement.removeChild(Ze), je.parentElement && je.parentElement.removeChild(je));
7793
7811
  }
7794
- Fl.default.subscribe(tu);
7812
+ $l.default.subscribe(ru);
7795
7813
  (function(e, t) {
7796
7814
  Object.defineProperty(t, "__esModule", {
7797
7815
  value: !0
@@ -7817,7 +7835,7 @@ Fl.default.subscribe(tu);
7817
7835
  return function(Y, J, h) {
7818
7836
  return J && K(Y.prototype, J), h && K(Y, h), Y;
7819
7837
  };
7820
- }(), i = ie, a = ln, A = b(a), m = De, u = L(m), l = Cl, d = b(l), v = Ge, g = L(v), f = vt, p = L(f), y = Ne, I = b(y), k = bt, M = b(k);
7838
+ }(), i = ie, a = ln, A = b(a), m = De, u = L(m), l = Il, d = b(l), v = Ge, g = L(v), f = vt, p = L(f), y = Ne, I = b(y), k = bt, M = b(k);
7821
7839
  function L(K) {
7822
7840
  if (K && K.__esModule)
7823
7841
  return K;
@@ -8022,7 +8040,7 @@ Fl.default.subscribe(tu);
8022
8040
  testId: A.default.string
8023
8041
  }, t.default = _, e.exports = t.default;
8024
8042
  })(tr, tr.exports);
8025
- var nu = tr.exports;
8043
+ var ou = tr.exports;
8026
8044
  function Zi() {
8027
8045
  var e = this.constructor.getDerivedStateFromProps(this.props, this.state);
8028
8046
  e != null && this.setState(e);
@@ -8048,7 +8066,7 @@ function wi(e, t) {
8048
8066
  Zi.__suppressDeprecationWarning = !0;
8049
8067
  Ii.__suppressDeprecationWarning = !0;
8050
8068
  wi.__suppressDeprecationWarning = !0;
8051
- function ru(e) {
8069
+ function iu(e) {
8052
8070
  var t = e.prototype;
8053
8071
  if (!t || !t.isReactComponent)
8054
8072
  throw new Error("Can only polyfill class components");
@@ -8083,10 +8101,10 @@ https://fb.me/react-async-component-lifecycle-hooks`
8083
8101
  }
8084
8102
  return e;
8085
8103
  }
8086
- const ou = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8104
+ const au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8087
8105
  __proto__: null,
8088
- polyfill: ru
8089
- }, Symbol.toStringTag, { value: "Module" })), iu = /* @__PURE__ */ ea(ou);
8106
+ polyfill: iu
8107
+ }, Symbol.toStringTag, { value: "Module" })), Au = /* @__PURE__ */ ea(au);
8090
8108
  Object.defineProperty(ct, "__esModule", {
8091
8109
  value: !0
8092
8110
  });
@@ -8098,7 +8116,7 @@ var go = Object.assign || function(e) {
8098
8116
  Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
8099
8117
  }
8100
8118
  return e;
8101
- }, au = function() {
8119
+ }, su = function() {
8102
8120
  function e(t, n) {
8103
8121
  for (var r = 0; r < n.length; r++) {
8104
8122
  var o = n[r];
@@ -8108,8 +8126,8 @@ var go = Object.assign || function(e) {
8108
8126
  return function(t, n, r) {
8109
8127
  return n && e(t.prototype, n), r && e(t, r), t;
8110
8128
  };
8111
- }(), xi = ie, an = Jt(xi), Au = _i, An = Jt(Au), su = ln, H = Jt(su), lu = nu, qo = Jt(lu), uu = Ge, cu = du(uu), _e = Ne, yo = Jt(_e), mu = iu;
8112
- function du(e) {
8129
+ }(), xi = ie, an = Jt(xi), lu = _i, An = Jt(lu), uu = ln, H = Jt(uu), cu = ou, qo = Jt(cu), mu = Ge, du = fu(mu), _e = Ne, yo = Jt(_e), pu = Au;
8130
+ function fu(e) {
8113
8131
  if (e && e.__esModule)
8114
8132
  return e;
8115
8133
  var t = {};
@@ -8121,7 +8139,7 @@ function du(e) {
8121
8139
  function Jt(e) {
8122
8140
  return e && e.__esModule ? e : { default: e };
8123
8141
  }
8124
- function pu(e, t) {
8142
+ function hu(e, t) {
8125
8143
  if (!(e instanceof t))
8126
8144
  throw new TypeError("Cannot call a class as a function");
8127
8145
  }
@@ -8130,12 +8148,12 @@ function vo(e, t) {
8130
8148
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8131
8149
  return t && (typeof t == "object" || typeof t == "function") ? t : e;
8132
8150
  }
8133
- function fu(e, t) {
8151
+ function gu(e, t) {
8134
8152
  if (typeof t != "function" && t !== null)
8135
8153
  throw new TypeError("Super expression must either be null or a function, not " + typeof t);
8136
8154
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
8137
8155
  }
8138
- var hu = ct.portalClassName = "ReactModalPortal", gu = ct.bodyOpenClassName = "ReactModal__Body--open", ot = _e.canUseDOM && An.default.createPortal !== void 0, ir = function(t) {
8156
+ var qu = ct.portalClassName = "ReactModalPortal", yu = ct.bodyOpenClassName = "ReactModal__Body--open", ot = _e.canUseDOM && An.default.createPortal !== void 0, ir = function(t) {
8139
8157
  return document.createElement(t);
8140
8158
  }, bo = function() {
8141
8159
  return ot ? An.default.createPortal : An.default.unstable_renderSubtreeIntoContainer;
@@ -8144,10 +8162,10 @@ function Pt(e) {
8144
8162
  return e();
8145
8163
  }
8146
8164
  var Ct = function(e) {
8147
- fu(t, e);
8165
+ gu(t, e);
8148
8166
  function t() {
8149
8167
  var n, r, o, i;
8150
- pu(this, t);
8168
+ hu(this, t);
8151
8169
  for (var a = arguments.length, A = Array(a), m = 0; m < a; m++)
8152
8170
  A[m] = arguments[m];
8153
8171
  return i = (r = (o = vo(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(A))), o), o.removePortal = function() {
@@ -8161,7 +8179,7 @@ var Ct = function(e) {
8161
8179
  o.portalRef(d);
8162
8180
  }, r), vo(o, i);
8163
8181
  }
8164
- return au(t, [{
8182
+ return su(t, [{
8165
8183
  key: "componentDidMount",
8166
8184
  value: function() {
8167
8185
  if (_e.canUseDOM) {
@@ -8209,7 +8227,7 @@ var Ct = function(e) {
8209
8227
  }], [{
8210
8228
  key: "setAppElement",
8211
8229
  value: function(r) {
8212
- cu.setElement(r);
8230
+ du.setElement(r);
8213
8231
  }
8214
8232
  /* eslint-disable react/no-unused-prop-types */
8215
8233
  /* eslint-enable react/no-unused-prop-types */
@@ -8257,8 +8275,8 @@ Ct.propTypes = {
8257
8275
  };
8258
8276
  Ct.defaultProps = {
8259
8277
  isOpen: !1,
8260
- portalClassName: hu,
8261
- bodyOpenClassName: gu,
8278
+ portalClassName: qu,
8279
+ bodyOpenClassName: yu,
8262
8280
  role: "dialog",
8263
8281
  ariaHideApp: !0,
8264
8282
  closeTimeoutMS: 0,
@@ -8309,7 +8327,7 @@ Ct.defaultStyles = {
8309
8327
  padding: "20px"
8310
8328
  }
8311
8329
  };
8312
- (0, mu.polyfill)(Ct);
8330
+ (0, pu.polyfill)(Ct);
8313
8331
  process.env.NODE_ENV !== "production" && (Ct.setCreateHTMLElement = function(e) {
8314
8332
  return ir = e;
8315
8333
  });
@@ -8324,8 +8342,8 @@ ct.default = Ct;
8324
8342
  }
8325
8343
  t.default = r.default, e.exports = t.default;
8326
8344
  })(er, er.exports);
8327
- var qu = er.exports;
8328
- const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /* @__PURE__ */ s.jsxs(
8345
+ var vu = er.exports;
8346
+ const ar = /* @__PURE__ */ $i(vu), bu = ({ width: e, height: t, fill: n }) => /* @__PURE__ */ s.jsxs(
8329
8347
  "svg",
8330
8348
  {
8331
8349
  width: e,
@@ -8363,7 +8381,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8363
8381
  )
8364
8382
  ]
8365
8383
  }
8366
- ), vu = ({
8384
+ ), Cu = ({
8367
8385
  setIsExceedingFileSizeAccepted: e,
8368
8386
  closeModal: t,
8369
8387
  setLoading: n,
@@ -8414,11 +8432,11 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8414
8432
  }
8415
8433
  ) }),
8416
8434
  /* @__PURE__ */ s.jsx("div", { className: "mt-5 h-[150px] w-full ", children: /* @__PURE__ */ s.jsx("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ s.jsx(
8417
- yu,
8435
+ bu,
8418
8436
  {
8419
8437
  width: 100,
8420
8438
  height: 100,
8421
- fill: qe[r]
8439
+ fill: ye[r]
8422
8440
  }
8423
8441
  ) }) }),
8424
8442
  /* @__PURE__ */ s.jsx("div", { className: "mb-5 h-[50px] w-full", children: /* @__PURE__ */ s.jsx("div", { className: "flex h-full w-full items-center justify-center", children: /* @__PURE__ */ s.jsx("span", { className: "text-3xl font-bold text-flex-purple", children: "Playable Size Too Big" }) }) }),
@@ -8441,7 +8459,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8441
8459
  {
8442
8460
  className: " pointer-events-auto ml-3 flex h-full w-[180px] items-center justify-center rounded-md transition-all hover:scale-105 cursor-pointer",
8443
8461
  style: {
8444
- backgroundColor: qe[r]
8462
+ backgroundColor: ye[r]
8445
8463
  },
8446
8464
  onClick: () => e(!1),
8447
8465
  children: /* @__PURE__ */ s.jsx("span", { className: "text-center align-middle text-xl font-bold text-white", children: "Continue" })
@@ -8451,7 +8469,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8451
8469
  ]
8452
8470
  }
8453
8471
  );
8454
- }, bu = ({ onClose: e, url: t }) => /* @__PURE__ */ s.jsxs(
8472
+ }, Zu = ({ onClose: e, url: t }) => /* @__PURE__ */ s.jsxs(
8455
8473
  "div",
8456
8474
  {
8457
8475
  style: {
@@ -8567,7 +8585,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8567
8585
  )
8568
8586
  ]
8569
8587
  }
8570
- ), Iu = ({
8588
+ ), xu = ({
8571
8589
  visible: e,
8572
8590
  closeModal: t,
8573
8591
  versionId: n,
@@ -8584,15 +8602,15 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8584
8602
  copyLinkUrl: g
8585
8603
  }) => {
8586
8604
  const [f, p] = T(window.innerWidth), [y, I] = T(!1), [k, M] = T(l), [L, b] = T(!1), [G, X] = T(!0), [F, ue] = T(null), [te, ae] = T(""), [Q, _] = T("Loading..."), [K, Y] = T("Loading..."), [J, h] = T("game");
8587
- Ys(a, A, ae, v);
8605
+ Js(a, A, ae, v);
8588
8606
  const j = async () => {
8589
8607
  Ot(n, "preview", null, null, !1).then((R) => {
8590
8608
  I(!0), M(v + "/" + R.url), (a === "Flex" || a === "Ready" || a === "Playable") && (R.size >= 5 ? b(!0) : b(!1), ue(R.size)), X(!1);
8591
8609
  });
8592
8610
  };
8593
- return Ce(() => {
8611
+ return ve(() => {
8594
8612
  e ? y || (j(), I(!0)) : (I(!1), M(""));
8595
- }, [e]), Ce(() => {
8613
+ }, [e]), ve(() => {
8596
8614
  const R = () => {
8597
8615
  p(window.innerWidth);
8598
8616
  };
@@ -8665,7 +8683,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8665
8683
  },
8666
8684
  children: [
8667
8685
  L && e && /* @__PURE__ */ s.jsx(
8668
- vu,
8686
+ Cu,
8669
8687
  {
8670
8688
  setIsExceedingFileSizeAccepted: b,
8671
8689
  closeModal: t,
@@ -8739,7 +8757,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8739
8757
  ),
8740
8758
  /* @__PURE__ */ s.jsxs(ra, { children: [
8741
8759
  y ? /* @__PURE__ */ s.jsx(
8742
- Ns,
8760
+ Ds,
8743
8761
  {
8744
8762
  versionName: o,
8745
8763
  versionId: n,
@@ -8781,7 +8799,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8781
8799
  }
8782
8800
  ) }),
8783
8801
  /* @__PURE__ */ s.jsx(
8784
- cl,
8802
+ dl,
8785
8803
  {
8786
8804
  visible: e,
8787
8805
  versionId: n,
@@ -8807,7 +8825,7 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8807
8825
  ] }),
8808
8826
  /* @__PURE__ */ s.jsx(_n, {}),
8809
8827
  te && /* @__PURE__ */ s.jsx(
8810
- bu,
8828
+ Zu,
8811
8829
  {
8812
8830
  onClose: () => {
8813
8831
  Yt(te), ae("");
@@ -8837,6 +8855,6 @@ const ar = /* @__PURE__ */ $i(qu), yu = ({ width: e, height: t, fill: n }) => /*
8837
8855
  );
8838
8856
  };
8839
8857
  export {
8840
- Iu as DownloadModal
8858
+ xu as DownloadModal
8841
8859
  };
8842
8860
  //# sourceMappingURL=index.es.js.map