vuefinder 4.0.23 → 4.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vuefinder.js CHANGED
@@ -1,9 +1,9 @@
1
- import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as dn, computed as N, markRaw as Nn, defineComponent as X, onMounted as fe, nextTick as Ae, createElementBlock as g, openBlock as v, withKeys as ct, unref as s, createElementVNode as i, createCommentVNode as T, withModifiers as ie, renderSlot as $e, toDisplayString as y, createBlock as L, resolveDynamicComponent as cn, withCtx as oe, createVNode as O, Fragment as ve, renderList as he, withDirectives as pe, vModelCheckbox as mt, vModelText as ut, onUnmounted as ye, useTemplateRef as Ge, createTextVNode as de, resolveComponent as un, normalizeClass as Z, customRef as Un, Teleport as gt, normalizeStyle as Ve, isRef as jn, vModelSelect as Ft, onBeforeUnmount as vn, vModelRadio as St, mergeProps as Me, toHandlers as Re, vShow as Le, normalizeProps as Ne, guardReactiveProps as Ue, onUpdated as Hn, mergeModels as Kn, useModel as fn, Transition as qn, provide as Gn } from "vue";
1
+ import { inject as ft, reactive as ht, watch as le, ref as M, shallowRef as dn, computed as N, markRaw as Nn, defineComponent as X, onMounted as fe, nextTick as Ae, createElementBlock as g, openBlock as v, withKeys as ct, unref as s, createElementVNode as i, createCommentVNode as I, withModifiers as ae, renderSlot as $e, toDisplayString as y, createBlock as L, resolveDynamicComponent as cn, withCtx as se, createVNode as O, Fragment as ve, renderList as he, withDirectives as pe, vModelCheckbox as mt, vModelText as ut, onUnmounted as ye, useTemplateRef as Ge, createTextVNode as de, resolveComponent as un, normalizeClass as Z, customRef as Un, Teleport as gt, normalizeStyle as Ve, isRef as jn, vModelSelect as Ft, onBeforeUnmount as vn, vModelRadio as St, mergeProps as Me, toHandlers as Re, vShow as Le, normalizeProps as Ne, guardReactiveProps as Ue, onUpdated as Hn, mergeModels as Kn, useModel as fn, Transition as qn, provide as Gn } from "vue";
2
2
  import Wn from "mitt";
3
3
  import { toast as re, Toaster as Yn } from "vue-sonner";
4
4
  import { persistentAtom as Qn } from "@nanostores/persistent";
5
5
  import { atom as Se, computed as ze } from "nanostores";
6
- import { useStore as G } from "@nanostores/vue";
6
+ import { useStore as W } from "@nanostores/vue";
7
7
  import { QueryClient as Xn } from "@tanstack/vue-query";
8
8
  import Jn from "@uppy/core";
9
9
  import { Cropper as Zn } from "vue-advanced-cropper";
@@ -129,7 +129,7 @@ function Qt() {
129
129
  function hn(o) {
130
130
  return o ? o === "simple" || o === "advanced" ? { ...pn[o] } : { ...Qt(), ...o } : Qt();
131
131
  }
132
- const co = "4.0.23";
132
+ const co = "4.0.25";
133
133
  function It(o, e, t, n, a) {
134
134
  return e = Math, t = e.log, n = 1024, a = t(o) / t(n) | 0, (o / e.pow(n, a)).toFixed(0) + " " + (a ? "KMGTPEZY"[--a] + "iB" : "B");
135
135
  }
@@ -266,27 +266,27 @@ const mo = () => {
266
266
  path: "",
267
267
  items: /* @__PURE__ */ new Set()
268
268
  }), c = Se(null), _ = Se(0), m = Se(!1), w = Se([]), u = Se(-1), $ = ze([o], (V) => {
269
- const H = (V ?? "").trim(), Q = H.indexOf("://"), te = Q >= 0 ? H.slice(0, Q) : "", De = (Q >= 0 ? H.slice(Q + 3) : H).split("/").filter(Boolean);
269
+ const H = (V ?? "").trim(), Q = H.indexOf("://"), ne = Q >= 0 ? H.slice(0, Q) : "", De = (Q >= 0 ? H.slice(Q + 3) : H).split("/").filter(Boolean);
270
270
  let Ee = "";
271
271
  const Je = De.map((ke) => (Ee = Ee ? `${Ee}/${ke}` : ke, {
272
272
  basename: ke,
273
273
  name: ke,
274
- path: te ? `${te}://${Ee}` : Ee,
274
+ path: ne ? `${ne}://${Ee}` : Ee,
275
275
  type: "dir"
276
276
  }));
277
- return { storage: te, breadcrumb: Je, path: H };
277
+ return { storage: ne, breadcrumb: Je, path: H };
278
278
  }), D = ze([n, a, l], (V, H, Q) => {
279
- let te = V;
280
- Q.kind === "files" ? te = te.filter((ke) => ke.type === "file") : Q.kind === "folders" && (te = te.filter((ke) => ke.type === "dir")), Q.showHidden || (te = te.filter((ke) => !ke.basename.startsWith(".")));
279
+ let ne = V;
280
+ Q.kind === "files" ? ne = ne.filter((ke) => ke.type === "file") : Q.kind === "folders" && (ne = ne.filter((ke) => ke.type === "dir")), Q.showHidden || (ne = ne.filter((ke) => !ke.basename.startsWith(".")));
281
281
  const { active: Ie, column: De, order: Ee } = H;
282
- if (!Ie || !De) return te;
282
+ if (!Ie || !De) return ne;
283
283
  const Je = Ee === "asc" ? 1 : -1;
284
- return te.slice().sort((ke, Ze) => ho(ke[De], Ze[De]) * Je);
284
+ return ne.slice().sort((ke, Ze) => ho(ke[De], Ze[De]) * Je);
285
285
  }), S = ze([n, d], (V, H) => H.size === 0 ? [] : V.filter((Q) => H.has(Q.path))), p = (V, H) => {
286
286
  const Q = o.get();
287
287
  if ((H ?? !0) && Q !== V) {
288
- const te = w.get(), Ie = u.get();
289
- Ie < te.length - 1 && te.splice(Ie + 1), te.length === 0 && Q && te.push(Q), te.push(V), w.set([...te]), u.set(te.length - 1);
288
+ const ne = w.get(), Ie = u.get();
289
+ Ie < ne.length - 1 && ne.splice(Ie + 1), ne.length === 0 && Q && ne.push(Q), ne.push(V), w.set([...ne]), u.set(ne.length - 1);
290
290
  }
291
291
  o.set(V);
292
292
  }, h = (V) => {
@@ -317,8 +317,8 @@ const mo = () => {
317
317
  H === "single" && Q.clear(), Q.add(V), d.set(Q);
318
318
  }, R = (V, H = "multiple") => {
319
319
  const Q = new Set(d.get());
320
- H === "single" && Q.clear(), V.forEach((te) => Q.add(te)), d.set(Q);
321
- }, ne = (V) => {
320
+ H === "single" && Q.clear(), V.forEach((ne) => Q.add(ne)), d.set(Q);
321
+ }, oe = (V) => {
322
322
  const H = new Set(d.get());
323
323
  H.delete(V), d.set(H);
324
324
  }, U = (V) => d.get().has(V), ee = (V, H = "multiple") => {
@@ -328,18 +328,18 @@ const mo = () => {
328
328
  if (V === "single") {
329
329
  const Q = n.get()[0];
330
330
  if (Q) {
331
- const te = Q.path;
332
- d.set(/* @__PURE__ */ new Set([te])), _.set(1);
331
+ const ne = Q.path;
332
+ d.set(/* @__PURE__ */ new Set([ne])), _.set(1);
333
333
  }
334
334
  } else {
335
335
  if (H?.selectionFilterType || H?.selectionFilterMimeIncludes && H.selectionFilterMimeIncludes.length > 0) {
336
- const Q = n.get().filter((te) => {
336
+ const Q = n.get().filter((ne) => {
337
337
  const Ie = H.selectionFilterType, De = H.selectionFilterMimeIncludes;
338
- return Ie === "files" && te.type === "dir" || Ie === "dirs" && te.type === "file" ? !1 : De && Array.isArray(De) && De.length > 0 && te.type !== "dir" ? te.mime_type ? De.some((Ee) => te.mime_type?.startsWith(Ee)) : !1 : !0;
339
- }).map((te) => te.path);
338
+ return Ie === "files" && ne.type === "dir" || Ie === "dirs" && ne.type === "file" ? !1 : De && Array.isArray(De) && De.length > 0 && ne.type !== "dir" ? ne.mime_type ? De.some((Ee) => ne.mime_type?.startsWith(Ee)) : !1 : !0;
339
+ }).map((ne) => ne.path);
340
340
  d.set(new Set(Q));
341
341
  } else {
342
- const Q = new Set(n.get().map((te) => te.path));
342
+ const Q = new Set(n.get().map((ne) => ne.path));
343
343
  d.set(Q);
344
344
  }
345
345
  z(d.get().size);
@@ -354,18 +354,18 @@ const mo = () => {
354
354
  }, x = (V) => {
355
355
  m.set(!!V);
356
356
  }, b = () => m.get(), P = (V, H) => {
357
- const Q = n.get().filter((te) => H.has(te.path));
357
+ const Q = n.get().filter((ne) => H.has(ne.path));
358
358
  r.set({
359
359
  type: V,
360
360
  path: $.get().path,
361
361
  items: new Set(Q)
362
362
  });
363
- }, I = (V) => ze([r], (H) => H.type === "cut" && Array.from(H.items).some((Q) => Q.path === V)), W = (V) => ze([r], (H) => H.type === "copy" && Array.from(H.items).some((Q) => Q.path === V)), se = (V) => {
364
- const H = I(V);
365
- return G(H).value ?? !1;
366
- }, ae = (V) => {
367
- const H = W(V);
368
- return G(H).value ?? !1;
363
+ }, T = (V) => ze([r], (H) => H.type === "cut" && Array.from(H.items).some((Q) => Q.path === V)), G = (V) => ze([r], (H) => H.type === "copy" && Array.from(H.items).some((Q) => Q.path === V)), te = (V) => {
364
+ const H = T(V);
365
+ return W(H).value ?? !1;
366
+ }, ie = (V) => {
367
+ const H = G(V);
368
+ return W(H).value ?? !1;
369
369
  }, _e = () => {
370
370
  r.set({ type: "copy", path: "", items: /* @__PURE__ */ new Set() });
371
371
  }, Ke = () => r.get(), je = (V) => {
@@ -375,14 +375,14 @@ const mo = () => {
375
375
  }, ce = () => {
376
376
  const V = w.get(), H = u.get();
377
377
  if (H > 0) {
378
- const Q = H - 1, te = V[Q];
379
- te && (u.set(Q), p(te, !1));
378
+ const Q = H - 1, ne = V[Q];
379
+ ne && (u.set(Q), p(ne, !1));
380
380
  }
381
381
  }, ue = () => {
382
382
  const V = w.get(), H = u.get();
383
383
  if (H < V.length - 1) {
384
- const Q = H + 1, te = V[Q];
385
- te && (u.set(Q), p(te, !1));
384
+ const Q = H + 1, ne = V[Q];
385
+ ne && (u.set(Q), p(ne, !1));
386
386
  }
387
387
  }, be = ze([u], (V) => V > 0), Qe = ze(
388
388
  [w, u],
@@ -415,7 +415,7 @@ const mo = () => {
415
415
  clearFilter: B,
416
416
  select: Y,
417
417
  selectMultiple: R,
418
- deselect: ne,
418
+ deselect: oe,
419
419
  toggleSelect: ee,
420
420
  selectAll: E,
421
421
  isSelected: U,
@@ -425,10 +425,10 @@ const mo = () => {
425
425
  setLoading: x,
426
426
  isLoading: b,
427
427
  setClipboard: P,
428
- createIsCut: I,
429
- createIsCopied: W,
430
- isCut: se,
431
- isCopied: ae,
428
+ createIsCut: T,
429
+ createIsCopied: G,
430
+ isCut: te,
431
+ isCopied: ie,
432
432
  clearClipboard: _e,
433
433
  getClipboard: Ke,
434
434
  setDraggedItem: je,
@@ -1652,7 +1652,7 @@ class go {
1652
1652
  }
1653
1653
  }
1654
1654
  function wo(o) {
1655
- const e = G(o.state);
1655
+ const e = W(o.state);
1656
1656
  return {
1657
1657
  current: N(() => e.value.theme || "silver"),
1658
1658
  set: (a) => {
@@ -1764,7 +1764,7 @@ const yo = (o, e) => {
1764
1764
  i("div", {
1765
1765
  class: "vuefinder__modal-layout__wrapper",
1766
1766
  onContextmenu: a,
1767
- onMousedown: d[0] || (d[0] = ie((r) => s(t).modal.close(), ["self"]))
1767
+ onMousedown: d[0] || (d[0] = ae((r) => s(t).modal.close(), ["self"]))
1768
1768
  }, [
1769
1769
  i("div", {
1770
1770
  ref_key: "modalBody",
@@ -1776,13 +1776,13 @@ const yo = (o, e) => {
1776
1776
  ]),
1777
1777
  l.$slots.buttons ? (v(), g("div", xo, [
1778
1778
  $e(l.$slots, "buttons")
1779
- ])) : T("", !0)
1779
+ ])) : I("", !0)
1780
1780
  ], 512)
1781
1781
  ], 32)
1782
1782
  ]),
1783
1783
  n.showDragOverlay ? (v(), g("div", So, [
1784
1784
  i("div", Co, y(n.dragOverlayText || "Drag and drop the files/folders to here."), 1)
1785
- ])) : T("", !0)
1785
+ ])) : I("", !0)
1786
1786
  ], 40, bo));
1787
1787
  }
