gearboxdownloadmodal 5.0.73 → 5.0.75
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 +163 -155
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -90,10 +90,10 @@ function Li() {
|
|
|
90
90
|
le.unshift("Warning: " + Z), Function.prototype.apply.call(console[l], console, le);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
var M = !1, b = !1, V = !1, ee = !1,
|
|
93
|
+
var M = !1, b = !1, V = !1, ee = !1, H = !1, ne;
|
|
94
94
|
ne = Symbol.for("react.module.reference");
|
|
95
95
|
function re(l) {
|
|
96
|
-
return !!(typeof l == "string" || typeof l == "function" || l === r || l === i ||
|
|
96
|
+
return !!(typeof l == "string" || typeof l == "function" || l === r || l === i || H || l === o || l === d || l === s || ee || l === h || M || b || V || typeof l == "object" && l !== null && (l.$$typeof === v || l.$$typeof === m || 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.
|
|
@@ -154,14 +154,14 @@ function Li() {
|
|
|
154
154
|
}
|
|
155
155
|
return null;
|
|
156
156
|
}
|
|
157
|
-
var x = Object.assign, O = 0, j, p,
|
|
157
|
+
var x = Object.assign, O = 0, j, p, W, K, g, I, J;
|
|
158
158
|
function z() {
|
|
159
159
|
}
|
|
160
160
|
z.__reactDisabledLog = !0;
|
|
161
161
|
function Y() {
|
|
162
162
|
{
|
|
163
163
|
if (O === 0) {
|
|
164
|
-
j = console.log, p = console.info,
|
|
164
|
+
j = console.log, p = console.info, W = console.warn, K = console.error, g = console.group, I = console.groupCollapsed, J = console.groupEnd;
|
|
165
165
|
var l = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -181,7 +181,7 @@ function Li() {
|
|
|
181
181
|
O++;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function X() {
|
|
185
185
|
{
|
|
186
186
|
if (O--, O === 0) {
|
|
187
187
|
var l = {
|
|
@@ -197,10 +197,10 @@ function Li() {
|
|
|
197
197
|
value: p
|
|
198
198
|
}),
|
|
199
199
|
warn: x({}, l, {
|
|
200
|
-
value:
|
|
200
|
+
value: W
|
|
201
201
|
}),
|
|
202
202
|
error: x({}, l, {
|
|
203
|
-
value:
|
|
203
|
+
value: K
|
|
204
204
|
}),
|
|
205
205
|
group: x({}, l, {
|
|
206
206
|
value: g
|
|
@@ -301,7 +301,7 @@ function Li() {
|
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
} finally {
|
|
304
|
-
te = !1, k.current = le,
|
|
304
|
+
te = !1, k.current = le, X(), Error.prepareStackTrace = oe;
|
|
305
305
|
}
|
|
306
306
|
var At = l ? l.displayName || l.name : "", yr = At ? R(At) : "";
|
|
307
307
|
return typeof l == "function" && U.set(l, yr), yr;
|
|
@@ -1500,9 +1500,9 @@ function Hi() {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
var b = c, V = d, ee = A,
|
|
1504
|
-
function
|
|
1505
|
-
return
|
|
1503
|
+
var b = c, V = d, ee = A, H = a, ne = t, re = s, se = r, Q = f, P = h, x = n, O = i, j = o, p = m, W = !1;
|
|
1504
|
+
function K(S) {
|
|
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.")), g(S) || M(S) === c;
|
|
1506
1506
|
}
|
|
1507
1507
|
function g(S) {
|
|
1508
1508
|
return M(S) === d;
|
|
@@ -1519,7 +1519,7 @@ function Hi() {
|
|
|
1519
1519
|
function Y(S) {
|
|
1520
1520
|
return M(S) === s;
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function X(S) {
|
|
1523
1523
|
return M(S) === r;
|
|
1524
1524
|
}
|
|
1525
1525
|
function k(S) {
|
|
@@ -1540,7 +1540,7 @@ function Hi() {
|
|
|
1540
1540
|
function ge(S) {
|
|
1541
1541
|
return M(S) === m;
|
|
1542
1542
|
}
|
|
1543
|
-
Ae.AsyncMode = b, Ae.ConcurrentMode = V, Ae.ContextConsumer = ee, Ae.ContextProvider =
|
|
1543
|
+
Ae.AsyncMode = b, Ae.ConcurrentMode = V, Ae.ContextConsumer = ee, Ae.ContextProvider = H, Ae.Element = ne, Ae.ForwardRef = re, Ae.Fragment = se, Ae.Lazy = Q, Ae.Memo = P, Ae.Portal = x, Ae.Profiler = O, Ae.StrictMode = j, Ae.Suspense = p, Ae.isAsyncMode = K, Ae.isConcurrentMode = g, Ae.isContextConsumer = I, Ae.isContextProvider = J, Ae.isElement = z, Ae.isForwardRef = Y, Ae.isFragment = X, Ae.isLazy = k, Ae.isMemo = N, Ae.isPortal = R, Ae.isProfiler = te, Ae.isStrictMode = U, Ae.isSuspense = ge, Ae.isValidElementType = D, Ae.typeOf = M;
|
|
1544
1544
|
}()), Ae;
|
|
1545
1545
|
}
|
|
1546
1546
|
var wr;
|
|
@@ -1701,7 +1701,7 @@ function Vi() {
|
|
|
1701
1701
|
elementType: b(),
|
|
1702
1702
|
instanceOf: V,
|
|
1703
1703
|
node: re(),
|
|
1704
|
-
objectOf:
|
|
1704
|
+
objectOf: H,
|
|
1705
1705
|
oneOf: ee,
|
|
1706
1706
|
oneOfType: ne,
|
|
1707
1707
|
shape: Q,
|
|
@@ -1717,7 +1717,7 @@ function Vi() {
|
|
|
1717
1717
|
function C(g) {
|
|
1718
1718
|
if (process.env.NODE_ENV !== "production")
|
|
1719
1719
|
var I = {}, J = 0;
|
|
1720
|
-
function z(
|
|
1720
|
+
function z(X, k, N, R, te, U, ge) {
|
|
1721
1721
|
if (R = R || v, U = U || N, ge !== n) {
|
|
1722
1722
|
if (c) {
|
|
1723
1723
|
var S = new Error(
|
|
@@ -1732,18 +1732,18 @@ function Vi() {
|
|
|
1732
1732
|
), I[we] = !0, J++);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
return k[N] == null ?
|
|
1735
|
+
return k[N] == null ? X ? k[N] === null ? new q("The " + te + " `" + U + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new q("The " + te + " `" + U + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : g(k, N, R, te, U);
|
|
1736
1736
|
}
|
|
1737
1737
|
var Y = z.bind(null, !1);
|
|
1738
1738
|
return Y.isRequired = z.bind(null, !0), Y;
|
|
1739
1739
|
}
|
|
1740
1740
|
function w(g) {
|
|
1741
|
-
function I(J, z, Y,
|
|
1741
|
+
function I(J, z, Y, X, k, N) {
|
|
1742
1742
|
var R = J[z], te = j(R);
|
|
1743
1743
|
if (te !== g) {
|
|
1744
1744
|
var U = p(R);
|
|
1745
1745
|
return new q(
|
|
1746
|
-
"Invalid " +
|
|
1746
|
+
"Invalid " + X + " `" + k + "` of type " + ("`" + U + "` supplied to `" + Y + "`, expected ") + ("`" + g + "`."),
|
|
1747
1747
|
{ expectedType: g }
|
|
1748
1748
|
);
|
|
1749
1749
|
}
|
|
@@ -1755,16 +1755,16 @@ function Vi() {
|
|
|
1755
1755
|
return C(a);
|
|
1756
1756
|
}
|
|
1757
1757
|
function D(g) {
|
|
1758
|
-
function I(J, z, Y,
|
|
1758
|
+
function I(J, z, Y, X, k) {
|
|
1759
1759
|
if (typeof g != "function")
|
|
1760
1760
|
return new q("Property `" + k + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
1761
1761
|
var N = J[z];
|
|
1762
1762
|
if (!Array.isArray(N)) {
|
|
1763
1763
|
var R = j(N);
|
|
1764
|
-
return new q("Invalid " +
|
|
1764
|
+
return new q("Invalid " + X + " `" + k + "` of type " + ("`" + R + "` supplied to `" + Y + "`, expected an array."));
|
|
1765
1765
|
}
|
|
1766
1766
|
for (var te = 0; te < N.length; te++) {
|
|
1767
|
-
var U = g(N, te, Y,
|
|
1767
|
+
var U = g(N, te, Y, X, k + "[" + te + "]", n);
|
|
1768
1768
|
if (U instanceof Error)
|
|
1769
1769
|
return U;
|
|
1770
1770
|
}
|
|
@@ -1773,32 +1773,32 @@ function Vi() {
|
|
|
1773
1773
|
return C(I);
|
|
1774
1774
|
}
|
|
1775
1775
|
function M() {
|
|
1776
|
-
function g(I, J, z, Y,
|
|
1776
|
+
function g(I, J, z, Y, X) {
|
|
1777
1777
|
var k = I[J];
|
|
1778
1778
|
if (!A(k)) {
|
|
1779
1779
|
var N = j(k);
|
|
1780
|
-
return new q("Invalid " + Y + " `" +
|
|
1780
|
+
return new q("Invalid " + Y + " `" + X + "` of type " + ("`" + N + "` supplied to `" + z + "`, expected a single ReactElement."));
|
|
1781
1781
|
}
|
|
1782
1782
|
return null;
|
|
1783
1783
|
}
|
|
1784
1784
|
return C(g);
|
|
1785
1785
|
}
|
|
1786
1786
|
function b() {
|
|
1787
|
-
function g(I, J, z, Y,
|
|
1787
|
+
function g(I, J, z, Y, X) {
|
|
1788
1788
|
var k = I[J];
|
|
1789
1789
|
if (!e.isValidElementType(k)) {
|
|
1790
1790
|
var N = j(k);
|
|
1791
|
-
return new q("Invalid " + Y + " `" +
|
|
1791
|
+
return new q("Invalid " + Y + " `" + X + "` of type " + ("`" + N + "` supplied to `" + z + "`, expected a single ReactElement type."));
|
|
1792
1792
|
}
|
|
1793
1793
|
return null;
|
|
1794
1794
|
}
|
|
1795
1795
|
return C(g);
|
|
1796
1796
|
}
|
|
1797
1797
|
function V(g) {
|
|
1798
|
-
function I(J, z, Y,
|
|
1798
|
+
function I(J, z, Y, X, k) {
|
|
1799
1799
|
if (!(J[z] instanceof g)) {
|
|
1800
|
-
var N = g.name || v, R =
|
|
1801
|
-
return new q("Invalid " +
|
|
1800
|
+
var N = g.name || v, R = K(J[z]);
|
|
1801
|
+
return new q("Invalid " + X + " `" + k + "` of type " + ("`" + R + "` supplied to `" + Y + "`, expected ") + ("instance of `" + N + "`."));
|
|
1802
1802
|
}
|
|
1803
1803
|
return null;
|
|
1804
1804
|
}
|
|
@@ -1809,7 +1809,7 @@ function Vi() {
|
|
|
1809
1809
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1810
1810
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1811
1811
|
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
1812
|
-
function I(J, z, Y,
|
|
1812
|
+
function I(J, z, Y, X, k) {
|
|
1813
1813
|
for (var N = J[z], R = 0; R < g.length; R++)
|
|
1814
1814
|
if (f(N, g[R]))
|
|
1815
1815
|
return null;
|
|
@@ -1817,20 +1817,20 @@ function Vi() {
|
|
|
1817
1817
|
var we = p(S);
|
|
1818
1818
|
return we === "symbol" ? String(S) : S;
|
|
1819
1819
|
});
|
|
1820
|
-
return new q("Invalid " +
|
|
1820
|
+
return new q("Invalid " + X + " `" + k + "` of value `" + String(N) + "` " + ("supplied to `" + Y + "`, expected one of " + te + "."));
|
|
1821
1821
|
}
|
|
1822
1822
|
return C(I);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
function I(J, z, Y,
|
|
1824
|
+
function H(g) {
|
|
1825
|
+
function I(J, z, Y, X, k) {
|
|
1826
1826
|
if (typeof g != "function")
|
|
1827
1827
|
return new q("Property `" + k + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
1828
1828
|
var N = J[z], R = j(N);
|
|
1829
1829
|
if (R !== "object")
|
|
1830
|
-
return new q("Invalid " +
|
|
1830
|
+
return new q("Invalid " + X + " `" + k + "` of type " + ("`" + R + "` supplied to `" + Y + "`, expected an object."));
|
|
1831
1831
|
for (var te in N)
|
|
1832
1832
|
if (r(N, te)) {
|
|
1833
|
-
var U = g(N, te, Y,
|
|
1833
|
+
var U = g(N, te, Y, X, k + "." + te, n);
|
|
1834
1834
|
if (U instanceof Error)
|
|
1835
1835
|
return U;
|
|
1836
1836
|
}
|
|
@@ -1845,12 +1845,12 @@ function Vi() {
|
|
|
1845
1845
|
var J = g[I];
|
|
1846
1846
|
if (typeof J != "function")
|
|
1847
1847
|
return i(
|
|
1848
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1848
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(J) + " at index " + I + "."
|
|
1849
1849
|
), a;
|
|
1850
1850
|
}
|
|
1851
|
-
function z(Y,
|
|
1851
|
+
function z(Y, X, k, N, R) {
|
|
1852
1852
|
for (var te = [], U = 0; U < g.length; U++) {
|
|
1853
|
-
var ge = g[U], S = ge(Y,
|
|
1853
|
+
var ge = g[U], S = ge(Y, X, k, N, R, n);
|
|
1854
1854
|
if (S == null)
|
|
1855
1855
|
return null;
|
|
1856
1856
|
S.data && r(S.data, "expectedType") && te.push(S.data.expectedType);
|
|
@@ -1861,8 +1861,8 @@ function Vi() {
|
|
|
1861
1861
|
return C(z);
|
|
1862
1862
|
}
|
|
1863
1863
|
function re() {
|
|
1864
|
-
function g(I, J, z, Y,
|
|
1865
|
-
return x(I[J]) ? null : new q("Invalid " + Y + " `" +
|
|
1864
|
+
function g(I, J, z, Y, X) {
|
|
1865
|
+
return x(I[J]) ? null : new q("Invalid " + Y + " `" + X + "` supplied to " + ("`" + z + "`, expected a ReactNode."));
|
|
1866
1866
|
}
|
|
1867
1867
|
return C(g);
|
|
1868
1868
|
}
|
|
@@ -1872,15 +1872,15 @@ function Vi() {
|
|
|
1872
1872
|
);
|
|
1873
1873
|
}
|
|
1874
1874
|
function Q(g) {
|
|
1875
|
-
function I(J, z, Y,
|
|
1875
|
+
function I(J, z, Y, X, k) {
|
|
1876
1876
|
var N = J[z], R = j(N);
|
|
1877
1877
|
if (R !== "object")
|
|
1878
|
-
return new q("Invalid " +
|
|
1878
|
+
return new q("Invalid " + X + " `" + k + "` of type `" + R + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
1879
1879
|
for (var te in g) {
|
|
1880
1880
|
var U = g[te];
|
|
1881
1881
|
if (typeof U != "function")
|
|
1882
|
-
return se(Y,
|
|
1883
|
-
var ge = U(N, te, Y,
|
|
1882
|
+
return se(Y, X, k, te, p(U));
|
|
1883
|
+
var ge = U(N, te, Y, X, k + "." + te, n);
|
|
1884
1884
|
if (ge)
|
|
1885
1885
|
return ge;
|
|
1886
1886
|
}
|
|
@@ -1889,21 +1889,21 @@ function Vi() {
|
|
|
1889
1889
|
return C(I);
|
|
1890
1890
|
}
|
|
1891
1891
|
function P(g) {
|
|
1892
|
-
function I(J, z, Y,
|
|
1892
|
+
function I(J, z, Y, X, k) {
|
|
1893
1893
|
var N = J[z], R = j(N);
|
|
1894
1894
|
if (R !== "object")
|
|
1895
|
-
return new q("Invalid " +
|
|
1895
|
+
return new q("Invalid " + X + " `" + k + "` of type `" + R + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
1896
1896
|
var te = t({}, J[z], g);
|
|
1897
1897
|
for (var U in te) {
|
|
1898
1898
|
var ge = g[U];
|
|
1899
1899
|
if (r(g, U) && typeof ge != "function")
|
|
1900
|
-
return se(Y,
|
|
1900
|
+
return se(Y, X, k, U, p(ge));
|
|
1901
1901
|
if (!ge)
|
|
1902
1902
|
return new q(
|
|
1903
|
-
"Invalid " +
|
|
1903
|
+
"Invalid " + X + " `" + k + "` key `" + U + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(J[z], null, " ") + `
|
|
1904
1904
|
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
1905
1905
|
);
|
|
1906
|
-
var S = ge(N, U, Y,
|
|
1906
|
+
var S = ge(N, U, Y, X, k + "." + U, n);
|
|
1907
1907
|
if (S)
|
|
1908
1908
|
return S;
|
|
1909
1909
|
}
|
|
@@ -1963,7 +1963,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1963
1963
|
}
|
|
1964
1964
|
return I;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function W(g) {
|
|
1967
1967
|
var I = p(g);
|
|
1968
1968
|
switch (I) {
|
|
1969
1969
|
case "array":
|
|
@@ -1977,7 +1977,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1977
1977
|
return I;
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function K(g) {
|
|
1981
1981
|
return !g.constructor || !g.constructor.name ? v : g.constructor.name;
|
|
1982
1982
|
}
|
|
1983
1983
|
return h.checkPropTypes = o, h.resetWarningCache = o.resetWarningCache, h.PropTypes = h, h;
|
|
@@ -3830,7 +3830,7 @@ function RA(e) {
|
|
|
3830
3830
|
return;
|
|
3831
3831
|
const { toastId: E, updateId: D, data: M } = w, { props: b } = A, V = () => d(E), ee = D == null;
|
|
3832
3832
|
ee && A.count++;
|
|
3833
|
-
const
|
|
3833
|
+
const H = { ...b, style: b.toastStyle, key: A.toastKey++, ...Object.fromEntries(Object.entries(w).filter((Q) => {
|
|
3834
3834
|
let [P, x] = Q;
|
|
3835
3835
|
return x != null;
|
|
3836
3836
|
})), toastId: E, updateId: D, data: M, closeToast: V, isIn: !1, className: Ht(w.className || b.toastClassName), bodyClassName: Ht(w.bodyClassName || b.bodyClassName), progressClassName: Ht(w.progressClassName || b.progressClassName), autoClose: !w.isLoading && (ne = w.autoClose, re = b.autoClose, ne === !1 || bt(ne) && ne > 0 ? ne : re), deleteToast() {
|
|
@@ -3851,15 +3851,15 @@ function RA(e) {
|
|
|
3851
3851
|
t();
|
|
3852
3852
|
} };
|
|
3853
3853
|
var ne, re;
|
|
3854
|
-
|
|
3854
|
+
H.iconOut = function(Q) {
|
|
3855
3855
|
let { theme: P, type: x, isLoading: O, icon: j } = Q, p = null;
|
|
3856
|
-
const
|
|
3857
|
-
return j === !1 || (be(j) ? p = j(
|
|
3858
|
-
}(
|
|
3856
|
+
const W = { theme: P, type: x };
|
|
3857
|
+
return j === !1 || (be(j) ? p = j(W) : lt(j) ? p = Wn(j, W) : nt(j) || bt(j) ? p = j : O ? p = wn.spinner() : ((K) => K in wn)(x) && (p = wn[x](W))), p;
|
|
3858
|
+
}(H), be(w.onOpen) && (H.onOpen = w.onOpen), be(w.onClose) && (H.onClose = w.onClose), H.closeButton = b.closeButton, w.closeButton === !1 || In(w.closeButton) ? H.closeButton = w.closeButton : w.closeButton === !0 && (H.closeButton = !In(b.closeButton) || b.closeButton);
|
|
3859
3859
|
let se = h;
|
|
3860
|
-
lt(h) && !nt(h.type) ? se = Wn(h, { closeToast: V, toastProps:
|
|
3861
|
-
v(se,
|
|
3862
|
-
}, q) : v(se,
|
|
3860
|
+
lt(h) && !nt(h.type) ? se = Wn(h, { closeToast: V, toastProps: H, data: M }) : be(h) && (se = h({ closeToast: V, toastProps: H, data: M })), b.limit && b.limit > 0 && A.count > b.limit && ee ? A.queue.push({ toastContent: se, toastProps: H, staleId: C }) : bt(q) ? setTimeout(() => {
|
|
3861
|
+
v(se, H, C);
|
|
3862
|
+
}, q) : v(se, H, C);
|
|
3863
3863
|
}
|
|
3864
3864
|
function v(h, f, q) {
|
|
3865
3865
|
const { toastId: C } = f;
|
|
@@ -3896,8 +3896,8 @@ function GA(e) {
|
|
|
3896
3896
|
}
|
|
3897
3897
|
function f(M) {
|
|
3898
3898
|
if (a.boundingRect) {
|
|
3899
|
-
const { top: b, bottom: V, left: ee, right:
|
|
3900
|
-
M.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= ee && a.x <=
|
|
3899
|
+
const { top: b, bottom: V, left: ee, right: H } = a.boundingRect;
|
|
3900
|
+
M.nativeEvent.type !== "touchend" && e.pauseOnHover && a.x >= ee && a.x <= H && a.y >= b && a.y <= V ? C() : q();
|
|
3901
3901
|
}
|
|
3902
3902
|
}
|
|
3903
3903
|
function q() {
|
|
@@ -3948,9 +3948,9 @@ function TA(e) {
|
|
|
3948
3948
|
} });
|
|
3949
3949
|
}
|
|
3950
3950
|
const HA = (e) => {
|
|
3951
|
-
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = GA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: d, hideProgressBar: s, closeToast: m, transition: v, position: h, className: f, style: q, bodyClassName: C, bodyStyle: w, progressClassName: E, progressStyle: D, updateId: M, role: b, progress: V, rtl: ee, toastId:
|
|
3952
|
-
let
|
|
3953
|
-
return i === !1 || (
|
|
3951
|
+
const { isRunning: t, preventExitTransition: n, toastRef: r, eventHandlers: o } = GA(e), { closeButton: i, children: a, autoClose: A, onClick: c, type: d, hideProgressBar: s, closeToast: m, transition: v, position: h, className: f, style: q, bodyClassName: C, bodyStyle: w, progressClassName: E, progressStyle: D, updateId: M, role: b, progress: V, rtl: ee, toastId: H, deleteToast: ne, isIn: re, isLoading: se, iconOut: Q, closeOnClick: P, theme: x } = e, O = Xe("Toastify__toast", `Toastify__toast-theme--${x}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": ee }, { "Toastify__toast--close-on-click": P }), j = be(f) ? f({ rtl: ee, position: h, type: d, defaultClassName: O }) : Xe(O, f), p = !!V || !A, W = { closeToast: m, type: d, theme: x };
|
|
3952
|
+
let K = null;
|
|
3953
|
+
return i === !1 || (K = be(i) ? i(W) : lt(i) ? Wn(i, W) : Ho(W)), ie.createElement(v, { isIn: re, done: ne, position: h, preventExitTransition: n, nodeRef: r }, ie.createElement("div", { id: H, onClick: c, className: j, ...o, style: q, ref: r }, ie.createElement("div", { ...re && { role: b }, className: be(C) ? C({ type: d }) : Xe("Toastify__toast-body", C), style: w }, Q != null && ie.createElement("div", { className: Xe("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !se }) }, Q), ie.createElement("div", null, a)), K, ie.createElement(TA, { ...M && !p ? { key: `pb-${M}` } : {}, rtl: ee, theme: x, delay: A, isRunning: t, isIn: re, closeToast: m, hide: s, type: d, style: D, className: E, controlledProgress: p, progress: V || 0 })));
|
|
3954
3954
|
}, An = function(e, t) {
|
|
3955
3955
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
3956
3956
|
}, XA = an(An("bounce", !0));
|
|
@@ -4091,6 +4091,10 @@ async function Vt(e, t, n, r, o, i = "download", a) {
|
|
|
4091
4091
|
},
|
|
4092
4092
|
o
|
|
4093
4093
|
).then(async (s) => {
|
|
4094
|
+
if (s.message) {
|
|
4095
|
+
c(s.message);
|
|
4096
|
+
return;
|
|
4097
|
+
}
|
|
4094
4098
|
let { url: m } = s;
|
|
4095
4099
|
d(m), A(m);
|
|
4096
4100
|
}).catch((s) => {
|
|
@@ -5275,7 +5279,7 @@ const ms = [
|
|
|
5275
5279
|
user: D,
|
|
5276
5280
|
setSafariCopyLink: M
|
|
5277
5281
|
}) => {
|
|
5278
|
-
const [b, V] = B(!1), [ee,
|
|
5282
|
+
const [b, V] = B(!1), [ee, H] = B(""), [ne, re] = B(!1), [se, Q] = B(!1), [P, x] = B(!1), [O, j] = B("download"), [p, W] = B(!1), [K, g] = B(!1);
|
|
5279
5283
|
let I = {
|
|
5280
5284
|
aarki: "html,copy",
|
|
5281
5285
|
adcolony: "copy,html",
|
|
@@ -5336,12 +5340,12 @@ const ms = [
|
|
|
5336
5340
|
V(!1), m(R);
|
|
5337
5341
|
});
|
|
5338
5342
|
}, Y = async () => {
|
|
5339
|
-
|
|
5340
|
-
|
|
5343
|
+
W(!0), Vt(c, d, o, h, s, "download", M).then((k) => {
|
|
5344
|
+
W(!1), x(!1);
|
|
5341
5345
|
}).catch((k) => {
|
|
5342
5346
|
m(k);
|
|
5343
5347
|
});
|
|
5344
|
-
},
|
|
5348
|
+
}, X = async () => {
|
|
5345
5349
|
g(!0);
|
|
5346
5350
|
const k = await cs(s, d, o, c);
|
|
5347
5351
|
let N = `${v}/${k == null ? void 0 : k.url}`;
|
|
@@ -5494,7 +5498,7 @@ const ms = [
|
|
|
5494
5498
|
x(!0);
|
|
5495
5499
|
return;
|
|
5496
5500
|
} else {
|
|
5497
|
-
|
|
5501
|
+
H("download");
|
|
5498
5502
|
const N = h.iosUrl, R = h.googleUrl;
|
|
5499
5503
|
C && C.willSpendCredit ? (q(!0), j("download"), re(!0)) : c !== "Import" && (!N || !R) ? (q(!0), Q(!0)) : (Q(!1), re(!1), z(o, "download"));
|
|
5500
5504
|
}
|
|
@@ -5527,7 +5531,7 @@ const ms = [
|
|
|
5527
5531
|
{
|
|
5528
5532
|
className: "w-1/3 border-hover-" + c,
|
|
5529
5533
|
onClickDonwload: async (k) => {
|
|
5530
|
-
k.stopPropagation(),
|
|
5534
|
+
k.stopPropagation(), H("copyLink");
|
|
5531
5535
|
const N = h.iosUrl, R = h.googleUrl;
|
|
5532
5536
|
C && (C != null && C.willSpendCredit) ? (j("copy"), q(!0), re(!0)) : c !== "Import" && (!N || !R) ? (q(!0), Q(!0)) : (re(!1), Q(!1), z(o, "copy"));
|
|
5533
5537
|
},
|
|
@@ -5581,9 +5585,9 @@ const ms = [
|
|
|
5581
5585
|
x(!1);
|
|
5582
5586
|
},
|
|
5583
5587
|
handleDownload: Y,
|
|
5584
|
-
handleDownloadMolocoTest:
|
|
5588
|
+
handleDownloadMolocoTest: X,
|
|
5585
5589
|
downloadingMoloco: p,
|
|
5586
|
-
donwloadintMolocoTest:
|
|
5590
|
+
donwloadintMolocoTest: K
|
|
5587
5591
|
}
|
|
5588
5592
|
)
|
|
5589
5593
|
] });
|
|
@@ -5926,23 +5930,23 @@ const ys = ({
|
|
|
5926
5930
|
disabled: v,
|
|
5927
5931
|
setSafariCopyLink: h
|
|
5928
5932
|
}) => {
|
|
5929
|
-
const [f, q] = B([]), [C, w] = B([]), [E, D] = B(!1), [M, b] = B(""), [V, ee] = B(!1), [
|
|
5930
|
-
const
|
|
5933
|
+
const [f, q] = B([]), [C, w] = B([]), [E, D] = B(!1), [M, b] = B(""), [V, ee] = B(!1), [H, ne] = B(!1), [re, se] = B("download"), [Q, P] = B(!1), x = async (p) => {
|
|
5934
|
+
const W = [...f];
|
|
5931
5935
|
if (f.includes(p)) {
|
|
5932
|
-
const
|
|
5933
|
-
|
|
5936
|
+
const K = W.findIndex((g) => g === p);
|
|
5937
|
+
W.splice(K, 1), q(W);
|
|
5934
5938
|
} else
|
|
5935
|
-
|
|
5936
|
-
Kn.filter((
|
|
5939
|
+
W.push(p), q([...f, p]);
|
|
5940
|
+
Kn.filter((K) => [...W].includes(K.id)).map((K) => K.name);
|
|
5937
5941
|
}, O = async () => {
|
|
5938
5942
|
try {
|
|
5939
5943
|
const p = Kn.filter((J) => [...f].includes(J.id)).map((J) => J.name);
|
|
5940
5944
|
ee(!0);
|
|
5941
|
-
let
|
|
5942
|
-
o === "Flex" ?
|
|
5943
|
-
const { url:
|
|
5945
|
+
let W;
|
|
5946
|
+
o === "Flex" ? W = await gs(r, p, i) : W = await qs(r, p, i);
|
|
5947
|
+
const { url: K } = W;
|
|
5944
5948
|
let g;
|
|
5945
|
-
const I = c + "/" +
|
|
5949
|
+
const I = c + "/" + K;
|
|
5946
5950
|
g = document.createElement("iframe"), g.setAttribute("src", I), g.style.display = "none", document.body.appendChild(g), g.click(), ee(!1), Lt("Multi downloaded completed successfully");
|
|
5947
5951
|
} catch (p) {
|
|
5948
5952
|
ee(!1), A(p.response.data.error.msg), console.error(p);
|
|
@@ -5957,7 +5961,7 @@ const ys = ({
|
|
|
5957
5961
|
style: {
|
|
5958
5962
|
position: "relative",
|
|
5959
5963
|
flex: 1,
|
|
5960
|
-
overflowY:
|
|
5964
|
+
overflowY: H ? "hidden" : "auto",
|
|
5961
5965
|
padding: "1.5rem",
|
|
5962
5966
|
paddingTop: "0"
|
|
5963
5967
|
},
|
|
@@ -5973,8 +5977,8 @@ const ys = ({
|
|
|
5973
5977
|
padding: "0.75rem"
|
|
5974
5978
|
},
|
|
5975
5979
|
children: n && Kn.filter((p) => {
|
|
5976
|
-
var
|
|
5977
|
-
return t && ((
|
|
5980
|
+
var W;
|
|
5981
|
+
return t && ((W = t == null ? void 0 : t.networks) == null ? void 0 : W.length) > 0 ? t == null ? void 0 : t.networks.includes(p.name) : o === "Import" ? e == null ? void 0 : e.networks.filter((K) => K.status === "paid").some((K) => K.name === p.name) : e == null ? void 0 : e.networks.includes(p.name);
|
|
5978
5982
|
}).filter(
|
|
5979
5983
|
(p) => p.name === "voodoo" ? a.customer === "customer:20" : !0
|
|
5980
5984
|
).map((p) => /* @__PURE__ */ u.jsx(
|
|
@@ -6120,75 +6124,79 @@ const Ks = [
|
|
|
6120
6124
|
setFileSize: m,
|
|
6121
6125
|
setSafariCopyLink: v
|
|
6122
6126
|
}) => {
|
|
6123
|
-
const [h, f] = B(null), [q, C] = B(null), [w, E] = B(null), [D, M] = B(!1), [b, V] = B("Loading..."), [ee,
|
|
6127
|
+
const [h, f] = B(null), [q, C] = B(null), [w, E] = B(null), [D, M] = B(!1), [b, V] = B("Loading..."), [ee, H] = B("Loading..."), [ne, re] = B(!0), [se, Q] = B(window.innerWidth);
|
|
6124
6128
|
Ce(() => {
|
|
6125
|
-
const
|
|
6129
|
+
const K = () => {
|
|
6126
6130
|
Q(window.innerWidth);
|
|
6127
6131
|
};
|
|
6128
|
-
return window.addEventListener("resize",
|
|
6129
|
-
window.removeEventListener("resize",
|
|
6132
|
+
return window.addEventListener("resize", K), () => {
|
|
6133
|
+
window.removeEventListener("resize", K);
|
|
6130
6134
|
};
|
|
6131
6135
|
}, []);
|
|
6132
6136
|
const P = async () => {
|
|
6133
6137
|
M(!0);
|
|
6134
|
-
const
|
|
6135
|
-
return
|
|
6136
|
-
}, x = (
|
|
6137
|
-
V(
|
|
6138
|
-
}, O = (
|
|
6139
|
-
|
|
6140
|
-
}, j = async (
|
|
6138
|
+
const K = await vs(e, i);
|
|
6139
|
+
return K != null && K.networks || (K.networks = Ks), f(K), K;
|
|
6140
|
+
}, x = (K) => {
|
|
6141
|
+
V(K);
|
|
6142
|
+
}, O = (K) => {
|
|
6143
|
+
H(K);
|
|
6144
|
+
}, j = async (K, g) => {
|
|
6141
6145
|
var I, J;
|
|
6142
6146
|
try {
|
|
6143
6147
|
let z;
|
|
6144
6148
|
if (r === "Playable" || r === "Ready") {
|
|
6145
6149
|
const Y = await Zs(t, i);
|
|
6146
6150
|
if (Y) {
|
|
6147
|
-
V(Y.iosLink),
|
|
6151
|
+
V(Y.iosLink), H(Y.androidLink), M(!1);
|
|
6152
|
+
return;
|
|
6153
|
+
}
|
|
6154
|
+
if (K && (K.iosUrl || K.googleUrl)) {
|
|
6155
|
+
V(K.iosUrl), H(K.googleUrl), M(!1);
|
|
6148
6156
|
return;
|
|
6149
6157
|
}
|
|
6150
6158
|
if (g && g.html) {
|
|
6151
|
-
let
|
|
6159
|
+
let X = await fetch(d + "/" + g.html).then(
|
|
6152
6160
|
(R) => R.text()
|
|
6153
6161
|
);
|
|
6154
|
-
const k = ((I =
|
|
6162
|
+
const k = ((I = X.match(
|
|
6155
6163
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6156
6164
|
)) == null ? void 0 : I.at(1)) || "";
|
|
6157
6165
|
V(k);
|
|
6158
|
-
const N = ((J =
|
|
6166
|
+
const N = ((J = X.match(
|
|
6159
6167
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6160
6168
|
)) == null ? void 0 : J.at(1)) || "";
|
|
6161
|
-
|
|
6169
|
+
H(N), M(!1);
|
|
6162
6170
|
} else
|
|
6163
|
-
|
|
6171
|
+
H(""), V(""), M(!1);
|
|
6164
6172
|
} else if (r === "Flex") {
|
|
6165
6173
|
const Y = await Is(t, i);
|
|
6166
6174
|
if (Y.googleUrl || Y.iosUrl) {
|
|
6167
|
-
|
|
6175
|
+
H(Y.googleUrl), V(Y.iosUrl), M(!1);
|
|
6168
6176
|
return;
|
|
6169
6177
|
}
|
|
6170
|
-
|
|
6178
|
+
K && (K.iosUrl || K.googleUrl) ? (V(K.iosUrl), H(K.googleUrl), M(!1)) : (H(""), V(""), M(!1));
|
|
6171
6179
|
}
|
|
6172
6180
|
} catch (z) {
|
|
6173
6181
|
c(z.response.data.error.msg);
|
|
6174
6182
|
}
|
|
6175
6183
|
}, p = async () => {
|
|
6176
6184
|
M(!0);
|
|
6177
|
-
let
|
|
6178
|
-
r === "Flex" ?
|
|
6179
|
-
...
|
|
6185
|
+
let K;
|
|
6186
|
+
r === "Flex" ? K = await bs({ _id: t }, i) : r === "Ready" && (K = await xs({ _id: t }, i)), K && (["admin", "pm", "tester"].includes(a.role) ? E({
|
|
6187
|
+
...K,
|
|
6180
6188
|
networks: Ws
|
|
6181
|
-
}) : E(
|
|
6182
|
-
},
|
|
6189
|
+
}) : E(K)), M(!1);
|
|
6190
|
+
}, W = async () => await Cs(n, i);
|
|
6183
6191
|
return Ce(() => {
|
|
6184
|
-
o || (f(null), C(null), E(null), m(null)), o && (r === "Playable" || r === "Ready" ? (P().then((
|
|
6185
|
-
j(null,
|
|
6186
|
-
}), re(!1)) : r === "Flex" ? p().then((
|
|
6187
|
-
re(!1),
|
|
6192
|
+
o || (f(null), C(null), E(null), m(null)), o && (r === "Playable" || r === "Ready" ? (P().then((K) => {
|
|
6193
|
+
j(null, K);
|
|
6194
|
+
}), re(!1)) : r === "Flex" ? p().then((K) => {
|
|
6195
|
+
re(!1), W().then((g) => {
|
|
6188
6196
|
o && (j(g, null), re(!1), C(g));
|
|
6189
6197
|
});
|
|
6190
|
-
}) : r === "Import" && ws(t, i).then((
|
|
6191
|
-
console.log(
|
|
6198
|
+
}) : r === "Import" && ws(t, i).then((K) => {
|
|
6199
|
+
console.log(K), f(K), V(K.iosUrl || ""), H(K.googleUrl || ""), M(!1), re(!1);
|
|
6192
6200
|
}));
|
|
6193
6201
|
}, [n, e, t, o]), /* @__PURE__ */ u.jsxs(
|
|
6194
6202
|
"div",
|
|
@@ -6719,8 +6727,8 @@ fl.default.subscribe(yl);
|
|
|
6719
6727
|
}, o = function() {
|
|
6720
6728
|
function x(O, j) {
|
|
6721
6729
|
for (var p = 0; p < j.length; p++) {
|
|
6722
|
-
var
|
|
6723
|
-
|
|
6730
|
+
var W = j[p];
|
|
6731
|
+
W.enumerable = W.enumerable || !1, W.configurable = !0, "value" in W && (W.writable = !0), Object.defineProperty(O, W.key, W);
|
|
6724
6732
|
}
|
|
6725
6733
|
}
|
|
6726
6734
|
return function(O, j, p) {
|
|
@@ -6748,7 +6756,7 @@ fl.default.subscribe(yl);
|
|
|
6748
6756
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6749
6757
|
return O && (typeof O == "object" || typeof O == "function") ? O : x;
|
|
6750
6758
|
}
|
|
6751
|
-
function
|
|
6759
|
+
function H(x, O) {
|
|
6752
6760
|
if (typeof O != "function" && O !== null)
|
|
6753
6761
|
throw new TypeError("Super expression must either be null or a function, not " + typeof O);
|
|
6754
6762
|
x.prototype = Object.create(O && O.prototype, { constructor: { value: x, enumerable: !1, writable: !0, configurable: !0 } }), O && (Object.setPrototypeOf ? Object.setPrototypeOf(x, O) : x.__proto__ = O);
|
|
@@ -6761,17 +6769,17 @@ fl.default.subscribe(yl);
|
|
|
6761
6769
|
}, se = function(O) {
|
|
6762
6770
|
return O.code === "Escape" || O.keyCode === 27;
|
|
6763
6771
|
}, Q = 0, P = function(x) {
|
|
6764
|
-
|
|
6772
|
+
H(O, x);
|
|
6765
6773
|
function O(j) {
|
|
6766
6774
|
V(this, O);
|
|
6767
6775
|
var p = ee(this, (O.__proto__ || Object.getPrototypeOf(O)).call(this, j));
|
|
6768
|
-
return p.setOverlayRef = function(
|
|
6769
|
-
p.overlay =
|
|
6770
|
-
}, p.setContentRef = function(
|
|
6771
|
-
p.content =
|
|
6776
|
+
return p.setOverlayRef = function(W) {
|
|
6777
|
+
p.overlay = W, p.props.overlayRef && p.props.overlayRef(W);
|
|
6778
|
+
}, p.setContentRef = function(W) {
|
|
6779
|
+
p.content = W, p.props.contentRef && p.props.contentRef(W);
|
|
6772
6780
|
}, p.afterClose = function() {
|
|
6773
|
-
var
|
|
6774
|
-
J && q.remove(Y.body, J), I && q.remove(Y.getElementsByTagName("html")[0], I), g && Q > 0 && (Q -= 1, Q === 0 && h.show(
|
|
6781
|
+
var W = p.props, K = W.appElement, g = W.ariaHideApp, I = W.htmlOpenClassName, J = W.bodyOpenClassName, z = W.parentSelector, Y = z && z().ownerDocument || document;
|
|
6782
|
+
J && q.remove(Y.body, J), I && q.remove(Y.getElementsByTagName("html")[0], I), g && Q > 0 && (Q -= 1, Q === 0 && h.show(K)), p.props.shouldFocusAfterRender && (p.props.shouldReturnFocusAfterClose ? (d.returnFocus(p.props.preventScroll), d.teardownScopedFocus()) : d.popWithoutFocus()), p.props.onAfterClose && p.props.onAfterClose(), D.default.deregister(p);
|
|
6775
6783
|
}, p.open = function() {
|
|
6776
6784
|
p.beforeOpen(), p.state.afterOpen && p.state.beforeClose ? (clearTimeout(p.closeTimer), p.setState({ beforeClose: !1 })) : (p.props.shouldFocusAfterRender && (d.setupScopedFocus(p.node), d.markForFocusLater()), p.setState({ isOpen: !0 }, function() {
|
|
6777
6785
|
p.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6786,8 +6794,8 @@ fl.default.subscribe(yl);
|
|
|
6786
6794
|
}, p.focusContent = function() {
|
|
6787
6795
|
return p.content && !p.contentHasFocus() && p.content.focus({ preventScroll: !0 });
|
|
6788
6796
|
}, p.closeWithTimeout = function() {
|
|
6789
|
-
var
|
|
6790
|
-
p.setState({ beforeClose: !0, closesAt:
|
|
6797
|
+
var W = Date.now() + p.props.closeTimeoutMS;
|
|
6798
|
+
p.setState({ beforeClose: !0, closesAt: W }, function() {
|
|
6791
6799
|
p.closeTimer = setTimeout(p.closeWithoutTimeout, p.state.closesAt - Date.now());
|
|
6792
6800
|
});
|
|
6793
6801
|
}, p.closeWithoutTimeout = function() {
|
|
@@ -6797,36 +6805,36 @@ fl.default.subscribe(yl);
|
|
|
6797
6805
|
afterOpen: !1,
|
|
6798
6806
|
closesAt: null
|
|
6799
6807
|
}, p.afterClose);
|
|
6800
|
-
}, p.handleKeyDown = function(
|
|
6801
|
-
re(
|
|
6802
|
-
}, p.handleOverlayOnClick = function(
|
|
6803
|
-
p.shouldClose === null && (p.shouldClose = !0), p.shouldClose && p.props.shouldCloseOnOverlayClick && (p.ownerHandlesClose() ? p.requestClose(
|
|
6808
|
+
}, p.handleKeyDown = function(W) {
|
|
6809
|
+
re(W) && (0, m.default)(p.content, W), p.props.shouldCloseOnEsc && se(W) && (W.stopPropagation(), p.requestClose(W));
|
|
6810
|
+
}, p.handleOverlayOnClick = function(W) {
|
|
6811
|
+
p.shouldClose === null && (p.shouldClose = !0), p.shouldClose && p.props.shouldCloseOnOverlayClick && (p.ownerHandlesClose() ? p.requestClose(W) : p.focusContent()), p.shouldClose = null;
|
|
6804
6812
|
}, p.handleContentOnMouseUp = function() {
|
|
6805
6813
|
p.shouldClose = !1;
|
|
6806
|
-
}, p.handleOverlayOnMouseDown = function(
|
|
6807
|
-
!p.props.shouldCloseOnOverlayClick &&
|
|
6814
|
+
}, p.handleOverlayOnMouseDown = function(W) {
|
|
6815
|
+
!p.props.shouldCloseOnOverlayClick && W.target == p.overlay && W.preventDefault();
|
|
6808
6816
|
}, p.handleContentOnClick = function() {
|
|
6809
6817
|
p.shouldClose = !1;
|
|
6810
6818
|
}, p.handleContentOnMouseDown = function() {
|
|
6811
6819
|
p.shouldClose = !1;
|
|
6812
|
-
}, p.requestClose = function(
|
|
6813
|
-
return p.ownerHandlesClose() && p.props.onRequestClose(
|
|
6820
|
+
}, p.requestClose = function(W) {
|
|
6821
|
+
return p.ownerHandlesClose() && p.props.onRequestClose(W);
|
|
6814
6822
|
}, p.ownerHandlesClose = function() {
|
|
6815
6823
|
return p.props.onRequestClose;
|
|
6816
6824
|
}, p.shouldBeClosed = function() {
|
|
6817
6825
|
return !p.state.isOpen && !p.state.beforeClose;
|
|
6818
6826
|
}, p.contentHasFocus = function() {
|
|
6819
6827
|
return document.activeElement === p.content || p.content.contains(document.activeElement);
|
|
6820
|
-
}, p.buildClassName = function(
|
|
6821
|
-
var g = (typeof
|
|
6822
|
-
base: ne[
|
|
6823
|
-
afterOpen: ne[
|
|
6824
|
-
beforeClose: ne[
|
|
6828
|
+
}, p.buildClassName = function(W, K) {
|
|
6829
|
+
var g = (typeof K > "u" ? "undefined" : r(K)) === "object" ? K : {
|
|
6830
|
+
base: ne[W],
|
|
6831
|
+
afterOpen: ne[W] + "--after-open",
|
|
6832
|
+
beforeClose: ne[W] + "--before-close"
|
|
6825
6833
|
}, I = g.base;
|
|
6826
|
-
return p.state.afterOpen && (I = I + " " + g.afterOpen), p.state.beforeClose && (I = I + " " + g.beforeClose), typeof
|
|
6827
|
-
}, p.attributesFromObject = function(
|
|
6828
|
-
return Object.keys(
|
|
6829
|
-
return g[
|
|
6834
|
+
return p.state.afterOpen && (I = I + " " + g.afterOpen), p.state.beforeClose && (I = I + " " + g.beforeClose), typeof K == "string" && K ? I + " " + K : I;
|
|
6835
|
+
}, p.attributesFromObject = function(W, K) {
|
|
6836
|
+
return Object.keys(K).reduce(function(g, I) {
|
|
6837
|
+
return g[W + "-" + I] = K[I], g;
|
|
6830
6838
|
}, {});
|
|
6831
6839
|
}, p.state = {
|
|
6832
6840
|
afterOpen: !1,
|
|
@@ -6840,8 +6848,8 @@ fl.default.subscribe(yl);
|
|
|
6840
6848
|
}
|
|
6841
6849
|
}, {
|
|
6842
6850
|
key: "componentDidUpdate",
|
|
6843
|
-
value: function(p,
|
|
6844
|
-
process.env.NODE_ENV !== "production" && (p.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), p.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 && !p.isOpen ? this.open() : !this.props.isOpen && p.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
6851
|
+
value: function(p, W) {
|
|
6852
|
+
process.env.NODE_ENV !== "production" && (p.bodyOpenClassName !== this.props.bodyOpenClassName && console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'), p.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 && !p.isOpen ? this.open() : !this.props.isOpen && p.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !W.isOpen && this.focusContent();
|
|
6845
6853
|
}
|
|
6846
6854
|
}, {
|
|
6847
6855
|
key: "componentWillUnmount",
|
|
@@ -6851,27 +6859,27 @@ fl.default.subscribe(yl);
|
|
|
6851
6859
|
}, {
|
|
6852
6860
|
key: "beforeOpen",
|
|
6853
6861
|
value: function() {
|
|
6854
|
-
var p = this.props,
|
|
6855
|
-
I && q.add(z.body, I), g && q.add(z.getElementsByTagName("html")[0], g),
|
|
6862
|
+
var p = this.props, W = p.appElement, K = p.ariaHideApp, g = p.htmlOpenClassName, I = p.bodyOpenClassName, J = p.parentSelector, z = J && J().ownerDocument || document;
|
|
6863
|
+
I && q.add(z.body, I), g && q.add(z.getElementsByTagName("html")[0], g), K && (Q += 1, h.hide(W)), D.default.register(this);
|
|
6856
6864
|
}
|
|
6857
6865
|
// Don't steal focus from inner elements
|
|
6858
6866
|
}, {
|
|
6859
6867
|
key: "render",
|
|
6860
6868
|
value: function() {
|
|
6861
|
-
var p = this.props,
|
|
6869
|
+
var p = this.props, W = p.id, K = p.className, g = p.overlayClassName, I = p.defaultStyles, J = p.children, z = K ? {} : I.content, Y = g ? {} : I.overlay;
|
|
6862
6870
|
if (this.shouldBeClosed())
|
|
6863
6871
|
return null;
|
|
6864
|
-
var
|
|
6872
|
+
var X = {
|
|
6865
6873
|
ref: this.setOverlayRef,
|
|
6866
6874
|
className: this.buildClassName("overlay", g),
|
|
6867
6875
|
style: n({}, Y, this.props.style.overlay),
|
|
6868
6876
|
onClick: this.handleOverlayOnClick,
|
|
6869
6877
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6870
6878
|
}, k = n({
|
|
6871
|
-
id:
|
|
6879
|
+
id: W,
|
|
6872
6880
|
ref: this.setContentRef,
|
|
6873
6881
|
style: n({}, z, this.props.style.content),
|
|
6874
|
-
className: this.buildClassName("content",
|
|
6882
|
+
className: this.buildClassName("content", K),
|
|
6875
6883
|
tabIndex: "-1",
|
|
6876
6884
|
onKeyDown: this.handleKeyDown,
|
|
6877
6885
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -6882,7 +6890,7 @@ fl.default.subscribe(yl);
|
|
|
6882
6890
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
6883
6891
|
"data-testid": this.props.testId
|
|
6884
6892
|
}), N = this.props.contentElement(k, J);
|
|
6885
|
-
return this.props.overlayElement(
|
|
6893
|
+
return this.props.overlayElement(X, N);
|
|
6886
6894
|
}
|
|
6887
6895
|
}]), O;
|
|
6888
6896
|
}(i.Component);
|
|
@@ -7444,7 +7452,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7444
7452
|
fetchFileUrl: v,
|
|
7445
7453
|
copyLinkUrl: h
|
|
7446
7454
|
}) => {
|
|
7447
|
-
const [f, q] = B(window.innerWidth), [C, w] = B(!1), [E, D] = B(s), [M, b] = B(!1), [V, ee] = B(!0), [
|
|
7455
|
+
const [f, q] = B(window.innerWidth), [C, w] = B(!1), [E, D] = B(s), [M, b] = B(!1), [V, ee] = B(!0), [H, ne] = B(null), [re, se] = B("");
|
|
7448
7456
|
UA(v);
|
|
7449
7457
|
const Q = (x) => {
|
|
7450
7458
|
jl({ _id: x, network: "applovin" }, A).then((O) => {
|
|
@@ -7462,7 +7470,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7462
7470
|
null,
|
|
7463
7471
|
se
|
|
7464
7472
|
).then((x) => {
|
|
7465
|
-
w(!0), D(v + "/" + x
|
|
7473
|
+
w(!0), D(v + "/" + x), a === "Flex" ? Q(n) : ee(!1);
|
|
7466
7474
|
});
|
|
7467
7475
|
};
|
|
7468
7476
|
return Ce(() => {
|
|
@@ -7663,7 +7671,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7663
7671
|
title: d,
|
|
7664
7672
|
handleDownloadError: m,
|
|
7665
7673
|
fetchFileUrl: v,
|
|
7666
|
-
fileSize:
|
|
7674
|
+
fileSize: H,
|
|
7667
7675
|
setFileSize: ne,
|
|
7668
7676
|
setSafariCopyLink: se
|
|
7669
7677
|
}
|