@cubone/react-file-manager 1.7.0 → 1.7.1
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/README.md +4 -5
- package/dist/react-file-manager.es.js +578 -566
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -17,11 +17,11 @@ var Kt;
|
|
|
17
17
|
function qr() {
|
|
18
18
|
if (Kt) return et;
|
|
19
19
|
Kt = 1;
|
|
20
|
-
var e = Pe, i = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, u = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
20
|
+
var e = Pe, i = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, u = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
21
|
function p(d, v, f) {
|
|
22
22
|
var m, w = {}, C = null, V = null;
|
|
23
23
|
f !== void 0 && (C = "" + f), v.key !== void 0 && (C = "" + v.key), v.ref !== void 0 && (V = v.ref);
|
|
24
|
-
for (m in v) a.call(v, m) && !
|
|
24
|
+
for (m in v) a.call(v, m) && !l.hasOwnProperty(m) && (w[m] = v[m]);
|
|
25
25
|
if (d && d.defaultProps) for (m in v = d.defaultProps, v) w[m] === void 0 && (w[m] = v[m]);
|
|
26
26
|
return { $$typeof: i, type: d, key: C, ref: V, props: w, _owner: u.current };
|
|
27
27
|
}
|
|
@@ -40,7 +40,7 @@ var tt = {};
|
|
|
40
40
|
var Xt;
|
|
41
41
|
function Kr() {
|
|
42
42
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var e = Pe, i = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"),
|
|
43
|
+
var e = Pe, i = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), d = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), _ = Symbol.iterator, A = "@@iterator";
|
|
44
44
|
function Y(n) {
|
|
45
45
|
if (n === null || typeof n != "object")
|
|
46
46
|
return null;
|
|
@@ -59,16 +59,16 @@ function Kr() {
|
|
|
59
59
|
{
|
|
60
60
|
var Z = L.ReactDebugCurrentFrame, le = Z.getStackAddendum();
|
|
61
61
|
le !== "" && (F += "%s", K = K.concat([le]));
|
|
62
|
-
var
|
|
62
|
+
var he = K.map(function(r) {
|
|
63
63
|
return String(r);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
he.unshift("Warning: " + F), Function.prototype.apply.call(console[n], console, he);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var g = !1,
|
|
68
|
+
var g = !1, c = !1, b = !1, R = !1, z = !1, X;
|
|
69
69
|
X = Symbol.for("react.module.reference");
|
|
70
70
|
function B(n) {
|
|
71
|
-
return !!(typeof n == "string" || typeof n == "function" || n === a || n ===
|
|
71
|
+
return !!(typeof n == "string" || typeof n == "function" || n === a || n === l || z || n === u || n === f || n === m || R || n === V || g || c || b || typeof n == "object" && n !== null && (n.$$typeof === C || n.$$typeof === w || n.$$typeof === p || n.$$typeof === d || n.$$typeof === v || // 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.
|
|
@@ -81,10 +81,10 @@ function Kr() {
|
|
|
81
81
|
var le = F.displayName || F.name || "";
|
|
82
82
|
return le !== "" ? K + "(" + le + ")" : K;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function G(n) {
|
|
85
85
|
return n.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function J(n) {
|
|
88
88
|
if (n == null)
|
|
89
89
|
return null;
|
|
90
90
|
if (typeof n.tag == "number" && I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
@@ -96,7 +96,7 @@ function Kr() {
|
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case o:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case l:
|
|
100
100
|
return "Profiler";
|
|
101
101
|
case u:
|
|
102
102
|
return "StrictMode";
|
|
@@ -109,19 +109,19 @@ function Kr() {
|
|
|
109
109
|
switch (n.$$typeof) {
|
|
110
110
|
case d:
|
|
111
111
|
var F = n;
|
|
112
|
-
return
|
|
112
|
+
return G(F) + ".Consumer";
|
|
113
113
|
case p:
|
|
114
114
|
var K = n;
|
|
115
|
-
return
|
|
115
|
+
return G(K._context) + ".Provider";
|
|
116
116
|
case v:
|
|
117
117
|
return H(n, n.render, "ForwardRef");
|
|
118
118
|
case w:
|
|
119
119
|
var Z = n.displayName || null;
|
|
120
|
-
return Z !== null ? Z :
|
|
120
|
+
return Z !== null ? Z : J(n.type) || "Memo";
|
|
121
121
|
case C: {
|
|
122
|
-
var le = n,
|
|
122
|
+
var le = n, he = le._payload, r = le._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return J(r(he));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -129,14 +129,14 @@ function Kr() {
|
|
|
129
129
|
}
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
-
var ee = Object.assign, ue = 0, re, oe,
|
|
132
|
+
var ee = Object.assign, ue = 0, re, oe, ve, me, S, q, x;
|
|
133
133
|
function k() {
|
|
134
134
|
}
|
|
135
135
|
k.__reactDisabledLog = !0;
|
|
136
136
|
function D() {
|
|
137
137
|
{
|
|
138
138
|
if (ue === 0) {
|
|
139
|
-
re = console.log, oe = console.info,
|
|
139
|
+
re = console.log, oe = console.info, ve = console.warn, me = console.error, S = console.group, q = console.groupCollapsed, x = console.groupEnd;
|
|
140
140
|
var n = {
|
|
141
141
|
configurable: !0,
|
|
142
142
|
enumerable: !0,
|
|
@@ -172,10 +172,10 @@ function Kr() {
|
|
|
172
172
|
value: oe
|
|
173
173
|
}),
|
|
174
174
|
warn: ee({}, n, {
|
|
175
|
-
value:
|
|
175
|
+
value: ve
|
|
176
176
|
}),
|
|
177
177
|
error: ee({}, n, {
|
|
178
|
-
value:
|
|
178
|
+
value: me
|
|
179
179
|
}),
|
|
180
180
|
group: ee({}, n, {
|
|
181
181
|
value: S
|
|
@@ -222,8 +222,8 @@ function Kr() {
|
|
|
222
222
|
M = !0;
|
|
223
223
|
var le = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var he;
|
|
226
|
+
he = T.current, T.current = null, D();
|
|
227
227
|
try {
|
|
228
228
|
if (F) {
|
|
229
229
|
var r = function() {
|
|
@@ -236,29 +236,29 @@ function Kr() {
|
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
238
|
Reflect.construct(r, []);
|
|
239
|
-
} catch (
|
|
240
|
-
Z =
|
|
239
|
+
} catch (ye) {
|
|
240
|
+
Z = ye;
|
|
241
241
|
}
|
|
242
242
|
Reflect.construct(n, [], r);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
245
|
r.call();
|
|
246
|
-
} catch (
|
|
247
|
-
Z =
|
|
246
|
+
} catch (ye) {
|
|
247
|
+
Z = ye;
|
|
248
248
|
}
|
|
249
249
|
n.call(r.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
Z =
|
|
254
|
+
} catch (ye) {
|
|
255
|
+
Z = ye;
|
|
256
256
|
}
|
|
257
257
|
n();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var h =
|
|
259
|
+
} catch (ye) {
|
|
260
|
+
if (ye && Z && typeof ye.stack == "string") {
|
|
261
|
+
for (var h = ye.stack.split(`
|
|
262
262
|
`), P = Z.stack.split(`
|
|
263
263
|
`), N = h.length - 1, $ = P.length - 1; N >= 1 && $ >= 0 && h[N] !== P[$]; )
|
|
264
264
|
$--;
|
|
@@ -276,7 +276,7 @@ function Kr() {
|
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
M = !1, T.current =
|
|
279
|
+
M = !1, T.current = he, U(), Error.prepareStackTrace = le;
|
|
280
280
|
}
|
|
281
281
|
var ie = n ? n.displayName || n.name : "", te = ie ? y(ie) : "";
|
|
282
282
|
return typeof n == "function" && O.set(n, te), te;
|
|
@@ -308,9 +308,9 @@ function Kr() {
|
|
|
308
308
|
case w:
|
|
309
309
|
return be(n.type, F, K);
|
|
310
310
|
case C: {
|
|
311
|
-
var Z = n, le = Z._payload,
|
|
311
|
+
var Z = n, le = Z._payload, he = Z._init;
|
|
312
312
|
try {
|
|
313
|
-
return be(
|
|
313
|
+
return be(he(le), F, K);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
@@ -327,9 +327,9 @@ function Kr() {
|
|
|
327
327
|
}
|
|
328
328
|
function xt(n, F, K, Z, le) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
330
|
+
var he = Function.call.bind(xe);
|
|
331
331
|
for (var r in n)
|
|
332
|
-
if (
|
|
332
|
+
if (he(n, r)) {
|
|
333
333
|
var h = void 0;
|
|
334
334
|
try {
|
|
335
335
|
if (typeof n[r] != "function") {
|
|
@@ -393,8 +393,8 @@ function Kr() {
|
|
|
393
393
|
}
|
|
394
394
|
function Ot(n, F) {
|
|
395
395
|
if (typeof n.ref == "string" && _e.current && F && _e.current.stateNode !== F) {
|
|
396
|
-
var K =
|
|
397
|
-
Ve[K] || (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',
|
|
396
|
+
var K = J(_e.current.type);
|
|
397
|
+
Ve[K] || (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(_e.current.type), n.ref), Ve[K] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function Ke(n, F) {
|
|
@@ -419,7 +419,7 @@ function Kr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var Tt = function(n, F, K, Z, le,
|
|
422
|
+
var Tt = function(n, F, K, Z, le, he, r) {
|
|
423
423
|
var h = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: i,
|
|
@@ -429,7 +429,7 @@ function Kr() {
|
|
|
429
429
|
ref: K,
|
|
430
430
|
props: r,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: he
|
|
433
433
|
};
|
|
434
434
|
return h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
@@ -450,14 +450,14 @@ function Kr() {
|
|
|
450
450
|
};
|
|
451
451
|
function Pt(n, F, K, Z, le) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
453
|
+
var he, r = {}, h = null, P = null;
|
|
454
454
|
K !== void 0 && (He(K), h = "" + K), Et(F) && (He(F.key), h = "" + F.key), wt(F) && (P = F.ref, Ot(F, le));
|
|
455
|
-
for (
|
|
456
|
-
xe.call(F,
|
|
455
|
+
for (he in F)
|
|
456
|
+
xe.call(F, he) && !st.hasOwnProperty(he) && (r[he] = F[he]);
|
|
457
457
|
if (n && n.defaultProps) {
|
|
458
458
|
var N = n.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
r[
|
|
459
|
+
for (he in N)
|
|
460
|
+
r[he] === void 0 && (r[he] = N[he]);
|
|
461
461
|
}
|
|
462
462
|
if (h || P) {
|
|
463
463
|
var $ = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
@@ -482,7 +482,7 @@ function Kr() {
|
|
|
482
482
|
function $e() {
|
|
483
483
|
{
|
|
484
484
|
if (Xe.current) {
|
|
485
|
-
var n =
|
|
485
|
+
var n = J(Xe.current.type);
|
|
486
486
|
if (n)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -517,7 +517,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
517
517
|
return;
|
|
518
518
|
We[K] = !0;
|
|
519
519
|
var Z = "";
|
|
520
|
-
n && n._owner && n._owner !== Xe.current && (Z = " It was passed a child from " +
|
|
520
|
+
n && n._owner && n._owner !== Xe.current && (Z = " It was passed a child from " + J(n._owner.type) + "."), Ne(n), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, Z), Ne(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
function Ze(n, F) {
|
|
@@ -534,7 +534,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
534
534
|
else if (n) {
|
|
535
535
|
var le = Y(n);
|
|
536
536
|
if (typeof le == "function" && le !== n.entries)
|
|
537
|
-
for (var
|
|
537
|
+
for (var he = le.call(n), r; !(r = he.next()).done; )
|
|
538
538
|
Je(r.value) && Me(r.value, F);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -554,11 +554,11 @@ Check the top-level render call using <` + K + ">.");
|
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if (K) {
|
|
557
|
-
var Z =
|
|
557
|
+
var Z = J(F);
|
|
558
558
|
xt(K, n.props, "prop", Z, n);
|
|
559
559
|
} else if (F.PropTypes !== void 0 && !Ge) {
|
|
560
560
|
Ge = !0;
|
|
561
|
-
var le =
|
|
561
|
+
var le = J(F);
|
|
562
562
|
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
|
|
563
563
|
}
|
|
564
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.");
|
|
@@ -577,7 +577,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var ft = {};
|
|
580
|
-
function Qe(n, F, K, Z, le,
|
|
580
|
+
function Qe(n, F, K, Z, le, he) {
|
|
581
581
|
{
|
|
582
582
|
var r = B(n);
|
|
583
583
|
if (!r) {
|
|
@@ -586,9 +586,9 @@ Check the top-level render call using <` + K + ">.");
|
|
|
586
586
|
var P = Oe();
|
|
587
587
|
P ? h += P : h += $e();
|
|
588
588
|
var N;
|
|
589
|
-
n === null ? N = "null" : Ie(n) ? N = "array" : n !== void 0 && n.$$typeof === i ? (N = "<" + (
|
|
589
|
+
n === null ? N = "null" : Ie(n) ? N = "array" : n !== void 0 && n.$$typeof === i ? (N = "<" + (J(n.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : N = typeof n, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, h);
|
|
590
590
|
}
|
|
591
|
-
var $ = Pt(n, F, K, le,
|
|
591
|
+
var $ = Pt(n, F, K, le, he);
|
|
592
592
|
if ($ == null)
|
|
593
593
|
return $;
|
|
594
594
|
if (r) {
|
|
@@ -605,11 +605,11 @@ Check the top-level render call using <` + K + ">.");
|
|
|
605
605
|
Ze(ne, n);
|
|
606
606
|
}
|
|
607
607
|
if (xe.call(F, "key")) {
|
|
608
|
-
var te =
|
|
608
|
+
var te = J(n), ye = Object.keys(F).filter(function(je) {
|
|
609
609
|
return je !== "key";
|
|
610
|
-
}), we =
|
|
610
|
+
}), we = ye.length > 0 ? "{key: someKey, " + ye.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!ft[te + we]) {
|
|
612
|
-
var Ee =
|
|
612
|
+
var Ee = ye.length > 0 ? "{" + ye.join(": ..., ") + ": ...}" : "{}";
|
|
613
613
|
I(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
@@ -641,22 +641,22 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
641
641
|
/******/
|
|
642
642
|
function(o) {
|
|
643
643
|
var a = {};
|
|
644
|
-
function u(
|
|
645
|
-
if (a[
|
|
646
|
-
return a[
|
|
647
|
-
var p = a[
|
|
644
|
+
function u(l) {
|
|
645
|
+
if (a[l])
|
|
646
|
+
return a[l].exports;
|
|
647
|
+
var p = a[l] = {
|
|
648
648
|
/******/
|
|
649
|
-
i:
|
|
649
|
+
i: l,
|
|
650
650
|
/******/
|
|
651
651
|
l: !1,
|
|
652
652
|
/******/
|
|
653
653
|
exports: {}
|
|
654
654
|
/******/
|
|
655
655
|
};
|
|
656
|
-
return o[
|
|
656
|
+
return o[l].call(p.exports, p, p.exports, u), p.l = !0, p.exports;
|
|
657
657
|
}
|
|
658
|
-
return u.m = o, u.c = a, u.d = function(
|
|
659
|
-
u.o(
|
|
658
|
+
return u.m = o, u.c = a, u.d = function(l, p, d) {
|
|
659
|
+
u.o(l, p) || Object.defineProperty(l, p, {
|
|
660
660
|
/******/
|
|
661
661
|
configurable: !1,
|
|
662
662
|
/******/
|
|
@@ -665,34 +665,34 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
665
665
|
get: d
|
|
666
666
|
/******/
|
|
667
667
|
});
|
|
668
|
-
}, u.n = function(
|
|
669
|
-
var p =
|
|
668
|
+
}, u.n = function(l) {
|
|
669
|
+
var p = l && l.__esModule ? (
|
|
670
670
|
/******/
|
|
671
671
|
function() {
|
|
672
|
-
return
|
|
672
|
+
return l.default;
|
|
673
673
|
}
|
|
674
674
|
) : (
|
|
675
675
|
/******/
|
|
676
676
|
function() {
|
|
677
|
-
return
|
|
677
|
+
return l;
|
|
678
678
|
}
|
|
679
679
|
);
|
|
680
680
|
return u.d(p, "a", p), p;
|
|
681
|
-
}, u.o = function(
|
|
682
|
-
return Object.prototype.hasOwnProperty.call(
|
|
681
|
+
}, u.o = function(l, p) {
|
|
682
|
+
return Object.prototype.hasOwnProperty.call(l, p);
|
|
683
683
|
}, u.p = "/", u(u.s = 7);
|
|
684
684
|
}([
|
|
685
685
|
/* 0 */
|
|
686
686
|
/***/
|
|
687
687
|
function(o, a, u) {
|
|
688
|
-
var
|
|
688
|
+
var l = function(v) {
|
|
689
689
|
};
|
|
690
|
-
process.env.NODE_ENV !== "production" && (
|
|
690
|
+
process.env.NODE_ENV !== "production" && (l = function(v) {
|
|
691
691
|
if (v === void 0)
|
|
692
692
|
throw new Error("invariant requires an error message argument");
|
|
693
693
|
});
|
|
694
694
|
function p(d, v, f, m, w, C, V, _) {
|
|
695
|
-
if (
|
|
695
|
+
if (l(v), !d) {
|
|
696
696
|
var A;
|
|
697
697
|
if (v === void 0)
|
|
698
698
|
A = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
@@ -710,14 +710,14 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
710
710
|
/* 1 */
|
|
711
711
|
/***/
|
|
712
712
|
function(o, a, u) {
|
|
713
|
-
function
|
|
713
|
+
function l(d) {
|
|
714
714
|
return function() {
|
|
715
715
|
return d;
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
718
|
var p = function() {
|
|
719
719
|
};
|
|
720
|
-
p.thatReturns =
|
|
720
|
+
p.thatReturns = l, p.thatReturnsFalse = l(!1), p.thatReturnsTrue = l(!0), p.thatReturnsNull = l(null), p.thatReturnsThis = function() {
|
|
721
721
|
return this;
|
|
722
722
|
}, p.thatReturnsArgument = function(d) {
|
|
723
723
|
return d;
|
|
@@ -731,7 +731,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
731
731
|
(c) Sindre Sorhus
|
|
732
732
|
@license MIT
|
|
733
733
|
*/
|
|
734
|
-
var
|
|
734
|
+
var l = Object.getOwnPropertySymbols, p = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
735
735
|
function v(m) {
|
|
736
736
|
if (m == null)
|
|
737
737
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
@@ -764,8 +764,8 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
764
764
|
C = Object(arguments[A]);
|
|
765
765
|
for (var Y in C)
|
|
766
766
|
p.call(C, Y) && (V[Y] = C[Y]);
|
|
767
|
-
if (
|
|
768
|
-
_ =
|
|
767
|
+
if (l) {
|
|
768
|
+
_ = l(C);
|
|
769
769
|
for (var L = 0; L < _.length; L++)
|
|
770
770
|
d.call(C, _[L]) && (V[_[L]] = C[_[L]]);
|
|
771
771
|
}
|
|
@@ -776,7 +776,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
776
776
|
/* 3 */
|
|
777
777
|
/***/
|
|
778
778
|
function(o, a, u) {
|
|
779
|
-
var
|
|
779
|
+
var l = u(1), p = l;
|
|
780
780
|
if (process.env.NODE_ENV !== "production") {
|
|
781
781
|
var d = function(f) {
|
|
782
782
|
for (var m = arguments.length, w = Array(m > 1 ? m - 1 : 0), C = 1; C < m; C++)
|
|
@@ -805,27 +805,27 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
805
805
|
/* 4 */
|
|
806
806
|
/***/
|
|
807
807
|
function(o, a, u) {
|
|
808
|
-
var
|
|
809
|
-
o.exports =
|
|
808
|
+
var l = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
809
|
+
o.exports = l;
|
|
810
810
|
},
|
|
811
811
|
/* 5 */
|
|
812
812
|
/***/
|
|
813
813
|
function(o, a, u) {
|
|
814
|
-
var
|
|
815
|
-
process.env.NODE_ENV !== "production" && Object.freeze(
|
|
814
|
+
var l = {};
|
|
815
|
+
process.env.NODE_ENV !== "production" && Object.freeze(l), o.exports = l;
|
|
816
816
|
},
|
|
817
817
|
/* 6 */
|
|
818
818
|
/***/
|
|
819
819
|
function(o, a, u) {
|
|
820
820
|
if (process.env.NODE_ENV !== "production")
|
|
821
|
-
var
|
|
821
|
+
var l = u(0), p = u(3), d = u(4), v = {};
|
|
822
822
|
function f(m, w, C, V, _) {
|
|
823
823
|
if (process.env.NODE_ENV !== "production") {
|
|
824
824
|
for (var A in m)
|
|
825
825
|
if (m.hasOwnProperty(A)) {
|
|
826
826
|
var Y;
|
|
827
827
|
try {
|
|
828
|
-
|
|
828
|
+
l(typeof m[A] == "function", "%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.", V || "React class", C, A, typeof m[A]), Y = m[A](w, A, V, C, null, d);
|
|
829
829
|
} catch (I) {
|
|
830
830
|
Y = I;
|
|
831
831
|
}
|
|
@@ -845,68 +845,68 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
845
845
|
Object.defineProperty(a, "__esModule", {
|
|
846
846
|
value: !0
|
|
847
847
|
});
|
|
848
|
-
var
|
|
849
|
-
for (var
|
|
850
|
-
var b = arguments[
|
|
848
|
+
var l = Object.assign || function(g) {
|
|
849
|
+
for (var c = 1; c < arguments.length; c++) {
|
|
850
|
+
var b = arguments[c];
|
|
851
851
|
for (var R in b)
|
|
852
852
|
Object.prototype.hasOwnProperty.call(b, R) && (g[R] = b[R]);
|
|
853
853
|
}
|
|
854
854
|
return g;
|
|
855
855
|
}, p = /* @__PURE__ */ function() {
|
|
856
|
-
function g(
|
|
856
|
+
function g(c, b) {
|
|
857
857
|
for (var R = 0; R < b.length; R++) {
|
|
858
858
|
var z = b[R];
|
|
859
|
-
z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(
|
|
859
|
+
z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(c, z.key, z);
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
return function(
|
|
863
|
-
return b && g(
|
|
862
|
+
return function(c, b, R) {
|
|
863
|
+
return b && g(c.prototype, b), R && g(c, R), c;
|
|
864
864
|
};
|
|
865
865
|
}(), d = u(8), v = _(d), f = u(11), m = _(f), w = u(14), C = V(w);
|
|
866
866
|
function V(g) {
|
|
867
867
|
if (g && g.__esModule)
|
|
868
868
|
return g;
|
|
869
|
-
var
|
|
869
|
+
var c = {};
|
|
870
870
|
if (g != null)
|
|
871
871
|
for (var b in g)
|
|
872
|
-
Object.prototype.hasOwnProperty.call(g, b) && (
|
|
873
|
-
return
|
|
872
|
+
Object.prototype.hasOwnProperty.call(g, b) && (c[b] = g[b]);
|
|
873
|
+
return c.default = g, c;
|
|
874
874
|
}
|
|
875
875
|
function _(g) {
|
|
876
876
|
return g && g.__esModule ? g : { default: g };
|
|
877
877
|
}
|
|
878
|
-
function A(g,
|
|
878
|
+
function A(g, c) {
|
|
879
879
|
var b = {};
|
|
880
880
|
for (var R in g)
|
|
881
|
-
|
|
881
|
+
c.indexOf(R) >= 0 || Object.prototype.hasOwnProperty.call(g, R) && (b[R] = g[R]);
|
|
882
882
|
return b;
|
|
883
883
|
}
|
|
884
|
-
function Y(g,
|
|
885
|
-
if (!(g instanceof
|
|
884
|
+
function Y(g, c) {
|
|
885
|
+
if (!(g instanceof c))
|
|
886
886
|
throw new TypeError("Cannot call a class as a function");
|
|
887
887
|
}
|
|
888
|
-
function L(g,
|
|
888
|
+
function L(g, c) {
|
|
889
889
|
if (!g)
|
|
890
890
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
891
|
-
return
|
|
891
|
+
return c && (typeof c == "object" || typeof c == "function") ? c : g;
|
|
892
892
|
}
|
|
893
|
-
function I(g,
|
|
894
|
-
if (typeof
|
|
895
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
896
|
-
g.prototype = Object.create(
|
|
893
|
+
function I(g, c) {
|
|
894
|
+
if (typeof c != "function" && c !== null)
|
|
895
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof c);
|
|
896
|
+
g.prototype = Object.create(c && c.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), c && (Object.setPrototypeOf ? Object.setPrototypeOf(g, c) : g.__proto__ = c);
|
|
897
897
|
}
|
|
898
898
|
var j = function(g) {
|
|
899
|
-
I(
|
|
900
|
-
function
|
|
899
|
+
I(c, g);
|
|
900
|
+
function c() {
|
|
901
901
|
var b, R, z, X;
|
|
902
|
-
Y(this,
|
|
903
|
-
for (var B = arguments.length, H = Array(B),
|
|
904
|
-
H[
|
|
905
|
-
return X = (R = (z = L(this, (b =
|
|
902
|
+
Y(this, c);
|
|
903
|
+
for (var B = arguments.length, H = Array(B), G = 0; G < B; G++)
|
|
904
|
+
H[G] = arguments[G];
|
|
905
|
+
return X = (R = (z = L(this, (b = c.__proto__ || Object.getPrototypeOf(c)).call.apply(b, [this].concat(H))), z), z.state = {
|
|
906
906
|
delayed: z.props.delay > 0
|
|
907
907
|
}, R), L(z, X);
|
|
908
908
|
}
|
|
909
|
-
return p(
|
|
909
|
+
return p(c, [{
|
|
910
910
|
key: "componentDidMount",
|
|
911
911
|
value: function() {
|
|
912
912
|
var R = this, z = this.props.delay, X = this.state.delayed;
|
|
@@ -927,17 +927,17 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
927
927
|
value: function() {
|
|
928
928
|
var R = this.props, z = R.color;
|
|
929
929
|
R.delay;
|
|
930
|
-
var X = R.type, B = R.height, H = R.width,
|
|
930
|
+
var X = R.type, B = R.height, H = R.width, G = A(R, ["color", "delay", "type", "height", "width"]), J = this.state.delayed ? "blank" : X, ee = C[J], ue = {
|
|
931
931
|
fill: z,
|
|
932
932
|
height: B,
|
|
933
933
|
width: H
|
|
934
934
|
};
|
|
935
|
-
return v.default.createElement("div",
|
|
935
|
+
return v.default.createElement("div", l({
|
|
936
936
|
style: ue,
|
|
937
937
|
dangerouslySetInnerHTML: { __html: ee }
|
|
938
|
-
},
|
|
938
|
+
}, G));
|
|
939
939
|
}
|
|
940
|
-
}]),
|
|
940
|
+
}]), c;
|
|
941
941
|
}(d.Component);
|
|
942
942
|
j.propTypes = {
|
|
943
943
|
color: m.default.string,
|
|
@@ -969,7 +969,7 @@ var t = zt.exports, xr = { 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
|
|
972
|
+
var l = u(2), p = u(0), d = u(5), v = u(1), f = typeof Symbol == "function" && Symbol.for, m = f ? Symbol.for("react.element") : 60103, w = f ? Symbol.for("react.portal") : 60106, C = f ? Symbol.for("react.fragment") : 60107, V = f ? Symbol.for("react.strict_mode") : 60108, _ = f ? Symbol.for("react.provider") : 60109, A = f ? Symbol.for("react.context") : 60110, Y = f ? Symbol.for("react.async_mode") : 60111, L = f ? Symbol.for("react.forward_ref") : 60112, I = typeof Symbol == "function" && Symbol.iterator;
|
|
973
973
|
function j(s) {
|
|
974
974
|
for (var y = arguments.length - 1, M = "http://reactjs.org/docs/error-decoder.html?invariant=" + s, O = 0; O < y; O++) M += "&args[]=" + encodeURIComponent(arguments[O + 1]);
|
|
975
975
|
p(!1, "Minified React error #" + s + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", M);
|
|
@@ -980,24 +980,24 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
980
980
|
}, enqueueReplaceState: function() {
|
|
981
981
|
}, enqueueSetState: function() {
|
|
982
982
|
} };
|
|
983
|
-
function
|
|
983
|
+
function c(s, y, M) {
|
|
984
984
|
this.props = s, this.context = y, this.refs = d, this.updater = M || g;
|
|
985
985
|
}
|
|
986
|
-
|
|
986
|
+
c.prototype.isReactComponent = {}, c.prototype.setState = function(s, y) {
|
|
987
987
|
typeof s != "object" && typeof s != "function" && s != null && j("85"), this.updater.enqueueSetState(this, s, y, "setState");
|
|
988
|
-
},
|
|
988
|
+
}, c.prototype.forceUpdate = function(s) {
|
|
989
989
|
this.updater.enqueueForceUpdate(this, s, "forceUpdate");
|
|
990
990
|
};
|
|
991
991
|
function b() {
|
|
992
992
|
}
|
|
993
|
-
b.prototype =
|
|
993
|
+
b.prototype = c.prototype;
|
|
994
994
|
function R(s, y, M) {
|
|
995
995
|
this.props = s, this.context = y, this.refs = d, this.updater = M || g;
|
|
996
996
|
}
|
|
997
997
|
var z = R.prototype = new b();
|
|
998
|
-
z.constructor = R,
|
|
998
|
+
z.constructor = R, l(z, c.prototype), z.isPureReactComponent = !0;
|
|
999
999
|
var X = { current: null }, B = Object.prototype.hasOwnProperty, H = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1000
|
-
function
|
|
1000
|
+
function G(s, y, M) {
|
|
1001
1001
|
var O = void 0, W = {}, E = null, se = null;
|
|
1002
1002
|
if (y != null) for (O in y.ref !== void 0 && (se = y.ref), y.key !== void 0 && (E = "" + y.key), y) B.call(y, O) && !H.hasOwnProperty(O) && (W[O] = y[O]);
|
|
1003
1003
|
var ce = arguments.length - 2;
|
|
@@ -1009,7 +1009,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1009
1009
|
if (s && s.defaultProps) for (O in ce = s.defaultProps, ce) W[O] === void 0 && (W[O] = ce[O]);
|
|
1010
1010
|
return { $$typeof: m, type: s, key: E, ref: se, props: W, _owner: X.current };
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function J(s) {
|
|
1013
1013
|
return typeof s == "object" && s !== null && s.$$typeof === m;
|
|
1014
1014
|
}
|
|
1015
1015
|
function ee(s) {
|
|
@@ -1026,10 +1026,10 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1026
1026
|
}
|
|
1027
1027
|
return { result: s, keyPrefix: y, func: M, context: O, count: 0 };
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function ve(s) {
|
|
1030
1030
|
s.result = null, s.keyPrefix = null, s.func = null, s.context = null, s.count = 0, 10 > re.length && re.push(s);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function me(s, y, M, O) {
|
|
1033
1033
|
var W = typeof s;
|
|
1034
1034
|
(W === "undefined" || W === "boolean") && (s = null);
|
|
1035
1035
|
var E = !1;
|
|
@@ -1050,9 +1050,9 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1050
1050
|
if (E = 0, y = y === "" ? "." : y + ":", Array.isArray(s)) for (var se = 0; se < s.length; se++) {
|
|
1051
1051
|
W = s[se];
|
|
1052
1052
|
var ce = y + S(W, se);
|
|
1053
|
-
E +=
|
|
1053
|
+
E += me(W, ce, M, O);
|
|
1054
1054
|
}
|
|
1055
|
-
else if (s === null || typeof s > "u" ? ce = null : (ce = I && s[I] || s["@@iterator"], ce = typeof ce == "function" ? ce : null), typeof ce == "function") for (s = ce.call(s), se = 0; !(W = s.next()).done; ) W = W.value, ce = y + S(W, se++), E +=
|
|
1055
|
+
else if (s === null || typeof s > "u" ? ce = null : (ce = I && s[I] || s["@@iterator"], ce = typeof ce == "function" ? ce : null), typeof ce == "function") for (s = ce.call(s), se = 0; !(W = s.next()).done; ) W = W.value, ce = y + S(W, se++), E += me(W, ce, M, O);
|
|
1056
1056
|
else W === "object" && (M = "" + s, j("31", M === "[object Object]" ? "object with keys {" + Object.keys(s).join(", ") + "}" : M, ""));
|
|
1057
1057
|
return E;
|
|
1058
1058
|
}
|
|
@@ -1064,11 +1064,11 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1064
1064
|
}
|
|
1065
1065
|
function x(s, y, M) {
|
|
1066
1066
|
var O = s.result, W = s.keyPrefix;
|
|
1067
|
-
s = s.func.call(s.context, y, s.count++), Array.isArray(s) ? k(s, O, M, v.thatReturnsArgument) : s != null && (
|
|
1067
|
+
s = s.func.call(s.context, y, s.count++), Array.isArray(s) ? k(s, O, M, v.thatReturnsArgument) : s != null && (J(s) && (y = W + (!s.key || y && y.key === s.key ? "" : ("" + s.key).replace(ue, "$&/") + "/") + M, s = { $$typeof: m, type: s.type, key: y, ref: s.ref, props: s.props, _owner: s._owner }), O.push(s));
|
|
1068
1068
|
}
|
|
1069
1069
|
function k(s, y, M, O, W) {
|
|
1070
1070
|
var E = "";
|
|
1071
|
-
M != null && (E = ("" + M).replace(ue, "$&/") + "/"), y = oe(y, E, O, W), s == null ||
|
|
1071
|
+
M != null && (E = ("" + M).replace(ue, "$&/") + "/"), y = oe(y, E, O, W), s == null || me(s, "", x, y), ve(y);
|
|
1072
1072
|
}
|
|
1073
1073
|
var D = { Children: { map: function(s, y, M) {
|
|
1074
1074
|
if (s == null) return s;
|
|
@@ -1076,17 +1076,17 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1076
1076
|
return k(s, O, null, y, M), O;
|
|
1077
1077
|
}, forEach: function(s, y, M) {
|
|
1078
1078
|
if (s == null) return s;
|
|
1079
|
-
y = oe(null, null, y, M), s == null ||
|
|
1079
|
+
y = oe(null, null, y, M), s == null || me(s, "", q, y), ve(y);
|
|
1080
1080
|
}, count: function(s) {
|
|
1081
|
-
return s == null ? 0 :
|
|
1081
|
+
return s == null ? 0 : me(s, "", v.thatReturnsNull, null);
|
|
1082
1082
|
}, toArray: function(s) {
|
|
1083
1083
|
var y = [];
|
|
1084
1084
|
return k(s, y, null, v.thatReturnsArgument), y;
|
|
1085
1085
|
}, only: function(s) {
|
|
1086
|
-
return
|
|
1086
|
+
return J(s) || j("143"), s;
|
|
1087
1087
|
} }, createRef: function() {
|
|
1088
1088
|
return { current: null };
|
|
1089
|
-
}, Component:
|
|
1089
|
+
}, Component: c, PureComponent: R, createContext: function(s, y) {
|
|
1090
1090
|
return y === void 0 && (y = null), s = {
|
|
1091
1091
|
$$typeof: A,
|
|
1092
1092
|
_calculateChangedBits: y,
|
|
@@ -1098,9 +1098,9 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1098
1098
|
}, s.Provider = { $$typeof: _, _context: s }, s.Consumer = s;
|
|
1099
1099
|
}, forwardRef: function(s) {
|
|
1100
1100
|
return { $$typeof: L, render: s };
|
|
1101
|
-
}, Fragment: C, StrictMode: V, unstable_AsyncMode: Y, createElement:
|
|
1101
|
+
}, Fragment: C, StrictMode: V, unstable_AsyncMode: Y, createElement: G, cloneElement: function(s, y, M) {
|
|
1102
1102
|
s == null && j("267", s);
|
|
1103
|
-
var O = void 0, W =
|
|
1103
|
+
var O = void 0, W = l({}, s.props), E = s.key, se = s.ref, ce = s._owner;
|
|
1104
1104
|
if (y != null) {
|
|
1105
1105
|
y.ref !== void 0 && (se = y.ref, ce = X.current), y.key !== void 0 && (E = "" + y.key);
|
|
1106
1106
|
var be = void 0;
|
|
@@ -1115,9 +1115,9 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1115
1115
|
}
|
|
1116
1116
|
return { $$typeof: m, type: s.type, key: E, ref: se, props: W, _owner: ce };
|
|
1117
1117
|
}, createFactory: function(s) {
|
|
1118
|
-
var y =
|
|
1118
|
+
var y = G.bind(null, s);
|
|
1119
1119
|
return y.type = s, y;
|
|
1120
|
-
}, isValidElement:
|
|
1120
|
+
}, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: X, assign: l } }, U = Object.freeze({ default: D }), T = U && D || U;
|
|
1121
1121
|
o.exports = T.default ? T.default : T;
|
|
1122
1122
|
},
|
|
1123
1123
|
/* 10 */
|
|
@@ -1132,7 +1132,7 @@ var t = zt.exports, xr = { 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
|
|
1135
|
+
var l = u(2), p = u(0), d = u(5), v = u(3), f = u(1), m = u(6), w = "16.3.2", C = typeof Symbol == "function" && Symbol.for, V = C ? Symbol.for("react.element") : 60103, _ = C ? Symbol.for("react.call") : 60104, A = C ? Symbol.for("react.return") : 60105, Y = C ? Symbol.for("react.portal") : 60106, L = C ? Symbol.for("react.fragment") : 60107, I = C ? Symbol.for("react.strict_mode") : 60108, j = C ? Symbol.for("react.provider") : 60109, g = C ? Symbol.for("react.context") : 60110, c = C ? Symbol.for("react.async_mode") : 60111, b = C ? Symbol.for("react.forward_ref") : 60112, R = typeof Symbol == "function" && Symbol.iterator, z = "@@iterator";
|
|
1136
1136
|
function X(r) {
|
|
1137
1137
|
if (r === null || typeof r > "u")
|
|
1138
1138
|
return null;
|
|
@@ -1164,13 +1164,13 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
|
-
var
|
|
1167
|
+
var G = B, J = {};
|
|
1168
1168
|
function ee(r, h) {
|
|
1169
1169
|
{
|
|
1170
1170
|
var P = r.constructor, N = P && (P.displayName || P.name) || "ReactClass", $ = N + "." + h;
|
|
1171
|
-
if (
|
|
1171
|
+
if (J[$])
|
|
1172
1172
|
return;
|
|
1173
|
-
v(!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.", h, N),
|
|
1173
|
+
v(!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.", h, N), J[$] = !0;
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
1176
|
var ue = {
|
|
@@ -1246,15 +1246,15 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1246
1246
|
var oe = {
|
|
1247
1247
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1248
1248
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1249
|
-
},
|
|
1249
|
+
}, ve = function(r, h) {
|
|
1250
1250
|
Object.defineProperty(re.prototype, r, {
|
|
1251
1251
|
get: function() {
|
|
1252
|
-
|
|
1252
|
+
G(!1, "%s(...) is deprecated in plain JavaScript React classes. %s", h[0], h[1]);
|
|
1253
1253
|
}
|
|
1254
1254
|
});
|
|
1255
1255
|
};
|
|
1256
|
-
for (var
|
|
1257
|
-
oe.hasOwnProperty(
|
|
1256
|
+
for (var me in oe)
|
|
1257
|
+
oe.hasOwnProperty(me) && ve(me, oe[me]);
|
|
1258
1258
|
}
|
|
1259
1259
|
function S() {
|
|
1260
1260
|
}
|
|
@@ -1263,7 +1263,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1263
1263
|
this.props = r, this.context = h, this.refs = d, this.updater = P || ue;
|
|
1264
1264
|
}
|
|
1265
1265
|
var x = q.prototype = new S();
|
|
1266
|
-
x.constructor = q,
|
|
1266
|
+
x.constructor = q, l(x, re.prototype), x.isPureReactComponent = !0;
|
|
1267
1267
|
function k() {
|
|
1268
1268
|
var r = {
|
|
1269
1269
|
current: null
|
|
@@ -1346,9 +1346,9 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1346
1346
|
}), Object.freeze && (Object.freeze(te.props), Object.freeze(te)), te;
|
|
1347
1347
|
};
|
|
1348
1348
|
function ce(r, h, P) {
|
|
1349
|
-
var N = void 0, $ = {}, ne = null, ie = null, te = null,
|
|
1349
|
+
var N = void 0, $ = {}, ne = null, ie = null, te = null, ye = null;
|
|
1350
1350
|
if (h != null) {
|
|
1351
|
-
M(h) && (ie = h.ref), O(h) && (ne = "" + h.key), te = h.__self === void 0 ? null : h.__self,
|
|
1351
|
+
M(h) && (ie = h.ref), O(h) && (ne = "" + h.key), te = h.__self === void 0 ? null : h.__self, ye = h.__source === void 0 ? null : h.__source;
|
|
1352
1352
|
for (N in h)
|
|
1353
1353
|
U.call(h, N) && !T.hasOwnProperty(N) && ($[N] = h[N]);
|
|
1354
1354
|
}
|
|
@@ -1369,7 +1369,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1369
1369
|
var Te = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
1370
1370
|
ne && W($, Te), ie && E($, Te);
|
|
1371
1371
|
}
|
|
1372
|
-
return se(r, ne, ie, te,
|
|
1372
|
+
return se(r, ne, ie, te, ye, D.current, $);
|
|
1373
1373
|
}
|
|
1374
1374
|
function be(r, h) {
|
|
1375
1375
|
var P = se(r.type, h, r.ref, r._self, r._source, r._owner, r.props);
|
|
@@ -1377,7 +1377,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1377
1377
|
}
|
|
1378
1378
|
function xe(r, h, P) {
|
|
1379
1379
|
r == null && p(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", r);
|
|
1380
|
-
var N = void 0, $ =
|
|
1380
|
+
var N = void 0, $ = l({}, r.props), ne = r.key, ie = r.ref, te = r._self, ye = r._source, we = r._owner;
|
|
1381
1381
|
if (h != null) {
|
|
1382
1382
|
M(h) && (ie = h.ref, we = D.current), O(h) && (ne = "" + h.key);
|
|
1383
1383
|
var Ee = void 0;
|
|
@@ -1393,7 +1393,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1393
1393
|
ze[Te] = arguments[Te + 2];
|
|
1394
1394
|
$.children = ze;
|
|
1395
1395
|
}
|
|
1396
|
-
return se(r.type, ne, ie, te,
|
|
1396
|
+
return se(r.type, ne, ie, te, ye, we, $);
|
|
1397
1397
|
}
|
|
1398
1398
|
function Se(r) {
|
|
1399
1399
|
return typeof r == "object" && r !== null && r.$$typeof === V;
|
|
@@ -1461,16 +1461,16 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1461
1461
|
// so that it's consistent if the number of children grows.
|
|
1462
1462
|
h === "" ? Fe + Ve(r, 0) : h
|
|
1463
1463
|
), 1;
|
|
1464
|
-
var ie = void 0, te = void 0,
|
|
1464
|
+
var ie = void 0, te = void 0, ye = 0, we = h === "" ? Fe : h + xt;
|
|
1465
1465
|
if (Array.isArray(r))
|
|
1466
1466
|
for (var Ee = 0; Ee < r.length; Ee++)
|
|
1467
|
-
ie = r[Ee], te = we + Ve(ie, Ee),
|
|
1467
|
+
ie = r[Ee], te = we + Ve(ie, Ee), ye += De(ie, te, P, N);
|
|
1468
1468
|
else {
|
|
1469
1469
|
var je = X(r);
|
|
1470
1470
|
if (typeof je == "function") {
|
|
1471
1471
|
je === r.entries && (Ie || v(!1, "Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s", Re.getStackAddendum()), Ie = !0);
|
|
1472
1472
|
for (var ze = je.call(r), Te = void 0, Yr = 0; !(Te = ze.next()).done; )
|
|
1473
|
-
ie = Te.value, te = we + Ve(ie, Yr++),
|
|
1473
|
+
ie = Te.value, te = we + Ve(ie, Yr++), ye += De(ie, te, P, N);
|
|
1474
1474
|
} else if ($ === "object") {
|
|
1475
1475
|
var Yt = "";
|
|
1476
1476
|
Yt = " If you meant to render a collection of children, use an array instead." + Re.getStackAddendum();
|
|
@@ -1478,7 +1478,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1478
1478
|
p(!1, "Objects are not valid as a React child (found: %s).%s", qt === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : qt, Yt);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
|
-
return
|
|
1481
|
+
return ye;
|
|
1482
1482
|
}
|
|
1483
1483
|
function Le(r, h, P) {
|
|
1484
1484
|
return r == null ? 0 : De(r, "", h, P);
|
|
@@ -1556,7 +1556,7 @@ var t = zt.exports, xr = { exports: {} };
|
|
|
1556
1556
|
};
|
|
1557
1557
|
function Je(r) {
|
|
1558
1558
|
return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1559
|
-
r === L || r ===
|
|
1559
|
+
r === L || r === c || r === I || typeof r == "object" && r !== null && (r.$$typeof === j || r.$$typeof === g || r.$$typeof === b);
|
|
1560
1560
|
}
|
|
1561
1561
|
function $e(r) {
|
|
1562
1562
|
var h = r.type;
|
|
@@ -1685,8 +1685,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1685
1685
|
if (te == null)
|
|
1686
1686
|
return te;
|
|
1687
1687
|
if (N)
|
|
1688
|
-
for (var
|
|
1689
|
-
dt(arguments[
|
|
1688
|
+
for (var ye = 2; ye < arguments.length; ye++)
|
|
1689
|
+
dt(arguments[ye], r);
|
|
1690
1690
|
return r === L ? Mt(te) : pt(te), te;
|
|
1691
1691
|
}
|
|
1692
1692
|
function n(r) {
|
|
@@ -1694,7 +1694,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1694
1694
|
return h.type = r, Object.defineProperty(h, "type", {
|
|
1695
1695
|
enumerable: !1,
|
|
1696
1696
|
get: function() {
|
|
1697
|
-
return
|
|
1697
|
+
return G(!1, "Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1698
1698
|
value: r
|
|
1699
1699
|
}), r;
|
|
1700
1700
|
}
|
|
@@ -1720,7 +1720,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1720
1720
|
forwardRef: Ne,
|
|
1721
1721
|
Fragment: L,
|
|
1722
1722
|
StrictMode: I,
|
|
1723
|
-
unstable_AsyncMode:
|
|
1723
|
+
unstable_AsyncMode: c,
|
|
1724
1724
|
createElement: ht,
|
|
1725
1725
|
cloneElement: F,
|
|
1726
1726
|
createFactory: n,
|
|
@@ -1729,10 +1729,10 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1729
1729
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
1730
1730
|
ReactCurrentOwner: D,
|
|
1731
1731
|
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
1732
|
-
assign:
|
|
1732
|
+
assign: l
|
|
1733
1733
|
}
|
|
1734
1734
|
};
|
|
1735
|
-
|
|
1735
|
+
l(K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
1736
1736
|
// These should not be included in production.
|
|
1737
1737
|
ReactDebugCurrentFrame: Re,
|
|
1738
1738
|
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
|
|
@@ -1741,16 +1741,16 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1741
1741
|
});
|
|
1742
1742
|
var Z = Object.freeze({
|
|
1743
1743
|
default: K
|
|
1744
|
-
}), le = Z && K || Z,
|
|
1745
|
-
o.exports =
|
|
1744
|
+
}), le = Z && K || Z, he = le.default ? le.default : le;
|
|
1745
|
+
o.exports = he;
|
|
1746
1746
|
}();
|
|
1747
1747
|
},
|
|
1748
1748
|
/* 11 */
|
|
1749
1749
|
/***/
|
|
1750
1750
|
function(o, a, u) {
|
|
1751
1751
|
if (process.env.NODE_ENV !== "production") {
|
|
1752
|
-
var
|
|
1753
|
-
return typeof v == "object" && v !== null && v.$$typeof ===
|
|
1752
|
+
var l = typeof Symbol == "function" && Symbol.for && Symbol.for("react.element") || 60103, p = function(v) {
|
|
1753
|
+
return typeof v == "object" && v !== null && v.$$typeof === l;
|
|
1754
1754
|
}, d = !0;
|
|
1755
1755
|
o.exports = u(12)(p, d);
|
|
1756
1756
|
} else
|
|
@@ -1759,7 +1759,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1759
1759
|
/* 12 */
|
|
1760
1760
|
/***/
|
|
1761
1761
|
function(o, a, u) {
|
|
1762
|
-
var
|
|
1762
|
+
var l = u(1), p = u(0), d = u(3), v = u(2), f = u(4), m = u(6);
|
|
1763
1763
|
o.exports = function(w, C) {
|
|
1764
1764
|
var V = typeof Symbol == "function" && Symbol.iterator, _ = "@@iterator";
|
|
1765
1765
|
function A(x) {
|
|
@@ -1768,21 +1768,21 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1768
1768
|
return k;
|
|
1769
1769
|
}
|
|
1770
1770
|
var Y = "<<anonymous>>", L = {
|
|
1771
|
-
array:
|
|
1772
|
-
bool:
|
|
1773
|
-
func:
|
|
1774
|
-
number:
|
|
1775
|
-
object:
|
|
1776
|
-
string:
|
|
1777
|
-
symbol:
|
|
1771
|
+
array: c("array"),
|
|
1772
|
+
bool: c("boolean"),
|
|
1773
|
+
func: c("function"),
|
|
1774
|
+
number: c("number"),
|
|
1775
|
+
object: c("object"),
|
|
1776
|
+
string: c("string"),
|
|
1777
|
+
symbol: c("symbol"),
|
|
1778
1778
|
any: b(),
|
|
1779
1779
|
arrayOf: R,
|
|
1780
1780
|
element: z(),
|
|
1781
1781
|
instanceOf: X,
|
|
1782
|
-
node:
|
|
1782
|
+
node: J(),
|
|
1783
1783
|
objectOf: H,
|
|
1784
1784
|
oneOf: B,
|
|
1785
|
-
oneOfType:
|
|
1785
|
+
oneOfType: G,
|
|
1786
1786
|
shape: ee,
|
|
1787
1787
|
exact: ue
|
|
1788
1788
|
};
|
|
@@ -1819,11 +1819,11 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1819
1819
|
var T = U.bind(null, !1);
|
|
1820
1820
|
return T.isRequired = U.bind(null, !0), T;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function c(x) {
|
|
1823
1823
|
function k(D, U, T, s, y, M) {
|
|
1824
|
-
var O = D[U], W =
|
|
1824
|
+
var O = D[U], W = ve(O);
|
|
1825
1825
|
if (W !== x) {
|
|
1826
|
-
var E =
|
|
1826
|
+
var E = me(O);
|
|
1827
1827
|
return new j("Invalid " + s + " `" + y + "` of type " + ("`" + E + "` supplied to `" + T + "`, expected ") + ("`" + x + "`."));
|
|
1828
1828
|
}
|
|
1829
1829
|
return null;
|
|
@@ -1831,7 +1831,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1831
1831
|
return g(k);
|
|
1832
1832
|
}
|
|
1833
1833
|
function b() {
|
|
1834
|
-
return g(
|
|
1834
|
+
return g(l.thatReturnsNull);
|
|
1835
1835
|
}
|
|
1836
1836
|
function R(x) {
|
|
1837
1837
|
function k(D, U, T, s, y) {
|
|
@@ -1839,7 +1839,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1839
1839
|
return new j("Property `" + y + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
|
|
1840
1840
|
var M = D[U];
|
|
1841
1841
|
if (!Array.isArray(M)) {
|
|
1842
|
-
var O =
|
|
1842
|
+
var O = ve(M);
|
|
1843
1843
|
return new j("Invalid " + s + " `" + y + "` of type " + ("`" + O + "` supplied to `" + T + "`, expected an array."));
|
|
1844
1844
|
}
|
|
1845
1845
|
for (var W = 0; W < M.length; W++) {
|
|
@@ -1855,7 +1855,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1855
1855
|
function x(k, D, U, T, s) {
|
|
1856
1856
|
var y = k[D];
|
|
1857
1857
|
if (!w(y)) {
|
|
1858
|
-
var M =
|
|
1858
|
+
var M = ve(y);
|
|
1859
1859
|
return new j("Invalid " + T + " `" + s + "` of type " + ("`" + M + "` supplied to `" + U + "`, expected a single ReactElement."));
|
|
1860
1860
|
}
|
|
1861
1861
|
return null;
|
|
@@ -1874,7 +1874,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1874
1874
|
}
|
|
1875
1875
|
function B(x) {
|
|
1876
1876
|
if (!Array.isArray(x))
|
|
1877
|
-
return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOf, expected an instance of array."),
|
|
1877
|
+
return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOf, expected an instance of array."), l.thatReturnsNull;
|
|
1878
1878
|
function k(D, U, T, s, y) {
|
|
1879
1879
|
for (var M = D[U], O = 0; O < x.length; O++)
|
|
1880
1880
|
if (I(M, x[O]))
|
|
@@ -1888,7 +1888,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1888
1888
|
function k(D, U, T, s, y) {
|
|
1889
1889
|
if (typeof x != "function")
|
|
1890
1890
|
return new j("Property `" + y + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
|
|
1891
|
-
var M = D[U], O =
|
|
1891
|
+
var M = D[U], O = ve(M);
|
|
1892
1892
|
if (O !== "object")
|
|
1893
1893
|
return new j("Invalid " + s + " `" + y + "` of type " + ("`" + O + "` supplied to `" + T + "`, expected an object."));
|
|
1894
1894
|
for (var W in M)
|
|
@@ -1901,9 +1901,9 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1901
1901
|
}
|
|
1902
1902
|
return g(k);
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function G(x) {
|
|
1905
1905
|
if (!Array.isArray(x))
|
|
1906
|
-
return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
1906
|
+
return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOfType, expected an instance of array."), l.thatReturnsNull;
|
|
1907
1907
|
for (var k = 0; k < x.length; k++) {
|
|
1908
1908
|
var D = x[k];
|
|
1909
1909
|
if (typeof D != "function")
|
|
@@ -1912,7 +1912,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1912
1912
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",
|
|
1913
1913
|
S(D),
|
|
1914
1914
|
k
|
|
1915
|
-
),
|
|
1915
|
+
), l.thatReturnsNull;
|
|
1916
1916
|
}
|
|
1917
1917
|
function U(T, s, y, M, O) {
|
|
1918
1918
|
for (var W = 0; W < x.length; W++) {
|
|
@@ -1924,7 +1924,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1924
1924
|
}
|
|
1925
1925
|
return g(U);
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function J() {
|
|
1928
1928
|
function x(k, D, U, T, s) {
|
|
1929
1929
|
return re(k[D]) ? null : new j("Invalid " + T + " `" + s + "` supplied to " + ("`" + U + "`, expected a ReactNode."));
|
|
1930
1930
|
}
|
|
@@ -1932,7 +1932,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1932
1932
|
}
|
|
1933
1933
|
function ee(x) {
|
|
1934
1934
|
function k(D, U, T, s, y) {
|
|
1935
|
-
var M = D[U], O =
|
|
1935
|
+
var M = D[U], O = ve(M);
|
|
1936
1936
|
if (O !== "object")
|
|
1937
1937
|
return new j("Invalid " + s + " `" + y + "` of type `" + O + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
1938
1938
|
for (var W in x) {
|
|
@@ -1949,7 +1949,7 @@ Check the top-level render call using <` + P + ">.");
|
|
|
1949
1949
|
}
|
|
1950
1950
|
function ue(x) {
|
|
1951
1951
|
function k(D, U, T, s, y) {
|
|
1952
|
-
var M = D[U], O =
|
|
1952
|
+
var M = D[U], O = ve(M);
|
|
1953
1953
|
if (O !== "object")
|
|
1954
1954
|
return new j("Invalid " + s + " `" + y + "` of type `" + O + "` " + ("supplied to `" + T + "`, expected `object`."));
|
|
1955
1955
|
var W = v({}, D[U], x);
|
|
@@ -2004,14 +2004,14 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
2004
2004
|
function oe(x, k) {
|
|
2005
2005
|
return x === "symbol" || k["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && k instanceof Symbol;
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function ve(x) {
|
|
2008
2008
|
var k = typeof x;
|
|
2009
2009
|
return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : oe(k, x) ? "symbol" : k;
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function me(x) {
|
|
2012
2012
|
if (typeof x > "u" || x === null)
|
|
2013
2013
|
return "" + x;
|
|
2014
|
-
var k =
|
|
2014
|
+
var k = ve(x);
|
|
2015
2015
|
if (k === "object") {
|
|
2016
2016
|
if (x instanceof Date)
|
|
2017
2017
|
return "date";
|
|
@@ -2021,7 +2021,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
2021
2021
|
return k;
|
|
2022
2022
|
}
|
|
2023
2023
|
function S(x) {
|
|
2024
|
-
var k =
|
|
2024
|
+
var k = me(x);
|
|
2025
2025
|
switch (k) {
|
|
2026
2026
|
case "array":
|
|
2027
2027
|
case "object":
|
|
@@ -2043,7 +2043,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
2043
2043
|
/* 13 */
|
|
2044
2044
|
/***/
|
|
2045
2045
|
function(o, a, u) {
|
|
2046
|
-
var
|
|
2046
|
+
var l = u(1), p = u(0), d = u(4);
|
|
2047
2047
|
o.exports = function() {
|
|
2048
2048
|
function v(w, C, V, _, A, Y) {
|
|
2049
2049
|
Y !== d && p(
|
|
@@ -2074,7 +2074,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
2074
2074
|
shape: f,
|
|
2075
2075
|
exact: f
|
|
2076
2076
|
};
|
|
2077
|
-
return m.checkPropTypes =
|
|
2077
|
+
return m.checkPropTypes = l, m.PropTypes = m, m;
|
|
2078
2078
|
};
|
|
2079
2079
|
},
|
|
2080
2080
|
/* 14 */
|
|
@@ -2083,11 +2083,11 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
2083
2083
|
Object.defineProperty(a, "__esModule", {
|
|
2084
2084
|
value: !0
|
|
2085
2085
|
});
|
|
2086
|
-
var
|
|
2086
|
+
var l = u(15);
|
|
2087
2087
|
Object.defineProperty(a, "blank", {
|
|
2088
2088
|
enumerable: !0,
|
|
2089
2089
|
get: function() {
|
|
2090
|
-
return _(
|
|
2090
|
+
return _(l).default;
|
|
2091
2091
|
}
|
|
2092
2092
|
});
|
|
2093
2093
|
var p = u(16);
|
|
@@ -2348,9 +2348,9 @@ function Jr(e, i) {
|
|
|
2348
2348
|
if (e == null) return {};
|
|
2349
2349
|
var o = Zr(e, i), a, u;
|
|
2350
2350
|
if (Object.getOwnPropertySymbols) {
|
|
2351
|
-
var
|
|
2352
|
-
for (u = 0; u <
|
|
2353
|
-
a =
|
|
2351
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
2352
|
+
for (u = 0; u < l.length; u++)
|
|
2353
|
+
a = l[u], !(i.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (o[a] = e[a]);
|
|
2354
2354
|
}
|
|
2355
2355
|
return o;
|
|
2356
2356
|
}
|
|
@@ -2427,7 +2427,7 @@ function rn(e) {
|
|
|
2427
2427
|
var {
|
|
2428
2428
|
attr: a,
|
|
2429
2429
|
size: u,
|
|
2430
|
-
title:
|
|
2430
|
+
title: l
|
|
2431
2431
|
} = e, p = Jr(e, Gr), d = u || o.size || "1em", v;
|
|
2432
2432
|
return o.className && (v = o.className), e.className && (v = (v ? v + " " : "") + e.className), /* @__PURE__ */ Pe.createElement("svg", mt({
|
|
2433
2433
|
stroke: "currentColor",
|
|
@@ -2441,7 +2441,7 @@ function rn(e) {
|
|
|
2441
2441
|
height: d,
|
|
2442
2442
|
width: d,
|
|
2443
2443
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2444
|
-
}),
|
|
2444
|
+
}), l && /* @__PURE__ */ Pe.createElement("title", null, l), e.children);
|
|
2445
2445
|
};
|
|
2446
2446
|
return Gt !== void 0 ? /* @__PURE__ */ Pe.createElement(Gt.Consumer, null, (o) => i(o)) : i(wr);
|
|
2447
2447
|
}
|
|
@@ -2540,23 +2540,23 @@ function Dt(e) {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
const at = (e = () => {
|
|
2542
2542
|
}) => {
|
|
2543
|
-
const [i, o] = Q(!1), a = ke(null), u = (
|
|
2543
|
+
const [i, o] = Q(!1), a = ke(null), u = (l) => {
|
|
2544
2544
|
var p;
|
|
2545
|
-
(p = a.current) != null && p.contains(
|
|
2545
|
+
(p = a.current) != null && p.contains(l.target) ? o(!1) : (o(!0), e(l, a));
|
|
2546
2546
|
};
|
|
2547
2547
|
return ge(() => (document.addEventListener("click", u, !0), document.addEventListener("mousedown", u, !0), () => {
|
|
2548
2548
|
document.removeEventListener("click", u, !0), document.removeEventListener("mousedown", u, !0);
|
|
2549
2549
|
}), []), { ref: a, isClicked: i, setIsClicked: o };
|
|
2550
2550
|
}, kr = rt(), bn = ({ children: e, layout: i }) => {
|
|
2551
2551
|
const [o, a] = Q(() => u(i));
|
|
2552
|
-
function u(
|
|
2553
|
-
return ["list", "grid"].includes(
|
|
2552
|
+
function u(l) {
|
|
2553
|
+
return ["list", "grid"].includes(l) ? l : "grid";
|
|
2554
2554
|
}
|
|
2555
2555
|
return /* @__PURE__ */ t.jsx(kr.Provider, { value: { activeLayout: o, setActiveLayout: a }, children: e });
|
|
2556
2556
|
}, Ye = () => nt(kr), xn = ({ setShowToggleViewMenu: e, onLayoutChange: i }) => {
|
|
2557
2557
|
const o = at(() => {
|
|
2558
2558
|
e(!1);
|
|
2559
|
-
}), { activeLayout: a, setActiveLayout: u } = Ye(),
|
|
2559
|
+
}), { activeLayout: a, setActiveLayout: u } = Ye(), l = [
|
|
2560
2560
|
{
|
|
2561
2561
|
key: "grid",
|
|
2562
2562
|
name: "Grid",
|
|
@@ -2570,7 +2570,7 @@ const at = (e = () => {
|
|
|
2570
2570
|
], p = (d) => {
|
|
2571
2571
|
u(d), i(d), e(!1);
|
|
2572
2572
|
};
|
|
2573
|
-
return /* @__PURE__ */ t.jsx("div", { ref: o.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children:
|
|
2573
|
+
return /* @__PURE__ */ t.jsx("div", { ref: o.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: l.map((d) => /* @__PURE__ */ t.jsxs(
|
|
2574
2574
|
"li",
|
|
2575
2575
|
{
|
|
2576
2576
|
role: "menuitem",
|
|
@@ -2589,10 +2589,10 @@ const at = (e = () => {
|
|
|
2589
2589
|
ge(() => {
|
|
2590
2590
|
u(i);
|
|
2591
2591
|
}, [i]);
|
|
2592
|
-
const
|
|
2593
|
-
return /* @__PURE__ */ t.jsx(_r.Provider, { value: { files: a, setFiles: u, getChildren:
|
|
2592
|
+
const l = (p) => p.isDirectory ? a.filter((d) => d.path === `${p.path}/${d.name}`) : [];
|
|
2593
|
+
return /* @__PURE__ */ t.jsx(_r.Provider, { value: { files: a, setFiles: u, getChildren: l, onError: o }, children: e });
|
|
2594
2594
|
}, gt = () => nt(_r), Nr = rt(), jn = ({ children: e }) => {
|
|
2595
|
-
const [i, o] = Q(""), [a, u] = Q(null), [
|
|
2595
|
+
const [i, o] = Q(""), [a, u] = Q(null), [l, p] = Q([]), { files: d } = gt();
|
|
2596
2596
|
return ge(() => {
|
|
2597
2597
|
Array.isArray(d) && d.length > 0 && (p(() => d.filter((v) => v.path === `${i}/${v.name}`)), u(() => d.find((v) => v.path === i) ?? null));
|
|
2598
2598
|
}, [d, i]), /* @__PURE__ */ t.jsx(
|
|
@@ -2603,7 +2603,7 @@ const at = (e = () => {
|
|
|
2603
2603
|
setCurrentPath: o,
|
|
2604
2604
|
currentFolder: a,
|
|
2605
2605
|
setCurrentFolder: u,
|
|
2606
|
-
currentPathFiles:
|
|
2606
|
+
currentPathFiles: l,
|
|
2607
2607
|
setCurrentPathFiles: p
|
|
2608
2608
|
},
|
|
2609
2609
|
children: e
|
|
@@ -2629,7 +2629,7 @@ const at = (e = () => {
|
|
|
2629
2629
|
onPaste: o,
|
|
2630
2630
|
onDownload: a,
|
|
2631
2631
|
onLayoutChange: u,
|
|
2632
|
-
onRefresh:
|
|
2632
|
+
onRefresh: l,
|
|
2633
2633
|
triggerAction: p
|
|
2634
2634
|
}) => {
|
|
2635
2635
|
const [d, v] = Q(!1), { currentFolder: f } = Ae(), { isItemSelection: m, selectedFile: w, setSelectedFile: C } = qe(), { clipBoard: V, setClipBoard: _ } = Hr(), { activeLayout: A } = Ye(), Y = [
|
|
@@ -2655,24 +2655,24 @@ const at = (e = () => {
|
|
|
2655
2655
|
{
|
|
2656
2656
|
icon: A === "grid" ? /* @__PURE__ */ t.jsx(Rr, { size: 16 }) : /* @__PURE__ */ t.jsx(Mr, { size: 16 }),
|
|
2657
2657
|
title: "Change View",
|
|
2658
|
-
onClick: () => v((
|
|
2658
|
+
onClick: () => v((c) => !c)
|
|
2659
2659
|
},
|
|
2660
2660
|
{
|
|
2661
2661
|
icon: /* @__PURE__ */ t.jsx(an, { size: 16 }),
|
|
2662
2662
|
title: "Refresh",
|
|
2663
2663
|
onClick: () => {
|
|
2664
|
-
|
|
2664
|
+
l(), _(null);
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
], I = (
|
|
2667
|
+
], I = (c) => {
|
|
2668
2668
|
_({
|
|
2669
2669
|
files: [w],
|
|
2670
|
-
isMoving:
|
|
2670
|
+
isMoving: c
|
|
2671
2671
|
});
|
|
2672
2672
|
};
|
|
2673
2673
|
function j() {
|
|
2674
|
-
const
|
|
2675
|
-
o(
|
|
2674
|
+
const c = V.files[0], b = m ? w : f, R = V.isMoving ? "move" : "copy";
|
|
2675
|
+
o(c, b, R), V.isMoving && _(null), C(null);
|
|
2676
2676
|
}
|
|
2677
2677
|
const g = () => {
|
|
2678
2678
|
a(w), C(null);
|
|
@@ -2731,13 +2731,13 @@ const at = (e = () => {
|
|
|
2731
2731
|
/* @__PURE__ */ t.jsx("span", { children: "Clear Selection" })
|
|
2732
2732
|
] })
|
|
2733
2733
|
] }) }) : /* @__PURE__ */ t.jsx("div", { className: "toolbar", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-toolbar", children: [
|
|
2734
|
-
/* @__PURE__ */ t.jsx("div", { children: Y.filter((
|
|
2735
|
-
|
|
2736
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
2734
|
+
/* @__PURE__ */ t.jsx("div", { children: Y.filter((c) => c.permission).map((c, b) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: c.onClick, children: [
|
|
2735
|
+
c.icon,
|
|
2736
|
+
/* @__PURE__ */ t.jsx("span", { children: c.text })
|
|
2737
2737
|
] }, b)) }),
|
|
2738
2738
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
|
2739
|
-
L.map((
|
|
2740
|
-
/* @__PURE__ */ t.jsx("button", { className: "item-action icon-only", title:
|
|
2739
|
+
L.map((c, b) => /* @__PURE__ */ t.jsxs("div", { className: "toolbar-left-items", children: [
|
|
2740
|
+
/* @__PURE__ */ t.jsx("button", { className: "item-action icon-only", title: c.title, onClick: c.onClick, children: c.icon }),
|
|
2741
2741
|
b !== L.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "item-separator" })
|
|
2742
2742
|
] }, b)),
|
|
2743
2743
|
d && /* @__PURE__ */ t.jsx(
|
|
@@ -2757,38 +2757,38 @@ var Vr = { exports: {} };
|
|
|
2757
2757
|
})(br, function(o) {
|
|
2758
2758
|
return function(a) {
|
|
2759
2759
|
var u = {};
|
|
2760
|
-
function
|
|
2760
|
+
function l(p) {
|
|
2761
2761
|
if (u[p]) return u[p].exports;
|
|
2762
2762
|
var d = u[p] = { i: p, l: !1, exports: {} };
|
|
2763
|
-
return a[p].call(d.exports, d, d.exports,
|
|
2763
|
+
return a[p].call(d.exports, d, d.exports, l), d.l = !0, d.exports;
|
|
2764
2764
|
}
|
|
2765
|
-
return
|
|
2766
|
-
|
|
2767
|
-
},
|
|
2765
|
+
return l.m = a, l.c = u, l.d = function(p, d, v) {
|
|
2766
|
+
l.o(p, d) || Object.defineProperty(p, d, { enumerable: !0, get: v });
|
|
2767
|
+
}, l.r = function(p) {
|
|
2768
2768
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(p, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(p, "__esModule", { value: !0 });
|
|
2769
|
-
},
|
|
2770
|
-
if (1 & d && (p =
|
|
2769
|
+
}, l.t = function(p, d) {
|
|
2770
|
+
if (1 & d && (p = l(p)), 8 & d || 4 & d && typeof p == "object" && p && p.__esModule) return p;
|
|
2771
2771
|
var v = /* @__PURE__ */ Object.create(null);
|
|
2772
|
-
if (
|
|
2772
|
+
if (l.r(v), Object.defineProperty(v, "default", { enumerable: !0, value: p }), 2 & d && typeof p != "string") for (var f in p) l.d(v, f, (function(m) {
|
|
2773
2773
|
return p[m];
|
|
2774
2774
|
}).bind(null, f));
|
|
2775
2775
|
return v;
|
|
2776
|
-
},
|
|
2776
|
+
}, l.n = function(p) {
|
|
2777
2777
|
var d = p && p.__esModule ? function() {
|
|
2778
2778
|
return p.default;
|
|
2779
2779
|
} : function() {
|
|
2780
2780
|
return p;
|
|
2781
2781
|
};
|
|
2782
|
-
return
|
|
2783
|
-
},
|
|
2782
|
+
return l.d(d, "a", d), d;
|
|
2783
|
+
}, l.o = function(p, d) {
|
|
2784
2784
|
return Object.prototype.hasOwnProperty.call(p, d);
|
|
2785
|
-
},
|
|
2786
|
-
}([function(a, u,
|
|
2787
|
-
a.exports =
|
|
2785
|
+
}, l.p = "", l(l.s = 4);
|
|
2786
|
+
}([function(a, u, l) {
|
|
2787
|
+
a.exports = l(2)();
|
|
2788
2788
|
}, function(a, u) {
|
|
2789
2789
|
a.exports = o;
|
|
2790
|
-
}, function(a, u,
|
|
2791
|
-
var p =
|
|
2790
|
+
}, function(a, u, l) {
|
|
2791
|
+
var p = l(3);
|
|
2792
2792
|
function d() {
|
|
2793
2793
|
}
|
|
2794
2794
|
function v() {
|
|
@@ -2807,41 +2807,41 @@ var Vr = { exports: {} };
|
|
|
2807
2807
|
var w = { array: f, bigint: f, bool: f, func: f, number: f, object: f, string: f, symbol: f, any: f, arrayOf: m, element: f, elementType: f, instanceOf: m, node: f, objectOf: m, oneOf: m, oneOfType: m, shape: m, exact: m, checkPropTypes: v, resetWarningCache: d };
|
|
2808
2808
|
return w.PropTypes = w, w;
|
|
2809
2809
|
};
|
|
2810
|
-
}, function(a, u,
|
|
2810
|
+
}, function(a, u, l) {
|
|
2811
2811
|
a.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2812
|
-
}, function(a, u,
|
|
2813
|
-
|
|
2814
|
-
var p =
|
|
2815
|
-
return
|
|
2812
|
+
}, function(a, u, l) {
|
|
2813
|
+
l.r(u);
|
|
2814
|
+
var p = l(1), d = l.n(p), v = l(0), f = l.n(v), m = function(c) {
|
|
2815
|
+
return c !== 0;
|
|
2816
2816
|
};
|
|
2817
2817
|
function w() {
|
|
2818
|
-
return (w = Object.assign ? Object.assign.bind() : function(
|
|
2818
|
+
return (w = Object.assign ? Object.assign.bind() : function(c) {
|
|
2819
2819
|
for (var b = 1; b < arguments.length; b++) {
|
|
2820
2820
|
var R = arguments[b];
|
|
2821
|
-
for (var z in R) Object.prototype.hasOwnProperty.call(R, z) && (
|
|
2821
|
+
for (var z in R) Object.prototype.hasOwnProperty.call(R, z) && (c[z] = R[z]);
|
|
2822
2822
|
}
|
|
2823
|
-
return
|
|
2823
|
+
return c;
|
|
2824
2824
|
}).apply(this, arguments);
|
|
2825
2825
|
}
|
|
2826
|
-
function C(
|
|
2826
|
+
function C(c) {
|
|
2827
2827
|
return (C = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(b) {
|
|
2828
2828
|
return typeof b;
|
|
2829
2829
|
} : function(b) {
|
|
2830
2830
|
return b && typeof Symbol == "function" && b.constructor === Symbol && b !== Symbol.prototype ? "symbol" : typeof b;
|
|
2831
|
-
})(
|
|
2831
|
+
})(c);
|
|
2832
2832
|
}
|
|
2833
|
-
function V(
|
|
2833
|
+
function V(c, b) {
|
|
2834
2834
|
for (var R = 0; R < b.length; R++) {
|
|
2835
2835
|
var z = b[R];
|
|
2836
|
-
z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(
|
|
2836
|
+
z.enumerable = z.enumerable || !1, z.configurable = !0, "value" in z && (z.writable = !0), Object.defineProperty(c, z.key, z);
|
|
2837
2837
|
}
|
|
2838
2838
|
}
|
|
2839
|
-
function _(
|
|
2839
|
+
function _(c, b) {
|
|
2840
2840
|
return (_ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, z) {
|
|
2841
2841
|
return R.__proto__ = z, R;
|
|
2842
|
-
})(
|
|
2842
|
+
})(c, b);
|
|
2843
2843
|
}
|
|
2844
|
-
function A(
|
|
2844
|
+
function A(c) {
|
|
2845
2845
|
var b = function() {
|
|
2846
2846
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
2847
2847
|
if (typeof Proxy == "function") return !0;
|
|
@@ -2853,7 +2853,7 @@ var Vr = { exports: {} };
|
|
|
2853
2853
|
}
|
|
2854
2854
|
}();
|
|
2855
2855
|
return function() {
|
|
2856
|
-
var R, z = I(
|
|
2856
|
+
var R, z = I(c);
|
|
2857
2857
|
if (b) {
|
|
2858
2858
|
var X = I(this).constructor;
|
|
2859
2859
|
R = Reflect.construct(z, arguments, X);
|
|
@@ -2861,48 +2861,48 @@ var Vr = { exports: {} };
|
|
|
2861
2861
|
return Y(this, R);
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
2864
|
-
function Y(
|
|
2864
|
+
function Y(c, b) {
|
|
2865
2865
|
if (b && (C(b) === "object" || typeof b == "function")) return b;
|
|
2866
2866
|
if (b !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2867
|
-
return L(
|
|
2867
|
+
return L(c);
|
|
2868
2868
|
}
|
|
2869
|
-
function L(
|
|
2870
|
-
if (
|
|
2871
|
-
return
|
|
2869
|
+
function L(c) {
|
|
2870
|
+
if (c === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2871
|
+
return c;
|
|
2872
2872
|
}
|
|
2873
|
-
function I(
|
|
2873
|
+
function I(c) {
|
|
2874
2874
|
return (I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(b) {
|
|
2875
2875
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
2876
|
-
})(
|
|
2876
|
+
})(c);
|
|
2877
2877
|
}
|
|
2878
|
-
function j(
|
|
2879
|
-
return b in
|
|
2878
|
+
function j(c, b, R) {
|
|
2879
|
+
return b in c ? Object.defineProperty(c, b, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : c[b] = R, c;
|
|
2880
2880
|
}
|
|
2881
|
-
var g = function(
|
|
2881
|
+
var g = function(c) {
|
|
2882
2882
|
(function(B, H) {
|
|
2883
2883
|
if (typeof H != "function" && H !== null) throw new TypeError("Super expression must either be null or a function");
|
|
2884
2884
|
B.prototype = Object.create(H && H.prototype, { constructor: { value: B, writable: !0, configurable: !0 } }), Object.defineProperty(B, "prototype", { writable: !1 }), H && _(B, H);
|
|
2885
|
-
})(X,
|
|
2885
|
+
})(X, c);
|
|
2886
2886
|
var b, R, z = A(X);
|
|
2887
2887
|
function X(B) {
|
|
2888
2888
|
var H;
|
|
2889
|
-
return function(
|
|
2890
|
-
if (!(
|
|
2889
|
+
return function(G, J) {
|
|
2890
|
+
if (!(G instanceof J)) throw new TypeError("Cannot call a class as a function");
|
|
2891
2891
|
}(this, X), j(L(H = z.call(this, B)), "continueOpenCollapsible", function() {
|
|
2892
|
-
var
|
|
2893
|
-
H.setState({ height:
|
|
2894
|
-
}), j(L(H), "handleTriggerClick", function(
|
|
2895
|
-
H.props.triggerDisabled || H.state.inTransition || (
|
|
2896
|
-
}), j(L(H), "handleTransitionEnd", function(
|
|
2897
|
-
|
|
2898
|
-
}), j(L(H), "setInnerRef", function(
|
|
2899
|
-
return H.innerRef =
|
|
2892
|
+
var G = L(H).innerRef;
|
|
2893
|
+
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 });
|
|
2894
|
+
}), j(L(H), "handleTriggerClick", function(G) {
|
|
2895
|
+
H.props.triggerDisabled || H.state.inTransition || (G.preventDefault(), H.props.handleTriggerClick ? H.props.handleTriggerClick(H.props.accordionPosition) : H.state.isClosed === !0 ? (H.openCollapsible(), H.props.onOpening(), H.props.onTriggerOpening()) : (H.closeCollapsible(), H.props.onClosing(), H.props.onTriggerClosing()));
|
|
2896
|
+
}), j(L(H), "handleTransitionEnd", function(G) {
|
|
2897
|
+
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()));
|
|
2898
|
+
}), j(L(H), "setInnerRef", function(G) {
|
|
2899
|
+
return H.innerRef = G;
|
|
2900
2900
|
}), H.timeout = void 0, H.contentId = B.contentElementId || "collapsible-content-".concat(Date.now()), H.triggerId = B.triggerElementProps.id || "collapsible-trigger-".concat(Date.now()), B.open ? H.state = { isClosed: !1, shouldSwitchAutoOnNextCycle: !1, height: "auto", transition: "none", hasBeenOpened: !0, overflow: B.overflowWhenOpen, inTransition: !1 } : H.state = { isClosed: !0, shouldSwitchAutoOnNextCycle: !1, height: 0, transition: "height ".concat(B.transitionTime, "ms ").concat(B.easing), hasBeenOpened: !1, overflow: "hidden", inTransition: !1 }, H;
|
|
2901
2901
|
}
|
|
2902
2902
|
return b = X, (R = [{ key: "componentDidUpdate", value: function(B, H) {
|
|
2903
|
-
var
|
|
2903
|
+
var G = this;
|
|
2904
2904
|
this.state.shouldOpenOnNextCycle && this.continueOpenCollapsible(), H.height !== "auto" && H.height !== 0 || this.state.shouldSwitchAutoOnNextCycle !== !0 || (window.clearTimeout(this.timeout), this.timeout = window.setTimeout(function() {
|
|
2905
|
-
|
|
2905
|
+
G.setState({ height: 0, overflow: "hidden", isClosed: !0, shouldSwitchAutoOnNextCycle: !1 });
|
|
2906
2906
|
}, 50)), B.open !== this.props.open && (this.props.open === !0 ? (this.openCollapsible(), this.props.onOpening()) : (this.closeCollapsible(), this.props.onClosing()));
|
|
2907
2907
|
} }, { key: "componentWillUnmount", value: function() {
|
|
2908
2908
|
window.clearTimeout(this.timeout);
|
|
@@ -2912,11 +2912,11 @@ var Vr = { exports: {} };
|
|
|
2912
2912
|
} }, { key: "openCollapsible", value: function() {
|
|
2913
2913
|
this.setState({ inTransition: m(this.innerRef.scrollHeight), shouldOpenOnNextCycle: !0 });
|
|
2914
2914
|
} }, { key: "renderNonClickableTriggerElement", value: function() {
|
|
2915
|
-
var B = this.props, H = B.triggerSibling,
|
|
2915
|
+
var B = this.props, H = B.triggerSibling, G = B.classParentString;
|
|
2916
2916
|
if (!H) return null;
|
|
2917
2917
|
switch (C(H)) {
|
|
2918
2918
|
case "string":
|
|
2919
|
-
return d.a.createElement("span", { className: "".concat(
|
|
2919
|
+
return d.a.createElement("span", { className: "".concat(G, "__trigger-sibling") }, H);
|
|
2920
2920
|
case "function":
|
|
2921
2921
|
return H();
|
|
2922
2922
|
case "object":
|
|
@@ -2925,7 +2925,7 @@ var Vr = { exports: {} };
|
|
|
2925
2925
|
return null;
|
|
2926
2926
|
}
|
|
2927
2927
|
} }, { key: "render", value: function() {
|
|
2928
|
-
var B = this, H = { height: this.state.height, WebkitTransition: this.state.transition, msTransition: this.state.transition, transition: this.state.transition, overflow: this.state.overflow },
|
|
2928
|
+
var B = 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" : "", ee = this.state.isClosed === !1 && this.props.triggerWhenOpen !== void 0 ? this.props.triggerWhenOpen : this.props.trigger, ue = this.props.contentContainerTagName, re = this.props.triggerTagName, oe = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, ve = this.props, me = ve.classParentString, S = ve.contentOuterClassName, q = ve.contentInnerClassName, x = "".concat(me, "__trigger ").concat(G, " ").concat(J, " ").concat(this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName), k = "".concat(me, " ").concat(this.state.isClosed ? this.props.className : this.props.openedClassName), D = "".concat(me, "__contentOuter ").concat(S), U = "".concat(me, "__contentInner ").concat(q);
|
|
2929
2929
|
return d.a.createElement(ue, w({ className: k.trim() }, this.props.containerElementProps), d.a.createElement(re, w({ id: this.triggerId, className: x.trim(), onClick: this.handleTriggerClick, style: this.props.triggerStyle && this.props.triggerStyle, onKeyPress: function(T) {
|
|
2930
2930
|
var s = T.key;
|
|
2931
2931
|
(s === " " && B.props.triggerTagName.toLowerCase() !== "button" || s === "Enter") && B.handleTriggerClick(T);
|
|
@@ -2957,16 +2957,16 @@ function ar(e) {
|
|
|
2957
2957
|
return ae({ 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);
|
|
2958
2958
|
}
|
|
2959
2959
|
const zr = ({ folder: e }) => {
|
|
2960
|
-
const [i, o] = Q(!1), [a, u] = Q(!1), { currentPath:
|
|
2960
|
+
const [i, o] = Q(!1), [a, u] = Q(!1), { currentPath: l, setCurrentPath: p } = Ae(), d = () => {
|
|
2961
2961
|
u(!0), p(e.path);
|
|
2962
2962
|
}, v = (f) => {
|
|
2963
2963
|
f.stopPropagation(), o((m) => !m);
|
|
2964
2964
|
};
|
|
2965
2965
|
return ge(() => {
|
|
2966
|
-
u(
|
|
2967
|
-
const f =
|
|
2966
|
+
u(l === e.path);
|
|
2967
|
+
const f = l.split("/");
|
|
2968
2968
|
f.pop(), f.join("/") === e.path && o(!0);
|
|
2969
|
-
}, [
|
|
2969
|
+
}, [l]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2970
2970
|
/* @__PURE__ */ t.jsxs(
|
|
2971
2971
|
"div",
|
|
2972
2972
|
{
|
|
@@ -3003,21 +3003,21 @@ const zr = ({ folder: e }) => {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
);
|
|
3005
3005
|
}, Mn = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), kn = () => {
|
|
3006
|
-
const [e, i] = Q([]), { files: o } = gt(), a = (u,
|
|
3006
|
+
const [e, i] = Q([]), { files: o } = gt(), a = (u, l) => {
|
|
3007
3007
|
var p;
|
|
3008
|
-
return
|
|
3008
|
+
return l[u] ? (p = l[u]) == null ? void 0 : p.map((d) => ({
|
|
3009
3009
|
...d,
|
|
3010
|
-
subDirectories: a(d.path,
|
|
3010
|
+
subDirectories: a(d.path, l)
|
|
3011
3011
|
})) : [];
|
|
3012
3012
|
};
|
|
3013
3013
|
return ge(() => {
|
|
3014
3014
|
if (Array.isArray(o)) {
|
|
3015
|
-
const u = o.filter((p) => p.isDirectory),
|
|
3016
|
-
i(() => a("",
|
|
3015
|
+
const u = o.filter((p) => p.isDirectory), l = Object.groupBy(u, ({ path: p }) => Mn(p));
|
|
3016
|
+
i(() => a("", l));
|
|
3017
3017
|
}
|
|
3018
|
-
}, [o]), /* @__PURE__ */ t.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((u,
|
|
3018
|
+
}, [o]), /* @__PURE__ */ t.jsx("div", { className: "sb-folders-list", children: (e == null ? void 0 : e.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: e == null ? void 0 : e.map((u, l) => /* @__PURE__ */ t.jsx(zr, { folder: u }, l)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
|
|
3019
3019
|
}, _n = () => {
|
|
3020
|
-
const [e, i] = Q([]), [o, a] = Q([]), [u,
|
|
3020
|
+
const [e, i] = Q([]), [o, a] = Q([]), [u, l] = Q([]), [p, d] = Q(!1), { currentPath: v, setCurrentPath: f } = Ae(), m = ke(null), w = ke([]), C = ke(null), V = at(() => {
|
|
3021
3021
|
d(!1);
|
|
3022
3022
|
});
|
|
3023
3023
|
ge(() => {
|
|
@@ -3027,26 +3027,26 @@ const zr = ({ folder: e }) => {
|
|
|
3027
3027
|
name: j || "Home",
|
|
3028
3028
|
path: j === "" ? j : I += `/${j}`
|
|
3029
3029
|
}));
|
|
3030
|
-
}), a([]),
|
|
3030
|
+
}), a([]), l([]);
|
|
3031
3031
|
}, [v]);
|
|
3032
3032
|
const _ = (I) => {
|
|
3033
3033
|
f(I);
|
|
3034
3034
|
}, A = () => {
|
|
3035
|
-
const I = m.current.clientWidth, j = getComputedStyle(m.current), g = parseFloat(j.paddingLeft),
|
|
3035
|
+
const I = m.current.clientWidth, j = getComputedStyle(m.current), g = parseFloat(j.paddingLeft), c = o.length > 0 ? 1 : 0, b = parseFloat(j.gap) * (e.length + c);
|
|
3036
3036
|
return I - (g + b);
|
|
3037
3037
|
}, Y = () => {
|
|
3038
|
-
var
|
|
3039
|
-
const I = A(), j = w.current.reduce((b, R) => R ? b + R.clientWidth : b, 0), g = ((
|
|
3038
|
+
var c;
|
|
3039
|
+
const I = A(), j = w.current.reduce((b, R) => R ? b + R.clientWidth : b, 0), g = ((c = C.current) == null ? void 0 : c.clientWidth) || 0;
|
|
3040
3040
|
return I - (j + g);
|
|
3041
3041
|
}, L = () => m.current.scrollWidth > m.current.clientWidth;
|
|
3042
3042
|
return ge(() => {
|
|
3043
3043
|
var I;
|
|
3044
3044
|
if (L()) {
|
|
3045
3045
|
const j = e[1], g = (I = w.current[1]) == null ? void 0 : I.clientWidth;
|
|
3046
|
-
|
|
3046
|
+
l((c) => [...c, g]), a((c) => [...c, j]), i((c) => c.filter((b, R) => R !== 1));
|
|
3047
3047
|
} else if (o.length > 0 && Y() > u.at(-1)) {
|
|
3048
3048
|
const j = [e[0], o.at(-1), ...e.slice(1)];
|
|
3049
|
-
i(j), a((g) => g.slice(0, -1)),
|
|
3049
|
+
i(j), a((g) => g.slice(0, -1)), l((g) => g.slice(0, -1));
|
|
3050
3050
|
}
|
|
3051
3051
|
}, [L]), /* @__PURE__ */ t.jsxs("div", { className: "bread-crumb-container", children: [
|
|
3052
3052
|
/* @__PURE__ */ t.jsx("div", { className: "breadcrumb", ref: m, children: e.map((I, j) => /* @__PURE__ */ t.jsxs("div", { style: { display: "contents" }, children: [
|
|
@@ -3088,16 +3088,16 @@ const zr = ({ folder: e }) => {
|
|
|
3088
3088
|
function Nn(e) {
|
|
3089
3089
|
return ae({ 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);
|
|
3090
3090
|
}
|
|
3091
|
-
const An = ({ children: e, filesViewRef: i, contextMenuRef: o, content: a, visible: u, setVisible:
|
|
3091
|
+
const An = ({ children: e, filesViewRef: i, contextMenuRef: o, content: a, visible: u, setVisible: l }) => {
|
|
3092
3092
|
const [p, d] = Q({ clickX: 0, clickY: 0 }), [v, f] = Q(0), [m, w] = Q(0), C = (_) => {
|
|
3093
|
-
_.preventDefault(), d({ clickX: _.clientX, clickY: _.clientY }),
|
|
3093
|
+
_.preventDefault(), d({ clickX: _.clientX, clickY: _.clientY }), l(!0);
|
|
3094
3094
|
}, V = () => {
|
|
3095
|
-
const { clickX: _, clickY: A } = p, Y = i.current, L = Y.getBoundingClientRect(), I = Y.offsetWidth - Y.clientWidth, j = o.current.getBoundingClientRect(), g = j.width,
|
|
3096
|
-
R ? f(`${b}px`) : z && f(`${b - g}px`), B ? w(`${X + Y.scrollTop}px`) : H && w(`${X + Y.scrollTop -
|
|
3095
|
+
const { clickX: _, clickY: A } = p, Y = i.current, L = Y.getBoundingClientRect(), I = Y.offsetWidth - Y.clientWidth, j = o.current.getBoundingClientRect(), g = j.width, c = j.height, b = _ - L.left, R = L.width - (b + I) > g, z = !R, X = A - L.top, B = L.height - X > c, H = !B;
|
|
3096
|
+
R ? f(`${b}px`) : z && f(`${b - g}px`), B ? w(`${X + Y.scrollTop}px`) : H && w(`${X + Y.scrollTop - c}px`);
|
|
3097
3097
|
};
|
|
3098
3098
|
return ge(() => {
|
|
3099
3099
|
u && o.current ? V() : (w(0), f(0));
|
|
3100
|
-
}, [u]), /* @__PURE__ */ t.jsxs("div", { onContextMenu: C, onClick: (_) =>
|
|
3100
|
+
}, [u]), /* @__PURE__ */ t.jsxs("div", { onContextMenu: C, onClick: (_) => l(!1), children: [
|
|
3101
3101
|
e,
|
|
3102
3102
|
u && /* @__PURE__ */ t.jsx(
|
|
3103
3103
|
"div",
|
|
@@ -3150,20 +3150,20 @@ const An = ({ children: e, filesViewRef: i, contextMenuRef: o, content: a, visib
|
|
|
3150
3150
|
}), Ir = (e, i, o) => {
|
|
3151
3151
|
if (o.find((a) => a.name === e)) {
|
|
3152
3152
|
const a = "", u = e;
|
|
3153
|
-
let
|
|
3153
|
+
let l = 0;
|
|
3154
3154
|
const p = new RegExp(`${u} \\(\\d+\\)`);
|
|
3155
3155
|
o.forEach((f) => {
|
|
3156
3156
|
const m = f.isDirectory ? f.name : f.name.split(".").slice(0, -1).join(".");
|
|
3157
3157
|
if (p.test(m)) {
|
|
3158
3158
|
const w = m.split(`${u} (`).pop().slice(0, -1), C = parseInt(w);
|
|
3159
|
-
!isNaN(C) && C >
|
|
3159
|
+
!isNaN(C) && C > l && (l = C);
|
|
3160
3160
|
}
|
|
3161
3161
|
});
|
|
3162
|
-
const d = ` (${++
|
|
3162
|
+
const d = ` (${++l})`;
|
|
3163
3163
|
return u + d + a;
|
|
3164
3164
|
} else
|
|
3165
3165
|
return e;
|
|
3166
|
-
}, Dr = ({ nameInputRef: e, maxLength: i, value: o, onChange: a, onKeyDown: u, onClick:
|
|
3166
|
+
}, Dr = ({ nameInputRef: e, maxLength: i, value: o, onChange: a, onKeyDown: u, onClick: l, rows: p }) => /* @__PURE__ */ t.jsx(
|
|
3167
3167
|
"textarea",
|
|
3168
3168
|
{
|
|
3169
3169
|
ref: e,
|
|
@@ -3172,17 +3172,17 @@ const An = ({ children: e, filesViewRef: i, contextMenuRef: o, content: a, visib
|
|
|
3172
3172
|
value: o,
|
|
3173
3173
|
onChange: a,
|
|
3174
3174
|
onKeyDown: u,
|
|
3175
|
-
onClick:
|
|
3175
|
+
onClick: l,
|
|
3176
3176
|
rows: p
|
|
3177
3177
|
}
|
|
3178
3178
|
), Lr = ({ message: e, xPlacement: i, yPlacement: o }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${i} ${o}`, children: e }), Fn = 220, Hn = ({ filesViewRef: e, file: i, onCreateFolder: o, triggerAction: a }) => {
|
|
3179
|
-
const [u,
|
|
3179
|
+
const [u, l] = Q(i.name), [p, d] = Q(!1), [v, f] = Q(""), [m, w] = Q("right"), [C, V] = Q("bottom"), _ = at((b) => {
|
|
3180
3180
|
b.preventDefault(), b.stopPropagation();
|
|
3181
3181
|
}), { currentFolder: A, currentPathFiles: Y, setCurrentPathFiles: L } = Ae(), { activeLayout: I } = Ye(), j = (b) => {
|
|
3182
|
-
|
|
3182
|
+
l(b.target.value), d(!1);
|
|
3183
3183
|
}, g = (b) => {
|
|
3184
3184
|
if (b.key === "Enter") {
|
|
3185
|
-
b.preventDefault(), b.stopPropagation(),
|
|
3185
|
+
b.preventDefault(), b.stopPropagation(), c();
|
|
3186
3186
|
return;
|
|
3187
3187
|
}
|
|
3188
3188
|
/[\\/:*?"<>|]/.test(b.key) ? (b.preventDefault(), f(
|
|
@@ -3197,7 +3197,7 @@ const An = ({ children: e, filesViewRef: i, contextMenuRef: o, content: a, visib
|
|
|
3197
3197
|
return () => clearTimeout(b);
|
|
3198
3198
|
}
|
|
3199
3199
|
}, [p]);
|
|
3200
|
-
function
|
|
3200
|
+
function c() {
|
|
3201
3201
|
var X, B;
|
|
3202
3202
|
let b = u.trim();
|
|
3203
3203
|
const R = Y.filter((H) => !(H.key && H.key === i.key));
|
|
@@ -3205,16 +3205,16 @@ const An = ({ children: e, filesViewRef: i, contextMenuRef: o, content: a, visib
|
|
|
3205
3205
|
f(`This destination already contains a folder named '${b}'.`), d(!0), (X = _.ref.current) == null || X.focus(), (B = _.ref.current) == null || B.select(), _.setIsClicked(!1);
|
|
3206
3206
|
return;
|
|
3207
3207
|
}
|
|
3208
|
-
b === "" && (b = Ir("New Folder", !0, R)), o(b, A), L((H) => H.filter((
|
|
3208
|
+
b === "" && (b = Ir("New Folder", !0, R)), o(b, A), L((H) => H.filter((G) => G.key !== i.key)), a.close();
|
|
3209
3209
|
}
|
|
3210
3210
|
return ge(() => {
|
|
3211
3211
|
var b, R, z;
|
|
3212
3212
|
if ((b = _.ref.current) == null || b.focus(), (R = _.ref.current) == null || R.select(), (z = _.ref) != null && z.current) {
|
|
3213
|
-
const
|
|
3214
|
-
|
|
3213
|
+
const G = e.current.getBoundingClientRect(), J = _.ref.current, ee = J.getBoundingClientRect();
|
|
3214
|
+
G.right - ee.left > 313 ? w("right") : w("left"), G.bottom - (ee.top + J.clientHeight) > 88 ? V("bottom") : V("top");
|
|
3215
3215
|
}
|
|
3216
3216
|
}, []), ge(() => {
|
|
3217
|
-
_.isClicked &&
|
|
3217
|
+
_.isClicked && c();
|
|
3218
3218
|
}, [_.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3219
3219
|
/* @__PURE__ */ t.jsx(
|
|
3220
3220
|
Dr,
|
|
@@ -3255,7 +3255,7 @@ const $r = ({
|
|
|
3255
3255
|
setShow: o,
|
|
3256
3256
|
heading: a,
|
|
3257
3257
|
dialogWidth: u = "25%",
|
|
3258
|
-
contentClassName:
|
|
3258
|
+
contentClassName: l = "",
|
|
3259
3259
|
closeButton: p = !0
|
|
3260
3260
|
}) => {
|
|
3261
3261
|
const d = ke(null);
|
|
@@ -3269,10 +3269,10 @@ const $r = ({
|
|
|
3269
3269
|
e
|
|
3270
3270
|
] });
|
|
3271
3271
|
}, Be = (e) => e.split(".").pop(), zn = 220, In = ({ filesViewRef: e, file: i, onRename: o, triggerAction: a }) => {
|
|
3272
|
-
const [u,
|
|
3272
|
+
const [u, l] = Q(i == null ? void 0 : i.name), [p, d] = Q(!1), [v, f] = Q(!1), [m, w] = Q(""), [C, V] = Q("right"), [_, A] = Q("bottom"), { currentPathFiles: Y, setCurrentPathFiles: L } = Ae(), { activeLayout: I } = Ye(), j = ke(null), g = at((z) => {
|
|
3273
3273
|
var X;
|
|
3274
3274
|
(X = j.current) != null && X.contains(z.target) || (z.preventDefault(), z.stopPropagation());
|
|
3275
|
-
}),
|
|
3275
|
+
}), c = (z) => {
|
|
3276
3276
|
if (z.key === "Enter") {
|
|
3277
3277
|
z.preventDefault(), z.stopPropagation(), g.setIsClicked(!0);
|
|
3278
3278
|
return;
|
|
@@ -3308,19 +3308,19 @@ const $r = ({
|
|
|
3308
3308
|
f(!1), o(i, u), L((X) => X.filter((B) => B.key !== i.key)), a.close();
|
|
3309
3309
|
}
|
|
3310
3310
|
const R = () => {
|
|
3311
|
-
var z, X, B, H,
|
|
3311
|
+
var z, X, B, H, G, J;
|
|
3312
3312
|
if ((X = (z = g.ref) == null ? void 0 : z.current) == null || X.focus(), i.isDirectory)
|
|
3313
3313
|
(H = (B = g.ref) == null ? void 0 : B.current) == null || H.select();
|
|
3314
3314
|
else {
|
|
3315
3315
|
const ee = Be(i.name), ue = i.name.length - ee.length - 1;
|
|
3316
|
-
(
|
|
3316
|
+
(J = (G = g.ref) == null ? void 0 : G.current) == null || J.setSelectionRange(0, ue);
|
|
3317
3317
|
}
|
|
3318
3318
|
};
|
|
3319
3319
|
return ge(() => {
|
|
3320
3320
|
var z;
|
|
3321
3321
|
if (R(), (z = g.ref) != null && z.current) {
|
|
3322
|
-
const
|
|
3323
|
-
|
|
3322
|
+
const G = e.current.getBoundingClientRect(), J = g.ref.current, ee = J.getBoundingClientRect();
|
|
3323
|
+
G.right - ee.left > 313 ? V("right") : V("left"), G.bottom - (ee.top + J.clientHeight) > 88 ? A("bottom") : A("top");
|
|
3324
3324
|
}
|
|
3325
3325
|
}, []), ge(() => {
|
|
3326
3326
|
g.isClicked && b(!1), R();
|
|
@@ -3332,9 +3332,9 @@ const $r = ({
|
|
|
3332
3332
|
maxLength: zn,
|
|
3333
3333
|
value: u,
|
|
3334
3334
|
onChange: (z) => {
|
|
3335
|
-
|
|
3335
|
+
l(z.target.value), f(!1);
|
|
3336
3336
|
},
|
|
3337
|
-
onKeyDown:
|
|
3337
|
+
onKeyDown: c,
|
|
3338
3338
|
onClick: (z) => z.stopPropagation(),
|
|
3339
3339
|
...I === "list" && { rows: 1 }
|
|
3340
3340
|
}
|
|
@@ -3403,15 +3403,15 @@ const $r = ({
|
|
|
3403
3403
|
let i = e.getHours();
|
|
3404
3404
|
const o = e.getMinutes(), a = i >= 12 ? "PM" : "AM";
|
|
3405
3405
|
i = i % 12, i = i || 12;
|
|
3406
|
-
const u = e.getMonth() + 1,
|
|
3407
|
-
return `${u}/${
|
|
3406
|
+
const u = e.getMonth() + 1, l = e.getDate(), p = e.getFullYear();
|
|
3407
|
+
return `${u}/${l}/${p} ${i}:${o < 10 ? "0" + o : o} ${a}`;
|
|
3408
3408
|
}, Ln = ({
|
|
3409
3409
|
index: e,
|
|
3410
3410
|
file: i,
|
|
3411
3411
|
onCreateFolder: o,
|
|
3412
3412
|
onPaste: a,
|
|
3413
3413
|
onRename: u,
|
|
3414
|
-
onDownload:
|
|
3414
|
+
onDownload: l = () => null,
|
|
3415
3415
|
enableFilePreview: p,
|
|
3416
3416
|
filePreviewPath: d,
|
|
3417
3417
|
onFileOpen: v,
|
|
@@ -3421,39 +3421,39 @@ const $r = ({
|
|
|
3421
3421
|
triggerAction: C
|
|
3422
3422
|
}) => {
|
|
3423
3423
|
var D, U;
|
|
3424
|
-
const { activeLayout: V } = Ye(), _ = V === "grid" ? 48 : 20, A = Bt(_), { setCurrentPath: Y, currentPathFiles: L } = Ae(), { isItemSelection: I, setSelectedFile: j } = qe(), { clipBoard: g, setClipBoard:
|
|
3424
|
+
const { activeLayout: V } = Ye(), _ = V === "grid" ? 48 : 20, A = Bt(_), { setCurrentPath: Y, currentPathFiles: L } = Ae(), { isItemSelection: I, setSelectedFile: j } = qe(), { clipBoard: g, setClipBoard: c } = Hr(), [b, R] = Q(!1), [z, X] = Q(!1), [B, H] = Q(0), G = (g == null ? void 0 : g.isMoving) && g.files.find((T) => T.name === i.name && T.path === i.path), J = at(() => {
|
|
3425
3425
|
R(!1);
|
|
3426
3426
|
}), ee = (T, s) => {
|
|
3427
|
-
T.stopPropagation(),
|
|
3427
|
+
T.stopPropagation(), c({
|
|
3428
3428
|
files: [i],
|
|
3429
3429
|
isMoving: s
|
|
3430
3430
|
}), R(!1);
|
|
3431
3431
|
}, ue = (T) => {
|
|
3432
3432
|
if (T.stopPropagation(), g) {
|
|
3433
3433
|
const s = g.files[0], y = g.isMoving ? "move" : "copy";
|
|
3434
|
-
a(s, i, y), g.isMoving &&
|
|
3434
|
+
a(s, i, y), g.isMoving && c(null), j(null), R(!1);
|
|
3435
3435
|
}
|
|
3436
3436
|
}, re = (T) => {
|
|
3437
3437
|
T.stopPropagation(), R(!1), C.show("rename");
|
|
3438
3438
|
}, oe = (T) => {
|
|
3439
|
-
T.stopPropagation(),
|
|
3440
|
-
},
|
|
3439
|
+
T.stopPropagation(), l(i), R(!1);
|
|
3440
|
+
}, ve = (T) => {
|
|
3441
3441
|
T.stopPropagation(), R(!1), C.show("delete");
|
|
3442
|
-
},
|
|
3442
|
+
}, me = () => {
|
|
3443
3443
|
v(i), R(!1), i.isDirectory ? (Y(i.path), w(null), j(null)) : p && C.show("previewFile");
|
|
3444
3444
|
}, S = (T) => {
|
|
3445
3445
|
if (T.stopPropagation(), i.isEditing) return;
|
|
3446
3446
|
j(i), w(e);
|
|
3447
3447
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
3448
3448
|
if (s - B < 300) {
|
|
3449
|
-
|
|
3449
|
+
me();
|
|
3450
3450
|
return;
|
|
3451
3451
|
}
|
|
3452
3452
|
H(s);
|
|
3453
3453
|
}, q = (T) => {
|
|
3454
|
-
T.stopPropagation(),
|
|
3454
|
+
T.stopPropagation(), me();
|
|
3455
3455
|
}, x = (T) => {
|
|
3456
|
-
T.stopPropagation(), T.key === "Enter" && (j(i), w(e),
|
|
3456
|
+
T.stopPropagation(), T.key === "Enter" && (j(i), w(e), me());
|
|
3457
3457
|
};
|
|
3458
3458
|
ge(() => {
|
|
3459
3459
|
X(m === e);
|
|
@@ -3485,7 +3485,7 @@ const $r = ({
|
|
|
3485
3485
|
/* @__PURE__ */ t.jsx(Wt, { size: 18 }),
|
|
3486
3486
|
/* @__PURE__ */ t.jsx("span", { children: "Download" })
|
|
3487
3487
|
] }),
|
|
3488
|
-
/* @__PURE__ */ t.jsxs("li", { onClick:
|
|
3488
|
+
/* @__PURE__ */ t.jsxs("li", { onClick: ve, children: [
|
|
3489
3489
|
/* @__PURE__ */ t.jsx(Pr, { size: 19 }),
|
|
3490
3490
|
/* @__PURE__ */ t.jsx("span", { children: "Delete" })
|
|
3491
3491
|
] })
|
|
@@ -3494,14 +3494,14 @@ const $r = ({
|
|
|
3494
3494
|
An,
|
|
3495
3495
|
{
|
|
3496
3496
|
filesViewRef: f,
|
|
3497
|
-
contextMenuRef:
|
|
3497
|
+
contextMenuRef: J.ref,
|
|
3498
3498
|
visible: b,
|
|
3499
3499
|
setVisible: R,
|
|
3500
3500
|
content: k,
|
|
3501
3501
|
children: /* @__PURE__ */ t.jsxs(
|
|
3502
3502
|
"div",
|
|
3503
3503
|
{
|
|
3504
|
-
className: `file-item-container ${z || i.isEditing ? "file-selected" : ""} ${
|
|
3504
|
+
className: `file-item-container ${z || i.isEditing ? "file-selected" : ""} ${G ? "file-moving" : ""}`,
|
|
3505
3505
|
title: i.name,
|
|
3506
3506
|
onClick: S,
|
|
3507
3507
|
onKeyDown: x,
|
|
@@ -3549,7 +3549,7 @@ const $r = ({
|
|
|
3549
3549
|
onRename: o,
|
|
3550
3550
|
onDownload: a,
|
|
3551
3551
|
onFileOpen: u,
|
|
3552
|
-
enableFilePreview:
|
|
3552
|
+
enableFilePreview: l,
|
|
3553
3553
|
filePreviewPath: p,
|
|
3554
3554
|
triggerAction: d
|
|
3555
3555
|
}) => {
|
|
@@ -3605,7 +3605,7 @@ const $r = ({
|
|
|
3605
3605
|
onRename: o,
|
|
3606
3606
|
onDownload: a,
|
|
3607
3607
|
onFileOpen: u,
|
|
3608
|
-
enableFilePreview:
|
|
3608
|
+
enableFilePreview: l,
|
|
3609
3609
|
filePreviewPath: p,
|
|
3610
3610
|
filesViewRef: V,
|
|
3611
3611
|
selectedFileIndex: v,
|
|
@@ -3618,8 +3618,8 @@ const $r = ({
|
|
|
3618
3618
|
}
|
|
3619
3619
|
);
|
|
3620
3620
|
}, Wn = ({ triggerAction: e, onDelete: i }) => {
|
|
3621
|
-
const { selectedFile: o, setSelectedFile: a } = qe(), u = (
|
|
3622
|
-
i(
|
|
3621
|
+
const { selectedFile: o, setSelectedFile: a } = qe(), u = (l) => {
|
|
3622
|
+
i(l), a(null), e.close();
|
|
3623
3623
|
};
|
|
3624
3624
|
return /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm", children: [
|
|
3625
3625
|
/* @__PURE__ */ t.jsxs("p", { className: "file-delete-confirm-text", children: [
|
|
@@ -3652,7 +3652,7 @@ const Kn = ({
|
|
|
3652
3652
|
setFiles: o,
|
|
3653
3653
|
setIsUploading: a,
|
|
3654
3654
|
fileUploadConfig: u,
|
|
3655
|
-
onFileUploaded:
|
|
3655
|
+
onFileUploaded: l,
|
|
3656
3656
|
handleFileRemove: p
|
|
3657
3657
|
}) => {
|
|
3658
3658
|
var b, R, z, X;
|
|
@@ -3668,38 +3668,38 @@ const Kn = ({
|
|
|
3668
3668
|
}
|
|
3669
3669
|
};
|
|
3670
3670
|
o(
|
|
3671
|
-
(
|
|
3672
|
-
...
|
|
3671
|
+
(G) => G.map((J, ee) => e === ee ? {
|
|
3672
|
+
...J,
|
|
3673
3673
|
error: H.message
|
|
3674
|
-
} :
|
|
3674
|
+
} : J)
|
|
3675
3675
|
), _(!0), L(H, i.file);
|
|
3676
3676
|
}, j = (B) => {
|
|
3677
3677
|
if (!B.error)
|
|
3678
|
-
return new Promise((H,
|
|
3679
|
-
const
|
|
3680
|
-
Y.current =
|
|
3678
|
+
return new Promise((H, G) => {
|
|
3679
|
+
const J = new XMLHttpRequest();
|
|
3680
|
+
Y.current = J, a((oe) => ({
|
|
3681
3681
|
...oe,
|
|
3682
3682
|
[e]: !0
|
|
3683
|
-
})),
|
|
3683
|
+
})), J.upload.onprogress = (oe) => {
|
|
3684
3684
|
if (oe.lengthComputable) {
|
|
3685
|
-
const
|
|
3686
|
-
v(
|
|
3685
|
+
const ve = Math.round(oe.loaded / oe.total * 100);
|
|
3686
|
+
v(ve);
|
|
3687
3687
|
}
|
|
3688
|
-
},
|
|
3688
|
+
}, J.onload = () => {
|
|
3689
3689
|
a((oe) => ({
|
|
3690
3690
|
...oe,
|
|
3691
3691
|
[e]: !1
|
|
3692
|
-
})),
|
|
3693
|
-
},
|
|
3694
|
-
J
|
|
3695
|
-
},
|
|
3692
|
+
})), J.status === 200 || J.status === 201 ? (m(!0), l(J.response), H(J.response)) : (G(J.statusText), I(J));
|
|
3693
|
+
}, J.onerror = () => {
|
|
3694
|
+
G(J.statusText), I(J);
|
|
3695
|
+
}, J.open("POST", u == null ? void 0 : u.url, !0);
|
|
3696
3696
|
const ee = u == null ? void 0 : u.headers;
|
|
3697
3697
|
for (let oe in ee)
|
|
3698
|
-
|
|
3698
|
+
J.setRequestHeader(oe, ee[oe]);
|
|
3699
3699
|
const ue = new FormData(), re = B == null ? void 0 : B.appendData;
|
|
3700
3700
|
for (let oe in re)
|
|
3701
3701
|
re[oe] && ue.append(oe, re[oe]);
|
|
3702
|
-
ue.append("file", B.file),
|
|
3702
|
+
ue.append("file", B.file), J.send(ue);
|
|
3703
3703
|
});
|
|
3704
3704
|
};
|
|
3705
3705
|
ge(() => {
|
|
@@ -3710,9 +3710,9 @@ const Kn = ({
|
|
|
3710
3710
|
...B,
|
|
3711
3711
|
[e]: !1
|
|
3712
3712
|
})), C(!0), v(0));
|
|
3713
|
-
},
|
|
3713
|
+
}, c = () => {
|
|
3714
3714
|
i != null && i.file && (o(
|
|
3715
|
-
(B) => B.map((H,
|
|
3715
|
+
(B) => B.map((H, G) => e === G ? {
|
|
3716
3716
|
...H,
|
|
3717
3717
|
error: !1
|
|
3718
3718
|
} : H)
|
|
@@ -3726,7 +3726,7 @@ const Kn = ({
|
|
|
3726
3726
|
/* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (R = i.file) == null ? void 0 : R.name, children: (z = i.file) == null ? void 0 : z.name }),
|
|
3727
3727
|
/* @__PURE__ */ t.jsx("span", { className: "file-size", children: bt((X = i.file) == null ? void 0 : X.size) })
|
|
3728
3728
|
] }),
|
|
3729
|
-
f ? /* @__PURE__ */ t.jsx(Pn, { color: "#5c5bb1", title: "Uploaded" }) : w || V ? /* @__PURE__ */ t.jsx(qn, { className: "retry-upload", title: "Retry", onClick:
|
|
3729
|
+
f ? /* @__PURE__ */ t.jsx(Pn, { color: "#5c5bb1", title: "Uploaded" }) : w || V ? /* @__PURE__ */ t.jsx(qn, { className: "retry-upload", title: "Retry", onClick: c }) : /* @__PURE__ */ t.jsx(
|
|
3730
3730
|
"div",
|
|
3731
3731
|
{
|
|
3732
3732
|
className: "rm-file",
|
|
@@ -3754,7 +3754,7 @@ const Kn = ({
|
|
|
3754
3754
|
onFileUploading: a,
|
|
3755
3755
|
onFileUploaded: u
|
|
3756
3756
|
}) => {
|
|
3757
|
-
const [
|
|
3757
|
+
const [l, p] = Q([]), [d, v] = Q(!1), [f, m] = Q({}), { currentFolder: w, currentPathFiles: C } = Ae(), { onError: V } = gt(), _ = (j) => {
|
|
3758
3758
|
if (!o.includes(Be(j.name))) return "File type is not allowed.";
|
|
3759
3759
|
if (C.some(
|
|
3760
3760
|
(R) => R.name.toLowerCase() === j.name.toLowerCase() && !R.isDirectory
|
|
@@ -3762,17 +3762,17 @@ const Kn = ({
|
|
|
3762
3762
|
if (j.size > i) return `Maximum upload size is ${bt(i, 0)}.`;
|
|
3763
3763
|
}, A = (j) => {
|
|
3764
3764
|
if (j = j.filter(
|
|
3765
|
-
(g) => !
|
|
3765
|
+
(g) => !l.some((c) => c.file.name.toLowerCase() === g.name.toLowerCase())
|
|
3766
3766
|
), j.length > 0) {
|
|
3767
|
-
const g = j.map((
|
|
3768
|
-
const b = a(
|
|
3769
|
-
return R && V({ type: "upload", message: R },
|
|
3770
|
-
file:
|
|
3767
|
+
const g = j.map((c) => {
|
|
3768
|
+
const b = a(c, w), R = _(c);
|
|
3769
|
+
return R && V({ type: "upload", message: R }, c), {
|
|
3770
|
+
file: c,
|
|
3771
3771
|
appendData: b,
|
|
3772
3772
|
...R && { error: R }
|
|
3773
3773
|
};
|
|
3774
3774
|
});
|
|
3775
|
-
p((
|
|
3775
|
+
p((c) => [...c, ...g]);
|
|
3776
3776
|
}
|
|
3777
3777
|
}, Y = (j) => {
|
|
3778
3778
|
j.preventDefault(), v(!1);
|
|
@@ -3783,14 +3783,14 @@ const Kn = ({
|
|
|
3783
3783
|
A(g);
|
|
3784
3784
|
}, I = (j) => {
|
|
3785
3785
|
p((g) => {
|
|
3786
|
-
const
|
|
3786
|
+
const c = g.map((b, R) => j === R ? {
|
|
3787
3787
|
...b,
|
|
3788
3788
|
removed: !0
|
|
3789
3789
|
} : b);
|
|
3790
|
-
return
|
|
3790
|
+
return c.every((b) => !!b.removed) ? [] : c;
|
|
3791
3791
|
});
|
|
3792
3792
|
};
|
|
3793
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${
|
|
3793
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${l.length > 0 ? "file-selcted" : ""}`, children: [
|
|
3794
3794
|
/* @__PURE__ */ t.jsxs("div", { className: "select-files", children: [
|
|
3795
3795
|
/* @__PURE__ */ t.jsx(
|
|
3796
3796
|
"div",
|
|
@@ -3821,12 +3821,12 @@ const Kn = ({
|
|
|
3821
3821
|
)
|
|
3822
3822
|
] }) })
|
|
3823
3823
|
] }),
|
|
3824
|
-
|
|
3824
|
+
l.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
|
|
3825
3825
|
/* @__PURE__ */ t.jsx("div", { className: "heading", children: Object.values(f).some((j) => j) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
3826
3826
|
/* @__PURE__ */ t.jsx("h2", { children: "Uploading" }),
|
|
3827
3827
|
/* @__PURE__ */ t.jsx(Cr, { type: "cylon", color: "black", height: 18, width: 20 })
|
|
3828
3828
|
] }) : /* @__PURE__ */ t.jsx("h2", { children: "Completed" }) }),
|
|
3829
|
-
/* @__PURE__ */ t.jsx("ul", { children:
|
|
3829
|
+
/* @__PURE__ */ t.jsx("ul", { children: l.map((j, g) => /* @__PURE__ */ t.jsx(
|
|
3830
3830
|
Kn,
|
|
3831
3831
|
{
|
|
3832
3832
|
index: g,
|
|
@@ -3843,7 +3843,7 @@ const Kn = ({
|
|
|
3843
3843
|
] });
|
|
3844
3844
|
}, or = ["jpg", "jpeg", "png"], ir = ["mp4", "mov", "avi"], sr = ["mp3", "wav", "m4a"], cr = ["txt", "pdf"], Gn = ({ filePreviewPath: e }) => {
|
|
3845
3845
|
var C;
|
|
3846
|
-
const [i, o] = Q(!0), [a, u] = Q(!1), { selectedFile:
|
|
3846
|
+
const [i, o] = Q(!0), [a, u] = Q(!1), { selectedFile: l } = qe(), p = Bt(73), d = (C = Be(l.name)) == null ? void 0 : C.toLowerCase(), v = `${e}${l.path}`, f = () => {
|
|
3847
3847
|
o(!1), u(!1);
|
|
3848
3848
|
}, m = () => {
|
|
3849
3849
|
o(!1), u(!0);
|
|
@@ -3860,9 +3860,9 @@ const Kn = ({
|
|
|
3860
3860
|
/* @__PURE__ */ t.jsx("span", { className: "error-icon", children: p[d] ?? /* @__PURE__ */ t.jsx(Sn, { size: 73 }) }),
|
|
3861
3861
|
/* @__PURE__ */ t.jsx("span", { className: "error-msg", children: "Sorry! Preview is not available for this file." }),
|
|
3862
3862
|
/* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
|
|
3863
|
-
/* @__PURE__ */ t.jsx("span", { className: "file-name", children:
|
|
3864
|
-
|
|
3865
|
-
/* @__PURE__ */ t.jsx("span", { className: "file-size", children: bt(
|
|
3863
|
+
/* @__PURE__ */ t.jsx("span", { className: "file-name", children: l.name }),
|
|
3864
|
+
l.size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
|
|
3865
|
+
/* @__PURE__ */ t.jsx("span", { className: "file-size", children: bt(l.size) })
|
|
3866
3866
|
] }),
|
|
3867
3867
|
/* @__PURE__ */ t.jsx(Ue, { onClick: w, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
|
|
3868
3868
|
/* @__PURE__ */ t.jsx(Wt, { size: 18 }),
|
|
@@ -3902,7 +3902,7 @@ const Kn = ({
|
|
|
3902
3902
|
onFileUploaded: o,
|
|
3903
3903
|
onDelete: a,
|
|
3904
3904
|
maxFileSize: u,
|
|
3905
|
-
filePreviewPath:
|
|
3905
|
+
filePreviewPath: l,
|
|
3906
3906
|
acceptedFileTypes: p,
|
|
3907
3907
|
triggerAction: d
|
|
3908
3908
|
}) => {
|
|
@@ -3928,7 +3928,7 @@ const Kn = ({
|
|
|
3928
3928
|
},
|
|
3929
3929
|
previewFile: {
|
|
3930
3930
|
title: "Preview",
|
|
3931
|
-
component: /* @__PURE__ */ t.jsx(Gn, { filePreviewPath:
|
|
3931
|
+
component: /* @__PURE__ */ t.jsx(Gn, { filePreviewPath: l }),
|
|
3932
3932
|
width: "50%"
|
|
3933
3933
|
}
|
|
3934
3934
|
};
|
|
@@ -3962,17 +3962,17 @@ const Kn = ({
|
|
|
3962
3962
|
}
|
|
3963
3963
|
};
|
|
3964
3964
|
}, Qn = (e, i) => {
|
|
3965
|
-
const [o, a] = Q({ col1: e, col2: i }), [u,
|
|
3965
|
+
const [o, a] = Q({ col1: e, col2: i }), [u, l] = Q(!1), p = ke(null);
|
|
3966
3966
|
return {
|
|
3967
3967
|
containerRef: p,
|
|
3968
3968
|
colSizes: o,
|
|
3969
3969
|
setColSizes: a,
|
|
3970
3970
|
isDragging: u,
|
|
3971
3971
|
handleMouseDown: () => {
|
|
3972
|
-
|
|
3972
|
+
l(!0);
|
|
3973
3973
|
},
|
|
3974
3974
|
handleMouseUp: () => {
|
|
3975
|
-
|
|
3975
|
+
l(!1);
|
|
3976
3976
|
},
|
|
3977
3977
|
handleMouseMove: (m) => {
|
|
3978
3978
|
if (!u) return;
|
|
@@ -3982,7 +3982,7 @@ const Kn = ({
|
|
|
3982
3982
|
}
|
|
3983
3983
|
};
|
|
3984
3984
|
};
|
|
3985
|
-
var Lt = { exports: {} }, vt = { exports: {} },
|
|
3985
|
+
var Lt = { exports: {} }, vt = { exports: {} }, de = {};
|
|
3986
3986
|
/** @license React v16.13.1
|
|
3987
3987
|
* react-is.production.min.js
|
|
3988
3988
|
*
|
|
@@ -3993,30 +3993,30 @@ var Lt = { exports: {} }, vt = { exports: {} }, fe = {};
|
|
|
3993
3993
|
*/
|
|
3994
3994
|
var lr;
|
|
3995
3995
|
function ea() {
|
|
3996
|
-
if (lr) return
|
|
3996
|
+
if (lr) return de;
|
|
3997
3997
|
lr = 1;
|
|
3998
|
-
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108,
|
|
3999
|
-
function j(
|
|
4000
|
-
if (typeof
|
|
4001
|
-
var b =
|
|
3998
|
+
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, C = e ? Symbol.for("react.suspense_list") : 60120, V = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, A = 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;
|
|
3999
|
+
function j(c) {
|
|
4000
|
+
if (typeof c == "object" && c !== null) {
|
|
4001
|
+
var b = c.$$typeof;
|
|
4002
4002
|
switch (b) {
|
|
4003
4003
|
case i:
|
|
4004
|
-
switch (
|
|
4004
|
+
switch (c = c.type, c) {
|
|
4005
4005
|
case v:
|
|
4006
4006
|
case f:
|
|
4007
4007
|
case a:
|
|
4008
|
-
case
|
|
4008
|
+
case l:
|
|
4009
4009
|
case u:
|
|
4010
4010
|
case w:
|
|
4011
|
-
return
|
|
4011
|
+
return c;
|
|
4012
4012
|
default:
|
|
4013
|
-
switch (
|
|
4013
|
+
switch (c = c && c.$$typeof, c) {
|
|
4014
4014
|
case d:
|
|
4015
4015
|
case m:
|
|
4016
4016
|
case _:
|
|
4017
4017
|
case V:
|
|
4018
4018
|
case p:
|
|
4019
|
-
return
|
|
4019
|
+
return c;
|
|
4020
4020
|
default:
|
|
4021
4021
|
return b;
|
|
4022
4022
|
}
|
|
@@ -4026,38 +4026,38 @@ function ea() {
|
|
|
4026
4026
|
}
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
|
-
function g(
|
|
4030
|
-
return j(
|
|
4029
|
+
function g(c) {
|
|
4030
|
+
return j(c) === f;
|
|
4031
4031
|
}
|
|
4032
|
-
return
|
|
4033
|
-
return g(
|
|
4034
|
-
},
|
|
4035
|
-
return j(
|
|
4036
|
-
},
|
|
4037
|
-
return j(
|
|
4038
|
-
},
|
|
4039
|
-
return typeof
|
|
4040
|
-
},
|
|
4041
|
-
return j(
|
|
4042
|
-
},
|
|
4043
|
-
return j(
|
|
4044
|
-
},
|
|
4045
|
-
return j(
|
|
4046
|
-
},
|
|
4047
|
-
return j(
|
|
4048
|
-
},
|
|
4049
|
-
return j(
|
|
4050
|
-
},
|
|
4051
|
-
return j(
|
|
4052
|
-
},
|
|
4053
|
-
return j(
|
|
4054
|
-
},
|
|
4055
|
-
return j(
|
|
4056
|
-
},
|
|
4057
|
-
return typeof
|
|
4058
|
-
},
|
|
4032
|
+
return de.AsyncMode = v, de.ConcurrentMode = f, de.ContextConsumer = d, de.ContextProvider = p, de.Element = i, de.ForwardRef = m, de.Fragment = a, de.Lazy = _, de.Memo = V, de.Portal = o, de.Profiler = l, de.StrictMode = u, de.Suspense = w, de.isAsyncMode = function(c) {
|
|
4033
|
+
return g(c) || j(c) === v;
|
|
4034
|
+
}, de.isConcurrentMode = g, de.isContextConsumer = function(c) {
|
|
4035
|
+
return j(c) === d;
|
|
4036
|
+
}, de.isContextProvider = function(c) {
|
|
4037
|
+
return j(c) === p;
|
|
4038
|
+
}, de.isElement = function(c) {
|
|
4039
|
+
return typeof c == "object" && c !== null && c.$$typeof === i;
|
|
4040
|
+
}, de.isForwardRef = function(c) {
|
|
4041
|
+
return j(c) === m;
|
|
4042
|
+
}, de.isFragment = function(c) {
|
|
4043
|
+
return j(c) === a;
|
|
4044
|
+
}, de.isLazy = function(c) {
|
|
4045
|
+
return j(c) === _;
|
|
4046
|
+
}, de.isMemo = function(c) {
|
|
4047
|
+
return j(c) === V;
|
|
4048
|
+
}, de.isPortal = function(c) {
|
|
4049
|
+
return j(c) === o;
|
|
4050
|
+
}, de.isProfiler = function(c) {
|
|
4051
|
+
return j(c) === l;
|
|
4052
|
+
}, de.isStrictMode = function(c) {
|
|
4053
|
+
return j(c) === u;
|
|
4054
|
+
}, de.isSuspense = function(c) {
|
|
4055
|
+
return j(c) === w;
|
|
4056
|
+
}, de.isValidElementType = function(c) {
|
|
4057
|
+
return typeof c == "string" || typeof c == "function" || c === a || c === f || c === l || c === u || c === w || c === C || typeof c == "object" && c !== null && (c.$$typeof === _ || c.$$typeof === V || c.$$typeof === p || c.$$typeof === d || c.$$typeof === m || c.$$typeof === Y || c.$$typeof === L || c.$$typeof === I || c.$$typeof === A);
|
|
4058
|
+
}, de.typeOf = j, de;
|
|
4059
4059
|
}
|
|
4060
|
-
var
|
|
4060
|
+
var pe = {};
|
|
4061
4061
|
/** @license React v16.13.1
|
|
4062
4062
|
* react-is.development.js
|
|
4063
4063
|
*
|
|
@@ -4069,10 +4069,10 @@ var de = {};
|
|
|
4069
4069
|
var ur;
|
|
4070
4070
|
function ta() {
|
|
4071
4071
|
return ur || (ur = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4072
|
-
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108,
|
|
4072
|
+
var e = typeof Symbol == "function" && Symbol.for, i = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, u = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, p = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, v = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, w = e ? Symbol.for("react.suspense") : 60113, C = e ? Symbol.for("react.suspense_list") : 60120, V = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, A = 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;
|
|
4073
4073
|
function j(E) {
|
|
4074
4074
|
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4075
|
-
E === a || E === f || E ===
|
|
4075
|
+
E === a || E === f || E === l || E === u || E === w || E === C || typeof E == "object" && E !== null && (E.$$typeof === _ || E.$$typeof === V || E.$$typeof === p || E.$$typeof === d || E.$$typeof === m || E.$$typeof === Y || E.$$typeof === L || E.$$typeof === I || E.$$typeof === A);
|
|
4076
4076
|
}
|
|
4077
4077
|
function g(E) {
|
|
4078
4078
|
if (typeof E == "object" && E !== null) {
|
|
@@ -4084,7 +4084,7 @@ function ta() {
|
|
|
4084
4084
|
case v:
|
|
4085
4085
|
case f:
|
|
4086
4086
|
case a:
|
|
4087
|
-
case
|
|
4087
|
+
case l:
|
|
4088
4088
|
case u:
|
|
4089
4089
|
case w:
|
|
4090
4090
|
return ce;
|
|
@@ -4106,9 +4106,9 @@ function ta() {
|
|
|
4106
4106
|
}
|
|
4107
4107
|
}
|
|
4108
4108
|
}
|
|
4109
|
-
var
|
|
4110
|
-
function
|
|
4111
|
-
return
|
|
4109
|
+
var c = v, b = f, R = d, z = p, X = i, B = m, H = a, G = _, J = V, ee = o, ue = l, re = u, oe = w, ve = !1;
|
|
4110
|
+
function me(E) {
|
|
4111
|
+
return ve || (ve = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(E) || g(E) === v;
|
|
4112
4112
|
}
|
|
4113
4113
|
function S(E) {
|
|
4114
4114
|
return g(E) === f;
|
|
@@ -4138,7 +4138,7 @@ function ta() {
|
|
|
4138
4138
|
return g(E) === o;
|
|
4139
4139
|
}
|
|
4140
4140
|
function M(E) {
|
|
4141
|
-
return g(E) ===
|
|
4141
|
+
return g(E) === l;
|
|
4142
4142
|
}
|
|
4143
4143
|
function O(E) {
|
|
4144
4144
|
return g(E) === u;
|
|
@@ -4146,8 +4146,8 @@ function ta() {
|
|
|
4146
4146
|
function W(E) {
|
|
4147
4147
|
return g(E) === w;
|
|
4148
4148
|
}
|
|
4149
|
-
|
|
4150
|
-
}()),
|
|
4149
|
+
pe.AsyncMode = c, pe.ConcurrentMode = b, pe.ContextConsumer = R, pe.ContextProvider = z, pe.Element = X, pe.ForwardRef = B, pe.Fragment = H, pe.Lazy = G, pe.Memo = J, pe.Portal = ee, pe.Profiler = ue, pe.StrictMode = re, pe.Suspense = oe, pe.isAsyncMode = me, pe.isConcurrentMode = S, pe.isContextConsumer = q, pe.isContextProvider = x, pe.isElement = k, pe.isForwardRef = D, pe.isFragment = U, pe.isLazy = T, pe.isMemo = s, pe.isPortal = y, pe.isProfiler = M, pe.isStrictMode = O, pe.isSuspense = W, pe.isValidElementType = j, pe.typeOf = g;
|
|
4150
|
+
}()), pe;
|
|
4151
4151
|
}
|
|
4152
4152
|
var fr;
|
|
4153
4153
|
function Wr() {
|
|
@@ -4163,17 +4163,17 @@ function ra() {
|
|
|
4163
4163
|
if (dr) return _t;
|
|
4164
4164
|
dr = 1;
|
|
4165
4165
|
var e = Object.getOwnPropertySymbols, i = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
4166
|
-
function a(
|
|
4167
|
-
if (
|
|
4166
|
+
function a(l) {
|
|
4167
|
+
if (l == null)
|
|
4168
4168
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
4169
|
-
return Object(
|
|
4169
|
+
return Object(l);
|
|
4170
4170
|
}
|
|
4171
4171
|
function u() {
|
|
4172
4172
|
try {
|
|
4173
4173
|
if (!Object.assign)
|
|
4174
4174
|
return !1;
|
|
4175
|
-
var
|
|
4176
|
-
if (
|
|
4175
|
+
var l = new String("abc");
|
|
4176
|
+
if (l[5] = "de", Object.getOwnPropertyNames(l)[0] === "5")
|
|
4177
4177
|
return !1;
|
|
4178
4178
|
for (var p = {}, d = 0; d < 10; d++)
|
|
4179
4179
|
p["_" + String.fromCharCode(d)] = d;
|
|
@@ -4190,8 +4190,8 @@ function ra() {
|
|
|
4190
4190
|
return !1;
|
|
4191
4191
|
}
|
|
4192
4192
|
}
|
|
4193
|
-
return _t = u() ? Object.assign : function(
|
|
4194
|
-
for (var d, v = a(
|
|
4193
|
+
return _t = u() ? Object.assign : function(l, p) {
|
|
4194
|
+
for (var d, v = a(l), f, m = 1; m < arguments.length; m++) {
|
|
4195
4195
|
d = Object(arguments[m]);
|
|
4196
4196
|
for (var w in d)
|
|
4197
4197
|
i.call(d, w) && (v[w] = d[w]);
|
|
@@ -4223,8 +4223,8 @@ function na() {
|
|
|
4223
4223
|
};
|
|
4224
4224
|
if (process.env.NODE_ENV !== "production") {
|
|
4225
4225
|
var i = Ut(), o = {}, a = Br();
|
|
4226
|
-
e = function(
|
|
4227
|
-
var p = "Warning: " +
|
|
4226
|
+
e = function(l) {
|
|
4227
|
+
var p = "Warning: " + l;
|
|
4228
4228
|
typeof console < "u" && console.error(p);
|
|
4229
4229
|
try {
|
|
4230
4230
|
throw new Error(p);
|
|
@@ -4232,19 +4232,19 @@ function na() {
|
|
|
4232
4232
|
}
|
|
4233
4233
|
};
|
|
4234
4234
|
}
|
|
4235
|
-
function u(
|
|
4235
|
+
function u(l, p, d, v, f) {
|
|
4236
4236
|
if (process.env.NODE_ENV !== "production") {
|
|
4237
|
-
for (var m in
|
|
4238
|
-
if (a(
|
|
4237
|
+
for (var m in l)
|
|
4238
|
+
if (a(l, m)) {
|
|
4239
4239
|
var w;
|
|
4240
4240
|
try {
|
|
4241
|
-
if (typeof
|
|
4241
|
+
if (typeof l[m] != "function") {
|
|
4242
4242
|
var C = Error(
|
|
4243
|
-
(v || "React class") + ": " + d + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
4243
|
+
(v || "React class") + ": " + d + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
4244
4244
|
);
|
|
4245
4245
|
throw C.name = "Invariant Violation", C;
|
|
4246
4246
|
}
|
|
4247
|
-
w =
|
|
4247
|
+
w = l[m](p, m, v, d, null, i);
|
|
4248
4248
|
} catch (_) {
|
|
4249
4249
|
w = _;
|
|
4250
4250
|
}
|
|
@@ -4268,9 +4268,9 @@ var Ht, mr;
|
|
|
4268
4268
|
function aa() {
|
|
4269
4269
|
if (mr) return Ht;
|
|
4270
4270
|
mr = 1;
|
|
4271
|
-
var e = Wr(), i = ra(), o = Ut(), a = Br(), u = na(),
|
|
4271
|
+
var e = Wr(), i = ra(), o = Ut(), a = Br(), u = na(), l = function() {
|
|
4272
4272
|
};
|
|
4273
|
-
process.env.NODE_ENV !== "production" && (
|
|
4273
|
+
process.env.NODE_ENV !== "production" && (l = function(d) {
|
|
4274
4274
|
var v = "Warning: " + d;
|
|
4275
4275
|
typeof console < "u" && console.error(v);
|
|
4276
4276
|
try {
|
|
@@ -4300,14 +4300,14 @@ function aa() {
|
|
|
4300
4300
|
any: I(),
|
|
4301
4301
|
arrayOf: j,
|
|
4302
4302
|
element: g(),
|
|
4303
|
-
elementType:
|
|
4303
|
+
elementType: c(),
|
|
4304
4304
|
instanceOf: b,
|
|
4305
4305
|
node: B(),
|
|
4306
4306
|
objectOf: z,
|
|
4307
4307
|
oneOf: R,
|
|
4308
4308
|
oneOfType: X,
|
|
4309
|
-
shape:
|
|
4310
|
-
exact:
|
|
4309
|
+
shape: G,
|
|
4310
|
+
exact: J
|
|
4311
4311
|
};
|
|
4312
4312
|
function _(S, q) {
|
|
4313
4313
|
return S === q ? S !== 0 || 1 / S === 1 / q : S !== S && q !== q;
|
|
@@ -4329,7 +4329,7 @@ function aa() {
|
|
|
4329
4329
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4330
4330
|
var se = y + ":" + s;
|
|
4331
4331
|
!q[se] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4332
|
-
x < 3 && (
|
|
4332
|
+
x < 3 && (l(
|
|
4333
4333
|
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + y + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
4334
4334
|
), q[se] = !0, x++);
|
|
4335
4335
|
}
|
|
@@ -4385,7 +4385,7 @@ function aa() {
|
|
|
4385
4385
|
}
|
|
4386
4386
|
return Y(S);
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function c() {
|
|
4389
4389
|
function S(q, x, k, D, U) {
|
|
4390
4390
|
var T = q[x];
|
|
4391
4391
|
if (!e.isValidElementType(T)) {
|
|
@@ -4399,7 +4399,7 @@ function aa() {
|
|
|
4399
4399
|
function b(S) {
|
|
4400
4400
|
function q(x, k, D, U, T) {
|
|
4401
4401
|
if (!(x[k] instanceof S)) {
|
|
4402
|
-
var s = S.name || C, y =
|
|
4402
|
+
var s = S.name || C, y = me(x[k]);
|
|
4403
4403
|
return new A("Invalid " + U + " `" + T + "` of type " + ("`" + y + "` supplied to `" + D + "`, expected ") + ("instance of `" + s + "`."));
|
|
4404
4404
|
}
|
|
4405
4405
|
return null;
|
|
@@ -4408,9 +4408,9 @@ function aa() {
|
|
|
4408
4408
|
}
|
|
4409
4409
|
function R(S) {
|
|
4410
4410
|
if (!Array.isArray(S))
|
|
4411
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
4411
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
|
|
4412
4412
|
"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])."
|
|
4413
|
-
) :
|
|
4413
|
+
) : l("Invalid argument supplied to oneOf, expected an array.")), p;
|
|
4414
4414
|
function q(x, k, D, U, T) {
|
|
4415
4415
|
for (var s = x[k], y = 0; y < S.length; y++)
|
|
4416
4416
|
if (_(s, S[y]))
|
|
@@ -4442,12 +4442,12 @@ function aa() {
|
|
|
4442
4442
|
}
|
|
4443
4443
|
function X(S) {
|
|
4444
4444
|
if (!Array.isArray(S))
|
|
4445
|
-
return process.env.NODE_ENV !== "production" &&
|
|
4445
|
+
return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), p;
|
|
4446
4446
|
for (var q = 0; q < S.length; q++) {
|
|
4447
4447
|
var x = S[q];
|
|
4448
4448
|
if (typeof x != "function")
|
|
4449
|
-
return
|
|
4450
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
4449
|
+
return l(
|
|
4450
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ve(x) + " at index " + q + "."
|
|
4451
4451
|
), p;
|
|
4452
4452
|
}
|
|
4453
4453
|
function k(D, U, T, s, y) {
|
|
@@ -4473,7 +4473,7 @@ function aa() {
|
|
|
4473
4473
|
(S || "React class") + ": " + q + " type `" + x + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
4474
4474
|
);
|
|
4475
4475
|
}
|
|
4476
|
-
function
|
|
4476
|
+
function G(S) {
|
|
4477
4477
|
function q(x, k, D, U, T) {
|
|
4478
4478
|
var s = x[k], y = re(s);
|
|
4479
4479
|
if (y !== "object")
|
|
@@ -4490,7 +4490,7 @@ function aa() {
|
|
|
4490
4490
|
}
|
|
4491
4491
|
return Y(q);
|
|
4492
4492
|
}
|
|
4493
|
-
function
|
|
4493
|
+
function J(S) {
|
|
4494
4494
|
function q(x, k, D, U, T) {
|
|
4495
4495
|
var s = x[k], y = re(s);
|
|
4496
4496
|
if (y !== "object")
|
|
@@ -4565,7 +4565,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
4565
4565
|
}
|
|
4566
4566
|
return q;
|
|
4567
4567
|
}
|
|
4568
|
-
function
|
|
4568
|
+
function ve(S) {
|
|
4569
4569
|
var q = oe(S);
|
|
4570
4570
|
switch (q) {
|
|
4571
4571
|
case "array":
|
|
@@ -4579,7 +4579,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
4579
4579
|
return q;
|
|
4580
4580
|
}
|
|
4581
4581
|
}
|
|
4582
|
-
function
|
|
4582
|
+
function me(S) {
|
|
4583
4583
|
return !S.constructor || !S.constructor.name ? C : S.constructor.name;
|
|
4584
4584
|
}
|
|
4585
4585
|
return V.checkPropTypes = u, V.resetWarningCache = u.resetWarningCache, V.PropTypes = V, V;
|
|
@@ -4607,7 +4607,7 @@ function oa() {
|
|
|
4607
4607
|
function u() {
|
|
4608
4608
|
return a;
|
|
4609
4609
|
}
|
|
4610
|
-
var
|
|
4610
|
+
var l = {
|
|
4611
4611
|
array: a,
|
|
4612
4612
|
bigint: a,
|
|
4613
4613
|
bool: a,
|
|
@@ -4630,7 +4630,7 @@ function oa() {
|
|
|
4630
4630
|
checkPropTypes: o,
|
|
4631
4631
|
resetWarningCache: i
|
|
4632
4632
|
};
|
|
4633
|
-
return
|
|
4633
|
+
return l.PropTypes = l, l;
|
|
4634
4634
|
}, Vt;
|
|
4635
4635
|
}
|
|
4636
4636
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -4639,7 +4639,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
4639
4639
|
} else
|
|
4640
4640
|
Lt.exports = oa()();
|
|
4641
4641
|
var ca = Lt.exports;
|
|
4642
|
-
const
|
|
4642
|
+
const fe = /* @__PURE__ */ $t(ca), la = (e, i, o) => {
|
|
4643
4643
|
const a = e[i];
|
|
4644
4644
|
if (a && isNaN(Date.parse(a)))
|
|
4645
4645
|
return new Error(
|
|
@@ -4661,7 +4661,7 @@ const ye = /* @__PURE__ */ $t(ca), la = (e, i, o) => {
|
|
|
4661
4661
|
isLoading: o,
|
|
4662
4662
|
onCreateFolder: a,
|
|
4663
4663
|
onFileUploading: u,
|
|
4664
|
-
onFileUploaded:
|
|
4664
|
+
onFileUploaded: l,
|
|
4665
4665
|
onPaste: p,
|
|
4666
4666
|
onRename: d,
|
|
4667
4667
|
onDownload: v,
|
|
@@ -4674,109 +4674,121 @@ const ye = /* @__PURE__ */ $t(ca), la = (e, i, o) => {
|
|
|
4674
4674
|
enableFilePreview: A = !0,
|
|
4675
4675
|
maxFileSize: Y,
|
|
4676
4676
|
filePreviewPath: L,
|
|
4677
|
-
acceptedFileTypes: I
|
|
4677
|
+
acceptedFileTypes: I,
|
|
4678
|
+
height: j = "600px",
|
|
4679
|
+
width: g = "100%"
|
|
4678
4680
|
}) => {
|
|
4679
|
-
const
|
|
4680
|
-
return /* @__PURE__ */ t.jsxs(
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4681
|
+
const c = Zn(), { containerRef: b, colSizes: R, isDragging: z, handleMouseMove: X, handleMouseUp: B, handleMouseDown: H } = Qn(20, 80);
|
|
4682
|
+
return /* @__PURE__ */ t.jsxs(
|
|
4683
|
+
"main",
|
|
4684
|
+
{
|
|
4685
|
+
className: "file-explorer",
|
|
4686
|
+
onContextMenu: (G) => G.preventDefault(),
|
|
4687
|
+
style: { height: j, width: g },
|
|
4688
|
+
children: [
|
|
4689
|
+
/* @__PURE__ */ t.jsx(jr, { isLoading: o }),
|
|
4690
|
+
/* @__PURE__ */ t.jsx(Cn, { filesData: e, onError: V, children: /* @__PURE__ */ t.jsx(jn, { children: /* @__PURE__ */ t.jsx(wn, { children: /* @__PURE__ */ t.jsx(En, { children: /* @__PURE__ */ t.jsxs(bn, { layout: _, children: [
|
|
4691
|
+
/* @__PURE__ */ t.jsx(
|
|
4692
|
+
On,
|
|
4693
|
+
{
|
|
4694
|
+
allowCreateFolder: !0,
|
|
4695
|
+
allowUploadFile: !0,
|
|
4696
|
+
onPaste: p,
|
|
4697
|
+
onDownload: v,
|
|
4698
|
+
onLayoutChange: m,
|
|
4699
|
+
onRefresh: w,
|
|
4700
|
+
triggerAction: c
|
|
4701
|
+
}
|
|
4702
|
+
),
|
|
4703
|
+
/* @__PURE__ */ t.jsxs(
|
|
4704
|
+
"section",
|
|
4705
|
+
{
|
|
4706
|
+
ref: b,
|
|
4707
|
+
onMouseMove: X,
|
|
4708
|
+
onMouseUp: B,
|
|
4709
|
+
className: "files-container",
|
|
4710
|
+
children: [
|
|
4711
|
+
/* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: R.col1 + "%" }, children: [
|
|
4712
|
+
/* @__PURE__ */ t.jsx(kn, {}),
|
|
4713
|
+
/* @__PURE__ */ t.jsx(
|
|
4714
|
+
"div",
|
|
4715
|
+
{
|
|
4716
|
+
className: `sidebar-resize ${z ? "sidebar-dragging" : ""}`,
|
|
4717
|
+
onMouseDown: H
|
|
4718
|
+
}
|
|
4719
|
+
)
|
|
4720
|
+
] }),
|
|
4721
|
+
/* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: R.col2 + "%" }, children: [
|
|
4722
|
+
/* @__PURE__ */ t.jsx(_n, {}),
|
|
4723
|
+
/* @__PURE__ */ t.jsx(
|
|
4724
|
+
$n,
|
|
4725
|
+
{
|
|
4726
|
+
onCreateFolder: a,
|
|
4727
|
+
onPaste: p,
|
|
4728
|
+
onRename: d,
|
|
4729
|
+
onDownload: v,
|
|
4730
|
+
onFileOpen: C,
|
|
4731
|
+
enableFilePreview: A,
|
|
4732
|
+
filePreviewPath: L,
|
|
4733
|
+
triggerAction: c
|
|
4734
|
+
}
|
|
4735
|
+
)
|
|
4736
|
+
] })
|
|
4737
|
+
]
|
|
4738
|
+
}
|
|
4739
|
+
),
|
|
4740
|
+
/* @__PURE__ */ t.jsx(
|
|
4741
|
+
Jn,
|
|
4742
|
+
{
|
|
4743
|
+
fileUploadConfig: i,
|
|
4744
|
+
onFileUploading: u,
|
|
4745
|
+
onFileUploaded: l,
|
|
4746
|
+
onDelete: f,
|
|
4747
|
+
maxFileSize: Y,
|
|
4748
|
+
filePreviewPath: L,
|
|
4749
|
+
acceptedFileTypes: I,
|
|
4750
|
+
triggerAction: c
|
|
4751
|
+
}
|
|
4752
|
+
)
|
|
4753
|
+
] }) }) }) }) })
|
|
4754
|
+
]
|
|
4755
|
+
}
|
|
4756
|
+
);
|
|
4747
4757
|
};
|
|
4748
4758
|
Ur.displayName = "FileManager";
|
|
4749
4759
|
Ur.propTypes = {
|
|
4750
|
-
files:
|
|
4751
|
-
|
|
4752
|
-
name:
|
|
4753
|
-
isDirectory:
|
|
4754
|
-
path:
|
|
4760
|
+
files: fe.arrayOf(
|
|
4761
|
+
fe.shape({
|
|
4762
|
+
name: fe.string.isRequired,
|
|
4763
|
+
isDirectory: fe.bool.isRequired,
|
|
4764
|
+
path: fe.string.isRequired,
|
|
4755
4765
|
updatedAt: la,
|
|
4756
|
-
size:
|
|
4766
|
+
size: fe.number
|
|
4757
4767
|
})
|
|
4758
4768
|
).isRequired,
|
|
4759
|
-
fileUploadConfig:
|
|
4769
|
+
fileUploadConfig: fe.shape({
|
|
4760
4770
|
url: gr,
|
|
4761
|
-
headers:
|
|
4771
|
+
headers: fe.objectOf(fe.string)
|
|
4762
4772
|
}),
|
|
4763
|
-
isLoading:
|
|
4764
|
-
onCreateFolder:
|
|
4765
|
-
onFileUploading:
|
|
4766
|
-
onFileUploaded:
|
|
4767
|
-
onRename:
|
|
4768
|
-
onDelete:
|
|
4769
|
-
onPaste:
|
|
4770
|
-
onDownload:
|
|
4771
|
-
onLayoutChange:
|
|
4772
|
-
onRefresh:
|
|
4773
|
-
onFileOpen:
|
|
4774
|
-
onError:
|
|
4775
|
-
layout:
|
|
4776
|
-
maxFileSize:
|
|
4777
|
-
enableFilePreview:
|
|
4773
|
+
isLoading: fe.bool,
|
|
4774
|
+
onCreateFolder: fe.func,
|
|
4775
|
+
onFileUploading: fe.func,
|
|
4776
|
+
onFileUploaded: fe.func,
|
|
4777
|
+
onRename: fe.func,
|
|
4778
|
+
onDelete: fe.func,
|
|
4779
|
+
onPaste: fe.func,
|
|
4780
|
+
onDownload: fe.func,
|
|
4781
|
+
onLayoutChange: fe.func,
|
|
4782
|
+
onRefresh: fe.func,
|
|
4783
|
+
onFileOpen: fe.func,
|
|
4784
|
+
onError: fe.func,
|
|
4785
|
+
layout: fe.oneOf(["grid", "list"]),
|
|
4786
|
+
maxFileSize: fe.number,
|
|
4787
|
+
enableFilePreview: fe.bool,
|
|
4778
4788
|
filePreviewPath: gr,
|
|
4779
|
-
acceptedFileTypes:
|
|
4789
|
+
acceptedFileTypes: fe.string,
|
|
4790
|
+
height: fe.oneOfType([fe.string, fe.number]),
|
|
4791
|
+
width: fe.oneOfType([fe.string, fe.number])
|
|
4780
4792
|
};
|
|
4781
4793
|
export {
|
|
4782
4794
|
Ur as FileManager
|