@brftech/filex-core 0.41.4 → 0.42.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/{ArchiveViewer-oqaEyqcB.js → ArchiveViewer-CGl_J_qE.js} +2 -2
- package/dist/{ArchiveViewer-oqaEyqcB.js.map → ArchiveViewer-CGl_J_qE.js.map} +1 -1
- package/dist/{CsvViewer-BfT-4WpB.js → CsvViewer-D-na6SEG.js} +2 -2
- package/dist/{CsvViewer-BfT-4WpB.js.map → CsvViewer-D-na6SEG.js.map} +1 -1
- package/dist/{DrawioViewer-Cu2ZquNO.js → DrawioViewer-BFkTSrNc.js} +2 -2
- package/dist/{DrawioViewer-Cu2ZquNO.js.map → DrawioViewer-BFkTSrNc.js.map} +1 -1
- package/dist/{EpubViewer-yfAfnrYF.js → EpubViewer-BfRE0DTL.js} +2 -2
- package/dist/{EpubViewer-yfAfnrYF.js.map → EpubViewer-BfRE0DTL.js.map} +1 -1
- package/dist/{IpynbViewer-DLSOs3yU.js → IpynbViewer-BpBlICH-.js} +2 -2
- package/dist/{IpynbViewer-DLSOs3yU.js.map → IpynbViewer-BpBlICH-.js.map} +1 -1
- package/dist/{MermaidViewer-D2AsT14x.js → MermaidViewer-Ry5Ma463.js} +2 -2
- package/dist/{MermaidViewer-D2AsT14x.js.map → MermaidViewer-Ry5Ma463.js.map} +1 -1
- package/dist/{PsdViewer-DOza4QJt.js → PsdViewer-BmTlq1Gh.js} +2 -2
- package/dist/{PsdViewer-DOza4QJt.js.map → PsdViewer-BmTlq1Gh.js.map} +1 -1
- package/dist/{TiffViewer-24MCOn1t.js → TiffViewer-DE5bKDDx.js} +2 -2
- package/dist/{TiffViewer-24MCOn1t.js.map → TiffViewer-DE5bKDDx.js.map} +1 -1
- package/dist/{Viewer3D-BVjtbhhc.js → Viewer3D-DefcNYOm.js} +2 -2
- package/dist/{Viewer3D-BVjtbhhc.js.map → Viewer3D-DefcNYOm.js.map} +1 -1
- package/dist/filex-core.js +1 -1
- package/dist/filex-core.umd.cjs +8 -8
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/{index-B8PLGR-X.js → index-B0N5qiyj.js} +401 -386
- package/dist/{index-B8PLGR-X.js.map → index-B0N5qiyj.js.map} +1 -1
- package/dist/index.d.ts +59 -4
- package/package.json +1 -1
- package/src/FileExplorer.vue +19 -0
- package/src/components/FilePane.vue +22 -7
- package/src/types/ExplorerConfig.ts +32 -0
|
@@ -252,7 +252,7 @@ function Wa(e) {
|
|
|
252
252
|
body: JSON.stringify({ source: U, target: R, sourceDir: Z })
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
|
-
async function
|
|
255
|
+
async function le(U, R) {
|
|
256
256
|
if (!t.deleteAsync) throw new Error("deleteAsync endpoint not configured");
|
|
257
257
|
return h(t.deleteAsync, {
|
|
258
258
|
method: "POST",
|
|
@@ -448,7 +448,7 @@ function Wa(e) {
|
|
|
448
448
|
function A(U = "") {
|
|
449
449
|
return t.manager.replace(/\/manager(\?.*)?$/, "/versions") + U;
|
|
450
450
|
}
|
|
451
|
-
async function
|
|
451
|
+
async function ie(U) {
|
|
452
452
|
const R = await h(
|
|
453
453
|
A() + "?node_id=" + encodeURIComponent(String(U))
|
|
454
454
|
);
|
|
@@ -516,7 +516,7 @@ function Wa(e) {
|
|
|
516
516
|
move: V,
|
|
517
517
|
copy: he,
|
|
518
518
|
moveAsync: fe,
|
|
519
|
-
deleteAsync:
|
|
519
|
+
deleteAsync: le,
|
|
520
520
|
deleteItems: re,
|
|
521
521
|
restore: Q,
|
|
522
522
|
listTrash: X,
|
|
@@ -539,7 +539,7 @@ function Wa(e) {
|
|
|
539
539
|
archiveExtract: se,
|
|
540
540
|
archiveAdd: ue,
|
|
541
541
|
// Version history (koru:k1 inspector)
|
|
542
|
-
listVersions:
|
|
542
|
+
listVersions: ie,
|
|
543
543
|
restoreVersion: Se,
|
|
544
544
|
snapshotVersion: Ye,
|
|
545
545
|
// Node comments (calisma:d3 inspector)
|
|
@@ -705,8 +705,8 @@ function dv(e, t, n = iv()) {
|
|
|
705
705
|
})
|
|
706
706
|
});
|
|
707
707
|
} catch (fe) {
|
|
708
|
-
const
|
|
709
|
-
throw (
|
|
708
|
+
const le = fe.status;
|
|
709
|
+
throw (le === 404 || le === 501) && Sc(fe), fe;
|
|
710
710
|
}
|
|
711
711
|
if (!(he != null && he.id)) throw new Error("begin returned no upload id");
|
|
712
712
|
Y = he.id, K = he.chunk_size ?? he.chunkSize ?? K, M = he.offset ?? 0;
|
|
@@ -724,25 +724,25 @@ function dv(e, t, n = iv()) {
|
|
|
724
724
|
for (; M < T.file.size; ) {
|
|
725
725
|
if (F) throw new DOMException("Aborted by user", "AbortError");
|
|
726
726
|
const he = Math.min(M + K, T.file.size), fe = T.file.slice(M, he);
|
|
727
|
-
let
|
|
727
|
+
let le = -1, Q = null;
|
|
728
728
|
for (let X = 0; X < V; X++) {
|
|
729
729
|
if (X > 0) {
|
|
730
730
|
if (await Tc(300 * X + Math.floor(Math.random() * 150)), F) throw new DOMException("Aborted by user", "AbortError");
|
|
731
731
|
try {
|
|
732
732
|
const be = await z(Y);
|
|
733
733
|
if ((be.offset ?? 0) >= he) {
|
|
734
|
-
|
|
734
|
+
le = be.offset ?? he;
|
|
735
735
|
break;
|
|
736
736
|
}
|
|
737
737
|
if ((be.offset ?? 0) !== M) {
|
|
738
|
-
M = be.offset ?? M, $(),
|
|
738
|
+
M = be.offset ?? M, $(), le = -2;
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
741
|
} catch {
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
try {
|
|
745
|
-
|
|
745
|
+
le = await S(Y, fe, M, he, T.file.size);
|
|
746
746
|
break;
|
|
747
747
|
} catch (be) {
|
|
748
748
|
const me = be instanceof Error ? be : new Error(String(be));
|
|
@@ -752,10 +752,10 @@ function dv(e, t, n = iv()) {
|
|
|
752
752
|
Q = me;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
if (
|
|
756
|
-
if (
|
|
757
|
-
if (
|
|
758
|
-
M =
|
|
755
|
+
if (le !== -2) {
|
|
756
|
+
if (le < 0) throw Q ?? new Error("chunk upload failed");
|
|
757
|
+
if (le <= M) throw new Error(`upload stalled at byte ${M}`);
|
|
758
|
+
M = le, $(), xc(n, H, {
|
|
759
759
|
uploadId: Y,
|
|
760
760
|
path: T.path,
|
|
761
761
|
name: T.file.name,
|
|
@@ -790,11 +790,11 @@ function dv(e, t, n = iv()) {
|
|
|
790
790
|
return new Promise((re, he) => {
|
|
791
791
|
const fe = new XMLHttpRequest();
|
|
792
792
|
w = fe, fe.open("PUT", `${a()}/${encodeURIComponent(I)}`);
|
|
793
|
-
const
|
|
793
|
+
const le = t.authHeadersSync({
|
|
794
794
|
"Content-Type": "application/octet-stream",
|
|
795
795
|
"Content-Range": `bytes ${K}-${q - 1}/${V}`
|
|
796
796
|
});
|
|
797
|
-
for (const [Q, X] of Object.entries(
|
|
797
|
+
for (const [Q, X] of Object.entries(le)) fe.setRequestHeader(Q, X);
|
|
798
798
|
fe.withCredentials = t.credentialsMode() === "include", fe.upload.onprogress = (Q) => {
|
|
799
799
|
Q.lengthComputable && $(Q.loaded);
|
|
800
800
|
}, fe.onload = () => {
|
|
@@ -5039,7 +5039,7 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5039
5039
|
}
|
|
5040
5040
|
C.key === "ArrowDown" ? (C.preventDefault(), C.stopPropagation(), E(1)) : C.key === "ArrowUp" ? (C.preventDefault(), C.stopPropagation(), E(-1)) : C.key === "Home" ? (C.preventDefault(), S(0)) : C.key === "End" ? (C.preventDefault(), S(-1)) : C.key === "Tab" && (C.preventDefault(), M());
|
|
5041
5041
|
}
|
|
5042
|
-
const
|
|
5042
|
+
const le = k(() => {
|
|
5043
5043
|
const C = r.actions.filter((j) => !j.hidden), P = [];
|
|
5044
5044
|
for (const j of C)
|
|
5045
5045
|
j.divider && (P.length === 0 || P[P.length - 1].divider) || P.push(j);
|
|
@@ -5096,7 +5096,7 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5096
5096
|
onTouchcancel: V
|
|
5097
5097
|
}, null, 40, gh),
|
|
5098
5098
|
o("div", kh, [
|
|
5099
|
-
(c(!0), d(ae, null, Me(
|
|
5099
|
+
(c(!0), d(ae, null, Me(le.value, (j, N) => (c(), d(ae, {
|
|
5100
5100
|
key: j.key || N
|
|
5101
5101
|
}, [
|
|
5102
5102
|
j.divider ? (c(), d("div", _h)) : (c(), d("button", {
|
|
@@ -5131,7 +5131,7 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5131
5131
|
onClick: P[1] || (P[1] = je(() => {
|
|
5132
5132
|
}, ["stop"]))
|
|
5133
5133
|
}, [
|
|
5134
|
-
(c(!0), d(ae, null, Me(
|
|
5134
|
+
(c(!0), d(ae, null, Me(le.value, (j, N) => (c(), d(ae, {
|
|
5135
5135
|
key: j.key || N
|
|
5136
5136
|
}, [
|
|
5137
5137
|
j.divider ? (c(), d("div", Mh)) : (c(), d("button", {
|
|
@@ -5275,13 +5275,13 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5275
5275
|
Y.value = He;
|
|
5276
5276
|
return;
|
|
5277
5277
|
}
|
|
5278
|
-
const pt = parseFloat(getComputedStyle(de).gap) || 4,
|
|
5278
|
+
const pt = parseFloat(getComputedStyle(de).gap) || 4, gt = Array.from(Ae.children).map((wt) => wt.offsetWidth + pt), Tt = gt.reduce((wt, At) => wt + At, 0), Xt = de.clientWidth, Yt = (((_t = W.value) == null ? void 0 : _t.offsetWidth) || zm) + pt;
|
|
5279
5279
|
if (Tt <= Xt - (S.value.rest.length ? Yt : 0)) {
|
|
5280
|
-
Y.value =
|
|
5280
|
+
Y.value = gt.length;
|
|
5281
5281
|
return;
|
|
5282
5282
|
}
|
|
5283
5283
|
let Mt = Yt, Ot = 0;
|
|
5284
|
-
for (const wt of
|
|
5284
|
+
for (const wt of gt) {
|
|
5285
5285
|
if (Mt + wt > Xt) break;
|
|
5286
5286
|
Mt += wt, Ot += 1;
|
|
5287
5287
|
}
|
|
@@ -5300,10 +5300,10 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5300
5300
|
const de = (Ae = W.value) == null ? void 0 : Ae.getBoundingClientRect();
|
|
5301
5301
|
(He = I.value) == null || He.show({ clientX: de ? de.right : 0, clientY: de ? de.bottom + 4 : 0 }, []);
|
|
5302
5302
|
}
|
|
5303
|
-
const
|
|
5303
|
+
const le = m(null), Q = _n(null), X = m(!1), be = _n(null), me = _n(null);
|
|
5304
5304
|
function C() {
|
|
5305
5305
|
var He;
|
|
5306
|
-
const de = (He =
|
|
5306
|
+
const de = (He = le.value) == null ? void 0 : He.closest(".fe");
|
|
5307
5307
|
if (!de) return null;
|
|
5308
5308
|
const Ae = a.selectionPane;
|
|
5309
5309
|
if (Ae && /^[A-Za-z][\w-]*$/.test(Ae)) {
|
|
@@ -5331,8 +5331,8 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5331
5331
|
else {
|
|
5332
5332
|
const pt = document.createElement("div");
|
|
5333
5333
|
pt.className = "fe-selbar-slot";
|
|
5334
|
-
const
|
|
5335
|
-
|
|
5334
|
+
const gt = de.querySelector(":scope > .fe-tabs") ?? de.querySelector(":scope > .fe-subhead, :scope > .fe-subhead--plain");
|
|
5335
|
+
gt ? gt.insertAdjacentElement("afterend", pt) : de.prepend(pt), Q.value = pt, X.value = !0;
|
|
5336
5336
|
}
|
|
5337
5337
|
N(), Be();
|
|
5338
5338
|
}
|
|
@@ -5376,16 +5376,16 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5376
5376
|
u("action", de);
|
|
5377
5377
|
}
|
|
5378
5378
|
const A = m(!1);
|
|
5379
|
-
let
|
|
5379
|
+
let ie;
|
|
5380
5380
|
function Se(de) {
|
|
5381
5381
|
A.value = !!(de && "matches" in de && de.matches);
|
|
5382
5382
|
}
|
|
5383
5383
|
ft(() => {
|
|
5384
5384
|
var de;
|
|
5385
|
-
typeof window > "u" || !window.matchMedia || (
|
|
5385
|
+
typeof window > "u" || !window.matchMedia || (ie = window.matchMedia("(pointer: coarse)"), Se(ie), (de = ie.addEventListener) == null || de.call(ie, "change", Se));
|
|
5386
5386
|
}), it(() => {
|
|
5387
5387
|
var de;
|
|
5388
|
-
(de =
|
|
5388
|
+
(de = ie == null ? void 0 : ie.removeEventListener) == null || de.call(ie, "change", Se);
|
|
5389
5389
|
});
|
|
5390
5390
|
const Ye = m(null), Ke = m(null);
|
|
5391
5391
|
function Je(de) {
|
|
@@ -5419,7 +5419,7 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5419
5419
|
}
|
|
5420
5420
|
const We = m(!1);
|
|
5421
5421
|
function tt() {
|
|
5422
|
-
const de =
|
|
5422
|
+
const de = le.value;
|
|
5423
5423
|
if (!de) return;
|
|
5424
5424
|
const Ae = {
|
|
5425
5425
|
items: mt.value.map((He) => ({ ...He })),
|
|
@@ -5484,7 +5484,7 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5484
5484
|
u("open-timezone");
|
|
5485
5485
|
break;
|
|
5486
5486
|
case "tour":
|
|
5487
|
-
(Ae =
|
|
5487
|
+
(Ae = le.value) == null || Ae.dispatchEvent(new CustomEvent("fe:tour-restart", { bubbles: !0 }));
|
|
5488
5488
|
break;
|
|
5489
5489
|
default:
|
|
5490
5490
|
ue(de.key);
|
|
@@ -5492,7 +5492,7 @@ const yh = ["data-prefers-dark"], bh = ["aria-label"], gh = ["aria-label", "onKe
|
|
|
5492
5492
|
}
|
|
5493
5493
|
return (de, Ae) => (c(), d("div", {
|
|
5494
5494
|
ref_key: "rootEl",
|
|
5495
|
-
ref:
|
|
5495
|
+
ref: le,
|
|
5496
5496
|
class: xe(["fe-toolbar", {
|
|
5497
5497
|
"fe-toolbar--narrow": e.narrow,
|
|
5498
5498
|
/* surucu:d1 — ALWAYS on. It is no longer a variant: this is the only
|
|
@@ -6127,7 +6127,7 @@ function Mi(e) {
|
|
|
6127
6127
|
let t = jc.get(e);
|
|
6128
6128
|
return t || (t = `<span class="fe-ftile fe-ftile--${e}">${Uc(e)}</span>`, jc.set(e, t)), t;
|
|
6129
6129
|
}
|
|
6130
|
-
function
|
|
6130
|
+
function dn(e) {
|
|
6131
6131
|
return Mi(Vn(e));
|
|
6132
6132
|
}
|
|
6133
6133
|
function As(e) {
|
|
@@ -6799,7 +6799,7 @@ function _y() {
|
|
|
6799
6799
|
return wn.value;
|
|
6800
6800
|
}
|
|
6801
6801
|
function SD(e) {
|
|
6802
|
-
wn.value !== e && (wn.value = e,
|
|
6802
|
+
wn.value !== e && (wn.value = e, vn());
|
|
6803
6803
|
}
|
|
6804
6804
|
function yd() {
|
|
6805
6805
|
return Math.floor(Date.now() / 1e3);
|
|
@@ -6857,22 +6857,22 @@ function Ey(e, t) {
|
|
|
6857
6857
|
Vt.value = {
|
|
6858
6858
|
...Vt.value,
|
|
6859
6859
|
[e]: { ...n ?? {}, ...t, t: yd() }
|
|
6860
|
-
}, xy(),
|
|
6860
|
+
}, xy(), vn();
|
|
6861
6861
|
}
|
|
6862
6862
|
function zy(e) {
|
|
6863
6863
|
if (!e || !wn.value) return;
|
|
6864
6864
|
const t = Vt.value[e];
|
|
6865
6865
|
if (!t) return;
|
|
6866
6866
|
const n = yd();
|
|
6867
|
-
t.t !== n && (Vt.value = { ...Vt.value, [e]: { ...t, t: n } },
|
|
6867
|
+
t.t !== n && (Vt.value = { ...Vt.value, [e]: { ...t, t: n } }, vn());
|
|
6868
6868
|
}
|
|
6869
6869
|
function Ay(e) {
|
|
6870
6870
|
if (!e || !Vt.value[e]) return;
|
|
6871
6871
|
const t = { ...Vt.value };
|
|
6872
|
-
delete t[e], Vt.value = t,
|
|
6872
|
+
delete t[e], Vt.value = t, vn();
|
|
6873
6873
|
}
|
|
6874
6874
|
function Py() {
|
|
6875
|
-
Vt.value = {},
|
|
6875
|
+
Vt.value = {}, vn();
|
|
6876
6876
|
}
|
|
6877
6877
|
const ma = [
|
|
6878
6878
|
/* Name is pinned first and cannot be hidden, but its width is the person's
|
|
@@ -6889,7 +6889,7 @@ const ma = [
|
|
|
6889
6889
|
stylesheet has to agree with it about which ones exist. */
|
|
6890
6890
|
{ id: "star", width: 24, min: 24, max: 24, hideable: !1, resizable: !1 }
|
|
6891
6891
|
], ou = { check: 28, menu: 28 }, CD = 120, su = 220;
|
|
6892
|
-
function
|
|
6892
|
+
function fn(e) {
|
|
6893
6893
|
return ma.find((t) => t.id === e);
|
|
6894
6894
|
}
|
|
6895
6895
|
function ws(e) {
|
|
@@ -6903,12 +6903,12 @@ function Di(e) {
|
|
|
6903
6903
|
if (n.w && typeof n.w == "object")
|
|
6904
6904
|
for (const [v, p] of Object.entries(n.w)) {
|
|
6905
6905
|
if (!ws(v) || typeof p != "number" || !Number.isFinite(p)) continue;
|
|
6906
|
-
const h =
|
|
6906
|
+
const h = fn(v);
|
|
6907
6907
|
h && (r[v] = Math.min(h.max, Math.max(h.min, Math.round(p))));
|
|
6908
6908
|
}
|
|
6909
6909
|
const a = Array.isArray(n.hidden) ? n.hidden.filter((v) => {
|
|
6910
6910
|
var p;
|
|
6911
|
-
return ws(v) && ((p =
|
|
6911
|
+
return ws(v) && ((p = fn(v)) == null ? void 0 : p.hideable);
|
|
6912
6912
|
}) : [], u = Array.isArray(n.o) ? [...new Set(n.o.filter(ws))] : void 0;
|
|
6913
6913
|
return { w: r, hidden: [...new Set(a)], o: u };
|
|
6914
6914
|
}
|
|
@@ -6923,17 +6923,17 @@ function ga() {
|
|
|
6923
6923
|
return n;
|
|
6924
6924
|
}
|
|
6925
6925
|
function bd(e, t) {
|
|
6926
|
-
const n =
|
|
6926
|
+
const n = fn(e);
|
|
6927
6927
|
if (!n || !n.hideable) return;
|
|
6928
6928
|
const r = ga(), a = r.indexOf(e);
|
|
6929
6929
|
if (a === -1) return;
|
|
6930
6930
|
const u = [...r];
|
|
6931
|
-
u.splice(a, 1), u.splice(Math.max(0, Math.min(u.length, t)), 0, e), u.join() !== r.join() && (Ct.value = { ...Ct.value, o: u },
|
|
6931
|
+
u.splice(a, 1), u.splice(Math.max(0, Math.min(u.length, t)), 0, e), u.join() !== r.join() && (Ct.value = { ...Ct.value, o: u }, vn());
|
|
6932
6932
|
}
|
|
6933
6933
|
function Ly(e, t) {
|
|
6934
6934
|
const n = ga().filter((p) => {
|
|
6935
6935
|
var h;
|
|
6936
|
-
return (h =
|
|
6936
|
+
return (h = fn(p)) == null ? void 0 : h.hideable;
|
|
6937
6937
|
}), r = n.indexOf(e);
|
|
6938
6938
|
if (r === -1) return;
|
|
6939
6939
|
const a = r + t;
|
|
@@ -6944,19 +6944,19 @@ function Ly(e, t) {
|
|
|
6944
6944
|
function ru(e, t) {
|
|
6945
6945
|
const n = ga().filter((a) => {
|
|
6946
6946
|
var u;
|
|
6947
|
-
return (u =
|
|
6947
|
+
return (u = fn(a)) == null ? void 0 : u.hideable;
|
|
6948
6948
|
}), r = n.indexOf(e);
|
|
6949
6949
|
return r === -1 ? !1 : r + t >= 0 && r + t < n.length;
|
|
6950
6950
|
}
|
|
6951
6951
|
function wo(e) {
|
|
6952
|
-
const t =
|
|
6952
|
+
const t = fn(e);
|
|
6953
6953
|
return t ? Ct.value.w[e] ?? t.width : 0;
|
|
6954
6954
|
}
|
|
6955
6955
|
function Yr(e, t) {
|
|
6956
|
-
const n =
|
|
6956
|
+
const n = fn(e);
|
|
6957
6957
|
if (!n || !n.resizable) return;
|
|
6958
6958
|
const r = Math.min(n.max, Math.max(n.min, Math.round(t)));
|
|
6959
|
-
Ct.value.w[e] !== r && (Ct.value = { ...Ct.value, w: { ...Ct.value.w, [e]: r } },
|
|
6959
|
+
Ct.value.w[e] !== r && (Ct.value = { ...Ct.value, w: { ...Ct.value.w, [e]: r } }, vn());
|
|
6960
6960
|
}
|
|
6961
6961
|
function gd() {
|
|
6962
6962
|
return Ct.value.w.name === void 0;
|
|
@@ -6966,22 +6966,22 @@ function Dy(e) {
|
|
|
6966
6966
|
let n = !1;
|
|
6967
6967
|
for (const [r, a] of Object.entries(e)) {
|
|
6968
6968
|
if (!ws(r) || typeof a != "number" || !Number.isFinite(a) || t[r] !== void 0) continue;
|
|
6969
|
-
const u =
|
|
6969
|
+
const u = fn(r);
|
|
6970
6970
|
!u || !u.resizable || (t[r] = Math.min(u.max, Math.max(u.min, Math.round(a))), n = !0);
|
|
6971
6971
|
}
|
|
6972
|
-
n && (Ct.value = { ...Ct.value, w: t },
|
|
6972
|
+
n && (Ct.value = { ...Ct.value, w: t }, vn());
|
|
6973
6973
|
}
|
|
6974
6974
|
function Fs(e) {
|
|
6975
6975
|
return Ct.value.hidden.includes(e);
|
|
6976
6976
|
}
|
|
6977
6977
|
function By(e, t) {
|
|
6978
|
-
const n =
|
|
6978
|
+
const n = fn(e);
|
|
6979
6979
|
if (!n || !n.hideable || Fs(e) === t) return;
|
|
6980
6980
|
const r = new Set(Ct.value.hidden);
|
|
6981
|
-
t ? r.add(e) : r.delete(e), Ct.value = { ...Ct.value, hidden: [...r] },
|
|
6981
|
+
t ? r.add(e) : r.delete(e), Ct.value = { ...Ct.value, hidden: [...r] }, vn();
|
|
6982
6982
|
}
|
|
6983
6983
|
function Oy() {
|
|
6984
|
-
Ct.value = { w: {}, hidden: [] },
|
|
6984
|
+
Ct.value = { w: {}, hidden: [] }, vn();
|
|
6985
6985
|
}
|
|
6986
6986
|
function Iy() {
|
|
6987
6987
|
var e;
|
|
@@ -7003,12 +7003,12 @@ function TD(e) {
|
|
|
7003
7003
|
return {
|
|
7004
7004
|
get: () => Kn.value[e],
|
|
7005
7005
|
set(t) {
|
|
7006
|
-
Kn.value = { ...Kn.value, [e]: t },
|
|
7006
|
+
Kn.value = { ...Kn.value, [e]: t }, vn();
|
|
7007
7007
|
},
|
|
7008
7008
|
clear() {
|
|
7009
7009
|
if (!(e in Kn.value)) return;
|
|
7010
7010
|
const t = { ...Kn.value };
|
|
7011
|
-
delete t[e], Kn.value = t,
|
|
7011
|
+
delete t[e], Kn.value = t, vn();
|
|
7012
7012
|
},
|
|
7013
7013
|
ready: () => Po.value,
|
|
7014
7014
|
persistable: () => Lo.value
|
|
@@ -7016,7 +7016,7 @@ function TD(e) {
|
|
|
7016
7016
|
}
|
|
7017
7017
|
const Ny = 800;
|
|
7018
7018
|
let Un, Ns = !1;
|
|
7019
|
-
function
|
|
7019
|
+
function vn() {
|
|
7020
7020
|
!Po.value || !Lo.value || !Ua || (Ns = !0, Un && clearTimeout(Un), Un = setTimeout(Ks, Ny));
|
|
7021
7021
|
}
|
|
7022
7022
|
function Ks() {
|
|
@@ -7052,17 +7052,17 @@ function Ry(e, t, n = {}) {
|
|
|
7052
7052
|
), v = {};
|
|
7053
7053
|
for (const z of u) v[z] = wo(z);
|
|
7054
7054
|
v.name = wo("name");
|
|
7055
|
-
const p = ou.check + ou.menu + a + r * (u.length + 2), h = gd(), b =
|
|
7055
|
+
const p = ou.check + ou.menu + a + r * (u.length + 2), h = gd(), b = fn("name");
|
|
7056
7056
|
if (h && e > 0) {
|
|
7057
7057
|
const z = e - p;
|
|
7058
7058
|
let L = u.reduce((H, D) => H + v[D], 0);
|
|
7059
7059
|
const T = z - su;
|
|
7060
7060
|
if (L > T) {
|
|
7061
|
-
const H = u.reduce((D, F) => D + (v[F] -
|
|
7061
|
+
const H = u.reduce((D, F) => D + (v[F] - fn(F).min), 0);
|
|
7062
7062
|
if (H > 0) {
|
|
7063
7063
|
const D = Math.min(1, (L - T) / H);
|
|
7064
7064
|
for (const F of u) {
|
|
7065
|
-
const w =
|
|
7065
|
+
const w = fn(F);
|
|
7066
7066
|
v[F] = Math.max(w.min, v[F] - Math.ceil((v[F] - w.min) * D));
|
|
7067
7067
|
}
|
|
7068
7068
|
L = u.reduce((F, w) => F + v[w], 0);
|
|
@@ -7565,7 +7565,7 @@ const mb = /* @__PURE__ */ qe({
|
|
|
7565
7565
|
return H.value && /^(image|video)[/]/.test(String(((U = h.value) == null ? void 0 : U.mime_type) ?? "")) ? H.value : null;
|
|
7566
7566
|
}
|
|
7567
7567
|
), M = k(
|
|
7568
|
-
() =>
|
|
7568
|
+
() => dn(h.value && !b.value ? h.value : { type: "dir" })
|
|
7569
7569
|
), $ = k(
|
|
7570
7570
|
() => z.value != null && n.apiBase !== void 0 && !b.value
|
|
7571
7571
|
);
|
|
@@ -7597,23 +7597,23 @@ const mb = /* @__PURE__ */ qe({
|
|
|
7597
7597
|
function K(U) {
|
|
7598
7598
|
return a(`inspector.perm.${U}`) === `inspector.perm.${U}` ? U : a(`inspector.perm.${U}`);
|
|
7599
7599
|
}
|
|
7600
|
-
const q = m("idle"), V = m([]), re = m(null), he = m(!0), fe = m(!1),
|
|
7600
|
+
const q = m("idle"), V = m([]), re = m(null), he = m(!0), fe = m(!1), le = m("idle"), Q = m([]);
|
|
7601
7601
|
let X = 0;
|
|
7602
7602
|
async function be() {
|
|
7603
7603
|
const U = ++X;
|
|
7604
7604
|
if (re.value = null, V.value = [], Q.value = [], h.value && y.value && z.value != null ? (q.value = "loading", me(U)) : q.value = "hidden", h.value) {
|
|
7605
|
-
|
|
7605
|
+
le.value = "loading";
|
|
7606
7606
|
const R = h.value.path;
|
|
7607
7607
|
try {
|
|
7608
7608
|
const { shares: Z } = await n.api.listShares(R);
|
|
7609
7609
|
if (U !== X) return;
|
|
7610
|
-
Q.value = Array.isArray(Z) ? Z : [],
|
|
7610
|
+
Q.value = Array.isArray(Z) ? Z : [], le.value = "ok";
|
|
7611
7611
|
} catch {
|
|
7612
7612
|
if (U !== X) return;
|
|
7613
|
-
|
|
7613
|
+
le.value = "hidden";
|
|
7614
7614
|
}
|
|
7615
7615
|
} else
|
|
7616
|
-
|
|
7616
|
+
le.value = "hidden";
|
|
7617
7617
|
}
|
|
7618
7618
|
async function me(U) {
|
|
7619
7619
|
const R = z.value;
|
|
@@ -7696,7 +7696,7 @@ const mb = /* @__PURE__ */ qe({
|
|
|
7696
7696
|
ge.value = !0;
|
|
7697
7697
|
try {
|
|
7698
7698
|
const pe = ((R = (await n.api.createShare({ path: U.path })).share) == null ? void 0 : R.url) ?? "", { shares: We } = await n.api.listShares(U.path);
|
|
7699
|
-
Q.value = Array.isArray(We) ? We : [],
|
|
7699
|
+
Q.value = Array.isArray(We) ? We : [], le.value = "ok", pe && (r("share-created", { path: U.path, url: pe }), await W(pe));
|
|
7700
7700
|
} catch (Z) {
|
|
7701
7701
|
r("toast", Z.message);
|
|
7702
7702
|
} finally {
|
|
@@ -7717,7 +7717,7 @@ const mb = /* @__PURE__ */ qe({
|
|
|
7717
7717
|
() => void be(),
|
|
7718
7718
|
{ immediate: !0 }
|
|
7719
7719
|
);
|
|
7720
|
-
const ue = m("hidden"), A = m([]),
|
|
7720
|
+
const ue = m("hidden"), A = m([]), ie = m(""), Se = m(!1), Ye = k(
|
|
7721
7721
|
() => {
|
|
7722
7722
|
var U;
|
|
7723
7723
|
return typeof ((U = h.value) == null ? void 0 : U.id) == "number" ? h.value.id : null;
|
|
@@ -7743,11 +7743,11 @@ const mb = /* @__PURE__ */ qe({
|
|
|
7743
7743
|
}
|
|
7744
7744
|
}
|
|
7745
7745
|
async function mt() {
|
|
7746
|
-
const U = Ye.value, R =
|
|
7746
|
+
const U = Ye.value, R = ie.value.trim();
|
|
7747
7747
|
if (!(U == null || R === "" || Se.value)) {
|
|
7748
7748
|
Se.value = !0;
|
|
7749
7749
|
try {
|
|
7750
|
-
await n.api.addComment(U, R),
|
|
7750
|
+
await n.api.addComment(U, R), ie.value = "", await Je();
|
|
7751
7751
|
} catch (Z) {
|
|
7752
7752
|
r("toast", Z.message);
|
|
7753
7753
|
} finally {
|
|
@@ -7792,7 +7792,7 @@ const mb = /* @__PURE__ */ qe({
|
|
|
7792
7792
|
return Fe(
|
|
7793
7793
|
() => Ye.value,
|
|
7794
7794
|
() => {
|
|
7795
|
-
A.value = [],
|
|
7795
|
+
A.value = [], ie.value = "", Je();
|
|
7796
7796
|
},
|
|
7797
7797
|
{ immediate: !0 }
|
|
7798
7798
|
), (U, R) => (c(), d("aside", {
|
|
@@ -8070,7 +8070,7 @@ const mb = /* @__PURE__ */ qe({
|
|
|
8070
8070
|
onClick: R[13] || (R[13] = (Z) => r("manage-permissions", h.value))
|
|
8071
8071
|
}, f(s(a)("inspector.people.manage")), 1)) : g("", !0)
|
|
8072
8072
|
])) : g("", !0),
|
|
8073
|
-
|
|
8073
|
+
le.value === "ok" && (!e.tabs || N.value === "details") ? (c(), d("section", Dg, [
|
|
8074
8074
|
o("h3", Bg, f(e.tabs ? s(a)("inspector.link") : s(a)("inspector.section.shares")), 1),
|
|
8075
8075
|
e.tabs && Q.value.length === 0 ? (c(), d("div", Og, [
|
|
8076
8076
|
o("span", {
|
|
@@ -8150,7 +8150,7 @@ const mb = /* @__PURE__ */ qe({
|
|
|
8150
8150
|
onSubmit: je(mt, ["prevent"])
|
|
8151
8151
|
}, [
|
|
8152
8152
|
Ve(o("input", {
|
|
8153
|
-
"onUpdate:modelValue": R[14] || (R[14] = (Z) =>
|
|
8153
|
+
"onUpdate:modelValue": R[14] || (R[14] = (Z) => ie.value = Z),
|
|
8154
8154
|
type: "text",
|
|
8155
8155
|
class: "fe-inspector__comment-input",
|
|
8156
8156
|
maxlength: "5000",
|
|
@@ -8158,12 +8158,12 @@ const mb = /* @__PURE__ */ qe({
|
|
|
8158
8158
|
"aria-label": s(a)("inspector.comments.placeholder"),
|
|
8159
8159
|
disabled: Se.value
|
|
8160
8160
|
}, null, 8, ok), [
|
|
8161
|
-
[rt,
|
|
8161
|
+
[rt, ie.value]
|
|
8162
8162
|
]),
|
|
8163
8163
|
o("button", {
|
|
8164
8164
|
type: "submit",
|
|
8165
8165
|
class: "fe-btn fe-btn--primary fe-btn--sm",
|
|
8166
|
-
disabled: Se.value ||
|
|
8166
|
+
disabled: Se.value || ie.value.trim() === ""
|
|
8167
8167
|
}, f(s(a)("inspector.comments.send")), 9, sk)
|
|
8168
8168
|
], 32)
|
|
8169
8169
|
], 64))
|
|
@@ -8741,7 +8741,7 @@ function Ia() {
|
|
|
8741
8741
|
function Co() {
|
|
8742
8742
|
return Na ? Date.now() - Na.startedAt > i_ ? (Na = null, null) : Na : null;
|
|
8743
8743
|
}
|
|
8744
|
-
function
|
|
8744
|
+
function pn(e) {
|
|
8745
8745
|
var t;
|
|
8746
8746
|
return (t = e.dataTransfer) != null && t.types.includes($d) ? !0 : Co() !== null;
|
|
8747
8747
|
}
|
|
@@ -9352,13 +9352,13 @@ const H_ = ["aria-label", "aria-busy"], F_ = {
|
|
|
9352
9352
|
}
|
|
9353
9353
|
const he = m(null);
|
|
9354
9354
|
function fe(N, ee) {
|
|
9355
|
-
N.type === "dir" &&
|
|
9355
|
+
N.type === "dir" && pn(ee) && (ee.preventDefault(), ee.stopPropagation(), ee.dataTransfer && (ee.dataTransfer.dropEffect = "move"), he.value = N.path);
|
|
9356
9356
|
}
|
|
9357
|
-
function
|
|
9357
|
+
function le(N) {
|
|
9358
9358
|
he.value === N.path && (he.value = null);
|
|
9359
9359
|
}
|
|
9360
9360
|
function Q(N, ee) {
|
|
9361
|
-
he.value = null, N.type === "dir" &&
|
|
9361
|
+
he.value = null, N.type === "dir" && pn(ee) && (ee.preventDefault(), ee.stopPropagation(), r("item-drop-into", N, ee));
|
|
9362
9362
|
}
|
|
9363
9363
|
const X = Ni(
|
|
9364
9364
|
(N, ee) => r("context-card", N, { ...ee, preventDefault: () => {
|
|
@@ -9421,7 +9421,7 @@ const H_ = ["aria-label", "aria-busy"], F_ = {
|
|
|
9421
9421
|
onContextmenu: (Ee) => q(G, Ee),
|
|
9422
9422
|
onDragstart: (Ee) => re(G, Ee),
|
|
9423
9423
|
onDragover: (Ee) => fe(G, Ee),
|
|
9424
|
-
onDragleave: (Ee) =>
|
|
9424
|
+
onDragleave: (Ee) => le(G),
|
|
9425
9425
|
onDrop: (Ee) => Q(G, Ee),
|
|
9426
9426
|
onTouchstartPassive: (Ee) => s(X).onTouchStart(G, Ee),
|
|
9427
9427
|
onTouchend: ee[4] || (ee[4] = //@ts-ignore
|
|
@@ -9458,7 +9458,7 @@ const H_ = ["aria-label", "aria-busy"], F_ = {
|
|
|
9458
9458
|
S(G).length === 0 ? (c(), d("span", {
|
|
9459
9459
|
key: 0,
|
|
9460
9460
|
class: "fe-grid__icon fe-grid__icon--svg",
|
|
9461
|
-
innerHTML: s(
|
|
9461
|
+
innerHTML: s(dn)(G)
|
|
9462
9462
|
}, null, 8, R_)) : g("", !0)
|
|
9463
9463
|
], 64)) : w(G) ? (c(), d("img", {
|
|
9464
9464
|
key: 1,
|
|
@@ -9479,7 +9479,7 @@ const H_ = ["aria-label", "aria-busy"], F_ = {
|
|
|
9479
9479
|
}, null, 8, j_)) : (c(), d("span", {
|
|
9480
9480
|
key: 3,
|
|
9481
9481
|
class: "fe-grid__icon fe-grid__icon--svg",
|
|
9482
|
-
innerHTML: s(
|
|
9482
|
+
innerHTML: s(dn)(G)
|
|
9483
9483
|
}, null, 8, V_)),
|
|
9484
9484
|
!$(G) && w(G) && s(xd)(G) ? (c(), d("span", Y_)) : g("", !0),
|
|
9485
9485
|
x(G) ? (c(), d("div", {
|
|
@@ -9516,7 +9516,7 @@ const H_ = ["aria-label", "aria-busy"], F_ = {
|
|
|
9516
9516
|
}, null, 8, q_)) : (c(), d("span", {
|
|
9517
9517
|
key: 1,
|
|
9518
9518
|
class: "fe-grid__tile fe-grid__tile--svg",
|
|
9519
|
-
innerHTML: s(
|
|
9519
|
+
innerHTML: s(dn)(G)
|
|
9520
9520
|
}, null, 8, G_)),
|
|
9521
9521
|
e.selectable ? (c(), d("span", {
|
|
9522
9522
|
key: 2,
|
|
@@ -9648,7 +9648,7 @@ const H_ = ["aria-label", "aria-busy"], F_ = {
|
|
|
9648
9648
|
function z(w, M) {
|
|
9649
9649
|
return p.value && w > 0 && M === 0;
|
|
9650
9650
|
}
|
|
9651
|
-
const L = /* @__PURE__ */ new Set(), T =
|
|
9651
|
+
const L = /* @__PURE__ */ new Set(), T = dn({ type: "dir", mime_type: "inode/storage" });
|
|
9652
9652
|
function H(w) {
|
|
9653
9653
|
return typeof w.usedBytes == "number" && w.usedBytes >= 0 ? a("drive.storage.used_unlimited", { used: u(w.usedBytes) }) : a("conn.guide.storage");
|
|
9654
9654
|
}
|
|
@@ -11468,7 +11468,7 @@ const F1 = {
|
|
|
11468
11468
|
const X = new Date(Q ?? "").getTime();
|
|
11469
11469
|
return Number.isNaN(X) ? "" : v(X);
|
|
11470
11470
|
}
|
|
11471
|
-
function
|
|
11471
|
+
function le(Q) {
|
|
11472
11472
|
return Q.bucket ? Q.prefix ? `${Q.bucket}/${Q.prefix}` : Q.bucket : u("conn.s3keys.scopeAll");
|
|
11473
11473
|
}
|
|
11474
11474
|
return (Q, X) => (c(), d("section", F1, [
|
|
@@ -11561,7 +11561,7 @@ const F1 = {
|
|
|
11561
11561
|
o("td", null, [
|
|
11562
11562
|
o("code", null, f(be.access_key_id), 1)
|
|
11563
11563
|
]),
|
|
11564
|
-
o("td", null, f(
|
|
11564
|
+
o("td", null, f(le(be)), 1),
|
|
11565
11565
|
o("td", null, f(be.last_used_at ? fe(be.last_used_at) : s(u)("conn.s3keys.neverUsed")), 1),
|
|
11566
11566
|
o("td", i0, [
|
|
11567
11567
|
o("button", {
|
|
@@ -12008,7 +12008,7 @@ const D0 = {
|
|
|
12008
12008
|
I.value = !1;
|
|
12009
12009
|
}
|
|
12010
12010
|
}
|
|
12011
|
-
const
|
|
12011
|
+
const le = k(() => {
|
|
12012
12012
|
var j, N, ee;
|
|
12013
12013
|
const me = h.value, C = (j = L.value) == null ? void 0 : j.path;
|
|
12014
12014
|
if (!me || !C) return "";
|
|
@@ -12016,7 +12016,7 @@ const D0 = {
|
|
|
12016
12016
|
return `sudo mount -t nfs -o nfsvers=3,tcp,port=${me.port},mountport=${me.port},nolock${P} ${me.host}:${C} /mnt/filex`;
|
|
12017
12017
|
});
|
|
12018
12018
|
async function Q() {
|
|
12019
|
-
const me =
|
|
12019
|
+
const me = le.value;
|
|
12020
12020
|
if (!me) return;
|
|
12021
12021
|
let C = !1;
|
|
12022
12022
|
try {
|
|
@@ -12107,7 +12107,7 @@ const D0 = {
|
|
|
12107
12107
|
s(L) ? (c(), d("div", J0, [
|
|
12108
12108
|
o("p", Z0, f(s(u)("conn.nfs.once")), 1),
|
|
12109
12109
|
o("div", Q0, [
|
|
12110
|
-
o("code", null, f(
|
|
12110
|
+
o("code", null, f(le.value), 1),
|
|
12111
12111
|
o("button", {
|
|
12112
12112
|
class: "fe-s3keys__copy",
|
|
12113
12113
|
onClick: Q
|
|
@@ -12262,15 +12262,15 @@ const l2 = {
|
|
|
12262
12262
|
mcp: !1
|
|
12263
12263
|
}), x = m(""), W = m(null);
|
|
12264
12264
|
function I() {
|
|
12265
|
-
const
|
|
12266
|
-
return Q &&
|
|
12265
|
+
const le = S.filter((X) => E.value[X]), Q = x.value.trim();
|
|
12266
|
+
return Q && le.push("root:" + Q), le.join(",");
|
|
12267
12267
|
}
|
|
12268
12268
|
ft(async () => {
|
|
12269
12269
|
await L(), r("active", { hasToken: p.value.length > 0 });
|
|
12270
12270
|
});
|
|
12271
12271
|
function Y() {
|
|
12272
|
-
const
|
|
12273
|
-
return
|
|
12272
|
+
const le = (n.protocol || "").toUpperCase();
|
|
12273
|
+
return le ? n.host ? `${le} — ${n.host}` : le : u("conn.tokens.defaultName", { date: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) });
|
|
12274
12274
|
}
|
|
12275
12275
|
function K() {
|
|
12276
12276
|
return n.protocol ? Y() : u("conn.tokens.namePlaceholder");
|
|
@@ -12280,10 +12280,10 @@ const l2 = {
|
|
|
12280
12280
|
w.value = !0, M.value = !1;
|
|
12281
12281
|
try {
|
|
12282
12282
|
if (n.full) {
|
|
12283
|
-
const
|
|
12283
|
+
const le = I() || "read";
|
|
12284
12284
|
await T({
|
|
12285
12285
|
label: F.value.trim() || Y(),
|
|
12286
|
-
scopes:
|
|
12286
|
+
scopes: le,
|
|
12287
12287
|
expires_in_days: W.value && W.value > 0 ? W.value : void 0
|
|
12288
12288
|
}), await L(), r("active", { hasToken: p.value.length > 0 }), F.value = "", x.value = "";
|
|
12289
12289
|
return;
|
|
@@ -12294,34 +12294,34 @@ const l2 = {
|
|
|
12294
12294
|
}
|
|
12295
12295
|
}
|
|
12296
12296
|
}
|
|
12297
|
-
async function V(
|
|
12298
|
-
if ($.value !==
|
|
12299
|
-
$.value =
|
|
12297
|
+
async function V(le) {
|
|
12298
|
+
if ($.value !== le.id) {
|
|
12299
|
+
$.value = le.id;
|
|
12300
12300
|
return;
|
|
12301
12301
|
}
|
|
12302
12302
|
$.value = null, w.value = !0;
|
|
12303
12303
|
try {
|
|
12304
|
-
await H(
|
|
12304
|
+
await H(le.id), r("active", { hasToken: p.value.length > 0 });
|
|
12305
12305
|
} finally {
|
|
12306
12306
|
w.value = !1;
|
|
12307
12307
|
}
|
|
12308
12308
|
}
|
|
12309
12309
|
async function re() {
|
|
12310
|
-
var
|
|
12311
|
-
if ((
|
|
12310
|
+
var le;
|
|
12311
|
+
if ((le = z.value) != null && le.token)
|
|
12312
12312
|
try {
|
|
12313
12313
|
await navigator.clipboard.writeText(z.value.token), M.value = !0, window.setTimeout(() => M.value = !1, 1600);
|
|
12314
12314
|
} catch {
|
|
12315
12315
|
}
|
|
12316
12316
|
}
|
|
12317
|
-
function he(
|
|
12318
|
-
const Q = new Date(
|
|
12317
|
+
function he(le) {
|
|
12318
|
+
const Q = new Date(le ?? "").getTime();
|
|
12319
12319
|
return Number.isNaN(Q) ? "" : v(Q);
|
|
12320
12320
|
}
|
|
12321
|
-
function fe(
|
|
12322
|
-
return
|
|
12321
|
+
function fe(le) {
|
|
12322
|
+
return le.last_used_at ? he(le.last_used_at) : u("conn.tokens.neverUsed");
|
|
12323
12323
|
}
|
|
12324
|
-
return (
|
|
12324
|
+
return (le, Q) => (c(), d("section", l2, [
|
|
12325
12325
|
o("header", c2, [
|
|
12326
12326
|
o("h4", u2, f(s(u)("conn.tokens.title")), 1),
|
|
12327
12327
|
o("p", d2, f(s(u)("conn.tokens.lead")), 1)
|
|
@@ -12548,37 +12548,37 @@ const l2 = {
|
|
|
12548
12548
|
const V = k(() => {
|
|
12549
12549
|
const R = n.config.theme ?? "auto";
|
|
12550
12550
|
return R === "light" || R === "dark" ? R : K.value ? "dark" : "light";
|
|
12551
|
-
}), re = m(n.initialTab ?? "storages"), he = m({ kind: "none" }), fe = m(""),
|
|
12551
|
+
}), re = m(n.initialTab ?? "storages"), he = m({ kind: "none" }), fe = m(""), le = m(""), Q = m(!1), X = m(!0), be = m({}), me = m([]), C = m(!1), P = m(!1), j = m(null), N = m(
|
|
12552
12552
|
null
|
|
12553
12553
|
), ee = m(null), G = m(null), $e = k(
|
|
12554
12554
|
() => v.value.map((R) => {
|
|
12555
12555
|
const Z = u(R.i18n_key);
|
|
12556
12556
|
return { value: R.driver, label: Z === R.i18n_key ? R.label : Z };
|
|
12557
12557
|
})
|
|
12558
|
-
), Ce = k(() => x(
|
|
12558
|
+
), Ce = k(() => x(le.value));
|
|
12559
12559
|
function Ee() {
|
|
12560
12560
|
var Z;
|
|
12561
12561
|
const R = ((Z = v.value[0]) == null ? void 0 : Z.driver) ?? "";
|
|
12562
|
-
|
|
12562
|
+
le.value = R, fe.value = "", Q.value = !1, X.value = !0, be.value = W(R), me.value = [], j.value = null, ee.value = null, he.value = { kind: "new" };
|
|
12563
12563
|
}
|
|
12564
12564
|
function Be(R) {
|
|
12565
|
-
|
|
12565
|
+
le.value = R.driver, fe.value = R.name, Q.value = !!R.read_only, X.value = R.enabled !== !1, be.value = { ...R.config ?? {} }, me.value = [], j.value = null, ee.value = null, he.value = { kind: "edit", row: R };
|
|
12566
12566
|
}
|
|
12567
12567
|
function ge() {
|
|
12568
12568
|
he.value = { kind: "none" }, j.value = null, ee.value = null;
|
|
12569
12569
|
}
|
|
12570
12570
|
function De(R) {
|
|
12571
|
-
|
|
12571
|
+
le.value = R, be.value = W(R), me.value = [], j.value = null;
|
|
12572
12572
|
}
|
|
12573
12573
|
function se() {
|
|
12574
|
-
const R = I(
|
|
12574
|
+
const R = I(le.value, be.value).map((Z) => Z.key);
|
|
12575
12575
|
return me.value = R, fe.value.trim() ? R.length ? ee.value = u("conn.form.fillRequired") : ee.value = null : ee.value = u("conn.form.nameRequired"), !ee.value;
|
|
12576
12576
|
}
|
|
12577
12577
|
async function ue() {
|
|
12578
12578
|
P.value = !0, j.value = null;
|
|
12579
12579
|
try {
|
|
12580
12580
|
j.value = await S({
|
|
12581
|
-
driver:
|
|
12581
|
+
driver: le.value,
|
|
12582
12582
|
config: be.value
|
|
12583
12583
|
});
|
|
12584
12584
|
} finally {
|
|
@@ -12591,7 +12591,7 @@ const l2 = {
|
|
|
12591
12591
|
try {
|
|
12592
12592
|
const R = {
|
|
12593
12593
|
name: fe.value.trim(),
|
|
12594
|
-
driver:
|
|
12594
|
+
driver: le.value,
|
|
12595
12595
|
config: be.value,
|
|
12596
12596
|
read_only: Q.value,
|
|
12597
12597
|
enabled: X.value
|
|
@@ -12611,7 +12611,7 @@ const l2 = {
|
|
|
12611
12611
|
}
|
|
12612
12612
|
}
|
|
12613
12613
|
}
|
|
12614
|
-
async function
|
|
12614
|
+
async function ie(R) {
|
|
12615
12615
|
if (G.value !== R.id) {
|
|
12616
12616
|
G.value = R.id;
|
|
12617
12617
|
return;
|
|
@@ -12643,7 +12643,7 @@ const l2 = {
|
|
|
12643
12643
|
null
|
|
12644
12644
|
), Ne = m(null), U = k(
|
|
12645
12645
|
() => {
|
|
12646
|
-
var R, Z, pe, We, tt, at, Ge, lt, de, Ae, He, pt,
|
|
12646
|
+
var R, Z, pe, We, tt, at, Ge, lt, de, Ae, He, pt, gt, Tt, Xt, Yt, Mt, Ot, _t, wt, At, Nt, Jt, ct, on, $t, Wt;
|
|
12647
12647
|
return Vw(
|
|
12648
12648
|
Ke.value,
|
|
12649
12649
|
{
|
|
@@ -12661,7 +12661,7 @@ const l2 = {
|
|
|
12661
12661
|
sftpLogin: ((de = Ne.value) == null ? void 0 : de.login) || void 0,
|
|
12662
12662
|
sftpHasKey: (Ae = Ne.value) == null ? void 0 : Ae.hasKey,
|
|
12663
12663
|
ftpsHost: ((pt = (He = Ne.value) == null ? void 0 : He.ftps) == null ? void 0 : pt.host) || void 0,
|
|
12664
|
-
ftpsPort: (Tt = (
|
|
12664
|
+
ftpsPort: (Tt = (gt = Ne.value) == null ? void 0 : gt.ftps) == null ? void 0 : Tt.port,
|
|
12665
12665
|
ftpsEnabled: (Yt = (Xt = Ne.value) == null ? void 0 : Xt.ftps) == null ? void 0 : Yt.enabled,
|
|
12666
12666
|
ftpsPasvMin: (Ot = (Mt = Ne.value) == null ? void 0 : Mt.ftps) == null ? void 0 : Ot.pasv_min,
|
|
12667
12667
|
ftpsPasvMax: (wt = (_t = Ne.value) == null ? void 0 : _t.ftps) == null ? void 0 : wt.pasv_max,
|
|
@@ -12785,7 +12785,7 @@ const l2 = {
|
|
|
12785
12785
|
id: "fe-conn-driver",
|
|
12786
12786
|
class: "fe-cfield__input",
|
|
12787
12787
|
"data-testid": "storage-driver",
|
|
12788
|
-
value:
|
|
12788
|
+
value: le.value,
|
|
12789
12789
|
disabled: he.value.kind === "edit",
|
|
12790
12790
|
onChange: Z[5] || (Z[5] = (pe) => De(pe.target.value))
|
|
12791
12791
|
}, [
|
|
@@ -12883,7 +12883,7 @@ const l2 = {
|
|
|
12883
12883
|
o("button", {
|
|
12884
12884
|
type: "button",
|
|
12885
12885
|
class: "fe-conn__btn fe-conn__btn--danger",
|
|
12886
|
-
onClick: (We) =>
|
|
12886
|
+
onClick: (We) => ie(pe)
|
|
12887
12887
|
}, f(G.value === pe.id ? s(u)("conn.list.confirm") : s(u)("conn.list.remove")), 9, B$)
|
|
12888
12888
|
])
|
|
12889
12889
|
])
|
|
@@ -12994,10 +12994,10 @@ const l2 = {
|
|
|
12994
12994
|
return P > 0 ? C.slice(P + 1) : "";
|
|
12995
12995
|
}
|
|
12996
12996
|
function z(C) {
|
|
12997
|
-
if (C.kind === "file") return
|
|
12997
|
+
if (C.kind === "file") return dn(C.node);
|
|
12998
12998
|
if (C.kind === "hit") {
|
|
12999
12999
|
const P = String(C.hit.name ?? "");
|
|
13000
|
-
return
|
|
13000
|
+
return dn({
|
|
13001
13001
|
type: C.hit.type === "dir" ? "dir" : "file",
|
|
13002
13002
|
extension: y(P),
|
|
13003
13003
|
basename: P
|
|
@@ -13126,7 +13126,7 @@ const l2 = {
|
|
|
13126
13126
|
...x.value,
|
|
13127
13127
|
...V.value,
|
|
13128
13128
|
...D.value
|
|
13129
|
-
]), he = k(() => T.value.length), fe = k(() => he.value + H.value.length),
|
|
13129
|
+
]), he = k(() => T.value.length), fe = k(() => he.value + H.value.length), le = k(() => fe.value + x.value.length), Q = k(() => le.value + V.value.length);
|
|
13130
13130
|
Fe(v, (C) => {
|
|
13131
13131
|
p.value = 0, S(C.trim());
|
|
13132
13132
|
});
|
|
@@ -13357,11 +13357,11 @@ const l2 = {
|
|
|
13357
13357
|
o("div", px, f(s(a)("palette.saved")), 1),
|
|
13358
13358
|
(c(!0), d(ae, null, Me(V.value, (j, N) => (c(), d("div", {
|
|
13359
13359
|
key: j.id,
|
|
13360
|
-
class: xe(["fe-cmdp__item fe-cmdp__item--saved", { "is-active":
|
|
13360
|
+
class: xe(["fe-cmdp__item fe-cmdp__item--saved", { "is-active": le.value + N === p.value }]),
|
|
13361
13361
|
role: "option",
|
|
13362
|
-
"aria-selected":
|
|
13362
|
+
"aria-selected": le.value + N === p.value,
|
|
13363
13363
|
tabindex: "-1",
|
|
13364
|
-
onMouseenter: (ee) => p.value =
|
|
13364
|
+
onMouseenter: (ee) => p.value = le.value + N,
|
|
13365
13365
|
onClick: (ee) => be(j),
|
|
13366
13366
|
onKeydown: jt(je((ee) => be(j), ["prevent"]), ["enter"])
|
|
13367
13367
|
}, [
|
|
@@ -13631,7 +13631,7 @@ const Ox = { class: "fe-advsearch__head" }, Ix = ["innerHTML"], Hx = { class: "f
|
|
|
13631
13631
|
people: H.value
|
|
13632
13632
|
};
|
|
13633
13633
|
}
|
|
13634
|
-
function
|
|
13634
|
+
function le(se) {
|
|
13635
13635
|
v.value = se.text, p.value = se.scope, h.value = se.tagsRaw, b.value = se.excludeRaw, y.value = se.type, z.value = se.modified, L.value = se.aroundDate, T.value = se.aroundSpan, D.value = se.size, F.value = se.sizeFrom, w.value = se.sizeTo, M.value = se.sizeUnit, $.value = se.pathMode, H.value = se.people;
|
|
13636
13636
|
}
|
|
13637
13637
|
let Q = null;
|
|
@@ -13640,7 +13640,7 @@ const Ox = { class: "fe-advsearch__head" }, Ix = ["innerHTML"], Hx = { class: "f
|
|
|
13640
13640
|
(se) => {
|
|
13641
13641
|
if (!se) return;
|
|
13642
13642
|
const ue = n.initialQuery ?? "";
|
|
13643
|
-
Q && Q.query !== "" && Q.query === ue ?
|
|
13643
|
+
Q && Q.query !== "" && Q.query === ue ? le(Q.form) : (he(), v.value = ue), P.value = null, N.value = !1, setTimeout(() => {
|
|
13644
13644
|
var A;
|
|
13645
13645
|
return (A = u.value) == null ? void 0 : A.focus();
|
|
13646
13646
|
}, 60);
|
|
@@ -13839,7 +13839,7 @@ const Ox = { class: "fe-advsearch__head" }, Ix = ["innerHTML"], Hx = { class: "f
|
|
|
13839
13839
|
class: xe(["fe-advsearch__seg-btn", { "is-active": p.value === A }]),
|
|
13840
13840
|
"aria-selected": p.value === A,
|
|
13841
13841
|
"data-testid": `advsearch-scope-${A}`,
|
|
13842
|
-
onClick: (
|
|
13842
|
+
onClick: (ie) => p.value = A
|
|
13843
13843
|
}, [
|
|
13844
13844
|
o("span", {
|
|
13845
13845
|
class: "fe-advsearch__seg-icon",
|
|
@@ -13889,7 +13889,7 @@ const Ox = { class: "fe-advsearch__head" }, Ix = ["innerHTML"], Hx = { class: "f
|
|
|
13889
13889
|
type: "button",
|
|
13890
13890
|
class: xe(["fe-advsearch__seg-btn", { "is-active": T.value === A }]),
|
|
13891
13891
|
"aria-pressed": T.value === A,
|
|
13892
|
-
onClick: (
|
|
13892
|
+
onClick: (ie) => T.value = A
|
|
13893
13893
|
}, f(s(a)(`advsearch.around.${A}`)), 11, rS)), 64))
|
|
13894
13894
|
], 8, sS)
|
|
13895
13895
|
])
|
|
@@ -14031,7 +14031,7 @@ const Ox = { class: "fe-advsearch__head" }, Ix = ["innerHTML"], Hx = { class: "f
|
|
|
14031
14031
|
class: xe(["fe-advsearch__seg-btn", { "is-active": $.value === A }]),
|
|
14032
14032
|
"aria-pressed": $.value === A,
|
|
14033
14033
|
"data-testid": `advsearch-where-${A}`,
|
|
14034
|
-
onClick: (
|
|
14034
|
+
onClick: (ie) => $.value = A
|
|
14035
14035
|
}, f(s(a)(`advsearch.where.${A}_short`)), 11, KS)), 64))
|
|
14036
14036
|
], 8, NS),
|
|
14037
14037
|
o("span", RS, f(s(a)(`advsearch.where.${$.value}`, { folder: e.folderLabel || "" })), 1)
|
|
@@ -14800,7 +14800,7 @@ const TC = {
|
|
|
14800
14800
|
function T(ge) {
|
|
14801
14801
|
const De = /GMT([+-])(\d{1,2})(?::?(\d{2}))?/.exec(ge);
|
|
14802
14802
|
if (!De) return "gmt utc";
|
|
14803
|
-
const [, se, ue, A] = De,
|
|
14803
|
+
const [, se, ue, A] = De, ie = String(Number(ue)), Se = ie.padStart(2, "0"), Ye = A ?? "00", Ke = [`${se}${ie}`, `${se}${Se}`, `${se}${Se}:${Ye}`, `${se}${Se}${Ye}`];
|
|
14804
14804
|
return [...Ke.map((Je) => `gmt${Je}`), ...Ke.map((Je) => `utc${Je}`), ...Ke].join(" ");
|
|
14805
14805
|
}
|
|
14806
14806
|
function H(ge, De, se) {
|
|
@@ -14809,7 +14809,7 @@ const TC = {
|
|
|
14809
14809
|
return ((ue = new Intl.DateTimeFormat(De, {
|
|
14810
14810
|
timeZone: ge,
|
|
14811
14811
|
timeZoneName: se
|
|
14812
|
-
}).formatToParts(/* @__PURE__ */ new Date()).find((
|
|
14812
|
+
}).formatToParts(/* @__PURE__ */ new Date()).find((ie) => ie.type === "timeZoneName")) == null ? void 0 : ue.value) ?? "";
|
|
14813
14813
|
} catch {
|
|
14814
14814
|
return "";
|
|
14815
14815
|
}
|
|
@@ -14842,19 +14842,19 @@ const TC = {
|
|
|
14842
14842
|
}
|
|
14843
14843
|
], A = zv();
|
|
14844
14844
|
n.modelValue && !A.includes(n.modelValue) && A.unshift(n.modelValue);
|
|
14845
|
-
for (const
|
|
14846
|
-
const Se =
|
|
14847
|
-
[
|
|
14845
|
+
for (const ie of A) {
|
|
14846
|
+
const Se = ie.split("/"), Ye = (Se[Se.length - 1] ?? ie).replace(/_/g, " "), Ke = Se.length > 1 ? Se[0].replace(/_/g, " ") : "", Je = H(ie, ge, "shortOffset"), mt = H(ie, ge, "longGeneric"), ze = ge === "en-US" ? "" : H(ie, "en-US", "longGeneric"), Ne = z(
|
|
14847
|
+
[ie, Ye, Ke, mt, ze, L[ie] ?? "", T(Je)].filter(Boolean).join(" ")
|
|
14848
14848
|
);
|
|
14849
14849
|
ue.push({
|
|
14850
|
-
value:
|
|
14850
|
+
value: ie,
|
|
14851
14851
|
label: Ye,
|
|
14852
14852
|
region: Ke,
|
|
14853
14853
|
offset: Je,
|
|
14854
14854
|
haystack: Ne,
|
|
14855
14855
|
cityFold: z(Ye),
|
|
14856
14856
|
words: Ne.split(" ").filter(Boolean),
|
|
14857
|
-
fmt: D(
|
|
14857
|
+
fmt: D(ie)
|
|
14858
14858
|
});
|
|
14859
14859
|
}
|
|
14860
14860
|
return ue;
|
|
@@ -14873,7 +14873,7 @@ const TC = {
|
|
|
14873
14873
|
}
|
|
14874
14874
|
it(he);
|
|
14875
14875
|
const fe = m({ maxHeight: "264px", above: !1 });
|
|
14876
|
-
function
|
|
14876
|
+
function le(ge) {
|
|
14877
14877
|
let De = ge.parentElement;
|
|
14878
14878
|
for (; De; ) {
|
|
14879
14879
|
const se = getComputedStyle(De).overflowY;
|
|
@@ -14888,7 +14888,7 @@ const TC = {
|
|
|
14888
14888
|
function Q() {
|
|
14889
14889
|
const ge = Y.value;
|
|
14890
14890
|
if (!ge) return;
|
|
14891
|
-
const De = ge.getBoundingClientRect(), se =
|
|
14891
|
+
const De = ge.getBoundingClientRect(), se = le(ge), ue = 12, A = se.bottom - De.bottom - ue, ie = De.top - se.top - ue, Se = 132, Ye = 264, Ke = A < Se && ie > A, Je = Ke ? ie : A;
|
|
14892
14892
|
fe.value = {
|
|
14893
14893
|
maxHeight: `${Math.round(Math.max(Se, Math.min(Ye, Je)))}px`,
|
|
14894
14894
|
above: Ke
|
|
@@ -14898,7 +14898,7 @@ const TC = {
|
|
|
14898
14898
|
let se = 0;
|
|
14899
14899
|
for (const ue of De) {
|
|
14900
14900
|
let A = 0;
|
|
14901
|
-
if (ge.cityFold === ue ? A = 120 : ge.cityFold.startsWith(ue) ? A = 100 : ge.words.some((
|
|
14901
|
+
if (ge.cityFold === ue ? A = 120 : ge.cityFold.startsWith(ue) ? A = 100 : ge.words.some((ie) => ie.startsWith(ue)) ? A = 70 : ge.haystack.includes(ue) && (A = 30), A === 0) return -1;
|
|
14902
14902
|
se += A;
|
|
14903
14903
|
}
|
|
14904
14904
|
return se;
|
|
@@ -14906,14 +14906,14 @@ const TC = {
|
|
|
14906
14906
|
const be = k(() => {
|
|
14907
14907
|
const ge = M.value ?? [], De = z(W.value);
|
|
14908
14908
|
if (!De) {
|
|
14909
|
-
const A = ge.find((
|
|
14910
|
-
return !A || A === ge[0] ? ge : [ge[0], A, ...ge.slice(1).filter((
|
|
14909
|
+
const A = ge.find((ie) => ie.value === n.modelValue);
|
|
14910
|
+
return !A || A === ge[0] ? ge : [ge[0], A, ...ge.slice(1).filter((ie) => ie !== A)];
|
|
14911
14911
|
}
|
|
14912
14912
|
const se = De.split(" ").filter(Boolean), ue = [];
|
|
14913
|
-
return ge.forEach((A,
|
|
14913
|
+
return ge.forEach((A, ie) => {
|
|
14914
14914
|
const Se = X(A, se);
|
|
14915
|
-
Se >= 0 && ue.push({ row: A, score: Se, i:
|
|
14916
|
-
}), ue.sort((A,
|
|
14915
|
+
Se >= 0 && ue.push({ row: A, score: Se, i: ie });
|
|
14916
|
+
}), ue.sort((A, ie) => ie.score - A.score || A.i - ie.i), ue.map((A) => A.row);
|
|
14917
14917
|
}), me = k(() => be.value.slice(0, QC)), C = k(() => Math.max(0, be.value.length - me.value.length)), P = k(() => {
|
|
14918
14918
|
if (!n.modelValue) return w.value;
|
|
14919
14919
|
const ge = n.modelValue, De = (ge.split("/").pop() ?? ge).replace(/_/g, " "), se = H(ge, u.value, "shortOffset");
|
|
@@ -15657,28 +15657,28 @@ const U3 = {
|
|
|
15657
15657
|
diff: "diff",
|
|
15658
15658
|
patch: "diff"
|
|
15659
15659
|
}, T = ["txt", "log"], H = ["docx", "doc", "xlsx", "xls", "pptx", "ppt", "odt", "ods", "odp", "rtf"], D = {
|
|
15660
|
-
glb: () => import("./Viewer3D-
|
|
15661
|
-
gltf: () => import("./Viewer3D-
|
|
15662
|
-
obj: () => import("./Viewer3D-
|
|
15663
|
-
stl: () => import("./Viewer3D-
|
|
15664
|
-
fbx: () => import("./Viewer3D-
|
|
15665
|
-
"3ds": () => import("./Viewer3D-
|
|
15666
|
-
epub: () => import("./EpubViewer-
|
|
15667
|
-
mmd: () => import("./MermaidViewer-
|
|
15668
|
-
mermaid: () => import("./MermaidViewer-
|
|
15669
|
-
drawio: () => import("./DrawioViewer-
|
|
15670
|
-
dio: () => import("./DrawioViewer-
|
|
15671
|
-
tif: () => import("./TiffViewer-
|
|
15672
|
-
tiff: () => import("./TiffViewer-
|
|
15673
|
-
psd: () => import("./PsdViewer-
|
|
15660
|
+
glb: () => import("./Viewer3D-DefcNYOm.js"),
|
|
15661
|
+
gltf: () => import("./Viewer3D-DefcNYOm.js"),
|
|
15662
|
+
obj: () => import("./Viewer3D-DefcNYOm.js"),
|
|
15663
|
+
stl: () => import("./Viewer3D-DefcNYOm.js"),
|
|
15664
|
+
fbx: () => import("./Viewer3D-DefcNYOm.js"),
|
|
15665
|
+
"3ds": () => import("./Viewer3D-DefcNYOm.js"),
|
|
15666
|
+
epub: () => import("./EpubViewer-BfRE0DTL.js"),
|
|
15667
|
+
mmd: () => import("./MermaidViewer-Ry5Ma463.js"),
|
|
15668
|
+
mermaid: () => import("./MermaidViewer-Ry5Ma463.js"),
|
|
15669
|
+
drawio: () => import("./DrawioViewer-BFkTSrNc.js"),
|
|
15670
|
+
dio: () => import("./DrawioViewer-BFkTSrNc.js"),
|
|
15671
|
+
tif: () => import("./TiffViewer-DE5bKDDx.js"),
|
|
15672
|
+
tiff: () => import("./TiffViewer-DE5bKDDx.js"),
|
|
15673
|
+
psd: () => import("./PsdViewer-BmTlq1Gh.js"),
|
|
15674
15674
|
// PDF deliberately uses the native browser viewer (`kind === 'pdf'`
|
|
15675
15675
|
// branch in the template). PdfViewer.vue still exists for callers
|
|
15676
15676
|
// that want the rich custom UI but the SFC default keeps things
|
|
15677
15677
|
// minimal — the browser already paints search/zoom/page UI for free.
|
|
15678
|
-
ipynb: () => import("./IpynbViewer-
|
|
15679
|
-
csv: () => import("./CsvViewer-
|
|
15680
|
-
tsv: () => import("./CsvViewer-
|
|
15681
|
-
zip: () => import("./ArchiveViewer-
|
|
15678
|
+
ipynb: () => import("./IpynbViewer-BpBlICH-.js"),
|
|
15679
|
+
csv: () => import("./CsvViewer-D-na6SEG.js"),
|
|
15680
|
+
tsv: () => import("./CsvViewer-D-na6SEG.js"),
|
|
15681
|
+
zip: () => import("./ArchiveViewer-CGl_J_qE.js")
|
|
15682
15682
|
}, F = k(() => {
|
|
15683
15683
|
const we = h(n.file);
|
|
15684
15684
|
if (!we) return "other";
|
|
@@ -15801,7 +15801,7 @@ const U3 = {
|
|
|
15801
15801
|
const ce = we.indexOf("://");
|
|
15802
15802
|
return ce === -1 ? we : we.slice(ce + 3);
|
|
15803
15803
|
}
|
|
15804
|
-
const fe = k(() => !n.chromeless),
|
|
15804
|
+
const fe = k(() => !n.chromeless), le = m(null), Q = k(() => n.file ? dn(n.file) : ""), X = k(() => n.file ? p(n.file) : ""), be = k(() => {
|
|
15805
15805
|
const we = n.index, ce = n.total;
|
|
15806
15806
|
return !we || !ce || ce < 1 || we < 1 ? "" : a("viewer.counter", { i: we, n: ce });
|
|
15807
15807
|
}), me = k(() => {
|
|
@@ -15847,14 +15847,14 @@ const U3 = {
|
|
|
15847
15847
|
function se() {
|
|
15848
15848
|
G.value = 1, bt(Be);
|
|
15849
15849
|
}
|
|
15850
|
-
const ue = k(() => `${Math.round(G.value * 100)}%`), A = k(() => G.value < ee[ee.length - 1] - 1e-6),
|
|
15850
|
+
const ue = k(() => `${Math.round(G.value * 100)}%`), A = k(() => G.value < ee[ee.length - 1] - 1e-6), ie = k(() => G.value > ee[0] + 1e-6), Se = m(!1);
|
|
15851
15851
|
function Ye() {
|
|
15852
15852
|
Se.value = !!document.fullscreenElement;
|
|
15853
15853
|
}
|
|
15854
15854
|
function Ke() {
|
|
15855
15855
|
var we, ce, Le;
|
|
15856
15856
|
try {
|
|
15857
|
-
document.fullscreenElement ? (we = document.exitFullscreen) == null || we.call(document) : (Le = (ce =
|
|
15857
|
+
document.fullscreenElement ? (we = document.exitFullscreen) == null || we.call(document) : (Le = (ce = le.value) == null ? void 0 : ce.requestFullscreen) == null || Le.call(ce);
|
|
15858
15858
|
} catch {
|
|
15859
15859
|
}
|
|
15860
15860
|
}
|
|
@@ -15934,7 +15934,7 @@ const U3 = {
|
|
|
15934
15934
|
breaks: !0,
|
|
15935
15935
|
typographer: !0
|
|
15936
15936
|
}).render(we);
|
|
15937
|
-
lt.value = pt(oe), await new Promise((O) => setTimeout(O, 0)), await
|
|
15937
|
+
lt.value = pt(oe), await new Promise((O) => setTimeout(O, 0)), await gt();
|
|
15938
15938
|
} catch (ce) {
|
|
15939
15939
|
lt.value = "", ze.value = ce instanceof Error ? ce.message : String(ce);
|
|
15940
15940
|
}
|
|
@@ -15942,7 +15942,7 @@ const U3 = {
|
|
|
15942
15942
|
function pt(we) {
|
|
15943
15943
|
return we.replace(/<\s*script\b[^<]*(?:(?!<\s*\/\s*script\s*>)<[^<]*)*<\s*\/\s*script\s*>/gi, "").replace(/<\s*iframe\b[\s\S]*?<\s*\/\s*iframe\s*>/gi, "").replace(/<\s*object\b[\s\S]*?<\s*\/\s*object\s*>/gi, "").replace(/<\s*embed\b[^>]*>/gi, "").replace(/\son\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi, "").replace(/(href|src|action|formaction|xlink:href)\s*=\s*(?:"\s*javascript:[^"]*"|'\s*javascript:[^']*')/gi, '$1="#"');
|
|
15944
15944
|
}
|
|
15945
|
-
async function
|
|
15945
|
+
async function gt() {
|
|
15946
15946
|
var oe, O, te;
|
|
15947
15947
|
if (!de.value) return;
|
|
15948
15948
|
const we = de.value, ce = Array.from(we.querySelectorAll("pre > code"));
|
|
@@ -16158,7 +16158,7 @@ const U3 = {
|
|
|
16158
16158
|
});
|
|
16159
16159
|
});
|
|
16160
16160
|
const Et = k(() => L[h(n.file)] || "plaintext"), Dt = m(null), Pt = m(null);
|
|
16161
|
-
let
|
|
16161
|
+
let kt = null;
|
|
16162
16162
|
async function Zt() {
|
|
16163
16163
|
if (Pt.value = null, !(!n.file || F.value !== "office")) {
|
|
16164
16164
|
if (!n.onlyOfficeConfigEndpoint) {
|
|
@@ -16185,7 +16185,7 @@ const U3 = {
|
|
|
16185
16185
|
if (!ce.ok)
|
|
16186
16186
|
throw new Error(`Config fetch ${ce.status}: ${(await ce.text()).slice(0, 200)}`);
|
|
16187
16187
|
const { config: Le, documentServerUrl: J } = await ce.json();
|
|
16188
|
-
await
|
|
16188
|
+
await hn(J), sn();
|
|
16189
16189
|
const oe = "fe-onlyoffice-mount";
|
|
16190
16190
|
Dt.value.id = oe, Le.events = {
|
|
16191
16191
|
onError: (te) => {
|
|
@@ -16195,7 +16195,7 @@ const U3 = {
|
|
|
16195
16195
|
const O = window;
|
|
16196
16196
|
if (!O.DocsAPI || !O.DocsAPI.DocEditor)
|
|
16197
16197
|
throw new Error("DocsAPI not available after script load");
|
|
16198
|
-
|
|
16198
|
+
kt = new O.DocsAPI.DocEditor(oe, Le);
|
|
16199
16199
|
} catch (we) {
|
|
16200
16200
|
Pt.value = we instanceof Error ? we.message : String(we);
|
|
16201
16201
|
}
|
|
@@ -16204,10 +16204,10 @@ const U3 = {
|
|
|
16204
16204
|
function sn() {
|
|
16205
16205
|
var we;
|
|
16206
16206
|
try {
|
|
16207
|
-
(we =
|
|
16207
|
+
(we = kt == null ? void 0 : kt.destroyEditor) == null || we.call(kt);
|
|
16208
16208
|
} catch {
|
|
16209
16209
|
}
|
|
16210
|
-
|
|
16210
|
+
kt = null;
|
|
16211
16211
|
}
|
|
16212
16212
|
it(() => {
|
|
16213
16213
|
document.removeEventListener("fullscreenchange", Ye), sn(), ct();
|
|
@@ -16230,7 +16230,7 @@ const U3 = {
|
|
|
16230
16230
|
return "OnlyOffice error";
|
|
16231
16231
|
}
|
|
16232
16232
|
}
|
|
16233
|
-
function
|
|
16233
|
+
function hn(we) {
|
|
16234
16234
|
return new Promise((ce, Le) => {
|
|
16235
16235
|
var O;
|
|
16236
16236
|
if ((O = window.DocsAPI) != null && O.DocEditor) {
|
|
@@ -16260,7 +16260,7 @@ const U3 = {
|
|
|
16260
16260
|
default: st(() => [
|
|
16261
16261
|
o("div", {
|
|
16262
16262
|
ref_key: "viewerEl",
|
|
16263
|
-
ref:
|
|
16263
|
+
ref: le,
|
|
16264
16264
|
class: xe(["fe-viewer", { "fe-viewer--bare": e.chromeless }])
|
|
16265
16265
|
}, [
|
|
16266
16266
|
fe.value && e.file ? (c(), d("header", U3, [
|
|
@@ -16630,7 +16630,7 @@ const U3 = {
|
|
|
16630
16630
|
o("button", {
|
|
16631
16631
|
type: "button",
|
|
16632
16632
|
class: "fe-viewer__zoom-btn",
|
|
16633
|
-
disabled: !
|
|
16633
|
+
disabled: !ie.value,
|
|
16634
16634
|
title: s(a)("viewer.zoom_out"),
|
|
16635
16635
|
"aria-label": s(a)("viewer.zoom_out"),
|
|
16636
16636
|
onClick: ce[6] || (ce[6] = (J) => De(-1))
|
|
@@ -17308,9 +17308,9 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
17308
17308
|
width: fe.width + na * 2,
|
|
17309
17309
|
height: fe.height + na * 2
|
|
17310
17310
|
}, await bt();
|
|
17311
|
-
const
|
|
17311
|
+
const le = window.innerWidth, Q = window.innerHeight, X = Math.min(340, le - 24), be = ((Be = H.value) == null ? void 0 : Be.offsetHeight) ?? 160, me = fe.top - na, C = fe.bottom + na, P = fe.left - na, j = fe.right + na, N = (ge) => Math.min(Math.max(12, ge), Math.max(12, le - X - 12)), ee = (ge) => Math.min(Math.max(12, ge), Math.max(12, Q - be - 12)), G = N(fe.left + fe.width / 2 - X / 2), $e = ee(fe.top + fe.height / 2 - be / 2);
|
|
17312
17312
|
let Ce, Ee;
|
|
17313
|
-
C + Nn + be <= Q - 12 ? (Ce = C + Nn, Ee = G) : me - Nn - be >= 12 ? (Ce = me - Nn - be, Ee = G) : j + Nn + X <=
|
|
17313
|
+
C + Nn + be <= Q - 12 ? (Ce = C + Nn, Ee = G) : me - Nn - be >= 12 ? (Ce = me - Nn - be, Ee = G) : j + Nn + X <= le - 12 ? (Ee = j + Nn, Ce = $e) : P - Nn - X >= 12 ? (Ee = P - Nn - X, Ce = $e) : (Ce = ee(C + Nn), Ee = G), T.value = {
|
|
17314
17314
|
top: `${Math.round(Ce)}px`,
|
|
17315
17315
|
left: `${Math.round(Ee)}px`,
|
|
17316
17316
|
width: `${X}px`
|
|
@@ -17719,17 +17719,17 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
17719
17719
|
});
|
|
17720
17720
|
}
|
|
17721
17721
|
function he(P) {
|
|
17722
|
-
|
|
17722
|
+
pn(P) && (P.preventDefault(), P.stopPropagation(), P.dataTransfer && (P.dataTransfer.dropEffect = "move"));
|
|
17723
17723
|
}
|
|
17724
17724
|
function fe(P, j) {
|
|
17725
|
-
|
|
17725
|
+
pn(P) && (P.preventDefault(), P.stopPropagation(), v("crumb-drop", j.adapterPath, P));
|
|
17726
17726
|
}
|
|
17727
|
-
const
|
|
17727
|
+
const le = m(!1), Q = m(""), X = m(null);
|
|
17728
17728
|
function be() {
|
|
17729
17729
|
const P = `${n.adapter}://`, j = n.dirname.startsWith(P) ? n.dirname.slice(P.length) : n.dirname;
|
|
17730
17730
|
if (n.rootPath) {
|
|
17731
17731
|
const N = r.value, ee = j.replace(/^\/+|\/+$/g, ""), G = N && (ee === N || ee.startsWith(N + "/")) ? ee.slice(N.length).replace(/^\/+/, "") : "";
|
|
17732
|
-
Q.value = G ? `/${G}` : "/",
|
|
17732
|
+
Q.value = G ? `/${G}` : "/", le.value = !0, bt(() => {
|
|
17733
17733
|
var $e, Ce;
|
|
17734
17734
|
($e = X.value) == null || $e.focus(), (Ce = X.value) == null || Ce.select();
|
|
17735
17735
|
});
|
|
@@ -17744,14 +17744,14 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
17744
17744
|
}
|
|
17745
17745
|
else
|
|
17746
17746
|
Q.value = j;
|
|
17747
|
-
|
|
17747
|
+
le.value = !0, bt(() => {
|
|
17748
17748
|
var N, ee;
|
|
17749
17749
|
(N = X.value) == null || N.focus(), (ee = X.value) == null || ee.select();
|
|
17750
17750
|
});
|
|
17751
17751
|
}
|
|
17752
17752
|
function me() {
|
|
17753
17753
|
const P = Q.value.trim();
|
|
17754
|
-
if (
|
|
17754
|
+
if (le.value = !1, n.rootPath) {
|
|
17755
17755
|
const N = P.replace(/^\/+|\/+$/g, ""), ee = r.value, G = N ? ee ? `${ee}/${N}` : N : ee;
|
|
17756
17756
|
v("navigate", G ? `${n.adapter}://${G}` : `${n.adapter}://`);
|
|
17757
17757
|
return;
|
|
@@ -17770,10 +17770,10 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
17770
17770
|
j && v("navigate", `${n.adapter}://${j}`);
|
|
17771
17771
|
}
|
|
17772
17772
|
function C() {
|
|
17773
|
-
|
|
17773
|
+
le.value = !1;
|
|
17774
17774
|
}
|
|
17775
17775
|
return (P, j) => (c(), d("nav", m5, [
|
|
17776
|
-
|
|
17776
|
+
le.value ? Ve((c(), d("input", {
|
|
17777
17777
|
key: 1,
|
|
17778
17778
|
ref_key: "pathInput",
|
|
17779
17779
|
ref: X,
|
|
@@ -17977,7 +17977,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
17977
17977
|
}
|
|
17978
17978
|
function T(se, ue) {
|
|
17979
17979
|
var A;
|
|
17980
|
-
return se === "people" && ue.startsWith("u:") ? ((A = z.value.find((
|
|
17980
|
+
return se === "people" && ue.startsWith("u:") ? ((A = z.value.find((ie) => ie.value === ue)) == null ? void 0 : A.name) || ue.slice(2) : a(`filter.${se}.${ue}`);
|
|
17981
17981
|
}
|
|
17982
17982
|
function H(se) {
|
|
17983
17983
|
const ue = se === "people" ? n.value.people ?? "any" : n.value[se];
|
|
@@ -18010,7 +18010,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18010
18010
|
N(!0), se === "new-folder" ? r("new-folder") : se === "upload" ? r("upload") : se === "paste" ? r("paste") : se === "select-all" && r("select-all");
|
|
18011
18011
|
}
|
|
18012
18012
|
const V = m(null), re = m({ x: 0, y: 0 }), he = m(null), fe = m({});
|
|
18013
|
-
function
|
|
18013
|
+
function le(se, ue) {
|
|
18014
18014
|
fe.value[se] = ue ?? null;
|
|
18015
18015
|
}
|
|
18016
18016
|
const Q = k(
|
|
@@ -18028,12 +18028,12 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18028
18028
|
Q.value && ee(Q.value, se);
|
|
18029
18029
|
}
|
|
18030
18030
|
async function j(se) {
|
|
18031
|
-
var
|
|
18031
|
+
var ie, Se, Ye;
|
|
18032
18032
|
if (V.value === se) {
|
|
18033
18033
|
N();
|
|
18034
18034
|
return;
|
|
18035
18035
|
}
|
|
18036
|
-
const ue = (
|
|
18036
|
+
const ue = (ie = fe.value[se]) == null ? void 0 : ie.getBoundingClientRect();
|
|
18037
18037
|
re.value = { x: ue ? ue.left : 8, y: ue ? ue.bottom + 6 : 8 }, V.value = se, await bt();
|
|
18038
18038
|
const A = he.value;
|
|
18039
18039
|
if (A) {
|
|
@@ -18092,7 +18092,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18092
18092
|
var A;
|
|
18093
18093
|
if (!V.value) return;
|
|
18094
18094
|
const ue = se.target;
|
|
18095
|
-
(A = he.value) != null && A.contains(ue) || Object.values(fe.value).some((
|
|
18095
|
+
(A = he.value) != null && A.contains(ue) || Object.values(fe.value).some((ie) => ie == null ? void 0 : ie.contains(ue)) || N();
|
|
18096
18096
|
}
|
|
18097
18097
|
function De(se) {
|
|
18098
18098
|
se.key === "Escape" && V.value && (se.stopPropagation(), N(!0));
|
|
@@ -18115,13 +18115,13 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18115
18115
|
(c(), d(ae, null, Me(p, (A) => o("button", {
|
|
18116
18116
|
key: A,
|
|
18117
18117
|
ref_for: !0,
|
|
18118
|
-
ref: (
|
|
18118
|
+
ref: (ie) => le(A, ie),
|
|
18119
18119
|
type: "button",
|
|
18120
18120
|
class: xe(["fe-filterbar__chip", { "is-set": D(A) !== "any", "is-open": V.value === A }]),
|
|
18121
18121
|
"aria-expanded": V.value === A,
|
|
18122
18122
|
"aria-haspopup": "listbox",
|
|
18123
18123
|
"data-testid": `filter-${A}`,
|
|
18124
|
-
onClick: (
|
|
18124
|
+
onClick: (ie) => j(A)
|
|
18125
18125
|
}, [
|
|
18126
18126
|
o("span", N5, f(H(A)), 1),
|
|
18127
18127
|
ue[3] || (ue[3] = o("svg", {
|
|
@@ -18178,7 +18178,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18178
18178
|
u.value && F.value > 0 && typeof e.shown == "number" && typeof e.total == "number" ? (c(), d("span", U5, f(s(a)("filter.count", { shown: String(e.shown), total: String(e.total) })), 1)) : g("", !0),
|
|
18179
18179
|
u.value ? (c(), d("div", j5, [
|
|
18180
18180
|
o("button", {
|
|
18181
|
-
ref: (A) =>
|
|
18181
|
+
ref: (A) => le("sort", A),
|
|
18182
18182
|
type: "button",
|
|
18183
18183
|
class: xe(["fe-filterbar__sortdir", { "is-ranked": S.value }]),
|
|
18184
18184
|
disabled: S.value,
|
|
@@ -18226,7 +18226,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18226
18226
|
])) : g("", !0),
|
|
18227
18227
|
u.value ? (c(), d("button", {
|
|
18228
18228
|
key: 4,
|
|
18229
|
-
ref: (A) =>
|
|
18229
|
+
ref: (A) => le("actions", A),
|
|
18230
18230
|
type: "button",
|
|
18231
18231
|
class: "fe-filterbar__actions",
|
|
18232
18232
|
"aria-label": s(a)("filter.actions"),
|
|
@@ -18296,7 +18296,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18296
18296
|
"aria-disabled": A.disabled,
|
|
18297
18297
|
"data-active": "false",
|
|
18298
18298
|
"data-testid": `listing-action-${A.key}`,
|
|
18299
|
-
onClick: (
|
|
18299
|
+
onClick: (ie) => q(A.key)
|
|
18300
18300
|
}, [
|
|
18301
18301
|
o("span", null, f(A.label), 1)
|
|
18302
18302
|
], 8, Z5))
|
|
@@ -18307,7 +18307,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18307
18307
|
role: "menuitem",
|
|
18308
18308
|
"data-active": M.value === A ? "true" : "false",
|
|
18309
18309
|
"data-testid": `sort-opt-${A}`,
|
|
18310
|
-
onClick: (
|
|
18310
|
+
onClick: (ie) => W(A)
|
|
18311
18311
|
}, [
|
|
18312
18312
|
o("span", null, f(s(a)(`col.${A}`)), 1)
|
|
18313
18313
|
], 8, Q5))), 128)) : (c(!0), d(ae, { key: 2 }, Me(X.value, (A) => (c(), d("button", {
|
|
@@ -18319,7 +18319,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18319
18319
|
"data-checked": me(A) ? "true" : "false",
|
|
18320
18320
|
"data-active": me(A) ? "true" : "false",
|
|
18321
18321
|
"data-testid": `filter-opt-${A}`,
|
|
18322
|
-
onClick: (
|
|
18322
|
+
onClick: (ie) => P(A)
|
|
18323
18323
|
}, [
|
|
18324
18324
|
o("span", tM, f(me(A) ? "✓" : ""), 1),
|
|
18325
18325
|
o("span", null, f(C(A)), 1)
|
|
@@ -18516,13 +18516,13 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18516
18516
|
}
|
|
18517
18517
|
const $ = m(null);
|
|
18518
18518
|
function S(O, te) {
|
|
18519
|
-
O.type === "dir" &&
|
|
18519
|
+
O.type === "dir" && pn(te) && (te.preventDefault(), te.stopPropagation(), te.dataTransfer && (te.dataTransfer.dropEffect = "move"), $.value = O.path);
|
|
18520
18520
|
}
|
|
18521
18521
|
function E(O) {
|
|
18522
18522
|
$.value === O.path && ($.value = null);
|
|
18523
18523
|
}
|
|
18524
18524
|
function x(O, te) {
|
|
18525
|
-
$.value = null, O.type === "dir" &&
|
|
18525
|
+
$.value = null, O.type === "dir" && pn(te) && (te.preventDefault(), te.stopPropagation(), r("item-drop-into", O, te));
|
|
18526
18526
|
}
|
|
18527
18527
|
const W = Ni(
|
|
18528
18528
|
(O, te) => r("context-row", O, { ...te, preventDefault: () => {
|
|
@@ -18555,7 +18555,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18555
18555
|
function fe(O) {
|
|
18556
18556
|
return O.type === "dir" && !Y(O);
|
|
18557
18557
|
}
|
|
18558
|
-
function
|
|
18558
|
+
function le(O) {
|
|
18559
18559
|
const te = ya(O.path);
|
|
18560
18560
|
return [String(O.storage ?? "").trim(), te].filter(Boolean).join("/");
|
|
18561
18561
|
}
|
|
@@ -18598,7 +18598,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18598
18598
|
function A(O) {
|
|
18599
18599
|
return { flex: `0 0 ${De.value.widths[O] ?? wo(O)}px` };
|
|
18600
18600
|
}
|
|
18601
|
-
function
|
|
18601
|
+
function ie(O) {
|
|
18602
18602
|
return `fe-list__col fe-list__col--${O === "modified" ? "mod" : O}`;
|
|
18603
18603
|
}
|
|
18604
18604
|
const Se = {
|
|
@@ -18622,7 +18622,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18622
18622
|
case "type":
|
|
18623
18623
|
return V(te);
|
|
18624
18624
|
case "location":
|
|
18625
|
-
return
|
|
18625
|
+
return le(te);
|
|
18626
18626
|
case "owner":
|
|
18627
18627
|
return Le(te);
|
|
18628
18628
|
case "modified":
|
|
@@ -18636,11 +18636,11 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18636
18636
|
function mt(O, te) {
|
|
18637
18637
|
if (O === "owner") return J(te);
|
|
18638
18638
|
if (O === "modified") return q(te.last_modified);
|
|
18639
|
-
if (O === "location") return
|
|
18639
|
+
if (O === "location") return le(te) || void 0;
|
|
18640
18640
|
}
|
|
18641
18641
|
function ze(O) {
|
|
18642
18642
|
if (!n.showParentPath || se.value.includes("location")) return O.basename;
|
|
18643
|
-
const te =
|
|
18643
|
+
const te = le(O);
|
|
18644
18644
|
return te ? `${O.basename} · ${te}` : O.basename;
|
|
18645
18645
|
}
|
|
18646
18646
|
function Ne(O) {
|
|
@@ -18675,7 +18675,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18675
18675
|
var te;
|
|
18676
18676
|
return ((te = ma.find((_e) => _e.id === O)) == null ? void 0 : te.hideable) === !0;
|
|
18677
18677
|
}
|
|
18678
|
-
function
|
|
18678
|
+
function gt(O, te) {
|
|
18679
18679
|
te.button !== 0 || !pt(O) || (Ge = { id: O, startX: te.clientX, armed: !1 }, window.addEventListener("pointermove", Tt), window.addEventListener("pointerup", Xt), window.addEventListener("keydown", Yt, !0));
|
|
18680
18680
|
}
|
|
18681
18681
|
function Tt(O) {
|
|
@@ -18763,7 +18763,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18763
18763
|
const te = O.getBoundingClientRect(), _e = 8;
|
|
18764
18764
|
te.right > window.innerWidth - _e && (wt.value = Math.max(_e, window.innerWidth - _e - te.width)), te.bottom > window.innerHeight - _e && (At.value = Math.max(_e, window.innerHeight - _e - te.height));
|
|
18765
18765
|
}
|
|
18766
|
-
function
|
|
18766
|
+
function kt() {
|
|
18767
18767
|
_t.value = !1;
|
|
18768
18768
|
}
|
|
18769
18769
|
function Zt(O) {
|
|
@@ -18773,10 +18773,10 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18773
18773
|
Oy();
|
|
18774
18774
|
}
|
|
18775
18775
|
function Bn() {
|
|
18776
|
-
Py(),
|
|
18776
|
+
Py(), kt();
|
|
18777
18777
|
}
|
|
18778
|
-
function
|
|
18779
|
-
n.folderKey && Ay(n.folderKey),
|
|
18778
|
+
function hn() {
|
|
18779
|
+
n.folderKey && Ay(n.folderKey), kt();
|
|
18780
18780
|
}
|
|
18781
18781
|
const we = k(() => {
|
|
18782
18782
|
const O = [], te = [];
|
|
@@ -18875,7 +18875,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18875
18875
|
(c(!0), d(ae, null, Me(se.value, (_e, Pe) => (c(), d("div", {
|
|
18876
18876
|
key: _e,
|
|
18877
18877
|
class: xe([
|
|
18878
|
-
|
|
18878
|
+
ie(_e),
|
|
18879
18879
|
{
|
|
18880
18880
|
"is-col-dragging": lt.value === _e,
|
|
18881
18881
|
"is-drop-before": de.value === Pe && !!lt.value && lt.value !== _e,
|
|
@@ -18887,7 +18887,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
18887
18887
|
style: xt(A(_e)),
|
|
18888
18888
|
"aria-sort": Se[_e] ? ee(Se[_e]) : void 0,
|
|
18889
18889
|
"aria-label": _e === "star" ? s(a)("col.star") : void 0,
|
|
18890
|
-
onPointerdown: (ye) =>
|
|
18890
|
+
onPointerdown: (ye) => gt(_e, ye)
|
|
18891
18891
|
}, [
|
|
18892
18892
|
Se[_e] ? (c(), d("button", {
|
|
18893
18893
|
key: 0,
|
|
@@ -19002,7 +19002,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19002
19002
|
key: 2,
|
|
19003
19003
|
class: "fe-list__icon fe-list__icon--svg",
|
|
19004
19004
|
"aria-hidden": "true",
|
|
19005
|
-
innerHTML: s(
|
|
19005
|
+
innerHTML: s(dn)(Pe)
|
|
19006
19006
|
}, null, 8, EM)),
|
|
19007
19007
|
o("div", zM, [
|
|
19008
19008
|
o("span", {
|
|
@@ -19060,7 +19060,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19060
19060
|
], 32)) : g("", !0)
|
|
19061
19061
|
], 4)) : (c(), d("div", {
|
|
19062
19062
|
key: 1,
|
|
19063
|
-
class: xe(
|
|
19063
|
+
class: xe(ie(Oe)),
|
|
19064
19064
|
role: "gridcell",
|
|
19065
19065
|
style: xt(A(Oe)),
|
|
19066
19066
|
title: mt(Oe, Pe)
|
|
@@ -19097,8 +19097,8 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19097
19097
|
key: 0,
|
|
19098
19098
|
class: xe(["fe-colmenu__backdrop", ct.value]),
|
|
19099
19099
|
"data-prefers-dark": Jt.value ? "1" : "0",
|
|
19100
|
-
onClick:
|
|
19101
|
-
onContextmenu: je(
|
|
19100
|
+
onClick: kt,
|
|
19101
|
+
onContextmenu: je(kt, ["prevent"])
|
|
19102
19102
|
}, [
|
|
19103
19103
|
o("div", {
|
|
19104
19104
|
ref_key: "colMenuEl",
|
|
@@ -19110,7 +19110,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19110
19110
|
style: xt({ top: At.value + "px", left: wt.value + "px" }),
|
|
19111
19111
|
onClick: te[11] || (te[11] = je(() => {
|
|
19112
19112
|
}, ["stop"])),
|
|
19113
|
-
onKeydown: jt(je(
|
|
19113
|
+
onKeydown: jt(je(kt, ["stop"]), ["esc"])
|
|
19114
19114
|
}, [
|
|
19115
19115
|
o("p", RM, f(s(a)("cols.title")), 1),
|
|
19116
19116
|
(c(!0), d(ae, null, Me(on.value, (_e) => (c(), d("div", {
|
|
@@ -19167,7 +19167,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19167
19167
|
key: 5,
|
|
19168
19168
|
type: "button",
|
|
19169
19169
|
class: "fe-colmenu__row",
|
|
19170
|
-
onClick:
|
|
19170
|
+
onClick: hn
|
|
19171
19171
|
}, [
|
|
19172
19172
|
o("span", ZM, f(s(a)("cols.forget_folder")), 1)
|
|
19173
19173
|
])) : g("", !0),
|
|
@@ -19228,13 +19228,13 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19228
19228
|
const n = e, r = t, { t: a, formatSize: u, nodeDisplayName: v, formatDate: p, formatMonthYear: h, zonedYearMonth: b, toDate: y } = et(() => n.locale), z = Ao(), L = k(
|
|
19229
19229
|
() => ji(n.files, {
|
|
19230
19230
|
active: Ui(z.key.value, n.order),
|
|
19231
|
-
dateOf: (
|
|
19232
|
-
aside: (
|
|
19231
|
+
dateOf: (le) => y(le.last_modified),
|
|
19232
|
+
aside: (le) => le.type === "dir" ? { id: "dirs" } : null,
|
|
19233
19233
|
labels: { t: a, formatMonthYear: h, zonedYearMonth: b }
|
|
19234
19234
|
})
|
|
19235
19235
|
);
|
|
19236
|
-
function T(
|
|
19237
|
-
return n.thumbSrc ? n.thumbSrc(
|
|
19236
|
+
function T(le) {
|
|
19237
|
+
return n.thumbSrc ? n.thumbSrc(le) : le.thumb_url ?? null;
|
|
19238
19238
|
}
|
|
19239
19239
|
const H = Sd({
|
|
19240
19240
|
apiBase: n.apiBase,
|
|
@@ -19243,68 +19243,68 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19243
19243
|
disabled: () => n.e2eActive === !0
|
|
19244
19244
|
});
|
|
19245
19245
|
it(() => H.dispose());
|
|
19246
|
-
function D(
|
|
19247
|
-
return H.kindFor(
|
|
19246
|
+
function D(le) {
|
|
19247
|
+
return H.kindFor(le);
|
|
19248
19248
|
}
|
|
19249
|
-
function F(
|
|
19250
|
-
const Q = H.get(
|
|
19249
|
+
function F(le) {
|
|
19250
|
+
const Q = H.get(le);
|
|
19251
19251
|
return Q ? [Q] : [];
|
|
19252
19252
|
}
|
|
19253
|
-
function w(
|
|
19254
|
-
H.bind(
|
|
19253
|
+
function w(le, Q) {
|
|
19254
|
+
H.bind(le instanceof Element ? le : null, Q);
|
|
19255
19255
|
}
|
|
19256
|
-
function M(
|
|
19257
|
-
return n.starEnabled === !1 ? !1 : n.apiBase !== void 0 && typeof
|
|
19256
|
+
function M(le) {
|
|
19257
|
+
return n.starEnabled === !1 ? !1 : n.apiBase !== void 0 && typeof le.id == "number" && le.type === "file";
|
|
19258
19258
|
}
|
|
19259
|
-
function $(
|
|
19260
|
-
return n.selected.has(
|
|
19259
|
+
function $(le) {
|
|
19260
|
+
return n.selected.has(le.path);
|
|
19261
19261
|
}
|
|
19262
|
-
function S(
|
|
19263
|
-
r("click-card",
|
|
19262
|
+
function S(le, Q) {
|
|
19263
|
+
r("click-card", le, Fi(Q));
|
|
19264
19264
|
}
|
|
19265
|
-
function E(
|
|
19266
|
-
r("click-card",
|
|
19265
|
+
function E(le, Q) {
|
|
19266
|
+
r("click-card", le, Hi(Q, re.isTap(Q)));
|
|
19267
19267
|
}
|
|
19268
|
-
function x(
|
|
19269
|
-
r("dbl-card",
|
|
19268
|
+
function x(le) {
|
|
19269
|
+
r("dbl-card", le);
|
|
19270
19270
|
}
|
|
19271
|
-
function W(
|
|
19272
|
-
Q.preventDefault(), Q.stopPropagation(), r("context-card",
|
|
19271
|
+
function W(le, Q) {
|
|
19272
|
+
Q.preventDefault(), Q.stopPropagation(), r("context-card", le, Q);
|
|
19273
19273
|
}
|
|
19274
|
-
function I(
|
|
19274
|
+
function I(le, Q) {
|
|
19275
19275
|
Vi(
|
|
19276
19276
|
Q,
|
|
19277
|
-
v(
|
|
19278
|
-
n.selected.has(
|
|
19279
|
-
), r("item-drag-start",
|
|
19277
|
+
v(le),
|
|
19278
|
+
n.selected.has(le.path) ? n.selected.size : 1
|
|
19279
|
+
), r("item-drag-start", le, Q);
|
|
19280
19280
|
}
|
|
19281
19281
|
const Y = m(null);
|
|
19282
|
-
function K(
|
|
19283
|
-
|
|
19282
|
+
function K(le, Q) {
|
|
19283
|
+
le.type === "dir" && pn(Q) && (Q.preventDefault(), Q.stopPropagation(), Q.dataTransfer && (Q.dataTransfer.dropEffect = "move"), Y.value = le.path);
|
|
19284
19284
|
}
|
|
19285
|
-
function q(
|
|
19286
|
-
Y.value ===
|
|
19285
|
+
function q(le) {
|
|
19286
|
+
Y.value === le.path && (Y.value = null);
|
|
19287
19287
|
}
|
|
19288
|
-
function V(
|
|
19289
|
-
Y.value = null,
|
|
19288
|
+
function V(le, Q) {
|
|
19289
|
+
Y.value = null, le.type === "dir" && pn(Q) && (Q.preventDefault(), Q.stopPropagation(), r("item-drop-into", le, Q));
|
|
19290
19290
|
}
|
|
19291
19291
|
const re = Ni(
|
|
19292
|
-
(
|
|
19292
|
+
(le, Q) => r("context-card", le, { ...Q, preventDefault: () => {
|
|
19293
19293
|
}, stopPropagation: () => {
|
|
19294
19294
|
} }),
|
|
19295
19295
|
{
|
|
19296
19296
|
// A finger lifted on the item, off its controls, opens at touchend — see useRowTouch.
|
|
19297
|
-
onTap: (
|
|
19297
|
+
onTap: (le) => r("click-card", le, { ctrl: !1, shift: !1, touch: !0 })
|
|
19298
19298
|
}
|
|
19299
19299
|
);
|
|
19300
|
-
function he(
|
|
19301
|
-
return p(
|
|
19300
|
+
function he(le) {
|
|
19301
|
+
return p(le, { time: !0 });
|
|
19302
19302
|
}
|
|
19303
|
-
function fe(
|
|
19304
|
-
const Q = he(
|
|
19305
|
-
return [
|
|
19303
|
+
function fe(le) {
|
|
19304
|
+
const Q = he(le.last_modified);
|
|
19305
|
+
return [le.type === "dir" ? "" : u(le.size), Q].filter((be) => !!be).join(" · ");
|
|
19306
19306
|
}
|
|
19307
|
-
return (
|
|
19307
|
+
return (le, Q) => (c(), d("div", {
|
|
19308
19308
|
class: xe(["fe-gal", { "is-loading": e.loading, "has-selection": e.selectable && e.selected.size > 0 }]),
|
|
19309
19309
|
role: "listbox",
|
|
19310
19310
|
"aria-multiselectable": "true",
|
|
@@ -19372,7 +19372,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19372
19372
|
F(X).length === 0 ? (c(), d("span", {
|
|
19373
19373
|
key: 0,
|
|
19374
19374
|
class: "fe-gal__icon fe-gal__icon--svg",
|
|
19375
|
-
innerHTML: s(
|
|
19375
|
+
innerHTML: s(dn)(X)
|
|
19376
19376
|
}, null, 8, iE)) : g("", !0)
|
|
19377
19377
|
], 64)) : T(X) ? (c(), d("img", {
|
|
19378
19378
|
key: 1,
|
|
@@ -19393,7 +19393,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19393
19393
|
}, null, 8, cE)) : (c(), d("span", {
|
|
19394
19394
|
key: 3,
|
|
19395
19395
|
class: "fe-gal__icon fe-gal__icon--svg",
|
|
19396
|
-
innerHTML: s(
|
|
19396
|
+
innerHTML: s(dn)(X)
|
|
19397
19397
|
}, null, 8, uE)),
|
|
19398
19398
|
!D(X) && T(X) && s(xd)(X) ? (c(), d("span", dE)) : g("", !0),
|
|
19399
19399
|
e.selectable ? (c(), d("span", {
|
|
@@ -19519,7 +19519,8 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19519
19519
|
authHeaders: {},
|
|
19520
19520
|
authCredentials: {},
|
|
19521
19521
|
e2eActive: { type: Boolean },
|
|
19522
|
-
bodyOverride: { type: Boolean }
|
|
19522
|
+
bodyOverride: { type: Boolean },
|
|
19523
|
+
openTrigger: { default: "double" }
|
|
19523
19524
|
},
|
|
19524
19525
|
emits: ["activate", "close", "navigate", "open", "open-trash", "click-row", "context", "clear-selection", "display-order", "item-drag-start", "item-drop-into", "transfer", "update:viewMode", "update:filters", "crumb-context", "copy-path", "crumb-drop", "new-folder", "upload", "paste", "select-all", "clear-filters", "star-change", "retry"],
|
|
19525
19526
|
setup(e, { expose: t, emit: n }) {
|
|
@@ -19535,14 +19536,14 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19535
19536
|
() => !!r.multiRoot && !(T.value ?? "").replace(/^\/+|\/+$/g, "")
|
|
19536
19537
|
);
|
|
19537
19538
|
async function M(A) {
|
|
19538
|
-
const
|
|
19539
|
+
const ie = r.clamp(A ?? p.value ?? "");
|
|
19539
19540
|
b.value = !0, y.value = "";
|
|
19540
19541
|
try {
|
|
19541
|
-
if (r.multiRoot && !
|
|
19542
|
+
if (r.multiRoot && !ie) {
|
|
19542
19543
|
h.value = r.virtualRows ? r.virtualRows() : [], z.value = "", p.value = "", a("navigate", "");
|
|
19543
19544
|
return;
|
|
19544
19545
|
}
|
|
19545
|
-
const Se = await r.api.index(r.qualify(
|
|
19546
|
+
const Se = await r.api.index(r.qualify(ie));
|
|
19546
19547
|
z.value = Se.perm || "", h.value = _s(Se.files), id(h.value, Se.adapter, Se.dirname, r.trashVisible !== !1, {
|
|
19547
19548
|
navOffersTrash: r.navOffersTrash
|
|
19548
19549
|
}) && ld(h.value, Se.adapter, r.api), p.value = r.toUser(Se.dirname), a("navigate", p.value);
|
|
@@ -19559,8 +19560,8 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19559
19560
|
const S = k(
|
|
19560
19561
|
() => ud(T.value) ? T.value : r.qualify(T.value)
|
|
19561
19562
|
), E = k(() => {
|
|
19562
|
-
const A = S.value,
|
|
19563
|
-
return
|
|
19563
|
+
const A = S.value, ie = A.indexOf("://");
|
|
19564
|
+
return ie === -1 ? "" : A.slice(0, ie);
|
|
19564
19565
|
});
|
|
19565
19566
|
function x(A) {
|
|
19566
19567
|
if (a("activate"), !r.selfDriven) {
|
|
@@ -19590,20 +19591,24 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19590
19591
|
function re() {
|
|
19591
19592
|
return Date.now() - V < RE;
|
|
19592
19593
|
}
|
|
19593
|
-
function he(A,
|
|
19594
|
+
function he(A, ie) {
|
|
19594
19595
|
if (!re()) {
|
|
19595
|
-
if (
|
|
19596
|
-
a("activate"), a("click-row", A, { ctrl: !0, shift:
|
|
19596
|
+
if (ie.check) {
|
|
19597
|
+
a("activate"), a("click-row", A, { ctrl: !0, shift: ie.shift });
|
|
19598
|
+
return;
|
|
19599
|
+
}
|
|
19600
|
+
if (ie.touch || r.openTrigger === "single") {
|
|
19601
|
+
V = Date.now(), be(A);
|
|
19597
19602
|
return;
|
|
19598
19603
|
}
|
|
19599
|
-
|
|
19604
|
+
a("activate"), a("click-row", A, { ctrl: ie.ctrl, shift: ie.shift });
|
|
19600
19605
|
}
|
|
19601
19606
|
}
|
|
19602
19607
|
function fe(A) {
|
|
19603
|
-
re() || be(A);
|
|
19608
|
+
re() || (V = Date.now(), be(A));
|
|
19604
19609
|
}
|
|
19605
|
-
function
|
|
19606
|
-
|
|
19610
|
+
function le(A, ie) {
|
|
19611
|
+
ie.preventDefault(), ie.stopPropagation(), a("activate"), a("context", A, ie);
|
|
19607
19612
|
}
|
|
19608
19613
|
function Q(A) {
|
|
19609
19614
|
A.preventDefault(), A.stopPropagation(), a("activate"), a("clear-selection"), a("context", null, A);
|
|
@@ -19622,31 +19627,31 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19622
19627
|
}
|
|
19623
19628
|
a("open", A);
|
|
19624
19629
|
}
|
|
19625
|
-
function me(A,
|
|
19626
|
-
if (!
|
|
19630
|
+
function me(A, ie) {
|
|
19631
|
+
if (!ie.dataTransfer) return;
|
|
19627
19632
|
if (L(A) || w.value || A.basename === ".trash") {
|
|
19628
|
-
|
|
19633
|
+
ie.preventDefault();
|
|
19629
19634
|
return;
|
|
19630
19635
|
}
|
|
19631
19636
|
const Se = H.value.filter((Ke) => r.selected.has(Ke.path) && !L(Ke)).filter((Ke) => {
|
|
19632
19637
|
var Je;
|
|
19633
19638
|
return !((Je = r.clipped) != null && Je.has(Ke.path));
|
|
19634
19639
|
}).map((Ke) => ({ path: Ke.path, basename: Ke.basename, type: Ke.type })), Ye = Se.length > 0 ? Se : [{ path: A.path, basename: A.basename, type: A.type }];
|
|
19635
|
-
|
|
19636
|
-
`)),
|
|
19640
|
+
ie.dataTransfer.setData(NE, JSON.stringify(Ye)), ie.dataTransfer.setData(KE, S.value), ie.dataTransfer.setData("text/plain", Ye.map((Ke) => Ke.path).join(`
|
|
19641
|
+
`)), ie.dataTransfer.effectAllowed = "move", a("item-drag-start", A, ie);
|
|
19637
19642
|
}
|
|
19638
19643
|
const C = m(!1);
|
|
19639
19644
|
function P(A) {
|
|
19640
|
-
return
|
|
19645
|
+
return pn(A);
|
|
19641
19646
|
}
|
|
19642
|
-
function j(A,
|
|
19647
|
+
function j(A, ie) {
|
|
19643
19648
|
const Se = xs(A);
|
|
19644
|
-
if (!Se || !
|
|
19645
|
-
const Ye = di(A), Ke = Se.map((Je) => Je.path).filter((Je) => Je && Je !==
|
|
19646
|
-
Ke.length !== 0 && (A.preventDefault(), A.stopPropagation(), a("transfer", { sources: Ke, targetWire:
|
|
19649
|
+
if (!Se || !ie) return;
|
|
19650
|
+
const Ye = di(A), Ke = Se.map((Je) => Je.path).filter((Je) => Je && Je !== ie && !ie.startsWith(Je + "/"));
|
|
19651
|
+
Ke.length !== 0 && (A.preventDefault(), A.stopPropagation(), a("transfer", { sources: Ke, targetWire: ie, originWire: Ye }));
|
|
19647
19652
|
}
|
|
19648
|
-
function N(A,
|
|
19649
|
-
C.value = !1, !(A.type !== "dir" || L(A)) && P(
|
|
19653
|
+
function N(A, ie) {
|
|
19654
|
+
C.value = !1, !(A.type !== "dir" || L(A)) && P(ie) && a("item-drop-into", A, ie);
|
|
19650
19655
|
}
|
|
19651
19656
|
function ee(A) {
|
|
19652
19657
|
!P(A) || w.value || (A.preventDefault(), A.stopPropagation(), A.dataTransfer && (A.dataTransfer.dropEffect = "move"), C.value = !0);
|
|
@@ -19661,8 +19666,8 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19661
19666
|
return r.selfDriven ? M() : Promise.resolve();
|
|
19662
19667
|
}
|
|
19663
19668
|
function Ee() {
|
|
19664
|
-
const A = (T.value ?? "").replace(/^\/+|\/+$/g, ""),
|
|
19665
|
-
if (!A || A ===
|
|
19669
|
+
const A = (T.value ?? "").replace(/^\/+|\/+$/g, ""), ie = (r.floor || "").replace(/^\/+|\/+$/g, "");
|
|
19670
|
+
if (!A || A === ie) return;
|
|
19666
19671
|
const Se = A.lastIndexOf("/");
|
|
19667
19672
|
$(Se === -1 ? "" : A.slice(0, Se));
|
|
19668
19673
|
}
|
|
@@ -19683,7 +19688,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19683
19688
|
}
|
|
19684
19689
|
return t({ reload: Ce, goUp: Ee, getPath: Be, visibleNodes: ge, loadFolder: M, rowCount: De, rowPaths: se, dirPerm: ue }), Fe(T, () => {
|
|
19685
19690
|
C.value = !1;
|
|
19686
|
-
}), (A,
|
|
19691
|
+
}), (A, ie) => (c(), d("section", {
|
|
19687
19692
|
class: xe(["fe__primary fe-pane", {
|
|
19688
19693
|
"fe-pane--focus": e.focused,
|
|
19689
19694
|
"fe-pane--split": e.paneId === "split",
|
|
@@ -19693,7 +19698,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19693
19698
|
"data-testid": `pane-${e.paneId}`,
|
|
19694
19699
|
role: "region",
|
|
19695
19700
|
"aria-label": e.paneId === "split" ? s(u)("split.pane") : s(u)("toolbar.view_label"),
|
|
19696
|
-
onPointerdownCapture:
|
|
19701
|
+
onPointerdownCapture: ie[17] || (ie[17] = (Se) => a("activate"))
|
|
19697
19702
|
}, [
|
|
19698
19703
|
e.showCrumbs || A.$slots.heading || e.showViewSwitcher || e.closable ? (c(), d("div", kE, [
|
|
19699
19704
|
kn(A.$slots, "heading", {}, () => [
|
|
@@ -19707,9 +19712,9 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19707
19712
|
"root-path": e.rootPath,
|
|
19708
19713
|
subfolders: e.crumbSubfolders ?? q.value,
|
|
19709
19714
|
onNavigate: x,
|
|
19710
|
-
onCopyPath:
|
|
19711
|
-
onCrumbContext:
|
|
19712
|
-
onCrumbDrop:
|
|
19715
|
+
onCopyPath: ie[0] || (ie[0] = (Se) => a("copy-path", Se)),
|
|
19716
|
+
onCrumbContext: ie[1] || (ie[1] = (Se) => a("crumb-context", Se)),
|
|
19717
|
+
onCrumbDrop: ie[2] || (ie[2] = (Se, Ye) => a("crumb-drop", Se, Ye))
|
|
19713
19718
|
}, null, 8, ["dirname", "adapter", "root-label", "locale", "multi-storage-root", "root-path", "subfolders"])) : g("", !0)
|
|
19714
19719
|
]),
|
|
19715
19720
|
o("div", _E, [
|
|
@@ -19718,7 +19723,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19718
19723
|
"view-mode": e.viewMode,
|
|
19719
19724
|
locale: e.locale,
|
|
19720
19725
|
modes: e.viewModes,
|
|
19721
|
-
"onUpdate:viewMode":
|
|
19726
|
+
"onUpdate:viewMode": ie[3] || (ie[3] = (Se) => {
|
|
19722
19727
|
a("activate"), a("update:viewMode", Se);
|
|
19723
19728
|
})
|
|
19724
19729
|
}, null, 8, ["view-mode", "locale", "modes"])) : g("", !0),
|
|
@@ -19729,8 +19734,8 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19729
19734
|
title: s(u)("split.close"),
|
|
19730
19735
|
"aria-label": s(u)("split.close"),
|
|
19731
19736
|
"data-testid": "pane-close",
|
|
19732
|
-
onClick:
|
|
19733
|
-
}, [...
|
|
19737
|
+
onClick: ie[4] || (ie[4] = (Se) => a("close"))
|
|
19738
|
+
}, [...ie[18] || (ie[18] = [
|
|
19734
19739
|
o("svg", {
|
|
19735
19740
|
class: "fe-ficon",
|
|
19736
19741
|
viewBox: "0 0 24 24",
|
|
@@ -19746,7 +19751,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19746
19751
|
])], 8, wE)) : g("", !0)
|
|
19747
19752
|
])
|
|
19748
19753
|
])) : g("", !0),
|
|
19749
|
-
|
|
19754
|
+
ie[24] || (ie[24] = o("div", { class: "fe-selbar-slot" }, null, -1)),
|
|
19750
19755
|
e.showFilterBar ? (c(), Qe(nM, {
|
|
19751
19756
|
key: 1,
|
|
19752
19757
|
value: e.filters,
|
|
@@ -19760,19 +19765,19 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19760
19765
|
files: H.value,
|
|
19761
19766
|
"can-paste": e.canPaste,
|
|
19762
19767
|
"can-write": e.canWrite,
|
|
19763
|
-
"onUpdate:value":
|
|
19768
|
+
"onUpdate:value": ie[5] || (ie[5] = (Se) => {
|
|
19764
19769
|
a("activate"), a("update:filters", Se);
|
|
19765
19770
|
}),
|
|
19766
|
-
onNewFolder:
|
|
19771
|
+
onNewFolder: ie[6] || (ie[6] = (Se) => {
|
|
19767
19772
|
a("activate"), a("new-folder");
|
|
19768
19773
|
}),
|
|
19769
|
-
onUpload:
|
|
19774
|
+
onUpload: ie[7] || (ie[7] = (Se) => {
|
|
19770
19775
|
a("activate"), a("upload");
|
|
19771
19776
|
}),
|
|
19772
|
-
onPaste:
|
|
19777
|
+
onPaste: ie[8] || (ie[8] = (Se) => {
|
|
19773
19778
|
a("activate"), a("paste");
|
|
19774
19779
|
}),
|
|
19775
|
-
onSelectAll:
|
|
19780
|
+
onSelectAll: ie[9] || (ie[9] = (Se) => {
|
|
19776
19781
|
a("activate"), a("select-all");
|
|
19777
19782
|
})
|
|
19778
19783
|
}, null, 8, ["value", "locale", "theme", "mode", "find-label", "order", "shown", "total", "files", "can-paste", "can-write"])) : g("", !0),
|
|
@@ -19791,7 +19796,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19791
19796
|
(c(), d(ae, null, Me(8, (Se) => o("div", {
|
|
19792
19797
|
key: Se,
|
|
19793
19798
|
class: "fe-skel-card"
|
|
19794
|
-
}, [...
|
|
19799
|
+
}, [...ie[19] || (ie[19] = [
|
|
19795
19800
|
o("div", { class: "fe-skel fe-skel--thumb" }, null, -1),
|
|
19796
19801
|
o("div", { class: "fe-skel fe-skel--label" }, null, -1)
|
|
19797
19802
|
])])), 64))
|
|
@@ -19799,7 +19804,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19799
19804
|
(c(), d(ae, null, Me(8, (Se) => o("div", {
|
|
19800
19805
|
key: Se,
|
|
19801
19806
|
class: "fe-skel-row"
|
|
19802
|
-
}, [...
|
|
19807
|
+
}, [...ie[20] || (ie[20] = [
|
|
19803
19808
|
o("div", { class: "fe-skel fe-skel--icon" }, null, -1),
|
|
19804
19809
|
o("div", { class: "fe-skel fe-skel--name" }, null, -1),
|
|
19805
19810
|
o("div", { class: "fe-skel fe-skel--size" }, null, -1),
|
|
@@ -19807,14 +19812,14 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19807
19812
|
])])), 64))
|
|
19808
19813
|
]))
|
|
19809
19814
|
])) : F.value && H.value.length === 0 ? (c(), d("div", TE, [
|
|
19810
|
-
|
|
19815
|
+
ie[21] || (ie[21] = zu('<svg class="fe-state__art" viewBox="0 0 120 100" width="110" height="92" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="60" cy="50" r="28"></circle><path d="M60 36v18"></path><circle cx="60" cy="63" r="1.8" fill="currentColor" stroke="none"></circle><path d="M24 88h72" stroke-dasharray="3 5"></path></svg>', 1)),
|
|
19811
19816
|
o("p", ME, f(s(u)("error.title")), 1),
|
|
19812
19817
|
o("p", EE, f(s(u)("error.hint")), 1),
|
|
19813
19818
|
o("div", zE, [
|
|
19814
19819
|
o("button", {
|
|
19815
19820
|
type: "button",
|
|
19816
19821
|
class: "fe-btn fe-btn--primary",
|
|
19817
|
-
onClick:
|
|
19822
|
+
onClick: ie[10] || (ie[10] = (Se) => e.selfDriven ? M() : a("retry"))
|
|
19818
19823
|
}, f(s(u)("error.retry")), 1)
|
|
19819
19824
|
]),
|
|
19820
19825
|
o("details", AE, [
|
|
@@ -19822,7 +19827,7 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19822
19827
|
o("pre", LE, f(F.value), 1)
|
|
19823
19828
|
])
|
|
19824
19829
|
])) : !D.value && I.value && W.value.length === 0 && H.value.length > 0 ? (c(), d("div", DE, [
|
|
19825
|
-
|
|
19830
|
+
ie[22] || (ie[22] = o("svg", {
|
|
19826
19831
|
class: "fe-state__art",
|
|
19827
19832
|
viewBox: "0 0 120 100",
|
|
19828
19833
|
width: "110",
|
|
@@ -19842,12 +19847,12 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19842
19847
|
o("button", {
|
|
19843
19848
|
type: "button",
|
|
19844
19849
|
class: "fe-btn",
|
|
19845
|
-
onClick:
|
|
19850
|
+
onClick: ie[11] || (ie[11] = (Se) => a("clear-filters"))
|
|
19846
19851
|
}, f(s(u)("filter.clear")), 1)
|
|
19847
19852
|
])
|
|
19848
19853
|
])) : !D.value && H.value.length === 0 ? kn(A.$slots, "empty", { key: 4 }, () => [
|
|
19849
19854
|
o("div", HE, [
|
|
19850
|
-
|
|
19855
|
+
ie[23] || (ie[23] = o("svg", {
|
|
19851
19856
|
class: "fe-state__art",
|
|
19852
19857
|
viewBox: "0 0 120 100",
|
|
19853
19858
|
width: "110",
|
|
@@ -19882,12 +19887,12 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19882
19887
|
"auth-headers": e.authHeaders,
|
|
19883
19888
|
"auth-credentials": e.authCredentials,
|
|
19884
19889
|
onClickRow: he,
|
|
19885
|
-
onDisplayOrder:
|
|
19890
|
+
onDisplayOrder: ie[12] || (ie[12] = (Se) => a("display-order", Se)),
|
|
19886
19891
|
onDblRow: fe,
|
|
19887
|
-
onContextRow:
|
|
19892
|
+
onContextRow: le,
|
|
19888
19893
|
onItemDragStart: me,
|
|
19889
19894
|
onItemDropInto: N,
|
|
19890
|
-
onStarChange:
|
|
19895
|
+
onStarChange: ie[13] || (ie[13] = (Se, Ye) => a("star-change", Se, Ye))
|
|
19891
19896
|
}, null, 8, ["files", "order", "selected", "clipped", "show-parent-path", "locale", "loading", "folder-key", "theme", "thumb-src", "keep-badge-for", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials"])) : e.viewMode === "grid" ? (c(), Qe(pi, {
|
|
19892
19897
|
key: 6,
|
|
19893
19898
|
files: W.value,
|
|
@@ -19907,12 +19912,12 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19907
19912
|
"auth-headers": e.authHeaders,
|
|
19908
19913
|
"auth-credentials": e.authCredentials,
|
|
19909
19914
|
onClickCard: he,
|
|
19910
|
-
onDisplayOrder:
|
|
19915
|
+
onDisplayOrder: ie[14] || (ie[14] = (Se) => a("display-order", Se)),
|
|
19911
19916
|
onDblCard: fe,
|
|
19912
|
-
onContextCard:
|
|
19917
|
+
onContextCard: le,
|
|
19913
19918
|
onItemDragStart: me,
|
|
19914
19919
|
onItemDropInto: N,
|
|
19915
|
-
onStarChange:
|
|
19920
|
+
onStarChange: ie[15] || (ie[15] = (Se, Ye) => a("star-change", Se, Ye))
|
|
19916
19921
|
}, null, 8, ["files", "order", "selected", "clipped", "show-parent-path", "locale", "loading", "keep-badge-for", "thumb-src", "e2e-active", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials"])) : (c(), Qe(bE, {
|
|
19917
19922
|
key: 7,
|
|
19918
19923
|
files: W.value,
|
|
@@ -19931,10 +19936,10 @@ const Z4 = ["data-prefers-dark", "aria-label"], Q4 = {
|
|
|
19931
19936
|
"auth-credentials": e.authCredentials,
|
|
19932
19937
|
onClickCard: he,
|
|
19933
19938
|
onDblCard: fe,
|
|
19934
|
-
onContextCard:
|
|
19939
|
+
onContextCard: le,
|
|
19935
19940
|
onItemDragStart: me,
|
|
19936
19941
|
onItemDropInto: N,
|
|
19937
|
-
onStarChange:
|
|
19942
|
+
onStarChange: ie[16] || (ie[16] = (Se, Ye) => a("star-change", Se, Ye))
|
|
19938
19943
|
}, null, 8, ["files", "order", "selected", "clipped", "show-parent-path", "locale", "loading", "thumb-src", "e2e-active", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials"]))
|
|
19939
19944
|
], 34)
|
|
19940
19945
|
], 42, gE));
|
|
@@ -21005,7 +21010,7 @@ const W8 = { class: "fe-field" }, q8 = { class: "fe-field__label" }, G8 = ["onKe
|
|
|
21005
21010
|
for (const Ce of (G == null ? void 0 : G.files) ?? []) $e.add(Ce.basename.toLowerCase());
|
|
21006
21011
|
return $e;
|
|
21007
21012
|
}
|
|
21008
|
-
let fe = 0,
|
|
21013
|
+
let fe = 0, le = null;
|
|
21009
21014
|
async function Q(G = {}) {
|
|
21010
21015
|
var De;
|
|
21011
21016
|
const $e = ++fe, Ce = H.value;
|
|
@@ -21020,7 +21025,7 @@ const W8 = { class: "fe-field" }, q8 = { class: "fe-field__label" }, G8 = ["onKe
|
|
|
21020
21025
|
G.suggest && !W.value && ge && (x.value = re(Be, ge)), I.value = !!q.value && Be.has(q.value.toLowerCase());
|
|
21021
21026
|
}
|
|
21022
21027
|
function X() {
|
|
21023
|
-
|
|
21028
|
+
le && clearTimeout(le), le = setTimeout(() => void Q(), 220);
|
|
21024
21029
|
}
|
|
21025
21030
|
function be() {
|
|
21026
21031
|
const G = (n.currentPath || "").trim(), [$e] = _a(G);
|
|
@@ -21583,7 +21588,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21583
21588
|
return { adapter: oe, name: te.length ? te[te.length - 1] : oe, rel: O };
|
|
21584
21589
|
}), b = k(() => {
|
|
21585
21590
|
const J = h.value.name, oe = J.lastIndexOf(".");
|
|
21586
|
-
return
|
|
21591
|
+
return dn({
|
|
21587
21592
|
type: n.isDir ? "dir" : "file",
|
|
21588
21593
|
extension: !n.isDir && oe > 0 ? J.slice(oe + 1) : ""
|
|
21589
21594
|
});
|
|
@@ -21602,7 +21607,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21602
21607
|
var oe;
|
|
21603
21608
|
return ((oe = V.find((O) => O.v === J)) == null ? void 0 : oe.l) ?? J;
|
|
21604
21609
|
}
|
|
21605
|
-
const he = m([]), fe = m(!1),
|
|
21610
|
+
const he = m([]), fe = m(!1), le = m(!1), Q = m(ms(n.shareMaxTtlDays)), X = m(null), be = m(""), me = m(""), C = m(""), P = m(!1), j = m("");
|
|
21606
21611
|
function N(J) {
|
|
21607
21612
|
return J.kind ?? "download";
|
|
21608
21613
|
}
|
|
@@ -21634,7 +21639,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21634
21639
|
isDir: !!n.isDir
|
|
21635
21640
|
} : null
|
|
21636
21641
|
)
|
|
21637
|
-
), se = m(!1), ue = m(ms(n.shareMaxTtlDays)), A = m(!1),
|
|
21642
|
+
), se = m(!1), ue = m(ms(n.shareMaxTtlDays)), A = m(!1), ie = m(""), Se = m(""), Ye = m(""), Ke = m(!0), Je = m(!1), mt = m(""), ze = m(null), Ne = m(""), U = m(!1), R = m("");
|
|
21638
21643
|
function Z(J) {
|
|
21639
21644
|
const oe = /* @__PURE__ */ new Set(), O = [];
|
|
21640
21645
|
for (const te of J.split(/[,;\s]+/)) {
|
|
@@ -21757,7 +21762,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21757
21762
|
}
|
|
21758
21763
|
}
|
|
21759
21764
|
}
|
|
21760
|
-
async function
|
|
21765
|
+
async function gt(J) {
|
|
21761
21766
|
S.value = !0;
|
|
21762
21767
|
try {
|
|
21763
21768
|
await n.api.deletePermission(J.id), await We();
|
|
@@ -21781,7 +21786,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21781
21786
|
try {
|
|
21782
21787
|
const J = await n.api.createShare({
|
|
21783
21788
|
path: n.path,
|
|
21784
|
-
password:
|
|
21789
|
+
password: le.value,
|
|
21785
21790
|
expires_at: Yt(),
|
|
21786
21791
|
// null, not 0 — the server reads 0 as "no cap given" either way, but a
|
|
21787
21792
|
// null says it explicitly and keeps the payload honest.
|
|
@@ -21852,7 +21857,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21852
21857
|
Je.value = !0, mt.value = "", ze.value = null, R.value = "";
|
|
21853
21858
|
try {
|
|
21854
21859
|
const J = { ask_name: Ke.value };
|
|
21855
|
-
|
|
21860
|
+
ie.value && (J.max_files = Number(ie.value)), Se.value && (J.max_file_size_mb = Number(Se.value));
|
|
21856
21861
|
const oe = Ye.value.split(/[,\s]+/).map((te) => te.trim().replace(/^\./, "")).filter(Boolean);
|
|
21857
21862
|
oe.length && (J.allowed_ext = oe);
|
|
21858
21863
|
const O = await n.api.createShare({
|
|
@@ -21932,7 +21937,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21932
21937
|
const Dt = k(() => {
|
|
21933
21938
|
var J, oe;
|
|
21934
21939
|
return ((J = X.value) == null ? void 0 : J.url) ?? ((oe = ee.value[0]) == null ? void 0 : oe.url) ?? "";
|
|
21935
|
-
}), Pt = k(() => !!Dt.value),
|
|
21940
|
+
}), Pt = k(() => !!Dt.value), kt = k(() => Pt.value ? X.value ? X.value.pin ? u("access.who.pin") : u("access.who.link") : u("access.who.existing", { n: ee.value.length }) : u("access.who.private")), Zt = k(() => {
|
|
21936
21941
|
var oe, O;
|
|
21937
21942
|
const J = [];
|
|
21938
21943
|
if (X.value)
|
|
@@ -21945,11 +21950,11 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21945
21950
|
}), sn = k(() => {
|
|
21946
21951
|
var oe;
|
|
21947
21952
|
const J = [];
|
|
21948
|
-
return J.push(
|
|
21953
|
+
return J.push(le.value ? u("access.sum.pin_on") : u("access.sum.pin_off")), J.push($e(Q.value)), Be.value && J.push(((oe = ge.find((O) => O.v === Be.value)) == null ? void 0 : oe.l) ?? ""), J.filter(Boolean).join(" · ");
|
|
21949
21954
|
}), Bn = k(() => {
|
|
21950
21955
|
const J = D.value.length + F.value.length;
|
|
21951
21956
|
return J ? u("access.sum.people", { n: J }) : u("access.sum.people_none");
|
|
21952
|
-
}),
|
|
21957
|
+
}), hn = k(
|
|
21953
21958
|
() => G.value.length ? u("access.sum.drop", { n: G.value.length }) : u("access.sum.drop_none")
|
|
21954
21959
|
);
|
|
21955
21960
|
function we() {
|
|
@@ -21967,7 +21972,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
21967
21972
|
}
|
|
21968
21973
|
function ce() {
|
|
21969
21974
|
var vt, It;
|
|
21970
|
-
const J = h.value.name, oe = ((vt = ze.value) == null ? void 0 : vt.url) ?? "", O = ((It = ze.value) == null ? void 0 : It.pin) ?? "", te = Number(
|
|
21975
|
+
const J = h.value.name, oe = ((vt = ze.value) == null ? void 0 : vt.url) ?? "", O = ((It = ze.value) == null ? void 0 : It.pin) ?? "", te = Number(ie.value) || 20, _e = Number(Se.value) || 500, Pe = Ye.value.split(/[,\s]+/).map((Yn) => Yn.trim().replace(/^\./, "")).filter(Boolean), ye = p(`${J} adlı klasöre dosya eklemeniz istendi`, `You've been asked to add files to ${J}`), Oe = [];
|
|
21971
21976
|
return Oe.push(p("Merhaba,", "Hello,"), ""), Oe.push(p("Dosya yüklemeniz istendi.", "You've been invited to upload files."), ""), Oe.push(p(`Klasör: ${J}`, `Folder: ${J}`)), Oe.push(p(`Sınır: en fazla ${te} dosya, dosya başına ${_e} MB.`, `Limit: up to ${te} file(s), ${_e} MB per file.`)), Oe.push(Pe.length ? p(`İzinli türler: ${Pe.join(", ")}`, `Allowed types: ${Pe.join(", ")}`) : p("İzinli türler: tüm türler", "Allowed types: all")), Oe.push("", p("Dosyalarınızı buradan yükleyebilirsiniz:", "Upload your files here:"), oe), O && Oe.push("", p(`PIN (erişim kodu): ${O}`, `PIN (access code): ${O}`)), Oe.push("", Wt(ue.value)), { title: ye, text: Oe.join(`
|
|
21972
21977
|
`) };
|
|
21973
21978
|
}
|
|
@@ -22038,7 +22043,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22038
22043
|
o("span", { class: "fe-share__knob" }, null, -1)
|
|
22039
22044
|
])], 8, M6)
|
|
22040
22045
|
]),
|
|
22041
|
-
o("p", E6, f(
|
|
22046
|
+
o("p", E6, f(kt.value), 1),
|
|
22042
22047
|
Pt.value ? (c(), d(ae, { key: 0 }, [
|
|
22043
22048
|
o("div", z6, [
|
|
22044
22049
|
o("a", {
|
|
@@ -22107,9 +22112,9 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22107
22112
|
o("label", j6, [
|
|
22108
22113
|
Ve(o("input", {
|
|
22109
22114
|
type: "checkbox",
|
|
22110
|
-
"onUpdate:modelValue": oe[4] || (oe[4] = (ye) =>
|
|
22115
|
+
"onUpdate:modelValue": oe[4] || (oe[4] = (ye) => le.value = ye)
|
|
22111
22116
|
}, null, 512), [
|
|
22112
|
-
[zn,
|
|
22117
|
+
[zn, le.value]
|
|
22113
22118
|
]),
|
|
22114
22119
|
o("span", null, f(p("PIN ile koru", "Protect with a PIN")), 1)
|
|
22115
22120
|
]),
|
|
@@ -22378,7 +22383,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22378
22383
|
disabled: S.value,
|
|
22379
22384
|
title: p("Kaldır", "Remove"),
|
|
22380
22385
|
"aria-label": p("Kaldır", "Remove"),
|
|
22381
|
-
onClick: (Oe) =>
|
|
22386
|
+
onClick: (Oe) => gt(ye)
|
|
22382
22387
|
}, [
|
|
22383
22388
|
o("span", {
|
|
22384
22389
|
"aria-hidden": "true",
|
|
@@ -22427,7 +22432,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22427
22432
|
o("path", { d: "M9 6l6 6-6 6" }, null, -1)
|
|
22428
22433
|
])], 2)),
|
|
22429
22434
|
o("span", iP, f(s(u)("access.section.drop")), 1),
|
|
22430
|
-
o("span", lP, f(
|
|
22435
|
+
o("span", lP, f(hn.value), 1)
|
|
22431
22436
|
], 8, rP),
|
|
22432
22437
|
y.value.drop ? (c(), d("div", cP, [
|
|
22433
22438
|
o("p", uP, f(p("Bu klasöre herkesin dosya YÜKLEYEBİLECEĞİ herkese açık bir bağlantı. Yükleyenler klasördeki mevcut dosyaları göremez.", "A public link that lets anyone UPLOAD files into this folder. Uploaders never see the folder's existing files.")), 1),
|
|
@@ -22480,13 +22485,13 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22480
22485
|
o("label", kP, [
|
|
22481
22486
|
o("span", _P, f(p("En fazla dosya", "Max files")), 1),
|
|
22482
22487
|
Ve(o("input", {
|
|
22483
|
-
"onUpdate:modelValue": oe[18] || (oe[18] = (ye) =>
|
|
22488
|
+
"onUpdate:modelValue": oe[18] || (oe[18] = (ye) => ie.value = ye),
|
|
22484
22489
|
type: "number",
|
|
22485
22490
|
min: "1",
|
|
22486
22491
|
class: "fe-share__input fe-share__input--sm",
|
|
22487
22492
|
placeholder: "20"
|
|
22488
22493
|
}, null, 512), [
|
|
22489
|
-
[rt,
|
|
22494
|
+
[rt, ie.value]
|
|
22490
22495
|
])
|
|
22491
22496
|
]),
|
|
22492
22497
|
o("label", wP, [
|
|
@@ -22793,7 +22798,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22793
22798
|
}
|
|
22794
22799
|
}
|
|
22795
22800
|
};
|
|
22796
|
-
}),
|
|
22801
|
+
}), le = m("comfortable"), Q = m(""), X = m(!1), be = m(""), me = k(() => X.value), C = m(""), P = m(""), j = k(
|
|
22797
22802
|
() => C.value !== "" && C.value !== "trash" && C.value !== "home"
|
|
22798
22803
|
), N = k(() => r.config.rememberFolderView !== !1), ee = k(() => {
|
|
22799
22804
|
if (!N.value) return "";
|
|
@@ -22906,7 +22911,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
22906
22911
|
}), ue = k(() => {
|
|
22907
22912
|
const i = (E.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
22908
22913
|
return $ && i === $ || se.value && i === se.value ? !1 : i.length > 0;
|
|
22909
|
-
}), A = k(() => C.value && C.value !== "trash" ? !0 : zt.value ? !(E.value ?? "").replace(/^\/+|\/+$/g, "") : !1),
|
|
22914
|
+
}), A = k(() => C.value && C.value !== "trash" ? !0 : zt.value ? !(E.value ?? "").replace(/^\/+|\/+$/g, "") : !1), ie = k(
|
|
22910
22915
|
() => C.value === "home" ? "find" : "full"
|
|
22911
22916
|
);
|
|
22912
22917
|
function Se() {
|
|
@@ -23016,7 +23021,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23016
23021
|
})
|
|
23017
23022
|
), ve > 0 && Re(p("star.failed")), C.value === "starred" && await sr("starred");
|
|
23018
23023
|
}
|
|
23019
|
-
async function
|
|
23024
|
+
async function gt(i) {
|
|
23020
23025
|
if (typeof i.id == "number")
|
|
23021
23026
|
try {
|
|
23022
23027
|
const l = r.config.apiBase ?? "";
|
|
@@ -23046,7 +23051,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23046
23051
|
extension: (i.name.split(".").pop() || "").toLowerCase(),
|
|
23047
23052
|
id: i.id
|
|
23048
23053
|
};
|
|
23049
|
-
We.value = !1,
|
|
23054
|
+
We.value = !1, un(l);
|
|
23050
23055
|
}
|
|
23051
23056
|
const Ot = k(() => {
|
|
23052
23057
|
var l, _, B;
|
|
@@ -23072,7 +23077,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23072
23077
|
return !i || i.length === 0 ? !1 : i.some(
|
|
23073
23078
|
(l) => l.requires === "onlyoffice" ? !!Ot.value : l.requires === "drawio" ? !!wt.value : !0
|
|
23074
23079
|
);
|
|
23075
|
-
}), ct = m([]), on = m(null), $t = m(!1), Wt = m(!1), Kt = m(!1), Et = m(!1), Dt = m(!1), Pt = m(null),
|
|
23080
|
+
}), ct = m([]), on = m(null), $t = m(!1), Wt = m(!1), Kt = m(!1), Et = m(!1), Dt = m(!1), Pt = m(null), kt = m(!1), Zt = m(null), sn = m("edit"), Bn = m(!1), hn = m(null), we = m(!1), ce = m(null), Le = m(!1), J = m("move"), oe = m([]), O = m(!1), te = m(
|
|
23076
23081
|
(() => {
|
|
23077
23082
|
try {
|
|
23078
23083
|
return localStorage.getItem(Su) === "1";
|
|
@@ -23422,7 +23427,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23422
23427
|
const $n = k(() => xa(Y.value)), Fo = k(
|
|
23423
23428
|
() => $n.value && !A.value && !X.value
|
|
23424
23429
|
), la = m(null), Rt = m(null), vl = m(null), rn = m(!1), hl = m(!1);
|
|
23425
|
-
let Sa,
|
|
23430
|
+
let Sa, mn;
|
|
23426
23431
|
function lr(i) {
|
|
23427
23432
|
hl.value = !!(i && "matches" in i && i.matches);
|
|
23428
23433
|
}
|
|
@@ -23432,10 +23437,10 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23432
23437
|
var B, ne, ve;
|
|
23433
23438
|
const _ = ((ne = (B = l[0]) == null ? void 0 : B.contentRect) == null ? void 0 : ne.width) ?? ((ve = Rt.value) == null ? void 0 : ve.clientWidth) ?? 0;
|
|
23434
23439
|
rn.value = _ > 0 && _ < 560;
|
|
23435
|
-
}), Sa.observe(Rt.value)), typeof window < "u" && window.matchMedia && (
|
|
23440
|
+
}), Sa.observe(Rt.value)), typeof window < "u" && window.matchMedia && (mn = window.matchMedia("(pointer: coarse)"), lr(mn), (i = mn.addEventListener) == null || i.call(mn, "change", lr));
|
|
23436
23441
|
}), it(() => {
|
|
23437
23442
|
var i;
|
|
23438
|
-
Sa == null || Sa.disconnect(), Sa = void 0, (i =
|
|
23443
|
+
Sa == null || Sa.disconnect(), Sa = void 0, (i = mn == null ? void 0 : mn.removeEventListener) == null || i.call(mn, "change", lr), mn = void 0;
|
|
23439
23444
|
});
|
|
23440
23445
|
const xn = m(null);
|
|
23441
23446
|
let Ca;
|
|
@@ -23762,20 +23767,20 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23762
23767
|
}
|
|
23763
23768
|
if (await ot(ve), _) return;
|
|
23764
23769
|
const Te = String(i.name ?? l.slice(B + 1)), Ie = I.value.find((nt) => nt.type === "file" && nt.basename === Te);
|
|
23765
|
-
Ie && (ze.click(Ie.path),
|
|
23770
|
+
Ie && (ze.click(Ie.path), un(Ie));
|
|
23766
23771
|
}
|
|
23767
23772
|
Sv(Rt, {
|
|
23768
23773
|
onDelete: () => {
|
|
23769
23774
|
if (Lt.value) {
|
|
23770
23775
|
const i = Ft.nodes.value;
|
|
23771
|
-
i.length && (ua.value = i,
|
|
23772
|
-
} else ze.isEmpty.value || (
|
|
23776
|
+
i.length && (ua.value = i, kt.value = !0, Et.value = !0);
|
|
23777
|
+
} else ze.isEmpty.value || (kt.value = !1, Et.value = !0);
|
|
23773
23778
|
},
|
|
23774
23779
|
onRename: () => {
|
|
23775
23780
|
if (Lt.value) {
|
|
23776
23781
|
const i = Ft.nodes.value;
|
|
23777
|
-
i.length === 1 && (Pt.value = i[0],
|
|
23778
|
-
} else ze.nodes.value.length === 1 && (Pt.value = ze.nodes.value[0],
|
|
23782
|
+
i.length === 1 && (Pt.value = i[0], kt.value = !0, Kt.value = !0);
|
|
23783
|
+
} else ze.nodes.value.length === 1 && (Pt.value = ze.nodes.value[0], kt.value = !1, Kt.value = !0);
|
|
23779
23784
|
},
|
|
23780
23785
|
onSelectAll: () => Lt.value ? Ft.selectAll() : ze.selectAll(),
|
|
23781
23786
|
onOpen: () => {
|
|
@@ -23785,7 +23790,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23785
23790
|
return;
|
|
23786
23791
|
}
|
|
23787
23792
|
const i = ze.nodes.value[0];
|
|
23788
|
-
i &&
|
|
23793
|
+
i && un(i);
|
|
23789
23794
|
},
|
|
23790
23795
|
onClose: () => {
|
|
23791
23796
|
var i;
|
|
@@ -23866,7 +23871,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23866
23871
|
"ods",
|
|
23867
23872
|
"odp"
|
|
23868
23873
|
]);
|
|
23869
|
-
function
|
|
23874
|
+
function un(i) {
|
|
23870
23875
|
if (i.basename === ".trash") {
|
|
23871
23876
|
Wn();
|
|
23872
23877
|
return;
|
|
@@ -23881,8 +23886,12 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23881
23886
|
return;
|
|
23882
23887
|
}
|
|
23883
23888
|
if (Pr.value && i.type === "file") return;
|
|
23889
|
+
if (r.config.openInHost && i.type === "file") {
|
|
23890
|
+
a("file-opened", { path: i.path, basename: i.basename }), gt(i);
|
|
23891
|
+
return;
|
|
23892
|
+
}
|
|
23884
23893
|
const l = (i.extension || "").toLowerCase();
|
|
23885
|
-
sn.value = xa(i.perm ?? Y.value) ? wf(l) : "view", Zt.value = i, Dt.value = !0, a("file-opened", { path: i.path, basename: i.basename }),
|
|
23894
|
+
sn.value = xa(i.perm ?? Y.value) ? wf(l) : "view", Zt.value = i, Dt.value = !0, a("file-opened", { path: i.path, basename: i.basename }), gt(i);
|
|
23886
23895
|
}
|
|
23887
23896
|
const _f = /* @__PURE__ */ new Set([
|
|
23888
23897
|
...kf,
|
|
@@ -23957,7 +23966,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23957
23966
|
Fr(i);
|
|
23958
23967
|
return;
|
|
23959
23968
|
}
|
|
23960
|
-
sn.value = "view", Zt.value = i, Dt.value = !0,
|
|
23969
|
+
sn.value = "view", Zt.value = i, Dt.value = !0, gt(i);
|
|
23961
23970
|
}
|
|
23962
23971
|
function xf(i) {
|
|
23963
23972
|
if (i.type === "dir") {
|
|
@@ -23969,17 +23978,21 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23969
23978
|
Tn.value && Fr(i);
|
|
23970
23979
|
return;
|
|
23971
23980
|
}
|
|
23981
|
+
if (r.config.openInHost) {
|
|
23982
|
+
un(i);
|
|
23983
|
+
return;
|
|
23984
|
+
}
|
|
23972
23985
|
if (!xa(i.perm ?? Y.value)) {
|
|
23973
23986
|
Tl(i);
|
|
23974
23987
|
return;
|
|
23975
23988
|
}
|
|
23976
23989
|
const l = (i.extension || "").toLowerCase(), _ = r.config.openPageBase;
|
|
23977
23990
|
if (!_) {
|
|
23978
|
-
|
|
23991
|
+
un(i);
|
|
23979
23992
|
return;
|
|
23980
23993
|
}
|
|
23981
23994
|
const B = Yl(_), ne = B.includes("?") ? "&" : "?", ve = `${B}${ne}path=${encodeURIComponent(i.path)}&type=${encodeURIComponent(l)}&mode=edit`;
|
|
23982
|
-
window.open(ve, "_blank", "noopener"), a("file-opened", { path: i.path, basename: i.basename }),
|
|
23995
|
+
window.open(ve, "_blank", "noopener"), a("file-opened", { path: i.path, basename: i.basename }), gt(i);
|
|
23983
23996
|
}
|
|
23984
23997
|
const Sn = m("selection"), fr = m(""), ua = m([]), Sf = m(""), Cf = k(() => {
|
|
23985
23998
|
const i = Qt();
|
|
@@ -23988,7 +24001,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
23988
24001
|
async function pr(i) {
|
|
23989
24002
|
const l = Qt();
|
|
23990
24003
|
if (i === "open") {
|
|
23991
|
-
l[0] &&
|
|
24004
|
+
l[0] && un(l[0]);
|
|
23992
24005
|
return;
|
|
23993
24006
|
}
|
|
23994
24007
|
await bn(i, l);
|
|
@@ -24313,7 +24326,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24313
24326
|
l[0] && Tt(l[0]);
|
|
24314
24327
|
break;
|
|
24315
24328
|
case "rename":
|
|
24316
|
-
l[0] && (Pt.value = l[0],
|
|
24329
|
+
l[0] && (Pt.value = l[0], kt.value = qn(), Kt.value = !0);
|
|
24317
24330
|
break;
|
|
24318
24331
|
case "cut":
|
|
24319
24332
|
qn() ? uc() : (Ne.value = { mode: "cut", items: l, sourcePath: E.value }, Re(p("toast.cut_ready")));
|
|
@@ -24326,7 +24339,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24326
24339
|
break;
|
|
24327
24340
|
case "delete": {
|
|
24328
24341
|
const B = qn();
|
|
24329
|
-
B && (ua.value = l),
|
|
24342
|
+
B && (ua.value = l), kt.value = B, Et.value = !0;
|
|
24330
24343
|
break;
|
|
24331
24344
|
}
|
|
24332
24345
|
case "restore":
|
|
@@ -24336,7 +24349,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24336
24349
|
bl();
|
|
24337
24350
|
break;
|
|
24338
24351
|
case "new-folder":
|
|
24339
|
-
|
|
24352
|
+
kt.value = qn(), $t.value = !0;
|
|
24340
24353
|
break;
|
|
24341
24354
|
case "duplicate":
|
|
24342
24355
|
l[0] && await Of(l[0]);
|
|
@@ -24430,11 +24443,11 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24430
24443
|
const l = i.path.slice(0, i.path.lastIndexOf("/"));
|
|
24431
24444
|
l && l !== dt(E.value) ? await ot(l) : await ot();
|
|
24432
24445
|
const _ = I.value.find((B) => B.path === i.path) ?? { type: "file", path: i.path, basename: i.name, extension: i.ext };
|
|
24433
|
-
Zt.value = _, sn.value = xa(_.perm ?? Y.value) ? "edit" : "view", Dt.value = !0, a("file-opened", { path: _.path, basename: _.basename }),
|
|
24446
|
+
Zt.value = _, sn.value = xa(_.perm ?? Y.value) ? "edit" : "view", Dt.value = !0, a("file-opened", { path: _.path, basename: _.basename }), gt(_);
|
|
24434
24447
|
}
|
|
24435
24448
|
async function Kf(i) {
|
|
24436
24449
|
var _, B;
|
|
24437
|
-
const l =
|
|
24450
|
+
const l = kt.value;
|
|
24438
24451
|
try {
|
|
24439
24452
|
const ne = dt(l ? ((_ = yt.value) == null ? void 0 : _.getPath()) ?? "" : E.value);
|
|
24440
24453
|
await u.newFolder(ne, i), $t.value = !1, l ? await ((B = yt.value) == null ? void 0 : B.reload()) : await ot();
|
|
@@ -24446,7 +24459,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24446
24459
|
var B, ne;
|
|
24447
24460
|
const l = Pt.value;
|
|
24448
24461
|
if (!l) return;
|
|
24449
|
-
const _ =
|
|
24462
|
+
const _ = kt.value;
|
|
24450
24463
|
try {
|
|
24451
24464
|
const ve = dt(_ ? ((B = yt.value) == null ? void 0 : B.getPath()) ?? "" : E.value), Te = l.path, Ie = l.basename;
|
|
24452
24465
|
if (await u.rename(ve, Te, i), Kt.value = !1, Pt.value = null, _ ? await ((ne = yt.value) == null ? void 0 : ne.reload()) : await ot(), i && i !== Ie) {
|
|
@@ -24465,7 +24478,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24465
24478
|
Et.value = !1, Re(p("toast.trash_retention"));
|
|
24466
24479
|
return;
|
|
24467
24480
|
}
|
|
24468
|
-
const i =
|
|
24481
|
+
const i = kt.value, l = i ? ua.value : ze.nodes.value, _ = dt(i ? ((Te = yt.value) == null ? void 0 : Te.getPath()) ?? "" : E.value), B = l.map((ut) => ut.path);
|
|
24469
24482
|
if (B.length === 0) {
|
|
24470
24483
|
Et.value = !1;
|
|
24471
24484
|
return;
|
|
@@ -24486,7 +24499,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24486
24499
|
}
|
|
24487
24500
|
}
|
|
24488
24501
|
function jf(i) {
|
|
24489
|
-
|
|
24502
|
+
hn.value = i, Bn.value = !0;
|
|
24490
24503
|
}
|
|
24491
24504
|
function Vf(i) {
|
|
24492
24505
|
Re(v.value === "en" ? `Converted → ${i}` : `Dönüştürüldü → ${i}`), ot();
|
|
@@ -24620,7 +24633,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24620
24633
|
Xn.value = Math.max(0, Xn.value - 1), Xn.value === 0 && (Jn.value = !1);
|
|
24621
24634
|
}
|
|
24622
24635
|
function Gf(i) {
|
|
24623
|
-
if (
|
|
24636
|
+
if (pn(i)) {
|
|
24624
24637
|
i.preventDefault();
|
|
24625
24638
|
return;
|
|
24626
24639
|
}
|
|
@@ -24628,14 +24641,14 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24628
24641
|
}
|
|
24629
24642
|
function Xf(i) {
|
|
24630
24643
|
var _;
|
|
24631
|
-
if (
|
|
24644
|
+
if (pn(i)) {
|
|
24632
24645
|
const B = di(i) || "", ne = dt(E.value), ve = xs(i);
|
|
24633
24646
|
if (ve && B && ne && B !== ne && !X.value && $n.value) {
|
|
24634
24647
|
i.preventDefault(), Xn.value = 0, Jn.value = !1, Ia(), io(), Pa(ve.map((Te) => Te.path), ne, B);
|
|
24635
24648
|
return;
|
|
24636
24649
|
}
|
|
24637
24650
|
}
|
|
24638
|
-
if (
|
|
24651
|
+
if (pn(i)) {
|
|
24639
24652
|
Xn.value = 0, Jn.value = !1, Ia(), io();
|
|
24640
24653
|
return;
|
|
24641
24654
|
}
|
|
@@ -24855,11 +24868,11 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24855
24868
|
Re(p("e2e.decrypt_failed"));
|
|
24856
24869
|
return;
|
|
24857
24870
|
}
|
|
24858
|
-
On.value = l, Zn.value = !0,
|
|
24871
|
+
On.value = l, Zn.value = !0, gt(l);
|
|
24859
24872
|
})();
|
|
24860
24873
|
return;
|
|
24861
24874
|
}
|
|
24862
|
-
On.value = l, Zn.value = !0,
|
|
24875
|
+
On.value = l, Zn.value = !0, gt(l);
|
|
24863
24876
|
}
|
|
24864
24877
|
}
|
|
24865
24878
|
function op(i) {
|
|
@@ -24873,7 +24886,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24873
24886
|
}
|
|
24874
24887
|
function sp() {
|
|
24875
24888
|
const i = On.value;
|
|
24876
|
-
Zn.value = !1, i &&
|
|
24889
|
+
Zn.value = !1, i && un(i);
|
|
24877
24890
|
}
|
|
24878
24891
|
Fe(
|
|
24879
24892
|
() => ze.nodes.value,
|
|
@@ -24887,11 +24900,11 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
24887
24900
|
await Hr(l);
|
|
24888
24901
|
} catch {
|
|
24889
24902
|
}
|
|
24890
|
-
On.value = l,
|
|
24903
|
+
On.value = l, gt(l);
|
|
24891
24904
|
})();
|
|
24892
24905
|
return;
|
|
24893
24906
|
}
|
|
24894
|
-
l && l.path !== ((B = On.value) == null ? void 0 : B.path) && (On.value = l,
|
|
24907
|
+
l && l.path !== ((B = On.value) == null ? void 0 : B.path) && (On.value = l, gt(l));
|
|
24895
24908
|
}
|
|
24896
24909
|
);
|
|
24897
24910
|
const $r = J4();
|
|
@@ -25058,7 +25071,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25058
25071
|
);
|
|
25059
25072
|
return;
|
|
25060
25073
|
}
|
|
25061
|
-
|
|
25074
|
+
un(l);
|
|
25062
25075
|
}
|
|
25063
25076
|
function _p() {
|
|
25064
25077
|
Cn.value = "main", Wn();
|
|
@@ -25294,7 +25307,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25294
25307
|
Re(p("e2e.decrypt_failed"));
|
|
25295
25308
|
return;
|
|
25296
25309
|
}
|
|
25297
|
-
sn.value = "view", Zt.value = i, Dt.value = !0, a("file-opened", { path: i.path, basename: i.basename }),
|
|
25310
|
+
sn.value = "view", Zt.value = i, Dt.value = !0, a("file-opened", { path: i.path, basename: i.basename }), gt(i);
|
|
25298
25311
|
}
|
|
25299
25312
|
async function Bp(i) {
|
|
25300
25313
|
try {
|
|
@@ -25487,7 +25500,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25487
25500
|
"fe--theme-light": Ht.value === "light",
|
|
25488
25501
|
"fe--theme-dark": Ht.value === "dark",
|
|
25489
25502
|
"fe--is-dragover": Jn.value,
|
|
25490
|
-
"fe--density-compact":
|
|
25503
|
+
"fe--density-compact": le.value === "compact",
|
|
25491
25504
|
"fe--narrow": rn.value
|
|
25492
25505
|
}]),
|
|
25493
25506
|
tabindex: "-1",
|
|
@@ -25530,7 +25543,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25530
25543
|
"onUpdate:viewMode": l[1] || (l[1] = (ke) => rc(ke)),
|
|
25531
25544
|
"onUpdate:searchQuery": Xd,
|
|
25532
25545
|
onOpenAdvancedSearch: qd,
|
|
25533
|
-
"onUpdate:density": l[2] || (l[2] = (ke) =>
|
|
25546
|
+
"onUpdate:density": l[2] || (l[2] = (ke) => le.value = ke),
|
|
25534
25547
|
onOpenShortcutSettings: l[3] || (l[3] = (ke) => lo.value = !0),
|
|
25535
25548
|
onOpenTimezone: l[4] || (l[4] = (ke) => R.value = !0),
|
|
25536
25549
|
onNewFolder: l[5] || (l[5] = (ke) => $t.value = !0),
|
|
@@ -25640,8 +25653,9 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25640
25653
|
order: Rd.value,
|
|
25641
25654
|
"view-mode": fe.value,
|
|
25642
25655
|
"view-modes": tr.value,
|
|
25656
|
+
"open-trigger": r.config.openTrigger,
|
|
25643
25657
|
"show-crumbs": C.value !== "home",
|
|
25644
|
-
"filter-mode":
|
|
25658
|
+
"filter-mode": ie.value,
|
|
25645
25659
|
"find-label": C.value === "home" ? s(p)("filter.find.home") : "",
|
|
25646
25660
|
"show-view-switcher": C.value !== "home",
|
|
25647
25661
|
"folder-key": ee.value,
|
|
@@ -25663,7 +25677,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25663
25677
|
"body-override": Mr.value !== "",
|
|
25664
25678
|
onActivate: wp,
|
|
25665
25679
|
onNavigate: ep,
|
|
25666
|
-
onOpen:
|
|
25680
|
+
onOpen: un,
|
|
25667
25681
|
onOpenTrash: l[14] || (l[14] = () => Wn()),
|
|
25668
25682
|
onClickRow: l[15] || (l[15] = (ke, tn) => Fl("main", ke, tn)),
|
|
25669
25683
|
onContext: l[16] || (l[16] = (ke, tn) => Pl("main", ke, tn)),
|
|
@@ -25814,7 +25828,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
25814
25828
|
"name-filter": no.value.name ?? "",
|
|
25815
25829
|
"thumb-src": s(T).src,
|
|
25816
25830
|
onOpenStorage: fl,
|
|
25817
|
-
onOpenNode:
|
|
25831
|
+
onOpenNode: un,
|
|
25818
25832
|
onContextNode: Al
|
|
25819
25833
|
}, null, 8, ["storages", "recent", "starred", "loading", "locale", "name-filter", "thumb-src"])) : Mr.value === "notfound" ? (c(), d("div", $L, [
|
|
25820
25834
|
l[81] || (l[81] = o("svg", {
|
|
@@ -26021,7 +26035,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
26021
26035
|
]))
|
|
26022
26036
|
]),
|
|
26023
26037
|
_: 1
|
|
26024
|
-
}, 8, ["api", "locale", "theme", "focused", "path", "root-path", "floor", "multi-root", "rows", "loading", "error", "order", "view-mode", "view-modes", "show-crumbs", "filter-mode", "find-label", "show-view-switcher", "folder-key", "show-parent-path", "clipped", "extra-filters", "can-write", "can-paste", "selected", "filters", "thumb-src", "keep-badge-for", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials", "e2e-active", "body-override"]),
|
|
26038
|
+
}, 8, ["api", "locale", "theme", "focused", "path", "root-path", "floor", "multi-root", "rows", "loading", "error", "order", "view-mode", "view-modes", "open-trigger", "show-crumbs", "filter-mode", "find-label", "show-view-switcher", "folder-key", "show-parent-path", "clipped", "extra-filters", "can-write", "can-paste", "selected", "filters", "thumb-src", "keep-badge-for", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials", "e2e-active", "body-override"]),
|
|
26025
26039
|
Aa.value && In.value ? (c(), Qe(_u, {
|
|
26026
26040
|
ref_key: "splitPaneRef",
|
|
26027
26041
|
ref: yt,
|
|
@@ -26045,6 +26059,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
26045
26059
|
"nav-offers-trash": Qi.value,
|
|
26046
26060
|
"view-mode": oc.value,
|
|
26047
26061
|
"view-modes": tr.value,
|
|
26062
|
+
"open-trigger": r.config.openTrigger,
|
|
26048
26063
|
clipped: gr.value,
|
|
26049
26064
|
"can-write": $n.value,
|
|
26050
26065
|
"can-paste": !!Ne.value.mode,
|
|
@@ -26061,7 +26076,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
26061
26076
|
onActivate: l[24] || (l[24] = (ke) => Cn.value = "split"),
|
|
26062
26077
|
onClose: bp,
|
|
26063
26078
|
onNavigate: gp,
|
|
26064
|
-
onOpen:
|
|
26079
|
+
onOpen: un,
|
|
26065
26080
|
onOpenTrash: _p,
|
|
26066
26081
|
onClickRow: l[25] || (l[25] = (ke, tn) => Fl("split", ke, tn)),
|
|
26067
26082
|
onContext: l[26] || (l[26] = (ke, tn) => Pl("split", ke, tn)),
|
|
@@ -26080,7 +26095,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
26080
26095
|
onSelectAll: l[33] || (l[33] = (ke) => s(Ft).selectAll()),
|
|
26081
26096
|
onClearFilters: l[34] || (l[34] = (ke) => co.value = { ...s(aa) }),
|
|
26082
26097
|
onStarChange: de
|
|
26083
|
-
}, null, 8, ["api", "locale", "theme", "focused", "path", "root-path", "floor", "multi-root", "trash-visible", "nav-offers-trash", "view-mode", "view-modes", "clipped", "can-write", "can-paste", "selected", "filters", "folder-key", "thumb-src", "keep-badge-for", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials"])) : g("", !0)
|
|
26098
|
+
}, null, 8, ["api", "locale", "theme", "focused", "path", "root-path", "floor", "multi-root", "trash-visible", "nav-offers-trash", "view-mode", "view-modes", "open-trigger", "clipped", "can-write", "can-paste", "selected", "filters", "folder-key", "thumb-src", "keep-badge-for", "starred-ids", "star-enabled", "api-base", "auth-headers", "auth-credentials"])) : g("", !0)
|
|
26084
26099
|
])
|
|
26085
26100
|
]),
|
|
26086
26101
|
te.value ? (c(), Qe(ck, {
|
|
@@ -26351,13 +26366,13 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
26351
26366
|
onNav: mt,
|
|
26352
26367
|
onClose: l[51] || (l[51] = (ke) => Dt.value = !1)
|
|
26353
26368
|
}, null, 8, ["open", "locale", "file", "theme", "preview-url", "download-url", "only-office-base", "only-office-config-endpoint", "new-tab-enabled", "save-text-endpoint", "archive-list-endpoint", "open-mode", "auth-headers", "auth-credentials", "drawio-url", "pdf-worker-url", "pdf-save-url", "viewer-base-url", "index", "total", "nav-enabled", "share-enabled", "api-base"]),
|
|
26354
|
-
Bn.value &&
|
|
26369
|
+
Bn.value && hn.value && At.value ? (c(), Qe(l6, {
|
|
26355
26370
|
key: 4,
|
|
26356
26371
|
"convert-url": At.value,
|
|
26357
|
-
"file-name": ((nt =
|
|
26372
|
+
"file-name": ((nt = hn.value) == null ? void 0 : nt.basename) || ((ut = hn.value) == null ? void 0 : ut.path) || "",
|
|
26358
26373
|
"fetch-bytes": () => {
|
|
26359
26374
|
var ke;
|
|
26360
|
-
return s(u).fetchArrayBuffer(((ke =
|
|
26375
|
+
return s(u).fetchArrayBuffer(((ke = hn.value) == null ? void 0 : ke.path) ?? "");
|
|
26361
26376
|
},
|
|
26362
26377
|
upload: (ke) => s(u).uploadMultipart(dt(E.value), [ke]).then(() => {
|
|
26363
26378
|
}),
|
|
@@ -26476,7 +26491,7 @@ const h6 = ["aria-label"], m6 = { class: "fe-share__head" }, y6 = ["innerHTML"],
|
|
|
26476
26491
|
"global-search": bf,
|
|
26477
26492
|
onClose: l[64] || (l[64] = (ke) => qo.value = !1),
|
|
26478
26493
|
onOpenHit: gf,
|
|
26479
|
-
onOpenNode:
|
|
26494
|
+
onOpenNode: un,
|
|
26480
26495
|
onNavigate: l[65] || (l[65] = (ke) => ot(ke)),
|
|
26481
26496
|
onNewFolder: l[66] || (l[66] = (ke) => $t.value = !0),
|
|
26482
26497
|
onUpload: Gn,
|
|
@@ -26778,7 +26793,7 @@ export {
|
|
|
26778
26793
|
gd as cz,
|
|
26779
26794
|
Wr as d,
|
|
26780
26795
|
ju as e,
|
|
26781
|
-
|
|
26796
|
+
dn as f,
|
|
26782
26797
|
F8 as g,
|
|
26783
26798
|
Gt as h,
|
|
26784
26799
|
Dd as i,
|
|
@@ -26800,4 +26815,4 @@ export {
|
|
|
26800
26815
|
Rz as y,
|
|
26801
26816
|
q4 as z
|
|
26802
26817
|
};
|
|
26803
|
-
//# sourceMappingURL=index-
|
|
26818
|
+
//# sourceMappingURL=index-B0N5qiyj.js.map
|