gearboxdownloadmodal 5.0.72 → 5.0.74
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 +165 -161
- 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));
|
|
@@ -4056,11 +4056,11 @@ const PA = (e) => {
|
|
|
4056
4056
|
const o = window.URL.createObjectURL(r), i = document.createElement("a");
|
|
4057
4057
|
i.href = o, i.download = n.split("/").reduce((a, A) => A, ""), document.body.appendChild(i), i.click(), window.URL.revokeObjectURL(o), Lt("Download successfully");
|
|
4058
4058
|
}).catch((r) => {
|
|
4059
|
-
console.error("
|
|
4059
|
+
console.error("File error:", r);
|
|
4060
4060
|
});
|
|
4061
4061
|
}, BA = (e, t) => {
|
|
4062
4062
|
let n = rr + "/" + e;
|
|
4063
|
-
|
|
4063
|
+
nr(n) ? Lt("Link Copied") : t(n);
|
|
4064
4064
|
};
|
|
4065
4065
|
async function Vt(e, t, n, r, o, i = "download", a) {
|
|
4066
4066
|
return new Promise(async (A, c) => {
|
|
@@ -4098,13 +4098,13 @@ async function Vt(e, t, n, r, o, i = "download", a) {
|
|
|
4098
4098
|
c(m);
|
|
4099
4099
|
})) : e === "Import" ? YA(o, t, n).then((s) => {
|
|
4100
4100
|
let m = s.url;
|
|
4101
|
-
|
|
4101
|
+
d(m), A(m);
|
|
4102
4102
|
}).catch((s) => {
|
|
4103
4103
|
let m = s.response.data.error.msg;
|
|
4104
4104
|
c(m);
|
|
4105
4105
|
}) : e === "Ready" && jA(o, t, n).then((s) => {
|
|
4106
4106
|
let m = s.url;
|
|
4107
|
-
|
|
4107
|
+
d(m), A(m);
|
|
4108
4108
|
}).catch((s) => {
|
|
4109
4109
|
let m = s.response.data.error.msg;
|
|
4110
4110
|
c(m);
|
|
@@ -5275,7 +5275,7 @@ const ms = [
|
|
|
5275
5275
|
user: D,
|
|
5276
5276
|
setSafariCopyLink: M
|
|
5277
5277
|
}) => {
|
|
5278
|
-
const [b, V] = B(!1), [ee,
|
|
5278
|
+
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
5279
|
let I = {
|
|
5280
5280
|
aarki: "html,copy",
|
|
5281
5281
|
adcolony: "copy,html",
|
|
@@ -5336,12 +5336,12 @@ const ms = [
|
|
|
5336
5336
|
V(!1), m(R);
|
|
5337
5337
|
});
|
|
5338
5338
|
}, Y = async () => {
|
|
5339
|
-
|
|
5340
|
-
|
|
5339
|
+
W(!0), Vt(c, d, o, h, s, "download", M).then((k) => {
|
|
5340
|
+
W(!1), x(!1);
|
|
5341
5341
|
}).catch((k) => {
|
|
5342
5342
|
m(k);
|
|
5343
5343
|
});
|
|
5344
|
-
},
|
|
5344
|
+
}, X = async () => {
|
|
5345
5345
|
g(!0);
|
|
5346
5346
|
const k = await cs(s, d, o, c);
|
|
5347
5347
|
let N = `${v}/${k == null ? void 0 : k.url}`;
|
|
@@ -5494,7 +5494,7 @@ const ms = [
|
|
|
5494
5494
|
x(!0);
|
|
5495
5495
|
return;
|
|
5496
5496
|
} else {
|
|
5497
|
-
|
|
5497
|
+
H("download");
|
|
5498
5498
|
const N = h.iosUrl, R = h.googleUrl;
|
|
5499
5499
|
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
5500
|
}
|
|
@@ -5527,7 +5527,7 @@ const ms = [
|
|
|
5527
5527
|
{
|
|
5528
5528
|
className: "w-1/3 border-hover-" + c,
|
|
5529
5529
|
onClickDonwload: async (k) => {
|
|
5530
|
-
k.stopPropagation(),
|
|
5530
|
+
k.stopPropagation(), H("copyLink");
|
|
5531
5531
|
const N = h.iosUrl, R = h.googleUrl;
|
|
5532
5532
|
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
5533
|
},
|
|
@@ -5581,9 +5581,9 @@ const ms = [
|
|
|
5581
5581
|
x(!1);
|
|
5582
5582
|
},
|
|
5583
5583
|
handleDownload: Y,
|
|
5584
|
-
handleDownloadMolocoTest:
|
|
5584
|
+
handleDownloadMolocoTest: X,
|
|
5585
5585
|
downloadingMoloco: p,
|
|
5586
|
-
donwloadintMolocoTest:
|
|
5586
|
+
donwloadintMolocoTest: K
|
|
5587
5587
|
}
|
|
5588
5588
|
)
|
|
5589
5589
|
] });
|
|
@@ -5926,23 +5926,23 @@ const ys = ({
|
|
|
5926
5926
|
disabled: v,
|
|
5927
5927
|
setSafariCopyLink: h
|
|
5928
5928
|
}) => {
|
|
5929
|
-
const [f, q] = B([]), [C, w] = B([]), [E, D] = B(!1), [M, b] = B(""), [V, ee] = B(!1), [
|
|
5930
|
-
const
|
|
5929
|
+
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) => {
|
|
5930
|
+
const W = [...f];
|
|
5931
5931
|
if (f.includes(p)) {
|
|
5932
|
-
const
|
|
5933
|
-
|
|
5932
|
+
const K = W.findIndex((g) => g === p);
|
|
5933
|
+
W.splice(K, 1), q(W);
|
|
5934
5934
|
} else
|
|
5935
|
-
|
|
5936
|
-
Kn.filter((
|
|
5935
|
+
W.push(p), q([...f, p]);
|
|
5936
|
+
Kn.filter((K) => [...W].includes(K.id)).map((K) => K.name);
|
|
5937
5937
|
}, O = async () => {
|
|
5938
5938
|
try {
|
|
5939
5939
|
const p = Kn.filter((J) => [...f].includes(J.id)).map((J) => J.name);
|
|
5940
5940
|
ee(!0);
|
|
5941
|
-
let
|
|
5942
|
-
o === "Flex" ?
|
|
5943
|
-
const { url:
|
|
5941
|
+
let W;
|
|
5942
|
+
o === "Flex" ? W = await gs(r, p, i) : W = await qs(r, p, i);
|
|
5943
|
+
const { url: K } = W;
|
|
5944
5944
|
let g;
|
|
5945
|
-
const I = c + "/" +
|
|
5945
|
+
const I = c + "/" + K;
|
|
5946
5946
|
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
5947
|
} catch (p) {
|
|
5948
5948
|
ee(!1), A(p.response.data.error.msg), console.error(p);
|
|
@@ -5957,7 +5957,7 @@ const ys = ({
|
|
|
5957
5957
|
style: {
|
|
5958
5958
|
position: "relative",
|
|
5959
5959
|
flex: 1,
|
|
5960
|
-
overflowY:
|
|
5960
|
+
overflowY: H ? "hidden" : "auto",
|
|
5961
5961
|
padding: "1.5rem",
|
|
5962
5962
|
paddingTop: "0"
|
|
5963
5963
|
},
|
|
@@ -5973,8 +5973,8 @@ const ys = ({
|
|
|
5973
5973
|
padding: "0.75rem"
|
|
5974
5974
|
},
|
|
5975
5975
|
children: n && Kn.filter((p) => {
|
|
5976
|
-
var
|
|
5977
|
-
return t && ((
|
|
5976
|
+
var W;
|
|
5977
|
+
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
5978
|
}).filter(
|
|
5979
5979
|
(p) => p.name === "voodoo" ? a.customer === "customer:20" : !0
|
|
5980
5980
|
).map((p) => /* @__PURE__ */ u.jsx(
|
|
@@ -6120,75 +6120,79 @@ const Ks = [
|
|
|
6120
6120
|
setFileSize: m,
|
|
6121
6121
|
setSafariCopyLink: v
|
|
6122
6122
|
}) => {
|
|
6123
|
-
const [h, f] = B(null), [q, C] = B(null), [w, E] = B(null), [D, M] = B(!1), [b, V] = B("Loading..."), [ee,
|
|
6123
|
+
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
6124
|
Ce(() => {
|
|
6125
|
-
const
|
|
6125
|
+
const K = () => {
|
|
6126
6126
|
Q(window.innerWidth);
|
|
6127
6127
|
};
|
|
6128
|
-
return window.addEventListener("resize",
|
|
6129
|
-
window.removeEventListener("resize",
|
|
6128
|
+
return window.addEventListener("resize", K), () => {
|
|
6129
|
+
window.removeEventListener("resize", K);
|
|
6130
6130
|
};
|
|
6131
6131
|
}, []);
|
|
6132
6132
|
const P = async () => {
|
|
6133
6133
|
M(!0);
|
|
6134
|
-
const
|
|
6135
|
-
return
|
|
6136
|
-
}, x = (
|
|
6137
|
-
V(
|
|
6138
|
-
}, O = (
|
|
6139
|
-
|
|
6140
|
-
}, j = async (
|
|
6134
|
+
const K = await vs(e, i);
|
|
6135
|
+
return K != null && K.networks || (K.networks = Ks), f(K), K;
|
|
6136
|
+
}, x = (K) => {
|
|
6137
|
+
V(K);
|
|
6138
|
+
}, O = (K) => {
|
|
6139
|
+
H(K);
|
|
6140
|
+
}, j = async (K, g) => {
|
|
6141
6141
|
var I, J;
|
|
6142
6142
|
try {
|
|
6143
6143
|
let z;
|
|
6144
6144
|
if (r === "Playable" || r === "Ready") {
|
|
6145
6145
|
const Y = await Zs(t, i);
|
|
6146
6146
|
if (Y) {
|
|
6147
|
-
V(Y.iosLink),
|
|
6147
|
+
V(Y.iosLink), H(Y.androidLink), M(!1);
|
|
6148
|
+
return;
|
|
6149
|
+
}
|
|
6150
|
+
if (K && (K.iosUrl || K.googleUrl)) {
|
|
6151
|
+
V(K.iosUrl), H(K.googleUrl), M(!1);
|
|
6148
6152
|
return;
|
|
6149
6153
|
}
|
|
6150
6154
|
if (g && g.html) {
|
|
6151
|
-
let
|
|
6155
|
+
let X = await fetch(d + "/" + g.html).then(
|
|
6152
6156
|
(R) => R.text()
|
|
6153
6157
|
);
|
|
6154
|
-
const k = ((I =
|
|
6158
|
+
const k = ((I = X.match(
|
|
6155
6159
|
/var\s+iosLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6156
6160
|
)) == null ? void 0 : I.at(1)) || "";
|
|
6157
6161
|
V(k);
|
|
6158
|
-
const N = ((J =
|
|
6162
|
+
const N = ((J = X.match(
|
|
6159
6163
|
/var\s+androidLink\s*=\s*['|"](https?[\w\d;,/?:@&=+$\-_.!~*'()#]+)['|"]/
|
|
6160
6164
|
)) == null ? void 0 : J.at(1)) || "";
|
|
6161
|
-
|
|
6165
|
+
H(N), M(!1);
|
|
6162
6166
|
} else
|
|
6163
|
-
|
|
6167
|
+
H(""), V(""), M(!1);
|
|
6164
6168
|
} else if (r === "Flex") {
|
|
6165
6169
|
const Y = await Is(t, i);
|
|
6166
6170
|
if (Y.googleUrl || Y.iosUrl) {
|
|
6167
|
-
|
|
6171
|
+
H(Y.googleUrl), V(Y.iosUrl), M(!1);
|
|
6168
6172
|
return;
|
|
6169
6173
|
}
|
|
6170
|
-
|
|
6174
|
+
K && (K.iosUrl || K.googleUrl) ? (V(K.iosUrl), H(K.googleUrl), M(!1)) : (H(""), V(""), M(!1));
|
|
6171
6175
|
}
|
|
6172
6176
|
} catch (z) {
|
|
6173
6177
|
c(z.response.data.error.msg);
|
|
6174
6178
|
}
|
|
6175
6179
|
}, p = async () => {
|
|
6176
6180
|
M(!0);
|
|
6177
|
-
let
|
|
6178
|
-
r === "Flex" ?
|
|
6179
|
-
...
|
|
6181
|
+
let K;
|
|
6182
|
+
r === "Flex" ? K = await bs({ _id: t }, i) : r === "Ready" && (K = await xs({ _id: t }, i)), K && (["admin", "pm", "tester"].includes(a.role) ? E({
|
|
6183
|
+
...K,
|
|
6180
6184
|
networks: Ws
|
|
6181
|
-
}) : E(
|
|
6182
|
-
},
|
|
6185
|
+
}) : E(K)), M(!1);
|
|
6186
|
+
}, W = async () => await Cs(n, i);
|
|
6183
6187
|
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),
|
|
6188
|
+
o || (f(null), C(null), E(null), m(null)), o && (r === "Playable" || r === "Ready" ? (P().then((K) => {
|
|
6189
|
+
j(null, K);
|
|
6190
|
+
}), re(!1)) : r === "Flex" ? p().then((K) => {
|
|
6191
|
+
re(!1), W().then((g) => {
|
|
6188
6192
|
o && (j(g, null), re(!1), C(g));
|
|
6189
6193
|
});
|
|
6190
|
-
}) : r === "Import" && ws(t, i).then((
|
|
6191
|
-
console.log(
|
|
6194
|
+
}) : r === "Import" && ws(t, i).then((K) => {
|
|
6195
|
+
console.log(K), f(K), V(K.iosUrl || ""), H(K.googleUrl || ""), M(!1), re(!1);
|
|
6192
6196
|
}));
|
|
6193
6197
|
}, [n, e, t, o]), /* @__PURE__ */ u.jsxs(
|
|
6194
6198
|
"div",
|
|
@@ -6719,8 +6723,8 @@ fl.default.subscribe(yl);
|
|
|
6719
6723
|
}, o = function() {
|
|
6720
6724
|
function x(O, j) {
|
|
6721
6725
|
for (var p = 0; p < j.length; p++) {
|
|
6722
|
-
var
|
|
6723
|
-
|
|
6726
|
+
var W = j[p];
|
|
6727
|
+
W.enumerable = W.enumerable || !1, W.configurable = !0, "value" in W && (W.writable = !0), Object.defineProperty(O, W.key, W);
|
|
6724
6728
|
}
|
|
6725
6729
|
}
|
|
6726
6730
|
return function(O, j, p) {
|
|
@@ -6748,7 +6752,7 @@ fl.default.subscribe(yl);
|
|
|
6748
6752
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6749
6753
|
return O && (typeof O == "object" || typeof O == "function") ? O : x;
|
|
6750
6754
|
}
|
|
6751
|
-
function
|
|
6755
|
+
function H(x, O) {
|
|
6752
6756
|
if (typeof O != "function" && O !== null)
|
|
6753
6757
|
throw new TypeError("Super expression must either be null or a function, not " + typeof O);
|
|
6754
6758
|
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 +6765,17 @@ fl.default.subscribe(yl);
|
|
|
6761
6765
|
}, se = function(O) {
|
|
6762
6766
|
return O.code === "Escape" || O.keyCode === 27;
|
|
6763
6767
|
}, Q = 0, P = function(x) {
|
|
6764
|
-
|
|
6768
|
+
H(O, x);
|
|
6765
6769
|
function O(j) {
|
|
6766
6770
|
V(this, O);
|
|
6767
6771
|
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 =
|
|
6772
|
+
return p.setOverlayRef = function(W) {
|
|
6773
|
+
p.overlay = W, p.props.overlayRef && p.props.overlayRef(W);
|
|
6774
|
+
}, p.setContentRef = function(W) {
|
|
6775
|
+
p.content = W, p.props.contentRef && p.props.contentRef(W);
|
|
6772
6776
|
}, 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(
|
|
6777
|
+
var W = p.props, K = W.appElement, g = W.ariaHideApp, I = W.htmlOpenClassName, J = W.bodyOpenClassName, z = W.parentSelector, Y = z && z().ownerDocument || document;
|
|
6778
|
+
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
6779
|
}, p.open = function() {
|
|
6776
6780
|
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
6781
|
p.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6786,8 +6790,8 @@ fl.default.subscribe(yl);
|
|
|
6786
6790
|
}, p.focusContent = function() {
|
|
6787
6791
|
return p.content && !p.contentHasFocus() && p.content.focus({ preventScroll: !0 });
|
|
6788
6792
|
}, p.closeWithTimeout = function() {
|
|
6789
|
-
var
|
|
6790
|
-
p.setState({ beforeClose: !0, closesAt:
|
|
6793
|
+
var W = Date.now() + p.props.closeTimeoutMS;
|
|
6794
|
+
p.setState({ beforeClose: !0, closesAt: W }, function() {
|
|
6791
6795
|
p.closeTimer = setTimeout(p.closeWithoutTimeout, p.state.closesAt - Date.now());
|
|
6792
6796
|
});
|
|
6793
6797
|
}, p.closeWithoutTimeout = function() {
|
|
@@ -6797,36 +6801,36 @@ fl.default.subscribe(yl);
|
|
|
6797
6801
|
afterOpen: !1,
|
|
6798
6802
|
closesAt: null
|
|
6799
6803
|
}, 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(
|
|
6804
|
+
}, p.handleKeyDown = function(W) {
|
|
6805
|
+
re(W) && (0, m.default)(p.content, W), p.props.shouldCloseOnEsc && se(W) && (W.stopPropagation(), p.requestClose(W));
|
|
6806
|
+
}, p.handleOverlayOnClick = function(W) {
|
|
6807
|
+
p.shouldClose === null && (p.shouldClose = !0), p.shouldClose && p.props.shouldCloseOnOverlayClick && (p.ownerHandlesClose() ? p.requestClose(W) : p.focusContent()), p.shouldClose = null;
|
|
6804
6808
|
}, p.handleContentOnMouseUp = function() {
|
|
6805
6809
|
p.shouldClose = !1;
|
|
6806
|
-
}, p.handleOverlayOnMouseDown = function(
|
|
6807
|
-
!p.props.shouldCloseOnOverlayClick &&
|
|
6810
|
+
}, p.handleOverlayOnMouseDown = function(W) {
|
|
6811
|
+
!p.props.shouldCloseOnOverlayClick && W.target == p.overlay && W.preventDefault();
|
|
6808
6812
|
}, p.handleContentOnClick = function() {
|
|
6809
6813
|
p.shouldClose = !1;
|
|
6810
6814
|
}, p.handleContentOnMouseDown = function() {
|
|
6811
6815
|
p.shouldClose = !1;
|
|
6812
|
-
}, p.requestClose = function(
|
|
6813
|
-
return p.ownerHandlesClose() && p.props.onRequestClose(
|
|
6816
|
+
}, p.requestClose = function(W) {
|
|
6817
|
+
return p.ownerHandlesClose() && p.props.onRequestClose(W);
|
|
6814
6818
|
}, p.ownerHandlesClose = function() {
|
|
6815
6819
|
return p.props.onRequestClose;
|
|
6816
6820
|
}, p.shouldBeClosed = function() {
|
|
6817
6821
|
return !p.state.isOpen && !p.state.beforeClose;
|
|
6818
6822
|
}, p.contentHasFocus = function() {
|
|
6819
6823
|
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[
|
|
6824
|
+
}, p.buildClassName = function(W, K) {
|
|
6825
|
+
var g = (typeof K > "u" ? "undefined" : r(K)) === "object" ? K : {
|
|
6826
|
+
base: ne[W],
|
|
6827
|
+
afterOpen: ne[W] + "--after-open",
|
|
6828
|
+
beforeClose: ne[W] + "--before-close"
|
|
6825
6829
|
}, 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[
|
|
6830
|
+
return p.state.afterOpen && (I = I + " " + g.afterOpen), p.state.beforeClose && (I = I + " " + g.beforeClose), typeof K == "string" && K ? I + " " + K : I;
|
|
6831
|
+
}, p.attributesFromObject = function(W, K) {
|
|
6832
|
+
return Object.keys(K).reduce(function(g, I) {
|
|
6833
|
+
return g[W + "-" + I] = K[I], g;
|
|
6830
6834
|
}, {});
|
|
6831
6835
|
}, p.state = {
|
|
6832
6836
|
afterOpen: !1,
|
|
@@ -6840,8 +6844,8 @@ fl.default.subscribe(yl);
|
|
|
6840
6844
|
}
|
|
6841
6845
|
}, {
|
|
6842
6846
|
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 && !
|
|
6847
|
+
value: function(p, W) {
|
|
6848
|
+
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
6849
|
}
|
|
6846
6850
|
}, {
|
|
6847
6851
|
key: "componentWillUnmount",
|
|
@@ -6851,27 +6855,27 @@ fl.default.subscribe(yl);
|
|
|
6851
6855
|
}, {
|
|
6852
6856
|
key: "beforeOpen",
|
|
6853
6857
|
value: function() {
|
|
6854
|
-
var p = this.props,
|
|
6855
|
-
I && q.add(z.body, I), g && q.add(z.getElementsByTagName("html")[0], g),
|
|
6858
|
+
var p = this.props, W = p.appElement, K = p.ariaHideApp, g = p.htmlOpenClassName, I = p.bodyOpenClassName, J = p.parentSelector, z = J && J().ownerDocument || document;
|
|
6859
|
+
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
6860
|
}
|
|
6857
6861
|
// Don't steal focus from inner elements
|
|
6858
6862
|
}, {
|
|
6859
6863
|
key: "render",
|
|
6860
6864
|
value: function() {
|
|
6861
|
-
var p = this.props,
|
|
6865
|
+
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
6866
|
if (this.shouldBeClosed())
|
|
6863
6867
|
return null;
|
|
6864
|
-
var
|
|
6868
|
+
var X = {
|
|
6865
6869
|
ref: this.setOverlayRef,
|
|
6866
6870
|
className: this.buildClassName("overlay", g),
|
|
6867
6871
|
style: n({}, Y, this.props.style.overlay),
|
|
6868
6872
|
onClick: this.handleOverlayOnClick,
|
|
6869
6873
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6870
6874
|
}, k = n({
|
|
6871
|
-
id:
|
|
6875
|
+
id: W,
|
|
6872
6876
|
ref: this.setContentRef,
|
|
6873
6877
|
style: n({}, z, this.props.style.content),
|
|
6874
|
-
className: this.buildClassName("content",
|
|
6878
|
+
className: this.buildClassName("content", K),
|
|
6875
6879
|
tabIndex: "-1",
|
|
6876
6880
|
onKeyDown: this.handleKeyDown,
|
|
6877
6881
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -6882,7 +6886,7 @@ fl.default.subscribe(yl);
|
|
|
6882
6886
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
6883
6887
|
"data-testid": this.props.testId
|
|
6884
6888
|
}), N = this.props.contentElement(k, J);
|
|
6885
|
-
return this.props.overlayElement(
|
|
6889
|
+
return this.props.overlayElement(X, N);
|
|
6886
6890
|
}
|
|
6887
6891
|
}]), O;
|
|
6888
6892
|
}(i.Component);
|
|
@@ -7444,7 +7448,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7444
7448
|
fetchFileUrl: v,
|
|
7445
7449
|
copyLinkUrl: h
|
|
7446
7450
|
}) => {
|
|
7447
|
-
const [f, q] = B(window.innerWidth), [C, w] = B(!1), [E, D] = B(s), [M, b] = B(!1), [V, ee] = B(!0), [
|
|
7451
|
+
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
7452
|
UA(v);
|
|
7449
7453
|
const Q = (x) => {
|
|
7450
7454
|
jl({ _id: x, network: "applovin" }, A).then((O) => {
|
|
@@ -7462,7 +7466,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7462
7466
|
null,
|
|
7463
7467
|
se
|
|
7464
7468
|
).then((x) => {
|
|
7465
|
-
w(!0), D(v + "/" + x
|
|
7469
|
+
w(!0), D(v + "/" + x), a === "Flex" ? Q(n) : ee(!1);
|
|
7466
7470
|
});
|
|
7467
7471
|
};
|
|
7468
7472
|
return Ce(() => {
|
|
@@ -7529,7 +7533,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7529
7533
|
}
|
|
7530
7534
|
)
|
|
7531
7535
|
}
|
|
7532
|
-
) }) : V && a === "Flex" ? null :
|
|
7536
|
+
) }) : V && a === "Flex" ? null : /* @__PURE__ */ u.jsxs(
|
|
7533
7537
|
"div",
|
|
7534
7538
|
{
|
|
7535
7539
|
onMouseDown: (x) => {
|
|
@@ -7663,7 +7667,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7663
7667
|
title: d,
|
|
7664
7668
|
handleDownloadError: m,
|
|
7665
7669
|
fetchFileUrl: v,
|
|
7666
|
-
fileSize:
|
|
7670
|
+
fileSize: H,
|
|
7667
7671
|
setFileSize: ne,
|
|
7668
7672
|
setSafariCopyLink: se
|
|
7669
7673
|
}
|
|
@@ -7684,7 +7688,7 @@ const Jl = ({ width: e, height: t }) => /* @__PURE__ */ u.jsxs("svg", { width: e
|
|
|
7684
7688
|
)
|
|
7685
7689
|
]
|
|
7686
7690
|
}
|
|
7687
|
-
)
|
|
7691
|
+
);
|
|
7688
7692
|
};
|
|
7689
7693
|
export {
|
|
7690
7694
|
Tl as DownloadModal
|