1788
1788
  }), Fo = { class: "vuefinder__modal-header" }, Do = { class: "vuefinder__modal-header__icon-container" }, Po = {
@@ -1833,14 +1833,14 @@ const yn = { render: Mo }, To = { class: "vuefinder__about-modal__content" }, Io
1833
1833
  setup(o) {
1834
1834
  const e = J(), { t } = e.i18n;
1835
1835
  return (n, a) => (v(), L(Fe, null, {
1836
- buttons: oe(() => [
1836
+ buttons: se(() => [
1837
1837
  i("button", {
1838
1838
  type: "button",
1839
1839
  class: "vf-btn vf-btn-secondary",
1840
1840
  onClick: a[0] || (a[0] = (l) => s(e).modal.close())
1841
1841
  }, y(s(t)("Close")), 1)
1842
1842
  ]),
1843
- default: oe(() => [
1843
+ default: se(() => [
1844
1844
  i("div", To, [
1845
1845
  O(Pe, {
1846
1846
  icon: s(yn),
@@ -1906,7 +1906,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
1906
1906
  }, Zo = { class: "vuefinder__delete-modal__file-name" }, es = { class: "vuefinder__delete-modal__confirmation" }, ts = { class: "vuefinder__delete-modal__confirmation-label" }, ns = { class: "vuefinder__delete-modal__confirmation-text" }, os = ["disabled"], wt = /* @__PURE__ */ X({
1907
1907
  __name: "ModalDelete",
1908
1908
  setup(o) {
1909
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = M(e.modal.data.items), d = M(!1), r = () => {
1909
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(e.modal.data.items), d = M(!1), r = () => {
1910
1910
  l.value.length && d.value && e.adapter.delete({
1911
1911
  path: a.value.path,
1912
1912
  items: l.value.map(({ path: c, type: _ }) => ({
@@ -1920,7 +1920,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
1920
1920
  });
1921
1921
  };
1922
1922
  return (c, _) => (v(), L(Fe, null, {
1923
- buttons: oe(() => [
1923
+ buttons: se(() => [
1924
1924
  i("div", es, [
1925
1925
  i("label", ts, [
1926
1926
  pe(i("input", {
@@ -1945,7 +1945,7 @@ const kn = { render: qo }, Go = { class: "vuefinder__delete-modal__content" }, W
1945
1945
  onClick: _[1] || (_[1] = (m) => s(e).modal.close())
1946
1946
  }, y(s(t)("Cancel")), 1)
1947
1947
  ]),
1948
- default: oe(() => [
1948
+ default: se(() => [
1949
1949
  i("div", null, [
1950
1950
  O(Pe, {
1951
1951
  icon: s(kn),
@@ -2012,7 +2012,7 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
2012
2012
  }, us = { class: "vuefinder__rename-modal__item-name" }, yt = /* @__PURE__ */ X({
2013
2013
  __name: "ModalRename",
2014
2014
  setup(o) {
2015
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = M(e.modal.data.items[0]), d = M(l.value.basename), r = () => {
2015
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(e.modal.data.items[0]), d = M(l.value.basename), r = () => {
2016
2016
  d.value != l.value.basename && e.adapter.rename({
2017
2017
  path: a.value.path,
2018
2018
  item: l.value.path,
@@ -2024,7 +2024,7 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
2024
2024
  });
2025
2025
  };
2026
2026
  return (c, _) => (v(), L(Fe, null, {
2027
- buttons: oe(() => [
2027
+ buttons: se(() => [
2028
2028
  i("button", {
2029
2029
  type: "button",
2030
2030
  class: "vf-btn vf-btn-primary",
@@ -2036,7 +2036,7 @@ const $n = { render: is }, as = { class: "vuefinder__rename-modal__content" }, r
2036
2036
  onClick: _[1] || (_[1] = (m) => s(e).modal.close())
2037
2037
  }, y(s(t)("Cancel")), 1)
2038
2038
  ]),
2039
- default: oe(() => [
2039
+ default: se(() => [
2040
2040
  i("div", null, [
2041
2041
  O(Pe, {
2042
2042
  icon: s($n),
@@ -2124,12 +2124,12 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
2124
2124
  key: 0,
2125
2125
  class: "vuefinder__text-preview__save-button",
2126
2126
  onClick: w
2127
- }, y(s(_)("Save")), 1)) : T("", !0),
2127
+ }, y(s(_)("Save")), 1)) : I("", !0),
2128
2128
  s(c)("edit") ? (v(), g("button", {
2129
2129
  key: 1,
2130
2130
  class: "vuefinder__text-preview__edit-button",
2131
2131
  onClick: $[0] || ($[0] = (D) => m())
2132
- }, y(d.value ? s(_)("Cancel") : s(_)("Edit")), 1)) : T("", !0)
2132
+ }, y(d.value ? s(_)("Cancel") : s(_)("Edit")), 1)) : I("", !0)
2133
2133
  ])
2134
2134
  ]),
2135
2135
  i("div", null, [
@@ -2173,7 +2173,7 @@ const vs = { class: "vuefinder__text-preview" }, fs = { class: "vuefinder__text-
2173
2173
  DONE: 10
2174
2174
  };
2175
2175
  function xn(o) {
2176
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = e.config, d = M({ QUEUE_ENTRY_STATUS: ge }), r = M(null), c = M(null), _ = M(null), m = M(null), w = M(null), u = M([]), $ = M(""), D = M(!1), S = M(!1), p = M(null);
2176
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = e.config, d = M({ QUEUE_ENTRY_STATUS: ge }), r = M(null), c = M(null), _ = M(null), m = M(null), w = M(null), u = M([]), $ = M(""), D = M(!1), S = M(!1), p = M(null);
2177
2177
  let h;
2178
2178
  const f = (x) => {
2179
2179
  x.preventDefault(), x.stopPropagation(), S.value = !0;
@@ -2184,21 +2184,21 @@ function xn(o) {
2184
2184
  }, F = (x) => {
2185
2185
  x.preventDefault(), x.stopPropagation(), S.value = !1;
2186
2186
  const b = /^[/\\](.+)/, P = x.dataTransfer;
2187
- P && (P.items && P.items.length ? Array.from(P.items).forEach((I) => {
2188
- if (I.kind === "file") {
2189
- const W = I.webkitGetAsEntry?.();
2190
- if (W)
2191
- Ot((se, ae) => {
2192
- const _e = b.exec(se?.fullPath || "");
2193
- B(ae, _e ? _e[1] : ae.name);
2194
- }, W);
2187
+ P && (P.items && P.items.length ? Array.from(P.items).forEach((T) => {
2188
+ if (T.kind === "file") {
2189
+ const G = T.webkitGetAsEntry?.();
2190
+ if (G)
2191
+ Ot((te, ie) => {
2192
+ const _e = b.exec(te?.fullPath || "");
2193
+ B(ie, _e ? _e[1] : ie.name);
2194
+ }, G);
2195
2195
  else {
2196
- const se = I.getAsFile?.();
2197
- se && B(se);
2196
+ const te = T.getAsFile?.();
2197
+ te && B(te);
2198
2198
  }
2199
2199
  }
2200
- }) : P.files && P.files.length && Array.from(P.files).forEach((I) => B(I)));
2201
- }, A = (x) => u.value.findIndex((b) => b.id === x), B = (x, b) => h.addFile({ name: b || x.name, type: x.type, data: x, source: "Local" }), Y = (x) => x.status === ge.DONE ? "text-green-600" : x.status === ge.ERROR || x.status === ge.CANCELED ? "text-red-600" : "", R = (x) => x.status === ge.DONE ? "✓" : x.status === ge.ERROR || x.status === ge.CANCELED ? "!" : "...", ne = () => m.value?.click(), U = () => e.modal.close(), ee = (x) => {
2200
+ }) : P.files && P.files.length && Array.from(P.files).forEach((T) => B(T)));
2201
+ }, A = (x) => u.value.findIndex((b) => b.id === x), B = (x, b) => h.addFile({ name: b || x.name, type: x.type, data: x, source: "Local" }), Y = (x) => x.status === ge.DONE ? "text-green-600" : x.status === ge.ERROR || x.status === ge.CANCELED ? "text-red-600" : "", R = (x) => x.status === ge.DONE ? "✓" : x.status === ge.ERROR || x.status === ge.CANCELED ? "!" : "...", oe = () => m.value?.click(), U = () => e.modal.close(), ee = (x) => {
2202
2202
  if (D.value || !u.value.filter((b) => b.status !== ge.DONE).length) {
2203
2203
  D.value || ($.value = t("Please select file to upload first."));
2204
2204
  return;
@@ -2227,19 +2227,19 @@ function xn(o) {
2227
2227
  debug: e.debug,
2228
2228
  restrictions: { maxFileSize: uo(l.get("maxFileSize") ?? "10mb") },
2229
2229
  locale: e.i18n.t("uppy"),
2230
- onBeforeFileAdded: (I, W) => {
2231
- if (W[I.id] != null) {
2232
- const ae = A(I.id);
2233
- u.value[ae]?.status === ge.PENDING && ($.value = h.i18n("noDuplicates", { fileName: I.name })), u.value = u.value.filter((_e) => _e.id !== I.id);
2230
+ onBeforeFileAdded: (T, G) => {
2231
+ if (G[T.id] != null) {
2232
+ const ie = A(T.id);
2233
+ u.value[ie]?.status === ge.PENDING && ($.value = h.i18n("noDuplicates", { fileName: T.name })), u.value = u.value.filter((_e) => _e.id !== T.id);
2234
2234
  }
2235
2235
  return u.value.push({
2236
- id: I.id,
2237
- name: I.name,
2238
- size: e.filesize(I.size),
2236
+ id: T.id,
2237
+ name: T.name,
2238
+ size: e.filesize(T.size),
2239
2239
  status: ge.PENDING,
2240
2240
  statusName: t("Pending upload"),
2241
2241
  percent: null,
2242
- originalFile: I.data
2242
+ originalFile: T.data
2243
2243
  }), !0;
2244
2244
  }
2245
2245
  });
@@ -2252,34 +2252,46 @@ function xn(o) {
2252
2252
  e.adapter.getDriver().configureUploader(h, x);
2253
2253
  else
2254
2254
  throw new Error("No uploader configured");
2255
- h.on("restriction-failed", (I, W) => {
2256
- const se = u.value[A(I.id)];
2257
- se && q(se), $.value = W.message;
2258
- }), h.on("upload-progress", (I, W) => {
2259
- const se = W.bytesTotal ?? 1, ae = Math.floor(W.bytesUploaded / se * 100), _e = A(I.id);
2260
- _e !== -1 && u.value[_e] && (u.value[_e].percent = `${ae}%`);
2261
- }), h.on("upload-success", (I) => {
2262
- const W = u.value[A(I.id)];
2263
- W && (W.status = ge.DONE, W.statusName = t("Done"));
2264
- }), h.on("upload-error", (I, W) => {
2265
- const se = u.value[A(I.id)];
2266
- se && (se.percent = null, se.status = ge.ERROR, se.statusName = W?.isNetworkError ? t("Network Error, Unable establish connection to the server or interrupted.") : W?.message || t("Unknown Error"));
2267
- }), h.on("error", (I) => {
2268
- $.value = I.message, D.value = !1, e.adapter.open(a.value.path);
2269
- }), h.on("complete", () => {
2255
+ h.on("restriction-failed", (T, G) => {
2256
+ const te = u.value[A(T.id)];
2257
+ te && q(te), $.value = G.message;
2258
+ }), h.on("upload-start", (T) => {
2259
+ T.forEach((G) => {
2260
+ const te = u.value[A(G.id)];
2261
+ te && (te.status = ge.UPLOADING, te.statusName = t("Uploading"), te.percent = "0%");
2262
+ });
2263
+ }), h.on("upload-progress", (T, G) => {
2264
+ console.log("upload-progress", T, G);
2265
+ const te = G.bytesTotal ?? 1;
2266
+ console.log("upload-progress", G.bytesUploaded / te);
2267
+ const ie = Math.floor(G.bytesUploaded / te * 100), _e = A(T.id);
2268
+ _e !== -1 && u.value[_e] && (u.value[_e].percent = `${ie}%`);
2269
+ }), h.on("upload-success", (T) => {
2270
+ const G = u.value[A(T.id)];
2271
+ G && (G.status = ge.DONE, G.statusName = t("Done"));
2272
+ }), h.on("upload-error", (T, G) => {
2273
+ const te = u.value[A(T.id)];
2274
+ te && (te.percent = null, te.status = ge.ERROR, te.statusName = G?.isNetworkError ? t("Network Error, Unable establish connection to the server or interrupted.") : G?.message || t("Unknown Error"));
2275
+ }), h.on("error", (T) => {
2276
+ $.value = T.message, D.value = !1;
2277
+ }), h.on("complete", (T) => {
2270
2278
  D.value = !1;
2271
- const I = p.value || a.value;
2272
- e.adapter.invalidateListQuery(I.path), e.adapter.open(I.path);
2273
- const W = u.value.filter((se) => se.status === ge.DONE).map((se) => se.name);
2274
- e.emitter.emit("vf-upload-complete", W);
2279
+ const G = p.value || a.value;
2280
+ if (T.successful.length > 0) {
2281
+ e.adapter.invalidateListQuery(G.path);
2282
+ const te = u.value.filter(
2283
+ (ie) => ie.status === ge.DONE && T.successful.includes(ie.id)
2284
+ ).map((ie) => ie.name);
2285
+ e.emitter.emit("vf-upload-complete", te);
2286
+ }
2275
2287
  }), m.value?.addEventListener("click", () => c.value?.click()), w.value?.addEventListener("click", () => _.value?.click());
2276
2288
  const b = { capture: !0 };
2277
2289
  document.addEventListener("dragover", f, b), document.addEventListener("dragenter", k, b), document.addEventListener("dragleave", C, b), document.addEventListener("drop", F, b);
2278
- const P = (I) => {
2279
- const W = I.target, se = W.files;
2280
- if (se) {
2281
- for (const ae of se) B(ae);
2282
- W.value = "";
2290
+ const P = (T) => {
2291
+ const G = T.target, te = G.files;
2292
+ if (te) {
2293
+ for (const ie of te) B(ie);
2294
+ G.value = "";
2283
2295
  }
2284
2296
  };
2285
2297
  c.value?.addEventListener("change", P), _.value?.addEventListener("change", P);
@@ -2297,7 +2309,7 @@ function xn(o) {
2297
2309
  uploading: D,
2298
2310
  hasFilesInDropArea: S,
2299
2311
  definitions: d,
2300
- openFileSelector: ne,
2312
+ openFileSelector: oe,
2301
2313
  upload: ee,
2302
2314
  cancel: E,
2303
2315
  remove: q,
@@ -2315,7 +2327,7 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
2315
2327
  setup(o, { emit: e }) {
2316
2328
  const t = e, n = J(), { enabled: a } = Te(), { t: l } = n.i18n, d = M(!1), r = M(
2317
2329
  n.modal.data.item.previewUrl ?? n.adapter.getPreviewUrl({ path: n.modal.data.item.path })
2318
- ), c = M(r.value), { addExternalFiles: _, upload: m, queue: w } = xn(n.customUploader), u = n.fs, $ = G(u.path), D = Ge("cropperRef"), S = async () => {
2330
+ ), c = M(r.value), { addExternalFiles: _, upload: m, queue: w } = xn(n.customUploader), u = n.fs, $ = W(u.path), D = Ge("cropperRef"), S = async () => {
2319
2331
  d.value = !d.value, n.modal.setEditMode(d.value);
2320
2332
  }, p = async () => {
2321
2333
  const f = D.value?.getResult({
@@ -2327,8 +2339,8 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
2327
2339
  if (f.width > 1200 || f.height > 1200) {
2328
2340
  const Y = Math.min(1200 / f.width, 1200 / f.height), R = document.createElement("canvas");
2329
2341
  R.width = Math.floor(f.width * Y), R.height = Math.floor(f.height * Y);
2330
- const ne = R.getContext("2d");
2331
- ne && (ne.drawImage(f, 0, 0, R.width, R.height), k = R);
2342
+ const oe = R.getContext("2d");
2343
+ oe && (oe.drawImage(f, 0, 0, R.width, R.height), k = R);
2332
2344
  }
2333
2345
  const C = n.modal.data.item.basename, F = C.split(".").pop()?.toLowerCase() || "jpg", A = F === "png" ? "image/png" : F === "gif" ? "image/gif" : "image/jpeg", B = await new Promise((Y) => {
2334
2346
  k.toBlob((R) => Y(R), A);
@@ -2338,10 +2350,10 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
2338
2350
  return;
2339
2351
  }
2340
2352
  try {
2341
- const Y = new File([B], C, { type: A }), ne = n.modal.data.item.path.split("/");
2342
- ne.pop();
2353
+ const Y = new File([B], C, { type: A }), oe = n.modal.data.item.path.split("/");
2354
+ oe.pop();
2343
2355
  const ee = {
2344
- path: ne.join("/") || ($.value?.path ?? "")
2356
+ path: oe.join("/") || ($.value?.path ?? "")
2345
2357
  };
2346
2358
  _([Y]), await new Promise((z) => setTimeout(z, 100));
2347
2359
  const E = w.value.find((z) => z.name === Y.name);
@@ -2378,12 +2390,12 @@ const ws = { class: "vuefinder__image-preview" }, ys = { class: "vuefinder__imag
2378
2390
  key: 0,
2379
2391
  class: "vuefinder__image-preview__crop-button",
2380
2392
  onClick: p
2381
- }, y(s(l)("Crop")), 1)) : T("", !0),
2393
+ }, y(s(l)("Crop")), 1)) : I("", !0),
2382
2394
  s(a)("edit") ? (v(), g("button", {
2383
2395
  key: 1,
2384
2396
  class: "vuefinder__image-preview__edit-button",
2385
2397
  onClick: f[0] || (f[0] = (k) => S())
2386
- }, y(d.value ? s(l)("Cancel") : s(l)("Edit")), 1)) : T("", !0)
2398
+ }, y(d.value ? s(l)("Cancel") : s(l)("Edit")), 1)) : I("", !0)
2387
2399
  ])
2388
2400
  ]),
2389
2401
  i("div", $s, [
@@ -2584,7 +2596,7 @@ const Xs = {
2584
2596
  return d(f, C);
2585
2597
  }, c = t("preview");
2586
2598
  c || (a.value = !0);
2587
- const _ = N(() => e.modal.data.item), m = G(e.fs.sortedFiles), w = N(() => m.value.filter((f) => f.type === "file")), u = N(
2599
+ const _ = N(() => e.modal.data.item), m = W(e.fs.sortedFiles), w = N(() => m.value.filter((f) => f.type === "file")), u = N(
2588
2600
  () => w.value.findIndex((f) => f.path === _.value.path)
2589
2601
  ), $ = N(() => u.value > 0), D = N(() => u.value < w.value.length - 1), S = () => {
2590
2602
  if (e.modal.editMode || !$.value) return;
@@ -2605,7 +2617,7 @@ const Xs = {
2605
2617
  const f = document.querySelector(".vuefinder__preview-modal");
2606
2618
  f && f.focus();
2607
2619
  }), (f, k) => (v(), L(Fe, null, {
2608
- buttons: oe(() => [
2620
+ buttons: se(() => [
2609
2621
  i("button", {
2610
2622
  type: "button",
2611
2623
  class: "vf-btn vf-btn-secondary",
@@ -2617,15 +2629,15 @@ const Xs = {
2617
2629
  class: "vf-btn vf-btn-primary",
2618
2630
  download: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path }),
2619
2631
  href: s(e).adapter.getDownloadUrl({ path: s(e).modal.data.item.path })
2620
- }, y(s(n)("Download")), 9, li)) : T("", !0)
2632
+ }, y(s(n)("Download")), 9, li)) : I("", !0)
2621
2633
  ]),
2622
- default: oe(() => [
2634
+ default: se(() => [
2623
2635
  i("div", {
2624
2636
  class: "vuefinder__preview-modal",
2625
2637
  tabindex: "0",
2626
2638
  onKeydown: h
2627
2639
  }, [
2628
- s(e).modal.editMode ? T("", !0) : (v(), g("div", Xs, [
2640
+ s(e).modal.editMode ? I("", !0) : (v(), g("div", Xs, [
2629
2641
  i("button", {
2630
2642
  disabled: !$.value,
2631
2643
  class: "vuefinder__preview-modal__nav-side vuefinder__preview-modal__nav-side--left",
@@ -2680,7 +2692,7 @@ const Xs = {
2680
2692
  key: `default-${_.value.path}`,
2681
2693
  onSuccess: k[5] || (k[5] = (C) => a.value = !0)
2682
2694
  }))
2683
- ])) : T("", !0),
2695
+ ])) : I("", !0),
2684
2696
  i("div", ni, [
2685
2697
  a.value === !1 ? (v(), g("div", oi, [
2686
2698
  k[9] || (k[9] = i("svg", {
@@ -2704,7 +2716,7 @@ const Xs = {
2704
2716
  })
2705
2717
  ], -1)),
2706
2718
  i("span", null, y(s(n)("Loading")), 1)
2707
- ])) : T("", !0)
2719
+ ])) : I("", !0)
2708
2720
  ])
2709
2721
  ])
2710
2722
  ], 32),
@@ -2722,7 +2734,7 @@ const Xs = {
2722
2734
  i("span", null, y(s(n)(
2723
2735
  `Download doesn't work? You can try right-click "Download" button, select "Save link as...".`
2724
2736
  )), 1)
2725
- ])) : T("", !0)
2737
+ ])) : I("", !0)
2726
2738
  ]),
2727
2739
  _: 1
2728
2740
  }));
@@ -2885,7 +2897,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
2885
2897
  emits: ["update:modelValue", "selectAndClose", "toggleFolder"],
2886
2898
  setup(o, { emit: e }) {
2887
2899
  const t = J(), { t: n } = t.i18n, a = t.fs, l = M({}), d = o, r = e;
2888
- G(a.path);
2900
+ W(a.path);
2889
2901
  const c = N(() => {
2890
2902
  const B = `${d.storage}:${d.folder.path}`;
2891
2903
  return d.expandedFolders[B] || !1;
@@ -2943,9 +2955,9 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
2943
2955
  ], 34)
2944
2956
  ]),
2945
2957
  c.value && h.value ? (v(), g("div", Ei, [
2946
- (v(!0), g(ve, null, he(u.value, (ne) => (v(), L(R, {
2947
- key: ne.path,
2948
- folder: ne,
2958
+ (v(!0), g(ve, null, he(u.value, (oe) => (v(), L(R, {
2959
+ key: oe.path,
2960
+ folder: oe,
2949
2961
  storage: o.storage,
2950
2962
  "model-value": o.modelValue,
2951
2963
  "expanded-folders": o.expandedFolders,
@@ -2960,8 +2972,8 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
2960
2972
  class: "vuefinder__modal-tree__load-more",
2961
2973
  onClick: p
2962
2974
  }, y(s(n)("load more")), 1)
2963
- ])) : T("", !0)
2964
- ])) : T("", !0)
2975
+ ])) : I("", !0)
2976
+ ])) : I("", !0)
2965
2977
  ]);
2966
2978
  };
2967
2979
  }
@@ -2983,7 +2995,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
2983
2995
  },
2984
2996
  emits: ["update:modelValue", "selectAndClose"],
2985
2997
  setup(o, { emit: e }) {
2986
- const t = J(), { t: n } = t.i18n, a = t.fs, l = t.config, d = e, r = G(a.sortedFiles), c = G(a.storages), _ = N(() => c.value || []), m = G(a.path), w = M(null), u = M({}), $ = M({}), D = M({});
2998
+ const t = J(), { t: n } = t.i18n, a = t.fs, l = t.config, d = e, r = W(a.sortedFiles), c = W(a.storages), _ = N(() => c.value || []), m = W(a.path), w = M(null), u = M({}), $ = M({}), D = M({});
2987
2999
  le(r, (E) => {
2988
3000
  const q = E.filter((z) => z.type === "dir"), j = m.value?.path || "";
2989
3001
  j && ($.value[j] = q.map((z) => ({
@@ -3041,14 +3053,14 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3041
3053
  };
3042
3054
  d("update:modelValue", q), d("selectAndClose", q);
3043
3055
  };
3044
- let ne = 0;
3056
+ let oe = 0;
3045
3057
  const U = (E) => {
3046
3058
  if (!E) return;
3047
3059
  const q = Date.now();
3048
- q - ne < nn ? B(E) : A(E), ne = q;
3060
+ q - oe < nn ? B(E) : A(E), oe = q;
3049
3061
  }, ee = (E) => {
3050
3062
  const q = Date.now();
3051
- q - ne < nn ? R(E) : Y(E), ne = q;
3063
+ q - oe < nn ? R(E) : Y(E), oe = q;
3052
3064
  };
3053
3065
  return fe(() => {
3054
3066
  w.value && st(w.value, {
@@ -3084,7 +3096,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3084
3096
  O(s(Lt), { class: "vuefinder__modal-tree__icon vuefinder__modal-tree__icon--pin" })
3085
3097
  ], 42, Ri))), 128))
3086
3098
  ])
3087
- ])) : T("", !0),
3099
+ ])) : I("", !0),
3088
3100
  i("div", ji, y(s(n)("Storages")), 1),
3089
3101
  (v(!0), g(ve, null, he(_.value, (j) => (v(), g("div", {
3090
3102
  key: j,
@@ -3095,7 +3107,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3095
3107
  i("div", qi, [
3096
3108
  i("div", {
3097
3109
  class: "vuefinder__modal-tree__storage-toggle",
3098
- onClick: ie((z) => S(j, j + "://"), ["stop"])
3110
+ onClick: ae((z) => S(j, j + "://"), ["stop"])
3099
3111
  }, [
3100
3112
  u.value[`${j}:${j}://`] ? (v(), L(s($t), {
3101
3113
  key: 1,
@@ -3135,8 +3147,8 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3135
3147
  class: "vuefinder__modal-tree__load-more",
3136
3148
  onClick: (z) => F(j + "://")
3137
3149
  }, y(s(n)("load more")), 9, Ji)
3138
- ])) : T("", !0)
3139
- ])) : T("", !0)
3150
+ ])) : I("", !0)
3151
+ ])) : I("", !0)
3140
3152
  ])
3141
3153
  ])
3142
3154
  ]))), 128))
@@ -3156,7 +3168,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3156
3168
  t("hidden"), l.value = !0;
3157
3169
  };
3158
3170
  return (_, m) => (v(), g("div", null, [
3159
- l.value ? T("", !0) : (v(), g("div", {
3171
+ l.value ? I("", !0) : (v(), g("div", {
3160
3172
  key: 0,
3161
3173
  ref_key: "strMessage",
3162
3174
  ref: d,
@@ -3198,7 +3210,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3198
3210
  copy: { type: Boolean }
3199
3211
  },
3200
3212
  setup(o) {
3201
- const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, a = o, l = M(e.modal.data.items.from), d = M(e.modal.data.items.to), r = M(""), c = M(a.copy || !t("move")), _ = N(() => c.value ? "copy" : "move"), m = M(!1), w = G(e.fs.path), u = N(() => c.value ? n("Copy files") : n("Move files")), $ = N(
3213
+ const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, a = o, l = M(e.modal.data.items.from), d = M(e.modal.data.items.to), r = M(""), c = M(a.copy || !t("move")), _ = N(() => c.value ? "copy" : "move"), m = M(!1), w = W(e.fs.path), u = N(() => c.value ? n("Copy files") : n("Move files")), $ = N(
3202
3214
  () => c.value ? n("Are you sure you want to copy these files?") : n("Are you sure you want to move these files?")
3203
3215
  ), D = N(() => c.value ? n("Yes, Copy!") : n("Yes, Move!"));
3204
3216
  N(() => c.value ? n("Files copied.") : n("Files moved."));
@@ -3238,7 +3250,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3238
3250
  }
3239
3251
  };
3240
3252
  return (F, A) => (v(), L(Fe, null, {
3241
- buttons: oe(() => [
3253
+ buttons: se(() => [
3242
3254
  i("button", {
3243
3255
  type: "button",
3244
3256
  class: "vf-btn vf-btn-primary",
@@ -3252,7 +3264,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3252
3264
  }, y(s(n)("Cancel")), 1),
3253
3265
  i("div", _a, y(s(n)("%s item(s) selected.", l.value.length)), 1)
3254
3266
  ]),
3255
- default: oe(() => [
3267
+ default: se(() => [
3256
3268
  i("div", null, [
3257
3269
  O(Pe, {
3258
3270
  icon: c.value ? s(Bt) : s(ui),
@@ -3285,7 +3297,7 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3285
3297
  }, [
3286
3298
  i("div", aa, [
3287
3299
  i("span", ra, y(k().storage) + "://", 1),
3288
- k().path ? (v(), g("span", la, y(k().path), 1)) : T("", !0)
3300
+ k().path ? (v(), g("span", la, y(k().path), 1)) : I("", !0)
3289
3301
  ]),
3290
3302
  i("span", da, y(s(n)("Browse")), 1)
3291
3303
  ])
@@ -3317,26 +3329,26 @@ const zt = { render: Si }, Ci = { class: "vuefinder__modal-tree__folder-item" },
3317
3329
  ]),
3318
3330
  i("span", va, y(s(n)("Create a copy instead of moving")), 1)
3319
3331
  ])
3320
- ])) : T("", !0),
3332
+ ])) : I("", !0),
3321
3333
  f.value ? (v(), L(Pt, {
3322
3334
  key: 1,
3323
3335
  error: ""
3324
3336
  }, {
3325
- default: oe(() => [
3337
+ default: se(() => [
3326
3338
  de(y(f.value), 1)
3327
3339
  ]),
3328
3340
  _: 1
3329
- })) : T("", !0),
3341
+ })) : I("", !0),
3330
3342
  r.value.length && !f.value ? (v(), L(Pt, {
3331
3343
  key: 2,
3332
3344
  error: "",
3333
3345
  onHidden: A[3] || (A[3] = (B) => r.value = "")
3334
3346
  }, {
3335
- default: oe(() => [
3347
+ default: se(() => [
3336
3348
  de(y(r.value), 1)
3337
3349
  ]),
3338
3350
  _: 1
3339
- })) : T("", !0)
3351
+ })) : I("", !0)
3340
3352
  ])
3341
3353
  ])
3342
3354
  ]),
@@ -3437,17 +3449,17 @@ const xt = { render: wa }, ya = { class: "vuefinder__search-modal__search-input"
3437
3449
  ref: d,
3438
3450
  value: o.modelValue,
3439
3451
  type: "text",
3440
- placeholder: s(l)("Search Files"),
3452
+ placeholder: s(l)("Search files"),
3441
3453
  disabled: o.disabled,
3442
3454
  class: "vuefinder__search-modal__input",
3443
3455
  onKeydown: c,
3444
- onKeyup: m[0] || (m[0] = ie(() => {
3456
+ onKeyup: m[0] || (m[0] = ae(() => {
3445
3457
  }, ["stop"])),
3446
3458
  onInput: r
3447
3459
  }, null, 40, ba),
3448
3460
  o.isSearching ? (v(), g("div", ka, [
3449
3461
  O(s(xt), { class: "vuefinder__search-modal__loading-icon" })
3450
- ])) : T("", !0)
3462
+ ])) : I("", !0)
3451
3463
  ]));
3452
3464
  }
3453
3465
  }), xa = {
@@ -3590,7 +3602,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3590
3602
  class: Z(["vuefinder__search-modal__dropdown-btn", { "vuefinder__search-modal__dropdown-btn--active": o.visible }]),
3591
3603
  disabled: o.disabled,
3592
3604
  title: s(d)("Search Options"),
3593
- onClick: ie(w, ["stop"])
3605
+ onClick: ae(w, ["stop"])
3594
3606
  }, [
3595
3607
  O(s(Fn), { class: "vuefinder__search-modal__dropdown-icon" })
3596
3608
  ], 10, Ca),
@@ -3602,7 +3614,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3602
3614
  class: "vuefinder__themer vuefinder__search-modal__dropdown vuefinder__search-modal__dropdown--visible",
3603
3615
  "data-theme": s(l).theme.current,
3604
3616
  tabindex: "-1",
3605
- onClick: p[4] || (p[4] = ie(() => {
3617
+ onClick: p[4] || (p[4] = ae(() => {
3606
3618
  }, ["stop"])),
3607
3619
  onKeydown: $
3608
3620
  }, [
@@ -3614,7 +3626,7 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3614
3626
  class: Z(["vuefinder__search-modal__dropdown-option", {
3615
3627
  "vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "all"
3616
3628
  }]),
3617
- onClick: p[0] || (p[0] = ie((h) => m("size-all"), ["stop"]))
3629
+ onClick: p[0] || (p[0] = ae((h) => m("size-all"), ["stop"]))
3618
3630
  }, [
3619
3631
  i("span", null, y(s(d)("All Files")), 1),
3620
3632
  o.sizeFilter === "all" ? (v(), g("div", Ta, [...p[5] || (p[5] = [
@@ -3624,13 +3636,13 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3624
3636
  }, [
3625
3637
  i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
3626
3638
  ], -1)
3627
- ])])) : T("", !0)
3639
+ ])])) : I("", !0)
3628
3640
  ], 2),
3629
3641
  i("div", {
3630
3642
  class: Z(["vuefinder__search-modal__dropdown-option", {
3631
3643
  "vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "small"
3632
3644
  }]),
3633
- onClick: p[1] || (p[1] = ie((h) => m("size-small"), ["stop"]))
3645
+ onClick: p[1] || (p[1] = ae((h) => m("size-small"), ["stop"]))
3634
3646
  }, [
3635
3647
  i("span", null, y(s(d)("Small (< 1MB)")), 1),
3636
3648
  o.sizeFilter === "small" ? (v(), g("div", Ia, [...p[6] || (p[6] = [
@@ -3640,13 +3652,13 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3640
3652
  }, [
3641
3653
  i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
3642
3654
  ], -1)
3643
- ])])) : T("", !0)
3655
+ ])])) : I("", !0)
3644
3656
  ], 2),
