vuefinder 1.1.9 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vuefinder.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as L, watch as Ot, inject as R, openBlock as y, createElementBlock as C, createElementVNode as d, unref as x, normalizeClass as de, createTextVNode as ie, toDisplayString as E, createCommentVNode as G, createVNode as _e, TransitionGroup as Ya, withCtx as J, Fragment as le, renderList as we, reactive as Mt, onMounted as ke, onUpdated as Wa, withDirectives as ye, vShow as _t, withModifiers as Re, nextTick as It, vModelSelect as Br, customRef as Xa, withKeys as tt, isRef as qa, vModelText as rt, normalizeStyle as ho, provide as it, createBlock as Z, resolveDynamicComponent as Ga, renderSlot as Yt } from "vue";
1
+ import { ref as L, watch as Ot, inject as R, openBlock as y, createElementBlock as C, createElementVNode as u, unref as x, normalizeClass as de, createTextVNode as ie, toDisplayString as E, createCommentVNode as G, createVNode as _e, TransitionGroup as Ya, withCtx as J, Fragment as le, renderList as we, reactive as Mt, onMounted as ke, onUpdated as Wa, withDirectives as ye, vShow as _t, withModifiers as Re, nextTick as It, vModelSelect as Br, customRef as Xa, withKeys as tt, isRef as qa, vModelText as rt, normalizeStyle as ho, provide as it, createBlock as Z, resolveDynamicComponent as Ga, renderSlot as Yt } from "vue";
2
2
  import Ht from "plupload";
3
3
  var uo;
