@cubone/react-file-manager 1.9.2 → 1.9.3
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 +801 -800
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ var Qt;
|
|
|
17
17
|
function nr() {
|
|
18
18
|
if (Qt) return rt;
|
|
19
19
|
Qt = 1;
|
|
20
|
-
var e = Me, a = Symbol.for("react.element"),
|
|
20
|
+
var e = Me, a = Symbol.for("react.element"), i = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function u(f, h, d) {
|
|
22
22
|
var m, j = {}, x = null, S = null;
|
|
23
23
|
d !== void 0 && (x = "" + d), h.key !== void 0 && (x = "" + h.key), h.ref !== void 0 && (S = h.ref);
|
|
@@ -25,7 +25,7 @@ function nr() {
|
|
|
25
25
|
if (f && f.defaultProps) for (m in h = f.defaultProps, h) j[m] === void 0 && (j[m] = h[m]);
|
|
26
26
|
return { $$typeof: a, type: f, key: x, ref: S, props: j, _owner: o.current };
|
|
27
27
|
}
|
|
28
|
-
return rt.Fragment =
|
|
28
|
+
return rt.Fragment = i, rt.jsx = u, rt.jsxs = u, rt;
|
|
29
29
|
}
|
|
30
30
|
var at = {};
|
|
31
31
|
/**
|
|
@@ -40,45 +40,45 @@ var at = {};
|
|
|
40
40
|
var en;
|
|
41
41
|
function rr() {
|
|
42
42
|
return en || (en = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var e = Me, a = Symbol.for("react.element"),
|
|
44
|
-
function
|
|
43
|
+
var e = Me, a = Symbol.for("react.element"), i = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), V = Symbol.iterator, M = "@@iterator";
|
|
44
|
+
function Y(c) {
|
|
45
45
|
if (c === null || typeof c != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var
|
|
48
|
-
return typeof
|
|
47
|
+
var F = V && c[V] || c[M];
|
|
48
|
+
return typeof F == "function" ? F : null;
|
|
49
49
|
}
|
|
50
50
|
var L = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
51
|
function I(c) {
|
|
52
52
|
{
|
|
53
|
-
for (var
|
|
53
|
+
for (var F = arguments.length, X = new Array(F > 1 ? F - 1 : 0), Q = 1; Q < F; Q++)
|
|
54
54
|
X[Q - 1] = arguments[Q];
|
|
55
55
|
N("error", c, X);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function N(c,
|
|
58
|
+
function N(c, F, X) {
|
|
59
59
|
{
|
|
60
60
|
var Q = L.ReactDebugCurrentFrame, fe = Q.getStackAddendum();
|
|
61
|
-
fe !== "" && (
|
|
61
|
+
fe !== "" && (F += "%s", X = X.concat([fe]));
|
|
62
62
|
var me = X.map(function(t) {
|
|
63
63
|
return String(t);
|
|
64
64
|
});
|
|
65
|
-
me.unshift("Warning: " +
|
|
65
|
+
me.unshift("Warning: " + F), Function.prototype.apply.call(console[c], console, me);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var w = !1,
|
|
69
|
-
|
|
70
|
-
function
|
|
71
|
-
return !!(typeof c == "string" || typeof c == "function" || c === r || c === l ||
|
|
68
|
+
var w = !1, s = !1, y = !1, O = !1, k = !1, K;
|
|
69
|
+
K = Symbol.for("react.module.reference");
|
|
70
|
+
function U(c) {
|
|
71
|
+
return !!(typeof c == "string" || typeof c == "function" || c === r || c === l || k || c === o || c === d || c === m || O || c === S || w || s || y || typeof c == "object" && c !== null && (c.$$typeof === x || c.$$typeof === j || c.$$typeof === u || c.$$typeof === f || c.$$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
|
-
c.$$typeof ===
|
|
75
|
+
c.$$typeof === K || c.getModuleId !== void 0));
|
|
76
76
|
}
|
|
77
|
-
function H(c,
|
|
77
|
+
function H(c, F, X) {
|
|
78
78
|
var Q = c.displayName;
|
|
79
79
|
if (Q)
|
|
80
80
|
return Q;
|
|
81
|
-
var fe =
|
|
81
|
+
var fe = F.displayName || F.name || "";
|
|
82
82
|
return fe !== "" ? X + "(" + fe + ")" : X;
|
|
83
83
|
}
|
|
84
84
|
function G(c) {
|
|
@@ -94,7 +94,7 @@ function rr() {
|
|
|
94
94
|
switch (c) {
|
|
95
95
|
case r:
|
|
96
96
|
return "Fragment";
|
|
97
|
-
case
|
|
97
|
+
case i:
|
|
98
98
|
return "Portal";
|
|
99
99
|
case l:
|
|
100
100
|
return "Profiler";
|
|
@@ -108,8 +108,8 @@ function rr() {
|
|
|
108
108
|
if (typeof c == "object")
|
|
109
109
|
switch (c.$$typeof) {
|
|
110
110
|
case f:
|
|
111
|
-
var
|
|
112
|
-
return G(
|
|
111
|
+
var F = c;
|
|
112
|
+
return G(F) + ".Consumer";
|
|
113
113
|
case u:
|
|
114
114
|
var X = c;
|
|
115
115
|
return G(X._context) + ".Provider";
|
|
@@ -156,7 +156,7 @@ function rr() {
|
|
|
156
156
|
ue++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function q() {
|
|
160
160
|
{
|
|
161
161
|
if (ue--, ue === 0) {
|
|
162
162
|
var c = {
|
|
@@ -192,7 +192,7 @@ function rr() {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
var $ = L.ReactCurrentDispatcher, p;
|
|
195
|
-
function g(c,
|
|
195
|
+
function g(c, F, X) {
|
|
196
196
|
{
|
|
197
197
|
if (p === void 0)
|
|
198
198
|
try {
|
|
@@ -210,7 +210,7 @@ function rr() {
|
|
|
210
210
|
var B = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
211
|
R = new B();
|
|
212
212
|
}
|
|
213
|
-
function E(c,
|
|
213
|
+
function E(c, F) {
|
|
214
214
|
if (!c || _)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
@@ -225,7 +225,7 @@ function rr() {
|
|
|
225
225
|
var me;
|
|
226
226
|
me = $.current, $.current = null, z();
|
|
227
227
|
try {
|
|
228
|
-
if (
|
|
228
|
+
if (F) {
|
|
229
229
|
var t = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
@@ -260,35 +260,35 @@ function rr() {
|
|
|
260
260
|
if (ye && Q && typeof ye.stack == "string") {
|
|
261
261
|
for (var v = ye.stack.split(`
|
|
262
262
|
`), P = Q.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), A = v.length - 1, W = P.length - 1; A >= 1 && W >= 0 && v[A] !== P[W]; )
|
|
264
264
|
W--;
|
|
265
|
-
for (;
|
|
266
|
-
if (v[
|
|
267
|
-
if (
|
|
265
|
+
for (; A >= 1 && W >= 0; A--, W--)
|
|
266
|
+
if (v[A] !== P[W]) {
|
|
267
|
+
if (A !== 1 || W !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
269
|
+
if (A--, W--, W < 0 || v[A] !== P[W]) {
|
|
270
270
|
var oe = `
|
|
271
|
-
` + v[
|
|
271
|
+
` + v[A].replace(" at new ", " at ");
|
|
272
272
|
return c.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", c.displayName)), typeof c == "function" && R.set(c, oe), oe;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (A >= 1 && W >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
_ = !1, $.current = me,
|
|
279
|
+
_ = !1, $.current = me, q(), Error.prepareStackTrace = fe;
|
|
280
280
|
}
|
|
281
281
|
var se = c ? c.displayName || c.name : "", re = se ? g(se) : "";
|
|
282
282
|
return typeof c == "function" && R.set(c, re), re;
|
|
283
283
|
}
|
|
284
|
-
function ce(c,
|
|
284
|
+
function ce(c, F, X) {
|
|
285
285
|
return E(c, !1);
|
|
286
286
|
}
|
|
287
287
|
function le(c) {
|
|
288
|
-
var
|
|
289
|
-
return !!(
|
|
288
|
+
var F = c.prototype;
|
|
289
|
+
return !!(F && F.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function be(c,
|
|
291
|
+
function be(c, F, X) {
|
|
292
292
|
if (c == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof c == "function")
|
|
@@ -306,11 +306,11 @@ function rr() {
|
|
|
306
306
|
case h:
|
|
307
307
|
return ce(c.render);
|
|
308
308
|
case j:
|
|
309
|
-
return be(c.type,
|
|
309
|
+
return be(c.type, F, X);
|
|
310
310
|
case x: {
|
|
311
311
|
var Q = c, fe = Q._payload, me = Q._init;
|
|
312
312
|
try {
|
|
313
|
-
return be(me(fe),
|
|
313
|
+
return be(me(fe), F, X);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -320,12 +320,12 @@ function rr() {
|
|
|
320
320
|
var xe = Object.prototype.hasOwnProperty, _e = {}, Se = L.ReactDebugCurrentFrame;
|
|
321
321
|
function ze(c) {
|
|
322
322
|
if (c) {
|
|
323
|
-
var
|
|
323
|
+
var F = c._owner, X = be(c.type, c._source, F ? F.type : null);
|
|
324
324
|
Se.setExtraStackFrame(X);
|
|
325
325
|
} else
|
|
326
326
|
Se.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Et(c,
|
|
328
|
+
function Et(c, F, X, Q, fe) {
|
|
329
329
|
{
|
|
330
330
|
var me = Function.call.bind(xe);
|
|
331
331
|
for (var t in c)
|
|
@@ -336,9 +336,9 @@ function rr() {
|
|
|
336
336
|
var P = Error((Q || "React class") + ": " + X + " type `" + t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw P.name = "Invariant Violation", P;
|
|
338
338
|
}
|
|
339
|
-
v = c[t](
|
|
340
|
-
} catch (
|
|
341
|
-
v =
|
|
339
|
+
v = c[t](F, t, Q, X, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (A) {
|
|
341
|
+
v = A;
|
|
342
342
|
}
|
|
343
343
|
v && !(v instanceof Error) && (ze(fe), I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", X, t, typeof v), ze(null)), v instanceof Error && !(v.message in _e) && (_e[v.message] = !0, ze(fe), I("Failed %s type: %s", X, v.message), ze(null));
|
|
344
344
|
}
|
|
@@ -350,7 +350,7 @@ function rr() {
|
|
|
350
350
|
}
|
|
351
351
|
function Rt(c) {
|
|
352
352
|
{
|
|
353
|
-
var
|
|
353
|
+
var F = typeof Symbol == "function" && Symbol.toStringTag, X = F && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
354
354
|
return X;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -368,7 +368,7 @@ function rr() {
|
|
|
368
368
|
if (ct(c))
|
|
369
369
|
return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rt(c)), lt(c);
|
|
370
370
|
}
|
|
371
|
-
var
|
|
371
|
+
var Fe = L.ReactCurrentOwner, ut = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -377,30 +377,30 @@ function rr() {
|
|
|
377
377
|
De = {};
|
|
378
378
|
function Tt(c) {
|
|
379
379
|
if (xe.call(c, "ref")) {
|
|
380
|
-
var
|
|
381
|
-
if (
|
|
380
|
+
var F = Object.getOwnPropertyDescriptor(c, "ref").get;
|
|
381
|
+
if (F && F.isReactWarning)
|
|
382
382
|
return !1;
|
|
383
383
|
}
|
|
384
384
|
return c.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function Pt(c) {
|
|
387
387
|
if (xe.call(c, "key")) {
|
|
388
|
-
var
|
|
389
|
-
if (
|
|
388
|
+
var F = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
389
|
+
if (F && F.isReactWarning)
|
|
390
390
|
return !1;
|
|
391
391
|
}
|
|
392
392
|
return c.key !== void 0;
|
|
393
393
|
}
|
|
394
|
-
function St(c,
|
|
395
|
-
if (typeof c.ref == "string" &&
|
|
396
|
-
var X = J(
|
|
397
|
-
De[X] || (I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(
|
|
394
|
+
function St(c, F) {
|
|
395
|
+
if (typeof c.ref == "string" && Fe.current && F && Fe.current.stateNode !== F) {
|
|
396
|
+
var X = J(Fe.current.type);
|
|
397
|
+
De[X] || (I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(Fe.current.type), c.ref), De[X] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
function Je(c,
|
|
400
|
+
function Je(c, F) {
|
|
401
401
|
{
|
|
402
402
|
var X = function() {
|
|
403
|
-
Be || (Be = !0, I("%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://reactjs.org/link/special-props)",
|
|
403
|
+
Be || (Be = !0, I("%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://reactjs.org/link/special-props)", F));
|
|
404
404
|
};
|
|
405
405
|
X.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
406
406
|
get: X,
|
|
@@ -408,10 +408,10 @@ function rr() {
|
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function kt(c,
|
|
411
|
+
function kt(c, F) {
|
|
412
412
|
{
|
|
413
413
|
var X = function() {
|
|
414
|
-
Ue || (Ue = !0, I("%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://reactjs.org/link/special-props)",
|
|
414
|
+
Ue || (Ue = !0, I("%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://reactjs.org/link/special-props)", F));
|
|
415
415
|
};
|
|
416
416
|
X.isReactWarning = !0, Object.defineProperty(c, "ref", {
|
|
417
417
|
get: X,
|
|
@@ -419,13 +419,13 @@ function rr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var Mt = function(c,
|
|
422
|
+
var Mt = function(c, F, X, Q, fe, me, t) {
|
|
423
423
|
var v = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: a,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: c,
|
|
428
|
-
key:
|
|
428
|
+
key: F,
|
|
429
429
|
ref: X,
|
|
430
430
|
props: t,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
@@ -448,28 +448,28 @@ function rr() {
|
|
|
448
448
|
value: fe
|
|
449
449
|
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
450
450
|
};
|
|
451
|
-
function _t(c,
|
|
451
|
+
function _t(c, F, X, Q, fe) {
|
|
452
452
|
{
|
|
453
453
|
var me, t = {}, v = null, P = null;
|
|
454
|
-
X !== void 0 && (Le(X), v = "" + X), Pt(
|
|
455
|
-
for (me in
|
|
456
|
-
xe.call(
|
|
454
|
+
X !== void 0 && (Le(X), v = "" + X), Pt(F) && (Le(F.key), v = "" + F.key), Tt(F) && (P = F.ref, St(F, fe));
|
|
455
|
+
for (me in F)
|
|
456
|
+
xe.call(F, me) && !ut.hasOwnProperty(me) && (t[me] = F[me]);
|
|
457
457
|
if (c && c.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (me in
|
|
460
|
-
t[me] === void 0 && (t[me] =
|
|
458
|
+
var A = c.defaultProps;
|
|
459
|
+
for (me in A)
|
|
460
|
+
t[me] === void 0 && (t[me] = A[me]);
|
|
461
461
|
}
|
|
462
462
|
if (v || P) {
|
|
463
463
|
var W = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
|
|
464
464
|
v && Je(t, W), P && kt(t, W);
|
|
465
465
|
}
|
|
466
|
-
return Mt(c, v, P, fe, Q,
|
|
466
|
+
return Mt(c, v, P, fe, Q, Fe.current, t);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
var Ze = L.ReactCurrentOwner, ft = L.ReactDebugCurrentFrame;
|
|
470
470
|
function He(c) {
|
|
471
471
|
if (c) {
|
|
472
|
-
var
|
|
472
|
+
var F = c._owner, X = be(c.type, c._source, F ? F.type : null);
|
|
473
473
|
ft.setExtraStackFrame(X);
|
|
474
474
|
} else
|
|
475
475
|
ft.setExtraStackFrame(null);
|
|
@@ -497,22 +497,22 @@ Check the render method of \`` + c + "`.";
|
|
|
497
497
|
var qe = {};
|
|
498
498
|
function dt(c) {
|
|
499
499
|
{
|
|
500
|
-
var
|
|
501
|
-
if (!
|
|
500
|
+
var F = Ye();
|
|
501
|
+
if (!F) {
|
|
502
502
|
var X = typeof c == "string" ? c : c.displayName || c.name;
|
|
503
|
-
X && (
|
|
503
|
+
X && (F = `
|
|
504
504
|
|
|
505
505
|
Check the top-level render call using <` + X + ">.");
|
|
506
506
|
}
|
|
507
|
-
return
|
|
507
|
+
return F;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function Ne(c,
|
|
510
|
+
function Ne(c, F) {
|
|
511
511
|
{
|
|
512
512
|
if (!c._store || c._store.validated || c.key != null)
|
|
513
513
|
return;
|
|
514
514
|
c._store.validated = !0;
|
|
515
|
-
var X = dt(
|
|
515
|
+
var X = dt(F);
|
|
516
516
|
if (qe[X])
|
|
517
517
|
return;
|
|
518
518
|
qe[X] = !0;
|
|
@@ -520,54 +520,54 @@ Check the top-level render call using <` + X + ">.");
|
|
|
520
520
|
c && c._owner && c._owner !== Ze.current && (Q = " It was passed a child from " + J(c._owner.type) + "."), He(c), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', X, Q), He(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function tt(c,
|
|
523
|
+
function tt(c, F) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof c != "object")
|
|
526
526
|
return;
|
|
527
527
|
if (We(c))
|
|
528
528
|
for (var X = 0; X < c.length; X++) {
|
|
529
529
|
var Q = c[X];
|
|
530
|
-
et(Q) && Ne(Q,
|
|
530
|
+
et(Q) && Ne(Q, F);
|
|
531
531
|
}
|
|
532
532
|
else if (et(c))
|
|
533
533
|
c._store && (c._store.validated = !0);
|
|
534
534
|
else if (c) {
|
|
535
|
-
var fe =
|
|
535
|
+
var fe = Y(c);
|
|
536
536
|
if (typeof fe == "function" && fe !== c.entries)
|
|
537
537
|
for (var me = fe.call(c), t; !(t = me.next()).done; )
|
|
538
|
-
et(t.value) && Ne(t.value,
|
|
538
|
+
et(t.value) && Ne(t.value, F);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
function Nt(c) {
|
|
543
543
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
544
|
+
var F = c.type;
|
|
545
|
+
if (F == null || typeof F == "string")
|
|
546
546
|
return;
|
|
547
547
|
var X;
|
|
548
|
-
if (typeof
|
|
549
|
-
X =
|
|
550
|
-
else if (typeof
|
|
548
|
+
if (typeof F == "function")
|
|
549
|
+
X = F.propTypes;
|
|
550
|
+
else if (typeof F == "object" && (F.$$typeof === h || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
|
|
553
|
-
X =
|
|
552
|
+
F.$$typeof === j))
|
|
553
|
+
X = F.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if (X) {
|
|
557
|
-
var Q = J(
|
|
557
|
+
var Q = J(F);
|
|
558
558
|
Et(X, c.props, "prop", Q, c);
|
|
559
|
-
} else if (
|
|
559
|
+
} else if (F.PropTypes !== void 0 && !Qe) {
|
|
560
560
|
Qe = !0;
|
|
561
|
-
var fe = J(
|
|
561
|
+
var fe = J(F);
|
|
562
562
|
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", fe || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof
|
|
564
|
+
typeof F.getDefaultProps == "function" && !F.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function pt(c) {
|
|
568
568
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var Q =
|
|
569
|
+
for (var F = Object.keys(c.props), X = 0; X < F.length; X++) {
|
|
570
|
+
var Q = F[X];
|
|
571
571
|
if (Q !== "children" && Q !== "key") {
|
|
572
572
|
He(c), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), He(null);
|
|
573
573
|
break;
|
|
@@ -577,22 +577,22 @@ Check the top-level render call using <` + X + ">.");
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ht = {};
|
|
580
|
-
function nt(c,
|
|
580
|
+
function nt(c, F, X, Q, fe, me) {
|
|
581
581
|
{
|
|
582
|
-
var t =
|
|
582
|
+
var t = U(c);
|
|
583
583
|
if (!t) {
|
|
584
584
|
var v = "";
|
|
585
585
|
(c === void 0 || typeof c == "object" && c !== null && Object.keys(c).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
586
|
var P = Te();
|
|
587
587
|
P ? v += P : v += Ye();
|
|
588
|
-
var
|
|
589
|
-
c === null ?
|
|
588
|
+
var A;
|
|
589
|
+
c === null ? A = "null" : We(c) ? A = "array" : c !== void 0 && c.$$typeof === a ? (A = "<" + (J(c.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : A = typeof c, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, v);
|
|
590
590
|
}
|
|
591
|
-
var W = _t(c,
|
|
591
|
+
var W = _t(c, F, X, fe, me);
|
|
592
592
|
if (W == null)
|
|
593
593
|
return W;
|
|
594
594
|
if (t) {
|
|
595
|
-
var oe =
|
|
595
|
+
var oe = F.children;
|
|
596
596
|
if (oe !== void 0)
|
|
597
597
|
if (Q)
|
|
598
598
|
if (We(oe)) {
|
|
@@ -604,8 +604,8 @@ Check the top-level render call using <` + X + ">.");
|
|
|
604
604
|
else
|
|
605
605
|
tt(oe, c);
|
|
606
606
|
}
|
|
607
|
-
if (xe.call(
|
|
608
|
-
var re = J(c), ye = Object.keys(
|
|
607
|
+
if (xe.call(F, "key")) {
|
|
608
|
+
var re = J(c), ye = Object.keys(F).filter(function(we) {
|
|
609
609
|
return we !== "key";
|
|
610
610
|
}), Oe = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!ht[re + Oe]) {
|
|
@@ -621,14 +621,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
621
621
|
return c === r ? pt(W) : Nt(W), W;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function vt(c,
|
|
625
|
-
return nt(c,
|
|
624
|
+
function vt(c, F, X) {
|
|
625
|
+
return nt(c, F, X, !0);
|
|
626
626
|
}
|
|
627
|
-
function mt(c,
|
|
628
|
-
return nt(c,
|
|
627
|
+
function mt(c, F, X) {
|
|
628
|
+
return nt(c, F, X, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
at.Fragment = r, at.jsx =
|
|
630
|
+
var At = mt, yt = vt;
|
|
631
|
+
at.Fragment = r, at.jsx = At, at.jsxs = yt;
|
|
632
632
|
}()), at;
|
|
633
633
|
}
|
|
634
634
|
process.env.NODE_ENV === "production" ? Wt.exports = nr() : Wt.exports = rr();
|
|
@@ -639,7 +639,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
639
639
|
})(typeof self < "u" ? self : On, function() {
|
|
640
640
|
return (
|
|
641
641
|
/******/
|
|
642
|
-
function(
|
|
642
|
+
function(i) {
|
|
643
643
|
var r = {};
|
|
644
644
|
function o(l) {
|
|
645
645
|
if (r[l])
|
|
@@ -653,9 +653,9 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
653
653
|
exports: {}
|
|
654
654
|
/******/
|
|
655
655
|
};
|
|
656
|
-
return
|
|
656
|
+
return i[l].call(u.exports, u, u.exports, o), u.l = !0, u.exports;
|
|
657
657
|
}
|
|
658
|
-
return o.m =
|
|
658
|
+
return o.m = i, o.c = r, o.d = function(l, u, f) {
|
|
659
659
|
o.o(l, u) || Object.defineProperty(l, u, {
|
|
660
660
|
/******/
|
|
661
661
|
configurable: !1,
|
|
@@ -684,7 +684,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
684
684
|
}([
|
|
685
685
|
/* 0 */
|
|
686
686
|
/***/
|
|
687
|
-
function(
|
|
687
|
+
function(i, r, o) {
|
|
688
688
|
var l = function(h) {
|
|
689
689
|
};
|
|
690
690
|
process.env.NODE_ENV !== "production" && (l = function(h) {
|
|
@@ -693,23 +693,23 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
693
693
|
});
|
|
694
694
|
function u(f, h, d, m, j, x, S, V) {
|
|
695
695
|
if (l(h), !f) {
|
|
696
|
-
var
|
|
696
|
+
var M;
|
|
697
697
|
if (h === void 0)
|
|
698
|
-
|
|
698
|
+
M = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
699
699
|
else {
|
|
700
|
-
var
|
|
701
|
-
|
|
702
|
-
return
|
|
703
|
-
})),
|
|
700
|
+
var Y = [d, m, j, x, S, V], L = 0;
|
|
701
|
+
M = new Error(h.replace(/%s/g, function() {
|
|
702
|
+
return Y[L++];
|
|
703
|
+
})), M.name = "Invariant Violation";
|
|
704
704
|
}
|
|
705
|
-
throw
|
|
705
|
+
throw M.framesToPop = 1, M;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
|
|
708
|
+
i.exports = u;
|
|
709
709
|
},
|
|
710
710
|
/* 1 */
|
|
711
711
|
/***/
|
|
712
|
-
function(
|
|
712
|
+
function(i, r, o) {
|
|
713
713
|
function l(f) {
|
|
714
714
|
return function() {
|
|
715
715
|
return f;
|
|
@@ -721,11 +721,11 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
721
721
|
return this;
|
|
722
722
|
}, u.thatReturnsArgument = function(f) {
|
|
723
723
|
return f;
|
|
724
|
-
},
|
|
724
|
+
}, i.exports = u;
|
|
725
725
|
},
|
|
726
726
|
/* 2 */
|
|
727
727
|
/***/
|
|
728
|
-
function(
|
|
728
|
+
function(i, r, o) {
|
|
729
729
|
/*
|
|
730
730
|
object-assign
|
|
731
731
|
(c) Sindre Sorhus
|
|
@@ -746,24 +746,24 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
746
746
|
return !1;
|
|
747
747
|
for (var j = {}, x = 0; x < 10; x++)
|
|
748
748
|
j["_" + String.fromCharCode(x)] = x;
|
|
749
|
-
var S = Object.getOwnPropertyNames(j).map(function(
|
|
750
|
-
return j[
|
|
749
|
+
var S = Object.getOwnPropertyNames(j).map(function(M) {
|
|
750
|
+
return j[M];
|
|
751
751
|
});
|
|
752
752
|
if (S.join("") !== "0123456789")
|
|
753
753
|
return !1;
|
|
754
754
|
var V = {};
|
|
755
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
756
|
-
V[
|
|
755
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(M) {
|
|
756
|
+
V[M] = M;
|
|
757
757
|
}), Object.keys(Object.assign({}, V)).join("") === "abcdefghijklmnopqrst";
|
|
758
758
|
} catch {
|
|
759
759
|
return !1;
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
|
|
763
|
-
for (var x, S = h(m), V,
|
|
764
|
-
x = Object(arguments[
|
|
765
|
-
for (var
|
|
766
|
-
u.call(x,
|
|
762
|
+
i.exports = d() ? Object.assign : function(m, j) {
|
|
763
|
+
for (var x, S = h(m), V, M = 1; M < arguments.length; M++) {
|
|
764
|
+
x = Object(arguments[M]);
|
|
765
|
+
for (var Y in x)
|
|
766
|
+
u.call(x, Y) && (S[Y] = x[Y]);
|
|
767
767
|
if (l) {
|
|
768
768
|
V = l(x);
|
|
769
769
|
for (var L = 0; L < V.length; L++)
|
|
@@ -775,7 +775,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
775
775
|
},
|
|
776
776
|
/* 3 */
|
|
777
777
|
/***/
|
|
778
|
-
function(
|
|
778
|
+
function(i, r, o) {
|
|
779
779
|
var l = o(1), u = l;
|
|
780
780
|
if (process.env.NODE_ENV !== "production") {
|
|
781
781
|
var f = function(d) {
|
|
@@ -800,121 +800,121 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
|
|
803
|
+
i.exports = u;
|
|
804
804
|
},
|
|
805
805
|
/* 4 */
|
|
806
806
|
/***/
|
|
807
|
-
function(
|
|
807
|
+
function(i, r, o) {
|
|
808
808
|
var l = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
809
|
-
|
|
809
|
+
i.exports = l;
|
|
810
810
|
},
|
|
811
811
|
/* 5 */
|
|
812
812
|
/***/
|
|
813
|
-
function(
|
|
813
|
+
function(i, r, o) {
|
|
814
814
|
var l = {};
|
|
815
|
-
process.env.NODE_ENV !== "production" && Object.freeze(l),
|
|
815
|
+
process.env.NODE_ENV !== "production" && Object.freeze(l), i.exports = l;
|
|
816
816
|
},
|
|
817
817
|
/* 6 */
|
|
818
818
|
/***/
|
|
819
|
-
function(
|
|
819
|
+
function(i, r, o) {
|
|
820
820
|
if (process.env.NODE_ENV !== "production")
|
|
821
821
|
var l = o(0), u = o(3), f = o(4), h = {};
|
|
822
822
|
function d(m, j, x, S, V) {
|
|
823
823
|
if (process.env.NODE_ENV !== "production") {
|
|
824
|
-
for (var
|
|
825
|
-
if (m.hasOwnProperty(
|
|
826
|
-
var
|
|
824
|
+
for (var M in m)
|
|
825
|
+
if (m.hasOwnProperty(M)) {
|
|
826
|
+
var Y;
|
|
827
827
|
try {
|
|
828
|
-
l(typeof m[
|
|
828
|
+
l(typeof m[M] == "function", "%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.", S || "React class", x, M, typeof m[M]), Y = m[M](j, M, S, x, null, f);
|
|
829
829
|
} catch (I) {
|
|
830
|
-
|
|
830
|
+
Y = I;
|
|
831
831
|
}
|
|
832
|
-
if (u(!
|
|
833
|
-
h[
|
|
832
|
+
if (u(!Y || Y instanceof Error, "%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", x, M, typeof Y), Y instanceof Error && !(Y.message in h)) {
|
|
833
|
+
h[Y.message] = !0;
|
|
834
834
|
var L = V ? V() : "";
|
|
835
|
-
u(!1, "Failed %s type: %s%s", x,
|
|
835
|
+
u(!1, "Failed %s type: %s%s", x, Y.message, L ?? "");
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
|
|
840
|
+
i.exports = d;
|
|
841
841
|
},
|
|
842
842
|
/* 7 */
|
|
843
843
|
/***/
|
|
844
|
-
function(
|
|
844
|
+
function(i, r, o) {
|
|
845
845
|
Object.defineProperty(r, "__esModule", {
|
|
846
846
|
value: !0
|
|
847
847
|
});
|
|
848
848
|
var l = Object.assign || function(w) {
|
|
849
|
-
for (var
|
|
850
|
-
var y = arguments[
|
|
849
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
850
|
+
var y = arguments[s];
|
|
851
851
|
for (var O in y)
|
|
852
852
|
Object.prototype.hasOwnProperty.call(y, O) && (w[O] = y[O]);
|
|
853
853
|
}
|
|
854
854
|
return w;
|
|
855
855
|
}, u = /* @__PURE__ */ function() {
|
|
856
|
-
function w(
|
|
856
|
+
function w(s, y) {
|
|
857
857
|
for (var O = 0; O < y.length; O++) {
|
|
858
|
-
var
|
|
859
|
-
|
|
858
|
+
var k = y[O];
|
|
859
|
+
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(s, k.key, k);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
return function(
|
|
863
|
-
return y && w(
|
|
862
|
+
return function(s, y, O) {
|
|
863
|
+
return y && w(s.prototype, y), O && w(s, O), s;
|
|
864
864
|
};
|
|
865
865
|
}(), f = o(8), h = V(f), d = o(11), m = V(d), j = o(14), x = S(j);
|
|
866
866
|
function S(w) {
|
|
867
867
|
if (w && w.__esModule)
|
|
868
868
|
return w;
|
|
869
|
-
var
|
|
869
|
+
var s = {};
|
|
870
870
|
if (w != null)
|
|
871
871
|
for (var y in w)
|
|
872
|
-
Object.prototype.hasOwnProperty.call(w, y) && (
|
|
873
|
-
return
|
|
872
|
+
Object.prototype.hasOwnProperty.call(w, y) && (s[y] = w[y]);
|
|
873
|
+
return s.default = w, s;
|
|
874
874
|
}
|
|
875
875
|
function V(w) {
|
|
876
876
|
return w && w.__esModule ? w : { default: w };
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function M(w, s) {
|
|
879
879
|
var y = {};
|
|
880
880
|
for (var O in w)
|
|
881
|
-
|
|
881
|
+
s.indexOf(O) >= 0 || Object.prototype.hasOwnProperty.call(w, O) && (y[O] = w[O]);
|
|
882
882
|
return y;
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
if (!(w instanceof
|
|
884
|
+
function Y(w, s) {
|
|
885
|
+
if (!(w instanceof s))
|
|
886
886
|
throw new TypeError("Cannot call a class as a function");
|
|
887
887
|
}
|
|
888
|
-
function L(w,
|
|
888
|
+
function L(w, s) {
|
|
889
889
|
if (!w)
|
|
890
890
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
891
|
-
return
|
|
891
|
+
return s && (typeof s == "object" || typeof s == "function") ? s : w;
|
|
892
892
|
}
|
|
893
|
-
function I(w,
|
|
894
|
-
if (typeof
|
|
895
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
896
|
-
w.prototype = Object.create(
|
|
893
|
+
function I(w, s) {
|
|
894
|
+
if (typeof s != "function" && s !== null)
|
|
895
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof s);
|
|
896
|
+
w.prototype = Object.create(s && s.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), s && (Object.setPrototypeOf ? Object.setPrototypeOf(w, s) : w.__proto__ = s);
|
|
897
897
|
}
|
|
898
898
|
var N = function(w) {
|
|
899
|
-
I(
|
|
900
|
-
function
|
|
901
|
-
var y, O,
|
|
902
|
-
|
|
903
|
-
for (var
|
|
899
|
+
I(s, w);
|
|
900
|
+
function s() {
|
|
901
|
+
var y, O, k, K;
|
|
902
|
+
Y(this, s);
|
|
903
|
+
for (var U = arguments.length, H = Array(U), G = 0; G < U; G++)
|
|
904
904
|
H[G] = arguments[G];
|
|
905
|
-
return
|
|
906
|
-
delayed:
|
|
907
|
-
}, O), L(
|
|
905
|
+
return K = (O = (k = L(this, (y = s.__proto__ || Object.getPrototypeOf(s)).call.apply(y, [this].concat(H))), k), k.state = {
|
|
906
|
+
delayed: k.props.delay > 0
|
|
907
|
+
}, O), L(k, K);
|
|
908
908
|
}
|
|
909
|
-
return u(
|
|
909
|
+
return u(s, [{
|
|
910
910
|
key: "componentDidMount",
|
|
911
911
|
value: function() {
|
|
912
|
-
var O = this,
|
|
913
|
-
|
|
912
|
+
var O = this, k = this.props.delay, K = this.state.delayed;
|
|
913
|
+
K && (this.timeout = setTimeout(function() {
|
|
914
914
|
O.setState({
|
|
915
915
|
delayed: !1
|
|
916
916
|
});
|
|
917
|
-
},
|
|
917
|
+
}, k));
|
|
918
918
|
}
|
|
919
919
|
}, {
|
|
920
920
|
key: "componentWillUnmount",
|
|
@@ -925,11 +925,11 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
925
925
|
}, {
|
|
926
926
|
key: "render",
|
|
927
927
|
value: function() {
|
|
928
|
-
var O = this.props,
|
|
928
|
+
var O = this.props, k = O.color;
|
|
929
929
|
O.delay;
|
|
930
|
-
var
|
|
931
|
-
fill:
|
|
932
|
-
height:
|
|
930
|
+
var K = O.type, U = O.height, H = O.width, G = M(O, ["color", "delay", "type", "height", "width"]), J = this.state.delayed ? "blank" : K, te = x[J], ue = {
|
|
931
|
+
fill: k,
|
|
932
|
+
height: U,
|
|
933
933
|
width: H
|
|
934
934
|
};
|
|
935
935
|
return h.default.createElement("div", l({
|
|
@@ -937,7 +937,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
937
937
|
dangerouslySetInnerHTML: { __html: te }
|
|
938
938
|
}, G));
|
|
939
939
|
}
|
|
940
|
-
}]),
|
|
940
|
+
}]), s;
|
|
941
941
|
}(f.Component);
|
|
942
942
|
N.propTypes = {
|
|
943
943
|
color: m.default.string,
|
|
@@ -955,12 +955,12 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
955
955
|
},
|
|
956
956
|
/* 8 */
|
|
957
957
|
/***/
|
|
958
|
-
function(
|
|
959
|
-
process.env.NODE_ENV === "production" ?
|
|
958
|
+
function(i, r, o) {
|
|
959
|
+
process.env.NODE_ENV === "production" ? i.exports = o(9) : i.exports = o(10);
|
|
960
960
|
},
|
|
961
961
|
/* 9 */
|
|
962
962
|
/***/
|
|
963
|
-
function(
|
|
963
|
+
function(i, r, o) {
|
|
964
964
|
/** @license React v16.3.2
|
|
965
965
|
* react.production.min.js
|
|
966
966
|
*
|
|
@@ -969,7 +969,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
969
969
|
* This source code is licensed under the MIT license found in the
|
|
970
970
|
* LICENSE file in the root directory of this source tree.
|
|
971
971
|
*/
|
|
972
|
-
var l = o(2), u = o(0), f = o(5), h = o(1), d = typeof Symbol == "function" && Symbol.for, m = d ? Symbol.for("react.element") : 60103, j = d ? Symbol.for("react.portal") : 60106, x = d ? Symbol.for("react.fragment") : 60107, S = d ? Symbol.for("react.strict_mode") : 60108, V = d ? Symbol.for("react.provider") : 60109,
|
|
972
|
+
var l = o(2), u = o(0), f = o(5), h = o(1), d = typeof Symbol == "function" && Symbol.for, m = d ? Symbol.for("react.element") : 60103, j = d ? Symbol.for("react.portal") : 60106, x = d ? Symbol.for("react.fragment") : 60107, S = d ? Symbol.for("react.strict_mode") : 60108, V = d ? Symbol.for("react.provider") : 60109, M = d ? Symbol.for("react.context") : 60110, Y = d ? Symbol.for("react.async_mode") : 60111, L = d ? Symbol.for("react.forward_ref") : 60112, I = typeof Symbol == "function" && Symbol.iterator;
|
|
973
973
|
function N(p) {
|
|
974
974
|
for (var g = arguments.length - 1, _ = "http://reactjs.org/docs/error-decoder.html?invariant=" + p, R = 0; R < g; R++) _ += "&args[]=" + encodeURIComponent(arguments[R + 1]);
|
|
975
975
|
u(!1, "Minified React error #" + p + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", _);
|
|
@@ -980,26 +980,26 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
980
980
|
}, enqueueReplaceState: function() {
|
|
981
981
|
}, enqueueSetState: function() {
|
|
982
982
|
} };
|
|
983
|
-
function
|
|
983
|
+
function s(p, g, _) {
|
|
984
984
|
this.props = p, this.context = g, this.refs = f, this.updater = _ || w;
|
|
985
985
|
}
|
|
986
|
-
|
|
986
|
+
s.prototype.isReactComponent = {}, s.prototype.setState = function(p, g) {
|
|
987
987
|
typeof p != "object" && typeof p != "function" && p != null && N("85"), this.updater.enqueueSetState(this, p, g, "setState");
|
|
988
|
-
},
|
|
988
|
+
}, s.prototype.forceUpdate = function(p) {
|
|
989
989
|
this.updater.enqueueForceUpdate(this, p, "forceUpdate");
|
|
990
990
|
};
|
|
991
991
|
function y() {
|
|
992
992
|
}
|
|
993
|
-
y.prototype =
|
|
993
|
+
y.prototype = s.prototype;
|
|
994
994
|
function O(p, g, _) {
|
|
995
995
|
this.props = p, this.context = g, this.refs = f, this.updater = _ || w;
|
|
996
996
|
}
|
|
997
|
-
var
|
|
998
|
-
|
|
999
|
-
var
|
|
997
|
+
var k = O.prototype = new y();
|
|
998
|
+
k.constructor = O, l(k, s.prototype), k.isPureReactComponent = !0;
|
|
999
|
+
var K = { current: null }, U = Object.prototype.hasOwnProperty, H = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1000
1000
|
function G(p, g, _) {
|
|
1001
1001
|
var R = void 0, B = {}, E = null, ce = null;
|
|
1002
|
-
if (g != null) for (R in g.ref !== void 0 && (ce = g.ref), g.key !== void 0 && (E = "" + g.key), g)
|
|
1002
|
+
if (g != null) for (R in g.ref !== void 0 && (ce = g.ref), g.key !== void 0 && (E = "" + g.key), g) U.call(g, R) && !H.hasOwnProperty(R) && (B[R] = g[R]);
|
|
1003
1003
|
var le = arguments.length - 2;
|
|
1004
1004
|
if (le === 1) B.children = _;
|
|
1005
1005
|
else if (1 < le) {
|
|
@@ -1007,7 +1007,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1007
1007
|
B.children = be;
|
|
1008
1008
|
}
|
|
1009
1009
|
if (p && p.defaultProps) for (R in le = p.defaultProps, le) B[R] === void 0 && (B[R] = le[R]);
|
|
1010
|
-
return { $$typeof: m, type: p, key: E, ref: ce, props: B, _owner:
|
|
1010
|
+
return { $$typeof: m, type: p, key: E, ref: ce, props: B, _owner: K.current };
|
|
1011
1011
|
}
|
|
1012
1012
|
function J(p) {
|
|
1013
1013
|
return typeof p == "object" && p !== null && p.$$typeof === m;
|
|
@@ -1086,9 +1086,9 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1086
1086
|
return J(p) || N("143"), p;
|
|
1087
1087
|
} }, createRef: function() {
|
|
1088
1088
|
return { current: null };
|
|
1089
|
-
}, Component:
|
|
1089
|
+
}, Component: s, PureComponent: O, createContext: function(p, g) {
|
|
1090
1090
|
return g === void 0 && (g = null), p = {
|
|
1091
|
-
$$typeof:
|
|
1091
|
+
$$typeof: M,
|
|
1092
1092
|
_calculateChangedBits: g,
|
|
1093
1093
|
_defaultValue: p,
|
|
1094
1094
|
_currentValue: p,
|
|
@@ -1098,14 +1098,14 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1098
1098
|
}, p.Provider = { $$typeof: V, _context: p }, p.Consumer = p;
|
|
1099
1099
|
}, forwardRef: function(p) {
|
|
1100
1100
|
return { $$typeof: L, render: p };
|
|
1101
|
-
}, Fragment: x, StrictMode: S, unstable_AsyncMode:
|
|
1101
|
+
}, Fragment: x, StrictMode: S, unstable_AsyncMode: Y, createElement: G, cloneElement: function(p, g, _) {
|
|
1102
1102
|
p == null && N("267", p);
|
|
1103
1103
|
var R = void 0, B = l({}, p.props), E = p.key, ce = p.ref, le = p._owner;
|
|
1104
1104
|
if (g != null) {
|
|
1105
|
-
g.ref !== void 0 && (ce = g.ref, le =
|
|
1105
|
+
g.ref !== void 0 && (ce = g.ref, le = K.current), g.key !== void 0 && (E = "" + g.key);
|
|
1106
1106
|
var be = void 0;
|
|
1107
1107
|
p.type && p.type.defaultProps && (be = p.type.defaultProps);
|
|
1108
|
-
for (R in g)
|
|
1108
|
+
for (R in g) U.call(g, R) && !H.hasOwnProperty(R) && (B[R] = g[R] === void 0 && be !== void 0 ? be[R] : g[R]);
|
|
1109
1109
|
}
|
|
1110
1110
|
if (R = arguments.length - 2, R === 1) B.children = _;
|
|
1111
1111
|
else if (1 < R) {
|
|
@@ -1117,12 +1117,12 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1117
1117
|
}, createFactory: function(p) {
|
|
1118
1118
|
var g = G.bind(null, p);
|
|
1119
1119
|
return g.type = p, g;
|
|
1120
|
-
}, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner:
|
|
1121
|
-
|
|
1120
|
+
}, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: K, assign: l } }, q = Object.freeze({ default: z }), $ = q && z || q;
|
|
1121
|
+
i.exports = $.default ? $.default : $;
|
|
1122
1122
|
},
|
|
1123
1123
|
/* 10 */
|
|
1124
1124
|
/***/
|
|
1125
|
-
function(
|
|
1125
|
+
function(i, r, o) {
|
|
1126
1126
|
/** @license React v16.3.2
|
|
1127
1127
|
* react.development.js
|
|
1128
1128
|
*
|
|
@@ -1132,19 +1132,19 @@ var n = Wt.exports, Rn = { 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 = o(2), u = o(0), f = o(5), h = o(3), d = o(1), m = o(6), j = "16.3.2", x = typeof Symbol == "function" && Symbol.for, S = x ? Symbol.for("react.element") : 60103, V = x ? Symbol.for("react.call") : 60104,
|
|
1136
|
-
function
|
|
1135
|
+
var l = o(2), u = o(0), f = o(5), h = o(3), d = o(1), m = o(6), j = "16.3.2", x = typeof Symbol == "function" && Symbol.for, S = x ? Symbol.for("react.element") : 60103, V = x ? Symbol.for("react.call") : 60104, M = x ? Symbol.for("react.return") : 60105, Y = x ? Symbol.for("react.portal") : 60106, L = x ? Symbol.for("react.fragment") : 60107, I = x ? Symbol.for("react.strict_mode") : 60108, N = x ? Symbol.for("react.provider") : 60109, w = x ? Symbol.for("react.context") : 60110, s = x ? Symbol.for("react.async_mode") : 60111, y = x ? Symbol.for("react.forward_ref") : 60112, O = typeof Symbol == "function" && Symbol.iterator, k = "@@iterator";
|
|
1136
|
+
function K(t) {
|
|
1137
1137
|
if (t === null || typeof t > "u")
|
|
1138
1138
|
return null;
|
|
1139
|
-
var v = O && t[O] || t[
|
|
1139
|
+
var v = O && t[O] || t[k];
|
|
1140
1140
|
return typeof v == "function" ? v : null;
|
|
1141
1141
|
}
|
|
1142
|
-
var
|
|
1142
|
+
var U = function() {
|
|
1143
1143
|
};
|
|
1144
1144
|
{
|
|
1145
1145
|
var H = function(t) {
|
|
1146
|
-
for (var v = arguments.length, P = Array(v > 1 ? v - 1 : 0),
|
|
1147
|
-
P[
|
|
1146
|
+
for (var v = arguments.length, P = Array(v > 1 ? v - 1 : 0), A = 1; A < v; A++)
|
|
1147
|
+
P[A - 1] = arguments[A];
|
|
1148
1148
|
var W = 0, oe = "Warning: " + t.replace(/%s/g, function() {
|
|
1149
1149
|
return P[W++];
|
|
1150
1150
|
});
|
|
@@ -1154,23 +1154,23 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1154
1154
|
} catch {
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
|
-
|
|
1157
|
+
U = function(t, v) {
|
|
1158
1158
|
if (v === void 0)
|
|
1159
1159
|
throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
|
|
1160
1160
|
if (!t) {
|
|
1161
|
-
for (var P = arguments.length,
|
|
1162
|
-
|
|
1163
|
-
H.apply(void 0, [v].concat(
|
|
1161
|
+
for (var P = arguments.length, A = Array(P > 2 ? P - 2 : 0), W = 2; W < P; W++)
|
|
1162
|
+
A[W - 2] = arguments[W];
|
|
1163
|
+
H.apply(void 0, [v].concat(A));
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
|
-
var G =
|
|
1167
|
+
var G = U, J = {};
|
|
1168
1168
|
function te(t, v) {
|
|
1169
1169
|
{
|
|
1170
|
-
var P = t.constructor,
|
|
1170
|
+
var P = t.constructor, A = P && (P.displayName || P.name) || "ReactClass", W = A + "." + v;
|
|
1171
1171
|
if (J[W])
|
|
1172
1172
|
return;
|
|
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,
|
|
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, A), J[W] = !0;
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
var ue = {
|
|
@@ -1215,7 +1215,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1215
1215
|
* @param {?string} callerName name of the calling function in the public API.
|
|
1216
1216
|
* @internal
|
|
1217
1217
|
*/
|
|
1218
|
-
enqueueReplaceState: function(t, v, P,
|
|
1218
|
+
enqueueReplaceState: function(t, v, P, A) {
|
|
1219
1219
|
te(t, "replaceState");
|
|
1220
1220
|
},
|
|
1221
1221
|
/**
|
|
@@ -1230,7 +1230,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1230
1230
|
* @param {?string} Name of the calling function in the public API.
|
|
1231
1231
|
* @internal
|
|
1232
1232
|
*/
|
|
1233
|
-
enqueueSetState: function(t, v, P,
|
|
1233
|
+
enqueueSetState: function(t, v, P, A) {
|
|
1234
1234
|
te(t, "setState");
|
|
1235
1235
|
}
|
|
1236
1236
|
};
|
|
@@ -1276,14 +1276,14 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1276
1276
|
* @type {ReactComponent}
|
|
1277
1277
|
*/
|
|
1278
1278
|
current: null
|
|
1279
|
-
},
|
|
1279
|
+
}, q = Object.prototype.hasOwnProperty, $ = {
|
|
1280
1280
|
key: !0,
|
|
1281
1281
|
ref: !0,
|
|
1282
1282
|
__self: !0,
|
|
1283
1283
|
__source: !0
|
|
1284
1284
|
}, p = void 0, g = void 0;
|
|
1285
1285
|
function _(t) {
|
|
1286
|
-
if (
|
|
1286
|
+
if (q.call(t, "ref")) {
|
|
1287
1287
|
var v = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
1288
1288
|
if (v && v.isReactWarning)
|
|
1289
1289
|
return !1;
|
|
@@ -1291,7 +1291,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1291
1291
|
return t.ref !== void 0;
|
|
1292
1292
|
}
|
|
1293
1293
|
function R(t) {
|
|
1294
|
-
if (
|
|
1294
|
+
if (q.call(t, "key")) {
|
|
1295
1295
|
var v = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
1296
1296
|
if (v && v.isReactWarning)
|
|
1297
1297
|
return !1;
|
|
@@ -1316,7 +1316,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1316
1316
|
configurable: !0
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
|
-
var ce = function(t, v, P,
|
|
1319
|
+
var ce = function(t, v, P, A, W, oe, se) {
|
|
1320
1320
|
var re = {
|
|
1321
1321
|
// This tag allows us to uniquely identify this as a React Element
|
|
1322
1322
|
$$typeof: S,
|
|
@@ -1337,7 +1337,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1337
1337
|
configurable: !1,
|
|
1338
1338
|
enumerable: !1,
|
|
1339
1339
|
writable: !1,
|
|
1340
|
-
value:
|
|
1340
|
+
value: A
|
|
1341
1341
|
}), Object.defineProperty(re, "_source", {
|
|
1342
1342
|
configurable: !1,
|
|
1343
1343
|
enumerable: !1,
|
|
@@ -1346,11 +1346,11 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1346
1346
|
}), Object.freeze && (Object.freeze(re.props), Object.freeze(re)), re;
|
|
1347
1347
|
};
|
|
1348
1348
|
function le(t, v, P) {
|
|
1349
|
-
var
|
|
1349
|
+
var A = void 0, W = {}, oe = null, se = null, re = null, ye = null;
|
|
1350
1350
|
if (v != null) {
|
|
1351
1351
|
_(v) && (se = v.ref), R(v) && (oe = "" + v.key), re = v.__self === void 0 ? null : v.__self, ye = v.__source === void 0 ? null : v.__source;
|
|
1352
|
-
for (
|
|
1353
|
-
|
|
1352
|
+
for (A in v)
|
|
1353
|
+
q.call(v, A) && !$.hasOwnProperty(A) && (W[A] = v[A]);
|
|
1354
1354
|
}
|
|
1355
1355
|
var Oe = arguments.length - 2;
|
|
1356
1356
|
if (Oe === 1)
|
|
@@ -1362,8 +1362,8 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1362
1362
|
}
|
|
1363
1363
|
if (t && t.defaultProps) {
|
|
1364
1364
|
var Ie = t.defaultProps;
|
|
1365
|
-
for (
|
|
1366
|
-
W[
|
|
1365
|
+
for (A in Ie)
|
|
1366
|
+
W[A] === void 0 && (W[A] = Ie[A]);
|
|
1367
1367
|
}
|
|
1368
1368
|
if ((oe || se) && (typeof W.$$typeof > "u" || W.$$typeof !== S)) {
|
|
1369
1369
|
var ke = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
@@ -1377,13 +1377,13 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1377
1377
|
}
|
|
1378
1378
|
function xe(t, v, P) {
|
|
1379
1379
|
t == null && u(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", t);
|
|
1380
|
-
var
|
|
1380
|
+
var A = void 0, W = l({}, t.props), oe = t.key, se = t.ref, re = t._self, ye = t._source, Oe = t._owner;
|
|
1381
1381
|
if (v != null) {
|
|
1382
1382
|
_(v) && (se = v.ref, Oe = z.current), R(v) && (oe = "" + v.key);
|
|
1383
1383
|
var Re = void 0;
|
|
1384
1384
|
t.type && t.type.defaultProps && (Re = t.type.defaultProps);
|
|
1385
|
-
for (
|
|
1386
|
-
|
|
1385
|
+
for (A in v)
|
|
1386
|
+
q.call(v, A) && !$.hasOwnProperty(A) && (v[A] === void 0 && Re !== void 0 ? W[A] = Re[A] : W[A] = v[A]);
|
|
1387
1387
|
}
|
|
1388
1388
|
var we = arguments.length - 2;
|
|
1389
1389
|
if (we === 1)
|
|
@@ -1408,33 +1408,33 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1408
1408
|
var v = /[=:]/g, P = {
|
|
1409
1409
|
"=": "=0",
|
|
1410
1410
|
":": "=2"
|
|
1411
|
-
},
|
|
1411
|
+
}, A = ("" + t).replace(v, function(W) {
|
|
1412
1412
|
return P[W];
|
|
1413
1413
|
});
|
|
1414
|
-
return "$" +
|
|
1414
|
+
return "$" + A;
|
|
1415
1415
|
}
|
|
1416
1416
|
var We = !1, Rt = /\/+/g;
|
|
1417
1417
|
function ct(t) {
|
|
1418
1418
|
return ("" + t).replace(Rt, "$&/");
|
|
1419
1419
|
}
|
|
1420
1420
|
var lt = 10, Le = [];
|
|
1421
|
-
function
|
|
1421
|
+
function Fe(t, v, P, A) {
|
|
1422
1422
|
if (Le.length) {
|
|
1423
1423
|
var W = Le.pop();
|
|
1424
|
-
return W.result = t, W.keyPrefix = v, W.func = P, W.context =
|
|
1424
|
+
return W.result = t, W.keyPrefix = v, W.func = P, W.context = A, W.count = 0, W;
|
|
1425
1425
|
} else
|
|
1426
1426
|
return {
|
|
1427
1427
|
result: t,
|
|
1428
1428
|
keyPrefix: v,
|
|
1429
1429
|
func: P,
|
|
1430
|
-
context:
|
|
1430
|
+
context: A,
|
|
1431
1431
|
count: 0
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
1434
|
function ut(t) {
|
|
1435
1435
|
t.result = null, t.keyPrefix = null, t.func = null, t.context = null, t.count = 0, Le.length < lt && Le.push(t);
|
|
1436
1436
|
}
|
|
1437
|
-
function Be(t, v, P,
|
|
1437
|
+
function Be(t, v, P, A) {
|
|
1438
1438
|
var W = typeof t;
|
|
1439
1439
|
(W === "undefined" || W === "boolean") && (t = null);
|
|
1440
1440
|
var oe = !1;
|
|
@@ -1449,13 +1449,13 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1449
1449
|
case "object":
|
|
1450
1450
|
switch (t.$$typeof) {
|
|
1451
1451
|
case S:
|
|
1452
|
-
case
|
|
1452
|
+
case Y:
|
|
1453
1453
|
oe = !0;
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
1456
|
if (oe)
|
|
1457
1457
|
return P(
|
|
1458
|
-
|
|
1458
|
+
A,
|
|
1459
1459
|
t,
|
|
1460
1460
|
// If it's the only child, treat the name as if it was wrapped in an array
|
|
1461
1461
|
// so that it's consistent if the number of children grows.
|
|
@@ -1464,13 +1464,13 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1464
1464
|
var se = void 0, re = void 0, ye = 0, Oe = v === "" ? ze : v + Et;
|
|
1465
1465
|
if (Array.isArray(t))
|
|
1466
1466
|
for (var Re = 0; Re < t.length; Re++)
|
|
1467
|
-
se = t[Re], re = Oe + De(se, Re), ye += Be(se, re, P,
|
|
1467
|
+
se = t[Re], re = Oe + De(se, Re), ye += Be(se, re, P, A);
|
|
1468
1468
|
else {
|
|
1469
|
-
var we =
|
|
1469
|
+
var we = K(t);
|
|
1470
1470
|
if (typeof we == "function") {
|
|
1471
1471
|
we === t.entries && (We || 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", Se.getStackAddendum()), We = !0);
|
|
1472
1472
|
for (var Ie = we.call(t), ke = void 0, er = 0; !(ke = Ie.next()).done; )
|
|
1473
|
-
se = ke.value, re = Oe + De(se, er++), ye += Be(se, re, P,
|
|
1473
|
+
se = ke.value, re = Oe + De(se, er++), ye += Be(se, re, P, A);
|
|
1474
1474
|
} else if (W === "object") {
|
|
1475
1475
|
var Jt = "";
|
|
1476
1476
|
Jt = " If you meant to render a collection of children, use an array instead." + Se.getStackAddendum();
|
|
@@ -1487,35 +1487,35 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1487
1487
|
return typeof t == "object" && t !== null && t.key != null ? Ot(t.key) : v.toString(36);
|
|
1488
1488
|
}
|
|
1489
1489
|
function Tt(t, v, P) {
|
|
1490
|
-
var
|
|
1491
|
-
|
|
1490
|
+
var A = t.func, W = t.context;
|
|
1491
|
+
A.call(W, v, t.count++);
|
|
1492
1492
|
}
|
|
1493
1493
|
function Pt(t, v, P) {
|
|
1494
1494
|
if (t == null)
|
|
1495
1495
|
return t;
|
|
1496
|
-
var
|
|
1497
|
-
Ue(t, Tt,
|
|
1496
|
+
var A = Fe(null, null, v, P);
|
|
1497
|
+
Ue(t, Tt, A), ut(A);
|
|
1498
1498
|
}
|
|
1499
1499
|
function St(t, v, P) {
|
|
1500
|
-
var
|
|
1501
|
-
Array.isArray(re) ? Je(re,
|
|
1500
|
+
var A = t.result, W = t.keyPrefix, oe = t.func, se = t.context, re = oe.call(se, v, t.count++);
|
|
1501
|
+
Array.isArray(re) ? Je(re, A, P, d.thatReturnsArgument) : re != null && (_e(re) && (re = be(
|
|
1502
1502
|
re,
|
|
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
1505
|
W + (re.key && (!v || v.key !== re.key) ? ct(re.key) + "/" : "") + P
|
|
1506
|
-
)),
|
|
1506
|
+
)), A.push(re));
|
|
1507
1507
|
}
|
|
1508
|
-
function Je(t, v, P,
|
|
1508
|
+
function Je(t, v, P, A, W) {
|
|
1509
1509
|
var oe = "";
|
|
1510
1510
|
P != null && (oe = ct(P) + "/");
|
|
1511
|
-
var se =
|
|
1511
|
+
var se = Fe(v, oe, A, W);
|
|
1512
1512
|
Ue(t, St, se), ut(se);
|
|
1513
1513
|
}
|
|
1514
1514
|
function kt(t, v, P) {
|
|
1515
1515
|
if (t == null)
|
|
1516
1516
|
return t;
|
|
1517
|
-
var
|
|
1518
|
-
return Je(t,
|
|
1517
|
+
var A = [];
|
|
1518
|
+
return Je(t, A, null, v, P), A;
|
|
1519
1519
|
}
|
|
1520
1520
|
function Mt(t, v) {
|
|
1521
1521
|
return Ue(t, d.thatReturnsNull, null);
|
|
@@ -1556,7 +1556,7 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1556
1556
|
};
|
|
1557
1557
|
function et(t) {
|
|
1558
1558
|
return typeof t == "string" || typeof t == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1559
|
-
t === L || t ===
|
|
1559
|
+
t === L || t === s || t === I || typeof t == "object" && t !== null && (t.$$typeof === N || t.$$typeof === w || t.$$typeof === y);
|
|
1560
1560
|
}
|
|
1561
1561
|
function Ye(t) {
|
|
1562
1562
|
var v = t.type;
|
|
@@ -1567,11 +1567,11 @@ var n = Wt.exports, Rn = { exports: {} };
|
|
|
1567
1567
|
switch (v) {
|
|
1568
1568
|
case L:
|
|
1569
1569
|
return "ReactFragment";
|
|
1570
|
-
case
|
|
1570
|
+
case Y:
|
|
1571
1571
|
return "ReactPortal";
|
|
1572
1572
|
case V:
|
|
1573
1573
|
return "ReactCall";
|
|
1574
|
-
case
|
|
1574
|
+
case M:
|
|
1575
1575
|
return "ReactReturn";
|
|
1576
1576
|
}
|
|
1577
1577
|
if (typeof v == "object" && v !== null)
|
|
@@ -1607,10 +1607,10 @@ Check the render method of \`` + t + "`.";
|
|
|
1607
1607
|
}
|
|
1608
1608
|
function Nt(t) {
|
|
1609
1609
|
if (t != null && t.__source !== void 0) {
|
|
1610
|
-
var v = t.__source, P = v.fileName.replace(/^.*[\\\/]/, ""),
|
|
1610
|
+
var v = t.__source, P = v.fileName.replace(/^.*[\\\/]/, ""), A = v.lineNumber;
|
|
1611
1611
|
return `
|
|
1612
1612
|
|
|
1613
|
-
Check your code at ` + P + ":" +
|
|
1613
|
+
Check your code at ` + P + ":" + A + ".";
|
|
1614
1614
|
}
|
|
1615
1615
|
return "";
|
|
1616
1616
|
}
|
|
@@ -1631,8 +1631,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1631
1631
|
var P = ht(v);
|
|
1632
1632
|
if (!pt[P]) {
|
|
1633
1633
|
pt[P] = !0;
|
|
1634
|
-
var
|
|
1635
|
-
t && t._owner && t._owner !== z.current && (
|
|
1634
|
+
var A = "";
|
|
1635
|
+
t && t._owner && t._owner !== z.current && (A = " It was passed a child from " + Ye(t._owner) + "."), Te = t, 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, A, Ne()), Te = null;
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
1638
|
}
|
|
@@ -1640,13 +1640,13 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1640
1640
|
if (typeof t == "object") {
|
|
1641
1641
|
if (Array.isArray(t))
|
|
1642
1642
|
for (var P = 0; P < t.length; P++) {
|
|
1643
|
-
var
|
|
1644
|
-
_e(
|
|
1643
|
+
var A = t[P];
|
|
1644
|
+
_e(A) && nt(A, v);
|
|
1645
1645
|
}
|
|
1646
1646
|
else if (_e(t))
|
|
1647
1647
|
t._store && (t._store.validated = !0);
|
|
1648
1648
|
else if (t) {
|
|
1649
|
-
var W =
|
|
1649
|
+
var W = K(t);
|
|
1650
1650
|
if (typeof W == "function" && W !== t.entries)
|
|
1651
1651
|
for (var oe = W.call(t), se = void 0; !(se = oe.next()).done; )
|
|
1652
1652
|
_e(se.value) && nt(se.value, v);
|
|
@@ -1656,24 +1656,24 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1656
1656
|
function mt(t) {
|
|
1657
1657
|
var v = t.type;
|
|
1658
1658
|
if (typeof v == "function") {
|
|
1659
|
-
var P = v.displayName || v.name,
|
|
1660
|
-
|
|
1659
|
+
var P = v.displayName || v.name, A = v.propTypes;
|
|
1660
|
+
A ? (Te = t, m(A, t.props, "prop", P, Ne), Te = null) : v.PropTypes !== void 0 && !qe && (qe = !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
|
-
function
|
|
1663
|
+
function At(t) {
|
|
1664
1664
|
Te = t;
|
|
1665
1665
|
for (var v = Object.keys(t.props), P = 0; P < v.length; P++) {
|
|
1666
|
-
var
|
|
1667
|
-
if (
|
|
1668
|
-
h(!1, "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",
|
|
1666
|
+
var A = v[P];
|
|
1667
|
+
if (A !== "children" && A !== "key") {
|
|
1668
|
+
h(!1, "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s", A, Ne());
|
|
1669
1669
|
break;
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
t.ref !== null && h(!1, "Invalid attribute `ref` supplied to `React.Fragment`.%s", Ne()), Te = null;
|
|
1673
1673
|
}
|
|
1674
1674
|
function yt(t, v, P) {
|
|
1675
|
-
var
|
|
1676
|
-
if (!
|
|
1675
|
+
var A = et(t);
|
|
1676
|
+
if (!A) {
|
|
1677
1677
|
var W = "";
|
|
1678
1678
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (W += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1679
1679
|
var oe = Nt(v);
|
|
@@ -1684,10 +1684,10 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1684
1684
|
var re = le.apply(this, arguments);
|
|
1685
1685
|
if (re == null)
|
|
1686
1686
|
return re;
|
|
1687
|
-
if (
|
|
1687
|
+
if (A)
|
|
1688
1688
|
for (var ye = 2; ye < arguments.length; ye++)
|
|
1689
1689
|
vt(arguments[ye], t);
|
|
1690
|
-
return t === L ?
|
|
1690
|
+
return t === L ? At(re) : mt(re), re;
|
|
1691
1691
|
}
|
|
1692
1692
|
function c(t) {
|
|
1693
1693
|
var v = yt.bind(null, t);
|
|
@@ -1700,10 +1700,10 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}), v;
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1704
|
-
for (var
|
|
1705
|
-
vt(arguments[W],
|
|
1706
|
-
return mt(
|
|
1703
|
+
function F(t, v, P) {
|
|
1704
|
+
for (var A = xe.apply(this, arguments), W = 2; W < arguments.length; W++)
|
|
1705
|
+
vt(arguments[W], A.type);
|
|
1706
|
+
return mt(A), A;
|
|
1707
1707
|
}
|
|
1708
1708
|
var X = {
|
|
1709
1709
|
Children: {
|
|
@@ -1720,9 +1720,9 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1720
1720
|
forwardRef: He,
|
|
1721
1721
|
Fragment: L,
|
|
1722
1722
|
StrictMode: I,
|
|
1723
|
-
unstable_AsyncMode:
|
|
1723
|
+
unstable_AsyncMode: s,
|
|
1724
1724
|
createElement: yt,
|
|
1725
|
-
cloneElement:
|
|
1725
|
+
cloneElement: F,
|
|
1726
1726
|
createFactory: c,
|
|
1727
1727
|
isValidElement: _e,
|
|
1728
1728
|
version: j,
|
|
@@ -1742,46 +1742,46 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1742
1742
|
var Q = Object.freeze({
|
|
1743
1743
|
default: X
|
|
1744
1744
|
}), fe = Q && X || Q, me = fe.default ? fe.default : fe;
|
|
1745
|
-
|
|
1745
|
+
i.exports = me;
|
|
1746
1746
|
}();
|
|
1747
1747
|
},
|
|
1748
1748
|
/* 11 */
|
|
1749
1749
|
/***/
|
|
1750
|
-
function(
|
|
1750
|
+
function(i, r, o) {
|
|
1751
1751
|
if (process.env.NODE_ENV !== "production") {
|
|
1752
1752
|
var l = typeof Symbol == "function" && Symbol.for && Symbol.for("react.element") || 60103, u = function(h) {
|
|
1753
1753
|
return typeof h == "object" && h !== null && h.$$typeof === l;
|
|
1754
1754
|
}, f = !0;
|
|
1755
|
-
|
|
1755
|
+
i.exports = o(12)(u, f);
|
|
1756
1756
|
} else
|
|
1757
|
-
|
|
1757
|
+
i.exports = o(13)();
|
|
1758
1758
|
},
|
|
1759
1759
|
/* 12 */
|
|
1760
1760
|
/***/
|
|
1761
|
-
function(
|
|
1761
|
+
function(i, r, o) {
|
|
1762
1762
|
var l = o(1), u = o(0), f = o(3), h = o(2), d = o(4), m = o(6);
|
|
1763
|
-
|
|
1763
|
+
i.exports = function(j, x) {
|
|
1764
1764
|
var S = typeof Symbol == "function" && Symbol.iterator, V = "@@iterator";
|
|
1765
|
-
function
|
|
1765
|
+
function M(b) {
|
|
1766
1766
|
var C = b && (S && b[S] || b[V]);
|
|
1767
1767
|
if (typeof C == "function")
|
|
1768
1768
|
return C;
|
|
1769
1769
|
}
|
|
1770
|
-
var
|
|
1771
|
-
array:
|
|
1772
|
-
bool:
|
|
1773
|
-
func:
|
|
1774
|
-
number:
|
|
1775
|
-
object:
|
|
1776
|
-
string:
|
|
1777
|
-
symbol:
|
|
1770
|
+
var Y = "<<anonymous>>", L = {
|
|
1771
|
+
array: s("array"),
|
|
1772
|
+
bool: s("boolean"),
|
|
1773
|
+
func: s("function"),
|
|
1774
|
+
number: s("number"),
|
|
1775
|
+
object: s("object"),
|
|
1776
|
+
string: s("string"),
|
|
1777
|
+
symbol: s("symbol"),
|
|
1778
1778
|
any: y(),
|
|
1779
1779
|
arrayOf: O,
|
|
1780
|
-
element:
|
|
1781
|
-
instanceOf:
|
|
1780
|
+
element: k(),
|
|
1781
|
+
instanceOf: K,
|
|
1782
1782
|
node: J(),
|
|
1783
1783
|
objectOf: H,
|
|
1784
|
-
oneOf:
|
|
1784
|
+
oneOf: U,
|
|
1785
1785
|
oneOfType: G,
|
|
1786
1786
|
shape: te,
|
|
1787
1787
|
exact: ue
|
|
@@ -1796,8 +1796,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1796
1796
|
function w(b) {
|
|
1797
1797
|
if (process.env.NODE_ENV !== "production")
|
|
1798
1798
|
var C = {}, z = 0;
|
|
1799
|
-
function
|
|
1800
|
-
if (R = R ||
|
|
1799
|
+
function q(p, g, _, R, B, E, ce) {
|
|
1800
|
+
if (R = R || Y, E = E || _, ce !== d) {
|
|
1801
1801
|
if (x)
|
|
1802
1802
|
u(
|
|
1803
1803
|
!1,
|
|
@@ -1816,12 +1816,12 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1816
1816
|
}
|
|
1817
1817
|
return g[_] == null ? p ? g[_] === null ? new N("The " + B + " `" + E + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new N("The " + B + " `" + E + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : b(g, _, R, B, E);
|
|
1818
1818
|
}
|
|
1819
|
-
var $ =
|
|
1820
|
-
return $.isRequired =
|
|
1819
|
+
var $ = q.bind(null, !1);
|
|
1820
|
+
return $.isRequired = q.bind(null, !0), $;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1823
|
-
function C(z,
|
|
1824
|
-
var R = z[
|
|
1822
|
+
function s(b) {
|
|
1823
|
+
function C(z, q, $, p, g, _) {
|
|
1824
|
+
var R = z[q], B = de(R);
|
|
1825
1825
|
if (B !== b) {
|
|
1826
1826
|
var E = ee(R);
|
|
1827
1827
|
return new N("Invalid " + p + " `" + g + "` of type " + ("`" + E + "` supplied to `" + $ + "`, expected ") + ("`" + b + "`."));
|
|
@@ -1834,10 +1834,10 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1834
1834
|
return w(l.thatReturnsNull);
|
|
1835
1835
|
}
|
|
1836
1836
|
function O(b) {
|
|
1837
|
-
function C(z,
|
|
1837
|
+
function C(z, q, $, p, g) {
|
|
1838
1838
|
if (typeof b != "function")
|
|
1839
1839
|
return new N("Property `" + g + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
1840
|
-
var _ = z[
|
|
1840
|
+
var _ = z[q];
|
|
1841
1841
|
if (!Array.isArray(_)) {
|
|
1842
1842
|
var R = de(_);
|
|
1843
1843
|
return new N("Invalid " + p + " `" + g + "` of type " + ("`" + R + "` supplied to `" + $ + "`, expected an array."));
|
|
@@ -1851,32 +1851,32 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return w(C);
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1855
|
-
function b(C, z,
|
|
1854
|
+
function k() {
|
|
1855
|
+
function b(C, z, q, $, p) {
|
|
1856
1856
|
var g = C[z];
|
|
1857
1857
|
if (!j(g)) {
|
|
1858
1858
|
var _ = de(g);
|
|
1859
|
-
return new N("Invalid " + $ + " `" + p + "` of type " + ("`" + _ + "` supplied to `" +
|
|
1859
|
+
return new N("Invalid " + $ + " `" + p + "` of type " + ("`" + _ + "` supplied to `" + q + "`, expected a single ReactElement."));
|
|
1860
1860
|
}
|
|
1861
1861
|
return null;
|
|
1862
1862
|
}
|
|
1863
1863
|
return w(b);
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1866
|
-
function C(z,
|
|
1867
|
-
if (!(z[
|
|
1868
|
-
var _ = b.name ||
|
|
1865
|
+
function K(b) {
|
|
1866
|
+
function C(z, q, $, p, g) {
|
|
1867
|
+
if (!(z[q] instanceof b)) {
|
|
1868
|
+
var _ = b.name || Y, R = D(z[q]);
|
|
1869
1869
|
return new N("Invalid " + p + " `" + g + "` of type " + ("`" + R + "` supplied to `" + $ + "`, expected ") + ("instance of `" + _ + "`."));
|
|
1870
1870
|
}
|
|
1871
1871
|
return null;
|
|
1872
1872
|
}
|
|
1873
1873
|
return w(C);
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1875
|
+
function U(b) {
|
|
1876
1876
|
if (!Array.isArray(b))
|
|
1877
1877
|
return process.env.NODE_ENV !== "production" && f(!1, "Invalid argument supplied to oneOf, expected an instance of array."), l.thatReturnsNull;
|
|
1878
|
-
function C(z,
|
|
1879
|
-
for (var _ = z[
|
|
1878
|
+
function C(z, q, $, p, g) {
|
|
1879
|
+
for (var _ = z[q], R = 0; R < b.length; R++)
|
|
1880
1880
|
if (I(_, b[R]))
|
|
1881
1881
|
return null;
|
|
1882
1882
|
var B = JSON.stringify(b);
|
|
@@ -1885,10 +1885,10 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1885
1885
|
return w(C);
|
|
1886
1886
|
}
|
|
1887
1887
|
function H(b) {
|
|
1888
|
-
function C(z,
|
|
1888
|
+
function C(z, q, $, p, g) {
|
|
1889
1889
|
if (typeof b != "function")
|
|
1890
1890
|
return new N("Property `" + g + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
1891
|
-
var _ = z[
|
|
1891
|
+
var _ = z[q], R = de(_);
|
|
1892
1892
|
if (R !== "object")
|
|
1893
1893
|
return new N("Invalid " + p + " `" + g + "` of type " + ("`" + R + "` supplied to `" + $ + "`, expected an object."));
|
|
1894
1894
|
for (var B in _)
|
|
@@ -1914,7 +1914,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1914
1914
|
C
|
|
1915
1915
|
), l.thatReturnsNull;
|
|
1916
1916
|
}
|
|
1917
|
-
function
|
|
1917
|
+
function q($, p, g, _, R) {
|
|
1918
1918
|
for (var B = 0; B < b.length; B++) {
|
|
1919
1919
|
var E = b[B];
|
|
1920
1920
|
if (E($, p, g, _, R, d) == null)
|
|
@@ -1922,17 +1922,17 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1922
1922
|
}
|
|
1923
1923
|
return new N("Invalid " + _ + " `" + R + "` supplied to " + ("`" + g + "`."));
|
|
1924
1924
|
}
|
|
1925
|
-
return w(
|
|
1925
|
+
return w(q);
|
|
1926
1926
|
}
|
|
1927
1927
|
function J() {
|
|
1928
|
-
function b(C, z,
|
|
1929
|
-
return ne(C[z]) ? null : new N("Invalid " + $ + " `" + p + "` supplied to " + ("`" +
|
|
1928
|
+
function b(C, z, q, $, p) {
|
|
1929
|
+
return ne(C[z]) ? null : new N("Invalid " + $ + " `" + p + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
|
1930
1930
|
}
|
|
1931
1931
|
return w(b);
|
|
1932
1932
|
}
|
|
1933
1933
|
function te(b) {
|
|
1934
|
-
function C(z,
|
|
1935
|
-
var _ = z[
|
|
1934
|
+
function C(z, q, $, p, g) {
|
|
1935
|
+
var _ = z[q], R = de(_);
|
|
1936
1936
|
if (R !== "object")
|
|
1937
1937
|
return new N("Invalid " + p + " `" + g + "` of type `" + R + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1938
1938
|
for (var B in b) {
|
|
@@ -1948,16 +1948,16 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1948
1948
|
return w(C);
|
|
1949
1949
|
}
|
|
1950
1950
|
function ue(b) {
|
|
1951
|
-
function C(z,
|
|
1952
|
-
var _ = z[
|
|
1951
|
+
function C(z, q, $, p, g) {
|
|
1952
|
+
var _ = z[q], R = de(_);
|
|
1953
1953
|
if (R !== "object")
|
|
1954
1954
|
return new N("Invalid " + p + " `" + g + "` of type `" + R + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1955
|
-
var B = h({}, z[
|
|
1955
|
+
var B = h({}, z[q], b);
|
|
1956
1956
|
for (var E in B) {
|
|
1957
1957
|
var ce = b[E];
|
|
1958
1958
|
if (!ce)
|
|
1959
1959
|
return new N(
|
|
1960
|
-
"Invalid " + p + " `" + g + "` key `" + E + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(z[
|
|
1960
|
+
"Invalid " + p + " `" + g + "` key `" + E + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(z[q], null, " ") + `
|
|
1961
1961
|
Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
1962
1962
|
);
|
|
1963
1963
|
var le = ce(_, E, $, p, g + "." + E, d);
|
|
@@ -1981,16 +1981,16 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
1981
1981
|
return b.every(ne);
|
|
1982
1982
|
if (b === null || j(b))
|
|
1983
1983
|
return !0;
|
|
1984
|
-
var C =
|
|
1984
|
+
var C = M(b);
|
|
1985
1985
|
if (C) {
|
|
1986
|
-
var z = C.call(b),
|
|
1986
|
+
var z = C.call(b), q;
|
|
1987
1987
|
if (C !== b.entries) {
|
|
1988
|
-
for (; !(
|
|
1989
|
-
if (!ne(
|
|
1988
|
+
for (; !(q = z.next()).done; )
|
|
1989
|
+
if (!ne(q.value))
|
|
1990
1990
|
return !1;
|
|
1991
1991
|
} else
|
|
1992
|
-
for (; !(
|
|
1993
|
-
var $ =
|
|
1992
|
+
for (; !(q = z.next()).done; ) {
|
|
1993
|
+
var $ = q.value;
|
|
1994
1994
|
if ($ && !ne($[1]))
|
|
1995
1995
|
return !1;
|
|
1996
1996
|
}
|
|
@@ -2035,18 +2035,18 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
2037
|
function D(b) {
|
|
2038
|
-
return !b.constructor || !b.constructor.name ?
|
|
2038
|
+
return !b.constructor || !b.constructor.name ? Y : b.constructor.name;
|
|
2039
2039
|
}
|
|
2040
2040
|
return L.checkPropTypes = m, L.PropTypes = L, L;
|
|
2041
2041
|
};
|
|
2042
2042
|
},
|
|
2043
2043
|
/* 13 */
|
|
2044
2044
|
/***/
|
|
2045
|
-
function(
|
|
2045
|
+
function(i, r, o) {
|
|
2046
2046
|
var l = o(1), u = o(0), f = o(4);
|
|
2047
|
-
|
|
2048
|
-
function h(j, x, S, V,
|
|
2049
|
-
|
|
2047
|
+
i.exports = function() {
|
|
2048
|
+
function h(j, x, S, V, M, Y) {
|
|
2049
|
+
Y !== f && u(
|
|
2050
2050
|
!1,
|
|
2051
2051
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2052
2052
|
);
|
|
@@ -2079,7 +2079,7 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2079
2079
|
},
|
|
2080
2080
|
/* 14 */
|
|
2081
2081
|
/***/
|
|
2082
|
-
function(
|
|
2082
|
+
function(i, r, o) {
|
|
2083
2083
|
Object.defineProperty(r, "__esModule", {
|
|
2084
2084
|
value: !0
|
|
2085
2085
|
});
|
|
@@ -2146,20 +2146,20 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2146
2146
|
return V(S).default;
|
|
2147
2147
|
}
|
|
2148
2148
|
});
|
|
2149
|
-
function V(
|
|
2150
|
-
return
|
|
2149
|
+
function V(M) {
|
|
2150
|
+
return M && M.__esModule ? M : { default: M };
|
|
2151
2151
|
}
|
|
2152
2152
|
},
|
|
2153
2153
|
/* 15 */
|
|
2154
2154
|
/***/
|
|
2155
|
-
function(
|
|
2156
|
-
|
|
2155
|
+
function(i, r) {
|
|
2156
|
+
i.exports = `<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
|
|
2157
2157
|
`;
|
|
2158
2158
|
},
|
|
2159
2159
|
/* 16 */
|
|
2160
2160
|
/***/
|
|
2161
|
-
function(
|
|
2162
|
-
|
|
2161
|
+
function(i, r) {
|
|
2162
|
+
i.exports = `<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2163
2163
|
<path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
|
|
2164
2164
|
<animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
2165
2165
|
</path>
|
|
@@ -2177,8 +2177,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2177
2177
|
},
|
|
2178
2178
|
/* 17 */
|
|
2179
2179
|
/***/
|
|
2180
|
-
function(
|
|
2181
|
-
|
|
2180
|
+
function(i, r) {
|
|
2181
|
+
i.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2182
2182
|
<path transform="translate(2)" d="M0 12 V20 H4 V12z">
|
|
2183
2183
|
<animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
|
|
2184
2184
|
</path>
|
|
@@ -2199,8 +2199,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2199
2199
|
},
|
|
2200
2200
|
/* 18 */
|
|
2201
2201
|
/***/
|
|
2202
|
-
function(
|
|
2203
|
-
|
|
2202
|
+
function(i, r) {
|
|
2203
|
+
i.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2204
2204
|
<circle transform="translate(8 0)" cx="0" cy="16" r="0">
|
|
2205
2205
|
<animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"
|
|
2206
2206
|
keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
@@ -2218,8 +2218,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2218
2218
|
},
|
|
2219
2219
|
/* 19 */
|
|
2220
2220
|
/***/
|
|
2221
|
-
function(
|
|
2222
|
-
|
|
2221
|
+
function(i, r) {
|
|
2222
|
+
i.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2223
2223
|
<path transform="translate(-8 0)" d="M0 12 V20 H8 V12z">
|
|
2224
2224
|
<animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
|
|
2225
2225
|
</path>
|
|
@@ -2237,8 +2237,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2237
2237
|
},
|
|
2238
2238
|
/* 20 */
|
|
2239
2239
|
/***/
|
|
2240
|
-
function(
|
|
2241
|
-
|
|
2240
|
+
function(i, r) {
|
|
2241
|
+
i.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2242
2242
|
<path transform="translate(0 0)" d="M0 12 V20 H4 V12z">
|
|
2243
2243
|
<animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
2244
2244
|
</path>
|
|
@@ -2253,8 +2253,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2253
2253
|
},
|
|
2254
2254
|
/* 21 */
|
|
2255
2255
|
/***/
|
|
2256
|
-
function(
|
|
2257
|
-
|
|
2256
|
+
function(i, r) {
|
|
2257
|
+
i.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2258
2258
|
<path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
|
|
2259
2259
|
<path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
|
|
2260
2260
|
<animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />
|
|
@@ -2264,8 +2264,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2264
2264
|
},
|
|
2265
2265
|
/* 22 */
|
|
2266
2266
|
/***/
|
|
2267
|
-
function(
|
|
2268
|
-
|
|
2267
|
+
function(i, r) {
|
|
2268
|
+
i.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2269
2269
|
<circle cx="16" cy="3" r="0">
|
|
2270
2270
|
<animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
|
|
2271
2271
|
</circle>
|
|
@@ -2298,8 +2298,8 @@ Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
|
|
|
2298
2298
|
},
|
|
2299
2299
|
/* 23 */
|
|
2300
2300
|
/***/
|
|
2301
|
-
function(
|
|
2302
|
-
|
|
2301
|
+
function(i, r) {
|
|
2302
|
+
i.exports = `<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2303
2303
|
<path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
|
|
2304
2304
|
<animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>
|
|
2305
2305
|
</path>
|
|
@@ -2346,57 +2346,57 @@ var Sn = {
|
|
|
2346
2346
|
}, tn = Me.createContext && /* @__PURE__ */ Me.createContext(Sn), or = ["attr", "size", "title"];
|
|
2347
2347
|
function ir(e, a) {
|
|
2348
2348
|
if (e == null) return {};
|
|
2349
|
-
var
|
|
2349
|
+
var i = sr(e, a), r, o;
|
|
2350
2350
|
if (Object.getOwnPropertySymbols) {
|
|
2351
2351
|
var l = Object.getOwnPropertySymbols(e);
|
|
2352
2352
|
for (o = 0; o < l.length; o++)
|
|
2353
|
-
r = l[o], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (
|
|
2353
|
+
r = l[o], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
|
|
2354
2354
|
}
|
|
2355
|
-
return
|
|
2355
|
+
return i;
|
|
2356
2356
|
}
|
|
2357
2357
|
function sr(e, a) {
|
|
2358
2358
|
if (e == null) return {};
|
|
2359
|
-
var
|
|
2359
|
+
var i = {};
|
|
2360
2360
|
for (var r in e)
|
|
2361
2361
|
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
2362
2362
|
if (a.indexOf(r) >= 0) continue;
|
|
2363
|
-
|
|
2363
|
+
i[r] = e[r];
|
|
2364
2364
|
}
|
|
2365
|
-
return
|
|
2365
|
+
return i;
|
|
2366
2366
|
}
|
|
2367
2367
|
function bt() {
|
|
2368
2368
|
return bt = Object.assign ? Object.assign.bind() : function(e) {
|
|
2369
2369
|
for (var a = 1; a < arguments.length; a++) {
|
|
2370
|
-
var
|
|
2371
|
-
for (var r in
|
|
2372
|
-
Object.prototype.hasOwnProperty.call(
|
|
2370
|
+
var i = arguments[a];
|
|
2371
|
+
for (var r in i)
|
|
2372
|
+
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
2373
2373
|
}
|
|
2374
2374
|
return e;
|
|
2375
2375
|
}, bt.apply(this, arguments);
|
|
2376
2376
|
}
|
|
2377
2377
|
function nn(e, a) {
|
|
2378
|
-
var
|
|
2378
|
+
var i = Object.keys(e);
|
|
2379
2379
|
if (Object.getOwnPropertySymbols) {
|
|
2380
2380
|
var r = Object.getOwnPropertySymbols(e);
|
|
2381
2381
|
a && (r = r.filter(function(o) {
|
|
2382
2382
|
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
2383
|
-
})),
|
|
2383
|
+
})), i.push.apply(i, r);
|
|
2384
2384
|
}
|
|
2385
|
-
return
|
|
2385
|
+
return i;
|
|
2386
2386
|
}
|
|
2387
2387
|
function xt(e) {
|
|
2388
2388
|
for (var a = 1; a < arguments.length; a++) {
|
|
2389
|
-
var
|
|
2390
|
-
a % 2 ? nn(Object(
|
|
2391
|
-
cr(e, r,
|
|
2392
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
2393
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(
|
|
2389
|
+
var i = arguments[a] != null ? arguments[a] : {};
|
|
2390
|
+
a % 2 ? nn(Object(i), !0).forEach(function(r) {
|
|
2391
|
+
cr(e, r, i[r]);
|
|
2392
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : nn(Object(i)).forEach(function(r) {
|
|
2393
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(i, r));
|
|
2394
2394
|
});
|
|
2395
2395
|
}
|
|
2396
2396
|
return e;
|
|
2397
2397
|
}
|
|
2398
|
-
function cr(e, a,
|
|
2399
|
-
return a = lr(a), a in e ? Object.defineProperty(e, a, { value:
|
|
2398
|
+
function cr(e, a, i) {
|
|
2399
|
+
return a = lr(a), a in e ? Object.defineProperty(e, a, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = i, e;
|
|
2400
2400
|
}
|
|
2401
2401
|
function lr(e) {
|
|
2402
2402
|
var a = ur(e, "string");
|
|
@@ -2404,17 +2404,17 @@ function lr(e) {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
function ur(e, a) {
|
|
2406
2406
|
if (typeof e != "object" || !e) return e;
|
|
2407
|
-
var
|
|
2408
|
-
if (
|
|
2409
|
-
var r =
|
|
2407
|
+
var i = e[Symbol.toPrimitive];
|
|
2408
|
+
if (i !== void 0) {
|
|
2409
|
+
var r = i.call(e, a || "default");
|
|
2410
2410
|
if (typeof r != "object") return r;
|
|
2411
2411
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2412
2412
|
}
|
|
2413
2413
|
return (a === "string" ? String : Number)(e);
|
|
2414
2414
|
}
|
|
2415
2415
|
function kn(e) {
|
|
2416
|
-
return e && e.map((a,
|
|
2417
|
-
key:
|
|
2416
|
+
return e && e.map((a, i) => /* @__PURE__ */ Me.createElement(a.tag, xt({
|
|
2417
|
+
key: i
|
|
2418
2418
|
}, a.attr), kn(a.child)));
|
|
2419
2419
|
}
|
|
2420
2420
|
function ie(e) {
|
|
@@ -2423,27 +2423,27 @@ function ie(e) {
|
|
|
2423
2423
|
}, a), kn(e.child));
|
|
2424
2424
|
}
|
|
2425
2425
|
function fr(e) {
|
|
2426
|
-
var a = (
|
|
2426
|
+
var a = (i) => {
|
|
2427
2427
|
var {
|
|
2428
2428
|
attr: r,
|
|
2429
2429
|
size: o,
|
|
2430
2430
|
title: l
|
|
2431
|
-
} = e, u = ir(e, or), f = o ||
|
|
2432
|
-
return
|
|
2431
|
+
} = e, u = ir(e, or), f = o || i.size || "1em", h;
|
|
2432
|
+
return i.className && (h = i.className), e.className && (h = (h ? h + " " : "") + e.className), /* @__PURE__ */ Me.createElement("svg", bt({
|
|
2433
2433
|
stroke: "currentColor",
|
|
2434
2434
|
fill: "currentColor",
|
|
2435
2435
|
strokeWidth: "0"
|
|
2436
|
-
},
|
|
2436
|
+
}, i.attr, r, u, {
|
|
2437
2437
|
className: h,
|
|
2438
2438
|
style: xt(xt({
|
|
2439
|
-
color: e.color ||
|
|
2440
|
-
},
|
|
2439
|
+
color: e.color || i.color
|
|
2440
|
+
}, i.style), e.style),
|
|
2441
2441
|
height: f,
|
|
2442
2442
|
width: f,
|
|
2443
2443
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2444
2444
|
}), l && /* @__PURE__ */ Me.createElement("title", null, l), e.children);
|
|
2445
2445
|
};
|
|
2446
|
-
return tn !== void 0 ? /* @__PURE__ */ Me.createElement(tn.Consumer, null, (
|
|
2446
|
+
return tn !== void 0 ? /* @__PURE__ */ Me.createElement(tn.Consumer, null, (i) => a(i)) : a(Sn);
|
|
2447
2447
|
}
|
|
2448
2448
|
function Mn(e) {
|
|
2449
2449
|
return ie({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z" }, child: [] }] })(e);
|
|
@@ -2454,10 +2454,10 @@ function _n(e) {
|
|
|
2454
2454
|
function Nn(e) {
|
|
2455
2455
|
return ie({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z" }, child: [] }] })(e);
|
|
2456
2456
|
}
|
|
2457
|
-
function
|
|
2457
|
+
function An(e) {
|
|
2458
2458
|
return ie({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0" }, child: [] }] })(e);
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function Fn(e) {
|
|
2461
2461
|
return ie({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "23 4 23 10 17 10" }, child: [] }, { tag: "polyline", attr: { points: "1 20 1 14 7 14" }, child: [] }, { tag: "path", attr: { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" }, child: [] }] })(e);
|
|
2462
2462
|
}
|
|
2463
2463
|
function dr(e) {
|
|
@@ -2508,7 +2508,7 @@ function Ce(e) {
|
|
|
2508
2508
|
function an(e) {
|
|
2509
2509
|
return ie({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z" }, child: [] }] })(e);
|
|
2510
2510
|
}
|
|
2511
|
-
function
|
|
2511
|
+
function Ft(e) {
|
|
2512
2512
|
return ie({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z" }, child: [] }] })(e);
|
|
2513
2513
|
}
|
|
2514
2514
|
function xr(e) {
|
|
@@ -2540,21 +2540,21 @@ function Bt(e) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
const st = (e = () => {
|
|
2542
2542
|
}) => {
|
|
2543
|
-
const [a,
|
|
2543
|
+
const [a, i] = Z(!1), r = Pe(null), o = (l) => {
|
|
2544
2544
|
var u;
|
|
2545
|
-
(u = r.current) != null && u.contains(l.target) ?
|
|
2545
|
+
(u = r.current) != null && u.contains(l.target) ? i(!1) : (i(!0), e(l, r));
|
|
2546
2546
|
};
|
|
2547
2547
|
return ge(() => (document.addEventListener("click", o, !0), document.addEventListener("mousedown", o, !0), () => {
|
|
2548
2548
|
document.removeEventListener("click", o, !0), document.removeEventListener("mousedown", o, !0);
|
|
2549
|
-
}), []), { ref: r, isClicked: a, setIsClicked:
|
|
2549
|
+
}), []), { ref: r, isClicked: a, setIsClicked: i };
|
|
2550
2550
|
}, Dn = ot(), Er = ({ children: e, layout: a }) => {
|
|
2551
|
-
const [
|
|
2551
|
+
const [i, r] = Z(() => o(a));
|
|
2552
2552
|
function o(l) {
|
|
2553
2553
|
return ["list", "grid"].includes(l) ? l : "grid";
|
|
2554
2554
|
}
|
|
2555
|
-
return /* @__PURE__ */ n.jsx(Dn.Provider, { value: { activeLayout:
|
|
2555
|
+
return /* @__PURE__ */ n.jsx(Dn.Provider, { value: { activeLayout: i, setActiveLayout: r }, children: e });
|
|
2556
2556
|
}, $e = () => it(Dn), Or = ({ setShowToggleViewMenu: e, onLayoutChange: a }) => {
|
|
2557
|
-
const
|
|
2557
|
+
const i = st(() => {
|
|
2558
2558
|
e(!1);
|
|
2559
2559
|
}), { activeLayout: r, setActiveLayout: o } = $e(), l = [
|
|
2560
2560
|
{
|
|
@@ -2570,7 +2570,7 @@ const st = (e = () => {
|
|
|
2570
2570
|
], u = (f) => {
|
|
2571
2571
|
o(f), a(f), e(!1);
|
|
2572
2572
|
};
|
|
2573
|
-
return /* @__PURE__ */ n.jsx("div", { ref:
|
|
2573
|
+
return /* @__PURE__ */ n.jsx("div", { ref: i.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ n.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: l.map((f) => /* @__PURE__ */ n.jsxs(
|
|
2574
2574
|
"li",
|
|
2575
2575
|
{
|
|
2576
2576
|
role: "menuitem",
|
|
@@ -2584,15 +2584,15 @@ const st = (e = () => {
|
|
|
2584
2584
|
},
|
|
2585
2585
|
f.key
|
|
2586
2586
|
)) }) });
|
|
2587
|
-
}, In = ot(), Rr = ({ children: e, filesData: a, onError:
|
|
2587
|
+
}, In = ot(), Rr = ({ children: e, filesData: a, onError: i }) => {
|
|
2588
2588
|
const [r, o] = Z([]);
|
|
2589
2589
|
ge(() => {
|
|
2590
2590
|
o(a);
|
|
2591
2591
|
}, [a]);
|
|
2592
2592
|
const l = (u) => u.isDirectory ? r.filter((f) => f.path === `${u.path}/${f.name}`) : [];
|
|
2593
|
-
return /* @__PURE__ */ n.jsx(In.Provider, { value: { files: r, setFiles: o, getChildren: l, onError:
|
|
2593
|
+
return /* @__PURE__ */ n.jsx(In.Provider, { value: { files: r, setFiles: o, getChildren: l, onError: i }, children: e });
|
|
2594
2594
|
}, Ct = () => it(In), $n = ot(), Tr = ({ children: e }) => {
|
|
2595
|
-
const [a,
|
|
2595
|
+
const [a, i] = Z(""), [r, o] = Z(null), [l, u] = Z([]), { files: f } = Ct();
|
|
2596
2596
|
return ge(() => {
|
|
2597
2597
|
Array.isArray(f) && f.length > 0 && (u(() => f.filter((h) => h.path === `${a}/${h.name}`)), o(() => f.find((h) => h.path === a) ?? null));
|
|
2598
2598
|
}, [f, a]), /* @__PURE__ */ n.jsx(
|
|
@@ -2600,7 +2600,7 @@ const st = (e = () => {
|
|
|
2600
2600
|
{
|
|
2601
2601
|
value: {
|
|
2602
2602
|
currentPath: a,
|
|
2603
|
-
setCurrentPath:
|
|
2603
|
+
setCurrentPath: i,
|
|
2604
2604
|
currentFolder: r,
|
|
2605
2605
|
setCurrentFolder: o,
|
|
2606
2606
|
currentPathFiles: l,
|
|
@@ -2609,10 +2609,10 @@ const st = (e = () => {
|
|
|
2609
2609
|
children: e
|
|
2610
2610
|
}
|
|
2611
2611
|
);
|
|
2612
|
-
},
|
|
2612
|
+
}, Ae = () => it($n), Ge = (e, a, ...i) => {
|
|
2613
2613
|
try {
|
|
2614
2614
|
if (typeof e == "function")
|
|
2615
|
-
e(...
|
|
2615
|
+
e(...i);
|
|
2616
2616
|
else
|
|
2617
2617
|
throw new Error(
|
|
2618
2618
|
`<FileManager /> Missing prop: Callback function "${a}" is required.`
|
|
@@ -2621,31 +2621,31 @@ const st = (e = () => {
|
|
|
2621
2621
|
console.error(r.message);
|
|
2622
2622
|
}
|
|
2623
2623
|
}, Wn = ot(), Pr = ({ children: e, onDownload: a }) => {
|
|
2624
|
-
const [
|
|
2625
|
-
Ge(a, "onDownload",
|
|
2624
|
+
const [i, r] = Z([]), o = () => {
|
|
2625
|
+
Ge(a, "onDownload", i);
|
|
2626
2626
|
};
|
|
2627
|
-
return /* @__PURE__ */ n.jsx(Wn.Provider, { value: { selectedFiles:
|
|
2627
|
+
return /* @__PURE__ */ n.jsx(Wn.Provider, { value: { selectedFiles: i, setSelectedFiles: r, handleDownload: o }, children: e });
|
|
2628
2628
|
}, Ve = () => it(Wn), Bn = ot(), Sr = ({ children: e, onPaste: a }) => {
|
|
2629
|
-
const [
|
|
2629
|
+
const [i, r] = Z(null), { selectedFiles: o, setSelectedFiles: l } = Ve(), u = (h) => {
|
|
2630
2630
|
r({
|
|
2631
2631
|
files: o,
|
|
2632
2632
|
isMoving: h
|
|
2633
2633
|
});
|
|
2634
2634
|
}, f = (h) => {
|
|
2635
2635
|
if (h && !h.isDirectory) return;
|
|
2636
|
-
const d =
|
|
2637
|
-
Ge(a, "onPaste", d, h, m),
|
|
2636
|
+
const d = i.files, m = i.isMoving ? "move" : "copy";
|
|
2637
|
+
Ge(a, "onPaste", d, h, m), i.isMoving && r(null), l([]);
|
|
2638
2638
|
};
|
|
2639
|
-
return /* @__PURE__ */ n.jsx(Bn.Provider, { value: { clipBoard:
|
|
2639
|
+
return /* @__PURE__ */ n.jsx(Bn.Provider, { value: { clipBoard: i, setClipBoard: r, handleCutCopy: u, handlePasting: f }, children: e });
|
|
2640
2640
|
}, wt = () => it(Bn), kr = ({
|
|
2641
2641
|
allowCreateFolder: e = !0,
|
|
2642
2642
|
allowUploadFile: a = !0,
|
|
2643
|
-
onLayoutChange:
|
|
2643
|
+
onLayoutChange: i,
|
|
2644
2644
|
onRefresh: r,
|
|
2645
2645
|
triggerAction: o
|
|
2646
2646
|
}) => {
|
|
2647
2647
|
var w;
|
|
2648
|
-
const [l, u] = Z(!1), { currentFolder: f } =
|
|
2648
|
+
const [l, u] = Z(!1), { currentFolder: f } = Ae(), { selectedFiles: h, setSelectedFiles: d, handleDownload: m } = Ve(), { clipBoard: j, setClipBoard: x, handleCutCopy: S, handlePasting: V } = wt(), { activeLayout: M } = $e(), Y = [
|
|
2649
2649
|
{
|
|
2650
2650
|
icon: /* @__PURE__ */ n.jsx(_n, { size: 17, strokeWidth: 0.3 }),
|
|
2651
2651
|
text: "New Folder",
|
|
@@ -2666,12 +2666,12 @@ const st = (e = () => {
|
|
|
2666
2666
|
}
|
|
2667
2667
|
], L = [
|
|
2668
2668
|
{
|
|
2669
|
-
icon:
|
|
2669
|
+
icon: M === "grid" ? /* @__PURE__ */ n.jsx(Nn, { size: 16 }) : /* @__PURE__ */ n.jsx(Ln, { size: 16 }),
|
|
2670
2670
|
title: "Change View",
|
|
2671
|
-
onClick: () => u((
|
|
2671
|
+
onClick: () => u((s) => !s)
|
|
2672
2672
|
},
|
|
2673
2673
|
{
|
|
2674
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
2674
|
+
icon: /* @__PURE__ */ n.jsx(Fn, { size: 16 }),
|
|
2675
2675
|
title: "Refresh",
|
|
2676
2676
|
onClick: () => {
|
|
2677
2677
|
Ge(r, "onRefresh"), x(null);
|
|
@@ -2687,7 +2687,7 @@ const st = (e = () => {
|
|
|
2687
2687
|
return h.length > 0 ? /* @__PURE__ */ n.jsx("div", { className: "toolbar file-selected", children: /* @__PURE__ */ n.jsxs("div", { className: "file-action-container", children: [
|
|
2688
2688
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2689
2689
|
/* @__PURE__ */ n.jsxs("button", { className: "item-action file-action", onClick: () => S(!0), children: [
|
|
2690
|
-
/* @__PURE__ */ n.jsx(
|
|
2690
|
+
/* @__PURE__ */ n.jsx(An, { size: 18 }),
|
|
2691
2691
|
/* @__PURE__ */ n.jsx("span", { children: "Cut" })
|
|
2692
2692
|
] }),
|
|
2693
2693
|
/* @__PURE__ */ n.jsxs("button", { className: "item-action file-action", onClick: () => S(!1), children: [
|
|
@@ -2750,20 +2750,20 @@ const st = (e = () => {
|
|
|
2750
2750
|
}
|
|
2751
2751
|
)
|
|
2752
2752
|
] }) }) : /* @__PURE__ */ n.jsx("div", { className: "toolbar", children: /* @__PURE__ */ n.jsxs("div", { className: "fm-toolbar", children: [
|
|
2753
|
-
/* @__PURE__ */ n.jsx("div", { children:
|
|
2754
|
-
|
|
2755
|
-
/* @__PURE__ */ n.jsx("span", { children:
|
|
2753
|
+
/* @__PURE__ */ n.jsx("div", { children: Y.filter((s) => s.permission).map((s, y) => /* @__PURE__ */ n.jsxs("button", { className: "item-action", onClick: s.onClick, children: [
|
|
2754
|
+
s.icon,
|
|
2755
|
+
/* @__PURE__ */ n.jsx("span", { children: s.text })
|
|
2756
2756
|
] }, y)) }),
|
|
2757
2757
|
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
2758
|
-
L.map((
|
|
2759
|
-
/* @__PURE__ */ n.jsx("button", { className: "item-action icon-only", title:
|
|
2758
|
+
L.map((s, y) => /* @__PURE__ */ n.jsxs("div", { className: "toolbar-left-items", children: [
|
|
2759
|
+
/* @__PURE__ */ n.jsx("button", { className: "item-action icon-only", title: s.title, onClick: s.onClick, children: s.icon }),
|
|
2760
2760
|
y !== L.length - 1 && /* @__PURE__ */ n.jsx("div", { className: "item-separator" })
|
|
2761
2761
|
] }, y)),
|
|
2762
2762
|
l && /* @__PURE__ */ n.jsx(
|
|
2763
2763
|
Or,
|
|
2764
2764
|
{
|
|
2765
2765
|
setShowToggleViewMenu: u,
|
|
2766
|
-
onLayoutChange:
|
|
2766
|
+
onLayoutChange: i
|
|
2767
2767
|
}
|
|
2768
2768
|
)
|
|
2769
2769
|
] })
|
|
@@ -2771,9 +2771,9 @@ const st = (e = () => {
|
|
|
2771
2771
|
};
|
|
2772
2772
|
var Un = { exports: {} };
|
|
2773
2773
|
(function(e, a) {
|
|
2774
|
-
(function(
|
|
2774
|
+
(function(i, r) {
|
|
2775
2775
|
e.exports = r(Me);
|
|
2776
|
-
})(On, function(
|
|
2776
|
+
})(On, function(i) {
|
|
2777
2777
|
return function(r) {
|
|
2778
2778
|
var o = {};
|
|
2779
2779
|
function l(u) {
|
|
@@ -2805,7 +2805,7 @@ var Un = { exports: {} };
|
|
|
2805
2805
|
}([function(r, o, l) {
|
|
2806
2806
|
r.exports = l(2)();
|
|
2807
2807
|
}, function(r, o) {
|
|
2808
|
-
r.exports =
|
|
2808
|
+
r.exports = i;
|
|
2809
2809
|
}, function(r, o, l) {
|
|
2810
2810
|
var u = l(3);
|
|
2811
2811
|
function f() {
|
|
@@ -2813,7 +2813,7 @@ var Un = { exports: {} };
|
|
|
2813
2813
|
function h() {
|
|
2814
2814
|
}
|
|
2815
2815
|
h.resetWarningCache = f, r.exports = function() {
|
|
2816
|
-
function d(x, S, V,
|
|
2816
|
+
function d(x, S, V, M, Y, L) {
|
|
2817
2817
|
if (L !== u) {
|
|
2818
2818
|
var I = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
|
2819
2819
|
throw I.name = "Invariant Violation", I;
|
|
@@ -2830,37 +2830,37 @@ var Un = { exports: {} };
|
|
|
2830
2830
|
r.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2831
2831
|
}, function(r, o, l) {
|
|
2832
2832
|
l.r(o);
|
|
2833
|
-
var u = l(1), f = l.n(u), h = l(0), d = l.n(h), m = function(
|
|
2834
|
-
return
|
|
2833
|
+
var u = l(1), f = l.n(u), h = l(0), d = l.n(h), m = function(s) {
|
|
2834
|
+
return s !== 0;
|
|
2835
2835
|
};
|
|
2836
2836
|
function j() {
|
|
2837
|
-
return (j = Object.assign ? Object.assign.bind() : function(
|
|
2837
|
+
return (j = Object.assign ? Object.assign.bind() : function(s) {
|
|
2838
2838
|
for (var y = 1; y < arguments.length; y++) {
|
|
2839
2839
|
var O = arguments[y];
|
|
2840
|
-
for (var
|
|
2840
|
+
for (var k in O) Object.prototype.hasOwnProperty.call(O, k) && (s[k] = O[k]);
|
|
2841
2841
|
}
|
|
2842
|
-
return
|
|
2842
|
+
return s;
|
|
2843
2843
|
}).apply(this, arguments);
|
|
2844
2844
|
}
|
|
2845
|
-
function x(
|
|
2845
|
+
function x(s) {
|
|
2846
2846
|
return (x = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
|
|
2847
2847
|
return typeof y;
|
|
2848
2848
|
} : function(y) {
|
|
2849
2849
|
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
|
|
2850
|
-
})(
|
|
2850
|
+
})(s);
|
|
2851
2851
|
}
|
|
2852
|
-
function S(
|
|
2852
|
+
function S(s, y) {
|
|
2853
2853
|
for (var O = 0; O < y.length; O++) {
|
|
2854
|
-
var
|
|
2855
|
-
|
|
2854
|
+
var k = y[O];
|
|
2855
|
+
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(s, k.key, k);
|
|
2856
2856
|
}
|
|
2857
2857
|
}
|
|
2858
|
-
function V(
|
|
2859
|
-
return (V = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(O,
|
|
2860
|
-
return O.__proto__ =
|
|
2861
|
-
})(
|
|
2858
|
+
function V(s, y) {
|
|
2859
|
+
return (V = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(O, k) {
|
|
2860
|
+
return O.__proto__ = k, O;
|
|
2861
|
+
})(s, y);
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2863
|
+
function M(s) {
|
|
2864
2864
|
var y = function() {
|
|
2865
2865
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
2866
2866
|
if (typeof Proxy == "function") return !0;
|
|
@@ -2872,42 +2872,42 @@ var Un = { exports: {} };
|
|
|
2872
2872
|
}
|
|
2873
2873
|
}();
|
|
2874
2874
|
return function() {
|
|
2875
|
-
var O,
|
|
2875
|
+
var O, k = I(s);
|
|
2876
2876
|
if (y) {
|
|
2877
|
-
var
|
|
2878
|
-
O = Reflect.construct(
|
|
2879
|
-
} else O =
|
|
2880
|
-
return
|
|
2877
|
+
var K = I(this).constructor;
|
|
2878
|
+
O = Reflect.construct(k, arguments, K);
|
|
2879
|
+
} else O = k.apply(this, arguments);
|
|
2880
|
+
return Y(this, O);
|
|
2881
2881
|
};
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function Y(s, y) {
|
|
2884
2884
|
if (y && (x(y) === "object" || typeof y == "function")) return y;
|
|
2885
2885
|
if (y !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2886
|
-
return L(
|
|
2886
|
+
return L(s);
|
|
2887
2887
|
}
|
|
2888
|
-
function L(
|
|
2889
|
-
if (
|
|
2890
|
-
return
|
|
2888
|
+
function L(s) {
|
|
2889
|
+
if (s === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2890
|
+
return s;
|
|
2891
2891
|
}
|
|
2892
|
-
function I(
|
|
2892
|
+
function I(s) {
|
|
2893
2893
|
return (I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(y) {
|
|
2894
2894
|
return y.__proto__ || Object.getPrototypeOf(y);
|
|
2895
|
-
})(
|
|
2895
|
+
})(s);
|
|
2896
2896
|
}
|
|
2897
|
-
function N(
|
|
2898
|
-
return y in
|
|
2897
|
+
function N(s, y, O) {
|
|
2898
|
+
return y in s ? Object.defineProperty(s, y, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : s[y] = O, s;
|
|
2899
2899
|
}
|
|
2900
|
-
var w = function(
|
|
2901
|
-
(function(
|
|
2900
|
+
var w = function(s) {
|
|
2901
|
+
(function(U, H) {
|
|
2902
2902
|
if (typeof H != "function" && H !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2903
|
-
|
|
2904
|
-
})(
|
|
2905
|
-
var y, O,
|
|
2906
|
-
function U
|
|
2903
|
+
U.prototype = Object.create(H && H.prototype, { constructor: { value: U, writable: !0, configurable: !0 } }), Object.defineProperty(U, "prototype", { writable: !1 }), H && V(U, H);
|
|
2904
|
+
})(K, s);
|
|
2905
|
+
var y, O, k = M(K);
|
|
2906
|
+
function K(U) {
|
|
2907
2907
|
var H;
|
|
2908
2908
|
return function(G, J) {
|
|
2909
2909
|
if (!(G instanceof J)) throw new TypeError("Cannot call a class as a function");
|
|
2910
|
-
}(this,
|
|
2910
|
+
}(this, K), N(L(H = k.call(this, U)), "continueOpenCollapsible", function() {
|
|
2911
2911
|
var G = L(H).innerRef;
|
|
2912
2912
|
H.setState({ height: G.scrollHeight, transition: "height ".concat(H.props.transitionTime, "ms ").concat(H.props.easing), isClosed: !1, hasBeenOpened: !0, inTransition: m(G.scrollHeight), shouldOpenOnNextCycle: !1 });
|
|
2913
2913
|
}), N(L(H), "handleTriggerClick", function(G) {
|
|
@@ -2916,22 +2916,22 @@ var Un = { exports: {} };
|
|
|
2916
2916
|
G.target === H.innerRef && (H.state.isClosed ? (H.setState({ inTransition: !1 }), H.props.onClose()) : (H.setState({ height: "auto", overflow: H.props.overflowWhenOpen, inTransition: !1 }), H.props.onOpen()));
|
|
2917
2917
|
}), N(L(H), "setInnerRef", function(G) {
|
|
2918
2918
|
return H.innerRef = G;
|
|
2919
|
-
}), H.timeout = void 0, H.contentId =
|
|
2919
|
+
}), H.timeout = void 0, H.contentId = U.contentElementId || "collapsible-content-".concat(Date.now()), H.triggerId = U.triggerElementProps.id || "collapsible-trigger-".concat(Date.now()), U.open ? H.state = { isClosed: !1, shouldSwitchAutoOnNextCycle: !1, height: "auto", transition: "none", hasBeenOpened: !0, overflow: U.overflowWhenOpen, inTransition: !1 } : H.state = { isClosed: !0, shouldSwitchAutoOnNextCycle: !1, height: 0, transition: "height ".concat(U.transitionTime, "ms ").concat(U.easing), hasBeenOpened: !1, overflow: "hidden", inTransition: !1 }, H;
|
|
2920
2920
|
}
|
|
2921
|
-
return y =
|
|
2921
|
+
return y = K, (O = [{ key: "componentDidUpdate", value: function(U, H) {
|
|
2922
2922
|
var G = this;
|
|
2923
2923
|
this.state.shouldOpenOnNextCycle && this.continueOpenCollapsible(), H.height !== "auto" && H.height !== 0 || this.state.shouldSwitchAutoOnNextCycle !== !0 || (window.clearTimeout(this.timeout), this.timeout = window.setTimeout(function() {
|
|
2924
2924
|
G.setState({ height: 0, overflow: "hidden", isClosed: !0, shouldSwitchAutoOnNextCycle: !1 });
|
|
2925
|
-
}, 50)),
|
|
2925
|
+
}, 50)), U.open !== this.props.open && (this.props.open === !0 ? (this.openCollapsible(), this.props.onOpening()) : (this.closeCollapsible(), this.props.onClosing()));
|
|
2926
2926
|
} }, { key: "componentWillUnmount", value: function() {
|
|
2927
2927
|
window.clearTimeout(this.timeout);
|
|
2928
2928
|
} }, { key: "closeCollapsible", value: function() {
|
|
2929
|
-
var
|
|
2930
|
-
this.setState({ shouldSwitchAutoOnNextCycle: !0, height:
|
|
2929
|
+
var U = this.innerRef;
|
|
2930
|
+
this.setState({ shouldSwitchAutoOnNextCycle: !0, height: U.scrollHeight, transition: "height ".concat(this.props.transitionCloseTime ? this.props.transitionCloseTime : this.props.transitionTime, "ms ").concat(this.props.easing), inTransition: m(U.scrollHeight) });
|
|
2931
2931
|
} }, { key: "openCollapsible", value: function() {
|
|
2932
2932
|
this.setState({ inTransition: m(this.innerRef.scrollHeight), shouldOpenOnNextCycle: !0 });
|
|
2933
2933
|
} }, { key: "renderNonClickableTriggerElement", value: function() {
|
|
2934
|
-
var
|
|
2934
|
+
var U = this.props, H = U.triggerSibling, G = U.classParentString;
|
|
2935
2935
|
if (!H) return null;
|
|
2936
2936
|
switch (x(H)) {
|
|
2937
2937
|
case "string":
|
|
@@ -2944,12 +2944,12 @@ var Un = { exports: {} };
|
|
|
2944
2944
|
return null;
|
|
2945
2945
|
}
|
|
2946
2946
|
} }, { key: "render", value: function() {
|
|
2947
|
-
var
|
|
2947
|
+
var U = this, H = { 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, ae = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, de = this.props, ee = de.classParentString, T = de.contentOuterClassName, D = de.contentInnerClassName, b = "".concat(ee, "__trigger ").concat(G, " ").concat(J, " ").concat(this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName), C = "".concat(ee, " ").concat(this.state.isClosed ? this.props.className : this.props.openedClassName), z = "".concat(ee, "__contentOuter ").concat(T), q = "".concat(ee, "__contentInner ").concat(D);
|
|
2948
2948
|
return f.a.createElement(ue, j({ className: C.trim() }, this.props.containerElementProps), f.a.createElement(ne, j({ id: this.triggerId, className: b.trim(), onClick: this.handleTriggerClick, style: this.props.triggerStyle && this.props.triggerStyle, onKeyPress: function($) {
|
|
2949
2949
|
var p = $.key;
|
|
2950
|
-
(p === " " &&
|
|
2951
|
-
}, 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(), f.a.createElement("div", { id: this.contentId, className: z.trim(), style: H, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, f.a.createElement("div", { className:
|
|
2952
|
-
} }]) && S(y.prototype, O), Object.defineProperty(y, "prototype", { writable: !1 }),
|
|
2950
|
+
(p === " " && U.props.triggerTagName.toLowerCase() !== "button" || p === "Enter") && U.handleTriggerClick($);
|
|
2951
|
+
}, 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(), f.a.createElement("div", { id: this.contentId, className: z.trim(), style: H, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, f.a.createElement("div", { className: q.trim() }, ae)));
|
|
2952
|
+
} }]) && S(y.prototype, O), Object.defineProperty(y, "prototype", { writable: !1 }), K;
|
|
2953
2953
|
}(u.Component);
|
|
2954
2954
|
w.propTypes = { transitionTime: d.a.number, transitionCloseTime: d.a.number, triggerTagName: d.a.string, easing: d.a.string, open: d.a.bool, containerElementProps: d.a.object, triggerElementProps: d.a.object, contentElementId: d.a.string, classParentString: d.a.string, className: d.a.string, openedClassName: d.a.string, triggerStyle: d.a.object, triggerClassName: d.a.string, triggerOpenedClassName: d.a.string, contentOuterClassName: d.a.string, contentInnerClassName: d.a.string, accordionPosition: d.a.oneOfType([d.a.string, d.a.number]), handleTriggerClick: d.a.func, onOpen: d.a.func, onClose: d.a.func, onOpening: d.a.func, onClosing: d.a.func, onTriggerOpening: d.a.func, onTriggerClosing: d.a.func, trigger: d.a.oneOfType([d.a.string, d.a.element]), triggerWhenOpen: d.a.oneOfType([d.a.string, d.a.element]), triggerDisabled: d.a.bool, lazyRender: d.a.bool, overflowWhenOpen: d.a.oneOf(["hidden", "visible", "auto", "scroll", "inherit", "initial", "unset"]), contentHiddenWhenClosed: d.a.bool, triggerSibling: d.a.oneOfType([d.a.string, d.a.element, d.a.func]), tabIndex: d.a.number, contentContainerTagName: d.a.string, children: d.a.oneOfType([d.a.string, d.a.element]) }, w.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() {
|
|
2955
2955
|
}, onClose: function() {
|
|
@@ -2966,7 +2966,7 @@ const _r = /* @__PURE__ */ Yt(Mr);
|
|
|
2966
2966
|
function Nr(e) {
|
|
2967
2967
|
return ie({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z" }, child: [] }] })(e);
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2969
|
+
function Ar(e) {
|
|
2970
2970
|
return ie({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z" }, child: [] }] })(e);
|
|
2971
2971
|
}
|
|
2972
2972
|
function ln(e) {
|
|
@@ -2976,15 +2976,15 @@ function un(e) {
|
|
|
2976
2976
|
return ie({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M464 128H272l-54.63-54.63c-6-6-14.14-9.37-22.63-9.37H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm0 272H48V112h140.12l54.63 54.63c6 6 14.14 9.37 22.63 9.37H464v224z" }, child: [] }] })(e);
|
|
2977
2977
|
}
|
|
2978
2978
|
const Yn = ({ folder: e }) => {
|
|
2979
|
-
const [a,
|
|
2979
|
+
const [a, i] = Z(!1), [r, o] = Z(!1), { currentPath: l, setCurrentPath: u } = Ae(), f = () => {
|
|
2980
2980
|
o(!0), u(e.path);
|
|
2981
2981
|
}, h = (d) => {
|
|
2982
|
-
d.stopPropagation(),
|
|
2982
|
+
d.stopPropagation(), i((m) => !m);
|
|
2983
2983
|
};
|
|
2984
2984
|
return ge(() => {
|
|
2985
2985
|
o(l === e.path);
|
|
2986
2986
|
const d = l.split("/");
|
|
2987
|
-
d.pop(), d.join("/") === e.path &&
|
|
2987
|
+
d.pop(), d.join("/") === e.path && i(!0);
|
|
2988
2988
|
}, [l]), e.subDirectories.length > 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2989
2989
|
/* @__PURE__ */ n.jsxs(
|
|
2990
2990
|
"div",
|
|
@@ -3021,8 +3021,8 @@ const Yn = ({ folder: e }) => {
|
|
|
3021
3021
|
]
|
|
3022
3022
|
}
|
|
3023
3023
|
);
|
|
3024
|
-
},
|
|
3025
|
-
const [e, a] = Z([]), { files:
|
|
3024
|
+
}, Fr = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), Hr = () => {
|
|
3025
|
+
const [e, a] = Z([]), { files: i } = Ct(), r = (o, l) => {
|
|
3026
3026
|
var u;
|
|
3027
3027
|
return l[o] ? (u = l[o]) == null ? void 0 : u.map((f) => ({
|
|
3028
3028
|
...f,
|
|
@@ -3030,13 +3030,13 @@ const Yn = ({ folder: e }) => {
|
|
|
3030
3030
|
})) : [];
|
|
3031
3031
|
};
|
|
3032
3032
|
return ge(() => {
|
|
3033
|
-
if (Array.isArray(
|
|
3034
|
-
const o =
|
|
3033
|
+
if (Array.isArray(i)) {
|
|
3034
|
+
const o = i.filter((u) => u.isDirectory), l = Object.groupBy(o, ({ path: u }) => Fr(u));
|
|
3035
3035
|
a(() => r("", l));
|
|
3036
3036
|
}
|
|
3037
|
-
}, [
|
|
3037
|
+
}, [i]), /* @__PURE__ */ n.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e == null ? void 0 : e.map((o, l) => /* @__PURE__ */ n.jsx(Yn, { folder: o }, l)) }) : /* @__PURE__ */ n.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
|
|
3038
3038
|
}, Vr = () => {
|
|
3039
|
-
const [e, a] = Z([]), [
|
|
3039
|
+
const [e, a] = Z([]), [i, r] = Z([]), [o, l] = Z([]), [u, f] = Z(!1), { currentPath: h, setCurrentPath: d } = Ae(), m = Pe(null), j = Pe([]), x = Pe(null), S = st(() => {
|
|
3040
3040
|
f(!1);
|
|
3041
3041
|
});
|
|
3042
3042
|
ge(() => {
|
|
@@ -3050,21 +3050,21 @@ const Yn = ({ folder: e }) => {
|
|
|
3050
3050
|
}, [h]);
|
|
3051
3051
|
const V = (I) => {
|
|
3052
3052
|
d(I);
|
|
3053
|
-
},
|
|
3054
|
-
const I = m.current.clientWidth, N = getComputedStyle(m.current), w = parseFloat(N.paddingLeft),
|
|
3053
|
+
}, M = () => {
|
|
3054
|
+
const I = m.current.clientWidth, N = getComputedStyle(m.current), w = parseFloat(N.paddingLeft), s = i.length > 0 ? 1 : 0, y = parseFloat(N.gap) * (e.length + s);
|
|
3055
3055
|
return I - (w + y);
|
|
3056
|
-
},
|
|
3057
|
-
var
|
|
3058
|
-
const I =
|
|
3056
|
+
}, Y = () => {
|
|
3057
|
+
var s;
|
|
3058
|
+
const I = M(), N = j.current.reduce((y, O) => O ? y + O.clientWidth : y, 0), w = ((s = x.current) == null ? void 0 : s.clientWidth) || 0;
|
|
3059
3059
|
return I - (N + w);
|
|
3060
3060
|
}, L = () => m.current.scrollWidth > m.current.clientWidth;
|
|
3061
3061
|
return ge(() => {
|
|
3062
3062
|
var I;
|
|
3063
3063
|
if (L()) {
|
|
3064
3064
|
const N = e[1], w = (I = j.current[1]) == null ? void 0 : I.clientWidth;
|
|
3065
|
-
l((
|
|
3066
|
-
} else if (
|
|
3067
|
-
const N = [e[0],
|
|
3065
|
+
l((s) => [...s, w]), r((s) => [...s, N]), a((s) => s.filter((y, O) => O !== 1));
|
|
3066
|
+
} else if (i.length > 0 && Y() > o.at(-1)) {
|
|
3067
|
+
const N = [e[0], i.at(-1), ...e.slice(1)];
|
|
3068
3068
|
a(N), r((w) => w.slice(0, -1)), l((w) => w.slice(0, -1));
|
|
3069
3069
|
}
|
|
3070
3070
|
}, [L]), /* @__PURE__ */ n.jsxs("div", { className: "bread-crumb-container", children: [
|
|
@@ -3081,7 +3081,7 @@ const Yn = ({ folder: e }) => {
|
|
|
3081
3081
|
]
|
|
3082
3082
|
}
|
|
3083
3083
|
),
|
|
3084
|
-
(
|
|
3084
|
+
(i == null ? void 0 : i.length) > 0 && N === 0 && /* @__PURE__ */ n.jsx(
|
|
3085
3085
|
"button",
|
|
3086
3086
|
{
|
|
3087
3087
|
className: "folder-name folder-name-btn",
|
|
@@ -3092,7 +3092,7 @@ const Yn = ({ folder: e }) => {
|
|
|
3092
3092
|
}
|
|
3093
3093
|
)
|
|
3094
3094
|
] }, N)) }),
|
|
3095
|
-
u && /* @__PURE__ */ n.jsx("ul", { ref: S.ref, className: "hidden-folders-container", children:
|
|
3095
|
+
u && /* @__PURE__ */ n.jsx("ul", { ref: S.ref, className: "hidden-folders-container", children: i.map((I, N) => /* @__PURE__ */ n.jsx(
|
|
3096
3096
|
"li",
|
|
3097
3097
|
{
|
|
3098
3098
|
onClick: () => {
|
|
@@ -3105,9 +3105,9 @@ const Yn = ({ folder: e }) => {
|
|
|
3105
3105
|
] });
|
|
3106
3106
|
}, Xt = (e) => ({
|
|
3107
3107
|
pdf: /* @__PURE__ */ n.jsx(Cr, { size: e }),
|
|
3108
|
-
jpg: /* @__PURE__ */ n.jsx(
|
|
3109
|
-
jpeg: /* @__PURE__ */ n.jsx(
|
|
3110
|
-
png: /* @__PURE__ */ n.jsx(
|
|
3108
|
+
jpg: /* @__PURE__ */ n.jsx(Ft, { size: e }),
|
|
3109
|
+
jpeg: /* @__PURE__ */ n.jsx(Ft, { size: e }),
|
|
3110
|
+
png: /* @__PURE__ */ n.jsx(Ft, { size: e }),
|
|
3111
3111
|
txt: /* @__PURE__ */ n.jsx(xr, { size: e }),
|
|
3112
3112
|
doc: /* @__PURE__ */ n.jsx(cn, { size: e }),
|
|
3113
3113
|
docx: /* @__PURE__ */ n.jsx(cn, { size: e }),
|
|
@@ -3138,12 +3138,12 @@ const Yn = ({ folder: e }) => {
|
|
|
3138
3138
|
csv: /* @__PURE__ */ n.jsx(Ce, { size: e }),
|
|
3139
3139
|
md: /* @__PURE__ */ n.jsx(Ce, { size: e }),
|
|
3140
3140
|
svg: /* @__PURE__ */ n.jsx(Ce, { size: e })
|
|
3141
|
-
}), qn = (e, a,
|
|
3142
|
-
if (
|
|
3141
|
+
}), qn = (e, a, i) => {
|
|
3142
|
+
if (i.find((r) => r.name === e)) {
|
|
3143
3143
|
const r = "", o = e;
|
|
3144
3144
|
let l = 0;
|
|
3145
3145
|
const u = new RegExp(`${o} \\(\\d+\\)`);
|
|
3146
|
-
|
|
3146
|
+
i.forEach((d) => {
|
|
3147
3147
|
const m = d.isDirectory ? d.name : d.name.split(".").slice(0, -1).join(".");
|
|
3148
3148
|
if (u.test(m)) {
|
|
3149
3149
|
const j = m.split(`${o} (`).pop().slice(0, -1), x = parseInt(j);
|
|
@@ -3154,26 +3154,26 @@ const Yn = ({ folder: e }) => {
|
|
|
3154
3154
|
return o + f + r;
|
|
3155
3155
|
} else
|
|
3156
3156
|
return e;
|
|
3157
|
-
}, Kn = ({ nameInputRef: e, maxLength: a, value:
|
|
3157
|
+
}, Kn = ({ nameInputRef: e, maxLength: a, value: i, onChange: r, onKeyDown: o, onClick: l, rows: u }) => /* @__PURE__ */ n.jsx(
|
|
3158
3158
|
"textarea",
|
|
3159
3159
|
{
|
|
3160
3160
|
ref: e,
|
|
3161
3161
|
className: "rename-file",
|
|
3162
3162
|
maxLength: a,
|
|
3163
|
-
value:
|
|
3163
|
+
value: i,
|
|
3164
3164
|
onChange: r,
|
|
3165
3165
|
onKeyDown: o,
|
|
3166
3166
|
onClick: l,
|
|
3167
3167
|
rows: u
|
|
3168
3168
|
}
|
|
3169
|
-
), Xn = ({ message: e, xPlacement: a, yPlacement:
|
|
3169
|
+
), Xn = ({ message: e, xPlacement: a, yPlacement: i }) => /* @__PURE__ */ n.jsx("p", { className: `error-tooltip ${a} ${i}`, children: e }), zr = 220, Lr = ({ filesViewRef: e, file: a, onCreateFolder: i, triggerAction: r }) => {
|
|
3170
3170
|
const [o, l] = Z(a.name), [u, f] = Z(!1), [h, d] = Z(""), [m, j] = Z("right"), [x, S] = Z("bottom"), V = st((y) => {
|
|
3171
3171
|
y.preventDefault(), y.stopPropagation();
|
|
3172
|
-
}), { currentFolder:
|
|
3172
|
+
}), { currentFolder: M, currentPathFiles: Y, setCurrentPathFiles: L } = Ae(), { activeLayout: I } = $e(), N = (y) => {
|
|
3173
3173
|
l(y.target.value), f(!1);
|
|
3174
3174
|
}, w = (y) => {
|
|
3175
3175
|
if (y.stopPropagation(), y.key === "Enter") {
|
|
3176
|
-
y.preventDefault(),
|
|
3176
|
+
y.preventDefault(), s();
|
|
3177
3177
|
return;
|
|
3178
3178
|
}
|
|
3179
3179
|
/[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), d(
|
|
@@ -3188,24 +3188,24 @@ const Yn = ({ folder: e }) => {
|
|
|
3188
3188
|
return () => clearTimeout(y);
|
|
3189
3189
|
}
|
|
3190
3190
|
}, [u]);
|
|
3191
|
-
function
|
|
3192
|
-
var
|
|
3191
|
+
function s() {
|
|
3192
|
+
var K, U;
|
|
3193
3193
|
let y = o.trim();
|
|
3194
|
-
const O =
|
|
3194
|
+
const O = Y.filter((H) => !(H.key && H.key === a.key));
|
|
3195
3195
|
if (O.find((H) => H.name.toLowerCase() === y.toLowerCase())) {
|
|
3196
|
-
d(`This destination already contains a folder named '${y}'.`), f(!0), (
|
|
3196
|
+
d(`This destination already contains a folder named '${y}'.`), f(!0), (K = V.ref.current) == null || K.focus(), (U = V.ref.current) == null || U.select(), V.setIsClicked(!1);
|
|
3197
3197
|
return;
|
|
3198
3198
|
}
|
|
3199
|
-
y === "" && (y = qn("New Folder", !0, O)), Ge(
|
|
3199
|
+
y === "" && (y = qn("New Folder", !0, O)), Ge(i, "onCreateFolder", y, M), L((H) => H.filter((G) => G.key !== a.key)), r.close();
|
|
3200
3200
|
}
|
|
3201
3201
|
return ge(() => {
|
|
3202
|
-
var y, O,
|
|
3203
|
-
if ((y = V.ref.current) == null || y.focus(), (O = V.ref.current) == null || O.select(), (
|
|
3202
|
+
var y, O, k;
|
|
3203
|
+
if ((y = V.ref.current) == null || y.focus(), (O = V.ref.current) == null || O.select(), (k = V.ref) != null && k.current) {
|
|
3204
3204
|
const G = e.current.getBoundingClientRect(), J = V.ref.current, te = J.getBoundingClientRect();
|
|
3205
3205
|
G.right - te.left > 313 ? j("right") : j("left"), G.bottom - (te.top + J.clientHeight) > 88 ? S("bottom") : S("top");
|
|
3206
3206
|
}
|
|
3207
3207
|
}, []), ge(() => {
|
|
3208
|
-
V.isClicked &&
|
|
3208
|
+
V.isClicked && s();
|
|
3209
3209
|
}, [V.isClicked]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3210
3210
|
/* @__PURE__ */ n.jsx(
|
|
3211
3211
|
Kn,
|
|
@@ -3228,12 +3228,12 @@ const Yn = ({ folder: e }) => {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
)
|
|
3230
3230
|
] });
|
|
3231
|
-
}, Xe = ({ onClick: e, onKeyDown: a, type:
|
|
3231
|
+
}, Xe = ({ onClick: e, onKeyDown: a, type: i = "primary", padding: r = "0.4rem 0.8rem", children: o }) => /* @__PURE__ */ n.jsx(
|
|
3232
3232
|
"button",
|
|
3233
3233
|
{
|
|
3234
3234
|
onClick: e,
|
|
3235
3235
|
onKeyDown: a,
|
|
3236
|
-
className: `fm-button fm-button-${
|
|
3236
|
+
className: `fm-button fm-button-${i}`,
|
|
3237
3237
|
style: { padding: r },
|
|
3238
3238
|
children: o
|
|
3239
3239
|
}
|
|
@@ -3244,14 +3244,14 @@ function Dr(e) {
|
|
|
3244
3244
|
const Gn = ({
|
|
3245
3245
|
children: e,
|
|
3246
3246
|
show: a,
|
|
3247
|
-
setShow:
|
|
3247
|
+
setShow: i,
|
|
3248
3248
|
heading: r,
|
|
3249
3249
|
dialogWidth: o = "25%",
|
|
3250
3250
|
contentClassName: l = "",
|
|
3251
3251
|
closeButton: u = !0
|
|
3252
3252
|
}) => {
|
|
3253
3253
|
const f = Pe(null), h = (d) => {
|
|
3254
|
-
d.key === "Escape" &&
|
|
3254
|
+
d.key === "Escape" && i(!1);
|
|
3255
3255
|
};
|
|
3256
3256
|
return ge(() => {
|
|
3257
3257
|
a ? f.current.showModal() : f.current.close();
|
|
@@ -3265,65 +3265,65 @@ const Gn = ({
|
|
|
3265
3265
|
children: [
|
|
3266
3266
|
/* @__PURE__ */ n.jsxs("div", { className: "fm-modal-header", children: [
|
|
3267
3267
|
/* @__PURE__ */ n.jsx("span", { className: "fm-modal-heading", children: r }),
|
|
3268
|
-
u && /* @__PURE__ */ n.jsx(vr, { size: 18, onClick: () =>
|
|
3268
|
+
u && /* @__PURE__ */ n.jsx(vr, { size: 18, onClick: () => i(!1), className: "close-icon", title: "Close" })
|
|
3269
3269
|
] }),
|
|
3270
3270
|
e
|
|
3271
3271
|
]
|
|
3272
3272
|
}
|
|
3273
3273
|
);
|
|
3274
|
-
}, Ke = (e) => e.split(".").pop(), Ir = 220, $r = ({ filesViewRef: e, file: a, onRename:
|
|
3275
|
-
const [o, l] = Z(a == null ? void 0 : a.name), [u, f] = Z(!1), [h, d] = Z(!1), [m, j] = Z(""), [x, S] = Z("right"), [V,
|
|
3276
|
-
var
|
|
3277
|
-
(
|
|
3278
|
-
}),
|
|
3279
|
-
if (
|
|
3280
|
-
|
|
3274
|
+
}, Ke = (e) => e.split(".").pop(), Ir = 220, $r = ({ filesViewRef: e, file: a, onRename: i, triggerAction: r }) => {
|
|
3275
|
+
const [o, l] = Z(a == null ? void 0 : a.name), [u, f] = Z(!1), [h, d] = Z(!1), [m, j] = Z(""), [x, S] = Z("right"), [V, M] = Z("bottom"), { currentPathFiles: Y, setCurrentPathFiles: L } = Ae(), { activeLayout: I } = $e(), N = Pe(null), w = st((k) => {
|
|
3276
|
+
var K;
|
|
3277
|
+
(K = N.current) != null && K.contains(k.target) || (k.preventDefault(), k.stopPropagation());
|
|
3278
|
+
}), s = (k) => {
|
|
3279
|
+
if (k.stopPropagation(), k.key === "Enter") {
|
|
3280
|
+
k.preventDefault(), w.setIsClicked(!0);
|
|
3281
3281
|
return;
|
|
3282
3282
|
}
|
|
3283
|
-
/[\\/:*?"<>|]/.test(
|
|
3283
|
+
/[\\/:*?"<>|]/.test(k.key) ? (k.preventDefault(), j(
|
|
3284
3284
|
`A file name can't contain any of the following characters: \\ / : * ? " < > |`
|
|
3285
3285
|
), d(!0)) : d(!1);
|
|
3286
3286
|
};
|
|
3287
3287
|
ge(() => {
|
|
3288
3288
|
if (h) {
|
|
3289
|
-
const
|
|
3289
|
+
const k = setTimeout(() => {
|
|
3290
3290
|
d(!1), j("");
|
|
3291
3291
|
}, 7e3);
|
|
3292
|
-
return () => clearTimeout(
|
|
3292
|
+
return () => clearTimeout(k);
|
|
3293
3293
|
}
|
|
3294
3294
|
}, [h]);
|
|
3295
|
-
function y(
|
|
3295
|
+
function y(k) {
|
|
3296
3296
|
if (o === "" || o === a.name) {
|
|
3297
3297
|
L(
|
|
3298
|
-
(
|
|
3298
|
+
(K) => K.map((U) => (U.key === a.key && (U.isEditing = !1), U))
|
|
3299
3299
|
), r.close();
|
|
3300
3300
|
return;
|
|
3301
|
-
} else if (
|
|
3301
|
+
} else if (Y.some((K) => K.name === o)) {
|
|
3302
3302
|
d(!0), j(`This destination already contains a folder named '${o}'.`), w.setIsClicked(!1);
|
|
3303
3303
|
return;
|
|
3304
|
-
} else if (!a.isDirectory && !
|
|
3305
|
-
const
|
|
3306
|
-
if (
|
|
3304
|
+
} else if (!a.isDirectory && !k) {
|
|
3305
|
+
const K = Ke(a.name), U = Ke(o);
|
|
3306
|
+
if (K !== U) {
|
|
3307
3307
|
f(!0);
|
|
3308
3308
|
return;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
d(!1), Ge(
|
|
3311
|
+
d(!1), Ge(i, "onRename", a, o), L((K) => K.filter((U) => U.key !== a.key)), r.close();
|
|
3312
3312
|
}
|
|
3313
3313
|
const O = () => {
|
|
3314
|
-
var
|
|
3315
|
-
if ((
|
|
3316
|
-
(H = (
|
|
3314
|
+
var k, K, U, H, G, J;
|
|
3315
|
+
if ((K = (k = w.ref) == null ? void 0 : k.current) == null || K.focus(), a.isDirectory)
|
|
3316
|
+
(H = (U = w.ref) == null ? void 0 : U.current) == null || H.select();
|
|
3317
3317
|
else {
|
|
3318
3318
|
const te = Ke(a.name), ue = a.name.length - te.length - 1;
|
|
3319
3319
|
(J = (G = w.ref) == null ? void 0 : G.current) == null || J.setSelectionRange(0, ue);
|
|
3320
3320
|
}
|
|
3321
3321
|
};
|
|
3322
3322
|
return ge(() => {
|
|
3323
|
-
var
|
|
3324
|
-
if (O(), (
|
|
3323
|
+
var k;
|
|
3324
|
+
if (O(), (k = w.ref) != null && k.current) {
|
|
3325
3325
|
const G = e.current.getBoundingClientRect(), J = w.ref.current, te = J.getBoundingClientRect();
|
|
3326
|
-
G.right - te.left > 313 ? S("right") : S("left"), G.bottom - (te.top + J.clientHeight) > 88 ?
|
|
3326
|
+
G.right - te.left > 313 ? S("right") : S("left"), G.bottom - (te.top + J.clientHeight) > 88 ? M("bottom") : M("top");
|
|
3327
3327
|
}
|
|
3328
3328
|
}, []), ge(() => {
|
|
3329
3329
|
w.isClicked && y(!1), O();
|
|
@@ -3334,11 +3334,11 @@ const Gn = ({
|
|
|
3334
3334
|
nameInputRef: w.ref,
|
|
3335
3335
|
maxLength: Ir,
|
|
3336
3336
|
value: o,
|
|
3337
|
-
onChange: (
|
|
3338
|
-
l(
|
|
3337
|
+
onChange: (k) => {
|
|
3338
|
+
l(k.target.value), d(!1);
|
|
3339
3339
|
},
|
|
3340
|
-
onKeyDown:
|
|
3341
|
-
onClick: (
|
|
3340
|
+
onKeyDown: s,
|
|
3341
|
+
onClick: (k) => k.stopPropagation(),
|
|
3342
3342
|
...I === "list" && { rows: 1 }
|
|
3343
3343
|
}
|
|
3344
3344
|
),
|
|
@@ -3370,7 +3370,7 @@ const Gn = ({
|
|
|
3370
3370
|
type: "secondary",
|
|
3371
3371
|
onClick: () => {
|
|
3372
3372
|
L(
|
|
3373
|
-
(
|
|
3373
|
+
(k) => k.map((K) => (K.key === a.key && (K.isEditing = !1), K))
|
|
3374
3374
|
), f(!1), r.close();
|
|
3375
3375
|
},
|
|
3376
3376
|
children: "No"
|
|
@@ -3393,9 +3393,9 @@ const Gn = ({
|
|
|
3393
3393
|
] });
|
|
3394
3394
|
}, jt = (e, a = 2) => {
|
|
3395
3395
|
if (isNaN(e)) return "";
|
|
3396
|
-
const
|
|
3397
|
-
if (
|
|
3398
|
-
return `${
|
|
3396
|
+
const i = e / 1024, r = i / 1024, o = r / 1024;
|
|
3397
|
+
if (i < 1024)
|
|
3398
|
+
return `${i.toFixed(a)} KB`;
|
|
3399
3399
|
if (r < 1024)
|
|
3400
3400
|
return `${r.toFixed(a)} MB`;
|
|
3401
3401
|
if (r >= 1024)
|
|
@@ -3404,25 +3404,25 @@ const Gn = ({
|
|
|
3404
3404
|
if (!e || isNaN(Date.parse(e))) return "";
|
|
3405
3405
|
e = new Date(e);
|
|
3406
3406
|
let a = e.getHours();
|
|
3407
|
-
const
|
|
3407
|
+
const i = e.getMinutes(), r = a >= 12 ? "PM" : "AM";
|
|
3408
3408
|
a = a % 12, a = a || 12;
|
|
3409
3409
|
const o = e.getMonth() + 1, l = e.getDate(), u = e.getFullYear();
|
|
3410
|
-
return `${o}/${l}/${u} ${a}:${
|
|
3411
|
-
}, Br = ({ name: e, id: a, checked:
|
|
3410
|
+
return `${o}/${l}/${u} ${a}:${i < 10 ? "0" + i : i} ${r}`;
|
|
3411
|
+
}, Br = ({ name: e, id: a, checked: i, onClick: r, onChange: o, className: l = "" }) => /* @__PURE__ */ n.jsx(
|
|
3412
3412
|
"input",
|
|
3413
3413
|
{
|
|
3414
3414
|
className: `fm-checkbox ${l}`,
|
|
3415
3415
|
type: "checkbox",
|
|
3416
3416
|
name: e,
|
|
3417
3417
|
id: a,
|
|
3418
|
-
checked:
|
|
3418
|
+
checked: i,
|
|
3419
3419
|
onClick: r,
|
|
3420
3420
|
onChange: o
|
|
3421
3421
|
}
|
|
3422
3422
|
), Ur = ({
|
|
3423
3423
|
index: e,
|
|
3424
3424
|
file: a,
|
|
3425
|
-
onCreateFolder:
|
|
3425
|
+
onCreateFolder: i,
|
|
3426
3426
|
onRename: r,
|
|
3427
3427
|
enableFilePreview: o,
|
|
3428
3428
|
onFileOpen: l,
|
|
@@ -3433,16 +3433,16 @@ const Gn = ({
|
|
|
3433
3433
|
setLastSelectedFile: m
|
|
3434
3434
|
}) => {
|
|
3435
3435
|
var ae, de;
|
|
3436
|
-
const [j, x] = Z(!1), [S, V] = Z(0), [
|
|
3436
|
+
const [j, x] = Z(!1), [S, V] = Z(0), [M, Y] = Z("hidden"), { activeLayout: L } = $e(), I = L === "grid" ? 48 : 20, N = Xt(I), { setCurrentPath: w, currentPathFiles: s } = Ae(), { setSelectedFiles: y } = Ve(), { clipBoard: O } = wt(), k = (O == null ? void 0 : O.isMoving) && O.files.find((ee) => ee.name === a.name && ee.path === a.path), K = () => {
|
|
3437
3437
|
l(a), a.isDirectory ? (w(a.path), y([])) : o && h.show("previewFile");
|
|
3438
|
-
},
|
|
3438
|
+
}, U = (ee, T) => {
|
|
3439
3439
|
if (f.length > 0 && ee) {
|
|
3440
3440
|
let D = !1, b = f[0], C = e;
|
|
3441
3441
|
if (b >= C) {
|
|
3442
|
-
const
|
|
3443
|
-
b = C, C =
|
|
3442
|
+
const q = b;
|
|
3443
|
+
b = C, C = q, D = !0;
|
|
3444
3444
|
}
|
|
3445
|
-
const z =
|
|
3445
|
+
const z = s.slice(b, C + 1);
|
|
3446
3446
|
y(D ? z.reverse() : z);
|
|
3447
3447
|
} else f.length > 0 && T ? y((D) => {
|
|
3448
3448
|
const b = D.filter((C) => C.path !== a.path);
|
|
@@ -3450,30 +3450,30 @@ const Gn = ({
|
|
|
3450
3450
|
}) : y([a]);
|
|
3451
3451
|
}, H = (ee) => {
|
|
3452
3452
|
if (ee.stopPropagation(), a.isEditing) return;
|
|
3453
|
-
|
|
3453
|
+
U(ee.shiftKey, ee.ctrlKey);
|
|
3454
3454
|
const T = (/* @__PURE__ */ new Date()).getTime();
|
|
3455
3455
|
if (T - S < 300) {
|
|
3456
|
-
|
|
3456
|
+
K();
|
|
3457
3457
|
return;
|
|
3458
3458
|
}
|
|
3459
3459
|
V(T);
|
|
3460
3460
|
}, G = (ee) => {
|
|
3461
|
-
ee.key === "Enter" && (ee.stopPropagation(), y([a]),
|
|
3461
|
+
ee.key === "Enter" && (ee.stopPropagation(), y([a]), K());
|
|
3462
3462
|
}, J = (ee) => {
|
|
3463
3463
|
ee.stopPropagation(), ee.preventDefault(), !a.isEditing && (j || y([a]), m(a), d(ee, !0));
|
|
3464
3464
|
}, te = () => {
|
|
3465
|
-
|
|
3465
|
+
Y("visible");
|
|
3466
3466
|
}, ue = () => {
|
|
3467
|
-
!j &&
|
|
3467
|
+
!j && Y("hidden");
|
|
3468
3468
|
}, ne = (ee) => {
|
|
3469
3469
|
ee.target.checked ? y((T) => [...T, a]) : y((T) => T.filter((D) => D.name !== a.name && D.path !== a.path)), x(ee.target.checked);
|
|
3470
3470
|
};
|
|
3471
3471
|
return ge(() => {
|
|
3472
|
-
x(f.includes(e)),
|
|
3472
|
+
x(f.includes(e)), Y(f.includes(e) ? "visible" : "hidden");
|
|
3473
3473
|
}, [f]), /* @__PURE__ */ n.jsxs(
|
|
3474
3474
|
"div",
|
|
3475
3475
|
{
|
|
3476
|
-
className: `file-item-container ${j || a.isEditing ? "file-selected" : ""} ${
|
|
3476
|
+
className: `file-item-container ${j || a.isEditing ? "file-selected" : ""} ${k ? "file-moving" : ""}`,
|
|
3477
3477
|
title: a.name,
|
|
3478
3478
|
onClick: H,
|
|
3479
3479
|
onKeyDown: G,
|
|
@@ -3489,7 +3489,7 @@ const Gn = ({
|
|
|
3489
3489
|
name: a.name,
|
|
3490
3490
|
id: a.name,
|
|
3491
3491
|
checked: j,
|
|
3492
|
-
className: `selection-checkbox ${
|
|
3492
|
+
className: `selection-checkbox ${M}`,
|
|
3493
3493
|
onChange: ne,
|
|
3494
3494
|
onClick: (ee) => ee.stopPropagation()
|
|
3495
3495
|
}
|
|
@@ -3500,7 +3500,7 @@ const Gn = ({
|
|
|
3500
3500
|
{
|
|
3501
3501
|
filesViewRef: u,
|
|
3502
3502
|
file: a,
|
|
3503
|
-
onCreateFolder:
|
|
3503
|
+
onCreateFolder: i,
|
|
3504
3504
|
triggerAction: h
|
|
3505
3505
|
}
|
|
3506
3506
|
) : /* @__PURE__ */ n.jsx(
|
|
@@ -3523,14 +3523,14 @@ const Gn = ({
|
|
|
3523
3523
|
}, Yr = ({
|
|
3524
3524
|
filesViewRef: e,
|
|
3525
3525
|
contextMenuRef: a,
|
|
3526
|
-
menuItems:
|
|
3526
|
+
menuItems: i,
|
|
3527
3527
|
visible: r,
|
|
3528
3528
|
setVisible: o,
|
|
3529
3529
|
clickPosition: l
|
|
3530
3530
|
}) => {
|
|
3531
3531
|
const [u, f] = Z(0), [h, d] = Z(0), m = () => {
|
|
3532
|
-
const { clickX: x, clickY: S } = l, V = e.current,
|
|
3533
|
-
|
|
3532
|
+
const { clickX: x, clickY: S } = l, V = e.current, M = V.getBoundingClientRect(), Y = V.offsetWidth - V.clientWidth, L = a.current.getBoundingClientRect(), I = L.width, N = L.height, w = x - M.left, s = M.width - (w + Y) > I, y = !s, O = S - M.top, k = M.height - O > N, K = !k;
|
|
3533
|
+
s ? f(`${w}px`) : y && f(`${w - I}px`), k ? d(`${O + V.scrollTop}px`) : K && d(`${O + V.scrollTop - N}px`);
|
|
3534
3534
|
}, j = (x) => {
|
|
3535
3535
|
x.preventDefault(), x.stopPropagation();
|
|
3536
3536
|
};
|
|
@@ -3548,7 +3548,7 @@ const Gn = ({
|
|
|
3548
3548
|
top: h,
|
|
3549
3549
|
left: u
|
|
3550
3550
|
},
|
|
3551
|
-
children: /* @__PURE__ */ n.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ n.jsx("ul", { children:
|
|
3551
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ n.jsx("ul", { children: i.filter((x) => !x.hidden).map((x) => /* @__PURE__ */ n.jsxs("li", { onClick: x.onClick, className: x.className ?? "", children: [
|
|
3552
3552
|
x.icon,
|
|
3553
3553
|
/* @__PURE__ */ n.jsx("span", { children: x.title })
|
|
3554
3554
|
] }, x.title)) }) })
|
|
@@ -3558,11 +3558,11 @@ const Gn = ({
|
|
|
3558
3558
|
function qr(e) {
|
|
3559
3559
|
return ie({ 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);
|
|
3560
3560
|
}
|
|
3561
|
-
const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen:
|
|
3562
|
-
const [l, u] = Z([]), [f, h] = Z(!1), [d, m] = Z(!1), [j, x] = Z({ clickX: 0, clickY: 0 }), [S, V] = Z(null), { currentPath:
|
|
3561
|
+
const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: i, enableFilePreview: r, triggerAction: o }) => {
|
|
3562
|
+
const [l, u] = Z([]), [f, h] = Z(!1), [d, m] = Z(!1), [j, x] = Z({ clickX: 0, clickY: 0 }), [S, V] = Z(null), { currentPath: M, setCurrentPath: Y, currentPathFiles: L, setCurrentPathFiles: I } = Ae(), N = Pe(null), { selectedFiles: w, setSelectedFiles: s, handleDownload: y } = Ve(), { clipBoard: O, handleCutCopy: k, handlePasting: K } = wt(), { activeLayout: U } = $e(), H = st(() => h(!1)), G = [
|
|
3563
3563
|
{
|
|
3564
3564
|
title: "Refresh",
|
|
3565
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3565
|
+
icon: /* @__PURE__ */ n.jsx(Fn, { size: 18 }),
|
|
3566
3566
|
onClick: () => {
|
|
3567
3567
|
}
|
|
3568
3568
|
},
|
|
@@ -3586,7 +3586,7 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3586
3586
|
},
|
|
3587
3587
|
{
|
|
3588
3588
|
title: "Cut",
|
|
3589
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
3589
|
+
icon: /* @__PURE__ */ n.jsx(An, { size: 19 }),
|
|
3590
3590
|
onClick: () => ue(!0)
|
|
3591
3591
|
},
|
|
3592
3592
|
{
|
|
@@ -3620,13 +3620,13 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3620
3620
|
}
|
|
3621
3621
|
];
|
|
3622
3622
|
function te() {
|
|
3623
|
-
S.isDirectory ? (
|
|
3623
|
+
S.isDirectory ? (Y(S.path), u([]), s([])) : r && o.show("previewFile"), h(!1);
|
|
3624
3624
|
}
|
|
3625
3625
|
function ue(C) {
|
|
3626
|
-
|
|
3626
|
+
k(C), h(!1);
|
|
3627
3627
|
}
|
|
3628
3628
|
function ne() {
|
|
3629
|
-
|
|
3629
|
+
K(S), h(!1);
|
|
3630
3630
|
}
|
|
3631
3631
|
function ae() {
|
|
3632
3632
|
h(!1), o.show("rename");
|
|
@@ -3643,13 +3643,13 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3643
3643
|
{
|
|
3644
3644
|
name: qn("New Folder", !0, C),
|
|
3645
3645
|
isDirectory: !0,
|
|
3646
|
-
path:
|
|
3646
|
+
path: M,
|
|
3647
3647
|
isEditing: !0,
|
|
3648
3648
|
key: (/* @__PURE__ */ new Date()).valueOf()
|
|
3649
3649
|
}
|
|
3650
3650
|
]);
|
|
3651
3651
|
}, D = () => {
|
|
3652
|
-
I((C) => (C[l.at(-1)] && (C[l.at(-1)].isEditing = !0), C)), u([]),
|
|
3652
|
+
I((C) => (C[l.at(-1)] && (C[l.at(-1)].isEditing = !0), C)), u([]), s([]);
|
|
3653
3653
|
}, b = (C, z) => {
|
|
3654
3654
|
C.preventDefault(), x({ clickX: C.clientX, clickY: C.clientY }), m(z), h(!0);
|
|
3655
3655
|
};
|
|
@@ -3664,20 +3664,20 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3664
3664
|
break;
|
|
3665
3665
|
}
|
|
3666
3666
|
}, [o.isActive]), ge(() => {
|
|
3667
|
-
u([]),
|
|
3668
|
-
}, [
|
|
3667
|
+
u([]), s([]);
|
|
3668
|
+
}, [M]), ge(() => {
|
|
3669
3669
|
w.length > 0 ? u(() => w.map((C) => L.findIndex((z) => z.path === C.path))) : u([]);
|
|
3670
3670
|
}, [w, L]), /* @__PURE__ */ n.jsxs(
|
|
3671
3671
|
"div",
|
|
3672
3672
|
{
|
|
3673
3673
|
ref: N,
|
|
3674
|
-
className: `files ${
|
|
3674
|
+
className: `files ${U}`,
|
|
3675
3675
|
onContextMenu: (C) => b(C, !1),
|
|
3676
3676
|
onClick: () => {
|
|
3677
|
-
u([]),
|
|
3677
|
+
u([]), s((C) => C.length > 0 ? [] : C);
|
|
3678
3678
|
},
|
|
3679
3679
|
children: [
|
|
3680
|
-
|
|
3680
|
+
U === "list" && /* @__PURE__ */ n.jsxs("div", { className: "files-header", children: [
|
|
3681
3681
|
/* @__PURE__ */ n.jsx("div", { className: "file-name", children: "Name" }),
|
|
3682
3682
|
/* @__PURE__ */ n.jsx("div", { className: "file-date", children: "Modified" }),
|
|
3683
3683
|
/* @__PURE__ */ n.jsx("div", { className: "file-size", children: "Size" })
|
|
@@ -3689,7 +3689,7 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3689
3689
|
file: C,
|
|
3690
3690
|
onCreateFolder: e,
|
|
3691
3691
|
onRename: a,
|
|
3692
|
-
onFileOpen:
|
|
3692
|
+
onFileOpen: i,
|
|
3693
3693
|
enableFilePreview: r,
|
|
3694
3694
|
filesViewRef: N,
|
|
3695
3695
|
selectedFileIndexes: l,
|
|
@@ -3715,7 +3715,7 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3715
3715
|
}
|
|
3716
3716
|
);
|
|
3717
3717
|
}, Xr = ({ triggerAction: e, onDelete: a }) => {
|
|
3718
|
-
const [
|
|
3718
|
+
const [i, r] = Z(""), { selectedFiles: o, setSelectedFiles: l } = Ve();
|
|
3719
3719
|
ge(() => {
|
|
3720
3720
|
r(() => {
|
|
3721
3721
|
if (o.length === 1)
|
|
@@ -3728,7 +3728,7 @@ const Kr = ({ onCreateFolder: e, onRename: a, onFileOpen: s, enableFilePreview:
|
|
|
3728
3728
|
a(o), l([]), e.close();
|
|
3729
3729
|
};
|
|
3730
3730
|
return /* @__PURE__ */ n.jsxs("div", { className: "file-delete-confirm", children: [
|
|
3731
|
-
/* @__PURE__ */ n.jsx("p", { className: "file-delete-confirm-text", children:
|
|
3731
|
+
/* @__PURE__ */ n.jsx("p", { className: "file-delete-confirm-text", children: i }),
|
|
3732
3732
|
/* @__PURE__ */ n.jsxs("div", { className: "file-delete-confirm-actions", children: [
|
|
3733
3733
|
/* @__PURE__ */ n.jsx(Xe, { type: "secondary", onClick: () => e.close(), children: "Cancel" }),
|
|
3734
3734
|
/* @__PURE__ */ n.jsx(Xe, { type: "danger", onClick: u, children: "Delete" })
|
|
@@ -3741,9 +3741,9 @@ function Gr(e) {
|
|
|
3741
3741
|
function Jr(e) {
|
|
3742
3742
|
return ie({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" }, child: [] }, { tag: "path", attr: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" }, child: [] }] })(e);
|
|
3743
3743
|
}
|
|
3744
|
-
const Zr = ({ percent: e = 0, isCanceled: a = !1, isCompleted:
|
|
3744
|
+
const Zr = ({ percent: e = 0, isCanceled: a = !1, isCompleted: i = !1, error: r }) => /* @__PURE__ */ n.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
|
|
3745
3745
|
!r && /* @__PURE__ */ n.jsx("div", { className: "fm-progress-bar", children: /* @__PURE__ */ n.jsx("div", { className: "fm-progress-bar-fill", style: { width: `${e}%` } }) }),
|
|
3746
|
-
a ? /* @__PURE__ */ n.jsx("span", { className: "fm-upload-canceled", children: "Canceled" }) : r ? /* @__PURE__ */ n.jsx("span", { className: "fm-upload-canceled", children: r }) : /* @__PURE__ */ n.jsx("div", { className: "fm-progress-status", children: /* @__PURE__ */ n.jsx("span", { children:
|
|
3746
|
+
a ? /* @__PURE__ */ n.jsx("span", { className: "fm-upload-canceled", children: "Canceled" }) : r ? /* @__PURE__ */ n.jsx("span", { className: "fm-upload-canceled", children: r }) : /* @__PURE__ */ n.jsx("div", { className: "fm-progress-status", children: /* @__PURE__ */ n.jsx("span", { children: i ? "Completed" : e + "% done" }) })
|
|
3747
3747
|
] });
|
|
3748
3748
|
function Qr(e) {
|
|
3749
3749
|
return ie({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z" }, child: [] }] })(e);
|
|
@@ -3751,14 +3751,14 @@ function Qr(e) {
|
|
|
3751
3751
|
const ea = ({
|
|
3752
3752
|
index: e,
|
|
3753
3753
|
fileData: a,
|
|
3754
|
-
setFiles:
|
|
3754
|
+
setFiles: i,
|
|
3755
3755
|
setIsUploading: r,
|
|
3756
3756
|
fileUploadConfig: o,
|
|
3757
3757
|
onFileUploaded: l,
|
|
3758
3758
|
handleFileRemove: u
|
|
3759
3759
|
}) => {
|
|
3760
|
-
var y, O,
|
|
3761
|
-
const [f, h] = Z(0), [d, m] = Z(!1), [j, x] = Z(!1), [S, V] = Z(!1),
|
|
3760
|
+
var y, O, k, K;
|
|
3761
|
+
const [f, h] = Z(0), [d, m] = Z(!1), [j, x] = Z(!1), [S, V] = Z(!1), M = Xt(33), Y = Pe(), { onError: L } = Ct(), I = (U) => {
|
|
3762
3762
|
h(0), r((G) => ({
|
|
3763
3763
|
...G,
|
|
3764
3764
|
[e]: !1
|
|
@@ -3767,22 +3767,22 @@ const ea = ({
|
|
|
3767
3767
|
type: "upload",
|
|
3768
3768
|
message: "Upload failed.",
|
|
3769
3769
|
response: {
|
|
3770
|
-
status:
|
|
3771
|
-
statusText:
|
|
3772
|
-
data:
|
|
3770
|
+
status: U.status,
|
|
3771
|
+
statusText: U.statusText,
|
|
3772
|
+
data: U.response
|
|
3773
3773
|
}
|
|
3774
3774
|
};
|
|
3775
|
-
|
|
3775
|
+
i(
|
|
3776
3776
|
(G) => G.map((J, te) => e === te ? {
|
|
3777
3777
|
...J,
|
|
3778
3778
|
error: H.message
|
|
3779
3779
|
} : J)
|
|
3780
3780
|
), V(!0), L(H, a.file);
|
|
3781
|
-
}, N = (
|
|
3782
|
-
if (!
|
|
3781
|
+
}, N = (U) => {
|
|
3782
|
+
if (!U.error)
|
|
3783
3783
|
return new Promise((H, G) => {
|
|
3784
3784
|
const J = new XMLHttpRequest();
|
|
3785
|
-
|
|
3785
|
+
Y.current = J, r((ae) => ({
|
|
3786
3786
|
...ae,
|
|
3787
3787
|
[e]: !0
|
|
3788
3788
|
})), J.upload.onprogress = (ae) => {
|
|
@@ -3801,37 +3801,37 @@ const ea = ({
|
|
|
3801
3801
|
const te = o == null ? void 0 : o.headers;
|
|
3802
3802
|
for (let ae in te)
|
|
3803
3803
|
J.setRequestHeader(ae, te[ae]);
|
|
3804
|
-
const ue = new FormData(), ne =
|
|
3804
|
+
const ue = new FormData(), ne = U == null ? void 0 : U.appendData;
|
|
3805
3805
|
for (let ae in ne)
|
|
3806
3806
|
ne[ae] && ue.append(ae, ne[ae]);
|
|
3807
|
-
ue.append("file",
|
|
3807
|
+
ue.append("file", U.file), J.send(ue);
|
|
3808
3808
|
});
|
|
3809
3809
|
};
|
|
3810
3810
|
ge(() => {
|
|
3811
|
-
|
|
3811
|
+
Y.current || N(a);
|
|
3812
3812
|
}, []);
|
|
3813
3813
|
const w = () => {
|
|
3814
|
-
|
|
3815
|
-
...
|
|
3814
|
+
Y.current && (Y.current.abort(), r((U) => ({
|
|
3815
|
+
...U,
|
|
3816
3816
|
[e]: !1
|
|
3817
3817
|
})), x(!0), h(0));
|
|
3818
|
-
},
|
|
3819
|
-
a != null && a.file && (
|
|
3820
|
-
(
|
|
3818
|
+
}, s = () => {
|
|
3819
|
+
a != null && a.file && (i(
|
|
3820
|
+
(U) => U.map((H, G) => e === G ? {
|
|
3821
3821
|
...H,
|
|
3822
3822
|
error: !1
|
|
3823
3823
|
} : H)
|
|
3824
3824
|
), N({ ...a, error: !1 }), x(!1), V(!1));
|
|
3825
3825
|
};
|
|
3826
3826
|
return a.removed ? null : /* @__PURE__ */ n.jsxs("li", { children: [
|
|
3827
|
-
/* @__PURE__ */ n.jsx("div", { className: "file-icon", children:
|
|
3827
|
+
/* @__PURE__ */ n.jsx("div", { className: "file-icon", children: M[Ke((y = a.file) == null ? void 0 : y.name)] ?? /* @__PURE__ */ n.jsx(Kt, { size: 33 }) }),
|
|
3828
3828
|
/* @__PURE__ */ n.jsxs("div", { className: "file", children: [
|
|
3829
3829
|
/* @__PURE__ */ n.jsxs("div", { className: "file-details", children: [
|
|
3830
3830
|
/* @__PURE__ */ n.jsxs("div", { className: "file-info", children: [
|
|
3831
|
-
/* @__PURE__ */ n.jsx("span", { className: "file-name text-truncate", title: (O = a.file) == null ? void 0 : O.name, children: (
|
|
3832
|
-
/* @__PURE__ */ n.jsx("span", { className: "file-size", children: jt((
|
|
3831
|
+
/* @__PURE__ */ n.jsx("span", { className: "file-name text-truncate", title: (O = a.file) == null ? void 0 : O.name, children: (k = a.file) == null ? void 0 : k.name }),
|
|
3832
|
+
/* @__PURE__ */ n.jsx("span", { className: "file-size", children: jt((K = a.file) == null ? void 0 : K.size) })
|
|
3833
3833
|
] }),
|
|
3834
|
-
d ? /* @__PURE__ */ n.jsx(Nr, { color: "#5c5bb1", title: "Uploaded" }) : j || S ? /* @__PURE__ */ n.jsx(Qr, { className: "retry-upload", title: "Retry", onClick:
|
|
3834
|
+
d ? /* @__PURE__ */ n.jsx(Nr, { color: "#5c5bb1", title: "Uploaded" }) : j || S ? /* @__PURE__ */ n.jsx(Qr, { className: "retry-upload", title: "Retry", onClick: s }) : /* @__PURE__ */ n.jsx(
|
|
3835
3835
|
"div",
|
|
3836
3836
|
{
|
|
3837
3837
|
className: "rm-file",
|
|
@@ -3855,46 +3855,47 @@ const ea = ({
|
|
|
3855
3855
|
}, ta = ({
|
|
3856
3856
|
fileUploadConfig: e,
|
|
3857
3857
|
maxFileSize: a,
|
|
3858
|
-
acceptedFileTypes:
|
|
3858
|
+
acceptedFileTypes: i,
|
|
3859
3859
|
onFileUploading: r,
|
|
3860
3860
|
onFileUploaded: o
|
|
3861
3861
|
}) => {
|
|
3862
|
-
const [l, u] = Z([]), [f, h] = Z(!1), [d, m] = Z({}), { currentFolder: j, currentPathFiles: x } =
|
|
3863
|
-
|
|
3864
|
-
},
|
|
3865
|
-
if (!
|
|
3862
|
+
const [l, u] = Z([]), [f, h] = Z(!1), [d, m] = Z({}), { currentFolder: j, currentPathFiles: x } = Ae(), { onError: S } = Ct(), V = Pe(null), M = (s) => {
|
|
3863
|
+
s.key === "Enter" && V.current.click();
|
|
3864
|
+
}, Y = (s) => {
|
|
3865
|
+
if (i && !i.includes(Ke(s.name)))
|
|
3866
|
+
return "File type is not allowed.";
|
|
3866
3867
|
if (x.some(
|
|
3867
|
-
(
|
|
3868
|
+
(k) => k.name.toLowerCase() === s.name.toLowerCase() && !k.isDirectory
|
|
3868
3869
|
)) return "File already exists.";
|
|
3869
|
-
if (a &&
|
|
3870
|
-
}, L = (
|
|
3871
|
-
if (
|
|
3870
|
+
if (a && s.size > a) return `Maximum upload size is ${jt(a, 0)}.`;
|
|
3871
|
+
}, L = (s) => {
|
|
3872
|
+
if (s = s.filter(
|
|
3872
3873
|
(y) => !l.some((O) => O.file.name.toLowerCase() === y.name.toLowerCase())
|
|
3873
|
-
),
|
|
3874
|
-
const y =
|
|
3875
|
-
const
|
|
3876
|
-
return
|
|
3874
|
+
), s.length > 0) {
|
|
3875
|
+
const y = s.map((O) => {
|
|
3876
|
+
const k = r(O, j), K = Y(O);
|
|
3877
|
+
return K && S({ type: "upload", message: K }, O), {
|
|
3877
3878
|
file: O,
|
|
3878
|
-
appendData:
|
|
3879
|
-
...
|
|
3879
|
+
appendData: k,
|
|
3880
|
+
...K && { error: K }
|
|
3880
3881
|
};
|
|
3881
3882
|
});
|
|
3882
3883
|
u((O) => [...O, ...y]);
|
|
3883
3884
|
}
|
|
3884
|
-
}, I = (
|
|
3885
|
-
|
|
3886
|
-
const y = Array.from(
|
|
3885
|
+
}, I = (s) => {
|
|
3886
|
+
s.preventDefault(), h(!1);
|
|
3887
|
+
const y = Array.from(s.dataTransfer.files);
|
|
3887
3888
|
L(y);
|
|
3888
|
-
}, N = (
|
|
3889
|
-
const y = Array.from(
|
|
3889
|
+
}, N = (s) => {
|
|
3890
|
+
const y = Array.from(s.target.files);
|
|
3890
3891
|
L(y);
|
|
3891
|
-
}, w = (
|
|
3892
|
+
}, w = (s) => {
|
|
3892
3893
|
u((y) => {
|
|
3893
|
-
const O = y.map((
|
|
3894
|
-
...
|
|
3894
|
+
const O = y.map((k, K) => s === K ? {
|
|
3895
|
+
...k,
|
|
3895
3896
|
removed: !0
|
|
3896
|
-
} :
|
|
3897
|
-
return O.every((
|
|
3897
|
+
} : k);
|
|
3898
|
+
return O.every((k) => !!k.removed) ? [] : O;
|
|
3898
3899
|
});
|
|
3899
3900
|
};
|
|
3900
3901
|
return /* @__PURE__ */ n.jsxs("div", { className: `fm-upload-file ${l.length > 0 ? "file-selcted" : ""}`, children: [
|
|
@@ -3904,7 +3905,7 @@ const ea = ({
|
|
|
3904
3905
|
{
|
|
3905
3906
|
className: `draggable-file-input ${f ? "dragging" : ""}`,
|
|
3906
3907
|
onDrop: I,
|
|
3907
|
-
onDragOver: (
|
|
3908
|
+
onDragOver: (s) => s.preventDefault(),
|
|
3908
3909
|
onDragEnter: () => h(!0),
|
|
3909
3910
|
onDragLeave: () => h(!1),
|
|
3910
3911
|
children: /* @__PURE__ */ n.jsxs("div", { className: "input-text", children: [
|
|
@@ -3913,7 +3914,7 @@ const ea = ({
|
|
|
3913
3914
|
] })
|
|
3914
3915
|
}
|
|
3915
3916
|
),
|
|
3916
|
-
/* @__PURE__ */ n.jsx("div", { className: "btn-choose-file", children: /* @__PURE__ */ n.jsxs(Xe, { padding: "0", onKeyDown:
|
|
3917
|
+
/* @__PURE__ */ n.jsx("div", { className: "btn-choose-file", children: /* @__PURE__ */ n.jsxs(Xe, { padding: "0", onKeyDown: M, children: [
|
|
3917
3918
|
/* @__PURE__ */ n.jsx("label", { htmlFor: "chooseFile", children: "Choose File" }),
|
|
3918
3919
|
/* @__PURE__ */ n.jsx(
|
|
3919
3920
|
"input",
|
|
@@ -3924,21 +3925,21 @@ const ea = ({
|
|
|
3924
3925
|
className: "choose-file-input",
|
|
3925
3926
|
onChange: N,
|
|
3926
3927
|
multiple: !0,
|
|
3927
|
-
accept:
|
|
3928
|
+
accept: i
|
|
3928
3929
|
}
|
|
3929
3930
|
)
|
|
3930
3931
|
] }) })
|
|
3931
3932
|
] }),
|
|
3932
3933
|
l.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: "files-progress", children: [
|
|
3933
|
-
/* @__PURE__ */ n.jsx("div", { className: "heading", children: Object.values(d).some((
|
|
3934
|
+
/* @__PURE__ */ n.jsx("div", { className: "heading", children: Object.values(d).some((s) => s) ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3934
3935
|
/* @__PURE__ */ n.jsx("h2", { children: "Uploading" }),
|
|
3935
3936
|
/* @__PURE__ */ n.jsx(Tn, { type: "cylon", color: "black", height: 18, width: 20 })
|
|
3936
3937
|
] }) : /* @__PURE__ */ n.jsx("h2", { children: "Completed" }) }),
|
|
3937
|
-
/* @__PURE__ */ n.jsx("ul", { children: l.map((
|
|
3938
|
+
/* @__PURE__ */ n.jsx("ul", { children: l.map((s, y) => /* @__PURE__ */ n.jsx(
|
|
3938
3939
|
ea,
|
|
3939
3940
|
{
|
|
3940
3941
|
index: y,
|
|
3941
|
-
fileData:
|
|
3942
|
+
fileData: s,
|
|
3942
3943
|
setFiles: u,
|
|
3943
3944
|
fileUploadConfig: e,
|
|
3944
3945
|
setIsUploading: m,
|
|
@@ -3951,10 +3952,10 @@ const ea = ({
|
|
|
3951
3952
|
] });
|
|
3952
3953
|
}, fn = ["jpg", "jpeg", "png"], dn = ["mp4", "mov", "avi"], pn = ["mp3", "wav", "m4a"], hn = ["txt", "pdf"], na = ({ filePreviewPath: e }) => {
|
|
3953
3954
|
var x;
|
|
3954
|
-
const [a,
|
|
3955
|
-
|
|
3955
|
+
const [a, i] = Z(!0), [r, o] = Z(!1), { selectedFiles: l } = Ve(), u = Xt(73), f = (x = Ke(l[0].name)) == null ? void 0 : x.toLowerCase(), h = `${e}${l[0].path}`, d = () => {
|
|
3956
|
+
i(!1), o(!1);
|
|
3956
3957
|
}, m = () => {
|
|
3957
|
-
|
|
3958
|
+
i(!1), o(!0);
|
|
3958
3959
|
}, j = () => {
|
|
3959
3960
|
window.location.href = h;
|
|
3960
3961
|
};
|
|
@@ -3965,7 +3966,7 @@ const ea = ({
|
|
|
3965
3966
|
...pn,
|
|
3966
3967
|
...hn
|
|
3967
3968
|
].includes(f) && /* @__PURE__ */ n.jsxs("div", { className: "preview-error", children: [
|
|
3968
|
-
/* @__PURE__ */ n.jsx("span", { className: "error-icon", children: u[f] ?? /* @__PURE__ */ n.jsx(
|
|
3969
|
+
/* @__PURE__ */ n.jsx("span", { className: "error-icon", children: u[f] ?? /* @__PURE__ */ n.jsx(Ar, { size: 73 }) }),
|
|
3969
3970
|
/* @__PURE__ */ n.jsx("span", { className: "error-msg", children: "Sorry! Preview is not available for this file." }),
|
|
3970
3971
|
/* @__PURE__ */ n.jsxs("div", { className: "file-info", children: [
|
|
3971
3972
|
/* @__PURE__ */ n.jsx("span", { className: "file-name", children: l[0].name }),
|
|
@@ -4004,9 +4005,9 @@ const ea = ({
|
|
|
4004
4005
|
}
|
|
4005
4006
|
) })
|
|
4006
4007
|
] });
|
|
4007
|
-
}, Ht = (e) => e.toLowerCase(), je = (e, a,
|
|
4008
|
+
}, Ht = (e) => e.toLowerCase(), je = (e, a, i = !1) => {
|
|
4008
4009
|
const r = Pe(/* @__PURE__ */ new Set([])), o = tr(() => new Set(e.map((h) => Ht(h))), [e]), l = (h) => {
|
|
4009
|
-
if (!h.repeat && (r.current.add(Ht(h.key)), o.isSubsetOf(r.current) && !
|
|
4010
|
+
if (!h.repeat && (r.current.add(Ht(h.key)), o.isSubsetOf(r.current) && !i)) {
|
|
4010
4011
|
h.preventDefault(), a(h);
|
|
4011
4012
|
return;
|
|
4012
4013
|
}
|
|
@@ -4017,7 +4018,7 @@ const ea = ({
|
|
|
4017
4018
|
};
|
|
4018
4019
|
ge(() => (window.addEventListener("keydown", l), window.addEventListener("keyup", u), window.addEventListener("blur", f), () => {
|
|
4019
4020
|
window.removeEventListener("keydown", l), window.removeEventListener("keyup", u), window.removeEventListener("blur", f);
|
|
4020
|
-
}), [o, a,
|
|
4021
|
+
}), [o, a, i]);
|
|
4021
4022
|
}, Ee = {
|
|
4022
4023
|
createFolder: ["Alt", "Shift", "N"],
|
|
4023
4024
|
uploadFiles: ["Control", "U"],
|
|
@@ -4041,7 +4042,7 @@ const ea = ({
|
|
|
4041
4042
|
refresh: ["F5"],
|
|
4042
4043
|
clearSelection: ["Escape"]
|
|
4043
4044
|
}, ra = (e, a) => {
|
|
4044
|
-
const { setClipBoard:
|
|
4045
|
+
const { setClipBoard: i, handleCutCopy: r, handlePasting: o } = wt(), { currentFolder: l, currentPathFiles: u } = Ae(), { setSelectedFiles: f, handleDownload: h } = Ve(), { setActiveLayout: d } = $e(), m = () => {
|
|
4045
4046
|
e.show("createFolder");
|
|
4046
4047
|
}, j = () => {
|
|
4047
4048
|
e.show("uploadFile");
|
|
@@ -4051,9 +4052,9 @@ const ea = ({
|
|
|
4051
4052
|
r(!1);
|
|
4052
4053
|
}, V = () => {
|
|
4053
4054
|
o(l);
|
|
4054
|
-
},
|
|
4055
|
+
}, M = () => {
|
|
4055
4056
|
e.show("rename");
|
|
4056
|
-
},
|
|
4057
|
+
}, Y = () => {
|
|
4057
4058
|
h();
|
|
4058
4059
|
}, L = () => {
|
|
4059
4060
|
e.show("delete");
|
|
@@ -4063,20 +4064,20 @@ const ea = ({
|
|
|
4063
4064
|
u.length > 0 && f([u.at(-1)]);
|
|
4064
4065
|
}, w = () => {
|
|
4065
4066
|
f(u);
|
|
4066
|
-
},
|
|
4067
|
-
f((
|
|
4067
|
+
}, s = () => {
|
|
4068
|
+
f((K) => K.length > 0 ? [] : K);
|
|
4068
4069
|
}, y = () => {
|
|
4069
|
-
Ge(a, "onRefresh"),
|
|
4070
|
+
Ge(a, "onRefresh"), i(null);
|
|
4070
4071
|
}, O = () => {
|
|
4071
4072
|
d("grid");
|
|
4072
|
-
},
|
|
4073
|
+
}, k = () => {
|
|
4073
4074
|
d("list");
|
|
4074
4075
|
};
|
|
4075
|
-
je(Ee.createFolder, m, e.isActive), je(Ee.uploadFiles, j, e.isActive), je(Ee.cut, x, e.isActive), je(Ee.copy, S, e.isActive), je(Ee.paste, V, e.isActive), je(Ee.rename,
|
|
4076
|
+
je(Ee.createFolder, m, e.isActive), je(Ee.uploadFiles, j, e.isActive), je(Ee.cut, x, e.isActive), je(Ee.copy, S, e.isActive), je(Ee.paste, V, e.isActive), je(Ee.rename, M, e.isActive), je(Ee.download, Y, e.isActive), je(Ee.delete, L, e.isActive), je(Ee.jumpToFirst, I, e.isActive), je(Ee.jumpToLast, N, e.isActive), je(Ee.selectAll, w, e.isActive), je(Ee.clearSelection, s, e.isActive), je(Ee.refresh, y, e.isActive), je(Ee.gridLayout, O, e.isActive), je(Ee.listLayout, k, e.isActive);
|
|
4076
4077
|
}, aa = ({
|
|
4077
4078
|
fileUploadConfig: e,
|
|
4078
4079
|
onFileUploading: a,
|
|
4079
|
-
onFileUploaded:
|
|
4080
|
+
onFileUploaded: i,
|
|
4080
4081
|
onDelete: r,
|
|
4081
4082
|
onRefresh: o,
|
|
4082
4083
|
maxFileSize: l,
|
|
@@ -4096,7 +4097,7 @@ const ea = ({
|
|
|
4096
4097
|
maxFileSize: l,
|
|
4097
4098
|
acceptedFileTypes: f,
|
|
4098
4099
|
onFileUploading: a,
|
|
4099
|
-
onFileUploaded:
|
|
4100
|
+
onFileUploaded: i
|
|
4100
4101
|
}
|
|
4101
4102
|
),
|
|
4102
4103
|
width: "35%"
|
|
@@ -4130,10 +4131,10 @@ const ea = ({
|
|
|
4130
4131
|
}
|
|
4131
4132
|
);
|
|
4132
4133
|
}, oa = () => {
|
|
4133
|
-
const [e, a] = Z(!1), [
|
|
4134
|
+
const [e, a] = Z(!1), [i, r] = Z(null);
|
|
4134
4135
|
return {
|
|
4135
4136
|
isActive: e,
|
|
4136
|
-
actionType:
|
|
4137
|
+
actionType: i,
|
|
4137
4138
|
show: (u) => {
|
|
4138
4139
|
a(!0), r(u);
|
|
4139
4140
|
},
|
|
@@ -4142,10 +4143,10 @@ const ea = ({
|
|
|
4142
4143
|
}
|
|
4143
4144
|
};
|
|
4144
4145
|
}, ia = (e, a) => {
|
|
4145
|
-
const [
|
|
4146
|
+
const [i, r] = Z({ col1: e, col2: a }), [o, l] = Z(!1), u = Pe(null);
|
|
4146
4147
|
return {
|
|
4147
4148
|
containerRef: u,
|
|
4148
|
-
colSizes:
|
|
4149
|
+
colSizes: i,
|
|
4149
4150
|
setColSizes: r,
|
|
4150
4151
|
isDragging: o,
|
|
4151
4152
|
handleMouseDown: () => {
|
|
@@ -4175,66 +4176,66 @@ var vn;
|
|
|
4175
4176
|
function sa() {
|
|
4176
4177
|
if (vn) return he;
|
|
4177
4178
|
vn = 1;
|
|
4178
|
-
var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103,
|
|
4179
|
-
function N(
|
|
4180
|
-
if (typeof
|
|
4181
|
-
var y =
|
|
4179
|
+
var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, V = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, Y = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
4180
|
+
function N(s) {
|
|
4181
|
+
if (typeof s == "object" && s !== null) {
|
|
4182
|
+
var y = s.$$typeof;
|
|
4182
4183
|
switch (y) {
|
|
4183
4184
|
case a:
|
|
4184
|
-
switch (
|
|
4185
|
+
switch (s = s.type, s) {
|
|
4185
4186
|
case h:
|
|
4186
4187
|
case d:
|
|
4187
4188
|
case r:
|
|
4188
4189
|
case l:
|
|
4189
4190
|
case o:
|
|
4190
4191
|
case j:
|
|
4191
|
-
return
|
|
4192
|
+
return s;
|
|
4192
4193
|
default:
|
|
4193
|
-
switch (
|
|
4194
|
+
switch (s = s && s.$$typeof, s) {
|
|
4194
4195
|
case f:
|
|
4195
4196
|
case m:
|
|
4196
4197
|
case V:
|
|
4197
4198
|
case S:
|
|
4198
4199
|
case u:
|
|
4199
|
-
return
|
|
4200
|
+
return s;
|
|
4200
4201
|
default:
|
|
4201
4202
|
return y;
|
|
4202
4203
|
}
|
|
4203
4204
|
}
|
|
4204
|
-
case
|
|
4205
|
+
case i:
|
|
4205
4206
|
return y;
|
|
4206
4207
|
}
|
|
4207
4208
|
}
|
|
4208
4209
|
}
|
|
4209
|
-
function w(
|
|
4210
|
-
return N(
|
|
4210
|
+
function w(s) {
|
|
4211
|
+
return N(s) === d;
|
|
4211
4212
|
}
|
|
4212
|
-
return he.AsyncMode = h, he.ConcurrentMode = d, he.ContextConsumer = f, he.ContextProvider = u, he.Element = a, he.ForwardRef = m, he.Fragment = r, he.Lazy = V, he.Memo = S, he.Portal =
|
|
4213
|
-
return w(
|
|
4214
|
-
}, he.isConcurrentMode = w, he.isContextConsumer = function(
|
|
4215
|
-
return N(
|
|
4216
|
-
}, he.isContextProvider = function(
|
|
4217
|
-
return N(
|
|
4218
|
-
}, he.isElement = function(
|
|
4219
|
-
return typeof
|
|
4220
|
-
}, he.isForwardRef = function(
|
|
4221
|
-
return N(
|
|
4222
|
-
}, he.isFragment = function(
|
|
4223
|
-
return N(
|
|
4224
|
-
}, he.isLazy = function(
|
|
4225
|
-
return N(
|
|
4226
|
-
}, he.isMemo = function(
|
|
4227
|
-
return N(
|
|
4228
|
-
}, he.isPortal = function(
|
|
4229
|
-
return N(
|
|
4230
|
-
}, he.isProfiler = function(
|
|
4231
|
-
return N(
|
|
4232
|
-
}, he.isStrictMode = function(
|
|
4233
|
-
return N(
|
|
4234
|
-
}, he.isSuspense = function(
|
|
4235
|
-
return N(
|
|
4236
|
-
}, he.isValidElementType = function(
|
|
4237
|
-
return typeof
|
|
4213
|
+
return he.AsyncMode = h, he.ConcurrentMode = d, he.ContextConsumer = f, he.ContextProvider = u, he.Element = a, he.ForwardRef = m, he.Fragment = r, he.Lazy = V, he.Memo = S, he.Portal = i, he.Profiler = l, he.StrictMode = o, he.Suspense = j, he.isAsyncMode = function(s) {
|
|
4214
|
+
return w(s) || N(s) === h;
|
|
4215
|
+
}, he.isConcurrentMode = w, he.isContextConsumer = function(s) {
|
|
4216
|
+
return N(s) === f;
|
|
4217
|
+
}, he.isContextProvider = function(s) {
|
|
4218
|
+
return N(s) === u;
|
|
4219
|
+
}, he.isElement = function(s) {
|
|
4220
|
+
return typeof s == "object" && s !== null && s.$$typeof === a;
|
|
4221
|
+
}, he.isForwardRef = function(s) {
|
|
4222
|
+
return N(s) === m;
|
|
4223
|
+
}, he.isFragment = function(s) {
|
|
4224
|
+
return N(s) === r;
|
|
4225
|
+
}, he.isLazy = function(s) {
|
|
4226
|
+
return N(s) === V;
|
|
4227
|
+
}, he.isMemo = function(s) {
|
|
4228
|
+
return N(s) === S;
|
|
4229
|
+
}, he.isPortal = function(s) {
|
|
4230
|
+
return N(s) === i;
|
|
4231
|
+
}, he.isProfiler = function(s) {
|
|
4232
|
+
return N(s) === l;
|
|
4233
|
+
}, he.isStrictMode = function(s) {
|
|
4234
|
+
return N(s) === o;
|
|
4235
|
+
}, he.isSuspense = function(s) {
|
|
4236
|
+
return N(s) === j;
|
|
4237
|
+
}, he.isValidElementType = function(s) {
|
|
4238
|
+
return typeof s == "string" || typeof s == "function" || s === r || s === d || s === l || s === o || s === j || s === x || typeof s == "object" && s !== null && (s.$$typeof === V || s.$$typeof === S || s.$$typeof === u || s.$$typeof === f || s.$$typeof === m || s.$$typeof === Y || s.$$typeof === L || s.$$typeof === I || s.$$typeof === M);
|
|
4238
4239
|
}, he.typeOf = N, he;
|
|
4239
4240
|
}
|
|
4240
4241
|
var ve = {};
|
|
@@ -4249,10 +4250,10 @@ var ve = {};
|
|
|
4249
4250
|
var mn;
|
|
4250
4251
|
function ca() {
|
|
4251
4252
|
return mn || (mn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4252
|
-
var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103,
|
|
4253
|
+
var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, j = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, S = e ? Symbol.for("react.memo") : 60115, V = e ? Symbol.for("react.lazy") : 60116, M = e ? Symbol.for("react.block") : 60121, Y = e ? Symbol.for("react.fundamental") : 60117, L = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
4253
4254
|
function N(E) {
|
|
4254
4255
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4255
|
-
E === r || E === d || E === l || E === o || E === j || E === x || typeof E == "object" && E !== null && (E.$$typeof === V || E.$$typeof === S || E.$$typeof === u || E.$$typeof === f || E.$$typeof === m || E.$$typeof ===
|
|
4256
|
+
E === r || E === d || E === l || E === o || E === j || E === x || typeof E == "object" && E !== null && (E.$$typeof === V || E.$$typeof === S || E.$$typeof === u || E.$$typeof === f || E.$$typeof === m || E.$$typeof === Y || E.$$typeof === L || E.$$typeof === I || E.$$typeof === M);
|
|
4256
4257
|
}
|
|
4257
4258
|
function w(E) {
|
|
4258
4259
|
if (typeof E == "object" && E !== null) {
|
|
@@ -4281,12 +4282,12 @@ function ca() {
|
|
|
4281
4282
|
return ce;
|
|
4282
4283
|
}
|
|
4283
4284
|
}
|
|
4284
|
-
case
|
|
4285
|
+
case i:
|
|
4285
4286
|
return ce;
|
|
4286
4287
|
}
|
|
4287
4288
|
}
|
|
4288
4289
|
}
|
|
4289
|
-
var
|
|
4290
|
+
var s = h, y = d, O = f, k = u, K = a, U = m, H = r, G = V, J = S, te = i, ue = l, ne = o, ae = j, de = !1;
|
|
4290
4291
|
function ee(E) {
|
|
4291
4292
|
return de || (de = !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.")), T(E) || w(E) === h;
|
|
4292
4293
|
}
|
|
@@ -4305,7 +4306,7 @@ function ca() {
|
|
|
4305
4306
|
function z(E) {
|
|
4306
4307
|
return w(E) === m;
|
|
4307
4308
|
}
|
|
4308
|
-
function
|
|
4309
|
+
function q(E) {
|
|
4309
4310
|
return w(E) === r;
|
|
4310
4311
|
}
|
|
4311
4312
|
function $(E) {
|
|
@@ -4315,7 +4316,7 @@ function ca() {
|
|
|
4315
4316
|
return w(E) === S;
|
|
4316
4317
|
}
|
|
4317
4318
|
function g(E) {
|
|
4318
|
-
return w(E) ===
|
|
4319
|
+
return w(E) === i;
|
|
4319
4320
|
}
|
|
4320
4321
|
function _(E) {
|
|
4321
4322
|
return w(E) === l;
|
|
@@ -4326,7 +4327,7 @@ function ca() {
|
|
|
4326
4327
|
function B(E) {
|
|
4327
4328
|
return w(E) === j;
|
|
4328
4329
|
}
|
|
4329
|
-
ve.AsyncMode =
|
|
4330
|
+
ve.AsyncMode = s, ve.ConcurrentMode = y, ve.ContextConsumer = O, ve.ContextProvider = k, ve.Element = K, ve.ForwardRef = U, ve.Fragment = H, ve.Lazy = G, ve.Memo = J, ve.Portal = te, ve.Profiler = ue, ve.StrictMode = ne, ve.Suspense = ae, ve.isAsyncMode = ee, ve.isConcurrentMode = T, ve.isContextConsumer = D, ve.isContextProvider = b, ve.isElement = C, ve.isForwardRef = z, ve.isFragment = q, ve.isLazy = $, ve.isMemo = p, ve.isPortal = g, ve.isProfiler = _, ve.isStrictMode = R, ve.isSuspense = B, ve.isValidElementType = N, ve.typeOf = w;
|
|
4330
4331
|
}()), ve;
|
|
4331
4332
|
}
|
|
4332
4333
|
var yn;
|
|
@@ -4342,7 +4343,7 @@ var Vt, gn;
|
|
|
4342
4343
|
function la() {
|
|
4343
4344
|
if (gn) return Vt;
|
|
4344
4345
|
gn = 1;
|
|
4345
|
-
var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty,
|
|
4346
|
+
var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
4346
4347
|
function r(l) {
|
|
4347
4348
|
if (l == null)
|
|
4348
4349
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
@@ -4378,7 +4379,7 @@ function la() {
|
|
|
4378
4379
|
if (e) {
|
|
4379
4380
|
d = e(f);
|
|
4380
4381
|
for (var x = 0; x < d.length; x++)
|
|
4381
|
-
|
|
4382
|
+
i.call(f, d[x]) && (h[d[x]] = f[d[x]]);
|
|
4382
4383
|
}
|
|
4383
4384
|
}
|
|
4384
4385
|
return h;
|
|
@@ -4402,7 +4403,7 @@ function ua() {
|
|
|
4402
4403
|
var e = function() {
|
|
4403
4404
|
};
|
|
4404
4405
|
if (process.env.NODE_ENV !== "production") {
|
|
4405
|
-
var a = Gt(),
|
|
4406
|
+
var a = Gt(), i = {}, r = Zn();
|
|
4406
4407
|
e = function(l) {
|
|
4407
4408
|
var u = "Warning: " + l;
|
|
4408
4409
|
typeof console < "u" && console.error(u);
|
|
@@ -4430,8 +4431,8 @@ function ua() {
|
|
|
4430
4431
|
}
|
|
4431
4432
|
if (j && !(j instanceof Error) && e(
|
|
4432
4433
|
(h || "React class") + ": type specification of " + f + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof j + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
4433
|
-
), j instanceof Error && !(j.message in
|
|
4434
|
-
|
|
4434
|
+
), j instanceof Error && !(j.message in i)) {
|
|
4435
|
+
i[j.message] = !0;
|
|
4435
4436
|
var S = d ? d() : "";
|
|
4436
4437
|
e(
|
|
4437
4438
|
"Failed " + f + " type: " + j.message + (S ?? "")
|
|
@@ -4441,14 +4442,14 @@ function ua() {
|
|
|
4441
4442
|
}
|
|
4442
4443
|
}
|
|
4443
4444
|
return o.resetWarningCache = function() {
|
|
4444
|
-
process.env.NODE_ENV !== "production" && (
|
|
4445
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
4445
4446
|
}, Dt = o, Dt;
|
|
4446
4447
|
}
|
|
4447
4448
|
var It, wn;
|
|
4448
4449
|
function fa() {
|
|
4449
4450
|
if (wn) return It;
|
|
4450
4451
|
wn = 1;
|
|
4451
|
-
var e = Jn(), a = la(),
|
|
4452
|
+
var e = Jn(), a = la(), i = Gt(), r = Zn(), o = ua(), l = function() {
|
|
4452
4453
|
};
|
|
4453
4454
|
process.env.NODE_ENV !== "production" && (l = function(f) {
|
|
4454
4455
|
var h = "Warning: " + f;
|
|
@@ -4480,27 +4481,27 @@ function fa() {
|
|
|
4480
4481
|
any: I(),
|
|
4481
4482
|
arrayOf: N,
|
|
4482
4483
|
element: w(),
|
|
4483
|
-
elementType:
|
|
4484
|
+
elementType: s(),
|
|
4484
4485
|
instanceOf: y,
|
|
4485
|
-
node:
|
|
4486
|
-
objectOf:
|
|
4486
|
+
node: U(),
|
|
4487
|
+
objectOf: k,
|
|
4487
4488
|
oneOf: O,
|
|
4488
|
-
oneOfType:
|
|
4489
|
+
oneOfType: K,
|
|
4489
4490
|
shape: G,
|
|
4490
4491
|
exact: J
|
|
4491
4492
|
};
|
|
4492
4493
|
function V(T, D) {
|
|
4493
4494
|
return T === D ? T !== 0 || 1 / T === 1 / D : T !== T && D !== D;
|
|
4494
4495
|
}
|
|
4495
|
-
function
|
|
4496
|
+
function M(T, D) {
|
|
4496
4497
|
this.message = T, this.data = D && typeof D == "object" ? D : {}, this.stack = "";
|
|
4497
4498
|
}
|
|
4498
|
-
|
|
4499
|
-
function
|
|
4499
|
+
M.prototype = Error.prototype;
|
|
4500
|
+
function Y(T) {
|
|
4500
4501
|
if (process.env.NODE_ENV !== "production")
|
|
4501
4502
|
var D = {}, b = 0;
|
|
4502
|
-
function C(
|
|
4503
|
-
if (g = g || x, R = R || p, B !==
|
|
4503
|
+
function C(q, $, p, g, _, R, B) {
|
|
4504
|
+
if (g = g || x, R = R || p, B !== i) {
|
|
4504
4505
|
if (h) {
|
|
4505
4506
|
var E = new Error(
|
|
4506
4507
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -4514,84 +4515,84 @@ function fa() {
|
|
|
4514
4515
|
), D[ce] = !0, b++);
|
|
4515
4516
|
}
|
|
4516
4517
|
}
|
|
4517
|
-
return $[p] == null ?
|
|
4518
|
+
return $[p] == null ? q ? $[p] === null ? new M("The " + _ + " `" + R + "` is marked as required " + ("in `" + g + "`, but its value is `null`.")) : new M("The " + _ + " `" + R + "` is marked as required in " + ("`" + g + "`, but its value is `undefined`.")) : null : T($, p, g, _, R);
|
|
4518
4519
|
}
|
|
4519
4520
|
var z = C.bind(null, !1);
|
|
4520
4521
|
return z.isRequired = C.bind(null, !0), z;
|
|
4521
4522
|
}
|
|
4522
4523
|
function L(T) {
|
|
4523
|
-
function D(b, C, z,
|
|
4524
|
+
function D(b, C, z, q, $, p) {
|
|
4524
4525
|
var g = b[C], _ = ne(g);
|
|
4525
4526
|
if (_ !== T) {
|
|
4526
4527
|
var R = ae(g);
|
|
4527
|
-
return new
|
|
4528
|
-
"Invalid " +
|
|
4528
|
+
return new M(
|
|
4529
|
+
"Invalid " + q + " `" + $ + "` of type " + ("`" + R + "` supplied to `" + z + "`, expected ") + ("`" + T + "`."),
|
|
4529
4530
|
{ expectedType: T }
|
|
4530
4531
|
);
|
|
4531
4532
|
}
|
|
4532
4533
|
return null;
|
|
4533
4534
|
}
|
|
4534
|
-
return
|
|
4535
|
+
return Y(D);
|
|
4535
4536
|
}
|
|
4536
4537
|
function I() {
|
|
4537
|
-
return
|
|
4538
|
+
return Y(u);
|
|
4538
4539
|
}
|
|
4539
4540
|
function N(T) {
|
|
4540
|
-
function D(b, C, z,
|
|
4541
|
+
function D(b, C, z, q, $) {
|
|
4541
4542
|
if (typeof T != "function")
|
|
4542
|
-
return new
|
|
4543
|
+
return new M("Property `" + $ + "` of component `" + z + "` has invalid PropType notation inside arrayOf.");
|
|
4543
4544
|
var p = b[C];
|
|
4544
4545
|
if (!Array.isArray(p)) {
|
|
4545
4546
|
var g = ne(p);
|
|
4546
|
-
return new
|
|
4547
|
+
return new M("Invalid " + q + " `" + $ + "` of type " + ("`" + g + "` supplied to `" + z + "`, expected an array."));
|
|
4547
4548
|
}
|
|
4548
4549
|
for (var _ = 0; _ < p.length; _++) {
|
|
4549
|
-
var R = T(p, _, z,
|
|
4550
|
+
var R = T(p, _, z, q, $ + "[" + _ + "]", i);
|
|
4550
4551
|
if (R instanceof Error)
|
|
4551
4552
|
return R;
|
|
4552
4553
|
}
|
|
4553
4554
|
return null;
|
|
4554
4555
|
}
|
|
4555
|
-
return
|
|
4556
|
+
return Y(D);
|
|
4556
4557
|
}
|
|
4557
4558
|
function w() {
|
|
4558
|
-
function T(D, b, C, z,
|
|
4559
|
+
function T(D, b, C, z, q) {
|
|
4559
4560
|
var $ = D[b];
|
|
4560
4561
|
if (!f($)) {
|
|
4561
4562
|
var p = ne($);
|
|
4562
|
-
return new
|
|
4563
|
+
return new M("Invalid " + z + " `" + q + "` of type " + ("`" + p + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
4563
4564
|
}
|
|
4564
4565
|
return null;
|
|
4565
4566
|
}
|
|
4566
|
-
return
|
|
4567
|
+
return Y(T);
|
|
4567
4568
|
}
|
|
4568
|
-
function
|
|
4569
|
-
function T(D, b, C, z,
|
|
4569
|
+
function s() {
|
|
4570
|
+
function T(D, b, C, z, q) {
|
|
4570
4571
|
var $ = D[b];
|
|
4571
4572
|
if (!e.isValidElementType($)) {
|
|
4572
4573
|
var p = ne($);
|
|
4573
|
-
return new
|
|
4574
|
+
return new M("Invalid " + z + " `" + q + "` of type " + ("`" + p + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
4574
4575
|
}
|
|
4575
4576
|
return null;
|
|
4576
4577
|
}
|
|
4577
|
-
return
|
|
4578
|
+
return Y(T);
|
|
4578
4579
|
}
|
|
4579
4580
|
function y(T) {
|
|
4580
|
-
function D(b, C, z,
|
|
4581
|
+
function D(b, C, z, q, $) {
|
|
4581
4582
|
if (!(b[C] instanceof T)) {
|
|
4582
4583
|
var p = T.name || x, g = ee(b[C]);
|
|
4583
|
-
return new
|
|
4584
|
+
return new M("Invalid " + q + " `" + $ + "` of type " + ("`" + g + "` supplied to `" + z + "`, expected ") + ("instance of `" + p + "`."));
|
|
4584
4585
|
}
|
|
4585
4586
|
return null;
|
|
4586
4587
|
}
|
|
4587
|
-
return
|
|
4588
|
+
return Y(D);
|
|
4588
4589
|
}
|
|
4589
4590
|
function O(T) {
|
|
4590
4591
|
if (!Array.isArray(T))
|
|
4591
4592
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
|
|
4592
4593
|
"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])."
|
|
4593
4594
|
) : l("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
4594
|
-
function D(b, C, z,
|
|
4595
|
+
function D(b, C, z, q, $) {
|
|
4595
4596
|
for (var p = b[C], g = 0; g < T.length; g++)
|
|
4596
4597
|
if (V(p, T[g]))
|
|
4597
4598
|
return null;
|
|
@@ -4599,28 +4600,28 @@ function fa() {
|
|
|
4599
4600
|
var ce = ae(E);
|
|
4600
4601
|
return ce === "symbol" ? String(E) : E;
|
|
4601
4602
|
});
|
|
4602
|
-
return new
|
|
4603
|
+
return new M("Invalid " + q + " `" + $ + "` of value `" + String(p) + "` " + ("supplied to `" + z + "`, expected one of " + _ + "."));
|
|
4603
4604
|
}
|
|
4604
|
-
return
|
|
4605
|
+
return Y(D);
|
|
4605
4606
|
}
|
|
4606
|
-
function
|
|
4607
|
-
function D(b, C, z,
|
|
4607
|
+
function k(T) {
|
|
4608
|
+
function D(b, C, z, q, $) {
|
|
4608
4609
|
if (typeof T != "function")
|
|
4609
|
-
return new
|
|
4610
|
+
return new M("Property `" + $ + "` of component `" + z + "` has invalid PropType notation inside objectOf.");
|
|
4610
4611
|
var p = b[C], g = ne(p);
|
|
4611
4612
|
if (g !== "object")
|
|
4612
|
-
return new
|
|
4613
|
+
return new M("Invalid " + q + " `" + $ + "` of type " + ("`" + g + "` supplied to `" + z + "`, expected an object."));
|
|
4613
4614
|
for (var _ in p)
|
|
4614
4615
|
if (r(p, _)) {
|
|
4615
|
-
var R = T(p, _, z,
|
|
4616
|
+
var R = T(p, _, z, q, $ + "." + _, i);
|
|
4616
4617
|
if (R instanceof Error)
|
|
4617
4618
|
return R;
|
|
4618
4619
|
}
|
|
4619
4620
|
return null;
|
|
4620
4621
|
}
|
|
4621
|
-
return
|
|
4622
|
+
return Y(D);
|
|
4622
4623
|
}
|
|
4623
|
-
function
|
|
4624
|
+
function K(T) {
|
|
4624
4625
|
if (!Array.isArray(T))
|
|
4625
4626
|
return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
4626
4627
|
for (var D = 0; D < T.length; D++) {
|
|
@@ -4630,68 +4631,68 @@ function fa() {
|
|
|
4630
4631
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + de(b) + " at index " + D + "."
|
|
4631
4632
|
), u;
|
|
4632
4633
|
}
|
|
4633
|
-
function C(z,
|
|
4634
|
+
function C(z, q, $, p, g) {
|
|
4634
4635
|
for (var _ = [], R = 0; R < T.length; R++) {
|
|
4635
|
-
var B = T[R], E = B(z,
|
|
4636
|
+
var B = T[R], E = B(z, q, $, p, g, i);
|
|
4636
4637
|
if (E == null)
|
|
4637
4638
|
return null;
|
|
4638
4639
|
E.data && r(E.data, "expectedType") && _.push(E.data.expectedType);
|
|
4639
4640
|
}
|
|
4640
4641
|
var ce = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
|
4641
|
-
return new
|
|
4642
|
+
return new M("Invalid " + p + " `" + g + "` supplied to " + ("`" + $ + "`" + ce + "."));
|
|
4642
4643
|
}
|
|
4643
|
-
return
|
|
4644
|
+
return Y(C);
|
|
4644
4645
|
}
|
|
4645
|
-
function
|
|
4646
|
-
function T(D, b, C, z,
|
|
4647
|
-
return te(D[b]) ? null : new
|
|
4646
|
+
function U() {
|
|
4647
|
+
function T(D, b, C, z, q) {
|
|
4648
|
+
return te(D[b]) ? null : new M("Invalid " + z + " `" + q + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
4648
4649
|
}
|
|
4649
|
-
return
|
|
4650
|
+
return Y(T);
|
|
4650
4651
|
}
|
|
4651
4652
|
function H(T, D, b, C, z) {
|
|
4652
|
-
return new
|
|
4653
|
+
return new M(
|
|
4653
4654
|
(T || "React class") + ": " + D + " type `" + b + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
|
|
4654
4655
|
);
|
|
4655
4656
|
}
|
|
4656
4657
|
function G(T) {
|
|
4657
|
-
function D(b, C, z,
|
|
4658
|
+
function D(b, C, z, q, $) {
|
|
4658
4659
|
var p = b[C], g = ne(p);
|
|
4659
4660
|
if (g !== "object")
|
|
4660
|
-
return new
|
|
4661
|
+
return new M("Invalid " + q + " `" + $ + "` of type `" + g + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
4661
4662
|
for (var _ in T) {
|
|
4662
4663
|
var R = T[_];
|
|
4663
4664
|
if (typeof R != "function")
|
|
4664
|
-
return H(z,
|
|
4665
|
-
var B = R(p, _, z,
|
|
4665
|
+
return H(z, q, $, _, ae(R));
|
|
4666
|
+
var B = R(p, _, z, q, $ + "." + _, i);
|
|
4666
4667
|
if (B)
|
|
4667
4668
|
return B;
|
|
4668
4669
|
}
|
|
4669
4670
|
return null;
|
|
4670
4671
|
}
|
|
4671
|
-
return
|
|
4672
|
+
return Y(D);
|
|
4672
4673
|
}
|
|
4673
4674
|
function J(T) {
|
|
4674
|
-
function D(b, C, z,
|
|
4675
|
+
function D(b, C, z, q, $) {
|
|
4675
4676
|
var p = b[C], g = ne(p);
|
|
4676
4677
|
if (g !== "object")
|
|
4677
|
-
return new
|
|
4678
|
+
return new M("Invalid " + q + " `" + $ + "` of type `" + g + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
4678
4679
|
var _ = a({}, b[C], T);
|
|
4679
4680
|
for (var R in _) {
|
|
4680
4681
|
var B = T[R];
|
|
4681
4682
|
if (r(T, R) && typeof B != "function")
|
|
4682
|
-
return H(z,
|
|
4683
|
+
return H(z, q, $, R, ae(B));
|
|
4683
4684
|
if (!B)
|
|
4684
|
-
return new
|
|
4685
|
-
"Invalid " +
|
|
4685
|
+
return new M(
|
|
4686
|
+
"Invalid " + q + " `" + $ + "` key `" + R + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(b[C], null, " ") + `
|
|
4686
4687
|
Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
4687
4688
|
);
|
|
4688
|
-
var E = B(p, R, z,
|
|
4689
|
+
var E = B(p, R, z, q, $ + "." + R, i);
|
|
4689
4690
|
if (E)
|
|
4690
4691
|
return E;
|
|
4691
4692
|
}
|
|
4692
4693
|
return null;
|
|
4693
4694
|
}
|
|
4694
|
-
return
|
|
4695
|
+
return Y(D);
|
|
4695
4696
|
}
|
|
4696
4697
|
function te(T) {
|
|
4697
4698
|
switch (typeof T) {
|
|
@@ -4772,9 +4773,9 @@ function da() {
|
|
|
4772
4773
|
var e = Gt();
|
|
4773
4774
|
function a() {
|
|
4774
4775
|
}
|
|
4775
|
-
function
|
|
4776
|
+
function i() {
|
|
4776
4777
|
}
|
|
4777
|
-
return
|
|
4778
|
+
return i.resetWarningCache = a, $t = function() {
|
|
4778
4779
|
function r(u, f, h, d, m, j) {
|
|
4779
4780
|
if (j !== e) {
|
|
4780
4781
|
var x = new Error(
|
|
@@ -4807,7 +4808,7 @@ function da() {
|
|
|
4807
4808
|
oneOfType: o,
|
|
4808
4809
|
shape: o,
|
|
4809
4810
|
exact: o,
|
|
4810
|
-
checkPropTypes:
|
|
4811
|
+
checkPropTypes: i,
|
|
4811
4812
|
resetWarningCache: a
|
|
4812
4813
|
};
|
|
4813
4814
|
return l.PropTypes = l, l;
|
|
@@ -4819,26 +4820,26 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4819
4820
|
} else
|
|
4820
4821
|
Ut.exports = da()();
|
|
4821
4822
|
var va = Ut.exports;
|
|
4822
|
-
const pe = /* @__PURE__ */ Yt(va), ma = (e, a,
|
|
4823
|
+
const pe = /* @__PURE__ */ Yt(va), ma = (e, a, i) => {
|
|
4823
4824
|
const r = e[a];
|
|
4824
4825
|
if (r && isNaN(Date.parse(r)))
|
|
4825
4826
|
return new Error(
|
|
4826
|
-
`Invalid prop \`${a}\` supplied to \`${
|
|
4827
|
+
`Invalid prop \`${a}\` supplied to \`${i}\`. Expected a valid date string (ISO 8601) but received \`${r}\`.`
|
|
4827
4828
|
);
|
|
4828
|
-
}, En = (e, a,
|
|
4829
|
+
}, En = (e, a, i) => {
|
|
4829
4830
|
const r = e[a];
|
|
4830
4831
|
try {
|
|
4831
4832
|
new URL(r);
|
|
4832
4833
|
return;
|
|
4833
4834
|
} catch {
|
|
4834
4835
|
return new Error(
|
|
4835
|
-
`Invalid prop \`${a}\` supplied to \`${
|
|
4836
|
+
`Invalid prop \`${a}\` supplied to \`${i}\`. Expected a valid URL but received \`${r}\`.`
|
|
4836
4837
|
);
|
|
4837
4838
|
}
|
|
4838
4839
|
}, Qn = ({
|
|
4839
4840
|
files: e,
|
|
4840
4841
|
fileUploadConfig: a,
|
|
4841
|
-
isLoading:
|
|
4842
|
+
isLoading: i,
|
|
4842
4843
|
onCreateFolder: r,
|
|
4843
4844
|
onFileUploading: o = () => {
|
|
4844
4845
|
},
|
|
@@ -4856,14 +4857,14 @@ const pe = /* @__PURE__ */ Yt(va), ma = (e, a, s) => {
|
|
|
4856
4857
|
onError: S = () => {
|
|
4857
4858
|
},
|
|
4858
4859
|
layout: V = "grid",
|
|
4859
|
-
enableFilePreview:
|
|
4860
|
-
maxFileSize:
|
|
4860
|
+
enableFilePreview: M = !0,
|
|
4861
|
+
maxFileSize: Y,
|
|
4861
4862
|
filePreviewPath: L,
|
|
4862
4863
|
acceptedFileTypes: I,
|
|
4863
4864
|
height: N = "600px",
|
|
4864
4865
|
width: w = "100%"
|
|
4865
4866
|
}) => {
|
|
4866
|
-
const
|
|
4867
|
+
const s = oa(), { containerRef: y, colSizes: O, isDragging: k, handleMouseMove: K, handleMouseUp: U, handleMouseDown: H } = ia(20, 80);
|
|
4867
4868
|
return /* @__PURE__ */ n.jsxs(
|
|
4868
4869
|
"main",
|
|
4869
4870
|
{
|
|
@@ -4871,7 +4872,7 @@ const pe = /* @__PURE__ */ Yt(va), ma = (e, a, s) => {
|
|
|
4871
4872
|
onContextMenu: (G) => G.preventDefault(),
|
|
4872
4873
|
style: { height: N, width: w },
|
|
4873
4874
|
children: [
|
|
4874
|
-
/* @__PURE__ */ n.jsx(Pn, { isLoading:
|
|
4875
|
+
/* @__PURE__ */ n.jsx(Pn, { isLoading: i }),
|
|
4875
4876
|
/* @__PURE__ */ n.jsx(Rr, { filesData: e, onError: S, children: /* @__PURE__ */ n.jsx(Tr, { children: /* @__PURE__ */ n.jsx(Pr, { onDownload: h, children: /* @__PURE__ */ n.jsx(Sr, { onPaste: u, children: /* @__PURE__ */ n.jsxs(Er, { layout: V, children: [
|
|
4876
4877
|
/* @__PURE__ */ n.jsx(
|
|
4877
4878
|
kr,
|
|
@@ -4880,15 +4881,15 @@ const pe = /* @__PURE__ */ Yt(va), ma = (e, a, s) => {
|
|
|
4880
4881
|
allowUploadFile: !0,
|
|
4881
4882
|
onLayoutChange: m,
|
|
4882
4883
|
onRefresh: j,
|
|
4883
|
-
triggerAction:
|
|
4884
|
+
triggerAction: s
|
|
4884
4885
|
}
|
|
4885
4886
|
),
|
|
4886
4887
|
/* @__PURE__ */ n.jsxs(
|
|
4887
4888
|
"section",
|
|
4888
4889
|
{
|
|
4889
4890
|
ref: y,
|
|
4890
|
-
onMouseMove:
|
|
4891
|
-
onMouseUp:
|
|
4891
|
+
onMouseMove: K,
|
|
4892
|
+
onMouseUp: U,
|
|
4892
4893
|
className: "files-container",
|
|
4893
4894
|
children: [
|
|
4894
4895
|
/* @__PURE__ */ n.jsxs("div", { className: "navigation-pane", style: { width: O.col1 + "%" }, children: [
|
|
@@ -4896,7 +4897,7 @@ const pe = /* @__PURE__ */ Yt(va), ma = (e, a, s) => {
|
|
|
4896
4897
|
/* @__PURE__ */ n.jsx(
|
|
4897
4898
|
"div",
|
|
4898
4899
|
{
|
|
4899
|
-
className: `sidebar-resize ${
|
|
4900
|
+
className: `sidebar-resize ${k ? "sidebar-dragging" : ""}`,
|
|
4900
4901
|
onMouseDown: H
|
|
4901
4902
|
}
|
|
4902
4903
|
)
|
|
@@ -4909,8 +4910,8 @@ const pe = /* @__PURE__ */ Yt(va), ma = (e, a, s) => {
|
|
|
4909
4910
|
onCreateFolder: r,
|
|
4910
4911
|
onRename: f,
|
|
4911
4912
|
onFileOpen: x,
|
|
4912
|
-
enableFilePreview:
|
|
4913
|
-
triggerAction:
|
|
4913
|
+
enableFilePreview: M,
|
|
4914
|
+
triggerAction: s
|
|
4914
4915
|
}
|
|
4915
4916
|
)
|
|
4916
4917
|
] })
|
|
@@ -4925,10 +4926,10 @@ const pe = /* @__PURE__ */ Yt(va), ma = (e, a, s) => {
|
|
|
4925
4926
|
onFileUploaded: l,
|
|
4926
4927
|
onDelete: d,
|
|
4927
4928
|
onRefresh: j,
|
|
4928
|
-
maxFileSize:
|
|
4929
|
+
maxFileSize: Y,
|
|
4929
4930
|
filePreviewPath: L,
|
|
4930
4931
|
acceptedFileTypes: I,
|
|
4931
|
-
triggerAction:
|
|
4932
|
+
triggerAction: s
|
|
4932
4933
|
}
|
|
4933
4934
|
)
|
|
4934
4935
|
] }) }) }) }) })
|