gearboxdownloadmodal 5.0.58 → 5.0.59

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
@@ -154,14 +154,14 @@ function Ei() {
154
154
  }
155
155
  return null;
156
156
  }
157
- var I = Object.assign, S = 0, E, f, L, z, v, x, N;
157
+ var I = Object.assign, L = 0, E, f, S, z, v, x, N;
158
158
  function D() {
159
159
  }
160
160
  D.__reactDisabledLog = !0;
161
161
  function j() {
162
162
  {
163
- if (S === 0) {
164
- E = console.log, f = console.info, L = console.warn, z = console.error, v = console.group, x = console.groupCollapsed, N = console.groupEnd;
163
+ if (L === 0) {
164
+ E = console.log, f = console.info, S = console.warn, z = console.error, v = console.group, x = console.groupCollapsed, N = console.groupEnd;
165
165
  var l = {
166
166
  configurable: !0,
167
167
  enumerable: !0,
@@ -178,12 +178,12 @@ function Ei() {
178
178
  groupEnd: l
179
179
  });
180
180
  }
181
- S++;
181
+ L++;
182
182
  }
183
183
  }
184
184
  function Q() {
185
185
  {
186
- if (S--, S === 0) {
186
+ if (L--, L === 0) {
187
187
  var l = {
188
188
  configurable: !0,
189
189
  enumerable: !0,
@@ -197,7 +197,7 @@ function Ei() {
197
197
  value: f
198
198
  }),
199
199
  warn: I({}, l, {
200
- value: L
200
+ value: S
201
201
  }),
202
202
  error: I({}, l, {
203
203
  value: z
@@ -213,7 +213,7 @@ function Ei() {
213
213
  })
214
214
  });
215
215
  }
216
- S < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
216
+ L < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
217
217
  }
218
218
  }
219
219
  var R = K.ReactCurrentDispatcher, G;
@@ -1500,9 +1500,9 @@ function Vi() {
1500
1500
  }
1501
1501
  }
1502
1502
  }
1503
- var b = c, V = d, F = A, B = a, se = t, le = s, ue = n, _ = p, O = h, I = r, S = i, E = o, f = m, L = !1;
1503
+ var b = c, V = d, F = A, B = a, se = t, le = s, ue = n, _ = p, O = h, I = r, L = i, E = o, f = m, S = !1;
1504
1504
  function z(C) {
1505
- return L || (L = !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.")), v(C) || W(C) === c;
1505
+ return S || (S = !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.")), v(C) || W(C) === c;
1506
1506
  }
1507
1507
  function v(C) {
1508
1508
  return W(C) === d;
@@ -1540,7 +1540,7 @@ function Vi() {
1540
1540
  function Y(C) {
1541
1541
  return W(C) === m;
1542
1542
  }
1543
- Ae.AsyncMode = b, Ae.ConcurrentMode = V, Ae.ContextConsumer = F, Ae.ContextProvider = B, Ae.Element = se, Ae.ForwardRef = le, Ae.Fragment = ue, Ae.Lazy = _, Ae.Memo = O, Ae.Portal = I, Ae.Profiler = S, Ae.StrictMode = E, Ae.Suspense = f, Ae.isAsyncMode = z, Ae.isConcurrentMode = v, Ae.isContextConsumer = x, Ae.isContextProvider = N, Ae.isElement = D, Ae.isForwardRef = j, Ae.isFragment = Q, Ae.isLazy = R, Ae.isMemo = G, Ae.isPortal = X, Ae.isProfiler = ee, Ae.isStrictMode = P, Ae.isSuspense = Y, Ae.isValidElementType = J, Ae.typeOf = W;
1543
+ Ae.AsyncMode = b, Ae.ConcurrentMode = V, Ae.ContextConsumer = F, Ae.ContextProvider = B, Ae.Element = se, Ae.ForwardRef = le, Ae.Fragment = ue, Ae.Lazy = _, Ae.Memo = O, Ae.Portal = I, Ae.Profiler = L, Ae.StrictMode = E, Ae.Suspense = f, Ae.isAsyncMode = z, Ae.isConcurrentMode = v, Ae.isContextConsumer = x, Ae.isContextProvider = N, Ae.isElement = D, Ae.isForwardRef = j, Ae.isFragment = Q, Ae.isLazy = R, Ae.isMemo = G, Ae.isPortal = X, Ae.isProfiler = ee, Ae.isStrictMode = P, Ae.isSuspense = Y, Ae.isValidElementType = J, Ae.typeOf = W;
1544
1544
  }()), Ae;
1545
1545
  }
1546
1546
  var Mn;
@@ -1845,7 +1845,7 @@ function Ui() {
1845
1845
  var N = v[x];
1846
1846
  if (typeof N != "function")
1847
1847
  return i(
1848
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + L(N) + " at index " + x + "."
1848
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + S(N) + " at index " + x + "."
1849
1849
  ), a;
1850
1850
  }
1851
1851
  function D(j, Q, R, G, X) {
@@ -1944,12 +1944,12 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
1944
1944
  return !1;
1945
1945
  }
1946
1946
  }
