gearboxdownloadmodal 5.0.29 → 5.0.30

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 ae, { useState as $, useEffect as we, forwardRef as xi, useReducer as wi, useRef as st, isValidElement as gt, cloneElement as zr, useLayoutEffect as Ki } from "react";
1
+ import ae, { useState as ee, useEffect as we, forwardRef as xi, useReducer as wi, useRef as st, isValidElement as gt, cloneElement as zr, useLayoutEffect as Ki } from "react";
2
2
  import Ei from "react-dom";
3
3
  function Li(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -90,10 +90,10 @@ function ki() {
90
90
  ce.unshift("Warning: " + Z), Function.prototype.apply.call(console[l], console, ce);
91
91
  }
92
92
  }
93
- var O = !1, v = !1, ee = !1, ne = !1, oe = !1, Ae;
93
+ var O = !1, v = !1, _ = !1, ne = !1, oe = !1, Ae;
94
94
  Ae = Symbol.for("react.module.reference");
95
95
  function pe(l) {
96
- return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || oe || l === o || l === m || l === s || ne || l === h || O || v || ee || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === d || l.$$typeof === a || l.$$typeof === A || l.$$typeof === c || // This needs to include all possible module reference object
96
+ return !!(typeof l == "string" || typeof l == "function" || l === n || l === i || oe || l === o || l === m || l === s || ne || l === h || O || v || _ || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === d || l.$$typeof === a || l.$$typeof === A || l.$$typeof === c || // This needs to include all possible module reference object
97
97
  // types supported by any Flight configuration anywhere since
98
98
  // we don't know which Flight build this will end up being used
99
99
  // with.
@@ -283,17 +283,17 @@ function ki() {
283
283
  }
284
284
  } catch (Be) {
285
285
  if (Be && R && typeof Be.stack == "string") {
286
- for (var _ = Be.stack.split(`
286
+ for (var $ = Be.stack.split(`
287
287
  `), Ie = R.stack.split(`
288
- `), he = _.length - 1, qe = Ie.length - 1; he >= 1 && qe >= 0 && _[he] !== Ie[qe]; )
288
+ `), he = $.length - 1, qe = Ie.length - 1; he >= 1 && qe >= 0 && $[he] !== Ie[qe]; )
289
289
  qe--;
290
290
  for (; he >= 1 && qe >= 0; he--, qe--)
291
- if (_[he] !== Ie[qe]) {
291
+ if ($[he] !== Ie[qe]) {
292
292
  if (he !== 1 || qe !== 1)
293
293
  do
294
- if (he--, qe--, qe < 0 || _[he] !== Ie[qe]) {
294
+ if (he--, qe--, qe < 0 || $[he] !== Ie[qe]) {
295
295
  var ke = `
296
- ` + _[he].replace(" at new ", " at ");
296
+ ` + $[he].replace(" at new ", " at ");
297
297
  return l.displayName && ke.includes("<anonymous>") && (ke = ke.replace("<anonymous>", l.displayName)), typeof l == "function" && B.set(l, ke), ke;
298
298
  }
299
299
  while (he >= 1 && qe >= 0);
@@ -355,17 +355,17 @@ function ki() {
355
355
  var ce = Function.call.bind(ve);
356
356
  for (var te in l)
357
357
  if (ce(l, te)) {
358
- var _ = void 0;
358
+ var $ = void 0;
359
359
  try {
360
360
  if (typeof l[te] != "function") {
361
361
  var Ie = Error((R || "React class") + ": " + S + " type `" + te + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[te] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
362
362
  throw Ie.name = "Invariant Violation", Ie;
363
363
  }
364
- _ = l[te](Z, te, R, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
364
+ $ = l[te](Z, te, R, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
365
365
  } catch (he) {
366
- _ = he;
366
+ $ = he;
367
367
  }
368
- _ && !(_ instanceof Error) && (Se(ie), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", S, te, typeof _), Se(null)), _ instanceof Error && !(_.message in me) && (me[_.message] = !0, Se(ie), k("Failed %s type: %s", S, _.message), Se(null));
368
+ $ && !($ instanceof Error) && (Se(ie), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", R || "React class", S, te, typeof $), Se(null)), $ instanceof Error && !($.message in me) && (me[$.message] = !0, Se(ie), k("Failed %s type: %s", S, $.message), Se(null));
369
369
  }
370
370
  }
371
371
  }
@@ -445,7 +445,7 @@ function ki() {
445
445
  }
446
446
  }
447
447
  var fi = function(l, Z, S, R, ie, ce, te) {
448
- var _ = {
448
+ var $ = {
449
449
  // This tag allows us to uniquely identify this as a React Element
450
450
  $$typeof: t,
451
451
  // Built-in properties that belong on the element
@@ -456,27 +456,27 @@ function ki() {
456
456
  // Record the component responsible for creating this element.
457
457
  _owner: ce
458
458
  };
459
- return _._store = {}, Object.defineProperty(_._store, "validated", {
459
+ return $._store = {}, Object.defineProperty($._store, "validated", {
460
460
  configurable: !1,
461
461
  enumerable: !1,
462
462
  writable: !0,
463
463
  value: !1
464
- }), Object.defineProperty(_, "_self", {
464
+ }), Object.defineProperty($, "_self", {
465
465
  configurable: !1,
466
466
  enumerable: !1,
467
467
  writable: !1,
468
468
  value: R
469
- }), Object.defineProperty(_, "_source", {
469
+ }), Object.defineProperty($, "_source", {
470
470
  configurable: !1,
471
471
  enumerable: !1,
472
472
  writable: !1,
473
473
  value: ie
474
- }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
474
+ }), Object.freeze && (Object.freeze($.props), Object.freeze($)), $;
475
475
  };
476
476
  function hi(l, Z, S, R, ie) {
477
477
  {
478
- var ce, te = {}, _ = null, Ie = null;
479
- S !== void 0 && (dn(S), _ = "" + S), ci(Z) && (dn(Z.key), _ = "" + Z.key), ui(Z) && (Ie = Z.ref, mi(Z, ie));
478
+ var ce, te = {}, $ = null, Ie = null;
479
+ S !== void 0 && (dn(S), $ = "" + S), ci(Z) && (dn(Z.key), $ = "" + Z.key), ui(Z) && (Ie = Z.ref, mi(Z, ie));
480
480
  for (ce in Z)
481
481
  ve.call(Z, ce) && !li.hasOwnProperty(ce) && (te[ce] = Z[ce]);
482
482
  if (l && l.defaultProps) {
@@ -484,11 +484,11 @@ function ki() {
484
484
  for (ce in he)
485
485
  te[ce] === void 0 && (te[ce] = he[ce]);
486
486
  }
487
- if (_ || Ie) {
487
+ if ($ || Ie) {
488
488
  var qe = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
489
- _ && di(te, qe), Ie && pi(te, qe);
489
+ $ && di(te, qe), Ie && pi(te, qe);
490
490
  }
491
- return fi(l, _, Ie, ie, R, xt.current, te);
491
+ return fi(l, $, Ie, ie, R, xt.current, te);
492
492
  }
493
493
  }
494
494
  var qr = I.ReactCurrentOwner, hn = I.ReactDebugCurrentFrame;
@@ -613,12 +613,12 @@ Check the top-level render call using <` + S + ">.");
613
613
  {
614
614
  var te = pe(l);
615
615
  if (!te) {
616
- var _ = "";
617
- (l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
616
+ var $ = "";
617
+ (l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
618
618
  var Ie = qi(ie);
619
- Ie ? _ += Ie : _ += qn();
619
+ Ie ? $ += Ie : $ += qn();
620
620
  var he;
621
- l === null ? he = "null" : _e(l) ? he = "array" : l !== void 0 && l.$$typeof === t ? (he = "<" + (Y(l.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : he = typeof l, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, _);
621
+ l === null ? he = "null" : _e(l) ? he = "array" : l !== void 0 && l.$$typeof === t ? (he = "<" + (Y(l.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : he = typeof l, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, $);
622
622
  }
623
623
  var qe = hi(l, Z, S, ie, ce);
624
624
  if (qe == null)
@@ -652,7 +652,7 @@ Check the top-level render call using <` + S + ">.");
652
652
  process.env.NODE_ENV === "production" ? Yr.exports = Oi() : Yr.exports = ki();
653
653
  var u = Yr.exports;
654
654
  const ao = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMTg5OF8zMTIyNykiPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTIuMjI2NkwxMi43OTQ5IDE5Ljc3MzIiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGggZD0iTTIwLjM0MTYgMTkuNzczMkwxMi43OTQ5IDEyLjIyNjYiIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIKICAgICAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogICAgPHBhdGgKICAgICAgZD0iTTE2LjU2ODQgMjhDOS45NDAzNiAyOCA0LjU2ODM2IDIyLjYyOCA0LjU2ODM2IDE2QzQuNTY4MzYgOS4zNzIgOS45NDAzNiA0IDE2LjU2ODQgNEMyMy4xOTY0IDQgMjguNTY4NCA5LjM3MiAyOC41Njg0IDE2QzI4LjU2ODQgMjIuNjI4IDIzLjE5NjQgMjggMTYuNTY4NCAyOFoiCiAgICAgIHN0cm9rZT0iIzBGMEYxRSIgc3Ryb2tlV2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiAvPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTg5OF8zMTIyNyI+CiAgICAgIDxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAuNTY4MzU5KSIgLz4KICAgIDwvY2xpcFBhdGg+CiAgPC9kZWZzPgo8L3N2Zz4=", Wi = ({ children: e }) => {
655
- const [t, r] = $(window.innerWidth);
655
+ const [t, r] = ee(window.innerWidth);
656
656
  return we(() => {
657
657
  const n = () => {
658
658
  r(window.innerWidth);
@@ -1392,8 +1392,8 @@ function Qi() {
1392
1392
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, m = e ? Symbol.for("react.concurrent_mode") : 60111, s = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, q = e ? Symbol.for("react.block") : 60121, C = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, k = e ? Symbol.for("react.scope") : 60119;
1393
1393
  function W(v) {
1394
1394
  if (typeof v == "object" && v !== null) {
1395
- var ee = v.$$typeof;
1396
- switch (ee) {
1395
+ var _ = v.$$typeof;
1396
+ switch (_) {
1397
1397
  case t:
1398
1398
  switch (v = v.type, v) {
1399
1399
  case c:
@@ -1412,11 +1412,11 @@ function Qi() {
1412
1412
  case a:
1413
1413
  return v;
1414
1414
  default:
1415
- return ee;
1415
+ return _;
1416
1416
  }
1417
1417
  }
1418
1418
  case r:
1419
- return ee;
1419
+ return _;
1420
1420
  }
1421
1421
  }
1422
1422
  }
@@ -1500,7 +1500,7 @@ function Hi() {
1500
1500
  }
1501
1501
  }
1502
1502
  }
1503
- var v = c, ee = m, ne = A, oe = a, Ae = t, pe = s, V = n, j = p, Y = h, E = r, K = i, M = o, f = d, w = !1;
1503
+ var v = c, _ = m, ne = A, oe = a, Ae = t, pe = s, V = n, j = p, Y = h, E = r, K = i, M = o, f = d, w = !1;
1504
1504
  function X(L) {
1505
1505
  return w || (w = !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.")), b(L) || O(L) === c;
1506
1506
  }
@@ -1540,7 +1540,7 @@ function Hi() {
1540
1540
  function ye(L) {
1541
1541
  return O(L) === d;
1542
1542
  }
1543
- le.AsyncMode = v, le.ConcurrentMode = ee, le.ContextConsumer = ne, le.ContextProvider = oe, le.Element = Ae, le.ForwardRef = pe, le.Fragment = V, le.Lazy = j, le.Memo = Y, le.Portal = E, le.Profiler = K, le.StrictMode = M, le.Suspense = f, le.isAsyncMode = X, le.isConcurrentMode = b, le.isContextConsumer = x, le.isContextProvider = z, le.isElement = J, le.isForwardRef = D, le.isFragment = Q, le.isLazy = T, le.isMemo = G, le.isPortal = H, le.isProfiler = U, le.isStrictMode = B, le.isSuspense = ye, le.isValidElementType = W, le.typeOf = O;
1543
+ le.AsyncMode = v, le.ConcurrentMode = _, le.ContextConsumer = ne, le.ContextProvider = oe, le.Element = Ae, le.ForwardRef = pe, le.Fragment = V, le.Lazy = j, le.Memo = Y, le.Portal = E, le.Profiler = K, le.StrictMode = M, le.Suspense = f, le.isAsyncMode = X, le.isConcurrentMode = b, le.isContextConsumer = x, le.isContextProvider = z, le.isElement = J, le.isForwardRef = D, le.isFragment = Q, le.isLazy = T, le.isMemo = G, le.isPortal = H, le.isProfiler = U, le.isStrictMode = B, le.isSuspense = ye, le.isValidElementType = W, le.typeOf = O;
1544
1544
  }()), le;
1545
1545
  }
1546
1546
  var En;
@@ -1699,7 +1699,7 @@ function Xi() {
1699
1699
  arrayOf: W,
1700
1700
  element: O(),
1701
1701
  elementType: v(),
1702
- instanceOf: ee,
1702
+ instanceOf: _,
1703
1703
  node: pe(),
1704
1704
  objectOf: oe,
1705
1705
  oneOf: ne,
@@ -1794,7 +1794,7 @@ function Xi() {
1794
1794
  }
1795
1795
  return C(b);
1796
1796
  }
1797
- function ee(b) {
1797
+ function _(b) {
1798
1798
  function x(z, J, D, Q, T) {
1799
1799
  if (!(z[J] instanceof b)) {
1800
1800
  var G = b.name || g, H = X(z[J]);
@@ -3779,7 +3779,7 @@ const ze = { list: /* @__PURE__ */ new Map(), emitQueue: /* @__PURE__ */ new Map
3779
3779
  return ae.createElement("div", { className: "Toastify__spinner" });
3780
3780
  } };
3781
3781
  function jA(e) {
3782
- const [, t] = wi((h) => h + 1, 0), [r, n] = $([]), o = st(null), i = st(/* @__PURE__ */ new Map()).current, a = (h) => r.indexOf(h) !== -1, A = st({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: a, getToast: (h) => i.get(h) }).current;
3782
+ const [, t] = wi((h) => h + 1, 0), [r, n] = ee([]), o = st(null), i = st(/* @__PURE__ */ new Map()).current, a = (h) => r.indexOf(h) !== -1, A = st({ toastKey: 1, displayedToast: 0, count: 0, queue: [], props: e, containerId: null, isToastActive: a, getToast: (h) => i.get(h) }).current;
3783
3783
  function c(h) {
3784
3784
  let { containerId: p } = h;
3785
3785
  const { limit: q } = A.props;
@@ -3798,12 +3798,12 @@ function jA(e) {
3798
3798
  return !o.current || A.props.enableMultiContainer && j.containerId !== A.props.containerId || i.has(j.toastId) && j.updateId == null;
3799
3799
  }(I))
3800
3800
  return;
3801
- const { toastId: k, updateId: W, data: O } = I, { props: v } = A, ee = () => m(k), ne = W == null;
3801
+ const { toastId: k, updateId: W, data: O } = I, { props: v } = A, _ = () => m(k), ne = W == null;
3802
3802
  ne && A.count++;
3803
3803
  const oe = { ...v, style: v.toastStyle, key: A.toastKey++, ...Object.fromEntries(Object.entries(I).filter((j) => {
3804
3804
  let [Y, E] = j;
3805
3805
  return E != null;
3806
- })), toastId: k, updateId: W, data: O, closeToast: ee, isIn: !1, className: Ft(I.className || v.toastClassName), bodyClassName: Ft(I.bodyClassName || v.bodyClassName), progressClassName: Ft(I.progressClassName || v.progressClassName), autoClose: !I.isLoading && (Ae = I.autoClose, pe = v.autoClose, Ae === !1 || St(Ae) && Ae > 0 ? Ae : pe), deleteToast() {
3806
+ })), toastId: k, updateId: W, data: O, closeToast: _, isIn: !1, className: Ft(I.className || v.toastClassName), bodyClassName: Ft(I.bodyClassName || v.bodyClassName), progressClassName: Ft(I.progressClassName || v.progressClassName), autoClose: !I.isLoading && (Ae = I.autoClose, pe = v.autoClose, Ae === !1 || St(Ae) && Ae > 0 ? Ae : pe), deleteToast() {
3807
3807
  const j = Vn(i.get(k), "removed");
3808
3808
  i.delete(k), ze.emit(4, j);
3809
3809
  const Y = A.queue.length;
@@ -3827,7 +3827,7 @@ function jA(e) {
3827
3827
  return M === !1 || (xe(M) ? f = M(w) : gt(M) ? f = zr(M, w) : mt(M) || St(M) ? f = M : K ? f = Or.spinner() : ((X) => X in Or)(E) && (f = Or[E](w))), f;
3828
3828
  }(oe), xe(I.onOpen) && (oe.onOpen = I.onOpen), xe(I.onClose) && (oe.onClose = I.onClose), oe.closeButton = v.closeButton, I.closeButton === !1 || Sr(I.closeButton) ? oe.closeButton = I.closeButton : I.closeButton === !0 && (oe.closeButton = !Sr(v.closeButton) || v.closeButton);
3829
3829
  let V = h;
3830
- gt(h) && !mt(h.type) ? V = zr(h, { closeToast: ee, toastProps: oe, data: O }) : xe(h) && (V = h({ closeToast: ee, toastProps: oe, data: O })), v.limit && v.limit > 0 && A.count > v.limit && ne ? A.queue.push({ toastContent: V, toastProps: oe, staleId: C }) : St(q) ? setTimeout(() => {
3830
+ gt(h) && !mt(h.type) ? V = zr(h, { closeToast: _, toastProps: oe, data: O }) : xe(h) && (V = h({ closeToast: _, toastProps: oe, data: O })), v.limit && v.limit > 0 && A.count > v.limit && ne ? A.queue.push({ toastContent: V, toastProps: oe, staleId: C }) : St(q) ? setTimeout(() => {
3831
3831
  g(V, oe, C);
3832
3832
  }, q) : g(V, oe, C);
3833
3833
  }
@@ -3856,7 +3856,7 @@ function Xn(e) {
3856
3856
  return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
3857
3857
  }
3858
3858
  function JA(e) {
3859
- const [t, r] = $(!1), [n, o] = $(!1), i = st(null), a = st({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = st(e), { autoClose: c, pauseOnHover: m, closeToast: s, onClick: d, closeOnClick: g } = e;
3859
+ const [t, r] = ee(!1), [n, o] = ee(!1), i = st(null), a = st({ start: 0, x: 0, y: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, boundingRect: null, didMove: !1 }).current, A = st(e), { autoClose: c, pauseOnHover: m, closeToast: s, onClick: d, closeOnClick: g } = e;
3860
3860
  function h(O) {
3861
3861
  if (e.draggable) {
3862
3862
  O.nativeEvent.type === "touchstart" && O.nativeEvent.preventDefault(), a.didMove = !1, document.addEventListener("mousemove", I), document.addEventListener("mouseup", k), document.addEventListener("touchmove", I), document.addEventListener("touchend", k);
@@ -3866,8 +3866,8 @@ function JA(e) {
3866
3866
  }
3867
3867
  function p(O) {
3868
3868
  if (a.boundingRect) {
3869
- const { top: v, bottom: ee, left: ne, right: oe } = a.boundingRect;
3870
- O.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= ne && a.x <= oe && a.y >= v && a.y <= ee ? C() : q();
3869
+ const { top: v, bottom: _, left: ne, right: oe } = a.boundingRect;
3870
+ O.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= ne && a.x <= oe && a.y >= v && a.y <= _ ? C() : q();
3871
3871
  }
3872
3872
  }
3873
3873
  function q() {
@@ -3918,9 +3918,9 @@ function DA(e) {
3918
3918
  } });
3919
3919
  }
3920
3920
  const NA = (e) => {
3921
- const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o } = JA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: m, hideProgressBar: s, closeToast: d, transition: g, position: h, className: p, style: q, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: W, updateId: O, role: v, progress: ee, rtl: ne, toastId: oe, deleteToast: Ae, isIn: pe, isLoading: V, iconOut: j, closeOnClick: Y, theme: E } = e, K = tt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${m}`, { "Toastify__toast--rtl": ne }, { "Toastify__toast--close-on-click": Y }), M = xe(p) ? p({ rtl: ne, position: h, type: m, defaultClassName: K }) : tt(K, p), f = !!ee || !A, w = { closeToast: d, type: m, theme: E };
3921
+ const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o } = JA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: m, hideProgressBar: s, closeToast: d, transition: g, position: h, className: p, style: q, bodyClassName: C, bodyStyle: I, progressClassName: k, progressStyle: W, updateId: O, role: v, progress: _, rtl: ne, toastId: oe, deleteToast: Ae, isIn: pe, isLoading: V, iconOut: j, closeOnClick: Y, theme: E } = e, K = tt("Toastify__toast", `Toastify__toast-theme--${E}`, `Toastify__toast--${m}`, { "Toastify__toast--rtl": ne }, { "Toastify__toast--close-on-click": Y }), M = xe(p) ? p({ rtl: ne, position: h, type: m, defaultClassName: K }) : tt(K, p), f = !!_ || !A, w = { closeToast: d, type: m, theme: E };
3922
3922
  let X = null;
3923
- return i === !1 || (X = xe(i) ? i(w) : gt(i) ? zr(i, w) : Xo(w)), ae.createElement(g, { isIn: pe, done: Ae, position: h, preventExitTransition: r, nodeRef: n }, ae.createElement("div", { id: oe, onClick: c, className: M, ...o, style: q, ref: n }, ae.createElement("div", { ...pe && { role: v }, className: xe(C) ? C({ type: m }) : tt("Toastify__toast-body", C), style: I }, j != null && ae.createElement("div", { className: tt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !V }) }, j), ae.createElement("div", null, a)), X, ae.createElement(DA, { ...O && !f ? { key: `pb-${O}` } : {}, rtl: ne, theme: E, delay: A, isRunning: t, isIn: pe, closeToast: d, hide: s, type: m, style: W, className: k, controlledProgress: f, progress: ee || 0 })));
3923
+ return i === !1 || (X = xe(i) ? i(w) : gt(i) ? zr(i, w) : Xo(w)), ae.createElement(g, { isIn: pe, done: Ae, position: h, preventExitTransition: r, nodeRef: n }, ae.createElement("div", { id: oe, onClick: c, className: M, ...o, style: q, ref: n }, ae.createElement("div", { ...pe && { role: v }, className: xe(C) ? C({ type: m }) : tt("Toastify__toast-body", C), style: I }, j != null && ae.createElement("div", { className: tt("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !V }) }, j), ae.createElement("div", null, a)), X, ae.createElement(DA, { ...O && !f ? { key: `pb-${O}` } : {}, rtl: ne, theme: E, delay: A, isRunning: t, isIn: pe, closeToast: d, hide: s, type: m, style: W, className: k, controlledProgress: f, progress: _ || 0 })));
3924
3924
  }, pr = function(e, t) {
3925
3925
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
3926
3926
  }, TA = dr(pr("bounce", !0));
@@ -4034,10 +4034,9 @@ function tr(e) {
4034
4034
  const PA = ({ versionId: e, typeOfProduct: t, api: r, fetchFileUrl: n, copyLinkUrl: o }) => {
4035
4035
  const i = async () => {
4036
4036
  if (t === "Flex") {
4037
- const a = await er({ _id: e, network: "default" }, r);
4038
- console.log("first:", a);
4039
- let A = `${o}/preview?versionId=${e}`;
4040
- tr(A), Re("Link copied");
4037
+ await er({ _id: e, network: "default" }, r);
4038
+ let a = `${o}/preview?versionId=${e}`;
4039
+ tr(a), Re("Link copied");
4041
4040
  } else {
4042
4041
  const a = await At(
4043
4042
  r,
@@ -4160,7 +4159,7 @@ const PA = ({ versionId: e, typeOfProduct: t, api: r, fetchFileUrl: n, copyLinkU
4160
4159
  fetchFileUrl: i,
4161
4160
  copyLinkUrl: a
4162
4161
  }) => {
4163
- const [A, c] = $(window.innerWidth);
4162
+ const [A, c] = ee(window.innerWidth);
4164
4163
  we(() => {
4165
4164
  const s = () => {
4166
4165
  c(window.innerWidth);
@@ -4543,7 +4542,7 @@ const Fo = ({ fill: e, stroke: t, className: r, style: n }) => /* @__PURE__ */ u
4543
4542
  children: e
4544
4543
  }
4545
4544
  ), es = ({ checked: e, typeOfProduct: t, id: r }) => {
4546
- const [n, o] = $(e);
4545
+ const [n, o] = ee(e);
4547
4546
  we(() => {
4548
4547
  o(e);
4549
4548
  }, [e]);
@@ -5217,7 +5216,7 @@ const is = ({
5217
5216
  disabled: k,
5218
5217
  user: W
5219
5218
  }) => {
5220
- const [O, v] = $(!1), [ee, ne] = $($A(5)), [oe, Ae] = $(""), [pe, V] = $(!1), [j, Y] = $(!1), [E, K] = $(!1), [M, f] = $("download"), [w, X] = $(!1), [b, x] = $(!1), [z, J] = $(!1);
5219
+ const [O, v] = ee(!1), [_, ne] = ee($A(5)), [oe, Ae] = ee(""), [pe, V] = ee(!1), [j, Y] = ee(!1), [E, K] = ee(!1), [M, f] = ee("download"), [w, X] = ee(!1), [b, x] = ee(!1), [z, J] = ee(!1);
5221
5220
  let D = {
5222
5221
  aarki: "html,copy",
5223
5222
  adcolony: "copy,html",
@@ -5323,7 +5322,7 @@ const is = ({
5323
5322
  s
5324
5323
  );
5325
5324
  const Se = Wr.includes(F) ? 1 : 0;
5326
- At(s, N, ee, F, Ke, Se, {}).then(async (Oe) => {
5325
+ At(s, N, _, F, Ke, Se, {}).then(async (Oe) => {
5327
5326
  let { url: Fe } = Oe, _e;
5328
5327
  if ([
5329
5328
  "google",
@@ -5380,7 +5379,7 @@ const is = ({
5380
5379
  return tr(`${g}/${N == null ? void 0 : N.url}`), Re("Link Coppied"), N == null ? void 0 : N.url;
5381
5380
  }, B = async () => {
5382
5381
  X(!0);
5383
- const N = await At(s, m, ee, "moloco", !1, Q, {
5382
+ const N = await At(s, m, _, "moloco", !1, Q, {
5384
5383
  molocoS3: !0
5385
5384
  });
5386
5385
  let F = N.url, fe;
@@ -5395,7 +5394,7 @@ const is = ({
5395
5394
  ), fe.style.display = "none", document.body.appendChild(fe), fe.click(), X(!1), Re("Download successfully"), K(!1);
5396
5395
  }, ye = async () => {
5397
5396
  x(!0);
5398
- const N = await At(s, m, ee, "moloco", !1, Q, {
5397
+ const N = await At(s, m, _, "moloco", !1, Q, {
5399
5398
  molocoS3: !0
5400
5399
  });
5401
5400
  await fetch(g + "/" + N.url).then((F) => {
@@ -5421,7 +5420,7 @@ const is = ({
5421
5420
  });
5422
5421
  }, L = async () => {
5423
5422
  J(!0);
5424
- const N = await At(s, m, ee, "moloco", !1, Q, {
5423
+ const N = await At(s, m, _, "moloco", !1, Q, {
5425
5424
  molocoS3: !0
5426
5425
  });
5427
5426
  await fetch(g + "/" + N.url).then((F) => {
@@ -6003,7 +6002,7 @@ const ms = ({
6003
6002
  flexDownloadCount: d,
6004
6003
  disabled: g
6005
6004
  }) => {
6006
- const [h, p] = $([]), [q, C] = $([]), [I, k] = $(!1), [W, O] = $(""), [v, ee] = $(!1), [ne, oe] = $(!1), Ae = async (j) => {
6005
+ const [h, p] = ee([]), [q, C] = ee([]), [I, k] = ee(!1), [W, O] = ee(""), [v, _] = ee(!1), [ne, oe] = ee(!1), Ae = async (j) => {
6007
6006
  k(!0);
6008
6007
  const Y = await us(n, j, i);
6009
6008
  C(Y.details), O(Y.size), k(!1);
@@ -6019,13 +6018,13 @@ const ms = ({
6019
6018
  }, V = async () => {
6020
6019
  try {
6021
6020
  const j = Mr.filter((f) => [...h].includes(f.id)).map((f) => f.name);
6022
- ee(!0);
6021
+ _(!0);
6023
6022
  const Y = await cs(n, j, i), { url: E } = Y;
6024
6023
  let K;
6025
6024
  const M = c + "/" + E;
6026
- K = document.createElement("iframe"), K.setAttribute("src", M), K.style.display = "none", document.body.appendChild(K), K.click(), ee(!1), Re("Multi downloaded completed successfully");
6025
+ K = document.createElement("iframe"), K.setAttribute("src", M), K.style.display = "none", document.body.appendChild(K), K.click(), _(!1), Re("Multi downloaded completed successfully");
6027
6026
  } catch (j) {
6028
- ee(!1), A(j.response.data.error.msg), console.error(j);
6027
+ _(!1), A(j.response.data.error.msg), console.error(j);
6029
6028
  }
6030
6029
  };
6031
6030
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
@@ -6174,7 +6173,7 @@ const gs = [
6174
6173
  fileSize: s,
6175
6174
  setFileSize: d
6176
6175
  }) => {
6177
- const [g, h] = $(null), [p, q] = $(null), [C, I] = $(null), [k, W] = $(!1), [O, v] = $("Loading..."), [ee, ne] = $("Loading..."), [oe, Ae] = $(!0), [pe, V] = $(window.innerWidth);
6176
+ const [g, h] = ee(null), [p, q] = ee(null), [C, I] = ee(null), [k, W] = ee(!1), [O, v] = ee("Loading..."), [_, ne] = ee("Loading..."), [oe, Ae] = ee(!0), [pe, V] = ee(window.innerWidth);
6178
6177
  we(() => {
6179
6178
  const w = () => {
6180
6179
  V(window.innerWidth);
@@ -6262,7 +6261,7 @@ const gs = [
6262
6261
  title: A,
6263
6262
  typeOfProduct: n,
6264
6263
  fileSize: s,
6265
- urls: { iosUrl: O, googleUrl: ee },
6264
+ urls: { iosUrl: O, googleUrl: _ },
6266
6265
  handleIosChange: Y,
6267
6266
  handleGoogleChange: E,
6268
6267
  disabled: oe,
@@ -6282,7 +6281,7 @@ const gs = [
6282
6281
  },
6283
6282
  children: /* @__PURE__ */ u.jsx(ln, { isNetworksLoading: !0 })
6284
6283
  }
6285
- ) : (g || C) && (n === "Flex" ? p : !0) && !k && O !== "Loading..." && ee !== "Loading..." && /* @__PURE__ */ u.jsx(
6284
+ ) : (g || C) && (n === "Flex" ? p : !0) && !k && O !== "Loading..." && _ !== "Loading..." && /* @__PURE__ */ u.jsx(
6286
6285
  ms,
6287
6286
  {
6288
6287
  playable: g,
@@ -6294,7 +6293,7 @@ const gs = [
6294
6293
  user: a,
6295
6294
  handleDownloadError: c,
6296
6295
  fetchFileUrl: m,
6297
- urls: { iosUrl: O, googleUrl: ee },
6296
+ urls: { iosUrl: O, googleUrl: _ },
6298
6297
  game: p,
6299
6298
  flexDownloadCount: M,
6300
6299
  disabled: oe
@@ -6790,7 +6789,7 @@ al.default.subscribe(ul);
6790
6789
  function v(E) {
6791
6790
  return E && E.__esModule ? E : { default: E };
6792
6791
  }
6793
- function ee(E, K) {
6792
+ function _(E, K) {
6794
6793
  if (!(E instanceof K))
6795
6794
  throw new TypeError("Cannot call a class as a function");
6796
6795
  }
@@ -6814,7 +6813,7 @@ al.default.subscribe(ul);
6814
6813
  }, j = 0, Y = function(E) {
6815
6814
  oe(K, E);
6816
6815
  function K(M) {
6817
- ee(this, K);
6816
+ _(this, K);
6818
6817
  var f = ne(this, (K.__proto__ || Object.getPrototypeOf(K)).call(this, M));
6819
6818
  return f.setOverlayRef = function(w) {
6820
6819
  f.overlay = w, f.props.overlayRef && f.props.overlayRef(w);
@@ -7379,14 +7378,19 @@ const Ai = /* @__PURE__ */ Li(Kl), El = ({ width: e, height: t }) => /* @__PURE_
7379
7378
  fetchFileUrl: g,
7380
7379
  copyLinkUrl: h
7381
7380
  }) => {
7382
- const [p, q] = $(window.innerWidth), [C, I] = $(!1), [k, W] = $(s), [O, v] = $(!1), [ee, ne] = $(!0), [oe, Ae] = $(null), pe = async () => {
7383
- a === "Flex" ? await er({ _id: r, network: "default" }, A).then((V) => {
7384
- I(!0), W(g + "/" + V.url), V.size > 5 ? v(!0) : v(!1), Ae(V.size), ne(!1);
7385
- }).catch(() => {
7386
- ne(!1);
7387
- }) : await At(A, r, "", "default", !1, 0, {}).then((V) => {
7388
- I(!0), W(g + "/" + V.url);
7389
- });
7381
+ const [p, q] = ee(window.innerWidth), [C, I] = ee(!1), [k, W] = ee(s), [O, v] = ee(!1), [_, ne] = ee(!0), [oe, Ae] = ee(null), pe = async () => {
7382
+ if (!_)
7383
+ a === "Flex" ? await er({ _id: r, network: "default" }, A).then((V) => {
7384
+ I(!0), W(g + "/" + V.url), V.size > 5 ? v(!0) : v(!1), Ae(V.size), ne(!1);
7385
+ }).catch(() => {
7386
+ ne(!1);
7387
+ }) : await At(A, r, "", "default", !1, 0, {}).then(
7388
+ (V) => {
7389
+ I(!0), W(g + "/" + V.url);
7390
+ }
7391
+ );
7392
+ else
7393
+ return;
7390
7394
  };
7391
7395
  return we(() => {
7392
7396
  e ? C || (pe(), I(!0)) : (I(!1), W(""));
@@ -7397,7 +7401,7 @@ const Ai = /* @__PURE__ */ Li(Kl), El = ({ width: e, height: t }) => /* @__PURE_
7397
7401
  return window.addEventListener("resize", V), () => {
7398
7402
  window.removeEventListener("resize", V);
7399
7403
  };
7400
- }, []), ee && a === "Flex" ? null : /* @__PURE__ */ u.jsxs(
7404
+ }, []), _ && a === "Flex" ? null : /* @__PURE__ */ u.jsxs(
7401
7405
  "div",
7402
7406
  {
7403
7407
  onMouseDown: (V) => {