3645
3657
  i("div", {
3646
3658
  class: Z(["vuefinder__search-modal__dropdown-option", {
3647
3659
  "vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "medium"
3648
3660
  }]),
3649
- onClick: p[2] || (p[2] = ie((h) => m("size-medium"), ["stop"]))
3661
+ onClick: p[2] || (p[2] = ae((h) => m("size-medium"), ["stop"]))
3650
3662
  }, [
3651
3663
  i("span", null, y(s(d)("Medium (1-10MB)")), 1),
3652
3664
  o.sizeFilter === "medium" ? (v(), g("div", Aa, [...p[7] || (p[7] = [
@@ -3656,13 +3668,13 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3656
3668
  }, [
3657
3669
  i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
3658
3670
  ], -1)
3659
- ])])) : T("", !0)
3671
+ ])])) : I("", !0)
3660
3672
  ], 2),
3661
3673
  i("div", {
3662
3674
  class: Z(["vuefinder__search-modal__dropdown-option", {
3663
3675
  "vuefinder__search-modal__dropdown-option--selected": o.sizeFilter === "large"
3664
3676
  }]),
3665
- onClick: p[3] || (p[3] = ie((h) => m("size-large"), ["stop"]))
3677
+ onClick: p[3] || (p[3] = ae((h) => m("size-large"), ["stop"]))
3666
3678
  }, [
3667
3679
  i("span", null, y(s(d)("Large (> 10MB)")), 1),
3668
3680
  o.sizeFilter === "large" ? (v(), g("div", Oa, [...p[8] || (p[8] = [
@@ -3672,12 +3684,12 @@ const Fn = { render: Sa }, Ca = ["disabled", "title"], Fa = ["data-theme"], Da =
3672
3684
  }, [
3673
3685
  i("path", { d: "M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z" })
3674
3686
  ], -1)
3675
- ])])) : T("", !0)
3687
+ ])])) : I("", !0)
3676
3688
  ], 2)
3677
3689
  ])
3678
3690
  ])
3679
3691
  ])
3680
- ], 40, Fa)) : T("", !0)
3692
+ ], 40, Fa)) : I("", !0)
3681
3693
  ]))
3682
3694
  ], 64));
3683
3695
  }
@@ -3836,12 +3848,12 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
3836
3848
  i("div", Ua, [
3837
3849
  i("div", ja, [
3838
3850
  de(y(o.item.basename) + " ", 1),
3839
- _(o.item) ? (v(), g("span", Ha, y(_(o.item)), 1)) : T("", !0)
3851
+ _(o.item) ? (v(), g("span", Ha, y(_(o.item)), 1)) : I("", !0)
3840
3852
  ]),
3841
3853
  i("div", {
3842
3854
  class: "vuefinder__search-modal__result-path",
3843
3855
  title: o.item.path,
3844
- onClick: f[0] || (f[0] = ie((k) => {
3856
+ onClick: f[0] || (f[0] = ae((k) => {
3845
3857
  n("select", o.index), n("togglePathExpansion", o.item.path);
3846
3858
  }, ["stop"]))
3847
3859
  }, y(c(o.item.path) ? o.item.path : s(Dn)(o.item.path)), 9, Ka)
@@ -3864,7 +3876,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
3864
3876
  class: "vuefinder__themer vuefinder__search-modal__item-dropdown vuefinder__search-modal__item-dropdown--visible",
3865
3877
  "data-theme": s(a).theme.current,
3866
3878
  tabindex: "-1",
3867
- onClick: f[8] || (f[8] = ie(() => {
3879
+ onClick: f[8] || (f[8] = ae(() => {
3868
3880
  }, ["stop"])),
3869
3881
  onKeydown: p
3870
3882
  }, [
@@ -3906,7 +3918,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
3906
3918
  i("span", null, y(s(l)("Preview")), 1)
3907
3919
  ], 34)
3908
3920
  ])
3909
- ], 40, Ga)) : T("", !0)
3921
+ ], 40, Ga)) : I("", !0)
3910
3922
  ]))
3911
3923
  ], 10, Ra));
3912
3924
  }
@@ -4043,7 +4055,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4043
4055
  name: "ModalSearch",
4044
4056
  __name: "ModalSearch",
