vuefinder 1.1.1 → 1.1.2
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 +484 -482
- package/dist/vuefinder.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as L, watch as Ot, inject as B, openBlock as y, createElementBlock as C, createElementVNode as d, unref as x, normalizeClass as de, createTextVNode as ie, toDisplayString as E, createCommentVNode as G, createVNode as _e, TransitionGroup as Ya, withCtx as J, Fragment as le, renderList as we, reactive as
|
|
1
|
+
import { ref as L, watch as Ot, inject as B, openBlock as y, createElementBlock as C, createElementVNode as d, unref as x, normalizeClass as de, createTextVNode as ie, toDisplayString as E, createCommentVNode as G, createVNode as _e, TransitionGroup as Ya, withCtx as J, Fragment as le, renderList as we, reactive as $t, onMounted as ke, onUpdated as Wa, withDirectives as ye, vShow as _t, withModifiers as Be, nextTick as It, vModelSelect as Rr, customRef as Xa, withKeys as tt, isRef as qa, vModelText as rt, normalizeStyle as ho, provide as it, createBlock as Z, resolveDynamicComponent as Ga, renderSlot as Yt } from "vue";
|
|
2
2
|
import Ht from "plupload";
|
|
3
3
|
var uo;
|
|
4
|
-
const
|
|
4
|
+
const Mt = (uo = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : uo.getAttribute("content"), Et = (t, { method: e = "get", params: r = {}, json: o = !0, signal: i = null }) => {
|
|
5
5
|
const a = { method: e };
|
|
6
6
|
if (a.signal = i, e == "get")
|
|
7
7
|
t += "?" + new URLSearchParams(r);
|
|
8
8
|
else {
|
|
9
|
-
a.headers = {},
|
|
9
|
+
a.headers = {}, Mt && (a.headers["X-CSRF-Token"] = Mt);
|
|
10
10
|
let n = new FormData();
|
|
11
11
|
for (const [f, g] of Object.entries(r))
|
|
12
12
|
n.append(f, g);
|
|
@@ -46,7 +46,7 @@ function Wt(t) {
|
|
|
46
46
|
return { getStore: (f, g = null) => r.value === null || r.value === "" ? g : r.value.hasOwnProperty(f) ? r.value[f] : g, setStore: i, clearStore: a };
|
|
47
47
|
}
|
|
48
48
|
const Hr = L("");
|
|
49
|
-
function
|
|
49
|
+
function $e() {
|
|
50
50
|
function t(e) {
|
|
51
51
|
Hr.value = e;
|
|
52
52
|
}
|
|
@@ -144,10 +144,10 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
144
144
|
class: "opacity-75",
|
|
145
145
|
fill: "currentColor",
|
|
146
146
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
147
|
-
}, null, -1),
|
|
147
|
+
}, null, -1), $s = [
|
|
148
148
|
Ds,
|
|
149
149
|
Cs
|
|
150
|
-
],
|
|
150
|
+
], Ms = { class: "flex text-center items-center justify-end" }, Es = ["aria-label"], Ts = /* @__PURE__ */ d("path", {
|
|
151
151
|
"stroke-linecap": "round",
|
|
152
152
|
"stroke-linejoin": "round",
|
|
153
153
|
d: "M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"
|
|
@@ -204,7 +204,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
204
204
|
ie(E(x(i)("Search results for")) + " ", 1),
|
|
205
205
|
d("span", ks, E(g.value), 1)
|
|
206
206
|
]),
|
|
207
|
-
u() ? (y(), C("svg", Ss,
|
|
207
|
+
u() ? (y(), C("svg", Ss, $s)) : G("", !0)
|
|
208
208
|
])) : (y(), C("div", Qa, [
|
|
209
209
|
d("div", {
|
|
210
210
|
class: "mx-1.5",
|
|
@@ -293,7 +293,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
|
|
|
293
293
|
}, ws, 2))
|
|
294
294
|
], 8, bs))
|
|
295
295
|
])),
|
|
296
|
-
d("div",
|
|
296
|
+
d("div", Ms, [
|
|
297
297
|
d("div", {
|
|
298
298
|
class: "mx-1.5",
|
|
299
299
|
"aria-label": x(i)("Dark Mode"),
|
|
@@ -427,7 +427,7 @@ var Rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
427
427
|
return v() ? b = Reflect.construct : b = function(c, w, _) {
|
|
428
428
|
var D = [null];
|
|
429
429
|
D.push.apply(D, w);
|
|
430
|
-
var
|
|
430
|
+
var M = Function.bind.apply(c, D), I = new M();
|
|
431
431
|
return _ && u(I, _.prototype), I;
|
|
432
432
|
}, b.apply(null, arguments);
|
|
433
433
|
}
|
|
@@ -488,8 +488,8 @@ var Rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
488
488
|
return typeof Reflect < "u" && Reflect.get ? j = Reflect.get : j = function(c, w, _) {
|
|
489
489
|
var D = H(c, w);
|
|
490
490
|
if (!!D) {
|
|
491
|
-
var
|
|
492
|
-
return
|
|
491
|
+
var M = Object.getOwnPropertyDescriptor(D, w);
|
|
492
|
+
return M.get ? M.get.call(_) : M.value;
|
|
493
493
|
}
|
|
494
494
|
}, j(h, l, s || h);
|
|
495
495
|
}
|
|
@@ -497,9 +497,9 @@ var Rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
497
497
|
return K(h) || ce(h, l) || he(h, l) || R();
|
|
498
498
|
}
|
|
499
499
|
function W(h) {
|
|
500
|
-
return
|
|
500
|
+
return $(h) || Q(h) || he(h) || N();
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function $(h) {
|
|
503
503
|
if (Array.isArray(h))
|
|
504
504
|
return ve(h);
|
|
505
505
|
}
|
|
@@ -517,8 +517,8 @@ var Rs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
517
517
|
try {
|
|
518
518
|
for (var _ = h[Symbol.iterator](), D; !(p = (D = _.next()).done) && (s.push(D.value), !(l && s.length === l)); p = !0)
|
|
519
519
|
;
|
|
520
|
-
} catch (
|
|
521
|
-
c = !0, w =
|
|
520
|
+
} catch (M) {
|
|
521
|
+
c = !0, w = M;
|
|
522
522
|
} finally {
|
|
523
523
|
try {
|
|
524
524
|
!p && _.return != null && _.return();
|
|
@@ -556,7 +556,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
556
556
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
557
557
|
}
|
|
558
558
|
var O = function(l, s, p) {
|
|
559
|
-
var c = l.x, w = l.y, _ = p.x, D = p.y,
|
|
559
|
+
var c = l.x, w = l.y, _ = p.x, D = p.y, M = {
|
|
560
560
|
"+": {
|
|
561
561
|
x: c + _,
|
|
562
562
|
y: w + D
|
|
@@ -574,7 +574,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
574
574
|
y: w / D
|
|
575
575
|
}
|
|
576
576
|
};
|
|
577
|
-
return
|
|
577
|
+
return M[s];
|
|
578
578
|
}, X = function(l) {
|
|
579
579
|
return {
|
|
580
580
|
x: l.left,
|
|
@@ -683,7 +683,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
683
683
|
} else {
|
|
684
684
|
var D = p.transform.trim().match(/matrix\((.*?)\)/);
|
|
685
685
|
if (D && D.length) {
|
|
686
|
-
var
|
|
686
|
+
var M, I = (M = D[1]) === null || M === void 0 ? void 0 : M.split(",");
|
|
687
687
|
s.x = parseInt(I[4]) || 0, s.y = parseInt(I[5]) || 0;
|
|
688
688
|
}
|
|
689
689
|
return s;
|
|
@@ -699,8 +699,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
699
699
|
if (c) {
|
|
700
700
|
var w, _ = (w = c[0]) === null || w === void 0 ? void 0 : w.split("(");
|
|
701
701
|
if (_) {
|
|
702
|
-
var D,
|
|
703
|
-
p.x = parseInt(
|
|
702
|
+
var D, M = (D = _[1]) === null || D === void 0 ? void 0 : D.split(",");
|
|
703
|
+
p.x = parseInt(M[0]) || 0, p.y = parseInt(M[1]) || 0;
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
706
|
return !p.x && !p.x ? _r(l) : p;
|
|
@@ -738,11 +738,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
738
738
|
var l = h.computedStyle, s = h.node, p = l.position, c = p === "absolute" || p === "relative" || p === "fixed";
|
|
739
739
|
!(s instanceof HTMLDocument) && !c && (s.style.position = "relative");
|
|
740
740
|
}, da = function(h) {
|
|
741
|
-
var l = h.shiftKey, s = h.keyboardDragSpeed, p = h.zoom, c = h.key, w = h.dragKeys, _ = h.scrollDiff, D = h.canScroll,
|
|
741
|
+
var l = h.shiftKey, s = h.keyboardDragSpeed, p = h.zoom, c = h.key, w = h.dragKeys, _ = h.scrollDiff, D = h.canScroll, M = h.scrollCallback, I = {
|
|
742
742
|
x: 0,
|
|
743
743
|
y: 0
|
|
744
744
|
}, A = l ? s * 4 * p : s * p;
|
|
745
|
-
return w.left.includes(c) && (I.x = _.x || -A, !l && !_.x && D &&
|
|
745
|
+
return w.left.includes(c) && (I.x = _.x || -A, !l && !_.x && D && M(["left"], s)), w.right.includes(c) && (I.x = _.x || A, !l && !_.x && D && M(["right"], s)), w.up.includes(c) && (I.y = _.y || -A, !l && !_.y && D && M(["top"], s)), w.down.includes(c) && (I.y = _.y || A, !l && !_.y && D && M(["bottom"], s)), I;
|
|
746
746
|
}, ha = function(h) {
|
|
747
747
|
var l = h.element, s = h.force, p = h.multiSelectionToggle, c = h.SelectedSet, w = h.hoverClassName;
|
|
748
748
|
l.classList.contains(w) && !s || (c.has(l) ? p && c.delete(l) : c.add(l), l.classList.add(w));
|
|
@@ -757,13 +757,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
757
757
|
}, Sr = function(h) {
|
|
758
758
|
var l = h.element, s = h.posDirection, p = h.containerRect, c = h.useTransform, w = ca(l, c), _ = O(w, "+", s);
|
|
759
759
|
st(l, _, c);
|
|
760
|
-
var D = l.getBoundingClientRect(),
|
|
760
|
+
var D = l.getBoundingClientRect(), M = xr({
|
|
761
761
|
elementRect: D,
|
|
762
762
|
containerRect: p
|
|
763
763
|
});
|
|
764
764
|
ua({
|
|
765
765
|
element: l,
|
|
766
|
-
edges:
|
|
766
|
+
edges: M,
|
|
767
767
|
elementRect: D,
|
|
768
768
|
containerRect: p,
|
|
769
769
|
elementPos: _,
|
|
@@ -773,8 +773,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
773
773
|
window.removeEventListener("resize", l), window.removeEventListener("scroll", l), h.disconnect();
|
|
774
774
|
}, ga = function(h, l, s) {
|
|
775
775
|
if (!!l.length) {
|
|
776
|
-
var p = document && document.documentElement && document.documentElement.scrollTop && document.documentElement, c = h instanceof HTMLDocument ? p || document.body : h, w = l.includes("top") && c.scrollTop > 0, _ = l.includes("bottom") && c.scrollTop < c.scrollHeight, D = l.includes("left") && c.scrollLeft > 0,
|
|
777
|
-
w && (c.scrollTop -= 1 * s), _ && (c.scrollTop += 1 * s), D && (c.scrollLeft -= 1 * s),
|
|
776
|
+
var p = document && document.documentElement && document.documentElement.scrollTop && document.documentElement, c = h instanceof HTMLDocument ? p || document.body : h, w = l.includes("top") && c.scrollTop > 0, _ = l.includes("bottom") && c.scrollTop < c.scrollHeight, D = l.includes("left") && c.scrollLeft > 0, M = l.includes("right") && c.scrollLeft < c.scrollWidth;
|
|
777
|
+
w && (c.scrollTop -= 1 * s), _ && (c.scrollTop += 1 * s), D && (c.scrollLeft -= 1 * s), M && (c.scrollLeft += 1 * s);
|
|
778
778
|
}
|
|
779
779
|
}, st = function(h, l, s) {
|
|
780
780
|
if (s) {
|
|
@@ -807,7 +807,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
807
807
|
name: "callback"
|
|
808
808
|
}]
|
|
809
809
|
}, _ = function() {
|
|
810
|
-
var A = V(
|
|
810
|
+
var A = V(M[D], 2), z = A[0], U = A[1];
|
|
811
811
|
["pre", !1].forEach(function(oe) {
|
|
812
812
|
return l(oe ? "".concat(z, ":").concat(oe) : z, function(pe) {
|
|
813
813
|
return U.forEach(function(ae) {
|
|
@@ -818,7 +818,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
818
818
|
});
|
|
819
819
|
});
|
|
820
820
|
});
|
|
821
|
-
}, D = 0,
|
|
821
|
+
}, D = 0, M = Object.entries(w); D < M.length; D++)
|
|
822
822
|
_();
|
|
823
823
|
}, We = function(h) {
|
|
824
824
|
return h ? !Array.isArray(h) && (h instanceof HTMLElement || h instanceof SVGElement) ? [h] : W(h) : [];
|
|
@@ -845,11 +845,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
845
845
|
}), a(this, "stop", function() {
|
|
846
846
|
ma(s._modificationObserver, s._modificationCallback), s.reset();
|
|
847
847
|
}), a(this, "scroll", function(_, D) {
|
|
848
|
-
var
|
|
848
|
+
var M = {
|
|
849
849
|
scroll_directions: _,
|
|
850
850
|
scroll_multiplier: D
|
|
851
851
|
};
|
|
852
|
-
s.PubSub.publish("Area:scroll:pre",
|
|
852
|
+
s.PubSub.publish("Area:scroll:pre", M), ga(s._node, _, D), s.PubSub.publish("Area:scroll", M);
|
|
853
853
|
}), this._zoom = w, this.PubSub = c, this.setArea(p), this._modificationCallback = wt(function(_) {
|
|
854
854
|
s.PubSub.publish("Area:modified:pre", {
|
|
855
855
|
event: _,
|
|
@@ -899,7 +899,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
899
899
|
}]), h;
|
|
900
900
|
}(), ba = /* @__PURE__ */ function() {
|
|
901
901
|
function h(l) {
|
|
902
|
-
var s = this, p = l.DS, c = l.dragKeys, w = l.draggability, _ = l.keyboardDrag, D = l.keyboardDragSpeed,
|
|
902
|
+
var s = this, p = l.DS, c = l.dragKeys, w = l.draggability, _ = l.keyboardDrag, D = l.keyboardDragSpeed, M = l.useTransform, I = l.zoom;
|
|
903
903
|
r(this, h), a(this, "_useTransform", void 0), a(this, "_prevCursorPos", void 0), a(this, "_prevScrollPos", void 0), a(this, "_elements", []), a(this, "_draggability", void 0), a(this, "_dragKeys", void 0), a(this, "_dragKeysFlat", void 0), a(this, "_keyboardDrag", void 0), a(this, "_keyboardDragSpeed", void 0), a(this, "_zoom", void 0), a(this, "keyboardDrag", function(A) {
|
|
904
904
|
var z = A.event, U = A.key;
|
|
905
905
|
if (!(!s._keyboardDrag || !s._dragKeysFlat.includes(U) || !s.DS.SelectedSet.size || !s._draggability || s.DS.continue)) {
|
|
@@ -960,7 +960,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
960
960
|
s._elements.forEach(function(z) {
|
|
961
961
|
return z.style.zIndex = "".concat((parseInt(z.style.zIndex) || 0) + A ? 9999 : -9998);
|
|
962
962
|
});
|
|
963
|
-
}), this.DS = p, this._useTransform =
|
|
963
|
+
}), this.DS = p, this._useTransform = M, this._keyboardDragSpeed = D, this._keyboardDrag = _, this._zoom = I, this._draggability = w, this._dragKeys = {
|
|
964
964
|
up: c.up.map(function(A) {
|
|
965
965
|
return A.toLowerCase();
|
|
966
966
|
}),
|
|
@@ -1003,25 +1003,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1003
1003
|
s.stop(), s._areaElement.addEventListener("mousedown", s.start), s._areaElement.addEventListener("touchstart", s.start, {
|
|
1004
1004
|
passive: !1
|
|
1005
1005
|
}), s.DS.publish("Interaction:init", {});
|
|
1006
|
-
}), a(this, "start", function(
|
|
1006
|
+
}), a(this, "start", function(M) {
|
|
1007
1007
|
return s.DS.publish("Interaction:start:pre", {
|
|
1008
|
-
event:
|
|
1008
|
+
event: M,
|
|
1009
1009
|
isDragging: s.isDragging
|
|
1010
1010
|
});
|
|
1011
|
-
}), a(this, "_start", function(
|
|
1012
|
-
|
|
1013
|
-
event:
|
|
1011
|
+
}), a(this, "_start", function(M) {
|
|
1012
|
+
M.type === "touchstart" && M.preventDefault(), s._canInteract(M) && (s.isInteracting = !0, s.isDragging = s.isDragEvent(M), s.DS.publish("Interaction:start", {
|
|
1013
|
+
event: M,
|
|
1014
1014
|
isDragging: s.isDragging
|
|
1015
1015
|
}), document.addEventListener("mouseup", s.reset), document.addEventListener("touchend", s.reset));
|
|
1016
|
-
}), a(this, "isDragEvent", function(
|
|
1017
|
-
var I =
|
|
1018
|
-
return !s._draggability || s.DS.stores.KeyStore.isMultiSelectKeyPressed(
|
|
1016
|
+
}), a(this, "isDragEvent", function(M) {
|
|
1017
|
+
var I = M.target.closest(".".concat(s._selectableClass));
|
|
1018
|
+
return !s._draggability || s.DS.stores.KeyStore.isMultiSelectKeyPressed(M) || !I ? !1 : (s._immediateDrag && (s.DS.SelectedSet.size ? s.DS.SelectedSet.has(I) || (s.DS.SelectedSet.clear(), s.DS.SelectedSet.add(
|
|
1019
1019
|
I
|
|
1020
1020
|
)) : s.DS.SelectedSet.add(
|
|
1021
1021
|
I
|
|
1022
1022
|
)), !!s.DS.SelectedSet.has(I));
|
|
1023
|
-
}), a(this, "onClick", function(
|
|
1024
|
-
var I =
|
|
1023
|
+
}), a(this, "onClick", function(M) {
|
|
1024
|
+
var I = M.event;
|
|
1025
1025
|
if (!!s._canInteract(I) && !(I.detail > 0)) {
|
|
1026
1026
|
var A = s.DS, z = A.stores, U = z.PointerStore, oe = z.KeyStore, pe = A.SelectableSet, ae = A.SelectedSet;
|
|
1027
1027
|
U.start(I);
|
|
@@ -1032,33 +1032,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1032
1032
|
s.isInteracting = !1, s.isDragging = !1, s._areaElement.removeEventListener("mousedown", s.start), s._areaElement.removeEventListener("touchstart", s.start, {
|
|
1033
1033
|
passive: !1
|
|
1034
1034
|
}), document.removeEventListener("mouseup", s.reset), document.removeEventListener("touchend", s.reset);
|
|
1035
|
-
}), a(this, "update", function(
|
|
1036
|
-
var I =
|
|
1035
|
+
}), a(this, "update", function(M) {
|
|
1036
|
+
var I = M.event, A = M.scroll_directions, z = M.scroll_multiplier;
|
|
1037
1037
|
s.isInteracting && s.DS.publish(["Interaction:update:pre", "Interaction:update"], {
|
|
1038
1038
|
event: I,
|
|
1039
1039
|
scroll_directions: A,
|
|
1040
1040
|
scroll_multiplier: z,
|
|
1041
1041
|
isDragging: s.isDragging
|
|
1042
1042
|
});
|
|
1043
|
-
}), a(this, "reset", function(
|
|
1043
|
+
}), a(this, "reset", function(M) {
|
|
1044
1044
|
return s.DS.publish("Interaction:end:pre", {
|
|
1045
|
-
event:
|
|
1045
|
+
event: M,
|
|
1046
1046
|
isDragging: s.isDragging
|
|
1047
1047
|
});
|
|
1048
|
-
}), a(this, "_reset", function(
|
|
1048
|
+
}), a(this, "_reset", function(M) {
|
|
1049
1049
|
var I = s.isDragging;
|
|
1050
1050
|
s.stop(), s.init(), s.DS.publish("Interaction:end", {
|
|
1051
|
-
event:
|
|
1051
|
+
event: M,
|
|
1052
1052
|
isDragging: I
|
|
1053
1053
|
});
|
|
1054
|
-
}), this._areaElement = c, this._draggability = w, this._immediateDrag = _, this._selectableClass = D, this.DS = p, this.DS.subscribe("PointerStore:updated", this.update), this.DS.subscribe("Selectable:click", this.onClick), this.DS.subscribe("Selectable:pointer", function(
|
|
1055
|
-
var I =
|
|
1054
|
+
}), this._areaElement = c, this._draggability = w, this._immediateDrag = _, this._selectableClass = D, this.DS = p, this.DS.subscribe("PointerStore:updated", this.update), this.DS.subscribe("Selectable:click", this.onClick), this.DS.subscribe("Selectable:pointer", function(M) {
|
|
1055
|
+
var I = M.event;
|
|
1056
1056
|
return s.start(I);
|
|
1057
|
-
}), this.DS.subscribe("Interaction:start:pre", function(
|
|
1058
|
-
var I =
|
|
1057
|
+
}), this.DS.subscribe("Interaction:start:pre", function(M) {
|
|
1058
|
+
var I = M.event;
|
|
1059
1059
|
return s._start(I);
|
|
1060
|
-
}), this.DS.subscribe("Interaction:init:pre", this._init), this.DS.subscribe("Interaction:end:pre", function(
|
|
1061
|
-
var I =
|
|
1060
|
+
}), this.DS.subscribe("Interaction:init:pre", this._init), this.DS.subscribe("Interaction:end:pre", function(M) {
|
|
1061
|
+
var I = M.event;
|
|
1062
1062
|
return s._reset(I);
|
|
1063
1063
|
}), this.DS.subscribe("Area:scroll", this.update);
|
|
1064
1064
|
}
|
|
@@ -1103,7 +1103,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1103
1103
|
g(s, h);
|
|
1104
1104
|
var l = F(s);
|
|
1105
1105
|
function s(p) {
|
|
1106
|
-
var c, w = p.elements, _ = p.className, D = p.hoverClassName,
|
|
1106
|
+
var c, w = p.elements, _ = p.className, D = p.hoverClassName, M = p.draggability, I = p.useTransform, A = p.DS;
|
|
1107
1107
|
return r(this, s), c = l.call(this), a(S(c), "_initElements", void 0), a(S(c), "_className", void 0), a(S(c), "_hoverClassName", void 0), a(S(c), "_useTransform", void 0), a(S(c), "_draggability", void 0), a(S(c), "init", function() {
|
|
1108
1108
|
return c._initElements.forEach(function(z) {
|
|
1109
1109
|
return c.add(z);
|
|
@@ -1128,7 +1128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1128
1128
|
return z.forEach(function(U) {
|
|
1129
1129
|
return c.delete(U);
|
|
1130
1130
|
});
|
|
1131
|
-
}), c.DS = A, c._initElements = We(w), c._className = _, c._hoverClassName = D, c._useTransform = I, c._draggability =
|
|
1131
|
+
}), c.DS = A, c._initElements = We(w), c._className = _, c._hoverClassName = D, c._useTransform = I, c._draggability = M, c.DS.subscribe("Interaction:init", c.init), c;
|
|
1132
1132
|
}
|
|
1133
1133
|
return i(s, [{
|
|
1134
1134
|
key: "add",
|
|
@@ -1163,12 +1163,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1163
1163
|
return c.delete(D);
|
|
1164
1164
|
});
|
|
1165
1165
|
}), a(S(c), "addAll", function(D) {
|
|
1166
|
-
return D.forEach(function(
|
|
1167
|
-
return c.add(
|
|
1166
|
+
return D.forEach(function(M) {
|
|
1167
|
+
return c.add(M);
|
|
1168
1168
|
});
|
|
1169
1169
|
}), a(S(c), "deleteAll", function(D) {
|
|
1170
|
-
return D.forEach(function(
|
|
1171
|
-
return c.delete(
|
|
1170
|
+
return D.forEach(function(M) {
|
|
1171
|
+
return c.delete(M);
|
|
1172
1172
|
});
|
|
1173
1173
|
}), c.DS = _, c._className = w, c;
|
|
1174
1174
|
}
|
|
@@ -1211,13 +1211,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1211
1211
|
function h(l) {
|
|
1212
1212
|
var s = this, p = l.DS, c = l.hoverClassName, w = l.multiSelectToggling;
|
|
1213
1213
|
r(this, h), a(this, "_prevSelectedSet", void 0), a(this, "_hoverClassName", void 0), a(this, "_multiSelectToggling", void 0), a(this, "start", function(_) {
|
|
1214
|
-
var D = _.event,
|
|
1215
|
-
|
|
1214
|
+
var D = _.event, M = _.isDragging;
|
|
1215
|
+
M || (s._storePrevious(D), s._handleInsideSelection(!0, D));
|
|
1216
1216
|
}), a(this, "update", function(_) {
|
|
1217
1217
|
var D = _.isDragging;
|
|
1218
1218
|
D || s.DS.continue || s._handleInsideSelection();
|
|
1219
1219
|
}), a(this, "_handleInsideSelection", function(_, D) {
|
|
1220
|
-
for (var
|
|
1220
|
+
for (var M = s.DS, I = M.SelectableSet, A = M.SelectorArea, z = M.Selector, U = I.elements.map(function(Ae) {
|
|
1221
1221
|
return [Ae, Ae.getBoundingClientRect()];
|
|
1222
1222
|
}), oe = [], pe = [], ae = 0, Xe = U.length; ae < Xe; ae++)
|
|
1223
1223
|
!A.isInside(U[ae][0], U[ae][1]) || (Bt(U[ae][1], z.rect) ? oe.push(U[ae][0]) : pe.push(U[ae][0]));
|
|
@@ -1252,16 +1252,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1252
1252
|
function h(l) {
|
|
1253
1253
|
var s = this, p = l.DS, c = l.selector, w = l.selectorClass, _ = l.customStyles;
|
|
1254
1254
|
r(this, h), a(this, "_rect", void 0), a(this, "start", function(D) {
|
|
1255
|
-
var
|
|
1256
|
-
if (
|
|
1255
|
+
var M = D.isDragging;
|
|
1256
|
+
if (!M) {
|
|
1257
1257
|
var I = s.DS.stores.PointerStore, A = I.initialValArea;
|
|
1258
1258
|
Dr(s.HTMLNode, q(A, 1)), s.HTMLNode.style.display = "block", s._rect = null;
|
|
1259
1259
|
}
|
|
1260
1260
|
}), a(this, "stop", function() {
|
|
1261
1261
|
s.HTMLNode.style.width = "0", s.HTMLNode.style.height = "0", s.HTMLNode.style.display = "none";
|
|
1262
1262
|
}), a(this, "update", function(D) {
|
|
1263
|
-
var
|
|
1264
|
-
if (!(
|
|
1263
|
+
var M = D.isDragging;
|
|
1264
|
+
if (!(M || s.DS.continue)) {
|
|
1265
1265
|
var I = s.DS.stores, A = I.ScrollStore, z = I.PointerStore, U = ia({
|
|
1266
1266
|
scrollAmount: A.scrollAmount,
|
|
1267
1267
|
initialPointerPos: z.initialValArea,
|
|
@@ -1283,11 +1283,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1283
1283
|
r(this, h), a(this, "_autoScrollSpeed", void 0), a(this, "_scrollInterval", void 0), a(this, "_rect", void 0), a(this, "currentEdges", []), a(this, "_overflowTolerance", void 0), a(this, "start", function() {
|
|
1284
1284
|
return s.applyElements("append");
|
|
1285
1285
|
}), a(this, "applyElements", function() {
|
|
1286
|
-
var D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "append",
|
|
1287
|
-
s.HTMLNode[I](s.DS.Selector.HTMLNode), document[
|
|
1286
|
+
var D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "append", M = document.body ? "body" : "documentElement", I = "".concat(D, "Child");
|
|
1287
|
+
s.HTMLNode[I](s.DS.Selector.HTMLNode), document[M][I](s.HTMLNode);
|
|
1288
1288
|
}), a(this, "updatePos", function() {
|
|
1289
1289
|
s._rect = null;
|
|
1290
|
-
var D = s.DS.Area.rect,
|
|
1290
|
+
var D = s.DS.Area.rect, M = s.DS.Area.computedBorder, I = s.HTMLNode.style, A = "".concat(D.top + M.top, "px"), z = "".concat(D.left + M.left, "px"), U = "".concat(D.width, "px"), oe = "".concat(D.height, "px");
|
|
1291
1291
|
I.top !== A && (I.top = A), I.left !== z && (I.left = z), I.width !== U && (I.width = U), I.height !== oe && (I.height = oe);
|
|
1292
1292
|
}), a(this, "stop", function(D) {
|
|
1293
1293
|
s.stopAutoScroll(), D && s.applyElements("remove");
|
|
@@ -1297,17 +1297,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1297
1297
|
}, 16);
|
|
1298
1298
|
}), a(this, "handleAutoScroll", function() {
|
|
1299
1299
|
if (!s.DS.continue) {
|
|
1300
|
-
var D = s.DS,
|
|
1300
|
+
var D = s.DS, M = D.stores.PointerStore, I = D.Area;
|
|
1301
1301
|
s.currentEdges = xr({
|
|
1302
|
-
elementRect: q(
|
|
1302
|
+
elementRect: q(M.currentVal),
|
|
1303
1303
|
containerRect: s.rect,
|
|
1304
1304
|
tolerance: s._overflowTolerance
|
|
1305
1305
|
}), s.currentEdges.length && I.scroll(s.currentEdges, s._autoScrollSpeed);
|
|
1306
1306
|
}
|
|
1307
1307
|
}), a(this, "stopAutoScroll", function() {
|
|
1308
1308
|
s.currentEdges = [], clearInterval(s._scrollInterval);
|
|
1309
|
-
}), a(this, "isInside", function(D,
|
|
1310
|
-
return s.DS.Area.HTMLNode.contains(D) && s.DS.stores.ScrollStore.canScroll ? !0 : Bt(s.rect,
|
|
1309
|
+
}), a(this, "isInside", function(D, M) {
|
|
1310
|
+
return s.DS.Area.HTMLNode.contains(D) && s.DS.stores.ScrollStore.canScroll ? !0 : Bt(s.rect, M || D.getBoundingClientRect());
|
|
1311
1311
|
}), this._autoScrollSpeed = w, this._overflowTolerance = _, this.DS = p, this.HTMLNode = bt(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() {
|
|
1312
1312
|
s.updatePos(), s.stopAutoScroll();
|
|
1313
1313
|
});
|
|
@@ -1365,8 +1365,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1365
1365
|
ctrlKey: "Control",
|
|
1366
1366
|
shiftKey: "Shift",
|
|
1367
1367
|
metaKey: "Meta"
|
|
1368
|
-
},
|
|
1369
|
-
return
|
|
1368
|
+
}, M = D[_];
|
|
1369
|
+
return M ? (console.warn("[DragSelect] ".concat(_, ' is deprecated. Use "').concat(M, '" instead. Act Now!. See docs for more info')), M.toLowerCase()) : _.toLowerCase();
|
|
1370
1370
|
}), this.DS.subscribe("Interaction:init", this.init);
|
|
1371
1371
|
}
|
|
1372
1372
|
return i(h, [{
|
|
@@ -1385,7 +1385,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1385
1385
|
return Array.from(this._currentValues.values());
|
|
1386
1386
|
}
|
|
1387
1387
|
}]), h;
|
|
1388
|
-
}(),
|
|
1388
|
+
}(), $a = /* @__PURE__ */ function() {
|
|
1389
1389
|
function h(l) {
|
|
1390
1390
|
var s = this, p = l.DS;
|
|
1391
1391
|
r(this, h), a(this, "_isMouseInteraction", !1), a(this, "_initialValArea", void 0), a(this, "_currentValArea", void 0), a(this, "_lastValArea", void 0), a(this, "_initialVal", void 0), a(this, "_currentVal", void 0), a(this, "_lastVal", void 0), a(this, "_lastTouch", void 0), a(this, "init", function() {
|
|
@@ -1486,7 +1486,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1486
1486
|
this._lastVal = s, this._lastValArea = s && O(s, "-", O(X(this.DS.Area.rect), "+", X(this.DS.Area.computedBorder)));
|
|
1487
1487
|
}
|
|
1488
1488
|
}]), h;
|
|
1489
|
-
}(),
|
|
1489
|
+
}(), Ma = /* @__PURE__ */ function() {
|
|
1490
1490
|
function h(l) {
|
|
1491
1491
|
var s = this, p = l.DS, c = l.areaElement, w = l.zoom;
|
|
1492
1492
|
r(this, h), a(this, "_initialVal", void 0), a(this, "_currentVal", void 0), a(this, "_areaElement", void 0), a(this, "_canScroll", void 0), a(this, "init", function() {
|
|
@@ -1538,10 +1538,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1538
1538
|
}]), h;
|
|
1539
1539
|
}(), Ea = /* @__PURE__ */ function() {
|
|
1540
1540
|
function h(l) {
|
|
1541
|
-
var s = this, p = l.area, c = p === void 0 ? document : p, w = l.selectables, _ = w === void 0 ? [] : w, D = l.autoScrollSpeed,
|
|
1541
|
+
var s = this, p = l.area, c = p === void 0 ? document : p, w = l.selectables, _ = w === void 0 ? [] : w, D = l.autoScrollSpeed, M = D === void 0 ? 5 : D, I = l.overflowTolerance, A = I === void 0 ? {
|
|
1542
1542
|
x: 25,
|
|
1543
1543
|
y: 25
|
|
1544
|
-
} : I, z = l.zoom, U = z === void 0 ? 1 : z, oe = l.customStyles, pe = oe === void 0 ? !1 : oe, ae = l.multiSelectMode, Xe = ae === void 0 ? !1 : ae, xt = l.multiSelectToggling, Ae = xt === void 0 ? !0 : xt, Cr = l.multiSelectKeys, Ta = Cr === void 0 ? ["Control", "Shift", "Meta"] : Cr,
|
|
1544
|
+
} : I, z = l.zoom, U = z === void 0 ? 1 : z, oe = l.customStyles, pe = oe === void 0 ? !1 : oe, ae = l.multiSelectMode, Xe = ae === void 0 ? !1 : ae, xt = l.multiSelectToggling, Ae = xt === void 0 ? !0 : xt, Cr = l.multiSelectKeys, Ta = Cr === void 0 ? ["Control", "Shift", "Meta"] : Cr, $r = l.selector, Aa = $r === void 0 ? void 0 : $r, Mr = l.draggability, Rt = Mr === void 0 ? !0 : Mr, Er = l.immediateDrag, Oa = Er === void 0 ? !0 : Er, Tr = l.keyboardDrag, Ia = Tr === void 0 ? !0 : Tr, La = l.dragKeys, Ar = l.keyboardDragSpeed, Pa = Ar === void 0 ? 10 : Ar, Or = l.useTransform, Ir = Or === void 0 ? !0 : Or, Lr = l.hoverClass, Pr = Lr === void 0 ? "ds-hover" : Lr, Nr = l.selectableClass, jr = Nr === void 0 ? "ds-selectable" : Nr, Vr = l.selectedClass, Na = Vr === void 0 ? "ds-selected" : Vr, zr = l.selectorClass, ja = zr === void 0 ? "ds-selector" : zr, Br = l.selectorAreaClass, Va = Br === void 0 ? "ds-selector-area" : Br, za = l.callback, Ba = l.onDragMove, Ra = l.onDragStartBegin, Ha = l.onDragStart, Ua = l.onElementSelect, Ka = l.onElementUnselect;
|
|
1545
1545
|
r(this, h), a(this, "continue", !1), a(this, "start", function() {
|
|
1546
1546
|
s.stopped = !1, s.Interaction.init();
|
|
1547
1547
|
}), a(this, "break", function() {
|
|
@@ -1576,10 +1576,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1576
1576
|
onElementSelect: Ua,
|
|
1577
1577
|
onElementUnselect: Ka
|
|
1578
1578
|
}), this.stores = {
|
|
1579
|
-
PointerStore: new
|
|
1579
|
+
PointerStore: new $a({
|
|
1580
1580
|
DS: this
|
|
1581
1581
|
}),
|
|
1582
|
-
ScrollStore: new
|
|
1582
|
+
ScrollStore: new Ma({
|
|
1583
1583
|
DS: this,
|
|
1584
1584
|
areaElement: c,
|
|
1585
1585
|
zoom: U
|
|
@@ -1601,7 +1601,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1601
1601
|
}), this.SelectorArea = new Da({
|
|
1602
1602
|
DS: this,
|
|
1603
1603
|
selectorAreaClass: Va,
|
|
1604
|
-
autoScrollSpeed:
|
|
1604
|
+
autoScrollSpeed: M,
|
|
1605
1605
|
overflowTolerance: A
|
|
1606
1606
|
}), this.SelectableSet = new xa({
|
|
1607
1607
|
elements: _,
|
|
@@ -1648,7 +1648,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1648
1648
|
return i(h, [{
|
|
1649
1649
|
key: "_callbacksTemp",
|
|
1650
1650
|
value: function(s) {
|
|
1651
|
-
var p = s.callback, c = s.onDragMove, w = s.onDragStart, _ = s.onDragStartBegin, D = s.onElementSelect,
|
|
1651
|
+
var p = s.callback, c = s.onDragMove, w = s.onDragStart, _ = s.onDragStartBegin, D = s.onElementSelect, M = s.onElementUnselect, I = function(z, U) {
|
|
1652
1652
|
return console.warn("[DragSelect] ".concat(z, ' is deprecated. Use DragSelect.subscribe("').concat(U, '", (callbackObject) => {}) instead. Act Now! See docs for more info'));
|
|
1653
1653
|
};
|
|
1654
1654
|
p && (I("callback", "callback"), this.subscribe("callback", function(A) {
|
|
@@ -1672,10 +1672,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1672
1672
|
A.items;
|
|
1673
1673
|
var z = A.item, U = A.event;
|
|
1674
1674
|
return D(z, U);
|
|
1675
|
-
})),
|
|
1675
|
+
})), M && (I("onElementUnselect", "elementunselect"), this.subscribe("elementunselect", function(A) {
|
|
1676
1676
|
A.items;
|
|
1677
1677
|
var z = A.item, U = A.event;
|
|
1678
|
-
return
|
|
1678
|
+
return M(z, U);
|
|
1679
1679
|
}));
|
|
1680
1680
|
}
|
|
1681
1681
|
}, {
|
|
@@ -1830,7 +1830,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
1830
1830
|
})
|
|
1831
1831
|
], 2));
|
|
1832
1832
|
}
|
|
1833
|
-
}), Ue = (t) => Object.entries(t).map((e) => e.map(encodeURIComponent).join("=")).join("&"), { apiUrl: Qs } =
|
|
1833
|
+
}), Ue = (t) => Object.entries(t).map((e) => e.map(encodeURIComponent).join("=")).join("&"), { apiUrl: Qs } = $e(), Xt = (t, e) => Qs.value + "?" + Ue({ q: "preview", adapter: t, path: e }), Ne = typeof window < "u", po = Ne && !("onscroll" in window) || typeof navigator < "u" && /(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent), vo = Ne && "IntersectionObserver" in window, bo = Ne && "classList" in document.createElement("p"), yo = Ne && window.devicePixelRatio > 1, ei = {
|
|
1834
1834
|
elements_selector: ".lazy",
|
|
1835
1835
|
container: po || Ne ? document : null,
|
|
1836
1836
|
threshold: 300,
|
|
@@ -1879,14 +1879,14 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
1879
1879
|
else
|
|
1880
1880
|
for (let r = 0, o; o = e[r]; r += 1)
|
|
1881
1881
|
Ur(t, o);
|
|
1882
|
-
}, Te = "src", sr = "srcset", ir = "sizes", xo = "poster", gt = "llOriginalAttrs", _o = "data", nr = "loading", ko = "loaded", So = "applied", ri = "entered", lr = "error", Do = "native", Co = "data-",
|
|
1882
|
+
}, Te = "src", sr = "srcset", ir = "sizes", xo = "poster", gt = "llOriginalAttrs", _o = "data", nr = "loading", ko = "loaded", So = "applied", ri = "entered", lr = "error", Do = "native", Co = "data-", $o = "ll-status", ge = (t, e) => t.getAttribute(Co + e), oi = (t, e, r) => {
|
|
1883
1883
|
var o = Co + e;
|
|
1884
1884
|
if (r === null) {
|
|
1885
1885
|
t.removeAttribute(o);
|
|
1886
1886
|
return;
|
|
1887
1887
|
}
|
|
1888
1888
|
t.setAttribute(o, r);
|
|
1889
|
-
}, pt = (t) => ge(t,
|
|
1889
|
+
}, pt = (t) => ge(t, $o), Ke = (t, e) => oi(t, $o, e), Lt = (t) => Ke(t, null), cr = (t) => pt(t) === null, ai = (t) => pt(t) === nr, si = (t) => pt(t) === lr, ur = (t) => pt(t) === Do, ii = [nr, ko, So, lr], ni = (t) => ii.indexOf(pt(t)) >= 0, je = (t, e, r, o) => {
|
|
1890
1890
|
if (!!t) {
|
|
1891
1891
|
if (o !== void 0) {
|
|
1892
1892
|
t(e, r, o);
|
|
@@ -1914,7 +1914,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
1914
1914
|
t.llTempImage = document.createElement("IMG");
|
|
1915
1915
|
}, ci = (t) => {
|
|
1916
1916
|
delete t.llTempImage;
|
|
1917
|
-
},
|
|
1917
|
+
}, Mo = (t) => t.llTempImage, Pt = (t, e) => {
|
|
1918
1918
|
if (!e)
|
|
1919
1919
|
return;
|
|
1920
1920
|
const r = e._observer;
|
|
@@ -1990,7 +1990,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
1990
1990
|
et(t, Io), Pe(t, _o, ge(t, e.data_src));
|
|
1991
1991
|
}, _i = (t, e, r) => {
|
|
1992
1992
|
const o = ge(t, e.data_bg), i = ge(t, e.data_bg_hidpi), a = yo && i ? i : o;
|
|
1993
|
-
!a || (t.style.backgroundImage = `url("${a}")`,
|
|
1993
|
+
!a || (t.style.backgroundImage = `url("${a}")`, Mo(t).setAttribute(Te, a), jo(t, e, r));
|
|
1994
1994
|
}, ki = (t, e, r) => {
|
|
1995
1995
|
const o = ge(t, e.data_bg_multi), i = ge(t, e.data_bg_multi_hidpi), a = yo && i ? i : o;
|
|
1996
1996
|
!a || (t.style.backgroundImage = a, No(t, e, r));
|
|
@@ -2012,7 +2012,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
2012
2012
|
}, Ci = (t, e, r) => {
|
|
2013
2013
|
const o = Vo[t.tagName];
|
|
2014
2014
|
!o || (o(t, e), jo(t, e, r));
|
|
2015
|
-
},
|
|
2015
|
+
}, $i = ["IMG", "IFRAME", "VIDEO", "OBJECT"], Mi = (t) => $i.indexOf(t.tagName) > -1, zo = (t, e) => {
|
|
2016
2016
|
e && !fi(e) && !mi(e) && je(t.callback_finish, e);
|
|
2017
2017
|
}, Fr = (t, e, r) => {
|
|
2018
2018
|
t.addEventListener(e, r), t.llEvLisnrs[e] = r;
|
|
@@ -2040,7 +2040,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
2040
2040
|
const i = ur(e);
|
|
2041
2041
|
Bo(e, r, o), ot(e, r.class_error), Ke(e, lr), je(r.callback_error, e, o), r.restore_on_error && Re(e, ht), i || zo(r, o);
|
|
2042
2042
|
}, mr = (t, e, r) => {
|
|
2043
|
-
const o =
|
|
2043
|
+
const o = Mo(t) || t;
|
|
2044
2044
|
if (fr(o))
|
|
2045
2045
|
return;
|
|
2046
2046
|
Ti(o, (n) => {
|
|
@@ -2053,7 +2053,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
|
|
|
2053
2053
|
}, Li = (t, e, r) => {
|
|
2054
2054
|
mr(t, e, r), Ci(t, e, r);
|
|
2055
2055
|
}, gr = (t, e, r) => {
|
|
2056
|
-
|
|
2056
|
+
Mi(t) ? Li(t, e, r) : Ii(t, e, r);
|
|
2057
2057
|
}, Pi = (t, e, r) => {
|
|
2058
2058
|
t.setAttribute("loading", "lazy"), mr(t, e, r), Di(t, e), Ke(t, Do);
|
|
2059
2059
|
}, Yr = (t) => {
|
|
@@ -2215,7 +2215,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2215
2215
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
2216
2216
|
}, null, -1), xn = [
|
|
2217
2217
|
wn
|
|
2218
|
-
], _n = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, kn = { class: "col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap" }, Sn = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], Dn = { class: "grid grid-cols-12 items-center" }, Cn = { class: "flex col-span-7 items-center" },
|
|
2218
|
+
], _n = { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" }, kn = { class: "col-span-5 overflow-ellipsis overflow-hidden whitespace-nowrap" }, Sn = ["onDblclick", "onContextmenu", "onDragstart", "onDragover", "onDrop", "data-type", "data-item", "data-index"], Dn = { class: "grid grid-cols-12 items-center" }, Cn = { class: "flex col-span-7 items-center" }, $n = {
|
|
2219
2219
|
key: 0,
|
|
2220
2220
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2221
2221
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -2223,12 +2223,12 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2223
2223
|
viewBox: "0 0 24 24",
|
|
2224
2224
|
stroke: "currentColor",
|
|
2225
2225
|
"stroke-width": "1"
|
|
2226
|
-
},
|
|
2226
|
+
}, Mn = /* @__PURE__ */ d("path", {
|
|
2227
2227
|
"stroke-linecap": "round",
|
|
2228
2228
|
"stroke-linejoin": "round",
|
|
2229
2229
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
2230
2230
|
}, null, -1), En = [
|
|
2231
|
-
|
|
2231
|
+
Mn
|
|
2232
2232
|
], Tn = {
|
|
2233
2233
|
key: 1,
|
|
2234
2234
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2319,13 +2319,13 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2319
2319
|
}, 500);
|
|
2320
2320
|
}, j = (N) => {
|
|
2321
2321
|
N.type == "dir" ? (r.emit("vf-search-exit"), r.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: N.path } })) : r.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: N });
|
|
2322
|
-
}, V =
|
|
2322
|
+
}, V = $t({ active: !1, column: "", order: "" }), W = (N = !0) => {
|
|
2323
2323
|
let R = [...e.data.files], O = V.column, X = V.order == "asc" ? 1 : -1;
|
|
2324
2324
|
if (!N)
|
|
2325
2325
|
return R;
|
|
2326
2326
|
const q = (ue, ee) => typeof ue == "string" && typeof ee == "string" ? ue.toLowerCase().localeCompare(ee.toLowerCase()) : ue < ee ? -1 : ue > ee ? 1 : 0;
|
|
2327
2327
|
return V.active && (R = R.slice().sort((ue, ee) => q(ue[O], ee[O]) * X)), R;
|
|
2328
|
-
},
|
|
2328
|
+
}, $ = (N) => {
|
|
2329
2329
|
V.active && V.column == N ? (V.active = V.order == "asc", V.column = N, V.order = "desc") : (V.active = !0, V.column = N, V.order = "asc");
|
|
2330
2330
|
}, K = () => u.value.getSelection().map((N) => JSON.parse(N.dataset.item)), Q = (N, R) => {
|
|
2331
2331
|
if (N.altKey || N.ctrlKey || N.metaKey)
|
|
@@ -2369,7 +2369,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2369
2369
|
}), (N, R) => (y(), C("div", ln, [
|
|
2370
2370
|
t.view == "list" || S.value.length ? (y(), C("div", cn, [
|
|
2371
2371
|
d("div", {
|
|
2372
|
-
onClick: R[0] || (R[0] = (O) =>
|
|
2372
|
+
onClick: R[0] || (R[0] = (O) => $("basename")),
|
|
2373
2373
|
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"
|
|
2374
2374
|
}, [
|
|
2375
2375
|
ie(E(x(v)("Name")) + " ", 1),
|
|
@@ -2381,7 +2381,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2381
2381
|
]),
|
|
2382
2382
|
S.value.length ? G("", !0) : (y(), C("div", {
|
|
2383
2383
|
key: 0,
|
|
2384
|
-
onClick: R[1] || (R[1] = (O) =>
|
|
2384
|
+
onClick: R[1] || (R[1] = (O) => $("file_size")),
|
|
2385
2385
|
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"
|
|
2386
2386
|
}, [
|
|
2387
2387
|
ie(E(x(v)("Size")) + " ", 1),
|
|
@@ -2393,7 +2393,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2393
2393
|
])),
|
|
2394
2394
|
S.value.length ? G("", !0) : (y(), C("div", {
|
|
2395
2395
|
key: 1,
|
|
2396
|
-
onClick: R[2] || (R[2] = (O) =>
|
|
2396
|
+
onClick: R[2] || (R[2] = (O) => $("last_modified")),
|
|
2397
2397
|
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"
|
|
2398
2398
|
}, [
|
|
2399
2399
|
ie(E(x(v)("Date")) + " ", 1),
|
|
@@ -2405,7 +2405,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2405
2405
|
])),
|
|
2406
2406
|
S.value.length ? (y(), C("div", {
|
|
2407
2407
|
key: 2,
|
|
2408
|
-
onClick: R[3] || (R[3] = (O) =>
|
|
2408
|
+
onClick: R[3] || (R[3] = (O) => $("path")),
|
|
2409
2409
|
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"
|
|
2410
2410
|
}, [
|
|
2411
2411
|
ie(E(x(v)("Filepath")) + " ", 1),
|
|
@@ -2466,7 +2466,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2466
2466
|
}, [
|
|
2467
2467
|
d("div", Dn, [
|
|
2468
2468
|
d("div", Cn, [
|
|
2469
|
-
O.type == "dir" ? (y(), C("svg",
|
|
2469
|
+
O.type == "dir" ? (y(), C("svg", $n, En)) : (y(), C("svg", Tn, On)),
|
|
2470
2470
|
d("span", In, E(O.basename), 1)
|
|
2471
2471
|
]),
|
|
2472
2472
|
d("div", Ln, E(O.file_size ? x(mo)(O.file_size) : ""), 1),
|
|
@@ -2641,8 +2641,8 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2641
2641
|
d: "M6 18L18 6M6 6l12 12"
|
|
2642
2642
|
}, null, -1), Dl = [
|
|
2643
2643
|
Sl
|
|
2644
|
-
], Cl = ["onClick"],
|
|
2645
|
-
|
|
2644
|
+
], Cl = ["onClick"], $l = /* @__PURE__ */ d("path", { d: "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" }, null, -1), Ml = [
|
|
2645
|
+
$l
|
|
2646
2646
|
], El = { class: "flex leading-5" }, Tl = /* @__PURE__ */ d("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), Al = ["title", "onClick"], Ol = {
|
|
2647
2647
|
key: 0,
|
|
2648
2648
|
class: "animate-spin p-1 h-6 w-6 text-white ml-auto",
|
|
@@ -2742,8 +2742,8 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2742
2742
|
onDragover: j[0] || (j[0] = (V) => P(V)),
|
|
2743
2743
|
onDrop: j[1] || (j[1] = (V) => S(V)),
|
|
2744
2744
|
onClick: j[2] || (j[2] = (V) => {
|
|
2745
|
-
var W,
|
|
2746
|
-
return !k() || x(r).emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: (
|
|
2745
|
+
var W, $;
|
|
2746
|
+
return !k() || x(r).emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: ($ = (W = a.value[a.value.length - 2]) == null ? void 0 : W.path) != null ? $ : x(o)("adapter", "local") + "://" } });
|
|
2747
2747
|
}),
|
|
2748
2748
|
class: de(["h-6 w-6 p-0.5 rounded", k() ? "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"]),
|
|
2749
2749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2811,14 +2811,14 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2811
2811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2812
2812
|
viewBox: "0 0 20 20",
|
|
2813
2813
|
fill: "currentColor"
|
|
2814
|
-
},
|
|
2814
|
+
}, Ml)),
|
|
2815
2815
|
d("div", El, [
|
|
2816
2816
|
(y(!0), C(le, null, we(a.value, (V, W) => (y(), C("div", { key: W }, [
|
|
2817
2817
|
Tl,
|
|
2818
2818
|
d("span", {
|
|
2819
2819
|
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",
|
|
2820
2820
|
title: V.basename,
|
|
2821
|
-
onClick: (
|
|
2821
|
+
onClick: ($) => x(r).emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: V.path } })
|
|
2822
2822
|
}, E(V.name), 9, Al)
|
|
2823
2823
|
]))), 128))
|
|
2824
2824
|
]),
|
|
@@ -2833,7 +2833,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
|
|
|
2833
2833
|
current: Object
|
|
2834
2834
|
},
|
|
2835
2835
|
setup(t) {
|
|
2836
|
-
const e = t, r = B("emitter"), o = L(null), { apiUrl: i } =
|
|
2836
|
+
const e = t, r = B("emitter"), o = L(null), { apiUrl: i } = $e(), a = $t({
|
|
2837
2837
|
active: !1,
|
|
2838
2838
|
items: [],
|
|
2839
2839
|
positions: {
|
|
@@ -2972,12 +2972,12 @@ function ql(t, e, r) {
|
|
|
2972
2972
|
}
|
|
2973
2973
|
return { t: m, support_locales: a, changeLocale: f };
|
|
2974
2974
|
}
|
|
2975
|
-
const Gl = /* @__PURE__ */ d("iframe", {
|
|
2975
|
+
const Gl = { class: "vuefinder" }, Jl = /* @__PURE__ */ d("iframe", {
|
|
2976
2976
|
id: "download_frame",
|
|
2977
2977
|
style: { display: "none" }
|
|
2978
|
-
}, null, -1),
|
|
2978
|
+
}, null, -1), Zl = {
|
|
2979
2979
|
name: "VueFinder"
|
|
2980
|
-
},
|
|
2980
|
+
}, Ql = /* @__PURE__ */ Object.assign(Zl, {
|
|
2981
2981
|
props: {
|
|
2982
2982
|
url: {
|
|
2983
2983
|
type: [String]
|
|
@@ -3008,9 +3008,9 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3008
3008
|
it("emitter", r), it("storage", Wt(e.id)), it("postData", e.postData);
|
|
3009
3009
|
const a = ql(e.id, e.locale, r);
|
|
3010
3010
|
it("i18n", a);
|
|
3011
|
-
const { apiUrl: n, setApiUrl: f } =
|
|
3011
|
+
const { apiUrl: n, setApiUrl: f } = $e();
|
|
3012
3012
|
f(e.url);
|
|
3013
|
-
const g =
|
|
3013
|
+
const g = $t({ adapter: "local", storages: [], dirname: ".", files: [] }), m = L(i("viewport", "grid")), u = L(i("darkMode", e.dark));
|
|
3014
3014
|
r.on("vf-darkMode-toggle", () => {
|
|
3015
3015
|
u.value = !u.value, o("darkMode", u.value);
|
|
3016
3016
|
});
|
|
@@ -3022,7 +3022,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3022
3022
|
}), r.on("vf-view-toggle", (P) => {
|
|
3023
3023
|
m.value = P;
|
|
3024
3024
|
});
|
|
3025
|
-
const T =
|
|
3025
|
+
const T = $t({
|
|
3026
3026
|
active: !1,
|
|
3027
3027
|
type: "delete",
|
|
3028
3028
|
data: {}
|
|
@@ -3051,33 +3051,35 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3051
3051
|
document.getElementById("download_frame").src = P, r.emit("vf-modal-close");
|
|
3052
3052
|
}), ke(() => {
|
|
3053
3053
|
r.emit("vf-fetch", { params: { q: "index", adapter: i("adapter", g.adapter) } });
|
|
3054
|
-
}), (P, F) => (y(), C("div",
|
|
3055
|
-
class: de(["vuefinder", u.value ? "dark" : ""])
|
|
3056
|
-
}, [
|
|
3054
|
+
}), (P, F) => (y(), C("div", Gl, [
|
|
3057
3055
|
d("div", {
|
|
3058
|
-
class: de(
|
|
3059
|
-
style: ho(b.value ? "" : "max-height: " + t.maxHeight),
|
|
3060
|
-
onMousedown: F[0] || (F[0] = (H) => x(r).emit("vf-contextmenu-hide")),
|
|
3061
|
-
onTouchstart: F[1] || (F[1] = (H) => x(r).emit("vf-contextmenu-hide"))
|
|
3056
|
+
class: de(u.value ? "dark" : "")
|
|
3062
3057
|
}, [
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
},
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3058
|
+
d("div", {
|
|
3059
|
+
class: de([b.value ? "fixed w-screen inset-0 z-20" : "relative rounded-md", "border flex flex-col 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"]),
|
|
3060
|
+
style: ho(b.value ? "" : "max-height: " + t.maxHeight),
|
|
3061
|
+
onMousedown: F[0] || (F[0] = (H) => x(r).emit("vf-contextmenu-hide")),
|
|
3062
|
+
onTouchstart: F[1] || (F[1] = (H) => x(r).emit("vf-contextmenu-hide"))
|
|
3063
|
+
}, [
|
|
3064
|
+
_e(Bs, { data: g }, null, 8, ["data"]),
|
|
3065
|
+
_e(Hl, { data: g }, null, 8, ["data"]),
|
|
3066
|
+
_e(Xn, {
|
|
3067
|
+
view: m.value,
|
|
3068
|
+
data: g
|
|
3069
|
+
}, null, 8, ["view", "data"]),
|
|
3070
|
+
_e(fl, { data: g }, null, 8, ["data"])
|
|
3071
|
+
], 38),
|
|
3072
|
+
T.active ? (y(), Z(Ga("v-f-modal-" + T.type), {
|
|
3073
|
+
key: 0,
|
|
3074
|
+
selection: T.data,
|
|
3075
|
+
current: g
|
|
3076
|
+
}, null, 8, ["selection", "current"])) : G("", !0),
|
|
3077
|
+
_e(Yl, { current: g }, null, 8, ["current"]),
|
|
3078
|
+
Jl
|
|
3079
|
+
], 2)
|
|
3080
|
+
]));
|
|
3079
3081
|
}
|
|
3080
|
-
}),
|
|
3082
|
+
}), ec = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" }, null, -1), tc = { class: "fixed z-10 inset-0 overflow-y-auto w-screen h-screen" }, rc = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, oc = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, ac = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, Me = {
|
|
3081
3083
|
__name: "ModalLayout",
|
|
3082
3084
|
setup(t) {
|
|
3083
3085
|
const e = B("emitter");
|
|
@@ -3092,17 +3094,17 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3092
3094
|
onKeyup: o[1] || (o[1] = tt((i) => x(e).emit("vf-modal-close"), ["esc"])),
|
|
3093
3095
|
tabindex: "0"
|
|
3094
3096
|
}, [
|
|
3095
|
-
|
|
3096
|
-
d("div",
|
|
3097
|
+
ec,
|
|
3098
|
+
d("div", tc, [
|
|
3097
3099
|
d("div", {
|
|
3098
3100
|
class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
|
|
3099
3101
|
onMousedown: o[0] || (o[0] = Be((i) => x(e).emit("vf-modal-close"), ["self"]))
|
|
3100
3102
|
}, [
|
|
3101
|
-
d("div",
|
|
3102
|
-
d("div",
|
|
3103
|
+
d("div", rc, [
|
|
3104
|
+
d("div", oc, [
|
|
3103
3105
|
Yt(r.$slots, "default")
|
|
3104
3106
|
]),
|
|
3105
|
-
d("div",
|
|
3107
|
+
d("div", ac, [
|
|
3106
3108
|
Yt(r.$slots, "buttons")
|
|
3107
3109
|
])
|
|
3108
3110
|
])
|
|
@@ -3110,7 +3112,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3110
3112
|
])
|
|
3111
3113
|
], 32));
|
|
3112
3114
|
}
|
|
3113
|
-
},
|
|
3115
|
+
}, sc = ["aria-label"], ic = /* @__PURE__ */ d("svg", {
|
|
3114
3116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3115
3117
|
fill: "none",
|
|
3116
3118
|
viewBox: "0 0 24 24",
|
|
@@ -3123,11 +3125,11 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3123
3125
|
"stroke-linejoin": "round",
|
|
3124
3126
|
d: "M6 18L18 6M6 6l12 12"
|
|
3125
3127
|
})
|
|
3126
|
-
], -1),
|
|
3127
|
-
|
|
3128
|
-
],
|
|
3128
|
+
], -1), nc = [
|
|
3129
|
+
ic
|
|
3130
|
+
], lc = {
|
|
3129
3131
|
name: "Message"
|
|
3130
|
-
}, Ee = /* @__PURE__ */ Object.assign(
|
|
3132
|
+
}, Ee = /* @__PURE__ */ Object.assign(lc, {
|
|
3131
3133
|
props: {
|
|
3132
3134
|
error: {
|
|
3133
3135
|
type: Boolean,
|
|
@@ -3156,11 +3158,11 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3156
3158
|
"aria-label": x(r)("Close"),
|
|
3157
3159
|
"data-microtip-position": "top-left",
|
|
3158
3160
|
role: "tooltip"
|
|
3159
|
-
},
|
|
3161
|
+
}, nc, 8, sc)
|
|
3160
3162
|
], 2))
|
|
3161
3163
|
]));
|
|
3162
3164
|
}
|
|
3163
|
-
}),
|
|
3165
|
+
}), cc = { class: "sm:flex sm:items-start" }, uc = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3164
3166
|
/* @__PURE__ */ d("svg", {
|
|
3165
3167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3166
3168
|
class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
|
|
@@ -3175,10 +3177,10 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3175
3177
|
d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
|
|
3176
3178
|
})
|
|
3177
3179
|
])
|
|
3178
|
-
], -1),
|
|
3180
|
+
], -1), dc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, hc = {
|
|
3179
3181
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3180
3182
|
id: "modal-title"
|
|
3181
|
-
},
|
|
3183
|
+
}, fc = { class: "mt-2" }, mc = { class: "text-sm text-gray-500" }, gc = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, pc = {
|
|
3182
3184
|
key: 0,
|
|
3183
3185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3184
3186
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -3186,13 +3188,13 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3186
3188
|
viewBox: "0 0 24 24",
|
|
3187
3189
|
stroke: "currentColor",
|
|
3188
3190
|
"stroke-width": "1"
|
|
3189
|
-
},
|
|
3191
|
+
}, vc = /* @__PURE__ */ d("path", {
|
|
3190
3192
|
"stroke-linecap": "round",
|
|
3191
3193
|
"stroke-linejoin": "round",
|
|
3192
3194
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3193
|
-
}, null, -1),
|
|
3194
|
-
|
|
3195
|
-
],
|
|
3195
|
+
}, null, -1), bc = [
|
|
3196
|
+
vc
|
|
3197
|
+
], yc = {
|
|
3196
3198
|
key: 1,
|
|
3197
3199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3198
3200
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -3200,15 +3202,15 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3200
3202
|
viewBox: "0 0 24 24",
|
|
3201
3203
|
stroke: "currentColor",
|
|
3202
3204
|
"stroke-width": "1"
|
|
3203
|
-
},
|
|
3205
|
+
}, wc = /* @__PURE__ */ d("path", {
|
|
3204
3206
|
"stroke-linecap": "round",
|
|
3205
3207
|
"stroke-linejoin": "round",
|
|
3206
3208
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
3207
|
-
}, null, -1),
|
|
3208
|
-
|
|
3209
|
-
],
|
|
3209
|
+
}, null, -1), xc = [
|
|
3210
|
+
wc
|
|
3211
|
+
], _c = { class: "ml-1.5" }, kc = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, Sc = {
|
|
3210
3212
|
name: "VFModalDelete"
|
|
3211
|
-
},
|
|
3213
|
+
}, Dc = /* @__PURE__ */ Object.assign(Sc, {
|
|
3212
3214
|
props: {
|
|
3213
3215
|
selection: Object,
|
|
3214
3216
|
current: Object
|
|
@@ -3230,7 +3232,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3230
3232
|
}
|
|
3231
3233
|
});
|
|
3232
3234
|
};
|
|
3233
|
-
return (g, m) => (y(), Z(
|
|
3235
|
+
return (g, m) => (y(), Z(Me, null, {
|
|
3234
3236
|
buttons: J(() => [
|
|
3235
3237
|
d("button", {
|
|
3236
3238
|
type: "button",
|
|
@@ -3242,18 +3244,18 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3242
3244
|
onClick: m[1] || (m[1] = (u) => x(r).emit("vf-modal-close")),
|
|
3243
3245
|
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"
|
|
3244
3246
|
}, E(x(i)("Cancel")), 1),
|
|
3245
|
-
d("div",
|
|
3247
|
+
d("div", kc, E(x(i)("This action cannot be undone.")), 1)
|
|
3246
3248
|
]),
|
|
3247
3249
|
default: J(() => [
|
|
3248
|
-
d("div",
|
|
3249
|
-
|
|
3250
|
-
d("div",
|
|
3251
|
-
d("h3",
|
|
3252
|
-
d("div",
|
|
3253
|
-
d("p",
|
|
3254
|
-
(y(!0), C(le, null, we(a.value, (u) => (y(), C("p",
|
|
3255
|
-
u.type == "dir" ? (y(), C("svg",
|
|
3256
|
-
d("span",
|
|
3250
|
+
d("div", cc, [
|
|
3251
|
+
uc,
|
|
3252
|
+
d("div", dc, [
|
|
3253
|
+
d("h3", hc, E(x(i)("Delete files")), 1),
|
|
3254
|
+
d("div", fc, [
|
|
3255
|
+
d("p", mc, E(x(i)("Are you sure you want to delete these files?")), 1),
|
|
3256
|
+
(y(!0), C(le, null, we(a.value, (u) => (y(), C("p", gc, [
|
|
3257
|
+
u.type == "dir" ? (y(), C("svg", pc, bc)) : (y(), C("svg", yc, xc)),
|
|
3258
|
+
d("span", _c, E(u.basename), 1)
|
|
3257
3259
|
]))), 256)),
|
|
3258
3260
|
n.value.length ? (y(), Z(Ee, {
|
|
3259
3261
|
key: 0,
|
|
@@ -3272,7 +3274,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3272
3274
|
_: 1
|
|
3273
3275
|
}));
|
|
3274
3276
|
}
|
|
3275
|
-
}),
|
|
3277
|
+
}), Cc = { class: "sm:flex sm:items-start" }, $c = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3276
3278
|
/* @__PURE__ */ d("svg", {
|
|
3277
3279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3278
3280
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -3287,18 +3289,18 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3287
3289
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
3288
3290
|
})
|
|
3289
3291
|
])
|
|
3290
|
-
], -1), Mc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" },
|
|
3292
|
+
], -1), Mc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Ec = {
|
|
3291
3293
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3292
3294
|
id: "modal-title"
|
|
3293
|
-
},
|
|
3295
|
+
}, Tc = { class: "mt-2" }, Ac = { class: "text-sm text-gray-500" }, Oc = {
|
|
3294
3296
|
name: "VFModalMessage"
|
|
3295
|
-
},
|
|
3297
|
+
}, Ic = /* @__PURE__ */ Object.assign(Oc, {
|
|
3296
3298
|
props: {
|
|
3297
3299
|
selection: Object
|
|
3298
3300
|
},
|
|
3299
3301
|
setup(t) {
|
|
3300
3302
|
const e = B("emitter"), { t: r } = B("i18n");
|
|
3301
|
-
return (o, i) => (y(), Z(
|
|
3303
|
+
return (o, i) => (y(), Z(Me, null, {
|
|
3302
3304
|
buttons: J(() => [
|
|
3303
3305
|
d("button", {
|
|
3304
3306
|
type: "button",
|
|
@@ -3309,12 +3311,12 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3309
3311
|
default: J(() => {
|
|
3310
3312
|
var a, n, f, g;
|
|
3311
3313
|
return [
|
|
3312
|
-
d("div",
|
|
3313
|
-
|
|
3314
|
+
d("div", Cc, [
|
|
3315
|
+
$c,
|
|
3314
3316
|
d("div", Mc, [
|
|
3315
|
-
d("h3",
|
|
3316
|
-
d("div",
|
|
3317
|
-
d("p",
|
|
3317
|
+
d("h3", Ec, E((n = (a = t.selection) == null ? void 0 : a.title) != null ? n : "Title"), 1),
|
|
3318
|
+
d("div", Tc, [
|
|
3319
|
+
d("p", Ac, E((g = (f = t.selection) == null ? void 0 : f.message) != null ? g : "Message") + ".", 1)
|
|
3318
3320
|
])
|
|
3319
3321
|
])
|
|
3320
3322
|
])
|
|
@@ -3323,7 +3325,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3323
3325
|
_: 1
|
|
3324
3326
|
}));
|
|
3325
3327
|
}
|
|
3326
|
-
}),
|
|
3328
|
+
}), Lc = { class: "sm:flex sm:items-start" }, Pc = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3327
3329
|
/* @__PURE__ */ d("svg", {
|
|
3328
3330
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3329
3331
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -3338,12 +3340,12 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3338
3340
|
d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
|
|
3339
3341
|
})
|
|
3340
3342
|
])
|
|
3341
|
-
], -1),
|
|
3343
|
+
], -1), Nc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, jc = {
|
|
3342
3344
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3343
3345
|
id: "modal-title"
|
|
3344
|
-
},
|
|
3346
|
+
}, Vc = { class: "mt-2" }, zc = { class: "text-sm text-gray-500" }, Bc = ["onKeyup", "placeholder"], Rc = {
|
|
3345
3347
|
name: "VFModalNewFolder"
|
|
3346
|
-
},
|
|
3348
|
+
}, Hc = /* @__PURE__ */ Object.assign(Rc, {
|
|
3347
3349
|
props: {
|
|
3348
3350
|
selection: Object,
|
|
3349
3351
|
current: Object
|
|
@@ -3365,7 +3367,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3365
3367
|
}
|
|
3366
3368
|
});
|
|
3367
3369
|
};
|
|
3368
|
-
return (g, m) => (y(), Z(
|
|
3370
|
+
return (g, m) => (y(), Z(Me, null, {
|
|
3369
3371
|
buttons: J(() => [
|
|
3370
3372
|
d("button", {
|
|
3371
3373
|
type: "button",
|
|
@@ -3379,19 +3381,19 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3379
3381
|
}, E(x(i)("Cancel")), 1)
|
|
3380
3382
|
]),
|
|
3381
3383
|
default: J(() => [
|
|
3382
|
-
d("div",
|
|
3383
|
-
|
|
3384
|
-
d("div",
|
|
3385
|
-
d("h3",
|
|
3386
|
-
d("div",
|
|
3387
|
-
d("p",
|
|
3384
|
+
d("div", Lc, [
|
|
3385
|
+
Pc,
|
|
3386
|
+
d("div", Nc, [
|
|
3387
|
+
d("h3", jc, E(x(i)("New Folder")), 1),
|
|
3388
|
+
d("div", Vc, [
|
|
3389
|
+
d("p", zc, E(x(i)("Create a new folder")), 1),
|
|
3388
3390
|
ye(d("input", {
|
|
3389
3391
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => a.value = u),
|
|
3390
3392
|
onKeyup: tt(f, ["enter"]),
|
|
3391
3393
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
3392
3394
|
placeholder: x(i)("Folder Name"),
|
|
3393
3395
|
type: "text"
|
|
3394
|
-
}, null, 40,
|
|
3396
|
+
}, null, 40, Bc), [
|
|
3395
3397
|
[rt, a.value]
|
|
3396
3398
|
]),
|
|
3397
3399
|
n.value.length ? (y(), Z(Ee, {
|
|
@@ -3411,7 +3413,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3411
3413
|
_: 1
|
|
3412
3414
|
}));
|
|
3413
3415
|
}
|
|
3414
|
-
}),
|
|
3416
|
+
}), Uc = { class: "sm:flex sm:items-start" }, Kc = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
3415
3417
|
/* @__PURE__ */ d("svg", {
|
|
3416
3418
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3417
3419
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -3426,12 +3428,12 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3426
3428
|
d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
3427
3429
|
})
|
|
3428
3430
|
])
|
|
3429
|
-
], -1),
|
|
3431
|
+
], -1), Fc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Yc = {
|
|
3430
3432
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3431
3433
|
id: "modal-title"
|
|
3432
|
-
},
|
|
3434
|
+
}, Wc = { class: "mt-2" }, Xc = { class: "text-sm text-gray-500" }, qc = ["onKeyup", "placeholder"], Gc = {
|
|
3433
3435
|
name: "VFModalNewFile"
|
|
3434
|
-
},
|
|
3436
|
+
}, Jc = /* @__PURE__ */ Object.assign(Gc, {
|
|
3435
3437
|
props: {
|
|
3436
3438
|
selection: Object,
|
|
3437
3439
|
current: Object
|
|
@@ -3453,7 +3455,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3453
3455
|
}
|
|
3454
3456
|
});
|
|
3455
3457
|
};
|
|
3456
|
-
return (g, m) => (y(), Z(
|
|
3458
|
+
return (g, m) => (y(), Z(Me, null, {
|
|
3457
3459
|
buttons: J(() => [
|
|
3458
3460
|
d("button", {
|
|
3459
3461
|
type: "button",
|
|
@@ -3467,19 +3469,19 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3467
3469
|
}, "Cancel")
|
|
3468
3470
|
]),
|
|
3469
3471
|
default: J(() => [
|
|
3470
|
-
d("div",
|
|
3471
|
-
|
|
3472
|
-
d("div",
|
|
3473
|
-
d("h3",
|
|
3474
|
-
d("div",
|
|
3475
|
-
d("p",
|
|
3472
|
+
d("div", Uc, [
|
|
3473
|
+
Kc,
|
|
3474
|
+
d("div", Fc, [
|
|
3475
|
+
d("h3", Yc, E(x(i)("New File")), 1),
|
|
3476
|
+
d("div", Wc, [
|
|
3477
|
+
d("p", Xc, E(x(i)("Create a new file")), 1),
|
|
3476
3478
|
ye(d("input", {
|
|
3477
3479
|
"onUpdate:modelValue": m[0] || (m[0] = (u) => a.value = u),
|
|
3478
3480
|
onKeyup: tt(f, ["enter"]),
|
|
3479
3481
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
3480
3482
|
placeholder: x(i)("File Name"),
|
|
3481
3483
|
type: "text"
|
|
3482
|
-
}, null, 40,
|
|
3484
|
+
}, null, 40, qc), [
|
|
3483
3485
|
[rt, a.value]
|
|
3484
3486
|
]),
|
|
3485
3487
|
n.value.length ? (y(), Z(Ee, {
|
|
@@ -3499,17 +3501,17 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3499
3501
|
_: 1
|
|
3500
3502
|
}));
|
|
3501
3503
|
}
|
|
3502
|
-
}),
|
|
3504
|
+
}), Zc = { class: "flex" }, Qc = ["aria-label"], eu = { class: "ml-auto mb-2" }, tu = {
|
|
3503
3505
|
key: 0,
|
|
3504
3506
|
class: "p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"
|
|
3505
|
-
},
|
|
3507
|
+
}, ru = { key: 1 }, ou = {
|
|
3506
3508
|
__name: "Text",
|
|
3507
3509
|
props: {
|
|
3508
3510
|
selection: Object
|
|
3509
3511
|
},
|
|
3510
3512
|
emits: ["load"],
|
|
3511
3513
|
setup(t, { emit: e }) {
|
|
3512
|
-
const r = t, o = L(""), i = L(""), a = L(null), n = L(!1), { apiUrl: f } =
|
|
3514
|
+
const r = t, o = L(""), i = L(""), a = L(null), n = L(!1), { apiUrl: f } = $e(), g = L(""), m = L(!1), { t: u } = B("i18n");
|
|
3513
3515
|
ke(() => {
|
|
3514
3516
|
Et(f.value, {
|
|
3515
3517
|
params: { q: "preview", adapter: r.selection.adapter, path: r.selection.item.path },
|
|
@@ -3539,15 +3541,15 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3539
3541
|
});
|
|
3540
3542
|
};
|
|
3541
3543
|
return (k, S) => (y(), C(le, null, [
|
|
3542
|
-
d("div",
|
|
3544
|
+
d("div", Zc, [
|
|
3543
3545
|
d("div", {
|
|
3544
3546
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
3545
3547
|
id: "modal-title",
|
|
3546
3548
|
"aria-label": t.selection.item.path,
|
|
3547
3549
|
"data-microtip-position": "bottom-right",
|
|
3548
3550
|
role: "tooltip"
|
|
3549
|
-
}, E(t.selection.item.basename), 9,
|
|
3550
|
-
d("div",
|
|
3551
|
+
}, E(t.selection.item.basename), 9, Qc),
|
|
3552
|
+
d("div", eu, [
|
|
3551
3553
|
n.value ? (y(), C("button", {
|
|
3552
3554
|
key: 0,
|
|
3553
3555
|
onClick: T,
|
|
@@ -3560,7 +3562,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3560
3562
|
])
|
|
3561
3563
|
]),
|
|
3562
3564
|
d("div", null, [
|
|
3563
|
-
n.value ? (y(), C("div",
|
|
3565
|
+
n.value ? (y(), C("div", ru, [
|
|
3564
3566
|
ye(d("textarea", {
|
|
3565
3567
|
ref_key: "editInput",
|
|
3566
3568
|
ref: a,
|
|
@@ -3573,7 +3575,7 @@ const Gl = /* @__PURE__ */ d("iframe", {
|
|
|
3573
3575
|
}, null, 512), [
|
|
3574
3576
|
[rt, i.value]
|
|
3575
3577
|
])
|
|
3576
|
-
])) : (y(), C("pre",
|
|
3578
|
+
])) : (y(), C("pre", tu, E(o.value), 1)),
|
|
3577
3579
|
g.value.length ? (y(), Z(Ee, {
|
|
3578
3580
|
key: 2,
|
|
3579
3581
|
onHidden: S[2] || (S[2] = (P) => g.value = ""),
|
|
@@ -3611,7 +3613,7 @@ function Ko(t) {
|
|
|
3611
3613
|
for (var e = 1; e < arguments.length; e++) {
|
|
3612
3614
|
var r = arguments[e] != null ? arguments[e] : {};
|
|
3613
3615
|
e % 2 ? Xr(Object(r), !0).forEach(function(o) {
|
|
3614
|
-
|
|
3616
|
+
iu(t, o, r[o]);
|
|
3615
3617
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Xr(Object(r)).forEach(function(o) {
|
|
3616
3618
|
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(r, o));
|
|
3617
3619
|
});
|
|
@@ -3625,7 +3627,7 @@ function Ct(t) {
|
|
|
3625
3627
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3626
3628
|
}, Ct(t);
|
|
3627
3629
|
}
|
|
3628
|
-
function
|
|
3630
|
+
function au(t, e) {
|
|
3629
3631
|
if (!(t instanceof e))
|
|
3630
3632
|
throw new TypeError("Cannot call a class as a function");
|
|
3631
3633
|
}
|
|
@@ -3635,10 +3637,10 @@ function qr(t, e) {
|
|
|
3635
3637
|
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
|
|
3636
3638
|
}
|
|
3637
3639
|
}
|
|
3638
|
-
function
|
|
3640
|
+
function su(t, e, r) {
|
|
3639
3641
|
return e && qr(t.prototype, e), r && qr(t, r), t;
|
|
3640
3642
|
}
|
|
3641
|
-
function
|
|
3643
|
+
function iu(t, e, r) {
|
|
3642
3644
|
return e in t ? Object.defineProperty(t, e, {
|
|
3643
3645
|
value: r,
|
|
3644
3646
|
enumerable: !0,
|
|
@@ -3647,17 +3649,17 @@ function su(t, e, r) {
|
|
|
3647
3649
|
}) : t[e] = r, t;
|
|
3648
3650
|
}
|
|
3649
3651
|
function Fo(t) {
|
|
3650
|
-
return
|
|
3652
|
+
return nu(t) || lu(t) || cu(t) || uu();
|
|
3651
3653
|
}
|
|
3652
|
-
function
|
|
3654
|
+
function nu(t) {
|
|
3653
3655
|
if (Array.isArray(t))
|
|
3654
3656
|
return Gt(t);
|
|
3655
3657
|
}
|
|
3656
|
-
function
|
|
3658
|
+
function lu(t) {
|
|
3657
3659
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
|
|
3658
3660
|
return Array.from(t);
|
|
3659
3661
|
}
|
|
3660
|
-
function
|
|
3662
|
+
function cu(t, e) {
|
|
3661
3663
|
if (!!t) {
|
|
3662
3664
|
if (typeof t == "string")
|
|
3663
3665
|
return Gt(t, e);
|
|
@@ -3674,11 +3676,11 @@ function Gt(t, e) {
|
|
|
3674
3676
|
o[r] = t[r];
|
|
3675
3677
|
return o;
|
|
3676
3678
|
}
|
|
3677
|
-
function
|
|
3679
|
+
function uu() {
|
|
3678
3680
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3679
3681
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
3680
3682
|
}
|
|
3681
|
-
var Vt = typeof window < "u" && typeof window.document < "u", Ce = Vt ? window : {}, pr = Vt && Ce.document.documentElement ? "ontouchstart" in Ce.document.documentElement : !1, vr = Vt ? "PointerEvent" in Ce : !1, te = "cropper", br = "all", Yo = "crop", Wo = "move", Xo = "zoom", Ve = "e", ze = "w", qe = "s", Oe = "n", nt = "ne", lt = "nw", ct = "se", ut = "sw", Jt = "".concat(te, "-crop"), Gr = "".concat(te, "-disabled"), me = "".concat(te, "-hidden"), Jr = "".concat(te, "-hide"),
|
|
3683
|
+
var Vt = typeof window < "u" && typeof window.document < "u", Ce = Vt ? window : {}, pr = Vt && Ce.document.documentElement ? "ontouchstart" in Ce.document.documentElement : !1, vr = Vt ? "PointerEvent" in Ce : !1, te = "cropper", br = "all", Yo = "crop", Wo = "move", Xo = "zoom", Ve = "e", ze = "w", qe = "s", Oe = "n", nt = "ne", lt = "nw", ct = "se", ut = "sw", Jt = "".concat(te, "-crop"), Gr = "".concat(te, "-disabled"), me = "".concat(te, "-hidden"), Jr = "".concat(te, "-hide"), du = "".concat(te, "-invisible"), At = "".concat(te, "-modal"), Zt = "".concat(te, "-move"), ft = "".concat(te, "Action"), St = "".concat(te, "Preview"), yr = "crop", qo = "move", Go = "none", Qt = "crop", er = "cropend", tr = "cropmove", rr = "cropstart", Zr = "dblclick", hu = pr ? "touchstart" : "mousedown", fu = pr ? "touchmove" : "mousemove", mu = pr ? "touchend touchcancel" : "mouseup", Qr = vr ? "pointerdown" : hu, eo = vr ? "pointermove" : fu, to = vr ? "pointerup pointercancel" : mu, ro = "ready", oo = "resize", ao = "wheel", or = "zoom", so = "image/jpeg", gu = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, pu = /^data:/, vu = /^data:image\/jpeg;base64,/, bu = /^img|canvas$/i, Jo = 200, Zo = 100, io = {
|
|
3682
3684
|
viewMode: 0,
|
|
3683
3685
|
dragMode: yr,
|
|
3684
3686
|
initialAspectRatio: NaN,
|
|
@@ -3718,9 +3720,9 @@ var Vt = typeof window < "u" && typeof window.document < "u", Ce = Vt ? window :
|
|
|
3718
3720
|
cropend: null,
|
|
3719
3721
|
crop: null,
|
|
3720
3722
|
zoom: null
|
|
3721
|
-
},
|
|
3723
|
+
}, yu = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', wu = Number.isNaN || Ce.isNaN;
|
|
3722
3724
|
function Y(t) {
|
|
3723
|
-
return typeof t == "number" && !
|
|
3725
|
+
return typeof t == "number" && !wu(t);
|
|
3724
3726
|
}
|
|
3725
3727
|
var no = function(e) {
|
|
3726
3728
|
return e > 0 && e < 1 / 0;
|
|
@@ -3731,13 +3733,13 @@ function Ut(t) {
|
|
|
3731
3733
|
function He(t) {
|
|
3732
3734
|
return Ct(t) === "object" && t !== null;
|
|
3733
3735
|
}
|
|
3734
|
-
var
|
|
3736
|
+
var xu = Object.prototype.hasOwnProperty;
|
|
3735
3737
|
function Ge(t) {
|
|
3736
3738
|
if (!He(t))
|
|
3737
3739
|
return !1;
|
|
3738
3740
|
try {
|
|
3739
3741
|
var e = t.constructor, r = e.prototype;
|
|
3740
|
-
return e && r &&
|
|
3742
|
+
return e && r && xu.call(r, "isPrototypeOf");
|
|
3741
3743
|
} catch {
|
|
3742
3744
|
return !1;
|
|
3743
3745
|
}
|
|
@@ -3745,9 +3747,9 @@ function Ge(t) {
|
|
|
3745
3747
|
function fe(t) {
|
|
3746
3748
|
return typeof t == "function";
|
|
3747
3749
|
}
|
|
3748
|
-
var
|
|
3750
|
+
var _u = Array.prototype.slice;
|
|
3749
3751
|
function Qo(t) {
|
|
3750
|
-
return Array.from ? Array.from(t) :
|
|
3752
|
+
return Array.from ? Array.from(t) : _u.call(t);
|
|
3751
3753
|
}
|
|
3752
3754
|
function se(t, e) {
|
|
3753
3755
|
return t && fe(e) && (Array.isArray(t) || Y(t.length) ? Qo(t).forEach(function(r, o) {
|
|
@@ -3764,19 +3766,19 @@ var re = Object.assign || function(e) {
|
|
|
3764
3766
|
e[n] = a[n];
|
|
3765
3767
|
});
|
|
3766
3768
|
}), e;
|
|
3767
|
-
},
|
|
3769
|
+
}, ku = /\.\d*(?:0|9){12}\d*$/;
|
|
3768
3770
|
function Ze(t) {
|
|
3769
3771
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
|
|
3770
|
-
return
|
|
3772
|
+
return ku.test(t) ? Math.round(t * e) / e : t;
|
|
3771
3773
|
}
|
|
3772
|
-
var
|
|
3774
|
+
var Su = /^width|height|left|top|marginLeft|marginTop$/;
|
|
3773
3775
|
function Ie(t, e) {
|
|
3774
3776
|
var r = t.style;
|
|
3775
3777
|
se(e, function(o, i) {
|
|
3776
|
-
|
|
3778
|
+
Su.test(i) && Y(o) && (o = "".concat(o, "px")), r[i] = o;
|
|
3777
3779
|
});
|
|
3778
3780
|
}
|
|
3779
|
-
function
|
|
3781
|
+
function Du(t, e) {
|
|
3780
3782
|
return t.classList ? t.classList.contains(e) : t.className.indexOf(e) > -1;
|
|
3781
3783
|
}
|
|
3782
3784
|
function ne(t, e) {
|
|
@@ -3821,9 +3823,9 @@ function Je(t, e, r) {
|
|
|
3821
3823
|
r ? ne(t, e) : De(t, e);
|
|
3822
3824
|
}
|
|
3823
3825
|
}
|
|
3824
|
-
var
|
|
3826
|
+
var Cu = /([a-z\d])([A-Z])/g;
|
|
3825
3827
|
function wr(t) {
|
|
3826
|
-
return t.replace(
|
|
3828
|
+
return t.replace(Cu, "$1-$2").toLowerCase();
|
|
3827
3829
|
}
|
|
3828
3830
|
function ar(t, e) {
|
|
3829
3831
|
return He(t[e]) ? t[e] : t.dataset ? t.dataset[e] : t.getAttribute("data-".concat(wr(e)));
|
|
@@ -3831,7 +3833,7 @@ function ar(t, e) {
|
|
|
3831
3833
|
function mt(t, e, r) {
|
|
3832
3834
|
He(r) ? t[e] = r : t.dataset ? t.dataset[e] = r : t.setAttribute("data-".concat(wr(e)), r);
|
|
3833
3835
|
}
|
|
3834
|
-
function
|
|
3836
|
+
function $u(t, e) {
|
|
3835
3837
|
if (He(t[e]))
|
|
3836
3838
|
try {
|
|
3837
3839
|
delete t[e];
|
|
@@ -3922,7 +3924,7 @@ function dt(t) {
|
|
|
3922
3924
|
transform: f
|
|
3923
3925
|
};
|
|
3924
3926
|
}
|
|
3925
|
-
function
|
|
3927
|
+
function Eu(t) {
|
|
3926
3928
|
var e = Ko({}, t), r = 0;
|
|
3927
3929
|
return se(t, function(o, i) {
|
|
3928
3930
|
delete e[i], se(e, function(a) {
|
|
@@ -3941,7 +3943,7 @@ function Dt(t, e) {
|
|
|
3941
3943
|
startY: o
|
|
3942
3944
|
}, i);
|
|
3943
3945
|
}
|
|
3944
|
-
function
|
|
3946
|
+
function Tu(t) {
|
|
3945
3947
|
var e = 0, r = 0, o = 0;
|
|
3946
3948
|
return se(t, function(i) {
|
|
3947
3949
|
var a = i.startX, n = i.startY;
|
|
@@ -3963,7 +3965,7 @@ function Le(t) {
|
|
|
3963
3965
|
height: r
|
|
3964
3966
|
};
|
|
3965
3967
|
}
|
|
3966
|
-
function
|
|
3968
|
+
function Au(t) {
|
|
3967
3969
|
var e = t.width, r = t.height, o = t.degree;
|
|
3968
3970
|
if (o = Math.abs(o) % 180, o === 90)
|
|
3969
3971
|
return {
|
|
@@ -3979,8 +3981,8 @@ function Tu(t) {
|
|
|
3979
3981
|
height: g
|
|
3980
3982
|
};
|
|
3981
3983
|
}
|
|
3982
|
-
function
|
|
3983
|
-
var i = e.aspectRatio, a = e.naturalWidth, n = e.naturalHeight, f = e.rotate, g = f === void 0 ? 0 : f, m = e.scaleX, u = m === void 0 ? 1 : m, v = e.scaleY, b = v === void 0 ? 1 : v, T = r.aspectRatio, k = r.naturalWidth, S = r.naturalHeight, P = o.fillColor, F = P === void 0 ? "transparent" : P, H = o.imageSmoothingEnabled, j = H === void 0 ? !0 : H, V = o.imageSmoothingQuality, W = V === void 0 ? "low" : V,
|
|
3984
|
+
function Ou(t, e, r, o) {
|
|
3985
|
+
var i = e.aspectRatio, a = e.naturalWidth, n = e.naturalHeight, f = e.rotate, g = f === void 0 ? 0 : f, m = e.scaleX, u = m === void 0 ? 1 : m, v = e.scaleY, b = v === void 0 ? 1 : v, T = r.aspectRatio, k = r.naturalWidth, S = r.naturalHeight, P = o.fillColor, F = P === void 0 ? "transparent" : P, H = o.imageSmoothingEnabled, j = H === void 0 ? !0 : H, V = o.imageSmoothingQuality, W = V === void 0 ? "low" : V, $ = o.maxWidth, K = $ === void 0 ? 1 / 0 : $, Q = o.maxHeight, ce = Q === void 0 ? 1 / 0 : Q, he = o.minWidth, ve = he === void 0 ? 0 : he, N = o.minHeight, R = N === void 0 ? 0 : N, O = document.createElement("canvas"), X = O.getContext("2d"), q = Le({
|
|
3984
3986
|
aspectRatio: T,
|
|
3985
3987
|
width: K,
|
|
3986
3988
|
height: ce
|
|
@@ -4002,26 +4004,26 @@ function Au(t, e, r, o) {
|
|
|
4002
4004
|
})))), X.restore(), O;
|
|
4003
4005
|
}
|
|
4004
4006
|
var oa = String.fromCharCode;
|
|
4005
|
-
function
|
|
4007
|
+
function Iu(t, e, r) {
|
|
4006
4008
|
var o = "";
|
|
4007
4009
|
r += e;
|
|
4008
4010
|
for (var i = e; i < r; i += 1)
|
|
4009
4011
|
o += oa(t.getUint8(i));
|
|
4010
4012
|
return o;
|
|
4011
4013
|
}
|
|
4012
|
-
var
|
|
4013
|
-
function
|
|
4014
|
-
var e = t.replace(
|
|
4014
|
+
var Lu = /^data:.*,/;
|
|
4015
|
+
function Pu(t) {
|
|
4016
|
+
var e = t.replace(Lu, ""), r = atob(e), o = new ArrayBuffer(r.length), i = new Uint8Array(o);
|
|
4015
4017
|
return se(i, function(a, n) {
|
|
4016
4018
|
i[n] = r.charCodeAt(n);
|
|
4017
4019
|
}), o;
|
|
4018
4020
|
}
|
|
4019
|
-
function
|
|
4021
|
+
function Nu(t, e) {
|
|
4020
4022
|
for (var r = [], o = 8192, i = new Uint8Array(t); i.length > 0; )
|
|
4021
4023
|
r.push(oa.apply(null, Qo(i.subarray(0, o)))), i = i.subarray(o);
|
|
4022
4024
|
return "data:".concat(e, ";base64,").concat(btoa(r.join("")));
|
|
4023
4025
|
}
|
|
4024
|
-
function
|
|
4026
|
+
function ju(t) {
|
|
4025
4027
|
var e = new DataView(t), r;
|
|
4026
4028
|
try {
|
|
4027
4029
|
var o, i, a;
|
|
@@ -4035,7 +4037,7 @@ function Nu(t) {
|
|
|
4035
4037
|
}
|
|
4036
4038
|
if (i) {
|
|
4037
4039
|
var g = i + 4, m = i + 10;
|
|
4038
|
-
if (
|
|
4040
|
+
if (Iu(e, g, 4) === "Exif") {
|
|
4039
4041
|
var u = e.getUint16(m);
|
|
4040
4042
|
if (o = u === 18761, (o || u === 19789) && e.getUint16(m + 2, o) === 42) {
|
|
4041
4043
|
var v = e.getUint32(m + 4, o);
|
|
@@ -4056,7 +4058,7 @@ function Nu(t) {
|
|
|
4056
4058
|
}
|
|
4057
4059
|
return r;
|
|
4058
4060
|
}
|
|
4059
|
-
function
|
|
4061
|
+
function Vu(t) {
|
|
4060
4062
|
var e = 0, r = 1, o = 1;
|
|
4061
4063
|
switch (t) {
|
|
4062
4064
|
case 2:
|
|
@@ -4087,7 +4089,7 @@ function ju(t) {
|
|
|
4087
4089
|
scaleY: o
|
|
4088
4090
|
};
|
|
4089
4091
|
}
|
|
4090
|
-
var
|
|
4092
|
+
var zu = {
|
|
4091
4093
|
render: function() {
|
|
4092
4094
|
this.initContainer(), this.initCanvas(), this.initCropBox(), this.renderCanvas(), this.cropped && this.renderCropBox();
|
|
4093
4095
|
},
|
|
@@ -4137,7 +4139,7 @@ var Vu = {
|
|
|
4137
4139
|
renderCanvas: function(e, r) {
|
|
4138
4140
|
var o = this.canvasData, i = this.imageData;
|
|
4139
4141
|
if (r) {
|
|
4140
|
-
var a =
|
|
4142
|
+
var a = Au({
|
|
4141
4143
|
width: i.naturalWidth * Math.abs(i.scaleX || 1),
|
|
4142
4144
|
height: i.naturalHeight * Math.abs(i.scaleY || 1),
|
|
4143
4145
|
degree: i.rotate || 0
|
|
@@ -4195,7 +4197,7 @@ var Vu = {
|
|
|
4195
4197
|
output: function() {
|
|
4196
4198
|
this.preview(), Qe(this.element, Qt, this.getData());
|
|
4197
4199
|
}
|
|
4198
|
-
},
|
|
4200
|
+
}, Bu = {
|
|
4199
4201
|
initPreview: function() {
|
|
4200
4202
|
var e = this.element, r = this.crossOrigin, o = this.options.preview, i = r ? this.crossOriginUrl : this.url, a = e.alt || "The image to preview", n = document.createElement("img");
|
|
4201
4203
|
if (r && (n.crossOrigin = r), n.src = i, n.alt = a, this.viewBox.appendChild(n), this.viewBoxImage = n, !!o) {
|
|
@@ -4216,7 +4218,7 @@ var Vu = {
|
|
|
4216
4218
|
Ie(e, {
|
|
4217
4219
|
width: r.width,
|
|
4218
4220
|
height: r.height
|
|
4219
|
-
}), e.innerHTML = r.html,
|
|
4221
|
+
}), e.innerHTML = r.html, $u(e, St);
|
|
4220
4222
|
});
|
|
4221
4223
|
},
|
|
4222
4224
|
preview: function() {
|
|
@@ -4241,7 +4243,7 @@ var Vu = {
|
|
|
4241
4243
|
}, e))));
|
|
4242
4244
|
}));
|
|
4243
4245
|
}
|
|
4244
|
-
},
|
|
4246
|
+
}, Ru = {
|
|
4245
4247
|
bind: function() {
|
|
4246
4248
|
var e = this.element, r = this.options, o = this.cropper;
|
|
4247
4249
|
fe(r.cropstart) && be(e, rr, r.cropstart), fe(r.cropmove) && be(e, tr, r.cropmove), fe(r.cropend) && be(e, er, r.cropend), fe(r.crop) && be(e, Qt, r.crop), fe(r.zoom) && be(e, or, r.zoom), be(o, Qr, this.onCropStart = this.cropStart.bind(this)), r.zoomable && r.zoomOnWheel && be(o, ao, this.onWheel = this.wheel.bind(this), {
|
|
@@ -4256,7 +4258,7 @@ var Vu = {
|
|
|
4256
4258
|
capture: !0
|
|
4257
4259
|
}), r.toggleDragModeOnDblclick && xe(o, Zr, this.onDblclick), xe(e.ownerDocument, eo, this.onCropMove), xe(e.ownerDocument, to, this.onCropEnd), r.responsive && xe(window, oo, this.onResize);
|
|
4258
4260
|
}
|
|
4259
|
-
},
|
|
4261
|
+
}, Hu = {
|
|
4260
4262
|
resize: function() {
|
|
4261
4263
|
if (!this.disabled) {
|
|
4262
4264
|
var e = this.options, r = this.container, o = this.containerData, i = r.offsetWidth / o.width, a = r.offsetHeight / o.height, n = Math.abs(i - 1) > Math.abs(a - 1) ? i : a;
|
|
@@ -4271,7 +4273,7 @@ var Vu = {
|
|
|
4271
4273
|
}
|
|
4272
4274
|
},
|
|
4273
4275
|
dblclick: function() {
|
|
4274
|
-
this.disabled || this.options.dragMode === Go || this.setDragMode(
|
|
4276
|
+
this.disabled || this.options.dragMode === Go || this.setDragMode(Du(this.dragBox, Jt) ? qo : yr);
|
|
4275
4277
|
},
|
|
4276
4278
|
wheel: function(e) {
|
|
4277
4279
|
var r = this, o = Number(this.options.wheelZoomRatio) || 0.1, i = 1;
|
|
@@ -4285,7 +4287,7 @@ var Vu = {
|
|
|
4285
4287
|
var i = this.options, a = this.pointers, n;
|
|
4286
4288
|
e.changedTouches ? se(e.changedTouches, function(f) {
|
|
4287
4289
|
a[f.identifier] = Dt(f);
|
|
4288
|
-
}) : a[e.pointerId || 0] = Dt(e), Object.keys(a).length > 1 && i.zoomable && i.zoomOnTouch ? n = Xo : n = ar(e.target, ft), !!
|
|
4290
|
+
}) : a[e.pointerId || 0] = Dt(e), Object.keys(a).length > 1 && i.zoomable && i.zoomOnTouch ? n = Xo : n = ar(e.target, ft), !!gu.test(n) && Qe(this.element, rr, {
|
|
4289
4291
|
originalEvent: e,
|
|
4290
4292
|
action: n
|
|
4291
4293
|
}) !== !1 && (e.preventDefault(), this.action = n, this.cropping = !1, n === Yo && (this.cropping = !0, ne(this.dragBox, At)));
|
|
@@ -4314,124 +4316,124 @@ var Vu = {
|
|
|
4314
4316
|
}));
|
|
4315
4317
|
}
|
|
4316
4318
|
}
|
|
4317
|
-
},
|
|
4319
|
+
}, Uu = {
|
|
4318
4320
|
change: function(e) {
|
|
4319
4321
|
var r = this.options, o = this.canvasData, i = this.containerData, a = this.cropBoxData, n = this.pointers, f = this.action, g = r.aspectRatio, m = a.left, u = a.top, v = a.width, b = a.height, T = m + v, k = u + b, S = 0, P = 0, F = i.width, H = i.height, j = !0, V;
|
|
4320
4322
|
!g && e.shiftKey && (g = v && b ? v / b : 1), this.limited && (S = a.minLeft, P = a.minTop, F = S + Math.min(i.width, o.width, o.left + o.width), H = P + Math.min(i.height, o.height, o.top + o.height));
|
|
4321
|
-
var W = n[Object.keys(n)[0]],
|
|
4323
|
+
var W = n[Object.keys(n)[0]], $ = {
|
|
4322
4324
|
x: W.endX - W.startX,
|
|
4323
4325
|
y: W.endY - W.startY
|
|
4324
4326
|
}, K = function(ce) {
|
|
4325
4327
|
switch (ce) {
|
|
4326
4328
|
case Ve:
|
|
4327
|
-
T +
|
|
4329
|
+
T + $.x > F && ($.x = F - T);
|
|
4328
4330
|
break;
|
|
4329
4331
|
case ze:
|
|
4330
|
-
m +
|
|
4332
|
+
m + $.x < S && ($.x = S - m);
|
|
4331
4333
|
break;
|
|
4332
4334
|
case Oe:
|
|
4333
|
-
u +
|
|
4335
|
+
u + $.y < P && ($.y = P - u);
|
|
4334
4336
|
break;
|
|
4335
4337
|
case qe:
|
|
4336
|
-
k +
|
|
4338
|
+
k + $.y > H && ($.y = H - k);
|
|
4337
4339
|
break;
|
|
4338
4340
|
}
|
|
4339
4341
|
};
|
|
4340
4342
|
switch (f) {
|
|
4341
4343
|
case br:
|
|
4342
|
-
m +=
|
|
4344
|
+
m += $.x, u += $.y;
|
|
4343
4345
|
break;
|
|
4344
4346
|
case Ve:
|
|
4345
|
-
if (
|
|
4347
|
+
if ($.x >= 0 && (T >= F || g && (u <= P || k >= H))) {
|
|
4346
4348
|
j = !1;
|
|
4347
4349
|
break;
|
|
4348
4350
|
}
|
|
4349
|
-
K(Ve), v +=
|
|
4351
|
+
K(Ve), v += $.x, v < 0 && (f = ze, v = -v, m -= v), g && (b = v / g, u += (a.height - b) / 2);
|
|
4350
4352
|
break;
|
|
4351
4353
|
case Oe:
|
|
4352
|
-
if (
|
|
4354
|
+
if ($.y <= 0 && (u <= P || g && (m <= S || T >= F))) {
|
|
4353
4355
|
j = !1;
|
|
4354
4356
|
break;
|
|
4355
4357
|
}
|
|
4356
|
-
K(Oe), b -=
|
|
4358
|
+
K(Oe), b -= $.y, u += $.y, b < 0 && (f = qe, b = -b, u -= b), g && (v = b * g, m += (a.width - v) / 2);
|
|
4357
4359
|
break;
|
|
4358
4360
|
case ze:
|
|
4359
|
-
if (
|
|
4361
|
+
if ($.x <= 0 && (m <= S || g && (u <= P || k >= H))) {
|
|
4360
4362
|
j = !1;
|
|
4361
4363
|
break;
|
|
4362
4364
|
}
|
|
4363
|
-
K(ze), v -=
|
|
4365
|
+
K(ze), v -= $.x, m += $.x, v < 0 && (f = Ve, v = -v, m -= v), g && (b = v / g, u += (a.height - b) / 2);
|
|
4364
4366
|
break;
|
|
4365
4367
|
case qe:
|
|
4366
|
-
if (
|
|
4368
|
+
if ($.y >= 0 && (k >= H || g && (m <= S || T >= F))) {
|
|
4367
4369
|
j = !1;
|
|
4368
4370
|
break;
|
|
4369
4371
|
}
|
|
4370
|
-
K(qe), b +=
|
|
4372
|
+
K(qe), b += $.y, b < 0 && (f = Oe, b = -b, u -= b), g && (v = b * g, m += (a.width - v) / 2);
|
|
4371
4373
|
break;
|
|
4372
4374
|
case nt:
|
|
4373
4375
|
if (g) {
|
|
4374
|
-
if (
|
|
4376
|
+
if ($.y <= 0 && (u <= P || T >= F)) {
|
|
4375
4377
|
j = !1;
|
|
4376
4378
|
break;
|
|
4377
4379
|
}
|
|
4378
|
-
K(Oe), b -=
|
|
4380
|
+
K(Oe), b -= $.y, u += $.y, v = b * g;
|
|
4379
4381
|
} else
|
|
4380
|
-
K(Oe), K(Ve),
|
|
4382
|
+
K(Oe), K(Ve), $.x >= 0 ? T < F ? v += $.x : $.y <= 0 && u <= P && (j = !1) : v += $.x, $.y <= 0 ? u > P && (b -= $.y, u += $.y) : (b -= $.y, u += $.y);
|
|
4381
4383
|
v < 0 && b < 0 ? (f = ut, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = lt, v = -v, m -= v) : b < 0 && (f = ct, b = -b, u -= b);
|
|
4382
4384
|
break;
|
|
4383
4385
|
case lt:
|
|
4384
4386
|
if (g) {
|
|
4385
|
-
if (
|
|
4387
|
+
if ($.y <= 0 && (u <= P || m <= S)) {
|
|
4386
4388
|
j = !1;
|
|
4387
4389
|
break;
|
|
4388
4390
|
}
|
|
4389
|
-
K(Oe), b -=
|
|
4391
|
+
K(Oe), b -= $.y, u += $.y, v = b * g, m += a.width - v;
|
|
4390
4392
|
} else
|
|
4391
|
-
K(Oe), K(ze),
|
|
4393
|
+
K(Oe), K(ze), $.x <= 0 ? m > S ? (v -= $.x, m += $.x) : $.y <= 0 && u <= P && (j = !1) : (v -= $.x, m += $.x), $.y <= 0 ? u > P && (b -= $.y, u += $.y) : (b -= $.y, u += $.y);
|
|
4392
4394
|
v < 0 && b < 0 ? (f = ct, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = nt, v = -v, m -= v) : b < 0 && (f = ut, b = -b, u -= b);
|
|
4393
4395
|
break;
|
|
4394
4396
|
case ut:
|
|
4395
4397
|
if (g) {
|
|
4396
|
-
if (
|
|
4398
|
+
if ($.x <= 0 && (m <= S || k >= H)) {
|
|
4397
4399
|
j = !1;
|
|
4398
4400
|
break;
|
|
4399
4401
|
}
|
|
4400
|
-
K(ze), v -=
|
|
4402
|
+
K(ze), v -= $.x, m += $.x, b = v / g;
|
|
4401
4403
|
} else
|
|
4402
|
-
K(qe), K(ze),
|
|
4404
|
+
K(qe), K(ze), $.x <= 0 ? m > S ? (v -= $.x, m += $.x) : $.y >= 0 && k >= H && (j = !1) : (v -= $.x, m += $.x), $.y >= 0 ? k < H && (b += $.y) : b += $.y;
|
|
4403
4405
|
v < 0 && b < 0 ? (f = nt, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = ct, v = -v, m -= v) : b < 0 && (f = lt, b = -b, u -= b);
|
|
4404
4406
|
break;
|
|
4405
4407
|
case ct:
|
|
4406
4408
|
if (g) {
|
|
4407
|
-
if (
|
|
4409
|
+
if ($.x >= 0 && (T >= F || k >= H)) {
|
|
4408
4410
|
j = !1;
|
|
4409
4411
|
break;
|
|
4410
4412
|
}
|
|
4411
|
-
K(Ve), v +=
|
|
4413
|
+
K(Ve), v += $.x, b = v / g;
|
|
4412
4414
|
} else
|
|
4413
|
-
K(qe), K(Ve),
|
|
4415
|
+
K(qe), K(Ve), $.x >= 0 ? T < F ? v += $.x : $.y >= 0 && k >= H && (j = !1) : v += $.x, $.y >= 0 ? k < H && (b += $.y) : b += $.y;
|
|
4414
4416
|
v < 0 && b < 0 ? (f = lt, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = ut, v = -v, m -= v) : b < 0 && (f = nt, b = -b, u -= b);
|
|
4415
4417
|
break;
|
|
4416
4418
|
case Wo:
|
|
4417
|
-
this.move(
|
|
4419
|
+
this.move($.x, $.y), j = !1;
|
|
4418
4420
|
break;
|
|
4419
4421
|
case Xo:
|
|
4420
|
-
this.zoom(
|
|
4422
|
+
this.zoom(Eu(n), e), j = !1;
|
|
4421
4423
|
break;
|
|
4422
4424
|
case Yo:
|
|
4423
|
-
if (
|
|
4425
|
+
if (!$.x || !$.y) {
|
|
4424
4426
|
j = !1;
|
|
4425
4427
|
break;
|
|
4426
4428
|
}
|
|
4427
|
-
V = ra(this.cropper), m = W.startX - V.left, u = W.startY - V.top, v = a.minWidth, b = a.minHeight,
|
|
4429
|
+
V = ra(this.cropper), m = W.startX - V.left, u = W.startY - V.top, v = a.minWidth, b = a.minHeight, $.x > 0 ? f = $.y > 0 ? ct : nt : $.x < 0 && (m -= v, f = $.y > 0 ? ut : lt), $.y < 0 && (u -= b), this.cropped || (De(this.cropBox, me), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
4428
4430
|
break;
|
|
4429
4431
|
}
|
|
4430
4432
|
j && (a.width = v, a.height = b, a.left = m, a.top = u, this.action = f, this.renderCropBox()), se(n, function(Q) {
|
|
4431
4433
|
Q.startX = Q.endX, Q.startY = Q.endY;
|
|
4432
4434
|
});
|
|
4433
4435
|
}
|
|
4434
|
-
},
|
|
4436
|
+
}, Ku = {
|
|
4435
4437
|
crop: function() {
|
|
4436
4438
|
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && ne(this.dragBox, At), De(this.cropBox, me), this.setCropBoxData(this.initialCropBoxData)), this;
|
|
4437
4439
|
},
|
|
@@ -4485,7 +4487,7 @@ var Vu = {
|
|
|
4485
4487
|
}) === !1)
|
|
4486
4488
|
return this;
|
|
4487
4489
|
if (o) {
|
|
4488
|
-
var b = this.pointers, T = ra(this.cropper), k = b && Object.keys(b).length ?
|
|
4490
|
+
var b = this.pointers, T = ra(this.cropper), k = b && Object.keys(b).length ? Tu(b) : {
|
|
4489
4491
|
pageX: o.pageX,
|
|
4490
4492
|
pageY: o.pageY
|
|
4491
4493
|
};
|
|
@@ -4582,7 +4584,7 @@ var Vu = {
|
|
|
4582
4584
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4583
4585
|
if (!this.ready || !window.HTMLCanvasElement)
|
|
4584
4586
|
return null;
|
|
4585
|
-
var r = this.canvasData, o =
|
|
4587
|
+
var r = this.canvasData, o = Ou(this.image, this.imageData, r, e);
|
|
4586
4588
|
if (!this.cropped)
|
|
4587
4589
|
return o;
|
|
4588
4590
|
var i = this.getData(), a = i.x, n = i.y, f = i.width, g = i.height, m = o.width / Math.floor(r.naturalWidth);
|
|
@@ -4605,8 +4607,8 @@ var Vu = {
|
|
|
4605
4607
|
P.width = Ze(k), P.height = Ze(S), F.fillStyle = e.fillColor || "transparent", F.fillRect(0, 0, k, S);
|
|
4606
4608
|
var H = e.imageSmoothingEnabled, j = H === void 0 ? !0 : H, V = e.imageSmoothingQuality;
|
|
4607
4609
|
F.imageSmoothingEnabled = j, V && (F.imageSmoothingQuality = V);
|
|
4608
|
-
var W = o.width,
|
|
4609
|
-
K <= -f || K > W ? (K = 0, ce = 0, ve = 0, R = 0) : K <= 0 ? (ve = -K, K = 0, ce = Math.min(W, f + K), R = ce) : K <= W && (ve = 0, ce = Math.min(f, W - K), R = ce), ce <= 0 || Q <= -g || Q >
|
|
4610
|
+
var W = o.width, $ = o.height, K = a, Q = n, ce, he, ve, N, R, O;
|
|
4611
|
+
K <= -f || K > W ? (K = 0, ce = 0, ve = 0, R = 0) : K <= 0 ? (ve = -K, K = 0, ce = Math.min(W, f + K), R = ce) : K <= W && (ve = 0, ce = Math.min(f, W - K), R = ce), ce <= 0 || Q <= -g || Q > $ ? (Q = 0, he = 0, N = 0, O = 0) : Q <= 0 ? (N = -Q, Q = 0, he = Math.min($, g + Q), O = he) : Q <= $ && (N = 0, he = Math.min(g, $ - Q), O = he);
|
|
4610
4612
|
var X = [K, Q, ce, he];
|
|
4611
4613
|
if (R > 0 && O > 0) {
|
|
4612
4614
|
var q = k / f;
|
|
@@ -4628,14 +4630,14 @@ var Vu = {
|
|
|
4628
4630
|
}
|
|
4629
4631
|
return this;
|
|
4630
4632
|
}
|
|
4631
|
-
},
|
|
4633
|
+
}, Fu = Ce.Cropper, aa = /* @__PURE__ */ function() {
|
|
4632
4634
|
function t(e) {
|
|
4633
4635
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4634
|
-
if (
|
|
4636
|
+
if (au(this, t), !e || !bu.test(e.tagName))
|
|
4635
4637
|
throw new Error("The first argument is required and must be an <img> or <canvas> element.");
|
|
4636
4638
|
this.element = e, this.options = re({}, io, Ge(r) && r), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
|
|
4637
4639
|
}
|
|
4638
|
-
return
|
|
4640
|
+
return su(t, [{
|
|
4639
4641
|
key: "init",
|
|
4640
4642
|
value: function() {
|
|
4641
4643
|
var r = this.element, o = r.tagName.toLowerCase(), i;
|
|
@@ -4660,8 +4662,8 @@ var Vu = {
|
|
|
4660
4662
|
this.clone();
|
|
4661
4663
|
return;
|
|
4662
4664
|
}
|
|
4663
|
-
if (
|
|
4664
|
-
|
|
4665
|
+
if (pu.test(r)) {
|
|
4666
|
+
vu.test(r) ? this.read(Pu(r)) : this.clone();
|
|
4665
4667
|
return;
|
|
4666
4668
|
}
|
|
4667
4669
|
var n = new XMLHttpRequest(), f = this.clone.bind(this);
|
|
@@ -4677,10 +4679,10 @@ var Vu = {
|
|
|
4677
4679
|
}, {
|
|
4678
4680
|
key: "read",
|
|
4679
4681
|
value: function(r) {
|
|
4680
|
-
var o = this.options, i = this.imageData, a =
|
|
4682
|
+
var o = this.options, i = this.imageData, a = ju(r), n = 0, f = 1, g = 1;
|
|
4681
4683
|
if (a > 1) {
|
|
4682
|
-
this.url =
|
|
4683
|
-
var m =
|
|
4684
|
+
this.url = Nu(r, so);
|
|
4685
|
+
var m = Vu(a);
|
|
4684
4686
|
n = m.rotate, f = m.scaleX, g = m.scaleY;
|
|
4685
4687
|
}
|
|
4686
4688
|
o.rotatable && (i.rotate = n), o.scalable && (i.scaleX = f, i.scaleY = g), this.clone();
|
|
@@ -4725,9 +4727,9 @@ var Vu = {
|
|
|
4725
4727
|
value: function() {
|
|
4726
4728
|
if (!(!this.sized || this.ready)) {
|
|
4727
4729
|
var r = this.element, o = this.options, i = this.image, a = r.parentNode, n = document.createElement("div");
|
|
4728
|
-
n.innerHTML =
|
|
4730
|
+
n.innerHTML = yu;
|
|
4729
4731
|
var f = n.querySelector(".".concat(te, "-container")), g = f.querySelector(".".concat(te, "-canvas")), m = f.querySelector(".".concat(te, "-drag-box")), u = f.querySelector(".".concat(te, "-crop-box")), v = u.querySelector(".".concat(te, "-face"));
|
|
4730
|
-
this.container = a, this.cropper = f, this.canvas = g, this.dragBox = m, this.cropBox = u, this.viewBox = f.querySelector(".".concat(te, "-view-box")), this.face = v, g.appendChild(i), ne(r, me), a.insertBefore(f, r.nextSibling), this.isImg || De(i, Jr), this.initPreview(), this.bind(), o.initialAspectRatio = Math.max(0, o.initialAspectRatio) || NaN, o.aspectRatio = Math.max(0, o.aspectRatio) || NaN, o.viewMode = Math.max(0, Math.min(3, Math.round(o.viewMode))) || 0, ne(u, me), o.guides || ne(u.getElementsByClassName("".concat(te, "-dashed")), me), o.center || ne(u.getElementsByClassName("".concat(te, "-center")), me), o.background && ne(f, "".concat(te, "-bg")), o.highlight || ne(v,
|
|
4732
|
+
this.container = a, this.cropper = f, this.canvas = g, this.dragBox = m, this.cropBox = u, this.viewBox = f.querySelector(".".concat(te, "-view-box")), this.face = v, g.appendChild(i), ne(r, me), a.insertBefore(f, r.nextSibling), this.isImg || De(i, Jr), this.initPreview(), this.bind(), o.initialAspectRatio = Math.max(0, o.initialAspectRatio) || NaN, o.aspectRatio = Math.max(0, o.aspectRatio) || NaN, o.viewMode = Math.max(0, Math.min(3, Math.round(o.viewMode))) || 0, ne(u, me), o.guides || ne(u.getElementsByClassName("".concat(te, "-dashed")), me), o.center || ne(u.getElementsByClassName("".concat(te, "-center")), me), o.background && ne(f, "".concat(te, "-bg")), o.highlight || ne(v, du), o.cropBoxMovable && (ne(v, Zt), mt(v, ft, br)), o.cropBoxResizable || (ne(u.getElementsByClassName("".concat(te, "-line")), me), ne(u.getElementsByClassName("".concat(te, "-point")), me)), this.render(), this.ready = !0, this.setDragMode(o.dragMode), o.autoCrop && this.crop(), this.setData(o.data), fe(o.ready) && be(r, ro, o.ready, {
|
|
4731
4733
|
once: !0
|
|
4732
4734
|
}), Qe(r, ro);
|
|
4733
4735
|
}
|
|
@@ -4745,7 +4747,7 @@ var Vu = {
|
|
|
4745
4747
|
}], [{
|
|
4746
4748
|
key: "noConflict",
|
|
4747
4749
|
value: function() {
|
|
4748
|
-
return window.Cropper =
|
|
4750
|
+
return window.Cropper = Fu, t;
|
|
4749
4751
|
}
|
|
4750
4752
|
}, {
|
|
4751
4753
|
key: "setDefaults",
|
|
@@ -4754,15 +4756,15 @@ var Vu = {
|
|
|
4754
4756
|
}
|
|
4755
4757
|
}]), t;
|
|
4756
4758
|
}();
|
|
4757
|
-
re(aa.prototype,
|
|
4758
|
-
const
|
|
4759
|
+
re(aa.prototype, zu, Bu, Ru, Hu, Uu, Ku);
|
|
4760
|
+
const Yu = { class: "flex" }, Wu = ["aria-label"], Xu = { class: "ml-auto mb-2" }, qu = { class: "w-full flex justify-center" }, Gu = ["src"], Ju = {
|
|
4759
4761
|
__name: "Image",
|
|
4760
4762
|
props: {
|
|
4761
4763
|
selection: Object
|
|
4762
4764
|
},
|
|
4763
4765
|
emits: ["load"],
|
|
4764
4766
|
setup(t, { emit: e }) {
|
|
4765
|
-
const r = t, { t: o } = B("i18n"), { apiUrl: i } =
|
|
4767
|
+
const r = t, { t: o } = B("i18n"), { apiUrl: i } = $e(), a = L(null), n = L(null), f = L(!1), g = L(""), m = L(!1), u = () => {
|
|
4766
4768
|
f.value = !f.value, f.value ? n.value = new aa(a.value, {
|
|
4767
4769
|
crop(T) {
|
|
4768
4770
|
}
|
|
@@ -4794,15 +4796,15 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4794
4796
|
return ke(() => {
|
|
4795
4797
|
e("load");
|
|
4796
4798
|
}), (T, k) => (y(), C(le, null, [
|
|
4797
|
-
d("div",
|
|
4799
|
+
d("div", Yu, [
|
|
4798
4800
|
d("h3", {
|
|
4799
4801
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4800
4802
|
id: "modal-title",
|
|
4801
4803
|
"aria-label": t.selection.item.path,
|
|
4802
4804
|
"data-microtip-position": "bottom-right",
|
|
4803
4805
|
role: "tooltip"
|
|
4804
|
-
}, E(t.selection.item.basename), 9,
|
|
4805
|
-
d("div",
|
|
4806
|
+
}, E(t.selection.item.basename), 9, Wu),
|
|
4807
|
+
d("div", Xu, [
|
|
4806
4808
|
f.value ? (y(), C("button", {
|
|
4807
4809
|
key: 0,
|
|
4808
4810
|
onClick: b,
|
|
@@ -4814,14 +4816,14 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4814
4816
|
}, E(f.value ? x(o)("Cancel") : x(o)("Edit")), 1)
|
|
4815
4817
|
])
|
|
4816
4818
|
]),
|
|
4817
|
-
d("div",
|
|
4819
|
+
d("div", qu, [
|
|
4818
4820
|
d("img", {
|
|
4819
4821
|
ref_key: "image",
|
|
4820
4822
|
ref: a,
|
|
4821
4823
|
class: "max-w-[60vh] max-h-[60vh]",
|
|
4822
4824
|
src: x(Xt)(r.selection.adapter, r.selection.item.path),
|
|
4823
4825
|
alt: ""
|
|
4824
|
-
}, null, 8,
|
|
4826
|
+
}, null, 8, Gu)
|
|
4825
4827
|
]),
|
|
4826
4828
|
g.value.length ? (y(), Z(Ee, {
|
|
4827
4829
|
key: 0,
|
|
@@ -4835,7 +4837,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4835
4837
|
}, 8, ["error"])) : G("", !0)
|
|
4836
4838
|
], 64));
|
|
4837
4839
|
}
|
|
4838
|
-
},
|
|
4840
|
+
}, Zu = { class: "flex" }, Qu = ["aria-label"], ed = /* @__PURE__ */ d("div", null, null, -1), td = {
|
|
4839
4841
|
__name: "Default",
|
|
4840
4842
|
props: {
|
|
4841
4843
|
selection: Object
|
|
@@ -4845,30 +4847,30 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4845
4847
|
return ke(() => {
|
|
4846
4848
|
e("load");
|
|
4847
4849
|
}), (r, o) => (y(), C(le, null, [
|
|
4848
|
-
d("div",
|
|
4850
|
+
d("div", Zu, [
|
|
4849
4851
|
d("h3", {
|
|
4850
4852
|
class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
4851
4853
|
id: "modal-title",
|
|
4852
4854
|
"aria-label": t.selection.item.path,
|
|
4853
4855
|
"data-microtip-position": "bottom-right",
|
|
4854
4856
|
role: "tooltip"
|
|
4855
|
-
}, E(t.selection.item.basename), 9,
|
|
4857
|
+
}, E(t.selection.item.basename), 9, Qu)
|
|
4856
4858
|
]),
|
|
4857
|
-
|
|
4859
|
+
ed
|
|
4858
4860
|
], 64));
|
|
4859
4861
|
}
|
|
4860
|
-
},
|
|
4862
|
+
}, rd = ["aria-label"], od = {
|
|
4861
4863
|
class: "w-full",
|
|
4862
4864
|
preload: "",
|
|
4863
4865
|
controls: ""
|
|
4864
|
-
},
|
|
4866
|
+
}, ad = ["src"], sd = /* @__PURE__ */ ie(" Your browser does not support the video tag. "), id = {
|
|
4865
4867
|
__name: "Video",
|
|
4866
4868
|
props: {
|
|
4867
4869
|
selection: Object
|
|
4868
4870
|
},
|
|
4869
4871
|
emits: ["load"],
|
|
4870
4872
|
setup(t, { emit: e }) {
|
|
4871
|
-
const r = t, { apiUrl: o } =
|
|
4873
|
+
const r = t, { apiUrl: o } = $e(), i = () => o.value + "?" + Ue({ q: "preview", adapter: r.selection.adapter, path: r.selection.item.path });
|
|
4872
4874
|
return ke(() => {
|
|
4873
4875
|
e("load");
|
|
4874
4876
|
}), (a, n) => (y(), C(le, null, [
|
|
@@ -4878,29 +4880,29 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4878
4880
|
"aria-label": t.selection.item.path,
|
|
4879
4881
|
"data-microtip-position": "bottom-right",
|
|
4880
4882
|
role: "tooltip"
|
|
4881
|
-
}, E(t.selection.item.basename), 9,
|
|
4883
|
+
}, E(t.selection.item.basename), 9, rd),
|
|
4882
4884
|
d("div", null, [
|
|
4883
|
-
d("video",
|
|
4885
|
+
d("video", od, [
|
|
4884
4886
|
d("source", {
|
|
4885
4887
|
src: i(),
|
|
4886
4888
|
type: "video/mp4"
|
|
4887
|
-
}, null, 8,
|
|
4888
|
-
|
|
4889
|
+
}, null, 8, ad),
|
|
4890
|
+
sd
|
|
4889
4891
|
])
|
|
4890
4892
|
])
|
|
4891
4893
|
], 64));
|
|
4892
4894
|
}
|
|
4893
|
-
},
|
|
4895
|
+
}, nd = ["aria-label"], ld = {
|
|
4894
4896
|
class: "w-full",
|
|
4895
4897
|
controls: ""
|
|
4896
|
-
},
|
|
4898
|
+
}, cd = ["src"], ud = /* @__PURE__ */ ie(" Your browser does not support the audio element. "), dd = {
|
|
4897
4899
|
__name: "Audio",
|
|
4898
4900
|
props: {
|
|
4899
4901
|
selection: Object
|
|
4900
4902
|
},
|
|
4901
4903
|
emits: ["load"],
|
|
4902
4904
|
setup(t, { emit: e }) {
|
|
4903
|
-
const r = t, { apiUrl: o } =
|
|
4905
|
+
const r = t, { apiUrl: o } = $e(), i = () => o.value + "?" + Ue({ q: "preview", adapter: r.selection.adapter, path: r.selection.item.path });
|
|
4904
4906
|
return ke(() => {
|
|
4905
4907
|
e("load");
|
|
4906
4908
|
}), (a, n) => (y(), C(le, null, [
|
|
@@ -4910,26 +4912,26 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4910
4912
|
"aria-label": t.selection.item.path,
|
|
4911
4913
|
"data-microtip-position": "bottom-right",
|
|
4912
4914
|
role: "tooltip"
|
|
4913
|
-
}, E(t.selection.item.basename), 9,
|
|
4915
|
+
}, E(t.selection.item.basename), 9, nd),
|
|
4914
4916
|
d("div", null, [
|
|
4915
|
-
d("audio",
|
|
4917
|
+
d("audio", ld, [
|
|
4916
4918
|
d("source", {
|
|
4917
4919
|
src: i(),
|
|
4918
4920
|
type: "audio/mpeg"
|
|
4919
|
-
}, null, 8,
|
|
4920
|
-
|
|
4921
|
+
}, null, 8, cd),
|
|
4922
|
+
ud
|
|
4921
4923
|
])
|
|
4922
4924
|
])
|
|
4923
4925
|
], 64));
|
|
4924
4926
|
}
|
|
4925
|
-
},
|
|
4927
|
+
}, hd = ["aria-label"], fd = ["data"], md = ["src"], gd = {
|
|
4926
4928
|
__name: "Pdf",
|
|
4927
4929
|
props: {
|
|
4928
4930
|
selection: Object
|
|
4929
4931
|
},
|
|
4930
4932
|
emits: ["load"],
|
|
4931
4933
|
setup(t, { emit: e }) {
|
|
4932
|
-
const r = t, { apiUrl: o } =
|
|
4934
|
+
const r = t, { apiUrl: o } = $e(), i = () => o.value + "?" + Ue({ q: "preview", adapter: r.selection.adapter, path: r.selection.item.path });
|
|
4933
4935
|
return ke(() => {
|
|
4934
4936
|
e("load");
|
|
4935
4937
|
}), (a, n) => (y(), C(le, null, [
|
|
@@ -4939,7 +4941,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4939
4941
|
"aria-label": t.selection.item.path,
|
|
4940
4942
|
"data-microtip-position": "bottom-right",
|
|
4941
4943
|
role: "tooltip"
|
|
4942
|
-
}, E(t.selection.item.basename), 9,
|
|
4944
|
+
}, E(t.selection.item.basename), 9, hd),
|
|
4943
4945
|
d("div", null, [
|
|
4944
4946
|
d("object", {
|
|
4945
4947
|
class: "h-[60vh]",
|
|
@@ -4959,15 +4961,15 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4959
4961
|
<a href="https://example.com/test.pdf">Download the PDF</a>
|
|
4960
4962
|
.
|
|
4961
4963
|
</p>
|
|
4962
|
-
`, 8,
|
|
4963
|
-
], 8,
|
|
4964
|
+
`, 8, md)
|
|
4965
|
+
], 8, fd)
|
|
4964
4966
|
])
|
|
4965
4967
|
], 64));
|
|
4966
4968
|
}
|
|
4967
|
-
},
|
|
4969
|
+
}, pd = { class: "sm:flex sm:items-start" }, vd = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, bd = { class: "text-gray-700 dark:text-gray-200 text-sm" }, yd = {
|
|
4968
4970
|
key: 0,
|
|
4969
4971
|
class: "flex leading-5"
|
|
4970
|
-
},
|
|
4972
|
+
}, wd = /* @__PURE__ */ d("svg", {
|
|
4971
4973
|
class: "animate-spin -ml-1 mr-3 h-5 w-5 text-white",
|
|
4972
4974
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4973
4975
|
fill: "none",
|
|
@@ -4986,21 +4988,21 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
4986
4988
|
fill: "currentColor",
|
|
4987
4989
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
4988
4990
|
})
|
|
4989
|
-
], -1),
|
|
4991
|
+
], -1), xd = { class: "p-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, _d = { class: "font-bold pl-2" }, kd = { class: "font-bold pl-2" }, Sd = {
|
|
4990
4992
|
name: "VFModalPreview"
|
|
4991
|
-
},
|
|
4993
|
+
}, Dd = /* @__PURE__ */ Object.assign(Sd, {
|
|
4992
4994
|
props: {
|
|
4993
4995
|
selection: Object
|
|
4994
4996
|
},
|
|
4995
4997
|
setup(t) {
|
|
4996
|
-
const e = t, { apiUrl: r } =
|
|
4998
|
+
const e = t, { apiUrl: r } = $e(), o = B("emitter"), { t: i } = B("i18n"), a = L(!1), n = (m) => a.value = m, f = (m) => {
|
|
4997
4999
|
var u;
|
|
4998
5000
|
return ((u = e.selection.item.mime_type) != null ? u : "").startsWith(m);
|
|
4999
5001
|
}, g = () => {
|
|
5000
5002
|
const m = r.value + "?" + Ue({ q: "download", adapter: e.selection.adapter, path: e.selection.item.path });
|
|
5001
5003
|
o.emit("vf-download", m);
|
|
5002
5004
|
};
|
|
5003
|
-
return (m, u) => (y(), Z(
|
|
5005
|
+
return (m, u) => (y(), Z(Me, null, {
|
|
5004
5006
|
buttons: J(() => [
|
|
5005
5007
|
d("button", {
|
|
5006
5008
|
type: "button",
|
|
@@ -5014,50 +5016,50 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5014
5016
|
}, E(x(i)("Download")), 1)
|
|
5015
5017
|
]),
|
|
5016
5018
|
default: J(() => [
|
|
5017
|
-
d("div",
|
|
5018
|
-
d("div",
|
|
5019
|
+
d("div", pd, [
|
|
5020
|
+
d("div", vd, [
|
|
5019
5021
|
d("div", null, [
|
|
5020
|
-
f("text") ? (y(), Z(
|
|
5022
|
+
f("text") ? (y(), Z(ou, {
|
|
5021
5023
|
key: 0,
|
|
5022
5024
|
selection: t.selection,
|
|
5023
5025
|
onLoad: u[0] || (u[0] = (v) => n(!0))
|
|
5024
|
-
}, null, 8, ["selection"])) : f("image") ? (y(), Z(
|
|
5026
|
+
}, null, 8, ["selection"])) : f("image") ? (y(), Z(Ju, {
|
|
5025
5027
|
key: 1,
|
|
5026
5028
|
selection: t.selection,
|
|
5027
5029
|
onLoad: u[1] || (u[1] = (v) => n(!0))
|
|
5028
|
-
}, null, 8, ["selection"])) : f("video") ? (y(), Z(
|
|
5030
|
+
}, null, 8, ["selection"])) : f("video") ? (y(), Z(id, {
|
|
5029
5031
|
key: 2,
|
|
5030
5032
|
selection: t.selection,
|
|
5031
5033
|
onLoad: u[2] || (u[2] = (v) => n(!0))
|
|
5032
|
-
}, null, 8, ["selection"])) : f("audio") ? (y(), Z(
|
|
5034
|
+
}, null, 8, ["selection"])) : f("audio") ? (y(), Z(dd, {
|
|
5033
5035
|
key: 3,
|
|
5034
5036
|
selection: t.selection,
|
|
5035
5037
|
onLoad: u[3] || (u[3] = (v) => n(!0))
|
|
5036
|
-
}, null, 8, ["selection"])) : f("application/pdf") ? (y(), Z(
|
|
5038
|
+
}, null, 8, ["selection"])) : f("application/pdf") ? (y(), Z(gd, {
|
|
5037
5039
|
key: 4,
|
|
5038
5040
|
selection: t.selection,
|
|
5039
5041
|
onLoad: u[4] || (u[4] = (v) => n(!0))
|
|
5040
|
-
}, null, 8, ["selection"])) : (y(), Z(
|
|
5042
|
+
}, null, 8, ["selection"])) : (y(), Z(td, {
|
|
5041
5043
|
key: 5,
|
|
5042
5044
|
selection: t.selection,
|
|
5043
5045
|
onLoad: u[5] || (u[5] = (v) => n(!0))
|
|
5044
5046
|
}, null, 8, ["selection"]))
|
|
5045
5047
|
]),
|
|
5046
|
-
d("div",
|
|
5047
|
-
a.value == !1 ? (y(), C("div",
|
|
5048
|
-
|
|
5048
|
+
d("div", bd, [
|
|
5049
|
+
a.value == !1 ? (y(), C("div", yd, [
|
|
5050
|
+
wd,
|
|
5049
5051
|
d("span", null, E(x(i)("Loading")), 1)
|
|
5050
5052
|
])) : G("", !0)
|
|
5051
5053
|
])
|
|
5052
5054
|
])
|
|
5053
5055
|
]),
|
|
5054
|
-
d("div",
|
|
5056
|
+
d("div", xd, [
|
|
5055
5057
|
d("div", null, [
|
|
5056
|
-
d("span",
|
|
5058
|
+
d("span", _d, E(x(i)("File Size")) + ": ", 1),
|
|
5057
5059
|
ie(E(x(mo)(t.selection.item.file_size)), 1)
|
|
5058
5060
|
]),
|
|
5059
5061
|
d("div", null, [
|
|
5060
|
-
d("span",
|
|
5062
|
+
d("span", kd, E(x(i)("Last Modified")) + ": ", 1),
|
|
5061
5063
|
ie(" " + E(x(go)(t.selection.item.last_modified)), 1)
|
|
5062
5064
|
])
|
|
5063
5065
|
])
|
|
@@ -5065,7 +5067,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5065
5067
|
_: 1
|
|
5066
5068
|
}));
|
|
5067
5069
|
}
|
|
5068
|
-
}),
|
|
5070
|
+
}), Cd = { class: "sm:flex sm:items-start" }, $d = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
5069
5071
|
/* @__PURE__ */ d("svg", {
|
|
5070
5072
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5071
5073
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -5080,10 +5082,10 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5080
5082
|
d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
|
|
5081
5083
|
})
|
|
5082
5084
|
])
|
|
5083
|
-
], -1), Md = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" },
|
|
5085
|
+
], -1), Md = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ed = {
|
|
5084
5086
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5085
5087
|
id: "modal-title"
|
|
5086
|
-
},
|
|
5088
|
+
}, Td = { class: "mt-2" }, Ad = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Od = {
|
|
5087
5089
|
key: 0,
|
|
5088
5090
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5089
5091
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -5091,13 +5093,13 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5091
5093
|
viewBox: "0 0 24 24",
|
|
5092
5094
|
stroke: "currentColor",
|
|
5093
5095
|
"stroke-width": "1"
|
|
5094
|
-
},
|
|
5096
|
+
}, Id = /* @__PURE__ */ d("path", {
|
|
5095
5097
|
"stroke-linecap": "round",
|
|
5096
5098
|
"stroke-linejoin": "round",
|
|
5097
5099
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5098
|
-
}, null, -1),
|
|
5099
|
-
|
|
5100
|
-
],
|
|
5100
|
+
}, null, -1), Ld = [
|
|
5101
|
+
Id
|
|
5102
|
+
], Pd = {
|
|
5101
5103
|
key: 1,
|
|
5102
5104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5103
5105
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -5105,15 +5107,15 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5105
5107
|
viewBox: "0 0 24 24",
|
|
5106
5108
|
stroke: "currentColor",
|
|
5107
5109
|
"stroke-width": "1"
|
|
5108
|
-
},
|
|
5110
|
+
}, Nd = /* @__PURE__ */ d("path", {
|
|
5109
5111
|
"stroke-linecap": "round",
|
|
5110
5112
|
"stroke-linejoin": "round",
|
|
5111
5113
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
5112
|
-
}, null, -1),
|
|
5113
|
-
|
|
5114
|
-
],
|
|
5114
|
+
}, null, -1), jd = [
|
|
5115
|
+
Nd
|
|
5116
|
+
], Vd = { class: "ml-1.5" }, zd = ["onKeyup"], Bd = {
|
|
5115
5117
|
name: "VFModalRename"
|
|
5116
|
-
},
|
|
5118
|
+
}, Rd = /* @__PURE__ */ Object.assign(Bd, {
|
|
5117
5119
|
props: {
|
|
5118
5120
|
selection: Object,
|
|
5119
5121
|
current: Object
|
|
@@ -5136,7 +5138,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5136
5138
|
}
|
|
5137
5139
|
});
|
|
5138
5140
|
};
|
|
5139
|
-
return (m, u) => (y(), Z(
|
|
5141
|
+
return (m, u) => (y(), Z(Me, null, {
|
|
5140
5142
|
buttons: J(() => [
|
|
5141
5143
|
d("button", {
|
|
5142
5144
|
type: "button",
|
|
@@ -5150,14 +5152,14 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5150
5152
|
}, E(x(i)("Cancel")), 1)
|
|
5151
5153
|
]),
|
|
5152
5154
|
default: J(() => [
|
|
5153
|
-
d("div",
|
|
5154
|
-
|
|
5155
|
+
d("div", Cd, [
|
|
5156
|
+
$d,
|
|
5155
5157
|
d("div", Md, [
|
|
5156
|
-
d("h3",
|
|
5157
|
-
d("div",
|
|
5158
|
-
d("p",
|
|
5159
|
-
a.value.type == "dir" ? (y(), C("svg",
|
|
5160
|
-
d("span",
|
|
5158
|
+
d("h3", Ed, E(x(i)("Rename")), 1),
|
|
5159
|
+
d("div", Td, [
|
|
5160
|
+
d("p", Ad, [
|
|
5161
|
+
a.value.type == "dir" ? (y(), C("svg", Od, Ld)) : (y(), C("svg", Pd, jd)),
|
|
5162
|
+
d("span", Vd, E(a.value.basename), 1)
|
|
5161
5163
|
]),
|
|
5162
5164
|
ye(d("input", {
|
|
5163
5165
|
"onUpdate:modelValue": u[0] || (u[0] = (v) => n.value = v),
|
|
@@ -5165,7 +5167,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5165
5167
|
class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
5166
5168
|
placeholder: "Name",
|
|
5167
5169
|
type: "text"
|
|
5168
|
-
}, null, 40,
|
|
5170
|
+
}, null, 40, zd), [
|
|
5169
5171
|
[rt, n.value]
|
|
5170
5172
|
]),
|
|
5171
5173
|
f.value.length ? (y(), Z(Ee, {
|
|
@@ -5185,7 +5187,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5185
5187
|
_: 1
|
|
5186
5188
|
}));
|
|
5187
5189
|
}
|
|
5188
|
-
}),
|
|
5190
|
+
}), Hd = { class: "sm:flex sm:items-start" }, Ud = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
5189
5191
|
/* @__PURE__ */ d("svg", {
|
|
5190
5192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5191
5193
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -5200,20 +5202,20 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5200
5202
|
d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
|
|
5201
5203
|
})
|
|
5202
5204
|
])
|
|
5203
|
-
], -1),
|
|
5205
|
+
], -1), Kd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left" }, Fd = {
|
|
5204
5206
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5205
5207
|
id: "modal-title"
|
|
5206
|
-
},
|
|
5208
|
+
}, Yd = { class: "mt-2" }, Wd = { class: "text-gray-500 mb-1" }, Xd = ["id"], qd = {
|
|
5207
5209
|
key: 0,
|
|
5208
5210
|
class: "py-2"
|
|
5209
|
-
},
|
|
5211
|
+
}, Gd = ["disabled", "onClick"], Jd = {
|
|
5210
5212
|
name: "VFModalUpload"
|
|
5211
|
-
},
|
|
5213
|
+
}, Zd = /* @__PURE__ */ Object.assign(Jd, {
|
|
5212
5214
|
props: {
|
|
5213
5215
|
current: Object
|
|
5214
5216
|
},
|
|
5215
5217
|
setup(t) {
|
|
5216
|
-
const e = t, r = B("emitter"), { apiUrl: o } =
|
|
5218
|
+
const e = t, r = B("emitter"), { apiUrl: o } = $e(), { t: i } = B("i18n"), a = L(null), n = L(null), f = L(null), g = L([]), m = L(""), u = L(!0), v = () => {
|
|
5217
5219
|
m.value = "", a.value.start();
|
|
5218
5220
|
}, b = B("postData");
|
|
5219
5221
|
return ke(() => {
|
|
@@ -5226,7 +5228,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5226
5228
|
file_data_name: "file",
|
|
5227
5229
|
url: o.value + "?" + Ue(Object.assign(b, { q: "upload", adapter: e.current.adapter, path: e.current.dirname })),
|
|
5228
5230
|
headers: {
|
|
5229
|
-
|
|
5231
|
+
...Mt && { "X-CSRF-Token": Mt }
|
|
5230
5232
|
},
|
|
5231
5233
|
init: {
|
|
5232
5234
|
PostInit: function() {
|
|
@@ -5252,14 +5254,14 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5252
5254
|
}
|
|
5253
5255
|
}
|
|
5254
5256
|
}), a.value.init();
|
|
5255
|
-
}), (T, k) => (y(), Z(
|
|
5257
|
+
}), (T, k) => (y(), Z(Me, null, {
|
|
5256
5258
|
buttons: J(() => [
|
|
5257
5259
|
d("button", {
|
|
5258
5260
|
disabled: u.value,
|
|
5259
5261
|
onClick: Be(v, ["prevent"]),
|
|
5260
5262
|
type: "button",
|
|
5261
5263
|
class: de([u.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500", "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"])
|
|
5262
|
-
}, E(x(i)("Upload")), 11,
|
|
5264
|
+
}, E(x(i)("Upload")), 11, Gd),
|
|
5263
5265
|
d("button", {
|
|
5264
5266
|
type: "button",
|
|
5265
5267
|
onClick: k[1] || (k[1] = (S) => x(r).emit("vf-modal-close")),
|
|
@@ -5267,21 +5269,21 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5267
5269
|
}, E(x(i)("Cancel")), 1)
|
|
5268
5270
|
]),
|
|
5269
5271
|
default: J(() => [
|
|
5270
|
-
d("div",
|
|
5271
|
-
|
|
5272
|
-
d("div",
|
|
5273
|
-
d("h3",
|
|
5274
|
-
d("div",
|
|
5275
|
-
d("div",
|
|
5272
|
+
d("div", Hd, [
|
|
5273
|
+
Ud,
|
|
5274
|
+
d("div", Kd, [
|
|
5275
|
+
d("h3", Fd, E(x(i)("Upload files")), 1),
|
|
5276
|
+
d("div", Yd, [
|
|
5277
|
+
d("div", Wd, [
|
|
5276
5278
|
(y(!0), C(le, null, we(g.value, (S) => (y(), C("div", null, [
|
|
5277
5279
|
d("div", {
|
|
5278
5280
|
id: S.id
|
|
5279
5281
|
}, [
|
|
5280
5282
|
ie(E(S.name) + " ( " + E(S.size) + ") ", 1),
|
|
5281
5283
|
d("b", null, E(S.percent), 1)
|
|
5282
|
-
], 8,
|
|
5284
|
+
], 8, Xd)
|
|
5283
5285
|
]))), 256)),
|
|
5284
|
-
g.value.length ? G("", !0) : (y(), C("div",
|
|
5286
|
+
g.value.length ? G("", !0) : (y(), C("div", qd, E(x(i)("No files selected!")), 1))
|
|
5285
5287
|
]),
|
|
5286
5288
|
d("div", {
|
|
5287
5289
|
class: "text-gray-500",
|
|
@@ -5312,7 +5314,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5312
5314
|
_: 1
|
|
5313
5315
|
}));
|
|
5314
5316
|
}
|
|
5315
|
-
}),
|
|
5317
|
+
}), Qd = { class: "sm:flex sm:items-start" }, eh = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
5316
5318
|
/* @__PURE__ */ d("svg", {
|
|
5317
5319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5318
5320
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -5327,10 +5329,10 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5327
5329
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
5328
5330
|
})
|
|
5329
5331
|
])
|
|
5330
|
-
], -1),
|
|
5332
|
+
], -1), th = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, rh = {
|
|
5331
5333
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5332
5334
|
id: "modal-title"
|
|
5333
|
-
},
|
|
5335
|
+
}, oh = { class: "mt-2" }, ah = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, sh = {
|
|
5334
5336
|
key: 0,
|
|
5335
5337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5336
5338
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -5338,13 +5340,13 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5338
5340
|
viewBox: "0 0 24 24",
|
|
5339
5341
|
stroke: "currentColor",
|
|
5340
5342
|
"stroke-width": "1"
|
|
5341
|
-
},
|
|
5343
|
+
}, ih = /* @__PURE__ */ d("path", {
|
|
5342
5344
|
"stroke-linecap": "round",
|
|
5343
5345
|
"stroke-linejoin": "round",
|
|
5344
5346
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5345
|
-
}, null, -1),
|
|
5346
|
-
|
|
5347
|
-
],
|
|
5347
|
+
}, null, -1), nh = [
|
|
5348
|
+
ih
|
|
5349
|
+
], lh = {
|
|
5348
5350
|
key: 1,
|
|
5349
5351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5350
5352
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -5352,15 +5354,15 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5352
5354
|
viewBox: "0 0 24 24",
|
|
5353
5355
|
stroke: "currentColor",
|
|
5354
5356
|
"stroke-width": "1"
|
|
5355
|
-
},
|
|
5357
|
+
}, ch = /* @__PURE__ */ d("path", {
|
|
5356
5358
|
"stroke-linecap": "round",
|
|
5357
5359
|
"stroke-linejoin": "round",
|
|
5358
5360
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
5359
|
-
}, null, -1),
|
|
5360
|
-
|
|
5361
|
-
],
|
|
5361
|
+
}, null, -1), uh = [
|
|
5362
|
+
ch
|
|
5363
|
+
], dh = { class: "ml-1.5" }, hh = ["onKeyup", "placeholder"], fh = {
|
|
5362
5364
|
name: "VFModalArchive"
|
|
5363
|
-
},
|
|
5365
|
+
}, mh = /* @__PURE__ */ Object.assign(fh, {
|
|
5364
5366
|
props: {
|
|
5365
5367
|
selection: Object,
|
|
5366
5368
|
current: Object
|
|
@@ -5383,7 +5385,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5383
5385
|
}
|
|
5384
5386
|
});
|
|
5385
5387
|
};
|
|
5386
|
-
return (m, u) => (y(), Z(
|
|
5388
|
+
return (m, u) => (y(), Z(Me, null, {
|
|
5387
5389
|
buttons: J(() => [
|
|
5388
5390
|
d("button", {
|
|
5389
5391
|
type: "button",
|
|
@@ -5397,14 +5399,14 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5397
5399
|
}, E(x(i)("Cancel")), 1)
|
|
5398
5400
|
]),
|
|
5399
5401
|
default: J(() => [
|
|
5400
|
-
d("div",
|
|
5401
|
-
|
|
5402
|
-
d("div",
|
|
5403
|
-
d("h3",
|
|
5404
|
-
d("div",
|
|
5405
|
-
(y(!0), C(le, null, we(f.value, (v) => (y(), C("p",
|
|
5406
|
-
v.type == "dir" ? (y(), C("svg",
|
|
5407
|
-
d("span",
|
|
5402
|
+
d("div", Qd, [
|
|
5403
|
+
eh,
|
|
5404
|
+
d("div", th, [
|
|
5405
|
+
d("h3", rh, E(x(i)("Archive the files")), 1),
|
|
5406
|
+
d("div", oh, [
|
|
5407
|
+
(y(!0), C(le, null, we(f.value, (v) => (y(), C("p", ah, [
|
|
5408
|
+
v.type == "dir" ? (y(), C("svg", sh, nh)) : (y(), C("svg", lh, uh)),
|
|
5409
|
+
d("span", dh, E(v.basename), 1)
|
|
5408
5410
|
]))), 256)),
|
|
5409
5411
|
ye(d("input", {
|
|
5410
5412
|
"onUpdate:modelValue": u[0] || (u[0] = (v) => a.value = v),
|
|
@@ -5412,7 +5414,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5412
5414
|
class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
|
|
5413
5415
|
placeholder: x(i)("Archive name. (.zip file will be created)"),
|
|
5414
5416
|
type: "text"
|
|
5415
|
-
}, null, 40,
|
|
5417
|
+
}, null, 40, hh), [
|
|
5416
5418
|
[rt, a.value]
|
|
5417
5419
|
]),
|
|
5418
5420
|
n.value.length ? (y(), Z(Ee, {
|
|
@@ -5432,7 +5434,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5432
5434
|
_: 1
|
|
5433
5435
|
}));
|
|
5434
5436
|
}
|
|
5435
|
-
}),
|
|
5437
|
+
}), gh = { class: "sm:flex sm:items-start" }, ph = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
5436
5438
|
/* @__PURE__ */ d("svg", {
|
|
5437
5439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5438
5440
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
@@ -5447,10 +5449,10 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5447
5449
|
d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
|
|
5448
5450
|
})
|
|
5449
5451
|
])
|
|
5450
|
-
], -1),
|
|
5452
|
+
], -1), vh = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, bh = {
|
|
5451
5453
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5452
5454
|
id: "modal-title"
|
|
5453
|
-
},
|
|
5455
|
+
}, yh = { class: "mt-2" }, wh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, xh = {
|
|
5454
5456
|
key: 0,
|
|
5455
5457
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5456
5458
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -5458,13 +5460,13 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5458
5460
|
viewBox: "0 0 24 24",
|
|
5459
5461
|
stroke: "currentColor",
|
|
5460
5462
|
"stroke-width": "1"
|
|
5461
|
-
},
|
|
5463
|
+
}, _h = /* @__PURE__ */ d("path", {
|
|
5462
5464
|
"stroke-linecap": "round",
|
|
5463
5465
|
"stroke-linejoin": "round",
|
|
5464
5466
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5465
|
-
}, null, -1),
|
|
5466
|
-
|
|
5467
|
-
],
|
|
5467
|
+
}, null, -1), kh = [
|
|
5468
|
+
_h
|
|
5469
|
+
], Sh = {
|
|
5468
5470
|
key: 1,
|
|
5469
5471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5470
5472
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -5472,15 +5474,15 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5472
5474
|
viewBox: "0 0 24 24",
|
|
5473
5475
|
stroke: "currentColor",
|
|
5474
5476
|
"stroke-width": "1"
|
|
5475
|
-
},
|
|
5477
|
+
}, Dh = /* @__PURE__ */ d("path", {
|
|
5476
5478
|
"stroke-linecap": "round",
|
|
5477
5479
|
"stroke-linejoin": "round",
|
|
5478
5480
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
5479
|
-
}, null, -1),
|
|
5480
|
-
|
|
5481
|
-
],
|
|
5481
|
+
}, null, -1), Ch = [
|
|
5482
|
+
Dh
|
|
5483
|
+
], $h = { class: "ml-1.5" }, Mh = { class: "my-1 text-sm text-gray-500" }, Eh = {
|
|
5482
5484
|
name: "VFModalUnarchive"
|
|
5483
|
-
},
|
|
5485
|
+
}, Th = /* @__PURE__ */ Object.assign(Eh, {
|
|
5484
5486
|
props: {
|
|
5485
5487
|
selection: Object,
|
|
5486
5488
|
current: Object
|
|
@@ -5504,7 +5506,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5504
5506
|
}
|
|
5505
5507
|
});
|
|
5506
5508
|
};
|
|
5507
|
-
return (m, u) => (y(), Z(
|
|
5509
|
+
return (m, u) => (y(), Z(Me, null, {
|
|
5508
5510
|
buttons: J(() => [
|
|
5509
5511
|
d("button", {
|
|
5510
5512
|
type: "button",
|
|
@@ -5518,14 +5520,14 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5518
5520
|
}, E(x(i)("Cancel")), 1)
|
|
5519
5521
|
]),
|
|
5520
5522
|
default: J(() => [
|
|
5521
|
-
d("div",
|
|
5522
|
-
|
|
5523
|
-
d("div",
|
|
5524
|
-
d("h3",
|
|
5525
|
-
d("div",
|
|
5526
|
-
(y(!0), C(le, null, we(f.value, (v) => (y(), C("p",
|
|
5527
|
-
v.type == "dir" ? (y(), C("svg",
|
|
5528
|
-
d("span",
|
|
5523
|
+
d("div", gh, [
|
|
5524
|
+
ph,
|
|
5525
|
+
d("div", vh, [
|
|
5526
|
+
d("h3", bh, E(x(i)("Unarchive")), 1),
|
|
5527
|
+
d("div", yh, [
|
|
5528
|
+
(y(!0), C(le, null, we(f.value, (v) => (y(), C("p", wh, [
|
|
5529
|
+
v.type == "dir" ? (y(), C("svg", xh, kh)) : (y(), C("svg", Sh, Ch)),
|
|
5530
|
+
d("span", $h, E(v.basename), 1)
|
|
5529
5531
|
]))), 256)),
|
|
5530
5532
|
d("p", Mh, E(x(i)("The archive will be unarchived at")) + " (" + E(t.current.dirname) + ")", 1),
|
|
5531
5533
|
n.value.length ? (y(), Z(Ee, {
|
|
@@ -5545,7 +5547,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5545
5547
|
_: 1
|
|
5546
5548
|
}));
|
|
5547
5549
|
}
|
|
5548
|
-
}),
|
|
5550
|
+
}), Ah = { class: "sm:flex sm:items-start" }, Oh = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
|
|
5549
5551
|
/* @__PURE__ */ d("svg", {
|
|
5550
5552
|
class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
|
|
5551
5553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5561,10 +5563,10 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5561
5563
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
5562
5564
|
})
|
|
5563
5565
|
])
|
|
5564
|
-
], -1),
|
|
5566
|
+
], -1), Ih = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Lh = {
|
|
5565
5567
|
class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
|
|
5566
5568
|
id: "modal-title"
|
|
5567
|
-
},
|
|
5569
|
+
}, Ph = { class: "mt-2" }, Nh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, jh = {
|
|
5568
5570
|
key: 0,
|
|
5569
5571
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5570
5572
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
@@ -5572,13 +5574,13 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5572
5574
|
viewBox: "0 0 24 24",
|
|
5573
5575
|
stroke: "currentColor",
|
|
5574
5576
|
"stroke-width": "1"
|
|
5575
|
-
},
|
|
5577
|
+
}, Vh = /* @__PURE__ */ d("path", {
|
|
5576
5578
|
"stroke-linecap": "round",
|
|
5577
5579
|
"stroke-linejoin": "round",
|
|
5578
5580
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5579
|
-
}, null, -1),
|
|
5580
|
-
|
|
5581
|
-
],
|
|
5581
|
+
}, null, -1), zh = [
|
|
5582
|
+
Vh
|
|
5583
|
+
], Bh = {
|
|
5582
5584
|
key: 1,
|
|
5583
5585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5584
5586
|
class: "h-5 w-5 text-neutral-500",
|
|
@@ -5586,13 +5588,13 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5586
5588
|
viewBox: "0 0 24 24",
|
|
5587
5589
|
stroke: "currentColor",
|
|
5588
5590
|
"stroke-width": "1"
|
|
5589
|
-
},
|
|
5591
|
+
}, Rh = /* @__PURE__ */ d("path", {
|
|
5590
5592
|
"stroke-linecap": "round",
|
|
5591
5593
|
"stroke-linejoin": "round",
|
|
5592
5594
|
d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
|
|
5593
|
-
}, null, -1),
|
|
5594
|
-
|
|
5595
|
-
],
|
|
5595
|
+
}, null, -1), Hh = [
|
|
5596
|
+
Rh
|
|
5597
|
+
], Uh = { class: "ml-1.5" }, Kh = { class: "text-sm text-gray-500 pb-1 pt-3" }, Fh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Yh = /* @__PURE__ */ d("svg", {
|
|
5596
5598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5597
5599
|
class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
|
|
5598
5600
|
fill: "none",
|
|
@@ -5605,9 +5607,9 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5605
5607
|
"stroke-linejoin": "round",
|
|
5606
5608
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
5607
5609
|
})
|
|
5608
|
-
], -1),
|
|
5610
|
+
], -1), Wh = { class: "ml-1.5 overflow-auto" }, Xh = {
|
|
5609
5611
|
name: "VFModalMove"
|
|
5610
|
-
},
|
|
5612
|
+
}, qh = /* @__PURE__ */ Object.assign(Xh, {
|
|
5611
5613
|
props: {
|
|
5612
5614
|
selection: Object,
|
|
5613
5615
|
current: Object
|
|
@@ -5630,7 +5632,7 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5630
5632
|
}
|
|
5631
5633
|
});
|
|
5632
5634
|
};
|
|
5633
|
-
return (g, m) => (y(), Z(
|
|
5635
|
+
return (g, m) => (y(), Z(Me, null, {
|
|
5634
5636
|
buttons: J(() => [
|
|
5635
5637
|
d("button", {
|
|
5636
5638
|
type: "button",
|
|
@@ -5644,19 +5646,19 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5644
5646
|
}, E(x(o)("Cancel")), 1)
|
|
5645
5647
|
]),
|
|
5646
5648
|
default: J(() => [
|
|
5647
|
-
d("div",
|
|
5648
|
-
|
|
5649
|
-
d("div",
|
|
5650
|
-
d("h3",
|
|
5651
|
-
d("div",
|
|
5652
|
-
(y(!0), C(le, null, we(a.value, (u) => (y(), C("p",
|
|
5653
|
-
u.type == "dir" ? (y(), C("svg",
|
|
5654
|
-
d("span",
|
|
5649
|
+
d("div", Ah, [
|
|
5650
|
+
Oh,
|
|
5651
|
+
d("div", Ih, [
|
|
5652
|
+
d("h3", Lh, E(x(o)("Move files")), 1),
|
|
5653
|
+
d("div", Ph, [
|
|
5654
|
+
(y(!0), C(le, null, we(a.value, (u) => (y(), C("p", Nh, [
|
|
5655
|
+
u.type == "dir" ? (y(), C("svg", jh, zh)) : (y(), C("svg", Bh, Hh)),
|
|
5656
|
+
d("span", Uh, E(u.path), 1)
|
|
5655
5657
|
]))), 256)),
|
|
5656
|
-
d("p",
|
|
5657
|
-
d("p",
|
|
5658
|
-
|
|
5659
|
-
d("span",
|
|
5658
|
+
d("p", Kh, E(x(o)("Are you sure you want to move these files?")), 1),
|
|
5659
|
+
d("p", Fh, [
|
|
5660
|
+
Yh,
|
|
5661
|
+
d("span", Wh, E(t.selection.items.to.path), 1)
|
|
5660
5662
|
]),
|
|
5661
5663
|
n.value.length ? (y(), Z(Ee, {
|
|
5662
5664
|
key: 0,
|
|
@@ -5675,23 +5677,23 @@ const Fu = { class: "flex" }, Yu = ["aria-label"], Wu = { class: "ml-auto mb-2"
|
|
|
5675
5677
|
_: 1
|
|
5676
5678
|
}));
|
|
5677
5679
|
}
|
|
5678
|
-
}),
|
|
5680
|
+
}), Gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5679
5681
|
__proto__: null,
|
|
5680
|
-
ModalDelete:
|
|
5681
|
-
ModalMessage:
|
|
5682
|
-
ModalNewFolder:
|
|
5683
|
-
ModalNewFile:
|
|
5684
|
-
ModalPreview:
|
|
5685
|
-
ModalRename:
|
|
5686
|
-
ModalUpload:
|
|
5687
|
-
ModalArchive:
|
|
5688
|
-
ModalUnarchive:
|
|
5689
|
-
ModalMove:
|
|
5682
|
+
ModalDelete: Dc,
|
|
5683
|
+
ModalMessage: Ic,
|
|
5684
|
+
ModalNewFolder: Hc,
|
|
5685
|
+
ModalNewFile: Jc,
|
|
5686
|
+
ModalPreview: Dd,
|
|
5687
|
+
ModalRename: Rd,
|
|
5688
|
+
ModalUpload: Zd,
|
|
5689
|
+
ModalArchive: mh,
|
|
5690
|
+
ModalUnarchive: Th,
|
|
5691
|
+
ModalMove: qh
|
|
5690
5692
|
}, Symbol.toStringTag, { value: "Module" })), Ft = {
|
|
5691
|
-
VueFinder:
|
|
5692
|
-
...
|
|
5693
|
+
VueFinder: Ql,
|
|
5694
|
+
...Gh
|
|
5693
5695
|
};
|
|
5694
|
-
const
|
|
5696
|
+
const Qh = {
|
|
5695
5697
|
install(t) {
|
|
5696
5698
|
for (const e in Ft)
|
|
5697
5699
|
if (Ft.hasOwnProperty(e)) {
|
|
@@ -5701,5 +5703,5 @@ const Zh = {
|
|
|
5701
5703
|
}
|
|
5702
5704
|
};
|
|
5703
5705
|
export {
|
|
5704
|
-
|
|
5706
|
+
Qh as default
|
|
5705
5707
|
};
|