@synopackageland/sdk 0.42.0 → 0.43.1
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/i18n/authorization/de.json +29 -29
- package/dist/i18n/authorization/en.json +29 -29
- package/dist/i18n/authorization/es.json +29 -29
- package/dist/i18n/authorization/fr.json +29 -29
- package/dist/i18n/authorization/it.json +29 -29
- package/dist/i18n/authorization/ja.json +29 -29
- package/dist/i18n/authorization/ko.json +29 -29
- package/dist/i18n/authorization/zh-CN.json +29 -29
- package/dist/i18n/authorization/zh-TW.json +29 -29
- package/dist/i18n/background/de.json +28 -28
- package/dist/i18n/background/en.json +28 -28
- package/dist/i18n/background/es.json +28 -28
- package/dist/i18n/background/fr.json +28 -28
- package/dist/i18n/background/it.json +28 -28
- package/dist/i18n/background/ja.json +28 -28
- package/dist/i18n/background/ko.json +28 -28
- package/dist/i18n/background/zh-CN.json +28 -28
- package/dist/i18n/background/zh-TW.json +27 -27
- package/dist/i18n/bridge/de.json +8 -8
- package/dist/i18n/bridge/en.json +8 -8
- package/dist/i18n/bridge/es.json +8 -8
- package/dist/i18n/bridge/fr.json +8 -8
- package/dist/i18n/bridge/it.json +8 -8
- package/dist/i18n/bridge/ja.json +8 -8
- package/dist/i18n/bridge/ko.json +8 -8
- package/dist/i18n/bridge/zh-CN.json +8 -8
- package/dist/i18n/bridge/zh-TW.json +8 -8
- package/dist/i18n/delegate/de.json +46 -46
- package/dist/i18n/delegate/en.json +46 -46
- package/dist/i18n/delegate/es.json +46 -46
- package/dist/i18n/delegate/fr.json +46 -46
- package/dist/i18n/delegate/it.json +46 -46
- package/dist/i18n/delegate/ja.json +46 -46
- package/dist/i18n/delegate/ko.json +46 -46
- package/dist/i18n/delegate/zh-CN.json +46 -46
- package/dist/i18n/delegate/zh-TW.json +46 -46
- package/dist/i18n/files/de.json +15 -15
- package/dist/i18n/files/en.json +15 -15
- package/dist/i18n/files/es.json +15 -15
- package/dist/i18n/files/fr.json +15 -15
- package/dist/i18n/files/it.json +15 -15
- package/dist/i18n/files/ja.json +15 -15
- package/dist/i18n/files/ko.json +15 -15
- package/dist/i18n/files/zh-CN.json +15 -15
- package/dist/i18n/files/zh-TW.json +15 -15
- package/dist/i18n/identity/de.json +12 -12
- package/dist/i18n/identity/en.json +12 -12
- package/dist/i18n/identity/es.json +12 -12
- package/dist/i18n/identity/fr.json +12 -12
- package/dist/i18n/identity/it.json +12 -12
- package/dist/i18n/identity/ja.json +12 -12
- package/dist/i18n/identity/ko.json +12 -12
- package/dist/i18n/identity/zh-CN.json +12 -12
- package/dist/i18n/identity/zh-TW.json +12 -12
- package/dist/i18n/portal/de.json +11 -11
- package/dist/i18n/portal/en.json +11 -11
- package/dist/i18n/portal/es.json +11 -11
- package/dist/i18n/portal/fr.json +11 -11
- package/dist/i18n/portal/it.json +11 -11
- package/dist/i18n/portal/ja.json +11 -11
- package/dist/i18n/portal/ko.json +11 -11
- package/dist/i18n/portal/zh-CN.json +11 -11
- package/dist/i18n/portal/zh-TW.json +11 -11
- package/dist/i18n/save/de.json +19 -19
- package/dist/i18n/save/en.json +19 -19
- package/dist/i18n/save/es.json +19 -19
- package/dist/i18n/save/fr.json +19 -19
- package/dist/i18n/save/it.json +19 -19
- package/dist/i18n/save/ja.json +19 -19
- package/dist/i18n/save/ko.json +19 -19
- package/dist/i18n/save/zh-CN.json +19 -19
- package/dist/i18n/save/zh-TW.json +19 -19
- package/dist/i18n/sharedfolder/de.json +9 -9
- package/dist/i18n/sharedfolder/en.json +9 -9
- package/dist/i18n/sharedfolder/es.json +9 -9
- package/dist/i18n/sharedfolder/fr.json +9 -9
- package/dist/i18n/sharedfolder/it.json +9 -9
- package/dist/i18n/sharedfolder/ja.json +9 -9
- package/dist/i18n/sharedfolder/ko.json +9 -9
- package/dist/i18n/sharedfolder/zh-CN.json +9 -9
- package/dist/i18n/sharedfolder/zh-TW.json +9 -9
- package/dist/i18n/shell/de.json +1 -1
- package/dist/i18n/shell/en.json +1 -1
- package/dist/i18n/shell/es.json +1 -1
- package/dist/i18n/shell/fr.json +1 -1
- package/dist/i18n/shell/it.json +1 -1
- package/dist/i18n/shell/ja.json +1 -1
- package/dist/i18n/shell/ko.json +1 -1
- package/dist/i18n/shell/zh-CN.json +1 -1
- package/dist/i18n/shell/zh-TW.json +1 -1
- package/dist/index.js +2981 -2975
- package/dist/src/i18n.d.ts +5 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/vue.js +971 -965
- package/executor-manifest.json +1 -1
- package/package.json +1 -1
package/dist/vue.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { appRefusal as na, appDenial as Fe, delegateCopy as Re, createDsmFileStation as
|
|
2
|
-
import { DEFAULT_REQUEST_TIMEOUT as
|
|
3
|
-
import { inject as Te, ref as b, computed as w, onBeforeUnmount as ge, Comment as
|
|
4
|
-
import { Timer as
|
|
5
|
-
import { SettingsSection as _e, Callout as Q, Button as I, SettingsRow as xe, Skeleton as Ne, Badge as
|
|
6
|
-
const Ye = /* @__PURE__ */ Symbol("executor-setup"),
|
|
7
|
-
function
|
|
8
|
-
return Te(
|
|
1
|
+
import { appRefusal as na, appDenial as Fe, delegateCopy as Re, createDsmFileStation as Qa, appLifecycle as Se, lifecycleRetryDelay as fa, joinSentences as Pa, lifecycleCopy as Ve, shellCopy as Ze, isFullPage as Ea, uiLocale as Ta, format as Je, nasCopy as Ae, nasErrorCopy as Aa, saveCopy as pa, saveError as je, createNasProvider as za, labelSeparator as ma, identityCopy as Ra, backgroundCopy as Za, createBackgroundPickerProvider as ja, backgroundErrorCopy as et, requestKey as da, lifecycleRefusal as at, errorCopy as tt, scopedPicker as lt, authorizationCopy as Ua, createEntryCheck as nt } from "./index.js";
|
|
2
|
+
import { DEFAULT_REQUEST_TIMEOUT as Zs, FILE_STATION_APP as js, LIFECYCLE_RETRY_MAX_MS as eo, LIFECYCLE_STARTING_RETRY_MAX_MS as ao, MAX_LAUNCH_ROUTE as to, activePage as lo, authorizationCatalogs as no, backgroundCatalogs as so, bridgeCatalogs as oo, bridgeErrorCopy as io, catalogs as uo, clientTimeout as ro, createBackgroundSaveFacade as co, createClient as vo, createDsmSession as fo, createFileTransfers as po, createPortalAccess as mo, createSharedFolderAccess as yo, createSharedFolderPermission as bo, createStandaloneContext as go, createStandaloneHost as ho, decodeResponse as ko, delegateCatalogs as _o, dsmLaunchURL as wo, encodeRequest as xo, fileStationPath as Co, followLaunchRoute as $o, identityCatalogs as So, launchRoute as Po, mergeCatalogs as Eo, nasCatalogs as To, openFileInFileStation as Ao, openFolderInFileStation as zo, portalCatalogs as Ro, portalMessages as Uo, protocolCodes as Io, protocolOps as Do, protocolSchemas as No, readDsmPorts as Lo, saveCatalogs as Vo, sharedFolderAccessFor as Bo, sharedFolderCatalogs as Fo, sharedFolderMessages as Oo, sharedFolderPermissionMessage as qo, shellCatalogs as Mo, shellPages as Ko, uiLocales as Ho } from "./index.js";
|
|
3
|
+
import { inject as Te, ref as b, computed as w, onBeforeUnmount as ge, Comment as st, Text as ot, Fragment as j, watch as qe, onMounted as we, defineComponent as de, openBlock as l, createElementBlock as _, createElementVNode as S, toDisplayString as o, createCommentVNode as y, renderList as pe, normalizeClass as De, createVNode as m, unref as e, createTextVNode as h, createBlock as g, renderSlot as he, withCtx as s, resolveDynamicComponent as Xe, normalizeProps as ea, mergeProps as ya, withModifiers as Me, isRef as aa, provide as Oe, useTemplateRef as Ge, useSlots as Ia, watchEffect as ha, guardReactiveProps as ka, createSlots as sa, Teleport as Da, markRaw as it, h as ut, shallowRef as rt, onUnmounted as Na, nextTick as dt } from "vue";
|
|
4
|
+
import { Timer as ct, Info as vt, ShieldCheck as La, ChevronRight as Va, LogOut as ft, ChevronLeft as pt, RotateCw as mt } from "@lucide/vue";
|
|
5
|
+
import { SettingsSection as _e, Callout as Q, Button as I, SettingsRow as xe, Skeleton as Ne, Badge as We, PathDisplay as Le, Form as Ke, FormItem as Pe, Select as ba, Input as ze, Dialog as Be, ensureDeviceViewport as yt, AppRoot as bt, ConfigProvider as gt, PageContent as _a, PageHeader as wa, AppLayout as ht, LoadingArea as Ba, AppSidebar as kt, AppSidebarUser as _t, IconButton as Qe, InfoTip as wt, FileTypeIcon as ua, Breadcrumb as xt, FilePicker as Ct, TreeView as $t, DataGrid as St, Link as ca, FormActions as oa, Card as xa, Checkbox as Pt, ListItem as Ca } from "@synopackageland/ui";
|
|
6
|
+
const Ye = /* @__PURE__ */ Symbol("executor-setup"), Fa = /* @__PURE__ */ Symbol("executor-preload");
|
|
7
|
+
function Et() {
|
|
8
|
+
return Te(Fa, b(!1));
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Oa() {
|
|
11
11
|
return Te(Ye, {
|
|
12
12
|
async status() {
|
|
13
13
|
return { state: "blocked", reason: "setup-unavailable" };
|
|
@@ -20,53 +20,53 @@ function Fa() {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Tt = ["password_rejected", "password_required", "password_confirm_failed"];
|
|
24
24
|
function ta(t) {
|
|
25
25
|
if (t.state !== "blocked") return;
|
|
26
|
-
if (t.code) return
|
|
26
|
+
if (t.code) return Tt.includes(t.code) ? t.code : void 0;
|
|
27
27
|
const c = t.reason ?? "";
|
|
28
28
|
if (/^dsm_3121\b/.test(c)) return "password_rejected";
|
|
29
29
|
if (/^\S+: administrator password confirmation failed\./.test(c)) return "password_confirm_failed";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function At(t) {
|
|
32
32
|
return /: the executor status request failed\.$/.test(t ?? "");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Is(t) {
|
|
35
35
|
const c = b(), n = w(() => c.value ? { code: c.value, ...na({ code: c.value }, t.locale, t.displayName) } : void 0), a = b(!1), u = b(!1), i = b(), r = b("");
|
|
36
|
-
let f = !1,
|
|
36
|
+
let f = !1, p = 0, d, v;
|
|
37
37
|
function x() {
|
|
38
38
|
clearTimeout(d), clearTimeout(v);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
|
|
40
|
+
function E(B = "") {
|
|
41
|
+
p++, x(), i.value = void 0, r.value = B;
|
|
42
42
|
}
|
|
43
43
|
function k(B) {
|
|
44
44
|
const K = Fe(B);
|
|
45
|
-
return f || !K ? !1 : (
|
|
45
|
+
return f || !K ? !1 : (E(), c.value = K, !0);
|
|
46
46
|
}
|
|
47
47
|
async function $(B, K) {
|
|
48
|
-
const D =
|
|
48
|
+
const D = p;
|
|
49
49
|
try {
|
|
50
50
|
return await t.call(B, K);
|
|
51
|
-
} catch (
|
|
52
|
-
throw D ===
|
|
51
|
+
} catch (P) {
|
|
52
|
+
throw D === p && k(P), P;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function A(B) {
|
|
56
56
|
if (f) return;
|
|
57
57
|
const K = Date.parse(B.expiresAt) - Date.now();
|
|
58
58
|
if (!Number.isFinite(K) || K <= 0) {
|
|
59
|
-
|
|
59
|
+
E("expired");
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
x(), c.value = void 0, i.value = B, r.value = "", d = setTimeout(() =>
|
|
63
|
-
const D =
|
|
62
|
+
x(), c.value = void 0, i.value = B, r.value = "", d = setTimeout(() => E("expired"), K);
|
|
63
|
+
const D = p;
|
|
64
64
|
v = setTimeout(async () => {
|
|
65
65
|
try {
|
|
66
|
-
const
|
|
67
|
-
!f &&
|
|
68
|
-
} catch (
|
|
69
|
-
!f &&
|
|
66
|
+
const P = await $("identity.session");
|
|
67
|
+
!f && p === D && A(P);
|
|
68
|
+
} catch (P) {
|
|
69
|
+
!f && p === D && !k(P) && E("expired");
|
|
70
70
|
}
|
|
71
71
|
}, Math.min(6e4, K));
|
|
72
72
|
}
|
|
@@ -76,9 +76,9 @@ function Us(t) {
|
|
|
76
76
|
if (f) return;
|
|
77
77
|
if (c.value = void 0, a.value = B.enabled === !0, a.value)
|
|
78
78
|
try {
|
|
79
|
-
|
|
79
|
+
A(await $("identity.session", { bootstrap: !0 }));
|
|
80
80
|
} catch (K) {
|
|
81
|
-
!f && !Fe(K) &&
|
|
81
|
+
!f && !Fe(K) && E();
|
|
82
82
|
}
|
|
83
83
|
} catch (B) {
|
|
84
84
|
if (f) return;
|
|
@@ -89,44 +89,44 @@ function Us(t) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
async function T(B, K) {
|
|
92
|
-
const D =
|
|
92
|
+
const D = p;
|
|
93
93
|
try {
|
|
94
|
-
const
|
|
95
|
-
if (f || a.value && D !==
|
|
96
|
-
return
|
|
97
|
-
} catch (
|
|
98
|
-
D ===
|
|
99
|
-
const M =
|
|
100
|
-
throw !f && D ===
|
|
94
|
+
const P = await t.call(B, K);
|
|
95
|
+
if (f || a.value && D !== p) throw { code: "session_required" };
|
|
96
|
+
return P;
|
|
97
|
+
} catch (P) {
|
|
98
|
+
D === p && k(P);
|
|
99
|
+
const M = P?.code;
|
|
100
|
+
throw !f && D === p && a.value && ["session_required", "session_revalidation_required"].includes(M || "") && E(M === "session_revalidation_required" ? "revalidate" : "expired"), P;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
async function
|
|
103
|
+
async function z(B, K) {
|
|
104
104
|
if (!t.batch) throw { code: "unsupported", message: "batch client unavailable" };
|
|
105
|
-
const D =
|
|
105
|
+
const D = p;
|
|
106
106
|
try {
|
|
107
|
-
const
|
|
108
|
-
if (f || a.value && D !==
|
|
109
|
-
for (const M of
|
|
110
|
-
return
|
|
111
|
-
} catch (
|
|
112
|
-
throw D ===
|
|
107
|
+
const P = await t.batch(B, K);
|
|
108
|
+
if (f || a.value && D !== p) throw { code: "session_required" };
|
|
109
|
+
for (const M of P) M.success || (D === p && k(M.error), D === p && a.value && ["session_required", "session_revalidation_required"].includes(M.error.code) && E(M.error.code === "session_revalidation_required" ? "revalidate" : "expired"));
|
|
110
|
+
return P;
|
|
111
|
+
} catch (P) {
|
|
112
|
+
throw D === p && k(P), P;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
async function ae(B, K, D) {
|
|
116
|
-
const
|
|
117
|
-
f || (
|
|
116
|
+
const P = await $("identity.login", { account: B, password: K, otp: D });
|
|
117
|
+
f || (p++, A(P));
|
|
118
118
|
}
|
|
119
119
|
async function F() {
|
|
120
120
|
const B = await $("identity.session", { bootstrap: !0 });
|
|
121
|
-
f || (
|
|
121
|
+
f || (p++, A(B));
|
|
122
122
|
}
|
|
123
123
|
async function G() {
|
|
124
|
-
await $("identity.logout"), f ||
|
|
124
|
+
await $("identity.logout"), f || E();
|
|
125
125
|
}
|
|
126
126
|
function X() {
|
|
127
|
-
f = !0,
|
|
127
|
+
f = !0, E();
|
|
128
128
|
}
|
|
129
|
-
return { enabled: a, ready: u, subject: i, notice: r, denied: n, start: C, call: T, batch:
|
|
129
|
+
return { enabled: a, ready: u, subject: i, notice: r, denied: n, start: C, call: T, batch: z, login: ae, bootstrap: F, logout: G, dispose: X };
|
|
130
130
|
}
|
|
131
131
|
function zt() {
|
|
132
132
|
const t = b(!1), c = b();
|
|
@@ -136,35 +136,35 @@ function zt() {
|
|
|
136
136
|
}
|
|
137
137
|
async function r(f) {
|
|
138
138
|
if (n || t.value) return;
|
|
139
|
-
const
|
|
139
|
+
const p = ++a, d = new AbortController();
|
|
140
140
|
u = d, t.value = !0, c.value = void 0;
|
|
141
141
|
try {
|
|
142
142
|
const v = await f(d.signal);
|
|
143
|
-
return !n &&
|
|
143
|
+
return !n && p === a ? v : void 0;
|
|
144
144
|
} catch (v) {
|
|
145
|
-
!n &&
|
|
145
|
+
!n && p === a && (c.value = v);
|
|
146
146
|
return;
|
|
147
147
|
} finally {
|
|
148
|
-
!n &&
|
|
148
|
+
!n && p === a && (t.value = !1, u = void 0);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
return ge(() => {
|
|
152
152
|
n = !0, i();
|
|
153
153
|
}), { busy: t, error: c, run: r, cancel: i };
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
function
|
|
155
|
+
const $a = ".sds-standalone-main-window";
|
|
156
|
+
function Rt(t) {
|
|
157
157
|
const c = { brand: !1, user: !1 };
|
|
158
158
|
try {
|
|
159
|
-
const n = t.closest(
|
|
159
|
+
const n = t.closest($a);
|
|
160
160
|
if (!t.isConnected || !n || n.classList.contains("sds-standalone-main-window--no-banner")) return c;
|
|
161
161
|
const a = (u) => Array.from(n.querySelectorAll(u)).some((i) => {
|
|
162
|
-
if (t.contains(i) || i.closest(
|
|
162
|
+
if (t.contains(i) || i.closest($a) !== n || !i.textContent?.trim()) return !1;
|
|
163
163
|
const r = i.ownerDocument.defaultView;
|
|
164
164
|
if (!r) return !1;
|
|
165
|
-
for (let
|
|
166
|
-
const d = r.getComputedStyle(
|
|
167
|
-
if (
|
|
165
|
+
for (let p = i; p; p = p.parentElement) {
|
|
166
|
+
const d = r.getComputedStyle(p);
|
|
167
|
+
if (p.hidden || d.display === "none" || d.visibility === "hidden" || d.visibility === "collapse" || d.opacity === "0") return !1;
|
|
168
168
|
}
|
|
169
169
|
const f = i.getBoundingClientRect();
|
|
170
170
|
return f.width > 0 && f.height > 0;
|
|
@@ -177,20 +177,20 @@ function At(t) {
|
|
|
177
177
|
return c;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function qa(t) {
|
|
181
181
|
return Array.isArray(t) && t.some((c) => {
|
|
182
182
|
const n = c;
|
|
183
|
-
return n.type ===
|
|
183
|
+
return n.type === st ? !1 : n.type === ot ? String(n.children).trim() !== "" : n.type === j ? qa(n.children) : !0;
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Ut(t) {
|
|
187
187
|
return Array.from(t.childNodes).some((c) => c.nodeType === Node.ELEMENT_NODE || c.nodeType === Node.TEXT_NODE && c.textContent.trim() !== "");
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
return t.map((n) => typeof n == "string" ? { id: n, title: c[n], icon:
|
|
189
|
+
const It = { status: vt, background: ct };
|
|
190
|
+
function Dt(t, c) {
|
|
191
|
+
return t.map((n) => typeof n == "string" ? { id: n, title: c[n], icon: It[n] } : n);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Nt(t) {
|
|
194
194
|
const c = /* @__PURE__ */ new Map(), n = { items: [] };
|
|
195
195
|
for (const a of t) {
|
|
196
196
|
if (a.hidden) continue;
|
|
@@ -199,39 +199,39 @@ function Dt(t) {
|
|
|
199
199
|
}
|
|
200
200
|
return n.items.length ? [...c.values(), n] : [...c.values()];
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
-
const n =
|
|
202
|
+
const Lt = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Vt = 6e4, Bt = 1e3;
|
|
203
|
+
function Ma(t, c) {
|
|
204
|
+
const n = Oa(), a = w(() => Re(t.locale)), u = b(), i = b(""), r = b(!1), f = b(!1), p = b(!1), d = b(), v = b(!1), x = w(() => v.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[Lt[d.value.confirm]] : "");
|
|
205
205
|
qe(i, () => {
|
|
206
206
|
v.value = !1;
|
|
207
207
|
});
|
|
208
|
-
const
|
|
208
|
+
const E = b(), k = b(""), $ = b([]), A = Qa(), C = w(() => E.value?.scope_mode === "install-selected"), T = w(() => !!E.value?.scope_mode), z = w(() => [{ label: a.value.homeScope, value: "home" }, ...$.value]), ae = w(() => !C.value || !!k.value && z.value.some((N) => N.value === k.value)), F = w(() => C.value && !E.value?.selection);
|
|
209
209
|
let G = !1;
|
|
210
210
|
async function X(N) {
|
|
211
211
|
const le = N ?? await n.status();
|
|
212
212
|
if (G || (u.value = le, !t.ctx || Se(le))) return;
|
|
213
213
|
const O = await t.ctx.call("delegate.status");
|
|
214
|
-
if (G || (
|
|
215
|
-
const
|
|
214
|
+
if (G || (E.value = O, O.scope_mode !== "install-selected")) return;
|
|
215
|
+
const Z = [];
|
|
216
216
|
let ie = 0;
|
|
217
217
|
for (let ce = 0; ce < 128; ce++) {
|
|
218
|
-
const
|
|
218
|
+
const J = await A.shares(ie, new AbortController().signal);
|
|
219
219
|
if (G) return;
|
|
220
|
-
if (!Array.isArray(
|
|
221
|
-
for (const H of
|
|
222
|
-
H.isdir && H.path === "/" + H.name && !["home", "homes"].includes(H.name.toLowerCase()) &&
|
|
223
|
-
if (ie +=
|
|
220
|
+
if (!Array.isArray(J.shares) || !Number.isSafeInteger(J.total) || J.total < 0 || !J.shares.length && ie < J.total) throw { code: "EXECUTOR_PROTOCOL" };
|
|
221
|
+
for (const H of J.shares)
|
|
222
|
+
H.isdir && H.path === "/" + H.name && !["home", "homes"].includes(H.name.toLowerCase()) && Z.push({ label: H.name, value: "shared:" + H.name });
|
|
223
|
+
if (ie += J.shares.length, ie >= J.total) break;
|
|
224
224
|
if (ce === 127) throw { code: "EXECUTOR_PROTOCOL" };
|
|
225
225
|
}
|
|
226
|
-
$.value =
|
|
226
|
+
$.value = Z, k.value = O.selection?.scope ?? O.preselection ?? "";
|
|
227
227
|
}
|
|
228
228
|
async function B(N) {
|
|
229
229
|
if (!(!t.admin || r.value)) {
|
|
230
|
-
r.value = !0,
|
|
230
|
+
r.value = !0, p.value = !1, d.value = void 0;
|
|
231
231
|
try {
|
|
232
232
|
await X(N);
|
|
233
233
|
} catch {
|
|
234
|
-
G || (
|
|
234
|
+
G || (p.value = !0);
|
|
235
235
|
} finally {
|
|
236
236
|
G || (r.value = !1);
|
|
237
237
|
}
|
|
@@ -239,18 +239,18 @@ function qa(t, c) {
|
|
|
239
239
|
}
|
|
240
240
|
const K = () => B();
|
|
241
241
|
async function D() {
|
|
242
|
-
if (!t.admin || r.value || !i.value || !ae.value ||
|
|
243
|
-
r.value = !0,
|
|
242
|
+
if (!t.admin || r.value || !i.value || !ae.value || p.value) return;
|
|
243
|
+
r.value = !0, p.value = !1, d.value = void 0;
|
|
244
244
|
const N = i.value, le = k.value;
|
|
245
245
|
i.value = "", f.value = !0;
|
|
246
246
|
try {
|
|
247
247
|
let O = C.value ? await n.authorize(N, k.value) : await n.authorize(N);
|
|
248
|
-
const
|
|
249
|
-
if (
|
|
250
|
-
G || (d.value = { confirm:
|
|
248
|
+
const Z = ta(O);
|
|
249
|
+
if (Z) {
|
|
250
|
+
G || (d.value = { confirm: Z }, i.value = N);
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
|
-
if (await X(O), !G && C.value && O.state === "ready" && F.value && (O = await n.authorize(N, k.value), await X(O)), O.state !== "ready" && O.requested && await M(O.requested) && (O = await n.status(), await X(O)), O.state === "ready" && C.value &&
|
|
253
|
+
if (await X(O), !G && C.value && O.state === "ready" && F.value && (O = await n.authorize(N, k.value), await X(O)), O.state !== "ready" && O.requested && await M(O.requested) && (O = await n.status(), await X(O)), O.state === "ready" && C.value && E.value?.selection?.scope !== le) {
|
|
254
254
|
G || (d.value = { reason: "", code: "selection_failed" });
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
@@ -260,16 +260,16 @@ function qa(t, c) {
|
|
|
260
260
|
}
|
|
261
261
|
G || await c();
|
|
262
262
|
} catch {
|
|
263
|
-
G || (
|
|
263
|
+
G || (p.value = !0);
|
|
264
264
|
} finally {
|
|
265
265
|
G || (r.value = !1, f.value = !1);
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function P() {
|
|
269
269
|
return !i.value && !r.value ? (v.value = !0, Promise.resolve()) : D();
|
|
270
270
|
}
|
|
271
271
|
async function M(N) {
|
|
272
|
-
for (const le = Date.now() +
|
|
272
|
+
for (const le = Date.now() + Vt; !G; await new Promise((O) => setTimeout(O, Bt))) {
|
|
273
273
|
const O = (await t.ctx?.call("delegate.status").catch(() => {
|
|
274
274
|
}))?.selection;
|
|
275
275
|
if (O?.scope === N.scope && O.generation > N.generation) return !0;
|
|
@@ -277,14 +277,14 @@ function qa(t, c) {
|
|
|
277
277
|
}
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
280
|
-
const se = (N) => N?.code === "executor_starting" ? a.value.statusStarting :
|
|
280
|
+
const se = (N) => N?.code === "executor_starting" ? a.value.statusStarting : At(N?.reason) ? a.value.statusUnreachable : void 0;
|
|
281
281
|
return we(() => {
|
|
282
282
|
n.subscribe?.((N) => {
|
|
283
283
|
!G && !ta(N) && (u.value = N);
|
|
284
284
|
}), B(t.initial);
|
|
285
285
|
}), ge(() => {
|
|
286
286
|
G = !0, i.value = "";
|
|
287
|
-
}), { status: u, password: i, busy: r, confirming: f, error:
|
|
287
|
+
}), { status: u, password: i, busy: r, confirming: f, error: p, failure: d, passwordError: x, scope: E, chosen: k, options: z, dynamic: C, files: T, webapiProfiles: n.webapiProfiles, canConfirm: ae, needsScope: F, refresh: K, authorize: D, submit: P, explain: se };
|
|
288
288
|
}
|
|
289
289
|
function He(t, c) {
|
|
290
290
|
let n = !1, a, u = 0;
|
|
@@ -301,7 +301,7 @@ function He(t, c) {
|
|
|
301
301
|
n = !0, clearTimeout(a);
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const Ft = ["aria-label"], Ot = { class: "executor-upgrade-title" }, qt = { key: 0 }, Mt = { key: 1 }, Kt = { key: 2 }, Ht = { key: 3 }, Gt = { key: 1 }, Xt = /* @__PURE__ */ de({
|
|
305
305
|
__name: "ExecutorUpgrade",
|
|
306
306
|
props: {
|
|
307
307
|
status: {},
|
|
@@ -309,20 +309,20 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
309
309
|
},
|
|
310
310
|
setup(t) {
|
|
311
311
|
const c = t, n = w(() => Re(c.locale)), a = w(() => c.status?.approval), u = w(() => c.status?.state === "needs-admin-approval" && (c.status.code === "task_outdated" || !!a.value)), i = w(() => a.value?.permissions === "unchanged" ? n.value.upgradeUnchanged : a.value?.permissions === "expanded" ? n.value.upgradeExpanded : n.value.upgradeReview), r = (f) => f?.slice(0, 12) ?? "—";
|
|
312
|
-
return (f,
|
|
312
|
+
return (f, p) => u.value ? (l(), _("section", {
|
|
313
313
|
key: 0,
|
|
314
314
|
class: "executor-upgrade",
|
|
315
315
|
"data-approval-diff": "",
|
|
316
316
|
"aria-label": n.value.upgradeTitle
|
|
317
317
|
}, [
|
|
318
|
-
S("p",
|
|
319
|
-
a.value ? (l(), _(
|
|
320
|
-
a.value.root_programs.length ? (l(), _("p",
|
|
321
|
-
a.value.task_template_changed ? (l(), _("p",
|
|
322
|
-
a.value.old_policy_digest !== a.value.new_policy_digest && !a.value.root_programs.length ? (l(), _("p",
|
|
318
|
+
S("p", Ot, o(n.value.upgradeTitle), 1),
|
|
319
|
+
a.value ? (l(), _(j, { key: 0 }, [
|
|
320
|
+
a.value.root_programs.length ? (l(), _("p", qt, o(n.value.upgradePrograms), 1)) : y("", !0),
|
|
321
|
+
a.value.task_template_changed ? (l(), _("p", Mt, o(n.value.upgradeTasks), 1)) : y("", !0),
|
|
322
|
+
a.value.old_policy_digest !== a.value.new_policy_digest && !a.value.root_programs.length ? (l(), _("p", Kt, o(n.value.upgradePolicy), 1)) : y("", !0),
|
|
323
323
|
S("p", null, o(i.value), 1),
|
|
324
324
|
S("dl", null, [
|
|
325
|
-
(l(!0), _(
|
|
325
|
+
(l(!0), _(j, null, pe(a.value.root_programs, (d) => (l(), _(j, {
|
|
326
326
|
key: d.name
|
|
327
327
|
}, [
|
|
328
328
|
S("dt", null, o(d.name), 1),
|
|
@@ -335,10 +335,10 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
335
335
|
S("code", null, o(r(a.value.old_policy_digest)) + " → " + o(r(a.value.new_policy_digest)), 1)
|
|
336
336
|
])
|
|
337
337
|
]),
|
|
338
|
-
a.value.policy_changes.length ? (l(), _("details",
|
|
338
|
+
a.value.policy_changes.length ? (l(), _("details", Ht, [
|
|
339
339
|
S("summary", null, o(n.value.upgradeChanges), 1),
|
|
340
340
|
S("ul", null, [
|
|
341
|
-
(l(!0), _(
|
|
341
|
+
(l(!0), _(j, null, pe(a.value.policy_changes, (d) => (l(), _("li", {
|
|
342
342
|
key: d.path
|
|
343
343
|
}, [
|
|
344
344
|
S("code", null, o(d.path), 1),
|
|
@@ -346,38 +346,38 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
346
346
|
]))), 128))
|
|
347
347
|
])
|
|
348
348
|
])) : y("", !0)
|
|
349
|
-
], 64)) : (l(), _("p",
|
|
350
|
-
], 8,
|
|
349
|
+
], 64)) : (l(), _("p", Gt, o(n.value.upgradeUnknown), 1))
|
|
350
|
+
], 8, Ft)) : y("", !0);
|
|
351
351
|
}
|
|
352
352
|
}), ve = (t, c) => {
|
|
353
353
|
const n = t.__vccOpts || t;
|
|
354
354
|
for (const [a, u] of c)
|
|
355
355
|
n[a] = u;
|
|
356
356
|
return n;
|
|
357
|
-
},
|
|
357
|
+
}, Jt = /* @__PURE__ */ ve(Xt, [["__scopeId", "data-v-aa18745e"]]), Wt = ["data-audience"], Yt = {
|
|
358
358
|
class: "executor-consent-icon",
|
|
359
359
|
"aria-hidden": "true"
|
|
360
|
-
},
|
|
360
|
+
}, Qt = { class: "executor-consent-body" }, Zt = { class: "executor-consent-head" }, jt = {
|
|
361
361
|
class: "executor-consent-title",
|
|
362
362
|
"data-consent-title": ""
|
|
363
|
-
},
|
|
363
|
+
}, el = {
|
|
364
364
|
class: "executor-consent-lead",
|
|
365
365
|
"data-consent-lead": ""
|
|
366
|
-
},
|
|
366
|
+
}, al = {
|
|
367
367
|
key: 0,
|
|
368
368
|
class: "executor-consent-lead executor-consent-ask",
|
|
369
369
|
"data-consent-ask": ""
|
|
370
|
-
},
|
|
370
|
+
}, tl = {
|
|
371
371
|
key: 0,
|
|
372
372
|
"data-webapi-profiles": ""
|
|
373
|
-
},
|
|
373
|
+
}, ll = {
|
|
374
374
|
key: 0,
|
|
375
375
|
"data-webapi-raw": ""
|
|
376
|
-
},
|
|
376
|
+
}, nl = {
|
|
377
377
|
key: 2,
|
|
378
378
|
class: "executor-consent-more",
|
|
379
379
|
"data-consent-points": ""
|
|
380
|
-
},
|
|
380
|
+
}, sl = /* @__PURE__ */ de({
|
|
381
381
|
__name: "ExecutorConsent",
|
|
382
382
|
props: {
|
|
383
383
|
admin: { type: Boolean },
|
|
@@ -389,46 +389,46 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
389
389
|
webapiProfiles: {}
|
|
390
390
|
},
|
|
391
391
|
setup(t) {
|
|
392
|
-
const c = t, n = w(() => c.status?.code === "task_outdated" || !!c.status?.approval), a = w(() => Re(c.locale)), u = w(() =>
|
|
393
|
-
return (
|
|
392
|
+
const c = t, n = w(() => c.status?.code === "task_outdated" || !!c.status?.approval), a = w(() => Re(c.locale)), u = w(() => Pa([a.value.consentWhy, c.purpose || (c.files ? a.value.consentPurposeFiles : a.value.consentPurpose)], c.locale ?? "en")), i = w(() => [a.value.pointPassword, a.value.pointLimited, a.value.pointUpdate, a.value.pointRevoke]);
|
|
393
|
+
return (r, f) => (l(), _("div", {
|
|
394
394
|
class: De(["executor-consent", `executor-consent-${t.layout ?? "inline"}`]),
|
|
395
395
|
"data-executor-consent": "",
|
|
396
396
|
"data-audience": t.admin ? "admin" : "user"
|
|
397
397
|
}, [
|
|
398
|
-
S("span",
|
|
399
|
-
|
|
398
|
+
S("span", Yt, [
|
|
399
|
+
m(e(La), {
|
|
400
400
|
size: t.layout === "page" ? 24 : 18
|
|
401
401
|
}, null, 8, ["size"])
|
|
402
402
|
]),
|
|
403
|
-
S("div",
|
|
404
|
-
S("div",
|
|
403
|
+
S("div", Qt, [
|
|
404
|
+
S("div", Zt, [
|
|
405
405
|
S("p", jt, o(t.admin ? n.value ? a.value.upgradeConsentTitle : a.value.consentTitle : a.value.consentTitleUser), 1),
|
|
406
|
-
S("p",
|
|
407
|
-
t.admin ? y("", !0) : (l(), _("p",
|
|
406
|
+
S("p", el, o(u.value), 1),
|
|
407
|
+
t.admin ? y("", !0) : (l(), _("p", al, o(a.value.consentAsk), 1))
|
|
408
408
|
]),
|
|
409
|
-
t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), _("ul",
|
|
410
|
-
(l(!0), _(
|
|
411
|
-
S("strong", null, o(
|
|
412
|
-
h(": " + o(
|
|
409
|
+
t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), _("ul", tl, [
|
|
410
|
+
(l(!0), _(j, null, pe(t.webapiProfiles, (p, d) => (l(), _("li", { key: d }, [
|
|
411
|
+
S("strong", null, o(d), 1),
|
|
412
|
+
h(": " + o(p.purpose) + " ", 1),
|
|
413
413
|
S("details", null, [
|
|
414
414
|
S("summary", null, o(a.value.details), 1),
|
|
415
|
-
(l(!0), _(
|
|
416
|
-
S("code", null, o(
|
|
417
|
-
(l(!0), _(
|
|
415
|
+
(l(!0), _(j, null, pe(p.apis, (v, x) => (l(), _("div", { key: x }, [
|
|
416
|
+
S("code", null, o(x), 1),
|
|
417
|
+
(l(!0), _(j, null, pe(v, (E, k) => (l(), _("div", { key: k }, o(k) + " (" + o(E.join(", ")) + ")", 1))), 128))
|
|
418
418
|
]))), 128)),
|
|
419
|
-
|
|
419
|
+
p.raw_max_bytes ? (l(), _("code", ll, o(a.value.rawLimit) + ": " + o(p.raw_max_bytes), 1)) : y("", !0)
|
|
420
420
|
])
|
|
421
421
|
]))), 128))
|
|
422
422
|
])) : y("", !0),
|
|
423
|
-
t.admin ? (l(), g(
|
|
423
|
+
t.admin ? (l(), g(Jt, {
|
|
424
424
|
key: 1,
|
|
425
425
|
status: t.status,
|
|
426
426
|
locale: t.locale
|
|
427
427
|
}, null, 8, ["status", "locale"])) : y("", !0),
|
|
428
|
-
he(
|
|
429
|
-
t.admin ? (l(), _("details",
|
|
428
|
+
he(r.$slots, "default", {}, void 0, !0),
|
|
429
|
+
t.admin ? (l(), _("details", nl, [
|
|
430
430
|
S("summary", null, [
|
|
431
|
-
|
|
431
|
+
m(e(Va), {
|
|
432
432
|
class: "executor-consent-chevron",
|
|
433
433
|
size: 14,
|
|
434
434
|
"aria-hidden": "true"
|
|
@@ -436,22 +436,22 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
436
436
|
h(o(a.value.consentDetails), 1)
|
|
437
437
|
]),
|
|
438
438
|
S("ul", null, [
|
|
439
|
-
(l(!0), _(
|
|
439
|
+
(l(!0), _(j, null, pe(i.value, (p) => (l(), _("li", { key: p }, o(p), 1))), 128))
|
|
440
440
|
])
|
|
441
441
|
])) : y("", !0)
|
|
442
442
|
])
|
|
443
443
|
], 10, Wt));
|
|
444
444
|
}
|
|
445
|
-
}), la = /* @__PURE__ */ ve(
|
|
445
|
+
}), la = /* @__PURE__ */ ve(sl, [["__scopeId", "data-v-1ad5cefb"]]), ol = { class: "executor-alert" }, il = {
|
|
446
446
|
key: 0,
|
|
447
447
|
class: "executor-reason"
|
|
448
|
-
},
|
|
448
|
+
}, ul = {
|
|
449
449
|
key: 0,
|
|
450
450
|
class: "executor-summary"
|
|
451
|
-
},
|
|
451
|
+
}, rl = {
|
|
452
452
|
key: 1,
|
|
453
453
|
class: "executor-summary"
|
|
454
|
-
},
|
|
454
|
+
}, dl = ["data-executor-status"], cl = { class: "executor-reason" }, vl = /* @__PURE__ */ de({
|
|
455
455
|
__name: "ExecutorSettings",
|
|
456
456
|
props: {
|
|
457
457
|
admin: { type: Boolean },
|
|
@@ -464,15 +464,15 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
464
464
|
},
|
|
465
465
|
emits: ["confirmed"],
|
|
466
466
|
setup(t, { expose: c, emit: n }) {
|
|
467
|
-
const a = t, u = n, i = w(() => Re(a.locale)), { status: r, password: f, busy:
|
|
468
|
-
He(() =>
|
|
469
|
-
const M = w(() => !
|
|
467
|
+
const a = t, u = n, i = w(() => Re(a.locale)), { status: r, password: f, busy: p, confirming: d, error: v, failure: x, passwordError: E, scope: k, chosen: $, options: A, dynamic: C, files: T, webapiProfiles: z, canConfirm: ae, needsScope: F, refresh: G, submit: X, explain: B } = Ma(a, () => u("confirmed")), K = w(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), D = w(() => ({ ready: { tone: "success", text: i.value.statusReady }, blocked: { tone: "danger", text: i.value.statusBlocked }, confirming: { tone: "info", text: i.value.statusConfirming } })[K.value ?? "confirming"]), P = w(() => d.value ? void 0 : Se(r.value));
|
|
468
|
+
He(() => P.value, G);
|
|
469
|
+
const M = w(() => !P.value && (r.value?.state === "needs-admin-approval" || F.value)), se = w(() => M.value || !!r.value?.retry);
|
|
470
470
|
return c({ refresh: G }), (N, le) => t.admin ? (l(), g(e(_e), {
|
|
471
471
|
key: 0,
|
|
472
472
|
title: t.title ?? i.value.setupTitle,
|
|
473
473
|
description: M.value ? void 0 : e(T) ? i.value.setupHelpFiles : i.value.setupHelp,
|
|
474
474
|
collapsible: !1,
|
|
475
|
-
"aria-busy": e(
|
|
475
|
+
"aria-busy": e(p) || !e(r) && !e(d) && !e(v)
|
|
476
476
|
}, {
|
|
477
477
|
default: s(() => [
|
|
478
478
|
e(v) ? (l(), g(e(Q), {
|
|
@@ -481,12 +481,12 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
481
481
|
role: "alert"
|
|
482
482
|
}, {
|
|
483
483
|
default: s(() => [
|
|
484
|
-
S("span",
|
|
484
|
+
S("span", ol, [
|
|
485
485
|
S("span", null, o(i.value.setupError), 1),
|
|
486
|
-
|
|
486
|
+
m(e(I), {
|
|
487
487
|
variant: "secondary",
|
|
488
488
|
size: "sm",
|
|
489
|
-
disabled: e(
|
|
489
|
+
disabled: e(p),
|
|
490
490
|
onClick: e(G)
|
|
491
491
|
}, {
|
|
492
492
|
default: s(() => [
|
|
@@ -504,27 +504,27 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
504
504
|
}, {
|
|
505
505
|
default: s(() => [
|
|
506
506
|
h(o(e(x).code === "session_ended" ? i.value.session : e(B)(e(x)) ?? i.value.setupError), 1),
|
|
507
|
-
e(x).reason ? (l(), _("span",
|
|
507
|
+
e(x).reason ? (l(), _("span", il, o(e(x).reason), 1)) : y("", !0)
|
|
508
508
|
]),
|
|
509
509
|
_: 1
|
|
510
510
|
})) : y("", !0),
|
|
511
|
-
|
|
511
|
+
P.value ? (l(), g(e(Q), {
|
|
512
512
|
key: 2,
|
|
513
513
|
tone: "info",
|
|
514
514
|
role: "status"
|
|
515
515
|
}, {
|
|
516
516
|
default: s(() => [
|
|
517
|
-
h(o(e(Ve)(
|
|
517
|
+
h(o(e(Ve)(P.value, t.locale)), 1)
|
|
518
518
|
]),
|
|
519
519
|
_: 1
|
|
520
|
-
})) : (l(), _(
|
|
521
|
-
!e(r) && !e(d) && !e(v) ? (l(), _("div",
|
|
522
|
-
|
|
520
|
+
})) : (l(), _(j, { key: 3 }, [
|
|
521
|
+
!e(r) && !e(d) && !e(v) ? (l(), _("div", ul, [
|
|
522
|
+
m(e(xe), {
|
|
523
523
|
label: i.value.status,
|
|
524
524
|
"data-placeholder-row": ""
|
|
525
525
|
}, {
|
|
526
526
|
default: s(() => [
|
|
527
|
-
|
|
527
|
+
m(e(Ne), {
|
|
528
528
|
width: "5rem",
|
|
529
529
|
height: "20px"
|
|
530
530
|
})
|
|
@@ -532,8 +532,8 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
532
532
|
_: 1
|
|
533
533
|
}, 8, ["label"])
|
|
534
534
|
])) : y("", !0),
|
|
535
|
-
(e(r) || e(d)) && !M.value ? (l(), _("div",
|
|
536
|
-
|
|
535
|
+
(e(r) || e(d)) && !M.value ? (l(), _("div", rl, [
|
|
536
|
+
m(e(xe), {
|
|
537
537
|
label: i.value.status
|
|
538
538
|
}, {
|
|
539
539
|
default: s(() => [
|
|
@@ -541,7 +541,7 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
541
541
|
role: "status",
|
|
542
542
|
"data-executor-status": K.value
|
|
543
543
|
}, [
|
|
544
|
-
|
|
544
|
+
m(e(We), {
|
|
545
545
|
tone: D.value.tone
|
|
546
546
|
}, {
|
|
547
547
|
default: s(() => [
|
|
@@ -549,7 +549,7 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
551
|
}, 8, ["tone"])
|
|
552
|
-
], 8,
|
|
552
|
+
], 8, dl)
|
|
553
553
|
]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["label"]),
|
|
@@ -558,10 +558,10 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
558
558
|
label: i.value.details
|
|
559
559
|
}, {
|
|
560
560
|
default: s(() => [
|
|
561
|
-
e(B)(e(r)) ? (l(), _(
|
|
561
|
+
e(B)(e(r)) ? (l(), _(j, { key: 0 }, [
|
|
562
562
|
h(o(e(B)(e(r))), 1),
|
|
563
|
-
S("span",
|
|
564
|
-
], 64)) : (l(), _(
|
|
563
|
+
S("span", cl, o(e(r).reason), 1)
|
|
564
|
+
], 64)) : (l(), _(j, { key: 1 }, [
|
|
565
565
|
h(o(e(r).reason), 1)
|
|
566
566
|
], 64))
|
|
567
567
|
]),
|
|
@@ -572,7 +572,7 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
572
572
|
label: i.value.protectedScope
|
|
573
573
|
}, {
|
|
574
574
|
default: s(() => [
|
|
575
|
-
|
|
575
|
+
m(e(Le), {
|
|
576
576
|
path: e(k).selection.root
|
|
577
577
|
}, null, 8, ["path"])
|
|
578
578
|
]),
|
|
@@ -597,9 +597,9 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
597
597
|
]),
|
|
598
598
|
_: 1
|
|
599
599
|
})) : y("", !0),
|
|
600
|
-
se.value ? (l(), g(Xe(M.value ? la : "div"), ea(
|
|
600
|
+
se.value ? (l(), g(Xe(M.value ? la : "div"), ea(ya({ key: 4 }, M.value ? { admin: !0, locale: t.locale, files: e(T), purpose: t.purpose, layout: t.layout, webapiProfiles: e(z), status: e(r) } : {})), {
|
|
601
601
|
default: s(() => [
|
|
602
|
-
|
|
602
|
+
m(e(Ke), {
|
|
603
603
|
direction: "vertical",
|
|
604
604
|
class: "executor-form",
|
|
605
605
|
onSubmit: Me(e(X), ["prevent"])
|
|
@@ -611,30 +611,30 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
611
611
|
description: i.value.preselectionHelp
|
|
612
612
|
}, {
|
|
613
613
|
default: s(() => [
|
|
614
|
-
|
|
614
|
+
m(e(ba), {
|
|
615
615
|
id: "delegate-scope",
|
|
616
616
|
modelValue: e($),
|
|
617
617
|
"onUpdate:modelValue": le[0] || (le[0] = (O) => aa($) ? $.value = O : null),
|
|
618
|
-
options: e(
|
|
619
|
-
disabled: e(
|
|
618
|
+
options: e(A),
|
|
619
|
+
disabled: e(p) || e(v)
|
|
620
620
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
621
621
|
]),
|
|
622
622
|
_: 1
|
|
623
623
|
}, 8, ["label", "description"])) : y("", !0),
|
|
624
|
-
|
|
624
|
+
m(e(Pe), {
|
|
625
625
|
label: i.value.password,
|
|
626
626
|
description: e(d) ? i.value.confirmingHelp : i.value.passwordNote,
|
|
627
|
-
help: e(
|
|
628
|
-
"validate-status": e(
|
|
627
|
+
help: e(E),
|
|
628
|
+
"validate-status": e(E) ? "error" : void 0,
|
|
629
629
|
"validate-message-display-mode": "text"
|
|
630
630
|
}, {
|
|
631
631
|
after: s(({ classes: O }) => [
|
|
632
|
-
|
|
632
|
+
m(e(I), {
|
|
633
633
|
class: De(O.afterItem),
|
|
634
634
|
type: "submit",
|
|
635
635
|
variant: "primary",
|
|
636
636
|
loading: e(d),
|
|
637
|
-
disabled: e(
|
|
637
|
+
disabled: e(p) || e(v) || !e(ae)
|
|
638
638
|
}, {
|
|
639
639
|
default: s(() => [
|
|
640
640
|
h(o(e(C) ? i.value.confirmShare : i.value.authorize), 1)
|
|
@@ -643,14 +643,14 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
643
643
|
}, 8, ["class", "loading", "disabled"])
|
|
644
644
|
]),
|
|
645
645
|
default: s(() => [
|
|
646
|
-
|
|
646
|
+
m(e(ze), {
|
|
647
647
|
id: "delegate-password",
|
|
648
648
|
modelValue: e(f),
|
|
649
649
|
"onUpdate:modelValue": le[1] || (le[1] = (O) => aa(f) ? f.value = O : null),
|
|
650
650
|
type: "password",
|
|
651
651
|
autocomplete: "current-password",
|
|
652
|
-
invalid: !!e(
|
|
653
|
-
disabled: e(
|
|
652
|
+
invalid: !!e(E),
|
|
653
|
+
disabled: e(p) || e(v)
|
|
654
654
|
}, null, 8, ["modelValue", "invalid", "disabled"])
|
|
655
655
|
]),
|
|
656
656
|
_: 1
|
|
@@ -666,13 +666,13 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
666
666
|
_: 1
|
|
667
667
|
}, 8, ["title", "description", "aria-busy"])) : y("", !0);
|
|
668
668
|
}
|
|
669
|
-
}),
|
|
669
|
+
}), Ka = /* @__PURE__ */ ve(vl, [["__scopeId", "data-v-b666a69c"]]), fl = {
|
|
670
670
|
key: 0,
|
|
671
671
|
class: "executor-notice"
|
|
672
|
-
},
|
|
672
|
+
}, pl = {
|
|
673
673
|
key: 1,
|
|
674
674
|
class: "executor-notice"
|
|
675
|
-
},
|
|
675
|
+
}, ml = { class: "executor-notice-body" }, yl = /* @__PURE__ */ de({
|
|
676
676
|
__name: "ExecutorNotice",
|
|
677
677
|
props: {
|
|
678
678
|
locale: {},
|
|
@@ -682,19 +682,19 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
682
682
|
setup(t) {
|
|
683
683
|
const c = t, n = w(() => Re(c.locale)), a = Te(Ye, void 0) ?? c.ctx.executor;
|
|
684
684
|
a && Oe(Ye, a);
|
|
685
|
-
const u = b("checking"), i = b(), r = b(!1), f = w(() => c.ctx.user?.isAdmin === !0),
|
|
686
|
-
let v = !1, x,
|
|
685
|
+
const u = b("checking"), i = b(), r = b(!1), f = w(() => c.ctx.user?.isAdmin === !0), p = w(() => !i.value && (u.value === "needs-admin-approval" || u.value === "blocked")), d = w(() => a?.call ? { call: (C, T) => a.call(C, T) } : c.ctx.call ? c.ctx : void 0);
|
|
686
|
+
let v = !1, x, E, k = 0;
|
|
687
687
|
function $(C) {
|
|
688
688
|
const T = i.value;
|
|
689
|
-
if (i.value = Se(C), u.value = C?.state ?? "unknown", clearTimeout(
|
|
689
|
+
if (i.value = Se(C), u.value = C?.state ?? "unknown", clearTimeout(E), C && !i.value) {
|
|
690
690
|
k = 0;
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
i.value !== T && (k = 0),
|
|
694
|
-
|
|
693
|
+
i.value !== T && (k = 0), E = setTimeout(() => {
|
|
694
|
+
A();
|
|
695
695
|
}, fa(k++, i.value));
|
|
696
696
|
}
|
|
697
|
-
async function
|
|
697
|
+
async function A() {
|
|
698
698
|
if (!a) return;
|
|
699
699
|
let C;
|
|
700
700
|
try {
|
|
@@ -708,12 +708,12 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
708
708
|
a && (a.subscribe?.((C) => {
|
|
709
709
|
!v && !ta(C) && $(C);
|
|
710
710
|
}), x = c.ctx.reopen?.(() => {
|
|
711
|
-
|
|
712
|
-
}),
|
|
711
|
+
A();
|
|
712
|
+
}), A());
|
|
713
713
|
}), ge(() => {
|
|
714
|
-
v = !0, clearTimeout(
|
|
715
|
-
}), (C, T) => i.value ? (l(), _("div",
|
|
716
|
-
|
|
714
|
+
v = !0, clearTimeout(E), x?.();
|
|
715
|
+
}), (C, T) => i.value ? (l(), _("div", fl, [
|
|
716
|
+
m(e(Q), {
|
|
717
717
|
tone: "info",
|
|
718
718
|
role: "status"
|
|
719
719
|
}, {
|
|
@@ -722,16 +722,16 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
722
722
|
]),
|
|
723
723
|
_: 1
|
|
724
724
|
})
|
|
725
|
-
])) :
|
|
726
|
-
|
|
725
|
+
])) : p.value ? (l(), _("div", pl, [
|
|
726
|
+
m(e(Q), { tone: "warning" }, {
|
|
727
727
|
default: s(() => [
|
|
728
|
-
S("span",
|
|
728
|
+
S("span", ml, [
|
|
729
729
|
h(o(f.value ? n.value.noticeAdmin : n.value.noticeUser), 1),
|
|
730
730
|
f.value ? (l(), g(e(I), {
|
|
731
731
|
key: 0,
|
|
732
732
|
variant: "secondary",
|
|
733
733
|
size: "sm",
|
|
734
|
-
onClick: T[0] || (T[0] = (
|
|
734
|
+
onClick: T[0] || (T[0] = (z) => r.value = !0)
|
|
735
735
|
}, {
|
|
736
736
|
default: s(() => [
|
|
737
737
|
h(o(n.value.noticeApprove), 1)
|
|
@@ -744,35 +744,35 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
744
744
|
}),
|
|
745
745
|
f.value ? (l(), g(e(Be), {
|
|
746
746
|
key: 0,
|
|
747
|
-
open: r.value &&
|
|
747
|
+
open: r.value && p.value,
|
|
748
748
|
title: n.value.setupTitle,
|
|
749
|
-
"onUpdate:open": T[1] || (T[1] = (
|
|
749
|
+
"onUpdate:open": T[1] || (T[1] = (z) => r.value = z)
|
|
750
750
|
}, {
|
|
751
751
|
default: s(() => [
|
|
752
|
-
|
|
752
|
+
m(Ka, {
|
|
753
753
|
admin: !0,
|
|
754
754
|
locale: t.locale,
|
|
755
755
|
ctx: d.value,
|
|
756
756
|
purpose: t.purpose,
|
|
757
757
|
title: "",
|
|
758
|
-
onConfirmed:
|
|
758
|
+
onConfirmed: A
|
|
759
759
|
}, null, 8, ["locale", "ctx", "purpose"])
|
|
760
760
|
]),
|
|
761
761
|
_: 1
|
|
762
762
|
}, 8, ["open", "title"])) : y("", !0)
|
|
763
763
|
])) : y("", !0);
|
|
764
764
|
}
|
|
765
|
-
}),
|
|
765
|
+
}), bl = /* @__PURE__ */ ve(yl, [["__scopeId", "data-v-5468feb3"]]), gl = {
|
|
766
766
|
key: 0,
|
|
767
767
|
class: "ui-update-notice"
|
|
768
|
-
},
|
|
768
|
+
}, hl = { class: "ui-update-notice-body" }, kl = /* @__PURE__ */ de({
|
|
769
769
|
__name: "UiUpdateNotice",
|
|
770
770
|
props: {
|
|
771
771
|
locale: {},
|
|
772
772
|
ctx: {}
|
|
773
773
|
},
|
|
774
774
|
setup(t) {
|
|
775
|
-
const c = t, n = w(() =>
|
|
775
|
+
const c = t, n = w(() => Ze(c.locale ?? "en")), a = b(!1), u = new AbortController();
|
|
776
776
|
let i, r = -1 / 0;
|
|
777
777
|
async function f() {
|
|
778
778
|
const v = c.ctx.uiUpdate;
|
|
@@ -784,28 +784,28 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function p() {
|
|
788
788
|
document.visibilityState !== "hidden" && Date.now() - r >= 6e4 && f();
|
|
789
789
|
}
|
|
790
790
|
we(() => {
|
|
791
791
|
c.ctx.uiUpdate && (i = c.ctx.reopen?.(() => {
|
|
792
792
|
f();
|
|
793
|
-
}), document.addEventListener("visibilitychange",
|
|
793
|
+
}), document.addEventListener("visibilitychange", p), f());
|
|
794
794
|
}), ge(() => {
|
|
795
|
-
u.abort(), i?.(), document.removeEventListener("visibilitychange",
|
|
795
|
+
u.abort(), i?.(), document.removeEventListener("visibilitychange", p);
|
|
796
796
|
});
|
|
797
797
|
function d() {
|
|
798
798
|
window.location.reload();
|
|
799
799
|
}
|
|
800
|
-
return (v, x) => a.value ? (l(), _("div",
|
|
801
|
-
|
|
800
|
+
return (v, x) => a.value ? (l(), _("div", gl, [
|
|
801
|
+
m(e(Q), {
|
|
802
802
|
tone: "info",
|
|
803
803
|
role: "status"
|
|
804
804
|
}, {
|
|
805
805
|
default: s(() => [
|
|
806
|
-
S("span",
|
|
806
|
+
S("span", hl, [
|
|
807
807
|
h(o(n.value.uiUpdated), 1),
|
|
808
|
-
|
|
808
|
+
m(e(I), {
|
|
809
809
|
variant: "secondary",
|
|
810
810
|
size: "sm",
|
|
811
811
|
onClick: d
|
|
@@ -821,16 +821,16 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
821
821
|
})
|
|
822
822
|
])) : y("", !0);
|
|
823
823
|
}
|
|
824
|
-
}),
|
|
824
|
+
}), _l = /* @__PURE__ */ ve(kl, [["__scopeId", "data-v-8141bcd1"]]), Ha = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Ga = /* @__PURE__ */ Symbol("synopackageland:page-info"), Xa = /* @__PURE__ */ Symbol("synopackageland:shell-locale"), wl = { role: "alert" }, xl = {
|
|
825
825
|
key: 0,
|
|
826
826
|
class: "app-shell-account"
|
|
827
|
-
},
|
|
827
|
+
}, Cl = {
|
|
828
828
|
ref: "page-info",
|
|
829
829
|
class: "app-page-info"
|
|
830
|
-
},
|
|
830
|
+
}, $l = {
|
|
831
831
|
ref: "page-actions",
|
|
832
832
|
class: "app-page-actions"
|
|
833
|
-
},
|
|
833
|
+
}, Sl = ["hidden"], Pl = { class: "app-page-content" }, El = /* @__PURE__ */ de({
|
|
834
834
|
__name: "AppShell",
|
|
835
835
|
props: {
|
|
836
836
|
locale: {},
|
|
@@ -858,81 +858,81 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
858
858
|
const le = f.value[0];
|
|
859
859
|
!N.defaultPrevented && le && a("update:modelValue", le.id);
|
|
860
860
|
}
|
|
861
|
-
const i = w(() =>
|
|
861
|
+
const i = w(() => Ze(n.locale)), r = w(() => n.pageSurface), f = w(() => Dt(n.pages, i.value)), p = w(() => Nt(f.value)), d = w(() => f.value.find((N) => N.id === n.modelValue)), v = w(() => d.value && n.loading ? { ...d.value, fill: !0 } : d.value), x = w(() => v.value?.title ?? i.value[n.modelValue] ?? i.value.status), E = Ge("scroller"), k = w(() => n.pages.some((N) => typeof N != "string"));
|
|
862
862
|
qe(() => n.modelValue, () => {
|
|
863
|
-
k.value && !n.keepScroll &&
|
|
863
|
+
k.value && !n.keepScroll && E.value && (E.value.$el.scrollTop = 0);
|
|
864
864
|
}, { flush: "post" });
|
|
865
|
-
const $ =
|
|
865
|
+
const $ = Ia(), A = w(() => n.denied === !0 ? {} : n.denied || void 0), C = w(() => na(A.value, n.locale, n.brandName ?? n.ctx?.displayName)), T = w(() => n.ctx !== void 0 && Ea(n.ctx)), z = w(() => T.value ? n.ctx : void 0), ae = (N, { slots: le }) => le.default?.(), F = w(() => n.ctx !== void 0 && !T.value);
|
|
866
866
|
function G() {
|
|
867
867
|
n.ctx?.host?.activateWindow?.();
|
|
868
868
|
}
|
|
869
869
|
const X = Ge("layout"), B = b({ brand: !1, user: !1 });
|
|
870
870
|
qe([T, X], (N, le, O) => {
|
|
871
|
-
const
|
|
872
|
-
if (!T.value || !
|
|
871
|
+
const Z = X.value?.$el;
|
|
872
|
+
if (!T.value || !Z) {
|
|
873
873
|
B.value = { brand: !1, user: !1 };
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
876
|
const ie = () => {
|
|
877
|
-
const H =
|
|
877
|
+
const H = Rt(Z);
|
|
878
878
|
(H.brand !== B.value.brand || H.user !== B.value.user) && (B.value = H);
|
|
879
879
|
};
|
|
880
880
|
ie();
|
|
881
881
|
const ce = new MutationObserver((H) => {
|
|
882
|
-
H.some((
|
|
882
|
+
H.some((W) => !Z.contains(W.target)) && ie();
|
|
883
883
|
});
|
|
884
|
-
ce.observe(
|
|
885
|
-
const
|
|
886
|
-
|
|
887
|
-
ce.disconnect(),
|
|
884
|
+
ce.observe(Z.ownerDocument.body, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["class", "style", "hidden"], characterData: !0 });
|
|
885
|
+
const J = Z.ownerDocument.defaultView;
|
|
886
|
+
J?.addEventListener("resize", ie), O(() => {
|
|
887
|
+
ce.disconnect(), J?.removeEventListener("resize", ie);
|
|
888
888
|
});
|
|
889
889
|
}, { flush: "post", immediate: !0 });
|
|
890
|
-
const K = w(() => !B.value.user &&
|
|
891
|
-
const N =
|
|
890
|
+
const K = w(() => !B.value.user && z.value?.user?.name ? z.value.user : void 0), D = w(() => {
|
|
891
|
+
const N = z.value?.host;
|
|
892
892
|
return typeof N?.signOut == "function" && N.platform().host === "dsm";
|
|
893
893
|
});
|
|
894
|
-
function
|
|
895
|
-
|
|
894
|
+
function P() {
|
|
895
|
+
z.value?.host?.signOut?.();
|
|
896
896
|
}
|
|
897
|
-
Oe(
|
|
897
|
+
Oe(Ha, Ge("page-actions")), Oe(Ga, Ge("page-info")), Oe(Xa, w(() => n.locale));
|
|
898
898
|
const M = Ge("notices"), se = b(!0);
|
|
899
|
-
return
|
|
899
|
+
return ha((N) => {
|
|
900
900
|
const le = M.value;
|
|
901
901
|
if (!le) return;
|
|
902
902
|
const O = () => {
|
|
903
|
-
se.value = !
|
|
903
|
+
se.value = !Ut(le);
|
|
904
904
|
};
|
|
905
905
|
O();
|
|
906
|
-
const
|
|
907
|
-
|
|
908
|
-
}, { flush: "post" }),
|
|
909
|
-
T.value && N(
|
|
910
|
-
}), (N, le) => (l(), g(Xe(t.appRoot ? e(
|
|
906
|
+
const Z = new MutationObserver(O);
|
|
907
|
+
Z.observe(le, { childList: !0, subtree: !0, characterData: !0 }), N(() => Z.disconnect());
|
|
908
|
+
}, { flush: "post" }), ha((N) => {
|
|
909
|
+
T.value && N(yt());
|
|
910
|
+
}), (N, le) => (l(), g(Xe(t.appRoot ? e(bt) : ae), ea(ka(t.appRoot ? { modalScope: "app", dialogBounds: F.value ? "viewport" : "app", style: "height: 100%;", onActivate: G } : {})), {
|
|
911
911
|
default: s(() => [
|
|
912
|
-
(l(), g(Xe(t.appRoot ? e(
|
|
912
|
+
(l(), g(Xe(t.appRoot ? e(gt) : ae), ea(ka(t.appRoot ? { locale: e(Ta)(t.locale) } : {})), {
|
|
913
913
|
default: s(() => [
|
|
914
|
-
|
|
914
|
+
A.value ? (l(), g(e(_a), {
|
|
915
915
|
key: 0,
|
|
916
916
|
class: "app-denied",
|
|
917
917
|
width: t.pageWidth,
|
|
918
918
|
surface: r.value
|
|
919
919
|
}, {
|
|
920
920
|
default: s(() => [
|
|
921
|
-
|
|
921
|
+
A.value.header !== !1 ? (l(), g(e(wa), {
|
|
922
922
|
key: 0,
|
|
923
|
-
title:
|
|
923
|
+
title: A.value.title ?? C.value?.title ?? i.value.deniedTitle
|
|
924
924
|
}, null, 8, ["title"])) : y("", !0),
|
|
925
925
|
he(N.$slots, "denied", {}, () => [
|
|
926
|
-
|
|
926
|
+
m(e(Q), { tone: "danger" }, {
|
|
927
927
|
default: s(() => [
|
|
928
|
-
S("span",
|
|
928
|
+
S("span", wl, o(A.value.message ?? C.value?.message ?? i.value.deniedMessage), 1)
|
|
929
929
|
]),
|
|
930
930
|
_: 1
|
|
931
931
|
})
|
|
932
932
|
], !0)
|
|
933
933
|
]),
|
|
934
934
|
_: 3
|
|
935
|
-
}, 8, ["width", "surface"])) : (l(), g(e(
|
|
935
|
+
}, 8, ["width", "surface"])) : (l(), g(e(ht), {
|
|
936
936
|
key: 1,
|
|
937
937
|
ref_key: "layout",
|
|
938
938
|
ref: X,
|
|
@@ -946,59 +946,59 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
946
946
|
onBrand: u
|
|
947
947
|
}, sa({
|
|
948
948
|
sidebar: s(() => [
|
|
949
|
-
|
|
949
|
+
m(e(kt), {
|
|
950
950
|
"model-value": t.modelValue,
|
|
951
|
-
groups:
|
|
951
|
+
groups: p.value,
|
|
952
952
|
"onUpdate:modelValue": le[0] || (le[0] = (O) => a("update:modelValue", O))
|
|
953
953
|
}, null, 8, ["model-value", "groups"])
|
|
954
954
|
]),
|
|
955
955
|
default: s(() => [
|
|
956
|
-
|
|
956
|
+
m(e(_a), {
|
|
957
957
|
ref_key: "scroller",
|
|
958
|
-
ref:
|
|
958
|
+
ref: E,
|
|
959
959
|
class: De(["app-page", { "app-page-fill": v.value?.fill }]),
|
|
960
960
|
width: t.pageWidth,
|
|
961
961
|
surface: r.value
|
|
962
962
|
}, {
|
|
963
963
|
default: s(() => [
|
|
964
|
-
v.value?.header !== !1 ? (l(), g(e(
|
|
964
|
+
v.value?.header !== !1 ? (l(), g(e(wa), {
|
|
965
965
|
key: 0,
|
|
966
966
|
title: x.value,
|
|
967
967
|
description: v.value?.description ?? t.description
|
|
968
968
|
}, {
|
|
969
969
|
meta: s(() => [
|
|
970
|
-
S("span",
|
|
970
|
+
S("span", Cl, null, 512),
|
|
971
971
|
he(N.$slots, "meta", { page: t.modelValue }, void 0, !0)
|
|
972
972
|
]),
|
|
973
973
|
actions: s(() => [
|
|
974
|
-
S("div",
|
|
974
|
+
S("div", $l, null, 512),
|
|
975
975
|
t.loading ? y("", !0) : he(N.$slots, "actions", { page: t.modelValue }, void 0, !0, 0)
|
|
976
976
|
]),
|
|
977
977
|
_: 3
|
|
978
978
|
}, 8, ["title", "description"])) : y("", !0),
|
|
979
|
-
t.ctx?.uiUpdate ? (l(), g(
|
|
979
|
+
t.ctx?.uiUpdate ? (l(), g(_l, {
|
|
980
980
|
key: 1,
|
|
981
981
|
ctx: t.ctx,
|
|
982
982
|
locale: t.locale
|
|
983
983
|
}, null, 8, ["ctx", "locale"])) : y("", !0),
|
|
984
|
-
t.ctx?.executor ? (l(), g(
|
|
984
|
+
t.ctx?.executor ? (l(), g(bl, {
|
|
985
985
|
key: 2,
|
|
986
986
|
ctx: t.ctx,
|
|
987
987
|
locale: t.locale
|
|
988
988
|
}, null, 8, ["ctx", "locale"])) : y("", !0),
|
|
989
|
-
e(
|
|
989
|
+
e(qa)($.notices?.({ page: t.modelValue })) ? (l(), _("div", {
|
|
990
990
|
key: 3,
|
|
991
991
|
ref: "notices",
|
|
992
992
|
class: "app-notices",
|
|
993
993
|
hidden: se.value
|
|
994
994
|
}, [
|
|
995
995
|
he(N.$slots, "notices", { page: t.modelValue }, void 0, !0)
|
|
996
|
-
], 8,
|
|
997
|
-
S("div",
|
|
998
|
-
t.loading ? (l(), g(e(
|
|
996
|
+
], 8, Sl)) : y("", !0),
|
|
997
|
+
S("div", Pl, [
|
|
998
|
+
t.loading ? (l(), g(e(Ba), {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
text: i.value.loading
|
|
1001
|
-
}, null, 8, ["text"])) : (l(), _(
|
|
1001
|
+
}, null, 8, ["text"])) : (l(), _(j, { key: 1 }, [
|
|
1002
1002
|
v.value?.component ? (l(), g(Xe(v.value.component), {
|
|
1003
1003
|
key: v.value.id
|
|
1004
1004
|
})) : y("", !0),
|
|
@@ -1015,8 +1015,8 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
1015
1015
|
name: "sidebar-footer",
|
|
1016
1016
|
fn: s(() => [
|
|
1017
1017
|
he(N.$slots, "sidebar-footer", {}, () => [
|
|
1018
|
-
K.value ? (l(), _("div",
|
|
1019
|
-
|
|
1018
|
+
K.value ? (l(), _("div", xl, [
|
|
1019
|
+
m(e(_t), {
|
|
1020
1020
|
name: K.value.name,
|
|
1021
1021
|
detail: K.value.isAdmin ? i.value.administrator : i.value.dsmUser
|
|
1022
1022
|
}, null, 8, ["name", "detail"]),
|
|
@@ -1025,10 +1025,10 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
1025
1025
|
class: "app-shell-sign-out",
|
|
1026
1026
|
variant: "ghost",
|
|
1027
1027
|
label: i.value.signOut,
|
|
1028
|
-
onClick:
|
|
1028
|
+
onClick: P
|
|
1029
1029
|
}, {
|
|
1030
1030
|
default: s(() => [
|
|
1031
|
-
|
|
1031
|
+
m(e(ft), {
|
|
1032
1032
|
size: 16,
|
|
1033
1033
|
"aria-hidden": "true"
|
|
1034
1034
|
})
|
|
@@ -1055,18 +1055,18 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
1055
1055
|
_: 3
|
|
1056
1056
|
}, 16));
|
|
1057
1057
|
}
|
|
1058
|
-
}),
|
|
1058
|
+
}), Ds = /* @__PURE__ */ ve(El, [["__scopeId", "data-v-3ac4674c"]]), Ns = /* @__PURE__ */ de({
|
|
1059
1059
|
__name: "PageActions",
|
|
1060
1060
|
setup(t) {
|
|
1061
|
-
const c = Te(
|
|
1062
|
-
return (a, u) => n.value ? (l(), g(
|
|
1061
|
+
const c = Te(Ha, null), n = w(() => c?.value ?? null);
|
|
1062
|
+
return (a, u) => n.value ? (l(), g(Da, {
|
|
1063
1063
|
key: 0,
|
|
1064
1064
|
to: n.value
|
|
1065
1065
|
}, [
|
|
1066
1066
|
he(a.$slots, "default")
|
|
1067
1067
|
], 8, ["to"])) : y("", !0);
|
|
1068
1068
|
}
|
|
1069
|
-
}),
|
|
1069
|
+
}), Tl = { class: "page-info-notes" }, Al = /* @__PURE__ */ de({
|
|
1070
1070
|
inheritAttrs: !1,
|
|
1071
1071
|
__name: "PageInfo",
|
|
1072
1072
|
props: {
|
|
@@ -1078,17 +1078,17 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
1078
1078
|
align: { default: "start" }
|
|
1079
1079
|
},
|
|
1080
1080
|
setup(t) {
|
|
1081
|
-
const c = t, n =
|
|
1081
|
+
const c = t, n = Ia(), a = w(() => (c.notes ?? []).filter(Boolean)), u = c.inline ? null : Te(Ga, null), i = w(() => u?.value ?? null), r = Te(Xa, null), f = w(() => {
|
|
1082
1082
|
if (c.label) return c.label;
|
|
1083
|
-
const
|
|
1084
|
-
return n.default ?
|
|
1083
|
+
const p = c.locale ?? r?.value ?? "en";
|
|
1084
|
+
return n.default ? Ze(p).notes : Je(Ze(p).notesCount, { count: a.value.length }, p);
|
|
1085
1085
|
});
|
|
1086
|
-
return (
|
|
1086
|
+
return (p, d) => (a.value.length || n.default) && (!e(u) || i.value) ? (l(), g(Da, {
|
|
1087
1087
|
key: 0,
|
|
1088
1088
|
to: i.value ?? "body",
|
|
1089
1089
|
disabled: !e(u)
|
|
1090
1090
|
}, [
|
|
1091
|
-
|
|
1091
|
+
m(e(wt), ya(p.$attrs, {
|
|
1092
1092
|
class: "page-info",
|
|
1093
1093
|
icon: "info",
|
|
1094
1094
|
"trigger-action": "click",
|
|
@@ -1097,9 +1097,9 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
1097
1097
|
"aria-label": f.value
|
|
1098
1098
|
}), {
|
|
1099
1099
|
default: s(() => [
|
|
1100
|
-
he(
|
|
1101
|
-
S("ul",
|
|
1102
|
-
(l(!0), _(
|
|
1100
|
+
he(p.$slots, "default", {}, () => [
|
|
1101
|
+
S("ul", Tl, [
|
|
1102
|
+
(l(!0), _(j, null, pe(a.value, (v) => (l(), _("li", { key: v }, o(v), 1))), 128))
|
|
1103
1103
|
])
|
|
1104
1104
|
], !0)
|
|
1105
1105
|
]),
|
|
@@ -1107,27 +1107,27 @@ const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key:
|
|
|
1107
1107
|
}, 16, ["side", "align", "aria-label"])
|
|
1108
1108
|
], 8, ["to", "disabled"])) : y("", !0);
|
|
1109
1109
|
}
|
|
1110
|
-
}),
|
|
1110
|
+
}), Ls = /* @__PURE__ */ ve(Al, [["__scopeId", "data-v-93861654"]]), Sa = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
1111
1111
|
function va(t, c) {
|
|
1112
1112
|
let n = 0, a = t;
|
|
1113
|
-
for (; a >= 1024 && n <
|
|
1113
|
+
for (; a >= 1024 && n < Sa.length - 1; )
|
|
1114
1114
|
a /= 1024, n++;
|
|
1115
|
-
return `${new Intl.NumberFormat(c, { maximumFractionDigits: n ? 1 : 0 }).format(a)} ${
|
|
1115
|
+
return `${new Intl.NumberFormat(c, { maximumFractionDigits: n ? 1 : 0 }).format(a)} ${Sa[n]}`;
|
|
1116
1116
|
}
|
|
1117
|
-
const zl = ["aria-busy", "aria-label"],
|
|
1117
|
+
const zl = ["aria-busy", "aria-label"], Rl = { class: "file-toolbar file-location" }, Ul = ["aria-label"], Il = {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
class: "file-toolbar"
|
|
1120
|
-
},
|
|
1120
|
+
}, Dl = {
|
|
1121
1121
|
key: 1,
|
|
1122
1122
|
role: "status"
|
|
1123
|
-
},
|
|
1123
|
+
}, Nl = { role: "alert" }, Ll = {
|
|
1124
1124
|
key: 4,
|
|
1125
1125
|
role: "status"
|
|
1126
|
-
},
|
|
1126
|
+
}, Vl = { class: "file-columns" }, Bl = ["aria-label"], Fl = { class: "file-content" }, Ol = { class: "file-name" }, ql = { class: "file-empty" }, Ml = { class: "file-bytes" }, Kl = {
|
|
1127
1127
|
key: 5,
|
|
1128
1128
|
class: "file-selection",
|
|
1129
1129
|
role: "status"
|
|
1130
|
-
},
|
|
1130
|
+
}, Hl = /* @__PURE__ */ de({
|
|
1131
1131
|
__name: "FileBrowser",
|
|
1132
1132
|
props: {
|
|
1133
1133
|
provider: {},
|
|
@@ -1138,35 +1138,35 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1138
1138
|
},
|
|
1139
1139
|
emits: ["selected"],
|
|
1140
1140
|
setup(t, { emit: c }) {
|
|
1141
|
-
const n = t, a = c, u = w(() =>
|
|
1141
|
+
const n = t, a = c, u = w(() => Ae(n.locale)), i = zt(), { busy: r, error: f } = i, p = b([]), d = b([]), v = b([]), x = b(), E = b(), k = b(), $ = b([]), A = b(), C = b({ key: "name", direction: "asc" }), T = b(0), z = b([]), ae = b(!1);
|
|
1142
1142
|
let F = new AbortController();
|
|
1143
1143
|
async function G() {
|
|
1144
1144
|
const L = x.value;
|
|
1145
1145
|
!L || L.isDir || !n.provider.download || await i.run(async (V) => (await n.provider.info(L.path, V), await n.provider.download(L.path), !0));
|
|
1146
1146
|
}
|
|
1147
1147
|
async function X() {
|
|
1148
|
-
const L = v.value.at(-1)?.path, V =
|
|
1148
|
+
const L = v.value.at(-1)?.path, V = z.value[0];
|
|
1149
1149
|
if (!L || !V || !n.provider.upload) return;
|
|
1150
|
-
ae.value = !1, await i.run(async (te) => (await n.provider.upload(L, V, te), !0)) && (
|
|
1150
|
+
ae.value = !1, await i.run(async (te) => (await n.provider.upload(L, V, te), !0)) && (z.value = [], await H(v.value), ae.value = !0);
|
|
1151
1151
|
}
|
|
1152
1152
|
const B = w(() => [
|
|
1153
1153
|
{ key: "name", label: u.value.nameColumn, sortable: !0 },
|
|
1154
1154
|
{ key: "kind", label: u.value.kindColumn },
|
|
1155
1155
|
{ key: "bytes", label: u.value.sizeColumn, align: "right", sortable: !0 }
|
|
1156
|
-
]), K =
|
|
1156
|
+
]), K = it((L, { attrs: V }) => ut(ua, { ...V, kind: "folder" }));
|
|
1157
1157
|
function D(L) {
|
|
1158
1158
|
return { id: L.path, label: L.name, icon: K, data: L };
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function P(L) {
|
|
1161
1161
|
x.value = L, a("selected", L?.path);
|
|
1162
1162
|
}
|
|
1163
1163
|
function M(L) {
|
|
1164
|
-
|
|
1164
|
+
E.value = L.path, P(n.mode === "folder" ? L.isDir ? L : v.value.at(-1) : L.isDir ? void 0 : L);
|
|
1165
1165
|
}
|
|
1166
1166
|
function se(L) {
|
|
1167
1167
|
L.isDir ? Ce(L) : M(L);
|
|
1168
1168
|
}
|
|
1169
|
-
const N = (L) =>
|
|
1169
|
+
const N = (L) => p.value.find((V) => V.path === L);
|
|
1170
1170
|
function le(L, V, q = []) {
|
|
1171
1171
|
for (const te of L) {
|
|
1172
1172
|
const fe = [...q, te.data];
|
|
@@ -1182,8 +1182,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1182
1182
|
if (te) return te;
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return L.map((te) => te.id === V ? { ...te, children: q } : te.children ? { ...te, children:
|
|
1185
|
+
function Z(L, V, q) {
|
|
1186
|
+
return L.map((te) => te.id === V ? { ...te, children: q } : te.children ? { ...te, children: Z(te.children, V, q) } : te);
|
|
1187
1187
|
}
|
|
1188
1188
|
let ie = 0;
|
|
1189
1189
|
async function ce(L) {
|
|
@@ -1192,15 +1192,15 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1192
1192
|
const te = O(d.value, q.path);
|
|
1193
1193
|
if (!te) break;
|
|
1194
1194
|
if (te.children === void 0) {
|
|
1195
|
-
const fe = await
|
|
1195
|
+
const fe = await J(te);
|
|
1196
1196
|
if (V !== ie || !fe) return;
|
|
1197
|
-
d.value =
|
|
1197
|
+
d.value = Z(d.value, te.id, fe);
|
|
1198
1198
|
}
|
|
1199
1199
|
$.value.includes(te.id) || ($.value = [...$.value, te.id]);
|
|
1200
1200
|
}
|
|
1201
|
-
|
|
1201
|
+
A.value = L.at(-1)?.path;
|
|
1202
1202
|
}
|
|
1203
|
-
async function
|
|
1203
|
+
async function J(L) {
|
|
1204
1204
|
const V = T.value, q = F.signal;
|
|
1205
1205
|
try {
|
|
1206
1206
|
const te = [];
|
|
@@ -1212,21 +1212,21 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1212
1212
|
}
|
|
1213
1213
|
return te;
|
|
1214
1214
|
} catch (te) {
|
|
1215
|
-
!q.aborted && V === T.value && (f.value = te,
|
|
1215
|
+
!q.aborted && V === T.value && (f.value = te, P());
|
|
1216
1216
|
return;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
async function H(L, V = !1) {
|
|
1220
1220
|
if (r.value) return;
|
|
1221
|
-
|
|
1221
|
+
P(), E.value = void 0, p.value = V ? p.value : [], k.value = V ? k.value : void 0;
|
|
1222
1222
|
const q = V ? k.value ?? 0 : 0, te = L.at(-1)?.path;
|
|
1223
1223
|
v.value = L;
|
|
1224
1224
|
const fe = await i.run((R) => te ? n.provider.list(te, { offset: q, sortBy: C.value.key, sortDirection: C.value.direction === "asc" ? "ASC" : "DESC" }, R) : n.provider.shares(q, R));
|
|
1225
|
-
fe && (
|
|
1225
|
+
fe && (p.value = V ? [...p.value, ...fe.entries] : fe.entries, k.value = fe.nextOffset, te ? n.mode === "folder" && !V && P(L.at(-1)) : d.value = p.value.filter((R) => R.isDir).map(D), V || ce(L));
|
|
1226
1226
|
}
|
|
1227
|
-
const
|
|
1227
|
+
const W = w(() => [{ id: "", display: u.value.roots }, ...v.value.map((L) => ({ id: L.path, display: L.name }))]);
|
|
1228
1228
|
function ye(L) {
|
|
1229
|
-
const V =
|
|
1229
|
+
const V = W.value.findIndex((q) => q.id === L.id);
|
|
1230
1230
|
V < v.value.length && ue(v.value.slice(0, V));
|
|
1231
1231
|
}
|
|
1232
1232
|
function Ce(L) {
|
|
@@ -1243,7 +1243,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1243
1243
|
C.value = { key: L?.key === "bytes" ? "size" : "name", direction: L?.direction ?? "asc" }, H(v.value);
|
|
1244
1244
|
}
|
|
1245
1245
|
function Ee() {
|
|
1246
|
-
r.value || (T.value++, F.abort(), F = new AbortController(), d.value = [], $.value = [],
|
|
1246
|
+
r.value || (T.value++, F.abort(), F = new AbortController(), d.value = [], $.value = [], A.value = void 0, $e.value = [[]], ee.value = 0, H([]));
|
|
1247
1247
|
}
|
|
1248
1248
|
return we(() => {
|
|
1249
1249
|
H([]);
|
|
@@ -1254,43 +1254,43 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1254
1254
|
"aria-busy": e(r),
|
|
1255
1255
|
"aria-label": u.value.title
|
|
1256
1256
|
}, [
|
|
1257
|
-
S("div",
|
|
1258
|
-
|
|
1257
|
+
S("div", Rl, [
|
|
1258
|
+
m(e(Qe), {
|
|
1259
1259
|
label: u.value.back,
|
|
1260
1260
|
size: "sm",
|
|
1261
1261
|
disabled: e(r) || ee.value === 0,
|
|
1262
1262
|
onClick: V[0] || (V[0] = (q) => oe(-1))
|
|
1263
1263
|
}, {
|
|
1264
1264
|
default: s(() => [
|
|
1265
|
-
|
|
1265
|
+
m(e(pt), {
|
|
1266
1266
|
size: 16,
|
|
1267
1267
|
"aria-hidden": "true"
|
|
1268
1268
|
})
|
|
1269
1269
|
]),
|
|
1270
1270
|
_: 1
|
|
1271
1271
|
}, 8, ["label", "disabled"]),
|
|
1272
|
-
|
|
1272
|
+
m(e(Qe), {
|
|
1273
1273
|
label: u.value.forward,
|
|
1274
1274
|
size: "sm",
|
|
1275
1275
|
disabled: e(r) || ee.value === $e.value.length - 1,
|
|
1276
1276
|
onClick: V[1] || (V[1] = (q) => oe(1))
|
|
1277
1277
|
}, {
|
|
1278
1278
|
default: s(() => [
|
|
1279
|
-
|
|
1279
|
+
m(e(Va), {
|
|
1280
1280
|
size: 16,
|
|
1281
1281
|
"aria-hidden": "true"
|
|
1282
1282
|
})
|
|
1283
1283
|
]),
|
|
1284
1284
|
_: 1
|
|
1285
1285
|
}, 8, ["label", "disabled"]),
|
|
1286
|
-
|
|
1286
|
+
m(e(Qe), {
|
|
1287
1287
|
label: u.value.refresh,
|
|
1288
1288
|
size: "sm",
|
|
1289
1289
|
disabled: e(r),
|
|
1290
1290
|
onClick: Ee
|
|
1291
1291
|
}, {
|
|
1292
1292
|
default: s(() => [
|
|
1293
|
-
|
|
1293
|
+
m(e(mt), {
|
|
1294
1294
|
size: 14,
|
|
1295
1295
|
"aria-hidden": "true"
|
|
1296
1296
|
})
|
|
@@ -1301,17 +1301,17 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1301
1301
|
class: "file-path",
|
|
1302
1302
|
"aria-label": u.value.location
|
|
1303
1303
|
}, [
|
|
1304
|
-
|
|
1305
|
-
items:
|
|
1304
|
+
m(e(xt), {
|
|
1305
|
+
items: W.value,
|
|
1306
1306
|
"collapsed-label": u.value.fullPath,
|
|
1307
1307
|
onClickItem: ye
|
|
1308
1308
|
}, null, 8, ["items", "collapsed-label"])
|
|
1309
|
-
], 8,
|
|
1309
|
+
], 8, Ul)
|
|
1310
1310
|
]),
|
|
1311
|
-
t.transfers && t.provider.upload && v.value.length ? (l(), _("div",
|
|
1312
|
-
|
|
1313
|
-
modelValue:
|
|
1314
|
-
"onUpdate:modelValue": V[2] || (V[2] = (q) =>
|
|
1311
|
+
t.transfers && t.provider.upload && v.value.length ? (l(), _("div", Il, [
|
|
1312
|
+
m(e(Ct), {
|
|
1313
|
+
modelValue: z.value,
|
|
1314
|
+
"onUpdate:modelValue": V[2] || (V[2] = (q) => z.value = q),
|
|
1315
1315
|
variant: "compact",
|
|
1316
1316
|
disabled: e(r),
|
|
1317
1317
|
"max-files": 1,
|
|
@@ -1319,9 +1319,9 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1319
1319
|
title: u.value.upload,
|
|
1320
1320
|
onRejected: V[3] || (V[3] = (q) => f.value = { code: "upload_size_required" })
|
|
1321
1321
|
}, null, 8, ["modelValue", "disabled", "title"]),
|
|
1322
|
-
|
|
1322
|
+
m(e(I), {
|
|
1323
1323
|
variant: "primary",
|
|
1324
|
-
disabled: e(r) || !
|
|
1324
|
+
disabled: e(r) || !z.value.length,
|
|
1325
1325
|
onClick: X
|
|
1326
1326
|
}, {
|
|
1327
1327
|
default: s(() => [
|
|
@@ -1330,7 +1330,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1330
1330
|
_: 1
|
|
1331
1331
|
}, 8, ["disabled"])
|
|
1332
1332
|
])) : y("", !0),
|
|
1333
|
-
ae.value ? (l(), _("p",
|
|
1333
|
+
ae.value ? (l(), _("p", Dl, o(u.value.uploaded), 1)) : y("", !0),
|
|
1334
1334
|
t.transfers && t.provider.download && x.value && !x.value.isDir && !e(f) ? (l(), g(e(I), {
|
|
1335
1335
|
key: 2,
|
|
1336
1336
|
variant: "secondary",
|
|
@@ -1347,35 +1347,35 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1347
1347
|
tone: "danger"
|
|
1348
1348
|
}, {
|
|
1349
1349
|
default: s(() => [
|
|
1350
|
-
S("span",
|
|
1350
|
+
S("span", Nl, o(e(Aa)(e(f), u.value, t.locale, t.name)), 1)
|
|
1351
1351
|
]),
|
|
1352
1352
|
_: 1
|
|
1353
1353
|
})) : y("", !0),
|
|
1354
|
-
e(r) ? (l(), _("p",
|
|
1355
|
-
S("div",
|
|
1354
|
+
e(r) ? (l(), _("p", Ll, o(u.value.loading), 1)) : y("", !0),
|
|
1355
|
+
S("div", Vl, [
|
|
1356
1356
|
S("aside", {
|
|
1357
1357
|
class: "file-tree",
|
|
1358
1358
|
"aria-label": u.value.roots
|
|
1359
1359
|
}, [
|
|
1360
|
-
d.value.length ? (l(), g(e(
|
|
1360
|
+
d.value.length ? (l(), g(e($t), {
|
|
1361
1361
|
key: T.value,
|
|
1362
1362
|
"selection-style": "background",
|
|
1363
|
-
modelValue:
|
|
1364
|
-
"onUpdate:modelValue": V[4] || (V[4] = (q) =>
|
|
1363
|
+
modelValue: A.value,
|
|
1364
|
+
"onUpdate:modelValue": V[4] || (V[4] = (q) => A.value = q),
|
|
1365
1365
|
nodes: d.value,
|
|
1366
1366
|
"onUpdate:nodes": V[5] || (V[5] = (q) => d.value = q),
|
|
1367
1367
|
expanded: $.value,
|
|
1368
1368
|
"onUpdate:expanded": V[6] || (V[6] = (q) => $.value = q),
|
|
1369
|
-
"load-children":
|
|
1370
|
-
"expand-label": (q, te) => e(
|
|
1369
|
+
"load-children": J,
|
|
1370
|
+
"expand-label": (q, te) => e(Je)(te ? u.value.collapse : u.value.expand, { name: q.label }),
|
|
1371
1371
|
onSelect: V[7] || (V[7] = (q) => ue(le(d.value, q.id) ?? [q.data]))
|
|
1372
1372
|
}, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) : y("", !0)
|
|
1373
|
-
], 8,
|
|
1374
|
-
S("div",
|
|
1375
|
-
e(f) ? y("", !0) : (l(), g(e(
|
|
1373
|
+
], 8, Bl),
|
|
1374
|
+
S("div", Fl, [
|
|
1375
|
+
e(f) ? y("", !0) : (l(), g(e(St), {
|
|
1376
1376
|
key: 0,
|
|
1377
1377
|
columns: B.value,
|
|
1378
|
-
rows:
|
|
1378
|
+
rows: p.value.map((q) => ({ ...q, kind: q.isDir ? u.value.directoryKind : u.value.fileKind })),
|
|
1379
1379
|
"row-key": "path",
|
|
1380
1380
|
footer: !1,
|
|
1381
1381
|
resizable: !1,
|
|
@@ -1386,7 +1386,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1386
1386
|
sort: { key: C.value.key === "size" ? "bytes" : C.value.key, direction: C.value.direction },
|
|
1387
1387
|
labels: { empty: u.value.emptyFolder },
|
|
1388
1388
|
"single-select": "",
|
|
1389
|
-
"selected-keys":
|
|
1389
|
+
"selected-keys": E.value ? [E.value] : [],
|
|
1390
1390
|
"onUpdate:sort": ke,
|
|
1391
1391
|
"onUpdate:selectedKeys": V[8] || (V[8] = (q) => {
|
|
1392
1392
|
e(r) || M(N(q[0]));
|
|
@@ -1399,8 +1399,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1399
1399
|
})
|
|
1400
1400
|
}, {
|
|
1401
1401
|
"cell-name": s(({ row: q }) => [
|
|
1402
|
-
S("span",
|
|
1403
|
-
|
|
1402
|
+
S("span", Ol, [
|
|
1403
|
+
m(e(ua), {
|
|
1404
1404
|
kind: q.isDir ? "folder" : "file",
|
|
1405
1405
|
name: q.name
|
|
1406
1406
|
}, null, 8, ["kind", "name"]),
|
|
@@ -1408,8 +1408,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1408
1408
|
])
|
|
1409
1409
|
]),
|
|
1410
1410
|
empty: s(() => [
|
|
1411
|
-
S("div",
|
|
1412
|
-
|
|
1411
|
+
S("div", ql, [
|
|
1412
|
+
m(e(ua), {
|
|
1413
1413
|
kind: "folder",
|
|
1414
1414
|
size: [40, 40]
|
|
1415
1415
|
}),
|
|
@@ -1417,7 +1417,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1417
1417
|
])
|
|
1418
1418
|
]),
|
|
1419
1419
|
"cell-bytes": s(({ row: q }) => [
|
|
1420
|
-
S("span",
|
|
1420
|
+
S("span", Ml, o(q.isDir || q.bytes === void 0 ? "—" : e(va)(q.bytes, e(Ta)(t.locale))), 1)
|
|
1421
1421
|
]),
|
|
1422
1422
|
_: 1
|
|
1423
1423
|
}, 8, ["columns", "rows", "loading", "loading-text", "sort", "labels", "selected-keys"])),
|
|
@@ -1434,13 +1434,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1434
1434
|
}, 8, ["disabled"])) : y("", !0)
|
|
1435
1435
|
])
|
|
1436
1436
|
]),
|
|
1437
|
-
x.value && !e(f) ? (l(), _("p",
|
|
1437
|
+
x.value && !e(f) ? (l(), _("p", Kl, o(e(Je)(u.value.selected, { name: x.value.path })), 1)) : y("", !0)
|
|
1438
1438
|
], 8, zl));
|
|
1439
1439
|
}
|
|
1440
|
-
}),
|
|
1440
|
+
}), Ja = /* @__PURE__ */ ve(Hl, [["__scopeId", "data-v-8133f935"]]), Gl = {
|
|
1441
1441
|
key: 0,
|
|
1442
1442
|
class: "save-consent"
|
|
1443
|
-
},
|
|
1443
|
+
}, Xl = ["aria-busy", "inert"], Jl = /* @__PURE__ */ de({
|
|
1444
1444
|
__name: "NasPicker",
|
|
1445
1445
|
props: {
|
|
1446
1446
|
open: { type: Boolean },
|
|
@@ -1455,36 +1455,36 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1455
1455
|
},
|
|
1456
1456
|
emits: ["update:open", "selected", "authorized", "refused"],
|
|
1457
1457
|
setup(t, { emit: c }) {
|
|
1458
|
-
const n = t, a = c, u = b(), i = w(() =>
|
|
1458
|
+
const n = t, a = c, u = b(), i = w(() => Ae(n.locale)), r = w(() => pa(n.locale)), f = b(!1), p = b();
|
|
1459
1459
|
let d = 0, v = !1;
|
|
1460
1460
|
qe(() => n.open, () => {
|
|
1461
|
-
d++, u.value = void 0,
|
|
1461
|
+
d++, u.value = void 0, p.value = void 0;
|
|
1462
1462
|
}), ge(() => {
|
|
1463
1463
|
v = !0, d++;
|
|
1464
1464
|
});
|
|
1465
1465
|
function x() {
|
|
1466
1466
|
f.value || (u.value = void 0, a("update:open", !1));
|
|
1467
1467
|
}
|
|
1468
|
-
async function
|
|
1469
|
-
const k = u.value, $ = n.destination,
|
|
1468
|
+
async function E() {
|
|
1469
|
+
const k = u.value, $ = n.destination, A = d;
|
|
1470
1470
|
if (!(!k || f.value || !n.open || v || $ && n.mode !== "folder")) {
|
|
1471
1471
|
if (!$) {
|
|
1472
1472
|
a("selected", k), x();
|
|
1473
1473
|
return;
|
|
1474
1474
|
}
|
|
1475
|
-
f.value = !0,
|
|
1475
|
+
f.value = !0, p.value = void 0;
|
|
1476
1476
|
try {
|
|
1477
1477
|
const C = await $.selectDestination({ key: $.key, path: k });
|
|
1478
|
-
if (v ||
|
|
1478
|
+
if (v || A !== d) return;
|
|
1479
1479
|
if (!C || typeof C.id != "string" || !C.id || typeof C.username != "string" || !C.username || C.path !== k || C.key !== $.key || C.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
|
|
1480
1480
|
a("authorized", C), f.value = !1, x();
|
|
1481
1481
|
} catch (C) {
|
|
1482
|
-
if (v ||
|
|
1482
|
+
if (v || A !== d) return;
|
|
1483
1483
|
if (C?.code === "APP_DENIED") {
|
|
1484
1484
|
f.value = !1, a("refused", C), x();
|
|
1485
1485
|
return;
|
|
1486
1486
|
}
|
|
1487
|
-
|
|
1487
|
+
p.value = C;
|
|
1488
1488
|
} finally {
|
|
1489
1489
|
v || (f.value = !1);
|
|
1490
1490
|
}
|
|
@@ -1497,18 +1497,18 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1497
1497
|
"close-label": i.value.close,
|
|
1498
1498
|
"show-close": !f.value,
|
|
1499
1499
|
width: "800px",
|
|
1500
|
-
onEscapeKeyDown: $[1] || ($[1] = (
|
|
1501
|
-
f.value &&
|
|
1500
|
+
onEscapeKeyDown: $[1] || ($[1] = (A) => {
|
|
1501
|
+
f.value && A.preventDefault();
|
|
1502
1502
|
}),
|
|
1503
|
-
onInteractOutside: $[2] || ($[2] = (
|
|
1504
|
-
f.value &&
|
|
1503
|
+
onInteractOutside: $[2] || ($[2] = (A) => {
|
|
1504
|
+
f.value && A.preventDefault();
|
|
1505
1505
|
}),
|
|
1506
|
-
"onUpdate:open": $[3] || ($[3] = (
|
|
1507
|
-
|
|
1506
|
+
"onUpdate:open": $[3] || ($[3] = (A) => {
|
|
1507
|
+
A || x();
|
|
1508
1508
|
})
|
|
1509
1509
|
}, {
|
|
1510
1510
|
footer: s(() => [
|
|
1511
|
-
|
|
1511
|
+
m(e(I), {
|
|
1512
1512
|
variant: "secondary",
|
|
1513
1513
|
disabled: f.value,
|
|
1514
1514
|
onClick: x
|
|
@@ -1518,10 +1518,10 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1518
1518
|
]),
|
|
1519
1519
|
_: 1
|
|
1520
1520
|
}, 8, ["disabled"]),
|
|
1521
|
-
|
|
1521
|
+
m(e(I), {
|
|
1522
1522
|
variant: "primary",
|
|
1523
1523
|
disabled: !u.value || f.value || !!t.destination && t.mode !== "folder",
|
|
1524
|
-
onClick:
|
|
1524
|
+
onClick: E
|
|
1525
1525
|
}, {
|
|
1526
1526
|
default: s(() => [
|
|
1527
1527
|
h(o(i.value.confirm), 1)
|
|
@@ -1530,15 +1530,15 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1530
1530
|
}, 8, ["disabled"])
|
|
1531
1531
|
]),
|
|
1532
1532
|
default: s(() => [
|
|
1533
|
-
t.destination ? (l(), _("p",
|
|
1534
|
-
|
|
1533
|
+
t.destination ? (l(), _("p", Gl, o(r.value.selection), 1)) : y("", !0),
|
|
1534
|
+
p.value ? (l(), g(e(Q), {
|
|
1535
1535
|
key: 1,
|
|
1536
1536
|
tone: "danger",
|
|
1537
1537
|
role: "alert",
|
|
1538
1538
|
class: "save-message"
|
|
1539
1539
|
}, {
|
|
1540
1540
|
default: s(() => [
|
|
1541
|
-
h(o(t.errorText?.(
|
|
1541
|
+
h(o(t.errorText?.(p.value) ?? e(je)(p.value, r.value, "select", t.locale, t.name)), 1)
|
|
1542
1542
|
]),
|
|
1543
1543
|
_: 1
|
|
1544
1544
|
})) : y("", !0),
|
|
@@ -1547,34 +1547,34 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1547
1547
|
"aria-busy": f.value,
|
|
1548
1548
|
inert: f.value
|
|
1549
1549
|
}, [
|
|
1550
|
-
t.open ? (l(), g(
|
|
1550
|
+
t.open ? (l(), g(Ja, {
|
|
1551
1551
|
key: 0,
|
|
1552
1552
|
provider: t.provider,
|
|
1553
1553
|
locale: t.locale,
|
|
1554
1554
|
name: t.name,
|
|
1555
1555
|
mode: t.mode,
|
|
1556
|
-
onSelected: $[0] || ($[0] = (
|
|
1556
|
+
onSelected: $[0] || ($[0] = (A) => u.value = A)
|
|
1557
1557
|
}, null, 8, ["provider", "locale", "name", "mode"])) : y("", !0)
|
|
1558
|
-
], 8,
|
|
1558
|
+
], 8, Xl)
|
|
1559
1559
|
]),
|
|
1560
1560
|
_: 1
|
|
1561
1561
|
}, 8, ["open", "title", "description", "close-label", "show-close"]));
|
|
1562
1562
|
}
|
|
1563
|
-
}), ia = /* @__PURE__ */ ve(
|
|
1563
|
+
}), ia = /* @__PURE__ */ ve(Jl, [["__scopeId", "data-v-08be5e1e"]]), Wl = { role: "alert" }, Yl = { class: "files-actions" }, Ql = {
|
|
1564
1564
|
key: 0,
|
|
1565
1565
|
class: "files-path",
|
|
1566
1566
|
role: "status"
|
|
1567
|
-
},
|
|
1567
|
+
}, Zl = /* @__PURE__ */ de({
|
|
1568
1568
|
__name: "FilesPage",
|
|
1569
1569
|
props: {
|
|
1570
1570
|
ctx: {}
|
|
1571
1571
|
},
|
|
1572
1572
|
setup(t) {
|
|
1573
|
-
const c = t, n = b(), a = b(), u = b(!1), i = b("folder"), r = b(!1), f = b(""),
|
|
1573
|
+
const c = t, n = b(), a = b(), u = b(!1), i = b("folder"), r = b(!1), f = b(""), p = b(0), d = za(c.ctx);
|
|
1574
1574
|
let v = !1, x;
|
|
1575
|
-
async function
|
|
1575
|
+
async function E() {
|
|
1576
1576
|
if (!v) {
|
|
1577
|
-
n.value = void 0, u.value = !1, f.value = "", r.value = !1,
|
|
1577
|
+
n.value = void 0, u.value = !1, f.value = "", r.value = !1, p.value++;
|
|
1578
1578
|
try {
|
|
1579
1579
|
await c.ctx.call("nas.session.status"), v || (a.value = void 0, u.value = !0);
|
|
1580
1580
|
} catch (k) {
|
|
@@ -1583,13 +1583,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
return He(() => a.value,
|
|
1586
|
+
return He(() => a.value, E), we(() => {
|
|
1587
1587
|
x = c.ctx.reopen(() => {
|
|
1588
|
-
|
|
1589
|
-
}),
|
|
1588
|
+
E();
|
|
1589
|
+
}), E();
|
|
1590
1590
|
}), ge(() => {
|
|
1591
1591
|
v = !0, x?.(), d.dispose();
|
|
1592
|
-
}), (k, $) => (l(), _(
|
|
1592
|
+
}), (k, $) => (l(), _(j, null, [
|
|
1593
1593
|
a.value ? (l(), g(e(Q), {
|
|
1594
1594
|
key: 0,
|
|
1595
1595
|
tone: "info",
|
|
@@ -1605,13 +1605,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1605
1605
|
tone: "danger"
|
|
1606
1606
|
}, {
|
|
1607
1607
|
default: s(() => [
|
|
1608
|
-
S("span", Wl, o(e(
|
|
1609
|
-
|
|
1608
|
+
S("span", Wl, o(e(Aa)(n.value, e(Ae)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
|
|
1609
|
+
m(e(I), {
|
|
1610
1610
|
variant: "secondary",
|
|
1611
|
-
onClick:
|
|
1611
|
+
onClick: E
|
|
1612
1612
|
}, {
|
|
1613
1613
|
default: s(() => [
|
|
1614
|
-
h(o(e(
|
|
1614
|
+
h(o(e(Ae)(t.ctx.locale).refresh), 1)
|
|
1615
1615
|
]),
|
|
1616
1616
|
_: 1
|
|
1617
1617
|
})
|
|
@@ -1620,104 +1620,104 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1620
1620
|
})) : y("", !0),
|
|
1621
1621
|
u.value ? (l(), g(e(_e), {
|
|
1622
1622
|
key: 2,
|
|
1623
|
-
title: e(
|
|
1624
|
-
description: e(
|
|
1623
|
+
title: e(Ae)(t.ctx.locale).title,
|
|
1624
|
+
description: e(Ae)(t.ctx.locale).ownPermissions,
|
|
1625
1625
|
collapsible: !1
|
|
1626
1626
|
}, {
|
|
1627
1627
|
default: s(() => [
|
|
1628
|
-
S("div",
|
|
1629
|
-
|
|
1628
|
+
S("div", Yl, [
|
|
1629
|
+
m(e(I), {
|
|
1630
1630
|
variant: "secondary",
|
|
1631
|
-
onClick: $[0] || ($[0] = (
|
|
1631
|
+
onClick: $[0] || ($[0] = (A) => {
|
|
1632
1632
|
i.value = "folder", r.value = !0;
|
|
1633
1633
|
})
|
|
1634
1634
|
}, {
|
|
1635
1635
|
default: s(() => [
|
|
1636
|
-
h(o(e(
|
|
1636
|
+
h(o(e(Ae)(t.ctx.locale).choose), 1)
|
|
1637
1637
|
]),
|
|
1638
1638
|
_: 1
|
|
1639
1639
|
}),
|
|
1640
|
-
|
|
1640
|
+
m(e(I), {
|
|
1641
1641
|
variant: "secondary",
|
|
1642
|
-
onClick: $[1] || ($[1] = (
|
|
1642
|
+
onClick: $[1] || ($[1] = (A) => {
|
|
1643
1643
|
i.value = "file", r.value = !0;
|
|
1644
1644
|
})
|
|
1645
1645
|
}, {
|
|
1646
1646
|
default: s(() => [
|
|
1647
|
-
h(o(e(
|
|
1647
|
+
h(o(e(Ae)(t.ctx.locale).chooseFile), 1)
|
|
1648
1648
|
]),
|
|
1649
1649
|
_: 1
|
|
1650
1650
|
})
|
|
1651
1651
|
]),
|
|
1652
|
-
f.value ? (l(), _("p",
|
|
1653
|
-
|
|
1652
|
+
f.value ? (l(), _("p", Ql, [
|
|
1653
|
+
m(e(Le), { path: f.value }, null, 8, ["path"])
|
|
1654
1654
|
])) : y("", !0),
|
|
1655
|
-
(l(), g(
|
|
1656
|
-
key:
|
|
1655
|
+
(l(), g(Ja, {
|
|
1656
|
+
key: p.value,
|
|
1657
1657
|
provider: e(d),
|
|
1658
1658
|
locale: t.ctx.locale,
|
|
1659
1659
|
name: t.ctx.displayName,
|
|
1660
1660
|
transfers: ""
|
|
1661
1661
|
}, null, 8, ["provider", "locale", "name"])),
|
|
1662
|
-
|
|
1662
|
+
m(ia, {
|
|
1663
1663
|
provider: e(d),
|
|
1664
1664
|
locale: t.ctx.locale,
|
|
1665
1665
|
name: t.ctx.displayName,
|
|
1666
1666
|
mode: i.value,
|
|
1667
1667
|
open: r.value,
|
|
1668
|
-
"onUpdate:open": $[2] || ($[2] = (
|
|
1669
|
-
onSelected: $[3] || ($[3] = (
|
|
1668
|
+
"onUpdate:open": $[2] || ($[2] = (A) => r.value = A),
|
|
1669
|
+
onSelected: $[3] || ($[3] = (A) => f.value = A)
|
|
1670
1670
|
}, null, 8, ["provider", "locale", "name", "mode", "open"])
|
|
1671
1671
|
]),
|
|
1672
1672
|
_: 1
|
|
1673
1673
|
}, 8, ["title", "description"])) : y("", !0)
|
|
1674
1674
|
], 64));
|
|
1675
1675
|
}
|
|
1676
|
-
}),
|
|
1676
|
+
}), Vs = /* @__PURE__ */ ve(Zl, [["__scopeId", "data-v-b2e16764"]]), jl = { role: "status" }, en = { role: "alert" }, ra = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ de({
|
|
1677
1677
|
__name: "PortalSettings",
|
|
1678
1678
|
props: {
|
|
1679
1679
|
portal: {}
|
|
1680
1680
|
},
|
|
1681
1681
|
setup(t) {
|
|
1682
|
-
const c = t, n =
|
|
1683
|
-
let x = !1,
|
|
1682
|
+
const c = t, n = Oa(), a = c.portal.messages, u = b(), i = b(""), r = b(!1), f = b(""), p = b(!0), d = b(!1), v = b(ra.get(c.portal));
|
|
1683
|
+
let x = !1, E = !1;
|
|
1684
1684
|
function k(D) {
|
|
1685
|
-
if (!
|
|
1685
|
+
if (!E && (u.value = D, i.value = D.alias || D.defaultAlias, D.url))
|
|
1686
1686
|
try {
|
|
1687
|
-
const
|
|
1688
|
-
x ||=
|
|
1687
|
+
const P = new URL(D.url);
|
|
1688
|
+
x ||= P.origin === window.location.origin && window.location.pathname.startsWith(P.pathname);
|
|
1689
1689
|
} catch {
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
1692
|
const $ = c.portal.lastStatus?.();
|
|
1693
1693
|
$ && k($);
|
|
1694
|
-
const
|
|
1694
|
+
const A = 5e3, C = /* @__PURE__ */ Symbol("late");
|
|
1695
1695
|
async function T(D) {
|
|
1696
1696
|
if (r.value) return;
|
|
1697
1697
|
r.value = !0, f.value = "";
|
|
1698
|
-
const
|
|
1698
|
+
const P = D();
|
|
1699
1699
|
try {
|
|
1700
|
-
const M = await Promise.race([
|
|
1700
|
+
const M = await Promise.race([P, new Promise((se) => setTimeout(() => se(C), A))]);
|
|
1701
1701
|
if (M !== C) {
|
|
1702
1702
|
k(M);
|
|
1703
1703
|
return;
|
|
1704
1704
|
}
|
|
1705
1705
|
k(await c.portal.status());
|
|
1706
1706
|
try {
|
|
1707
|
-
await
|
|
1707
|
+
await P;
|
|
1708
1708
|
} finally {
|
|
1709
1709
|
k(await c.portal.status());
|
|
1710
1710
|
}
|
|
1711
1711
|
} catch (M) {
|
|
1712
|
-
|
|
1712
|
+
E || (f.value = a[M?.code || ""] || a.portal_unavailable);
|
|
1713
1713
|
} finally {
|
|
1714
|
-
|
|
1714
|
+
E || (r.value = !1);
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
|
-
const
|
|
1717
|
+
const z = w(() => !!u.value?.canManage && !!u.value.entry && u.value.entry !== "registered"), ae = w(() => {
|
|
1718
1718
|
const D = u.value;
|
|
1719
1719
|
if (D) {
|
|
1720
|
-
if (
|
|
1720
|
+
if (z.value) return D.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
|
|
1721
1721
|
if (D.state !== "active")
|
|
1722
1722
|
return D.canManage ? a.inactive : D.controlPanel ? void 0 : a.askAdmin;
|
|
1723
1723
|
}
|
|
@@ -1729,7 +1729,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1729
1729
|
function X() {
|
|
1730
1730
|
!r.value && !v.value && c.portal.status().then(k, () => {
|
|
1731
1731
|
}).finally(() => {
|
|
1732
|
-
|
|
1732
|
+
E || (p.value = !1);
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
1735
|
function B() {
|
|
@@ -1742,28 +1742,28 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1742
1742
|
await c.portal.unregister(), v.value = "removedFromPage", ra.set(c.portal, v.value);
|
|
1743
1743
|
} catch {
|
|
1744
1744
|
} finally {
|
|
1745
|
-
|
|
1745
|
+
E || (r.value = !1);
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
return we(() => {
|
|
1750
1750
|
n.subscribe?.(X), X();
|
|
1751
1751
|
}), ge(() => {
|
|
1752
|
-
|
|
1753
|
-
}), (D,
|
|
1752
|
+
E = !0;
|
|
1753
|
+
}), (D, P) => (l(), _(j, null, [
|
|
1754
1754
|
v.value ? (l(), g(e(_e), {
|
|
1755
1755
|
key: 0,
|
|
1756
1756
|
title: e(a).title,
|
|
1757
1757
|
collapsible: !1
|
|
1758
1758
|
}, {
|
|
1759
1759
|
default: s(() => [
|
|
1760
|
-
|
|
1760
|
+
m(e(Q), { tone: "info" }, {
|
|
1761
1761
|
default: s(() => [
|
|
1762
1762
|
S("span", jl, o(e(a)[v.value]), 1)
|
|
1763
1763
|
]),
|
|
1764
1764
|
_: 1
|
|
1765
1765
|
}),
|
|
1766
|
-
|
|
1766
|
+
m(e(ca), {
|
|
1767
1767
|
href: "/",
|
|
1768
1768
|
external: ""
|
|
1769
1769
|
}, {
|
|
@@ -1774,7 +1774,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1774
1774
|
})
|
|
1775
1775
|
]),
|
|
1776
1776
|
_: 1
|
|
1777
|
-
}, 8, ["title"])) : u.value ||
|
|
1777
|
+
}, 8, ["title"])) : u.value || p.value ? (l(), g(e(_e), {
|
|
1778
1778
|
key: 1,
|
|
1779
1779
|
title: e(a).title,
|
|
1780
1780
|
description: ae.value,
|
|
@@ -1782,13 +1782,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1782
1782
|
"aria-busy": r.value || !u.value
|
|
1783
1783
|
}, sa({
|
|
1784
1784
|
default: s(() => [
|
|
1785
|
-
u.value ? (l(), _(
|
|
1785
|
+
u.value ? (l(), _(j, { key: 1 }, [
|
|
1786
1786
|
u.value.state === "active" ? (l(), g(e(xe), {
|
|
1787
1787
|
key: 0,
|
|
1788
1788
|
label: e(F)
|
|
1789
1789
|
}, {
|
|
1790
1790
|
default: s(() => [
|
|
1791
|
-
|
|
1791
|
+
m(e(ca), {
|
|
1792
1792
|
href: u.value.url,
|
|
1793
1793
|
external: ""
|
|
1794
1794
|
}, {
|
|
@@ -1800,19 +1800,19 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1800
1800
|
]),
|
|
1801
1801
|
_: 1
|
|
1802
1802
|
}, 8, ["label"])) : y("", !0),
|
|
1803
|
-
u.value.canManage && !
|
|
1803
|
+
u.value.canManage && !z.value ? (l(), g(e(Ke), {
|
|
1804
1804
|
key: 1,
|
|
1805
|
-
onSubmit:
|
|
1805
|
+
onSubmit: P[1] || (P[1] = Me((M) => T(() => t.portal.apply(i.value)), ["prevent"]))
|
|
1806
1806
|
}, {
|
|
1807
1807
|
default: s(() => [
|
|
1808
|
-
|
|
1808
|
+
m(e(xe), {
|
|
1809
1809
|
label: e(a).alias
|
|
1810
1810
|
}, {
|
|
1811
1811
|
default: s(() => [
|
|
1812
|
-
|
|
1812
|
+
m(e(ze), {
|
|
1813
1813
|
id: "portal-alias",
|
|
1814
1814
|
modelValue: i.value,
|
|
1815
|
-
"onUpdate:modelValue":
|
|
1815
|
+
"onUpdate:modelValue": P[0] || (P[0] = (M) => i.value = M),
|
|
1816
1816
|
"aria-label": e(a).alias,
|
|
1817
1817
|
maxlength: "64",
|
|
1818
1818
|
autocomplete: "off",
|
|
@@ -1821,14 +1821,14 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1821
1821
|
]),
|
|
1822
1822
|
_: 1
|
|
1823
1823
|
}, 8, ["label"]),
|
|
1824
|
-
|
|
1824
|
+
m(e(xe), {
|
|
1825
1825
|
label: "",
|
|
1826
1826
|
"field-width": "full"
|
|
1827
1827
|
}, {
|
|
1828
1828
|
default: s(() => [
|
|
1829
|
-
|
|
1829
|
+
m(e(oa), null, {
|
|
1830
1830
|
default: s(() => [
|
|
1831
|
-
|
|
1831
|
+
m(e(I), {
|
|
1832
1832
|
type: "submit",
|
|
1833
1833
|
variant: "primary",
|
|
1834
1834
|
disabled: r.value
|
|
@@ -1837,38 +1837,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1837
1837
|
h(o(e(a).apply), 1)
|
|
1838
1838
|
]),
|
|
1839
1839
|
_: 1
|
|
1840
|
-
}, 8, ["disabled"])
|
|
1841
|
-
u.value.state === "active" ? (l(), g(e(I), {
|
|
1842
|
-
key: 0,
|
|
1843
|
-
variant: "secondary",
|
|
1844
|
-
disabled: r.value,
|
|
1845
|
-
onClick: E[1] || (E[1] = (M) => T(() => t.portal.disable()))
|
|
1846
|
-
}, {
|
|
1847
|
-
default: s(() => [
|
|
1848
|
-
h(o(e(a).disable), 1)
|
|
1849
|
-
]),
|
|
1850
|
-
_: 1
|
|
1851
|
-
}, 8, ["disabled"])) : y("", !0),
|
|
1852
|
-
p(e(I), {
|
|
1853
|
-
variant: "secondary",
|
|
1854
|
-
onClick: E[2] || (E[2] = (M) => t.portal.openControlPanel())
|
|
1855
|
-
}, {
|
|
1856
|
-
default: s(() => [
|
|
1857
|
-
h(o(e(a).advanced), 1)
|
|
1858
|
-
]),
|
|
1859
|
-
_: 1
|
|
1860
|
-
}),
|
|
1861
|
-
u.value.entry ? (l(), g(e(I), {
|
|
1862
|
-
key: 1,
|
|
1863
|
-
variant: "secondary",
|
|
1864
|
-
disabled: r.value,
|
|
1865
|
-
onClick: B
|
|
1866
|
-
}, {
|
|
1867
|
-
default: s(() => [
|
|
1868
|
-
h(o(e(a).unregister), 1)
|
|
1869
|
-
]),
|
|
1870
|
-
_: 1
|
|
1871
|
-
}, 8, ["disabled"])) : y("", !0)
|
|
1840
|
+
}, 8, ["disabled"])
|
|
1872
1841
|
]),
|
|
1873
1842
|
_: 1
|
|
1874
1843
|
})
|
|
@@ -1883,17 +1852,17 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1883
1852
|
tone: "danger"
|
|
1884
1853
|
}, {
|
|
1885
1854
|
default: s(() => [
|
|
1886
|
-
S("span",
|
|
1855
|
+
S("span", en, o(f.value), 1)
|
|
1887
1856
|
]),
|
|
1888
1857
|
_: 1
|
|
1889
1858
|
})) : y("", !0)
|
|
1890
|
-
], 64)) : (l(!0), _(
|
|
1859
|
+
], 64)) : (l(!0), _(j, { key: 0 }, pe([[e(F), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([M, se], N) => (l(), g(e(xe), {
|
|
1891
1860
|
key: N,
|
|
1892
1861
|
label: M,
|
|
1893
1862
|
"data-placeholder-row": ""
|
|
1894
1863
|
}, {
|
|
1895
1864
|
default: s(() => [
|
|
1896
|
-
|
|
1865
|
+
m(e(Ne), {
|
|
1897
1866
|
width: "16rem",
|
|
1898
1867
|
height: se
|
|
1899
1868
|
}, null, 8, ["height"])
|
|
@@ -1903,14 +1872,14 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1903
1872
|
]),
|
|
1904
1873
|
_: 2
|
|
1905
1874
|
}, [
|
|
1906
|
-
u.value &&
|
|
1875
|
+
u.value && z.value ? {
|
|
1907
1876
|
name: "footer",
|
|
1908
1877
|
fn: s(() => [
|
|
1909
1878
|
u.value.entry === "unregistered" ? (l(), g(e(I), {
|
|
1910
1879
|
key: 0,
|
|
1911
1880
|
variant: "primary",
|
|
1912
1881
|
disabled: r.value,
|
|
1913
|
-
onClick:
|
|
1882
|
+
onClick: P[2] || (P[2] = (M) => T(G))
|
|
1914
1883
|
}, {
|
|
1915
1884
|
default: s(() => [
|
|
1916
1885
|
h(o(e(a).register), 1)
|
|
@@ -1929,12 +1898,48 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1929
1898
|
}, 8, ["disabled"]))
|
|
1930
1899
|
]),
|
|
1931
1900
|
key: "0"
|
|
1932
|
-
} : u.value
|
|
1901
|
+
} : u.value?.canManage ? {
|
|
1902
|
+
name: "footer",
|
|
1903
|
+
fn: s(() => [
|
|
1904
|
+
u.value.state === "active" ? (l(), g(e(I), {
|
|
1905
|
+
key: 0,
|
|
1906
|
+
variant: "secondary",
|
|
1907
|
+
disabled: r.value,
|
|
1908
|
+
onClick: P[3] || (P[3] = (M) => T(() => t.portal.disable()))
|
|
1909
|
+
}, {
|
|
1910
|
+
default: s(() => [
|
|
1911
|
+
h(o(e(a).disable), 1)
|
|
1912
|
+
]),
|
|
1913
|
+
_: 1
|
|
1914
|
+
}, 8, ["disabled"])) : y("", !0),
|
|
1915
|
+
m(e(I), {
|
|
1916
|
+
variant: "secondary",
|
|
1917
|
+
onClick: P[4] || (P[4] = (M) => t.portal.openControlPanel())
|
|
1918
|
+
}, {
|
|
1919
|
+
default: s(() => [
|
|
1920
|
+
h(o(e(a).advanced), 1)
|
|
1921
|
+
]),
|
|
1922
|
+
_: 1
|
|
1923
|
+
}),
|
|
1924
|
+
u.value.entry ? (l(), g(e(I), {
|
|
1925
|
+
key: 1,
|
|
1926
|
+
variant: "secondary",
|
|
1927
|
+
disabled: r.value,
|
|
1928
|
+
onClick: B
|
|
1929
|
+
}, {
|
|
1930
|
+
default: s(() => [
|
|
1931
|
+
h(o(e(a).unregister), 1)
|
|
1932
|
+
]),
|
|
1933
|
+
_: 1
|
|
1934
|
+
}, 8, ["disabled"])) : y("", !0)
|
|
1935
|
+
]),
|
|
1936
|
+
key: "1"
|
|
1937
|
+
} : u.value && u.value.controlPanel ? {
|
|
1933
1938
|
name: "footer",
|
|
1934
1939
|
fn: s(() => [
|
|
1935
|
-
|
|
1940
|
+
m(e(I), {
|
|
1936
1941
|
variant: "secondary",
|
|
1937
|
-
onClick:
|
|
1942
|
+
onClick: P[5] || (P[5] = (M) => t.portal.openControlPanel())
|
|
1938
1943
|
}, {
|
|
1939
1944
|
default: s(() => [
|
|
1940
1945
|
h(o(e(a).controlPanel), 1)
|
|
@@ -1942,27 +1947,27 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1942
1947
|
_: 1
|
|
1943
1948
|
})
|
|
1944
1949
|
]),
|
|
1945
|
-
key: "
|
|
1950
|
+
key: "2"
|
|
1946
1951
|
} : void 0
|
|
1947
1952
|
]), 1032, ["title", "description", "aria-busy"])) : y("", !0),
|
|
1948
|
-
|
|
1953
|
+
m(e(Be), {
|
|
1949
1954
|
open: d.value,
|
|
1950
|
-
"onUpdate:open":
|
|
1955
|
+
"onUpdate:open": P[7] || (P[7] = (M) => d.value = M),
|
|
1951
1956
|
title: e(a).unregister,
|
|
1952
1957
|
description: e(a).removeFromPage,
|
|
1953
1958
|
"close-label": e(a).cancel
|
|
1954
1959
|
}, {
|
|
1955
1960
|
footer: s(() => [
|
|
1956
|
-
|
|
1961
|
+
m(e(I), {
|
|
1957
1962
|
variant: "secondary",
|
|
1958
|
-
onClick:
|
|
1963
|
+
onClick: P[6] || (P[6] = (M) => d.value = !1)
|
|
1959
1964
|
}, {
|
|
1960
1965
|
default: s(() => [
|
|
1961
1966
|
h(o(e(a).cancel), 1)
|
|
1962
1967
|
]),
|
|
1963
1968
|
_: 1
|
|
1964
1969
|
}),
|
|
1965
|
-
|
|
1970
|
+
m(e(I), {
|
|
1966
1971
|
variant: "danger",
|
|
1967
1972
|
disabled: r.value,
|
|
1968
1973
|
onClick: K
|
|
@@ -1977,7 +1982,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1977
1982
|
}, 8, ["open", "title", "description", "close-label"])
|
|
1978
1983
|
], 64));
|
|
1979
1984
|
}
|
|
1980
|
-
}),
|
|
1985
|
+
}), an = { class: "sf-state" }, tn = { class: "sf-notices" }, ln = { role: "status" }, nn = { role: "alert" }, sn = /* @__PURE__ */ de({
|
|
1981
1986
|
__name: "SharedFolderSettings",
|
|
1982
1987
|
props: {
|
|
1983
1988
|
shared: {},
|
|
@@ -1986,22 +1991,22 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
1986
1991
|
setup(t) {
|
|
1987
1992
|
const c = t, n = c.shared.messages, a = b(), u = b(!1), i = b(""), r = b("");
|
|
1988
1993
|
let f = !1;
|
|
1989
|
-
const
|
|
1990
|
-
function $(
|
|
1991
|
-
f || (a.value =
|
|
1994
|
+
const p = { ready: "success", pending: "warning", missing: "danger", ambiguous: "danger" }, d = (z) => ({ account: a.value?.account ?? "", folder: z.name, access: n[z.required] ?? z.required }), v = (z, ae) => Je(z, ae, c.locale), x = w(() => a.value?.folders.filter((z) => z.state !== "ready") ?? []), E = ma(c.locale ?? "en"), k = w(() => c.shared.canGrant());
|
|
1995
|
+
function $(z) {
|
|
1996
|
+
f || (a.value = z, u.value = !1);
|
|
1992
1997
|
}
|
|
1993
|
-
async function
|
|
1998
|
+
async function A() {
|
|
1994
1999
|
try {
|
|
1995
2000
|
$(await c.shared.status());
|
|
1996
2001
|
} catch {
|
|
1997
2002
|
!f && !a.value && (u.value = !0);
|
|
1998
2003
|
}
|
|
1999
2004
|
}
|
|
2000
|
-
async function C(
|
|
2005
|
+
async function C(z) {
|
|
2001
2006
|
if (!i.value) {
|
|
2002
|
-
i.value =
|
|
2007
|
+
i.value = z.key, r.value = "";
|
|
2003
2008
|
try {
|
|
2004
|
-
$(await c.shared.grant(
|
|
2009
|
+
$(await c.shared.grant(z.key));
|
|
2005
2010
|
} catch (ae) {
|
|
2006
2011
|
f || (r.value = n[ae?.code || ""] || n.shared_folder_unavailable);
|
|
2007
2012
|
} finally {
|
|
@@ -2010,21 +2015,21 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2010
2015
|
}
|
|
2011
2016
|
}
|
|
2012
2017
|
const T = c.shared.lastStatus?.();
|
|
2013
|
-
return T && (a.value = T), we(
|
|
2018
|
+
return T && (a.value = T), we(A), ge(() => {
|
|
2014
2019
|
f = !0;
|
|
2015
|
-
}), (
|
|
2020
|
+
}), (z, ae) => !a.value && !u.value ? (l(), g(e(_e), {
|
|
2016
2021
|
key: 0,
|
|
2017
2022
|
title: e(n).title,
|
|
2018
2023
|
collapsible: !1,
|
|
2019
2024
|
"aria-busy": "true"
|
|
2020
2025
|
}, {
|
|
2021
2026
|
default: s(() => [
|
|
2022
|
-
|
|
2027
|
+
m(e(xe), {
|
|
2023
2028
|
label: "",
|
|
2024
2029
|
"data-placeholder-row": ""
|
|
2025
2030
|
}, {
|
|
2026
2031
|
default: s(() => [
|
|
2027
|
-
|
|
2032
|
+
m(e(Ne), {
|
|
2028
2033
|
width: "16rem",
|
|
2029
2034
|
height: "20px"
|
|
2030
2035
|
})
|
|
@@ -2040,15 +2045,15 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2040
2045
|
"aria-busy": !!i.value
|
|
2041
2046
|
}, sa({
|
|
2042
2047
|
default: s(() => [
|
|
2043
|
-
(l(!0), _(
|
|
2048
|
+
(l(!0), _(j, null, pe(a.value.folders, (F) => (l(), g(e(xe), {
|
|
2044
2049
|
key: F.key,
|
|
2045
2050
|
label: F.name,
|
|
2046
2051
|
"data-shared-folder": F.key
|
|
2047
2052
|
}, {
|
|
2048
2053
|
default: s(() => [
|
|
2049
|
-
S("div",
|
|
2050
|
-
|
|
2051
|
-
tone:
|
|
2054
|
+
S("div", an, [
|
|
2055
|
+
m(e(We), {
|
|
2056
|
+
tone: p[F.state],
|
|
2052
2057
|
"data-shared-folder-state": F.state
|
|
2053
2058
|
}, {
|
|
2054
2059
|
default: s(() => [
|
|
@@ -2056,8 +2061,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2056
2061
|
]),
|
|
2057
2062
|
_: 2
|
|
2058
2063
|
}, 1032, ["tone", "data-shared-folder-state"]),
|
|
2059
|
-
S("span", null, o(e(n).required) + o(e(
|
|
2060
|
-
S("span", null, o(e(n).granted) + o(e(
|
|
2064
|
+
S("span", null, o(e(n).required) + o(e(E)) + o(e(n)[F.required]), 1),
|
|
2065
|
+
S("span", null, o(e(n).granted) + o(e(E)) + o(e(n)[F.granted]), 1),
|
|
2061
2066
|
F.state === "pending" && k.value ? (l(), g(e(I), {
|
|
2062
2067
|
key: 0,
|
|
2063
2068
|
variant: "primary",
|
|
@@ -2073,20 +2078,20 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2073
2078
|
]),
|
|
2074
2079
|
_: 2
|
|
2075
2080
|
}, 1032, ["label", "data-shared-folder"]))), 128)),
|
|
2076
|
-
S("div",
|
|
2077
|
-
(l(!0), _(
|
|
2081
|
+
S("div", tn, [
|
|
2082
|
+
(l(!0), _(j, null, pe(x.value, (F) => (l(), g(e(Q), {
|
|
2078
2083
|
key: F.key,
|
|
2079
2084
|
tone: "warning",
|
|
2080
2085
|
dismissible: !1,
|
|
2081
2086
|
"data-shared-folder-notice": ""
|
|
2082
2087
|
}, {
|
|
2083
2088
|
default: s(() => [
|
|
2084
|
-
S("span",
|
|
2085
|
-
F.state === "pending" ? (l(), _(
|
|
2086
|
-
h(o(e(n).pendingNote
|
|
2087
|
-
], 64)) : F.state === "missing" ? (l(), _(
|
|
2089
|
+
S("span", ln, [
|
|
2090
|
+
F.state === "pending" ? (l(), _(j, { key: 0 }, [
|
|
2091
|
+
h(o(e(Pa)([e(n).pendingNote, !k.value && v(e(n).askAdmin, d(F)), v(e(n).steps, d(F))], t.locale ?? "en")), 1)
|
|
2092
|
+
], 64)) : F.state === "missing" ? (l(), _(j, { key: 1 }, [
|
|
2088
2093
|
h(o(v(e(n).missingHint, d(F))), 1)
|
|
2089
|
-
], 64)) : (l(), _(
|
|
2094
|
+
], 64)) : (l(), _(j, { key: 2 }, [
|
|
2090
2095
|
h(o(v(e(n).ambiguousHint, d(F))), 1)
|
|
2091
2096
|
], 64))
|
|
2092
2097
|
])
|
|
@@ -2098,7 +2103,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2098
2103
|
tone: "danger"
|
|
2099
2104
|
}, {
|
|
2100
2105
|
default: s(() => [
|
|
2101
|
-
S("span",
|
|
2106
|
+
S("span", nn, o(r.value), 1)
|
|
2102
2107
|
]),
|
|
2103
2108
|
_: 1
|
|
2104
2109
|
})) : y("", !0)
|
|
@@ -2109,7 +2114,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2109
2114
|
x.value.some((F) => F.state === "pending") ? {
|
|
2110
2115
|
name: "footer",
|
|
2111
2116
|
fn: s(() => [
|
|
2112
|
-
|
|
2117
|
+
m(e(I), {
|
|
2113
2118
|
variant: "secondary",
|
|
2114
2119
|
onClick: ae[0] || (ae[0] = (F) => t.shared.openControlPanel())
|
|
2115
2120
|
}, {
|
|
@@ -2123,16 +2128,16 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2123
2128
|
} : void 0
|
|
2124
2129
|
]), 1032, ["title", "aria-busy"])) : y("", !0);
|
|
2125
2130
|
}
|
|
2126
|
-
}),
|
|
2131
|
+
}), Fs = /* @__PURE__ */ ve(sn, [["__scopeId", "data-v-3cf3ef1b"]]), on = { class: "shared-folder-permission-issues" }, un = {
|
|
2127
2132
|
key: 0,
|
|
2128
2133
|
role: "alert"
|
|
2129
|
-
},
|
|
2134
|
+
}, rn = /* @__PURE__ */ de({
|
|
2130
2135
|
__name: "SharedFolderPermissionDialog",
|
|
2131
2136
|
props: {
|
|
2132
2137
|
permission: {}
|
|
2133
2138
|
},
|
|
2134
2139
|
setup(t) {
|
|
2135
|
-
const c = t, n = b(!1), a =
|
|
2140
|
+
const c = t, n = b(!1), a = rt([]), u = b(!1), i = b(!1);
|
|
2136
2141
|
let r = !1, f;
|
|
2137
2142
|
we(() => {
|
|
2138
2143
|
f = c.permission.subscribe((d) => {
|
|
@@ -2142,7 +2147,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2142
2147
|
}), ge(() => {
|
|
2143
2148
|
r = !0, f?.();
|
|
2144
2149
|
});
|
|
2145
|
-
async function
|
|
2150
|
+
async function p() {
|
|
2146
2151
|
if (!u.value) {
|
|
2147
2152
|
u.value = !0, i.value = !1;
|
|
2148
2153
|
try {
|
|
@@ -2163,7 +2168,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2163
2168
|
"close-label": t.permission.messages.dismiss
|
|
2164
2169
|
}, {
|
|
2165
2170
|
footer: s(() => [
|
|
2166
|
-
|
|
2171
|
+
m(e(I), {
|
|
2167
2172
|
variant: "secondary",
|
|
2168
2173
|
onClick: v[0] || (v[0] = (x) => t.permission.openControlPanel())
|
|
2169
2174
|
}, {
|
|
@@ -2172,7 +2177,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2172
2177
|
]),
|
|
2173
2178
|
_: 1
|
|
2174
2179
|
}),
|
|
2175
|
-
|
|
2180
|
+
m(e(I), {
|
|
2176
2181
|
variant: "secondary",
|
|
2177
2182
|
onClick: v[1] || (v[1] = (x) => n.value = !1)
|
|
2178
2183
|
}, {
|
|
@@ -2181,10 +2186,10 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2181
2186
|
]),
|
|
2182
2187
|
_: 1
|
|
2183
2188
|
}),
|
|
2184
|
-
|
|
2189
|
+
m(e(I), {
|
|
2185
2190
|
variant: "primary",
|
|
2186
2191
|
disabled: u.value,
|
|
2187
|
-
onClick:
|
|
2192
|
+
onClick: p
|
|
2188
2193
|
}, {
|
|
2189
2194
|
default: s(() => [
|
|
2190
2195
|
h(o(t.permission.messages.retry), 1)
|
|
@@ -2193,67 +2198,67 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2193
2198
|
}, 8, ["disabled"])
|
|
2194
2199
|
]),
|
|
2195
2200
|
default: s(() => [
|
|
2196
|
-
S("ul",
|
|
2197
|
-
(l(!0), _(
|
|
2201
|
+
S("ul", on, [
|
|
2202
|
+
(l(!0), _(j, null, pe(a.value, (x) => (l(), _("li", {
|
|
2198
2203
|
key: JSON.stringify([x.account, x.share, x.required])
|
|
2199
2204
|
}, o(t.permission.message(x)), 1))), 128))
|
|
2200
2205
|
]),
|
|
2201
|
-
i.value ? (l(), _("p",
|
|
2206
|
+
i.value ? (l(), _("p", un, o(t.permission.messages.shared_folder_unavailable), 1)) : y("", !0)
|
|
2202
2207
|
]),
|
|
2203
2208
|
_: 1
|
|
2204
2209
|
}, 8, ["open", "title", "description", "close-label"])) : y("", !0);
|
|
2205
2210
|
}
|
|
2206
|
-
}),
|
|
2211
|
+
}), Os = /* @__PURE__ */ ve(rn, [["__scopeId", "data-v-360e834c"]]), dn = ["aria-busy"], cn = { role: "alert" }, vn = {
|
|
2207
2212
|
key: 2,
|
|
2208
2213
|
role: "status"
|
|
2209
|
-
},
|
|
2214
|
+
}, fn = { role: "alert" }, pn = { role: "status" }, mn = /* @__PURE__ */ de({
|
|
2210
2215
|
__name: "LoginPage",
|
|
2211
2216
|
props: {
|
|
2212
2217
|
session: {},
|
|
2213
2218
|
locale: {}
|
|
2214
2219
|
},
|
|
2215
2220
|
setup(t) {
|
|
2216
|
-
const c = t, n = w(() =>
|
|
2221
|
+
const c = t, n = w(() => Ra(c.locale)), a = b(""), u = b(""), i = b(""), r = b(!1), f = b(!1), p = b(""), d = b(), v = w(() => window.location.protocol === "https:");
|
|
2217
2222
|
let x = !1;
|
|
2218
|
-
function
|
|
2223
|
+
function E(C) {
|
|
2219
2224
|
const T = C?.code;
|
|
2220
2225
|
return c.session.denied.value?.message || n.value.errors[T || ""] || n.value.errors.failed;
|
|
2221
2226
|
}
|
|
2222
2227
|
async function k() {
|
|
2223
2228
|
if (!(f.value || !v.value || !a.value || !u.value || r.value && !i.value)) {
|
|
2224
|
-
f.value = !0,
|
|
2229
|
+
f.value = !0, p.value = "";
|
|
2225
2230
|
try {
|
|
2226
2231
|
await c.session.login(a.value, u.value, i.value), u.value = "", i.value = "";
|
|
2227
2232
|
} catch (C) {
|
|
2228
2233
|
if (x) return;
|
|
2229
|
-
i.value = "", C?.code === "otp_required" ? r.value = !0 : (
|
|
2234
|
+
i.value = "", C?.code === "otp_required" ? r.value = !0 : (p.value = E(C), u.value = "", r.value = !1);
|
|
2230
2235
|
} finally {
|
|
2231
|
-
x || (f.value = !1, r.value && (await
|
|
2236
|
+
x || (f.value = !1, r.value && (await dt(), x || d.value?.querySelector("input")?.focus()));
|
|
2232
2237
|
}
|
|
2233
2238
|
}
|
|
2234
2239
|
}
|
|
2235
2240
|
async function $() {
|
|
2236
2241
|
if (!f.value) {
|
|
2237
|
-
f.value = !0,
|
|
2242
|
+
f.value = !0, p.value = "";
|
|
2238
2243
|
try {
|
|
2239
2244
|
await c.session.bootstrap();
|
|
2240
2245
|
} catch (C) {
|
|
2241
|
-
x || (
|
|
2246
|
+
x || (p.value = E(C));
|
|
2242
2247
|
} finally {
|
|
2243
2248
|
x || (f.value = !1);
|
|
2244
2249
|
}
|
|
2245
2250
|
}
|
|
2246
2251
|
}
|
|
2247
|
-
function
|
|
2248
|
-
u.value = "", i.value = "", r.value = !1,
|
|
2252
|
+
function A() {
|
|
2253
|
+
u.value = "", i.value = "", r.value = !1, p.value = "";
|
|
2249
2254
|
}
|
|
2250
|
-
return
|
|
2255
|
+
return Na(() => {
|
|
2251
2256
|
x = !0, u.value = "", i.value = "";
|
|
2252
2257
|
}), (C, T) => (l(), _("main", {
|
|
2253
2258
|
class: "identity-login",
|
|
2254
2259
|
"aria-busy": f.value
|
|
2255
2260
|
}, [
|
|
2256
|
-
|
|
2261
|
+
m(e(_e), {
|
|
2257
2262
|
title: n.value.title,
|
|
2258
2263
|
description: n.value.intro,
|
|
2259
2264
|
collapsible: !1
|
|
@@ -2274,17 +2279,17 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2274
2279
|
tone: "danger"
|
|
2275
2280
|
}, {
|
|
2276
2281
|
default: s(() => [
|
|
2277
|
-
S("span",
|
|
2282
|
+
S("span", cn, o(t.session.denied.value.message), 1)
|
|
2278
2283
|
]),
|
|
2279
2284
|
_: 1
|
|
2280
|
-
})) : t.session.notice.value ? (l(), _("p",
|
|
2281
|
-
|
|
2285
|
+
})) : t.session.notice.value ? (l(), _("p", vn, o(n.value.notices[t.session.notice.value]), 1)) : y("", !0),
|
|
2286
|
+
p.value && !t.session.denied.value ? (l(), g(e(Q), {
|
|
2282
2287
|
key: 3,
|
|
2283
2288
|
tone: "danger",
|
|
2284
2289
|
title: n.value.failedTitle
|
|
2285
2290
|
}, {
|
|
2286
2291
|
default: s(() => [
|
|
2287
|
-
S("span",
|
|
2292
|
+
S("span", fn, o(p.value), 1)
|
|
2288
2293
|
]),
|
|
2289
2294
|
_: 1
|
|
2290
2295
|
}, 8, ["title"])) : y("", !0),
|
|
@@ -2293,32 +2298,32 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2293
2298
|
onSubmit: Me(k, ["prevent"])
|
|
2294
2299
|
}, {
|
|
2295
2300
|
default: s(() => [
|
|
2296
|
-
|
|
2301
|
+
m(e(Pe), {
|
|
2297
2302
|
label: n.value.account
|
|
2298
2303
|
}, {
|
|
2299
2304
|
default: s(() => [
|
|
2300
|
-
|
|
2305
|
+
m(e(ze), {
|
|
2301
2306
|
modelValue: a.value,
|
|
2302
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
2307
|
+
"onUpdate:modelValue": T[0] || (T[0] = (z) => a.value = z),
|
|
2303
2308
|
autocomplete: "username",
|
|
2304
2309
|
disabled: f.value || r.value || !v.value
|
|
2305
2310
|
}, null, 8, ["modelValue", "disabled"])
|
|
2306
2311
|
]),
|
|
2307
2312
|
_: 1
|
|
2308
2313
|
}, 8, ["label"]),
|
|
2309
|
-
r.value ? (l(), _(
|
|
2310
|
-
S("p",
|
|
2314
|
+
r.value ? (l(), _(j, { key: 1 }, [
|
|
2315
|
+
S("p", pn, o(n.value.otpPrompt), 1),
|
|
2311
2316
|
S("div", {
|
|
2312
2317
|
ref_key: "otpField",
|
|
2313
2318
|
ref: d
|
|
2314
2319
|
}, [
|
|
2315
|
-
|
|
2320
|
+
m(e(Pe), {
|
|
2316
2321
|
label: n.value.otp
|
|
2317
2322
|
}, {
|
|
2318
2323
|
default: s(() => [
|
|
2319
|
-
|
|
2324
|
+
m(e(ze), {
|
|
2320
2325
|
modelValue: i.value,
|
|
2321
|
-
"onUpdate:modelValue": T[2] || (T[2] = (
|
|
2326
|
+
"onUpdate:modelValue": T[2] || (T[2] = (z) => i.value = z),
|
|
2322
2327
|
inputmode: "numeric",
|
|
2323
2328
|
autocomplete: "one-time-code",
|
|
2324
2329
|
disabled: f.value
|
|
@@ -2332,9 +2337,9 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2332
2337
|
label: n.value.password
|
|
2333
2338
|
}, {
|
|
2334
2339
|
default: s(() => [
|
|
2335
|
-
|
|
2340
|
+
m(e(ze), {
|
|
2336
2341
|
modelValue: u.value,
|
|
2337
|
-
"onUpdate:modelValue": T[1] || (T[1] = (
|
|
2342
|
+
"onUpdate:modelValue": T[1] || (T[1] = (z) => u.value = z),
|
|
2338
2343
|
type: "password",
|
|
2339
2344
|
autocomplete: "current-password",
|
|
2340
2345
|
disabled: f.value || !v.value
|
|
@@ -2342,9 +2347,9 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2342
2347
|
]),
|
|
2343
2348
|
_: 1
|
|
2344
2349
|
}, 8, ["label"])),
|
|
2345
|
-
|
|
2350
|
+
m(e(oa), null, {
|
|
2346
2351
|
default: s(() => [
|
|
2347
|
-
|
|
2352
|
+
m(e(I), {
|
|
2348
2353
|
type: "submit",
|
|
2349
2354
|
variant: "primary",
|
|
2350
2355
|
disabled: f.value || !v.value || !a.value || !u.value || r.value && !i.value
|
|
@@ -2358,7 +2363,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2358
2363
|
key: 0,
|
|
2359
2364
|
variant: "secondary",
|
|
2360
2365
|
disabled: f.value,
|
|
2361
|
-
onClick:
|
|
2366
|
+
onClick: A
|
|
2362
2367
|
}, {
|
|
2363
2368
|
default: s(() => [
|
|
2364
2369
|
h(o(n.value.otherAccount), 1)
|
|
@@ -2384,73 +2389,73 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2384
2389
|
]),
|
|
2385
2390
|
_: 1
|
|
2386
2391
|
}, 8, ["title", "description"])
|
|
2387
|
-
], 8,
|
|
2392
|
+
], 8, dn));
|
|
2388
2393
|
}
|
|
2389
|
-
}),
|
|
2394
|
+
}), qs = /* @__PURE__ */ ve(mn, [["__scopeId", "data-v-06b2efdb"]]), yn = { class: "integration-actions" }, bn = { role: "status" }, gn = { class: "integration-help" }, hn = { class: "integration-help" }, kn = { class: "integration-help" }, _n = { class: "integration-actions" }, wn = {
|
|
2390
2395
|
key: 0,
|
|
2391
2396
|
role: "status",
|
|
2392
2397
|
"data-bg-picked": "",
|
|
2393
2398
|
class: "bg-path"
|
|
2394
|
-
},
|
|
2399
|
+
}, xn = { class: "integration-actions" }, Cn = { key: 2 }, $n = {
|
|
2395
2400
|
key: 3,
|
|
2396
2401
|
class: "bg-cards"
|
|
2397
|
-
},
|
|
2402
|
+
}, Sn = { class: "bg-card-body" }, Pn = {
|
|
2398
2403
|
key: 0,
|
|
2399
2404
|
class: "integration-help"
|
|
2400
|
-
},
|
|
2405
|
+
}, En = {
|
|
2401
2406
|
key: 1,
|
|
2402
2407
|
class: "integration-help"
|
|
2403
|
-
},
|
|
2408
|
+
}, Tn = {
|
|
2404
2409
|
key: 2,
|
|
2405
2410
|
class: "integration-help bg-path"
|
|
2406
|
-
},
|
|
2411
|
+
}, An = {
|
|
2407
2412
|
key: 3,
|
|
2408
2413
|
class: "integration-help"
|
|
2409
2414
|
}, zn = {
|
|
2410
2415
|
key: 4,
|
|
2411
2416
|
class: "integration-help"
|
|
2412
|
-
},
|
|
2417
|
+
}, Rn = { class: "integration-actions" }, Un = { key: 1 }, In = {
|
|
2413
2418
|
key: 2,
|
|
2414
2419
|
class: "bg-cards"
|
|
2415
|
-
},
|
|
2420
|
+
}, Dn = { class: "bg-card-body" }, Nn = {
|
|
2416
2421
|
key: 0,
|
|
2417
2422
|
class: "integration-help"
|
|
2418
|
-
},
|
|
2423
|
+
}, Ln = {
|
|
2419
2424
|
key: 1,
|
|
2420
2425
|
class: "integration-help"
|
|
2421
|
-
},
|
|
2426
|
+
}, Vn = { class: "integration-help" }, Bn = { class: "integration-actions" }, Fn = { class: "integration-actions" }, On = { class: "integration-actions" }, qn = /* @__PURE__ */ de({
|
|
2422
2427
|
__name: "BackgroundPanel",
|
|
2423
2428
|
props: {
|
|
2424
2429
|
ctx: {}
|
|
2425
2430
|
},
|
|
2426
2431
|
setup(t, { expose: c }) {
|
|
2427
|
-
const n = t, a = w(() =>
|
|
2428
|
-
let D,
|
|
2432
|
+
const n = t, a = w(() => Za(n.ctx.locale)), u = (R, Y) => Je(R, Y, n.ctx.locale), i = b(), r = b([]), f = b(), p = b(!1), d = b(!1), v = b([]), x = b(), E = b(!1), k = b("3600"), $ = b(), A = b(), C = b(), T = b(!1), z = b(), ae = w(() => !i.value && !f.value && !p.value && !z.value), F = b(!1), G = b(), X = b(""), B = b(""), K = ja(n.ctx);
|
|
2433
|
+
let D, P = !1;
|
|
2429
2434
|
const M = (R) => !["queued", "running"].includes(R.state), se = (R) => M(R) && R.state !== "paused", N = (R) => R.state === "running" && R.pauseRequested, le = (R) => N(R) ? a.value.pausing : a.value[`state_${R.state}`], O = (R) => N(R) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[R.state];
|
|
2430
|
-
async function
|
|
2435
|
+
async function Z(R, Y, U = !1) {
|
|
2431
2436
|
try {
|
|
2432
2437
|
return await n.ctx.call(R, Y);
|
|
2433
2438
|
} catch (me) {
|
|
2434
|
-
if (
|
|
2435
|
-
me?.code === "unsupported" ? (
|
|
2439
|
+
if (P || U && (z.value = Se(me))) return;
|
|
2440
|
+
me?.code === "unsupported" ? (p.value = !0, r.value = [], v.value = [], x.value = void 0, $.value = void 0, A.value = void 0, i.value = void 0, C.value = void 0, G.value = void 0, X.value && URL.revokeObjectURL(X.value), X.value = "") : P || (f.value = me);
|
|
2436
2441
|
return;
|
|
2437
2442
|
}
|
|
2438
2443
|
}
|
|
2439
2444
|
async function ie() {
|
|
2440
|
-
if (!(
|
|
2445
|
+
if (!(P || T.value)) {
|
|
2441
2446
|
T.value = !0;
|
|
2442
2447
|
try {
|
|
2443
|
-
const R = await
|
|
2444
|
-
if (!R ||
|
|
2445
|
-
if (
|
|
2448
|
+
const R = await Z("bg.status", void 0, !0);
|
|
2449
|
+
if (!R || P) return;
|
|
2450
|
+
if (z.value = void 0, !R.limits || typeof R.admin != "boolean") {
|
|
2446
2451
|
f.value = { code: "unavailable" };
|
|
2447
2452
|
return;
|
|
2448
2453
|
}
|
|
2449
|
-
|
|
2450
|
-
const Y = await
|
|
2451
|
-
Y && !
|
|
2452
|
-
const U = await
|
|
2453
|
-
U && !
|
|
2454
|
+
p.value = !1, i.value = R;
|
|
2455
|
+
const Y = await Z("bg.jobs.list", void 0, !0);
|
|
2456
|
+
Y && !P && (r.value = Y.jobs ?? []);
|
|
2457
|
+
const U = await Z("bg.schedules.list", void 0, !0);
|
|
2458
|
+
U && !P && (v.value = U.schedules ?? []), !P && r.value.every(M) && v.value.every((me) => !me.enabled) && D && (clearInterval(D), D = void 0);
|
|
2454
2459
|
} finally {
|
|
2455
2460
|
T.value = !1;
|
|
2456
2461
|
}
|
|
@@ -2461,59 +2466,59 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2461
2466
|
ie();
|
|
2462
2467
|
}, 3e3));
|
|
2463
2468
|
}
|
|
2464
|
-
async function
|
|
2469
|
+
async function J(R) {
|
|
2465
2470
|
if (!d.value) {
|
|
2466
2471
|
d.value = !0, f.value = void 0;
|
|
2467
2472
|
try {
|
|
2468
2473
|
await R(), await ie(), (v.value.some((Y) => Y.enabled) || r.value.some((Y) => !M(Y))) && ce();
|
|
2469
2474
|
} finally {
|
|
2470
|
-
|
|
2475
|
+
P || (d.value = !1);
|
|
2471
2476
|
}
|
|
2472
2477
|
}
|
|
2473
2478
|
}
|
|
2474
|
-
const H = () =>
|
|
2479
|
+
const H = () => J(async () => {
|
|
2475
2480
|
if (!C.value) return;
|
|
2476
|
-
await
|
|
2477
|
-
}),
|
|
2478
|
-
x.value = R,
|
|
2479
|
-
}, Ce = () =>
|
|
2480
|
-
if (!x.value || !
|
|
2481
|
-
await
|
|
2482
|
-
}), $e = (R) =>
|
|
2481
|
+
await Z("bg.jobs.purge", { owner: C.value }) && (C.value = void 0);
|
|
2482
|
+
}), W = w(() => [{ value: "3600", label: a.value.hourly }, { value: "86400", label: a.value.daily }, { value: "604800", label: a.value.weekly }]), ye = (R) => {
|
|
2483
|
+
x.value = R, E.value = !1, k.value = "3600";
|
|
2484
|
+
}, Ce = () => J(async () => {
|
|
2485
|
+
if (!x.value || !E.value) return;
|
|
2486
|
+
await Z("bg.schedules.create", { key: da(), jobId: x.value.id, intervalSeconds: Number(k.value), consent: !0 }) && (x.value = void 0);
|
|
2487
|
+
}), $e = (R) => J(() => Z("bg.schedules.disable", { id: R })), ee = () => J(async () => {
|
|
2483
2488
|
if (!$.value) return;
|
|
2484
|
-
await
|
|
2485
|
-
}), ue = () =>
|
|
2486
|
-
if (!
|
|
2487
|
-
await
|
|
2489
|
+
await Z("bg.schedules.delete", { id: $.value.id }) && ($.value = void 0);
|
|
2490
|
+
}), ue = () => J(async () => {
|
|
2491
|
+
if (!A.value) return;
|
|
2492
|
+
await Z("bg.schedules.enable", { id: A.value.id, consent: !0 }) && (A.value = void 0);
|
|
2488
2493
|
}), oe = (R) => {
|
|
2489
2494
|
const Y = new Date(R);
|
|
2490
2495
|
return Number.isFinite(Y.getTime()) ? Y.toLocaleString() : a.value.unknownTime;
|
|
2491
|
-
}, ke = (R) => R.copyRetained && R.state === "succeeded" && !R.scheduleId && R.submitter?.user === i.value?.owner?.user && R.submitter?.uid === i.value?.owner?.uid, Ee = (R) =>
|
|
2496
|
+
}, ke = (R) => R.copyRetained && R.state === "succeeded" && !R.scheduleId && R.submitter?.user === i.value?.owner?.user && R.submitter?.uid === i.value?.owner?.uid, Ee = (R) => J(() => Z("bg.jobs.cancel", { id: R })), L = (R) => J(() => Z("bg.jobs.pause", { id: R })), V = (R) => J(() => Z("bg.jobs.resume", { id: R })), q = (R) => {
|
|
2492
2497
|
const Y = R.lastIndexOf("/");
|
|
2493
2498
|
G.value = { folder: R.slice(0, Y), relative: R.slice(Y + 1) };
|
|
2494
|
-
}, te = () =>
|
|
2499
|
+
}, te = () => J(async () => {
|
|
2495
2500
|
if (!G.value) return;
|
|
2496
|
-
await
|
|
2501
|
+
await Z("bg.jobs.submit", { key: da(), ...G.value }) && (G.value = void 0);
|
|
2497
2502
|
});
|
|
2498
2503
|
async function fe(R) {
|
|
2499
|
-
const Y = await
|
|
2500
|
-
!Y ||
|
|
2504
|
+
const Y = await Z("bg.jobs.result", { id: R.id });
|
|
2505
|
+
!Y || P || (X.value && URL.revokeObjectURL(X.value), X.value = URL.createObjectURL(new Blob([JSON.stringify(Y.result, null, 2)], { type: "application/json" })), B.value = `${R.name || R.id}.sha256.json`);
|
|
2501
2506
|
}
|
|
2502
|
-
return He(() =>
|
|
2507
|
+
return He(() => z.value, ie), c({ refresh: ie }), we(() => {
|
|
2503
2508
|
ie().then(() => {
|
|
2504
2509
|
(v.value.some((R) => R.enabled) || r.value.some((R) => !M(R))) && ce();
|
|
2505
2510
|
});
|
|
2506
2511
|
}), ge(() => {
|
|
2507
|
-
|
|
2512
|
+
P = !0, K.dispose(), D && clearInterval(D), X.value && URL.revokeObjectURL(X.value);
|
|
2508
2513
|
}), (R, Y) => (l(), g(e(_e), {
|
|
2509
2514
|
"aria-busy": d.value || T.value || ae.value,
|
|
2510
2515
|
title: a.value.title,
|
|
2511
|
-
description:
|
|
2516
|
+
description: p.value ? void 0 : a.value.help,
|
|
2512
2517
|
collapsible: !1,
|
|
2513
2518
|
"data-background-panel": ""
|
|
2514
2519
|
}, {
|
|
2515
2520
|
default: s(() => [
|
|
2516
|
-
|
|
2521
|
+
p.value ? (l(), g(e(Q), {
|
|
2517
2522
|
key: 0,
|
|
2518
2523
|
tone: "warning"
|
|
2519
2524
|
}, {
|
|
@@ -2521,14 +2526,14 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2521
2526
|
h(o(a.value.unsupported), 1)
|
|
2522
2527
|
]),
|
|
2523
2528
|
_: 1
|
|
2524
|
-
})) : (l(), _(
|
|
2525
|
-
|
|
2529
|
+
})) : (l(), _(j, { key: 1 }, [
|
|
2530
|
+
z.value ? (l(), g(e(Q), {
|
|
2526
2531
|
key: 0,
|
|
2527
2532
|
tone: "info",
|
|
2528
2533
|
role: "status"
|
|
2529
2534
|
}, {
|
|
2530
2535
|
default: s(() => [
|
|
2531
|
-
h(o(e(Ve)(
|
|
2536
|
+
h(o(e(Ve)(z.value, t.ctx.locale)), 1)
|
|
2532
2537
|
]),
|
|
2533
2538
|
_: 1
|
|
2534
2539
|
})) : y("", !0),
|
|
@@ -2538,22 +2543,22 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2538
2543
|
role: "alert"
|
|
2539
2544
|
}, {
|
|
2540
2545
|
default: s(() => [
|
|
2541
|
-
h(o(e(
|
|
2546
|
+
h(o(e(et)(f.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
|
|
2542
2547
|
]),
|
|
2543
2548
|
_: 1
|
|
2544
2549
|
})) : y("", !0),
|
|
2545
|
-
ae.value ? (l(), _(
|
|
2546
|
-
(l(), _(
|
|
2550
|
+
ae.value ? (l(), _(j, { key: 2 }, [
|
|
2551
|
+
(l(), _(j, null, pe(["14rem", "24rem", "18rem", "24rem"], (U, me) => S("p", {
|
|
2547
2552
|
key: me,
|
|
2548
2553
|
"data-placeholder-row": ""
|
|
2549
2554
|
}, [
|
|
2550
|
-
|
|
2555
|
+
m(e(Ne), {
|
|
2551
2556
|
width: U,
|
|
2552
2557
|
height: "20px"
|
|
2553
2558
|
}, null, 8, ["width"])
|
|
2554
2559
|
])), 64)),
|
|
2555
|
-
S("div",
|
|
2556
|
-
|
|
2560
|
+
S("div", yn, [
|
|
2561
|
+
m(e(I), {
|
|
2557
2562
|
variant: "secondary",
|
|
2558
2563
|
disabled: ""
|
|
2559
2564
|
}, {
|
|
@@ -2562,7 +2567,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2562
2567
|
]),
|
|
2563
2568
|
_: 1
|
|
2564
2569
|
}),
|
|
2565
|
-
|
|
2570
|
+
m(e(I), {
|
|
2566
2571
|
variant: "primary",
|
|
2567
2572
|
disabled: ""
|
|
2568
2573
|
}, {
|
|
@@ -2573,13 +2578,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2573
2578
|
})
|
|
2574
2579
|
])
|
|
2575
2580
|
], 64)) : y("", !0),
|
|
2576
|
-
i.value ? (l(), _(
|
|
2577
|
-
S("p",
|
|
2578
|
-
S("p",
|
|
2579
|
-
S("p",
|
|
2580
|
-
S("p",
|
|
2581
|
-
S("div",
|
|
2582
|
-
|
|
2581
|
+
i.value ? (l(), _(j, { key: 3 }, [
|
|
2582
|
+
S("p", bn, o(i.value.worker?.alive ? u(a.value.workerRunning, { user: i.value.worker.username }) : a.value.workerStopped), 1),
|
|
2583
|
+
S("p", gn, o(u(a.value.limits, { size: i.value.limits.maxInputBytes / 1024, queue: i.value.limits.maxQueued, seconds: i.value.limits.jobTimeoutSeconds })), 1),
|
|
2584
|
+
S("p", hn, o(i.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
|
|
2585
|
+
S("p", kn, o(u(a.value.ownerLimits, { jobs: i.value.limits.maxOwnerPending, size: i.value.limits.maxOwnerBytes / 1024 })), 1),
|
|
2586
|
+
S("div", _n, [
|
|
2587
|
+
m(e(I), {
|
|
2583
2588
|
variant: "secondary",
|
|
2584
2589
|
disabled: d.value,
|
|
2585
2590
|
onClick: Y[0] || (Y[0] = (U) => F.value = !0)
|
|
@@ -2589,7 +2594,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2589
2594
|
]),
|
|
2590
2595
|
_: 1
|
|
2591
2596
|
}, 8, ["disabled"]),
|
|
2592
|
-
|
|
2597
|
+
m(e(I), {
|
|
2593
2598
|
variant: "primary",
|
|
2594
2599
|
disabled: d.value || !G.value,
|
|
2595
2600
|
onClick: te
|
|
@@ -2600,13 +2605,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2600
2605
|
_: 1
|
|
2601
2606
|
}, 8, ["disabled"])
|
|
2602
2607
|
]),
|
|
2603
|
-
G.value ? (l(), _("p",
|
|
2608
|
+
G.value ? (l(), _("p", wn, [
|
|
2604
2609
|
h(o(u(a.value.chosen, { path: "" }).trim()) + " ", 1),
|
|
2605
|
-
|
|
2610
|
+
m(e(Le), {
|
|
2606
2611
|
path: `${G.value.folder}/${G.value.relative}`
|
|
2607
2612
|
}, null, 8, ["path"])
|
|
2608
2613
|
])) : y("", !0),
|
|
2609
|
-
|
|
2614
|
+
m(ia, {
|
|
2610
2615
|
open: F.value,
|
|
2611
2616
|
"onUpdate:open": Y[1] || (Y[1] = (U) => F.value = U),
|
|
2612
2617
|
locale: t.ctx.locale,
|
|
@@ -2623,8 +2628,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2623
2628
|
}, {
|
|
2624
2629
|
default: s(() => [
|
|
2625
2630
|
S("p", null, o(u(a.value.purgeConfirm, { user: C.value.user, uid: C.value.uid })), 1),
|
|
2626
|
-
S("div",
|
|
2627
|
-
|
|
2631
|
+
S("div", xn, [
|
|
2632
|
+
m(e(I), {
|
|
2628
2633
|
variant: "secondary",
|
|
2629
2634
|
disabled: d.value,
|
|
2630
2635
|
onClick: H
|
|
@@ -2634,7 +2639,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2634
2639
|
]),
|
|
2635
2640
|
_: 1
|
|
2636
2641
|
}, 8, ["disabled"]),
|
|
2637
|
-
|
|
2642
|
+
m(e(I), {
|
|
2638
2643
|
variant: "secondary",
|
|
2639
2644
|
disabled: d.value,
|
|
2640
2645
|
onClick: Y[2] || (Y[2] = (U) => C.value = void 0)
|
|
@@ -2648,8 +2653,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2648
2653
|
]),
|
|
2649
2654
|
_: 1
|
|
2650
2655
|
})) : y("", !0),
|
|
2651
|
-
r.value.length ? (l(), _("div",
|
|
2652
|
-
(l(!0), _(
|
|
2656
|
+
r.value.length ? (l(), _("div", $n, [
|
|
2657
|
+
(l(!0), _(j, null, pe(r.value, (U) => (l(), g(e(xa), {
|
|
2653
2658
|
key: U.id,
|
|
2654
2659
|
title: U.name,
|
|
2655
2660
|
"layout-type": "compact",
|
|
@@ -2657,7 +2662,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2657
2662
|
"data-job-id": U.id
|
|
2658
2663
|
}, {
|
|
2659
2664
|
"header-actions": s(() => [
|
|
2660
|
-
|
|
2665
|
+
m(e(We), {
|
|
2661
2666
|
tone: O(U),
|
|
2662
2667
|
"data-bg-state": ""
|
|
2663
2668
|
}, {
|
|
@@ -2668,18 +2673,18 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2668
2673
|
}, 1032, ["tone"])
|
|
2669
2674
|
]),
|
|
2670
2675
|
default: s(() => [
|
|
2671
|
-
S("div",
|
|
2672
|
-
U.progress?.total ? (l(), _("span",
|
|
2673
|
-
U.progress?.totalBytes ? (l(), _("span",
|
|
2674
|
-
U.progress?.item ? (l(), _("span",
|
|
2676
|
+
S("div", Sn, [
|
|
2677
|
+
U.progress?.total ? (l(), _("span", Pn, o(u(a.value.progressItems, { done: U.progress.done, count: U.progress.total })), 1)) : y("", !0),
|
|
2678
|
+
U.progress?.totalBytes ? (l(), _("span", En, o(u(a.value.progressBytes, { done: e(va)(U.progress.bytes, t.ctx.locale), total: e(va)(U.progress.totalBytes, t.ctx.locale) })), 1)) : y("", !0),
|
|
2679
|
+
U.progress?.item ? (l(), _("span", Tn, [
|
|
2675
2680
|
h(o(u(a.value.progressItem, { item: "" }).trim()) + " ", 1),
|
|
2676
|
-
|
|
2681
|
+
m(e(Le), {
|
|
2677
2682
|
path: U.progress.item
|
|
2678
2683
|
}, null, 8, ["path"])
|
|
2679
2684
|
])) : y("", !0),
|
|
2680
|
-
i.value.admin && U.submitter ? (l(), _("span",
|
|
2685
|
+
i.value.admin && U.submitter ? (l(), _("span", An, o(u(a.value.owner, { user: U.submitter.user, uid: U.submitter.uid })), 1)) : y("", !0),
|
|
2681
2686
|
U.scheduleId ? (l(), _("span", zn, o(a.value.scheduledJob), 1)) : y("", !0),
|
|
2682
|
-
S("div",
|
|
2687
|
+
S("div", Rn, [
|
|
2683
2688
|
i.value.admin && U.submitter ? (l(), g(e(I), {
|
|
2684
2689
|
key: 0,
|
|
2685
2690
|
variant: "secondary",
|
|
@@ -2751,8 +2756,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2751
2756
|
]),
|
|
2752
2757
|
_: 2
|
|
2753
2758
|
}, 1032, ["title", "data-job-state", "data-job-id"]))), 128))
|
|
2754
|
-
])) : (l(), _("p",
|
|
2755
|
-
|
|
2759
|
+
])) : (l(), _("p", Cn, o(a.value.noJobs), 1)),
|
|
2760
|
+
m(e(_e), {
|
|
2756
2761
|
"data-bg-schedules": "",
|
|
2757
2762
|
class: "bg-schedules",
|
|
2758
2763
|
title: a.value.schedulesTitle,
|
|
@@ -2767,40 +2772,40 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2767
2772
|
}, {
|
|
2768
2773
|
default: s(() => [
|
|
2769
2774
|
S("p", null, o(u(a.value.scheduleSource, { name: x.value.name })), 1),
|
|
2770
|
-
|
|
2775
|
+
m(e(Pe), {
|
|
2771
2776
|
label: a.value.interval
|
|
2772
2777
|
}, {
|
|
2773
2778
|
default: s(() => [
|
|
2774
|
-
|
|
2779
|
+
m(e(ba), {
|
|
2775
2780
|
modelValue: k.value,
|
|
2776
2781
|
"onUpdate:modelValue": Y[3] || (Y[3] = (U) => k.value = U),
|
|
2777
2782
|
"data-schedule-interval": "",
|
|
2778
|
-
options:
|
|
2783
|
+
options: W.value,
|
|
2779
2784
|
disabled: d.value
|
|
2780
2785
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
2781
2786
|
]),
|
|
2782
2787
|
_: 1
|
|
2783
2788
|
}, 8, ["label"]),
|
|
2784
|
-
|
|
2785
|
-
modelValue:
|
|
2786
|
-
"onUpdate:modelValue": Y[4] || (Y[4] = (U) =>
|
|
2789
|
+
m(e(Pt), {
|
|
2790
|
+
modelValue: E.value,
|
|
2791
|
+
"onUpdate:modelValue": Y[4] || (Y[4] = (U) => E.value = U),
|
|
2787
2792
|
"data-schedule-consent": "",
|
|
2788
2793
|
disabled: d.value,
|
|
2789
2794
|
label: a.value.scheduleConsent
|
|
2790
2795
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
2791
|
-
|
|
2796
|
+
m(e(oa), null, {
|
|
2792
2797
|
default: s(() => [
|
|
2793
|
-
|
|
2798
|
+
m(e(I), {
|
|
2794
2799
|
type: "submit",
|
|
2795
2800
|
variant: "primary",
|
|
2796
|
-
disabled: d.value || !
|
|
2801
|
+
disabled: d.value || !E.value
|
|
2797
2802
|
}, {
|
|
2798
2803
|
default: s(() => [
|
|
2799
2804
|
h(o(a.value.createSchedule), 1)
|
|
2800
2805
|
]),
|
|
2801
2806
|
_: 1
|
|
2802
2807
|
}, 8, ["disabled"]),
|
|
2803
|
-
|
|
2808
|
+
m(e(I), {
|
|
2804
2809
|
type: "button",
|
|
2805
2810
|
variant: "secondary",
|
|
2806
2811
|
disabled: d.value,
|
|
@@ -2817,15 +2822,15 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2817
2822
|
]),
|
|
2818
2823
|
_: 1
|
|
2819
2824
|
})) : y("", !0),
|
|
2820
|
-
v.value.length ? (l(), _("div",
|
|
2821
|
-
(l(!0), _(
|
|
2825
|
+
v.value.length ? (l(), _("div", In, [
|
|
2826
|
+
(l(!0), _(j, null, pe(v.value, (U) => (l(), g(e(xa), {
|
|
2822
2827
|
key: U.id,
|
|
2823
2828
|
title: U.name,
|
|
2824
2829
|
"layout-type": "compact",
|
|
2825
2830
|
"data-schedule-id": U.id
|
|
2826
2831
|
}, {
|
|
2827
2832
|
"header-actions": s(() => [
|
|
2828
|
-
|
|
2833
|
+
m(e(We), {
|
|
2829
2834
|
tone: U.enabled ? "success" : "neutral",
|
|
2830
2835
|
"data-bg-state": ""
|
|
2831
2836
|
}, {
|
|
@@ -2836,10 +2841,10 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2836
2841
|
}, 1032, ["tone"])
|
|
2837
2842
|
]),
|
|
2838
2843
|
default: s(() => [
|
|
2839
|
-
S("div",
|
|
2840
|
-
i.value.admin ? (l(), _("span",
|
|
2841
|
-
U.enabled ? (l(), _("span",
|
|
2842
|
-
S("span",
|
|
2844
|
+
S("div", Dn, [
|
|
2845
|
+
i.value.admin ? (l(), _("span", Nn, o(u(a.value.owner, { user: U.owner.user, uid: U.owner.uid })), 1)) : y("", !0),
|
|
2846
|
+
U.enabled ? (l(), _("span", Ln, o(u(a.value.nextRun, { time: oe(U.nextAt) })), 1)) : y("", !0),
|
|
2847
|
+
S("span", Vn, o(u(a.value.missedRuns, { count: U.missed })), 1),
|
|
2843
2848
|
U.reason === "worker-changed" ? (l(), g(e(Q), {
|
|
2844
2849
|
key: 2,
|
|
2845
2850
|
tone: "warning"
|
|
@@ -2857,7 +2862,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2857
2862
|
]),
|
|
2858
2863
|
_: 1
|
|
2859
2864
|
})) : y("", !0),
|
|
2860
|
-
S("div",
|
|
2865
|
+
S("div", Bn, [
|
|
2861
2866
|
U.enabled ? (l(), g(e(I), {
|
|
2862
2867
|
key: 0,
|
|
2863
2868
|
variant: "secondary",
|
|
@@ -2872,14 +2877,14 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2872
2877
|
key: 1,
|
|
2873
2878
|
variant: "secondary",
|
|
2874
2879
|
disabled: d.value,
|
|
2875
|
-
onClick: (me) =>
|
|
2880
|
+
onClick: (me) => A.value = U
|
|
2876
2881
|
}, {
|
|
2877
2882
|
default: s(() => [
|
|
2878
2883
|
h(o(a.value.enableSchedule), 1)
|
|
2879
2884
|
]),
|
|
2880
2885
|
_: 1
|
|
2881
2886
|
}, 8, ["disabled", "onClick"])) : y("", !0),
|
|
2882
|
-
|
|
2887
|
+
m(e(I), {
|
|
2883
2888
|
variant: "secondary",
|
|
2884
2889
|
disabled: d.value,
|
|
2885
2890
|
onClick: (me) => $.value = U
|
|
@@ -2894,15 +2899,15 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2894
2899
|
]),
|
|
2895
2900
|
_: 2
|
|
2896
2901
|
}, 1032, ["title", "data-schedule-id"]))), 128))
|
|
2897
|
-
])) : (l(), _("p",
|
|
2902
|
+
])) : (l(), _("p", Un, o(a.value.noSchedules), 1)),
|
|
2898
2903
|
$.value ? (l(), g(e(Q), {
|
|
2899
2904
|
key: 3,
|
|
2900
2905
|
tone: "warning"
|
|
2901
2906
|
}, {
|
|
2902
2907
|
default: s(() => [
|
|
2903
2908
|
S("p", null, o(u(a.value.deleteScheduleConsent, { name: $.value.name })), 1),
|
|
2904
|
-
S("div",
|
|
2905
|
-
|
|
2909
|
+
S("div", Fn, [
|
|
2910
|
+
m(e(I), {
|
|
2906
2911
|
variant: "danger",
|
|
2907
2912
|
disabled: d.value,
|
|
2908
2913
|
onClick: ee
|
|
@@ -2912,7 +2917,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2912
2917
|
]),
|
|
2913
2918
|
_: 1
|
|
2914
2919
|
}, 8, ["disabled"]),
|
|
2915
|
-
|
|
2920
|
+
m(e(I), {
|
|
2916
2921
|
variant: "secondary",
|
|
2917
2922
|
disabled: d.value,
|
|
2918
2923
|
onClick: Y[6] || (Y[6] = (U) => $.value = void 0)
|
|
@@ -2926,14 +2931,14 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2926
2931
|
]),
|
|
2927
2932
|
_: 1
|
|
2928
2933
|
})) : y("", !0),
|
|
2929
|
-
|
|
2934
|
+
A.value ? (l(), g(e(Q), {
|
|
2930
2935
|
key: 4,
|
|
2931
2936
|
tone: "warning"
|
|
2932
2937
|
}, {
|
|
2933
2938
|
default: s(() => [
|
|
2934
|
-
S("p", null, o(u(a.value.enableScheduleConsent, { name:
|
|
2935
|
-
S("div",
|
|
2936
|
-
|
|
2939
|
+
S("p", null, o(u(a.value.enableScheduleConsent, { name: A.value.name })), 1),
|
|
2940
|
+
S("div", On, [
|
|
2941
|
+
m(e(I), {
|
|
2937
2942
|
variant: "primary",
|
|
2938
2943
|
disabled: d.value,
|
|
2939
2944
|
onClick: ue
|
|
@@ -2943,10 +2948,10 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2943
2948
|
]),
|
|
2944
2949
|
_: 1
|
|
2945
2950
|
}, 8, ["disabled"]),
|
|
2946
|
-
|
|
2951
|
+
m(e(I), {
|
|
2947
2952
|
variant: "secondary",
|
|
2948
2953
|
disabled: d.value,
|
|
2949
|
-
onClick: Y[7] || (Y[7] = (U) =>
|
|
2954
|
+
onClick: Y[7] || (Y[7] = (U) => A.value = void 0)
|
|
2950
2955
|
}, {
|
|
2951
2956
|
default: s(() => [
|
|
2952
2957
|
h(o(a.value.cancel), 1)
|
|
@@ -2976,13 +2981,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2976
2981
|
_: 1
|
|
2977
2982
|
}, 8, ["aria-busy", "title", "description"]));
|
|
2978
2983
|
}
|
|
2979
|
-
}),
|
|
2984
|
+
}), Ms = /* @__PURE__ */ ve(qn, [["__scopeId", "data-v-85ff7ec5"]]), Mn = ["inert", "aria-hidden"], Kn = {
|
|
2980
2985
|
key: 3,
|
|
2981
2986
|
class: "executor-approval"
|
|
2982
|
-
},
|
|
2987
|
+
}, Hn = {
|
|
2983
2988
|
key: 0,
|
|
2984
2989
|
class: "executor-brand"
|
|
2985
|
-
},
|
|
2990
|
+
}, Gn = ["src"], Xn = /* @__PURE__ */ de({
|
|
2986
2991
|
__name: "ExecutorApproval",
|
|
2987
2992
|
props: {
|
|
2988
2993
|
admin: { type: Boolean },
|
|
@@ -2999,43 +3004,43 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
2999
3004
|
function f(k) {
|
|
3000
3005
|
i.value = k, u.value = k.state;
|
|
3001
3006
|
}
|
|
3002
|
-
let
|
|
3007
|
+
let p = !1, d;
|
|
3003
3008
|
async function v() {
|
|
3004
3009
|
try {
|
|
3005
3010
|
const k = await n.status();
|
|
3006
|
-
|
|
3011
|
+
p || f(k);
|
|
3007
3012
|
} catch {
|
|
3008
|
-
|
|
3013
|
+
p || (i.value = void 0, u.value = "blocked");
|
|
3009
3014
|
}
|
|
3010
3015
|
}
|
|
3011
|
-
const x = w(() => Se(i.value)),
|
|
3012
|
-
return Oe(
|
|
3016
|
+
const x = w(() => Se(i.value)), E = w(() => !!c.preload && !!n && (u.value === "ready" || u.value === "checking"));
|
|
3017
|
+
return Oe(Fa, w(() => E.value && u.value === "checking")), He(() => x.value, v), we(() => {
|
|
3013
3018
|
n && (n.subscribe?.((k) => {
|
|
3014
|
-
!
|
|
3019
|
+
!p && !ta(k) && f(k);
|
|
3015
3020
|
}), d = c.ctx?.reopen(() => {
|
|
3016
3021
|
v();
|
|
3017
3022
|
}), v());
|
|
3018
3023
|
}), ge(() => {
|
|
3019
|
-
|
|
3020
|
-
}), (k, $) => (l(), _(
|
|
3021
|
-
|
|
3024
|
+
p = !0, d?.();
|
|
3025
|
+
}), (k, $) => (l(), _(j, null, [
|
|
3026
|
+
E.value ? (l(), _("div", {
|
|
3022
3027
|
key: 0,
|
|
3023
3028
|
class: De(["executor-pages", { "executor-preloading": u.value === "checking" }]),
|
|
3024
3029
|
inert: u.value === "checking" || void 0,
|
|
3025
3030
|
"aria-hidden": u.value === "checking" ? "true" : void 0
|
|
3026
3031
|
}, [
|
|
3027
3032
|
he(k.$slots, "default", {}, void 0, !0)
|
|
3028
|
-
], 10,
|
|
3029
|
-
e(n) && u.value === "checking" ? (l(), g(e(
|
|
3033
|
+
], 10, Mn)) : !e(n) || u.value === "ready" ? he(k.$slots, "default", {}, void 0, !0, 1) : y("", !0),
|
|
3034
|
+
e(n) && u.value === "checking" ? (l(), g(e(Ba), {
|
|
3030
3035
|
key: 2,
|
|
3031
3036
|
text: a.value.loading
|
|
3032
|
-
}, null, 8, ["text"])) : e(n) && u.value !== "ready" ? (l(), _("div",
|
|
3033
|
-
r.value ? (l(), _("header",
|
|
3037
|
+
}, null, 8, ["text"])) : e(n) && u.value !== "ready" ? (l(), _("div", Kn, [
|
|
3038
|
+
r.value ? (l(), _("header", Hn, [
|
|
3034
3039
|
r.value.appIcon ? (l(), _("img", {
|
|
3035
3040
|
key: 0,
|
|
3036
3041
|
src: r.value.appIcon,
|
|
3037
3042
|
alt: ""
|
|
3038
|
-
}, null, 8,
|
|
3043
|
+
}, null, 8, Gn)) : y("", !0),
|
|
3039
3044
|
S("span", null, o(r.value.displayName), 1)
|
|
3040
3045
|
])) : y("", !0),
|
|
3041
3046
|
x.value ? (l(), g(e(Q), {
|
|
@@ -3047,7 +3052,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3047
3052
|
h(o(e(Ve)(x.value, t.locale)), 1)
|
|
3048
3053
|
]),
|
|
3049
3054
|
_: 1
|
|
3050
|
-
})) : t.admin ? (l(), g(
|
|
3055
|
+
})) : t.admin ? (l(), g(Ka, {
|
|
3051
3056
|
key: 2,
|
|
3052
3057
|
admin: !0,
|
|
3053
3058
|
locale: t.locale,
|
|
@@ -3074,54 +3079,54 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3074
3079
|
])) : y("", !0)
|
|
3075
3080
|
], 64));
|
|
3076
3081
|
}
|
|
3077
|
-
}),
|
|
3082
|
+
}), Ks = /* @__PURE__ */ ve(Xn, [["__scopeId", "data-v-da0bbc2c"]]), Jn = {
|
|
3078
3083
|
key: 2,
|
|
3079
3084
|
role: "status"
|
|
3080
3085
|
}, Wn = {
|
|
3081
3086
|
key: 3,
|
|
3082
3087
|
role: "status"
|
|
3083
|
-
},
|
|
3088
|
+
}, Yn = {
|
|
3084
3089
|
key: 0,
|
|
3085
3090
|
role: "status",
|
|
3086
3091
|
class: "destination"
|
|
3087
|
-
},
|
|
3092
|
+
}, Qn = {
|
|
3088
3093
|
key: 0,
|
|
3089
3094
|
"data-placeholder-row": ""
|
|
3090
|
-
},
|
|
3095
|
+
}, Zn = { key: 1 }, jn = {
|
|
3091
3096
|
key: 2,
|
|
3092
3097
|
role: "list"
|
|
3093
|
-
},
|
|
3098
|
+
}, es = {
|
|
3094
3099
|
key: 0,
|
|
3095
3100
|
"data-placeholder-row": ""
|
|
3096
|
-
},
|
|
3101
|
+
}, as = { key: 1 }, ts = {
|
|
3097
3102
|
key: 2,
|
|
3098
3103
|
role: "list"
|
|
3099
|
-
},
|
|
3104
|
+
}, ls = /* @__PURE__ */ de({
|
|
3100
3105
|
__name: "DelegatePanel",
|
|
3101
3106
|
props: {
|
|
3102
3107
|
ctx: {}
|
|
3103
3108
|
},
|
|
3104
3109
|
setup(t, { expose: c }) {
|
|
3105
|
-
const n = t, a = w(() => Re(n.ctx.locale)), u = w(() =>
|
|
3106
|
-
let C = !1, T,
|
|
3110
|
+
const n = t, a = w(() => Re(n.ctx.locale)), u = w(() => ma(n.ctx.locale)), i = za(n.ctx), r = b(), f = b([]), p = b([]), d = b(!1), v = b(), x = b(""), E = b(!1), k = b(""), $ = b(""), A = b("");
|
|
3111
|
+
let C = !1, T, z;
|
|
3107
3112
|
const ae = b();
|
|
3108
|
-
qe([$, k,
|
|
3109
|
-
|
|
3113
|
+
qe([$, k, A], () => {
|
|
3114
|
+
z = void 0;
|
|
3110
3115
|
}, { flush: "sync" });
|
|
3111
|
-
const F = (
|
|
3116
|
+
const F = (J) => ["queued", "running", "waiting_executor"].includes(J.state), G = { waiting_executor: "info", queued: "info", running: "info", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }, X = w(() => p.value.some((J) => J.state === "waiting_executor")), B = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = w(() => X.value && B.includes(v.value?.code ?? "")), D = w(() => !r.value && !v.value && !ae.value), P = w(() => r.value && r.value.state !== "ready" && !(X.value && r.value.state === "needs-admin-approval" && B.includes(r.value.reason ?? "")));
|
|
3112
3117
|
async function M() {
|
|
3113
3118
|
if (C) return;
|
|
3114
|
-
const [
|
|
3119
|
+
const [J, H, W] = await Promise.allSettled([n.ctx.call("delegate.status"), n.ctx.call("delegate.list"), n.ctx.call("delegate.jobs.list")]);
|
|
3115
3120
|
if (C) return;
|
|
3116
|
-
|
|
3117
|
-
const ye = [
|
|
3121
|
+
J.status === "fulfilled" && (r.value = J.value), H.status === "fulfilled" && (f.value = (H.value.delegations ?? []).filter((Ce) => !Ce.revoked)), W.status === "fulfilled" && (p.value = W.value.jobs ?? []);
|
|
3122
|
+
const ye = [J, H, W].find((Ce) => Ce.status === "rejected");
|
|
3118
3123
|
if (ae.value = ye && Se(ye.reason), ye && !ae.value) throw ye.reason;
|
|
3119
3124
|
}
|
|
3120
|
-
async function se(
|
|
3125
|
+
async function se(J) {
|
|
3121
3126
|
if (!(d.value || C)) {
|
|
3122
3127
|
d.value = !0, v.value = void 0;
|
|
3123
3128
|
try {
|
|
3124
|
-
await
|
|
3129
|
+
await J();
|
|
3125
3130
|
} catch (H) {
|
|
3126
3131
|
C || (v.value = H);
|
|
3127
3132
|
} finally {
|
|
@@ -3131,24 +3136,24 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3131
3136
|
}
|
|
3132
3137
|
const N = () => se(M);
|
|
3133
3138
|
He(() => ae.value, N);
|
|
3134
|
-
const le = (
|
|
3135
|
-
await n.ctx.call("delegate.revoke", { delegation_id:
|
|
3136
|
-
}), O = (
|
|
3137
|
-
const H = await n.ctx.call("delegate.jobs.cancel", { id:
|
|
3139
|
+
const le = (J) => se(async () => {
|
|
3140
|
+
await n.ctx.call("delegate.revoke", { delegation_id: J }), await M();
|
|
3141
|
+
}), O = (J) => se(async () => {
|
|
3142
|
+
const H = await n.ctx.call("delegate.jobs.cancel", { id: J });
|
|
3138
3143
|
C || (x.value = H.revocation_pending ? a.value.pending : ""), await M();
|
|
3139
|
-
}),
|
|
3140
|
-
|
|
3141
|
-
}), ce = (
|
|
3142
|
-
const H = new Date(
|
|
3144
|
+
}), Z = w(() => r.value?.state === "ready" && !!k.value && !!$.value && !!A.value), ie = () => se(async () => {
|
|
3145
|
+
Z.value && (await n.ctx.call("delegate.jobs.submit", { key: z ?? (z = da()), url: $.value, dest: k.value, name: A.value }), C || ($.value = "", A.value = "", k.value = ""), await M());
|
|
3146
|
+
}), ce = (J) => {
|
|
3147
|
+
const H = new Date(J);
|
|
3143
3148
|
return Number.isNaN(H.getTime()) ? "—" : H.toLocaleString(n.ctx.locale);
|
|
3144
3149
|
};
|
|
3145
3150
|
return c({ refresh: N }), we(() => {
|
|
3146
3151
|
N(), T = setInterval(() => {
|
|
3147
|
-
|
|
3152
|
+
p.value.some(F) && N();
|
|
3148
3153
|
}, 3e3);
|
|
3149
3154
|
}), ge(() => {
|
|
3150
3155
|
C = !0, T && clearInterval(T), i.dispose();
|
|
3151
|
-
}), (
|
|
3156
|
+
}), (J, H) => (l(), g(e(_e), {
|
|
3152
3157
|
title: a.value.title,
|
|
3153
3158
|
description: a.value.help,
|
|
3154
3159
|
collapsible: !1,
|
|
@@ -3162,7 +3167,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3162
3167
|
role: "alert"
|
|
3163
3168
|
}, {
|
|
3164
3169
|
default: s(() => [
|
|
3165
|
-
h(o(e(
|
|
3170
|
+
h(o(e(at)(v.value, t.ctx.locale) ?? e(tt)(v.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
|
|
3166
3171
|
]),
|
|
3167
3172
|
_: 1
|
|
3168
3173
|
})) : y("", !0),
|
|
@@ -3176,37 +3181,37 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3176
3181
|
]),
|
|
3177
3182
|
_: 1
|
|
3178
3183
|
})) : y("", !0),
|
|
3179
|
-
x.value ? (l(), _("p",
|
|
3180
|
-
|
|
3181
|
-
|
|
3184
|
+
x.value ? (l(), _("p", Jn, o(x.value), 1)) : y("", !0),
|
|
3185
|
+
P.value ? (l(), _("p", Wn, o(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : y("", !0),
|
|
3186
|
+
m(e(Ke), {
|
|
3182
3187
|
direction: "vertical",
|
|
3183
3188
|
onSubmit: Me(ie, ["prevent"])
|
|
3184
3189
|
}, {
|
|
3185
3190
|
default: s(() => [
|
|
3186
|
-
|
|
3191
|
+
m(e(Pe), {
|
|
3187
3192
|
label: a.value.url,
|
|
3188
3193
|
"label-for": "delegate-url"
|
|
3189
3194
|
}, {
|
|
3190
3195
|
default: s(() => [
|
|
3191
|
-
|
|
3196
|
+
m(e(ze), {
|
|
3192
3197
|
id: "delegate-url",
|
|
3193
3198
|
modelValue: $.value,
|
|
3194
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
3199
|
+
"onUpdate:modelValue": H[0] || (H[0] = (W) => $.value = W),
|
|
3195
3200
|
type: "url",
|
|
3196
3201
|
disabled: d.value || r.value?.state !== "ready"
|
|
3197
3202
|
}, null, 8, ["modelValue", "disabled"])
|
|
3198
3203
|
]),
|
|
3199
3204
|
_: 1
|
|
3200
3205
|
}, 8, ["label"]),
|
|
3201
|
-
|
|
3206
|
+
m(e(Pe), {
|
|
3202
3207
|
label: a.value.name,
|
|
3203
3208
|
"label-for": "delegate-name"
|
|
3204
3209
|
}, {
|
|
3205
3210
|
default: s(() => [
|
|
3206
|
-
|
|
3211
|
+
m(e(ze), {
|
|
3207
3212
|
id: "delegate-name",
|
|
3208
|
-
modelValue:
|
|
3209
|
-
"onUpdate:modelValue": H[1] || (H[1] = (
|
|
3213
|
+
modelValue: A.value,
|
|
3214
|
+
"onUpdate:modelValue": H[1] || (H[1] = (W) => A.value = W),
|
|
3210
3215
|
"data-file-name": "",
|
|
3211
3216
|
disabled: d.value || r.value?.state !== "ready"
|
|
3212
3217
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -3214,27 +3219,27 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3214
3219
|
_: 1
|
|
3215
3220
|
}, 8, ["label"]),
|
|
3216
3221
|
S("p", null, o(a.value.size), 1),
|
|
3217
|
-
k.value ? (l(), _("p",
|
|
3222
|
+
k.value ? (l(), _("p", Yn, [
|
|
3218
3223
|
h(o(a.value.destination) + o(u.value), 1),
|
|
3219
|
-
|
|
3224
|
+
m(e(Le), { path: k.value }, null, 8, ["path"])
|
|
3220
3225
|
])) : y("", !0),
|
|
3221
|
-
|
|
3226
|
+
m(e(oa), null, {
|
|
3222
3227
|
default: s(() => [
|
|
3223
|
-
|
|
3228
|
+
m(e(I), {
|
|
3224
3229
|
type: "button",
|
|
3225
3230
|
variant: "secondary",
|
|
3226
3231
|
disabled: d.value || r.value?.state !== "ready",
|
|
3227
|
-
onClick: H[2] || (H[2] = (
|
|
3232
|
+
onClick: H[2] || (H[2] = (W) => E.value = !0)
|
|
3228
3233
|
}, {
|
|
3229
3234
|
default: s(() => [
|
|
3230
3235
|
h(o(a.value.choose), 1)
|
|
3231
3236
|
]),
|
|
3232
3237
|
_: 1
|
|
3233
3238
|
}, 8, ["disabled"]),
|
|
3234
|
-
|
|
3239
|
+
m(e(I), {
|
|
3235
3240
|
type: "submit",
|
|
3236
3241
|
variant: "primary",
|
|
3237
|
-
disabled: d.value || !
|
|
3242
|
+
disabled: d.value || !Z.value
|
|
3238
3243
|
}, {
|
|
3239
3244
|
default: s(() => [
|
|
3240
3245
|
h(o(a.value.submit), 1)
|
|
@@ -3247,53 +3252,53 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3247
3252
|
]),
|
|
3248
3253
|
_: 1
|
|
3249
3254
|
}),
|
|
3250
|
-
|
|
3251
|
-
open:
|
|
3252
|
-
"onUpdate:open": H[3] || (H[3] = (
|
|
3255
|
+
m(ia, {
|
|
3256
|
+
open: E.value,
|
|
3257
|
+
"onUpdate:open": H[3] || (H[3] = (W) => E.value = W),
|
|
3253
3258
|
locale: t.ctx.locale,
|
|
3254
3259
|
name: t.ctx.displayName,
|
|
3255
3260
|
provider: e(i),
|
|
3256
3261
|
mode: "folder",
|
|
3257
|
-
onSelected: H[4] || (H[4] = (
|
|
3262
|
+
onSelected: H[4] || (H[4] = (W) => k.value = W)
|
|
3258
3263
|
}, null, 8, ["open", "locale", "name", "provider"]),
|
|
3259
|
-
|
|
3264
|
+
m(e(_e), {
|
|
3260
3265
|
title: a.value.downloads,
|
|
3261
3266
|
collapsible: !1,
|
|
3262
3267
|
class: "delegate-group"
|
|
3263
3268
|
}, {
|
|
3264
3269
|
default: s(() => [
|
|
3265
|
-
D.value ? (l(), _("p",
|
|
3266
|
-
|
|
3270
|
+
D.value ? (l(), _("p", Qn, [
|
|
3271
|
+
m(e(Ne), {
|
|
3267
3272
|
width: "12rem",
|
|
3268
3273
|
height: "20px"
|
|
3269
3274
|
})
|
|
3270
|
-
])) : !
|
|
3271
|
-
(l(!0), _(
|
|
3272
|
-
key:
|
|
3273
|
-
title:
|
|
3274
|
-
"data-job-state":
|
|
3275
|
+
])) : !p.value.length && !v.value ? (l(), _("p", Zn, o(a.value.noJobs), 1)) : (l(), _("div", jn, [
|
|
3276
|
+
(l(!0), _(j, null, pe(p.value, (W) => (l(), g(e(Ca), {
|
|
3277
|
+
key: W.id,
|
|
3278
|
+
title: W.name,
|
|
3279
|
+
"data-job-state": W.state
|
|
3275
3280
|
}, sa({
|
|
3276
3281
|
meta: s(() => [
|
|
3277
|
-
|
|
3278
|
-
tone: G[
|
|
3279
|
-
role:
|
|
3282
|
+
m(e(We), {
|
|
3283
|
+
tone: G[W.state],
|
|
3284
|
+
role: W.state === "waiting_executor" ? "status" : void 0,
|
|
3280
3285
|
"data-job-badge": ""
|
|
3281
3286
|
}, {
|
|
3282
3287
|
default: s(() => [
|
|
3283
|
-
h(o(a.value[
|
|
3288
|
+
h(o(a.value[W.state]), 1)
|
|
3284
3289
|
]),
|
|
3285
3290
|
_: 2
|
|
3286
3291
|
}, 1032, ["tone", "role"])
|
|
3287
3292
|
]),
|
|
3288
3293
|
_: 2
|
|
3289
3294
|
}, [
|
|
3290
|
-
F(
|
|
3295
|
+
F(W) ? {
|
|
3291
3296
|
name: "actions",
|
|
3292
3297
|
fn: s(() => [
|
|
3293
|
-
|
|
3298
|
+
m(e(I), {
|
|
3294
3299
|
variant: "secondary",
|
|
3295
3300
|
disabled: d.value,
|
|
3296
|
-
onClick: (ye) => O(
|
|
3301
|
+
onClick: (ye) => O(W.id)
|
|
3297
3302
|
}, {
|
|
3298
3303
|
default: s(() => [
|
|
3299
3304
|
h(o(a.value.cancel), 1)
|
|
@@ -3308,34 +3313,34 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3308
3313
|
]),
|
|
3309
3314
|
_: 1
|
|
3310
3315
|
}, 8, ["title"]),
|
|
3311
|
-
|
|
3316
|
+
m(e(_e), {
|
|
3312
3317
|
title: a.value.delegations,
|
|
3313
3318
|
collapsible: !1,
|
|
3314
3319
|
class: "delegate-group"
|
|
3315
3320
|
}, {
|
|
3316
3321
|
default: s(() => [
|
|
3317
|
-
D.value ? (l(), _("p",
|
|
3318
|
-
|
|
3322
|
+
D.value ? (l(), _("p", es, [
|
|
3323
|
+
m(e(Ne), {
|
|
3319
3324
|
width: "12rem",
|
|
3320
3325
|
height: "20px"
|
|
3321
3326
|
})
|
|
3322
|
-
])) : !f.value.length && !v.value ? (l(), _("p",
|
|
3323
|
-
(l(!0), _(
|
|
3324
|
-
key:
|
|
3327
|
+
])) : !f.value.length && !v.value ? (l(), _("p", as, o(a.value.noDelegations), 1)) : (l(), _("div", ts, [
|
|
3328
|
+
(l(!0), _(j, null, pe(f.value, (W) => (l(), g(e(Ca), {
|
|
3329
|
+
key: W.delegation_id
|
|
3325
3330
|
}, {
|
|
3326
3331
|
title: s(() => [
|
|
3327
|
-
|
|
3328
|
-
path:
|
|
3332
|
+
m(e(Le), {
|
|
3333
|
+
path: W.path
|
|
3329
3334
|
}, null, 8, ["path"])
|
|
3330
3335
|
]),
|
|
3331
3336
|
description: s(() => [
|
|
3332
|
-
h(o(a.value.expires) + o(u.value) + o(ce(
|
|
3337
|
+
h(o(a.value.expires) + o(u.value) + o(ce(W.expires_at)), 1)
|
|
3333
3338
|
]),
|
|
3334
3339
|
actions: s(() => [
|
|
3335
|
-
|
|
3340
|
+
m(e(I), {
|
|
3336
3341
|
variant: "secondary",
|
|
3337
3342
|
disabled: d.value,
|
|
3338
|
-
onClick: (ye) => le(
|
|
3343
|
+
onClick: (ye) => le(W.delegation_id)
|
|
3339
3344
|
}, {
|
|
3340
3345
|
default: s(() => [
|
|
3341
3346
|
h(o(a.value.revoke), 1)
|
|
@@ -3353,19 +3358,19 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3353
3358
|
_: 1
|
|
3354
3359
|
}, 8, ["title", "description", "aria-busy"]));
|
|
3355
3360
|
}
|
|
3356
|
-
}),
|
|
3361
|
+
}), Hs = /* @__PURE__ */ ve(ls, [["__scopeId", "data-v-4f648674"]]), ns = { class: "save-alert" }, ss = { "data-save-error": "" }, os = { class: "save-alert" }, is = {
|
|
3357
3362
|
key: 0,
|
|
3358
3363
|
class: "save-reason"
|
|
3359
|
-
},
|
|
3364
|
+
}, us = {
|
|
3360
3365
|
key: 0,
|
|
3361
3366
|
class: "save-reason"
|
|
3362
|
-
},
|
|
3367
|
+
}, rs = { class: "save-alert" }, ds = {
|
|
3363
3368
|
key: 0,
|
|
3364
3369
|
class: "save-help"
|
|
3365
|
-
},
|
|
3370
|
+
}, cs = { class: "save-actions" }, vs = {
|
|
3366
3371
|
key: 1,
|
|
3367
3372
|
class: "save-none"
|
|
3368
|
-
},
|
|
3373
|
+
}, fs = /* @__PURE__ */ de({
|
|
3369
3374
|
__name: "BackgroundSaveSettings",
|
|
3370
3375
|
props: {
|
|
3371
3376
|
sdk: {},
|
|
@@ -3378,15 +3383,15 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3378
3383
|
},
|
|
3379
3384
|
emits: ["authorized", "confirmed", "destinations"],
|
|
3380
3385
|
setup(t, { expose: c, emit: n }) {
|
|
3381
|
-
const a = t, u = n, i = w(() =>
|
|
3386
|
+
const a = t, u = n, i = w(() => pa(a.locale)), r = w(() => Re(a.locale)), f = Te(Ye, void 0), p = w(() => a.ctx ?? (f?.call ? { call: f.call.bind(f) } : void 0)), d = Ma({ get admin() {
|
|
3382
3387
|
return a.admin;
|
|
3383
3388
|
}, get locale() {
|
|
3384
3389
|
return a.locale;
|
|
3385
3390
|
}, get ctx() {
|
|
3386
|
-
return
|
|
3387
|
-
} }, ee), { password: v, busy: x, confirming:
|
|
3391
|
+
return p.value;
|
|
3392
|
+
} }, ee), { password: v, busy: x, confirming: E, failure: k, passwordError: $, scope: A, chosen: C, options: T, dynamic: z, canConfirm: ae } = d, F = b(), G = b([]), X = b(!1), B = b(!1), K = b(), D = b(!1), P = b(!1), M = b(!1), se = b(""), N = b(), le = w(() => N.value ?? (X.value ? Se(d.status.value) : void 0));
|
|
3388
3393
|
let O = !1;
|
|
3389
|
-
async function
|
|
3394
|
+
async function Z() {
|
|
3390
3395
|
let re;
|
|
3391
3396
|
try {
|
|
3392
3397
|
re = await a.sdk.status();
|
|
@@ -3411,79 +3416,79 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3411
3416
|
}
|
|
3412
3417
|
}
|
|
3413
3418
|
}
|
|
3414
|
-
const ce = () => ie(
|
|
3419
|
+
const ce = () => ie(Z), J = () => Promise.all([ce(), a.admin ? d.refresh() : void 0]).then(() => {
|
|
3415
3420
|
});
|
|
3416
3421
|
function H(re) {
|
|
3417
3422
|
u("authorized", re), ce();
|
|
3418
3423
|
}
|
|
3419
|
-
function
|
|
3424
|
+
function W(re) {
|
|
3420
3425
|
O || (K.value = re, D.value = !0);
|
|
3421
3426
|
}
|
|
3422
|
-
const ye = w(() => D.value ? a.pickerErrorText?.(K.value) ??
|
|
3427
|
+
const ye = w(() => D.value ? a.pickerErrorText?.(K.value) ?? je(K.value, i.value, "select", a.locale, a.ctx?.displayName) : je(K.value, i.value, "save", a.locale, a.ctx?.displayName)), Ce = (re) => ie(async () => {
|
|
3423
3428
|
if ((await a.sdk.revoke({ delegation_id: re }))?.revoked !== !0) throw { code: "commit-uncertain" };
|
|
3424
|
-
await
|
|
3429
|
+
await Z();
|
|
3425
3430
|
}), $e = () => ie(async () => {
|
|
3426
3431
|
if (a.admin) {
|
|
3427
3432
|
if ((await a.sdk.enable())?.disabled !== !1) throw { code: "commit-uncertain" };
|
|
3428
|
-
await
|
|
3433
|
+
await Z();
|
|
3429
3434
|
}
|
|
3430
3435
|
});
|
|
3431
3436
|
async function ee() {
|
|
3432
3437
|
await ie(async () => {
|
|
3433
3438
|
if (O) return;
|
|
3434
|
-
const re = await a.sdk.status(), be =
|
|
3439
|
+
const re = await a.sdk.status(), be = A.value?.selection;
|
|
3435
3440
|
if (!O) {
|
|
3436
|
-
if (
|
|
3441
|
+
if (z.value) {
|
|
3437
3442
|
const ne = re.selection;
|
|
3438
3443
|
if (!be || !ne || ne.scope !== C.value || ne.scope !== be.scope || ne.generation !== be.generation || ne.root !== be.root) throw { code: "commit-uncertain" };
|
|
3439
3444
|
const Ue = se.value ? [se.value] : a.picker?.keys ?? [];
|
|
3440
|
-
for (const
|
|
3445
|
+
for (const ga of Ue) {
|
|
3441
3446
|
if (O) return;
|
|
3442
3447
|
let Ie;
|
|
3443
3448
|
try {
|
|
3444
|
-
Ie = await a.sdk.selectDestination({ key:
|
|
3445
|
-
} catch (
|
|
3446
|
-
throw D.value = !0,
|
|
3449
|
+
Ie = await a.sdk.selectDestination({ key: ga, path: ne.root });
|
|
3450
|
+
} catch (Ya) {
|
|
3451
|
+
throw D.value = !0, Ya;
|
|
3447
3452
|
}
|
|
3448
|
-
if (!Ie?.id || !Ie.username || Ie.path !== ne.root || Ie.key !==
|
|
3453
|
+
if (!Ie?.id || !Ie.username || Ie.path !== ne.root || Ie.key !== ga || Ie.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
|
|
3449
3454
|
if (O) return;
|
|
3450
3455
|
u("authorized", Ie);
|
|
3451
3456
|
}
|
|
3452
3457
|
}
|
|
3453
|
-
O || (
|
|
3458
|
+
O || (P.value = !1, u("confirmed"), await Z());
|
|
3454
3459
|
}
|
|
3455
3460
|
});
|
|
3456
3461
|
}
|
|
3457
3462
|
function ue(re) {
|
|
3458
|
-
se.value = re, a.admin &&
|
|
3463
|
+
se.value = re, a.admin && z.value ? P.value = !0 : M.value = !0;
|
|
3459
3464
|
}
|
|
3460
|
-
const oe = w(() => F.value?.selection), ke = w(() => !F.value && !X.value && !K.value && !le.value), Ee = w(() => X.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !oe.value), L = w(() => a.admin && X.value && d.status.value?.state === "blocked" && !d.status.value.retry), V = w(() => !!F.value && !Ee.value && !F.value.disabled), q = w(() => a.admin && (Ee.value || X.value && !!d.status.value?.retry)), te = w(() => a.picker ? oe.value ?
|
|
3465
|
+
const oe = w(() => F.value?.selection), ke = w(() => !F.value && !X.value && !K.value && !le.value), Ee = w(() => X.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !oe.value), L = w(() => a.admin && X.value && d.status.value?.state === "blocked" && !d.status.value.retry), V = w(() => !!F.value && !Ee.value && !F.value.disabled), q = w(() => a.admin && (Ee.value || X.value && !!d.status.value?.retry)), te = w(() => a.picker ? oe.value ? lt(a.picker.provider, oe.value.root) : F.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), fe = (re) => a.picker?.labels?.[re] ?? i.value.folder, R = w(() => {
|
|
3461
3466
|
const re = k.value;
|
|
3462
3467
|
return !re || "confirm" in re ? "" : re.code === "session_ended" ? r.value.session : d.explain(re) ?? r.value.setupError;
|
|
3463
|
-
}), Y = w(() => a.admin && Ee.value && !
|
|
3468
|
+
}), Y = w(() => a.admin && Ee.value && !P.value), U = w(() => x.value || B.value || d.error.value || !ae.value);
|
|
3464
3469
|
function me() {
|
|
3465
|
-
|
|
3470
|
+
P.value = !1, v.value = "", k.value = void 0, C.value = A.value?.selection?.scope ?? "";
|
|
3466
3471
|
}
|
|
3467
|
-
return He(() => le.value, () => Promise.all([ce(), a.admin ? d.refresh() : void 0])), c({ refresh:
|
|
3472
|
+
return He(() => le.value, () => Promise.all([ce(), a.admin ? d.refresh() : void 0])), c({ refresh: J }), we(() => {
|
|
3468
3473
|
ce();
|
|
3469
3474
|
}), ge(() => {
|
|
3470
3475
|
O = !0;
|
|
3471
3476
|
}), (re, be) => (l(), g(e(_e), {
|
|
3472
3477
|
title: t.title ?? i.value.title,
|
|
3473
|
-
description: Ee.value && !
|
|
3478
|
+
description: Ee.value && !P.value ? void 0 : i.value.help,
|
|
3474
3479
|
collapsible: !1,
|
|
3475
3480
|
"aria-busy": B.value || e(x) || ke.value,
|
|
3476
3481
|
class: "background-save-settings"
|
|
3477
3482
|
}, {
|
|
3478
3483
|
default: s(() => [
|
|
3479
|
-
ke.value ? (l(!0), _(
|
|
3484
|
+
ke.value ? (l(!0), _(j, { key: 0 }, pe(t.picker?.keys ?? [], (ne) => (l(), g(e(xe), {
|
|
3480
3485
|
key: ne,
|
|
3481
3486
|
label: fe(ne),
|
|
3482
3487
|
"field-width": "full",
|
|
3483
3488
|
"data-placeholder-row": ""
|
|
3484
3489
|
}, {
|
|
3485
3490
|
default: s(() => [
|
|
3486
|
-
|
|
3491
|
+
m(e(Ne), {
|
|
3487
3492
|
width: "20rem",
|
|
3488
3493
|
height: "28px"
|
|
3489
3494
|
})
|
|
@@ -3498,16 +3503,16 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3498
3503
|
h(o(e(Ve)(le.value, t.locale)), 1)
|
|
3499
3504
|
]),
|
|
3500
3505
|
_: 1
|
|
3501
|
-
})) : (l(), _(
|
|
3506
|
+
})) : (l(), _(j, { key: 2 }, [
|
|
3502
3507
|
K.value ? (l(), g(e(Q), {
|
|
3503
3508
|
key: 0,
|
|
3504
3509
|
tone: "danger",
|
|
3505
3510
|
role: "alert"
|
|
3506
3511
|
}, {
|
|
3507
3512
|
default: s(() => [
|
|
3508
|
-
S("span",
|
|
3509
|
-
S("span",
|
|
3510
|
-
|
|
3513
|
+
S("span", ns, [
|
|
3514
|
+
S("span", ss, o(ye.value), 1),
|
|
3515
|
+
m(e(I), {
|
|
3511
3516
|
variant: "secondary",
|
|
3512
3517
|
size: "sm",
|
|
3513
3518
|
disabled: B.value,
|
|
@@ -3528,9 +3533,9 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3528
3533
|
role: "alert"
|
|
3529
3534
|
}, {
|
|
3530
3535
|
default: s(() => [
|
|
3531
|
-
S("span",
|
|
3536
|
+
S("span", os, [
|
|
3532
3537
|
h(o(r.value.setupError), 1),
|
|
3533
|
-
|
|
3538
|
+
m(e(I), {
|
|
3534
3539
|
variant: "secondary",
|
|
3535
3540
|
size: "sm",
|
|
3536
3541
|
disabled: e(x),
|
|
@@ -3552,7 +3557,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3552
3557
|
}, {
|
|
3553
3558
|
default: s(() => [
|
|
3554
3559
|
h(o(R.value), 1),
|
|
3555
|
-
e(k) && "reason" in e(k) && e(k).reason ? (l(), _("span",
|
|
3560
|
+
e(k) && "reason" in e(k) && e(k).reason ? (l(), _("span", is, o(e(k).reason), 1)) : y("", !0)
|
|
3556
3561
|
]),
|
|
3557
3562
|
_: 1
|
|
3558
3563
|
})) : y("", !0),
|
|
@@ -3562,7 +3567,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3562
3567
|
}, {
|
|
3563
3568
|
default: s(() => [
|
|
3564
3569
|
h(o(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
|
|
3565
|
-
e(d).status.value?.reason ? (l(), _("span",
|
|
3570
|
+
e(d).status.value?.reason ? (l(), _("span", us, o(e(d).status.value.reason), 1)) : y("", !0)
|
|
3566
3571
|
]),
|
|
3567
3572
|
_: 1
|
|
3568
3573
|
})) : Ee.value && !t.admin ? (l(), g(la, {
|
|
@@ -3576,7 +3581,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3576
3581
|
tone: "warning"
|
|
3577
3582
|
}, {
|
|
3578
3583
|
default: s(() => [
|
|
3579
|
-
S("span",
|
|
3584
|
+
S("span", rs, [
|
|
3580
3585
|
S("span", null, o(i.value.disabled), 1),
|
|
3581
3586
|
t.admin ? (l(), g(e(I), {
|
|
3582
3587
|
key: 0,
|
|
@@ -3603,23 +3608,23 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3603
3608
|
]),
|
|
3604
3609
|
_: 1
|
|
3605
3610
|
})) : y("", !0),
|
|
3606
|
-
q.value ||
|
|
3611
|
+
q.value || P.value ? (l(), g(Xe(Y.value ? la : "div"), ea(ya({ key: 7 }, Y.value ? { admin: !0, locale: t.locale, files: !0, status: e(d).status.value } : {})), {
|
|
3607
3612
|
default: s(() => [
|
|
3608
|
-
|
|
3613
|
+
m(e(Ke), {
|
|
3609
3614
|
direction: "vertical",
|
|
3610
3615
|
class: "save-form",
|
|
3611
3616
|
onSubmit: Me(e(d).submit, ["prevent"])
|
|
3612
3617
|
}, {
|
|
3613
3618
|
default: s(() => [
|
|
3614
|
-
|
|
3615
|
-
e(
|
|
3619
|
+
P.value ? (l(), _("p", ds, o(i.value.changeHelp), 1)) : y("", !0),
|
|
3620
|
+
e(z) ? (l(), g(e(Pe), {
|
|
3616
3621
|
key: 1,
|
|
3617
3622
|
label: i.value.folder,
|
|
3618
3623
|
description: Y.value ? i.value.approveHelp : void 0,
|
|
3619
3624
|
"data-save-row": "folder"
|
|
3620
3625
|
}, {
|
|
3621
3626
|
default: s(() => [
|
|
3622
|
-
|
|
3627
|
+
m(e(ba), {
|
|
3623
3628
|
id: "save-scope",
|
|
3624
3629
|
modelValue: e(C),
|
|
3625
3630
|
"onUpdate:modelValue": be[0] || (be[0] = (ne) => aa(C) ? C.value = ne : null),
|
|
@@ -3629,27 +3634,27 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3629
3634
|
]),
|
|
3630
3635
|
_: 1
|
|
3631
3636
|
}, 8, ["label", "description"])) : y("", !0),
|
|
3632
|
-
|
|
3637
|
+
m(e(Pe), {
|
|
3633
3638
|
label: i.value.password,
|
|
3634
|
-
description: e(
|
|
3639
|
+
description: e(E) ? r.value.confirmingHelp : Y.value ? r.value.passwordNote : void 0,
|
|
3635
3640
|
help: e($),
|
|
3636
3641
|
"validate-status": e($) ? "error" : void 0,
|
|
3637
3642
|
"validate-message-display-mode": "text"
|
|
3638
3643
|
}, {
|
|
3639
3644
|
after: s(({ classes: ne }) => [
|
|
3640
|
-
|
|
3645
|
+
m(e(I), {
|
|
3641
3646
|
class: De(ne.afterItem),
|
|
3642
3647
|
type: "submit",
|
|
3643
3648
|
variant: "primary",
|
|
3644
|
-
loading: e(
|
|
3649
|
+
loading: e(E),
|
|
3645
3650
|
disabled: U.value
|
|
3646
3651
|
}, {
|
|
3647
3652
|
default: s(() => [
|
|
3648
|
-
h(o(
|
|
3653
|
+
h(o(P.value ? i.value.confirmChange : i.value.approve), 1)
|
|
3649
3654
|
]),
|
|
3650
3655
|
_: 1
|
|
3651
3656
|
}, 8, ["class", "loading", "disabled"]),
|
|
3652
|
-
|
|
3657
|
+
P.value ? (l(), g(e(I), {
|
|
3653
3658
|
key: 0,
|
|
3654
3659
|
class: De(ne.afterItem),
|
|
3655
3660
|
type: "button",
|
|
@@ -3664,7 +3669,7 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3664
3669
|
}, 8, ["class", "disabled"])) : y("", !0)
|
|
3665
3670
|
]),
|
|
3666
3671
|
default: s(() => [
|
|
3667
|
-
|
|
3672
|
+
m(e(ze), {
|
|
3668
3673
|
id: "save-password",
|
|
3669
3674
|
modelValue: e(v),
|
|
3670
3675
|
"onUpdate:modelValue": be[1] || (be[1] = (ne) => aa(v) ? v.value = ne : null),
|
|
@@ -3682,22 +3687,22 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3682
3687
|
]),
|
|
3683
3688
|
_: 1
|
|
3684
3689
|
}, 16)) : y("", !0),
|
|
3685
|
-
V.value && !
|
|
3690
|
+
V.value && !P.value && !q.value ? (l(!0), _(j, { key: 8 }, pe(G.value, (ne) => (l(), g(e(xe), {
|
|
3686
3691
|
key: ne.key,
|
|
3687
3692
|
label: fe(ne.key),
|
|
3688
3693
|
"field-width": "full",
|
|
3689
3694
|
"data-save-row": "folder"
|
|
3690
3695
|
}, {
|
|
3691
3696
|
default: s(() => [
|
|
3692
|
-
S("div",
|
|
3697
|
+
S("div", cs, [
|
|
3693
3698
|
ne.status === "active" && ne.destination ? (l(), g(e(Le), {
|
|
3694
3699
|
key: 0,
|
|
3695
3700
|
path: ne.destination.path
|
|
3696
|
-
}, null, 8, ["path"])) : (l(), _("span",
|
|
3697
|
-
|
|
3701
|
+
}, null, 8, ["path"])) : (l(), _("span", vs, o(i.value.folderNone), 1)),
|
|
3702
|
+
m(e(I), {
|
|
3698
3703
|
variant: "secondary",
|
|
3699
3704
|
size: "sm",
|
|
3700
|
-
disabled: B.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(
|
|
3705
|
+
disabled: B.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(z) || e(d).error.value : !te.value),
|
|
3701
3706
|
onClick: (Ue) => ue(ne.key)
|
|
3702
3707
|
}, {
|
|
3703
3708
|
default: s(() => [
|
|
@@ -3733,17 +3738,17 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3733
3738
|
mode: "folder",
|
|
3734
3739
|
destination: { key: se.value, selectDestination: t.sdk.selectDestination },
|
|
3735
3740
|
onAuthorized: H,
|
|
3736
|
-
onRefused:
|
|
3741
|
+
onRefused: W,
|
|
3737
3742
|
"error-text": t.pickerErrorText
|
|
3738
3743
|
}, null, 8, ["open", "provider", "locale", "name", "destination", "error-text"])) : y("", !0)
|
|
3739
3744
|
]),
|
|
3740
3745
|
_: 3
|
|
3741
3746
|
}, 8, ["title", "description", "aria-busy"]));
|
|
3742
3747
|
}
|
|
3743
|
-
}),
|
|
3748
|
+
}), ps = /* @__PURE__ */ ve(fs, [["__scopeId", "data-v-cce39b9a"]]), ms = { class: "background-save-panel" }, ys = {
|
|
3744
3749
|
key: 1,
|
|
3745
3750
|
class: "save-example"
|
|
3746
|
-
},
|
|
3751
|
+
}, bs = { class: "save-help" }, gs = { class: "save-actions" }, hs = /* @__PURE__ */ de({
|
|
3747
3752
|
__name: "BackgroundSavePanel",
|
|
3748
3753
|
props: {
|
|
3749
3754
|
sdk: {},
|
|
@@ -3757,13 +3762,13 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3757
3762
|
},
|
|
3758
3763
|
emits: ["authorized"],
|
|
3759
3764
|
setup(t, { expose: c, emit: n }) {
|
|
3760
|
-
const a = t, u = n, i = w(() =>
|
|
3761
|
-
async function
|
|
3765
|
+
const a = t, u = n, i = w(() => pa(a.locale)), r = w(() => ma(a.locale)), f = b([]), p = b(), d = () => (x.value = void 0, p.value?.refresh() ?? Promise.resolve()), v = b(!1), x = b();
|
|
3766
|
+
async function E($) {
|
|
3762
3767
|
if (v.value) return;
|
|
3763
3768
|
v.value = !0, x.value = void 0;
|
|
3764
|
-
const
|
|
3769
|
+
const A = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (C) => C.toString(16).padStart(2, "0")).join("");
|
|
3765
3770
|
try {
|
|
3766
|
-
await a.sdk.exportExample({ key: $, job_id:
|
|
3771
|
+
await a.sdk.exportExample({ key: $, job_id: A });
|
|
3767
3772
|
} catch (C) {
|
|
3768
3773
|
x.value = C;
|
|
3769
3774
|
} finally {
|
|
@@ -3771,10 +3776,10 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3771
3776
|
}
|
|
3772
3777
|
}
|
|
3773
3778
|
const k = ($) => a.picker?.labels?.[$] ? `${i.value.example}${r.value}${a.picker.labels[$]}` : i.value.example;
|
|
3774
|
-
return c({ refresh: d }), ($,
|
|
3775
|
-
|
|
3779
|
+
return c({ refresh: d }), ($, A) => (l(), _("div", ms, [
|
|
3780
|
+
m(ps, {
|
|
3776
3781
|
ref_key: "settings",
|
|
3777
|
-
ref:
|
|
3782
|
+
ref: p,
|
|
3778
3783
|
sdk: t.sdk,
|
|
3779
3784
|
admin: t.admin,
|
|
3780
3785
|
locale: t.locale,
|
|
@@ -3782,8 +3787,8 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3782
3787
|
picker: t.picker,
|
|
3783
3788
|
ctx: t.ctx,
|
|
3784
3789
|
"picker-error-text": t.pickerErrorText,
|
|
3785
|
-
onAuthorized:
|
|
3786
|
-
onDestinations:
|
|
3790
|
+
onAuthorized: A[0] || (A[0] = (C) => u("authorized", C)),
|
|
3791
|
+
onDestinations: A[1] || (A[1] = (C) => f.value = C.filter((T) => T.status === "active"))
|
|
3787
3792
|
}, {
|
|
3788
3793
|
default: s(() => [
|
|
3789
3794
|
x.value ? (l(), g(e(Q), {
|
|
@@ -3792,18 +3797,18 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3792
3797
|
role: "alert"
|
|
3793
3798
|
}, {
|
|
3794
3799
|
default: s(() => [
|
|
3795
|
-
h(o(e(
|
|
3800
|
+
h(o(e(je)(x.value, i.value, "save", t.locale, t.ctx?.displayName)), 1)
|
|
3796
3801
|
]),
|
|
3797
3802
|
_: 1
|
|
3798
3803
|
})) : y("", !0),
|
|
3799
|
-
t.sampleSave && f.value.length ? (l(), _("div",
|
|
3800
|
-
S("p",
|
|
3801
|
-
S("div",
|
|
3802
|
-
(l(!0), _(
|
|
3804
|
+
t.sampleSave && f.value.length ? (l(), _("div", ys, [
|
|
3805
|
+
S("p", bs, o(i.value.exampleHelp), 1),
|
|
3806
|
+
S("div", gs, [
|
|
3807
|
+
(l(!0), _(j, null, pe(f.value, (C) => (l(), g(e(I), {
|
|
3803
3808
|
key: C.key,
|
|
3804
3809
|
variant: "secondary",
|
|
3805
3810
|
disabled: v.value,
|
|
3806
|
-
onClick: (T) =>
|
|
3811
|
+
onClick: (T) => E(C.key)
|
|
3807
3812
|
}, {
|
|
3808
3813
|
default: s(() => [
|
|
3809
3814
|
h(o(k(C.key)), 1)
|
|
@@ -3817,18 +3822,18 @@ const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-locatio
|
|
|
3817
3822
|
}, 8, ["sdk", "admin", "locale", "title", "picker", "ctx", "picker-error-text"])
|
|
3818
3823
|
]));
|
|
3819
3824
|
}
|
|
3820
|
-
}),
|
|
3821
|
-
function
|
|
3825
|
+
}), Gs = /* @__PURE__ */ ve(hs, [["__scopeId", "data-v-05618cb8"]]);
|
|
3826
|
+
function ks(t) {
|
|
3822
3827
|
const { code: c, message: n } = t ?? {};
|
|
3823
3828
|
return !!Fe(t) || typeof c == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(c) || c === "bad_response" && /HTTP 40[13]\b/.test(String(n));
|
|
3824
3829
|
}
|
|
3825
3830
|
const Wa = /* @__PURE__ */ Symbol("authorization");
|
|
3826
|
-
function
|
|
3831
|
+
function _s() {
|
|
3827
3832
|
const t = Te(Wa, void 0);
|
|
3828
3833
|
if (!t) throw Error("authorization controls must be placed inside AuthorizationGate");
|
|
3829
3834
|
return t;
|
|
3830
3835
|
}
|
|
3831
|
-
const
|
|
3836
|
+
const ws = { class: "authorization-content" }, xs = ["aria-busy", "data-authorization-state"], Cs = { class: "authorization-body" }, $s = /* @__PURE__ */ de({
|
|
3832
3837
|
__name: "AuthorizationGate",
|
|
3833
3838
|
props: {
|
|
3834
3839
|
ctx: {},
|
|
@@ -3836,27 +3841,27 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3836
3841
|
},
|
|
3837
3842
|
emits: ["ready"],
|
|
3838
3843
|
setup(t, { emit: c }) {
|
|
3839
|
-
const n = t, a = c, u = b(), i = b(), r = b(!1), f = b(!1),
|
|
3840
|
-
let v = [], x = !1,
|
|
3841
|
-
const T = w(() =>
|
|
3844
|
+
const n = t, a = c, u = b(), i = b(), r = b(!1), f = b(!1), p = b(!1), d = Et();
|
|
3845
|
+
let v = [], x = !1, E = 0, k = !1, $, A = 0, C;
|
|
3846
|
+
const T = w(() => Ua(n.ctx.locale, n.name ?? n.ctx.displayName ?? "")), z = w(() => u.value || i.value), ae = w(() => z.value?.state === "authorization_required"), F = w(() => ["helper_untrusted", "cli_untrusted"].includes(z.value?.reason || "")), G = w(() => ae.value && !F.value), X = w(() => z.value?.state === "unavailable" ? Se(z.value) : void 0), B = w(() => X.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[z.value?.reason ?? ""] ?? "unavailable"), K = w(() => na({ code: z.value?.reason }, n.ctx.locale, n.name ?? n.ctx.displayName)), D = w(() => K.value?.title ?? (z.value ? ae.value ? T.value("title") : z.value.state === "ready" ? T.value("ready") : z.value.state === "not_admin" ? T.value("not_admin.title") : z.value.state === "session_expired" ? T.value("session_expired.title") : T.value(B.value + ".title") : T.value("checking"))), P = w(() => K.value?.message ?? (ae.value ? T.value("purpose") : z.value?.state === "not_admin" ? T.value("not_admin.body") : z.value?.state === "session_expired" ? T.value("session_expired.body") : z.value?.state === "unavailable" ? T.value(B.value + ".body") : T.value("purpose"))), M = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], se = w(() => M.includes(z.value?.reason || "") ? z.value.reason : "unknown"), N = w(() => F.value ? "next.reinstall" : se.value === "grant_missing" ? "next.install" : se.value === "upgrade_reapproval" || se.value === "grant_incompatible" ? "next.update" : "next.repair");
|
|
3842
3847
|
function le(ee) {
|
|
3843
3848
|
if (!ee || ee.command !== "authorization" || ee.schema_version !== 1 || !["ready", "authorization_required", "not_admin", "session_expired", "unavailable"].includes(ee.state) || ee.reason === "upgrade_reapproval" && ee.state !== "authorization_required") throw Error("invalid status");
|
|
3844
3849
|
return ee;
|
|
3845
3850
|
}
|
|
3846
3851
|
const O = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
|
|
3847
|
-
function
|
|
3852
|
+
function Z(ee) {
|
|
3848
3853
|
const { code: ue } = ee ?? {}, oe = Se(ee);
|
|
3849
|
-
return oe ? oe === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ue === "credential_not_ready" ? ue : Fe(ee) ? Fe(ee) :
|
|
3854
|
+
return oe ? oe === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ue === "credential_not_ready" ? ue : Fe(ee) ? Fe(ee) : ks(ee) ? "access_denied" : typeof ue == "string" && O.includes(ue) || ue === void 0 ? "service_unavailable" : "check_failed";
|
|
3850
3855
|
}
|
|
3851
3856
|
let ie;
|
|
3852
3857
|
function ce() {
|
|
3853
|
-
clearTimeout($), X.value !== ie && (ie = X.value,
|
|
3854
|
-
r.value ? k = !0 :
|
|
3855
|
-
}, fa(
|
|
3858
|
+
clearTimeout($), X.value !== ie && (ie = X.value, A = 0), X.value && ($ = setTimeout(() => {
|
|
3859
|
+
r.value ? k = !0 : W("status");
|
|
3860
|
+
}, fa(A++, X.value)));
|
|
3856
3861
|
}
|
|
3857
|
-
const
|
|
3862
|
+
const J = [1e3, 3e3];
|
|
3858
3863
|
async function H(ee) {
|
|
3859
|
-
const ue = ee === "status" && !
|
|
3864
|
+
const ue = ee === "status" && !p.value ? J : [];
|
|
3860
3865
|
for (let oe = 0; ; oe++) {
|
|
3861
3866
|
try {
|
|
3862
3867
|
const ke = le(await n.ctx.authorization?.[ee]());
|
|
@@ -3867,18 +3872,18 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3867
3872
|
if (await new Promise((ke) => setTimeout(ke, ue[oe])), x) throw Error("disposed");
|
|
3868
3873
|
}
|
|
3869
3874
|
}
|
|
3870
|
-
async function
|
|
3875
|
+
async function W(ee) {
|
|
3871
3876
|
if (r.value || x) return;
|
|
3872
|
-
const ue = ++
|
|
3877
|
+
const ue = ++E;
|
|
3873
3878
|
i.value = ee === "request" && u.value?.state === "authorization_required" ? u.value : void 0, r.value = !0, f.value = !1, u.value = void 0;
|
|
3874
3879
|
try {
|
|
3875
3880
|
const oe = await H(ee);
|
|
3876
|
-
if (x || ue !==
|
|
3877
|
-
u.value = oe,
|
|
3881
|
+
if (x || ue !== E) return;
|
|
3882
|
+
u.value = oe, p.value = oe.state !== "ready", oe.state === "ready" && ye(!0), oe.state === "ready" && a("ready");
|
|
3878
3883
|
} catch (oe) {
|
|
3879
|
-
!x && ue ===
|
|
3884
|
+
!x && ue === E && (u.value = oe.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : i.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: Z(oe) }, f.value = !K.value && B.value === "unavailable", p.value = !0);
|
|
3880
3885
|
} finally {
|
|
3881
|
-
!x && ue ===
|
|
3886
|
+
!x && ue === E && (r.value = !1, i.value = void 0, k ? (k = !1, W("status")) : ce());
|
|
3882
3887
|
}
|
|
3883
3888
|
}
|
|
3884
3889
|
function ye(ee) {
|
|
@@ -3886,23 +3891,23 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3886
3891
|
v = [], ue.forEach((oe) => oe(ee));
|
|
3887
3892
|
}
|
|
3888
3893
|
function Ce(ee) {
|
|
3889
|
-
|
|
3894
|
+
p.value = ee, ee || ye(!1);
|
|
3890
3895
|
}
|
|
3891
3896
|
function $e() {
|
|
3892
|
-
return u.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (
|
|
3897
|
+
return u.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (p.value = !0), new Promise((ee) => v.push(ee)));
|
|
3893
3898
|
}
|
|
3894
|
-
return Oe(Wa, { state: w(() => u.value?.state ?? "checking"), requireAuthorization: $e, text: T, busy: r, canManage: () => !!n.ctx.authorization?.canManage?.(), revoke: () =>
|
|
3899
|
+
return Oe(Wa, { state: w(() => u.value?.state ?? "checking"), requireAuthorization: $e, text: T, busy: r, canManage: () => !!n.ctx.authorization?.canManage?.(), revoke: () => W("revoke") }), we(() => {
|
|
3895
3900
|
C = n.ctx.reopen(() => {
|
|
3896
|
-
r.value ? k = !0 :
|
|
3897
|
-
}),
|
|
3898
|
-
}),
|
|
3899
|
-
x = !0,
|
|
3900
|
-
}), (ee, ue) => (l(), _(
|
|
3901
|
-
S("div",
|
|
3901
|
+
r.value ? k = !0 : W("status");
|
|
3902
|
+
}), W("status");
|
|
3903
|
+
}), Na(() => {
|
|
3904
|
+
x = !0, E++, clearTimeout($), ye(!1), typeof C == "function" && C();
|
|
3905
|
+
}), (ee, ue) => (l(), _(j, null, [
|
|
3906
|
+
S("div", ws, [
|
|
3902
3907
|
he(ee.$slots, "default", {}, void 0, !0)
|
|
3903
3908
|
]),
|
|
3904
|
-
|
|
3905
|
-
open:
|
|
3909
|
+
m(e(Be), {
|
|
3910
|
+
open: p.value && !e(d),
|
|
3906
3911
|
title: D.value,
|
|
3907
3912
|
"onUpdate:open": Ce
|
|
3908
3913
|
}, {
|
|
@@ -3912,7 +3917,7 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3912
3917
|
variant: "primary",
|
|
3913
3918
|
loading: r.value,
|
|
3914
3919
|
disabled: r.value,
|
|
3915
|
-
onClick: ue[0] || (ue[0] = (oe) =>
|
|
3920
|
+
onClick: ue[0] || (ue[0] = (oe) => W("request"))
|
|
3916
3921
|
}, {
|
|
3917
3922
|
default: s(() => [
|
|
3918
3923
|
h(o(r.value ? T.value("authorizing") : T.value("authorize")), 1)
|
|
@@ -3923,7 +3928,7 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3923
3928
|
variant: "primary",
|
|
3924
3929
|
loading: r.value,
|
|
3925
3930
|
disabled: r.value,
|
|
3926
|
-
onClick: ue[1] || (ue[1] = (oe) =>
|
|
3931
|
+
onClick: ue[1] || (ue[1] = (oe) => W("status"))
|
|
3927
3932
|
}, {
|
|
3928
3933
|
default: s(() => [
|
|
3929
3934
|
h(o(r.value ? T.value("checking") : T.value("retry")), 1)
|
|
@@ -3937,7 +3942,7 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3937
3942
|
"aria-busy": r.value,
|
|
3938
3943
|
"data-authorization-state": u.value?.state || "checking"
|
|
3939
3944
|
}, [
|
|
3940
|
-
S("p",
|
|
3945
|
+
S("p", Cs, o(P.value), 1),
|
|
3941
3946
|
ae.value ? (l(), g(e(Q), {
|
|
3942
3947
|
key: 0,
|
|
3943
3948
|
class: "authorization-status",
|
|
@@ -3959,39 +3964,39 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
3959
3964
|
]),
|
|
3960
3965
|
_: 1
|
|
3961
3966
|
})) : y("", !0)
|
|
3962
|
-
], 8,
|
|
3967
|
+
], 8, xs)
|
|
3963
3968
|
]),
|
|
3964
3969
|
_: 1
|
|
3965
3970
|
}, 8, ["open", "title"])
|
|
3966
3971
|
], 64));
|
|
3967
3972
|
}
|
|
3968
|
-
}),
|
|
3973
|
+
}), Xs = /* @__PURE__ */ ve($s, [["__scopeId", "data-v-e6c8e4e1"]]), Ss = { class: "authorization-setting" }, Ps = {
|
|
3969
3974
|
class: "authorization-state",
|
|
3970
3975
|
role: "status"
|
|
3971
|
-
},
|
|
3976
|
+
}, Es = { class: "authorization-revoke-body" }, Ts = /* @__PURE__ */ de({
|
|
3972
3977
|
__name: "AuthorizationSettings",
|
|
3973
3978
|
setup(t) {
|
|
3974
|
-
const { state: c, requireAuthorization: n, text: a, busy: u, canManage: i, revoke: r } =
|
|
3975
|
-
return (d, v) => (l(), _(
|
|
3976
|
-
|
|
3979
|
+
const { state: c, requireAuthorization: n, text: a, busy: u, canManage: i, revoke: r } = _s(), f = b(!1), p = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
|
|
3980
|
+
return (d, v) => (l(), _(j, null, [
|
|
3981
|
+
m(e(_e), {
|
|
3977
3982
|
title: e(a)("settings.title"),
|
|
3978
3983
|
collapsible: !1
|
|
3979
3984
|
}, {
|
|
3980
3985
|
default: s(() => [
|
|
3981
|
-
|
|
3986
|
+
m(e(xe), {
|
|
3982
3987
|
label: e(a)("settings.status"),
|
|
3983
3988
|
description: e(a)("purpose"),
|
|
3984
3989
|
align: "center"
|
|
3985
3990
|
}, {
|
|
3986
3991
|
default: s(() => [
|
|
3987
|
-
S("div",
|
|
3988
|
-
S("span",
|
|
3989
|
-
e(c) === "ready" ? (l(), g(e(
|
|
3992
|
+
S("div", Ss, [
|
|
3993
|
+
S("span", Ps, [
|
|
3994
|
+
e(c) === "ready" ? (l(), g(e(La), {
|
|
3990
3995
|
key: 0,
|
|
3991
3996
|
size: 16,
|
|
3992
3997
|
"aria-hidden": "true"
|
|
3993
3998
|
})) : y("", !0),
|
|
3994
|
-
h(o(e(a)(
|
|
3999
|
+
h(o(e(a)(p[e(c)])), 1)
|
|
3995
4000
|
]),
|
|
3996
4001
|
e(c) === "ready" && e(i)() ? (l(), g(e(I), {
|
|
3997
4002
|
key: 0,
|
|
@@ -4020,13 +4025,13 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
4020
4025
|
]),
|
|
4021
4026
|
_: 1
|
|
4022
4027
|
}, 8, ["title"]),
|
|
4023
|
-
|
|
4028
|
+
m(e(Be), {
|
|
4024
4029
|
open: f.value,
|
|
4025
4030
|
"onUpdate:open": v[4] || (v[4] = (x) => f.value = x),
|
|
4026
4031
|
title: e(a)("revoke.title")
|
|
4027
4032
|
}, {
|
|
4028
4033
|
footer: s(() => [
|
|
4029
|
-
|
|
4034
|
+
m(e(I), {
|
|
4030
4035
|
variant: "secondary",
|
|
4031
4036
|
onClick: v[2] || (v[2] = (x) => f.value = !1)
|
|
4032
4037
|
}, {
|
|
@@ -4035,7 +4040,7 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
4035
4040
|
]),
|
|
4036
4041
|
_: 1
|
|
4037
4042
|
}),
|
|
4038
|
-
|
|
4043
|
+
m(e(I), {
|
|
4039
4044
|
variant: "danger",
|
|
4040
4045
|
disabled: e(u),
|
|
4041
4046
|
onClick: v[3] || (v[3] = (x) => {
|
|
@@ -4049,13 +4054,13 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
4049
4054
|
}, 8, ["disabled"])
|
|
4050
4055
|
]),
|
|
4051
4056
|
default: s(() => [
|
|
4052
|
-
S("p",
|
|
4057
|
+
S("p", Es, o(e(a)("revoke.body")), 1)
|
|
4053
4058
|
]),
|
|
4054
4059
|
_: 1
|
|
4055
4060
|
}, 8, ["open", "title"])
|
|
4056
4061
|
], 64));
|
|
4057
4062
|
}
|
|
4058
|
-
}),
|
|
4063
|
+
}), Js = /* @__PURE__ */ ve(Ts, [["__scopeId", "data-v-8452013e"]]), Ws = /* @__PURE__ */ de({
|
|
4059
4064
|
__name: "EntryGuard",
|
|
4060
4065
|
props: {
|
|
4061
4066
|
ctx: {},
|
|
@@ -4066,7 +4071,7 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
4066
4071
|
setup(t) {
|
|
4067
4072
|
const c = t, n = b(), a = b(!1), u = b(!1), i = w(() => {
|
|
4068
4073
|
if (c.messages) return c.messages;
|
|
4069
|
-
const k =
|
|
4074
|
+
const k = Ra(c.locale ?? "en"), $ = Ua(c.locale ?? "en", c.ctx.displayName ?? "");
|
|
4070
4075
|
return {
|
|
4071
4076
|
title: k.failedTitle,
|
|
4072
4077
|
session: k.errors.session_required,
|
|
@@ -4074,48 +4079,48 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
4074
4079
|
retry: $("retry"),
|
|
4075
4080
|
dismiss: $("cancel")
|
|
4076
4081
|
};
|
|
4077
|
-
}), r = w(() => na(n.value, c.locale ?? "en", c.ctx.displayName)), f = w(() => r.value?.message ?? (n.value?.code === "session_required" ? i.value.session : i.value.unavailable)),
|
|
4082
|
+
}), r = w(() => na(n.value, c.locale ?? "en", c.ctx.displayName)), f = w(() => r.value?.message ?? (n.value?.code === "session_required" ? i.value.session : i.value.unavailable)), p = nt({ call: (...k) => c.ctx.call(...k) }, c.mode, (k) => {
|
|
4078
4083
|
n.value = k, a.value = k !== void 0;
|
|
4079
4084
|
});
|
|
4080
4085
|
let d, v = !1;
|
|
4081
4086
|
async function x() {
|
|
4082
4087
|
u.value = !0;
|
|
4083
4088
|
try {
|
|
4084
|
-
await
|
|
4089
|
+
await p.check();
|
|
4085
4090
|
} finally {
|
|
4086
4091
|
v || (u.value = !1);
|
|
4087
4092
|
}
|
|
4088
4093
|
}
|
|
4089
|
-
function
|
|
4090
|
-
document.visibilityState !== "hidden" &&
|
|
4094
|
+
function E() {
|
|
4095
|
+
document.visibilityState !== "hidden" && p.check();
|
|
4091
4096
|
}
|
|
4092
4097
|
return we(() => {
|
|
4093
4098
|
d = c.ctx.reopen?.(() => {
|
|
4094
|
-
|
|
4095
|
-
}), document.addEventListener("visibilitychange",
|
|
4099
|
+
p.check();
|
|
4100
|
+
}), document.addEventListener("visibilitychange", E), p.check();
|
|
4096
4101
|
}), ge(() => {
|
|
4097
|
-
v = !0,
|
|
4098
|
-
}), (k, $) => (l(), _(
|
|
4102
|
+
v = !0, p.dispose(), d?.(), document.removeEventListener("visibilitychange", E);
|
|
4103
|
+
}), (k, $) => (l(), _(j, null, [
|
|
4099
4104
|
he(k.$slots, "default"),
|
|
4100
4105
|
n.value && a.value ? (l(), g(e(Be), {
|
|
4101
4106
|
key: 0,
|
|
4102
4107
|
open: a.value,
|
|
4103
|
-
"onUpdate:open": $[1] || ($[1] = (
|
|
4108
|
+
"onUpdate:open": $[1] || ($[1] = (A) => a.value = A),
|
|
4104
4109
|
title: r.value?.title ?? i.value.title,
|
|
4105
4110
|
description: f.value,
|
|
4106
4111
|
"close-label": i.value.dismiss
|
|
4107
4112
|
}, {
|
|
4108
4113
|
footer: s(() => [
|
|
4109
|
-
|
|
4114
|
+
m(e(I), {
|
|
4110
4115
|
variant: "secondary",
|
|
4111
|
-
onClick: $[0] || ($[0] = (
|
|
4116
|
+
onClick: $[0] || ($[0] = (A) => a.value = !1)
|
|
4112
4117
|
}, {
|
|
4113
4118
|
default: s(() => [
|
|
4114
4119
|
h(o(i.value.dismiss), 1)
|
|
4115
4120
|
]),
|
|
4116
4121
|
_: 1
|
|
4117
4122
|
}),
|
|
4118
|
-
|
|
4123
|
+
m(e(I), {
|
|
4119
4124
|
variant: "primary",
|
|
4120
4125
|
disabled: u.value,
|
|
4121
4126
|
onClick: x
|
|
@@ -4132,108 +4137,109 @@ const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authoriz
|
|
|
4132
4137
|
}
|
|
4133
4138
|
});
|
|
4134
4139
|
export {
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4140
|
+
Ds as AppShell,
|
|
4141
|
+
Xs as AuthorizationGate,
|
|
4142
|
+
Js as AuthorizationSettings,
|
|
4143
|
+
Ms as BackgroundPanel,
|
|
4144
|
+
Gs as BackgroundSavePanel,
|
|
4145
|
+
ps as BackgroundSaveSettings,
|
|
4146
|
+
Zs as DEFAULT_REQUEST_TIMEOUT,
|
|
4147
|
+
Hs as DelegatePanel,
|
|
4143
4148
|
Ws as EntryGuard,
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4149
|
+
Ks as ExecutorApproval,
|
|
4150
|
+
bl as ExecutorNotice,
|
|
4151
|
+
Fa as ExecutorPreloadKey,
|
|
4152
|
+
Ka as ExecutorSettings,
|
|
4148
4153
|
Ye as ExecutorSetupKey,
|
|
4149
4154
|
js as FILE_STATION_APP,
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4155
|
+
Ja as FileBrowser,
|
|
4156
|
+
Vs as FilesPage,
|
|
4157
|
+
eo as LIFECYCLE_RETRY_MAX_MS,
|
|
4158
|
+
ao as LIFECYCLE_STARTING_RETRY_MAX_MS,
|
|
4159
|
+
qs as LoginPage,
|
|
4160
|
+
to as MAX_LAUNCH_ROUTE,
|
|
4156
4161
|
ia as NasPicker,
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4162
|
+
Ns as PageActions,
|
|
4163
|
+
Ha as PageActionsTarget,
|
|
4164
|
+
Ls as PageInfo,
|
|
4165
|
+
Ga as PageInfoTarget,
|
|
4166
|
+
Bs as PortalSettings,
|
|
4167
|
+
Os as SharedFolderPermissionDialog,
|
|
4168
|
+
Fs as SharedFolderSettings,
|
|
4169
|
+
_l as UiUpdateNotice,
|
|
4170
|
+
lo as activePage,
|
|
4166
4171
|
Fe as appDenial,
|
|
4167
4172
|
Se as appLifecycle,
|
|
4168
4173
|
na as appRefusal,
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4174
|
+
no as authorizationCatalogs,
|
|
4175
|
+
Ua as authorizationCopy,
|
|
4176
|
+
so as backgroundCatalogs,
|
|
4177
|
+
Za as backgroundCopy,
|
|
4178
|
+
et as backgroundErrorCopy,
|
|
4179
|
+
oo as bridgeCatalogs,
|
|
4180
|
+
io as bridgeErrorCopy,
|
|
4181
|
+
uo as catalogs,
|
|
4182
|
+
ro as clientTimeout,
|
|
4178
4183
|
ja as createBackgroundPickerProvider,
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4184
|
+
co as createBackgroundSaveFacade,
|
|
4185
|
+
vo as createClient,
|
|
4186
|
+
Qa as createDsmFileStation,
|
|
4187
|
+
fo as createDsmSession,
|
|
4188
|
+
nt as createEntryCheck,
|
|
4189
|
+
po as createFileTransfers,
|
|
4185
4190
|
za as createNasProvider,
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4191
|
+
mo as createPortalAccess,
|
|
4192
|
+
Is as createSession,
|
|
4193
|
+
yo as createSharedFolderAccess,
|
|
4194
|
+
bo as createSharedFolderPermission,
|
|
4195
|
+
go as createStandaloneContext,
|
|
4196
|
+
ho as createStandaloneHost,
|
|
4197
|
+
ko as decodeResponse,
|
|
4198
|
+
_o as delegateCatalogs,
|
|
4194
4199
|
Re as delegateCopy,
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4200
|
+
wo as dsmLaunchURL,
|
|
4201
|
+
xo as encodeRequest,
|
|
4202
|
+
tt as errorCopy,
|
|
4203
|
+
Co as fileStationPath,
|
|
4204
|
+
$o as followLaunchRoute,
|
|
4205
|
+
Je as format,
|
|
4206
|
+
So as identityCatalogs,
|
|
4207
|
+
Ra as identityCopy,
|
|
4203
4208
|
Ea as isFullPage,
|
|
4204
|
-
|
|
4205
|
-
|
|
4209
|
+
Pa as joinSentences,
|
|
4210
|
+
ma as labelSeparator,
|
|
4211
|
+
Po as launchRoute,
|
|
4206
4212
|
Ve as lifecycleCopy,
|
|
4207
|
-
|
|
4213
|
+
at as lifecycleRefusal,
|
|
4208
4214
|
fa as lifecycleRetryDelay,
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4215
|
+
Eo as mergeCatalogs,
|
|
4216
|
+
To as nasCatalogs,
|
|
4217
|
+
Ae as nasCopy,
|
|
4218
|
+
Aa as nasErrorCopy,
|
|
4219
|
+
Ao as openFileInFileStation,
|
|
4214
4220
|
zo as openFolderInFileStation,
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
+
Ro as portalCatalogs,
|
|
4222
|
+
Uo as portalMessages,
|
|
4223
|
+
Io as protocolCodes,
|
|
4224
|
+
Do as protocolOps,
|
|
4225
|
+
No as protocolSchemas,
|
|
4226
|
+
Lo as readDsmPorts,
|
|
4221
4227
|
da as requestKey,
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4228
|
+
Vo as saveCatalogs,
|
|
4229
|
+
pa as saveCopy,
|
|
4230
|
+
je as saveError,
|
|
4231
|
+
lt as scopedPicker,
|
|
4232
|
+
Bo as sharedFolderAccessFor,
|
|
4233
|
+
Fo as sharedFolderCatalogs,
|
|
4234
|
+
Oo as sharedFolderMessages,
|
|
4235
|
+
qo as sharedFolderPermissionMessage,
|
|
4236
|
+
Mo as shellCatalogs,
|
|
4237
|
+
Ze as shellCopy,
|
|
4238
|
+
Ko as shellPages,
|
|
4239
|
+
Ta as uiLocale,
|
|
4240
|
+
Ho as uiLocales,
|
|
4241
|
+
_s as useAuthorization,
|
|
4242
|
+
Et as useExecutorPreload,
|
|
4243
|
+
Oa as useExecutorSetup,
|
|
4238
4244
|
zt as useNasRequest
|
|
4239
4245
|
};
|