4045
4057
  setup(o) {
4046
- const e = J(), { t } = e.i18n, n = e.fs, a = M(null), l = M(null), d = M(null), r = Cn("", 300), c = M([]), _ = M(!1), m = M(-1), w = M(!1), u = M(!1), $ = M(null), D = M("all"), S = M(!1), p = M(`size-${D.value}`), h = M(null), f = M(/* @__PURE__ */ new Set()), k = M(null), C = G(n.path), F = (b) => {
4058
+ const e = J(), { t } = e.i18n, n = e.fs, a = M(null), l = M(null), d = M(null), r = Cn("", 300), c = M([]), _ = M(!1), m = M(-1), w = M(!1), u = M(!1), $ = M(null), D = M("all"), S = M(!1), p = M(`size-${D.value}`), h = M(null), f = M(/* @__PURE__ */ new Set()), k = M(null), C = W(n.path), F = (b) => {
4047
4059
  f.value.has(b) ? f.value.delete(b) : f.value.add(b);
4048
4060
  }, A = (b, P) => {
4049
4061
  P && typeof P.stopPropagation == "function" && P.stopPropagation(), k.value === b ? k.value = null : k.value = b;
@@ -4061,7 +4073,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4061
4073
  storage: C?.value?.storage ?? "local",
4062
4074
  item: b
4063
4075
  }), B();
4064
- }, ne = (b) => {
4076
+ }, oe = (b) => {
4065
4077
  m.value = b, B();
4066
4078
  }, U = (b) => {
4067
4079
  m.value = b;
@@ -4079,13 +4091,13 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4079
4091
  if (b) {
4080
4092
  _.value = !0;
4081
4093
  try {
4082
- const P = $.value?.path || C?.value?.path, I = await e.adapter.search({
4094
+ const P = $.value?.path || C?.value?.path, T = await e.adapter.search({
4083
4095
  path: P,
4084
4096
  filter: b,
4085
4097
  deep: S.value,
4086
4098
  size: D.value
4087
4099
  });
4088
- c.value = I || [], _.value = !1;
4100
+ c.value = T || [], _.value = !1;
4089
4101
  } catch (P) {
4090
4102
  re.error(Ce(P, t("Search failed"))), c.value = [], _.value = !1;
4091
4103
  }
@@ -4109,12 +4121,12 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4109
4121
  if (w.value && (P.closest(".vuefinder__search-modal__dropdown") || (w.value = !1, Ae(() => {
4110
4122
  a.value && a.value.focus();
4111
4123
  }))), k.value) {
4112
- const I = P.closest(".vuefinder__search-modal__item-dropdown"), W = P.closest(".vuefinder__search-modal__result-item");
4113
- !I && !W && B();
4124
+ const T = P.closest(".vuefinder__search-modal__item-dropdown"), G = P.closest(".vuefinder__search-modal__result-item");
4125
+ !T && !G && B();
4114
4126
  }
4115
4127
  };
4116
4128
  return (b, P) => (v(), L(Fe, { class: "vuefinder__search-modal-layout" }, {
4117
- default: oe(() => [
4129
+ default: se(() => [
4118
4130
  i("div", nr, [
4119
4131
  O(Pe, {
4120
4132
  icon: s(Ut),
@@ -4126,7 +4138,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4126
4138
  ref_key: "searchInputRef",
4127
4139
  ref: a,
4128
4140
  modelValue: s(r),
4129
- "onUpdate:modelValue": P[0] || (P[0] = (I) => jn(r) ? r.value = I : null),
4141
+ "onUpdate:modelValue": P[0] || (P[0] = (T) => jn(r) ? r.value = T : null),
4130
4142
  "is-searching": _.value,
4131
4143
  disabled: u.value
4132
4144
  }, null, 8, ["modelValue", "is-searching", "disabled"]),
@@ -4134,23 +4146,23 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4134
4146
  ref_key: "searchOptionsDropdownRef",
4135
4147
  ref: l,
4136
4148
  visible: w.value,
4137
- "onUpdate:visible": P[1] || (P[1] = (I) => w.value = I),
4149
+ "onUpdate:visible": P[1] || (P[1] = (T) => w.value = T),
4138
4150
  "size-filter": D.value,
4139
- "onUpdate:sizeFilter": P[2] || (P[2] = (I) => D.value = I),
4151
+ "onUpdate:sizeFilter": P[2] || (P[2] = (T) => D.value = T),
4140
4152
  "selected-option": p.value,
4141
- "onUpdate:selectedOption": P[3] || (P[3] = (I) => p.value = I),
4153
+ "onUpdate:selectedOption": P[3] || (P[3] = (T) => p.value = T),
4142
4154
  disabled: u.value
4143
4155
  }, null, 8, ["visible", "size-filter", "selected-option", "disabled"])
4144
4156
  ]),
4145
4157
  i("div", {
4146
4158
  class: "vuefinder__search-modal__options",
4147
- onClick: P[7] || (P[7] = ie(() => {
4159
+ onClick: P[7] || (P[7] = ae(() => {
4148
4160
  }, ["stop"]))
4149
4161
  }, [
4150
4162
  i("div", ir, [
4151
4163
  i("button", {
4152
4164
  class: Z(["vuefinder__search-modal__location-btn", { "vuefinder__search-modal__location-btn--open": u.value }]),
4153
- onClick: ie(q, ["stop"])
4165
+ onClick: ae(q, ["stop"])
4154
4166
  }, [
4155
4167
  O(s(Oe), { class: "vuefinder__search-modal__location-icon" }),
4156
4168
  i("span", {
@@ -4168,15 +4180,15 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4168
4180
  ]),
4169
4181
  i("label", {
4170
4182
  class: "vuefinder__search-modal__deep-search",
4171
- onClick: P[6] || (P[6] = ie(() => {
4183
+ onClick: P[6] || (P[6] = ae(() => {
4172
4184
  }, ["stop"]))
4173
4185
  }, [
4174
4186
  pe(i("input", {
4175
- "onUpdate:modelValue": P[4] || (P[4] = (I) => S.value = I),
4187
+ "onUpdate:modelValue": P[4] || (P[4] = (T) => S.value = T),
4176
4188
  type: "checkbox",
4177
4189
  disabled: u.value,
4178
4190
  class: "vuefinder__search-modal__checkbox",
4179
- onClick: P[5] || (P[5] = ie(() => {
4191
+ onClick: P[5] || (P[5] = ae(() => {
4180
4192
  }, ["stop"]))
4181
4193
  }, null, 8, rr), [
4182
4194
  [mt, S.value]
@@ -4189,7 +4201,7 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4189
4201
  O(Rt, {
4190
4202
  modelValue: $.value,
4191
4203
  "onUpdate:modelValue": [
4192
- P[8] || (P[8] = (I) => $.value = I),
4204
+ P[8] || (P[8] = (T) => $.value = T),
4193
4205
  j
4194
4206
  ],
4195
4207
  "show-pinned-folders": !0,
@@ -4197,10 +4209,10 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4197
4209
  onSelectAndClose: z
4198
4210
  }, null, 8, ["modelValue", "current-path"])
4199
4211
  ])
4200
- ])) : T("", !0),
4212
+ ])) : I("", !0),
4201
4213
  !s(r).trim() && !u.value ? (v(), g("div", cr, [
4202
4214
  i("p", ur, y(s(t)("Start typing to search files. Use options to filter or include subfolders.")), 1)
4203
- ])) : T("", !0),
4215
+ ])) : I("", !0),
4204
4216
  s(r).trim() && !u.value ? (v(), L(tr, {
4205
4217
  key: 2,
4206
4218
  ref_key: "searchResultsListRef",
@@ -4212,15 +4224,15 @@ const En = { render: za }, Ra = ["title"], Na = { class: "vuefinder__search-moda
4212
4224
  "active-dropdown": k.value,
4213
4225
  "selected-item-dropdown-option": h.value,
4214
4226
  "results-enter": !0,
4215
- onSelectResultItem: ne,
4227
+ onSelectResultItem: oe,
4216
4228
  onSelectResultItemWithDropdown: U,
4217
4229
  onTogglePathExpansion: F,
4218
4230
  onToggleItemDropdown: A,
4219
- "onUpdate:selectedItemDropdownOption": P[9] || (P[9] = (I) => h.value = I),
4231
+ "onUpdate:selectedItemDropdownOption": P[9] || (P[9] = (T) => h.value = T),
4220
4232
  onCopyPath: ee,
4221
4233
  onOpenContainingFolder: Y,
4222
4234
  onPreview: R
4223
- }, null, 8, ["search-results", "is-searching", "selected-index", "expanded-paths", "active-dropdown", "selected-item-dropdown-option"])) : T("", !0)
4235
+ }, null, 8, ["search-results", "is-searching", "selected-index", "expanded-paths", "active-dropdown", "selected-item-dropdown-option"])) : I("", !0)
4224
4236
  ])
4225
4237
  ])
4226
4238
  ]),
@@ -4298,7 +4310,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4298
4310
  }, qr = { class: "vuefinder__about-modal__setting-input justify-end" }, Gr = ["label"], Wr = ["value"], Yr = { class: "vuefinder__about-modal__tab-content" }, Qr = { class: "vuefinder__about-modal__settings__section-title" }, Xr = { class: "vuefinder__about-modal__description" }, Mn = /* @__PURE__ */ X({
4299
4311
  __name: "ModalSettings",
4300
4312
  setup(o) {
4301
- const e = J(), { enabled: t } = Te(), n = e.config, { clearStore: a } = e.storage, { t: l } = e.i18n, d = G(n.state), r = N(() => d.value.theme || "silver"), c = async () => {
4313
+ const e = J(), { enabled: t } = Te(), n = e.config, { clearStore: a } = e.storage, { t: l } = e.i18n, d = W(n.state), r = N(() => d.value.theme || "silver"), c = async () => {
4302
4314
  n.reset(), a(), location.reload();
4303
4315
  }, _ = (p) => {
4304
4316
  n.set("theme", p), e.emitter.emit("vf-theme-saved");
@@ -4331,14 +4343,14 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4331
4343
  }).filter(([p]) => Object.keys($).includes(p))
4332
4344
  );
4333
4345
  return (p, h) => (v(), L(Fe, null, {
4334
- buttons: oe(() => [
4346
+ buttons: se(() => [
4335
4347
  i("button", {
4336
4348
  type: "button",
4337
4349
  class: "vf-btn vf-btn-secondary",
4338
4350
  onClick: h[2] || (h[2] = (f) => s(e).modal.close())
4339
4351
  }, y(s(l)("Close")), 1)
4340
4352
  ]),
4341
- default: oe(() => [
4353
+ default: se(() => [
4342
4354
  i("div", mr, [
4343
4355
  O(Pe, {
4344
4356
  icon: s(Fn),
@@ -4366,7 +4378,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4366
4378
  class: "ms-3",
4367
4379
  on: "vf-metric-units-saved"
4368
4380
  }, {
4369
- default: oe(() => [
4381
+ default: se(() => [
4370
4382
  de(y(s(l)("Saved.")), 1)
4371
4383
  ]),
4372
4384
  _: 1
@@ -4390,7 +4402,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4390
4402
  class: "ms-3",
4391
4403
  on: "vf-compact-view-saved"
4392
4404
  }, {
4393
- default: oe(() => [
4405
+ default: se(() => [
4394
4406
  de(y(s(l)("Saved.")), 1)
4395
4407
  ]),
4396
4408
  _: 1
@@ -4414,14 +4426,14 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4414
4426
  class: "ms-3",
4415
4427
  on: "vf-persist-path-saved"
4416
4428
  }, {
4417
- default: oe(() => [
4429
+ default: se(() => [
4418
4430
  de(y(s(l)("Saved.")), 1)
4419
4431
  ]),
4420
4432
  _: 1
4421
4433
  })
4422
4434
  ])
4423
4435
  ]),
4424
- s(t)("theme") ? (v(), g("div", Vr, y(s(l)("Theme")), 1)) : T("", !0),
4436
+ s(t)("theme") ? (v(), g("div", Vr, y(s(l)("Theme")), 1)) : I("", !0),
4425
4437
  s(t)("theme") ? (v(), g("div", zr, [
4426
4438
  i("div", Rr, [
4427
4439
  i("select", {
@@ -4443,14 +4455,14 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4443
4455
  class: "ms-3",
4444
4456
  on: "vf-theme-saved"
4445
4457
  }, {
4446
- default: oe(() => [
4458
+ default: se(() => [
4447
4459
  de(y(s(l)("Saved.")), 1)
4448
4460
  ]),
4449
4461
  _: 1
4450
4462
  })
4451
4463
  ])
4452
- ])) : T("", !0),
4453
- s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Hr, y(s(l)("Language")), 1)) : T("", !0),
4464
+ ])) : I("", !0),
4465
+ s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Hr, y(s(l)("Language")), 1)) : I("", !0),
4454
4466
  s(t)("language") && Object.keys(s(S)).length > 1 ? (v(), g("div", Kr, [
4455
4467
  i("div", qr, [
4456
4468
  pe(i("select", {
@@ -4473,13 +4485,13 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4473
4485
  class: "ms-3",
4474
4486
  on: "vf-language-saved"
4475
4487
  }, {
4476
- default: oe(() => [
4488
+ default: se(() => [
4477
4489
  de(y(s(l)("Saved.")), 1)
4478
4490
  ]),
4479
4491
  _: 1
4480
4492
  })
4481
4493
  ])
4482
- ])) : T("", !0)
4494
+ ])) : I("", !0)
4483
4495
  ])
4484
4496
  ]),
4485
4497
  i("div", Yr, [
@@ -4513,7 +4525,7 @@ const tt = /* @__PURE__ */ fr(vr, [["render", pr]]), hr = [
4513
4525
  KEY_R: "KeyR"
4514
4526
  };
4515
4527
  function Jr() {
4516
- const o = J(), e = o.fs, t = o.config, { enabled: n } = Te(), a = G(e.path), l = G(e.selectedItems), d = (r) => {
4528
+ const o = J(), e = o.fs, t = o.config, { enabled: n } = Te(), a = W(e.path), l = W(e.selectedItems), d = (r) => {
4517
4529
  if (r.code === xe.ESCAPE && (o.modal.close(), o.root.focus()), !o.modal.visible) {
4518
4530
  if (r.metaKey && r.code === xe.KEY_R && !r.shiftKey && (o.adapter.invalidateListQuery(a.value.path), o.adapter.open(a.value.path), r.preventDefault()), r.metaKey && r.shiftKey && r.code === xe.KEY_R && n("rename") && l.value.length === 1 && (o.modal.open(yt, { items: l.value }), r.preventDefault()), r.code === xe.DELETE && l.value.length !== 0 && o.modal.open(wt, { items: l.value }), r.metaKey && r.code === xe.BACKSLASH && o.modal.open(bn), r.metaKey && r.code === xe.KEY_F && n("search") && (o.modal.open(jt), r.preventDefault()), r.metaKey && r.code === xe.KEY_E && (t.toggle("showTreeView"), r.preventDefault()), r.metaKey && r.code === xe.KEY_S && (o.modal.open(Mn), r.preventDefault()), r.metaKey && r.code === xe.ENTER && (t.toggle("fullScreen"), o.root.focus()), r.metaKey && r.code === xe.KEY_A && (e.selectAll(o.selectionMode || "multiple", o), r.preventDefault()), r.code === xe.SPACE && l.value.length === 1 && l.value[0]?.type !== "dir" && o.modal.open(bt, {
4519
4531
  storage: e.path.get().storage,
@@ -4644,7 +4656,7 @@ function tl(o, e) {
4644
4656
  const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content" }, ol = { class: "vuefinder__new-folder-modal__form" }, sl = { class: "vuefinder__new-folder-modal__description" }, il = ["placeholder"], Ht = /* @__PURE__ */ X({
4645
4657
  __name: "ModalNewFolder",
4646
4658
  setup(o) {
4647
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = M(""), d = () => {
4659
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(""), d = () => {
4648
4660
  l.value !== "" && e.adapter.createFolder({
4649
4661
  path: a.value.path,
4650
4662
  name: l.value
@@ -4655,7 +4667,7 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
4655
4667
  });
4656
4668
  };
4657
4669
  return (r, c) => (v(), L(Fe, null, {
4658
- buttons: oe(() => [
4670
+ buttons: se(() => [
4659
4671
  i("button", {
4660
4672
  type: "button",
4661
4673
  class: "vf-btn vf-btn-primary",
@@ -4667,7 +4679,7 @@ const Tn = { render: tl }, nl = { class: "vuefinder__new-folder-modal__content"
4667
4679
  onClick: c[1] || (c[1] = (_) => s(e).modal.close())
4668
4680
  }, y(s(t)("Cancel")), 1)
4669
4681
  ]),
4670
- default: oe(() => [
4682
+ default: se(() => [
4671
4683
  i("div", null, [
4672
4684
  O(Pe, {
4673
4685
  icon: s(Tn),
@@ -4708,7 +4720,7 @@ function rl(o, e) {
4708
4720
  const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" }, dl = { class: "vuefinder__new-file-modal__form" }, cl = { class: "vuefinder__new-file-modal__description" }, ul = ["placeholder"], An = /* @__PURE__ */ X({
4709
4721
  __name: "ModalNewFile",
4710
4722
  setup(o) {
4711
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = M(""), d = () => {
4723
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(""), d = () => {
4712
4724
  l.value !== "" && e.adapter.createFile({
4713
4725
  path: a.value.path,
4714
4726
  name: l.value
@@ -4719,7 +4731,7 @@ const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" },
4719
4731
  });
4720
4732
  };
4721
4733
  return (r, c) => (v(), L(Fe, null, {
4722
- buttons: oe(() => [
4734
+ buttons: se(() => [
4723
4735
  i("button", {
4724
4736
  type: "button",
4725
4737
  class: "vf-btn vf-btn-primary",
@@ -4731,7 +4743,7 @@ const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" },
4731
4743
  onClick: c[1] || (c[1] = (_) => s(e).modal.close())
4732
4744
  }, y(s(t)("Cancel")), 1)
4733
4745
  ]),
4734
- default: oe(() => [
4746
+ default: se(() => [
4735
4747
  i("div", null, [
4736
4748
  O(Pe, {
4737
4749
  icon: s(In),
@@ -4756,12 +4768,7 @@ const In = { render: rl }, ll = { class: "vuefinder__new-file-modal__content" },
4756
4768
  _: 1
4757
4769
  }));
4758
4770
  }
4759
- });
4760
- function Et(o, e = 14) {
4761
- const t = `((?=([\\w\\W]{0,${e}}))([\\w\\W]{${e + 1},})([\\w\\W]{8,}))`;
4762
- return o.replace(new RegExp(t), "$2..$4");
4763
- }
4764
- const vl = {
4771
+ }), vl = {
4765
4772
  xmlns: "http://www.w3.org/2000/svg",
4766
4773
  fill: "none",
4767
4774
  "stroke-width": "1.5",
@@ -4773,7 +4780,12 @@ function fl(o, e) {
4773
4780
  i("path", { d: "M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5" }, null, -1)
4774
4781
  ])]);
4775
4782
  }
4776
- const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class: "vuefinder__upload-modal__target-section" }, hl = { class: "vuefinder__upload-modal__target-label" }, ml = { class: "vuefinder__upload-modal__target-container" }, gl = { class: "vuefinder__upload-modal__target-path" }, wl = { class: "vuefinder__upload-modal__target-storage" }, yl = {
4783
+ const On = { render: fl };
4784
+ function Et(o, e = 14) {
4785
+ const t = `((?=([\\w\\W]{0,${e}}))([\\w\\W]{${e + 1},})([\\w\\W]{8,}))`;
4786
+ return o.replace(new RegExp(t), "$2..$4");
4787
+ }
4788
+ const _l = { class: "vuefinder__upload-modal__content relative" }, pl = { class: "vuefinder__upload-modal__target-section" }, hl = { class: "vuefinder__upload-modal__target-label" }, ml = { class: "vuefinder__upload-modal__target-container" }, gl = { class: "vuefinder__upload-modal__target-path" }, wl = { class: "vuefinder__upload-modal__target-storage" }, yl = {
4777
4789
  key: 0,
4778
4790
  class: "vuefinder__upload-modal__target-folder"
4779
4791
  }, bl = { class: "vuefinder__upload-modal__target-badge" }, kl = { class: "vuefinder__upload-modal__drag-hint" }, $l = { class: "vuefinder__upload-modal__file-list vf-scrollbar" }, xl = ["textContent"], Sl = { class: "vuefinder__upload-modal__file-info" }, Cl = { class: "vuefinder__upload-modal__file-name hidden md:block" }, Fl = { class: "vuefinder__upload-modal__file-name md:hidden" }, Dl = {
@@ -4791,7 +4803,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4791
4803
  }, Kt = /* @__PURE__ */ X({
4792
4804
  __name: "ModalUpload",
4793
4805
  setup(o) {
4794
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = M(a.value), d = M(!1), r = () => {
4806
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(a.value), d = M(!1), r = () => {
4795
4807
  const x = l.value.path;
4796
4808
  if (!x) return { storage: "local", path: "" };
4797
4809
  if (x.endsWith("://"))
@@ -4822,7 +4834,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4822
4834
  clear: B,
4823
4835
  close: Y,
4824
4836
  getClassNameForEntry: R,
4825
- getIconForEntry: ne,
4837
+ getIconForEntry: oe,
4826
4838
  addExternalFiles: U
4827
4839
  } = xn(e.customUploader), ee = () => {
4828
4840
  C(l.value);
@@ -4836,14 +4848,14 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4836
4848
  });
4837
4849
  const E = M(!1), q = M(null), j = M(null), z = (x) => {
4838
4850
  if (!E.value) return;
4839
- const b = x.target, P = q.value?.contains(b) ?? !1, I = j.value?.contains(b) ?? !1;
4840
- !P && !I && (E.value = !1);
4851
+ const b = x.target, P = q.value?.contains(b) ?? !1, T = j.value?.contains(b) ?? !1;
4852
+ !P && !T && (E.value = !1);
4841
4853
  };
4842
4854
  return fe(() => document.addEventListener("click", z)), ye(() => document.removeEventListener("click", z)), (x, b) => (v(), L(Fe, {
4843
4855
  "show-drag-overlay": s(h),
4844
4856
  "drag-overlay-text": s(t)("Drag and drop the files/folders to here.")
4845
4857
  }, {
4846
- buttons: oe(() => [
4858
+ buttons: se(() => [
4847
4859
  i("div", {
4848
4860
  ref_key: "actionsMenuMobileRef",
4849
4861
  ref: q,
@@ -4866,7 +4878,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4866
4878
  class: "vuefinder__upload-actions__trigger",
4867
4879
  "aria-haspopup": "menu",
4868
4880
  "aria-expanded": E.value ? "true" : "false",
4869
- onClick: b[4] || (b[4] = ie((P) => E.value = !E.value, ["stop"]))
4881
+ onClick: b[4] || (b[4] = ae((P) => E.value = !E.value, ["stop"]))
4870
4882
  }, [...b[17] || (b[17] = [
4871
4883
  i("svg", {
4872
4884
  xmlns: "http://www.w3.org/2000/svg",
@@ -4904,19 +4916,19 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4904
4916
  class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
4905
4917
  onClick: b[8] || (b[8] = (P) => s(p) ? null : (s(B)(!0), E.value = !1))
4906
4918
  }, y(s(t)("Clear only successful")), 3)
4907
- ])) : T("", !0)
4919
+ ])) : I("", !0)
4908
4920
  ], 512),
4909
4921
  i("button", {
4910
4922
  type: "button",
4911
4923
  class: "vf-btn vf-btn-primary",
4912
4924
  disabled: s(p) || !s(D).length,
4913
- onClick: ie(ee, ["prevent"])
4925
+ onClick: ae(ee, ["prevent"])
4914
4926
  }, y(s(t)("Upload")), 9, Il),
4915
4927
  s(p) ? (v(), g("button", {
4916
4928
  key: 0,
4917
4929
  type: "button",
4918
4930
  class: "vf-btn vf-btn-secondary",
4919
- onClick: b[9] || (b[9] = ie(
4931
+ onClick: b[9] || (b[9] = ae(
4920
4932
  //@ts-ignore
4921
4933
  (...P) => s(F) && s(F)(...P),
4922
4934
  ["prevent"]
@@ -4925,7 +4937,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4925
4937
  key: 1,
4926
4938
  type: "button",
4927
4939
  class: "vf-btn vf-btn-secondary",
4928
- onClick: b[10] || (b[10] = ie(
4940
+ onClick: b[10] || (b[10] = ae(
4929
4941
  //@ts-ignore
4930
4942
  (...P) => s(Y) && s(Y)(...P),
4931
4943
  ["prevent"]
@@ -4950,7 +4962,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4950
4962
  class: "vuefinder__upload-actions__trigger",
4951
4963
  "aria-haspopup": "menu",
4952
4964
  "aria-expanded": E.value ? "true" : "false",
4953
- onClick: b[11] || (b[11] = ie((P) => E.value = !E.value, ["stop"]))
4965
+ onClick: b[11] || (b[11] = ae((P) => E.value = !E.value, ["stop"]))
4954
4966
  }, [...b[19] || (b[19] = [
4955
4967
  i("svg", {
4956
4968
  xmlns: "http://www.w3.org/2000/svg",
@@ -4988,10 +5000,10 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4988
5000
  class: Z(["vuefinder__upload-actions__item", s(p) ? "disabled" : ""]),
4989
5001
  onClick: b[15] || (b[15] = (P) => s(p) ? null : (s(B)(!0), E.value = !1))
4990
5002
  }, y(s(t)("Clear only successful")), 3)
4991
- ])) : T("", !0)
5003
+ ])) : I("", !0)
4992
5004
  ], 512)
4993
5005
  ]),
4994
- default: oe(() => [
5006
+ default: se(() => [
4995
5007
  i("div", null, [
4996
5008
  O(Pe, {
4997
5009
  icon: s(On),
@@ -4999,7 +5011,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
4999
5011
  }, null, 8, ["icon", "title"]),
5000
5012
  i("div", _l, [
5001
5013
  i("div", pl, [
5002
- i("div", hl, y(s(t)("Hedef Klasör")), 1),
5014
+ i("div", hl, y(s(t)("Target Directory")), 1),
5003
5015
  i("div", ml, [
5004
5016
  i("div", {
5005
5017
  class: "vuefinder__upload-modal__target-display",
@@ -5007,7 +5019,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
5007
5019
  }, [
5008
5020
  i("div", gl, [
5009
5021
  i("span", wl, y(r().storage) + "://", 1),
5010
- r().path ? (v(), g("span", yl, y(r().path), 1)) : T("", !0)
5022
+ r().path ? (v(), g("span", yl, y(r().path), 1)) : I("", !0)
5011
5023
  ]),
5012
5024
  i("span", bl, y(s(t)("Browse")), 1)
5013
5025
  ])
@@ -5045,7 +5057,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
5045
5057
  }, [
5046
5058
  i("span", {
5047
5059
  class: "vuefinder__upload-modal__file-icon-text",
5048
- textContent: y(s(ne)(P))
5060
+ textContent: y(s(oe)(P))
5049
5061
  }, null, 8, xl)
5050
5062
  ], 2),
5051
5063
  i("div", Sl, [
@@ -5055,7 +5067,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
5055
5067
  class: Z(["vuefinder__upload-modal__file-status", s(R)(P)])
5056
5068
  }, [
5057
5069
  de(y(P.statusName) + " ", 1),
5058
- P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Dl, y(P.percent), 1)) : T("", !0)
5070
+ P.status === s(f).QUEUE_ENTRY_STATUS.UPLOADING ? (v(), g("b", Dl, y(P.percent), 1)) : I("", !0)
5059
5071
  ], 2)
5060
5072
  ]),
5061
5073
  i("button", {
@@ -5063,7 +5075,7 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
5063
5075
  class: Z(["vuefinder__upload-modal__file-remove", s(p) ? "disabled" : ""]),
5064
5076
  title: s(t)("Delete"),
5065
5077
  disabled: s(p),
5066
- onClick: (I) => s(A)(P)
5078
+ onClick: (T) => s(A)(P)
5067
5079
  }, [...b[16] || (b[16] = [
5068
5080
  i("svg", {
5069
5081
  xmlns: "http://www.w3.org/2000/svg",
@@ -5081,18 +5093,18 @@ const On = { render: fl }, _l = { class: "vuefinder__upload-modal__content relat
5081
5093
  ], -1)
5082
5094
  ])], 10, Pl)
5083
5095
  ]))), 128)),
5084
- s(D).length ? T("", !0) : (v(), g("div", El, y(s(t)("No files selected!")), 1))
5096
+ s(D).length ? I("", !0) : (v(), g("div", El, y(s(t)("No files selected!")), 1))
5085
5097
  ]),
5086
5098
  s(S).length ? (v(), L(Pt, {
5087
5099
  key: 0,
5088
5100
  error: "",
5089
5101
  onHidden: b[2] || (b[2] = (P) => S.value = "")
5090
5102
  }, {
5091
- default: oe(() => [
5103
+ default: se(() => [
5092
5104
  de(y(s(S)), 1)
5093
5105
  ]),
5094
5106
  _: 1
5095
- })) : T("", !0)
5107
+ })) : I("", !0)
5096
5108
  ])
5097
5109
  ]),
5098
5110
  i("input", {
@@ -5145,7 +5157,7 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
5145
5157
  }, Ul = { class: "vuefinder__unarchive-modal__item-name" }, jl = { class: "vuefinder__unarchive-modal__info" }, qt = /* @__PURE__ */ X({
5146
5158
  __name: "ModalUnarchive",
5147
5159
  setup(o) {
5148
- const e = J(), t = e.fs, n = G(t.path), { t: a } = e.i18n, l = M(e.modal.data.items[0]), d = M([]), r = () => {
5160
+ const e = J(), t = e.fs, n = W(t.path), { t: a } = e.i18n, l = M(e.modal.data.items[0]), d = M([]), r = () => {
5149
5161
  e.adapter.unarchive({
5150
5162
  item: l.value.path,
5151
5163
  path: n.value.path
@@ -5156,7 +5168,7 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
5156
5168
  });
5157
5169
  };
5158
5170
  return (c, _) => (v(), L(Fe, null, {
5159
- buttons: oe(() => [
5171
+ buttons: se(() => [
5160
5172
  i("button", {
5161
5173
  type: "button",
5162
5174
  class: "vf-btn vf-btn-primary",
@@ -5168,7 +5180,7 @@ const Bn = { render: Ll }, Vl = { class: "vuefinder__unarchive-modal__content" }
5168
5180
  onClick: _[0] || (_[0] = (m) => s(e).modal.close())
5169
5181
  }, y(s(a)("Cancel")), 1)
5170
5182
  ]),
5171
- default: oe(() => [
5183
+ default: se(() => [
5172
5184
  i("div", null, [
5173
5185
  O(Pe, {
5174
5186
  icon: s(Bn),
@@ -5233,7 +5245,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5233
5245
  }, Xl = { class: "vuefinder__archive-modal__file-name" }, Jl = ["placeholder"], Gt = /* @__PURE__ */ X({
5234
5246
  __name: "ModalArchive",
5235
5247
  setup(o) {
5236
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.path), l = M(""), d = M(e.modal.data.items), r = () => {
5248
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.path), l = M(""), d = M(e.modal.data.items), r = () => {
5237
5249
  d.value.length && e.adapter.archive({
5238
5250
  path: a.value.path,
5239
5251
  items: d.value.map(({ path: c, type: _ }) => ({
@@ -5248,7 +5260,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5248
5260
  });
5249
5261
  };
5250
5262
  return (c, _) => (v(), L(Fe, null, {
5251
- buttons: oe(() => [
5263
+ buttons: se(() => [
5252
5264
  i("button", {
5253
5265
  type: "button",
5254
5266
  class: "vf-btn vf-btn-primary",
@@ -5260,7 +5272,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5260
5272
  onClick: _[1] || (_[1] = (m) => s(e).modal.close())
5261
5273
  }, y(s(t)("Cancel")), 1)
5262
5274
  ]),
5263
- default: oe(() => [
5275
+ default: se(() => [
5264
5276
  i("div", null, [
5265
5277
  O(Pe, {
5266
5278
  icon: s(Ln),
@@ -5334,14 +5346,14 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5334
5346
  setup(o) {
5335
5347
  const e = J(), { enabled: t } = Te(), { t: n } = e.i18n;
5336
5348
  return (a, l) => (v(), L(Fe, null, {
5337
- buttons: oe(() => [
5349
+ buttons: se(() => [
5338
5350
  i("button", {
5339
5351
  type: "button",
5340
5352
  class: "vf-btn vf-btn-secondary",
5341
5353
  onClick: l[0] || (l[0] = (d) => s(e).modal.close())
5342
5354
  }, y(s(n)("Close")), 1)
5343
5355
  ]),
5344
- default: oe(() => [
5356
+ default: se(() => [
5345
5357
  i("div", Zl, [
5346
5358
  O(Pe, {
5347
5359
  icon: s(yn),
@@ -5366,11 +5378,11 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5366
5378
  de(" + "),
5367
5379
  i("kbd", null, "R")
5368
5380
  ], -1))
5369
- ])) : T("", !0),
5381
+ ])) : I("", !0),
5370
5382
  s(t)("delete") ? (v(), g("div", sd, [
5371
5383
  i("div", null, y(s(n)("Delete")), 1),
5372
5384
  l[3] || (l[3] = i("kbd", null, "Del", -1))
5373
- ])) : T("", !0),
5385
+ ])) : I("", !0),
5374
5386
  i("div", id, [
5375
5387
  i("div", null, y(s(n)("Escape")), 1),
5376
5388
  l[4] || (l[4] = i("kbd", null, "Esc", -1))
@@ -5390,7 +5402,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5390
5402
  de(" + "),
5391
5403
  i("kbd", null, "X")
5392
5404
  ], -1))
5393
- ])) : T("", !0),
5405
+ ])) : I("", !0),
5394
5406
  s(t)("copy") ? (v(), g("div", ld, [
5395
5407
  i("div", null, y(s(n)("Copy")), 1),
5396
5408
  l[7] || (l[7] = i("div", null, [
@@ -5398,7 +5410,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5398
5410
  de(" + "),
5399
5411
  i("kbd", null, "C")
5400
5412
  ], -1))
5401
- ])) : T("", !0),
5413
+ ])) : I("", !0),
5402
5414
  s(t)("copy") ? (v(), g("div", dd, [
5403
5415
  i("div", null, y(s(n)("Paste")), 1),
5404
5416
  l[8] || (l[8] = i("div", null, [
@@ -5406,7 +5418,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5406
5418
  de(" + "),
5407
5419
  i("kbd", null, "V")
5408
5420
  ], -1))
5409
- ])) : T("", !0),
5421
+ ])) : I("", !0),
5410
5422
  s(t)("search") ? (v(), g("div", cd, [
5411
5423
  i("div", null, y(s(n)("Search")), 1),
5412
5424
  l[9] || (l[9] = i("div", null, [
@@ -5414,7 +5426,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5414
5426
  de(" + "),
5415
5427
  i("kbd", null, "F")
5416
5428
  ], -1))
5417
- ])) : T("", !0),
5429
+ ])) : I("", !0),
5418
5430
  i("div", ud, [
5419
5431
  i("div", null, y(s(n)("Toggle Sidebar")), 1),
5420
5432
  l[10] || (l[10] = i("div", null, [
@@ -5438,11 +5450,11 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5438
5450
  de(" + "),
5439
5451
  i("kbd", null, "Enter")
5440
5452
  ], -1))
5441
- ])) : T("", !0),
5453
+ ])) : I("", !0),
5442
5454
  s(t)("preview") ? (v(), g("div", _d, [
5443
5455
  i("div", null, y(s(n)("Preview")), 1),
5444
5456
  l[13] || (l[13] = i("kbd", null, "Space", -1))
5445
- ])) : T("", !0)
5457
+ ])) : I("", !0)
5446
5458
  ])
5447
5459
  ])
5448
5460
  ])
@@ -5459,7 +5471,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5459
5471
  }, $d = /* @__PURE__ */ X({
5460
5472
  __name: "MenuBar",
5461
5473
  setup(o) {
5462
- const e = J(), { enabled: t } = Te(), { t: n } = e?.i18n || { t: (f) => f }, a = e?.fs, l = e?.config, d = G(l.state), r = G(a.selectedItems), c = G(a?.storages || []), _ = M(null), m = M(!1), w = N(() => window.opener !== null || window.name !== "" || window.history.length <= 1), u = N(() => [
5474
+ const e = J(), { enabled: t } = Te(), { t: n } = e?.i18n || { t: (f) => f }, a = e?.fs, l = e?.config, d = W(l.state), r = W(a.selectedItems), c = W(a?.storages || []), _ = M(null), m = M(!1), w = N(() => window.opener !== null || window.name !== "" || window.history.length <= 1), u = N(() => [
5463
5475
  {
5464
5476
  id: "file",
5465
5477
  label: n("File"),
@@ -5594,7 +5606,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5594
5606
  ...t("move") ? [
5595
5607
  {
5596
5608
  id: "move",
5597
- label: n("Move"),
5609
+ label: n("Move files"),
5598
5610
  action: () => {
5599
5611
  if (r.value.length > 0) {
5600
5612
  const f = e?.fs, k = {
@@ -5664,7 +5676,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5664
5676
  id: "refresh",
5665
5677
  label: n("Refresh"),
5666
5678
  action: () => {
5667
- e?.adapter.list(a?.path?.get()?.path);
5679
+ e.adapter.invalidateListQuery(a.path.get().path), e.adapter.open(a.path.get().path);
5668
5680
  },
5669
5681
  enabled: () => !0
5670
5682
  },
@@ -5836,7 +5848,7 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5836
5848
  document.removeEventListener("click", h);
5837
5849
  }), (f, k) => (v(), g("div", {
5838
5850
  class: "vuefinder__menubar",
5839
- onClick: k[0] || (k[0] = ie(() => {
5851
+ onClick: k[0] || (k[0] = ae(() => {
5840
5852
  }, ["stop"]))
5841
5853
  }, [
5842
5854
  i("div", hd, [
@@ -5859,12 +5871,12 @@ const Ln = { render: Kl }, ql = { class: "vuefinder__archive-modal__content" },
5859
5871
  "vuefinder__menubar__dropdown__item--disabled": F.enabled && !F.enabled(),
5860
5872
  "vuefinder__menubar__dropdown__item--checked": F.checked && F.checked()
5861
5873
  }]),
5862
- onClick: ie((A) => F.type !== "separator" && F.enabled && F.enabled() ? p(F.action) : null, ["stop"])
5874
+ onClick: ae((A) => F.type !== "separator" && F.enabled && F.enabled() ? p(F.action) : null, ["stop"])
5863
5875
  }, [
5864
- F.type !== "separator" ? (v(), g("span", bd, y(F.label), 1)) : T("", !0),
5865
- F.checked && F.checked() ? (v(), g("span", kd, " ✓ ")) : T("", !0)
5876
+ F.type !== "separator" ? (v(), g("span", bd, y(F.label), 1)) : I("", !0),
5877
+ F.checked && F.checked() ? (v(), g("span", kd, " ✓ ")) : I("", !0)
5866
5878
  ], 10, yd))), 128))
5867
- ], 40, wd)) : T("", !0)
5879
+ ], 40, wd)) : I("", !0)
5868
5880
  ], 42, md))), 128))
5869
5881
  ])
5870
5882
  ]));
@@ -5944,7 +5956,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
5944
5956
  name: "VfToolbar",
5945
5957
  __name: "Toolbar",
5946
5958
  setup(o) {
5947
- const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, a = e.fs, l = e.config, d = G(l.state), r = G(a.selectedItems), c = G(a.sort), _ = G(a.filter);
5959
+ const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, a = e.fs, l = e.config, d = W(l.state), r = W(a.selectedItems), c = W(a.sort), _ = W(a.filter);
5948
5960
  le(
5949
5961
  () => d.value.fullScreen,
5950
5962
  () => {
@@ -6038,7 +6050,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6038
6050
  onClick: h[0] || (h[0] = (f) => s(e).modal.open(Ht, { items: s(r) }))
6039
6051
  }, [
6040
6052
  O(s(Tn))
6041
- ], 8, Nd)) : T("", !0),
6053
+ ], 8, Nd)) : I("", !0),
6042
6054
  s(t)("newfile") ? (v(), g("div", {
6043
6055
  key: 1,
6044
6056
  class: "mx-1.5",
@@ -6046,7 +6058,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6046
6058
  onClick: h[1] || (h[1] = (f) => s(e).modal.open(An, { items: s(r) }))
6047
6059
  }, [
6048
6060
  O(s(In))
6049
- ], 8, Ud)) : T("", !0),
6061
+ ], 8, Ud)) : I("", !0),
6050
6062
  s(t)("rename") ? (v(), g("div", {
6051
6063
  key: 2,
6052
6064
  class: "mx-1.5",
@@ -6056,7 +6068,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6056
6068
  O(s($n), {
6057
6069
  class: Z(s(r).length === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
6058
6070
  }, null, 8, ["class"])
6059
- ], 8, jd)) : T("", !0),
6071
+ ], 8, jd)) : I("", !0),
6060
6072
  s(t)("delete") ? (v(), g("div", {
6061
6073
  key: 3,
6062
6074
  class: "mx-1.5",
@@ -6066,7 +6078,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6066
6078
  O(s(kn), {
6067
6079
  class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
6068
6080
  }, null, 8, ["class"])
6069
- ], 8, Hd)) : T("", !0),
6081
+ ], 8, Hd)) : I("", !0),
6070
6082
  s(t)("upload") ? (v(), g("div", {
6071
6083
  key: 4,
6072
6084
  class: "mx-1.5",
@@ -6074,7 +6086,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6074
6086
  onClick: h[4] || (h[4] = (f) => s(e).modal.open(Kt, { items: s(r) }))
6075
6087
  }, [
6076
6088
  O(s(On))
6077
- ], 8, Kd)) : T("", !0),
6089
+ ], 8, Kd)) : I("", !0),
6078
6090
  s(t)("unarchive") && s(r).length === 1 && s(r)[0].mime_type === "application/zip" ? (v(), g("div", {
6079
6091
  key: 5,
6080
6092
  class: "mx-1.5",
@@ -6084,7 +6096,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6084
6096
  O(s(Bn), {
6085
6097
  class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
6086
6098
  }, null, 8, ["class"])
6087
- ], 8, qd)) : T("", !0),
6099
+ ], 8, qd)) : I("", !0),
6088
6100
  s(t)("archive") ? (v(), g("div", {
6089
6101
  key: 6,
6090
6102
  class: "mx-1.5",
@@ -6094,7 +6106,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6094
6106
  O(s(Ln), {
6095
6107
  class: Z(s(r).length ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
6096
6108
  }, null, 8, ["class"])
6097
- ], 8, Gd)) : T("", !0)
6109
+ ], 8, Gd)) : I("", !0)
6098
6110
  ]),
6099
6111
  i("div", Wd, [
6100
6112
  s(t)("search") ? (v(), g("div", {
@@ -6104,7 +6116,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6104
6116
  onClick: h[7] || (h[7] = (f) => s(e).modal.open(jt))
6105
6117
  }, [
6106
6118
  O(s(Ut), { class: "vf-toolbar-icon text-(--vf-bg-primary)" })
6107
- ], 8, Yd)) : T("", !0),
6119
+ ], 8, Yd)) : I("", !0),
6108
6120
  i("div", Qd, [
6109
6121
  i("div", {
6110
6122
  title: s(n)("Filter"),
@@ -6113,7 +6125,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6113
6125
  }, [
6114
6126
  i("div", Jd, [
6115
6127
  O(s(Vd), { class: "vf-toolbar-icon vuefinder__toolbar__icon h-6 w-6" }),
6116
- D.value ? (v(), g("div", Zd)) : T("", !0)
6128
+ D.value ? (v(), g("div", Zd)) : I("", !0)
6117
6129
  ])
6118
6130
  ], 8, Xd),
6119
6131
  m.value ? (v(), g("div", ec, [
@@ -6202,7 +6214,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6202
6214
  }, y(s(n)("Reset")), 1)
6203
6215
  ])
6204
6216
  ])
6205
- ])) : T("", !0)
6217
+ ])) : I("", !0)
6206
6218
  ]),
6207
6219
  s(t)("fullscreen") ? (v(), g("div", {
6208
6220
  key: 1,
@@ -6217,7 +6229,7 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6217
6229
  key: 1,
6218
6230
  class: "vf-toolbar-icon"
6219
6231
  }))
6220
- ], 8, $c)) : T("", !0),
6232
+ ], 8, $c)) : I("", !0),
6221
6233
  i("div", {
6222
6234
  class: "mx-1.5",
6223
6235
  title: s(n)("Change View"),
@@ -6226,11 +6238,11 @@ const Vd = { render: Ld }, zd = { class: "vuefinder__toolbar" }, Rd = { class: "
6226
6238
  s(d).view === "grid" ? (v(), L(s(Td), {
6227
6239
  key: 0,
6228
6240
  class: "vf-toolbar-icon"
6229
- })) : T("", !0),
6241
+ })) : I("", !0),
6230
6242
  s(d).view === "list" ? (v(), L(s(Od), {
6231
6243
  key: 1,
6232
6244
  class: "vf-toolbar-icon"
6233
- })) : T("", !0)
6245
+ })) : I("", !0)
6234
6246
  ], 8, xc)
6235
6247
  ])
6236
6248
  ]));
