vuefinder 2.5.10 → 2.5.12
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/locales/de.js +1 -0
- package/dist/locales/en.js +1 -0
- package/dist/locales/fa.js +1 -0
- package/dist/locales/fr.js +1 -0
- package/dist/locales/he.js +1 -0
- package/dist/locales/hi.js +1 -0
- package/dist/locales/ru.js +1 -0
- package/dist/locales/sv.js +1 -0
- package/dist/locales/tr.js +1 -0
- package/dist/locales/zhCN.js +1 -0
- package/dist/locales/zhTW.js +1 -0
- package/dist/style.css +1 -1
- package/dist/vuefinder.cjs +2 -2
- package/dist/vuefinder.js +651 -631
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var tr = Object.defineProperty;
|
|
2
2
|
var sr = (t, e, s) => e in t ? tr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
3
|
var mn = (t, e, s) => sr(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { reactive as St, watch as Ne, ref as
|
|
4
|
+
import { reactive as St, watch as Ne, ref as S, shallowRef as nr, onMounted as Ce, onUnmounted as Gs, onUpdated as Bn, nextTick as ht, computed as ct, inject as ae, openBlock as m, createElementBlock as g, withKeys as Ct, unref as o, createElementVNode as a, withModifiers as at, renderSlot as Lt, normalizeClass as de, toDisplayString as y, createBlock as W, resolveDynamicComponent as In, withCtx as se, createVNode as q, Fragment as he, renderList as $e, createCommentVNode as z, withDirectives as ve, vModelCheckbox as jt, createTextVNode as Q, vModelSelect as Cs, isRef as Nn, vModelText as Et, onBeforeUnmount as Un, customRef as or, vShow as ze, TransitionGroup as rr, normalizeStyle as rs, mergeModels as ar, useModel as Pn, resolveComponent as lr, provide as ir, Transition as cr } from "vue";
|
|
5
5
|
import dr from "mitt";
|
|
6
6
|
import ur from "dragselect";
|
|
7
7
|
import fr from "@uppy/core";
|
|
8
8
|
import mr from "@uppy/xhr-upload";
|
|
9
|
-
import
|
|
9
|
+
import hr from "vanilla-lazyload";
|
|
10
10
|
import "cropperjs/dist/cropper.css";
|
|
11
|
-
import
|
|
11
|
+
import pr from "cropperjs";
|
|
12
12
|
var Hn;
|
|
13
13
|
const ys = (Hn = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : Hn.getAttribute("content");
|
|
14
14
|
class vr {
|
|
@@ -40,7 +40,7 @@ class vr {
|
|
|
40
40
|
l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([f, v]) => {
|
|
41
41
|
u.append(f, v);
|
|
42
42
|
})) : (u = { ...i }, s.body != null && Object.assign(u, this.config.body)));
|
|
43
|
-
const
|
|
43
|
+
const p = {
|
|
44
44
|
url: d,
|
|
45
45
|
method: l,
|
|
46
46
|
headers: n,
|
|
@@ -55,9 +55,9 @@ class vr {
|
|
|
55
55
|
params: c,
|
|
56
56
|
body: u
|
|
57
57
|
});
|
|
58
|
-
f.url != null && (
|
|
58
|
+
f.url != null && (p.url = f.url), f.method != null && (p.method = f.method), f.params != null && (p.params = f.params ?? {}), f.headers != null && (p.headers = f.headers ?? {}), f.body != null && (p.body = f.body);
|
|
59
59
|
}
|
|
60
|
-
return
|
|
60
|
+
return p;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Get download url
|
|
@@ -157,21 +157,21 @@ async function yr(t, e) {
|
|
|
157
157
|
return typeof s == "function" ? (await s()).default : s;
|
|
158
158
|
}
|
|
159
159
|
function br(t, e, s, r) {
|
|
160
|
-
const { getStore: n, setStore: c } = t, i =
|
|
161
|
-
yr(f, r).then((
|
|
162
|
-
i.value =
|
|
163
|
-
}).catch((
|
|
160
|
+
const { getStore: n, setStore: c } = t, i = S({}), d = S(n("locale", e)), l = (f, v = e) => {
|
|
161
|
+
yr(f, r).then((h) => {
|
|
162
|
+
i.value = h, c("locale", f), d.value = f, c("translations", h), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + f }), s.emit("vf-language-saved"));
|
|
163
|
+
}).catch((h) => {
|
|
164
164
|
v ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(v, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
!n("locale") && !r.length ? l(e) : i.value = n("translations");
|
|
168
168
|
const u = (f, ...v) => v.length ? u(f = f.replace("%s", v.shift()), ...v) : f;
|
|
169
|
-
function
|
|
169
|
+
function p(f, ...v) {
|
|
170
170
|
return i.value && i.value.hasOwnProperty(f) ? u(i.value[f], ...v) : u(f, ...v);
|
|
171
171
|
}
|
|
172
|
-
return St({ t:
|
|
172
|
+
return St({ t: p, changeLocale: l, locale: d });
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const pe = {
|
|
175
175
|
EDIT: "edit",
|
|
176
176
|
NEW_FILE: "newfile",
|
|
177
177
|
NEW_FOLDER: "newfolder",
|
|
@@ -185,7 +185,7 @@ const he = {
|
|
|
185
185
|
FULL_SCREEN: "fullscreen",
|
|
186
186
|
DOWNLOAD: "download",
|
|
187
187
|
LANGUAGE: "language"
|
|
188
|
-
}, xr = Object.values(
|
|
188
|
+
}, xr = Object.values(pe), wr = "2.5.12";
|
|
189
189
|
function zn(t, e, s, r, n) {
|
|
190
190
|
return (e = Math, s = e.log, r = 1024, n = s(t) / s(r) | 0, t / e.pow(r, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "iB" : "B");
|
|
191
191
|
}
|
|
@@ -196,16 +196,16 @@ function kr(t) {
|
|
|
196
196
|
const e = { k: 1, m: 2, g: 3, t: 4 }, r = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(t);
|
|
197
197
|
return r[1] * Math.pow(1024, e[r[2].toLowerCase()]);
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const nt = {
|
|
200
200
|
SYSTEM: "system",
|
|
201
201
|
LIGHT: "light",
|
|
202
202
|
DARK: "dark"
|
|
203
203
|
};
|
|
204
204
|
function $r(t, e) {
|
|
205
|
-
const s =
|
|
206
|
-
s.value = t.getStore("theme", e ??
|
|
205
|
+
const s = S(nt.SYSTEM), r = S(nt.LIGHT);
|
|
206
|
+
s.value = t.getStore("theme", e ?? nt.SYSTEM);
|
|
207
207
|
const n = window.matchMedia("(prefers-color-scheme: dark)"), c = (i) => {
|
|
208
|
-
s.value ===
|
|
208
|
+
s.value === nt.DARK || s.value === nt.SYSTEM && i.matches ? r.value = nt.DARK : r.value = nt.LIGHT;
|
|
209
209
|
};
|
|
210
210
|
return c(n), n.addEventListener("change", c), {
|
|
211
211
|
/**
|
|
@@ -220,12 +220,12 @@ function $r(t, e) {
|
|
|
220
220
|
* @param {Theme} value
|
|
221
221
|
*/
|
|
222
222
|
set(i) {
|
|
223
|
-
s.value = i, i !==
|
|
223
|
+
s.value = i, i !== nt.SYSTEM ? t.setStore("theme", i) : t.removeStore("theme"), c(n);
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
function Sr() {
|
|
228
|
-
const t = nr(null), e =
|
|
228
|
+
const t = nr(null), e = S(!1), s = S();
|
|
229
229
|
return { visible: e, type: t, data: s, open: (c, i = null) => {
|
|
230
230
|
document.querySelector("body").style.overflow = "hidden", e.value = !0, t.value = c, s.value = i;
|
|
231
231
|
}, close: () => {
|
|
@@ -244,12 +244,12 @@ function Sr() {
|
|
|
244
244
|
const Le = (t, e) => {
|
|
245
245
|
const { o: s, i: r, u: n } = t;
|
|
246
246
|
let c = s, i;
|
|
247
|
-
const d = (
|
|
248
|
-
const v = c,
|
|
249
|
-
return (_ || n) && (c =
|
|
247
|
+
const d = (p, f) => {
|
|
248
|
+
const v = c, h = p, _ = f || (r ? !r(v, h) : v !== h);
|
|
249
|
+
return (_ || n) && (c = h, i = v), [c, _, i];
|
|
250
250
|
};
|
|
251
|
-
return [e ? (
|
|
252
|
-
}, jn = typeof window < "u" && typeof document < "u", Me = jn ? window : {}, Gn = Math.max, Cr = Math.min, Es = Math.round, Qt = Math.abs,
|
|
251
|
+
return [e ? (p) => d(e(c, i), p) : d, (p) => [c, !!p, i]];
|
|
252
|
+
}, jn = typeof window < "u" && typeof document < "u", Me = jn ? window : {}, Gn = Math.max, Cr = Math.min, Es = Math.round, Qt = Math.abs, hn = Math.sign, Kn = Me.cancelAnimationFrame, Ks = Me.requestAnimationFrame, Zt = Me.setTimeout, Ts = Me.clearTimeout, as = (t) => typeof Me[t] < "u" ? Me[t] : void 0, Er = as("MutationObserver"), pn = as("IntersectionObserver"), es = as("ResizeObserver"), As = as("ScrollTimeline"), Wn = jn && Node.ELEMENT_NODE, { toString: $h, hasOwnProperty: bs } = Object.prototype, ls = (t) => t === void 0, Ws = (t) => t === null, je = (t) => typeof t == "number", is = (t) => typeof t == "string", Yn = (t) => typeof t == "boolean", Be = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Ot = (t) => typeof t == "object" && !Ge(t) && !Ws(t), cs = (t) => {
|
|
253
253
|
const e = !!t && t.length, s = je(e) && e > -1 && e % 1 == 0;
|
|
254
254
|
return Ge(t) || !Be(t) && s ? e > 0 && Ot(t) ? e - 1 in t : !0 : !1;
|
|
255
255
|
}, ts = (t) => {
|
|
@@ -278,7 +278,7 @@ function ce(t, e) {
|
|
|
278
278
|
}
|
|
279
279
|
const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e, s) => (!is(e) && cs(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), ut = (t) => Array.from(t || []), Xn = (t) => Ge(t) ? t : [t], Ms = (t) => !!t && !t.length, vn = (t) => ut(new Set(t)), Ie = (t, e, s) => {
|
|
280
280
|
ce(t, (n) => n && n.apply(void 0, e || [])), !s && (t.length = 0);
|
|
281
|
-
}, Jn = "paddingTop", Qn = "paddingRight", Zn = "paddingLeft", eo = "paddingBottom", to = "marginLeft", so = "marginRight", no = "marginBottom", Tr = "overflowX", Ar = "overflowY", xt = "width", wt = "height",
|
|
281
|
+
}, Jn = "paddingTop", Qn = "paddingRight", Zn = "paddingLeft", eo = "paddingBottom", to = "marginLeft", so = "marginRight", no = "marginBottom", Tr = "overflowX", Ar = "overflowY", xt = "width", wt = "height", rt = "visible", ft = "hidden", kt = "scroll", Mr = (t) => {
|
|
282
282
|
const e = String(t || "");
|
|
283
283
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
284
284
|
}, us = (t, e, s, r) => {
|
|
@@ -290,7 +290,7 @@ const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e,
|
|
|
290
290
|
}), n;
|
|
291
291
|
}
|
|
292
292
|
return !1;
|
|
293
|
-
}, oo = (t, e) => us(t, e, ["w", "h"]), Yt = (t, e) => us(t, e, ["x", "y"]), Dr = (t, e) => us(t, e, ["t", "r", "b", "l"]),
|
|
293
|
+
}, oo = (t, e) => us(t, e, ["w", "h"]), Yt = (t, e) => us(t, e, ["x", "y"]), Dr = (t, e) => us(t, e, ["t", "r", "b", "l"]), lt = () => {
|
|
294
294
|
}, J = (t, ...e) => t.bind(0, ...e), mt = (t) => {
|
|
295
295
|
let e;
|
|
296
296
|
const s = t ? Zt : Ks, r = t ? Ts : Kn;
|
|
@@ -299,35 +299,35 @@ const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e,
|
|
|
299
299
|
}, () => r(e)];
|
|
300
300
|
}, Ds = (t, e) => {
|
|
301
301
|
const { _: s, p: r, v: n, m: c } = e || {};
|
|
302
|
-
let i, d, l, u,
|
|
302
|
+
let i, d, l, u, p = lt;
|
|
303
303
|
const f = function(b) {
|
|
304
|
-
|
|
305
|
-
}, v = (x) => c && d ? c(d, x) : x,
|
|
306
|
-
|
|
304
|
+
p(), Ts(i), u = i = d = void 0, p = lt, t.apply(this, b);
|
|
305
|
+
}, v = (x) => c && d ? c(d, x) : x, h = () => {
|
|
306
|
+
p !== lt && f(v(l) || l);
|
|
307
307
|
}, _ = function() {
|
|
308
308
|
const b = ut(arguments), M = Be(s) ? s() : s;
|
|
309
309
|
if (je(M) && M >= 0) {
|
|
310
310
|
const U = Be(r) ? r() : r, F = je(U) && U >= 0, D = M > 0 ? Zt : Ks, V = M > 0 ? Ts : Kn, T = v(b) || b, O = f.bind(0, T);
|
|
311
311
|
let A;
|
|
312
|
-
|
|
312
|
+
p(), n && !u ? (O(), u = !0, A = D(() => u = void 0, M)) : (A = D(O, M), F && !i && (i = Zt(h, U))), p = () => V(A), d = l = T;
|
|
313
313
|
} else
|
|
314
314
|
f(b);
|
|
315
315
|
};
|
|
316
|
-
return _.S =
|
|
316
|
+
return _.S = h, _;
|
|
317
317
|
}, ro = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ze = (t) => t ? Object.keys(t) : [], re = (t, e, s, r, n, c, i) => {
|
|
318
318
|
const d = [e, s, r, n, c, i];
|
|
319
319
|
return (typeof t != "object" || Ws(t)) && !Be(t) && (t = {}), ce(d, (l) => {
|
|
320
|
-
ce(l, (u,
|
|
321
|
-
const f = l[
|
|
320
|
+
ce(l, (u, p) => {
|
|
321
|
+
const f = l[p];
|
|
322
322
|
if (t === f)
|
|
323
323
|
return !0;
|
|
324
324
|
const v = Ge(f);
|
|
325
325
|
if (f && ts(f)) {
|
|
326
|
-
const
|
|
327
|
-
let _ =
|
|
328
|
-
v && !Ge(
|
|
326
|
+
const h = t[p];
|
|
327
|
+
let _ = h;
|
|
328
|
+
v && !Ge(h) ? _ = [] : !v && !ts(h) && (_ = {}), t[p] = re(_, f);
|
|
329
329
|
} else
|
|
330
|
-
t[
|
|
330
|
+
t[p] = v ? f.slice() : f;
|
|
331
331
|
});
|
|
332
332
|
}), t;
|
|
333
333
|
}, ao = (t, e) => ce(re({}, t), (s, r, n) => {
|
|
@@ -336,16 +336,16 @@ const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e,
|
|
|
336
336
|
for (const e in t)
|
|
337
337
|
return !1;
|
|
338
338
|
return !0;
|
|
339
|
-
}, Vs = (t, e, s) => Gn(t, Cr(e, s)),
|
|
340
|
-
ce(
|
|
339
|
+
}, Vs = (t, e, s) => Gn(t, Cr(e, s)), pt = (t) => ut(new Set((Ge(t) ? t : (t || "").split(" ")).filter((e) => e))), Js = (t, e) => t && t.getAttribute(e), gn = (t, e) => t && t.hasAttribute(e), Je = (t, e, s) => {
|
|
340
|
+
ce(pt(e), (r) => {
|
|
341
341
|
t && t.setAttribute(r, String(s || ""));
|
|
342
342
|
});
|
|
343
343
|
}, Pe = (t, e) => {
|
|
344
|
-
ce(
|
|
344
|
+
ce(pt(e), (s) => t && t.removeAttribute(s));
|
|
345
345
|
}, fs = (t, e) => {
|
|
346
|
-
const s =
|
|
346
|
+
const s = pt(Js(t, e)), r = J(Je, t, e), n = (c, i) => {
|
|
347
347
|
const d = new Set(s);
|
|
348
|
-
return ce(
|
|
348
|
+
return ce(pt(c), (l) => {
|
|
349
349
|
d[i](l);
|
|
350
350
|
}), ut(d).join(" ");
|
|
351
351
|
};
|
|
@@ -353,7 +353,7 @@ const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e,
|
|
|
353
353
|
O: (c) => r(n(c, "delete")),
|
|
354
354
|
$: (c) => r(n(c, "add")),
|
|
355
355
|
C: (c) => {
|
|
356
|
-
const i =
|
|
356
|
+
const i = pt(c);
|
|
357
357
|
return i.reduce((d, l) => d && s.includes(l), i.length > 0);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
@@ -368,9 +368,9 @@ const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e,
|
|
|
368
368
|
}, ns = (t, e) => ds(t) ? t.matches(e) : !1, fo = (t) => ns(t, "body"), Os = (t) => t ? ut(t.childNodes) : [], $t = (t) => t && t.parentElement, yt = (t, e) => ds(t) && t.closest(e), Rs = (t) => document.activeElement, Lr = (t, e, s) => {
|
|
369
369
|
const r = yt(t, e), n = t && Vr(s, r), c = yt(n, e) === r;
|
|
370
370
|
return r && n ? r === t || n === t || c && yt(yt(t, s), e) !== r : !1;
|
|
371
|
-
},
|
|
371
|
+
}, dt = (t) => {
|
|
372
372
|
if (cs(t))
|
|
373
|
-
ce(ut(t), (e) =>
|
|
373
|
+
ce(ut(t), (e) => dt(e));
|
|
374
374
|
else if (t) {
|
|
375
375
|
const e = $t(t);
|
|
376
376
|
e && e.removeChild(t);
|
|
@@ -380,15 +380,15 @@ const Ys = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), ye = (t, e,
|
|
|
380
380
|
let r = e, n;
|
|
381
381
|
return cs(s) ? (n = document.createDocumentFragment(), ce(s, (c) => {
|
|
382
382
|
c === r && (r = c.previousSibling), n.appendChild(c);
|
|
383
|
-
})) : n = s, e && (r ? r !== e && (r = r.nextSibling) : r = t.firstChild), t.insertBefore(n, r || null), () =>
|
|
383
|
+
})) : n = s, e && (r ? r !== e && (r = r.nextSibling) : r = t.firstChild), t.insertBefore(n, r || null), () => dt(s);
|
|
384
384
|
}
|
|
385
|
-
return
|
|
385
|
+
return lt;
|
|
386
386
|
}, Oe = (t, e) => mo(t, null, e), _n = (t, e) => mo($t(t), t && t.nextSibling, e), bt = (t) => {
|
|
387
387
|
const e = document.createElement("div");
|
|
388
388
|
return Je(e, "class", t), e;
|
|
389
|
-
},
|
|
389
|
+
}, ho = (t) => {
|
|
390
390
|
const e = bt();
|
|
391
|
-
return e.innerHTML = t.trim(), ce(Os(e), (s) =>
|
|
391
|
+
return e.innerHTML = t.trim(), ce(Os(e), (s) => dt(s));
|
|
392
392
|
}, Or = /^--/, yn = (t, e) => t.getPropertyValue(e) || t[e] || "", tn = (t) => {
|
|
393
393
|
const e = t || 0;
|
|
394
394
|
return isFinite(e) ? e : 0;
|
|
@@ -425,7 +425,7 @@ const xn = (t, e, s) => {
|
|
|
425
425
|
}, ms = (t, e) => e ? {
|
|
426
426
|
w: e[`${t}Width`],
|
|
427
427
|
h: e[`${t}Height`]
|
|
428
|
-
} : Fr, Hr = (t) => ms("inner", t || Me), Dt = J(ms, "offset"),
|
|
428
|
+
} : Fr, Hr = (t) => ms("inner", t || Me), Dt = J(ms, "offset"), po = J(ms, "client"), Hs = J(ms, "scroll"), sn = (t) => {
|
|
429
429
|
const e = parseFloat(vt(t, xt)) || 0, s = parseFloat(vt(t, wt)) || 0;
|
|
430
430
|
return {
|
|
431
431
|
w: e - Es(e),
|
|
@@ -435,7 +435,7 @@ const xn = (t, e, s) => {
|
|
|
435
435
|
const s = Bs(t);
|
|
436
436
|
return !Bs(e) && s;
|
|
437
437
|
}, wn = (t, e, s, r) => {
|
|
438
|
-
ce(
|
|
438
|
+
ce(pt(e), (n) => {
|
|
439
439
|
t && t.removeEventListener(n, s, r);
|
|
440
440
|
});
|
|
441
441
|
}, me = (t, e, s, r) => {
|
|
@@ -444,11 +444,11 @@ const xn = (t, e, s) => {
|
|
|
444
444
|
passive: c,
|
|
445
445
|
capture: i
|
|
446
446
|
};
|
|
447
|
-
return J(Ie,
|
|
448
|
-
const
|
|
449
|
-
wn(t, u,
|
|
447
|
+
return J(Ie, pt(e).map((u) => {
|
|
448
|
+
const p = d ? (f) => {
|
|
449
|
+
wn(t, u, p, i), s && s(f);
|
|
450
450
|
} : s;
|
|
451
|
-
return t && t.addEventListener(u,
|
|
451
|
+
return t && t.addEventListener(u, p, l), J(wn, t, u, p, i);
|
|
452
452
|
}));
|
|
453
453
|
}, go = (t) => t.stopPropagation(), Is = (t) => t.preventDefault(), _o = (t) => go(t) || Is(t), qe = (t, e) => {
|
|
454
454
|
const { x: s, y: r } = je(e) ? {
|
|
@@ -469,14 +469,14 @@ const xn = (t, e, s) => {
|
|
|
469
469
|
y: 0
|
|
470
470
|
}
|
|
471
471
|
}), Ir = (t, e) => {
|
|
472
|
-
const { T: s, D: r } = t, { w: n, h: c } = e, i = (f, v,
|
|
473
|
-
let _ =
|
|
472
|
+
const { T: s, D: r } = t, { w: n, h: c } = e, i = (f, v, h) => {
|
|
473
|
+
let _ = hn(f) * h, x = hn(v) * h;
|
|
474
474
|
if (_ === x) {
|
|
475
475
|
const b = Qt(f), M = Qt(v);
|
|
476
476
|
x = b > M ? 0 : x, _ = b < M ? 0 : _;
|
|
477
477
|
}
|
|
478
478
|
return _ = _ === x ? 0 : _, [_ + 0, x + 0];
|
|
479
|
-
}, [d, l] = i(s.x, r.x, n), [u,
|
|
479
|
+
}, [d, l] = i(s.x, r.x, n), [u, p] = i(s.y, r.y, c);
|
|
480
480
|
return {
|
|
481
481
|
T: {
|
|
482
482
|
x: d,
|
|
@@ -484,7 +484,7 @@ const xn = (t, e, s) => {
|
|
|
484
484
|
},
|
|
485
485
|
D: {
|
|
486
486
|
x: l,
|
|
487
|
-
y:
|
|
487
|
+
y: p
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
490
|
}, kn = ({ T: t, D: e }) => {
|
|
@@ -519,15 +519,15 @@ const xn = (t, e, s) => {
|
|
|
519
519
|
}, r = (c, i) => {
|
|
520
520
|
if (is(c)) {
|
|
521
521
|
const u = e.get(c) || /* @__PURE__ */ new Set();
|
|
522
|
-
return e.set(c, u), Sn((
|
|
523
|
-
Be(
|
|
522
|
+
return e.set(c, u), Sn((p) => {
|
|
523
|
+
Be(p) && u.add(p);
|
|
524
524
|
}, i), J(s, c, i);
|
|
525
525
|
}
|
|
526
526
|
Yn(i) && i && s();
|
|
527
527
|
const d = Ze(c), l = [];
|
|
528
528
|
return ce(d, (u) => {
|
|
529
|
-
const
|
|
530
|
-
|
|
529
|
+
const p = c[u];
|
|
530
|
+
p && ye(l, r(u, p));
|
|
531
531
|
}), J(Ie, l);
|
|
532
532
|
}, n = (c, i) => {
|
|
533
533
|
ce(ut(e.get(c)), (d) => {
|
|
@@ -578,13 +578,13 @@ const xn = (t, e, s) => {
|
|
|
578
578
|
d && (s[n] = i);
|
|
579
579
|
}
|
|
580
580
|
}), s;
|
|
581
|
-
}, Tn = (t, e, s) => (r) => [En(t, r), s || En(e, r) !== void 0], Tt = "data-overlayscrollbars", Xt = "os-environment", Kt = `${Xt}-scrollbar-hidden`, ws = `${Tt}-initialize`, Jt = "noClipping", An = `${Tt}-body`,
|
|
581
|
+
}, Tn = (t, e, s) => (r) => [En(t, r), s || En(e, r) !== void 0], Tt = "data-overlayscrollbars", Xt = "os-environment", Kt = `${Xt}-scrollbar-hidden`, ws = `${Tt}-initialize`, Jt = "noClipping", An = `${Tt}-body`, it = Tt, Ur = "host", ot = `${Tt}-viewport`, Pr = Tr, zr = Ar, qr = "arrange", xo = "measuring", wo = "scrollbarHidden", jr = "scrollbarPressed", Gr = "noContent", Ps = `${Tt}-padding`, Mn = `${Tt}-content`, nn = "os-size-observer", Kr = `${nn}-appear`, Wr = `${nn}-listener`, Yr = "os-trinsic-observer", Xr = "os-theme-none", Fe = "os-scrollbar", Jr = `${Fe}-rtl`, Qr = `${Fe}-horizontal`, Zr = `${Fe}-vertical`, ko = `${Fe}-track`, on = `${Fe}-handle`, ea = `${Fe}-visible`, ta = `${Fe}-cornerless`, Dn = `${Fe}-interaction`, Vn = `${Fe}-unusable`, zs = `${Fe}-auto-hide`, Ln = `${zs}-hidden`, On = `${Fe}-wheel`, sa = `${ko}-interactive`, na = `${on}-interactive`;
|
|
582
582
|
let ks;
|
|
583
583
|
const oa = () => {
|
|
584
584
|
const t = (k, U, F) => {
|
|
585
585
|
Oe(document.body, k), Oe(document.body, k);
|
|
586
|
-
const D =
|
|
587
|
-
return F &&
|
|
586
|
+
const D = po(k), V = Dt(k), L = sn(U);
|
|
587
|
+
return F && dt(k), {
|
|
588
588
|
x: V.h - D.h + L.h,
|
|
589
589
|
y: V.w - D.w + L.w
|
|
590
590
|
};
|
|
@@ -596,13 +596,13 @@ const oa = () => {
|
|
|
596
596
|
} catch {
|
|
597
597
|
}
|
|
598
598
|
return F(), U;
|
|
599
|
-
}, s = `.${Xt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Xt} div{width:200%;height:200%;margin:10px 0}.${Kt}{scrollbar-width:none!important}.${Kt}::-webkit-scrollbar,.${Kt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, n =
|
|
599
|
+
}, s = `.${Xt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Xt} div{width:200%;height:200%;margin:10px 0}.${Kt}{scrollbar-width:none!important}.${Kt}::-webkit-scrollbar,.${Kt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, n = ho(`<div class="${Xt}"><div></div><style>${s}</style></div>`)[0], c = n.firstChild, [i, , d] = Us(), [l, u] = Le({
|
|
600
600
|
o: t(n, c),
|
|
601
601
|
i: Yt
|
|
602
|
-
}, J(t, n, c, !0)), [
|
|
603
|
-
x:
|
|
604
|
-
y:
|
|
605
|
-
},
|
|
602
|
+
}, J(t, n, c, !0)), [p] = u(), f = e(n), v = {
|
|
603
|
+
x: p.x === 0,
|
|
604
|
+
y: p.y === 0
|
|
605
|
+
}, h = {
|
|
606
606
|
elements: {
|
|
607
607
|
host: null,
|
|
608
608
|
padding: !f,
|
|
@@ -616,20 +616,20 @@ const oa = () => {
|
|
|
616
616
|
nativeScrollbarsOverlaid: !1,
|
|
617
617
|
body: null
|
|
618
618
|
}
|
|
619
|
-
}, _ = re({}, Nr), x = J(re, {}, _), b = J(re, {},
|
|
620
|
-
k:
|
|
619
|
+
}, _ = re({}, Nr), x = J(re, {}, _), b = J(re, {}, h), M = {
|
|
620
|
+
k: p,
|
|
621
621
|
M: v,
|
|
622
622
|
R: f,
|
|
623
623
|
V: !!As,
|
|
624
624
|
L: J(i, "r"),
|
|
625
625
|
P: b,
|
|
626
|
-
U: (k) => re(
|
|
626
|
+
U: (k) => re(h, k) && b(),
|
|
627
627
|
N: x,
|
|
628
628
|
q: (k) => re(_, k) && x(),
|
|
629
|
-
B: re({},
|
|
629
|
+
B: re({}, h),
|
|
630
630
|
F: re({}, _)
|
|
631
631
|
};
|
|
632
|
-
if (Pe(n, "style"),
|
|
632
|
+
if (Pe(n, "style"), dt(n), me(Me, "resize", () => {
|
|
633
633
|
d("r", []);
|
|
634
634
|
}), Be(Me.matchMedia) && !f && (!v.x || !v.y)) {
|
|
635
635
|
const k = (U) => {
|
|
@@ -653,7 +653,7 @@ const oa = () => {
|
|
|
653
653
|
const n = ls(r) ? s : r, c = $o(t, n);
|
|
654
654
|
return !!c && (ss(c) ? c : e.apply(0, t));
|
|
655
655
|
}, aa = (t, e) => {
|
|
656
|
-
const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d,
|
|
656
|
+
const { nativeScrollbarsOverlaid: s, body: r } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, p = ls(r) ? l : r, f = (n.x || n.y) && u, v = t && (Ws(p) ? !c : p);
|
|
657
657
|
return !!f || !!v;
|
|
658
658
|
}, rn = /* @__PURE__ */ new WeakMap(), la = (t, e) => {
|
|
659
659
|
rn.set(t, e);
|
|
@@ -666,43 +666,43 @@ const oa = () => {
|
|
|
666
666
|
}, i = (d) => {
|
|
667
667
|
if (n && s) {
|
|
668
668
|
const l = s.map((u) => {
|
|
669
|
-
const [
|
|
670
|
-
return [f &&
|
|
669
|
+
const [p, f] = u || [];
|
|
670
|
+
return [f && p ? (d || uo)(p, t) : [], f];
|
|
671
671
|
});
|
|
672
|
-
ce(l, (u) => ce(u[0], (
|
|
673
|
-
const f = u[1], v = n.get(
|
|
674
|
-
if (t.contains(
|
|
675
|
-
const _ = me(
|
|
676
|
-
r ? (_(), n.delete(
|
|
672
|
+
ce(l, (u) => ce(u[0], (p) => {
|
|
673
|
+
const f = u[1], v = n.get(p) || [];
|
|
674
|
+
if (t.contains(p) && f) {
|
|
675
|
+
const _ = me(p, f, (x) => {
|
|
676
|
+
r ? (_(), n.delete(p)) : e(x);
|
|
677
677
|
});
|
|
678
|
-
n.set(
|
|
678
|
+
n.set(p, ye(v, _));
|
|
679
679
|
} else
|
|
680
|
-
Ie(v), n.delete(
|
|
680
|
+
Ie(v), n.delete(p);
|
|
681
681
|
}));
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
return i(), [c, i];
|
|
685
685
|
}, Rn = (t, e, s, r) => {
|
|
686
686
|
let n = !1;
|
|
687
|
-
const { j: c, X: i, Y: d, W: l, J: u, K:
|
|
687
|
+
const { j: c, X: i, Y: d, W: l, J: u, K: p } = r || {}, f = Ds(() => n && s(!0), {
|
|
688
688
|
_: 33,
|
|
689
689
|
p: 99
|
|
690
|
-
}), [v,
|
|
690
|
+
}), [v, h] = ca(t, f, d), _ = c || [], x = i || [], b = Qe(_, x), M = (U, F) => {
|
|
691
691
|
if (!Ms(F)) {
|
|
692
|
-
const D = u ||
|
|
692
|
+
const D = u || lt, V = p || lt, L = [], T = [];
|
|
693
693
|
let O = !1, A = !1;
|
|
694
|
-
if (ce(F, (
|
|
695
|
-
const { attributeName: R, target: $, type: w, oldValue: I, addedNodes: H, removedNodes: ne } =
|
|
694
|
+
if (ce(F, (C) => {
|
|
695
|
+
const { attributeName: R, target: $, type: w, oldValue: I, addedNodes: H, removedNodes: ne } = C, ue = w === "attributes", le = w === "childList", B = t === $, ee = ue && R, te = ee && Js($, R || ""), X = is(te) ? te : null, fe = ee && I !== X, P = Ys(x, R) && fe;
|
|
696
696
|
if (e && (le || !B)) {
|
|
697
|
-
const G = ue && fe, j = G && l && ns($, l), N = (j ? !D($, R, I, X) : !ue || G) && !V(
|
|
697
|
+
const G = ue && fe, j = G && l && ns($, l), N = (j ? !D($, R, I, X) : !ue || G) && !V(C, !!j, t, r);
|
|
698
698
|
ce(H, (K) => ye(L, K)), ce(ne, (K) => ye(L, K)), A = A || N;
|
|
699
699
|
}
|
|
700
700
|
!e && B && fe && !D($, R, I, X) && (ye(T, R), O = O || P);
|
|
701
|
-
}),
|
|
701
|
+
}), h((C) => vn(L).reduce((R, $) => (ye(R, uo(C, $)), ns($, C) ? ye(R, $) : R), [])), e)
|
|
702
702
|
return !U && A && s(!1), [!1];
|
|
703
703
|
if (!Ms(T) || O) {
|
|
704
|
-
const
|
|
705
|
-
return !U && s.apply(0,
|
|
704
|
+
const C = [vn(T), O];
|
|
705
|
+
return !U && s.apply(0, C), C;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
}, k = new Er(J(M, !1));
|
|
@@ -726,16 +726,16 @@ const oa = () => {
|
|
|
726
726
|
}, Ao = (t, e, s) => Ze(t).map((r) => {
|
|
727
727
|
const { static: n, instance: c } = t[r], [i, d, l] = s || [], u = s ? c : n;
|
|
728
728
|
if (u) {
|
|
729
|
-
const
|
|
730
|
-
return (l || To)[r] =
|
|
729
|
+
const p = s ? u(i, d, e) : u(e);
|
|
730
|
+
return (l || To)[r] = p;
|
|
731
731
|
}
|
|
732
732
|
}), Ft = (t) => To[t], ua = "__osOptionsValidationPlugin", fa = "__osSizeObserverPlugin", ma = (t, e) => {
|
|
733
733
|
const { M: s } = e, [r, n] = t("showNativeOverlaidScrollbars");
|
|
734
734
|
return [r && s.x && s.y, n];
|
|
735
|
-
}, os = (t) => t.indexOf(
|
|
735
|
+
}, os = (t) => t.indexOf(rt) === 0, ha = (t, e) => {
|
|
736
736
|
const s = (n, c, i, d) => {
|
|
737
|
-
const l = n ===
|
|
738
|
-
return !c && !d ? ft : u &&
|
|
737
|
+
const l = n === rt ? ft : n.replace(`${rt}-`, ""), u = os(n), p = os(i);
|
|
738
|
+
return !c && !d ? ft : u && p ? rt : u ? c && d ? l : c ? rt : ft : c ? l : p && d ? rt : ft;
|
|
739
739
|
}, r = {
|
|
740
740
|
x: s(e.x, t.x, e.y, t.y),
|
|
741
741
|
y: s(e.y, t.y, e.x, t.x)
|
|
@@ -747,35 +747,35 @@ const oa = () => {
|
|
|
747
747
|
y: r.y === kt
|
|
748
748
|
}
|
|
749
749
|
};
|
|
750
|
-
}, Mo = "__osScrollbarsHidingPlugin",
|
|
750
|
+
}, Mo = "__osScrollbarsHidingPlugin", pa = "__osClickScrollPlugin", Do = (t, e, s) => {
|
|
751
751
|
const { dt: r } = s || {}, n = Ft(fa), [c] = Le({
|
|
752
752
|
o: !1,
|
|
753
753
|
u: !0
|
|
754
754
|
});
|
|
755
755
|
return () => {
|
|
756
|
-
const i = [], l =
|
|
756
|
+
const i = [], l = ho(`<div class="${nn}"><div class="${Wr}"></div></div>`)[0], u = l.firstChild, p = (f) => {
|
|
757
757
|
const v = f instanceof ResizeObserverEntry;
|
|
758
|
-
let
|
|
758
|
+
let h = !1, _ = !1;
|
|
759
759
|
if (v) {
|
|
760
760
|
const [x, , b] = c(f.contentRect), M = Bs(x);
|
|
761
|
-
_ = vo(x, b),
|
|
761
|
+
_ = vo(x, b), h = !_ && !M;
|
|
762
762
|
} else
|
|
763
763
|
_ = f === !0;
|
|
764
|
-
|
|
764
|
+
h || e({
|
|
765
765
|
ft: !0,
|
|
766
766
|
dt: _
|
|
767
767
|
});
|
|
768
768
|
};
|
|
769
769
|
if (es) {
|
|
770
|
-
const f = new es((v) =>
|
|
770
|
+
const f = new es((v) => p(v.pop()));
|
|
771
771
|
f.observe(u), ye(i, () => {
|
|
772
772
|
f.disconnect();
|
|
773
773
|
});
|
|
774
774
|
} else if (n) {
|
|
775
|
-
const [f, v] = n(u,
|
|
775
|
+
const [f, v] = n(u, p, r);
|
|
776
776
|
ye(i, Qe([en(l, Kr), me(l, "animationstart", f)], v));
|
|
777
777
|
} else
|
|
778
|
-
return
|
|
778
|
+
return lt;
|
|
779
779
|
return J(Ie, ye(i, Oe(t, l)));
|
|
780
780
|
};
|
|
781
781
|
}, va = (t, e) => {
|
|
@@ -784,22 +784,22 @@ const oa = () => {
|
|
|
784
784
|
o: !1
|
|
785
785
|
}), i = (l, u) => {
|
|
786
786
|
if (l) {
|
|
787
|
-
const
|
|
788
|
-
return f && !u && e(
|
|
787
|
+
const p = c(r(l)), [, f] = p;
|
|
788
|
+
return f && !u && e(p) && [p];
|
|
789
789
|
}
|
|
790
790
|
}, d = (l, u) => i(u.pop(), l);
|
|
791
791
|
return [() => {
|
|
792
792
|
const l = [];
|
|
793
|
-
if (
|
|
794
|
-
s = new
|
|
793
|
+
if (pn)
|
|
794
|
+
s = new pn(J(d, !1), {
|
|
795
795
|
root: t
|
|
796
796
|
}), s.observe(n), ye(l, () => {
|
|
797
797
|
s.disconnect();
|
|
798
798
|
});
|
|
799
799
|
else {
|
|
800
800
|
const u = () => {
|
|
801
|
-
const
|
|
802
|
-
i(
|
|
801
|
+
const p = Dt(n);
|
|
802
|
+
i(p);
|
|
803
803
|
};
|
|
804
804
|
ye(l, Do(n, u)()), u();
|
|
805
805
|
}
|
|
@@ -807,54 +807,54 @@ const oa = () => {
|
|
|
807
807
|
}, () => s && d(!0, s.takeRecords())];
|
|
808
808
|
}, ga = (t, e, s, r) => {
|
|
809
809
|
let n, c, i, d, l, u;
|
|
810
|
-
const
|
|
810
|
+
const p = `[${it}]`, f = `[${ot}]`, v = [], h = ["wrap", "cols", "rows"], _ = ["id", "class", "style", "open"], { vt: x, ht: b, ot: M, gt: k, bt: U, wt: F, nt: D, yt: V, St: L, Ot: T } = t, O = (E) => vt(E, "direction") === "rtl", A = {
|
|
811
811
|
$t: !1,
|
|
812
812
|
ct: O(x)
|
|
813
|
-
},
|
|
813
|
+
}, C = Ke(), R = Ft(Mo), [$] = Le({
|
|
814
814
|
i: oo,
|
|
815
815
|
o: {
|
|
816
816
|
w: 0,
|
|
817
817
|
h: 0
|
|
818
818
|
}
|
|
819
819
|
}, () => {
|
|
820
|
-
const
|
|
820
|
+
const E = R && R.tt(t, e, A, C, s).ut, K = !(V && D) && Zs(b, it, Jt), Y = !D && L(qr), Z = Y && Re(k), ie = T(xo, K), xe = Y && E && E()[0], Se = Hs(M), oe = sn(M);
|
|
821
821
|
return xe && xe(), qe(k, Z), K && ie(), {
|
|
822
822
|
w: Se.w + oe.w,
|
|
823
823
|
h: Se.h + oe.h
|
|
824
824
|
};
|
|
825
|
-
}), w = F ?
|
|
825
|
+
}), w = F ? h : Qe(_, h), I = Ds(r, {
|
|
826
826
|
_: () => n,
|
|
827
827
|
p: () => c,
|
|
828
|
-
m(
|
|
829
|
-
const [K] =
|
|
828
|
+
m(E, N) {
|
|
829
|
+
const [K] = E, [Y] = N;
|
|
830
830
|
return [Qe(Ze(K), Ze(Y)).reduce((Z, ie) => (Z[ie] = K[ie] || Y[ie], Z), {})];
|
|
831
831
|
}
|
|
832
|
-
}), H = (
|
|
832
|
+
}), H = (E) => {
|
|
833
833
|
const N = O(x);
|
|
834
|
-
re(
|
|
834
|
+
re(E, {
|
|
835
835
|
Ct: u !== N
|
|
836
836
|
}), re(A, {
|
|
837
837
|
ct: N
|
|
838
838
|
}), u = N;
|
|
839
|
-
}, ne = (
|
|
840
|
-
const [K, Y] =
|
|
839
|
+
}, ne = (E, N) => {
|
|
840
|
+
const [K, Y] = E, Z = {
|
|
841
841
|
xt: Y
|
|
842
842
|
};
|
|
843
843
|
return re(A, {
|
|
844
844
|
$t: K
|
|
845
845
|
}), !N && r(Z), Z;
|
|
846
|
-
}, ue = ({ ft:
|
|
847
|
-
const Y = !(
|
|
848
|
-
ft:
|
|
846
|
+
}, ue = ({ ft: E, dt: N }) => {
|
|
847
|
+
const Y = !(E && !N) && C.R ? I : r, Z = {
|
|
848
|
+
ft: E || N,
|
|
849
849
|
dt: N
|
|
850
850
|
};
|
|
851
851
|
H(Z), Y(Z);
|
|
852
|
-
}, le = (
|
|
852
|
+
}, le = (E, N) => {
|
|
853
853
|
const [, K] = $(), Y = {
|
|
854
854
|
Ht: K
|
|
855
855
|
};
|
|
856
|
-
return H(Y), K && !N && (
|
|
857
|
-
}, B = (
|
|
856
|
+
return H(Y), K && !N && (E ? r : I)(Y), Y;
|
|
857
|
+
}, B = (E, N, K) => {
|
|
858
858
|
const Y = {
|
|
859
859
|
Et: N
|
|
860
860
|
};
|
|
@@ -864,16 +864,16 @@ const oa = () => {
|
|
|
864
864
|
}), [fe, P] = Rn(b, !1, B, {
|
|
865
865
|
X: _,
|
|
866
866
|
j: Qe(_, v)
|
|
867
|
-
}), G = D && es && new es((
|
|
868
|
-
const N =
|
|
867
|
+
}), G = D && es && new es((E) => {
|
|
868
|
+
const N = E[E.length - 1].contentRect;
|
|
869
869
|
ue({
|
|
870
870
|
ft: !0,
|
|
871
871
|
dt: vo(N, l)
|
|
872
872
|
}), l = N;
|
|
873
873
|
}), j = Ds(() => {
|
|
874
|
-
const [,
|
|
874
|
+
const [, E] = $();
|
|
875
875
|
r({
|
|
876
|
-
Ht:
|
|
876
|
+
Ht: E
|
|
877
877
|
});
|
|
878
878
|
}, {
|
|
879
879
|
_: 222,
|
|
@@ -881,25 +881,25 @@ const oa = () => {
|
|
|
881
881
|
});
|
|
882
882
|
return [() => {
|
|
883
883
|
G && G.observe(b);
|
|
884
|
-
const
|
|
884
|
+
const E = X && X(), N = ee && ee(), K = fe(), Y = C.L((Z) => {
|
|
885
885
|
Z ? I({
|
|
886
886
|
zt: Z
|
|
887
887
|
}) : j();
|
|
888
888
|
});
|
|
889
889
|
return () => {
|
|
890
|
-
G && G.disconnect(),
|
|
890
|
+
G && G.disconnect(), E && E(), N && N(), d && d(), K(), Y();
|
|
891
891
|
};
|
|
892
|
-
}, ({ It:
|
|
893
|
-
const Y = {}, [Z] =
|
|
892
|
+
}, ({ It: E, At: N, Tt: K }) => {
|
|
893
|
+
const Y = {}, [Z] = E("update.ignoreMutation"), [ie, xe] = E("update.attributes"), [Se, oe] = E("update.elementEvents"), [we, Ee] = E("update.debounce"), He = oe || xe, ke = N || K, De = (be) => Be(Z) && Z(be);
|
|
894
894
|
if (He) {
|
|
895
895
|
i && i(), d && d();
|
|
896
896
|
const [be, ge] = Rn(U || M, !0, le, {
|
|
897
897
|
j: Qe(w, ie || []),
|
|
898
898
|
Y: Se,
|
|
899
|
-
W:
|
|
899
|
+
W: p,
|
|
900
900
|
K: (Te, _e) => {
|
|
901
901
|
const { target: Ae, attributeName: Ve } = Te;
|
|
902
|
-
return (!_e && Ve && !D ? Lr(Ae,
|
|
902
|
+
return (!_e && Ve && !D ? Lr(Ae, p, f) : !1) || !!yt(Ae, `.${Fe}`) || !!De(Te);
|
|
903
903
|
}
|
|
904
904
|
});
|
|
905
905
|
d = be(), i = ge;
|
|
@@ -916,22 +916,22 @@ const oa = () => {
|
|
|
916
916
|
return H(Y), Y;
|
|
917
917
|
}, A];
|
|
918
918
|
}, _a = (t, e, s, r) => {
|
|
919
|
-
const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt:
|
|
919
|
+
const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: p, gt: f, yt: v, nt: h } = e, { scrollbars: _ } = p ? {} : t, { slot: x } = _ || {}, b = /* @__PURE__ */ new Map(), M = (P) => As && new As({
|
|
920
920
|
source: f,
|
|
921
921
|
axis: P
|
|
922
922
|
}), k = {
|
|
923
923
|
x: M("x"),
|
|
924
924
|
y: M("y")
|
|
925
|
-
}, U = So([d, l, u], () =>
|
|
925
|
+
}, U = So([d, l, u], () => h && v ? d : l, i, x), F = (P, G) => {
|
|
926
926
|
if (G) {
|
|
927
927
|
const Z = P ? xt : wt, { kt: ie, Mt: xe } = G, Se = Vt(xe)[Z], oe = Vt(ie)[Z];
|
|
928
928
|
return Vs(0, 1, Se / oe || 0);
|
|
929
929
|
}
|
|
930
|
-
const j = P ? "x" : "y", { Rt:
|
|
930
|
+
const j = P ? "x" : "y", { Rt: E, Vt: N } = s, K = N[j], Y = E[j];
|
|
931
931
|
return Vs(0, 1, K / (K + Y) || 0);
|
|
932
932
|
}, D = (P, G, j) => {
|
|
933
|
-
const
|
|
934
|
-
return 1 /
|
|
933
|
+
const E = F(j, P);
|
|
934
|
+
return 1 / E * (1 - E) * G;
|
|
935
935
|
}, V = (P) => re(P, {
|
|
936
936
|
clear: ["left"]
|
|
937
937
|
}), L = (P) => {
|
|
@@ -940,56 +940,56 @@ const oa = () => {
|
|
|
940
940
|
N && N.cancel();
|
|
941
941
|
}), b.delete(j));
|
|
942
942
|
});
|
|
943
|
-
}, T = (P, G, j,
|
|
943
|
+
}, T = (P, G, j, E) => {
|
|
944
944
|
const N = b.get(P) || [], K = N.find((Y) => Y && Y.timeline === G);
|
|
945
945
|
K ? K.effect = new KeyframeEffect(P, j, {
|
|
946
|
-
composite:
|
|
946
|
+
composite: E
|
|
947
947
|
}) : b.set(P, Qe(N, [P.animate(j, {
|
|
948
948
|
timeline: G,
|
|
949
|
-
composite:
|
|
949
|
+
composite: E
|
|
950
950
|
})]));
|
|
951
951
|
}, O = (P, G, j) => {
|
|
952
|
-
const
|
|
952
|
+
const E = j ? en : co;
|
|
953
953
|
ce(P, (N) => {
|
|
954
|
-
|
|
954
|
+
E(N.Lt, G);
|
|
955
955
|
});
|
|
956
956
|
}, A = (P, G) => {
|
|
957
957
|
ce(P, (j) => {
|
|
958
|
-
const [
|
|
959
|
-
Rt(
|
|
958
|
+
const [E, N] = G(j);
|
|
959
|
+
Rt(E, N);
|
|
960
960
|
});
|
|
961
|
-
},
|
|
961
|
+
}, C = (P, G) => {
|
|
962
962
|
A(P, (j) => {
|
|
963
|
-
const { Mt:
|
|
964
|
-
return [
|
|
963
|
+
const { Mt: E } = j;
|
|
964
|
+
return [E, {
|
|
965
965
|
[G ? xt : wt]: bn(F(G))
|
|
966
966
|
}];
|
|
967
967
|
});
|
|
968
968
|
}, R = (P, G) => {
|
|
969
|
-
const { Pt: j } = s,
|
|
969
|
+
const { Pt: j } = s, E = G ? "x" : "y", N = k[E], K = kn(j)[E], Y = (Z, ie) => xs(bn(D(Z, K ? ie : 1 - ie, G)), G);
|
|
970
970
|
N ? ce(P, (Z) => {
|
|
971
971
|
const { Mt: ie } = Z;
|
|
972
972
|
T(ie, N, V({
|
|
973
973
|
transform: [0, 1].map((xe) => Y(Z, xe))
|
|
974
974
|
}));
|
|
975
975
|
}) : A(P, (Z) => [Z.Mt, {
|
|
976
|
-
transform: Y(Z, $n(j, Re(f))[
|
|
976
|
+
transform: Y(Z, $n(j, Re(f))[E])
|
|
977
977
|
}]);
|
|
978
|
-
}, $ = (P) =>
|
|
979
|
-
const
|
|
978
|
+
}, $ = (P) => h && !v && $t(P) === u, w = [], I = [], H = [], ne = (P, G, j) => {
|
|
979
|
+
const E = Yn(j), N = E ? j : !0, K = E ? !j : !0;
|
|
980
980
|
N && O(I, P, G), K && O(H, P, G);
|
|
981
981
|
}, ue = () => {
|
|
982
|
-
|
|
982
|
+
C(I, !0), C(H);
|
|
983
983
|
}, le = () => {
|
|
984
984
|
R(I, !0), R(H);
|
|
985
985
|
}, B = () => {
|
|
986
|
-
if (
|
|
987
|
-
const { Rt: P, Pt: G } = s, j = kn(G),
|
|
986
|
+
if (h) {
|
|
987
|
+
const { Rt: P, Pt: G } = s, j = kn(G), E = 0.5;
|
|
988
988
|
if (k.x && k.y)
|
|
989
989
|
ce(Qe(H, I), ({ Lt: N }) => {
|
|
990
990
|
if ($(N)) {
|
|
991
991
|
const K = (Y) => T(N, k[Y], V({
|
|
992
|
-
transform: [0, j[Y] ? 1 : -1].map((Z) => xs(Fs(Z * (P[Y] -
|
|
992
|
+
transform: [0, j[Y] ? 1 : -1].map((Z) => xs(Fs(Z * (P[Y] - E)), Y === "x"))
|
|
993
993
|
}), "add");
|
|
994
994
|
K("x"), K("y");
|
|
995
995
|
} else
|
|
@@ -1012,12 +1012,12 @@ const oa = () => {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
}, ee = (P) => {
|
|
1015
|
-
const j = bt(`${Fe} ${P ? Qr : Zr}`),
|
|
1015
|
+
const j = bt(`${Fe} ${P ? Qr : Zr}`), E = bt(ko), N = bt(on), K = {
|
|
1016
1016
|
Lt: j,
|
|
1017
|
-
kt:
|
|
1017
|
+
kt: E,
|
|
1018
1018
|
Mt: N
|
|
1019
1019
|
};
|
|
1020
|
-
return ye(P ? I : H, K), ye(w, [Oe(j,
|
|
1020
|
+
return ye(P ? I : H, K), ye(w, [Oe(j, E), Oe(E, N), J(dt, j), L, r(K, ne, R, P)]), K;
|
|
1021
1021
|
}, te = J(ee, !0), X = J(ee, !1), fe = () => (Oe(U, I[0].Lt), Oe(U, H[0].Lt), J(Ie, w));
|
|
1022
1022
|
return te(), X(), [{
|
|
1023
1023
|
Ut: ue,
|
|
@@ -1038,7 +1038,7 @@ const oa = () => {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
}, fe];
|
|
1040
1040
|
}, ya = (t, e, s, r) => (n, c, i, d) => {
|
|
1041
|
-
const { ht: l, ot: u, nt:
|
|
1041
|
+
const { ht: l, ot: u, nt: p, gt: f, Jt: v, Ot: h } = e, { Lt: _, kt: x, Mt: b } = n, [M, k] = mt(333), [U, F] = mt(444), [D, V] = mt(), L = J(i, [n], d), T = ($) => {
|
|
1042
1042
|
Be(f.scrollBy) && f.scrollBy({
|
|
1043
1043
|
behavior: "smooth",
|
|
1044
1044
|
left: $.x,
|
|
@@ -1055,9 +1055,9 @@ const oa = () => {
|
|
|
1055
1055
|
const B = yt(le.target, `.${on}`) === b, ee = B ? b : x, te = t.scrollbars, { button: X, isPrimary: fe, pointerType: P } = le, { pointers: G } = te;
|
|
1056
1056
|
if (X === 0 && fe && te[B ? "dragScroll" : "clickScroll"] && (G || []).includes(P)) {
|
|
1057
1057
|
F();
|
|
1058
|
-
const
|
|
1058
|
+
const E = !B && le.shiftKey, N = J(Vt, b), K = J(Vt, x), Y = (_e, Ae) => (_e || N())[I] - (Ae || K())[I], Z = Es(Vt(f)[O]) / Dt(f)[H] || 1, ie = ue(Re(f)[ne], 1 / Z), xe = le[w], Se = N(), oe = K(), we = Se[O], Ee = Y(Se, oe) + we / 2, He = xe - oe[I], ke = B ? 0 : He - Ee, De = (_e) => {
|
|
1059
1059
|
Ie(Te), ee.releasePointerCapture(_e.pointerId);
|
|
1060
|
-
}, be = () =>
|
|
1060
|
+
}, be = () => h(jr, !0), ge = be(), Te = [() => {
|
|
1061
1061
|
const _e = Re(f);
|
|
1062
1062
|
ge();
|
|
1063
1063
|
const Ae = Re(f), Ve = {
|
|
@@ -1069,33 +1069,33 @@ const oa = () => {
|
|
|
1069
1069
|
H: !1
|
|
1070
1070
|
}), me(x, $, De), me(x, "pointermove", (_e) => {
|
|
1071
1071
|
const Ae = _e[w] - xe;
|
|
1072
|
-
(B ||
|
|
1072
|
+
(B || E) && ie(ke + Ae);
|
|
1073
1073
|
})];
|
|
1074
|
-
if (ee.setPointerCapture(le.pointerId),
|
|
1074
|
+
if (ee.setPointerCapture(le.pointerId), E)
|
|
1075
1075
|
ie(ke);
|
|
1076
1076
|
else if (!B) {
|
|
1077
|
-
const _e = Ft(
|
|
1077
|
+
const _e = Ft(pa);
|
|
1078
1078
|
_e && ye(Te, _e(ie, Y, ke, we, He));
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
};
|
|
1083
|
-
let
|
|
1083
|
+
let C = !0;
|
|
1084
1084
|
const R = ($) => $.propertyName.indexOf(O) > -1;
|
|
1085
1085
|
return J(Ie, [me(b, "pointermove pointerleave", r), me(_, "pointerenter", () => {
|
|
1086
1086
|
c(Dn, !0);
|
|
1087
1087
|
}), me(_, "pointerleave pointercancel", () => {
|
|
1088
1088
|
c(Dn, !1);
|
|
1089
|
-
}), !
|
|
1089
|
+
}), !p && me(_, "mousedown", () => {
|
|
1090
1090
|
const $ = Rs();
|
|
1091
|
-
(gn($,
|
|
1091
|
+
(gn($, ot) || gn($, it) || $ === document.body) && Zt(J(Ns, u), 25);
|
|
1092
1092
|
}), me(_, "wheel", ($) => {
|
|
1093
1093
|
const { deltaX: w, deltaY: I, deltaMode: H } = $;
|
|
1094
|
-
|
|
1094
|
+
C && H === 0 && $t(_) === l && T({
|
|
1095
1095
|
x: w,
|
|
1096
1096
|
y: I
|
|
1097
|
-
}),
|
|
1098
|
-
|
|
1097
|
+
}), C = !1, c(On, !0), M(() => {
|
|
1098
|
+
C = !0, c(On);
|
|
1099
1099
|
}), Is($);
|
|
1100
1100
|
}, {
|
|
1101
1101
|
H: !1,
|
|
@@ -1117,12 +1117,12 @@ const oa = () => {
|
|
|
1117
1117
|
I: !0
|
|
1118
1118
|
}), A(), k, F, V]);
|
|
1119
1119
|
}, ba = (t, e, s, r, n, c) => {
|
|
1120
|
-
let i, d, l, u,
|
|
1121
|
-
const
|
|
1120
|
+
let i, d, l, u, p, f = lt, v = 0;
|
|
1121
|
+
const h = (B) => B.pointerType === "mouse", [_, x] = mt(), [b, M] = mt(100), [k, U] = mt(100), [F, D] = mt(() => v), [V, L] = _a(t, n, r, ya(e, n, r, (B) => h(B) && H())), { ht: T, Kt: O, yt: A } = n, { Bt: C, Ut: R, Nt: $, qt: w } = V, I = (B, ee) => {
|
|
1122
1122
|
if (D(), B)
|
|
1123
|
-
|
|
1123
|
+
C(Ln);
|
|
1124
1124
|
else {
|
|
1125
|
-
const te = J(
|
|
1125
|
+
const te = J(C, Ln, !0);
|
|
1126
1126
|
v > 0 && !ee ? F(te) : te();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, H = () => {
|
|
@@ -1130,37 +1130,37 @@ const oa = () => {
|
|
|
1130
1130
|
I(!1);
|
|
1131
1131
|
}));
|
|
1132
1132
|
}, ne = (B) => {
|
|
1133
|
-
|
|
1133
|
+
C(zs, B, !0), C(zs, B, !1);
|
|
1134
1134
|
}, ue = (B) => {
|
|
1135
|
-
|
|
1135
|
+
h(B) && (i = l, l && I(!0));
|
|
1136
1136
|
}, le = [D, M, U, x, () => f(), me(T, "pointerover", ue, {
|
|
1137
1137
|
A: !0
|
|
1138
1138
|
}), me(T, "pointerenter", ue), me(T, "pointerleave", (B) => {
|
|
1139
|
-
|
|
1139
|
+
h(B) && (i = !1, l && I(!1));
|
|
1140
1140
|
}), me(T, "pointermove", (B) => {
|
|
1141
|
-
|
|
1141
|
+
h(B) && d && H();
|
|
1142
1142
|
}), me(O, "scroll", (B) => {
|
|
1143
1143
|
_(() => {
|
|
1144
1144
|
$(), H();
|
|
1145
1145
|
}), c(B), w();
|
|
1146
1146
|
})];
|
|
1147
1147
|
return [() => J(Ie, ye(le, L())), ({ It: B, Tt: ee, Gt: te, Qt: X }) => {
|
|
1148
|
-
const { Zt: fe, tn: P, nn: G, sn: j } = X || {}, { Ct:
|
|
1149
|
-
const Nt =
|
|
1150
|
-
return
|
|
1148
|
+
const { Zt: fe, tn: P, nn: G, sn: j } = X || {}, { Ct: E, dt: N } = te || {}, { ct: K } = s, { M: Y } = Ke(), { G: Z, en: ie } = r, [xe, Se] = B("showNativeOverlaidScrollbars"), [oe, we] = B("scrollbars.theme"), [Ee, He] = B("scrollbars.visibility"), [ke, De] = B("scrollbars.autoHide"), [be, ge] = B("scrollbars.autoHideSuspend"), [Te] = B("scrollbars.autoHideDelay"), [_e, Ae] = B("scrollbars.dragScroll"), [Ve, gt] = B("scrollbars.clickScroll"), [Ht, ps] = B("overflow"), vs = N && !ee, gs = ie.x || ie.y, Ue = fe || P || j || E || ee, _s = G || He || ps, Bt = xe && Y.x && Y.y, It = (st, At, Mt) => {
|
|
1149
|
+
const Nt = st.includes(kt) && (Ee === rt || Ee === "auto" && At === kt);
|
|
1150
|
+
return C(ea, Nt, Mt), Nt;
|
|
1151
1151
|
};
|
|
1152
1152
|
if (v = Te, vs && (be && gs ? (ne(!1), f(), k(() => {
|
|
1153
1153
|
f = me(O, "scroll", J(ne, !0), {
|
|
1154
1154
|
A: !0
|
|
1155
1155
|
});
|
|
1156
|
-
})) : ne(!0)), Se &&
|
|
1157
|
-
const
|
|
1158
|
-
|
|
1156
|
+
})) : ne(!0)), Se && C(Xr, Bt), we && (C(p), C(oe, !0), p = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Ae && C(na, _e), gt && C(sa, Ve), _s) {
|
|
1157
|
+
const st = It(Ht.x, Z.x, !0), At = It(Ht.y, Z.y, !1);
|
|
1158
|
+
C(ta, !(st && At));
|
|
1159
1159
|
}
|
|
1160
|
-
Ue && (R(), $(), w(),
|
|
1160
|
+
Ue && (R(), $(), w(), C(Vn, !ie.x, !0), C(Vn, !ie.y, !1), C(Jr, K && !A));
|
|
1161
1161
|
}, {}, V];
|
|
1162
1162
|
}, xa = (t) => {
|
|
1163
|
-
const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ss(t),
|
|
1163
|
+
const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ss(t), p = u ? {} : t, { elements: f } = p, { host: v, padding: h, viewport: _, content: x } = f || {}, b = u ? t : p.target, M = fo(b), k = ns(b, "textarea"), U = b.ownerDocument, F = U.documentElement, D = () => U.defaultView || Me, V = J(ra, [b]), L = J(So, [b]), T = J(bt, ""), O = J(V, T, d), A = J(L, T, l), C = O(_), R = C === b, $ = R && M, w = !R && A(x), I = !R && C === w, H = $ ? F : C, ne = k ? V(T, c, v) : b, ue = $ ? H : ne, le = !R && L(T, i, h), B = !I && w, ee = [B, H, le, ue].map((oe) => ss(oe) && !$t(oe) && oe), te = (oe) => oe && Ys(ee, oe), X = te(H) ? b : H, fe = {
|
|
1164
1164
|
vt: b,
|
|
1165
1165
|
ht: ue,
|
|
1166
1166
|
ot: H,
|
|
@@ -1175,26 +1175,26 @@ const oa = () => {
|
|
|
1175
1175
|
Dt: u,
|
|
1176
1176
|
nt: R,
|
|
1177
1177
|
ln: D,
|
|
1178
|
-
St: (oe) => Zs(H,
|
|
1179
|
-
Ot: (oe, we) => Ls(H,
|
|
1180
|
-
}, { vt: P, ht: G, cn: j, ot:
|
|
1181
|
-
Pe(G, [
|
|
1178
|
+
St: (oe) => Zs(H, ot, oe),
|
|
1179
|
+
Ot: (oe, we) => Ls(H, ot, oe, we)
|
|
1180
|
+
}, { vt: P, ht: G, cn: j, ot: E, bt: N } = fe, K = [() => {
|
|
1181
|
+
Pe(G, [it, ws]), Pe(P, ws), M && Pe(F, [ws, it]);
|
|
1182
1182
|
}], Y = k && te(G);
|
|
1183
|
-
let Z = k ? P : Os([N,
|
|
1184
|
-
const ie = $ ? P : N ||
|
|
1183
|
+
let Z = k ? P : Os([N, E, j, G, P].find((oe) => oe && !te(oe)));
|
|
1184
|
+
const ie = $ ? P : N || E, xe = J(Ie, K);
|
|
1185
1185
|
return [fe, () => {
|
|
1186
1186
|
const oe = D(), we = Rs(), Ee = (ge) => {
|
|
1187
|
-
Oe($t(ge), Os(ge)),
|
|
1187
|
+
Oe($t(ge), Os(ge)), dt(ge);
|
|
1188
1188
|
}, He = (ge) => me(ge, "focusin focusout focus blur", _o, {
|
|
1189
1189
|
I: !0,
|
|
1190
1190
|
H: !1
|
|
1191
|
-
}), ke = "tabindex", De = Js(
|
|
1192
|
-
return Je(G,
|
|
1193
|
-
_n(G, P),
|
|
1194
|
-
})), Oe(ie, Z), Oe(G, j), Oe(j || G, !R &&
|
|
1195
|
-
const ge = Rs(), Te = te(
|
|
1196
|
-
Pe(j, Ps), Pe(N, Mn), Pe(
|
|
1197
|
-
}]), r && !R && (Qs(
|
|
1191
|
+
}), ke = "tabindex", De = Js(E, ke), be = He(we);
|
|
1192
|
+
return Je(G, it, R ? "" : Ur), Je(j, Ps, ""), Je(E, ot, ""), Je(N, Mn, ""), R || (Je(E, ke, De || "-1"), M && Je(F, An, "")), Y && (_n(P, G), ye(K, () => {
|
|
1193
|
+
_n(G, P), dt(G);
|
|
1194
|
+
})), Oe(ie, Z), Oe(G, j), Oe(j || G, !R && E), Oe(E, N), ye(K, [be, () => {
|
|
1195
|
+
const ge = Rs(), Te = te(E), _e = Te && ge === E ? P : ge, Ae = He(_e);
|
|
1196
|
+
Pe(j, Ps), Pe(N, Mn), Pe(E, ot), M && Pe(F, An), De ? Je(E, ke, De) : Pe(E, ke), te(N) && Ee(N), Te && Ee(E), te(j) && Ee(j), Ns(_e), Ae();
|
|
1197
|
+
}]), r && !R && (Qs(E, ot, wo), ye(K, J(Pe, E, ot))), Ns(!R && M && we === P && oe.top === oe ? E : we), be(), Z = 0, xe;
|
|
1198
1198
|
}, xe];
|
|
1199
1199
|
}, wa = ({ bt: t }) => ({ Gt: e, an: s, Tt: r }) => {
|
|
1200
1200
|
const { xt: n } = e || {}, { $t: c } = s;
|
|
@@ -1206,13 +1206,13 @@ const oa = () => {
|
|
|
1206
1206
|
i: Dr,
|
|
1207
1207
|
o: xn()
|
|
1208
1208
|
}, J(xn, t, "padding", ""));
|
|
1209
|
-
return ({ It: d, Gt: l, an: u, Tt:
|
|
1210
|
-
let [f, v] = i(
|
|
1211
|
-
const { R:
|
|
1212
|
-
(_ || v || (
|
|
1209
|
+
return ({ It: d, Gt: l, an: u, Tt: p }) => {
|
|
1210
|
+
let [f, v] = i(p);
|
|
1211
|
+
const { R: h } = Ke(), { ft: _, Ht: x, Ct: b } = l || {}, { ct: M } = u, [k, U] = d("paddingAbsolute");
|
|
1212
|
+
(_ || v || (p || x)) && ([f, v] = c(p));
|
|
1213
1213
|
const D = !r && (U || b || v);
|
|
1214
1214
|
if (D) {
|
|
1215
|
-
const V = !k || !e && !
|
|
1215
|
+
const V = !k || !e && !h, L = f.r + f.l, T = f.t + f.b, O = {
|
|
1216
1216
|
[so]: V && !M ? -L : 0,
|
|
1217
1217
|
[no]: V ? -T : 0,
|
|
1218
1218
|
[to]: V && M ? -L : 0,
|
|
@@ -1237,7 +1237,7 @@ const oa = () => {
|
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
1239
|
}, $a = (t, e) => {
|
|
1240
|
-
const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot:
|
|
1240
|
+
const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: p, ln: f } = t, { R: v } = s, h = u && i, _ = J(Gn, 0), x = ["display", "direction", "flexDirection", "writingMode"], b = {
|
|
1241
1241
|
i: oo,
|
|
1242
1242
|
o: {
|
|
1243
1243
|
w: 0,
|
|
@@ -1247,7 +1247,7 @@ const oa = () => {
|
|
|
1247
1247
|
i: Yt,
|
|
1248
1248
|
o: {}
|
|
1249
1249
|
}, k = (B) => {
|
|
1250
|
-
|
|
1250
|
+
p(xo, !h && B);
|
|
1251
1251
|
}, U = (B, ee) => {
|
|
1252
1252
|
const te = Me.devicePixelRatio % 1 !== 0 ? 1 : 0, X = {
|
|
1253
1253
|
w: _(B.w - ee.w),
|
|
@@ -1257,7 +1257,7 @@ const oa = () => {
|
|
|
1257
1257
|
w: X.w > te ? X.w : 0,
|
|
1258
1258
|
h: X.h > te ? X.h : 0
|
|
1259
1259
|
};
|
|
1260
|
-
}, [F, D] = Le(b, J(sn, c)), [V, L] = Le(b, J(Hs, c)), [T, O] = Le(b), [A] = Le(M), [
|
|
1260
|
+
}, [F, D] = Le(b, J(sn, c)), [V, L] = Le(b, J(Hs, c)), [T, O] = Le(b), [A] = Le(M), [C, R] = Le(b), [$] = Le(M), [w] = Le({
|
|
1261
1261
|
i: (B, ee) => us(B, ee, x),
|
|
1262
1262
|
o: {}
|
|
1263
1263
|
}, () => Br(c) ? vt(c, x) : {}), [I, H] = Le({
|
|
@@ -1265,9 +1265,9 @@ const oa = () => {
|
|
|
1265
1265
|
o: yo()
|
|
1266
1266
|
}, () => {
|
|
1267
1267
|
k(!0);
|
|
1268
|
-
const B = Re(l), ee =
|
|
1269
|
-
const
|
|
1270
|
-
j.isTrusted &&
|
|
1268
|
+
const B = Re(l), ee = p(Gr, !0), te = me(d, kt, (j) => {
|
|
1269
|
+
const E = Re(l);
|
|
1270
|
+
j.isTrusted && E.x === B.x && E.y === B.y && go(j);
|
|
1271
1271
|
}, {
|
|
1272
1272
|
I: !0,
|
|
1273
1273
|
A: !0
|
|
@@ -1292,28 +1292,28 @@ const oa = () => {
|
|
|
1292
1292
|
D: G
|
|
1293
1293
|
};
|
|
1294
1294
|
}), ne = Ft(Mo), ue = (B, ee) => `${ee ? Pr : zr}${Mr(B)}`, le = (B) => {
|
|
1295
|
-
const ee = (X) => [
|
|
1296
|
-
|
|
1295
|
+
const ee = (X) => [rt, ft, kt].map((fe) => ue(fe, X)), te = ee(!0).concat(ee()).join(" ");
|
|
1296
|
+
p(te), p(Ze(B).map((X) => ue(B[X], X === "x")).join(" "), !0);
|
|
1297
1297
|
};
|
|
1298
1298
|
return ({ It: B, Gt: ee, an: te, Tt: X }, { _n: fe }) => {
|
|
1299
|
-
const { ft: P, Ht: G, Ct: j, dt:
|
|
1299
|
+
const { ft: P, Ht: G, Ct: j, dt: E, zt: N } = ee || {}, K = ne && ne.tt(t, e, te, s, B), { it: Y, ut: Z, _t: ie } = K || {}, [xe, Se] = ma(B, s), [oe, we] = B("overflow"), Ee = os(oe.x), He = os(oe.y), ke = P || fe || G || j || N || Se;
|
|
1300
1300
|
let De = D(X), be = L(X), ge = O(X), Te = R(X);
|
|
1301
|
-
if (Se && v &&
|
|
1302
|
-
Zs(r,
|
|
1303
|
-
const [un] = Z ? Z() : [], [Ut] = De = F(X), [Pt] = be = V(X), zt =
|
|
1301
|
+
if (Se && v && p(wo, !xe), ke) {
|
|
1302
|
+
Zs(r, it, Jt) && k(!0);
|
|
1303
|
+
const [un] = Z ? Z() : [], [Ut] = De = F(X), [Pt] = be = V(X), zt = po(c), qt = h && Hr(f()), er = {
|
|
1304
1304
|
w: _(Pt.w + Ut.w),
|
|
1305
1305
|
h: _(Pt.h + Ut.h)
|
|
1306
1306
|
}, fn = {
|
|
1307
1307
|
w: _((qt ? qt.w : zt.w + _(zt.w - Pt.w)) + Ut.w),
|
|
1308
1308
|
h: _((qt ? qt.h : zt.h + _(zt.h - Pt.h)) + Ut.h)
|
|
1309
1309
|
};
|
|
1310
|
-
un && un(), Te =
|
|
1310
|
+
un && un(), Te = C(fn), ge = T(U(er, fn), X);
|
|
1311
1311
|
}
|
|
1312
|
-
const [_e, Ae] = Te, [Ve, gt] = ge, [Ht,
|
|
1312
|
+
const [_e, Ae] = Te, [Ve, gt] = ge, [Ht, ps] = be, [vs, gs] = De, [Ue, _s] = A({
|
|
1313
1313
|
x: Ve.w > 0,
|
|
1314
1314
|
y: Ve.h > 0
|
|
1315
|
-
}), Bt = Ee && He && (Ue.x || Ue.y) || Ee && Ue.x && !Ue.y || He && Ue.y && !Ue.x, It = fe || j || N || gs ||
|
|
1316
|
-
return It && (Mt && le(
|
|
1315
|
+
}), Bt = Ee && He && (Ue.x || Ue.y) || Ee && Ue.x && !Ue.y || He && Ue.y && !Ue.x, It = fe || j || N || gs || ps || Ae || gt || we || Se || ke, st = ha(Ue, oe), [At, Mt] = $(st.G), [, Nt] = w(X), dn = j || E || Nt || _s || X, [Qo, Zo] = dn ? I(X) : H();
|
|
1316
|
+
return It && (Mt && le(st.G), ie && Y && Rt(c, ie(st, te, Y(st, Ht, vs)))), k(!1), Ls(r, it, Jt, Bt), Ls(n, Ps, Jt, Bt), re(e, {
|
|
1317
1317
|
G: At,
|
|
1318
1318
|
Vt: {
|
|
1319
1319
|
x: _e.w,
|
|
@@ -1368,33 +1368,33 @@ const oa = () => {
|
|
|
1368
1368
|
y: !1
|
|
1369
1369
|
},
|
|
1370
1370
|
Pt: yo()
|
|
1371
|
-
}, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(),
|
|
1371
|
+
}, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), p = !l && (u.x || u.y), f = [wa(e), ka(e, n), $a(e, n)];
|
|
1372
1372
|
return [s, (v) => {
|
|
1373
|
-
const
|
|
1373
|
+
const h = {}, x = p && Re(i);
|
|
1374
1374
|
return ce(f, (b) => {
|
|
1375
|
-
re(
|
|
1376
|
-
}), qe(i, x), !d && qe(c, 0),
|
|
1375
|
+
re(h, b(v, h) || {});
|
|
1376
|
+
}), qe(i, x), !d && qe(c, 0), h;
|
|
1377
1377
|
}, n, e, r];
|
|
1378
1378
|
}, Ca = (t, e, s, r, n) => {
|
|
1379
|
-
const c = Tn(e, {}), [i, d, l, u,
|
|
1379
|
+
const c = Tn(e, {}), [i, d, l, u, p] = Sa(t), [f, v, h] = ga(u, l, c, (U) => {
|
|
1380
1380
|
k({}, U);
|
|
1381
|
-
}), [_, x, , b] = ba(t, e,
|
|
1381
|
+
}), [_, x, , b] = ba(t, e, h, l, u, n), M = (U) => Ze(U).some((F) => !!U[F]), k = (U, F) => {
|
|
1382
1382
|
if (s())
|
|
1383
1383
|
return !1;
|
|
1384
|
-
const { fn: D, Tt: V, At: L, pn: T } = U, O = D || {}, A = !!V,
|
|
1384
|
+
const { fn: D, Tt: V, At: L, pn: T } = U, O = D || {}, A = !!V, C = {
|
|
1385
1385
|
It: Tn(e, O, A),
|
|
1386
1386
|
fn: O,
|
|
1387
1387
|
Tt: A
|
|
1388
1388
|
};
|
|
1389
1389
|
if (T)
|
|
1390
|
-
return x(
|
|
1391
|
-
const R = F || v(re({},
|
|
1390
|
+
return x(C), !1;
|
|
1391
|
+
const R = F || v(re({}, C, {
|
|
1392
1392
|
At: L
|
|
1393
|
-
})), $ = d(re({},
|
|
1394
|
-
an:
|
|
1393
|
+
})), $ = d(re({}, C, {
|
|
1394
|
+
an: h,
|
|
1395
1395
|
Gt: R
|
|
1396
1396
|
}));
|
|
1397
|
-
x(re({},
|
|
1397
|
+
x(re({}, C, {
|
|
1398
1398
|
Gt: R,
|
|
1399
1399
|
Qt: $
|
|
1400
1400
|
}));
|
|
@@ -1408,22 +1408,22 @@ const oa = () => {
|
|
|
1408
1408
|
const { rn: U, gt: F } = u, D = Re(U), V = [f(), i(), _()];
|
|
1409
1409
|
return qe(F, D), J(Ie, V);
|
|
1410
1410
|
}, k, () => ({
|
|
1411
|
-
vn:
|
|
1411
|
+
vn: h,
|
|
1412
1412
|
hn: l
|
|
1413
1413
|
}), {
|
|
1414
1414
|
gn: u,
|
|
1415
1415
|
bn: b
|
|
1416
|
-
},
|
|
1417
|
-
},
|
|
1416
|
+
}, p];
|
|
1417
|
+
}, et = (t, e, s) => {
|
|
1418
1418
|
const { N: r } = Ke(), n = ss(t), c = n ? t : t.target, i = Co(c);
|
|
1419
1419
|
if (e && !i) {
|
|
1420
1420
|
let d = !1;
|
|
1421
|
-
const l = [], u = {},
|
|
1422
|
-
const
|
|
1423
|
-
return R ? R(
|
|
1424
|
-
}, f = re({}, r(),
|
|
1425
|
-
M(A,
|
|
1426
|
-
}, [U, F, D, V, L] = Ca(t, f, () => d, ({ fn: A, Tt:
|
|
1421
|
+
const l = [], u = {}, p = (A) => {
|
|
1422
|
+
const C = ao(A), R = Ft(ua);
|
|
1423
|
+
return R ? R(C, !0) : C;
|
|
1424
|
+
}, f = re({}, r(), p(e)), [v, h, _] = Us(), [x, b, M] = Us(s), k = (A, C) => {
|
|
1425
|
+
M(A, C), _(A, C);
|
|
1426
|
+
}, [U, F, D, V, L] = Ca(t, f, () => d, ({ fn: A, Tt: C }, { Gt: R, Qt: $ }) => {
|
|
1427
1427
|
const { ft: w, Ct: I, xt: H, Ht: ne, Et: ue, dt: le } = R, { Zt: B, tn: ee, nn: te, sn: X } = $;
|
|
1428
1428
|
k("updated", [O, {
|
|
1429
1429
|
updateHints: {
|
|
@@ -1439,14 +1439,14 @@ const oa = () => {
|
|
|
1439
1439
|
appear: !!le
|
|
1440
1440
|
},
|
|
1441
1441
|
changedOptions: A || {},
|
|
1442
|
-
force: !!
|
|
1442
|
+
force: !!C
|
|
1443
1443
|
}]);
|
|
1444
1444
|
}, (A) => k("scroll", [O, A])), T = (A) => {
|
|
1445
|
-
ia(c), Ie(l), d = !0, k("destroyed", [O, A]),
|
|
1445
|
+
ia(c), Ie(l), d = !0, k("destroyed", [O, A]), h(), b();
|
|
1446
1446
|
}, O = {
|
|
1447
|
-
options(A,
|
|
1447
|
+
options(A, C) {
|
|
1448
1448
|
if (A) {
|
|
1449
|
-
const R =
|
|
1449
|
+
const R = C ? r() : {}, $ = bo(f, re(R, p(A)));
|
|
1450
1450
|
Xs($) || (re(f, $), F({
|
|
1451
1451
|
fn: $
|
|
1452
1452
|
}));
|
|
@@ -1454,11 +1454,11 @@ const oa = () => {
|
|
|
1454
1454
|
return re({}, f);
|
|
1455
1455
|
},
|
|
1456
1456
|
on: x,
|
|
1457
|
-
off: (A,
|
|
1458
|
-
A &&
|
|
1457
|
+
off: (A, C) => {
|
|
1458
|
+
A && C && b(A, C);
|
|
1459
1459
|
},
|
|
1460
1460
|
state() {
|
|
1461
|
-
const { vn: A, hn:
|
|
1461
|
+
const { vn: A, hn: C } = D(), { ct: R } = A, { Vt: $, Rt: w, G: I, en: H, cn: ne, un: ue, Pt: le } = C;
|
|
1462
1462
|
return re({}, {
|
|
1463
1463
|
overflowEdge: $,
|
|
1464
1464
|
overflowAmount: w,
|
|
@@ -1475,7 +1475,7 @@ const oa = () => {
|
|
|
1475
1475
|
});
|
|
1476
1476
|
},
|
|
1477
1477
|
elements() {
|
|
1478
|
-
const { vt: A, ht:
|
|
1478
|
+
const { vt: A, ht: C, cn: R, ot: $, bt: w, gt: I, Kt: H } = V.gn, { Ft: ne, Wt: ue } = V.bn, le = (ee) => {
|
|
1479
1479
|
const { Mt: te, kt: X, Lt: fe } = ee;
|
|
1480
1480
|
return {
|
|
1481
1481
|
scrollbar: fe,
|
|
@@ -1495,7 +1495,7 @@ const oa = () => {
|
|
|
1495
1495
|
};
|
|
1496
1496
|
return re({}, {
|
|
1497
1497
|
target: A,
|
|
1498
|
-
host:
|
|
1498
|
+
host: C,
|
|
1499
1499
|
padding: R || $,
|
|
1500
1500
|
viewport: $,
|
|
1501
1501
|
content: w || $,
|
|
@@ -1512,19 +1512,19 @@ const oa = () => {
|
|
|
1512
1512
|
destroy: J(T, !1),
|
|
1513
1513
|
plugin: (A) => u[Ze(A)[0]]
|
|
1514
1514
|
};
|
|
1515
|
-
return ye(l, [L]), la(c, O), Ao(Eo,
|
|
1515
|
+
return ye(l, [L]), la(c, O), Ao(Eo, et, [O, v, u]), aa(V.gn.yt, !n && t.cancel) ? (T(!0), O) : (ye(l, U()), k("initialized", [O]), O.update(!0), O);
|
|
1516
1516
|
}
|
|
1517
1517
|
return i;
|
|
1518
1518
|
};
|
|
1519
|
-
|
|
1520
|
-
const e = Ge(t), s = e ? t : [t], r = s.map((n) => Ao(n,
|
|
1519
|
+
et.plugin = (t) => {
|
|
1520
|
+
const e = Ge(t), s = e ? t : [t], r = s.map((n) => Ao(n, et)[0]);
|
|
1521
1521
|
return da(s), e ? r : r[0];
|
|
1522
1522
|
};
|
|
1523
|
-
|
|
1523
|
+
et.valid = (t) => {
|
|
1524
1524
|
const e = t && t.elements, s = Be(e) && e();
|
|
1525
1525
|
return ts(s) && !!Co(s.target);
|
|
1526
1526
|
};
|
|
1527
|
-
|
|
1527
|
+
et.env = () => {
|
|
1528
1528
|
const { k: t, M: e, R: s, V: r, B: n, F: c, P: i, U: d, N: l, q: u } = Ke();
|
|
1529
1529
|
return re({}, {
|
|
1530
1530
|
scrollbarsSize: t,
|
|
@@ -1541,8 +1541,8 @@ dt.env = () => {
|
|
|
1541
1541
|
};
|
|
1542
1542
|
function Ea() {
|
|
1543
1543
|
let t;
|
|
1544
|
-
const e =
|
|
1545
|
-
function
|
|
1544
|
+
const e = S(null), s = Math.floor(Math.random() * 2 ** 32), r = S(!1), n = S([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = S(), p = S(null), f = S(null), v = S(null);
|
|
1545
|
+
function h() {
|
|
1546
1546
|
t = new ur({
|
|
1547
1547
|
area: e.value,
|
|
1548
1548
|
keyboardDrag: !1,
|
|
@@ -1560,13 +1560,13 @@ function Ea() {
|
|
|
1560
1560
|
!F.buttons && r.value && (r.value = !1);
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
|
-
const _ = () =>
|
|
1563
|
+
const _ = () => ht(() => {
|
|
1564
1564
|
t.addSelection(
|
|
1565
1565
|
t.getSelectables()
|
|
1566
1566
|
), x();
|
|
1567
1567
|
}), x = () => {
|
|
1568
1568
|
n.value = t.getSelection().map((F) => JSON.parse(F.dataset.item)), u.value(n.value);
|
|
1569
|
-
}, b = () =>
|
|
1569
|
+
}, b = () => ht(() => {
|
|
1570
1570
|
const F = c().map((D) => D.path);
|
|
1571
1571
|
l(), t.setSettings({
|
|
1572
1572
|
selectables: document.getElementsByClassName("vf-item-" + s)
|
|
@@ -1578,11 +1578,11 @@ function Ea() {
|
|
|
1578
1578
|
n.value = D.map((T) => JSON.parse(T.dataset.item)), F(D.map((T) => JSON.parse(T.dataset.item)));
|
|
1579
1579
|
});
|
|
1580
1580
|
}, k = () => {
|
|
1581
|
-
|
|
1581
|
+
p.value && (e.value.getBoundingClientRect().height < e.value.scrollHeight ? (f.value.style.height = e.value.scrollHeight + "px", f.value.style.display = "block") : (f.value.style.height = "100%", f.value.style.display = "none"));
|
|
1582
1582
|
}, U = (F) => {
|
|
1583
|
-
if (!
|
|
1583
|
+
if (!p.value)
|
|
1584
1584
|
return;
|
|
1585
|
-
const { scrollOffsetElement: D } =
|
|
1585
|
+
const { scrollOffsetElement: D } = p.value.elements();
|
|
1586
1586
|
D.scrollTo(
|
|
1587
1587
|
{
|
|
1588
1588
|
top: e.value.scrollTop,
|
|
@@ -1591,19 +1591,19 @@ function Ea() {
|
|
|
1591
1591
|
);
|
|
1592
1592
|
};
|
|
1593
1593
|
return Ce(() => {
|
|
1594
|
-
|
|
1594
|
+
et(v.value, {
|
|
1595
1595
|
scrollbars: {
|
|
1596
1596
|
theme: "vf-theme-dark dark:vf-theme-light"
|
|
1597
1597
|
},
|
|
1598
1598
|
plugins: {
|
|
1599
|
-
OverlayScrollbars:
|
|
1599
|
+
OverlayScrollbars: et
|
|
1600
1600
|
// ScrollbarsHidingPlugin,
|
|
1601
1601
|
// SizeObserverPlugin,
|
|
1602
1602
|
// ClickScrollPlugin
|
|
1603
1603
|
}
|
|
1604
1604
|
}, {
|
|
1605
1605
|
initialized: (F) => {
|
|
1606
|
-
|
|
1606
|
+
p.value = F;
|
|
1607
1607
|
},
|
|
1608
1608
|
scroll: (F, D) => {
|
|
1609
1609
|
const { scrollOffsetElement: V } = F.elements();
|
|
@@ -1612,7 +1612,7 @@ function Ea() {
|
|
|
1612
1612
|
left: 0
|
|
1613
1613
|
});
|
|
1614
1614
|
}
|
|
1615
|
-
}),
|
|
1615
|
+
}), h(), k(), new ResizeObserver(k).observe(e.value), e.value.addEventListener("scroll", U), t.subscribe("DS:scroll", ({ isDragging: F }) => F || U());
|
|
1616
1616
|
}), Gs(() => {
|
|
1617
1617
|
t && t.stop();
|
|
1618
1618
|
}), Bn(() => {
|
|
@@ -1633,8 +1633,8 @@ function Ea() {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
1635
|
function Ta(t, e) {
|
|
1636
|
-
const s =
|
|
1637
|
-
let u = !1,
|
|
1636
|
+
const s = S(t), r = S(e), n = S([]), c = S([]), i = S([]), d = S(!1), l = S(5);
|
|
1637
|
+
let u = !1, p = !1;
|
|
1638
1638
|
const f = St({
|
|
1639
1639
|
adapter: s,
|
|
1640
1640
|
storages: [],
|
|
@@ -1654,7 +1654,7 @@ function Ta(t, e) {
|
|
|
1654
1654
|
const [D, V] = _(U, l.value);
|
|
1655
1655
|
i.value = V, n.value = D;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function h(k) {
|
|
1658
1658
|
l.value = k, v();
|
|
1659
1659
|
}
|
|
1660
1660
|
function _(k, U) {
|
|
@@ -1664,9 +1664,9 @@ function Ta(t, e) {
|
|
|
1664
1664
|
d.value = k ?? !d.value;
|
|
1665
1665
|
}
|
|
1666
1666
|
function b() {
|
|
1667
|
-
return n.value && n.value.length && !
|
|
1667
|
+
return n.value && n.value.length && !p;
|
|
1668
1668
|
}
|
|
1669
|
-
const M =
|
|
1669
|
+
const M = ct(() => {
|
|
1670
1670
|
var k;
|
|
1671
1671
|
return ((k = n.value[n.value.length - 2]) == null ? void 0 : k.path) ?? s.value + "://";
|
|
1672
1672
|
});
|
|
@@ -1675,11 +1675,11 @@ function Ta(t, e) {
|
|
|
1675
1675
|
adapter: s,
|
|
1676
1676
|
path: r,
|
|
1677
1677
|
loading: u,
|
|
1678
|
-
searchMode:
|
|
1678
|
+
searchMode: p,
|
|
1679
1679
|
data: f,
|
|
1680
1680
|
breadcrumbs: n,
|
|
1681
1681
|
breadcrumbItems: c,
|
|
1682
|
-
limitBreadcrumbItems:
|
|
1682
|
+
limitBreadcrumbItems: h,
|
|
1683
1683
|
hiddenBreadcrumbs: i,
|
|
1684
1684
|
showHiddenBreadcrumbs: d,
|
|
1685
1685
|
toggleHiddenBreadcrumbs: x,
|
|
@@ -1688,7 +1688,7 @@ function Ta(t, e) {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
}
|
|
1690
1690
|
const Aa = (t, e) => {
|
|
1691
|
-
const s = _r(t.id), r = dr(), n = s.getStore("metricUnits", !1), c = $r(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : xr,
|
|
1691
|
+
const s = _r(t.id), r = dr(), n = s.getStore("metricUnits", !1), c = $r(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : xr, p = s.getStore("persist-path", t.persist), f = p ? s.getStore("path", t.path) : t.path;
|
|
1692
1692
|
return St({
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Core properties
|
|
@@ -1708,7 +1708,7 @@ const Aa = (t, e) => {
|
|
|
1708
1708
|
// modal state
|
|
1709
1709
|
modal: Sr(),
|
|
1710
1710
|
// dragSelect object, it is responsible for selecting items
|
|
1711
|
-
dragSelect:
|
|
1711
|
+
dragSelect: ct(() => Ea()),
|
|
1712
1712
|
// http object
|
|
1713
1713
|
requester: gr(t.request),
|
|
1714
1714
|
// active features
|
|
@@ -1739,7 +1739,7 @@ const Aa = (t, e) => {
|
|
|
1739
1739
|
// show large icons in list view
|
|
1740
1740
|
compactListView: s.getStore("compact-list-view", !0),
|
|
1741
1741
|
// persist state
|
|
1742
|
-
persist:
|
|
1742
|
+
persist: p,
|
|
1743
1743
|
// show thumbnails
|
|
1744
1744
|
showThumbnails: s.getStore("show-thumbnails", t.showThumbnails),
|
|
1745
1745
|
// file system
|
|
@@ -1748,10 +1748,10 @@ const Aa = (t, e) => {
|
|
|
1748
1748
|
}, Ma = /* @__PURE__ */ a("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Da = { class: "fixed z-10 inset-0 overflow-hidden" }, Va = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, La = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, We = {
|
|
1749
1749
|
__name: "ModalLayout",
|
|
1750
1750
|
setup(t) {
|
|
1751
|
-
const e =
|
|
1751
|
+
const e = S(null), s = ae("ServiceContainer");
|
|
1752
1752
|
return Ce(() => {
|
|
1753
1753
|
const r = document.querySelector(".v-f-modal input");
|
|
1754
|
-
r && r.focus(),
|
|
1754
|
+
r && r.focus(), ht(() => {
|
|
1755
1755
|
if (document.querySelector(".v-f-modal input") && window.innerWidth < 768) {
|
|
1756
1756
|
const n = e.value.getBoundingClientRect().bottom + 16;
|
|
1757
1757
|
window.scrollTo({
|
|
@@ -1773,7 +1773,7 @@ const Aa = (t, e) => {
|
|
|
1773
1773
|
a("div", Da, [
|
|
1774
1774
|
a("div", {
|
|
1775
1775
|
class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
|
|
1776
|
-
onMousedown: n[0] || (n[0] =
|
|
1776
|
+
onMousedown: n[0] || (n[0] = at((c) => o(s).modal.close(), ["self"]))
|
|
1777
1777
|
}, [
|
|
1778
1778
|
a("div", {
|
|
1779
1779
|
ref_key: "modalBody",
|
|
@@ -1801,7 +1801,7 @@ const Aa = (t, e) => {
|
|
|
1801
1801
|
on: { type: String, required: !0 }
|
|
1802
1802
|
},
|
|
1803
1803
|
setup(t, { emit: e, slots: s }) {
|
|
1804
|
-
const r = ae("ServiceContainer"), n =
|
|
1804
|
+
const r = ae("ServiceContainer"), n = S(!1), { t: c } = r.i18n;
|
|
1805
1805
|
let i = null;
|
|
1806
1806
|
const d = () => {
|
|
1807
1807
|
clearTimeout(i), n.value = !0, i = setTimeout(() => {
|
|
@@ -1850,7 +1850,7 @@ function Pa(t, e) {
|
|
|
1850
1850
|
const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, ja = { class: "flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, Ga = {
|
|
1851
1851
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
1852
1852
|
id: "modal-title"
|
|
1853
|
-
},
|
|
1853
|
+
}, tt = {
|
|
1854
1854
|
__name: "ModalHeader",
|
|
1855
1855
|
props: {
|
|
1856
1856
|
title: {
|
|
@@ -1893,7 +1893,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
1893
1893
|
}, cl = { class: "flex relative gap-x-3" }, dl = { class: "h-6 items-center" }, ul = { class: "flex-1 block text-sm" }, fl = {
|
|
1894
1894
|
for: "large_icons",
|
|
1895
1895
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400"
|
|
1896
|
-
}, ml = { class: "flex relative gap-x-3" },
|
|
1896
|
+
}, ml = { class: "flex relative gap-x-3" }, hl = { class: "h-6 items-center" }, pl = { class: "flex-1 block text-sm" }, vl = {
|
|
1897
1897
|
for: "persist_path",
|
|
1898
1898
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400"
|
|
1899
1899
|
}, gl = { class: "flex relative gap-x-3" }, _l = { class: "h-6 items-center" }, yl = { class: "flex-1 block text-sm" }, bl = {
|
|
@@ -1944,18 +1944,18 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
1944
1944
|
SETTINGS: "settings",
|
|
1945
1945
|
SHORTCUTS: "shortcuts",
|
|
1946
1946
|
RESET: "reset"
|
|
1947
|
-
}, l =
|
|
1947
|
+
}, l = ct(() => [
|
|
1948
1948
|
{ name: n("About"), key: d.ABOUT },
|
|
1949
1949
|
{ name: n("Settings"), key: d.SETTINGS },
|
|
1950
1950
|
{ name: n("Shortcuts"), key: d.SHORTCUTS },
|
|
1951
1951
|
{ name: n("Reset"), key: d.RESET }
|
|
1952
|
-
]), u =
|
|
1952
|
+
]), u = S("about"), p = async () => {
|
|
1953
1953
|
r(), location.reload();
|
|
1954
1954
|
}, f = (F) => {
|
|
1955
1955
|
e.theme.set(F), e.emitter.emit("vf-theme-saved");
|
|
1956
1956
|
}, v = () => {
|
|
1957
1957
|
e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? qn : zn, s("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
|
|
1958
|
-
},
|
|
1958
|
+
}, h = () => {
|
|
1959
1959
|
e.compactListView = !e.compactListView, s("compactListView", e.compactListView), e.emitter.emit("vf-compact-view-saved");
|
|
1960
1960
|
}, _ = () => {
|
|
1961
1961
|
e.showThumbnails = !e.showThumbnails, s("show-thumbnails", e.showThumbnails), e.emitter.emit("vf-show-thumbnails-saved");
|
|
@@ -1975,7 +1975,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
1975
1975
|
zhCN: "Simplified Chinese (简体中文)",
|
|
1976
1976
|
zhTW: "Traditional Chinese (繁體中文)"
|
|
1977
1977
|
}).filter(([F]) => Object.keys(b).includes(F))
|
|
1978
|
-
), U =
|
|
1978
|
+
), U = ct(() => ({
|
|
1979
1979
|
system: n("System"),
|
|
1980
1980
|
light: n("Light"),
|
|
1981
1981
|
dark: n("Dark")
|
|
@@ -1990,7 +1990,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
1990
1990
|
]),
|
|
1991
1991
|
default: se(() => [
|
|
1992
1992
|
a("div", Ka, [
|
|
1993
|
-
q(
|
|
1993
|
+
q(tt, {
|
|
1994
1994
|
icon: o(za),
|
|
1995
1995
|
title: "Vuefinder " + o(e).version
|
|
1996
1996
|
}, null, 8, ["icon", "title"]),
|
|
@@ -1998,7 +1998,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
1998
1998
|
a("div", null, [
|
|
1999
1999
|
a("div", null, [
|
|
2000
2000
|
a("nav", Ya, [
|
|
2001
|
-
(m(!0), g(
|
|
2001
|
+
(m(!0), g(he, null, $e(l.value, (V) => (m(), g("button", {
|
|
2002
2002
|
key: V.name,
|
|
2003
2003
|
onClick: (L) => u.value = V.key,
|
|
2004
2004
|
class: de([V.key === u.value ? "bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300 border-sky-500" : "text-gray-500 dark:text-gray-500 hover:text-gray-700 border-gray-300 dark:border-gray-600", "px-3 py-2 border-b font-medium text-sm"]),
|
|
@@ -2013,7 +2013,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2013
2013
|
a("a", el, y(o(n)("Follow on GitHub")), 1)
|
|
2014
2014
|
])) : z("", !0),
|
|
2015
2015
|
u.value === d.SETTINGS ? (m(), g("div", tl, [
|
|
2016
|
-
a("div", sl, y(o(n)("Customize your experience with the following settings
|
|
2016
|
+
a("div", sl, y(o(n)("Customize your experience with the following settings")), 1),
|
|
2017
2017
|
a("div", nl, [
|
|
2018
2018
|
a("fieldset", null, [
|
|
2019
2019
|
a("div", ol, [
|
|
@@ -2052,7 +2052,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2052
2052
|
name: "large_icons",
|
|
2053
2053
|
type: "checkbox",
|
|
2054
2054
|
"onUpdate:modelValue": D[1] || (D[1] = (V) => o(e).compactListView = V),
|
|
2055
|
-
onClick:
|
|
2055
|
+
onClick: h,
|
|
2056
2056
|
class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
|
|
2057
2057
|
}, null, 512), [
|
|
2058
2058
|
[jt, o(e).compactListView]
|
|
@@ -2074,7 +2074,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2074
2074
|
])
|
|
2075
2075
|
]),
|
|
2076
2076
|
a("div", ml, [
|
|
2077
|
-
a("div",
|
|
2077
|
+
a("div", hl, [
|
|
2078
2078
|
ve(a("input", {
|
|
2079
2079
|
id: "persist_path",
|
|
2080
2080
|
name: "persist_path",
|
|
@@ -2086,7 +2086,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2086
2086
|
[jt, o(e).persist]
|
|
2087
2087
|
])
|
|
2088
2088
|
]),
|
|
2089
|
-
a("div",
|
|
2089
|
+
a("div", pl, [
|
|
2090
2090
|
a("label", vl, [
|
|
2091
2091
|
Q(y(o(n)("Persist path on reload")) + " ", 1),
|
|
2092
2092
|
q(_t, {
|
|
@@ -2143,7 +2143,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2143
2143
|
a("optgroup", {
|
|
2144
2144
|
label: o(n)("Theme")
|
|
2145
2145
|
}, [
|
|
2146
|
-
(m(!0), g(
|
|
2146
|
+
(m(!0), g(he, null, $e(U.value, (V, L) => (m(), g("option", { value: L }, y(V), 9, Cl))), 256))
|
|
2147
2147
|
], 8, Sl)
|
|
2148
2148
|
], 544), [
|
|
2149
2149
|
[Cs, o(e).theme.value]
|
|
@@ -2159,7 +2159,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2159
2159
|
})
|
|
2160
2160
|
])
|
|
2161
2161
|
]),
|
|
2162
|
-
o(e).features.includes(o(
|
|
2162
|
+
o(e).features.includes(o(pe).LANGUAGE) && Object.keys(o(k)).length > 1 ? (m(), g("div", El, [
|
|
2163
2163
|
a("div", Tl, [
|
|
2164
2164
|
a("label", Al, y(o(n)("Language")), 1)
|
|
2165
2165
|
]),
|
|
@@ -2173,7 +2173,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2173
2173
|
a("optgroup", {
|
|
2174
2174
|
label: o(n)("Language")
|
|
2175
2175
|
}, [
|
|
2176
|
-
(m(!0), g(
|
|
2176
|
+
(m(!0), g(he, null, $e(o(k), (V, L) => (m(), g("option", { value: L }, y(V), 9, Vl))), 256))
|
|
2177
2177
|
], 8, Dl)
|
|
2178
2178
|
], 544), [
|
|
2179
2179
|
[Cs, o(i)]
|
|
@@ -2236,7 +2236,7 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2236
2236
|
u.value === d.RESET ? (m(), g("div", Zl, [
|
|
2237
2237
|
a("div", ei, y(o(n)("Reset all settings to default")), 1),
|
|
2238
2238
|
a("button", {
|
|
2239
|
-
onClick:
|
|
2239
|
+
onClick: p,
|
|
2240
2240
|
type: "button",
|
|
2241
2241
|
class: "vf-btn vf-btn-secondary"
|
|
2242
2242
|
}, y(o(n)("Reset Settings")), 1)
|
|
@@ -2273,19 +2273,19 @@ const za = { render: Pa }, qa = { class: "flex items-center my-1 space-x-2" }, j
|
|
|
2273
2273
|
emits: ["hidden"],
|
|
2274
2274
|
setup(t, { emit: e }) {
|
|
2275
2275
|
var u;
|
|
2276
|
-
const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c =
|
|
2276
|
+
const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = S(!1), i = S(null), d = S((u = i.value) == null ? void 0 : u.strMessage);
|
|
2277
2277
|
Ne(d, () => c.value = !1);
|
|
2278
2278
|
const l = () => {
|
|
2279
2279
|
s("hidden"), c.value = !0;
|
|
2280
2280
|
};
|
|
2281
|
-
return (
|
|
2281
|
+
return (p, f) => (m(), g("div", null, [
|
|
2282
2282
|
c.value ? z("", !0) : (m(), g("div", {
|
|
2283
2283
|
key: 0,
|
|
2284
2284
|
ref_key: "strMessage",
|
|
2285
2285
|
ref: i,
|
|
2286
2286
|
class: de(["flex mt-2 p-1 px-2 rounded text-sm break-all dark:opacity-75", t.error ? "bg-red-100 text-red-600 " : "bg-emerald-100 text-emerald-600"])
|
|
2287
2287
|
}, [
|
|
2288
|
-
Lt(
|
|
2288
|
+
Lt(p.$slots, "default"),
|
|
2289
2289
|
a("div", {
|
|
2290
2290
|
class: "ml-auto cursor-pointer",
|
|
2291
2291
|
onClick: l,
|
|
@@ -2317,12 +2317,12 @@ const Lo = { render: li }, ii = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2317
2317
|
viewBox: "0 0 24 24",
|
|
2318
2318
|
stroke: "currentColor",
|
|
2319
2319
|
"stroke-width": "1"
|
|
2320
|
-
},
|
|
2320
|
+
}, hi = /* @__PURE__ */ a("path", {
|
|
2321
2321
|
"stroke-linecap": "round",
|
|
2322
2322
|
"stroke-linejoin": "round",
|
|
2323
2323
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2324
|
-
}, null, -1),
|
|
2325
|
-
|
|
2324
|
+
}, null, -1), pi = [
|
|
2325
|
+
hi
|
|
2326
2326
|
], vi = {
|
|
2327
2327
|
key: 1,
|
|
2328
2328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2340,7 +2340,7 @@ const Lo = { render: li }, ii = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2340
2340
|
], yi = { class: "ml-1.5" }, bi = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, an = {
|
|
2341
2341
|
__name: "ModalDelete",
|
|
2342
2342
|
setup(t) {
|
|
2343
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
2343
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(e.modal.data.items), n = S(""), c = () => {
|
|
2344
2344
|
r.value.length && e.emitter.emit("vf-fetch", {
|
|
2345
2345
|
params: {
|
|
2346
2346
|
q: "delete",
|
|
@@ -2375,7 +2375,7 @@ const Lo = { render: li }, ii = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2375
2375
|
]),
|
|
2376
2376
|
default: se(() => [
|
|
2377
2377
|
a("div", null, [
|
|
2378
|
-
q(
|
|
2378
|
+
q(tt, {
|
|
2379
2379
|
icon: o(Lo),
|
|
2380
2380
|
title: o(s)("Delete files")
|
|
2381
2381
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2383,8 +2383,8 @@ const Lo = { render: li }, ii = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2383
2383
|
a("div", ci, [
|
|
2384
2384
|
a("p", di, y(o(s)("Are you sure you want to delete these files?")), 1),
|
|
2385
2385
|
a("div", ui, [
|
|
2386
|
-
(m(!0), g(
|
|
2387
|
-
l.type === "dir" ? (m(), g("svg", mi,
|
|
2386
|
+
(m(!0), g(he, null, $e(r.value, (l) => (m(), g("p", fi, [
|
|
2387
|
+
l.type === "dir" ? (m(), g("svg", mi, pi)) : (m(), g("svg", vi, _i)),
|
|
2388
2388
|
a("span", yi, y(l.basename), 1)
|
|
2389
2389
|
]))), 256))
|
|
2390
2390
|
]),
|
|
@@ -2448,7 +2448,7 @@ const Oo = { render: $i }, Si = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2448
2448
|
], Oi = { class: "ml-1.5" }, ln = {
|
|
2449
2449
|
__name: "ModalRename",
|
|
2450
2450
|
setup(t) {
|
|
2451
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
2451
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(e.modal.data.items[0]), n = S(e.modal.data.items[0].basename), c = S(""), i = () => {
|
|
2452
2452
|
n.value != "" && e.emitter.emit("vf-fetch", {
|
|
2453
2453
|
params: {
|
|
2454
2454
|
q: "rename",
|
|
@@ -2483,7 +2483,7 @@ const Oo = { render: $i }, Si = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2483
2483
|
]),
|
|
2484
2484
|
default: se(() => [
|
|
2485
2485
|
a("div", null, [
|
|
2486
|
-
q(
|
|
2486
|
+
q(tt, {
|
|
2487
2487
|
icon: o(Oo),
|
|
2488
2488
|
title: o(s)("Rename")
|
|
2489
2489
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2532,7 +2532,7 @@ const Oo = { render: $i }, Si = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2532
2532
|
};
|
|
2533
2533
|
function Ri(t) {
|
|
2534
2534
|
const e = (s) => {
|
|
2535
|
-
s.code === Xe.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (s.code === Xe.F2 && t.features.includes(
|
|
2535
|
+
s.code === Xe.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (s.code === Xe.F2 && t.features.includes(pe.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(ln, { items: t.dragSelect.getSelected() })), s.code === Xe.F5 && t.emitter.emit("vf-fetch", { params: { q: "index", adapter: t.fs.adapter, path: t.fs.data.dirname } }), s.code === Xe.DELETE && (!t.dragSelect.getCount() || t.modal.open(an, { items: t.dragSelect.getSelected() })), s.metaKey && s.code === Xe.BACKSLASH && t.modal.open(Vo), s.metaKey && s.code === Xe.KEY_F && t.features.includes(pe.SEARCH) && (t.fs.searchMode = !0, s.preventDefault()), s.metaKey && s.code === Xe.KEY_E && (t.showTreeView = !t.showTreeView, t.storage.setStore("show-tree-view", t.showTreeView)), s.metaKey && s.code === Xe.ENTER && (t.fullScreen = !t.fullScreen, t.root.focus()), s.metaKey && s.code === Xe.KEY_A && (t.dragSelect.selectAll(), s.preventDefault())));
|
|
2536
2536
|
};
|
|
2537
2537
|
Ce(() => {
|
|
2538
2538
|
t.root.addEventListener("keydown", e);
|
|
@@ -2557,7 +2557,7 @@ const Ro = { render: Ii }, Ni = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2557
2557
|
setup(t) {
|
|
2558
2558
|
const e = ae("ServiceContainer");
|
|
2559
2559
|
e.storage;
|
|
2560
|
-
const { t: s } = e.i18n, r =
|
|
2560
|
+
const { t: s } = e.i18n, r = S(""), n = S(""), c = () => {
|
|
2561
2561
|
r.value !== "" && e.emitter.emit("vf-fetch", {
|
|
2562
2562
|
params: {
|
|
2563
2563
|
q: "newfolder",
|
|
@@ -2591,7 +2591,7 @@ const Ro = { render: Ii }, Ni = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2591
2591
|
]),
|
|
2592
2592
|
default: se(() => [
|
|
2593
2593
|
a("div", null, [
|
|
2594
|
-
q(
|
|
2594
|
+
q(tt, {
|
|
2595
2595
|
icon: o(Ro),
|
|
2596
2596
|
title: o(s)("New Folder")
|
|
2597
2597
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2641,7 +2641,7 @@ const Ho = { render: Ki }, Wi = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2641
2641
|
setup(t) {
|
|
2642
2642
|
const e = ae("ServiceContainer");
|
|
2643
2643
|
e.storage;
|
|
2644
|
-
const { t: s } = e.i18n, r =
|
|
2644
|
+
const { t: s } = e.i18n, r = S(""), n = S(""), c = () => {
|
|
2645
2645
|
r.value !== "" && e.emitter.emit("vf-fetch", {
|
|
2646
2646
|
params: {
|
|
2647
2647
|
q: "newfile",
|
|
@@ -2675,7 +2675,7 @@ const Ho = { render: Ki }, Wi = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2675
2675
|
]),
|
|
2676
2676
|
default: se(() => [
|
|
2677
2677
|
a("div", null, [
|
|
2678
|
-
q(
|
|
2678
|
+
q(tt, {
|
|
2679
2679
|
icon: o(Ho),
|
|
2680
2680
|
title: o(s)("New File")
|
|
2681
2681
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2731,7 +2731,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2731
2731
|
}, ac = {
|
|
2732
2732
|
key: 1,
|
|
2733
2733
|
class: "pointer-events-none"
|
|
2734
|
-
}, lc = ["disabled"], ic = ["disabled"], cc = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, dc = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, uc = ["textContent"], fc = { class: "ml-1 w-full h-fit" }, mc = { class: "text-left hidden md:block" },
|
|
2734
|
+
}, lc = ["disabled"], ic = ["disabled"], cc = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, dc = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, uc = ["textContent"], fc = { class: "ml-1 w-full h-fit" }, mc = { class: "text-left hidden md:block" }, hc = { class: "text-left md:hidden" }, pc = {
|
|
2735
2735
|
key: 0,
|
|
2736
2736
|
class: "ml-auto"
|
|
2737
2737
|
}, vc = ["title", "disabled", "onClick"], gc = /* @__PURE__ */ a("svg", {
|
|
@@ -2761,7 +2761,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2761
2761
|
UPLOADING: 2,
|
|
2762
2762
|
ERROR: 3,
|
|
2763
2763
|
DONE: 10
|
|
2764
|
-
}, c =
|
|
2764
|
+
}, c = S({ QUEUE_ENTRY_STATUS: n }), i = S(null), d = S(null), l = S(null), u = S(null), p = S(null), f = S(null), v = S([]), h = S(""), _ = S(!1), x = S(!1);
|
|
2765
2765
|
let b;
|
|
2766
2766
|
function M(R) {
|
|
2767
2767
|
return v.value.findIndex(($) => $.id === R);
|
|
@@ -2805,10 +2805,10 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2805
2805
|
function V() {
|
|
2806
2806
|
if (!_.value) {
|
|
2807
2807
|
if (!v.value.filter((R) => R.status !== n.DONE).length) {
|
|
2808
|
-
|
|
2808
|
+
h.value = s("Please select file to upload first.");
|
|
2809
2809
|
return;
|
|
2810
2810
|
}
|
|
2811
|
-
|
|
2811
|
+
h.value = "", b.retryAll(), b.upload();
|
|
2812
2812
|
}
|
|
2813
2813
|
}
|
|
2814
2814
|
function L() {
|
|
@@ -2836,7 +2836,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2836
2836
|
function A() {
|
|
2837
2837
|
e.modal.close();
|
|
2838
2838
|
}
|
|
2839
|
-
function
|
|
2839
|
+
function C() {
|
|
2840
2840
|
return e.requester.transformRequestParams({
|
|
2841
2841
|
url: "",
|
|
2842
2842
|
method: "post",
|
|
@@ -2855,7 +2855,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2855
2855
|
onBeforeFileAdded(w, I) {
|
|
2856
2856
|
if (I[w.id] != null) {
|
|
2857
2857
|
const ne = M(w.id);
|
|
2858
|
-
v.value[ne].status === n.PENDING && (
|
|
2858
|
+
v.value[ne].status === n.PENDING && (h.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
|
|
2859
2859
|
}
|
|
2860
2860
|
return v.value.push({
|
|
2861
2861
|
id: w.id,
|
|
@@ -2882,9 +2882,9 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2882
2882
|
}
|
|
2883
2883
|
}), b.on("restriction-failed", (w, I) => {
|
|
2884
2884
|
const H = v.value[M(w.id)];
|
|
2885
|
-
T(H),
|
|
2885
|
+
T(H), h.value = I.message;
|
|
2886
2886
|
}), b.on("upload", () => {
|
|
2887
|
-
const w =
|
|
2887
|
+
const w = C();
|
|
2888
2888
|
b.setMeta({ ...w.body });
|
|
2889
2889
|
const I = b.getPlugin("XHRUpload");
|
|
2890
2890
|
I.opts.method = w.method, I.opts.endpoint = w.url + "?" + new URLSearchParams(w.params), I.opts.headers = w.headers, delete w.headers["Content-Type"], _.value = !0, v.value.forEach((H) => {
|
|
@@ -2900,7 +2900,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2900
2900
|
const H = v.value[M(w.id)];
|
|
2901
2901
|
H.percent = null, H.status = n.ERROR, I.isNetworkError ? H.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : H.statusName = I ? I.message : s("Unknown Error");
|
|
2902
2902
|
}), b.on("error", (w) => {
|
|
2903
|
-
|
|
2903
|
+
h.value = w.message, _.value = !1, e.emitter.emit("vf-fetch", {
|
|
2904
2904
|
params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
|
|
2905
2905
|
noCloseModal: !0
|
|
2906
2906
|
});
|
|
@@ -2911,7 +2911,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2911
2911
|
});
|
|
2912
2912
|
}), u.value.addEventListener("click", () => {
|
|
2913
2913
|
d.value.click();
|
|
2914
|
-
}),
|
|
2914
|
+
}), p.value.addEventListener("click", () => {
|
|
2915
2915
|
l.value.click();
|
|
2916
2916
|
}), f.value.addEventListener("dragover", (w) => {
|
|
2917
2917
|
w.preventDefault(), x.value = !0;
|
|
@@ -2950,23 +2950,23 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2950
2950
|
type: "button",
|
|
2951
2951
|
class: de(["vf-btn vf-btn-primary", _.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),
|
|
2952
2952
|
disabled: _.value,
|
|
2953
|
-
onClick:
|
|
2953
|
+
onClick: at(V, ["prevent"])
|
|
2954
2954
|
}, y(o(s)("Upload")), 11, bc),
|
|
2955
2955
|
_.value ? (m(), g("button", {
|
|
2956
2956
|
key: 0,
|
|
2957
2957
|
type: "button",
|
|
2958
2958
|
class: "vf-btn vf-btn-secondary",
|
|
2959
|
-
onClick:
|
|
2959
|
+
onClick: at(L, ["prevent"])
|
|
2960
2960
|
}, y(o(s)("Cancel")), 1)) : (m(), g("button", {
|
|
2961
2961
|
key: 1,
|
|
2962
2962
|
type: "button",
|
|
2963
2963
|
class: "vf-btn vf-btn-secondary",
|
|
2964
|
-
onClick:
|
|
2964
|
+
onClick: at(A, ["prevent"])
|
|
2965
2965
|
}, y(o(s)("Close")), 1))
|
|
2966
2966
|
]),
|
|
2967
2967
|
default: se(() => [
|
|
2968
2968
|
a("div", null, [
|
|
2969
|
-
q(
|
|
2969
|
+
q(tt, {
|
|
2970
2970
|
icon: o(Bo),
|
|
2971
2971
|
title: o(s)("Upload Files")
|
|
2972
2972
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2993,7 +2993,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
2993
2993
|
}, y(o(s)("Select Files")), 513),
|
|
2994
2994
|
a("button", {
|
|
2995
2995
|
ref_key: "pickFolders",
|
|
2996
|
-
ref:
|
|
2996
|
+
ref: p,
|
|
2997
2997
|
type: "button",
|
|
2998
2998
|
class: "vf-btn vf-btn-secondary"
|
|
2999
2999
|
}, y(o(s)("Select Folders")), 513),
|
|
@@ -3011,7 +3011,7 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3011
3011
|
}, y(o(s)("Clear only successful")), 9, ic)
|
|
3012
3012
|
], 512),
|
|
3013
3013
|
a("div", cc, [
|
|
3014
|
-
(m(!0), g(
|
|
3014
|
+
(m(!0), g(he, null, $e(v.value, (w) => (m(), g("div", {
|
|
3015
3015
|
class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
|
|
3016
3016
|
key: w.id
|
|
3017
3017
|
}, [
|
|
@@ -3023,12 +3023,12 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3023
3023
|
]),
|
|
3024
3024
|
a("div", fc, [
|
|
3025
3025
|
a("div", mc, y(o(qs)(w.name, 40)) + " (" + y(w.size) + ")", 1),
|
|
3026
|
-
a("div",
|
|
3026
|
+
a("div", hc, y(o(qs)(w.name, 16)) + " (" + y(w.size) + ")", 1),
|
|
3027
3027
|
a("div", {
|
|
3028
3028
|
class: de(["flex break-all text-left", U(w)])
|
|
3029
3029
|
}, [
|
|
3030
3030
|
Q(y(w.statusName) + " ", 1),
|
|
3031
|
-
w.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (m(), g("b",
|
|
3031
|
+
w.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (m(), g("b", pc, y(w.percent), 1)) : z("", !0)
|
|
3032
3032
|
], 2)
|
|
3033
3033
|
]),
|
|
3034
3034
|
a("button", {
|
|
@@ -3041,13 +3041,13 @@ const Bo = { render: sc }, nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3041
3041
|
]))), 128)),
|
|
3042
3042
|
v.value.length ? z("", !0) : (m(), g("div", yc, y(o(s)("No files selected!")), 1))
|
|
3043
3043
|
]),
|
|
3044
|
-
|
|
3044
|
+
h.value.length ? (m(), W(Ye, {
|
|
3045
3045
|
key: 0,
|
|
3046
|
-
onHidden: $[2] || ($[2] = (w) =>
|
|
3046
|
+
onHidden: $[2] || ($[2] = (w) => h.value = ""),
|
|
3047
3047
|
error: ""
|
|
3048
3048
|
}, {
|
|
3049
3049
|
default: se(() => [
|
|
3050
|
-
Q(y(
|
|
3050
|
+
Q(y(h.value), 1)
|
|
3051
3051
|
]),
|
|
3052
3052
|
_: 1
|
|
3053
3053
|
})) : z("", !0)
|
|
@@ -3116,7 +3116,7 @@ const Io = { render: Sc }, Cc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3116
3116
|
], Rc = { class: "ml-1.5" }, Fc = { class: "my-1 text-sm text-gray-500" }, No = {
|
|
3117
3117
|
__name: "ModalUnarchive",
|
|
3118
3118
|
setup(t) {
|
|
3119
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
3119
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(e.modal.data.items[0]), n = S(""), c = S([]), i = () => {
|
|
3120
3120
|
e.emitter.emit("vf-fetch", {
|
|
3121
3121
|
params: {
|
|
3122
3122
|
q: "unarchive",
|
|
@@ -3150,13 +3150,13 @@ const Io = { render: Sc }, Cc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3150
3150
|
]),
|
|
3151
3151
|
default: se(() => [
|
|
3152
3152
|
a("div", null, [
|
|
3153
|
-
q(
|
|
3153
|
+
q(tt, {
|
|
3154
3154
|
icon: o(Io),
|
|
3155
3155
|
title: o(s)("Unarchive")
|
|
3156
3156
|
}, null, 8, ["icon", "title"]),
|
|
3157
3157
|
a("div", Cc, [
|
|
3158
3158
|
a("div", Ec, [
|
|
3159
|
-
(m(!0), g(
|
|
3159
|
+
(m(!0), g(he, null, $e(c.value, (u) => (m(), g("p", Tc, [
|
|
3160
3160
|
u.type === "dir" ? (m(), g("svg", Ac, Dc)) : (m(), g("svg", Vc, Oc)),
|
|
3161
3161
|
a("span", Rc, y(u.basename), 1)
|
|
3162
3162
|
]))), 256)),
|
|
@@ -3224,7 +3224,7 @@ const Uo = { render: Nc }, Uc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3224
3224
|
], Jc = { class: "ml-1.5" }, Qc = ["placeholder"], Po = {
|
|
3225
3225
|
__name: "ModalArchive",
|
|
3226
3226
|
setup(t) {
|
|
3227
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
3227
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(""), n = S(""), c = S(e.modal.data.items), i = () => {
|
|
3228
3228
|
c.value.length && e.emitter.emit("vf-fetch", {
|
|
3229
3229
|
params: {
|
|
3230
3230
|
q: "archive",
|
|
@@ -3259,14 +3259,14 @@ const Uo = { render: Nc }, Uc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3259
3259
|
]),
|
|
3260
3260
|
default: se(() => [
|
|
3261
3261
|
a("div", null, [
|
|
3262
|
-
q(
|
|
3262
|
+
q(tt, {
|
|
3263
3263
|
icon: o(Uo),
|
|
3264
3264
|
title: o(s)("Archive the files")
|
|
3265
3265
|
}, null, 8, ["icon", "title"]),
|
|
3266
3266
|
a("div", Uc, [
|
|
3267
3267
|
a("div", Pc, [
|
|
3268
3268
|
a("div", zc, [
|
|
3269
|
-
(m(!0), g(
|
|
3269
|
+
(m(!0), g(he, null, $e(c.value, (u) => (m(), g("p", qc, [
|
|
3270
3270
|
u.type === "dir" ? (m(), g("svg", jc, Kc)) : (m(), g("svg", Wc, Xc)),
|
|
3271
3271
|
a("span", Jc, y(u.basename), 1)
|
|
3272
3272
|
]))), 256))
|
|
@@ -3344,17 +3344,17 @@ const id = { render: ld }, cd = {
|
|
|
3344
3344
|
function fd(t, e) {
|
|
3345
3345
|
return m(), g("svg", cd, [...ud]);
|
|
3346
3346
|
}
|
|
3347
|
-
const md = { render: fd },
|
|
3347
|
+
const md = { render: fd }, hd = {
|
|
3348
3348
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3349
3349
|
fill: "none",
|
|
3350
3350
|
"stroke-width": "1.5",
|
|
3351
3351
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto",
|
|
3352
3352
|
viewBox: "0 0 24 24"
|
|
3353
|
-
},
|
|
3354
|
-
|
|
3353
|
+
}, pd = /* @__PURE__ */ a("path", { d: "M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z" }, null, -1), vd = [
|
|
3354
|
+
pd
|
|
3355
3355
|
];
|
|
3356
3356
|
function gd(t, e) {
|
|
3357
|
-
return m(), g("svg",
|
|
3357
|
+
return m(), g("svg", hd, [...vd]);
|
|
3358
3358
|
}
|
|
3359
3359
|
const _d = { render: gd }, yd = {
|
|
3360
3360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3377,7 +3377,7 @@ const kd = { render: wd }, $d = { class: "border-neutral-300 flex justify-betwee
|
|
|
3377
3377
|
}, Od = { class: "pl-2" }, Rd = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, Fd = { class: "flex text-center items-center justify-end" }, Hd = ["title"], Bd = ["title"], Id = {
|
|
3378
3378
|
__name: "Toolbar",
|
|
3379
3379
|
setup(t) {
|
|
3380
|
-
const e = ae("ServiceContainer"), { setStore: s } = e.storage, { t: r } = e.i18n, n = e.dragSelect, c =
|
|
3380
|
+
const e = ae("ServiceContainer"), { setStore: s } = e.storage, { t: r } = e.i18n, n = e.dragSelect, c = S("");
|
|
3381
3381
|
e.emitter.on("vf-search-query", ({ newQuery: l }) => {
|
|
3382
3382
|
c.value = l;
|
|
3383
3383
|
});
|
|
@@ -3398,65 +3398,65 @@ const kd = { render: wd }, $d = { class: "border-neutral-300 flex justify-betwee
|
|
|
3398
3398
|
]),
|
|
3399
3399
|
o(e).fs.loading ? (m(), W(o(cn), { key: 0 })) : z("", !0)
|
|
3400
3400
|
])) : (m(), g("div", Sd, [
|
|
3401
|
-
o(e).features.includes(o(
|
|
3401
|
+
o(e).features.includes(o(pe).NEW_FOLDER) ? (m(), g("div", {
|
|
3402
3402
|
key: 0,
|
|
3403
3403
|
class: "mx-1.5",
|
|
3404
3404
|
title: o(r)("New Folder"),
|
|
3405
|
-
onClick: u[0] || (u[0] = (
|
|
3405
|
+
onClick: u[0] || (u[0] = (p) => o(e).modal.open(Fo, { items: o(n).getSelected() }))
|
|
3406
3406
|
}, [
|
|
3407
3407
|
q(o(Ro))
|
|
3408
3408
|
], 8, Cd)) : z("", !0),
|
|
3409
|
-
o(e).features.includes(o(
|
|
3409
|
+
o(e).features.includes(o(pe).NEW_FILE) ? (m(), g("div", {
|
|
3410
3410
|
key: 1,
|
|
3411
3411
|
class: "mx-1.5",
|
|
3412
3412
|
title: o(r)("New File"),
|
|
3413
|
-
onClick: u[1] || (u[1] = (
|
|
3413
|
+
onClick: u[1] || (u[1] = (p) => o(e).modal.open(Qi, { items: o(n).getSelected() }))
|
|
3414
3414
|
}, [
|
|
3415
3415
|
q(o(Ho))
|
|
3416
3416
|
], 8, Ed)) : z("", !0),
|
|
3417
|
-
o(e).features.includes(o(
|
|
3417
|
+
o(e).features.includes(o(pe).RENAME) ? (m(), g("div", {
|
|
3418
3418
|
key: 2,
|
|
3419
3419
|
class: "mx-1.5",
|
|
3420
3420
|
title: o(r)("Rename"),
|
|
3421
|
-
onClick: u[2] || (u[2] = (
|
|
3421
|
+
onClick: u[2] || (u[2] = (p) => o(n).getCount() !== 1 || o(e).modal.open(ln, { items: o(n).getSelected() }))
|
|
3422
3422
|
}, [
|
|
3423
3423
|
q(o(Oo), {
|
|
3424
3424
|
class: de(o(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3425
3425
|
}, null, 8, ["class"])
|
|
3426
3426
|
], 8, Td)) : z("", !0),
|
|
3427
|
-
o(e).features.includes(o(
|
|
3427
|
+
o(e).features.includes(o(pe).DELETE) ? (m(), g("div", {
|
|
3428
3428
|
key: 3,
|
|
3429
3429
|
class: "mx-1.5",
|
|
3430
3430
|
title: o(r)("Delete"),
|
|
3431
|
-
onClick: u[3] || (u[3] = (
|
|
3431
|
+
onClick: u[3] || (u[3] = (p) => !o(n).getCount() || o(e).modal.open(an, { items: o(n).getSelected() }))
|
|
3432
3432
|
}, [
|
|
3433
3433
|
q(o(Lo), {
|
|
3434
3434
|
class: de(o(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3435
3435
|
}, null, 8, ["class"])
|
|
3436
3436
|
], 8, Ad)) : z("", !0),
|
|
3437
|
-
o(e).features.includes(o(
|
|
3437
|
+
o(e).features.includes(o(pe).UPLOAD) ? (m(), g("div", {
|
|
3438
3438
|
key: 4,
|
|
3439
3439
|
class: "mx-1.5",
|
|
3440
3440
|
title: o(r)("Upload"),
|
|
3441
|
-
onClick: u[4] || (u[4] = (
|
|
3441
|
+
onClick: u[4] || (u[4] = (p) => o(e).modal.open(xc, { items: o(n).getSelected() }))
|
|
3442
3442
|
}, [
|
|
3443
3443
|
q(o(Bo))
|
|
3444
3444
|
], 8, Md)) : z("", !0),
|
|
3445
|
-
o(e).features.includes(o(
|
|
3445
|
+
o(e).features.includes(o(pe).UNARCHIVE) && o(n).getCount() === 1 && o(n).getSelected()[0].mime_type === "application/zip" ? (m(), g("div", {
|
|
3446
3446
|
key: 5,
|
|
3447
3447
|
class: "mx-1.5",
|
|
3448
3448
|
title: o(r)("Unarchive"),
|
|
3449
|
-
onClick: u[5] || (u[5] = (
|
|
3449
|
+
onClick: u[5] || (u[5] = (p) => !o(n).getCount() || o(e).modal.open(No, { items: o(n).getSelected() }))
|
|
3450
3450
|
}, [
|
|
3451
3451
|
q(o(Io), {
|
|
3452
3452
|
class: de(o(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3453
3453
|
}, null, 8, ["class"])
|
|
3454
3454
|
], 8, Dd)) : z("", !0),
|
|
3455
|
-
o(e).features.includes(o(
|
|
3455
|
+
o(e).features.includes(o(pe).ARCHIVE) ? (m(), g("div", {
|
|
3456
3456
|
key: 6,
|
|
3457
3457
|
class: "mx-1.5",
|
|
3458
3458
|
title: o(r)("Archive"),
|
|
3459
|
-
onClick: u[6] || (u[6] = (
|
|
3459
|
+
onClick: u[6] || (u[6] = (p) => !o(n).getCount() || o(e).modal.open(Po, { items: o(n).getSelected() }))
|
|
3460
3460
|
}, [
|
|
3461
3461
|
q(o(Uo), {
|
|
3462
3462
|
class: de(o(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
@@ -3464,7 +3464,7 @@ const kd = { render: wd }, $d = { class: "border-neutral-300 flex justify-betwee
|
|
|
3464
3464
|
], 8, Vd)) : z("", !0)
|
|
3465
3465
|
])),
|
|
3466
3466
|
a("div", Fd, [
|
|
3467
|
-
o(e).features.includes(o(
|
|
3467
|
+
o(e).features.includes(o(pe).FULL_SCREEN) ? (m(), g("div", {
|
|
3468
3468
|
key: 0,
|
|
3469
3469
|
onClick: i,
|
|
3470
3470
|
class: "mx-1.5",
|
|
@@ -3475,7 +3475,7 @@ const kd = { render: wd }, $d = { class: "border-neutral-300 flex justify-betwee
|
|
|
3475
3475
|
a("div", {
|
|
3476
3476
|
class: "mx-1.5",
|
|
3477
3477
|
title: o(r)("Change View"),
|
|
3478
|
-
onClick: u[7] || (u[7] = (
|
|
3478
|
+
onClick: u[7] || (u[7] = (p) => c.value.length || d())
|
|
3479
3479
|
}, [
|
|
3480
3480
|
o(e).view === "grid" ? (m(), W(o(_d), {
|
|
3481
3481
|
key: 0,
|
|
@@ -3497,7 +3497,7 @@ const kd = { render: wd }, $d = { class: "border-neutral-300 flex justify-betwee
|
|
|
3497
3497
|
}, e);
|
|
3498
3498
|
};
|
|
3499
3499
|
}, Fn = (t, e, s) => {
|
|
3500
|
-
const r =
|
|
3500
|
+
const r = S(t);
|
|
3501
3501
|
return or((n, c) => ({
|
|
3502
3502
|
get() {
|
|
3503
3503
|
return n(), r.value;
|
|
@@ -3572,7 +3572,7 @@ const jd = { render: qd }, Gd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3572
3572
|
], -1), au = { class: "ml-1.5 overflow-auto" }, lu = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, js = {
|
|
3573
3573
|
__name: "ModalMove",
|
|
3574
3574
|
setup(t) {
|
|
3575
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
3575
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(e.modal.data.items.from), n = S(""), c = () => {
|
|
3576
3576
|
r.value.length && e.emitter.emit("vf-fetch", {
|
|
3577
3577
|
params: {
|
|
3578
3578
|
q: "move",
|
|
@@ -3608,14 +3608,14 @@ const jd = { render: qd }, Gd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:te
|
|
|
3608
3608
|
]),
|
|
3609
3609
|
default: se(() => [
|
|
3610
3610
|
a("div", null, [
|
|
3611
|
-
q(
|
|
3611
|
+
q(tt, {
|
|
3612
3612
|
icon: o(jd),
|
|
3613
3613
|
title: o(s)("Move files")
|
|
3614
3614
|
}, null, 8, ["icon", "title"]),
|
|
3615
3615
|
a("div", Gd, [
|
|
3616
3616
|
a("p", Kd, y(o(s)("Are you sure you want to move these files?")), 1),
|
|
3617
3617
|
a("div", Wd, [
|
|
3618
|
-
(m(!0), g(
|
|
3618
|
+
(m(!0), g(he, null, $e(r.value, (l) => (m(), g("div", Yd, [
|
|
3619
3619
|
a("div", null, [
|
|
3620
3620
|
l.type === "dir" ? (m(), g("svg", Xd, Qd)) : (m(), g("svg", Zd, tu))
|
|
3621
3621
|
]),
|
|
@@ -3659,16 +3659,16 @@ const fu = { render: uu }, mu = {
|
|
|
3659
3659
|
fill: "currentColor",
|
|
3660
3660
|
class: "h-6 w-6 p-0.5 rounded",
|
|
3661
3661
|
viewBox: "0 0 20 20"
|
|
3662
|
-
},
|
|
3662
|
+
}, hu = /* @__PURE__ */ a("path", {
|
|
3663
3663
|
"fill-rule": "evenodd",
|
|
3664
3664
|
d: "M5.293 9.707a1 1 0 0 1 0-1.414l4-4a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L11 7.414V15a1 1 0 1 1-2 0V7.414L6.707 9.707a1 1 0 0 1-1.414 0",
|
|
3665
3665
|
class: "pointer-events-none",
|
|
3666
3666
|
"clip-rule": "evenodd"
|
|
3667
|
-
}, null, -1),
|
|
3668
|
-
|
|
3667
|
+
}, null, -1), pu = [
|
|
3668
|
+
hu
|
|
3669
3669
|
];
|
|
3670
3670
|
function vu(t, e) {
|
|
3671
|
-
return m(), g("svg", mu, [...
|
|
3671
|
+
return m(), g("svg", mu, [...pu]);
|
|
3672
3672
|
}
|
|
3673
3673
|
const gu = { render: vu }, _u = {
|
|
3674
3674
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3745,7 +3745,7 @@ const Hu = { render: Fu }, Bu = {
|
|
|
3745
3745
|
function Uu(t, e) {
|
|
3746
3746
|
return m(), g("svg", Bu, [...Nu]);
|
|
3747
3747
|
}
|
|
3748
|
-
const
|
|
3748
|
+
const hs = { render: Uu }, Pu = {
|
|
3749
3749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3750
3750
|
fill: "none",
|
|
3751
3751
|
stroke: "currentColor",
|
|
@@ -3777,17 +3777,17 @@ function Ju(t, e) {
|
|
|
3777
3777
|
const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-sm grow-0" }, e0 = ["title"], t0 = ["title"], s0 = ["title"], n0 = ["title"], o0 = { class: "flex leading-6" }, r0 = {
|
|
3778
3778
|
key: 0,
|
|
3779
3779
|
class: "flex"
|
|
3780
|
-
}, a0 = /* @__PURE__ */ a("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), l0 = { class: "relative" }, i0 = /* @__PURE__ */ a("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), c0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], d0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, u0 = ["placeholder"], f0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, m0 = ["onDrop", "onClick"],
|
|
3780
|
+
}, a0 = /* @__PURE__ */ a("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), l0 = { class: "relative" }, i0 = /* @__PURE__ */ a("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), c0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], d0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, u0 = ["placeholder"], f0 = { class: "z-30 absolute top-[65px] md:top-[75px] left-[90px] rounded -mx-1.5 mt-1 bg-neutral-50 dark:bg-gray-800 max-w-80 max-h-50 shadow overflow-y-auto text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600" }, m0 = ["onDrop", "onClick"], h0 = { class: "flex pointer-events-none" }, p0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, v0 = {
|
|
3781
3781
|
__name: "Breadcrumb",
|
|
3782
3782
|
setup(t) {
|
|
3783
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = e.dragSelect, { setStore: n } = e.storage, c =
|
|
3783
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = e.dragSelect, { setStore: n } = e.storage, c = S(null), i = Fn(0, 100);
|
|
3784
3784
|
Ne(i, (L) => {
|
|
3785
3785
|
const T = c.value.children;
|
|
3786
|
-
let O = 0, A = 0,
|
|
3787
|
-
e.fs.limitBreadcrumbItems(
|
|
3786
|
+
let O = 0, A = 0, C = 5, R = 1;
|
|
3787
|
+
e.fs.limitBreadcrumbItems(C), ht(() => {
|
|
3788
3788
|
for (let $ = T.length - 1; $ >= 0 && !(O + T[$].offsetWidth > i.value - 40); $--)
|
|
3789
3789
|
O += parseInt(T[$].offsetWidth, 10), A++;
|
|
3790
|
-
A < R && (A = R), A >
|
|
3790
|
+
A < R && (A = R), A > C && (A = C), e.fs.limitBreadcrumbItems(A);
|
|
3791
3791
|
});
|
|
3792
3792
|
});
|
|
3793
3793
|
const d = () => {
|
|
@@ -3822,13 +3822,13 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3822
3822
|
to: e.fs.breadcrumbs[T] ?? { path: e.fs.adapter + "://" }
|
|
3823
3823
|
}
|
|
3824
3824
|
});
|
|
3825
|
-
},
|
|
3825
|
+
}, p = (L) => {
|
|
3826
3826
|
L.preventDefault(), e.fs.isGoUpAvailable() ? (L.dataTransfer.dropEffect = "copy", L.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-600")) : (L.dataTransfer.dropEffect = "none", L.dataTransfer.effectAllowed = "none");
|
|
3827
3827
|
}, f = (L) => {
|
|
3828
3828
|
L.preventDefault(), L.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600"), e.fs.isGoUpAvailable() && L.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-600");
|
|
3829
3829
|
}, v = () => {
|
|
3830
3830
|
D(), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
|
|
3831
|
-
},
|
|
3831
|
+
}, h = () => {
|
|
3832
3832
|
D(), !e.fs.isGoUpAvailable() || e.emitter.emit("vf-fetch", {
|
|
3833
3833
|
params: {
|
|
3834
3834
|
q: "index",
|
|
@@ -3842,8 +3842,8 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3842
3842
|
e.fs.showHiddenBreadcrumbs && e.fs.toggleHiddenBreadcrumbs(!1);
|
|
3843
3843
|
}, b = {
|
|
3844
3844
|
mounted(L, T, O, A) {
|
|
3845
|
-
L.clickOutsideEvent = function(
|
|
3846
|
-
L ===
|
|
3845
|
+
L.clickOutsideEvent = function(C) {
|
|
3846
|
+
L === C.target || L.contains(C.target) || T.value();
|
|
3847
3847
|
}, document.body.addEventListener("click", L.clickOutsideEvent);
|
|
3848
3848
|
},
|
|
3849
3849
|
beforeUnmount(L, T, O, A) {
|
|
@@ -3855,13 +3855,13 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3855
3855
|
Ne(() => e.showTreeView, (L, T) => {
|
|
3856
3856
|
L !== T && n("show-tree-view", L);
|
|
3857
3857
|
});
|
|
3858
|
-
const k =
|
|
3859
|
-
e.features.includes(
|
|
3858
|
+
const k = S(null), U = () => {
|
|
3859
|
+
e.features.includes(pe.SEARCH) && (e.fs.searchMode = !0, ht(() => k.value.focus()));
|
|
3860
3860
|
}, F = Fn("", 400);
|
|
3861
3861
|
Ne(F, (L) => {
|
|
3862
3862
|
e.emitter.emit("vf-toast-clear"), e.emitter.emit("vf-search-query", { newQuery: L });
|
|
3863
3863
|
}), Ne(() => e.fs.searchMode, (L) => {
|
|
3864
|
-
L &&
|
|
3864
|
+
L && ht(() => k.value.focus());
|
|
3865
3865
|
});
|
|
3866
3866
|
const D = () => {
|
|
3867
3867
|
e.fs.searchMode = !1, F.value = "";
|
|
@@ -3885,10 +3885,10 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3885
3885
|
title: o(s)("Go up a directory")
|
|
3886
3886
|
}, [
|
|
3887
3887
|
q(o(gu), {
|
|
3888
|
-
onDragover: T[0] || (T[0] = (O) =>
|
|
3888
|
+
onDragover: T[0] || (T[0] = (O) => p(O)),
|
|
3889
3889
|
onDragleave: T[1] || (T[1] = (O) => f(O)),
|
|
3890
3890
|
onDrop: T[2] || (T[2] = (O) => u(O)),
|
|
3891
|
-
onClick:
|
|
3891
|
+
onClick: h,
|
|
3892
3892
|
class: de(o(e).fs.isGoUpAvailable() ? "text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer" : "text-gray-400 dark:text-neutral-500")
|
|
3893
3893
|
}, null, 8, ["class"])
|
|
3894
3894
|
], 8, t0),
|
|
@@ -3906,12 +3906,12 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3906
3906
|
q(o(fu), { onClick: v })
|
|
3907
3907
|
], 8, s0)),
|
|
3908
3908
|
ve(a("div", {
|
|
3909
|
-
onClick:
|
|
3909
|
+
onClick: at(U, ["self"]),
|
|
3910
3910
|
class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full overflow-hidden"
|
|
3911
3911
|
}, [
|
|
3912
3912
|
a("div", null, [
|
|
3913
3913
|
q(o(Eu), {
|
|
3914
|
-
onDragover: T[4] || (T[4] = (O) =>
|
|
3914
|
+
onDragover: T[4] || (T[4] = (O) => p(O)),
|
|
3915
3915
|
onDragleave: T[5] || (T[5] = (O) => f(O)),
|
|
3916
3916
|
onDrop: T[6] || (T[6] = (O) => u(O, -1)),
|
|
3917
3917
|
onClick: T[7] || (T[7] = (O) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: o(e).fs.adapter } }))
|
|
@@ -3937,17 +3937,17 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3937
3937
|
ref_key: "breadcrumbContainer",
|
|
3938
3938
|
ref: c,
|
|
3939
3939
|
class: "flex leading-6 w-full overflow-hidden",
|
|
3940
|
-
onClick:
|
|
3940
|
+
onClick: at(U, ["self"])
|
|
3941
3941
|
}, [
|
|
3942
|
-
(m(!0), g(
|
|
3942
|
+
(m(!0), g(he, null, $e(o(e).fs.breadcrumbs, (O, A) => (m(), g("div", { key: A }, [
|
|
3943
3943
|
i0,
|
|
3944
3944
|
a("span", {
|
|
3945
|
-
onDragover: (
|
|
3946
|
-
onDragleave: (
|
|
3947
|
-
onDrop: (
|
|
3945
|
+
onDragover: (C) => A === o(e).fs.breadcrumbs.length - 1 || p(C),
|
|
3946
|
+
onDragleave: (C) => A === o(e).fs.breadcrumbs.length - 1 || f(C),
|
|
3947
|
+
onDrop: (C) => A === o(e).fs.breadcrumbs.length - 1 || u(C, A),
|
|
3948
3948
|
class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer whitespace-nowrap",
|
|
3949
3949
|
title: O.basename,
|
|
3950
|
-
onClick: (
|
|
3950
|
+
onClick: (C) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: o(e).fs.adapter, path: O.path } })
|
|
3951
3951
|
}, y(O.name), 41, c0)
|
|
3952
3952
|
]))), 128))
|
|
3953
3953
|
], 512),
|
|
@@ -3976,20 +3976,20 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3976
3976
|
[ze, o(e).fs.searchMode]
|
|
3977
3977
|
]),
|
|
3978
3978
|
ve(a("div", f0, [
|
|
3979
|
-
(m(!0), g(
|
|
3979
|
+
(m(!0), g(he, null, $e(o(e).fs.hiddenBreadcrumbs, (O, A) => (m(), g("div", {
|
|
3980
3980
|
key: A,
|
|
3981
|
-
onDragover: T[11] || (T[11] = (
|
|
3982
|
-
onDragleave: T[12] || (T[12] = (
|
|
3983
|
-
onDrop: (
|
|
3984
|
-
onClick: (
|
|
3981
|
+
onDragover: T[11] || (T[11] = (C) => p(C)),
|
|
3982
|
+
onDragleave: T[12] || (T[12] = (C) => f(C)),
|
|
3983
|
+
onDrop: (C) => l(C, A),
|
|
3984
|
+
onClick: (C) => _(O),
|
|
3985
3985
|
class: "px-2 py-0.5 hover:bg-gray-400/20 cursor-pointer items-center whitespace-nowrap"
|
|
3986
3986
|
}, [
|
|
3987
|
-
a("div",
|
|
3987
|
+
a("div", h0, [
|
|
3988
3988
|
a("span", null, [
|
|
3989
|
-
q(o(
|
|
3989
|
+
q(o(hs), { class: "h-5 w-5" })
|
|
3990
3990
|
]),
|
|
3991
3991
|
Q(),
|
|
3992
|
-
a("span",
|
|
3992
|
+
a("span", p0, y(O.name), 1)
|
|
3993
3993
|
])
|
|
3994
3994
|
], 40, m0))), 128))
|
|
3995
3995
|
], 512), [
|
|
@@ -4000,10 +4000,10 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4000
4000
|
}, zo = (t, e = null) => new Date(t * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"), g0 = ["onClick"], _0 = {
|
|
4001
4001
|
__name: "Toast",
|
|
4002
4002
|
setup(t) {
|
|
4003
|
-
const e = ae("ServiceContainer"), { getStore: s } = e.storage, r =
|
|
4003
|
+
const e = ae("ServiceContainer"), { getStore: s } = e.storage, r = S(s("full-screen", !1)), n = S([]), c = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = (l) => {
|
|
4004
4004
|
n.value.splice(l, 1);
|
|
4005
4005
|
}, d = (l) => {
|
|
4006
|
-
let u = n.value.findIndex((
|
|
4006
|
+
let u = n.value.findIndex((p) => p.id === l);
|
|
4007
4007
|
u !== -1 && i(u);
|
|
4008
4008
|
};
|
|
4009
4009
|
return e.emitter.on("vf-toast-clear", () => {
|
|
@@ -4022,11 +4022,11 @@ const Qu = { render: Ju }, Zu = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4022
4022
|
"leave-to-class": "opacity-0"
|
|
4023
4023
|
}, {
|
|
4024
4024
|
default: se(() => [
|
|
4025
|
-
(m(!0), g(
|
|
4025
|
+
(m(!0), g(he, null, $e(n.value, (p, f) => (m(), g("div", {
|
|
4026
4026
|
onClick: (v) => i(f),
|
|
4027
|
-
key:
|
|
4028
|
-
class: de([c(
|
|
4029
|
-
}, y(
|
|
4027
|
+
key: p,
|
|
4028
|
+
class: de([c(p.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
|
|
4029
|
+
}, y(p.label), 11, g0))), 128))
|
|
4030
4030
|
]),
|
|
4031
4031
|
_: 1
|
|
4032
4032
|
})
|
|
@@ -4101,7 +4101,7 @@ const L0 = { render: V0 }, $s = {
|
|
|
4101
4101
|
},
|
|
4102
4102
|
setup(t) {
|
|
4103
4103
|
return (e, s) => (m(), g("span", null, [
|
|
4104
|
-
t.type === "dir" ? (m(), W(o(
|
|
4104
|
+
t.type === "dir" ? (m(), W(o(hs), {
|
|
4105
4105
|
key: 0,
|
|
4106
4106
|
class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
|
|
4107
4107
|
}, null, 8, ["class"])) : (m(), W(o(L0), {
|
|
@@ -4148,15 +4148,15 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4148
4148
|
__name: "Text",
|
|
4149
4149
|
emits: ["success"],
|
|
4150
4150
|
setup(t, { emit: e }) {
|
|
4151
|
-
const s = e, r =
|
|
4151
|
+
const s = e, r = S(""), n = S(""), c = S(null), i = S(!1), d = S(""), l = S(!1), u = ae("ServiceContainer"), { t: p } = u.i18n;
|
|
4152
4152
|
Ce(() => {
|
|
4153
4153
|
u.requester.send({
|
|
4154
4154
|
url: "",
|
|
4155
4155
|
method: "get",
|
|
4156
4156
|
params: { q: "preview", adapter: u.modal.data.adapter, path: u.modal.data.item.path },
|
|
4157
4157
|
responseType: "text"
|
|
4158
|
-
}).then((
|
|
4159
|
-
r.value =
|
|
4158
|
+
}).then((h) => {
|
|
4159
|
+
r.value = h, s("success");
|
|
4160
4160
|
});
|
|
4161
4161
|
});
|
|
4162
4162
|
const f = () => {
|
|
@@ -4174,13 +4174,13 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4174
4174
|
content: n.value
|
|
4175
4175
|
},
|
|
4176
4176
|
responseType: "text"
|
|
4177
|
-
}).then((
|
|
4178
|
-
d.value =
|
|
4179
|
-
}).catch((
|
|
4180
|
-
d.value = h
|
|
4177
|
+
}).then((h) => {
|
|
4178
|
+
d.value = p("Updated."), r.value = h, s("success"), i.value = !i.value;
|
|
4179
|
+
}).catch((h) => {
|
|
4180
|
+
d.value = p(h.message), l.value = !0;
|
|
4181
4181
|
});
|
|
4182
4182
|
};
|
|
4183
|
-
return (
|
|
4183
|
+
return (h, _) => (m(), g(he, null, [
|
|
4184
4184
|
a("div", P0, [
|
|
4185
4185
|
a("div", {
|
|
4186
4186
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
@@ -4192,12 +4192,12 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4192
4192
|
key: 0,
|
|
4193
4193
|
onClick: v,
|
|
4194
4194
|
class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
|
|
4195
|
-
}, y(o(
|
|
4196
|
-
o(u).features.includes(o(
|
|
4195
|
+
}, y(o(p)("Save")), 1)) : z("", !0),
|
|
4196
|
+
o(u).features.includes(o(pe).EDIT) ? (m(), g("button", {
|
|
4197
4197
|
key: 1,
|
|
4198
4198
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4199
4199
|
onClick: _[0] || (_[0] = (x) => f())
|
|
4200
|
-
}, y(i.value ? o(
|
|
4200
|
+
}, y(i.value ? o(p)("Cancel") : o(p)("Edit")), 1)) : z("", !0)
|
|
4201
4201
|
])
|
|
4202
4202
|
]),
|
|
4203
4203
|
a("div", null, [
|
|
@@ -4232,8 +4232,8 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4232
4232
|
__name: "Image",
|
|
4233
4233
|
emits: ["success"],
|
|
4234
4234
|
setup(t, { emit: e }) {
|
|
4235
|
-
const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c =
|
|
4236
|
-
d.value = !d.value, d.value ? i.value = new
|
|
4235
|
+
const s = e, r = ae("ServiceContainer"), { t: n } = r.i18n, c = S(null), i = S(null), d = S(!1), l = S(""), u = S(!1), p = () => {
|
|
4236
|
+
d.value = !d.value, d.value ? i.value = new pr(c.value, {
|
|
4237
4237
|
crop(v) {
|
|
4238
4238
|
}
|
|
4239
4239
|
}) : i.value.destroy();
|
|
@@ -4244,8 +4244,8 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4244
4244
|
}).toBlob(
|
|
4245
4245
|
(v) => {
|
|
4246
4246
|
l.value = "", u.value = !1;
|
|
4247
|
-
const
|
|
4248
|
-
|
|
4247
|
+
const h = new FormData();
|
|
4248
|
+
h.set("file", v), r.requester.send({
|
|
4249
4249
|
url: "",
|
|
4250
4250
|
method: "post",
|
|
4251
4251
|
params: {
|
|
@@ -4253,9 +4253,9 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4253
4253
|
adapter: r.modal.data.adapter,
|
|
4254
4254
|
path: r.modal.data.item.path
|
|
4255
4255
|
},
|
|
4256
|
-
body:
|
|
4256
|
+
body: h
|
|
4257
4257
|
}).then((_) => {
|
|
4258
|
-
l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item),
|
|
4258
|
+
l.value = n("Updated."), c.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), p(), s("success");
|
|
4259
4259
|
}).catch((_) => {
|
|
4260
4260
|
l.value = n(_.message), u.value = !0;
|
|
4261
4261
|
});
|
|
@@ -4264,7 +4264,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4264
4264
|
};
|
|
4265
4265
|
return Ce(() => {
|
|
4266
4266
|
s("success");
|
|
4267
|
-
}), (v,
|
|
4267
|
+
}), (v, h) => (m(), g(he, null, [
|
|
4268
4268
|
a("div", W0, [
|
|
4269
4269
|
a("h3", {
|
|
4270
4270
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
@@ -4277,10 +4277,10 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4277
4277
|
onClick: f,
|
|
4278
4278
|
class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
|
|
4279
4279
|
}, y(o(n)("Crop")), 1)) : z("", !0),
|
|
4280
|
-
o(r).features.includes(o(
|
|
4280
|
+
o(r).features.includes(o(pe).EDIT) ? (m(), g("button", {
|
|
4281
4281
|
key: 1,
|
|
4282
4282
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4283
|
-
onClick:
|
|
4283
|
+
onClick: h[0] || (h[0] = (_) => p())
|
|
4284
4284
|
}, y(d.value ? o(n)("Cancel") : o(n)("Edit")), 1)) : z("", !0)
|
|
4285
4285
|
])
|
|
4286
4286
|
]),
|
|
@@ -4295,7 +4295,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4295
4295
|
]),
|
|
4296
4296
|
l.value.length ? (m(), W(Ye, {
|
|
4297
4297
|
key: 0,
|
|
4298
|
-
onHidden:
|
|
4298
|
+
onHidden: h[1] || (h[1] = (_) => l.value = ""),
|
|
4299
4299
|
error: u.value
|
|
4300
4300
|
}, {
|
|
4301
4301
|
default: se(() => [
|
|
@@ -4312,7 +4312,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4312
4312
|
const s = ae("ServiceContainer"), r = e;
|
|
4313
4313
|
return Ce(() => {
|
|
4314
4314
|
r("success");
|
|
4315
|
-
}), (n, c) => (m(), g(
|
|
4315
|
+
}), (n, c) => (m(), g(he, null, [
|
|
4316
4316
|
a("div", ef, [
|
|
4317
4317
|
a("h3", {
|
|
4318
4318
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
@@ -4361,7 +4361,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4361
4361
|
const s = e, r = ae("ServiceContainer"), n = () => r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item);
|
|
4362
4362
|
return Ce(() => {
|
|
4363
4363
|
s("success");
|
|
4364
|
-
}), (c, i) => (m(), g(
|
|
4364
|
+
}), (c, i) => (m(), g(he, null, [
|
|
4365
4365
|
a("h3", {
|
|
4366
4366
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4367
4367
|
id: "modal-title",
|
|
@@ -4378,7 +4378,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4378
4378
|
])
|
|
4379
4379
|
], 64));
|
|
4380
4380
|
}
|
|
4381
|
-
}, mf = ["title"],
|
|
4381
|
+
}, mf = ["title"], hf = ["data"], pf = ["src"], vf = /* @__PURE__ */ a("p", null, [
|
|
4382
4382
|
/* @__PURE__ */ Q(" Your browser does not support PDFs. "),
|
|
4383
4383
|
/* @__PURE__ */ a("a", { href: "https://example.com/test.pdf" }, "Download the PDF"),
|
|
4384
4384
|
/* @__PURE__ */ Q(" . ")
|
|
@@ -4391,7 +4391,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4391
4391
|
const s = ae("ServiceContainer"), r = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
|
|
4392
4392
|
return Ce(() => {
|
|
4393
4393
|
r("success");
|
|
4394
|
-
}), (c, i) => (m(), g(
|
|
4394
|
+
}), (c, i) => (m(), g(he, null, [
|
|
4395
4395
|
a("h3", {
|
|
4396
4396
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4397
4397
|
id: "modal-title",
|
|
@@ -4410,8 +4410,8 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4410
4410
|
src: n(),
|
|
4411
4411
|
width: "100%",
|
|
4412
4412
|
height: "100%"
|
|
4413
|
-
}, gf, 8,
|
|
4414
|
-
], 8,
|
|
4413
|
+
}, gf, 8, pf)
|
|
4414
|
+
], 8, hf)
|
|
4415
4415
|
])
|
|
4416
4416
|
], 64));
|
|
4417
4417
|
}
|
|
@@ -4443,7 +4443,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4443
4443
|
}, Tf = ["download", "href"], qo = {
|
|
4444
4444
|
__name: "ModalPreview",
|
|
4445
4445
|
setup(t) {
|
|
4446
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
4446
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(!1), n = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(pe.PREVIEW);
|
|
4447
4447
|
return c || (r.value = !0), (i, d) => (m(), W(We, null, {
|
|
4448
4448
|
buttons: se(() => [
|
|
4449
4449
|
a("button", {
|
|
@@ -4451,7 +4451,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4451
4451
|
onClick: d[6] || (d[6] = (l) => o(e).modal.close()),
|
|
4452
4452
|
class: "vf-btn vf-btn-secondary"
|
|
4453
4453
|
}, y(o(s)("Close")), 1),
|
|
4454
|
-
o(e).features.includes(o(
|
|
4454
|
+
o(e).features.includes(o(pe).DOWNLOAD) ? (m(), g("a", {
|
|
4455
4455
|
key: 0,
|
|
4456
4456
|
target: "_blank",
|
|
4457
4457
|
class: "vf-btn vf-btn-primary",
|
|
@@ -4501,7 +4501,7 @@ const B0 = { render: H0 }, I0 = { class: "absolute -z-50 -top-96" }, N0 = { clas
|
|
|
4501
4501
|
Q(" " + y(o(zo)(o(e).modal.data.item.last_modified)), 1)
|
|
4502
4502
|
])
|
|
4503
4503
|
]),
|
|
4504
|
-
o(e).features.includes(o(
|
|
4504
|
+
o(e).features.includes(o(pe).DOWNLOAD) ? (m(), g("div", Ef, [
|
|
4505
4505
|
a("span", null, y(o(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
|
|
4506
4506
|
])) : z("", !0)
|
|
4507
4507
|
]),
|
|
@@ -4535,38 +4535,38 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4535
4535
|
dragImage: { type: Object }
|
|
4536
4536
|
},
|
|
4537
4537
|
setup(t) {
|
|
4538
|
-
const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (
|
|
4539
|
-
|
|
4538
|
+
const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (h) => {
|
|
4539
|
+
h.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: h.path } })) : e.modal.open(qo, { adapter: e.fs.adapter, item: h });
|
|
4540
4540
|
}, c = {
|
|
4541
|
-
mounted(
|
|
4542
|
-
x.props.draggable && (
|
|
4541
|
+
mounted(h, _, x, b) {
|
|
4542
|
+
x.props.draggable && (h.addEventListener("dragstart", (M) => i(M, _.value)), h.addEventListener("dragover", (M) => l(M, _.value)), h.addEventListener("drop", (M) => d(M, _.value)));
|
|
4543
4543
|
},
|
|
4544
|
-
beforeUnmount(
|
|
4545
|
-
x.props.draggable && (
|
|
4544
|
+
beforeUnmount(h, _, x, b) {
|
|
4545
|
+
x.props.draggable && (h.removeEventListener("dragstart", i), h.removeEventListener("dragover", l), h.removeEventListener("drop", d));
|
|
4546
4546
|
}
|
|
4547
|
-
}, i = (
|
|
4548
|
-
if (
|
|
4549
|
-
return
|
|
4550
|
-
s.isDraggingRef.value = !0,
|
|
4551
|
-
}, d = (
|
|
4552
|
-
|
|
4553
|
-
let x = JSON.parse(
|
|
4547
|
+
}, i = (h, _) => {
|
|
4548
|
+
if (h.altKey || h.ctrlKey || h.metaKey)
|
|
4549
|
+
return h.preventDefault(), !1;
|
|
4550
|
+
s.isDraggingRef.value = !0, h.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), h.dataTransfer.effectAllowed = "all", h.dataTransfer.dropEffect = "copy", h.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
|
|
4551
|
+
}, d = (h, _) => {
|
|
4552
|
+
h.preventDefault(), s.isDraggingRef.value = !1;
|
|
4553
|
+
let x = JSON.parse(h.dataTransfer.getData("items"));
|
|
4554
4554
|
if (x.find((b) => b.storage !== e.fs.adapter)) {
|
|
4555
4555
|
alert("Moving items between different storages is not supported yet.");
|
|
4556
4556
|
return;
|
|
4557
4557
|
}
|
|
4558
4558
|
e.modal.open(js, { items: { from: x, to: _ } });
|
|
4559
|
-
}, l = (
|
|
4560
|
-
|
|
4559
|
+
}, l = (h, _) => {
|
|
4560
|
+
h.preventDefault(), !_ || _.type !== "dir" || s.getSelection().find((x) => x === h.currentTarget) ? (h.dataTransfer.dropEffect = "none", h.dataTransfer.effectAllowed = "none") : h.dataTransfer.dropEffect = "copy";
|
|
4561
4561
|
};
|
|
4562
|
-
let u = null,
|
|
4562
|
+
let u = null, p = !1;
|
|
4563
4563
|
const f = () => {
|
|
4564
4564
|
u && clearTimeout(u);
|
|
4565
|
-
}, v = (
|
|
4566
|
-
if (!
|
|
4567
|
-
|
|
4565
|
+
}, v = (h) => {
|
|
4566
|
+
if (!p)
|
|
4567
|
+
p = !0, setTimeout(() => p = !1, 300);
|
|
4568
4568
|
else
|
|
4569
|
-
return
|
|
4569
|
+
return p = !1, n(r.item), clearTimeout(u), !1;
|
|
4570
4570
|
u = setTimeout(() => {
|
|
4571
4571
|
const _ = new MouseEvent("contextmenu", {
|
|
4572
4572
|
bubbles: !0,
|
|
@@ -4574,14 +4574,14 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4574
4574
|
view: window,
|
|
4575
4575
|
button: 2,
|
|
4576
4576
|
buttons: 0,
|
|
4577
|
-
clientX:
|
|
4578
|
-
clientY:
|
|
4577
|
+
clientX: h.target.getBoundingClientRect().x,
|
|
4578
|
+
clientY: h.target.getBoundingClientRect().y
|
|
4579
4579
|
});
|
|
4580
|
-
|
|
4580
|
+
h.target.dispatchEvent(_);
|
|
4581
4581
|
}, 500);
|
|
4582
4582
|
};
|
|
4583
|
-
return (
|
|
4584
|
-
style: rs({ opacity: o(s).isDraggingRef.value && o(s).getSelection().find((x) =>
|
|
4583
|
+
return (h, _) => ve((m(), g("div", {
|
|
4584
|
+
style: rs({ opacity: o(s).isDraggingRef.value && o(s).getSelection().find((x) => h.$el === x) ? "0.5 !important" : "" }),
|
|
4585
4585
|
class: de(["vf-item-" + o(s).explorerId, "relative"]),
|
|
4586
4586
|
"data-type": t.item.type,
|
|
4587
4587
|
key: t.item.path,
|
|
@@ -4590,9 +4590,9 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4590
4590
|
onDblclick: _[0] || (_[0] = (x) => n(t.item)),
|
|
4591
4591
|
onTouchstart: _[1] || (_[1] = (x) => v(x)),
|
|
4592
4592
|
onTouchend: _[2] || (_[2] = (x) => f()),
|
|
4593
|
-
onContextmenu: _[3] || (_[3] =
|
|
4593
|
+
onContextmenu: _[3] || (_[3] = at((x) => o(e).emitter.emit("vf-contextmenu-show", { event: x, items: o(s).getSelected(), target: t.item }), ["prevent"]))
|
|
4594
4594
|
}, [
|
|
4595
|
-
Lt(
|
|
4595
|
+
Lt(h.$slots, "default"),
|
|
4596
4596
|
o(e).pinnedFolders.find((x) => x.path === t.item.path) ? (m(), W(o(jo), {
|
|
4597
4597
|
key: 0,
|
|
4598
4598
|
class: "absolute top-0 right-0 text-amber-600"
|
|
@@ -4610,7 +4610,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4610
4610
|
}, Xf = { class: "break-all" }, Jf = {
|
|
4611
4611
|
__name: "Explorer",
|
|
4612
4612
|
setup(t) {
|
|
4613
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = (f) => f == null ? void 0 : f.substring(0, 3), n =
|
|
4613
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = (f) => f == null ? void 0 : f.substring(0, 3), n = S(null), c = S(""), i = e.dragSelect;
|
|
4614
4614
|
let d;
|
|
4615
4615
|
e.emitter.on("vf-fullscreen-toggle", () => {
|
|
4616
4616
|
i.area.value.style.height = null;
|
|
@@ -4628,16 +4628,16 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4628
4628
|
}) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname } });
|
|
4629
4629
|
});
|
|
4630
4630
|
const l = St({ active: !1, column: "", order: "" }), u = (f = !0) => {
|
|
4631
|
-
let v = [...e.fs.data.files],
|
|
4631
|
+
let v = [...e.fs.data.files], h = l.column, _ = l.order === "asc" ? 1 : -1;
|
|
4632
4632
|
if (!f)
|
|
4633
4633
|
return v;
|
|
4634
4634
|
const x = (b, M) => typeof b == "string" && typeof M == "string" ? b.toLowerCase().localeCompare(M.toLowerCase()) : b < M ? -1 : b > M ? 1 : 0;
|
|
4635
|
-
return l.active && (v = v.slice().sort((b, M) => x(b[
|
|
4636
|
-
},
|
|
4635
|
+
return l.active && (v = v.slice().sort((b, M) => x(b[h], M[h]) * _)), v;
|
|
4636
|
+
}, p = (f) => {
|
|
4637
4637
|
l.active && l.column === f ? (l.active = l.order === "asc", l.column = f, l.order = "desc") : (l.active = !0, l.column = f, l.order = "asc");
|
|
4638
4638
|
};
|
|
4639
4639
|
return Ce(() => {
|
|
4640
|
-
d = new
|
|
4640
|
+
d = new hr(i.area.value);
|
|
4641
4641
|
}), Bn(() => {
|
|
4642
4642
|
d.update();
|
|
4643
4643
|
}), Un(() => {
|
|
@@ -4645,7 +4645,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4645
4645
|
}), (f, v) => (m(), g("div", Rf, [
|
|
4646
4646
|
o(e).view === "list" || c.value.length ? (m(), g("div", Ff, [
|
|
4647
4647
|
a("div", {
|
|
4648
|
-
onClick: v[0] || (v[0] = (
|
|
4648
|
+
onClick: v[0] || (v[0] = (h) => p("basename")),
|
|
4649
4649
|
class: "col-span-7 vf-sort-button"
|
|
4650
4650
|
}, [
|
|
4651
4651
|
Q(y(o(s)("Name")) + " ", 1),
|
|
@@ -4657,7 +4657,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4657
4657
|
]),
|
|
4658
4658
|
c.value.length ? z("", !0) : (m(), g("div", {
|
|
4659
4659
|
key: 0,
|
|
4660
|
-
onClick: v[1] || (v[1] = (
|
|
4660
|
+
onClick: v[1] || (v[1] = (h) => p("file_size")),
|
|
4661
4661
|
class: "justify-center col-span-2 vf-sort-button"
|
|
4662
4662
|
}, [
|
|
4663
4663
|
Q(y(o(s)("Size")) + " ", 1),
|
|
@@ -4669,7 +4669,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4669
4669
|
])),
|
|
4670
4670
|
c.value.length ? z("", !0) : (m(), g("div", {
|
|
4671
4671
|
key: 1,
|
|
4672
|
-
onClick: v[2] || (v[2] = (
|
|
4672
|
+
onClick: v[2] || (v[2] = (h) => p("last_modified")),
|
|
4673
4673
|
class: "justify-center col-span-3 vf-sort-button"
|
|
4674
4674
|
}, [
|
|
4675
4675
|
Q(y(o(s)("Date")) + " ", 1),
|
|
@@ -4681,7 +4681,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4681
4681
|
])),
|
|
4682
4682
|
c.value.length ? (m(), g("div", {
|
|
4683
4683
|
key: 2,
|
|
4684
|
-
onClick: v[3] || (v[3] = (
|
|
4684
|
+
onClick: v[3] || (v[3] = (h) => p("path")),
|
|
4685
4685
|
class: "justify-center col-span-5 vf-sort-button"
|
|
4686
4686
|
}, [
|
|
4687
4687
|
Q(y(o(s)("Filepath")) + " ", 1),
|
|
@@ -4711,10 +4711,10 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4711
4711
|
a("div", {
|
|
4712
4712
|
ref: o(i).area,
|
|
4713
4713
|
class: "h-full w-full text-xs p-1 vf-explorer-scrollbar vf-selector-area z-0 overflow-y-auto",
|
|
4714
|
-
onContextmenu: v[4] || (v[4] =
|
|
4714
|
+
onContextmenu: v[4] || (v[4] = at((h) => o(e).emitter.emit("vf-contextmenu-show", { event: h, items: o(i).getSelected() }), ["self", "prevent"]))
|
|
4715
4715
|
}, [
|
|
4716
|
-
c.value.length ? (m(!0), g(
|
|
4717
|
-
item:
|
|
4716
|
+
c.value.length ? (m(!0), g(he, { key: 0 }, $e(u(), (h, _) => (m(), W(Ss, {
|
|
4717
|
+
item: h,
|
|
4718
4718
|
index: _,
|
|
4719
4719
|
dragImage: n.value,
|
|
4720
4720
|
class: "vf-item vf-item-list"
|
|
@@ -4723,41 +4723,41 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4723
4723
|
a("div", Bf, [
|
|
4724
4724
|
a("div", If, [
|
|
4725
4725
|
q($s, {
|
|
4726
|
-
type:
|
|
4726
|
+
type: h.type,
|
|
4727
4727
|
small: o(e).compactListView
|
|
4728
4728
|
}, null, 8, ["type", "small"]),
|
|
4729
|
-
a("span", Nf, y(
|
|
4729
|
+
a("span", Nf, y(h.basename), 1)
|
|
4730
4730
|
]),
|
|
4731
|
-
a("div", Uf, y(
|
|
4731
|
+
a("div", Uf, y(h.path), 1)
|
|
4732
4732
|
])
|
|
4733
4733
|
]),
|
|
4734
4734
|
_: 2
|
|
4735
4735
|
}, 1032, ["item", "index", "dragImage"]))), 256)) : z("", !0),
|
|
4736
|
-
o(e).view === "list" && !c.value.length ? (m(!0), g(
|
|
4737
|
-
item:
|
|
4736
|
+
o(e).view === "list" && !c.value.length ? (m(!0), g(he, { key: 1 }, $e(u(), (h, _) => (m(), W(Ss, {
|
|
4737
|
+
item: h,
|
|
4738
4738
|
index: _,
|
|
4739
4739
|
dragImage: n.value,
|
|
4740
4740
|
class: "vf-item vf-item-list",
|
|
4741
4741
|
draggable: "true",
|
|
4742
|
-
key:
|
|
4742
|
+
key: h.path
|
|
4743
4743
|
}, {
|
|
4744
4744
|
default: se(() => [
|
|
4745
4745
|
a("div", Pf, [
|
|
4746
4746
|
a("div", zf, [
|
|
4747
4747
|
q($s, {
|
|
4748
|
-
type:
|
|
4748
|
+
type: h.type,
|
|
4749
4749
|
small: o(e).compactListView
|
|
4750
4750
|
}, null, 8, ["type", "small"]),
|
|
4751
|
-
a("span", qf, y(
|
|
4751
|
+
a("span", qf, y(h.basename), 1)
|
|
4752
4752
|
]),
|
|
4753
|
-
a("div", jf, y(
|
|
4754
|
-
a("div", Gf, y(o(zo)(
|
|
4753
|
+
a("div", jf, y(h.file_size ? o(e).filesize(h.file_size) : ""), 1),
|
|
4754
|
+
a("div", Gf, y(o(zo)(h.last_modified)), 1)
|
|
4755
4755
|
])
|
|
4756
4756
|
]),
|
|
4757
4757
|
_: 2
|
|
4758
4758
|
}, 1032, ["item", "index", "dragImage"]))), 128)) : z("", !0),
|
|
4759
|
-
o(e).view === "grid" && !c.value.length ? (m(!0), g(
|
|
4760
|
-
item:
|
|
4759
|
+
o(e).view === "grid" && !c.value.length ? (m(!0), g(he, { key: 2 }, $e(u(!1), (h, _) => (m(), W(Ss, {
|
|
4760
|
+
item: h,
|
|
4761
4761
|
index: _,
|
|
4762
4762
|
dragImage: n.value,
|
|
4763
4763
|
class: "vf-item vf-item-grid",
|
|
@@ -4766,19 +4766,19 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4766
4766
|
default: se(() => [
|
|
4767
4767
|
a("div", null, [
|
|
4768
4768
|
a("div", Kf, [
|
|
4769
|
-
(
|
|
4769
|
+
(h.mime_type ?? "").startsWith("image") && o(e).showThumbnails ? (m(), g("img", {
|
|
4770
4770
|
src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
|
4771
4771
|
class: "lazy h-10 md:h-12 m-auto",
|
|
4772
|
-
"data-src": o(e).requester.getPreviewUrl(o(e).fs.adapter,
|
|
4773
|
-
alt:
|
|
4774
|
-
key:
|
|
4772
|
+
"data-src": o(e).requester.getPreviewUrl(o(e).fs.adapter, h),
|
|
4773
|
+
alt: h.basename,
|
|
4774
|
+
key: h.path
|
|
4775
4775
|
}, null, 8, Wf)) : (m(), W($s, {
|
|
4776
4776
|
key: 1,
|
|
4777
|
-
type:
|
|
4777
|
+
type: h.type
|
|
4778
4778
|
}, null, 8, ["type"])),
|
|
4779
|
-
!((
|
|
4779
|
+
!((h.mime_type ?? "").startsWith("image") && o(e).showThumbnails) && h.type !== "dir" ? (m(), g("div", Yf, y(r(h.extension)), 1)) : z("", !0)
|
|
4780
4780
|
]),
|
|
4781
|
-
a("span", Xf, y(o(qs)(
|
|
4781
|
+
a("span", Xf, y(o(qs)(h.basename)), 1)
|
|
4782
4782
|
])
|
|
4783
4783
|
]),
|
|
4784
4784
|
_: 2
|
|
@@ -4790,20 +4790,20 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4790
4790
|
}, Qf = ["href", "download"], Zf = ["onClick"], em = {
|
|
4791
4791
|
__name: "ContextMenu",
|
|
4792
4792
|
setup(t) {
|
|
4793
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, r =
|
|
4793
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = S(null), n = S([]), c = S(""), i = St({
|
|
4794
4794
|
active: !1,
|
|
4795
4795
|
items: [],
|
|
4796
4796
|
positions: {
|
|
4797
4797
|
left: 0,
|
|
4798
4798
|
top: 0
|
|
4799
4799
|
}
|
|
4800
|
-
}), d =
|
|
4800
|
+
}), d = ct(() => i.items.filter((f) => f.key == null || e.features.includes(f.key)));
|
|
4801
4801
|
e.emitter.on("vf-context-selected", (f) => {
|
|
4802
4802
|
n.value = f;
|
|
4803
4803
|
});
|
|
4804
4804
|
const l = {
|
|
4805
4805
|
newfolder: {
|
|
4806
|
-
key:
|
|
4806
|
+
key: pe.NEW_FOLDER,
|
|
4807
4807
|
title: () => s("New Folder"),
|
|
4808
4808
|
action: () => e.modal.open(Fo)
|
|
4809
4809
|
},
|
|
@@ -4824,7 +4824,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4824
4824
|
}
|
|
4825
4825
|
},
|
|
4826
4826
|
delete: {
|
|
4827
|
-
key:
|
|
4827
|
+
key: pe.DELETE,
|
|
4828
4828
|
title: () => s("Delete"),
|
|
4829
4829
|
action: () => {
|
|
4830
4830
|
e.modal.open(an, { items: n });
|
|
@@ -4837,7 +4837,7 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4837
4837
|
}
|
|
4838
4838
|
},
|
|
4839
4839
|
preview: {
|
|
4840
|
-
key:
|
|
4840
|
+
key: pe.PREVIEW,
|
|
4841
4841
|
title: () => s("Preview"),
|
|
4842
4842
|
action: () => e.modal.open(qo, { adapter: e.fs.adapter, item: n.value[0] })
|
|
4843
4843
|
},
|
|
@@ -4866,24 +4866,24 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4866
4866
|
}
|
|
4867
4867
|
},
|
|
4868
4868
|
download: {
|
|
4869
|
-
key:
|
|
4870
|
-
link:
|
|
4869
|
+
key: pe.DOWNLOAD,
|
|
4870
|
+
link: ct(() => e.requester.getDownloadUrl(e.fs.adapter, n.value[0])),
|
|
4871
4871
|
title: () => s("Download"),
|
|
4872
4872
|
action: () => {
|
|
4873
4873
|
}
|
|
4874
4874
|
},
|
|
4875
4875
|
archive: {
|
|
4876
|
-
key:
|
|
4876
|
+
key: pe.ARCHIVE,
|
|
4877
4877
|
title: () => s("Archive"),
|
|
4878
4878
|
action: () => e.modal.open(Po, { items: n })
|
|
4879
4879
|
},
|
|
4880
4880
|
unarchive: {
|
|
4881
|
-
key:
|
|
4881
|
+
key: pe.UNARCHIVE,
|
|
4882
4882
|
title: () => s("Unarchive"),
|
|
4883
4883
|
action: () => e.modal.open(No, { items: n })
|
|
4884
4884
|
},
|
|
4885
4885
|
rename: {
|
|
4886
|
-
key:
|
|
4886
|
+
key: pe.RENAME,
|
|
4887
4887
|
title: () => s("Rename"),
|
|
4888
4888
|
action: () => e.modal.open(ln, { items: n })
|
|
4889
4889
|
}
|
|
@@ -4892,21 +4892,21 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4892
4892
|
};
|
|
4893
4893
|
e.emitter.on("vf-search-query", ({ newQuery: f }) => {
|
|
4894
4894
|
c.value = f;
|
|
4895
|
-
}), e.emitter.on("vf-contextmenu-show", ({ event: f, items: v, target:
|
|
4895
|
+
}), e.emitter.on("vf-contextmenu-show", ({ event: f, items: v, target: h = null }) => {
|
|
4896
4896
|
if (i.items = [], c.value)
|
|
4897
|
-
if (
|
|
4898
|
-
i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [
|
|
4897
|
+
if (h)
|
|
4898
|
+
i.items.push(l.openDir), e.emitter.emit("vf-context-selected", [h]);
|
|
4899
4899
|
else
|
|
4900
4900
|
return;
|
|
4901
|
-
else !
|
|
4902
|
-
|
|
4901
|
+
else !h && !c.value ? (i.items.push(l.refresh), i.items.push(l.selectAll), i.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : v.length > 1 && v.some((_) => _.path === h.path) ? (i.items.push(l.refresh), i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", v)) : (h.type === "dir" ? (i.items.push(l.open), e.pinnedFolders.findIndex((_) => _.path === h.path) !== -1 ? i.items.push(l.unpinFolder) : i.items.push(l.pinFolder)) : (i.items.push(l.preview), i.items.push(l.download)), i.items.push(l.rename), h.mime_type === "application/zip" ? i.items.push(l.unarchive) : i.items.push(l.archive), i.items.push(l.delete), e.emitter.emit("vf-context-selected", [h]));
|
|
4902
|
+
p(f);
|
|
4903
4903
|
}), e.emitter.on("vf-contextmenu-hide", () => {
|
|
4904
4904
|
i.active = !1;
|
|
4905
4905
|
});
|
|
4906
|
-
const
|
|
4907
|
-
const v = e.dragSelect.area.value,
|
|
4908
|
-
let x = f.clientX -
|
|
4909
|
-
i.active = !0,
|
|
4906
|
+
const p = (f) => {
|
|
4907
|
+
const v = e.dragSelect.area.value, h = e.root.getBoundingClientRect(), _ = v.getBoundingClientRect();
|
|
4908
|
+
let x = f.clientX - h.left, b = f.clientY - h.top;
|
|
4909
|
+
i.active = !0, ht(() => {
|
|
4910
4910
|
var F;
|
|
4911
4911
|
const M = (F = r.value) == null ? void 0 : F.getBoundingClientRect();
|
|
4912
4912
|
let k = (M == null ? void 0 : M.height) ?? 0, U = (M == null ? void 0 : M.width) ?? 0;
|
|
@@ -4922,25 +4922,25 @@ const jo = { render: Lf }, Of = ["data-type", "data-item", "data-index"], Ss = {
|
|
|
4922
4922
|
style: rs(i.positions),
|
|
4923
4923
|
class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded-sm select-none"
|
|
4924
4924
|
}, [
|
|
4925
|
-
(m(!0), g(
|
|
4925
|
+
(m(!0), g(he, null, $e(d.value, (h) => (m(), g("li", {
|
|
4926
4926
|
class: "cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
|
|
4927
|
-
key:
|
|
4927
|
+
key: h.title
|
|
4928
4928
|
}, [
|
|
4929
|
-
|
|
4929
|
+
h.link ? (m(), g("a", {
|
|
4930
4930
|
key: 0,
|
|
4931
4931
|
class: "block pl-2 pr-3 py-2",
|
|
4932
4932
|
target: "_blank",
|
|
4933
|
-
href:
|
|
4934
|
-
download:
|
|
4933
|
+
href: h.link,
|
|
4934
|
+
download: h.link,
|
|
4935
4935
|
onClick: v[0] || (v[0] = (_) => o(e).emitter.emit("vf-contextmenu-hide"))
|
|
4936
4936
|
}, [
|
|
4937
|
-
a("span", null, y(
|
|
4937
|
+
a("span", null, y(h.title()), 1)
|
|
4938
4938
|
], 8, Qf)) : (m(), g("div", {
|
|
4939
4939
|
key: 1,
|
|
4940
4940
|
class: "pl-2 pr-3 py-1.5",
|
|
4941
|
-
onClick: (_) => u(
|
|
4941
|
+
onClick: (_) => u(h)
|
|
4942
4942
|
}, [
|
|
4943
|
-
a("span", null, y(
|
|
4943
|
+
a("span", null, y(h.title()), 1)
|
|
4944
4944
|
], 8, Zf))
|
|
4945
4945
|
]))), 128))
|
|
4946
4946
|
], 4)), [
|
|
@@ -4980,16 +4980,16 @@ const Go = { render: om }, rm = {
|
|
|
4980
4980
|
function im(t, e) {
|
|
4981
4981
|
return m(), g("svg", rm, [...lm]);
|
|
4982
4982
|
}
|
|
4983
|
-
const cm = { render: im }, dm = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, um = { class: "flex leading-5 items-center" }, fm = ["title"], mm = { class: "z-[1] pointer-events-none" },
|
|
4983
|
+
const cm = { render: im }, dm = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, um = { class: "flex leading-5 items-center" }, fm = ["title"], mm = { class: "z-[1] pointer-events-none" }, hm = ["value"], pm = { class: "ml-3" }, vm = { key: 0 }, gm = { class: "ml-1" }, _m = { class: "flex leading-5 items-center justify-end" }, ym = ["disabled"], bm = ["title"], xm = {
|
|
4984
4984
|
__name: "Statusbar",
|
|
4985
4985
|
setup(t) {
|
|
4986
4986
|
const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, n = e.dragSelect, c = () => {
|
|
4987
4987
|
e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }), r("adapter", e.fs.adapter);
|
|
4988
|
-
}, i =
|
|
4988
|
+
}, i = S("");
|
|
4989
4989
|
e.emitter.on("vf-search-query", ({ newQuery: l }) => {
|
|
4990
4990
|
i.value = l;
|
|
4991
4991
|
});
|
|
4992
|
-
const d =
|
|
4992
|
+
const d = ct(() => {
|
|
4993
4993
|
const l = e.selectButton.multiple ? n.getSelected().length > 0 : n.getSelected().length === 1;
|
|
4994
4994
|
return e.selectButton.active && l;
|
|
4995
4995
|
});
|
|
@@ -5003,17 +5003,17 @@ const cm = { render: im }, dm = { class: "p-1 text-xs border-t border-neutral-30
|
|
|
5003
5003
|
q(o(Go))
|
|
5004
5004
|
]),
|
|
5005
5005
|
ve(a("select", {
|
|
5006
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
5006
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => o(e).fs.adapter = p),
|
|
5007
5007
|
onChange: c,
|
|
5008
5008
|
class: "border-0 py-0.5 text-xs text-slate-500 bg-white dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0 cursor-pointer",
|
|
5009
5009
|
tabindex: "-1"
|
|
5010
5010
|
}, [
|
|
5011
|
-
(m(!0), g(
|
|
5011
|
+
(m(!0), g(he, null, $e(o(e).fs.data.storages, (p) => (m(), g("option", { value: p }, y(p), 9, hm))), 256))
|
|
5012
5012
|
], 544), [
|
|
5013
5013
|
[Cs, o(e).fs.adapter]
|
|
5014
5014
|
])
|
|
5015
5015
|
], 8, fm),
|
|
5016
|
-
a("div",
|
|
5016
|
+
a("div", pm, [
|
|
5017
5017
|
i.value.length ? (m(), g("span", vm, y(o(e).fs.data.files.length) + " items found. ", 1)) : z("", !0),
|
|
5018
5018
|
a("span", gm, y(o(e).dragSelect.getCount() > 0 ? o(s)("%s item(s) selected.", o(e).dragSelect.getCount()) : ""), 1)
|
|
5019
5019
|
])
|
|
@@ -5023,12 +5023,12 @@ const cm = { render: im }, dm = { class: "p-1 text-xs border-t border-neutral-30
|
|
|
5023
5023
|
key: 0,
|
|
5024
5024
|
class: de(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
|
|
5025
5025
|
disabled: !d.value,
|
|
5026
|
-
onClick: u[1] || (u[1] = (
|
|
5026
|
+
onClick: u[1] || (u[1] = (p) => o(e).selectButton.click(o(n).getSelected(), p))
|
|
5027
5027
|
}, y(o(s)("Select")), 11, ym)) : z("", !0),
|
|
5028
5028
|
a("span", {
|
|
5029
5029
|
class: "mr-1",
|
|
5030
5030
|
title: o(s)("About"),
|
|
5031
|
-
onClick: u[2] || (u[2] = (
|
|
5031
|
+
onClick: u[2] || (u[2] = (p) => o(e).modal.open(Vo))
|
|
5032
5032
|
}, [
|
|
5033
5033
|
q(o(cm))
|
|
5034
5034
|
], 8, bm)
|
|
@@ -5130,7 +5130,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5130
5130
|
setup(t) {
|
|
5131
5131
|
const e = t, s = ae("ServiceContainer");
|
|
5132
5132
|
s.i18n;
|
|
5133
|
-
const r = Pn(t, "modelValue"), n =
|
|
5133
|
+
const r = Pn(t, "modelValue"), n = S(!1);
|
|
5134
5134
|
Ne(
|
|
5135
5135
|
() => r.value,
|
|
5136
5136
|
() => {
|
|
@@ -5176,7 +5176,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5176
5176
|
]);
|
|
5177
5177
|
};
|
|
5178
5178
|
}
|
|
5179
|
-
}, qm = { class: "
|
|
5179
|
+
}, qm = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, jm = ["onClick"], Gm = ["title", "onClick"], Km = { class: "h-5 w-5 shrink-0" }, Wm = { class: "pl-4" }, Ym = {
|
|
5180
5180
|
__name: "TreeSubfolderList",
|
|
5181
5181
|
props: {
|
|
5182
5182
|
adapter: {
|
|
@@ -5189,54 +5189,67 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5189
5189
|
}
|
|
5190
5190
|
},
|
|
5191
5191
|
setup(t) {
|
|
5192
|
-
const e = ae("ServiceContainer"), s =
|
|
5193
|
-
|
|
5194
|
-
|
|
5192
|
+
const e = ae("ServiceContainer"), s = S([]), r = t, n = S(null);
|
|
5193
|
+
Ce(() => {
|
|
5194
|
+
r.path === r.adapter + "://" && et(n.value, {
|
|
5195
|
+
scrollbars: {
|
|
5196
|
+
theme: "vf-theme-dark dark:vf-theme-light"
|
|
5197
|
+
}
|
|
5198
|
+
});
|
|
5195
5199
|
});
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
return
|
|
5199
|
-
|
|
5200
|
+
const c = ct(() => {
|
|
5201
|
+
var i;
|
|
5202
|
+
return ((i = e.treeViewData.find((d) => d.path === r.path)) == null ? void 0 : i.folders) || [];
|
|
5203
|
+
});
|
|
5204
|
+
return (i, d) => {
|
|
5205
|
+
const l = lr("TreeSubfolderList", !0);
|
|
5206
|
+
return m(), g("ul", {
|
|
5207
|
+
ref_key: "parentSubfolderList",
|
|
5208
|
+
ref: n,
|
|
5209
|
+
class: "block"
|
|
5210
|
+
}, [
|
|
5211
|
+
(m(!0), g(he, null, $e(c.value, (u, p) => (m(), g("li", {
|
|
5200
5212
|
class: "flex flex-col space-x-0.5 py-0.5 text-sm",
|
|
5201
|
-
key:
|
|
5213
|
+
key: u.path
|
|
5202
5214
|
}, [
|
|
5203
|
-
a("div",
|
|
5215
|
+
a("div", qm, [
|
|
5204
5216
|
a("div", {
|
|
5205
5217
|
class: "h-5 w-5 shrink-0",
|
|
5206
|
-
onClick: (
|
|
5218
|
+
onClick: (f) => s.value[u.path] = !s.value[u.path]
|
|
5207
5219
|
}, [
|
|
5208
5220
|
q(Jo, {
|
|
5209
5221
|
adapter: t.adapter,
|
|
5210
|
-
path:
|
|
5211
|
-
modelValue: s.value[
|
|
5212
|
-
"onUpdate:modelValue": (
|
|
5222
|
+
path: u.path,
|
|
5223
|
+
modelValue: s.value[u.path],
|
|
5224
|
+
"onUpdate:modelValue": (f) => s.value[u.path] = f
|
|
5213
5225
|
}, null, 8, ["adapter", "path", "modelValue", "onUpdate:modelValue"])
|
|
5214
|
-
], 8,
|
|
5226
|
+
], 8, jm),
|
|
5215
5227
|
a("div", {
|
|
5216
5228
|
class: "flex cursor-pointer",
|
|
5217
|
-
|
|
5229
|
+
title: u.path,
|
|
5230
|
+
onClick: (f) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: u.path } })
|
|
5218
5231
|
}, [
|
|
5219
|
-
a("div",
|
|
5220
|
-
o(e).fs.path ===
|
|
5232
|
+
a("div", Km, [
|
|
5233
|
+
o(e).fs.path === u.path ? (m(), W(o(Ko), { key: 0 })) : (m(), W(o(hs), { key: 1 }))
|
|
5221
5234
|
]),
|
|
5222
5235
|
a("div", {
|
|
5223
|
-
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": o(e).fs.path ===
|
|
5224
|
-
}, y(
|
|
5225
|
-
], 8,
|
|
5236
|
+
class: de(["text-nowrap pr-4", { "underline decoration-blue-300 dark:decoration-gray-400": o(e).fs.path === u.path }])
|
|
5237
|
+
}, y(u.basename), 3)
|
|
5238
|
+
], 8, Gm)
|
|
5226
5239
|
]),
|
|
5227
|
-
a("div",
|
|
5228
|
-
ve(q(
|
|
5240
|
+
a("div", Wm, [
|
|
5241
|
+
ve(q(l, {
|
|
5229
5242
|
adapter: r.adapter,
|
|
5230
|
-
path:
|
|
5243
|
+
path: u.path
|
|
5231
5244
|
}, null, 8, ["adapter", "path"]), [
|
|
5232
|
-
[ze, s.value[
|
|
5245
|
+
[ze, s.value[u.path]]
|
|
5233
5246
|
])
|
|
5234
5247
|
])
|
|
5235
5248
|
]))), 128))
|
|
5236
|
-
]);
|
|
5249
|
+
], 512);
|
|
5237
5250
|
};
|
|
5238
5251
|
}
|
|
5239
|
-
},
|
|
5252
|
+
}, Xm = { class: "pointer-events-none pr-1" }, Jm = {
|
|
5240
5253
|
__name: "TreeStorageItem",
|
|
5241
5254
|
props: {
|
|
5242
5255
|
storage: {
|
|
@@ -5245,11 +5258,11 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5245
5258
|
}
|
|
5246
5259
|
},
|
|
5247
5260
|
setup(t) {
|
|
5248
|
-
const e = ae("ServiceContainer"), s =
|
|
5249
|
-
return (r, n) => (m(), g(
|
|
5261
|
+
const e = ae("ServiceContainer"), s = S(!1);
|
|
5262
|
+
return (r, n) => (m(), g(he, null, [
|
|
5250
5263
|
a("div", {
|
|
5251
5264
|
onClick: n[1] || (n[1] = (c) => s.value = !s.value),
|
|
5252
|
-
class: "p-1 py-1.5 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-
|
|
5265
|
+
class: "p-1 py-1.5 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-gray-800 border-b dark:border-gray-700 cursor-pointer"
|
|
5253
5266
|
}, [
|
|
5254
5267
|
a("div", {
|
|
5255
5268
|
class: de(["flex flex-1 space-x-1 items-center", t.storage === o(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""])
|
|
@@ -5261,7 +5274,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5261
5274
|
], 2),
|
|
5262
5275
|
a("div", null, y(t.storage), 1)
|
|
5263
5276
|
], 2),
|
|
5264
|
-
a("div",
|
|
5277
|
+
a("div", Xm, [
|
|
5265
5278
|
q(Jo, {
|
|
5266
5279
|
adapter: t.storage,
|
|
5267
5280
|
path: t.storage + "://",
|
|
@@ -5270,7 +5283,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5270
5283
|
}, null, 8, ["adapter", "path", "modelValue"])
|
|
5271
5284
|
])
|
|
5272
5285
|
]),
|
|
5273
|
-
ve(q(
|
|
5286
|
+
ve(q(Ym, {
|
|
5274
5287
|
adapter: t.storage,
|
|
5275
5288
|
path: t.storage + "://",
|
|
5276
5289
|
class: "overflow-x-auto my-1"
|
|
@@ -5279,7 +5292,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5279
5292
|
])
|
|
5280
5293
|
], 64));
|
|
5281
5294
|
}
|
|
5282
|
-
},
|
|
5295
|
+
}, Qm = { class: "h-5 w-5 shrink-0" }, Zm = { class: "cursor-pointer" }, eh = {
|
|
5283
5296
|
__name: "FolderIndicator",
|
|
5284
5297
|
props: {
|
|
5285
5298
|
modelValue: {},
|
|
@@ -5288,8 +5301,8 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5288
5301
|
emits: ["update:modelValue"],
|
|
5289
5302
|
setup(t) {
|
|
5290
5303
|
const e = Pn(t, "modelValue");
|
|
5291
|
-
return (s, r) => (m(), g("div",
|
|
5292
|
-
a("div",
|
|
5304
|
+
return (s, r) => (m(), g("div", Qm, [
|
|
5305
|
+
a("div", Zm, [
|
|
5293
5306
|
e.value ? (m(), W(o(Yo), {
|
|
5294
5307
|
key: 0,
|
|
5295
5308
|
class: "text-gray-600"
|
|
@@ -5301,37 +5314,44 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5301
5314
|
])
|
|
5302
5315
|
]));
|
|
5303
5316
|
}
|
|
5304
|
-
},
|
|
5317
|
+
}, th = { class: "sticky left-0 dark:border-gray-600" }, sh = { class: "flex items-center space-x-1" }, nh = { class: "text-nowrap" }, oh = {
|
|
5305
5318
|
key: 0,
|
|
5306
5319
|
class: "block my-1"
|
|
5307
|
-
},
|
|
5320
|
+
}, rh = { class: "flex pl-2 py-0.5 text-sm justify-between pr-2" }, ah = ["onClick"], lh = ["title"], ih = ["onClick"], ch = { key: 0 }, dh = { class: "p-1 text-xs text-center" }, uh = { class: "sticky left-0" }, fh = {
|
|
5308
5321
|
__name: "TreeView",
|
|
5309
5322
|
setup(t) {
|
|
5310
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: r, setStore: n } = e.storage, c =
|
|
5311
|
-
Ne(i, (
|
|
5312
|
-
const d = (
|
|
5313
|
-
e.pinnedFolders = e.pinnedFolders.filter((f) => f.path !==
|
|
5314
|
-
}, l = (
|
|
5315
|
-
const f =
|
|
5323
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: r, setStore: n } = e.storage, c = S(190), i = S(r("pinned-folders-opened", !0));
|
|
5324
|
+
Ne(i, (p) => n("pinned-folders-opened", p));
|
|
5325
|
+
const d = (p) => {
|
|
5326
|
+
e.pinnedFolders = e.pinnedFolders.filter((f) => f.path !== p.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
|
|
5327
|
+
}, l = (p) => {
|
|
5328
|
+
const f = p.clientX, v = p.target.parentElement, h = v.getBoundingClientRect().width;
|
|
5316
5329
|
v.classList.remove("transition-[width]"), v.classList.add("transition-none");
|
|
5317
5330
|
const _ = (b) => {
|
|
5318
|
-
c.value =
|
|
5331
|
+
c.value = h + b.clientX - f, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
|
|
5319
5332
|
}, x = () => {
|
|
5320
5333
|
const b = v.getBoundingClientRect();
|
|
5321
5334
|
c.value = b.width, v.classList.add("transition-[width]"), v.classList.remove("transition-none"), window.removeEventListener("mousemove", _), window.removeEventListener("mouseup", x);
|
|
5322
5335
|
};
|
|
5323
5336
|
window.addEventListener("mousemove", _), window.addEventListener("mouseup", x);
|
|
5324
|
-
}, u =
|
|
5337
|
+
}, u = S(null);
|
|
5325
5338
|
return Ce(() => {
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5339
|
+
et(u.value, {
|
|
5340
|
+
overflow: {
|
|
5341
|
+
x: "hidden"
|
|
5342
|
+
},
|
|
5343
|
+
scrollbars: {
|
|
5344
|
+
theme: "vf-theme-dark dark:vf-theme-light"
|
|
5345
|
+
}
|
|
5346
|
+
});
|
|
5347
|
+
}), Ne(e.fs.data, (p, f) => {
|
|
5348
|
+
const v = p.files.filter((h) => h.type === "dir");
|
|
5349
|
+
Xo(e.treeViewData, { path: e.fs.path, folders: v.map((h) => ({
|
|
5350
|
+
adapter: h.storage,
|
|
5351
|
+
path: h.path,
|
|
5352
|
+
basename: h.basename
|
|
5333
5353
|
})) });
|
|
5334
|
-
}), (
|
|
5354
|
+
}), (p, f) => (m(), g(he, null, [
|
|
5335
5355
|
a("div", {
|
|
5336
5356
|
onClick: f[0] || (f[0] = (v) => o(e).showTreeView = !o(e).showTreeView),
|
|
5337
5357
|
class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", o(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
|
|
@@ -5345,27 +5365,27 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5345
5365
|
ref: u,
|
|
5346
5366
|
class: "h-full border-r dark:border-gray-600/50 pb-4"
|
|
5347
5367
|
}, [
|
|
5348
|
-
a("div",
|
|
5368
|
+
a("div", th, [
|
|
5349
5369
|
a("div", {
|
|
5350
5370
|
onClick: f[2] || (f[2] = (v) => i.value = !i.value),
|
|
5351
|
-
class: "pr-2 bg-gray-100 dark:bg-
|
|
5371
|
+
class: "pr-2 bg-gray-100 dark:bg-gray-800 dark:border-gray-700 border-b p-1 py-1.5 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
|
|
5352
5372
|
}, [
|
|
5353
|
-
a("div",
|
|
5373
|
+
a("div", sh, [
|
|
5354
5374
|
q(o(jo), { class: "text-amber-600" }),
|
|
5355
|
-
a("div",
|
|
5375
|
+
a("div", nh, y(o(s)("Pinned Folders")), 1)
|
|
5356
5376
|
]),
|
|
5357
|
-
q(
|
|
5377
|
+
q(eh, {
|
|
5358
5378
|
modelValue: i.value,
|
|
5359
5379
|
"onUpdate:modelValue": f[1] || (f[1] = (v) => i.value = v)
|
|
5360
5380
|
}, null, 8, ["modelValue"])
|
|
5361
5381
|
]),
|
|
5362
|
-
i.value ? (m(), g("ul",
|
|
5363
|
-
(m(!0), g(
|
|
5382
|
+
i.value ? (m(), g("ul", oh, [
|
|
5383
|
+
(m(!0), g(he, null, $e(o(e).pinnedFolders, (v) => (m(), g("li", rh, [
|
|
5364
5384
|
a("div", {
|
|
5365
5385
|
class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
|
|
5366
|
-
onClick: (
|
|
5386
|
+
onClick: (h) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
|
|
5367
5387
|
}, [
|
|
5368
|
-
o(e).fs.path !== v.path ? (m(), W(o(
|
|
5388
|
+
o(e).fs.path !== v.path ? (m(), W(o(hs), {
|
|
5369
5389
|
key: 0,
|
|
5370
5390
|
class: "h-5 w-5"
|
|
5371
5391
|
})) : z("", !0),
|
|
@@ -5376,22 +5396,22 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5376
5396
|
a("div", {
|
|
5377
5397
|
title: v.path,
|
|
5378
5398
|
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": o(e).fs.path === v.path }])
|
|
5379
|
-
}, y(v.basename), 11,
|
|
5380
|
-
], 8,
|
|
5399
|
+
}, y(v.basename), 11, lh)
|
|
5400
|
+
], 8, ah),
|
|
5381
5401
|
a("div", {
|
|
5382
5402
|
class: "cursor-pointer",
|
|
5383
|
-
onClick: (
|
|
5403
|
+
onClick: (h) => d(v)
|
|
5384
5404
|
}, [
|
|
5385
5405
|
q(o(Dm), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
|
|
5386
|
-
], 8,
|
|
5406
|
+
], 8, ih)
|
|
5387
5407
|
]))), 256)),
|
|
5388
|
-
o(e).pinnedFolders.length ? z("", !0) : (m(), g("li",
|
|
5389
|
-
a("div",
|
|
5408
|
+
o(e).pinnedFolders.length ? z("", !0) : (m(), g("li", ch, [
|
|
5409
|
+
a("div", dh, y(o(s)("No folders pinned")), 1)
|
|
5390
5410
|
]))
|
|
5391
5411
|
])) : z("", !0)
|
|
5392
5412
|
]),
|
|
5393
|
-
(m(!0), g(
|
|
5394
|
-
q(
|
|
5413
|
+
(m(!0), g(he, null, $e(o(e).fs.data.storages, (v) => (m(), g("div", uh, [
|
|
5414
|
+
q(Jm, { storage: v }, null, 8, ["storage"])
|
|
5395
5415
|
]))), 256))
|
|
5396
5416
|
], 512),
|
|
5397
5417
|
a("div", {
|
|
@@ -5401,7 +5421,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5401
5421
|
], 4)
|
|
5402
5422
|
], 64));
|
|
5403
5423
|
}
|
|
5404
|
-
},
|
|
5424
|
+
}, mh = { class: "relative flex overflow-hidden h-full" }, hh = {
|
|
5405
5425
|
__name: "VueFinder",
|
|
5406
5426
|
props: {
|
|
5407
5427
|
id: {
|
|
@@ -5477,39 +5497,39 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5477
5497
|
setup(t, { emit: e }) {
|
|
5478
5498
|
const s = e, n = Aa(t, ae("VueFinderOptions"));
|
|
5479
5499
|
ir("ServiceContainer", n);
|
|
5480
|
-
const { setStore: c } = n.storage, i =
|
|
5500
|
+
const { setStore: c } = n.storage, i = S(null);
|
|
5481
5501
|
n.root = i;
|
|
5482
5502
|
const d = n.dragSelect;
|
|
5483
5503
|
Ri(n);
|
|
5484
|
-
const l = (
|
|
5485
|
-
Object.assign(n.fs.data,
|
|
5504
|
+
const l = (p) => {
|
|
5505
|
+
Object.assign(n.fs.data, p), d.clearSelection(), d.refreshSelection();
|
|
5486
5506
|
};
|
|
5487
5507
|
let u;
|
|
5488
5508
|
return n.emitter.on("vf-fetch-abort", () => {
|
|
5489
5509
|
u.abort(), n.fs.loading = !1;
|
|
5490
|
-
}), n.emitter.on("vf-fetch", ({ params:
|
|
5491
|
-
["index", "search"].includes(
|
|
5510
|
+
}), n.emitter.on("vf-fetch", ({ params: p, body: f = null, onSuccess: v = null, onError: h = null, noCloseModal: _ = !1 }) => {
|
|
5511
|
+
["index", "search"].includes(p.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
|
|
5492
5512
|
const x = u.signal;
|
|
5493
5513
|
n.requester.send({
|
|
5494
5514
|
url: "",
|
|
5495
|
-
method:
|
|
5496
|
-
params:
|
|
5515
|
+
method: p.m || "get",
|
|
5516
|
+
params: p,
|
|
5497
5517
|
body: f,
|
|
5498
5518
|
abortSignal: x
|
|
5499
5519
|
}).then((b) => {
|
|
5500
|
-
n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(
|
|
5520
|
+
n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(p.q) && (n.fs.loading = !1), _ || n.modal.close(), l(b), v && v(b);
|
|
5501
5521
|
}).catch((b) => {
|
|
5502
|
-
console.error(b),
|
|
5522
|
+
console.error(b), h && h(b);
|
|
5503
5523
|
});
|
|
5504
5524
|
}), Ce(() => {
|
|
5505
|
-
let
|
|
5506
|
-
n.fs.path.includes("://") && (
|
|
5525
|
+
let p = {};
|
|
5526
|
+
n.fs.path.includes("://") && (p = {
|
|
5507
5527
|
adapter: n.fs.path.split("://")[0],
|
|
5508
5528
|
path: n.fs.path
|
|
5509
|
-
}), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...
|
|
5529
|
+
}), n.emitter.emit("vf-fetch", { params: { q: "index", adapter: n.fs.adapter, ...p } }), d.onSelect((f) => {
|
|
5510
5530
|
s("select", f);
|
|
5511
5531
|
});
|
|
5512
|
-
}), (
|
|
5532
|
+
}), (p, f) => (m(), g("div", {
|
|
5513
5533
|
class: "vuefinder",
|
|
5514
5534
|
ref_key: "root",
|
|
5515
5535
|
ref: i,
|
|
@@ -5526,8 +5546,8 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5526
5546
|
}, [
|
|
5527
5547
|
q(Id),
|
|
5528
5548
|
q(v0),
|
|
5529
|
-
a("div",
|
|
5530
|
-
q(
|
|
5549
|
+
a("div", mh, [
|
|
5550
|
+
q(fh),
|
|
5531
5551
|
q(Jf)
|
|
5532
5552
|
]),
|
|
5533
5553
|
q(xm)
|
|
@@ -5542,7 +5562,7 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5542
5562
|
], 2)
|
|
5543
5563
|
], 512));
|
|
5544
5564
|
}
|
|
5545
|
-
},
|
|
5565
|
+
}, Sh = {
|
|
5546
5566
|
/**
|
|
5547
5567
|
* @param {import('vue').App} app
|
|
5548
5568
|
* @param options
|
|
@@ -5550,9 +5570,9 @@ const Pm = { class: "h-5 w-5 shrink-0" }, zm = {
|
|
|
5550
5570
|
install(t, e = {}) {
|
|
5551
5571
|
e.i18n = e.i18n ?? {};
|
|
5552
5572
|
let [s] = Object.keys(e.i18n);
|
|
5553
|
-
e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder",
|
|
5573
|
+
e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder", hh);
|
|
5554
5574
|
}
|
|
5555
5575
|
};
|
|
5556
5576
|
export {
|
|
5557
|
-
|
|
5577
|
+
Sh as default
|
|
5558
5578
|
};
|