@brftech/filex-core 0.7.6 → 0.9.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-BRFvhWwL.js → ArchiveViewer-DkspPMSy.js} +2 -2
- package/dist/{ArchiveViewer-BRFvhWwL.js.map → ArchiveViewer-DkspPMSy.js.map} +1 -1
- package/dist/{CsvViewer-1cGGKeGi.js → CsvViewer-D0UCc1Kh.js} +2 -2
- package/dist/{CsvViewer-1cGGKeGi.js.map → CsvViewer-D0UCc1Kh.js.map} +1 -1
- package/dist/{DrawioViewer-C0oThT59.js → DrawioViewer-CHjj_lou.js} +2 -2
- package/dist/{DrawioViewer-C0oThT59.js.map → DrawioViewer-CHjj_lou.js.map} +1 -1
- package/dist/{EpubViewer-DCPOD2S-.js → EpubViewer-BOAa22iy.js} +2 -2
- package/dist/{EpubViewer-DCPOD2S-.js.map → EpubViewer-BOAa22iy.js.map} +1 -1
- package/dist/{IpynbViewer-mv4xiv3H.js → IpynbViewer-BlBa-Q-t.js} +2 -2
- package/dist/{IpynbViewer-mv4xiv3H.js.map → IpynbViewer-BlBa-Q-t.js.map} +1 -1
- package/dist/{MermaidViewer-BBNVghTz.js → MermaidViewer-CvpM7z1N.js} +2 -2
- package/dist/{MermaidViewer-BBNVghTz.js.map → MermaidViewer-CvpM7z1N.js.map} +1 -1
- package/dist/{PsdViewer-B8ygWw-s.js → PsdViewer-CMzqfXHr.js} +2 -2
- package/dist/{PsdViewer-B8ygWw-s.js.map → PsdViewer-CMzqfXHr.js.map} +1 -1
- package/dist/{TiffViewer-BhHjf3s5.js → TiffViewer-Dgg2FGW6.js} +2 -2
- package/dist/{TiffViewer-BhHjf3s5.js.map → TiffViewer-Dgg2FGW6.js.map} +1 -1
- package/dist/{Viewer3D-BhOJpzyG.js → Viewer3D-kixldPCf.js} +2 -2
- package/dist/{Viewer3D-BhOJpzyG.js.map → Viewer3D-kixldPCf.js.map} +1 -1
- package/dist/filex-core.js +1 -1
- package/dist/filex-core.umd.cjs +10 -10
- package/dist/filex-core.umd.cjs.map +1 -1
- package/dist/{index-BjiUhk9K.js → index-CR9pfSDq.js} +336 -333
- package/dist/index-CR9pfSDq.js.map +1 -0
- package/package.json +1 -1
- package/src/FileExplorer.vue +10 -2
- package/src/locales/en.ts +1 -0
- package/src/locales/tr.ts +1 -0
- package/dist/index-BjiUhk9K.js.map +0 -1
|
@@ -146,46 +146,46 @@ function Or(o) {
|
|
|
146
146
|
ge != null && ae.set(ce, String(ge));
|
|
147
147
|
return ae.toString();
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function P(Y, ae = {}) {
|
|
150
150
|
const ce = c.manager.includes("?") ? "&" : "?";
|
|
151
151
|
return `${c.manager}${ce}${S({ q: Y, action: Y, ...ae })}`;
|
|
152
152
|
}
|
|
153
153
|
async function ee(Y) {
|
|
154
|
-
return r(
|
|
154
|
+
return r(P("index", { path: Y }));
|
|
155
155
|
}
|
|
156
156
|
async function O(Y, ae) {
|
|
157
|
-
return r(
|
|
157
|
+
return r(P("search", { path: Y, filter: ae }));
|
|
158
158
|
}
|
|
159
159
|
async function z(Y, ae = {}) {
|
|
160
160
|
const ce = c.manager.replace(/\/manager(\?.*)?$/, "/search"), ge = ce.includes("?") ? "&" : "?", Ge = `${ce}${ge}${S({ q: Y, limit: ae.limit, scope: ae.scope })}`, Be = await r(Ge);
|
|
161
161
|
return Array.isArray(Be == null ? void 0 : Be.results) ? Be.results : [];
|
|
162
162
|
}
|
|
163
163
|
async function j(Y) {
|
|
164
|
-
return r(
|
|
164
|
+
return r(P("subfolders", { path: Y }));
|
|
165
165
|
}
|
|
166
166
|
async function K(Y, ae) {
|
|
167
|
-
return r(
|
|
167
|
+
return r(P("newfolder"), {
|
|
168
168
|
method: "POST",
|
|
169
169
|
headers: { "Content-Type": "application/json" },
|
|
170
170
|
body: JSON.stringify({ path: Y, name: ae })
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
async function F(Y, ae, ce) {
|
|
174
|
-
return r(
|
|
174
|
+
return r(P("rename"), {
|
|
175
175
|
method: "POST",
|
|
176
176
|
headers: { "Content-Type": "application/json" },
|
|
177
177
|
body: JSON.stringify({ path: Y, item: ae, name: ce })
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
async function _(Y, ae, ce) {
|
|
181
|
-
return r(
|
|
181
|
+
return r(P("move"), {
|
|
182
182
|
method: "POST",
|
|
183
183
|
headers: { "Content-Type": "application/json" },
|
|
184
184
|
body: JSON.stringify({ path: Y, item: ce, items: ae.map((ge) => ({ path: ge })) })
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
async function $(Y, ae) {
|
|
188
|
-
return r(
|
|
188
|
+
return r(P("delete"), {
|
|
189
189
|
method: "POST",
|
|
190
190
|
headers: { "Content-Type": "application/json" },
|
|
191
191
|
body: JSON.stringify({ path: Y, items: ae.map((ce) => ({ path: ce })) })
|
|
@@ -251,7 +251,7 @@ function Or(o) {
|
|
|
251
251
|
const Ge = await d();
|
|
252
252
|
return new Promise((Be, Ve) => {
|
|
253
253
|
const Fe = new XMLHttpRequest();
|
|
254
|
-
Fe.open("POST",
|
|
254
|
+
Fe.open("POST", P("upload"));
|
|
255
255
|
for (const [je, Dt] of Object.entries(Ge))
|
|
256
256
|
je !== "Content-Type" && Fe.setRequestHeader(je, Dt);
|
|
257
257
|
Fe.withCredentials = l() === "include", Fe.upload.onprogress = (je) => {
|
|
@@ -269,10 +269,10 @@ function Or(o) {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
function be(Y) {
|
|
272
|
-
return
|
|
272
|
+
return P("download", { path: Y });
|
|
273
273
|
}
|
|
274
274
|
function D(Y) {
|
|
275
|
-
return
|
|
275
|
+
return P("preview", { path: Y });
|
|
276
276
|
}
|
|
277
277
|
async function b(Y) {
|
|
278
278
|
const ae = await d(), ce = await fetch(D(Y), {
|
|
@@ -524,7 +524,7 @@ function Lr(o, c) {
|
|
|
524
524
|
);
|
|
525
525
|
y.uploadId = U.uploadId, y.status = "uploading", H();
|
|
526
526
|
const N = U.chunkBytes ?? m, C = /* @__PURE__ */ new Map(), S = [];
|
|
527
|
-
let
|
|
527
|
+
let P = 0;
|
|
528
528
|
async function ee(_) {
|
|
529
529
|
const k = (_.partNumber - 1) * (U.chunkBytes ?? m), Q = Math.min(k + (U.chunkBytes ?? m), l.file.size), R = l.file.slice(k, Q), Z = new AbortController();
|
|
530
530
|
A.push(Z), await new Promise((ie, le) => {
|
|
@@ -565,8 +565,8 @@ function Lr(o, c) {
|
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
async function j() {
|
|
568
|
-
for (; !w &&
|
|
569
|
-
const _ = U.parts[
|
|
568
|
+
for (; !w && P < U.parts.length; ) {
|
|
569
|
+
const _ = U.parts[P++];
|
|
570
570
|
await z(_);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
@@ -608,8 +608,8 @@ function Br(o) {
|
|
|
608
608
|
c.value = /* @__PURE__ */ new Set([E]), n.value = E;
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
|
-
const [S,
|
|
612
|
-
for (let O = S; O <=
|
|
611
|
+
const [S, P] = N < C ? [N, C] : [C, N], ee = /* @__PURE__ */ new Set();
|
|
612
|
+
for (let O = S; O <= P; O++) ee.add(U[O].path);
|
|
613
613
|
c.value = ee;
|
|
614
614
|
return;
|
|
615
615
|
}
|
|
@@ -864,6 +864,7 @@ const Yr = {
|
|
|
864
864
|
"upload.progress": "Yükleniyor",
|
|
865
865
|
"upload.done": "Tamamlandı",
|
|
866
866
|
"upload.error": "Hata",
|
|
867
|
+
"upload.failed": "“{name}” yüklenemedi",
|
|
867
868
|
"upload.aborted": "İptal edildi",
|
|
868
869
|
"upload.cancel": "İptal",
|
|
869
870
|
"empty.folder": "Bu klasör boş",
|
|
@@ -1235,6 +1236,7 @@ const Yr = {
|
|
|
1235
1236
|
"upload.progress": "Uploading",
|
|
1236
1237
|
"upload.done": "Done",
|
|
1237
1238
|
"upload.error": "Error",
|
|
1239
|
+
"upload.failed": "Could not upload “{name}”",
|
|
1238
1240
|
"upload.aborted": "Aborted",
|
|
1239
1241
|
"upload.cancel": "Cancel",
|
|
1240
1242
|
"empty.folder": "This folder is empty",
|
|
@@ -1640,7 +1642,7 @@ function Jr(o, c, n = {}) {
|
|
|
1640
1642
|
const C = ((await c.jsonFetch(c.endpoints.opsList)).ops || []).map(mo);
|
|
1641
1643
|
for (const F of C)
|
|
1642
1644
|
(F.status === "done" || F.status === "error") && !s.has(F.id) && (s.add(F.id), l.set(F.id, Date.now()), m && ((U = n.onSettled) == null || U.call(n, F)));
|
|
1643
|
-
const S = new Set(d.value.map((F) => F.id)),
|
|
1645
|
+
const S = new Set(d.value.map((F) => F.id)), P = C.filter((F) => F.status === "pending" || F.status === "running" ? !0 : m ? S.has(F.id) : !1), ee = new Set(P.map((F) => F.id)), O = d.value.filter((F) => !ee.has(F.id)), z = [...P, ...O];
|
|
1644
1646
|
m = !0;
|
|
1645
1647
|
const j = Date.now(), K = z.filter((F) => {
|
|
1646
1648
|
if (F.status === "pending" || F.status === "running") return !0;
|
|
@@ -2046,7 +2048,7 @@ const ll = {
|
|
|
2046
2048
|
(v = O.value) == null || v.focus();
|
|
2047
2049
|
return;
|
|
2048
2050
|
}
|
|
2049
|
-
N(),
|
|
2051
|
+
N(), P(0);
|
|
2050
2052
|
}
|
|
2051
2053
|
function N() {
|
|
2052
2054
|
const D = A.value;
|
|
@@ -2071,7 +2073,7 @@ const ll = {
|
|
|
2071
2073
|
D.querySelectorAll(".fe-ctx__item:not(:disabled)")
|
|
2072
2074
|
) : [];
|
|
2073
2075
|
}
|
|
2074
|
-
function
|
|
2076
|
+
function P(D) {
|
|
2075
2077
|
var h;
|
|
2076
2078
|
const b = S();
|
|
2077
2079
|
if (b.length === 0) return;
|
|
@@ -2083,10 +2085,10 @@ const ll = {
|
|
|
2083
2085
|
if (b.length === 0) return;
|
|
2084
2086
|
const v = document.activeElement, h = v ? b.indexOf(v) : -1;
|
|
2085
2087
|
if (h === -1) {
|
|
2086
|
-
|
|
2088
|
+
P(D > 0 ? 0 : b.length - 1);
|
|
2087
2089
|
return;
|
|
2088
2090
|
}
|
|
2089
|
-
|
|
2091
|
+
P(h + D);
|
|
2090
2092
|
}
|
|
2091
2093
|
const O = g(null), z = g(!1), j = g(0);
|
|
2092
2094
|
let K = 0;
|
|
@@ -2119,7 +2121,7 @@ const ll = {
|
|
|
2119
2121
|
D.stopPropagation();
|
|
2120
2122
|
return;
|
|
2121
2123
|
}
|
|
2122
|
-
D.key === "ArrowDown" ? (D.preventDefault(), D.stopPropagation(), ee(1)) : D.key === "ArrowUp" ? (D.preventDefault(), D.stopPropagation(), ee(-1)) : D.key === "Home" ? (D.preventDefault(),
|
|
2124
|
+
D.key === "ArrowDown" ? (D.preventDefault(), D.stopPropagation(), ee(1)) : D.key === "ArrowUp" ? (D.preventDefault(), D.stopPropagation(), ee(-1)) : D.key === "Home" ? (D.preventDefault(), P(0)) : D.key === "End" ? (D.preventDefault(), P(-1)) : D.key === "Tab" && (D.preventDefault(), C());
|
|
2123
2125
|
}
|
|
2124
2126
|
const Z = W(() => {
|
|
2125
2127
|
const D = d.actions.filter((v) => !v.hidden), b = [];
|
|
@@ -2300,7 +2302,7 @@ const ll = {
|
|
|
2300
2302
|
d.narrow && !$.value && ($.value = !0, await lt()), (v = y.value) == null || v.focus(), (h = y.value) == null || h.select();
|
|
2301
2303
|
}
|
|
2302
2304
|
c({ focusSearch: E });
|
|
2303
|
-
const L = W(() => d.selectionMode ?? "none"), U = W(() => d.actions.filter((v) => !v.divider && !v.hidden)), N = g(null), C = g(null), S = g(null),
|
|
2305
|
+
const L = W(() => d.selectionMode ?? "none"), U = W(() => d.actions.filter((v) => !v.divider && !v.hidden)), N = g(null), C = g(null), S = g(null), P = g(null), ee = g(Number.MAX_SAFE_INTEGER), O = W(() => U.value.slice(0, ee.value)), z = W(() => U.value.slice(ee.value));
|
|
2304
2306
|
function j() {
|
|
2305
2307
|
if (d.narrow) return;
|
|
2306
2308
|
const v = N.value, h = C.value;
|
|
@@ -2335,7 +2337,7 @@ const ll = {
|
|
|
2335
2337
|
function F() {
|
|
2336
2338
|
var h, I;
|
|
2337
2339
|
const v = (h = S.value) == null ? void 0 : h.getBoundingClientRect();
|
|
2338
|
-
(I =
|
|
2340
|
+
(I = P.value) == null || I.show({ clientX: v ? v.right : 0, clientY: v ? v.bottom + 4 : 0 }, []);
|
|
2339
2341
|
}
|
|
2340
2342
|
function _(v) {
|
|
2341
2343
|
s("action", v);
|
|
@@ -2758,7 +2760,7 @@ const ll = {
|
|
|
2758
2760
|
o.narrow ? B("", !0) : (i(), Re(kn, {
|
|
2759
2761
|
key: 2,
|
|
2760
2762
|
ref_key: "wideMoreRef",
|
|
2761
|
-
ref:
|
|
2763
|
+
ref: P,
|
|
2762
2764
|
locale: o.locale,
|
|
2763
2765
|
theme: o.theme || "auto",
|
|
2764
2766
|
sheet: !1,
|
|
@@ -2789,7 +2791,7 @@ const ll = {
|
|
|
2789
2791
|
]);
|
|
2790
2792
|
function w(N) {
|
|
2791
2793
|
let C = 0;
|
|
2792
|
-
for (let
|
|
2794
|
+
for (let P = 0; P < N.length; P++) C = C * 31 + N.charCodeAt(P) | 0;
|
|
2793
2795
|
const S = y.value;
|
|
2794
2796
|
return S[Math.abs(C) % S.length];
|
|
2795
2797
|
}
|
|
@@ -2817,13 +2819,13 @@ const ll = {
|
|
|
2817
2819
|
const C = [...s.value];
|
|
2818
2820
|
s.value = N;
|
|
2819
2821
|
try {
|
|
2820
|
-
const S = n.apiBase ?? "",
|
|
2822
|
+
const S = n.apiBase ?? "", P = await fetch(`${S}/api/files/manager/tags`, {
|
|
2821
2823
|
method: "POST",
|
|
2822
2824
|
headers: await A({ "Content-Type": "application/json" }),
|
|
2823
2825
|
credentials: "include",
|
|
2824
2826
|
body: JSON.stringify({ node_id: n.nodeId, tags: N })
|
|
2825
2827
|
});
|
|
2826
|
-
if (!
|
|
2828
|
+
if (!P.ok) throw new Error(`tag save failed: ${P.status}`);
|
|
2827
2829
|
d("change", N);
|
|
2828
2830
|
} catch (S) {
|
|
2829
2831
|
s.value = C, d("error", S instanceof Error ? S.message : String(S));
|
|
@@ -2852,7 +2854,7 @@ const ll = {
|
|
|
2852
2854
|
t("button", {
|
|
2853
2855
|
class: "filex-tag-x",
|
|
2854
2856
|
type: "button",
|
|
2855
|
-
onClick: (
|
|
2857
|
+
onClick: (P) => U(S),
|
|
2856
2858
|
"aria-label": "Remove tag"
|
|
2857
2859
|
}, "×", 8, vi)
|
|
2858
2860
|
], 4))), 128)),
|
|
@@ -3031,7 +3033,7 @@ const ll = {
|
|
|
3031
3033
|
function S(k) {
|
|
3032
3034
|
m("navigate", k.adapterPath);
|
|
3033
3035
|
}
|
|
3034
|
-
function
|
|
3036
|
+
function P(k, Q) {
|
|
3035
3037
|
k.preventDefault(), k.stopPropagation(), m("crumb-context", {
|
|
3036
3038
|
x: k.clientX,
|
|
3037
3039
|
y: k.clientY,
|
|
@@ -3120,7 +3122,7 @@ const ll = {
|
|
|
3120
3122
|
type: "button",
|
|
3121
3123
|
"aria-current": !y.value && Z === w.value.length - 1 ? "page" : void 0,
|
|
3122
3124
|
onClick: (ie) => S(R),
|
|
3123
|
-
onContextmenu: (ie) =>
|
|
3125
|
+
onContextmenu: (ie) => P(ie, R),
|
|
3124
3126
|
onDragover: ee,
|
|
3125
3127
|
onDrop: (ie) => O(ie, R)
|
|
3126
3128
|
}, [
|
|
@@ -3162,7 +3164,7 @@ const ll = {
|
|
|
3162
3164
|
type: "button",
|
|
3163
3165
|
"aria-current": Z === H.value.length - 1 ? "page" : void 0,
|
|
3164
3166
|
onClick: (ie) => S(R),
|
|
3165
|
-
onContextmenu: (ie) =>
|
|
3167
|
+
onContextmenu: (ie) => P(ie, R),
|
|
3166
3168
|
onDragover: ee,
|
|
3167
3169
|
onDrop: (ie) => O(ie, R)
|
|
3168
3170
|
}, [
|
|
@@ -3439,7 +3441,7 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
3439
3441
|
E.value = null, b.type === "dir" && (h = v.dataTransfer) != null && h.types.includes("application/x-brf-files") && (v.preventDefault(), v.stopPropagation(), d("item-drop-into", b, v));
|
|
3440
3442
|
}
|
|
3441
3443
|
let C, S = null;
|
|
3442
|
-
function
|
|
3444
|
+
function P(b, v) {
|
|
3443
3445
|
S = b, C && clearTimeout(C), C = setTimeout(() => {
|
|
3444
3446
|
if (S) {
|
|
3445
3447
|
const h = v.touches[0];
|
|
@@ -3627,7 +3629,7 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
3627
3629
|
onDragover: (ye) => L(I, ye),
|
|
3628
3630
|
onDragleave: (ye) => U(I),
|
|
3629
3631
|
onDrop: (ye) => N(I, ye),
|
|
3630
|
-
onTouchstartPassive: (ye) =>
|
|
3632
|
+
onTouchstartPassive: (ye) => P(I, ye),
|
|
3631
3633
|
onTouchend: ee,
|
|
3632
3634
|
onTouchmove: ee
|
|
3633
3635
|
}, [
|
|
@@ -3742,12 +3744,12 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
3742
3744
|
var k;
|
|
3743
3745
|
L.value = null, _.type === "dir" && (k = $.dataTransfer) != null && k.types.includes("application/x-brf-files") && ($.preventDefault(), $.stopPropagation(), d("item-drop-into", _, $));
|
|
3744
3746
|
}
|
|
3745
|
-
let S,
|
|
3747
|
+
let S, P = null;
|
|
3746
3748
|
function ee(_, $) {
|
|
3747
|
-
|
|
3748
|
-
if (
|
|
3749
|
+
P = _, S && clearTimeout(S), S = setTimeout(() => {
|
|
3750
|
+
if (P) {
|
|
3749
3751
|
const k = $.touches[0];
|
|
3750
|
-
d("context-card",
|
|
3752
|
+
d("context-card", P, {
|
|
3751
3753
|
clientX: k.clientX,
|
|
3752
3754
|
clientY: k.clientY,
|
|
3753
3755
|
preventDefault: () => {
|
|
@@ -3757,7 +3759,7 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
3757
3759
|
}, 500);
|
|
3758
3760
|
}
|
|
3759
3761
|
function O() {
|
|
3760
|
-
S && clearTimeout(S),
|
|
3762
|
+
S && clearTimeout(S), P = null;
|
|
3761
3763
|
}
|
|
3762
3764
|
function z(_) {
|
|
3763
3765
|
const $ = _.replace(/^[a-z][a-z0-9+.-]*:\/\//i, ""), k = $.lastIndexOf("/");
|
|
@@ -3907,12 +3909,12 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
3907
3909
|
var k;
|
|
3908
3910
|
L.value = null, _.type === "dir" && (k = $.dataTransfer) != null && k.types.includes("application/x-brf-files") && ($.preventDefault(), $.stopPropagation(), d("item-drop-into", _, $));
|
|
3909
3911
|
}
|
|
3910
|
-
let S,
|
|
3912
|
+
let S, P = null;
|
|
3911
3913
|
function ee(_, $) {
|
|
3912
|
-
|
|
3913
|
-
if (
|
|
3914
|
+
P = _, S && clearTimeout(S), S = setTimeout(() => {
|
|
3915
|
+
if (P) {
|
|
3914
3916
|
const k = $.touches[0];
|
|
3915
|
-
d("context-card",
|
|
3917
|
+
d("context-card", P, {
|
|
3916
3918
|
clientX: k.clientX,
|
|
3917
3919
|
clientY: k.clientY,
|
|
3918
3920
|
preventDefault: () => {
|
|
@@ -3922,7 +3924,7 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
3922
3924
|
}, 500);
|
|
3923
3925
|
}
|
|
3924
3926
|
function O() {
|
|
3925
|
-
S && clearTimeout(S),
|
|
3927
|
+
S && clearTimeout(S), P = null;
|
|
3926
3928
|
}
|
|
3927
3929
|
function z(_) {
|
|
3928
3930
|
const $ = _.replace(/^[a-z][a-z0-9+.-]*:\/\//i, ""), k = $.lastIndexOf("/");
|
|
@@ -4210,12 +4212,12 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
4210
4212
|
d("toast", te);
|
|
4211
4213
|
}
|
|
4212
4214
|
}
|
|
4213
|
-
const
|
|
4215
|
+
const P = W(() => {
|
|
4214
4216
|
if (!r.value) return "";
|
|
4215
4217
|
const te = r.value.perm;
|
|
4216
4218
|
return typeof te == "string" && te !== "" ? te : n.dirPerm || "";
|
|
4217
4219
|
}), ee = W(
|
|
4218
|
-
() =>
|
|
4220
|
+
() => P.value === "editor" || P.value === "owner"
|
|
4219
4221
|
);
|
|
4220
4222
|
function O(te) {
|
|
4221
4223
|
return s(`inspector.perm.${te}`) === `inspector.perm.${te}` ? te : s(`inspector.perm.${te}`);
|
|
@@ -4518,12 +4520,12 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
4518
4520
|
}, f(p(s)("inspector.versions.take_snapshot")), 9, Ku)
|
|
4519
4521
|
], 64))
|
|
4520
4522
|
])) : B("", !0),
|
|
4521
|
-
r.value &&
|
|
4523
|
+
r.value && P.value ? (i(), u("section", Nu, [
|
|
4522
4524
|
t("h3", Ru, f(p(s)("inspector.section.permissions")), 1),
|
|
4523
4525
|
t("div", Uu, [
|
|
4524
4526
|
t("span", {
|
|
4525
|
-
class: ve(["fe-inspector__badge", `fe-inspector__badge--${
|
|
4526
|
-
}, f(O(
|
|
4527
|
+
class: ve(["fe-inspector__badge", `fe-inspector__badge--${P.value}`])
|
|
4528
|
+
}, f(O(P.value)), 3),
|
|
4527
4529
|
ee.value ? (i(), u("button", {
|
|
4528
4530
|
key: 0,
|
|
4529
4531
|
type: "button",
|
|
@@ -4707,7 +4709,7 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
4707
4709
|
].filter((v) => v.enabled && A(v.label, D) >= 0).map((v) => ({ kind: "command", id: `cmd:${v.command}`, label: v.label, icon: v.icon, command: v.command }));
|
|
4708
4710
|
}), U = g([]), N = g(!1);
|
|
4709
4711
|
let C, S = 0;
|
|
4710
|
-
function
|
|
4712
|
+
function P(D) {
|
|
4711
4713
|
C && clearTimeout(C);
|
|
4712
4714
|
const b = n.globalSearch;
|
|
4713
4715
|
if (!b || D.length < Fd) {
|
|
@@ -4784,7 +4786,7 @@ const Fi = ["aria-pressed", "title"], ji = {
|
|
|
4784
4786
|
...L.value
|
|
4785
4787
|
]), Q = W(() => H.value.length), R = W(() => Q.value + E.value.length), Z = W(() => R.value + O.value.length), ie = W(() => Z.value + $.value.length);
|
|
4786
4788
|
De(m, (D) => {
|
|
4787
|
-
r.value = 0,
|
|
4789
|
+
r.value = 0, P(D.trim());
|
|
4788
4790
|
});
|
|
4789
4791
|
function le(D) {
|
|
4790
4792
|
const b = k.value.length;
|
|
@@ -5745,7 +5747,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
5745
5747
|
function S() {
|
|
5746
5748
|
w.value = null, y.value = null, Rr();
|
|
5747
5749
|
}
|
|
5748
|
-
function
|
|
5750
|
+
function P(O) {
|
|
5749
5751
|
if (y.value) {
|
|
5750
5752
|
if (O.preventDefault(), O.stopPropagation(), O.key === "Escape") {
|
|
5751
5753
|
E();
|
|
@@ -5761,9 +5763,9 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
5761
5763
|
De(
|
|
5762
5764
|
() => n.open,
|
|
5763
5765
|
(O) => {
|
|
5764
|
-
O ? window.addEventListener("keydown",
|
|
5766
|
+
O ? window.addEventListener("keydown", P, !0) : (window.removeEventListener("keydown", P, !0), y.value = null, w.value = null);
|
|
5765
5767
|
}
|
|
5766
|
-
), We(() => window.removeEventListener("keydown",
|
|
5768
|
+
), We(() => window.removeEventListener("keydown", P, !0));
|
|
5767
5769
|
function ee() {
|
|
5768
5770
|
if (y.value) {
|
|
5769
5771
|
E();
|
|
@@ -6018,28 +6020,28 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6018
6020
|
diff: "diff",
|
|
6019
6021
|
patch: "diff"
|
|
6020
6022
|
}, A = ["txt", "log"], H = ["docx", "doc", "xlsx", "xls", "pptx", "ppt", "odt", "ods", "odp", "rtf"], E = {
|
|
6021
|
-
glb: () => import("./Viewer3D-
|
|
6022
|
-
gltf: () => import("./Viewer3D-
|
|
6023
|
-
obj: () => import("./Viewer3D-
|
|
6024
|
-
stl: () => import("./Viewer3D-
|
|
6025
|
-
fbx: () => import("./Viewer3D-
|
|
6026
|
-
"3ds": () => import("./Viewer3D-
|
|
6027
|
-
epub: () => import("./EpubViewer-
|
|
6028
|
-
mmd: () => import("./MermaidViewer-
|
|
6029
|
-
mermaid: () => import("./MermaidViewer-
|
|
6030
|
-
drawio: () => import("./DrawioViewer-
|
|
6031
|
-
dio: () => import("./DrawioViewer-
|
|
6032
|
-
tif: () => import("./TiffViewer-
|
|
6033
|
-
tiff: () => import("./TiffViewer-
|
|
6034
|
-
psd: () => import("./PsdViewer-
|
|
6023
|
+
glb: () => import("./Viewer3D-kixldPCf.js"),
|
|
6024
|
+
gltf: () => import("./Viewer3D-kixldPCf.js"),
|
|
6025
|
+
obj: () => import("./Viewer3D-kixldPCf.js"),
|
|
6026
|
+
stl: () => import("./Viewer3D-kixldPCf.js"),
|
|
6027
|
+
fbx: () => import("./Viewer3D-kixldPCf.js"),
|
|
6028
|
+
"3ds": () => import("./Viewer3D-kixldPCf.js"),
|
|
6029
|
+
epub: () => import("./EpubViewer-BOAa22iy.js"),
|
|
6030
|
+
mmd: () => import("./MermaidViewer-CvpM7z1N.js"),
|
|
6031
|
+
mermaid: () => import("./MermaidViewer-CvpM7z1N.js"),
|
|
6032
|
+
drawio: () => import("./DrawioViewer-CHjj_lou.js"),
|
|
6033
|
+
dio: () => import("./DrawioViewer-CHjj_lou.js"),
|
|
6034
|
+
tif: () => import("./TiffViewer-Dgg2FGW6.js"),
|
|
6035
|
+
tiff: () => import("./TiffViewer-Dgg2FGW6.js"),
|
|
6036
|
+
psd: () => import("./PsdViewer-CMzqfXHr.js"),
|
|
6035
6037
|
// PDF deliberately uses the native browser viewer (`kind === 'pdf'`
|
|
6036
6038
|
// branch in the template). PdfViewer.vue still exists for callers
|
|
6037
6039
|
// that want the rich custom UI but the SFC default keeps things
|
|
6038
6040
|
// minimal — the browser already paints search/zoom/page UI for free.
|
|
6039
|
-
ipynb: () => import("./IpynbViewer-
|
|
6040
|
-
csv: () => import("./CsvViewer-
|
|
6041
|
-
tsv: () => import("./CsvViewer-
|
|
6042
|
-
zip: () => import("./ArchiveViewer-
|
|
6041
|
+
ipynb: () => import("./IpynbViewer-BlBa-Q-t.js"),
|
|
6042
|
+
csv: () => import("./CsvViewer-D0UCc1Kh.js"),
|
|
6043
|
+
tsv: () => import("./CsvViewer-D0UCc1Kh.js"),
|
|
6044
|
+
zip: () => import("./ArchiveViewer-DkspPMSy.js")
|
|
6043
6045
|
}, L = W(() => {
|
|
6044
6046
|
const oe = l(n.file);
|
|
6045
6047
|
if (!oe) return "other";
|
|
@@ -6061,7 +6063,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6061
6063
|
N.value = re instanceof Error ? re.message : "viewer load failed", oe === "pdf" && (C.value = !0);
|
|
6062
6064
|
}
|
|
6063
6065
|
}
|
|
6064
|
-
function
|
|
6066
|
+
function P() {
|
|
6065
6067
|
C.value = !0;
|
|
6066
6068
|
}
|
|
6067
6069
|
const ee = W(() => {
|
|
@@ -6084,8 +6086,8 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6084
6086
|
}
|
|
6085
6087
|
function j(oe) {
|
|
6086
6088
|
if (!n.file) return;
|
|
6087
|
-
const J = l(n.file), re = n.viewerBaseUrl || "/files/edit", _e = re.includes("?") ? "&" : "?",
|
|
6088
|
-
window.open(
|
|
6089
|
+
const J = l(n.file), re = n.viewerBaseUrl || "/files/edit", _e = re.includes("?") ? "&" : "?", we = `${re}${_e}path=${encodeURIComponent(n.file.path)}&type=${encodeURIComponent(J)}&mode=${encodeURIComponent(oe)}`;
|
|
6090
|
+
window.open(we, "_blank", "noopener");
|
|
6089
6091
|
}
|
|
6090
6092
|
const K = /* @__PURE__ */ new Set([
|
|
6091
6093
|
// OnlyOffice — open the in-page office editor (or new tab) with
|
|
@@ -6209,8 +6211,8 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6209
6211
|
ie.value = !0;
|
|
6210
6212
|
return;
|
|
6211
6213
|
}
|
|
6212
|
-
const
|
|
6213
|
-
|
|
6214
|
+
const we = await re.text();
|
|
6215
|
+
we.length > pn ? (ie.value = !0, Z.value = we.slice(0, pn)) : Z.value = we;
|
|
6214
6216
|
} catch (J) {
|
|
6215
6217
|
R.value = J instanceof Error ? J.message : String(J);
|
|
6216
6218
|
} finally {
|
|
@@ -6228,13 +6230,13 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6228
6230
|
I.value = "";
|
|
6229
6231
|
return;
|
|
6230
6232
|
}
|
|
6231
|
-
const re = J.default ?? J,
|
|
6233
|
+
const re = J.default ?? J, we = new re({
|
|
6232
6234
|
html: !0,
|
|
6233
6235
|
linkify: !0,
|
|
6234
6236
|
breaks: !0,
|
|
6235
6237
|
typographer: !0
|
|
6236
6238
|
}).render(oe);
|
|
6237
|
-
I.value = ye(
|
|
6239
|
+
I.value = ye(we), await new Promise((Ke) => setTimeout(Ke, 0)), await Oe();
|
|
6238
6240
|
} catch (J) {
|
|
6239
6241
|
I.value = "", R.value = J instanceof Error ? J.message : String(J);
|
|
6240
6242
|
}
|
|
@@ -6243,7 +6245,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6243
6245
|
return oe.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="#"');
|
|
6244
6246
|
}
|
|
6245
6247
|
async function Oe() {
|
|
6246
|
-
var
|
|
6248
|
+
var we, Ke, et;
|
|
6247
6249
|
if (!ue.value) return;
|
|
6248
6250
|
const oe = ue.value, J = Array.from(oe.querySelectorAll("pre > code"));
|
|
6249
6251
|
if (J.length === 0) return;
|
|
@@ -6257,7 +6259,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6257
6259
|
/* @vite-ignore */
|
|
6258
6260
|
"mermaid"
|
|
6259
6261
|
);
|
|
6260
|
-
re = q.default ?? q, (
|
|
6262
|
+
re = q.default ?? q, (we = re.initialize) == null || we.call(re, {
|
|
6261
6263
|
startOnLoad: !1,
|
|
6262
6264
|
securityLevel: "strict"
|
|
6263
6265
|
});
|
|
@@ -6303,11 +6305,11 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6303
6305
|
}
|
|
6304
6306
|
const _e = re.default ?? re;
|
|
6305
6307
|
if (_e.getLanguage(J)) {
|
|
6306
|
-
const
|
|
6307
|
-
te.value =
|
|
6308
|
+
const we = _e.highlight(oe, { language: J, ignoreIllegals: !0 });
|
|
6309
|
+
te.value = we.value;
|
|
6308
6310
|
} else {
|
|
6309
|
-
const
|
|
6310
|
-
te.value =
|
|
6311
|
+
const we = _e.highlightAuto(oe);
|
|
6312
|
+
te.value = we.value;
|
|
6311
6313
|
}
|
|
6312
6314
|
} catch (re) {
|
|
6313
6315
|
te.value = "", R.value = re instanceof Error ? re.message : String(re);
|
|
@@ -6374,16 +6376,16 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6374
6376
|
if (!re || !ne.value) return !1;
|
|
6375
6377
|
try {
|
|
6376
6378
|
pt();
|
|
6377
|
-
const
|
|
6379
|
+
const we = !!n.saveTextEndpoint && n.openMode !== "view", Ke = n.theme === "dark" ? !0 : n.theme === "light" ? !1 : (_e = window.matchMedia) == null ? void 0 : _e.call(window, "(prefers-color-scheme: dark)").matches;
|
|
6378
6380
|
return Se = re.editor.create(ne.value, {
|
|
6379
6381
|
value: oe,
|
|
6380
6382
|
language: yt(J),
|
|
6381
|
-
readOnly: !
|
|
6383
|
+
readOnly: !we,
|
|
6382
6384
|
theme: Ke ? "vs-dark" : "vs",
|
|
6383
6385
|
automaticLayout: !0,
|
|
6384
6386
|
minimap: { enabled: !1 },
|
|
6385
6387
|
fontSize: 13
|
|
6386
|
-
}),
|
|
6388
|
+
}), we && (Se.addCommand(
|
|
6387
6389
|
re.KeyMod.CtrlCmd | re.KeyCode.KeyS,
|
|
6388
6390
|
() => void ae()
|
|
6389
6391
|
), Se.onDidChangeModelContent(() => {
|
|
@@ -6391,8 +6393,8 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6391
6393
|
ae();
|
|
6392
6394
|
}, 1500);
|
|
6393
6395
|
})), Ye.value = !0, !0;
|
|
6394
|
-
} catch (
|
|
6395
|
-
return R.value = `Monaco mount fail: ${
|
|
6396
|
+
} catch (we) {
|
|
6397
|
+
return R.value = `Monaco mount fail: ${we.message}`, !1;
|
|
6396
6398
|
}
|
|
6397
6399
|
}
|
|
6398
6400
|
async function ae() {
|
|
@@ -6482,8 +6484,8 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6482
6484
|
throw new Error(`Config fetch ${J.status}: ${(await J.text()).slice(0, 200)}`);
|
|
6483
6485
|
const { config: re, documentServerUrl: _e } = await J.json();
|
|
6484
6486
|
await Mt(_e), je();
|
|
6485
|
-
const
|
|
6486
|
-
Ge.value.id =
|
|
6487
|
+
const we = "fe-onlyoffice-mount";
|
|
6488
|
+
Ge.value.id = we, re.events = {
|
|
6487
6489
|
onError: (et) => {
|
|
6488
6490
|
Be.value = Dt(et);
|
|
6489
6491
|
}
|
|
@@ -6491,7 +6493,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6491
6493
|
const Ke = window;
|
|
6492
6494
|
if (!Ke.DocsAPI || !Ke.DocsAPI.DocEditor)
|
|
6493
6495
|
throw new Error("DocsAPI not available after script load");
|
|
6494
|
-
Ve = new Ke.DocsAPI.DocEditor(
|
|
6496
|
+
Ve = new Ke.DocsAPI.DocEditor(we, re);
|
|
6495
6497
|
} catch (oe) {
|
|
6496
6498
|
Be.value = oe instanceof Error ? oe.message : String(oe);
|
|
6497
6499
|
}
|
|
@@ -6538,8 +6540,8 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6538
6540
|
_e.addEventListener("load", () => J()), _e.addEventListener("error", () => re(new Error("OnlyOffice api.js load failed")));
|
|
6539
6541
|
return;
|
|
6540
6542
|
}
|
|
6541
|
-
const
|
|
6542
|
-
|
|
6543
|
+
const we = document.createElement("script");
|
|
6544
|
+
we.id = Co, we.src = `${oe.replace(/\/$/, "")}/web-apps/apps/api/documents/api.js`, we.async = !0, we.onload = () => J(), we.onerror = () => re(new Error("OnlyOffice api.js load failed")), document.head.appendChild(we);
|
|
6543
6545
|
});
|
|
6544
6546
|
}
|
|
6545
6547
|
return (oe, J) => {
|
|
@@ -6672,7 +6674,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6672
6674
|
}, f(p(s)("viewer.download")), 9, dp)
|
|
6673
6675
|
])) : U.value ? (i(), Re(Sr(U.value), Tr({ key: 2 }, ee.value, {
|
|
6674
6676
|
class: "fe-preview__viewer",
|
|
6675
|
-
onFallback:
|
|
6677
|
+
onFallback: P
|
|
6676
6678
|
}), null, 16)) : (i(), u("div", fp, [
|
|
6677
6679
|
J[8] || (J[8] = t("span", { class: "fe-preview__fallback-icon" }, "⏳", -1)),
|
|
6678
6680
|
t("p", null, f(p(s)("viewer.loading")), 1)
|
|
@@ -6908,11 +6910,11 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6908
6910
|
convert: "M20 8A8 8 0 0 0 6 6L4 8M4 16a8 8 0 0 0 14 2l2-2M20 3v5h-5M4 21v-5h5",
|
|
6909
6911
|
archive: "M4 8V5h16v3zM5 8h14v12H5zM10 12h4"
|
|
6910
6912
|
};
|
|
6911
|
-
function
|
|
6913
|
+
function P(F) {
|
|
6912
6914
|
return n(`opc.kind.${F.kind}`);
|
|
6913
6915
|
}
|
|
6914
6916
|
function ee(F) {
|
|
6915
|
-
return F.name ||
|
|
6917
|
+
return F.name || P(F);
|
|
6916
6918
|
}
|
|
6917
6919
|
function O(F) {
|
|
6918
6920
|
return F.status === "running" ? F.queued ? n("opc.queued") : F.totalBytes && F.totalBytes > 0 ? `${d(F.uploadedBytes ?? 0)} / ${d(F.totalBytes)}` : F.totalCount && F.totalCount > 0 ? `${F.doneCount ?? 0}/${F.totalCount}` : n("opc.status.running") : F.status === "done" ? n("opc.status.done") : F.status === "aborted" ? n("opc.status.aborted") : F.error || n("opc.status.error");
|
|
@@ -6974,7 +6976,7 @@ const vf = { class: "fe-themes__hint" }, mf = ["aria-label"], hf = ["aria-select
|
|
|
6974
6976
|
title: ee($)
|
|
6975
6977
|
}, f(ee($)), 9, Hp),
|
|
6976
6978
|
t("div", Yp, [
|
|
6977
|
-
t("span", Gp, f(
|
|
6979
|
+
t("span", Gp, f(P($)), 1),
|
|
6978
6980
|
_[3] || (_[3] = t("span", {
|
|
6979
6981
|
class: "fe-opc__dot",
|
|
6980
6982
|
"aria-hidden": "true"
|
|
@@ -7121,15 +7123,15 @@ function hv(o, c, n) {
|
|
|
7121
7123
|
function yv() {
|
|
7122
7124
|
const o = g([]), c = g([]), n = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map();
|
|
7123
7125
|
function l(S) {
|
|
7124
|
-
const
|
|
7125
|
-
|
|
7126
|
+
const P = s.get(S);
|
|
7127
|
+
P !== void 0 && (clearTimeout(P), s.delete(S));
|
|
7126
7128
|
}
|
|
7127
|
-
function m(S,
|
|
7129
|
+
function m(S, P = {}) {
|
|
7128
7130
|
l(S);
|
|
7129
7131
|
const ee = o.value.findIndex((z) => z.key === S);
|
|
7130
7132
|
if (ee === -1) return;
|
|
7131
7133
|
const [O] = o.value.splice(ee, 1);
|
|
7132
|
-
o.value = [...o.value], d.add(S),
|
|
7134
|
+
o.value = [...o.value], d.add(S), P.toHistory !== !1 && (c.value = [{ ...O, settledAt: O.settledAt ?? Date.now() }, ...c.value].slice(
|
|
7133
7135
|
0,
|
|
7134
7136
|
So
|
|
7135
7137
|
));
|
|
@@ -7140,15 +7142,15 @@ function yv() {
|
|
|
7140
7142
|
setTimeout(() => {
|
|
7141
7143
|
var ee;
|
|
7142
7144
|
s.delete(S);
|
|
7143
|
-
const
|
|
7144
|
-
m(S), (ee =
|
|
7145
|
+
const P = n.get(S);
|
|
7146
|
+
m(S), (ee = P == null ? void 0 : P.dismiss) == null || ee.call(P);
|
|
7145
7147
|
}, mv)
|
|
7146
7148
|
);
|
|
7147
7149
|
}
|
|
7148
|
-
function y(S,
|
|
7150
|
+
function y(S, P) {
|
|
7149
7151
|
const ee = `${S}:`, O = /* @__PURE__ */ new Set();
|
|
7150
7152
|
let z = [...o.value], j = !1;
|
|
7151
|
-
for (const K of
|
|
7153
|
+
for (const K of P) {
|
|
7152
7154
|
const F = `${S}:${K.input.id}`;
|
|
7153
7155
|
if (O.add(F), K.actions && n.set(F, K.actions), d.has(F)) continue;
|
|
7154
7156
|
const _ = z.findIndex((k) => k.key === F), $ = hv(F, K.input, _ === -1 ? void 0 : z[_]);
|
|
@@ -7166,18 +7168,18 @@ function yv() {
|
|
|
7166
7168
|
j && (o.value = z);
|
|
7167
7169
|
}
|
|
7168
7170
|
function w(S) {
|
|
7169
|
-
var
|
|
7170
|
-
(ee = (
|
|
7171
|
+
var P, ee;
|
|
7172
|
+
(ee = (P = n.get(S)) == null ? void 0 : P.cancel) == null || ee.call(P);
|
|
7171
7173
|
}
|
|
7172
7174
|
function A(S) {
|
|
7173
7175
|
var ee, O;
|
|
7174
|
-
const
|
|
7175
|
-
m(S), (ee =
|
|
7176
|
+
const P = n.get(S);
|
|
7177
|
+
m(S), (ee = P == null ? void 0 : P.dismiss) == null || ee.call(P), (O = P == null ? void 0 : P.retry) == null || O.call(P);
|
|
7176
7178
|
}
|
|
7177
7179
|
function H(S) {
|
|
7178
7180
|
var ee;
|
|
7179
|
-
const
|
|
7180
|
-
m(S), (ee =
|
|
7181
|
+
const P = n.get(S);
|
|
7182
|
+
m(S), (ee = P == null ? void 0 : P.dismiss) == null || ee.call(P);
|
|
7181
7183
|
}
|
|
7182
7184
|
function E() {
|
|
7183
7185
|
c.value = [];
|
|
@@ -7186,12 +7188,12 @@ function yv() {
|
|
|
7186
7188
|
() => o.value.filter((S) => S.status === "running").length
|
|
7187
7189
|
), U = W(() => o.value.filter((S) => S.status === "error").length), N = W(() => U.value > 0), C = W(() => {
|
|
7188
7190
|
const S = o.value.filter((O) => O.status === "running");
|
|
7189
|
-
let
|
|
7191
|
+
let P = 0, ee = 0;
|
|
7190
7192
|
for (const O of S) {
|
|
7191
7193
|
let z = null;
|
|
7192
|
-
O.totalBytes && O.totalBytes > 0 ? z = Math.min(1, (O.uploadedBytes ?? 0) / O.totalBytes) : O.totalCount && O.totalCount > 0 ? z = Math.min(1, (O.doneCount ?? 0) / O.totalCount) : O.percent !== null && (z = Math.min(1, O.percent / 100)), z !== null && (
|
|
7194
|
+
O.totalBytes && O.totalBytes > 0 ? z = Math.min(1, (O.uploadedBytes ?? 0) / O.totalBytes) : O.totalCount && O.totalCount > 0 ? z = Math.min(1, (O.doneCount ?? 0) / O.totalCount) : O.percent !== null && (z = Math.min(1, O.percent / 100)), z !== null && (P += z, ee += 1);
|
|
7193
7195
|
}
|
|
7194
|
-
return ee === 0 ? null : Math.round(
|
|
7196
|
+
return ee === 0 ? null : Math.round(P / ee * 100);
|
|
7195
7197
|
});
|
|
7196
7198
|
return Er() && Dr(() => {
|
|
7197
7199
|
for (const S of s.values()) clearTimeout(S);
|
|
@@ -7327,14 +7329,14 @@ const bv = ["data-prefers-dark", "aria-label"], gv = {
|
|
|
7327
7329
|
}
|
|
7328
7330
|
y.value += 1;
|
|
7329
7331
|
}
|
|
7330
|
-
function
|
|
7332
|
+
function P() {
|
|
7331
7333
|
y.value > 0 && (y.value -= 1);
|
|
7332
7334
|
}
|
|
7333
7335
|
function ee() {
|
|
7334
7336
|
d("close");
|
|
7335
7337
|
}
|
|
7336
7338
|
function O(_) {
|
|
7337
|
-
n.open && (_.key === "Escape" ? (_.stopPropagation(), ee()) : _.key === "ArrowRight" || _.key === "Enter" ? (_.preventDefault(), S()) : _.key === "ArrowLeft" && (_.preventDefault(),
|
|
7339
|
+
n.open && (_.key === "Escape" ? (_.stopPropagation(), ee()) : _.key === "ArrowRight" || _.key === "Enter" ? (_.preventDefault(), S()) : _.key === "ArrowLeft" && (_.preventDefault(), P()));
|
|
7338
7340
|
}
|
|
7339
7341
|
De(
|
|
7340
7342
|
() => n.open,
|
|
@@ -7413,7 +7415,7 @@ const bv = ["data-prefers-dark", "aria-label"], gv = {
|
|
|
7413
7415
|
key: 0,
|
|
7414
7416
|
type: "button",
|
|
7415
7417
|
class: "fe-btn",
|
|
7416
|
-
onClick:
|
|
7418
|
+
onClick: P
|
|
7417
7419
|
}, f(p(s)("tour.back")), 1)) : B("", !0),
|
|
7418
7420
|
t("button", {
|
|
7419
7421
|
type: "button",
|
|
@@ -7483,14 +7485,14 @@ const bv = ["data-prefers-dark", "aria-label"], gv = {
|
|
|
7483
7485
|
tabindex: "0",
|
|
7484
7486
|
draggable: "true",
|
|
7485
7487
|
title: C.label,
|
|
7486
|
-
onClick: (
|
|
7487
|
-
onKeydown: it(Ee((
|
|
7488
|
-
onMousedown: N[0] || (N[0] = (
|
|
7489
|
-
onAuxclick: (
|
|
7490
|
-
onDragstart: (
|
|
7491
|
-
onDragover: (
|
|
7492
|
-
onDragleave: (
|
|
7493
|
-
onDrop: (
|
|
7488
|
+
onClick: (P) => d("select", C.id),
|
|
7489
|
+
onKeydown: it(Ee((P) => d("select", C.id), ["prevent"]), ["enter"]),
|
|
7490
|
+
onMousedown: N[0] || (N[0] = (P) => E(P)),
|
|
7491
|
+
onAuxclick: (P) => L(C.id, P),
|
|
7492
|
+
onDragstart: (P) => r(S, P),
|
|
7493
|
+
onDragover: (P) => y(S, P),
|
|
7494
|
+
onDragleave: (P) => w(S),
|
|
7495
|
+
onDrop: (P) => A(S, P),
|
|
7494
7496
|
onDragend: H
|
|
7495
7497
|
}, [
|
|
7496
7498
|
C.split ? (i(), u("span", Dv)) : B("", !0),
|
|
@@ -7500,7 +7502,7 @@ const bv = ["data-prefers-dark", "aria-label"], gv = {
|
|
|
7500
7502
|
class: "fe-tabs__close",
|
|
7501
7503
|
"aria-label": p(s)("tabs.close"),
|
|
7502
7504
|
title: p(s)("tabs.close"),
|
|
7503
|
-
onClick: Ee((
|
|
7505
|
+
onClick: Ee((P) => d("close", C.id), ["stop"])
|
|
7504
7506
|
}, "×", 8, Pv)
|
|
7505
7507
|
], 42, Ev))), 128)),
|
|
7506
7508
|
t("button", {
|
|
@@ -7797,7 +7799,7 @@ const qv = ["aria-label"], Wv = { class: "fe-split__crumbs" }, Jv = ["title"], X
|
|
|
7797
7799
|
const h = v.ctrl || v.shift, I = new Set(h ? A.value : []);
|
|
7798
7800
|
h && I.has(b.path) ? I.delete(b.path) : I.add(b.path), A.value = I;
|
|
7799
7801
|
}
|
|
7800
|
-
function
|
|
7802
|
+
function P(b, v) {
|
|
7801
7803
|
v.preventDefault(), v.stopPropagation(), s("activate"), A.value.has(b.path) || (A.value = /* @__PURE__ */ new Set([b.path])), s("context", b, v);
|
|
7802
7804
|
}
|
|
7803
7805
|
function ee(b) {
|
|
@@ -7942,7 +7944,7 @@ const qv = ["aria-label"], Wv = { class: "fe-split__crumbs" }, Jv = ["title"], X
|
|
|
7942
7944
|
loading: y.value,
|
|
7943
7945
|
onClickRow: S,
|
|
7944
7946
|
onDblRow: z,
|
|
7945
|
-
onContextRow:
|
|
7947
|
+
onContextRow: P,
|
|
7946
7948
|
onItemDragStart: K,
|
|
7947
7949
|
onItemDropInto: O
|
|
7948
7950
|
}, null, 8, ["files", "selected", "locale", "loading"])) : o.viewMode === "grid" ? (i(), Re(Yo, {
|
|
@@ -7954,7 +7956,7 @@ const qv = ["aria-label"], Wv = { class: "fe-split__crumbs" }, Jv = ["title"], X
|
|
|
7954
7956
|
"thumb-src": o.thumbSrc,
|
|
7955
7957
|
onClickCard: S,
|
|
7956
7958
|
onDblCard: z,
|
|
7957
|
-
onContextCard:
|
|
7959
|
+
onContextCard: P,
|
|
7958
7960
|
onItemDragStart: K,
|
|
7959
7961
|
onItemDropInto: O
|
|
7960
7962
|
}, null, 8, ["files", "selected", "locale", "loading", "thumb-src"])) : (i(), Re(Go, {
|
|
@@ -7966,7 +7968,7 @@ const qv = ["aria-label"], Wv = { class: "fe-split__crumbs" }, Jv = ["title"], X
|
|
|
7966
7968
|
"thumb-src": o.thumbSrc,
|
|
7967
7969
|
onClickCard: S,
|
|
7968
7970
|
onDblCard: z,
|
|
7969
|
-
onContextCard:
|
|
7971
|
+
onContextCard: P,
|
|
7970
7972
|
onItemDragStart: K,
|
|
7971
7973
|
onItemDropInto: O
|
|
7972
7974
|
}, null, 8, ["files", "selected", "locale", "loading", "thumb-src"]))
|
|
@@ -7992,21 +7994,21 @@ function nm(o) {
|
|
|
7992
7994
|
if (!C) return !1;
|
|
7993
7995
|
const S = JSON.parse(C);
|
|
7994
7996
|
if (!S || !Array.isArray(S.tabs) || S.tabs.length === 0) return !1;
|
|
7995
|
-
const
|
|
7997
|
+
const P = [];
|
|
7996
7998
|
for (const ee of S.tabs) {
|
|
7997
7999
|
if (!ee || typeof ee.path != "string") continue;
|
|
7998
8000
|
const O = typeof ee.viewMode == "string" && ee.viewMode ? ee.viewMode : "list", z = ee.split, j = z && typeof z == "object" && typeof z.path == "string" ? {
|
|
7999
8001
|
path: z.path,
|
|
8000
8002
|
viewMode: typeof z.viewMode == "string" && z.viewMode ? z.viewMode : void 0
|
|
8001
8003
|
} : null;
|
|
8002
|
-
|
|
8004
|
+
P.push({
|
|
8003
8005
|
id: typeof ee.id == "string" && ee.id ? ee.id : hn(),
|
|
8004
8006
|
path: ee.path,
|
|
8005
8007
|
viewMode: O,
|
|
8006
8008
|
split: j
|
|
8007
8009
|
});
|
|
8008
8010
|
}
|
|
8009
|
-
return
|
|
8011
|
+
return P.length === 0 ? !1 : (c.value = P, n.value = P.some((ee) => ee.id === S.active) ? String(S.active) : P[0].id, !0);
|
|
8010
8012
|
} catch {
|
|
8011
8013
|
return !1;
|
|
8012
8014
|
}
|
|
@@ -8024,39 +8026,39 @@ function nm(o) {
|
|
|
8024
8026
|
De([c, n], r, { deep: !0 });
|
|
8025
8027
|
function y(C, S) {
|
|
8026
8028
|
if (c.value.length > 0) return;
|
|
8027
|
-
const
|
|
8028
|
-
c.value = [
|
|
8029
|
+
const P = { id: hn(), path: C, viewMode: S, split: null };
|
|
8030
|
+
c.value = [P], n.value = P.id;
|
|
8029
8031
|
}
|
|
8030
8032
|
function w(C) {
|
|
8031
8033
|
const S = d.value;
|
|
8032
8034
|
S && (C.path !== void 0 && (S.path = C.path), C.viewMode !== void 0 && (S.viewMode = C.viewMode));
|
|
8033
8035
|
}
|
|
8034
8036
|
function A(C, S) {
|
|
8035
|
-
const
|
|
8036
|
-
return c.value.splice(ee === -1 ? c.value.length : ee + 1, 0,
|
|
8037
|
+
const P = { id: hn(), path: C, viewMode: S.viewMode, split: S.split ?? null }, ee = s.value;
|
|
8038
|
+
return c.value.splice(ee === -1 ? c.value.length : ee + 1, 0, P), S.background || (n.value = P.id), P;
|
|
8037
8039
|
}
|
|
8038
8040
|
function H(C) {
|
|
8039
8041
|
if (c.value.length <= 1) return null;
|
|
8040
8042
|
const S = c.value.findIndex((O) => O.id === C);
|
|
8041
8043
|
if (S === -1) return null;
|
|
8042
|
-
const
|
|
8043
|
-
if (c.value.splice(S, 1), !
|
|
8044
|
+
const P = c.value[S].id === n.value;
|
|
8045
|
+
if (c.value.splice(S, 1), !P) return null;
|
|
8044
8046
|
const ee = c.value[Math.min(S, c.value.length - 1)];
|
|
8045
8047
|
return n.value = ee.id, ee;
|
|
8046
8048
|
}
|
|
8047
8049
|
function E(C) {
|
|
8048
|
-
const S = c.value.find((
|
|
8050
|
+
const S = c.value.find((P) => P.id === C);
|
|
8049
8051
|
return !S || S.id === n.value ? null : (n.value = S.id, S);
|
|
8050
8052
|
}
|
|
8051
8053
|
function L(C) {
|
|
8052
8054
|
if (c.value.length < 2) return null;
|
|
8053
|
-
const S = s.value === -1 ? 0 : s.value,
|
|
8054
|
-
return E(
|
|
8055
|
+
const S = s.value === -1 ? 0 : s.value, P = c.value[(S + C + c.value.length) % c.value.length];
|
|
8056
|
+
return E(P.id);
|
|
8055
8057
|
}
|
|
8056
8058
|
function U(C, S) {
|
|
8057
8059
|
if (C === S || C < 0 || S < 0 || C >= c.value.length || S >= c.value.length) return;
|
|
8058
|
-
const
|
|
8059
|
-
|
|
8060
|
+
const P = [...c.value], [ee] = P.splice(C, 1);
|
|
8061
|
+
P.splice(S, 0, ee), c.value = P;
|
|
8060
8062
|
}
|
|
8061
8063
|
function N(C) {
|
|
8062
8064
|
const S = d.value;
|
|
@@ -8563,13 +8565,13 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
8563
8565
|
const j = z.data;
|
|
8564
8566
|
if (!j || j.source !== "convert-embed") return;
|
|
8565
8567
|
if (j.event === "ready") {
|
|
8566
|
-
|
|
8568
|
+
P();
|
|
8567
8569
|
return;
|
|
8568
8570
|
}
|
|
8569
8571
|
const K = N.get(j.id);
|
|
8570
8572
|
K && (N.delete(j.id), j.ok ? K.resolve(j) : K.reject(new Error(j.error || "convert error")));
|
|
8571
8573
|
}
|
|
8572
|
-
async function
|
|
8574
|
+
async function P() {
|
|
8573
8575
|
try {
|
|
8574
8576
|
const z = await C("listFormats");
|
|
8575
8577
|
r.value = z.formats || [], l.value = "ready", H.value || (m.value = O("convert.unsupportedInput", "Bu dosya tipi için kaynak format bulunamadı."));
|
|
@@ -8739,7 +8741,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
8739
8741
|
const m = W(() => {
|
|
8740
8742
|
const q = /^([^:]+):\/\/(.*)$/.exec(n.path), V = q ? q[1] : "", de = q ? q[2] : n.path, Ne = de.split("/").filter(Boolean);
|
|
8741
8743
|
return { adapter: V, name: Ne.length ? Ne[Ne.length - 1] : V, rel: de };
|
|
8742
|
-
}), r = g("perms"), y = g(!1), w = g(!0), A = g(""), H = g([]), E = g([]), L = g(!0), U = g(""), N = g("viewer"), C = g(!1), S = g(""),
|
|
8744
|
+
}), r = g("perms"), y = g(!1), w = g(!0), A = g(""), H = g([]), E = g([]), L = g(!0), U = g(""), N = g("viewer"), C = g(!1), S = g(""), P = g(!1), ee = g("user"), O = g(null), z = g([]), j = g(!1);
|
|
8743
8745
|
let K;
|
|
8744
8746
|
const F = [
|
|
8745
8747
|
{ v: "viewer", l: l("Görüntüleyen", "Viewer"), d: l("görüntüle + indir", "view + download") },
|
|
@@ -8794,7 +8796,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
8794
8796
|
K && clearTimeout(K);
|
|
8795
8797
|
});
|
|
8796
8798
|
function yt() {
|
|
8797
|
-
|
|
8799
|
+
P.value = !1, O.value = null, S.value = "";
|
|
8798
8800
|
const q = U.value.trim();
|
|
8799
8801
|
if (K && clearTimeout(K), q.length < 1) {
|
|
8800
8802
|
z.value = [], j.value = !1;
|
|
@@ -8834,7 +8836,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
8834
8836
|
let de = N.value;
|
|
8835
8837
|
V.user.role === "viewer" && de !== "viewer" && (de = "viewer"), await n.api.addPermission({ path: n.path, user_id: V.user.id, level: de, is_dir: !!n.isDir }), U.value = "", await st(), S.value = l("Yetki verildi.", "Access granted.");
|
|
8836
8838
|
} else
|
|
8837
|
-
|
|
8839
|
+
P.value = !0;
|
|
8838
8840
|
} catch (V) {
|
|
8839
8841
|
S.value = V instanceof Error ? V.message : String(V);
|
|
8840
8842
|
} finally {
|
|
@@ -8853,7 +8855,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
8853
8855
|
is_dir: !!n.isDir,
|
|
8854
8856
|
locale: n.locale ?? "tr"
|
|
8855
8857
|
});
|
|
8856
|
-
O.value = { tempPassword: q.temp_password }, S.value = q.emailed ? l("Kullanıcı açıldı, davet e-postası gönderildi.", "User created, invite emailed.") : l("Kullanıcı açıldı. Geçici parolayı iletin.", "User created. Share the temp password."),
|
|
8858
|
+
O.value = { tempPassword: q.temp_password }, S.value = q.emailed ? l("Kullanıcı açıldı, davet e-postası gönderildi.", "User created, invite emailed.") : l("Kullanıcı açıldı. Geçici parolayı iletin.", "User created. Share the temp password."), P.value = !1, U.value = "", await st();
|
|
8857
8859
|
} catch (q) {
|
|
8858
8860
|
S.value = q instanceof Error ? q.message : String(q);
|
|
8859
8861
|
} finally {
|
|
@@ -8861,7 +8863,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
8861
8863
|
}
|
|
8862
8864
|
}
|
|
8863
8865
|
function ge() {
|
|
8864
|
-
fe.value = U.value.trim().toLowerCase(),
|
|
8866
|
+
fe.value = U.value.trim().toLowerCase(), P.value = !1, S.value = "", r.value = "share";
|
|
8865
8867
|
}
|
|
8866
8868
|
async function Ge(q, V) {
|
|
8867
8869
|
if (V !== q.level) {
|
|
@@ -9000,7 +9002,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9000
9002
|
k.value = !1;
|
|
9001
9003
|
}
|
|
9002
9004
|
}
|
|
9003
|
-
function
|
|
9005
|
+
function we(q, V = "url") {
|
|
9004
9006
|
var de;
|
|
9005
9007
|
(de = navigator.clipboard) == null || de.writeText(q), le.value = V, setTimeout(() => {
|
|
9006
9008
|
le.value === V && (le.value = "");
|
|
@@ -9140,7 +9142,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9140
9142
|
onClick: ae
|
|
9141
9143
|
}, f(l("Ekle", "Add")), 9, gh)
|
|
9142
9144
|
]),
|
|
9143
|
-
|
|
9145
|
+
P.value ? (i(), u("div", _h, [
|
|
9144
9146
|
t("p", kh, f(l("Bu e-postada hesap yok. Ne yapmak istersiniz?", "No account for this email — what next?")), 1),
|
|
9145
9147
|
t("div", wh, [
|
|
9146
9148
|
t("div", xh, [
|
|
@@ -9267,7 +9269,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9267
9269
|
}, f(Z.value.url), 9, Xh),
|
|
9268
9270
|
t("button", {
|
|
9269
9271
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
9270
|
-
onClick: V[9] || (V[9] = (X) =>
|
|
9272
|
+
onClick: V[9] || (V[9] = (X) => we(Z.value.url, "new"))
|
|
9271
9273
|
}, f(le.value === "new" ? l("Kopyalandı ✓", "Copied ✓") : l("Kopyala", "Copy")), 1)
|
|
9272
9274
|
]),
|
|
9273
9275
|
Z.value.pin ? (i(), u("div", Qh, [
|
|
@@ -9277,7 +9279,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9277
9279
|
]),
|
|
9278
9280
|
t("button", {
|
|
9279
9281
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
9280
|
-
onClick: V[10] || (V[10] = (X) =>
|
|
9282
|
+
onClick: V[10] || (V[10] = (X) => we(Z.value.pin, "sharepin"))
|
|
9281
9283
|
}, f(le.value === "sharepin" ? l("Kopyalandı ✓", "Copied ✓") : l("Kopyala", "Copy")), 1)
|
|
9282
9284
|
])) : B("", !0),
|
|
9283
9285
|
t("div", Zh, [
|
|
@@ -9326,7 +9328,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9326
9328
|
}, f(X.url), 9, ry),
|
|
9327
9329
|
t("button", {
|
|
9328
9330
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
9329
|
-
onClick: (Ae) =>
|
|
9331
|
+
onClick: (Ae) => we(X.url, X.uuid)
|
|
9330
9332
|
}, f(le.value === X.uuid ? l("✓", "✓") : l("Kopyala", "Copy")), 9, ly),
|
|
9331
9333
|
t("button", {
|
|
9332
9334
|
class: "fx-perm-del",
|
|
@@ -9436,7 +9438,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9436
9438
|
}, f(ne.value.url), 9, Dy),
|
|
9437
9439
|
t("button", {
|
|
9438
9440
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
9439
|
-
onClick: V[20] || (V[20] = (X) =>
|
|
9441
|
+
onClick: V[20] || (V[20] = (X) => we(ne.value.url, "drop"))
|
|
9440
9442
|
}, f(le.value === "drop" ? l("Kopyalandı ✓", "Copied ✓") : l("Kopyala", "Copy")), 1)
|
|
9441
9443
|
]),
|
|
9442
9444
|
ne.value.pin ? (i(), u("div", My, [
|
|
@@ -9446,7 +9448,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9446
9448
|
]),
|
|
9447
9449
|
t("button", {
|
|
9448
9450
|
class: "fx-perm-btn fx-perm-btn--sm",
|
|
9449
|
-
onClick: V[21] || (V[21] = (X) =>
|
|
9451
|
+
onClick: V[21] || (V[21] = (X) => we(ne.value.pin, "droppin"))
|
|
9450
9452
|
}, f(le.value === "droppin" ? l("Kopyalandı ✓", "Copied ✓") : l("Kopyala", "Copy")), 1)
|
|
9451
9453
|
])) : B("", !0),
|
|
9452
9454
|
t("div", Py, [
|
|
@@ -9566,16 +9568,16 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9566
9568
|
var x;
|
|
9567
9569
|
const a = U.get(e.id);
|
|
9568
9570
|
if (U.delete(e.id), e.status === "error")
|
|
9569
|
-
|
|
9571
|
+
ke(e.error_message || "İşlem başarısız");
|
|
9570
9572
|
else if (a)
|
|
9571
9573
|
ma(`${a.message} (${e.progress_total})`, a.fn);
|
|
9572
9574
|
else {
|
|
9573
9575
|
const T = e.op_type === "copy" ? "Kopyalandı" : e.op_type === "move" ? "Taşındı" : "Silindi";
|
|
9574
|
-
|
|
9576
|
+
ke(`${T} (${e.progress_total})`);
|
|
9575
9577
|
}
|
|
9576
9578
|
Me(), (x = Xe.value) == null || x.reload();
|
|
9577
9579
|
}
|
|
9578
|
-
}), C = g(!1), S = (d.config.rootPath || "").trim(),
|
|
9580
|
+
}), C = g(!1), S = (d.config.rootPath || "").trim(), P = S.replace("://", "/").replace(/^\/+|\/+$/g, ""), ee = P || d.config.initialPath || "", O = g(ee), z = g(d.config.defaultAdapter || "brf"), j = g(ee), K = g([]), F = g(""), _ = g(""), $ = g("");
|
|
9579
9581
|
let k;
|
|
9580
9582
|
function Q() {
|
|
9581
9583
|
Me(k);
|
|
@@ -9606,7 +9608,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9606
9608
|
};
|
|
9607
9609
|
}), Z = g("comfortable"), ie = g(""), le = g(!1), fe = g(""), be = W(() => le.value), D = W(() => {
|
|
9608
9610
|
const e = (O.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
9609
|
-
return
|
|
9611
|
+
return P && e === P ? !1 : e.length > 0;
|
|
9610
9612
|
}), b = W(() => at.value ? !(O.value ?? "").replace(/^\/+|\/+$/g, "") : !1);
|
|
9611
9613
|
function v() {
|
|
9612
9614
|
if (le.value) {
|
|
@@ -9614,10 +9616,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9614
9616
|
return;
|
|
9615
9617
|
}
|
|
9616
9618
|
const e = (O.value ?? "").replace(/^\/+|\/+$/g, "");
|
|
9617
|
-
if (!e || e ===
|
|
9619
|
+
if (!e || e === P) return;
|
|
9618
9620
|
const a = e.lastIndexOf("/");
|
|
9619
9621
|
let x = a === -1 ? "" : e.slice(0, a);
|
|
9620
|
-
|
|
9622
|
+
P && !(x === P || x.startsWith(P + "/")) && (x = P), Me(x);
|
|
9621
9623
|
}
|
|
9622
9624
|
const h = Br(() => K.value);
|
|
9623
9625
|
De(
|
|
@@ -9640,7 +9642,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9640
9642
|
});
|
|
9641
9643
|
if (!x.ok) return;
|
|
9642
9644
|
const T = await x.json(), G = Array.isArray(T) ? T : Array.isArray(T == null ? void 0 : T.entries) ? T.entries : Array.isArray(T == null ? void 0 : T.nodes) ? T.nodes : [];
|
|
9643
|
-
xe.value = new Set(G.map((
|
|
9645
|
+
xe.value = new Set(G.map((M) => M.id).filter((M) => typeof M == "number"));
|
|
9644
9646
|
} catch {
|
|
9645
9647
|
}
|
|
9646
9648
|
}
|
|
@@ -9691,7 +9693,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9691
9693
|
var e;
|
|
9692
9694
|
return d.config.convertBase || ((e = ue.value) == null ? void 0 : e.convert_url) || null;
|
|
9693
9695
|
}
|
|
9694
|
-
), Y = g([]), ae = g(null), ce = g(!1), ge = g(!1), Ge = g(!1), Be = g(!1), Ve = g(!1), Fe = g(null), je = g(!1), Dt = g(null), Mt = g(null), oe = g(null), J = g("edit"), re = g(!1), _e = g(null),
|
|
9696
|
+
), Y = g([]), ae = g(null), ce = g(!1), ge = g(!1), Ge = g(!1), Be = g(!1), Ve = g(!1), Fe = g(null), je = g(!1), Dt = g(null), Mt = g(null), oe = g(null), J = g("edit"), re = g(!1), _e = g(null), we = g(!1), Ke = g(null), et = g(
|
|
9695
9697
|
(() => {
|
|
9696
9698
|
try {
|
|
9697
9699
|
return localStorage.getItem(Oo) === "1";
|
|
@@ -9721,7 +9723,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9721
9723
|
return e ? e.split("/").pop() || e : z.value || r("breadcrumb.root");
|
|
9722
9724
|
});
|
|
9723
9725
|
function V(e) {
|
|
9724
|
-
Ke.value = e,
|
|
9726
|
+
Ke.value = e, we.value = !0;
|
|
9725
9727
|
}
|
|
9726
9728
|
function de(e) {
|
|
9727
9729
|
return e === void 0 || e === "editor" || e === "owner";
|
|
@@ -9740,8 +9742,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9740
9742
|
Qe(() => {
|
|
9741
9743
|
var e;
|
|
9742
9744
|
typeof ResizeObserver < "u" && Ie.value && (Gt = new ResizeObserver((a) => {
|
|
9743
|
-
var T, G,
|
|
9744
|
-
const x = ((G = (T = a[0]) == null ? void 0 : T.contentRect) == null ? void 0 : G.width) ?? ((
|
|
9745
|
+
var T, G, M;
|
|
9746
|
+
const x = ((G = (T = a[0]) == null ? void 0 : T.contentRect) == null ? void 0 : G.width) ?? ((M = Ie.value) == null ? void 0 : M.clientWidth) ?? 0;
|
|
9745
9747
|
ct.value = x > 0 && x < 560;
|
|
9746
9748
|
}), Gt.observe(Ie.value)), typeof window < "u" && window.matchMedia && (gt = window.matchMedia("(pointer: coarse)"), Ra(gt), (e = gt.addEventListener) == null || e.call(gt, "change", Ra));
|
|
9747
9749
|
}), We(() => {
|
|
@@ -9753,7 +9755,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9753
9755
|
function Mn(e, a) {
|
|
9754
9756
|
wt.value = e, qt && clearTimeout(qt), qt = setTimeout(() => wt.value = null, a);
|
|
9755
9757
|
}
|
|
9756
|
-
function
|
|
9758
|
+
function ke(e) {
|
|
9757
9759
|
Mn({ message: e }, 2500);
|
|
9758
9760
|
}
|
|
9759
9761
|
function ma(e, a) {
|
|
@@ -9767,9 +9769,9 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9767
9769
|
const e = (a = wt.value) == null ? void 0 : a.action;
|
|
9768
9770
|
if (Ua(), !!e)
|
|
9769
9771
|
try {
|
|
9770
|
-
await e(),
|
|
9772
|
+
await e(), ke(r("toast.undone")), await Me();
|
|
9771
9773
|
} catch {
|
|
9772
|
-
|
|
9774
|
+
ke(r("toast.undo_failed"));
|
|
9773
9775
|
}
|
|
9774
9776
|
}
|
|
9775
9777
|
const at = W(() => d.config.multiStorageRoot === !0);
|
|
@@ -9808,9 +9810,9 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9808
9810
|
C.value = !0, le.value = !1;
|
|
9809
9811
|
let a = e ?? O.value ?? "";
|
|
9810
9812
|
try {
|
|
9811
|
-
if (_.value = "", $.value = "",
|
|
9813
|
+
if (_.value = "", $.value = "", P) {
|
|
9812
9814
|
const G = String(a).replace(/^\/+|\/+$/g, "");
|
|
9813
|
-
(!G || !(G ===
|
|
9815
|
+
(!G || !(G === P || G.startsWith(P + "/"))) && (a = P);
|
|
9814
9816
|
}
|
|
9815
9817
|
if (at.value && !Fa(a)) {
|
|
9816
9818
|
O.value = "", z.value = "", j.value = "", ft.value = "", K.value = Pn();
|
|
@@ -9824,7 +9826,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9824
9826
|
_.value = String(a), ft.value = "", K.value = [], s("error", { message: T, context: { path: e } });
|
|
9825
9827
|
return;
|
|
9826
9828
|
}
|
|
9827
|
-
$.value = T, k = typeof a == "string" ? a : void 0, s("error", { message: T, context: { path: e } }), K.value.length > 0 &&
|
|
9829
|
+
$.value = T, k = typeof a == "string" ? a : void 0, s("error", { message: T, context: { path: e } }), K.value.length > 0 && ke(T);
|
|
9828
9830
|
} finally {
|
|
9829
9831
|
C.value = !1;
|
|
9830
9832
|
}
|
|
@@ -9856,7 +9858,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9856
9858
|
), j.value = ".trash", O.value = ".trash";
|
|
9857
9859
|
} catch (e) {
|
|
9858
9860
|
const a = e instanceof Error ? e.message : String(e);
|
|
9859
|
-
s("error", { message: a, context: { op: "trash-list" } }),
|
|
9861
|
+
s("error", { message: a, context: { op: "trash-list" } }), ke(a);
|
|
9860
9862
|
} finally {
|
|
9861
9863
|
C.value = !1;
|
|
9862
9864
|
}
|
|
@@ -9879,8 +9881,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9879
9881
|
}
|
|
9880
9882
|
function ja(e, a) {
|
|
9881
9883
|
const x = (T) => {
|
|
9882
|
-
const G = T.indexOf("://"),
|
|
9883
|
-
return
|
|
9884
|
+
const G = T.indexOf("://"), M = G === -1 ? "" : T.slice(0, G + 3), me = (G === -1 ? T : T.slice(G + 3)).replace(/\/+$/, "");
|
|
9885
|
+
return M + me;
|
|
9884
9886
|
};
|
|
9885
9887
|
return x(e) === x(a);
|
|
9886
9888
|
}
|
|
@@ -9889,12 +9891,12 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9889
9891
|
}
|
|
9890
9892
|
function In(e, a, x, T) {
|
|
9891
9893
|
if (!T || !x) return;
|
|
9892
|
-
const G = a.map((
|
|
9894
|
+
const G = a.map((M) => la(x, An(M)));
|
|
9893
9895
|
G.length !== 0 && U.set(e, {
|
|
9894
9896
|
message: r("toast.moved"),
|
|
9895
9897
|
fn: async () => {
|
|
9896
|
-
const { op:
|
|
9897
|
-
N.register(
|
|
9898
|
+
const { op: M } = await l.moveAsync(G, T, x);
|
|
9899
|
+
N.register(M);
|
|
9898
9900
|
}
|
|
9899
9901
|
});
|
|
9900
9902
|
}
|
|
@@ -9977,13 +9979,13 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
9977
9979
|
const a = String(e.path ?? "").replace(/^\/+|\/+$/g, "");
|
|
9978
9980
|
if (!a) return;
|
|
9979
9981
|
const x = e.type === "dir", T = a.lastIndexOf("/"), G = x ? a : T === -1 ? "" : a.slice(0, T);
|
|
9980
|
-
let
|
|
9982
|
+
let M = G;
|
|
9981
9983
|
if (at.value) {
|
|
9982
9984
|
const Te = d.config.storages ?? [], nt = typeof e.storage == "string" && e.storage || typeof e.storage_name == "string" && e.storage_name || (Te.length === 1 ? Te[0].name : "") || z.value;
|
|
9983
9985
|
if (!nt) return;
|
|
9984
|
-
|
|
9986
|
+
M = G ? `${nt}/${G}` : nt;
|
|
9985
9987
|
}
|
|
9986
|
-
if (await Me(
|
|
9988
|
+
if (await Me(M), x) return;
|
|
9987
9989
|
const me = String(e.name ?? a.slice(T + 1)), Ce = K.value.find((Te) => Te.type === "file" && Te.basename === me);
|
|
9988
9990
|
Ce && (h.click(Ce.path), xt(Ce));
|
|
9989
9991
|
}
|
|
@@ -10129,13 +10131,13 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10129
10131
|
if (a.length !== 0)
|
|
10130
10132
|
try {
|
|
10131
10133
|
if (le.value) {
|
|
10132
|
-
const G = a.map((me) => me.id).filter((me) => typeof me == "number"), { restored:
|
|
10133
|
-
|
|
10134
|
+
const G = a.map((me) => me.id).filter((me) => typeof me == "number"), { restored: M } = await l.restoreIds(G);
|
|
10135
|
+
ke(`${M} öğe geri getirildi`), h.clear(), await ra();
|
|
10134
10136
|
return;
|
|
10135
10137
|
}
|
|
10136
10138
|
if (!l.endpoints.restore) return;
|
|
10137
10139
|
const x = a.map((G) => G.path), { restored: T } = await l.restore(x);
|
|
10138
|
-
|
|
10140
|
+
ke(`${T} öğe geri getirildi`), h.clear(), await Me();
|
|
10139
10141
|
} catch (x) {
|
|
10140
10142
|
s("error", { message: x.message, context: { op: "restore" } });
|
|
10141
10143
|
}
|
|
@@ -10149,8 +10151,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10149
10151
|
}
|
|
10150
10152
|
function ps(e) {
|
|
10151
10153
|
if (e.type === "dir") {
|
|
10152
|
-
const
|
|
10153
|
-
Me(
|
|
10154
|
+
const M = at.value ? Wt(e.path) : Vt(e.path);
|
|
10155
|
+
Me(M);
|
|
10154
10156
|
return;
|
|
10155
10157
|
}
|
|
10156
10158
|
if (ht.value) {
|
|
@@ -10206,11 +10208,11 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10206
10208
|
{ key: "copy-path", label: r("breadcrumb.copy_path"), icon: "📋" }
|
|
10207
10209
|
];
|
|
10208
10210
|
if (ut.value === "pane") {
|
|
10209
|
-
const
|
|
10210
|
-
return
|
|
10211
|
+
const M = Jt.value;
|
|
10212
|
+
return M.length === 0 ? [
|
|
10211
10213
|
{ key: "new-folder", label: r("toolbar.new_folder"), icon: "📁" },
|
|
10212
10214
|
{ key: "paste", label: r("ctx.paste"), icon: "📋", disabled: !I.value.mode }
|
|
10213
|
-
] : Ga(
|
|
10215
|
+
] : Ga(M);
|
|
10214
10216
|
}
|
|
10215
10217
|
const e = h.nodes.value, a = e.length > 0, x = e.length === 1;
|
|
10216
10218
|
if (be.value)
|
|
@@ -10230,7 +10232,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10230
10232
|
});
|
|
10231
10233
|
function Ga(e) {
|
|
10232
10234
|
var io, co, uo;
|
|
10233
|
-
const a = e.length > 0, x = e.length === 1, T = x && ((io = e[0]) == null ? void 0 : io.type) === "file", G = m.value === "en" ? "Tags…" : "Etiketler…",
|
|
10235
|
+
const a = e.length > 0, x = e.length === 1, T = x && ((io = e[0]) == null ? void 0 : io.type) === "file", G = m.value === "en" ? "Tags…" : "Etiketler…", M = x && typeof ((co = e[0]) == null ? void 0 : co.id) == "number", me = m.value === "en" ? "Copy node id" : "Node id'yi kopyala", Ce = Ne(e), Te = de(Ce), nt = m.value === "en" ? "Share / Permissions" : "Paylaş / İzinler";
|
|
10234
10236
|
return [
|
|
10235
10237
|
{ key: "open", label: r("ctx.open"), icon: "↗", hidden: !x },
|
|
10236
10238
|
{ key: "open-tab", label: r("ctx.open_new_tab"), icon: "⧉", hidden: !x || ((uo = e[0]) == null ? void 0 : uo.type) !== "dir" },
|
|
@@ -10245,14 +10247,14 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10245
10247
|
/* wiring:e2 — paylaşım MVP'de kapalı (link ciphertext verir) */
|
|
10246
10248
|
},
|
|
10247
10249
|
{ key: "details", label: r("ctx.details"), icon: "ℹ", hidden: !a },
|
|
10248
|
-
{ key: "copy-id", label: me, icon: "🆔", hidden: !
|
|
10250
|
+
{ key: "copy-id", label: me, icon: "🆔", hidden: !M, disabled: !M },
|
|
10249
10251
|
{ divider: !0, key: "sep1", label: "", hidden: !Te },
|
|
10250
10252
|
{ key: "rename", label: r("ctx.rename"), icon: "✎", hidden: !x || !Te, disabled: !x },
|
|
10251
10253
|
{ key: "cut", label: r("ctx.cut"), icon: "✂", hidden: !a || !Te, disabled: !a },
|
|
10252
10254
|
{ key: "copy", label: r("ctx.copy"), icon: "❐", hidden: !a, disabled: !a },
|
|
10253
10255
|
{ key: "paste", label: r("ctx.paste"), icon: "📋", hidden: !Te, disabled: !I.value.mode },
|
|
10254
|
-
{ divider: !0, key: "sep-meta", label: "", hidden: !
|
|
10255
|
-
{ key: "tags", label: G, icon: "🏷", hidden: !
|
|
10256
|
+
{ divider: !0, key: "sep-meta", label: "", hidden: !M },
|
|
10257
|
+
{ key: "tags", label: G, icon: "🏷", hidden: !M, disabled: !M },
|
|
10256
10258
|
{ divider: !0, key: "sep2", label: "", hidden: !Te },
|
|
10257
10259
|
{ key: "delete", label: r("ctx.delete"), icon: "🗑", danger: !0, hidden: !a || !Te, disabled: !a }
|
|
10258
10260
|
];
|
|
@@ -10297,7 +10299,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10297
10299
|
a[0] && Ms(a[0]);
|
|
10298
10300
|
break;
|
|
10299
10301
|
case "access":
|
|
10300
|
-
a[0] && (Ke.value = a[0],
|
|
10302
|
+
a[0] && (Ke.value = a[0], we.value = !0);
|
|
10301
10303
|
break;
|
|
10302
10304
|
case "details":
|
|
10303
10305
|
sa();
|
|
@@ -10306,8 +10308,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10306
10308
|
if (a[0] && typeof a[0].id == "number") {
|
|
10307
10309
|
const T = a[0].id;
|
|
10308
10310
|
(x = navigator.clipboard) == null || x.writeText(String(T)).then(
|
|
10309
|
-
() =>
|
|
10310
|
-
() =>
|
|
10311
|
+
() => ke(m.value === "en" ? `Node id ${T} copied` : `Node id ${T} kopyalandı`),
|
|
10312
|
+
() => ke(`#${T}`)
|
|
10311
10313
|
);
|
|
10312
10314
|
}
|
|
10313
10315
|
break;
|
|
@@ -10318,10 +10320,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10318
10320
|
a[0] && (Fe.value = a[0], je.value = ut.value === "pane", ge.value = !0);
|
|
10319
10321
|
break;
|
|
10320
10322
|
case "cut":
|
|
10321
|
-
ut.value === "pane" ? to() : (I.value = { mode: "cut", items: a, sourcePath: O.value },
|
|
10323
|
+
ut.value === "pane" ? to() : (I.value = { mode: "cut", items: a, sourcePath: O.value }, ke("Kes → Yapıştır hazır"));
|
|
10322
10324
|
break;
|
|
10323
10325
|
case "copy":
|
|
10324
|
-
ut.value === "pane" ? ao() : (I.value = { mode: "copy", items: a, sourcePath: O.value },
|
|
10326
|
+
ut.value === "pane" ? ao() : (I.value = { mode: "copy", items: a, sourcePath: O.value }, ke("Kopyala → Yapıştır hazır"));
|
|
10325
10327
|
break;
|
|
10326
10328
|
case "paste":
|
|
10327
10329
|
ut.value === "pane" || mt.value ? await no() : await Rn();
|
|
@@ -10344,10 +10346,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10344
10346
|
}
|
|
10345
10347
|
}
|
|
10346
10348
|
function xs() {
|
|
10347
|
-
h.isEmpty.value || (I.value = { mode: "cut", items: h.nodes.value, sourcePath: O.value },
|
|
10349
|
+
h.isEmpty.value || (I.value = { mode: "cut", items: h.nodes.value, sourcePath: O.value }, ke("Kesildi"));
|
|
10348
10350
|
}
|
|
10349
10351
|
function $s() {
|
|
10350
|
-
h.isEmpty.value || (I.value = { mode: "copy", items: h.nodes.value, sourcePath: O.value },
|
|
10352
|
+
h.isEmpty.value || (I.value = { mode: "copy", items: h.nodes.value, sourcePath: O.value }, ke("Kopyalandı"));
|
|
10351
10353
|
}
|
|
10352
10354
|
async function Rn() {
|
|
10353
10355
|
const e = I.value;
|
|
@@ -10355,15 +10357,15 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10355
10357
|
try {
|
|
10356
10358
|
const a = e.items.map((G) => G.path), x = e.sourcePath || "";
|
|
10357
10359
|
if (e.mode === "cut" && x === O.value) {
|
|
10358
|
-
|
|
10360
|
+
ke("Aynı klasöre kesilemez");
|
|
10359
10361
|
return;
|
|
10360
10362
|
}
|
|
10361
10363
|
if (e.mode === "cut") {
|
|
10362
|
-
const G = qe(O.value),
|
|
10363
|
-
In(me.id, a, G,
|
|
10364
|
+
const G = qe(O.value), M = qe(x) || void 0, { op: me } = await l.moveAsync(a, G, M);
|
|
10365
|
+
In(me.id, a, G, M), N.register(me), ke("Taşıma kuyruğa alındı");
|
|
10364
10366
|
} else {
|
|
10365
10367
|
const { op: G } = await l.copy(a, qe(O.value));
|
|
10366
|
-
N.register(G),
|
|
10368
|
+
N.register(G), ke("Kopyalama kuyruğa alındı");
|
|
10367
10369
|
}
|
|
10368
10370
|
I.value = { mode: null, items: [], sourcePath: null };
|
|
10369
10371
|
} catch (a) {
|
|
@@ -10402,21 +10404,21 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10402
10404
|
if (!a) return;
|
|
10403
10405
|
const x = je.value;
|
|
10404
10406
|
try {
|
|
10405
|
-
const
|
|
10406
|
-
if (await l.rename(
|
|
10407
|
+
const M = qe(x ? ((T = Xe.value) == null ? void 0 : T.getPath()) ?? "" : O.value), me = a.path, Ce = a.basename;
|
|
10408
|
+
if (await l.rename(M, me, e), ge.value = !1, Fe.value = null, x ? await ((G = Xe.value) == null ? void 0 : G.reload()) : await Me(), e && e !== Ce) {
|
|
10407
10409
|
const Te = la(ha(me), e);
|
|
10408
10410
|
ma(r("toast.renamed"), async () => {
|
|
10409
|
-
await l.rename(
|
|
10411
|
+
await l.rename(M, Te, Ce);
|
|
10410
10412
|
});
|
|
10411
10413
|
}
|
|
10412
|
-
} catch (
|
|
10413
|
-
s("error", { message:
|
|
10414
|
+
} catch (M) {
|
|
10415
|
+
s("error", { message: M.message, context: { op: "rename" } });
|
|
10414
10416
|
}
|
|
10415
10417
|
}
|
|
10416
10418
|
async function Ds() {
|
|
10417
10419
|
var me, Ce, Te;
|
|
10418
10420
|
if (le.value) {
|
|
10419
|
-
Ge.value = !1,
|
|
10421
|
+
Ge.value = !1, ke("Çöpteki öğeler saklama süresi sonunda otomatik silinir. Kalıcı silme yönetici panelinden yapılır.");
|
|
10420
10422
|
return;
|
|
10421
10423
|
}
|
|
10422
10424
|
const e = je.value, a = e ? Jt.value : h.nodes.value, x = qe(e ? ((me = Xe.value) == null ? void 0 : me.getPath()) ?? "" : O.value), T = a.map((nt) => nt.path);
|
|
@@ -10424,16 +10426,16 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10424
10426
|
Ge.value = !1;
|
|
10425
10427
|
return;
|
|
10426
10428
|
}
|
|
10427
|
-
const G = a.map((nt) => nt.id).filter((nt) => typeof nt == "number"),
|
|
10429
|
+
const G = a.map((nt) => nt.id).filter((nt) => typeof nt == "number"), M = l.endpoints.trashRestore && G.length === a.length ? async () => {
|
|
10428
10430
|
const { restored: nt } = await l.restoreIds(G);
|
|
10429
10431
|
if (nt === 0) throw new Error("restore failed");
|
|
10430
10432
|
} : null;
|
|
10431
10433
|
try {
|
|
10432
10434
|
if (l.endpoints.deleteAsync) {
|
|
10433
10435
|
const { op: nt } = await l.deleteAsync(T, x);
|
|
10434
|
-
|
|
10436
|
+
M && U.set(nt.id, { message: r("toast.trashed"), fn: M }), N.register(nt), ke("Silme kuyruğa alındı");
|
|
10435
10437
|
} else
|
|
10436
|
-
await l.deleteItems(x, T), e ? await ((Ce = Xe.value) == null ? void 0 : Ce.reload()) : await Me(),
|
|
10438
|
+
await l.deleteItems(x, T), e ? await ((Ce = Xe.value) == null ? void 0 : Ce.reload()) : await Me(), M && ma(r("toast.trashed"), M);
|
|
10437
10439
|
Ge.value = !1, e ? (Te = Xe.value) == null || Te.reload() : h.clear();
|
|
10438
10440
|
} catch (nt) {
|
|
10439
10441
|
s("error", { message: nt.message, context: { op: "delete" } });
|
|
@@ -10446,7 +10448,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10446
10448
|
_e.value = e, re.value = !0;
|
|
10447
10449
|
}
|
|
10448
10450
|
function As(e) {
|
|
10449
|
-
|
|
10451
|
+
ke(m.value === "en" ? `Converted → ${e}` : `Dönüştürüldü → ${e}`), Me();
|
|
10450
10452
|
}
|
|
10451
10453
|
async function Is(e) {
|
|
10452
10454
|
const a = Dt.value;
|
|
@@ -10470,7 +10472,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10470
10472
|
function ga() {
|
|
10471
10473
|
var e;
|
|
10472
10474
|
if (!X.value) {
|
|
10473
|
-
|
|
10475
|
+
ke(m.value === "en" ? "Read-only here" : "Burada yazma yetkiniz yok");
|
|
10474
10476
|
return;
|
|
10475
10477
|
}
|
|
10476
10478
|
(e = ae.value) == null || e.click();
|
|
@@ -10482,7 +10484,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10482
10484
|
async function Un(e) {
|
|
10483
10485
|
if (e.length === 0) return;
|
|
10484
10486
|
if (sn.value) {
|
|
10485
|
-
|
|
10487
|
+
ke(r("e2e.upload.locked"));
|
|
10486
10488
|
return;
|
|
10487
10489
|
}
|
|
10488
10490
|
if ($t.value && (e = await kr(e), e.length === 0))
|
|
@@ -10500,18 +10502,19 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10500
10502
|
} }
|
|
10501
10503
|
];
|
|
10502
10504
|
const T = (G) => {
|
|
10503
|
-
const
|
|
10504
|
-
if (
|
|
10505
|
+
const M = Y.value.findIndex((Ce) => Ce.id === a);
|
|
10506
|
+
if (M === -1) return;
|
|
10505
10507
|
const me = [...Y.value];
|
|
10506
|
-
me[
|
|
10508
|
+
me[M] = { ...me[M], ...G }, Y.value = me;
|
|
10507
10509
|
};
|
|
10508
10510
|
try {
|
|
10509
10511
|
await l.uploadMultipart(x, [e], (G) => {
|
|
10510
10512
|
T({ percent: G, uploadedBytes: Math.round(G / 100 * e.size) }), s("upload-progress", { uploadId: a, percent: G, done: G >= 100 });
|
|
10511
10513
|
}), T({ percent: 100, uploadedBytes: e.size, status: "done" }), s("upload-progress", { uploadId: a, percent: 100, done: !0 });
|
|
10512
10514
|
} catch (G) {
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
+
const M = G.message;
|
|
10516
|
+
T({ status: "error", error: M }), ke(r("upload.failed", { name: e.name })), s("error", {
|
|
10517
|
+
message: M,
|
|
10515
10518
|
context: { op: "upload", file: e.name }
|
|
10516
10519
|
});
|
|
10517
10520
|
}
|
|
@@ -10525,10 +10528,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10525
10528
|
file: e,
|
|
10526
10529
|
onProgress: (T) => {
|
|
10527
10530
|
if (x) {
|
|
10528
|
-
const G = Y.value.findIndex((
|
|
10531
|
+
const G = Y.value.findIndex((M) => M.id === a);
|
|
10529
10532
|
if (G !== -1) {
|
|
10530
|
-
const
|
|
10531
|
-
|
|
10533
|
+
const M = [...Y.value];
|
|
10534
|
+
M[G] = { ...T, id: a }, Y.value = M;
|
|
10532
10535
|
}
|
|
10533
10536
|
} else {
|
|
10534
10537
|
if (T.status !== "uploading" && T.uploadedBytes <= 0) return;
|
|
@@ -10577,12 +10580,12 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10577
10580
|
function Us(e) {
|
|
10578
10581
|
var x, T, G;
|
|
10579
10582
|
if ((x = e.dataTransfer) != null && x.types.includes(Ft)) {
|
|
10580
|
-
const
|
|
10581
|
-
if (
|
|
10583
|
+
const M = e.dataTransfer.getData(bn) || "", me = qe(O.value);
|
|
10584
|
+
if (M && me && M !== me && !le.value && X.value) {
|
|
10582
10585
|
e.preventDefault(), Kt.value = 0, Nt.value = !1;
|
|
10583
10586
|
try {
|
|
10584
10587
|
const Ce = JSON.parse(e.dataTransfer.getData(Ft));
|
|
10585
|
-
ua(Ce.map((Te) => Te.path), me,
|
|
10588
|
+
ua(Ce.map((Te) => Te.path), me, M);
|
|
10586
10589
|
} catch {
|
|
10587
10590
|
}
|
|
10588
10591
|
return;
|
|
@@ -10597,7 +10600,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10597
10600
|
return;
|
|
10598
10601
|
}
|
|
10599
10602
|
if (e.preventDefault(), Kt.value = 0, Nt.value = !1, !X.value) {
|
|
10600
|
-
|
|
10603
|
+
ke(m.value === "en" ? "Read-only here" : "Burada yazma yetkiniz yok");
|
|
10601
10604
|
return;
|
|
10602
10605
|
}
|
|
10603
10606
|
const a = (G = e.dataTransfer) != null && G.files ? Array.from(e.dataTransfer.files) : [];
|
|
@@ -10632,13 +10635,13 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10632
10635
|
try {
|
|
10633
10636
|
const G = T ?? qe(O.value);
|
|
10634
10637
|
if (l.endpoints.moveAsync) {
|
|
10635
|
-
const { op:
|
|
10636
|
-
In(
|
|
10638
|
+
const { op: M } = await l.moveAsync(e, a, G);
|
|
10639
|
+
In(M.id, e, a, G), N.register(M), ke("Taşıma kuyruğa alındı");
|
|
10637
10640
|
} else {
|
|
10638
10641
|
await l.move(G, e, a), await Me();
|
|
10639
|
-
const
|
|
10642
|
+
const M = e.map((me) => la(a, An(me)));
|
|
10640
10643
|
ma(r("toast.moved"), async () => {
|
|
10641
|
-
await l.move(a,
|
|
10644
|
+
await l.move(a, M, G);
|
|
10642
10645
|
});
|
|
10643
10646
|
}
|
|
10644
10647
|
h.clear();
|
|
@@ -10658,8 +10661,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10658
10661
|
return;
|
|
10659
10662
|
}
|
|
10660
10663
|
if (T.length === 0) return;
|
|
10661
|
-
const G = e.path,
|
|
10662
|
-
|
|
10664
|
+
const G = e.path, M = T.map((Ce) => Ce.path).filter((Ce) => Ce && Ce !== G && !G.startsWith(Ce + "/") && !ja(ha(Ce), G));
|
|
10665
|
+
M.length !== 0 && await ua(M, G, so(a));
|
|
10663
10666
|
}
|
|
10664
10667
|
async function js(e, a) {
|
|
10665
10668
|
var me;
|
|
@@ -10672,8 +10675,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10672
10675
|
return;
|
|
10673
10676
|
}
|
|
10674
10677
|
if (T.length === 0) return;
|
|
10675
|
-
const G = e,
|
|
10676
|
-
|
|
10678
|
+
const G = e, M = T.map((Ce) => Ce.path).filter((Ce) => Ce && Ce !== G && !G.startsWith(Ce + "/") && !ja(ha(Ce), G));
|
|
10679
|
+
M.length !== 0 && await ua(M, G, so(a));
|
|
10677
10680
|
}
|
|
10678
10681
|
function Vs(e) {
|
|
10679
10682
|
e.cancel();
|
|
@@ -10694,7 +10697,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10694
10697
|
}
|
|
10695
10698
|
async function Vn(e) {
|
|
10696
10699
|
try {
|
|
10697
|
-
await navigator.clipboard.writeText(e),
|
|
10700
|
+
await navigator.clipboard.writeText(e), ke(r("breadcrumb.copy_path"));
|
|
10698
10701
|
} catch {
|
|
10699
10702
|
}
|
|
10700
10703
|
}
|
|
@@ -10736,7 +10739,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10736
10739
|
try {
|
|
10737
10740
|
await cn(a);
|
|
10738
10741
|
} catch {
|
|
10739
|
-
|
|
10742
|
+
ke(r("e2e.decrypt_failed"));
|
|
10740
10743
|
return;
|
|
10741
10744
|
}
|
|
10742
10745
|
At.value = a, Rt.value = !0, Ze(a);
|
|
@@ -10747,10 +10750,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10747
10750
|
}
|
|
10748
10751
|
}
|
|
10749
10752
|
function Ws(e) {
|
|
10750
|
-
const a = K.value.filter((
|
|
10753
|
+
const a = K.value.filter((M) => M.type === "file");
|
|
10751
10754
|
if (a.length === 0) return;
|
|
10752
10755
|
const x = At.value;
|
|
10753
|
-
let T = x ? a.findIndex((
|
|
10756
|
+
let T = x ? a.findIndex((M) => M.path === x.path) : -1;
|
|
10754
10757
|
T = T === -1 ? e > 0 ? 0 : a.length - 1 : (T + e + a.length) % a.length;
|
|
10755
10758
|
const G = a[T];
|
|
10756
10759
|
!G || G.path === (x == null ? void 0 : x.path) || h.click(G.path);
|
|
@@ -10780,25 +10783,25 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10780
10783
|
);
|
|
10781
10784
|
const Za = yv();
|
|
10782
10785
|
function Xs(e) {
|
|
10783
|
-
Y.value = Y.value.filter((
|
|
10786
|
+
Y.value = Y.value.filter((M) => M.id !== e.id);
|
|
10784
10787
|
const a = e.file, x = e.path || qe(O.value), T = crypto.randomUUID();
|
|
10785
10788
|
Y.value = [
|
|
10786
10789
|
...Y.value,
|
|
10787
10790
|
{ id: T, file: a, path: x, totalBytes: a.size, uploadedBytes: 0, percent: 0, status: "uploading", cancel() {
|
|
10788
10791
|
} }
|
|
10789
10792
|
];
|
|
10790
|
-
const G = (
|
|
10793
|
+
const G = (M) => {
|
|
10791
10794
|
const me = Y.value.findIndex((Te) => Te.id === T);
|
|
10792
10795
|
if (me === -1) return;
|
|
10793
10796
|
const Ce = [...Y.value];
|
|
10794
|
-
Ce[me] = { ...Ce[me], ...
|
|
10797
|
+
Ce[me] = { ...Ce[me], ...M }, Y.value = Ce;
|
|
10795
10798
|
};
|
|
10796
|
-
l.uploadMultipart(x, [a], (
|
|
10797
|
-
G({ percent:
|
|
10799
|
+
l.uploadMultipart(x, [a], (M) => {
|
|
10800
|
+
G({ percent: M, uploadedBytes: Math.round(M / 100 * a.size) }), s("upload-progress", { uploadId: T, percent: M, done: M >= 100 });
|
|
10798
10801
|
}).then(() => {
|
|
10799
10802
|
G({ percent: 100, uploadedBytes: a.size, status: "done" }), s("upload-progress", { uploadId: T, percent: 100, done: !0 }), Me();
|
|
10800
|
-
}).catch((
|
|
10801
|
-
G({ status: "error", error:
|
|
10803
|
+
}).catch((M) => {
|
|
10804
|
+
G({ status: "error", error: M.message }), ke(r("upload.failed", { name: a.name })), s("error", { message: M.message, context: { op: "upload-retry", file: a.name } });
|
|
10802
10805
|
});
|
|
10803
10806
|
}
|
|
10804
10807
|
const xa = g(!1);
|
|
@@ -10886,7 +10889,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10886
10889
|
if (e.button !== 1) return;
|
|
10887
10890
|
const a = e.target, x = a && typeof a.closest == "function" ? a.closest("[data-fe-path]") : null, T = x == null ? void 0 : x.getAttribute("data-fe-path");
|
|
10888
10891
|
if (!T) return;
|
|
10889
|
-
const G = K.value.find((
|
|
10892
|
+
const G = K.value.find((M) => M.path === T);
|
|
10890
10893
|
!G || G.type !== "dir" || G.basename === ".trash" || (e.preventDefault(), Wn(G));
|
|
10891
10894
|
}
|
|
10892
10895
|
function Xn(e) {
|
|
@@ -10944,24 +10947,24 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10944
10947
|
}
|
|
10945
10948
|
function mr(e) {
|
|
10946
10949
|
const a = String(e ?? "").replace(/^\/+|\/+$/g, "");
|
|
10947
|
-
return
|
|
10950
|
+
return P && (!a || !(a === P || a.startsWith(P + "/"))) ? P : a;
|
|
10948
10951
|
}
|
|
10949
10952
|
function to() {
|
|
10950
10953
|
var a, x;
|
|
10951
10954
|
const e = ((a = Xe.value) == null ? void 0 : a.selectedNodes()) ?? [];
|
|
10952
|
-
e.length !== 0 && (I.value = { mode: "cut", items: e, sourcePath: ((x = Xe.value) == null ? void 0 : x.getPath()) ?? "" },
|
|
10955
|
+
e.length !== 0 && (I.value = { mode: "cut", items: e, sourcePath: ((x = Xe.value) == null ? void 0 : x.getPath()) ?? "" }, ke("Kesildi"));
|
|
10953
10956
|
}
|
|
10954
10957
|
function ao() {
|
|
10955
10958
|
var a, x;
|
|
10956
10959
|
const e = ((a = Xe.value) == null ? void 0 : a.selectedNodes()) ?? [];
|
|
10957
|
-
e.length !== 0 && (I.value = { mode: "copy", items: e, sourcePath: ((x = Xe.value) == null ? void 0 : x.getPath()) ?? "" },
|
|
10960
|
+
e.length !== 0 && (I.value = { mode: "copy", items: e, sourcePath: ((x = Xe.value) == null ? void 0 : x.getPath()) ?? "" }, ke("Kopyalandı"));
|
|
10958
10961
|
}
|
|
10959
10962
|
async function no() {
|
|
10960
10963
|
const e = I.value, a = Xe.value;
|
|
10961
10964
|
if (!e.mode || e.items.length === 0 || !a) return;
|
|
10962
10965
|
const x = qe(a.getPath() ?? ""), T = qe(e.sourcePath || "") || void 0;
|
|
10963
10966
|
if (e.mode === "cut" && T === x) {
|
|
10964
|
-
|
|
10967
|
+
ke("Aynı klasöre kesilemez");
|
|
10965
10968
|
return;
|
|
10966
10969
|
}
|
|
10967
10970
|
await ua(e.items.map((G) => G.path), x, T, e.mode === "copy"), I.value = { mode: null, items: [], sourcePath: null };
|
|
@@ -10980,13 +10983,13 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
10980
10983
|
(Te) => Te && Te !== a && !a.startsWith(Te + "/") && !ja(ha(Te), a)
|
|
10981
10984
|
);
|
|
10982
10985
|
if (G.length === 0 || !a) return;
|
|
10983
|
-
const
|
|
10986
|
+
const M = oo(a), me = G.some((Te) => oo(Te) !== M);
|
|
10984
10987
|
if (me || T)
|
|
10985
10988
|
try {
|
|
10986
10989
|
const { op: Te } = await l.copy(G, a);
|
|
10987
|
-
N.register(Te),
|
|
10990
|
+
N.register(Te), ke(r(me ? "split.cross_copy" : "split.copy_queued"));
|
|
10988
10991
|
} catch (Te) {
|
|
10989
|
-
s("error", { message: Te.message, context: { op: "transfer", targetWire: a } }),
|
|
10992
|
+
s("error", { message: Te.message, context: { op: "transfer", targetWire: a } }), ke(me ? r("split.cross_failed") : Te.message);
|
|
10990
10993
|
return;
|
|
10991
10994
|
}
|
|
10992
10995
|
else
|
|
@@ -11034,7 +11037,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11034
11037
|
}
|
|
11035
11038
|
}
|
|
11036
11039
|
function br() {
|
|
11037
|
-
ft.value && (Xt.lock(ft.value), da.value++, ro(),
|
|
11040
|
+
ft.value && (Xt.lock(ft.value), da.value++, ro(), ke(r("e2e.locked_toast")));
|
|
11038
11041
|
}
|
|
11039
11042
|
const gr = {
|
|
11040
11043
|
txt: "text/plain",
|
|
@@ -11076,8 +11079,8 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11076
11079
|
if (!x) return null;
|
|
11077
11080
|
const T = await l.fetchArrayBuffer(e.path);
|
|
11078
11081
|
if (!Cn(T)) return null;
|
|
11079
|
-
const G = await Po(x, T),
|
|
11080
|
-
return fa.set(e.path,
|
|
11082
|
+
const G = await Po(x, T), M = URL.createObjectURL(new Blob([G], { type: lo(e) }));
|
|
11083
|
+
return fa.set(e.path, M), M;
|
|
11081
11084
|
}
|
|
11082
11085
|
function Sa(e) {
|
|
11083
11086
|
return fa.get(e) ?? l.previewUrl(e);
|
|
@@ -11086,7 +11089,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11086
11089
|
try {
|
|
11087
11090
|
await cn(e);
|
|
11088
11091
|
} catch {
|
|
11089
|
-
|
|
11092
|
+
ke(r("e2e.decrypt_failed"));
|
|
11090
11093
|
return;
|
|
11091
11094
|
}
|
|
11092
11095
|
J.value = "view", oe.value = e, Ve.value = !0, s("file-opened", { path: e.path, basename: e.basename }), Ze(e);
|
|
@@ -11099,10 +11102,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11099
11102
|
if (!x) throw new Error("locked");
|
|
11100
11103
|
T = await Po(x, a);
|
|
11101
11104
|
}
|
|
11102
|
-
const G = URL.createObjectURL(new Blob([T], { type: lo(e) })),
|
|
11103
|
-
|
|
11105
|
+
const G = URL.createObjectURL(new Blob([T], { type: lo(e) })), M = document.createElement("a");
|
|
11106
|
+
M.href = G, M.download = e.basename, document.body.appendChild(M), M.click(), M.remove(), setTimeout(() => URL.revokeObjectURL(G), 3e4);
|
|
11104
11107
|
} catch {
|
|
11105
|
-
|
|
11108
|
+
ke(r("e2e.download.failed"));
|
|
11106
11109
|
}
|
|
11107
11110
|
}
|
|
11108
11111
|
async function kr(e) {
|
|
@@ -11112,7 +11115,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11112
11115
|
for (const T of e)
|
|
11113
11116
|
if (T.name !== Ma) {
|
|
11114
11117
|
if (T.size > Wo) {
|
|
11115
|
-
|
|
11118
|
+
ke(r("e2e.upload.too_big"));
|
|
11116
11119
|
continue;
|
|
11117
11120
|
}
|
|
11118
11121
|
try {
|
|
@@ -11126,7 +11129,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11126
11129
|
}
|
|
11127
11130
|
async function wr(e) {
|
|
11128
11131
|
if (ht.value) {
|
|
11129
|
-
|
|
11132
|
+
ke(r("e2e.create.nested"));
|
|
11130
11133
|
return;
|
|
11131
11134
|
}
|
|
11132
11135
|
rn.value = !0;
|
|
@@ -11135,10 +11138,10 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11135
11138
|
await l.newFolder(a, e.name);
|
|
11136
11139
|
const { marker: x, kek: T } = await Rv(e.password), G = new File([JSON.stringify(x)], Ma, {
|
|
11137
11140
|
type: "application/json"
|
|
11138
|
-
}),
|
|
11139
|
-
await l.uploadMultipart(
|
|
11141
|
+
}), M = la(a, e.name);
|
|
11142
|
+
await l.uploadMultipart(M, [G]), Xt.set(M, T), da.value++, Ca.value = !1, ke(r("e2e.create.done")), await Me();
|
|
11140
11143
|
} catch (a) {
|
|
11141
|
-
s("error", { message: a.message, context: { op: "e2e-create" } }),
|
|
11144
|
+
s("error", { message: a.message, context: { op: "e2e-create" } }), ke(r("e2e.create.failed"));
|
|
11142
11145
|
} finally {
|
|
11143
11146
|
rn.value = !1;
|
|
11144
11147
|
}
|
|
@@ -11172,7 +11175,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11172
11175
|
onSelect: sr,
|
|
11173
11176
|
onClose: qn,
|
|
11174
11177
|
onNew: nn,
|
|
11175
|
-
onReorder: a[0] || (a[0] = (
|
|
11178
|
+
onReorder: a[0] || (a[0] = (M, me) => p(Je).move(M, me)),
|
|
11176
11179
|
onToggleSplit: Qn
|
|
11177
11180
|
}, null, 8, ["tabs", "active-id", "locale", "split-enabled", "split-active"])) : B("", !0),
|
|
11178
11181
|
ze(pi, {
|
|
@@ -11193,17 +11196,17 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11193
11196
|
theme: o.config.theme || "auto",
|
|
11194
11197
|
"inspector-open": et.value,
|
|
11195
11198
|
onToggleInspector: kt,
|
|
11196
|
-
onOpenTheme: a[1] || (a[1] = (
|
|
11197
|
-
"onUpdate:viewMode": a[2] || (a[2] = (
|
|
11198
|
-
"onUpdate:searchQuery": a[3] || (a[3] = (
|
|
11199
|
-
"onUpdate:density": a[4] || (a[4] = (
|
|
11200
|
-
onOpenShortcutSettings: a[5] || (a[5] = (
|
|
11201
|
-
onNewFolder: a[6] || (a[6] = (
|
|
11199
|
+
onOpenTheme: a[1] || (a[1] = (M) => ka.value = !0),
|
|
11200
|
+
"onUpdate:viewMode": a[2] || (a[2] = (M) => eo(M)),
|
|
11201
|
+
"onUpdate:searchQuery": a[3] || (a[3] = (M) => ie.value = M),
|
|
11202
|
+
"onUpdate:density": a[4] || (a[4] = (M) => Z.value = M),
|
|
11203
|
+
onOpenShortcutSettings: a[5] || (a[5] = (M) => ia.value = !0),
|
|
11204
|
+
onNewFolder: a[6] || (a[6] = (M) => ce.value = !0),
|
|
11202
11205
|
onUpload: ga,
|
|
11203
11206
|
onRefresh: a[7] || (a[7] = () => Me()),
|
|
11204
11207
|
onGoUp: v,
|
|
11205
11208
|
onAction: hs,
|
|
11206
|
-
onOpenRecents: a[8] || (a[8] = (
|
|
11209
|
+
onOpenRecents: a[8] || (a[8] = (M) => ye.value = !0)
|
|
11207
11210
|
}, null, 8, ["view-mode", "search-query", "trash-active", "actions", "selection-mode", "paste-enabled", "convert-enabled", "can-go-up", "at-virtual-root", "can-write", "locale", "narrow", "theme", "inspector-open", "onToggleInspector"]),
|
|
11208
11211
|
t("div", {
|
|
11209
11212
|
class: ve([
|
|
@@ -11264,22 +11267,22 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11264
11267
|
])) : B("", !0),
|
|
11265
11268
|
t("div", {
|
|
11266
11269
|
class: "fe__body",
|
|
11267
|
-
onPointerdownCapture: a[13] || (a[13] = (
|
|
11268
|
-
onClick: a[14] || (a[14] = Ee((
|
|
11270
|
+
onPointerdownCapture: a[13] || (a[13] = (M) => fr()),
|
|
11271
|
+
onClick: a[14] || (a[14] = Ee((M) => p(h).clear(), ["self"]))
|
|
11269
11272
|
}, [
|
|
11270
11273
|
C.value && K.value.length === 0 ? (i(), u("div", Uy, [
|
|
11271
11274
|
t("span", Fy, f(p(r)("loading")), 1),
|
|
11272
11275
|
R.value !== "list" ? (i(), u("div", jy, [
|
|
11273
|
-
(i(), u(se, null, he(8, (
|
|
11274
|
-
key:
|
|
11276
|
+
(i(), u(se, null, he(8, (M) => t("div", {
|
|
11277
|
+
key: M,
|
|
11275
11278
|
class: "fe-skel-card"
|
|
11276
11279
|
}, [...a[52] || (a[52] = [
|
|
11277
11280
|
t("div", { class: "fe-skel fe-skel--thumb" }, null, -1),
|
|
11278
11281
|
t("div", { class: "fe-skel fe-skel--label" }, null, -1)
|
|
11279
11282
|
])])), 64))
|
|
11280
11283
|
])) : (i(), u("div", Vy, [
|
|
11281
|
-
(i(), u(se, null, he(8, (
|
|
11282
|
-
key:
|
|
11284
|
+
(i(), u(se, null, he(8, (M) => t("div", {
|
|
11285
|
+
key: M,
|
|
11283
11286
|
class: "fe-skel-row"
|
|
11284
11287
|
}, [...a[53] || (a[53] = [
|
|
11285
11288
|
t("div", { class: "fe-skel fe-skel--icon" }, null, -1),
|
|
@@ -11345,7 +11348,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11345
11348
|
onSubmit: Ee(yr, ["prevent"])
|
|
11346
11349
|
}, [
|
|
11347
11350
|
Le(t("input", {
|
|
11348
|
-
"onUpdate:modelValue": a[9] || (a[9] = (
|
|
11351
|
+
"onUpdate:modelValue": a[9] || (a[9] = (M) => Qt.value = M),
|
|
11349
11352
|
type: "password",
|
|
11350
11353
|
class: "fe-input fe-e2e-lock__input",
|
|
11351
11354
|
placeholder: p(r)("e2e.locked.pw_placeholder"),
|
|
@@ -11418,7 +11421,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11418
11421
|
"starred-ids": xe.value,
|
|
11419
11422
|
"api-base": d.config.apiBase ?? "",
|
|
11420
11423
|
"auth-headers": () => Ht(),
|
|
11421
|
-
onClickRow: a[10] || (a[10] = (
|
|
11424
|
+
onClickRow: a[10] || (a[10] = (M, me) => p(h).click(M.path, me)),
|
|
11422
11425
|
onDblRow: xt,
|
|
11423
11426
|
onContextRow: Ya,
|
|
11424
11427
|
onItemDragStart: Ja,
|
|
@@ -11433,7 +11436,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11433
11436
|
locale: m.value,
|
|
11434
11437
|
loading: C.value,
|
|
11435
11438
|
"thumb-src": p(E).src,
|
|
11436
|
-
onClickCard: a[11] || (a[11] = (
|
|
11439
|
+
onClickCard: a[11] || (a[11] = (M, me) => p(h).click(M.path, me)),
|
|
11437
11440
|
onDblCard: xt,
|
|
11438
11441
|
onContextCard: Ya,
|
|
11439
11442
|
onItemDragStart: Ja,
|
|
@@ -11447,7 +11450,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11447
11450
|
locale: m.value,
|
|
11448
11451
|
loading: C.value,
|
|
11449
11452
|
"thumb-src": p(E).src,
|
|
11450
|
-
onClickCard: a[12] || (a[12] = (
|
|
11453
|
+
onClickCard: a[12] || (a[12] = (M, me) => p(h).click(M.path, me)),
|
|
11451
11454
|
onDblCard: xt,
|
|
11452
11455
|
onContextCard: Ya,
|
|
11453
11456
|
onItemDragStart: Ja,
|
|
@@ -11466,7 +11469,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11466
11469
|
"to-user": vr,
|
|
11467
11470
|
clamp: mr,
|
|
11468
11471
|
"root-label": at.value ? "/" : z.value || p(r)("breadcrumb.root"),
|
|
11469
|
-
floor: p(
|
|
11472
|
+
floor: p(P),
|
|
11470
11473
|
"multi-root": at.value,
|
|
11471
11474
|
"virtual-rows": Pn,
|
|
11472
11475
|
active: mt.value,
|
|
@@ -11474,9 +11477,9 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11474
11477
|
"thumb-src": p(E).src,
|
|
11475
11478
|
"trash-visible": o.config.trashVisible !== !1,
|
|
11476
11479
|
onNavigate: cr,
|
|
11477
|
-
onActivate: a[15] || (a[15] = (
|
|
11480
|
+
onActivate: a[15] || (a[15] = (M) => Ot.value = "split"),
|
|
11478
11481
|
onClose: ir,
|
|
11479
|
-
onOpenTab: a[16] || (a[16] = (
|
|
11482
|
+
onOpenTab: a[16] || (a[16] = (M) => p(Je).openTab(M, { viewMode: R.value, background: !0 })),
|
|
11480
11483
|
onTransfer: hr,
|
|
11481
11484
|
onContext: gs,
|
|
11482
11485
|
onOpenTrash: ur
|
|
@@ -11494,7 +11497,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11494
11497
|
"thumb-src": p(E).src,
|
|
11495
11498
|
onClose: jt,
|
|
11496
11499
|
onManagePermissions: V,
|
|
11497
|
-
onToast:
|
|
11500
|
+
onToast: ke,
|
|
11498
11501
|
onChanged: a[17] || (a[17] = () => Me())
|
|
11499
11502
|
}, null, 8, ["api", "nodes", "dir-label", "dir-count", "dir-perm", "locale", "narrow", "thumb-src"])) : B("", !0)
|
|
11500
11503
|
], 2),
|
|
@@ -11516,7 +11519,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11516
11519
|
ops: p(N).ops.value,
|
|
11517
11520
|
locale: m.value,
|
|
11518
11521
|
center: p(Za),
|
|
11519
|
-
onDismiss: a[18] || (a[18] = (
|
|
11522
|
+
onDismiss: a[18] || (a[18] = (M) => p(N).dismiss(M))
|
|
11520
11523
|
}, null, 8, ["ops", "locale", "center"]),
|
|
11521
11524
|
ze(vv, {
|
|
11522
11525
|
center: p(Za),
|
|
@@ -11557,9 +11560,9 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11557
11560
|
open: ce.value,
|
|
11558
11561
|
locale: m.value,
|
|
11559
11562
|
"encrypted-option": !ht.value,
|
|
11560
|
-
onClose: a[19] || (a[19] = (
|
|
11563
|
+
onClose: a[19] || (a[19] = (M) => ce.value = !1),
|
|
11561
11564
|
onSubmit: Ts,
|
|
11562
|
-
onEncrypted: a[20] || (a[20] = (
|
|
11565
|
+
onEncrypted: a[20] || (a[20] = (M) => {
|
|
11563
11566
|
ce.value = !1, Ca.value = !0;
|
|
11564
11567
|
})
|
|
11565
11568
|
}, null, 8, ["open", "locale", "encrypted-option"]),
|
|
@@ -11567,21 +11570,21 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11567
11570
|
open: Ca.value,
|
|
11568
11571
|
locale: m.value,
|
|
11569
11572
|
busy: rn.value,
|
|
11570
|
-
onClose: a[21] || (a[21] = (
|
|
11573
|
+
onClose: a[21] || (a[21] = (M) => Ca.value = !1),
|
|
11571
11574
|
onSubmit: wr
|
|
11572
11575
|
}, null, 8, ["open", "locale", "busy"]),
|
|
11573
11576
|
ze(bm, {
|
|
11574
11577
|
open: ge.value,
|
|
11575
11578
|
locale: m.value,
|
|
11576
11579
|
"current-name": ((x = Fe.value) == null ? void 0 : x.basename) || "",
|
|
11577
|
-
onClose: a[22] || (a[22] = (
|
|
11580
|
+
onClose: a[22] || (a[22] = (M) => ge.value = !1),
|
|
11578
11581
|
onSubmit: Es
|
|
11579
11582
|
}, null, 8, ["open", "locale", "current-name"]),
|
|
11580
11583
|
ze(gm, {
|
|
11581
11584
|
open: Ge.value,
|
|
11582
11585
|
locale: m.value,
|
|
11583
11586
|
count: p(h).size.value,
|
|
11584
|
-
onClose: a[23] || (a[23] = (
|
|
11587
|
+
onClose: a[23] || (a[23] = (M) => Ge.value = !1),
|
|
11585
11588
|
onConfirm: Ds
|
|
11586
11589
|
}, null, 8, ["open", "locale", "count"]),
|
|
11587
11590
|
ze(Im, {
|
|
@@ -11590,15 +11593,15 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11590
11593
|
share: Mt.value,
|
|
11591
11594
|
onClose: Os,
|
|
11592
11595
|
onSubmit: Is,
|
|
11593
|
-
onToast:
|
|
11596
|
+
onToast: ke
|
|
11594
11597
|
}, null, 8, ["open", "locale", "share"]),
|
|
11595
11598
|
ze(qo, {
|
|
11596
11599
|
open: Ve.value,
|
|
11597
11600
|
locale: m.value,
|
|
11598
11601
|
file: oe.value,
|
|
11599
11602
|
theme: o.config.theme || "auto",
|
|
11600
|
-
"preview-url": (
|
|
11601
|
-
"download-url": (
|
|
11603
|
+
"preview-url": (M) => Sa(M),
|
|
11604
|
+
"download-url": (M) => $t.value ? Sa(M) : p(l).downloadUrl(M),
|
|
11602
11605
|
"only-office-base": ht.value ? null : ot.value,
|
|
11603
11606
|
"only-office-config-endpoint": st.value,
|
|
11604
11607
|
"new-tab-enabled": !ht.value,
|
|
@@ -11610,29 +11613,29 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11610
11613
|
"pdf-worker-url": d.config.pdfWorkerUrl || null,
|
|
11611
11614
|
"pdf-save-url": d.config.pdfSaveUrl || null,
|
|
11612
11615
|
"viewer-base-url": d.config.viewerBaseUrl || null,
|
|
11613
|
-
onClose: a[24] || (a[24] = (
|
|
11616
|
+
onClose: a[24] || (a[24] = (M) => Ve.value = !1)
|
|
11614
11617
|
}, null, 8, ["open", "locale", "file", "theme", "preview-url", "download-url", "only-office-base", "only-office-config-endpoint", "new-tab-enabled", "save-text-endpoint", "open-mode", "auth-headers", "auth-credentials", "drawio-url", "pdf-worker-url", "pdf-save-url", "viewer-base-url"]),
|
|
11615
11618
|
re.value && _e.value && yt.value ? (i(), Re(qm, {
|
|
11616
11619
|
key: 3,
|
|
11617
11620
|
"convert-url": yt.value,
|
|
11618
11621
|
"file-name": ((T = _e.value) == null ? void 0 : T.basename) || ((G = _e.value) == null ? void 0 : G.path) || "",
|
|
11619
11622
|
"fetch-bytes": () => {
|
|
11620
|
-
var
|
|
11621
|
-
return p(l).fetchArrayBuffer(((
|
|
11623
|
+
var M;
|
|
11624
|
+
return p(l).fetchArrayBuffer(((M = _e.value) == null ? void 0 : M.path) ?? "");
|
|
11622
11625
|
},
|
|
11623
|
-
upload: (
|
|
11626
|
+
upload: (M) => p(l).uploadMultipart(qe(O.value), [M]).then(() => {
|
|
11624
11627
|
}),
|
|
11625
|
-
onClose: a[25] || (a[25] = (
|
|
11628
|
+
onClose: a[25] || (a[25] = (M) => re.value = !1),
|
|
11626
11629
|
onDone: As
|
|
11627
11630
|
}, null, 8, ["convert-url", "file-name", "fetch-bytes", "upload"])) : B("", !0),
|
|
11628
|
-
|
|
11631
|
+
we.value && Ke.value ? (i(), Re(By, {
|
|
11629
11632
|
key: 4,
|
|
11630
11633
|
api: p(l),
|
|
11631
11634
|
path: Ke.value.path,
|
|
11632
11635
|
"is-dir": Ke.value.type === "dir",
|
|
11633
11636
|
size: typeof Ke.value.size == "number" ? Ke.value.size : void 0,
|
|
11634
11637
|
locale: m.value === "en" ? "en" : "tr",
|
|
11635
|
-
onClose: a[26] || (a[26] = (
|
|
11638
|
+
onClose: a[26] || (a[26] = (M) => we.value = !1)
|
|
11636
11639
|
}, null, 8, ["api", "path", "is-dir", "size", "locale"])) : B("", !0),
|
|
11637
11640
|
ze(Lt, { name: "fe-modal" }, {
|
|
11638
11641
|
default: Ue(() => [
|
|
@@ -11642,7 +11645,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11642
11645
|
"fe--theme-light": o.config.theme === "light",
|
|
11643
11646
|
"fe--theme-dark": o.config.theme === "dark"
|
|
11644
11647
|
}]),
|
|
11645
|
-
onClick: a[30] || (a[30] = (
|
|
11648
|
+
onClick: a[30] || (a[30] = (M) => ye.value = !1)
|
|
11646
11649
|
}, [
|
|
11647
11650
|
t("div", {
|
|
11648
11651
|
class: "fe-recents__panel",
|
|
@@ -11654,7 +11657,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11654
11657
|
t("button", {
|
|
11655
11658
|
class: "fe-recents__close",
|
|
11656
11659
|
"aria-label": "Close",
|
|
11657
|
-
onClick: a[27] || (a[27] = (
|
|
11660
|
+
onClick: a[27] || (a[27] = (M) => ye.value = !1)
|
|
11658
11661
|
}, "×")
|
|
11659
11662
|
]),
|
|
11660
11663
|
ze(Si, {
|
|
@@ -11663,7 +11666,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11663
11666
|
limit: 20,
|
|
11664
11667
|
"refresh-key": pe.value,
|
|
11665
11668
|
onOpen: rt,
|
|
11666
|
-
onError: a[28] || (a[28] = (
|
|
11669
|
+
onError: a[28] || (a[28] = (M) => s("error", { message: M, context: { op: "recents" } }))
|
|
11667
11670
|
}, null, 8, ["api-base", "auth-headers", "refresh-key"])
|
|
11668
11671
|
])
|
|
11669
11672
|
], 2)) : B("", !0)
|
|
@@ -11675,7 +11678,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11675
11678
|
Oe.value && te.value && typeof te.value.id == "number" ? (i(), u("div", {
|
|
11676
11679
|
key: 0,
|
|
11677
11680
|
class: "fe-modal__backdrop",
|
|
11678
|
-
onClick: a[34] || (a[34] = (
|
|
11681
|
+
onClick: a[34] || (a[34] = (M) => Oe.value = !1)
|
|
11679
11682
|
}, [
|
|
11680
11683
|
t("div", {
|
|
11681
11684
|
class: "fe-modal__card fe-modal__card--md",
|
|
@@ -11687,7 +11690,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11687
11690
|
t("button", {
|
|
11688
11691
|
class: "fe-modal__close",
|
|
11689
11692
|
"aria-label": "Close",
|
|
11690
|
-
onClick: a[31] || (a[31] = (
|
|
11693
|
+
onClick: a[31] || (a[31] = (M) => Oe.value = !1)
|
|
11691
11694
|
}, "×")
|
|
11692
11695
|
]),
|
|
11693
11696
|
t("div", Cb, [
|
|
@@ -11695,7 +11698,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11695
11698
|
"node-id": te.value.id,
|
|
11696
11699
|
"api-base": d.config.apiBase ?? "",
|
|
11697
11700
|
"auth-headers": () => Ht(),
|
|
11698
|
-
onError: a[32] || (a[32] = (
|
|
11701
|
+
onError: a[32] || (a[32] = (M) => s("error", { message: M, context: { op: "tags" } }))
|
|
11699
11702
|
}, null, 8, ["node-id", "api-base", "auth-headers"])
|
|
11700
11703
|
])
|
|
11701
11704
|
])
|
|
@@ -11711,28 +11714,28 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11711
11714
|
"can-write": X.value && !b.value && !be.value,
|
|
11712
11715
|
"can-go-up": D.value,
|
|
11713
11716
|
"global-search": ls,
|
|
11714
|
-
onClose: a[35] || (a[35] = (
|
|
11717
|
+
onClose: a[35] || (a[35] = (M) => Va.value = !1),
|
|
11715
11718
|
onOpenHit: is,
|
|
11716
11719
|
onOpenNode: xt,
|
|
11717
|
-
onNavigate: a[36] || (a[36] = (
|
|
11718
|
-
onNewFolder: a[37] || (a[37] = (
|
|
11720
|
+
onNavigate: a[36] || (a[36] = (M) => Me(M)),
|
|
11721
|
+
onNewFolder: a[37] || (a[37] = (M) => ce.value = !0),
|
|
11719
11722
|
onUpload: ga,
|
|
11720
|
-
onToggleView: a[38] || (a[38] = (
|
|
11723
|
+
onToggleView: a[38] || (a[38] = (M) => eo(on.value === "list" ? "grid" : on.value === "grid" ? "gallery" : "list")),
|
|
11721
11724
|
onOpenTrash: ra,
|
|
11722
11725
|
onRefresh: a[39] || (a[39] = () => Me()),
|
|
11723
11726
|
onGoUp: v,
|
|
11724
|
-
onOpenTheme: a[40] || (a[40] = (
|
|
11725
|
-
onOpenShortcutSettings: a[41] || (a[41] = (
|
|
11726
|
-
onStartTour: a[42] || (a[42] = (
|
|
11727
|
+
onOpenTheme: a[40] || (a[40] = (M) => ka.value = !0),
|
|
11728
|
+
onOpenShortcutSettings: a[41] || (a[41] = (M) => ia.value = !0),
|
|
11729
|
+
onStartTour: a[42] || (a[42] = (M) => tn()),
|
|
11727
11730
|
"split-enabled": !ct.value,
|
|
11728
|
-
onTabNew: a[43] || (a[43] = (
|
|
11729
|
-
onSplitToggle: a[44] || (a[44] = (
|
|
11731
|
+
onTabNew: a[43] || (a[43] = (M) => nn()),
|
|
11732
|
+
onSplitToggle: a[44] || (a[44] = (M) => Qn())
|
|
11730
11733
|
}, null, 8, ["open", "locale", "files", "view-mode", "can-write", "can-go-up", "split-enabled"]),
|
|
11731
11734
|
ze(sf, {
|
|
11732
11735
|
open: ba.value,
|
|
11733
11736
|
locale: m.value,
|
|
11734
|
-
onClose: a[45] || (a[45] = (
|
|
11735
|
-
onCustomize: a[46] || (a[46] = (
|
|
11737
|
+
onClose: a[45] || (a[45] = (M) => ba.value = !1),
|
|
11738
|
+
onCustomize: a[46] || (a[46] = (M) => {
|
|
11736
11739
|
ba.value = !1, ia.value = !0;
|
|
11737
11740
|
})
|
|
11738
11741
|
}, null, 8, ["open", "locale"]),
|
|
@@ -11742,7 +11745,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11742
11745
|
theme: o.config.theme || "auto",
|
|
11743
11746
|
dark: Qa.value,
|
|
11744
11747
|
current: p(wa),
|
|
11745
|
-
onClose: a[47] || (a[47] = (
|
|
11748
|
+
onClose: a[47] || (a[47] = (M) => ka.value = !1),
|
|
11746
11749
|
onSelect: p(Gs)
|
|
11747
11750
|
}, null, 8, ["open", "locale", "theme", "dark", "current", "onSelect"]),
|
|
11748
11751
|
t("input", {
|
|
@@ -11776,15 +11779,15 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11776
11779
|
open: ia.value,
|
|
11777
11780
|
locale: m.value,
|
|
11778
11781
|
theme: o.config.theme || "auto",
|
|
11779
|
-
onClose: a[48] || (a[48] = (
|
|
11782
|
+
onClose: a[48] || (a[48] = (M) => ia.value = !1)
|
|
11780
11783
|
}, null, 8, ["open", "locale", "theme"]),
|
|
11781
11784
|
ze(Op, {
|
|
11782
11785
|
open: Rt.value,
|
|
11783
11786
|
locale: m.value,
|
|
11784
11787
|
file: At.value,
|
|
11785
11788
|
theme: o.config.theme || "auto",
|
|
11786
|
-
"preview-url": (
|
|
11787
|
-
"download-url": (
|
|
11789
|
+
"preview-url": (M) => Sa(M),
|
|
11790
|
+
"download-url": (M) => $t.value ? Sa(M) : p(l).downloadUrl(M),
|
|
11788
11791
|
"only-office-base": ht.value ? null : ot.value,
|
|
11789
11792
|
"only-office-config-endpoint": st.value,
|
|
11790
11793
|
"auth-headers": () => Ht({ "Content-Type": "application/json" }),
|
|
@@ -11792,7 +11795,7 @@ const om = ["placeholder", "disabled"], sm = ["placeholder", "disabled"], rm = [
|
|
|
11792
11795
|
"drawio-url": pt.value,
|
|
11793
11796
|
"pdf-worker-url": d.config.pdfWorkerUrl || null,
|
|
11794
11797
|
"viewer-base-url": d.config.viewerBaseUrl || null,
|
|
11795
|
-
onClose: a[49] || (a[49] = (
|
|
11798
|
+
onClose: a[49] || (a[49] = (M) => Rt.value = !1),
|
|
11796
11799
|
onNav: Ws,
|
|
11797
11800
|
onOpenFull: Js
|
|
11798
11801
|
}, null, 8, ["open", "locale", "file", "theme", "preview-url", "download-url", "only-office-base", "only-office-config-endpoint", "auth-headers", "auth-credentials", "drawio-url", "pdf-worker-url", "viewer-base-url"]),
|
|
@@ -11875,4 +11878,4 @@ export {
|
|
|
11875
11878
|
Xo as y,
|
|
11876
11879
|
za as z
|
|
11877
11880
|
};
|
|
11878
|
-
//# sourceMappingURL=index-
|
|
11881
|
+
//# sourceMappingURL=index-CR9pfSDq.js.map
|