vuefinder 1.0.7 → 1.0.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.js +463 -455
- package/dist/vuefinder.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as O, watch as gt, inject as B, openBlock as w, createElementBlock as $, createElementVNode as h, unref as k, normalizeClass as de, createTextVNode as le, toDisplayString as E, createCommentVNode as q, createVNode as we, TransitionGroup as Ai, withCtx as F, Fragment as ce, renderList as be, reactive as ft, onMounted as xe, onUpdated as Oi, withDirectives as ve, vShow as st, withModifiers as Pe, nextTick as vt, vModelSelect as cr, customRef as Pi, withKeys as Ye, isRef as Ii, vModelText as We, normalizeStyle as Mr, provide as lt, createBlock as G, resolveDynamicComponent as ji, renderSlot as Ct } from "vue";
|
|
2
2
|
import _t from "plupload";
|
|
3
3
|
const mt = (o, { method: e = "get", params: t = {}, json: a = !0 }) => {
|
|
4
4
|
const n = { method: e };
|
|
@@ -31,7 +31,7 @@ function Ni(o) {
|
|
|
31
31
|
}
|
|
32
32
|
function Mt(o) {
|
|
33
33
|
let e = localStorage.getItem(o + "_storage");
|
|
34
|
-
const t =
|
|
34
|
+
const t = O(JSON.parse(e));
|
|
35
35
|
gt(t, a);
|
|
36
36
|
function a() {
|
|
37
37
|
t.value === null || t.value === "" ? localStorage.removeItem(o + "_storage") : localStorage.setItem(o + "_storage", JSON.stringify(t.value));
|
|
@@ -44,7 +44,7 @@ function Mt(o) {
|
|
|
44
44
|
}
|
|
45
45
|
return { getStore: (f, g = null) => t.value === null || t.value === "" ? g : t.value.hasOwnProperty(f) ? t.value[f] : g, setStore: n, clearStore: i };
|
|
46
46
|
}
|
|
47
|
-
const ur =
|
|
47
|
+
const ur = O("");
|
|
48
48
|
function Se() {
|
|
49
49
|
function o(e) {
|
|
50
50
|
ur.value = e;
|
|
@@ -166,7 +166,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
166
166
|
data: Object
|
|
167
167
|
},
|
|
168
168
|
setup(o) {
|
|
169
|
-
const e = B("emitter"), { getStore: t, setStore: a } = B("storage"), { t: n } = B("i18n"), i =
|
|
169
|
+
const e = B("emitter"), { getStore: t, setStore: a } = B("storage"), { t: n } = B("i18n"), i = O(t("viewport", "grid")), s = O([]), f = O(t("full-screen", !1)), g = O("");
|
|
170
170
|
e.on("vf-search-query", ({ newQuery: d }) => {
|
|
171
171
|
g.value = d;
|
|
172
172
|
});
|
|
@@ -177,13 +177,13 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
177
177
|
s.value = d;
|
|
178
178
|
}), e.on("vf-view-toggle", (d) => {
|
|
179
179
|
a("viewport", d), i.value = d;
|
|
180
|
-
}), (d, p) => (w(),
|
|
181
|
-
g.value.length ? (w(),
|
|
180
|
+
}), (d, p) => (w(), $("div", Li, [
|
|
181
|
+
g.value.length ? (w(), $("div", na, [
|
|
182
182
|
h("div", sa, [
|
|
183
|
-
le(
|
|
184
|
-
h("span", la,
|
|
183
|
+
le(E(k(n)("Search results for")) + " ", 1),
|
|
184
|
+
h("span", la, E(g.value), 1)
|
|
185
185
|
])
|
|
186
|
-
])) : (w(),
|
|
186
|
+
])) : (w(), $("div", Vi, [
|
|
187
187
|
h("div", {
|
|
188
188
|
class: "mx-1.5",
|
|
189
189
|
"aria-label": k(n)("New Folder"),
|
|
@@ -205,7 +205,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
205
205
|
role: "tooltip",
|
|
206
206
|
onClick: p[2] || (p[2] = (b) => s.value.length != 1 || k(e).emit("vf-modal-show", { type: "rename", items: s.value }))
|
|
207
207
|
}, [
|
|
208
|
-
(w(),
|
|
208
|
+
(w(), $("svg", {
|
|
209
209
|
xmlns: "http://www.w3.org/2000/svg",
|
|
210
210
|
class: de([s.value.length == 1 ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
211
211
|
fill: "none",
|
|
@@ -221,7 +221,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
221
221
|
role: "tooltip",
|
|
222
222
|
onClick: p[3] || (p[3] = (b) => !s.value.length || k(e).emit("vf-modal-show", { type: "delete", items: s.value }))
|
|
223
223
|
}, [
|
|
224
|
-
(w(),
|
|
224
|
+
(w(), $("svg", {
|
|
225
225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
226
226
|
class: de([s.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
227
227
|
fill: "none",
|
|
@@ -237,7 +237,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
237
237
|
role: "tooltip",
|
|
238
238
|
onClick: p[4] || (p[4] = (b) => k(e).emit("vf-modal-show", { type: "upload", items: s.value }))
|
|
239
239
|
}, Qi, 8, Ji),
|
|
240
|
-
s.value.length == 1 && s.value[0].mime_type == "application/zip" ? (w(),
|
|
240
|
+
s.value.length == 1 && s.value[0].mime_type == "application/zip" ? (w(), $("div", {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "mx-1.5",
|
|
243
243
|
"aria-label": k(n)("Unrchive"),
|
|
@@ -245,7 +245,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
245
245
|
role: "tooltip",
|
|
246
246
|
onClick: p[5] || (p[5] = (b) => !s.value.length || k(e).emit("vf-modal-show", { type: "unarchive", items: s.value }))
|
|
247
247
|
}, [
|
|
248
|
-
(w(),
|
|
248
|
+
(w(), $("svg", {
|
|
249
249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
250
250
|
class: de([s.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
251
251
|
fill: "none",
|
|
@@ -253,7 +253,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
253
253
|
stroke: "none",
|
|
254
254
|
"stroke-width": "1.5"
|
|
255
255
|
}, ra, 2))
|
|
256
|
-
], 8, ea)) : (w(),
|
|
256
|
+
], 8, ea)) : (w(), $("div", {
|
|
257
257
|
key: 1,
|
|
258
258
|
class: "mx-1.5",
|
|
259
259
|
"aria-label": k(n)("Archive"),
|
|
@@ -261,7 +261,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
261
261
|
role: "tooltip",
|
|
262
262
|
onClick: p[6] || (p[6] = (b) => !s.value.length || k(e).emit("vf-modal-show", { type: "archive", items: s.value }))
|
|
263
263
|
}, [
|
|
264
|
-
(w(),
|
|
264
|
+
(w(), $("svg", {
|
|
265
265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
266
266
|
class: de([s.value.length ? "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300" : "stroke-gray-200 dark:stroke-gray-700", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
267
267
|
fill: "none",
|
|
@@ -278,7 +278,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
278
278
|
"data-microtip-position": "bottom",
|
|
279
279
|
role: "tooltip"
|
|
280
280
|
}, [
|
|
281
|
-
(w(),
|
|
281
|
+
(w(), $("svg", {
|
|
282
282
|
onClick: p[7] || (p[7] = (b) => k(e).emit("vf-darkMode-toggle")),
|
|
283
283
|
viewBox: "0 0 24 24",
|
|
284
284
|
"stroke-width": "2",
|
|
@@ -294,8 +294,8 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
294
294
|
role: "tooltip",
|
|
295
295
|
onClick: m
|
|
296
296
|
}, [
|
|
297
|
-
(w(),
|
|
298
|
-
f.value ? (w(),
|
|
297
|
+
(w(), $("svg", ma, [
|
|
298
|
+
f.value ? (w(), $("path", pa)) : (w(), $("path", ga))
|
|
299
299
|
]))
|
|
300
300
|
], 8, fa),
|
|
301
301
|
h("div", {
|
|
@@ -305,7 +305,7 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
305
305
|
role: "tooltip",
|
|
306
306
|
onClick: p[8] || (p[8] = (b) => g.value.length || k(e).emit("vf-view-toggle", i.value == "list" ? "grid" : "list"))
|
|
307
307
|
}, [
|
|
308
|
-
(w(),
|
|
308
|
+
(w(), $("svg", {
|
|
309
309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
310
310
|
class: de([g.value.length ? "stroke-gray-200 dark:stroke-gray-700" : "cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300", "h-6 w-6 md:h-8 md:w-8 m-auto"]),
|
|
311
311
|
fill: "none",
|
|
@@ -313,8 +313,8 @@ const Li = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
313
313
|
stroke: "none",
|
|
314
314
|
"stroke-width": "1.5"
|
|
315
315
|
}, [
|
|
316
|
-
i.value == "grid" ? (w(),
|
|
317
|
-
i.value == "list" ? (w(),
|
|
316
|
+
i.value == "grid" ? (w(), $("path", ba)) : q("", !0),
|
|
317
|
+
i.value == "list" ? (w(), $("path", ya)) : q("", !0)
|
|
318
318
|
], 2))
|
|
319
319
|
], 8, va)
|
|
320
320
|
])
|
|
@@ -405,17 +405,17 @@ var _a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
405
405
|
return p() ? b = Reflect.construct : b = function(c, y, x) {
|
|
406
406
|
var S = [null];
|
|
407
407
|
S.push.apply(S, y);
|
|
408
|
-
var
|
|
409
|
-
return x && d(
|
|
408
|
+
var C = Function.bind.apply(c, S), A = new C();
|
|
409
|
+
return x && d(A, x.prototype), A;
|
|
410
410
|
}, b.apply(null, arguments);
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function I(u) {
|
|
413
413
|
return Function.toString.call(u).indexOf("[native code]") !== -1;
|
|
414
414
|
}
|
|
415
415
|
function _(u) {
|
|
416
416
|
var l = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
417
417
|
return _ = function(v) {
|
|
418
|
-
if (v === null || !
|
|
418
|
+
if (v === null || !I(v))
|
|
419
419
|
return v;
|
|
420
420
|
if (typeof v != "function")
|
|
421
421
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -437,13 +437,13 @@ var _a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
437
437
|
}), d(c, v);
|
|
438
438
|
}, _(u);
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function D(u) {
|
|
441
441
|
if (u === void 0)
|
|
442
442
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
443
443
|
return u;
|
|
444
444
|
}
|
|
445
445
|
function j(u, l) {
|
|
446
|
-
return l && (typeof l == "object" || typeof l == "function") ? l :
|
|
446
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : D(u);
|
|
447
447
|
}
|
|
448
448
|
function V(u) {
|
|
449
449
|
var l = p();
|
|
@@ -462,22 +462,22 @@ var _a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
462
462
|
;
|
|
463
463
|
return u;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
return typeof Reflect < "u" && Reflect.get ?
|
|
465
|
+
function P(u, l, r) {
|
|
466
|
+
return typeof Reflect < "u" && Reflect.get ? P = Reflect.get : P = function(c, y, x) {
|
|
467
467
|
var S = R(c, y);
|
|
468
468
|
if (!!S) {
|
|
469
|
-
var
|
|
470
|
-
return
|
|
469
|
+
var C = Object.getOwnPropertyDescriptor(S, y);
|
|
470
|
+
return C.get ? C.get.call(x) : C.value;
|
|
471
471
|
}
|
|
472
|
-
},
|
|
472
|
+
}, P(u, l, r || u);
|
|
473
473
|
}
|
|
474
474
|
function ne(u, l) {
|
|
475
475
|
return X(u) || ue(u, l) || me(u, l) || N();
|
|
476
476
|
}
|
|
477
477
|
function J(u) {
|
|
478
|
-
return
|
|
478
|
+
return M(u) || Z(u) || me(u) || H();
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function M(u) {
|
|
481
481
|
if (Array.isArray(u))
|
|
482
482
|
return L(u);
|
|
483
483
|
}
|
|
@@ -495,8 +495,8 @@ var _a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
495
495
|
try {
|
|
496
496
|
for (var x = u[Symbol.iterator](), S; !(v = (S = x.next()).done) && (r.push(S.value), !(l && r.length === l)); v = !0)
|
|
497
497
|
;
|
|
498
|
-
} catch (
|
|
499
|
-
c = !0, y =
|
|
498
|
+
} catch (C) {
|
|
499
|
+
c = !0, y = C;
|
|
500
500
|
} finally {
|
|
501
501
|
try {
|
|
502
502
|
!v && x.return != null && x.return();
|
|
@@ -534,7 +534,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
534
534
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
535
535
|
}
|
|
536
536
|
var Y = function(l, r, v) {
|
|
537
|
-
var c = l.x, y = l.y, x = v.x, S = v.y,
|
|
537
|
+
var c = l.x, y = l.y, x = v.x, S = v.y, C = {
|
|
538
538
|
"+": {
|
|
539
539
|
x: c + x,
|
|
540
540
|
y: y + S
|
|
@@ -552,7 +552,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
552
552
|
y: y / S
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
|
-
return
|
|
555
|
+
return C[r];
|
|
556
556
|
}, U = function(l) {
|
|
557
557
|
return {
|
|
558
558
|
x: l.left,
|
|
@@ -661,8 +661,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
661
661
|
} else {
|
|
662
662
|
var S = v.transform.trim().match(/matrix\((.*?)\)/);
|
|
663
663
|
if (S && S.length) {
|
|
664
|
-
var
|
|
665
|
-
r.x = parseInt(
|
|
664
|
+
var C, A = (C = S[1]) === null || C === void 0 ? void 0 : C.split(",");
|
|
665
|
+
r.x = parseInt(A[4]) || 0, r.y = parseInt(A[5]) || 0;
|
|
666
666
|
}
|
|
667
667
|
return r;
|
|
668
668
|
}
|
|
@@ -677,8 +677,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
677
677
|
if (c) {
|
|
678
678
|
var y, x = (y = c[0]) === null || y === void 0 ? void 0 : y.split("(");
|
|
679
679
|
if (x) {
|
|
680
|
-
var S,
|
|
681
|
-
v.x = parseInt(
|
|
680
|
+
var S, C = (S = x[1]) === null || S === void 0 ? void 0 : S.split(",");
|
|
681
|
+
v.x = parseInt(C[0]) || 0, v.y = parseInt(C[1]) || 0;
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
return !v.x && !v.x ? Kt(l) : v;
|
|
@@ -716,11 +716,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
716
716
|
var l = u.computedStyle, r = u.node, v = l.position, c = v === "absolute" || v === "relative" || v === "fixed";
|
|
717
717
|
!(r instanceof HTMLDocument) && !c && (r.style.position = "relative");
|
|
718
718
|
}, Gr = function(u) {
|
|
719
|
-
var l = u.shiftKey, r = u.keyboardDragSpeed, v = u.zoom, c = u.key, y = u.dragKeys, x = u.scrollDiff, S = u.canScroll,
|
|
719
|
+
var l = u.shiftKey, r = u.keyboardDragSpeed, v = u.zoom, c = u.key, y = u.dragKeys, x = u.scrollDiff, S = u.canScroll, C = u.scrollCallback, A = {
|
|
720
720
|
x: 0,
|
|
721
721
|
y: 0
|
|
722
722
|
}, T = l ? r * 4 * v : r * v;
|
|
723
|
-
return y.left.includes(c) && (
|
|
723
|
+
return y.left.includes(c) && (A.x = x.x || -T, !l && !x.x && S && C(["left"], r)), y.right.includes(c) && (A.x = x.x || T, !l && !x.x && S && C(["right"], r)), y.up.includes(c) && (A.y = x.y || -T, !l && !x.y && S && C(["top"], r)), y.down.includes(c) && (A.y = x.y || T, !l && !x.y && S && C(["bottom"], r)), A;
|
|
724
724
|
}, Jr = function(u) {
|
|
725
725
|
var l = u.element, r = u.force, v = u.multiSelectionToggle, c = u.SelectedSet, y = u.hoverClassName;
|
|
726
726
|
l.classList.contains(y) && !r || (c.has(l) ? v && c.delete(l) : c.add(l), l.classList.add(y));
|
|
@@ -735,13 +735,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
735
735
|
}, Wt = function(u) {
|
|
736
736
|
var l = u.element, r = u.posDirection, v = u.containerRect, c = u.useTransform, y = Fr(l, c), x = Y(y, "+", r);
|
|
737
737
|
qe(l, x, c);
|
|
738
|
-
var S = l.getBoundingClientRect(),
|
|
738
|
+
var S = l.getBoundingClientRect(), C = Ut({
|
|
739
739
|
elementRect: S,
|
|
740
740
|
containerRect: v
|
|
741
741
|
});
|
|
742
742
|
qr({
|
|
743
743
|
element: l,
|
|
744
|
-
edges:
|
|
744
|
+
edges: C,
|
|
745
745
|
elementRect: S,
|
|
746
746
|
containerRect: v,
|
|
747
747
|
elementPos: x,
|
|
@@ -751,8 +751,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
751
751
|
window.removeEventListener("resize", l), window.removeEventListener("scroll", l), u.disconnect();
|
|
752
752
|
}, ei = function(u, l, r) {
|
|
753
753
|
if (!!l.length) {
|
|
754
|
-
var v = document && document.documentElement && document.documentElement.scrollTop && document.documentElement, c = u instanceof HTMLDocument ? v || document.body : u, y = l.includes("top") && c.scrollTop > 0, x = l.includes("bottom") && c.scrollTop < c.scrollHeight, S = l.includes("left") && c.scrollLeft > 0,
|
|
755
|
-
y && (c.scrollTop -= 1 * r), x && (c.scrollTop += 1 * r), S && (c.scrollLeft -= 1 * r),
|
|
754
|
+
var v = document && document.documentElement && document.documentElement.scrollTop && document.documentElement, c = u instanceof HTMLDocument ? v || document.body : u, y = l.includes("top") && c.scrollTop > 0, x = l.includes("bottom") && c.scrollTop < c.scrollHeight, S = l.includes("left") && c.scrollLeft > 0, C = l.includes("right") && c.scrollLeft < c.scrollWidth;
|
|
755
|
+
y && (c.scrollTop -= 1 * r), x && (c.scrollTop += 1 * r), S && (c.scrollLeft -= 1 * r), C && (c.scrollLeft += 1 * r);
|
|
756
756
|
}
|
|
757
757
|
}, qe = function(u, l, r) {
|
|
758
758
|
if (r) {
|
|
@@ -785,7 +785,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
785
785
|
name: "callback"
|
|
786
786
|
}]
|
|
787
787
|
}, x = function() {
|
|
788
|
-
var T = ne(
|
|
788
|
+
var T = ne(C[S], 2), z = T[0], K = T[1];
|
|
789
789
|
["pre", !1].forEach(function(re) {
|
|
790
790
|
return l(re ? "".concat(z, ":").concat(re) : z, function(pe) {
|
|
791
791
|
return K.forEach(function(ae) {
|
|
@@ -796,7 +796,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
796
796
|
});
|
|
797
797
|
});
|
|
798
798
|
});
|
|
799
|
-
}, S = 0,
|
|
799
|
+
}, S = 0, C = Object.entries(y); S < C.length; S++)
|
|
800
800
|
x();
|
|
801
801
|
}, Ve = function(u) {
|
|
802
802
|
return u ? !Array.isArray(u) && (u instanceof HTMLElement || u instanceof SVGElement) ? [u] : J(u) : [];
|
|
@@ -823,11 +823,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
823
823
|
}), i(this, "stop", function() {
|
|
824
824
|
Qr(r._modificationObserver, r._modificationCallback), r.reset();
|
|
825
825
|
}), i(this, "scroll", function(x, S) {
|
|
826
|
-
var
|
|
826
|
+
var C = {
|
|
827
827
|
scroll_directions: x,
|
|
828
828
|
scroll_multiplier: S
|
|
829
829
|
};
|
|
830
|
-
r.PubSub.publish("Area:scroll:pre",
|
|
830
|
+
r.PubSub.publish("Area:scroll:pre", C), ei(r._node, x, S), r.PubSub.publish("Area:scroll", C);
|
|
831
831
|
}), this._zoom = y, this.PubSub = c, this.setArea(v), this._modificationCallback = ot(function(x) {
|
|
832
832
|
r.PubSub.publish("Area:modified:pre", {
|
|
833
833
|
event: x,
|
|
@@ -877,7 +877,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
877
877
|
}]), u;
|
|
878
878
|
}(), ii = /* @__PURE__ */ function() {
|
|
879
879
|
function u(l) {
|
|
880
|
-
var r = this, v = l.DS, c = l.dragKeys, y = l.draggability, x = l.keyboardDrag, S = l.keyboardDragSpeed,
|
|
880
|
+
var r = this, v = l.DS, c = l.dragKeys, y = l.draggability, x = l.keyboardDrag, S = l.keyboardDragSpeed, C = l.useTransform, A = l.zoom;
|
|
881
881
|
t(this, u), i(this, "_useTransform", void 0), i(this, "_prevCursorPos", void 0), i(this, "_prevScrollPos", void 0), i(this, "_elements", []), i(this, "_draggability", void 0), i(this, "_dragKeys", void 0), i(this, "_dragKeysFlat", void 0), i(this, "_keyboardDrag", void 0), i(this, "_keyboardDragSpeed", void 0), i(this, "_zoom", void 0), i(this, "keyboardDrag", function(T) {
|
|
882
882
|
var z = T.event, K = T.key;
|
|
883
883
|
if (!(!r._keyboardDrag || !r._dragKeysFlat.includes(K) || !r.DS.SelectedSet.size || !r._draggability || r.DS.continue)) {
|
|
@@ -938,7 +938,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
938
938
|
r._elements.forEach(function(z) {
|
|
939
939
|
return z.style.zIndex = "".concat((parseInt(z.style.zIndex) || 0) + T ? 9999 : -9998);
|
|
940
940
|
});
|
|
941
|
-
}), this.DS = v, this._useTransform =
|
|
941
|
+
}), this.DS = v, this._useTransform = C, this._keyboardDragSpeed = S, this._keyboardDrag = x, this._zoom = A, this._draggability = y, this._dragKeys = {
|
|
942
942
|
up: c.up.map(function(T) {
|
|
943
943
|
return T.toLowerCase();
|
|
944
944
|
}),
|
|
@@ -981,63 +981,63 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
981
981
|
r.stop(), r._areaElement.addEventListener("mousedown", r.start), r._areaElement.addEventListener("touchstart", r.start, {
|
|
982
982
|
passive: !1
|
|
983
983
|
}), r.DS.publish("Interaction:init", {});
|
|
984
|
-
}), i(this, "start", function(
|
|
984
|
+
}), i(this, "start", function(C) {
|
|
985
985
|
return r.DS.publish("Interaction:start:pre", {
|
|
986
|
-
event:
|
|
986
|
+
event: C,
|
|
987
987
|
isDragging: r.isDragging
|
|
988
988
|
});
|
|
989
|
-
}), i(this, "_start", function(
|
|
990
|
-
|
|
991
|
-
event:
|
|
989
|
+
}), i(this, "_start", function(C) {
|
|
990
|
+
C.type === "touchstart" && C.preventDefault(), r._canInteract(C) && (r.isInteracting = !0, r.isDragging = r.isDragEvent(C), r.DS.publish("Interaction:start", {
|
|
991
|
+
event: C,
|
|
992
992
|
isDragging: r.isDragging
|
|
993
993
|
}), document.addEventListener("mouseup", r.reset), document.addEventListener("touchend", r.reset));
|
|
994
|
-
}), i(this, "isDragEvent", function(
|
|
995
|
-
var
|
|
996
|
-
return !r._draggability || r.DS.stores.KeyStore.isMultiSelectKeyPressed(
|
|
997
|
-
|
|
994
|
+
}), i(this, "isDragEvent", function(C) {
|
|
995
|
+
var A = C.target.closest(".".concat(r._selectableClass));
|
|
996
|
+
return !r._draggability || r.DS.stores.KeyStore.isMultiSelectKeyPressed(C) || !A ? !1 : (r._immediateDrag && (r.DS.SelectedSet.size ? r.DS.SelectedSet.has(A) || (r.DS.SelectedSet.clear(), r.DS.SelectedSet.add(
|
|
997
|
+
A
|
|
998
998
|
)) : r.DS.SelectedSet.add(
|
|
999
|
-
|
|
1000
|
-
)), !!r.DS.SelectedSet.has(
|
|
1001
|
-
}), i(this, "onClick", function(
|
|
1002
|
-
var
|
|
1003
|
-
if (!!r._canInteract(
|
|
999
|
+
A
|
|
1000
|
+
)), !!r.DS.SelectedSet.has(A));
|
|
1001
|
+
}), i(this, "onClick", function(C) {
|
|
1002
|
+
var A = C.event;
|
|
1003
|
+
if (!!r._canInteract(A) && !(A.detail > 0)) {
|
|
1004
1004
|
var T = r.DS, z = T.stores, K = z.PointerStore, re = z.KeyStore, pe = T.SelectableSet, ae = T.SelectedSet;
|
|
1005
|
-
K.start(
|
|
1006
|
-
var ze =
|
|
1007
|
-
!pe.has(ze) || (re.isMultiSelectKeyPressed(
|
|
1005
|
+
K.start(A);
|
|
1006
|
+
var ze = A.target;
|
|
1007
|
+
!pe.has(ze) || (re.isMultiSelectKeyPressed(A) || ae.clear(), ae.toggle(ze), r.reset());
|
|
1008
1008
|
}
|
|
1009
1009
|
}), i(this, "stop", function() {
|
|
1010
1010
|
r.isInteracting = !1, r.isDragging = !1, r._areaElement.removeEventListener("mousedown", r.start), r._areaElement.removeEventListener("touchstart", r.start, {
|
|
1011
1011
|
passive: !1
|
|
1012
1012
|
}), document.removeEventListener("mouseup", r.reset), document.removeEventListener("touchend", r.reset);
|
|
1013
|
-
}), i(this, "update", function(
|
|
1014
|
-
var
|
|
1013
|
+
}), i(this, "update", function(C) {
|
|
1014
|
+
var A = C.event, T = C.scroll_directions, z = C.scroll_multiplier;
|
|
1015
1015
|
r.isInteracting && r.DS.publish(["Interaction:update:pre", "Interaction:update"], {
|
|
1016
|
-
event:
|
|
1016
|
+
event: A,
|
|
1017
1017
|
scroll_directions: T,
|
|
1018
1018
|
scroll_multiplier: z,
|
|
1019
1019
|
isDragging: r.isDragging
|
|
1020
1020
|
});
|
|
1021
|
-
}), i(this, "reset", function(
|
|
1021
|
+
}), i(this, "reset", function(C) {
|
|
1022
1022
|
return r.DS.publish("Interaction:end:pre", {
|
|
1023
|
-
event:
|
|
1023
|
+
event: C,
|
|
1024
1024
|
isDragging: r.isDragging
|
|
1025
1025
|
});
|
|
1026
|
-
}), i(this, "_reset", function(
|
|
1027
|
-
var
|
|
1026
|
+
}), i(this, "_reset", function(C) {
|
|
1027
|
+
var A = r.isDragging;
|
|
1028
1028
|
r.stop(), r.init(), r.DS.publish("Interaction:end", {
|
|
1029
|
-
event:
|
|
1030
|
-
isDragging:
|
|
1029
|
+
event: C,
|
|
1030
|
+
isDragging: A
|
|
1031
1031
|
});
|
|
1032
|
-
}), this._areaElement = c, this._draggability = y, this._immediateDrag = x, this._selectableClass = S, this.DS = v, this.DS.subscribe("PointerStore:updated", this.update), this.DS.subscribe("Selectable:click", this.onClick), this.DS.subscribe("Selectable:pointer", function(
|
|
1033
|
-
var
|
|
1034
|
-
return r.start(
|
|
1035
|
-
}), this.DS.subscribe("Interaction:start:pre", function(
|
|
1036
|
-
var
|
|
1037
|
-
return r._start(
|
|
1038
|
-
}), this.DS.subscribe("Interaction:init:pre", this._init), this.DS.subscribe("Interaction:end:pre", function(
|
|
1039
|
-
var
|
|
1040
|
-
return r._reset(
|
|
1032
|
+
}), this._areaElement = c, this._draggability = y, this._immediateDrag = x, this._selectableClass = S, this.DS = v, this.DS.subscribe("PointerStore:updated", this.update), this.DS.subscribe("Selectable:click", this.onClick), this.DS.subscribe("Selectable:pointer", function(C) {
|
|
1033
|
+
var A = C.event;
|
|
1034
|
+
return r.start(A);
|
|
1035
|
+
}), this.DS.subscribe("Interaction:start:pre", function(C) {
|
|
1036
|
+
var A = C.event;
|
|
1037
|
+
return r._start(A);
|
|
1038
|
+
}), this.DS.subscribe("Interaction:init:pre", this._init), this.DS.subscribe("Interaction:end:pre", function(C) {
|
|
1039
|
+
var A = C.event;
|
|
1040
|
+
return r._reset(A);
|
|
1041
1041
|
}), this.DS.subscribe("Area:scroll", this.update);
|
|
1042
1042
|
}
|
|
1043
1043
|
return n(u, [{
|
|
@@ -1081,32 +1081,32 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1081
1081
|
g(r, u);
|
|
1082
1082
|
var l = V(r);
|
|
1083
1083
|
function r(v) {
|
|
1084
|
-
var c, y = v.elements, x = v.className, S = v.hoverClassName,
|
|
1085
|
-
return t(this, r), c = l.call(this), i(
|
|
1084
|
+
var c, y = v.elements, x = v.className, S = v.hoverClassName, C = v.draggability, A = v.useTransform, T = v.DS;
|
|
1085
|
+
return t(this, r), c = l.call(this), i(D(c), "_initElements", void 0), i(D(c), "_className", void 0), i(D(c), "_hoverClassName", void 0), i(D(c), "_useTransform", void 0), i(D(c), "_draggability", void 0), i(D(c), "init", function() {
|
|
1086
1086
|
return c._initElements.forEach(function(z) {
|
|
1087
1087
|
return c.add(z);
|
|
1088
1088
|
});
|
|
1089
|
-
}), i(
|
|
1089
|
+
}), i(D(c), "clear", function() {
|
|
1090
1090
|
return c.forEach(function(z) {
|
|
1091
1091
|
return c.delete(z);
|
|
1092
1092
|
});
|
|
1093
|
-
}), i(
|
|
1093
|
+
}), i(D(c), "_onClick", function(z) {
|
|
1094
1094
|
return c.DS.publish(["Selectable:click:pre", "Selectable:click"], {
|
|
1095
1095
|
event: z
|
|
1096
1096
|
});
|
|
1097
|
-
}), i(
|
|
1097
|
+
}), i(D(c), "_onPointer", function(z) {
|
|
1098
1098
|
return c.DS.publish(["Selectable:pointer:pre", "Selectable:pointer"], {
|
|
1099
1099
|
event: z
|
|
1100
1100
|
});
|
|
1101
|
-
}), i(
|
|
1101
|
+
}), i(D(c), "addAll", function(z) {
|
|
1102
1102
|
return z.forEach(function(K) {
|
|
1103
1103
|
return c.add(K);
|
|
1104
1104
|
});
|
|
1105
|
-
}), i(
|
|
1105
|
+
}), i(D(c), "deleteAll", function(z) {
|
|
1106
1106
|
return z.forEach(function(K) {
|
|
1107
1107
|
return c.delete(K);
|
|
1108
1108
|
});
|
|
1109
|
-
}), c.DS = T, c._initElements = Ve(y), c._className = x, c._hoverClassName = S, c._useTransform =
|
|
1109
|
+
}), c.DS = T, c._initElements = Ve(y), c._className = x, c._hoverClassName = S, c._useTransform = A, c._draggability = C, c.DS.subscribe("Interaction:init", c.init), c;
|
|
1110
1110
|
}
|
|
1111
1111
|
return n(r, [{
|
|
1112
1112
|
key: "add",
|
|
@@ -1116,14 +1116,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1116
1116
|
}), this._draggability && !this._useTransform && Yt({
|
|
1117
1117
|
computedStyle: window.getComputedStyle(c),
|
|
1118
1118
|
node: c
|
|
1119
|
-
}),
|
|
1119
|
+
}), P(m(r.prototype), "add", this).call(this, c);
|
|
1120
1120
|
}
|
|
1121
1121
|
}, {
|
|
1122
1122
|
key: "delete",
|
|
1123
1123
|
value: function(c) {
|
|
1124
1124
|
return c.classList.remove(this._className), c.classList.remove(this._hoverClassName), c.removeEventListener("click", this._onClick), c.removeEventListener("mousedown", this._onPointer), c.removeEventListener("touchstart", this._onPointer, {
|
|
1125
1125
|
passive: !1
|
|
1126
|
-
}),
|
|
1126
|
+
}), P(m(r.prototype), "delete", this).call(this, c);
|
|
1127
1127
|
}
|
|
1128
1128
|
}, {
|
|
1129
1129
|
key: "elements",
|
|
@@ -1136,41 +1136,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1136
1136
|
var l = V(r);
|
|
1137
1137
|
function r(v) {
|
|
1138
1138
|
var c, y = v.className, x = v.DS;
|
|
1139
|
-
return t(this, r), c = l.call(this), i(
|
|
1139
|
+
return t(this, r), c = l.call(this), i(D(c), "_className", void 0), i(D(c), "clear", function() {
|
|
1140
1140
|
return c.forEach(function(S) {
|
|
1141
1141
|
return c.delete(S);
|
|
1142
1142
|
});
|
|
1143
|
-
}), i(
|
|
1144
|
-
return S.forEach(function(
|
|
1145
|
-
return c.add(
|
|
1143
|
+
}), i(D(c), "addAll", function(S) {
|
|
1144
|
+
return S.forEach(function(C) {
|
|
1145
|
+
return c.add(C);
|
|
1146
1146
|
});
|
|
1147
|
-
}), i(
|
|
1148
|
-
return S.forEach(function(
|
|
1149
|
-
return c.delete(
|
|
1147
|
+
}), i(D(c), "deleteAll", function(S) {
|
|
1148
|
+
return S.forEach(function(C) {
|
|
1149
|
+
return c.delete(C);
|
|
1150
1150
|
});
|
|
1151
1151
|
}), c.DS = x, c._className = y, c;
|
|
1152
1152
|
}
|
|
1153
1153
|
return n(r, [{
|
|
1154
1154
|
key: "add",
|
|
1155
1155
|
value: function(c) {
|
|
1156
|
-
if (!
|
|
1156
|
+
if (!P(m(r.prototype), "has", this).call(this, c)) {
|
|
1157
1157
|
var y = {
|
|
1158
1158
|
items: this.elements,
|
|
1159
1159
|
item: c
|
|
1160
1160
|
};
|
|
1161
|
-
return this.DS.publish("Selected:added:pre", y),
|
|
1161
|
+
return this.DS.publish("Selected:added:pre", y), P(m(r.prototype), "add", this).call(this, c), c.classList.add(this._className), c.style.zIndex = "".concat((parseInt(c.style.zIndex) || 0) + 1), this.DS.publish("Selected:added", y), this;
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
}, {
|
|
1165
1165
|
key: "delete",
|
|
1166
1166
|
value: function(c) {
|
|
1167
|
-
if (!!
|
|
1167
|
+
if (!!P(m(r.prototype), "has", this).call(this, c)) {
|
|
1168
1168
|
var y = {
|
|
1169
1169
|
items: this.elements,
|
|
1170
1170
|
item: c
|
|
1171
1171
|
};
|
|
1172
1172
|
this.DS.publish("Selected:removed:pre", y);
|
|
1173
|
-
var x =
|
|
1173
|
+
var x = P(m(r.prototype), "delete", this).call(this, c);
|
|
1174
1174
|
return c.classList.remove(this._className), c.style.zIndex = "".concat((parseInt(c.style.zIndex) || 0) - 1), this.DS.publish("Selected:removed", y), x;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
@@ -1189,13 +1189,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1189
1189
|
function u(l) {
|
|
1190
1190
|
var r = this, v = l.DS, c = l.hoverClassName, y = l.multiSelectToggling;
|
|
1191
1191
|
t(this, u), i(this, "_prevSelectedSet", void 0), i(this, "_hoverClassName", void 0), i(this, "_multiSelectToggling", void 0), i(this, "start", function(x) {
|
|
1192
|
-
var S = x.event,
|
|
1193
|
-
|
|
1192
|
+
var S = x.event, C = x.isDragging;
|
|
1193
|
+
C || (r._storePrevious(S), r._handleInsideSelection(!0, S));
|
|
1194
1194
|
}), i(this, "update", function(x) {
|
|
1195
1195
|
var S = x.isDragging;
|
|
1196
1196
|
S || r.DS.continue || r._handleInsideSelection();
|
|
1197
1197
|
}), i(this, "_handleInsideSelection", function(x, S) {
|
|
1198
|
-
for (var
|
|
1198
|
+
for (var C = r.DS, A = C.SelectableSet, T = C.SelectorArea, z = C.Selector, K = A.elements.map(function(Me) {
|
|
1199
1199
|
return [Me, Me.getBoundingClientRect()];
|
|
1200
1200
|
}), re = [], pe = [], ae = 0, ze = K.length; ae < ze; ae++)
|
|
1201
1201
|
!T.isInside(K[ae][0], K[ae][1]) || (wt(K[ae][1], z.rect) ? re.push(K[ae][0]) : pe.push(K[ae][0]));
|
|
@@ -1230,17 +1230,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1230
1230
|
function u(l) {
|
|
1231
1231
|
var r = this, v = l.DS, c = l.selector, y = l.selectorClass, x = l.customStyles;
|
|
1232
1232
|
t(this, u), i(this, "_rect", void 0), i(this, "start", function(S) {
|
|
1233
|
-
var
|
|
1234
|
-
if (!
|
|
1235
|
-
var
|
|
1233
|
+
var C = S.isDragging;
|
|
1234
|
+
if (!C) {
|
|
1235
|
+
var A = r.DS.stores.PointerStore, T = A.initialValArea;
|
|
1236
1236
|
Xt(r.HTMLNode, ie(T, 1)), r.HTMLNode.style.display = "block", r._rect = null;
|
|
1237
1237
|
}
|
|
1238
1238
|
}), i(this, "stop", function() {
|
|
1239
1239
|
r.HTMLNode.style.width = "0", r.HTMLNode.style.height = "0", r.HTMLNode.style.display = "none";
|
|
1240
1240
|
}), i(this, "update", function(S) {
|
|
1241
|
-
var
|
|
1242
|
-
if (!(
|
|
1243
|
-
var
|
|
1241
|
+
var C = S.isDragging;
|
|
1242
|
+
if (!(C || r.DS.continue)) {
|
|
1243
|
+
var A = r.DS.stores, T = A.ScrollStore, z = A.PointerStore, K = Yr({
|
|
1244
1244
|
scrollAmount: T.scrollAmount,
|
|
1245
1245
|
initialPointerPos: z.initialValArea,
|
|
1246
1246
|
pointerPos: z.currentValArea
|
|
@@ -1261,12 +1261,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1261
1261
|
t(this, u), i(this, "_autoScrollSpeed", void 0), i(this, "_scrollInterval", void 0), i(this, "_rect", void 0), i(this, "currentEdges", []), i(this, "_overflowTolerance", void 0), i(this, "start", function() {
|
|
1262
1262
|
return r.applyElements("append");
|
|
1263
1263
|
}), i(this, "applyElements", function() {
|
|
1264
|
-
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "append",
|
|
1265
|
-
r.HTMLNode[
|
|
1264
|
+
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "append", C = document.body ? "body" : "documentElement", A = "".concat(S, "Child");
|
|
1265
|
+
r.HTMLNode[A](r.DS.Selector.HTMLNode), document[C][A](r.HTMLNode);
|
|
1266
1266
|
}), i(this, "updatePos", function() {
|
|
1267
1267
|
r._rect = null;
|
|
1268
|
-
var S = r.DS.Area.rect,
|
|
1269
|
-
|
|
1268
|
+
var S = r.DS.Area.rect, C = r.DS.Area.computedBorder, A = r.HTMLNode.style, T = "".concat(S.top + C.top, "px"), z = "".concat(S.left + C.left, "px"), K = "".concat(S.width, "px"), re = "".concat(S.height, "px");
|
|
1269
|
+
A.top !== T && (A.top = T), A.left !== z && (A.left = z), A.width !== K && (A.width = K), A.height !== re && (A.height = re);
|
|
1270
1270
|
}), i(this, "stop", function(S) {
|
|
1271
1271
|
r.stopAutoScroll(), S && r.applyElements("remove");
|
|
1272
1272
|
}), i(this, "startAutoScroll", function() {
|
|
@@ -1275,17 +1275,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1275
1275
|
}, 16);
|
|
1276
1276
|
}), i(this, "handleAutoScroll", function() {
|
|
1277
1277
|
if (!r.DS.continue) {
|
|
1278
|
-
var S = r.DS,
|
|
1278
|
+
var S = r.DS, C = S.stores.PointerStore, A = S.Area;
|
|
1279
1279
|
r.currentEdges = Ut({
|
|
1280
|
-
elementRect: ie(
|
|
1280
|
+
elementRect: ie(C.currentVal),
|
|
1281
1281
|
containerRect: r.rect,
|
|
1282
1282
|
tolerance: r._overflowTolerance
|
|
1283
|
-
}), r.currentEdges.length &&
|
|
1283
|
+
}), r.currentEdges.length && A.scroll(r.currentEdges, r._autoScrollSpeed);
|
|
1284
1284
|
}
|
|
1285
1285
|
}), i(this, "stopAutoScroll", function() {
|
|
1286
1286
|
r.currentEdges = [], clearInterval(r._scrollInterval);
|
|
1287
|
-
}), i(this, "isInside", function(S,
|
|
1288
|
-
return r.DS.Area.HTMLNode.contains(S) && r.DS.stores.ScrollStore.canScroll ? !0 : wt(r.rect,
|
|
1287
|
+
}), i(this, "isInside", function(S, C) {
|
|
1288
|
+
return r.DS.Area.HTMLNode.contains(S) && r.DS.stores.ScrollStore.canScroll ? !0 : wt(r.rect, C || S.getBoundingClientRect());
|
|
1289
1289
|
}), this._autoScrollSpeed = y, this._overflowTolerance = x, this.DS = v, this.HTMLNode = it(c), this.DS.subscribe("Area:modified", this.updatePos), this.DS.subscribe("Interaction:init", this.start), this.DS.subscribe("Interaction:start", this.startAutoScroll), this.DS.subscribe("Interaction:end", function() {
|
|
1290
1290
|
r.updatePos(), r.stopAutoScroll();
|
|
1291
1291
|
});
|
|
@@ -1343,8 +1343,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1343
1343
|
ctrlKey: "Control",
|
|
1344
1344
|
shiftKey: "Shift",
|
|
1345
1345
|
metaKey: "Meta"
|
|
1346
|
-
},
|
|
1347
|
-
return
|
|
1346
|
+
}, C = S[x];
|
|
1347
|
+
return C ? (console.warn("[DragSelect] ".concat(x, ' is deprecated. Use "').concat(C, '" instead. Act Now!. See docs for more info')), C.toLowerCase()) : x.toLowerCase();
|
|
1348
1348
|
}), this.DS.subscribe("Interaction:init", this.init);
|
|
1349
1349
|
}
|
|
1350
1350
|
return n(u, [{
|
|
@@ -1516,10 +1516,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1516
1516
|
}]), u;
|
|
1517
1517
|
}(), mi = /* @__PURE__ */ function() {
|
|
1518
1518
|
function u(l) {
|
|
1519
|
-
var r = this, v = l.area, c = v === void 0 ? document : v, y = l.selectables, x = y === void 0 ? [] : y, S = l.autoScrollSpeed,
|
|
1519
|
+
var r = this, v = l.area, c = v === void 0 ? document : v, y = l.selectables, x = y === void 0 ? [] : y, S = l.autoScrollSpeed, C = S === void 0 ? 5 : S, A = l.overflowTolerance, T = A === void 0 ? {
|
|
1520
1520
|
x: 25,
|
|
1521
1521
|
y: 25
|
|
1522
|
-
} :
|
|
1522
|
+
} : A, z = l.zoom, K = z === void 0 ? 1 : z, re = l.customStyles, pe = re === void 0 ? !1 : re, ae = l.multiSelectMode, ze = ae === void 0 ? !1 : ae, nt = l.multiSelectToggling, Me = nt === void 0 ? !0 : nt, Ft = l.multiSelectKeys, pi = Ft === void 0 ? ["Control", "Shift", "Meta"] : Ft, qt = l.selector, gi = qt === void 0 ? void 0 : qt, Gt = l.draggability, xt = Gt === void 0 ? !0 : Gt, Jt = l.immediateDrag, vi = Jt === void 0 ? !0 : Jt, Zt = l.keyboardDrag, bi = Zt === void 0 ? !0 : Zt, yi = l.dragKeys, Qt = l.keyboardDragSpeed, wi = Qt === void 0 ? 10 : Qt, er = l.useTransform, tr = er === void 0 ? !0 : er, rr = l.hoverClass, ir = rr === void 0 ? "ds-hover" : rr, ar = l.selectableClass, or = ar === void 0 ? "ds-selectable" : ar, nr = l.selectedClass, xi = nr === void 0 ? "ds-selected" : nr, sr = l.selectorClass, _i = sr === void 0 ? "ds-selector" : sr, lr = l.selectorAreaClass, ki = lr === void 0 ? "ds-selector-area" : lr, Si = l.callback, Di = l.onDragMove, Ci = l.onDragStartBegin, Mi = l.onDragStart, $i = l.onElementSelect, Ei = l.onElementUnselect;
|
|
1523
1523
|
t(this, u), i(this, "continue", !1), i(this, "start", function() {
|
|
1524
1524
|
r.stopped = !1, r.Interaction.init();
|
|
1525
1525
|
}), i(this, "break", function() {
|
|
@@ -1579,7 +1579,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1579
1579
|
}), this.SelectorArea = new ui({
|
|
1580
1580
|
DS: this,
|
|
1581
1581
|
selectorAreaClass: ki,
|
|
1582
|
-
autoScrollSpeed:
|
|
1582
|
+
autoScrollSpeed: C,
|
|
1583
1583
|
overflowTolerance: T
|
|
1584
1584
|
}), this.SelectableSet = new ni({
|
|
1585
1585
|
elements: x,
|
|
@@ -1626,34 +1626,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1626
1626
|
return n(u, [{
|
|
1627
1627
|
key: "_callbacksTemp",
|
|
1628
1628
|
value: function(r) {
|
|
1629
|
-
var v = r.callback, c = r.onDragMove, y = r.onDragStart, x = r.onDragStartBegin, S = r.onElementSelect,
|
|
1629
|
+
var v = r.callback, c = r.onDragMove, y = r.onDragStart, x = r.onDragStartBegin, S = r.onElementSelect, C = r.onElementUnselect, A = function(z, K) {
|
|
1630
1630
|
return console.warn("[DragSelect] ".concat(z, ' is deprecated. Use DragSelect.subscribe("').concat(K, '", (callbackObject) => {}) instead. Act Now! See docs for more info'));
|
|
1631
1631
|
};
|
|
1632
|
-
v && (
|
|
1632
|
+
v && (A("callback", "callback"), this.subscribe("callback", function(T) {
|
|
1633
1633
|
var z = T.items;
|
|
1634
1634
|
T.item;
|
|
1635
1635
|
var K = T.event;
|
|
1636
1636
|
return v(z, K);
|
|
1637
|
-
})), c && (
|
|
1637
|
+
})), c && (A("onDragMove", "dragmove"), this.subscribe("dragmove", function(T) {
|
|
1638
1638
|
T.items, T.item;
|
|
1639
1639
|
var z = T.event;
|
|
1640
1640
|
return c(z);
|
|
1641
|
-
})), y && (
|
|
1641
|
+
})), y && (A("onDragStart", "dragstart"), this.subscribe("dragstart", function(T) {
|
|
1642
1642
|
T.items, T.item;
|
|
1643
1643
|
var z = T.event;
|
|
1644
1644
|
return y(z);
|
|
1645
|
-
})), x && (
|
|
1645
|
+
})), x && (A("onDragStartBegin", "dragstart"), this.subscribe("dragstart", function(T) {
|
|
1646
1646
|
T.items, T.item;
|
|
1647
1647
|
var z = T.event;
|
|
1648
1648
|
return x(z);
|
|
1649
|
-
})), S && (
|
|
1649
|
+
})), S && (A("onElementSelect", "elementselect"), this.subscribe("elementselect", function(T) {
|
|
1650
1650
|
T.items;
|
|
1651
1651
|
var z = T.item, K = T.event;
|
|
1652
1652
|
return S(z, K);
|
|
1653
|
-
})),
|
|
1653
|
+
})), C && (A("onElementUnselect", "elementunselect"), this.subscribe("elementunselect", function(T) {
|
|
1654
1654
|
T.items;
|
|
1655
1655
|
var z = T.item, K = T.event;
|
|
1656
|
-
return
|
|
1656
|
+
return C(z, K);
|
|
1657
1657
|
}));
|
|
1658
1658
|
}
|
|
1659
1659
|
}, {
|
|
@@ -1764,16 +1764,16 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
1764
1764
|
}, ct = /* @__PURE__ */ Object.assign(Oa, {
|
|
1765
1765
|
props: { direction: String },
|
|
1766
1766
|
setup(o) {
|
|
1767
|
-
return (e, t) => (w(),
|
|
1768
|
-
o.direction == "down" ? (w(),
|
|
1769
|
-
o.direction == "up" ? (w(),
|
|
1767
|
+
return (e, t) => (w(), $("div", null, [
|
|
1768
|
+
o.direction == "down" ? (w(), $("svg", Ca, $a)) : q("", !0),
|
|
1769
|
+
o.direction == "up" ? (w(), $("svg", Ea, Aa)) : q("", !0)
|
|
1770
1770
|
]));
|
|
1771
1771
|
}
|
|
1772
1772
|
}), Pa = ["onClick"], Ia = {
|
|
1773
1773
|
name: "VFToast.vue"
|
|
1774
1774
|
}, ja = /* @__PURE__ */ Object.assign(Ia, {
|
|
1775
1775
|
setup(o) {
|
|
1776
|
-
const e = B("emitter"), { getStore: t } = B("storage"), a =
|
|
1776
|
+
const e = B("emitter"), { getStore: t } = B("storage"), a = O(t("full-screen", !1)), n = (g) => g == "error" ? "text-red-400 border-red-400" : "text-lime-600 border-lime-600", i = O([]), s = (g) => {
|
|
1777
1777
|
i.value.splice(g, 1);
|
|
1778
1778
|
}, f = (g) => {
|
|
1779
1779
|
let m = i.value.findIndex((d) => d.id === g);
|
|
@@ -1786,7 +1786,7 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
1786
1786
|
g.id = m, i.value.push(g), setTimeout(() => {
|
|
1787
1787
|
f(m);
|
|
1788
1788
|
}, 5e3);
|
|
1789
|
-
}), (g, m) => (w(),
|
|
1789
|
+
}), (g, m) => (w(), $("div", {
|
|
1790
1790
|
class: de([a.value.value ? "fixed" : "absolute", "bottom-0 max-w-fit flex flex-col bottom-0 left-1/2 -translate-x-1/2"])
|
|
1791
1791
|
}, [
|
|
1792
1792
|
we(Ai, {
|
|
@@ -1795,11 +1795,11 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
1795
1795
|
"leave-to-class": "opacity-0"
|
|
1796
1796
|
}, {
|
|
1797
1797
|
default: F(() => [
|
|
1798
|
-
(w(!0),
|
|
1798
|
+
(w(!0), $(ce, null, be(i.value, (d, p) => (w(), $("div", {
|
|
1799
1799
|
onClick: (b) => s(p),
|
|
1800
1800
|
key: d,
|
|
1801
1801
|
class: de([n(d.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 border text-xs rounded cursor-pointer"])
|
|
1802
|
-
},
|
|
1802
|
+
}, E(d.label), 11, Pa))), 128))
|
|
1803
1803
|
]),
|
|
1804
1804
|
_: 1
|
|
1805
1805
|
})
|
|
@@ -1917,11 +1917,11 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
1917
1917
|
search: Object
|
|
1918
1918
|
},
|
|
1919
1919
|
setup(o) {
|
|
1920
|
-
const e = o, t = B("emitter"), { setStore: a, getStore: n } = B("storage"), i = (L) => L == null ? void 0 : L.substring(0, 3), s = (L) => L.replace(/((?=([\w\W]{0,14}))([\w\W]{8,})([\w\W]{8,}))/, "$2..$4"), f =
|
|
1920
|
+
const e = o, t = B("emitter"), { setStore: a, getStore: n } = B("storage"), i = (L) => L == null ? void 0 : L.substring(0, 3), s = (L) => L.replace(/((?=([\w\W]{0,14}))([\w\W]{8,})([\w\W]{8,}))/, "$2..$4"), f = O(null), g = O(null), m = O(0), d = O(null), { t: p } = B("i18n"), b = Math.floor(Math.random() * 2 ** 32), I = O(n("full-screen", !1));
|
|
1921
1921
|
t.on("vf-fullscreen-toggle", () => {
|
|
1922
|
-
|
|
1922
|
+
I.value = !I.value, a("full-screen", I.value);
|
|
1923
1923
|
});
|
|
1924
|
-
const _ =
|
|
1924
|
+
const _ = O("");
|
|
1925
1925
|
t.on("vf-search-query", ({ newQuery: L }) => {
|
|
1926
1926
|
_.value = L, L ? t.emit("vf-fetch", {
|
|
1927
1927
|
params: {
|
|
@@ -1935,27 +1935,27 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
1935
1935
|
}
|
|
1936
1936
|
}) : t.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: e.data.dirname } });
|
|
1937
1937
|
});
|
|
1938
|
-
let
|
|
1938
|
+
let D = null;
|
|
1939
1939
|
const j = () => {
|
|
1940
|
-
|
|
1940
|
+
D && clearTimeout(D);
|
|
1941
1941
|
}, V = (L) => {
|
|
1942
|
-
|
|
1942
|
+
D = setTimeout(() => {
|
|
1943
1943
|
R(L);
|
|
1944
1944
|
}, 500);
|
|
1945
1945
|
}, R = (L) => {
|
|
1946
1946
|
L.type == "dir" ? (t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: L.path } })) : t.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: L });
|
|
1947
|
-
},
|
|
1948
|
-
let H = [...e.data.files], N =
|
|
1947
|
+
}, P = ft({ active: !1, column: "", order: "" }), ne = (L = !0) => {
|
|
1948
|
+
let H = [...e.data.files], N = P.column, Y = P.order == "asc" ? 1 : -1;
|
|
1949
1949
|
if (!L)
|
|
1950
1950
|
return H;
|
|
1951
1951
|
const U = (ie, Q) => typeof ie == "string" && typeof Q == "string" ? ie.toLowerCase().localeCompare(Q.toLowerCase()) : ie < Q ? -1 : ie > Q ? 1 : 0;
|
|
1952
|
-
return
|
|
1952
|
+
return P.active && (H = H.slice().sort((ie, Q) => U(ie[N], Q[N]) * Y)), H;
|
|
1953
1953
|
}, J = (L) => {
|
|
1954
|
-
|
|
1955
|
-
},
|
|
1954
|
+
P.active && P.column == L ? (P.active = P.order == "asc", P.column = L, P.order = "desc") : (P.active = !0, P.column = L, P.order = "asc");
|
|
1955
|
+
}, M = () => d.value.getSelection().map((L) => JSON.parse(L.dataset.item)), X = (L, H) => {
|
|
1956
1956
|
if (L.altKey || L.ctrlKey || L.metaKey)
|
|
1957
1957
|
return L.preventDefault(), !1;
|
|
1958
|
-
L.dataTransfer.setDragImage(g.value, 0, 15), L.dataTransfer.effectAllowed = "all", L.dataTransfer.dropEffect = "copy", L.dataTransfer.setData("items", JSON.stringify(
|
|
1958
|
+
L.dataTransfer.setDragImage(g.value, 0, 15), L.dataTransfer.effectAllowed = "all", L.dataTransfer.dropEffect = "copy", L.dataTransfer.setData("items", JSON.stringify(M()));
|
|
1959
1959
|
}, Z = (L, H) => {
|
|
1960
1960
|
L.preventDefault();
|
|
1961
1961
|
let N = JSON.parse(L.dataTransfer.getData("items"));
|
|
@@ -1985,59 +1985,59 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
1985
1985
|
}), d.value.subscribe("predragmove", ({ isDragging: L }) => {
|
|
1986
1986
|
L && d.value.break();
|
|
1987
1987
|
}), d.value.subscribe("callback", ({ items: L, event: H, isDragging: N }) => {
|
|
1988
|
-
t.emit("vf-nodes-selected",
|
|
1988
|
+
t.emit("vf-nodes-selected", M()), m.value = d.value.getSelection().length;
|
|
1989
1989
|
});
|
|
1990
1990
|
}), Oi(() => {
|
|
1991
1991
|
d.value.setSelection(d.value.getSelection());
|
|
1992
1992
|
}), xe(() => {
|
|
1993
1993
|
gt(() => e.view, () => t.emit("vf-explorer-update"));
|
|
1994
|
-
}), (L, H) => (w(),
|
|
1995
|
-
o.view == "list" || _.value.length ? (w(),
|
|
1994
|
+
}), (L, H) => (w(), $("div", La, [
|
|
1995
|
+
o.view == "list" || _.value.length ? (w(), $("div", Va, [
|
|
1996
1996
|
h("div", {
|
|
1997
1997
|
onClick: H[0] || (H[0] = (N) => J("basename")),
|
|
1998
1998
|
class: "col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"
|
|
1999
1999
|
}, [
|
|
2000
|
-
le(
|
|
2000
|
+
le(E(k(p)("Name")) + " ", 1),
|
|
2001
2001
|
ve(we(ct, {
|
|
2002
|
-
direction:
|
|
2002
|
+
direction: P.order == "asc" ? "down" : "up"
|
|
2003
2003
|
}, null, 8, ["direction"]), [
|
|
2004
|
-
[st,
|
|
2004
|
+
[st, P.active && P.column == "basename"]
|
|
2005
2005
|
])
|
|
2006
2006
|
]),
|
|
2007
|
-
_.value.length ? q("", !0) : (w(),
|
|
2007
|
+
_.value.length ? q("", !0) : (w(), $("div", {
|
|
2008
2008
|
key: 0,
|
|
2009
2009
|
onClick: H[1] || (H[1] = (N) => J("file_size")),
|
|
2010
2010
|
class: "col-span-2 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l border-r dark:border-gray-700"
|
|
2011
2011
|
}, [
|
|
2012
|
-
le(
|
|
2012
|
+
le(E(k(p)("Size")) + " ", 1),
|
|
2013
2013
|
ve(we(ct, {
|
|
2014
|
-
direction:
|
|
2014
|
+
direction: P.order == "asc" ? "down" : "up"
|
|
2015
2015
|
}, null, 8, ["direction"]), [
|
|
2016
|
-
[st,
|
|
2016
|
+
[st, P.active && P.column == "file_size"]
|
|
2017
2017
|
])
|
|
2018
2018
|
])),
|
|
2019
|
-
_.value.length ? q("", !0) : (w(),
|
|
2019
|
+
_.value.length ? q("", !0) : (w(), $("div", {
|
|
2020
2020
|
key: 1,
|
|
2021
2021
|
onClick: H[2] || (H[2] = (N) => J("last_modified")),
|
|
2022
2022
|
class: "col-span-3 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center"
|
|
2023
2023
|
}, [
|
|
2024
|
-
le(
|
|
2024
|
+
le(E(k(p)("Date")) + " ", 1),
|
|
2025
2025
|
ve(we(ct, {
|
|
2026
|
-
direction:
|
|
2026
|
+
direction: P.order == "asc" ? "down" : "up"
|
|
2027
2027
|
}, null, 8, ["direction"]), [
|
|
2028
|
-
[st,
|
|
2028
|
+
[st, P.active && P.column == "last_modified"]
|
|
2029
2029
|
])
|
|
2030
2030
|
])),
|
|
2031
|
-
_.value.length ? (w(),
|
|
2031
|
+
_.value.length ? (w(), $("div", {
|
|
2032
2032
|
key: 2,
|
|
2033
2033
|
onClick: H[3] || (H[3] = (N) => J("path")),
|
|
2034
2034
|
class: "col-span-5 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center justify-center border-l dark:border-gray-700"
|
|
2035
2035
|
}, [
|
|
2036
|
-
le(
|
|
2036
|
+
le(E(k(p)("Filepath")) + " ", 1),
|
|
2037
2037
|
ve(we(ct, {
|
|
2038
|
-
direction:
|
|
2038
|
+
direction: P.order == "asc" ? "down" : "up"
|
|
2039
2039
|
}, null, 8, ["direction"]), [
|
|
2040
|
-
[st,
|
|
2040
|
+
[st, P.active && P.column == "path"]
|
|
2041
2041
|
])
|
|
2042
2042
|
])) : q("", !0)
|
|
2043
2043
|
])) : q("", !0),
|
|
@@ -2048,20 +2048,20 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2048
2048
|
class: "absolute -z-50 -top-96"
|
|
2049
2049
|
}, [
|
|
2050
2050
|
Ba,
|
|
2051
|
-
h("div", Ra,
|
|
2051
|
+
h("div", Ra, E(m.value), 1)
|
|
2052
2052
|
], 512)
|
|
2053
2053
|
]),
|
|
2054
2054
|
h("div", {
|
|
2055
|
-
class: de([
|
|
2055
|
+
class: de([I.value ? "" : "resize-y", "h-full w-full text-xs vf-selector-area min-h-[150px] overflow-auto p-1 z-0"]),
|
|
2056
2056
|
ref_key: "selectorArea",
|
|
2057
2057
|
ref: f,
|
|
2058
|
-
onContextmenu: H[7] || (H[7] = Pe((N) => k(t).emit("vf-contextmenu-show", { event: N, area: f.value, items:
|
|
2058
|
+
onContextmenu: H[7] || (H[7] = Pe((N) => k(t).emit("vf-contextmenu-show", { event: N, area: f.value, items: M() }), ["self", "prevent"]))
|
|
2059
2059
|
}, [
|
|
2060
|
-
_.value.length ? (w(!0),
|
|
2060
|
+
_.value.length ? (w(!0), $(ce, { key: 0 }, be(ne(), (N, Y) => (w(), $("div", {
|
|
2061
2061
|
onDblclick: (U) => R(N),
|
|
2062
2062
|
onTouchstart: (U) => V(N),
|
|
2063
2063
|
onTouchend: H[4] || (H[4] = (U) => j()),
|
|
2064
|
-
onContextmenu: Pe((U) => k(t).emit("vf-contextmenu-show", { event: U, area: f.value, items:
|
|
2064
|
+
onContextmenu: Pe((U) => k(t).emit("vf-contextmenu-show", { event: U, area: f.value, items: M(), target: N }), ["prevent"]),
|
|
2065
2065
|
class: de(["vf-item-" + k(b), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),
|
|
2066
2066
|
"data-type": N.type,
|
|
2067
2067
|
"data-item": JSON.stringify(N),
|
|
@@ -2069,18 +2069,18 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2069
2069
|
}, [
|
|
2070
2070
|
h("div", Ua, [
|
|
2071
2071
|
h("div", Ka, [
|
|
2072
|
-
N.type == "dir" ? (w(),
|
|
2073
|
-
h("span", Ja,
|
|
2072
|
+
N.type == "dir" ? (w(), $("svg", Ya, Xa)) : (w(), $("svg", Fa, Ga)),
|
|
2073
|
+
h("span", Ja, E(N.basename), 1)
|
|
2074
2074
|
]),
|
|
2075
|
-
h("div", Za,
|
|
2075
|
+
h("div", Za, E(N.path), 1)
|
|
2076
2076
|
])
|
|
2077
2077
|
], 42, Ha))), 256)) : q("", !0),
|
|
2078
|
-
o.view == "list" && !_.value.length ? (w(!0),
|
|
2078
|
+
o.view == "list" && !_.value.length ? (w(!0), $(ce, { key: 1 }, be(ne(), (N, Y) => (w(), $("div", {
|
|
2079
2079
|
draggable: "true",
|
|
2080
2080
|
onDblclick: (U) => R(N),
|
|
2081
2081
|
onTouchstart: (U) => V(N),
|
|
2082
2082
|
onTouchend: H[5] || (H[5] = (U) => j()),
|
|
2083
|
-
onContextmenu: Pe((U) => k(t).emit("vf-contextmenu-show", { event: U, area: f.value, items:
|
|
2083
|
+
onContextmenu: Pe((U) => k(t).emit("vf-contextmenu-show", { event: U, area: f.value, items: M(), target: N }), ["prevent"]),
|
|
2084
2084
|
onDragstart: (U) => X(U),
|
|
2085
2085
|
onDragover: (U) => ue(U, N),
|
|
2086
2086
|
onDrop: (U) => Z(U, N),
|
|
@@ -2091,21 +2091,21 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2091
2091
|
}, [
|
|
2092
2092
|
h("div", eo, [
|
|
2093
2093
|
h("div", to, [
|
|
2094
|
-
N.type == "dir" ? (w(),
|
|
2095
|
-
h("span", lo,
|
|
2094
|
+
N.type == "dir" ? (w(), $("svg", ro, ao)) : (w(), $("svg", oo, so)),
|
|
2095
|
+
h("span", lo, E(N.basename), 1)
|
|
2096
2096
|
]),
|
|
2097
|
-
h("div", co,
|
|
2098
|
-
h("div", uo,
|
|
2097
|
+
h("div", co, E(N.file_size ? k(Sa)(N.file_size) : ""), 1),
|
|
2098
|
+
h("div", uo, E(k(Da)(N.last_modified)), 1)
|
|
2099
2099
|
])
|
|
2100
2100
|
], 42, Qa))), 256)) : q("", !0),
|
|
2101
|
-
o.view == "grid" && !_.value.length ? (w(!0),
|
|
2101
|
+
o.view == "grid" && !_.value.length ? (w(!0), $(ce, { key: 2 }, be(ne(!1), (N, Y) => {
|
|
2102
2102
|
var U, ie;
|
|
2103
|
-
return w(),
|
|
2103
|
+
return w(), $("div", {
|
|
2104
2104
|
draggable: "true",
|
|
2105
2105
|
onDblclick: (Q) => R(N),
|
|
2106
2106
|
onTouchstart: (Q) => V(N),
|
|
2107
2107
|
onTouchend: H[6] || (H[6] = (Q) => j()),
|
|
2108
|
-
onContextmenu: Pe((Q) => k(t).emit("vf-contextmenu-show", { event: Q, area: f.value, items:
|
|
2108
|
+
onContextmenu: Pe((Q) => k(t).emit("vf-contextmenu-show", { event: Q, area: f.value, items: M(), target: N }), ["prevent"]),
|
|
2109
2109
|
onDragstart: (Q) => X(Q),
|
|
2110
2110
|
onDragover: (Q) => ue(Q, N),
|
|
2111
2111
|
onDrop: (Q) => Z(Q, N),
|
|
@@ -2116,15 +2116,15 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2116
2116
|
}, [
|
|
2117
2117
|
h("div", null, [
|
|
2118
2118
|
h("div", fo, [
|
|
2119
|
-
N.type == "dir" ? (w(),
|
|
2119
|
+
N.type == "dir" ? (w(), $("svg", mo, go)) : ((U = N.mime_type) != null ? U : "").startsWith("image") ? (w(), $("img", {
|
|
2120
2120
|
key: 1,
|
|
2121
2121
|
class: "h-10 md:h-12 m-auto",
|
|
2122
2122
|
src: k($t)(k(n)("adapter", e.data.adapter), N.path),
|
|
2123
2123
|
alt: ""
|
|
2124
|
-
}, null, 8, vo)) : (w(),
|
|
2125
|
-
((ie = N.mime_type) != null ? ie : "").startsWith("image") ? q("", !0) : (w(),
|
|
2124
|
+
}, null, 8, vo)) : (w(), $("svg", bo, wo)),
|
|
2125
|
+
((ie = N.mime_type) != null ? ie : "").startsWith("image") ? q("", !0) : (w(), $("div", xo, E(i(N.extension)), 1))
|
|
2126
2126
|
]),
|
|
2127
|
-
h("span", _o,
|
|
2127
|
+
h("span", _o, E(s(N.basename)), 1)
|
|
2128
2128
|
])
|
|
2129
2129
|
], 42, ho);
|
|
2130
2130
|
}), 256)) : q("", !0)
|
|
@@ -2173,16 +2173,16 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2173
2173
|
},
|
|
2174
2174
|
setup(o) {
|
|
2175
2175
|
var b;
|
|
2176
|
-
const e = o, t = B("emitter"), { getStore: a, setStore: n } = B("storage"), i =
|
|
2176
|
+
const e = o, t = B("emitter"), { getStore: a, setStore: n } = B("storage"), i = O(0), s = O((b = a("adapter")) != null ? b : e.data.adapter), { t: f, changeLocale: g } = B("i18n"), m = O(a("locale", "")), d = () => {
|
|
2177
2177
|
t.emit("vf-search-exit"), t.emit("vf-fetch", { params: { q: "index", adapter: s.value } }), n("adapter", s.value);
|
|
2178
2178
|
};
|
|
2179
|
-
t.on("vf-nodes-selected", (
|
|
2180
|
-
i.value =
|
|
2179
|
+
t.on("vf-nodes-selected", (I) => {
|
|
2180
|
+
i.value = I.length;
|
|
2181
2181
|
});
|
|
2182
|
-
const p =
|
|
2183
|
-
return t.on("vf-search-query", ({ newQuery:
|
|
2184
|
-
p.value =
|
|
2185
|
-
}), (
|
|
2182
|
+
const p = O("");
|
|
2183
|
+
return t.on("vf-search-query", ({ newQuery: I }) => {
|
|
2184
|
+
p.value = I;
|
|
2185
|
+
}), (I, _) => (w(), $("div", Do, [
|
|
2186
2186
|
h("div", Co, [
|
|
2187
2187
|
h("div", {
|
|
2188
2188
|
class: "mx-2",
|
|
@@ -2191,26 +2191,26 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2191
2191
|
role: "tooltip"
|
|
2192
2192
|
}, Eo, 8, Mo),
|
|
2193
2193
|
ve(h("select", {
|
|
2194
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
2194
|
+
"onUpdate:modelValue": _[0] || (_[0] = (D) => s.value = D),
|
|
2195
2195
|
onChange: d,
|
|
2196
2196
|
class: "py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"
|
|
2197
2197
|
}, [
|
|
2198
|
-
(w(!0),
|
|
2198
|
+
(w(!0), $(ce, null, be(o.data.storages, (D) => (w(), $("option", { value: D }, E(D), 9, To))), 256))
|
|
2199
2199
|
], 544), [
|
|
2200
2200
|
[cr, s.value]
|
|
2201
2201
|
]),
|
|
2202
2202
|
h("div", Ao, [
|
|
2203
|
-
p.value.length ? (w(),
|
|
2204
|
-
h("span", Po,
|
|
2203
|
+
p.value.length ? (w(), $("span", Oo, E(o.data.files.length) + " items found. ", 1)) : q("", !0),
|
|
2204
|
+
h("span", Po, E(i.value > 0 ? i.value + " " + k(f)("item(s) selected.") : ""), 1)
|
|
2205
2205
|
])
|
|
2206
2206
|
]),
|
|
2207
2207
|
h("div", Io, [
|
|
2208
2208
|
ve(h("select", {
|
|
2209
|
-
"onUpdate:modelValue": _[1] || (_[1] = (
|
|
2210
|
-
onChange: _[2] || (_[2] = (
|
|
2209
|
+
"onUpdate:modelValue": _[1] || (_[1] = (D) => m.value = D),
|
|
2210
|
+
onChange: _[2] || (_[2] = (D) => k(g)(D.target.value)),
|
|
2211
2211
|
class: "py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"
|
|
2212
2212
|
}, [
|
|
2213
|
-
h("option", jo,
|
|
2213
|
+
h("option", jo, E(k(f)("Language")), 1),
|
|
2214
2214
|
No,
|
|
2215
2215
|
Lo,
|
|
2216
2216
|
Vo
|
|
@@ -2221,7 +2221,7 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2221
2221
|
"aria-label": k(f)("About"),
|
|
2222
2222
|
"data-microtip-position": "top-left",
|
|
2223
2223
|
role: "tooltip",
|
|
2224
|
-
onClick: _[3] || (_[3] = (
|
|
2224
|
+
onClick: _[3] || (_[3] = (D) => k(t).emit("vf-modal-show", { type: "message", title: "Vuefinder 1.0", message: k(f)("Vuefinder is a file manager component for vue 3.") }))
|
|
2225
2225
|
}, Ro, 8, zo)
|
|
2226
2226
|
])
|
|
2227
2227
|
]));
|
|
@@ -2234,7 +2234,7 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2234
2234
|
}, e);
|
|
2235
2235
|
};
|
|
2236
2236
|
}, Yo = (o, e, t) => {
|
|
2237
|
-
const a =
|
|
2237
|
+
const a = O(o);
|
|
2238
2238
|
return Pi((i, s) => ({
|
|
2239
2239
|
get() {
|
|
2240
2240
|
return i(), a.value;
|
|
@@ -2282,14 +2282,14 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2282
2282
|
data: Object
|
|
2283
2283
|
},
|
|
2284
2284
|
setup(o) {
|
|
2285
|
-
const e = o, t = B("emitter"), { getStore: a } = B("storage"), n =
|
|
2285
|
+
const e = o, t = B("emitter"), { getStore: a } = B("storage"), n = O(null), i = O([]), s = O(!1), f = O(null), { t: g } = B("i18n");
|
|
2286
2286
|
t.on("vf-explorer-update", () => {
|
|
2287
2287
|
var R;
|
|
2288
2288
|
let j = [], V = [];
|
|
2289
|
-
n.value = (R = e.data.dirname) != null ? R : a("adapter", "local") + "://", n.value.length == 0 && (i.value = []), n.value.replace(a("adapter", "local") + "://", "").split("/").forEach(function(
|
|
2290
|
-
j.push(
|
|
2291
|
-
basename:
|
|
2292
|
-
name:
|
|
2289
|
+
n.value = (R = e.data.dirname) != null ? R : a("adapter", "local") + "://", n.value.length == 0 && (i.value = []), n.value.replace(a("adapter", "local") + "://", "").split("/").forEach(function(P) {
|
|
2290
|
+
j.push(P), j.join("/") != "" && V.push({
|
|
2291
|
+
basename: P,
|
|
2292
|
+
name: P,
|
|
2293
2293
|
path: a("adapter", "local") + "://" + j.join("/"),
|
|
2294
2294
|
type: "dir"
|
|
2295
2295
|
});
|
|
@@ -2307,11 +2307,11 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2307
2307
|
gt(p, (j) => {
|
|
2308
2308
|
t.emit("vf-toast-clear"), t.emit("vf-search-query", { newQuery: j });
|
|
2309
2309
|
});
|
|
2310
|
-
const b = () => i.value.length && !s.value,
|
|
2310
|
+
const b = () => i.value.length && !s.value, I = (j) => {
|
|
2311
2311
|
var R;
|
|
2312
2312
|
j.preventDefault();
|
|
2313
2313
|
let V = JSON.parse(j.dataTransfer.getData("items"));
|
|
2314
|
-
if (V.find((
|
|
2314
|
+
if (V.find((P) => P.storage != a("adapter", "local"))) {
|
|
2315
2315
|
alert("Moving items between different storages is not supported yet.");
|
|
2316
2316
|
return;
|
|
2317
2317
|
}
|
|
@@ -2321,21 +2321,21 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2321
2321
|
});
|
|
2322
2322
|
}, _ = (j) => {
|
|
2323
2323
|
j.preventDefault(), b() ? j.dataTransfer.dropEffect = "copy" : (j.dataTransfer.dropEffect = "none", j.dataTransfer.effectAllowed = "none");
|
|
2324
|
-
},
|
|
2324
|
+
}, D = () => {
|
|
2325
2325
|
p.value == "" && m();
|
|
2326
2326
|
};
|
|
2327
|
-
return (j, V) => (w(),
|
|
2327
|
+
return (j, V) => (w(), $("div", Wo, [
|
|
2328
2328
|
h("span", {
|
|
2329
2329
|
"aria-label": k(g)("Go up a directory"),
|
|
2330
2330
|
"data-microtip-position": "bottom-right",
|
|
2331
2331
|
role: "tooltip"
|
|
2332
2332
|
}, [
|
|
2333
|
-
(w(),
|
|
2333
|
+
(w(), $("svg", {
|
|
2334
2334
|
onDragover: V[0] || (V[0] = (R) => _(R)),
|
|
2335
|
-
onDrop: V[1] || (V[1] = (R) =>
|
|
2335
|
+
onDrop: V[1] || (V[1] = (R) => I(R)),
|
|
2336
2336
|
onClick: V[2] || (V[2] = (R) => {
|
|
2337
|
-
var
|
|
2338
|
-
return !b() || k(t).emit("vf-fetch", { params: { q: "index", adapter: o.data.adapter, path: (ne = (
|
|
2337
|
+
var P, ne;
|
|
2338
|
+
return !b() || k(t).emit("vf-fetch", { params: { q: "index", adapter: o.data.adapter, path: (ne = (P = i.value[i.value.length - 2]) == null ? void 0 : P.path) != null ? ne : k(a)("adapter", "local") + "://" } });
|
|
2339
2339
|
}),
|
|
2340
2340
|
class: de(["h-6 w-6 p-0.5 rounded", b() ? "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"]),
|
|
2341
2341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2343,13 +2343,13 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2343
2343
|
fill: "currentColor"
|
|
2344
2344
|
}, qo, 34))
|
|
2345
2345
|
], 8, Xo),
|
|
2346
|
-
s.value ? (w(),
|
|
2346
|
+
s.value ? (w(), $("div", rn, [
|
|
2347
2347
|
an,
|
|
2348
2348
|
ve(h("input", {
|
|
2349
2349
|
ref_key: "searchInput",
|
|
2350
2350
|
ref: f,
|
|
2351
2351
|
onKeydown: Ye(m, ["esc"]),
|
|
2352
|
-
onBlur:
|
|
2352
|
+
onBlur: D,
|
|
2353
2353
|
"onUpdate:modelValue": V[4] || (V[4] = (R) => Ii(p) ? p.value = R : null),
|
|
2354
2354
|
placeholder: k(g)("Search anything.."),
|
|
2355
2355
|
class: "py-0 px-2 w-full border-0 ring-0 outline-0 text-sm text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",
|
|
@@ -2357,7 +2357,7 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2357
2357
|
}, null, 40, on), [
|
|
2358
2358
|
[We, k(p)]
|
|
2359
2359
|
]),
|
|
2360
|
-
(w(),
|
|
2360
|
+
(w(), $("svg", {
|
|
2361
2361
|
class: "w-6 h-6 cursor-pointer",
|
|
2362
2362
|
onClick: m,
|
|
2363
2363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2366,12 +2366,12 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2366
2366
|
"stroke-width": "1.5",
|
|
2367
2367
|
stroke: "currentColor"
|
|
2368
2368
|
}, sn))
|
|
2369
|
-
])) : (w(),
|
|
2369
|
+
])) : (w(), $("div", {
|
|
2370
2370
|
key: 0,
|
|
2371
2371
|
class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",
|
|
2372
2372
|
onClick: Pe(d, ["self"])
|
|
2373
2373
|
}, [
|
|
2374
|
-
(w(),
|
|
2374
|
+
(w(), $("svg", {
|
|
2375
2375
|
onClick: V[3] || (V[3] = (R) => k(t).emit("vf-fetch", { params: { q: "index", adapter: o.data.adapter } })),
|
|
2376
2376
|
class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-100 dark:text-neutral-300 dark:hover:bg-gray-800 cursor-pointer",
|
|
2377
2377
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2379,13 +2379,13 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2379
2379
|
fill: "currentColor"
|
|
2380
2380
|
}, Zo)),
|
|
2381
2381
|
h("div", Qo, [
|
|
2382
|
-
(w(!0),
|
|
2382
|
+
(w(!0), $(ce, null, be(i.value, (R, P) => (w(), $("div", { key: P }, [
|
|
2383
2383
|
en,
|
|
2384
2384
|
h("span", {
|
|
2385
2385
|
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",
|
|
2386
2386
|
title: R.basename,
|
|
2387
2387
|
onClick: (ne) => k(t).emit("vf-fetch", { params: { q: "index", adapter: o.data.adapter, path: R.path } })
|
|
2388
|
-
},
|
|
2388
|
+
}, E(R.name), 9, tn)
|
|
2389
2389
|
]))), 128))
|
|
2390
2390
|
])
|
|
2391
2391
|
], 8, Go))
|
|
@@ -2398,14 +2398,14 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2398
2398
|
current: Object
|
|
2399
2399
|
},
|
|
2400
2400
|
setup(o) {
|
|
2401
|
-
const e = o, t = B("emitter"), a =
|
|
2401
|
+
const e = o, t = B("emitter"), a = O(null), { apiUrl: n } = Se(), i = ft({
|
|
2402
2402
|
active: !1,
|
|
2403
2403
|
items: [],
|
|
2404
2404
|
positions: {
|
|
2405
2405
|
left: 0,
|
|
2406
2406
|
top: 0
|
|
2407
2407
|
}
|
|
2408
|
-
}), s =
|
|
2408
|
+
}), s = O([]);
|
|
2409
2409
|
t.on("vf-context-selected", (b) => {
|
|
2410
2410
|
s.value = b;
|
|
2411
2411
|
});
|
|
@@ -2473,44 +2473,44 @@ const ka = $r.exports, Sa = (o, e, t, a, n) => (e = Math, t = e.log, a = 1024, n
|
|
|
2473
2473
|
}
|
|
2474
2474
|
}, m = (b) => {
|
|
2475
2475
|
t.emit("vf-contextmenu-hide"), b.action();
|
|
2476
|
-
}, d =
|
|
2476
|
+
}, d = O("");
|
|
2477
2477
|
t.on("vf-search-query", ({ newQuery: b }) => {
|
|
2478
2478
|
d.value = b;
|
|
2479
|
-
}), t.on("vf-contextmenu-show", ({ event: b, area:
|
|
2479
|
+
}), t.on("vf-contextmenu-show", ({ event: b, area: I, items: _, target: D = null }) => {
|
|
2480
2480
|
if (i.items = [], d.value)
|
|
2481
|
-
if (
|
|
2482
|
-
i.items.push(g.openDir), t.emit("vf-context-selected", [
|
|
2481
|
+
if (D)
|
|
2482
|
+
i.items.push(g.openDir), t.emit("vf-context-selected", [D]), console.log("search item selected");
|
|
2483
2483
|
else
|
|
2484
2484
|
return;
|
|
2485
2485
|
else
|
|
2486
|
-
!
|
|
2487
|
-
p(b,
|
|
2486
|
+
!D && !d.value ? (i.items.push(g.refresh), i.items.push(g.newfolder), t.emit("vf-context-selected", []), console.log("no files selected")) : _.length > 1 && _.some((j) => j.path === D.path) ? (i.items.push(g.refresh), i.items.push(g.archive), i.items.push(g.delete), t.emit("vf-context-selected", _), console.log(_.length + " selected (more than 1 item.)")) : (D.type == "dir" ? i.items.push(g.open) : (i.items.push(g.preview), i.items.push(g.download)), i.items.push(g.rename), D.mime_type == "application/zip" ? i.items.push(g.unarchive) : i.items.push(g.archive), i.items.push(g.delete), t.emit("vf-context-selected", [D]), console.log(D.type + " is selected"));
|
|
2487
|
+
p(b, I);
|
|
2488
2488
|
}), t.on("vf-contextmenu-hide", () => {
|
|
2489
2489
|
i.active = !1;
|
|
2490
2490
|
});
|
|
2491
|
-
const p = (b,
|
|
2491
|
+
const p = (b, I) => {
|
|
2492
2492
|
i.active = !0, vt(() => {
|
|
2493
|
-
let _ =
|
|
2494
|
-
|
|
2495
|
-
left:
|
|
2493
|
+
let _ = I.getBoundingClientRect(), D = b.pageX, j = b.pageY, V = a.value.offsetHeight, R = a.value.offsetWidth;
|
|
2494
|
+
D = _.right - b.pageX + window.scrollX < R ? D - R : D, j = _.bottom - b.pageY + window.scrollY < V ? j - V : j, i.positions = {
|
|
2495
|
+
left: D + "px",
|
|
2496
2496
|
top: j + "px"
|
|
2497
2497
|
};
|
|
2498
2498
|
});
|
|
2499
2499
|
};
|
|
2500
|
-
return (b,
|
|
2500
|
+
return (b, I) => i.active ? (w(), $("ul", {
|
|
2501
2501
|
key: 0,
|
|
2502
2502
|
class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",
|
|
2503
2503
|
ref_key: "contextmenu",
|
|
2504
2504
|
ref: a,
|
|
2505
2505
|
style: Mr(i.positions)
|
|
2506
2506
|
}, [
|
|
2507
|
-
(w(!0),
|
|
2507
|
+
(w(!0), $(ce, null, be(i.items, (_) => (w(), $("li", {
|
|
2508
2508
|
class: "px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
|
|
2509
2509
|
key: _.title,
|
|
2510
|
-
onClick: (
|
|
2510
|
+
onClick: (D) => m(_)
|
|
2511
2511
|
}, [
|
|
2512
2512
|
dn,
|
|
2513
|
-
h("span", null,
|
|
2513
|
+
h("span", null, E(_.title()), 1)
|
|
2514
2514
|
], 8, un))), 128))
|
|
2515
2515
|
], 4)) : q("", !0);
|
|
2516
2516
|
}
|
|
@@ -2525,7 +2525,7 @@ async function pn(o) {
|
|
|
2525
2525
|
return JSON.parse(e.default);
|
|
2526
2526
|
}
|
|
2527
2527
|
function gn(o, e) {
|
|
2528
|
-
const { getStore: t, setStore: a } = Mt(o), n = ["en", "tr"], i =
|
|
2528
|
+
const { getStore: t, setStore: a } = Mt(o), n = ["en", "tr"], i = O({}), s = (m) => {
|
|
2529
2529
|
n.includes(m) || (console.log("The selected locale is not yet supported. The fallback language is set as 'en'"), m = "en"), pn(m).then((d) => {
|
|
2530
2530
|
i.value = d, a("locale", m), a("translations", d), console.log(m + " is loaded.");
|
|
2531
2531
|
});
|
|
@@ -2575,11 +2575,11 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2575
2575
|
lt("i18n", i);
|
|
2576
2576
|
const { apiUrl: s, setApiUrl: f } = Se();
|
|
2577
2577
|
f(e.url);
|
|
2578
|
-
const g = ft({ adapter: "local", storages: [], dirname: ".", files: [] }), m =
|
|
2578
|
+
const g = ft({ adapter: "local", storages: [], dirname: ".", files: [] }), m = O(n("viewport", "grid")), d = O(n("darkMode", e.dark));
|
|
2579
2579
|
t.on("vf-darkMode-toggle", () => {
|
|
2580
2580
|
d.value = !d.value, a("darkMode", d.value);
|
|
2581
2581
|
});
|
|
2582
|
-
const p =
|
|
2582
|
+
const p = O(n("full-screen", !1));
|
|
2583
2583
|
t.on("vf-fullscreen-toggle", () => {
|
|
2584
2584
|
p.value = !p.value, a("full-screen", p.value);
|
|
2585
2585
|
}), t.on("vf-view-toggle", (_) => {
|
|
@@ -2595,12 +2595,12 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2595
2595
|
}), t.on("vf-modal-show", (_) => {
|
|
2596
2596
|
b.active = !0, b.type = _.type, b.data = _;
|
|
2597
2597
|
});
|
|
2598
|
-
const
|
|
2598
|
+
const I = (_) => {
|
|
2599
2599
|
Object.assign(g, _), t.emit("vf-nodes-selected", {}), t.emit("vf-explorer-update");
|
|
2600
2600
|
};
|
|
2601
|
-
return t.on("vf-fetch", ({ params: _, onSuccess:
|
|
2601
|
+
return t.on("vf-fetch", ({ params: _, onSuccess: D = null, onError: j = null }) => {
|
|
2602
2602
|
mt(s.value, { params: _ }).then((V) => {
|
|
2603
|
-
t.emit("vf-modal-close"),
|
|
2603
|
+
t.emit("vf-modal-close"), I(V), D(V);
|
|
2604
2604
|
}).catch((V) => {
|
|
2605
2605
|
j && j(V);
|
|
2606
2606
|
});
|
|
@@ -2608,13 +2608,13 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2608
2608
|
document.getElementById("download_frame").src = _, t.emit("vf-modal-close");
|
|
2609
2609
|
}), xe(() => {
|
|
2610
2610
|
t.emit("vf-fetch", { params: { q: "index", adapter: n("adapter", g.adapter) } });
|
|
2611
|
-
}), (_,
|
|
2611
|
+
}), (_, D) => (w(), $("div", {
|
|
2612
2612
|
class: de(d.value ? "dark" : "")
|
|
2613
2613
|
}, [
|
|
2614
2614
|
h("div", {
|
|
2615
2615
|
class: de([p.value ? "fixed w-screen inset-0 z-20" : "relative", "border flex flex-col rounded-md bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),
|
|
2616
2616
|
style: Mr(p.value ? "" : "max-height: " + o.maxHeight),
|
|
2617
|
-
onMousedown:
|
|
2617
|
+
onMousedown: D[0] || (D[0] = (j) => k(t).emit("vf-contextmenu-hide"))
|
|
2618
2618
|
}, [
|
|
2619
2619
|
we(xa, { data: g }, null, 8, ["data"]),
|
|
2620
2620
|
we(cn, { data: g }, null, 8, ["data"]),
|
|
@@ -2640,7 +2640,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2640
2640
|
return xe(() => {
|
|
2641
2641
|
const t = document.querySelector(".v-f-modal input");
|
|
2642
2642
|
t && t.focus();
|
|
2643
|
-
}), (t, a) => (w(),
|
|
2643
|
+
}), (t, a) => (w(), $("div", {
|
|
2644
2644
|
class: "v-f-modal relative z-30",
|
|
2645
2645
|
"aria-labelledby": "modal-title",
|
|
2646
2646
|
role: "dialog",
|
|
@@ -2692,11 +2692,11 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2692
2692
|
},
|
|
2693
2693
|
setup(o) {
|
|
2694
2694
|
var s;
|
|
2695
|
-
const { t: e } = B("i18n"), t =
|
|
2695
|
+
const { t: e } = B("i18n"), t = O(!1), a = O(null), n = O((s = a.value) == null ? void 0 : s.strMessage);
|
|
2696
2696
|
gt(n, () => t.value = !1);
|
|
2697
2697
|
const i = () => t.value = !0;
|
|
2698
|
-
return (f, g) => (w(),
|
|
2699
|
-
t.value ? q("", !0) : (w(),
|
|
2698
|
+
return (f, g) => (w(), $("div", null, [
|
|
2699
|
+
t.value ? q("", !0) : (w(), $("div", {
|
|
2700
2700
|
key: 0,
|
|
2701
2701
|
ref_key: "strMessage",
|
|
2702
2702
|
ref: a,
|
|
@@ -2767,7 +2767,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2767
2767
|
current: Object
|
|
2768
2768
|
},
|
|
2769
2769
|
setup(o) {
|
|
2770
|
-
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i =
|
|
2770
|
+
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i = O(e.selection.items), s = O(""), f = () => {
|
|
2771
2771
|
i.value.length && t.emit("vf-fetch", {
|
|
2772
2772
|
params: {
|
|
2773
2773
|
q: "delete",
|
|
@@ -2789,31 +2789,31 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2789
2789
|
type: "button",
|
|
2790
2790
|
onClick: f,
|
|
2791
2791
|
class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
2792
|
-
},
|
|
2792
|
+
}, E(k(n)("Yes, Delete!")), 1),
|
|
2793
2793
|
h("button", {
|
|
2794
2794
|
type: "button",
|
|
2795
2795
|
onClick: m[0] || (m[0] = (d) => k(t).emit("vf-modal-close")),
|
|
2796
2796
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
2797
|
-
},
|
|
2798
|
-
h("div", Un,
|
|
2797
|
+
}, E(k(n)("Cancel")), 1),
|
|
2798
|
+
h("div", Un, E(k(n)("This action cannot be undone.")), 1)
|
|
2799
2799
|
]),
|
|
2800
2800
|
default: F(() => [
|
|
2801
2801
|
h("div", En, [
|
|
2802
2802
|
Tn,
|
|
2803
2803
|
h("div", An, [
|
|
2804
|
-
h("h3", On,
|
|
2804
|
+
h("h3", On, E(k(n)("Delete files")), 1),
|
|
2805
2805
|
h("div", Pn, [
|
|
2806
|
-
h("p", In,
|
|
2807
|
-
(w(!0),
|
|
2808
|
-
d.type == "dir" ? (w(),
|
|
2809
|
-
h("span", Hn,
|
|
2806
|
+
h("p", In, E(k(n)("Are you sure you want to delete these files ?")), 1),
|
|
2807
|
+
(w(!0), $(ce, null, be(i.value, (d) => (w(), $("p", jn, [
|
|
2808
|
+
d.type == "dir" ? (w(), $("svg", Nn, Vn)) : (w(), $("svg", zn, Rn)),
|
|
2809
|
+
h("span", Hn, E(d.basename), 1)
|
|
2810
2810
|
]))), 256)),
|
|
2811
2811
|
s.value.length ? (w(), G(Ce, {
|
|
2812
2812
|
key: 0,
|
|
2813
2813
|
error: ""
|
|
2814
2814
|
}, {
|
|
2815
2815
|
default: F(() => [
|
|
2816
|
-
le(
|
|
2816
|
+
le(E(s.value), 1)
|
|
2817
2817
|
]),
|
|
2818
2818
|
_: 1
|
|
2819
2819
|
})) : q("", !0)
|
|
@@ -2856,7 +2856,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2856
2856
|
type: "button",
|
|
2857
2857
|
onClick: n[0] || (n[0] = (i) => k(e).emit("vf-modal-close")),
|
|
2858
2858
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
2859
|
-
},
|
|
2859
|
+
}, E(k(t)("Close")), 1)
|
|
2860
2860
|
]),
|
|
2861
2861
|
default: F(() => {
|
|
2862
2862
|
var i, s, f, g;
|
|
@@ -2864,9 +2864,9 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2864
2864
|
h("div", Wn, [
|
|
2865
2865
|
Xn,
|
|
2866
2866
|
h("div", Fn, [
|
|
2867
|
-
h("h3", qn,
|
|
2867
|
+
h("h3", qn, E((s = (i = o.selection) == null ? void 0 : i.title) != null ? s : "Title"), 1),
|
|
2868
2868
|
h("div", Gn, [
|
|
2869
|
-
h("p", Jn,
|
|
2869
|
+
h("p", Jn, E((g = (f = o.selection) == null ? void 0 : f.message) != null ? g : "Message") + ".", 1)
|
|
2870
2870
|
])
|
|
2871
2871
|
])
|
|
2872
2872
|
])
|
|
@@ -2901,7 +2901,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2901
2901
|
current: Object
|
|
2902
2902
|
},
|
|
2903
2903
|
setup(o) {
|
|
2904
|
-
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i =
|
|
2904
|
+
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i = O(""), s = O(""), f = () => {
|
|
2905
2905
|
i.value != "" && t.emit("vf-fetch", {
|
|
2906
2906
|
params: {
|
|
2907
2907
|
q: "newfolder",
|
|
@@ -2923,20 +2923,20 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2923
2923
|
type: "button",
|
|
2924
2924
|
onClick: f,
|
|
2925
2925
|
class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
2926
|
-
},
|
|
2926
|
+
}, E(k(n)("Create")), 1),
|
|
2927
2927
|
h("button", {
|
|
2928
2928
|
type: "button",
|
|
2929
2929
|
onClick: m[1] || (m[1] = (d) => k(t).emit("vf-modal-close")),
|
|
2930
2930
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
2931
|
-
},
|
|
2931
|
+
}, E(k(n)("Cancel")), 1)
|
|
2932
2932
|
]),
|
|
2933
2933
|
default: F(() => [
|
|
2934
2934
|
h("div", es, [
|
|
2935
2935
|
ts,
|
|
2936
2936
|
h("div", rs, [
|
|
2937
|
-
h("h3", is,
|
|
2937
|
+
h("h3", is, E(k(n)("New Folder")), 1),
|
|
2938
2938
|
h("div", as, [
|
|
2939
|
-
h("p", os,
|
|
2939
|
+
h("p", os, E(k(n)("Create a new folder")), 1),
|
|
2940
2940
|
ve(h("input", {
|
|
2941
2941
|
"onUpdate:modelValue": m[0] || (m[0] = (d) => i.value = d),
|
|
2942
2942
|
onKeyup: Ye(f, ["enter"]),
|
|
@@ -2951,7 +2951,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2951
2951
|
error: ""
|
|
2952
2952
|
}, {
|
|
2953
2953
|
default: F(() => [
|
|
2954
|
-
le(
|
|
2954
|
+
le(E(s.value), 1)
|
|
2955
2955
|
]),
|
|
2956
2956
|
_: 1
|
|
2957
2957
|
})) : q("", !0)
|
|
@@ -2988,7 +2988,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
2988
2988
|
current: Object
|
|
2989
2989
|
},
|
|
2990
2990
|
setup(o) {
|
|
2991
|
-
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i =
|
|
2991
|
+
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i = O(""), s = O(""), f = () => {
|
|
2992
2992
|
i.value != "" && t.emit("vf-fetch", {
|
|
2993
2993
|
params: {
|
|
2994
2994
|
q: "newfile",
|
|
@@ -3021,9 +3021,9 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
3021
3021
|
h("div", cs, [
|
|
3022
3022
|
us,
|
|
3023
3023
|
h("div", ds, [
|
|
3024
|
-
h("h3", hs,
|
|
3024
|
+
h("h3", hs, E(k(n)("New File")), 1),
|
|
3025
3025
|
h("div", fs, [
|
|
3026
|
-
h("p", ms,
|
|
3026
|
+
h("p", ms, E(k(n)("Create a new file")), 1),
|
|
3027
3027
|
ve(h("input", {
|
|
3028
3028
|
"onUpdate:modelValue": m[0] || (m[0] = (d) => i.value = d),
|
|
3029
3029
|
onKeyup: Ye(f, ["enter"]),
|
|
@@ -3038,7 +3038,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
3038
3038
|
error: ""
|
|
3039
3039
|
}, {
|
|
3040
3040
|
default: F(() => [
|
|
3041
|
-
le(
|
|
3041
|
+
le(E(s.value), 1)
|
|
3042
3042
|
]),
|
|
3043
3043
|
_: 1
|
|
3044
3044
|
})) : q("", !0)
|
|
@@ -3062,7 +3062,7 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
3062
3062
|
},
|
|
3063
3063
|
emits: ["load"],
|
|
3064
3064
|
setup(o, { emit: e }) {
|
|
3065
|
-
const t = o, a =
|
|
3065
|
+
const t = o, a = O(""), n = O(""), i = O(null), s = O(!1), { apiUrl: f } = Se(), g = O(""), m = O(!1), { t: d } = B("i18n");
|
|
3066
3066
|
xe(() => {
|
|
3067
3067
|
mt(f.value, {
|
|
3068
3068
|
params: { q: "preview", adapter: t.selection.adapter, path: t.selection.item.path },
|
|
@@ -3075,39 +3075,43 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
3075
3075
|
s.value = !s.value, n.value = a.value, s.value == !0 && vt(() => {
|
|
3076
3076
|
i.value.focus();
|
|
3077
3077
|
});
|
|
3078
|
-
}, b = B("ajaxData"),
|
|
3079
|
-
g.value = "", m.value = !1, mt(f.value, {
|
|
3078
|
+
}, b = B("ajaxData"), I = () => {
|
|
3079
|
+
g.value = "", m.value = !1, console.log(b), mt(f.value, {
|
|
3080
3080
|
method: "POST",
|
|
3081
|
-
params:
|
|
3082
|
-
|
|
3083
|
-
|
|
3081
|
+
params: Object.assign(b, {
|
|
3082
|
+
q: "save",
|
|
3083
|
+
adapter: t.selection.adapter,
|
|
3084
|
+
path: t.selection.item.path,
|
|
3085
|
+
content: n.value
|
|
3086
|
+
}),
|
|
3087
|
+
json: !1
|
|
3084
3088
|
}).then((_) => {
|
|
3085
3089
|
g.value = d("Updated."), a.value = _, e("load"), s.value = !s.value;
|
|
3086
3090
|
}).catch((_) => {
|
|
3087
3091
|
g.value = d(_.message), m.value = !0;
|
|
3088
3092
|
});
|
|
3089
3093
|
};
|
|
3090
|
-
return (_,
|
|
3094
|
+
return (_, D) => (w(), $(ce, null, [
|
|
3091
3095
|
h("div", bs, [
|
|
3092
|
-
h("div", ys,
|
|
3096
|
+
h("div", ys, E(o.selection.item.basename), 1),
|
|
3093
3097
|
h("div", ws, [
|
|
3094
|
-
s.value ? (w(),
|
|
3098
|
+
s.value ? (w(), $("button", {
|
|
3095
3099
|
key: 0,
|
|
3096
|
-
onClick:
|
|
3100
|
+
onClick: I,
|
|
3097
3101
|
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"
|
|
3098
|
-
},
|
|
3102
|
+
}, E(k(d)("Save")), 1)) : q("", !0),
|
|
3099
3103
|
h("button", {
|
|
3100
3104
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
3101
|
-
onClick:
|
|
3102
|
-
},
|
|
3105
|
+
onClick: D[0] || (D[0] = (j) => p())
|
|
3106
|
+
}, E(s.value ? k(d)("Cancel") : k(d)("Edit")), 1)
|
|
3103
3107
|
])
|
|
3104
3108
|
]),
|
|
3105
3109
|
h("div", null, [
|
|
3106
|
-
s.value ? (w(),
|
|
3110
|
+
s.value ? (w(), $("div", _s, [
|
|
3107
3111
|
ve(h("textarea", {
|
|
3108
3112
|
ref_key: "editInput",
|
|
3109
3113
|
ref: i,
|
|
3110
|
-
"onUpdate:modelValue":
|
|
3114
|
+
"onUpdate:modelValue": D[1] || (D[1] = (j) => n.value = j),
|
|
3111
3115
|
class: "w-full p-2 rounded dark:bg-gray-700 dark:text-gray-200 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:selection:bg-gray-500 min-h-[200px] text-xs",
|
|
3112
3116
|
name: "text",
|
|
3113
3117
|
id: "",
|
|
@@ -3116,13 +3120,13 @@ const vn = /* @__PURE__ */ h("iframe", {
|
|
|
3116
3120
|
}, null, 512), [
|
|
3117
3121
|
[We, n.value]
|
|
3118
3122
|
])
|
|
3119
|
-
])) : (w(),
|
|
3123
|
+
])) : (w(), $("pre", xs, E(a.value), 1)),
|
|
3120
3124
|
g.value.length ? (w(), G(Ce, {
|
|
3121
3125
|
key: 2,
|
|
3122
3126
|
error: m.value
|
|
3123
3127
|
}, {
|
|
3124
3128
|
default: F(() => [
|
|
3125
|
-
le(
|
|
3129
|
+
le(E(g.value), 1)
|
|
3126
3130
|
]),
|
|
3127
3131
|
_: 1
|
|
3128
3132
|
}, 8, ["error"])) : q("", !0)
|
|
@@ -3522,15 +3526,15 @@ function Js(o) {
|
|
|
3522
3526
|
};
|
|
3523
3527
|
}
|
|
3524
3528
|
function Zs(o, e, t, a) {
|
|
3525
|
-
var n = e.aspectRatio, i = e.naturalWidth, s = e.naturalHeight, f = e.rotate, g = f === void 0 ? 0 : f, m = e.scaleX, d = m === void 0 ? 1 : m, p = e.scaleY, b = p === void 0 ? 1 : p,
|
|
3526
|
-
aspectRatio:
|
|
3529
|
+
var n = e.aspectRatio, i = e.naturalWidth, s = e.naturalHeight, f = e.rotate, g = f === void 0 ? 0 : f, m = e.scaleX, d = m === void 0 ? 1 : m, p = e.scaleY, b = p === void 0 ? 1 : p, I = t.aspectRatio, _ = t.naturalWidth, D = t.naturalHeight, j = a.fillColor, V = j === void 0 ? "transparent" : j, R = a.imageSmoothingEnabled, P = R === void 0 ? !0 : R, ne = a.imageSmoothingQuality, J = ne === void 0 ? "low" : ne, M = a.maxWidth, X = M === void 0 ? 1 / 0 : M, Z = a.maxHeight, ue = Z === void 0 ? 1 / 0 : Z, me = a.minWidth, L = me === void 0 ? 0 : me, H = a.minHeight, N = H === void 0 ? 0 : H, Y = document.createElement("canvas"), U = Y.getContext("2d"), ie = Te({
|
|
3530
|
+
aspectRatio: I,
|
|
3527
3531
|
width: X,
|
|
3528
3532
|
height: ue
|
|
3529
3533
|
}), Q = Te({
|
|
3530
|
-
aspectRatio:
|
|
3534
|
+
aspectRatio: I,
|
|
3531
3535
|
width: L,
|
|
3532
3536
|
height: N
|
|
3533
|
-
}, "cover"), Xe = Math.min(ie.width, Math.max(Q.width, _)), Fe = Math.min(ie.height, Math.max(Q.height,
|
|
3537
|
+
}, "cover"), Xe = Math.min(ie.width, Math.max(Q.width, _)), Fe = Math.min(ie.height, Math.max(Q.height, D)), it = Te({
|
|
3534
3538
|
aspectRatio: n,
|
|
3535
3539
|
width: X,
|
|
3536
3540
|
height: ue
|
|
@@ -3539,7 +3543,7 @@ function Zs(o, e, t, a) {
|
|
|
3539
3543
|
width: L,
|
|
3540
3544
|
height: N
|
|
3541
3545
|
}, "cover"), ot = Math.min(it.width, Math.max(at.width, i)), Ne = Math.min(it.height, Math.max(at.height, s)), yt = [-ot / 2, -Ne / 2, ot, Ne];
|
|
3542
|
-
return Y.width = Ue(Xe), Y.height = Ue(Fe), U.fillStyle = V, U.fillRect(0, 0, Xe, Fe), U.save(), U.translate(Xe / 2, Fe / 2), U.rotate(g * Math.PI / 180), U.scale(d, b), U.imageSmoothingEnabled =
|
|
3546
|
+
return Y.width = Ue(Xe), Y.height = Ue(Fe), U.fillStyle = V, U.fillRect(0, 0, Xe, Fe), U.save(), U.translate(Xe / 2, Fe / 2), U.rotate(g * Math.PI / 180), U.scale(d, b), U.imageSmoothingEnabled = P, U.imageSmoothingQuality = J, U.drawImage.apply(U, [o].concat(Tr(yt.map(function(Le) {
|
|
3543
3547
|
return Math.floor(Ue(Le));
|
|
3544
3548
|
})))), U.restore(), Y;
|
|
3545
3549
|
}
|
|
@@ -3586,10 +3590,10 @@ function il(o) {
|
|
|
3586
3590
|
}
|
|
3587
3591
|
}
|
|
3588
3592
|
if (i) {
|
|
3589
|
-
var b = e.getUint16(i, a),
|
|
3593
|
+
var b = e.getUint16(i, a), I, _;
|
|
3590
3594
|
for (_ = 0; _ < b; _ += 1)
|
|
3591
|
-
if (
|
|
3592
|
-
|
|
3595
|
+
if (I = i + _ * 12 + 2, e.getUint16(I, a) === 274) {
|
|
3596
|
+
I += 8, t = e.getUint16(I, a), e.setUint16(I, 1, a);
|
|
3593
3597
|
break;
|
|
3594
3598
|
}
|
|
3595
3599
|
}
|
|
@@ -3671,8 +3675,8 @@ var ol = {
|
|
|
3671
3675
|
}
|
|
3672
3676
|
if (t)
|
|
3673
3677
|
if (f > (m ? 0 : 1)) {
|
|
3674
|
-
var
|
|
3675
|
-
i.minLeft = Math.min(0,
|
|
3678
|
+
var I = n.width - i.width, _ = n.height - i.height;
|
|
3679
|
+
i.minLeft = Math.min(0, I), i.minTop = Math.min(0, _), i.maxLeft = Math.max(0, I), i.maxTop = Math.max(0, _), m && this.limited && (i.minLeft = Math.min(s.left, s.left + (s.width - i.width)), i.minTop = Math.min(s.top, s.top + (s.height - i.height)), i.maxLeft = s.left, i.maxTop = s.top, f === 2 && (i.width >= n.width && (i.minLeft = Math.min(0, I), i.maxLeft = Math.max(0, I)), i.height >= n.height && (i.minTop = Math.min(0, _), i.maxTop = Math.max(0, _))));
|
|
3676
3680
|
} else
|
|
3677
3681
|
i.minLeft = -i.width, i.minTop = -i.height, i.maxLeft = n.width, i.maxTop = n.height;
|
|
3678
3682
|
},
|
|
@@ -3770,10 +3774,10 @@ var ol = {
|
|
|
3770
3774
|
translateX: -g,
|
|
3771
3775
|
translateY: -m
|
|
3772
3776
|
}, e)))), oe(this.previews, function(d) {
|
|
3773
|
-
var p = Lt(d, ut), b = p.width,
|
|
3774
|
-
n && (j = b / n,
|
|
3777
|
+
var p = Lt(d, ut), b = p.width, I = p.height, _ = b, D = I, j = 1;
|
|
3778
|
+
n && (j = b / n, D = i * j), i && D > I && (j = I / i, _ = n * j, D = I), Ee(d, {
|
|
3775
3779
|
width: _,
|
|
3776
|
-
height:
|
|
3780
|
+
height: D
|
|
3777
3781
|
}), Ee(d.getElementsByTagName("img")[0], te({
|
|
3778
3782
|
width: s * j,
|
|
3779
3783
|
height: f * j
|
|
@@ -3858,118 +3862,118 @@ var ol = {
|
|
|
3858
3862
|
}
|
|
3859
3863
|
}, cl = {
|
|
3860
3864
|
change: function(e) {
|
|
3861
|
-
var t = this.options, a = this.canvasData, n = this.containerData, i = this.cropBoxData, s = this.pointers, f = this.action, g = t.aspectRatio, m = i.left, d = i.top, p = i.width, b = i.height,
|
|
3862
|
-
!g && e.shiftKey && (g = p && b ? p / b : 1), this.limited && (
|
|
3863
|
-
var J = s[Object.keys(s)[0]],
|
|
3865
|
+
var t = this.options, a = this.canvasData, n = this.containerData, i = this.cropBoxData, s = this.pointers, f = this.action, g = t.aspectRatio, m = i.left, d = i.top, p = i.width, b = i.height, I = m + p, _ = d + b, D = 0, j = 0, V = n.width, R = n.height, P = !0, ne;
|
|
3866
|
+
!g && e.shiftKey && (g = p && b ? p / b : 1), this.limited && (D = i.minLeft, j = i.minTop, V = D + Math.min(n.width, a.width, a.left + a.width), R = j + Math.min(n.height, a.height, a.top + a.height));
|
|
3867
|
+
var J = s[Object.keys(s)[0]], M = {
|
|
3864
3868
|
x: J.endX - J.startX,
|
|
3865
3869
|
y: J.endY - J.startY
|
|
3866
3870
|
}, X = function(ue) {
|
|
3867
3871
|
switch (ue) {
|
|
3868
3872
|
case Ae:
|
|
3869
|
-
|
|
3873
|
+
I + M.x > V && (M.x = V - I);
|
|
3870
3874
|
break;
|
|
3871
3875
|
case Oe:
|
|
3872
|
-
m +
|
|
3876
|
+
m + M.x < D && (M.x = D - m);
|
|
3873
3877
|
break;
|
|
3874
3878
|
case $e:
|
|
3875
|
-
d +
|
|
3879
|
+
d + M.y < j && (M.y = j - d);
|
|
3876
3880
|
break;
|
|
3877
3881
|
case Be:
|
|
3878
|
-
_ +
|
|
3882
|
+
_ + M.y > R && (M.y = R - _);
|
|
3879
3883
|
break;
|
|
3880
3884
|
}
|
|
3881
3885
|
};
|
|
3882
3886
|
switch (f) {
|
|
3883
3887
|
case Bt:
|
|
3884
|
-
m +=
|
|
3888
|
+
m += M.x, d += M.y;
|
|
3885
3889
|
break;
|
|
3886
3890
|
case Ae:
|
|
3887
|
-
if (
|
|
3888
|
-
|
|
3891
|
+
if (M.x >= 0 && (I >= V || g && (d <= j || _ >= R))) {
|
|
3892
|
+
P = !1;
|
|
3889
3893
|
break;
|
|
3890
3894
|
}
|
|
3891
|
-
X(Ae), p +=
|
|
3895
|
+
X(Ae), p += M.x, p < 0 && (f = Oe, p = -p, m -= p), g && (b = p / g, d += (i.height - b) / 2);
|
|
3892
3896
|
break;
|
|
3893
3897
|
case $e:
|
|
3894
|
-
if (
|
|
3895
|
-
|
|
3898
|
+
if (M.y <= 0 && (d <= j || g && (m <= D || I >= V))) {
|
|
3899
|
+
P = !1;
|
|
3896
3900
|
break;
|
|
3897
3901
|
}
|
|
3898
|
-
X($e), b -=
|
|
3902
|
+
X($e), b -= M.y, d += M.y, b < 0 && (f = Be, b = -b, d -= b), g && (p = b * g, m += (i.width - p) / 2);
|
|
3899
3903
|
break;
|
|
3900
3904
|
case Oe:
|
|
3901
|
-
if (
|
|
3902
|
-
|
|
3905
|
+
if (M.x <= 0 && (m <= D || g && (d <= j || _ >= R))) {
|
|
3906
|
+
P = !1;
|
|
3903
3907
|
break;
|
|
3904
3908
|
}
|
|
3905
|
-
X(Oe), p -=
|
|
3909
|
+
X(Oe), p -= M.x, m += M.x, p < 0 && (f = Ae, p = -p, m -= p), g && (b = p / g, d += (i.height - b) / 2);
|
|
3906
3910
|
break;
|
|
3907
3911
|
case Be:
|
|
3908
|
-
if (
|
|
3909
|
-
|
|
3912
|
+
if (M.y >= 0 && (_ >= R || g && (m <= D || I >= V))) {
|
|
3913
|
+
P = !1;
|
|
3910
3914
|
break;
|
|
3911
3915
|
}
|
|
3912
|
-
X(Be), b +=
|
|
3916
|
+
X(Be), b += M.y, b < 0 && (f = $e, b = -b, d -= b), g && (p = b * g, m += (i.width - p) / 2);
|
|
3913
3917
|
break;
|
|
3914
3918
|
case Ge:
|
|
3915
3919
|
if (g) {
|
|
3916
|
-
if (
|
|
3917
|
-
|
|
3920
|
+
if (M.y <= 0 && (d <= j || I >= V)) {
|
|
3921
|
+
P = !1;
|
|
3918
3922
|
break;
|
|
3919
3923
|
}
|
|
3920
|
-
X($e), b -=
|
|
3924
|
+
X($e), b -= M.y, d += M.y, p = b * g;
|
|
3921
3925
|
} else
|
|
3922
|
-
X($e), X(Ae),
|
|
3926
|
+
X($e), X(Ae), M.x >= 0 ? I < V ? p += M.x : M.y <= 0 && d <= j && (P = !1) : p += M.x, M.y <= 0 ? d > j && (b -= M.y, d += M.y) : (b -= M.y, d += M.y);
|
|
3923
3927
|
p < 0 && b < 0 ? (f = Qe, b = -b, p = -p, d -= b, m -= p) : p < 0 ? (f = Je, p = -p, m -= p) : b < 0 && (f = Ze, b = -b, d -= b);
|
|
3924
3928
|
break;
|
|
3925
3929
|
case Je:
|
|
3926
3930
|
if (g) {
|
|
3927
|
-
if (
|
|
3928
|
-
|
|
3931
|
+
if (M.y <= 0 && (d <= j || m <= D)) {
|
|
3932
|
+
P = !1;
|
|
3929
3933
|
break;
|
|
3930
3934
|
}
|
|
3931
|
-
X($e), b -=
|
|
3935
|
+
X($e), b -= M.y, d += M.y, p = b * g, m += i.width - p;
|
|
3932
3936
|
} else
|
|
3933
|
-
X($e), X(Oe),
|
|
3937
|
+
X($e), X(Oe), M.x <= 0 ? m > D ? (p -= M.x, m += M.x) : M.y <= 0 && d <= j && (P = !1) : (p -= M.x, m += M.x), M.y <= 0 ? d > j && (b -= M.y, d += M.y) : (b -= M.y, d += M.y);
|
|
3934
3938
|
p < 0 && b < 0 ? (f = Ze, b = -b, p = -p, d -= b, m -= p) : p < 0 ? (f = Ge, p = -p, m -= p) : b < 0 && (f = Qe, b = -b, d -= b);
|
|
3935
3939
|
break;
|
|
3936
3940
|
case Qe:
|
|
3937
3941
|
if (g) {
|
|
3938
|
-
if (
|
|
3939
|
-
|
|
3942
|
+
if (M.x <= 0 && (m <= D || _ >= R)) {
|
|
3943
|
+
P = !1;
|
|
3940
3944
|
break;
|
|
3941
3945
|
}
|
|
3942
|
-
X(Oe), p -=
|
|
3946
|
+
X(Oe), p -= M.x, m += M.x, b = p / g;
|
|
3943
3947
|
} else
|
|
3944
|
-
X(Be), X(Oe),
|
|
3948
|
+
X(Be), X(Oe), M.x <= 0 ? m > D ? (p -= M.x, m += M.x) : M.y >= 0 && _ >= R && (P = !1) : (p -= M.x, m += M.x), M.y >= 0 ? _ < R && (b += M.y) : b += M.y;
|
|
3945
3949
|
p < 0 && b < 0 ? (f = Ge, b = -b, p = -p, d -= b, m -= p) : p < 0 ? (f = Ze, p = -p, m -= p) : b < 0 && (f = Je, b = -b, d -= b);
|
|
3946
3950
|
break;
|
|
3947
3951
|
case Ze:
|
|
3948
3952
|
if (g) {
|
|
3949
|
-
if (
|
|
3950
|
-
|
|
3953
|
+
if (M.x >= 0 && (I >= V || _ >= R)) {
|
|
3954
|
+
P = !1;
|
|
3951
3955
|
break;
|
|
3952
3956
|
}
|
|
3953
|
-
X(Ae), p +=
|
|
3957
|
+
X(Ae), p += M.x, b = p / g;
|
|
3954
3958
|
} else
|
|
3955
|
-
X(Be), X(Ae),
|
|
3959
|
+
X(Be), X(Ae), M.x >= 0 ? I < V ? p += M.x : M.y >= 0 && _ >= R && (P = !1) : p += M.x, M.y >= 0 ? _ < R && (b += M.y) : b += M.y;
|
|
3956
3960
|
p < 0 && b < 0 ? (f = Je, b = -b, p = -p, d -= b, m -= p) : p < 0 ? (f = Qe, p = -p, m -= p) : b < 0 && (f = Ge, b = -b, d -= b);
|
|
3957
3961
|
break;
|
|
3958
3962
|
case Or:
|
|
3959
|
-
this.move(
|
|
3963
|
+
this.move(M.x, M.y), P = !1;
|
|
3960
3964
|
break;
|
|
3961
3965
|
case Pr:
|
|
3962
|
-
this.zoom(qs(s), e),
|
|
3966
|
+
this.zoom(qs(s), e), P = !1;
|
|
3963
3967
|
break;
|
|
3964
3968
|
case Ar:
|
|
3965
|
-
if (!
|
|
3966
|
-
|
|
3969
|
+
if (!M.x || !M.y) {
|
|
3970
|
+
P = !1;
|
|
3967
3971
|
break;
|
|
3968
3972
|
}
|
|
3969
|
-
ne = Rr(this.cropper), m = J.startX - ne.left, d = J.startY - ne.top, p = i.minWidth, b = i.minHeight,
|
|
3973
|
+
ne = Rr(this.cropper), m = J.startX - ne.left, d = J.startY - ne.top, p = i.minWidth, b = i.minHeight, M.x > 0 ? f = M.y > 0 ? Ze : Ge : M.x < 0 && (m -= p, f = M.y > 0 ? Qe : Je), M.y < 0 && (d -= b), this.cropped || (_e(this.cropBox, fe), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
3970
3974
|
break;
|
|
3971
3975
|
}
|
|
3972
|
-
|
|
3976
|
+
P && (i.width = p, i.height = b, i.left = m, i.top = d, this.action = f, this.renderCropBox()), oe(s, function(Z) {
|
|
3973
3977
|
Z.startX = Z.endX, Z.startY = Z.endY;
|
|
3974
3978
|
});
|
|
3975
3979
|
}
|
|
@@ -4027,11 +4031,11 @@ var ol = {
|
|
|
4027
4031
|
}) === !1)
|
|
4028
4032
|
return this;
|
|
4029
4033
|
if (a) {
|
|
4030
|
-
var b = this.pointers,
|
|
4034
|
+
var b = this.pointers, I = Rr(this.cropper), _ = b && Object.keys(b).length ? Gs(b) : {
|
|
4031
4035
|
pageX: a.pageX,
|
|
4032
4036
|
pageY: a.pageY
|
|
4033
4037
|
};
|
|
4034
|
-
i.left -= (d - s) * ((_.pageX -
|
|
4038
|
+
i.left -= (d - s) * ((_.pageX - I.left - i.left) / s), i.top -= (p - f) * ((_.pageY - I.top - i.top) / f);
|
|
4035
4039
|
} else
|
|
4036
4040
|
Re(t) && W(t.x) && W(t.y) ? (i.left -= (d - s) * ((t.x - i.left) / s), i.top -= (p - f) * ((t.y - i.top) / f)) : (i.left -= (d - s) / 2, i.top -= (p - f) / 2);
|
|
4037
4041
|
i.width = d, i.height = p, this.renderCanvas(!0);
|
|
@@ -4137,18 +4141,18 @@ var ol = {
|
|
|
4137
4141
|
aspectRatio: d,
|
|
4138
4142
|
width: e.minWidth || 0,
|
|
4139
4143
|
height: e.minHeight || 0
|
|
4140
|
-
}, "cover"),
|
|
4144
|
+
}, "cover"), I = Te({
|
|
4141
4145
|
aspectRatio: d,
|
|
4142
4146
|
width: e.width || (m !== 1 ? a.width : f),
|
|
4143
4147
|
height: e.height || (m !== 1 ? a.height : g)
|
|
4144
|
-
}), _ =
|
|
4145
|
-
_ = Math.min(p.width, Math.max(b.width, _)),
|
|
4148
|
+
}), _ = I.width, D = I.height;
|
|
4149
|
+
_ = Math.min(p.width, Math.max(b.width, _)), D = Math.min(p.height, Math.max(b.height, D));
|
|
4146
4150
|
var j = document.createElement("canvas"), V = j.getContext("2d");
|
|
4147
|
-
j.width = Ue(_), j.height = Ue(
|
|
4148
|
-
var R = e.imageSmoothingEnabled,
|
|
4149
|
-
V.imageSmoothingEnabled =
|
|
4150
|
-
var J = a.width,
|
|
4151
|
-
X <= -f || X > J ? (X = 0, ue = 0, L = 0, N = 0) : X <= 0 ? (L = -X, X = 0, ue = Math.min(J, f + X), N = ue) : X <= J && (L = 0, ue = Math.min(f, J - X), N = ue), ue <= 0 || Z <= -g || Z >
|
|
4151
|
+
j.width = Ue(_), j.height = Ue(D), V.fillStyle = e.fillColor || "transparent", V.fillRect(0, 0, _, D);
|
|
4152
|
+
var R = e.imageSmoothingEnabled, P = R === void 0 ? !0 : R, ne = e.imageSmoothingQuality;
|
|
4153
|
+
V.imageSmoothingEnabled = P, ne && (V.imageSmoothingQuality = ne);
|
|
4154
|
+
var J = a.width, M = a.height, X = i, Z = s, ue, me, L, H, N, Y;
|
|
4155
|
+
X <= -f || X > J ? (X = 0, ue = 0, L = 0, N = 0) : X <= 0 ? (L = -X, X = 0, ue = Math.min(J, f + X), N = ue) : X <= J && (L = 0, ue = Math.min(f, J - X), N = ue), ue <= 0 || Z <= -g || Z > M ? (Z = 0, me = 0, H = 0, Y = 0) : Z <= 0 ? (H = -Z, Z = 0, me = Math.min(M, g + Z), Y = me) : Z <= M && (H = 0, me = Math.min(g, M - Z), Y = me);
|
|
4152
4156
|
var U = [X, Z, ue, me];
|
|
4153
4157
|
if (N > 0 && Y > 0) {
|
|
4154
4158
|
var ie = _ / f;
|
|
@@ -4307,9 +4311,9 @@ const hl = { class: "flex" }, fl = {
|
|
|
4307
4311
|
},
|
|
4308
4312
|
emits: ["load"],
|
|
4309
4313
|
setup(o, { emit: e }) {
|
|
4310
|
-
const t = o, { t: a } = B("i18n"), { apiUrl: n } = Se(), i =
|
|
4314
|
+
const t = o, { t: a } = B("i18n"), { apiUrl: n } = Se(), i = O(null), s = O(null), f = O(!1), g = O(""), m = O(!1), d = () => {
|
|
4311
4315
|
f.value = !f.value, f.value ? s.value = new Ur(i.value, {
|
|
4312
|
-
crop(
|
|
4316
|
+
crop(I) {
|
|
4313
4317
|
}
|
|
4314
4318
|
}) : s.value.destroy();
|
|
4315
4319
|
}, p = B("ajaxData"), b = () => {
|
|
@@ -4317,13 +4321,17 @@ const hl = { class: "flex" }, fl = {
|
|
|
4317
4321
|
width: 795,
|
|
4318
4322
|
height: 341
|
|
4319
4323
|
}).toBlob(
|
|
4320
|
-
(
|
|
4324
|
+
(I) => {
|
|
4321
4325
|
g.value = "", m.value = !1, mt(n.value, {
|
|
4322
4326
|
method: "POST",
|
|
4323
|
-
params:
|
|
4327
|
+
params: Object.assign(p, {
|
|
4328
|
+
q: "upload",
|
|
4329
|
+
adapter: t.selection.adapter,
|
|
4330
|
+
path: t.selection.item.path,
|
|
4331
|
+
file: I
|
|
4332
|
+
}),
|
|
4324
4333
|
name: t.selection.item.basename,
|
|
4325
|
-
json: !1
|
|
4326
|
-
...p
|
|
4334
|
+
json: !1
|
|
4327
4335
|
}).then((_) => {
|
|
4328
4336
|
g.value = a("Updated."), i.value.src = $t(t.selection.adapter, t.selection.item.path), d(), e("load");
|
|
4329
4337
|
}).catch((_) => {
|
|
@@ -4334,19 +4342,19 @@ const hl = { class: "flex" }, fl = {
|
|
|
4334
4342
|
};
|
|
4335
4343
|
return xe(() => {
|
|
4336
4344
|
e("load");
|
|
4337
|
-
}), (
|
|
4345
|
+
}), (I, _) => (w(), $(ce, null, [
|
|
4338
4346
|
h("div", hl, [
|
|
4339
|
-
h("h3", fl,
|
|
4347
|
+
h("h3", fl, E(o.selection.item.basename), 1),
|
|
4340
4348
|
h("div", ml, [
|
|
4341
|
-
f.value ? (w(),
|
|
4349
|
+
f.value ? (w(), $("button", {
|
|
4342
4350
|
key: 0,
|
|
4343
4351
|
onClick: b,
|
|
4344
4352
|
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"
|
|
4345
|
-
},
|
|
4353
|
+
}, E(k(a)("Crop")), 1)) : q("", !0),
|
|
4346
4354
|
h("button", {
|
|
4347
4355
|
class: "ml-1 px-2 py-1 text-blue-500",
|
|
4348
|
-
onClick: _[0] || (_[0] = (
|
|
4349
|
-
},
|
|
4356
|
+
onClick: _[0] || (_[0] = (D) => d())
|
|
4357
|
+
}, E(f.value ? k(a)("Cancel") : k(a)("Edit")), 1)
|
|
4350
4358
|
])
|
|
4351
4359
|
]),
|
|
4352
4360
|
h("div", pl, [
|
|
@@ -4363,7 +4371,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
4363
4371
|
error: m.value
|
|
4364
4372
|
}, {
|
|
4365
4373
|
default: F(() => [
|
|
4366
|
-
le(
|
|
4374
|
+
le(E(g.value), 1)
|
|
4367
4375
|
]),
|
|
4368
4376
|
_: 1
|
|
4369
4377
|
}, 8, ["error"])) : q("", !0)
|
|
@@ -4381,8 +4389,8 @@ const hl = { class: "flex" }, fl = {
|
|
|
4381
4389
|
setup(o, { emit: e }) {
|
|
4382
4390
|
return xe(() => {
|
|
4383
4391
|
e("load");
|
|
4384
|
-
}), (t, a) => (w(),
|
|
4385
|
-
h("h3", bl,
|
|
4392
|
+
}), (t, a) => (w(), $(ce, null, [
|
|
4393
|
+
h("h3", bl, E(o.selection.item.basename), 1),
|
|
4386
4394
|
yl
|
|
4387
4395
|
], 64));
|
|
4388
4396
|
}
|
|
@@ -4403,8 +4411,8 @@ const hl = { class: "flex" }, fl = {
|
|
|
4403
4411
|
const t = o, { apiUrl: a } = Se(), n = () => a.value + "?" + je({ q: "preview", adapter: t.selection.adapter, path: t.selection.item.path });
|
|
4404
4412
|
return xe(() => {
|
|
4405
4413
|
e("load");
|
|
4406
|
-
}), (i, s) => (w(),
|
|
4407
|
-
h("h3", xl,
|
|
4414
|
+
}), (i, s) => (w(), $(ce, null, [
|
|
4415
|
+
h("h3", xl, E(o.selection.item.basename), 1),
|
|
4408
4416
|
h("div", null, [
|
|
4409
4417
|
h("video", _l, [
|
|
4410
4418
|
h("source", {
|
|
@@ -4432,8 +4440,8 @@ const hl = { class: "flex" }, fl = {
|
|
|
4432
4440
|
const t = o, { apiUrl: a } = Se(), n = () => a.value + "?" + je({ q: "preview", adapter: t.selection.adapter, path: t.selection.item.path });
|
|
4433
4441
|
return xe(() => {
|
|
4434
4442
|
e("load");
|
|
4435
|
-
}), (i, s) => (w(),
|
|
4436
|
-
h("h3", Cl,
|
|
4443
|
+
}), (i, s) => (w(), $(ce, null, [
|
|
4444
|
+
h("h3", Cl, E(o.selection.item.basename), 1),
|
|
4437
4445
|
h("div", null, [
|
|
4438
4446
|
h("audio", Ml, [
|
|
4439
4447
|
h("source", {
|
|
@@ -4458,8 +4466,8 @@ const hl = { class: "flex" }, fl = {
|
|
|
4458
4466
|
const t = o, { apiUrl: a } = Se(), n = () => a.value + "?" + je({ q: "preview", adapter: t.selection.adapter, path: t.selection.item.path });
|
|
4459
4467
|
return xe(() => {
|
|
4460
4468
|
e("load");
|
|
4461
|
-
}), (i, s) => (w(),
|
|
4462
|
-
h("h3", Al,
|
|
4469
|
+
}), (i, s) => (w(), $(ce, null, [
|
|
4470
|
+
h("h3", Al, E(o.selection.item.basename), 1),
|
|
4463
4471
|
h("div", null, [
|
|
4464
4472
|
h("object", {
|
|
4465
4473
|
class: "h-[60vh]",
|
|
@@ -4513,7 +4521,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
4513
4521
|
selection: Object
|
|
4514
4522
|
},
|
|
4515
4523
|
setup(o) {
|
|
4516
|
-
const e = o, { apiUrl: t } = Se(), a = B("emitter"), { t: n } = B("i18n"), i =
|
|
4524
|
+
const e = o, { apiUrl: t } = Se(), a = B("emitter"), { t: n } = B("i18n"), i = O(!1), s = (m) => i.value = m, f = (m) => {
|
|
4517
4525
|
var d;
|
|
4518
4526
|
return ((d = e.selection.item.mime_type) != null ? d : "").startsWith(m);
|
|
4519
4527
|
}, g = () => {
|
|
@@ -4526,12 +4534,12 @@ const hl = { class: "flex" }, fl = {
|
|
|
4526
4534
|
type: "button",
|
|
4527
4535
|
onClick: d[6] || (d[6] = (p) => k(a).emit("vf-modal-close")),
|
|
4528
4536
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4529
|
-
},
|
|
4537
|
+
}, E(k(n)("Close")), 1),
|
|
4530
4538
|
h("button", {
|
|
4531
4539
|
type: "button",
|
|
4532
4540
|
onClick: d[7] || (d[7] = (p) => g()),
|
|
4533
4541
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4534
|
-
},
|
|
4542
|
+
}, E(k(n)("Download")), 1)
|
|
4535
4543
|
]),
|
|
4536
4544
|
default: F(() => [
|
|
4537
4545
|
h("div", jl, [
|
|
@@ -4564,11 +4572,11 @@ const hl = { class: "flex" }, fl = {
|
|
|
4564
4572
|
}, null, 8, ["selection"]))
|
|
4565
4573
|
]),
|
|
4566
4574
|
h("div", Ll, [
|
|
4567
|
-
h("p", null,
|
|
4568
|
-
h("p", null, "mime_type: " +
|
|
4569
|
-
i.value == !1 ? (w(),
|
|
4575
|
+
h("p", null, E(o.selection.item.path), 1),
|
|
4576
|
+
h("p", null, "mime_type: " + E(o.selection.item.mime_type), 1),
|
|
4577
|
+
i.value == !1 ? (w(), $("div", Vl, [
|
|
4570
4578
|
zl,
|
|
4571
|
-
h("span", null,
|
|
4579
|
+
h("span", null, E(k(n)("Loading")), 1)
|
|
4572
4580
|
])) : q("", !0)
|
|
4573
4581
|
])
|
|
4574
4582
|
])
|
|
@@ -4631,7 +4639,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
4631
4639
|
current: Object
|
|
4632
4640
|
},
|
|
4633
4641
|
setup(o) {
|
|
4634
|
-
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i =
|
|
4642
|
+
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i = O(e.selection.items[0]), s = O(e.selection.items[0].basename), f = O(""), g = () => {
|
|
4635
4643
|
s.value != "" && t.emit("vf-fetch", {
|
|
4636
4644
|
params: {
|
|
4637
4645
|
q: "rename",
|
|
@@ -4654,22 +4662,22 @@ const hl = { class: "flex" }, fl = {
|
|
|
4654
4662
|
type: "button",
|
|
4655
4663
|
onClick: g,
|
|
4656
4664
|
class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4657
|
-
},
|
|
4665
|
+
}, E(k(n)("Rename")), 1),
|
|
4658
4666
|
h("button", {
|
|
4659
4667
|
type: "button",
|
|
4660
4668
|
onClick: d[1] || (d[1] = (p) => k(t).emit("vf-modal-close")),
|
|
4661
4669
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4662
|
-
},
|
|
4670
|
+
}, E(k(n)("Cancel")), 1)
|
|
4663
4671
|
]),
|
|
4664
4672
|
default: F(() => [
|
|
4665
4673
|
h("div", Hl, [
|
|
4666
4674
|
Ul,
|
|
4667
4675
|
h("div", Kl, [
|
|
4668
|
-
h("h3", Yl,
|
|
4676
|
+
h("h3", Yl, E(k(n)("Rename")), 1),
|
|
4669
4677
|
h("div", Wl, [
|
|
4670
4678
|
h("p", Xl, [
|
|
4671
|
-
i.value.type == "dir" ? (w(),
|
|
4672
|
-
h("span", ec,
|
|
4679
|
+
i.value.type == "dir" ? (w(), $("svg", Fl, Gl)) : (w(), $("svg", Jl, Ql)),
|
|
4680
|
+
h("span", ec, E(i.value.basename), 1)
|
|
4673
4681
|
]),
|
|
4674
4682
|
ve(h("input", {
|
|
4675
4683
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => s.value = p),
|
|
@@ -4685,7 +4693,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
4685
4693
|
error: ""
|
|
4686
4694
|
}, {
|
|
4687
4695
|
default: F(() => [
|
|
4688
|
-
le(
|
|
4696
|
+
le(E(f.value), 1)
|
|
4689
4697
|
]),
|
|
4690
4698
|
_: 1
|
|
4691
4699
|
})) : q("", !0)
|
|
@@ -4724,9 +4732,9 @@ const hl = { class: "flex" }, fl = {
|
|
|
4724
4732
|
current: Object
|
|
4725
4733
|
},
|
|
4726
4734
|
setup(o) {
|
|
4727
|
-
const e = o, t = B("emitter"), { apiUrl: a } = Se(), { t: n } = B("i18n"), i =
|
|
4735
|
+
const e = o, t = B("emitter"), { apiUrl: a } = Se(), { t: n } = B("i18n"), i = O(null), s = O(null), f = O(null), g = O([]), m = O(""), d = O(!0), p = () => {
|
|
4728
4736
|
m.value = "", i.value.start();
|
|
4729
|
-
};
|
|
4737
|
+
}, b = B("ajaxData");
|
|
4730
4738
|
return xe(() => {
|
|
4731
4739
|
i.value = new _t.Uploader({
|
|
4732
4740
|
runtimes: "html5",
|
|
@@ -4735,61 +4743,61 @@ const hl = { class: "flex" }, fl = {
|
|
|
4735
4743
|
max_file_size: "10mb",
|
|
4736
4744
|
multiple_queues: !0,
|
|
4737
4745
|
file_data_name: "file",
|
|
4738
|
-
url: a.value + "?" + je({ q: "upload", adapter: e.current.adapter, path: e.current.dirname }),
|
|
4746
|
+
url: a.value + "?" + je(Object.assign(b, { q: "upload", adapter: e.current.adapter, path: e.current.dirname })),
|
|
4739
4747
|
init: {
|
|
4740
4748
|
PostInit: function() {
|
|
4741
4749
|
},
|
|
4742
|
-
FilesAdded: function(
|
|
4743
|
-
d.value = !1, _t.each(
|
|
4750
|
+
FilesAdded: function(I, _) {
|
|
4751
|
+
d.value = !1, _t.each(_, function(D) {
|
|
4744
4752
|
g.value.push({
|
|
4745
|
-
id:
|
|
4746
|
-
name:
|
|
4747
|
-
size: _t.formatSize(
|
|
4753
|
+
id: D.id,
|
|
4754
|
+
name: D.name,
|
|
4755
|
+
size: _t.formatSize(D.size),
|
|
4748
4756
|
percent: ""
|
|
4749
4757
|
});
|
|
4750
4758
|
});
|
|
4751
4759
|
},
|
|
4752
|
-
UploadProgress: function(
|
|
4753
|
-
g.value[g.value.findIndex((
|
|
4760
|
+
UploadProgress: function(I, _) {
|
|
4761
|
+
g.value[g.value.findIndex((D) => D.id == _.id)].percent = _.percent + "%";
|
|
4754
4762
|
},
|
|
4755
4763
|
UploadComplete: function() {
|
|
4756
4764
|
d.value = !0, t.emit("vf-fetch", { params: { q: "index", adapter: e.current.adapter, path: e.current.dirname } });
|
|
4757
4765
|
},
|
|
4758
|
-
Error: function(
|
|
4759
|
-
i.value.stop(), m.value = n(JSON.parse(
|
|
4766
|
+
Error: function(I, _) {
|
|
4767
|
+
i.value.stop(), m.value = n(JSON.parse(_.response).message);
|
|
4760
4768
|
}
|
|
4761
4769
|
}
|
|
4762
4770
|
}), i.value.init();
|
|
4763
|
-
}), (
|
|
4771
|
+
}), (I, _) => (w(), G(De, null, {
|
|
4764
4772
|
buttons: F(() => [
|
|
4765
4773
|
h("button", {
|
|
4766
4774
|
disabled: d.value,
|
|
4767
4775
|
onClick: Pe(p, ["prevent"]),
|
|
4768
4776
|
type: "button",
|
|
4769
4777
|
class: de([d.value ? "bg-red-200 hover:bg-red-200" : "bg-red-600 hover:bg-red-700", "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"])
|
|
4770
|
-
},
|
|
4778
|
+
}, E(k(n)("Upload")), 11, hc),
|
|
4771
4779
|
h("button", {
|
|
4772
4780
|
type: "button",
|
|
4773
|
-
onClick:
|
|
4781
|
+
onClick: _[0] || (_[0] = (D) => k(t).emit("vf-modal-close")),
|
|
4774
4782
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4775
|
-
},
|
|
4783
|
+
}, E(k(n)("Cancel")), 1)
|
|
4776
4784
|
]),
|
|
4777
4785
|
default: F(() => [
|
|
4778
4786
|
h("div", ac, [
|
|
4779
4787
|
oc,
|
|
4780
4788
|
h("div", nc, [
|
|
4781
|
-
h("h3", sc,
|
|
4789
|
+
h("h3", sc, E(k(n)("Upload files")), 1),
|
|
4782
4790
|
h("div", lc, [
|
|
4783
4791
|
h("div", cc, [
|
|
4784
|
-
(w(!0),
|
|
4792
|
+
(w(!0), $(ce, null, be(g.value, (D) => (w(), $("div", null, [
|
|
4785
4793
|
h("div", {
|
|
4786
|
-
id:
|
|
4794
|
+
id: D.id
|
|
4787
4795
|
}, [
|
|
4788
|
-
le(
|
|
4789
|
-
h("b", null,
|
|
4796
|
+
le(E(D.name) + " ( " + E(D.size) + ") ", 1),
|
|
4797
|
+
h("b", null, E(D.percent), 1)
|
|
4790
4798
|
], 8, uc)
|
|
4791
4799
|
]))), 256)),
|
|
4792
|
-
g.value.length ? q("", !0) : (w(),
|
|
4800
|
+
g.value.length ? q("", !0) : (w(), $("div", dc, E(k(n)("No files selected!")), 1))
|
|
4793
4801
|
]),
|
|
4794
4802
|
h("div", {
|
|
4795
4803
|
class: "text-gray-500",
|
|
@@ -4801,14 +4809,14 @@ const hl = { class: "flex" }, fl = {
|
|
|
4801
4809
|
ref: f,
|
|
4802
4810
|
type: "button",
|
|
4803
4811
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4804
|
-
},
|
|
4812
|
+
}, E(k(n)("Select Files")), 513)
|
|
4805
4813
|
], 512),
|
|
4806
4814
|
m.value.length ? (w(), G(Ce, {
|
|
4807
4815
|
key: 0,
|
|
4808
4816
|
error: ""
|
|
4809
4817
|
}, {
|
|
4810
4818
|
default: F(() => [
|
|
4811
|
-
le(
|
|
4819
|
+
le(E(m.value), 1)
|
|
4812
4820
|
]),
|
|
4813
4821
|
_: 1
|
|
4814
4822
|
})) : q("", !0)
|
|
@@ -4873,7 +4881,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
4873
4881
|
current: Object
|
|
4874
4882
|
},
|
|
4875
4883
|
setup(o) {
|
|
4876
|
-
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i =
|
|
4884
|
+
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n"), i = O(""), s = O(""), f = O(e.selection.items), g = () => {
|
|
4877
4885
|
f.value.length && t.emit("vf-fetch", {
|
|
4878
4886
|
params: {
|
|
4879
4887
|
q: "archive",
|
|
@@ -4896,22 +4904,22 @@ const hl = { class: "flex" }, fl = {
|
|
|
4896
4904
|
type: "button",
|
|
4897
4905
|
onClick: g,
|
|
4898
4906
|
class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4899
|
-
},
|
|
4907
|
+
}, E(k(n)("Archive")), 1),
|
|
4900
4908
|
h("button", {
|
|
4901
4909
|
type: "button",
|
|
4902
4910
|
onClick: d[1] || (d[1] = (p) => k(t).emit("vf-modal-close")),
|
|
4903
4911
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
4904
|
-
},
|
|
4912
|
+
}, E(k(n)("Cancel")), 1)
|
|
4905
4913
|
]),
|
|
4906
4914
|
default: F(() => [
|
|
4907
4915
|
h("div", pc, [
|
|
4908
4916
|
gc,
|
|
4909
4917
|
h("div", vc, [
|
|
4910
|
-
h("h3", bc,
|
|
4918
|
+
h("h3", bc, E(k(n)("Archive the files")), 1),
|
|
4911
4919
|
h("div", yc, [
|
|
4912
|
-
(w(!0),
|
|
4913
|
-
p.type == "dir" ? (w(),
|
|
4914
|
-
h("span", Mc,
|
|
4920
|
+
(w(!0), $(ce, null, be(f.value, (p) => (w(), $("p", wc, [
|
|
4921
|
+
p.type == "dir" ? (w(), $("svg", xc, kc)) : (w(), $("svg", Sc, Cc)),
|
|
4922
|
+
h("span", Mc, E(p.basename), 1)
|
|
4915
4923
|
]))), 256)),
|
|
4916
4924
|
ve(h("input", {
|
|
4917
4925
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => i.value = p),
|
|
@@ -4927,7 +4935,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
4927
4935
|
error: ""
|
|
4928
4936
|
}, {
|
|
4929
4937
|
default: F(() => [
|
|
4930
|
-
le(
|
|
4938
|
+
le(E(s.value), 1)
|
|
4931
4939
|
]),
|
|
4932
4940
|
_: 1
|
|
4933
4941
|
})) : q("", !0)
|
|
@@ -4993,8 +5001,8 @@ const hl = { class: "flex" }, fl = {
|
|
|
4993
5001
|
},
|
|
4994
5002
|
setup(o) {
|
|
4995
5003
|
const e = o, t = B("emitter"), { getStore: a } = B("storage"), { t: n } = B("i18n");
|
|
4996
|
-
|
|
4997
|
-
const i =
|
|
5004
|
+
O("");
|
|
5005
|
+
const i = O(e.selection.items[0]), s = O(""), f = O([]), g = () => {
|
|
4998
5006
|
t.emit("vf-fetch", {
|
|
4999
5007
|
params: {
|
|
5000
5008
|
q: "unarchive",
|
|
@@ -5016,30 +5024,30 @@ const hl = { class: "flex" }, fl = {
|
|
|
5016
5024
|
type: "button",
|
|
5017
5025
|
onClick: g,
|
|
5018
5026
|
class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
5019
|
-
},
|
|
5027
|
+
}, E(k(n)("Unarchive")), 1),
|
|
5020
5028
|
h("button", {
|
|
5021
5029
|
type: "button",
|
|
5022
5030
|
onClick: d[0] || (d[0] = (p) => k(t).emit("vf-modal-close")),
|
|
5023
5031
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
5024
|
-
},
|
|
5032
|
+
}, E(k(n)("Cancel")), 1)
|
|
5025
5033
|
]),
|
|
5026
5034
|
default: F(() => [
|
|
5027
5035
|
h("div", Ac, [
|
|
5028
5036
|
Oc,
|
|
5029
5037
|
h("div", Pc, [
|
|
5030
|
-
h("h3", Ic,
|
|
5038
|
+
h("h3", Ic, E(k(n)("Unarchive")), 1),
|
|
5031
5039
|
h("div", jc, [
|
|
5032
|
-
(w(!0),
|
|
5033
|
-
p.type == "dir" ? (w(),
|
|
5034
|
-
h("span", Uc,
|
|
5040
|
+
(w(!0), $(ce, null, be(f.value, (p) => (w(), $("p", Nc, [
|
|
5041
|
+
p.type == "dir" ? (w(), $("svg", Lc, zc)) : (w(), $("svg", Bc, Hc)),
|
|
5042
|
+
h("span", Uc, E(p.basename), 1)
|
|
5035
5043
|
]))), 256)),
|
|
5036
|
-
h("p", Kc,
|
|
5044
|
+
h("p", Kc, E(k(n)("The archive will be unarchived at")) + " (" + E(o.current.dirname) + ")", 1),
|
|
5037
5045
|
s.value.length ? (w(), G(Ce, {
|
|
5038
5046
|
key: 0,
|
|
5039
5047
|
error: ""
|
|
5040
5048
|
}, {
|
|
5041
5049
|
default: F(() => [
|
|
5042
|
-
le(
|
|
5050
|
+
le(E(s.value), 1)
|
|
5043
5051
|
]),
|
|
5044
5052
|
_: 1
|
|
5045
5053
|
})) : q("", !0)
|
|
@@ -5118,7 +5126,7 @@ const hl = { class: "flex" }, fl = {
|
|
|
5118
5126
|
current: Object
|
|
5119
5127
|
},
|
|
5120
5128
|
setup(o) {
|
|
5121
|
-
const e = o, t = B("emitter"), { t: a } = B("i18n"), { getStore: n } = B("storage"), i =
|
|
5129
|
+
const e = o, t = B("emitter"), { t: a } = B("i18n"), { getStore: n } = B("storage"), i = O(e.selection.items.from), s = O(""), f = () => {
|
|
5122
5130
|
i.value.length && t.emit("vf-fetch", {
|
|
5123
5131
|
params: {
|
|
5124
5132
|
q: "move",
|
|
@@ -5141,34 +5149,34 @@ const hl = { class: "flex" }, fl = {
|
|
|
5141
5149
|
type: "button",
|
|
5142
5150
|
onClick: f,
|
|
5143
5151
|
class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
|
|
5144
|
-
},
|
|
5152
|
+
}, E(k(a)("Yes, Move!")), 1),
|
|
5145
5153
|
h("button", {
|
|
5146
5154
|
type: "button",
|
|
5147
5155
|
onClick: m[0] || (m[0] = (d) => k(t).emit("vf-modal-close")),
|
|
5148
5156
|
class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
|
|
5149
|
-
},
|
|
5157
|
+
}, E(k(a)("Cancel")), 1)
|
|
5150
5158
|
]),
|
|
5151
5159
|
default: F(() => [
|
|
5152
5160
|
h("div", Xc, [
|
|
5153
5161
|
Fc,
|
|
5154
5162
|
h("div", qc, [
|
|
5155
|
-
h("h3", Gc,
|
|
5163
|
+
h("h3", Gc, E(k(a)("Move files")), 1),
|
|
5156
5164
|
h("div", Jc, [
|
|
5157
|
-
(w(!0),
|
|
5158
|
-
d.type == "dir" ? (w(),
|
|
5159
|
-
h("span", ou,
|
|
5165
|
+
(w(!0), $(ce, null, be(i.value, (d) => (w(), $("p", Zc, [
|
|
5166
|
+
d.type == "dir" ? (w(), $("svg", Qc, tu)) : (w(), $("svg", ru, au)),
|
|
5167
|
+
h("span", ou, E(d.path), 1)
|
|
5160
5168
|
]))), 256)),
|
|
5161
|
-
h("p", nu,
|
|
5169
|
+
h("p", nu, E(k(a)("Are you sure you want to move these files?")), 1),
|
|
5162
5170
|
h("p", su, [
|
|
5163
5171
|
lu,
|
|
5164
|
-
h("span", cu,
|
|
5172
|
+
h("span", cu, E(o.selection.items.to.path), 1)
|
|
5165
5173
|
]),
|
|
5166
5174
|
s.value.length ? (w(), G(Ce, {
|
|
5167
5175
|
key: 0,
|
|
5168
5176
|
error: ""
|
|
5169
5177
|
}, {
|
|
5170
5178
|
default: F(() => [
|
|
5171
|
-
le(
|
|
5179
|
+
le(E(s.value), 1)
|
|
5172
5180
|
]),
|
|
5173
5181
|
_: 1
|
|
5174
5182
|
})) : q("", !0)
|