1947
- function S(v, x) {
1947
+ function L(v, x) {
1948
1948
  return v === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
1949
1949
  }
1950
1950
  function E(v) {
1951
1951
  var x = typeof v;
1952
- return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : S(x, v) ? "symbol" : x;
1952
+ return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : L(x, v) ? "symbol" : x;
1953
1953
  }
1954
1954
  function f(v) {
1955
1955
  if (typeof v > "u" || v === null)
@@ -1963,7 +1963,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
1963
1963
  }
1964
1964
  return x;
1965
1965
  }
1966
- function L(v) {
1966
+ function S(v) {
1967
1967
  var x = f(v);
1968
1968
  switch (x) {
1969
1969
  case "array":
@@ -3812,9 +3812,9 @@ function JA(e) {
3812
3812
  if (O === 1 || I === 1)
3813
3813
  A.displayedToast++, s();
3814
3814
  else {
3815
- const S = I > O ? O : I;
3816
- A.displayedToast = S;
3817
- for (let E = 0; E < S; E++)
3815
+ const L = I > O ? O : I;
3816
+ A.displayedToast = L;
3817
+ for (let E = 0; E < L; E++)
3818
3818
  s();
3819
3819
  }
3820
3820
  } else
@@ -3822,9 +3822,9 @@ function JA(e) {
3822
3822
  } };
3823
3823
  var se, le;
3824
3824
  B.iconOut = function(_) {
3825
- let { theme: O, type: I, isLoading: S, icon: E } = _, f = null;
3826
- const L = { theme: O, type: I };
3827
- return E === !1 || (Ke(E) ? f = E(L) : ft(E) ? f = Yr(E, L) : lt(E) || Mt(E) ? f = E : S ? f = Lr.spinner() : ((z) => z in Lr)(I) && (f = Lr[I](L))), f;
3825
+ let { theme: O, type: I, isLoading: L, icon: E } = _, f = null;
3826
+ const S = { theme: O, type: I };
3827
+ return E === !1 || (Ke(E) ? f = E(S) : ft(E) ? f = Yr(E, S) : lt(E) || Mt(E) ? f = E : L ? f = Lr.spinner() : ((z) => z in Lr)(I) && (f = Lr[I](S))), f;
3828
3828
  }(B), Ke(K.onOpen) && (B.onOpen = K.onOpen), Ke(K.onClose) && (B.onClose = K.onClose), B.closeButton = b.closeButton, K.closeButton === !1 || Or(K.closeButton) ? B.closeButton = K.closeButton : K.closeButton === !0 && (B.closeButton = !Or(b.closeButton) || b.closeButton);
3829
3829
  let ue = h;
3830
3830
  ft(h) && !lt(h.type) ? ue = Yr(h, { closeToast: V, toastProps: B, data: W }) : Ke(h) && (ue = h({ closeToast: V, toastProps: B, data: W })), b.limit && b.limit > 0 && A.count > b.limit && F ? A.queue.push({ toastContent: ue, toastProps: B, staleId: Z }) : Mt(q) ? setTimeout(() => {
@@ -3918,9 +3918,9 @@ function NA(e) {
3918
3918
  } });
3919
3919
  }
3920
3920
  const RA = (e) => {
3921
- const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o } = DA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: d, hideProgressBar: s, closeToast: m, transition: g, position: h, className: p, style: q, bodyClassName: Z, bodyStyle: K, progressClassName: k, progressStyle: J, updateId: W, role: b, progress: V, rtl: F, toastId: B, deleteToast: se, isIn: le, isLoading: ue, iconOut: _, closeOnClick: O, theme: I } = e, S = _e("Toastify__toast", `Toastify__toast-theme--${I}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": F }, { "Toastify__toast--close-on-click": O }), E = Ke(p) ? p({ rtl: F, position: h, type: d, defaultClassName: S }) : _e(S, p), f = !!V || !A, L = { closeToast: m, type: d, theme: I };
3921
+ const { isRunning: t, preventExitTransition: r, toastRef: n, eventHandlers: o } = DA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: d, hideProgressBar: s, closeToast: m, transition: g, position: h, className: p, style: q, bodyClassName: Z, bodyStyle: K, progressClassName: k, progressStyle: J, updateId: W, role: b, progress: V, rtl: F, toastId: B, deleteToast: se, isIn: le, isLoading: ue, iconOut: _, closeOnClick: O, theme: I } = e, L = _e("Toastify__toast", `Toastify__toast-theme--${I}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": F }, { "Toastify__toast--close-on-click": O }), E = Ke(p) ? p({ rtl: F, position: h, type: d, defaultClassName: L }) : _e(L, p), f = !!V || !A, S = { closeToast: m, type: d, theme: I };
3922
3922
  let z = null;
3923
- return i === !1 || (z = Ke(i) ? i(L) : ft(i) ? Yr(i, L) : Uo(L)), oe.createElement(g, { isIn: le, done: se, position: h, preventExitTransition: r, nodeRef: n }, oe.createElement("div", { id: B, onClick: c, className: E, ...o, style: q, ref: n }, oe.createElement("div", { ...le && { role: b }, className: Ke(Z) ? Z({ type: d }) : _e("Toastify__toast-body", Z), style: K }, _ != null && oe.createElement("div", { className: _e("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ue }) }, _), oe.createElement("div", null, a)), z, oe.createElement(NA, { ...W && !f ? { key: `pb-${W}` } : {}, rtl: F, theme: I, delay: A, isRunning: t, isIn: le, closeToast: m, hide: s, type: d, style: J, className: k, controlledProgress: f, progress: V || 0 })));
3923
+ return i === !1 || (z = Ke(i) ? i(S) : ft(i) ? Yr(i, S) : Uo(S)), oe.createElement(g, { isIn: le, done: se, position: h, preventExitTransition: r, nodeRef: n }, oe.createElement("div", { id: B, onClick: c, className: E, ...o, style: q, ref: n }, oe.createElement("div", { ...le && { role: b }, className: Ke(Z) ? Z({ type: d }) : _e("Toastify__toast-body", Z), style: K }, _ != null && oe.createElement("div", { className: _e("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !ue }) }, _), oe.createElement("div", null, a)), z, oe.createElement(NA, { ...W && !f ? { key: `pb-${W}` } : {}, rtl: F, theme: I, delay: A, isRunning: t, isIn: le, closeToast: m, hide: s, type: d, style: J, className: k, controlledProgress: f, progress: V || 0 })));
3924
3924
  }, mr = function(e, t) {
3925
3925
  return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
3926
3926
  }, GA = dr(mr("bounce", !0));
@@ -5207,7 +5207,7 @@ const Er = [
5207
5207
  user: J,
5208
5208
  setSafariCopyLink: W
5209
5209
  }) => {
5210
- const [b, V] = U(!1), [F, B] = U(es(5)), [se, le] = U(""), [ue, _] = U(!1), [O, I] = U(!1), [S, E] = U(!1), [f, L] = U("download"), [z, v] = U(!1), [x, N] = U(!1);
5210
+ const [b, V] = U(!1), [F, B] = U(es(5)), [se, le] = U(""), [ue, _] = U(!1), [O, I] = U(!1), [L, E] = U(!1), [f, S] = U("download"), [z, v] = U(!1), [x, N] = U(!1);
5211
5211
  U(!1);
5212
5212
  let D = {
5213
5213
  aarki: "html,copy",
@@ -5564,7 +5564,7 @@ const Er = [
5564
5564
  } else {
5565
5565
  le("download");
5566
5566
  const Y = h.iosUrl, C = h.googleUrl;
5567
- Z && Z.willSpendCredit ? (q(!0), L("download"), _(!0)) : c !== "Import" && (!Y || !C) ? (q(!0), I(!0)) : (I(!1), _(!1), await G(d, o, void 0, !0, null, !0));
5567
+ Z && Z.willSpendCredit ? (q(!0), S("download"), _(!0)) : c !== "Import" && (!Y || !C) ? (q(!0), I(!0)) : (I(!1), _(!1), await G(d, o, void 0, !0, null, !0));
5568
5568
  }
5569
5569
  },
5570
5570
  children: [
@@ -5597,7 +5597,7 @@ const Er = [
5597
5597
  onClickDonwload: async () => {
5598
5598
  le("copyLink");
5599
5599
  const Y = h.iosUrl, C = h.googleUrl;
5600
- Z && (Z != null && Z.willSpendCredit) ? (L("copy"), q(!0), _(!0)) : c !== "Import" && (!Y || !C) ? (q(!0), I(!0)) : (_(!1), I(!1), await X());
5600
+ Z && (Z != null && Z.willSpendCredit) ? (S("copy"), q(!0), _(!0)) : c !== "Import" && (!Y || !C) ? (q(!0), I(!0)) : (_(!1), I(!1), await X());
5601
5601
  },
5602
5602
  disabled: k,
5603
5603
  children: /* @__PURE__ */ u.jsx(Co, { className: "h-6 w-6 stroke-dark-full" })
@@ -5642,7 +5642,7 @@ const Er = [
5642
5642
  }
5643
5643
  }
5644
5644
  ),
5645
- S && J.customer === "playableFactoryInternal" && /* @__PURE__ */ u.jsx(
5645
+ L && J.customer === "playableFactoryInternal" && /* @__PURE__ */ u.jsx(
5646
5646
  as,
5647
5647
  {
5648
5648
  onClose: () => {
@@ -5996,15 +5996,15 @@ const ps = ({
5996
5996
  I.splice(E, 1), q(I);
5997
5997
  } else
5998
5998
  o === "Playable" || o === "Ready" ? (I.push(O), q([...p, O])) : (I.splice(0), I.push(O), q([O]));
5999
- let S = kr.filter((E) => [...I].includes(E.id)).map((E) => E.name);
6000
- await le(S);
5999
+ let L = kr.filter((E) => [...I].includes(E.id)).map((E) => E.name);
6000
+ await le(L);
6001
6001
  }, _ = async () => {
6002
6002
  try {
6003
- const O = kr.filter((L) => [...p].includes(L.id)).map((L) => L.name);
6003
+ const O = kr.filter((S) => [...p].includes(S.id)).map((S) => S.name);
6004
6004
  F(!0);
6005
- const I = await ms(n, O, i), { url: S } = I;
6005
+ const I = await ms(n, O, i), { url: L } = I;
6006
6006
  let E;
6007
- const f = c + "/" + S;
6007
+ const f = c + "/" + L;
6008
6008
  E = document.createElement("iframe"), E.setAttribute("src", f), E.style.display = "none", document.body.appendChild(E), E.click(), F(!1), ke("Multi downloaded completed successfully");
6009
6009
  } catch (O) {
6010
6010
  F(!1), A(O.response.data.error.msg), console.error(O);
@@ -6034,9 +6034,7 @@ const ps = ({
6034
6034
  },
6035
6035
  children: r && kr.filter((O) => {
6036
6036
  var I;
6037
- return t && ((I = t == null ? void 0 : t.networks) == null ? void 0 : I.length) > 0 ? t == null ? void 0 : t.networks.includes(O.name) : o === "Import" ? e == null ? void 0 : e.networks.some(
6038
- (S) => S.name === O.name
6039
- ) : e == null ? void 0 : e.networks.includes(O.name);
6037
+ return t && ((I = t == null ? void 0 : t.networks) == null ? void 0 : I.length) > 0 ? t == null ? void 0 : t.networks.includes(O.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((L) => L.status === "paid").some((L) => L.name === O.name) : e == null ? void 0 : e.networks.includes(O.name);
6040
6038
  }).filter(
6041
6039
  (O) => O.name === "voodoo" ? a.customer === "customer:20" : !0
6042
6040
  ).map((O) => /* @__PURE__ */ u.jsx(
@@ -6178,7 +6176,7 @@ const bs = [
6178
6176
  return z != null && z.networks || (z.networks = bs), p(z), z;
6179
6177
  }, I = (z) => {
6180
6178
  V(z);
6181
- }, S = (z) => {
6179
+ }, L = (z) => {
6182
6180
  B(z);
6183
6181
  }, E = async (z, v) => {
6184
6182
  var x, N;
@@ -6222,12 +6220,12 @@ const bs = [
6222
6220
  ...z,
6223
6221
  networks: Cs
6224
6222
  }) : k(z), W(!1);
6225
- }, L = async () => await qs(r, i);
6223
+ }, S = async () => await qs(r, i);
6226
6224
  return xe(() => {
6227
6225
  o || (p(null), Z(null), k(null), m(null)), o && (n === "Playable" || n === "Ready" ? (O().then((z) => {
6228
6226
  E(null, z);
6229
6227
  }), le(!1)) : n === "Flex" ? f().then((z) => {
6230
- le(!1), L().then((v) => {
6228
+ le(!1), S().then((v) => {
6231
6229
  o && (E(v, null), le(!1), Z(v));
6232
6230
  });
6233
6231
  }) : n === "Import" && ys(t, i).then((z) => {
@@ -6255,7 +6253,7 @@ const bs = [
6255
6253
  fileSize: s,
6256
6254
  urls: { iosUrl: b, googleUrl: F },
6257
6255
  handleIosChange: I,
6258
- handleGoogleChange: S,
6256
+ handleGoogleChange: L,
6259
6257
  disabled: se,
6260
6258
  api: i,
6261
6259
  downloadFlex: K
@@ -6749,8 +6747,8 @@ ll.default.subscribe(ml);
6749
6747
  value: !0
6750
6748
  });
6751
6749
  var r = Object.assign || function(I) {
6752
- for (var S = 1; S < arguments.length; S++) {
6753
- var E = arguments[S];
6750
+ for (var L = 1; L < arguments.length; L++) {
6751
+ var E = arguments[L];
6754
6752
  for (var f in E)
6755
6753
  Object.prototype.hasOwnProperty.call(E, f) && (I[f] = E[f]);
6756
6754
  }
@@ -6760,60 +6758,60 @@ ll.default.subscribe(ml);
6760
6758
  } : function(I) {
6761
6759
  return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
6762
6760
  }, o = function() {
6763
- function I(S, E) {
6761
+ function I(L, E) {
6764
6762
  for (var f = 0; f < E.length; f++) {
6765
- var L = E[f];
6766
- L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(S, L.key, L);
6763
+ var S = E[f];
6764
+ S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(L, S.key, S);
6767
6765
  }
6768
6766
  }
6769
- return function(S, E, f) {
6770
- return E && I(S.prototype, E), f && I(S, f), S;
6767
+ return function(L, E, f) {
6768
+ return E && I(L.prototype, E), f && I(L, f), L;
6771
6769
  };
6772
6770
  }(), i = oe, a = ir, A = b(a), c = Ne, d = W(c), s = ks, m = b(s), g = Re, h = W(g), p = gt, q = W(p), Z = De, K = b(Z), k = vt, J = b(k);
6773
6771
  function W(I) {
6774
6772
  if (I && I.__esModule)
6775
6773
  return I;
6776
- var S = {};
6774
+ var L = {};
6777
6775
  if (I != null)
6778
6776
  for (var E in I)
6779
- Object.prototype.hasOwnProperty.call(I, E) && (S[E] = I[E]);
6780
- return S.default = I, S;
6777
+ Object.prototype.hasOwnProperty.call(I, E) && (L[E] = I[E]);
6778
+ return L.default = I, L;
6781
6779
  }
6782
6780
  function b(I) {
6783
6781
  return I && I.__esModule ? I : { default: I };
6784
6782
  }
6785
- function V(I, S) {
6786
- if (!(I instanceof S))
6783
+ function V(I, L) {
6784
+ if (!(I instanceof L))
6787
6785
  throw new TypeError("Cannot call a class as a function");
6788
6786
  }
6789
- function F(I, S) {
6787
+ function F(I, L) {
6790
6788
  if (!I)
6791
6789
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6792
- return S && (typeof S == "object" || typeof S == "function") ? S : I;
6790
+ return L && (typeof L == "object" || typeof L == "function") ? L : I;
6793
6791
  }
6794
- function B(I, S) {
6795
- if (typeof S != "function" && S !== null)
6796
- throw new TypeError("Super expression must either be null or a function, not " + typeof S);
6797
- I.prototype = Object.create(S && S.prototype, { constructor: { value: I, enumerable: !1, writable: !0, configurable: !0 } }), S && (Object.setPrototypeOf ? Object.setPrototypeOf(I, S) : I.__proto__ = S);
6792
+ function B(I, L) {
6793
+ if (typeof L != "function" && L !== null)
6794
+ throw new TypeError("Super expression must either be null or a function, not " + typeof L);
6795
+ I.prototype = Object.create(L && L.prototype, { constructor: { value: I, enumerable: !1, writable: !0, configurable: !0 } }), L && (Object.setPrototypeOf ? Object.setPrototypeOf(I, L) : I.__proto__ = L);
6798
6796
  }
6799
6797
  var se = {
6800
6798
  overlay: "ReactModal__Overlay",
6801
6799
  content: "ReactModal__Content"
6802
- }, le = function(S) {
6803
- return S.code === "Tab" || S.keyCode === 9;
6804
- }, ue = function(S) {
6805
- return S.code === "Escape" || S.keyCode === 27;
6800
+ }, le = function(L) {
6801
+ return L.code === "Tab" || L.keyCode === 9;
6802
+ }, ue = function(L) {
6803
+ return L.code === "Escape" || L.keyCode === 27;
6806
6804
  }, _ = 0, O = function(I) {
6807
- B(S, I);
6808
- function S(E) {
6809
- V(this, S);
6810
- var f = F(this, (S.__proto__ || Object.getPrototypeOf(S)).call(this, E));
6811
- return f.setOverlayRef = function(L) {
6812
- f.overlay = L, f.props.overlayRef && f.props.overlayRef(L);
6813
- }, f.setContentRef = function(L) {
6814
- f.content = L, f.props.contentRef && f.props.contentRef(L);
6805
+ B(L, I);
6806
+ function L(E) {
6807
+ V(this, L);
6808
+ var f = F(this, (L.__proto__ || Object.getPrototypeOf(L)).call(this, E));
6809
+ return f.setOverlayRef = function(S) {
6810
+ f.overlay = S, f.props.overlayRef && f.props.overlayRef(S);
6811
+ }, f.setContentRef = function(S) {
6812
+ f.content = S, f.props.contentRef && f.props.contentRef(S);
6815
6813
  }, f.afterClose = function() {
6816
- var L = f.props, z = L.appElement, v = L.ariaHideApp, x = L.htmlOpenClassName, N = L.bodyOpenClassName, D = L.parentSelector, j = D && D().ownerDocument || document;
6814
+ var S = f.props, z = S.appElement, v = S.ariaHideApp, x = S.htmlOpenClassName, N = S.bodyOpenClassName, D = S.parentSelector, j = D && D().ownerDocument || document;
6817
6815
  N && q.remove(j.body, N), x && q.remove(j.getElementsByTagName("html")[0], x), v && _ > 0 && (_ -= 1, _ === 0 && h.show(z)), f.props.shouldFocusAfterRender && (f.props.shouldReturnFocusAfterClose ? (d.returnFocus(f.props.preventScroll), d.teardownScopedFocus()) : d.popWithoutFocus()), f.props.onAfterClose && f.props.onAfterClose(), J.default.deregister(f);
6818
6816
  }, f.open = function() {
6819
6817
  f.beforeOpen(), f.state.afterOpen && f.state.beforeClose ? (clearTimeout(f.closeTimer), f.setState({ beforeClose: !1 })) : (f.props.shouldFocusAfterRender && (d.setupScopedFocus(f.node), d.markForFocusLater()), f.setState({ isOpen: !0 }, function() {
@@ -6829,8 +6827,8 @@ ll.default.subscribe(ml);
6829
6827
  }, f.focusContent = function() {
6830
6828
  return f.content && !f.contentHasFocus() && f.content.focus({ preventScroll: !0 });
6831
6829
  }, f.closeWithTimeout = function() {
6832
- var L = Date.now() + f.props.closeTimeoutMS;
6833
- f.setState({ beforeClose: !0, closesAt: L }, function() {
6830
+ var S = Date.now() + f.props.closeTimeoutMS;
6831
+ f.setState({ beforeClose: !0, closesAt: S }, function() {
6834
6832
  f.closeTimer = setTimeout(f.closeWithoutTimeout, f.state.closesAt - Date.now());
6835
6833
  });
6836
6834
  }, f.closeWithoutTimeout = function() {
@@ -6840,51 +6838,51 @@ ll.default.subscribe(ml);
6840
6838
  afterOpen: !1,
6841
6839
  closesAt: null
6842
6840
  }, f.afterClose);
6843
- }, f.handleKeyDown = function(L) {
6844
- le(L) && (0, m.default)(f.content, L), f.props.shouldCloseOnEsc && ue(L) && (L.stopPropagation(), f.requestClose(L));
6845
- }, f.handleOverlayOnClick = function(L) {
6846
- f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(L) : f.focusContent()), f.shouldClose = null;
6841
+ }, f.handleKeyDown = function(S) {
6842
+ le(S) && (0, m.default)(f.content, S), f.props.shouldCloseOnEsc && ue(S) && (S.stopPropagation(), f.requestClose(S));
6843
+ }, f.handleOverlayOnClick = function(S) {
6844
+ f.shouldClose === null && (f.shouldClose = !0), f.shouldClose && f.props.shouldCloseOnOverlayClick && (f.ownerHandlesClose() ? f.requestClose(S) : f.focusContent()), f.shouldClose = null;
6847
6845
  }, f.handleContentOnMouseUp = function() {
6848
6846
  f.shouldClose = !1;
6849
- }, f.handleOverlayOnMouseDown = function(L) {
6850
- !f.props.shouldCloseOnOverlayClick && L.target == f.overlay && L.preventDefault();
6847
+ }, f.handleOverlayOnMouseDown = function(S) {
6848
+ !f.props.shouldCloseOnOverlayClick && S.target == f.overlay && S.preventDefault();
6851
6849
  }, f.handleContentOnClick = function() {
6852
6850
  f.shouldClose = !1;
6853
6851
  }, f.handleContentOnMouseDown = function() {
6854
6852
  f.shouldClose = !1;
6855
- }, f.requestClose = function(L) {
6856
- return f.ownerHandlesClose() && f.props.onRequestClose(L);
6853
+ }, f.requestClose = function(S) {
6854
+ return f.ownerHandlesClose() && f.props.onRequestClose(S);
6857
6855
  }, f.ownerHandlesClose = function() {
6858
6856
  return f.props.onRequestClose;
6859
6857
  }, f.shouldBeClosed = function() {
6860
6858
  return !f.state.isOpen && !f.state.beforeClose;
6861
6859
  }, f.contentHasFocus = function() {
6862
6860
  return document.activeElement === f.content || f.content.contains(document.activeElement);
6863
- }, f.buildClassName = function(L, z) {
6861
+ }, f.buildClassName = function(S, z) {
6864
6862
  var v = (typeof z > "u" ? "undefined" : n(z)) === "object" ? z : {
6865
- base: se[L],
6866
- afterOpen: se[L] + "--after-open",
6867
- beforeClose: se[L] + "--before-close"
6863
+ base: se[S],
6864
+ afterOpen: se[S] + "--after-open",
6865
+ beforeClose: se[S] + "--before-close"
6868
6866
  }, x = v.base;
6869
6867
  return f.state.afterOpen && (x = x + " " + v.afterOpen), f.state.beforeClose && (x = x + " " + v.beforeClose), typeof z == "string" && z ? x + " " + z : x;
6870
- }, f.attributesFromObject = function(L, z) {
6868
+ }, f.attributesFromObject = function(S, z) {
6871
6869
  return Object.keys(z).reduce(function(v, x) {
6872
- return v[L + "-" + x] = z[x], v;
6870
+ return v[S + "-" + x] = z[x], v;
6873
6871
  }, {});
6874
6872
  }, f.state = {
6875
6873
  afterOpen: !1,
6876
6874
  beforeClose: !1
6877
6875
  }, f.shouldClose = null, f.moveFromContentToOverlay = null, f;
6878
6876
  }
6879
- return o(S, [{
6877
+ return o(L, [{
6880
6878
  key: "componentDidMount",
6881
6879
  value: function() {
6882
6880
  this.props.isOpen && this.open();
6883
6881
  }
6884
6882
  }, {
6885
6883
  key: "componentDidUpdate",
6886
- value: function(f, L) {
6887
- process.env.NODE_ENV !== "production" && (f.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), f.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !f.isOpen ? this.open() : !this.props.isOpen && f.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !L.isOpen && this.focusContent();
6884
+ value: function(f, S) {
6885
+ process.env.NODE_ENV !== "production" && (f.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), f.htmlOpenClassName !== this.props.htmlOpenClassName && console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')), this.props.isOpen && !f.isOpen ? this.open() : !this.props.isOpen && f.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !S.isOpen && this.focusContent();
6888
6886
  }
6889
6887
  }, {
6890
6888
  key: "componentWillUnmount",
@@ -6894,14 +6892,14 @@ ll.default.subscribe(ml);
6894
6892
  }, {
6895
6893
  key: "beforeOpen",
6896
6894
  value: function() {
6897
- var f = this.props, L = f.appElement, z = f.ariaHideApp, v = f.htmlOpenClassName, x = f.bodyOpenClassName, N = f.parentSelector, D = N && N().ownerDocument || document;
6898
- x && q.add(D.body, x), v && q.add(D.getElementsByTagName("html")[0], v), z && (_ += 1, h.hide(L)), J.default.register(this);
6895
+ var f = this.props, S = f.appElement, z = f.ariaHideApp, v = f.htmlOpenClassName, x = f.bodyOpenClassName, N = f.parentSelector, D = N && N().ownerDocument || document;
6896
+ x && q.add(D.body, x), v && q.add(D.getElementsByTagName("html")[0], v), z && (_ += 1, h.hide(S)), J.default.register(this);
6899
6897
  }
6900
6898
  // Don't steal focus from inner elements
6901
6899
  }, {
6902
6900
  key: "render",
6903
6901
  value: function() {
6904
- var f = this.props, L = f.id, z = f.className, v = f.overlayClassName, x = f.defaultStyles, N = f.children, D = z ? {} : x.content, j = v ? {} : x.overlay;
6902
+ var f = this.props, S = f.id, z = f.className, v = f.overlayClassName, x = f.defaultStyles, N = f.children, D = z ? {} : x.content, j = v ? {} : x.overlay;
6905
6903
  if (this.shouldBeClosed())
6906
6904
  return null;
6907
6905
  var Q = {
@@ -6911,7 +6909,7 @@ ll.default.subscribe(ml);
6911
6909
  onClick: this.handleOverlayOnClick,
6912
6910
  onMouseDown: this.handleOverlayOnMouseDown
6913
6911
  }, R = r({
6914
- id: L,
6912
+ id: S,
6915
6913
  ref: this.setContentRef,
6916
6914
  style: r({}, D, this.props.style.content),
6917
6915
  className: this.buildClassName("content", z),
@@ -6927,7 +6925,7 @@ ll.default.subscribe(ml);
6927
6925
  }), G = this.props.contentElement(R, N);
6928
6926
  return this.props.overlayElement(Q, G);
6929
6927
  }
6930
- }]), S;
6928
+ }]), L;
6931
6929
  }(i.Component);
6932
6930
  O.defaultProps = {
6933
6931
  style: {