@cubone/react-file-manager 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-file-manager.es.js +412 -400
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as c, jsxs as z, Fragment as fe } from "react/jsx-runtime";
|
|
2
2
|
import * as Re from "react";
|
|
3
|
-
import $e, { useState as R, useRef as
|
|
3
|
+
import $e, { useState as R, useRef as ie, useEffect as Q, createContext as Pe, useContext as Le, useLayoutEffect as Bn, useCallback as cn, useMemo as Ge } from "react";
|
|
4
4
|
var dn = {
|
|
5
5
|
color: void 0,
|
|
6
6
|
size: void 0,
|
|
@@ -81,7 +81,7 @@ function un(n) {
|
|
|
81
81
|
key: t
|
|
82
82
|
}, e.attr), un(e.child)));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function j(n) {
|
|
85
85
|
return (e) => /* @__PURE__ */ $e.createElement(Jn, Ue({
|
|
86
86
|
attr: He({}, n.attr)
|
|
87
87
|
}, e), un(n.child));
|
|
@@ -110,114 +110,114 @@ function Jn(n) {
|
|
|
110
110
|
return yt !== void 0 ? /* @__PURE__ */ $e.createElement(yt.Consumer, null, (t) => e(t)) : e(dn);
|
|
111
111
|
}
|
|
112
112
|
function Xn(n) {
|
|
113
|
-
return
|
|
113
|
+
return j({ attr: { version: "1.1", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M16 8c-0.020-1.045-0.247-2.086-0.665-3.038-0.417-0.953-1.023-1.817-1.766-2.53s-1.624-1.278-2.578-1.651c-0.953-0.374-1.978-0.552-2.991-0.531-1.013 0.020-2.021 0.24-2.943 0.646-0.923 0.405-1.758 0.992-2.449 1.712s-1.237 1.574-1.597 2.497c-0.361 0.923-0.533 1.914-0.512 2.895 0.020 0.981 0.234 1.955 0.627 2.847 0.392 0.892 0.961 1.7 1.658 2.368s1.523 1.195 2.416 1.543c0.892 0.348 1.851 0.514 2.799 0.493 0.949-0.020 1.89-0.227 2.751-0.608 0.862-0.379 1.642-0.929 2.287-1.604s1.154-1.472 1.488-2.335c0.204-0.523 0.342-1.069 0.415-1.622 0.019 0.001 0.039 0.002 0.059 0.002 0.552 0 1-0.448 1-1 0-0.028-0.001-0.056-0.004-0.083h0.004zM14.411 10.655c-0.367 0.831-0.898 1.584-1.55 2.206s-1.422 1.112-2.254 1.434c-0.832 0.323-1.723 0.476-2.608 0.454-0.884-0.020-1.759-0.215-2.56-0.57-0.801-0.354-1.526-0.867-2.125-1.495s-1.071-1.371-1.38-2.173c-0.31-0.801-0.457-1.66-0.435-2.512s0.208-1.694 0.551-2.464c0.342-0.77 0.836-1.468 1.441-2.044s1.321-1.029 2.092-1.326c0.771-0.298 1.596-0.438 2.416-0.416s1.629 0.202 2.368 0.532c0.74 0.329 1.41 0.805 1.963 1.387s0.988 1.27 1.272 2.011c0.285 0.74 0.418 1.532 0.397 2.32h0.004c-0.002 0.027-0.004 0.055-0.004 0.083 0 0.516 0.39 0.94 0.892 0.994-0.097 0.544-0.258 1.075-0.481 1.578z" }, child: [] }] })(n);
|
|
114
114
|
}
|
|
115
115
|
const pt = ({ loading: n = !1, className: e }) => n ? /* @__PURE__ */ c("div", { className: `loader-container ${e}`, children: /* @__PURE__ */ c(Xn, { className: "spinner" }) }) : null;
|
|
116
116
|
function fn(n) {
|
|
117
|
-
return
|
|
117
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { fillRule: "evenodd", d: "M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z" }, child: [] }] })(n);
|
|
118
118
|
}
|
|
119
119
|
function pn(n) {
|
|
120
|
-
return
|
|
120
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z" }, child: [] }, { tag: "path", attr: { d: "M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5" }, child: [] }] })(n);
|
|
121
121
|
}
|
|
122
122
|
function hn(n) {
|
|
123
|
-
return
|
|
123
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5z" }, child: [] }] })(n);
|
|
124
124
|
}
|
|
125
125
|
function bt(n) {
|
|
126
|
-
return
|
|
126
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5zM2.5 2a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm6.5.5A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM1 10.5A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm6.5.5A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5zm1.5-.5a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z" }, child: [] }] })(n);
|
|
127
127
|
}
|
|
128
128
|
function mn(n) {
|
|
129
|
-
return
|
|
129
|
+
return j({ attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0" }, child: [] }] })(n);
|
|
130
130
|
}
|
|
131
131
|
function gn(n) {
|
|
132
|
-
return
|
|
132
|
+
return j({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "23 4 23 10 17 10" }, child: [] }, { tag: "polyline", attr: { points: "1 20 1 14 7 14" }, child: [] }, { tag: "path", attr: { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" }, child: [] }] })(n);
|
|
133
133
|
}
|
|
134
134
|
function Zn(n) {
|
|
135
|
-
return
|
|
135
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" }, child: [] }] })(n);
|
|
136
136
|
}
|
|
137
137
|
function Qn(n) {
|
|
138
|
-
return
|
|
138
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(n);
|
|
139
139
|
}
|
|
140
140
|
function eo(n) {
|
|
141
|
-
return
|
|
141
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(n);
|
|
142
142
|
}
|
|
143
143
|
function to(n) {
|
|
144
|
-
return
|
|
144
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(n);
|
|
145
145
|
}
|
|
146
146
|
function no(n) {
|
|
147
|
-
return
|
|
147
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" }, child: [] }] })(n);
|
|
148
148
|
}
|
|
149
149
|
function vn(n) {
|
|
150
|
-
return
|
|
150
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }, child: [] }] })(n);
|
|
151
151
|
}
|
|
152
152
|
function ht(n) {
|
|
153
|
-
return
|
|
153
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5 5-5z" }, child: [] }] })(n);
|
|
154
154
|
}
|
|
155
155
|
function $n(n) {
|
|
156
|
-
return
|
|
156
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z" }, child: [] }] })(n);
|
|
157
157
|
}
|
|
158
158
|
function oo(n) {
|
|
159
|
-
return
|
|
159
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z" }, child: [] }] })(n);
|
|
160
160
|
}
|
|
161
161
|
function yn(n) {
|
|
162
|
-
return
|
|
162
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z" }, child: [] }, { tag: "path", attr: { d: "M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z" }, child: [] }] })(n);
|
|
163
163
|
}
|
|
164
164
|
function so(n) {
|
|
165
|
-
return
|
|
165
|
+
return j({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20 2H8c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM8 16V4h12l.002 12H8z" }, child: [] }, { tag: "path", attr: { d: "M4 8H2v12c0 1.103.897 2 2 2h12v-2H4V8zm8.933 3.519-1.726-1.726-1.414 1.414 3.274 3.274 5.702-6.84-1.538-1.282z" }, child: [] }] })(n);
|
|
166
166
|
}
|
|
167
167
|
function wn(n) {
|
|
168
|
-
return
|
|
168
|
+
return j({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z" }, child: [] }] })(n);
|
|
169
169
|
}
|
|
170
170
|
function io(n) {
|
|
171
|
-
return
|
|
171
|
+
return j({ attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z" }, child: [] }] })(n);
|
|
172
172
|
}
|
|
173
173
|
function ro(n) {
|
|
174
|
-
return
|
|
174
|
+
return j({ attr: { viewBox: "0 0 640 512" }, child: [{ tag: "path", attr: { d: "M128 0C92.7 0 64 28.7 64 64l0 224-44.8 0C8.6 288 0 296.6 0 307.2C0 349.6 34.4 384 76.8 384L320 384l0-96-192 0 0-224 320 0 0 32 64 0 0-32c0-35.3-28.7-64-64-64L128 0zM512 128l-112 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l192 0c26.5 0 48-21.5 48-48l0-208-96 0c-17.7 0-32-14.3-32-32l0-96zm32 0l0 96 96 0-96-96z" }, child: [] }] })(n);
|
|
175
175
|
}
|
|
176
176
|
function je(n) {
|
|
177
|
-
return
|
|
177
|
+
return j({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z" }, child: [] }] })(n);
|
|
178
178
|
}
|
|
179
179
|
function xt(n) {
|
|
180
|
-
return
|
|
180
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464l256 0c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM192 272l0 128c0 6.5-3.9 12.3-9.9 14.8s-12.9 1.1-17.4-3.5L129.4 376 112 376c-8.8 0-16-7.2-16-16l0-48c0-8.8 7.2-16 16-16l17.4 0 35.3-35.3c4.6-4.6 11.5-5.9 17.4-3.5s9.9 8.3 9.9 14.8zm85.8-4c11.6 20 18.2 43.3 18.2 68s-6.6 48-18.2 68c-6.6 11.5-21.3 15.4-32.8 8.8s-15.4-21.3-8.8-32.8c7.5-12.9 11.8-27.9 11.8-44s-4.3-31.1-11.8-44c-6.6-11.5-2.7-26.2 8.8-32.8s26.2-2.7 32.8 8.8z" }, child: [] }] })(n);
|
|
181
181
|
}
|
|
182
182
|
function ae(n) {
|
|
183
|
-
return
|
|
183
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm97 289c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L79 303c-9.4 9.4-9.4 24.6 0 33.9l48 48c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-31-31 31-31zM257 255c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l31 31-31 31c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l48-48c9.4-9.4 9.4-24.6 0-33.9l-48-48z" }, child: [] }] })(n);
|
|
184
184
|
}
|
|
185
185
|
function Ct(n) {
|
|
186
|
-
return
|
|
186
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z" }, child: [] }] })(n);
|
|
187
187
|
}
|
|
188
188
|
function et(n) {
|
|
189
|
-
return
|
|
189
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2l48 0 32 0 40 0 72 0c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z" }, child: [] }] })(n);
|
|
190
190
|
}
|
|
191
191
|
function ao(n) {
|
|
192
|
-
return
|
|
192
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z" }, child: [] }] })(n);
|
|
193
193
|
}
|
|
194
194
|
function lo(n) {
|
|
195
|
-
return
|
|
195
|
+
return j({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z" }, child: [] }] })(n);
|
|
196
196
|
}
|
|
197
197
|
function St(n) {
|
|
198
|
-
return
|
|
198
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm72 208c-13.3 0-24 10.7-24 24l0 104 0 56c0 13.3 10.7 24 24 24s24-10.7 24-24l0-32 44 0c42 0 76-34 76-76s-34-76-76-76l-68 0zm68 104l-44 0 0-56 44 0c15.5 0 28 12.5 28 28s-12.5 28-28 28z" }, child: [] }] })(n);
|
|
199
199
|
}
|
|
200
200
|
function Ft(n) {
|
|
201
|
-
return
|
|
201
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM80 288c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32l0 16 44.9-29.9c2-1.3 4.4-2.1 6.8-2.1c6.8 0 12.3 5.5 12.3 12.3l0 103.4c0 6.8-5.5 12.3-12.3 12.3c-2.4 0-4.8-.7-6.8-2.1L240 368l0 16c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32l0-96z" }, child: [] }] })(n);
|
|
202
202
|
}
|
|
203
203
|
function Nt(n) {
|
|
204
|
-
return
|
|
204
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z" }, child: [] }] })(n);
|
|
205
205
|
}
|
|
206
206
|
function co(n) {
|
|
207
|
-
return
|
|
207
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z" }, child: [] }] })(n);
|
|
208
208
|
}
|
|
209
209
|
function Ve(n) {
|
|
210
|
-
return
|
|
210
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z" }, child: [] }] })(n);
|
|
211
211
|
}
|
|
212
212
|
function Et(n) {
|
|
213
|
-
return
|
|
213
|
+
return j({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M384 480l48 0c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224l-400 0c-11.4 0-21.9 6-27.6 15.9L48 357.1 48 96c0-8.8 7.2-16 16-16l117.5 0c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8L416 144c8.8 0 16 7.2 16 16l0 32 48 0 0-32c0-35.3-28.7-64-64-64L298.5 96c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l23.7 0L384 480z" }, child: [] }] })(n);
|
|
214
214
|
}
|
|
215
215
|
function ut(n) {
|
|
216
|
-
return
|
|
216
|
+
return j({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M104.6 48L64 48C28.7 48 0 76.7 0 112L0 384c0 35.3 28.7 64 64 64l96 0 0-48-96 0c-8.8 0-16-7.2-16-16l0-272c0-8.8 7.2-16 16-16l16 0c0 17.7 14.3 32 32 32l72.4 0C202 108.4 227.6 96 256 96l62 0c-7.1-27.6-32.2-48-62-48l-40.6 0C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l140.1 0L464 243.9 464 448c0 8.8-7.2 16-16 16zM256 512l192 0c35.3 0 64-28.7 64-64l0-204.1c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1L256 128c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64z" }, child: [] }] })(n);
|
|
217
217
|
}
|
|
218
218
|
const Me = (n = () => {
|
|
219
219
|
}) => {
|
|
220
|
-
const [e, t] = R(!1), o =
|
|
220
|
+
const [e, t] = R(!1), o = ie(null), s = (i) => {
|
|
221
221
|
var r;
|
|
222
222
|
(r = o.current) != null && r.contains(i.target) ? t(!1) : (t(!0), n(i, o));
|
|
223
223
|
};
|
|
@@ -608,17 +608,17 @@ class Ke extends Je {
|
|
|
608
608
|
const C = Array.isArray(w), E = C ? [] : {}, M = C ? m : h;
|
|
609
609
|
for (const k in w)
|
|
610
610
|
if (Object.prototype.hasOwnProperty.call(w, k)) {
|
|
611
|
-
const
|
|
612
|
-
F && !p ? E[k] = this.translate(
|
|
611
|
+
const q = `${M}${i}${k}`;
|
|
612
|
+
F && !p ? E[k] = this.translate(q, {
|
|
613
613
|
...t,
|
|
614
614
|
defaultValue: Ot(x) ? x[k] : void 0,
|
|
615
615
|
joinArrays: !1,
|
|
616
616
|
ns: l
|
|
617
|
-
}) : E[k] = this.translate(
|
|
617
|
+
}) : E[k] = this.translate(q, {
|
|
618
618
|
...t,
|
|
619
619
|
joinArrays: !1,
|
|
620
620
|
ns: l
|
|
621
|
-
}), E[k] ===
|
|
621
|
+
}), E[k] === q && (E[k] = w[k]);
|
|
622
622
|
}
|
|
623
623
|
p = E;
|
|
624
624
|
}
|
|
@@ -627,32 +627,32 @@ class Ke extends Je {
|
|
|
627
627
|
else {
|
|
628
628
|
let C = !1, E = !1;
|
|
629
629
|
!this.isValidLookup(p) && F && (C = !0, p = x), this.isValidLookup(p) || (E = !0, p = r);
|
|
630
|
-
const k = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : p,
|
|
631
|
-
if (E || C ||
|
|
632
|
-
if (this.logger.log(
|
|
633
|
-
const
|
|
630
|
+
const k = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : p, q = F && x !== p && this.options.updateMissing;
|
|
631
|
+
if (E || C || q) {
|
|
632
|
+
if (this.logger.log(q ? "updateKey" : "missingKey", d, a, r, q ? x : p), i) {
|
|
633
|
+
const K = this.resolve(r, {
|
|
634
634
|
...t,
|
|
635
635
|
keySeparator: !1
|
|
636
636
|
});
|
|
637
|
-
|
|
637
|
+
K && K.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
638
638
|
}
|
|
639
639
|
let J = [];
|
|
640
640
|
const ne = this.languageUtils.getFallbackCodes(this.options.fallbackLng, t.lng || this.language);
|
|
641
641
|
if (this.options.saveMissingTo === "fallback" && ne && ne[0])
|
|
642
|
-
for (let
|
|
643
|
-
J.push(ne[
|
|
642
|
+
for (let K = 0; K < ne.length; K++)
|
|
643
|
+
J.push(ne[K]);
|
|
644
644
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(t.lng || this.language) : J.push(t.lng || this.language);
|
|
645
|
-
const
|
|
645
|
+
const re = (K, y, P) => {
|
|
646
646
|
var V;
|
|
647
|
-
const
|
|
648
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
647
|
+
const H = F && P !== p ? P : k;
|
|
648
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(K, a, y, H, q, t) : (V = this.backendConnector) != null && V.saveMissing && this.backendConnector.saveMissing(K, a, y, H, q, t), this.emit("missingKey", K, a, y, p);
|
|
649
649
|
};
|
|
650
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && O ? J.forEach((
|
|
651
|
-
const y = this.pluralResolver.getSuffixes(
|
|
650
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && O ? J.forEach((K) => {
|
|
651
|
+
const y = this.pluralResolver.getSuffixes(K, t);
|
|
652
652
|
T && t[`defaultValue${this.options.pluralSeparator}zero`] && y.indexOf(`${this.options.pluralSeparator}zero`) < 0 && y.push(`${this.options.pluralSeparator}zero`), y.forEach((P) => {
|
|
653
|
-
|
|
653
|
+
re([K], r + P, t[`defaultValue${P}`] || x);
|
|
654
654
|
});
|
|
655
|
-
}) :
|
|
655
|
+
}) : re(J, r, x));
|
|
656
656
|
}
|
|
657
657
|
p = this.extendTranslation(p, e, t, f, o), E && p === r && this.options.appendNamespaceToMissingKey && (p = `${a}:${r}`), (E || C) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${a}:${r}` : r, C ? p : void 0));
|
|
658
658
|
}
|
|
@@ -1606,22 +1606,22 @@ class Oe extends Je {
|
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
const
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1609
|
+
const se = Oe.createInstance();
|
|
1610
|
+
se.createInstance = Oe.createInstance;
|
|
1611
|
+
se.createInstance;
|
|
1612
|
+
se.dir;
|
|
1613
|
+
se.init;
|
|
1614
|
+
se.loadResources;
|
|
1615
|
+
se.reloadResources;
|
|
1616
|
+
se.use;
|
|
1617
|
+
se.changeLanguage;
|
|
1618
|
+
se.getFixedT;
|
|
1619
|
+
se.t;
|
|
1620
|
+
se.exists;
|
|
1621
|
+
se.setDefaultNamespace;
|
|
1622
|
+
se.hasLoadedNamespace;
|
|
1623
|
+
se.loadNamespaces;
|
|
1624
|
+
se.loadLanguages;
|
|
1625
1625
|
const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير العرض", Oo = "تحديث", Mo = "قص", ko = "نسخ", Io = "إعادة تسمية", Do = "تنزيل", Uo = "تم تحديد العنصر", Ho = "تم تحديد {{count}} عناصر", jo = "إلغاء", Vo = "مسح التحديد", Bo = "تم", Wo = "إذا قمت بتغيير امتداد الملف، قد يصبح الملف غير قابل للاستخدام. هل أنت متأكد من أنك تريد تغييره؟", Yo = "لا", Ko = "نعم", qo = "إغلاق", _o = "نوع الملف غير مسموح به.", Go = "الملف موجود بالفعل.", Jo = "أقصى حجم رفع هو", Xo = "اسحب الملفات للرفع", Zo = "اختيار ملف", Qo = "فشل الرفع.", es = "جاري الرفع", ts = "تم الرفع", ns = "إزالة", os = "إلغاء الرفع", ss = "معاينة", is = "آسف! المعاينة غير متاحة لهذا الملف.", rs = "الصفحة الرئيسية", as = "عرض المزيد من المجلدات", ls = "نقل إلى", cs = "هذا المجلد فارغ.", ds = "تحديد الكل", us = "عرض", fs = "شبكة", ps = "قائمة", hs = "فتح", ms = "لا شيء هنا بعد", gs = "الاسم", vs = "تاريخ التعديل", $s = "الحجم", ys = 'هل أنت متأكد أنك تريد حذف "{{fileName}}"؟', ws = "هل أنت متأكد أنك تريد حذف هذه العناصر {{count}}؟", bs = "{{percent}}% تم", xs = "تم الإلغاء", Cs = 'لا يمكن أن يحتوي اسم الملف على أي من الحروف التالية: \\ / : * ? " < > |', Ss = 'هذا الموقع يحتوي بالفعل على مجلد باسم "{{renameFile}}".', Fs = "طي لوحة التنقل", Ns = "توسيع لوحة التنقل", Es = {
|
|
1626
1626
|
newFolder: To,
|
|
1627
1627
|
upload: Ao,
|
|
@@ -2543,7 +2543,7 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
|
|
|
2543
2543
|
vi: { translation: Qg },
|
|
2544
2544
|
zh: { translation: X2 }
|
|
2545
2545
|
}, Q2 = (n = "en") => {
|
|
2546
|
-
|
|
2546
|
+
se.isInitialized ? se.changeLanguage(n) : se.init({
|
|
2547
2547
|
resources: Z2,
|
|
2548
2548
|
lng: n,
|
|
2549
2549
|
fallbackLng: "en",
|
|
@@ -2552,9 +2552,9 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
|
|
|
2552
2552
|
}
|
|
2553
2553
|
});
|
|
2554
2554
|
}, Sn = Pe(() => (n) => n), ev = ({ children: n, language: e }) => {
|
|
2555
|
-
const [t, o] = R(() =>
|
|
2555
|
+
const [t, o] = R(() => se.t.bind(se));
|
|
2556
2556
|
return Q(() => {
|
|
2557
|
-
Q2(e), o(() =>
|
|
2557
|
+
Q2(e), o(() => se.t.bind(se));
|
|
2558
2558
|
}, [e]), /* @__PURE__ */ c(Sn.Provider, { value: t, children: n });
|
|
2559
2559
|
}, de = () => Le(Sn), tv = ({ setShowToggleViewMenu: n, onLayoutChange: e }) => {
|
|
2560
2560
|
const t = Me(() => {
|
|
@@ -2616,12 +2616,12 @@ const To = "مجلد جديد", Ao = "رفع", zo = "لصق", Ro = "تغيير
|
|
|
2616
2616
|
}, r = [...o].sort(i), l = [...s].sort(i);
|
|
2617
2617
|
return [...r, ...l];
|
|
2618
2618
|
}, Nn = Pe(), sv = ({ children: n, initialPath: e, onFolderChange: t }) => {
|
|
2619
|
-
const { files: o } = Xe(), s =
|
|
2619
|
+
const { files: o } = Xe(), s = ie(!1), [i, r] = R(""), [l, a] = R(null), [d, u] = R([]), [f, p] = R({ key: "name", direction: "asc" });
|
|
2620
2620
|
return Q(() => {
|
|
2621
|
-
Array.isArray(o) && o.length > 0
|
|
2621
|
+
Array.isArray(o) && o.length > 0 ? (u(() => {
|
|
2622
2622
|
const h = o.filter((m) => m.path === `${i}/${m.name}`);
|
|
2623
2623
|
return ov(h, f.key, f.direction);
|
|
2624
|
-
}), a(() => o.find((h) => h.path === i) ?? null));
|
|
2624
|
+
}), a(() => o.find((h) => h.path === i) ?? null)) : (u([]), a(null));
|
|
2625
2625
|
}, [o, i, f]), Q(() => {
|
|
2626
2626
|
if (!s.current && Array.isArray(o) && o.length > 0) {
|
|
2627
2627
|
const h = o.some((m) => m.isDirectory && m.path === e) ? e : "";
|
|
@@ -2831,7 +2831,7 @@ var cv = class extends Error {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
}, qe = (...n) => lv(n[0], `[react-collapsed] -- ${n[1]}`);
|
|
2833
2833
|
function Tn(n) {
|
|
2834
|
-
const e =
|
|
2834
|
+
const e = ie(n);
|
|
2835
2835
|
return Q(() => {
|
|
2836
2836
|
e.current = n;
|
|
2837
2837
|
}), cn((...t) => {
|
|
@@ -2840,7 +2840,7 @@ function Tn(n) {
|
|
|
2840
2840
|
}, []);
|
|
2841
2841
|
}
|
|
2842
2842
|
function dv(n, e, t) {
|
|
2843
|
-
const [o, s] = R(e), i =
|
|
2843
|
+
const [o, s] = R(e), i = ie(typeof n < "u"), r = i.current ? n : o, l = Tn(t), a = cn(
|
|
2844
2844
|
(d) => {
|
|
2845
2845
|
const f = typeof d == "function" ? d(r) : d;
|
|
2846
2846
|
i.current || s(f), l == null || l(f);
|
|
@@ -2976,7 +2976,7 @@ function Sv({
|
|
|
2976
2976
|
const a = Tn(t), d = $v(r ? `${r}` : void 0), [u, f] = dv(
|
|
2977
2977
|
o,
|
|
2978
2978
|
s
|
|
2979
|
-
), p =
|
|
2979
|
+
), p = ie(u), [h, m] = R(!1), v = fv(), S = i ?? v, N = ie(), O = ie(), F = ie(null), [L, g] = R(null);
|
|
2980
2980
|
xv(F);
|
|
2981
2981
|
const T = `${l.collapsedHeight || 0}px`;
|
|
2982
2982
|
function x(w) {
|
|
@@ -3048,12 +3048,12 @@ function Sv({
|
|
|
3048
3048
|
},
|
|
3049
3049
|
disabled: !1,
|
|
3050
3050
|
...w
|
|
3051
|
-
}, M = L ? L.tagName === "BUTTON" : void 0, k = w == null ? void 0 : w[C || "ref"],
|
|
3051
|
+
}, M = L ? L.tagName === "BUTTON" : void 0, k = w == null ? void 0 : w[C || "ref"], q = {
|
|
3052
3052
|
id: `react-collapsed-toggle-${d}`,
|
|
3053
3053
|
"aria-controls": `react-collapsed-panel-${d}`,
|
|
3054
3054
|
"aria-expanded": u,
|
|
3055
|
-
onClick(
|
|
3056
|
-
$ || (b == null || b(
|
|
3055
|
+
onClick(re) {
|
|
3056
|
+
$ || (b == null || b(re), f((K) => !K));
|
|
3057
3057
|
},
|
|
3058
3058
|
[C || "ref"]: Wt(k, g)
|
|
3059
3059
|
}, J = {
|
|
@@ -3064,8 +3064,8 @@ function Sv({
|
|
|
3064
3064
|
role: "button",
|
|
3065
3065
|
tabIndex: $ ? -1 : 0
|
|
3066
3066
|
};
|
|
3067
|
-
return M === !1 ? { ...
|
|
3068
|
-
...
|
|
3067
|
+
return M === !1 ? { ...q, ...ne, ...E } : M === !0 ? { ...q, ...J, ...E } : {
|
|
3068
|
+
...q,
|
|
3069
3069
|
...J,
|
|
3070
3070
|
...ne,
|
|
3071
3071
|
...E
|
|
@@ -3105,16 +3105,16 @@ const Fv = ({ open: n, children: e }) => {
|
|
|
3105
3105
|
}, [n, o]), /* @__PURE__ */ c(fe, { children: /* @__PURE__ */ c("div", { ...s(), children: e }) });
|
|
3106
3106
|
};
|
|
3107
3107
|
function Nv(n) {
|
|
3108
|
-
return
|
|
3108
|
+
return j({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z" }, child: [] }] })(n);
|
|
3109
3109
|
}
|
|
3110
3110
|
function Ev(n) {
|
|
3111
|
-
return
|
|
3111
|
+
return j({ attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M288 248v28c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-28c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm-12 72H108c-6.6 0-12 5.4-12 12v28c0 6.6 5.4 12 12 12h168c6.6 0 12-5.4 12-12v-28c0-6.6-5.4-12-12-12zm108-188.1V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V48C0 21.5 21.5 0 48 0h204.1C264.8 0 277 5.1 286 14.1L369.9 98c9 8.9 14.1 21.2 14.1 33.9zm-128-80V128h76.1L256 51.9zM336 464V176H232c-13.3 0-24-10.7-24-24V48H48v416h288z" }, child: [] }] })(n);
|
|
3112
3112
|
}
|
|
3113
3113
|
function Yt(n) {
|
|
3114
|
-
return
|
|
3114
|
+
return j({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z" }, child: [] }] })(n);
|
|
3115
3115
|
}
|
|
3116
3116
|
function Kt(n) {
|
|
3117
|
-
return
|
|
3117
|
+
return j({ 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: [] }] })(n);
|
|
3118
3118
|
}
|
|
3119
3119
|
const An = ({ folder: n, onFileOpen: e }) => {
|
|
3120
3120
|
const [t, o] = R(!1), [s, i] = R(!1), { currentPath: r, setCurrentPath: l, onFolderChange: a } = he(), d = () => {
|
|
@@ -3305,9 +3305,9 @@ function Av() {
|
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
|
-
var g = a, T = d, x = l, w = r, $ = e, b = u, C = o, E = m, M = h, k = t,
|
|
3309
|
-
function
|
|
3310
|
-
return
|
|
3308
|
+
var g = a, T = d, x = l, w = r, $ = e, b = u, C = o, E = m, M = h, k = t, q = i, J = s, ne = f, re = !1;
|
|
3309
|
+
function K(A) {
|
|
3310
|
+
return re || (re = !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.")), y(A) || L(A) === a;
|
|
3311
3311
|
}
|
|
3312
3312
|
function y(A) {
|
|
3313
3313
|
return L(A) === d;
|
|
@@ -3315,7 +3315,7 @@ function Av() {
|
|
|
3315
3315
|
function P(A) {
|
|
3316
3316
|
return L(A) === l;
|
|
3317
3317
|
}
|
|
3318
|
-
function
|
|
3318
|
+
function H(A) {
|
|
3319
3319
|
return L(A) === r;
|
|
3320
3320
|
}
|
|
3321
3321
|
function V(A) {
|
|
@@ -3333,19 +3333,19 @@ function Av() {
|
|
|
3333
3333
|
function Y(A) {
|
|
3334
3334
|
return L(A) === h;
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function _(A) {
|
|
3337
3337
|
return L(A) === t;
|
|
3338
3338
|
}
|
|
3339
3339
|
function X(A) {
|
|
3340
3340
|
return L(A) === i;
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3342
|
+
function I(A) {
|
|
3343
3343
|
return L(A) === s;
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function oe(A) {
|
|
3346
3346
|
return L(A) === f;
|
|
3347
3347
|
}
|
|
3348
|
-
te.AsyncMode = g, te.ConcurrentMode = T, te.ContextConsumer = x, te.ContextProvider = w, te.Element = $, te.ForwardRef = b, te.Fragment = C, te.Lazy = E, te.Memo = M, te.Portal = k, te.Profiler =
|
|
3348
|
+
te.AsyncMode = g, te.ConcurrentMode = T, te.ContextConsumer = x, te.ContextProvider = w, te.Element = $, te.ForwardRef = b, te.Fragment = C, te.Lazy = E, te.Memo = M, te.Portal = k, te.Profiler = q, te.StrictMode = J, te.Suspense = ne, te.isAsyncMode = K, te.isConcurrentMode = y, te.isContextConsumer = P, te.isContextProvider = H, te.isElement = V, te.isForwardRef = U, te.isFragment = G, te.isLazy = W, te.isMemo = Y, te.isPortal = _, te.isProfiler = X, te.isStrictMode = I, te.isSuspense = oe, te.isValidElementType = F, te.typeOf = L;
|
|
3349
3349
|
}()), te;
|
|
3350
3350
|
}
|
|
3351
3351
|
var Gt;
|
|
@@ -3517,34 +3517,34 @@ function Ov() {
|
|
|
3517
3517
|
v.prototype = Error.prototype;
|
|
3518
3518
|
function S(y) {
|
|
3519
3519
|
if (process.env.NODE_ENV !== "production")
|
|
3520
|
-
var P = {},
|
|
3521
|
-
function V(G, W, Y,
|
|
3522
|
-
if (
|
|
3520
|
+
var P = {}, H = 0;
|
|
3521
|
+
function V(G, W, Y, _, X, I, oe) {
|
|
3522
|
+
if (_ = _ || p, I = I || Y, oe !== t) {
|
|
3523
3523
|
if (a) {
|
|
3524
3524
|
var A = new Error(
|
|
3525
3525
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
3526
3526
|
);
|
|
3527
3527
|
throw A.name = "Invariant Violation", A;
|
|
3528
3528
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3529
|
-
var pe =
|
|
3529
|
+
var pe = _ + ":" + Y;
|
|
3530
3530
|
!P[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3531
|
-
|
|
3532
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
3533
|
-
), P[pe] = !0,
|
|
3531
|
+
H < 3 && (i(
|
|
3532
|
+
"You are manually calling a React.PropTypes validation function for the `" + I + "` prop on `" + _ + "`. 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."
|
|
3533
|
+
), P[pe] = !0, H++);
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
return W[Y] == null ? G ? W[Y] === null ? new v("The " + X + " `" +
|
|
3536
|
+
return W[Y] == null ? G ? W[Y] === null ? new v("The " + X + " `" + I + "` is marked as required " + ("in `" + _ + "`, but its value is `null`.")) : new v("The " + X + " `" + I + "` is marked as required in " + ("`" + _ + "`, but its value is `undefined`.")) : null : y(W, Y, _, X, I);
|
|
3537
3537
|
}
|
|
3538
3538
|
var U = V.bind(null, !1);
|
|
3539
3539
|
return U.isRequired = V.bind(null, !0), U;
|
|
3540
3540
|
}
|
|
3541
3541
|
function N(y) {
|
|
3542
|
-
function P(
|
|
3543
|
-
var
|
|
3542
|
+
function P(H, V, U, G, W, Y) {
|
|
3543
|
+
var _ = H[V], X = J(_);
|
|
3544
3544
|
if (X !== y) {
|
|
3545
|
-
var
|
|
3545
|
+
var I = ne(_);
|
|
3546
3546
|
return new v(
|
|
3547
|
-
"Invalid " + G + " `" + W + "` of type " + ("`" +
|
|
3547
|
+
"Invalid " + G + " `" + W + "` of type " + ("`" + I + "` supplied to `" + U + "`, expected ") + ("`" + y + "`."),
|
|
3548
3548
|
{ expectedType: y }
|
|
3549
3549
|
);
|
|
3550
3550
|
}
|
|
@@ -3556,26 +3556,26 @@ function Ov() {
|
|
|
3556
3556
|
return S(r);
|
|
3557
3557
|
}
|
|
3558
3558
|
function F(y) {
|
|
3559
|
-
function P(
|
|
3559
|
+
function P(H, V, U, G, W) {
|
|
3560
3560
|
if (typeof y != "function")
|
|
3561
3561
|
return new v("Property `" + W + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
|
|
3562
|
-
var Y =
|
|
3562
|
+
var Y = H[V];
|
|
3563
3563
|
if (!Array.isArray(Y)) {
|
|
3564
|
-
var
|
|
3565
|
-
return new v("Invalid " + G + " `" + W + "` of type " + ("`" +
|
|
3564
|
+
var _ = J(Y);
|
|
3565
|
+
return new v("Invalid " + G + " `" + W + "` of type " + ("`" + _ + "` supplied to `" + U + "`, expected an array."));
|
|
3566
3566
|
}
|
|
3567
3567
|
for (var X = 0; X < Y.length; X++) {
|
|
3568
|
-
var
|
|
3569
|
-
if (
|
|
3570
|
-
return
|
|
3568
|
+
var I = y(Y, X, U, G, W + "[" + X + "]", t);
|
|
3569
|
+
if (I instanceof Error)
|
|
3570
|
+
return I;
|
|
3571
3571
|
}
|
|
3572
3572
|
return null;
|
|
3573
3573
|
}
|
|
3574
3574
|
return S(P);
|
|
3575
3575
|
}
|
|
3576
3576
|
function L() {
|
|
3577
|
-
function y(P,
|
|
3578
|
-
var W = P[
|
|
3577
|
+
function y(P, H, V, U, G) {
|
|
3578
|
+
var W = P[H];
|
|
3579
3579
|
if (!l(W)) {
|
|
3580
3580
|
var Y = J(W);
|
|
3581
3581
|
return new v("Invalid " + U + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + V + "`, expected a single ReactElement."));
|
|
@@ -3585,8 +3585,8 @@ function Ov() {
|
|
|
3585
3585
|
return S(y);
|
|
3586
3586
|
}
|
|
3587
3587
|
function g() {
|
|
3588
|
-
function y(P,
|
|
3589
|
-
var W = P[
|
|
3588
|
+
function y(P, H, V, U, G) {
|
|
3589
|
+
var W = P[H];
|
|
3590
3590
|
if (!n.isValidElementType(W)) {
|
|
3591
3591
|
var Y = J(W);
|
|
3592
3592
|
return new v("Invalid " + U + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + V + "`, expected a single ReactElement type."));
|
|
@@ -3596,10 +3596,10 @@ function Ov() {
|
|
|
3596
3596
|
return S(y);
|
|
3597
3597
|
}
|
|
3598
3598
|
function T(y) {
|
|
3599
|
-
function P(
|
|
3600
|
-
if (!(
|
|
3601
|
-
var Y = y.name || p,
|
|
3602
|
-
return new v("Invalid " + G + " `" + W + "` of type " + ("`" +
|
|
3599
|
+
function P(H, V, U, G, W) {
|
|
3600
|
+
if (!(H[V] instanceof y)) {
|
|
3601
|
+
var Y = y.name || p, _ = K(H[V]);
|
|
3602
|
+
return new v("Invalid " + G + " `" + W + "` of type " + ("`" + _ + "` supplied to `" + U + "`, expected ") + ("instance of `" + Y + "`."));
|
|
3603
3603
|
}
|
|
3604
3604
|
return null;
|
|
3605
3605
|
}
|
|
@@ -3610,11 +3610,11 @@ function Ov() {
|
|
|
3610
3610
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
3611
3611
|
"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])."
|
|
3612
3612
|
) : i("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
3613
|
-
function P(
|
|
3614
|
-
for (var Y =
|
|
3615
|
-
if (m(Y, y[
|
|
3613
|
+
function P(H, V, U, G, W) {
|
|
3614
|
+
for (var Y = H[V], _ = 0; _ < y.length; _++)
|
|
3615
|
+
if (m(Y, y[_]))
|
|
3616
3616
|
return null;
|
|
3617
|
-
var X = JSON.stringify(y, function(
|
|
3617
|
+
var X = JSON.stringify(y, function(oe, A) {
|
|
3618
3618
|
var pe = ne(A);
|
|
3619
3619
|
return pe === "symbol" ? String(A) : A;
|
|
3620
3620
|
});
|
|
@@ -3623,17 +3623,17 @@ function Ov() {
|
|
|
3623
3623
|
return S(P);
|
|
3624
3624
|
}
|
|
3625
3625
|
function w(y) {
|
|
3626
|
-
function P(
|
|
3626
|
+
function P(H, V, U, G, W) {
|
|
3627
3627
|
if (typeof y != "function")
|
|
3628
3628
|
return new v("Property `" + W + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
|
|
3629
|
-
var Y =
|
|
3630
|
-
if (
|
|
3631
|
-
return new v("Invalid " + G + " `" + W + "` of type " + ("`" +
|
|
3629
|
+
var Y = H[V], _ = J(Y);
|
|
3630
|
+
if (_ !== "object")
|
|
3631
|
+
return new v("Invalid " + G + " `" + W + "` of type " + ("`" + _ + "` supplied to `" + U + "`, expected an object."));
|
|
3632
3632
|
for (var X in Y)
|
|
3633
3633
|
if (o(Y, X)) {
|
|
3634
|
-
var
|
|
3635
|
-
if (
|
|
3636
|
-
return
|
|
3634
|
+
var I = y(Y, X, U, G, W + "." + X, t);
|
|
3635
|
+
if (I instanceof Error)
|
|
3636
|
+
return I;
|
|
3637
3637
|
}
|
|
3638
3638
|
return null;
|
|
3639
3639
|
}
|
|
@@ -3643,68 +3643,68 @@ function Ov() {
|
|
|
3643
3643
|
if (!Array.isArray(y))
|
|
3644
3644
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
3645
3645
|
for (var P = 0; P < y.length; P++) {
|
|
3646
|
-
var
|
|
3647
|
-
if (typeof
|
|
3646
|
+
var H = y[P];
|
|
3647
|
+
if (typeof H != "function")
|
|
3648
3648
|
return i(
|
|
3649
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
3649
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(H) + " at index " + P + "."
|
|
3650
3650
|
), r;
|
|
3651
3651
|
}
|
|
3652
|
-
function V(U, G, W, Y,
|
|
3653
|
-
for (var X = [],
|
|
3654
|
-
var
|
|
3652
|
+
function V(U, G, W, Y, _) {
|
|
3653
|
+
for (var X = [], I = 0; I < y.length; I++) {
|
|
3654
|
+
var oe = y[I], A = oe(U, G, W, Y, _, t);
|
|
3655
3655
|
if (A == null)
|
|
3656
3656
|
return null;
|
|
3657
3657
|
A.data && o(A.data, "expectedType") && X.push(A.data.expectedType);
|
|
3658
3658
|
}
|
|
3659
3659
|
var pe = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
3660
|
-
return new v("Invalid " + Y + " `" +
|
|
3660
|
+
return new v("Invalid " + Y + " `" + _ + "` supplied to " + ("`" + W + "`" + pe + "."));
|
|
3661
3661
|
}
|
|
3662
3662
|
return S(V);
|
|
3663
3663
|
}
|
|
3664
3664
|
function b() {
|
|
3665
|
-
function y(P,
|
|
3666
|
-
return k(P[
|
|
3665
|
+
function y(P, H, V, U, G) {
|
|
3666
|
+
return k(P[H]) ? null : new v("Invalid " + U + " `" + G + "` supplied to " + ("`" + V + "`, expected a ReactNode."));
|
|
3667
3667
|
}
|
|
3668
3668
|
return S(y);
|
|
3669
3669
|
}
|
|
3670
|
-
function C(y, P,
|
|
3670
|
+
function C(y, P, H, V, U) {
|
|
3671
3671
|
return new v(
|
|
3672
|
-
(y || "React class") + ": " + P + " type `" +
|
|
3672
|
+
(y || "React class") + ": " + P + " type `" + H + "." + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
|
|
3673
3673
|
);
|
|
3674
3674
|
}
|
|
3675
3675
|
function E(y) {
|
|
3676
|
-
function P(
|
|
3677
|
-
var Y =
|
|
3678
|
-
if (
|
|
3679
|
-
return new v("Invalid " + G + " `" + W + "` of type `" +
|
|
3676
|
+
function P(H, V, U, G, W) {
|
|
3677
|
+
var Y = H[V], _ = J(Y);
|
|
3678
|
+
if (_ !== "object")
|
|
3679
|
+
return new v("Invalid " + G + " `" + W + "` of type `" + _ + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
3680
3680
|
for (var X in y) {
|
|
3681
|
-
var
|
|
3682
|
-
if (typeof
|
|
3683
|
-
return C(U, G, W, X, ne(
|
|
3684
|
-
var
|
|
3685
|
-
if (
|
|
3686
|
-
return
|
|
3681
|
+
var I = y[X];
|
|
3682
|
+
if (typeof I != "function")
|
|
3683
|
+
return C(U, G, W, X, ne(I));
|
|
3684
|
+
var oe = I(Y, X, U, G, W + "." + X, t);
|
|
3685
|
+
if (oe)
|
|
3686
|
+
return oe;
|
|
3687
3687
|
}
|
|
3688
3688
|
return null;
|
|
3689
3689
|
}
|
|
3690
3690
|
return S(P);
|
|
3691
3691
|
}
|
|
3692
3692
|
function M(y) {
|
|
3693
|
-
function P(
|
|
3694
|
-
var Y =
|
|
3695
|
-
if (
|
|
3696
|
-
return new v("Invalid " + G + " `" + W + "` of type `" +
|
|
3697
|
-
var X = e({},
|
|
3698
|
-
for (var
|
|
3699
|
-
var
|
|
3700
|
-
if (o(y,
|
|
3701
|
-
return C(U, G, W,
|
|
3702
|
-
if (!
|
|
3693
|
+
function P(H, V, U, G, W) {
|
|
3694
|
+
var Y = H[V], _ = J(Y);
|
|
3695
|
+
if (_ !== "object")
|
|
3696
|
+
return new v("Invalid " + G + " `" + W + "` of type `" + _ + "` " + ("supplied to `" + U + "`, expected `object`."));
|
|
3697
|
+
var X = e({}, H[V], y);
|
|
3698
|
+
for (var I in X) {
|
|
3699
|
+
var oe = y[I];
|
|
3700
|
+
if (o(y, I) && typeof oe != "function")
|
|
3701
|
+
return C(U, G, W, I, ne(oe));
|
|
3702
|
+
if (!oe)
|
|
3703
3703
|
return new v(
|
|
3704
|
-
"Invalid " + G + " `" + W + "` key `" +
|
|
3704
|
+
"Invalid " + G + " `" + W + "` key `" + I + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(H[V], null, " ") + `
|
|
3705
3705
|
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
3706
3706
|
);
|
|
3707
|
-
var A =
|
|
3707
|
+
var A = oe(Y, I, U, G, W + "." + I, t);
|
|
3708
3708
|
if (A)
|
|
3709
3709
|
return A;
|
|
3710
3710
|
}
|
|
@@ -3727,13 +3727,13 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
3727
3727
|
return !0;
|
|
3728
3728
|
var P = f(y);
|
|
3729
3729
|
if (P) {
|
|
3730
|
-
var
|
|
3730
|
+
var H = P.call(y), V;
|
|
3731
3731
|
if (P !== y.entries) {
|
|
3732
|
-
for (; !(V =
|
|
3732
|
+
for (; !(V = H.next()).done; )
|
|
3733
3733
|
if (!k(V.value))
|
|
3734
3734
|
return !1;
|
|
3735
3735
|
} else
|
|
3736
|
-
for (; !(V =
|
|
3736
|
+
for (; !(V = H.next()).done; ) {
|
|
3737
3737
|
var U = V.value;
|
|
3738
3738
|
if (U && !k(U[1]))
|
|
3739
3739
|
return !1;
|
|
@@ -3745,12 +3745,12 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
3745
3745
|
return !1;
|
|
3746
3746
|
}
|
|
3747
3747
|
}
|
|
3748
|
-
function
|
|
3748
|
+
function q(y, P) {
|
|
3749
3749
|
return y === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
|
|
3750
3750
|
}
|
|
3751
3751
|
function J(y) {
|
|
3752
3752
|
var P = typeof y;
|
|
3753
|
-
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" :
|
|
3753
|
+
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : q(P, y) ? "symbol" : P;
|
|
3754
3754
|
}
|
|
3755
3755
|
function ne(y) {
|
|
3756
3756
|
if (typeof y > "u" || y === null)
|
|
@@ -3764,7 +3764,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
3764
3764
|
}
|
|
3765
3765
|
return P;
|
|
3766
3766
|
}
|
|
3767
|
-
function
|
|
3767
|
+
function re(y) {
|
|
3768
3768
|
var P = ne(y);
|
|
3769
3769
|
switch (P) {
|
|
3770
3770
|
case "array":
|
|
@@ -3778,7 +3778,7 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
3778
3778
|
return P;
|
|
3779
3779
|
}
|
|
3780
3780
|
}
|
|
3781
|
-
function
|
|
3781
|
+
function K(y) {
|
|
3782
3782
|
return !y.constructor || !y.constructor.name ? p : y.constructor.name;
|
|
3783
3783
|
}
|
|
3784
3784
|
return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
|
|
@@ -3843,17 +3843,17 @@ function kv() {
|
|
|
3843
3843
|
return Ie.exports;
|
|
3844
3844
|
}
|
|
3845
3845
|
var Iv = /* @__PURE__ */ kv();
|
|
3846
|
-
const
|
|
3846
|
+
const D = /* @__PURE__ */ Lv(Iv);
|
|
3847
3847
|
function Dv(n) {
|
|
3848
|
-
return
|
|
3848
|
+
return j({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M18 3a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm0 2h-9v14h9a1 1 0 0 0 .993 -.883l.007 -.117v-12a1 1 0 0 0 -.883 -.993l-.117 -.007zm-2.293 4.293a1 1 0 0 1 .083 1.32l-.083 .094l-1.292 1.293l1.292 1.293a1 1 0 0 1 .083 1.32l-.083 .094a1 1 0 0 1 -1.32 .083l-.094 -.083l-2 -2a1 1 0 0 1 -.083 -1.32l.083 -.094l2 -2a1 1 0 0 1 1.414 0z" }, child: [] }] })(n);
|
|
3849
3849
|
}
|
|
3850
3850
|
function Uv(n) {
|
|
3851
|
-
return
|
|
3851
|
+
return j({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z" }, child: [] }, { tag: "path", attr: { d: "M9 4v16" }, child: [] }, { tag: "path", attr: { d: "M14 10l2 2l-2 2" }, child: [] }] })(n);
|
|
3852
3852
|
}
|
|
3853
3853
|
const gt = ({ collapsibleNav: n, isNavigationPaneOpen: e, setNavigationPaneOpen: t }) => {
|
|
3854
|
-
const [o, s] = R([]), [i, r] = R([]), [l, a] = R([]), [d, u] = R(!1), { currentPath: f, setCurrentPath: p, onFolderChange: h } = he(), m =
|
|
3854
|
+
const [o, s] = R([]), [i, r] = R([]), [l, a] = R([]), [d, u] = R(!1), { currentPath: f, setCurrentPath: p, onFolderChange: h } = he(), m = ie(null), v = ie([]), S = ie(null), N = Me(() => {
|
|
3855
3855
|
u(!1);
|
|
3856
|
-
}), O = de(), F =
|
|
3856
|
+
}), O = de(), F = ie(null);
|
|
3857
3857
|
Q(() => {
|
|
3858
3858
|
s(() => {
|
|
3859
3859
|
let w = "";
|
|
@@ -3867,8 +3867,8 @@ const gt = ({ collapsibleNav: n, isNavigationPaneOpen: e, setNavigationPaneOpen:
|
|
|
3867
3867
|
p(w), h == null || h(w);
|
|
3868
3868
|
}, g = () => {
|
|
3869
3869
|
var J;
|
|
3870
|
-
const w = m.current.clientWidth, $ = getComputedStyle(m.current), b = parseFloat($.paddingLeft), C = n ? 2 : 0, M = n ? ((J = F.current) == null ? void 0 : J.clientWidth) + 1 : 0, k = i.length > 0 ? 1 : 0,
|
|
3871
|
-
return w - (b +
|
|
3870
|
+
const w = m.current.clientWidth, $ = getComputedStyle(m.current), b = parseFloat($.paddingLeft), C = n ? 2 : 0, M = n ? ((J = F.current) == null ? void 0 : J.clientWidth) + 1 : 0, k = i.length > 0 ? 1 : 0, q = parseFloat($.gap) * (o.length + k + C);
|
|
3871
|
+
return w - (b + q + M);
|
|
3872
3872
|
}, T = () => {
|
|
3873
3873
|
var C;
|
|
3874
3874
|
const w = g(), $ = v.current.reduce((E, M) => M ? E + M.clientWidth : E, 0), b = ((C = S.current) == null ? void 0 : C.clientWidth) || 0;
|
|
@@ -3943,8 +3943,8 @@ const gt = ({ collapsibleNav: n, isNavigationPaneOpen: e, setNavigationPaneOpen:
|
|
|
3943
3943
|
};
|
|
3944
3944
|
gt.displayName = "BreadCrumb";
|
|
3945
3945
|
gt.propTypes = {
|
|
3946
|
-
isNavigationPaneOpen:
|
|
3947
|
-
setNavigationPaneOpen:
|
|
3946
|
+
isNavigationPaneOpen: D.bool.isRequired,
|
|
3947
|
+
setNavigationPaneOpen: D.func.isRequired
|
|
3948
3948
|
};
|
|
3949
3949
|
const _e = (n) => ({
|
|
3950
3950
|
pdf: /* @__PURE__ */ c(lo, { size: n }),
|
|
@@ -4047,8 +4047,8 @@ const _e = (n) => ({
|
|
|
4047
4047
|
return Q(() => {
|
|
4048
4048
|
var x, w, $;
|
|
4049
4049
|
if ((x = m.ref.current) == null || x.focus(), (w = m.ref.current) == null || w.select(), ($ = m.ref) != null && $.current) {
|
|
4050
|
-
const M = n.current.getBoundingClientRect(), k = m.ref.current,
|
|
4051
|
-
M.right -
|
|
4050
|
+
const M = n.current.getBoundingClientRect(), k = m.ref.current, q = k.getBoundingClientRect();
|
|
4051
|
+
M.right - q.left > 313 ? f("right") : f("left"), M.bottom - (q.top + k.clientHeight) > 88 ? h("bottom") : h("top");
|
|
4052
4052
|
}
|
|
4053
4053
|
}, []), Q(() => {
|
|
4054
4054
|
m.isClicked && T();
|
|
@@ -4086,7 +4086,7 @@ const _e = (n) => ({
|
|
|
4086
4086
|
}
|
|
4087
4087
|
);
|
|
4088
4088
|
function Vv(n) {
|
|
4089
|
-
return
|
|
4089
|
+
return j({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z" }, child: [] }, { tag: "path", attr: { d: "M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z" }, child: [] }] })(n);
|
|
4090
4090
|
}
|
|
4091
4091
|
const Dn = ({
|
|
4092
4092
|
children: n,
|
|
@@ -4097,7 +4097,7 @@ const Dn = ({
|
|
|
4097
4097
|
contentClassName: i = "",
|
|
4098
4098
|
closeButton: r = !0
|
|
4099
4099
|
}) => {
|
|
4100
|
-
const l =
|
|
4100
|
+
const l = ie(null), a = de(), d = (u) => {
|
|
4101
4101
|
u.key === "Escape" && t(!1);
|
|
4102
4102
|
};
|
|
4103
4103
|
return Q(() => {
|
|
@@ -4127,7 +4127,7 @@ const Dn = ({
|
|
|
4127
4127
|
}
|
|
4128
4128
|
);
|
|
4129
4129
|
}, Ne = (n) => n.split(".").pop(), Bv = 220, Wv = ({ filesViewRef: n, file: e, onRename: t, triggerAction: o }) => {
|
|
4130
|
-
const [s, i] = R(e == null ? void 0 : e.name), [r, l] = R(!1), [a, d] = R(!1), [u, f] = R(""), [p, h] = R("right"), [m, v] = R("bottom"), { currentPathFiles: S, setCurrentPathFiles: N } = he(), { activeLayout: O } = ye(), F = de(), L =
|
|
4130
|
+
const [s, i] = R(e == null ? void 0 : e.name), [r, l] = R(!1), [a, d] = R(!1), [u, f] = R(""), [p, h] = R("right"), [m, v] = R("bottom"), { currentPathFiles: S, setCurrentPathFiles: N } = he(), { activeLayout: O } = ye(), F = de(), L = ie(null), g = Me(($) => {
|
|
4131
4131
|
var b;
|
|
4132
4132
|
(b = L.current) != null && b.contains($.target) || ($.preventDefault(), $.stopPropagation());
|
|
4133
4133
|
}), T = ($) => {
|
|
@@ -4174,15 +4174,15 @@ const Dn = ({
|
|
|
4174
4174
|
if ((b = ($ = g.ref) == null ? void 0 : $.current) == null || b.focus(), e.isDirectory)
|
|
4175
4175
|
(E = (C = g.ref) == null ? void 0 : C.current) == null || E.select();
|
|
4176
4176
|
else {
|
|
4177
|
-
const
|
|
4177
|
+
const q = Ne(e.name), J = e.name.length - q.length - 1;
|
|
4178
4178
|
(k = (M = g.ref) == null ? void 0 : M.current) == null || k.setSelectionRange(0, J);
|
|
4179
4179
|
}
|
|
4180
4180
|
};
|
|
4181
4181
|
return Q(() => {
|
|
4182
4182
|
var $;
|
|
4183
4183
|
if (w(), ($ = g.ref) != null && $.current) {
|
|
4184
|
-
const M = n.current.getBoundingClientRect(), k = g.ref.current,
|
|
4185
|
-
M.right -
|
|
4184
|
+
const M = n.current.getBoundingClientRect(), k = g.ref.current, q = k.getBoundingClientRect();
|
|
4185
|
+
M.right - q.left > 313 ? h("right") : h("left"), M.bottom - (q.top + k.clientHeight) > 88 ? v("bottom") : v("top");
|
|
4186
4186
|
}
|
|
4187
4187
|
}, []), Q(() => {
|
|
4188
4188
|
g.isClicked && x(!1), w();
|
|
@@ -4296,7 +4296,7 @@ const Dn = ({
|
|
|
4296
4296
|
draggable: f
|
|
4297
4297
|
}) => {
|
|
4298
4298
|
var pe, we, Te, vt;
|
|
4299
|
-
const [p, h] = R(!1), [m, v] = R(0), [S, N] = R("hidden"), [O, F] = R(""), [L, g] = R(null), { activeLayout: T } = ye(), x = T === "grid" ? 48 : 20, w = _e(x), { setCurrentPath: $, currentPathFiles: b, onFolderChange: C } = he(), { setSelectedFiles: E } = ve(), { clipBoard: M, handleCutCopy: k, setClipBoard:
|
|
4299
|
+
const [p, h] = R(!1), [m, v] = R(0), [S, N] = R("hidden"), [O, F] = R(""), [L, g] = R(null), { activeLayout: T } = ye(), x = T === "grid" ? 48 : 20, w = _e(x), { setCurrentPath: $, currentPathFiles: b, onFolderChange: C } = he(), { setSelectedFiles: E } = ve(), { clipBoard: M, handleCutCopy: k, setClipBoard: q, handlePasting: J } = Ze(), ne = ie(null), re = _e(ct), K = (M == null ? void 0 : M.isMoving) && M.files.find((Z) => Z.name === e.name && Z.path === e.path), y = () => {
|
|
4300
4300
|
i(e), e.isDirectory ? ($(e.path), C == null || C(e.path), E([])) : s && a.show("previewFile");
|
|
4301
4301
|
}, P = (Z, ue) => {
|
|
4302
4302
|
if (l.length > 0 && Z) {
|
|
@@ -4311,7 +4311,7 @@ const Dn = ({
|
|
|
4311
4311
|
const be = ge.filter((Ce) => Ce.path !== e.path);
|
|
4312
4312
|
return ge.length === be.length ? [...ge, e] : be;
|
|
4313
4313
|
}) : E([e]);
|
|
4314
|
-
},
|
|
4314
|
+
}, H = (Z) => {
|
|
4315
4315
|
if (Z.stopPropagation(), e.isEditing) return;
|
|
4316
4316
|
P(Z.shiftKey, Z.ctrlKey);
|
|
4317
4317
|
const ue = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -4330,11 +4330,11 @@ const Dn = ({
|
|
|
4330
4330
|
!p && N("hidden");
|
|
4331
4331
|
}, Y = (Z) => {
|
|
4332
4332
|
Z.target.checked ? E((ue) => [...ue, e]) : E((ue) => ue.filter((ge) => ge.name !== e.name && ge.path !== e.path)), h(Z.target.checked);
|
|
4333
|
-
},
|
|
4333
|
+
}, _ = (Z) => {
|
|
4334
4334
|
Z.dataTransfer.setDragImage(ne.current, 30, 50), Z.dataTransfer.effectAllowed = "copy", k(!0);
|
|
4335
|
-
}, X = () =>
|
|
4335
|
+
}, X = () => q(null), I = (Z) => {
|
|
4336
4336
|
Z.preventDefault(), p || !e.isDirectory ? Z.dataTransfer.dropEffect = "none" : (g({ x: Z.clientX, y: Z.clientY + 12 }), Z.dataTransfer.dropEffect = "copy", F("file-drop-zone"));
|
|
4337
|
-
},
|
|
4337
|
+
}, oe = (Z) => {
|
|
4338
4338
|
Z.currentTarget.contains(Z.relatedTarget) || (F((ue) => ue && ""), g(null));
|
|
4339
4339
|
}, A = (Z) => {
|
|
4340
4340
|
Z.preventDefault(), !(p || !e.isDirectory) && (J(e), F((ue) => ue && ""), g(null));
|
|
@@ -4344,20 +4344,20 @@ const Dn = ({
|
|
|
4344
4344
|
}, [l]), /* @__PURE__ */ z(
|
|
4345
4345
|
"div",
|
|
4346
4346
|
{
|
|
4347
|
-
className: `file-item-container ${O} ${p || e.isEditing ? "file-selected" : ""} ${
|
|
4347
|
+
className: `file-item-container ${O} ${p || e.isEditing ? "file-selected" : ""} ${K ? "file-moving" : ""}`,
|
|
4348
4348
|
tabIndex: 0,
|
|
4349
4349
|
title: e.name,
|
|
4350
|
-
onClick:
|
|
4350
|
+
onClick: H,
|
|
4351
4351
|
onKeyDown: V,
|
|
4352
4352
|
onContextMenu: U,
|
|
4353
4353
|
onMouseOver: G,
|
|
4354
4354
|
onMouseLeave: W,
|
|
4355
4355
|
draggable: p && f,
|
|
4356
|
-
onDragStart:
|
|
4356
|
+
onDragStart: _,
|
|
4357
4357
|
onDragEnd: X,
|
|
4358
|
-
onDragEnter:
|
|
4359
|
-
onDragOver:
|
|
4360
|
-
onDragLeave:
|
|
4358
|
+
onDragEnter: I,
|
|
4359
|
+
onDragOver: I,
|
|
4360
|
+
onDragLeave: oe,
|
|
4361
4361
|
onDrop: A,
|
|
4362
4362
|
children: [
|
|
4363
4363
|
/* @__PURE__ */ z("div", { className: "file-item", children: [
|
|
@@ -4409,7 +4409,7 @@ const Dn = ({
|
|
|
4409
4409
|
]
|
|
4410
4410
|
}
|
|
4411
4411
|
),
|
|
4412
|
-
/* @__PURE__ */ c("div", { ref: ne, className: "drag-icon", children: e.isDirectory ? /* @__PURE__ */ c(Et, { size: ct }) : /* @__PURE__ */ c(fe, { children:
|
|
4412
|
+
/* @__PURE__ */ c("div", { ref: ne, className: "drag-icon", children: e.isDirectory ? /* @__PURE__ */ c(Et, { size: ct }) : /* @__PURE__ */ c(fe, { children: re[(vt = (Te = e.name) == null ? void 0 : Te.split(".").pop()) == null ? void 0 : vt.toLowerCase()] ?? /* @__PURE__ */ c(Ve, { size: ct }) }) })
|
|
4413
4413
|
]
|
|
4414
4414
|
}
|
|
4415
4415
|
);
|
|
@@ -4418,7 +4418,7 @@ const Dn = ({
|
|
|
4418
4418
|
o.icon,
|
|
4419
4419
|
/* @__PURE__ */ c("span", { children: o.title })
|
|
4420
4420
|
] }, o.title)) }), _v = ({ filesViewRef: n, contextMenuRef: e, menuItems: t, visible: o, clickPosition: s }) => {
|
|
4421
|
-
const [i, r] = R(0), [l, a] = R(0), [d, u] = R(null), [f, p] = R("right"), h =
|
|
4421
|
+
const [i, r] = R(0), [l, a] = R(0), [d, u] = R(null), [f, p] = R("right"), h = ie(null), m = () => {
|
|
4422
4422
|
const { clickX: N, clickY: O } = s, F = n.current, L = F.getBoundingClientRect(), g = F.offsetWidth - F.clientWidth, T = e.current.getBoundingClientRect(), x = T.width, w = T.height, $ = N - L.left, b = L.width - ($ + g) > x, C = !b, E = O - L.top, M = L.height - E > w, k = !M;
|
|
4423
4423
|
b ? (r(`${$}px`), p("right")) : C && (r(`${$ - x}px`), p("left")), M ? a(`${E + F.scrollTop}px`) : k && a(`${E + F.scrollTop - w}px`);
|
|
4424
4424
|
}, v = (N) => {
|
|
@@ -4473,26 +4473,26 @@ const Dn = ({
|
|
|
4473
4473
|
);
|
|
4474
4474
|
};
|
|
4475
4475
|
function Gv(n) {
|
|
4476
|
-
return
|
|
4476
|
+
return j({ 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: [] }] })(n);
|
|
4477
4477
|
}
|
|
4478
4478
|
const Jv = (n, e, t, o, s) => {
|
|
4479
4479
|
const [i, r] = R([]), [l, a] = R(!1), [d, u] = R(!1), [f, p] = R({ clickX: 0, clickY: 0 }), [h, m] = R(null), { clipBoard: v, setClipBoard: S, handleCutCopy: N, handlePasting: O } = Ze(), { selectedFiles: F, setSelectedFiles: L, handleDownload: g } = ve(), { currentPath: T, setCurrentPath: x, currentPathFiles: w, setCurrentPathFiles: $, onFolderChange: b } = he(), { activeLayout: C, setActiveLayout: E } = ye(), M = de(), k = () => {
|
|
4480
4480
|
s(h), h.isDirectory ? (x(h.path), b == null || b(h.path), r([]), L([])) : e && t.show("previewFile"), a(!1);
|
|
4481
|
-
},
|
|
4482
|
-
N(
|
|
4481
|
+
}, q = (I) => {
|
|
4482
|
+
N(I), a(!1);
|
|
4483
4483
|
}, J = () => {
|
|
4484
4484
|
O(h), a(!1);
|
|
4485
4485
|
}, ne = () => {
|
|
4486
4486
|
a(!1), t.show("rename");
|
|
4487
|
-
},
|
|
4487
|
+
}, re = () => {
|
|
4488
4488
|
g(), a(!1);
|
|
4489
|
-
},
|
|
4489
|
+
}, K = () => {
|
|
4490
4490
|
a(!1), t.show("delete");
|
|
4491
4491
|
}, y = () => {
|
|
4492
4492
|
a(!1), xe(n, "onRefresh"), S(null);
|
|
4493
4493
|
}, P = () => {
|
|
4494
4494
|
t.show("createFolder"), a(!1);
|
|
4495
|
-
},
|
|
4495
|
+
}, H = () => {
|
|
4496
4496
|
a(!1), t.show("uploadFile");
|
|
4497
4497
|
}, V = () => {
|
|
4498
4498
|
L(w), a(!1);
|
|
@@ -4537,7 +4537,7 @@ const Jv = (n, e, t, o, s) => {
|
|
|
4537
4537
|
{
|
|
4538
4538
|
title: M("upload"),
|
|
4539
4539
|
icon: /* @__PURE__ */ c($n, { size: 18 }),
|
|
4540
|
-
onClick:
|
|
4540
|
+
onClick: H,
|
|
4541
4541
|
divider: !0,
|
|
4542
4542
|
hidden: !o.upload
|
|
4543
4543
|
},
|
|
@@ -4556,14 +4556,14 @@ const Jv = (n, e, t, o, s) => {
|
|
|
4556
4556
|
{
|
|
4557
4557
|
title: M("cut"),
|
|
4558
4558
|
icon: /* @__PURE__ */ c(mn, { size: 19 }),
|
|
4559
|
-
onClick: () =>
|
|
4559
|
+
onClick: () => q(!0),
|
|
4560
4560
|
divider: !(h != null && h.isDirectory) && !o.copy,
|
|
4561
4561
|
hidden: !o.move
|
|
4562
4562
|
},
|
|
4563
4563
|
{
|
|
4564
4564
|
title: M("copy"),
|
|
4565
4565
|
icon: /* @__PURE__ */ c(fn, { strokeWidth: 0.1, size: 17 }),
|
|
4566
|
-
onClick: () =>
|
|
4566
|
+
onClick: () => q(!1),
|
|
4567
4567
|
divider: !(h != null && h.isDirectory),
|
|
4568
4568
|
hidden: !o.copy
|
|
4569
4569
|
},
|
|
@@ -4585,20 +4585,20 @@ const Jv = (n, e, t, o, s) => {
|
|
|
4585
4585
|
{
|
|
4586
4586
|
title: M("download"),
|
|
4587
4587
|
icon: /* @__PURE__ */ c(ht, { size: 18 }),
|
|
4588
|
-
onClick:
|
|
4588
|
+
onClick: re,
|
|
4589
4589
|
hidden: !o.download
|
|
4590
4590
|
},
|
|
4591
4591
|
{
|
|
4592
4592
|
title: M("delete"),
|
|
4593
4593
|
icon: /* @__PURE__ */ c(vn, { size: 19 }),
|
|
4594
|
-
onClick:
|
|
4594
|
+
onClick: K,
|
|
4595
4595
|
hidden: !o.delete
|
|
4596
4596
|
}
|
|
4597
4597
|
], W = () => {
|
|
4598
|
-
$((
|
|
4599
|
-
...
|
|
4598
|
+
$((I) => [
|
|
4599
|
+
...I,
|
|
4600
4600
|
{
|
|
4601
|
-
name: Mn("New Folder", !0,
|
|
4601
|
+
name: Mn("New Folder", !0, I),
|
|
4602
4602
|
isDirectory: !0,
|
|
4603
4603
|
path: T,
|
|
4604
4604
|
isEditing: !0,
|
|
@@ -4606,11 +4606,11 @@ const Jv = (n, e, t, o, s) => {
|
|
|
4606
4606
|
}
|
|
4607
4607
|
]);
|
|
4608
4608
|
}, Y = () => {
|
|
4609
|
-
$((
|
|
4610
|
-
},
|
|
4611
|
-
r([]), L((
|
|
4612
|
-
}, X = (
|
|
4613
|
-
|
|
4609
|
+
$((I) => (I[i.at(-1)] ? I[i.at(-1)].isEditing = !0 : t.close(), I)), r([]), L([]);
|
|
4610
|
+
}, _ = () => {
|
|
4611
|
+
r([]), L((I) => I.length > 0 ? [] : I);
|
|
4612
|
+
}, X = (I, oe = !1) => {
|
|
4613
|
+
I.preventDefault(), p({ clickX: I.clientX, clickY: I.clientY }), u(oe), !oe && _(), a(!0);
|
|
4614
4614
|
};
|
|
4615
4615
|
return Q(() => {
|
|
4616
4616
|
if (t.isActive)
|
|
@@ -4625,12 +4625,12 @@ const Jv = (n, e, t, o, s) => {
|
|
|
4625
4625
|
}, [t.isActive]), Q(() => {
|
|
4626
4626
|
r([]), L([]);
|
|
4627
4627
|
}, [T]), Q(() => {
|
|
4628
|
-
F.length > 0 ? r(() => F.map((
|
|
4628
|
+
F.length > 0 ? r(() => F.map((I) => w.findIndex((oe) => oe.path === I.path))) : r([]);
|
|
4629
4629
|
}, [F, w]), {
|
|
4630
4630
|
emptySelecCtxItems: U,
|
|
4631
4631
|
selecCtxItems: G,
|
|
4632
4632
|
handleContextMenu: X,
|
|
4633
|
-
unselectFiles:
|
|
4633
|
+
unselectFiles: _,
|
|
4634
4634
|
visible: l,
|
|
4635
4635
|
setVisible: a,
|
|
4636
4636
|
setLastSelectedFile: m,
|
|
@@ -4706,7 +4706,7 @@ const Jv = (n, e, t, o, s) => {
|
|
|
4706
4706
|
triggerAction: i,
|
|
4707
4707
|
permissions: r
|
|
4708
4708
|
}) => {
|
|
4709
|
-
const { currentPathFiles: l, sortConfig: a, setSortConfig: d } = he(), u =
|
|
4709
|
+
const { currentPathFiles: l, sortConfig: a, setSortConfig: d } = he(), u = ie(null), { activeLayout: f } = ye(), p = de(), {
|
|
4710
4710
|
emptySelecCtxItems: h,
|
|
4711
4711
|
selecCtxItems: m,
|
|
4712
4712
|
handleContextMenu: v,
|
|
@@ -4787,10 +4787,10 @@ const Zv = ({ triggerAction: n, onDelete: e }) => {
|
|
|
4787
4787
|
] });
|
|
4788
4788
|
};
|
|
4789
4789
|
function Qv(n) {
|
|
4790
|
-
return
|
|
4790
|
+
return j({ attr: { viewBox: "0 0 1024 1024", fill: "currentColor", fillRule: "evenodd" }, child: [{ tag: "path", attr: { d: "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z" }, child: [] }] })(n);
|
|
4791
4791
|
}
|
|
4792
4792
|
function e4(n) {
|
|
4793
|
-
return
|
|
4793
|
+
return j({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" }, child: [] }, { tag: "path", attr: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" }, child: [] }] })(n);
|
|
4794
4794
|
}
|
|
4795
4795
|
const t4 = ({ percent: n = 0, isCanceled: e = !1, isCompleted: t = !1, error: o }) => {
|
|
4796
4796
|
const s = de();
|
|
@@ -4800,7 +4800,7 @@ const t4 = ({ percent: n = 0, isCanceled: e = !1, isCompleted: t = !1, error: o
|
|
|
4800
4800
|
] });
|
|
4801
4801
|
};
|
|
4802
4802
|
function n4(n) {
|
|
4803
|
-
return
|
|
4803
|
+
return j({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 388c-72.597 0-132-59.405-132-132 0-72.601 59.403-132 132-132 36.3 0 69.299 15.4 92.406 39.601L278 234h154V80l-51.698 51.702C348.406 99.798 304.406 80 256 80c-96.797 0-176 79.203-176 176s78.094 176 176 176c81.045 0 148.287-54.134 169.401-128H378.85c-18.745 49.561-67.138 84-122.85 84z" }, child: [] }] })(n);
|
|
4804
4804
|
}
|
|
4805
4805
|
const o4 = ({
|
|
4806
4806
|
index: n,
|
|
@@ -4812,7 +4812,7 @@ const o4 = ({
|
|
|
4812
4812
|
handleFileRemove: r
|
|
4813
4813
|
}) => {
|
|
4814
4814
|
var x, w, $, b;
|
|
4815
|
-
const [l, a] = R(0), [d, u] = R(!1), [f, p] = R(!1), [h, m] = R(!1), v = _e(33), S =
|
|
4815
|
+
const [l, a] = R(0), [d, u] = R(!1), [f, p] = R(!1), [h, m] = R(!1), v = _e(33), S = ie(), { onError: N } = Xe(), O = de(), F = (C) => {
|
|
4816
4816
|
a(0), o((M) => ({
|
|
4817
4817
|
...M,
|
|
4818
4818
|
[n]: !1
|
|
@@ -4827,7 +4827,7 @@ const o4 = ({
|
|
|
4827
4827
|
}
|
|
4828
4828
|
};
|
|
4829
4829
|
t(
|
|
4830
|
-
(M) => M.map((k,
|
|
4830
|
+
(M) => M.map((k, q) => n === q ? {
|
|
4831
4831
|
...k,
|
|
4832
4832
|
error: E.message
|
|
4833
4833
|
} : k)
|
|
@@ -4836,30 +4836,30 @@ const o4 = ({
|
|
|
4836
4836
|
if (!C.error)
|
|
4837
4837
|
return new Promise((E, M) => {
|
|
4838
4838
|
const k = new XMLHttpRequest();
|
|
4839
|
-
S.current = k, o((
|
|
4840
|
-
...
|
|
4839
|
+
S.current = k, o((K) => ({
|
|
4840
|
+
...K,
|
|
4841
4841
|
[n]: !0
|
|
4842
|
-
})), k.upload.onprogress = (
|
|
4843
|
-
if (
|
|
4844
|
-
const y = Math.round(
|
|
4842
|
+
})), k.upload.onprogress = (K) => {
|
|
4843
|
+
if (K.lengthComputable) {
|
|
4844
|
+
const y = Math.round(K.loaded / K.total * 100);
|
|
4845
4845
|
a(y);
|
|
4846
4846
|
}
|
|
4847
4847
|
}, k.onload = () => {
|
|
4848
|
-
o((
|
|
4849
|
-
...
|
|
4848
|
+
o((K) => ({
|
|
4849
|
+
...K,
|
|
4850
4850
|
[n]: !1
|
|
4851
4851
|
})), k.status === 200 || k.status === 201 ? (u(!0), i(k.response), E(k.response)) : (M(k.statusText), F(k));
|
|
4852
4852
|
}, k.onerror = () => {
|
|
4853
4853
|
M(k.statusText), F(k);
|
|
4854
4854
|
};
|
|
4855
|
-
const
|
|
4856
|
-
k.open(
|
|
4855
|
+
const q = (s == null ? void 0 : s.method) || "POST";
|
|
4856
|
+
k.open(q, s == null ? void 0 : s.url, !0);
|
|
4857
4857
|
const J = s == null ? void 0 : s.headers;
|
|
4858
|
-
for (let
|
|
4859
|
-
k.setRequestHeader(
|
|
4860
|
-
const ne = new FormData(),
|
|
4861
|
-
for (let
|
|
4862
|
-
|
|
4858
|
+
for (let K in J)
|
|
4859
|
+
k.setRequestHeader(K, J[K]);
|
|
4860
|
+
const ne = new FormData(), re = C == null ? void 0 : C.appendData;
|
|
4861
|
+
for (let K in re)
|
|
4862
|
+
re[K] && ne.append(K, re[K]);
|
|
4863
4863
|
ne.append("file", C.file), k.send(ne);
|
|
4864
4864
|
});
|
|
4865
4865
|
};
|
|
@@ -4915,7 +4915,7 @@ const o4 = ({
|
|
|
4915
4915
|
onFileUploading: o,
|
|
4916
4916
|
onFileUploaded: s
|
|
4917
4917
|
}) => {
|
|
4918
|
-
const [i, r] = R([]), [l, a] = R(!1), [d, u] = R({}), { currentFolder: f, currentPathFiles: p } = he(), { onError: h } = Xe(), m =
|
|
4918
|
+
const [i, r] = R([]), [l, a] = R(!1), [d, u] = R({}), { currentFolder: f, currentPathFiles: p } = he(), { onError: h } = Xe(), m = ie(null), v = de(), S = (T) => {
|
|
4919
4919
|
T.key === "Enter" && m.current.click();
|
|
4920
4920
|
}, N = (T) => {
|
|
4921
4921
|
if (t && !t.includes(Ne(T.name)))
|
|
@@ -5065,7 +5065,7 @@ const o4 = ({
|
|
|
5065
5065
|
) })
|
|
5066
5066
|
] });
|
|
5067
5067
|
}, dt = (n) => n.toLowerCase(), le = (n, e, t = !1) => {
|
|
5068
|
-
const o =
|
|
5068
|
+
const o = ie(/* @__PURE__ */ new Set([])), s = Ge(() => new Set(n.map((a) => dt(a))), [n]), i = (a) => {
|
|
5069
5069
|
if (!a.repeat && (o.current.add(dt(a.key)), s.isSubsetOf(o.current) && !t)) {
|
|
5070
5070
|
a.preventDefault(), e(a);
|
|
5071
5071
|
return;
|
|
@@ -5206,7 +5206,7 @@ const o4 = ({
|
|
|
5206
5206
|
}
|
|
5207
5207
|
};
|
|
5208
5208
|
}, c4 = (n, e) => {
|
|
5209
|
-
const [t, o] = R({ col1: n, col2: e }), [s, i] = R(!1), r =
|
|
5209
|
+
const [t, o] = R({ col1: n, col2: e }), [s, i] = R(!1), r = ie(null);
|
|
5210
5210
|
return {
|
|
5211
5211
|
containerRef: r,
|
|
5212
5212
|
colSizes: t,
|
|
@@ -5287,173 +5287,185 @@ const o4 = ({
|
|
|
5287
5287
|
primaryColor: E = "#6155b4",
|
|
5288
5288
|
fontFamily: M = "Nunito Sans, sans-serif",
|
|
5289
5289
|
language: k = "en",
|
|
5290
|
-
permissions:
|
|
5290
|
+
permissions: q = {},
|
|
5291
5291
|
collapsibleNav: J = !1,
|
|
5292
|
-
defaultNavExpanded: ne = !0
|
|
5292
|
+
defaultNavExpanded: ne = !0,
|
|
5293
|
+
className: re = "",
|
|
5294
|
+
style: K = {}
|
|
5293
5295
|
}) => {
|
|
5294
|
-
const [
|
|
5296
|
+
const [y, P] = R(ne), H = l4(), { containerRef: V, colSizes: U, isDragging: G, handleMouseMove: W, handleMouseUp: Y, handleMouseDown: _ } = c4(20, 80), X = {
|
|
5295
5297
|
"--file-manager-font-family": M,
|
|
5296
5298
|
"--file-manager-primary-color": E,
|
|
5297
5299
|
height: w,
|
|
5298
5300
|
width: $
|
|
5299
|
-
},
|
|
5300
|
-
() => ({ ...u4, ...
|
|
5301
|
-
[
|
|
5301
|
+
}, I = Ge(
|
|
5302
|
+
() => ({ ...u4, ...q }),
|
|
5303
|
+
[q]
|
|
5304
|
+
);
|
|
5305
|
+
return /* @__PURE__ */ z(
|
|
5306
|
+
"main",
|
|
5307
|
+
{
|
|
5308
|
+
className: `file-explorer ${re}`,
|
|
5309
|
+
onContextMenu: (oe) => oe.preventDefault(),
|
|
5310
|
+
style: { ...X, ...K },
|
|
5311
|
+
children: [
|
|
5312
|
+
/* @__PURE__ */ c(pt, { loading: t }),
|
|
5313
|
+
/* @__PURE__ */ c(ev, { language: k, children: /* @__PURE__ */ c(nv, { filesData: n, onError: O, children: /* @__PURE__ */ c(sv, { initialPath: b, onFolderChange: v, children: /* @__PURE__ */ c(
|
|
5314
|
+
iv,
|
|
5315
|
+
{
|
|
5316
|
+
onDownload: u,
|
|
5317
|
+
onSelect: S,
|
|
5318
|
+
onSelectionChange: N,
|
|
5319
|
+
children: /* @__PURE__ */ c(rv, { onPaste: a, onCut: r, onCopy: l, children: /* @__PURE__ */ z(uo, { layout: F, children: [
|
|
5320
|
+
/* @__PURE__ */ c(
|
|
5321
|
+
Ln,
|
|
5322
|
+
{
|
|
5323
|
+
onLayoutChange: p,
|
|
5324
|
+
onRefresh: h,
|
|
5325
|
+
triggerAction: H,
|
|
5326
|
+
permissions: I
|
|
5327
|
+
}
|
|
5328
|
+
),
|
|
5329
|
+
/* @__PURE__ */ z(
|
|
5330
|
+
"section",
|
|
5331
|
+
{
|
|
5332
|
+
ref: V,
|
|
5333
|
+
onMouseMove: W,
|
|
5334
|
+
onMouseUp: Y,
|
|
5335
|
+
className: "files-container",
|
|
5336
|
+
children: [
|
|
5337
|
+
/* @__PURE__ */ z(
|
|
5338
|
+
"div",
|
|
5339
|
+
{
|
|
5340
|
+
className: `navigation-pane ${y ? "open" : "closed"}`,
|
|
5341
|
+
style: {
|
|
5342
|
+
width: U.col1 + "%"
|
|
5343
|
+
},
|
|
5344
|
+
children: [
|
|
5345
|
+
/* @__PURE__ */ c(zn, { onFileOpen: m }),
|
|
5346
|
+
/* @__PURE__ */ c(
|
|
5347
|
+
"div",
|
|
5348
|
+
{
|
|
5349
|
+
className: `sidebar-resize ${G ? "sidebar-dragging" : ""}`,
|
|
5350
|
+
onMouseDown: _
|
|
5351
|
+
}
|
|
5352
|
+
)
|
|
5353
|
+
]
|
|
5354
|
+
}
|
|
5355
|
+
),
|
|
5356
|
+
/* @__PURE__ */ z(
|
|
5357
|
+
"div",
|
|
5358
|
+
{
|
|
5359
|
+
className: "folders-preview",
|
|
5360
|
+
style: { width: (y ? U.col2 : 100) + "%" },
|
|
5361
|
+
children: [
|
|
5362
|
+
/* @__PURE__ */ c(
|
|
5363
|
+
gt,
|
|
5364
|
+
{
|
|
5365
|
+
collapsibleNav: J,
|
|
5366
|
+
isNavigationPaneOpen: y,
|
|
5367
|
+
setNavigationPaneOpen: P
|
|
5368
|
+
}
|
|
5369
|
+
),
|
|
5370
|
+
/* @__PURE__ */ c(
|
|
5371
|
+
Hn,
|
|
5372
|
+
{
|
|
5373
|
+
onCreateFolder: o,
|
|
5374
|
+
onRename: d,
|
|
5375
|
+
onFileOpen: m,
|
|
5376
|
+
onRefresh: h,
|
|
5377
|
+
enableFilePreview: L,
|
|
5378
|
+
triggerAction: H,
|
|
5379
|
+
permissions: I
|
|
5380
|
+
}
|
|
5381
|
+
)
|
|
5382
|
+
]
|
|
5383
|
+
}
|
|
5384
|
+
)
|
|
5385
|
+
]
|
|
5386
|
+
}
|
|
5387
|
+
),
|
|
5388
|
+
/* @__PURE__ */ c(
|
|
5389
|
+
a4,
|
|
5390
|
+
{
|
|
5391
|
+
fileUploadConfig: e,
|
|
5392
|
+
onFileUploading: s,
|
|
5393
|
+
onFileUploaded: i,
|
|
5394
|
+
onDelete: f,
|
|
5395
|
+
onRefresh: h,
|
|
5396
|
+
maxFileSize: g,
|
|
5397
|
+
filePreviewPath: T,
|
|
5398
|
+
filePreviewComponent: C,
|
|
5399
|
+
acceptedFileTypes: x,
|
|
5400
|
+
triggerAction: H,
|
|
5401
|
+
permissions: I
|
|
5402
|
+
}
|
|
5403
|
+
)
|
|
5404
|
+
] }) })
|
|
5405
|
+
}
|
|
5406
|
+
) }) }) })
|
|
5407
|
+
]
|
|
5408
|
+
}
|
|
5302
5409
|
);
|
|
5303
|
-
return /* @__PURE__ */ z("main", { className: "file-explorer", onContextMenu: (X) => X.preventDefault(), style: Y, children: [
|
|
5304
|
-
/* @__PURE__ */ c(pt, { loading: t }),
|
|
5305
|
-
/* @__PURE__ */ c(ev, { language: k, children: /* @__PURE__ */ c(nv, { filesData: n, onError: O, children: /* @__PURE__ */ c(sv, { initialPath: b, onFolderChange: v, children: /* @__PURE__ */ c(
|
|
5306
|
-
iv,
|
|
5307
|
-
{
|
|
5308
|
-
onDownload: u,
|
|
5309
|
-
onSelect: S,
|
|
5310
|
-
onSelectionChange: N,
|
|
5311
|
-
children: /* @__PURE__ */ c(rv, { onPaste: a, onCut: r, onCopy: l, children: /* @__PURE__ */ z(uo, { layout: F, children: [
|
|
5312
|
-
/* @__PURE__ */ c(
|
|
5313
|
-
Ln,
|
|
5314
|
-
{
|
|
5315
|
-
onLayoutChange: p,
|
|
5316
|
-
onRefresh: h,
|
|
5317
|
-
triggerAction: y,
|
|
5318
|
-
permissions: K
|
|
5319
|
-
}
|
|
5320
|
-
),
|
|
5321
|
-
/* @__PURE__ */ z(
|
|
5322
|
-
"section",
|
|
5323
|
-
{
|
|
5324
|
-
ref: P,
|
|
5325
|
-
onMouseMove: U,
|
|
5326
|
-
onMouseUp: G,
|
|
5327
|
-
className: "files-container",
|
|
5328
|
-
children: [
|
|
5329
|
-
/* @__PURE__ */ z(
|
|
5330
|
-
"div",
|
|
5331
|
-
{
|
|
5332
|
-
className: `navigation-pane ${se ? "open" : "closed"}`,
|
|
5333
|
-
style: {
|
|
5334
|
-
width: j.col1 + "%"
|
|
5335
|
-
},
|
|
5336
|
-
children: [
|
|
5337
|
-
/* @__PURE__ */ c(zn, { onFileOpen: m }),
|
|
5338
|
-
/* @__PURE__ */ c(
|
|
5339
|
-
"div",
|
|
5340
|
-
{
|
|
5341
|
-
className: `sidebar-resize ${V ? "sidebar-dragging" : ""}`,
|
|
5342
|
-
onMouseDown: W
|
|
5343
|
-
}
|
|
5344
|
-
)
|
|
5345
|
-
]
|
|
5346
|
-
}
|
|
5347
|
-
),
|
|
5348
|
-
/* @__PURE__ */ z(
|
|
5349
|
-
"div",
|
|
5350
|
-
{
|
|
5351
|
-
className: "folders-preview",
|
|
5352
|
-
style: { width: (se ? j.col2 : 100) + "%" },
|
|
5353
|
-
children: [
|
|
5354
|
-
/* @__PURE__ */ c(
|
|
5355
|
-
gt,
|
|
5356
|
-
{
|
|
5357
|
-
collapsibleNav: J,
|
|
5358
|
-
isNavigationPaneOpen: se,
|
|
5359
|
-
setNavigationPaneOpen: q
|
|
5360
|
-
}
|
|
5361
|
-
),
|
|
5362
|
-
/* @__PURE__ */ c(
|
|
5363
|
-
Hn,
|
|
5364
|
-
{
|
|
5365
|
-
onCreateFolder: o,
|
|
5366
|
-
onRename: d,
|
|
5367
|
-
onFileOpen: m,
|
|
5368
|
-
onRefresh: h,
|
|
5369
|
-
enableFilePreview: L,
|
|
5370
|
-
triggerAction: y,
|
|
5371
|
-
permissions: K
|
|
5372
|
-
}
|
|
5373
|
-
)
|
|
5374
|
-
]
|
|
5375
|
-
}
|
|
5376
|
-
)
|
|
5377
|
-
]
|
|
5378
|
-
}
|
|
5379
|
-
),
|
|
5380
|
-
/* @__PURE__ */ c(
|
|
5381
|
-
a4,
|
|
5382
|
-
{
|
|
5383
|
-
fileUploadConfig: e,
|
|
5384
|
-
onFileUploading: s,
|
|
5385
|
-
onFileUploaded: i,
|
|
5386
|
-
onDelete: f,
|
|
5387
|
-
onRefresh: h,
|
|
5388
|
-
maxFileSize: g,
|
|
5389
|
-
filePreviewPath: T,
|
|
5390
|
-
filePreviewComponent: C,
|
|
5391
|
-
acceptedFileTypes: x,
|
|
5392
|
-
triggerAction: y,
|
|
5393
|
-
permissions: K
|
|
5394
|
-
}
|
|
5395
|
-
)
|
|
5396
|
-
] }) })
|
|
5397
|
-
}
|
|
5398
|
-
) }) }) })
|
|
5399
|
-
] });
|
|
5400
5410
|
};
|
|
5401
5411
|
jn.displayName = "FileManager";
|
|
5402
5412
|
jn.propTypes = {
|
|
5403
|
-
files:
|
|
5404
|
-
|
|
5405
|
-
name:
|
|
5406
|
-
isDirectory:
|
|
5407
|
-
path:
|
|
5413
|
+
files: D.arrayOf(
|
|
5414
|
+
D.shape({
|
|
5415
|
+
name: D.string.isRequired,
|
|
5416
|
+
isDirectory: D.bool.isRequired,
|
|
5417
|
+
path: D.string.isRequired,
|
|
5408
5418
|
updatedAt: d4,
|
|
5409
|
-
size:
|
|
5419
|
+
size: D.number
|
|
5410
5420
|
})
|
|
5411
5421
|
).isRequired,
|
|
5412
|
-
fileUploadConfig:
|
|
5422
|
+
fileUploadConfig: D.shape({
|
|
5413
5423
|
url: ln,
|
|
5414
|
-
headers:
|
|
5415
|
-
method:
|
|
5424
|
+
headers: D.objectOf(D.string),
|
|
5425
|
+
method: D.oneOf(["POST", "PUT"])
|
|
5416
5426
|
}),
|
|
5417
|
-
isLoading:
|
|
5418
|
-
onCreateFolder:
|
|
5419
|
-
onFileUploading:
|
|
5420
|
-
onFileUploaded:
|
|
5421
|
-
onRename:
|
|
5422
|
-
onDelete:
|
|
5423
|
-
onCut:
|
|
5424
|
-
onCopy:
|
|
5425
|
-
onPaste:
|
|
5426
|
-
onDownload:
|
|
5427
|
-
onLayoutChange:
|
|
5428
|
-
onRefresh:
|
|
5429
|
-
onFileOpen:
|
|
5430
|
-
onFolderChange:
|
|
5431
|
-
onSelect:
|
|
5432
|
-
onSelectionChange:
|
|
5433
|
-
onError:
|
|
5434
|
-
layout:
|
|
5435
|
-
maxFileSize:
|
|
5436
|
-
enableFilePreview:
|
|
5427
|
+
isLoading: D.bool,
|
|
5428
|
+
onCreateFolder: D.func,
|
|
5429
|
+
onFileUploading: D.func,
|
|
5430
|
+
onFileUploaded: D.func,
|
|
5431
|
+
onRename: D.func,
|
|
5432
|
+
onDelete: D.func,
|
|
5433
|
+
onCut: D.func,
|
|
5434
|
+
onCopy: D.func,
|
|
5435
|
+
onPaste: D.func,
|
|
5436
|
+
onDownload: D.func,
|
|
5437
|
+
onLayoutChange: D.func,
|
|
5438
|
+
onRefresh: D.func,
|
|
5439
|
+
onFileOpen: D.func,
|
|
5440
|
+
onFolderChange: D.func,
|
|
5441
|
+
onSelect: D.func,
|
|
5442
|
+
onSelectionChange: D.func,
|
|
5443
|
+
onError: D.func,
|
|
5444
|
+
layout: D.oneOf(["grid", "list"]),
|
|
5445
|
+
maxFileSize: D.number,
|
|
5446
|
+
enableFilePreview: D.bool,
|
|
5437
5447
|
filePreviewPath: ln,
|
|
5438
|
-
acceptedFileTypes:
|
|
5439
|
-
height:
|
|
5440
|
-
width:
|
|
5441
|
-
initialPath:
|
|
5442
|
-
filePreviewComponent:
|
|
5443
|
-
primaryColor:
|
|
5444
|
-
fontFamily:
|
|
5445
|
-
language:
|
|
5446
|
-
permissions:
|
|
5447
|
-
create:
|
|
5448
|
-
upload:
|
|
5449
|
-
move:
|
|
5450
|
-
copy:
|
|
5451
|
-
rename:
|
|
5452
|
-
download:
|
|
5453
|
-
delete:
|
|
5448
|
+
acceptedFileTypes: D.string,
|
|
5449
|
+
height: D.oneOfType([D.string, D.number]),
|
|
5450
|
+
width: D.oneOfType([D.string, D.number]),
|
|
5451
|
+
initialPath: D.string,
|
|
5452
|
+
filePreviewComponent: D.func,
|
|
5453
|
+
primaryColor: D.string,
|
|
5454
|
+
fontFamily: D.string,
|
|
5455
|
+
language: D.string,
|
|
5456
|
+
permissions: D.shape({
|
|
5457
|
+
create: D.bool,
|
|
5458
|
+
upload: D.bool,
|
|
5459
|
+
move: D.bool,
|
|
5460
|
+
copy: D.bool,
|
|
5461
|
+
rename: D.bool,
|
|
5462
|
+
download: D.bool,
|
|
5463
|
+
delete: D.bool
|
|
5454
5464
|
}),
|
|
5455
|
-
collapsibleNav:
|
|
5456
|
-
defaultNavExpanded:
|
|
5465
|
+
collapsibleNav: D.bool,
|
|
5466
|
+
defaultNavExpanded: D.bool,
|
|
5467
|
+
className: D.string,
|
|
5468
|
+
style: D.object
|
|
5457
5469
|
};
|
|
5458
5470
|
export {
|
|
5459
5471
|
jn as FileManager
|