gearboxdownloadmodal 5.0.57 → 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,7 +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) : 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);
6038
6038
  }).filter(
6039
6039
  (O) => O.name === "voodoo" ? a.customer === "customer:20" : !0
6040
6040
  ).map((O) => /* @__PURE__ */ u.jsx(
@@ -6176,7 +6176,7 @@ const bs = [
6176
6176
  return z != null && z.networks || (z.networks = bs), p(z), z;
6177
6177
  }, I = (z) => {
6178
6178
  V(z);
6179
- }, S = (z) => {
6179
+ }, L = (z) => {
6180
6180
  B(z);
6181
6181
  }, E = async (z, v) => {
6182
6182
  var x, N;
@@ -6220,12 +6220,12 @@ const bs = [
6220
6220
  ...z,
6221
6221
  networks: Cs
6222
6222
  }) : k(z), W(!1);
6223
- }, L = async () => await qs(r, i);
6223
+ }, S = async () => await qs(r, i);
6224
6224
  return xe(() => {
6225
6225
  o || (p(null), Z(null), k(null), m(null)), o && (n === "Playable" || n === "Ready" ? (O().then((z) => {
6226
6226
  E(null, z);
6227
6227
  }), le(!1)) : n === "Flex" ? f().then((z) => {
6228
- le(!1), L().then((v) => {
6228
+ le(!1), S().then((v) => {
6229
6229
  o && (E(v, null), le(!1), Z(v));
6230
6230
  });
6231
6231
  }) : n === "Import" && ys(t, i).then((z) => {
@@ -6253,7 +6253,7 @@ const bs = [
6253
6253
  fileSize: s,
6254
6254
  urls: { iosUrl: b, googleUrl: F },
6255
6255
  handleIosChange: I,
6256
- handleGoogleChange: S,
6256
+ handleGoogleChange: L,
6257
6257
  disabled: se,
6258
6258
  api: i,
6259
6259
  downloadFlex: K
@@ -6747,8 +6747,8 @@ ll.default.subscribe(ml);
6747
6747
  value: !0
6748
6748
  });
6749
6749
  var r = Object.assign || function(I) {
6750
- for (var S = 1; S < arguments.length; S++) {
6751
- var E = arguments[S];
6750
+ for (var L = 1; L < arguments.length; L++) {
6751
+ var E = arguments[L];
6752
6752
  for (var f in E)
6753
6753
  Object.prototype.hasOwnProperty.call(E, f) && (I[f] = E[f]);
6754
6754
  }
@@ -6758,60 +6758,60 @@ ll.default.subscribe(ml);
6758
6758
  } : function(I) {
6759
6759
  return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
6760
6760
  }, o = function() {
6761
- function I(S, E) {
6761
+ function I(L, E) {
6762
6762
  for (var f = 0; f < E.length; f++) {
6763
- var L = E[f];
6764
- 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);
6765
6765
  }
6766
6766
  }
6767
- return function(S, E, f) {
6768
- 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;
6769
6769
  };
6770
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);
6771
6771
  function W(I) {
6772
6772
  if (I && I.__esModule)
6773
6773
  return I;
6774
- var S = {};
6774
+ var L = {};
6775
6775
  if (I != null)
6776
6776
  for (var E in I)
6777
- Object.prototype.hasOwnProperty.call(I, E) && (S[E] = I[E]);
6778
- return S.default = I, S;
6777
+ Object.prototype.hasOwnProperty.call(I, E) && (L[E] = I[E]);
6778
+ return L.default = I, L;
6779
6779
  }
6780
6780
  function b(I) {
6781
6781
  return I && I.__esModule ? I : { default: I };
6782
6782
  }
6783
- function V(I, S) {
6784
- if (!(I instanceof S))
6783
+ function V(I, L) {
6784
+ if (!(I instanceof L))
6785
6785
  throw new TypeError("Cannot call a class as a function");
6786
6786
  }
6787
- function F(I, S) {
6787
+ function F(I, L) {
6788
6788
  if (!I)
6789
6789
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6790
- return S && (typeof S == "object" || typeof S == "function") ? S : I;
6790
+ return L && (typeof L == "object" || typeof L == "function") ? L : I;
6791
6791
  }
6792
- function B(I, S) {
6793
- if (typeof S != "function" && S !== null)
6794
- throw new TypeError("Super expression must either be null or a function, not " + typeof S);
6795
- 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);
6796
6796
  }
6797
6797
  var se = {
6798
6798
  overlay: "ReactModal__Overlay",
6799
6799
  content: "ReactModal__Content"
6800
- }, le = function(S) {
6801
- return S.code === "Tab" || S.keyCode === 9;
6802
- }, ue = function(S) {
6803
- 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;
6804
6804
  }, _ = 0, O = function(I) {
6805
- B(S, I);
6806
- function S(E) {
6807
- V(this, S);
6808
- var f = F(this, (S.__proto__ || Object.getPrototypeOf(S)).call(this, E));
6809
- return f.setOverlayRef = function(L) {
6810
- f.overlay = L, f.props.overlayRef && f.props.overlayRef(L);
6811
- }, f.setContentRef = function(L) {
6812
- 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);
6813
6813
  }, f.afterClose = function() {
6814
- 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;
6815
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);
6816
6816
  }, f.open = function() {
6817
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() {
@@ -6827,8 +6827,8 @@ ll.default.subscribe(ml);
6827
6827
  }, f.focusContent = function() {
6828
6828
  return f.content && !f.contentHasFocus() && f.content.focus({ preventScroll: !0 });
6829
6829
  }, f.closeWithTimeout = function() {
6830
- var L = Date.now() + f.props.closeTimeoutMS;
6831
- f.setState({ beforeClose: !0, closesAt: L }, function() {
6830
+ var S = Date.now() + f.props.closeTimeoutMS;
6831
+ f.setState({ beforeClose: !0, closesAt: S }, function() {
6832
6832
  f.closeTimer = setTimeout(f.closeWithoutTimeout, f.state.closesAt - Date.now());
6833
6833
  });
6834
6834
  }, f.closeWithoutTimeout = function() {
@@ -6838,51 +6838,51 @@ ll.default.subscribe(ml);
6838
6838
  afterOpen: !1,
6839
6839
  closesAt: null
6840
6840
  }, f.afterClose);
6841
- }, f.handleKeyDown = function(L) {
6842
- le(L) && (0, m.default)(f.content, L), f.props.shouldCloseOnEsc && ue(L) && (L.stopPropagation(), f.requestClose(L));
6843
- }, f.handleOverlayOnClick = function(L) {
6844
- 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;
6845
6845
  }, f.handleContentOnMouseUp = function() {
6846
6846
  f.shouldClose = !1;
6847
- }, f.handleOverlayOnMouseDown = function(L) {
6848
- !f.props.shouldCloseOnOverlayClick && L.target == f.overlay && L.preventDefault();
6847
+ }, f.handleOverlayOnMouseDown = function(S) {
6848
+ !f.props.shouldCloseOnOverlayClick && S.target == f.overlay && S.preventDefault();
6849
6849
  }, f.handleContentOnClick = function() {
6850
6850
  f.shouldClose = !1;
6851
6851
  }, f.handleContentOnMouseDown = function() {
6852
6852
  f.shouldClose = !1;
6853
- }, f.requestClose = function(L) {
6854
- return f.ownerHandlesClose() && f.props.onRequestClose(L);
6853
+ }, f.requestClose = function(S) {
6854
+ return f.ownerHandlesClose() && f.props.onRequestClose(S);
6855
6855
  }, f.ownerHandlesClose = function() {
6856
6856
  return f.props.onRequestClose;
6857
6857
  }, f.shouldBeClosed = function() {
6858
6858
  return !f.state.isOpen && !f.state.beforeClose;
6859
6859
  }, f.contentHasFocus = function() {
6860
6860
  return document.activeElement === f.content || f.content.contains(document.activeElement);
6861
- }, f.buildClassName = function(L, z) {
6861
+ }, f.buildClassName = function(S, z) {
6862
6862
  var v = (typeof z > "u" ? "undefined" : n(z)) === "object" ? z : {
6863
- base: se[L],
6864
- afterOpen: se[L] + "--after-open",
6865
- beforeClose: se[L] + "--before-close"
6863
+ base: se[S],
6864
+ afterOpen: se[S] + "--after-open",
6865
+ beforeClose: se[S] + "--before-close"
6866
6866
  }, x = v.base;
6867
6867
  return f.state.afterOpen && (x = x + " " + v.afterOpen), f.state.beforeClose && (x = x + " " + v.beforeClose), typeof z == "string" && z ? x + " " + z : x;
6868
- }, f.attributesFromObject = function(L, z) {
6868
+ }, f.attributesFromObject = function(S, z) {
6869
6869
  return Object.keys(z).reduce(function(v, x) {
6870
- return v[L + "-" + x] = z[x], v;
6870
+ return v[S + "-" + x] = z[x], v;
6871
6871
  }, {});
6872
6872
  }, f.state = {
6873
6873
  afterOpen: !1,
6874
6874
  beforeClose: !1
6875
6875
  }, f.shouldClose = null, f.moveFromContentToOverlay = null, f;
6876
6876
  }
6877
- return o(S, [{
6877
+ return o(L, [{
6878
6878
  key: "componentDidMount",
6879
6879
  value: function() {
6880
6880
  this.props.isOpen && this.open();
6881
6881
  }
6882
6882
  }, {
6883
6883
  key: "componentDidUpdate",
6884
- value: function(f, L) {
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 && !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();
6886
6886
  }
6887
6887
  }, {
6888
6888
  key: "componentWillUnmount",
@@ -6892,14 +6892,14 @@ ll.default.subscribe(ml);
6892
6892
  }, {
6893
6893
  key: "beforeOpen",
6894
6894
  value: function() {
6895
- var f = this.props, L = 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(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);
6897
6897
  }
6898
6898
  // Don't steal focus from inner elements
6899
6899
  }, {
6900
6900
  key: "render",
6901
6901
  value: function() {
6902
- 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;
6903
6903
  if (this.shouldBeClosed())
6904
6904
  return null;
6905
6905
  var Q = {
@@ -6909,7 +6909,7 @@ ll.default.subscribe(ml);
6909
6909
  onClick: this.handleOverlayOnClick,
6910
6910
  onMouseDown: this.handleOverlayOnMouseDown
6911
6911
  }, R = r({
6912
- id: L,
6912
+ id: S,
6913
6913
  ref: this.setContentRef,
6914
6914
  style: r({}, D, this.props.style.content),
6915
6915
  className: this.buildClassName("content", z),
@@ -6925,7 +6925,7 @@ ll.default.subscribe(ml);
6925
6925
  }), G = this.props.contentElement(R, N);
6926
6926
  return this.props.overlayElement(Q, G);
6927
6927
  }
6928
- }]), S;
6928
+ }]), L;
6929
6929
  }(i.Component);
6930
6930
  O.defaultProps = {
6931
6931
  style: {