@@ -6345,7 +6357,7 @@ function Kc(o, e) {
6345
6357
  }
6346
6358
  const qc = { render: Kc };
6347
6359
  function vt(o, e = []) {
6348
- const t = "vfDragEnterCounter", n = o.fs, a = G(n.selectedItems);
6360
+ const t = "vfDragEnterCounter", n = o.fs, a = W(n.selectedItems);
6349
6361
  function l(w, u) {
6350
6362
  return !!(!w || w.type !== "dir" || w.path.startsWith(u) || a.value.some((D) => D.path === u ? !1 : !!w.path.startsWith(D.path)));
6351
6363
  }
@@ -6400,7 +6412,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6400
6412
  }, tu = { class: "relative" }, nu = ["title", "onClick"], ou = ["title"], su = { class: "vuefinder__breadcrumb__path-mode" }, iu = { class: "vuefinder__breadcrumb__path-mode-content" }, au = ["title"], ru = { class: "vuefinder__breadcrumb__path-text" }, lu = ["title"], du = ["data-theme"], cu = ["onClick"], uu = { class: "vuefinder__breadcrumb__hidden-item-content" }, vu = { class: "vuefinder__breadcrumb__hidden-item-text" }, fu = /* @__PURE__ */ X({
6401
6413
  __name: "Breadcrumb",
6402
6414
  setup(o) {
6403
- const e = J(), { t } = e.i18n, n = e.fs, a = e.config, l = G(a.state), d = G(n.path), r = G(n.loading), c = M(null), _ = Cn(0, 100), m = M(5), w = M(!1), u = M(!1), $ = N(() => d.value?.breadcrumb ?? []);
6415
+ const e = J(), { t } = e.i18n, n = e.fs, a = e.config, l = W(a.state), d = W(n.path), r = W(n.loading), c = M(null), _ = Cn(0, 100), m = M(5), w = M(!1), u = M(!1), $ = N(() => d.value?.breadcrumb ?? []);
6404
6416
  function D(z, x) {
6405
6417
  return z.length > x ? [z.slice(-x), z.slice(0, -x)] : [z, []];
6406
6418
  }
@@ -6413,15 +6425,15 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6413
6425
  if (!c.value) return;
6414
6426
  const z = c.value.children;
6415
6427
  let x = 0, b = 0;
6416
- const P = 5, I = 1;
6428
+ const P = 5, T = 1;
6417
6429
  m.value = P, Ae(() => {
6418
- for (let W = z.length - 1; W >= 0; W--) {
6419
- const se = z[W];
6420
- if (x + se.offsetWidth > _.value - 40)
6430
+ for (let G = z.length - 1; G >= 0; G--) {
6431
+ const te = z[G];
6432
+ if (x + te.offsetWidth > _.value - 40)
6421
6433
  break;
6422
- x += parseInt(se.offsetWidth.toString(), 10), b++;
6434
+ x += parseInt(te.offsetWidth.toString(), 10), b++;
6423
6435
  }
6424
- b < I && (b = I), b > P && (b = P), m.value = b;
6436
+ b < T && (b = T), b > P && (b = P), m.value = b;
6425
6437
  });
6426
6438
  });
6427
6439
  const h = () => {
@@ -6467,15 +6479,15 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6467
6479
  beforeUnmount(z) {
6468
6480
  document.body.removeEventListener("click", z.clickOutsideEvent);
6469
6481
  }
6470
- }, ne = () => {
6482
+ }, oe = () => {
6471
6483
  a.toggle("showTreeView");
6472
6484
  }, U = M({
6473
6485
  x: 0,
6474
6486
  y: 0
6475
6487
  }), ee = (z, x = null) => {
6476
6488
  if (z.currentTarget instanceof HTMLElement) {
6477
- const { x: b, y: P, height: I } = z.currentTarget.getBoundingClientRect();
6478
- U.value = { x: b, y: P + I };
6489
+ const { x: b, y: P, height: T } = z.currentTarget.getBoundingClientRect();
6490
+ U.value = { x: b, y: P + T };
6479
6491
  }
6480
6492
  w.value = x ?? !w.value;
6481
6493
  }, E = () => {
@@ -6491,7 +6503,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6491
6503
  }, [
6492
6504
  O(s(jc), {
6493
6505
  class: Z(["vuefinder__breadcrumb__toggle-tree", s(l).showTreeView ? "vuefinder__breadcrumb__toggle-tree--active" : ""]),
6494
- onClick: ne
6506
+ onClick: oe
6495
6507
  }, null, 8, ["class"])
6496
6508
  ], 8, Wc),
6497
6509
  i("span", {
@@ -6517,7 +6529,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6517
6529
  pe(i("div", Jc, [
6518
6530
  i("div", null, [
6519
6531
  O(s(Lc), Me({ class: "vuefinder__breadcrumb__home-icon" }, Re(s(k).events(C(-1))), {
6520
- onClick: x[1] || (x[1] = ie((b) => s(e).adapter.open(s(d).storage + "://"), ["stop"]))
6532
+ onClick: x[1] || (x[1] = ae((b) => s(e).adapter.open(s(d).storage + "://"), ["stop"]))
6521
6533
  }), null, 16)
6522
6534
  ]),
6523
6535
  i("div", Zc, [
@@ -6527,14 +6539,14 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6527
6539
  i("span", {
6528
6540
  class: "vuefinder__breadcrumb__hidden-toggle",
6529
6541
  onDragenter: x[2] || (x[2] = (b) => ee(b, !0)),
6530
- onClick: ie(ee, ["stop"])
6542
+ onClick: ae(ee, ["stop"])
6531
6543
  }, [
6532
6544
  O(s(En), { class: "vuefinder__breadcrumb__hidden-toggle-icon" })
6533
6545
  ], 32)
6534
6546
  ])
6535
6547
  ])), [
6536
6548
  [R, Y]
6537
- ]) : T("", !0)
6549
+ ]) : I("", !0)
6538
6550
  ]),