4
4
  const $t = (uo = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : uo.getAttribute("content"), Et = (t, { method: e = "get", params: r = {}, json: o = !0, signal: i = null }) => {
@@ -55,7 +55,7 @@ function Me() {
55
55
  const Za = { class: "border-neutral-300 flex justify-between items-center py-1 text-sm" }, Qa = {
56
56
  key: 0,
57
57
  class: "flex text-center"
58
- }, es = ["aria-label"], ts = /* @__PURE__ */ d("svg", {
58
+ }, es = ["aria-label"], ts = /* @__PURE__ */ u("svg", {
59
59
  xmlns: "http://www.w3.org/2000/svg",
60
60
  class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
61
61
  fill: "none",
@@ -63,14 +63,14 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
63
63
  stroke: "none",
64
64
  "stroke-width": "1.5"
65
65
  }, [
66
- /* @__PURE__ */ d("path", {
66
+ /* @__PURE__ */ u("path", {
67
67
  "stroke-linecap": "round",
68
68
  "stroke-linejoin": "round",
69
69
  d: "M12 10.5v6m3-3H9m4.06-7.19l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"
70
70
  })
71
71
  ], -1), rs = [
72
72
  ts
73
- ], os = ["aria-label"], as = /* @__PURE__ */ d("svg", {
73
+ ], os = ["aria-label"], as = /* @__PURE__ */ u("svg", {
74
74
  xmlns: "http://www.w3.org/2000/svg",
75
75
  class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
76
76
  fill: "none",
@@ -78,26 +78,26 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
78
78
  stroke: "none",
79
79
  "stroke-width": "1.5"
80
80
  }, [
81
- /* @__PURE__ */ d("path", {
81
+ /* @__PURE__ */ u("path", {
82
82
  "stroke-linecap": "round",
83
83
  "stroke-linejoin": "round",
84
84
  d: "M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"
85
85
  })
86
86
  ], -1), ss = [
87
87
  as
88
- ], is = ["aria-label"], ns = /* @__PURE__ */ d("path", {
88
+ ], is = ["aria-label"], ns = /* @__PURE__ */ u("path", {
89
89
  "stroke-linecap": "round",
90
90
  "stroke-linejoin": "round",
91
91
  d: "M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"
92
92
  }, null, -1), ls = [
93
93
  ns
94
- ], cs = ["aria-label"], us = /* @__PURE__ */ d("path", {
94
+ ], cs = ["aria-label"], us = /* @__PURE__ */ u("path", {
95
95
  "stroke-linecap": "round",
96
96
  "stroke-linejoin": "round",
97
97
  d: "M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
98
98
  }, null, -1), ds = [
99
99
  us
100
- ], hs = ["aria-label"], fs = /* @__PURE__ */ d("svg", {
100
+ ], hs = ["aria-label"], fs = /* @__PURE__ */ u("svg", {
101
101
  xmlns: "http://www.w3.org/2000/svg",
102
102
  class: "h-6 w-6 md:h-8 md:w-8 m-auto cursor-pointer stroke-gray-500 hover:stroke-cyan-700 dark:stroke-gray-400 dark:hover:stroke-gray-300",
103
103
  fill: "none",
@@ -105,20 +105,20 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
105
105
  stroke: "none",
106
106
  "stroke-width": "1.5"
107
107
  }, [
108
- /* @__PURE__ */ d("path", {
108
+ /* @__PURE__ */ u("path", {
109
109
  "stroke-linecap": "round",
110
110
  "stroke-linejoin": "round",
111
111
  d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"
112
112
  })
113
113
  ], -1), ms = [
114
114
  fs
115
- ], gs = ["aria-label"], ps = /* @__PURE__ */ d("path", {
115
+ ], gs = ["aria-label"], ps = /* @__PURE__ */ u("path", {
116
116
  "stroke-linecap": "round",
117
117
  "stroke-linejoin": "round",
118
118
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
119
119
  }, null, -1), vs = [
120
120
  ps
121
- ], bs = ["aria-label"], ys = /* @__PURE__ */ d("path", {
121
+ ], bs = ["aria-label"], ys = /* @__PURE__ */ u("path", {
122
122
  "stroke-linecap": "round",
123
123
  "stroke-linejoin": "round",
124
124
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
@@ -133,21 +133,21 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
133
133
  xmlns: "http://www.w3.org/2000/svg",
134
134
  fill: "none",
135
135
  viewBox: "0 0 24 24"
136
- }, Ds = /* @__PURE__ */ d("circle", {
136
+ }, Ds = /* @__PURE__ */ u("circle", {
137
137
  class: "opacity-25 stroke-blue-900 dark:stroke-blue-100",
138
138
  cx: "12",
139
139
  cy: "12",
140
140
  r: "10",
141
141
  stroke: "currentColor",
142
142
  "stroke-width": "4"
143
- }, null, -1), Cs = /* @__PURE__ */ d("path", {
143
+ }, null, -1), Cs = /* @__PURE__ */ u("path", {
144
144
  class: "opacity-75",
145
145
  fill: "currentColor",
146
146
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
147
147
  }, null, -1), Ms = [
148
148
  Ds,
149
149
  Cs
150
- ], $s = { class: "flex text-center items-center justify-end" }, Es = ["aria-label"], Ts = /* @__PURE__ */ d("path", {
150
+ ], $s = { class: "flex text-center items-center justify-end" }, Es = ["aria-label"], Ts = /* @__PURE__ */ u("path", {
151
151
  "stroke-linecap": "round",
152
152
  "stroke-linejoin": "round",
153
153
  d: "M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"
@@ -191,7 +191,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
191
191
  e.on("vf-search-query", ({ newQuery: b }) => {
192
192
  g.value = b;
193
193
  });
194
- const m = R("loadingState"), u = () => m.value, v = () => {
194
+ const m = R("loadingState"), d = () => m.value, v = () => {
195
195
  f.value = !f.value, e.emit("vf-fullscreen-toggle");
196
196
  };
197
197
  return e.on("vf-nodes-selected", (b) => {
@@ -200,27 +200,27 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
200
200
  o("viewport", b), a.value = b;
201
201
  }), (b, T) => (y(), C("div", Za, [
202
202
  g.value.length ? (y(), C("div", xs, [
203
- d("div", _s, [
203
+ u("div", _s, [
204
204
  ie(E(x(i)("Search results for")) + " ", 1),
205
- d("span", ks, E(g.value), 1)
205
+ u("span", ks, E(g.value), 1)
206
206
  ]),
207
- u() ? (y(), C("svg", Ss, Ms)) : G("", !0)
207
+ d() ? (y(), C("svg", Ss, Ms)) : G("", !0)
208
208
  ])) : (y(), C("div", Qa, [
209
- d("div", {
209
+ u("div", {
210
210
  class: "mx-1.5",
211
211
  "aria-label": x(i)("New Folder"),
212
212
  "data-microtip-position": "bottom-right",
213
213
  role: "tooltip",
214
214
  onClick: T[0] || (T[0] = (k) => x(e).emit("vf-modal-show", { type: "new-folder", items: n.value }))
215
215
  }, rs, 8, es),
216
- d("div", {
216
+ u("div", {
217
217
  class: "mx-1.5",
218
218
  "aria-label": x(i)("New File"),
219
219
  "data-microtip-position": "bottom",
220
220
  role: "tooltip",
221
221
  onClick: T[1] || (T[1] = (k) => x(e).emit("vf-modal-show", { type: "new-file", items: n.value }))
222
222
  }, ss, 8, os),
223
- d("div", {
223
+ u("div", {
224
224
  class: "mx-1.5",
225
225
  "aria-label": x(i)("Rename"),
226
226
  "data-microtip-position": "bottom",
@@ -236,7 +236,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
236
236
  "stroke-width": "1.5"
237
237
  }, ls, 2))
238
238
  ], 8, is),
239
- d("div", {
239
+ u("div", {
240
240
  class: "mx-1.5",
241
241
  "aria-label": x(i)("Delete"),
242
242
  "data-microtip-position": "bottom",
@@ -252,7 +252,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
252
252
  "stroke-width": "1.5"
253
253
  }, ds, 2))
254
254
  ], 8, cs),
255
- d("div", {
255
+ u("div", {
256
256
  class: "mx-1.5",
257
257
  "aria-label": x(i)("Upload"),
258
258
  "data-microtip-position": "bottom",
@@ -293,8 +293,8 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
293
293
  }, ws, 2))
294
294
  ], 8, bs))
295
295
  ])),
296
- d("div", $s, [
297
- d("div", {
296
+ u("div", $s, [
297
+ u("div", {
298
298
  class: "mx-1.5",
299
299
  "aria-label": x(i)("Dark Mode"),
300
300
  "data-microtip-position": "bottom",
@@ -309,7 +309,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
309
309
  class: "h-6 w-6 m-auto cursor-pointer stroke-sky-500 fill-sky-100 hover:stroke-sky-600 dark:stroke-gray-400 dark:fill-gray-400/20 dark:hover:stroke-gray-300"
310
310
  }, As))
311
311
  ], 8, Es),
312
- d("div", {
312
+ u("div", {
313
313
  class: "mx-1.5",
314
314
  "aria-label": x(i)("Toggle Full Screen"),
315
315
  "data-microtip-position": "bottom-left",
@@ -320,7 +320,7 @@ const Za = { class: "border-neutral-300 flex justify-between items-center py-1 t
320
320
  f.value ? (y(), C("path", Ls)) : (y(), C("path", Ps))
321
321
  ]))
322
322
  ], 8, Os),
323
- d("div", {
323
+ u("div", {
324
324
  class: "mx-1.5",
325
325
  "aria-label": x(i)("Change View"),
326
326
  "data-microtip-position": "bottom-left",
@@ -399,17 +399,17 @@ var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
399
399
  writable: !0,
400
400
  configurable: !0
401
401
  }
402
- }), l && u(h, l);
402
+ }), l && d(h, l);
403
403
  }
404
404
  function m(h) {
405
405
  return m = Object.setPrototypeOf ? Object.getPrototypeOf : function(s) {
406
406
  return s.__proto__ || Object.getPrototypeOf(s);
407
407
  }, m(h);
408
408
  }
409
- function u(h, l) {
410
- return u = Object.setPrototypeOf || function(p, c) {
409
+ function d(h, l) {
410
+ return d = Object.setPrototypeOf || function(p, c) {
411
411
  return p.__proto__ = c, p;
412
- }, u(h, l);
412
+ }, d(h, l);
413
413
  }
414
414
  function v() {
415
415
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
@@ -428,7 +428,7 @@ var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
428
428
  var D = [null];
429
429
  D.push.apply(D, w);
430
430
  var $ = Function.bind.apply(c, D), I = new $();
431
- return _ && u(I, _.prototype), I;
431
+ return _ && d(I, _.prototype), I;
432
432
  }, b.apply(null, arguments);
433
433
  }
434
434
  function T(h) {
@@ -456,7 +456,7 @@ var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
456
456
  writable: !0,
457
457
  configurable: !0
458
458
  }
459
- }), u(c, p);
459
+ }), d(c, p);
460
460
  }, k(h);
461
461
  }
462
462
  function S(h) {
@@ -1766,7 +1766,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
1766
1766
  class: "h-5 w-5",
1767
1767
  viewBox: "0 0 20 20",
1768
1768
  fill: "currentColor"
1769
- }, Ks = /* @__PURE__ */ d("path", {
1769
+ }, Ks = /* @__PURE__ */ u("path", {
1770
1770
  "fill-rule": "evenodd",
1771
1771
  d: "M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",
1772
1772
  "clip-rule": "evenodd"
@@ -1778,7 +1778,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
1778
1778
  class: "h-5 w-5",
1779
1779
  viewBox: "0 0 20 20",
1780
1780
  fill: "currentColor"
1781
- }, Ws = /* @__PURE__ */ d("path", {
1781
+ }, Ws = /* @__PURE__ */ u("path", {
1782
1782
  "fill-rule": "evenodd",
1783
1783
  d: "M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",
1784
1784
  "clip-rule": "evenodd"
@@ -1801,7 +1801,7 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
1801
1801
  const e = R("emitter"), { getStore: r } = R("storage"), o = L(r("full-screen", !1)), i = (g) => g == "error" ? "text-red-400 border-red-400 dark:text-red-300 dark:border-red-300" : "text-lime-600 border-lime-600 dark:text-lime-300 dark:border-lime-1300", a = L([]), n = (g) => {
1802
1802
  a.value.splice(g, 1);
1803
1803
  }, f = (g) => {
1804
- let m = a.value.findIndex((u) => u.id === g);
1804
+ let m = a.value.findIndex((d) => d.id === g);
1805
1805
  m !== -1 && n(m);
1806
1806
  };
1807
1807
  return e.on("vf-toast-clear", () => {
@@ -1820,11 +1820,11 @@ const Hs = fo.exports, mo = (t, e, r, o, i) => (e = Math, r = e.log, o = 1024, i
1820
1820
  "leave-to-class": "opacity-0"
1821
1821
  }, {
1822
1822
  default: J(() => [
1823
- (y(!0), C(le, null, we(a.value, (u, v) => (y(), C("div", {
1823
+ (y(!0), C(le, null, we(a.value, (d, v) => (y(), C("div", {
1824
1824
  onClick: (b) => n(v),
1825
- key: u,
1826
- class: de([i(u.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
1827
- }, E(u.label), 11, Gs))), 128))
1825
+ key: d,
1826
+ class: de([i(d.type), "inline-block mx-auto my-0.5 py-0.5 px-2 min-w-max bg-gray-50 dark:bg-gray-600 border text-xs sm:text-sm rounded cursor-pointer"])
1827
+ }, E(d.label), 11, Gs))), 128))
1828
1828
  ]),
1829
1829
  _: 1
1830
1830
  })
@@ -2174,7 +2174,7 @@ Ne && ti(vt, window.lazyLoadOptions);
2174
2174
  const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2175
2175
  key: 0,
2176
2176
  class: "grid grid-cols-12 border-b border-neutral-300 border-gray-200 dark:border-gray-700 text-xs select-none"
2177
- }, un = { class: "absolute" }, dn = /* @__PURE__ */ d("svg", {
2177
+ }, un = { class: "absolute" }, dn = /* @__PURE__ */ u("svg", {
2178
2178
  xmlns: "http://www.w3.org/2000/svg",
2179
2179
  class: "absolute h-6 w-6 md:h-12 md:w-12 m-auto stroke-neutral-500 fill-white dark:fill-gray-700 dark:stroke-gray-600 z-10",
2180
2180
  fill: "none",
@@ -2182,7 +2182,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2182
2182
  stroke: "currentColor",
2183
2183
  "stroke-width": "1"
2184
2184
  }, [
2185
- /* @__PURE__ */ d("path", {
2185
+ /* @__PURE__ */ u("path", {
2186
2186
  "stroke-linecap": "round",
2187
2187
  "stroke-linejoin": "round",
2188
2188
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
@@ -2195,7 +2195,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2195
2195
  viewBox: "0 0 24 24",
2196
2196
  stroke: "currentColor",
2197
2197
  "stroke-width": "1"
2198
- }, vn = /* @__PURE__ */ d("path", {
2198
+ }, vn = /* @__PURE__ */ u("path", {
2199
2199
  "stroke-linecap": "round",
2200
2200
  "stroke-linejoin": "round",
2201
2201
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
@@ -2209,7 +2209,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2209
2209
  viewBox: "0 0 24 24",
2210
2210
  stroke: "currentColor",
2211
2211
  "stroke-width": "1"
2212
- }, wn = /* @__PURE__ */ d("path", {
2212
+ }, wn = /* @__PURE__ */ u("path", {
2213
2213
  "stroke-linecap": "round",
2214
2214
  "stroke-linejoin": "round",
2215
2215
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
@@ -2223,7 +2223,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2223
2223
  viewBox: "0 0 24 24",
2224
2224
  stroke: "currentColor",
2225
2225
  "stroke-width": "1"
2226
- }, $n = /* @__PURE__ */ d("path", {
2226
+ }, $n = /* @__PURE__ */ u("path", {
2227
2227
  "stroke-linecap": "round",
2228
2228
  "stroke-linejoin": "round",
2229
2229
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
@@ -2237,7 +2237,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2237
2237
  viewBox: "0 0 24 24",
2238
2238
  stroke: "currentColor",
2239
2239
  "stroke-width": "1"
2240
- }, An = /* @__PURE__ */ d("path", {
2240
+ }, An = /* @__PURE__ */ u("path", {
2241
2241
  "stroke-linecap": "round",
2242
2242
  "stroke-linejoin": "round",
2243
2243
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
@@ -2251,7 +2251,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2251
2251
  viewBox: "0 0 24 24",
2252
2252
  stroke: "currentColor",
2253
2253
  "stroke-width": "1"
2254
- }, zn = /* @__PURE__ */ d("path", {
2254
+ }, zn = /* @__PURE__ */ u("path", {
2255
2255
  "stroke-linecap": "round",
2256
2256
  "stroke-linejoin": "round",
2257
2257
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
@@ -2265,7 +2265,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2265
2265
  viewBox: "0 0 24 24",
2266
2266
  stroke: "currentColor",
2267
2267
  "stroke-width": "1"
2268
- }, Un = /* @__PURE__ */ d("path", {
2268
+ }, Un = /* @__PURE__ */ u("path", {
2269
2269
  "stroke-linecap": "round",
2270
2270
  "stroke-linejoin": "round",
2271
2271
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
@@ -2283,7 +2283,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2283
2283
  search: Object
2284
2284
  },
2285
2285
  setup(t) {
2286
- const e = t, r = R("emitter"), { setStore: o, getStore: i } = R("storage"), a = (N) => N == null ? void 0 : N.substring(0, 3), n = (N) => N.replace(/((?=([\w\W]{0,14}))([\w\W]{8,})([\w\W]{8,}))/, "$2..$4"), f = L(null), g = L(null), m = L(0), u = L(null), { t: v } = R("i18n"), b = Math.floor(Math.random() * 2 ** 32), T = L(i("full-screen", !1)), k = new vt();
2286
+ const e = t, r = R("emitter"), { setStore: o, getStore: i } = R("storage"), a = (N) => N == null ? void 0 : N.substring(0, 3), n = (N) => N.replace(/((?=([\w\W]{0,14}))([\w\W]{8,})([\w\W]{8,}))/, "$2..$4"), f = L(null), g = L(null), m = L(0), d = L(null), { t: v } = R("i18n"), b = Math.floor(Math.random() * 2 ** 32), T = L(i("full-screen", !1)), k = new vt();
2287
2287
  r.on("vf-fullscreen-toggle", () => {
2288
2288
  T.value = !T.value, o("full-screen", T.value);
2289
2289
  });
@@ -2327,7 +2327,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2327
2327
  return V.active && (B = B.slice().sort((ue, ee) => q(ue[O], ee[O]) * X)), B;
2328
2328
  }, M = (N) => {
2329
2329
  V.active && V.column == N ? (V.active = V.order == "asc", V.column = N, V.order = "desc") : (V.active = !0, V.column = N, V.order = "asc");
2330
- }, K = () => u.value.getSelection().map((N) => JSON.parse(N.dataset.item)), Q = (N, B) => {
2330
+ }, K = () => d.value.getSelection().map((N) => JSON.parse(N.dataset.item)), Q = (N, B) => {
2331
2331
  if (N.altKey || N.ctrlKey || N.metaKey)
2332
2332
  return N.preventDefault(), !1;
2333
2333
  N.dataTransfer.setDragImage(g.value, 0, 15), N.dataTransfer.effectAllowed = "all", N.dataTransfer.dropEffect = "copy", N.dataTransfer.setData("items", JSON.stringify(K()));
@@ -2340,35 +2340,35 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2340
2340
  }
2341
2341
  r.emit("vf-modal-show", { type: "move", items: { from: O, to: B } });
2342
2342
  }, he = (N, B) => {
2343
- N.preventDefault(), !B || B.type !== "dir" || u.value.getSelection().find((O) => O == N.currentTarget) ? (N.dataTransfer.dropEffect = "none", N.dataTransfer.effectAllowed = "none") : N.dataTransfer.dropEffect = "copy";
2343
+ N.preventDefault(), !B || B.type !== "dir" || d.value.getSelection().find((O) => O == N.currentTarget) ? (N.dataTransfer.dropEffect = "none", N.dataTransfer.effectAllowed = "none") : N.dataTransfer.dropEffect = "copy";
2344
2344
  };
2345
2345
  return ke(() => {
2346
- u.value = new Hs({
2346
+ d.value = new Hs({
2347
2347
  area: f.value,
2348
2348
  keyboardDrag: !1,
2349
2349
  selectedClass: "vf-explorer-selected",
2350
2350
  selectorClass: "vf-explorer-selector"
2351
2351
  }), r.on("vf-explorer-update", () => It(() => {
2352
- u.value.clearSelection(), u.value.setSelectables(document.getElementsByClassName("vf-item-" + b));
2353
- })), u.value.subscribe("predragstart", ({ event: N, isDragging: B }) => {
2352
+ d.value.clearSelection(), d.value.setSelectables(document.getElementsByClassName("vf-item-" + b));
2353
+ })), d.value.subscribe("predragstart", ({ event: N, isDragging: B }) => {
2354
2354
  if (B)
2355
- m.value = u.value.getSelection().length, u.value.break();
2355
+ m.value = d.value.getSelection().length, d.value.break();
2356
2356
  else {
2357
2357
  const O = N.target.offsetWidth - N.offsetX, X = N.target.offsetHeight - N.offsetY;
2358
- O < 15 && X < 15 && (u.value.clearSelection(), u.value.break());
2358
+ O < 15 && X < 15 && (d.value.clearSelection(), d.value.break());
2359
2359
  }
2360
- }), u.value.subscribe("predragmove", ({ isDragging: N }) => {
2361
- N && u.value.break();
2362
- }), u.value.subscribe("callback", ({ items: N, event: B, isDragging: O }) => {
2363
- r.emit("vf-nodes-selected", K()), m.value = u.value.getSelection().length;
2360
+ }), d.value.subscribe("predragmove", ({ isDragging: N }) => {
2361
+ N && d.value.break();
2362
+ }), d.value.subscribe("callback", ({ items: N, event: B, isDragging: O }) => {
2363
+ r.emit("vf-nodes-selected", K()), m.value = d.value.getSelection().length;
2364
2364
  });
2365
2365
  }), Wa(() => {
2366
- u.value.Area.reset(), u.value.SelectorArea.updatePos(), k.update();
2366
+ d.value.Area.reset(), d.value.SelectorArea.updatePos(), k.update();
2367
2367
  }), ke(() => {
2368
2368
  Ot(() => e.view, () => r.emit("vf-explorer-update"));
2369
2369
  }), (N, B) => (y(), C("div", ln, [
2370
2370
  t.view == "list" || S.value.length ? (y(), C("div", cn, [
2371
- d("div", {
2371
+ u("div", {
2372
2372
  onClick: B[0] || (B[0] = (O) => M("basename")),
2373
2373
  class: "col-span-7 py-1 leading-6 hover:bg-neutral-100 bg-neutral-50 dark:bg-gray-800 dark:hover:bg-gray-700/10 flex items-center pl-1"
2374
2374
  }, [
@@ -2416,17 +2416,17 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2416
2416
  ])
2417
2417
  ])) : G("", !0)
2418
2418
  ])) : G("", !0),
2419
- d("div", un, [
2420
- d("div", {
2419
+ u("div", un, [
2420
+ u("div", {
2421
2421
  ref_key: "dragImage",
2422
2422
  ref: g,
2423
2423
  class: "absolute -z-50 -top-96"
2424
2424
  }, [
2425
2425
  dn,
2426
- d("div", hn, E(m.value), 1)
2426
+ u("div", hn, E(m.value), 1)
2427
2427
  ], 512)
2428
2428
  ]),
2429
- d("div", {
2429
+ u("div", {
2430
2430
  onContextmenu: B[10] || (B[10] = Re((O) => x(r).emit("vf-contextmenu-show", { event: O, area: f.value, items: K() }), ["self", "prevent"])),
2431
2431
  class: de([T.value ? "" : "resize-y", "h-full w-full text-xs vf-selector-area min-h-[150px] overflow-auto p-1 z-0"]),
2432
2432
  ref_key: "selectorArea",
@@ -2442,12 +2442,12 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2442
2442
  "data-item": JSON.stringify(O),
2443
2443
  "data-index": X
2444
2444
  }, [
2445
- d("div", mn, [
2446
- d("div", gn, [
2445
+ u("div", mn, [
2446
+ u("div", gn, [
2447
2447
  O.type == "dir" ? (y(), C("svg", pn, bn)) : (y(), C("svg", yn, xn)),
2448
- d("span", _n, E(O.basename), 1)
2448
+ u("span", _n, E(O.basename), 1)
2449
2449
  ]),
2450
- d("div", kn, E(O.path), 1)
2450
+ u("div", kn, E(O.path), 1)
2451
2451
  ])
2452
2452
  ], 42, fn))), 256)) : G("", !0),
2453
2453
  t.view == "list" && !S.value.length ? (y(!0), C(le, { key: 1 }, we(W(), (O, X) => (y(), C("div", {
@@ -2464,13 +2464,13 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2464
2464
  "data-item": JSON.stringify(O),
2465
2465
  "data-index": X
2466
2466
  }, [
2467
- d("div", Dn, [
2468
- d("div", Cn, [
2467
+ u("div", Dn, [
2468
+ u("div", Cn, [
2469
2469
  O.type == "dir" ? (y(), C("svg", Mn, En)) : (y(), C("svg", Tn, On)),
2470
- d("span", In, E(O.basename), 1)
2470
+ u("span", In, E(O.basename), 1)
2471
2471
  ]),
2472
- d("div", Ln, E(O.file_size ? x(mo)(O.file_size) : ""), 1),
2473
- d("div", Pn, E(x(go)(O.last_modified)), 1)
2472
+ u("div", Ln, E(O.file_size ? x(mo)(O.file_size) : ""), 1),
2473
+ u("div", Pn, E(x(go)(O.last_modified)), 1)
2474
2474
  ])
2475
2475
  ], 42, Sn))), 256)) : G("", !0),
2476
2476
  t.view == "grid" && !S.value.length ? (y(!0), C(le, { key: 2 }, we(W(!1), (O, X) => {
@@ -2489,8 +2489,8 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2489
2489
  "data-item": JSON.stringify(O),
2490
2490
  "data-index": X
2491
2491
  }, [
2492
- d("div", null, [
2493
- d("div", jn, [
2492
+ u("div", null, [
2493
+ u("div", jn, [
2494
2494
  O.type == "dir" ? (y(), C("svg", Vn, Rn)) : ((q = O.mime_type) != null ? q : "").startsWith("image") ? (y(), C("img", {
2495
2495
  key: 1,
2496
2496
  class: "lazy h-10 md:h-12 m-auto",
@@ -2499,7 +2499,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2499
2499
  }, null, 8, Bn)) : (y(), C("svg", Hn, Kn)),
2500
2500
  !((ue = O.mime_type) != null ? ue : "").startsWith("image") && O.type != "dir" ? (y(), C("div", Fn, E(a(O.extension)), 1)) : G("", !0)
2501
2501
  ]),
2502
- d("span", Yn, E(n(O.basename)), 1)
2502
+ u("span", Yn, E(n(O.basename)), 1)
2503
2503
  ])
2504
2504
  ], 42, Nn);
2505
2505
  }), 256)) : G("", !0)
@@ -2507,7 +2507,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2507
2507
  _e(Zs)
2508
2508
  ]));
2509
2509
  }
2510
- }), qn = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, Gn = { class: "flex leading-5 items-center" }, Jn = ["aria-label"], Zn = /* @__PURE__ */ d("svg", {
2510
+ }), qn = "1.1.12", Gn = { class: "p-1 text-xs border-t border-neutral-300 dark:border-gray-700/50 flex justify-between select-none" }, Jn = { class: "flex leading-5 items-center" }, Zn = ["aria-label"], Qn = /* @__PURE__ */ u("svg", {
2511
2511
  xmlns: "http://www.w3.org/2000/svg",
2512
2512
  class: "h-5 w-5",
2513
2513
  fill: "none",
@@ -2515,17 +2515,17 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2515
2515
  stroke: "currentColor",
2516
2516
  "stroke-width": "1"
2517
2517
  }, [
2518
- /* @__PURE__ */ d("path", {
2518
+ /* @__PURE__ */ u("path", {
2519
2519
  "stroke-linecap": "round",
2520
2520
  "stroke-linejoin": "round",
2521
2521
  d: "M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"
2522
2522
  })
2523
- ], -1), Qn = [
2524
- Zn
2525
- ], el = ["value"], tl = { class: "ml-3" }, rl = { key: 0 }, ol = { class: "ml-1" }, al = { class: "flex leading-5 items-center" }, sl = {
2523
+ ], -1), el = [
2524
+ Qn
2525
+ ], tl = ["value"], rl = { class: "ml-3" }, ol = { key: 0 }, al = { class: "ml-1" }, sl = { class: "flex leading-5 items-center" }, il = {
2526
2526
  value: "",
2527
2527
  disabled: ""
2528
- }, il = /* @__PURE__ */ d("option", { value: "en" }, "English", -1), nl = /* @__PURE__ */ d("option", { value: "fr" }, "French", -1), ll = /* @__PURE__ */ d("option", { value: "ru" }, "Russian", -1), cl = /* @__PURE__ */ d("option", { value: "tr" }, "Turkish", -1), ul = ["aria-label"], dl = /* @__PURE__ */ d("svg", {
2528
+ }, nl = /* @__PURE__ */ u("option", { value: "en" }, "English", -1), ll = /* @__PURE__ */ u("option", { value: "fr" }, "French", -1), cl = /* @__PURE__ */ u("option", { value: "ru" }, "Russian", -1), ul = /* @__PURE__ */ u("option", { value: "tr" }, "Turkish", -1), dl = ["aria-label"], hl = /* @__PURE__ */ u("svg", {
2529
2529
  xmlns: "http://www.w3.org/2000/svg",
2530
2530
  class: "h-5 w-5 stroke-slate-500 cursor-pointer",
2531
2531
  fill: "none",
@@ -2533,22 +2533,22 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2533
2533
  stroke: "currentColor",
2534
2534
  "stroke-width": "2"
2535
2535
  }, [
2536
- /* @__PURE__ */ d("path", {
2536
+ /* @__PURE__ */ u("path", {
2537
2537
  "stroke-linecap": "round",
2538
2538
  "stroke-linejoin": "round",
2539
2539
  d: "M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
2540
2540
  })
2541
- ], -1), hl = [
2542
- dl
2543
- ], fl = {
2541
+ ], -1), fl = [
2542
+ hl
2543
+ ], ml = {
2544
2544
  name: "VFStatusbar"
2545
- }, ml = /* @__PURE__ */ Object.assign(fl, {
2545
+ }, gl = /* @__PURE__ */ Object.assign(ml, {
2546
2546
  props: {
2547
2547
  data: Object
2548
2548
  },
2549
2549
  setup(t) {
2550
2550
  var b;
2551
- const e = t, r = R("emitter"), { getStore: o, setStore: i } = R("storage"), a = L(0), n = L((b = o("adapter")) != null ? b : e.data.adapter), { t: f, changeLocale: g } = R("i18n"), m = L(o("locale", "")), u = () => {
2551
+ const e = t, r = R("emitter"), { getStore: o, setStore: i } = R("storage"), a = L(0), n = L((b = o("adapter")) != null ? b : e.data.adapter), { t: f, changeLocale: g } = R("i18n"), m = L(o("locale", "")), d = () => {
2552
2552
  r.emit("vf-search-exit"), r.emit("vf-fetch", { params: { q: "index", adapter: n.value } }), i("adapter", n.value);
2553
2553
  };
2554
2554
  r.on("vf-nodes-selected", (T) => {
@@ -2557,65 +2557,65 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2557
2557
  const v = L("");
2558
2558
  return r.on("vf-search-query", ({ newQuery: T }) => {
2559
2559
  v.value = T;
2560
- }), (T, k) => (y(), C("div", qn, [
2561
- d("div", Gn, [
2562
- d("div", {
2560
+ }), (T, k) => (y(), C("div", Gn, [
2561
+ u("div", Jn, [
2562
+ u("div", {
2563
2563
  class: "mx-2",
2564
2564
  "aria-label": x(f)("Storage"),
2565
2565
  "data-microtip-position": "top-right",
2566
2566
  role: "tooltip"
2567
- }, Qn, 8, Jn),
2568
- ye(d("select", {
2567
+ }, el, 8, Zn),
2568
+ ye(u("select", {
2569
2569
  "onUpdate:modelValue": k[0] || (k[0] = (S) => n.value = S),
2570
- onChange: u,
2570
+ onChange: d,
2571
2571
  class: "py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8"
2572
2572
  }, [
2573
- (y(!0), C(le, null, we(t.data.storages, (S) => (y(), C("option", { value: S }, E(S), 9, el))), 256))
2573
+ (y(!0), C(le, null, we(t.data.storages, (S) => (y(), C("option", { value: S }, E(S), 9, tl))), 256))
2574
2574
  ], 544), [
2575
2575
  [Br, n.value]
2576
2576
  ]),
2577
- d("div", tl, [
2578
- v.value.length ? (y(), C("span", rl, E(t.data.files.length) + " items found. ", 1)) : G("", !0),
2579
- d("span", ol, E(a.value > 0 ? a.value + " " + x(f)("item(s) selected.") : ""), 1)
2577
+ u("div", rl, [
2578
+ v.value.length ? (y(), C("span", ol, E(t.data.files.length) + " items found. ", 1)) : G("", !0),
2579
+ u("span", al, E(a.value > 0 ? a.value + " " + x(f)("item(s) selected.") : ""), 1)
2580
2580
  ])
2581
2581
  ]),
2582
- d("div", al, [
2583
- ye(d("select", {
2582
+ u("div", sl, [
2583
+ ye(u("select", {
2584
2584
  "onUpdate:modelValue": k[1] || (k[1] = (S) => m.value = S),
2585
2585
  onChange: k[2] || (k[2] = (S) => x(g)(S.target.value)),
2586
2586
  class: "py-0.5 text-sm text-slate-500 dark:text-neutral-50 dark:bg-gray-700 rounded pl-2 pr-8 mr-3"
2587
2587
  }, [
2588
- d("option", sl, E(x(f)("Language")), 1),
2589
- il,
2588
+ u("option", il, E(x(f)("Language")), 1),
2590
2589
  nl,
2591
2590
  ll,
2592
- cl
2591
+ cl,
2592
+ ul
2593
2593
  ], 544), [
2594
2594
  [Br, m.value]
2595
2595
  ]),
2596
- d("span", {
2596
+ u("span", {
2597
2597
  "aria-label": x(f)("About"),
2598
2598
  "data-microtip-position": "top-left",
2599
2599
  role: "tooltip",
2600
- onClick: k[3] || (k[3] = (S) => x(r).emit("vf-modal-show", { type: "message", title: "Vuefinder 1.0", message: x(f)("Vuefinder is a file manager component for vue 3.") }))
2601
- }, hl, 8, ul)
2600
+ onClick: k[3] || (k[3] = (S) => x(r).emit("vf-modal-show", { type: "message", title: "Vuefinder " + x(qn), message: x(f)("Vuefinder is a file manager component for vue 3.") }))
2601
+ }, fl, 8, dl)
2602
2602
  ])
2603
2603
  ]));
2604
2604
  }
2605
- }), gl = (t, e = 0, r = !1) => {
2605
+ }), pl = (t, e = 0, r = !1) => {
2606
2606
  let o;
2607
2607
  return (...i) => {
2608
2608
  r && !o && t(...i), clearTimeout(o), o = setTimeout(() => {
2609
2609
  t(...i);
2610
2610
  }, e);
2611
2611
  };
2612
- }, pl = (t, e, r) => {
2612
+ }, vl = (t, e, r) => {
2613
2613
  const o = L(t);
2614
2614
  return Xa((a, n) => ({
2615
2615
  get() {
2616
2616
  return a(), o.value;
2617
2617
  },
2618
- set: gl(
2618
+ set: pl(
2619
2619
  (f) => {
2620
2620
  o.value = f, n();
2621
2621
  },
@@ -2623,70 +2623,70 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2623
2623
  r
2624
2624
  )
2625
2625
  }));
2626
- }, vl = { class: "flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs" }, bl = ["aria-label"], yl = /* @__PURE__ */ d("path", {
2626
+ }, bl = { class: "flex p-1.5 bg-neutral-100 dark:bg-gray-800 border-t border-b border-neutral-300 dark:border-gray-700/50 items-center select-none text-xs" }, yl = ["aria-label"], wl = /* @__PURE__ */ u("path", {
2627
2627
  "fill-rule": "evenodd",
2628
2628
  d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z",
2629
2629
  "clip-rule": "evenodd"
2630
- }, null, -1), wl = [
2631
- yl
2632
- ], xl = ["aria-label"], _l = /* @__PURE__ */ d("path", { d: "M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" }, null, -1), kl = [
2633
- _l
2634
- ], Sl = {
2630
+ }, null, -1), xl = [
2631
+ wl
2632
+ ], _l = ["aria-label"], kl = /* @__PURE__ */ u("path", { d: "M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z" }, null, -1), Sl = [
2633
+ kl
2634
+ ], Dl = {
2635
2635
  key: 1,
2636
2636
  "aria-label": "Cancel",
2637
2637
  "data-microtip-position": "bottom-right",
2638
2638
  role: "tooltip"
2639
- }, Dl = /* @__PURE__ */ d("path", {
2639
+ }, Cl = /* @__PURE__ */ u("path", {
2640
2640
  "stroke-linecap": "round",
2641
2641
  "stroke-linejoin": "round",
2642
2642
  d: "M6 18L18 6M6 6l12 12"
2643
- }, null, -1), Cl = [
2644
- Dl
2645
- ], Ml = ["onClick"], $l = /* @__PURE__ */ d("path", { d: "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" }, null, -1), El = [
2646
- $l
2647
- ], Tl = { class: "flex leading-5" }, Al = /* @__PURE__ */ d("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), Ol = ["title", "onClick"], Il = {
2643
+ }, null, -1), Ml = [
2644
+ Cl
2645
+ ], $l = ["onClick"], El = /* @__PURE__ */ u("path", { d: "M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z" }, null, -1), Tl = [
2646
+ El
2647
+ ], Al = { class: "flex leading-5" }, Ol = /* @__PURE__ */ u("span", { class: "text-neutral-300 dark:text-gray-600 mx-0.5" }, "/", -1), Il = ["title", "onClick"], Ll = {
2648
2648
  key: 0,
2649
2649
  class: "animate-spin p-1 h-6 w-6 text-white ml-auto",
2650
2650
  xmlns: "http://www.w3.org/2000/svg",
2651
2651
  fill: "none",
2652
2652
  viewBox: "0 0 24 24"
2653
- }, Ll = /* @__PURE__ */ d("circle", {
2653
+ }, Pl = /* @__PURE__ */ u("circle", {
2654
2654
  class: "opacity-25 stroke-blue-900 dark:stroke-blue-100",
2655
2655
  cx: "12",
2656
2656
  cy: "12",
2657
2657
  r: "10",
2658
2658
  stroke: "currentColor",
2659
2659
  "stroke-width": "4"
2660
- }, null, -1), Pl = /* @__PURE__ */ d("path", {
2660
+ }, null, -1), Nl = /* @__PURE__ */ u("path", {
2661
2661
  class: "opacity-75",
2662
2662
  fill: "currentColor",
2663
2663
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
2664
- }, null, -1), Nl = [
2665
- Ll,
2666
- Pl
2667
- ], jl = {
2664
+ }, null, -1), jl = [
2665
+ Pl,
2666
+ Nl
2667
+ ], Vl = {
2668
2668
  key: 3,
2669
2669
  class: "flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full"
2670
- }, Vl = /* @__PURE__ */ d("svg", {
2670
+ }, zl = /* @__PURE__ */ u("svg", {
2671
2671
  class: "h-6 w-6 p-1 m-auto stroke-gray-400 fill-gray-100 dark:stroke-gray-400 dark:fill-gray-400/20",
2672
2672
  xmlns: "http://www.w3.org/2000/svg",
2673
2673
  viewBox: "0 0 20 20",
2674
2674
  fill: "currentColor"
2675
2675
  }, [
2676
- /* @__PURE__ */ d("path", {
2676
+ /* @__PURE__ */ u("path", {
2677
2677
  "stroke-linecap": "round",
2678
2678
  "stroke-linejoin": "round",
2679
2679
  d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"
2680
2680
  })
2681
- ], -1), zl = ["onKeydown", "placeholder"], Rl = /* @__PURE__ */ d("path", {
2681
+ ], -1), Rl = ["onKeydown", "placeholder"], Bl = /* @__PURE__ */ u("path", {
2682
2682
  "stroke-linecap": "round",
2683
2683
  "stroke-linejoin": "round",
2684
2684
  d: "M6 18L18 6M6 6l12 12"
2685
- }, null, -1), Bl = [
2686
- Rl
2687
- ], Hl = {
2685
+ }, null, -1), Hl = [
2686
+ Bl
2687
+ ], Ul = {
2688
2688
  name: "VFBreadcrumb"
2689
- }, Ul = /* @__PURE__ */ Object.assign(Hl, {
2689
+ }, Kl = /* @__PURE__ */ Object.assign(Ul, {
2690
2690
  props: {
2691
2691
  data: Object
2692
2692
  },
@@ -2704,15 +2704,15 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2704
2704
  });
2705
2705
  }), j.length > 4 && (j = j.slice(-5), j[0].name = ".."), a.value = j;
2706
2706
  });
2707
- const u = () => {
2707
+ const d = () => {
2708
2708
  n.value = !1, b.value = "";
2709
2709
  };
2710
2710
  r.on("vf-search-exit", () => {
2711
- u();
2711
+ d();
2712
2712
  });
2713
2713
  const v = () => {
2714
2714
  n.value = !0, It(() => f.value.focus());
2715
- }, b = pl("", 400), T = () => m.value;
2715
+ }, b = vl("", 400), T = () => m.value;
2716
2716
  Ot(b, (H) => {
2717
2717
  r.emit("vf-toast-clear"), r.emit("vf-search-query", { newQuery: H });
2718
2718
  });
@@ -2731,10 +2731,10 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2731
2731
  }, P = (H) => {
2732
2732
  H.preventDefault(), k() ? H.dataTransfer.dropEffect = "copy" : (H.dataTransfer.dropEffect = "none", H.dataTransfer.effectAllowed = "none");
2733
2733
  }, F = () => {
2734
- b.value == "" && u();
2734
+ b.value == "" && d();
2735
2735
  };
2736
- return (H, j) => (y(), C("div", vl, [
2737
- d("span", {
2736
+ return (H, j) => (y(), C("div", bl, [
2737
+ u("span", {
2738
2738
  "aria-label": x(g)("Go up a directory"),
2739
2739
  "data-microtip-position": "bottom-right",
2740
2740
  role: "tooltip"
@@ -2750,9 +2750,9 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2750
2750
  xmlns: "http://www.w3.org/2000/svg",
2751
2751
  viewBox: "0 0 20 20",
2752
2752
  fill: "currentColor"
2753
- }, wl, 34))
2754
- ], 8, bl),
2755
- T() ? (y(), C("span", Sl, [
2753
+ }, xl, 34))
2754
+ ], 8, yl),
2755
+ T() ? (y(), C("span", Dl, [
2756
2756
  (y(), C("svg", {
2757
2757
  onClick: j[4] || (j[4] = (V) => x(r).emit("vf-fetch-abort")),
2758
2758
  xmlns: "http://www.w3.org/2000/svg",
@@ -2761,7 +2761,7 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2761
2761
  "stroke-width": "1.5",
2762
2762
  stroke: "currentColor",
2763
2763
  class: "h-6 w-6 p-1 rounded text-slate-700 hover:bg-neutral-300 dark:text-neutral-200 dark:hover:bg-gray-700 cursor-pointer"
2764
- }, Cl))
2764
+ }, Ml))
2765
2765
  ])) : (y(), C("span", {
2766
2766
  key: 0,
2767
2767
  "aria-label": x(g)("Refresh"),
@@ -2776,31 +2776,31 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2776
2776
  xmlns: "http://www.w3.org/2000/svg",
2777
2777
  viewBox: "-40 -40 580 580",
2778
2778
  fill: "currentColor"
2779
- }, kl))
2780
- ], 8, xl)),
2781
- n.value ? (y(), C("div", jl, [
2782
- Vl,
2783
- ye(d("input", {
2779
+ }, Sl))
2780
+ ], 8, _l)),
2781
+ n.value ? (y(), C("div", Vl, [
2782
+ zl,
2783
+ ye(u("input", {
2784
2784
  ref_key: "searchInput",
2785
2785
  ref: f,
2786
- onKeydown: tt(u, ["esc"]),
2786
+ onKeydown: tt(d, ["esc"]),
2787
2787
  onBlur: F,
2788
2788
  "onUpdate:modelValue": j[6] || (j[6] = (V) => qa(b) ? b.value = V : null),
2789
2789
  placeholder: x(g)("Search anything.."),
2790
2790
  class: "py-0 px-2 w-full border-0 ring-0 outline-0 text-sm text-gray-600 focus:ring-transparent focus:border-transparent dark:focus:ring-transparent dark:focus:border-transparent dark:text-gray-300 bg-transparent",
2791
2791
  type: "text"
2792
- }, null, 40, zl), [
2792
+ }, null, 40, Rl), [
2793
2793
  [rt, x(b)]
2794
2794
  ]),
2795
2795
  (y(), C("svg", {
2796
2796
  class: "w-6 h-6 cursor-pointer",
2797
- onClick: u,
2797
+ onClick: d,
2798
2798
  xmlns: "http://www.w3.org/2000/svg",
2799
2799
  fill: "none",
2800
2800
  viewBox: "0 0 24 24",
2801
2801
  "stroke-width": "1.5",
2802
2802
  stroke: "currentColor"
2803
- }, Bl))
2803
+ }, Hl))
2804
2804
  ])) : (y(), C("div", {
2805
2805
  key: 2,
2806
2806
  class: "group flex bg-white dark:bg-gray-700 items-center rounded p-1 ml-2 w-full",
@@ -2812,24 +2812,24 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2812
2812
  xmlns: "http://www.w3.org/2000/svg",
2813
2813
  viewBox: "0 0 20 20",
2814
2814
  fill: "currentColor"
2815
- }, El)),
2816
- d("div", Tl, [
2815
+ }, Tl)),
2816
+ u("div", Al, [
2817
2817
  (y(!0), C(le, null, we(a.value, (V, W) => (y(), C("div", { key: W }, [
2818
- Al,
2819
- d("span", {
2818
+ Ol,
2819
+ u("span", {
2820
2820
  class: "px-1.5 py-1 text-slate-700 dark:text-slate-200 hover:bg-neutral-100 dark:hover:bg-gray-800 rounded cursor-pointer",
2821
2821
  title: V.basename,
2822
2822
  onClick: (M) => x(r).emit("vf-fetch", { params: { q: "index", adapter: t.data.adapter, path: V.path } })
2823
- }, E(V.name), 9, Ol)
2823
+ }, E(V.name), 9, Il)
2824
2824
  ]))), 128))
2825
2825
  ]),
2826
- T() ? (y(), C("svg", Il, Nl)) : G("", !0)
2827
- ], 8, Ml))
2826
+ T() ? (y(), C("svg", Ll, jl)) : G("", !0)
2827
+ ], 8, $l))
2828
2828
  ]));
2829
2829
  }
2830
- }), Kl = ["onClick"], Fl = /* @__PURE__ */ d("span", { class: "px-1" }, null, -1), Yl = {
2830
+ }), Fl = ["onClick"], Yl = /* @__PURE__ */ u("span", { class: "px-1" }, null, -1), Wl = {
2831
2831
  name: "VFContextMenu"
2832
- }, Wl = /* @__PURE__ */ Object.assign(Yl, {
2832
+ }, Xl = /* @__PURE__ */ Object.assign(Wl, {
2833
2833
  props: {
2834
2834
  current: Object
2835
2835
  },
@@ -2909,17 +2909,17 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2909
2909
  }
2910
2910
  }, m = (b) => {
2911
2911
  r.emit("vf-contextmenu-hide"), b.action();
2912
- }, u = L("");
2912
+ }, d = L("");
2913
2913
  r.on("vf-search-query", ({ newQuery: b }) => {
2914
- u.value = b;
2914
+ d.value = b;
2915
2915
  }), r.on("vf-contextmenu-show", ({ event: b, area: T, items: k, target: S = null }) => {
2916
- if (a.items = [], u.value)
2916
+ if (a.items = [], d.value)
2917
2917
  if (S)
2918
2918
  a.items.push(g.openDir), r.emit("vf-context-selected", [S]);
2919
2919
  else
2920
2920
  return;
2921
2921
  else
2922
- !S && !u.value ? (a.items.push(g.refresh), a.items.push(g.newfolder), r.emit("vf-context-selected", [])) : k.length > 1 && k.some((P) => P.path === S.path) ? (a.items.push(g.refresh), a.items.push(g.archive), a.items.push(g.delete), r.emit("vf-context-selected", k)) : (S.type == "dir" ? a.items.push(g.open) : (a.items.push(g.preview), a.items.push(g.download)), a.items.push(g.rename), S.mime_type == "application/zip" ? a.items.push(g.unarchive) : a.items.push(g.archive), a.items.push(g.delete), r.emit("vf-context-selected", [S]));
2922
+ !S && !d.value ? (a.items.push(g.refresh), a.items.push(g.newfolder), r.emit("vf-context-selected", [])) : k.length > 1 && k.some((P) => P.path === S.path) ? (a.items.push(g.refresh), a.items.push(g.archive), a.items.push(g.delete), r.emit("vf-context-selected", k)) : (S.type == "dir" ? a.items.push(g.open) : (a.items.push(g.preview), a.items.push(g.download)), a.items.push(g.rename), S.mime_type == "application/zip" ? a.items.push(g.unarchive) : a.items.push(g.archive), a.items.push(g.delete), r.emit("vf-context-selected", [S]));
2923
2923
  v(b, T);
2924
2924
  }), r.on("vf-contextmenu-hide", () => {
2925
2925
  a.active = !1;
@@ -2945,40 +2945,42 @@ const ln = { class: "relative flex-auto flex flex-col overflow-hidden" }, cn = {
2945
2945
  key: k.title,
2946
2946
  onClick: (S) => m(k)
2947
2947
  }, [
2948
- Fl,
2949
- d("span", null, E(k.title()), 1)
2950
- ], 8, Kl))), 128))
2948
+ Yl,
2949
+ u("span", null, E(k.title()), 1)
2950
+ ], 8, Fl))), 128))
2951
2951
  ], 4)) : G("", !0);
2952
2952
  }
2953
- }), Xl = (t, e) => {
2953
+ }), ql = (t, e) => {
2954
2954
  const r = t[e];
2955
2955
  return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((o, i) => {
2956
2956
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(i.bind(null, new Error("Unknown variable dynamic import: " + e)));
2957
2957
  });
2958
2958
  };
2959
- async function ql(t) {
2960
- const e = await Xl(/* @__PURE__ */ Object.assign({ "../locales/en.json": () => import("./en.4dabcb3e.js"), "../locales/ru.json": () => import("./ru.743f06d0.js"), "../locales/tr.json": () => import("./tr.f45cbe8b.js") }), `../locales/${t}.json`);
2959
+ async function Gl(t) {
2960
+ const e = await ql(/* @__PURE__ */ Object.assign({ "../locales/en.json": () => import("./en.4dabcb3e.js"), "../locales/ru.json": () => import("./ru.743f06d0.js"), "../locales/tr.json": () => import("./tr.f45cbe8b.js") }), `../locales/${t}.json`);
2961
2961
  return JSON.parse(e.default);
2962
2962
  }
2963
- function Gl(t, e, r) {
2964
- const { getStore: o, setStore: i } = Wt(t), a = ["en", "tr"], n = L({}), f = (u) => {
2965
- a.includes(u) || (r.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), u = "en"), ql(u).then((v) => {
2966
- n.value = v, i("locale", u), i("translations", v), r.emit("vf-toast-push", { label: "The language is set to " + u });
2963
+ function Jl(t, e, r) {
2964
+ const { getStore: o, setStore: i } = Wt(t), a = L({}), n = (m) => {
2965
+ Gl(m).then((d) => {
2966
+ a.value = d, i("locale", m), i("translations", d), r.emit("vf-toast-push", { label: "The language is set to " + m });
2967
+ }).catch((d) => {
2968
+ r.emit("vf-toast-push", { label: "The selected locale is not yet supported!", type: "error" }), n("en");
2967
2969
  });
2968
2970
  };
2969
- o("locale") ? n.value = o("translations") : f(e);
2970
- const g = (u, ...v) => v.length ? g(u = u.replace("%s", v.shift()), ...v) : u;
2971
- function m(u, ...v) {
2972
- return n.value.hasOwnProperty(u) ? g(n.value[u], ...v) : u;
2971
+ o("locale") ? a.value = o("translations") : n(e);
2972
+ const f = (m, ...d) => d.length ? f(m = m.replace("%s", d.shift()), ...d) : m;
2973
+ function g(m, ...d) {
2974
+ return a.value.hasOwnProperty(m) ? f(a.value[m], ...d) : m;
2973
2975
  }
2974
- return { t: m, support_locales: a, changeLocale: f };
2976
+ return { t: g, changeLocale: n };
2975
2977
  }
2976
- const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
2978
+ const Zl = { class: "vuefinder" }, Ql = /* @__PURE__ */ u("iframe", {
2977
2979
  id: "download_frame",
2978
2980
  style: { display: "none" }
2979
- }, null, -1), Ql = {
2981
+ }, null, -1), ec = {
2980
2982
  name: "VueFinder"
2981
- }, ec = /* @__PURE__ */ Object.assign(Ql, {
2983
+ }, tc = /* @__PURE__ */ Object.assign(ec, {
2982
2984
  props: {
2983
2985
  url: {
2984
2986
  type: [String]
@@ -3007,13 +3009,13 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3007
3009
  setup(t) {
3008
3010
  const e = t, r = Ja(), { setStore: o, getStore: i } = Wt(e.id);
3009
3011
  it("emitter", r), it("storage", Wt(e.id)), it("postData", e.postData);
3010
- const a = Gl(e.id, e.locale, r);
3012
+ const a = Jl(e.id, e.locale, r);
3011
3013
  it("i18n", a);
3012
3014
  const { apiUrl: n, setApiUrl: f } = Me();
3013
3015
  f(e.url);
3014
- const g = Mt({ adapter: "local", storages: [], dirname: ".", files: [] }), m = L(i("viewport", "grid")), u = L(i("darkMode", e.dark));
3016
+ const g = Mt({ adapter: "local", storages: [], dirname: ".", files: [] }), m = L(i("viewport", "grid")), d = L(i("darkMode", e.dark));
3015
3017
  r.on("vf-darkMode-toggle", () => {
3016
- u.value = !u.value, o("darkMode", u.value);
3018
+ d.value = !d.value, o("darkMode", d.value);
3017
3019
  });
3018
3020
  const v = L(!1);
3019
3021
  it("loadingState", v);
@@ -3052,35 +3054,35 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3052
3054
  document.getElementById("download_frame").src = P, r.emit("vf-modal-close");
3053
3055
  }), ke(() => {
3054
3056
  r.emit("vf-fetch", { params: { q: "index", adapter: i("adapter", g.adapter) } });
3055
- }), (P, F) => (y(), C("div", Jl, [
3056
- d("div", {
3057
- class: de(u.value ? "dark" : "")
3057
+ }), (P, F) => (y(), C("div", Zl, [
3058
+ u("div", {
3059
+ class: de(d.value ? "dark" : "")
3058
3060
  }, [
3059
- d("div", {
3061
+ u("div", {
3060
3062
  class: de([b.value ? "fixed w-screen inset-0 z-20" : "relative rounded-md", "border flex flex-col bg-white dark:bg-gray-800 text-gray-700 dark:text-neutral-400 border-neutral-300 dark:border-gray-900 min-w-min select-none"]),
3061
3063
  style: ho(b.value ? "" : "max-height: " + t.maxHeight),
3062
3064
  onMousedown: F[0] || (F[0] = (H) => x(r).emit("vf-contextmenu-hide")),
3063
3065
  onTouchstart: F[1] || (F[1] = (H) => x(r).emit("vf-contextmenu-hide"))
3064
3066
  }, [
3065
3067
  _e(Rs, { data: g }, null, 8, ["data"]),
3066
- _e(Ul, { data: g }, null, 8, ["data"]),
3068
+ _e(Kl, { data: g }, null, 8, ["data"]),
3067
3069
  _e(Xn, {
3068
3070
  view: m.value,
3069
3071
  data: g
3070
3072
  }, null, 8, ["view", "data"]),
3071
- _e(ml, { data: g }, null, 8, ["data"])
3073
+ _e(gl, { data: g }, null, 8, ["data"])
3072
3074
  ], 38),
3073
3075
  T.active ? (y(), Z(Ga("v-f-modal-" + T.type), {
3074
3076
  key: 0,
3075
3077
  selection: T.data,
3076
3078
  current: g
3077
3079
  }, null, 8, ["selection", "current"])) : G("", !0),
3078
- _e(Wl, { current: g }, null, 8, ["current"]),
3079
- Zl
3080
+ _e(Xl, { current: g }, null, 8, ["current"]),
3081
+ Ql
3080
3082
  ], 2)
3081
3083
  ]));
3082
3084
  }
3083
- }), tc = /* @__PURE__ */ d("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-800 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), rc = { class: "fixed z-10 inset-0 overflow-y-auto w-screen h-screen" }, oc = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, ac = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, sc = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, $e = {
3085
+ }), rc = /* @__PURE__ */ u("div", { class: "fixed inset-0 bg-gray-500 dark:bg-gray-800 dark:bg-opacity-75 bg-opacity-75 transition-opacity" }, null, -1), oc = { class: "fixed z-10 inset-0 overflow-y-auto w-screen h-screen" }, ac = { class: "relative bg-white dark:bg-gray-800 rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:max-w-4xl md:max-w-2xl lg:max-w-3xl xl:max-w-5xl w-full" }, sc = { class: "bg-white dark:bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, ic = { class: "bg-gray-50 dark:bg-gray-800 dark:border-t dark:border-gray-700 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse" }, $e = {
3084
3086
  __name: "ModalLayout",
3085
3087
  setup(t) {
3086
3088
  const e = R("emitter");
@@ -3095,17 +3097,17 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3095
3097
  onKeyup: o[1] || (o[1] = tt((i) => x(e).emit("vf-modal-close"), ["esc"])),
3096
3098
  tabindex: "0"
3097
3099
  }, [
3098
- tc,
3099
- d("div", rc, [
3100
- d("div", {
3100
+ rc,
3101
+ u("div", oc, [
3102
+ u("div", {
3101
3103
  class: "flex items-end sm:items-center justify-center min-h-full p-4 text-center sm:p-0",
3102
3104
  onMousedown: o[0] || (o[0] = Re((i) => x(e).emit("vf-modal-close"), ["self"]))
3103
3105
  }, [
3104
- d("div", oc, [
3105
- d("div", ac, [
3106
+ u("div", ac, [
3107
+ u("div", sc, [
3106
3108
  Yt(r.$slots, "default")
3107
3109
  ]),
3108
- d("div", sc, [
3110
+ u("div", ic, [
3109
3111
  Yt(r.$slots, "buttons")
3110
3112
  ])
3111
3113
  ])
@@ -3113,7 +3115,7 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3113
3115
  ])
3114
3116
  ], 32));
3115
3117
  }
3116
- }, ic = ["aria-label"], nc = /* @__PURE__ */ d("svg", {
3118
+ }, nc = ["aria-label"], lc = /* @__PURE__ */ u("svg", {
3117
3119
  xmlns: "http://www.w3.org/2000/svg",
3118
3120
  fill: "none",
3119
3121
  viewBox: "0 0 24 24",
@@ -3121,16 +3123,16 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3121
3123
  stroke: "currentColor",
3122
3124
  class: "w-5 h-5"
3123
3125
  }, [
3124
- /* @__PURE__ */ d("path", {
3126
+ /* @__PURE__ */ u("path", {
3125
3127
  "stroke-linecap": "round",
3126
3128
  "stroke-linejoin": "round",
3127
3129
  d: "M6 18L18 6M6 6l12 12"
3128
3130
  })
3129
- ], -1), lc = [
3130
- nc
3131
- ], cc = {
3131
+ ], -1), cc = [
3132
+ lc
3133
+ ], uc = {
3132
3134
  name: "Message"
3133
- }, Ee = /* @__PURE__ */ Object.assign(cc, {
3135
+ }, Ee = /* @__PURE__ */ Object.assign(uc, {
3134
3136
  props: {
3135
3137
  error: {
3136
3138
  type: Boolean,
@@ -3153,18 +3155,18 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3153
3155
  class: de(["flex mt-1 p-1 px-2 rounded text-sm", t.error ? "bg-red-100 text-red-600" : "bg-emerald-100 text-emerald-600"])
3154
3156
  }, [
3155
3157
  Yt(g.$slots, "default"),
3156
- d("div", {
3158
+ u("div", {
3157
3159
  class: "ml-auto cursor-pointer",
3158
3160
  onClick: n,
3159
3161
  "aria-label": x(r)("Close"),
3160
3162
  "data-microtip-position": "top-left",
3161
3163
  role: "tooltip"
3162
- }, lc, 8, ic)
3164
+ }, cc, 8, nc)
3163
3165
  ], 2))
3164
3166
  ]));
3165
3167
  }
3166
- }), uc = { class: "sm:flex sm:items-start" }, dc = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3167
- /* @__PURE__ */ d("svg", {
3168
+ }), dc = { class: "sm:flex sm:items-start" }, hc = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3169
+ /* @__PURE__ */ u("svg", {
3168
3170
  xmlns: "http://www.w3.org/2000/svg",
3169
3171
  class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
3170
3172
  fill: "none",
@@ -3172,16 +3174,16 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3172
3174
  stroke: "none",
3173
3175
  "stroke-width": "1.5"
3174
3176
  }, [
3175
- /* @__PURE__ */ d("path", {
3177
+ /* @__PURE__ */ u("path", {
3176
3178
  "stroke-linecap": "round",
3177
3179
  "stroke-linejoin": "round",
3178
3180
  d: "M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"
3179
3181
  })
3180
3182
  ])
3181
- ], -1), hc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, fc = {
3183
+ ], -1), fc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, mc = {
3182
3184
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3183
3185
  id: "modal-title"
3184
- }, mc = { class: "mt-2" }, gc = { class: "text-sm text-gray-500" }, pc = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, vc = {
3186
+ }, gc = { class: "mt-2" }, pc = { class: "text-sm text-gray-500" }, vc = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, bc = {
3185
3187
  key: 0,
3186
3188
  xmlns: "http://www.w3.org/2000/svg",
3187
3189
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -3189,13 +3191,13 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3189
3191
  viewBox: "0 0 24 24",
3190
3192
  stroke: "currentColor",
3191
3193
  "stroke-width": "1"
3192
- }, bc = /* @__PURE__ */ d("path", {
3194
+ }, yc = /* @__PURE__ */ u("path", {
3193
3195
  "stroke-linecap": "round",
3194
3196
  "stroke-linejoin": "round",
3195
3197
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
3196
- }, null, -1), yc = [
3197
- bc
3198
- ], wc = {
3198
+ }, null, -1), wc = [
3199
+ yc
3200
+ ], xc = {
3199
3201
  key: 1,
3200
3202
  xmlns: "http://www.w3.org/2000/svg",
3201
3203
  class: "h-5 w-5 text-neutral-500",
@@ -3203,15 +3205,15 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3203
3205
  viewBox: "0 0 24 24",
3204
3206
  stroke: "currentColor",
3205
3207
  "stroke-width": "1"
3206
- }, xc = /* @__PURE__ */ d("path", {
3208
+ }, _c = /* @__PURE__ */ u("path", {
3207
3209
  "stroke-linecap": "round",
3208
3210
  "stroke-linejoin": "round",
3209
3211
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
3210
- }, null, -1), _c = [
3211
- xc
3212
- ], kc = { class: "ml-1.5" }, Sc = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, Dc = {
3212
+ }, null, -1), kc = [
3213
+ _c
3214
+ ], Sc = { class: "ml-1.5" }, Dc = { class: "m-auto font-bold text-red-500 text-sm dark:text-red-200 text-center" }, Cc = {
3213
3215
  name: "VFModalDelete"
3214
- }, Cc = /* @__PURE__ */ Object.assign(Dc, {
3216
+ }, Mc = /* @__PURE__ */ Object.assign(Cc, {
3215
3217
  props: {
3216
3218
  selection: Object,
3217
3219
  current: Object
@@ -3235,32 +3237,32 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3235
3237
  };
3236
3238
  return (g, m) => (y(), Z($e, null, {
3237
3239
  buttons: J(() => [
3238
- d("button", {
3240
+ u("button", {
3239
3241
  type: "button",
3240
3242
  onClick: f,
3241
3243
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
3242
3244
  }, E(x(i)("Yes, Delete!")), 1),
3243
- d("button", {
3245
+ u("button", {
3244
3246
  type: "button",
3245
- onClick: m[1] || (m[1] = (u) => x(r).emit("vf-modal-close")),
3247
+ onClick: m[1] || (m[1] = (d) => x(r).emit("vf-modal-close")),
3246
3248
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
3247
3249
  }, E(x(i)("Cancel")), 1),
3248
- d("div", Sc, E(x(i)("This action cannot be undone.")), 1)
3250
+ u("div", Dc, E(x(i)("This action cannot be undone.")), 1)
3249
3251
  ]),
3250
3252
  default: J(() => [
3251
- d("div", uc, [
3252
- dc,
3253
- d("div", hc, [
3254
- d("h3", fc, E(x(i)("Delete files")), 1),
3255
- d("div", mc, [
3256
- d("p", gc, E(x(i)("Are you sure you want to delete these files?")), 1),
3257
- (y(!0), C(le, null, we(a.value, (u) => (y(), C("p", pc, [
3258
- u.type == "dir" ? (y(), C("svg", vc, yc)) : (y(), C("svg", wc, _c)),
3259
- d("span", kc, E(u.basename), 1)
3253
+ u("div", dc, [
3254
+ hc,
3255
+ u("div", fc, [
3256
+ u("h3", mc, E(x(i)("Delete files")), 1),
3257
+ u("div", gc, [
3258
+ u("p", pc, E(x(i)("Are you sure you want to delete these files?")), 1),
3259
+ (y(!0), C(le, null, we(a.value, (d) => (y(), C("p", vc, [
3260
+ d.type == "dir" ? (y(), C("svg", bc, wc)) : (y(), C("svg", xc, kc)),
3261
+ u("span", Sc, E(d.basename), 1)
3260
3262
  ]))), 256)),
3261
3263
  n.value.length ? (y(), Z(Ee, {
3262
3264
  key: 0,
3263
- onHidden: m[0] || (m[0] = (u) => n.value = ""),
3265
+ onHidden: m[0] || (m[0] = (d) => n.value = ""),
3264
3266
  error: ""
3265
3267
  }, {
3266
3268
  default: J(() => [
@@ -3275,8 +3277,8 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3275
3277
  _: 1
3276
3278
  }));
3277
3279
  }
3278
- }), Mc = { class: "sm:flex sm:items-start" }, $c = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3279
- /* @__PURE__ */ d("svg", {
3280
+ }), $c = { class: "sm:flex sm:items-start" }, Ec = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3281
+ /* @__PURE__ */ u("svg", {
3280
3282
  xmlns: "http://www.w3.org/2000/svg",
3281
3283
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
3282
3284
  fill: "none",
@@ -3284,18 +3286,18 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3284
3286
  stroke: "currentColor",
3285
3287
  "stroke-width": "2"
3286
3288
  }, [
3287
- /* @__PURE__ */ d("path", {
3289
+ /* @__PURE__ */ u("path", {
3288
3290
  "stroke-linecap": "round",
3289
3291
  "stroke-linejoin": "round",
3290
3292
  d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
3291
3293
  })
3292
3294
  ])
3293
- ], -1), Ec = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Tc = {
3295
+ ], -1), Tc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ac = {
3294
3296
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3295
3297
  id: "modal-title"
3296
- }, Ac = { class: "mt-2" }, Oc = { class: "text-sm text-gray-500" }, Ic = {
3298
+ }, Oc = { class: "mt-2" }, Ic = { class: "text-sm text-gray-500" }, Lc = {
3297
3299
  name: "VFModalMessage"
3298
- }, Lc = /* @__PURE__ */ Object.assign(Ic, {
3300
+ }, Pc = /* @__PURE__ */ Object.assign(Lc, {
3299
3301
  props: {
3300
3302
  selection: Object
3301
3303
  },
@@ -3303,7 +3305,7 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3303
3305
  const e = R("emitter"), { t: r } = R("i18n");
3304
3306
  return (o, i) => (y(), Z($e, null, {
3305
3307
  buttons: J(() => [
3306
- d("button", {
3308
+ u("button", {
3307
3309
  type: "button",
3308
3310
  onClick: i[0] || (i[0] = (a) => x(e).emit("vf-modal-close")),
3309
3311
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
@@ -3312,12 +3314,12 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3312
3314
  default: J(() => {
3313
3315
  var a, n, f, g;
3314
3316
  return [
3315
- d("div", Mc, [
3316
- $c,
3317
- d("div", Ec, [
3318
- d("h3", Tc, E((n = (a = t.selection) == null ? void 0 : a.title) != null ? n : "Title"), 1),
3319
- d("div", Ac, [
3320
- d("p", Oc, E((g = (f = t.selection) == null ? void 0 : f.message) != null ? g : "Message") + ".", 1)
3317
+ u("div", $c, [
3318
+ Ec,
3319
+ u("div", Tc, [
3320
+ u("h3", Ac, E((n = (a = t.selection) == null ? void 0 : a.title) != null ? n : "Title"), 1),
3321
+ u("div", Oc, [
3322
+ u("p", Ic, E((g = (f = t.selection) == null ? void 0 : f.message) != null ? g : "Message") + ".", 1)
3321
3323
  ])
3322
3324
  ])
3323
3325
  ])
@@ -3326,8 +3328,8 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3326
3328
  _: 1
3327
3329
  }));
3328
3330
  }
3329
- }), Pc = { class: "sm:flex sm:items-start" }, Nc = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3330
- /* @__PURE__ */ d("svg", {
3331
+ }), Nc = { class: "sm:flex sm:items-start" }, jc = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3332
+ /* @__PURE__ */ u("svg", {
3331
3333
  xmlns: "http://www.w3.org/2000/svg",
3332
3334
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
3333
3335
  fill: "none",
@@ -3335,18 +3337,18 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3335
3337
  stroke: "none",
3336
3338
  "stroke-width": "1.5"
3337
3339
  }, [
3338
- /* @__PURE__ */ d("path", {
3340
+ /* @__PURE__ */ u("path", {
3339
3341
  "stroke-linecap": "round",
3340
3342
  "stroke-linejoin": "round",
3341
3343
  d: "M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
3342
3344
  })
3343
3345
  ])
3344
- ], -1), jc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Vc = {
3346
+ ], -1), Vc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, zc = {
3345
3347
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3346
3348
  id: "modal-title"
3347
- }, zc = { class: "mt-2" }, Rc = { class: "text-sm text-gray-500" }, Bc = ["onKeyup", "placeholder"], Hc = {
3349
+ }, Rc = { class: "mt-2" }, Bc = { class: "text-sm text-gray-500" }, Hc = ["onKeyup", "placeholder"], Uc = {
3348
3350
  name: "VFModalNewFolder"
3349
- }, Uc = /* @__PURE__ */ Object.assign(Hc, {
3351
+ }, Kc = /* @__PURE__ */ Object.assign(Uc, {
3350
3352
  props: {
3351
3353
  selection: Object,
3352
3354
  current: Object
@@ -3370,36 +3372,36 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3370
3372
  };
3371
3373
  return (g, m) => (y(), Z($e, null, {
3372
3374
  buttons: J(() => [
3373
- d("button", {
3375
+ u("button", {
3374
3376
  type: "button",
3375
3377
  onClick: f,
3376
3378
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
3377
3379
  }, E(x(i)("Create")), 1),
3378
- d("button", {
3380
+ u("button", {
3379
3381
  type: "button",
3380
- onClick: m[2] || (m[2] = (u) => x(r).emit("vf-modal-close")),
3382
+ onClick: m[2] || (m[2] = (d) => x(r).emit("vf-modal-close")),
3381
3383
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
3382
3384
  }, E(x(i)("Cancel")), 1)
3383
3385
  ]),
3384
3386
  default: J(() => [
3385
- d("div", Pc, [
3386
- Nc,
3387
- d("div", jc, [
3388
- d("h3", Vc, E(x(i)("New Folder")), 1),
3389
- d("div", zc, [
3390
- d("p", Rc, E(x(i)("Create a new folder")), 1),
3391
- ye(d("input", {
3392
- "onUpdate:modelValue": m[0] || (m[0] = (u) => a.value = u),
3387
+ u("div", Nc, [
3388
+ jc,
3389
+ u("div", Vc, [
3390
+ u("h3", zc, E(x(i)("New Folder")), 1),
3391
+ u("div", Rc, [
3392
+ u("p", Bc, E(x(i)("Create a new folder")), 1),
3393
+ ye(u("input", {
3394
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => a.value = d),
3393
3395
  onKeyup: tt(f, ["enter"]),
3394
3396
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
3395
3397
  placeholder: x(i)("Folder Name"),
3396
3398
  type: "text"
3397
- }, null, 40, Bc), [
3399
+ }, null, 40, Hc), [
3398
3400
  [rt, a.value]
3399
3401
  ]),
3400
3402
  n.value.length ? (y(), Z(Ee, {
3401
3403
  key: 0,
3402
- onHidden: m[1] || (m[1] = (u) => n.value = ""),
3404
+ onHidden: m[1] || (m[1] = (d) => n.value = ""),
3403
3405
  error: ""
3404
3406
  }, {
3405
3407
  default: J(() => [
@@ -3414,8 +3416,8 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3414
3416
  _: 1
3415
3417
  }));
3416
3418
  }
3417
- }), Kc = { class: "sm:flex sm:items-start" }, Fc = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3418
- /* @__PURE__ */ d("svg", {
3419
+ }), Fc = { class: "sm:flex sm:items-start" }, Yc = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
3420
+ /* @__PURE__ */ u("svg", {
3419
3421
  xmlns: "http://www.w3.org/2000/svg",
3420
3422
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
3421
3423
  fill: "none",
@@ -3423,18 +3425,18 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3423
3425
  stroke: "none",
3424
3426
  "stroke-width": "1.5"
3425
3427
  }, [
3426
- /* @__PURE__ */ d("path", {
3428
+ /* @__PURE__ */ u("path", {
3427
3429
  "stroke-linecap": "round",
3428
3430
  "stroke-linejoin": "round",
3429
3431
  d: "M9 13h6m-3-3v6m5 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
3430
3432
  })
3431
3433
  ])
3432
- ], -1), Yc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Wc = {
3434
+ ], -1), Wc = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Xc = {
3433
3435
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3434
3436
  id: "modal-title"
3435
- }, Xc = { class: "mt-2" }, qc = { class: "text-sm text-gray-500" }, Gc = ["onKeyup", "placeholder"], Jc = {
3437
+ }, qc = { class: "mt-2" }, Gc = { class: "text-sm text-gray-500" }, Jc = ["onKeyup", "placeholder"], Zc = {
3436
3438
  name: "VFModalNewFile"
3437
- }, Zc = /* @__PURE__ */ Object.assign(Jc, {
3439
+ }, Qc = /* @__PURE__ */ Object.assign(Zc, {
3438
3440
  props: {
3439
3441
  selection: Object,
3440
3442
  current: Object
@@ -3458,36 +3460,36 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3458
3460
  };
3459
3461
  return (g, m) => (y(), Z($e, null, {
3460
3462
  buttons: J(() => [
3461
- d("button", {
3463
+ u("button", {
3462
3464
  type: "button",
3463
3465
  onClick: f,
3464
3466
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
3465
3467
  }, "Create!"),
3466
- d("button", {
3468
+ u("button", {
3467
3469
  type: "button",
3468
- onClick: m[2] || (m[2] = (u) => x(r).emit("vf-modal-close")),
3470
+ onClick: m[2] || (m[2] = (d) => x(r).emit("vf-modal-close")),
3469
3471
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
3470
3472
  }, "Cancel")
3471
3473
  ]),
3472
3474
  default: J(() => [
3473
- d("div", Kc, [
3474
- Fc,
3475
- d("div", Yc, [
3476
- d("h3", Wc, E(x(i)("New File")), 1),
3477
- d("div", Xc, [
3478
- d("p", qc, E(x(i)("Create a new file")), 1),
3479
- ye(d("input", {
3480
- "onUpdate:modelValue": m[0] || (m[0] = (u) => a.value = u),
3475
+ u("div", Fc, [
3476
+ Yc,
3477
+ u("div", Wc, [
3478
+ u("h3", Xc, E(x(i)("New File")), 1),
3479
+ u("div", qc, [
3480
+ u("p", Gc, E(x(i)("Create a new file")), 1),
3481
+ ye(u("input", {
3482
+ "onUpdate:modelValue": m[0] || (m[0] = (d) => a.value = d),
3481
3483
  onKeyup: tt(f, ["enter"]),
3482
3484
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
3483
3485
  placeholder: x(i)("File Name"),
3484
3486
  type: "text"
3485
- }, null, 40, Gc), [
3487
+ }, null, 40, Jc), [
3486
3488
  [rt, a.value]
3487
3489
  ]),
3488
3490
  n.value.length ? (y(), Z(Ee, {
3489
3491
  key: 0,
3490
- onHidden: m[1] || (m[1] = (u) => n.value = ""),
3492
+ onHidden: m[1] || (m[1] = (d) => n.value = ""),
3491
3493
  error: ""
3492
3494
  }, {
3493
3495
  default: J(() => [
@@ -3502,17 +3504,17 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3502
3504
  _: 1
3503
3505
  }));
3504
3506
  }
3505
- }), Qc = { class: "flex" }, eu = ["aria-label"], tu = { class: "ml-auto mb-2" }, ru = {
3507
+ }), eu = { class: "flex" }, tu = ["aria-label"], ru = { class: "ml-auto mb-2" }, ou = {
3506
3508
  key: 0,
3507
3509
  class: "p-2 border font-normal whitespace-pre-wrap border-gray-200 dark:border-gray-700/50 dark:text-gray-200 rounded min-h-[200px] max-h-[60vh] text-xs overflow-auto"
3508
- }, ou = { key: 1 }, au = {
3510
+ }, au = { key: 1 }, su = {
3509
3511
  __name: "Text",
3510
3512
  props: {
3511
3513
  selection: Object
3512
3514
  },
3513
3515
  emits: ["load"],
3514
3516
  setup(t, { emit: e }) {
3515
- const r = t, o = L(""), i = L(""), a = L(null), n = L(!1), { apiUrl: f } = Me(), g = L(""), m = L(!1), { t: u } = R("i18n");
3517
+ const r = t, o = L(""), i = L(""), a = L(null), n = L(!1), { apiUrl: f } = Me(), g = L(""), m = L(!1), { t: d } = R("i18n");
3516
3518
  ke(() => {
3517
3519
  Et(f.value, {
3518
3520
  params: { q: "preview", adapter: r.selection.adapter, path: r.selection.item.path },
@@ -3536,35 +3538,35 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3536
3538
  }),
3537
3539
  json: !1
3538
3540
  }).then((k) => {
3539
- g.value = u("Updated."), o.value = k, e("load"), n.value = !n.value;
3541
+ g.value = d("Updated."), o.value = k, e("load"), n.value = !n.value;
3540
3542
  }).catch((k) => {
3541
- g.value = u(k.message), m.value = !0;
3543
+ g.value = d(k.message), m.value = !0;
3542
3544
  });
3543
3545
  };
3544
3546
  return (k, S) => (y(), C(le, null, [
3545
- d("div", Qc, [
3546
- d("div", {
3547
+ u("div", eu, [
3548
+ u("div", {
3547
3549
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
3548
3550
  id: "modal-title",
3549
3551
  "aria-label": t.selection.item.path,
3550
3552
  "data-microtip-position": "bottom-right",
3551
3553
  role: "tooltip"
3552
- }, E(t.selection.item.basename), 9, eu),
3553
- d("div", tu, [
3554
+ }, E(t.selection.item.basename), 9, tu),
3555
+ u("div", ru, [
3554
3556
  n.value ? (y(), C("button", {
3555
3557
  key: 0,
3556
3558
  onClick: T,
3557
3559
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
3558
- }, E(x(u)("Save")), 1)) : G("", !0),
3559
- d("button", {
3560
+ }, E(x(d)("Save")), 1)) : G("", !0),
3561
+ u("button", {
3560
3562
  class: "ml-1 px-2 py-1 text-blue-500",
3561
3563
  onClick: S[0] || (S[0] = (P) => v())
3562
- }, E(n.value ? x(u)("Cancel") : x(u)("Edit")), 1)
3564
+ }, E(n.value ? x(d)("Cancel") : x(d)("Edit")), 1)
3563
3565
  ])
3564
3566
  ]),
3565
- d("div", null, [
3566
- n.value ? (y(), C("div", ou, [
3567
- ye(d("textarea", {
3567
+ u("div", null, [
3568
+ n.value ? (y(), C("div", au, [
3569
+ ye(u("textarea", {
3568
3570
  ref_key: "editInput",
3569
3571
  ref: a,
3570
3572
  "onUpdate:modelValue": S[1] || (S[1] = (P) => i.value = P),
@@ -3576,7 +3578,7 @@ const Jl = { class: "vuefinder" }, Zl = /* @__PURE__ */ d("iframe", {
3576
3578
  }, null, 512), [
3577
3579
  [rt, i.value]
3578
3580
  ])
3579
- ])) : (y(), C("pre", ru, E(o.value), 1)),
3581
+ ])) : (y(), C("pre", ou, E(o.value), 1)),
3580
3582
  g.value.length ? (y(), Z(Ee, {
3581
3583
  key: 2,
3582
3584
  onHidden: S[2] || (S[2] = (P) => g.value = ""),
@@ -3614,7 +3616,7 @@ function Ko(t) {
3614
3616
  for (var e = 1; e < arguments.length; e++) {
3615
3617
  var r = arguments[e] != null ? arguments[e] : {};
3616
3618
  e % 2 ? Xr(Object(r), !0).forEach(function(o) {
3617
- nu(t, o, r[o]);
3619
+ lu(t, o, r[o]);
3618
3620
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Xr(Object(r)).forEach(function(o) {
3619
3621
  Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(r, o));
3620
3622
  });
@@ -3628,7 +3630,7 @@ function Ct(t) {
3628
3630
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
3629
3631
  }, Ct(t);
3630
3632
  }
3631
- function su(t, e) {
3633
+ function iu(t, e) {
3632
3634
  if (!(t instanceof e))
3633
3635
  throw new TypeError("Cannot call a class as a function");
3634
3636
  }
@@ -3638,10 +3640,10 @@ function qr(t, e) {
3638
3640
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
3639
3641
  }
3640
3642
  }
3641
- function iu(t, e, r) {
3643
+ function nu(t, e, r) {
3642
3644
  return e && qr(t.prototype, e), r && qr(t, r), t;
3643
3645
  }
3644
- function nu(t, e, r) {
3646
+ function lu(t, e, r) {
3645
3647
  return e in t ? Object.defineProperty(t, e, {
3646
3648
  value: r,
3647
3649
  enumerable: !0,
@@ -3650,17 +3652,17 @@ function nu(t, e, r) {
3650
3652
  }) : t[e] = r, t;
3651
3653
  }
3652
3654
  function Fo(t) {
3653
- return lu(t) || cu(t) || uu(t) || du();
3655
+ return cu(t) || uu(t) || du(t) || hu();
3654
3656
  }
3655
- function lu(t) {
3657
+ function cu(t) {
3656
3658
  if (Array.isArray(t))
3657
3659
  return Gt(t);
3658
3660
  }
3659
- function cu(t) {
3661
+ function uu(t) {
3660
3662
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
3661
3663
  return Array.from(t);
3662
3664
  }
3663
- function uu(t, e) {
3665
+ function du(t, e) {
3664
3666
  if (!!t) {
3665
3667
  if (typeof t == "string")
3666
3668
  return Gt(t, e);
@@ -3677,11 +3679,11 @@ function Gt(t, e) {
3677
3679
  o[r] = t[r];
3678
3680
  return o;
3679
3681
  }
3680
- function du() {
3682
+ function hu() {
3681
3683
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
3682
3684
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3683
3685
  }
3684
- var Vt = typeof window < "u" && typeof window.document < "u", Ce = Vt ? window : {}, pr = Vt && Ce.document.documentElement ? "ontouchstart" in Ce.document.documentElement : !1, vr = Vt ? "PointerEvent" in Ce : !1, te = "cropper", br = "all", Yo = "crop", Wo = "move", Xo = "zoom", Ve = "e", ze = "w", qe = "s", Oe = "n", nt = "ne", lt = "nw", ct = "se", ut = "sw", Jt = "".concat(te, "-crop"), Gr = "".concat(te, "-disabled"), me = "".concat(te, "-hidden"), Jr = "".concat(te, "-hide"), hu = "".concat(te, "-invisible"), At = "".concat(te, "-modal"), Zt = "".concat(te, "-move"), ft = "".concat(te, "Action"), St = "".concat(te, "Preview"), yr = "crop", qo = "move", Go = "none", Qt = "crop", er = "cropend", tr = "cropmove", rr = "cropstart", Zr = "dblclick", fu = pr ? "touchstart" : "mousedown", mu = pr ? "touchmove" : "mousemove", gu = pr ? "touchend touchcancel" : "mouseup", Qr = vr ? "pointerdown" : fu, eo = vr ? "pointermove" : mu, to = vr ? "pointerup pointercancel" : gu, ro = "ready", oo = "resize", ao = "wheel", or = "zoom", so = "image/jpeg", pu = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, vu = /^data:/, bu = /^data:image\/jpeg;base64,/, yu = /^img|canvas$/i, Jo = 200, Zo = 100, io = {
3686
+ var Vt = typeof window < "u" && typeof window.document < "u", Ce = Vt ? window : {}, pr = Vt && Ce.document.documentElement ? "ontouchstart" in Ce.document.documentElement : !1, vr = Vt ? "PointerEvent" in Ce : !1, te = "cropper", br = "all", Yo = "crop", Wo = "move", Xo = "zoom", Ve = "e", ze = "w", qe = "s", Oe = "n", nt = "ne", lt = "nw", ct = "se", ut = "sw", Jt = "".concat(te, "-crop"), Gr = "".concat(te, "-disabled"), me = "".concat(te, "-hidden"), Jr = "".concat(te, "-hide"), fu = "".concat(te, "-invisible"), At = "".concat(te, "-modal"), Zt = "".concat(te, "-move"), ft = "".concat(te, "Action"), St = "".concat(te, "Preview"), yr = "crop", qo = "move", Go = "none", Qt = "crop", er = "cropend", tr = "cropmove", rr = "cropstart", Zr = "dblclick", mu = pr ? "touchstart" : "mousedown", gu = pr ? "touchmove" : "mousemove", pu = pr ? "touchend touchcancel" : "mouseup", Qr = vr ? "pointerdown" : mu, eo = vr ? "pointermove" : gu, to = vr ? "pointerup pointercancel" : pu, ro = "ready", oo = "resize", ao = "wheel", or = "zoom", so = "image/jpeg", vu = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, bu = /^data:/, yu = /^data:image\/jpeg;base64,/, wu = /^img|canvas$/i, Jo = 200, Zo = 100, io = {
3685
3687
  viewMode: 0,
3686
3688
  dragMode: yr,
3687
3689
  initialAspectRatio: NaN,
@@ -3721,9 +3723,9 @@ var Vt = typeof window < "u" && typeof window.document < "u", Ce = Vt ? window :
3721
3723
  cropend: null,
3722
3724
  crop: null,
3723
3725
  zoom: null
3724
- }, wu = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', xu = Number.isNaN || Ce.isNaN;
3726
+ }, xu = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', _u = Number.isNaN || Ce.isNaN;
3725
3727
  function Y(t) {
3726
- return typeof t == "number" && !xu(t);
3728
+ return typeof t == "number" && !_u(t);
3727
3729
  }
3728
3730
  var no = function(e) {
3729
3731
  return e > 0 && e < 1 / 0;
@@ -3734,13 +3736,13 @@ function Ut(t) {
3734
3736
  function He(t) {
3735
3737
  return Ct(t) === "object" && t !== null;
3736
3738
  }
3737
- var _u = Object.prototype.hasOwnProperty;
3739
+ var ku = Object.prototype.hasOwnProperty;
3738
3740
  function Ge(t) {
3739
3741
  if (!He(t))
3740
3742
  return !1;
3741
3743
  try {
3742
3744
  var e = t.constructor, r = e.prototype;
3743
- return e && r && _u.call(r, "isPrototypeOf");
3745
+ return e && r && ku.call(r, "isPrototypeOf");
3744
3746
  } catch {
3745
3747
  return !1;
3746
3748
  }
@@ -3748,9 +3750,9 @@ function Ge(t) {
3748
3750
  function fe(t) {
3749
3751
  return typeof t == "function";
3750
3752
  }
3751
- var ku = Array.prototype.slice;
3753
+ var Su = Array.prototype.slice;
3752
3754
  function Qo(t) {
3753
- return Array.from ? Array.from(t) : ku.call(t);
3755
+ return Array.from ? Array.from(t) : Su.call(t);
3754
3756
  }
3755
3757
  function se(t, e) {
3756
3758
  return t && fe(e) && (Array.isArray(t) || Y(t.length) ? Qo(t).forEach(function(r, o) {
@@ -3767,19 +3769,19 @@ var re = Object.assign || function(e) {
3767
3769
  e[n] = a[n];
3768
3770
  });
3769
3771
  }), e;
3770
- }, Su = /\.\d*(?:0|9){12}\d*$/;
3772
+ }, Du = /\.\d*(?:0|9){12}\d*$/;
3771
3773
  function Ze(t) {
3772
3774
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1e11;
3773
- return Su.test(t) ? Math.round(t * e) / e : t;
3775
+ return Du.test(t) ? Math.round(t * e) / e : t;
3774
3776
  }
3775
- var Du = /^width|height|left|top|marginLeft|marginTop$/;
3777
+ var Cu = /^width|height|left|top|marginLeft|marginTop$/;
3776
3778
  function Ie(t, e) {
3777
3779
  var r = t.style;
3778
3780
  se(e, function(o, i) {
3779
- Du.test(i) && Y(o) && (o = "".concat(o, "px")), r[i] = o;
3781
+ Cu.test(i) && Y(o) && (o = "".concat(o, "px")), r[i] = o;
3780
3782
  });
3781
3783
  }
3782
- function Cu(t, e) {
3784
+ function Mu(t, e) {
3783
3785
  return t.classList ? t.classList.contains(e) : t.className.indexOf(e) > -1;
3784
3786
  }
3785
3787
  function ne(t, e) {
@@ -3824,9 +3826,9 @@ function Je(t, e, r) {
3824
3826
  r ? ne(t, e) : De(t, e);
3825
3827
  }
3826
3828
  }
3827
- var Mu = /([a-z\d])([A-Z])/g;
3829
+ var $u = /([a-z\d])([A-Z])/g;
3828
3830
  function wr(t) {
3829
- return t.replace(Mu, "$1-$2").toLowerCase();
3831
+ return t.replace($u, "$1-$2").toLowerCase();
3830
3832
  }
3831
3833
  function ar(t, e) {
3832
3834
  return He(t[e]) ? t[e] : t.dataset ? t.dataset[e] : t.getAttribute("data-".concat(wr(e)));
@@ -3834,7 +3836,7 @@ function ar(t, e) {
3834
3836
  function mt(t, e, r) {
3835
3837
  He(r) ? t[e] = r : t.dataset ? t.dataset[e] = r : t.setAttribute("data-".concat(wr(e)), r);
3836
3838
  }
3837
- function $u(t, e) {
3839
+ function Eu(t, e) {
3838
3840
  if (He(t[e]))
3839
3841
  try {
3840
3842
  delete t[e];
@@ -3883,9 +3885,9 @@ function be(t, e, r) {
3883
3885
  var n = t.listeners, f = n === void 0 ? {} : n;
3884
3886
  i = function() {
3885
3887
  delete f[a][r], t.removeEventListener(a, i, o);
3886
- for (var m = arguments.length, u = new Array(m), v = 0; v < m; v++)
3887
- u[v] = arguments[v];
3888
- r.apply(t, u);
3888
+ for (var m = arguments.length, d = new Array(m), v = 0; v < m; v++)
3889
+ d[v] = arguments[v];
3890
+ r.apply(t, d);
3889
3891
  }, f[a] || (f[a] = {}), f[a][r] && t.removeEventListener(a, f[a][r], o), f[a][r] = i, t.listeners = f;
3890
3892
  }
3891
3893
  t.addEventListener(a, i, o);
@@ -3906,9 +3908,9 @@ function ra(t) {
3906
3908
  top: e.top + (window.pageYOffset - document.documentElement.clientTop)
3907
3909
  };
3908
3910
  }
3909
- var Kt = Ce.location, Eu = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
3911
+ var Kt = Ce.location, Tu = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
3910
3912
  function lo(t) {
3911
- var e = t.match(Eu);
3913
+ var e = t.match(Tu);
3912
3914
  return e !== null && (e[1] !== Kt.protocol || e[2] !== Kt.hostname || e[3] !== Kt.port);
3913
3915
  }
3914
3916
  function co(t) {
@@ -3925,11 +3927,11 @@ function dt(t) {
3925
3927
  transform: f
3926
3928
  };
3927
3929
  }
3928
- function Tu(t) {
3930
+ function Au(t) {
3929
3931
  var e = Ko({}, t), r = 0;
3930
3932
  return se(t, function(o, i) {
3931
3933
  delete e[i], se(e, function(a) {
3932
- var n = Math.abs(o.startX - a.startX), f = Math.abs(o.startY - a.startY), g = Math.abs(o.endX - a.endX), m = Math.abs(o.endY - a.endY), u = Math.sqrt(n * n + f * f), v = Math.sqrt(g * g + m * m), b = (v - u) / u;
3934
+ var n = Math.abs(o.startX - a.startX), f = Math.abs(o.startY - a.startY), g = Math.abs(o.endX - a.endX), m = Math.abs(o.endY - a.endY), d = Math.sqrt(n * n + f * f), v = Math.sqrt(g * g + m * m), b = (v - d) / d;
3933
3935
  Math.abs(b) > Math.abs(r) && (r = b);
3934
3936
  });
3935
3937
  }), r;
@@ -3944,7 +3946,7 @@ function Dt(t, e) {
3944
3946
  startY: o
3945
3947
  }, i);
3946
3948
  }
3947
- function Au(t) {
3949
+ function Ou(t) {
3948
3950
  var e = 0, r = 0, o = 0;
3949
3951
  return se(t, function(i) {
3950
3952
  var a = i.startX, n = i.startY;
@@ -3966,7 +3968,7 @@ function Le(t) {
3966
3968
  height: r
3967
3969
  };
3968
3970
  }
3969
- function Ou(t) {
3971
+ function Iu(t) {
3970
3972
  var e = t.width, r = t.height, o = t.degree;
3971
3973
  if (o = Math.abs(o) % 180, o === 90)
3972
3974
  return {
@@ -3982,8 +3984,8 @@ function Ou(t) {
3982
3984
  height: g
3983
3985
  };
3984
3986
  }
3985
- function Iu(t, e, r, o) {
3986
- var i = e.aspectRatio, a = e.naturalWidth, n = e.naturalHeight, f = e.rotate, g = f === void 0 ? 0 : f, m = e.scaleX, u = m === void 0 ? 1 : m, v = e.scaleY, b = v === void 0 ? 1 : v, T = r.aspectRatio, k = r.naturalWidth, S = r.naturalHeight, P = o.fillColor, F = P === void 0 ? "transparent" : P, H = o.imageSmoothingEnabled, j = H === void 0 ? !0 : H, V = o.imageSmoothingQuality, W = V === void 0 ? "low" : V, M = o.maxWidth, K = M === void 0 ? 1 / 0 : M, Q = o.maxHeight, ce = Q === void 0 ? 1 / 0 : Q, he = o.minWidth, ve = he === void 0 ? 0 : he, N = o.minHeight, B = N === void 0 ? 0 : N, O = document.createElement("canvas"), X = O.getContext("2d"), q = Le({
3987
+ function Lu(t, e, r, o) {
3988
+ var i = e.aspectRatio, a = e.naturalWidth, n = e.naturalHeight, f = e.rotate, g = f === void 0 ? 0 : f, m = e.scaleX, d = m === void 0 ? 1 : m, v = e.scaleY, b = v === void 0 ? 1 : v, T = r.aspectRatio, k = r.naturalWidth, S = r.naturalHeight, P = o.fillColor, F = P === void 0 ? "transparent" : P, H = o.imageSmoothingEnabled, j = H === void 0 ? !0 : H, V = o.imageSmoothingQuality, W = V === void 0 ? "low" : V, M = o.maxWidth, K = M === void 0 ? 1 / 0 : M, Q = o.maxHeight, ce = Q === void 0 ? 1 / 0 : Q, he = o.minWidth, ve = he === void 0 ? 0 : he, N = o.minHeight, B = N === void 0 ? 0 : N, O = document.createElement("canvas"), X = O.getContext("2d"), q = Le({
3987
3989
  aspectRatio: T,
3988
3990
  width: K,
3989
3991
  height: ce
@@ -4000,31 +4002,31 @@ function Iu(t, e, r, o) {
4000
4002
  width: ve,
4001
4003
  height: B
4002
4004
  }, "cover"), wt = Math.min(bt.width, Math.max(yt.width, a)), Fe = Math.min(bt.height, Math.max(yt.height, n)), zt = [-wt / 2, -Fe / 2, wt, Fe];
4003
- return O.width = Ze(ee), O.height = Ze(at), X.fillStyle = F, X.fillRect(0, 0, ee, at), X.save(), X.translate(ee / 2, at / 2), X.rotate(g * Math.PI / 180), X.scale(u, b), X.imageSmoothingEnabled = j, X.imageSmoothingQuality = W, X.drawImage.apply(X, [t].concat(Fo(zt.map(function(Ye) {
4005
+ return O.width = Ze(ee), O.height = Ze(at), X.fillStyle = F, X.fillRect(0, 0, ee, at), X.save(), X.translate(ee / 2, at / 2), X.rotate(g * Math.PI / 180), X.scale(d, b), X.imageSmoothingEnabled = j, X.imageSmoothingQuality = W, X.drawImage.apply(X, [t].concat(Fo(zt.map(function(Ye) {
4004
4006
  return Math.floor(Ze(Ye));
4005
4007
  })))), X.restore(), O;
4006
4008
  }
4007
4009
  var oa = String.fromCharCode;
4008
- function Lu(t, e, r) {
4010
+ function Pu(t, e, r) {
4009
4011
  var o = "";
4010
4012
  r += e;
4011
4013
  for (var i = e; i < r; i += 1)
4012
4014
  o += oa(t.getUint8(i));
4013
4015
  return o;
4014
4016
  }
4015
- var Pu = /^data:.*,/;
4016
- function Nu(t) {
4017
- var e = t.replace(Pu, ""), r = atob(e), o = new ArrayBuffer(r.length), i = new Uint8Array(o);
4017
+ var Nu = /^data:.*,/;
4018
+ function ju(t) {
4019
+ var e = t.replace(Nu, ""), r = atob(e), o = new ArrayBuffer(r.length), i = new Uint8Array(o);
4018
4020
  return se(i, function(a, n) {
4019
4021
  i[n] = r.charCodeAt(n);
4020
4022
  }), o;
4021
4023
  }
4022
- function ju(t, e) {
4024
+ function Vu(t, e) {
4023
4025
  for (var r = [], o = 8192, i = new Uint8Array(t); i.length > 0; )
4024
4026
  r.push(oa.apply(null, Qo(i.subarray(0, o)))), i = i.subarray(o);
4025
4027
  return "data:".concat(e, ";base64,").concat(btoa(r.join("")));
4026
4028
  }
4027
- function Vu(t) {
4029
+ function zu(t) {
4028
4030
  var e = new DataView(t), r;
4029
4031
  try {
4030
4032
  var o, i, a;
@@ -4038,9 +4040,9 @@ function Vu(t) {
4038
4040
  }
4039
4041
  if (i) {
4040
4042
  var g = i + 4, m = i + 10;
4041
- if (Lu(e, g, 4) === "Exif") {
4042
- var u = e.getUint16(m);
4043
- if (o = u === 18761, (o || u === 19789) && e.getUint16(m + 2, o) === 42) {
4043
+ if (Pu(e, g, 4) === "Exif") {
4044
+ var d = e.getUint16(m);
4045
+ if (o = d === 18761, (o || d === 19789) && e.getUint16(m + 2, o) === 42) {
4044
4046
  var v = e.getUint32(m + 4, o);
4045
4047
  v >= 8 && (a = m + v);
4046
4048
  }
@@ -4059,7 +4061,7 @@ function Vu(t) {
4059
4061
  }
4060
4062
  return r;
4061
4063
  }
4062
- function zu(t) {
4064
+ function Ru(t) {
4063
4065
  var e = 0, r = 1, o = 1;
4064
4066
  switch (t) {
4065
4067
  case 2:
@@ -4090,7 +4092,7 @@ function zu(t) {
4090
4092
  scaleY: o
4091
4093
  };
4092
4094
  }
4093
- var Ru = {
4095
+ var Bu = {
4094
4096
  render: function() {
4095
4097
  this.initContainer(), this.initCanvas(), this.initCropBox(), this.renderCanvas(), this.cropped && this.renderCropBox();
4096
4098
  },
@@ -4109,26 +4111,26 @@ var Ru = {
4109
4111
  initCanvas: function() {
4110
4112
  var e = this.containerData, r = this.imageData, o = this.options.viewMode, i = Math.abs(r.rotate) % 180 === 90, a = i ? r.naturalHeight : r.naturalWidth, n = i ? r.naturalWidth : r.naturalHeight, f = a / n, g = e.width, m = e.height;
4111
4113
  e.height * f > e.width ? o === 3 ? g = e.height * f : m = e.width / f : o === 3 ? m = e.width / f : g = e.height * f;
4112
- var u = {
4114
+ var d = {
4113
4115
  aspectRatio: f,
4114
4116
  naturalWidth: a,
4115
4117
  naturalHeight: n,
4116
4118
  width: g,
4117
4119
  height: m
4118
4120
  };
4119
- this.canvasData = u, this.limited = o === 1 || o === 2, this.limitCanvas(!0, !0), u.width = Math.min(Math.max(u.width, u.minWidth), u.maxWidth), u.height = Math.min(Math.max(u.height, u.minHeight), u.maxHeight), u.left = (e.width - u.width) / 2, u.top = (e.height - u.height) / 2, u.oldLeft = u.left, u.oldTop = u.top, this.initialCanvasData = re({}, u);
4121
+ this.canvasData = d, this.limited = o === 1 || o === 2, this.limitCanvas(!0, !0), d.width = Math.min(Math.max(d.width, d.minWidth), d.maxWidth), d.height = Math.min(Math.max(d.height, d.minHeight), d.maxHeight), d.left = (e.width - d.width) / 2, d.top = (e.height - d.height) / 2, d.oldLeft = d.left, d.oldTop = d.top, this.initialCanvasData = re({}, d);
4120
4122
  },
4121
4123
  limitCanvas: function(e, r) {
4122
4124
  var o = this.options, i = this.containerData, a = this.canvasData, n = this.cropBoxData, f = o.viewMode, g = a.aspectRatio, m = this.cropped && n;
4123
4125
  if (e) {
4124
- var u = Number(o.minCanvasWidth) || 0, v = Number(o.minCanvasHeight) || 0;
4125
- f > 1 ? (u = Math.max(u, i.width), v = Math.max(v, i.height), f === 3 && (v * g > u ? u = v * g : v = u / g)) : f > 0 && (u ? u = Math.max(u, m ? n.width : 0) : v ? v = Math.max(v, m ? n.height : 0) : m && (u = n.width, v = n.height, v * g > u ? u = v * g : v = u / g));
4126
+ var d = Number(o.minCanvasWidth) || 0, v = Number(o.minCanvasHeight) || 0;
4127
+ f > 1 ? (d = Math.max(d, i.width), v = Math.max(v, i.height), f === 3 && (v * g > d ? d = v * g : v = d / g)) : f > 0 && (d ? d = Math.max(d, m ? n.width : 0) : v ? v = Math.max(v, m ? n.height : 0) : m && (d = n.width, v = n.height, v * g > d ? d = v * g : v = d / g));
4126
4128
  var b = Le({
4127
4129
  aspectRatio: g,
4128
- width: u,
4130
+ width: d,
4129
4131
  height: v
4130
4132
  });
4131
- u = b.width, v = b.height, a.minWidth = u, a.minHeight = v, a.maxWidth = 1 / 0, a.maxHeight = 1 / 0;
4133
+ d = b.width, v = b.height, a.minWidth = d, a.minHeight = v, a.maxWidth = 1 / 0, a.maxHeight = 1 / 0;
4132
4134
  }
4133
4135
  if (r)
4134
4136
  if (f > (m ? 0 : 1)) {
@@ -4140,7 +4142,7 @@ var Ru = {
4140
4142
  renderCanvas: function(e, r) {
4141
4143
  var o = this.canvasData, i = this.imageData;
4142
4144
  if (r) {
4143
- var a = Ou({
4145
+ var a = Iu({
4144
4146
  width: i.naturalWidth * Math.abs(i.scaleX || 1),
4145
4147
  height: i.naturalHeight * Math.abs(i.scaleY || 1),
4146
4148
  degree: i.rotate || 0
@@ -4180,8 +4182,8 @@ var Ru = {
4180
4182
  limitCropBox: function(e, r) {
4181
4183
  var o = this.options, i = this.containerData, a = this.canvasData, n = this.cropBoxData, f = this.limited, g = o.aspectRatio;
4182
4184
  if (e) {
4183
- var m = Number(o.minCropBoxWidth) || 0, u = Number(o.minCropBoxHeight) || 0, v = f ? Math.min(i.width, a.width, a.width + a.left, i.width - a.left) : i.width, b = f ? Math.min(i.height, a.height, a.height + a.top, i.height - a.top) : i.height;
4184
- m = Math.min(m, i.width), u = Math.min(u, i.height), g && (m && u ? u * g > m ? u = m / g : m = u * g : m ? u = m / g : u && (m = u * g), b * g > v ? b = v / g : v = b * g), n.minWidth = Math.min(m, v), n.minHeight = Math.min(u, b), n.maxWidth = v, n.maxHeight = b;
4185
+ var m = Number(o.minCropBoxWidth) || 0, d = Number(o.minCropBoxHeight) || 0, v = f ? Math.min(i.width, a.width, a.width + a.left, i.width - a.left) : i.width, b = f ? Math.min(i.height, a.height, a.height + a.top, i.height - a.top) : i.height;
4186
+ m = Math.min(m, i.width), d = Math.min(d, i.height), g && (m && d ? d * g > m ? d = m / g : m = d * g : m ? d = m / g : d && (m = d * g), b * g > v ? b = v / g : v = b * g), n.minWidth = Math.min(m, v), n.minHeight = Math.min(d, b), n.maxWidth = v, n.maxHeight = b;
4185
4187
  }
4186
4188
  r && (f ? (n.minLeft = Math.max(0, a.left), n.minTop = Math.max(0, a.top), n.maxLeft = Math.min(i.width, a.left + a.width) - n.width, n.maxTop = Math.min(i.height, a.top + a.height) - n.height) : (n.minLeft = 0, n.minTop = 0, n.maxLeft = i.width - n.width, n.maxTop = i.height - n.height));
4187
4189
  },
@@ -4198,7 +4200,7 @@ var Ru = {
4198
4200
  output: function() {
4199
4201
  this.preview(), Qe(this.element, Qt, this.getData());
4200
4202
  }
4201
- }, Bu = {
4203
+ }, Hu = {
4202
4204
  initPreview: function() {
4203
4205
  var e = this.element, r = this.crossOrigin, o = this.options.preview, i = r ? this.crossOriginUrl : this.url, a = e.alt || "The image to preview", n = document.createElement("img");
4204
4206
  if (r && (n.crossOrigin = r), n.src = i, n.alt = a, this.viewBox.appendChild(n), this.viewBoxImage = n, !!o) {
@@ -4219,7 +4221,7 @@ var Ru = {
4219
4221
  Ie(e, {
4220
4222
  width: r.width,
4221
4223
  height: r.height
4222
- }), e.innerHTML = r.html, $u(e, St);
4224
+ }), e.innerHTML = r.html, Eu(e, St);
4223
4225
  });
4224
4226
  },
4225
4227
  preview: function() {
@@ -4230,12 +4232,12 @@ var Ru = {
4230
4232
  }, dt(re({
4231
4233
  translateX: -g,
4232
4234
  translateY: -m
4233
- }, e)))), se(this.previews, function(u) {
4234
- var v = ar(u, St), b = v.width, T = v.height, k = b, S = T, P = 1;
4235
- i && (P = b / i, S = a * P), a && S > T && (P = T / a, k = i * P, S = T), Ie(u, {
4235
+ }, e)))), se(this.previews, function(d) {
4236
+ var v = ar(d, St), b = v.width, T = v.height, k = b, S = T, P = 1;
4237
+ i && (P = b / i, S = a * P), a && S > T && (P = T / a, k = i * P, S = T), Ie(d, {
4236
4238
  width: k,
4237
4239
  height: S
4238
- }), Ie(u.getElementsByTagName("img")[0], re({
4240
+ }), Ie(d.getElementsByTagName("img")[0], re({
4239
4241
  width: n * P,
4240
4242
  height: f * P
4241
4243
  }, dt(re({
@@ -4244,7 +4246,7 @@ var Ru = {
4244
4246
  }, e))));
4245
4247
  }));
4246
4248
  }
4247
- }, Hu = {
4249
+ }, Uu = {
4248
4250
  bind: function() {
4249
4251
  var e = this.element, r = this.options, o = this.cropper;
4250
4252
  fe(r.cropstart) && be(e, rr, r.cropstart), fe(r.cropmove) && be(e, tr, r.cropmove), fe(r.cropend) && be(e, er, r.cropend), fe(r.crop) && be(e, Qt, r.crop), fe(r.zoom) && be(e, or, r.zoom), be(o, Qr, this.onCropStart = this.cropStart.bind(this)), r.zoomable && r.zoomOnWheel && be(o, ao, this.onWheel = this.wheel.bind(this), {
@@ -4259,22 +4261,22 @@ var Ru = {
4259
4261
  capture: !0
4260
4262
  }), r.toggleDragModeOnDblclick && xe(o, Zr, this.onDblclick), xe(e.ownerDocument, eo, this.onCropMove), xe(e.ownerDocument, to, this.onCropEnd), r.responsive && xe(window, oo, this.onResize);
4261
4263
  }
4262
- }, Uu = {
4264
+ }, Ku = {
4263
4265
  resize: function() {
4264
4266
  if (!this.disabled) {
4265
4267
  var e = this.options, r = this.container, o = this.containerData, i = r.offsetWidth / o.width, a = r.offsetHeight / o.height, n = Math.abs(i - 1) > Math.abs(a - 1) ? i : a;
4266
4268
  if (n !== 1) {
4267
4269
  var f, g;
4268
- e.restore && (f = this.getCanvasData(), g = this.getCropBoxData()), this.render(), e.restore && (this.setCanvasData(se(f, function(m, u) {
4269
- f[u] = m * n;
4270
- })), this.setCropBoxData(se(g, function(m, u) {
4271
- g[u] = m * n;
4270
+ e.restore && (f = this.getCanvasData(), g = this.getCropBoxData()), this.render(), e.restore && (this.setCanvasData(se(f, function(m, d) {
4271
+ f[d] = m * n;
4272
+ })), this.setCropBoxData(se(g, function(m, d) {
4273
+ g[d] = m * n;
4272
4274
  })));
4273
4275
  }
4274
4276
  }
4275
4277
  },
4276
4278
  dblclick: function() {
4277
- this.disabled || this.options.dragMode === Go || this.setDragMode(Cu(this.dragBox, Jt) ? qo : yr);
4279
+ this.disabled || this.options.dragMode === Go || this.setDragMode(Mu(this.dragBox, Jt) ? qo : yr);
4278
4280
  },
4279
4281
  wheel: function(e) {
4280
4282
  var r = this, o = Number(this.options.wheelZoomRatio) || 0.1, i = 1;
@@ -4288,7 +4290,7 @@ var Ru = {
4288
4290
  var i = this.options, a = this.pointers, n;
4289
4291
  e.changedTouches ? se(e.changedTouches, function(f) {
4290
4292
  a[f.identifier] = Dt(f);
4291
- }) : a[e.pointerId || 0] = Dt(e), Object.keys(a).length > 1 && i.zoomable && i.zoomOnTouch ? n = Xo : n = ar(e.target, ft), !!pu.test(n) && Qe(this.element, rr, {
4293
+ }) : a[e.pointerId || 0] = Dt(e), Object.keys(a).length > 1 && i.zoomable && i.zoomOnTouch ? n = Xo : n = ar(e.target, ft), !!vu.test(n) && Qe(this.element, rr, {
4292
4294
  originalEvent: e,
4293
4295
  action: n
4294
4296
  }) !== !1 && (e.preventDefault(), this.action = n, this.cropping = !1, n === Yo && (this.cropping = !0, ne(this.dragBox, At)));
@@ -4317,9 +4319,9 @@ var Ru = {
4317
4319
  }));
4318
4320
  }
4319
4321
  }
4320
- }, Ku = {
4322
+ }, Fu = {
4321
4323
  change: function(e) {
4322
- var r = this.options, o = this.canvasData, i = this.containerData, a = this.cropBoxData, n = this.pointers, f = this.action, g = r.aspectRatio, m = a.left, u = a.top, v = a.width, b = a.height, T = m + v, k = u + b, S = 0, P = 0, F = i.width, H = i.height, j = !0, V;
4324
+ var r = this.options, o = this.canvasData, i = this.containerData, a = this.cropBoxData, n = this.pointers, f = this.action, g = r.aspectRatio, m = a.left, d = a.top, v = a.width, b = a.height, T = m + v, k = d + b, S = 0, P = 0, F = i.width, H = i.height, j = !0, V;
4323
4325
  !g && e.shiftKey && (g = v && b ? v / b : 1), this.limited && (S = a.minLeft, P = a.minTop, F = S + Math.min(i.width, o.width, o.left + o.width), H = P + Math.min(i.height, o.height, o.top + o.height));
4324
4326
  var W = n[Object.keys(n)[0]], M = {
4325
4327
  x: W.endX - W.startX,
@@ -4333,7 +4335,7 @@ var Ru = {
4333
4335
  m + M.x < S && (M.x = S - m);
4334
4336
  break;
4335
4337
  case Oe:
4336
- u + M.y < P && (M.y = P - u);
4338
+ d + M.y < P && (M.y = P - d);
4337
4339
  break;
4338
4340
  case qe:
4339
4341
  k + M.y > H && (M.y = H - k);
@@ -4342,57 +4344,57 @@ var Ru = {
4342
4344
  };
4343
4345
  switch (f) {
4344
4346
  case br:
4345
- m += M.x, u += M.y;
4347
+ m += M.x, d += M.y;
4346
4348
  break;
4347
4349
  case Ve:
4348
- if (M.x >= 0 && (T >= F || g && (u <= P || k >= H))) {
4350
+ if (M.x >= 0 && (T >= F || g && (d <= P || k >= H))) {
4349
4351
  j = !1;
4350
4352
  break;
4351
4353
  }
4352
- K(Ve), v += M.x, v < 0 && (f = ze, v = -v, m -= v), g && (b = v / g, u += (a.height - b) / 2);
4354
+ K(Ve), v += M.x, v < 0 && (f = ze, v = -v, m -= v), g && (b = v / g, d += (a.height - b) / 2);
4353
4355
  break;
4354
4356
  case Oe:
4355
- if (M.y <= 0 && (u <= P || g && (m <= S || T >= F))) {
4357
+ if (M.y <= 0 && (d <= P || g && (m <= S || T >= F))) {
4356
4358
  j = !1;
4357
4359
  break;
4358
4360
  }
4359
- K(Oe), b -= M.y, u += M.y, b < 0 && (f = qe, b = -b, u -= b), g && (v = b * g, m += (a.width - v) / 2);
4361
+ K(Oe), b -= M.y, d += M.y, b < 0 && (f = qe, b = -b, d -= b), g && (v = b * g, m += (a.width - v) / 2);
4360
4362
  break;
4361
4363
  case ze:
4362
- if (M.x <= 0 && (m <= S || g && (u <= P || k >= H))) {
4364
+ if (M.x <= 0 && (m <= S || g && (d <= P || k >= H))) {
4363
4365
  j = !1;
4364
4366
  break;
4365
4367
  }
4366
- K(ze), v -= M.x, m += M.x, v < 0 && (f = Ve, v = -v, m -= v), g && (b = v / g, u += (a.height - b) / 2);
4368
+ K(ze), v -= M.x, m += M.x, v < 0 && (f = Ve, v = -v, m -= v), g && (b = v / g, d += (a.height - b) / 2);
4367
4369
  break;
4368
4370
  case qe:
4369
4371
  if (M.y >= 0 && (k >= H || g && (m <= S || T >= F))) {
4370
4372
  j = !1;
4371
4373
  break;
4372
4374
  }
4373
- K(qe), b += M.y, b < 0 && (f = Oe, b = -b, u -= b), g && (v = b * g, m += (a.width - v) / 2);
4375
+ K(qe), b += M.y, b < 0 && (f = Oe, b = -b, d -= b), g && (v = b * g, m += (a.width - v) / 2);
4374
4376
  break;
4375
4377
  case nt:
4376
4378
  if (g) {
4377
- if (M.y <= 0 && (u <= P || T >= F)) {
4379
+ if (M.y <= 0 && (d <= P || T >= F)) {
4378
4380
  j = !1;
4379
4381
  break;
4380
4382
  }
4381
- K(Oe), b -= M.y, u += M.y, v = b * g;
4383
+ K(Oe), b -= M.y, d += M.y, v = b * g;
4382
4384
  } else
4383
- K(Oe), K(Ve), M.x >= 0 ? T < F ? v += M.x : M.y <= 0 && u <= P && (j = !1) : v += M.x, M.y <= 0 ? u > P && (b -= M.y, u += M.y) : (b -= M.y, u += M.y);
4384
- v < 0 && b < 0 ? (f = ut, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = lt, v = -v, m -= v) : b < 0 && (f = ct, b = -b, u -= b);
4385
+ K(Oe), K(Ve), M.x >= 0 ? T < F ? v += M.x : M.y <= 0 && d <= P && (j = !1) : v += M.x, M.y <= 0 ? d > P && (b -= M.y, d += M.y) : (b -= M.y, d += M.y);
4386
+ v < 0 && b < 0 ? (f = ut, b = -b, v = -v, d -= b, m -= v) : v < 0 ? (f = lt, v = -v, m -= v) : b < 0 && (f = ct, b = -b, d -= b);
4385
4387
  break;
4386
4388
  case lt:
4387
4389
  if (g) {
4388
- if (M.y <= 0 && (u <= P || m <= S)) {
4390
+ if (M.y <= 0 && (d <= P || m <= S)) {
4389
4391
  j = !1;
4390
4392
  break;
4391
4393
  }
4392
- K(Oe), b -= M.y, u += M.y, v = b * g, m += a.width - v;
4394
+ K(Oe), b -= M.y, d += M.y, v = b * g, m += a.width - v;
4393
4395
  } else
4394
- K(Oe), K(ze), M.x <= 0 ? m > S ? (v -= M.x, m += M.x) : M.y <= 0 && u <= P && (j = !1) : (v -= M.x, m += M.x), M.y <= 0 ? u > P && (b -= M.y, u += M.y) : (b -= M.y, u += M.y);
4395
- v < 0 && b < 0 ? (f = ct, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = nt, v = -v, m -= v) : b < 0 && (f = ut, b = -b, u -= b);
4396
+ K(Oe), K(ze), M.x <= 0 ? m > S ? (v -= M.x, m += M.x) : M.y <= 0 && d <= P && (j = !1) : (v -= M.x, m += M.x), M.y <= 0 ? d > P && (b -= M.y, d += M.y) : (b -= M.y, d += M.y);
4397
+ v < 0 && b < 0 ? (f = ct, b = -b, v = -v, d -= b, m -= v) : v < 0 ? (f = nt, v = -v, m -= v) : b < 0 && (f = ut, b = -b, d -= b);
4396
4398
  break;
4397
4399
  case ut:
4398
4400
  if (g) {
@@ -4403,7 +4405,7 @@ var Ru = {
4403
4405
  K(ze), v -= M.x, m += M.x, b = v / g;
4404
4406
  } else
4405
4407
  K(qe), K(ze), M.x <= 0 ? m > S ? (v -= M.x, m += M.x) : M.y >= 0 && k >= H && (j = !1) : (v -= M.x, m += M.x), M.y >= 0 ? k < H && (b += M.y) : b += M.y;
4406
- v < 0 && b < 0 ? (f = nt, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = ct, v = -v, m -= v) : b < 0 && (f = lt, b = -b, u -= b);
4408
+ v < 0 && b < 0 ? (f = nt, b = -b, v = -v, d -= b, m -= v) : v < 0 ? (f = ct, v = -v, m -= v) : b < 0 && (f = lt, b = -b, d -= b);
4407
4409
  break;
4408
4410
  case ct:
4409
4411
  if (g) {
@@ -4414,27 +4416,27 @@ var Ru = {
4414
4416
  K(Ve), v += M.x, b = v / g;
4415
4417
  } else
4416
4418
  K(qe), K(Ve), M.x >= 0 ? T < F ? v += M.x : M.y >= 0 && k >= H && (j = !1) : v += M.x, M.y >= 0 ? k < H && (b += M.y) : b += M.y;
4417
- v < 0 && b < 0 ? (f = lt, b = -b, v = -v, u -= b, m -= v) : v < 0 ? (f = ut, v = -v, m -= v) : b < 0 && (f = nt, b = -b, u -= b);
4419
+ v < 0 && b < 0 ? (f = lt, b = -b, v = -v, d -= b, m -= v) : v < 0 ? (f = ut, v = -v, m -= v) : b < 0 && (f = nt, b = -b, d -= b);
4418
4420
  break;
4419
4421
  case Wo:
4420
4422
  this.move(M.x, M.y), j = !1;
4421
4423
  break;
4422
4424
  case Xo:
4423
- this.zoom(Tu(n), e), j = !1;
4425
+ this.zoom(Au(n), e), j = !1;
4424
4426
  break;
4425
4427
  case Yo:
4426
4428
  if (!M.x || !M.y) {
4427
4429
  j = !1;
4428
4430
  break;
4429
4431
  }
4430
- V = ra(this.cropper), m = W.startX - V.left, u = W.startY - V.top, v = a.minWidth, b = a.minHeight, M.x > 0 ? f = M.y > 0 ? ct : nt : M.x < 0 && (m -= v, f = M.y > 0 ? ut : lt), M.y < 0 && (u -= b), this.cropped || (De(this.cropBox, me), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
4432
+ V = ra(this.cropper), m = W.startX - V.left, d = W.startY - V.top, v = a.minWidth, b = a.minHeight, M.x > 0 ? f = M.y > 0 ? ct : nt : M.x < 0 && (m -= v, f = M.y > 0 ? ut : lt), M.y < 0 && (d -= b), this.cropped || (De(this.cropBox, me), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
4431
4433
  break;
4432
4434
  }
4433
- j && (a.width = v, a.height = b, a.left = m, a.top = u, this.action = f, this.renderCropBox()), se(n, function(Q) {
4435
+ j && (a.width = v, a.height = b, a.left = m, a.top = d, this.action = f, this.renderCropBox()), se(n, function(Q) {
4434
4436
  Q.startX = Q.endX, Q.startY = Q.endY;
4435
4437
  });
4436
4438
  }
4437
- }, Fu = {
4439
+ }, Yu = {
4438
4440
  crop: function() {
4439
4441
  return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && ne(this.dragBox, At), De(this.cropBox, me), this.setCropBoxData(this.initialCropBoxData)), this;
4440
4442
  },
@@ -4480,7 +4482,7 @@ var Ru = {
4480
4482
  zoomTo: function(e, r, o) {
4481
4483
  var i = this.options, a = this.canvasData, n = a.width, f = a.height, g = a.naturalWidth, m = a.naturalHeight;
4482
4484
  if (e = Number(e), e >= 0 && this.ready && !this.disabled && i.zoomable) {
4483
- var u = g * e, v = m * e;
4485
+ var d = g * e, v = m * e;
4484
4486
  if (Qe(this.element, or, {
4485
4487
  ratio: e,
4486
4488
  oldRatio: n / g,
@@ -4488,14 +4490,14 @@ var Ru = {
4488
4490
  }) === !1)
4489
4491
  return this;
4490
4492
  if (o) {
4491
- var b = this.pointers, T = ra(this.cropper), k = b && Object.keys(b).length ? Au(b) : {
4493
+ var b = this.pointers, T = ra(this.cropper), k = b && Object.keys(b).length ? Ou(b) : {
4492
4494
  pageX: o.pageX,
4493
4495
  pageY: o.pageY
4494
4496
  };
4495
- a.left -= (u - n) * ((k.pageX - T.left - a.left) / n), a.top -= (v - f) * ((k.pageY - T.top - a.top) / f);
4497
+ a.left -= (d - n) * ((k.pageX - T.left - a.left) / n), a.top -= (v - f) * ((k.pageY - T.top - a.top) / f);
4496
4498
  } else
4497
- Ge(r) && Y(r.x) && Y(r.y) ? (a.left -= (u - n) * ((r.x - a.left) / n), a.top -= (v - f) * ((r.y - a.top) / f)) : (a.left -= (u - n) / 2, a.top -= (v - f) / 2);
4498
- a.width = u, a.height = v, this.renderCanvas(!0);
4499
+ Ge(r) && Y(r.x) && Y(r.y) ? (a.left -= (d - n) * ((r.x - a.left) / n), a.top -= (v - f) * ((r.y - a.top) / f)) : (a.left -= (d - n) / 2, a.top -= (v - f) / 2);
4500
+ a.width = d, a.height = v, this.renderCanvas(!0);
4499
4501
  }
4500
4502
  return this;
4501
4503
  },
@@ -4527,8 +4529,8 @@ var Ru = {
4527
4529
  height: a.height
4528
4530
  };
4529
4531
  var f = o.width / o.naturalWidth;
4530
- if (se(n, function(u, v) {
4531
- n[v] = u / f;
4532
+ if (se(n, function(d, v) {
4533
+ n[v] = d / f;
4532
4534
  }), e) {
4533
4535
  var g = Math.round(n.y + n.height), m = Math.round(n.x + n.width);
4534
4536
  n.x = Math.round(n.x), n.y = Math.round(n.y), n.width = m - n.x, n.height = g - n.y;
@@ -4585,21 +4587,21 @@ var Ru = {
4585
4587
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4586
4588
  if (!this.ready || !window.HTMLCanvasElement)
4587
4589
  return null;
4588
- var r = this.canvasData, o = Iu(this.image, this.imageData, r, e);
4590
+ var r = this.canvasData, o = Lu(this.image, this.imageData, r, e);
4589
4591
  if (!this.cropped)
4590
4592
  return o;
4591
4593
  var i = this.getData(), a = i.x, n = i.y, f = i.width, g = i.height, m = o.width / Math.floor(r.naturalWidth);
4592
4594
  m !== 1 && (a *= m, n *= m, f *= m, g *= m);
4593
- var u = f / g, v = Le({
4594
- aspectRatio: u,
4595
+ var d = f / g, v = Le({
4596
+ aspectRatio: d,
4595
4597
  width: e.maxWidth || 1 / 0,
4596
4598
  height: e.maxHeight || 1 / 0
4597
4599
  }), b = Le({
4598
- aspectRatio: u,
4600
+ aspectRatio: d,
4599
4601
  width: e.minWidth || 0,
4600
4602
  height: e.minHeight || 0
4601
4603
  }, "cover"), T = Le({
4602
- aspectRatio: u,
4604
+ aspectRatio: d,
4603
4605
  width: e.width || (m !== 1 ? o.width : f),
4604
4606
  height: e.height || (m !== 1 ? o.height : g)
4605
4607
  }), k = T.width, S = T.height;
@@ -4631,14 +4633,14 @@ var Ru = {
4631
4633
  }
4632
4634
  return this;
4633
4635
  }
4634
- }, Yu = Ce.Cropper, aa = /* @__PURE__ */ function() {
4636
+ }, Wu = Ce.Cropper, aa = /* @__PURE__ */ function() {
4635
4637
  function t(e) {
4636
4638
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
4637
- if (su(this, t), !e || !yu.test(e.tagName))
4639
+ if (iu(this, t), !e || !wu.test(e.tagName))
4638
4640
  throw new Error("The first argument is required and must be an <img> or <canvas> element.");
4639
4641
  this.element = e, this.options = re({}, io, Ge(r) && r), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
4640
4642
  }
4641
- return iu(t, [{
4643
+ return nu(t, [{
4642
4644
  key: "init",
4643
4645
  value: function() {
4644
4646
  var r = this.element, o = r.tagName.toLowerCase(), i;
@@ -4663,8 +4665,8 @@ var Ru = {
4663
4665
  this.clone();
4664
4666
  return;
4665
4667
  }
4666
- if (vu.test(r)) {
4667
- bu.test(r) ? this.read(Nu(r)) : this.clone();
4668
+ if (bu.test(r)) {
4669
+ yu.test(r) ? this.read(ju(r)) : this.clone();
4668
4670
  return;
4669
4671
  }
4670
4672
  var n = new XMLHttpRequest(), f = this.clone.bind(this);
@@ -4680,10 +4682,10 @@ var Ru = {
4680
4682
  }, {
4681
4683
  key: "read",
4682
4684
  value: function(r) {
4683
- var o = this.options, i = this.imageData, a = Vu(r), n = 0, f = 1, g = 1;
4685
+ var o = this.options, i = this.imageData, a = zu(r), n = 0, f = 1, g = 1;
4684
4686
  if (a > 1) {
4685
- this.url = ju(r, so);
4686
- var m = zu(a);
4687
+ this.url = Vu(r, so);
4688
+ var m = Ru(a);
4687
4689
  n = m.rotate, f = m.scaleX, g = m.scaleY;
4688
4690
  }
4689
4691
  o.rotatable && (i.rotate = n), o.scalable && (i.scaleX = f, i.scaleY = g), this.clone();
@@ -4701,11 +4703,11 @@ var Ru = {
4701
4703
  value: function() {
4702
4704
  var r = this, o = this.image;
4703
4705
  o.onload = null, o.onerror = null, this.sizing = !0;
4704
- var i = Ce.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Ce.navigator.userAgent), a = function(m, u) {
4706
+ var i = Ce.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Ce.navigator.userAgent), a = function(m, d) {
4705
4707
  re(r.imageData, {
4706
4708
  naturalWidth: m,
4707
- naturalHeight: u,
4708
- aspectRatio: m / u
4709
+ naturalHeight: d,
4710
+ aspectRatio: m / d
4709
4711
  }), r.initialImageData = re({}, r.imageData), r.sizing = !1, r.sized = !0, r.build();
4710
4712
  };
4711
4713
  if (o.naturalWidth && !i) {
@@ -4728,9 +4730,9 @@ var Ru = {
4728
4730
  value: function() {
4729
4731
  if (!(!this.sized || this.ready)) {
4730
4732
  var r = this.element, o = this.options, i = this.image, a = r.parentNode, n = document.createElement("div");
4731
- n.innerHTML = wu;
4732
- var f = n.querySelector(".".concat(te, "-container")), g = f.querySelector(".".concat(te, "-canvas")), m = f.querySelector(".".concat(te, "-drag-box")), u = f.querySelector(".".concat(te, "-crop-box")), v = u.querySelector(".".concat(te, "-face"));
4733
- this.container = a, this.cropper = f, this.canvas = g, this.dragBox = m, this.cropBox = u, this.viewBox = f.querySelector(".".concat(te, "-view-box")), this.face = v, g.appendChild(i), ne(r, me), a.insertBefore(f, r.nextSibling), this.isImg || De(i, Jr), this.initPreview(), this.bind(), o.initialAspectRatio = Math.max(0, o.initialAspectRatio) || NaN, o.aspectRatio = Math.max(0, o.aspectRatio) || NaN, o.viewMode = Math.max(0, Math.min(3, Math.round(o.viewMode))) || 0, ne(u, me), o.guides || ne(u.getElementsByClassName("".concat(te, "-dashed")), me), o.center || ne(u.getElementsByClassName("".concat(te, "-center")), me), o.background && ne(f, "".concat(te, "-bg")), o.highlight || ne(v, hu), o.cropBoxMovable && (ne(v, Zt), mt(v, ft, br)), o.cropBoxResizable || (ne(u.getElementsByClassName("".concat(te, "-line")), me), ne(u.getElementsByClassName("".concat(te, "-point")), me)), this.render(), this.ready = !0, this.setDragMode(o.dragMode), o.autoCrop && this.crop(), this.setData(o.data), fe(o.ready) && be(r, ro, o.ready, {
4733
+ n.innerHTML = xu;
4734
+ var f = n.querySelector(".".concat(te, "-container")), g = f.querySelector(".".concat(te, "-canvas")), m = f.querySelector(".".concat(te, "-drag-box")), d = f.querySelector(".".concat(te, "-crop-box")), v = d.querySelector(".".concat(te, "-face"));
4735
+ this.container = a, this.cropper = f, this.canvas = g, this.dragBox = m, this.cropBox = d, this.viewBox = f.querySelector(".".concat(te, "-view-box")), this.face = v, g.appendChild(i), ne(r, me), a.insertBefore(f, r.nextSibling), this.isImg || De(i, Jr), this.initPreview(), this.bind(), o.initialAspectRatio = Math.max(0, o.initialAspectRatio) || NaN, o.aspectRatio = Math.max(0, o.aspectRatio) || NaN, o.viewMode = Math.max(0, Math.min(3, Math.round(o.viewMode))) || 0, ne(d, me), o.guides || ne(d.getElementsByClassName("".concat(te, "-dashed")), me), o.center || ne(d.getElementsByClassName("".concat(te, "-center")), me), o.background && ne(f, "".concat(te, "-bg")), o.highlight || ne(v, fu), o.cropBoxMovable && (ne(v, Zt), mt(v, ft, br)), o.cropBoxResizable || (ne(d.getElementsByClassName("".concat(te, "-line")), me), ne(d.getElementsByClassName("".concat(te, "-point")), me)), this.render(), this.ready = !0, this.setDragMode(o.dragMode), o.autoCrop && this.crop(), this.setData(o.data), fe(o.ready) && be(r, ro, o.ready, {
4734
4736
  once: !0
4735
4737
  }), Qe(r, ro);
4736
4738
  }
@@ -4748,7 +4750,7 @@ var Ru = {
4748
4750
  }], [{
4749
4751
  key: "noConflict",
4750
4752
  value: function() {
4751
- return window.Cropper = Yu, t;
4753
+ return window.Cropper = Wu, t;
4752
4754
  }
4753
4755
  }, {
4754
4756
  key: "setDefaults",
@@ -4757,15 +4759,15 @@ var Ru = {
4757
4759
  }
4758
4760
  }]), t;
4759
4761
  }();
4760
- re(aa.prototype, Ru, Bu, Hu, Uu, Ku, Fu);
4761
- const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2" }, Gu = { class: "w-full flex justify-center" }, Ju = ["src"], Zu = {
4762
+ re(aa.prototype, Bu, Hu, Uu, Ku, Fu, Yu);
4763
+ const Xu = { class: "flex" }, qu = ["aria-label"], Gu = { class: "ml-auto mb-2" }, Ju = { class: "w-full flex justify-center" }, Zu = ["src"], Qu = {
4762
4764
  __name: "Image",
4763
4765
  props: {
4764
4766
  selection: Object
4765
4767
  },
4766
4768
  emits: ["load"],
4767
4769
  setup(t, { emit: e }) {
4768
- const r = t, { t: o } = R("i18n"), { apiUrl: i } = Me(), a = L(null), n = L(null), f = L(!1), g = L(""), m = L(!1), u = () => {
4770
+ const r = t, { t: o } = R("i18n"), { apiUrl: i } = Me(), a = L(null), n = L(null), f = L(!1), g = L(""), m = L(!1), d = () => {
4769
4771
  f.value = !f.value, f.value ? n.value = new aa(a.value, {
4770
4772
  crop(T) {
4771
4773
  }
@@ -4787,7 +4789,7 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4787
4789
  name: r.selection.item.basename,
4788
4790
  json: !1
4789
4791
  }).then((k) => {
4790
- g.value = o("Updated."), a.value.src = Xt(r.selection.adapter, r.selection.item.path), u(), e("load");
4792
+ g.value = o("Updated."), a.value.src = Xt(r.selection.adapter, r.selection.item.path), d(), e("load");
4791
4793
  }).catch((k) => {
4792
4794
  g.value = o(k.message), m.value = !0;
4793
4795
  });
@@ -4797,34 +4799,34 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4797
4799
  return ke(() => {
4798
4800
  e("load");
4799
4801
  }), (T, k) => (y(), C(le, null, [
4800
- d("div", Wu, [
4801
- d("h3", {
4802
+ u("div", Xu, [
4803
+ u("h3", {
4802
4804
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4803
4805
  id: "modal-title",
4804
4806
  "aria-label": t.selection.item.path,
4805
4807
  "data-microtip-position": "bottom-right",
4806
4808
  role: "tooltip"
4807
- }, E(t.selection.item.basename), 9, Xu),
4808
- d("div", qu, [
4809
+ }, E(t.selection.item.basename), 9, qu),
4810
+ u("div", Gu, [
4809
4811
  f.value ? (y(), C("button", {
4810
4812
  key: 0,
4811
4813
  onClick: b,
4812
4814
  class: "ml-1 px-2 py-1 rounded border border-transparent shadow-sm bg-blue-700/75 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-700/50 text-base font-medium text-white sm:ml-3 sm:w-auto sm:text-sm"
4813
4815
  }, E(x(o)("Crop")), 1)) : G("", !0),
4814
- d("button", {
4816
+ u("button", {
4815
4817
  class: "ml-1 px-2 py-1 text-blue-500",
4816
- onClick: k[0] || (k[0] = (S) => u())
4818
+ onClick: k[0] || (k[0] = (S) => d())
4817
4819
  }, E(f.value ? x(o)("Cancel") : x(o)("Edit")), 1)
4818
4820
  ])
4819
4821
  ]),
4820
- d("div", Gu, [
4821
- d("img", {
4822
+ u("div", Ju, [
4823
+ u("img", {
4822
4824
  ref_key: "image",
4823
4825
  ref: a,
4824
4826
  class: "max-w-[60vh] max-h-[60vh]",
4825
4827
  src: x(Xt)(r.selection.adapter, r.selection.item.path),
4826
4828
  alt: ""
4827
- }, null, 8, Ju)
4829
+ }, null, 8, Zu)
4828
4830
  ]),
4829
4831
  g.value.length ? (y(), Z(Ee, {
4830
4832
  key: 0,
@@ -4838,7 +4840,7 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4838
4840
  }, 8, ["error"])) : G("", !0)
4839
4841
  ], 64));
4840
4842
  }
4841
- }, Qu = { class: "flex" }, ed = ["aria-label"], td = /* @__PURE__ */ d("div", null, null, -1), rd = {
4843
+ }, ed = { class: "flex" }, td = ["aria-label"], rd = /* @__PURE__ */ u("div", null, null, -1), od = {
4842
4844
  __name: "Default",
4843
4845
  props: {
4844
4846
  selection: Object
@@ -4848,23 +4850,23 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4848
4850
  return ke(() => {
4849
4851
  e("load");
4850
4852
  }), (r, o) => (y(), C(le, null, [
4851
- d("div", Qu, [
4852
- d("h3", {
4853
+ u("div", ed, [
4854
+ u("h3", {
4853
4855
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4854
4856
  id: "modal-title",
4855
4857
  "aria-label": t.selection.item.path,
4856
4858
  "data-microtip-position": "bottom-right",
4857
4859
  role: "tooltip"
4858
- }, E(t.selection.item.basename), 9, ed)
4860
+ }, E(t.selection.item.basename), 9, td)
4859
4861
  ]),
4860
- td
4862
+ rd
4861
4863
  ], 64));
4862
4864
  }
4863
- }, od = ["aria-label"], ad = {
4865
+ }, ad = ["aria-label"], sd = {
4864
4866
  class: "w-full",
4865
4867
  preload: "",
4866
4868
  controls: ""
4867
- }, sd = ["src"], id = {
4869
+ }, id = ["src"], nd = {
4868
4870
  __name: "Video",
4869
4871
  props: {
4870
4872
  selection: Object
@@ -4875,28 +4877,28 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4875
4877
  return ke(() => {
4876
4878
  e("load");
4877
4879
  }), (a, n) => (y(), C(le, null, [
4878
- d("h3", {
4880
+ u("h3", {
4879
4881
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4880
4882
  id: "modal-title",
4881
4883
  "aria-label": t.selection.item.path,
4882
4884
  "data-microtip-position": "bottom-right",
4883
4885
  role: "tooltip"
4884
- }, E(t.selection.item.basename), 9, od),
4885
- d("div", null, [
4886
- d("video", ad, [
4887
- d("source", {
4886
+ }, E(t.selection.item.basename), 9, ad),
4887
+ u("div", null, [
4888
+ u("video", sd, [
4889
+ u("source", {
4888
4890
  src: i(),
4889
4891
  type: "video/mp4"
4890
- }, null, 8, sd),
4892
+ }, null, 8, id),
4891
4893
  ie(" Your browser does not support the video tag. ")
4892
4894
  ])
4893
4895
  ])
4894
4896
  ], 64));
4895
4897
  }
4896
- }, nd = ["aria-label"], ld = {
4898
+ }, ld = ["aria-label"], cd = {
4897
4899
  class: "w-full",
4898
4900
  controls: ""
4899
- }, cd = ["src"], ud = {
4901
+ }, ud = ["src"], dd = {
4900
4902
  __name: "Audio",
4901
4903
  props: {
4902
4904
  selection: Object
@@ -4907,25 +4909,25 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4907
4909
  return ke(() => {
4908
4910
  e("load");
4909
4911
  }), (a, n) => (y(), C(le, null, [
4910
- d("h3", {
4912
+ u("h3", {
4911
4913
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4912
4914
  id: "modal-title",
4913
4915
  "aria-label": t.selection.item.path,
4914
4916
  "data-microtip-position": "bottom-right",
4915
4917
  role: "tooltip"
4916
- }, E(t.selection.item.basename), 9, nd),
4917
- d("div", null, [
4918
- d("audio", ld, [
4919
- d("source", {
4918
+ }, E(t.selection.item.basename), 9, ld),
4919
+ u("div", null, [
4920
+ u("audio", cd, [
4921
+ u("source", {
4920
4922
  src: i(),
4921
4923
  type: "audio/mpeg"
4922
- }, null, 8, cd),
4924
+ }, null, 8, ud),
4923
4925
  ie(" Your browser does not support the audio element. ")
4924
4926
  ])
4925
4927
  ])
4926
4928
  ], 64));
4927
4929
  }
4928
- }, dd = ["aria-label"], hd = ["data"], fd = ["src"], md = {
4930
+ }, hd = ["aria-label"], fd = ["data"], md = ["src"], gd = {
4929
4931
  __name: "Pdf",
4930
4932
  props: {
4931
4933
  selection: Object
@@ -4936,22 +4938,22 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4936
4938
  return ke(() => {
4937
4939
  e("load");
4938
4940
  }), (a, n) => (y(), C(le, null, [
4939
- d("h3", {
4941
+ u("h3", {
4940
4942
  class: "mb-2 text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
4941
4943
  id: "modal-title",
4942
4944
  "aria-label": t.selection.item.path,
4943
4945
  "data-microtip-position": "bottom-right",
4944
4946
  role: "tooltip"
4945
- }, E(t.selection.item.basename), 9, dd),
4946
- d("div", null, [
4947
- d("object", {
4947
+ }, E(t.selection.item.basename), 9, hd),
4948
+ u("div", null, [
4949
+ u("object", {
4948
4950
  class: "h-[60vh]",
4949
4951
  data: i(),
4950
4952
  type: "application/pdf",
4951
4953
  width: "100%",
4952
4954
  height: "100%"
4953
4955
  }, [
4954
- d("iframe", {
4956
+ u("iframe", {
4955
4957
  class: "border-0",
4956
4958
  src: i(),
4957
4959
  width: "100%",
@@ -4962,21 +4964,21 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4962
4964
  <a href="https://example.com/test.pdf">Download the PDF</a>
4963
4965
  .
4964
4966
  </p>
4965
- `, 8, fd)
4966
- ], 8, hd)
4967
+ `, 8, md)
4968
+ ], 8, fd)
4967
4969
  ])
4968
4970
  ], 64));
4969
4971
  }
4970
- }, gd = { class: "sm:flex sm:items-start" }, pd = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, vd = { class: "text-gray-700 dark:text-gray-200 text-sm" }, bd = {
4972
+ }, pd = { class: "sm:flex sm:items-start" }, vd = { class: "mt-3 text-center sm:mt-0 sm:text-left w-full" }, bd = { class: "text-gray-700 dark:text-gray-200 text-sm" }, yd = {
4971
4973
  key: 0,
4972
4974
  class: "flex leading-5"
4973
- }, yd = /* @__PURE__ */ d("svg", {
4975
+ }, wd = /* @__PURE__ */ u("svg", {
4974
4976
  class: "animate-spin -ml-1 mr-3 h-5 w-5 text-white",
4975
4977
  xmlns: "http://www.w3.org/2000/svg",
4976
4978
  fill: "none",
4977
4979
  viewBox: "0 0 24 24"
4978
4980
  }, [
4979
- /* @__PURE__ */ d("circle", {
4981
+ /* @__PURE__ */ u("circle", {
4980
4982
  class: "opacity-25 stroke-blue-900 dark:stroke-blue-100",
4981
4983
  cx: "12",
4982
4984
  cy: "12",
@@ -4984,83 +4986,83 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
4984
4986
  stroke: "currentColor",
4985
4987
  "stroke-width": "4"
4986
4988
  }),
4987
- /* @__PURE__ */ d("path", {
4989
+ /* @__PURE__ */ u("path", {
4988
4990
  class: "opacity-75",
4989
4991
  fill: "currentColor",
4990
4992
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
4991
4993
  })
4992
- ], -1), wd = { class: "p-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, xd = { class: "font-bold pl-2" }, _d = { class: "font-bold pl-2" }, kd = {
4994
+ ], -1), xd = { class: "p-2 flex font-normal break-all dark:text-gray-200 rounded text-xs" }, _d = { class: "font-bold pl-2" }, kd = { class: "font-bold pl-2" }, Sd = {
4993
4995
  name: "VFModalPreview"
4994
- }, Sd = /* @__PURE__ */ Object.assign(kd, {
4996
+ }, Dd = /* @__PURE__ */ Object.assign(Sd, {
4995
4997
  props: {
4996
4998
  selection: Object
4997
4999
  },
4998
5000
  setup(t) {
4999
5001
  const e = t, { apiUrl: r } = Me(), o = R("emitter"), { t: i } = R("i18n"), a = L(!1), n = (m) => a.value = m, f = (m) => {
5000
- var u;
5001
- return ((u = e.selection.item.mime_type) != null ? u : "").startsWith(m);
5002
+ var d;
5003
+ return ((d = e.selection.item.mime_type) != null ? d : "").startsWith(m);
5002
5004
  }, g = () => {
5003
5005
  const m = r.value + "?" + Ue({ q: "download", adapter: e.selection.adapter, path: e.selection.item.path });
5004
5006
  o.emit("vf-download", m);
5005
5007
  };
5006
- return (m, u) => (y(), Z($e, null, {
5008
+ return (m, d) => (y(), Z($e, null, {
5007
5009
  buttons: J(() => [
5008
- d("button", {
5010
+ u("button", {
5009
5011
  type: "button",
5010
- onClick: u[6] || (u[6] = (v) => x(o).emit("vf-modal-close")),
5012
+ onClick: d[6] || (d[6] = (v) => x(o).emit("vf-modal-close")),
5011
5013
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-gray-400 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5012
5014
  }, E(x(i)("Close")), 1),
5013
- d("button", {
5015
+ u("button", {
5014
5016
  type: "button",
5015
- onClick: u[7] || (u[7] = (v) => g()),
5017
+ onClick: d[7] || (d[7] = (v) => g()),
5016
5018
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-gray-400 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5017
5019
  }, E(x(i)("Download")), 1)
5018
5020
  ]),
5019
5021
  default: J(() => [
5020
- d("div", gd, [
5021
- d("div", pd, [
5022
- d("div", null, [
5023
- f("text") ? (y(), Z(au, {
5022
+ u("div", pd, [
5023
+ u("div", vd, [
5024
+ u("div", null, [
5025
+ f("text") ? (y(), Z(su, {
5024
5026
  key: 0,
5025
5027
  selection: t.selection,
5026
- onLoad: u[0] || (u[0] = (v) => n(!0))
5027
- }, null, 8, ["selection"])) : f("image") ? (y(), Z(Zu, {
5028
+ onLoad: d[0] || (d[0] = (v) => n(!0))
5029
+ }, null, 8, ["selection"])) : f("image") ? (y(), Z(Qu, {
5028
5030
  key: 1,
5029
5031
  selection: t.selection,
5030
- onLoad: u[1] || (u[1] = (v) => n(!0))
5031
- }, null, 8, ["selection"])) : f("video") ? (y(), Z(id, {
5032
+ onLoad: d[1] || (d[1] = (v) => n(!0))
5033
+ }, null, 8, ["selection"])) : f("video") ? (y(), Z(nd, {
5032
5034
  key: 2,
5033
5035
  selection: t.selection,
5034
- onLoad: u[2] || (u[2] = (v) => n(!0))
5035
- }, null, 8, ["selection"])) : f("audio") ? (y(), Z(ud, {
5036
+ onLoad: d[2] || (d[2] = (v) => n(!0))
5037
+ }, null, 8, ["selection"])) : f("audio") ? (y(), Z(dd, {
5036
5038
  key: 3,
5037
5039
  selection: t.selection,
5038
- onLoad: u[3] || (u[3] = (v) => n(!0))
5039
- }, null, 8, ["selection"])) : f("application/pdf") ? (y(), Z(md, {
5040
+ onLoad: d[3] || (d[3] = (v) => n(!0))
5041
+ }, null, 8, ["selection"])) : f("application/pdf") ? (y(), Z(gd, {
5040
5042
  key: 4,
5041
5043
  selection: t.selection,
5042
- onLoad: u[4] || (u[4] = (v) => n(!0))
5043
- }, null, 8, ["selection"])) : (y(), Z(rd, {
5044
+ onLoad: d[4] || (d[4] = (v) => n(!0))
5045
+ }, null, 8, ["selection"])) : (y(), Z(od, {
5044
5046
  key: 5,
5045
5047
  selection: t.selection,
5046
- onLoad: u[5] || (u[5] = (v) => n(!0))
5048
+ onLoad: d[5] || (d[5] = (v) => n(!0))
5047
5049
  }, null, 8, ["selection"]))
5048
5050
  ]),
5049
- d("div", vd, [
5050
- a.value == !1 ? (y(), C("div", bd, [
5051
- yd,
5052
- d("span", null, E(x(i)("Loading")), 1)
5051
+ u("div", bd, [
5052
+ a.value == !1 ? (y(), C("div", yd, [
5053
+ wd,
5054
+ u("span", null, E(x(i)("Loading")), 1)
5053
5055
  ])) : G("", !0)
5054
5056
  ])
5055
5057
  ])
5056
5058
  ]),
5057
- d("div", wd, [
5058
- d("div", null, [
5059
- d("span", xd, E(x(i)("File Size")) + ": ", 1),
5059
+ u("div", xd, [
5060
+ u("div", null, [
5061
+ u("span", _d, E(x(i)("File Size")) + ": ", 1),
5060
5062
  ie(E(x(mo)(t.selection.item.file_size)), 1)
5061
5063
  ]),
5062
- d("div", null, [
5063
- d("span", _d, E(x(i)("Last Modified")) + ": ", 1),
5064
+ u("div", null, [
5065
+ u("span", kd, E(x(i)("Last Modified")) + ": ", 1),
5064
5066
  ie(" " + E(x(go)(t.selection.item.last_modified)), 1)
5065
5067
  ])
5066
5068
  ])
@@ -5068,8 +5070,8 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5068
5070
  _: 1
5069
5071
  }));
5070
5072
  }
5071
- }), Dd = { class: "sm:flex sm:items-start" }, Cd = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5072
- /* @__PURE__ */ d("svg", {
5073
+ }), Cd = { class: "sm:flex sm:items-start" }, Md = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5074
+ /* @__PURE__ */ u("svg", {
5073
5075
  xmlns: "http://www.w3.org/2000/svg",
5074
5076
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
5075
5077
  fill: "none",
@@ -5077,16 +5079,16 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5077
5079
  stroke: "none",
5078
5080
  "stroke-width": "1.5"
5079
5081
  }, [
5080
- /* @__PURE__ */ d("path", {
5082
+ /* @__PURE__ */ u("path", {
5081
5083
  "stroke-linecap": "round",
5082
5084
  "stroke-linejoin": "round",
5083
5085
  d: "M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"
5084
5086
  })
5085
5087
  ])
5086
- ], -1), Md = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, $d = {
5088
+ ], -1), $d = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ed = {
5087
5089
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
5088
5090
  id: "modal-title"
5089
- }, Ed = { class: "mt-2" }, Td = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Ad = {
5091
+ }, Td = { class: "mt-2" }, Ad = { class: "flex text-sm text-gray-800 dark:text-gray-400 py-2" }, Od = {
5090
5092
  key: 0,
5091
5093
  xmlns: "http://www.w3.org/2000/svg",
5092
5094
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -5094,13 +5096,13 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5094
5096
  viewBox: "0 0 24 24",
5095
5097
  stroke: "currentColor",
5096
5098
  "stroke-width": "1"
5097
- }, Od = /* @__PURE__ */ d("path", {
5099
+ }, Id = /* @__PURE__ */ u("path", {
5098
5100
  "stroke-linecap": "round",
5099
5101
  "stroke-linejoin": "round",
5100
5102
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
5101
- }, null, -1), Id = [
5102
- Od
5103
- ], Ld = {
5103
+ }, null, -1), Ld = [
5104
+ Id
5105
+ ], Pd = {
5104
5106
  key: 1,
5105
5107
  xmlns: "http://www.w3.org/2000/svg",
5106
5108
  class: "h-5 w-5 text-neutral-500",
@@ -5108,15 +5110,15 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5108
5110
  viewBox: "0 0 24 24",
5109
5111
  stroke: "currentColor",
5110
5112
  "stroke-width": "1"
5111
- }, Pd = /* @__PURE__ */ d("path", {
5113
+ }, Nd = /* @__PURE__ */ u("path", {
5112
5114
  "stroke-linecap": "round",
5113
5115
  "stroke-linejoin": "round",
5114
5116
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
5115
- }, null, -1), Nd = [
5116
- Pd
5117
- ], jd = { class: "ml-1.5" }, Vd = ["onKeyup"], zd = {
5117
+ }, null, -1), jd = [
5118
+ Nd
5119
+ ], Vd = { class: "ml-1.5" }, zd = ["onKeyup"], Rd = {
5118
5120
  name: "VFModalRename"
5119
- }, Rd = /* @__PURE__ */ Object.assign(zd, {
5121
+ }, Bd = /* @__PURE__ */ Object.assign(Rd, {
5120
5122
  props: {
5121
5123
  selection: Object,
5122
5124
  current: Object
@@ -5139,41 +5141,41 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5139
5141
  }
5140
5142
  });
5141
5143
  };
5142
- return (m, u) => (y(), Z($e, null, {
5144
+ return (m, d) => (y(), Z($e, null, {
5143
5145
  buttons: J(() => [
5144
- d("button", {
5146
+ u("button", {
5145
5147
  type: "button",
5146
5148
  onClick: g,
5147
5149
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
5148
5150
  }, E(x(i)("Rename")), 1),
5149
- d("button", {
5151
+ u("button", {
5150
5152
  type: "button",
5151
- onClick: u[2] || (u[2] = (v) => x(r).emit("vf-modal-close")),
5153
+ onClick: d[2] || (d[2] = (v) => x(r).emit("vf-modal-close")),
5152
5154
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5153
5155
  }, E(x(i)("Cancel")), 1)
5154
5156
  ]),
5155
5157
  default: J(() => [
5156
- d("div", Dd, [
5157
- Cd,
5158
- d("div", Md, [
5159
- d("h3", $d, E(x(i)("Rename")), 1),
5160
- d("div", Ed, [
5161
- d("p", Td, [
5162
- a.value.type == "dir" ? (y(), C("svg", Ad, Id)) : (y(), C("svg", Ld, Nd)),
5163
- d("span", jd, E(a.value.basename), 1)
5158
+ u("div", Cd, [
5159
+ Md,
5160
+ u("div", $d, [
5161
+ u("h3", Ed, E(x(i)("Rename")), 1),
5162
+ u("div", Td, [
5163
+ u("p", Ad, [
5164
+ a.value.type == "dir" ? (y(), C("svg", Od, Ld)) : (y(), C("svg", Pd, jd)),
5165
+ u("span", Vd, E(a.value.basename), 1)
5164
5166
  ]),
5165
- ye(d("input", {
5166
- "onUpdate:modelValue": u[0] || (u[0] = (v) => n.value = v),
5167
+ ye(u("input", {
5168
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => n.value = v),
5167
5169
  onKeyup: tt(g, ["enter"]),
5168
5170
  class: "px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
5169
5171
  placeholder: "Name",
5170
5172
  type: "text"
5171
- }, null, 40, Vd), [
5173
+ }, null, 40, zd), [
5172
5174
  [rt, n.value]
5173
5175
  ]),
5174
5176
  f.value.length ? (y(), Z(Ee, {
5175
5177
  key: 0,
5176
- onHidden: u[1] || (u[1] = (v) => f.value = ""),
5178
+ onHidden: d[1] || (d[1] = (v) => f.value = ""),
5177
5179
  error: ""
5178
5180
  }, {
5179
5181
  default: J(() => [
@@ -5188,8 +5190,8 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5188
5190
  _: 1
5189
5191
  }));
5190
5192
  }
5191
- }), Bd = { class: "sm:flex sm:items-start" }, Hd = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5192
- /* @__PURE__ */ d("svg", {
5193
+ }), Hd = { class: "sm:flex sm:items-start" }, Ud = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5194
+ /* @__PURE__ */ u("svg", {
5193
5195
  xmlns: "http://www.w3.org/2000/svg",
5194
5196
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
5195
5197
  fill: "none",
@@ -5197,26 +5199,26 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5197
5199
  stroke: "none",
5198
5200
  "stroke-width": "1.5"
5199
5201
  }, [
5200
- /* @__PURE__ */ d("path", {
5202
+ /* @__PURE__ */ u("path", {
5201
5203
  "stroke-linecap": "round",
5202
5204
  "stroke-linejoin": "round",
5203
5205
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
5204
5206
  })
5205
5207
  ])
5206
- ], -1), Ud = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Kd = {
5208
+ ], -1), Kd = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Fd = {
5207
5209
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
5208
5210
  id: "modal-title"
5209
- }, Fd = { class: "mt-2" }, Yd = { class: "text-gray-500 mb-1" }, Wd = ["id"], Xd = {
5211
+ }, Yd = { class: "mt-2" }, Wd = { class: "text-gray-500 mb-1" }, Xd = ["id"], qd = {
5210
5212
  key: 0,
5211
5213
  class: "py-2"
5212
- }, qd = ["disabled", "onClick"], Gd = {
5214
+ }, Gd = ["disabled", "onClick"], Jd = {
5213
5215
  name: "VFModalUpload"
5214
- }, Jd = /* @__PURE__ */ Object.assign(Gd, {
5216
+ }, Zd = /* @__PURE__ */ Object.assign(Jd, {
5215
5217
  props: {
5216
5218
  current: Object
5217
5219
  },
5218
5220
  setup(t) {
5219
- const e = t, r = R("emitter"), { apiUrl: o } = Me(), { t: i } = R("i18n"), a = L(null), n = L(null), f = L(null), g = L([]), m = L(""), u = L(!0), v = () => {
5221
+ const e = t, r = R("emitter"), { apiUrl: o } = Me(), { t: i } = R("i18n"), a = L(null), n = L(null), f = L(null), g = L([]), m = L(""), d = L(!0), v = () => {
5220
5222
  m.value = "", a.value.start();
5221
5223
  }, b = R("postData");
5222
5224
  return ke(() => {
@@ -5235,7 +5237,7 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5235
5237
  PostInit: function() {
5236
5238
  },
5237
5239
  FilesAdded: function(T, k) {
5238
- u.value = !1, Ht.each(k, function(S) {
5240
+ d.value = !1, Ht.each(k, function(S) {
5239
5241
  g.value.push({
5240
5242
  id: S.id,
5241
5243
  name: S.name,
@@ -5248,7 +5250,7 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5248
5250
  g.value[g.value.findIndex((S) => S.id == k.id)].percent = k.percent + "%";
5249
5251
  },
5250
5252
  UploadComplete: function() {
5251
- u.value = !0, r.emit("vf-fetch", { params: { q: "index", adapter: e.current.adapter, path: e.current.dirname } });
5253
+ d.value = !0, r.emit("vf-fetch", { params: { q: "index", adapter: e.current.adapter, path: e.current.dirname } });
5252
5254
  },
5253
5255
  Error: function(T, k) {
5254
5256
  a.value.stop(), m.value = i(JSON.parse(k.response).message);
@@ -5257,41 +5259,41 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5257
5259
  }), a.value.init();
5258
5260
  }), (T, k) => (y(), Z($e, null, {
5259
5261
  buttons: J(() => [
5260
- d("button", {
5261
- disabled: u.value,
5262
+ u("button", {
5263
+ disabled: d.value,
5262
5264
  onClick: Re(v, ["prevent"]),
5263
5265
  type: "button",
5264
- class: de([u.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500", "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"])
5265
- }, E(x(i)("Upload")), 11, qd),
5266
- d("button", {
5266
+ class: de([d.value ? "bg-blue-200 hover:bg-blue-200 dark:bg-gray-700/50 dark:hover:bg-gray-700/50 dark:text-gray-500" : "bg-blue-600 hover:bg-blue-700 dark:bg-gray-700 dark:hover:bg-gray-500", "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 text-base font-medium text-white focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"])
5267
+ }, E(x(i)("Upload")), 11, Gd),
5268
+ u("button", {
5267
5269
  type: "button",
5268
5270
  onClick: k[1] || (k[1] = (S) => x(r).emit("vf-modal-close")),
5269
5271
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5270
5272
  }, E(x(i)("Cancel")), 1)
5271
5273
  ]),
5272
5274
  default: J(() => [
5273
- d("div", Bd, [
5274
- Hd,
5275
- d("div", Ud, [
5276
- d("h3", Kd, E(x(i)("Upload files")), 1),
5277
- d("div", Fd, [
5278
- d("div", Yd, [
5275
+ u("div", Hd, [
5276
+ Ud,
5277
+ u("div", Kd, [
5278
+ u("h3", Fd, E(x(i)("Upload files")), 1),
5279
+ u("div", Yd, [
5280
+ u("div", Wd, [
5279
5281
  (y(!0), C(le, null, we(g.value, (S) => (y(), C("div", null, [
5280
- d("div", {
5282
+ u("div", {
5281
5283
  id: S.id
5282
5284
  }, [
5283
5285
  ie(E(S.name) + " ( " + E(S.size) + ") ", 1),
5284
- d("b", null, E(S.percent), 1)
5285
- ], 8, Wd)
5286
+ u("b", null, E(S.percent), 1)
5287
+ ], 8, Xd)
5286
5288
  ]))), 256)),
5287
- g.value.length ? G("", !0) : (y(), C("div", Xd, E(x(i)("No files selected!")), 1))
5289
+ g.value.length ? G("", !0) : (y(), C("div", qd, E(x(i)("No files selected!")), 1))
5288
5290
  ]),
5289
- d("div", {
5291
+ u("div", {
5290
5292
  class: "text-gray-500",
5291
5293
  ref_key: "container",
5292
5294
  ref: n
5293
5295
  }, [
5294
- d("button", {
5296
+ u("button", {
5295
5297
  ref_key: "pickFiles",
5296
5298
  ref: f,
5297
5299
  type: "button",
@@ -5315,8 +5317,8 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5315
5317
  _: 1
5316
5318
  }));
5317
5319
  }
5318
- }), Zd = { class: "sm:flex sm:items-start" }, Qd = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5319
- /* @__PURE__ */ d("svg", {
5320
+ }), Qd = { class: "sm:flex sm:items-start" }, eh = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5321
+ /* @__PURE__ */ u("svg", {
5320
5322
  xmlns: "http://www.w3.org/2000/svg",
5321
5323
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
5322
5324
  fill: "none",
@@ -5324,16 +5326,16 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5324
5326
  stroke: "none",
5325
5327
  "stroke-width": "1.5"
5326
5328
  }, [
5327
- /* @__PURE__ */ d("path", {
5329
+ /* @__PURE__ */ u("path", {
5328
5330
  "stroke-linecap": "round",
5329
5331
  "stroke-linejoin": "round",
5330
5332
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
5331
5333
  })
5332
5334
  ])
5333
- ], -1), eh = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, th = {
5335
+ ], -1), th = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, rh = {
5334
5336
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
5335
5337
  id: "modal-title"
5336
- }, rh = { class: "mt-2" }, oh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, ah = {
5338
+ }, oh = { class: "mt-2" }, ah = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, sh = {
5337
5339
  key: 0,
5338
5340
  xmlns: "http://www.w3.org/2000/svg",
5339
5341
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -5341,13 +5343,13 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5341
5343
  viewBox: "0 0 24 24",
5342
5344
  stroke: "currentColor",
5343
5345
  "stroke-width": "1"
5344
- }, sh = /* @__PURE__ */ d("path", {
5346
+ }, ih = /* @__PURE__ */ u("path", {
5345
5347
  "stroke-linecap": "round",
5346
5348
  "stroke-linejoin": "round",
5347
5349
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
5348
- }, null, -1), ih = [
5349
- sh
5350
- ], nh = {
5350
+ }, null, -1), nh = [
5351
+ ih
5352
+ ], lh = {
5351
5353
  key: 1,
5352
5354
  xmlns: "http://www.w3.org/2000/svg",
5353
5355
  class: "h-5 w-5 text-neutral-500",
@@ -5355,15 +5357,15 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5355
5357
  viewBox: "0 0 24 24",
5356
5358
  stroke: "currentColor",
5357
5359
  "stroke-width": "1"
5358
- }, lh = /* @__PURE__ */ d("path", {
5360
+ }, ch = /* @__PURE__ */ u("path", {
5359
5361
  "stroke-linecap": "round",
5360
5362
  "stroke-linejoin": "round",
5361
5363
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
5362
- }, null, -1), ch = [
5363
- lh
5364
- ], uh = { class: "ml-1.5" }, dh = ["onKeyup", "placeholder"], hh = {
5364
+ }, null, -1), uh = [
5365
+ ch
5366
+ ], dh = { class: "ml-1.5" }, hh = ["onKeyup", "placeholder"], fh = {
5365
5367
  name: "VFModalArchive"
5366
- }, fh = /* @__PURE__ */ Object.assign(hh, {
5368
+ }, mh = /* @__PURE__ */ Object.assign(fh, {
5367
5369
  props: {
5368
5370
  selection: Object,
5369
5371
  current: Object
@@ -5375,7 +5377,7 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5375
5377
  q: "archive",
5376
5378
  adapter: o("adapter", "local"),
5377
5379
  path: e.current.dirname,
5378
- items: JSON.stringify(f.value.map(({ path: m, type: u }) => ({ path: m, type: u }))),
5380
+ items: JSON.stringify(f.value.map(({ path: m, type: d }) => ({ path: m, type: d }))),
5379
5381
  name: a.value
5380
5382
  },
5381
5383
  onSuccess: () => {
@@ -5386,41 +5388,41 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5386
5388
  }
5387
5389
  });
5388
5390
  };
5389
- return (m, u) => (y(), Z($e, null, {
5391
+ return (m, d) => (y(), Z($e, null, {
5390
5392
  buttons: J(() => [
5391
- d("button", {
5393
+ u("button", {
5392
5394
  type: "button",
5393
5395
  onClick: g,
5394
5396
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
5395
5397
  }, E(x(i)("Archive")), 1),
5396
- d("button", {
5398
+ u("button", {
5397
5399
  type: "button",
5398
- onClick: u[2] || (u[2] = (v) => x(r).emit("vf-modal-close")),
5400
+ onClick: d[2] || (d[2] = (v) => x(r).emit("vf-modal-close")),
5399
5401
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5400
5402
  }, E(x(i)("Cancel")), 1)
5401
5403
  ]),
5402
5404
  default: J(() => [
5403
- d("div", Zd, [
5404
- Qd,
5405
- d("div", eh, [
5406
- d("h3", th, E(x(i)("Archive the files")), 1),
5407
- d("div", rh, [
5408
- (y(!0), C(le, null, we(f.value, (v) => (y(), C("p", oh, [
5409
- v.type == "dir" ? (y(), C("svg", ah, ih)) : (y(), C("svg", nh, ch)),
5410
- d("span", uh, E(v.basename), 1)
5405
+ u("div", Qd, [
5406
+ eh,
5407
+ u("div", th, [
5408
+ u("h3", rh, E(x(i)("Archive the files")), 1),
5409
+ u("div", oh, [
5410
+ (y(!0), C(le, null, we(f.value, (v) => (y(), C("p", ah, [
5411
+ v.type == "dir" ? (y(), C("svg", sh, nh)) : (y(), C("svg", lh, uh)),
5412
+ u("span", dh, E(v.basename), 1)
5411
5413
  ]))), 256)),
5412
- ye(d("input", {
5413
- "onUpdate:modelValue": u[0] || (u[0] = (v) => a.value = v),
5414
+ ye(u("input", {
5415
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => a.value = v),
5414
5416
  onKeyup: tt(g, ["enter"]),
5415
5417
  class: "my-1 px-2 py-1 border rounded dark:bg-gray-700/25 dark:focus:ring-gray-600 dark:focus:border-gray-600 dark:text-gray-100 w-full",
5416
5418
  placeholder: x(i)("Archive name. (.zip file will be created)"),
5417
5419
  type: "text"
5418
- }, null, 40, dh), [
5420
+ }, null, 40, hh), [
5419
5421
  [rt, a.value]
5420
5422
  ]),
5421
5423
  n.value.length ? (y(), Z(Ee, {
5422
5424
  key: 0,
5423
- onHidden: u[1] || (u[1] = (v) => n.value = ""),
5425
+ onHidden: d[1] || (d[1] = (v) => n.value = ""),
5424
5426
  error: ""
5425
5427
  }, {
5426
5428
  default: J(() => [
@@ -5435,8 +5437,8 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5435
5437
  _: 1
5436
5438
  }));
5437
5439
  }
5438
- }), mh = { class: "sm:flex sm:items-start" }, gh = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5439
- /* @__PURE__ */ d("svg", {
5440
+ }), gh = { class: "sm:flex sm:items-start" }, ph = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-blue-50 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5441
+ /* @__PURE__ */ u("svg", {
5440
5442
  xmlns: "http://www.w3.org/2000/svg",
5441
5443
  class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
5442
5444
  fill: "none",
@@ -5444,16 +5446,16 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5444
5446
  stroke: "none",
5445
5447
  "stroke-width": "1.5"
5446
5448
  }, [
5447
- /* @__PURE__ */ d("path", {
5449
+ /* @__PURE__ */ u("path", {
5448
5450
  "stroke-linecap": "round",
5449
5451
  "stroke-linejoin": "round",
5450
5452
  d: "M20.25 7.5l-.625 10.632a2.25 2.25 0 01-2.247 2.118H6.622a2.25 2.25 0 01-2.247-2.118L3.75 7.5m6 4.125l2.25 2.25m0 0l2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125z"
5451
5453
  })
5452
5454
  ])
5453
- ], -1), ph = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, vh = {
5455
+ ], -1), vh = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, bh = {
5454
5456
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
5455
5457
  id: "modal-title"
5456
- }, bh = { class: "mt-2" }, yh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, wh = {
5458
+ }, yh = { class: "mt-2" }, wh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, xh = {
5457
5459
  key: 0,
5458
5460
  xmlns: "http://www.w3.org/2000/svg",
5459
5461
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -5461,13 +5463,13 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5461
5463
  viewBox: "0 0 24 24",
5462
5464
  stroke: "currentColor",
5463
5465
  "stroke-width": "1"
5464
- }, xh = /* @__PURE__ */ d("path", {
5466
+ }, _h = /* @__PURE__ */ u("path", {
5465
5467
  "stroke-linecap": "round",
5466
5468
  "stroke-linejoin": "round",
5467
5469
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
5468
- }, null, -1), _h = [
5469
- xh
5470
- ], kh = {
5470
+ }, null, -1), kh = [
5471
+ _h
5472
+ ], Sh = {
5471
5473
  key: 1,
5472
5474
  xmlns: "http://www.w3.org/2000/svg",
5473
5475
  class: "h-5 w-5 text-neutral-500",
@@ -5475,15 +5477,15 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5475
5477
  viewBox: "0 0 24 24",
5476
5478
  stroke: "currentColor",
5477
5479
  "stroke-width": "1"
5478
- }, Sh = /* @__PURE__ */ d("path", {
5480
+ }, Dh = /* @__PURE__ */ u("path", {
5479
5481
  "stroke-linecap": "round",
5480
5482
  "stroke-linejoin": "round",
5481
5483
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
5482
- }, null, -1), Dh = [
5483
- Sh
5484
- ], Ch = { class: "ml-1.5" }, Mh = { class: "my-1 text-sm text-gray-500" }, $h = {
5484
+ }, null, -1), Ch = [
5485
+ Dh
5486
+ ], Mh = { class: "ml-1.5" }, $h = { class: "my-1 text-sm text-gray-500" }, Eh = {
5485
5487
  name: "VFModalUnarchive"
5486
- }, Eh = /* @__PURE__ */ Object.assign($h, {
5488
+ }, Th = /* @__PURE__ */ Object.assign(Eh, {
5487
5489
  props: {
5488
5490
  selection: Object,
5489
5491
  current: Object
@@ -5507,33 +5509,33 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5507
5509
  }
5508
5510
  });
5509
5511
  };
5510
- return (m, u) => (y(), Z($e, null, {
5512
+ return (m, d) => (y(), Z($e, null, {
5511
5513
  buttons: J(() => [
5512
- d("button", {
5514
+ u("button", {
5513
5515
  type: "button",
5514
5516
  onClick: g,
5515
5517
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
5516
5518
  }, E(x(i)("Unarchive")), 1),
5517
- d("button", {
5519
+ u("button", {
5518
5520
  type: "button",
5519
- onClick: u[1] || (u[1] = (v) => x(r).emit("vf-modal-close")),
5521
+ onClick: d[1] || (d[1] = (v) => x(r).emit("vf-modal-close")),
5520
5522
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5521
5523
  }, E(x(i)("Cancel")), 1)
5522
5524
  ]),
5523
5525
  default: J(() => [
5524
- d("div", mh, [
5525
- gh,
5526
- d("div", ph, [
5527
- d("h3", vh, E(x(i)("Unarchive")), 1),
5528
- d("div", bh, [
5529
- (y(!0), C(le, null, we(f.value, (v) => (y(), C("p", yh, [
5530
- v.type == "dir" ? (y(), C("svg", wh, _h)) : (y(), C("svg", kh, Dh)),
5531
- d("span", Ch, E(v.basename), 1)
5526
+ u("div", gh, [
5527
+ ph,
5528
+ u("div", vh, [
5529
+ u("h3", bh, E(x(i)("Unarchive")), 1),
5530
+ u("div", yh, [
5531
+ (y(!0), C(le, null, we(f.value, (v) => (y(), C("p", wh, [
5532
+ v.type == "dir" ? (y(), C("svg", xh, kh)) : (y(), C("svg", Sh, Ch)),
5533
+ u("span", Mh, E(v.basename), 1)
5532
5534
  ]))), 256)),
5533
- d("p", Mh, E(x(i)("The archive will be unarchived at")) + " (" + E(t.current.dirname) + ")", 1),
5535
+ u("p", $h, E(x(i)("The archive will be unarchived at")) + " (" + E(t.current.dirname) + ")", 1),
5534
5536
  n.value.length ? (y(), Z(Ee, {
5535
5537
  key: 0,
5536
- onHidden: u[0] || (u[0] = (v) => n.value = ""),
5538
+ onHidden: d[0] || (d[0] = (v) => n.value = ""),
5537
5539
  error: ""
5538
5540
  }, {
5539
5541
  default: J(() => [
@@ -5548,8 +5550,8 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5548
5550
  _: 1
5549
5551
  }));
5550
5552
  }
5551
- }), Th = { class: "sm:flex sm:items-start" }, Ah = /* @__PURE__ */ d("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5552
- /* @__PURE__ */ d("svg", {
5553
+ }), Ah = { class: "sm:flex sm:items-start" }, Oh = /* @__PURE__ */ u("div", { class: "mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 dark:bg-gray-500 sm:mx-0 sm:h-10 sm:w-10" }, [
5554
+ /* @__PURE__ */ u("svg", {
5553
5555
  class: "h-6 w-6 stroke-red-600 dark:stroke-red-200",
5554
5556
  xmlns: "http://www.w3.org/2000/svg",
5555
5557
  fill: "none",
@@ -5558,16 +5560,16 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5558
5560
  stroke: "currentColor",
5559
5561
  "aria-hidden": "true"
5560
5562
  }, [
5561
- /* @__PURE__ */ d("path", {
5563
+ /* @__PURE__ */ u("path", {
5562
5564
  "stroke-linecap": "round",
5563
5565
  "stroke-linejoin": "round",
5564
5566
  d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
5565
5567
  })
5566
5568
  ])
5567
- ], -1), Oh = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Ih = {
5569
+ ], -1), Ih = { class: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full" }, Lh = {
5568
5570
  class: "text-lg leading-6 font-medium text-gray-900 dark:text-gray-400",
5569
5571
  id: "modal-title"
5570
- }, Lh = { class: "mt-2" }, Ph = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Nh = {
5572
+ }, Ph = { class: "mt-2" }, Nh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, jh = {
5571
5573
  key: 0,
5572
5574
  xmlns: "http://www.w3.org/2000/svg",
5573
5575
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
@@ -5575,13 +5577,13 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5575
5577
  viewBox: "0 0 24 24",
5576
5578
  stroke: "currentColor",
5577
5579
  "stroke-width": "1"
5578
- }, jh = /* @__PURE__ */ d("path", {
5580
+ }, Vh = /* @__PURE__ */ u("path", {
5579
5581
  "stroke-linecap": "round",
5580
5582
  "stroke-linejoin": "round",
5581
5583
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
5582
- }, null, -1), Vh = [
5583
- jh
5584
- ], zh = {
5584
+ }, null, -1), zh = [
5585
+ Vh
5586
+ ], Rh = {
5585
5587
  key: 1,
5586
5588
  xmlns: "http://www.w3.org/2000/svg",
5587
5589
  class: "h-5 w-5 text-neutral-500",
@@ -5589,13 +5591,13 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5589
5591
  viewBox: "0 0 24 24",
5590
5592
  stroke: "currentColor",
5591
5593
  "stroke-width": "1"
5592
- }, Rh = /* @__PURE__ */ d("path", {
5594
+ }, Bh = /* @__PURE__ */ u("path", {
5593
5595
  "stroke-linecap": "round",
5594
5596
  "stroke-linejoin": "round",
5595
5597
  d: "M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"
5596
- }, null, -1), Bh = [
5597
- Rh
5598
- ], Hh = { class: "ml-1.5" }, Uh = { class: "text-sm text-gray-500 pb-1 pt-3" }, Kh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Fh = /* @__PURE__ */ d("svg", {
5598
+ }, null, -1), Hh = [
5599
+ Bh
5600
+ ], Uh = { class: "ml-1.5" }, Kh = { class: "text-sm text-gray-500 pb-1 pt-3" }, Fh = { class: "flex text-sm text-gray-800 dark:text-gray-400" }, Yh = /* @__PURE__ */ u("svg", {
5599
5601
  xmlns: "http://www.w3.org/2000/svg",
5600
5602
  class: "h-5 w-5 text-neutral-500 fill-sky-500 stroke-sky-500 dark:fill-slate-500 dark:stroke-slate-500",
5601
5603
  fill: "none",
@@ -5603,14 +5605,14 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5603
5605
  stroke: "currentColor",
5604
5606
  "stroke-width": "1"
5605
5607
  }, [
5606
- /* @__PURE__ */ d("path", {
5608
+ /* @__PURE__ */ u("path", {
5607
5609
  "stroke-linecap": "round",
5608
5610
  "stroke-linejoin": "round",
5609
5611
  d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
5610
5612
  })
5611
- ], -1), Yh = { class: "ml-1.5 overflow-auto" }, Wh = {
5613
+ ], -1), Wh = { class: "ml-1.5 overflow-auto" }, Xh = {
5612
5614
  name: "VFModalMove"
5613
- }, Xh = /* @__PURE__ */ Object.assign(Wh, {
5615
+ }, qh = /* @__PURE__ */ Object.assign(Xh, {
5614
5616
  props: {
5615
5617
  selection: Object,
5616
5618
  current: Object
@@ -5635,35 +5637,35 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5635
5637
  };
5636
5638
  return (g, m) => (y(), Z($e, null, {
5637
5639
  buttons: J(() => [
5638
- d("button", {
5640
+ u("button", {
5639
5641
  type: "button",
5640
5642
  onClick: f,
5641
5643
  class: "w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 dark:bg-gray-700 dark:hover:bg-gray-600/75 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"
5642
5644
  }, E(x(o)("Yes, Move!")), 1),
5643
- d("button", {
5645
+ u("button", {
5644
5646
  type: "button",
5645
- onClick: m[1] || (m[1] = (u) => x(r).emit("vf-modal-close")),
5647
+ onClick: m[1] || (m[1] = (d) => x(r).emit("vf-modal-close")),
5646
5648
  class: "mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm"
5647
5649
  }, E(x(o)("Cancel")), 1)
5648
5650
  ]),
5649
5651
  default: J(() => [
5650
- d("div", Th, [
5651
- Ah,
5652
- d("div", Oh, [
5653
- d("h3", Ih, E(x(o)("Move files")), 1),
5654
- d("div", Lh, [
5655
- (y(!0), C(le, null, we(a.value, (u) => (y(), C("p", Ph, [
5656
- u.type == "dir" ? (y(), C("svg", Nh, Vh)) : (y(), C("svg", zh, Bh)),
5657
- d("span", Hh, E(u.path), 1)
5652
+ u("div", Ah, [
5653
+ Oh,
5654
+ u("div", Ih, [
5655
+ u("h3", Lh, E(x(o)("Move files")), 1),
5656
+ u("div", Ph, [
5657
+ (y(!0), C(le, null, we(a.value, (d) => (y(), C("p", Nh, [
5658
+ d.type == "dir" ? (y(), C("svg", jh, zh)) : (y(), C("svg", Rh, Hh)),
5659
+ u("span", Uh, E(d.path), 1)
5658
5660
  ]))), 256)),
5659
- d("p", Uh, E(x(o)("Are you sure you want to move these files?")), 1),
5660
- d("p", Kh, [
5661
- Fh,
5662
- d("span", Yh, E(t.selection.items.to.path), 1)
5661
+ u("p", Kh, E(x(o)("Are you sure you want to move these files?")), 1),
5662
+ u("p", Fh, [
5663
+ Yh,
5664
+ u("span", Wh, E(t.selection.items.to.path), 1)
5663
5665
  ]),
5664
5666
  n.value.length ? (y(), Z(Ee, {
5665
5667
  key: 0,
5666
- onHidden: m[0] || (m[0] = (u) => n.value = ""),
5668
+ onHidden: m[0] || (m[0] = (d) => n.value = ""),
5667
5669
  error: ""
5668
5670
  }, {
5669
5671
  default: J(() => [
@@ -5678,23 +5680,23 @@ const Wu = { class: "flex" }, Xu = ["aria-label"], qu = { class: "ml-auto mb-2"
5678
5680
  _: 1
5679
5681
  }));
5680
5682
  }
5681
- }), qh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5683
+ }), Gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5682
5684
  __proto__: null,
5683
- ModalDelete: Cc,
5684
- ModalMessage: Lc,
5685
- ModalNewFolder: Uc,
5686
- ModalNewFile: Zc,
5687
- ModalPreview: Sd,
5688
- ModalRename: Rd,
5689
- ModalUpload: Jd,
5690
- ModalArchive: fh,
5691
- ModalUnarchive: Eh,
5692
- ModalMove: Xh
5685
+ ModalDelete: Mc,
5686
+ ModalMessage: Pc,
5687
+ ModalNewFolder: Kc,
5688
+ ModalNewFile: Qc,
5689
+ ModalPreview: Dd,
5690
+ ModalRename: Bd,
5691
+ ModalUpload: Zd,
5692
+ ModalArchive: mh,
5693
+ ModalUnarchive: Th,
5694
+ ModalMove: qh
5693
5695
  }, Symbol.toStringTag, { value: "Module" })), Ft = {
5694
- VueFinder: ec,
5695
- ...qh
5696
+ VueFinder: tc,
5697
+ ...Gh
5696
5698
  };
5697
- const Zh = {
5699
+ const Qh = {
5698
5700
  install(t) {
5699
5701
  for (const e in Ft)
5700
5702
  if (Ft.hasOwnProperty(e)) {
@@ -5704,5 +5706,5 @@ const Zh = {
5704
5706
  }
5705
5707
  };
5706
5708
  export {
5707
- Zh as default
5709
+ Qh as default
5708
5710
  };