@cubone/react-file-manager 1.11.0 → 1.12.0
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/react-file-manager.es.js +327 -327
- package/package.json +1 -1
|
@@ -65,14 +65,14 @@ function cr() {
|
|
|
65
65
|
ye.unshift("Warning: " + H), Function.prototype.apply.call(console[u], console, ye);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var C = !1, c = !1, y = !1, R = !1,
|
|
69
|
-
|
|
68
|
+
var C = !1, c = !1, y = !1, R = !1, T = !1, Y;
|
|
69
|
+
Y = Symbol.for("react.module.reference");
|
|
70
70
|
function $(u) {
|
|
71
|
-
return !!(typeof u == "string" || typeof u == "function" || u === a || u === l ||
|
|
71
|
+
return !!(typeof u == "string" || typeof u == "function" || u === a || u === l || T || u === i || u === p || u === m || R || u === V || C || c || y || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === b || u.$$typeof === s || u.$$typeof === d || u.$$typeof === h || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
75
|
-
u.$$typeof ===
|
|
75
|
+
u.$$typeof === Y || u.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
77
|
function _(u, H, X) {
|
|
78
78
|
var ee = u.displayName;
|
|
@@ -129,14 +129,14 @@ function cr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var te = Object.assign, ue = 0, ne, oe, pe, ge, S,
|
|
132
|
+
var te = Object.assign, ue = 0, ne, oe, pe, ge, S, q, x;
|
|
133
133
|
function A() {
|
|
134
134
|
}
|
|
135
135
|
A.__reactDisabledLog = !0;
|
|
136
136
|
function L() {
|
|
137
137
|
{
|
|
138
138
|
if (ue === 0) {
|
|
139
|
-
ne = console.log, oe = console.info, pe = console.warn, ge = console.error, S = console.group,
|
|
139
|
+
ne = console.log, oe = console.info, pe = console.warn, ge = console.error, S = console.group, q = console.groupCollapsed, x = console.groupEnd;
|
|
140
140
|
var u = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -156,7 +156,7 @@ function cr() {
|
|
|
156
156
|
ue++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function K() {
|
|
160
160
|
{
|
|
161
161
|
if (ue--, ue === 0) {
|
|
162
162
|
var u = {
|
|
@@ -181,7 +181,7 @@ function cr() {
|
|
|
181
181
|
value: S
|
|
182
182
|
}),
|
|
183
183
|
groupCollapsed: te({}, u, {
|
|
184
|
-
value:
|
|
184
|
+
value: q
|
|
185
185
|
}),
|
|
186
186
|
groupEnd: te({}, u, {
|
|
187
187
|
value: x
|
|
@@ -259,14 +259,14 @@ function cr() {
|
|
|
259
259
|
} catch (be) {
|
|
260
260
|
if (be && ee && typeof be.stack == "string") {
|
|
261
261
|
for (var v = be.stack.split(`
|
|
262
|
-
`),
|
|
263
|
-
`), z = v.length - 1, U =
|
|
262
|
+
`), P = ee.stack.split(`
|
|
263
|
+
`), z = v.length - 1, U = P.length - 1; z >= 1 && U >= 0 && v[z] !== P[U]; )
|
|
264
264
|
U--;
|
|
265
265
|
for (; z >= 1 && U >= 0; z--, U--)
|
|
266
|
-
if (v[z] !==
|
|
266
|
+
if (v[z] !== P[U]) {
|
|
267
267
|
if (z !== 1 || U !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (z--, U--, U < 0 || v[z] !==
|
|
269
|
+
if (z--, U--, U < 0 || v[z] !== P[U]) {
|
|
270
270
|
var se = `
|
|
271
271
|
` + v[z].replace(" at new ", " at ");
|
|
272
272
|
return u.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", u.displayName)), typeof u == "function" && E.set(u, se), se;
|
|
@@ -276,7 +276,7 @@ function cr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
k = !1, M.current = ye,
|
|
279
|
+
k = !1, M.current = ye, K(), Error.prepareStackTrace = fe;
|
|
280
280
|
}
|
|
281
281
|
var le = u ? u.displayName || u.name : "", ae = le ? g(le) : "";
|
|
282
282
|
return typeof u == "function" && E.set(u, ae), ae;
|
|
@@ -333,8 +333,8 @@ function cr() {
|
|
|
333
333
|
var v = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof u[n] != "function") {
|
|
336
|
-
var
|
|
337
|
-
throw
|
|
336
|
+
var P = Error((ee || "React class") + ": " + X + " type `" + n + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[n] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw P.name = "Invariant Violation", P;
|
|
338
338
|
}
|
|
339
339
|
v = u[n](H, n, ee, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
340
|
} catch (z) {
|
|
@@ -450,8 +450,8 @@ function cr() {
|
|
|
450
450
|
};
|
|
451
451
|
function Ft(u, H, X, ee, fe) {
|
|
452
452
|
{
|
|
453
|
-
var ye, n = {}, v = null,
|
|
454
|
-
X !== void 0 && (Le(X), v = "" + X), kt(H) && (Le(H.key), v = "" + H.key), Mt(H) && (
|
|
453
|
+
var ye, n = {}, v = null, P = null;
|
|
454
|
+
X !== void 0 && (Le(X), v = "" + X), kt(H) && (Le(H.key), v = "" + H.key), Mt(H) && (P = H.ref, Nt(H, fe));
|
|
455
455
|
for (ye in H)
|
|
456
456
|
de.call(H, ye) && !dt.hasOwnProperty(ye) && (n[ye] = H[ye]);
|
|
457
457
|
if (u && u.defaultProps) {
|
|
@@ -459,11 +459,11 @@ function cr() {
|
|
|
459
459
|
for (ye in z)
|
|
460
460
|
n[ye] === void 0 && (n[ye] = z[ye]);
|
|
461
461
|
}
|
|
462
|
-
if (v ||
|
|
462
|
+
if (v || P) {
|
|
463
463
|
var U = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
464
|
-
v && Qe(n, U),
|
|
464
|
+
v && Qe(n, U), P && _t(n, U);
|
|
465
465
|
}
|
|
466
|
-
return At(u, v,
|
|
466
|
+
return At(u, v, P, fe, ee, He.current, n);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var et = D.ReactCurrentOwner, pt = D.ReactDebugCurrentFrame;
|
|
@@ -583,8 +583,8 @@ Check the top-level render call using <` + X + ">.");
|
|
|
583
583
|
if (!n) {
|
|
584
584
|
var v = "";
|
|
585
585
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
-
var
|
|
587
|
-
|
|
586
|
+
var P = Me();
|
|
587
|
+
P ? v += P : v += Ke();
|
|
588
588
|
var z;
|
|
589
589
|
u === null ? z = "null" : Ue(u) ? z = "array" : u !== void 0 && u.$$typeof === r ? (z = "<" + (J(u.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof u, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
|
|
590
590
|
}
|
|
@@ -855,8 +855,8 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
855
855
|
}, s = /* @__PURE__ */ function() {
|
|
856
856
|
function C(c, y) {
|
|
857
857
|
for (var R = 0; R < y.length; R++) {
|
|
858
|
-
var
|
|
859
|
-
|
|
858
|
+
var T = y[R];
|
|
859
|
+
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(c, T.key, T);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
862
|
return function(c, y, R) {
|
|
@@ -898,23 +898,23 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
898
898
|
var F = function(C) {
|
|
899
899
|
I(c, C);
|
|
900
900
|
function c() {
|
|
901
|
-
var y, R,
|
|
901
|
+
var y, R, T, Y;
|
|
902
902
|
B(this, c);
|
|
903
903
|
for (var $ = arguments.length, _ = Array($), G = 0; G < $; G++)
|
|
904
904
|
_[G] = arguments[G];
|
|
905
|
-
return
|
|
906
|
-
delayed:
|
|
907
|
-
}, R), D(
|
|
905
|
+
return Y = (R = (T = D(this, (y = c.__proto__ || Object.getPrototypeOf(c)).call.apply(y, [this].concat(_))), T), T.state = {
|
|
906
|
+
delayed: T.props.delay > 0
|
|
907
|
+
}, R), D(T, Y);
|
|
908
908
|
}
|
|
909
909
|
return s(c, [{
|
|
910
910
|
key: "componentDidMount",
|
|
911
911
|
value: function() {
|
|
912
|
-
var R = this,
|
|
913
|
-
|
|
912
|
+
var R = this, T = this.props.delay, Y = this.state.delayed;
|
|
913
|
+
Y && (this.timeout = setTimeout(function() {
|
|
914
914
|
R.setState({
|
|
915
915
|
delayed: !1
|
|
916
916
|
});
|
|
917
|
-
},
|
|
917
|
+
}, T));
|
|
918
918
|
}
|
|
919
919
|
}, {
|
|
920
920
|
key: "componentWillUnmount",
|
|
@@ -925,10 +925,10 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
925
925
|
}, {
|
|
926
926
|
key: "render",
|
|
927
927
|
value: function() {
|
|
928
|
-
var R = this.props,
|
|
928
|
+
var R = this.props, T = R.color;
|
|
929
929
|
R.delay;
|
|
930
|
-
var
|
|
931
|
-
fill:
|
|
930
|
+
var Y = R.type, $ = R.height, _ = R.width, G = N(R, ["color", "delay", "type", "height", "width"]), J = this.state.delayed ? "blank" : Y, te = w[J], ue = {
|
|
931
|
+
fill: T,
|
|
932
932
|
height: $,
|
|
933
933
|
width: _
|
|
934
934
|
};
|
|
@@ -994,9 +994,9 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
994
994
|
function R(f, g, k) {
|
|
995
995
|
this.props = f, this.context = g, this.refs = d, this.updater = k || C;
|
|
996
996
|
}
|
|
997
|
-
var
|
|
998
|
-
|
|
999
|
-
var
|
|
997
|
+
var T = R.prototype = new y();
|
|
998
|
+
T.constructor = R, l(T, c.prototype), T.isPureReactComponent = !0;
|
|
999
|
+
var Y = { current: null }, $ = Object.prototype.hasOwnProperty, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1000
1000
|
function G(f, g, k) {
|
|
1001
1001
|
var E = void 0, W = {}, j = null, ie = null;
|
|
1002
1002
|
if (g != null) for (E in g.ref !== void 0 && (ie = g.ref), g.key !== void 0 && (j = "" + g.key), g) $.call(g, E) && !_.hasOwnProperty(E) && (W[E] = g[E]);
|
|
@@ -1007,7 +1007,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1007
1007
|
W.children = Q;
|
|
1008
1008
|
}
|
|
1009
1009
|
if (f && f.defaultProps) for (E in ce = f.defaultProps, ce) W[E] === void 0 && (W[E] = ce[E]);
|
|
1010
|
-
return { $$typeof: m, type: f, key: j, ref: ie, props: W, _owner:
|
|
1010
|
+
return { $$typeof: m, type: f, key: j, ref: ie, props: W, _owner: Y.current };
|
|
1011
1011
|
}
|
|
1012
1012
|
function J(f) {
|
|
1013
1013
|
return typeof f == "object" && f !== null && f.$$typeof === m;
|
|
@@ -1059,7 +1059,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1059
1059
|
function S(f, g) {
|
|
1060
1060
|
return typeof f == "object" && f !== null && f.key != null ? te(f.key) : g.toString(36);
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1062
|
+
function q(f, g) {
|
|
1063
1063
|
f.func.call(f.context, g, f.count++);
|
|
1064
1064
|
}
|
|
1065
1065
|
function x(f, g, k) {
|
|
@@ -1076,7 +1076,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1076
1076
|
return A(f, E, null, g, k), E;
|
|
1077
1077
|
}, forEach: function(f, g, k) {
|
|
1078
1078
|
if (f == null) return f;
|
|
1079
|
-
g = oe(null, null, g, k), f == null || ge(f, "",
|
|
1079
|
+
g = oe(null, null, g, k), f == null || ge(f, "", q, g), pe(g);
|
|
1080
1080
|
}, count: function(f) {
|
|
1081
1081
|
return f == null ? 0 : ge(f, "", h.thatReturnsNull, null);
|
|
1082
1082
|
}, toArray: function(f) {
|
|
@@ -1102,7 +1102,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1102
1102
|
f == null && F("267", f);
|
|
1103
1103
|
var E = void 0, W = l({}, f.props), j = f.key, ie = f.ref, ce = f._owner;
|
|
1104
1104
|
if (g != null) {
|
|
1105
|
-
g.ref !== void 0 && (ie = g.ref, ce =
|
|
1105
|
+
g.ref !== void 0 && (ie = g.ref, ce = Y.current), g.key !== void 0 && (j = "" + g.key);
|
|
1106
1106
|
var Q = void 0;
|
|
1107
1107
|
f.type && f.type.defaultProps && (Q = f.type.defaultProps);
|
|
1108
1108
|
for (E in g) $.call(g, E) && !_.hasOwnProperty(E) && (W[E] = g[E] === void 0 && Q !== void 0 ? Q[E] : g[E]);
|
|
@@ -1117,7 +1117,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1117
1117
|
}, createFactory: function(f) {
|
|
1118
1118
|
var g = G.bind(null, f);
|
|
1119
1119
|
return g.type = f, g;
|
|
1120
|
-
}, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner:
|
|
1120
|
+
}, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: Y, assign: l } }, K = Object.freeze({ default: L }), M = K && L || K;
|
|
1121
1121
|
o.exports = M.default ? M.default : M;
|
|
1122
1122
|
},
|
|
1123
1123
|
/* 10 */
|
|
@@ -1132,21 +1132,21 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1132
1132
|
* LICENSE file in the root directory of this source tree.
|
|
1133
1133
|
*/
|
|
1134
1134
|
process.env.NODE_ENV !== "production" && function() {
|
|
1135
|
-
var l = i(2), s = i(0), d = i(5), h = i(3), p = i(1), m = i(6), b = "16.3.2", w = typeof Symbol == "function" && Symbol.for, V = w ? Symbol.for("react.element") : 60103, O = w ? Symbol.for("react.call") : 60104, N = w ? Symbol.for("react.return") : 60105, B = w ? Symbol.for("react.portal") : 60106, D = w ? Symbol.for("react.fragment") : 60107, I = w ? Symbol.for("react.strict_mode") : 60108, F = w ? Symbol.for("react.provider") : 60109, C = w ? Symbol.for("react.context") : 60110, c = w ? Symbol.for("react.async_mode") : 60111, y = w ? Symbol.for("react.forward_ref") : 60112, R = typeof Symbol == "function" && Symbol.iterator,
|
|
1136
|
-
function
|
|
1135
|
+
var l = i(2), s = i(0), d = i(5), h = i(3), p = i(1), m = i(6), b = "16.3.2", w = typeof Symbol == "function" && Symbol.for, V = w ? Symbol.for("react.element") : 60103, O = w ? Symbol.for("react.call") : 60104, N = w ? Symbol.for("react.return") : 60105, B = w ? Symbol.for("react.portal") : 60106, D = w ? Symbol.for("react.fragment") : 60107, I = w ? Symbol.for("react.strict_mode") : 60108, F = w ? Symbol.for("react.provider") : 60109, C = w ? Symbol.for("react.context") : 60110, c = w ? Symbol.for("react.async_mode") : 60111, y = w ? Symbol.for("react.forward_ref") : 60112, R = typeof Symbol == "function" && Symbol.iterator, T = "@@iterator";
|
|
1136
|
+
function Y(n) {
|
|
1137
1137
|
if (n === null || typeof n > "u")
|
|
1138
1138
|
return null;
|
|
1139
|
-
var v = R && n[R] || n[
|
|
1139
|
+
var v = R && n[R] || n[T];
|
|
1140
1140
|
return typeof v == "function" ? v : null;
|
|
1141
1141
|
}
|
|
1142
1142
|
var $ = function() {
|
|
1143
1143
|
};
|
|
1144
1144
|
{
|
|
1145
1145
|
var _ = function(n) {
|
|
1146
|
-
for (var v = arguments.length,
|
|
1147
|
-
|
|
1146
|
+
for (var v = arguments.length, P = Array(v > 1 ? v - 1 : 0), z = 1; z < v; z++)
|
|
1147
|
+
P[z - 1] = arguments[z];
|
|
1148
1148
|
var U = 0, se = "Warning: " + n.replace(/%s/g, function() {
|
|
1149
|
-
return
|
|
1149
|
+
return P[U++];
|
|
1150
1150
|
});
|
|
1151
1151
|
typeof console < "u" && console.warn(se);
|
|
1152
1152
|
try {
|
|
@@ -1158,7 +1158,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1158
1158
|
if (v === void 0)
|
|
1159
1159
|
throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
|
|
1160
1160
|
if (!n) {
|
|
1161
|
-
for (var
|
|
1161
|
+
for (var P = arguments.length, z = Array(P > 2 ? P - 2 : 0), U = 2; U < P; U++)
|
|
1162
1162
|
z[U - 2] = arguments[U];
|
|
1163
1163
|
_.apply(void 0, [v].concat(z));
|
|
1164
1164
|
}
|
|
@@ -1167,7 +1167,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1167
1167
|
var G = $, J = {};
|
|
1168
1168
|
function te(n, v) {
|
|
1169
1169
|
{
|
|
1170
|
-
var
|
|
1170
|
+
var P = n.constructor, z = P && (P.displayName || P.name) || "ReactClass", U = z + "." + v;
|
|
1171
1171
|
if (J[U])
|
|
1172
1172
|
return;
|
|
1173
1173
|
h(!1, "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", v, z), J[U] = !0;
|
|
@@ -1199,7 +1199,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1199
1199
|
* @param {?string} callerName name of the calling function in the public API.
|
|
1200
1200
|
* @internal
|
|
1201
1201
|
*/
|
|
1202
|
-
enqueueForceUpdate: function(n, v,
|
|
1202
|
+
enqueueForceUpdate: function(n, v, P) {
|
|
1203
1203
|
te(n, "forceUpdate");
|
|
1204
1204
|
},
|
|
1205
1205
|
/**
|
|
@@ -1215,7 +1215,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1215
1215
|
* @param {?string} callerName name of the calling function in the public API.
|
|
1216
1216
|
* @internal
|
|
1217
1217
|
*/
|
|
1218
|
-
enqueueReplaceState: function(n, v,
|
|
1218
|
+
enqueueReplaceState: function(n, v, P, z) {
|
|
1219
1219
|
te(n, "replaceState");
|
|
1220
1220
|
},
|
|
1221
1221
|
/**
|
|
@@ -1230,12 +1230,12 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1230
1230
|
* @param {?string} Name of the calling function in the public API.
|
|
1231
1231
|
* @internal
|
|
1232
1232
|
*/
|
|
1233
|
-
enqueueSetState: function(n, v,
|
|
1233
|
+
enqueueSetState: function(n, v, P, z) {
|
|
1234
1234
|
te(n, "setState");
|
|
1235
1235
|
}
|
|
1236
1236
|
};
|
|
1237
|
-
function ne(n, v,
|
|
1238
|
-
this.props = n, this.context = v, this.refs = d, this.updater =
|
|
1237
|
+
function ne(n, v, P) {
|
|
1238
|
+
this.props = n, this.context = v, this.refs = d, this.updater = P || ue;
|
|
1239
1239
|
}
|
|
1240
1240
|
ne.prototype.isReactComponent = {}, ne.prototype.setState = function(n, v) {
|
|
1241
1241
|
typeof n == "object" || typeof n == "function" || n == null || s(!1, "setState(...): takes an object of state variables to update or a function which returns an object of state variables."), this.updater.enqueueSetState(this, n, v, "setState");
|
|
@@ -1259,11 +1259,11 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1259
1259
|
function S() {
|
|
1260
1260
|
}
|
|
1261
1261
|
S.prototype = ne.prototype;
|
|
1262
|
-
function
|
|
1263
|
-
this.props = n, this.context = v, this.refs = d, this.updater =
|
|
1262
|
+
function q(n, v, P) {
|
|
1263
|
+
this.props = n, this.context = v, this.refs = d, this.updater = P || ue;
|
|
1264
1264
|
}
|
|
1265
|
-
var x =
|
|
1266
|
-
x.constructor =
|
|
1265
|
+
var x = q.prototype = new S();
|
|
1266
|
+
x.constructor = q, l(x, ne.prototype), x.isPureReactComponent = !0;
|
|
1267
1267
|
function A() {
|
|
1268
1268
|
var n = {
|
|
1269
1269
|
current: null
|
|
@@ -1276,14 +1276,14 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1276
1276
|
* @type {ReactComponent}
|
|
1277
1277
|
*/
|
|
1278
1278
|
current: null
|
|
1279
|
-
},
|
|
1279
|
+
}, K = Object.prototype.hasOwnProperty, M = {
|
|
1280
1280
|
key: !0,
|
|
1281
1281
|
ref: !0,
|
|
1282
1282
|
__self: !0,
|
|
1283
1283
|
__source: !0
|
|
1284
1284
|
}, f = void 0, g = void 0;
|
|
1285
1285
|
function k(n) {
|
|
1286
|
-
if (
|
|
1286
|
+
if (K.call(n, "ref")) {
|
|
1287
1287
|
var v = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
1288
1288
|
if (v && v.isReactWarning)
|
|
1289
1289
|
return !1;
|
|
@@ -1291,7 +1291,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1291
1291
|
return n.ref !== void 0;
|
|
1292
1292
|
}
|
|
1293
1293
|
function E(n) {
|
|
1294
|
-
if (
|
|
1294
|
+
if (K.call(n, "key")) {
|
|
1295
1295
|
var v = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
1296
1296
|
if (v && v.isReactWarning)
|
|
1297
1297
|
return !1;
|
|
@@ -1299,31 +1299,31 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1299
1299
|
return n.key !== void 0;
|
|
1300
1300
|
}
|
|
1301
1301
|
function W(n, v) {
|
|
1302
|
-
var
|
|
1302
|
+
var P = function() {
|
|
1303
1303
|
f || (f = !0, h(!1, "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", v));
|
|
1304
1304
|
};
|
|
1305
|
-
|
|
1306
|
-
get:
|
|
1305
|
+
P.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
1306
|
+
get: P,
|
|
1307
1307
|
configurable: !0
|
|
1308
1308
|
});
|
|
1309
1309
|
}
|
|
1310
1310
|
function j(n, v) {
|
|
1311
|
-
var
|
|
1311
|
+
var P = function() {
|
|
1312
1312
|
g || (g = !0, h(!1, "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", v));
|
|
1313
1313
|
};
|
|
1314
|
-
|
|
1315
|
-
get:
|
|
1314
|
+
P.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
1315
|
+
get: P,
|
|
1316
1316
|
configurable: !0
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
|
-
var ie = function(n, v,
|
|
1319
|
+
var ie = function(n, v, P, z, U, se, le) {
|
|
1320
1320
|
var ae = {
|
|
1321
1321
|
// This tag allows us to uniquely identify this as a React Element
|
|
1322
1322
|
$$typeof: V,
|
|
1323
1323
|
// Built-in properties that belong on the element
|
|
1324
1324
|
type: n,
|
|
1325
1325
|
key: v,
|
|
1326
|
-
ref:
|
|
1326
|
+
ref: P,
|
|
1327
1327
|
props: le,
|
|
1328
1328
|
// Record the component responsible for creating this element.
|
|
1329
1329
|
_owner: se
|
|
@@ -1345,16 +1345,16 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1345
1345
|
value: U
|
|
1346
1346
|
}), Object.freeze && (Object.freeze(ae.props), Object.freeze(ae)), ae;
|
|
1347
1347
|
};
|
|
1348
|
-
function ce(n, v,
|
|
1348
|
+
function ce(n, v, P) {
|
|
1349
1349
|
var z = void 0, U = {}, se = null, le = null, ae = null, be = null;
|
|
1350
1350
|
if (v != null) {
|
|
1351
1351
|
k(v) && (le = v.ref), E(v) && (se = "" + v.key), ae = v.__self === void 0 ? null : v.__self, be = v.__source === void 0 ? null : v.__source;
|
|
1352
1352
|
for (z in v)
|
|
1353
|
-
|
|
1353
|
+
K.call(v, z) && !M.hasOwnProperty(z) && (U[z] = v[z]);
|
|
1354
1354
|
}
|
|
1355
1355
|
var Pe = arguments.length - 2;
|
|
1356
1356
|
if (Pe === 1)
|
|
1357
|
-
U.children =
|
|
1357
|
+
U.children = P;
|
|
1358
1358
|
else if (Pe > 1) {
|
|
1359
1359
|
for (var Se = Array(Pe), Ee = 0; Ee < Pe; Ee++)
|
|
1360
1360
|
Se[Ee] = arguments[Ee + 2];
|
|
@@ -1372,10 +1372,10 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1372
1372
|
return ie(n, se, le, ae, be, L.current, U);
|
|
1373
1373
|
}
|
|
1374
1374
|
function Q(n, v) {
|
|
1375
|
-
var
|
|
1376
|
-
return
|
|
1375
|
+
var P = ie(n.type, v, n.ref, n._self, n._source, n._owner, n.props);
|
|
1376
|
+
return P;
|
|
1377
1377
|
}
|
|
1378
|
-
function de(n, v,
|
|
1378
|
+
function de(n, v, P) {
|
|
1379
1379
|
n == null && s(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", n);
|
|
1380
1380
|
var z = void 0, U = l({}, n.props), se = n.key, le = n.ref, ae = n._self, be = n._source, Pe = n._owner;
|
|
1381
1381
|
if (v != null) {
|
|
@@ -1383,11 +1383,11 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1383
1383
|
var Se = void 0;
|
|
1384
1384
|
n.type && n.type.defaultProps && (Se = n.type.defaultProps);
|
|
1385
1385
|
for (z in v)
|
|
1386
|
-
|
|
1386
|
+
K.call(v, z) && !M.hasOwnProperty(z) && (v[z] === void 0 && Se !== void 0 ? U[z] = Se[z] : U[z] = v[z]);
|
|
1387
1387
|
}
|
|
1388
1388
|
var Ee = arguments.length - 2;
|
|
1389
1389
|
if (Ee === 1)
|
|
1390
|
-
U.children =
|
|
1390
|
+
U.children = P;
|
|
1391
1391
|
else if (Ee > 1) {
|
|
1392
1392
|
for (var $e = Array(Ee), _e = 0; _e < Ee; _e++)
|
|
1393
1393
|
$e[_e] = arguments[_e + 2];
|
|
@@ -1405,11 +1405,11 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1405
1405
|
};
|
|
1406
1406
|
var Te = ".", We = ":";
|
|
1407
1407
|
function Ze(n) {
|
|
1408
|
-
var v = /[=:]/g,
|
|
1408
|
+
var v = /[=:]/g, P = {
|
|
1409
1409
|
"=": "=0",
|
|
1410
1410
|
":": "=2"
|
|
1411
1411
|
}, z = ("" + n).replace(v, function(U) {
|
|
1412
|
-
return
|
|
1412
|
+
return P[U];
|
|
1413
1413
|
});
|
|
1414
1414
|
return "$" + z;
|
|
1415
1415
|
}
|
|
@@ -1418,15 +1418,15 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1418
1418
|
return ("" + n).replace(St, "$&/");
|
|
1419
1419
|
}
|
|
1420
1420
|
var ft = 10, Le = [];
|
|
1421
|
-
function He(n, v,
|
|
1421
|
+
function He(n, v, P, z) {
|
|
1422
1422
|
if (Le.length) {
|
|
1423
1423
|
var U = Le.pop();
|
|
1424
|
-
return U.result = n, U.keyPrefix = v, U.func =
|
|
1424
|
+
return U.result = n, U.keyPrefix = v, U.func = P, U.context = z, U.count = 0, U;
|
|
1425
1425
|
} else
|
|
1426
1426
|
return {
|
|
1427
1427
|
result: n,
|
|
1428
1428
|
keyPrefix: v,
|
|
1429
|
-
func:
|
|
1429
|
+
func: P,
|
|
1430
1430
|
context: z,
|
|
1431
1431
|
count: 0
|
|
1432
1432
|
};
|
|
@@ -1434,7 +1434,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1434
1434
|
function dt(n) {
|
|
1435
1435
|
n.result = null, n.keyPrefix = null, n.func = null, n.context = null, n.count = 0, Le.length < ft && Le.push(n);
|
|
1436
1436
|
}
|
|
1437
|
-
function Ye(n, v,
|
|
1437
|
+
function Ye(n, v, P, z) {
|
|
1438
1438
|
var U = typeof n;
|
|
1439
1439
|
(U === "undefined" || U === "boolean") && (n = null);
|
|
1440
1440
|
var se = !1;
|
|
@@ -1454,7 +1454,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
if (se)
|
|
1457
|
-
return
|
|
1457
|
+
return P(
|
|
1458
1458
|
z,
|
|
1459
1459
|
n,
|
|
1460
1460
|
// If it's the only child, treat the name as if it was wrapped in an array
|
|
@@ -1464,13 +1464,13 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1464
1464
|
var le = void 0, ae = void 0, be = 0, Pe = v === "" ? Te : v + We;
|
|
1465
1465
|
if (Array.isArray(n))
|
|
1466
1466
|
for (var Se = 0; Se < n.length; Se++)
|
|
1467
|
-
le = n[Se], ae = Pe + Ie(le, Se), be += Ye(le, ae,
|
|
1467
|
+
le = n[Se], ae = Pe + Ie(le, Se), be += Ye(le, ae, P, z);
|
|
1468
1468
|
else {
|
|
1469
|
-
var Ee =
|
|
1469
|
+
var Ee = Y(n);
|
|
1470
1470
|
if (typeof Ee == "function") {
|
|
1471
1471
|
Ee === n.entries && (Ue || h(!1, "Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s", we.getStackAddendum()), Ue = !0);
|
|
1472
1472
|
for (var $e = Ee.call(n), _e = void 0, ir = 0; !(_e = $e.next()).done; )
|
|
1473
|
-
le = _e.value, ae = Pe + Ie(le, ir++), be += Ye(le, ae,
|
|
1473
|
+
le = _e.value, ae = Pe + Ie(le, ir++), be += Ye(le, ae, P, z);
|
|
1474
1474
|
} else if (U === "object") {
|
|
1475
1475
|
var Qt = "";
|
|
1476
1476
|
Qt = " If you meant to render a collection of children, use an array instead." + we.getStackAddendum();
|
|
@@ -1480,42 +1480,42 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1480
1480
|
}
|
|
1481
1481
|
return be;
|
|
1482
1482
|
}
|
|
1483
|
-
function qe(n, v,
|
|
1484
|
-
return n == null ? 0 : Ye(n, "", v,
|
|
1483
|
+
function qe(n, v, P) {
|
|
1484
|
+
return n == null ? 0 : Ye(n, "", v, P);
|
|
1485
1485
|
}
|
|
1486
1486
|
function Ie(n, v) {
|
|
1487
1487
|
return typeof n == "object" && n !== null && n.key != null ? Ze(n.key) : v.toString(36);
|
|
1488
1488
|
}
|
|
1489
|
-
function Mt(n, v,
|
|
1489
|
+
function Mt(n, v, P) {
|
|
1490
1490
|
var z = n.func, U = n.context;
|
|
1491
1491
|
z.call(U, v, n.count++);
|
|
1492
1492
|
}
|
|
1493
|
-
function kt(n, v,
|
|
1493
|
+
function kt(n, v, P) {
|
|
1494
1494
|
if (n == null)
|
|
1495
1495
|
return n;
|
|
1496
|
-
var z = He(null, null, v,
|
|
1496
|
+
var z = He(null, null, v, P);
|
|
1497
1497
|
qe(n, Mt, z), dt(z);
|
|
1498
1498
|
}
|
|
1499
|
-
function Nt(n, v,
|
|
1499
|
+
function Nt(n, v, P) {
|
|
1500
1500
|
var z = n.result, U = n.keyPrefix, se = n.func, le = n.context, ae = se.call(le, v, n.count++);
|
|
1501
|
-
Array.isArray(ae) ? Qe(ae, z,
|
|
1501
|
+
Array.isArray(ae) ? Qe(ae, z, P, p.thatReturnsArgument) : ae != null && (Ce(ae) && (ae = Q(
|
|
1502
1502
|
ae,
|
|
1503
1503
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
1504
1504
|
// traverseAllChildren used to do for objects as children
|
|
1505
|
-
U + (ae.key && (!v || v.key !== ae.key) ? ut(ae.key) + "/" : "") +
|
|
1505
|
+
U + (ae.key && (!v || v.key !== ae.key) ? ut(ae.key) + "/" : "") + P
|
|
1506
1506
|
)), z.push(ae));
|
|
1507
1507
|
}
|
|
1508
|
-
function Qe(n, v,
|
|
1508
|
+
function Qe(n, v, P, z, U) {
|
|
1509
1509
|
var se = "";
|
|
1510
|
-
|
|
1510
|
+
P != null && (se = ut(P) + "/");
|
|
1511
1511
|
var le = He(v, se, z, U);
|
|
1512
1512
|
qe(n, Nt, le), dt(le);
|
|
1513
1513
|
}
|
|
1514
|
-
function _t(n, v,
|
|
1514
|
+
function _t(n, v, P) {
|
|
1515
1515
|
if (n == null)
|
|
1516
1516
|
return n;
|
|
1517
1517
|
var z = [];
|
|
1518
|
-
return Qe(n, z, null, v,
|
|
1518
|
+
return Qe(n, z, null, v, P), z;
|
|
1519
1519
|
}
|
|
1520
1520
|
function At(n, v) {
|
|
1521
1521
|
return qe(n, p.thatReturnsNull, null);
|
|
@@ -1529,7 +1529,7 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1529
1529
|
}
|
|
1530
1530
|
function pt(n, v) {
|
|
1531
1531
|
v === void 0 ? v = null : v === null || typeof v == "function" || h(!1, "createContext: Expected the optional second argument to be a function. Instead received: %s", v);
|
|
1532
|
-
var
|
|
1532
|
+
var P = {
|
|
1533
1533
|
$$typeof: C,
|
|
1534
1534
|
_calculateChangedBits: v,
|
|
1535
1535
|
_defaultValue: n,
|
|
@@ -1539,10 +1539,10 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1539
1539
|
Provider: null,
|
|
1540
1540
|
Consumer: null
|
|
1541
1541
|
};
|
|
1542
|
-
return
|
|
1542
|
+
return P.Provider = {
|
|
1543
1543
|
$$typeof: F,
|
|
1544
|
-
_context:
|
|
1545
|
-
},
|
|
1544
|
+
_context: P
|
|
1545
|
+
}, P.Consumer = P, P._currentRenderer = null, P;
|
|
1546
1546
|
}
|
|
1547
1547
|
function Ve(n) {
|
|
1548
1548
|
return typeof n != "function" && h(!1, "forwardRef requires a render function but was given %s.", n === null ? "null" : typeof n), {
|
|
@@ -1550,9 +1550,9 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1550
1550
|
render: n
|
|
1551
1551
|
};
|
|
1552
1552
|
}
|
|
1553
|
-
var tt = function(n, v,
|
|
1553
|
+
var tt = function(n, v, P) {
|
|
1554
1554
|
return `
|
|
1555
|
-
in ` + (n || "Unknown") + (v ? " (at " + v.fileName.replace(/^.*[\\\/]/, "") + ":" + v.lineNumber + ")" :
|
|
1555
|
+
in ` + (n || "Unknown") + (v ? " (at " + v.fileName.replace(/^.*[\\\/]/, "") + ":" + v.lineNumber + ")" : P ? " (created by " + P + ")" : "");
|
|
1556
1556
|
};
|
|
1557
1557
|
function nt(n) {
|
|
1558
1558
|
return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -1577,8 +1577,8 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1577
1577
|
if (typeof v == "object" && v !== null)
|
|
1578
1578
|
switch (v.$$typeof) {
|
|
1579
1579
|
case y:
|
|
1580
|
-
var
|
|
1581
|
-
return
|
|
1580
|
+
var P = v.render.displayName || v.render.name || "";
|
|
1581
|
+
return P !== "" ? "ForwardRef(" + P + ")" : "ForwardRef";
|
|
1582
1582
|
}
|
|
1583
1583
|
return null;
|
|
1584
1584
|
}
|
|
@@ -1590,8 +1590,8 @@ var t = qt.exports, kn = { exports: {} };
|
|
|
1590
1590
|
}, Fe = function() {
|
|
1591
1591
|
var n = "";
|
|
1592
1592
|
if (Me) {
|
|
1593
|
-
var v = ht(Me),
|
|
1594
|
-
n += tt(v, Me._source,
|
|
1593
|
+
var v = ht(Me), P = Me._owner;
|
|
1594
|
+
n += tt(v, Me._source, P && Ke(P));
|
|
1595
1595
|
}
|
|
1596
1596
|
return n += we.getStackAddendum() || "", n;
|
|
1597
1597
|
};
|
|
@@ -1607,10 +1607,10 @@ Check the render method of \`` + n + "`.";
|
|
|
1607
1607
|
}
|
|
1608
1608
|
function zt(n) {
|
|
1609
1609
|
if (n != null && n.__source !== void 0) {
|
|
1610
|
-
var v = n.__source,
|
|
1610
|
+
var v = n.__source, P = v.fileName.replace(/^.*[\\\/]/, ""), z = v.lineNumber;
|
|
1611
1611
|
return `
|
|
1612
1612
|
|
|
1613
|
-
Check your code at ` +
|
|
1613
|
+
Check your code at ` + P + ":" + z + ".";
|
|
1614
1614
|
}
|
|
1615
1615
|
return "";
|
|
1616
1616
|
}
|
|
@@ -1618,35 +1618,35 @@ Check your code at ` + T + ":" + z + ".";
|
|
|
1618
1618
|
function mt(n) {
|
|
1619
1619
|
var v = rt();
|
|
1620
1620
|
if (!v) {
|
|
1621
|
-
var
|
|
1622
|
-
|
|
1621
|
+
var P = typeof n == "string" ? n : n.displayName || n.name;
|
|
1622
|
+
P && (v = `
|
|
1623
1623
|
|
|
1624
|
-
Check the top-level render call using <` +
|
|
1624
|
+
Check the top-level render call using <` + P + ">.");
|
|
1625
1625
|
}
|
|
1626
1626
|
return v;
|
|
1627
1627
|
}
|
|
1628
1628
|
function at(n, v) {
|
|
1629
1629
|
if (!(!n._store || n._store.validated || n.key != null)) {
|
|
1630
1630
|
n._store.validated = !0;
|
|
1631
|
-
var
|
|
1632
|
-
if (!vt[
|
|
1633
|
-
vt[
|
|
1631
|
+
var P = mt(v);
|
|
1632
|
+
if (!vt[P]) {
|
|
1633
|
+
vt[P] = !0;
|
|
1634
1634
|
var z = "";
|
|
1635
|
-
n && n._owner && n._owner !== L.current && (z = " It was passed a child from " + Ke(n._owner) + "."), Me = n, h(!1, 'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',
|
|
1635
|
+
n && n._owner && n._owner !== L.current && (z = " It was passed a child from " + Ke(n._owner) + "."), Me = n, h(!1, 'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', P, z, Fe()), Me = null;
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
1639
1639
|
function yt(n, v) {
|
|
1640
1640
|
if (typeof n == "object") {
|
|
1641
1641
|
if (Array.isArray(n))
|
|
1642
|
-
for (var
|
|
1643
|
-
var z = n[
|
|
1642
|
+
for (var P = 0; P < n.length; P++) {
|
|
1643
|
+
var z = n[P];
|
|
1644
1644
|
Ce(z) && at(z, v);
|
|
1645
1645
|
}
|
|
1646
1646
|
else if (Ce(n))
|
|
1647
1647
|
n._store && (n._store.validated = !0);
|
|
1648
1648
|
else if (n) {
|
|
1649
|
-
var U =
|
|
1649
|
+
var U = Y(n);
|
|
1650
1650
|
if (typeof U == "function" && U !== n.entries)
|
|
1651
1651
|
for (var se = U.call(n), le = void 0; !(le = se.next()).done; )
|
|
1652
1652
|
Ce(le.value) && at(le.value, v);
|
|
@@ -1656,14 +1656,14 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1656
1656
|
function gt(n) {
|
|
1657
1657
|
var v = n.type;
|
|
1658
1658
|
if (typeof v == "function") {
|
|
1659
|
-
var
|
|
1660
|
-
z ? (Me = n, m(z, n.props, "prop",
|
|
1659
|
+
var P = v.displayName || v.name, z = v.propTypes;
|
|
1660
|
+
z ? (Me = n, m(z, n.props, "prop", P, Fe), Me = null) : v.PropTypes !== void 0 && !Xe && (Xe = !0, h(!1, "Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown")), typeof v.getDefaultProps == "function" && (v.getDefaultProps.isReactClassApproved || h(!1, "getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."));
|
|
1661
1661
|
}
|
|
1662
1662
|
}
|
|
1663
1663
|
function Ht(n) {
|
|
1664
1664
|
Me = n;
|
|
1665
|
-
for (var v = Object.keys(n.props),
|
|
1666
|
-
var z = v[
|
|
1665
|
+
for (var v = Object.keys(n.props), P = 0; P < v.length; P++) {
|
|
1666
|
+
var z = v[P];
|
|
1667
1667
|
if (z !== "children" && z !== "key") {
|
|
1668
1668
|
h(!1, "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s", z, Fe());
|
|
1669
1669
|
break;
|
|
@@ -1671,7 +1671,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1671
1671
|
}
|
|
1672
1672
|
n.ref !== null && h(!1, "Invalid attribute `ref` supplied to `React.Fragment`.%s", Fe()), Me = null;
|
|
1673
1673
|
}
|
|
1674
|
-
function bt(n, v,
|
|
1674
|
+
function bt(n, v, P) {
|
|
1675
1675
|
var z = nt(n);
|
|
1676
1676
|
if (!z) {
|
|
1677
1677
|
var U = "";
|
|
@@ -1700,7 +1700,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}), v;
|
|
1702
1702
|
}
|
|
1703
|
-
function H(n, v,
|
|
1703
|
+
function H(n, v, P) {
|
|
1704
1704
|
for (var z = de.apply(this, arguments), U = 2; U < arguments.length; U++)
|
|
1705
1705
|
yt(arguments[U], z.type);
|
|
1706
1706
|
return gt(z), z;
|
|
@@ -1715,7 +1715,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1715
1715
|
},
|
|
1716
1716
|
createRef: A,
|
|
1717
1717
|
Component: ne,
|
|
1718
|
-
PureComponent:
|
|
1718
|
+
PureComponent: q,
|
|
1719
1719
|
createContext: pt,
|
|
1720
1720
|
forwardRef: Ve,
|
|
1721
1721
|
Fragment: D,
|
|
@@ -1777,8 +1777,8 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1777
1777
|
symbol: c("symbol"),
|
|
1778
1778
|
any: y(),
|
|
1779
1779
|
arrayOf: R,
|
|
1780
|
-
element:
|
|
1781
|
-
instanceOf:
|
|
1780
|
+
element: T(),
|
|
1781
|
+
instanceOf: Y,
|
|
1782
1782
|
node: J(),
|
|
1783
1783
|
objectOf: _,
|
|
1784
1784
|
oneOf: $,
|
|
@@ -1796,7 +1796,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1796
1796
|
function C(x) {
|
|
1797
1797
|
if (process.env.NODE_ENV !== "production")
|
|
1798
1798
|
var A = {}, L = 0;
|
|
1799
|
-
function
|
|
1799
|
+
function K(f, g, k, E, W, j, ie) {
|
|
1800
1800
|
if (E = E || B, j = j || k, ie !== p) {
|
|
1801
1801
|
if (w)
|
|
1802
1802
|
s(
|
|
@@ -1816,12 +1816,12 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1816
1816
|
}
|
|
1817
1817
|
return g[k] == null ? f ? g[k] === null ? new F("The " + W + " `" + j + "` is marked as required " + ("in `" + E + "`, but its value is `null`.")) : new F("The " + W + " `" + j + "` is marked as required in " + ("`" + E + "`, but its value is `undefined`.")) : null : x(g, k, E, W, j);
|
|
1818
1818
|
}
|
|
1819
|
-
var M =
|
|
1820
|
-
return M.isRequired =
|
|
1819
|
+
var M = K.bind(null, !1);
|
|
1820
|
+
return M.isRequired = K.bind(null, !0), M;
|
|
1821
1821
|
}
|
|
1822
1822
|
function c(x) {
|
|
1823
|
-
function A(L,
|
|
1824
|
-
var E = L[
|
|
1823
|
+
function A(L, K, M, f, g, k) {
|
|
1824
|
+
var E = L[K], W = pe(E);
|
|
1825
1825
|
if (W !== x) {
|
|
1826
1826
|
var j = ge(E);
|
|
1827
1827
|
return new F("Invalid " + f + " `" + g + "` of type " + ("`" + j + "` supplied to `" + M + "`, expected ") + ("`" + x + "`."));
|
|
@@ -1834,10 +1834,10 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1834
1834
|
return C(l.thatReturnsNull);
|
|
1835
1835
|
}
|
|
1836
1836
|
function R(x) {
|
|
1837
|
-
function A(L,
|
|
1837
|
+
function A(L, K, M, f, g) {
|
|
1838
1838
|
if (typeof x != "function")
|
|
1839
1839
|
return new F("Property `" + g + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
|
|
1840
|
-
var k = L[
|
|
1840
|
+
var k = L[K];
|
|
1841
1841
|
if (!Array.isArray(k)) {
|
|
1842
1842
|
var E = pe(k);
|
|
1843
1843
|
return new F("Invalid " + f + " `" + g + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected an array."));
|
|
@@ -1851,21 +1851,21 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return C(A);
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
function x(A, L,
|
|
1854
|
+
function T() {
|
|
1855
|
+
function x(A, L, K, M, f) {
|
|
1856
1856
|
var g = A[L];
|
|
1857
1857
|
if (!b(g)) {
|
|
1858
1858
|
var k = pe(g);
|
|
1859
|
-
return new F("Invalid " + M + " `" + f + "` of type " + ("`" + k + "` supplied to `" +
|
|
1859
|
+
return new F("Invalid " + M + " `" + f + "` of type " + ("`" + k + "` supplied to `" + K + "`, expected a single ReactElement."));
|
|
1860
1860
|
}
|
|
1861
1861
|
return null;
|
|
1862
1862
|
}
|
|
1863
1863
|
return C(x);
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1866
|
-
function A(L,
|
|
1867
|
-
if (!(L[
|
|
1868
|
-
var k = x.name || B, E =
|
|
1865
|
+
function Y(x) {
|
|
1866
|
+
function A(L, K, M, f, g) {
|
|
1867
|
+
if (!(L[K] instanceof x)) {
|
|
1868
|
+
var k = x.name || B, E = q(L[K]);
|
|
1869
1869
|
return new F("Invalid " + f + " `" + g + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected ") + ("instance of `" + k + "`."));
|
|
1870
1870
|
}
|
|
1871
1871
|
return null;
|
|
@@ -1875,8 +1875,8 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1875
1875
|
function $(x) {
|
|
1876
1876
|
if (!Array.isArray(x))
|
|
1877
1877
|
return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOf, expected an instance of array."), l.thatReturnsNull;
|
|
1878
|
-
function A(L,
|
|
1879
|
-
for (var k = L[
|
|
1878
|
+
function A(L, K, M, f, g) {
|
|
1879
|
+
for (var k = L[K], E = 0; E < x.length; E++)
|
|
1880
1880
|
if (I(k, x[E]))
|
|
1881
1881
|
return null;
|
|
1882
1882
|
var W = JSON.stringify(x);
|
|
@@ -1885,10 +1885,10 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1885
1885
|
return C(A);
|
|
1886
1886
|
}
|
|
1887
1887
|
function _(x) {
|
|
1888
|
-
function A(L,
|
|
1888
|
+
function A(L, K, M, f, g) {
|
|
1889
1889
|
if (typeof x != "function")
|
|
1890
1890
|
return new F("Property `" + g + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
|
|
1891
|
-
var k = L[
|
|
1891
|
+
var k = L[K], E = pe(k);
|
|
1892
1892
|
if (E !== "object")
|
|
1893
1893
|
return new F("Invalid " + f + " `" + g + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected an object."));
|
|
1894
1894
|
for (var W in k)
|
|
@@ -1914,7 +1914,7 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1914
1914
|
A
|
|
1915
1915
|
), l.thatReturnsNull;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function K(M, f, g, k, E) {
|
|
1918
1918
|
for (var W = 0; W < x.length; W++) {
|
|
1919
1919
|
var j = x[W];
|
|
1920
1920
|
if (j(M, f, g, k, E, p) == null)
|
|
@@ -1922,17 +1922,17 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1922
1922
|
}
|
|
1923
1923
|
return new F("Invalid " + k + " `" + E + "` supplied to " + ("`" + g + "`."));
|
|
1924
1924
|
}
|
|
1925
|
-
return C(
|
|
1925
|
+
return C(K);
|
|
1926
1926
|
}
|
|
1927
1927
|
function J() {
|
|
1928
|
-
function x(A, L,
|
|
1929
|
-
return ne(A[L]) ? null : new F("Invalid " + M + " `" + f + "` supplied to " + ("`" +
|
|
1928
|
+
function x(A, L, K, M, f) {
|
|
1929
|
+
return ne(A[L]) ? null : new F("Invalid " + M + " `" + f + "` supplied to " + ("`" + K + "`, expected a ReactNode."));
|
|
1930
1930
|
}
|
|
1931
1931
|
return C(x);
|
|
1932
1932
|
}
|
|
1933
1933
|
function te(x) {
|
|
1934
|
-
function A(L,
|
|
1935
|
-
var k = L[
|
|
1934
|
+
function A(L, K, M, f, g) {
|
|
1935
|
+
var k = L[K], E = pe(k);
|
|
1936
1936
|
if (E !== "object")
|
|
1937
1937
|
return new F("Invalid " + f + " `" + g + "` of type `" + E + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
1938
1938
|
for (var W in x) {
|
|
@@ -1948,16 +1948,16 @@ Check the top-level render call using <` + T + ">.");
|
|
|
1948
1948
|
return C(A);
|
|
1949
1949
|
}
|
|
1950
1950
|
function ue(x) {
|
|
1951
|
-
function A(L,
|
|
1952
|
-
var k = L[
|
|
1951
|
+
function A(L, K, M, f, g) {
|
|
1952
|
+
var k = L[K], E = pe(k);
|
|
1953
1953
|
if (E !== "object")
|
|
1954
1954
|
return new F("Invalid " + f + " `" + g + "` of type `" + E + "` " + ("supplied to `" + M + "`, expected `object`."));
|
|
1955
|
-
var W = h({}, L[
|
|
1955
|
+
var W = h({}, L[K], x);
|
|
1956
1956
|
for (var j in W) {
|
|
1957
1957
|
var ie = x[j];
|
|
1958
1958
|
if (!ie)
|
|
1959
1959
|
return new F(
|
|
1960
|
-
"Invalid " + f + " `" + g + "` key `" + j + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[
|
|
1960
|
+
"Invalid " + f + " `" + g + "` key `" + j + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[K], null, " ") + `
|
|
1961
1961
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1962
1962
|
);
|
|
1963
1963
|
var ce = ie(k, j, M, f, g + "." + j, p);
|
|
@@ -1983,14 +1983,14 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1983
1983
|
return !0;
|
|
1984
1984
|
var A = N(x);
|
|
1985
1985
|
if (A) {
|
|
1986
|
-
var L = A.call(x),
|
|
1986
|
+
var L = A.call(x), K;
|
|
1987
1987
|
if (A !== x.entries) {
|
|
1988
|
-
for (; !(
|
|
1989
|
-
if (!ne(
|
|
1988
|
+
for (; !(K = L.next()).done; )
|
|
1989
|
+
if (!ne(K.value))
|
|
1990
1990
|
return !1;
|
|
1991
1991
|
} else
|
|
1992
|
-
for (; !(
|
|
1993
|
-
var M =
|
|
1992
|
+
for (; !(K = L.next()).done; ) {
|
|
1993
|
+
var M = K.value;
|
|
1994
1994
|
if (M && !ne(M[1]))
|
|
1995
1995
|
return !1;
|
|
1996
1996
|
}
|
|
@@ -2034,7 +2034,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
2034
2034
|
return A;
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function q(x) {
|
|
2038
2038
|
return !x.constructor || !x.constructor.name ? B : x.constructor.name;
|
|
2039
2039
|
}
|
|
2040
2040
|
return D.checkPropTypes = m, D.PropTypes = D, D;
|
|
@@ -2846,7 +2846,7 @@ var Gn = { exports: {} };
|
|
|
2846
2846
|
return (b = Object.assign ? Object.assign.bind() : function(c) {
|
|
2847
2847
|
for (var y = 1; y < arguments.length; y++) {
|
|
2848
2848
|
var R = arguments[y];
|
|
2849
|
-
for (var
|
|
2849
|
+
for (var T in R) Object.prototype.hasOwnProperty.call(R, T) && (c[T] = R[T]);
|
|
2850
2850
|
}
|
|
2851
2851
|
return c;
|
|
2852
2852
|
}).apply(this, arguments);
|
|
@@ -2860,13 +2860,13 @@ var Gn = { exports: {} };
|
|
|
2860
2860
|
}
|
|
2861
2861
|
function V(c, y) {
|
|
2862
2862
|
for (var R = 0; R < y.length; R++) {
|
|
2863
|
-
var
|
|
2864
|
-
|
|
2863
|
+
var T = y[R];
|
|
2864
|
+
T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(c, T.key, T);
|
|
2865
2865
|
}
|
|
2866
2866
|
}
|
|
2867
2867
|
function O(c, y) {
|
|
2868
|
-
return (O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R,
|
|
2869
|
-
return R.__proto__ =
|
|
2868
|
+
return (O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, T) {
|
|
2869
|
+
return R.__proto__ = T, R;
|
|
2870
2870
|
})(c, y);
|
|
2871
2871
|
}
|
|
2872
2872
|
function N(c) {
|
|
@@ -2881,11 +2881,11 @@ var Gn = { exports: {} };
|
|
|
2881
2881
|
}
|
|
2882
2882
|
}();
|
|
2883
2883
|
return function() {
|
|
2884
|
-
var R,
|
|
2884
|
+
var R, T = I(c);
|
|
2885
2885
|
if (y) {
|
|
2886
|
-
var
|
|
2887
|
-
R = Reflect.construct(
|
|
2888
|
-
} else R =
|
|
2886
|
+
var Y = I(this).constructor;
|
|
2887
|
+
R = Reflect.construct(T, arguments, Y);
|
|
2888
|
+
} else R = T.apply(this, arguments);
|
|
2889
2889
|
return B(this, R);
|
|
2890
2890
|
};
|
|
2891
2891
|
}
|
|
@@ -2910,13 +2910,13 @@ var Gn = { exports: {} };
|
|
|
2910
2910
|
(function($, _) {
|
|
2911
2911
|
if (typeof _ != "function" && _ !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2912
2912
|
$.prototype = Object.create(_ && _.prototype, { constructor: { value: $, writable: !0, configurable: !0 } }), Object.defineProperty($, "prototype", { writable: !1 }), _ && O($, _);
|
|
2913
|
-
})(
|
|
2914
|
-
var y, R,
|
|
2915
|
-
function
|
|
2913
|
+
})(Y, c);
|
|
2914
|
+
var y, R, T = N(Y);
|
|
2915
|
+
function Y($) {
|
|
2916
2916
|
var _;
|
|
2917
2917
|
return function(G, J) {
|
|
2918
2918
|
if (!(G instanceof J)) throw new TypeError("Cannot call a class as a function");
|
|
2919
|
-
}(this,
|
|
2919
|
+
}(this, Y), F(D(_ = T.call(this, $)), "continueOpenCollapsible", function() {
|
|
2920
2920
|
var G = D(_).innerRef;
|
|
2921
2921
|
_.setState({ height: G.scrollHeight, transition: "height ".concat(_.props.transitionTime, "ms ").concat(_.props.easing), isClosed: !1, hasBeenOpened: !0, inTransition: m(G.scrollHeight), shouldOpenOnNextCycle: !1 });
|
|
2922
2922
|
}), F(D(_), "handleTriggerClick", function(G) {
|
|
@@ -2927,7 +2927,7 @@ var Gn = { exports: {} };
|
|
|
2927
2927
|
return _.innerRef = G;
|
|
2928
2928
|
}), _.timeout = void 0, _.contentId = $.contentElementId || "collapsible-content-".concat(Date.now()), _.triggerId = $.triggerElementProps.id || "collapsible-trigger-".concat(Date.now()), $.open ? _.state = { isClosed: !1, shouldSwitchAutoOnNextCycle: !1, height: "auto", transition: "none", hasBeenOpened: !0, overflow: $.overflowWhenOpen, inTransition: !1 } : _.state = { isClosed: !0, shouldSwitchAutoOnNextCycle: !1, height: 0, transition: "height ".concat($.transitionTime, "ms ").concat($.easing), hasBeenOpened: !1, overflow: "hidden", inTransition: !1 }, _;
|
|
2929
2929
|
}
|
|
2930
|
-
return y =
|
|
2930
|
+
return y = Y, (R = [{ key: "componentDidUpdate", value: function($, _) {
|
|
2931
2931
|
var G = this;
|
|
2932
2932
|
this.state.shouldOpenOnNextCycle && this.continueOpenCollapsible(), _.height !== "auto" && _.height !== 0 || this.state.shouldSwitchAutoOnNextCycle !== !0 || (window.clearTimeout(this.timeout), this.timeout = window.setTimeout(function() {
|
|
2933
2933
|
G.setState({ height: 0, overflow: "hidden", isClosed: !0, shouldSwitchAutoOnNextCycle: !1 });
|
|
@@ -2953,12 +2953,12 @@ var Gn = { exports: {} };
|
|
|
2953
2953
|
return null;
|
|
2954
2954
|
}
|
|
2955
2955
|
} }, { key: "render", value: function() {
|
|
2956
|
-
var $ = this, _ = { height: this.state.height, WebkitTransition: this.state.transition, msTransition: this.state.transition, transition: this.state.transition, overflow: this.state.overflow }, G = this.state.isClosed ? "is-closed" : "is-open", J = this.props.triggerDisabled ? "is-disabled" : "", te = this.state.isClosed === !1 && this.props.triggerWhenOpen !== void 0 ? this.props.triggerWhenOpen : this.props.trigger, ue = this.props.contentContainerTagName, ne = this.props.triggerTagName, oe = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, pe = this.props, ge = pe.classParentString, S = pe.contentOuterClassName,
|
|
2956
|
+
var $ = this, _ = { height: this.state.height, WebkitTransition: this.state.transition, msTransition: this.state.transition, transition: this.state.transition, overflow: this.state.overflow }, G = this.state.isClosed ? "is-closed" : "is-open", J = this.props.triggerDisabled ? "is-disabled" : "", te = this.state.isClosed === !1 && this.props.triggerWhenOpen !== void 0 ? this.props.triggerWhenOpen : this.props.trigger, ue = this.props.contentContainerTagName, ne = this.props.triggerTagName, oe = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, pe = this.props, ge = pe.classParentString, S = pe.contentOuterClassName, q = pe.contentInnerClassName, x = "".concat(ge, "__trigger ").concat(G, " ").concat(J, " ").concat(this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName), A = "".concat(ge, " ").concat(this.state.isClosed ? this.props.className : this.props.openedClassName), L = "".concat(ge, "__contentOuter ").concat(S), K = "".concat(ge, "__contentInner ").concat(q);
|
|
2957
2957
|
return d.a.createElement(ue, b({ className: A.trim() }, this.props.containerElementProps), d.a.createElement(ne, b({ id: this.triggerId, className: x.trim(), onClick: this.handleTriggerClick, style: this.props.triggerStyle && this.props.triggerStyle, onKeyPress: function(M) {
|
|
2958
2958
|
var f = M.key;
|
|
2959
2959
|
(f === " " && $.props.triggerTagName.toLowerCase() !== "button" || f === "Enter") && $.handleTriggerClick(M);
|
|
2960
|
-
}, tabIndex: this.props.tabIndex && this.props.tabIndex, "aria-expanded": !this.state.isClosed, "aria-disabled": this.props.triggerDisabled, "aria-controls": this.contentId, role: "button" }, this.props.triggerElementProps), te), this.renderNonClickableTriggerElement(), d.a.createElement("div", { id: this.contentId, className: L.trim(), style: _, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, d.a.createElement("div", { className:
|
|
2961
|
-
} }]) && V(y.prototype, R), Object.defineProperty(y, "prototype", { writable: !1 }),
|
|
2960
|
+
}, tabIndex: this.props.tabIndex && this.props.tabIndex, "aria-expanded": !this.state.isClosed, "aria-disabled": this.props.triggerDisabled, "aria-controls": this.contentId, role: "button" }, this.props.triggerElementProps), te), this.renderNonClickableTriggerElement(), d.a.createElement("div", { id: this.contentId, className: L.trim(), style: _, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, d.a.createElement("div", { className: K.trim() }, oe)));
|
|
2961
|
+
} }]) && V(y.prototype, R), Object.defineProperty(y, "prototype", { writable: !1 }), Y;
|
|
2962
2962
|
}(s.Component);
|
|
2963
2963
|
C.propTypes = { transitionTime: p.a.number, transitionCloseTime: p.a.number, triggerTagName: p.a.string, easing: p.a.string, open: p.a.bool, containerElementProps: p.a.object, triggerElementProps: p.a.object, contentElementId: p.a.string, classParentString: p.a.string, className: p.a.string, openedClassName: p.a.string, triggerStyle: p.a.object, triggerClassName: p.a.string, triggerOpenedClassName: p.a.string, contentOuterClassName: p.a.string, contentInnerClassName: p.a.string, accordionPosition: p.a.oneOfType([p.a.string, p.a.number]), handleTriggerClick: p.a.func, onOpen: p.a.func, onClose: p.a.func, onOpening: p.a.func, onClosing: p.a.func, onTriggerOpening: p.a.func, onTriggerClosing: p.a.func, trigger: p.a.oneOfType([p.a.string, p.a.element]), triggerWhenOpen: p.a.oneOfType([p.a.string, p.a.element]), triggerDisabled: p.a.bool, lazyRender: p.a.bool, overflowWhenOpen: p.a.oneOf(["hidden", "visible", "auto", "scroll", "inherit", "initial", "unset"]), contentHiddenWhenClosed: p.a.bool, triggerSibling: p.a.oneOfType([p.a.string, p.a.element, p.a.func]), tabIndex: p.a.number, contentContainerTagName: p.a.string, children: p.a.oneOfType([p.a.string, p.a.element]) }, C.defaultProps = { transitionTime: 400, transitionCloseTime: null, triggerTagName: "span", easing: "linear", open: !1, classParentString: "Collapsible", triggerDisabled: !1, lazyRender: !1, overflowWhenOpen: "hidden", contentHiddenWhenClosed: !1, openedClassName: "", triggerStyle: null, triggerClassName: "", triggerOpenedClassName: "", contentOuterClassName: "", contentInnerClassName: "", className: "", triggerSibling: null, onOpen: function() {
|
|
2964
2964
|
}, onClose: function() {
|
|
@@ -3185,7 +3185,7 @@ const Jn = ({ folder: e }) => {
|
|
|
3185
3185
|
y.preventDefault(), c();
|
|
3186
3186
|
return;
|
|
3187
3187
|
}
|
|
3188
|
-
/[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), p(
|
|
3188
|
+
y.key === "Escape" && (y.preventDefault(), a.close(), D((T) => T.filter((Y) => Y.key !== r.key))), /[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), p(
|
|
3189
3189
|
`A file name can't contain any of the following characters: \\ / : * ? " < > |`
|
|
3190
3190
|
), d(!0)) : (d(!1), p(""));
|
|
3191
3191
|
};
|
|
@@ -3198,18 +3198,18 @@ const Jn = ({ folder: e }) => {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
}, [s]);
|
|
3200
3200
|
function c() {
|
|
3201
|
-
var
|
|
3201
|
+
var Y, $;
|
|
3202
3202
|
let y = i.trim();
|
|
3203
3203
|
const R = B.filter((_) => !(_.key && _.key === r.key));
|
|
3204
3204
|
if (R.find((_) => _.name.toLowerCase() === y.toLowerCase())) {
|
|
3205
|
-
p(`This destination already contains a folder named '${y}'.`), d(!0), (
|
|
3205
|
+
p(`This destination already contains a folder named '${y}'.`), d(!0), (Y = O.ref.current) == null || Y.focus(), ($ = O.ref.current) == null || $.select(), O.setIsClicked(!1);
|
|
3206
3206
|
return;
|
|
3207
3207
|
}
|
|
3208
3208
|
y === "" && (y = Zn("New Folder", !0, R)), Be(o, "onCreateFolder", y, N), D((_) => _.filter((G) => G.key !== r.key)), a.close();
|
|
3209
3209
|
}
|
|
3210
3210
|
return xe(() => {
|
|
3211
|
-
var y, R,
|
|
3212
|
-
if ((y = O.ref.current) == null || y.focus(), (R = O.ref.current) == null || R.select(), (
|
|
3211
|
+
var y, R, T;
|
|
3212
|
+
if ((y = O.ref.current) == null || y.focus(), (R = O.ref.current) == null || R.select(), (T = O.ref) != null && T.current) {
|
|
3213
3213
|
const G = e.current.getBoundingClientRect(), J = O.ref.current, te = J.getBoundingClientRect();
|
|
3214
3214
|
G.right - te.left > 313 ? b("right") : b("left"), G.bottom - (te.top + J.clientHeight) > 88 ? V("bottom") : V("top");
|
|
3215
3215
|
}
|
|
@@ -3281,47 +3281,47 @@ const tr = ({
|
|
|
3281
3281
|
}
|
|
3282
3282
|
);
|
|
3283
3283
|
}, Ge = (e) => e.split(".").pop(), Yr = 220, qr = ({ filesViewRef: e, file: r, onRename: o, triggerAction: a }) => {
|
|
3284
|
-
const [i, l] = Z(r == null ? void 0 : r.name), [s, d] = Z(!1), [h, p] = Z(!1), [m, b] = Z(""), [w, V] = Z("right"), [O, N] = Z("bottom"), { currentPathFiles: B, setCurrentPathFiles: D } = Ne(), { activeLayout: I } = De(), F = ke(null), C = lt((
|
|
3285
|
-
var
|
|
3286
|
-
(
|
|
3287
|
-
}), c = (
|
|
3288
|
-
if (
|
|
3289
|
-
|
|
3284
|
+
const [i, l] = Z(r == null ? void 0 : r.name), [s, d] = Z(!1), [h, p] = Z(!1), [m, b] = Z(""), [w, V] = Z("right"), [O, N] = Z("bottom"), { currentPathFiles: B, setCurrentPathFiles: D } = Ne(), { activeLayout: I } = De(), F = ke(null), C = lt((T) => {
|
|
3285
|
+
var Y;
|
|
3286
|
+
(Y = F.current) != null && Y.contains(T.target) || (T.preventDefault(), T.stopPropagation());
|
|
3287
|
+
}), c = (T) => {
|
|
3288
|
+
if (T.stopPropagation(), T.key === "Enter") {
|
|
3289
|
+
T.preventDefault(), C.setIsClicked(!0);
|
|
3290
3290
|
return;
|
|
3291
3291
|
}
|
|
3292
|
-
/[\\/:*?"<>|]/.test(
|
|
3292
|
+
/[\\/:*?"<>|]/.test(T.key) ? (T.preventDefault(), b(
|
|
3293
3293
|
`A file name can't contain any of the following characters: \\ / : * ? " < > |`
|
|
3294
3294
|
), p(!0)) : p(!1);
|
|
3295
3295
|
};
|
|
3296
3296
|
xe(() => {
|
|
3297
3297
|
if (h) {
|
|
3298
|
-
const
|
|
3298
|
+
const T = setTimeout(() => {
|
|
3299
3299
|
p(!1), b("");
|
|
3300
3300
|
}, 7e3);
|
|
3301
|
-
return () => clearTimeout(
|
|
3301
|
+
return () => clearTimeout(T);
|
|
3302
3302
|
}
|
|
3303
3303
|
}, [h]);
|
|
3304
|
-
function y(
|
|
3304
|
+
function y(T) {
|
|
3305
3305
|
if (i === "" || i === r.name) {
|
|
3306
3306
|
D(
|
|
3307
|
-
(
|
|
3307
|
+
(Y) => Y.map(($) => ($.key === r.key && ($.isEditing = !1), $))
|
|
3308
3308
|
), a.close();
|
|
3309
3309
|
return;
|
|
3310
|
-
} else if (B.some((
|
|
3310
|
+
} else if (B.some((Y) => Y.name === i)) {
|
|
3311
3311
|
p(!0), b(`This destination already contains a folder named '${i}'.`), C.setIsClicked(!1);
|
|
3312
3312
|
return;
|
|
3313
|
-
} else if (!r.isDirectory && !
|
|
3314
|
-
const
|
|
3315
|
-
if (
|
|
3313
|
+
} else if (!r.isDirectory && !T) {
|
|
3314
|
+
const Y = Ge(r.name), $ = Ge(i);
|
|
3315
|
+
if (Y !== $) {
|
|
3316
3316
|
d(!0);
|
|
3317
3317
|
return;
|
|
3318
3318
|
}
|
|
3319
3319
|
}
|
|
3320
|
-
p(!1), Be(o, "onRename", r, i), D((
|
|
3320
|
+
p(!1), Be(o, "onRename", r, i), D((Y) => Y.filter(($) => $.key !== r.key)), a.close();
|
|
3321
3321
|
}
|
|
3322
3322
|
const R = () => {
|
|
3323
|
-
var
|
|
3324
|
-
if ((
|
|
3323
|
+
var T, Y, $, _, G, J;
|
|
3324
|
+
if ((Y = (T = C.ref) == null ? void 0 : T.current) == null || Y.focus(), r.isDirectory)
|
|
3325
3325
|
(_ = ($ = C.ref) == null ? void 0 : $.current) == null || _.select();
|
|
3326
3326
|
else {
|
|
3327
3327
|
const te = Ge(r.name), ue = r.name.length - te.length - 1;
|
|
@@ -3329,8 +3329,8 @@ const tr = ({
|
|
|
3329
3329
|
}
|
|
3330
3330
|
};
|
|
3331
3331
|
return xe(() => {
|
|
3332
|
-
var
|
|
3333
|
-
if (R(), (
|
|
3332
|
+
var T;
|
|
3333
|
+
if (R(), (T = C.ref) != null && T.current) {
|
|
3334
3334
|
const G = e.current.getBoundingClientRect(), J = C.ref.current, te = J.getBoundingClientRect();
|
|
3335
3335
|
G.right - te.left > 313 ? V("right") : V("left"), G.bottom - (te.top + J.clientHeight) > 88 ? N("bottom") : N("top");
|
|
3336
3336
|
}
|
|
@@ -3343,11 +3343,11 @@ const tr = ({
|
|
|
3343
3343
|
nameInputRef: C.ref,
|
|
3344
3344
|
maxLength: Yr,
|
|
3345
3345
|
value: i,
|
|
3346
|
-
onChange: (
|
|
3347
|
-
l(
|
|
3346
|
+
onChange: (T) => {
|
|
3347
|
+
l(T.target.value), p(!1);
|
|
3348
3348
|
},
|
|
3349
3349
|
onKeyDown: c,
|
|
3350
|
-
onClick: (
|
|
3350
|
+
onClick: (T) => T.stopPropagation(),
|
|
3351
3351
|
...I === "list" && { rows: 1 }
|
|
3352
3352
|
}
|
|
3353
3353
|
),
|
|
@@ -3379,7 +3379,7 @@ const tr = ({
|
|
|
3379
3379
|
type: "secondary",
|
|
3380
3380
|
onClick: () => {
|
|
3381
3381
|
D(
|
|
3382
|
-
(
|
|
3382
|
+
(T) => T.map((Y) => (Y.key === r.key && (Y.isEditing = !1), Y))
|
|
3383
3383
|
), d(!1), a.close();
|
|
3384
3384
|
},
|
|
3385
3385
|
children: "No"
|
|
@@ -3443,8 +3443,8 @@ const tr = ({
|
|
|
3443
3443
|
setLastSelectedFile: m
|
|
3444
3444
|
}) => {
|
|
3445
3445
|
var W, j, ie, ce;
|
|
3446
|
-
const [b, w] = Z(!1), [V, O] = Z(0), [N, B] = Z("hidden"), [D, I] = Z(""), [F, C] = Z(null), { activeLayout: c } = De(), y = c === "grid" ? 48 : 20, R = Ot(y), { setCurrentPath:
|
|
3447
|
-
l(r), r.isDirectory ? (
|
|
3446
|
+
const [b, w] = Z(!1), [V, O] = Z(0), [N, B] = Z("hidden"), [D, I] = Z(""), [F, C] = Z(null), { activeLayout: c } = De(), y = c === "grid" ? 48 : 20, R = Ot(y), { setCurrentPath: T, currentPathFiles: Y } = Ne(), { setSelectedFiles: $ } = ze(), { clipBoard: _, handleCutCopy: G, setClipBoard: J, handlePasting: te } = Tt(), ue = ke(null), ne = Ot(Dt), oe = (_ == null ? void 0 : _.isMoving) && _.files.find((Q) => Q.name === r.name && Q.path === r.path), pe = () => {
|
|
3447
|
+
l(r), r.isDirectory ? (T(r.path), $([])) : i && h.show("previewFile");
|
|
3448
3448
|
}, ge = (Q, de) => {
|
|
3449
3449
|
if (d.length > 0 && Q) {
|
|
3450
3450
|
let Ce = !1, we = d[0], Te = e;
|
|
@@ -3452,7 +3452,7 @@ const tr = ({
|
|
|
3452
3452
|
const Ze = we;
|
|
3453
3453
|
we = Te, Te = Ze, Ce = !0;
|
|
3454
3454
|
}
|
|
3455
|
-
const We =
|
|
3455
|
+
const We = Y.slice(we, Te + 1);
|
|
3456
3456
|
$(Ce ? We.reverse() : We);
|
|
3457
3457
|
} else d.length > 0 && de ? $((Ce) => {
|
|
3458
3458
|
const we = Ce.filter((Te) => Te.path !== r.path);
|
|
@@ -3467,7 +3467,7 @@ const tr = ({
|
|
|
3467
3467
|
return;
|
|
3468
3468
|
}
|
|
3469
3469
|
O(de);
|
|
3470
|
-
},
|
|
3470
|
+
}, q = (Q) => {
|
|
3471
3471
|
Q.key === "Enter" && (Q.stopPropagation(), $([r]), pe());
|
|
3472
3472
|
}, x = (Q) => {
|
|
3473
3473
|
Q.stopPropagation(), Q.preventDefault(), !r.isEditing && (b || $([r]), m(r), p(Q, !0));
|
|
@@ -3475,7 +3475,7 @@ const tr = ({
|
|
|
3475
3475
|
B("visible");
|
|
3476
3476
|
}, L = () => {
|
|
3477
3477
|
!b && B("hidden");
|
|
3478
|
-
},
|
|
3478
|
+
}, K = (Q) => {
|
|
3479
3479
|
Q.target.checked ? $((de) => [...de, r]) : $((de) => de.filter((Ce) => Ce.name !== r.name && Ce.path !== r.path)), w(Q.target.checked);
|
|
3480
3480
|
}, M = (Q) => {
|
|
3481
3481
|
Q.dataTransfer.setDragImage(ue.current, 30, 50), Q.dataTransfer.effectAllowed = "copy", G(!0);
|
|
@@ -3495,7 +3495,7 @@ const tr = ({
|
|
|
3495
3495
|
tabIndex: 0,
|
|
3496
3496
|
title: r.name,
|
|
3497
3497
|
onClick: S,
|
|
3498
|
-
onKeyDown:
|
|
3498
|
+
onKeyDown: q,
|
|
3499
3499
|
onContextMenu: x,
|
|
3500
3500
|
onMouseOver: A,
|
|
3501
3501
|
onMouseLeave: L,
|
|
@@ -3515,7 +3515,7 @@ const tr = ({
|
|
|
3515
3515
|
id: r.name,
|
|
3516
3516
|
checked: b,
|
|
3517
3517
|
className: `selection-checkbox ${N}`,
|
|
3518
|
-
onChange:
|
|
3518
|
+
onChange: K,
|
|
3519
3519
|
onClick: (Q) => Q.stopPropagation()
|
|
3520
3520
|
}
|
|
3521
3521
|
),
|
|
@@ -3566,8 +3566,8 @@ const tr = ({
|
|
|
3566
3566
|
/* @__PURE__ */ t.jsx("span", { children: r.title })
|
|
3567
3567
|
] }, r.title)) }), Jr = ({ filesViewRef: e, contextMenuRef: r, menuItems: o, visible: a, clickPosition: i }) => {
|
|
3568
3568
|
const [l, s] = Z(0), [d, h] = Z(0), [p, m] = Z(null), b = () => {
|
|
3569
|
-
const { clickX: O, clickY: N } = i, B = e.current, D = B.getBoundingClientRect(), I = B.offsetWidth - B.clientWidth, F = r.current.getBoundingClientRect(), C = F.width, c = F.height, y = O - D.left, R = D.width - (y + I) > C,
|
|
3570
|
-
R ? s(`${y}px`) :
|
|
3569
|
+
const { clickX: O, clickY: N } = i, B = e.current, D = B.getBoundingClientRect(), I = B.offsetWidth - B.clientWidth, F = r.current.getBoundingClientRect(), C = F.width, c = F.height, y = O - D.left, R = D.width - (y + I) > C, T = !R, Y = N - D.top, $ = D.height - Y > c, _ = !$;
|
|
3570
|
+
R ? s(`${y}px`) : T && s(`${y - C}px`), $ ? h(`${Y + B.scrollTop}px`) : _ && h(`${Y + B.scrollTop - c}px`);
|
|
3571
3571
|
}, w = (O) => {
|
|
3572
3572
|
O.preventDefault(), O.stopPropagation();
|
|
3573
3573
|
}, V = (O) => {
|
|
@@ -3616,7 +3616,7 @@ function Zr(e) {
|
|
|
3616
3616
|
return re({ tag: "svg", attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z" }, child: [] }] })(e);
|
|
3617
3617
|
}
|
|
3618
3618
|
const Qr = (e, r, o) => {
|
|
3619
|
-
const [a, i] = Z([]), [l, s] = Z(!1), [d, h] = Z(!1), [p, m] = Z({ clickX: 0, clickY: 0 }), [b, w] = Z(null), { clipBoard: V, setClipBoard: O, handleCutCopy: N, handlePasting: B } = Tt(), { selectedFiles: D, setSelectedFiles: I, handleDownload: F } = ze(), { currentPath: C, setCurrentPath: c, currentPathFiles: y, setCurrentPathFiles: R } = Ne(), { activeLayout:
|
|
3619
|
+
const [a, i] = Z([]), [l, s] = Z(!1), [d, h] = Z(!1), [p, m] = Z({ clickX: 0, clickY: 0 }), [b, w] = Z(null), { clipBoard: V, setClipBoard: O, handleCutCopy: N, handlePasting: B } = Tt(), { selectedFiles: D, setSelectedFiles: I, handleDownload: F } = ze(), { currentPath: C, setCurrentPath: c, currentPathFiles: y, setCurrentPathFiles: R } = Ne(), { activeLayout: T, setActiveLayout: Y } = De(), $ = () => {
|
|
3620
3620
|
b.isDirectory ? (c(b.path), i([]), I([])) : r && o.show("previewFile"), s(!1);
|
|
3621
3621
|
}, _ = (M) => {
|
|
3622
3622
|
N(M), s(!1);
|
|
@@ -3639,24 +3639,24 @@ const Qr = (e, r, o) => {
|
|
|
3639
3639
|
}, S = [
|
|
3640
3640
|
{
|
|
3641
3641
|
title: "View",
|
|
3642
|
-
icon:
|
|
3642
|
+
icon: T === "grid" ? /* @__PURE__ */ t.jsx(on, { size: 18 }) : /* @__PURE__ */ t.jsx(jt, { size: 18 }),
|
|
3643
3643
|
onClick: () => {
|
|
3644
3644
|
},
|
|
3645
3645
|
children: [
|
|
3646
3646
|
{
|
|
3647
3647
|
title: "Grid",
|
|
3648
3648
|
icon: /* @__PURE__ */ t.jsx(on, { size: 18 }),
|
|
3649
|
-
selected:
|
|
3649
|
+
selected: T === "grid",
|
|
3650
3650
|
onClick: () => {
|
|
3651
|
-
|
|
3651
|
+
Y("grid"), s(!1);
|
|
3652
3652
|
}
|
|
3653
3653
|
},
|
|
3654
3654
|
{
|
|
3655
3655
|
title: "List",
|
|
3656
3656
|
icon: /* @__PURE__ */ t.jsx(jt, { size: 18 }),
|
|
3657
|
-
selected:
|
|
3657
|
+
selected: T === "list",
|
|
3658
3658
|
onClick: () => {
|
|
3659
|
-
|
|
3659
|
+
Y("list"), s(!1);
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
3662
|
]
|
|
@@ -3683,7 +3683,7 @@ const Qr = (e, r, o) => {
|
|
|
3683
3683
|
icon: /* @__PURE__ */ t.jsx(jr, { size: 18 }),
|
|
3684
3684
|
onClick: ge
|
|
3685
3685
|
}
|
|
3686
|
-
],
|
|
3686
|
+
], q = [
|
|
3687
3687
|
{
|
|
3688
3688
|
title: "Open",
|
|
3689
3689
|
icon: b != null && b.isDirectory ? /* @__PURE__ */ t.jsx(Zr, { size: 20 }) : /* @__PURE__ */ t.jsx(Et, { size: 16 }),
|
|
@@ -3741,7 +3741,7 @@ const Qr = (e, r, o) => {
|
|
|
3741
3741
|
R((M) => (M[a.at(-1)] && (M[a.at(-1)].isEditing = !0), M)), i([]), I([]);
|
|
3742
3742
|
}, L = () => {
|
|
3743
3743
|
i([]), I((M) => M.length > 0 ? [] : M);
|
|
3744
|
-
},
|
|
3744
|
+
}, K = (M, f = !1) => {
|
|
3745
3745
|
M.preventDefault(), m({ clickX: M.clientX, clickY: M.clientY }), h(f), !f && L(), s(!0);
|
|
3746
3746
|
};
|
|
3747
3747
|
return xe(() => {
|
|
@@ -3760,8 +3760,8 @@ const Qr = (e, r, o) => {
|
|
|
3760
3760
|
D.length > 0 ? i(() => D.map((M) => y.findIndex((f) => f.path === M.path))) : i([]);
|
|
3761
3761
|
}, [D, y]), {
|
|
3762
3762
|
emptySelecCtxItems: S,
|
|
3763
|
-
selecCtxItems:
|
|
3764
|
-
handleContextMenu:
|
|
3763
|
+
selecCtxItems: q,
|
|
3764
|
+
handleContextMenu: K,
|
|
3765
3765
|
unselectFiles: L,
|
|
3766
3766
|
visible: l,
|
|
3767
3767
|
setVisible: s,
|
|
@@ -3892,7 +3892,7 @@ const sa = ({
|
|
|
3892
3892
|
onFileUploaded: l,
|
|
3893
3893
|
handleFileRemove: s
|
|
3894
3894
|
}) => {
|
|
3895
|
-
var y, R,
|
|
3895
|
+
var y, R, T, Y;
|
|
3896
3896
|
const [d, h] = Z(0), [p, m] = Z(!1), [b, w] = Z(!1), [V, O] = Z(!1), N = Ot(33), B = ke(), { onError: D } = Rt(), I = ($) => {
|
|
3897
3897
|
h(0), a((G) => ({
|
|
3898
3898
|
...G,
|
|
@@ -3963,8 +3963,8 @@ const sa = ({
|
|
|
3963
3963
|
/* @__PURE__ */ t.jsxs("div", { className: "file", children: [
|
|
3964
3964
|
/* @__PURE__ */ t.jsxs("div", { className: "file-details", children: [
|
|
3965
3965
|
/* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
|
|
3966
|
-
/* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (R = r.file) == null ? void 0 : R.name, children: (
|
|
3967
|
-
/* @__PURE__ */ t.jsx("span", { className: "file-size", children: Pt((
|
|
3966
|
+
/* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (R = r.file) == null ? void 0 : R.name, children: (T = r.file) == null ? void 0 : T.name }),
|
|
3967
|
+
/* @__PURE__ */ t.jsx("span", { className: "file-size", children: Pt((Y = r.file) == null ? void 0 : Y.size) })
|
|
3968
3968
|
] }),
|
|
3969
3969
|
p ? /* @__PURE__ */ t.jsx(Vr, { color: "#5c5bb1", title: "Uploaded" }) : b || V ? /* @__PURE__ */ t.jsx(ia, { className: "retry-upload", title: "Retry", onClick: c }) : /* @__PURE__ */ t.jsx(
|
|
3970
3970
|
"div",
|
|
@@ -4000,7 +4000,7 @@ const sa = ({
|
|
|
4000
4000
|
if (o && !o.includes(Ge(c.name)))
|
|
4001
4001
|
return "File type is not allowed.";
|
|
4002
4002
|
if (w.some(
|
|
4003
|
-
(
|
|
4003
|
+
(T) => T.name.toLowerCase() === c.name.toLowerCase() && !T.isDirectory
|
|
4004
4004
|
)) return "File already exists.";
|
|
4005
4005
|
if (r && c.size > r) return `Maximum upload size is ${Pt(r, 0)}.`;
|
|
4006
4006
|
}, D = (c) => {
|
|
@@ -4008,11 +4008,11 @@ const sa = ({
|
|
|
4008
4008
|
(y) => !l.some((R) => R.file.name.toLowerCase() === y.name.toLowerCase())
|
|
4009
4009
|
), c.length > 0) {
|
|
4010
4010
|
const y = c.map((R) => {
|
|
4011
|
-
const
|
|
4012
|
-
return
|
|
4011
|
+
const T = a(R, b), Y = B(R);
|
|
4012
|
+
return Y && V({ type: "upload", message: Y }, R), {
|
|
4013
4013
|
file: R,
|
|
4014
|
-
appendData:
|
|
4015
|
-
...
|
|
4014
|
+
appendData: T,
|
|
4015
|
+
...Y && { error: Y }
|
|
4016
4016
|
};
|
|
4017
4017
|
});
|
|
4018
4018
|
s((R) => [...R, ...y]);
|
|
@@ -4026,11 +4026,11 @@ const sa = ({
|
|
|
4026
4026
|
D(y);
|
|
4027
4027
|
}, C = (c) => {
|
|
4028
4028
|
s((y) => {
|
|
4029
|
-
const R = y.map((
|
|
4030
|
-
...
|
|
4029
|
+
const R = y.map((T, Y) => c === Y ? {
|
|
4030
|
+
...T,
|
|
4031
4031
|
removed: !0
|
|
4032
|
-
} :
|
|
4033
|
-
return R.every((
|
|
4032
|
+
} : T);
|
|
4033
|
+
return R.every((T) => !!T.removed) ? [] : R;
|
|
4034
4034
|
});
|
|
4035
4035
|
};
|
|
4036
4036
|
return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${l.length > 0 ? "file-selcted" : ""}`, children: [
|
|
@@ -4200,15 +4200,15 @@ const sa = ({
|
|
|
4200
4200
|
}, C = () => {
|
|
4201
4201
|
d(s);
|
|
4202
4202
|
}, c = () => {
|
|
4203
|
-
d((
|
|
4203
|
+
d((Y) => Y.length > 0 ? [] : Y);
|
|
4204
4204
|
}, y = () => {
|
|
4205
4205
|
Be(r, "onRefresh"), o(null);
|
|
4206
4206
|
}, R = () => {
|
|
4207
4207
|
p("grid");
|
|
4208
|
-
},
|
|
4208
|
+
}, T = () => {
|
|
4209
4209
|
p("list");
|
|
4210
4210
|
};
|
|
4211
|
-
Oe(Re.createFolder, m, e.isActive), Oe(Re.uploadFiles, b, e.isActive), Oe(Re.cut, w, e.isActive), Oe(Re.copy, V, e.isActive), Oe(Re.paste, O, e.isActive), Oe(Re.rename, N, e.isActive), Oe(Re.download, B, e.isActive), Oe(Re.delete, D, e.isActive), Oe(Re.jumpToFirst, I, e.isActive), Oe(Re.jumpToLast, F, e.isActive), Oe(Re.selectAll, C, e.isActive), Oe(Re.clearSelection, c, e.isActive), Oe(Re.refresh, y, e.isActive), Oe(Re.gridLayout, R, e.isActive), Oe(Re.listLayout,
|
|
4211
|
+
Oe(Re.createFolder, m, e.isActive), Oe(Re.uploadFiles, b, e.isActive), Oe(Re.cut, w, e.isActive), Oe(Re.copy, V, e.isActive), Oe(Re.paste, O, e.isActive), Oe(Re.rename, N, e.isActive), Oe(Re.download, B, e.isActive), Oe(Re.delete, D, e.isActive), Oe(Re.jumpToFirst, I, e.isActive), Oe(Re.jumpToLast, F, e.isActive), Oe(Re.selectAll, C, e.isActive), Oe(Re.clearSelection, c, e.isActive), Oe(Re.refresh, y, e.isActive), Oe(Re.gridLayout, R, e.isActive), Oe(Re.listLayout, T, e.isActive);
|
|
4212
4212
|
}, fa = ({
|
|
4213
4213
|
fileUploadConfig: e,
|
|
4214
4214
|
onFileUploading: r,
|
|
@@ -4422,14 +4422,14 @@ function va() {
|
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
4424
4424
|
}
|
|
4425
|
-
var c = h, y = p, R = d,
|
|
4425
|
+
var c = h, y = p, R = d, T = s, Y = r, $ = m, _ = a, G = O, J = V, te = o, ue = l, ne = i, oe = b, pe = !1;
|
|
4426
4426
|
function ge(j) {
|
|
4427
4427
|
return pe || (pe = !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.")), S(j) || C(j) === h;
|
|
4428
4428
|
}
|
|
4429
4429
|
function S(j) {
|
|
4430
4430
|
return C(j) === p;
|
|
4431
4431
|
}
|
|
4432
|
-
function
|
|
4432
|
+
function q(j) {
|
|
4433
4433
|
return C(j) === d;
|
|
4434
4434
|
}
|
|
4435
4435
|
function x(j) {
|
|
@@ -4441,7 +4441,7 @@ function va() {
|
|
|
4441
4441
|
function L(j) {
|
|
4442
4442
|
return C(j) === m;
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function K(j) {
|
|
4445
4445
|
return C(j) === a;
|
|
4446
4446
|
}
|
|
4447
4447
|
function M(j) {
|
|
@@ -4462,7 +4462,7 @@ function va() {
|
|
|
4462
4462
|
function W(j) {
|
|
4463
4463
|
return C(j) === b;
|
|
4464
4464
|
}
|
|
4465
|
-
me.AsyncMode = c, me.ConcurrentMode = y, me.ContextConsumer = R, me.ContextProvider =
|
|
4465
|
+
me.AsyncMode = c, me.ConcurrentMode = y, me.ContextConsumer = R, me.ContextProvider = T, me.Element = Y, me.ForwardRef = $, me.Fragment = _, me.Lazy = G, me.Memo = J, me.Portal = te, me.Profiler = ue, me.StrictMode = ne, me.Suspense = oe, me.isAsyncMode = ge, me.isConcurrentMode = S, me.isContextConsumer = q, me.isContextProvider = x, me.isElement = A, me.isForwardRef = L, me.isFragment = K, me.isLazy = M, me.isMemo = f, me.isPortal = g, me.isProfiler = k, me.isStrictMode = E, me.isSuspense = W, me.isValidElementType = F, me.typeOf = C;
|
|
4466
4466
|
}()), me;
|
|
4467
4467
|
}
|
|
4468
4468
|
var Cn;
|
|
@@ -4600,9 +4600,9 @@ function ga() {
|
|
|
4600
4600
|
return Ut = function(d, h) {
|
|
4601
4601
|
var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
4602
4602
|
function b(S) {
|
|
4603
|
-
var
|
|
4604
|
-
if (typeof
|
|
4605
|
-
return
|
|
4603
|
+
var q = S && (p && S[p] || S[m]);
|
|
4604
|
+
if (typeof q == "function")
|
|
4605
|
+
return q;
|
|
4606
4606
|
}
|
|
4607
4607
|
var w = "<<anonymous>>", V = {
|
|
4608
4608
|
array: D("array"),
|
|
@@ -4619,23 +4619,23 @@ function ga() {
|
|
|
4619
4619
|
elementType: c(),
|
|
4620
4620
|
instanceOf: y,
|
|
4621
4621
|
node: $(),
|
|
4622
|
-
objectOf:
|
|
4622
|
+
objectOf: T,
|
|
4623
4623
|
oneOf: R,
|
|
4624
|
-
oneOfType:
|
|
4624
|
+
oneOfType: Y,
|
|
4625
4625
|
shape: G,
|
|
4626
4626
|
exact: J
|
|
4627
4627
|
};
|
|
4628
|
-
function O(S,
|
|
4629
|
-
return S ===
|
|
4628
|
+
function O(S, q) {
|
|
4629
|
+
return S === q ? S !== 0 || 1 / S === 1 / q : S !== S && q !== q;
|
|
4630
4630
|
}
|
|
4631
|
-
function N(S,
|
|
4632
|
-
this.message = S, this.data =
|
|
4631
|
+
function N(S, q) {
|
|
4632
|
+
this.message = S, this.data = q && typeof q == "object" ? q : {}, this.stack = "";
|
|
4633
4633
|
}
|
|
4634
4634
|
N.prototype = Error.prototype;
|
|
4635
4635
|
function B(S) {
|
|
4636
4636
|
if (process.env.NODE_ENV !== "production")
|
|
4637
|
-
var
|
|
4638
|
-
function A(
|
|
4637
|
+
var q = {}, x = 0;
|
|
4638
|
+
function A(K, M, f, g, k, E, W) {
|
|
4639
4639
|
if (g = g || w, E = E || f, W !== o) {
|
|
4640
4640
|
if (h) {
|
|
4641
4641
|
var j = new Error(
|
|
@@ -4644,90 +4644,90 @@ function ga() {
|
|
|
4644
4644
|
throw j.name = "Invariant Violation", j;
|
|
4645
4645
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4646
4646
|
var ie = g + ":" + f;
|
|
4647
|
-
!
|
|
4647
|
+
!q[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4648
4648
|
x < 3 && (l(
|
|
4649
4649
|
"You are manually calling a React.PropTypes validation function for the `" + E + "` prop on `" + g + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
4650
|
-
),
|
|
4650
|
+
), q[ie] = !0, x++);
|
|
4651
4651
|
}
|
|
4652
4652
|
}
|
|
4653
|
-
return M[f] == null ?
|
|
4653
|
+
return M[f] == null ? K ? M[f] === null ? new N("The " + k + " `" + E + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new N("The " + k + " `" + E + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : S(M, f, g, k, E);
|
|
4654
4654
|
}
|
|
4655
4655
|
var L = A.bind(null, !1);
|
|
4656
4656
|
return L.isRequired = A.bind(null, !0), L;
|
|
4657
4657
|
}
|
|
4658
4658
|
function D(S) {
|
|
4659
|
-
function
|
|
4659
|
+
function q(x, A, L, K, M, f) {
|
|
4660
4660
|
var g = x[A], k = ne(g);
|
|
4661
4661
|
if (k !== S) {
|
|
4662
4662
|
var E = oe(g);
|
|
4663
4663
|
return new N(
|
|
4664
|
-
"Invalid " +
|
|
4664
|
+
"Invalid " + K + " `" + M + "` of type " + ("`" + E + "` supplied to `" + L + "`, expected ") + ("`" + S + "`."),
|
|
4665
4665
|
{ expectedType: S }
|
|
4666
4666
|
);
|
|
4667
4667
|
}
|
|
4668
4668
|
return null;
|
|
4669
4669
|
}
|
|
4670
|
-
return B(
|
|
4670
|
+
return B(q);
|
|
4671
4671
|
}
|
|
4672
4672
|
function I() {
|
|
4673
4673
|
return B(s);
|
|
4674
4674
|
}
|
|
4675
4675
|
function F(S) {
|
|
4676
|
-
function
|
|
4676
|
+
function q(x, A, L, K, M) {
|
|
4677
4677
|
if (typeof S != "function")
|
|
4678
4678
|
return new N("Property `" + M + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
4679
4679
|
var f = x[A];
|
|
4680
4680
|
if (!Array.isArray(f)) {
|
|
4681
4681
|
var g = ne(f);
|
|
4682
|
-
return new N("Invalid " +
|
|
4682
|
+
return new N("Invalid " + K + " `" + M + "` of type " + ("`" + g + "` supplied to `" + L + "`, expected an array."));
|
|
4683
4683
|
}
|
|
4684
4684
|
for (var k = 0; k < f.length; k++) {
|
|
4685
|
-
var E = S(f, k, L,
|
|
4685
|
+
var E = S(f, k, L, K, M + "[" + k + "]", o);
|
|
4686
4686
|
if (E instanceof Error)
|
|
4687
4687
|
return E;
|
|
4688
4688
|
}
|
|
4689
4689
|
return null;
|
|
4690
4690
|
}
|
|
4691
|
-
return B(
|
|
4691
|
+
return B(q);
|
|
4692
4692
|
}
|
|
4693
4693
|
function C() {
|
|
4694
|
-
function S(
|
|
4695
|
-
var M =
|
|
4694
|
+
function S(q, x, A, L, K) {
|
|
4695
|
+
var M = q[x];
|
|
4696
4696
|
if (!d(M)) {
|
|
4697
4697
|
var f = ne(M);
|
|
4698
|
-
return new N("Invalid " + L + " `" +
|
|
4698
|
+
return new N("Invalid " + L + " `" + K + "` of type " + ("`" + f + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
4699
4699
|
}
|
|
4700
4700
|
return null;
|
|
4701
4701
|
}
|
|
4702
4702
|
return B(S);
|
|
4703
4703
|
}
|
|
4704
4704
|
function c() {
|
|
4705
|
-
function S(
|
|
4706
|
-
var M =
|
|
4705
|
+
function S(q, x, A, L, K) {
|
|
4706
|
+
var M = q[x];
|
|
4707
4707
|
if (!e.isValidElementType(M)) {
|
|
4708
4708
|
var f = ne(M);
|
|
4709
|
-
return new N("Invalid " + L + " `" +
|
|
4709
|
+
return new N("Invalid " + L + " `" + K + "` of type " + ("`" + f + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
4710
4710
|
}
|
|
4711
4711
|
return null;
|
|
4712
4712
|
}
|
|
4713
4713
|
return B(S);
|
|
4714
4714
|
}
|
|
4715
4715
|
function y(S) {
|
|
4716
|
-
function
|
|
4716
|
+
function q(x, A, L, K, M) {
|
|
4717
4717
|
if (!(x[A] instanceof S)) {
|
|
4718
4718
|
var f = S.name || w, g = ge(x[A]);
|
|
4719
|
-
return new N("Invalid " +
|
|
4719
|
+
return new N("Invalid " + K + " `" + M + "` of type " + ("`" + g + "` supplied to `" + L + "`, expected ") + ("instance of `" + f + "`."));
|
|
4720
4720
|
}
|
|
4721
4721
|
return null;
|
|
4722
4722
|
}
|
|
4723
|
-
return B(
|
|
4723
|
+
return B(q);
|
|
4724
4724
|
}
|
|
4725
4725
|
function R(S) {
|
|
4726
4726
|
if (!Array.isArray(S))
|
|
4727
4727
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
|
|
4728
4728
|
"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])."
|
|
4729
4729
|
) : l("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
4730
|
-
function
|
|
4730
|
+
function q(x, A, L, K, M) {
|
|
4731
4731
|
for (var f = x[A], g = 0; g < S.length; g++)
|
|
4732
4732
|
if (O(f, S[g]))
|
|
4733
4733
|
return null;
|
|
@@ -4735,40 +4735,40 @@ function ga() {
|
|
|
4735
4735
|
var ie = oe(j);
|
|
4736
4736
|
return ie === "symbol" ? String(j) : j;
|
|
4737
4737
|
});
|
|
4738
|
-
return new N("Invalid " +
|
|
4738
|
+
return new N("Invalid " + K + " `" + M + "` of value `" + String(f) + "` " + ("supplied to `" + L + "`, expected one of " + k + "."));
|
|
4739
4739
|
}
|
|
4740
|
-
return B(
|
|
4740
|
+
return B(q);
|
|
4741
4741
|
}
|
|
4742
|
-
function
|
|
4743
|
-
function
|
|
4742
|
+
function T(S) {
|
|
4743
|
+
function q(x, A, L, K, M) {
|
|
4744
4744
|
if (typeof S != "function")
|
|
4745
4745
|
return new N("Property `" + M + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
4746
4746
|
var f = x[A], g = ne(f);
|
|
4747
4747
|
if (g !== "object")
|
|
4748
|
-
return new N("Invalid " +
|
|
4748
|
+
return new N("Invalid " + K + " `" + M + "` of type " + ("`" + g + "` supplied to `" + L + "`, expected an object."));
|
|
4749
4749
|
for (var k in f)
|
|
4750
4750
|
if (a(f, k)) {
|
|
4751
|
-
var E = S(f, k, L,
|
|
4751
|
+
var E = S(f, k, L, K, M + "." + k, o);
|
|
4752
4752
|
if (E instanceof Error)
|
|
4753
4753
|
return E;
|
|
4754
4754
|
}
|
|
4755
4755
|
return null;
|
|
4756
4756
|
}
|
|
4757
|
-
return B(
|
|
4757
|
+
return B(q);
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4759
|
+
function Y(S) {
|
|
4760
4760
|
if (!Array.isArray(S))
|
|
4761
4761
|
return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
4762
|
-
for (var
|
|
4763
|
-
var x = S[
|
|
4762
|
+
for (var q = 0; q < S.length; q++) {
|
|
4763
|
+
var x = S[q];
|
|
4764
4764
|
if (typeof x != "function")
|
|
4765
4765
|
return l(
|
|
4766
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(x) + " at index " +
|
|
4766
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(x) + " at index " + q + "."
|
|
4767
4767
|
), s;
|
|
4768
4768
|
}
|
|
4769
|
-
function A(L,
|
|
4769
|
+
function A(L, K, M, f, g) {
|
|
4770
4770
|
for (var k = [], E = 0; E < S.length; E++) {
|
|
4771
|
-
var W = S[E], j = W(L,
|
|
4771
|
+
var W = S[E], j = W(L, K, M, f, g, o);
|
|
4772
4772
|
if (j == null)
|
|
4773
4773
|
return null;
|
|
4774
4774
|
j.data && a(j.data, "expectedType") && k.push(j.data.expectedType);
|
|
@@ -4779,55 +4779,55 @@ function ga() {
|
|
|
4779
4779
|
return B(A);
|
|
4780
4780
|
}
|
|
4781
4781
|
function $() {
|
|
4782
|
-
function S(
|
|
4783
|
-
return te(
|
|
4782
|
+
function S(q, x, A, L, K) {
|
|
4783
|
+
return te(q[x]) ? null : new N("Invalid " + L + " `" + K + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
4784
4784
|
}
|
|
4785
4785
|
return B(S);
|
|
4786
4786
|
}
|
|
4787
|
-
function _(S,
|
|
4787
|
+
function _(S, q, x, A, L) {
|
|
4788
4788
|
return new N(
|
|
4789
|
-
(S || "React class") + ": " +
|
|
4789
|
+
(S || "React class") + ": " + q + " type `" + x + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
|
|
4790
4790
|
);
|
|
4791
4791
|
}
|
|
4792
4792
|
function G(S) {
|
|
4793
|
-
function
|
|
4793
|
+
function q(x, A, L, K, M) {
|
|
4794
4794
|
var f = x[A], g = ne(f);
|
|
4795
4795
|
if (g !== "object")
|
|
4796
|
-
return new N("Invalid " +
|
|
4796
|
+
return new N("Invalid " + K + " `" + M + "` of type `" + g + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
4797
4797
|
for (var k in S) {
|
|
4798
4798
|
var E = S[k];
|
|
4799
4799
|
if (typeof E != "function")
|
|
4800
|
-
return _(L,
|
|
4801
|
-
var W = E(f, k, L,
|
|
4800
|
+
return _(L, K, M, k, oe(E));
|
|
4801
|
+
var W = E(f, k, L, K, M + "." + k, o);
|
|
4802
4802
|
if (W)
|
|
4803
4803
|
return W;
|
|
4804
4804
|
}
|
|
4805
4805
|
return null;
|
|
4806
4806
|
}
|
|
4807
|
-
return B(
|
|
4807
|
+
return B(q);
|
|
4808
4808
|
}
|
|
4809
4809
|
function J(S) {
|
|
4810
|
-
function
|
|
4810
|
+
function q(x, A, L, K, M) {
|
|
4811
4811
|
var f = x[A], g = ne(f);
|
|
4812
4812
|
if (g !== "object")
|
|
4813
|
-
return new N("Invalid " +
|
|
4813
|
+
return new N("Invalid " + K + " `" + M + "` of type `" + g + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
4814
4814
|
var k = r({}, x[A], S);
|
|
4815
4815
|
for (var E in k) {
|
|
4816
4816
|
var W = S[E];
|
|
4817
4817
|
if (a(S, E) && typeof W != "function")
|
|
4818
|
-
return _(L,
|
|
4818
|
+
return _(L, K, M, E, oe(W));
|
|
4819
4819
|
if (!W)
|
|
4820
4820
|
return new N(
|
|
4821
|
-
"Invalid " +
|
|
4821
|
+
"Invalid " + K + " `" + M + "` key `" + E + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(x[A], null, " ") + `
|
|
4822
4822
|
Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
4823
4823
|
);
|
|
4824
|
-
var j = W(f, E, L,
|
|
4824
|
+
var j = W(f, E, L, K, M + "." + E, o);
|
|
4825
4825
|
if (j)
|
|
4826
4826
|
return j;
|
|
4827
4827
|
}
|
|
4828
4828
|
return null;
|
|
4829
4829
|
}
|
|
4830
|
-
return B(
|
|
4830
|
+
return B(q);
|
|
4831
4831
|
}
|
|
4832
4832
|
function te(S) {
|
|
4833
4833
|
switch (typeof S) {
|
|
@@ -4842,10 +4842,10 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
4842
4842
|
return S.every(te);
|
|
4843
4843
|
if (S === null || d(S))
|
|
4844
4844
|
return !0;
|
|
4845
|
-
var
|
|
4846
|
-
if (
|
|
4847
|
-
var x =
|
|
4848
|
-
if (
|
|
4845
|
+
var q = b(S);
|
|
4846
|
+
if (q) {
|
|
4847
|
+
var x = q.call(S), A;
|
|
4848
|
+
if (q !== S.entries) {
|
|
4849
4849
|
for (; !(A = x.next()).done; )
|
|
4850
4850
|
if (!te(A.value))
|
|
4851
4851
|
return !1;
|
|
@@ -4862,37 +4862,37 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
4862
4862
|
return !1;
|
|
4863
4863
|
}
|
|
4864
4864
|
}
|
|
4865
|
-
function ue(S,
|
|
4866
|
-
return S === "symbol" ? !0 :
|
|
4865
|
+
function ue(S, q) {
|
|
4866
|
+
return S === "symbol" ? !0 : q ? q["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && q instanceof Symbol : !1;
|
|
4867
4867
|
}
|
|
4868
4868
|
function ne(S) {
|
|
4869
|
-
var
|
|
4870
|
-
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : ue(
|
|
4869
|
+
var q = typeof S;
|
|
4870
|
+
return Array.isArray(S) ? "array" : S instanceof RegExp ? "object" : ue(q, S) ? "symbol" : q;
|
|
4871
4871
|
}
|
|
4872
4872
|
function oe(S) {
|
|
4873
4873
|
if (typeof S > "u" || S === null)
|
|
4874
4874
|
return "" + S;
|
|
4875
|
-
var
|
|
4876
|
-
if (
|
|
4875
|
+
var q = ne(S);
|
|
4876
|
+
if (q === "object") {
|
|
4877
4877
|
if (S instanceof Date)
|
|
4878
4878
|
return "date";
|
|
4879
4879
|
if (S instanceof RegExp)
|
|
4880
4880
|
return "regexp";
|
|
4881
4881
|
}
|
|
4882
|
-
return
|
|
4882
|
+
return q;
|
|
4883
4883
|
}
|
|
4884
4884
|
function pe(S) {
|
|
4885
|
-
var
|
|
4886
|
-
switch (
|
|
4885
|
+
var q = oe(S);
|
|
4886
|
+
switch (q) {
|
|
4887
4887
|
case "array":
|
|
4888
4888
|
case "object":
|
|
4889
|
-
return "an " +
|
|
4889
|
+
return "an " + q;
|
|
4890
4890
|
case "boolean":
|
|
4891
4891
|
case "date":
|
|
4892
4892
|
case "regexp":
|
|
4893
|
-
return "a " +
|
|
4893
|
+
return "a " + q;
|
|
4894
4894
|
default:
|
|
4895
|
-
return
|
|
4895
|
+
return q;
|
|
4896
4896
|
}
|
|
4897
4897
|
}
|
|
4898
4898
|
function ge(S) {
|
|
@@ -4999,7 +4999,7 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
|
|
|
4999
4999
|
height: F = "600px",
|
|
5000
5000
|
width: C = "100%"
|
|
5001
5001
|
}) => {
|
|
5002
|
-
const c = da(), { containerRef: y, colSizes: R, isDragging:
|
|
5002
|
+
const c = da(), { containerRef: y, colSizes: R, isDragging: T, handleMouseMove: Y, handleMouseUp: $, handleMouseDown: _ } = pa(20, 80);
|
|
5003
5003
|
return /* @__PURE__ */ t.jsxs(
|
|
5004
5004
|
"main",
|
|
5005
5005
|
{
|
|
@@ -5023,7 +5023,7 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
|
|
|
5023
5023
|
"section",
|
|
5024
5024
|
{
|
|
5025
5025
|
ref: y,
|
|
5026
|
-
onMouseMove:
|
|
5026
|
+
onMouseMove: Y,
|
|
5027
5027
|
onMouseUp: $,
|
|
5028
5028
|
className: "files-container",
|
|
5029
5029
|
children: [
|
|
@@ -5032,7 +5032,7 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
|
|
|
5032
5032
|
/* @__PURE__ */ t.jsx(
|
|
5033
5033
|
"div",
|
|
5034
5034
|
{
|
|
5035
|
-
className: `sidebar-resize ${
|
|
5035
|
+
className: `sidebar-resize ${T ? "sidebar-dragging" : ""}`,
|
|
5036
5036
|
onMouseDown: _
|
|
5037
5037
|
}
|
|
5038
5038
|
)
|