6539
6551
  i("div", {
6540
6552
  ref_key: "breadcrumbContainer",
@@ -6547,11 +6559,11 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6547
6559
  class: "vuefinder__breadcrumb__item pointer-events-auto",
6548
6560
  title: b.basename
6549
6561
  }, Re(s(k).events(b), !0), {
6550
- onClick: ie((I) => s(e).adapter.open(b.path), ["stop"])
6562
+ onClick: ae((T) => s(e).adapter.open(b.path), ["stop"])
6551
6563
  }), y(b.name), 17, nu)
6552
6564
  ]))), 128))
6553
6565
  ], 512),
6554
- s(a).get("loadingIndicator") === "circular" && s(r) ? (v(), L(s(xt), { key: 0 })) : T("", !0),
6566
+ s(a).get("loadingIndicator") === "circular" && s(r) ? (v(), L(s(xt), { key: 0 })) : I("", !0),
6555
6567
  i("span", {
6556
6568
  title: s(t)("Toggle Path Copy Mode"),
6557
6569
  onClick: E
@@ -6599,7 +6611,7 @@ const Gc = { class: "vuefinder__breadcrumb__container" }, Wc = ["title"], Yc = [
6599
6611
  key: P,
6600
6612
  class: "vuefinder__breadcrumb__hidden-item"
6601
6613
  }, Re(s(k).events(b), !0), {
6602
- onClick: (I) => B(b)
6614
+ onClick: (T) => B(b)
6603
6615
  }), [
6604
6616
  i("div", uu, [
6605
6617
  i("span", null, [
@@ -6641,7 +6653,7 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
6641
6653
  e.count > 1 ? (v(), L(s(sn), {
6642
6654
  key: 0,
6643
6655
  class: "vuefinder__drag-item__icon translate-x-1 translate-y-1"
6644
- })) : T("", !0),
6656
+ })) : I("", !0),
6645
6657
  O(s(sn), { class: "vuefinder__drag-item__icon" }),
6646
6658
  i("div", mu, y(e.count), 1)
6647
6659
  ]));
@@ -6657,7 +6669,7 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
6657
6669
  small: { type: Boolean }
6658
6670
  },
6659
6671
  setup(o) {
6660
- const e = o, t = J(), n = G(t.config.state), a = {
6672
+ const e = o, t = J(), n = W(t.config.state), a = {
6661
6673
  app: t,
6662
6674
  config: n.value,
6663
6675
  item: e.item
@@ -6673,7 +6685,7 @@ const sn = { render: pu }, hu = { class: "vuefinder__drag-item__container" }, mu
6673
6685
  key: 1,
6674
6686
  class: "vuefinder__item-icon__file"
6675
6687
  })),
6676
- o.ext && o.item.type !== "dir" && o.item.extension ? (v(), g("div", wu, y(o.item.extension.substring(0, 3)), 1)) : T("", !0)
6688
+ o.ext && o.item.type !== "dir" && o.item.extension ? (v(), g("div", wu, y(o.item.extension.substring(0, 3)), 1)) : I("", !0)
6677
6689
  ])
6678
6690
  ], 2));
6679
6691
  }
@@ -6746,7 +6758,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6746
6758
  return;
6747
6759
  }
6748
6760
  setTimeout(() => {
6749
- p || (C(), ne(U));
6761
+ p || (C(), oe(U));
6750
6762
  }, 100);
6751
6763
  }, B = (U) => {
6752
6764
  if (!S) return;
@@ -6761,7 +6773,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6761
6773
  if (p)
6762
6774
  return U.preventDefault(), U.stopPropagation(), !1;
6763
6775
  n("dragstart", U);
6764
- }, ne = (U) => {
6776
+ }, oe = (U) => {
6765
6777
  if (!$)
6766
6778
  $ = !0, n("click", U), u.value = setTimeout(() => {
6767
6779
  $ = !1;
@@ -6782,7 +6794,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6782
6794
  onTouchcancelCapture: ee[3] || (ee[3] = () => C()),
6783
6795
  onClick: Y,
6784
6796
  onDblclick: ee[4] || (ee[4] = (E) => n("dblclick", E)),
6785
- onContextmenu: ee[5] || (ee[5] = ie((E) => n("contextmenu", E), ["prevent", "stop"])),
6797
+ onContextmenu: ee[5] || (ee[5] = ae((E) => n("contextmenu", E), ["prevent", "stop"])),
6786
6798
  onDragstart: R,
6787
6799
  onDragend: ee[6] || (ee[6] = (E) => n("dragend", E))
6788
6800
  }, [
@@ -6791,7 +6803,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6791
6803
  key: 0,
6792
6804
  class: "vuefinder__item--readonly vuefinder__item--readonly--left",
6793
6805
  title: "Read Only"
6794
- })) : T("", !0),
6806
+ })) : I("", !0),
6795
6807
  i("div", xu, [
6796
6808
  (o.item.mime_type ?? "").startsWith("image") && o.showThumbnails ? (v(), g("img", {
6797
6809
  key: 0,
@@ -6805,7 +6817,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6805
6817
  item: o.item,
6806
6818
  ext: !0
6807
6819
  }, {
6808
- icon: oe((E) => [
6820
+ icon: se((E) => [
6809
6821
  $e(U.$slots, "icon", Ne(Ue(E)))
6810
6822
  ]),
6811
6823
  _: 3
@@ -6819,7 +6831,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6819
6831
  item: o.item,
6820
6832
  small: o.compact
6821
6833
  }, {
6822
- icon: oe((E) => [
6834
+ icon: se((E) => [
6823
6835
  $e(U.$slots, "icon", Ne(Ue(E)))
6824
6836
  ]),
6825
6837
  _: 3
@@ -6831,19 +6843,19 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6831
6843
  key: 0,
6832
6844
  class: "vuefinder__item--readonly vuefinder__item--readonly--list",
6833
6845
  title: "Read Only"
6834
- })) : T("", !0)
6846
+ })) : I("", !0)
6835
6847
  ])
6836
6848
  ]),
