vuefinder 2.2.1 → 2.2.3

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
@@ -38,8 +38,8 @@ class He {
38
38
  me != null && me !== "" && (r[s.xsrfHeaderName] = me);
39
39
  const o = Object.assign({}, s.headers, r, e.headers), i = Object.assign({}, s.params, e.params), u = e.body, d = s.baseUrl + e.url, l = e.method;
40
40
  let c;
41
- l !== "get" && (u instanceof FormData ? (c = u, s.body != null && Object.entries(this.config.body).forEach(([_, w]) => {
42
- c.append(_, w);
41
+ l !== "get" && (u instanceof FormData ? (c = u, s.body != null && Object.entries(this.config.body).forEach(([_, x]) => {
42
+ c.append(_, x);
43
43
  })) : (c = { ...u }, s.body != null && Object.assign(c, this.config.body)));
44
44
  const g = {
45
45
  url: d,
@@ -158,17 +158,17 @@ async function Ie(p, e) {
158
158
  return typeof s == "function" ? (await s()).default : s;
159
159
  }
160
160
  function Pe(p, e, s, r) {
161
- const { getStore: o, setStore: i } = p, u = k({}), d = k(o("locale", e)), l = (_, w = e) => {
162
- Ie(_, r).then((y) => {
163
- u.value = y, i("locale", _), d.value = _, i("translations", y), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + _ }), s.emit("vf-language-saved"));
164
- }).catch((y) => {
165
- w ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(w, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
161
+ const { getStore: o, setStore: i } = p, u = k({}), d = k(o("locale", e)), l = (_, x = e) => {
162
+ Ie(_, r).then((C) => {
163
+ u.value = C, i("locale", _), d.value = _, i("translations", C), Object.values(r).length > 1 && (s.emit("vf-toast-push", { label: "The language is set to " + _ }), s.emit("vf-language-saved"));
164
+ }).catch((C) => {
165
+ x ? (s.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), l(x, null)) : s.emit("vf-toast-push", { label: "Locale cannot be loaded!", type: "error" });
166
166
  });
167
167
  };
168
168
  !o("locale") && !r.length ? l(e) : u.value = o("translations");
169
- const c = (_, ...w) => w.length ? c(_ = _.replace("%s", w.shift()), ...w) : _;
170
- function g(_, ...w) {
171
- return u.value && u.value.hasOwnProperty(_) ? c(u.value[_], ...w) : c(_, ...w);
169
+ const c = (_, ...x) => x.length ? c(_ = _.replace("%s", x.shift()), ...x) : _;
170
+ function g(_, ...x) {
171
+ return u.value && u.value.hasOwnProperty(_) ? c(u.value[_], ...x) : c(_, ...x);
172
172
  }
173
173
  return { t: g, changeLocale: l, locale: d };
174
174
  }
@@ -186,7 +186,7 @@ const B = {
186
186
  FULL_SCREEN: "fullscreen",
187
187
  DOWNLOAD: "download",
188
188
  LANGUAGE: "language"
189
- }, We = Object.values(B), Ge = "2.2.1";
189
+ }, We = Object.values(B), Ge = "2.2.3";
190
190
  function ye(p, e, s, r, o) {
191
191
  return (e = Math, s = e.log, r = 1024, o = s(p) / s(r) | 0, p / e.pow(r, o)).toFixed(0) + " " + (o ? "KMGTPEZY"[--o] + "iB" : "B");
192
192
  }
@@ -637,12 +637,12 @@ const Je = (p, e) => {
637
637
  setup(p) {
638
638
  const e = k(null), s = k([]), r = k(!1), o = k(null), i = F("ServiceContainer"), { t: u } = i.i18n;
639
639
  i.emitter.on("vf-explorer-update", () => {
640
- let $ = [], f = [];
640
+ let w = [], f = [];
641
641
  e.value = i.data.dirname ?? i.adapter + "://", e.value.length == 0 && (s.value = []), e.value.replace(i.adapter + "://", "").split("/").forEach(function(h) {
642
- $.push(h), $.join("/") != "" && f.push({
642
+ w.push(h), w.join("/") != "" && f.push({
643
643
  basename: h,
644
644
  name: h,
645
- path: i.adapter + "://" + $.join("/"),
645
+ path: i.adapter + "://" + w.join("/"),
646
646
  type: "dir"
647
647
  });
648
648
  }), f.length > 4 && (f = f.slice(-5), f[0].name = ".."), s.value = f;
@@ -656,12 +656,12 @@ const Je = (p, e) => {
656
656
  const l = () => {
657
657
  i.features.includes(B.SEARCH) && (r.value = !0, ce(() => o.value.focus()));
658
658
  }, c = Bt("", 400);
659
- de(c, ($) => {
660
- i.emitter.emit("vf-toast-clear"), i.emitter.emit("vf-search-query", { newQuery: $ });
659
+ de(c, (w) => {
660
+ i.emitter.emit("vf-toast-clear"), i.emitter.emit("vf-search-query", { newQuery: w });
661
661
  });
662
- const g = () => s.value.length && !r.value, _ = ($, f = null) => {
663
- $.preventDefault(), y($), f ?? (f = s.value.length - 2);
664
- let h = JSON.parse($.dataTransfer.getData("items"));
662
+ const g = () => s.value.length && !r.value, _ = (w, f = null) => {
663
+ w.preventDefault(), C(w), f ?? (f = s.value.length - 2);
664
+ let h = JSON.parse(w.dataTransfer.getData("items"));
665
665
  if (h.find((N) => N.storage !== i.adapter)) {
666
666
  alert("Moving items between different storages is not supported yet.");
667
667
  return;
@@ -670,22 +670,22 @@ const Je = (p, e) => {
670
670
  type: "move",
671
671
  items: { from: h, to: s.value[f] ?? { path: i.adapter + "://" } }
672
672
  });
673
- }, w = ($) => {
674
- $.preventDefault(), g() ? ($.dataTransfer.dropEffect = "copy", $.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-500")) : ($.dataTransfer.dropEffect = "none", $.dataTransfer.effectAllowed = "none");
675
- }, y = ($) => {
676
- $.preventDefault(), $.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500"), g() && $.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500");
673
+ }, x = (w) => {
674
+ w.preventDefault(), g() ? (w.dataTransfer.dropEffect = "copy", w.currentTarget.classList.add("bg-blue-200", "dark:bg-slate-500")) : (w.dataTransfer.dropEffect = "none", w.dataTransfer.effectAllowed = "none");
675
+ }, C = (w) => {
676
+ w.preventDefault(), w.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500"), g() && w.currentTarget.classList.remove("bg-blue-200", "dark:bg-slate-500");
677
677
  }, E = () => {
678
678
  c.value == "" && d();
679
679
  };
680
- return ($, f) => (n(), m("div", zt, [
680
+ return (w, f) => (n(), m("div", zt, [
681
681
  t("span", {
682
682
  "aria-label": a(u)("Go up a directory"),
683
683
  "data-microtip-position": "bottom-right",
684
684
  role: "tooltip"
685
685
  }, [
686
686
  (n(), m("svg", {
687
- onDragover: f[0] || (f[0] = (h) => w(h)),
688
- onDragleave: f[1] || (f[1] = (h) => y(h)),
687
+ onDragover: f[0] || (f[0] = (h) => x(h)),
688
+ onDragleave: f[1] || (f[1] = (h) => C(h)),
689
689
  onDrop: f[2] || (f[2] = (h) => _(h)),
690
690
  onClick: f[3] || (f[3] = (h) => {
691
691
  var N;
@@ -757,8 +757,8 @@ const Je = (p, e) => {
757
757
  onClick: Y(l, ["self"])
758
758
  }, [
759
759
  (n(), m("svg", {
760
- onDragover: f[6] || (f[6] = (h) => w(h)),
761
- onDragleave: f[7] || (f[7] = (h) => y(h)),
760
+ onDragover: f[6] || (f[6] = (h) => x(h)),
761
+ onDragleave: f[7] || (f[7] = (h) => C(h)),
762
762
  onDrop: f[8] || (f[8] = (h) => _(h, -1)),
763
763
  onClick: f[9] || (f[9] = (h) => a(i).emitter.emit("vf-fetch", { params: { q: "index", adapter: a(i).data.adapter } })),
764
764
  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",
@@ -770,8 +770,8 @@ const Je = (p, e) => {
770
770
  (n(!0), m(U, null, I(s.value, (h, N) => (n(), m("div", { key: N }, [
771
771
  Qt,
772
772
  t("span", {
773
- onDragover: (R) => N === s.value.length - 1 || w(R),
774
- onDragleave: (R) => N === s.value.length - 1 || y(R),
773
+ onDragover: (R) => N === s.value.length - 1 || x(R),
774
+ onDragleave: (R) => N === s.value.length - 1 || C(R),
775
775
  onDrop: (R) => N === s.value.length - 1 || _(R, N),
776
776
  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",
777
777
  title: h.basename,
@@ -844,7 +844,7 @@ const Je = (p, e) => {
844
844
  }, {
845
845
  default: A(() => [
846
846
  (n(!0), m(U, null, I(o.value, (g, _) => (n(), m("div", {
847
- onClick: (w) => u(_),
847
+ onClick: (x) => u(_),
848
848
  key: g,
849
849
  class: z([i(g.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
850
850
  }, v(g.label), 11, _s))), 128))
@@ -967,17 +967,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
967
967
  setup(p) {
968
968
  const e = F("ServiceContainer"), { t: s } = e.i18n;
969
969
  e.storage;
970
- const r = (x) => x == null ? void 0 : x.substring(0, 3), o = k(null), i = k(null), u = k(0), d = k(null), l = Math.floor(Math.random() * 2 ** 32), c = k("");
970
+ const r = (y) => y == null ? void 0 : y.substring(0, 3), o = k(null), i = k(null), u = k(0), d = k(null), l = Math.floor(Math.random() * 2 ** 32), c = k("");
971
971
  let g;
972
972
  e.emitter.on("vf-fullscreen-toggle", () => {
973
973
  o.value.style.height = null;
974
- }), e.emitter.on("vf-search-query", ({ newQuery: x }) => {
975
- c.value = x, x ? e.emitter.emit("vf-fetch", {
974
+ }), e.emitter.on("vf-search-query", ({ newQuery: y }) => {
975
+ c.value = y, y ? e.emitter.emit("vf-fetch", {
976
976
  params: {
977
977
  q: "search",
978
978
  adapter: e.data.adapter,
979
979
  path: e.data.dirname,
980
- filter: x
980
+ filter: y
981
981
  },
982
982
  onSuccess: (D) => {
983
983
  D.files.length || e.emitter.emit("vf-toast-push", { label: s("No search result found.") });
@@ -985,11 +985,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
985
985
  }) : e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: e.data.dirname } });
986
986
  });
987
987
  let _ = null;
988
- const w = () => {
988
+ const x = () => {
989
989
  _ && clearTimeout(_);
990
- }, y = k(!0), E = (x) => {
991
- x.touches.length > 1 && (y.value ? (d.value.stop(), e.emitter.emit("vf-toast-push", { label: s("Drag&Drop: off") })) : (d.value.start(), e.emitter.emit("vf-toast-push", { label: s("Drag&Drop: on") }), e.emitter.emit("vf-explorer-update")), y.value = !y.value);
992
- }, $ = (x) => {
990
+ }, C = k(!0), E = (y) => {
991
+ y.touches.length > 1 && (C.value ? (d.value.stop(), e.emitter.emit("vf-toast-push", { label: s("Drag&Drop: off") })) : (d.value.start(), e.emitter.emit("vf-toast-push", { label: s("Drag&Drop: on") }), e.emitter.emit("vf-explorer-update")), C.value = !C.value);
992
+ }, w = (y) => {
993
993
  _ = setTimeout(() => {
994
994
  const D = new MouseEvent("contextmenu", {
995
995
  bubbles: !0,
@@ -997,35 +997,35 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
997
997
  view: window,
998
998
  button: 2,
999
999
  buttons: 0,
1000
- clientX: x.target.getBoundingClientRect().x,
1001
- clientY: x.target.getBoundingClientRect().y
1000
+ clientX: y.target.getBoundingClientRect().x,
1001
+ clientY: y.target.getBoundingClientRect().y
1002
1002
  });
1003
- x.target.dispatchEvent(D);
1003
+ y.target.dispatchEvent(D);
1004
1004
  }, 500);
1005
- }, f = (x) => {
1006
- x.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: x.path } })) : e.emitter.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: x });
1007
- }, h = ie({ active: !1, column: "", order: "" }), N = (x = !0) => {
1008
- let D = [...e.data.files], C = h.column, j = h.order == "asc" ? 1 : -1;
1009
- if (!x)
1005
+ }, f = (y) => {
1006
+ y.type === "dir" ? (e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.data.adapter, path: y.path } })) : e.emitter.emit("vf-modal-show", { type: "preview", adapter: e.data.adapter, item: y });
1007
+ }, h = ie({ active: !1, column: "", order: "" }), N = (y = !0) => {
1008
+ let D = [...e.data.files], $ = h.column, j = h.order == "asc" ? 1 : -1;
1009
+ if (!y)
1010
1010
  return D;
1011
1011
  const S = (b, L) => typeof b == "string" && typeof L == "string" ? b.toLowerCase().localeCompare(L.toLowerCase()) : b < L ? -1 : b > L ? 1 : 0;
1012
- return h.active && (D = D.slice().sort((b, L) => S(b[C], L[C]) * j)), D;
1013
- }, R = (x) => {
1014
- h.active && h.column == x ? (h.active = h.order == "asc", h.column = x, h.order = "desc") : (h.active = !0, h.column = x, h.order = "asc");
1015
- }, K = () => d.value.getSelection().map((x) => JSON.parse(x.dataset.item)), te = (x, D) => {
1016
- if (x.altKey || x.ctrlKey || x.metaKey)
1017
- return x.preventDefault(), !1;
1018
- x.dataTransfer.setDragImage(i.value, 0, 15), x.dataTransfer.effectAllowed = "all", x.dataTransfer.dropEffect = "copy", x.dataTransfer.setData("items", JSON.stringify(K()));
1019
- }, se = (x, D) => {
1020
- x.preventDefault();
1021
- let C = JSON.parse(x.dataTransfer.getData("items"));
1022
- if (C.find((j) => j.storage !== e.adapter)) {
1012
+ return h.active && (D = D.slice().sort((b, L) => S(b[$], L[$]) * j)), D;
1013
+ }, R = (y) => {
1014
+ h.active && h.column == y ? (h.active = h.order == "asc", h.column = y, h.order = "desc") : (h.active = !0, h.column = y, h.order = "asc");
1015
+ }, K = () => d.value.getSelection().map((y) => JSON.parse(y.dataset.item)), te = (y, D) => {
1016
+ if (y.altKey || y.ctrlKey || y.metaKey)
1017
+ return y.preventDefault(), !1;
1018
+ y.dataTransfer.setDragImage(i.value, 0, 15), y.dataTransfer.effectAllowed = "all", y.dataTransfer.dropEffect = "copy", y.dataTransfer.setData("items", JSON.stringify(K()));
1019
+ }, se = (y, D) => {
1020
+ y.preventDefault();
1021
+ let $ = JSON.parse(y.dataTransfer.getData("items"));
1022
+ if ($.find((j) => j.storage !== e.adapter)) {
1023
1023
  alert("Moving items between different storages is not supported yet.");
1024
1024
  return;
1025
1025
  }
1026
- e.emitter.emit("vf-modal-show", { type: "move", items: { from: C, to: D } });
1027
- }, ae = (x, D) => {
1028
- x.preventDefault(), !D || D.type !== "dir" || d.value.getSelection().find((C) => C == x.currentTarget) ? (x.dataTransfer.dropEffect = "none", x.dataTransfer.effectAllowed = "none") : x.dataTransfer.dropEffect = "copy";
1026
+ e.emitter.emit("vf-modal-show", { type: "move", items: { from: $, to: D } });
1027
+ }, ae = (y, D) => {
1028
+ y.preventDefault(), !D || D.type !== "dir" || d.value.getSelection().find(($) => $ == y.currentTarget) ? (y.dataTransfer.dropEffect = "none", y.dataTransfer.effectAllowed = "none") : y.dataTransfer.dropEffect = "copy";
1029
1029
  }, oe = () => {
1030
1030
  d.value = new Ve({
1031
1031
  area: o.value,
@@ -1036,16 +1036,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1036
1036
  d.value.clearSelection(), d.value.setSettings({
1037
1037
  selectables: document.getElementsByClassName("vf-item-" + l)
1038
1038
  });
1039
- })), d.value.subscribe("predragstart", ({ event: x, isDragging: D }) => {
1039
+ })), d.value.subscribe("predragstart", ({ event: y, isDragging: D }) => {
1040
1040
  if (D)
1041
1041
  u.value = d.value.getSelection().length, d.value.break();
1042
1042
  else {
1043
- const C = x.target.offsetWidth - x.offsetX, j = x.target.offsetHeight - x.offsetY;
1044
- C < 15 && j < 15 && (d.value.clearSelection(), d.value.break());
1043
+ const $ = y.target.offsetWidth - y.offsetX, j = y.target.offsetHeight - y.offsetY;
1044
+ $ < 15 && j < 15 && (d.value.clearSelection(), d.value.break());
1045
1045
  }
1046
- }), d.value.subscribe("predragmove", ({ isDragging: x }) => {
1047
- x && d.value.break();
1048
- }), d.value.subscribe("callback", ({ items: x, event: D, isDragging: C }) => {
1046
+ }), d.value.subscribe("predragmove", ({ isDragging: y }) => {
1047
+ y && d.value.break();
1048
+ }), d.value.subscribe("callback", ({ items: y, event: D, isDragging: $ }) => {
1049
1049
  e.emitter.emit("vf-nodes-selected", K()), u.value = d.value.getSelection().length;
1050
1050
  });
1051
1051
  };
@@ -1057,10 +1057,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1057
1057
  de(() => e.view, () => e.emitter.emit("vf-explorer-update"));
1058
1058
  }), ke(() => {
1059
1059
  g.destroy();
1060
- }), (x, D) => (n(), m("div", ys, [
1060
+ }), (y, D) => (n(), m("div", ys, [
1061
1061
  a(e).view == "list" || c.value.length ? (n(), m("div", xs, [
1062
1062
  t("div", {
1063
- onClick: D[0] || (D[0] = (C) => R("basename")),
1063
+ onClick: D[0] || (D[0] = ($) => R("basename")),
1064
1064
  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"
1065
1065
  }, [
1066
1066
  V(v(a(s)("Name")) + " ", 1),
@@ -1072,7 +1072,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1072
1072
  ]),
1073
1073
  c.value.length ? M("", !0) : (n(), m("div", {
1074
1074
  key: 0,
1075
- onClick: D[1] || (D[1] = (C) => R("file_size")),
1075
+ onClick: D[1] || (D[1] = ($) => R("file_size")),
1076
1076
  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"
1077
1077
  }, [
1078
1078
  V(v(a(s)("Size")) + " ", 1),
@@ -1084,7 +1084,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1084
1084
  ])),
1085
1085
  c.value.length ? M("", !0) : (n(), m("div", {
1086
1086
  key: 1,
1087
- onClick: D[2] || (D[2] = (C) => R("last_modified")),
1087
+ onClick: D[2] || (D[2] = ($) => R("last_modified")),
1088
1088
  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"
1089
1089
  }, [
1090
1090
  V(v(a(s)("Date")) + " ", 1),
@@ -1096,7 +1096,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1096
1096
  ])),
1097
1097
  c.value.length ? (n(), m("div", {
1098
1098
  key: 2,
1099
- onClick: D[3] || (D[3] = (C) => R("path")),
1099
+ onClick: D[3] || (D[3] = ($) => R("path")),
1100
1100
  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"
1101
1101
  }, [
1102
1102
  V(v(a(s)("Filepath")) + " ", 1),
@@ -1119,86 +1119,86 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1119
1119
  ]),
1120
1120
  t("div", {
1121
1121
  onTouchstart: E,
1122
- onContextmenu: D[10] || (D[10] = Y((C) => a(e).emitter.emit("vf-contextmenu-show", { event: C, area: o.value, items: K() }), ["self", "prevent"])),
1122
+ onContextmenu: D[10] || (D[10] = Y(($) => a(e).emitter.emit("vf-contextmenu-show", { event: $, area: o.value, items: K() }), ["self", "prevent"])),
1123
1123
  class: z([a(e).fullScreen ? "" : "resize-y", "h-full w-full text-xs vf-selector-area vf-scrollbar min-h-[150px] overflow-auto p-1 z-0"]),
1124
1124
  ref_key: "selectorArea",
1125
1125
  ref: o
1126
1126
  }, [
1127
- c.value.length ? (n(!0), m(U, { key: 0 }, I(N(), (C, j) => (n(), m("div", {
1128
- onDblclick: (S) => f(C),
1129
- onTouchstart: D[4] || (D[4] = (S) => $(S)),
1130
- onTouchend: D[5] || (D[5] = (S) => w()),
1131
- onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
1127
+ c.value.length ? (n(!0), m(U, { key: 0 }, I(N(), ($, j) => (n(), m("div", {
1128
+ onDblclick: (S) => f($),
1129
+ onTouchstart: D[4] || (D[4] = (S) => w(S)),
1130
+ onTouchend: D[5] || (D[5] = (S) => x()),
1131
+ onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: $ }), ["prevent"]),
1132
1132
  class: z(["vf-item-" + a(l), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),
1133
- "data-type": C.type,
1134
- "data-item": JSON.stringify(C),
1133
+ "data-type": $.type,
1134
+ "data-item": JSON.stringify($),
1135
1135
  "data-index": j
1136
1136
  }, [
1137
1137
  t("div", Ms, [
1138
1138
  t("div", Es, [
1139
- C.type === "dir" ? (n(), m("svg", Ds, As)) : (n(), m("svg", Ls, Fs)),
1140
- t("span", Os, v(C.basename), 1)
1139
+ $.type === "dir" ? (n(), m("svg", Ds, As)) : (n(), m("svg", Ls, Fs)),
1140
+ t("span", Os, v($.basename), 1)
1141
1141
  ]),
1142
- t("div", Vs, v(C.path), 1)
1142
+ t("div", Vs, v($.path), 1)
1143
1143
  ])
1144
1144
  ], 42, Ss))), 256)) : M("", !0),
1145
- a(e).view === "list" && !c.value.length ? (n(!0), m(U, { key: 1 }, I(N(), (C, j) => (n(), m("div", {
1145
+ a(e).view === "list" && !c.value.length ? (n(!0), m(U, { key: 1 }, I(N(), ($, j) => (n(), m("div", {
1146
1146
  draggable: "true",
1147
- onDblclick: (S) => f(C),
1148
- onTouchstart: D[6] || (D[6] = (S) => $(S)),
1149
- onTouchend: D[7] || (D[7] = (S) => w()),
1150
- onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
1147
+ onDblclick: (S) => f($),
1148
+ onTouchstart: D[6] || (D[6] = (S) => w(S)),
1149
+ onTouchend: D[7] || (D[7] = (S) => x()),
1150
+ onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: $ }), ["prevent"]),
1151
1151
  onDragstart: (S) => te(S),
1152
- onDragover: (S) => ae(S, C),
1153
- onDrop: (S) => se(S, C),
1152
+ onDragover: (S) => ae(S, $),
1153
+ onDrop: (S) => se(S, $),
1154
1154
  class: z(["vf-item-" + a(l), "grid grid-cols-1 border hover:bg-neutral-50 dark:hover:bg-gray-700 border-transparent my-0.5 w-full select-none"]),
1155
- "data-type": C.type,
1156
- "data-item": JSON.stringify(C),
1155
+ "data-type": $.type,
1156
+ "data-item": JSON.stringify($),
1157
1157
  "data-index": j
1158
1158
  }, [
1159
1159
  t("div", Bs, [
1160
1160
  t("div", zs, [
1161
- C.type === "dir" ? (n(), m("svg", Us, Rs)) : (n(), m("svg", qs, Ps)),
1162
- t("span", Ws, v(C.basename), 1)
1161
+ $.type === "dir" ? (n(), m("svg", Us, Rs)) : (n(), m("svg", qs, Ps)),
1162
+ t("span", Ws, v($.basename), 1)
1163
1163
  ]),
1164
- t("div", Gs, v(C.file_size ? a(e).filesize(C.file_size) : ""), 1),
1165
- t("div", Ys, v(a(we)(C.last_modified)), 1)
1164
+ t("div", Gs, v($.file_size ? a(e).filesize($.file_size) : ""), 1),
1165
+ t("div", Ys, v(a(we)($.last_modified)), 1)
1166
1166
  ])
1167
1167
  ], 42, Ns))), 256)) : M("", !0),
1168
- a(e).view === "grid" && !c.value.length ? (n(!0), m(U, { key: 2 }, I(N(!1), (C, j) => (n(), m("div", {
1168
+ a(e).view === "grid" && !c.value.length ? (n(!0), m(U, { key: 2 }, I(N(!1), ($, j) => (n(), m("div", {
1169
1169
  draggable: "true",
1170
- onDblclick: (S) => f(C),
1171
- onTouchstart: D[8] || (D[8] = (S) => $(S)),
1172
- onTouchend: D[9] || (D[9] = (S) => w()),
1173
- onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: C }), ["prevent"]),
1170
+ onDblclick: (S) => f($),
1171
+ onTouchstart: D[8] || (D[8] = (S) => w(S)),
1172
+ onTouchend: D[9] || (D[9] = (S) => x()),
1173
+ onContextmenu: Y((S) => a(e).emitter.emit("vf-contextmenu-show", { event: S, area: o.value, items: K(), target: $ }), ["prevent"]),
1174
1174
  onDragstart: (S) => te(S),
1175
- onDragover: (S) => ae(S, C),
1176
- onDrop: (S) => se(S, C),
1175
+ onDragover: (S) => ae(S, $),
1176
+ onDrop: (S) => se(S, $),
1177
1177
  class: z(["vf-item-" + a(l), "border border-transparent hover:bg-neutral-50 m-1 dark:hover:bg-gray-700 inline-flex w-[5.5rem] h-20 md:w-24 text-center justify-center select-none"]),
1178
- "data-type": C.type,
1179
- "data-item": JSON.stringify(C),
1178
+ "data-type": $.type,
1179
+ "data-item": JSON.stringify($),
1180
1180
  "data-index": j
1181
1181
  }, [
1182
1182
  t("div", null, [
1183
1183
  t("div", Js, [
1184
- C.type === "dir" ? (n(), m("svg", Xs, Zs)) : (C.mime_type ?? "").startsWith("image") ? (n(), m("img", {
1184
+ $.type === "dir" ? (n(), m("svg", Xs, Zs)) : ($.mime_type ?? "").startsWith("image") ? (n(), m("img", {
1185
1185
  key: 1,
1186
1186
  class: "lazy h-10 md:h-12 m-auto",
1187
- "data-src": a(e).requester.getPreviewUrl(a(e).adapter, C),
1188
- alt: C.basename
1187
+ "data-src": a(e).requester.getPreviewUrl(a(e).adapter, $),
1188
+ alt: $.basename
1189
1189
  }, null, 8, ea)) : (n(), m("svg", ta, aa)),
1190
- !(C.mime_type ?? "").startsWith("image") && C.type != "dir" ? (n(), m("div", oa, v(r(C.extension)), 1)) : M("", !0)
1190
+ !($.mime_type ?? "").startsWith("image") && $.type != "dir" ? (n(), m("div", oa, v(r($.extension)), 1)) : M("", !0)
1191
1191
  ]),
1192
- t("span", ra, v(a(he)(C.basename)), 1)
1192
+ t("span", ra, v(a(he)($.basename)), 1)
1193
1193
  ])
1194
1194
  ], 42, Ks))), 256)) : M("", !0)
1195
1195
  ], 34),
1196
1196
  H(bs)
1197
1197
  ]));
1198
1198
  }
1199
- }), ia = ["onClick"], da = ["href", "download"], ca = /* @__PURE__ */ t("span", { class: "px-1" }, null, -1), ua = /* @__PURE__ */ t("span", { class: "px-1" }, null, -1), ma = {
1199
+ }), ia = ["onClick"], da = /* @__PURE__ */ t("span", { class: "px-1" }, null, -1), ca = {
1200
1200
  name: "VFContextMenu"
1201
- }, va = /* @__PURE__ */ Object.assign(ma, {
1201
+ }, ua = /* @__PURE__ */ Object.assign(ca, {
1202
1202
  setup(p) {
1203
1203
  const e = F("ServiceContainer"), { t: s } = e.i18n, r = k(null), o = k([]), i = k(""), u = ie({
1204
1204
  active: !1,
@@ -1286,56 +1286,46 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1286
1286
  };
1287
1287
  e.emitter.on("vf-search-query", ({ newQuery: _ }) => {
1288
1288
  i.value = _;
1289
- }), e.emitter.on("vf-contextmenu-show", ({ event: _, area: w, items: y, target: E = null }) => {
1289
+ }), e.emitter.on("vf-contextmenu-show", ({ event: _, area: x, items: C, target: E = null }) => {
1290
1290
  if (u.items = [], i.value)
1291
1291
  if (E)
1292
1292
  u.items.push(l.openDir), e.emitter.emit("vf-context-selected", [E]);
1293
1293
  else
1294
1294
  return;
1295
1295
  else
1296
- !E && !i.value ? (u.items.push(l.refresh), u.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : y.length > 1 && y.some(($) => $.path === E.path) ? (u.items.push(l.refresh), u.items.push(l.archive), u.items.push(l.delete), e.emitter.emit("vf-context-selected", y)) : (E.type == "dir" ? u.items.push(l.open) : (u.items.push(l.preview), u.items.push(l.download)), u.items.push(l.rename), E.mime_type == "application/zip" ? u.items.push(l.unarchive) : u.items.push(l.archive), u.items.push(l.delete), e.emitter.emit("vf-context-selected", [E]));
1297
- g(_, w);
1296
+ !E && !i.value ? (u.items.push(l.refresh), u.items.push(l.newfolder), e.emitter.emit("vf-context-selected", [])) : C.length > 1 && C.some((w) => w.path === E.path) ? (u.items.push(l.refresh), u.items.push(l.archive), u.items.push(l.delete), e.emitter.emit("vf-context-selected", C)) : (E.type == "dir" ? u.items.push(l.open) : (u.items.push(l.preview), u.items.push(l.download)), u.items.push(l.rename), E.mime_type == "application/zip" ? u.items.push(l.unarchive) : u.items.push(l.archive), u.items.push(l.delete), e.emitter.emit("vf-context-selected", [E]));
1297
+ g(_, x);
1298
1298
  }), e.emitter.on("vf-contextmenu-hide", () => {
1299
1299
  u.active = !1;
1300
1300
  });
1301
- const g = (_, w) => {
1301
+ const g = (_, x) => {
1302
1302
  u.active = !0, ce(() => {
1303
- const y = e.root.getBoundingClientRect(), E = w.getBoundingClientRect();
1304
- let $ = _.pageX - y.left, f = _.pageY - y.top, h = r.value.offsetHeight, N = r.value.offsetWidth;
1305
- $ = E.right - _.pageX + window.scrollX < N ? $ - N : $, f = E.bottom - _.pageY + window.scrollY < h ? f - h : f, u.positions = {
1306
- left: $ + "px",
1303
+ const C = e.root.getBoundingClientRect(), E = x.getBoundingClientRect();
1304
+ let w = _.pageX - C.left, f = _.pageY - C.top, h = r.value.offsetHeight, N = r.value.offsetWidth;
1305
+ w = E.right - _.pageX + window.scrollX < N ? w - N : w, f = E.bottom - _.pageY + window.scrollY < h ? f - h : f, u.positions = {
1306
+ left: w + "px",
1307
1307
  top: f + "px"
1308
1308
  };
1309
1309
  });
1310
1310
  };
1311
- return (_, w) => u.active ? (n(), m("ul", {
1311
+ return (_, x) => u.active ? (n(), m("ul", {
1312
1312
  key: 0,
1313
1313
  class: "z-30 absolute text-xs bg-neutral-50 dark:bg-gray-800 text-gray-700 dark:text-gray-200 border border-neutral-300 dark:border-gray-600 shadow rounded select-none",
1314
1314
  ref_key: "contextmenu",
1315
1315
  ref: r,
1316
1316
  style: be(u.positions)
1317
1317
  }, [
1318
- (n(!0), m(U, null, I(d.value, (y) => (n(), m("li", {
1318
+ (n(!0), m(U, null, I(d.value, (C) => (n(), m("li", {
1319
1319
  class: "px-2 py-1.5 cursor-pointer hover:bg-neutral-200 dark:hover:bg-gray-700",
1320
- key: y.title,
1321
- onClick: (E) => c(y)
1320
+ key: C.title,
1321
+ onClick: (E) => c(C)
1322
1322
  }, [
1323
- y.link ? (n(), m("a", {
1324
- key: 0,
1325
- target: "_blank",
1326
- href: y.link,
1327
- download: y.link
1328
- }, [
1329
- ca,
1330
- t("span", null, v(y.title()), 1)
1331
- ], 8, da)) : (n(), m(U, { key: 1 }, [
1332
- ua,
1333
- t("span", null, v(y.title()), 1)
1334
- ], 64))
1323
+ da,
1324
+ t("span", null, v(C.title()), 1)
1335
1325
  ], 8, ia))), 128))
1336
1326
  ], 4)) : M("", !0);
1337
1327
  }
1338
- }), pa = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, ha = { class: "flex leading-5 items-center" }, fa = ["aria-label"], ga = /* @__PURE__ */ t("svg", {
1328
+ }), ma = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, va = { class: "flex leading-5 items-center" }, pa = ["aria-label"], ha = /* @__PURE__ */ t("svg", {
1339
1329
  xmlns: "http://www.w3.org/2000/svg",
1340
1330
  class: "h-5 w-5",
1341
1331
  fill: "none",
@@ -1348,9 +1338,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1348
1338
  "stroke-linejoin": "round",
1349
1339
  d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
1350
1340
  })
1351
- ], -1), _a = [
1352
- ga
1353
- ], ka = ["value"], ba = { class: "ml-3" }, ya = { key: 0 }, xa = { class: "ml-1" }, wa = { class: "flex leading-5 items-center justify-end" }, $a = ["disabled"], Ca = ["aria-label"], Sa = /* @__PURE__ */ t("svg", {
1341
+ ], -1), fa = [
1342
+ ha
1343
+ ], ga = ["value"], _a = { class: "ml-3" }, ka = { key: 0 }, ba = { class: "ml-1" }, ya = { class: "flex leading-5 items-center justify-end" }, xa = ["disabled"], wa = ["aria-label"], $a = /* @__PURE__ */ t("svg", {
1354
1344
  xmlns: "http://www.w3.org/2000/svg",
1355
1345
  class: "h-5 w-5 stroke-slate-500 cursor-pointer",
1356
1346
  fill: "none",
@@ -1363,11 +1353,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1363
1353
  "stroke-linejoin": "round",
1364
1354
  d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
1365
1355
  })
1366
- ], -1), Ma = [
1367
- Sa
1368
- ], Ea = {
1356
+ ], -1), Ca = [
1357
+ $a
1358
+ ], Sa = {
1369
1359
  name: "VFStatusbar"
1370
- }, Da = /* @__PURE__ */ Object.assign(Ea, {
1360
+ }, Ma = /* @__PURE__ */ Object.assign(Sa, {
1371
1361
  setup(p) {
1372
1362
  const e = F("ServiceContainer"), { t: s } = e.i18n, { setStore: r } = e.storage, o = k(0), i = () => {
1373
1363
  e.emitter.emit("vf-search-exit"), e.emitter.emit("vf-fetch", { params: { q: "index", adapter: e.adapter } }), r("adapter", e.adapter);
@@ -1383,48 +1373,48 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1383
1373
  const l = e.selectButton.multiple ? e.selectedItems.length > 0 : e.selectedItems.length === 1;
1384
1374
  return e.selectButton.active && l;
1385
1375
  });
1386
- return (l, c) => (n(), m("div", pa, [
1387
- t("div", ha, [
1376
+ return (l, c) => (n(), m("div", ma, [
1377
+ t("div", va, [
1388
1378
  t("div", {
1389
1379
  class: "mx-2",
1390
1380
  "aria-label": a(s)("Storage"),
1391
1381
  "data-microtip-position": "top-right",
1392
1382
  role: "tooltip"
1393
- }, _a, 8, fa),
1383
+ }, fa, 8, pa),
1394
1384
  q(t("select", {
1395
1385
  "onUpdate:modelValue": c[0] || (c[0] = (g) => a(e).adapter = g),
1396
1386
  onChange: i,
1397
1387
  class: "py-0.5 text-sm text-slate-500 border dark:border-gray-600 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"
1398
1388
  }, [
1399
- (n(!0), m(U, null, I(a(e).data.storages, (g) => (n(), m("option", { value: g }, v(g), 9, ka))), 256))
1389
+ (n(!0), m(U, null, I(a(e).data.storages, (g) => (n(), m("option", { value: g }, v(g), 9, ga))), 256))
1400
1390
  ], 544), [
1401
1391
  [pe, a(e).adapter]
1402
1392
  ]),
1403
- t("div", ba, [
1404
- u.value.length ? (n(), m("span", ya, v(a(e).data.files.length) + " items found. ", 1)) : M("", !0),
1405
- t("span", xa, v(o.value > 0 ? a(s)("%s item(s) selected.", o.value) : ""), 1)
1393
+ t("div", _a, [
1394
+ u.value.length ? (n(), m("span", ka, v(a(e).data.files.length) + " items found. ", 1)) : M("", !0),
1395
+ t("span", ba, v(o.value > 0 ? a(s)("%s item(s) selected.", o.value) : ""), 1)
1406
1396
  ])
1407
1397
  ]),
1408
- t("div", wa, [
1398
+ t("div", ya, [
1409
1399
  a(e).selectButton.active ? (n(), m("button", {
1410
1400
  key: 0,
1411
1401
  class: z(["vf-btn py-0 vf-btn-primary", { disabled: !d.value }]),
1412
1402
  disabled: !d.value,
1413
1403
  onClick: c[1] || (c[1] = (g) => a(e).selectButton.click(a(e).selectedItems, g))
1414
- }, v(a(s)("Select")), 11, $a)) : M("", !0),
1404
+ }, v(a(s)("Select")), 11, xa)) : M("", !0),
1415
1405
  t("span", {
1416
1406
  class: "mr-1",
1417
1407
  "aria-label": a(s)("About"),
1418
1408
  "data-microtip-position": "top-left",
1419
1409
  role: "tooltip",
1420
1410
  onClick: c[2] || (c[2] = (g) => a(e).emitter.emit("vf-modal-show", { type: "about" }))
1421
- }, Ma, 8, Ca)
1411
+ }, Ca, 8, wa)
1422
1412
  ])
1423
1413
  ]));
1424
1414
  }
1425
- }), ja = {
1415
+ }), Ea = {
1426
1416
  name: "VueFinder"
1427
- }, Aa = /* @__PURE__ */ Object.assign(ja, {
1417
+ }, Da = /* @__PURE__ */ Object.assign(Ea, {
1428
1418
  props: {
1429
1419
  id: {
1430
1420
  type: String,
@@ -1502,7 +1492,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1502
1492
  let l;
1503
1493
  return o.emitter.on("vf-fetch-abort", () => {
1504
1494
  l.abort(), o.loading = !1;
1505
- }), o.emitter.on("vf-fetch", ({ params: c, body: g = null, onSuccess: _ = null, onError: w = null, noCloseModal: y = !1 }) => {
1495
+ }), o.emitter.on("vf-fetch", ({ params: c, body: g = null, onSuccess: _ = null, onError: x = null, noCloseModal: C = !1 }) => {
1506
1496
  ["index", "search"].includes(c.q) && (l && l.abort(), o.loading = !0), l = new AbortController();
1507
1497
  const E = l.signal;
1508
1498
  o.requester.send({
@@ -1511,10 +1501,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1511
1501
  params: c,
1512
1502
  body: g,
1513
1503
  abortSignal: E
1514
- }).then(($) => {
1515
- o.adapter = $.adapter, o.persist && (o.path = $.dirname, i("path", o.path)), ["index", "search"].includes(c.q) && (o.loading = !1), y || o.emitter.emit("vf-modal-close"), d($), _ && _($);
1516
- }).catch(($) => {
1517
- console.error($), w && w($);
1504
+ }).then((w) => {
1505
+ o.adapter = w.adapter, o.persist && (o.path = w.dirname, i("path", o.path)), ["index", "search"].includes(c.q) && (o.loading = !1), C || o.emitter.emit("vf-modal-close"), d(w), _ && _(w);
1506
+ }).catch((w) => {
1507
+ console.error(w), x && x(w);
1518
1508
  });
1519
1509
  }), o.emitter.on("vf-download", (c) => {
1520
1510
  const g = document.createElement("a");
@@ -1542,7 +1532,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1542
1532
  H(Vt),
1543
1533
  H(cs),
1544
1534
  H(la),
1545
- H(Da)
1535
+ H(Ma)
1546
1536
  ], 38),
1547
1537
  H(Ae, { name: "fade" }, {
1548
1538
  default: A(() => [
@@ -1550,11 +1540,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1550
1540
  ]),
1551
1541
  _: 1
1552
1542
  }),
1553
- H(va)
1543
+ H(ua)
1554
1544
  ], 2)
1555
1545
  ], 512));
1556
1546
  }
1557
- }), La = /* @__PURE__ */ t("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Ta = { class: "fixed z-10 inset-0 overflow-hidden" }, Fa = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, Oa = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Va = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, W = {
1547
+ }), ja = /* @__PURE__ */ t("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-600 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), Aa = { class: "fixed z-10 inset-0 overflow-hidden" }, La = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, Ta = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, Fa = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, W = {
1558
1548
  __name: "ModalLayout",
1559
1549
  setup(p) {
1560
1550
  const e = F("ServiceContainer");
@@ -1569,17 +1559,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1569
1559
  onKeyup: r[1] || (r[1] = Q((o) => a(e).emitter.emit("vf-modal-close"), ["esc"])),
1570
1560
  tabindex: "0"
1571
1561
  }, [
1572
- La,
1573
- t("div", Ta, [
1562
+ ja,
1563
+ t("div", Aa, [
1574
1564
  t("div", {
1575
1565
  class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
1576
1566
  onMousedown: r[0] || (r[0] = Y((o) => a(e).emitter.emit("vf-modal-close"), ["self"]))
1577
1567
  }, [
1578
- t("div", Fa, [
1579
- t("div", Oa, [
1568
+ t("div", La, [
1569
+ t("div", Ta, [
1580
1570
  le(s.$slots, "default")
1581
1571
  ]),
1582
- t("div", Va, [
1572
+ t("div", Fa, [
1583
1573
  le(s.$slots, "buttons")
1584
1574
  ])
1585
1575
  ])
@@ -1587,7 +1577,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1587
1577
  ])
1588
1578
  ], 32));
1589
1579
  }
1590
- }, Na = ["aria-label"], Ba = /* @__PURE__ */ t("svg", {
1580
+ }, Oa = ["aria-label"], Va = /* @__PURE__ */ t("svg", {
1591
1581
  xmlns: "http://www.w3.org/2000/svg",
1592
1582
  fill: "none",
1593
1583
  viewBox: "0 0 24 24",
@@ -1600,11 +1590,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1600
1590
  "stroke-linejoin": "round",
1601
1591
  d: "M6 18L18 6M6 6l12 12"
1602
1592
  })
1603
- ], -1), za = [
1604
- Ba
1605
- ], Ua = {
1593
+ ], -1), Na = [
1594
+ Va
1595
+ ], Ba = {
1606
1596
  name: "Message"
1607
- }, G = /* @__PURE__ */ Object.assign(Ua, {
1597
+ }, G = /* @__PURE__ */ Object.assign(Ba, {
1608
1598
  props: {
1609
1599
  error: {
1610
1600
  type: Boolean,
@@ -1633,11 +1623,11 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1633
1623
  "aria-label": a(o)("Close"),
1634
1624
  "data-microtip-position": "top-left",
1635
1625
  role: "tooltip"
1636
- }, za, 8, Na)
1626
+ }, Na, 8, Oa)
1637
1627
  ], 2))
1638
1628
  ]));
1639
1629
  }
1640
- }), Ha = { class: "sm:flex sm:items-start" }, Ra = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1630
+ }), za = { class: "sm:flex sm:items-start" }, Ua = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1641
1631
  /* @__PURE__ */ t("svg", {
1642
1632
  xmlns: "http://www.w3.org/2000/svg",
1643
1633
  class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
@@ -1652,13 +1642,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1652
1642
  d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
1653
1643
  })
1654
1644
  ])
1655
- ], -1), qa = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ia = {
1645
+ ], -1), Ha = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ra = {
1656
1646
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
1657
1647
  id: "modal-title"
1658
- }, Pa = { class: "mt-2" }, Wa = { class: "text-sm text-gray-500" }, Ga = {
1648
+ }, qa = { class: "mt-2" }, Ia = { class: "text-sm text-gray-500" }, Pa = {
1659
1649
  class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",
1660
1650
  style: { "max-height": "200px" }
1661
- }, Ya = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Ka = {
1651
+ }, Wa = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Ga = {
1662
1652
  key: 0,
1663
1653
  xmlns: "http://www.w3.org/2000/svg",
1664
1654
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -1666,13 +1656,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1666
1656
  viewBox: "0 0 24 24",
1667
1657
  stroke: "currentColor",
1668
1658
  "stroke-width": "1"
1669
- }, Ja = /* @__PURE__ */ t("path", {
1659
+ }, Ya = /* @__PURE__ */ t("path", {
1670
1660
  "stroke-linecap": "round",
1671
1661
  "stroke-linejoin": "round",
1672
1662
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
1673
- }, null, -1), Xa = [
1674
- Ja
1675
- ], Qa = {
1663
+ }, null, -1), Ka = [
1664
+ Ya
1665
+ ], Ja = {
1676
1666
  key: 1,
1677
1667
  xmlns: "http://www.w3.org/2000/svg",
1678
1668
  class: "h-5 w-5 text-neutral-500",
@@ -1680,15 +1670,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1680
1670
  viewBox: "0 0 24 24",
1681
1671
  stroke: "currentColor",
1682
1672
  "stroke-width": "1"
1683
- }, Za = /* @__PURE__ */ t("path", {
1673
+ }, Xa = /* @__PURE__ */ t("path", {
1684
1674
  "stroke-linecap": "round",
1685
1675
  "stroke-linejoin": "round",
1686
1676
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
1687
- }, null, -1), eo = [
1688
- Za
1689
- ], to = { class: "ml-1.5" }, so = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, ao = {
1677
+ }, null, -1), Qa = [
1678
+ Xa
1679
+ ], Za = { class: "ml-1.5" }, eo = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, to = {
1690
1680
  name: "VFModalDelete"
1691
- }, oo = /* @__PURE__ */ Object.assign(ao, {
1681
+ }, so = /* @__PURE__ */ Object.assign(to, {
1692
1682
  setup(p) {
1693
1683
  const e = F("ServiceContainer");
1694
1684
  e.storage;
@@ -1723,19 +1713,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1723
1713
  onClick: d[1] || (d[1] = (l) => a(e).emitter.emit("vf-modal-close")),
1724
1714
  class: "vf-btn vf-btn-secondary"
1725
1715
  }, v(a(s)("Cancel")), 1),
1726
- t("div", so, v(a(s)("This action cannot be undone.")), 1)
1716
+ t("div", eo, v(a(s)("This action cannot be undone.")), 1)
1727
1717
  ]),
1728
1718
  default: A(() => [
1729
- t("div", Ha, [
1730
- Ra,
1731
- t("div", qa, [
1732
- t("h3", Ia, v(a(s)("Delete files")), 1),
1733
- t("div", Pa, [
1734
- t("p", Wa, v(a(s)("Are you sure you want to delete these files?")), 1),
1735
- t("div", Ga, [
1736
- (n(!0), m(U, null, I(r.value, (l) => (n(), m("p", Ya, [
1737
- l.type === "dir" ? (n(), m("svg", Ka, Xa)) : (n(), m("svg", Qa, eo)),
1738
- t("span", to, v(l.basename), 1)
1719
+ t("div", za, [
1720
+ Ua,
1721
+ t("div", Ha, [
1722
+ t("h3", Ra, v(a(s)("Delete files")), 1),
1723
+ t("div", qa, [
1724
+ t("p", Ia, v(a(s)("Are you sure you want to delete these files?")), 1),
1725
+ t("div", Pa, [
1726
+ (n(!0), m(U, null, I(r.value, (l) => (n(), m("p", Wa, [
1727
+ l.type === "dir" ? (n(), m("svg", Ga, Ka)) : (n(), m("svg", Ja, Qa)),
1728
+ t("span", Za, v(l.basename), 1)
1739
1729
  ]))), 256))
1740
1730
  ]),
1741
1731
  o.value.length ? (n(), T(G, {
@@ -1755,7 +1745,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1755
1745
  _: 1
1756
1746
  }));
1757
1747
  }
1758
- }), ro = { class: "sm:flex sm:items-start" }, no = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1748
+ }), ao = { class: "sm:flex sm:items-start" }, oo = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1759
1749
  /* @__PURE__ */ t("svg", {
1760
1750
  xmlns: "http://www.w3.org/2000/svg",
1761
1751
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -1770,12 +1760,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1770
1760
  d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
1771
1761
  })
1772
1762
  ])
1773
- ], -1), lo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, io = {
1763
+ ], -1), ro = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, no = {
1774
1764
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
1775
1765
  id: "modal-title"
1776
- }, co = { class: "mt-2" }, uo = { class: "text-sm text-gray-500" }, mo = {
1766
+ }, lo = { class: "mt-2" }, io = { class: "text-sm text-gray-500" }, co = {
1777
1767
  name: "VFModalMessage"
1778
- }, vo = /* @__PURE__ */ Object.assign(mo, {
1768
+ }, uo = /* @__PURE__ */ Object.assign(co, {
1779
1769
  setup(p) {
1780
1770
  const e = F("ServiceContainer"), { t: s } = e.i18n;
1781
1771
  return (r, o) => (n(), T(W, null, {
@@ -1789,12 +1779,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1789
1779
  default: A(() => {
1790
1780
  var i, u;
1791
1781
  return [
1792
- t("div", ro, [
1793
- no,
1794
- t("div", lo, [
1795
- t("h3", io, v(((i = a(e).modal.data) == null ? void 0 : i.title) ?? "Title"), 1),
1796
- t("div", co, [
1797
- t("p", uo, v(((u = a(e).modal.data) == null ? void 0 : u.message) ?? "Message"), 1)
1782
+ t("div", ao, [
1783
+ oo,
1784
+ t("div", ro, [
1785
+ t("h3", no, v(((i = a(e).modal.data) == null ? void 0 : i.title) ?? "Title"), 1),
1786
+ t("div", lo, [
1787
+ t("p", io, v(((u = a(e).modal.data) == null ? void 0 : u.message) ?? "Message"), 1)
1798
1788
  ])
1799
1789
  ])
1800
1790
  ])
@@ -1803,7 +1793,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1803
1793
  _: 1
1804
1794
  }));
1805
1795
  }
1806
- }), po = { class: "sm:flex sm:items-start" }, ho = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1796
+ }), mo = { class: "sm:flex sm:items-start" }, vo = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1807
1797
  /* @__PURE__ */ t("svg", {
1808
1798
  xmlns: "http://www.w3.org/2000/svg",
1809
1799
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -1818,12 +1808,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1818
1808
  d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
1819
1809
  })
1820
1810
  ])
1821
- ], -1), fo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, go = {
1811
+ ], -1), po = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ho = {
1822
1812
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
1823
1813
  id: "modal-title"
1824
- }, _o = { class: "mt-2" }, ko = { class: "text-sm text-gray-500" }, bo = ["placeholder"], yo = {
1814
+ }, fo = { class: "mt-2" }, go = { class: "text-sm text-gray-500" }, _o = ["placeholder"], ko = {
1825
1815
  name: "VFModalNewFolder"
1826
- }, xo = /* @__PURE__ */ Object.assign(yo, {
1816
+ }, bo = /* @__PURE__ */ Object.assign(ko, {
1827
1817
  setup(p) {
1828
1818
  const e = F("ServiceContainer");
1829
1819
  e.storage;
@@ -1860,19 +1850,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1860
1850
  }, v(a(s)("Cancel")), 1)
1861
1851
  ]),
1862
1852
  default: A(() => [
1863
- t("div", po, [
1864
- ho,
1865
- t("div", fo, [
1866
- t("h3", go, v(a(s)("New Folder")), 1),
1867
- t("div", _o, [
1868
- t("p", ko, v(a(s)("Create a new folder")), 1),
1853
+ t("div", mo, [
1854
+ vo,
1855
+ t("div", po, [
1856
+ t("h3", ho, v(a(s)("New Folder")), 1),
1857
+ t("div", fo, [
1858
+ t("p", go, v(a(s)("Create a new folder")), 1),
1869
1859
  q(t("input", {
1870
1860
  "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
1871
1861
  onKeyup: Q(i, ["enter"]),
1872
1862
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
1873
1863
  placeholder: a(s)("Folder Name"),
1874
1864
  type: "text"
1875
- }, null, 40, bo), [
1865
+ }, null, 40, _o), [
1876
1866
  [Z, r.value]
1877
1867
  ]),
1878
1868
  o.value.length ? (n(), T(G, {
@@ -1892,7 +1882,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1892
1882
  _: 1
1893
1883
  }));
1894
1884
  }
1895
- }), wo = { class: "sm:flex sm:items-start" }, $o = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1885
+ }), yo = { class: "sm:flex sm:items-start" }, xo = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
1896
1886
  /* @__PURE__ */ t("svg", {
1897
1887
  xmlns: "http://www.w3.org/2000/svg",
1898
1888
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -1907,12 +1897,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1907
1897
  d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
1908
1898
  })
1909
1899
  ])
1910
- ], -1), Co = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, So = {
1900
+ ], -1), wo = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $o = {
1911
1901
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
1912
1902
  id: "modal-title"
1913
- }, Mo = { class: "mt-2" }, Eo = { class: "text-sm text-gray-500" }, Do = ["placeholder"], jo = {
1903
+ }, Co = { class: "mt-2" }, So = { class: "text-sm text-gray-500" }, Mo = ["placeholder"], Eo = {
1914
1904
  name: "VFModalNewFile"
1915
- }, Ao = /* @__PURE__ */ Object.assign(jo, {
1905
+ }, Do = /* @__PURE__ */ Object.assign(Eo, {
1916
1906
  setup(p) {
1917
1907
  const e = F("ServiceContainer");
1918
1908
  e.storage;
@@ -1949,19 +1939,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1949
1939
  }, v(a(s)("Cancel")), 1)
1950
1940
  ]),
1951
1941
  default: A(() => [
1952
- t("div", wo, [
1953
- $o,
1954
- t("div", Co, [
1955
- t("h3", So, v(a(s)("New File")), 1),
1956
- t("div", Mo, [
1957
- t("p", Eo, v(a(s)("Create a new file")), 1),
1942
+ t("div", yo, [
1943
+ xo,
1944
+ t("div", wo, [
1945
+ t("h3", $o, v(a(s)("New File")), 1),
1946
+ t("div", Co, [
1947
+ t("p", So, v(a(s)("Create a new file")), 1),
1958
1948
  q(t("input", {
1959
1949
  "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l),
1960
1950
  onKeyup: Q(i, ["enter"]),
1961
1951
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
1962
1952
  placeholder: a(s)("File Name"),
1963
1953
  type: "text"
1964
- }, null, 40, Do), [
1954
+ }, null, 40, Mo), [
1965
1955
  [Z, r.value]
1966
1956
  ]),
1967
1957
  o.value.length ? (n(), T(G, {
@@ -1981,10 +1971,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1981
1971
  _: 1
1982
1972
  }));
1983
1973
  }
1984
- }), Lo = { class: "flex" }, To = ["aria-label"], Fo = { class: "ml-auto mb-2" }, Oo = {
1974
+ }), jo = { class: "flex" }, Ao = ["aria-label"], Lo = { class: "ml-auto mb-2" }, To = {
1985
1975
  key: 0,
1986
1976
  class: "p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"
1987
- }, Vo = { key: 1 }, No = {
1977
+ }, Fo = { key: 1 }, Oo = {
1988
1978
  __name: "Text",
1989
1979
  emits: ["success"],
1990
1980
  setup(p, { emit: e }) {
@@ -1995,15 +1985,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
1995
1985
  method: "get",
1996
1986
  params: { q: "preview", adapter: c.modal.data.adapter, path: c.modal.data.item.path },
1997
1987
  responseType: "text"
1998
- }).then((y) => {
1999
- r.value = y, s("success");
1988
+ }).then((C) => {
1989
+ r.value = C, s("success");
2000
1990
  });
2001
1991
  });
2002
1992
  const _ = () => {
2003
1993
  u.value = !u.value, o.value = r.value, u.value == !0 && ce(() => {
2004
1994
  i.value.focus();
2005
1995
  });
2006
- }, w = () => {
1996
+ }, x = () => {
2007
1997
  d.value = "", l.value = !1, c.requester.send({
2008
1998
  url: "",
2009
1999
  method: "post",
@@ -2016,40 +2006,40 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2016
2006
  content: o.value
2017
2007
  },
2018
2008
  responseType: "text"
2019
- }).then((y) => {
2020
- d.value = g("Updated."), r.value = y, s("success"), u.value = !u.value;
2021
- }).catch((y) => {
2022
- d.value = g(y.message), l.value = !0;
2009
+ }).then((C) => {
2010
+ d.value = g("Updated."), r.value = C, s("success"), u.value = !u.value;
2011
+ }).catch((C) => {
2012
+ d.value = g(C.message), l.value = !0;
2023
2013
  });
2024
2014
  };
2025
- return (y, E) => (n(), m(U, null, [
2026
- t("div", Lo, [
2015
+ return (C, E) => (n(), m(U, null, [
2016
+ t("div", jo, [
2027
2017
  t("div", {
2028
2018
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2029
2019
  id: "modal-title",
2030
2020
  "aria-label": a(c).modal.data.item.path,
2031
2021
  "data-microtip-position": "bottom-right",
2032
2022
  role: "tooltip"
2033
- }, v(a(c).modal.data.item.basename), 9, To),
2034
- t("div", Fo, [
2023
+ }, v(a(c).modal.data.item.basename), 9, Ao),
2024
+ t("div", Lo, [
2035
2025
  u.value ? (n(), m("button", {
2036
2026
  key: 0,
2037
- onClick: w,
2027
+ onClick: x,
2038
2028
  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"
2039
2029
  }, v(a(g)("Save")), 1)) : M("", !0),
2040
2030
  a(c).features.includes(a(B).EDIT) ? (n(), m("button", {
2041
2031
  key: 1,
2042
2032
  class: "ml-1 px-2 py-1 text-blue-500",
2043
- onClick: E[0] || (E[0] = ($) => _())
2033
+ onClick: E[0] || (E[0] = (w) => _())
2044
2034
  }, v(u.value ? a(g)("Cancel") : a(g)("Edit")), 1)) : M("", !0)
2045
2035
  ])
2046
2036
  ]),
2047
2037
  t("div", null, [
2048
- u.value ? (n(), m("div", Vo, [
2038
+ u.value ? (n(), m("div", Fo, [
2049
2039
  q(t("textarea", {
2050
2040
  ref_key: "editInput",
2051
2041
  ref: i,
2052
- "onUpdate:modelValue": E[1] || (E[1] = ($) => o.value = $),
2042
+ "onUpdate:modelValue": E[1] || (E[1] = (w) => o.value = w),
2053
2043
  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] max-h-[60vh] text-xs",
2054
2044
  name: "text",
2055
2045
  id: "",
@@ -2058,10 +2048,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2058
2048
  }, null, 512), [
2059
2049
  [Z, o.value]
2060
2050
  ])
2061
- ])) : (n(), m("pre", Oo, v(r.value), 1)),
2051
+ ])) : (n(), m("pre", To, v(r.value), 1)),
2062
2052
  d.value.length ? (n(), T(G, {
2063
2053
  key: 2,
2064
- onHidden: E[2] || (E[2] = ($) => d.value = ""),
2054
+ onHidden: E[2] || (E[2] = (w) => d.value = ""),
2065
2055
  error: l.value
2066
2056
  }, {
2067
2057
  default: A(() => [
@@ -2072,13 +2062,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2072
2062
  ])
2073
2063
  ], 64));
2074
2064
  }
2075
- }, Bo = { class: "flex" }, zo = ["aria-label"], Uo = { class: "ml-auto mb-2" }, Ho = { class: "w-full flex justify-center" }, Ro = ["src"], qo = {
2065
+ }, Vo = { class: "flex" }, No = ["aria-label"], Bo = { class: "ml-auto mb-2" }, zo = { class: "w-full flex justify-center" }, Uo = ["src"], Ho = {
2076
2066
  __name: "Image",
2077
2067
  emits: ["success"],
2078
2068
  setup(p, { emit: e }) {
2079
2069
  const s = e, r = F("ServiceContainer"), { t: o } = r.i18n, i = k(null), u = k(null), d = k(!1), l = k(""), c = k(!1), g = () => {
2080
2070
  d.value = !d.value, d.value ? u.value = new Be(i.value, {
2081
- crop(w) {
2071
+ crop(x) {
2082
2072
  }
2083
2073
  }) : u.value.destroy();
2084
2074
  }, _ = () => {
@@ -2086,10 +2076,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2086
2076
  width: 795,
2087
2077
  height: 341
2088
2078
  }).toBlob(
2089
- (w) => {
2079
+ (x) => {
2090
2080
  l.value = "", c.value = !1;
2091
- const y = new FormData();
2092
- y.set("file", w), r.requester.send({
2081
+ const C = new FormData();
2082
+ C.set("file", x), r.requester.send({
2093
2083
  url: "",
2094
2084
  method: "post",
2095
2085
  params: {
@@ -2097,7 +2087,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2097
2087
  adapter: r.modal.data.adapter,
2098
2088
  path: r.modal.data.item.path
2099
2089
  },
2100
- body: y
2090
+ body: C
2101
2091
  }).then((E) => {
2102
2092
  l.value = o("Updated."), i.value.src = r.requester.getPreviewUrl(r.modal.data.adapter, r.modal.data.item), g(), s("success");
2103
2093
  }).catch((E) => {
@@ -2108,16 +2098,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2108
2098
  };
2109
2099
  return P(() => {
2110
2100
  s("success");
2111
- }), (w, y) => (n(), m(U, null, [
2112
- t("div", Bo, [
2101
+ }), (x, C) => (n(), m(U, null, [
2102
+ t("div", Vo, [
2113
2103
  t("h3", {
2114
2104
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2115
2105
  id: "modal-title",
2116
2106
  "aria-label": a(r).modal.data.item.path,
2117
2107
  "data-microtip-position": "bottom-right",
2118
2108
  role: "tooltip"
2119
- }, v(a(r).modal.data.item.basename), 9, zo),
2120
- t("div", Uo, [
2109
+ }, v(a(r).modal.data.item.basename), 9, No),
2110
+ t("div", Bo, [
2121
2111
  d.value ? (n(), m("button", {
2122
2112
  key: 0,
2123
2113
  onClick: _,
@@ -2126,22 +2116,22 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2126
2116
  a(r).features.includes(a(B).EDIT) ? (n(), m("button", {
2127
2117
  key: 1,
2128
2118
  class: "ml-1 px-2 py-1 text-blue-500",
2129
- onClick: y[0] || (y[0] = (E) => g())
2119
+ onClick: C[0] || (C[0] = (E) => g())
2130
2120
  }, v(d.value ? a(o)("Cancel") : a(o)("Edit")), 1)) : M("", !0)
2131
2121
  ])
2132
2122
  ]),
2133
- t("div", Ho, [
2123
+ t("div", zo, [
2134
2124
  t("img", {
2135
2125
  ref_key: "image",
2136
2126
  ref: i,
2137
2127
  class: "max-w-[50vh] max-h-[50vh]",
2138
2128
  src: a(r).requester.getPreviewUrl(a(r).modal.data.adapter, a(r).modal.data.item),
2139
2129
  alt: ""
2140
- }, null, 8, Ro)
2130
+ }, null, 8, Uo)
2141
2131
  ]),
2142
2132
  l.value.length ? (n(), T(G, {
2143
2133
  key: 0,
2144
- onHidden: y[1] || (y[1] = (E) => l.value = ""),
2134
+ onHidden: C[1] || (C[1] = (E) => l.value = ""),
2145
2135
  error: c.value
2146
2136
  }, {
2147
2137
  default: A(() => [
@@ -2151,7 +2141,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2151
2141
  }, 8, ["error"])) : M("", !0)
2152
2142
  ], 64));
2153
2143
  }
2154
- }, Io = { class: "flex" }, Po = ["aria-label"], Wo = /* @__PURE__ */ t("div", null, null, -1), Go = {
2144
+ }, Ro = { class: "flex" }, qo = ["aria-label"], Io = /* @__PURE__ */ t("div", null, null, -1), Po = {
2155
2145
  __name: "Default",
2156
2146
  emits: ["success"],
2157
2147
  setup(p, { emit: e }) {
@@ -2159,23 +2149,23 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2159
2149
  return P(() => {
2160
2150
  r("success");
2161
2151
  }), (o, i) => (n(), m(U, null, [
2162
- t("div", Io, [
2152
+ t("div", Ro, [
2163
2153
  t("h3", {
2164
2154
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2165
2155
  id: "modal-title",
2166
2156
  "aria-label": a(s).modal.data.item.path,
2167
2157
  "data-microtip-position": "bottom-right",
2168
2158
  role: "tooltip"
2169
- }, v(a(s).modal.data.item.basename), 9, Po)
2159
+ }, v(a(s).modal.data.item.basename), 9, qo)
2170
2160
  ]),
2171
- Wo
2161
+ Io
2172
2162
  ], 64));
2173
2163
  }
2174
- }, Yo = ["aria-label"], Ko = {
2164
+ }, Wo = ["aria-label"], Go = {
2175
2165
  class: "w-full",
2176
2166
  preload: "",
2177
2167
  controls: ""
2178
- }, Jo = ["src"], Xo = {
2168
+ }, Yo = ["src"], Ko = {
2179
2169
  __name: "Video",
2180
2170
  emits: ["success"],
2181
2171
  setup(p, { emit: e }) {
@@ -2189,22 +2179,22 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2189
2179
  "aria-label": a(s).modal.data.item.path,
2190
2180
  "data-microtip-position": "bottom-right",
2191
2181
  role: "tooltip"
2192
- }, v(a(s).modal.data.item.basename), 9, Yo),
2182
+ }, v(a(s).modal.data.item.basename), 9, Wo),
2193
2183
  t("div", null, [
2194
- t("video", Ko, [
2184
+ t("video", Go, [
2195
2185
  t("source", {
2196
2186
  src: o(),
2197
2187
  type: "video/mp4"
2198
- }, null, 8, Jo),
2188
+ }, null, 8, Yo),
2199
2189
  V(" Your browser does not support the video tag. ")
2200
2190
  ])
2201
2191
  ])
2202
2192
  ]));
2203
2193
  }
2204
- }, Qo = ["aria-label"], Zo = {
2194
+ }, Jo = ["aria-label"], Xo = {
2205
2195
  class: "w-full",
2206
2196
  controls: ""
2207
- }, er = ["src"], tr = {
2197
+ }, Qo = ["src"], Zo = {
2208
2198
  __name: "Audio",
2209
2199
  emits: ["success"],
2210
2200
  setup(p, { emit: e }) {
@@ -2218,25 +2208,25 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2218
2208
  "aria-label": a(r).modal.data.item.path,
2219
2209
  "data-microtip-position": "bottom-right",
2220
2210
  role: "tooltip"
2221
- }, v(a(r).modal.data.item.basename), 9, Qo),
2211
+ }, v(a(r).modal.data.item.basename), 9, Jo),
2222
2212
  t("div", null, [
2223
- t("audio", Zo, [
2213
+ t("audio", Xo, [
2224
2214
  t("source", {
2225
2215
  src: o(),
2226
2216
  type: "audio/mpeg"
2227
- }, null, 8, er),
2217
+ }, null, 8, Qo),
2228
2218
  V(" Your browser does not support the audio element. ")
2229
2219
  ])
2230
2220
  ])
2231
2221
  ], 64));
2232
2222
  }
2233
- }, sr = ["aria-label"], ar = ["data"], or = ["src"], rr = /* @__PURE__ */ t("p", null, [
2223
+ }, er = ["aria-label"], tr = ["data"], sr = ["src"], ar = /* @__PURE__ */ t("p", null, [
2234
2224
  /* @__PURE__ */ V(" Your browser does not support PDFs. "),
2235
2225
  /* @__PURE__ */ t("a", { href: "https://example.com/test.pdf" }, "Download the PDF"),
2236
2226
  /* @__PURE__ */ V(" . ")
2237
- ], -1), nr = [
2238
- rr
2239
- ], lr = {
2227
+ ], -1), or = [
2228
+ ar
2229
+ ], rr = {
2240
2230
  __name: "Pdf",
2241
2231
  emits: ["success"],
2242
2232
  setup(p, { emit: e }) {
@@ -2250,7 +2240,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2250
2240
  "aria-label": a(s).modal.data.item.path,
2251
2241
  "data-microtip-position": "bottom-right",
2252
2242
  role: "tooltip"
2253
- }, v(a(s).modal.data.item.basename), 9, sr),
2243
+ }, v(a(s).modal.data.item.basename), 9, er),
2254
2244
  t("div", null, [
2255
2245
  t("object", {
2256
2246
  class: "h-[60vh]",
@@ -2264,15 +2254,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2264
2254
  src: o(),
2265
2255
  width: "100%",
2266
2256
  height: "100%"
2267
- }, nr, 8, or)
2268
- ], 8, ar)
2257
+ }, or, 8, sr)
2258
+ ], 8, tr)
2269
2259
  ])
2270
2260
  ], 64));
2271
2261
  }
2272
- }, ir = { class: "sm:flex sm:items-start" }, dr = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, cr = { key: 0 }, ur = { class: "text-gray-700 dark:text-gray-200 text-sm" }, mr = {
2262
+ }, nr = { class: "sm:flex sm:items-start" }, lr = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, ir = { key: 0 }, dr = { class: "text-gray-700 dark:text-gray-200 text-sm" }, cr = {
2273
2263
  key: 0,
2274
2264
  class: "flex leading-5"
2275
- }, vr = /* @__PURE__ */ t("svg", {
2265
+ }, ur = /* @__PURE__ */ t("svg", {
2276
2266
  class: "animate-spin -ml-1 mr-3 h-5 w-5 text-white",
2277
2267
  xmlns: "http://www.w3.org/2000/svg",
2278
2268
  fill: "none",
@@ -2291,12 +2281,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2291
2281
  fill: "currentColor",
2292
2282
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
2293
2283
  })
2294
- ], -1), pr = { class: "py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, hr = { class: "font-bold" }, fr = { class: "font-bold pl-2" }, gr = {
2284
+ ], -1), mr = { class: "py-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, vr = { class: "font-bold" }, pr = { class: "font-bold pl-2" }, hr = {
2295
2285
  key: 0,
2296
2286
  class: "text-xs text-gray-600 dark:text-gray-400"
2297
- }, _r = ["download", "href"], kr = {
2287
+ }, fr = ["download", "href"], gr = {
2298
2288
  name: "VFModalPreview"
2299
- }, br = /* @__PURE__ */ Object.assign(kr, {
2289
+ }, _r = /* @__PURE__ */ Object.assign(gr, {
2300
2290
  setup(p) {
2301
2291
  const e = F("ServiceContainer"), { t: s } = e.i18n, r = k(!1), o = (u) => (e.modal.data.item.mime_type ?? "").startsWith(u), i = e.features.includes(B.PREVIEW);
2302
2292
  return i || (r.value = !0), (u, d) => (n(), T(W, null, {
@@ -2312,58 +2302,58 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2312
2302
  class: "vf-btn vf-btn-primary",
2313
2303
  download: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item),
2314
2304
  href: a(e).requester.getDownloadUrl(a(e).modal.data.adapter, a(e).modal.data.item)
2315
- }, v(a(s)("Download")), 9, _r)) : M("", !0)
2305
+ }, v(a(s)("Download")), 9, fr)) : M("", !0)
2316
2306
  ]),
2317
2307
  default: A(() => [
2318
- t("div", ir, [
2319
- t("div", dr, [
2320
- a(i) ? (n(), m("div", cr, [
2321
- o("text") ? (n(), T(No, {
2308
+ t("div", nr, [
2309
+ t("div", lr, [
2310
+ a(i) ? (n(), m("div", ir, [
2311
+ o("text") ? (n(), T(Oo, {
2322
2312
  key: 0,
2323
2313
  onSuccess: d[0] || (d[0] = (l) => r.value = !0)
2324
- })) : o("image") ? (n(), T(qo, {
2314
+ })) : o("image") ? (n(), T(Ho, {
2325
2315
  key: 1,
2326
2316
  onSuccess: d[1] || (d[1] = (l) => r.value = !0)
2327
- })) : o("video") ? (n(), T(Xo, {
2317
+ })) : o("video") ? (n(), T(Ko, {
2328
2318
  key: 2,
2329
2319
  onSuccess: d[2] || (d[2] = (l) => r.value = !0)
2330
- })) : o("audio") ? (n(), T(tr, {
2320
+ })) : o("audio") ? (n(), T(Zo, {
2331
2321
  key: 3,
2332
2322
  onSuccess: d[3] || (d[3] = (l) => r.value = !0)
2333
- })) : o("application/pdf") ? (n(), T(lr, {
2323
+ })) : o("application/pdf") ? (n(), T(rr, {
2334
2324
  key: 4,
2335
2325
  onSuccess: d[4] || (d[4] = (l) => r.value = !0)
2336
- })) : (n(), T(Go, {
2326
+ })) : (n(), T(Po, {
2337
2327
  key: 5,
2338
2328
  onSuccess: d[5] || (d[5] = (l) => r.value = !0)
2339
2329
  }))
2340
2330
  ])) : M("", !0),
2341
- t("div", ur, [
2342
- r.value === !1 ? (n(), m("div", mr, [
2343
- vr,
2331
+ t("div", dr, [
2332
+ r.value === !1 ? (n(), m("div", cr, [
2333
+ ur,
2344
2334
  t("span", null, v(a(s)("Loading")), 1)
2345
2335
  ])) : M("", !0)
2346
2336
  ])
2347
2337
  ])
2348
2338
  ]),
2349
- t("div", pr, [
2339
+ t("div", mr, [
2350
2340
  t("div", null, [
2351
- t("span", hr, v(a(s)("File Size")) + ": ", 1),
2341
+ t("span", vr, v(a(s)("File Size")) + ": ", 1),
2352
2342
  V(v(a(e).filesize(a(e).modal.data.item.file_size)), 1)
2353
2343
  ]),
2354
2344
  t("div", null, [
2355
- t("span", fr, v(a(s)("Last Modified")) + ": ", 1),
2345
+ t("span", pr, v(a(s)("Last Modified")) + ": ", 1),
2356
2346
  V(" " + v(a(we)(a(e).modal.data.item.last_modified)), 1)
2357
2347
  ])
2358
2348
  ]),
2359
- a(e).features.includes(a(B).DOWNLOAD) ? (n(), m("div", gr, [
2349
+ a(e).features.includes(a(B).DOWNLOAD) ? (n(), m("div", hr, [
2360
2350
  t("span", null, v(a(s)(`Download doesn't work? You can try right-click "Download" button, select "Save link as...".`)), 1)
2361
2351
  ])) : M("", !0)
2362
2352
  ]),
2363
2353
  _: 1
2364
2354
  }));
2365
2355
  }
2366
- }), yr = { class: "sm:flex sm:items-start" }, xr = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2356
+ }), kr = { class: "sm:flex sm:items-start" }, br = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2367
2357
  /* @__PURE__ */ t("svg", {
2368
2358
  xmlns: "http://www.w3.org/2000/svg",
2369
2359
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -2378,10 +2368,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2378
2368
  d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
2379
2369
  })
2380
2370
  ])
2381
- ], -1), wr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $r = {
2371
+ ], -1), yr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, xr = {
2382
2372
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2383
2373
  id: "modal-title"
2384
- }, Cr = { class: "mt-2" }, Sr = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Mr = {
2374
+ }, wr = { class: "mt-2" }, $r = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Cr = {
2385
2375
  key: 0,
2386
2376
  xmlns: "http://www.w3.org/2000/svg",
2387
2377
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -2389,13 +2379,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2389
2379
  viewBox: "0 0 24 24",
2390
2380
  stroke: "currentColor",
2391
2381
  "stroke-width": "1"
2392
- }, Er = /* @__PURE__ */ t("path", {
2382
+ }, Sr = /* @__PURE__ */ t("path", {
2393
2383
  "stroke-linecap": "round",
2394
2384
  "stroke-linejoin": "round",
2395
2385
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
2396
- }, null, -1), Dr = [
2397
- Er
2398
- ], jr = {
2386
+ }, null, -1), Mr = [
2387
+ Sr
2388
+ ], Er = {
2399
2389
  key: 1,
2400
2390
  xmlns: "http://www.w3.org/2000/svg",
2401
2391
  class: "h-5 w-5 text-neutral-500",
@@ -2403,15 +2393,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2403
2393
  viewBox: "0 0 24 24",
2404
2394
  stroke: "currentColor",
2405
2395
  "stroke-width": "1"
2406
- }, Ar = /* @__PURE__ */ t("path", {
2396
+ }, Dr = /* @__PURE__ */ t("path", {
2407
2397
  "stroke-linecap": "round",
2408
2398
  "stroke-linejoin": "round",
2409
2399
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
2410
- }, null, -1), Lr = [
2411
- Ar
2412
- ], Tr = { class: "ml-1.5" }, Fr = {
2400
+ }, null, -1), jr = [
2401
+ Dr
2402
+ ], Ar = { class: "ml-1.5" }, Lr = {
2413
2403
  name: "VFModalRename"
2414
- }, Or = /* @__PURE__ */ Object.assign(Fr, {
2404
+ }, Tr = /* @__PURE__ */ Object.assign(Lr, {
2415
2405
  setup(p) {
2416
2406
  const e = F("ServiceContainer");
2417
2407
  e.storage;
@@ -2449,14 +2439,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2449
2439
  }, v(a(s)("Cancel")), 1)
2450
2440
  ]),
2451
2441
  default: A(() => [
2452
- t("div", yr, [
2453
- xr,
2454
- t("div", wr, [
2455
- t("h3", $r, v(a(s)("Rename")), 1),
2456
- t("div", Cr, [
2457
- t("p", Sr, [
2458
- r.value.type === "dir" ? (n(), m("svg", Mr, Dr)) : (n(), m("svg", jr, Lr)),
2459
- t("span", Tr, v(r.value.basename), 1)
2442
+ t("div", kr, [
2443
+ br,
2444
+ t("div", yr, [
2445
+ t("h3", xr, v(a(s)("Rename")), 1),
2446
+ t("div", wr, [
2447
+ t("p", $r, [
2448
+ r.value.type === "dir" ? (n(), m("svg", Cr, Mr)) : (n(), m("svg", Er, jr)),
2449
+ t("span", Ar, v(r.value.basename), 1)
2460
2450
  ]),
2461
2451
  q(t("input", {
2462
2452
  "onUpdate:modelValue": l[0] || (l[0] = (c) => o.value = c),
@@ -2484,7 +2474,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2484
2474
  _: 1
2485
2475
  }));
2486
2476
  }
2487
- }), Vr = { class: "sm:flex sm:items-start" }, Nr = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2477
+ }), Fr = { class: "sm:flex sm:items-start" }, Or = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2488
2478
  /* @__PURE__ */ t("svg", {
2489
2479
  xmlns: "http://www.w3.org/2000/svg",
2490
2480
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -2499,19 +2489,19 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2499
2489
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
2500
2490
  })
2501
2491
  ])
2502
- ], -1), Br = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, zr = {
2492
+ ], -1), Vr = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Nr = {
2503
2493
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2504
2494
  id: "modal-title"
2505
- }, Ur = { class: "mt-2" }, Hr = {
2495
+ }, Br = { class: "mt-2" }, zr = {
2506
2496
  key: 0,
2507
2497
  class: "pointer-events-none"
2508
- }, Rr = {
2498
+ }, Ur = {
2509
2499
  key: 1,
2510
2500
  class: "pointer-events-none"
2511
- }, qr = ["disabled"], Ir = ["disabled"], Pr = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, Wr = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, Gr = ["textContent"], Yr = { class: "ml-1 w-full h-fit" }, Kr = { class: "text-left hidden md:block" }, Jr = { class: "text-left md:hidden" }, Xr = {
2501
+ }, Hr = ["disabled"], Rr = ["disabled"], qr = { class: "text-gray-500 text-sm mb-1 pr-1 max-h-[200px] overflow-y-auto vf-scrollbar" }, Ir = { class: "rounded flex flex-shrink-0 w-6 h-6 border bg-gray-50 text-xs cursor-default dark:border-gray-700 dark:bg-gray-800 dark:text-gray-50" }, Pr = ["textContent"], Wr = { class: "ml-1 w-full h-fit" }, Gr = { class: "text-left hidden md:block" }, Yr = { class: "text-left md:hidden" }, Kr = {
2512
2502
  key: 0,
2513
2503
  class: "ml-auto"
2514
- }, Qr = ["title", "disabled", "onClick"], Zr = /* @__PURE__ */ t("svg", {
2504
+ }, Jr = ["title", "disabled", "onClick"], Xr = /* @__PURE__ */ t("svg", {
2515
2505
  xmlns: "http://www.w3.org/2000/svg",
2516
2506
  fill: "none",
2517
2507
  viewBox: "0 0 24 24",
@@ -2524,14 +2514,14 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2524
2514
  "stroke-linejoin": "round",
2525
2515
  d: "M6 18L18 6M6 6l12 12"
2526
2516
  })
2527
- ], -1), en = [
2528
- Zr
2529
- ], tn = {
2517
+ ], -1), Qr = [
2518
+ Xr
2519
+ ], Zr = {
2530
2520
  key: 0,
2531
2521
  class: "py-2"
2532
- }, sn = ["disabled"], an = {
2522
+ }, en = ["disabled"], tn = {
2533
2523
  name: "VFModalUpload"
2534
- }, on = /* @__PURE__ */ Object.assign(an, {
2524
+ }, sn = /* @__PURE__ */ Object.assign(tn, {
2535
2525
  setup(p) {
2536
2526
  const e = F("ServiceContainer"), { t: s } = e.i18n, r = s("uppy"), o = {
2537
2527
  PENDING: 0,
@@ -2539,10 +2529,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2539
2529
  UPLOADING: 2,
2540
2530
  ERROR: 3,
2541
2531
  DONE: 10
2542
- }, i = k({ QUEUE_ENTRY_STATUS: o }), u = k(null), d = k(null), l = k(null), c = k(null), g = k(null), _ = k(null), w = k([]), y = k(""), E = k(!1), $ = k(!1);
2532
+ }, i = k({ QUEUE_ENTRY_STATUS: o }), u = k(null), d = k(null), l = k(null), c = k(null), g = k(null), _ = k(null), x = k([]), C = k(""), E = k(!1), w = k(!1);
2543
2533
  let f;
2544
2534
  function h(j) {
2545
- return w.value.findIndex((S) => S.id === j);
2535
+ return x.value.findIndex((S) => S.id === j);
2546
2536
  }
2547
2537
  function N(j, S = null) {
2548
2538
  S = S ?? (j.webkitRelativePath || j.name), f.addFile({
@@ -2582,39 +2572,39 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2582
2572
  }
2583
2573
  function se() {
2584
2574
  if (!E.value) {
2585
- if (!w.value.filter((j) => j.status !== o.DONE).length) {
2586
- y.value = s("Please select file to upload first.");
2575
+ if (!x.value.filter((j) => j.status !== o.DONE).length) {
2576
+ C.value = s("Please select file to upload first.");
2587
2577
  return;
2588
2578
  }
2589
- y.value = "", f.retryAll(), f.upload();
2579
+ C.value = "", f.retryAll(), f.upload();
2590
2580
  }
2591
2581
  }
2592
2582
  function ae() {
2593
- f.cancelAll({ reason: "user" }), w.value.forEach((j) => {
2583
+ f.cancelAll({ reason: "user" }), x.value.forEach((j) => {
2594
2584
  j.status !== o.DONE && (j.status = o.CANCELED, j.statusName = s("Canceled"));
2595
2585
  }), E.value = !1;
2596
2586
  }
2597
2587
  function oe(j) {
2598
- E.value || (f.removeFile(j.id, "removed-by-user"), w.value.splice(h(j.id), 1));
2588
+ E.value || (f.removeFile(j.id, "removed-by-user"), x.value.splice(h(j.id), 1));
2599
2589
  }
2600
- function x(j) {
2590
+ function y(j) {
2601
2591
  if (!E.value) {
2602
2592
  if (f.cancelAll({ reason: "user" }), j) {
2603
2593
  const S = [];
2604
- w.value.forEach((b) => {
2594
+ x.value.forEach((b) => {
2605
2595
  b.status !== o.DONE && S.push(b);
2606
- }), w.value = [], S.forEach((b) => {
2596
+ }), x.value = [], S.forEach((b) => {
2607
2597
  N(b.originalFile, b.name);
2608
2598
  });
2609
2599
  return;
2610
2600
  }
2611
- w.value.splice(0);
2601
+ x.value.splice(0);
2612
2602
  }
2613
2603
  }
2614
2604
  function D() {
2615
2605
  e.emitter.emit("vf-modal-close");
2616
2606
  }
2617
- function C() {
2607
+ function $() {
2618
2608
  return e.requester.transformRequestParams({
2619
2609
  url: "",
2620
2610
  method: "post",
@@ -2633,9 +2623,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2633
2623
  onBeforeFileAdded(b, L) {
2634
2624
  if (L[b.id] != null) {
2635
2625
  const X = h(b.id);
2636
- w.value[X].status === o.PENDING && (y.value = f.i18n("noDuplicates", { fileName: b.name })), w.value = w.value.filter((ue) => ue.id !== b.id);
2626
+ x.value[X].status === o.PENDING && (C.value = f.i18n("noDuplicates", { fileName: b.name })), x.value = x.value.filter((ue) => ue.id !== b.id);
2637
2627
  }
2638
- return w.value.push({
2628
+ return x.value.push({
2639
2629
  id: b.id,
2640
2630
  name: b.name,
2641
2631
  size: e.filesize(b.size),
@@ -2659,26 +2649,26 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2659
2649
  return new Error(O);
2660
2650
  }
2661
2651
  }), f.on("restriction-failed", (b, L) => {
2662
- const O = w.value[h(b.id)];
2663
- oe(O), y.value = L.message;
2652
+ const O = x.value[h(b.id)];
2653
+ oe(O), C.value = L.message;
2664
2654
  }), f.on("upload", () => {
2665
- const b = C();
2655
+ const b = $();
2666
2656
  f.setMeta({ ...b.body });
2667
2657
  const L = f.getPlugin("XHRUpload");
2668
- L.opts.method = b.method, L.opts.endpoint = b.url + "?" + new URLSearchParams(b.params), L.opts.headers = b.headers, E.value = !0, w.value.forEach((O) => {
2658
+ L.opts.method = b.method, L.opts.endpoint = b.url + "?" + new URLSearchParams(b.params), L.opts.headers = b.headers, E.value = !0, x.value.forEach((O) => {
2669
2659
  O.status !== o.DONE && (O.percent = null, O.status = o.UPLOADING, O.statusName = s("Pending upload"));
2670
2660
  });
2671
2661
  }), f.on("upload-progress", (b, L) => {
2672
2662
  const O = Math.floor(L.bytesUploaded / L.bytesTotal * 100);
2673
- w.value[h(b.id)].percent = `${O}%`;
2663
+ x.value[h(b.id)].percent = `${O}%`;
2674
2664
  }), f.on("upload-success", (b) => {
2675
- const L = w.value[h(b.id)];
2665
+ const L = x.value[h(b.id)];
2676
2666
  L.status = o.DONE, L.statusName = s("Done");
2677
2667
  }), f.on("upload-error", (b, L) => {
2678
- const O = w.value[h(b.id)];
2668
+ const O = x.value[h(b.id)];
2679
2669
  O.percent = null, O.status = o.ERROR, L.isNetworkError ? O.statusName = s("Network Error, Unable establish connection to the server or interrupted.") : O.statusName = L ? L.message : s("Unknown Error");
2680
2670
  }), f.on("error", (b) => {
2681
- y.value = b.message, E.value = !1, e.emitter.emit("vf-fetch", {
2671
+ C.value = b.message, E.value = !1, e.emitter.emit("vf-fetch", {
2682
2672
  params: { q: "index", adapter: e.data.adapter, path: e.data.dirname },
2683
2673
  noCloseModal: !0
2684
2674
  });
@@ -2692,9 +2682,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2692
2682
  }), g.value.addEventListener("click", () => {
2693
2683
  l.value.click();
2694
2684
  }), _.value.addEventListener("dragover", (b) => {
2695
- b.preventDefault(), $.value = !0;
2685
+ b.preventDefault(), w.value = !0;
2696
2686
  }), _.value.addEventListener("dragleave", (b) => {
2697
- b.preventDefault(), $.value = !1;
2687
+ b.preventDefault(), w.value = !1;
2698
2688
  });
2699
2689
  function j(b, L) {
2700
2690
  L.isFile && L.file((O) => b(L, O)), L.isDirectory && L.createReader().readEntries((O) => {
@@ -2704,7 +2694,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2704
2694
  });
2705
2695
  }
2706
2696
  _.value.addEventListener("drop", (b) => {
2707
- b.preventDefault(), $.value = !1;
2697
+ b.preventDefault(), w.value = !1;
2708
2698
  const L = /^[/\\](.+)/;
2709
2699
  [...b.dataTransfer.items].forEach((O) => {
2710
2700
  O.kind === "file" && j((X, ue) => {
@@ -2729,7 +2719,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2729
2719
  class: z(["vf-btn vf-btn-primary", E.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500"]),
2730
2720
  disabled: E.value,
2731
2721
  onClick: Y(se, ["prevent"])
2732
- }, v(a(s)("Upload")), 11, sn),
2722
+ }, v(a(s)("Upload")), 11, en),
2733
2723
  E.value ? (n(), m("button", {
2734
2724
  key: 0,
2735
2725
  type: "button",
@@ -2743,18 +2733,18 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2743
2733
  }, v(a(s)("Close")), 1))
2744
2734
  ]),
2745
2735
  default: A(() => [
2746
- t("div", Vr, [
2747
- Nr,
2748
- t("div", Br, [
2749
- t("h3", zr, v(a(s)("Upload Files")), 1),
2750
- t("div", Ur, [
2736
+ t("div", Fr, [
2737
+ Or,
2738
+ t("div", Vr, [
2739
+ t("h3", Nr, v(a(s)("Upload Files")), 1),
2740
+ t("div", Br, [
2751
2741
  t("div", {
2752
2742
  ref_key: "dropArea",
2753
2743
  ref: _,
2754
2744
  class: "flex items-center justify-center text-lg mb-4 text-gray-500 border-2 border-gray-300 rounded border-dashed select-none cursor-pointer dark:border-gray-600 h-[120px]",
2755
2745
  onClick: te
2756
2746
  }, [
2757
- $.value ? (n(), m("div", Hr, v(a(s)("Release to drop these files.")), 1)) : (n(), m("div", Rr, v(a(s)("Drag and drop the files/folders to here or click here.")), 1))
2747
+ w.value ? (n(), m("div", zr, v(a(s)("Release to drop these files.")), 1)) : (n(), m("div", Ur, v(a(s)("Drag and drop the files/folders to here or click here.")), 1))
2758
2748
  ], 512),
2759
2749
  t("div", {
2760
2750
  ref_key: "container",
@@ -2777,34 +2767,34 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2777
2767
  type: "button",
2778
2768
  class: "vf-btn vf-btn-secondary",
2779
2769
  disabled: E.value,
2780
- onClick: S[0] || (S[0] = (b) => x(!1))
2781
- }, v(a(s)("Clear all")), 9, qr),
2770
+ onClick: S[0] || (S[0] = (b) => y(!1))
2771
+ }, v(a(s)("Clear all")), 9, Hr),
2782
2772
  t("button", {
2783
2773
  type: "button",
2784
2774
  class: "vf-btn vf-btn-secondary",
2785
2775
  disabled: E.value,
2786
- onClick: S[1] || (S[1] = (b) => x(!0))
2787
- }, v(a(s)("Clear only successful")), 9, Ir)
2776
+ onClick: S[1] || (S[1] = (b) => y(!0))
2777
+ }, v(a(s)("Clear only successful")), 9, Rr)
2788
2778
  ], 512),
2789
- t("div", Pr, [
2790
- (n(!0), m(U, null, I(w.value, (b) => (n(), m("div", {
2779
+ t("div", qr, [
2780
+ (n(!0), m(U, null, I(x.value, (b) => (n(), m("div", {
2791
2781
  class: "flex hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-300",
2792
2782
  key: b.id
2793
2783
  }, [
2794
- t("span", Wr, [
2784
+ t("span", Ir, [
2795
2785
  t("span", {
2796
2786
  class: z(["text-base m-auto", R(b)]),
2797
2787
  textContent: v(K(b))
2798
- }, null, 10, Gr)
2788
+ }, null, 10, Pr)
2799
2789
  ]),
2800
- t("div", Yr, [
2801
- t("div", Kr, v(a(he)(b.name, 40)) + " (" + v(b.size) + ")", 1),
2802
- t("div", Jr, v(a(he)(b.name, 16)) + " (" + v(b.size) + ")", 1),
2790
+ t("div", Wr, [
2791
+ t("div", Gr, v(a(he)(b.name, 40)) + " (" + v(b.size) + ")", 1),
2792
+ t("div", Yr, v(a(he)(b.name, 16)) + " (" + v(b.size) + ")", 1),
2803
2793
  t("div", {
2804
2794
  class: z(["flex break-all text-left", R(b)])
2805
2795
  }, [
2806
2796
  V(v(b.statusName) + " ", 1),
2807
- b.status === i.value.QUEUE_ENTRY_STATUS.UPLOADING ? (n(), m("b", Xr, v(b.percent), 1)) : M("", !0)
2797
+ b.status === i.value.QUEUE_ENTRY_STATUS.UPLOADING ? (n(), m("b", Kr, v(b.percent), 1)) : M("", !0)
2808
2798
  ], 2)
2809
2799
  ]),
2810
2800
  t("button", {
@@ -2813,17 +2803,17 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2813
2803
  title: a(s)("Delete"),
2814
2804
  disabled: E.value,
2815
2805
  onClick: (L) => oe(b)
2816
- }, en, 10, Qr)
2806
+ }, Qr, 10, Jr)
2817
2807
  ]))), 128)),
2818
- w.value.length ? M("", !0) : (n(), m("div", tn, v(a(s)("No files selected!")), 1))
2808
+ x.value.length ? M("", !0) : (n(), m("div", Zr, v(a(s)("No files selected!")), 1))
2819
2809
  ]),
2820
- y.value.length ? (n(), T(G, {
2810
+ C.value.length ? (n(), T(G, {
2821
2811
  key: 0,
2822
- onHidden: S[2] || (S[2] = (b) => y.value = ""),
2812
+ onHidden: S[2] || (S[2] = (b) => C.value = ""),
2823
2813
  error: ""
2824
2814
  }, {
2825
2815
  default: A(() => [
2826
- V(v(y.value), 1)
2816
+ V(v(C.value), 1)
2827
2817
  ]),
2828
2818
  _: 1
2829
2819
  })) : M("", !0)
@@ -2849,7 +2839,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2849
2839
  _: 1
2850
2840
  }));
2851
2841
  }
2852
- }), rn = { class: "sm:flex sm:items-start" }, nn = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2842
+ }), an = { class: "sm:flex sm:items-start" }, on = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2853
2843
  /* @__PURE__ */ t("svg", {
2854
2844
  xmlns: "http://www.w3.org/2000/svg",
2855
2845
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -2864,13 +2854,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2864
2854
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
2865
2855
  })
2866
2856
  ])
2867
- ], -1), ln = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, dn = {
2857
+ ], -1), rn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, nn = {
2868
2858
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2869
2859
  id: "modal-title"
2870
- }, cn = { class: "mt-2" }, un = {
2860
+ }, ln = { class: "mt-2" }, dn = {
2871
2861
  class: "text-gray-500 text-sm mb-1 overflow-auto vf-scrollbar",
2872
2862
  style: { "max-height": "200px" }
2873
- }, mn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, vn = {
2863
+ }, cn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, un = {
2874
2864
  key: 0,
2875
2865
  xmlns: "http://www.w3.org/2000/svg",
2876
2866
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -2878,13 +2868,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2878
2868
  viewBox: "0 0 24 24",
2879
2869
  stroke: "currentColor",
2880
2870
  "stroke-width": "1"
2881
- }, pn = /* @__PURE__ */ t("path", {
2871
+ }, mn = /* @__PURE__ */ t("path", {
2882
2872
  "stroke-linecap": "round",
2883
2873
  "stroke-linejoin": "round",
2884
2874
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
2885
- }, null, -1), hn = [
2886
- pn
2887
- ], fn = {
2875
+ }, null, -1), vn = [
2876
+ mn
2877
+ ], pn = {
2888
2878
  key: 1,
2889
2879
  xmlns: "http://www.w3.org/2000/svg",
2890
2880
  class: "h-5 w-5 text-neutral-500",
@@ -2892,15 +2882,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2892
2882
  viewBox: "0 0 24 24",
2893
2883
  stroke: "currentColor",
2894
2884
  "stroke-width": "1"
2895
- }, gn = /* @__PURE__ */ t("path", {
2885
+ }, hn = /* @__PURE__ */ t("path", {
2896
2886
  "stroke-linecap": "round",
2897
2887
  "stroke-linejoin": "round",
2898
2888
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
2899
- }, null, -1), _n = [
2900
- gn
2901
- ], kn = { class: "ml-1.5" }, bn = ["placeholder"], yn = {
2889
+ }, null, -1), fn = [
2890
+ hn
2891
+ ], gn = { class: "ml-1.5" }, _n = ["placeholder"], kn = {
2902
2892
  name: "VFModalArchive"
2903
- }, xn = /* @__PURE__ */ Object.assign(yn, {
2893
+ }, bn = /* @__PURE__ */ Object.assign(kn, {
2904
2894
  setup(p) {
2905
2895
  const e = F("ServiceContainer");
2906
2896
  e.storage;
@@ -2938,15 +2928,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2938
2928
  }, v(a(s)("Cancel")), 1)
2939
2929
  ]),
2940
2930
  default: A(() => [
2941
- t("div", rn, [
2942
- nn,
2943
- t("div", ln, [
2944
- t("h3", dn, v(a(s)("Archive the files")), 1),
2945
- t("div", cn, [
2946
- t("div", un, [
2947
- (n(!0), m(U, null, I(i.value, (c) => (n(), m("p", mn, [
2948
- c.type === "dir" ? (n(), m("svg", vn, hn)) : (n(), m("svg", fn, _n)),
2949
- t("span", kn, v(c.basename), 1)
2931
+ t("div", an, [
2932
+ on,
2933
+ t("div", rn, [
2934
+ t("h3", nn, v(a(s)("Archive the files")), 1),
2935
+ t("div", ln, [
2936
+ t("div", dn, [
2937
+ (n(!0), m(U, null, I(i.value, (c) => (n(), m("p", cn, [
2938
+ c.type === "dir" ? (n(), m("svg", un, vn)) : (n(), m("svg", pn, fn)),
2939
+ t("span", gn, v(c.basename), 1)
2950
2940
  ]))), 256))
2951
2941
  ]),
2952
2942
  q(t("input", {
@@ -2955,7 +2945,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2955
2945
  class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
2956
2946
  placeholder: a(s)("Archive name. (.zip file will be created)"),
2957
2947
  type: "text"
2958
- }, null, 40, bn), [
2948
+ }, null, 40, _n), [
2959
2949
  [Z, r.value]
2960
2950
  ]),
2961
2951
  o.value.length ? (n(), T(G, {
@@ -2975,7 +2965,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2975
2965
  _: 1
2976
2966
  }));
2977
2967
  }
2978
- }), wn = { class: "sm:flex sm:items-start" }, $n = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2968
+ }), yn = { class: "sm:flex sm:items-start" }, xn = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
2979
2969
  /* @__PURE__ */ t("svg", {
2980
2970
  xmlns: "http://www.w3.org/2000/svg",
2981
2971
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -2990,10 +2980,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
2990
2980
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
2991
2981
  })
2992
2982
  ])
2993
- ], -1), Cn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Sn = {
2983
+ ], -1), wn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $n = {
2994
2984
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
2995
2985
  id: "modal-title"
2996
- }, Mn = { class: "mt-2" }, En = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Dn = {
2986
+ }, Cn = { class: "mt-2" }, Sn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Mn = {
2997
2987
  key: 0,
2998
2988
  xmlns: "http://www.w3.org/2000/svg",
2999
2989
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -3001,13 +2991,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3001
2991
  viewBox: "0 0 24 24",
3002
2992
  stroke: "currentColor",
3003
2993
  "stroke-width": "1"
3004
- }, jn = /* @__PURE__ */ t("path", {
2994
+ }, En = /* @__PURE__ */ t("path", {
3005
2995
  "stroke-linecap": "round",
3006
2996
  "stroke-linejoin": "round",
3007
2997
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
3008
- }, null, -1), An = [
3009
- jn
3010
- ], Ln = {
2998
+ }, null, -1), Dn = [
2999
+ En
3000
+ ], jn = {
3011
3001
  key: 1,
3012
3002
  xmlns: "http://www.w3.org/2000/svg",
3013
3003
  class: "h-5 w-5 text-neutral-500",
@@ -3015,15 +3005,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3015
3005
  viewBox: "0 0 24 24",
3016
3006
  stroke: "currentColor",
3017
3007
  "stroke-width": "1"
3018
- }, Tn = /* @__PURE__ */ t("path", {
3008
+ }, An = /* @__PURE__ */ t("path", {
3019
3009
  "stroke-linecap": "round",
3020
3010
  "stroke-linejoin": "round",
3021
3011
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
3022
- }, null, -1), Fn = [
3023
- Tn
3024
- ], On = { class: "ml-1.5" }, Vn = { class: "my-1 text-sm text-gray-500" }, Nn = {
3012
+ }, null, -1), Ln = [
3013
+ An
3014
+ ], Tn = { class: "ml-1.5" }, Fn = { class: "my-1 text-sm text-gray-500" }, On = {
3025
3015
  name: "VFModalUnarchive"
3026
- }, Bn = /* @__PURE__ */ Object.assign(Nn, {
3016
+ }, Vn = /* @__PURE__ */ Object.assign(On, {
3027
3017
  setup(p) {
3028
3018
  const e = F("ServiceContainer");
3029
3019
  e.storage;
@@ -3062,16 +3052,16 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3062
3052
  }, v(a(s)("Cancel")), 1)
3063
3053
  ]),
3064
3054
  default: A(() => [
3065
- t("div", wn, [
3066
- $n,
3067
- t("div", Cn, [
3068
- t("h3", Sn, v(a(s)("Unarchive")), 1),
3069
- t("div", Mn, [
3070
- (n(!0), m(U, null, I(i.value, (c) => (n(), m("p", En, [
3071
- c.type === "dir" ? (n(), m("svg", Dn, An)) : (n(), m("svg", Ln, Fn)),
3072
- t("span", On, v(c.basename), 1)
3055
+ t("div", yn, [
3056
+ xn,
3057
+ t("div", wn, [
3058
+ t("h3", $n, v(a(s)("Unarchive")), 1),
3059
+ t("div", Cn, [
3060
+ (n(!0), m(U, null, I(i.value, (c) => (n(), m("p", Sn, [
3061
+ c.type === "dir" ? (n(), m("svg", Mn, Dn)) : (n(), m("svg", jn, Ln)),
3062
+ t("span", Tn, v(c.basename), 1)
3073
3063
  ]))), 256)),
3074
- t("p", Vn, v(a(s)("The archive will be unarchived at")) + " (" + v(d.current.dirname) + ")", 1),
3064
+ t("p", Fn, v(a(s)("The archive will be unarchived at")) + " (" + v(d.current.dirname) + ")", 1),
3075
3065
  o.value.length ? (n(), T(G, {
3076
3066
  key: 0,
3077
3067
  onHidden: l[0] || (l[0] = (c) => o.value = ""),
@@ -3089,7 +3079,7 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3089
3079
  _: 1
3090
3080
  }));
3091
3081
  }
3092
- }), zn = { class: "sm:flex sm:items-start" }, Un = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3082
+ }), Nn = { class: "sm:flex sm:items-start" }, Bn = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3093
3083
  /* @__PURE__ */ t("svg", {
3094
3084
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
3095
3085
  xmlns: "http://www.w3.org/2000/svg",
@@ -3105,10 +3095,10 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3105
3095
  d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
3106
3096
  })
3107
3097
  ])
3108
- ], -1), Hn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Rn = {
3098
+ ], -1), zn = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Un = {
3109
3099
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3110
3100
  id: "modal-title"
3111
- }, qn = { class: "text-sm text-gray-500 pb-1" }, In = { class: "max-h-[200px] overflow-y-auto vf-scrollbar text-left" }, Pn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Wn = {
3101
+ }, Hn = { class: "text-sm text-gray-500 pb-1" }, Rn = { class: "max-h-[200px] overflow-y-auto vf-scrollbar text-left" }, qn = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, In = {
3112
3102
  key: 0,
3113
3103
  xmlns: "http://www.w3.org/2000/svg",
3114
3104
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -3116,13 +3106,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3116
3106
  viewBox: "0 0 24 24",
3117
3107
  stroke: "currentColor",
3118
3108
  "stroke-width": "1"
3119
- }, Gn = /* @__PURE__ */ t("path", {
3109
+ }, Pn = /* @__PURE__ */ t("path", {
3120
3110
  "stroke-linecap": "round",
3121
3111
  "stroke-linejoin": "round",
3122
3112
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
3123
- }, null, -1), Yn = [
3124
- Gn
3125
- ], Kn = {
3113
+ }, null, -1), Wn = [
3114
+ Pn
3115
+ ], Gn = {
3126
3116
  key: 1,
3127
3117
  xmlns: "http://www.w3.org/2000/svg",
3128
3118
  class: "h-5 w-5 text-neutral-500",
@@ -3130,13 +3120,13 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3130
3120
  viewBox: "0 0 24 24",
3131
3121
  stroke: "currentColor",
3132
3122
  "stroke-width": "1"
3133
- }, Jn = /* @__PURE__ */ t("path", {
3123
+ }, Yn = /* @__PURE__ */ t("path", {
3134
3124
  "stroke-linecap": "round",
3135
3125
  "stroke-linejoin": "round",
3136
3126
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
3137
- }, null, -1), Xn = [
3138
- Jn
3139
- ], Qn = { class: "ml-1.5" }, Zn = { class: "font-bold text-xs text-gray-700 dark:text-gray-500 mt-3 tracking-wider" }, el = { class: "flex text-sm text-gray-800 dark:text-gray-400 border dark:border-gray-700 p-1 rounded" }, tl = /* @__PURE__ */ t("svg", {
3127
+ }, null, -1), Kn = [
3128
+ Yn
3129
+ ], Jn = { class: "ml-1.5" }, Xn = { class: "font-bold text-xs text-gray-700 dark:text-gray-500 mt-3 tracking-wider" }, Qn = { class: "flex text-sm text-gray-800 dark:text-gray-400 border dark:border-gray-700 p-1 rounded" }, Zn = /* @__PURE__ */ t("svg", {
3140
3130
  xmlns: "http://www.w3.org/2000/svg",
3141
3131
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
3142
3132
  fill: "none",
@@ -3149,9 +3139,9 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3149
3139
  "stroke-linejoin": "round",
3150
3140
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
3151
3141
  })
3152
- ], -1), sl = { class: "ml-1.5 overflow-auto" }, al = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, ol = {
3142
+ ], -1), el = { class: "ml-1.5 overflow-auto" }, tl = { class: "m-1 mr-auto font-bold text-gray-500 text-sm dark:text-gray-200 self-center" }, sl = {
3153
3143
  name: "VFModalMove"
3154
- }, rl = /* @__PURE__ */ Object.assign(ol, {
3144
+ }, al = /* @__PURE__ */ Object.assign(sl, {
3155
3145
  setup(p) {
3156
3146
  const e = F("ServiceContainer"), { t: s } = e.i18n;
3157
3147
  e.storage;
@@ -3187,26 +3177,26 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3187
3177
  onClick: d[1] || (d[1] = (l) => a(e).emitter.emit("vf-modal-close")),
3188
3178
  class: "vf-btn vf-btn-secondary"
3189
3179
  }, v(a(s)("Cancel")), 1),
3190
- t("div", al, v(a(s)("%s item(s) selected.", r.value.length)), 1)
3180
+ t("div", tl, v(a(s)("%s item(s) selected.", r.value.length)), 1)
3191
3181
  ]),
3192
3182
  default: A(() => [
3193
- t("div", zn, [
3194
- Un,
3195
- t("div", Hn, [
3196
- t("h3", Rn, v(a(s)("Move files")), 1),
3197
- t("p", qn, v(a(s)("Are you sure you want to move these files?")), 1),
3198
- t("div", In, [
3199
- (n(!0), m(U, null, I(r.value, (l) => (n(), m("div", Pn, [
3183
+ t("div", Nn, [
3184
+ Bn,
3185
+ t("div", zn, [
3186
+ t("h3", Un, v(a(s)("Move files")), 1),
3187
+ t("p", Hn, v(a(s)("Are you sure you want to move these files?")), 1),
3188
+ t("div", Rn, [
3189
+ (n(!0), m(U, null, I(r.value, (l) => (n(), m("div", qn, [
3200
3190
  t("div", null, [
3201
- l.type === "dir" ? (n(), m("svg", Wn, Yn)) : (n(), m("svg", Kn, Xn))
3191
+ l.type === "dir" ? (n(), m("svg", In, Wn)) : (n(), m("svg", Gn, Kn))
3202
3192
  ]),
3203
- t("div", Qn, v(l.path), 1)
3193
+ t("div", Jn, v(l.path), 1)
3204
3194
  ]))), 256))
3205
3195
  ]),
3206
- t("h4", Zn, v(a(s)("Target Directory")), 1),
3207
- t("p", el, [
3208
- tl,
3209
- t("span", sl, v(a(e).modal.data.items.to.path), 1)
3196
+ t("h4", Xn, v(a(s)("Target Directory")), 1),
3197
+ t("p", Qn, [
3198
+ Zn,
3199
+ t("span", el, v(a(e).modal.data.items.to.path), 1)
3210
3200
  ]),
3211
3201
  o.value.length ? (n(), T(G, {
3212
3202
  key: 0,
@@ -3224,12 +3214,12 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3224
3214
  _: 1
3225
3215
  }));
3226
3216
  }
3227
- }), nl = (p, e) => {
3217
+ }), ol = (p, e) => {
3228
3218
  const s = p.__vccOpts || p;
3229
3219
  for (const [r, o] of e)
3230
3220
  s[r] = o;
3231
3221
  return s;
3232
- }, ll = {
3222
+ }, rl = {
3233
3223
  props: {
3234
3224
  on: { type: String, required: !0 }
3235
3225
  },
@@ -3250,15 +3240,15 @@ const ys = { class: "relative flex-auto flex flex-col overflow-hidden" }, xs = {
3250
3240
  t: i
3251
3241
  };
3252
3242
  }
3253
- }, il = { key: 1 };
3254
- function dl(p, e, s, r, o, i) {
3243
+ }, nl = { key: 1 };
3244
+ function ll(p, e, s, r, o, i) {
3255
3245
  return n(), m("div", {
3256
3246
  class: z(["text-sm text-green-600 dark:text-green-600 transition-opacity duration-500 ease-out", [{ "opacity-0": !r.shown }]])
3257
3247
  }, [
3258
- p.$slots.default ? le(p.$slots, "default", { key: 0 }) : (n(), m("span", il, v(r.t("Saved.")), 1))
3248
+ p.$slots.default ? le(p.$slots, "default", { key: 0 }) : (n(), m("span", nl, v(r.t("Saved.")), 1))
3259
3249
  ], 2);
3260
3250
  }
3261
- const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:items-start" }, ul = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3251
+ const ve = /* @__PURE__ */ ol(rl, [["render", ll]]), il = { class: "sm:flex sm:items-start" }, dl = /* @__PURE__ */ t("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3262
3252
  /* @__PURE__ */ t("svg", {
3263
3253
  xmlns: "http://www.w3.org/2000/svg",
3264
3254
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
@@ -3278,34 +3268,34 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3278
3268
  d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
3279
3269
  })
3280
3270
  ])
3281
- ], -1), ml = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, vl = {
3271
+ ], -1), cl = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, ul = {
3282
3272
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3283
3273
  id: "modal-title"
3284
- }, pl = { class: "mt-2" }, hl = { class: "text-sm text-gray-500" }, fl = { class: "text-sm font-semibold mt-5 text-gray-900 dark:text-gray-400 tracking-wider" }, gl = { class: "mt-3 text-left" }, _l = { class: "space-y-2" }, kl = { class: "flex relative gap-x-3" }, bl = { class: "h-6 items-center" }, yl = { class: "flex-1 block text-sm" }, xl = {
3274
+ }, ml = { class: "mt-2" }, vl = { class: "text-sm text-gray-500" }, pl = { class: "text-sm font-semibold mt-5 text-gray-900 dark:text-gray-400 tracking-wider" }, hl = { class: "mt-3 text-left" }, fl = { class: "space-y-2" }, gl = { class: "flex relative gap-x-3" }, _l = { class: "h-6 items-center" }, kl = { class: "flex-1 block text-sm" }, bl = {
3285
3275
  for: "metric_unit",
3286
3276
  class: "flex w-full font-medium text-gray-900 dark:text-gray-400"
3287
- }, wl = { class: "flex relative gap-x-3" }, $l = { class: "h-6 items-center" }, Cl = {
3277
+ }, yl = { class: "flex relative gap-x-3" }, xl = { class: "h-6 items-center" }, wl = {
3288
3278
  for: "theme",
3289
3279
  class: "flex w-full font-medium text-gray-900 dark:text-gray-400 text-sm"
3290
- }, Sl = { class: "flex text-sm" }, Ml = ["label"], El = ["value"], Dl = {
3280
+ }, $l = { class: "flex text-sm" }, Cl = ["label"], Sl = ["value"], Ml = {
3291
3281
  key: 0,
3292
3282
  class: "flex relative gap-x-3"
3293
- }, jl = { class: "h-6 items-center" }, Al = {
3283
+ }, El = { class: "h-6 items-center" }, Dl = {
3294
3284
  for: "language",
3295
3285
  class: "flex w-full font-medium text-gray-900 dark:text-gray-400 text-sm text-nowrap"
3296
- }, Ll = { class: "flex text-sm" }, Tl = ["label"], Fl = ["value"], Ol = {
3286
+ }, jl = { class: "flex text-sm" }, Al = ["label"], Ll = ["value"], Tl = {
3297
3287
  name: "VFModalAbout"
3298
- }, Vl = /* @__PURE__ */ Object.assign(Ol, {
3288
+ }, Fl = /* @__PURE__ */ Object.assign(Tl, {
3299
3289
  setup(p) {
3300
3290
  const e = F("ServiceContainer"), { getStore: s, setStore: r, clearStore: o } = e.storage, { t: i, changeLocale: u, locale: d } = e.i18n;
3301
3291
  k(""), k("");
3302
3292
  const l = async () => {
3303
3293
  o(), location.reload();
3304
- }, c = ($) => {
3305
- e.theme.set($), e.emitter.emit("vf-theme-saved");
3294
+ }, c = (w) => {
3295
+ e.theme.set(w), e.emitter.emit("vf-theme-saved");
3306
3296
  }, g = () => {
3307
3297
  e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? xe : ye, r("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
3308
- }, { i18n: _ } = F("VueFinderOptions"), y = Object.fromEntries(
3298
+ }, { i18n: _ } = F("VueFinderOptions"), C = Object.fromEntries(
3309
3299
  Object.entries({
3310
3300
  en: "English",
3311
3301
  fr: "French (Français)",
@@ -3318,13 +3308,13 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3318
3308
  tr: "Turkish (Türkçe)",
3319
3309
  zhCN: "Simplified Chinese (简体中文)",
3320
3310
  zhTW: "Traditional Chinese (繁體中文)"
3321
- }).filter(([$]) => Object.keys(_).includes($))
3311
+ }).filter(([w]) => Object.keys(_).includes(w))
3322
3312
  ), E = ee(() => ({
3323
3313
  system: i("System"),
3324
3314
  light: i("Light"),
3325
3315
  dark: i("Dark")
3326
3316
  }));
3327
- return ($, f) => (n(), T(W, null, {
3317
+ return (w, f) => (n(), T(W, null, {
3328
3318
  buttons: A(() => [
3329
3319
  t("button", {
3330
3320
  type: "button",
@@ -3333,20 +3323,20 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3333
3323
  }, v(a(i)("Close")), 1)
3334
3324
  ]),
3335
3325
  default: A(() => [
3336
- t("div", cl, [
3337
- ul,
3338
- t("div", ml, [
3339
- t("h3", vl, v(a(i)("About %s", "Vuefinder " + a(e).version)), 1),
3340
- t("div", pl, [
3341
- t("p", hl, v(a(i)("Vuefinder is a file manager component for vue 3.")), 1),
3326
+ t("div", il, [
3327
+ dl,
3328
+ t("div", cl, [
3329
+ t("h3", ul, v(a(i)("About %s", "Vuefinder " + a(e).version)), 1),
3330
+ t("div", ml, [
3331
+ t("p", vl, v(a(i)("Vuefinder is a file manager component for vue 3.")), 1),
3342
3332
  t("div", null, [
3343
- t("h3", fl, v(a(i)("Settings")), 1)
3333
+ t("h3", pl, v(a(i)("Settings")), 1)
3344
3334
  ]),
3345
- t("div", gl, [
3335
+ t("div", hl, [
3346
3336
  t("fieldset", null, [
3347
- t("div", _l, [
3348
- t("div", kl, [
3349
- t("div", bl, [
3337
+ t("div", fl, [
3338
+ t("div", gl, [
3339
+ t("div", _l, [
3350
3340
  q(t("input", {
3351
3341
  id: "metric_unit",
3352
3342
  name: "metric_unit",
@@ -3358,8 +3348,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3358
3348
  [Fe, a(e).metricUnits]
3359
3349
  ])
3360
3350
  ]),
3361
- t("div", yl, [
3362
- t("label", xl, [
3351
+ t("div", kl, [
3352
+ t("label", bl, [
3363
3353
  V(v(a(i)("Use Metric Units")) + " ", 1),
3364
3354
  H(ve, {
3365
3355
  class: "ms-3",
@@ -3373,11 +3363,11 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3373
3363
  ])
3374
3364
  ])
3375
3365
  ]),
3376
- t("div", wl, [
3377
- t("div", $l, [
3378
- t("label", Cl, v(a(i)("Theme")), 1)
3366
+ t("div", yl, [
3367
+ t("div", xl, [
3368
+ t("label", wl, v(a(i)("Theme")), 1)
3379
3369
  ]),
3380
- t("div", Sl, [
3370
+ t("div", $l, [
3381
3371
  q(t("select", {
3382
3372
  id: "theme",
3383
3373
  "onUpdate:modelValue": f[1] || (f[1] = (h) => a(e).theme.value = h),
@@ -3387,8 +3377,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3387
3377
  t("optgroup", {
3388
3378
  label: a(i)("Theme")
3389
3379
  }, [
3390
- (n(!0), m(U, null, I(E.value, (h, N) => (n(), m("option", { value: N }, v(h), 9, El))), 256))
3391
- ], 8, Ml)
3380
+ (n(!0), m(U, null, I(E.value, (h, N) => (n(), m("option", { value: N }, v(h), 9, Sl))), 256))
3381
+ ], 8, Cl)
3392
3382
  ], 544), [
3393
3383
  [pe, a(e).theme.value]
3394
3384
  ]),
@@ -3403,11 +3393,11 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3403
3393
  })
3404
3394
  ])
3405
3395
  ]),
3406
- a(e).features.includes(a(B).LANGUAGE) && Object.keys(a(y)).length > 1 ? (n(), m("div", Dl, [
3407
- t("div", jl, [
3408
- t("label", Al, v(a(i)("Language")), 1)
3396
+ a(e).features.includes(a(B).LANGUAGE) && Object.keys(a(C)).length > 1 ? (n(), m("div", Ml, [
3397
+ t("div", El, [
3398
+ t("label", Dl, v(a(i)("Language")), 1)
3409
3399
  ]),
3410
- t("div", Ll, [
3400
+ t("div", jl, [
3411
3401
  q(t("select", {
3412
3402
  id: "language",
3413
3403
  "onUpdate:modelValue": f[3] || (f[3] = (h) => _e(d) ? d.value = h : null),
@@ -3417,8 +3407,8 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3417
3407
  t("optgroup", {
3418
3408
  label: a(i)("Language")
3419
3409
  }, [
3420
- (n(!0), m(U, null, I(a(y), (h, N) => (n(), m("option", { value: N }, v(h), 9, Fl))), 256))
3421
- ], 8, Tl)
3410
+ (n(!0), m(U, null, I(a(C), (h, N) => (n(), m("option", { value: N }, v(h), 9, Ll))), 256))
3411
+ ], 8, Al)
3422
3412
  ], 544), [
3423
3413
  [pe, a(d)]
3424
3414
  ]),
@@ -3448,26 +3438,26 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3448
3438
  _: 1
3449
3439
  }));
3450
3440
  }
3451
- }), Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3441
+ }), Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3452
3442
  __proto__: null,
3453
- ModalAbout: Vl,
3454
- ModalArchive: xn,
3455
- ModalDelete: oo,
3456
- ModalMessage: vo,
3457
- ModalMove: rl,
3458
- ModalNewFile: Ao,
3459
- ModalNewFolder: xo,
3460
- ModalPreview: br,
3461
- ModalRename: Or,
3462
- ModalUnarchive: Bn,
3463
- ModalUpload: on
3464
- }, Symbol.toStringTag, { value: "Module" })), Yl = {
3443
+ ModalAbout: Fl,
3444
+ ModalArchive: bn,
3445
+ ModalDelete: so,
3446
+ ModalMessage: uo,
3447
+ ModalMove: al,
3448
+ ModalNewFile: Do,
3449
+ ModalNewFolder: bo,
3450
+ ModalPreview: _r,
3451
+ ModalRename: Tr,
3452
+ ModalUnarchive: Vn,
3453
+ ModalUpload: sn
3454
+ }, Symbol.toStringTag, { value: "Module" })), Wl = {
3465
3455
  /** @param {import('vue').App} app
3466
3456
  * @param options
3467
3457
  */
3468
3458
  install(p, e = {}) {
3469
- p.component("VueFinder", Aa);
3470
- for (const r of Object.values(Nl))
3459
+ p.component("VueFinder", Da);
3460
+ for (const r of Object.values(Ol))
3471
3461
  p.component(r.name, r);
3472
3462
  e.i18n = e.i18n ?? {};
3473
3463
  let [s] = Object.keys(e.i18n);
@@ -3475,5 +3465,5 @@ const ve = /* @__PURE__ */ nl(ll, [["render", dl]]), cl = { class: "sm:flex sm:i
3475
3465
  }
3476
3466
  };
3477
3467
  export {
3478
- Yl as default
3468
+ Wl as default
3479
3469
  };