vuefinder 4.0.25 → 4.0.27
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.js +257 -262
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as dn, computed as N, markRaw as Nn, defineComponent as X, onMounted as fe, nextTick as Ae, createElementBlock as g, openBlock as v, withKeys as ct, unref as s, createElementVNode as i, createCommentVNode as
|
|
1
|
+
import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as dn, computed as N, markRaw as Nn, defineComponent as X, onMounted as fe, nextTick as Ae, createElementBlock as g, openBlock as v, withKeys as ct, unref as s, createElementVNode as i, createCommentVNode as T, withModifiers as ae, renderSlot as $e, toDisplayString as y, createBlock as L, resolveDynamicComponent as cn, withCtx as se, createVNode as O, Fragment as ve, renderList as he, withDirectives as pe, vModelCheckbox as mt, vModelText as ut, onUnmounted as ye, useTemplateRef as Ge, createTextVNode as de, resolveComponent as un, normalizeClass as Z, customRef as Un, Teleport as gt, normalizeStyle as Ve, isRef as jn, vModelSelect as Ft, onBeforeUnmount as vn, vModelRadio as St, mergeProps as Me, toHandlers as Re, vShow as Le, normalizeProps as Ne, guardReactiveProps as Ue, onUpdated as Hn, mergeModels as Kn, useModel as fn, Transition as qn, provide as Gn } from "vue";
|
|
2
2
|
import Wn from "mitt";
|
|
3
3
|
import { toast as re, Toaster as Yn } from "vue-sonner";
|
|
4
4
|
import { persistentAtom as Qn } from "@nanostores/persistent";
|
|
@@ -129,7 +129,7 @@ function Qt() {
|
|
|
129
129
|
function hn(o) {
|
|
130
130
|
return o ? o === "simple" || o === "advanced" ? { ...pn[o] } : { ...Qt(), ...o } : Qt();
|
|
131
131
|
}
|
|
132
|
-
const co = "4.0.
|
|
132
|
+
const co = "4.0.27";
|
|
133
133
|
function It(o, e, t, n, a) {
|
|
134
134
|
return e = Math, t = e.log, n = 1024, a = t(o) / t(n) | 0, (o / e.pow(n, a)).toFixed(0) + " " + (a ? "KMGTPEZY"[--a] + "iB" : "B");
|
|
135
135
|
}
|
|
@@ -266,27 +266,27 @@ const mo = () => {
|
|
|
266
266
|
path: "",
|
|
267
267
|
items: /* @__PURE__ */ new Set()
|
|
268
268
|
}), c = Se(null), _ = Se(0), m = Se(!1), w = Se([]), u = Se(-1), $ = ze([o], (V) => {
|
|
269
|
-
const H = (V ?? "").trim(), Q = H.indexOf("://"),
|
|
269
|
+
const H = (V ?? "").trim(), Q = H.indexOf("://"), te = Q >= 0 ? H.slice(0, Q) : "", De = (Q >= 0 ? H.slice(Q + 3) : H).split("/").filter(Boolean);
|
|
270
270
|
let Ee = "";
|
|
271
271
|
const Je = De.map((ke) => (Ee = Ee ? `${Ee}/${ke}` : ke, {
|
|
272
272
|
basename: ke,
|
|
273
273
|
name: ke,
|
|
274
|
-
path:
|
|
274
|
+
path: te ? `${te}://${Ee}` : Ee,
|
|
275
275
|
type: "dir"
|
|
276
276
|
}));
|
|
277
|
-
return { storage:
|
|
277
|
+
return { storage: te, breadcrumb: Je, path: H };
|
|
278
278
|
}), D = ze([n, a, l], (V, H, Q) => {
|
|
279
|
-
let
|
|
280
|
-
Q.kind === "files" ?
|
|
279
|
+
let te = V;
|
|
280
|
+
Q.kind === "files" ? te = te.filter((ke) => ke.type === "file") : Q.kind === "folders" && (te = te.filter((ke) => ke.type === "dir")), Q.showHidden || (te = te.filter((ke) => !ke.basename.startsWith(".")));
|
|
281
281
|
const { active: Ie, column: De, order: Ee } = H;
|
|
282
|
-
if (!Ie || !De) return
|
|
282
|
+
if (!Ie || !De) return te;
|
|
283
283
|
const Je = Ee === "asc" ? 1 : -1;
|
|
284
|
-
return
|
|
284
|
+
return te.slice().sort((ke, Ze) => ho(ke[De], Ze[De]) * Je);
|
|
285
285
|
}), S = ze([n, d], (V, H) => H.size === 0 ? [] : V.filter((Q) => H.has(Q.path))), p = (V, H) => {
|
|
286
286
|
const Q = o.get();
|
|
287
287
|
if ((H ?? !0) && Q !== V) {
|
|
288
|
-
const
|
|
289
|
-
Ie <
|
|
288
|
+
const te = w.get(), Ie = u.get();
|
|
289
|
+
Ie < te.length - 1 && te.splice(Ie + 1), te.length === 0 && Q && te.push(Q), te.push(V), w.set([...te]), u.set(te.length - 1);
|
|
290
290
|
}
|
|
291
291
|
o.set(V);
|
|
292
292
|
}, h = (V) => {
|
|
@@ -317,8 +317,8 @@ const mo = () => {
|
|
|
317
317
|
H === "single" && Q.clear(), Q.add(V), d.set(Q);
|
|
318
318
|
}, R = (V, H = "multiple") => {
|
|
319
319
|
const Q = new Set(d.get());
|
|
320
|
-
H === "single" && Q.clear(), V.forEach((
|
|
321
|
-
},
|
|
320
|
+
H === "single" && Q.clear(), V.forEach((te) => Q.add(te)), d.set(Q);
|
|
321
|
+
}, ne = (V) => {
|
|
322
322
|
const H = new Set(d.get());
|
|
323
323
|
H.delete(V), d.set(H);
|
|
324
324
|
}, U = (V) => d.get().has(V), ee = (V, H = "multiple") => {
|
|
@@ -328,18 +328,18 @@ const mo = () => {
|
|
|
328
328
|
if (V === "single") {
|
|
329
329
|
const Q = n.get()[0];
|
|
330
330
|
if (Q) {
|
|
331
|
-
const
|
|
332
|
-
d.set(/* @__PURE__ */ new Set([
|
|
331
|
+
const te = Q.path;
|
|
332
|
+
d.set(/* @__PURE__ */ new Set([te])), _.set(1);
|
|
333
333
|
}
|
|
334
334
|
} else {
|
|
335
335
|
if (H?.selectionFilterType || H?.selectionFilterMimeIncludes && H.selectionFilterMimeIncludes.length > 0) {
|
|
336
|
-
const Q = n.get().filter((
|
|
336
|
+
const Q = n.get().filter((te) => {
|
|
337
337
|
const Ie = H.selectionFilterType, De = H.selectionFilterMimeIncludes;
|
|
338
|
-
return Ie === "files" &&
|
|
339
|
-
}).map((
|
|
338
|
+
return Ie === "files" && te.type === "dir" || Ie === "dirs" && te.type === "file" ? !1 : De && Array.isArray(De) && De.length > 0 && te.type !== "dir" ? te.mime_type ? De.some((Ee) => te.mime_type?.startsWith(Ee)) : !1 : !0;
|
|
339
|
+
}).map((te) => te.path);
|
|
340
340
|
d.set(new Set(Q));
|
|
341
341
|
} else {
|
|
342
|
-
const Q = new Set(n.get().map((
|
|
342
|
+
const Q = new Set(n.get().map((te) => te.path));
|
|
343
343
|
d.set(Q);
|
|
344
344
|
}
|
|
345
345
|
z(d.get().size);
|
|
@@ -354,14 +354,14 @@ const mo = () => {
|
|
|
354
354
|
}, x = (V) => {
|
|
355
355
|
m.set(!!V);
|
|
356
356
|
}, b = () => m.get(), P = (V, H) => {
|
|
357
|
-
const Q = n.get().filter((
|
|
357
|
+
const Q = n.get().filter((te) => H.has(te.path));
|
|
358
358
|
r.set({
|
|
359
359
|
type: V,
|
|
360
360
|
path: $.get().path,
|
|
361
361
|
items: new Set(Q)
|
|
362
362
|
});
|
|
363
|
-
},
|
|
364
|
-
const H =
|
|
363
|
+
}, I = (V) => ze([r], (H) => H.type === "cut" && Array.from(H.items).some((Q) => Q.path === V)), G = (V) => ze([r], (H) => H.type === "copy" && Array.from(H.items).some((Q) => Q.path === V)), oe = (V) => {
|
|
364
|
+
const H = I(V);
|
|
365
365
|
return W(H).value ?? !1;
|
|
366
366
|
}, ie = (V) => {
|
|
367
367
|
const H = G(V);
|
|
@@ -375,14 +375,14 @@ const mo = () => {
|
|
|
375
375
|
}, ce = () => {
|
|
376
376
|
const V = w.get(), H = u.get();
|
|
377
377
|
if (H > 0) {
|
|
378
|
-
const Q = H - 1,
|
|
379
|
-
|
|
378
|
+
const Q = H - 1, te = V[Q];
|
|
379
|
+
te && (u.set(Q), p(te, !1));
|
|
380
380
|
}
|
|
381
381
|
}, ue = () => {
|
|
382
382
|
const V = w.get(), H = u.get();
|
|
383
383
|
if (H < V.length - 1) {
|
|
384
|
-
const Q = H + 1,
|
|
385
|
-
|
|
384
|
+
const Q = H + 1, te = V[Q];
|
|
385
|
+
te && (u.set(Q), p(te, !1));
|
|
386
386
|
}
|
|
387
387
|
}, be = ze([u], (V) => V > 0), Qe = ze(
|
|
388
388
|
[w, u],
|
|
@@ -415,7 +415,7 @@ const mo = () => {
|
|
|
415
415
|
clearFilter: B,
|
|
416
416
|
select: Y,
|
|
417
417
|
selectMultiple: R,
|
|
418
|
-
deselect:
|
|
418
|
+
deselect: ne,
|
|
419
419
|
toggleSelect: ee,
|
|
420
420
|
selectAll: E,
|
|
421
421
|
isSelected: U,
|
|
@@ -425,9 +425,9 @@ const mo = () => {
|
|
|
425
425
|
setLoading: x,
|
|
426
426
|
isLoading: b,
|
|
427
427
|
setClipboard: P,
|
|
428
|
-
createIsCut:
|
|
428
|
+
createIsCut: I,
|
|
429
429
|
createIsCopied: G,
|
|
430
|
-
isCut:
|
|
430
|
+
isCut: oe,
|
|
431
431
|
isCopied: ie,
|
|
432
432
|
clearClipboard: _e,
|
|
433
433
|
getClipboard: Ke,
|
|
@@ -1776,13 +1776,13 @@ const yo = (o, e) => {
|
|
|
1776
1776
|
]),
|
|
1777
1777
|
l.$slots.buttons ? (v(), g("div", xo, [
|
|
1778
1778
|
$e(l.$slots, "buttons")
|
|
1779
|
-
])) :
|
|
1779
|
+
])) : T("", !0)
|
|
1780
1780
|
], 512)
|
|
1781
1781
|
], 32)
|
|
1782
1782
|
]),
|
|
1783
1783
|
n.showDragOverlay ? (v(), g("div", So, [
|
|
1784
1784
|
i("div", Co, y(n.dragOverlayText || "Drag and drop the files/folders to here."), 1)
|
|
1785
|
-
])) :
|
|
1785
|
+
])) : T("", !0)
|
|
1786
1786
|
], 40, bo));
|
|
1787
1787
|
}
|
|
1788
1788
|
}), Fo = { class: "vuefinder__modal-header" }, Do = { class: "vuefinder__modal-header__icon-container" }, Po = {
|
|
@@ -2124,12 +2124,12 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
|
|
|
2124
2124
|
key: 0,
|
|
2125
2125
|
class: "vuefinder__text-preview__save-button",
|
|
2126
2126
|
onClick: w
|
|
2127
|
-
}, y(s(_)("Save")), 1)) :
|
|
2127
|
+
}, y(s(_)("Save")), 1)) : T("", !0),
|
|
2128
2128
|
s(c)("edit") ? (v(), g("button", {
|
|
2129
2129
|
key: 1,
|
|
2130
2130
|
class: "vuefinder__text-preview__edit-button",
|
|
2131
2131
|
onClick: $[0] || ($[0] = (D) => m())
|
|
2132
|
-
}, y(d.value ? s(_)("Cancel") : s(_)("Edit")), 1)) :
|
|
2132
|
+
}, y(d.value ? s(_)("Cancel") : s(_)("Edit")), 1)) : T("", !0)
|
|
2133
2133
|
])
|
|
2134
2134
|
]),
|
|
2135
2135
|
i("div", null, [
|
|
@@ -2184,21 +2184,21 @@ function xn(o) {
|
|
|
2184
2184
|
}, F = (x) => {
|
|
2185
2185
|
x.preventDefault(), x.stopPropagation(), S.value = !1;
|
|
2186
2186
|
const b = /^[/\\](.+)/, P = x.dataTransfer;
|
|
2187
|
-
P && (P.items && P.items.length ? Array.from(P.items).forEach((
|
|
2188
|
-
if (
|
|
2189
|
-
const G =
|
|
2187
|
+
P && (P.items && P.items.length ? Array.from(P.items).forEach((I) => {
|
|
2188
|
+
if (I.kind === "file") {
|
|
2189
|
+
const G = I.webkitGetAsEntry?.();
|
|
2190
2190
|
if (G)
|
|
2191
|
-
Ot((
|
|
2192
|
-
const _e = b.exec(
|
|
2191
|
+
Ot((oe, ie) => {
|
|
2192
|
+
const _e = b.exec(oe?.fullPath || "");
|
|
2193
2193
|
B(ie, _e ? _e[1] : ie.name);
|
|
2194
2194
|
}, G);
|
|
2195
2195
|
else {
|
|
2196
|
-
const
|
|
2197
|
-
|
|
2196
|
+
const oe = I.getAsFile?.();
|
|
2197
|
+
oe && B(oe);
|
|
2198
2198
|
}
|
|
2199
2199
|
}
|
|
2200
|
-
}) : P.files && P.files.length && Array.from(P.files).forEach((
|
|
2201
|
-
}, A = (x) => u.value.findIndex((b) => b.id === x), B = (x, b) => h.addFile({ name: b || x.name, type: x.type, data: x, source: "Local" }), Y = (x) => x.status === ge.DONE ? "text-green-600" : x.status === ge.ERROR || x.status === ge.CANCELED ? "text-red-600" : "", R = (x) => x.status === ge.DONE ? "✓" : x.status === ge.ERROR || x.status === ge.CANCELED ? "!" : "...",
|
|
2200
|
+
}) : P.files && P.files.length && Array.from(P.files).forEach((I) => B(I)));
|
|
2201
|
+
}, A = (x) => u.value.findIndex((b) => b.id === x), B = (x, b) => h.addFile({ name: b || x.name, type: x.type, data: x, source: "Local" }), Y = (x) => x.status === ge.DONE ? "text-green-600" : x.status === ge.ERROR || x.status === ge.CANCELED ? "text-red-600" : "", R = (x) => x.status === ge.DONE ? "✓" : x.status === ge.ERROR || x.status === ge.CANCELED ? "!" : "...", ne = () => m.value?.click(), U = () => e.modal.close(), ee = (x) => {
|
|
2202
2202
|
if (D.value || !u.value.filter((b) => b.status !== ge.DONE).length) {
|
|
2203
2203
|
D.value || ($.value = t("Please select file to upload first."));
|
|
2204
2204
|
return;
|
|
@@ -2227,19 +2227,19 @@ function xn(o) {
|
|
|
2227
2227
|
debug: e.debug,
|
|
2228
2228
|
restrictions: { maxFileSize: uo(l.get("maxFileSize") ?? "10mb") },
|
|
2229
2229
|
locale: e.i18n.t("uppy"),
|
|
2230
|
-
onBeforeFileAdded: (
|
|
2231
|
-
if (G[
|
|
2232
|
-
const ie = A(
|
|
2233
|
-
u.value[ie]?.status === ge.PENDING && ($.value = h.i18n("noDuplicates", { fileName:
|
|
2230
|
+
onBeforeFileAdded: (I, G) => {
|
|
2231
|
+
if (G[I.id] != null) {
|
|
2232
|
+
const ie = A(I.id);
|
|
2233
|
+
u.value[ie]?.status === ge.PENDING && ($.value = h.i18n("noDuplicates", { fileName: I.name })), u.value = u.value.filter((_e) => _e.id !== I.id);
|
|
2234
2234
|
}
|
|
2235
2235
|
return u.value.push({
|
|
2236
|
-
id:
|
|
2237
|
-
name:
|
|
2238
|
-
size: e.filesize(
|
|
2236
|
+
id: I.id,
|
|
2237
|
+
name: I.name,
|
|
2238
|
+
size: e.filesize(I.size),
|
|
2239
2239
|
status: ge.PENDING,
|
|
2240
2240
|
statusName: t("Pending upload"),
|
|
2241
2241
|
percent: null,
|
|
2242
|
-
originalFile:
|
|
2242
|
+
originalFile: I.data
|
|
2243
2243
|
}), !0;
|
|
2244
2244
|
}
|
|
2245
2245
|
});
|
|
@@ -2252,45 +2252,40 @@ function xn(o) {
|
|
|
2252
2252
|
e.adapter.getDriver().configureUploader(h, x);
|
|
2253
2253
|
else
|
|
2254
2254
|
throw new Error("No uploader configured");
|
|
2255
|
-
h.on("restriction-failed", (
|
|
2256
|
-
const
|
|
2257
|
-
|
|
2258
|
-
}), h.on("upload-start", (
|
|
2259
|
-
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2255
|
+
h.on("restriction-failed", (I, G) => {
|
|
2256
|
+
const oe = u.value[A(I.id)];
|
|
2257
|
+
oe && q(oe), $.value = G.message;
|
|
2258
|
+
}), h.on("upload-start", (I) => {
|
|
2259
|
+
I.forEach((G) => {
|
|
2260
|
+
const oe = u.value[A(G.id)];
|
|
2261
|
+
oe && (oe.status = ge.UPLOADING, oe.statusName = t("Uploading"), oe.percent = "0%");
|
|
2262
2262
|
});
|
|
2263
|
-
}), h.on("upload-progress", (
|
|
2264
|
-
|
|
2265
|
-
const te = G.bytesTotal ?? 1;
|
|
2266
|
-
console.log("upload-progress", G.bytesUploaded / te);
|
|
2267
|
-
const ie = Math.floor(G.bytesUploaded / te * 100), _e = A(T.id);
|
|
2263
|
+
}), h.on("upload-progress", (I, G) => {
|
|
2264
|
+
const oe = G.bytesTotal ?? 1, ie = Math.floor(G.bytesUploaded / oe * 100), _e = A(I.id);
|
|
2268
2265
|
_e !== -1 && u.value[_e] && (u.value[_e].percent = `${ie}%`);
|
|
2269
|
-
}), h.on("upload-success", (
|
|
2270
|
-
const G = u.value[A(
|
|
2266
|
+
}), h.on("upload-success", (I) => {
|
|
2267
|
+
const G = u.value[A(I.id)];
|
|
2271
2268
|
G && (G.status = ge.DONE, G.statusName = t("Done"));
|
|
2272
|
-
}), h.on("upload-error", (
|
|
2273
|
-
const
|
|
2274
|
-
|
|
2275
|
-
}), h.on("error", (
|
|
2276
|
-
$.value =
|
|
2277
|
-
}), h.on("complete", (
|
|
2269
|
+
}), h.on("upload-error", (I, G) => {
|
|
2270
|
+
const oe = u.value[A(I.id)];
|
|
2271
|
+
oe && (oe.percent = null, oe.status = ge.ERROR, oe.statusName = G?.isNetworkError ? t("Network Error, Unable establish connection to the server or interrupted.") : G?.message || t("Unknown Error"));
|
|
2272
|
+
}), h.on("error", (I) => {
|
|
2273
|
+
$.value = I.message, D.value = !1;
|
|
2274
|
+
}), h.on("complete", (I) => {
|
|
2278
2275
|
D.value = !1;
|
|
2279
2276
|
const G = p.value || a.value;
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
e.emitter.emit("vf-upload-complete", te);
|
|
2286
|
-
}
|
|
2277
|
+
e.adapter.invalidateListQuery(G.path), e.adapter.open(G.path);
|
|
2278
|
+
const oe = u.value.filter(
|
|
2279
|
+
(ie) => ie.status === ge.DONE && I.successful.includes(ie.id)
|
|
2280
|
+
).map((ie) => ie.name);
|
|
2281
|
+
e.emitter.emit("vf-upload-complete", oe);
|
|
2287
2282
|
}), m.value?.addEventListener("click", () => c.value?.click()), w.value?.addEventListener("click", () => _.value?.click());
|
|
2288
2283
|
const b = { capture: !0 };
|
|
2289
2284
|
document.addEventListener("dragover", f, b), document.addEventListener("dragenter", k, b), document.addEventListener("dragleave", C, b), document.addEventListener("drop", F, b);
|
|
2290
|
-
const P = (
|
|
2291
|
-
const G =
|
|
2292
|
-
if (
|
|
2293
|
-
for (const ie of
|
|
2285
|
+
const P = (I) => {
|
|
2286
|
+
const G = I.target, oe = G.files;
|
|
2287
|
+
if (oe) {
|
|
2288
|
+
for (const ie of oe) B(ie);
|
|
2294
2289
|
G.value = "";
|
|
2295
2290
|
}
|
|
2296
2291
|
};
|
|
@@ -2309,7 +2304,7 @@ function xn(o) {
|
|
|
2309
2304
|
uploading: D,
|
|
2310
2305
|
hasFilesInDropArea: S,
|
|
2311
2306
|
definitions: d,
|
|
2312
|
-
openFileSelector:
|
|
2307
|
+
openFileSelector: ne,
|
|
2313
2308
|
upload: ee,
|
|
2314
2309
|
cancel: E,
|
|
2315
2310
|
remove: q,
|
|
@@ -2339,8 +2334,8 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2339
2334
|
if (f.width > 1200 || f.height > 1200) {
|
|
2340
2335
|
const Y = Math.min(1200 / f.width, 1200 / f.height), R = document.createElement("canvas");
|
|
2341
2336
|
R.width = Math.floor(f.width * Y), R.height = Math.floor(f.height * Y);
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2337
|
+
const ne = R.getContext("2d");
|
|
2338
|
+
ne && (ne.drawImage(f, 0, 0, R.width, R.height), k = R);
|
|
2344
2339
|
}
|
|
2345
2340
|
const C = n.modal.data.item.basename, F = C.split(".").pop()?.toLowerCase() || "jpg", A = F === "png" ? "image/png" : F === "gif" ? "image/gif" : "image/jpeg", B = await new Promise((Y) => {
|
|
2346
2341
|
k.toBlob((R) => Y(R), A);
|
|
@@ -2350,10 +2345,10 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2350
2345
|
return;
|
|
2351
2346
|
}
|
|
2352
2347
|
try {
|
|
2353
|
-
const Y = new File([B], C, { type: A }),
|
|
2354
|
-
|
|
2348
|
+
const Y = new File([B], C, { type: A }), ne = n.modal.data.item.path.split("/");
|
|
2349
|
+
ne.pop();
|
|
2355
2350
|
const ee = {
|
|
2356
|
-
path:
|
|
2351
|
+
path: ne.join("/") || ($.value?.path ?? "")
|
|
2357
2352
|
};
|
|
2358
2353
|
_([Y]), await new Promise((z) => setTimeout(z, 100));
|
|
2359
2354
|
const E = w.value.find((z) => z.name === Y.name);
|
|
@@ -2390,12 +2385,12 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
|
|
|
2390
2385
|
key: 0,
|
|
2391
2386
|
class: "vuefinder__image-preview__crop-button",
|
|
2392
2387
|
onClick: p
|
|
2393
|
-
}, y(s(l)("Crop")), 1)) :
|
|
2388
|
+
}, y(s(l)("Crop")), 1)) : T("", !0),
|
|
2394
2389
|
s(a)("edit") ? (v(), g("button", {
|
|
2395
2390
|
key: 1,
|
|
2396
2391
|
class: "vuefinder__image-preview__edit-button",
|
|
2397
2392
|
onClick: f[0] || (f[0] = (k) => S())
|
|
2398
|
-
}, y(d.value ? s(l)("Cancel") : s(l)("Edit")), 1)) :
|
|
2393
|
+
}, y(d.value ? s(l)("Cancel") : s(l)("Edit")), 1)) : T("", !0)
|
|
2399
2394
|
])
|
|
2400
2395
|
]),
|
|
2401
2396
|
i("div", $s, [
|
|
@@ -2629,7 +2624,7 @@ const Xs = {
|
|
|
2629
2624
|
class: "vf-btn vf-btn-primary",
|
|
2630
2625
|
download: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path }),
|
|
2631
2626
|
href: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path })
|
|
2632
|
-
}, y(s(n)("Download")), 9, li)) :
|
|
2627
|
+
}, y(s(n)("Download")), 9, li)) : T("", !0)
|
|
2633
2628
|
]),
|
|
2634
2629
|
default: se(() => [
|
|
2635
2630
|
i("div", {
|
|
@@ -2637,7 +2632,7 @@ const Xs = {
|
|
|
2637
2632
|
tabindex: "0",
|
|
2638
2633
|
onKeydown: h
|
|
2639
2634
|
}, [
|
|
2640
|
-
s(e).modal.editMode ?
|
|
2635
|
+
s(e).modal.editMode ? T("", !0) : (v(), g("div", Xs, [
|
|
2641
2636
|
i("button", {
|
|
2642
2637
|
disabled: !$.value,
|
|
2643
2638
|
class: "vuefinder__preview-modal__nav-side vuefinder__preview-modal__nav-side--left",
|
|
@@ -2692,7 +2687,7 @@ const Xs = {
|
|
|
2692
2687
|
key: `default-${_.value.path}`,
|
|
2693
2688
|
onSuccess: k[5] || (k[5] = (C) => a.value = !0)
|
|
2694
2689
|
}))
|
|
2695
|
-
])) :
|
|
2690
|
+
])) : T("", !0),
|
|
2696
2691
|
i("div", ni, [
|
|
2697
2692
|
a.value === !1 ? (v(), g("div", oi, [
|
|
2698
2693
|
k[9] || (k[9] = i("svg", {
|
|
@@ -2716,7 +2711,7 @@ const Xs = {
|
|
|
2716
2711
|
})
|
|
2717
2712
|
], -1)),
|
|
2718
2713
|
i("span", null, y(s(n)("Loading")), 1)
|
|
2719
|
-
])) :
|
|
2714
|
+
])) : T("", !0)
|
|
2720
2715
|
])
|
|
2721
2716
|
])
|
|
2722
2717
|
], 32),
|
|
@@ -2734,7 +2729,7 @@ const Xs = {
|
|
|
2734
2729
|
i("span", null, y(s(n)(
|
|
2735
2730
|
`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`
|
|
2736
2731
|
)), 1)
|
|
2737
|
-
])) :
|
|
2732
|
+
])) : T("", !0)
|
|
2738
2733
|
]),
|
|
2739
2734
|
_: 1
|
|
2740
2735
|
}));
|
|
@@ -2955,9 +2950,9 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2955
2950
|
], 34)
|
|
2956
2951
|
]),
|
|
2957
2952
|
c.value && h.value ? (v(), g("div", Ei, [
|
|
2958
|
-
(v(!0), g(ve, null, he(u.value, (
|
|
2959
|
-
key:
|
|
2960
|
-
folder:
|
|
2953
|
+
(v(!0), g(ve, null, he(u.value, (ne) => (v(), L(R, {
|
|
2954
|
+
key: ne.path,
|
|
2955
|
+
folder: ne,
|
|
2961
2956
|
storage: o.storage,
|
|
2962
2957
|
"model-value": o.modelValue,
|
|
2963
2958
|
"expanded-folders": o.expandedFolders,
|
|
@@ -2972,8 +2967,8 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
2972
2967
|
class: "vuefinder__modal-tree__load-more",
|
|
2973
2968
|
onClick: p
|
|
2974
2969
|
}, y(s(n)("load more")), 1)
|
|
2975
|
-
])) :
|
|
2976
|
-
])) :
|
|
2970
|
+
])) : T("", !0)
|
|
2971
|
+
])) : T("", !0)
|
|
2977
2972
|
]);
|
|
2978
2973
|
};
|
|
2979
2974
|
}
|
|
@@ -3053,14 +3048,14 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3053
3048
|
};
|
|
3054
3049
|
d("update:modelValue", q), d("selectAndClose", q);
|
|
3055
3050
|
};
|
|
3056
|
-
let
|
|
3051
|
+
let ne = 0;
|
|
3057
3052
|
const U = (E) => {
|
|
3058
3053
|
if (!E) return;
|
|
3059
3054
|
const q = Date.now();
|
|
3060
|
-
q -
|
|
3055
|
+
q - ne < nn ? B(E) : A(E), ne = q;
|
|
3061
3056
|
}, ee = (E) => {
|
|
3062
3057
|
const q = Date.now();
|
|
3063
|
-
q -
|
|
3058
|
+
q - ne < nn ? R(E) : Y(E), ne = q;
|
|
3064
3059
|
};
|
|
3065
3060
|
return fe(() => {
|
|
3066
3061
|
w.value && st(w.value, {
|
|
@@ -3096,7 +3091,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3096
3091
|
O(s(Lt), { class: "vuefinder__modal-tree__icon vuefinder__modal-tree__icon--pin" })
|
|
3097
3092
|
], 42, Ri))), 128))
|
|
3098
3093
|
])
|
|
3099
|
-
])) :
|
|
3094
|
+
])) : T("", !0),
|
|
3100
3095
|
i("div", ji, y(s(n)("Storages")), 1),
|
|
3101
3096
|
(v(!0), g(ve, null, he(_.value, (j) => (v(), g("div", {
|
|
3102
3097
|
key: j,
|
|
@@ -3147,8 +3142,8 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3147
3142
|
class: "vuefinder__modal-tree__load-more",
|
|
3148
3143
|
onClick: (z) => F(j + "://")
|
|
3149
3144
|
}, y(s(n)("load more")), 9, Ji)
|
|
3150
|
-
])) :
|
|
3151
|
-
])) :
|
|
3145
|
+
])) : T("", !0)
|
|
3146
|
+
])) : T("", !0)
|
|
3152
3147
|
])
|
|
3153
3148
|
])
|
|
3154
3149
|
]))), 128))
|
|
@@ -3168,7 +3163,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3168
3163
|
t("hidden"), l.value = !0;
|
|
3169
3164
|
};
|
|
3170
3165
|
return (_, m) => (v(), g("div", null, [
|
|
3171
|
-
l.value ?
|
|
3166
|
+
l.value ? T("", !0) : (v(), g("div", {
|
|
3172
3167
|
key: 0,
|
|
3173
3168
|
ref_key: "strMessage",
|
|
3174
3169
|
ref: d,
|
|
@@ -3297,7 +3292,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3297
3292
|
}, [
|
|
3298
3293
|
i("div", aa, [
|
|
3299
3294
|
i("span", ra, y(k().storage) + "://", 1),
|
|
3300
|
-
k().path ? (v(), g("span", la, y(k().path), 1)) :
|
|
3295
|
+
k().path ? (v(), g("span", la, y(k().path), 1)) : T("", !0)
|
|
3301
3296
|
]),
|
|
3302
3297
|
i("span", da, y(s(n)("Browse")), 1)
|
|
3303
3298
|
])
|
|
@@ -3329,7 +3324,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3329
3324
|
]),
|
|
3330
3325
|
i("span", va, y(s(n)("Create a copy instead of moving")), 1)
|
|
3331
3326
|
])
|
|
3332
|
-
])) :
|
|
3327
|
+
])) : T("", !0),
|
|
3333
3328
|
f.value ? (v(), L(Pt, {
|
|
3334
3329
|
key: 1,
|
|
3335
3330
|
error: ""
|
|
@@ -3338,7 +3333,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3338
3333
|
de(y(f.value), 1)
|
|
3339
3334
|
]),
|
|
3340
3335
|
_: 1
|
|
3341
|
-
})) :
|
|
3336
|
+
})) : T("", !0),
|
|
3342
3337
|
r.value.length && !f.value ? (v(), L(Pt, {
|
|
3343
3338
|
key: 2,
|
|
3344
3339
|
error: "",
|
|
@@ -3348,7 +3343,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
|
|
|
3348
3343
|
de(y(r.value), 1)
|
|
3349
3344
|
]),
|
|
3350
3345
|
_: 1
|
|
3351
|
-
})) :
|
|
3346
|
+
})) : T("", !0)
|
|
3352
3347
|
])
|
|
3353
3348
|
])
|
|
3354
3349
|
]),
|
|
@@ -3459,7 +3454,7 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
|
|
|
3459
3454
|
}, null, 40, ba),
|
|
3460
3455
|
o.isSearching ? (v(), g("div", ka, [
|
|
3461
3456
|
O(s(xt), { class: "vuefinder__search-modal__loading-icon" })
|
|
3462
|
-
])) :
|
|
3457
|
+
])) : T("", !0)
|
|
3463
3458
|
]));
|
|
3464
3459
|
}
|
|
3465
3460
|
}), xa = {
|
|
@@ -3636,7 +3631,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3636
3631
|
}, [
|
|
3637
3632
|
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3638
3633
|
], -1)
|
|
3639
|
-
])])) :
|
|
3634
|
+
])])) : T("", !0)
|
|
3640
3635
|
], 2),
|
|
3641
3636
|
i("div", {
|
|
3642
3637
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
@@ -3652,7 +3647,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3652
3647
|
}, [
|
|
3653
3648
|
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3654
3649
|
], -1)
|
|
3655
|
-
])])) :
|
|
3650
|
+
])])) : T("", !0)
|
|
3656
3651
|
], 2),
|
|
3657
3652
|
i("div", {
|
|
3658
3653
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
@@ -3668,7 +3663,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3668
3663
|
}, [
|
|
3669
3664
|
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3670
3665
|
], -1)
|
|
3671
|
-
])])) :
|
|
3666
|
+
])])) : T("", !0)
|
|
3672
3667
|
], 2),
|
|
3673
3668
|
i("div", {
|
|
3674
3669
|
class: Z(["vuefinder__search-modal__dropdown-option", {
|
|
@@ -3684,12 +3679,12 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
|
|
|
3684
3679
|
}, [
|
|
3685
3680
|
i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
|
|
3686
3681
|
], -1)
|
|
3687
|
-
])])) :
|
|
3682
|
+
])])) : T("", !0)
|
|
3688
3683
|
], 2)
|
|
3689
3684
|
])
|
|
3690
3685
|
])
|
|
3691
3686
|
])
|
|
3692
|
-
], 40, Fa)) :
|
|
3687
|
+
], 40, Fa)) : T("", !0)
|
|
3693
3688
|
]))
|
|
3694
3689
|
], 64));
|
|
3695
3690
|
}
|
|
@@ -3848,7 +3843,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3848
3843
|
i("div", Ua, [
|
|
3849
3844
|
i("div", ja, [
|
|
3850
3845
|
de(y(o.item.basename) + " ", 1),
|
|
3851
|
-
_(o.item) ? (v(), g("span", Ha, y(_(o.item)), 1)) :
|
|
3846
|
+
_(o.item) ? (v(), g("span", Ha, y(_(o.item)), 1)) : T("", !0)
|
|
3852
3847
|
]),
|
|
3853
3848
|
i("div", {
|
|
3854
3849
|
class: "vuefinder__search-modal__result-path",
|
|
@@ -3918,7 +3913,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
3918
3913
|
i("span", null, y(s(l)("Preview")), 1)
|
|
3919
3914
|
], 34)
|
|
3920
3915
|
])
|
|
3921
|
-
], 40, Ga)) :
|
|
3916
|
+
], 40, Ga)) : T("", !0)
|
|
3922
3917
|
]))
|
|
3923
3918
|
], 10, Ra));
|
|
3924
3919
|
}
|
|
@@ -4073,7 +4068,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4073
4068
|
storage: C?.value?.storage ?? "local",
|
|
4074
4069
|
item: b
|
|
4075
4070
|
}), B();
|
|
4076
|
-
},
|
|
4071
|
+
}, ne = (b) => {
|
|
4077
4072
|
m.value = b, B();
|
|
4078
4073
|
}, U = (b) => {
|
|
4079
4074
|
m.value = b;
|
|
@@ -4091,13 +4086,13 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4091
4086
|
if (b) {
|
|
4092
4087
|
_.value = !0;
|
|
4093
4088
|
try {
|
|
4094
|
-
const P = $.value?.path || C?.value?.path,
|
|
4089
|
+
const P = $.value?.path || C?.value?.path, I = await e.adapter.search({
|
|
4095
4090
|
path: P,
|
|
4096
4091
|
filter: b,
|
|
4097
4092
|
deep: S.value,
|
|
4098
4093
|
size: D.value
|
|
4099
4094
|
});
|
|
4100
|
-
c.value =
|
|
4095
|
+
c.value = I || [], _.value = !1;
|
|
4101
4096
|
} catch (P) {
|
|
4102
4097
|
re.error(Ce(P, t("Search failed"))), c.value = [], _.value = !1;
|
|
4103
4098
|
}
|
|
@@ -4121,8 +4116,8 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4121
4116
|
if (w.value && (P.closest(".vuefinder__search-modal__dropdown") || (w.value = !1, Ae(() => {
|
|
4122
4117
|
a.value && a.value.focus();
|
|
4123
4118
|
}))), k.value) {
|
|
4124
|
-
const
|
|
4125
|
-
!
|
|
4119
|
+
const I = P.closest(".vuefinder__search-modal__item-dropdown"), G = P.closest(".vuefinder__search-modal__result-item");
|
|
4120
|
+
!I && !G && B();
|
|
4126
4121
|
}
|
|
4127
4122
|
};
|
|
4128
4123
|
return (b, P) => (v(), L(Fe, { class: "vuefinder__search-modal-layout" }, {
|
|
@@ -4138,7 +4133,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4138
4133
|
ref_key: "searchInputRef",
|
|
4139
4134
|
ref: a,
|
|
4140
4135
|
modelValue: s(r),
|
|
4141
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
4136
|
+
"onUpdate:modelValue": P[0] || (P[0] = (I) => jn(r) ? r.value = I : null),
|
|
4142
4137
|
"is-searching": _.value,
|
|
4143
4138
|
disabled: u.value
|
|
4144
4139
|
}, null, 8, ["modelValue", "is-searching", "disabled"]),
|
|
@@ -4146,11 +4141,11 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4146
4141
|
ref_key: "searchOptionsDropdownRef",
|
|
4147
4142
|
ref: l,
|
|
4148
4143
|
visible: w.value,
|
|
4149
|
-
"onUpdate:visible": P[1] || (P[1] = (
|
|
4144
|
+
"onUpdate:visible": P[1] || (P[1] = (I) => w.value = I),
|
|
4150
4145
|
"size-filter": D.value,
|
|
4151
|
-
"onUpdate:sizeFilter": P[2] || (P[2] = (
|
|
4146
|
+
"onUpdate:sizeFilter": P[2] || (P[2] = (I) => D.value = I),
|
|
4152
4147
|
"selected-option": p.value,
|
|
4153
|
-
"onUpdate:selectedOption": P[3] || (P[3] = (
|
|
4148
|
+
"onUpdate:selectedOption": P[3] || (P[3] = (I) => p.value = I),
|
|
4154
4149
|
disabled: u.value
|
|
4155
4150
|
}, null, 8, ["visible", "size-filter", "selected-option", "disabled"])
|
|
4156
4151
|
]),
|
|
@@ -4184,7 +4179,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4184
4179
|
}, ["stop"]))
|
|
4185
4180
|
}, [
|
|
4186
4181
|
pe(i("input", {
|
|
4187
|
-
"onUpdate:modelValue": P[4] || (P[4] = (
|
|
4182
|
+
"onUpdate:modelValue": P[4] || (P[4] = (I) => S.value = I),
|
|
4188
4183
|
type: "checkbox",
|
|
4189
4184
|
disabled: u.value,
|
|
4190
4185
|
class: "vuefinder__search-modal__checkbox",
|
|
@@ -4201,7 +4196,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4201
4196
|
O(Rt, {
|
|
4202
4197
|
modelValue: $.value,
|
|
4203
4198
|
"onUpdate:modelValue": [
|
|
4204
|
-
P[8] || (P[8] = (
|
|
4199
|
+
P[8] || (P[8] = (I) => $.value = I),
|
|
4205
4200
|
j
|
|
4206
4201
|
],
|
|
4207
4202
|
"show-pinned-folders": !0,
|
|
@@ -4209,10 +4204,10 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4209
4204
|
onSelectAndClose: z
|
|
4210
4205
|
}, null, 8, ["modelValue", "current-path"])
|
|
4211
4206
|
])
|
|
4212
|
-
])) :
|
|
4207
|
+
])) : T("", !0),
|
|
4213
4208
|
!s(r).trim() && !u.value ? (v(), g("div", cr, [
|
|
4214
4209
|
i("p", ur, y(s(t)("Start typing to search files. Use options to filter or include subfolders.")), 1)
|
|
4215
|
-
])) :
|
|
4210
|
+
])) : T("", !0),
|
|
4216
4211
|
s(r).trim() && !u.value ? (v(), L(tr, {
|
|
4217
4212
|
key: 2,
|
|
4218
4213
|
ref_key: "searchResultsListRef",
|
|
@@ -4224,15 +4219,15 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
|
|
|
4224
4219
|
"active-dropdown": k.value,
|
|
4225
4220
|
"selected-item-dropdown-option": h.value,
|
|
4226
4221
|
"results-enter": !0,
|
|
4227
|
-
onSelectResultItem:
|
|
4222
|
+
onSelectResultItem: ne,
|
|
4228
4223
|
onSelectResultItemWithDropdown: U,
|
|
4229
4224
|
onTogglePathExpansion: F,
|
|
4230
4225
|
onToggleItemDropdown: A,
|
|
4231
|
-
"onUpdate:selectedItemDropdownOption": P[9] || (P[9] = (
|
|
4226
|
+
"onUpdate:selectedItemDropdownOption": P[9] || (P[9] = (I) => h.value = I),
|
|
4232
4227
|
onCopyPath: ee,
|
|
4233
4228
|
onOpenContainingFolder: Y,
|
|
4234
4229
|
onPreview: R
|
|
4235
|
-
}, null, 8, ["search-results", "is-searching", "selected-index", "expanded-paths", "active-dropdown", "selected-item-dropdown-option"])) :
|
|
4230
|
+
}, null, 8, ["search-results", "is-searching", "selected-index", "expanded-paths", "active-dropdown", "selected-item-dropdown-option"])) : T("", !0)
|
|
4236
4231
|
])
|
|
4237
4232
|
])
|
|
4238
4233
|
]),
|
|
@@ -4433,7 +4428,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4433
4428
|
})
|
|
4434
4429
|
])
|
|
4435
4430
|
]),
|
|
4436
|
-
s(t)("theme") ? (v(), g("div", Vr, y(s(l)("Theme")), 1)) :
|
|
4431
|
+
s(t)("theme") ? (v(), g("div", Vr, y(s(l)("Theme")), 1)) : T("", !0),
|
|
4437
4432
|
s(t)("theme") ? (v(), g("div", zr, [
|
|
4438
4433
|
i("div", Rr, [
|
|
4439
4434
|
i("select", {
|
|
@@ -4461,8 +4456,8 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4461
4456
|
_: 1
|
|
4462
4457
|
})
|
|
4463
4458
|
])
|
|
4464
|
-
])) :
|
|
4465
|
-
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Hr, y(s(l)("Language")), 1)) :
|
|
4459
|
+
])) : T("", !0),
|
|
4460
|
+
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Hr, y(s(l)("Language")), 1)) : T("", !0),
|
|
4466
4461
|
s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Kr, [
|
|
4467
4462
|
i("div", qr, [
|
|
4468
4463
|
pe(i("select", {
|
|
@@ -4491,7 +4486,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
|
|
|
4491
4486
|
_: 1
|
|
4492
4487
|
})
|
|
4493
4488
|
])
|
|
4494
|
-
])) :
|
|
4489
|
+
])) : T("", !0)
|
|
4495
4490
|
])
|
|
4496
4491
|
]),
|
|
4497
4492
|
i("div", Yr, [
|
|
@@ -4834,7 +4829,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4834
4829
|
clear: B,
|
|
4835
4830
|
close: Y,
|
|
4836
4831
|
getClassNameForEntry: R,
|
|
4837
|
-
getIconForEntry:
|
|
4832
|
+
getIconForEntry: ne,
|
|
4838
4833
|
addExternalFiles: U
|
|
4839
4834
|
} = xn(e.customUploader), ee = () => {
|
|
4840
4835
|
C(l.value);
|
|
@@ -4848,8 +4843,8 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4848
4843
|
});
|
|
4849
4844
|
const E = M(!1), q = M(null), j = M(null), z = (x) => {
|
|
4850
4845
|
if (!E.value) return;
|
|
4851
|
-
const b = x.target, P = q.value?.contains(b) ?? !1,
|
|
4852
|
-
!P && !
|
|
4846
|
+
const b = x.target, P = q.value?.contains(b) ?? !1, I = j.value?.contains(b) ?? !1;
|
|
4847
|
+
!P && !I && (E.value = !1);
|
|
4853
4848
|
};
|
|
4854
4849
|
return fe(() => document.addEventListener("click", z)), ye(() => document.removeEventListener("click", z)), (x, b) => (v(), L(Fe, {
|
|
4855
4850
|
"show-drag-overlay": s(h),
|
|
@@ -4916,7 +4911,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
4916
4911
|
class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
|
|
4917
4912
|
onClick: b[8] || (b[8] = (P) => s(p) ? null : (s(B)(!0), E.value = !1))
|
|
4918
4913
|
}, y(s(t)("Clear only successful")), 3)
|
|
4919
|
-
])) :
|
|
4914
|
+
])) : T("", !0)
|
|
4920
4915
|
], 512),
|
|
4921
4916
|
i("button", {
|
|
4922
4917
|
type: "button",
|
|
@@ -5000,7 +4995,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5000
4995
|
class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
|
|
5001
4996
|
onClick: b[15] || (b[15] = (P) => s(p) ? null : (s(B)(!0), E.value = !1))
|
|
5002
4997
|
}, y(s(t)("Clear only successful")), 3)
|
|
5003
|
-
])) :
|
|
4998
|
+
])) : T("", !0)
|
|
5004
4999
|
], 512)
|
|
5005
5000
|
]),
|
|
5006
5001
|
default: se(() => [
|
|
@@ -5019,7 +5014,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5019
5014
|
}, [
|
|
5020
5015
|
i("div", gl, [
|
|
5021
5016
|
i("span", wl, y(r().storage) + "://", 1),
|
|
5022
|
-
r().path ? (v(), g("span", yl, y(r().path), 1)) :
|
|
5017
|
+
r().path ? (v(), g("span", yl, y(r().path), 1)) : T("", !0)
|
|
5023
5018
|
]),
|
|
5024
5019
|
i("span", bl, y(s(t)("Browse")), 1)
|
|
5025
5020
|
])
|
|
@@ -5057,7 +5052,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5057
5052
|
}, [
|
|
5058
5053
|
i("span", {
|
|
5059
5054
|
class: "vuefinder__upload-modal__file-icon-text",
|
|
5060
|
-
textContent: y(s(
|
|
5055
|
+
textContent: y(s(ne)(P))
|
|
5061
5056
|
}, null, 8, xl)
|
|
5062
5057
|
], 2),
|
|
5063
5058
|
i("div", Sl, [
|
|
@@ -5067,7 +5062,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5067
5062
|
class: Z(["vuefinder__upload-modal__file-status", s(R)(P)])
|
|
5068
5063
|
}, [
|
|
5069
5064
|
de(y(P.statusName) + " ", 1),
|
|
5070
|
-
P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Dl, y(P.percent), 1)) :
|
|
5065
|
+
P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Dl, y(P.percent), 1)) : T("", !0)
|
|
5071
5066
|
], 2)
|
|
5072
5067
|
]),
|
|
5073
5068
|
i("button", {
|
|
@@ -5075,7 +5070,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5075
5070
|
class: Z(["vuefinder__upload-modal__file-remove", s(p) ? "disabled" : ""]),
|
|
5076
5071
|
title: s(t)("Delete"),
|
|
5077
5072
|
disabled: s(p),
|
|
5078
|
-
onClick: (
|
|
5073
|
+
onClick: (I) => s(A)(P)
|
|
5079
5074
|
}, [...b[16] || (b[16] = [
|
|
5080
5075
|
i("svg", {
|
|
5081
5076
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5093,7 +5088,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5093
5088
|
], -1)
|
|
5094
5089
|
])], 10, Pl)
|
|
5095
5090
|
]))), 128)),
|
|
5096
|
-
s(D).length ?
|
|
5091
|
+
s(D).length ? T("", !0) : (v(), g("div", El, y(s(t)("No files selected!")), 1))
|
|
5097
5092
|
]),
|
|
5098
5093
|
s(S).length ? (v(), L(Pt, {
|
|
5099
5094
|
key: 0,
|
|
@@ -5104,7 +5099,7 @@ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class:
|
|
|
5104
5099
|
de(y(s(S)), 1)
|
|
5105
5100
|
]),
|
|
5106
5101
|
_: 1
|
|
5107
|
-
})) :
|
|
5102
|
+
})) : T("", !0)
|
|
5108
5103
|
])
|
|
5109
5104
|
]),
|
|
5110
5105
|
i("input", {
|
|
@@ -5378,11 +5373,11 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5378
5373
|
de(" + "),
|
|
5379
5374
|
i("kbd", null, "R")
|
|
5380
5375
|
], -1))
|
|
5381
|
-
])) :
|
|
5376
|
+
])) : T("", !0),
|
|
5382
5377
|
s(t)("delete") ? (v(), g("div", sd, [
|
|
5383
5378
|
i("div", null, y(s(n)("Delete")), 1),
|
|
5384
5379
|
l[3] || (l[3] = i("kbd", null, "Del", -1))
|
|
5385
|
-
])) :
|
|
5380
|
+
])) : T("", !0),
|
|
5386
5381
|
i("div", id, [
|
|
5387
5382
|
i("div", null, y(s(n)("Escape")), 1),
|
|
5388
5383
|
l[4] || (l[4] = i("kbd", null, "Esc", -1))
|
|
@@ -5402,7 +5397,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5402
5397
|
de(" + "),
|
|
5403
5398
|
i("kbd", null, "X")
|
|
5404
5399
|
], -1))
|
|
5405
|
-
])) :
|
|
5400
|
+
])) : T("", !0),
|
|
5406
5401
|
s(t)("copy") ? (v(), g("div", ld, [
|
|
5407
5402
|
i("div", null, y(s(n)("Copy")), 1),
|
|
5408
5403
|
l[7] || (l[7] = i("div", null, [
|
|
@@ -5410,7 +5405,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5410
5405
|
de(" + "),
|
|
5411
5406
|
i("kbd", null, "C")
|
|
5412
5407
|
], -1))
|
|
5413
|
-
])) :
|
|
5408
|
+
])) : T("", !0),
|
|
5414
5409
|
s(t)("copy") ? (v(), g("div", dd, [
|
|
5415
5410
|
i("div", null, y(s(n)("Paste")), 1),
|
|
5416
5411
|
l[8] || (l[8] = i("div", null, [
|
|
@@ -5418,7 +5413,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5418
5413
|
de(" + "),
|
|
5419
5414
|
i("kbd", null, "V")
|
|
5420
5415
|
], -1))
|
|
5421
|
-
])) :
|
|
5416
|
+
])) : T("", !0),
|
|
5422
5417
|
s(t)("search") ? (v(), g("div", cd, [
|
|
5423
5418
|
i("div", null, y(s(n)("Search")), 1),
|
|
5424
5419
|
l[9] || (l[9] = i("div", null, [
|
|
@@ -5426,7 +5421,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5426
5421
|
de(" + "),
|
|
5427
5422
|
i("kbd", null, "F")
|
|
5428
5423
|
], -1))
|
|
5429
|
-
])) :
|
|
5424
|
+
])) : T("", !0),
|
|
5430
5425
|
i("div", ud, [
|
|
5431
5426
|
i("div", null, y(s(n)("Toggle Sidebar")), 1),
|
|
5432
5427
|
l[10] || (l[10] = i("div", null, [
|
|
@@ -5450,11 +5445,11 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5450
5445
|
de(" + "),
|
|
5451
5446
|
i("kbd", null, "Enter")
|
|
5452
5447
|
], -1))
|
|
5453
|
-
])) :
|
|
5448
|
+
])) : T("", !0),
|
|
5454
5449
|
s(t)("preview") ? (v(), g("div", _d, [
|
|
5455
5450
|
i("div", null, y(s(n)("Preview")), 1),
|
|
5456
5451
|
l[13] || (l[13] = i("kbd", null, "Space", -1))
|
|
5457
|
-
])) :
|
|
5452
|
+
])) : T("", !0)
|
|
5458
5453
|
])
|
|
5459
5454
|
])
|
|
5460
5455
|
])
|
|
@@ -5873,10 +5868,10 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
|
|
|
5873
5868
|
}]),
|
|
5874
5869
|
onClick: ae((A) => F.type !== "separator" && F.enabled && F.enabled() ? p(F.action) : null, ["stop"])
|
|
5875
5870
|
}, [
|
|
5876
|
-
F.type !== "separator" ? (v(), g("span", bd, y(F.label), 1)) :
|
|
5877
|
-
F.checked && F.checked() ? (v(), g("span", kd, " ✓ ")) :
|
|
5871
|
+
F.type !== "separator" ? (v(), g("span", bd, y(F.label), 1)) : T("", !0),
|
|
5872
|
+
F.checked && F.checked() ? (v(), g("span", kd, " ✓ ")) : T("", !0)
|
|
5878
5873
|
], 10, yd))), 128))
|
|
5879
|
-
], 40, wd)) :
|
|
5874
|
+
], 40, wd)) : T("", !0)
|
|
5880
5875
|
], 42, md))), 128))
|
|
5881
5876
|
])
|
|
5882
5877
|
]));
|
|
@@ -6050,7 +6045,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6050
6045
|
onClick: h[0] || (h[0] = (f) => s(e).modal.open(Ht, { items: s(r) }))
|
|
6051
6046
|
}, [
|
|
6052
6047
|
O(s(Tn))
|
|
6053
|
-
], 8, Nd)) :
|
|
6048
|
+
], 8, Nd)) : T("", !0),
|
|
6054
6049
|
s(t)("newfile") ? (v(), g("div", {
|
|
6055
6050
|
key: 1,
|
|
6056
6051
|
class: "mx-1.5",
|
|
@@ -6058,7 +6053,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6058
6053
|
onClick: h[1] || (h[1] = (f) => s(e).modal.open(An, { items: s(r) }))
|
|
6059
6054
|
}, [
|
|
6060
6055
|
O(s(In))
|
|
6061
|
-
], 8, Ud)) :
|
|
6056
|
+
], 8, Ud)) : T("", !0),
|
|
6062
6057
|
s(t)("rename") ? (v(), g("div", {
|
|
6063
6058
|
key: 2,
|
|
6064
6059
|
class: "mx-1.5",
|
|
@@ -6068,7 +6063,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6068
6063
|
O(s($n), {
|
|
6069
6064
|
class: Z(s(r).length === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6070
6065
|
}, null, 8, ["class"])
|
|
6071
|
-
], 8, jd)) :
|
|
6066
|
+
], 8, jd)) : T("", !0),
|
|
6072
6067
|
s(t)("delete") ? (v(), g("div", {
|
|
6073
6068
|
key: 3,
|
|
6074
6069
|
class: "mx-1.5",
|
|
@@ -6078,7 +6073,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6078
6073
|
O(s(kn), {
|
|
6079
6074
|
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6080
6075
|
}, null, 8, ["class"])
|
|
6081
|
-
], 8, Hd)) :
|
|
6076
|
+
], 8, Hd)) : T("", !0),
|
|
6082
6077
|
s(t)("upload") ? (v(), g("div", {
|
|
6083
6078
|
key: 4,
|
|
6084
6079
|
class: "mx-1.5",
|
|
@@ -6086,7 +6081,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6086
6081
|
onClick: h[4] || (h[4] = (f) => s(e).modal.open(Kt, { items: s(r) }))
|
|
6087
6082
|
}, [
|
|
6088
6083
|
O(s(On))
|
|
6089
|
-
], 8, Kd)) :
|
|
6084
|
+
], 8, Kd)) : T("", !0),
|
|
6090
6085
|
s(t)("unarchive") && s(r).length === 1 && s(r)[0].mime_type === "application/zip" ? (v(), g("div", {
|
|
6091
6086
|
key: 5,
|
|
6092
6087
|
class: "mx-1.5",
|
|
@@ -6096,7 +6091,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6096
6091
|
O(s(Bn), {
|
|
6097
6092
|
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6098
6093
|
}, null, 8, ["class"])
|
|
6099
|
-
], 8, qd)) :
|
|
6094
|
+
], 8, qd)) : T("", !0),
|
|
6100
6095
|
s(t)("archive") ? (v(), g("div", {
|
|
6101
6096
|
key: 6,
|
|
6102
6097
|
class: "mx-1.5",
|
|
@@ -6106,7 +6101,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6106
6101
|
O(s(Ln), {
|
|
6107
6102
|
class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
6108
6103
|
}, null, 8, ["class"])
|
|
6109
|
-
], 8, Gd)) :
|
|
6104
|
+
], 8, Gd)) : T("", !0)
|
|
6110
6105
|
]),
|
|
6111
6106
|
i("div", Wd, [
|
|
6112
6107
|
s(t)("search") ? (v(), g("div", {
|
|
@@ -6116,7 +6111,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6116
6111
|
onClick: h[7] || (h[7] = (f) => s(e).modal.open(jt))
|
|
6117
6112
|
}, [
|
|
6118
6113
|
O(s(Ut), { class: "vf-toolbar-icon text-(--vf-bg-primary)" })
|
|
6119
|
-
], 8, Yd)) :
|
|
6114
|
+
], 8, Yd)) : T("", !0),
|
|
6120
6115
|
i("div", Qd, [
|
|
6121
6116
|
i("div", {
|
|
6122
6117
|
title: s(n)("Filter"),
|
|
@@ -6125,7 +6120,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6125
6120
|
}, [
|
|
6126
6121
|
i("div", Jd, [
|
|
6127
6122
|
O(s(Vd), { class: "vf-toolbar-icon vuefinder__toolbar__icon h-6 w-6" }),
|
|
6128
|
-
D.value ? (v(), g("div", Zd)) :
|
|
6123
|
+
D.value ? (v(), g("div", Zd)) : T("", !0)
|
|
6129
6124
|
])
|
|
6130
6125
|
], 8, Xd),
|
|
6131
6126
|
m.value ? (v(), g("div", ec, [
|
|
@@ -6214,7 +6209,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6214
6209
|
}, y(s(n)("Reset")), 1)
|
|
6215
6210
|
])
|
|
6216
6211
|
])
|
|
6217
|
-
])) :
|
|
6212
|
+
])) : T("", !0)
|
|
6218
6213
|
]),
|
|
6219
6214
|
s(t)("fullscreen") ? (v(), g("div", {
|
|
6220
6215
|
key: 1,
|
|
@@ -6229,7 +6224,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6229
6224
|
key: 1,
|
|
6230
6225
|
class: "vf-toolbar-icon"
|
|
6231
6226
|
}))
|
|
6232
|
-
], 8, $c)) :
|
|
6227
|
+
], 8, $c)) : T("", !0),
|
|
6233
6228
|
i("div", {
|
|
6234
6229
|
class: "mx-1.5",
|
|
6235
6230
|
title: s(n)("Change View"),
|
|
@@ -6238,11 +6233,11 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
|
|
|
6238
6233
|
s(d).view === "grid" ? (v(), L(s(Td), {
|
|
6239
6234
|
key: 0,
|
|
6240
6235
|
class: "vf-toolbar-icon"
|
|
6241
|
-
})) :
|
|
6236
|
+
})) : T("", !0),
|
|
6242
6237
|
s(d).view === "list" ? (v(), L(s(Od), {
|
|
6243
6238
|
key: 1,
|
|
6244
6239
|
class: "vf-toolbar-icon"
|
|
6245
|
-
})) :
|
|
6240
|
+
})) : T("", !0)
|
|
6246
6241
|
], 8, xc)
|
|
6247
6242
|
])
|
|
6248
6243
|
]));
|
|
@@ -6425,15 +6420,15 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6425
6420
|
if (!c.value) return;
|
|
6426
6421
|
const z = c.value.children;
|
|
6427
6422
|
let x = 0, b = 0;
|
|
6428
|
-
const P = 5,
|
|
6423
|
+
const P = 5, I = 1;
|
|
6429
6424
|
m.value = P, Ae(() => {
|
|
6430
6425
|
for (let G = z.length - 1; G >= 0; G--) {
|
|
6431
|
-
const
|
|
6432
|
-
if (x +
|
|
6426
|
+
const oe = z[G];
|
|
6427
|
+
if (x + oe.offsetWidth > _.value - 40)
|
|
6433
6428
|
break;
|
|
6434
|
-
x += parseInt(
|
|
6429
|
+
x += parseInt(oe.offsetWidth.toString(), 10), b++;
|
|
6435
6430
|
}
|
|
6436
|
-
b <
|
|
6431
|
+
b < I && (b = I), b > P && (b = P), m.value = b;
|
|
6437
6432
|
});
|
|
6438
6433
|
});
|
|
6439
6434
|
const h = () => {
|
|
@@ -6479,15 +6474,15 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6479
6474
|
beforeUnmount(z) {
|
|
6480
6475
|
document.body.removeEventListener("click", z.clickOutsideEvent);
|
|
6481
6476
|
}
|
|
6482
|
-
},
|
|
6477
|
+
}, ne = () => {
|
|
6483
6478
|
a.toggle("showTreeView");
|
|
6484
6479
|
}, U = M({
|
|
6485
6480
|
x: 0,
|
|
6486
6481
|
y: 0
|
|
6487
6482
|
}), ee = (z, x = null) => {
|
|
6488
6483
|
if (z.currentTarget instanceof HTMLElement) {
|
|
6489
|
-
const { x: b, y: P, height:
|
|
6490
|
-
U.value = { x: b, y: P +
|
|
6484
|
+
const { x: b, y: P, height: I } = z.currentTarget.getBoundingClientRect();
|
|
6485
|
+
U.value = { x: b, y: P + I };
|
|
6491
6486
|
}
|
|
6492
6487
|
w.value = x ?? !w.value;
|
|
6493
6488
|
}, E = () => {
|
|
@@ -6503,7 +6498,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6503
6498
|
}, [
|
|
6504
6499
|
O(s(jc), {
|
|
6505
6500
|
class: Z(["vuefinder__breadcrumb__toggle-tree", s(l).showTreeView ? "vuefinder__breadcrumb__toggle-tree--active" : ""]),
|
|
6506
|
-
onClick:
|
|
6501
|
+
onClick: ne
|
|
6507
6502
|
}, null, 8, ["class"])
|
|
6508
6503
|
], 8, Wc),
|
|
6509
6504
|
i("span", {
|
|
@@ -6546,7 +6541,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6546
6541
|
])
|
|
6547
6542
|
])), [
|
|
6548
6543
|
[R, Y]
|
|
6549
|
-
]) :
|
|
6544
|
+
]) : T("", !0)
|
|
6550
6545
|
]),
|
|
6551
6546
|
i("div", {
|
|
6552
6547
|
ref_key: "breadcrumbContainer",
|
|
@@ -6559,11 +6554,11 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6559
6554
|
class: "vuefinder__breadcrumb__item pointer-events-auto",
|
|
6560
6555
|
title: b.basename
|
|
6561
6556
|
}, Re(s(k).events(b), !0), {
|
|
6562
|
-
onClick: ae((
|
|
6557
|
+
onClick: ae((I) => s(e).adapter.open(b.path), ["stop"])
|
|
6563
6558
|
}), y(b.name), 17, nu)
|
|
6564
6559
|
]))), 128))
|
|
6565
6560
|
], 512),
|
|
6566
|
-
s(a).get("loadingIndicator") === "circular" && s(r) ? (v(), L(s(xt), { key: 0 })) :
|
|
6561
|
+
s(a).get("loadingIndicator") === "circular" && s(r) ? (v(), L(s(xt), { key: 0 })) : T("", !0),
|
|
6567
6562
|
i("span", {
|
|
6568
6563
|
title: s(t)("Toggle Path Copy Mode"),
|
|
6569
6564
|
onClick: E
|
|
@@ -6611,7 +6606,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
|
|
|
6611
6606
|
key: P,
|
|
6612
6607
|
class: "vuefinder__breadcrumb__hidden-item"
|
|
6613
6608
|
}, Re(s(k).events(b), !0), {
|
|
6614
|
-
onClick: (
|
|
6609
|
+
onClick: (I) => B(b)
|
|
6615
6610
|
}), [
|
|
6616
6611
|
i("div", uu, [
|
|
6617
6612
|
i("span", null, [
|
|
@@ -6653,7 +6648,7 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
|
|
|
6653
6648
|
e.count > 1 ? (v(), L(s(sn), {
|
|
6654
6649
|
key: 0,
|
|
6655
6650
|
class: "vuefinder__drag-item__icon translate-x-1 translate-y-1"
|
|
6656
|
-
})) :
|
|
6651
|
+
})) : T("", !0),
|
|
6657
6652
|
O(s(sn), { class: "vuefinder__drag-item__icon" }),
|
|
6658
6653
|
i("div", mu, y(e.count), 1)
|
|
6659
6654
|
]));
|
|
@@ -6685,7 +6680,7 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
|
|
|
6685
6680
|
key: 1,
|
|
6686
6681
|
class: "vuefinder__item-icon__file"
|
|
6687
6682
|
})),
|
|
6688
|
-
o.ext && o.item.type !== "dir" && o.item.extension ? (v(), g("div", wu, y(o.item.extension.substring(0, 3)), 1)) :
|
|
6683
|
+
o.ext && o.item.type !== "dir" && o.item.extension ? (v(), g("div", wu, y(o.item.extension.substring(0, 3)), 1)) : T("", !0)
|
|
6689
6684
|
])
|
|
6690
6685
|
], 2));
|
|
6691
6686
|
}
|
|
@@ -6758,7 +6753,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6758
6753
|
return;
|
|
6759
6754
|
}
|
|
6760
6755
|
setTimeout(() => {
|
|
6761
|
-
p || (C(),
|
|
6756
|
+
p || (C(), ne(U));
|
|
6762
6757
|
}, 100);
|
|
6763
6758
|
}, B = (U) => {
|
|
6764
6759
|
if (!S) return;
|
|
@@ -6773,7 +6768,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6773
6768
|
if (p)
|
|
6774
6769
|
return U.preventDefault(), U.stopPropagation(), !1;
|
|
6775
6770
|
n("dragstart", U);
|
|
6776
|
-
},
|
|
6771
|
+
}, ne = (U) => {
|
|
6777
6772
|
if (!$)
|
|
6778
6773
|
$ = !0, n("click", U), u.value = setTimeout(() => {
|
|
6779
6774
|
$ = !1;
|
|
@@ -6803,7 +6798,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6803
6798
|
key: 0,
|
|
6804
6799
|
class: "vuefinder__item--readonly vuefinder__item--readonly--left",
|
|
6805
6800
|
title: "Read Only"
|
|
6806
|
-
})) :
|
|
6801
|
+
})) : T("", !0),
|
|
6807
6802
|
i("div", xu, [
|
|
6808
6803
|
(o.item.mime_type ?? "").startsWith("image") && o.showThumbnails ? (v(), g("img", {
|
|
6809
6804
|
key: 0,
|
|
@@ -6843,19 +6838,19 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
|
|
|
6843
6838
|
key: 0,
|
|
6844
6839
|
class: "vuefinder__item--readonly vuefinder__item--readonly--list",
|
|
6845
6840
|
title: "Read Only"
|
|
6846
|
-
})) :
|
|
6841
|
+
})) : T("", !0)
|
|
6847
6842
|
])
|
|
6848
6843
|
]),
|
|
6849
|
-
o.showPath ? (v(), g("div", Mu, y(o.item.path), 1)) :
|
|
6850
|
-
o.showPath ?
|
|
6851
|
-
o.item.file_size ? (v(), g("div", Iu, y(s(a).filesize(o.item.file_size)), 1)) :
|
|
6844
|
+
o.showPath ? (v(), g("div", Mu, y(o.item.path), 1)) : T("", !0),
|
|
6845
|
+
o.showPath ? T("", !0) : (v(), g("div", Tu, [
|
|
6846
|
+
o.item.file_size ? (v(), g("div", Iu, y(s(a).filesize(o.item.file_size)), 1)) : T("", !0)
|
|
6852
6847
|
])),
|
|
6853
|
-
!o.showPath && o.item.last_modified ? (v(), g("div", Au, y(new Date(o.item.last_modified * 1e3).toLocaleString()), 1)) :
|
|
6848
|
+
!o.showPath && o.item.last_modified ? (v(), g("div", Au, y(new Date(o.item.last_modified * 1e3).toLocaleString()), 1)) : T("", !0)
|
|
6854
6849
|
])),
|
|
6855
6850
|
s(h)("pinned") && s(d).get("pinnedFolders").find((E) => E.path === o.item.path) ? (v(), L(s(Lt), {
|
|
6856
6851
|
key: 2,
|
|
6857
6852
|
class: "vuefinder__item--pinned"
|
|
6858
|
-
})) :
|
|
6853
|
+
})) : T("", !0)
|
|
6859
6854
|
], 46, ku));
|
|
6860
6855
|
}
|
|
6861
6856
|
}), Bu = ["data-row"], ln = /* @__PURE__ */ X({
|
|
@@ -6965,11 +6960,11 @@ const Uu = { render: Nu }, Ct = /* @__PURE__ */ X({
|
|
|
6965
6960
|
o.direction === "asc" ? (v(), L(s(zu), {
|
|
6966
6961
|
key: 0,
|
|
6967
6962
|
class: "vuefinder__explorer__sort-icon"
|
|
6968
|
-
})) :
|
|
6963
|
+
})) : T("", !0),
|
|
6969
6964
|
o.direction === "desc" ? (v(), L(s(Uu), {
|
|
6970
6965
|
key: 1,
|
|
6971
6966
|
class: "vuefinder__explorer__sort-icon"
|
|
6972
|
-
})) :
|
|
6967
|
+
})) : T("", !0)
|
|
6973
6968
|
]));
|
|
6974
6969
|
}
|
|
6975
6970
|
}), ju = { class: "vuefinder__explorer__header" }, Hu = /* @__PURE__ */ X({
|
|
@@ -7024,14 +7019,14 @@ function Ku(o, e) {
|
|
|
7024
7019
|
} = e, c = o, _ = () => typeof a == "number" ? a : a.value, m = M(0), w = M(6), u = M(600);
|
|
7025
7020
|
let $ = null;
|
|
7026
7021
|
const D = N(() => Math.ceil(c.value.length / w.value)), S = N(() => D.value * _()), p = N(() => {
|
|
7027
|
-
const R = _(),
|
|
7022
|
+
const R = _(), ne = Math.max(0, Math.floor(m.value / R) - l), U = Math.min(
|
|
7028
7023
|
D.value,
|
|
7029
7024
|
Math.ceil((m.value + u.value) / R) + l
|
|
7030
7025
|
);
|
|
7031
|
-
return { start:
|
|
7026
|
+
return { start: ne, end: U };
|
|
7032
7027
|
}), h = N(() => {
|
|
7033
|
-
const { start: R, end:
|
|
7034
|
-
return Array.from({ length:
|
|
7028
|
+
const { start: R, end: ne } = p.value;
|
|
7029
|
+
return Array.from({ length: ne - R }, (U, ee) => R + ee);
|
|
7035
7030
|
}), f = () => u.value, k = () => r.value, C = () => {
|
|
7036
7031
|
if (k()) {
|
|
7037
7032
|
w.value = 1;
|
|
@@ -7042,8 +7037,8 @@ function Ku(o, e) {
|
|
|
7042
7037
|
w.value = Math.max(Math.floor(R / n), 2);
|
|
7043
7038
|
}
|
|
7044
7039
|
}, F = (R) => {
|
|
7045
|
-
const
|
|
7046
|
-
m.value =
|
|
7040
|
+
const ne = R.target;
|
|
7041
|
+
m.value = ne.scrollTop;
|
|
7047
7042
|
};
|
|
7048
7043
|
le(
|
|
7049
7044
|
() => c.value.length,
|
|
@@ -7051,16 +7046,16 @@ function Ku(o, e) {
|
|
|
7051
7046
|
C();
|
|
7052
7047
|
}
|
|
7053
7048
|
);
|
|
7054
|
-
const A = (R,
|
|
7049
|
+
const A = (R, ne) => {
|
|
7055
7050
|
if (!R || !Array.isArray(R))
|
|
7056
7051
|
return [];
|
|
7057
|
-
const U =
|
|
7052
|
+
const U = ne * w.value;
|
|
7058
7053
|
return R.slice(U, U + w.value);
|
|
7059
|
-
}, B = (R,
|
|
7054
|
+
}, B = (R, ne, U, ee, E) => {
|
|
7060
7055
|
if (!R || !Array.isArray(R))
|
|
7061
7056
|
return [];
|
|
7062
7057
|
const q = [];
|
|
7063
|
-
for (let j =
|
|
7058
|
+
for (let j = ne; j <= U; j++)
|
|
7064
7059
|
for (let z = ee; z <= E; z++) {
|
|
7065
7060
|
const x = j * w.value + z;
|
|
7066
7061
|
x < R.length && R[x] && q.push(R[x]);
|
|
@@ -7074,8 +7069,8 @@ function Ku(o, e) {
|
|
|
7074
7069
|
await Ae(), t.value && (u.value = t.value.clientHeight || 600), C(), window.addEventListener("resize", () => {
|
|
7075
7070
|
t.value && (u.value = t.value.clientHeight || 600), C();
|
|
7076
7071
|
}), t.value && "ResizeObserver" in window && ($ = new ResizeObserver((R) => {
|
|
7077
|
-
const
|
|
7078
|
-
|
|
7072
|
+
const ne = R[0];
|
|
7073
|
+
ne && (u.value = Math.round(ne.contentRect.height)), C();
|
|
7079
7074
|
}), $.observe(t.value));
|
|
7080
7075
|
}), ye(() => {
|
|
7081
7076
|
window.removeEventListener("resize", C), $ && ($.disconnect(), $ = null);
|
|
@@ -7115,22 +7110,22 @@ function qu(o) {
|
|
|
7115
7110
|
if (u.value && u.value.size > 0) {
|
|
7116
7111
|
const b = document.querySelectorAll(`.file-item-${_}[data-key]`), P = /* @__PURE__ */ new Map();
|
|
7117
7112
|
b.forEach((G) => {
|
|
7118
|
-
const
|
|
7119
|
-
|
|
7113
|
+
const oe = G.getAttribute("data-key");
|
|
7114
|
+
oe && P.set(oe, G);
|
|
7120
7115
|
});
|
|
7121
|
-
const
|
|
7116
|
+
const I = [];
|
|
7122
7117
|
u.value.forEach((G) => {
|
|
7123
|
-
const
|
|
7124
|
-
|
|
7125
|
-
}),
|
|
7118
|
+
const oe = P.get(G);
|
|
7119
|
+
oe && F(G) && I.push(oe);
|
|
7120
|
+
}), I.forEach((G) => {
|
|
7126
7121
|
x.selection.select(G, !0);
|
|
7127
7122
|
});
|
|
7128
7123
|
}
|
|
7129
7124
|
}, F = (x) => {
|
|
7130
7125
|
const b = D.value.get(x);
|
|
7131
7126
|
if (!b) return !1;
|
|
7132
|
-
const P = m.selectionFilterType,
|
|
7133
|
-
return P === "files" && b.type === "dir" || P === "dirs" && b.type === "file" ? !1 :
|
|
7127
|
+
const P = m.selectionFilterType, I = m.selectionFilterMimeIncludes;
|
|
7128
|
+
return P === "files" && b.type === "dir" || P === "dirs" && b.type === "file" ? !1 : I && Array.isArray(I) && I.length > 0 ? b.type === "dir" ? !0 : b.mime_type ? I.some((G) => b.mime_type?.startsWith(G)) : !1 : !0;
|
|
7134
7129
|
}, A = (x) => {
|
|
7135
7130
|
if (m.selectionMode === "single")
|
|
7136
7131
|
return !1;
|
|
@@ -7142,20 +7137,20 @@ function qu(o) {
|
|
|
7142
7137
|
);
|
|
7143
7138
|
if (P && (P.dataset.theme = m.theme.current), m.selectionMode === "single")
|
|
7144
7139
|
return;
|
|
7145
|
-
const
|
|
7146
|
-
|
|
7140
|
+
const I = x;
|
|
7141
|
+
I && "type" in I && I.type === "touchend" && I.preventDefault();
|
|
7147
7142
|
const G = x;
|
|
7148
7143
|
!G?.ctrlKey && !G?.metaKey && (w.clearSelection(), b.clearSelection(!0, !0)), S.value.clear();
|
|
7149
7144
|
}, R = (x) => {
|
|
7150
7145
|
if (m.selectionMode === "single")
|
|
7151
7146
|
return;
|
|
7152
7147
|
const b = f(x.store.changed.added), P = f(x.store.changed.removed);
|
|
7153
|
-
h.value = !1, p.value = !0, b.forEach((
|
|
7154
|
-
u.value && !u.value.has(
|
|
7155
|
-
}), P.forEach((
|
|
7156
|
-
document.querySelector(`[data-key="${
|
|
7148
|
+
h.value = !1, p.value = !0, b.forEach((I) => {
|
|
7149
|
+
u.value && !u.value.has(I) && F(I) && (S.value.add(I), w.select(I, m.selectionMode || "multiple"));
|
|
7150
|
+
}), P.forEach((I) => {
|
|
7151
|
+
document.querySelector(`[data-key="${I}"]`) && D.value.has(I) && S.value.delete(I), w.deselect(I);
|
|
7157
7152
|
}), x.selection.resolveSelectables(), C(x);
|
|
7158
|
-
},
|
|
7153
|
+
}, ne = () => {
|
|
7159
7154
|
S.value.clear();
|
|
7160
7155
|
}, U = (x) => {
|
|
7161
7156
|
if (!x.event)
|
|
@@ -7163,24 +7158,24 @@ function qu(o) {
|
|
|
7163
7158
|
const b = document.querySelector(".scroller-" + _);
|
|
7164
7159
|
if (!b)
|
|
7165
7160
|
return;
|
|
7166
|
-
const P = b.getBoundingClientRect(),
|
|
7167
|
-
let
|
|
7161
|
+
const P = b.getBoundingClientRect(), I = P.left, G = P.top;
|
|
7162
|
+
let oe = b.scrollTop;
|
|
7168
7163
|
if (c?.value) {
|
|
7169
7164
|
const { viewport: Be } = c.value.elements();
|
|
7170
|
-
Be && (
|
|
7165
|
+
Be && (oe = Be.scrollTop);
|
|
7171
7166
|
}
|
|
7172
7167
|
const ie = l.value?.getAreaLocation();
|
|
7173
7168
|
if (!ie)
|
|
7174
7169
|
return;
|
|
7175
|
-
const _e = Math.min(ie.x1, ie.x2), Ke =
|
|
7176
|
-
let ce = Math.floor((_e -
|
|
7177
|
-
const be = _e -
|
|
7170
|
+
const _e = Math.min(ie.x1, ie.x2), Ke = oe + Math.min(ie.y1, ie.y2), je = Math.max(ie.x1, ie.x2), qe = oe + Math.max(ie.y1, ie.y2), K = 4;
|
|
7171
|
+
let ce = Math.floor((_e - I - K) / r), ue = Math.floor((je - I - K) / r);
|
|
7172
|
+
const be = _e - I - K - ce * r, Qe = je - I - K - ue * r;
|
|
7178
7173
|
be > r - K && (ce = ce + 1), Qe < K && (ue = ue - 1);
|
|
7179
7174
|
const Wt = Math.max(0, ce), Yt = Math.min(e.value - 1, ue);
|
|
7180
7175
|
let Xe = Math.floor((Ke - G - K) / d.value), V = Math.floor((qe - G - K) / d.value);
|
|
7181
|
-
const H = Ke - G - K - Xe * d.value, Q = qe - G - K - V * d.value,
|
|
7176
|
+
const H = Ke - G - K - Xe * d.value, Q = qe - G - K - V * d.value, te = Math.floor((t.value - K) / d.value);
|
|
7182
7177
|
H > d.value - K && (Xe = Xe + 1), Q < K && (V = V - 1);
|
|
7183
|
-
const Ie = Math.max(0, Xe), De = Math.min(V,
|
|
7178
|
+
const Ie = Math.max(0, Xe), De = Math.min(V, te), Ee = n(
|
|
7184
7179
|
$.value,
|
|
7185
7180
|
Ie,
|
|
7186
7181
|
De,
|
|
@@ -7241,7 +7236,7 @@ function qu(o) {
|
|
|
7241
7236
|
F(b) || w.deselect(b);
|
|
7242
7237
|
}), q(), E());
|
|
7243
7238
|
}, z = (x) => {
|
|
7244
|
-
h.value && (l.value?.clearSelection(),
|
|
7239
|
+
h.value && (l.value?.clearSelection(), ne(), h.value = !1);
|
|
7245
7240
|
const b = x;
|
|
7246
7241
|
!S.value.size && !h.value && !b?.ctrlKey && !b?.metaKey && (w.clearSelection(), l.value?.clearSelection());
|
|
7247
7242
|
};
|
|
@@ -7423,7 +7418,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7423
7418
|
containerPadding: 0,
|
|
7424
7419
|
lockItemsPerRow: N(() => m.value.view === "list")
|
|
7425
7420
|
}
|
|
7426
|
-
), { osInstance: Y } = Qu(d, C), { explorerId: R, isDragging:
|
|
7421
|
+
), { osInstance: Y } = Qu(d, C), { explorerId: R, isDragging: ne, initializeSelectionArea: U, updateSelectionArea: ee, handleContentClick: E } = qu({
|
|
7427
7422
|
itemsPerRow: h,
|
|
7428
7423
|
totalHeight: f,
|
|
7429
7424
|
getItemsInRange: A,
|
|
@@ -7435,7 +7430,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7435
7430
|
}), q = M(null), j = (K) => {
|
|
7436
7431
|
if (!K || !q.value) return !1;
|
|
7437
7432
|
const ce = u.value?.has(q.value) ?? !1;
|
|
7438
|
-
return
|
|
7433
|
+
return ne.value && (ce ? u.value?.has(K) ?? !1 : K === q.value);
|
|
7439
7434
|
};
|
|
7440
7435
|
le(
|
|
7441
7436
|
() => _.get("view"),
|
|
@@ -7448,7 +7443,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7448
7443
|
});
|
|
7449
7444
|
const z = (K) => w.value?.[K];
|
|
7450
7445
|
Xu(d, t);
|
|
7451
|
-
const { handleItemClick: x, handleItemDblClick: b, handleItemContextMenu: P, handleContentContextMenu:
|
|
7446
|
+
const { handleItemClick: x, handleItemDblClick: b, handleItemContextMenu: P, handleContentContextMenu: I } = Yu(
|
|
7452
7447
|
t,
|
|
7453
7448
|
R,
|
|
7454
7449
|
w,
|
|
@@ -7482,7 +7477,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7482
7477
|
const G = (K) => {
|
|
7483
7478
|
if (!(t.features?.move ?? !1) || K.altKey || K.ctrlKey || K.metaKey)
|
|
7484
7479
|
return K.preventDefault(), !1;
|
|
7485
|
-
|
|
7480
|
+
ne.value = !0;
|
|
7486
7481
|
const ue = K.target?.closest(
|
|
7487
7482
|
".file-item-" + R
|
|
7488
7483
|
);
|
|
@@ -7491,13 +7486,13 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7491
7486
|
const be = u.value?.has(q.value) ? Array.from(u.value) : [q.value];
|
|
7492
7487
|
K.dataTransfer.setData("items", JSON.stringify(be)), c.setDraggedItem(q.value);
|
|
7493
7488
|
}
|
|
7494
|
-
},
|
|
7489
|
+
}, oe = () => {
|
|
7495
7490
|
q.value = null;
|
|
7496
7491
|
};
|
|
7497
7492
|
let ie = null, _e = null;
|
|
7498
7493
|
const Ke = (K) => {
|
|
7499
7494
|
K.target?.closest(".file-item-" + R) || (_e = K, ie && clearTimeout(ie), ie = setTimeout(() => {
|
|
7500
|
-
_e && (_e.cancelable && _e.preventDefault(), _e.stopPropagation(),
|
|
7495
|
+
_e && (_e.cancelable && _e.preventDefault(), _e.stopPropagation(), I(_e)), _e = null, ie = null;
|
|
7501
7496
|
}, 500));
|
|
7502
7497
|
}, je = (K) => {
|
|
7503
7498
|
ie && (clearTimeout(ie), ie = null), _e = null;
|
|
@@ -7510,13 +7505,13 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7510
7505
|
}
|
|
7511
7506
|
};
|
|
7512
7507
|
return (K, ce) => (v(), g("div", Ju, [
|
|
7513
|
-
s(m).view === "list" ? (v(), L(Hu, { key: 0 })) :
|
|
7508
|
+
s(m).view === "list" ? (v(), L(Hu, { key: 0 })) : T("", !0),
|
|
7514
7509
|
i("div", {
|
|
7515
7510
|
ref_key: "scrollContainer",
|
|
7516
7511
|
ref: d,
|
|
7517
7512
|
class: Z(["vuefinder__explorer__selector-area", "scroller-" + s(R)])
|
|
7518
7513
|
}, [
|
|
7519
|
-
s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div", Zu)) :
|
|
7514
|
+
s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div", Zu)) : T("", !0),
|
|
7520
7515
|
i("div", {
|
|
7521
7516
|
ref_key: "scrollContent",
|
|
7522
7517
|
ref: r,
|
|
@@ -7524,7 +7519,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7524
7519
|
style: Ve({ height: `${s(f)}px`, position: "relative", width: "100%" }),
|
|
7525
7520
|
onContextmenu: ce[0] || (ce[0] = ae(
|
|
7526
7521
|
//@ts-ignore
|
|
7527
|
-
(...ue) => s(
|
|
7522
|
+
(...ue) => s(I) && s(I)(...ue),
|
|
7528
7523
|
["self", "prevent"]
|
|
7529
7524
|
)),
|
|
7530
7525
|
onClick: ce[1] || (ce[1] = ae(
|
|
@@ -7562,7 +7557,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7562
7557
|
onDblclick: s(b),
|
|
7563
7558
|
onContextmenu: s(P),
|
|
7564
7559
|
onDragstart: G,
|
|
7565
|
-
onDragend:
|
|
7560
|
+
onDragend: oe
|
|
7566
7561
|
}, {
|
|
7567
7562
|
icon: se((be) => [
|
|
7568
7563
|
$e(K.$slots, "icon", Me({ ref_for: !0 }, be))
|
|
@@ -7583,7 +7578,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7583
7578
|
onDblclick: s(b),
|
|
7584
7579
|
onContextmenu: s(P),
|
|
7585
7580
|
onDragstart: G,
|
|
7586
|
-
onDragend:
|
|
7581
|
+
onDragend: oe
|
|
7587
7582
|
}, {
|
|
7588
7583
|
icon: se((be) => [
|
|
7589
7584
|
$e(K.$slots, "icon", Me({ ref_for: !0 }, be))
|
|
@@ -7789,7 +7784,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
|
|
|
7789
7784
|
i("div", cv, [
|
|
7790
7785
|
D.value === 0 ? (v(), g("span", uv, y($.value.length) + " " + y(s(t)("items")), 1)) : (v(), g("span", vv, [
|
|
7791
7786
|
de(y(D.value) + " " + y(s(t)("selected")) + " ", 1),
|
|
7792
|
-
w.value ? (v(), g("span", fv, y(s(e).filesize(w.value)), 1)) :
|
|
7787
|
+
w.value ? (v(), g("span", fv, y(s(e).filesize(w.value)), 1)) : T("", !0)
|
|
7793
7788
|
]))
|
|
7794
7789
|
])
|
|
7795
7790
|
]),
|
|
@@ -7860,8 +7855,8 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7860
7855
|
n.value ? (v(), L(s($t), {
|
|
7861
7856
|
key: 0,
|
|
7862
7857
|
class: "vuefinder__folder-loader-indicator--minus"
|
|
7863
|
-
})) :
|
|
7864
|
-
n.value ?
|
|
7858
|
+
})) : T("", !0),
|
|
7859
|
+
n.value ? T("", !0) : (v(), L(s(kt), {
|
|
7865
7860
|
key: 1,
|
|
7866
7861
|
class: "vuefinder__folder-loader-indicator--plus"
|
|
7867
7862
|
}))
|
|
@@ -7899,7 +7894,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7899
7894
|
ref: c,
|
|
7900
7895
|
class: "vuefinder__treesubfolderlist__container"
|
|
7901
7896
|
}, [
|
|
7902
|
-
m.value.length ?
|
|
7897
|
+
m.value.length ? T("", !0) : (v(), g("li", bv, [
|
|
7903
7898
|
i("div", kv, y(s(l)("No folders")), 1)
|
|
7904
7899
|
])),
|
|
7905
7900
|
(v(!0), g(ve, null, he(m.value, (h) => (v(), g("li", {
|
|
@@ -7966,7 +7961,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
7966
7961
|
class: "vuefinder__treesubfolderlist__load-more",
|
|
7967
7962
|
onClick: $
|
|
7968
7963
|
}, y(s(l)("load more")), 1)
|
|
7969
|
-
])) :
|
|
7964
|
+
])) : T("", !0)
|
|
7970
7965
|
], 512);
|
|
7971
7966
|
};
|
|
7972
7967
|
}
|
|
@@ -8041,8 +8036,8 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8041
8036
|
e.value ? (v(), L(s($t), {
|
|
8042
8037
|
key: 0,
|
|
8043
8038
|
class: "vuefinder__folder-indicator--minus"
|
|
8044
|
-
})) :
|
|
8045
|
-
e.value ?
|
|
8039
|
+
})) : T("", !0),
|
|
8040
|
+
e.value ? T("", !0) : (v(), L(s(kt), {
|
|
8046
8041
|
key: 1,
|
|
8047
8042
|
class: "vuefinder__folder-indicator--plus"
|
|
8048
8043
|
}))
|
|
@@ -8137,11 +8132,11 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8137
8132
|
s(u).path !== F.path ? (v(), L(s(Oe), {
|
|
8138
8133
|
key: 0,
|
|
8139
8134
|
class: "vuefinder__treeview__folder-icon vuefinder__item-icon__folder"
|
|
8140
|
-
})) :
|
|
8135
|
+
})) : T("", !0),
|
|
8141
8136
|
s(u).path === F.path ? (v(), L(s(zt), {
|
|
8142
8137
|
key: 1,
|
|
8143
8138
|
class: "vuefinder__item-icon__folder--open vuefinder__treeview__open-folder-icon"
|
|
8144
|
-
})) :
|
|
8139
|
+
})) : T("", !0),
|
|
8145
8140
|
i("div", {
|
|
8146
8141
|
title: F.path,
|
|
8147
8142
|
class: Z(["vuefinder__treeview__folder-name", {
|
|
@@ -8156,11 +8151,11 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
|
|
|
8156
8151
|
O(s(gv), { class: "vuefinder__treeview__remove-icon" })
|
|
8157
8152
|
], 8, Rv)
|
|
8158
8153
|
]))), 128)),
|
|
8159
|
-
s(c).pinnedFolders.length ?
|
|
8154
|
+
s(c).pinnedFolders.length ? T("", !0) : (v(), g("li", Nv, [
|
|
8160
8155
|
i("div", Uv, y(s(n)("No folders pinned")), 1)
|
|
8161
8156
|
]))
|
|
8162
|
-
])) :
|
|
8163
|
-
])) :
|
|
8157
|
+
])) : T("", !0)
|
|
8158
|
+
])) : T("", !0),
|
|
8164
8159
|
(v(!0), g(ve, null, he(w.value, (F) => (v(), g("div", {
|
|
8165
8160
|
key: F,
|
|
8166
8161
|
class: "vuefinder__treeview__storage"
|
|
@@ -8525,9 +8520,9 @@ const Rn = [
|
|
|
8525
8520
|
}, [
|
|
8526
8521
|
s(_) ? (v(), g("div", qv, [
|
|
8527
8522
|
i("div", Gv, y(s(a).i18n.t("Drag and drop the files/folders to here.")), 1)
|
|
8528
|
-
])) :
|
|
8529
|
-
s(c).showMenuBar ? (v(), L($d, { key: 1 })) :
|
|
8530
|
-
s(c).showToolbar ? (v(), L(Sc, { key: 2 })) :
|
|
8523
|
+
])) : T("", !0),
|
|
8524
|
+
s(c).showMenuBar ? (v(), L($d, { key: 1 })) : T("", !0),
|
|
8525
|
+
s(c).showToolbar ? (v(), L(Sc, { key: 2 })) : T("", !0),
|
|
8531
8526
|
O(fu),
|
|
8532
8527
|
i("div", Wv, [
|
|
8533
8528
|
O(jv),
|
|
@@ -8551,7 +8546,7 @@ const Rn = [
|
|
|
8551
8546
|
(v(), L(gt, { to: "body" }, [
|
|
8552
8547
|
O(qn, { name: "fade" }, {
|
|
8553
8548
|
default: se(() => [
|
|
8554
|
-
s(a).modal.visible ? (v(), L(cn(s(a).modal.type), { key: 0 })) :
|
|
8549
|
+
s(a).modal.visible ? (v(), L(cn(s(a).modal.type), { key: 0 })) : T("", !0)
|
|
8555
8550
|
]),
|
|
8556
8551
|
_: 1
|
|
8557
8552
|
})
|