vuefinder 2.5.6 → 2.5.7
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/style.css +1 -1
- package/dist/vuefinder.cjs +2 -2
- package/dist/vuefinder.js +522 -518
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Go = Object.defineProperty;
|
|
2
2
|
var Ko = (t, e, s) => e in t ? Go(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
3
|
var mn = (t, e, s) => Ko(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
-
import { reactive as Ot, watch as ze, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as
|
|
4
|
+
import { reactive as Ot, watch as ze, ref as E, shallowRef as Wo, onMounted as Ce, onUnmounted as qs, onUpdated as Rn, nextTick as ft, computed as Ze, inject as ae, openBlock as f, createElementBlock as g, withKeys as $t, unref as a, createElementVNode as o, withModifiers as rt, renderSlot as Dt, normalizeClass as de, toDisplayString as _, createBlock as W, withCtx as se, Fragment as he, renderList as $e, createCommentVNode as j, withDirectives as ve, vModelCheckbox as Pt, createTextVNode as Q, createVNode as Y, vModelSelect as Ss, isRef as Fn, vModelText as St, onBeforeUnmount as In, customRef as Yo, vShow as je, TransitionGroup as Xo, normalizeStyle as os, mergeModels as Jo, useModel as Nn, resolveComponent as Qo, provide as Zo, Transition as er, resolveDynamicComponent as tr } from "vue";
|
|
5
5
|
import sr from "mitt";
|
|
6
6
|
import nr from "dragselect";
|
|
7
7
|
import or from "@uppy/core";
|
|
@@ -185,7 +185,7 @@ const pe = {
|
|
|
185
185
|
FULL_SCREEN: "fullscreen",
|
|
186
186
|
DOWNLOAD: "download",
|
|
187
187
|
LANGUAGE: "language"
|
|
188
|
-
}, fr = Object.values(pe), hr = "2.5.
|
|
188
|
+
}, fr = Object.values(pe), hr = "2.5.7";
|
|
189
189
|
function Un(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
|
}
|
|
@@ -249,7 +249,7 @@ const Ve = (t, e) => {
|
|
|
249
249
|
return (x || n) && (c = p, i = v), [c, x, i];
|
|
250
250
|
};
|
|
251
251
|
return [e ? (h) => d(e(c, i), h) : d, (h) => [c, !!h, i]];
|
|
252
|
-
},
|
|
252
|
+
}, jn = typeof window < "u" && typeof document < "u", Ae = jn ? window : {}, Pn = Math.max, _r = Math.min, Cs = Math.round, Jt = Math.abs, fn = Math.sign, qn = Ae.cancelAnimationFrame, Gs = Ae.requestAnimationFrame, Qt = Ae.setTimeout, Es = Ae.clearTimeout, rs = (t) => typeof Ae[t] < "u" ? Ae[t] : void 0, xr = rs("MutationObserver"), hn = rs("IntersectionObserver"), Zt = rs("ResizeObserver"), Ts = rs("ScrollTimeline"), Gn = jn && Node.ELEMENT_NODE, { toString: Hf, hasOwnProperty: xs } = Object.prototype, as = (t) => t === void 0, Ks = (t) => t === null, qe = (t) => typeof t == "number", ls = (t) => typeof t == "string", Kn = (t) => typeof t == "boolean", Fe = (t) => typeof t == "function", Ge = (t) => Array.isArray(t), Lt = (t) => typeof t == "object" && !Ge(t) && !Ks(t), is = (t) => {
|
|
253
253
|
const e = !!t && t.length, s = qe(e) && e > -1 && e % 1 == 0;
|
|
254
254
|
return Ge(t) || !Fe(t) && s ? e > 0 && Lt(t) ? e - 1 in t : !0 : !1;
|
|
255
255
|
}, es = (t) => {
|
|
@@ -278,7 +278,7 @@ function ce(t, e) {
|
|
|
278
278
|
}
|
|
279
279
|
const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e, s) => (!ls(e) && is(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), dt = (t) => Array.from(t || []), Wn = (t) => Ge(t) ? t : [t], Ms = (t) => !!t && !t.length, pn = (t) => dt(new Set(t)), Ie = (t, e, s) => {
|
|
280
280
|
ce(t, (n) => n && n.apply(void 0, e || [])), !s && (t.length = 0);
|
|
281
|
-
}, Yn = "paddingTop", Xn = "paddingRight", Jn = "paddingLeft", Qn = "paddingBottom", Zn = "marginLeft", eo = "marginRight", to = "marginBottom",
|
|
281
|
+
}, Yn = "paddingTop", Xn = "paddingRight", Jn = "paddingLeft", Qn = "paddingBottom", Zn = "marginLeft", eo = "marginRight", to = "marginBottom", br = "overflowX", yr = "overflowY", bt = "width", yt = "height", ot = "visible", ut = "hidden", wt = "scroll", wr = (t) => {
|
|
282
282
|
const e = String(t || "");
|
|
283
283
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
284
284
|
}, ds = (t, e, s, r) => {
|
|
@@ -300,18 +300,18 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
300
300
|
}, As = (t, e) => {
|
|
301
301
|
const { _: s, p: r, v: n, m: c } = e || {};
|
|
302
302
|
let i, d, l, u, h = at;
|
|
303
|
-
const m = function(
|
|
304
|
-
h(), Es(i), u = i = d = void 0, h = at, t.apply(this,
|
|
305
|
-
}, v = (
|
|
303
|
+
const m = function(b) {
|
|
304
|
+
h(), Es(i), u = i = d = void 0, h = at, t.apply(this, b);
|
|
305
|
+
}, v = (y) => c && d ? c(d, y) : y, p = () => {
|
|
306
306
|
h !== at && m(v(l) || l);
|
|
307
307
|
}, x = function() {
|
|
308
|
-
const
|
|
308
|
+
const b = dt(arguments), A = Fe(s) ? s() : s;
|
|
309
309
|
if (qe(A) && A >= 0) {
|
|
310
|
-
const U = Fe(r) ? r() : r, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(
|
|
310
|
+
const U = Fe(r) ? r() : r, B = qe(U) && U >= 0, D = A > 0 ? Qt : Gs, L = A > 0 ? Es : qn, T = v(b) || b, O = m.bind(0, T);
|
|
311
311
|
let M;
|
|
312
312
|
h(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(p, U))), h = () => L(M), d = l = T;
|
|
313
313
|
} else
|
|
314
|
-
m(
|
|
314
|
+
m(b);
|
|
315
315
|
};
|
|
316
316
|
return x.S = p, x;
|
|
317
317
|
}, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s, r, n, c, i) => {
|
|
@@ -336,7 +336,7 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
336
336
|
for (const e in t)
|
|
337
337
|
return !1;
|
|
338
338
|
return !0;
|
|
339
|
-
}, Ds = (t, e, s) =>
|
|
339
|
+
}, Ds = (t, e, s) => Pn(t, _r(e, s)), ht = (t) => dt(new Set((Ge(t) ? t : (t || "").split(" ")).filter((e) => e))), Xs = (t, e) => t && t.getAttribute(e), vn = (t, e) => t && t.hasAttribute(e), Je = (t, e, s) => {
|
|
340
340
|
ce(ht(e), (r) => {
|
|
341
341
|
t && t.setAttribute(r, String(s || ""));
|
|
342
342
|
});
|
|
@@ -411,7 +411,7 @@ function pt(t, e, s) {
|
|
|
411
411
|
}
|
|
412
412
|
return n;
|
|
413
413
|
}
|
|
414
|
-
const
|
|
414
|
+
const bn = (t, e, s) => {
|
|
415
415
|
const r = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${r}top${n}`, i = `${r}right${n}`, d = `${r}bottom${n}`, l = `${r}left${n}`, u = pt(t, [c, i, d, l]);
|
|
416
416
|
return {
|
|
417
417
|
t: qt(u[c]),
|
|
@@ -419,22 +419,22 @@ const yn = (t, e, s) => {
|
|
|
419
419
|
b: qt(u[d]),
|
|
420
420
|
l: qt(u[l])
|
|
421
421
|
};
|
|
422
|
-
},
|
|
422
|
+
}, bs = (t, e) => `translate${Lt(t) ? `(${t.x},${t.y})` : `${e ? "X" : "Y"}(${t})`}`, Er = (t) => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Tr = {
|
|
423
423
|
w: 0,
|
|
424
424
|
h: 0
|
|
425
425
|
}, ms = (t, e) => e ? {
|
|
426
426
|
w: e[`${t}Width`],
|
|
427
427
|
h: e[`${t}Height`]
|
|
428
428
|
} : Tr, Mr = (t) => ms("inner", t || Ae), Mt = J(ms, "offset"), fo = J(ms, "client"), Bs = J(ms, "scroll"), tn = (t) => {
|
|
429
|
-
const e = parseFloat(pt(t,
|
|
429
|
+
const e = parseFloat(pt(t, bt)) || 0, s = parseFloat(pt(t, yt)) || 0;
|
|
430
430
|
return {
|
|
431
431
|
w: e - Cs(e),
|
|
432
432
|
h: s - Cs(s)
|
|
433
433
|
};
|
|
434
|
-
}, At = (t) => t.getBoundingClientRect(), Ar = (t) => !!t && Er(t), Rs = (t) => !!(t && (t[
|
|
434
|
+
}, At = (t) => t.getBoundingClientRect(), Ar = (t) => !!t && Er(t), Rs = (t) => !!(t && (t[yt] || t[bt])), ho = (t, e) => {
|
|
435
435
|
const s = Rs(t);
|
|
436
436
|
return !Rs(e) && s;
|
|
437
|
-
},
|
|
437
|
+
}, yn = (t, e, s, r) => {
|
|
438
438
|
ce(ht(e), (n) => {
|
|
439
439
|
t && t.removeEventListener(n, s, r);
|
|
440
440
|
});
|
|
@@ -446,11 +446,11 @@ const yn = (t, e, s) => {
|
|
|
446
446
|
};
|
|
447
447
|
return J(Ie, ht(e).map((u) => {
|
|
448
448
|
const h = d ? (m) => {
|
|
449
|
-
|
|
449
|
+
yn(t, u, h, i), s && s(m);
|
|
450
450
|
} : s;
|
|
451
|
-
return t && t.addEventListener(u, h, l), J(
|
|
451
|
+
return t && t.addEventListener(u, h, l), J(yn, t, u, h, i);
|
|
452
452
|
}));
|
|
453
|
-
}, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t),
|
|
453
|
+
}, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t), Pe = (t, e) => {
|
|
454
454
|
const { x: s, y: r } = qe(e) ? {
|
|
455
455
|
x: e,
|
|
456
456
|
y: e
|
|
@@ -470,12 +470,12 @@ const yn = (t, e, s) => {
|
|
|
470
470
|
}
|
|
471
471
|
}), Dr = (t, e) => {
|
|
472
472
|
const { T: s, D: r } = t, { w: n, h: c } = e, i = (m, v, p) => {
|
|
473
|
-
let x = fn(m) * p,
|
|
474
|
-
if (x ===
|
|
475
|
-
const
|
|
476
|
-
|
|
473
|
+
let x = fn(m) * p, y = fn(v) * p;
|
|
474
|
+
if (x === y) {
|
|
475
|
+
const b = Jt(m), A = Jt(v);
|
|
476
|
+
y = b > A ? 0 : y, x = b < A ? 0 : x;
|
|
477
477
|
}
|
|
478
|
-
return x = x ===
|
|
478
|
+
return x = x === y ? 0 : x, [x + 0, y + 0];
|
|
479
479
|
}, [d, l] = i(s.x, r.x, n), [u, h] = i(s.y, r.y, c);
|
|
480
480
|
return {
|
|
481
481
|
T: {
|
|
@@ -578,7 +578,7 @@ const yn = (t, e, s) => {
|
|
|
578
578
|
d && (s[n] = i);
|
|
579
579
|
}
|
|
580
580
|
}), s;
|
|
581
|
-
}, En = (t, e, s) => (r) => [Cn(t, r), s || Cn(e, r) !== void 0], Ct = "data-overlayscrollbars", Yt = "os-environment", Gt = `${Yt}-scrollbar-hidden`,
|
|
581
|
+
}, En = (t, e, s) => (r) => [Cn(t, r), s || Cn(e, r) !== void 0], Ct = "data-overlayscrollbars", Yt = "os-environment", Gt = `${Yt}-scrollbar-hidden`, ys = `${Ct}-initialize`, Xt = "noClipping", Tn = `${Ct}-body`, lt = Ct, Vr = "host", nt = `${Ct}-viewport`, Or = br, Hr = yr, Br = "arrange", xo = "measuring", bo = "scrollbarHidden", Rr = "scrollbarPressed", Fr = "noContent", Us = `${Ct}-padding`, Mn = `${Ct}-content`, sn = "os-size-observer", Ir = `${sn}-appear`, Nr = `${sn}-listener`, Ur = "os-trinsic-observer", zr = "os-theme-none", Be = "os-scrollbar", jr = `${Be}-rtl`, Pr = `${Be}-horizontal`, qr = `${Be}-vertical`, yo = `${Be}-track`, nn = `${Be}-handle`, Gr = `${Be}-visible`, Kr = `${Be}-cornerless`, An = `${Be}-interaction`, Dn = `${Be}-unusable`, zs = `${Be}-auto-hide`, Ln = `${zs}-hidden`, Vn = `${Be}-wheel`, Wr = `${yo}-interactive`, Yr = `${nn}-interactive`;
|
|
582
582
|
let ws;
|
|
583
583
|
const Xr = () => {
|
|
584
584
|
const t = (k, U, B) => {
|
|
@@ -616,16 +616,16 @@ const Xr = () => {
|
|
|
616
616
|
nativeScrollbarsOverlaid: !1,
|
|
617
617
|
body: null
|
|
618
618
|
}
|
|
619
|
-
}, x = re({}, Lr),
|
|
619
|
+
}, x = re({}, Lr), y = J(re, {}, x), b = J(re, {}, p), A = {
|
|
620
620
|
k: h,
|
|
621
621
|
M: v,
|
|
622
622
|
R: m,
|
|
623
623
|
V: !!Ts,
|
|
624
624
|
L: J(i, "r"),
|
|
625
|
-
P:
|
|
626
|
-
U: (k) => re(p, k) &&
|
|
627
|
-
N:
|
|
628
|
-
q: (k) => re(x, k) &&
|
|
625
|
+
P: b,
|
|
626
|
+
U: (k) => re(p, k) && b(),
|
|
627
|
+
N: y,
|
|
628
|
+
q: (k) => re(x, k) && y(),
|
|
629
629
|
B: re({}, p),
|
|
630
630
|
F: re({}, x)
|
|
631
631
|
};
|
|
@@ -672,8 +672,8 @@ const Xr = () => {
|
|
|
672
672
|
ce(l, (u) => ce(u[0], (h) => {
|
|
673
673
|
const m = u[1], v = n.get(h) || [];
|
|
674
674
|
if (t.contains(h) && m) {
|
|
675
|
-
const x = fe(h, m, (
|
|
676
|
-
r ? (x(), n.delete(h)) : e(
|
|
675
|
+
const x = fe(h, m, (y) => {
|
|
676
|
+
r ? (x(), n.delete(h)) : e(y);
|
|
677
677
|
});
|
|
678
678
|
n.set(h, xe(v, x));
|
|
679
679
|
} else
|
|
@@ -687,17 +687,17 @@ const Xr = () => {
|
|
|
687
687
|
const { j: c, X: i, Y: d, W: l, J: u, K: h } = r || {}, m = As(() => n && s(!0), {
|
|
688
688
|
_: 33,
|
|
689
689
|
p: 99
|
|
690
|
-
}), [v, p] = ta(t, m, d), x = c || [],
|
|
690
|
+
}), [v, p] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
|
|
691
691
|
if (!Ms(B)) {
|
|
692
692
|
const D = u || at, L = h || at, V = [], T = [];
|
|
693
693
|
let O = !1, M = !1;
|
|
694
694
|
if (ce(B, (S) => {
|
|
695
|
-
const { attributeName: H, target: $, type: w, oldValue: I, addedNodes: R, removedNodes: ne } = S,
|
|
695
|
+
const { attributeName: H, target: $, type: w, oldValue: I, addedNodes: R, removedNodes: ne } = S, ue = w === "attributes", le = w === "childList", F = t === $, ee = ue && H, te = ee && Xs($, H || ""), X = ls(te) ? te : null, me = ee && I !== X, z = Ws(y, H) && me;
|
|
696
696
|
if (e && (le || !F)) {
|
|
697
|
-
const q =
|
|
697
|
+
const q = ue && me, P = q && l && ss($, l), N = (P ? !D($, H, I, X) : !ue || q) && !L(S, !!P, t, r);
|
|
698
698
|
ce(R, (G) => xe(V, G)), ce(ne, (G) => xe(V, G)), M = M || N;
|
|
699
699
|
}
|
|
700
|
-
!e && F &&
|
|
700
|
+
!e && F && me && !D($, H, I, X) && (xe(T, H), O = O || z);
|
|
701
701
|
}), p((S) => pn(V).reduce((H, $) => (xe(H, io(S, $)), ss($, S) ? xe(H, $) : H), [])), e)
|
|
702
702
|
return !U && M && s(!1), [!1];
|
|
703
703
|
if (!Ms(T) || O) {
|
|
@@ -709,7 +709,7 @@ const Xr = () => {
|
|
|
709
709
|
return [() => (k.observe(t, {
|
|
710
710
|
attributes: !0,
|
|
711
711
|
attributeOldValue: !0,
|
|
712
|
-
attributeFilter:
|
|
712
|
+
attributeFilter: b,
|
|
713
713
|
subtree: e,
|
|
714
714
|
childList: e,
|
|
715
715
|
characterData: e
|
|
@@ -757,8 +757,8 @@ const Xr = () => {
|
|
|
757
757
|
const v = m instanceof ResizeObserverEntry;
|
|
758
758
|
let p = !1, x = !1;
|
|
759
759
|
if (v) {
|
|
760
|
-
const [
|
|
761
|
-
x = ho(
|
|
760
|
+
const [y, , b] = c(m.contentRect), A = Rs(y);
|
|
761
|
+
x = ho(y, b), p = !x && !A;
|
|
762
762
|
} else
|
|
763
763
|
x = m === !0;
|
|
764
764
|
p || e({
|
|
@@ -807,9 +807,9 @@ const Xr = () => {
|
|
|
807
807
|
}, () => s && d(!0, s.takeRecords())];
|
|
808
808
|
}, ca = (t, e, s, r) => {
|
|
809
809
|
let n, c, i, d, l, u;
|
|
810
|
-
const h = `[${lt}]`, m = `[${nt}]`, v = [], p = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt:
|
|
810
|
+
const h = `[${lt}]`, m = `[${nt}]`, v = [], p = ["wrap", "cols", "rows"], x = ["id", "class", "style", "open"], { vt: y, ht: b, ot: A, gt: k, bt: U, wt: B, nt: D, yt: L, St: V, Ot: T } = t, O = (C) => pt(C, "direction") === "rtl", M = {
|
|
811
811
|
$t: !1,
|
|
812
|
-
ct: O(
|
|
812
|
+
ct: O(y)
|
|
813
813
|
}, S = Ke(), H = Ht(To), [$] = Ve({
|
|
814
814
|
i: so,
|
|
815
815
|
o: {
|
|
@@ -817,8 +817,8 @@ const Xr = () => {
|
|
|
817
817
|
h: 0
|
|
818
818
|
}
|
|
819
819
|
}, () => {
|
|
820
|
-
const C = H && H.tt(t, e, M, S, s).ut, G = !(L && D) && Qs(
|
|
821
|
-
return
|
|
820
|
+
const C = H && H.tt(t, e, M, S, s).ut, G = !(L && D) && Qs(b, lt, Xt), K = !D && V(Br), Z = K && He(k), ie = T(xo, G), ye = K && C && C()[0], Se = Bs(A), oe = tn(A);
|
|
821
|
+
return ye && ye(), Pe(k, Z), G && ie(), {
|
|
822
822
|
w: Se.w + oe.w,
|
|
823
823
|
h: Se.h + oe.h
|
|
824
824
|
};
|
|
@@ -830,7 +830,7 @@ const Xr = () => {
|
|
|
830
830
|
return [Qe(et(G), et(K)).reduce((Z, ie) => (Z[ie] = G[ie] || K[ie], Z), {})];
|
|
831
831
|
}
|
|
832
832
|
}), R = (C) => {
|
|
833
|
-
const N = O(
|
|
833
|
+
const N = O(y);
|
|
834
834
|
re(C, {
|
|
835
835
|
Ct: u !== N
|
|
836
836
|
}), re(M, {
|
|
@@ -843,7 +843,7 @@ const Xr = () => {
|
|
|
843
843
|
return re(M, {
|
|
844
844
|
$t: G
|
|
845
845
|
}), !N && r(Z), Z;
|
|
846
|
-
},
|
|
846
|
+
}, ue = ({ ft: C, dt: N }) => {
|
|
847
847
|
const K = !(C && !N) && S.R ? I : r, Z = {
|
|
848
848
|
ft: C || N,
|
|
849
849
|
dt: N
|
|
@@ -859,18 +859,18 @@ const Xr = () => {
|
|
|
859
859
|
Et: N
|
|
860
860
|
};
|
|
861
861
|
return R(K), N && !G && I(K), K;
|
|
862
|
-
}, [ee, te] = U ? ia(
|
|
862
|
+
}, [ee, te] = U ? ia(b, ne) : [], X = !D && Mo(b, ue, {
|
|
863
863
|
dt: !0
|
|
864
|
-
}), [
|
|
864
|
+
}), [me, z] = On(b, !1, F, {
|
|
865
865
|
X: x,
|
|
866
866
|
j: Qe(x, v)
|
|
867
867
|
}), q = D && Zt && new Zt((C) => {
|
|
868
868
|
const N = C[C.length - 1].contentRect;
|
|
869
|
-
|
|
869
|
+
ue({
|
|
870
870
|
ft: !0,
|
|
871
871
|
dt: ho(N, l)
|
|
872
872
|
}), l = N;
|
|
873
|
-
}),
|
|
873
|
+
}), P = As(() => {
|
|
874
874
|
const [, C] = $();
|
|
875
875
|
r({
|
|
876
876
|
Ht: C
|
|
@@ -880,20 +880,20 @@ const Xr = () => {
|
|
|
880
880
|
v: !0
|
|
881
881
|
});
|
|
882
882
|
return [() => {
|
|
883
|
-
q && q.observe(
|
|
884
|
-
const C = X && X(), N = ee && ee(), G =
|
|
883
|
+
q && q.observe(b);
|
|
884
|
+
const C = X && X(), N = ee && ee(), G = me(), K = S.L((Z) => {
|
|
885
885
|
Z ? I({
|
|
886
886
|
zt: Z
|
|
887
|
-
}) :
|
|
887
|
+
}) : P();
|
|
888
888
|
});
|
|
889
889
|
return () => {
|
|
890
890
|
q && q.disconnect(), C && C(), N && N(), d && d(), G(), K();
|
|
891
891
|
};
|
|
892
892
|
}, ({ It: C, At: N, Tt: G }) => {
|
|
893
|
-
const K = {}, [Z] = C("update.ignoreMutation"), [ie,
|
|
893
|
+
const K = {}, [Z] = C("update.ignoreMutation"), [ie, ye] = C("update.attributes"), [Se, oe] = C("update.elementEvents"), [we, Ee] = C("update.debounce"), Re = oe || ye, ke = N || G, De = (be) => Fe(Z) && Z(be);
|
|
894
894
|
if (Re) {
|
|
895
895
|
i && i(), d && d();
|
|
896
|
-
const [
|
|
896
|
+
const [be, ge] = On(U || A, !0, le, {
|
|
897
897
|
j: Qe(w, ie || []),
|
|
898
898
|
Y: Se,
|
|
899
899
|
W: h,
|
|
@@ -902,94 +902,94 @@ const Xr = () => {
|
|
|
902
902
|
return (!_e && Le && !D ? Sr(Me, h, m) : !1) || !!_t(Me, `.${Be}`) || !!De(Te);
|
|
903
903
|
}
|
|
904
904
|
});
|
|
905
|
-
d =
|
|
905
|
+
d = be(), i = ge;
|
|
906
906
|
}
|
|
907
907
|
if (Ee)
|
|
908
908
|
if (I.S(), Ge(we)) {
|
|
909
|
-
const
|
|
910
|
-
n = qe(
|
|
909
|
+
const be = we[0], ge = we[1];
|
|
910
|
+
n = qe(be) && be, c = qe(ge) && ge;
|
|
911
911
|
} else qe(we) ? (n = we, c = !1) : (n = !1, c = !1);
|
|
912
912
|
if (ke) {
|
|
913
|
-
const
|
|
914
|
-
|
|
913
|
+
const be = z(), ge = te && te(), Te = i && i();
|
|
914
|
+
be && re(K, F(be[0], be[1], ke)), ge && re(K, ne(ge[0], ke)), Te && re(K, le(Te[0], ke));
|
|
915
915
|
}
|
|
916
916
|
return R(K), K;
|
|
917
917
|
}, M];
|
|
918
918
|
}, da = (t, e, s, r) => {
|
|
919
|
-
const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: h, gt: m, yt: v, nt: p } = e, { scrollbars: x } = h ? {} : t, { slot:
|
|
919
|
+
const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: h, gt: m, yt: v, nt: p } = e, { scrollbars: x } = h ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
|
|
920
920
|
source: m,
|
|
921
921
|
axis: z
|
|
922
922
|
}), k = {
|
|
923
923
|
x: A("x"),
|
|
924
924
|
y: A("y")
|
|
925
|
-
}, U = ko([d, l, u], () => p && v ? d : l, i,
|
|
925
|
+
}, U = ko([d, l, u], () => p && v ? d : l, i, y), B = (z, q) => {
|
|
926
926
|
if (q) {
|
|
927
|
-
const Z = z ?
|
|
927
|
+
const Z = z ? bt : yt, { kt: ie, Mt: ye } = q, Se = At(ye)[Z], oe = At(ie)[Z];
|
|
928
928
|
return Ds(0, 1, Se / oe || 0);
|
|
929
929
|
}
|
|
930
|
-
const
|
|
930
|
+
const P = z ? "x" : "y", { Rt: C, Vt: N } = s, G = N[P], K = C[P];
|
|
931
931
|
return Ds(0, 1, G / (G + K) || 0);
|
|
932
|
-
}, D = (z, q,
|
|
933
|
-
const C = B(
|
|
932
|
+
}, D = (z, q, P) => {
|
|
933
|
+
const C = B(P, z);
|
|
934
934
|
return 1 / C * (1 - C) * q;
|
|
935
935
|
}, L = (z) => re(z, {
|
|
936
936
|
clear: ["left"]
|
|
937
937
|
}), V = (z) => {
|
|
938
|
-
|
|
939
|
-
(z ? Ws(Wn(z),
|
|
938
|
+
b.forEach((q, P) => {
|
|
939
|
+
(z ? Ws(Wn(z), P) : !0) && (ce(q || [], (N) => {
|
|
940
940
|
N && N.cancel();
|
|
941
|
-
}),
|
|
941
|
+
}), b.delete(P));
|
|
942
942
|
});
|
|
943
|
-
}, T = (z, q,
|
|
944
|
-
const N =
|
|
945
|
-
G ? G.effect = new KeyframeEffect(z,
|
|
943
|
+
}, T = (z, q, P, C) => {
|
|
944
|
+
const N = b.get(z) || [], G = N.find((K) => K && K.timeline === q);
|
|
945
|
+
G ? G.effect = new KeyframeEffect(z, P, {
|
|
946
946
|
composite: C
|
|
947
|
-
}) :
|
|
947
|
+
}) : b.set(z, Qe(N, [z.animate(P, {
|
|
948
948
|
timeline: q,
|
|
949
949
|
composite: C
|
|
950
950
|
})]));
|
|
951
|
-
}, O = (z, q,
|
|
952
|
-
const C =
|
|
951
|
+
}, O = (z, q, P) => {
|
|
952
|
+
const C = P ? Zs : lo;
|
|
953
953
|
ce(z, (N) => {
|
|
954
954
|
C(N.Lt, q);
|
|
955
955
|
});
|
|
956
956
|
}, M = (z, q) => {
|
|
957
|
-
ce(z, (
|
|
958
|
-
const [C, N] = q(
|
|
957
|
+
ce(z, (P) => {
|
|
958
|
+
const [C, N] = q(P);
|
|
959
959
|
Vt(C, N);
|
|
960
960
|
});
|
|
961
961
|
}, S = (z, q) => {
|
|
962
|
-
M(z, (
|
|
963
|
-
const { Mt: C } =
|
|
962
|
+
M(z, (P) => {
|
|
963
|
+
const { Mt: C } = P;
|
|
964
964
|
return [C, {
|
|
965
|
-
[q ?
|
|
965
|
+
[q ? bt : yt]: xn(B(q))
|
|
966
966
|
}];
|
|
967
967
|
});
|
|
968
968
|
}, H = (z, q) => {
|
|
969
|
-
const { Pt:
|
|
969
|
+
const { Pt: P } = s, C = q ? "x" : "y", N = k[C], G = wn(P)[C], K = (Z, ie) => bs(xn(D(Z, G ? ie : 1 - ie, q)), q);
|
|
970
970
|
N ? ce(z, (Z) => {
|
|
971
971
|
const { Mt: ie } = Z;
|
|
972
972
|
T(ie, N, L({
|
|
973
|
-
transform: [0, 1].map((
|
|
973
|
+
transform: [0, 1].map((ye) => K(Z, ye))
|
|
974
974
|
}));
|
|
975
975
|
}) : M(z, (Z) => [Z.Mt, {
|
|
976
|
-
transform: K(Z, kn(
|
|
976
|
+
transform: K(Z, kn(P, He(m))[C])
|
|
977
977
|
}]);
|
|
978
|
-
}, $ = (z) => p && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q,
|
|
979
|
-
const C = Kn(
|
|
978
|
+
}, $ = (z) => p && !v && kt(z) === u, w = [], I = [], R = [], ne = (z, q, P) => {
|
|
979
|
+
const C = Kn(P), N = C ? P : !0, G = C ? !P : !0;
|
|
980
980
|
N && O(I, z, q), G && O(R, z, q);
|
|
981
|
-
},
|
|
981
|
+
}, ue = () => {
|
|
982
982
|
S(I, !0), S(R);
|
|
983
983
|
}, le = () => {
|
|
984
984
|
H(I, !0), H(R);
|
|
985
985
|
}, F = () => {
|
|
986
986
|
if (p) {
|
|
987
|
-
const { Rt: z, Pt: q } = s,
|
|
987
|
+
const { Rt: z, Pt: q } = s, P = wn(q), C = 0.5;
|
|
988
988
|
if (k.x && k.y)
|
|
989
989
|
ce(Qe(R, I), ({ Lt: N }) => {
|
|
990
990
|
if ($(N)) {
|
|
991
991
|
const G = (K) => T(N, k[K], L({
|
|
992
|
-
transform: [0,
|
|
992
|
+
transform: [0, P[K] ? 1 : -1].map((Z) => bs(Hs(Z * (z[K] - C)), K === "x"))
|
|
993
993
|
}), "add");
|
|
994
994
|
G("x"), G("y");
|
|
995
995
|
} else
|
|
@@ -997,14 +997,14 @@ const Xr = () => {
|
|
|
997
997
|
});
|
|
998
998
|
else {
|
|
999
999
|
const N = kn(q, He(m)), G = (K) => {
|
|
1000
|
-
const { Lt: Z } = K, ie = $(Z) && Z,
|
|
1000
|
+
const { Lt: Z } = K, ie = $(Z) && Z, ye = (Se, oe, we) => {
|
|
1001
1001
|
const Ee = oe * Se;
|
|
1002
1002
|
return Hs(we ? Ee : -Ee);
|
|
1003
1003
|
};
|
|
1004
1004
|
return [ie, ie && {
|
|
1005
|
-
transform:
|
|
1006
|
-
x:
|
|
1007
|
-
y:
|
|
1005
|
+
transform: bs({
|
|
1006
|
+
x: ye(N.x, z.x, P.x),
|
|
1007
|
+
y: ye(N.y, z.y, P.y)
|
|
1008
1008
|
})
|
|
1009
1009
|
}];
|
|
1010
1010
|
};
|
|
@@ -1012,15 +1012,15 @@ const Xr = () => {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
}, ee = (z) => {
|
|
1015
|
-
const
|
|
1016
|
-
Lt:
|
|
1015
|
+
const P = xt(`${Be} ${z ? Pr : qr}`), C = xt(yo), N = xt(nn), G = {
|
|
1016
|
+
Lt: P,
|
|
1017
1017
|
kt: C,
|
|
1018
1018
|
Mt: N
|
|
1019
1019
|
};
|
|
1020
|
-
return xe(z ? I : R, G), xe(w, [Oe(
|
|
1021
|
-
}, te = J(ee, !0), X = J(ee, !1),
|
|
1020
|
+
return xe(z ? I : R, G), xe(w, [Oe(P, C), Oe(C, N), J(it, P), V, r(G, ne, H, z)]), G;
|
|
1021
|
+
}, te = J(ee, !0), X = J(ee, !1), me = () => (Oe(U, I[0].Lt), Oe(U, R[0].Lt), J(Ie, w));
|
|
1022
1022
|
return te(), X(), [{
|
|
1023
|
-
Ut:
|
|
1023
|
+
Ut: ue,
|
|
1024
1024
|
Nt: le,
|
|
1025
1025
|
qt: F,
|
|
1026
1026
|
Bt: ne,
|
|
@@ -1036,39 +1036,39 @@ const Xr = () => {
|
|
|
1036
1036
|
Xt: X,
|
|
1037
1037
|
Yt: J(M, R)
|
|
1038
1038
|
}
|
|
1039
|
-
},
|
|
1039
|
+
}, me];
|
|
1040
1040
|
}, ua = (t, e, s, r) => (n, c, i, d) => {
|
|
1041
|
-
const { ht: l, ot: u, nt: h, gt: m, Jt: v, Ot: p } = e, { Lt: x, kt:
|
|
1041
|
+
const { ht: l, ot: u, nt: h, gt: m, Jt: v, Ot: p } = e, { Lt: x, kt: y, Mt: b } = n, [A, k] = mt(333), [U, B] = mt(444), [D, L] = mt(), V = J(i, [n], d), T = ($) => {
|
|
1042
1042
|
Fe(m.scrollBy) && m.scrollBy({
|
|
1043
1043
|
behavior: "smooth",
|
|
1044
1044
|
left: $.x,
|
|
1045
1045
|
top: $.y
|
|
1046
1046
|
});
|
|
1047
|
-
}, O = d ?
|
|
1048
|
-
const $ = "pointerup pointercancel lostpointercapture", w = `client${d ? "X" : "Y"}`, I = d ? "left" : "top", R = d ? "w" : "h", ne = d ? "x" : "y",
|
|
1049
|
-
const { Rt: te } = s, X = Mt(
|
|
1050
|
-
|
|
1047
|
+
}, O = d ? bt : yt, M = () => {
|
|
1048
|
+
const $ = "pointerup pointercancel lostpointercapture", w = `client${d ? "X" : "Y"}`, I = d ? "left" : "top", R = d ? "w" : "h", ne = d ? "x" : "y", ue = (le, F) => (ee) => {
|
|
1049
|
+
const { Rt: te } = s, X = Mt(y)[R] - Mt(b)[R], z = F * ee / X * te[ne];
|
|
1050
|
+
Pe(m, {
|
|
1051
1051
|
[ne]: le + z
|
|
1052
1052
|
});
|
|
1053
1053
|
};
|
|
1054
|
-
return fe(
|
|
1055
|
-
const F = _t(le.target, `.${nn}`) ===
|
|
1056
|
-
if (X === 0 &&
|
|
1054
|
+
return fe(y, "pointerdown", (le) => {
|
|
1055
|
+
const F = _t(le.target, `.${nn}`) === b, ee = F ? b : y, te = t.scrollbars, { button: X, isPrimary: me, pointerType: z } = le, { pointers: q } = te;
|
|
1056
|
+
if (X === 0 && me && te[F ? "dragScroll" : "clickScroll"] && (q || []).includes(z)) {
|
|
1057
1057
|
B();
|
|
1058
|
-
const C = !F && le.shiftKey, N = J(At,
|
|
1058
|
+
const C = !F && le.shiftKey, N = J(At, b), G = J(At, y), K = (_e, Me) => (_e || N())[I] - (Me || G())[I], Z = Cs(At(m)[O]) / Mt(m)[R] || 1, ie = ue(He(m)[ne], 1 / Z), ye = le[w], Se = N(), oe = G(), we = Se[O], Ee = K(Se, oe) + we / 2, Re = ye - oe[I], ke = F ? 0 : Re - Ee, De = (_e) => {
|
|
1059
1059
|
Ie(Te), ee.releasePointerCapture(_e.pointerId);
|
|
1060
|
-
},
|
|
1060
|
+
}, be = () => p(Rr, !0), ge = be(), Te = [() => {
|
|
1061
1061
|
const _e = He(m);
|
|
1062
1062
|
ge();
|
|
1063
1063
|
const Me = He(m), Le = {
|
|
1064
1064
|
x: Me.x - _e.x,
|
|
1065
1065
|
y: Me.y - _e.y
|
|
1066
1066
|
};
|
|
1067
|
-
(Jt(Le.x) > 3 || Jt(Le.y) > 3) && (
|
|
1067
|
+
(Jt(Le.x) > 3 || Jt(Le.y) > 3) && (be(), Pe(m, _e), T(Le), U(ge));
|
|
1068
1068
|
}, fe(v, $, De), fe(v, "selectstart", (_e) => Fs(_e), {
|
|
1069
1069
|
H: !1
|
|
1070
|
-
}), fe(
|
|
1071
|
-
const Me = _e[w] -
|
|
1070
|
+
}), fe(y, $, De), fe(y, "pointermove", (_e) => {
|
|
1071
|
+
const Me = _e[w] - ye;
|
|
1072
1072
|
(F || C) && ie(ke + Me);
|
|
1073
1073
|
})];
|
|
1074
1074
|
if (ee.setPointerCapture(le.pointerId), C)
|
|
@@ -1082,7 +1082,7 @@ const Xr = () => {
|
|
|
1082
1082
|
};
|
|
1083
1083
|
let S = !0;
|
|
1084
1084
|
const H = ($) => $.propertyName.indexOf(O) > -1;
|
|
1085
|
-
return J(Ie, [fe(
|
|
1085
|
+
return J(Ie, [fe(b, "pointermove pointerleave", r), fe(x, "pointerenter", () => {
|
|
1086
1086
|
c(An, !0);
|
|
1087
1087
|
}), fe(x, "pointerleave pointercancel", () => {
|
|
1088
1088
|
c(An, !1);
|
|
@@ -1100,14 +1100,14 @@ const Xr = () => {
|
|
|
1100
1100
|
}, {
|
|
1101
1101
|
H: !1,
|
|
1102
1102
|
I: !0
|
|
1103
|
-
}), fe(
|
|
1103
|
+
}), fe(b, "transitionstart", ($) => {
|
|
1104
1104
|
if (H($)) {
|
|
1105
1105
|
const w = () => {
|
|
1106
1106
|
V(), D(w);
|
|
1107
1107
|
};
|
|
1108
1108
|
w();
|
|
1109
1109
|
}
|
|
1110
|
-
}), fe(
|
|
1110
|
+
}), fe(b, "transitionend transitioncancel", ($) => {
|
|
1111
1111
|
H($) && (L(), V());
|
|
1112
1112
|
}), fe(x, "pointerdown", J(fe, v, "click", vo, {
|
|
1113
1113
|
A: !0,
|
|
@@ -1118,7 +1118,7 @@ const Xr = () => {
|
|
|
1118
1118
|
}), M(), k, B, L]);
|
|
1119
1119
|
}, ma = (t, e, s, r, n, c) => {
|
|
1120
1120
|
let i, d, l, u, h, m = at, v = 0;
|
|
1121
|
-
const p = (F) => F.pointerType === "mouse", [x,
|
|
1121
|
+
const p = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, r, ua(e, n, r, (F) => p(F) && R())), { ht: T, Kt: O, yt: M } = n, { Bt: S, Ut: H, Nt: $, qt: w } = L, I = (F, ee) => {
|
|
1122
1122
|
if (D(), F)
|
|
1123
1123
|
S(Ln);
|
|
1124
1124
|
else {
|
|
@@ -1126,16 +1126,16 @@ const Xr = () => {
|
|
|
1126
1126
|
v > 0 && !ee ? B(te) : te();
|
|
1127
1127
|
}
|
|
1128
1128
|
}, R = () => {
|
|
1129
|
-
(l ? !i : !u) && (I(!0),
|
|
1129
|
+
(l ? !i : !u) && (I(!0), b(() => {
|
|
1130
1130
|
I(!1);
|
|
1131
1131
|
}));
|
|
1132
1132
|
}, ne = (F) => {
|
|
1133
1133
|
S(zs, F, !0), S(zs, F, !1);
|
|
1134
|
-
},
|
|
1134
|
+
}, ue = (F) => {
|
|
1135
1135
|
p(F) && (i = l, l && I(!0));
|
|
1136
|
-
}, le = [D, A, U,
|
|
1136
|
+
}, le = [D, A, U, y, () => m(), fe(T, "pointerover", ue, {
|
|
1137
1137
|
A: !0
|
|
1138
|
-
}), fe(T, "pointerenter",
|
|
1138
|
+
}), fe(T, "pointerenter", ue), fe(T, "pointerleave", (F) => {
|
|
1139
1139
|
p(F) && (i = !1, l && I(!1));
|
|
1140
1140
|
}), fe(T, "pointermove", (F) => {
|
|
1141
1141
|
p(F) && d && R();
|
|
@@ -1145,24 +1145,24 @@ const Xr = () => {
|
|
|
1145
1145
|
}), c(F), w();
|
|
1146
1146
|
})];
|
|
1147
1147
|
return [() => J(Ie, xe(le, V())), ({ It: F, Tt: ee, Gt: te, Qt: X }) => {
|
|
1148
|
-
const { Zt:
|
|
1148
|
+
const { Zt: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } = r, [ye, Se] = F("showNativeOverlaidScrollbars"), [oe, we] = F("scrollbars.theme"), [Ee, Re] = F("scrollbars.visibility"), [ke, De] = F("scrollbars.autoHide"), [be, ge] = F("scrollbars.autoHideSuspend"), [Te] = F("scrollbars.autoHideDelay"), [_e, Me] = F("scrollbars.dragScroll"), [Le, vt] = F("scrollbars.clickScroll"), [Bt, hs] = F("overflow"), ps = N && !ee, vs = ie.x || ie.y, Ne = me || z || P || C || ee, gs = q || Re || hs, Rt = ye && K.x && K.y, Ft = (tt, Et, Tt) => {
|
|
1149
1149
|
const It = tt.includes(wt) && (Ee === ot || Ee === "auto" && Et === wt);
|
|
1150
1150
|
return S(Gr, It, Tt), It;
|
|
1151
1151
|
};
|
|
1152
|
-
if (v = Te, ps && (
|
|
1152
|
+
if (v = Te, ps && (be && vs ? (ne(!1), m(), k(() => {
|
|
1153
1153
|
m = fe(O, "scroll", J(ne, !0), {
|
|
1154
1154
|
A: !0
|
|
1155
1155
|
});
|
|
1156
|
-
})) : ne(!0)), Se && S(zr, Rt), we && (S(h), S(oe, !0), h = oe), ge && !
|
|
1156
|
+
})) : ne(!0)), Se && S(zr, Rt), we && (S(h), S(oe, !0), h = oe), ge && !be && ne(!0), De && (d = ke === "move", l = ke === "leave", u = ke === "never", I(u, !0)), Me && S(Yr, _e), vt && S(Wr, Le), gs) {
|
|
1157
1157
|
const tt = Ft(Bt.x, Z.x, !0), Et = Ft(Bt.y, Z.y, !1);
|
|
1158
1158
|
S(Kr, !(tt && Et));
|
|
1159
1159
|
}
|
|
1160
|
-
Ne && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(
|
|
1160
|
+
Ne && (H(), $(), w(), S(Dn, !ie.x, !0), S(Dn, !ie.y, !1), S(jr, G && !M));
|
|
1161
1161
|
}, {}, L];
|
|
1162
1162
|
}, fa = (t) => {
|
|
1163
|
-
const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), h = u ? {} : t, { elements: m } = h, { host: v, padding: p, viewport: x, content:
|
|
1164
|
-
vt:
|
|
1165
|
-
ht:
|
|
1163
|
+
const e = Ke(), { P: s, R: r } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), h = u ? {} : t, { elements: m } = h, { host: v, padding: p, viewport: x, content: y } = m || {}, b = u ? t : h.target, A = co(b), k = ss(b, "textarea"), U = b.ownerDocument, B = U.documentElement, D = () => U.defaultView || Ae, L = J(Jr, [b]), V = J(ko, [b]), T = J(xt, ""), O = J(L, T, d), M = J(V, T, l), S = O(x), H = S === b, $ = H && A, w = !H && M(y), I = !H && S === w, R = $ ? B : S, ne = k ? L(T, c, v) : b, ue = $ ? R : ne, le = !H && V(T, i, p), F = !I && w, ee = [F, R, le, ue].map((oe) => ts(oe) && !kt(oe) && oe), te = (oe) => oe && Ws(ee, oe), X = te(R) ? b : R, me = {
|
|
1164
|
+
vt: b,
|
|
1165
|
+
ht: ue,
|
|
1166
1166
|
ot: R,
|
|
1167
1167
|
cn: le,
|
|
1168
1168
|
bt: F,
|
|
@@ -1177,40 +1177,40 @@ const Xr = () => {
|
|
|
1177
1177
|
ln: D,
|
|
1178
1178
|
St: (oe) => Qs(R, nt, oe),
|
|
1179
1179
|
Ot: (oe, we) => Ls(R, nt, oe, we)
|
|
1180
|
-
}, { vt: z, ht: q, cn:
|
|
1181
|
-
Ue(q, [lt,
|
|
1180
|
+
}, { vt: z, ht: q, cn: P, ot: C, bt: N } = me, G = [() => {
|
|
1181
|
+
Ue(q, [lt, ys]), Ue(z, ys), A && Ue(B, [ys, lt]);
|
|
1182
1182
|
}], K = k && te(q);
|
|
1183
|
-
let Z = k ? z : Vs([N, C,
|
|
1184
|
-
const ie = $ ? z : N || C,
|
|
1185
|
-
return [
|
|
1183
|
+
let Z = k ? z : Vs([N, C, P, q, z].find((oe) => oe && !te(oe)));
|
|
1184
|
+
const ie = $ ? z : N || C, ye = J(Ie, G);
|
|
1185
|
+
return [me, () => {
|
|
1186
1186
|
const oe = D(), we = Os(), Ee = (ge) => {
|
|
1187
1187
|
Oe(kt(ge), Vs(ge)), it(ge);
|
|
1188
1188
|
}, Re = (ge) => fe(ge, "focusin focusout focus blur", vo, {
|
|
1189
1189
|
I: !0,
|
|
1190
1190
|
H: !1
|
|
1191
|
-
}), ke = "tabindex", De = Xs(C, ke),
|
|
1192
|
-
return Je(q, lt, H ? "" : Vr), Je(
|
|
1191
|
+
}), ke = "tabindex", De = Xs(C, ke), be = Re(we);
|
|
1192
|
+
return Je(q, lt, H ? "" : Vr), Je(P, Us, ""), Je(C, nt, ""), Je(N, Mn, ""), H || (Je(C, ke, De || "-1"), A && Je(B, Tn, "")), K && (gn(z, q), xe(G, () => {
|
|
1193
1193
|
gn(q, z), it(q);
|
|
1194
|
-
})), Oe(ie, Z), Oe(q,
|
|
1194
|
+
})), Oe(ie, Z), Oe(q, P), Oe(P || q, !H && C), Oe(C, N), xe(G, [be, () => {
|
|
1195
1195
|
const ge = Os(), Te = te(C), _e = Te && ge === C ? z : ge, Me = Re(_e);
|
|
1196
|
-
Ue(
|
|
1197
|
-
}]), r && !H && (Js(C, nt,
|
|
1198
|
-
},
|
|
1196
|
+
Ue(P, Us), Ue(N, Mn), Ue(C, nt), A && Ue(B, Tn), De ? Je(C, ke, De) : Ue(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
|
|
1197
|
+
}]), r && !H && (Js(C, nt, bo), xe(G, J(Ue, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
|
|
1198
|
+
}, ye];
|
|
1199
1199
|
}, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt: r }) => {
|
|
1200
1200
|
const { xt: n } = e || {}, { $t: c } = s;
|
|
1201
1201
|
t && (n || r) && Vt(t, {
|
|
1202
|
-
[
|
|
1202
|
+
[yt]: c && "100%"
|
|
1203
1203
|
});
|
|
1204
1204
|
}, pa = ({ ht: t, cn: e, ot: s, nt: r }, n) => {
|
|
1205
1205
|
const [c, i] = Ve({
|
|
1206
1206
|
i: kr,
|
|
1207
|
-
o:
|
|
1208
|
-
}, J(
|
|
1207
|
+
o: bn()
|
|
1208
|
+
}, J(bn, t, "padding", ""));
|
|
1209
1209
|
return ({ It: d, Gt: l, an: u, Tt: h }) => {
|
|
1210
1210
|
let [m, v] = i(h);
|
|
1211
|
-
const { R: p } = Ke(), { ft: x, Ht:
|
|
1212
|
-
(x || v || (h ||
|
|
1213
|
-
const D = !r && (U ||
|
|
1211
|
+
const { R: p } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
|
|
1212
|
+
(x || v || (h || y)) && ([m, v] = c(h));
|
|
1213
|
+
const D = !r && (U || b || v);
|
|
1214
1214
|
if (D) {
|
|
1215
1215
|
const L = !k || !e && !p, V = m.r + m.l, T = m.t + m.b, O = {
|
|
1216
1216
|
[eo]: L && !A ? -V : 0,
|
|
@@ -1219,7 +1219,7 @@ const Xr = () => {
|
|
|
1219
1219
|
top: L ? -m.t : 0,
|
|
1220
1220
|
right: L ? A ? -m.r : "auto" : 0,
|
|
1221
1221
|
left: L ? A ? "auto" : -m.l : 0,
|
|
1222
|
-
[
|
|
1222
|
+
[bt]: L && `calc(100% + ${V}px)`
|
|
1223
1223
|
}, M = {
|
|
1224
1224
|
[Yn]: L ? m.t : 0,
|
|
1225
1225
|
[Xn]: L ? m.r : 0,
|
|
@@ -1237,7 +1237,7 @@ const Xr = () => {
|
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
1239
|
}, va = (t, e) => {
|
|
1240
|
-
const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: h, ln: m } = t, { R: v } = s, p = u && i, x = J(
|
|
1240
|
+
const s = Ke(), { ht: r, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: h, ln: m } = t, { R: v } = s, p = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
|
|
1241
1241
|
i: so,
|
|
1242
1242
|
o: {
|
|
1243
1243
|
w: 0,
|
|
@@ -1257,62 +1257,62 @@ const Xr = () => {
|
|
|
1257
1257
|
w: X.w > te ? X.w : 0,
|
|
1258
1258
|
h: X.h > te ? X.h : 0
|
|
1259
1259
|
};
|
|
1260
|
-
}, [B, D] = Ve(
|
|
1261
|
-
i: (F, ee) => ds(F, ee,
|
|
1260
|
+
}, [B, D] = Ve(b, J(tn, c)), [L, V] = Ve(b, J(Bs, c)), [T, O] = Ve(b), [M] = Ve(A), [S, H] = Ve(b), [$] = Ve(A), [w] = Ve({
|
|
1261
|
+
i: (F, ee) => ds(F, ee, y),
|
|
1262
1262
|
o: {}
|
|
1263
|
-
}, () => Ar(c) ? pt(c,
|
|
1263
|
+
}, () => Ar(c) ? pt(c, y) : {}), [I, R] = Ve({
|
|
1264
1264
|
i: (F, ee) => Wt(F.T, ee.T) && Wt(F.D, ee.D),
|
|
1265
1265
|
o: go()
|
|
1266
1266
|
}, () => {
|
|
1267
1267
|
k(!0);
|
|
1268
|
-
const F = He(l), ee = h(Fr, !0), te = fe(d, wt, (
|
|
1268
|
+
const F = He(l), ee = h(Fr, !0), te = fe(d, wt, (P) => {
|
|
1269
1269
|
const C = He(l);
|
|
1270
|
-
|
|
1270
|
+
P.isTrusted && C.x === F.x && C.y === F.y && po(P);
|
|
1271
1271
|
}, {
|
|
1272
1272
|
I: !0,
|
|
1273
1273
|
A: !0
|
|
1274
1274
|
});
|
|
1275
|
-
|
|
1275
|
+
Pe(l, {
|
|
1276
1276
|
x: 0,
|
|
1277
1277
|
y: 0
|
|
1278
1278
|
}), ee();
|
|
1279
|
-
const X = He(l),
|
|
1280
|
-
|
|
1281
|
-
x:
|
|
1282
|
-
y:
|
|
1279
|
+
const X = He(l), me = Bs(l);
|
|
1280
|
+
Pe(l, {
|
|
1281
|
+
x: me.w,
|
|
1282
|
+
y: me.h
|
|
1283
1283
|
});
|
|
1284
1284
|
const z = He(l);
|
|
1285
|
-
|
|
1286
|
-
x: z.x - X.x < 1 && -
|
|
1287
|
-
y: z.y - X.y < 1 && -
|
|
1285
|
+
Pe(l, {
|
|
1286
|
+
x: z.x - X.x < 1 && -me.w,
|
|
1287
|
+
y: z.y - X.y < 1 && -me.h
|
|
1288
1288
|
});
|
|
1289
1289
|
const q = He(l);
|
|
1290
|
-
return
|
|
1290
|
+
return Pe(l, F), Gs(() => te()), {
|
|
1291
1291
|
T: X,
|
|
1292
1292
|
D: q
|
|
1293
1293
|
};
|
|
1294
|
-
}), ne = Ht(To),
|
|
1295
|
-
const ee = (X) => [ot, ut, wt].map((
|
|
1296
|
-
h(te), h(et(F).map((X) =>
|
|
1294
|
+
}), ne = Ht(To), ue = (F, ee) => `${ee ? Or : Hr}${wr(F)}`, le = (F) => {
|
|
1295
|
+
const ee = (X) => [ot, ut, wt].map((me) => ue(me, X)), te = ee(!0).concat(ee()).join(" ");
|
|
1296
|
+
h(te), h(et(F).map((X) => ue(F[X], X === "x")).join(" "), !0);
|
|
1297
1297
|
};
|
|
1298
|
-
return ({ It: F, Gt: ee, an: te, Tt: X }, { _n:
|
|
1299
|
-
const { ft: z, Ht: q, Ct:
|
|
1300
|
-
let De = D(X),
|
|
1301
|
-
if (Se && v && h(
|
|
1298
|
+
return ({ It: F, Gt: ee, an: te, Tt: X }, { _n: me }) => {
|
|
1299
|
+
const { ft: z, Ht: q, Ct: P, dt: C, zt: N } = ee || {}, G = ne && ne.tt(t, e, te, s, F), { it: K, ut: Z, _t: ie } = G || {}, [ye, Se] = ra(F, s), [oe, we] = F("overflow"), Ee = ns(oe.x), Re = ns(oe.y), ke = z || me || q || P || N || Se;
|
|
1300
|
+
let De = D(X), be = V(X), ge = O(X), Te = H(X);
|
|
1301
|
+
if (Se && v && h(bo, !ye), ke) {
|
|
1302
1302
|
Qs(r, lt, Xt) && k(!0);
|
|
1303
|
-
const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] =
|
|
1303
|
+
const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = p && Mr(m()), qo = {
|
|
1304
1304
|
w: x(Ut.w + Nt.w),
|
|
1305
1305
|
h: x(Ut.h + Nt.h)
|
|
1306
1306
|
}, un = {
|
|
1307
|
-
w: x((
|
|
1308
|
-
h: x((
|
|
1307
|
+
w: x((jt ? jt.w : zt.w + x(zt.w - Ut.w)) + Nt.w),
|
|
1308
|
+
h: x((jt ? jt.h : zt.h + x(zt.h - Ut.h)) + Nt.h)
|
|
1309
1309
|
};
|
|
1310
1310
|
dn && dn(), Te = S(un), ge = T(U(qo, un), X);
|
|
1311
1311
|
}
|
|
1312
|
-
const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] =
|
|
1312
|
+
const [_e, Me] = Te, [Le, vt] = ge, [Bt, hs] = be, [ps, vs] = De, [Ne, gs] = M({
|
|
1313
1313
|
x: Le.w > 0,
|
|
1314
1314
|
y: Le.h > 0
|
|
1315
|
-
}), Rt = Ee && Re && (Ne.x || Ne.y) || Ee && Ne.x && !Ne.y || Re && Ne.y && !Ne.x, Ft =
|
|
1315
|
+
}), Rt = Ee && Re && (Ne.x || Ne.y) || Ee && Ne.x && !Ne.y || Re && Ne.y && !Ne.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ne, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
|
|
1316
1316
|
return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(r, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
|
|
1317
1317
|
G: Et,
|
|
1318
1318
|
Vt: {
|
|
@@ -1324,12 +1324,12 @@ const Xr = () => {
|
|
|
1324
1324
|
y: Le.h
|
|
1325
1325
|
},
|
|
1326
1326
|
en: Ne,
|
|
1327
|
-
Pt: Dr(
|
|
1327
|
+
Pt: Dr(jo, Le)
|
|
1328
1328
|
}), {
|
|
1329
1329
|
nn: Tt,
|
|
1330
1330
|
Zt: Me,
|
|
1331
1331
|
tn: vt,
|
|
1332
|
-
sn:
|
|
1332
|
+
sn: Po || vt,
|
|
1333
1333
|
dn: cn
|
|
1334
1334
|
};
|
|
1335
1335
|
};
|
|
@@ -1370,15 +1370,15 @@ const Xr = () => {
|
|
|
1370
1370
|
Pt: go()
|
|
1371
1371
|
}, { vt: c, gt: i, nt: d } = e, { R: l, M: u } = Ke(), h = !l && (u.x || u.y), m = [ha(e), pa(e, n), va(e, n)];
|
|
1372
1372
|
return [s, (v) => {
|
|
1373
|
-
const p = {},
|
|
1374
|
-
return ce(m, (
|
|
1375
|
-
re(p,
|
|
1376
|
-
}),
|
|
1373
|
+
const p = {}, y = h && He(i);
|
|
1374
|
+
return ce(m, (b) => {
|
|
1375
|
+
re(p, b(v, p) || {});
|
|
1376
|
+
}), Pe(i, y), !d && Pe(c, 0), p;
|
|
1377
1377
|
}, n, e, r];
|
|
1378
1378
|
}, _a = (t, e, s, r, n) => {
|
|
1379
1379
|
const c = En(e, {}), [i, d, l, u, h] = ga(t), [m, v, p] = ca(u, l, c, (U) => {
|
|
1380
1380
|
k({}, U);
|
|
1381
|
-
}), [x,
|
|
1381
|
+
}), [x, y, , b] = ma(t, e, p, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
|
|
1382
1382
|
if (s())
|
|
1383
1383
|
return !1;
|
|
1384
1384
|
const { fn: D, Tt: L, At: V, pn: T } = U, O = D || {}, M = !!L, S = {
|
|
@@ -1387,14 +1387,14 @@ const Xr = () => {
|
|
|
1387
1387
|
Tt: M
|
|
1388
1388
|
};
|
|
1389
1389
|
if (T)
|
|
1390
|
-
return
|
|
1390
|
+
return y(S), !1;
|
|
1391
1391
|
const H = B || v(re({}, S, {
|
|
1392
1392
|
At: V
|
|
1393
1393
|
})), $ = d(re({}, S, {
|
|
1394
1394
|
an: p,
|
|
1395
1395
|
Gt: H
|
|
1396
1396
|
}));
|
|
1397
|
-
|
|
1397
|
+
y(re({}, S, {
|
|
1398
1398
|
Gt: H,
|
|
1399
1399
|
Qt: $
|
|
1400
1400
|
}));
|
|
@@ -1406,13 +1406,13 @@ const Xr = () => {
|
|
|
1406
1406
|
};
|
|
1407
1407
|
return [() => {
|
|
1408
1408
|
const { rn: U, gt: B } = u, D = He(U), L = [m(), i(), x()];
|
|
1409
|
-
return
|
|
1409
|
+
return Pe(B, D), J(Ie, L);
|
|
1410
1410
|
}, k, () => ({
|
|
1411
1411
|
vn: p,
|
|
1412
1412
|
hn: l
|
|
1413
1413
|
}), {
|
|
1414
1414
|
gn: u,
|
|
1415
|
-
bn:
|
|
1415
|
+
bn: b
|
|
1416
1416
|
}, h];
|
|
1417
1417
|
}, ct = (t, e, s) => {
|
|
1418
1418
|
const { N: r } = Ke(), n = ts(t), c = n ? t : t.target, i = $o(c);
|
|
@@ -1421,10 +1421,10 @@ const Xr = () => {
|
|
|
1421
1421
|
const l = [], u = {}, h = (M) => {
|
|
1422
1422
|
const S = oo(M), H = Ht(na);
|
|
1423
1423
|
return H ? H(S, !0) : S;
|
|
1424
|
-
}, m = re({}, r(), h(e)), [v, p, x] = Ns(), [
|
|
1424
|
+
}, m = re({}, r(), h(e)), [v, p, x] = Ns(), [y, b, A] = Ns(s), k = (M, S) => {
|
|
1425
1425
|
A(M, S), x(M, S);
|
|
1426
1426
|
}, [U, B, D, L, V] = _a(t, m, () => d, ({ fn: M, Tt: S }, { Gt: H, Qt: $ }) => {
|
|
1427
|
-
const { ft: w, Ct: I, xt: R, Ht: ne, Et:
|
|
1427
|
+
const { ft: w, Ct: I, xt: R, Ht: ne, Et: ue, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: X } = $;
|
|
1428
1428
|
k("updated", [O, {
|
|
1429
1429
|
updateHints: {
|
|
1430
1430
|
sizeChanged: !!w,
|
|
@@ -1435,14 +1435,14 @@ const Xr = () => {
|
|
|
1435
1435
|
overflowStyleChanged: !!te,
|
|
1436
1436
|
scrollCoordinatesChanged: !!X,
|
|
1437
1437
|
contentMutation: !!ne,
|
|
1438
|
-
hostMutation: !!
|
|
1438
|
+
hostMutation: !!ue,
|
|
1439
1439
|
appear: !!le
|
|
1440
1440
|
},
|
|
1441
1441
|
changedOptions: M || {},
|
|
1442
1442
|
force: !!S
|
|
1443
1443
|
}]);
|
|
1444
1444
|
}, (M) => k("scroll", [O, M])), T = (M) => {
|
|
1445
|
-
ea(c), Ie(l), d = !0, k("destroyed", [O, M]), p(),
|
|
1445
|
+
ea(c), Ie(l), d = !0, k("destroyed", [O, M]), p(), b();
|
|
1446
1446
|
}, O = {
|
|
1447
1447
|
options(M, S) {
|
|
1448
1448
|
if (M) {
|
|
@@ -1453,12 +1453,12 @@ const Xr = () => {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
return re({}, m);
|
|
1455
1455
|
},
|
|
1456
|
-
on:
|
|
1456
|
+
on: y,
|
|
1457
1457
|
off: (M, S) => {
|
|
1458
|
-
M && S &&
|
|
1458
|
+
M && S && b(M, S);
|
|
1459
1459
|
},
|
|
1460
1460
|
state() {
|
|
1461
|
-
const { vn: M, hn: S } = D(), { ct: H } = M, { Vt: $, Rt: w, G: I, en: R, cn: ne, un:
|
|
1461
|
+
const { vn: M, hn: S } = D(), { ct: H } = M, { Vt: $, Rt: w, G: I, en: R, cn: ne, un: ue, Pt: le } = S;
|
|
1462
1462
|
return re({}, {
|
|
1463
1463
|
overflowEdge: $,
|
|
1464
1464
|
overflowAmount: w,
|
|
@@ -1469,22 +1469,22 @@ const Xr = () => {
|
|
|
1469
1469
|
end: le.D
|
|
1470
1470
|
},
|
|
1471
1471
|
padding: ne,
|
|
1472
|
-
paddingAbsolute:
|
|
1472
|
+
paddingAbsolute: ue,
|
|
1473
1473
|
directionRTL: H,
|
|
1474
1474
|
destroyed: d
|
|
1475
1475
|
});
|
|
1476
1476
|
},
|
|
1477
1477
|
elements() {
|
|
1478
|
-
const { vt: M, ht: S, cn: H, ot: $, bt: w, gt: I, Kt: R } = L.gn, { Ft: ne, Wt:
|
|
1479
|
-
const { Mt: te, kt: X, Lt:
|
|
1478
|
+
const { vt: M, ht: S, cn: H, ot: $, bt: w, gt: I, Kt: R } = L.gn, { Ft: ne, Wt: ue } = L.bn, le = (ee) => {
|
|
1479
|
+
const { Mt: te, kt: X, Lt: me } = ee;
|
|
1480
1480
|
return {
|
|
1481
|
-
scrollbar:
|
|
1481
|
+
scrollbar: me,
|
|
1482
1482
|
track: X,
|
|
1483
1483
|
handle: te
|
|
1484
1484
|
};
|
|
1485
1485
|
}, F = (ee) => {
|
|
1486
|
-
const { jt: te, Xt: X } = ee,
|
|
1487
|
-
return re({},
|
|
1486
|
+
const { jt: te, Xt: X } = ee, me = le(te[0]);
|
|
1487
|
+
return re({}, me, {
|
|
1488
1488
|
clone: () => {
|
|
1489
1489
|
const z = le(X());
|
|
1490
1490
|
return B({
|
|
@@ -1502,7 +1502,7 @@ const Xr = () => {
|
|
|
1502
1502
|
scrollOffsetElement: I,
|
|
1503
1503
|
scrollEventElement: R,
|
|
1504
1504
|
scrollbarHorizontal: F(ne),
|
|
1505
|
-
scrollbarVertical: F(
|
|
1505
|
+
scrollbarVertical: F(ue)
|
|
1506
1506
|
});
|
|
1507
1507
|
},
|
|
1508
1508
|
update: (M) => B({
|
|
@@ -1563,16 +1563,16 @@ function xa() {
|
|
|
1563
1563
|
const x = () => ft(() => {
|
|
1564
1564
|
t.addSelection(
|
|
1565
1565
|
t.getSelectables()
|
|
1566
|
-
),
|
|
1567
|
-
}),
|
|
1566
|
+
), y();
|
|
1567
|
+
}), y = () => {
|
|
1568
1568
|
n.value = t.getSelection().map((B) => JSON.parse(B.dataset.item)), u.value(n.value);
|
|
1569
|
-
},
|
|
1569
|
+
}, b = () => ft(() => {
|
|
1570
1570
|
const B = c().map((D) => D.path);
|
|
1571
1571
|
l(), t.setSettings({
|
|
1572
1572
|
selectables: document.getElementsByClassName("vf-item-" + s)
|
|
1573
1573
|
}), t.addSelection(
|
|
1574
1574
|
t.getSelectables().filter((D) => B.includes(JSON.parse(D.dataset.item).path))
|
|
1575
|
-
),
|
|
1575
|
+
), y(), k();
|
|
1576
1576
|
}), A = (B) => {
|
|
1577
1577
|
u.value = B, t.subscribe("DS:end", ({ items: D, event: L, isDragging: V }) => {
|
|
1578
1578
|
n.value = D.map((T) => JSON.parse(T.dataset.item)), B(D.map((T) => JSON.parse(T.dataset.item)));
|
|
@@ -1627,12 +1627,12 @@ function xa() {
|
|
|
1627
1627
|
getSelection: i,
|
|
1628
1628
|
selectAll: x,
|
|
1629
1629
|
clearSelection: l,
|
|
1630
|
-
refreshSelection:
|
|
1630
|
+
refreshSelection: b,
|
|
1631
1631
|
getCount: d,
|
|
1632
1632
|
onSelect: A
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1635
|
+
function ba(t, e) {
|
|
1636
1636
|
const s = E(t), r = E(e), n = E([]), c = E([]), i = E([]), d = E(!1), l = E(5);
|
|
1637
1637
|
let u = !1, h = !1;
|
|
1638
1638
|
const m = Ot({
|
|
@@ -1660,10 +1660,10 @@ function ya(t, e) {
|
|
|
1660
1660
|
function x(k, U) {
|
|
1661
1661
|
return k.length > U ? [k.slice(-U), k.slice(0, -U)] : [k, []];
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function y(k = null) {
|
|
1664
1664
|
d.value = k ?? !d.value;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function b() {
|
|
1667
1667
|
return n.value && n.value.length && !h;
|
|
1668
1668
|
}
|
|
1669
1669
|
const A = Ze(() => {
|
|
@@ -1682,12 +1682,12 @@ function ya(t, e) {
|
|
|
1682
1682
|
limitBreadcrumbItems: p,
|
|
1683
1683
|
hiddenBreadcrumbs: i,
|
|
1684
1684
|
showHiddenBreadcrumbs: d,
|
|
1685
|
-
toggleHiddenBreadcrumbs:
|
|
1686
|
-
isGoUpAvailable:
|
|
1685
|
+
toggleHiddenBreadcrumbs: y,
|
|
1686
|
+
isGoUpAvailable: b,
|
|
1687
1687
|
parentFolderPath: A
|
|
1688
1688
|
};
|
|
1689
1689
|
}
|
|
1690
|
-
const
|
|
1690
|
+
const ya = (t, e) => {
|
|
1691
1691
|
const s = dr(t.id), r = sr(), n = s.getStore("metricUnits", !1), c = vr(s, t.theme), i = e.i18n, d = t.locale ?? e.locale, l = s.getStore("adapter"), u = (v) => Array.isArray(v) ? v : fr, h = s.getStore("persist-path", t.persist), m = h ? s.getStore("path", t.path) : t.path;
|
|
1692
1692
|
return Ot({
|
|
1693
1693
|
/**
|
|
@@ -1743,7 +1743,7 @@ const ba = (t, e) => {
|
|
|
1743
1743
|
// show thumbnails
|
|
1744
1744
|
showThumbnails: s.getStore("show-thumbnails", t.showThumbnails),
|
|
1745
1745
|
// file system
|
|
1746
|
-
fs:
|
|
1746
|
+
fs: ba(l, m)
|
|
1747
1747
|
});
|
|
1748
1748
|
}, wa = /* @__PURE__ */ o("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), ka = { class: "fixed z-10 inset-0 overflow-hidden" }, $a = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Sa = { 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",
|
|
@@ -1820,7 +1820,7 @@ const ba = (t, e) => {
|
|
|
1820
1820
|
}, Ta = { key: 1 };
|
|
1821
1821
|
function Ma(t, e, s, r, n, c) {
|
|
1822
1822
|
return f(), g("div", {
|
|
1823
|
-
class:
|
|
1823
|
+
class: de(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
|
|
1824
1824
|
}, [
|
|
1825
1825
|
t.$slots.default ? Dt(t.$slots, "default", { key: 0 }) : (f(), g("span", Ta, _(r.t("Saved.")), 1))
|
|
1826
1826
|
], 2);
|
|
@@ -1865,7 +1865,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1865
1865
|
}, Na = {
|
|
1866
1866
|
key: 1,
|
|
1867
1867
|
class: "mt-2"
|
|
1868
|
-
}, Ua = { class: "m-1 text-sm text-gray-500" }, za = { class: "mt-3 text-left" },
|
|
1868
|
+
}, Ua = { class: "m-1 text-sm text-gray-500" }, za = { class: "mt-3 text-left" }, ja = { class: "space-y-2" }, Pa = { class: "flex relative gap-x-3" }, qa = { class: "h-6 items-center" }, Ga = { class: "flex-1 block text-sm" }, Ka = {
|
|
1869
1869
|
for: "metric_unit",
|
|
1870
1870
|
class: "flex w-full font-medium text-gray-900 dark:text-gray-400"
|
|
1871
1871
|
}, Wa = { class: "flex relative gap-x-3" }, Ya = { class: "h-6 items-center" }, Xa = { class: "flex-1 block text-sm" }, Ja = {
|
|
@@ -1889,7 +1889,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1889
1889
|
}, pl = { class: "flex text-sm" }, vl = ["label"], gl = ["value"], _l = {
|
|
1890
1890
|
key: 2,
|
|
1891
1891
|
class: "mt-3"
|
|
1892
|
-
}, xl = { class: "space-y-2 sm:w-1/2" },
|
|
1892
|
+
}, xl = { class: "space-y-2 sm:w-1/2" }, bl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, yl = /* @__PURE__ */ o("kbd", null, "F2", -1), wl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, kl = /* @__PURE__ */ o("kbd", null, "F5", -1), $l = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, Sl = /* @__PURE__ */ o("kbd", null, "Del", -1), Cl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, El = /* @__PURE__ */ o("div", null, [
|
|
1893
1893
|
/* @__PURE__ */ o("kbd", null, "Esc")
|
|
1894
1894
|
], -1), Tl = { class: "flex justify-between text-sm text-gray-500 dark:text-gray-400" }, Ml = /* @__PURE__ */ o("div", null, [
|
|
1895
1895
|
/* @__PURE__ */ o("kbd", null, "Ctrl"),
|
|
@@ -1937,9 +1937,9 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1937
1937
|
e.compactListView = !e.compactListView, s("compactListView", e.compactListView), e.emitter.emit("vf-compact-view-saved");
|
|
1938
1938
|
}, x = () => {
|
|
1939
1939
|
e.showThumbnails = !e.showThumbnails, s("show-thumbnails", e.showThumbnails), e.emitter.emit("vf-show-thumbnails-saved");
|
|
1940
|
-
},
|
|
1940
|
+
}, y = () => {
|
|
1941
1941
|
e.persist = !e.persist, s("persist-path", e.persist), e.emitter.emit("vf-persist-path-saved");
|
|
1942
|
-
}, { i18n:
|
|
1942
|
+
}, { i18n: b } = ae("VueFinderOptions"), k = Object.fromEntries(
|
|
1943
1943
|
Object.entries({
|
|
1944
1944
|
en: "English",
|
|
1945
1945
|
fr: "French (Français)",
|
|
@@ -1952,7 +1952,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1952
1952
|
tr: "Turkish (Türkçe)",
|
|
1953
1953
|
zhCN: "Simplified Chinese (简体中文)",
|
|
1954
1954
|
zhTW: "Traditional Chinese (繁體中文)"
|
|
1955
|
-
}).filter(([B]) => Object.keys(
|
|
1955
|
+
}).filter(([B]) => Object.keys(b).includes(B))
|
|
1956
1956
|
), U = Ze(() => ({
|
|
1957
1957
|
system: n("System"),
|
|
1958
1958
|
light: n("Light"),
|
|
@@ -1977,7 +1977,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1977
1977
|
(f(!0), g(he, null, $e(l.value, (L) => (f(), g("button", {
|
|
1978
1978
|
key: L.name,
|
|
1979
1979
|
onClick: (V) => u.value = L.key,
|
|
1980
|
-
class:
|
|
1980
|
+
class: de([L.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"]),
|
|
1981
1981
|
"aria-current": L.current ? "page" : void 0
|
|
1982
1982
|
}, _(L.name), 11, Ha))), 128))
|
|
1983
1983
|
])
|
|
@@ -1987,13 +1987,13 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1987
1987
|
o("div", Ra, _(a(n)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1),
|
|
1988
1988
|
o("a", Fa, _(a(n)("Project home")), 1),
|
|
1989
1989
|
o("a", Ia, _(a(n)("Follow on GitHub")), 1)
|
|
1990
|
-
])) :
|
|
1990
|
+
])) : j("", !0),
|
|
1991
1991
|
u.value === d.SETTINGS ? (f(), g("div", Na, [
|
|
1992
1992
|
o("div", Ua, _(a(n)("Customize your experience with the following settings.")), 1),
|
|
1993
1993
|
o("div", za, [
|
|
1994
1994
|
o("fieldset", null, [
|
|
1995
|
-
o("div",
|
|
1996
|
-
o("div",
|
|
1995
|
+
o("div", ja, [
|
|
1996
|
+
o("div", Pa, [
|
|
1997
1997
|
o("div", qa, [
|
|
1998
1998
|
ve(o("input", {
|
|
1999
1999
|
id: "metric_unit",
|
|
@@ -2003,7 +2003,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2003
2003
|
onClick: v,
|
|
2004
2004
|
class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
|
|
2005
2005
|
}, null, 512), [
|
|
2006
|
-
[
|
|
2006
|
+
[Pt, a(e).metricUnits]
|
|
2007
2007
|
])
|
|
2008
2008
|
]),
|
|
2009
2009
|
o("div", Ga, [
|
|
@@ -2031,7 +2031,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2031
2031
|
onClick: p,
|
|
2032
2032
|
class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
|
|
2033
2033
|
}, null, 512), [
|
|
2034
|
-
[
|
|
2034
|
+
[Pt, a(e).compactListView]
|
|
2035
2035
|
])
|
|
2036
2036
|
]),
|
|
2037
2037
|
o("div", Xa, [
|
|
@@ -2056,10 +2056,10 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2056
2056
|
name: "persist_path",
|
|
2057
2057
|
type: "checkbox",
|
|
2058
2058
|
"onUpdate:modelValue": D[2] || (D[2] = (L) => a(e).persist = L),
|
|
2059
|
-
onClick:
|
|
2059
|
+
onClick: y,
|
|
2060
2060
|
class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
|
|
2061
2061
|
}, null, 512), [
|
|
2062
|
-
[
|
|
2062
|
+
[Pt, a(e).persist]
|
|
2063
2063
|
])
|
|
2064
2064
|
]),
|
|
2065
2065
|
o("div", el, [
|
|
@@ -2087,7 +2087,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2087
2087
|
onClick: x,
|
|
2088
2088
|
class: "h-4 w-4 rounded border-gray-300 text-indigo-600 dark:accent-slate-400 focus:ring-indigo-600"
|
|
2089
2089
|
}, null, 512), [
|
|
2090
|
-
[
|
|
2090
|
+
[Pt, a(e).showThumbnails]
|
|
2091
2091
|
])
|
|
2092
2092
|
]),
|
|
2093
2093
|
o("div", ol, [
|
|
@@ -2164,16 +2164,16 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2164
2164
|
_: 1
|
|
2165
2165
|
})
|
|
2166
2166
|
])
|
|
2167
|
-
])) :
|
|
2167
|
+
])) : j("", !0)
|
|
2168
2168
|
])
|
|
2169
2169
|
])
|
|
2170
2170
|
])
|
|
2171
|
-
])) :
|
|
2171
|
+
])) : j("", !0),
|
|
2172
2172
|
u.value === d.SHORTCUTS ? (f(), g("div", _l, [
|
|
2173
2173
|
o("div", xl, [
|
|
2174
|
-
o("div",
|
|
2174
|
+
o("div", bl, [
|
|
2175
2175
|
o("div", null, _(a(n)("Rename")), 1),
|
|
2176
|
-
|
|
2176
|
+
yl
|
|
2177
2177
|
]),
|
|
2178
2178
|
o("div", wl, [
|
|
2179
2179
|
o("div", null, _(a(n)("Refresh")), 1),
|
|
@@ -2208,7 +2208,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2208
2208
|
Rl
|
|
2209
2209
|
])
|
|
2210
2210
|
])
|
|
2211
|
-
])) :
|
|
2211
|
+
])) : j("", !0),
|
|
2212
2212
|
u.value === d.RESET ? (f(), g("div", Fl, [
|
|
2213
2213
|
o("div", Il, _(a(n)("Reset all settings to default")), 1),
|
|
2214
2214
|
o("button", {
|
|
@@ -2216,7 +2216,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2216
2216
|
type: "button",
|
|
2217
2217
|
class: "vf-btn vf-btn-secondary"
|
|
2218
2218
|
}, _(a(n)("Reset Settings")), 1)
|
|
2219
|
-
])) :
|
|
2219
|
+
])) : j("", !0)
|
|
2220
2220
|
])
|
|
2221
2221
|
])
|
|
2222
2222
|
]),
|
|
@@ -2255,11 +2255,11 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2255
2255
|
s("hidden"), c.value = !0;
|
|
2256
2256
|
};
|
|
2257
2257
|
return (h, m) => (f(), g("div", null, [
|
|
2258
|
-
c.value ?
|
|
2258
|
+
c.value ? j("", !0) : (f(), g("div", {
|
|
2259
2259
|
key: 0,
|
|
2260
2260
|
ref_key: "strMessage",
|
|
2261
2261
|
ref: i,
|
|
2262
|
-
class:
|
|
2262
|
+
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"])
|
|
2263
2263
|
}, [
|
|
2264
2264
|
Dt(h.$slots, "default"),
|
|
2265
2265
|
o("div", {
|
|
@@ -2270,7 +2270,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2270
2270
|
], 2))
|
|
2271
2271
|
]));
|
|
2272
2272
|
}
|
|
2273
|
-
},
|
|
2273
|
+
}, jl = { class: "sm:flex sm:items-start" }, Pl = /* @__PURE__ */ o("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
2274
2274
|
/* @__PURE__ */ o("svg", {
|
|
2275
2275
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2276
2276
|
class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
|
|
@@ -2356,8 +2356,8 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2356
2356
|
o("div", oi, _(a(s)("This action cannot be undone.")), 1)
|
|
2357
2357
|
]),
|
|
2358
2358
|
default: se(() => [
|
|
2359
|
-
o("div",
|
|
2360
|
-
|
|
2359
|
+
o("div", jl, [
|
|
2360
|
+
Pl,
|
|
2361
2361
|
o("div", ql, [
|
|
2362
2362
|
o("h3", Gl, _(a(s)("Delete files")), 1),
|
|
2363
2363
|
o("div", Kl, [
|
|
@@ -2377,7 +2377,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2377
2377
|
Q(_(n.value), 1)
|
|
2378
2378
|
]),
|
|
2379
2379
|
_: 1
|
|
2380
|
-
})) :
|
|
2380
|
+
})) : j("", !0)
|
|
2381
2381
|
])
|
|
2382
2382
|
])
|
|
2383
2383
|
])
|
|
@@ -2495,7 +2495,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2495
2495
|
Q(_(c.value), 1)
|
|
2496
2496
|
]),
|
|
2497
2497
|
_: 1
|
|
2498
|
-
})) :
|
|
2498
|
+
})) : j("", !0)
|
|
2499
2499
|
])
|
|
2500
2500
|
])
|
|
2501
2501
|
])
|
|
@@ -2524,7 +2524,7 @@ function _i(t) {
|
|
|
2524
2524
|
t.root.removeEventListener("keydown", e);
|
|
2525
2525
|
});
|
|
2526
2526
|
}
|
|
2527
|
-
const xi = { class: "sm:flex sm:items-start" },
|
|
2527
|
+
const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", { class: "mx-auto 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" }, [
|
|
2528
2528
|
/* @__PURE__ */ o("svg", {
|
|
2529
2529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2530
2530
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -2539,7 +2539,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
|
|
|
2539
2539
|
d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
|
|
2540
2540
|
})
|
|
2541
2541
|
])
|
|
2542
|
-
], -1),
|
|
2542
|
+
], -1), yi = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, wi = {
|
|
2543
2543
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
2544
2544
|
id: "modal-title"
|
|
2545
2545
|
}, ki = { class: "mt-2" }, $i = { class: "text-sm text-gray-500" }, Si = ["placeholder"], Do = {
|
|
@@ -2581,8 +2581,8 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
|
|
|
2581
2581
|
]),
|
|
2582
2582
|
default: se(() => [
|
|
2583
2583
|
o("div", xi, [
|
|
2584
|
-
|
|
2585
|
-
o("div",
|
|
2584
|
+
bi,
|
|
2585
|
+
o("div", yi, [
|
|
2586
2586
|
o("h3", wi, _(a(s)("New Folder")), 1),
|
|
2587
2587
|
o("div", ki, [
|
|
2588
2588
|
o("p", $i, _(a(s)("Create a new folder")), 1),
|
|
@@ -2604,7 +2604,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
|
|
|
2604
2604
|
Q(_(n.value), 1)
|
|
2605
2605
|
]),
|
|
2606
2606
|
_: 1
|
|
2607
|
-
})) :
|
|
2607
|
+
})) : j("", !0)
|
|
2608
2608
|
])
|
|
2609
2609
|
])
|
|
2610
2610
|
])
|
|
@@ -2692,7 +2692,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
|
|
|
2692
2692
|
Q(_(n.value), 1)
|
|
2693
2693
|
]),
|
|
2694
2694
|
_: 1
|
|
2695
|
-
})) :
|
|
2695
|
+
})) : j("", !0)
|
|
2696
2696
|
])
|
|
2697
2697
|
])
|
|
2698
2698
|
])
|
|
@@ -2701,7 +2701,7 @@ const xi = { class: "sm:flex sm:items-start" }, yi = /* @__PURE__ */ o("div", {
|
|
|
2701
2701
|
}));
|
|
2702
2702
|
}
|
|
2703
2703
|
};
|
|
2704
|
-
function
|
|
2704
|
+
function js(t, e = 14) {
|
|
2705
2705
|
let s = `((?=([\\w\\W]{0,${e}}))([\\w\\W]{${e + 1},})([\\w\\W]{8,}))`;
|
|
2706
2706
|
return t.replace(new RegExp(s), "$2..$4");
|
|
2707
2707
|
}
|
|
@@ -2729,7 +2729,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2729
2729
|
}, Ni = {
|
|
2730
2730
|
key: 1,
|
|
2731
2731
|
class: "pointer-events-none"
|
|
2732
|
-
}, Ui = ["disabled"], zi = ["disabled"],
|
|
2732
|
+
}, Ui = ["disabled"], zi = ["disabled"], ji = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, Pi = { 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" }, qi = ["textContent"], Gi = { class: "ml-1 w-full h-fit" }, Ki = { class: "text-left hidden md:block" }, Wi = { class: "text-left md:hidden" }, Yi = {
|
|
2733
2733
|
key: 0,
|
|
2734
2734
|
class: "ml-auto"
|
|
2735
2735
|
}, Xi = ["title", "disabled", "onClick"], Ji = /* @__PURE__ */ o("svg", {
|
|
@@ -2759,13 +2759,13 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2759
2759
|
UPLOADING: 2,
|
|
2760
2760
|
ERROR: 3,
|
|
2761
2761
|
DONE: 10
|
|
2762
|
-
}, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), h = E(null), m = E(null), v = E([]), p = E(""), x = E(!1),
|
|
2763
|
-
let
|
|
2762
|
+
}, c = E({ QUEUE_ENTRY_STATUS: n }), i = E(null), d = E(null), l = E(null), u = E(null), h = E(null), m = E(null), v = E([]), p = E(""), x = E(!1), y = E(!1);
|
|
2763
|
+
let b;
|
|
2764
2764
|
function A(H) {
|
|
2765
2765
|
return v.value.findIndex(($) => $.id === H);
|
|
2766
2766
|
}
|
|
2767
2767
|
function k(H, $ = null) {
|
|
2768
|
-
$ = $ ?? (H.webkitRelativePath || H.name),
|
|
2768
|
+
$ = $ ?? (H.webkitRelativePath || H.name), b.addFile({
|
|
2769
2769
|
name: $,
|
|
2770
2770
|
type: H.type,
|
|
2771
2771
|
data: H,
|
|
@@ -2806,20 +2806,20 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2806
2806
|
p.value = s("Please select file to upload first.");
|
|
2807
2807
|
return;
|
|
2808
2808
|
}
|
|
2809
|
-
p.value = "",
|
|
2809
|
+
p.value = "", b.retryAll(), b.upload();
|
|
2810
2810
|
}
|
|
2811
2811
|
}
|
|
2812
2812
|
function V() {
|
|
2813
|
-
|
|
2813
|
+
b.cancelAll({ reason: "user" }), v.value.forEach((H) => {
|
|
2814
2814
|
H.status !== n.DONE && (H.status = n.CANCELED, H.statusName = s("Canceled"));
|
|
2815
2815
|
}), x.value = !1;
|
|
2816
2816
|
}
|
|
2817
2817
|
function T(H) {
|
|
2818
|
-
x.value || (
|
|
2818
|
+
x.value || (b.removeFile(H.id, "removed-by-user"), v.value.splice(A(H.id), 1));
|
|
2819
2819
|
}
|
|
2820
2820
|
function O(H) {
|
|
2821
2821
|
if (!x.value) {
|
|
2822
|
-
if (
|
|
2822
|
+
if (b.cancelAll({ reason: "user" }), H) {
|
|
2823
2823
|
const $ = [];
|
|
2824
2824
|
v.value.forEach((w) => {
|
|
2825
2825
|
w.status !== n.DONE && $.push(w);
|
|
@@ -2842,7 +2842,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2842
2842
|
});
|
|
2843
2843
|
}
|
|
2844
2844
|
return Ce(async () => {
|
|
2845
|
-
|
|
2845
|
+
b = new or({
|
|
2846
2846
|
debug: e.debug,
|
|
2847
2847
|
restrictions: {
|
|
2848
2848
|
maxFileSize: pr(e.maxFileSize)
|
|
@@ -2853,7 +2853,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2853
2853
|
onBeforeFileAdded(w, I) {
|
|
2854
2854
|
if (I[w.id] != null) {
|
|
2855
2855
|
const ne = A(w.id);
|
|
2856
|
-
v.value[ne].status === n.PENDING && (p.value =
|
|
2856
|
+
v.value[ne].status === n.PENDING && (p.value = b.i18n("noDuplicates", { fileName: w.name })), v.value = v.value.filter((ue) => ue.id !== w.id);
|
|
2857
2857
|
}
|
|
2858
2858
|
return v.value.push({
|
|
2859
2859
|
id: w.id,
|
|
@@ -2865,7 +2865,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2865
2865
|
originalFile: w.data
|
|
2866
2866
|
}), !0;
|
|
2867
2867
|
}
|
|
2868
|
-
}),
|
|
2868
|
+
}), b.use(rr, {
|
|
2869
2869
|
endpoint: "WILL_BE_REPLACED_BEFORE_UPLOAD",
|
|
2870
2870
|
limit: 5,
|
|
2871
2871
|
timeout: 0,
|
|
@@ -2878,31 +2878,31 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2878
2878
|
}
|
|
2879
2879
|
return new Error(R);
|
|
2880
2880
|
}
|
|
2881
|
-
}),
|
|
2881
|
+
}), b.on("restriction-failed", (w, I) => {
|
|
2882
2882
|
const R = v.value[A(w.id)];
|
|
2883
2883
|
T(R), p.value = I.message;
|
|
2884
|
-
}),
|
|
2884
|
+
}), b.on("upload", () => {
|
|
2885
2885
|
const w = S();
|
|
2886
|
-
|
|
2887
|
-
const I =
|
|
2886
|
+
b.setMeta({ ...w.body });
|
|
2887
|
+
const I = b.getPlugin("XHRUpload");
|
|
2888
2888
|
I.opts.method = w.method, I.opts.endpoint = w.url + "?" + new URLSearchParams(w.params), I.opts.headers = w.headers, delete w.headers["Content-Type"], x.value = !0, v.value.forEach((R) => {
|
|
2889
2889
|
R.status !== n.DONE && (R.percent = null, R.status = n.UPLOADING, R.statusName = s("Pending upload"));
|
|
2890
2890
|
});
|
|
2891
|
-
}),
|
|
2891
|
+
}), b.on("upload-progress", (w, I) => {
|
|
2892
2892
|
const R = Math.floor(I.bytesUploaded / I.bytesTotal * 100);
|
|
2893
2893
|
v.value[A(w.id)].percent = `${R}%`;
|
|
2894
|
-
}),
|
|
2894
|
+
}), b.on("upload-success", (w) => {
|
|
2895
2895
|
const I = v.value[A(w.id)];
|
|
2896
2896
|
I.status = n.DONE, I.statusName = s("Done");
|
|
2897
|
-
}),
|
|
2897
|
+
}), b.on("upload-error", (w, I) => {
|
|
2898
2898
|
const R = v.value[A(w.id)];
|
|
2899
2899
|
R.percent = null, R.status = n.ERROR, I.isNetworkError ? R.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : R.statusName = I ? I.message : s("Unknown Error");
|
|
2900
|
-
}),
|
|
2900
|
+
}), b.on("error", (w) => {
|
|
2901
2901
|
p.value = w.message, x.value = !1, e.emitter.emit("vf-fetch", {
|
|
2902
2902
|
params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
|
|
2903
2903
|
noCloseModal: !0
|
|
2904
2904
|
});
|
|
2905
|
-
}),
|
|
2905
|
+
}), b.on("complete", () => {
|
|
2906
2906
|
x.value = !1, e.emitter.emit("vf-fetch", {
|
|
2907
2907
|
params: { q: "index", adapter: e.fs.adapter, path: e.fs.data.dirname },
|
|
2908
2908
|
noCloseModal: !0
|
|
@@ -2912,9 +2912,9 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2912
2912
|
}), h.value.addEventListener("click", () => {
|
|
2913
2913
|
l.value.click();
|
|
2914
2914
|
}), m.value.addEventListener("dragover", (w) => {
|
|
2915
|
-
w.preventDefault(),
|
|
2915
|
+
w.preventDefault(), y.value = !0;
|
|
2916
2916
|
}), m.value.addEventListener("dragleave", (w) => {
|
|
2917
|
-
w.preventDefault(),
|
|
2917
|
+
w.preventDefault(), y.value = !1;
|
|
2918
2918
|
});
|
|
2919
2919
|
function H(w, I) {
|
|
2920
2920
|
I.isFile && I.file((R) => w(I, R)), I.isDirectory && I.createReader().readEntries((R) => {
|
|
@@ -2924,12 +2924,12 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2924
2924
|
});
|
|
2925
2925
|
}
|
|
2926
2926
|
m.value.addEventListener("drop", (w) => {
|
|
2927
|
-
w.preventDefault(),
|
|
2927
|
+
w.preventDefault(), y.value = !1;
|
|
2928
2928
|
const I = /^[/\\](.+)/;
|
|
2929
2929
|
[...w.dataTransfer.items].forEach((R) => {
|
|
2930
|
-
R.kind === "file" && H((ne,
|
|
2930
|
+
R.kind === "file" && H((ne, ue) => {
|
|
2931
2931
|
const le = I.exec(ne.fullPath);
|
|
2932
|
-
k(
|
|
2932
|
+
k(ue, le[1]);
|
|
2933
2933
|
}, R.webkitGetAsEntry());
|
|
2934
2934
|
});
|
|
2935
2935
|
});
|
|
@@ -2941,12 +2941,12 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2941
2941
|
};
|
|
2942
2942
|
d.value.addEventListener("change", $), l.value.addEventListener("change", $);
|
|
2943
2943
|
}), In(() => {
|
|
2944
|
-
|
|
2944
|
+
b == null || b.close({ reason: "unmount" });
|
|
2945
2945
|
}), (H, $) => (f(), W(We, null, {
|
|
2946
2946
|
buttons: se(() => [
|
|
2947
2947
|
o("button", {
|
|
2948
2948
|
type: "button",
|
|
2949
|
-
class:
|
|
2949
|
+
class: de(["vf-btn vf-btn-primary", x.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"]),
|
|
2950
2950
|
disabled: x.value,
|
|
2951
2951
|
onClick: rt(L, ["prevent"])
|
|
2952
2952
|
}, _(a(s)("Upload")), 11, ec),
|
|
@@ -2974,7 +2974,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2974
2974
|
class: "flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",
|
|
2975
2975
|
onClick: D
|
|
2976
2976
|
}, [
|
|
2977
|
-
|
|
2977
|
+
y.value ? (f(), g("div", Ii, _(a(s)("Release to drop these files.")), 1)) : (f(), g("div", Ni, _(a(s)("Drag and drop the files/folders to here or click here.")), 1))
|
|
2978
2978
|
], 512),
|
|
2979
2979
|
o("div", {
|
|
2980
2980
|
ref_key: "container",
|
|
@@ -3006,36 +3006,36 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3006
3006
|
onClick: $[1] || ($[1] = (w) => O(!0))
|
|
3007
3007
|
}, _(a(s)("Clear only successful")), 9, zi)
|
|
3008
3008
|
], 512),
|
|
3009
|
-
o("div",
|
|
3009
|
+
o("div", ji, [
|
|
3010
3010
|
(f(!0), g(he, null, $e(v.value, (w) => (f(), g("div", {
|
|
3011
3011
|
class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
|
|
3012
3012
|
key: w.id
|
|
3013
3013
|
}, [
|
|
3014
|
-
o("span",
|
|
3014
|
+
o("span", Pi, [
|
|
3015
3015
|
o("span", {
|
|
3016
|
-
class:
|
|
3016
|
+
class: de(["text-base m-auto", U(w)]),
|
|
3017
3017
|
textContent: _(B(w))
|
|
3018
3018
|
}, null, 10, qi)
|
|
3019
3019
|
]),
|
|
3020
3020
|
o("div", Gi, [
|
|
3021
|
-
o("div", Ki, _(a(
|
|
3022
|
-
o("div", Wi, _(a(
|
|
3021
|
+
o("div", Ki, _(a(js)(w.name, 40)) + " (" + _(w.size) + ")", 1),
|
|
3022
|
+
o("div", Wi, _(a(js)(w.name, 16)) + " (" + _(w.size) + ")", 1),
|
|
3023
3023
|
o("div", {
|
|
3024
|
-
class:
|
|
3024
|
+
class: de(["flex break-all text-left", U(w)])
|
|
3025
3025
|
}, [
|
|
3026
3026
|
Q(_(w.statusName) + " ", 1),
|
|
3027
|
-
w.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (f(), g("b", Yi, _(w.percent), 1)) :
|
|
3027
|
+
w.status === c.value.QUEUE_ENTRY_STATUS.UPLOADING ? (f(), g("b", Yi, _(w.percent), 1)) : j("", !0)
|
|
3028
3028
|
], 2)
|
|
3029
3029
|
]),
|
|
3030
3030
|
o("button", {
|
|
3031
3031
|
type: "button",
|
|
3032
|
-
class:
|
|
3032
|
+
class: de(["rounded w-5 h-5 border-1 text-base leading-none font-medium focus:outline-none dark:border-gray-200 dark:text-gray-400 dark:hover:text-gray-200 dark:bg-gray-600 ml-auto sm:text-xs hover:text-red-600", x.value ? "disabled:bg-gray-100 text-white text-opacity-50" : "bg-gray-100"]),
|
|
3033
3033
|
title: a(s)("Delete"),
|
|
3034
3034
|
disabled: x.value,
|
|
3035
3035
|
onClick: (I) => T(w)
|
|
3036
3036
|
}, Qi, 10, Xi)
|
|
3037
3037
|
]))), 128)),
|
|
3038
|
-
v.value.length ?
|
|
3038
|
+
v.value.length ? j("", !0) : (f(), g("div", Zi, _(a(s)("No files selected!")), 1))
|
|
3039
3039
|
]),
|
|
3040
3040
|
p.value.length ? (f(), W(Ye, {
|
|
3041
3041
|
key: 0,
|
|
@@ -3046,7 +3046,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3046
3046
|
Q(_(p.value), 1)
|
|
3047
3047
|
]),
|
|
3048
3048
|
_: 1
|
|
3049
|
-
})) :
|
|
3049
|
+
})) : j("", !0)
|
|
3050
3050
|
])
|
|
3051
3051
|
])
|
|
3052
3052
|
]),
|
|
@@ -3170,7 +3170,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3170
3170
|
Q(_(n.value), 1)
|
|
3171
3171
|
]),
|
|
3172
3172
|
_: 1
|
|
3173
|
-
})) :
|
|
3173
|
+
})) : j("", !0)
|
|
3174
3174
|
])
|
|
3175
3175
|
])
|
|
3176
3176
|
])
|
|
@@ -3196,7 +3196,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3196
3196
|
], -1), _c = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, xc = {
|
|
3197
3197
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3198
3198
|
id: "modal-title"
|
|
3199
|
-
},
|
|
3199
|
+
}, bc = { class: "mt-2" }, yc = {
|
|
3200
3200
|
class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",
|
|
3201
3201
|
style: { "max-height": "200px" }
|
|
3202
3202
|
}, wc = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, kc = {
|
|
@@ -3268,8 +3268,8 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3268
3268
|
gc,
|
|
3269
3269
|
o("div", _c, [
|
|
3270
3270
|
o("h3", xc, _(a(s)("Archive the files")), 1),
|
|
3271
|
-
o("div",
|
|
3272
|
-
o("div",
|
|
3271
|
+
o("div", bc, [
|
|
3272
|
+
o("div", yc, [
|
|
3273
3273
|
(f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", wc, [
|
|
3274
3274
|
u.type === "dir" ? (f(), g("svg", kc, Sc)) : (f(), g("svg", Cc, Tc)),
|
|
3275
3275
|
o("span", Mc, _(u.basename), 1)
|
|
@@ -3293,7 +3293,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3293
3293
|
Q(_(n.value), 1)
|
|
3294
3294
|
]),
|
|
3295
3295
|
_: 1
|
|
3296
|
-
})) :
|
|
3296
|
+
})) : j("", !0)
|
|
3297
3297
|
])
|
|
3298
3298
|
])
|
|
3299
3299
|
])
|
|
@@ -3331,13 +3331,13 @@ const Nc = { render: Ic }, Uc = {
|
|
|
3331
3331
|
"stroke-width": "1.5",
|
|
3332
3332
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto",
|
|
3333
3333
|
viewBox: "0 0 24 24"
|
|
3334
|
-
}, zc = /* @__PURE__ */ o("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1),
|
|
3334
|
+
}, zc = /* @__PURE__ */ o("path", { d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }, null, -1), jc = [
|
|
3335
3335
|
zc
|
|
3336
3336
|
];
|
|
3337
|
-
function
|
|
3338
|
-
return f(), g("svg", Uc, [...
|
|
3337
|
+
function Pc(t, e) {
|
|
3338
|
+
return f(), g("svg", Uc, [...jc]);
|
|
3339
3339
|
}
|
|
3340
|
-
const qc = { render:
|
|
3340
|
+
const qc = { render: Pc }, Gc = {
|
|
3341
3341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3342
3342
|
fill: "none",
|
|
3343
3343
|
"stroke-width": "1.5",
|
|
@@ -3417,10 +3417,10 @@ const ln = { render: vd }, gd = {
|
|
|
3417
3417
|
}, _d = /* @__PURE__ */ o("path", { d: "M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15" }, null, -1), xd = [
|
|
3418
3418
|
_d
|
|
3419
3419
|
];
|
|
3420
|
-
function
|
|
3420
|
+
function bd(t, e) {
|
|
3421
3421
|
return f(), g("svg", gd, [...xd]);
|
|
3422
3422
|
}
|
|
3423
|
-
const
|
|
3423
|
+
const yd = { render: bd }, wd = {
|
|
3424
3424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3425
3425
|
fill: "none",
|
|
3426
3426
|
"stroke-width": "1.5",
|
|
@@ -3459,7 +3459,7 @@ function Hd(t, e) {
|
|
|
3459
3459
|
const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-between items-center py-1 text-sm grow-0" }, Fd = {
|
|
3460
3460
|
key: 0,
|
|
3461
3461
|
class: "flex text-center"
|
|
3462
|
-
}, Id = ["title"], Nd = ["title"], Ud = ["title"], zd = ["title"],
|
|
3462
|
+
}, Id = ["title"], Nd = ["title"], Ud = ["title"], zd = ["title"], jd = ["title"], Pd = ["title"], qd = ["title"], Gd = {
|
|
3463
3463
|
key: 1,
|
|
3464
3464
|
class: "flex text-center"
|
|
3465
3465
|
}, Kd = { class: "pl-2" }, Wd = { class: "dark:bg-gray-700 bg-gray-200 text-xs px-2 py-1 rounded" }, Yd = { class: "flex text-center items-center justify-end" }, Xd = ["title"], Jd = ["title"], Qd = {
|
|
@@ -3484,7 +3484,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3484
3484
|
Q(_(a(r)("Search results for")) + " ", 1),
|
|
3485
3485
|
o("span", Wd, _(c.value), 1)
|
|
3486
3486
|
]),
|
|
3487
|
-
a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) :
|
|
3487
|
+
a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : j("", !0)
|
|
3488
3488
|
])) : (f(), g("div", Fd, [
|
|
3489
3489
|
a(e).features.includes(a(pe).NEW_FOLDER) ? (f(), g("div", {
|
|
3490
3490
|
key: 0,
|
|
@@ -3493,7 +3493,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3493
3493
|
onClick: u[0] || (u[0] = (h) => a(e).modal.open(Do, { items: a(n).getSelected() }))
|
|
3494
3494
|
}, [
|
|
3495
3495
|
Y(a(Hc))
|
|
3496
|
-
], 8, Id)) :
|
|
3496
|
+
], 8, Id)) : j("", !0),
|
|
3497
3497
|
a(e).features.includes(a(pe).NEW_FILE) ? (f(), g("div", {
|
|
3498
3498
|
key: 1,
|
|
3499
3499
|
class: "mx-1.5",
|
|
@@ -3501,7 +3501,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3501
3501
|
onClick: u[1] || (u[1] = (h) => a(e).modal.open(Vi, { items: a(n).getSelected() }))
|
|
3502
3502
|
}, [
|
|
3503
3503
|
Y(a(Nc))
|
|
3504
|
-
], 8, Nd)) :
|
|
3504
|
+
], 8, Nd)) : j("", !0),
|
|
3505
3505
|
a(e).features.includes(a(pe).RENAME) ? (f(), g("div", {
|
|
3506
3506
|
key: 2,
|
|
3507
3507
|
class: "mx-1.5",
|
|
@@ -3509,9 +3509,9 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3509
3509
|
onClick: u[2] || (u[2] = (h) => a(n).getCount() !== 1 || a(e).modal.open(an, { items: a(n).getSelected() }))
|
|
3510
3510
|
}, [
|
|
3511
3511
|
Y(a(qc), {
|
|
3512
|
-
class:
|
|
3512
|
+
class: de(a(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3513
3513
|
}, null, 8, ["class"])
|
|
3514
|
-
], 8, Ud)) :
|
|
3514
|
+
], 8, Ud)) : j("", !0),
|
|
3515
3515
|
a(e).features.includes(a(pe).DELETE) ? (f(), g("div", {
|
|
3516
3516
|
key: 3,
|
|
3517
3517
|
class: "mx-1.5",
|
|
@@ -3519,9 +3519,9 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3519
3519
|
onClick: u[3] || (u[3] = (h) => !a(n).getCount() || a(e).modal.open(rn, { items: a(n).getSelected() }))
|
|
3520
3520
|
}, [
|
|
3521
3521
|
Y(a(Xc), {
|
|
3522
|
-
class:
|
|
3522
|
+
class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3523
3523
|
}, null, 8, ["class"])
|
|
3524
|
-
], 8, zd)) :
|
|
3524
|
+
], 8, zd)) : j("", !0),
|
|
3525
3525
|
a(e).features.includes(a(pe).UPLOAD) ? (f(), g("div", {
|
|
3526
3526
|
key: 4,
|
|
3527
3527
|
class: "mx-1.5",
|
|
@@ -3529,7 +3529,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3529
3529
|
onClick: u[4] || (u[4] = (h) => a(e).modal.open(tc, { items: a(n).getSelected() }))
|
|
3530
3530
|
}, [
|
|
3531
3531
|
Y(a(td))
|
|
3532
|
-
], 8,
|
|
3532
|
+
], 8, jd)) : j("", !0),
|
|
3533
3533
|
a(e).features.includes(a(pe).UNARCHIVE) && a(n).getCount() === 1 && a(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
|
|
3534
3534
|
key: 5,
|
|
3535
3535
|
class: "mx-1.5",
|
|
@@ -3537,9 +3537,9 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3537
3537
|
onClick: u[5] || (u[5] = (h) => !a(n).getCount() || a(e).modal.open(Lo, { items: a(n).getSelected() }))
|
|
3538
3538
|
}, [
|
|
3539
3539
|
Y(a(ud), {
|
|
3540
|
-
class:
|
|
3540
|
+
class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3541
3541
|
}, null, 8, ["class"])
|
|
3542
|
-
], 8,
|
|
3542
|
+
], 8, Pd)) : j("", !0),
|
|
3543
3543
|
a(e).features.includes(a(pe).ARCHIVE) ? (f(), g("div", {
|
|
3544
3544
|
key: 6,
|
|
3545
3545
|
class: "mx-1.5",
|
|
@@ -3547,9 +3547,9 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3547
3547
|
onClick: u[6] || (u[6] = (h) => !a(n).getCount() || a(e).modal.open(Vo, { items: a(n).getSelected() }))
|
|
3548
3548
|
}, [
|
|
3549
3549
|
Y(a(ad), {
|
|
3550
|
-
class:
|
|
3550
|
+
class: de(a(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3551
3551
|
}, null, 8, ["class"])
|
|
3552
|
-
], 8, qd)) :
|
|
3552
|
+
], 8, qd)) : j("", !0)
|
|
3553
3553
|
])),
|
|
3554
3554
|
o("div", Yd, [
|
|
3555
3555
|
a(e).features.includes(a(pe).FULL_SCREEN) ? (f(), g("div", {
|
|
@@ -3558,8 +3558,8 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3558
3558
|
class: "mx-1.5",
|
|
3559
3559
|
title: a(r)("Toggle Full Screen")
|
|
3560
3560
|
}, [
|
|
3561
|
-
a(e).fullScreen ? (f(), W(a(Cd), { key: 0 })) : (f(), W(a(
|
|
3562
|
-
], 8, Xd)) :
|
|
3561
|
+
a(e).fullScreen ? (f(), W(a(Cd), { key: 0 })) : (f(), W(a(yd), { key: 1 }))
|
|
3562
|
+
], 8, Xd)) : j("", !0),
|
|
3563
3563
|
o("div", {
|
|
3564
3564
|
class: "mx-1.5",
|
|
3565
3565
|
title: a(r)("Change View"),
|
|
@@ -3567,12 +3567,12 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3567
3567
|
}, [
|
|
3568
3568
|
a(e).view === "grid" ? (f(), W(a(Dd), {
|
|
3569
3569
|
key: 0,
|
|
3570
|
-
class:
|
|
3571
|
-
}, null, 8, ["class"])) :
|
|
3570
|
+
class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
|
|
3571
|
+
}, null, 8, ["class"])) : j("", !0),
|
|
3572
3572
|
a(e).view === "list" ? (f(), W(a(Bd), {
|
|
3573
3573
|
key: 1,
|
|
3574
|
-
class:
|
|
3575
|
-
}, null, 8, ["class"])) :
|
|
3574
|
+
class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
|
|
3575
|
+
}, null, 8, ["class"])) : j("", !0)
|
|
3576
3576
|
], 8, Jd)
|
|
3577
3577
|
])
|
|
3578
3578
|
]));
|
|
@@ -3658,7 +3658,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3658
3658
|
"stroke-linejoin": "round",
|
|
3659
3659
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3660
3660
|
})
|
|
3661
|
-
], -1), gu = { class: "ml-1.5 overflow-auto" }, _u = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" },
|
|
3661
|
+
], -1), gu = { class: "ml-1.5 overflow-auto" }, _u = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, Ps = {
|
|
3662
3662
|
__name: "ModalMove",
|
|
3663
3663
|
setup(t) {
|
|
3664
3664
|
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = E(e.modal.data.items.from), n = E(""), c = () => {
|
|
@@ -3723,7 +3723,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3723
3723
|
Q(_(n.value), 1)
|
|
3724
3724
|
]),
|
|
3725
3725
|
_: 1
|
|
3726
|
-
})) :
|
|
3726
|
+
})) : j("", !0)
|
|
3727
3727
|
])
|
|
3728
3728
|
])
|
|
3729
3729
|
]),
|
|
@@ -3735,11 +3735,11 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3735
3735
|
fill: "currentColor",
|
|
3736
3736
|
class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer",
|
|
3737
3737
|
viewBox: "-40 -40 580 580"
|
|
3738
|
-
},
|
|
3739
|
-
|
|
3738
|
+
}, bu = /* @__PURE__ */ o("path", { d: "M463.5 224h8.5c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2S461.9 48.1 455 55l-41.6 41.6c-87.6-86.5-228.7-86.2-315.8 1-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 224 344 224z" }, null, -1), yu = [
|
|
3739
|
+
bu
|
|
3740
3740
|
];
|
|
3741
3741
|
function wu(t, e) {
|
|
3742
|
-
return f(), g("svg", xu, [...
|
|
3742
|
+
return f(), g("svg", xu, [...yu]);
|
|
3743
3743
|
}
|
|
3744
3744
|
const ku = { render: wu }, $u = {
|
|
3745
3745
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3799,7 +3799,7 @@ const Fu = { render: Ru }, Iu = {
|
|
|
3799
3799
|
function zu(t, e) {
|
|
3800
3800
|
return f(), g("svg", Iu, [...Uu]);
|
|
3801
3801
|
}
|
|
3802
|
-
const
|
|
3802
|
+
const ju = { render: zu }, Pu = {
|
|
3803
3803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3804
3804
|
fill: "none",
|
|
3805
3805
|
stroke: "currentColor",
|
|
@@ -3814,7 +3814,7 @@ const Pu = { render: zu }, ju = {
|
|
|
3814
3814
|
qu
|
|
3815
3815
|
];
|
|
3816
3816
|
function Ku(t, e) {
|
|
3817
|
-
return f(), g("svg",
|
|
3817
|
+
return f(), g("svg", Pu, [...Gu]);
|
|
3818
3818
|
}
|
|
3819
3819
|
const Wu = { render: Ku }, Yu = {
|
|
3820
3820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3864,7 +3864,7 @@ function i0(t, e) {
|
|
|
3864
3864
|
const c0 = { render: i0 }, d0 = { 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" }, u0 = ["title"], m0 = ["title"], f0 = ["title"], h0 = ["title"], p0 = { class: "flex leading-6" }, v0 = {
|
|
3865
3865
|
key: 0,
|
|
3866
3866
|
class: "flex"
|
|
3867
|
-
}, g0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), _0 = { class: "relative" }, x0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1),
|
|
3867
|
+
}, g0 = /* @__PURE__ */ o("div", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), _0 = { class: "relative" }, x0 = /* @__PURE__ */ o("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), b0 = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], y0 = { class: "relative flex bg-white dark:bg-gray-700 justify-between items-center rounded p-1 ml-2 w-full" }, w0 = ["placeholder"], k0 = { 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" }, $0 = ["onDrop", "onClick"], S0 = { class: "flex pointer-events-none" }, C0 = { class: "inline-block w-full text-ellipsis overflow-hidden" }, E0 = {
|
|
3868
3868
|
__name: "Breadcrumb",
|
|
3869
3869
|
setup(t) {
|
|
3870
3870
|
const e = ae("ServiceContainer"), { t: s } = e.i18n, r = e.dragSelect, { setStore: n } = e.storage, c = E(null), i = Hn(0, 100);
|
|
@@ -3890,7 +3890,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3890
3890
|
alert("Moving items between different storages is not supported yet.");
|
|
3891
3891
|
return;
|
|
3892
3892
|
}
|
|
3893
|
-
e.modal.open(
|
|
3893
|
+
e.modal.open(Ps, {
|
|
3894
3894
|
items: {
|
|
3895
3895
|
from: O,
|
|
3896
3896
|
to: e.fs.hiddenBreadcrumbs[T] ?? { path: e.fs.adapter + "://" }
|
|
@@ -3903,7 +3903,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3903
3903
|
alert("Moving items between different storages is not supported yet.");
|
|
3904
3904
|
return;
|
|
3905
3905
|
}
|
|
3906
|
-
e.modal.open(
|
|
3906
|
+
e.modal.open(Ps, {
|
|
3907
3907
|
items: {
|
|
3908
3908
|
from: O,
|
|
3909
3909
|
to: e.fs.breadcrumbs[T] ?? { path: e.fs.adapter + "://" }
|
|
@@ -3925,9 +3925,9 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3925
3925
|
});
|
|
3926
3926
|
}, x = (V) => {
|
|
3927
3927
|
e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: V.path } }), e.fs.toggleHiddenBreadcrumbs(!1);
|
|
3928
|
-
},
|
|
3928
|
+
}, y = () => {
|
|
3929
3929
|
e.fs.showHiddenBreadcrumbs && e.fs.toggleHiddenBreadcrumbs(!1);
|
|
3930
|
-
},
|
|
3930
|
+
}, b = {
|
|
3931
3931
|
mounted(V, T, O, M) {
|
|
3932
3932
|
V.clickOutsideEvent = function(S) {
|
|
3933
3933
|
V === S.target || V.contains(S.target) || T.value();
|
|
@@ -3965,7 +3965,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3965
3965
|
}, [
|
|
3966
3966
|
Y(a(o0), {
|
|
3967
3967
|
onClick: A,
|
|
3968
|
-
class:
|
|
3968
|
+
class: de(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700", a(e).showTreeView ? "bg-gray-300 dark:bg-gray-700" : ""])
|
|
3969
3969
|
}, null, 8, ["class"])
|
|
3970
3970
|
], 8, u0),
|
|
3971
3971
|
o("span", {
|
|
@@ -3976,7 +3976,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3976
3976
|
onDragleave: T[1] || (T[1] = (O) => m(O)),
|
|
3977
3977
|
onDrop: T[2] || (T[2] = (O) => u(O)),
|
|
3978
3978
|
onClick: p,
|
|
3979
|
-
class:
|
|
3979
|
+
class: de(a(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")
|
|
3980
3980
|
}, null, 8, ["class"])
|
|
3981
3981
|
], 8, m0),
|
|
3982
3982
|
a(e).fs.loading ? (f(), g("span", {
|
|
@@ -4017,8 +4017,8 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4017
4017
|
], 32)
|
|
4018
4018
|
])
|
|
4019
4019
|
])), [
|
|
4020
|
-
[
|
|
4021
|
-
]) :
|
|
4020
|
+
[b, y]
|
|
4021
|
+
]) : j("", !0)
|
|
4022
4022
|
]),
|
|
4023
4023
|
o("div", {
|
|
4024
4024
|
ref_key: "breadcrumbContainer",
|
|
@@ -4035,16 +4035,16 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4035
4035
|
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",
|
|
4036
4036
|
title: O.basename,
|
|
4037
4037
|
onClick: (S) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(e).fs.adapter, path: O.path } })
|
|
4038
|
-
}, _(O.name), 41,
|
|
4038
|
+
}, _(O.name), 41, b0)
|
|
4039
4039
|
]))), 128))
|
|
4040
4040
|
], 512),
|
|
4041
|
-
a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) :
|
|
4041
|
+
a(e).fs.loading ? (f(), W(a(ln), { key: 0 })) : j("", !0)
|
|
4042
4042
|
], 512), [
|
|
4043
|
-
[
|
|
4043
|
+
[je, !a(e).fs.searchMode]
|
|
4044
4044
|
]),
|
|
4045
|
-
ve(o("div",
|
|
4045
|
+
ve(o("div", y0, [
|
|
4046
4046
|
o("div", null, [
|
|
4047
|
-
Y(a(
|
|
4047
|
+
Y(a(ju))
|
|
4048
4048
|
]),
|
|
4049
4049
|
ve(o("input", {
|
|
4050
4050
|
ref_key: "searchInput",
|
|
@@ -4060,7 +4060,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4060
4060
|
]),
|
|
4061
4061
|
Y(a(Wu), { onClick: D })
|
|
4062
4062
|
], 512), [
|
|
4063
|
-
[
|
|
4063
|
+
[je, a(e).fs.searchMode]
|
|
4064
4064
|
]),
|
|
4065
4065
|
ve(o("div", k0, [
|
|
4066
4066
|
(f(!0), g(he, null, $e(a(e).fs.hiddenBreadcrumbs, (O, M) => (f(), g("div", {
|
|
@@ -4080,7 +4080,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4080
4080
|
])
|
|
4081
4081
|
], 40, $0))), 128))
|
|
4082
4082
|
], 512), [
|
|
4083
|
-
[
|
|
4083
|
+
[je, a(e).fs.showHiddenBreadcrumbs]
|
|
4084
4084
|
])
|
|
4085
4085
|
]));
|
|
4086
4086
|
}
|
|
@@ -4101,7 +4101,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4101
4101
|
d(u);
|
|
4102
4102
|
}, 5e3);
|
|
4103
4103
|
}), (l, u) => (f(), g("div", {
|
|
4104
|
-
class:
|
|
4104
|
+
class: de([r.value.value ? "fixed" : "absolute", "max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2 z-10"])
|
|
4105
4105
|
}, [
|
|
4106
4106
|
Y(Xo, {
|
|
4107
4107
|
name: "vf-toast-item",
|
|
@@ -4112,7 +4112,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4112
4112
|
(f(!0), g(he, null, $e(n.value, (h, m) => (f(), g("div", {
|
|
4113
4113
|
onClick: (v) => i(m),
|
|
4114
4114
|
key: h,
|
|
4115
|
-
class:
|
|
4115
|
+
class: de([c(h.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"])
|
|
4116
4116
|
}, _(h.label), 11, T0))), 128))
|
|
4117
4117
|
]),
|
|
4118
4118
|
_: 1
|
|
@@ -4154,8 +4154,8 @@ const I0 = { render: F0 }, Kt = {
|
|
|
4154
4154
|
props: { direction: String },
|
|
4155
4155
|
setup(t) {
|
|
4156
4156
|
return (e, s) => (f(), g("div", null, [
|
|
4157
|
-
t.direction === "asc" ? (f(), W(a(O0), { key: 0 })) :
|
|
4158
|
-
t.direction === "desc" ? (f(), W(a(I0), { key: 1 })) :
|
|
4157
|
+
t.direction === "asc" ? (f(), W(a(O0), { key: 0 })) : j("", !0),
|
|
4158
|
+
t.direction === "desc" ? (f(), W(a(I0), { key: 1 })) : j("", !0)
|
|
4159
4159
|
]));
|
|
4160
4160
|
}
|
|
4161
4161
|
}, N0 = {
|
|
@@ -4171,10 +4171,10 @@ const I0 = { render: F0 }, Kt = {
|
|
|
4171
4171
|
}, null, -1), z0 = [
|
|
4172
4172
|
U0
|
|
4173
4173
|
];
|
|
4174
|
-
function
|
|
4174
|
+
function j0(t, e) {
|
|
4175
4175
|
return f(), g("svg", N0, [...z0]);
|
|
4176
4176
|
}
|
|
4177
|
-
const
|
|
4177
|
+
const P0 = { render: j0 }, ks = {
|
|
4178
4178
|
__name: "ItemIcon",
|
|
4179
4179
|
props: {
|
|
4180
4180
|
type: {
|
|
@@ -4190,10 +4190,10 @@ const j0 = { render: P0 }, ks = {
|
|
|
4190
4190
|
return (e, s) => (f(), g("span", null, [
|
|
4191
4191
|
t.type === "dir" ? (f(), W(a(fs), {
|
|
4192
4192
|
key: 0,
|
|
4193
|
-
class:
|
|
4194
|
-
}, null, 8, ["class"])) : (f(), W(a(
|
|
4193
|
+
class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
|
|
4194
|
+
}, null, 8, ["class"])) : (f(), W(a(P0), {
|
|
4195
4195
|
key: 1,
|
|
4196
|
-
class:
|
|
4196
|
+
class: de({ "h-5 w-5": t.small, "h-10 w-10 md:h-12 md:w-12 m-auto": !t.small })
|
|
4197
4197
|
}, null, 8, ["class"]))
|
|
4198
4198
|
]));
|
|
4199
4199
|
}
|
|
@@ -4279,12 +4279,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4279
4279
|
key: 0,
|
|
4280
4280
|
onClick: v,
|
|
4281
4281
|
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"
|
|
4282
|
-
}, _(a(h)("Save")), 1)) :
|
|
4282
|
+
}, _(a(h)("Save")), 1)) : j("", !0),
|
|
4283
4283
|
a(u).features.includes(a(pe).EDIT) ? (f(), g("button", {
|
|
4284
4284
|
key: 1,
|
|
4285
4285
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4286
|
-
onClick: x[0] || (x[0] = (
|
|
4287
|
-
}, _(i.value ? a(h)("Cancel") : a(h)("Edit")), 1)) :
|
|
4286
|
+
onClick: x[0] || (x[0] = (y) => m())
|
|
4287
|
+
}, _(i.value ? a(h)("Cancel") : a(h)("Edit")), 1)) : j("", !0)
|
|
4288
4288
|
])
|
|
4289
4289
|
]),
|
|
4290
4290
|
o("div", null, [
|
|
@@ -4292,7 +4292,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4292
4292
|
ve(o("textarea", {
|
|
4293
4293
|
ref_key: "editInput",
|
|
4294
4294
|
ref: c,
|
|
4295
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
4295
|
+
"onUpdate:modelValue": x[1] || (x[1] = (y) => n.value = y),
|
|
4296
4296
|
class: "w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] max-h-[60vh]",
|
|
4297
4297
|
name: "text",
|
|
4298
4298
|
id: "",
|
|
@@ -4304,14 +4304,14 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4304
4304
|
])) : (f(), g("pre", sm, _(r.value), 1)),
|
|
4305
4305
|
d.value.length ? (f(), W(Ye, {
|
|
4306
4306
|
key: 2,
|
|
4307
|
-
onHidden: x[2] || (x[2] = (
|
|
4307
|
+
onHidden: x[2] || (x[2] = (y) => d.value = ""),
|
|
4308
4308
|
error: l.value
|
|
4309
4309
|
}, {
|
|
4310
4310
|
default: se(() => [
|
|
4311
4311
|
Q(_(d.value), 1)
|
|
4312
4312
|
]),
|
|
4313
4313
|
_: 1
|
|
4314
|
-
}, 8, ["error"])) :
|
|
4314
|
+
}, 8, ["error"])) : j("", !0)
|
|
4315
4315
|
])
|
|
4316
4316
|
], 64));
|
|
4317
4317
|
}
|
|
@@ -4363,12 +4363,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4363
4363
|
key: 0,
|
|
4364
4364
|
onClick: m,
|
|
4365
4365
|
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"
|
|
4366
|
-
}, _(a(n)("Crop")), 1)) :
|
|
4366
|
+
}, _(a(n)("Crop")), 1)) : j("", !0),
|
|
4367
4367
|
a(r).features.includes(a(pe).EDIT) ? (f(), g("button", {
|
|
4368
4368
|
key: 1,
|
|
4369
4369
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4370
4370
|
onClick: p[0] || (p[0] = (x) => h())
|
|
4371
|
-
}, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) :
|
|
4371
|
+
}, _(d.value ? a(n)("Cancel") : a(n)("Edit")), 1)) : j("", !0)
|
|
4372
4372
|
])
|
|
4373
4373
|
]),
|
|
4374
4374
|
o("div", im, [
|
|
@@ -4389,7 +4389,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4389
4389
|
Q(_(l.value), 1)
|
|
4390
4390
|
]),
|
|
4391
4391
|
_: 1
|
|
4392
|
-
}, 8, ["error"])) :
|
|
4392
|
+
}, 8, ["error"])) : j("", !0)
|
|
4393
4393
|
], 64));
|
|
4394
4394
|
}
|
|
4395
4395
|
}, um = { class: "flex" }, mm = ["title"], fm = /* @__PURE__ */ o("div", null, null, -1), hm = {
|
|
@@ -4438,10 +4438,10 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4438
4438
|
])
|
|
4439
4439
|
]));
|
|
4440
4440
|
}
|
|
4441
|
-
}, xm = ["title"],
|
|
4441
|
+
}, xm = ["title"], bm = {
|
|
4442
4442
|
class: "w-full",
|
|
4443
4443
|
controls: ""
|
|
4444
|
-
},
|
|
4444
|
+
}, ym = ["src"], wm = {
|
|
4445
4445
|
__name: "Audio",
|
|
4446
4446
|
emits: ["success"],
|
|
4447
4447
|
setup(t, { emit: e }) {
|
|
@@ -4455,11 +4455,11 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4455
4455
|
title: a(r).modal.data.item.path
|
|
4456
4456
|
}, _(a(r).modal.data.item.basename), 9, xm),
|
|
4457
4457
|
o("div", null, [
|
|
4458
|
-
o("audio",
|
|
4458
|
+
o("audio", bm, [
|
|
4459
4459
|
o("source", {
|
|
4460
4460
|
src: n(),
|
|
4461
4461
|
type: "audio/mpeg"
|
|
4462
|
-
}, null, 8,
|
|
4462
|
+
}, null, 8, ym),
|
|
4463
4463
|
Q(" Your browser does not support the audio element. ")
|
|
4464
4464
|
])
|
|
4465
4465
|
])
|
|
@@ -4544,7 +4544,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4544
4544
|
class: "vf-btn vf-btn-primary",
|
|
4545
4545
|
download: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item),
|
|
4546
4546
|
href: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item)
|
|
4547
|
-
}, _(a(s)("Download")), 9, Im)) :
|
|
4547
|
+
}, _(a(s)("Download")), 9, Im)) : j("", !0)
|
|
4548
4548
|
]),
|
|
4549
4549
|
default: se(() => [
|
|
4550
4550
|
o("div", Mm, [
|
|
@@ -4569,12 +4569,12 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4569
4569
|
key: 5,
|
|
4570
4570
|
onSuccess: d[5] || (d[5] = (l) => r.value = !0)
|
|
4571
4571
|
}))
|
|
4572
|
-
])) :
|
|
4572
|
+
])) : j("", !0),
|
|
4573
4573
|
o("div", Lm, [
|
|
4574
4574
|
r.value === !1 ? (f(), g("div", Vm, [
|
|
4575
4575
|
Om,
|
|
4576
4576
|
o("span", null, _(a(s)("Loading")), 1)
|
|
4577
|
-
])) :
|
|
4577
|
+
])) : j("", !0)
|
|
4578
4578
|
])
|
|
4579
4579
|
])
|
|
4580
4580
|
]),
|
|
@@ -4590,7 +4590,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4590
4590
|
]),
|
|
4591
4591
|
a(e).features.includes(a(pe).DOWNLOAD) ? (f(), g("div", Fm, [
|
|
4592
4592
|
o("span", null, _(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
|
|
4593
|
-
])) :
|
|
4593
|
+
])) : j("", !0)
|
|
4594
4594
|
]),
|
|
4595
4595
|
_: 1
|
|
4596
4596
|
}));
|
|
@@ -4607,14 +4607,14 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4607
4607
|
}, Um = /* @__PURE__ */ o("path", {
|
|
4608
4608
|
stroke: "none",
|
|
4609
4609
|
d: "M0 0h24v24H0z"
|
|
4610
|
-
}, null, -1), zm = /* @__PURE__ */ o("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1),
|
|
4610
|
+
}, null, -1), zm = /* @__PURE__ */ o("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1), jm = [
|
|
4611
4611
|
Um,
|
|
4612
4612
|
zm
|
|
4613
4613
|
];
|
|
4614
|
-
function
|
|
4615
|
-
return f(), g("svg", Nm, [...
|
|
4614
|
+
function Pm(t, e) {
|
|
4615
|
+
return f(), g("svg", Nm, [...jm]);
|
|
4616
4616
|
}
|
|
4617
|
-
const Bo = { render:
|
|
4617
|
+
const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
4618
4618
|
__name: "Item",
|
|
4619
4619
|
props: {
|
|
4620
4620
|
item: { type: Object },
|
|
@@ -4625,11 +4625,11 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4625
4625
|
const e = ae("ServiceContainer"), s = e.dragSelect, r = t, n = (p) => {
|
|
4626
4626
|
p.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: p.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: p });
|
|
4627
4627
|
}, c = {
|
|
4628
|
-
mounted(p, x,
|
|
4629
|
-
|
|
4628
|
+
mounted(p, x, y, b) {
|
|
4629
|
+
y.props.draggable && (p.addEventListener("dragstart", (A) => i(A, x.value)), p.addEventListener("dragover", (A) => l(A, x.value)), p.addEventListener("drop", (A) => d(A, x.value)));
|
|
4630
4630
|
},
|
|
4631
|
-
beforeUnmount(p, x,
|
|
4632
|
-
|
|
4631
|
+
beforeUnmount(p, x, y, b) {
|
|
4632
|
+
y.props.draggable && (p.removeEventListener("dragstart", i), p.removeEventListener("dragover", l), p.removeEventListener("drop", d));
|
|
4633
4633
|
}
|
|
4634
4634
|
}, i = (p, x) => {
|
|
4635
4635
|
if (p.altKey || p.ctrlKey || p.metaKey)
|
|
@@ -4637,14 +4637,14 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4637
4637
|
s.isDraggingRef.value = !0, p.dataTransfer.setDragImage(r.dragImage.$el, 0, 15), p.dataTransfer.effectAllowed = "all", p.dataTransfer.dropEffect = "copy", p.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
|
|
4638
4638
|
}, d = (p, x) => {
|
|
4639
4639
|
p.preventDefault(), s.isDraggingRef.value = !1;
|
|
4640
|
-
let
|
|
4641
|
-
if (
|
|
4640
|
+
let y = JSON.parse(p.dataTransfer.getData("items"));
|
|
4641
|
+
if (y.find((b) => b.storage !== e.fs.adapter)) {
|
|
4642
4642
|
alert("Moving items between different storages is not supported yet.");
|
|
4643
4643
|
return;
|
|
4644
4644
|
}
|
|
4645
|
-
e.modal.open(
|
|
4645
|
+
e.modal.open(Ps, { items: { from: y, to: x } });
|
|
4646
4646
|
}, l = (p, x) => {
|
|
4647
|
-
p.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((
|
|
4647
|
+
p.preventDefault(), !x || x.type !== "dir" || s.getSelection().find((y) => y === p.currentTarget) ? (p.dataTransfer.dropEffect = "none", p.dataTransfer.effectAllowed = "none") : p.dataTransfer.dropEffect = "copy";
|
|
4648
4648
|
};
|
|
4649
4649
|
let u = null, h = !1;
|
|
4650
4650
|
const m = () => {
|
|
@@ -4668,22 +4668,22 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4668
4668
|
}, 500);
|
|
4669
4669
|
};
|
|
4670
4670
|
return (p, x) => ve((f(), g("div", {
|
|
4671
|
-
style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((
|
|
4672
|
-
class:
|
|
4671
|
+
style: os({ opacity: a(s).isDraggingRef.value && a(s).getSelection().find((y) => p.$el === y) ? "0.5 !important" : "" }),
|
|
4672
|
+
class: de(["vf-item-" + a(s).explorerId, "relative"]),
|
|
4673
4673
|
"data-type": t.item.type,
|
|
4674
4674
|
key: t.item.path,
|
|
4675
4675
|
"data-item": JSON.stringify(t.item),
|
|
4676
4676
|
"data-index": t.index,
|
|
4677
|
-
onDblclick: x[0] || (x[0] = (
|
|
4678
|
-
onTouchstart: x[1] || (x[1] = (
|
|
4679
|
-
onTouchend: x[2] || (x[2] = (
|
|
4680
|
-
onContextmenu: x[3] || (x[3] = rt((
|
|
4677
|
+
onDblclick: x[0] || (x[0] = (y) => n(t.item)),
|
|
4678
|
+
onTouchstart: x[1] || (x[1] = (y) => v(y)),
|
|
4679
|
+
onTouchend: x[2] || (x[2] = (y) => m()),
|
|
4680
|
+
onContextmenu: x[3] || (x[3] = rt((y) => a(e).emitter.emit("vf-contextmenu-show", { event: y, items: a(s).getSelected(), target: t.item }), ["prevent"]))
|
|
4681
4681
|
}, [
|
|
4682
4682
|
Dt(p.$slots, "default"),
|
|
4683
|
-
a(e).pinnedFolders.find((
|
|
4683
|
+
a(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), W(a(Bo), {
|
|
4684
4684
|
key: 0,
|
|
4685
4685
|
class: "absolute top-0 right-0 text-amber-600"
|
|
4686
|
-
})) :
|
|
4686
|
+
})) : j("", !0)
|
|
4687
4687
|
], 46, qm)), [
|
|
4688
4688
|
[c, t.item]
|
|
4689
4689
|
]);
|
|
@@ -4718,8 +4718,8 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4718
4718
|
let v = [...e.fs.data.files], p = l.column, x = l.order === "asc" ? 1 : -1;
|
|
4719
4719
|
if (!m)
|
|
4720
4720
|
return v;
|
|
4721
|
-
const
|
|
4722
|
-
return l.active && (v = v.slice().sort((
|
|
4721
|
+
const y = (b, A) => typeof b == "string" && typeof A == "string" ? b.toLowerCase().localeCompare(A.toLowerCase()) : b < A ? -1 : b > A ? 1 : 0;
|
|
4722
|
+
return l.active && (v = v.slice().sort((b, A) => y(b[p], A[p]) * x)), v;
|
|
4723
4723
|
}, h = (m) => {
|
|
4724
4724
|
l.active && l.column === m ? (l.active = l.order === "asc", l.column = m, l.order = "desc") : (l.active = !0, l.column = m, l.order = "asc");
|
|
4725
4725
|
};
|
|
@@ -4739,10 +4739,10 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4739
4739
|
ve(Y(Kt, {
|
|
4740
4740
|
direction: l.order
|
|
4741
4741
|
}, null, 8, ["direction"]), [
|
|
4742
|
-
[
|
|
4742
|
+
[je, l.active && l.column === "basename"]
|
|
4743
4743
|
])
|
|
4744
4744
|
]),
|
|
4745
|
-
c.value.length ?
|
|
4745
|
+
c.value.length ? j("", !0) : (f(), g("div", {
|
|
4746
4746
|
key: 0,
|
|
4747
4747
|
onClick: v[1] || (v[1] = (p) => h("file_size")),
|
|
4748
4748
|
class: "justify-center col-span-2 vf-sort-button"
|
|
@@ -4751,10 +4751,10 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4751
4751
|
ve(Y(Kt, {
|
|
4752
4752
|
direction: l.order
|
|
4753
4753
|
}, null, 8, ["direction"]), [
|
|
4754
|
-
[
|
|
4754
|
+
[je, l.active && l.column === "file_size"]
|
|
4755
4755
|
])
|
|
4756
4756
|
])),
|
|
4757
|
-
c.value.length ?
|
|
4757
|
+
c.value.length ? j("", !0) : (f(), g("div", {
|
|
4758
4758
|
key: 1,
|
|
4759
4759
|
onClick: v[2] || (v[2] = (p) => h("last_modified")),
|
|
4760
4760
|
class: "justify-center col-span-3 vf-sort-button"
|
|
@@ -4763,7 +4763,7 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4763
4763
|
ve(Y(Kt, {
|
|
4764
4764
|
direction: l.order
|
|
4765
4765
|
}, null, 8, ["direction"]), [
|
|
4766
|
-
[
|
|
4766
|
+
[je, l.active && l.column === "last_modified"]
|
|
4767
4767
|
])
|
|
4768
4768
|
])),
|
|
4769
4769
|
c.value.length ? (f(), g("div", {
|
|
@@ -4775,10 +4775,10 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4775
4775
|
ve(Y(Kt, {
|
|
4776
4776
|
direction: l.order
|
|
4777
4777
|
}, null, 8, ["direction"]), [
|
|
4778
|
-
[
|
|
4778
|
+
[je, l.active && l.column === "path"]
|
|
4779
4779
|
])
|
|
4780
|
-
])) :
|
|
4781
|
-
])) :
|
|
4780
|
+
])) : j("", !0)
|
|
4781
|
+
])) : j("", !0),
|
|
4782
4782
|
o("div", Wm, [
|
|
4783
4783
|
Y(Q0, {
|
|
4784
4784
|
ref_key: "dragImage",
|
|
@@ -4788,7 +4788,7 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4788
4788
|
]),
|
|
4789
4789
|
o("div", {
|
|
4790
4790
|
ref: a(i).scrollBarContainer,
|
|
4791
|
-
class:
|
|
4791
|
+
class: de(["vf-explorer-scrollbar-container", [{ "grid-view": a(e).view === "grid" }, { "search-active": c.value.length }]])
|
|
4792
4792
|
}, [
|
|
4793
4793
|
o("div", {
|
|
4794
4794
|
ref: a(i).scrollBar,
|
|
@@ -4819,7 +4819,7 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4819
4819
|
])
|
|
4820
4820
|
]),
|
|
4821
4821
|
_: 2
|
|
4822
|
-
}, 1032, ["item", "index", "dragImage"]))), 256)) :
|
|
4822
|
+
}, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0),
|
|
4823
4823
|
a(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (p, x) => (f(), W($s, {
|
|
4824
4824
|
item: p,
|
|
4825
4825
|
index: x,
|
|
@@ -4842,7 +4842,7 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4842
4842
|
])
|
|
4843
4843
|
]),
|
|
4844
4844
|
_: 2
|
|
4845
|
-
}, 1032, ["item", "index", "dragImage"]))), 128)) :
|
|
4845
|
+
}, 1032, ["item", "index", "dragImage"]))), 128)) : j("", !0),
|
|
4846
4846
|
a(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (p, x) => (f(), W($s, {
|
|
4847
4847
|
item: p,
|
|
4848
4848
|
index: x,
|
|
@@ -4863,13 +4863,13 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4863
4863
|
key: 1,
|
|
4864
4864
|
type: p.type
|
|
4865
4865
|
}, null, 8, ["type"])),
|
|
4866
|
-
!((p.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && p.type !== "dir" ? (f(), g("div", a1, _(r(p.extension)), 1)) :
|
|
4866
|
+
!((p.mime_type ?? "").startsWith("image") && a(e).showThumbnails) && p.type !== "dir" ? (f(), g("div", a1, _(r(p.extension)), 1)) : j("", !0)
|
|
4867
4867
|
]),
|
|
4868
|
-
o("span", l1, _(a(
|
|
4868
|
+
o("span", l1, _(a(js)(p.basename)), 1)
|
|
4869
4869
|
])
|
|
4870
4870
|
]),
|
|
4871
4871
|
_: 2
|
|
4872
|
-
}, 1032, ["item", "index", "dragImage"]))), 256)) :
|
|
4872
|
+
}, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0)
|
|
4873
4873
|
], 544),
|
|
4874
4874
|
Y(M0)
|
|
4875
4875
|
]));
|
|
@@ -4992,14 +4992,14 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4992
4992
|
});
|
|
4993
4993
|
const h = (m) => {
|
|
4994
4994
|
const v = e.dragSelect.area.value, p = e.root.getBoundingClientRect(), x = v.getBoundingClientRect();
|
|
4995
|
-
let
|
|
4995
|
+
let y = m.clientX - p.left, b = m.clientY - p.top;
|
|
4996
4996
|
i.active = !0, ft(() => {
|
|
4997
4997
|
var B;
|
|
4998
4998
|
const A = (B = r.value) == null ? void 0 : B.getBoundingClientRect();
|
|
4999
4999
|
let k = (A == null ? void 0 : A.height) ?? 0, U = (A == null ? void 0 : A.width) ?? 0;
|
|
5000
|
-
|
|
5001
|
-
left:
|
|
5002
|
-
top:
|
|
5000
|
+
y = x.right - m.pageX + window.scrollX < U ? y - U : y, b = x.bottom - m.pageY + window.scrollY < k ? b - k : b, i.positions = {
|
|
5001
|
+
left: y + "px",
|
|
5002
|
+
top: b + "px"
|
|
5003
5003
|
};
|
|
5004
5004
|
});
|
|
5005
5005
|
};
|
|
@@ -5031,7 +5031,7 @@ const Bo = { render: jm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
5031
5031
|
], 8, d1))
|
|
5032
5032
|
]))), 128))
|
|
5033
5033
|
], 4)), [
|
|
5034
|
-
[
|
|
5034
|
+
[je, i.active]
|
|
5035
5035
|
]);
|
|
5036
5036
|
}
|
|
5037
5037
|
}, m1 = {
|
|
@@ -5067,7 +5067,7 @@ const Ro = { render: p1 }, v1 = {
|
|
|
5067
5067
|
function x1(t, e) {
|
|
5068
5068
|
return f(), g("svg", v1, [..._1]);
|
|
5069
5069
|
}
|
|
5070
|
-
const
|
|
5070
|
+
const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none grow-0" }, w1 = { class: "flex leading-5 items-center" }, k1 = ["title"], $1 = { class: "z-[1] pointer-events-none" }, S1 = ["value"], C1 = { class: "ml-3" }, E1 = { key: 0 }, T1 = { class: "ml-1" }, M1 = { class: "flex leading-5 items-center justify-end" }, A1 = ["disabled"], D1 = ["title"], L1 = {
|
|
5071
5071
|
__name: "Statusbar",
|
|
5072
5072
|
setup(t) {
|
|
5073
5073
|
const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, n = e.dragSelect, c = () => {
|
|
@@ -5080,79 +5080,81 @@ const y1 = { render: x1 }, b1 = { class: "p-1 text-xs border-t border-neutral-30
|
|
|
5080
5080
|
const l = e.selectButton.multiple ? n.getSelected().length > 0 : n.getSelected().length === 1;
|
|
5081
5081
|
return e.selectButton.active && l;
|
|
5082
5082
|
});
|
|
5083
|
-
return (l, u) => (f(), g("div",
|
|
5083
|
+
return (l, u) => (f(), g("div", y1, [
|
|
5084
5084
|
o("div", w1, [
|
|
5085
5085
|
o("div", {
|
|
5086
|
-
class: "
|
|
5086
|
+
class: "flex leading-5 items-center rounded border dark:bg-gray-700 dark:border-gray-600",
|
|
5087
5087
|
title: a(s)("Storage")
|
|
5088
5088
|
}, [
|
|
5089
|
-
|
|
5089
|
+
o("div", $1, [
|
|
5090
|
+
Y(a(Ro))
|
|
5091
|
+
]),
|
|
5092
|
+
ve(o("select", {
|
|
5093
|
+
"onUpdate:modelValue": u[0] || (u[0] = (h) => a(e).fs.adapter = h),
|
|
5094
|
+
onChange: c,
|
|
5095
|
+
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",
|
|
5096
|
+
tabindex: "-1"
|
|
5097
|
+
}, [
|
|
5098
|
+
(f(!0), g(he, null, $e(a(e).fs.data.storages, (h) => (f(), g("option", { value: h }, _(h), 9, S1))), 256))
|
|
5099
|
+
], 544), [
|
|
5100
|
+
[Ss, a(e).fs.adapter]
|
|
5101
|
+
])
|
|
5090
5102
|
], 8, k1),
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
class: "-translate-x-5 pl-4 pr-2 py-0.5 text-xs text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded uppercase focus:outline-0",
|
|
5095
|
-
tabindex: "-1"
|
|
5096
|
-
}, [
|
|
5097
|
-
(f(!0), g(he, null, $e(a(e).fs.data.storages, (h) => (f(), g("option", { value: h }, _(h), 9, $1))), 256))
|
|
5098
|
-
], 544), [
|
|
5099
|
-
[Ss, a(e).fs.adapter]
|
|
5100
|
-
]),
|
|
5101
|
-
o("div", S1, [
|
|
5102
|
-
i.value.length ? (f(), g("span", C1, _(a(e).fs.data.files.length) + " items found. ", 1)) : P("", !0),
|
|
5103
|
-
o("span", E1, _(a(e).dragSelect.getCount() > 0 ? a(s)("%s item(s) selected.", a(e).dragSelect.getCount()) : ""), 1)
|
|
5103
|
+
o("div", C1, [
|
|
5104
|
+
i.value.length ? (f(), g("span", E1, _(a(e).fs.data.files.length) + " items found. ", 1)) : j("", !0),
|
|
5105
|
+
o("span", T1, _(a(e).dragSelect.getCount() > 0 ? a(s)("%s item(s) selected.", a(e).dragSelect.getCount()) : ""), 1)
|
|
5104
5106
|
])
|
|
5105
5107
|
]),
|
|
5106
|
-
o("div",
|
|
5108
|
+
o("div", M1, [
|
|
5107
5109
|
a(e).selectButton.active ? (f(), g("button", {
|
|
5108
5110
|
key: 0,
|
|
5109
|
-
class:
|
|
5111
|
+
class: de(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
|
|
5110
5112
|
disabled: !d.value,
|
|
5111
5113
|
onClick: u[1] || (u[1] = (h) => a(e).selectButton.click(a(n).getSelected(), h))
|
|
5112
|
-
}, _(a(s)("Select")), 11,
|
|
5114
|
+
}, _(a(s)("Select")), 11, A1)) : j("", !0),
|
|
5113
5115
|
o("span", {
|
|
5114
5116
|
class: "mr-1",
|
|
5115
5117
|
title: a(s)("About"),
|
|
5116
5118
|
onClick: u[2] || (u[2] = (h) => a(e).modal.open(Ao))
|
|
5117
5119
|
}, [
|
|
5118
|
-
Y(a(
|
|
5119
|
-
], 8,
|
|
5120
|
+
Y(a(b1))
|
|
5121
|
+
], 8, D1)
|
|
5120
5122
|
])
|
|
5121
5123
|
]));
|
|
5122
5124
|
}
|
|
5123
|
-
},
|
|
5125
|
+
}, V1 = {
|
|
5124
5126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5125
5127
|
fill: "none",
|
|
5126
5128
|
stroke: "currentColor",
|
|
5127
5129
|
"stroke-width": "1.5",
|
|
5128
5130
|
class: "text-neutral-500 fill-sky-500 stroke-gray-100/50 dark:stroke-slate-700/50 dark:fill-slate-500",
|
|
5129
5131
|
viewBox: "0 0 24 24"
|
|
5130
|
-
},
|
|
5132
|
+
}, O1 = /* @__PURE__ */ o("path", {
|
|
5131
5133
|
"stroke-linecap": "round",
|
|
5132
5134
|
"stroke-linejoin": "round",
|
|
5133
5135
|
d: "M3.75 9.776q.168-.026.344-.026h15.812q.176 0 .344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"
|
|
5134
|
-
}, null, -1),
|
|
5135
|
-
|
|
5136
|
+
}, null, -1), H1 = [
|
|
5137
|
+
O1
|
|
5136
5138
|
];
|
|
5137
|
-
function
|
|
5138
|
-
return f(), g("svg",
|
|
5139
|
+
function B1(t, e) {
|
|
5140
|
+
return f(), g("svg", V1, [...H1]);
|
|
5139
5141
|
}
|
|
5140
|
-
const Fo = { render:
|
|
5142
|
+
const Fo = { render: B1 }, R1 = {
|
|
5141
5143
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5142
5144
|
fill: "currentColor",
|
|
5143
5145
|
class: "h-5 w-5",
|
|
5144
5146
|
viewBox: "0 0 24 24"
|
|
5145
|
-
},
|
|
5147
|
+
}, F1 = /* @__PURE__ */ o("path", {
|
|
5146
5148
|
fill: "none",
|
|
5147
5149
|
d: "M0 0h24v24H0z"
|
|
5148
|
-
}, null, -1),
|
|
5149
|
-
|
|
5150
|
-
|
|
5150
|
+
}, null, -1), I1 = /* @__PURE__ */ o("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m3.6 5.2a1 1 0 0 0-1.4.2L12 10.333 9.8 7.4a1 1 0 1 0-1.6 1.2l2.55 3.4-2.55 3.4a1 1 0 1 0 1.6 1.2l2.2-2.933 2.2 2.933a1 1 0 0 0 1.6-1.2L13.25 12l2.55-3.4a1 1 0 0 0-.2-1.4" }, null, -1), N1 = [
|
|
5151
|
+
F1,
|
|
5152
|
+
I1
|
|
5151
5153
|
];
|
|
5152
|
-
function
|
|
5153
|
-
return f(), g("svg",
|
|
5154
|
+
function U1(t, e) {
|
|
5155
|
+
return f(), g("svg", R1, [...N1]);
|
|
5154
5156
|
}
|
|
5155
|
-
const
|
|
5157
|
+
const z1 = { render: U1 }, j1 = {
|
|
5156
5158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5157
5159
|
fill: "none",
|
|
5158
5160
|
stroke: "currentColor",
|
|
@@ -5163,14 +5165,14 @@ const U1 = { render: N1 }, z1 = {
|
|
|
5163
5165
|
}, P1 = /* @__PURE__ */ o("path", {
|
|
5164
5166
|
stroke: "none",
|
|
5165
5167
|
d: "M0 0h24v24H0z"
|
|
5166
|
-
}, null, -1),
|
|
5168
|
+
}, null, -1), q1 = /* @__PURE__ */ o("path", { d: "M15 12H9M12 9v6" }, null, -1), G1 = [
|
|
5167
5169
|
P1,
|
|
5168
|
-
|
|
5170
|
+
q1
|
|
5169
5171
|
];
|
|
5170
|
-
function
|
|
5171
|
-
return f(), g("svg",
|
|
5172
|
+
function K1(t, e) {
|
|
5173
|
+
return f(), g("svg", j1, [...G1]);
|
|
5172
5174
|
}
|
|
5173
|
-
const Io = { render:
|
|
5175
|
+
const Io = { render: K1 }, W1 = {
|
|
5174
5176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5175
5177
|
fill: "none",
|
|
5176
5178
|
stroke: "currentColor",
|
|
@@ -5178,22 +5180,22 @@ const Io = { render: G1 }, K1 = {
|
|
|
5178
5180
|
"stroke-linejoin": "round",
|
|
5179
5181
|
"stroke-width": "2",
|
|
5180
5182
|
viewBox: "0 0 24 24"
|
|
5181
|
-
},
|
|
5183
|
+
}, Y1 = /* @__PURE__ */ o("path", {
|
|
5182
5184
|
stroke: "none",
|
|
5183
5185
|
d: "M0 0h24v24H0z"
|
|
5184
|
-
}, null, -1),
|
|
5185
|
-
|
|
5186
|
-
|
|
5186
|
+
}, null, -1), X1 = /* @__PURE__ */ o("path", { d: "M9 12h6" }, null, -1), J1 = [
|
|
5187
|
+
Y1,
|
|
5188
|
+
X1
|
|
5187
5189
|
];
|
|
5188
|
-
function
|
|
5189
|
-
return f(), g("svg",
|
|
5190
|
+
function Q1(t, e) {
|
|
5191
|
+
return f(), g("svg", W1, [...J1]);
|
|
5190
5192
|
}
|
|
5191
|
-
const No = { render:
|
|
5193
|
+
const No = { render: Q1 };
|
|
5192
5194
|
function Uo(t, e) {
|
|
5193
5195
|
const s = t.findIndex((r) => r.path === e.path);
|
|
5194
5196
|
s > -1 ? t[s] = e : t.push(e);
|
|
5195
5197
|
}
|
|
5196
|
-
const
|
|
5198
|
+
const Z1 = {
|
|
5197
5199
|
key: 1,
|
|
5198
5200
|
class: "cursor-pointer"
|
|
5199
5201
|
}, zo = {
|
|
@@ -5250,12 +5252,12 @@ const Q1 = {
|
|
|
5250
5252
|
n.value ? (f(), W(a(ln), {
|
|
5251
5253
|
key: 0,
|
|
5252
5254
|
class: "p-1"
|
|
5253
|
-
})) : (f(), g("div",
|
|
5255
|
+
})) : (f(), g("div", Z1, [
|
|
5254
5256
|
r.value && ((h = i()) != null && h.folders.length) ? (f(), W(a(No), {
|
|
5255
5257
|
key: 0,
|
|
5256
5258
|
class: "text-gray-600"
|
|
5257
|
-
})) :
|
|
5258
|
-
r.value ?
|
|
5259
|
+
})) : j("", !0),
|
|
5260
|
+
r.value ? j("", !0) : (f(), W(a(Io), {
|
|
5259
5261
|
key: 1,
|
|
5260
5262
|
class: "text-gray-400"
|
|
5261
5263
|
}))
|
|
@@ -5263,7 +5265,7 @@ const Q1 = {
|
|
|
5263
5265
|
]);
|
|
5264
5266
|
};
|
|
5265
5267
|
}
|
|
5266
|
-
},
|
|
5268
|
+
}, ef = { class: "block" }, tf = { class: "flex hover:text-sky-700 dark:hover:text-sky-200/50 rounded" }, sf = { class: "h-5 w-5 shrink-0" }, nf = ["onClick"], of = { class: "h-5 w-5 shrink-0" }, rf = { class: "pl-4" }, af = {
|
|
5267
5269
|
__name: "TreeSubfolderList",
|
|
5268
5270
|
props: {
|
|
5269
5271
|
adapter: {
|
|
@@ -5282,13 +5284,13 @@ const Q1 = {
|
|
|
5282
5284
|
});
|
|
5283
5285
|
return (c, i) => {
|
|
5284
5286
|
const d = Qo("TreeSubfolderList", !0);
|
|
5285
|
-
return f(), g("ul",
|
|
5287
|
+
return f(), g("ul", ef, [
|
|
5286
5288
|
(f(!0), g(he, null, $e(n.value, (l, u) => (f(), g("li", {
|
|
5287
5289
|
class: "flex flex-col space-x-0.5 py-0.5 text-sm",
|
|
5288
5290
|
key: l.path
|
|
5289
5291
|
}, [
|
|
5290
|
-
o("div",
|
|
5291
|
-
o("div",
|
|
5292
|
+
o("div", tf, [
|
|
5293
|
+
o("div", sf, [
|
|
5292
5294
|
Y(zo, {
|
|
5293
5295
|
adapter: t.adapter,
|
|
5294
5296
|
path: l.path,
|
|
@@ -5300,27 +5302,27 @@ const Q1 = {
|
|
|
5300
5302
|
class: "flex cursor-pointer",
|
|
5301
5303
|
onClick: (h) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: l.path } })
|
|
5302
5304
|
}, [
|
|
5303
|
-
o("div",
|
|
5305
|
+
o("div", of, [
|
|
5304
5306
|
a(e).fs.path === l.path ? (f(), W(a(Fo), { key: 0 })) : (f(), W(a(fs), { key: 1 }))
|
|
5305
5307
|
]),
|
|
5306
5308
|
o("div", {
|
|
5307
|
-
class:
|
|
5309
|
+
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === l.path }])
|
|
5308
5310
|
}, _(l.basename), 3)
|
|
5309
|
-
], 8,
|
|
5311
|
+
], 8, nf)
|
|
5310
5312
|
]),
|
|
5311
|
-
o("div",
|
|
5313
|
+
o("div", rf, [
|
|
5312
5314
|
ve(Y(d, {
|
|
5313
5315
|
adapter: r.adapter,
|
|
5314
5316
|
path: l.path
|
|
5315
5317
|
}, null, 8, ["adapter", "path"]), [
|
|
5316
|
-
[
|
|
5318
|
+
[je, s.value[l.path]]
|
|
5317
5319
|
])
|
|
5318
5320
|
])
|
|
5319
5321
|
]))), 128))
|
|
5320
5322
|
]);
|
|
5321
5323
|
};
|
|
5322
5324
|
}
|
|
5323
|
-
},
|
|
5325
|
+
}, lf = { class: "pt-1 px-1 uppercase font-bold text-gray-400 dark:text-gray-500 text-xs flex justify-between bg-gray-100 dark:bg-[#2e3c51] border-b dark:border-gray-600" }, cf = {
|
|
5324
5326
|
__name: "TreeStorageItem",
|
|
5325
5327
|
props: {
|
|
5326
5328
|
storage: {
|
|
@@ -5333,17 +5335,19 @@ const Q1 = {
|
|
|
5333
5335
|
e.fs.adapter = n, s.value = !s.value, e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: n } }), e.storage.setStore("adapter", n);
|
|
5334
5336
|
};
|
|
5335
5337
|
return (n, c) => (f(), g(he, null, [
|
|
5336
|
-
o("div",
|
|
5338
|
+
o("div", lf, [
|
|
5337
5339
|
o("div", {
|
|
5338
|
-
class:
|
|
5340
|
+
class: de(["flex flex-1 space-x-1 items-center cursor-pointer", t.storage === a(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""]),
|
|
5339
5341
|
onClick: c[0] || (c[0] = (i) => r(t.storage))
|
|
5340
5342
|
}, [
|
|
5341
|
-
o("div",
|
|
5343
|
+
o("div", {
|
|
5344
|
+
class: de(["h-5 w-5 shrink-0", t.storage === a(e).fs.adapter ? "text-sky-500 dark:text-slate-300" : ""])
|
|
5345
|
+
}, [
|
|
5342
5346
|
Y(a(Ro))
|
|
5343
|
-
]),
|
|
5347
|
+
], 2),
|
|
5344
5348
|
o("div", null, _(t.storage), 1)
|
|
5345
5349
|
], 2),
|
|
5346
|
-
o("div",
|
|
5350
|
+
o("div", null, [
|
|
5347
5351
|
Y(zo, {
|
|
5348
5352
|
adapter: t.storage,
|
|
5349
5353
|
path: t.storage + "://",
|
|
@@ -5352,16 +5356,16 @@ const Q1 = {
|
|
|
5352
5356
|
}, null, 8, ["adapter", "path", "modelValue"])
|
|
5353
5357
|
])
|
|
5354
5358
|
]),
|
|
5355
|
-
ve(Y(
|
|
5359
|
+
ve(Y(af, {
|
|
5356
5360
|
adapter: t.storage,
|
|
5357
5361
|
path: t.storage + "://",
|
|
5358
5362
|
class: "overflow-x-auto"
|
|
5359
5363
|
}, null, 8, ["adapter", "path"]), [
|
|
5360
|
-
[
|
|
5364
|
+
[je, s.value]
|
|
5361
5365
|
])
|
|
5362
5366
|
], 64));
|
|
5363
5367
|
}
|
|
5364
|
-
},
|
|
5368
|
+
}, df = { class: "h-5 w-5 shrink-0" }, uf = { class: "cursor-pointer" }, mf = {
|
|
5365
5369
|
__name: "FolderIndicator",
|
|
5366
5370
|
props: {
|
|
5367
5371
|
modelValue: {},
|
|
@@ -5370,23 +5374,23 @@ const Q1 = {
|
|
|
5370
5374
|
emits: ["update:modelValue"],
|
|
5371
5375
|
setup(t) {
|
|
5372
5376
|
const e = Nn(t, "modelValue");
|
|
5373
|
-
return (s, r) => (f(), g("div",
|
|
5374
|
-
o("div",
|
|
5377
|
+
return (s, r) => (f(), g("div", df, [
|
|
5378
|
+
o("div", uf, [
|
|
5375
5379
|
e.value ? (f(), W(a(No), {
|
|
5376
5380
|
key: 0,
|
|
5377
5381
|
class: "text-gray-600"
|
|
5378
|
-
})) :
|
|
5379
|
-
e.value ?
|
|
5382
|
+
})) : j("", !0),
|
|
5383
|
+
e.value ? j("", !0) : (f(), W(a(Io), {
|
|
5380
5384
|
key: 1,
|
|
5381
5385
|
class: "text-gray-400"
|
|
5382
5386
|
}))
|
|
5383
5387
|
])
|
|
5384
5388
|
]));
|
|
5385
5389
|
}
|
|
5386
|
-
},
|
|
5390
|
+
}, ff = { class: "sticky left-0 dark:border-gray-600" }, hf = { class: "flex items-center space-x-1" }, pf = { class: "text-nowrap" }, vf = {
|
|
5387
5391
|
key: 0,
|
|
5388
5392
|
class: "block"
|
|
5389
|
-
},
|
|
5393
|
+
}, gf = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, _f = ["onClick"], xf = ["title"], bf = ["onClick"], yf = { key: 0 }, wf = { class: "p-1 text-xs text-center" }, kf = {
|
|
5390
5394
|
__name: "TreeView",
|
|
5391
5395
|
setup(t) {
|
|
5392
5396
|
const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: r, setStore: n } = e.storage, c = E(190), i = E(r("pinned-folders-opened", !0));
|
|
@@ -5396,13 +5400,13 @@ const Q1 = {
|
|
|
5396
5400
|
}, l = (h) => {
|
|
5397
5401
|
const m = h.clientX, v = h.target.parentElement, p = v.getBoundingClientRect().width;
|
|
5398
5402
|
v.classList.remove("transition-[width]"), v.classList.add("transition-none");
|
|
5399
|
-
const x = (
|
|
5400
|
-
c.value = p +
|
|
5401
|
-
},
|
|
5402
|
-
const
|
|
5403
|
-
c.value =
|
|
5403
|
+
const x = (b) => {
|
|
5404
|
+
c.value = p + b.clientX - m, c.value < 50 && (c.value = 0, e.showTreeView = !1), c.value > 50 && (e.showTreeView = !0);
|
|
5405
|
+
}, y = () => {
|
|
5406
|
+
const b = v.getBoundingClientRect();
|
|
5407
|
+
c.value = b.width, v.classList.add("transition-[width]"), v.classList.remove("transition-none"), window.removeEventListener("mousemove", x), window.removeEventListener("mouseup", y);
|
|
5404
5408
|
};
|
|
5405
|
-
window.addEventListener("mousemove", x), window.addEventListener("mouseup",
|
|
5409
|
+
window.addEventListener("mousemove", x), window.addEventListener("mouseup", y);
|
|
5406
5410
|
}, u = E(null);
|
|
5407
5411
|
return Ce(() => {
|
|
5408
5412
|
ct(u.value, {});
|
|
@@ -5416,7 +5420,7 @@ const Q1 = {
|
|
|
5416
5420
|
}), (h, m) => (f(), g(he, null, [
|
|
5417
5421
|
o("div", {
|
|
5418
5422
|
onClick: m[0] || (m[0] = (v) => a(e).showTreeView = !a(e).showTreeView),
|
|
5419
|
-
class:
|
|
5423
|
+
class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", a(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
|
|
5420
5424
|
}, null, 2),
|
|
5421
5425
|
o("div", {
|
|
5422
5426
|
style: os(a(e).showTreeView ? "min-width:100px;max-width:75%; width: " + c.value + "px" : "width: 0"),
|
|
@@ -5427,22 +5431,22 @@ const Q1 = {
|
|
|
5427
5431
|
ref: u,
|
|
5428
5432
|
class: "h-full border-r dark:border-gray-600/50 pb-4"
|
|
5429
5433
|
}, [
|
|
5430
|
-
o("div",
|
|
5434
|
+
o("div", ff, [
|
|
5431
5435
|
o("div", {
|
|
5432
5436
|
onClick: m[2] || (m[2] = (v) => i.value = !i.value),
|
|
5433
|
-
class: "p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
|
|
5437
|
+
class: "bg-gray-100 dark:bg-[#2e3c51] dark:border-gray-600 border-b p-1 uppercase font-bold text-gray-400 dark:text-gray-400 text-xs flex items-center justify-between cursor-pointer"
|
|
5434
5438
|
}, [
|
|
5435
|
-
o("div",
|
|
5439
|
+
o("div", hf, [
|
|
5436
5440
|
Y(a(Bo), { class: "text-amber-600" }),
|
|
5437
|
-
o("div",
|
|
5441
|
+
o("div", pf, _(a(s)("Pinned Folders")), 1)
|
|
5438
5442
|
]),
|
|
5439
|
-
Y(
|
|
5443
|
+
Y(mf, {
|
|
5440
5444
|
modelValue: i.value,
|
|
5441
5445
|
"onUpdate:modelValue": m[1] || (m[1] = (v) => i.value = v)
|
|
5442
5446
|
}, null, 8, ["modelValue"])
|
|
5443
5447
|
]),
|
|
5444
|
-
i.value ? (f(), g("ul",
|
|
5445
|
-
(f(!0), g(he, null, $e(a(e).pinnedFolders, (v) => (f(), g("li",
|
|
5448
|
+
i.value ? (f(), g("ul", vf, [
|
|
5449
|
+
(f(!0), g(he, null, $e(a(e).pinnedFolders, (v) => (f(), g("li", gf, [
|
|
5446
5450
|
o("div", {
|
|
5447
5451
|
class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
|
|
5448
5452
|
onClick: (p) => a(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
|
|
@@ -5450,40 +5454,40 @@ const Q1 = {
|
|
|
5450
5454
|
a(e).fs.path !== v.path ? (f(), W(a(fs), {
|
|
5451
5455
|
key: 0,
|
|
5452
5456
|
class: "h-5 w-5"
|
|
5453
|
-
})) :
|
|
5457
|
+
})) : j("", !0),
|
|
5454
5458
|
a(e).fs.path === v.path ? (f(), W(a(Fo), {
|
|
5455
5459
|
key: 1,
|
|
5456
5460
|
class: "h-5 w-5"
|
|
5457
|
-
})) :
|
|
5461
|
+
})) : j("", !0),
|
|
5458
5462
|
o("div", {
|
|
5459
5463
|
title: v.path,
|
|
5460
|
-
class:
|
|
5461
|
-
}, _(v.basename), 11,
|
|
5462
|
-
], 8,
|
|
5464
|
+
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": a(e).fs.path === v.path }])
|
|
5465
|
+
}, _(v.basename), 11, xf)
|
|
5466
|
+
], 8, _f),
|
|
5463
5467
|
o("div", {
|
|
5464
5468
|
class: "cursor-pointer",
|
|
5465
5469
|
onClick: (p) => d(v)
|
|
5466
5470
|
}, [
|
|
5467
|
-
Y(a(
|
|
5471
|
+
Y(a(z1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
|
|
5468
5472
|
], 8, bf)
|
|
5469
5473
|
]))), 256)),
|
|
5470
|
-
a(e).pinnedFolders.length ?
|
|
5471
|
-
o("div",
|
|
5474
|
+
a(e).pinnedFolders.length ? j("", !0) : (f(), g("li", yf, [
|
|
5475
|
+
o("div", wf, _(a(s)("No folders pinned")), 1)
|
|
5472
5476
|
]))
|
|
5473
|
-
])) :
|
|
5477
|
+
])) : j("", !0)
|
|
5474
5478
|
]),
|
|
5475
5479
|
(f(!0), g(he, null, $e(a(e).fs.data.storages, (v) => (f(), g("div", null, [
|
|
5476
|
-
Y(
|
|
5480
|
+
Y(cf, { storage: v }, null, 8, ["storage"])
|
|
5477
5481
|
]))), 256))
|
|
5478
5482
|
], 512),
|
|
5479
5483
|
o("div", {
|
|
5480
5484
|
onMousedown: l,
|
|
5481
|
-
class:
|
|
5485
|
+
class: de([(a(e).showTreeView, ""), "transition-colors ease-in-out duration-200 top-0 hover:bg-slate-600/10 dark:hover:bg-slate-300/10 w-1 h-full absolute -right-0.5 cursor-ew-resize"])
|
|
5482
5486
|
}, null, 34)
|
|
5483
5487
|
], 4)
|
|
5484
5488
|
], 64));
|
|
5485
5489
|
}
|
|
5486
|
-
},
|
|
5490
|
+
}, $f = { class: "relative flex overflow-hidden h-full" }, Sf = {
|
|
5487
5491
|
__name: "VueFinder",
|
|
5488
5492
|
props: {
|
|
5489
5493
|
id: {
|
|
@@ -5557,7 +5561,7 @@ const Q1 = {
|
|
|
5557
5561
|
},
|
|
5558
5562
|
emits: ["select"],
|
|
5559
5563
|
setup(t, { emit: e }) {
|
|
5560
|
-
const s = e, n =
|
|
5564
|
+
const s = e, n = ya(t, ae("VueFinderOptions"));
|
|
5561
5565
|
Zo("ServiceContainer", n);
|
|
5562
5566
|
const { setStore: c } = n.storage, i = E(null);
|
|
5563
5567
|
n.root = i;
|
|
@@ -5571,17 +5575,17 @@ const Q1 = {
|
|
|
5571
5575
|
u.abort(), n.fs.loading = !1;
|
|
5572
5576
|
}), n.emitter.on("vf-fetch", ({ params: h, body: m = null, onSuccess: v = null, onError: p = null, noCloseModal: x = !1 }) => {
|
|
5573
5577
|
["index", "search"].includes(h.q) && (u && u.abort(), n.fs.loading = !0), u = new AbortController();
|
|
5574
|
-
const
|
|
5578
|
+
const y = u.signal;
|
|
5575
5579
|
n.requester.send({
|
|
5576
5580
|
url: "",
|
|
5577
5581
|
method: h.m || "get",
|
|
5578
5582
|
params: h,
|
|
5579
5583
|
body: m,
|
|
5580
|
-
abortSignal:
|
|
5581
|
-
}).then((
|
|
5582
|
-
n.fs.adapter =
|
|
5583
|
-
}).catch((
|
|
5584
|
-
console.error(
|
|
5584
|
+
abortSignal: y
|
|
5585
|
+
}).then((b) => {
|
|
5586
|
+
n.fs.adapter = b.adapter, n.persist && (n.fs.path = b.dirname, c("path", n.fs.path)), ["index", "search"].includes(h.q) && (n.fs.loading = !1), x || n.modal.close(), l(b), v && v(b);
|
|
5587
|
+
}).catch((b) => {
|
|
5588
|
+
console.error(b), p && p(b);
|
|
5585
5589
|
});
|
|
5586
5590
|
}), Ce(() => {
|
|
5587
5591
|
let h = {};
|
|
@@ -5598,25 +5602,25 @@ const Q1 = {
|
|
|
5598
5602
|
tabindex: "0"
|
|
5599
5603
|
}, [
|
|
5600
5604
|
o("div", {
|
|
5601
|
-
class:
|
|
5605
|
+
class: de(a(n).theme.actualValue)
|
|
5602
5606
|
}, [
|
|
5603
5607
|
o("div", {
|
|
5604
|
-
class:
|
|
5608
|
+
class: de([a(n).fullScreen ? "fixed w-screen inset-0 z-20" : "relative rounded resize-y ", "overflow-hidden min-h-44 border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 select-none"]),
|
|
5605
5609
|
style: os(a(n).fullScreen ? "" : "max-height: " + t.maxHeight),
|
|
5606
5610
|
onMousedown: m[0] || (m[0] = (v) => a(n).emitter.emit("vf-contextmenu-hide")),
|
|
5607
5611
|
onTouchstart: m[1] || (m[1] = (v) => a(n).emitter.emit("vf-contextmenu-hide"))
|
|
5608
5612
|
}, [
|
|
5609
5613
|
Y(Qd),
|
|
5610
5614
|
Y(E0),
|
|
5611
|
-
o("div",
|
|
5612
|
-
Y(
|
|
5615
|
+
o("div", $f, [
|
|
5616
|
+
Y(kf),
|
|
5613
5617
|
Y(i1)
|
|
5614
5618
|
]),
|
|
5615
|
-
Y(
|
|
5619
|
+
Y(L1)
|
|
5616
5620
|
], 38),
|
|
5617
5621
|
Y(er, { name: "fade" }, {
|
|
5618
5622
|
default: se(() => [
|
|
5619
|
-
a(n).modal.visible ? (f(), W(tr(a(n).modal.type), { key: 0 })) :
|
|
5623
|
+
a(n).modal.visible ? (f(), W(tr(a(n).modal.type), { key: 0 })) : j("", !0)
|
|
5620
5624
|
]),
|
|
5621
5625
|
_: 1
|
|
5622
5626
|
}),
|
|
@@ -5624,7 +5628,7 @@ const Q1 = {
|
|
|
5624
5628
|
], 2)
|
|
5625
5629
|
], 512));
|
|
5626
5630
|
}
|
|
5627
|
-
},
|
|
5631
|
+
}, Bf = {
|
|
5628
5632
|
/**
|
|
5629
5633
|
* @param {import('vue').App} app
|
|
5630
5634
|
* @param options
|
|
@@ -5632,9 +5636,9 @@ const Q1 = {
|
|
|
5632
5636
|
install(t, e = {}) {
|
|
5633
5637
|
e.i18n = e.i18n ?? {};
|
|
5634
5638
|
let [s] = Object.keys(e.i18n);
|
|
5635
|
-
e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder",
|
|
5639
|
+
e.locale = e.locale ?? s ?? "en", t.provide("VueFinderOptions", e), t.component("VueFinder", Sf);
|
|
5636
5640
|
}
|
|
5637
5641
|
};
|
|
5638
5642
|
export {
|
|
5639
|
-
|
|
5643
|
+
Bf as default
|
|
5640
5644
|
};
|