vuefinder 2.6.3 → 2.7.0
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.cjs +2 -2
- package/dist/vuefinder.js +422 -414
- package/package.json +1 -1
package/dist/vuefinder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var er = Object.defineProperty;
|
|
2
2
|
var tr = (t, e, n) => e in t ? er(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
4
|
-
import { reactive as yt, watch as Me, ref as D, shallowRef as nr, onMounted as Se, onUnmounted as
|
|
3
|
+
var yn = (t, e, n) => tr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { reactive as yt, watch as Me, ref as D, shallowRef as nr, onMounted as Se, onUnmounted as Gn, onUpdated as Ls, nextTick as ct, computed as rt, inject as re, openBlock as _, createElementBlock as g, withKeys as kt, unref as o, createElementVNode as l, withModifiers as Ze, renderSlot as Tt, normalizeClass as le, toDisplayString as b, createBlock as W, resolveDynamicComponent as Fs, withCtx as Q, createVNode as P, Fragment as ge, renderList as xe, createCommentVNode as q, withDirectives as ue, vModelCheckbox as Pt, createTextVNode as J, vModelSelect as An, vModelText as xt, onBeforeUnmount as Rs, customRef as sr, vShow as Ue, isRef as or, TransitionGroup as rr, normalizeStyle as rn, mergeModels as lr, useModel as Hs, resolveComponent as ar, provide as ir, Transition as cr } from "vue";
|
|
5
5
|
import dr from "mitt";
|
|
6
6
|
import ur from "dragselect";
|
|
7
7
|
import vr from "@uppy/core";
|
|
@@ -10,12 +10,18 @@ import fr from "vanilla-lazyload";
|
|
|
10
10
|
import "cropperjs/dist/cropper.css";
|
|
11
11
|
import mr from "cropperjs";
|
|
12
12
|
var Os;
|
|
13
|
-
const
|
|
13
|
+
const kn = (Os = document.querySelector('meta[name="csrf-token"]')) == null ? void 0 : Os.getAttribute("content");
|
|
14
14
|
class pr {
|
|
15
15
|
/** @param {RequestConfig} config */
|
|
16
16
|
constructor(e) {
|
|
17
17
|
/** @type {RequestConfig} */
|
|
18
|
-
|
|
18
|
+
yn(this, "config");
|
|
19
|
+
yn(this, "customFetch", async (...e) => {
|
|
20
|
+
let [n, r] = e;
|
|
21
|
+
this.config.fetchRequestInterceptor && (r = this.config.fetchRequestInterceptor(r));
|
|
22
|
+
let s = await fetch(n, r);
|
|
23
|
+
return this.config.fetchResponseInterceptor && (s = await this.config.fetchResponseInterceptor(s)), s;
|
|
24
|
+
});
|
|
19
25
|
this.config = e;
|
|
20
26
|
}
|
|
21
27
|
/** @type {RequestConfig} */
|
|
@@ -34,7 +40,7 @@ class pr {
|
|
|
34
40
|
*/
|
|
35
41
|
transformRequestParams(e) {
|
|
36
42
|
const n = this.config, r = {};
|
|
37
|
-
|
|
43
|
+
kn != null && kn !== "" && (r[n.xsrfHeaderName] = kn);
|
|
38
44
|
const s = Object.assign({}, n.headers, r, e.headers), c = Object.assign({}, n.params, e.params), i = e.body, d = n.baseUrl + e.url, a = e.method;
|
|
39
45
|
let u;
|
|
40
46
|
a !== "get" && (i instanceof FormData ? (u = i, n.body != null && Object.entries(this.config.body).forEach(([v, p]) => {
|
|
@@ -118,7 +124,8 @@ class pr {
|
|
|
118
124
|
let d;
|
|
119
125
|
n.body instanceof FormData ? d = e.body : (d = JSON.stringify(n.body), s.headers["Content-Type"] = "application/json"), s.body = d;
|
|
120
126
|
}
|
|
121
|
-
|
|
127
|
+
this.config.fetchParams && Object.assign(s, this.config.fetchParams);
|
|
128
|
+
const i = await this.customFetch(c, s);
|
|
122
129
|
if (i.ok)
|
|
123
130
|
return await i[r]();
|
|
124
131
|
throw await i.json();
|
|
@@ -130,7 +137,8 @@ function hr(t) {
|
|
|
130
137
|
headers: {},
|
|
131
138
|
params: {},
|
|
132
139
|
body: {},
|
|
133
|
-
xsrfHeaderName: "X-CSRF-Token"
|
|
140
|
+
xsrfHeaderName: "X-CSRF-Token",
|
|
141
|
+
fetchParams: {}
|
|
134
142
|
};
|
|
135
143
|
return typeof t == "string" ? Object.assign(e, { baseUrl: t }) : Object.assign(e, t), new pr(e);
|
|
136
144
|
}
|
|
@@ -187,7 +195,7 @@ const de = {
|
|
|
187
195
|
FULL_SCREEN: "fullscreen",
|
|
188
196
|
DOWNLOAD: "download",
|
|
189
197
|
LANGUAGE: "language"
|
|
190
|
-
}, yr = Object.values(de), kr = "2.
|
|
198
|
+
}, yr = Object.values(de), kr = "2.7.0";
|
|
191
199
|
function Bs(t, e, n, r, s) {
|
|
192
200
|
return (e = Math, n = e.log, r = 1024, s = n(t) / n(r) | 0, t / e.pow(r, s)).toFixed(0) + " " + (s ? "KMGTPEZY"[--s] + "iB" : "B");
|
|
193
201
|
}
|
|
@@ -251,20 +259,20 @@ const Ve = (t, e) => {
|
|
|
251
259
|
return (h || s) && (c = f, i = p), [c, h, i];
|
|
252
260
|
};
|
|
253
261
|
return [e ? (m) => d(e(c, i), m) : d, (m) => [c, !!m, i]];
|
|
254
|
-
}, Cr = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, De = Cr ? window : {}, Ns = Math.max, Er = Math.min,
|
|
255
|
-
const e = !!t && t.length, n =
|
|
256
|
-
return
|
|
262
|
+
}, Cr = typeof window < "u" && typeof HTMLElement < "u" && !!window.document, De = Cr ? window : {}, Ns = Math.max, Er = Math.min, Tn = Math.round, Jt = Math.abs, _s = Math.sign, Us = De.cancelAnimationFrame, Kn = De.requestAnimationFrame, Zt = De.setTimeout, Mn = De.clearTimeout, ln = (t) => typeof De[t] < "u" ? De[t] : void 0, Ar = ln("MutationObserver"), fs = ln("IntersectionObserver"), Qt = ln("ResizeObserver"), Kt = ln("ScrollTimeline"), Wn = (t) => t === void 0, an = (t) => t === null, Pe = (t) => typeof t == "number", Ot = (t) => typeof t == "string", Yn = (t) => typeof t == "boolean", He = (t) => typeof t == "function", ze = (t) => Array.isArray(t), en = (t) => typeof t == "object" && !ze(t) && !an(t), Xn = (t) => {
|
|
263
|
+
const e = !!t && t.length, n = Pe(e) && e > -1 && e % 1 == 0;
|
|
264
|
+
return ze(t) || !He(t) && n ? e > 0 && en(t) ? e - 1 in t : !0 : !1;
|
|
257
265
|
}, tn = (t) => !!t && t.constructor === Object, nn = (t) => t instanceof HTMLElement, cn = (t) => t instanceof Element;
|
|
258
266
|
function ae(t, e) {
|
|
259
|
-
if (
|
|
267
|
+
if (Xn(t))
|
|
260
268
|
for (let n = 0; n < t.length && e(t[n], n, t) !== !1; n++)
|
|
261
269
|
;
|
|
262
270
|
else t && ae(Object.keys(t), (n) => e(t[n], n, t));
|
|
263
271
|
return t;
|
|
264
272
|
}
|
|
265
|
-
const qs = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), me = (t, e, n) => (!Ot(e) &&
|
|
273
|
+
const qs = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), me = (t, e, n) => (!Ot(e) && Xn(e) ? Array.prototype.push.apply(t, e) : t.push(e), t), lt = (t) => Array.from(t || []), Jn = (t) => ze(t) ? t : !Ot(t) && Xn(t) ? lt(t) : [t], Dn = (t) => !!t && !t.length, Vn = (t) => lt(new Set(t)), Fe = (t, e, n) => {
|
|
266
274
|
ae(t, (s) => s ? s.apply(void 0, e || []) : !0), !n && (t.length = 0);
|
|
267
|
-
},
|
|
275
|
+
}, Ps = "paddingTop", zs = "paddingRight", js = "paddingLeft", Gs = "paddingBottom", Ks = "marginLeft", Ws = "marginRight", Ys = "marginBottom", Xs = "overflowX", Js = "overflowY", dn = "width", un = "height", st = "visible", it = "hidden", gt = "scroll", Tr = (t) => {
|
|
268
276
|
const e = String(t || "");
|
|
269
277
|
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
270
278
|
}, vn = (t, e, n, r) => {
|
|
@@ -279,21 +287,21 @@ const qs = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), me = (t, e,
|
|
|
279
287
|
}, Zs = (t, e) => vn(t, e, ["w", "h"]), Wt = (t, e) => vn(t, e, ["x", "y"]), Mr = (t, e) => vn(t, e, ["t", "r", "b", "l"]), dt = () => {
|
|
280
288
|
}, X = (t, ...e) => t.bind(0, ...e), ft = (t) => {
|
|
281
289
|
let e;
|
|
282
|
-
const n = t ? Zt :
|
|
290
|
+
const n = t ? Zt : Kn, r = t ? Mn : Us;
|
|
283
291
|
return [(s) => {
|
|
284
|
-
r(e), e = n(() => s(),
|
|
292
|
+
r(e), e = n(() => s(), He(t) ? t() : t);
|
|
285
293
|
}, () => r(e)];
|
|
286
|
-
},
|
|
294
|
+
}, On = (t, e) => {
|
|
287
295
|
const { _: n, v: r, p: s, S: c } = e || {};
|
|
288
296
|
let i, d, a, u, m = dt;
|
|
289
297
|
const v = function(S) {
|
|
290
|
-
m(),
|
|
298
|
+
m(), Mn(i), u = i = d = void 0, m = dt, t.apply(this, S);
|
|
291
299
|
}, p = (x) => c && d ? c(d, x) : x, f = () => {
|
|
292
300
|
m !== dt && v(p(a) || a);
|
|
293
301
|
}, h = function() {
|
|
294
|
-
const S = lt(arguments), E =
|
|
295
|
-
if (
|
|
296
|
-
const T =
|
|
302
|
+
const S = lt(arguments), E = He(n) ? n() : n;
|
|
303
|
+
if (Pe(E) && E >= 0) {
|
|
304
|
+
const T = He(r) ? r() : r, $ = Pe(T) && T >= 0, V = E > 0 ? Zt : Kn, L = E > 0 ? Mn : Us, O = p(S) || S, y = v.bind(0, O);
|
|
297
305
|
let w;
|
|
298
306
|
m(), s && !u ? (y(), u = !0, w = V(() => u = void 0, E)) : (w = V(y, E), $ && !i && (i = Zt(f, T))), m = () => L(w), d = a = O;
|
|
299
307
|
} else
|
|
@@ -302,30 +310,30 @@ const qs = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), me = (t, e,
|
|
|
302
310
|
return h.m = f, h;
|
|
303
311
|
}, Qs = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Be = (t) => t ? Object.keys(t) : [], oe = (t, e, n, r, s, c, i) => {
|
|
304
312
|
const d = [e, n, r, s, c, i];
|
|
305
|
-
return (typeof t != "object" || an(t)) && !
|
|
313
|
+
return (typeof t != "object" || an(t)) && !He(t) && (t = {}), ae(d, (a) => {
|
|
306
314
|
ae(a, (u, m) => {
|
|
307
315
|
const v = a[m];
|
|
308
316
|
if (t === v)
|
|
309
317
|
return !0;
|
|
310
|
-
const p =
|
|
318
|
+
const p = ze(v);
|
|
311
319
|
if (v && tn(v)) {
|
|
312
320
|
const f = t[m];
|
|
313
321
|
let h = f;
|
|
314
|
-
p && !
|
|
322
|
+
p && !ze(f) ? h = [] : !p && !tn(f) && (h = {}), t[m] = oe(h, v);
|
|
315
323
|
} else
|
|
316
324
|
t[m] = p ? v.slice() : v;
|
|
317
325
|
});
|
|
318
326
|
}), t;
|
|
319
327
|
}, eo = (t, e) => ae(oe({}, t), (n, r, s) => {
|
|
320
328
|
n === void 0 ? delete s[r] : n && tn(n) && (s[r] = eo(n));
|
|
321
|
-
}),
|
|
329
|
+
}), Zn = (t) => !Be(t).length, to = (t, e, n) => Ns(t, Er(e, n)), ut = (t) => Vn((ze(t) ? t : (t || "").split(" ")).filter((e) => e)), Qn = (t, e) => t && t.getAttribute(e), ms = (t, e) => t && t.hasAttribute(e), Xe = (t, e, n) => {
|
|
322
330
|
ae(ut(e), (r) => {
|
|
323
331
|
t && t.setAttribute(r, String(n || ""));
|
|
324
332
|
});
|
|
325
333
|
}, Ne = (t, e) => {
|
|
326
334
|
ae(ut(e), (n) => t && t.removeAttribute(n));
|
|
327
335
|
}, _n = (t, e) => {
|
|
328
|
-
const n = ut(
|
|
336
|
+
const n = ut(Qn(t, e)), r = X(Xe, t, e), s = (c, i) => {
|
|
329
337
|
const d = new Set(n);
|
|
330
338
|
return ae(ut(c), (a) => {
|
|
331
339
|
d[i](a);
|
|
@@ -339,38 +347,38 @@ const qs = (t, e) => t.indexOf(e) >= 0, Mt = (t, e) => t.concat(e), me = (t, e,
|
|
|
339
347
|
return i.reduce((d, a) => d && n.includes(a), i.length > 0);
|
|
340
348
|
}
|
|
341
349
|
};
|
|
342
|
-
}, no = (t, e, n) => (_n(t, e).O(n), X(
|
|
350
|
+
}, no = (t, e, n) => (_n(t, e).O(n), X(es, t, e, n)), es = (t, e, n) => (_n(t, e).$(n), X(no, t, e, n)), sn = (t, e, n, r) => (r ? es : no)(t, e, n), ts = (t, e, n) => _n(t, e).C(n), so = (t) => _n(t, "class"), oo = (t, e) => {
|
|
343
351
|
so(t).O(e);
|
|
344
|
-
},
|
|
352
|
+
}, ns = (t, e) => (so(t).$(e), X(oo, t, e)), ro = (t, e) => {
|
|
345
353
|
const n = e ? cn(e) && e : document;
|
|
346
354
|
return n ? lt(n.querySelectorAll(t)) : [];
|
|
347
355
|
}, Dr = (t, e) => {
|
|
348
356
|
const n = e ? cn(e) && e : document;
|
|
349
357
|
return n && n.querySelector(t);
|
|
350
|
-
},
|
|
358
|
+
}, Ln = (t, e) => cn(t) && t.matches(e), lo = (t) => Ln(t, "body"), Fn = (t) => t ? lt(t.childNodes) : [], Dt = (t) => t && t.parentElement, mt = (t, e) => cn(t) && t.closest(e), Rn = (t) => document.activeElement, Vr = (t, e, n) => {
|
|
351
359
|
const r = mt(t, e), s = t && Dr(n, r), c = mt(s, e) === r;
|
|
352
360
|
return r && s ? r === t || s === t || c && mt(mt(t, n), e) !== r : !1;
|
|
353
361
|
}, bt = (t) => {
|
|
354
|
-
ae(
|
|
362
|
+
ae(Jn(t), (e) => {
|
|
355
363
|
const n = Dt(e);
|
|
356
364
|
e && n && n.removeChild(e);
|
|
357
365
|
});
|
|
358
|
-
}, Oe = (t, e) => X(bt, t && e && ae(
|
|
366
|
+
}, Oe = (t, e) => X(bt, t && e && ae(Jn(e), (n) => {
|
|
359
367
|
n && t.appendChild(n);
|
|
360
368
|
})), pt = (t) => {
|
|
361
369
|
const e = document.createElement("div");
|
|
362
370
|
return Xe(e, "class", t), e;
|
|
363
371
|
}, ao = (t) => {
|
|
364
372
|
const e = pt();
|
|
365
|
-
return e.innerHTML = t.trim(), ae(
|
|
373
|
+
return e.innerHTML = t.trim(), ae(Fn(e), (n) => bt(n));
|
|
366
374
|
}, ps = (t, e) => t.getPropertyValue(e) || t[e] || "", io = (t) => {
|
|
367
375
|
const e = t || 0;
|
|
368
376
|
return isFinite(e) ? e : 0;
|
|
369
|
-
},
|
|
377
|
+
}, zt = (t) => io(parseFloat(t || "")), Hn = (t) => Math.round(t * 1e4) / 1e4, co = (t) => `${Hn(io(t))}px`;
|
|
370
378
|
function Vt(t, e) {
|
|
371
379
|
t && e && ae(e, (n, r) => {
|
|
372
380
|
try {
|
|
373
|
-
const s = t.style, c = an(n) ||
|
|
381
|
+
const s = t.style, c = an(n) || Yn(n) ? "" : Pe(n) ? co(n) : n;
|
|
374
382
|
r.indexOf("--") === 0 ? s.setProperty(r, c) : s[r] = c;
|
|
375
383
|
} catch {
|
|
376
384
|
}
|
|
@@ -388,10 +396,10 @@ function Qe(t, e, n) {
|
|
|
388
396
|
const hs = (t, e, n) => {
|
|
389
397
|
const r = e ? `${e}-` : "", s = n ? `-${n}` : "", c = `${r}top${s}`, i = `${r}right${s}`, d = `${r}bottom${s}`, a = `${r}left${s}`, u = Qe(t, [c, i, d, a]);
|
|
390
398
|
return {
|
|
391
|
-
t:
|
|
392
|
-
r:
|
|
393
|
-
b:
|
|
394
|
-
l:
|
|
399
|
+
t: zt(u[c]),
|
|
400
|
+
r: zt(u[i]),
|
|
401
|
+
b: zt(u[d]),
|
|
402
|
+
l: zt(u[a])
|
|
395
403
|
};
|
|
396
404
|
}, Or = (t, e) => `translate${en(t) ? `(${t.x},${t.y})` : `Y(${t})`}`, Lr = (t) => !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length), Fr = {
|
|
397
405
|
w: 0,
|
|
@@ -399,15 +407,15 @@ const hs = (t, e, n) => {
|
|
|
399
407
|
}, fn = (t, e) => e ? {
|
|
400
408
|
w: e[`${t}Width`],
|
|
401
409
|
h: e[`${t}Height`]
|
|
402
|
-
} : Fr,
|
|
410
|
+
} : Fr, Rr = (t) => fn("inner", t || De), ht = X(fn, "offset"), uo = X(fn, "client"), on = X(fn, "scroll"), ss = (t) => {
|
|
403
411
|
const e = parseFloat(Qe(t, dn)) || 0, n = parseFloat(Qe(t, un)) || 0;
|
|
404
412
|
return {
|
|
405
|
-
w: e -
|
|
406
|
-
h: n -
|
|
413
|
+
w: e - Tn(e),
|
|
414
|
+
h: n - Tn(n)
|
|
407
415
|
};
|
|
408
|
-
},
|
|
409
|
-
const n =
|
|
410
|
-
return !
|
|
416
|
+
}, xn = (t) => t.getBoundingClientRect(), Hr = (t) => !!t && Lr(t), Bn = (t) => !!(t && (t[un] || t[dn])), vo = (t, e) => {
|
|
417
|
+
const n = Bn(t);
|
|
418
|
+
return !Bn(e) && n;
|
|
411
419
|
}, gs = (t, e, n, r) => {
|
|
412
420
|
ae(ut(e), (s) => {
|
|
413
421
|
t && t.removeEventListener(s, n, r);
|
|
@@ -424,12 +432,12 @@ const hs = (t, e, n) => {
|
|
|
424
432
|
} : n;
|
|
425
433
|
return t && t.addEventListener(u, m, a), X(gs, t, u, m, i);
|
|
426
434
|
}));
|
|
427
|
-
}, _o = (t) => t.stopPropagation(),
|
|
428
|
-
const { x: n, y: r } =
|
|
435
|
+
}, _o = (t) => t.stopPropagation(), In = (t) => t.preventDefault(), fo = (t) => _o(t) || In(t), qe = (t, e) => {
|
|
436
|
+
const { x: n, y: r } = Pe(e) ? {
|
|
429
437
|
x: e,
|
|
430
438
|
y: e
|
|
431
439
|
} : e || {};
|
|
432
|
-
|
|
440
|
+
Pe(n) && (t.scrollLeft = n), Pe(r) && (t.scrollTop = r);
|
|
433
441
|
}, Le = (t) => ({
|
|
434
442
|
x: t.scrollLeft,
|
|
435
443
|
y: t.scrollTop
|
|
@@ -473,13 +481,13 @@ const hs = (t, e, n) => {
|
|
|
473
481
|
x: r(t.x, e.x, n.x),
|
|
474
482
|
y: r(t.y, e.y, n.y)
|
|
475
483
|
};
|
|
476
|
-
},
|
|
484
|
+
}, Nn = (t) => {
|
|
477
485
|
t && t.focus && t.focus({
|
|
478
486
|
preventScroll: !0
|
|
479
487
|
});
|
|
480
488
|
}, ys = (t, e) => {
|
|
481
|
-
ae(
|
|
482
|
-
},
|
|
489
|
+
ae(Jn(e), t);
|
|
490
|
+
}, Un = (t) => {
|
|
483
491
|
const e = /* @__PURE__ */ new Map(), n = (c, i) => {
|
|
484
492
|
if (c) {
|
|
485
493
|
const d = e.get(c);
|
|
@@ -494,10 +502,10 @@ const hs = (t, e, n) => {
|
|
|
494
502
|
if (Ot(c)) {
|
|
495
503
|
const u = e.get(c) || /* @__PURE__ */ new Set();
|
|
496
504
|
return e.set(c, u), ys((m) => {
|
|
497
|
-
|
|
505
|
+
He(m) && u.add(m);
|
|
498
506
|
}, i), X(n, c, i);
|
|
499
507
|
}
|
|
500
|
-
|
|
508
|
+
Yn(i) && i && n();
|
|
501
509
|
const d = Be(c), a = [];
|
|
502
510
|
return ae(d, (u) => {
|
|
503
511
|
const m = c[u];
|
|
@@ -505,12 +513,12 @@ const hs = (t, e, n) => {
|
|
|
505
513
|
}), X(Fe, a);
|
|
506
514
|
}, s = (c, i) => {
|
|
507
515
|
ae(lt(e.get(c)), (d) => {
|
|
508
|
-
i && !
|
|
516
|
+
i && !Dn(i) ? d.apply(0, i) : d();
|
|
509
517
|
});
|
|
510
518
|
};
|
|
511
519
|
return r(t || {}), [r, n, s];
|
|
512
520
|
}, ks = (t) => JSON.stringify(t, (e, n) => {
|
|
513
|
-
if (
|
|
521
|
+
if (He(n))
|
|
514
522
|
throw 0;
|
|
515
523
|
return n;
|
|
516
524
|
}), xs = (t, e) => t ? `${e}`.split(".").reduce((n, r) => n && Qs(n, r) ? n[r] : void 0, t) : void 0, Ir = {
|
|
@@ -541,10 +549,10 @@ const hs = (t, e, n) => {
|
|
|
541
549
|
return ae(r, (s) => {
|
|
542
550
|
const c = t[s], i = e[s];
|
|
543
551
|
if (en(c) && en(i))
|
|
544
|
-
oe(n[s] = {}, po(c, i)),
|
|
552
|
+
oe(n[s] = {}, po(c, i)), Zn(n[s]) && delete n[s];
|
|
545
553
|
else if (Qs(e, s) && i !== c) {
|
|
546
554
|
let d = !0;
|
|
547
|
-
if (
|
|
555
|
+
if (ze(c) || ze(i))
|
|
548
556
|
try {
|
|
549
557
|
ks(c) === ks(i) && (d = !1);
|
|
550
558
|
} catch {
|
|
@@ -552,23 +560,23 @@ const hs = (t, e, n) => {
|
|
|
552
560
|
d && (n[s] = i);
|
|
553
561
|
}
|
|
554
562
|
}), n;
|
|
555
|
-
}, Ss = (t, e, n) => (r) => [xs(t, r), n || xs(e, r) !== void 0], St = "data-overlayscrollbars", Yt = "os-environment", jt = `${Yt}-scrollbar-hidden`,
|
|
563
|
+
}, Ss = (t, e, n) => (r) => [xs(t, r), n || xs(e, r) !== void 0], St = "data-overlayscrollbars", Yt = "os-environment", jt = `${Yt}-scrollbar-hidden`, Sn = `${St}-initialize`, Xt = "noClipping", $s = `${St}-body`, ot = St, Nr = "host", Je = `${St}-viewport`, Ur = Xs, qr = Js, Pr = "arrange", ho = "measuring", zr = "scrolling", go = "scrollbarHidden", jr = "noContent", qn = `${St}-padding`, Cs = `${St}-content`, os = "os-size-observer", Gr = `${os}-appear`, Kr = `${os}-listener`, Wr = "os-trinsic-observer", Yr = "os-theme-none", Re = "os-scrollbar", Xr = `${Re}-rtl`, Jr = `${Re}-horizontal`, Zr = `${Re}-vertical`, bo = `${Re}-track`, rs = `${Re}-handle`, Qr = `${Re}-visible`, el = `${Re}-cornerless`, Es = `${Re}-interaction`, As = `${Re}-unusable`, Pn = `${Re}-auto-hide`, Ts = `${Pn}-hidden`, Ms = `${Re}-wheel`, tl = `${bo}-interactive`, nl = `${rs}-interactive`;
|
|
556
564
|
let wo;
|
|
557
565
|
const sl = () => wo, ol = (t) => {
|
|
558
566
|
wo = t;
|
|
559
567
|
};
|
|
560
|
-
let
|
|
568
|
+
let $n;
|
|
561
569
|
const rl = () => {
|
|
562
570
|
const t = ($, V, L) => {
|
|
563
571
|
Oe(document.body, $), Oe(document.body, $);
|
|
564
|
-
const
|
|
572
|
+
const z = uo($), O = ht($), y = ss(V);
|
|
565
573
|
return L && bt($), {
|
|
566
|
-
x: O.h -
|
|
567
|
-
y: O.w -
|
|
574
|
+
x: O.h - z.h + y.h,
|
|
575
|
+
y: O.w - z.w + y.w
|
|
568
576
|
};
|
|
569
577
|
}, e = ($) => {
|
|
570
578
|
let V = !1;
|
|
571
|
-
const L =
|
|
579
|
+
const L = ns($, jt);
|
|
572
580
|
try {
|
|
573
581
|
V = Qe($, "scrollbar-width") === "none" || Qe($, "display", "::-webkit-scrollbar") === "none";
|
|
574
582
|
} catch {
|
|
@@ -576,7 +584,7 @@ const rl = () => {
|
|
|
576
584
|
return L(), V;
|
|
577
585
|
}, n = `.${Yt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${Yt} div{width:200%;height:200%;margin:10px 0}.${jt}{scrollbar-width:none!important}.${jt}::-webkit-scrollbar,.${jt}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`, s = ao(`<div class="${Yt}"><div></div><style>${n}</style></div>`)[0], c = s.firstChild, i = s.lastChild, d = sl();
|
|
578
586
|
d && (i.nonce = d);
|
|
579
|
-
const [a, , u] =
|
|
587
|
+
const [a, , u] = Un(), [m, v] = Ve({
|
|
580
588
|
o: t(s, c),
|
|
581
589
|
i: Wt
|
|
582
590
|
}, X(t, s, c, !0)), [p] = v(), f = e(s), h = {
|
|
@@ -596,14 +604,14 @@ const rl = () => {
|
|
|
596
604
|
nativeScrollbarsOverlaid: !1,
|
|
597
605
|
body: null
|
|
598
606
|
}
|
|
599
|
-
}, S = oe({}, Ir), E = X(oe, {}, S),
|
|
607
|
+
}, S = oe({}, Ir), E = X(oe, {}, S), H = X(oe, {}, x), T = {
|
|
600
608
|
T: p,
|
|
601
609
|
k: h,
|
|
602
610
|
R: f,
|
|
603
611
|
V: !!Kt,
|
|
604
612
|
L: X(a, "r"),
|
|
605
|
-
U:
|
|
606
|
-
P: ($) => oe(x, $) &&
|
|
613
|
+
U: H,
|
|
614
|
+
P: ($) => oe(x, $) && H(),
|
|
607
615
|
N: E,
|
|
608
616
|
q: ($) => oe(S, $) && E(),
|
|
609
617
|
B: oe({}, x),
|
|
@@ -611,7 +619,7 @@ const rl = () => {
|
|
|
611
619
|
};
|
|
612
620
|
if (Ne(s, "style"), bt(s), ve(De, "resize", () => {
|
|
613
621
|
u("r", []);
|
|
614
|
-
}),
|
|
622
|
+
}), He(De.matchMedia) && !f && (!h.x || !h.y)) {
|
|
615
623
|
const $ = (V) => {
|
|
616
624
|
const L = De.matchMedia(`(resolution: ${De.devicePixelRatio}dppx)`);
|
|
617
625
|
ve(L, "change", () => {
|
|
@@ -626,20 +634,20 @@ const rl = () => {
|
|
|
626
634
|
});
|
|
627
635
|
}
|
|
628
636
|
return T;
|
|
629
|
-
}, Ge = () => (
|
|
630
|
-
const s =
|
|
637
|
+
}, Ge = () => ($n || ($n = rl()), $n), yo = (t, e) => He(e) ? e.apply(0, t) : e, ll = (t, e, n, r) => {
|
|
638
|
+
const s = Wn(r) ? n : r;
|
|
631
639
|
return yo(t, s) || e.apply(0, t);
|
|
632
640
|
}, ko = (t, e, n, r) => {
|
|
633
|
-
const s =
|
|
641
|
+
const s = Wn(r) ? n : r, c = yo(t, s);
|
|
634
642
|
return !!c && (nn(c) ? c : e.apply(0, t));
|
|
635
643
|
}, al = (t, e) => {
|
|
636
|
-
const { nativeScrollbarsOverlaid: n, body: r } = e || {}, { k: s, R: c, U: i } = Ge(), { nativeScrollbarsOverlaid: d, body: a } = i().cancel, u = n ?? d, m =
|
|
644
|
+
const { nativeScrollbarsOverlaid: n, body: r } = e || {}, { k: s, R: c, U: i } = Ge(), { nativeScrollbarsOverlaid: d, body: a } = i().cancel, u = n ?? d, m = Wn(r) ? a : r, v = (s.x || s.y) && u, p = t && (an(m) ? !c : m);
|
|
637
645
|
return !!v || !!p;
|
|
638
|
-
},
|
|
639
|
-
|
|
646
|
+
}, ls = /* @__PURE__ */ new WeakMap(), il = (t, e) => {
|
|
647
|
+
ls.set(t, e);
|
|
640
648
|
}, cl = (t) => {
|
|
641
|
-
|
|
642
|
-
}, xo = (t) =>
|
|
649
|
+
ls.delete(t);
|
|
650
|
+
}, xo = (t) => ls.get(t), dl = (t, e, n) => {
|
|
643
651
|
let r = !1;
|
|
644
652
|
const s = n ? /* @__PURE__ */ new WeakMap() : !1, c = () => {
|
|
645
653
|
r = !0;
|
|
@@ -664,29 +672,29 @@ const rl = () => {
|
|
|
664
672
|
return i(), [c, i];
|
|
665
673
|
}, Ds = (t, e, n, r) => {
|
|
666
674
|
let s = !1;
|
|
667
|
-
const { j: c, X: i, Y: d, W: a, J: u, G: m } = r || {}, v =
|
|
675
|
+
const { j: c, X: i, Y: d, W: a, J: u, G: m } = r || {}, v = On(() => s && n(!0), {
|
|
668
676
|
_: 33,
|
|
669
677
|
v: 99
|
|
670
678
|
}), [p, f] = dl(t, v, d), h = c || [], x = i || [], S = Mt(h, x), E = (T, $) => {
|
|
671
|
-
if (!
|
|
672
|
-
const V = u || dt, L = m || dt,
|
|
679
|
+
if (!Dn($)) {
|
|
680
|
+
const V = u || dt, L = m || dt, z = [], O = [];
|
|
673
681
|
let y = !1, w = !1;
|
|
674
682
|
if (ae($, (C) => {
|
|
675
|
-
const { attributeName: A, target: B, type: k, oldValue: N, addedNodes: U, removedNodes: ee } = C, se = k === "attributes", ne = k === "childList", pe = t === B, F = se && A,
|
|
683
|
+
const { attributeName: A, target: B, type: k, oldValue: N, addedNodes: U, removedNodes: ee } = C, se = k === "attributes", ne = k === "childList", pe = t === B, F = se && A, R = F && Qn(B, A || ""), I = Ot(R) ? R : null, j = F && N !== I, M = qs(x, A) && j;
|
|
676
684
|
if (e && (ne || !pe)) {
|
|
677
|
-
const K = se && j, G = K && a &&
|
|
678
|
-
ae(U, (ie) => me(
|
|
685
|
+
const K = se && j, G = K && a && Ln(B, a), te = (G ? !V(B, A, N, I) : !se || K) && !L(C, !!G, t, r);
|
|
686
|
+
ae(U, (ie) => me(z, ie)), ae(ee, (ie) => me(z, ie)), w = w || te;
|
|
679
687
|
}
|
|
680
688
|
!e && pe && j && !V(B, A, N, I) && (me(O, A), y = y || M);
|
|
681
|
-
}), f((C) =>
|
|
689
|
+
}), f((C) => Vn(z).reduce((A, B) => (me(A, ro(C, B)), Ln(B, C) ? me(A, B) : A), [])), e)
|
|
682
690
|
return !T && w && n(!1), [!1];
|
|
683
|
-
if (!
|
|
684
|
-
const C = [
|
|
691
|
+
if (!Dn(O) || y) {
|
|
692
|
+
const C = [Vn(O), y];
|
|
685
693
|
return !T && n.apply(0, C), C;
|
|
686
694
|
}
|
|
687
695
|
}
|
|
688
|
-
},
|
|
689
|
-
return [() => (
|
|
696
|
+
}, H = new Ar(X(E, !1));
|
|
697
|
+
return [() => (H.observe(t, {
|
|
690
698
|
attributes: !0,
|
|
691
699
|
attributeOldValue: !0,
|
|
692
700
|
attributeFilter: S,
|
|
@@ -694,10 +702,10 @@ const rl = () => {
|
|
|
694
702
|
childList: e,
|
|
695
703
|
characterData: e
|
|
696
704
|
}), s = !0, () => {
|
|
697
|
-
s && (p(),
|
|
705
|
+
s && (p(), H.disconnect(), s = !1);
|
|
698
706
|
}), () => {
|
|
699
707
|
if (s)
|
|
700
|
-
return v.m(), E(!0,
|
|
708
|
+
return v.m(), E(!0, H.takeRecords());
|
|
701
709
|
}];
|
|
702
710
|
}, So = {}, $o = {}, ul = (t) => {
|
|
703
711
|
ae(t, (e) => ae(e, (n, r) => {
|
|
@@ -733,11 +741,11 @@ const rl = () => {
|
|
|
733
741
|
u: !0
|
|
734
742
|
});
|
|
735
743
|
return () => {
|
|
736
|
-
const i = [], a = ao(`<div class="${
|
|
744
|
+
const i = [], a = ao(`<div class="${os}"><div class="${Kr}"></div></div>`)[0], u = a.firstChild, m = (v) => {
|
|
737
745
|
const p = v instanceof ResizeObserverEntry;
|
|
738
746
|
let f = !1, h = !1;
|
|
739
747
|
if (p) {
|
|
740
|
-
const [x, , S] = c(v.contentRect), E =
|
|
748
|
+
const [x, , S] = c(v.contentRect), E = Bn(x);
|
|
741
749
|
h = vo(x, S), f = !h && !E;
|
|
742
750
|
} else
|
|
743
751
|
h = v === !0;
|
|
@@ -753,7 +761,7 @@ const rl = () => {
|
|
|
753
761
|
});
|
|
754
762
|
} else if (s) {
|
|
755
763
|
const [v, p] = s(u, m, r);
|
|
756
|
-
me(i, Mt([
|
|
764
|
+
me(i, Mt([ns(a, Gr), ve(a, "animationstart", v)], p));
|
|
757
765
|
} else
|
|
758
766
|
return dt;
|
|
759
767
|
return X(Fe, me(i, Oe(t, a)));
|
|
@@ -787,9 +795,9 @@ const rl = () => {
|
|
|
787
795
|
}, () => n && d(!0, n.takeRecords())];
|
|
788
796
|
}, gl = (t, e, n, r) => {
|
|
789
797
|
let s, c, i, d, a, u;
|
|
790
|
-
const m = `[${ot}]`, v = `[${Je}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { vt: f, ht: h, ot: x, gt: S, bt: E, nt:
|
|
798
|
+
const m = `[${ot}]`, v = `[${Je}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { vt: f, ht: h, ot: x, gt: S, bt: E, nt: H, wt: T, yt: $, St: V, Ot: L } = t, z = (M) => Qe(M, "direction") === "rtl", O = {
|
|
791
799
|
$t: !1,
|
|
792
|
-
ct:
|
|
800
|
+
ct: z(f)
|
|
793
801
|
}, y = Ge(), w = Lt(Eo), [C] = Ve({
|
|
794
802
|
i: Zs,
|
|
795
803
|
o: {
|
|
@@ -797,12 +805,12 @@ const rl = () => {
|
|
|
797
805
|
h: 0
|
|
798
806
|
}
|
|
799
807
|
}, () => {
|
|
800
|
-
const M = w && w.tt(t, e, O, y, n).ut, G = !(T &&
|
|
808
|
+
const M = w && w.tt(t, e, O, y, n).ut, G = !(T && H) && ts(h, ot, Xt), Y = !H && $(Pr), te = Y && Le(S), ie = te && L(), be = V(ho, G), _e = Y && M && M()[0], $e = on(x), Z = ss(x);
|
|
801
809
|
return _e && _e(), qe(S, te), ie && ie(), G && be(), {
|
|
802
810
|
w: $e.w + Z.w,
|
|
803
811
|
h: $e.h + Z.h
|
|
804
812
|
};
|
|
805
|
-
}), A =
|
|
813
|
+
}), A = On(r, {
|
|
806
814
|
_: () => s,
|
|
807
815
|
v: () => c,
|
|
808
816
|
S(M, K) {
|
|
@@ -810,7 +818,7 @@ const rl = () => {
|
|
|
810
818
|
return [Mt(Be(G), Be(Y)).reduce((te, ie) => (te[ie] = G[ie] || Y[ie], te), {})];
|
|
811
819
|
}
|
|
812
820
|
}), B = (M) => {
|
|
813
|
-
const K =
|
|
821
|
+
const K = z(f);
|
|
814
822
|
oe(M, {
|
|
815
823
|
Ct: u !== K
|
|
816
824
|
}), oe(O, {
|
|
@@ -839,18 +847,18 @@ const rl = () => {
|
|
|
839
847
|
Et: K
|
|
840
848
|
};
|
|
841
849
|
return B(Y), K && !G && A(Y), Y;
|
|
842
|
-
}, [se, ne] = E ? hl(h, k) : [], pe = !
|
|
850
|
+
}, [se, ne] = E ? hl(h, k) : [], pe = !H && Ao(h, N, {
|
|
843
851
|
dt: !0
|
|
844
|
-
}), [F,
|
|
852
|
+
}), [F, R] = Ds(h, !1, ee, {
|
|
845
853
|
X: p,
|
|
846
854
|
j: p
|
|
847
|
-
}), I =
|
|
855
|
+
}), I = H && Qt && new Qt((M) => {
|
|
848
856
|
const K = M[M.length - 1].contentRect;
|
|
849
857
|
N({
|
|
850
858
|
ft: !0,
|
|
851
859
|
dt: vo(K, a)
|
|
852
860
|
}), a = K;
|
|
853
|
-
}), j =
|
|
861
|
+
}), j = On(() => {
|
|
854
862
|
const [, M] = C();
|
|
855
863
|
r({
|
|
856
864
|
Ht: M
|
|
@@ -870,7 +878,7 @@ const rl = () => {
|
|
|
870
878
|
I && I.disconnect(), M && M(), K && K(), d && d(), G(), Y();
|
|
871
879
|
};
|
|
872
880
|
}, ({ It: M, At: K, Dt: G }) => {
|
|
873
|
-
const Y = {}, [te] = M("update.ignoreMutation"), [ie, be] = M("update.attributes"), [_e, $e] = M("update.elementEvents"), [Z, Ce] = M("update.debounce"), Ae = $e || be, ye = K || G, Ee = (he) =>
|
|
881
|
+
const Y = {}, [te] = M("update.ignoreMutation"), [ie, be] = M("update.attributes"), [_e, $e] = M("update.elementEvents"), [Z, Ce] = M("update.debounce"), Ae = $e || be, ye = K || G, Ee = (he) => He(te) && te(he);
|
|
874
882
|
if (Ae) {
|
|
875
883
|
i && i(), d && d();
|
|
876
884
|
const [he, we] = Ds(E || x, !0, U, {
|
|
@@ -879,26 +887,26 @@ const rl = () => {
|
|
|
879
887
|
W: m,
|
|
880
888
|
G: (ce, fe) => {
|
|
881
889
|
const { target: ke, attributeName: Te } = ce;
|
|
882
|
-
return (!fe && Te && !
|
|
890
|
+
return (!fe && Te && !H ? Vr(ke, m, v) : !1) || !!mt(ke, `.${Re}`) || !!Ee(ce);
|
|
883
891
|
}
|
|
884
892
|
});
|
|
885
893
|
d = he(), i = we;
|
|
886
894
|
}
|
|
887
895
|
if (Ce)
|
|
888
|
-
if (A.m(),
|
|
896
|
+
if (A.m(), ze(Z)) {
|
|
889
897
|
const he = Z[0], we = Z[1];
|
|
890
|
-
s =
|
|
891
|
-
} else
|
|
898
|
+
s = Pe(he) && he, c = Pe(we) && we;
|
|
899
|
+
} else Pe(Z) ? (s = Z, c = !1) : (s = !1, c = !1);
|
|
892
900
|
if (ye) {
|
|
893
|
-
const he =
|
|
901
|
+
const he = R(), we = ne && ne(), ce = i && i();
|
|
894
902
|
he && oe(Y, ee(he[0], he[1], ye)), we && oe(Y, k(we[0], ye)), ce && oe(Y, U(ce[0], ye));
|
|
895
903
|
}
|
|
896
904
|
return B(Y), Y;
|
|
897
905
|
}, O];
|
|
898
906
|
}, bl = (t, e, n, r) => {
|
|
899
|
-
const s = "--os-viewport-percent", c = "--os-scroll-percent", i = "--os-scroll-direction", { U: d } = Ge(), { scrollbars: a } = d(), { slot: u } = a, { vt: m, ht: v, ot: p, Mt: f, gt: h, wt: x, nt: S } = e, { scrollbars: E } = f ? {} : t, { slot:
|
|
907
|
+
const s = "--os-viewport-percent", c = "--os-scroll-percent", i = "--os-scroll-direction", { U: d } = Ge(), { scrollbars: a } = d(), { slot: u } = a, { vt: m, ht: v, ot: p, Mt: f, gt: h, wt: x, nt: S } = e, { scrollbars: E } = f ? {} : t, { slot: H } = E || {}, T = [], $ = [], V = [], L = ko([m, v, p], () => S && x ? m : v, u, H), z = (F) => {
|
|
900
908
|
if (Kt) {
|
|
901
|
-
const
|
|
909
|
+
const R = new Kt({
|
|
902
910
|
source: h,
|
|
903
911
|
axis: F
|
|
904
912
|
});
|
|
@@ -908,54 +916,54 @@ const rl = () => {
|
|
|
908
916
|
clear: ["left"],
|
|
909
917
|
[c]: [0, 1]
|
|
910
918
|
}, {
|
|
911
|
-
timeline:
|
|
919
|
+
timeline: R
|
|
912
920
|
});
|
|
913
921
|
return () => M.cancel();
|
|
914
922
|
}
|
|
915
923
|
};
|
|
916
924
|
}
|
|
917
925
|
}, O = {
|
|
918
|
-
x:
|
|
919
|
-
y:
|
|
926
|
+
x: z("x"),
|
|
927
|
+
y: z("y")
|
|
920
928
|
}, y = () => {
|
|
921
|
-
const { Rt: F, Vt:
|
|
929
|
+
const { Rt: F, Vt: R } = n, I = (j, M) => to(0, 1, j / (j + M) || 0);
|
|
922
930
|
return {
|
|
923
|
-
x: I(
|
|
924
|
-
y: I(
|
|
931
|
+
x: I(R.x, F.x),
|
|
932
|
+
y: I(R.y, F.y)
|
|
925
933
|
};
|
|
926
|
-
}, w = (F,
|
|
927
|
-
const j = I ?
|
|
934
|
+
}, w = (F, R, I) => {
|
|
935
|
+
const j = I ? ns : oo;
|
|
928
936
|
ae(F, (M) => {
|
|
929
|
-
j(M.Tt,
|
|
937
|
+
j(M.Tt, R);
|
|
930
938
|
});
|
|
931
|
-
}, C = (F,
|
|
939
|
+
}, C = (F, R) => {
|
|
932
940
|
ae(F, (I) => {
|
|
933
|
-
const [j, M] =
|
|
941
|
+
const [j, M] = R(I);
|
|
934
942
|
Vt(j, M);
|
|
935
943
|
});
|
|
936
|
-
}, A = (F,
|
|
937
|
-
const j =
|
|
938
|
-
M && w($, F,
|
|
944
|
+
}, A = (F, R, I) => {
|
|
945
|
+
const j = Yn(I), M = j ? I : !0, K = j ? !I : !0;
|
|
946
|
+
M && w($, F, R), K && w(V, F, R);
|
|
939
947
|
}, B = () => {
|
|
940
|
-
const F = y(),
|
|
948
|
+
const F = y(), R = (I) => (j) => [j.Tt, {
|
|
941
949
|
[s]: Hn(I) + ""
|
|
942
950
|
}];
|
|
943
|
-
C($,
|
|
951
|
+
C($, R(F.x)), C(V, R(F.y));
|
|
944
952
|
}, k = () => {
|
|
945
953
|
if (!Kt) {
|
|
946
|
-
const { Lt: F } = n,
|
|
954
|
+
const { Lt: F } = n, R = ws(F, Le(h)), I = (j) => (M) => [M.Tt, {
|
|
947
955
|
[c]: Hn(j) + ""
|
|
948
956
|
}];
|
|
949
|
-
C($, I(
|
|
957
|
+
C($, I(R.x)), C(V, I(R.y));
|
|
950
958
|
}
|
|
951
959
|
}, N = () => {
|
|
952
|
-
const { Lt: F } = n,
|
|
960
|
+
const { Lt: F } = n, R = bs(F), I = (j) => (M) => [M.Tt, {
|
|
953
961
|
[i]: j ? "0" : "1"
|
|
954
962
|
}];
|
|
955
|
-
C($, I(
|
|
963
|
+
C($, I(R.x)), C(V, I(R.y));
|
|
956
964
|
}, U = () => {
|
|
957
965
|
if (S && !x) {
|
|
958
|
-
const { Rt: F, Lt:
|
|
966
|
+
const { Rt: F, Lt: R } = n, I = bs(R), j = ws(R, Le(h)), M = (K) => {
|
|
959
967
|
const { Tt: G } = K, Y = Dt(G) === p && G, te = (ie, be, _e) => {
|
|
960
968
|
const $e = be * ie;
|
|
961
969
|
return co(_e ? $e : -$e);
|
|
@@ -970,11 +978,11 @@ const rl = () => {
|
|
|
970
978
|
C($, M), C(V, M);
|
|
971
979
|
}
|
|
972
980
|
}, ee = (F) => {
|
|
973
|
-
const
|
|
981
|
+
const R = F ? "x" : "y", j = pt(`${Re} ${F ? Jr : Zr}`), M = pt(bo), K = pt(rs), G = {
|
|
974
982
|
Tt: j,
|
|
975
983
|
Ut: M,
|
|
976
984
|
Pt: K
|
|
977
|
-
}, Y = O[
|
|
985
|
+
}, Y = O[R];
|
|
978
986
|
return me(F ? $ : V, G), me(T, [Oe(j, M), Oe(M, K), X(bt, j), Y && Y.kt(G), r(G, A, F)]), G;
|
|
979
987
|
}, se = X(ee, !0), ne = X(ee, !1), pe = () => (Oe(L, $[0].Tt), Oe(L, V[0].Tt), X(Fe, T));
|
|
980
988
|
return se(), ne(), [{
|
|
@@ -995,35 +1003,35 @@ const rl = () => {
|
|
|
995
1003
|
}
|
|
996
1004
|
}, pe];
|
|
997
1005
|
}, wl = (t, e, n, r) => (s, c, i) => {
|
|
998
|
-
const { ht: d, ot: a, nt: u, gt: m, Kt: v, Ot: p } = e, { Tt: f, Ut: h, Pt: x } = s, [S, E] = ft(333), [
|
|
999
|
-
|
|
1006
|
+
const { ht: d, ot: a, nt: u, gt: m, Kt: v, Ot: p } = e, { Tt: f, Ut: h, Pt: x } = s, [S, E] = ft(333), [H, T] = ft(444), $ = (z) => {
|
|
1007
|
+
He(m.scrollBy) && m.scrollBy({
|
|
1000
1008
|
behavior: "smooth",
|
|
1001
|
-
left:
|
|
1002
|
-
top:
|
|
1009
|
+
left: z.x,
|
|
1010
|
+
top: z.y
|
|
1003
1011
|
});
|
|
1004
1012
|
}, V = () => {
|
|
1005
|
-
const
|
|
1013
|
+
const z = "pointerup pointercancel lostpointercapture", O = `client${i ? "X" : "Y"}`, y = i ? dn : un, w = i ? "left" : "top", C = i ? "w" : "h", A = i ? "x" : "y", B = (N, U) => (ee) => {
|
|
1006
1014
|
const { Rt: se } = n, ne = ht(h)[C] - ht(x)[C], F = U * ee / ne * se[A];
|
|
1007
1015
|
qe(m, {
|
|
1008
1016
|
[A]: N + F
|
|
1009
1017
|
});
|
|
1010
1018
|
}, k = [];
|
|
1011
1019
|
return ve(h, "pointerdown", (N) => {
|
|
1012
|
-
const U = mt(N.target, `.${
|
|
1013
|
-
if (pe === 0 && F && ne && (I || []).includes(
|
|
1020
|
+
const U = mt(N.target, `.${rs}`) === x, ee = U ? x : h, se = t.scrollbars, ne = se[U ? "dragScroll" : "clickScroll"], { button: pe, isPrimary: F, pointerType: R } = N, { pointers: I } = se;
|
|
1021
|
+
if (pe === 0 && F && ne && (I || []).includes(R)) {
|
|
1014
1022
|
Fe(k), T();
|
|
1015
|
-
const M = !U && (N.shiftKey || ne === "instant"), K = X(
|
|
1023
|
+
const M = !U && (N.shiftKey || ne === "instant"), K = X(xn, x), G = X(xn, h), Y = (fe, ke) => (fe || K())[w] - (ke || G())[w], te = Tn(xn(m)[y]) / ht(m)[C] || 1, ie = B(Le(m)[A], 1 / te), be = N[O], _e = K(), $e = G(), Z = _e[y], Ce = Y(_e, $e) + Z / 2, Ae = be - $e[w], ye = U ? 0 : Ae - Ce, Ee = (fe) => {
|
|
1016
1024
|
Fe(ce), ee.releasePointerCapture(fe.pointerId);
|
|
1017
|
-
}, he = U || M, we = p(), ce = [ve(v,
|
|
1025
|
+
}, he = U || M, we = p(), ce = [ve(v, z, Ee), ve(v, "selectstart", (fe) => In(fe), {
|
|
1018
1026
|
H: !1
|
|
1019
|
-
}), ve(h,
|
|
1027
|
+
}), ve(h, z, Ee), he && ve(h, "pointermove", (fe) => ie(ye + (fe[O] - be))), he && (() => {
|
|
1020
1028
|
const fe = Le(m);
|
|
1021
1029
|
we();
|
|
1022
1030
|
const ke = Le(m), Te = {
|
|
1023
1031
|
x: ke.x - fe.x,
|
|
1024
1032
|
y: ke.y - fe.y
|
|
1025
1033
|
};
|
|
1026
|
-
(Jt(Te.x) > 3 || Jt(Te.y) > 3) && (p(), qe(m, fe), $(Te),
|
|
1034
|
+
(Jt(Te.x) > 3 || Jt(Te.y) > 3) && (p(), qe(m, fe), $(Te), H(we));
|
|
1027
1035
|
})];
|
|
1028
1036
|
if (ee.setPointerCapture(N.pointerId), M)
|
|
1029
1037
|
ie(ye);
|
|
@@ -1045,16 +1053,16 @@ const rl = () => {
|
|
|
1045
1053
|
}), ve(f, "pointerleave pointercancel", () => {
|
|
1046
1054
|
c(Es, !1);
|
|
1047
1055
|
}), !u && ve(f, "mousedown", () => {
|
|
1048
|
-
const
|
|
1049
|
-
(ms(
|
|
1050
|
-
}), ve(f, "wheel", (
|
|
1051
|
-
const { deltaX: O, deltaY: y, deltaMode: w } =
|
|
1056
|
+
const z = Rn();
|
|
1057
|
+
(ms(z, Je) || ms(z, ot) || z === document.body) && Zt(X(Nn, a), 25);
|
|
1058
|
+
}), ve(f, "wheel", (z) => {
|
|
1059
|
+
const { deltaX: O, deltaY: y, deltaMode: w } = z;
|
|
1052
1060
|
L && w === 0 && Dt(f) === d && $({
|
|
1053
1061
|
x: O,
|
|
1054
1062
|
y
|
|
1055
1063
|
}), L = !1, c(Ms, !0), S(() => {
|
|
1056
1064
|
L = !0, c(Ms);
|
|
1057
|
-
}),
|
|
1065
|
+
}), In(z);
|
|
1058
1066
|
}, {
|
|
1059
1067
|
H: !1,
|
|
1060
1068
|
I: !0
|
|
@@ -1067,19 +1075,19 @@ const rl = () => {
|
|
|
1067
1075
|
}), V(), E, T]);
|
|
1068
1076
|
}, yl = (t, e, n, r, s, c) => {
|
|
1069
1077
|
let i, d, a, u, m, v = dt, p = 0;
|
|
1070
|
-
const f = (F) => F.pointerType === "mouse", [h, x] = ft(), [S, E] = ft(100), [
|
|
1078
|
+
const f = (F) => F.pointerType === "mouse", [h, x] = ft(), [S, E] = ft(100), [H, T] = ft(100), [$, V] = ft(() => p), [L, z] = bl(t, s, r, wl(e, s, r, (F) => f(F) && ee())), { ht: O, Qt: y, wt: w } = s, { jt: C, Nt: A, qt: B, Bt: k, Ft: N } = L, U = (F, R) => {
|
|
1071
1079
|
if (V(), F)
|
|
1072
1080
|
C(Ts);
|
|
1073
1081
|
else {
|
|
1074
1082
|
const I = X(C, Ts, !0);
|
|
1075
|
-
p > 0 && !
|
|
1083
|
+
p > 0 && !R ? $(I) : I();
|
|
1076
1084
|
}
|
|
1077
1085
|
}, ee = () => {
|
|
1078
1086
|
(a ? !i : !u) && (U(!0), S(() => {
|
|
1079
1087
|
U(!1);
|
|
1080
1088
|
}));
|
|
1081
1089
|
}, se = (F) => {
|
|
1082
|
-
C(
|
|
1090
|
+
C(Pn, F, !0), C(Pn, F, !1);
|
|
1083
1091
|
}, ne = (F) => {
|
|
1084
1092
|
f(F) && (i = a, a && U(!0));
|
|
1085
1093
|
}, pe = [V, E, T, x, () => v(), ve(O, "pointerover", ne, {
|
|
@@ -1093,26 +1101,26 @@ const rl = () => {
|
|
|
1093
1101
|
B(), ee();
|
|
1094
1102
|
}), c(F), N();
|
|
1095
1103
|
})];
|
|
1096
|
-
return [() => X(Fe, me(pe,
|
|
1097
|
-
const { nn: M, sn: K, en: G, cn: Y } = j || {}, { Ct: te, dt: ie } = I || {}, { ct: be } = n, { k: _e } = Ge(), { K: $e, rn: Z } = r, [Ce, Ae] = F("showNativeOverlaidScrollbars"), [ye, Ee] = F("scrollbars.theme"), [he, we] = F("scrollbars.visibility"), [ce, fe] = F("scrollbars.autoHide"), [ke, Te] = F("scrollbars.autoHideSuspend"), [$t] = F("scrollbars.autoHideDelay"), [Ft,
|
|
1104
|
+
return [() => X(Fe, me(pe, z())), ({ It: F, Dt: R, Zt: I, tn: j }) => {
|
|
1105
|
+
const { nn: M, sn: K, en: G, cn: Y } = j || {}, { Ct: te, dt: ie } = I || {}, { ct: be } = n, { k: _e } = Ge(), { K: $e, rn: Z } = r, [Ce, Ae] = F("showNativeOverlaidScrollbars"), [ye, Ee] = F("scrollbars.theme"), [he, we] = F("scrollbars.visibility"), [ce, fe] = F("scrollbars.autoHide"), [ke, Te] = F("scrollbars.autoHideSuspend"), [$t] = F("scrollbars.autoHideDelay"), [Ft, Rt] = F("scrollbars.dragScroll"), [Ht, at] = F("scrollbars.clickScroll"), [vt, pn] = F("overflow"), hn = ie && !R, gn = Z.x || Z.y, bn = M || K || Y || te || R, Ie = G || we || pn, wn = Ce && _e.x && _e.y, Ct = (Et, tt, Bt) => {
|
|
1098
1106
|
const At = Et.includes(gt) && (he === st || he === "auto" && tt === gt);
|
|
1099
1107
|
return C(Qr, At, Bt), At;
|
|
1100
1108
|
};
|
|
1101
|
-
if (p = $t, hn && (ke && gn ? (se(!1), v(),
|
|
1109
|
+
if (p = $t, hn && (ke && gn ? (se(!1), v(), H(() => {
|
|
1102
1110
|
v = ve(y, "scroll", X(se, !0), {
|
|
1103
1111
|
A: !0
|
|
1104
1112
|
});
|
|
1105
|
-
})) : se(!0)), Ae && C(Yr, wn), Ee && (C(m), C(ye, !0), m = ye), Te && !ke && se(!0), fe && (d = ce === "move", a = ce === "leave", u = ce === "never", U(u, !0)),
|
|
1113
|
+
})) : se(!0)), Ae && C(Yr, wn), Ee && (C(m), C(ye, !0), m = ye), Te && !ke && se(!0), fe && (d = ce === "move", a = ce === "leave", u = ce === "never", U(u, !0)), Rt && C(nl, Ft), at && C(tl, !!Ht), Ie) {
|
|
1106
1114
|
const Et = Ct(vt.x, $e.x, !0), tt = Ct(vt.y, $e.y, !1);
|
|
1107
1115
|
C(el, !(Et && tt));
|
|
1108
1116
|
}
|
|
1109
1117
|
bn && (B(), A(), N(), Y && k(), C(As, !Z.x, !0), C(As, !Z.y, !1), C(Xr, be && !w));
|
|
1110
1118
|
}, {}, L];
|
|
1111
1119
|
}, kl = (t) => {
|
|
1112
|
-
const e = Ge(), { U: n, R: r } = e, { elements: s } = n(), { padding: c, viewport: i, content: d } = s, a = nn(t), u = a ? {} : t, { elements: m } = u, { padding: v, viewport: p, content: f } = m || {}, h = a ? t : u.target, x = lo(h), S = h.ownerDocument, E = S.documentElement,
|
|
1120
|
+
const e = Ge(), { U: n, R: r } = e, { elements: s } = n(), { padding: c, viewport: i, content: d } = s, a = nn(t), u = a ? {} : t, { elements: m } = u, { padding: v, viewport: p, content: f } = m || {}, h = a ? t : u.target, x = lo(h), S = h.ownerDocument, E = S.documentElement, H = () => S.defaultView || De, T = X(ll, [h]), $ = X(ko, [h]), V = X(pt, ""), L = X(T, V, i), z = X($, V, d), O = (Z) => {
|
|
1113
1121
|
const Ce = ht(Z), Ae = on(Z), ye = Qe(Z, Xs), Ee = Qe(Z, Js);
|
|
1114
1122
|
return Ae.w - Ce.w > 0 && !wt(ye) || Ae.h - Ce.h > 0 && !wt(Ee);
|
|
1115
|
-
}, y = L(p), w = y === h, C = w && x, A = !w &&
|
|
1123
|
+
}, y = L(p), w = y === h, C = w && x, A = !w && z(f), B = !w && y === A, k = C ? E : y, N = C ? k : h, U = !w && $(V, c, v), ee = !B && A, se = [ee, k, U, N].map((Z) => nn(Z) && !Dt(Z) && Z), ne = (Z) => Z && qs(se, Z), pe = !ne(k) && O(k) ? k : h, F = C ? E : k, I = {
|
|
1116
1124
|
vt: h,
|
|
1117
1125
|
ht: N,
|
|
1118
1126
|
ot: k,
|
|
@@ -1125,26 +1133,26 @@ const rl = () => {
|
|
|
1125
1133
|
wt: x,
|
|
1126
1134
|
Mt: a,
|
|
1127
1135
|
nt: w,
|
|
1128
|
-
un:
|
|
1129
|
-
yt: (Z) =>
|
|
1136
|
+
un: H,
|
|
1137
|
+
yt: (Z) => ts(k, Je, Z),
|
|
1130
1138
|
St: (Z, Ce) => sn(k, Je, Z, Ce),
|
|
1131
|
-
Ot: () => sn(F, Je,
|
|
1139
|
+
Ot: () => sn(F, Je, zr, !0)
|
|
1132
1140
|
}, { vt: j, ht: M, ln: K, ot: G, bt: Y } = I, te = [() => {
|
|
1133
|
-
Ne(M, [ot,
|
|
1141
|
+
Ne(M, [ot, Sn]), Ne(j, Sn), x && Ne(E, [Sn, ot]);
|
|
1134
1142
|
}];
|
|
1135
|
-
let ie =
|
|
1143
|
+
let ie = Fn([Y, G, K, M, j].find((Z) => Z && !ne(Z)));
|
|
1136
1144
|
const be = C ? j : Y || G, _e = X(Fe, te);
|
|
1137
1145
|
return [I, () => {
|
|
1138
|
-
const Z =
|
|
1139
|
-
Oe(Dt(ce),
|
|
1146
|
+
const Z = H(), Ce = Rn(), Ae = (ce) => {
|
|
1147
|
+
Oe(Dt(ce), Fn(ce)), bt(ce);
|
|
1140
1148
|
}, ye = (ce) => ve(ce, "focusin focusout focus blur", fo, {
|
|
1141
1149
|
I: !0,
|
|
1142
1150
|
H: !1
|
|
1143
|
-
}), Ee = "tabindex", he =
|
|
1144
|
-
return Xe(M, ot, w ? "" : Nr), Xe(K,
|
|
1145
|
-
const ce =
|
|
1146
|
-
Ne(K,
|
|
1147
|
-
}]), r && !w && (
|
|
1151
|
+
}), Ee = "tabindex", he = Qn(G, Ee), we = ye(Ce);
|
|
1152
|
+
return Xe(M, ot, w ? "" : Nr), Xe(K, qn, ""), Xe(G, Je, ""), Xe(Y, Cs, ""), w || (Xe(G, Ee, he || "-1"), x && Xe(E, $s, "")), Oe(be, ie), Oe(M, K), Oe(K || M, !w && G), Oe(G, Y), me(te, [we, () => {
|
|
1153
|
+
const ce = Rn(), fe = ne(G), ke = fe && ce === G ? j : ce, Te = ye(ke);
|
|
1154
|
+
Ne(K, qn), Ne(Y, Cs), Ne(G, Je), x && Ne(E, $s), he ? Xe(G, Ee, he) : Ne(G, Ee), ne(Y) && Ae(Y), fe && Ae(G), ne(K) && Ae(K), Nn(ke), Te();
|
|
1155
|
+
}]), r && !w && (es(G, Je, go), me(te, X(Ne, G, Je))), Nn(!w && x && Ce === j && Z.top === Z ? G : Ce), we(), ie = 0, _e;
|
|
1148
1156
|
}, _e];
|
|
1149
1157
|
}, xl = ({ bt: t }) => ({ Zt: e, _n: n, Dt: r }) => {
|
|
1150
1158
|
const { xt: s } = e || {}, { $t: c } = n;
|
|
@@ -1158,21 +1166,21 @@ const rl = () => {
|
|
|
1158
1166
|
}, X(hs, t, "padding", ""));
|
|
1159
1167
|
return ({ It: d, Zt: a, _n: u, Dt: m }) => {
|
|
1160
1168
|
let [v, p] = i(m);
|
|
1161
|
-
const { R: f } = Ge(), { ft: h, Ht: x, Ct: S } = a || {}, { ct: E } = u, [
|
|
1169
|
+
const { R: f } = Ge(), { ft: h, Ht: x, Ct: S } = a || {}, { ct: E } = u, [H, T] = d("paddingAbsolute");
|
|
1162
1170
|
(h || p || (m || x)) && ([v, p] = c(m));
|
|
1163
1171
|
const V = !r && (T || S || p);
|
|
1164
1172
|
if (V) {
|
|
1165
|
-
const L = !
|
|
1166
|
-
[Ws]: L && !E ? -
|
|
1173
|
+
const L = !H || !e && !f, z = v.r + v.l, O = v.t + v.b, y = {
|
|
1174
|
+
[Ws]: L && !E ? -z : 0,
|
|
1167
1175
|
[Ys]: L ? -O : 0,
|
|
1168
|
-
[Ks]: L && E ? -
|
|
1176
|
+
[Ks]: L && E ? -z : 0,
|
|
1169
1177
|
top: L ? -v.t : 0,
|
|
1170
1178
|
right: L ? E ? -v.r : "auto" : 0,
|
|
1171
1179
|
left: L ? E ? "auto" : -v.l : 0,
|
|
1172
|
-
[dn]: L && `calc(100% + ${
|
|
1180
|
+
[dn]: L && `calc(100% + ${z}px)`
|
|
1173
1181
|
}, w = {
|
|
1174
|
-
[
|
|
1175
|
-
[
|
|
1182
|
+
[Ps]: L ? v.t : 0,
|
|
1183
|
+
[zs]: L ? v.r : 0,
|
|
1176
1184
|
[Gs]: L ? v.b : 0,
|
|
1177
1185
|
[js]: L ? v.l : 0
|
|
1178
1186
|
};
|
|
@@ -1189,23 +1197,23 @@ const rl = () => {
|
|
|
1189
1197
|
}, $l = (t, e) => {
|
|
1190
1198
|
const n = Ge(), { ht: r, ln: s, ot: c, nt: i, Qt: d, gt: a, wt: u, St: m, un: v } = t, { R: p } = n, f = u && i, h = X(Ns, 0), x = {
|
|
1191
1199
|
display: () => !1,
|
|
1192
|
-
direction: (
|
|
1193
|
-
flexDirection: (
|
|
1194
|
-
writingMode: (
|
|
1200
|
+
direction: (R) => R !== "ltr",
|
|
1201
|
+
flexDirection: (R) => R.endsWith("-reverse"),
|
|
1202
|
+
writingMode: (R) => R !== "horizontal-tb"
|
|
1195
1203
|
}, S = Be(x), E = {
|
|
1196
1204
|
i: Zs,
|
|
1197
1205
|
o: {
|
|
1198
1206
|
w: 0,
|
|
1199
1207
|
h: 0
|
|
1200
1208
|
}
|
|
1201
|
-
},
|
|
1209
|
+
}, H = {
|
|
1202
1210
|
i: Wt,
|
|
1203
1211
|
o: {}
|
|
1204
|
-
}, T = (
|
|
1205
|
-
m(ho, !f &&
|
|
1206
|
-
}, $ = (
|
|
1212
|
+
}, T = (R) => {
|
|
1213
|
+
m(ho, !f && R);
|
|
1214
|
+
}, $ = (R) => {
|
|
1207
1215
|
if (!S.some((be) => {
|
|
1208
|
-
const _e =
|
|
1216
|
+
const _e = R[be];
|
|
1209
1217
|
return _e && x[be](_e);
|
|
1210
1218
|
}))
|
|
1211
1219
|
return {
|
|
@@ -1241,53 +1249,53 @@ const rl = () => {
|
|
|
1241
1249
|
y: te.y - G.y < 1 && -Y.h
|
|
1242
1250
|
});
|
|
1243
1251
|
const ie = Le(a);
|
|
1244
|
-
return qe(a, j),
|
|
1252
|
+
return qe(a, j), Kn(() => K()), {
|
|
1245
1253
|
D: G,
|
|
1246
1254
|
M: ie
|
|
1247
1255
|
};
|
|
1248
|
-
}, V = (
|
|
1256
|
+
}, V = (R, I) => {
|
|
1249
1257
|
const j = De.devicePixelRatio % 1 !== 0 ? 1 : 0, M = {
|
|
1250
|
-
w: h(
|
|
1251
|
-
h: h(
|
|
1258
|
+
w: h(R.w - I.w),
|
|
1259
|
+
h: h(R.h - I.h)
|
|
1252
1260
|
};
|
|
1253
1261
|
return {
|
|
1254
1262
|
w: M.w > j ? M.w : 0,
|
|
1255
1263
|
h: M.h > j ? M.h : 0
|
|
1256
1264
|
};
|
|
1257
|
-
}, [L,
|
|
1258
|
-
i: (
|
|
1265
|
+
}, [L, z] = Ve(E, X(ss, c)), [O, y] = Ve(E, X(on, c)), [w, C] = Ve(E), [A] = Ve(H), [B, k] = Ve(E), [N] = Ve(H), [U] = Ve({
|
|
1266
|
+
i: (R, I) => vn(R, I, S),
|
|
1259
1267
|
o: {}
|
|
1260
|
-
}, () =>
|
|
1261
|
-
i: (
|
|
1268
|
+
}, () => Hr(c) ? Qe(c, S) : {}), [ee, se] = Ve({
|
|
1269
|
+
i: (R, I) => Wt(R.D, I.D) && Wt(R.M, I.M),
|
|
1262
1270
|
o: mo()
|
|
1263
|
-
}), ne = Lt(Eo), pe = (
|
|
1271
|
+
}), ne = Lt(Eo), pe = (R, I) => `${I ? Ur : qr}${Tr(R)}`, F = (R) => {
|
|
1264
1272
|
const I = (M) => [st, it, gt].map((K) => pe(K, M)), j = I(!0).concat(I()).join(" ");
|
|
1265
|
-
m(j), m(Be(
|
|
1273
|
+
m(j), m(Be(R).map((M) => pe(R[M], M === "x")).join(" "), !0);
|
|
1266
1274
|
};
|
|
1267
|
-
return ({ It:
|
|
1268
|
-
const { ft: G, Ht: Y, Ct: te, dt: ie, zt: be } = I || {}, _e = ne && ne.tt(t, e, j, n,
|
|
1269
|
-
let ke =
|
|
1275
|
+
return ({ It: R, Zt: I, _n: j, Dt: M }, { fn: K }) => {
|
|
1276
|
+
const { ft: G, Ht: Y, Ct: te, dt: ie, zt: be } = I || {}, _e = ne && ne.tt(t, e, j, n, R), { it: $e, ut: Z, _t: Ce } = _e || {}, [Ae, ye] = fl(R, n), [Ee, he] = R("overflow"), we = wt(Ee.x), ce = wt(Ee.y), fe = !0;
|
|
1277
|
+
let ke = z(M), Te = y(M), $t = C(M), Ft = k(M);
|
|
1270
1278
|
ye && p && m(go, !Ae);
|
|
1271
1279
|
{
|
|
1272
|
-
|
|
1273
|
-
const [
|
|
1280
|
+
ts(r, ot, Xt) && T(!0);
|
|
1281
|
+
const [us] = Z ? Z() : [], [It] = ke = L(M), [Nt] = Te = O(M), Ut = uo(c), qt = f && Rr(v()), Qo = {
|
|
1274
1282
|
w: h(Nt.w + It.w),
|
|
1275
1283
|
h: h(Nt.h + It.h)
|
|
1276
|
-
},
|
|
1284
|
+
}, vs = {
|
|
1277
1285
|
w: h((qt ? qt.w : Ut.w + h(Ut.w - Nt.w)) + It.w),
|
|
1278
1286
|
h: h((qt ? qt.h : Ut.h + h(Ut.h - Nt.h)) + It.h)
|
|
1279
1287
|
};
|
|
1280
|
-
|
|
1288
|
+
us && us(), Ft = B(vs), $t = w(V(Qo, vs), M);
|
|
1281
1289
|
}
|
|
1282
|
-
const [
|
|
1290
|
+
const [Rt, Ht] = Ft, [at, vt] = $t, [pn, hn] = Te, [gn, bn] = ke, [Ie, wn] = A({
|
|
1283
1291
|
x: at.w > 0,
|
|
1284
1292
|
y: at.h > 0
|
|
1285
|
-
}), Ct = we && ce && (Ie.x || Ie.y) || we && Ie.x && !Ie.y || ce && Ie.y && !Ie.x, Et = K || te || be || bn || hn ||
|
|
1286
|
-
return Et && (At && F(tt.K), Ce && $e && Vt(c, Ce(tt, j, $e(tt, pn, gn)))), T(!1), sn(r, ot, Xt, Ct), sn(s,
|
|
1293
|
+
}), Ct = we && ce && (Ie.x || Ie.y) || we && Ie.x && !Ie.y || ce && Ie.y && !Ie.x, Et = K || te || be || bn || hn || Ht || vt || he || ye || fe, tt = ml(Ie, Ee), [Bt, At] = N(tt.K), [Yo, Xo] = U(M), ds = te || ie || Xo || wn || M, [Jo, Zo] = ds ? ee($(Yo), M) : se();
|
|
1294
|
+
return Et && (At && F(tt.K), Ce && $e && Vt(c, Ce(tt, j, $e(tt, pn, gn)))), T(!1), sn(r, ot, Xt, Ct), sn(s, qn, Xt, Ct), oe(e, {
|
|
1287
1295
|
K: Bt,
|
|
1288
1296
|
Vt: {
|
|
1289
|
-
x:
|
|
1290
|
-
y:
|
|
1297
|
+
x: Rt.w,
|
|
1298
|
+
y: Rt.h
|
|
1291
1299
|
},
|
|
1292
1300
|
Rt: {
|
|
1293
1301
|
x: at.w,
|
|
@@ -1297,10 +1305,10 @@ const rl = () => {
|
|
|
1297
1305
|
Lt: Br(Jo, at)
|
|
1298
1306
|
}), {
|
|
1299
1307
|
en: At,
|
|
1300
|
-
nn:
|
|
1308
|
+
nn: Ht,
|
|
1301
1309
|
sn: vt,
|
|
1302
1310
|
cn: Zo || vt,
|
|
1303
|
-
vn:
|
|
1311
|
+
vn: ds
|
|
1304
1312
|
};
|
|
1305
1313
|
};
|
|
1306
1314
|
}, Cl = (t) => {
|
|
@@ -1316,8 +1324,8 @@ const rl = () => {
|
|
|
1316
1324
|
[Ws]: 0,
|
|
1317
1325
|
[Ys]: 0,
|
|
1318
1326
|
[Ks]: 0,
|
|
1319
|
-
[zs]: 0,
|
|
1320
1327
|
[Ps]: 0,
|
|
1328
|
+
[zs]: 0,
|
|
1321
1329
|
[Gs]: 0,
|
|
1322
1330
|
[js]: 0
|
|
1323
1331
|
},
|
|
@@ -1341,18 +1349,18 @@ const rl = () => {
|
|
|
1341
1349
|
}, { vt: c, gt: i, nt: d, Ot: a } = e, { R: u, k: m } = Ge(), v = !u && (m.x || m.y), p = [xl(e), Sl(e, s), $l(e, s)];
|
|
1342
1350
|
return [n, (f) => {
|
|
1343
1351
|
const h = {}, S = v && Le(i), E = S && a();
|
|
1344
|
-
return ae(p, (
|
|
1345
|
-
oe(h,
|
|
1352
|
+
return ae(p, (H) => {
|
|
1353
|
+
oe(h, H(f, h) || {});
|
|
1346
1354
|
}), qe(i, S), E && E(), !d && qe(c, 0), h;
|
|
1347
1355
|
}, s, e, r];
|
|
1348
1356
|
}, El = (t, e, n, r, s) => {
|
|
1349
1357
|
let c = !1;
|
|
1350
1358
|
const i = Ss(e, {}), [d, a, u, m, v] = Cl(t), [p, f, h] = gl(m, u, i, ($) => {
|
|
1351
1359
|
T({}, $);
|
|
1352
|
-
}), [x, S, , E] = yl(t, e, h, u, m, s),
|
|
1360
|
+
}), [x, S, , E] = yl(t, e, h, u, m, s), H = ($) => Be($).some((V) => !!$[V]), T = ($, V) => {
|
|
1353
1361
|
if (n())
|
|
1354
1362
|
return !1;
|
|
1355
|
-
const { pn: L, Dt:
|
|
1363
|
+
const { pn: L, Dt: z, At: O, hn: y } = $, w = L || {}, C = !!z || !c, A = {
|
|
1356
1364
|
It: Ss(e, w, C),
|
|
1357
1365
|
pn: w,
|
|
1358
1366
|
Dt: C
|
|
@@ -1369,15 +1377,15 @@ const rl = () => {
|
|
|
1369
1377
|
Zt: B,
|
|
1370
1378
|
tn: k
|
|
1371
1379
|
}));
|
|
1372
|
-
const N =
|
|
1380
|
+
const N = H(B), U = H(k), ee = N || U || !Zn(w) || C;
|
|
1373
1381
|
return c = !0, ee && r($, {
|
|
1374
1382
|
Zt: B,
|
|
1375
1383
|
tn: k
|
|
1376
1384
|
}), ee;
|
|
1377
1385
|
};
|
|
1378
1386
|
return [() => {
|
|
1379
|
-
const { an: $, gt: V, Ot: L } = m,
|
|
1380
|
-
return qe(V,
|
|
1387
|
+
const { an: $, gt: V, Ot: L } = m, z = Le($), O = [p(), d(), x()], y = L();
|
|
1388
|
+
return qe(V, z), y(), X(Fe, O);
|
|
1381
1389
|
}, T, () => ({
|
|
1382
1390
|
gn: h,
|
|
1383
1391
|
bn: u
|
|
@@ -1392,18 +1400,18 @@ const rl = () => {
|
|
|
1392
1400
|
const a = [], u = {}, m = (w) => {
|
|
1393
1401
|
const C = eo(w), A = Lt(vl);
|
|
1394
1402
|
return A ? A(C, !0) : C;
|
|
1395
|
-
}, v = oe({}, r(), m(e)), [p, f, h] =
|
|
1403
|
+
}, v = oe({}, r(), m(e)), [p, f, h] = Un(), [x, S, E] = Un(n), H = (w, C) => {
|
|
1396
1404
|
E(w, C), h(w, C);
|
|
1397
|
-
}, [T, $, V, L,
|
|
1398
|
-
const { ft: k, Ct: N, xt: U, Ht: ee, Et: se, dt: ne } = A, { nn: pe, sn: F, en:
|
|
1399
|
-
|
|
1405
|
+
}, [T, $, V, L, z] = El(t, v, () => d, ({ pn: w, Dt: C }, { Zt: A, tn: B }) => {
|
|
1406
|
+
const { ft: k, Ct: N, xt: U, Ht: ee, Et: se, dt: ne } = A, { nn: pe, sn: F, en: R, cn: I } = B;
|
|
1407
|
+
H("updated", [y, {
|
|
1400
1408
|
updateHints: {
|
|
1401
1409
|
sizeChanged: !!k,
|
|
1402
1410
|
directionChanged: !!N,
|
|
1403
1411
|
heightIntrinsicChanged: !!U,
|
|
1404
1412
|
overflowEdgeChanged: !!pe,
|
|
1405
1413
|
overflowAmountChanged: !!F,
|
|
1406
|
-
overflowStyleChanged: !!
|
|
1414
|
+
overflowStyleChanged: !!R,
|
|
1407
1415
|
scrollCoordinatesChanged: !!I,
|
|
1408
1416
|
contentMutation: !!ee,
|
|
1409
1417
|
hostMutation: !!se,
|
|
@@ -1412,13 +1420,13 @@ const rl = () => {
|
|
|
1412
1420
|
changedOptions: w || {},
|
|
1413
1421
|
force: !!C
|
|
1414
1422
|
}]);
|
|
1415
|
-
}, (w) =>
|
|
1416
|
-
cl(c), Fe(a), d = !0,
|
|
1423
|
+
}, (w) => H("scroll", [y, w])), O = (w) => {
|
|
1424
|
+
cl(c), Fe(a), d = !0, H("destroyed", [y, w]), f(), S();
|
|
1417
1425
|
}, y = {
|
|
1418
1426
|
options(w, C) {
|
|
1419
1427
|
if (w) {
|
|
1420
1428
|
const A = C ? r() : {}, B = po(v, oe(A, m(w)));
|
|
1421
|
-
|
|
1429
|
+
Zn(B) || (oe(v, B), $({
|
|
1422
1430
|
pn: B
|
|
1423
1431
|
}));
|
|
1424
1432
|
}
|
|
@@ -1447,14 +1455,14 @@ const rl = () => {
|
|
|
1447
1455
|
},
|
|
1448
1456
|
elements() {
|
|
1449
1457
|
const { vt: w, ht: C, ln: A, ot: B, bt: k, gt: N, Qt: U } = L.wn, { Xt: ee, Gt: se } = L.yn, ne = (F) => {
|
|
1450
|
-
const { Pt:
|
|
1458
|
+
const { Pt: R, Ut: I, Tt: j } = F;
|
|
1451
1459
|
return {
|
|
1452
1460
|
scrollbar: j,
|
|
1453
1461
|
track: I,
|
|
1454
|
-
handle:
|
|
1462
|
+
handle: R
|
|
1455
1463
|
};
|
|
1456
1464
|
}, pe = (F) => {
|
|
1457
|
-
const { Yt:
|
|
1465
|
+
const { Yt: R, Wt: I } = F, j = ne(R[0]);
|
|
1458
1466
|
return oe({}, j, {
|
|
1459
1467
|
clone: () => {
|
|
1460
1468
|
const M = ne(I());
|
|
@@ -1483,16 +1491,16 @@ const rl = () => {
|
|
|
1483
1491
|
destroy: X(O, !1),
|
|
1484
1492
|
plugin: (w) => u[Be(w)[0]]
|
|
1485
1493
|
};
|
|
1486
|
-
return me(a, [
|
|
1494
|
+
return me(a, [z]), il(c, y), Co(So, je, [y, p, u]), al(L.wn.wt, !s && t.cancel) ? (O(!0), y) : (me(a, T()), H("initialized", [y]), y.update(), y);
|
|
1487
1495
|
}
|
|
1488
1496
|
return i;
|
|
1489
1497
|
};
|
|
1490
1498
|
je.plugin = (t) => {
|
|
1491
|
-
const e =
|
|
1499
|
+
const e = ze(t), n = e ? t : [t], r = n.map((s) => Co(s, je)[0]);
|
|
1492
1500
|
return ul(n), e ? r : r[0];
|
|
1493
1501
|
};
|
|
1494
1502
|
je.valid = (t) => {
|
|
1495
|
-
const e = t && t.elements, n =
|
|
1503
|
+
const e = t && t.elements, n = He(e) && e();
|
|
1496
1504
|
return tn(n) && !!xo(n.target);
|
|
1497
1505
|
};
|
|
1498
1506
|
je.env = () => {
|
|
@@ -1520,8 +1528,8 @@ function Al() {
|
|
|
1520
1528
|
keyboardDrag: !1,
|
|
1521
1529
|
selectedClass: "vf-explorer-selected",
|
|
1522
1530
|
selectorClass: "vf-explorer-selector"
|
|
1523
|
-
}), t.subscribe("DS:start:pre", ({ items: V, event: L, isDragging:
|
|
1524
|
-
if (
|
|
1531
|
+
}), t.subscribe("DS:start:pre", ({ items: V, event: L, isDragging: z }) => {
|
|
1532
|
+
if (z)
|
|
1525
1533
|
t.Interaction._reset(L);
|
|
1526
1534
|
else {
|
|
1527
1535
|
r.value = !1;
|
|
@@ -1545,8 +1553,8 @@ function Al() {
|
|
|
1545
1553
|
}), t.addSelection(
|
|
1546
1554
|
t.getSelectables().filter((L) => V.includes(JSON.parse(L.dataset.item).path))
|
|
1547
1555
|
), S(), T();
|
|
1548
|
-
}),
|
|
1549
|
-
u.value = V, t.subscribe("DS:end", ({ items: L, event:
|
|
1556
|
+
}), H = (V) => {
|
|
1557
|
+
u.value = V, t.subscribe("DS:end", ({ items: L, event: z, isDragging: O }) => {
|
|
1550
1558
|
s.value = L.map((y) => JSON.parse(y.dataset.item)), V(L.map((y) => JSON.parse(y.dataset.item)));
|
|
1551
1559
|
});
|
|
1552
1560
|
}, T = () => {
|
|
@@ -1578,14 +1586,14 @@ function Al() {
|
|
|
1578
1586
|
m.value = V;
|
|
1579
1587
|
},
|
|
1580
1588
|
scroll: (V, L) => {
|
|
1581
|
-
const { scrollOffsetElement:
|
|
1589
|
+
const { scrollOffsetElement: z } = V.elements();
|
|
1582
1590
|
e.value.scrollTo({
|
|
1583
|
-
top:
|
|
1591
|
+
top: z.scrollTop,
|
|
1584
1592
|
left: 0
|
|
1585
1593
|
});
|
|
1586
1594
|
}
|
|
1587
1595
|
}), h(), T(), f.value = new ResizeObserver(T), f.value.observe(e.value), e.value.addEventListener("scroll", $), t.subscribe("DS:scroll", ({ isDragging: V }) => V || $());
|
|
1588
|
-
}),
|
|
1596
|
+
}), Gn(() => {
|
|
1589
1597
|
t && t.stop(), f.value && f.value.disconnect();
|
|
1590
1598
|
}), Ls(() => {
|
|
1591
1599
|
t && t.Area.reset();
|
|
@@ -1601,7 +1609,7 @@ function Al() {
|
|
|
1601
1609
|
clearSelection: a,
|
|
1602
1610
|
refreshSelection: E,
|
|
1603
1611
|
getCount: d,
|
|
1604
|
-
onSelect:
|
|
1612
|
+
onSelect: H
|
|
1605
1613
|
};
|
|
1606
1614
|
}
|
|
1607
1615
|
function Tl(t, e) {
|
|
@@ -1614,33 +1622,33 @@ function Tl(t, e) {
|
|
|
1614
1622
|
files: []
|
|
1615
1623
|
});
|
|
1616
1624
|
function p() {
|
|
1617
|
-
let
|
|
1618
|
-
$.length === 0 && (s.value = []), $.replace(n.value + "://", "").split("/").forEach(function(
|
|
1619
|
-
|
|
1620
|
-
basename:
|
|
1621
|
-
name:
|
|
1622
|
-
path: n.value + "://" +
|
|
1625
|
+
let H = [], T = [], $ = r.value ?? n.value + "://";
|
|
1626
|
+
$.length === 0 && (s.value = []), $.replace(n.value + "://", "").split("/").forEach(function(z) {
|
|
1627
|
+
H.push(z), H.join("/") !== "" && T.push({
|
|
1628
|
+
basename: z,
|
|
1629
|
+
name: z,
|
|
1630
|
+
path: n.value + "://" + H.join("/"),
|
|
1623
1631
|
type: "dir"
|
|
1624
1632
|
});
|
|
1625
1633
|
}), c.value = T;
|
|
1626
1634
|
const [V, L] = h(T, a.value);
|
|
1627
1635
|
i.value = L, s.value = V;
|
|
1628
1636
|
}
|
|
1629
|
-
function f(
|
|
1630
|
-
a.value =
|
|
1637
|
+
function f(H) {
|
|
1638
|
+
a.value = H, p();
|
|
1631
1639
|
}
|
|
1632
|
-
function h(
|
|
1633
|
-
return
|
|
1640
|
+
function h(H, T) {
|
|
1641
|
+
return H.length > T ? [H.slice(-T), H.slice(0, -T)] : [H, []];
|
|
1634
1642
|
}
|
|
1635
|
-
function x(
|
|
1636
|
-
d.value =
|
|
1643
|
+
function x(H = null) {
|
|
1644
|
+
d.value = H ?? !d.value;
|
|
1637
1645
|
}
|
|
1638
1646
|
function S() {
|
|
1639
1647
|
return s.value && s.value.length && !m;
|
|
1640
1648
|
}
|
|
1641
1649
|
const E = rt(() => {
|
|
1642
|
-
var
|
|
1643
|
-
return ((
|
|
1650
|
+
var H;
|
|
1651
|
+
return ((H = s.value[s.value.length - 2]) == null ? void 0 : H.path) ?? n.value + "://";
|
|
1644
1652
|
});
|
|
1645
1653
|
return Se(() => {
|
|
1646
1654
|
}), Me(r, p), Se(p), {
|
|
@@ -1784,22 +1792,22 @@ const Ml = (t, e) => {
|
|
|
1784
1792
|
};
|
|
1785
1793
|
return Se(() => {
|
|
1786
1794
|
r.emitter.on(t.on, d);
|
|
1787
|
-
}),
|
|
1795
|
+
}), Gn(() => {
|
|
1788
1796
|
clearTimeout(i);
|
|
1789
1797
|
}), {
|
|
1790
1798
|
shown: s,
|
|
1791
1799
|
t: c
|
|
1792
1800
|
};
|
|
1793
1801
|
}
|
|
1794
|
-
},
|
|
1795
|
-
function
|
|
1802
|
+
}, Rl = { key: 1 };
|
|
1803
|
+
function Hl(t, e, n, r, s, c) {
|
|
1796
1804
|
return _(), g("div", {
|
|
1797
1805
|
class: le(["vuefinder__action-message", { "vuefinder__action-message--hidden": !r.shown }])
|
|
1798
1806
|
}, [
|
|
1799
|
-
t.$slots.default ? Tt(t.$slots, "default", { key: 0 }) : (_(), g("span",
|
|
1807
|
+
t.$slots.default ? Tt(t.$slots, "default", { key: 0 }) : (_(), g("span", Rl, b(r.t("Saved.")), 1))
|
|
1800
1808
|
], 2);
|
|
1801
1809
|
}
|
|
1802
|
-
const _t = /* @__PURE__ */ Ll(Fl, [["render",
|
|
1810
|
+
const _t = /* @__PURE__ */ Ll(Fl, [["render", Hl]]), Bl = {
|
|
1803
1811
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1804
1812
|
fill: "none",
|
|
1805
1813
|
stroke: "currentColor",
|
|
@@ -1821,7 +1829,7 @@ function Il(t, e) {
|
|
|
1821
1829
|
}, null, -1)
|
|
1822
1830
|
]));
|
|
1823
1831
|
}
|
|
1824
|
-
const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { class: "vuefinder__modal-header__icon-container" },
|
|
1832
|
+
const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { class: "vuefinder__modal-header__icon-container" }, Pl = {
|
|
1825
1833
|
class: "vuefinder__modal-header__title",
|
|
1826
1834
|
id: "modal-title"
|
|
1827
1835
|
}, et = {
|
|
@@ -1841,10 +1849,10 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
1841
1849
|
l("div", ql, [
|
|
1842
1850
|
(_(), W(Fs(t.icon), { class: "vuefinder__modal-header__icon" }))
|
|
1843
1851
|
]),
|
|
1844
|
-
l("h3",
|
|
1852
|
+
l("h3", Pl, b(t.title), 1)
|
|
1845
1853
|
]));
|
|
1846
1854
|
}
|
|
1847
|
-
},
|
|
1855
|
+
}, zl = { class: "vuefinder__about-modal__content" }, jl = { class: "vuefinder__about-modal__main" }, Gl = {
|
|
1848
1856
|
class: "vuefinder__about-modal__tabs",
|
|
1849
1857
|
"aria-label": "Tabs"
|
|
1850
1858
|
}, Kl = ["onClick", "aria-current"], Wl = {
|
|
@@ -1885,7 +1893,7 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
1885
1893
|
}, Ca = { class: "vuefinder__about-modal__setting-label" }, Ea = ["label"], Aa = ["value"], Ta = {
|
|
1886
1894
|
key: 2,
|
|
1887
1895
|
class: "vuefinder__about-modal__tab-content"
|
|
1888
|
-
}, Ma = { class: "vuefinder__about-modal__shortcuts" }, Da = { class: "vuefinder__about-modal__shortcut" }, Va = { class: "vuefinder__about-modal__shortcut" }, Oa = { class: "vuefinder__about-modal__shortcut" }, La = { class: "vuefinder__about-modal__shortcut" }, Fa = { class: "vuefinder__about-modal__shortcut" },
|
|
1896
|
+
}, Ma = { class: "vuefinder__about-modal__shortcuts" }, Da = { class: "vuefinder__about-modal__shortcut" }, Va = { class: "vuefinder__about-modal__shortcut" }, Oa = { class: "vuefinder__about-modal__shortcut" }, La = { class: "vuefinder__about-modal__shortcut" }, Fa = { class: "vuefinder__about-modal__shortcut" }, Ra = { class: "vuefinder__about-modal__shortcut" }, Ha = { class: "vuefinder__about-modal__shortcut" }, Ba = { class: "vuefinder__about-modal__shortcut" }, Ia = { class: "vuefinder__about-modal__shortcut" }, Na = {
|
|
1889
1897
|
key: 3,
|
|
1890
1898
|
class: "vuefinder__about-modal__tab-content"
|
|
1891
1899
|
}, Ua = { class: "vuefinder__about-modal__description" }, To = {
|
|
@@ -1903,8 +1911,8 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
1903
1911
|
{ name: s("Reset"), key: c.RESET }
|
|
1904
1912
|
]), d = D("about"), a = async () => {
|
|
1905
1913
|
r(), location.reload();
|
|
1906
|
-
}, u = (
|
|
1907
|
-
e.theme.set(
|
|
1914
|
+
}, u = (H) => {
|
|
1915
|
+
e.theme.set(H), e.emitter.emit("vf-theme-saved");
|
|
1908
1916
|
}, m = () => {
|
|
1909
1917
|
e.metricUnits = !e.metricUnits, e.filesize = e.metricUnits ? Is : Bs, n("metricUnits", e.metricUnits), e.emitter.emit("vf-metric-units-saved");
|
|
1910
1918
|
}, v = () => {
|
|
@@ -1927,13 +1935,13 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
1927
1935
|
tr: "Turkish (Türkçe)",
|
|
1928
1936
|
zhCN: "Simplified Chinese (简体中文)",
|
|
1929
1937
|
zhTW: "Traditional Chinese (繁體中文)"
|
|
1930
|
-
}).filter(([
|
|
1938
|
+
}).filter(([H]) => Object.keys(h).includes(H))
|
|
1931
1939
|
), E = rt(() => ({
|
|
1932
1940
|
system: s("System"),
|
|
1933
1941
|
light: s("Light"),
|
|
1934
1942
|
dark: s("Dark")
|
|
1935
1943
|
}));
|
|
1936
|
-
return (
|
|
1944
|
+
return (H, T) => (_(), W(Ke, null, {
|
|
1937
1945
|
buttons: Q(() => [
|
|
1938
1946
|
l("button", {
|
|
1939
1947
|
type: "button",
|
|
@@ -1942,8 +1950,8 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
1942
1950
|
}, b(o(s)("Close")), 1)
|
|
1943
1951
|
]),
|
|
1944
1952
|
default: Q(() => [
|
|
1945
|
-
l("div",
|
|
1946
|
-
|
|
1953
|
+
l("div", zl, [
|
|
1954
|
+
P(et, {
|
|
1947
1955
|
icon: o(Nl),
|
|
1948
1956
|
title: "Vuefinder " + o(e).version
|
|
1949
1957
|
}, null, 8, ["icon", "title"]),
|
|
@@ -1979,13 +1987,13 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
1979
1987
|
onClick: m,
|
|
1980
1988
|
class: "vuefinder__about-modal__checkbox"
|
|
1981
1989
|
}, null, 512), [
|
|
1982
|
-
[
|
|
1990
|
+
[Pt, o(e).metricUnits]
|
|
1983
1991
|
])
|
|
1984
1992
|
]),
|
|
1985
1993
|
l("div", sa, [
|
|
1986
1994
|
l("label", oa, [
|
|
1987
1995
|
J(b(o(s)("Use Metric Units")) + " ", 1),
|
|
1988
|
-
|
|
1996
|
+
P(_t, {
|
|
1989
1997
|
class: "ms-3",
|
|
1990
1998
|
on: "vf-metric-units-saved"
|
|
1991
1999
|
}, {
|
|
@@ -2007,13 +2015,13 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2007
2015
|
onClick: v,
|
|
2008
2016
|
class: "vuefinder__about-modal__checkbox"
|
|
2009
2017
|
}, null, 512), [
|
|
2010
|
-
[
|
|
2018
|
+
[Pt, o(e).compactListView]
|
|
2011
2019
|
])
|
|
2012
2020
|
]),
|
|
2013
2021
|
l("div", aa, [
|
|
2014
2022
|
l("label", ia, [
|
|
2015
2023
|
J(b(o(s)("Compact list view")) + " ", 1),
|
|
2016
|
-
|
|
2024
|
+
P(_t, {
|
|
2017
2025
|
class: "ms-3",
|
|
2018
2026
|
on: "vf-compact-view-saved"
|
|
2019
2027
|
}, {
|
|
@@ -2035,13 +2043,13 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2035
2043
|
onClick: f,
|
|
2036
2044
|
class: "vuefinder__about-modal__checkbox"
|
|
2037
2045
|
}, null, 512), [
|
|
2038
|
-
[
|
|
2046
|
+
[Pt, o(e).persist]
|
|
2039
2047
|
])
|
|
2040
2048
|
]),
|
|
2041
2049
|
l("div", ua, [
|
|
2042
2050
|
l("label", va, [
|
|
2043
2051
|
J(b(o(s)("Persist path on reload")) + " ", 1),
|
|
2044
|
-
|
|
2052
|
+
P(_t, {
|
|
2045
2053
|
class: "ms-3",
|
|
2046
2054
|
on: "vf-persist-path-saved"
|
|
2047
2055
|
}, {
|
|
@@ -2063,13 +2071,13 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2063
2071
|
onClick: p,
|
|
2064
2072
|
class: "vuefinder__about-modal__checkbox"
|
|
2065
2073
|
}, null, 512), [
|
|
2066
|
-
[
|
|
2074
|
+
[Pt, o(e).showThumbnails]
|
|
2067
2075
|
])
|
|
2068
2076
|
]),
|
|
2069
2077
|
l("div", ma, [
|
|
2070
2078
|
l("label", pa, [
|
|
2071
2079
|
J(b(o(s)("Show thumbnails")) + " ", 1),
|
|
2072
|
-
|
|
2080
|
+
P(_t, {
|
|
2073
2081
|
class: "ms-3",
|
|
2074
2082
|
on: "vf-show-thumbnails-saved"
|
|
2075
2083
|
}, {
|
|
@@ -2098,9 +2106,9 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2098
2106
|
(_(!0), g(ge, null, xe(E.value, ($, V) => (_(), g("option", { value: V }, b($), 9, ka))), 256))
|
|
2099
2107
|
], 8, ya)
|
|
2100
2108
|
], 544), [
|
|
2101
|
-
[
|
|
2109
|
+
[An, o(e).theme.value]
|
|
2102
2110
|
]),
|
|
2103
|
-
|
|
2111
|
+
P(_t, {
|
|
2104
2112
|
class: "ms-3",
|
|
2105
2113
|
on: "vf-theme-saved"
|
|
2106
2114
|
}, {
|
|
@@ -2127,9 +2135,9 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2127
2135
|
(_(!0), g(ge, null, xe(o(S), ($, V) => (_(), g("option", { value: V }, b($), 9, Aa))), 256))
|
|
2128
2136
|
], 8, Ea)
|
|
2129
2137
|
], 512), [
|
|
2130
|
-
[
|
|
2138
|
+
[An, o(e).i18n.locale]
|
|
2131
2139
|
]),
|
|
2132
|
-
|
|
2140
|
+
P(_t, {
|
|
2133
2141
|
class: "ms-3",
|
|
2134
2142
|
on: "vf-language-saved"
|
|
2135
2143
|
}, {
|
|
@@ -2171,7 +2179,7 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2171
2179
|
l("kbd", null, "A")
|
|
2172
2180
|
], -1))
|
|
2173
2181
|
]),
|
|
2174
|
-
l("div",
|
|
2182
|
+
l("div", Ra, [
|
|
2175
2183
|
J(b(o(s)("Search")) + " ", 1),
|
|
2176
2184
|
T[13] || (T[13] = l("div", null, [
|
|
2177
2185
|
l("kbd", null, "Ctrl"),
|
|
@@ -2179,7 +2187,7 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2179
2187
|
l("kbd", null, "F")
|
|
2180
2188
|
], -1))
|
|
2181
2189
|
]),
|
|
2182
|
-
l("div",
|
|
2190
|
+
l("div", Ha, [
|
|
2183
2191
|
J(b(o(s)("Toggle Sidebar")) + " ", 1),
|
|
2184
2192
|
T[14] || (T[14] = l("div", null, [
|
|
2185
2193
|
l("kbd", null, "Ctrl"),
|
|
@@ -2266,19 +2274,19 @@ const Nl = { render: Il }, Ul = { class: "vuefinder__modal-header" }, ql = { cla
|
|
|
2266
2274
|
], 2))
|
|
2267
2275
|
]));
|
|
2268
2276
|
}
|
|
2269
|
-
},
|
|
2277
|
+
}, Pa = {
|
|
2270
2278
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2271
2279
|
fill: "none",
|
|
2272
2280
|
"stroke-width": "1.5",
|
|
2273
2281
|
class: "h-6 w-6 md:h-8 md:w-8 m-auto",
|
|
2274
2282
|
viewBox: "0 0 24 24"
|
|
2275
2283
|
};
|
|
2276
|
-
function
|
|
2277
|
-
return _(), g("svg",
|
|
2284
|
+
function za(t, e) {
|
|
2285
|
+
return _(), g("svg", Pa, e[0] || (e[0] = [
|
|
2278
2286
|
l("path", { d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21q.512.078 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48 48 0 0 0-3.478-.397m-12 .562q.51-.089 1.022-.165m0 0a48 48 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a52 52 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a49 49 0 0 0-7.5 0" }, null, -1)
|
|
2279
2287
|
]));
|
|
2280
2288
|
}
|
|
2281
|
-
const Mo = { render:
|
|
2289
|
+
const Mo = { render: za }, ja = { class: "vuefinder__delete-modal__content" }, Ga = { class: "vuefinder__delete-modal__form" }, Ka = { class: "vuefinder__delete-modal__description" }, Wa = { class: "vuefinder__delete-modal__files vf-scrollbar" }, Ya = { class: "vuefinder__delete-modal__file" }, Xa = {
|
|
2282
2290
|
key: 0,
|
|
2283
2291
|
class: "vuefinder__delete-modal__icon vuefinder__delete-modal__icon--dir",
|
|
2284
2292
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2294,7 +2302,7 @@ const Mo = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, G
|
|
|
2294
2302
|
viewBox: "0 0 24 24",
|
|
2295
2303
|
stroke: "currentColor",
|
|
2296
2304
|
"stroke-width": "1"
|
|
2297
|
-
}, Za = { class: "vuefinder__delete-modal__file-name" }, Qa = { class: "vuefinder__delete-modal__warning" },
|
|
2305
|
+
}, Za = { class: "vuefinder__delete-modal__file-name" }, Qa = { class: "vuefinder__delete-modal__warning" }, as = {
|
|
2298
2306
|
__name: "ModalDelete",
|
|
2299
2307
|
setup(t) {
|
|
2300
2308
|
const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items), s = D(""), c = () => {
|
|
@@ -2332,7 +2340,7 @@ const Mo = { render: Pa }, ja = { class: "vuefinder__delete-modal__content" }, G
|
|
|
2332
2340
|
]),
|
|
2333
2341
|
default: Q(() => [
|
|
2334
2342
|
l("div", null, [
|
|
2335
|
-
|
|
2343
|
+
P(et, {
|
|
2336
2344
|
icon: o(Mo),
|
|
2337
2345
|
title: o(n)("Delete files")
|
|
2338
2346
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2402,7 +2410,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s
|
|
|
2402
2410
|
viewBox: "0 0 24 24",
|
|
2403
2411
|
stroke: "currentColor",
|
|
2404
2412
|
"stroke-width": "1"
|
|
2405
|
-
}, ai = { class: "vuefinder__rename-modal__item-name" },
|
|
2413
|
+
}, ai = { class: "vuefinder__rename-modal__item-name" }, is = {
|
|
2406
2414
|
__name: "ModalRename",
|
|
2407
2415
|
setup(t) {
|
|
2408
2416
|
const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items[0]), s = D(e.modal.data.items[0].basename), c = D(""), i = () => {
|
|
@@ -2440,7 +2448,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s
|
|
|
2440
2448
|
]),
|
|
2441
2449
|
default: Q(() => [
|
|
2442
2450
|
l("div", null, [
|
|
2443
|
-
|
|
2451
|
+
P(et, {
|
|
2444
2452
|
icon: o(Do),
|
|
2445
2453
|
title: o(n)("Rename")
|
|
2446
2454
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2501,7 +2509,7 @@ const Do = { render: ti }, ni = { class: "vuefinder__rename-modal__content" }, s
|
|
|
2501
2509
|
};
|
|
2502
2510
|
function ii(t) {
|
|
2503
2511
|
const e = (n) => {
|
|
2504
|
-
n.code === Ye.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (n.code === Ye.F2 && t.features.includes(de.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(
|
|
2512
|
+
n.code === Ye.ESCAPE && (t.modal.close(), t.root.focus()), !t.modal.visible && (t.fs.searchMode || (n.code === Ye.F2 && t.features.includes(de.RENAME) && (t.dragSelect.getCount() !== 1 || t.modal.open(is, { items: t.dragSelect.getSelected() })), n.code === Ye.F5 && t.emitter.emit("vf-fetch", { params: { q: "index", adapter: t.fs.adapter, path: t.fs.data.dirname } }), n.code === Ye.DELETE && (!t.dragSelect.getCount() || t.modal.open(as, { items: t.dragSelect.getSelected() })), n.metaKey && n.code === Ye.BACKSLASH && t.modal.open(To), n.metaKey && n.code === Ye.KEY_F && t.features.includes(de.SEARCH) && (t.fs.searchMode = !0, n.preventDefault()), n.metaKey && n.code === Ye.KEY_E && (t.showTreeView = !t.showTreeView, t.storage.setStore("show-tree-view", t.showTreeView)), n.metaKey && n.code === Ye.ENTER && (t.fullScreen = !t.fullScreen, t.root.focus()), n.metaKey && n.code === Ye.KEY_A && (t.dragSelect.selectAll(), n.preventDefault())));
|
|
2505
2513
|
};
|
|
2506
2514
|
Se(() => {
|
|
2507
2515
|
t.root.addEventListener("keydown", e);
|
|
@@ -2558,7 +2566,7 @@ const Vo = { render: di }, ui = { class: "vuefinder__new-folder-modal__content"
|
|
|
2558
2566
|
]),
|
|
2559
2567
|
default: Q(() => [
|
|
2560
2568
|
l("div", null, [
|
|
2561
|
-
|
|
2569
|
+
P(et, {
|
|
2562
2570
|
icon: o(Vo),
|
|
2563
2571
|
title: o(n)("New Folder")
|
|
2564
2572
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2642,7 +2650,7 @@ const Lo = { render: pi }, hi = { class: "vuefinder__new-file-modal__content" },
|
|
|
2642
2650
|
]),
|
|
2643
2651
|
default: Q(() => [
|
|
2644
2652
|
l("div", null, [
|
|
2645
|
-
|
|
2653
|
+
P(et, {
|
|
2646
2654
|
icon: o(Lo),
|
|
2647
2655
|
title: o(n)("New File")
|
|
2648
2656
|
}, null, 8, ["icon", "title"]),
|
|
@@ -2701,10 +2709,10 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2701
2709
|
}, Ei = ["disabled"], Ai = ["disabled"], Ti = { class: "vuefinder__upload-modal__file-list vf-scrollbar" }, Mi = ["textContent"], Di = { class: "vuefinder__upload-modal__file-info" }, Vi = { class: "vuefinder__upload-modal__file-name hidden md:block" }, Oi = { class: "vuefinder__upload-modal__file-name md:hidden" }, Li = {
|
|
2702
2710
|
key: 0,
|
|
2703
2711
|
class: "ml-auto"
|
|
2704
|
-
}, Fi = ["title", "disabled", "onClick"],
|
|
2712
|
+
}, Fi = ["title", "disabled", "onClick"], Ri = {
|
|
2705
2713
|
key: 0,
|
|
2706
2714
|
class: "py-2"
|
|
2707
|
-
},
|
|
2715
|
+
}, Hi = ["disabled"], Bi = {
|
|
2708
2716
|
__name: "ModalUpload",
|
|
2709
2717
|
setup(t) {
|
|
2710
2718
|
const e = re("ServiceContainer"), { t: n } = e.i18n, r = n("uppy"), s = {
|
|
@@ -2718,7 +2726,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2718
2726
|
function E(A) {
|
|
2719
2727
|
return p.value.findIndex((B) => B.id === A);
|
|
2720
2728
|
}
|
|
2721
|
-
function
|
|
2729
|
+
function H(A, B = null) {
|
|
2722
2730
|
B = B ?? (A.webkitRelativePath || A.name), S.addFile({
|
|
2723
2731
|
name: B,
|
|
2724
2732
|
type: A.type,
|
|
@@ -2763,7 +2771,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2763
2771
|
f.value = "", S.retryAll(), S.upload();
|
|
2764
2772
|
}
|
|
2765
2773
|
}
|
|
2766
|
-
function
|
|
2774
|
+
function z() {
|
|
2767
2775
|
S.cancelAll({ reason: "user" }), p.value.forEach((A) => {
|
|
2768
2776
|
A.status !== s.DONE && (A.status = s.CANCELED, A.statusName = n("Canceled"));
|
|
2769
2777
|
}), h.value = !1;
|
|
@@ -2778,7 +2786,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2778
2786
|
p.value.forEach((k) => {
|
|
2779
2787
|
k.status !== s.DONE && B.push(k);
|
|
2780
2788
|
}), p.value = [], B.forEach((k) => {
|
|
2781
|
-
|
|
2789
|
+
H(k.originalFile, k.name);
|
|
2782
2790
|
});
|
|
2783
2791
|
return;
|
|
2784
2792
|
}
|
|
@@ -2883,18 +2891,18 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2883
2891
|
[...k.dataTransfer.items].forEach((U) => {
|
|
2884
2892
|
U.kind === "file" && A((ee, se) => {
|
|
2885
2893
|
const ne = N.exec(ee.fullPath);
|
|
2886
|
-
|
|
2894
|
+
H(se, ne[1]);
|
|
2887
2895
|
}, U.webkitGetAsEntry());
|
|
2888
2896
|
});
|
|
2889
2897
|
});
|
|
2890
2898
|
const B = ({ target: k }) => {
|
|
2891
2899
|
const N = k.files;
|
|
2892
2900
|
for (const U of N)
|
|
2893
|
-
|
|
2901
|
+
H(U);
|
|
2894
2902
|
k.value = "";
|
|
2895
2903
|
};
|
|
2896
2904
|
d.value.addEventListener("change", B), a.value.addEventListener("change", B);
|
|
2897
|
-
}),
|
|
2905
|
+
}), Rs(() => {
|
|
2898
2906
|
S == null || S.close({ reason: "unmount" });
|
|
2899
2907
|
}), (A, B) => (_(), W(Ke, null, {
|
|
2900
2908
|
buttons: Q(() => [
|
|
@@ -2903,12 +2911,12 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2903
2911
|
class: "vf-btn vf-btn-primary",
|
|
2904
2912
|
disabled: h.value,
|
|
2905
2913
|
onClick: Ze(L, ["prevent"])
|
|
2906
|
-
}, b(o(n)("Upload")), 9,
|
|
2914
|
+
}, b(o(n)("Upload")), 9, Hi),
|
|
2907
2915
|
h.value ? (_(), g("button", {
|
|
2908
2916
|
key: 0,
|
|
2909
2917
|
type: "button",
|
|
2910
2918
|
class: "vf-btn vf-btn-secondary",
|
|
2911
|
-
onClick: Ze(
|
|
2919
|
+
onClick: Ze(z, ["prevent"])
|
|
2912
2920
|
}, b(o(n)("Cancel")), 1)) : (_(), g("button", {
|
|
2913
2921
|
key: 1,
|
|
2914
2922
|
type: "button",
|
|
@@ -2918,7 +2926,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
2918
2926
|
]),
|
|
2919
2927
|
default: Q(() => [
|
|
2920
2928
|
l("div", null, [
|
|
2921
|
-
|
|
2929
|
+
P(et, {
|
|
2922
2930
|
icon: o(Fo),
|
|
2923
2931
|
title: o(n)("Upload Files")
|
|
2924
2932
|
}, null, 8, ["icon", "title"]),
|
|
@@ -3007,7 +3015,7 @@ const Fo = { render: xi }, Si = { class: "vuefinder__upload-modal__content" }, $
|
|
|
3007
3015
|
], -1)
|
|
3008
3016
|
]), 10, Fi)
|
|
3009
3017
|
]))), 128)),
|
|
3010
|
-
p.value.length ? q("", !0) : (_(), g("div",
|
|
3018
|
+
p.value.length ? q("", !0) : (_(), g("div", Ri, b(o(n)("No files selected!")), 1))
|
|
3011
3019
|
]),
|
|
3012
3020
|
f.value.length ? (_(), W(We, {
|
|
3013
3021
|
key: 0,
|
|
@@ -3052,7 +3060,7 @@ function Ni(t, e) {
|
|
|
3052
3060
|
l("path", { d: "m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.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.125" }, null, -1)
|
|
3053
3061
|
]));
|
|
3054
3062
|
}
|
|
3055
|
-
const
|
|
3063
|
+
const Ro = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" }, qi = { class: "vuefinder__unarchive-modal__items" }, Pi = { class: "vuefinder__unarchive-modal__item" }, zi = {
|
|
3056
3064
|
key: 0,
|
|
3057
3065
|
class: "vuefinder__unarchive-modal__icon vuefinder__unarchive-modal__icon--dir",
|
|
3058
3066
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3068,7 +3076,7 @@ const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" }
|
|
|
3068
3076
|
viewBox: "0 0 24 24",
|
|
3069
3077
|
stroke: "currentColor",
|
|
3070
3078
|
"stroke-width": "1"
|
|
3071
|
-
}, Gi = { class: "vuefinder__unarchive-modal__item-name" }, Ki = { class: "vuefinder__unarchive-modal__info" },
|
|
3079
|
+
}, Gi = { class: "vuefinder__unarchive-modal__item-name" }, Ki = { class: "vuefinder__unarchive-modal__info" }, Ho = {
|
|
3072
3080
|
__name: "ModalUnarchive",
|
|
3073
3081
|
setup(t) {
|
|
3074
3082
|
const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items[0]), s = D(""), c = D([]), i = () => {
|
|
@@ -3105,14 +3113,14 @@ const Ho = { render: Ni }, Ui = { class: "vuefinder__unarchive-modal__content" }
|
|
|
3105
3113
|
]),
|
|
3106
3114
|
default: Q(() => [
|
|
3107
3115
|
l("div", null, [
|
|
3108
|
-
|
|
3109
|
-
icon: o(
|
|
3116
|
+
P(et, {
|
|
3117
|
+
icon: o(Ro),
|
|
3110
3118
|
title: o(n)("Unarchive")
|
|
3111
3119
|
}, null, 8, ["icon", "title"]),
|
|
3112
3120
|
l("div", Ui, [
|
|
3113
3121
|
l("div", qi, [
|
|
3114
|
-
(_(!0), g(ge, null, xe(c.value, (u) => (_(), g("p",
|
|
3115
|
-
u.type === "dir" ? (_(), g("svg",
|
|
3122
|
+
(_(!0), g(ge, null, xe(c.value, (u) => (_(), g("p", Pi, [
|
|
3123
|
+
u.type === "dir" ? (_(), g("svg", zi, a[2] || (a[2] = [
|
|
3116
3124
|
l("path", {
|
|
3117
3125
|
"stroke-linecap": "round",
|
|
3118
3126
|
"stroke-linejoin": "round",
|
|
@@ -3211,7 +3219,7 @@ const Bo = { render: Yi }, Xi = { class: "vuefinder__archive-modal__content" },
|
|
|
3211
3219
|
]),
|
|
3212
3220
|
default: Q(() => [
|
|
3213
3221
|
l("div", null, [
|
|
3214
|
-
|
|
3222
|
+
P(et, {
|
|
3215
3223
|
icon: o(Bo),
|
|
3216
3224
|
title: o(n)("Archive the files")
|
|
3217
3225
|
}, null, 8, ["icon", "title"]),
|
|
@@ -3284,7 +3292,7 @@ function rc(t, e) {
|
|
|
3284
3292
|
}, null, -1)
|
|
3285
3293
|
]));
|
|
3286
3294
|
}
|
|
3287
|
-
const
|
|
3295
|
+
const cs = { render: rc }, lc = {
|
|
3288
3296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3289
3297
|
fill: "none",
|
|
3290
3298
|
"stroke-width": "1.5",
|
|
@@ -3360,7 +3368,7 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3360
3368
|
J(b(o(r)("Search results for")) + " ", 1),
|
|
3361
3369
|
l("span", Tc, b(c.value), 1)
|
|
3362
3370
|
]),
|
|
3363
|
-
o(e).loadingIndicator === "circular" && o(e).fs.loading ? (_(), W(o(
|
|
3371
|
+
o(e).loadingIndicator === "circular" && o(e).fs.loading ? (_(), W(o(cs), { key: 0 })) : q("", !0)
|
|
3364
3372
|
])) : (_(), g("div", bc, [
|
|
3365
3373
|
o(e).features.includes(o(de).NEW_FOLDER) ? (_(), g("div", {
|
|
3366
3374
|
key: 0,
|
|
@@ -3368,7 +3376,7 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3368
3376
|
title: o(r)("New Folder"),
|
|
3369
3377
|
onClick: u[0] || (u[0] = (m) => o(e).modal.open(Oo, { items: o(s).getSelected() }))
|
|
3370
3378
|
}, [
|
|
3371
|
-
|
|
3379
|
+
P(o(Vo))
|
|
3372
3380
|
], 8, wc)) : q("", !0),
|
|
3373
3381
|
o(e).features.includes(o(de).NEW_FILE) ? (_(), g("div", {
|
|
3374
3382
|
key: 1,
|
|
@@ -3376,15 +3384,15 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3376
3384
|
title: o(r)("New File"),
|
|
3377
3385
|
onClick: u[1] || (u[1] = (m) => o(e).modal.open(yi, { items: o(s).getSelected() }))
|
|
3378
3386
|
}, [
|
|
3379
|
-
|
|
3387
|
+
P(o(Lo))
|
|
3380
3388
|
], 8, yc)) : q("", !0),
|
|
3381
3389
|
o(e).features.includes(o(de).RENAME) ? (_(), g("div", {
|
|
3382
3390
|
key: 2,
|
|
3383
3391
|
class: "mx-1.5",
|
|
3384
3392
|
title: o(r)("Rename"),
|
|
3385
|
-
onClick: u[2] || (u[2] = (m) => o(s).getCount() !== 1 || o(e).modal.open(
|
|
3393
|
+
onClick: u[2] || (u[2] = (m) => o(s).getCount() !== 1 || o(e).modal.open(is, { items: o(s).getSelected() }))
|
|
3386
3394
|
}, [
|
|
3387
|
-
|
|
3395
|
+
P(o(Do), {
|
|
3388
3396
|
class: le(o(s).getCount() === 1 ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3389
3397
|
}, null, 8, ["class"])
|
|
3390
3398
|
], 8, kc)) : q("", !0),
|
|
@@ -3392,9 +3400,9 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3392
3400
|
key: 3,
|
|
3393
3401
|
class: "mx-1.5",
|
|
3394
3402
|
title: o(r)("Delete"),
|
|
3395
|
-
onClick: u[3] || (u[3] = (m) => !o(s).getCount() || o(e).modal.open(
|
|
3403
|
+
onClick: u[3] || (u[3] = (m) => !o(s).getCount() || o(e).modal.open(as, { items: o(s).getSelected() }))
|
|
3396
3404
|
}, [
|
|
3397
|
-
|
|
3405
|
+
P(o(Mo), {
|
|
3398
3406
|
class: le(o(s).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3399
3407
|
}, null, 8, ["class"])
|
|
3400
3408
|
], 8, xc)) : q("", !0),
|
|
@@ -3404,15 +3412,15 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3404
3412
|
title: o(r)("Upload"),
|
|
3405
3413
|
onClick: u[4] || (u[4] = (m) => o(e).modal.open(Bi, { items: o(s).getSelected() }))
|
|
3406
3414
|
}, [
|
|
3407
|
-
|
|
3415
|
+
P(o(Fo))
|
|
3408
3416
|
], 8, Sc)) : q("", !0),
|
|
3409
3417
|
o(e).features.includes(o(de).UNARCHIVE) && o(s).getCount() === 1 && o(s).getSelected()[0].mime_type === "application/zip" ? (_(), g("div", {
|
|
3410
3418
|
key: 5,
|
|
3411
3419
|
class: "mx-1.5",
|
|
3412
3420
|
title: o(r)("Unarchive"),
|
|
3413
|
-
onClick: u[5] || (u[5] = (m) => !o(s).getCount() || o(e).modal.open(
|
|
3421
|
+
onClick: u[5] || (u[5] = (m) => !o(s).getCount() || o(e).modal.open(Ho, { items: o(s).getSelected() }))
|
|
3414
3422
|
}, [
|
|
3415
|
-
|
|
3423
|
+
P(o(Ro), {
|
|
3416
3424
|
class: le(o(s).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3417
3425
|
}, null, 8, ["class"])
|
|
3418
3426
|
], 8, $c)) : q("", !0),
|
|
@@ -3422,7 +3430,7 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3422
3430
|
title: o(r)("Archive"),
|
|
3423
3431
|
onClick: u[6] || (u[6] = (m) => !o(s).getCount() || o(e).modal.open(Io, { items: o(s).getSelected() }))
|
|
3424
3432
|
}, [
|
|
3425
|
-
|
|
3433
|
+
P(o(Bo), {
|
|
3426
3434
|
class: le(o(s).getCount() ? "vf-toolbar-icon" : "vf-toolbar-icon-disabled")
|
|
3427
3435
|
}, null, 8, ["class"])
|
|
3428
3436
|
], 8, Cc)) : q("", !0)
|
|
@@ -3483,7 +3491,7 @@ const hc = { render: pc }, gc = { class: "vuefinder__toolbar" }, bc = {
|
|
|
3483
3491
|
class: "h-6 w-6 stroke-blue-600 dark:stroke-blue-100",
|
|
3484
3492
|
viewBox: "0 0 24 24"
|
|
3485
3493
|
};
|
|
3486
|
-
function
|
|
3494
|
+
function Rc(t, e) {
|
|
3487
3495
|
return _(), g("svg", Fc, e[0] || (e[0] = [
|
|
3488
3496
|
l("path", {
|
|
3489
3497
|
"stroke-linecap": "round",
|
|
@@ -3492,7 +3500,7 @@ function Hc(t, e) {
|
|
|
3492
3500
|
}, null, -1)
|
|
3493
3501
|
]));
|
|
3494
3502
|
}
|
|
3495
|
-
const
|
|
3503
|
+
const Hc = { render: Rc }, Bc = { class: "vuefinder__move-modal__content" }, Ic = { class: "vuefinder__move-modal__description" }, Nc = { class: "vuefinder__move-modal__files vf-scrollbar" }, Uc = { class: "vuefinder__move-modal__file" }, qc = {
|
|
3496
3504
|
key: 0,
|
|
3497
3505
|
class: "vuefinder__move-modal__icon vuefinder__move-modal__icon--dir",
|
|
3498
3506
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3500,7 +3508,7 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic
|
|
|
3500
3508
|
viewBox: "0 0 24 24",
|
|
3501
3509
|
stroke: "currentColor",
|
|
3502
3510
|
"stroke-width": "1"
|
|
3503
|
-
},
|
|
3511
|
+
}, Pc = {
|
|
3504
3512
|
key: 1,
|
|
3505
3513
|
class: "vuefinder__move-modal__icon",
|
|
3506
3514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3508,7 +3516,7 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic
|
|
|
3508
3516
|
viewBox: "0 0 24 24",
|
|
3509
3517
|
stroke: "currentColor",
|
|
3510
3518
|
"stroke-width": "1"
|
|
3511
|
-
},
|
|
3519
|
+
}, zc = { class: "vuefinder__move-modal__file-name" }, jc = { class: "vuefinder__move-modal__target-title" }, Gc = { class: "vuefinder__move-modal__target-directory" }, Kc = { class: "vuefinder__move-modal__target-path" }, Wc = { class: "vuefinder__move-modal__selected-items" }, jn = {
|
|
3512
3520
|
__name: "ModalMove",
|
|
3513
3521
|
setup(t) {
|
|
3514
3522
|
const e = re("ServiceContainer"), { t: n } = e.i18n, r = D(e.modal.data.items.from), s = D(""), c = () => {
|
|
@@ -3547,8 +3555,8 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic
|
|
|
3547
3555
|
]),
|
|
3548
3556
|
default: Q(() => [
|
|
3549
3557
|
l("div", null, [
|
|
3550
|
-
|
|
3551
|
-
icon: o(
|
|
3558
|
+
P(et, {
|
|
3559
|
+
icon: o(Hc),
|
|
3552
3560
|
title: o(n)("Move files")
|
|
3553
3561
|
}, null, 8, ["icon", "title"]),
|
|
3554
3562
|
l("div", Bc, [
|
|
@@ -3562,7 +3570,7 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic
|
|
|
3562
3570
|
"stroke-linejoin": "round",
|
|
3563
3571
|
d: "M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"
|
|
3564
3572
|
}, null, -1)
|
|
3565
|
-
]))) : (_(), g("svg",
|
|
3573
|
+
]))) : (_(), g("svg", Pc, d[3] || (d[3] = [
|
|
3566
3574
|
l("path", {
|
|
3567
3575
|
"stroke-linecap": "round",
|
|
3568
3576
|
"stroke-linejoin": "round",
|
|
@@ -3570,7 +3578,7 @@ const Rc = { render: Hc }, Bc = { class: "vuefinder__move-modal__content" }, Ic
|
|
|
3570
3578
|
}, null, -1)
|
|
3571
3579
|
])))
|
|
3572
3580
|
]),
|
|
3573
|
-
l("div",
|
|
3581
|
+
l("div", zc, b(a.path), 1)
|
|
3574
3582
|
]))), 256))
|
|
3575
3583
|
]),
|
|
3576
3584
|
l("h4", jc, b(o(n)("Target Directory")), 1),
|
|
@@ -3741,7 +3749,7 @@ function bd(t, e) {
|
|
|
3741
3749
|
const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, kd = ["title"], xd = ["title"], Sd = ["title"], $d = ["title"], Cd = { class: "vuefinder__breadcrumb__list" }, Ed = {
|
|
3742
3750
|
key: 0,
|
|
3743
3751
|
class: "vuefinder__breadcrumb__hidden-list"
|
|
3744
|
-
}, Ad = { class: "relative" }, Td = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], Md = { class: "vuefinder__breadcrumb__search-mode" }, Dd = ["placeholder"], Vd = { class: "vuefinder__breadcrumb__hidden-dropdown" }, Od = ["onDrop", "onClick"], Ld = { class: "vuefinder__breadcrumb__hidden-item-content" }, Fd = { class: "vuefinder__breadcrumb__hidden-item-text" },
|
|
3752
|
+
}, Ad = { class: "relative" }, Td = ["onDragover", "onDragleave", "onDrop", "title", "onClick"], Md = { class: "vuefinder__breadcrumb__search-mode" }, Dd = ["placeholder"], Vd = { class: "vuefinder__breadcrumb__hidden-dropdown" }, Od = ["onDrop", "onClick"], Ld = { class: "vuefinder__breadcrumb__hidden-item-content" }, Fd = { class: "vuefinder__breadcrumb__hidden-item-text" }, Rd = {
|
|
3745
3753
|
__name: "Breadcrumb",
|
|
3746
3754
|
setup(t) {
|
|
3747
3755
|
const e = re("ServiceContainer"), { t: n } = e.i18n, r = e.dragSelect, { setStore: s } = e.storage, c = D(null), i = Vs(0, 100);
|
|
@@ -3760,7 +3768,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3760
3768
|
let a = D(null);
|
|
3761
3769
|
Se(() => {
|
|
3762
3770
|
a.value = new ResizeObserver(d), a.value.observe(c.value);
|
|
3763
|
-
}),
|
|
3771
|
+
}), Gn(() => {
|
|
3764
3772
|
a.value.disconnect();
|
|
3765
3773
|
});
|
|
3766
3774
|
const u = (O, y = null) => {
|
|
@@ -3770,7 +3778,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3770
3778
|
alert("Moving items between different storages is not supported yet.");
|
|
3771
3779
|
return;
|
|
3772
3780
|
}
|
|
3773
|
-
e.modal.open(
|
|
3781
|
+
e.modal.open(jn, {
|
|
3774
3782
|
items: {
|
|
3775
3783
|
from: w,
|
|
3776
3784
|
to: e.fs.hiddenBreadcrumbs[y] ?? { path: e.fs.adapter + "://" }
|
|
@@ -3783,7 +3791,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3783
3791
|
alert("Moving items between different storages is not supported yet.");
|
|
3784
3792
|
return;
|
|
3785
3793
|
}
|
|
3786
|
-
e.modal.open(
|
|
3794
|
+
e.modal.open(jn, {
|
|
3787
3795
|
items: {
|
|
3788
3796
|
from: w,
|
|
3789
3797
|
to: e.fs.breadcrumbs[y] ?? { path: e.fs.adapter + "://" }
|
|
@@ -3816,7 +3824,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3816
3824
|
beforeUnmount(O, y, w, C) {
|
|
3817
3825
|
document.body.removeEventListener("click", O.clickOutsideEvent);
|
|
3818
3826
|
}
|
|
3819
|
-
},
|
|
3827
|
+
}, H = () => {
|
|
3820
3828
|
e.showTreeView = !e.showTreeView;
|
|
3821
3829
|
};
|
|
3822
3830
|
Me(() => e.showTreeView, (O, y) => {
|
|
@@ -3836,22 +3844,22 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3836
3844
|
e.emitter.on("vf-search-exit", () => {
|
|
3837
3845
|
L();
|
|
3838
3846
|
});
|
|
3839
|
-
const
|
|
3847
|
+
const z = () => {
|
|
3840
3848
|
V.value === "" && L();
|
|
3841
3849
|
};
|
|
3842
3850
|
return (O, y) => (_(), g("div", yd, [
|
|
3843
3851
|
l("span", {
|
|
3844
3852
|
title: o(n)("Toggle Tree View")
|
|
3845
3853
|
}, [
|
|
3846
|
-
|
|
3847
|
-
onClick:
|
|
3854
|
+
P(o(hd), {
|
|
3855
|
+
onClick: H,
|
|
3848
3856
|
class: le(["vuefinder__breadcrumb__toggle-tree", o(e).showTreeView ? "vuefinder__breadcrumb__toggle-tree--active" : ""])
|
|
3849
3857
|
}, null, 8, ["class"])
|
|
3850
3858
|
], 8, kd),
|
|
3851
3859
|
l("span", {
|
|
3852
3860
|
title: o(n)("Go up a directory")
|
|
3853
3861
|
}, [
|
|
3854
|
-
|
|
3862
|
+
P(o(ed), {
|
|
3855
3863
|
onDragover: y[0] || (y[0] = (w) => v(w)),
|
|
3856
3864
|
onDragleave: y[1] || (y[1] = (w) => p(w)),
|
|
3857
3865
|
onDrop: y[2] || (y[2] = (w) => m(w)),
|
|
@@ -3863,21 +3871,21 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3863
3871
|
key: 1,
|
|
3864
3872
|
title: o(n)("Cancel")
|
|
3865
3873
|
}, [
|
|
3866
|
-
|
|
3874
|
+
P(o(sd), {
|
|
3867
3875
|
onClick: y[3] || (y[3] = (w) => o(e).emitter.emit("vf-fetch-abort"))
|
|
3868
3876
|
})
|
|
3869
3877
|
], 8, $d)) : (_(), g("span", {
|
|
3870
3878
|
key: 0,
|
|
3871
3879
|
title: o(n)("Refresh")
|
|
3872
3880
|
}, [
|
|
3873
|
-
|
|
3881
|
+
P(o(Jc), { onClick: f })
|
|
3874
3882
|
], 8, Sd)),
|
|
3875
3883
|
ue(l("div", {
|
|
3876
3884
|
onClick: Ze($, ["self"]),
|
|
3877
3885
|
class: "group vuefinder__breadcrumb__search-container"
|
|
3878
3886
|
}, [
|
|
3879
3887
|
l("div", null, [
|
|
3880
|
-
|
|
3888
|
+
P(o(ld), {
|
|
3881
3889
|
onDragover: y[4] || (y[4] = (w) => v(w)),
|
|
3882
3890
|
onDragleave: y[5] || (y[5] = (w) => p(w)),
|
|
3883
3891
|
onDrop: y[6] || (y[6] = (w) => m(w, -1)),
|
|
@@ -3893,7 +3901,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3893
3901
|
onClick: y[9] || (y[9] = (w) => o(e).fs.toggleHiddenBreadcrumbs()),
|
|
3894
3902
|
class: "vuefinder__breadcrumb__hidden-toggle"
|
|
3895
3903
|
}, [
|
|
3896
|
-
|
|
3904
|
+
P(o(wd), { class: "vuefinder__breadcrumb__hidden-toggle-icon" })
|
|
3897
3905
|
], 32)
|
|
3898
3906
|
])
|
|
3899
3907
|
])), [
|
|
@@ -3918,19 +3926,19 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3918
3926
|
}, b(w.name), 41, Td)
|
|
3919
3927
|
]))), 128))
|
|
3920
3928
|
], 512),
|
|
3921
|
-
o(e).loadingIndicator === "circular" && o(e).fs.loading ? (_(), W(o(
|
|
3929
|
+
o(e).loadingIndicator === "circular" && o(e).fs.loading ? (_(), W(o(cs), { key: 0 })) : q("", !0)
|
|
3922
3930
|
], 512), [
|
|
3923
3931
|
[Ue, !o(e).fs.searchMode]
|
|
3924
3932
|
]),
|
|
3925
3933
|
ue(l("div", Md, [
|
|
3926
3934
|
l("div", null, [
|
|
3927
|
-
|
|
3935
|
+
P(o(cd))
|
|
3928
3936
|
]),
|
|
3929
3937
|
ue(l("input", {
|
|
3930
3938
|
ref_key: "searchInput",
|
|
3931
3939
|
ref: T,
|
|
3932
3940
|
onKeydown: kt(L, ["esc"]),
|
|
3933
|
-
onBlur:
|
|
3941
|
+
onBlur: z,
|
|
3934
3942
|
"onUpdate:modelValue": y[10] || (y[10] = (w) => or(V) ? V.value = w : null),
|
|
3935
3943
|
placeholder: o(n)("Search anything.."),
|
|
3936
3944
|
class: "vuefinder__breadcrumb__search-input",
|
|
@@ -3938,7 +3946,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3938
3946
|
}, null, 40, Dd), [
|
|
3939
3947
|
[xt, o(V)]
|
|
3940
3948
|
]),
|
|
3941
|
-
|
|
3949
|
+
P(o(vd), { onClick: L })
|
|
3942
3950
|
], 512), [
|
|
3943
3951
|
[Ue, o(e).fs.searchMode]
|
|
3944
3952
|
]),
|
|
@@ -3953,7 +3961,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3953
3961
|
}, [
|
|
3954
3962
|
l("div", Ld, [
|
|
3955
3963
|
l("span", null, [
|
|
3956
|
-
|
|
3964
|
+
P(o(mn), { class: "vuefinder__breadcrumb__hidden-item-icon" })
|
|
3957
3965
|
]),
|
|
3958
3966
|
y[15] || (y[15] = J()),
|
|
3959
3967
|
l("span", Fd, b(w.name), 1)
|
|
@@ -3964,7 +3972,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3964
3972
|
])
|
|
3965
3973
|
]));
|
|
3966
3974
|
}
|
|
3967
|
-
}, No = (t, e = null) => new Date(t * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"),
|
|
3975
|
+
}, No = (t, e = null) => new Date(t * 1e3).toLocaleString(e ?? navigator.language ?? "en-US"), Hd = ["onClick"], Bd = {
|
|
3968
3976
|
__name: "Toast",
|
|
3969
3977
|
setup(t) {
|
|
3970
3978
|
const e = re("ServiceContainer"), { getStore: n } = e.storage, r = D(n("full-screen", !1)), s = D([]), c = (a) => a === "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", i = (a) => {
|
|
@@ -3983,7 +3991,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3983
3991
|
}), (a, u) => (_(), g("div", {
|
|
3984
3992
|
class: le(["vuefinder__toast", r.value.value ? "vuefinder__toast--fixed" : "vuefinder__toast--absolute"])
|
|
3985
3993
|
}, [
|
|
3986
|
-
|
|
3994
|
+
P(rr, {
|
|
3987
3995
|
name: "vuefinder__toast-item",
|
|
3988
3996
|
"enter-active-class": "vuefinder__toast-item--enter-active",
|
|
3989
3997
|
"leave-active-class": "vuefinder__toast-item--leave-active",
|
|
@@ -3994,7 +4002,7 @@ const wd = { render: bd }, yd = { class: "vuefinder__breadcrumb__container" }, k
|
|
|
3994
4002
|
key: v,
|
|
3995
4003
|
onClick: (p) => i(v),
|
|
3996
4004
|
class: le(["vuefinder__toast__message", c(m.type)])
|
|
3997
|
-
}, b(m.label), 11,
|
|
4005
|
+
}, b(m.label), 11, Hd))), 128))
|
|
3998
4006
|
]),
|
|
3999
4007
|
_: 1
|
|
4000
4008
|
})
|
|
@@ -4021,7 +4029,7 @@ const Ud = { render: Nd }, qd = {
|
|
|
4021
4029
|
class: "h-5 w-5",
|
|
4022
4030
|
viewBox: "0 0 20 20"
|
|
4023
4031
|
};
|
|
4024
|
-
function
|
|
4032
|
+
function Pd(t, e) {
|
|
4025
4033
|
return _(), g("svg", qd, e[0] || (e[0] = [
|
|
4026
4034
|
l("path", {
|
|
4027
4035
|
"fill-rule": "evenodd",
|
|
@@ -4030,13 +4038,13 @@ function zd(t, e) {
|
|
|
4030
4038
|
}, null, -1)
|
|
4031
4039
|
]));
|
|
4032
4040
|
}
|
|
4033
|
-
const
|
|
4041
|
+
const zd = { render: Pd }, Gt = {
|
|
4034
4042
|
__name: "SortIcon",
|
|
4035
4043
|
props: { direction: String },
|
|
4036
4044
|
setup(t) {
|
|
4037
4045
|
return (e, n) => (_(), g("div", null, [
|
|
4038
4046
|
t.direction === "asc" ? (_(), W(o(Ud), { key: 0 })) : q("", !0),
|
|
4039
|
-
t.direction === "desc" ? (_(), W(o(
|
|
4047
|
+
t.direction === "desc" ? (_(), W(o(zd), { key: 1 })) : q("", !0)
|
|
4040
4048
|
]));
|
|
4041
4049
|
}
|
|
4042
4050
|
}, jd = {
|
|
@@ -4055,7 +4063,7 @@ function Gd(t, e) {
|
|
|
4055
4063
|
}, null, -1)
|
|
4056
4064
|
]));
|
|
4057
4065
|
}
|
|
4058
|
-
const Kd = { render: Gd }, Wd = { class: "vuefinder__item-icon" },
|
|
4066
|
+
const Kd = { render: Gd }, Wd = { class: "vuefinder__item-icon" }, Cn = {
|
|
4059
4067
|
__name: "ItemIcon",
|
|
4060
4068
|
props: {
|
|
4061
4069
|
type: {
|
|
@@ -4105,7 +4113,7 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd
|
|
|
4105
4113
|
setup(t) {
|
|
4106
4114
|
const e = t;
|
|
4107
4115
|
return (n, r) => (_(), g("div", Zd, [
|
|
4108
|
-
|
|
4116
|
+
P(o(Jd)),
|
|
4109
4117
|
l("div", Qd, b(e.count), 1)
|
|
4110
4118
|
]));
|
|
4111
4119
|
}
|
|
@@ -4376,7 +4384,7 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd
|
|
|
4376
4384
|
])
|
|
4377
4385
|
]));
|
|
4378
4386
|
}
|
|
4379
|
-
}, Lu = { class: "vuefinder__preview-modal__content" }, Fu = { key: 0 },
|
|
4387
|
+
}, Lu = { class: "vuefinder__preview-modal__content" }, Fu = { key: 0 }, Ru = { class: "vuefinder__preview-modal__loading" }, Hu = {
|
|
4380
4388
|
key: 0,
|
|
4381
4389
|
class: "vuefinder__preview-modal__loading-indicator"
|
|
4382
4390
|
}, Bu = { class: "vuefinder__preview-modal__details" }, Iu = { class: "font-bold" }, Nu = { class: "font-bold pl-2" }, Uu = {
|
|
@@ -4425,8 +4433,8 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd
|
|
|
4425
4433
|
onSuccess: d[5] || (d[5] = (a) => r.value = !0)
|
|
4426
4434
|
}))
|
|
4427
4435
|
])) : q("", !0),
|
|
4428
|
-
l("div",
|
|
4429
|
-
r.value === !1 ? (_(), g("div",
|
|
4436
|
+
l("div", Ru, [
|
|
4437
|
+
r.value === !1 ? (_(), g("div", Hu, [
|
|
4430
4438
|
d[7] || (d[7] = l("svg", {
|
|
4431
4439
|
class: "vuefinder__preview-modal__spinner",
|
|
4432
4440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4469,7 +4477,7 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd
|
|
|
4469
4477
|
_: 1
|
|
4470
4478
|
}));
|
|
4471
4479
|
}
|
|
4472
|
-
},
|
|
4480
|
+
}, Pu = {
|
|
4473
4481
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4474
4482
|
fill: "none",
|
|
4475
4483
|
stroke: "currentColor",
|
|
@@ -4479,8 +4487,8 @@ const Jd = { render: Xd }, Zd = { class: "vuefinder__drag-item__container" }, Qd
|
|
|
4479
4487
|
class: "h-5 w-5",
|
|
4480
4488
|
viewBox: "0 0 24 24"
|
|
4481
4489
|
};
|
|
4482
|
-
function
|
|
4483
|
-
return _(), g("svg",
|
|
4490
|
+
function zu(t, e) {
|
|
4491
|
+
return _(), g("svg", Pu, e[0] || (e[0] = [
|
|
4484
4492
|
l("path", {
|
|
4485
4493
|
stroke: "none",
|
|
4486
4494
|
d: "M0 0h24v24H0z"
|
|
@@ -4488,7 +4496,7 @@ function Pu(t, e) {
|
|
|
4488
4496
|
l("path", { d: "m15 4.5-4 4L7 10l-1.5 1.5 7 7L14 17l1.5-4 4-4M9 15l-4.5 4.5M14.5 4 20 9.5" }, null, -1)
|
|
4489
4497
|
]));
|
|
4490
4498
|
}
|
|
4491
|
-
const qo = { render:
|
|
4499
|
+
const qo = { render: zu }, ju = ["data-type", "data-item", "data-index"], En = {
|
|
4492
4500
|
__name: "Item",
|
|
4493
4501
|
props: {
|
|
4494
4502
|
item: { type: Object },
|
|
@@ -4516,7 +4524,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4516
4524
|
alert("Moving items between different storages is not supported yet.");
|
|
4517
4525
|
return;
|
|
4518
4526
|
}
|
|
4519
|
-
e.modal.open(
|
|
4527
|
+
e.modal.open(jn, { items: { from: x, to: h } });
|
|
4520
4528
|
}, a = (f, h) => {
|
|
4521
4529
|
f.preventDefault(), !h || h.type !== "dir" || n.getSelection().find((x) => x === f.currentTarget) ? (f.dataTransfer.dropEffect = "none", f.dataTransfer.effectAllowed = "none") : f.dataTransfer.dropEffect = "copy";
|
|
4522
4530
|
};
|
|
@@ -4604,7 +4612,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4604
4612
|
d = new fr(i.area.value);
|
|
4605
4613
|
}), Ls(() => {
|
|
4606
4614
|
d.update();
|
|
4607
|
-
}),
|
|
4615
|
+
}), Rs(() => {
|
|
4608
4616
|
d.destroy();
|
|
4609
4617
|
}), (v, p) => (_(), g("div", Gu, [
|
|
4610
4618
|
o(e).view === "list" || c.value.length ? (_(), g("div", Ku, [
|
|
@@ -4613,7 +4621,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4613
4621
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--name vf-sort-button"
|
|
4614
4622
|
}, [
|
|
4615
4623
|
J(b(o(n)("Name")) + " ", 1),
|
|
4616
|
-
ue(
|
|
4624
|
+
ue(P(Gt, {
|
|
4617
4625
|
direction: a.order
|
|
4618
4626
|
}, null, 8, ["direction"]), [
|
|
4619
4627
|
[Ue, a.active && a.column === "basename"]
|
|
@@ -4625,7 +4633,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4625
4633
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--size vf-sort-button"
|
|
4626
4634
|
}, [
|
|
4627
4635
|
J(b(o(n)("Size")) + " ", 1),
|
|
4628
|
-
ue(
|
|
4636
|
+
ue(P(Gt, {
|
|
4629
4637
|
direction: a.order
|
|
4630
4638
|
}, null, 8, ["direction"]), [
|
|
4631
4639
|
[Ue, a.active && a.column === "file_size"]
|
|
@@ -4637,7 +4645,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4637
4645
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--date vf-sort-button"
|
|
4638
4646
|
}, [
|
|
4639
4647
|
J(b(o(n)("Date")) + " ", 1),
|
|
4640
|
-
ue(
|
|
4648
|
+
ue(P(Gt, {
|
|
4641
4649
|
direction: a.order
|
|
4642
4650
|
}, null, 8, ["direction"]), [
|
|
4643
4651
|
[Ue, a.active && a.column === "last_modified"]
|
|
@@ -4649,7 +4657,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4649
4657
|
class: "vuefinder__explorer__sort-button vuefinder__explorer__sort-button--path vf-sort-button"
|
|
4650
4658
|
}, [
|
|
4651
4659
|
J(b(o(n)("Filepath")) + " ", 1),
|
|
4652
|
-
ue(
|
|
4660
|
+
ue(P(Gt, {
|
|
4653
4661
|
direction: a.order
|
|
4654
4662
|
}, null, 8, ["direction"]), [
|
|
4655
4663
|
[Ue, a.active && a.column === "path"]
|
|
@@ -4657,7 +4665,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4657
4665
|
])) : q("", !0)
|
|
4658
4666
|
])) : q("", !0),
|
|
4659
4667
|
l("div", Wu, [
|
|
4660
|
-
|
|
4668
|
+
P(eu, {
|
|
4661
4669
|
ref_key: "dragImage",
|
|
4662
4670
|
ref: s,
|
|
4663
4671
|
count: o(i).getCount()
|
|
@@ -4678,7 +4686,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4678
4686
|
onContextmenu: p[4] || (p[4] = Ze((f) => o(e).emitter.emit("vf-contextmenu-show", { event: f, items: o(i).getSelected() }), ["self", "prevent"]))
|
|
4679
4687
|
}, [
|
|
4680
4688
|
o(e).loadingIndicator === "linear" && o(e).fs.loading ? (_(), g("div", Yu)) : q("", !0),
|
|
4681
|
-
c.value.length ? (_(!0), g(ge, { key: 1 }, xe(u(), (f, h) => (_(), W(
|
|
4689
|
+
c.value.length ? (_(!0), g(ge, { key: 1 }, xe(u(), (f, h) => (_(), W(En, {
|
|
4682
4690
|
item: f,
|
|
4683
4691
|
index: h,
|
|
4684
4692
|
dragImage: s.value,
|
|
@@ -4687,7 +4695,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4687
4695
|
default: Q(() => [
|
|
4688
4696
|
l("div", Xu, [
|
|
4689
4697
|
l("div", Ju, [
|
|
4690
|
-
|
|
4698
|
+
P(Cn, {
|
|
4691
4699
|
type: f.type,
|
|
4692
4700
|
small: o(e).compactListView
|
|
4693
4701
|
}, null, 8, ["type", "small"]),
|
|
@@ -4698,7 +4706,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4698
4706
|
]),
|
|
4699
4707
|
_: 2
|
|
4700
4708
|
}, 1032, ["item", "index", "dragImage"]))), 256)) : q("", !0),
|
|
4701
|
-
o(e).view === "list" && !c.value.length ? (_(!0), g(ge, { key: 2 }, xe(u(), (f, h) => (_(), W(
|
|
4709
|
+
o(e).view === "list" && !c.value.length ? (_(!0), g(ge, { key: 2 }, xe(u(), (f, h) => (_(), W(En, {
|
|
4702
4710
|
item: f,
|
|
4703
4711
|
index: h,
|
|
4704
4712
|
dragImage: s.value,
|
|
@@ -4709,7 +4717,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4709
4717
|
default: Q(() => [
|
|
4710
4718
|
l("div", ev, [
|
|
4711
4719
|
l("div", tv, [
|
|
4712
|
-
|
|
4720
|
+
P(Cn, {
|
|
4713
4721
|
type: f.type,
|
|
4714
4722
|
small: o(e).compactListView
|
|
4715
4723
|
}, null, 8, ["type", "small"]),
|
|
@@ -4721,7 +4729,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4721
4729
|
]),
|
|
4722
4730
|
_: 2
|
|
4723
4731
|
}, 1032, ["item", "index", "dragImage"]))), 128)) : q("", !0),
|
|
4724
|
-
o(e).view === "grid" && !c.value.length ? (_(!0), g(ge, { key: 3 }, xe(u(!1), (f, h) => (_(), W(
|
|
4732
|
+
o(e).view === "grid" && !c.value.length ? (_(!0), g(ge, { key: 3 }, xe(u(!1), (f, h) => (_(), W(En, {
|
|
4725
4733
|
item: f,
|
|
4726
4734
|
index: h,
|
|
4727
4735
|
dragImage: s.value,
|
|
@@ -4737,7 +4745,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4737
4745
|
"data-src": o(e).requester.getPreviewUrl(o(e).fs.adapter, f),
|
|
4738
4746
|
alt: f.basename,
|
|
4739
4747
|
key: f.path
|
|
4740
|
-
}, null, 8, lv)) : (_(), W(
|
|
4748
|
+
}, null, 8, lv)) : (_(), W(Cn, {
|
|
4741
4749
|
key: 1,
|
|
4742
4750
|
type: f.type
|
|
4743
4751
|
}, null, 8, ["type"])),
|
|
@@ -4749,7 +4757,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4749
4757
|
_: 2
|
|
4750
4758
|
}, 1032, ["item", "index", "dragImage"]))), 256)) : q("", !0)
|
|
4751
4759
|
], 544),
|
|
4752
|
-
|
|
4760
|
+
P(Bd)
|
|
4753
4761
|
]));
|
|
4754
4762
|
}
|
|
4755
4763
|
}, dv = ["href", "download"], uv = ["onClick"], vv = {
|
|
@@ -4792,7 +4800,7 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4792
4800
|
key: de.DELETE,
|
|
4793
4801
|
title: () => n("Delete"),
|
|
4794
4802
|
action: () => {
|
|
4795
|
-
e.modal.open(
|
|
4803
|
+
e.modal.open(as, { items: s });
|
|
4796
4804
|
}
|
|
4797
4805
|
},
|
|
4798
4806
|
refresh: {
|
|
@@ -4845,12 +4853,12 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4845
4853
|
unarchive: {
|
|
4846
4854
|
key: de.UNARCHIVE,
|
|
4847
4855
|
title: () => n("Unarchive"),
|
|
4848
|
-
action: () => e.modal.open(
|
|
4856
|
+
action: () => e.modal.open(Ho, { items: s })
|
|
4849
4857
|
},
|
|
4850
4858
|
rename: {
|
|
4851
4859
|
key: de.RENAME,
|
|
4852
4860
|
title: () => n("Rename"),
|
|
4853
|
-
action: () => e.modal.open(
|
|
4861
|
+
action: () => e.modal.open(is, { items: s })
|
|
4854
4862
|
}
|
|
4855
4863
|
}, u = (v) => {
|
|
4856
4864
|
e.emitter.emit("vf-contextmenu-hide"), v.action();
|
|
@@ -4874,8 +4882,8 @@ const qo = { render: Pu }, ju = ["data-type", "data-item", "data-index"], Cn = {
|
|
|
4874
4882
|
i.active = !0, ct(() => {
|
|
4875
4883
|
var $;
|
|
4876
4884
|
const E = ($ = r.value) == null ? void 0 : $.getBoundingClientRect();
|
|
4877
|
-
let
|
|
4878
|
-
x = h.right - v.pageX + window.scrollX < T ? x - T : x, S = h.bottom - v.pageY + window.scrollY <
|
|
4885
|
+
let H = (E == null ? void 0 : E.height) ?? 0, T = (E == null ? void 0 : E.width) ?? 0;
|
|
4886
|
+
x = h.right - v.pageX + window.scrollX < T ? x - T : x, S = h.bottom - v.pageY + window.scrollY < H ? S - H : S, i.positions = {
|
|
4879
4887
|
left: x + "px",
|
|
4880
4888
|
top: S + "px"
|
|
4881
4889
|
};
|
|
@@ -4928,7 +4936,7 @@ function fv(t, e) {
|
|
|
4928
4936
|
}, null, -1)
|
|
4929
4937
|
]));
|
|
4930
4938
|
}
|
|
4931
|
-
const
|
|
4939
|
+
const Po = { render: fv }, mv = {
|
|
4932
4940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4933
4941
|
fill: "none",
|
|
4934
4942
|
stroke: "currentColor",
|
|
@@ -4965,7 +4973,7 @@ const hv = { render: pv }, gv = { class: "vuefinder__status-bar__wrapper" }, bv
|
|
|
4965
4973
|
title: o(n)("Storage")
|
|
4966
4974
|
}, [
|
|
4967
4975
|
l("div", yv, [
|
|
4968
|
-
|
|
4976
|
+
P(o(Po))
|
|
4969
4977
|
]),
|
|
4970
4978
|
ue(l("select", {
|
|
4971
4979
|
"onUpdate:modelValue": u[0] || (u[0] = (m) => o(e).fs.adapter = m),
|
|
@@ -4975,7 +4983,7 @@ const hv = { render: pv }, gv = { class: "vuefinder__status-bar__wrapper" }, bv
|
|
|
4975
4983
|
}, [
|
|
4976
4984
|
(_(!0), g(ge, null, xe(o(e).fs.data.storages, (m) => (_(), g("option", { value: m }, b(m), 9, kv))), 256))
|
|
4977
4985
|
], 544), [
|
|
4978
|
-
[
|
|
4986
|
+
[An, o(e).fs.adapter]
|
|
4979
4987
|
])
|
|
4980
4988
|
], 8, wv),
|
|
4981
4989
|
l("div", xv, [
|
|
@@ -4995,7 +5003,7 @@ const hv = { render: pv }, gv = { class: "vuefinder__status-bar__wrapper" }, bv
|
|
|
4995
5003
|
title: o(n)("About"),
|
|
4996
5004
|
onClick: u[2] || (u[2] = (m) => o(e).modal.open(To))
|
|
4997
5005
|
}, [
|
|
4998
|
-
|
|
5006
|
+
P(o(hv))
|
|
4999
5007
|
], 8, Av)
|
|
5000
5008
|
])
|
|
5001
5009
|
]));
|
|
@@ -5017,7 +5025,7 @@ function Dv(t, e) {
|
|
|
5017
5025
|
}, null, -1)
|
|
5018
5026
|
]));
|
|
5019
5027
|
}
|
|
5020
|
-
const
|
|
5028
|
+
const zo = { render: Dv }, Vv = {
|
|
5021
5029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5022
5030
|
fill: "currentColor",
|
|
5023
5031
|
class: "h-5 w-5",
|
|
@@ -5041,7 +5049,7 @@ const Lv = { render: Ov }, Fv = {
|
|
|
5041
5049
|
"stroke-width": "2",
|
|
5042
5050
|
viewBox: "0 0 24 24"
|
|
5043
5051
|
};
|
|
5044
|
-
function
|
|
5052
|
+
function Rv(t, e) {
|
|
5045
5053
|
return _(), g("svg", Fv, e[0] || (e[0] = [
|
|
5046
5054
|
l("path", {
|
|
5047
5055
|
stroke: "none",
|
|
@@ -5050,7 +5058,7 @@ function Hv(t, e) {
|
|
|
5050
5058
|
l("path", { d: "M15 12H9M12 9v6" }, null, -1)
|
|
5051
5059
|
]));
|
|
5052
5060
|
}
|
|
5053
|
-
const jo = { render:
|
|
5061
|
+
const jo = { render: Rv }, Hv = {
|
|
5054
5062
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5055
5063
|
fill: "none",
|
|
5056
5064
|
stroke: "currentColor",
|
|
@@ -5060,7 +5068,7 @@ const jo = { render: Hv }, Rv = {
|
|
|
5060
5068
|
viewBox: "0 0 24 24"
|
|
5061
5069
|
};
|
|
5062
5070
|
function Bv(t, e) {
|
|
5063
|
-
return _(), g("svg",
|
|
5071
|
+
return _(), g("svg", Hv, e[0] || (e[0] = [
|
|
5064
5072
|
l("path", {
|
|
5065
5073
|
stroke: "none",
|
|
5066
5074
|
d: "M0 0h24v24H0z"
|
|
@@ -5095,7 +5103,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5095
5103
|
setup(t) {
|
|
5096
5104
|
const e = t, n = re("ServiceContainer");
|
|
5097
5105
|
n.i18n;
|
|
5098
|
-
const r =
|
|
5106
|
+
const r = Hs(t, "modelValue"), s = D(!1);
|
|
5099
5107
|
Me(
|
|
5100
5108
|
() => r.value,
|
|
5101
5109
|
() => {
|
|
@@ -5125,7 +5133,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5125
5133
|
return (d, a) => {
|
|
5126
5134
|
var u;
|
|
5127
5135
|
return _(), g("div", Iv, [
|
|
5128
|
-
s.value ? (_(), W(o(
|
|
5136
|
+
s.value ? (_(), W(o(cs), {
|
|
5129
5137
|
key: 0,
|
|
5130
5138
|
class: "vuefinder__folder-loader-indicator--loading"
|
|
5131
5139
|
})) : (_(), g("div", Nv, [
|
|
@@ -5141,7 +5149,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5141
5149
|
]);
|
|
5142
5150
|
};
|
|
5143
5151
|
}
|
|
5144
|
-
}, Uv = { class: "vuefinder__treesubfolderlist__item-content" }, qv = ["onClick"],
|
|
5152
|
+
}, Uv = { class: "vuefinder__treesubfolderlist__item-content" }, qv = ["onClick"], Pv = ["title", "onClick"], zv = { class: "vuefinder__treesubfolderlist__item-icon" }, jv = { class: "vuefinder__treesubfolderlist__subfolder" }, Gv = {
|
|
5145
5153
|
__name: "TreeSubfolderList",
|
|
5146
5154
|
props: {
|
|
5147
5155
|
adapter: {
|
|
@@ -5182,7 +5190,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5182
5190
|
class: "vuefinder__treesubfolderlist__item-toggle",
|
|
5183
5191
|
onClick: (v) => n.value[u.path] = !n.value[u.path]
|
|
5184
5192
|
}, [
|
|
5185
|
-
|
|
5193
|
+
P(Wo, {
|
|
5186
5194
|
adapter: t.adapter,
|
|
5187
5195
|
path: u.path,
|
|
5188
5196
|
modelValue: n.value[u.path],
|
|
@@ -5194,18 +5202,18 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5194
5202
|
title: u.path,
|
|
5195
5203
|
onClick: (v) => o(e).emitter.emit("vf-fetch", { params: { q: "index", adapter: r.adapter, path: u.path } })
|
|
5196
5204
|
}, [
|
|
5197
|
-
l("div",
|
|
5198
|
-
o(e).fs.path === u.path ? (_(), W(o(
|
|
5205
|
+
l("div", zv, [
|
|
5206
|
+
o(e).fs.path === u.path ? (_(), W(o(zo), { key: 0 })) : (_(), W(o(mn), { key: 1 }))
|
|
5199
5207
|
]),
|
|
5200
5208
|
l("div", {
|
|
5201
5209
|
class: le(["vuefinder__treesubfolderlist__item-text", {
|
|
5202
5210
|
"vuefinder__treesubfolderlist__item-text--active": o(e).fs.path === u.path
|
|
5203
5211
|
}])
|
|
5204
5212
|
}, b(u.basename), 3)
|
|
5205
|
-
], 8,
|
|
5213
|
+
], 8, Pv)
|
|
5206
5214
|
]),
|
|
5207
5215
|
l("div", jv, [
|
|
5208
|
-
ue(
|
|
5216
|
+
ue(P(a, {
|
|
5209
5217
|
adapter: r.adapter,
|
|
5210
5218
|
path: u.path
|
|
5211
5219
|
}, null, 8, ["adapter", "path"]), [
|
|
@@ -5240,7 +5248,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5240
5248
|
l("div", {
|
|
5241
5249
|
class: le(["vuefinder__treestorageitem__icon", t.storage === o(e).fs.adapter ? "vuefinder__treestorageitem__icon--active" : ""])
|
|
5242
5250
|
}, [
|
|
5243
|
-
|
|
5251
|
+
P(o(Po))
|
|
5244
5252
|
], 2),
|
|
5245
5253
|
l("div", null, b(t.storage), 1)
|
|
5246
5254
|
], 2),
|
|
@@ -5248,7 +5256,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5248
5256
|
class: "vuefinder__treestorageitem__loader",
|
|
5249
5257
|
onClick: i[1] || (i[1] = Ze((d) => r.value = !r.value, ["stop"]))
|
|
5250
5258
|
}, [
|
|
5251
|
-
|
|
5259
|
+
P(Wo, {
|
|
5252
5260
|
adapter: t.storage,
|
|
5253
5261
|
path: t.storage + "://",
|
|
5254
5262
|
modelValue: r.value,
|
|
@@ -5256,7 +5264,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5256
5264
|
}, null, 8, ["adapter", "path", "modelValue"])
|
|
5257
5265
|
])
|
|
5258
5266
|
]),
|
|
5259
|
-
ue(
|
|
5267
|
+
ue(P(Gv, {
|
|
5260
5268
|
adapter: t.storage,
|
|
5261
5269
|
path: t.storage + "://",
|
|
5262
5270
|
class: "vuefinder__treestorageitem__subfolder"
|
|
@@ -5273,7 +5281,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5273
5281
|
},
|
|
5274
5282
|
emits: ["update:modelValue"],
|
|
5275
5283
|
setup(t) {
|
|
5276
|
-
const e =
|
|
5284
|
+
const e = Hs(t, "modelValue");
|
|
5277
5285
|
return (n, r) => (_(), g("div", Wv, [
|
|
5278
5286
|
l("div", Yv, [
|
|
5279
5287
|
e.value ? (_(), W(o(Go), {
|
|
@@ -5344,10 +5352,10 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5344
5352
|
class: "vuefinder__treeview__pinned-toggle"
|
|
5345
5353
|
}, [
|
|
5346
5354
|
l("div", Zv, [
|
|
5347
|
-
|
|
5355
|
+
P(o(qo), { class: "vuefinder__treeview__pin-icon" }),
|
|
5348
5356
|
l("div", Qv, b(o(n)("Pinned Folders")), 1)
|
|
5349
5357
|
]),
|
|
5350
|
-
|
|
5358
|
+
P(Xv, {
|
|
5351
5359
|
modelValue: i.value,
|
|
5352
5360
|
"onUpdate:modelValue": v[1] || (v[1] = (p) => i.value = p)
|
|
5353
5361
|
}, null, 8, ["modelValue"])
|
|
@@ -5362,7 +5370,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5362
5370
|
key: 0,
|
|
5363
5371
|
class: "vuefinder__treeview__folder-icon"
|
|
5364
5372
|
})) : q("", !0),
|
|
5365
|
-
o(e).fs.path === p.path ? (_(), W(o(
|
|
5373
|
+
o(e).fs.path === p.path ? (_(), W(o(zo), {
|
|
5366
5374
|
key: 1,
|
|
5367
5375
|
class: "vuefinder__treeview__open-folder-icon"
|
|
5368
5376
|
})) : q("", !0),
|
|
@@ -5377,7 +5385,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5377
5385
|
class: "vuefinder__treeview__remove-favorite",
|
|
5378
5386
|
onClick: (f) => d(p)
|
|
5379
5387
|
}, [
|
|
5380
|
-
|
|
5388
|
+
P(o(Lv), { class: "vuefinder__treeview__remove-icon" })
|
|
5381
5389
|
], 8, o_)
|
|
5382
5390
|
]))), 256)),
|
|
5383
5391
|
o(e).pinnedFolders.length ? q("", !0) : (_(), g("li", r_, [
|
|
@@ -5386,7 +5394,7 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5386
5394
|
])) : q("", !0)
|
|
5387
5395
|
]),
|
|
5388
5396
|
(_(!0), g(ge, null, xe(o(e).fs.data.storages, (p) => (_(), g("div", a_, [
|
|
5389
|
-
|
|
5397
|
+
P(Kv, { storage: p }, null, 8, ["storage"])
|
|
5390
5398
|
]))), 256))
|
|
5391
5399
|
], 512),
|
|
5392
5400
|
l("div", {
|
|
@@ -5542,21 +5550,21 @@ const Iv = { class: "vuefinder__folder-loader-indicator" }, Nv = {
|
|
|
5542
5550
|
onMousedown: p[0] || (p[0] = (f) => o(s).emitter.emit("vf-contextmenu-hide")),
|
|
5543
5551
|
onTouchstart: p[1] || (p[1] = (f) => o(s).emitter.emit("vf-contextmenu-hide"))
|
|
5544
5552
|
}, [
|
|
5545
|
-
|
|
5546
|
-
|
|
5553
|
+
P(Oc),
|
|
5554
|
+
P(Rd),
|
|
5547
5555
|
l("div", c_, [
|
|
5548
|
-
|
|
5549
|
-
|
|
5556
|
+
P(i_),
|
|
5557
|
+
P(cv)
|
|
5550
5558
|
]),
|
|
5551
|
-
|
|
5559
|
+
P(Tv)
|
|
5552
5560
|
], 38),
|
|
5553
|
-
|
|
5561
|
+
P(cr, { name: "fade" }, {
|
|
5554
5562
|
default: Q(() => [
|
|
5555
5563
|
o(s).modal.visible ? (_(), W(Fs(o(s).modal.type), { key: 0 })) : q("", !0)
|
|
5556
5564
|
]),
|
|
5557
5565
|
_: 1
|
|
5558
5566
|
}),
|
|
5559
|
-
|
|
5567
|
+
P(vv)
|
|
5560
5568
|
], 2)
|
|
5561
5569
|
], 512));
|
|
5562
5570
|
}
|