6837
- o.showPath ? (v(), g("div", Mu, y(o.item.path), 1)) : T("", !0),
6838
- o.showPath ? T("", !0) : (v(), g("div", Tu, [
6839
- o.item.file_size ? (v(), g("div", Iu, y(s(a).filesize(o.item.file_size)), 1)) : T("", !0)
6849
+ o.showPath ? (v(), g("div", Mu, y(o.item.path), 1)) : I("", !0),
6850
+ o.showPath ? I("", !0) : (v(), g("div", Tu, [
6851
+ o.item.file_size ? (v(), g("div", Iu, y(s(a).filesize(o.item.file_size)), 1)) : I("", !0)
6840
6852
  ])),
6841
- !o.showPath && o.item.last_modified ? (v(), g("div", Au, y(new Date(o.item.last_modified * 1e3).toLocaleString()), 1)) : T("", !0)
6853
+ !o.showPath && o.item.last_modified ? (v(), g("div", Au, y(new Date(o.item.last_modified * 1e3).toLocaleString()), 1)) : I("", !0)
6842
6854
  ])),
6843
6855
  s(h)("pinned") && s(d).get("pinnedFolders").find((E) => E.path === o.item.path) ? (v(), L(s(Lt), {
6844
6856
  key: 2,
6845
6857
  class: "vuefinder__item--pinned"
6846
- })) : T("", !0)
6858
+ })) : I("", !0)
6847
6859
  ], 46, ku));
6848
6860
  }
6849
6861
  }), Bu = ["data-row"], ln = /* @__PURE__ */ X({
@@ -6907,7 +6919,7 @@ const rn = { render: bu }, ku = ["data-key", "data-row", "data-col", "draggable"
6907
6919
  onDragstart: c[3] || (c[3] = (w) => n("dragstart", w)),
6908
6920
  onDragend: c[4] || (c[4] = (w) => n("dragend", w))
6909
6921
  }), {
6910
- icon: oe((w) => [
6922
+ icon: se((w) => [
6911
6923
  $e(r.$slots, "icon", Me({ ref_for: !0 }, w))
6912
6924
  ]),
6913
6925
  _: 3
@@ -6953,17 +6965,17 @@ const Uu = { render: Nu }, Ct = /* @__PURE__ */ X({
6953
6965
  o.direction === "asc" ? (v(), L(s(zu), {
6954
6966
  key: 0,
6955
6967
  class: "vuefinder__explorer__sort-icon"
6956
- })) : T("", !0),
6968
+ })) : I("", !0),
6957
6969
  o.direction === "desc" ? (v(), L(s(Uu), {
6958
6970
  key: 1,
6959
6971
  class: "vuefinder__explorer__sort-icon"
6960
- })) : T("", !0)
6972
+ })) : I("", !0)
6961
6973
  ]));
6962
6974
  }
