vuefinder 1.0.7 → 1.0.9

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