vuefinder 2.5.8 → 2.5.9
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/vuefinder.cjs +2 -2
- package/dist/vuefinder.js +539 -541
- 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 Ne, 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
|
|
4
|
+
import { reactive as Ot, watch as Ne, 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 r, 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";
|
|
@@ -33,9 +33,9 @@ class ir {
|
|
|
33
33
|
* @return {RequestTransformResultInternal}
|
|
34
34
|
*/
|
|
35
35
|
transformRequestParams(e) {
|
|
36
|
-
const s = this.config,
|
|
37
|
-
_s != null && _s !== "" && (
|
|
38
|
-
const n = Object.assign({}, s.headers,
|
|
36
|
+
const s = this.config, a = {};
|
|
37
|
+
_s != null && _s !== "" && (a[s.xsrfHeaderName] = _s);
|
|
38
|
+
const n = Object.assign({}, s.headers, a, e.headers), c = Object.assign({}, s.params, e.params), i = e.body, d = s.baseUrl + e.url, l = e.method;
|
|
39
39
|
let u;
|
|
40
40
|
l !== "get" && (i instanceof FormData ? (u = i, s.body != null && Object.entries(this.config.body).forEach(([m, v]) => {
|
|
41
41
|
u.append(m, v);
|
|
@@ -70,12 +70,12 @@ class ir {
|
|
|
70
70
|
getDownloadUrl(e, s) {
|
|
71
71
|
if (s.url != null)
|
|
72
72
|
return s.url;
|
|
73
|
-
const
|
|
73
|
+
const a = this.transformRequestParams({
|
|
74
74
|
url: "",
|
|
75
75
|
method: "get",
|
|
76
76
|
params: { q: "download", adapter: e, path: s.path }
|
|
77
77
|
});
|
|
78
|
-
return
|
|
78
|
+
return a.url + "?" + new URLSearchParams(a.params).toString();
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
81
|
* Get preview url
|
|
@@ -88,12 +88,12 @@ class ir {
|
|
|
88
88
|
getPreviewUrl(e, s) {
|
|
89
89
|
if (s.url != null)
|
|
90
90
|
return s.url;
|
|
91
|
-
const
|
|
91
|
+
const a = this.transformRequestParams({
|
|
92
92
|
url: "",
|
|
93
93
|
method: "get",
|
|
94
94
|
params: { q: "preview", adapter: e, path: s.path }
|
|
95
95
|
});
|
|
96
|
-
return
|
|
96
|
+
return a.url + "?" + new URLSearchParams(a.params).toString();
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Send request
|
|
@@ -109,7 +109,7 @@ class ir {
|
|
|
109
109
|
* @throws {Record<String,?String>|null} resp json error
|
|
110
110
|
*/
|
|
111
111
|
async send(e) {
|
|
112
|
-
const s = this.transformRequestParams(e),
|
|
112
|
+
const s = this.transformRequestParams(e), a = e.responseType || "json", n = {
|
|
113
113
|
method: e.method,
|
|
114
114
|
headers: s.headers,
|
|
115
115
|
signal: e.abortSignal
|
|
@@ -120,7 +120,7 @@ class ir {
|
|
|
120
120
|
}
|
|
121
121
|
const i = await fetch(c, n);
|
|
122
122
|
if (i.ok)
|
|
123
|
-
return await i[
|
|
123
|
+
return await i[a]();
|
|
124
124
|
throw await i.json();
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -137,8 +137,8 @@ function cr(t) {
|
|
|
137
137
|
function dr(t) {
|
|
138
138
|
let e = localStorage.getItem(t + "_storage");
|
|
139
139
|
const s = Ot(JSON.parse(e ?? "{}"));
|
|
140
|
-
Ne(s,
|
|
141
|
-
function
|
|
140
|
+
Ne(s, a);
|
|
141
|
+
function a() {
|
|
142
142
|
Object.keys(s).length ? localStorage.setItem(t + "_storage", JSON.stringify(s)) : localStorage.removeItem(t + "_storage");
|
|
143
143
|
}
|
|
144
144
|
function n(l, u) {
|
|
@@ -156,15 +156,15 @@ async function ur(t, e) {
|
|
|
156
156
|
const s = e[t];
|
|
157
157
|
return typeof s == "function" ? (await s()).default : s;
|
|
158
158
|
}
|
|
159
|
-
function mr(t, e, s,
|
|
159
|
+
function mr(t, e, s, a) {
|
|
160
160
|
const { getStore: n, setStore: c } = t, i = E({}), d = E(n("locale", e)), l = (m, v = e) => {
|
|
161
|
-
ur(m,
|
|
162
|
-
i.value = h, c("locale", m), d.value = m, c("translations", h), Object.values(
|
|
161
|
+
ur(m, a).then((h) => {
|
|
162
|
+
i.value = h, c("locale", m), d.value = m, c("translations", h), Object.values(a).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + m }), s.emit("vf-language-saved"));
|
|
163
163
|
}).catch((h) => {
|
|
164
164
|
v ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(v, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
!n("locale") && !
|
|
167
|
+
!n("locale") && !a.length ? l(e) : i.value = n("translations");
|
|
168
168
|
const u = (m, ...v) => v.length ? u(m = m.replace("%s", v.shift()), ...v) : m;
|
|
169
169
|
function p(m, ...v) {
|
|
170
170
|
return i.value && i.value.hasOwnProperty(m) ? u(i.value[m], ...v) : u(m, ...v);
|
|
@@ -185,16 +185,16 @@ const pe = {
|
|
|
185
185
|
FULL_SCREEN: "fullscreen",
|
|
186
186
|
DOWNLOAD: "download",
|
|
187
187
|
LANGUAGE: "language"
|
|
188
|
-
}, fr = Object.values(pe), hr = "2.5.
|
|
189
|
-
function Un(t, e, s,
|
|
190
|
-
return (e = Math, s = e.log,
|
|
188
|
+
}, fr = Object.values(pe), hr = "2.5.9";
|
|
189
|
+
function Un(t, e, s, a, n) {
|
|
190
|
+
return (e = Math, s = e.log, a = 1024, n = s(t) / s(a) | 0, t / e.pow(a, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "iB" : "B");
|
|
191
191
|
}
|
|
192
|
-
function zn(t, e, s,
|
|
193
|
-
return (e = Math, s = e.log,
|
|
192
|
+
function zn(t, e, s, a, n) {
|
|
193
|
+
return (e = Math, s = e.log, a = 1e3, n = s(t) / s(a) | 0, t / e.pow(a, n)).toFixed(0) + " " + (n ? "KMGTPEZY"[--n] + "B" : "B");
|
|
194
194
|
}
|
|
195
195
|
function pr(t) {
|
|
196
|
-
const e = { k: 1, m: 2, g: 3, t: 4 },
|
|
197
|
-
return
|
|
196
|
+
const e = { k: 1, m: 2, g: 3, t: 4 }, a = /(\d+(?:\.\d+)?)\s?(k|m|g|t)?b?/i.exec(t);
|
|
197
|
+
return a[1] * Math.pow(1024, e[a[2].toLowerCase()]);
|
|
198
198
|
}
|
|
199
199
|
const st = {
|
|
200
200
|
SYSTEM: "system",
|
|
@@ -202,10 +202,10 @@ const st = {
|
|
|
202
202
|
DARK: "dark"
|
|
203
203
|
};
|
|
204
204
|
function vr(t, e) {
|
|
205
|
-
const s = E(st.SYSTEM),
|
|
205
|
+
const s = E(st.SYSTEM), a = E(st.LIGHT);
|
|
206
206
|
s.value = t.getStore("theme", e ?? st.SYSTEM);
|
|
207
207
|
const n = window.matchMedia("(prefers-color-scheme: dark)"), c = (i) => {
|
|
208
|
-
s.value === st.DARK || s.value === st.SYSTEM && i.matches ?
|
|
208
|
+
s.value === st.DARK || s.value === st.SYSTEM && i.matches ? a.value = st.DARK : a.value = st.LIGHT;
|
|
209
209
|
};
|
|
210
210
|
return c(n), n.addEventListener("change", c), {
|
|
211
211
|
/**
|
|
@@ -215,7 +215,7 @@ function vr(t, e) {
|
|
|
215
215
|
/**
|
|
216
216
|
* @type {import('vue').Ref<Theme>}
|
|
217
217
|
*/
|
|
218
|
-
actualValue:
|
|
218
|
+
actualValue: a,
|
|
219
219
|
/**
|
|
220
220
|
* @param {Theme} value
|
|
221
221
|
*/
|
|
@@ -242,10 +242,10 @@ function gr() {
|
|
|
242
242
|
* Released under the MIT license.
|
|
243
243
|
*/
|
|
244
244
|
const Ve = (t, e) => {
|
|
245
|
-
const { o: s, i:
|
|
245
|
+
const { o: s, i: a, u: n } = t;
|
|
246
246
|
let c = s, i;
|
|
247
247
|
const d = (p, m) => {
|
|
248
|
-
const v = c, h = p, x = m || (
|
|
248
|
+
const v = c, h = p, x = m || (a ? !a(v, h) : v !== h);
|
|
249
249
|
return (x || n) && (c = h, i = v), [c, x, i];
|
|
250
250
|
};
|
|
251
251
|
return [e ? (p) => d(e(c, i), p) : d, (p) => [c, !!p, i]];
|
|
@@ -256,8 +256,8 @@ const Ve = (t, e) => {
|
|
|
256
256
|
if (!t || !Lt(t))
|
|
257
257
|
return !1;
|
|
258
258
|
let e;
|
|
259
|
-
const s = "constructor",
|
|
260
|
-
if (
|
|
259
|
+
const s = "constructor", a = t[s], n = a && a.prototype, c = xs.call(t, s), i = n && xs.call(n, "isPrototypeOf");
|
|
260
|
+
if (a && !c && !i)
|
|
261
261
|
return !1;
|
|
262
262
|
for (e in t)
|
|
263
263
|
;
|
|
@@ -281,7 +281,7 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
281
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
|
-
}, ds = (t, e, s,
|
|
284
|
+
}, ds = (t, e, s, a) => {
|
|
285
285
|
if (t && e) {
|
|
286
286
|
let n = !0;
|
|
287
287
|
return ce(s, (c) => {
|
|
@@ -293,12 +293,12 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
293
293
|
}, so = (t, e) => ds(t, e, ["w", "h"]), Wt = (t, e) => ds(t, e, ["x", "y"]), kr = (t, e) => ds(t, e, ["t", "r", "b", "l"]), at = () => {
|
|
294
294
|
}, J = (t, ...e) => t.bind(0, ...e), mt = (t) => {
|
|
295
295
|
let e;
|
|
296
|
-
const s = t ? Qt : Gs,
|
|
296
|
+
const s = t ? Qt : Gs, a = t ? Es : qn;
|
|
297
297
|
return [(n) => {
|
|
298
|
-
|
|
299
|
-
}, () =>
|
|
298
|
+
a(e), e = s(() => n(), Fe(t) ? t() : t);
|
|
299
|
+
}, () => a(e)];
|
|
300
300
|
}, As = (t, e) => {
|
|
301
|
-
const { _: s, p:
|
|
301
|
+
const { _: s, p: a, v: n, m: c } = e || {};
|
|
302
302
|
let i, d, l, u, p = at;
|
|
303
303
|
const m = function(b) {
|
|
304
304
|
p(), Es(i), u = i = d = void 0, p = at, t.apply(this, b);
|
|
@@ -307,15 +307,15 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
307
307
|
}, x = function() {
|
|
308
308
|
const b = dt(arguments), A = Fe(s) ? s() : s;
|
|
309
309
|
if (qe(A) && A >= 0) {
|
|
310
|
-
const U = Fe(
|
|
310
|
+
const U = Fe(a) ? a() : a, 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
|
p(), n && !u ? (O(), u = !0, M = D(() => u = void 0, A)) : (M = D(O, A), B && !i && (i = Qt(h, U))), p = () => L(M), d = l = T;
|
|
313
313
|
} else
|
|
314
314
|
m(b);
|
|
315
315
|
};
|
|
316
316
|
return x.S = h, x;
|
|
317
|
-
}, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s,
|
|
318
|
-
const d = [e, s,
|
|
317
|
+
}, no = (t, e) => Object.prototype.hasOwnProperty.call(t, e), et = (t) => t ? Object.keys(t) : [], re = (t, e, s, a, n, c, i) => {
|
|
318
|
+
const d = [e, s, a, n, c, i];
|
|
319
319
|
return (typeof t != "object" || Ks(t)) && !Fe(t) && (t = {}), ce(d, (l) => {
|
|
320
320
|
ce(l, (u, p) => {
|
|
321
321
|
const m = l[p];
|
|
@@ -330,44 +330,44 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
330
330
|
t[p] = v ? m.slice() : m;
|
|
331
331
|
});
|
|
332
332
|
}), t;
|
|
333
|
-
}, oo = (t, e) => ce(re({}, t), (s,
|
|
334
|
-
s === void 0 ? delete n[
|
|
333
|
+
}, oo = (t, e) => ce(re({}, t), (s, a, n) => {
|
|
334
|
+
s === void 0 ? delete n[a] : s && es(s) && (n[a] = oo(s));
|
|
335
335
|
}), Ys = (t) => {
|
|
336
336
|
for (const e in t)
|
|
337
337
|
return !1;
|
|
338
338
|
return !0;
|
|
339
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
|
-
ce(ht(e), (
|
|
341
|
-
t && t.setAttribute(
|
|
340
|
+
ce(ht(e), (a) => {
|
|
341
|
+
t && t.setAttribute(a, String(s || ""));
|
|
342
342
|
});
|
|
343
343
|
}, ze = (t, e) => {
|
|
344
344
|
ce(ht(e), (s) => t && t.removeAttribute(s));
|
|
345
345
|
}, us = (t, e) => {
|
|
346
|
-
const s = ht(Xs(t, e)),
|
|
346
|
+
const s = ht(Xs(t, e)), a = J(Je, t, e), n = (c, i) => {
|
|
347
347
|
const d = new Set(s);
|
|
348
348
|
return ce(ht(c), (l) => {
|
|
349
349
|
d[i](l);
|
|
350
350
|
}), dt(d).join(" ");
|
|
351
351
|
};
|
|
352
352
|
return {
|
|
353
|
-
O: (c) =>
|
|
354
|
-
$: (c) =>
|
|
353
|
+
O: (c) => a(n(c, "delete")),
|
|
354
|
+
$: (c) => a(n(c, "add")),
|
|
355
355
|
C: (c) => {
|
|
356
356
|
const i = ht(c);
|
|
357
357
|
return i.reduce((d, l) => d && s.includes(l), i.length > 0);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
|
-
}, ro = (t, e, s) => (us(t, e).O(s), J(Js, t, e, s)), Js = (t, e, s) => (us(t, e).$(s), J(ro, t, e, s)), Ls = (t, e, s,
|
|
360
|
+
}, ro = (t, e, s) => (us(t, e).O(s), J(Js, t, e, s)), Js = (t, e, s) => (us(t, e).$(s), J(ro, t, e, s)), Ls = (t, e, s, a) => (a ? Js : ro)(t, e, s), Qs = (t, e, s) => us(t, e).C(s), ao = (t) => us(t, "class"), lo = (t, e) => {
|
|
361
361
|
ao(t).O(e);
|
|
362
362
|
}, Zs = (t, e) => (ao(t).$(e), J(lo, t, e)), io = (t, e) => {
|
|
363
|
-
const s = [],
|
|
364
|
-
return
|
|
363
|
+
const s = [], a = e ? cs(e) && e : document;
|
|
364
|
+
return a ? xe(s, a.querySelectorAll(t)) : s;
|
|
365
365
|
}, $r = (t, e) => {
|
|
366
366
|
const s = e ? cs(e) && e : document;
|
|
367
367
|
return s ? s.querySelector(t) : null;
|
|
368
368
|
}, ss = (t, e) => cs(t) ? t.matches(e) : !1, co = (t) => ss(t, "body"), Vs = (t) => t ? dt(t.childNodes) : [], kt = (t) => t && t.parentElement, _t = (t, e) => cs(t) && t.closest(e), Os = (t) => document.activeElement, Sr = (t, e, s) => {
|
|
369
|
-
const
|
|
370
|
-
return
|
|
369
|
+
const a = _t(t, e), n = t && $r(s, a), c = _t(n, e) === a;
|
|
370
|
+
return a && n ? a === t || n === t || c && _t(_t(t, s), e) !== a : !1;
|
|
371
371
|
}, it = (t) => {
|
|
372
372
|
if (is(t))
|
|
373
373
|
ce(dt(t), (e) => it(e));
|
|
@@ -377,10 +377,10 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
377
377
|
}
|
|
378
378
|
}, uo = (t, e, s) => {
|
|
379
379
|
if (s && t) {
|
|
380
|
-
let
|
|
380
|
+
let a = e, n;
|
|
381
381
|
return is(s) ? (n = document.createDocumentFragment(), ce(s, (c) => {
|
|
382
|
-
c ===
|
|
383
|
-
})) : n = s, e && (
|
|
382
|
+
c === a && (a = c.previousSibling), n.appendChild(c);
|
|
383
|
+
})) : n = s, e && (a ? a !== e && (a = a.nextSibling) : a = t.firstChild), t.insertBefore(n, a || null), () => it(s);
|
|
384
384
|
}
|
|
385
385
|
return at;
|
|
386
386
|
}, Oe = (t, e) => uo(t, null, e), gn = (t, e) => uo(kt(t), t && t.nextSibling, e), xt = (t) => {
|
|
@@ -394,25 +394,25 @@ const Ws = (t, e) => t.indexOf(e) >= 0, Qe = (t, e) => t.concat(e), xe = (t, e,
|
|
|
394
394
|
return isFinite(e) ? e : 0;
|
|
395
395
|
}, qt = (t) => en(parseFloat(t || "")), xn = (t) => `${(en(t) * 100).toFixed(3)}%`, Hs = (t) => `${en(t)}px`;
|
|
396
396
|
function Vt(t, e) {
|
|
397
|
-
t && e && ce(e, (s,
|
|
397
|
+
t && e && ce(e, (s, a) => {
|
|
398
398
|
try {
|
|
399
399
|
const n = t.style, c = qe(s) ? Hs(s) : (s || "") + "";
|
|
400
|
-
Cr.test(
|
|
400
|
+
Cr.test(a) ? n.setProperty(a, c) : n[a] = c;
|
|
401
401
|
} catch {
|
|
402
402
|
}
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
function pt(t, e, s) {
|
|
406
|
-
const
|
|
407
|
-
let n =
|
|
406
|
+
const a = ls(e);
|
|
407
|
+
let n = a ? "" : {};
|
|
408
408
|
if (t) {
|
|
409
409
|
const c = Ae.getComputedStyle(t, s) || t.style;
|
|
410
|
-
n =
|
|
410
|
+
n = a ? _n(c, e) : dt(e).reduce((i, d) => (i[d] = _n(c, d), i), n);
|
|
411
411
|
}
|
|
412
412
|
return n;
|
|
413
413
|
}
|
|
414
414
|
const bn = (t, e, s) => {
|
|
415
|
-
const
|
|
415
|
+
const a = e ? `${e}-` : "", n = s ? `-${s}` : "", c = `${a}top${n}`, i = `${a}right${n}`, d = `${a}bottom${n}`, l = `${a}left${n}`, u = pt(t, [c, i, d, l]);
|
|
416
416
|
return {
|
|
417
417
|
t: qt(u[c]),
|
|
418
418
|
r: qt(u[i]),
|
|
@@ -434,13 +434,13 @@ const bn = (t, e, s) => {
|
|
|
434
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
|
-
}, yn = (t, e, s,
|
|
437
|
+
}, yn = (t, e, s, a) => {
|
|
438
438
|
ce(ht(e), (n) => {
|
|
439
|
-
t && t.removeEventListener(n, s,
|
|
439
|
+
t && t.removeEventListener(n, s, a);
|
|
440
440
|
});
|
|
441
|
-
}, fe = (t, e, s,
|
|
441
|
+
}, fe = (t, e, s, a) => {
|
|
442
442
|
var n;
|
|
443
|
-
const c = (n =
|
|
443
|
+
const c = (n = a && a.H) != null ? n : !0, i = a && a.I || !1, d = a && a.A || !1, l = {
|
|
444
444
|
passive: c,
|
|
445
445
|
capture: i
|
|
446
446
|
};
|
|
@@ -451,11 +451,11 @@ const bn = (t, e, s) => {
|
|
|
451
451
|
return t && t.addEventListener(u, p, l), J(yn, t, u, p, i);
|
|
452
452
|
}));
|
|
453
453
|
}, po = (t) => t.stopPropagation(), Fs = (t) => t.preventDefault(), vo = (t) => po(t) || Fs(t), Pe = (t, e) => {
|
|
454
|
-
const { x: s, y:
|
|
454
|
+
const { x: s, y: a } = qe(e) ? {
|
|
455
455
|
x: e,
|
|
456
456
|
y: e
|
|
457
457
|
} : e || {};
|
|
458
|
-
qe(s) && (t.scrollLeft = s), qe(
|
|
458
|
+
qe(s) && (t.scrollLeft = s), qe(a) && (t.scrollTop = a);
|
|
459
459
|
}, He = (t) => ({
|
|
460
460
|
x: t.scrollLeft,
|
|
461
461
|
y: t.scrollTop
|
|
@@ -469,14 +469,14 @@ const bn = (t, e, s) => {
|
|
|
469
469
|
y: 0
|
|
470
470
|
}
|
|
471
471
|
}), Dr = (t, e) => {
|
|
472
|
-
const { T: s, D:
|
|
472
|
+
const { T: s, D: a } = t, { w: n, h: c } = e, i = (m, v, h) => {
|
|
473
473
|
let x = fn(m) * h, y = fn(v) * h;
|
|
474
474
|
if (x === y) {
|
|
475
475
|
const b = Jt(m), A = Jt(v);
|
|
476
476
|
y = b > A ? 0 : y, x = b < A ? 0 : x;
|
|
477
477
|
}
|
|
478
478
|
return x = x === y ? 0 : x, [x + 0, y + 0];
|
|
479
|
-
}, [d, l] = i(s.x,
|
|
479
|
+
}, [d, l] = i(s.x, a.x, n), [u, p] = i(s.y, a.y, c);
|
|
480
480
|
return {
|
|
481
481
|
T: {
|
|
482
482
|
x: d,
|
|
@@ -488,16 +488,16 @@ const bn = (t, e, s) => {
|
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
490
|
}, wn = ({ T: t, D: e }) => {
|
|
491
|
-
const s = (
|
|
491
|
+
const s = (a, n) => a === 0 && a <= n;
|
|
492
492
|
return {
|
|
493
493
|
x: s(t.x, e.x),
|
|
494
494
|
y: s(t.y, e.y)
|
|
495
495
|
};
|
|
496
496
|
}, kn = ({ T: t, D: e }, s) => {
|
|
497
|
-
const
|
|
497
|
+
const a = (n, c, i) => Ds(0, 1, (n - i) / (n - c) || 0);
|
|
498
498
|
return {
|
|
499
|
-
x:
|
|
500
|
-
y:
|
|
499
|
+
x: a(t.x, e.x, s.x),
|
|
500
|
+
y: a(t.y, e.y, s.y)
|
|
501
501
|
};
|
|
502
502
|
}, Is = (t) => {
|
|
503
503
|
t && t.focus && t.focus({
|
|
@@ -516,7 +516,7 @@ const bn = (t, e, s) => {
|
|
|
516
516
|
e.forEach((d) => {
|
|
517
517
|
d.clear();
|
|
518
518
|
}), e.clear();
|
|
519
|
-
},
|
|
519
|
+
}, a = (c, i) => {
|
|
520
520
|
if (ls(c)) {
|
|
521
521
|
const u = e.get(c) || /* @__PURE__ */ new Set();
|
|
522
522
|
return e.set(c, u), $n((p) => {
|
|
@@ -527,19 +527,19 @@ const bn = (t, e, s) => {
|
|
|
527
527
|
const d = et(c), l = [];
|
|
528
528
|
return ce(d, (u) => {
|
|
529
529
|
const p = c[u];
|
|
530
|
-
p && xe(l,
|
|
530
|
+
p && xe(l, a(u, p));
|
|
531
531
|
}), J(Ie, l);
|
|
532
532
|
}, n = (c, i) => {
|
|
533
533
|
ce(dt(e.get(c)), (d) => {
|
|
534
534
|
i && !Ms(i) ? d.apply(0, i) : d();
|
|
535
535
|
});
|
|
536
536
|
};
|
|
537
|
-
return
|
|
537
|
+
return a(t || {}), [a, s, n];
|
|
538
538
|
}, Sn = (t) => JSON.stringify(t, (e, s) => {
|
|
539
539
|
if (Fe(s))
|
|
540
540
|
throw 0;
|
|
541
541
|
return s;
|
|
542
|
-
}), Cn = (t, e) => t ? `${e}`.split(".").reduce((s,
|
|
542
|
+
}), Cn = (t, e) => t ? `${e}`.split(".").reduce((s, a) => s && no(s, a) ? s[a] : void 0, t) : void 0, Lr = {
|
|
543
543
|
paddingAbsolute: !1,
|
|
544
544
|
showNativeOverlaidScrollbars: !1,
|
|
545
545
|
update: {
|
|
@@ -563,8 +563,8 @@ const bn = (t, e, s) => {
|
|
|
563
563
|
pointers: ["mouse", "touch", "pen"]
|
|
564
564
|
}
|
|
565
565
|
}, _o = (t, e) => {
|
|
566
|
-
const s = {},
|
|
567
|
-
return ce(
|
|
566
|
+
const s = {}, a = Qe(et(e), et(t));
|
|
567
|
+
return ce(a, (n) => {
|
|
568
568
|
const c = t[n], i = e[n];
|
|
569
569
|
if (Lt(c) && Lt(i))
|
|
570
570
|
re(s[n] = {}, _o(c, i)), Ys(s[n]) && delete s[n];
|
|
@@ -578,7 +578,7 @@ const bn = (t, e, s) => {
|
|
|
578
578
|
d && (s[n] = i);
|
|
579
579
|
}
|
|
580
580
|
}), s;
|
|
581
|
-
}, En = (t, e, s) => (
|
|
581
|
+
}, En = (t, e, s) => (a) => [Cn(t, a), s || Cn(e, a) !== 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) => {
|
|
@@ -646,23 +646,23 @@ const Xr = () => {
|
|
|
646
646
|
});
|
|
647
647
|
}
|
|
648
648
|
return A;
|
|
649
|
-
}, Ke = () => (ws || (ws = Xr()), ws), wo = (t, e) => Fe(e) ? e.apply(0, t) : e, Jr = (t, e, s,
|
|
650
|
-
const n = as(
|
|
649
|
+
}, Ke = () => (ws || (ws = Xr()), ws), wo = (t, e) => Fe(e) ? e.apply(0, t) : e, Jr = (t, e, s, a) => {
|
|
650
|
+
const n = as(a) ? s : a;
|
|
651
651
|
return wo(t, n) || e.apply(0, t);
|
|
652
|
-
}, ko = (t, e, s,
|
|
653
|
-
const n = as(
|
|
652
|
+
}, ko = (t, e, s, a) => {
|
|
653
|
+
const n = as(a) ? s : a, c = wo(t, n);
|
|
654
654
|
return !!c && (ts(c) ? c : e.apply(0, t));
|
|
655
655
|
}, Qr = (t, e) => {
|
|
656
|
-
const { nativeScrollbarsOverlaid: s, body:
|
|
656
|
+
const { nativeScrollbarsOverlaid: s, body: a } = e || {}, { M: n, R: c, P: i } = Ke(), { nativeScrollbarsOverlaid: d, body: l } = i().cancel, u = s ?? d, p = as(a) ? l : a, m = (n.x || n.y) && u, v = t && (Ks(p) ? !c : p);
|
|
657
657
|
return !!m || !!v;
|
|
658
658
|
}, on = /* @__PURE__ */ new WeakMap(), Zr = (t, e) => {
|
|
659
659
|
on.set(t, e);
|
|
660
660
|
}, ea = (t) => {
|
|
661
661
|
on.delete(t);
|
|
662
662
|
}, $o = (t) => on.get(t), ta = (t, e, s) => {
|
|
663
|
-
let
|
|
663
|
+
let a = !1;
|
|
664
664
|
const n = s ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
665
|
-
|
|
665
|
+
a = !0;
|
|
666
666
|
}, i = (d) => {
|
|
667
667
|
if (n && s) {
|
|
668
668
|
const l = s.map((u) => {
|
|
@@ -673,7 +673,7 @@ const Xr = () => {
|
|
|
673
673
|
const m = u[1], v = n.get(p) || [];
|
|
674
674
|
if (t.contains(p) && m) {
|
|
675
675
|
const x = fe(p, m, (y) => {
|
|
676
|
-
|
|
676
|
+
a ? (x(), n.delete(p)) : e(y);
|
|
677
677
|
});
|
|
678
678
|
n.set(p, xe(v, x));
|
|
679
679
|
} else
|
|
@@ -682,9 +682,9 @@ const Xr = () => {
|
|
|
682
682
|
}
|
|
683
683
|
};
|
|
684
684
|
return i(), [c, i];
|
|
685
|
-
}, On = (t, e, s,
|
|
685
|
+
}, On = (t, e, s, a) => {
|
|
686
686
|
let n = !1;
|
|
687
|
-
const { j: c, X: i, Y: d, W: l, J: u, K: p } =
|
|
687
|
+
const { j: c, X: i, Y: d, W: l, J: u, K: p } = a || {}, m = As(() => n && s(!0), {
|
|
688
688
|
_: 33,
|
|
689
689
|
p: 99
|
|
690
690
|
}), [v, h] = ta(t, m, d), x = c || [], y = i || [], b = Qe(x, y), A = (U, B) => {
|
|
@@ -694,7 +694,7 @@ const Xr = () => {
|
|
|
694
694
|
if (ce(B, (S) => {
|
|
695
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 = ue && me, P = q && l && ss($, l), N = (P ? !D($, H, I, X) : !ue || q) && !L(S, !!P, t,
|
|
697
|
+
const q = ue && me, P = q && l && ss($, l), N = (P ? !D($, H, I, X) : !ue || q) && !L(S, !!P, t, a);
|
|
698
698
|
ce(R, (G) => xe(V, G)), ce(ne, (G) => xe(V, G)), M = M || N;
|
|
699
699
|
}
|
|
700
700
|
!e && F && me && !D($, H, I, X) && (xe(T, H), O = O || z);
|
|
@@ -720,35 +720,35 @@ const Xr = () => {
|
|
|
720
720
|
return m.S(), A(!0, k.takeRecords());
|
|
721
721
|
}];
|
|
722
722
|
}, So = {}, Co = {}, sa = (t) => {
|
|
723
|
-
ce(t, (e) => ce(e, (s,
|
|
724
|
-
So[
|
|
723
|
+
ce(t, (e) => ce(e, (s, a) => {
|
|
724
|
+
So[a] = e[a];
|
|
725
725
|
}));
|
|
726
|
-
}, Eo = (t, e, s) => et(t).map((
|
|
727
|
-
const { static: n, instance: c } = t[
|
|
726
|
+
}, Eo = (t, e, s) => et(t).map((a) => {
|
|
727
|
+
const { static: n, instance: c } = t[a], [i, d, l] = s || [], u = s ? c : n;
|
|
728
728
|
if (u) {
|
|
729
729
|
const p = s ? u(i, d, e) : u(e);
|
|
730
|
-
return (l || Co)[
|
|
730
|
+
return (l || Co)[a] = p;
|
|
731
731
|
}
|
|
732
732
|
}), Ht = (t) => Co[t], na = "__osOptionsValidationPlugin", oa = "__osSizeObserverPlugin", ra = (t, e) => {
|
|
733
|
-
const { M: s } = e, [
|
|
734
|
-
return [
|
|
733
|
+
const { M: s } = e, [a, n] = t("showNativeOverlaidScrollbars");
|
|
734
|
+
return [a && s.x && s.y, n];
|
|
735
735
|
}, ns = (t) => t.indexOf(ot) === 0, aa = (t, e) => {
|
|
736
736
|
const s = (n, c, i, d) => {
|
|
737
737
|
const l = n === ot ? ut : n.replace(`${ot}-`, ""), u = ns(n), p = ns(i);
|
|
738
738
|
return !c && !d ? ut : u && p ? ot : u ? c && d ? l : c ? ot : ut : c ? l : p && d ? ot : ut;
|
|
739
|
-
},
|
|
739
|
+
}, a = {
|
|
740
740
|
x: s(e.x, t.x, e.y, t.y),
|
|
741
741
|
y: s(e.y, t.y, e.x, t.x)
|
|
742
742
|
};
|
|
743
743
|
return {
|
|
744
|
-
G:
|
|
744
|
+
G: a,
|
|
745
745
|
Z: {
|
|
746
|
-
x:
|
|
747
|
-
y:
|
|
746
|
+
x: a.x === wt,
|
|
747
|
+
y: a.y === wt
|
|
748
748
|
}
|
|
749
749
|
};
|
|
750
750
|
}, To = "__osScrollbarsHidingPlugin", la = "__osClickScrollPlugin", Mo = (t, e, s) => {
|
|
751
|
-
const { dt:
|
|
751
|
+
const { dt: a } = s || {}, n = Ht(oa), [c] = Ve({
|
|
752
752
|
o: !1,
|
|
753
753
|
u: !0
|
|
754
754
|
});
|
|
@@ -772,7 +772,7 @@ const Xr = () => {
|
|
|
772
772
|
m.disconnect();
|
|
773
773
|
});
|
|
774
774
|
} else if (n) {
|
|
775
|
-
const [m, v] = n(u, p,
|
|
775
|
+
const [m, v] = n(u, p, a);
|
|
776
776
|
xe(i, Qe([Zs(l, Ir), fe(l, "animationstart", m)], v));
|
|
777
777
|
} else
|
|
778
778
|
return at;
|
|
@@ -780,11 +780,11 @@ const Xr = () => {
|
|
|
780
780
|
};
|
|
781
781
|
}, ia = (t, e) => {
|
|
782
782
|
let s;
|
|
783
|
-
const
|
|
783
|
+
const a = (l) => l.h === 0 || l.isIntersecting || l.intersectionRatio > 0, n = xt(Ur), [c] = Ve({
|
|
784
784
|
o: !1
|
|
785
785
|
}), i = (l, u) => {
|
|
786
786
|
if (l) {
|
|
787
|
-
const p = c(
|
|
787
|
+
const p = c(a(l)), [, m] = p;
|
|
788
788
|
return m && !u && e(p) && [p];
|
|
789
789
|
}
|
|
790
790
|
}, d = (l, u) => i(u.pop(), l);
|
|
@@ -805,7 +805,7 @@ const Xr = () => {
|
|
|
805
805
|
}
|
|
806
806
|
return J(Ie, xe(l, Oe(t, n)));
|
|
807
807
|
}, () => s && d(!0, s.takeRecords())];
|
|
808
|
-
}, ca = (t, e, s,
|
|
808
|
+
}, ca = (t, e, s, a) => {
|
|
809
809
|
let n, c, i, d, l, u;
|
|
810
810
|
const p = `[${lt}]`, m = `[${nt}]`, v = [], h = ["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,
|
|
@@ -822,7 +822,7 @@ const Xr = () => {
|
|
|
822
822
|
w: Se.w + oe.w,
|
|
823
823
|
h: Se.h + oe.h
|
|
824
824
|
};
|
|
825
|
-
}), w = B ? h : Qe(x, h), I = As(
|
|
825
|
+
}), w = B ? h : Qe(x, h), I = As(a, {
|
|
826
826
|
_: () => n,
|
|
827
827
|
p: () => c,
|
|
828
828
|
m(C, N) {
|
|
@@ -842,9 +842,9 @@ const Xr = () => {
|
|
|
842
842
|
};
|
|
843
843
|
return re(M, {
|
|
844
844
|
$t: G
|
|
845
|
-
}), !N &&
|
|
845
|
+
}), !N && a(Z), Z;
|
|
846
846
|
}, ue = ({ ft: C, dt: N }) => {
|
|
847
|
-
const K = !(C && !N) && S.R ? I :
|
|
847
|
+
const K = !(C && !N) && S.R ? I : a, Z = {
|
|
848
848
|
ft: C || N,
|
|
849
849
|
dt: N
|
|
850
850
|
};
|
|
@@ -853,7 +853,7 @@ const Xr = () => {
|
|
|
853
853
|
const [, G] = $(), K = {
|
|
854
854
|
Ht: G
|
|
855
855
|
};
|
|
856
|
-
return R(K), G && !N && (C ?
|
|
856
|
+
return R(K), G && !N && (C ? a : I)(K), K;
|
|
857
857
|
}, F = (C, N, G) => {
|
|
858
858
|
const K = {
|
|
859
859
|
Et: N
|
|
@@ -872,7 +872,7 @@ const Xr = () => {
|
|
|
872
872
|
}), l = N;
|
|
873
873
|
}), P = As(() => {
|
|
874
874
|
const [, C] = $();
|
|
875
|
-
|
|
875
|
+
a({
|
|
876
876
|
Ht: C
|
|
877
877
|
});
|
|
878
878
|
}, {
|
|
@@ -915,7 +915,7 @@ const Xr = () => {
|
|
|
915
915
|
}
|
|
916
916
|
return R(K), K;
|
|
917
917
|
}, M];
|
|
918
|
-
}, da = (t, e, s,
|
|
918
|
+
}, da = (t, e, s, a) => {
|
|
919
919
|
const { P: n } = Ke(), { scrollbars: c } = n(), { slot: i } = c, { vt: d, ht: l, ot: u, Dt: p, gt: m, yt: v, nt: h } = e, { scrollbars: x } = p ? {} : t, { slot: y } = x || {}, b = /* @__PURE__ */ new Map(), A = (z) => Ts && new Ts({
|
|
920
920
|
source: m,
|
|
921
921
|
axis: z
|
|
@@ -1017,7 +1017,7 @@ const Xr = () => {
|
|
|
1017
1017
|
kt: C,
|
|
1018
1018
|
Mt: N
|
|
1019
1019
|
};
|
|
1020
|
-
return xe(z ? I : R, G), xe(w, [Oe(P, C), Oe(C, N), J(it, P), V,
|
|
1020
|
+
return xe(z ? I : R, G), xe(w, [Oe(P, C), Oe(C, N), J(it, P), V, a(G, ne, H, z)]), G;
|
|
1021
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
1023
|
Ut: ue,
|
|
@@ -1037,7 +1037,7 @@ const Xr = () => {
|
|
|
1037
1037
|
Yt: J(M, R)
|
|
1038
1038
|
}
|
|
1039
1039
|
}, me];
|
|
1040
|
-
}, ua = (t, e, s,
|
|
1040
|
+
}, ua = (t, e, s, a) => (n, c, i, d) => {
|
|
1041
1041
|
const { ht: l, ot: u, nt: p, gt: m, Jt: v, Ot: h } = 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",
|
|
@@ -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(b, "pointermove pointerleave",
|
|
1085
|
+
return J(Ie, [fe(b, "pointermove pointerleave", a), fe(x, "pointerenter", () => {
|
|
1086
1086
|
c(An, !0);
|
|
1087
1087
|
}), fe(x, "pointerleave pointercancel", () => {
|
|
1088
1088
|
c(An, !1);
|
|
@@ -1116,9 +1116,9 @@ const Xr = () => {
|
|
|
1116
1116
|
}), {
|
|
1117
1117
|
I: !0
|
|
1118
1118
|
}), M(), k, B, L]);
|
|
1119
|
-
}, ma = (t, e, s,
|
|
1119
|
+
}, ma = (t, e, s, a, n, c) => {
|
|
1120
1120
|
let i, d, l, u, p, m = at, v = 0;
|
|
1121
|
-
const h = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n,
|
|
1121
|
+
const h = (F) => F.pointerType === "mouse", [x, y] = mt(), [b, A] = mt(100), [k, U] = mt(100), [B, D] = mt(() => v), [L, V] = da(t, n, a, ua(e, n, a, (F) => h(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 {
|
|
@@ -1145,7 +1145,7 @@ 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: me, tn: z, nn: q, sn: P } = X || {}, { Ct: C, dt: N } = te || {}, { ct: G } = s, { M: K } = Ke(), { G: Z, en: ie } =
|
|
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 } = a, [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, Ue = 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
|
};
|
|
@@ -1160,7 +1160,7 @@ const Xr = () => {
|
|
|
1160
1160
|
Ue && (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:
|
|
1163
|
+
const e = Ke(), { P: s, R: a } = e, { elements: n } = s(), { host: c, padding: i, viewport: d, content: l } = n, u = ts(t), p = u ? {} : t, { elements: m } = p, { host: v, padding: h, viewport: x, content: y } = m || {}, b = u ? t : p.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, h), 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
1164
|
vt: b,
|
|
1165
1165
|
ht: ue,
|
|
1166
1166
|
ot: R,
|
|
@@ -1194,14 +1194,14 @@ const Xr = () => {
|
|
|
1194
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
1196
|
ze(P, Us), ze(N, Mn), ze(C, nt), A && ze(B, Tn), De ? Je(C, ke, De) : ze(C, ke), te(N) && Ee(N), Te && Ee(C), te(P) && Ee(P), Is(_e), Me();
|
|
1197
|
-
}]),
|
|
1197
|
+
}]), a && !H && (Js(C, nt, bo), xe(G, J(ze, C, nt))), Is(!H && A && we === z && oe.top === oe ? C : we), be(), Z = 0, ye;
|
|
1198
1198
|
}, ye];
|
|
1199
|
-
}, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt:
|
|
1199
|
+
}, ha = ({ bt: t }) => ({ Gt: e, an: s, Tt: a }) => {
|
|
1200
1200
|
const { xt: n } = e || {}, { $t: c } = s;
|
|
1201
|
-
t && (n ||
|
|
1201
|
+
t && (n || a) && Vt(t, {
|
|
1202
1202
|
[yt]: c && "100%"
|
|
1203
1203
|
});
|
|
1204
|
-
}, pa = ({ ht: t, cn: e, ot: s, nt:
|
|
1204
|
+
}, pa = ({ ht: t, cn: e, ot: s, nt: a }, n) => {
|
|
1205
1205
|
const [c, i] = Ve({
|
|
1206
1206
|
i: kr,
|
|
1207
1207
|
o: bn()
|
|
@@ -1210,7 +1210,7 @@ const Xr = () => {
|
|
|
1210
1210
|
let [m, v] = i(p);
|
|
1211
1211
|
const { R: h } = Ke(), { ft: x, Ht: y, Ct: b } = l || {}, { ct: A } = u, [k, U] = d("paddingAbsolute");
|
|
1212
1212
|
(x || v || (p || y)) && ([m, v] = c(p));
|
|
1213
|
-
const D = !
|
|
1213
|
+
const D = !a && (U || b || v);
|
|
1214
1214
|
if (D) {
|
|
1215
1215
|
const L = !k || !e && !h, V = m.r + m.l, T = m.t + m.b, O = {
|
|
1216
1216
|
[eo]: L && !A ? -V : 0,
|
|
@@ -1237,7 +1237,7 @@ const Xr = () => {
|
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
1239
|
}, va = (t, e) => {
|
|
1240
|
-
const s = Ke(), { ht:
|
|
1240
|
+
const s = Ke(), { ht: a, cn: n, ot: c, nt: i, Kt: d, gt: l, yt: u, Ot: p, ln: m } = t, { R: v } = s, h = u && i, x = J(Pn, 0), y = ["display", "direction", "flexDirection", "writingMode"], b = {
|
|
1241
1241
|
i: so,
|
|
1242
1242
|
o: {
|
|
1243
1243
|
w: 0,
|
|
@@ -1299,7 +1299,7 @@ const Xr = () => {
|
|
|
1299
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
1300
|
let De = D(X), be = V(X), ge = O(X), Te = H(X);
|
|
1301
1301
|
if (Se && v && p(bo, !ye), ke) {
|
|
1302
|
-
Qs(
|
|
1302
|
+
Qs(a, lt, Xt) && k(!0);
|
|
1303
1303
|
const [dn] = Z ? Z() : [], [Nt] = De = B(X), [Ut] = be = L(X), zt = fo(c), jt = h && Mr(m()), qo = {
|
|
1304
1304
|
w: x(Ut.w + Nt.w),
|
|
1305
1305
|
h: x(Ut.h + Nt.h)
|
|
@@ -1313,7 +1313,7 @@ const Xr = () => {
|
|
|
1313
1313
|
x: Le.w > 0,
|
|
1314
1314
|
y: Le.h > 0
|
|
1315
1315
|
}), Rt = Ee && Re && (Ue.x || Ue.y) || Ee && Ue.x && !Ue.y || Re && Ue.y && !Ue.x, Ft = me || P || N || vs || hs || Me || vt || we || Se || ke, tt = aa(Ue, oe), [Et, Tt] = $(tt.G), [, It] = w(X), cn = P || C || It || gs || X, [jo, Po] = cn ? I(X) : R();
|
|
1316
|
-
return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(
|
|
1316
|
+
return Ft && (Tt && le(tt.G), ie && K && Vt(c, ie(tt, te, K(tt, Bt, ps)))), k(!1), Ls(a, lt, Xt, Rt), Ls(n, Us, Xt, Rt), re(e, {
|
|
1317
1317
|
G: Et,
|
|
1318
1318
|
Vt: {
|
|
1319
1319
|
x: _e.w,
|
|
@@ -1334,7 +1334,7 @@ const Xr = () => {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
};
|
|
1336
1336
|
}, ga = (t) => {
|
|
1337
|
-
const [e, s,
|
|
1337
|
+
const [e, s, a] = fa(t), n = {
|
|
1338
1338
|
cn: {
|
|
1339
1339
|
t: 0,
|
|
1340
1340
|
r: 0,
|
|
@@ -1374,8 +1374,8 @@ const Xr = () => {
|
|
|
1374
1374
|
return ce(m, (b) => {
|
|
1375
1375
|
re(h, b(v, h) || {});
|
|
1376
1376
|
}), Pe(i, y), !d && Pe(c, 0), h;
|
|
1377
|
-
}, n, e,
|
|
1378
|
-
}, _a = (t, e, s,
|
|
1377
|
+
}, n, e, a];
|
|
1378
|
+
}, _a = (t, e, s, a, n) => {
|
|
1379
1379
|
const c = En(e, {}), [i, d, l, u, p] = ga(t), [m, v, h] = ca(u, l, c, (U) => {
|
|
1380
1380
|
k({}, U);
|
|
1381
1381
|
}), [x, y, , b] = ma(t, e, h, l, u, n), A = (U) => et(U).some((B) => !!U[B]), k = (U, B) => {
|
|
@@ -1399,7 +1399,7 @@ const Xr = () => {
|
|
|
1399
1399
|
Qt: $
|
|
1400
1400
|
}));
|
|
1401
1401
|
const w = A(H), I = A($), R = w || I || !Ys(O) || M;
|
|
1402
|
-
return R &&
|
|
1402
|
+
return R && a(U, {
|
|
1403
1403
|
Gt: H,
|
|
1404
1404
|
Qt: $
|
|
1405
1405
|
}), R;
|
|
@@ -1415,13 +1415,13 @@ const Xr = () => {
|
|
|
1415
1415
|
bn: b
|
|
1416
1416
|
}, p];
|
|
1417
1417
|
}, ct = (t, e, s) => {
|
|
1418
|
-
const { N:
|
|
1418
|
+
const { N: a } = Ke(), n = ts(t), c = n ? t : t.target, i = $o(c);
|
|
1419
1419
|
if (e && !i) {
|
|
1420
1420
|
let d = !1;
|
|
1421
1421
|
const l = [], u = {}, p = (M) => {
|
|
1422
1422
|
const S = oo(M), H = Ht(na);
|
|
1423
1423
|
return H ? H(S, !0) : S;
|
|
1424
|
-
}, m = re({},
|
|
1424
|
+
}, m = re({}, a(), p(e)), [v, h, 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
1427
|
const { ft: w, Ct: I, xt: R, Ht: ne, Et: ue, dt: le } = H, { Zt: F, tn: ee, nn: te, sn: X } = $;
|
|
@@ -1446,7 +1446,7 @@ const Xr = () => {
|
|
|
1446
1446
|
}, O = {
|
|
1447
1447
|
options(M, S) {
|
|
1448
1448
|
if (M) {
|
|
1449
|
-
const H = S ?
|
|
1449
|
+
const H = S ? a() : {}, $ = _o(m, re(H, p(M)));
|
|
1450
1450
|
Ys($) || (re(m, $), B({
|
|
1451
1451
|
fn: $
|
|
1452
1452
|
}));
|
|
@@ -1517,20 +1517,20 @@ const Xr = () => {
|
|
|
1517
1517
|
return i;
|
|
1518
1518
|
};
|
|
1519
1519
|
ct.plugin = (t) => {
|
|
1520
|
-
const e = Ge(t), s = e ? t : [t],
|
|
1521
|
-
return sa(s), e ?
|
|
1520
|
+
const e = Ge(t), s = e ? t : [t], a = s.map((n) => Eo(n, ct)[0]);
|
|
1521
|
+
return sa(s), e ? a : a[0];
|
|
1522
1522
|
};
|
|
1523
1523
|
ct.valid = (t) => {
|
|
1524
1524
|
const e = t && t.elements, s = Fe(e) && e();
|
|
1525
1525
|
return es(s) && !!$o(s.target);
|
|
1526
1526
|
};
|
|
1527
1527
|
ct.env = () => {
|
|
1528
|
-
const { k: t, M: e, R: s, V:
|
|
1528
|
+
const { k: t, M: e, R: s, V: a, B: n, F: c, P: i, U: d, N: l, q: u } = Ke();
|
|
1529
1529
|
return re({}, {
|
|
1530
1530
|
scrollbarsSize: t,
|
|
1531
1531
|
scrollbarsOverlaid: e,
|
|
1532
1532
|
scrollbarsHiding: s,
|
|
1533
|
-
scrollTimeline:
|
|
1533
|
+
scrollTimeline: a,
|
|
1534
1534
|
staticDefaultInitialization: n,
|
|
1535
1535
|
staticDefaultOptions: c,
|
|
1536
1536
|
getDefaultInitialization: i,
|
|
@@ -1541,7 +1541,7 @@ ct.env = () => {
|
|
|
1541
1541
|
};
|
|
1542
1542
|
function xa() {
|
|
1543
1543
|
let t;
|
|
1544
|
-
const e = E(null), s = Math.floor(Math.random() * 2 ** 32),
|
|
1544
|
+
const e = E(null), s = Math.floor(Math.random() * 2 ** 32), a = E(!1), n = E([]), c = () => n.value, i = () => t.getSelection(), d = () => n.value.length, l = () => t.clearSelection(!0), u = E(), p = E(null), m = E(null), v = E(null);
|
|
1545
1545
|
function h() {
|
|
1546
1546
|
t = new nr({
|
|
1547
1547
|
area: e.value,
|
|
@@ -1552,12 +1552,12 @@ function xa() {
|
|
|
1552
1552
|
if (L)
|
|
1553
1553
|
t.Interaction._reset(D);
|
|
1554
1554
|
else {
|
|
1555
|
-
|
|
1555
|
+
a.value = !1;
|
|
1556
1556
|
const V = e.value.offsetWidth - D.offsetX, T = e.value.offsetHeight - D.offsetY;
|
|
1557
1557
|
V < 15 && T < 15 && t.Interaction._reset(D), D.target.classList.contains("os-scrollbar-handle") && t.Interaction._reset(D);
|
|
1558
1558
|
}
|
|
1559
1559
|
}), document.addEventListener("dragleave", (B) => {
|
|
1560
|
-
!B.buttons &&
|
|
1560
|
+
!B.buttons && a.value && (a.value = !1);
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
1563
|
const x = () => ft(() => {
|
|
@@ -1620,7 +1620,7 @@ function xa() {
|
|
|
1620
1620
|
}), {
|
|
1621
1621
|
area: e,
|
|
1622
1622
|
explorerId: s,
|
|
1623
|
-
isDraggingRef:
|
|
1623
|
+
isDraggingRef: a,
|
|
1624
1624
|
scrollBar: m,
|
|
1625
1625
|
scrollBarContainer: v,
|
|
1626
1626
|
getSelected: c,
|
|
@@ -1633,16 +1633,16 @@ function xa() {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
1635
|
function ba(t, e) {
|
|
1636
|
-
const s = E(t),
|
|
1636
|
+
const s = E(t), a = E(e), n = E([]), c = E([]), i = E([]), d = E(!1), l = E(5);
|
|
1637
1637
|
let u = !1, p = !1;
|
|
1638
1638
|
const m = Ot({
|
|
1639
1639
|
adapter: s,
|
|
1640
1640
|
storages: [],
|
|
1641
|
-
dirname:
|
|
1641
|
+
dirname: a,
|
|
1642
1642
|
files: []
|
|
1643
1643
|
});
|
|
1644
1644
|
function v() {
|
|
1645
|
-
let k = [], U = [], B =
|
|
1645
|
+
let k = [], U = [], B = a.value ?? s.value + "://";
|
|
1646
1646
|
B.length === 0 && (n.value = []), B.replace(s.value + "://", "").split("/").forEach(function(V) {
|
|
1647
1647
|
k.push(V), k.join("/") !== "" && U.push({
|
|
1648
1648
|
basename: V,
|
|
@@ -1671,9 +1671,9 @@ function ba(t, e) {
|
|
|
1671
1671
|
return ((k = n.value[n.value.length - 2]) == null ? void 0 : k.path) ?? s.value + "://";
|
|
1672
1672
|
});
|
|
1673
1673
|
return Ce(() => {
|
|
1674
|
-
}), Ne(
|
|
1674
|
+
}), Ne(a, v), Ce(v), {
|
|
1675
1675
|
adapter: s,
|
|
1676
|
-
path:
|
|
1676
|
+
path: a,
|
|
1677
1677
|
loading: u,
|
|
1678
1678
|
searchMode: p,
|
|
1679
1679
|
data: m,
|
|
@@ -1688,7 +1688,7 @@ function ba(t, e) {
|
|
|
1688
1688
|
};
|
|
1689
1689
|
}
|
|
1690
1690
|
const ya = (t, e) => {
|
|
1691
|
-
const s = dr(t.id),
|
|
1691
|
+
const s = dr(t.id), a = 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, p = s.getStore("persist-path", t.persist), m = p ? s.getStore("path", t.path) : t.path;
|
|
1692
1692
|
return Ot({
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Core properties
|
|
@@ -1700,11 +1700,11 @@ const ya = (t, e) => {
|
|
|
1700
1700
|
// app id
|
|
1701
1701
|
debug: t.debug,
|
|
1702
1702
|
// Event Bus
|
|
1703
|
-
emitter:
|
|
1703
|
+
emitter: a,
|
|
1704
1704
|
// storage
|
|
1705
1705
|
storage: s,
|
|
1706
1706
|
// localization object
|
|
1707
|
-
i18n: Ze(() => mr(s, d,
|
|
1707
|
+
i18n: Ze(() => mr(s, d, a, i)),
|
|
1708
1708
|
// modal state
|
|
1709
1709
|
modal: gr(),
|
|
1710
1710
|
// dragSelect object, it is responsible for selecting items
|
|
@@ -1750,8 +1750,8 @@ const ya = (t, e) => {
|
|
|
1750
1750
|
setup(t) {
|
|
1751
1751
|
const e = E(null), s = ae("ServiceContainer");
|
|
1752
1752
|
return Ce(() => {
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1753
|
+
const a = document.querySelector(".v-f-modal input");
|
|
1754
|
+
a && a.focus(), ft(() => {
|
|
1755
1755
|
if (document.querySelector(".v-f-modal input") && window.innerWidth < 768) {
|
|
1756
1756
|
const n = e.value.getBoundingClientRect().bottom + 16;
|
|
1757
1757
|
window.scrollTo({
|
|
@@ -1761,19 +1761,19 @@ const ya = (t, e) => {
|
|
|
1761
1761
|
});
|
|
1762
1762
|
}
|
|
1763
1763
|
});
|
|
1764
|
-
}), (
|
|
1764
|
+
}), (a, n) => (f(), g("div", {
|
|
1765
1765
|
class: "v-f-modal relative z-30",
|
|
1766
1766
|
"aria-labelledby": "modal-title",
|
|
1767
1767
|
role: "dialog",
|
|
1768
1768
|
"aria-modal": "true",
|
|
1769
|
-
onKeyup: n[1] || (n[1] = $t((c) =>
|
|
1769
|
+
onKeyup: n[1] || (n[1] = $t((c) => r(s).modal.close(), ["esc"])),
|
|
1770
1770
|
tabindex: "0"
|
|
1771
1771
|
}, [
|
|
1772
1772
|
wa,
|
|
1773
1773
|
o("div", ka, [
|
|
1774
1774
|
o("div", {
|
|
1775
1775
|
class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
|
|
1776
|
-
onMousedown: n[0] || (n[0] = rt((c) =>
|
|
1776
|
+
onMousedown: n[0] || (n[0] = rt((c) => r(s).modal.close(), ["self"]))
|
|
1777
1777
|
}, [
|
|
1778
1778
|
o("div", {
|
|
1779
1779
|
ref_key: "modalBody",
|
|
@@ -1781,10 +1781,10 @@ const ya = (t, e) => {
|
|
|
1781
1781
|
class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-3xl w-full"
|
|
1782
1782
|
}, [
|
|
1783
1783
|
o("div", $a, [
|
|
1784
|
-
Dt(
|
|
1784
|
+
Dt(a.$slots, "default")
|
|
1785
1785
|
]),
|
|
1786
1786
|
o("div", Sa, [
|
|
1787
|
-
Dt(
|
|
1787
|
+
Dt(a.$slots, "buttons")
|
|
1788
1788
|
])
|
|
1789
1789
|
], 512)
|
|
1790
1790
|
], 32)
|
|
@@ -1793,15 +1793,15 @@ const ya = (t, e) => {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
}, Ca = (t, e) => {
|
|
1795
1795
|
const s = t.__vccOpts || t;
|
|
1796
|
-
for (const [
|
|
1797
|
-
s[
|
|
1796
|
+
for (const [a, n] of e)
|
|
1797
|
+
s[a] = n;
|
|
1798
1798
|
return s;
|
|
1799
1799
|
}, Ea = {
|
|
1800
1800
|
props: {
|
|
1801
1801
|
on: { type: String, required: !0 }
|
|
1802
1802
|
},
|
|
1803
1803
|
setup(t, { emit: e, slots: s }) {
|
|
1804
|
-
const
|
|
1804
|
+
const a = ae("ServiceContainer"), n = E(!1), { t: c } = a.i18n;
|
|
1805
1805
|
let i = null;
|
|
1806
1806
|
const d = () => {
|
|
1807
1807
|
clearTimeout(i), n.value = !0, i = setTimeout(() => {
|
|
@@ -1809,7 +1809,7 @@ const ya = (t, e) => {
|
|
|
1809
1809
|
}, 2e3);
|
|
1810
1810
|
};
|
|
1811
1811
|
return Ce(() => {
|
|
1812
|
-
|
|
1812
|
+
a.emitter.on(t.on, d);
|
|
1813
1813
|
}), qs(() => {
|
|
1814
1814
|
clearTimeout(i);
|
|
1815
1815
|
}), {
|
|
@@ -1818,11 +1818,11 @@ const ya = (t, e) => {
|
|
|
1818
1818
|
};
|
|
1819
1819
|
}
|
|
1820
1820
|
}, Ta = { key: 1 };
|
|
1821
|
-
function Ma(t, e, s,
|
|
1821
|
+
function Ma(t, e, s, a, n, c) {
|
|
1822
1822
|
return f(), g("div", {
|
|
1823
|
-
class: de(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !
|
|
1823
|
+
class: de(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !a.shown }]])
|
|
1824
1824
|
}, [
|
|
1825
|
-
t.$slots.default ? Dt(t.$slots, "default", { key: 0 }) : (f(), g("span", Ta, _(
|
|
1825
|
+
t.$slots.default ? Dt(t.$slots, "default", { key: 0 }) : (f(), g("span", Ta, _(a.t("Saved.")), 1))
|
|
1826
1826
|
], 2);
|
|
1827
1827
|
}
|
|
1828
1828
|
const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:items-start select-none" }, Da = /* @__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" }, [
|
|
@@ -1917,7 +1917,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1917
1917
|
}, Il = { class: "m-1 text-sm text-gray-500" }, Ao = {
|
|
1918
1918
|
__name: "ModalAbout",
|
|
1919
1919
|
setup(t) {
|
|
1920
|
-
const e = ae("ServiceContainer"), { setStore: s, clearStore:
|
|
1920
|
+
const e = ae("ServiceContainer"), { setStore: s, clearStore: a } = e.storage, { t: n, changeLocale: c, locale: i } = e.i18n, d = {
|
|
1921
1921
|
ABOUT: "about",
|
|
1922
1922
|
SETTINGS: "settings",
|
|
1923
1923
|
SHORTCUTS: "shortcuts",
|
|
@@ -1928,7 +1928,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1928
1928
|
{ name: n("Shortcuts"), key: d.SHORTCUTS },
|
|
1929
1929
|
{ name: n("Reset"), key: d.RESET }
|
|
1930
1930
|
]), u = E("about"), p = async () => {
|
|
1931
|
-
|
|
1931
|
+
a(), location.reload();
|
|
1932
1932
|
}, m = (B) => {
|
|
1933
1933
|
e.theme.set(B), e.emitter.emit("vf-theme-saved");
|
|
1934
1934
|
}, v = () => {
|
|
@@ -1962,15 +1962,15 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1962
1962
|
buttons: se(() => [
|
|
1963
1963
|
o("button", {
|
|
1964
1964
|
type: "button",
|
|
1965
|
-
onClick: D[8] || (D[8] = (L) =>
|
|
1965
|
+
onClick: D[8] || (D[8] = (L) => r(e).modal.close()),
|
|
1966
1966
|
class: "vf-btn vf-btn-secondary"
|
|
1967
|
-
}, _(
|
|
1967
|
+
}, _(r(n)("Close")), 1)
|
|
1968
1968
|
]),
|
|
1969
1969
|
default: se(() => [
|
|
1970
1970
|
o("div", Aa, [
|
|
1971
1971
|
Da,
|
|
1972
1972
|
o("div", La, [
|
|
1973
|
-
o("h3", Va, _("Vuefinder " +
|
|
1973
|
+
o("h3", Va, _("Vuefinder " + r(e).version), 1),
|
|
1974
1974
|
o("div", null, [
|
|
1975
1975
|
o("div", null, [
|
|
1976
1976
|
o("nav", Oa, [
|
|
@@ -1984,12 +1984,12 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1984
1984
|
])
|
|
1985
1985
|
]),
|
|
1986
1986
|
u.value === d.ABOUT ? (f(), g("div", Ba, [
|
|
1987
|
-
o("div", Ra, _(
|
|
1988
|
-
o("a", Fa, _(
|
|
1989
|
-
o("a", Ia, _(
|
|
1987
|
+
o("div", Ra, _(r(n)("Vuefinder is a simple, lightweight, and fast file manager library for Vue.js applications")), 1),
|
|
1988
|
+
o("a", Fa, _(r(n)("Project home")), 1),
|
|
1989
|
+
o("a", Ia, _(r(n)("Follow on GitHub")), 1)
|
|
1990
1990
|
])) : j("", !0),
|
|
1991
1991
|
u.value === d.SETTINGS ? (f(), g("div", Na, [
|
|
1992
|
-
o("div", Ua, _(
|
|
1992
|
+
o("div", Ua, _(r(n)("Customize your experience with the following settings.")), 1),
|
|
1993
1993
|
o("div", za, [
|
|
1994
1994
|
o("fieldset", null, [
|
|
1995
1995
|
o("div", ja, [
|
|
@@ -1999,22 +1999,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
1999
1999
|
id: "metric_unit",
|
|
2000
2000
|
name: "metric_unit",
|
|
2001
2001
|
type: "checkbox",
|
|
2002
|
-
"onUpdate:modelValue": D[0] || (D[0] = (L) =>
|
|
2002
|
+
"onUpdate:modelValue": D[0] || (D[0] = (L) => r(e).metricUnits = L),
|
|
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
|
-
[Pt,
|
|
2006
|
+
[Pt, r(e).metricUnits]
|
|
2007
2007
|
])
|
|
2008
2008
|
]),
|
|
2009
2009
|
o("div", Ga, [
|
|
2010
2010
|
o("label", Ka, [
|
|
2011
|
-
Q(_(
|
|
2011
|
+
Q(_(r(n)("Use Metric Units")) + " ", 1),
|
|
2012
2012
|
Y(gt, {
|
|
2013
2013
|
class: "ms-3",
|
|
2014
2014
|
on: "vf-metric-units-saved"
|
|
2015
2015
|
}, {
|
|
2016
2016
|
default: se(() => [
|
|
2017
|
-
Q(_(
|
|
2017
|
+
Q(_(r(n)("Saved.")), 1)
|
|
2018
2018
|
]),
|
|
2019
2019
|
_: 1
|
|
2020
2020
|
})
|
|
@@ -2027,22 +2027,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2027
2027
|
id: "large_icons",
|
|
2028
2028
|
name: "large_icons",
|
|
2029
2029
|
type: "checkbox",
|
|
2030
|
-
"onUpdate:modelValue": D[1] || (D[1] = (L) =>
|
|
2030
|
+
"onUpdate:modelValue": D[1] || (D[1] = (L) => r(e).compactListView = L),
|
|
2031
2031
|
onClick: h,
|
|
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
|
-
[Pt,
|
|
2034
|
+
[Pt, r(e).compactListView]
|
|
2035
2035
|
])
|
|
2036
2036
|
]),
|
|
2037
2037
|
o("div", Xa, [
|
|
2038
2038
|
o("label", Ja, [
|
|
2039
|
-
Q(_(
|
|
2039
|
+
Q(_(r(n)("Compact list view")) + " ", 1),
|
|
2040
2040
|
Y(gt, {
|
|
2041
2041
|
class: "ms-3",
|
|
2042
2042
|
on: "vf-compact-view-saved"
|
|
2043
2043
|
}, {
|
|
2044
2044
|
default: se(() => [
|
|
2045
|
-
Q(_(
|
|
2045
|
+
Q(_(r(n)("Saved.")), 1)
|
|
2046
2046
|
]),
|
|
2047
2047
|
_: 1
|
|
2048
2048
|
})
|
|
@@ -2055,22 +2055,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2055
2055
|
id: "persist_path",
|
|
2056
2056
|
name: "persist_path",
|
|
2057
2057
|
type: "checkbox",
|
|
2058
|
-
"onUpdate:modelValue": D[2] || (D[2] = (L) =>
|
|
2058
|
+
"onUpdate:modelValue": D[2] || (D[2] = (L) => r(e).persist = L),
|
|
2059
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
|
-
[Pt,
|
|
2062
|
+
[Pt, r(e).persist]
|
|
2063
2063
|
])
|
|
2064
2064
|
]),
|
|
2065
2065
|
o("div", el, [
|
|
2066
2066
|
o("label", tl, [
|
|
2067
|
-
Q(_(
|
|
2067
|
+
Q(_(r(n)("Persist path on reload")) + " ", 1),
|
|
2068
2068
|
Y(gt, {
|
|
2069
2069
|
class: "ms-3",
|
|
2070
2070
|
on: "vf-persist-path-saved"
|
|
2071
2071
|
}, {
|
|
2072
2072
|
default: se(() => [
|
|
2073
|
-
Q(_(
|
|
2073
|
+
Q(_(r(n)("Saved.")), 1)
|
|
2074
2074
|
]),
|
|
2075
2075
|
_: 1
|
|
2076
2076
|
})
|
|
@@ -2083,22 +2083,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2083
2083
|
id: "show_thumbnails",
|
|
2084
2084
|
name: "show_thumbnails",
|
|
2085
2085
|
type: "checkbox",
|
|
2086
|
-
"onUpdate:modelValue": D[3] || (D[3] = (L) =>
|
|
2086
|
+
"onUpdate:modelValue": D[3] || (D[3] = (L) => r(e).showThumbnails = L),
|
|
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
|
-
[Pt,
|
|
2090
|
+
[Pt, r(e).showThumbnails]
|
|
2091
2091
|
])
|
|
2092
2092
|
]),
|
|
2093
2093
|
o("div", ol, [
|
|
2094
2094
|
o("label", rl, [
|
|
2095
|
-
Q(_(
|
|
2095
|
+
Q(_(r(n)("Show thumbnails")) + " ", 1),
|
|
2096
2096
|
Y(gt, {
|
|
2097
2097
|
class: "ms-3",
|
|
2098
2098
|
on: "vf-show-thumbnails-saved"
|
|
2099
2099
|
}, {
|
|
2100
2100
|
default: se(() => [
|
|
2101
|
-
Q(_(
|
|
2101
|
+
Q(_(r(n)("Saved.")), 1)
|
|
2102
2102
|
]),
|
|
2103
2103
|
_: 1
|
|
2104
2104
|
})
|
|
@@ -2107,59 +2107,59 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2107
2107
|
]),
|
|
2108
2108
|
o("div", al, [
|
|
2109
2109
|
o("div", ll, [
|
|
2110
|
-
o("label", il, _(
|
|
2110
|
+
o("label", il, _(r(n)("Theme")), 1)
|
|
2111
2111
|
]),
|
|
2112
2112
|
o("div", cl, [
|
|
2113
2113
|
ve(o("select", {
|
|
2114
2114
|
id: "theme",
|
|
2115
|
-
"onUpdate:modelValue": D[4] || (D[4] = (L) =>
|
|
2115
|
+
"onUpdate:modelValue": D[4] || (D[4] = (L) => r(e).theme.value = L),
|
|
2116
2116
|
onChange: D[5] || (D[5] = (L) => m(L.target.value)),
|
|
2117
2117
|
class: "flex-shrink-0 sm:w-1/2 w-full text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded"
|
|
2118
2118
|
}, [
|
|
2119
2119
|
o("optgroup", {
|
|
2120
|
-
label:
|
|
2120
|
+
label: r(n)("Theme")
|
|
2121
2121
|
}, [
|
|
2122
2122
|
(f(!0), g(he, null, $e(U.value, (L, V) => (f(), g("option", { value: V }, _(L), 9, ul))), 256))
|
|
2123
2123
|
], 8, dl)
|
|
2124
2124
|
], 544), [
|
|
2125
|
-
[Ss,
|
|
2125
|
+
[Ss, r(e).theme.value]
|
|
2126
2126
|
]),
|
|
2127
2127
|
Y(gt, {
|
|
2128
2128
|
class: "ms-3 flex-shrink-0 flex-grow basis-full",
|
|
2129
2129
|
on: "vf-theme-saved"
|
|
2130
2130
|
}, {
|
|
2131
2131
|
default: se(() => [
|
|
2132
|
-
Q(_(
|
|
2132
|
+
Q(_(r(n)("Saved.")), 1)
|
|
2133
2133
|
]),
|
|
2134
2134
|
_: 1
|
|
2135
2135
|
})
|
|
2136
2136
|
])
|
|
2137
2137
|
]),
|
|
2138
|
-
|
|
2138
|
+
r(e).features.includes(r(pe).LANGUAGE) && Object.keys(r(k)).length > 1 ? (f(), g("div", ml, [
|
|
2139
2139
|
o("div", fl, [
|
|
2140
|
-
o("label", hl, _(
|
|
2140
|
+
o("label", hl, _(r(n)("Language")), 1)
|
|
2141
2141
|
]),
|
|
2142
2142
|
o("div", pl, [
|
|
2143
2143
|
ve(o("select", {
|
|
2144
2144
|
id: "language",
|
|
2145
2145
|
"onUpdate:modelValue": D[6] || (D[6] = (L) => Fn(i) ? i.value = L : null),
|
|
2146
|
-
onChange: D[7] || (D[7] = (L) =>
|
|
2146
|
+
onChange: D[7] || (D[7] = (L) => r(c)(L.target.value)),
|
|
2147
2147
|
class: "flex-shrink-0 sm:w-1/2 w-full text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded"
|
|
2148
2148
|
}, [
|
|
2149
2149
|
o("optgroup", {
|
|
2150
|
-
label:
|
|
2150
|
+
label: r(n)("Language")
|
|
2151
2151
|
}, [
|
|
2152
|
-
(f(!0), g(he, null, $e(
|
|
2152
|
+
(f(!0), g(he, null, $e(r(k), (L, V) => (f(), g("option", { value: V }, _(L), 9, gl))), 256))
|
|
2153
2153
|
], 8, vl)
|
|
2154
2154
|
], 544), [
|
|
2155
|
-
[Ss,
|
|
2155
|
+
[Ss, r(i)]
|
|
2156
2156
|
]),
|
|
2157
2157
|
Y(gt, {
|
|
2158
2158
|
class: "ms-3 flex-shrink-0 flex-grow basis-full",
|
|
2159
2159
|
on: "vf-language-saved"
|
|
2160
2160
|
}, {
|
|
2161
2161
|
default: se(() => [
|
|
2162
|
-
Q(_(
|
|
2162
|
+
Q(_(r(n)("Saved.")), 1)
|
|
2163
2163
|
]),
|
|
2164
2164
|
_: 1
|
|
2165
2165
|
})
|
|
@@ -2172,50 +2172,50 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2172
2172
|
u.value === d.SHORTCUTS ? (f(), g("div", _l, [
|
|
2173
2173
|
o("div", xl, [
|
|
2174
2174
|
o("div", bl, [
|
|
2175
|
-
o("div", null, _(
|
|
2175
|
+
o("div", null, _(r(n)("Rename")), 1),
|
|
2176
2176
|
yl
|
|
2177
2177
|
]),
|
|
2178
2178
|
o("div", wl, [
|
|
2179
|
-
o("div", null, _(
|
|
2179
|
+
o("div", null, _(r(n)("Refresh")), 1),
|
|
2180
2180
|
kl
|
|
2181
2181
|
]),
|
|
2182
2182
|
o("div", $l, [
|
|
2183
|
-
Q(_(
|
|
2183
|
+
Q(_(r(n)("Delete")) + " ", 1),
|
|
2184
2184
|
Sl
|
|
2185
2185
|
]),
|
|
2186
2186
|
o("div", Cl, [
|
|
2187
|
-
Q(_(
|
|
2187
|
+
Q(_(r(n)("Escape")) + " ", 1),
|
|
2188
2188
|
El
|
|
2189
2189
|
]),
|
|
2190
2190
|
o("div", Tl, [
|
|
2191
|
-
Q(_(
|
|
2191
|
+
Q(_(r(n)("Select All")) + " ", 1),
|
|
2192
2192
|
Ml
|
|
2193
2193
|
]),
|
|
2194
2194
|
o("div", Al, [
|
|
2195
|
-
Q(_(
|
|
2195
|
+
Q(_(r(n)("Search")) + " ", 1),
|
|
2196
2196
|
Dl
|
|
2197
2197
|
]),
|
|
2198
2198
|
o("div", Ll, [
|
|
2199
|
-
Q(_(
|
|
2199
|
+
Q(_(r(n)("Toggle Sidebar")) + " ", 1),
|
|
2200
2200
|
Vl
|
|
2201
2201
|
]),
|
|
2202
2202
|
o("div", Ol, [
|
|
2203
|
-
Q(_(
|
|
2203
|
+
Q(_(r(n)("Open Settings")) + " ", 1),
|
|
2204
2204
|
Hl
|
|
2205
2205
|
]),
|
|
2206
2206
|
o("div", Bl, [
|
|
2207
|
-
Q(_(
|
|
2207
|
+
Q(_(r(n)("Toggle Full Screen")) + " ", 1),
|
|
2208
2208
|
Rl
|
|
2209
2209
|
])
|
|
2210
2210
|
])
|
|
2211
2211
|
])) : j("", !0),
|
|
2212
2212
|
u.value === d.RESET ? (f(), g("div", Fl, [
|
|
2213
|
-
o("div", Il, _(
|
|
2213
|
+
o("div", Il, _(r(n)("Reset all settings to default")), 1),
|
|
2214
2214
|
o("button", {
|
|
2215
2215
|
onClick: p,
|
|
2216
2216
|
type: "button",
|
|
2217
2217
|
class: "vf-btn vf-btn-secondary"
|
|
2218
|
-
}, _(
|
|
2218
|
+
}, _(r(n)("Reset Settings")), 1)
|
|
2219
2219
|
])) : j("", !0)
|
|
2220
2220
|
])
|
|
2221
2221
|
])
|
|
@@ -2249,7 +2249,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2249
2249
|
emits: ["hidden"],
|
|
2250
2250
|
setup(t, { emit: e }) {
|
|
2251
2251
|
var u;
|
|
2252
|
-
const s = e,
|
|
2252
|
+
const s = e, a = ae("ServiceContainer"), { t: n } = a.i18n, c = E(!1), i = E(null), d = E((u = i.value) == null ? void 0 : u.strMessage);
|
|
2253
2253
|
Ne(d, () => c.value = !1);
|
|
2254
2254
|
const l = () => {
|
|
2255
2255
|
s("hidden"), c.value = !0;
|
|
@@ -2265,7 +2265,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2265
2265
|
o("div", {
|
|
2266
2266
|
class: "ml-auto cursor-pointer",
|
|
2267
2267
|
onClick: l,
|
|
2268
|
-
title:
|
|
2268
|
+
title: r(n)("Close")
|
|
2269
2269
|
}, zl, 8, Nl)
|
|
2270
2270
|
], 2))
|
|
2271
2271
|
]));
|
|
@@ -2322,8 +2322,8 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2322
2322
|
], ni = { class: "ml-1.5" }, oi = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, rn = {
|
|
2323
2323
|
__name: "ModalDelete",
|
|
2324
2324
|
setup(t) {
|
|
2325
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
2326
|
-
|
|
2325
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items), n = E(""), c = () => {
|
|
2326
|
+
a.value.length && e.emitter.emit("vf-fetch", {
|
|
2327
2327
|
params: {
|
|
2328
2328
|
q: "delete",
|
|
2329
2329
|
m: "post",
|
|
@@ -2331,7 +2331,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2331
2331
|
path: e.fs.data.dirname
|
|
2332
2332
|
},
|
|
2333
2333
|
body: {
|
|
2334
|
-
items:
|
|
2334
|
+
items: a.value.map(({ path: i, type: d }) => ({ path: i, type: d }))
|
|
2335
2335
|
},
|
|
2336
2336
|
onSuccess: () => {
|
|
2337
2337
|
e.emitter.emit("vf-toast-push", { label: s("Files deleted.") });
|
|
@@ -2347,23 +2347,23 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2347
2347
|
type: "button",
|
|
2348
2348
|
onClick: c,
|
|
2349
2349
|
class: "vf-btn vf-btn-danger"
|
|
2350
|
-
}, _(
|
|
2350
|
+
}, _(r(s)("Yes, Delete!")), 1),
|
|
2351
2351
|
o("button", {
|
|
2352
2352
|
type: "button",
|
|
2353
|
-
onClick: d[1] || (d[1] = (l) =>
|
|
2353
|
+
onClick: d[1] || (d[1] = (l) => r(e).modal.close()),
|
|
2354
2354
|
class: "vf-btn vf-btn-secondary"
|
|
2355
|
-
}, _(
|
|
2356
|
-
o("div", oi, _(
|
|
2355
|
+
}, _(r(s)("Cancel")), 1),
|
|
2356
|
+
o("div", oi, _(r(s)("This action cannot be undone.")), 1)
|
|
2357
2357
|
]),
|
|
2358
2358
|
default: se(() => [
|
|
2359
2359
|
o("div", jl, [
|
|
2360
2360
|
Pl,
|
|
2361
2361
|
o("div", ql, [
|
|
2362
|
-
o("h3", Gl, _(
|
|
2362
|
+
o("h3", Gl, _(r(s)("Delete files")), 1),
|
|
2363
2363
|
o("div", Kl, [
|
|
2364
|
-
o("p", Wl, _(
|
|
2364
|
+
o("p", Wl, _(r(s)("Are you sure you want to delete these files?")), 1),
|
|
2365
2365
|
o("div", Yl, [
|
|
2366
|
-
(f(!0), g(he, null, $e(
|
|
2366
|
+
(f(!0), g(he, null, $e(a.value, (l) => (f(), g("p", Xl, [
|
|
2367
2367
|
l.type === "dir" ? (f(), g("svg", Jl, Zl)) : (f(), g("svg", ei, si)),
|
|
2368
2368
|
o("span", ni, _(l.basename), 1)
|
|
2369
2369
|
]))), 256))
|
|
@@ -2434,7 +2434,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2434
2434
|
], gi = { class: "ml-1.5" }, an = {
|
|
2435
2435
|
__name: "ModalRename",
|
|
2436
2436
|
setup(t) {
|
|
2437
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
2437
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items[0]), n = E(e.modal.data.items[0].basename), c = E(""), i = () => {
|
|
2438
2438
|
n.value != "" && e.emitter.emit("vf-fetch", {
|
|
2439
2439
|
params: {
|
|
2440
2440
|
q: "rename",
|
|
@@ -2443,7 +2443,7 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2443
2443
|
path: e.fs.data.dirname
|
|
2444
2444
|
},
|
|
2445
2445
|
body: {
|
|
2446
|
-
item:
|
|
2446
|
+
item: a.value.path,
|
|
2447
2447
|
name: n.value
|
|
2448
2448
|
},
|
|
2449
2449
|
onSuccess: () => {
|
|
@@ -2460,22 +2460,22 @@ const gt = /* @__PURE__ */ Ca(Ea, [["render", Ma]]), Aa = { class: "sm:flex sm:i
|
|
|
2460
2460
|
type: "button",
|
|
2461
2461
|
onClick: i,
|
|
2462
2462
|
class: "vf-btn vf-btn-primary"
|
|
2463
|
-
}, _(
|
|
2463
|
+
}, _(r(s)("Rename")), 1),
|
|
2464
2464
|
o("button", {
|
|
2465
2465
|
type: "button",
|
|
2466
|
-
onClick: l[2] || (l[2] = (u) =>
|
|
2466
|
+
onClick: l[2] || (l[2] = (u) => r(e).modal.close()),
|
|
2467
2467
|
class: "vf-btn vf-btn-secondary"
|
|
2468
|
-
}, _(
|
|
2468
|
+
}, _(r(s)("Cancel")), 1)
|
|
2469
2469
|
]),
|
|
2470
2470
|
default: se(() => [
|
|
2471
2471
|
o("div", ri, [
|
|
2472
2472
|
ai,
|
|
2473
2473
|
o("div", li, [
|
|
2474
|
-
o("h3", ii, _(
|
|
2474
|
+
o("h3", ii, _(r(s)("Rename")), 1),
|
|
2475
2475
|
o("div", ci, [
|
|
2476
2476
|
o("p", di, [
|
|
2477
|
-
|
|
2478
|
-
o("span", gi, _(
|
|
2477
|
+
a.value.type === "dir" ? (f(), g("svg", ui, fi)) : (f(), g("svg", hi, vi)),
|
|
2478
|
+
o("span", gi, _(a.value.basename), 1)
|
|
2479
2479
|
]),
|
|
2480
2480
|
ve(o("input", {
|
|
2481
2481
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
|
|
@@ -2547,8 +2547,8 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
|
|
|
2547
2547
|
setup(t) {
|
|
2548
2548
|
const e = ae("ServiceContainer");
|
|
2549
2549
|
e.storage;
|
|
2550
|
-
const { t: s } = e.i18n,
|
|
2551
|
-
|
|
2550
|
+
const { t: s } = e.i18n, a = E(""), n = E(""), c = () => {
|
|
2551
|
+
a.value !== "" && e.emitter.emit("vf-fetch", {
|
|
2552
2552
|
params: {
|
|
2553
2553
|
q: "newfolder",
|
|
2554
2554
|
m: "post",
|
|
@@ -2556,10 +2556,10 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
|
|
|
2556
2556
|
path: e.fs.data.dirname
|
|
2557
2557
|
},
|
|
2558
2558
|
body: {
|
|
2559
|
-
name:
|
|
2559
|
+
name: a.value
|
|
2560
2560
|
},
|
|
2561
2561
|
onSuccess: () => {
|
|
2562
|
-
e.emitter.emit("vf-toast-push", { label: s("%s is created.",
|
|
2562
|
+
e.emitter.emit("vf-toast-push", { label: s("%s is created.", a.value) });
|
|
2563
2563
|
},
|
|
2564
2564
|
onError: (i) => {
|
|
2565
2565
|
n.value = s(i.message);
|
|
@@ -2572,28 +2572,28 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
|
|
|
2572
2572
|
type: "button",
|
|
2573
2573
|
onClick: c,
|
|
2574
2574
|
class: "vf-btn vf-btn-primary"
|
|
2575
|
-
}, _(
|
|
2575
|
+
}, _(r(s)("Create")), 1),
|
|
2576
2576
|
o("button", {
|
|
2577
2577
|
type: "button",
|
|
2578
|
-
onClick: d[2] || (d[2] = (l) =>
|
|
2578
|
+
onClick: d[2] || (d[2] = (l) => r(e).modal.close()),
|
|
2579
2579
|
class: "vf-btn vf-btn-secondary"
|
|
2580
|
-
}, _(
|
|
2580
|
+
}, _(r(s)("Cancel")), 1)
|
|
2581
2581
|
]),
|
|
2582
2582
|
default: se(() => [
|
|
2583
2583
|
o("div", xi, [
|
|
2584
2584
|
bi,
|
|
2585
2585
|
o("div", yi, [
|
|
2586
|
-
o("h3", wi, _(
|
|
2586
|
+
o("h3", wi, _(r(s)("New Folder")), 1),
|
|
2587
2587
|
o("div", ki, [
|
|
2588
|
-
o("p", $i, _(
|
|
2588
|
+
o("p", $i, _(r(s)("Create a new folder")), 1),
|
|
2589
2589
|
ve(o("input", {
|
|
2590
|
-
"onUpdate:modelValue": d[0] || (d[0] = (l) =>
|
|
2590
|
+
"onUpdate:modelValue": d[0] || (d[0] = (l) => a.value = l),
|
|
2591
2591
|
onKeyup: $t(c, ["enter"]),
|
|
2592
2592
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
2593
|
-
placeholder:
|
|
2593
|
+
placeholder: r(s)("Folder Name"),
|
|
2594
2594
|
type: "text"
|
|
2595
2595
|
}, null, 40, Si), [
|
|
2596
|
-
[St,
|
|
2596
|
+
[St, a.value]
|
|
2597
2597
|
]),
|
|
2598
2598
|
n.value.length ? (f(), W(Ye, {
|
|
2599
2599
|
key: 0,
|
|
@@ -2635,8 +2635,8 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
|
|
|
2635
2635
|
setup(t) {
|
|
2636
2636
|
const e = ae("ServiceContainer");
|
|
2637
2637
|
e.storage;
|
|
2638
|
-
const { t: s } = e.i18n,
|
|
2639
|
-
|
|
2638
|
+
const { t: s } = e.i18n, a = E(""), n = E(""), c = () => {
|
|
2639
|
+
a.value !== "" && e.emitter.emit("vf-fetch", {
|
|
2640
2640
|
params: {
|
|
2641
2641
|
q: "newfile",
|
|
2642
2642
|
m: "post",
|
|
@@ -2644,10 +2644,10 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
|
|
|
2644
2644
|
path: e.fs.data.dirname
|
|
2645
2645
|
},
|
|
2646
2646
|
body: {
|
|
2647
|
-
name:
|
|
2647
|
+
name: a.value
|
|
2648
2648
|
},
|
|
2649
2649
|
onSuccess: () => {
|
|
2650
|
-
e.emitter.emit("vf-toast-push", { label: s("%s is created.",
|
|
2650
|
+
e.emitter.emit("vf-toast-push", { label: s("%s is created.", a.value) });
|
|
2651
2651
|
},
|
|
2652
2652
|
onError: (i) => {
|
|
2653
2653
|
n.value = s(i.message);
|
|
@@ -2660,28 +2660,28 @@ const xi = { class: "sm:flex sm:items-start" }, bi = /* @__PURE__ */ o("div", {
|
|
|
2660
2660
|
type: "button",
|
|
2661
2661
|
onClick: c,
|
|
2662
2662
|
class: "vf-btn vf-btn-primary"
|
|
2663
|
-
}, _(
|
|
2663
|
+
}, _(r(s)("Create")), 1),
|
|
2664
2664
|
o("button", {
|
|
2665
2665
|
type: "button",
|
|
2666
|
-
onClick: d[2] || (d[2] = (l) =>
|
|
2666
|
+
onClick: d[2] || (d[2] = (l) => r(e).modal.close()),
|
|
2667
2667
|
class: "vf-btn vf-btn-secondary"
|
|
2668
|
-
}, _(
|
|
2668
|
+
}, _(r(s)("Cancel")), 1)
|
|
2669
2669
|
]),
|
|
2670
2670
|
default: se(() => [
|
|
2671
2671
|
o("div", Ci, [
|
|
2672
2672
|
Ei,
|
|
2673
2673
|
o("div", Ti, [
|
|
2674
|
-
o("h3", Mi, _(
|
|
2674
|
+
o("h3", Mi, _(r(s)("New File")), 1),
|
|
2675
2675
|
o("div", Ai, [
|
|
2676
|
-
o("p", Di, _(
|
|
2676
|
+
o("p", Di, _(r(s)("Create a new file")), 1),
|
|
2677
2677
|
ve(o("input", {
|
|
2678
|
-
"onUpdate:modelValue": d[0] || (d[0] = (l) =>
|
|
2678
|
+
"onUpdate:modelValue": d[0] || (d[0] = (l) => a.value = l),
|
|
2679
2679
|
onKeyup: $t(c, ["enter"]),
|
|
2680
2680
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
2681
|
-
placeholder:
|
|
2681
|
+
placeholder: r(s)("File Name"),
|
|
2682
2682
|
type: "text"
|
|
2683
2683
|
}, null, 40, Li), [
|
|
2684
|
-
[St,
|
|
2684
|
+
[St, a.value]
|
|
2685
2685
|
]),
|
|
2686
2686
|
n.value.length ? (f(), W(Ye, {
|
|
2687
2687
|
key: 0,
|
|
@@ -2753,7 +2753,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2753
2753
|
}, ec = ["disabled"], tc = {
|
|
2754
2754
|
__name: "ModalUpload",
|
|
2755
2755
|
setup(t) {
|
|
2756
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
2756
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = s("uppy"), n = {
|
|
2757
2757
|
PENDING: 0,
|
|
2758
2758
|
CANCELED: 1,
|
|
2759
2759
|
UPLOADING: 2,
|
|
@@ -2849,7 +2849,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2849
2849
|
//maxNumberOfFiles
|
|
2850
2850
|
//allowedFileTypes
|
|
2851
2851
|
},
|
|
2852
|
-
locale:
|
|
2852
|
+
locale: a,
|
|
2853
2853
|
onBeforeFileAdded(w, I) {
|
|
2854
2854
|
if (I[w.id] != null) {
|
|
2855
2855
|
const ne = A(w.id);
|
|
@@ -2949,24 +2949,24 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2949
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
|
+
}, _(r(s)("Upload")), 11, ec),
|
|
2953
2953
|
x.value ? (f(), g("button", {
|
|
2954
2954
|
key: 0,
|
|
2955
2955
|
type: "button",
|
|
2956
2956
|
class: "vf-btn vf-btn-secondary",
|
|
2957
2957
|
onClick: rt(V, ["prevent"])
|
|
2958
|
-
}, _(
|
|
2958
|
+
}, _(r(s)("Cancel")), 1)) : (f(), g("button", {
|
|
2959
2959
|
key: 1,
|
|
2960
2960
|
type: "button",
|
|
2961
2961
|
class: "vf-btn vf-btn-secondary",
|
|
2962
2962
|
onClick: rt(M, ["prevent"])
|
|
2963
|
-
}, _(
|
|
2963
|
+
}, _(r(s)("Close")), 1))
|
|
2964
2964
|
]),
|
|
2965
2965
|
default: se(() => [
|
|
2966
2966
|
o("div", Oi, [
|
|
2967
2967
|
Hi,
|
|
2968
2968
|
o("div", Bi, [
|
|
2969
|
-
o("h3", Ri, _(
|
|
2969
|
+
o("h3", Ri, _(r(s)("Upload Files")), 1),
|
|
2970
2970
|
o("div", Fi, [
|
|
2971
2971
|
o("div", {
|
|
2972
2972
|
ref_key: "dropArea",
|
|
@@ -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
|
-
y.value ? (f(), g("div", Ii, _(
|
|
2977
|
+
y.value ? (f(), g("div", Ii, _(r(s)("Release to drop these files.")), 1)) : (f(), g("div", Ni, _(r(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",
|
|
@@ -2986,25 +2986,25 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
2986
2986
|
ref: u,
|
|
2987
2987
|
type: "button",
|
|
2988
2988
|
class: "vf-btn vf-btn-secondary"
|
|
2989
|
-
}, _(
|
|
2989
|
+
}, _(r(s)("Select Files")), 513),
|
|
2990
2990
|
o("button", {
|
|
2991
2991
|
ref_key: "pickFolders",
|
|
2992
2992
|
ref: p,
|
|
2993
2993
|
type: "button",
|
|
2994
2994
|
class: "vf-btn vf-btn-secondary"
|
|
2995
|
-
}, _(
|
|
2995
|
+
}, _(r(s)("Select Folders")), 513),
|
|
2996
2996
|
o("button", {
|
|
2997
2997
|
type: "button",
|
|
2998
2998
|
class: "vf-btn vf-btn-secondary",
|
|
2999
2999
|
disabled: x.value,
|
|
3000
3000
|
onClick: $[0] || ($[0] = (w) => O(!1))
|
|
3001
|
-
}, _(
|
|
3001
|
+
}, _(r(s)("Clear all")), 9, Ui),
|
|
3002
3002
|
o("button", {
|
|
3003
3003
|
type: "button",
|
|
3004
3004
|
class: "vf-btn vf-btn-secondary",
|
|
3005
3005
|
disabled: x.value,
|
|
3006
3006
|
onClick: $[1] || ($[1] = (w) => O(!0))
|
|
3007
|
-
}, _(
|
|
3007
|
+
}, _(r(s)("Clear only successful")), 9, zi)
|
|
3008
3008
|
], 512),
|
|
3009
3009
|
o("div", ji, [
|
|
3010
3010
|
(f(!0), g(he, null, $e(v.value, (w) => (f(), g("div", {
|
|
@@ -3018,8 +3018,8 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3018
3018
|
}, null, 10, qi)
|
|
3019
3019
|
]),
|
|
3020
3020
|
o("div", Gi, [
|
|
3021
|
-
o("div", Ki, _(
|
|
3022
|
-
o("div", Wi, _(
|
|
3021
|
+
o("div", Ki, _(r(js)(w.name, 40)) + " (" + _(w.size) + ")", 1),
|
|
3022
|
+
o("div", Wi, _(r(js)(w.name, 16)) + " (" + _(w.size) + ")", 1),
|
|
3023
3023
|
o("div", {
|
|
3024
3024
|
class: de(["flex break-all text-left", U(w)])
|
|
3025
3025
|
}, [
|
|
@@ -3030,12 +3030,12 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3030
3030
|
o("button", {
|
|
3031
3031
|
type: "button",
|
|
3032
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
|
-
title:
|
|
3033
|
+
title: r(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 ? j("", !0) : (f(), g("div", Zi, _(
|
|
3038
|
+
v.value.length ? j("", !0) : (f(), g("div", Zi, _(r(s)("No files selected!")), 1))
|
|
3039
3039
|
]),
|
|
3040
3040
|
h.value.length ? (f(), W(Ye, {
|
|
3041
3041
|
key: 0,
|
|
@@ -3118,7 +3118,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3118
3118
|
], hc = { class: "ml-1.5" }, pc = { class: "my-1 text-sm text-gray-500" }, Lo = {
|
|
3119
3119
|
__name: "ModalUnarchive",
|
|
3120
3120
|
setup(t) {
|
|
3121
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
3121
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items[0]), n = E(""), c = E([]), i = () => {
|
|
3122
3122
|
e.emitter.emit("vf-fetch", {
|
|
3123
3123
|
params: {
|
|
3124
3124
|
q: "unarchive",
|
|
@@ -3127,7 +3127,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3127
3127
|
path: e.fs.data.dirname
|
|
3128
3128
|
},
|
|
3129
3129
|
body: {
|
|
3130
|
-
item:
|
|
3130
|
+
item: a.value.path
|
|
3131
3131
|
},
|
|
3132
3132
|
onSuccess: () => {
|
|
3133
3133
|
e.emitter.emit("vf-toast-push", { label: s("The file unarchived.") });
|
|
@@ -3143,24 +3143,24 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3143
3143
|
type: "button",
|
|
3144
3144
|
onClick: i,
|
|
3145
3145
|
class: "vf-btn vf-btn-primary"
|
|
3146
|
-
}, _(
|
|
3146
|
+
}, _(r(s)("Unarchive")), 1),
|
|
3147
3147
|
o("button", {
|
|
3148
3148
|
type: "button",
|
|
3149
|
-
onClick: l[1] || (l[1] = (u) =>
|
|
3149
|
+
onClick: l[1] || (l[1] = (u) => r(e).modal.close()),
|
|
3150
3150
|
class: "vf-btn vf-btn-secondary"
|
|
3151
|
-
}, _(
|
|
3151
|
+
}, _(r(s)("Cancel")), 1)
|
|
3152
3152
|
]),
|
|
3153
3153
|
default: se(() => [
|
|
3154
3154
|
o("div", sc, [
|
|
3155
3155
|
nc,
|
|
3156
3156
|
o("div", oc, [
|
|
3157
|
-
o("h3", rc, _(
|
|
3157
|
+
o("h3", rc, _(r(s)("Unarchive")), 1),
|
|
3158
3158
|
o("div", ac, [
|
|
3159
3159
|
(f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", lc, [
|
|
3160
3160
|
u.type === "dir" ? (f(), g("svg", ic, dc)) : (f(), g("svg", uc, fc)),
|
|
3161
3161
|
o("span", hc, _(u.basename), 1)
|
|
3162
3162
|
]))), 256)),
|
|
3163
|
-
o("p", pc, _(
|
|
3163
|
+
o("p", pc, _(r(s)("The archive will be unarchived at")) + " (" + _(r(e).fs.data.dirname) + ")", 1),
|
|
3164
3164
|
n.value.length ? (f(), W(Ye, {
|
|
3165
3165
|
key: 0,
|
|
3166
3166
|
onHidden: l[0] || (l[0] = (u) => n.value = ""),
|
|
@@ -3230,7 +3230,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3230
3230
|
], Mc = { class: "ml-1.5" }, Ac = ["placeholder"], Vo = {
|
|
3231
3231
|
__name: "ModalArchive",
|
|
3232
3232
|
setup(t) {
|
|
3233
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
3233
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(""), n = E(""), c = E(e.modal.data.items), i = () => {
|
|
3234
3234
|
c.value.length && e.emitter.emit("vf-fetch", {
|
|
3235
3235
|
params: {
|
|
3236
3236
|
q: "archive",
|
|
@@ -3240,7 +3240,7 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3240
3240
|
},
|
|
3241
3241
|
body: {
|
|
3242
3242
|
items: c.value.map(({ path: d, type: l }) => ({ path: d, type: l })),
|
|
3243
|
-
name:
|
|
3243
|
+
name: a.value
|
|
3244
3244
|
},
|
|
3245
3245
|
onSuccess: () => {
|
|
3246
3246
|
e.emitter.emit("vf-toast-push", { label: s("The file(s) archived.") });
|
|
@@ -3256,18 +3256,18 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3256
3256
|
type: "button",
|
|
3257
3257
|
onClick: i,
|
|
3258
3258
|
class: "vf-btn vf-btn-primary"
|
|
3259
|
-
}, _(
|
|
3259
|
+
}, _(r(s)("Archive")), 1),
|
|
3260
3260
|
o("button", {
|
|
3261
3261
|
type: "button",
|
|
3262
|
-
onClick: l[2] || (l[2] = (u) =>
|
|
3262
|
+
onClick: l[2] || (l[2] = (u) => r(e).modal.close()),
|
|
3263
3263
|
class: "vf-btn vf-btn-secondary"
|
|
3264
|
-
}, _(
|
|
3264
|
+
}, _(r(s)("Cancel")), 1)
|
|
3265
3265
|
]),
|
|
3266
3266
|
default: se(() => [
|
|
3267
3267
|
o("div", vc, [
|
|
3268
3268
|
gc,
|
|
3269
3269
|
o("div", _c, [
|
|
3270
|
-
o("h3", xc, _(
|
|
3270
|
+
o("h3", xc, _(r(s)("Archive the files")), 1),
|
|
3271
3271
|
o("div", bc, [
|
|
3272
3272
|
o("div", yc, [
|
|
3273
3273
|
(f(!0), g(he, null, $e(c.value, (u) => (f(), g("p", wc, [
|
|
@@ -3276,13 +3276,13 @@ const Oi = { class: "sm:flex sm:items-start" }, Hi = /* @__PURE__ */ o("div", {
|
|
|
3276
3276
|
]))), 256))
|
|
3277
3277
|
]),
|
|
3278
3278
|
ve(o("input", {
|
|
3279
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) =>
|
|
3279
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => a.value = u),
|
|
3280
3280
|
onKeyup: $t(i, ["enter"]),
|
|
3281
3281
|
class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
3282
|
-
placeholder:
|
|
3282
|
+
placeholder: r(s)("Archive name. (.zip file will be created)"),
|
|
3283
3283
|
type: "text"
|
|
3284
3284
|
}, null, 40, Ac), [
|
|
3285
|
-
[St,
|
|
3285
|
+
[St, a.value]
|
|
3286
3286
|
]),
|
|
3287
3287
|
n.value.length ? (f(), W(Ye, {
|
|
3288
3288
|
key: 0,
|
|
@@ -3465,7 +3465,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
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 = {
|
|
3466
3466
|
__name: "Toolbar",
|
|
3467
3467
|
setup(t) {
|
|
3468
|
-
const e = ae("ServiceContainer"), { setStore: s } = e.storage, { t:
|
|
3468
|
+
const e = ae("ServiceContainer"), { setStore: s } = e.storage, { t: a } = e.i18n, n = e.dragSelect, c = E("");
|
|
3469
3469
|
e.emitter.on("vf-search-query", ({ newQuery: l }) => {
|
|
3470
3470
|
c.value = l;
|
|
3471
3471
|
});
|
|
@@ -3481,95 +3481,95 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3481
3481
|
return (l, u) => (f(), g("div", Rd, [
|
|
3482
3482
|
c.value.length ? (f(), g("div", Gd, [
|
|
3483
3483
|
o("div", Kd, [
|
|
3484
|
-
Q(_(a
|
|
3484
|
+
Q(_(r(a)("Search results for")) + " ", 1),
|
|
3485
3485
|
o("span", Wd, _(c.value), 1)
|
|
3486
3486
|
]),
|
|
3487
|
-
|
|
3487
|
+
r(e).fs.loading ? (f(), W(r(ln), { key: 0 })) : j("", !0)
|
|
3488
3488
|
])) : (f(), g("div", Fd, [
|
|
3489
|
-
|
|
3489
|
+
r(e).features.includes(r(pe).NEW_FOLDER) ? (f(), g("div", {
|
|
3490
3490
|
key: 0,
|
|
3491
3491
|
class: "mx-1.5",
|
|
3492
|
-
title: a
|
|
3493
|
-
onClick: u[0] || (u[0] = (p) =>
|
|
3492
|
+
title: r(a)("New Folder"),
|
|
3493
|
+
onClick: u[0] || (u[0] = (p) => r(e).modal.open(Do, { items: r(n).getSelected() }))
|
|
3494
3494
|
}, [
|
|
3495
|
-
Y(
|
|
3495
|
+
Y(r(Hc))
|
|
3496
3496
|
], 8, Id)) : j("", !0),
|
|
3497
|
-
|
|
3497
|
+
r(e).features.includes(r(pe).NEW_FILE) ? (f(), g("div", {
|
|
3498
3498
|
key: 1,
|
|
3499
3499
|
class: "mx-1.5",
|
|
3500
|
-
title: a
|
|
3501
|
-
onClick: u[1] || (u[1] = (p) =>
|
|
3500
|
+
title: r(a)("New File"),
|
|
3501
|
+
onClick: u[1] || (u[1] = (p) => r(e).modal.open(Vi, { items: r(n).getSelected() }))
|
|
3502
3502
|
}, [
|
|
3503
|
-
Y(
|
|
3503
|
+
Y(r(Nc))
|
|
3504
3504
|
], 8, Nd)) : j("", !0),
|
|
3505
|
-
|
|
3505
|
+
r(e).features.includes(r(pe).RENAME) ? (f(), g("div", {
|
|
3506
3506
|
key: 2,
|
|
3507
3507
|
class: "mx-1.5",
|
|
3508
|
-
title: a
|
|
3509
|
-
onClick: u[2] || (u[2] = (p) =>
|
|
3508
|
+
title: r(a)("Rename"),
|
|
3509
|
+
onClick: u[2] || (u[2] = (p) => r(n).getCount() !== 1 || r(e).modal.open(an, { items: r(n).getSelected() }))
|
|
3510
3510
|
}, [
|
|
3511
|
-
Y(
|
|
3512
|
-
class: de(
|
|
3511
|
+
Y(r(qc), {
|
|
3512
|
+
class: de(r(n).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3513
3513
|
}, null, 8, ["class"])
|
|
3514
3514
|
], 8, Ud)) : j("", !0),
|
|
3515
|
-
|
|
3515
|
+
r(e).features.includes(r(pe).DELETE) ? (f(), g("div", {
|
|
3516
3516
|
key: 3,
|
|
3517
3517
|
class: "mx-1.5",
|
|
3518
|
-
title: a
|
|
3519
|
-
onClick: u[3] || (u[3] = (p) => !
|
|
3518
|
+
title: r(a)("Delete"),
|
|
3519
|
+
onClick: u[3] || (u[3] = (p) => !r(n).getCount() || r(e).modal.open(rn, { items: r(n).getSelected() }))
|
|
3520
3520
|
}, [
|
|
3521
|
-
Y(
|
|
3522
|
-
class: de(
|
|
3521
|
+
Y(r(Xc), {
|
|
3522
|
+
class: de(r(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3523
3523
|
}, null, 8, ["class"])
|
|
3524
3524
|
], 8, zd)) : j("", !0),
|
|
3525
|
-
|
|
3525
|
+
r(e).features.includes(r(pe).UPLOAD) ? (f(), g("div", {
|
|
3526
3526
|
key: 4,
|
|
3527
3527
|
class: "mx-1.5",
|
|
3528
|
-
title: a
|
|
3529
|
-
onClick: u[4] || (u[4] = (p) =>
|
|
3528
|
+
title: r(a)("Upload"),
|
|
3529
|
+
onClick: u[4] || (u[4] = (p) => r(e).modal.open(tc, { items: r(n).getSelected() }))
|
|
3530
3530
|
}, [
|
|
3531
|
-
Y(
|
|
3531
|
+
Y(r(td))
|
|
3532
3532
|
], 8, jd)) : j("", !0),
|
|
3533
|
-
|
|
3533
|
+
r(e).features.includes(r(pe).UNARCHIVE) && r(n).getCount() === 1 && r(n).getSelected()[0].mime_type === "application/zip" ? (f(), g("div", {
|
|
3534
3534
|
key: 5,
|
|
3535
3535
|
class: "mx-1.5",
|
|
3536
|
-
title: a
|
|
3537
|
-
onClick: u[5] || (u[5] = (p) => !
|
|
3536
|
+
title: r(a)("Unarchive"),
|
|
3537
|
+
onClick: u[5] || (u[5] = (p) => !r(n).getCount() || r(e).modal.open(Lo, { items: r(n).getSelected() }))
|
|
3538
3538
|
}, [
|
|
3539
|
-
Y(
|
|
3540
|
-
class: de(
|
|
3539
|
+
Y(r(ud), {
|
|
3540
|
+
class: de(r(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3541
3541
|
}, null, 8, ["class"])
|
|
3542
3542
|
], 8, Pd)) : j("", !0),
|
|
3543
|
-
|
|
3543
|
+
r(e).features.includes(r(pe).ARCHIVE) ? (f(), g("div", {
|
|
3544
3544
|
key: 6,
|
|
3545
3545
|
class: "mx-1.5",
|
|
3546
|
-
title: a
|
|
3547
|
-
onClick: u[6] || (u[6] = (p) => !
|
|
3546
|
+
title: r(a)("Archive"),
|
|
3547
|
+
onClick: u[6] || (u[6] = (p) => !r(n).getCount() || r(e).modal.open(Vo, { items: r(n).getSelected() }))
|
|
3548
3548
|
}, [
|
|
3549
|
-
Y(
|
|
3550
|
-
class: de(
|
|
3549
|
+
Y(r(ad), {
|
|
3550
|
+
class: de(r(n).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3551
3551
|
}, null, 8, ["class"])
|
|
3552
3552
|
], 8, qd)) : j("", !0)
|
|
3553
3553
|
])),
|
|
3554
3554
|
o("div", Yd, [
|
|
3555
|
-
|
|
3555
|
+
r(e).features.includes(r(pe).FULL_SCREEN) ? (f(), g("div", {
|
|
3556
3556
|
key: 0,
|
|
3557
3557
|
onClick: i,
|
|
3558
3558
|
class: "mx-1.5",
|
|
3559
|
-
title: a
|
|
3559
|
+
title: r(a)("Toggle Full Screen")
|
|
3560
3560
|
}, [
|
|
3561
|
-
|
|
3561
|
+
r(e).fullScreen ? (f(), W(r(Cd), { key: 0 })) : (f(), W(r(yd), { key: 1 }))
|
|
3562
3562
|
], 8, Xd)) : j("", !0),
|
|
3563
3563
|
o("div", {
|
|
3564
3564
|
class: "mx-1.5",
|
|
3565
|
-
title: a
|
|
3565
|
+
title: r(a)("Change View"),
|
|
3566
3566
|
onClick: u[7] || (u[7] = (p) => c.value.length || d())
|
|
3567
3567
|
}, [
|
|
3568
|
-
|
|
3568
|
+
r(e).view === "grid" ? (f(), W(r(Dd), {
|
|
3569
3569
|
key: 0,
|
|
3570
3570
|
class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
|
|
3571
3571
|
}, null, 8, ["class"])) : j("", !0),
|
|
3572
|
-
|
|
3572
|
+
r(e).view === "list" ? (f(), W(r(Bd), {
|
|
3573
3573
|
key: 1,
|
|
3574
3574
|
class: de(c.value.length ? "vf-toolbar-icon-disabled" : "vf-toolbar-icon")
|
|
3575
3575
|
}, null, 8, ["class"])) : j("", !0)
|
|
@@ -3578,21 +3578,21 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3578
3578
|
]));
|
|
3579
3579
|
}
|
|
3580
3580
|
}, Zd = (t, e = 0, s = !1) => {
|
|
3581
|
-
let
|
|
3581
|
+
let a;
|
|
3582
3582
|
return (...n) => {
|
|
3583
|
-
s && !
|
|
3583
|
+
s && !a && t(...n), clearTimeout(a), a = setTimeout(() => {
|
|
3584
3584
|
t(...n);
|
|
3585
3585
|
}, e);
|
|
3586
3586
|
};
|
|
3587
3587
|
}, Hn = (t, e, s) => {
|
|
3588
|
-
const
|
|
3588
|
+
const a = E(t);
|
|
3589
3589
|
return Yo((n, c) => ({
|
|
3590
3590
|
get() {
|
|
3591
|
-
return n(),
|
|
3591
|
+
return n(), a.value;
|
|
3592
3592
|
},
|
|
3593
3593
|
set: Zd(
|
|
3594
3594
|
(i) => {
|
|
3595
|
-
|
|
3595
|
+
a.value = i, c();
|
|
3596
3596
|
},
|
|
3597
3597
|
e,
|
|
3598
3598
|
s
|
|
@@ -3661,8 +3661,8 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3661
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
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
3665
|
-
|
|
3664
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(e.modal.data.items.from), n = E(""), c = () => {
|
|
3665
|
+
a.value.length && e.emitter.emit("vf-fetch", {
|
|
3666
3666
|
params: {
|
|
3667
3667
|
q: "move",
|
|
3668
3668
|
m: "post",
|
|
@@ -3670,7 +3670,7 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3670
3670
|
path: e.fs.data.dirname
|
|
3671
3671
|
},
|
|
3672
3672
|
body: {
|
|
3673
|
-
items:
|
|
3673
|
+
items: a.value.map(({ path: i, type: d }) => ({ path: i, type: d })),
|
|
3674
3674
|
item: e.modal.data.items.to.path
|
|
3675
3675
|
},
|
|
3676
3676
|
onSuccess: () => {
|
|
@@ -3687,32 +3687,32 @@ const Bd = { render: Hd }, Rd = { class: "border-neutral-300 flex justify-betwee
|
|
|
3687
3687
|
type: "button",
|
|
3688
3688
|
onClick: c,
|
|
3689
3689
|
class: "vf-btn vf-btn-primary"
|
|
3690
|
-
}, _(
|
|
3690
|
+
}, _(r(s)("Yes, Move!")), 1),
|
|
3691
3691
|
o("button", {
|
|
3692
3692
|
type: "button",
|
|
3693
|
-
onClick: d[1] || (d[1] = (l) =>
|
|
3693
|
+
onClick: d[1] || (d[1] = (l) => r(e).modal.close()),
|
|
3694
3694
|
class: "vf-btn vf-btn-secondary"
|
|
3695
|
-
}, _(
|
|
3696
|
-
o("div", _u, _(
|
|
3695
|
+
}, _(r(s)("Cancel")), 1),
|
|
3696
|
+
o("div", _u, _(r(s)("%s item(s) selected.", a.value.length)), 1)
|
|
3697
3697
|
]),
|
|
3698
3698
|
default: se(() => [
|
|
3699
3699
|
o("div", eu, [
|
|
3700
3700
|
tu,
|
|
3701
3701
|
o("div", su, [
|
|
3702
|
-
o("h3", nu, _(
|
|
3703
|
-
o("p", ou, _(
|
|
3702
|
+
o("h3", nu, _(r(s)("Move files")), 1),
|
|
3703
|
+
o("p", ou, _(r(s)("Are you sure you want to move these files?")), 1),
|
|
3704
3704
|
o("div", ru, [
|
|
3705
|
-
(f(!0), g(he, null, $e(
|
|
3705
|
+
(f(!0), g(he, null, $e(a.value, (l) => (f(), g("div", au, [
|
|
3706
3706
|
o("div", null, [
|
|
3707
3707
|
l.type === "dir" ? (f(), g("svg", lu, cu)) : (f(), g("svg", du, mu))
|
|
3708
3708
|
]),
|
|
3709
3709
|
o("div", fu, _(l.path), 1)
|
|
3710
3710
|
]))), 256))
|
|
3711
3711
|
]),
|
|
3712
|
-
o("h4", hu, _(
|
|
3712
|
+
o("h4", hu, _(r(s)("Target Directory")), 1),
|
|
3713
3713
|
o("p", pu, [
|
|
3714
3714
|
vu,
|
|
3715
|
-
o("span", gu, _(
|
|
3715
|
+
o("span", gu, _(r(e).modal.data.items.to.path), 1)
|
|
3716
3716
|
]),
|
|
3717
3717
|
n.value.length ? (f(), W(Ye, {
|
|
3718
3718
|
key: 0,
|
|
@@ -3867,7 +3867,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3867
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
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
3870
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = e.dragSelect, { setStore: n } = e.storage, c = E(null), i = Hn(0, 100);
|
|
3871
3871
|
Ne(i, (V) => {
|
|
3872
3872
|
const T = c.value.children;
|
|
3873
3873
|
let O = 0, M = 0, S = 5, H = 1;
|
|
@@ -3884,7 +3884,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3884
3884
|
new ResizeObserver(d).observe(c.value);
|
|
3885
3885
|
});
|
|
3886
3886
|
const l = (V, T = null) => {
|
|
3887
|
-
V.preventDefault(),
|
|
3887
|
+
V.preventDefault(), a.isDraggingRef.value = !1, m(V), T ?? (T = e.fs.hiddenBreadcrumbs.length - 1);
|
|
3888
3888
|
let O = JSON.parse(V.dataTransfer.getData("items"));
|
|
3889
3889
|
if (O.find((M) => M.storage !== e.fs.adapter)) {
|
|
3890
3890
|
alert("Moving items between different storages is not supported yet.");
|
|
@@ -3897,7 +3897,7 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3897
3897
|
}
|
|
3898
3898
|
});
|
|
3899
3899
|
}, u = (V, T = null) => {
|
|
3900
|
-
V.preventDefault(),
|
|
3900
|
+
V.preventDefault(), a.isDraggingRef.value = !1, m(V), T ?? (T = e.fs.breadcrumbs.length - 2);
|
|
3901
3901
|
let O = JSON.parse(V.dataTransfer.getData("items"));
|
|
3902
3902
|
if (O.find((M) => M.storage !== e.fs.adapter)) {
|
|
3903
3903
|
alert("Moving items between different storages is not supported yet.");
|
|
@@ -3961,59 +3961,59 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
3961
3961
|
};
|
|
3962
3962
|
return (V, T) => (f(), g("div", d0, [
|
|
3963
3963
|
o("span", {
|
|
3964
|
-
title:
|
|
3964
|
+
title: r(s)("Toggle Tree View")
|
|
3965
3965
|
}, [
|
|
3966
|
-
Y(
|
|
3966
|
+
Y(r(o0), {
|
|
3967
3967
|
onClick: A,
|
|
3968
|
-
class: de(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700",
|
|
3968
|
+
class: de(["h-6 w-6 p-0.5 rounded cursor-pointer text-slate-700", r(e).showTreeView ? "bg-gray-300 dark:bg-gray-700" : ""])
|
|
3969
3969
|
}, null, 8, ["class"])
|
|
3970
3970
|
], 8, u0),
|
|
3971
3971
|
o("span", {
|
|
3972
|
-
title:
|
|
3972
|
+
title: r(s)("Go up a directory")
|
|
3973
3973
|
}, [
|
|
3974
|
-
Y(
|
|
3974
|
+
Y(r(Tu), {
|
|
3975
3975
|
onDragover: T[0] || (T[0] = (O) => p(O)),
|
|
3976
3976
|
onDragleave: T[1] || (T[1] = (O) => m(O)),
|
|
3977
3977
|
onDrop: T[2] || (T[2] = (O) => u(O)),
|
|
3978
3978
|
onClick: h,
|
|
3979
|
-
class: de(
|
|
3979
|
+
class: de(r(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
|
+
r(e).fs.loading ? (f(), g("span", {
|
|
3983
3983
|
key: 1,
|
|
3984
|
-
title:
|
|
3984
|
+
title: r(s)("Cancel")
|
|
3985
3985
|
}, [
|
|
3986
|
-
Y(
|
|
3987
|
-
onClick: T[3] || (T[3] = (O) =>
|
|
3986
|
+
Y(r(Vu), {
|
|
3987
|
+
onClick: T[3] || (T[3] = (O) => r(e).emitter.emit("vf-fetch-abort"))
|
|
3988
3988
|
})
|
|
3989
3989
|
], 8, h0)) : (f(), g("span", {
|
|
3990
3990
|
key: 0,
|
|
3991
|
-
title:
|
|
3991
|
+
title: r(s)("Refresh")
|
|
3992
3992
|
}, [
|
|
3993
|
-
Y(
|
|
3993
|
+
Y(r(ku), { onClick: v })
|
|
3994
3994
|
], 8, f0)),
|
|
3995
3995
|
ve(o("div", {
|
|
3996
3996
|
onClick: rt(U, ["self"]),
|
|
3997
3997
|
class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full overflow-hidden"
|
|
3998
3998
|
}, [
|
|
3999
3999
|
o("div", null, [
|
|
4000
|
-
Y(
|
|
4000
|
+
Y(r(Fu), {
|
|
4001
4001
|
onDragover: T[4] || (T[4] = (O) => p(O)),
|
|
4002
4002
|
onDragleave: T[5] || (T[5] = (O) => m(O)),
|
|
4003
4003
|
onDrop: T[6] || (T[6] = (O) => u(O, -1)),
|
|
4004
|
-
onClick: T[7] || (T[7] = (O) =>
|
|
4004
|
+
onClick: T[7] || (T[7] = (O) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r(e).fs.adapter } }))
|
|
4005
4005
|
})
|
|
4006
4006
|
]),
|
|
4007
4007
|
o("div", p0, [
|
|
4008
|
-
|
|
4008
|
+
r(e).fs.hiddenBreadcrumbs.length ? ve((f(), g("div", v0, [
|
|
4009
4009
|
g0,
|
|
4010
4010
|
o("div", _0, [
|
|
4011
4011
|
o("span", {
|
|
4012
|
-
onDragenter: T[8] || (T[8] = (O) =>
|
|
4013
|
-
onClick: T[9] || (T[9] = (O) =>
|
|
4012
|
+
onDragenter: T[8] || (T[8] = (O) => r(e).fs.toggleHiddenBreadcrumbs(!0)),
|
|
4013
|
+
onClick: T[9] || (T[9] = (O) => r(e).fs.toggleHiddenBreadcrumbs()),
|
|
4014
4014
|
class: "text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer"
|
|
4015
4015
|
}, [
|
|
4016
|
-
Y(
|
|
4016
|
+
Y(r(c0), { class: "px-1 pointer-events-none" })
|
|
4017
4017
|
], 32)
|
|
4018
4018
|
])
|
|
4019
4019
|
])), [
|
|
@@ -4026,25 +4026,25 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4026
4026
|
class: "flex leading-6 w-full overflow-hidden",
|
|
4027
4027
|
onClick: rt(U, ["self"])
|
|
4028
4028
|
}, [
|
|
4029
|
-
(f(!0), g(he, null, $e(
|
|
4029
|
+
(f(!0), g(he, null, $e(r(e).fs.breadcrumbs, (O, M) => (f(), g("div", { key: M }, [
|
|
4030
4030
|
x0,
|
|
4031
4031
|
o("span", {
|
|
4032
|
-
onDragover: (S) => M ===
|
|
4033
|
-
onDragleave: (S) => M ===
|
|
4034
|
-
onDrop: (S) => M ===
|
|
4032
|
+
onDragover: (S) => M === r(e).fs.breadcrumbs.length - 1 || p(S),
|
|
4033
|
+
onDragleave: (S) => M === r(e).fs.breadcrumbs.length - 1 || m(S),
|
|
4034
|
+
onDrop: (S) => M === r(e).fs.breadcrumbs.length - 1 || u(S, M),
|
|
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
|
-
onClick: (S) =>
|
|
4037
|
+
onClick: (S) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r(e).fs.adapter, path: O.path } })
|
|
4038
4038
|
}, _(O.name), 41, b0)
|
|
4039
4039
|
]))), 128))
|
|
4040
4040
|
], 512),
|
|
4041
|
-
|
|
4041
|
+
r(e).fs.loading ? (f(), W(r(ln), { key: 0 })) : j("", !0)
|
|
4042
4042
|
], 512), [
|
|
4043
|
-
[je, !
|
|
4043
|
+
[je, !r(e).fs.searchMode]
|
|
4044
4044
|
]),
|
|
4045
4045
|
ve(o("div", y0, [
|
|
4046
4046
|
o("div", null, [
|
|
4047
|
-
Y(
|
|
4047
|
+
Y(r(ju))
|
|
4048
4048
|
]),
|
|
4049
4049
|
ve(o("input", {
|
|
4050
4050
|
ref_key: "searchInput",
|
|
@@ -4052,18 +4052,18 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4052
4052
|
onKeydown: $t(D, ["esc"]),
|
|
4053
4053
|
onBlur: L,
|
|
4054
4054
|
"onUpdate:modelValue": T[10] || (T[10] = (O) => Fn(B) ? B.value = O : null),
|
|
4055
|
-
placeholder:
|
|
4055
|
+
placeholder: r(s)("Search anything.."),
|
|
4056
4056
|
class: "w-full pb-0 px-1 border-0 text-base ring-0 outline-0 text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",
|
|
4057
4057
|
type: "text"
|
|
4058
4058
|
}, null, 40, w0), [
|
|
4059
|
-
[St,
|
|
4059
|
+
[St, r(B)]
|
|
4060
4060
|
]),
|
|
4061
|
-
Y(
|
|
4061
|
+
Y(r(Wu), { onClick: D })
|
|
4062
4062
|
], 512), [
|
|
4063
|
-
[je,
|
|
4063
|
+
[je, r(e).fs.searchMode]
|
|
4064
4064
|
]),
|
|
4065
4065
|
ve(o("div", k0, [
|
|
4066
|
-
(f(!0), g(he, null, $e(
|
|
4066
|
+
(f(!0), g(he, null, $e(r(e).fs.hiddenBreadcrumbs, (O, M) => (f(), g("div", {
|
|
4067
4067
|
key: M,
|
|
4068
4068
|
onDragover: T[11] || (T[11] = (S) => p(S)),
|
|
4069
4069
|
onDragleave: T[12] || (T[12] = (S) => m(S)),
|
|
@@ -4073,21 +4073,21 @@ const c0 = { render: i0 }, d0 = { class: "space-x-0.5 flex p-1.5 bg-neutral-100
|
|
|
4073
4073
|
}, [
|
|
4074
4074
|
o("div", S0, [
|
|
4075
4075
|
o("span", null, [
|
|
4076
|
-
Y(
|
|
4076
|
+
Y(r(fs), { class: "h-5 w-5" })
|
|
4077
4077
|
]),
|
|
4078
4078
|
Q(),
|
|
4079
4079
|
o("span", C0, _(O.name), 1)
|
|
4080
4080
|
])
|
|
4081
4081
|
], 40, $0))), 128))
|
|
4082
4082
|
], 512), [
|
|
4083
|
-
[je,
|
|
4083
|
+
[je, r(e).fs.showHiddenBreadcrumbs]
|
|
4084
4084
|
])
|
|
4085
4085
|
]));
|
|
4086
4086
|
}
|
|
4087
4087
|
}, Oo = (t, e = null) => new Date(t * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"), T0 = ["onClick"], M0 = {
|
|
4088
4088
|
__name: "Toast",
|
|
4089
4089
|
setup(t) {
|
|
4090
|
-
const e = ae("ServiceContainer"), { getStore: s } = e.storage,
|
|
4090
|
+
const e = ae("ServiceContainer"), { getStore: s } = e.storage, a = E(s("full-screen", !1)), n = E([]), c = (l) => l === "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", i = (l) => {
|
|
4091
4091
|
n.value.splice(l, 1);
|
|
4092
4092
|
}, d = (l) => {
|
|
4093
4093
|
let u = n.value.findIndex((p) => p.id === l);
|
|
@@ -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: de([
|
|
4104
|
+
class: de([a.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",
|
|
@@ -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(
|
|
4158
|
-
t.direction === "desc" ? (f(), W(
|
|
4157
|
+
t.direction === "asc" ? (f(), W(r(O0), { key: 0 })) : j("", !0),
|
|
4158
|
+
t.direction === "desc" ? (f(), W(r(I0), { key: 1 })) : j("", !0)
|
|
4159
4159
|
]));
|
|
4160
4160
|
}
|
|
4161
4161
|
}, N0 = {
|
|
@@ -4188,10 +4188,10 @@ const P0 = { render: j0 }, ks = {
|
|
|
4188
4188
|
},
|
|
4189
4189
|
setup(t) {
|
|
4190
4190
|
return (e, s) => (f(), g("span", null, [
|
|
4191
|
-
t.type === "dir" ? (f(), W(
|
|
4191
|
+
t.type === "dir" ? (f(), W(r(fs), {
|
|
4192
4192
|
key: 0,
|
|
4193
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(
|
|
4194
|
+
}, null, 8, ["class"])) : (f(), W(r(P0), {
|
|
4195
4195
|
key: 1,
|
|
4196
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"]))
|
|
@@ -4223,8 +4223,8 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4223
4223
|
},
|
|
4224
4224
|
setup(t) {
|
|
4225
4225
|
const e = t;
|
|
4226
|
-
return (s,
|
|
4227
|
-
Y(
|
|
4226
|
+
return (s, a) => (f(), g("div", X0, [
|
|
4227
|
+
Y(r(Y0)),
|
|
4228
4228
|
o("div", J0, _(e.count), 1)
|
|
4229
4229
|
]));
|
|
4230
4230
|
}
|
|
@@ -4235,7 +4235,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4235
4235
|
__name: "Text",
|
|
4236
4236
|
emits: ["success"],
|
|
4237
4237
|
setup(t, { emit: e }) {
|
|
4238
|
-
const s = e,
|
|
4238
|
+
const s = e, a = E(""), n = E(""), c = E(null), i = E(!1), d = E(""), l = E(!1), u = ae("ServiceContainer"), { t: p } = u.i18n;
|
|
4239
4239
|
Ce(() => {
|
|
4240
4240
|
u.requester.send({
|
|
4241
4241
|
url: "",
|
|
@@ -4243,11 +4243,11 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4243
4243
|
params: { q: "preview", adapter: u.modal.data.adapter, path: u.modal.data.item.path },
|
|
4244
4244
|
responseType: "text"
|
|
4245
4245
|
}).then((h) => {
|
|
4246
|
-
|
|
4246
|
+
a.value = h, s("success");
|
|
4247
4247
|
});
|
|
4248
4248
|
});
|
|
4249
4249
|
const m = () => {
|
|
4250
|
-
i.value = !i.value, n.value =
|
|
4250
|
+
i.value = !i.value, n.value = a.value;
|
|
4251
4251
|
}, v = () => {
|
|
4252
4252
|
d.value = "", l.value = !1, u.requester.send({
|
|
4253
4253
|
url: "",
|
|
@@ -4262,7 +4262,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4262
4262
|
},
|
|
4263
4263
|
responseType: "text"
|
|
4264
4264
|
}).then((h) => {
|
|
4265
|
-
d.value = p("Updated."),
|
|
4265
|
+
d.value = p("Updated."), a.value = h, s("success"), i.value = !i.value;
|
|
4266
4266
|
}).catch((h) => {
|
|
4267
4267
|
d.value = p(h.message), l.value = !0;
|
|
4268
4268
|
});
|
|
@@ -4272,19 +4272,19 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4272
4272
|
o("div", {
|
|
4273
4273
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4274
4274
|
id: "modal-title",
|
|
4275
|
-
title:
|
|
4276
|
-
}, _(
|
|
4275
|
+
title: r(u).modal.data.item.path
|
|
4276
|
+
}, _(r(u).modal.data.item.basename), 9, em),
|
|
4277
4277
|
o("div", tm, [
|
|
4278
4278
|
i.value ? (f(), g("button", {
|
|
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
|
-
}, _(
|
|
4283
|
-
|
|
4282
|
+
}, _(r(p)("Save")), 1)) : j("", !0),
|
|
4283
|
+
r(u).features.includes(r(pe).EDIT) ? (f(), g("button", {
|
|
4284
4284
|
key: 1,
|
|
4285
4285
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4286
4286
|
onClick: x[0] || (x[0] = (y) => m())
|
|
4287
|
-
}, _(i.value ?
|
|
4287
|
+
}, _(i.value ? r(p)("Cancel") : r(p)("Edit")), 1)) : j("", !0)
|
|
4288
4288
|
])
|
|
4289
4289
|
]),
|
|
4290
4290
|
o("div", null, [
|
|
@@ -4301,7 +4301,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4301
4301
|
}, null, 512), [
|
|
4302
4302
|
[St, n.value]
|
|
4303
4303
|
])
|
|
4304
|
-
])) : (f(), g("pre", sm, _(
|
|
4304
|
+
])) : (f(), g("pre", sm, _(a.value), 1)),
|
|
4305
4305
|
d.value.length ? (f(), W(Ye, {
|
|
4306
4306
|
key: 2,
|
|
4307
4307
|
onHidden: x[2] || (x[2] = (y) => d.value = ""),
|
|
@@ -4319,7 +4319,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4319
4319
|
__name: "Image",
|
|
4320
4320
|
emits: ["success"],
|
|
4321
4321
|
setup(t, { emit: e }) {
|
|
4322
|
-
const s = e,
|
|
4322
|
+
const s = e, a = ae("ServiceContainer"), { t: n } = a.i18n, c = E(null), i = E(null), d = E(!1), l = E(""), u = E(!1), p = () => {
|
|
4323
4323
|
d.value = !d.value, d.value ? i.value = new lr(c.value, {
|
|
4324
4324
|
crop(v) {
|
|
4325
4325
|
}
|
|
@@ -4332,17 +4332,17 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4332
4332
|
(v) => {
|
|
4333
4333
|
l.value = "", u.value = !1;
|
|
4334
4334
|
const h = new FormData();
|
|
4335
|
-
h.set("file", v),
|
|
4335
|
+
h.set("file", v), a.requester.send({
|
|
4336
4336
|
url: "",
|
|
4337
4337
|
method: "post",
|
|
4338
4338
|
params: {
|
|
4339
4339
|
q: "upload",
|
|
4340
|
-
adapter:
|
|
4341
|
-
path:
|
|
4340
|
+
adapter: a.modal.data.adapter,
|
|
4341
|
+
path: a.modal.data.item.path
|
|
4342
4342
|
},
|
|
4343
4343
|
body: h
|
|
4344
4344
|
}).then((x) => {
|
|
4345
|
-
l.value = n("Updated."), c.value.src =
|
|
4345
|
+
l.value = n("Updated."), c.value.src = a.requester.getPreviewUrl(a.modal.data.adapter, a.modal.data.item), p(), s("success");
|
|
4346
4346
|
}).catch((x) => {
|
|
4347
4347
|
l.value = n(x.message), u.value = !0;
|
|
4348
4348
|
});
|
|
@@ -4356,19 +4356,19 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4356
4356
|
o("h3", {
|
|
4357
4357
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4358
4358
|
id: "modal-title",
|
|
4359
|
-
title: a
|
|
4360
|
-
}, _(a
|
|
4359
|
+
title: r(a).modal.data.item.path
|
|
4360
|
+
}, _(r(a).modal.data.item.basename), 9, am),
|
|
4361
4361
|
o("div", lm, [
|
|
4362
4362
|
d.value ? (f(), g("button", {
|
|
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
|
-
}, _(
|
|
4367
|
-
a
|
|
4366
|
+
}, _(r(n)("Crop")), 1)) : j("", !0),
|
|
4367
|
+
r(a).features.includes(r(pe).EDIT) ? (f(), g("button", {
|
|
4368
4368
|
key: 1,
|
|
4369
4369
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4370
4370
|
onClick: h[0] || (h[0] = (x) => p())
|
|
4371
|
-
}, _(d.value ?
|
|
4371
|
+
}, _(d.value ? r(n)("Cancel") : r(n)("Edit")), 1)) : j("", !0)
|
|
4372
4372
|
])
|
|
4373
4373
|
]),
|
|
4374
4374
|
o("div", im, [
|
|
@@ -4376,7 +4376,7 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4376
4376
|
ref_key: "image",
|
|
4377
4377
|
ref: c,
|
|
4378
4378
|
class: "max-w-[50vh] max-h-[50vh]",
|
|
4379
|
-
src: a
|
|
4379
|
+
src: r(a).requester.getPreviewUrl(r(a).modal.data.adapter, r(a).modal.data.item),
|
|
4380
4380
|
alt: ""
|
|
4381
4381
|
}, null, 8, cm)
|
|
4382
4382
|
]),
|
|
@@ -4396,16 +4396,16 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4396
4396
|
__name: "Default",
|
|
4397
4397
|
emits: ["success"],
|
|
4398
4398
|
setup(t, { emit: e }) {
|
|
4399
|
-
const s = ae("ServiceContainer"),
|
|
4399
|
+
const s = ae("ServiceContainer"), a = e;
|
|
4400
4400
|
return Ce(() => {
|
|
4401
|
-
|
|
4401
|
+
a("success");
|
|
4402
4402
|
}), (n, c) => (f(), g(he, null, [
|
|
4403
4403
|
o("div", um, [
|
|
4404
4404
|
o("h3", {
|
|
4405
4405
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4406
4406
|
id: "modal-title",
|
|
4407
|
-
title:
|
|
4408
|
-
}, _(
|
|
4407
|
+
title: r(s).modal.data.item.path
|
|
4408
|
+
}, _(r(s).modal.data.item.basename), 9, mm)
|
|
4409
4409
|
]),
|
|
4410
4410
|
fm
|
|
4411
4411
|
], 64));
|
|
@@ -4418,15 +4418,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4418
4418
|
__name: "Video",
|
|
4419
4419
|
emits: ["success"],
|
|
4420
4420
|
setup(t, { emit: e }) {
|
|
4421
|
-
const s = ae("ServiceContainer"),
|
|
4421
|
+
const s = ae("ServiceContainer"), a = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
|
|
4422
4422
|
return Ce(() => {
|
|
4423
|
-
|
|
4423
|
+
a("success");
|
|
4424
4424
|
}), (c, i) => (f(), g("div", null, [
|
|
4425
4425
|
o("h3", {
|
|
4426
4426
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4427
4427
|
id: "modal-title",
|
|
4428
|
-
title:
|
|
4429
|
-
}, _(
|
|
4428
|
+
title: r(s).modal.data.item.path
|
|
4429
|
+
}, _(r(s).modal.data.item.basename), 9, pm),
|
|
4430
4430
|
o("div", null, [
|
|
4431
4431
|
o("video", vm, [
|
|
4432
4432
|
o("source", {
|
|
@@ -4445,15 +4445,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4445
4445
|
__name: "Audio",
|
|
4446
4446
|
emits: ["success"],
|
|
4447
4447
|
setup(t, { emit: e }) {
|
|
4448
|
-
const s = e,
|
|
4448
|
+
const s = e, a = ae("ServiceContainer"), n = () => a.requester.getPreviewUrl(a.modal.data.adapter, a.modal.data.item);
|
|
4449
4449
|
return Ce(() => {
|
|
4450
4450
|
s("success");
|
|
4451
4451
|
}), (c, i) => (f(), g(he, null, [
|
|
4452
4452
|
o("h3", {
|
|
4453
4453
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4454
4454
|
id: "modal-title",
|
|
4455
|
-
title: a
|
|
4456
|
-
}, _(a
|
|
4455
|
+
title: r(a).modal.data.item.path
|
|
4456
|
+
}, _(r(a).modal.data.item.basename), 9, xm),
|
|
4457
4457
|
o("div", null, [
|
|
4458
4458
|
o("audio", bm, [
|
|
4459
4459
|
o("source", {
|
|
@@ -4475,15 +4475,15 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4475
4475
|
__name: "Pdf",
|
|
4476
4476
|
emits: ["success"],
|
|
4477
4477
|
setup(t, { emit: e }) {
|
|
4478
|
-
const s = ae("ServiceContainer"),
|
|
4478
|
+
const s = ae("ServiceContainer"), a = e, n = () => s.requester.getPreviewUrl(s.modal.data.adapter, s.modal.data.item);
|
|
4479
4479
|
return Ce(() => {
|
|
4480
|
-
|
|
4480
|
+
a("success");
|
|
4481
4481
|
}), (c, i) => (f(), g(he, null, [
|
|
4482
4482
|
o("h3", {
|
|
4483
4483
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4484
4484
|
id: "modal-title",
|
|
4485
|
-
title:
|
|
4486
|
-
}, _(
|
|
4485
|
+
title: r(s).modal.data.item.path
|
|
4486
|
+
}, _(r(s).modal.data.item.basename), 9, km),
|
|
4487
4487
|
o("div", null, [
|
|
4488
4488
|
o("object", {
|
|
4489
4489
|
class: "h-[60vh]",
|
|
@@ -4530,66 +4530,66 @@ const Y0 = { render: W0 }, X0 = { class: "absolute -z-50 -top-96" }, J0 = { clas
|
|
|
4530
4530
|
}, Im = ["download", "href"], Ho = {
|
|
4531
4531
|
__name: "ModalPreview",
|
|
4532
4532
|
setup(t) {
|
|
4533
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
4534
|
-
return c || (
|
|
4533
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(!1), n = (i) => (e.modal.data.item.mime_type ?? "").startsWith(i), c = e.features.includes(pe.PREVIEW);
|
|
4534
|
+
return c || (a.value = !0), (i, d) => (f(), W(We, null, {
|
|
4535
4535
|
buttons: se(() => [
|
|
4536
4536
|
o("button", {
|
|
4537
4537
|
type: "button",
|
|
4538
|
-
onClick: d[6] || (d[6] = (l) =>
|
|
4538
|
+
onClick: d[6] || (d[6] = (l) => r(e).modal.close()),
|
|
4539
4539
|
class: "vf-btn vf-btn-secondary"
|
|
4540
|
-
}, _(
|
|
4541
|
-
|
|
4540
|
+
}, _(r(s)("Close")), 1),
|
|
4541
|
+
r(e).features.includes(r(pe).DOWNLOAD) ? (f(), g("a", {
|
|
4542
4542
|
key: 0,
|
|
4543
4543
|
target: "_blank",
|
|
4544
4544
|
class: "vf-btn vf-btn-primary",
|
|
4545
|
-
download:
|
|
4546
|
-
href:
|
|
4547
|
-
}, _(
|
|
4545
|
+
download: r(e).requester.getDownloadUrl(r(e).modal.data.adapter, r(e).modal.data.item),
|
|
4546
|
+
href: r(e).requester.getDownloadUrl(r(e).modal.data.adapter, r(e).modal.data.item)
|
|
4547
|
+
}, _(r(s)("Download")), 9, Im)) : j("", !0)
|
|
4548
4548
|
]),
|
|
4549
4549
|
default: se(() => [
|
|
4550
4550
|
o("div", Mm, [
|
|
4551
4551
|
o("div", Am, [
|
|
4552
|
-
|
|
4552
|
+
r(c) ? (f(), g("div", Dm, [
|
|
4553
4553
|
n("text") ? (f(), W(om, {
|
|
4554
4554
|
key: 0,
|
|
4555
|
-
onSuccess: d[0] || (d[0] = (l) =>
|
|
4555
|
+
onSuccess: d[0] || (d[0] = (l) => a.value = !0)
|
|
4556
4556
|
})) : n("image") ? (f(), W(dm, {
|
|
4557
4557
|
key: 1,
|
|
4558
|
-
onSuccess: d[1] || (d[1] = (l) =>
|
|
4558
|
+
onSuccess: d[1] || (d[1] = (l) => a.value = !0)
|
|
4559
4559
|
})) : n("video") ? (f(), W(_m, {
|
|
4560
4560
|
key: 2,
|
|
4561
|
-
onSuccess: d[2] || (d[2] = (l) =>
|
|
4561
|
+
onSuccess: d[2] || (d[2] = (l) => a.value = !0)
|
|
4562
4562
|
})) : n("audio") ? (f(), W(wm, {
|
|
4563
4563
|
key: 3,
|
|
4564
|
-
onSuccess: d[3] || (d[3] = (l) =>
|
|
4564
|
+
onSuccess: d[3] || (d[3] = (l) => a.value = !0)
|
|
4565
4565
|
})) : n("application/pdf") ? (f(), W(Tm, {
|
|
4566
4566
|
key: 4,
|
|
4567
|
-
onSuccess: d[4] || (d[4] = (l) =>
|
|
4567
|
+
onSuccess: d[4] || (d[4] = (l) => a.value = !0)
|
|
4568
4568
|
})) : (f(), W(hm, {
|
|
4569
4569
|
key: 5,
|
|
4570
|
-
onSuccess: d[5] || (d[5] = (l) =>
|
|
4570
|
+
onSuccess: d[5] || (d[5] = (l) => a.value = !0)
|
|
4571
4571
|
}))
|
|
4572
4572
|
])) : j("", !0),
|
|
4573
4573
|
o("div", Lm, [
|
|
4574
|
-
|
|
4574
|
+
a.value === !1 ? (f(), g("div", Vm, [
|
|
4575
4575
|
Om,
|
|
4576
|
-
o("span", null, _(
|
|
4576
|
+
o("span", null, _(r(s)("Loading")), 1)
|
|
4577
4577
|
])) : j("", !0)
|
|
4578
4578
|
])
|
|
4579
4579
|
])
|
|
4580
4580
|
]),
|
|
4581
4581
|
o("div", Hm, [
|
|
4582
4582
|
o("div", null, [
|
|
4583
|
-
o("span", Bm, _(
|
|
4584
|
-
Q(_(
|
|
4583
|
+
o("span", Bm, _(r(s)("File Size")) + ": ", 1),
|
|
4584
|
+
Q(_(r(e).filesize(r(e).modal.data.item.file_size)), 1)
|
|
4585
4585
|
]),
|
|
4586
4586
|
o("div", null, [
|
|
4587
|
-
o("span", Rm, _(
|
|
4588
|
-
Q(" " + _(
|
|
4587
|
+
o("span", Rm, _(r(s)("Last Modified")) + ": ", 1),
|
|
4588
|
+
Q(" " + _(r(Oo)(r(e).modal.data.item.last_modified)), 1)
|
|
4589
4589
|
])
|
|
4590
4590
|
]),
|
|
4591
|
-
|
|
4592
|
-
o("span", null, _(
|
|
4591
|
+
r(e).features.includes(r(pe).DOWNLOAD) ? (f(), g("div", Fm, [
|
|
4592
|
+
o("span", null, _(r(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
|
|
@@ -4622,7 +4622,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4622
4622
|
dragImage: { type: Object }
|
|
4623
4623
|
},
|
|
4624
4624
|
setup(t) {
|
|
4625
|
-
const e = ae("ServiceContainer"), s = e.dragSelect,
|
|
4625
|
+
const e = ae("ServiceContainer"), s = e.dragSelect, a = t, n = (h) => {
|
|
4626
4626
|
h.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter, path: h.path } })) : e.modal.open(Ho, { adapter: e.fs.adapter, item: h });
|
|
4627
4627
|
}, c = {
|
|
4628
4628
|
mounted(h, x, y, b) {
|
|
@@ -4634,7 +4634,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4634
4634
|
}, i = (h, x) => {
|
|
4635
4635
|
if (h.altKey || h.ctrlKey || h.metaKey)
|
|
4636
4636
|
return h.preventDefault(), !1;
|
|
4637
|
-
s.isDraggingRef.value = !0, h.dataTransfer.setDragImage(
|
|
4637
|
+
s.isDraggingRef.value = !0, h.dataTransfer.setDragImage(a.dragImage.$el, 0, 15), h.dataTransfer.effectAllowed = "all", h.dataTransfer.dropEffect = "copy", h.dataTransfer.setData("items", JSON.stringify(s.getSelected()));
|
|
4638
4638
|
}, d = (h, x) => {
|
|
4639
4639
|
h.preventDefault(), s.isDraggingRef.value = !1;
|
|
4640
4640
|
let y = JSON.parse(h.dataTransfer.getData("items"));
|
|
@@ -4653,7 +4653,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4653
4653
|
if (!p)
|
|
4654
4654
|
p = !0, setTimeout(() => p = !1, 300);
|
|
4655
4655
|
else
|
|
4656
|
-
return p = !1, n(
|
|
4656
|
+
return p = !1, n(a.item), clearTimeout(u), !1;
|
|
4657
4657
|
u = setTimeout(() => {
|
|
4658
4658
|
const x = new MouseEvent("contextmenu", {
|
|
4659
4659
|
bubbles: !0,
|
|
@@ -4668,8 +4668,8 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4668
4668
|
}, 500);
|
|
4669
4669
|
};
|
|
4670
4670
|
return (h, x) => ve((f(), g("div", {
|
|
4671
|
-
style: os({ opacity:
|
|
4672
|
-
class: de(["vf-item-" +
|
|
4671
|
+
style: os({ opacity: r(s).isDraggingRef.value && r(s).getSelection().find((y) => h.$el === y) ? "0.5 !important" : "" }),
|
|
4672
|
+
class: de(["vf-item-" + r(s).explorerId, "relative"]),
|
|
4673
4673
|
"data-type": t.item.type,
|
|
4674
4674
|
key: t.item.path,
|
|
4675
4675
|
"data-item": JSON.stringify(t.item),
|
|
@@ -4677,10 +4677,10 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4677
4677
|
onDblclick: x[0] || (x[0] = (y) => n(t.item)),
|
|
4678
4678
|
onTouchstart: x[1] || (x[1] = (y) => v(y)),
|
|
4679
4679
|
onTouchend: x[2] || (x[2] = (y) => m()),
|
|
4680
|
-
onContextmenu: x[3] || (x[3] = rt((y) =>
|
|
4680
|
+
onContextmenu: x[3] || (x[3] = rt((y) => r(e).emitter.emit("vf-contextmenu-show", { event: y, items: r(s).getSelected(), target: t.item }), ["prevent"]))
|
|
4681
4681
|
}, [
|
|
4682
4682
|
Dt(h.$slots, "default"),
|
|
4683
|
-
|
|
4683
|
+
r(e).pinnedFolders.find((y) => y.path === t.item.path) ? (f(), W(r(Bo), {
|
|
4684
4684
|
key: 0,
|
|
4685
4685
|
class: "absolute top-0 right-0 text-amber-600"
|
|
4686
4686
|
})) : j("", !0)
|
|
@@ -4697,7 +4697,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4697
4697
|
}, l1 = { class: "break-all" }, i1 = {
|
|
4698
4698
|
__name: "Explorer",
|
|
4699
4699
|
setup(t) {
|
|
4700
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
4700
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = (m) => m == null ? void 0 : m.substring(0, 3), n = E(null), c = E(""), i = e.dragSelect;
|
|
4701
4701
|
let d;
|
|
4702
4702
|
e.emitter.on("vf-fullscreen-toggle", () => {
|
|
4703
4703
|
i.area.value.style.height = null;
|
|
@@ -4730,12 +4730,12 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4730
4730
|
}), In(() => {
|
|
4731
4731
|
d.destroy();
|
|
4732
4732
|
}), (m, v) => (f(), g("div", Gm, [
|
|
4733
|
-
|
|
4733
|
+
r(e).view === "list" || c.value.length ? (f(), g("div", Km, [
|
|
4734
4734
|
o("div", {
|
|
4735
4735
|
onClick: v[0] || (v[0] = (h) => p("basename")),
|
|
4736
4736
|
class: "col-span-7 vf-sort-button"
|
|
4737
4737
|
}, [
|
|
4738
|
-
Q(_(
|
|
4738
|
+
Q(_(r(s)("Name")) + " ", 1),
|
|
4739
4739
|
ve(Y(Kt, {
|
|
4740
4740
|
direction: l.order
|
|
4741
4741
|
}, null, 8, ["direction"]), [
|
|
@@ -4747,7 +4747,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4747
4747
|
onClick: v[1] || (v[1] = (h) => p("file_size")),
|
|
4748
4748
|
class: "justify-center col-span-2 vf-sort-button"
|
|
4749
4749
|
}, [
|
|
4750
|
-
Q(_(
|
|
4750
|
+
Q(_(r(s)("Size")) + " ", 1),
|
|
4751
4751
|
ve(Y(Kt, {
|
|
4752
4752
|
direction: l.order
|
|
4753
4753
|
}, null, 8, ["direction"]), [
|
|
@@ -4759,7 +4759,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4759
4759
|
onClick: v[2] || (v[2] = (h) => p("last_modified")),
|
|
4760
4760
|
class: "justify-center col-span-3 vf-sort-button"
|
|
4761
4761
|
}, [
|
|
4762
|
-
Q(_(
|
|
4762
|
+
Q(_(r(s)("Date")) + " ", 1),
|
|
4763
4763
|
ve(Y(Kt, {
|
|
4764
4764
|
direction: l.order
|
|
4765
4765
|
}, null, 8, ["direction"]), [
|
|
@@ -4771,7 +4771,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4771
4771
|
onClick: v[3] || (v[3] = (h) => p("path")),
|
|
4772
4772
|
class: "justify-center col-span-5 vf-sort-button"
|
|
4773
4773
|
}, [
|
|
4774
|
-
Q(_(
|
|
4774
|
+
Q(_(r(s)("Filepath")) + " ", 1),
|
|
4775
4775
|
ve(Y(Kt, {
|
|
4776
4776
|
direction: l.order
|
|
4777
4777
|
}, null, 8, ["direction"]), [
|
|
@@ -4783,22 +4783,22 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4783
4783
|
Y(Q0, {
|
|
4784
4784
|
ref_key: "dragImage",
|
|
4785
4785
|
ref: n,
|
|
4786
|
-
count:
|
|
4786
|
+
count: r(i).getCount()
|
|
4787
4787
|
}, null, 8, ["count"])
|
|
4788
4788
|
]),
|
|
4789
4789
|
o("div", {
|
|
4790
|
-
ref:
|
|
4791
|
-
class: de(["vf-explorer-scrollbar-container", [{ "grid-view":
|
|
4790
|
+
ref: r(i).scrollBarContainer,
|
|
4791
|
+
class: de(["vf-explorer-scrollbar-container", [{ "grid-view": r(e).view === "grid" }, { "search-active": c.value.length }]])
|
|
4792
4792
|
}, [
|
|
4793
4793
|
o("div", {
|
|
4794
|
-
ref:
|
|
4794
|
+
ref: r(i).scrollBar,
|
|
4795
4795
|
class: "w-5 bg-transparent pointer-events-none"
|
|
4796
4796
|
}, null, 512)
|
|
4797
4797
|
], 2),
|
|
4798
4798
|
o("div", {
|
|
4799
|
-
ref:
|
|
4799
|
+
ref: r(i).area,
|
|
4800
4800
|
class: "h-full w-full text-xs p-1 vf-explorer-scrollbar vf-selector-area min-h-[150px] z-0 overflow-y-auto",
|
|
4801
|
-
onContextmenu: v[4] || (v[4] = rt((h) =>
|
|
4801
|
+
onContextmenu: v[4] || (v[4] = rt((h) => r(e).emitter.emit("vf-contextmenu-show", { event: h, items: r(i).getSelected() }), ["self", "prevent"]))
|
|
4802
4802
|
}, [
|
|
4803
4803
|
c.value.length ? (f(!0), g(he, { key: 0 }, $e(u(), (h, x) => (f(), W($s, {
|
|
4804
4804
|
item: h,
|
|
@@ -4811,7 +4811,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4811
4811
|
o("div", Xm, [
|
|
4812
4812
|
Y(ks, {
|
|
4813
4813
|
type: h.type,
|
|
4814
|
-
small:
|
|
4814
|
+
small: r(e).compactListView
|
|
4815
4815
|
}, null, 8, ["type", "small"]),
|
|
4816
4816
|
o("span", Jm, _(h.basename), 1)
|
|
4817
4817
|
]),
|
|
@@ -4820,7 +4820,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4820
4820
|
]),
|
|
4821
4821
|
_: 2
|
|
4822
4822
|
}, 1032, ["item", "index", "dragImage"]))), 256)) : j("", !0),
|
|
4823
|
-
|
|
4823
|
+
r(e).view === "list" && !c.value.length ? (f(!0), g(he, { key: 1 }, $e(u(), (h, x) => (f(), W($s, {
|
|
4824
4824
|
item: h,
|
|
4825
4825
|
index: x,
|
|
4826
4826
|
dragImage: n.value,
|
|
@@ -4833,17 +4833,17 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4833
4833
|
o("div", e1, [
|
|
4834
4834
|
Y(ks, {
|
|
4835
4835
|
type: h.type,
|
|
4836
|
-
small:
|
|
4836
|
+
small: r(e).compactListView
|
|
4837
4837
|
}, null, 8, ["type", "small"]),
|
|
4838
4838
|
o("span", t1, _(h.basename), 1)
|
|
4839
4839
|
]),
|
|
4840
|
-
o("div", s1, _(h.file_size ?
|
|
4841
|
-
o("div", n1, _(
|
|
4840
|
+
o("div", s1, _(h.file_size ? r(e).filesize(h.file_size) : ""), 1),
|
|
4841
|
+
o("div", n1, _(r(Oo)(h.last_modified)), 1)
|
|
4842
4842
|
])
|
|
4843
4843
|
]),
|
|
4844
4844
|
_: 2
|
|
4845
4845
|
}, 1032, ["item", "index", "dragImage"]))), 128)) : j("", !0),
|
|
4846
|
-
|
|
4846
|
+
r(e).view === "grid" && !c.value.length ? (f(!0), g(he, { key: 2 }, $e(u(!1), (h, x) => (f(), W($s, {
|
|
4847
4847
|
item: h,
|
|
4848
4848
|
index: x,
|
|
4849
4849
|
dragImage: n.value,
|
|
@@ -4853,19 +4853,19 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4853
4853
|
default: se(() => [
|
|
4854
4854
|
o("div", null, [
|
|
4855
4855
|
o("div", o1, [
|
|
4856
|
-
(h.mime_type ?? "").startsWith("image") &&
|
|
4856
|
+
(h.mime_type ?? "").startsWith("image") && r(e).showThumbnails ? (f(), g("img", {
|
|
4857
4857
|
src: "data:image/png;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",
|
|
4858
4858
|
class: "lazy h-10 md:h-12 m-auto",
|
|
4859
|
-
"data-src":
|
|
4859
|
+
"data-src": r(e).requester.getPreviewUrl(r(e).fs.adapter, h),
|
|
4860
4860
|
alt: h.basename,
|
|
4861
4861
|
key: h.path
|
|
4862
4862
|
}, null, 8, r1)) : (f(), W(ks, {
|
|
4863
4863
|
key: 1,
|
|
4864
4864
|
type: h.type
|
|
4865
4865
|
}, null, 8, ["type"])),
|
|
4866
|
-
!((h.mime_type ?? "").startsWith("image") &&
|
|
4866
|
+
!((h.mime_type ?? "").startsWith("image") && r(e).showThumbnails) && h.type !== "dir" ? (f(), g("div", a1, _(a(h.extension)), 1)) : j("", !0)
|
|
4867
4867
|
]),
|
|
4868
|
-
o("span", l1, _(
|
|
4868
|
+
o("span", l1, _(r(js)(h.basename)), 1)
|
|
4869
4869
|
])
|
|
4870
4870
|
]),
|
|
4871
4871
|
_: 2
|
|
@@ -4877,7 +4877,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4877
4877
|
}, c1 = ["href", "download"], d1 = ["onClick"], u1 = {
|
|
4878
4878
|
__name: "ContextMenu",
|
|
4879
4879
|
setup(t) {
|
|
4880
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n,
|
|
4880
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, a = E(null), n = E([]), c = E(""), i = Ot({
|
|
4881
4881
|
active: !1,
|
|
4882
4882
|
items: [],
|
|
4883
4883
|
positions: {
|
|
@@ -4995,7 +4995,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
4995
4995
|
let y = m.clientX - h.left, b = m.clientY - h.top;
|
|
4996
4996
|
i.active = !0, ft(() => {
|
|
4997
4997
|
var B;
|
|
4998
|
-
const A = (B =
|
|
4998
|
+
const A = (B = a.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
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
5001
|
left: y + "px",
|
|
@@ -5005,7 +5005,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
5005
5005
|
};
|
|
5006
5006
|
return (m, v) => ve((f(), g("ul", {
|
|
5007
5007
|
ref_key: "contextmenu",
|
|
5008
|
-
ref:
|
|
5008
|
+
ref: a,
|
|
5009
5009
|
style: os(i.positions),
|
|
5010
5010
|
class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded-sm select-none"
|
|
5011
5011
|
}, [
|
|
@@ -5019,7 +5019,7 @@ const Bo = { render: Pm }, qm = ["data-type", "data-item", "data-index"], $s = {
|
|
|
5019
5019
|
target: "_blank",
|
|
5020
5020
|
href: h.link,
|
|
5021
5021
|
download: h.link,
|
|
5022
|
-
onClick: v[0] || (v[0] = (x) =>
|
|
5022
|
+
onClick: v[0] || (v[0] = (x) => r(e).emitter.emit("vf-contextmenu-hide"))
|
|
5023
5023
|
}, [
|
|
5024
5024
|
o("span", null, _(h.title()), 1)
|
|
5025
5025
|
], 8, c1)) : (f(), g("div", {
|
|
@@ -5070,8 +5070,8 @@ function x1(t, e) {
|
|
|
5070
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
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore:
|
|
5074
|
-
e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }),
|
|
5073
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, { setStore: a } = e.storage, n = e.dragSelect, c = () => {
|
|
5074
|
+
e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.fs.adapter } }), a("adapter", e.fs.adapter);
|
|
5075
5075
|
}, i = E("");
|
|
5076
5076
|
e.emitter.on("vf-search-query", ({ newQuery: l }) => {
|
|
5077
5077
|
i.value = l;
|
|
@@ -5084,40 +5084,40 @@ const b1 = { render: x1 }, y1 = { class: "p-1 text-xs border-t border-neutral-30
|
|
|
5084
5084
|
o("div", w1, [
|
|
5085
5085
|
o("div", {
|
|
5086
5086
|
class: "flex leading-5 items-center rounded border dark:bg-gray-700 dark:border-gray-600",
|
|
5087
|
-
title:
|
|
5087
|
+
title: r(s)("Storage")
|
|
5088
5088
|
}, [
|
|
5089
5089
|
o("div", $1, [
|
|
5090
|
-
Y(
|
|
5090
|
+
Y(r(Ro))
|
|
5091
5091
|
]),
|
|
5092
5092
|
ve(o("select", {
|
|
5093
|
-
"onUpdate:modelValue": u[0] || (u[0] = (p) =>
|
|
5093
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => r(e).fs.adapter = p),
|
|
5094
5094
|
onChange: c,
|
|
5095
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
5096
|
tabindex: "-1"
|
|
5097
5097
|
}, [
|
|
5098
|
-
(f(!0), g(he, null, $e(
|
|
5098
|
+
(f(!0), g(he, null, $e(r(e).fs.data.storages, (p) => (f(), g("option", { value: p }, _(p), 9, S1))), 256))
|
|
5099
5099
|
], 544), [
|
|
5100
|
-
[Ss,
|
|
5100
|
+
[Ss, r(e).fs.adapter]
|
|
5101
5101
|
])
|
|
5102
5102
|
], 8, k1),
|
|
5103
5103
|
o("div", C1, [
|
|
5104
|
-
i.value.length ? (f(), g("span", E1, _(
|
|
5105
|
-
o("span", T1, _(
|
|
5104
|
+
i.value.length ? (f(), g("span", E1, _(r(e).fs.data.files.length) + " items found. ", 1)) : j("", !0),
|
|
5105
|
+
o("span", T1, _(r(e).dragSelect.getCount() > 0 ? r(s)("%s item(s) selected.", r(e).dragSelect.getCount()) : ""), 1)
|
|
5106
5106
|
])
|
|
5107
5107
|
]),
|
|
5108
5108
|
o("div", M1, [
|
|
5109
|
-
|
|
5109
|
+
r(e).selectButton.active ? (f(), g("button", {
|
|
5110
5110
|
key: 0,
|
|
5111
5111
|
class: de(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
|
|
5112
5112
|
disabled: !d.value,
|
|
5113
|
-
onClick: u[1] || (u[1] = (p) =>
|
|
5114
|
-
}, _(
|
|
5113
|
+
onClick: u[1] || (u[1] = (p) => r(e).selectButton.click(r(n).getSelected(), p))
|
|
5114
|
+
}, _(r(s)("Select")), 11, A1)) : j("", !0),
|
|
5115
5115
|
o("span", {
|
|
5116
5116
|
class: "mr-1",
|
|
5117
|
-
title:
|
|
5118
|
-
onClick: u[2] || (u[2] = (p) =>
|
|
5117
|
+
title: r(s)("About"),
|
|
5118
|
+
onClick: u[2] || (u[2] = (p) => r(e).modal.open(Ao))
|
|
5119
5119
|
}, [
|
|
5120
|
-
Y(
|
|
5120
|
+
Y(r(b1))
|
|
5121
5121
|
], 8, D1)
|
|
5122
5122
|
])
|
|
5123
5123
|
]));
|
|
@@ -5192,7 +5192,7 @@ function Q1(t, e) {
|
|
|
5192
5192
|
}
|
|
5193
5193
|
const No = { render: Q1 };
|
|
5194
5194
|
function Uo(t, e) {
|
|
5195
|
-
const s = t.findIndex((
|
|
5195
|
+
const s = t.findIndex((a) => a.path === e.path);
|
|
5196
5196
|
s > -1 ? t[s] = e : t.push(e);
|
|
5197
5197
|
}
|
|
5198
5198
|
const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
@@ -5217,9 +5217,9 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5217
5217
|
setup(t) {
|
|
5218
5218
|
const e = t, s = ae("ServiceContainer");
|
|
5219
5219
|
s.i18n;
|
|
5220
|
-
const
|
|
5220
|
+
const a = Nn(t, "modelValue"), n = E(!1);
|
|
5221
5221
|
Ne(
|
|
5222
|
-
() =>
|
|
5222
|
+
() => a.value,
|
|
5223
5223
|
() => {
|
|
5224
5224
|
var d;
|
|
5225
5225
|
return ((d = c()) == null ? void 0 : d.folders.length) || i();
|
|
@@ -5247,15 +5247,15 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5247
5247
|
return (d, l) => {
|
|
5248
5248
|
var u;
|
|
5249
5249
|
return f(), g("div", Z1, [
|
|
5250
|
-
n.value ? (f(), W(
|
|
5250
|
+
n.value ? (f(), W(r(ln), {
|
|
5251
5251
|
key: 0,
|
|
5252
5252
|
class: "p-1"
|
|
5253
5253
|
})) : (f(), g("div", ef, [
|
|
5254
|
-
|
|
5254
|
+
a.value && ((u = c()) != null && u.folders.length) ? (f(), W(r(No), {
|
|
5255
5255
|
key: 0,
|
|
5256
5256
|
class: "text-gray-600"
|
|
5257
5257
|
})) : j("", !0),
|
|
5258
|
-
|
|
5258
|
+
a.value ? j("", !0) : (f(), W(r(Io), {
|
|
5259
5259
|
key: 1,
|
|
5260
5260
|
class: "text-gray-400"
|
|
5261
5261
|
}))
|
|
@@ -5276,9 +5276,9 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5276
5276
|
}
|
|
5277
5277
|
},
|
|
5278
5278
|
setup(t) {
|
|
5279
|
-
const e = ae("ServiceContainer"), s = E([]),
|
|
5279
|
+
const e = ae("ServiceContainer"), s = E([]), a = t, n = Ze(() => {
|
|
5280
5280
|
var c;
|
|
5281
|
-
return ((c = e.treeViewData.find((i) => i.path ===
|
|
5281
|
+
return ((c = e.treeViewData.find((i) => i.path === a.path)) == null ? void 0 : c.folders) || [];
|
|
5282
5282
|
});
|
|
5283
5283
|
return (c, i) => {
|
|
5284
5284
|
const d = Qo("TreeSubfolderList", !0);
|
|
@@ -5301,19 +5301,19 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5301
5301
|
], 8, nf),
|
|
5302
5302
|
o("div", {
|
|
5303
5303
|
class: "flex cursor-pointer",
|
|
5304
|
-
onClick: (p) =>
|
|
5304
|
+
onClick: (p) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: a.adapter, path: l.path } })
|
|
5305
5305
|
}, [
|
|
5306
5306
|
o("div", rf, [
|
|
5307
|
-
|
|
5307
|
+
r(e).fs.path === l.path ? (f(), W(r(Fo), { key: 0 })) : (f(), W(r(fs), { key: 1 }))
|
|
5308
5308
|
]),
|
|
5309
5309
|
o("div", {
|
|
5310
|
-
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400":
|
|
5310
|
+
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": r(e).fs.path === l.path }])
|
|
5311
5311
|
}, _(l.basename), 3)
|
|
5312
5312
|
], 8, of)
|
|
5313
5313
|
]),
|
|
5314
5314
|
o("div", af, [
|
|
5315
5315
|
ve(Y(d, {
|
|
5316
|
-
adapter:
|
|
5316
|
+
adapter: a.adapter,
|
|
5317
5317
|
path: l.path
|
|
5318
5318
|
}, null, 8, ["adapter", "path"]), [
|
|
5319
5319
|
[je, s.value[l.path]]
|
|
@@ -5332,21 +5332,19 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5332
5332
|
}
|
|
5333
5333
|
},
|
|
5334
5334
|
setup(t) {
|
|
5335
|
-
const e = ae("ServiceContainer"), s = E(!1)
|
|
5336
|
-
|
|
5337
|
-
};
|
|
5338
|
-
return (n, c) => (f(), g(he, null, [
|
|
5335
|
+
const e = ae("ServiceContainer"), s = E(!1);
|
|
5336
|
+
return (a, n) => (f(), g(he, null, [
|
|
5339
5337
|
o("div", {
|
|
5340
|
-
onClick:
|
|
5338
|
+
onClick: n[1] || (n[1] = (c) => s.value = !s.value),
|
|
5341
5339
|
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 cursor-pointer"
|
|
5342
5340
|
}, [
|
|
5343
5341
|
o("div", {
|
|
5344
|
-
class: de(["flex flex-1 space-x-1 items-center", t.storage ===
|
|
5342
|
+
class: de(["flex flex-1 space-x-1 items-center", t.storage === r(e).fs.adapter ? "text-gray-700/80 dark:text-gray-300/80 text-bold" : ""])
|
|
5345
5343
|
}, [
|
|
5346
5344
|
o("div", {
|
|
5347
|
-
class: de(["h-5 w-5 shrink-0", t.storage ===
|
|
5345
|
+
class: de(["h-5 w-5 shrink-0", t.storage === r(e).fs.adapter ? "text-sky-500 dark:text-slate-300" : ""])
|
|
5348
5346
|
}, [
|
|
5349
|
-
Y(
|
|
5347
|
+
Y(r(Ro))
|
|
5350
5348
|
], 2),
|
|
5351
5349
|
o("div", null, _(t.storage), 1)
|
|
5352
5350
|
], 2),
|
|
@@ -5355,7 +5353,7 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5355
5353
|
adapter: t.storage,
|
|
5356
5354
|
path: t.storage + "://",
|
|
5357
5355
|
modelValue: s.value,
|
|
5358
|
-
"onUpdate:modelValue":
|
|
5356
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => s.value = c)
|
|
5359
5357
|
}, null, 8, ["adapter", "path", "modelValue"])
|
|
5360
5358
|
])
|
|
5361
5359
|
]),
|
|
@@ -5377,13 +5375,13 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5377
5375
|
emits: ["update:modelValue"],
|
|
5378
5376
|
setup(t) {
|
|
5379
5377
|
const e = Nn(t, "modelValue");
|
|
5380
|
-
return (s,
|
|
5378
|
+
return (s, a) => (f(), g("div", uf, [
|
|
5381
5379
|
o("div", mf, [
|
|
5382
|
-
e.value ? (f(), W(
|
|
5380
|
+
e.value ? (f(), W(r(No), {
|
|
5383
5381
|
key: 0,
|
|
5384
5382
|
class: "text-gray-600"
|
|
5385
5383
|
})) : j("", !0),
|
|
5386
|
-
e.value ? j("", !0) : (f(), W(
|
|
5384
|
+
e.value ? j("", !0) : (f(), W(r(Io), {
|
|
5387
5385
|
key: 1,
|
|
5388
5386
|
class: "text-gray-400"
|
|
5389
5387
|
}))
|
|
@@ -5396,7 +5394,7 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5396
5394
|
}, _f = { class: "flex pl-2 py-0.5 text-sm justify-between pr-1" }, xf = ["onClick"], bf = ["title"], yf = ["onClick"], wf = { key: 0 }, kf = { class: "p-1 text-xs text-center" }, $f = {
|
|
5397
5395
|
__name: "TreeView",
|
|
5398
5396
|
setup(t) {
|
|
5399
|
-
const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore:
|
|
5397
|
+
const e = ae("ServiceContainer"), { t: s } = e.i18n, { getStore: a, setStore: n } = e.storage, c = E(190), i = E(a("pinned-folders-opened", !0));
|
|
5400
5398
|
Ne(i, (p) => n("pinned-folders-opened", p));
|
|
5401
5399
|
const d = (p) => {
|
|
5402
5400
|
e.pinnedFolders = e.pinnedFolders.filter((m) => m.path !== p.path), e.storage.setStore("pinned-folders", e.pinnedFolders);
|
|
@@ -5422,11 +5420,11 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5422
5420
|
})) });
|
|
5423
5421
|
}), (p, m) => (f(), g(he, null, [
|
|
5424
5422
|
o("div", {
|
|
5425
|
-
onClick: m[0] || (m[0] = (v) =>
|
|
5426
|
-
class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]",
|
|
5423
|
+
onClick: m[0] || (m[0] = (v) => r(e).showTreeView = !r(e).showTreeView),
|
|
5424
|
+
class: de(["w-full h-full bg-gray-300/10 dark:bg-gray-700/10 z-[1]", r(e).showTreeView ? "backdrop-blur-sm absolute md:hidden" : "hidden"])
|
|
5427
5425
|
}, null, 2),
|
|
5428
5426
|
o("div", {
|
|
5429
|
-
style: os(
|
|
5427
|
+
style: os(r(e).showTreeView ? "min-width:100px;max-width:75%; width: " + c.value + "px" : "width: 0"),
|
|
5430
5428
|
class: "absolute h-full md:h-auto md:relative shadow-lg shrink-0 transition-[width] ease-in-out duration-200 z-[1] bg-gray-50 dark:bg-[#242f41]"
|
|
5431
5429
|
}, [
|
|
5432
5430
|
o("div", {
|
|
@@ -5440,8 +5438,8 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5440
5438
|
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"
|
|
5441
5439
|
}, [
|
|
5442
5440
|
o("div", pf, [
|
|
5443
|
-
Y(
|
|
5444
|
-
o("div", vf, _(
|
|
5441
|
+
Y(r(Bo), { class: "text-amber-600" }),
|
|
5442
|
+
o("div", vf, _(r(s)("Pinned Folders")), 1)
|
|
5445
5443
|
]),
|
|
5446
5444
|
Y(ff, {
|
|
5447
5445
|
modelValue: i.value,
|
|
@@ -5449,43 +5447,43 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5449
5447
|
}, null, 8, ["modelValue"])
|
|
5450
5448
|
]),
|
|
5451
5449
|
i.value ? (f(), g("ul", gf, [
|
|
5452
|
-
(f(!0), g(he, null, $e(
|
|
5450
|
+
(f(!0), g(he, null, $e(r(e).pinnedFolders, (v) => (f(), g("li", _f, [
|
|
5453
5451
|
o("div", {
|
|
5454
5452
|
class: "flex hover:text-sky-500 dark:hover:text-sky-200/50 rounded cursor-pointer",
|
|
5455
|
-
onClick: (h) =>
|
|
5453
|
+
onClick: (h) => r(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: v.storage, path: v.path } })
|
|
5456
5454
|
}, [
|
|
5457
|
-
|
|
5455
|
+
r(e).fs.path !== v.path ? (f(), W(r(fs), {
|
|
5458
5456
|
key: 0,
|
|
5459
5457
|
class: "h-5 w-5"
|
|
5460
5458
|
})) : j("", !0),
|
|
5461
|
-
|
|
5459
|
+
r(e).fs.path === v.path ? (f(), W(r(Fo), {
|
|
5462
5460
|
key: 1,
|
|
5463
5461
|
class: "h-5 w-5"
|
|
5464
5462
|
})) : j("", !0),
|
|
5465
5463
|
o("div", {
|
|
5466
5464
|
title: v.path,
|
|
5467
|
-
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400":
|
|
5465
|
+
class: de(["text-nowrap", { "underline decoration-blue-300 dark:decoration-gray-400": r(e).fs.path === v.path }])
|
|
5468
5466
|
}, _(v.basename), 11, bf)
|
|
5469
5467
|
], 8, xf),
|
|
5470
5468
|
o("div", {
|
|
5471
5469
|
class: "cursor-pointer",
|
|
5472
5470
|
onClick: (h) => d(v)
|
|
5473
5471
|
}, [
|
|
5474
|
-
Y(
|
|
5472
|
+
Y(r(z1), { class: "p-0.5 text-gray-300 hover:text-gray-400 dark:text-gray-600 hover:dark:text-gray-400" })
|
|
5475
5473
|
], 8, yf)
|
|
5476
5474
|
]))), 256)),
|
|
5477
|
-
|
|
5478
|
-
o("div", kf, _(
|
|
5475
|
+
r(e).pinnedFolders.length ? j("", !0) : (f(), g("li", wf, [
|
|
5476
|
+
o("div", kf, _(r(s)("No folders pinned")), 1)
|
|
5479
5477
|
]))
|
|
5480
5478
|
])) : j("", !0)
|
|
5481
5479
|
]),
|
|
5482
|
-
(f(!0), g(he, null, $e(
|
|
5480
|
+
(f(!0), g(he, null, $e(r(e).fs.data.storages, (v) => (f(), g("div", null, [
|
|
5483
5481
|
Y(df, { storage: v }, null, 8, ["storage"])
|
|
5484
5482
|
]))), 256))
|
|
5485
5483
|
], 512),
|
|
5486
5484
|
o("div", {
|
|
5487
5485
|
onMousedown: l,
|
|
5488
|
-
class: de([(
|
|
5486
|
+
class: de([(r(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"])
|
|
5489
5487
|
}, null, 34)
|
|
5490
5488
|
], 4)
|
|
5491
5489
|
], 64));
|
|
@@ -5605,13 +5603,13 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5605
5603
|
tabindex: "0"
|
|
5606
5604
|
}, [
|
|
5607
5605
|
o("div", {
|
|
5608
|
-
class: de(
|
|
5606
|
+
class: de(r(n).theme.actualValue)
|
|
5609
5607
|
}, [
|
|
5610
5608
|
o("div", {
|
|
5611
|
-
class: de([
|
|
5612
|
-
style: os(
|
|
5613
|
-
onMousedown: m[0] || (m[0] = (v) =>
|
|
5614
|
-
onTouchstart: m[1] || (m[1] = (v) =>
|
|
5609
|
+
class: de([r(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"]),
|
|
5610
|
+
style: os(r(n).fullScreen ? "" : "max-height: " + t.maxHeight),
|
|
5611
|
+
onMousedown: m[0] || (m[0] = (v) => r(n).emitter.emit("vf-contextmenu-hide")),
|
|
5612
|
+
onTouchstart: m[1] || (m[1] = (v) => r(n).emitter.emit("vf-contextmenu-hide"))
|
|
5615
5613
|
}, [
|
|
5616
5614
|
Y(Qd),
|
|
5617
5615
|
Y(E0),
|
|
@@ -5623,7 +5621,7 @@ const Z1 = { class: "h-5 w-5 shrink-0" }, ef = {
|
|
|
5623
5621
|
], 38),
|
|
5624
5622
|
Y(er, { name: "fade" }, {
|
|
5625
5623
|
default: se(() => [
|
|
5626
|
-
|
|
5624
|
+
r(n).modal.visible ? (f(), W(tr(r(n).modal.type), { key: 0 })) : j("", !0)
|
|
5627
5625
|
]),
|
|
5628
5626
|
_: 1
|
|
5629
5627
|
}),
|