6963
6975
  }), ju = { class: "vuefinder__explorer__header" }, Hu = /* @__PURE__ */ X({
6964
6976
  __name: "ExplorerHeader",
6965
6977
  setup(o) {
6966
- const e = J(), t = e.fs, { t: n } = e.i18n, a = G(t.sort);
6978
+ const e = J(), t = e.fs, { t: n } = e.i18n, a = W(t.sort);
6967
6979
  return (l, d) => (v(), g("div", ju, [
6968
6980
  i("div", {
6969
6981
  class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button",
@@ -7012,14 +7024,14 @@ function Ku(o, e) {
7012
7024
  } = e, c = o, _ = () => typeof a == "number" ? a : a.value, m = M(0), w = M(6), u = M(600);
7013
7025
  let $ = null;
7014
7026
  const D = N(() => Math.ceil(c.value.length / w.value)), S = N(() => D.value * _()), p = N(() => {
7015
- const R = _(), ne = Math.max(0, Math.floor(m.value / R) - l), U = Math.min(
7027
+ const R = _(), oe = Math.max(0, Math.floor(m.value / R) - l), U = Math.min(
7016
7028
  D.value,
7017
7029
  Math.ceil((m.value + u.value) / R) + l
7018
7030
  );
7019
- return { start: ne, end: U };
7031
+ return { start: oe, end: U };
7020
7032
  }), h = N(() => {
7021
- const { start: R, end: ne } = p.value;
7022
- return Array.from({ length: ne - R }, (U, ee) => R + ee);
7033
+ const { start: R, end: oe } = p.value;
7034
+ return Array.from({ length: oe - R }, (U, ee) => R + ee);
7023
7035
  }), f = () => u.value, k = () => r.value, C = () => {
7024
7036
  if (k()) {
7025
7037
  w.value = 1;
@@ -7030,8 +7042,8 @@ function Ku(o, e) {
7030
7042
  w.value = Math.max(Math.floor(R / n), 2);
7031
7043
  }
7032
7044
  }, F = (R) => {
7033
- const ne = R.target;
7034
- m.value = ne.scrollTop;
7045
+ const oe = R.target;
7046
+ m.value = oe.scrollTop;
7035
7047
  };
7036
7048
  le(
7037
7049
  () => c.value.length,
@@ -7039,16 +7051,16 @@ function Ku(o, e) {
7039
7051
  C();
7040
7052
  }
7041
7053
  );
7042
- const A = (R, ne) => {
7054
+ const A = (R, oe) => {
7043
7055
  if (!R || !Array.isArray(R))
7044
7056
  return [];
7045
- const U = ne * w.value;
7057
+ const U = oe * w.value;
7046
7058
  return R.slice(U, U + w.value);
7047
- }, B = (R, ne, U, ee, E) => {
7059
+ }, B = (R, oe, U, ee, E) => {
7048
7060
  if (!R || !Array.isArray(R))
7049
7061
  return [];
7050
7062
  const q = [];
7051
- for (let j = ne; j <= U; j++)
7063
+ for (let j = oe; j <= U; j++)
7052
7064
  for (let z = ee; z <= E; z++) {
7053
7065
  const x = j * w.value + z;
7054
7066
  x < R.length && R[x] && q.push(R[x]);
@@ -7062,8 +7074,8 @@ function Ku(o, e) {
7062
7074
  await Ae(), t.value && (u.value = t.value.clientHeight || 600), C(), window.addEventListener("resize", () => {
7063
7075
  t.value && (u.value = t.value.clientHeight || 600), C();
7064
7076
  }), t.value && "ResizeObserver" in window && ($ = new ResizeObserver((R) => {
7065
- const ne = R[0];
7066
- ne && (u.value = Math.round(ne.contentRect.height)), C();
7077
+ const oe = R[0];
7078
+ oe && (u.value = Math.round(oe.contentRect.height)), C();
7067
7079
  }), $.observe(t.value));
7068
7080
  }), ye(() => {
7069
7081
  window.removeEventListener("resize", C), $ && ($.disconnect(), $ = null);
@@ -7092,7 +7104,7 @@ function qu(o) {
7092
7104
  rowHeight: d,
7093
7105
  itemWidth: r,
7094
7106
  osInstance: c
7095
- } = o, _ = Math.floor(Math.random() * 2 ** 32).toString(), m = J(), w = m.fs, u = G(w.selectedKeys), $ = G(w.sortedFiles), D = N(() => {
7107
+ } = o, _ = Math.floor(Math.random() * 2 ** 32).toString(), m = J(), w = m.fs, u = W(w.selectedKeys), $ = W(w.sortedFiles), D = N(() => {
7096
7108
  const x = /* @__PURE__ */ new Map();
7097
7109
  return $.value && $.value.forEach((b) => {
7098
7110
  x.set(a(b), b);
@@ -7102,23 +7114,23 @@ function qu(o) {
7102
7114
  }, C = (x) => {
7103
7115
  if (u.value && u.value.size > 0) {
7104
7116
  const b = document.querySelectorAll(`.file-item-${_}[data-key]`), P = /* @__PURE__ */ new Map();
7105
- b.forEach((W) => {
7106
- const se = W.getAttribute("data-key");
7107
- se && P.set(se, W);
7117
+ b.forEach((G) => {
7118
+ const te = G.getAttribute("data-key");
7119
+ te && P.set(te, G);
7108
7120
  });
7109
- const I = [];
7110
- u.value.forEach((W) => {
7111
- const se = P.get(W);
7112
- se && F(W) && I.push(se);
7113
- }), I.forEach((W) => {
7114
- x.selection.select(W, !0);
7121
+ const T = [];
7122
+ u.value.forEach((G) => {
7123
+ const te = P.get(G);
7124
+ te && F(G) && T.push(te);
7125
+ }), T.forEach((G) => {
7126
+ x.selection.select(G, !0);
7115
7127
  });
7116
7128
  }
7117
7129
  }, F = (x) => {
7118
7130
  const b = D.value.get(x);
7119
7131
  if (!b) return !1;
7120
- const P = m.selectionFilterType, I = m.selectionFilterMimeIncludes;
7121
- return P === "files" && b.type === "dir" || P === "dirs" && b.type === "file" ? !1 : I && Array.isArray(I) && I.length > 0 ? b.type === "dir" ? !0 : b.mime_type ? I.some((W) => b.mime_type?.startsWith(W)) : !1 : !0;
7132
+ const P = m.selectionFilterType, T = m.selectionFilterMimeIncludes;
7133
+ return P === "files" && b.type === "dir" || P === "dirs" && b.type === "file" ? !1 : T && Array.isArray(T) && T.length > 0 ? b.type === "dir" ? !0 : b.mime_type ? T.some((G) => b.mime_type?.startsWith(G)) : !1 : !0;
7122
7134
  }, A = (x) => {
7123
7135
  if (m.selectionMode === "single")
7124
7136
  return !1;
@@ -7130,20 +7142,20 @@ function qu(o) {
7130
7142
  );
7131
7143
  if (P && (P.dataset.theme = m.theme.current), m.selectionMode === "single")
7132
7144
  return;
7133
- const I = x;
7134
- I && "type" in I && I.type === "touchend" && I.preventDefault();
7135
- const W = x;
7136
- !W?.ctrlKey && !W?.metaKey && (w.clearSelection(), b.clearSelection(!0, !0)), S.value.clear();
7145
+ const T = x;
7146
+ T && "type" in T && T.type === "touchend" && T.preventDefault();
7147
+ const G = x;
7148
+ !G?.ctrlKey && !G?.metaKey && (w.clearSelection(), b.clearSelection(!0, !0)), S.value.clear();
7137
7149
  }, R = (x) => {
7138
7150
  if (m.selectionMode === "single")
7139
7151
  return;
7140
7152
  const b = f(x.store.changed.added), P = f(x.store.changed.removed);
7141
- h.value = !1, p.value = !0, b.forEach((I) => {
7142
- u.value && !u.value.has(I) && F(I) && (S.value.add(I), w.select(I, m.selectionMode || "multiple"));
7143
- }), P.forEach((I) => {
7144
- document.querySelector(`[data-key="${I}"]`) && D.value.has(I) && S.value.delete(I), w.deselect(I);
7153
+ h.value = !1, p.value = !0, b.forEach((T) => {
7154
+ u.value && !u.value.has(T) && F(T) && (S.value.add(T), w.select(T, m.selectionMode || "multiple"));
7155
+ }), P.forEach((T) => {
7156
+ document.querySelector(`[data-key="${T}"]`) && D.value.has(T) && S.value.delete(T), w.deselect(T);
7145
7157
  }), x.selection.resolveSelectables(), C(x);
7146
- }, ne = () => {
7158
+ }, oe = () => {
7147
7159
  S.value.clear();
7148
7160
  }, U = (x) => {
7149
7161
  if (!x.event)
@@ -7151,24 +7163,24 @@ function qu(o) {
7151
7163
  const b = document.querySelector(".scroller-" + _);
7152
7164
  if (!b)
7153
7165
  return;
7154
- const P = b.getBoundingClientRect(), I = P.left, W = P.top;
7155
- let se = b.scrollTop;
7166
+ const P = b.getBoundingClientRect(), T = P.left, G = P.top;
7167
+ let te = b.scrollTop;
7156
7168
  if (c?.value) {
7157
7169
  const { viewport: Be } = c.value.elements();
7158
- Be && (se = Be.scrollTop);
7170
+ Be && (te = Be.scrollTop);
7159
7171
  }
7160
- const ae = l.value?.getAreaLocation();
7161
- if (!ae)
7172
+ const ie = l.value?.getAreaLocation();
7173
+ if (!ie)
7162
7174
  return;
7163
- const _e = Math.min(ae.x1, ae.x2), Ke = se + Math.min(ae.y1, ae.y2), je = Math.max(ae.x1, ae.x2), qe = se + Math.max(ae.y1, ae.y2), K = 4;
7164
- let ce = Math.floor((_e - I - K) / r), ue = Math.floor((je - I - K) / r);
7165
- const be = _e - I - K - ce * r, Qe = je - I - K - ue * r;
7175
+ const _e = Math.min(ie.x1, ie.x2), Ke = te + Math.min(ie.y1, ie.y2), je = Math.max(ie.x1, ie.x2), qe = te + Math.max(ie.y1, ie.y2), K = 4;
7176
+ let ce = Math.floor((_e - T - K) / r), ue = Math.floor((je - T - K) / r);
7177
+ const be = _e - T - K - ce * r, Qe = je - T - K - ue * r;
7166
7178
  be > r - K && (ce = ce + 1), Qe < K && (ue = ue - 1);
7167
7179
  const Wt = Math.max(0, ce), Yt = Math.min(e.value - 1, ue);
7168
- let Xe = Math.floor((Ke - W - K) / d.value), V = Math.floor((qe - W - K) / d.value);
7169
- const H = Ke - W - K - Xe * d.value, Q = qe - W - K - V * d.value, te = Math.floor((t.value - K) / d.value);
7180
+ let Xe = Math.floor((Ke - G - K) / d.value), V = Math.floor((qe - G - K) / d.value);
7181
+ const H = Ke - G - K - Xe * d.value, Q = qe - G - K - V * d.value, ne = Math.floor((t.value - K) / d.value);
7170
7182
  H > d.value - K && (Xe = Xe + 1), Q < K && (V = V - 1);
7171
- const Ie = Math.max(0, Xe), De = Math.min(V, te), Ee = n(
7183
+ const Ie = Math.max(0, Xe), De = Math.min(V, ne), Ee = n(
7172
7184
  $.value,
7173
7185
  Ie,
7174
7186
  De,
@@ -7229,7 +7241,7 @@ function qu(o) {
7229
7241
  F(b) || w.deselect(b);
7230
7242
  }), q(), E());
7231
7243
  }, z = (x) => {
7232
- h.value && (l.value?.clearSelection(), ne(), h.value = !1);
7244
+ h.value && (l.value?.clearSelection(), oe(), h.value = !1);
7233
7245
  const b = x;
7234
7246
  !S.value.size && !h.value && !b?.ctrlKey && !b?.metaKey && (w.clearSelection(), l.value?.clearSelection());
7235
7247
  };
@@ -7390,7 +7402,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7390
7402
  onFolderDclick: { type: Function }
7391
7403
  },
7392
7404
  setup(o) {
7393
- const e = o, t = J(), n = vt(t, ["vuefinder__drag-over"]), a = Ge("dragImage"), l = dn(null), d = Ge("scrollContainer"), r = Ge("scrollContent"), c = t.fs, _ = t.config, m = G(_.state), w = G(c.sortedFiles), u = G(c.selectedKeys), $ = G(c.loading), D = (K) => u.value?.has(K) ?? !1, S = N(() => {
7405
+ const e = o, t = J(), n = vt(t, ["vuefinder__drag-over"]), a = Ge("dragImage"), l = dn(null), d = Ge("scrollContainer"), r = Ge("scrollContent"), c = t.fs, _ = t.config, m = W(_.state), w = W(c.sortedFiles), u = W(c.selectedKeys), $ = W(c.loading), D = (K) => u.value?.has(K) ?? !1, S = N(() => {
7394
7406
  const K = m.value.view, ce = m.value.compactListView;
7395
7407
  return K === "grid" ? 88 : ce ? 24 : 50;
7396
7408
  }), { t: p } = t.i18n, {
@@ -7411,7 +7423,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7411
7423
  containerPadding: 0,
7412
7424
  lockItemsPerRow: N(() => m.value.view === "list")
7413
7425
  }
7414
- ), { osInstance: Y } = Qu(d, C), { explorerId: R, isDragging: ne, initializeSelectionArea: U, updateSelectionArea: ee, handleContentClick: E } = qu({
7426
+ ), { osInstance: Y } = Qu(d, C), { explorerId: R, isDragging: oe, initializeSelectionArea: U, updateSelectionArea: ee, handleContentClick: E } = qu({
7415
7427
  itemsPerRow: h,
7416
7428
  totalHeight: f,
7417
7429
  getItemsInRange: A,
@@ -7423,7 +7435,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7423
7435
  }), q = M(null), j = (K) => {
7424
7436
  if (!K || !q.value) return !1;
7425
7437
  const ce = u.value?.has(q.value) ?? !1;
7426
- return ne.value && (ce ? u.value?.has(K) ?? !1 : K === q.value);
7438
+ return oe.value && (ce ? u.value?.has(K) ?? !1 : K === q.value);
7427
7439
  };
7428
7440
  le(
7429
7441
  () => _.get("view"),
@@ -7436,7 +7448,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7436
7448
  });
7437
7449
  const z = (K) => w.value?.[K];
7438
7450
  Xu(d, t);
7439
- const { handleItemClick: x, handleItemDblClick: b, handleItemContextMenu: P, handleContentContextMenu: I } = Yu(
7451
+ const { handleItemClick: x, handleItemDblClick: b, handleItemContextMenu: P, handleContentContextMenu: T } = Yu(
7440
7452
  t,
7441
7453
  R,
7442
7454
  w,
@@ -7467,10 +7479,10 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7467
7479
  deep: !0
7468
7480
  });
7469
7481
  });
7470
- const W = (K) => {
7482
+ const G = (K) => {
7471
7483
  if (!(t.features?.move ?? !1) || K.altKey || K.ctrlKey || K.metaKey)
7472
7484
  return K.preventDefault(), !1;
7473
- ne.value = !0;
7485
+ oe.value = !0;
7474
7486
  const ue = K.target?.closest(
7475
7487
  ".file-item-" + R
7476
7488
  );
@@ -7479,51 +7491,51 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7479
7491
  const be = u.value?.has(q.value) ? Array.from(u.value) : [q.value];
7480
7492
  K.dataTransfer.setData("items", JSON.stringify(be)), c.setDraggedItem(q.value);
7481
7493
  }
7482
- }, se = () => {
7494
+ }, te = () => {
7483
7495
  q.value = null;
7484
7496
  };
7485
- let ae = null, _e = null;
7497
+ let ie = null, _e = null;
7486
7498
  const Ke = (K) => {
7487
- K.target?.closest(".file-item-" + R) || (_e = K, ae && clearTimeout(ae), ae = setTimeout(() => {
7488
- _e && (_e.cancelable && _e.preventDefault(), _e.stopPropagation(), I(_e)), _e = null, ae = null;
7499
+ K.target?.closest(".file-item-" + R) || (_e = K, ie && clearTimeout(ie), ie = setTimeout(() => {
7500
+ _e && (_e.cancelable && _e.preventDefault(), _e.stopPropagation(), T(_e)), _e = null, ie = null;
7489
7501
  }, 500));
7490
7502
  }, je = (K) => {
7491
- ae && (clearTimeout(ae), ae = null), _e = null;
7503
+ ie && (clearTimeout(ie), ie = null), _e = null;
7492
7504
  }, qe = (K) => {
7493
7505
  if (!_e) return;
7494
7506
  const ce = _e.touches[0] || _e.changedTouches[0], ue = K.touches[0] || K.changedTouches[0];
7495
7507
  if (ce && ue) {
7496
7508
  const be = Math.abs(ue.clientX - ce.clientX), Qe = Math.abs(ue.clientY - ce.clientY);
7497
- (be > 15 || Qe > 15) && (ae && (clearTimeout(ae), ae = null), _e = null);
7509
+ (be > 15 || Qe > 15) && (ie && (clearTimeout(ie), ie = null), _e = null);
7498
7510
  }
7499
7511
  };
7500
7512
  return (K, ce) => (v(), g("div", Ju, [
7501
- s(m).view === "list" ? (v(), L(Hu, { key: 0 })) : T("", !0),
7513
+ s(m).view === "list" ? (v(), L(Hu, { key: 0 })) : I("", !0),
7502
7514
  i("div", {
7503
7515
  ref_key: "scrollContainer",
7504
7516
  ref: d,
7505
7517
  class: Z(["vuefinder__explorer__selector-area", "scroller-" + s(R)])
7506
7518
  }, [
7507
- s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div", Zu)) : T("", !0),
7519
+ s(_).get("loadingIndicator") === "linear" && s($) ? (v(), g("div", Zu)) : I("", !0),
7508
7520
  i("div", {
7509
7521
  ref_key: "scrollContent",
7510
7522
  ref: r,
7511
7523
  class: "scrollContent vuefinder__explorer__scroll-content",
7512
7524
  style: Ve({ height: `${s(f)}px`, position: "relative", width: "100%" }),
7513
- onContextmenu: ce[0] || (ce[0] = ie(
7525
+ onContextmenu: ce[0] || (ce[0] = ae(
7514
7526
  //@ts-ignore
7515
- (...ue) => s(I) && s(I)(...ue),
7527
+ (...ue) => s(T) && s(T)(...ue),
7516
7528
  ["self", "prevent"]
7517
7529
  )),
7518
- onClick: ce[1] || (ce[1] = ie(
7530
+ onClick: ce[1] || (ce[1] = ae(
7519
7531
  //@ts-ignore
7520
7532
  (...ue) => s(E) && s(E)(...ue),
7521
7533
  ["self"]
7522
7534
  )),
7523
- onTouchstartCapture: ie(Ke, ["self"]),
7524
- onTouchendCapture: ie(je, ["self"]),
7525
- onTouchmoveCapture: ie(qe, ["self"]),
7526
- onTouchcancelCapture: ie(je, ["self"])
7535
+ onTouchstartCapture: ae(Ke, ["self"]),
7536
+ onTouchendCapture: ae(je, ["self"]),
7537
+ onTouchmoveCapture: ae(qe, ["self"]),
7538
+ onTouchcancelCapture: ae(je, ["self"])
7527
7539
  }, [
7528
7540
  i("div", {
7529
7541
  ref_key: "dragImage",
@@ -7549,10 +7561,10 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7549
7561
  onClick: s(x),
7550
7562
  onDblclick: s(b),
7551
7563
  onContextmenu: s(P),
7552
- onDragstart: W,
7553
- onDragend: se
7564
+ onDragstart: G,
7565
+ onDragend: te
7554
7566
  }, {
7555
- icon: oe((be) => [
7567
+ icon: se((be) => [
7556
7568
  $e(K.$slots, "icon", Me({ ref_for: !0 }, be))
7557
7569
  ]),
7558
7570
  _: 3
@@ -7570,10 +7582,10 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7570
7582
  onClick: s(x),
7571
7583
  onDblclick: s(b),
7572
7584
  onContextmenu: s(P),
7573
- onDragstart: W,
7574
- onDragend: se
7585
+ onDragstart: G,
7586
+ onDragend: te
7575
7587
  }, {
7576
- icon: oe((be) => [
7588
+ icon: se((be) => [
7577
7589
  $e(K.$slots, "icon", Me({ ref_for: !0 }, be))
7578
7590
  ]),
7579
7591
  _: 3
@@ -7744,7 +7756,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7744
7756
  }, _v = { class: "vuefinder__status-bar__actions" }, pv = /* @__PURE__ */ X({
7745
7757
  __name: "Statusbar",
7746
7758
  setup(o) {
7747
- const e = J(), { t } = e.i18n, n = e.fs, a = G(n.sortedFiles), l = G(n.path), d = G(n.selectedCount), r = G(n.storages), c = G(n.selectedItems), _ = G(n.path), m = (p) => {
7759
+ const e = J(), { t } = e.i18n, n = e.fs, a = W(n.sortedFiles), l = W(n.path), d = W(n.selectedCount), r = W(n.storages), c = W(n.selectedItems), _ = W(n.path), m = (p) => {
7748
7760
  const h = p.target.value;
7749
7761
  e.adapter.open(h + "://");
7750
7762
  }, w = N(() => !c.value || c.value.length === 0 ? 0 : c.value.reduce((p, h) => p + (h.file_size || 0), 0)), u = N(() => r.value), $ = N(() => a.value), D = N(() => d.value || 0), S = N(() => c.value || []);
@@ -7777,7 +7789,7 @@ const Ju = { class: "vuefinder__explorer__container" }, Zu = {
7777
7789
  i("div", cv, [
7778
7790
  D.value === 0 ? (v(), g("span", uv, y($.value.length) + " " + y(s(t)("items")), 1)) : (v(), g("span", vv, [
7779
7791
  de(y(D.value) + " " + y(s(t)("selected")) + " ", 1),
7780
- w.value ? (v(), g("span", fv, y(s(e).filesize(w.value)), 1)) : T("", !0)
7792
+ w.value ? (v(), g("span", fv, y(s(e).filesize(w.value)), 1)) : I("", !0)
7781
7793
  ]))
7782
7794
  ])
7783
7795
  ]),
@@ -7848,8 +7860,8 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
7848
7860
  n.value ? (v(), L(s($t), {
7849
7861
  key: 0,
7850
7862
  class: "vuefinder__folder-loader-indicator--minus"
7851
- })) : T("", !0),
7852
- n.value ? T("", !0) : (v(), L(s(kt), {
7863
+ })) : I("", !0),
7864
+ n.value ? I("", !0) : (v(), L(s(kt), {
7853
7865
  key: 1,
7854
7866
  class: "vuefinder__folder-loader-indicator--plus"
7855
7867
  }))
@@ -7866,7 +7878,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
7866
7878
  path: {}
7867
7879
  },
7868
7880
  setup(o) {
7869
- const e = J(), t = e.fs, n = vt(e, ["vuefinder__drag-over"]), a = M({}), { t: l } = e.i18n, d = G(t.path), r = o, c = M(null), _ = M(50);
7881
+ const e = J(), t = e.fs, n = vt(e, ["vuefinder__drag-over"]), a = M({}), { t: l } = e.i18n, d = W(t.path), r = o, c = M(null), _ = M(50);
7870
7882
  fe(() => {
7871
7883
  r.path === r.storage + "://" && c.value && st(c.value, {
7872
7884
  scrollbars: {
@@ -7887,7 +7899,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
7887
7899
  ref: c,
7888
7900
  class: "vuefinder__treesubfolderlist__container"
7889
7901
  }, [
7890
- m.value.length ? T("", !0) : (v(), g("li", bv, [
7902
+ m.value.length ? I("", !0) : (v(), g("li", bv, [
7891
7903
  i("div", kv, y(s(l)("No folders")), 1)
7892
7904
  ])),
7893
7905
  (v(!0), g(ve, null, he(m.value, (h) => (v(), g("li", {
@@ -7954,7 +7966,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
7954
7966
  class: "vuefinder__treesubfolderlist__load-more",
7955
7967
  onClick: $
7956
7968
  }, y(s(l)("load more")), 1)
7957
- ])) : T("", !0)
7969
+ ])) : I("", !0)
7958
7970
  ], 512);
7959
7971
  };
7960
7972
  }
@@ -7964,7 +7976,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
7964
7976
  storage: {}
7965
7977
  },
7966
7978
  setup(o) {
7967
- const e = J(), t = e.fs, n = M(!1), a = o, l = vt(e, ["vuefinder__drag-over"]), d = G(t.path), r = N(() => a.storage === d.value?.storage), c = {
7979
+ const e = J(), t = e.fs, n = M(!1), a = o, l = vt(e, ["vuefinder__drag-over"]), d = W(t.path), r = N(() => a.storage === d.value?.storage), c = {
7968
7980
  storage: a.storage,
7969
7981
  path: a.storage + "://",
7970
7982
  dir: a.storage + "://",
@@ -7996,7 +8008,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
7996
8008
  ], 16),
7997
8009
  i("div", {
7998
8010
  class: "vuefinder__treestorageitem__loader",
7999
- onClick: w[1] || (w[1] = ie((u) => n.value = !n.value, ["stop"]))
8011
+ onClick: w[1] || (w[1] = ae((u) => n.value = !n.value, ["stop"]))
8000
8012
  }, [
8001
8013
  O(zn, {
8002
8014
  modelValue: n.value,
@@ -8029,8 +8041,8 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
8029
8041
  e.value ? (v(), L(s($t), {
8030
8042
  key: 0,
8031
8043
  class: "vuefinder__folder-indicator--minus"
8032
- })) : T("", !0),
8033
- e.value ? T("", !0) : (v(), L(s(kt), {
8044
+ })) : I("", !0),
8045
+ e.value ? I("", !0) : (v(), L(s(kt), {
8034
8046
  key: 1,
8035
8047
  class: "vuefinder__folder-indicator--plus"
8036
8048
  }))
@@ -8046,7 +8058,7 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
8046
8058
  }, Vv = ["onClick"], zv = ["title"], Rv = ["onClick"], Nv = { key: 0 }, Uv = { class: "vuefinder__treeview__no-pinned" }, jv = /* @__PURE__ */ X({
8047
8059
  __name: "TreeView",
8048
8060
  setup(o) {
8049
- const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, { getStore: a, setStore: l } = e.storage, d = e.fs, r = e.config, c = G(r.state), _ = G(d.sortedFiles), m = G(d.storages), w = N(() => m.value || []), u = G(d.path), $ = vt(e, ["vuefinder__drag-over"]), D = M(190), S = M(a("pinned-folders-opened", !0));
8061
+ const e = J(), { enabled: t } = Te(), { t: n } = e.i18n, { getStore: a, setStore: l } = e.storage, d = e.fs, r = e.config, c = W(r.state), _ = W(d.sortedFiles), m = W(d.storages), w = N(() => m.value || []), u = W(d.path), $ = vt(e, ["vuefinder__drag-over"]), D = M(190), S = M(a("pinned-folders-opened", !0));
8050
8062
  le(S, (k) => l("pinned-folders-opened", k));
8051
8063
  const p = (k) => {
8052
8064
  const C = r.get("pinnedFolders");
@@ -8125,11 +8137,11 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
8125
8137
  s(u).path !== F.path ? (v(), L(s(Oe), {
8126
8138
  key: 0,
8127
8139
  class: "vuefinder__treeview__folder-icon vuefinder__item-icon__folder"
8128
- })) : T("", !0),
8140
+ })) : I("", !0),
8129
8141
  s(u).path === F.path ? (v(), L(s(zt), {
8130
8142
  key: 1,
8131
8143
  class: "vuefinder__item-icon__folder--open vuefinder__treeview__open-folder-icon"
8132
- })) : T("", !0),
8144
+ })) : I("", !0),
8133
8145
  i("div", {
8134
8146
  title: F.path,
8135
8147
  class: Z(["vuefinder__treeview__folder-name", {
@@ -8144,11 +8156,11 @@ const wv = { class: "vuefinder__folder-loader-indicator" }, yv = {
8144
8156
  O(s(gv), { class: "vuefinder__treeview__remove-icon" })
8145
8157
  ], 8, Rv)
8146
8158
  ]))), 128)),
8147
- s(c).pinnedFolders.length ? T("", !0) : (v(), g("li", Nv, [
8159
+ s(c).pinnedFolders.length ? I("", !0) : (v(), g("li", Nv, [
8148
8160
  i("div", Uv, y(s(n)("No folders pinned")), 1)
8149
8161
  ]))
8150
- ])) : T("", !0)
8151
- ])) : T("", !0),
8162
+ ])) : I("", !0)
8163
+ ])) : I("", !0),
8152
8164
  (v(!0), g(ve, null, he(w.value, (F) => (v(), g("div", {
8153
8165
  key: F,
8154
8166
  class: "vuefinder__treeview__storage"
@@ -8309,7 +8321,7 @@ const Rn = [
8309
8321
  },
8310
8322
  {
8311
8323
  id: we.move,
8312
- title: ({ t: o }) => o("Move"),
8324
+ title: ({ t: o }) => o("Move files"),
8313
8325
  action: (o, e) => {
8314
8326
  const t = o.fs, n = {
8315
8327
  storage: t.path.get().storage || "",
@@ -8438,7 +8450,7 @@ const Rn = [
8438
8450
  },
8439
8451
  { deep: !0 }
8440
8452
  );
8441
- const r = a.fs, c = G(d.state);
8453
+ const r = a.fs, c = W(d.state);
8442
8454
  Jr();
8443
8455
  const { isDraggingExternal: _, handleDragEnter: m, handleDragOver: w, handleDragLeave: u, handleDrop: $ } = Zr();
8444
8456
  function D(p) {
@@ -8513,9 +8525,9 @@ const Rn = [
8513
8525
  }, [
8514
8526
  s(_) ? (v(), g("div", qv, [
8515
8527
  i("div", Gv, y(s(a).i18n.t("Drag and drop the files/folders to here.")), 1)
8516
- ])) : T("", !0),
8517
- s(c).showMenuBar ? (v(), L($d, { key: 1 })) : T("", !0),
8518
- s(c).showToolbar ? (v(), L(Sc, { key: 2 })) : T("", !0),
8528
+ ])) : I("", !0),
8529
+ s(c).showMenuBar ? (v(), L($d, { key: 1 })) : I("", !0),
8530
+ s(c).showToolbar ? (v(), L(Sc, { key: 2 })) : I("", !0),
8519
8531
  O(fu),
8520
8532
  i("div", Wv, [
8521
8533
  O(jv),
@@ -8523,14 +8535,14 @@ const Rn = [
8523
8535
  "on-file-dclick": n.onFileDclick,
8524
8536
  "on-folder-dclick": n.onFolderDclick
8525
8537
  }, {
8526
- icon: oe((f) => [
8538
+ icon: se((f) => [
8527
8539
  $e(p.$slots, "icon", Ne(Ue(f)))
8528
8540
  ]),
8529
8541
  _: 3
8530
8542
  }, 8, ["on-file-dclick", "on-folder-dclick"])
8531
8543
  ]),
8532
8544
  O(pv, null, {
8533
- actions: oe((f) => [
8545
+ actions: se((f) => [
8534
8546
  $e(p.$slots, "status-bar", Ne(Ue(f)))
8535
8547
  ]),
8536
8548
  _: 3
@@ -8538,8 +8550,8 @@ const Rn = [
8538
8550
  ], 34),
8539
8551
  (v(), L(gt, { to: "body" }, [
8540
8552
  O(qn, { name: "fade" }, {
8541
- default: oe(() => [
8542
- s(a).modal.visible ? (v(), L(cn(s(a).modal.type), { key: 0 })) : T("", !0)
8553
+ default: se(() => [
8554
+ s(a).modal.visible ? (v(), L(cn(s(a).modal.type), { key: 0 })) : I("", !0)
8543
8555
  ]),
8544
8556
  _: 1
8545
8557
  })
@@ -8591,10 +8603,10 @@ const Rn = [
8591
8603
  ), oo(t, n), Gn(Dt, t), vn(() => {
8592
8604
  so(t);
8593
8605
  }), (a, l) => (v(), L(Yv, Ne(Ue(e)), {
8594
- icon: oe((d) => [
8606
+ icon: se((d) => [
8595
8607
  $e(a.$slots, "icon", Ne(Ue(d)))
8596
8608
  ]),
8597
- "status-bar": oe((d) => [
8609
+ "status-bar": se((d) => [
8598
8610
  $e(a.$slots, "status-bar", Ne(Ue(d)))
8599
8611
  ]),
8600
8612
  _: 3
@@ -8609,6 +8621,7 @@ const Rn = [
8609
8621
  };
8610
8622
  export {
8611
8623
  ff as ArrayDriver,
8624
+ At as BaseAdapter,
8612
8625
  we as ContextMenuIds,
8613
8626
  _f as IndexedDBDriver,
8614
8627
  wn as RemoteDriver,
@@ -8616,5 +8629,6 @@ export {
8616
8629
  pf as VueFinderPlugin,
8617
8630
  Qv as VueFinderProvider,
8618
8631
  Rn as contextMenuItems,
8619
- pf as default
8632
+ pf as default,
8633
+ en as parseBackendError
8620
8634
  };