@synopackageland/sdk 0.11.0 → 0.12.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/delegate/de.json +2 -1
- package/dist/i18n/delegate/en.json +2 -1
- package/dist/i18n/delegate/es.json +2 -1
- package/dist/i18n/delegate/fr.json +2 -1
- package/dist/i18n/delegate/it.json +2 -1
- package/dist/i18n/delegate/ja.json +2 -1
- package/dist/i18n/delegate/ko.json +2 -1
- package/dist/i18n/delegate/zh-CN.json +2 -1
- package/dist/i18n/delegate/zh-TW.json +2 -1
- package/dist/index.js +1862 -1853
- package/dist/src/delegate/copy.d.ts +2 -0
- package/dist/src/delegate/executor-setup.d.ts +1 -0
- package/dist/src/delegate/use-scope-approval.d.ts +1 -0
- package/dist/src/protocol/v1.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/vue.js +646 -646
- package/package.json +3 -3
- package/spec/protocol/v1/README.md +13 -0
- package/spec/protocol/v1/schema/webapi.call.json +6 -1
- package/spec/protocol/v1/vectors/webapi.jsonl +1 -0
package/dist/vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { appRefusal as da, appDenial as Be, delegateCopy as Ve, appLifecycle as Ce, lifecycleRetryDelay as ca, uiLocale as va, lifecycleCopy as Ne, shellCopy as sa, isFullPage as $a, format as Je, nasCopy as Te, nasErrorCopy as Sa, saveCopy as fa, saveError as Ye, createNasProvider as Pa, identityCopy as Xa, backgroundCopy as Wa, createBackgroundPickerProvider as Ga, backgroundErrorCopy as Ja, requestKey as ba, labelSeparator as Ea, lifecycleRefusal as Ya, errorCopy as Qa, scopedPicker as Za, authorizationCopy as ja } from "./index.js";
|
|
2
|
-
import { DEFAULT_REQUEST_TIMEOUT as
|
|
3
|
-
import { inject as Ee, ref as y, computed as _, onBeforeUnmount as we, Comment as et, Text as at, Fragment as oe, watch as Oe, onMounted as Se, defineComponent as fe, openBlock as l, createElementBlock as $, normalizeClass as De, createElementVNode as S, createVNode as v, unref as e, toDisplayString as s, createCommentVNode as
|
|
2
|
+
import { DEFAULT_REQUEST_TIMEOUT as Co, FILE_STATION_APP as $o, LIFECYCLE_RETRY_MAX_MS as So, LIFECYCLE_STARTING_RETRY_MAX_MS as Po, activePage as Eo, authorizationCatalogs as To, backgroundCatalogs as zo, bridgeCatalogs as Ao, bridgeErrorCopy as Ro, catalogs as Io, clientTimeout as Do, createBackgroundSaveFacade as Uo, createDsmSession as Vo, createFileTransfers as No, createPortalAccess as Bo, createStandaloneContext as Lo, createStandaloneHost as Oo, decodeResponse as Fo, delegateCatalogs as qo, encodeRequest as Mo, fileStationPath as Ko, identityCatalogs as Ho, mergeCatalogs as Xo, nasCatalogs as Wo, openFileInFileStation as Go, openFolderInFileStation as Jo, portalCatalogs as Yo, portalMessages as Qo, protocolCodes as Zo, protocolOps as jo, protocolSchemas as es, saveCatalogs as as, shellCatalogs as ts, shellPages as ls, uiLocales as ns } from "./index.js";
|
|
3
|
+
import { inject as Ee, ref as y, computed as _, onBeforeUnmount as we, Comment as et, Text as at, Fragment as oe, watch as Oe, onMounted as Se, defineComponent as fe, openBlock as l, createElementBlock as $, normalizeClass as De, createElementVNode as S, createVNode as v, unref as e, toDisplayString as s, createCommentVNode as b, renderList as ge, createTextVNode as h, renderSlot as be, createBlock as g, withCtx as n, resolveDynamicComponent as Xe, normalizeProps as Qe, mergeProps as pa, withModifiers as qe, isRef as Ze, provide as Le, useTemplateRef as He, useSlots as Ta, watchEffect as ga, guardReactiveProps as ha, createSlots as za, Teleport as Aa, markRaw as tt, h as lt, onUnmounted as Ra, nextTick as nt } from "vue";
|
|
4
4
|
import { SettingsSection as ke, Callout as j, Button as V, SettingsRow as xe, Skeleton as Fe, Badge as ia, PathDisplay as Ue, Form as Me, FormItem as $e, Select as ma, Input as ze, Dialog as Ge, ensureDeviceViewport as ot, AppRoot as st, ConfigProvider as it, PageContent as ka, PageHeader as wa, AppLayout as ut, AppSidebar as rt, AppSidebarUser as dt, InfoTip as ct, FileTypeIcon as la, IconButton as na, Breadcrumb as vt, FilePicker as ft, TreeView as pt, DataGrid as mt, Link as ua, FormActions as aa, Card as _a, Checkbox as yt, LoadingArea as bt } from "@synopackageland/ui";
|
|
5
5
|
import { Timer as gt, Info as ht, ShieldCheck as Ia, ChevronRight as Da, ChevronLeft as kt, RotateCw as wt } from "@lucide/vue";
|
|
6
6
|
const We = /* @__PURE__ */ Symbol("executor-setup"), Ua = /* @__PURE__ */ Symbol("executor-preload");
|
|
@@ -24,32 +24,32 @@ const xt = ["password_rejected", "password_required", "password_confirm_failed"]
|
|
|
24
24
|
function je(t) {
|
|
25
25
|
if (t.state !== "blocked") return;
|
|
26
26
|
if (t.code) return xt.includes(t.code) ? t.code : void 0;
|
|
27
|
-
const
|
|
28
|
-
if (/^dsm_3121\b/.test(
|
|
29
|
-
if (/^\S+: administrator password confirmation failed\./.test(
|
|
27
|
+
const m = t.reason ?? "";
|
|
28
|
+
if (/^dsm_3121\b/.test(m)) return "password_rejected";
|
|
29
|
+
if (/^\S+: administrator password confirmation failed\./.test(m)) return "password_confirm_failed";
|
|
30
30
|
}
|
|
31
31
|
function Ct(t) {
|
|
32
32
|
return /: the executor status request failed\.$/.test(t ?? "");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
let c = !1,
|
|
34
|
+
function uo(t) {
|
|
35
|
+
const m = y(), o = _(() => m.value ? { code: m.value, ...da({ code: m.value }, t.locale, t.displayName) } : void 0), a = y(!1), i = y(!1), u = y(), r = y("");
|
|
36
|
+
let c = !1, f = 0, d, p;
|
|
37
37
|
function x() {
|
|
38
|
-
clearTimeout(d), clearTimeout(
|
|
38
|
+
clearTimeout(d), clearTimeout(p);
|
|
39
39
|
}
|
|
40
40
|
function P(B = "") {
|
|
41
|
-
|
|
41
|
+
f++, x(), u.value = void 0, r.value = B;
|
|
42
42
|
}
|
|
43
43
|
function w(B) {
|
|
44
44
|
const K = Be(B);
|
|
45
|
-
return c || !K ? !1 : (P(),
|
|
45
|
+
return c || !K ? !1 : (P(), m.value = K, !0);
|
|
46
46
|
}
|
|
47
47
|
async function C(B, K) {
|
|
48
|
-
const L =
|
|
48
|
+
const L = f;
|
|
49
49
|
try {
|
|
50
50
|
return await t.call(B, K);
|
|
51
51
|
} catch (R) {
|
|
52
|
-
throw L ===
|
|
52
|
+
throw L === f && w(R), R;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function E(B) {
|
|
@@ -59,14 +59,14 @@ function io(t) {
|
|
|
59
59
|
P("expired");
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
x(),
|
|
63
|
-
const L =
|
|
64
|
-
|
|
62
|
+
x(), m.value = void 0, u.value = B, r.value = "", d = setTimeout(() => P("expired"), K);
|
|
63
|
+
const L = f;
|
|
64
|
+
p = setTimeout(async () => {
|
|
65
65
|
try {
|
|
66
66
|
const R = await C("identity.session");
|
|
67
|
-
!c &&
|
|
67
|
+
!c && f === L && E(R);
|
|
68
68
|
} catch (R) {
|
|
69
|
-
!c &&
|
|
69
|
+
!c && f === L && !w(R) && P("expired");
|
|
70
70
|
}
|
|
71
71
|
}, Math.min(6e4, K));
|
|
72
72
|
}
|
|
@@ -74,7 +74,7 @@ function io(t) {
|
|
|
74
74
|
try {
|
|
75
75
|
const B = await C("identity.status");
|
|
76
76
|
if (c) return;
|
|
77
|
-
if (
|
|
77
|
+
if (m.value = void 0, a.value = B.enabled === !0, a.value)
|
|
78
78
|
try {
|
|
79
79
|
E(await C("identity.session", { bootstrap: !0 }));
|
|
80
80
|
} catch (K) {
|
|
@@ -89,24 +89,24 @@ function io(t) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
async function T(B, K) {
|
|
92
|
-
const L =
|
|
92
|
+
const L = f;
|
|
93
93
|
try {
|
|
94
94
|
const R = await t.call(B, K);
|
|
95
|
-
if (c || a.value && L !==
|
|
95
|
+
if (c || a.value && L !== f) throw { code: "session_required" };
|
|
96
96
|
return R;
|
|
97
97
|
} catch (R) {
|
|
98
|
-
L ===
|
|
98
|
+
L === f && w(R);
|
|
99
99
|
const A = R?.code;
|
|
100
|
-
throw !c && L ===
|
|
100
|
+
throw !c && L === f && a.value && ["session_required", "session_revalidation_required"].includes(A || "") && P(A === "session_revalidation_required" ? "revalidate" : "expired"), R;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
async function N(B, K, L) {
|
|
104
104
|
const R = await C("identity.login", { account: B, password: K, otp: L });
|
|
105
|
-
c || (
|
|
105
|
+
c || (f++, E(R));
|
|
106
106
|
}
|
|
107
107
|
async function te() {
|
|
108
108
|
const B = await C("identity.session", { bootstrap: !0 });
|
|
109
|
-
c || (
|
|
109
|
+
c || (f++, E(B));
|
|
110
110
|
}
|
|
111
111
|
async function F() {
|
|
112
112
|
await C("identity.logout"), c || P();
|
|
@@ -117,42 +117,42 @@ function io(t) {
|
|
|
117
117
|
return { enabled: a, ready: i, subject: u, notice: r, denied: o, start: k, call: T, login: N, bootstrap: te, logout: F, dispose: Y };
|
|
118
118
|
}
|
|
119
119
|
function $t() {
|
|
120
|
-
const t = y(!1),
|
|
120
|
+
const t = y(!1), m = y();
|
|
121
121
|
let o = !1, a = 0, i;
|
|
122
122
|
function u() {
|
|
123
|
-
a++, i?.abort(), i = void 0, t.value = !1,
|
|
123
|
+
a++, i?.abort(), i = void 0, t.value = !1, m.value = void 0;
|
|
124
124
|
}
|
|
125
125
|
async function r(c) {
|
|
126
126
|
if (o || t.value) return;
|
|
127
|
-
const
|
|
128
|
-
i = d, t.value = !0,
|
|
127
|
+
const f = ++a, d = new AbortController();
|
|
128
|
+
i = d, t.value = !0, m.value = void 0;
|
|
129
129
|
try {
|
|
130
|
-
const
|
|
131
|
-
return !o &&
|
|
132
|
-
} catch (
|
|
133
|
-
!o &&
|
|
130
|
+
const p = await c(d.signal);
|
|
131
|
+
return !o && f === a ? p : void 0;
|
|
132
|
+
} catch (p) {
|
|
133
|
+
!o && f === a && (m.value = p);
|
|
134
134
|
return;
|
|
135
135
|
} finally {
|
|
136
|
-
!o &&
|
|
136
|
+
!o && f === a && (t.value = !1, i = void 0);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
return we(() => {
|
|
140
140
|
o = !0, u();
|
|
141
|
-
}), { busy: t, error:
|
|
141
|
+
}), { busy: t, error: m, run: r, cancel: u };
|
|
142
142
|
}
|
|
143
143
|
const xa = ".sds-standalone-main-window";
|
|
144
144
|
function St(t) {
|
|
145
|
-
const
|
|
145
|
+
const m = { brand: !1, user: !1 };
|
|
146
146
|
try {
|
|
147
147
|
const o = t.closest(xa);
|
|
148
|
-
if (!t.isConnected || !o || o.classList.contains("sds-standalone-main-window--no-banner")) return
|
|
148
|
+
if (!t.isConnected || !o || o.classList.contains("sds-standalone-main-window--no-banner")) return m;
|
|
149
149
|
const a = (i) => Array.from(o.querySelectorAll(i)).some((u) => {
|
|
150
150
|
if (t.contains(u) || u.closest(xa) !== o || !u.textContent?.trim()) return !1;
|
|
151
151
|
const r = u.ownerDocument.defaultView;
|
|
152
152
|
if (!r) return !1;
|
|
153
|
-
for (let
|
|
154
|
-
const d = r.getComputedStyle(
|
|
155
|
-
if (
|
|
153
|
+
for (let f = u; f; f = f.parentElement) {
|
|
154
|
+
const d = r.getComputedStyle(f);
|
|
155
|
+
if (f.hidden || d.display === "none" || d.visibility === "hidden" || d.visibility === "collapse" || d.opacity === "0") return !1;
|
|
156
156
|
}
|
|
157
157
|
const c = u.getBoundingClientRect();
|
|
158
158
|
return c.width > 0 && c.height > 0;
|
|
@@ -162,36 +162,36 @@ function St(t) {
|
|
|
162
162
|
user: a(".sds-standalone-main-window-header .sds-standalone-main-window-header__toolbar__btn")
|
|
163
163
|
};
|
|
164
164
|
} catch {
|
|
165
|
-
return
|
|
165
|
+
return m;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
function Na(t) {
|
|
169
|
-
return Array.isArray(t) && t.some((
|
|
170
|
-
const o =
|
|
169
|
+
return Array.isArray(t) && t.some((m) => {
|
|
170
|
+
const o = m;
|
|
171
171
|
return o.type === et ? !1 : o.type === at ? String(o.children).trim() !== "" : o.type === oe ? Na(o.children) : !0;
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function Pt(t) {
|
|
175
|
-
return Array.from(t.childNodes).some((
|
|
175
|
+
return Array.from(t.childNodes).some((m) => m.nodeType === Node.ELEMENT_NODE || m.nodeType === Node.TEXT_NODE && m.textContent.trim() !== "");
|
|
176
176
|
}
|
|
177
177
|
const Et = { status: ht, background: gt };
|
|
178
|
-
function Tt(t,
|
|
179
|
-
return t.map((o) => typeof o == "string" ? { id: o, title:
|
|
178
|
+
function Tt(t, m) {
|
|
179
|
+
return t.map((o) => typeof o == "string" ? { id: o, title: m[o], icon: Et[o] } : o);
|
|
180
180
|
}
|
|
181
181
|
function zt(t) {
|
|
182
|
-
const
|
|
182
|
+
const m = /* @__PURE__ */ new Map(), o = { items: [] };
|
|
183
183
|
for (const a of t) {
|
|
184
184
|
if (a.hidden) continue;
|
|
185
|
-
let i = a.placement === "bottom" ? o :
|
|
186
|
-
i ||
|
|
185
|
+
let i = a.placement === "bottom" ? o : m.get(a.group);
|
|
186
|
+
i || m.set(a.group, i = a.group === void 0 ? { items: [] } : { label: a.group, items: [] }), i.items.push({ key: a.id, label: a.title, icon: a.icon, badge: a.badge });
|
|
187
187
|
}
|
|
188
|
-
return o.items.length ? [...
|
|
188
|
+
return o.items.length ? [...m.values(), o] : [...m.values()];
|
|
189
189
|
}
|
|
190
190
|
const At = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Rt = 6e4, It = 1e3;
|
|
191
|
-
function Ba(t,
|
|
192
|
-
const o = Va(), a = _(() => Ve(t.locale)), i = y(), u = y(""), r = y(!1), c = y(!1),
|
|
191
|
+
function Ba(t, m) {
|
|
192
|
+
const o = Va(), a = _(() => Ve(t.locale)), i = y(), u = y(""), r = y(!1), c = y(!1), f = y(!1), d = y(), p = y(!1), x = _(() => p.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[At[d.value.confirm]] : "");
|
|
193
193
|
Oe(u, () => {
|
|
194
|
-
|
|
194
|
+
p.value = !1;
|
|
195
195
|
});
|
|
196
196
|
const P = y(), w = y(""), C = y([]), E = _(() => P.value?.scope_mode === "install-selected"), k = _(() => !!P.value?.scope_mode), T = _(() => [{ label: a.value.homeScope, value: "home" }, ...C.value]), N = _(() => !E.value || !!w.value && T.value.some((M) => M.value === w.value)), te = _(() => E.value && !P.value?.selection);
|
|
197
197
|
let F = !1;
|
|
@@ -215,11 +215,11 @@ function Ba(t, p) {
|
|
|
215
215
|
}
|
|
216
216
|
async function B(M) {
|
|
217
217
|
if (!(!t.admin || r.value)) {
|
|
218
|
-
r.value = !0,
|
|
218
|
+
r.value = !0, f.value = !1, d.value = void 0;
|
|
219
219
|
try {
|
|
220
220
|
await Y(M);
|
|
221
221
|
} catch {
|
|
222
|
-
F || (
|
|
222
|
+
F || (f.value = !0);
|
|
223
223
|
} finally {
|
|
224
224
|
F || (r.value = !1);
|
|
225
225
|
}
|
|
@@ -227,8 +227,8 @@ function Ba(t, p) {
|
|
|
227
227
|
}
|
|
228
228
|
const K = () => B();
|
|
229
229
|
async function L() {
|
|
230
|
-
if (!t.admin || r.value || !u.value || !N.value ||
|
|
231
|
-
r.value = !0,
|
|
230
|
+
if (!t.admin || r.value || !u.value || !N.value || f.value) return;
|
|
231
|
+
r.value = !0, f.value = !1, d.value = void 0;
|
|
232
232
|
const M = u.value, se = w.value;
|
|
233
233
|
u.value = "", c.value = !0;
|
|
234
234
|
try {
|
|
@@ -246,15 +246,15 @@ function Ba(t, p) {
|
|
|
246
246
|
F || (d.value = { reason: H.reason ?? "", code: H.code });
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
|
-
F || await
|
|
249
|
+
F || await m();
|
|
250
250
|
} catch {
|
|
251
|
-
F || (
|
|
251
|
+
F || (f.value = !0);
|
|
252
252
|
} finally {
|
|
253
253
|
F || (r.value = !1, c.value = !1);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
function R() {
|
|
257
|
-
return !u.value && !r.value ? (
|
|
257
|
+
return !u.value && !r.value ? (p.value = !0, Promise.resolve()) : L();
|
|
258
258
|
}
|
|
259
259
|
async function A(M) {
|
|
260
260
|
for (const se = Date.now() + Rt; !F; await new Promise((H) => setTimeout(H, It))) {
|
|
@@ -272,13 +272,13 @@ function Ba(t, p) {
|
|
|
272
272
|
}), B(t.initial);
|
|
273
273
|
}), we(() => {
|
|
274
274
|
F = !0, u.value = "";
|
|
275
|
-
}), { status: i, password: u, busy: r, confirming: c, error:
|
|
275
|
+
}), { status: i, password: u, busy: r, confirming: c, error: f, failure: d, passwordError: x, scope: P, chosen: w, options: T, dynamic: E, files: k, webapiProfiles: o.webapiProfiles, canConfirm: N, needsScope: te, refresh: K, authorize: L, submit: R, explain: q };
|
|
276
276
|
}
|
|
277
|
-
function Ke(t,
|
|
277
|
+
function Ke(t, m) {
|
|
278
278
|
let o = !1, a, i = 0;
|
|
279
279
|
function u() {
|
|
280
280
|
clearTimeout(a), a = setTimeout(() => {
|
|
281
|
-
|
|
281
|
+
m().then(() => {
|
|
282
282
|
!o && t() && u();
|
|
283
283
|
});
|
|
284
284
|
}, ca(i++, t()));
|
|
@@ -306,10 +306,13 @@ const Dt = ["data-audience"], Ut = {
|
|
|
306
306
|
key: 0,
|
|
307
307
|
"data-webapi-profiles": ""
|
|
308
308
|
}, qt = {
|
|
309
|
+
key: 0,
|
|
310
|
+
"data-webapi-raw": ""
|
|
311
|
+
}, Mt = {
|
|
309
312
|
key: 1,
|
|
310
313
|
class: "executor-consent-more",
|
|
311
314
|
"data-consent-points": ""
|
|
312
|
-
},
|
|
315
|
+
}, Kt = /* @__PURE__ */ fe({
|
|
313
316
|
__name: "ExecutorConsent",
|
|
314
317
|
props: {
|
|
315
318
|
admin: { type: Boolean },
|
|
@@ -320,7 +323,7 @@ const Dt = ["data-audience"], Ut = {
|
|
|
320
323
|
webapiProfiles: {}
|
|
321
324
|
},
|
|
322
325
|
setup(t) {
|
|
323
|
-
const
|
|
326
|
+
const m = t, o = _(() => Ve(m.locale)), a = _(() => ["zh-TW", "zh-CN", "ja"].includes(va(m.locale ?? "en")) ? "" : " "), i = _(() => [o.value.consentWhy, m.purpose || (m.files ? o.value.consentPurposeFiles : o.value.consentPurpose)].join(a.value)), u = _(() => [o.value.pointPassword, o.value.pointLimited, o.value.pointUpdate, o.value.pointRevoke]);
|
|
324
327
|
return (r, c) => (l(), $("div", {
|
|
325
328
|
class: De(["executor-consent", `executor-consent-${t.layout ?? "inline"}`]),
|
|
326
329
|
"data-executor-consent": "",
|
|
@@ -335,23 +338,24 @@ const Dt = ["data-audience"], Ut = {
|
|
|
335
338
|
S("div", Nt, [
|
|
336
339
|
S("p", Bt, s(t.admin ? o.value.consentTitle : o.value.consentTitleUser), 1),
|
|
337
340
|
S("p", Lt, s(i.value), 1),
|
|
338
|
-
t.admin ?
|
|
341
|
+
t.admin ? b("", !0) : (l(), $("p", Ot, s(o.value.consentAsk), 1))
|
|
339
342
|
]),
|
|
340
343
|
t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), $("ul", Ft, [
|
|
341
|
-
(l(!0), $(oe, null, ge(t.webapiProfiles, (
|
|
344
|
+
(l(!0), $(oe, null, ge(t.webapiProfiles, (f, d) => (l(), $("li", { key: d }, [
|
|
342
345
|
S("strong", null, s(d), 1),
|
|
343
|
-
h(": " + s(
|
|
346
|
+
h(": " + s(f.purpose) + " ", 1),
|
|
344
347
|
S("details", null, [
|
|
345
348
|
S("summary", null, s(o.value.details), 1),
|
|
346
|
-
(l(!0), $(oe, null, ge(
|
|
349
|
+
(l(!0), $(oe, null, ge(f.apis, (p, x) => (l(), $("div", { key: x }, [
|
|
347
350
|
S("code", null, s(x), 1),
|
|
348
|
-
(l(!0), $(oe, null, ge(
|
|
349
|
-
]))), 128))
|
|
351
|
+
(l(!0), $(oe, null, ge(p, (P, w) => (l(), $("div", { key: w }, s(w) + " (" + s(P.join(", ")) + ")", 1))), 128))
|
|
352
|
+
]))), 128)),
|
|
353
|
+
f.raw_max_bytes ? (l(), $("code", qt, s(o.value.rawLimit) + ": " + s(f.raw_max_bytes), 1)) : b("", !0)
|
|
350
354
|
])
|
|
351
355
|
]))), 128))
|
|
352
|
-
])) :
|
|
356
|
+
])) : b("", !0),
|
|
353
357
|
be(r.$slots, "default", {}, void 0, !0),
|
|
354
|
-
t.admin ? (l(), $("details",
|
|
358
|
+
t.admin ? (l(), $("details", Mt, [
|
|
355
359
|
S("summary", null, [
|
|
356
360
|
v(e(Da), {
|
|
357
361
|
class: "executor-consent-chevron",
|
|
@@ -361,27 +365,27 @@ const Dt = ["data-audience"], Ut = {
|
|
|
361
365
|
h(s(o.value.consentDetails), 1)
|
|
362
366
|
]),
|
|
363
367
|
S("ul", null, [
|
|
364
|
-
(l(!0), $(oe, null, ge(u.value, (
|
|
368
|
+
(l(!0), $(oe, null, ge(u.value, (f) => (l(), $("li", { key: f }, s(f), 1))), 128))
|
|
365
369
|
])
|
|
366
|
-
])) :
|
|
370
|
+
])) : b("", !0)
|
|
367
371
|
])
|
|
368
372
|
], 10, Dt));
|
|
369
373
|
}
|
|
370
|
-
}), me = (t,
|
|
374
|
+
}), me = (t, m) => {
|
|
371
375
|
const o = t.__vccOpts || t;
|
|
372
|
-
for (const [a, i] of
|
|
376
|
+
for (const [a, i] of m)
|
|
373
377
|
o[a] = i;
|
|
374
378
|
return o;
|
|
375
|
-
}, ea = /* @__PURE__ */ me(
|
|
379
|
+
}, ea = /* @__PURE__ */ me(Kt, [["__scopeId", "data-v-aacde22e"]]), Ht = { class: "executor-alert" }, Xt = {
|
|
376
380
|
key: 0,
|
|
377
381
|
class: "executor-reason"
|
|
378
|
-
},
|
|
382
|
+
}, Wt = {
|
|
379
383
|
key: 0,
|
|
380
384
|
class: "executor-summary"
|
|
381
|
-
},
|
|
385
|
+
}, Gt = {
|
|
382
386
|
key: 1,
|
|
383
387
|
class: "executor-summary"
|
|
384
|
-
},
|
|
388
|
+
}, Jt = ["data-executor-status"], Yt = { class: "executor-reason" }, Qt = /* @__PURE__ */ fe({
|
|
385
389
|
__name: "ExecutorSettings",
|
|
386
390
|
props: {
|
|
387
391
|
admin: { type: Boolean },
|
|
@@ -393,30 +397,30 @@ const Dt = ["data-audience"], Ut = {
|
|
|
393
397
|
layout: {}
|
|
394
398
|
},
|
|
395
399
|
emits: ["confirmed"],
|
|
396
|
-
setup(t, { expose:
|
|
397
|
-
const a = t, i = o, u = _(() => Ve(a.locale)), { status: r, password: c, busy:
|
|
400
|
+
setup(t, { expose: m, emit: o }) {
|
|
401
|
+
const a = t, i = o, u = _(() => Ve(a.locale)), { status: r, password: c, busy: f, confirming: d, error: p, failure: x, passwordError: P, scope: w, chosen: C, options: E, dynamic: k, files: T, webapiProfiles: N, canConfirm: te, needsScope: F, refresh: Y, submit: B, explain: K } = Ba(a, () => i("confirmed")), L = _(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), R = _(() => ({ ready: { tone: "success", text: u.value.statusReady }, blocked: { tone: "danger", text: u.value.statusBlocked }, confirming: { tone: "info", text: u.value.statusConfirming } })[L.value ?? "confirming"]), A = _(() => d.value ? void 0 : Ce(r.value));
|
|
398
402
|
Ke(() => A.value, Y);
|
|
399
403
|
const q = _(() => !A.value && (r.value?.state === "needs-admin-approval" || F.value)), M = _(() => q.value || !!r.value?.retry);
|
|
400
|
-
return
|
|
404
|
+
return m({ refresh: Y }), (se, H) => t.admin ? (l(), g(e(ke), {
|
|
401
405
|
key: 0,
|
|
402
406
|
title: t.title ?? u.value.setupTitle,
|
|
403
407
|
description: q.value ? void 0 : e(T) ? u.value.setupHelpFiles : u.value.setupHelp,
|
|
404
408
|
collapsible: !1,
|
|
405
|
-
"aria-busy": e(
|
|
409
|
+
"aria-busy": e(f) || !e(r) && !e(d) && !e(p)
|
|
406
410
|
}, {
|
|
407
411
|
default: n(() => [
|
|
408
|
-
e(
|
|
412
|
+
e(p) ? (l(), g(e(j), {
|
|
409
413
|
key: 0,
|
|
410
414
|
tone: "danger",
|
|
411
415
|
role: "alert"
|
|
412
416
|
}, {
|
|
413
417
|
default: n(() => [
|
|
414
|
-
S("span",
|
|
418
|
+
S("span", Ht, [
|
|
415
419
|
S("span", null, s(u.value.setupError), 1),
|
|
416
420
|
v(e(V), {
|
|
417
421
|
variant: "secondary",
|
|
418
422
|
size: "sm",
|
|
419
|
-
disabled: e(
|
|
423
|
+
disabled: e(f),
|
|
420
424
|
onClick: e(Y)
|
|
421
425
|
}, {
|
|
422
426
|
default: n(() => [
|
|
@@ -427,18 +431,18 @@ const Dt = ["data-audience"], Ut = {
|
|
|
427
431
|
])
|
|
428
432
|
]),
|
|
429
433
|
_: 1
|
|
430
|
-
})) : e(x) && !("confirm" in e(x)) ? (l(),
|
|
434
|
+
})) : e(x) && !("confirm" in e(x)) ? (l(), g(e(j), {
|
|
431
435
|
key: 1,
|
|
432
436
|
tone: "danger",
|
|
433
437
|
role: "alert"
|
|
434
438
|
}, {
|
|
435
439
|
default: n(() => [
|
|
436
440
|
h(s(e(x).code === "session_ended" ? u.value.session : e(K)(e(x)) ?? u.value.setupError), 1),
|
|
437
|
-
e(x).reason ? (l(), $("span",
|
|
441
|
+
e(x).reason ? (l(), $("span", Xt, s(e(x).reason), 1)) : b("", !0)
|
|
438
442
|
]),
|
|
439
443
|
_: 1
|
|
440
|
-
})) :
|
|
441
|
-
A.value ? (l(),
|
|
444
|
+
})) : b("", !0),
|
|
445
|
+
A.value ? (l(), g(e(j), {
|
|
442
446
|
key: 2,
|
|
443
447
|
tone: "info",
|
|
444
448
|
role: "status"
|
|
@@ -448,7 +452,7 @@ const Dt = ["data-audience"], Ut = {
|
|
|
448
452
|
]),
|
|
449
453
|
_: 1
|
|
450
454
|
})) : (l(), $(oe, { key: 3 }, [
|
|
451
|
-
!e(r) && !e(d) && !e(
|
|
455
|
+
!e(r) && !e(d) && !e(p) ? (l(), $("div", Wt, [
|
|
452
456
|
v(e(xe), {
|
|
453
457
|
label: u.value.status,
|
|
454
458
|
"data-placeholder-row": ""
|
|
@@ -461,8 +465,8 @@ const Dt = ["data-audience"], Ut = {
|
|
|
461
465
|
]),
|
|
462
466
|
_: 1
|
|
463
467
|
}, 8, ["label"])
|
|
464
|
-
])) :
|
|
465
|
-
(e(r) || e(d)) && !q.value ? (l(), $("div",
|
|
468
|
+
])) : b("", !0),
|
|
469
|
+
(e(r) || e(d)) && !q.value ? (l(), $("div", Gt, [
|
|
466
470
|
v(e(xe), {
|
|
467
471
|
label: u.value.status
|
|
468
472
|
}, {
|
|
@@ -479,25 +483,25 @@ const Dt = ["data-audience"], Ut = {
|
|
|
479
483
|
]),
|
|
480
484
|
_: 1
|
|
481
485
|
}, 8, ["tone"])
|
|
482
|
-
], 8,
|
|
486
|
+
], 8, Jt)
|
|
483
487
|
]),
|
|
484
488
|
_: 1
|
|
485
489
|
}, 8, ["label"]),
|
|
486
|
-
e(r)?.reason && (e(r).state === "blocked" || e(r).state === "unsupported") ? (l(),
|
|
490
|
+
e(r)?.reason && (e(r).state === "blocked" || e(r).state === "unsupported") ? (l(), g(e(xe), {
|
|
487
491
|
key: 0,
|
|
488
492
|
label: u.value.details
|
|
489
493
|
}, {
|
|
490
494
|
default: n(() => [
|
|
491
495
|
e(K)(e(r)) ? (l(), $(oe, { key: 0 }, [
|
|
492
496
|
h(s(e(K)(e(r))), 1),
|
|
493
|
-
S("span",
|
|
497
|
+
S("span", Yt, s(e(r).reason), 1)
|
|
494
498
|
], 64)) : (l(), $(oe, { key: 1 }, [
|
|
495
499
|
h(s(e(r).reason), 1)
|
|
496
500
|
], 64))
|
|
497
501
|
]),
|
|
498
502
|
_: 1
|
|
499
|
-
}, 8, ["label"])) :
|
|
500
|
-
e(w)?.selection ? (l(),
|
|
503
|
+
}, 8, ["label"])) : b("", !0),
|
|
504
|
+
e(w)?.selection ? (l(), g(e(xe), {
|
|
501
505
|
key: 1,
|
|
502
506
|
label: u.value.protectedScope
|
|
503
507
|
}, {
|
|
@@ -507,9 +511,9 @@ const Dt = ["data-audience"], Ut = {
|
|
|
507
511
|
}, null, 8, ["path"])
|
|
508
512
|
]),
|
|
509
513
|
_: 1
|
|
510
|
-
}, 8, ["label"])) :
|
|
511
|
-
])) :
|
|
512
|
-
L.value === "blocked" && !q.value ? (l(),
|
|
514
|
+
}, 8, ["label"])) : b("", !0)
|
|
515
|
+
])) : b("", !0),
|
|
516
|
+
L.value === "blocked" && !q.value ? (l(), g(e(j), {
|
|
513
517
|
key: 2,
|
|
514
518
|
tone: "warning"
|
|
515
519
|
}, {
|
|
@@ -517,8 +521,8 @@ const Dt = ["data-audience"], Ut = {
|
|
|
517
521
|
h(s(e(T) ? u.value.blocked : u.value.executorBlocked), 1)
|
|
518
522
|
]),
|
|
519
523
|
_: 1
|
|
520
|
-
})) :
|
|
521
|
-
e(w)?.mismatch ? (l(),
|
|
524
|
+
})) : b("", !0),
|
|
525
|
+
e(w)?.mismatch ? (l(), g(e(j), {
|
|
522
526
|
key: 3,
|
|
523
527
|
tone: "warning"
|
|
524
528
|
}, {
|
|
@@ -526,8 +530,8 @@ const Dt = ["data-audience"], Ut = {
|
|
|
526
530
|
h(s(u.value.scopeMismatch), 1)
|
|
527
531
|
]),
|
|
528
532
|
_: 1
|
|
529
|
-
})) :
|
|
530
|
-
M.value ? (l(),
|
|
533
|
+
})) : b("", !0),
|
|
534
|
+
M.value ? (l(), g(Xe(q.value ? ea : "div"), Qe(pa({ key: 4 }, q.value ? { admin: !0, locale: t.locale, files: e(T), purpose: t.purpose, layout: t.layout, webapiProfiles: e(N) } : {})), {
|
|
531
535
|
default: n(() => [
|
|
532
536
|
v(e(Me), {
|
|
533
537
|
direction: "vertical",
|
|
@@ -535,7 +539,7 @@ const Dt = ["data-audience"], Ut = {
|
|
|
535
539
|
onSubmit: qe(e(B), ["prevent"])
|
|
536
540
|
}, {
|
|
537
541
|
default: n(() => [
|
|
538
|
-
e(k) ? (l(),
|
|
542
|
+
e(k) ? (l(), g(e($e), {
|
|
539
543
|
key: 0,
|
|
540
544
|
label: u.value.scopeLabel,
|
|
541
545
|
description: u.value.preselectionHelp
|
|
@@ -546,11 +550,11 @@ const Dt = ["data-audience"], Ut = {
|
|
|
546
550
|
modelValue: e(C),
|
|
547
551
|
"onUpdate:modelValue": H[0] || (H[0] = (G) => Ze(C) ? C.value = G : null),
|
|
548
552
|
options: e(E),
|
|
549
|
-
disabled: e(
|
|
553
|
+
disabled: e(f) || e(p)
|
|
550
554
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
551
555
|
]),
|
|
552
556
|
_: 1
|
|
553
|
-
}, 8, ["label", "description"])) :
|
|
557
|
+
}, 8, ["label", "description"])) : b("", !0),
|
|
554
558
|
v(e($e), {
|
|
555
559
|
label: u.value.password,
|
|
556
560
|
description: e(d) ? u.value.confirmingHelp : u.value.passwordNote,
|
|
@@ -564,7 +568,7 @@ const Dt = ["data-audience"], Ut = {
|
|
|
564
568
|
type: "submit",
|
|
565
569
|
variant: "primary",
|
|
566
570
|
loading: e(d),
|
|
567
|
-
disabled: e(
|
|
571
|
+
disabled: e(f) || e(p) || !e(te)
|
|
568
572
|
}, {
|
|
569
573
|
default: n(() => [
|
|
570
574
|
h(s(e(k) ? u.value.confirmShare : u.value.authorize), 1)
|
|
@@ -580,7 +584,7 @@ const Dt = ["data-audience"], Ut = {
|
|
|
580
584
|
type: "password",
|
|
581
585
|
autocomplete: "current-password",
|
|
582
586
|
invalid: !!e(P),
|
|
583
|
-
disabled: e(
|
|
587
|
+
disabled: e(f) || e(p)
|
|
584
588
|
}, null, 8, ["modelValue", "invalid", "disabled"])
|
|
585
589
|
]),
|
|
586
590
|
_: 1
|
|
@@ -590,19 +594,19 @@ const Dt = ["data-audience"], Ut = {
|
|
|
590
594
|
}, 8, ["onSubmit"])
|
|
591
595
|
]),
|
|
592
596
|
_: 1
|
|
593
|
-
}, 16)) :
|
|
597
|
+
}, 16)) : b("", !0)
|
|
594
598
|
], 64))
|
|
595
599
|
]),
|
|
596
600
|
_: 1
|
|
597
|
-
}, 8, ["title", "description", "aria-busy"])) :
|
|
601
|
+
}, 8, ["title", "description", "aria-busy"])) : b("", !0);
|
|
598
602
|
}
|
|
599
|
-
}), La = /* @__PURE__ */ me(
|
|
603
|
+
}), La = /* @__PURE__ */ me(Qt, [["__scopeId", "data-v-5a1f26e3"]]), Zt = {
|
|
600
604
|
key: 0,
|
|
601
605
|
class: "executor-notice"
|
|
602
|
-
},
|
|
606
|
+
}, jt = {
|
|
603
607
|
key: 1,
|
|
604
608
|
class: "executor-notice"
|
|
605
|
-
},
|
|
609
|
+
}, el = { class: "executor-notice-body" }, al = /* @__PURE__ */ fe({
|
|
606
610
|
__name: "ExecutorNotice",
|
|
607
611
|
props: {
|
|
608
612
|
locale: {},
|
|
@@ -610,10 +614,10 @@ const Dt = ["data-audience"], Ut = {
|
|
|
610
614
|
ctx: {}
|
|
611
615
|
},
|
|
612
616
|
setup(t) {
|
|
613
|
-
const
|
|
617
|
+
const m = t, o = _(() => Ve(m.locale)), a = Ee(We, void 0) ?? m.ctx.executor;
|
|
614
618
|
a && Le(We, a);
|
|
615
|
-
const i = y("checking"), u = y(), r = y(!1), c = _(() =>
|
|
616
|
-
let
|
|
619
|
+
const i = y("checking"), u = y(), r = y(!1), c = _(() => m.ctx.user?.isAdmin === !0), f = _(() => !u.value && (i.value === "needs-admin-approval" || i.value === "blocked")), d = _(() => a?.call ? { call: (k, T) => a.call(k, T) } : m.ctx.call ? m.ctx : void 0);
|
|
620
|
+
let p = !1, x, P, w = 0;
|
|
617
621
|
function C(k) {
|
|
618
622
|
const T = u.value;
|
|
619
623
|
if (u.value = Ce(k), i.value = k?.state ?? "unknown", clearTimeout(P), k && !u.value) {
|
|
@@ -632,17 +636,17 @@ const Dt = ["data-audience"], Ut = {
|
|
|
632
636
|
} catch {
|
|
633
637
|
k = void 0;
|
|
634
638
|
}
|
|
635
|
-
|
|
639
|
+
p || C(k);
|
|
636
640
|
}
|
|
637
641
|
return Se(() => {
|
|
638
642
|
a && (a.subscribe?.((k) => {
|
|
639
|
-
!
|
|
640
|
-
}), x =
|
|
643
|
+
!p && !je(k) && C(k);
|
|
644
|
+
}), x = m.ctx.reopen?.(() => {
|
|
641
645
|
E();
|
|
642
646
|
}), E());
|
|
643
647
|
}), we(() => {
|
|
644
|
-
|
|
645
|
-
}), (k, T) => u.value ? (l(), $("div",
|
|
648
|
+
p = !0, clearTimeout(P), x?.();
|
|
649
|
+
}), (k, T) => u.value ? (l(), $("div", Zt, [
|
|
646
650
|
v(e(j), {
|
|
647
651
|
tone: "info",
|
|
648
652
|
role: "status"
|
|
@@ -652,12 +656,12 @@ const Dt = ["data-audience"], Ut = {
|
|
|
652
656
|
]),
|
|
653
657
|
_: 1
|
|
654
658
|
})
|
|
655
|
-
])) :
|
|
659
|
+
])) : f.value ? (l(), $("div", jt, [
|
|
656
660
|
v(e(j), { tone: "warning" }, {
|
|
657
661
|
default: n(() => [
|
|
658
|
-
S("span",
|
|
662
|
+
S("span", el, [
|
|
659
663
|
h(s(c.value ? o.value.noticeAdmin : o.value.noticeUser), 1),
|
|
660
|
-
c.value ? (l(),
|
|
664
|
+
c.value ? (l(), g(e(V), {
|
|
661
665
|
key: 0,
|
|
662
666
|
variant: "secondary",
|
|
663
667
|
size: "sm",
|
|
@@ -667,16 +671,15 @@ const Dt = ["data-audience"], Ut = {
|
|
|
667
671
|
h(s(o.value.noticeApprove), 1)
|
|
668
672
|
]),
|
|
669
673
|
_: 1
|
|
670
|
-
})) :
|
|
674
|
+
})) : b("", !0)
|
|
671
675
|
])
|
|
672
676
|
]),
|
|
673
677
|
_: 1
|
|
674
678
|
}),
|
|
675
|
-
c.value ? (l(),
|
|
679
|
+
c.value ? (l(), g(e(Ge), {
|
|
676
680
|
key: 0,
|
|
677
|
-
open: r.value &&
|
|
681
|
+
open: r.value && f.value,
|
|
678
682
|
title: o.value.setupTitle,
|
|
679
|
-
width: "560px",
|
|
680
683
|
"onUpdate:open": T[1] || (T[1] = (N) => r.value = N)
|
|
681
684
|
}, {
|
|
682
685
|
default: n(() => [
|
|
@@ -690,16 +693,16 @@ const Dt = ["data-audience"], Ut = {
|
|
|
690
693
|
}, null, 8, ["locale", "ctx", "purpose"])
|
|
691
694
|
]),
|
|
692
695
|
_: 1
|
|
693
|
-
}, 8, ["open", "title"])) :
|
|
694
|
-
])) :
|
|
696
|
+
}, 8, ["open", "title"])) : b("", !0)
|
|
697
|
+
])) : b("", !0);
|
|
695
698
|
}
|
|
696
|
-
}),
|
|
699
|
+
}), tl = /* @__PURE__ */ me(al, [["__scopeId", "data-v-d0aeb4e7"]]), Oa = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Fa = /* @__PURE__ */ Symbol("synopackageland:page-info"), qa = /* @__PURE__ */ Symbol("synopackageland:shell-locale"), ll = { role: "alert" }, nl = {
|
|
697
700
|
ref: "page-info",
|
|
698
701
|
class: "app-page-info"
|
|
699
|
-
},
|
|
702
|
+
}, ol = {
|
|
700
703
|
ref: "page-actions",
|
|
701
704
|
class: "app-page-actions"
|
|
702
|
-
},
|
|
705
|
+
}, sl = ["hidden"], il = { class: "app-page-content" }, ul = /* @__PURE__ */ fe({
|
|
703
706
|
__name: "AppShell",
|
|
704
707
|
props: {
|
|
705
708
|
locale: {},
|
|
@@ -717,10 +720,10 @@ const Dt = ["data-audience"], Ut = {
|
|
|
717
720
|
appRoot: { type: Boolean }
|
|
718
721
|
},
|
|
719
722
|
emits: ["update:modelValue"],
|
|
720
|
-
setup(t, { emit:
|
|
721
|
-
const o = t, a =
|
|
723
|
+
setup(t, { emit: m }) {
|
|
724
|
+
const o = t, a = m, i = _(() => sa(o.locale)), u = _(() => Tt(o.pages, i.value)), r = _(() => zt(u.value)), c = _(() => u.value.find((L) => L.id === o.modelValue)), f = _(() => c.value?.title ?? i.value[o.modelValue] ?? i.value.status), d = He("scroller"), p = _(() => o.pages.some((L) => typeof L != "string"));
|
|
722
725
|
Oe(() => o.modelValue, () => {
|
|
723
|
-
|
|
726
|
+
p.value && !o.keepScroll && d.value && (d.value.$el.scrollTop = 0);
|
|
724
727
|
}, { flush: "post" });
|
|
725
728
|
const x = Ta(), P = _(() => o.denied === !0 ? {} : o.denied || void 0), w = _(() => da(P.value, o.locale, o.brandName ?? o.ctx?.displayName)), C = _(() => o.ctx !== void 0 && $a(o.ctx)), E = _(() => C.value ? o.ctx : void 0), k = (L, { slots: R }) => R.default?.(), T = _(() => o.ctx !== void 0 && !C.value);
|
|
726
729
|
function N() {
|
|
@@ -761,31 +764,31 @@ const Dt = ["data-audience"], Ut = {
|
|
|
761
764
|
q.observe(R, { childList: !0, subtree: !0, characterData: !0 }), L(() => q.disconnect());
|
|
762
765
|
}, { flush: "post" }), ga((L) => {
|
|
763
766
|
C.value && L(ot());
|
|
764
|
-
}), (L, R) => (l(),
|
|
767
|
+
}), (L, R) => (l(), g(Xe(t.appRoot ? e(st) : k), Qe(ha(t.appRoot ? { modalScope: "app", dialogBounds: T.value ? "viewport" : "app", style: "height: 100%;", onActivate: N } : {})), {
|
|
765
768
|
default: n(() => [
|
|
766
|
-
(l(),
|
|
769
|
+
(l(), g(Xe(t.appRoot ? e(it) : k), Qe(ha(t.appRoot ? { locale: e(va)(t.locale) } : {})), {
|
|
767
770
|
default: n(() => [
|
|
768
|
-
P.value ? (l(),
|
|
771
|
+
P.value ? (l(), g(e(ka), {
|
|
769
772
|
key: 0,
|
|
770
773
|
class: "app-denied",
|
|
771
774
|
width: t.pageWidth
|
|
772
775
|
}, {
|
|
773
776
|
default: n(() => [
|
|
774
|
-
P.value.header !== !1 ? (l(),
|
|
777
|
+
P.value.header !== !1 ? (l(), g(e(wa), {
|
|
775
778
|
key: 0,
|
|
776
779
|
title: P.value.title ?? w.value?.title ?? i.value.deniedTitle
|
|
777
|
-
}, null, 8, ["title"])) :
|
|
780
|
+
}, null, 8, ["title"])) : b("", !0),
|
|
778
781
|
be(L.$slots, "denied", {}, () => [
|
|
779
782
|
v(e(j), { tone: "danger" }, {
|
|
780
783
|
default: n(() => [
|
|
781
|
-
S("span",
|
|
784
|
+
S("span", ll, s(P.value.message ?? w.value?.message ?? i.value.deniedMessage), 1)
|
|
782
785
|
]),
|
|
783
786
|
_: 1
|
|
784
787
|
})
|
|
785
788
|
], !0)
|
|
786
789
|
]),
|
|
787
790
|
_: 3
|
|
788
|
-
}, 8, ["width"])) : (l(),
|
|
791
|
+
}, 8, ["width"])) : (l(), g(e(ut), {
|
|
789
792
|
key: 1,
|
|
790
793
|
ref_key: "layout",
|
|
791
794
|
ref: te,
|
|
@@ -811,26 +814,26 @@ const Dt = ["data-audience"], Ut = {
|
|
|
811
814
|
width: t.pageWidth
|
|
812
815
|
}, {
|
|
813
816
|
default: n(() => [
|
|
814
|
-
c.value?.header !== !1 ? (l(),
|
|
817
|
+
c.value?.header !== !1 ? (l(), g(e(wa), {
|
|
815
818
|
key: 0,
|
|
816
|
-
title:
|
|
819
|
+
title: f.value,
|
|
817
820
|
description: c.value?.description ?? t.description
|
|
818
821
|
}, {
|
|
819
822
|
meta: n(() => [
|
|
820
|
-
S("span",
|
|
823
|
+
S("span", nl, null, 512),
|
|
821
824
|
be(L.$slots, "meta", { page: t.modelValue }, void 0, !0)
|
|
822
825
|
]),
|
|
823
826
|
actions: n(() => [
|
|
824
|
-
S("div",
|
|
827
|
+
S("div", ol, null, 512),
|
|
825
828
|
be(L.$slots, "actions", { page: t.modelValue }, void 0, !0)
|
|
826
829
|
]),
|
|
827
830
|
_: 3
|
|
828
|
-
}, 8, ["title", "description"])) :
|
|
829
|
-
t.ctx?.executor ? (l(),
|
|
831
|
+
}, 8, ["title", "description"])) : b("", !0),
|
|
832
|
+
t.ctx?.executor ? (l(), g(tl, {
|
|
830
833
|
key: 1,
|
|
831
834
|
ctx: t.ctx,
|
|
832
835
|
locale: t.locale
|
|
833
|
-
}, null, 8, ["ctx", "locale"])) :
|
|
836
|
+
}, null, 8, ["ctx", "locale"])) : b("", !0),
|
|
834
837
|
e(Na)(x.notices?.({ page: t.modelValue })) ? (l(), $("div", {
|
|
835
838
|
key: 2,
|
|
836
839
|
ref: "notices",
|
|
@@ -838,11 +841,11 @@ const Dt = ["data-audience"], Ut = {
|
|
|
838
841
|
hidden: K.value
|
|
839
842
|
}, [
|
|
840
843
|
be(L.$slots, "notices", { page: t.modelValue }, void 0, !0)
|
|
841
|
-
], 8,
|
|
842
|
-
S("div",
|
|
843
|
-
c.value?.component ? (l(),
|
|
844
|
+
], 8, sl)) : b("", !0),
|
|
845
|
+
S("div", il, [
|
|
846
|
+
c.value?.component ? (l(), g(Xe(c.value.component), {
|
|
844
847
|
key: c.value.id
|
|
845
|
-
})) :
|
|
848
|
+
})) : b("", !0),
|
|
846
849
|
be(L.$slots, "default", { page: t.modelValue }, void 0, !0)
|
|
847
850
|
])
|
|
848
851
|
]),
|
|
@@ -855,11 +858,11 @@ const Dt = ["data-audience"], Ut = {
|
|
|
855
858
|
name: "sidebar-footer",
|
|
856
859
|
fn: n(() => [
|
|
857
860
|
be(L.$slots, "sidebar-footer", {}, () => [
|
|
858
|
-
Y.value ? (l(),
|
|
861
|
+
Y.value ? (l(), g(e(dt), {
|
|
859
862
|
key: 0,
|
|
860
863
|
name: Y.value.name,
|
|
861
864
|
detail: Y.value.isAdmin ? i.value.administrator : i.value.dsmUser
|
|
862
|
-
}, null, 8, ["name", "detail"])) :
|
|
865
|
+
}, null, 8, ["name", "detail"])) : b("", !0)
|
|
863
866
|
], !0)
|
|
864
867
|
]),
|
|
865
868
|
key: "0"
|
|
@@ -879,18 +882,18 @@ const Dt = ["data-audience"], Ut = {
|
|
|
879
882
|
_: 3
|
|
880
883
|
}, 16));
|
|
881
884
|
}
|
|
882
|
-
}),
|
|
885
|
+
}), ro = /* @__PURE__ */ me(ul, [["__scopeId", "data-v-59f635a8"]]), co = /* @__PURE__ */ fe({
|
|
883
886
|
__name: "PageActions",
|
|
884
887
|
setup(t) {
|
|
885
|
-
const
|
|
886
|
-
return (a, i) => o.value ? (l(),
|
|
888
|
+
const m = Ee(Oa, null), o = _(() => m?.value ?? null);
|
|
889
|
+
return (a, i) => o.value ? (l(), g(Aa, {
|
|
887
890
|
key: 0,
|
|
888
891
|
to: o.value
|
|
889
892
|
}, [
|
|
890
893
|
be(a.$slots, "default")
|
|
891
|
-
], 8, ["to"])) :
|
|
894
|
+
], 8, ["to"])) : b("", !0);
|
|
892
895
|
}
|
|
893
|
-
}),
|
|
896
|
+
}), rl = { class: "page-info-notes" }, dl = /* @__PURE__ */ fe({
|
|
894
897
|
inheritAttrs: !1,
|
|
895
898
|
__name: "PageInfo",
|
|
896
899
|
props: {
|
|
@@ -902,17 +905,17 @@ const Dt = ["data-audience"], Ut = {
|
|
|
902
905
|
align: { default: "start" }
|
|
903
906
|
},
|
|
904
907
|
setup(t) {
|
|
905
|
-
const
|
|
906
|
-
if (
|
|
907
|
-
const
|
|
908
|
-
return o.default ? sa(
|
|
908
|
+
const m = t, o = Ta(), a = _(() => (m.notes ?? []).filter(Boolean)), i = m.inline ? null : Ee(Fa, null), u = _(() => i?.value ?? null), r = Ee(qa, null), c = _(() => {
|
|
909
|
+
if (m.label) return m.label;
|
|
910
|
+
const f = m.locale ?? r?.value ?? "en";
|
|
911
|
+
return o.default ? sa(f).notes : Je(sa(f).notesCount, { count: a.value.length }, f);
|
|
909
912
|
});
|
|
910
|
-
return (
|
|
913
|
+
return (f, d) => (a.value.length || o.default) && (!e(i) || u.value) ? (l(), g(Aa, {
|
|
911
914
|
key: 0,
|
|
912
915
|
to: u.value ?? "body",
|
|
913
916
|
disabled: !e(i)
|
|
914
917
|
}, [
|
|
915
|
-
v(e(ct), pa(
|
|
918
|
+
v(e(ct), pa(f.$attrs, {
|
|
916
919
|
class: "page-info",
|
|
917
920
|
icon: "info",
|
|
918
921
|
"trigger-action": "click",
|
|
@@ -921,37 +924,37 @@ const Dt = ["data-audience"], Ut = {
|
|
|
921
924
|
"aria-label": c.value
|
|
922
925
|
}), {
|
|
923
926
|
default: n(() => [
|
|
924
|
-
be(
|
|
925
|
-
S("ul",
|
|
926
|
-
(l(!0), $(oe, null, ge(a.value, (
|
|
927
|
+
be(f.$slots, "default", {}, () => [
|
|
928
|
+
S("ul", rl, [
|
|
929
|
+
(l(!0), $(oe, null, ge(a.value, (p) => (l(), $("li", { key: p }, s(p), 1))), 128))
|
|
927
930
|
])
|
|
928
931
|
], !0)
|
|
929
932
|
]),
|
|
930
933
|
_: 3
|
|
931
934
|
}, 16, ["side", "align", "aria-label"])
|
|
932
|
-
], 8, ["to", "disabled"])) :
|
|
935
|
+
], 8, ["to", "disabled"])) : b("", !0);
|
|
933
936
|
}
|
|
934
|
-
}),
|
|
935
|
-
function ra(t,
|
|
937
|
+
}), vo = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-93861654"]]), Ca = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
938
|
+
function ra(t, m) {
|
|
936
939
|
let o = 0, a = t;
|
|
937
940
|
for (; a >= 1024 && o < Ca.length - 1; )
|
|
938
941
|
a /= 1024, o++;
|
|
939
|
-
return `${new Intl.NumberFormat(
|
|
942
|
+
return `${new Intl.NumberFormat(m, { maximumFractionDigits: o ? 1 : 0 }).format(a)} ${Ca[o]}`;
|
|
940
943
|
}
|
|
941
|
-
const
|
|
944
|
+
const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-location" }, fl = ["aria-label"], pl = {
|
|
942
945
|
key: 0,
|
|
943
946
|
class: "file-toolbar"
|
|
944
|
-
},
|
|
947
|
+
}, ml = {
|
|
945
948
|
key: 1,
|
|
946
949
|
role: "status"
|
|
947
|
-
},
|
|
950
|
+
}, yl = { role: "alert" }, bl = {
|
|
948
951
|
key: 4,
|
|
949
952
|
role: "status"
|
|
950
|
-
},
|
|
953
|
+
}, gl = { class: "file-columns" }, hl = ["aria-label"], kl = { class: "file-content" }, wl = { class: "file-name" }, _l = { class: "file-empty" }, xl = { class: "file-bytes" }, Cl = {
|
|
951
954
|
key: 5,
|
|
952
955
|
class: "file-selection",
|
|
953
956
|
role: "status"
|
|
954
|
-
},
|
|
957
|
+
}, $l = /* @__PURE__ */ fe({
|
|
955
958
|
__name: "FileBrowser",
|
|
956
959
|
props: {
|
|
957
960
|
provider: {},
|
|
@@ -961,17 +964,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
961
964
|
transfers: { type: Boolean, default: !1 }
|
|
962
965
|
},
|
|
963
966
|
emits: ["selected"],
|
|
964
|
-
setup(t, { emit:
|
|
965
|
-
const o = t, a =
|
|
967
|
+
setup(t, { emit: m }) {
|
|
968
|
+
const o = t, a = m, i = _(() => Te(o.locale)), u = $t(), { busy: r, error: c } = u, f = y([]), d = y([]), p = y([]), x = y(), P = y(), w = y(), C = y([]), E = y(), k = y({ key: "name", direction: "asc" }), T = y(0), N = y([]), te = y(!1);
|
|
966
969
|
let F = new AbortController();
|
|
967
970
|
async function Y() {
|
|
968
971
|
const D = x.value;
|
|
969
972
|
!D || D.isDir || !o.provider.download || await u.run(async (U) => (await o.provider.info(D.path, U), o.provider.download(D.path), !0));
|
|
970
973
|
}
|
|
971
974
|
async function B() {
|
|
972
|
-
const D =
|
|
975
|
+
const D = p.value.at(-1)?.path, U = N.value[0];
|
|
973
976
|
if (!D || !U || !o.provider.upload) return;
|
|
974
|
-
te.value = !1, await u.run(async (Z) => (await o.provider.upload(D, U, Z), !0)) && (N.value = [], await Q(
|
|
977
|
+
te.value = !1, await u.run(async (Z) => (await o.provider.upload(D, U, Z), !0)) && (N.value = [], await Q(p.value), te.value = !0);
|
|
975
978
|
}
|
|
976
979
|
const K = _(() => [
|
|
977
980
|
{ key: "name", label: i.value.nameColumn, sortable: !0 },
|
|
@@ -985,12 +988,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
985
988
|
x.value = D, a("selected", D?.path);
|
|
986
989
|
}
|
|
987
990
|
function q(D) {
|
|
988
|
-
P.value = D.path, A(o.mode === "folder" ? D.isDir ? D :
|
|
991
|
+
P.value = D.path, A(o.mode === "folder" ? D.isDir ? D : p.value.at(-1) : D.isDir ? void 0 : D);
|
|
989
992
|
}
|
|
990
993
|
function M(D) {
|
|
991
994
|
D.isDir ? Ae(D) : q(D);
|
|
992
995
|
}
|
|
993
|
-
const se = (D) =>
|
|
996
|
+
const se = (D) => f.value.find((U) => U.path === D);
|
|
994
997
|
function H(D, U, O = []) {
|
|
995
998
|
for (const Z of D) {
|
|
996
999
|
const ce = [...O, Z.data];
|
|
@@ -1042,29 +1045,29 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1042
1045
|
}
|
|
1043
1046
|
async function Q(D, U = !1) {
|
|
1044
1047
|
if (r.value) return;
|
|
1045
|
-
A(), P.value = void 0,
|
|
1048
|
+
A(), P.value = void 0, f.value = U ? f.value : [], w.value = U ? w.value : void 0;
|
|
1046
1049
|
const O = U ? w.value ?? 0 : 0, Z = D.at(-1)?.path;
|
|
1047
|
-
|
|
1050
|
+
p.value = D;
|
|
1048
1051
|
const ce = await u.run((z) => Z ? o.provider.list(Z, { offset: O, sortBy: k.value.key, sortDirection: k.value.direction === "asc" ? "ASC" : "DESC" }, z) : o.provider.shares(O, z));
|
|
1049
|
-
ce && (
|
|
1052
|
+
ce && (f.value = U ? [...f.value, ...ce.entries] : ce.entries, w.value = ce.nextOffset, Z ? o.mode === "folder" && !U && A(D.at(-1)) : d.value = f.value.filter((z) => z.isDir).map(R), U || ee(D));
|
|
1050
1053
|
}
|
|
1051
|
-
const de = _(() => [{ id: "", display: i.value.roots }, ...
|
|
1054
|
+
const de = _(() => [{ id: "", display: i.value.roots }, ...p.value.map((D) => ({ id: D.path, display: D.name }))]);
|
|
1052
1055
|
function he(D) {
|
|
1053
1056
|
const U = de.value.findIndex((O) => O.id === D.id);
|
|
1054
|
-
U <
|
|
1057
|
+
U < p.value.length && ie(p.value.slice(0, U));
|
|
1055
1058
|
}
|
|
1056
1059
|
function Ae(D) {
|
|
1057
|
-
ie([...
|
|
1060
|
+
ie([...p.value, D]);
|
|
1058
1061
|
}
|
|
1059
1062
|
const _e = y([[]]), J = y(0);
|
|
1060
1063
|
function ie(D) {
|
|
1061
|
-
r.value || (D.at(-1)?.path !==
|
|
1064
|
+
r.value || (D.at(-1)?.path !== p.value.at(-1)?.path && (_e.value = [..._e.value.slice(0, J.value + 1), D], J.value++), Q(D));
|
|
1062
1065
|
}
|
|
1063
1066
|
function ne(D) {
|
|
1064
1067
|
r.value || (J.value += D, Q(_e.value[J.value]));
|
|
1065
1068
|
}
|
|
1066
1069
|
function ye(D) {
|
|
1067
|
-
k.value = { key: D?.key === "bytes" ? "size" : "name", direction: D?.direction ?? "asc" }, Q(
|
|
1070
|
+
k.value = { key: D?.key === "bytes" ? "size" : "name", direction: D?.direction ?? "asc" }, Q(p.value);
|
|
1068
1071
|
}
|
|
1069
1072
|
function Pe() {
|
|
1070
1073
|
r.value || (T.value++, F.abort(), F = new AbortController(), d.value = [], C.value = [], E.value = void 0, _e.value = [[]], J.value = 0, Q([]));
|
|
@@ -1078,7 +1081,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1078
1081
|
"aria-busy": e(r),
|
|
1079
1082
|
"aria-label": i.value.title
|
|
1080
1083
|
}, [
|
|
1081
|
-
S("div",
|
|
1084
|
+
S("div", vl, [
|
|
1082
1085
|
v(e(na), {
|
|
1083
1086
|
label: i.value.back,
|
|
1084
1087
|
size: "sm",
|
|
@@ -1130,9 +1133,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1130
1133
|
"collapsed-label": i.value.fullPath,
|
|
1131
1134
|
onClickItem: he
|
|
1132
1135
|
}, null, 8, ["items", "collapsed-label"])
|
|
1133
|
-
], 8,
|
|
1136
|
+
], 8, fl)
|
|
1134
1137
|
]),
|
|
1135
|
-
t.transfers && t.provider.upload &&
|
|
1138
|
+
t.transfers && t.provider.upload && p.value.length ? (l(), $("div", pl, [
|
|
1136
1139
|
v(e(ft), {
|
|
1137
1140
|
modelValue: N.value,
|
|
1138
1141
|
"onUpdate:modelValue": U[2] || (U[2] = (O) => N.value = O),
|
|
@@ -1153,9 +1156,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1153
1156
|
]),
|
|
1154
1157
|
_: 1
|
|
1155
1158
|
}, 8, ["disabled"])
|
|
1156
|
-
])) :
|
|
1157
|
-
te.value ? (l(), $("p",
|
|
1158
|
-
t.transfers && t.provider.download && x.value && !x.value.isDir && !e(c) ? (l(),
|
|
1159
|
+
])) : b("", !0),
|
|
1160
|
+
te.value ? (l(), $("p", ml, s(i.value.uploaded), 1)) : b("", !0),
|
|
1161
|
+
t.transfers && t.provider.download && x.value && !x.value.isDir && !e(c) ? (l(), g(e(V), {
|
|
1159
1162
|
key: 2,
|
|
1160
1163
|
variant: "secondary",
|
|
1161
1164
|
disabled: e(r),
|
|
@@ -1165,23 +1168,23 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1165
1168
|
h(s(i.value.download), 1)
|
|
1166
1169
|
]),
|
|
1167
1170
|
_: 1
|
|
1168
|
-
}, 8, ["disabled"])) :
|
|
1169
|
-
e(c) ? (l(),
|
|
1171
|
+
}, 8, ["disabled"])) : b("", !0),
|
|
1172
|
+
e(c) ? (l(), g(e(j), {
|
|
1170
1173
|
key: 3,
|
|
1171
1174
|
tone: "danger"
|
|
1172
1175
|
}, {
|
|
1173
1176
|
default: n(() => [
|
|
1174
|
-
S("span",
|
|
1177
|
+
S("span", yl, s(e(Sa)(e(c), i.value, t.locale, t.name)), 1)
|
|
1175
1178
|
]),
|
|
1176
1179
|
_: 1
|
|
1177
|
-
})) :
|
|
1178
|
-
e(r) ? (l(), $("p",
|
|
1179
|
-
S("div",
|
|
1180
|
+
})) : b("", !0),
|
|
1181
|
+
e(r) ? (l(), $("p", bl, s(i.value.loading), 1)) : b("", !0),
|
|
1182
|
+
S("div", gl, [
|
|
1180
1183
|
S("aside", {
|
|
1181
1184
|
class: "file-tree",
|
|
1182
1185
|
"aria-label": i.value.roots
|
|
1183
1186
|
}, [
|
|
1184
|
-
d.value.length ? (l(),
|
|
1187
|
+
d.value.length ? (l(), g(e(pt), {
|
|
1185
1188
|
key: T.value,
|
|
1186
1189
|
"selection-style": "background",
|
|
1187
1190
|
modelValue: E.value,
|
|
@@ -1193,13 +1196,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1193
1196
|
"load-children": X,
|
|
1194
1197
|
"expand-label": (O, Z) => e(Je)(Z ? i.value.collapse : i.value.expand, { name: O.label }),
|
|
1195
1198
|
onSelect: U[7] || (U[7] = (O) => ie(H(d.value, O.id) ?? [O.data]))
|
|
1196
|
-
}, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) :
|
|
1197
|
-
], 8,
|
|
1198
|
-
S("div",
|
|
1199
|
-
e(c) ?
|
|
1199
|
+
}, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) : b("", !0)
|
|
1200
|
+
], 8, hl),
|
|
1201
|
+
S("div", kl, [
|
|
1202
|
+
e(c) ? b("", !0) : (l(), g(e(mt), {
|
|
1200
1203
|
key: 0,
|
|
1201
1204
|
columns: K.value,
|
|
1202
|
-
rows:
|
|
1205
|
+
rows: f.value.map((O) => ({ ...O, kind: O.isDir ? i.value.directoryKind : i.value.fileKind })),
|
|
1203
1206
|
"row-key": "path",
|
|
1204
1207
|
footer: !1,
|
|
1205
1208
|
resizable: !1,
|
|
@@ -1223,7 +1226,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1223
1226
|
})
|
|
1224
1227
|
}, {
|
|
1225
1228
|
"cell-name": n(({ row: O }) => [
|
|
1226
|
-
S("span",
|
|
1229
|
+
S("span", wl, [
|
|
1227
1230
|
v(e(la), {
|
|
1228
1231
|
kind: O.isDir ? "folder" : "file",
|
|
1229
1232
|
name: O.name
|
|
@@ -1232,7 +1235,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1232
1235
|
])
|
|
1233
1236
|
]),
|
|
1234
1237
|
empty: n(() => [
|
|
1235
|
-
S("div",
|
|
1238
|
+
S("div", _l, [
|
|
1236
1239
|
v(e(la), {
|
|
1237
1240
|
kind: "folder",
|
|
1238
1241
|
size: [40, 40]
|
|
@@ -1241,30 +1244,30 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1241
1244
|
])
|
|
1242
1245
|
]),
|
|
1243
1246
|
"cell-bytes": n(({ row: O }) => [
|
|
1244
|
-
S("span",
|
|
1247
|
+
S("span", xl, s(O.isDir || O.bytes === void 0 ? "—" : e(ra)(O.bytes, e(va)(t.locale))), 1)
|
|
1245
1248
|
]),
|
|
1246
1249
|
_: 1
|
|
1247
1250
|
}, 8, ["columns", "rows", "loading", "loading-text", "sort", "labels", "selected-keys"])),
|
|
1248
|
-
w.value !== void 0 && !e(c) ? (l(),
|
|
1251
|
+
w.value !== void 0 && !e(c) ? (l(), g(e(V), {
|
|
1249
1252
|
key: 1,
|
|
1250
1253
|
variant: "secondary",
|
|
1251
1254
|
disabled: e(r),
|
|
1252
|
-
onClick: U[11] || (U[11] = (O) => Q(
|
|
1255
|
+
onClick: U[11] || (U[11] = (O) => Q(p.value, !0))
|
|
1253
1256
|
}, {
|
|
1254
1257
|
default: n(() => [
|
|
1255
1258
|
h(s(i.value.loadMore), 1)
|
|
1256
1259
|
]),
|
|
1257
1260
|
_: 1
|
|
1258
|
-
}, 8, ["disabled"])) :
|
|
1261
|
+
}, 8, ["disabled"])) : b("", !0)
|
|
1259
1262
|
])
|
|
1260
1263
|
]),
|
|
1261
|
-
x.value && !e(c) ? (l(), $("p",
|
|
1262
|
-
], 8,
|
|
1264
|
+
x.value && !e(c) ? (l(), $("p", Cl, s(e(Je)(i.value.selected, { name: x.value.path })), 1)) : b("", !0)
|
|
1265
|
+
], 8, cl));
|
|
1263
1266
|
}
|
|
1264
|
-
}), Ma = /* @__PURE__ */ me(
|
|
1267
|
+
}), Ma = /* @__PURE__ */ me($l, [["__scopeId", "data-v-f4863cea"]]), Sl = {
|
|
1265
1268
|
key: 0,
|
|
1266
1269
|
class: "save-consent"
|
|
1267
|
-
},
|
|
1270
|
+
}, Pl = ["aria-busy", "inert"], El = /* @__PURE__ */ fe({
|
|
1268
1271
|
__name: "NasPicker",
|
|
1269
1272
|
props: {
|
|
1270
1273
|
open: { type: Boolean },
|
|
@@ -1278,43 +1281,43 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1278
1281
|
errorText: { type: Function }
|
|
1279
1282
|
},
|
|
1280
1283
|
emits: ["update:open", "selected", "authorized", "refused"],
|
|
1281
|
-
setup(t, { emit:
|
|
1282
|
-
const o = t, a =
|
|
1283
|
-
let d = 0,
|
|
1284
|
+
setup(t, { emit: m }) {
|
|
1285
|
+
const o = t, a = m, i = y(), u = _(() => Te(o.locale)), r = _(() => fa(o.locale)), c = y(!1), f = y();
|
|
1286
|
+
let d = 0, p = !1;
|
|
1284
1287
|
Oe(() => o.open, () => {
|
|
1285
|
-
d++, i.value = void 0,
|
|
1288
|
+
d++, i.value = void 0, f.value = void 0;
|
|
1286
1289
|
}), we(() => {
|
|
1287
|
-
|
|
1290
|
+
p = !0, d++;
|
|
1288
1291
|
});
|
|
1289
1292
|
function x() {
|
|
1290
1293
|
c.value || (i.value = void 0, a("update:open", !1));
|
|
1291
1294
|
}
|
|
1292
1295
|
async function P() {
|
|
1293
1296
|
const w = i.value, C = o.destination, E = d;
|
|
1294
|
-
if (!(!w || c.value || !o.open ||
|
|
1297
|
+
if (!(!w || c.value || !o.open || p || C && o.mode !== "folder")) {
|
|
1295
1298
|
if (!C) {
|
|
1296
1299
|
a("selected", w), x();
|
|
1297
1300
|
return;
|
|
1298
1301
|
}
|
|
1299
|
-
c.value = !0,
|
|
1302
|
+
c.value = !0, f.value = void 0;
|
|
1300
1303
|
try {
|
|
1301
1304
|
const k = await C.selectDestination({ key: C.key, path: w });
|
|
1302
|
-
if (
|
|
1305
|
+
if (p || E !== d) return;
|
|
1303
1306
|
if (!k || typeof k.id != "string" || !k.id || typeof k.username != "string" || !k.username || k.path !== w || k.key !== C.key || k.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
|
|
1304
1307
|
a("authorized", k), c.value = !1, x();
|
|
1305
1308
|
} catch (k) {
|
|
1306
|
-
if (
|
|
1309
|
+
if (p || E !== d) return;
|
|
1307
1310
|
if (k?.code === "APP_DENIED") {
|
|
1308
1311
|
c.value = !1, a("refused", k), x();
|
|
1309
1312
|
return;
|
|
1310
1313
|
}
|
|
1311
|
-
|
|
1314
|
+
f.value = k;
|
|
1312
1315
|
} finally {
|
|
1313
|
-
|
|
1316
|
+
p || (c.value = !1);
|
|
1314
1317
|
}
|
|
1315
1318
|
}
|
|
1316
1319
|
}
|
|
1317
|
-
return (w, C) => (l(),
|
|
1320
|
+
return (w, C) => (l(), g(e(Ge), {
|
|
1318
1321
|
open: t.open,
|
|
1319
1322
|
title: t.title ?? (t.mode === "folder" ? u.value.choose : u.value.chooseFile),
|
|
1320
1323
|
description: t.description ?? u.value.ownPermissions,
|
|
@@ -1354,67 +1357,67 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1354
1357
|
}, 8, ["disabled"])
|
|
1355
1358
|
]),
|
|
1356
1359
|
default: n(() => [
|
|
1357
|
-
t.destination ? (l(), $("p",
|
|
1358
|
-
|
|
1360
|
+
t.destination ? (l(), $("p", Sl, s(r.value.selection), 1)) : b("", !0),
|
|
1361
|
+
f.value ? (l(), g(e(j), {
|
|
1359
1362
|
key: 1,
|
|
1360
1363
|
tone: "danger",
|
|
1361
1364
|
role: "alert",
|
|
1362
1365
|
class: "save-message"
|
|
1363
1366
|
}, {
|
|
1364
1367
|
default: n(() => [
|
|
1365
|
-
h(s(t.errorText?.(
|
|
1368
|
+
h(s(t.errorText?.(f.value) ?? e(Ye)(f.value, r.value, "select", t.locale, t.name)), 1)
|
|
1366
1369
|
]),
|
|
1367
1370
|
_: 1
|
|
1368
|
-
})) :
|
|
1371
|
+
})) : b("", !0),
|
|
1369
1372
|
S("div", {
|
|
1370
1373
|
class: "nas-picker-content",
|
|
1371
1374
|
"aria-busy": c.value,
|
|
1372
1375
|
inert: c.value
|
|
1373
1376
|
}, [
|
|
1374
|
-
t.open ? (l(),
|
|
1377
|
+
t.open ? (l(), g(Ma, {
|
|
1375
1378
|
key: 0,
|
|
1376
1379
|
provider: t.provider,
|
|
1377
1380
|
locale: t.locale,
|
|
1378
1381
|
name: t.name,
|
|
1379
1382
|
mode: t.mode,
|
|
1380
1383
|
onSelected: C[0] || (C[0] = (E) => i.value = E)
|
|
1381
|
-
}, null, 8, ["provider", "locale", "name", "mode"])) :
|
|
1382
|
-
], 8,
|
|
1384
|
+
}, null, 8, ["provider", "locale", "name", "mode"])) : b("", !0)
|
|
1385
|
+
], 8, Pl)
|
|
1383
1386
|
]),
|
|
1384
1387
|
_: 1
|
|
1385
1388
|
}, 8, ["open", "title", "description", "close-label", "show-close"]));
|
|
1386
1389
|
}
|
|
1387
|
-
}), ta = /* @__PURE__ */ me(
|
|
1390
|
+
}), ta = /* @__PURE__ */ me(El, [["__scopeId", "data-v-08be5e1e"]]), Tl = { role: "alert" }, zl = { class: "files-actions" }, Al = {
|
|
1388
1391
|
key: 0,
|
|
1389
1392
|
class: "files-path",
|
|
1390
1393
|
role: "status"
|
|
1391
|
-
},
|
|
1394
|
+
}, Rl = /* @__PURE__ */ fe({
|
|
1392
1395
|
__name: "FilesPage",
|
|
1393
1396
|
props: {
|
|
1394
1397
|
ctx: {}
|
|
1395
1398
|
},
|
|
1396
1399
|
setup(t) {
|
|
1397
|
-
const
|
|
1398
|
-
let
|
|
1400
|
+
const m = t, o = y(), a = y(), i = y(!1), u = y("folder"), r = y(!1), c = y(""), f = y(0), d = Pa(m.ctx);
|
|
1401
|
+
let p = !1, x;
|
|
1399
1402
|
async function P() {
|
|
1400
|
-
if (!
|
|
1401
|
-
o.value = void 0, i.value = !1, c.value = "", r.value = !1,
|
|
1403
|
+
if (!p) {
|
|
1404
|
+
o.value = void 0, i.value = !1, c.value = "", r.value = !1, f.value++;
|
|
1402
1405
|
try {
|
|
1403
|
-
await
|
|
1406
|
+
await m.ctx.call("nas.session.status"), p || (a.value = void 0, i.value = !0);
|
|
1404
1407
|
} catch (w) {
|
|
1405
|
-
if (
|
|
1408
|
+
if (p) return;
|
|
1406
1409
|
a.value = Ce(w), !a.value && w?.code !== "unknown_method" && (o.value = w);
|
|
1407
1410
|
}
|
|
1408
1411
|
}
|
|
1409
1412
|
}
|
|
1410
1413
|
return Ke(() => a.value, P), Se(() => {
|
|
1411
|
-
x =
|
|
1414
|
+
x = m.ctx.reopen(() => {
|
|
1412
1415
|
P();
|
|
1413
1416
|
}), P();
|
|
1414
1417
|
}), we(() => {
|
|
1415
|
-
|
|
1418
|
+
p = !0, x?.(), d.dispose();
|
|
1416
1419
|
}), (w, C) => (l(), $(oe, null, [
|
|
1417
|
-
a.value ? (l(),
|
|
1420
|
+
a.value ? (l(), g(e(j), {
|
|
1418
1421
|
key: 0,
|
|
1419
1422
|
tone: "info",
|
|
1420
1423
|
role: "status"
|
|
@@ -1423,13 +1426,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1423
1426
|
h(s(e(Ne)(a.value, t.ctx.locale)), 1)
|
|
1424
1427
|
]),
|
|
1425
1428
|
_: 1
|
|
1426
|
-
})) :
|
|
1427
|
-
o.value ? (l(),
|
|
1429
|
+
})) : b("", !0),
|
|
1430
|
+
o.value ? (l(), g(e(j), {
|
|
1428
1431
|
key: 1,
|
|
1429
1432
|
tone: "danger"
|
|
1430
1433
|
}, {
|
|
1431
1434
|
default: n(() => [
|
|
1432
|
-
S("span",
|
|
1435
|
+
S("span", Tl, s(e(Sa)(o.value, e(Te)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
|
|
1433
1436
|
v(e(V), {
|
|
1434
1437
|
variant: "secondary",
|
|
1435
1438
|
onClick: P
|
|
@@ -1441,15 +1444,15 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1441
1444
|
})
|
|
1442
1445
|
]),
|
|
1443
1446
|
_: 1
|
|
1444
|
-
})) :
|
|
1445
|
-
i.value ? (l(),
|
|
1447
|
+
})) : b("", !0),
|
|
1448
|
+
i.value ? (l(), g(e(ke), {
|
|
1446
1449
|
key: 2,
|
|
1447
1450
|
title: e(Te)(t.ctx.locale).title,
|
|
1448
1451
|
description: e(Te)(t.ctx.locale).ownPermissions,
|
|
1449
1452
|
collapsible: !1
|
|
1450
1453
|
}, {
|
|
1451
1454
|
default: n(() => [
|
|
1452
|
-
S("div",
|
|
1455
|
+
S("div", zl, [
|
|
1453
1456
|
v(e(V), {
|
|
1454
1457
|
variant: "secondary",
|
|
1455
1458
|
onClick: C[0] || (C[0] = (E) => {
|
|
@@ -1473,11 +1476,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1473
1476
|
_: 1
|
|
1474
1477
|
})
|
|
1475
1478
|
]),
|
|
1476
|
-
c.value ? (l(), $("p",
|
|
1479
|
+
c.value ? (l(), $("p", Al, [
|
|
1477
1480
|
v(e(Ue), { path: c.value }, null, 8, ["path"])
|
|
1478
|
-
])) :
|
|
1479
|
-
(l(),
|
|
1480
|
-
key:
|
|
1481
|
+
])) : b("", !0),
|
|
1482
|
+
(l(), g(Ma, {
|
|
1483
|
+
key: f.value,
|
|
1481
1484
|
provider: e(d),
|
|
1482
1485
|
locale: t.ctx.locale,
|
|
1483
1486
|
name: t.ctx.displayName,
|
|
@@ -1494,16 +1497,16 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1494
1497
|
}, null, 8, ["provider", "locale", "name", "mode", "open"])
|
|
1495
1498
|
]),
|
|
1496
1499
|
_: 1
|
|
1497
|
-
}, 8, ["title", "description"])) :
|
|
1500
|
+
}, 8, ["title", "description"])) : b("", !0)
|
|
1498
1501
|
], 64));
|
|
1499
1502
|
}
|
|
1500
|
-
}),
|
|
1503
|
+
}), fo = /* @__PURE__ */ me(Rl, [["__scopeId", "data-v-a8fc5aa4"]]), Il = { role: "status" }, Dl = { role: "alert" }, oa = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ fe({
|
|
1501
1504
|
__name: "PortalSettings",
|
|
1502
1505
|
props: {
|
|
1503
1506
|
portal: {}
|
|
1504
1507
|
},
|
|
1505
1508
|
setup(t) {
|
|
1506
|
-
const
|
|
1509
|
+
const m = t, o = Va(), a = m.portal.messages, i = y(), u = y(""), r = y(!1), c = y(""), f = y(!0), d = y(!1), p = y(oa.get(m.portal));
|
|
1507
1510
|
let x = !1, P = !1;
|
|
1508
1511
|
function w(R) {
|
|
1509
1512
|
if (!P && (i.value = R, u.value = R.alias || R.defaultAlias, R.url))
|
|
@@ -1513,7 +1516,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1513
1516
|
} catch {
|
|
1514
1517
|
}
|
|
1515
1518
|
}
|
|
1516
|
-
const C =
|
|
1519
|
+
const C = m.portal.lastStatus?.();
|
|
1517
1520
|
C && w(C);
|
|
1518
1521
|
const E = 5e3, k = /* @__PURE__ */ Symbol("late");
|
|
1519
1522
|
async function T(R) {
|
|
@@ -1526,11 +1529,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1526
1529
|
w(q);
|
|
1527
1530
|
return;
|
|
1528
1531
|
}
|
|
1529
|
-
w(await
|
|
1532
|
+
w(await m.portal.status());
|
|
1530
1533
|
try {
|
|
1531
1534
|
await A;
|
|
1532
1535
|
} finally {
|
|
1533
|
-
w(await
|
|
1536
|
+
w(await m.portal.status());
|
|
1534
1537
|
}
|
|
1535
1538
|
} catch (q) {
|
|
1536
1539
|
P || (c.value = a[q?.code || ""] || a.portal_unavailable);
|
|
@@ -1547,23 +1550,23 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1547
1550
|
}
|
|
1548
1551
|
}), F = a.link?.replace(/\s*[::]\s*$/, "");
|
|
1549
1552
|
async function Y() {
|
|
1550
|
-
const R = await
|
|
1551
|
-
return R.canManage && R.entry === "registered" && R.state === "inactive" ? (w(R),
|
|
1553
|
+
const R = await m.portal.register();
|
|
1554
|
+
return R.canManage && R.entry === "registered" && R.state === "inactive" ? (w(R), m.portal.apply(R.alias || R.defaultAlias)) : R;
|
|
1552
1555
|
}
|
|
1553
1556
|
function B() {
|
|
1554
|
-
!r.value && !
|
|
1557
|
+
!r.value && !p.value && m.portal.status().then(w, () => {
|
|
1555
1558
|
}).finally(() => {
|
|
1556
|
-
P || (
|
|
1559
|
+
P || (f.value = !1);
|
|
1557
1560
|
});
|
|
1558
1561
|
}
|
|
1559
1562
|
function K() {
|
|
1560
|
-
x ? d.value = !0 : T(() =>
|
|
1563
|
+
x ? d.value = !0 : T(() => m.portal.unregister());
|
|
1561
1564
|
}
|
|
1562
1565
|
async function L() {
|
|
1563
1566
|
if (d.value = !1, !r.value) {
|
|
1564
|
-
r.value = !0,
|
|
1567
|
+
r.value = !0, p.value = "removalUnconfirmed", oa.set(m.portal, p.value);
|
|
1565
1568
|
try {
|
|
1566
|
-
await
|
|
1569
|
+
await m.portal.unregister(), p.value = "removedFromPage", oa.set(m.portal, p.value);
|
|
1567
1570
|
} catch {
|
|
1568
1571
|
} finally {
|
|
1569
1572
|
P || (r.value = !1);
|
|
@@ -1575,7 +1578,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1575
1578
|
}), we(() => {
|
|
1576
1579
|
P = !0;
|
|
1577
1580
|
}), (R, A) => (l(), $(oe, null, [
|
|
1578
|
-
|
|
1581
|
+
p.value ? (l(), g(e(ke), {
|
|
1579
1582
|
key: 0,
|
|
1580
1583
|
title: e(a).title,
|
|
1581
1584
|
collapsible: !1
|
|
@@ -1583,7 +1586,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1583
1586
|
default: n(() => [
|
|
1584
1587
|
v(e(j), { tone: "info" }, {
|
|
1585
1588
|
default: n(() => [
|
|
1586
|
-
S("span",
|
|
1589
|
+
S("span", Il, s(e(a)[p.value]), 1)
|
|
1587
1590
|
]),
|
|
1588
1591
|
_: 1
|
|
1589
1592
|
}),
|
|
@@ -1598,7 +1601,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1598
1601
|
})
|
|
1599
1602
|
]),
|
|
1600
1603
|
_: 1
|
|
1601
|
-
}, 8, ["title"])) : i.value ||
|
|
1604
|
+
}, 8, ["title"])) : i.value || f.value ? (l(), g(e(ke), {
|
|
1602
1605
|
key: 1,
|
|
1603
1606
|
title: e(a).title,
|
|
1604
1607
|
description: te.value,
|
|
@@ -1607,7 +1610,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1607
1610
|
}, za({
|
|
1608
1611
|
default: n(() => [
|
|
1609
1612
|
i.value ? (l(), $(oe, { key: 1 }, [
|
|
1610
|
-
i.value.state === "active" ? (l(),
|
|
1613
|
+
i.value.state === "active" ? (l(), g(e(xe), {
|
|
1611
1614
|
key: 0,
|
|
1612
1615
|
label: e(F)
|
|
1613
1616
|
}, {
|
|
@@ -1623,8 +1626,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1623
1626
|
}, 8, ["href"])
|
|
1624
1627
|
]),
|
|
1625
1628
|
_: 1
|
|
1626
|
-
}, 8, ["label"])) :
|
|
1627
|
-
i.value.canManage && !N.value ? (l(),
|
|
1629
|
+
}, 8, ["label"])) : b("", !0),
|
|
1630
|
+
i.value.canManage && !N.value ? (l(), g(e(Me), {
|
|
1628
1631
|
key: 1,
|
|
1629
1632
|
onSubmit: A[3] || (A[3] = qe((q) => T(() => t.portal.apply(u.value)), ["prevent"]))
|
|
1630
1633
|
}, {
|
|
@@ -1662,7 +1665,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1662
1665
|
]),
|
|
1663
1666
|
_: 1
|
|
1664
1667
|
}, 8, ["disabled"]),
|
|
1665
|
-
i.value.state === "active" ? (l(),
|
|
1668
|
+
i.value.state === "active" ? (l(), g(e(V), {
|
|
1666
1669
|
key: 0,
|
|
1667
1670
|
variant: "secondary",
|
|
1668
1671
|
disabled: r.value,
|
|
@@ -1672,7 +1675,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1672
1675
|
h(s(e(a).disable), 1)
|
|
1673
1676
|
]),
|
|
1674
1677
|
_: 1
|
|
1675
|
-
}, 8, ["disabled"])) :
|
|
1678
|
+
}, 8, ["disabled"])) : b("", !0),
|
|
1676
1679
|
v(e(V), {
|
|
1677
1680
|
variant: "secondary",
|
|
1678
1681
|
onClick: A[2] || (A[2] = (q) => t.portal.openControlPanel())
|
|
@@ -1682,7 +1685,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1682
1685
|
]),
|
|
1683
1686
|
_: 1
|
|
1684
1687
|
}),
|
|
1685
|
-
i.value.entry ? (l(),
|
|
1688
|
+
i.value.entry ? (l(), g(e(V), {
|
|
1686
1689
|
key: 1,
|
|
1687
1690
|
variant: "secondary",
|
|
1688
1691
|
disabled: r.value,
|
|
@@ -1692,7 +1695,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1692
1695
|
h(s(e(a).unregister), 1)
|
|
1693
1696
|
]),
|
|
1694
1697
|
_: 1
|
|
1695
|
-
}, 8, ["disabled"])) :
|
|
1698
|
+
}, 8, ["disabled"])) : b("", !0)
|
|
1696
1699
|
]),
|
|
1697
1700
|
_: 1
|
|
1698
1701
|
})
|
|
@@ -1701,17 +1704,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1701
1704
|
})
|
|
1702
1705
|
]),
|
|
1703
1706
|
_: 1
|
|
1704
|
-
})) :
|
|
1705
|
-
c.value ? (l(),
|
|
1707
|
+
})) : b("", !0),
|
|
1708
|
+
c.value ? (l(), g(e(j), {
|
|
1706
1709
|
key: 2,
|
|
1707
1710
|
tone: "danger"
|
|
1708
1711
|
}, {
|
|
1709
1712
|
default: n(() => [
|
|
1710
|
-
S("span",
|
|
1713
|
+
S("span", Dl, s(c.value), 1)
|
|
1711
1714
|
]),
|
|
1712
1715
|
_: 1
|
|
1713
|
-
})) :
|
|
1714
|
-
], 64)) : (l(!0), $(oe, { key: 0 }, ge([[e(F), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([q, M], se) => (l(),
|
|
1716
|
+
})) : b("", !0)
|
|
1717
|
+
], 64)) : (l(!0), $(oe, { key: 0 }, ge([[e(F), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([q, M], se) => (l(), g(e(xe), {
|
|
1715
1718
|
key: se,
|
|
1716
1719
|
label: q,
|
|
1717
1720
|
"data-placeholder-row": ""
|
|
@@ -1730,7 +1733,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1730
1733
|
i.value && N.value ? {
|
|
1731
1734
|
name: "footer",
|
|
1732
1735
|
fn: n(() => [
|
|
1733
|
-
i.value.entry === "unregistered" ? (l(),
|
|
1736
|
+
i.value.entry === "unregistered" ? (l(), g(e(V), {
|
|
1734
1737
|
key: 0,
|
|
1735
1738
|
variant: "primary",
|
|
1736
1739
|
disabled: r.value,
|
|
@@ -1740,7 +1743,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1740
1743
|
h(s(e(a).register), 1)
|
|
1741
1744
|
]),
|
|
1742
1745
|
_: 1
|
|
1743
|
-
}, 8, ["disabled"])) : (l(),
|
|
1746
|
+
}, 8, ["disabled"])) : (l(), g(e(V), {
|
|
1744
1747
|
key: 1,
|
|
1745
1748
|
variant: "primary",
|
|
1746
1749
|
disabled: r.value,
|
|
@@ -1768,14 +1771,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1768
1771
|
]),
|
|
1769
1772
|
key: "1"
|
|
1770
1773
|
} : void 0
|
|
1771
|
-
]), 1032, ["title", "description", "aria-busy"])) :
|
|
1774
|
+
]), 1032, ["title", "description", "aria-busy"])) : b("", !0),
|
|
1772
1775
|
v(e(Ge), {
|
|
1773
1776
|
open: d.value,
|
|
1774
1777
|
"onUpdate:open": A[7] || (A[7] = (q) => d.value = q),
|
|
1775
1778
|
title: e(a).unregister,
|
|
1776
1779
|
description: e(a).removeFromPage,
|
|
1777
|
-
"close-label": e(a).cancel
|
|
1778
|
-
width: "480px"
|
|
1780
|
+
"close-label": e(a).cancel
|
|
1779
1781
|
}, {
|
|
1780
1782
|
footer: n(() => [
|
|
1781
1783
|
v(e(V), {
|
|
@@ -1802,30 +1804,30 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1802
1804
|
}, 8, ["open", "title", "description", "close-label"])
|
|
1803
1805
|
], 64));
|
|
1804
1806
|
}
|
|
1805
|
-
}),
|
|
1807
|
+
}), Ul = ["aria-busy"], Vl = { role: "alert" }, Nl = {
|
|
1806
1808
|
key: 2,
|
|
1807
1809
|
role: "status"
|
|
1808
|
-
},
|
|
1810
|
+
}, Bl = { role: "alert" }, Ll = { role: "status" }, Ol = /* @__PURE__ */ fe({
|
|
1809
1811
|
__name: "LoginPage",
|
|
1810
1812
|
props: {
|
|
1811
1813
|
session: {},
|
|
1812
1814
|
locale: {}
|
|
1813
1815
|
},
|
|
1814
1816
|
setup(t) {
|
|
1815
|
-
const
|
|
1817
|
+
const m = t, o = _(() => Xa(m.locale)), a = y(""), i = y(""), u = y(""), r = y(!1), c = y(!1), f = y(""), d = y(), p = _(() => window.location.protocol === "https:");
|
|
1816
1818
|
let x = !1;
|
|
1817
1819
|
function P(k) {
|
|
1818
1820
|
const T = k?.code;
|
|
1819
|
-
return
|
|
1821
|
+
return m.session.denied.value?.message || o.value.errors[T || ""] || o.value.errors.failed;
|
|
1820
1822
|
}
|
|
1821
1823
|
async function w() {
|
|
1822
|
-
if (!(c.value || !
|
|
1823
|
-
c.value = !0,
|
|
1824
|
+
if (!(c.value || !p.value || !a.value || !i.value || r.value && !u.value)) {
|
|
1825
|
+
c.value = !0, f.value = "";
|
|
1824
1826
|
try {
|
|
1825
|
-
await
|
|
1827
|
+
await m.session.login(a.value, i.value, u.value), i.value = "", u.value = "";
|
|
1826
1828
|
} catch (k) {
|
|
1827
1829
|
if (x) return;
|
|
1828
|
-
u.value = "", k?.code === "otp_required" ? r.value = !0 : (
|
|
1830
|
+
u.value = "", k?.code === "otp_required" ? r.value = !0 : (f.value = P(k), i.value = "", r.value = !1);
|
|
1829
1831
|
} finally {
|
|
1830
1832
|
x || (c.value = !1, r.value && (await nt(), x || d.value?.querySelector("input")?.focus()));
|
|
1831
1833
|
}
|
|
@@ -1833,18 +1835,18 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1833
1835
|
}
|
|
1834
1836
|
async function C() {
|
|
1835
1837
|
if (!c.value) {
|
|
1836
|
-
c.value = !0,
|
|
1838
|
+
c.value = !0, f.value = "";
|
|
1837
1839
|
try {
|
|
1838
|
-
await
|
|
1840
|
+
await m.session.bootstrap();
|
|
1839
1841
|
} catch (k) {
|
|
1840
|
-
x || (
|
|
1842
|
+
x || (f.value = P(k));
|
|
1841
1843
|
} finally {
|
|
1842
1844
|
x || (c.value = !1);
|
|
1843
1845
|
}
|
|
1844
1846
|
}
|
|
1845
1847
|
}
|
|
1846
1848
|
function E() {
|
|
1847
|
-
i.value = "", u.value = "", r.value = !1,
|
|
1849
|
+
i.value = "", u.value = "", r.value = !1, f.value = "";
|
|
1848
1850
|
}
|
|
1849
1851
|
return Ra(() => {
|
|
1850
1852
|
x = !0, i.value = "", u.value = "";
|
|
@@ -1858,7 +1860,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1858
1860
|
collapsible: !1
|
|
1859
1861
|
}, {
|
|
1860
1862
|
default: n(() => [
|
|
1861
|
-
|
|
1863
|
+
p.value ? b("", !0) : (l(), g(e(j), {
|
|
1862
1864
|
key: 0,
|
|
1863
1865
|
tone: "warning",
|
|
1864
1866
|
title: o.value.httpsTitle
|
|
@@ -1868,26 +1870,26 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1868
1870
|
]),
|
|
1869
1871
|
_: 1
|
|
1870
1872
|
}, 8, ["title"])),
|
|
1871
|
-
t.session.denied.value ? (l(),
|
|
1873
|
+
t.session.denied.value ? (l(), g(e(j), {
|
|
1872
1874
|
key: 1,
|
|
1873
1875
|
tone: "danger"
|
|
1874
1876
|
}, {
|
|
1875
1877
|
default: n(() => [
|
|
1876
|
-
S("span",
|
|
1878
|
+
S("span", Vl, s(t.session.denied.value.message), 1)
|
|
1877
1879
|
]),
|
|
1878
1880
|
_: 1
|
|
1879
|
-
})) : t.session.notice.value ? (l(), $("p",
|
|
1880
|
-
|
|
1881
|
+
})) : t.session.notice.value ? (l(), $("p", Nl, s(o.value.notices[t.session.notice.value]), 1)) : b("", !0),
|
|
1882
|
+
f.value && !t.session.denied.value ? (l(), g(e(j), {
|
|
1881
1883
|
key: 3,
|
|
1882
1884
|
tone: "danger",
|
|
1883
1885
|
title: o.value.failedTitle
|
|
1884
1886
|
}, {
|
|
1885
1887
|
default: n(() => [
|
|
1886
|
-
S("span",
|
|
1888
|
+
S("span", Bl, s(f.value), 1)
|
|
1887
1889
|
]),
|
|
1888
1890
|
_: 1
|
|
1889
|
-
}, 8, ["title"])) :
|
|
1890
|
-
t.session.denied.value ?
|
|
1891
|
+
}, 8, ["title"])) : b("", !0),
|
|
1892
|
+
t.session.denied.value ? b("", !0) : (l(), g(e(Me), {
|
|
1891
1893
|
key: 4,
|
|
1892
1894
|
onSubmit: qe(w, ["prevent"])
|
|
1893
1895
|
}, {
|
|
@@ -1900,13 +1902,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1900
1902
|
modelValue: a.value,
|
|
1901
1903
|
"onUpdate:modelValue": T[0] || (T[0] = (N) => a.value = N),
|
|
1902
1904
|
autocomplete: "username",
|
|
1903
|
-
disabled: c.value || r.value || !
|
|
1905
|
+
disabled: c.value || r.value || !p.value
|
|
1904
1906
|
}, null, 8, ["modelValue", "disabled"])
|
|
1905
1907
|
]),
|
|
1906
1908
|
_: 1
|
|
1907
1909
|
}, 8, ["label"]),
|
|
1908
1910
|
r.value ? (l(), $(oe, { key: 1 }, [
|
|
1909
|
-
S("p",
|
|
1911
|
+
S("p", Ll, s(o.value.otpPrompt), 1),
|
|
1910
1912
|
S("div", {
|
|
1911
1913
|
ref_key: "otpField",
|
|
1912
1914
|
ref: d
|
|
@@ -1926,7 +1928,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1926
1928
|
_: 1
|
|
1927
1929
|
}, 8, ["label"])
|
|
1928
1930
|
], 512)
|
|
1929
|
-
], 64)) : (l(),
|
|
1931
|
+
], 64)) : (l(), g(e($e), {
|
|
1930
1932
|
key: 0,
|
|
1931
1933
|
label: o.value.password
|
|
1932
1934
|
}, {
|
|
@@ -1936,7 +1938,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1936
1938
|
"onUpdate:modelValue": T[1] || (T[1] = (N) => i.value = N),
|
|
1937
1939
|
type: "password",
|
|
1938
1940
|
autocomplete: "current-password",
|
|
1939
|
-
disabled: c.value || !
|
|
1941
|
+
disabled: c.value || !p.value
|
|
1940
1942
|
}, null, 8, ["modelValue", "disabled"])
|
|
1941
1943
|
]),
|
|
1942
1944
|
_: 1
|
|
@@ -1946,14 +1948,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1946
1948
|
v(e(V), {
|
|
1947
1949
|
type: "submit",
|
|
1948
1950
|
variant: "primary",
|
|
1949
|
-
disabled: c.value || !
|
|
1951
|
+
disabled: c.value || !p.value || !a.value || !i.value || r.value && !u.value
|
|
1950
1952
|
}, {
|
|
1951
1953
|
default: n(() => [
|
|
1952
1954
|
h(s(c.value ? o.value.signingIn : r.value ? o.value.verify : o.value.signIn), 1)
|
|
1953
1955
|
]),
|
|
1954
1956
|
_: 1
|
|
1955
1957
|
}, 8, ["disabled"]),
|
|
1956
|
-
r.value ? (l(),
|
|
1958
|
+
r.value ? (l(), g(e(V), {
|
|
1957
1959
|
key: 0,
|
|
1958
1960
|
variant: "secondary",
|
|
1959
1961
|
disabled: c.value,
|
|
@@ -1963,10 +1965,10 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1963
1965
|
h(s(o.value.otherAccount), 1)
|
|
1964
1966
|
]),
|
|
1965
1967
|
_: 1
|
|
1966
|
-
}, 8, ["disabled"])) : (l(),
|
|
1968
|
+
}, 8, ["disabled"])) : (l(), g(e(V), {
|
|
1967
1969
|
key: 1,
|
|
1968
1970
|
variant: "secondary",
|
|
1969
|
-
disabled: c.value || !
|
|
1971
|
+
disabled: c.value || !p.value,
|
|
1970
1972
|
onClick: C
|
|
1971
1973
|
}, {
|
|
1972
1974
|
default: n(() => [
|
|
@@ -1983,47 +1985,47 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1983
1985
|
]),
|
|
1984
1986
|
_: 1
|
|
1985
1987
|
}, 8, ["title", "description"])
|
|
1986
|
-
], 8,
|
|
1988
|
+
], 8, Ul));
|
|
1987
1989
|
}
|
|
1988
|
-
}),
|
|
1990
|
+
}), mo = /* @__PURE__ */ me(Ol, [["__scopeId", "data-v-07e4497c"]]), Fl = { class: "integration-actions" }, ql = { role: "status" }, Ml = { class: "integration-help" }, Kl = { class: "integration-help" }, Hl = { class: "integration-help" }, Xl = { class: "integration-actions" }, Wl = {
|
|
1989
1991
|
key: 0,
|
|
1990
1992
|
role: "status",
|
|
1991
1993
|
"data-bg-picked": "",
|
|
1992
1994
|
class: "bg-path"
|
|
1993
|
-
},
|
|
1995
|
+
}, Gl = { class: "integration-actions" }, Jl = { key: 2 }, Yl = {
|
|
1994
1996
|
key: 3,
|
|
1995
1997
|
class: "bg-cards"
|
|
1996
|
-
},
|
|
1998
|
+
}, Ql = { class: "bg-card-body" }, Zl = {
|
|
1997
1999
|
key: 0,
|
|
1998
2000
|
class: "integration-help"
|
|
1999
|
-
},
|
|
2001
|
+
}, jl = {
|
|
2000
2002
|
key: 1,
|
|
2001
2003
|
class: "integration-help"
|
|
2002
|
-
},
|
|
2004
|
+
}, en = {
|
|
2003
2005
|
key: 2,
|
|
2004
2006
|
class: "integration-help bg-path"
|
|
2005
|
-
},
|
|
2007
|
+
}, an = {
|
|
2006
2008
|
key: 3,
|
|
2007
2009
|
class: "integration-help"
|
|
2008
|
-
},
|
|
2010
|
+
}, tn = {
|
|
2009
2011
|
key: 4,
|
|
2010
2012
|
class: "integration-help"
|
|
2011
|
-
},
|
|
2013
|
+
}, ln = { class: "integration-actions" }, nn = { key: 1 }, on = {
|
|
2012
2014
|
key: 2,
|
|
2013
2015
|
class: "bg-cards"
|
|
2014
|
-
},
|
|
2016
|
+
}, sn = { class: "bg-card-body" }, un = {
|
|
2015
2017
|
key: 0,
|
|
2016
2018
|
class: "integration-help"
|
|
2017
|
-
},
|
|
2019
|
+
}, rn = {
|
|
2018
2020
|
key: 1,
|
|
2019
2021
|
class: "integration-help"
|
|
2020
|
-
},
|
|
2022
|
+
}, dn = { class: "integration-help" }, cn = { class: "integration-actions" }, vn = { class: "integration-actions" }, fn = { class: "integration-actions" }, pn = /* @__PURE__ */ fe({
|
|
2021
2023
|
__name: "BackgroundPanel",
|
|
2022
2024
|
props: {
|
|
2023
2025
|
ctx: {}
|
|
2024
2026
|
},
|
|
2025
|
-
setup(t, { expose:
|
|
2026
|
-
const o = t, a = _(() => Wa(o.ctx.locale)), i = (z, W) => Je(z, W, o.ctx.locale), u = y(), r = y([]), c = y(),
|
|
2027
|
+
setup(t, { expose: m }) {
|
|
2028
|
+
const o = t, a = _(() => Wa(o.ctx.locale)), i = (z, W) => Je(z, W, o.ctx.locale), u = y(), r = y([]), c = y(), f = y(!1), d = y(!1), p = y([]), x = y(), P = y(!1), w = y("3600"), C = y(), E = y(), k = y(), T = y(!1), N = y(), te = _(() => !u.value && !c.value && !f.value && !N.value), F = y(!1), Y = y(), B = y(""), K = y(""), L = Ga(o.ctx);
|
|
2027
2029
|
let R, A = !1;
|
|
2028
2030
|
const q = (z) => !["queued", "running"].includes(z.state), M = (z) => q(z) && z.state !== "paused", se = (z) => z.state === "running" && z.pauseRequested, H = (z) => se(z) ? a.value.pausing : a.value[`state_${z.state}`], G = (z) => se(z) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[z.state];
|
|
2029
2031
|
async function le(z, W, I = !1) {
|
|
@@ -2031,7 +2033,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2031
2033
|
return await o.ctx.call(z, W);
|
|
2032
2034
|
} catch (ve) {
|
|
2033
2035
|
if (A || I && (N.value = Ce(ve))) return;
|
|
2034
|
-
ve?.code === "unsupported" ? (
|
|
2036
|
+
ve?.code === "unsupported" ? (f.value = !0, r.value = [], p.value = [], x.value = void 0, C.value = void 0, E.value = void 0, u.value = void 0, k.value = void 0, Y.value = void 0, B.value && URL.revokeObjectURL(B.value), B.value = "") : A || (c.value = ve);
|
|
2035
2037
|
return;
|
|
2036
2038
|
}
|
|
2037
2039
|
}
|
|
@@ -2045,11 +2047,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2045
2047
|
c.value = { code: "unavailable" };
|
|
2046
2048
|
return;
|
|
2047
2049
|
}
|
|
2048
|
-
|
|
2050
|
+
f.value = !1, u.value = z;
|
|
2049
2051
|
const W = await le("bg.jobs.list", void 0, !0);
|
|
2050
2052
|
W && !A && (r.value = W.jobs ?? []);
|
|
2051
2053
|
const I = await le("bg.schedules.list", void 0, !0);
|
|
2052
|
-
I && !A && (
|
|
2054
|
+
I && !A && (p.value = I.schedules ?? []), !A && r.value.every(q) && p.value.every((ve) => !ve.enabled) && R && (clearInterval(R), R = void 0);
|
|
2053
2055
|
} finally {
|
|
2054
2056
|
T.value = !1;
|
|
2055
2057
|
}
|
|
@@ -2064,7 +2066,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2064
2066
|
if (!d.value) {
|
|
2065
2067
|
d.value = !0, c.value = void 0;
|
|
2066
2068
|
try {
|
|
2067
|
-
await z(), await re(), (
|
|
2069
|
+
await z(), await re(), (p.value.some((W) => W.enabled) || r.value.some((W) => !q(W))) && ee();
|
|
2068
2070
|
} finally {
|
|
2069
2071
|
A || (d.value = !1);
|
|
2070
2072
|
}
|
|
@@ -2098,21 +2100,21 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2098
2100
|
const W = await le("bg.jobs.result", { id: z.id });
|
|
2099
2101
|
!W || A || (B.value && URL.revokeObjectURL(B.value), B.value = URL.createObjectURL(new Blob([JSON.stringify(W.result, null, 2)], { type: "application/json" })), K.value = `${z.name || z.id}.sha256.json`);
|
|
2100
2102
|
}
|
|
2101
|
-
return Ke(() => N.value, re),
|
|
2103
|
+
return Ke(() => N.value, re), m({ refresh: re }), Se(() => {
|
|
2102
2104
|
re().then(() => {
|
|
2103
|
-
(
|
|
2105
|
+
(p.value.some((z) => z.enabled) || r.value.some((z) => !q(z))) && ee();
|
|
2104
2106
|
});
|
|
2105
2107
|
}), we(() => {
|
|
2106
2108
|
A = !0, L.dispose(), R && clearInterval(R), B.value && URL.revokeObjectURL(B.value);
|
|
2107
|
-
}), (z, W) => (l(),
|
|
2109
|
+
}), (z, W) => (l(), g(e(ke), {
|
|
2108
2110
|
"aria-busy": d.value || T.value || te.value,
|
|
2109
2111
|
title: a.value.title,
|
|
2110
|
-
description:
|
|
2112
|
+
description: f.value ? void 0 : a.value.help,
|
|
2111
2113
|
collapsible: !1,
|
|
2112
2114
|
"data-background-panel": ""
|
|
2113
2115
|
}, {
|
|
2114
2116
|
default: n(() => [
|
|
2115
|
-
|
|
2117
|
+
f.value ? (l(), g(e(j), {
|
|
2116
2118
|
key: 0,
|
|
2117
2119
|
tone: "warning"
|
|
2118
2120
|
}, {
|
|
@@ -2121,7 +2123,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2121
2123
|
]),
|
|
2122
2124
|
_: 1
|
|
2123
2125
|
})) : (l(), $(oe, { key: 1 }, [
|
|
2124
|
-
N.value ? (l(),
|
|
2126
|
+
N.value ? (l(), g(e(j), {
|
|
2125
2127
|
key: 0,
|
|
2126
2128
|
tone: "info",
|
|
2127
2129
|
role: "status"
|
|
@@ -2130,8 +2132,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2130
2132
|
h(s(e(Ne)(N.value, t.ctx.locale)), 1)
|
|
2131
2133
|
]),
|
|
2132
2134
|
_: 1
|
|
2133
|
-
})) :
|
|
2134
|
-
c.value ? (l(),
|
|
2135
|
+
})) : b("", !0),
|
|
2136
|
+
c.value ? (l(), g(e(j), {
|
|
2135
2137
|
key: 1,
|
|
2136
2138
|
tone: "danger",
|
|
2137
2139
|
role: "alert"
|
|
@@ -2140,7 +2142,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2140
2142
|
h(s(e(Ja)(c.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
|
|
2141
2143
|
]),
|
|
2142
2144
|
_: 1
|
|
2143
|
-
})) :
|
|
2145
|
+
})) : b("", !0),
|
|
2144
2146
|
te.value ? (l(), $(oe, { key: 2 }, [
|
|
2145
2147
|
(l(), $(oe, null, ge(["14rem", "24rem", "18rem", "24rem"], (I, ve) => S("p", {
|
|
2146
2148
|
key: ve,
|
|
@@ -2151,7 +2153,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2151
2153
|
height: "20px"
|
|
2152
2154
|
}, null, 8, ["width"])
|
|
2153
2155
|
])), 64)),
|
|
2154
|
-
S("div",
|
|
2156
|
+
S("div", Fl, [
|
|
2155
2157
|
v(e(V), {
|
|
2156
2158
|
variant: "secondary",
|
|
2157
2159
|
disabled: ""
|
|
@@ -2171,13 +2173,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2171
2173
|
_: 1
|
|
2172
2174
|
})
|
|
2173
2175
|
])
|
|
2174
|
-
], 64)) :
|
|
2176
|
+
], 64)) : b("", !0),
|
|
2175
2177
|
u.value ? (l(), $(oe, { key: 3 }, [
|
|
2176
|
-
S("p",
|
|
2177
|
-
S("p",
|
|
2178
|
-
S("p",
|
|
2179
|
-
S("p",
|
|
2180
|
-
S("div",
|
|
2178
|
+
S("p", ql, s(u.value.worker?.alive ? i(a.value.workerRunning, { user: u.value.worker.username }) : a.value.workerStopped), 1),
|
|
2179
|
+
S("p", Ml, s(i(a.value.limits, { size: u.value.limits.maxInputBytes / 1024, queue: u.value.limits.maxQueued, seconds: u.value.limits.jobTimeoutSeconds })), 1),
|
|
2180
|
+
S("p", Kl, s(u.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
|
|
2181
|
+
S("p", Hl, s(i(a.value.ownerLimits, { jobs: u.value.limits.maxOwnerPending, size: u.value.limits.maxOwnerBytes / 1024 })), 1),
|
|
2182
|
+
S("div", Xl, [
|
|
2181
2183
|
v(e(V), {
|
|
2182
2184
|
variant: "secondary",
|
|
2183
2185
|
disabled: d.value,
|
|
@@ -2199,12 +2201,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2199
2201
|
_: 1
|
|
2200
2202
|
}, 8, ["disabled"])
|
|
2201
2203
|
]),
|
|
2202
|
-
Y.value ? (l(), $("p",
|
|
2204
|
+
Y.value ? (l(), $("p", Wl, [
|
|
2203
2205
|
h(s(i(a.value.chosen, { path: "" }).trim()) + " ", 1),
|
|
2204
2206
|
v(e(Ue), {
|
|
2205
2207
|
path: `${Y.value.folder}/${Y.value.relative}`
|
|
2206
2208
|
}, null, 8, ["path"])
|
|
2207
|
-
])) :
|
|
2209
|
+
])) : b("", !0),
|
|
2208
2210
|
v(ta, {
|
|
2209
2211
|
open: F.value,
|
|
2210
2212
|
"onUpdate:open": W[1] || (W[1] = (I) => F.value = I),
|
|
@@ -2216,13 +2218,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2216
2218
|
description: a.value.pickerConsent,
|
|
2217
2219
|
onSelected: O
|
|
2218
2220
|
}, null, 8, ["open", "locale", "name", "provider", "title", "description"]),
|
|
2219
|
-
k.value && u.value.admin ? (l(),
|
|
2221
|
+
k.value && u.value.admin ? (l(), g(e(j), {
|
|
2220
2222
|
key: 1,
|
|
2221
2223
|
tone: "warning"
|
|
2222
2224
|
}, {
|
|
2223
2225
|
default: n(() => [
|
|
2224
2226
|
S("p", null, s(i(a.value.purgeConfirm, { user: k.value.user, uid: k.value.uid })), 1),
|
|
2225
|
-
S("div",
|
|
2227
|
+
S("div", Gl, [
|
|
2226
2228
|
v(e(V), {
|
|
2227
2229
|
variant: "secondary",
|
|
2228
2230
|
disabled: d.value,
|
|
@@ -2246,9 +2248,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2246
2248
|
])
|
|
2247
2249
|
]),
|
|
2248
2250
|
_: 1
|
|
2249
|
-
})) :
|
|
2250
|
-
r.value.length ? (l(), $("div",
|
|
2251
|
-
(l(!0), $(oe, null, ge(r.value, (I) => (l(),
|
|
2251
|
+
})) : b("", !0),
|
|
2252
|
+
r.value.length ? (l(), $("div", Yl, [
|
|
2253
|
+
(l(!0), $(oe, null, ge(r.value, (I) => (l(), g(e(_a), {
|
|
2252
2254
|
key: I.id,
|
|
2253
2255
|
title: I.name,
|
|
2254
2256
|
"layout-type": "compact",
|
|
@@ -2267,19 +2269,19 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2267
2269
|
}, 1032, ["tone"])
|
|
2268
2270
|
]),
|
|
2269
2271
|
default: n(() => [
|
|
2270
|
-
S("div",
|
|
2271
|
-
I.progress?.total ? (l(), $("span",
|
|
2272
|
-
I.progress?.totalBytes ? (l(), $("span",
|
|
2273
|
-
I.progress?.item ? (l(), $("span",
|
|
2272
|
+
S("div", Ql, [
|
|
2273
|
+
I.progress?.total ? (l(), $("span", Zl, s(i(a.value.progressItems, { done: I.progress.done, count: I.progress.total })), 1)) : b("", !0),
|
|
2274
|
+
I.progress?.totalBytes ? (l(), $("span", jl, s(i(a.value.progressBytes, { done: e(ra)(I.progress.bytes, t.ctx.locale), total: e(ra)(I.progress.totalBytes, t.ctx.locale) })), 1)) : b("", !0),
|
|
2275
|
+
I.progress?.item ? (l(), $("span", en, [
|
|
2274
2276
|
h(s(i(a.value.progressItem, { item: "" }).trim()) + " ", 1),
|
|
2275
2277
|
v(e(Ue), {
|
|
2276
2278
|
path: I.progress.item
|
|
2277
2279
|
}, null, 8, ["path"])
|
|
2278
|
-
])) :
|
|
2279
|
-
u.value.admin && I.submitter ? (l(), $("span",
|
|
2280
|
-
I.scheduleId ? (l(), $("span",
|
|
2281
|
-
S("div",
|
|
2282
|
-
u.value.admin && I.submitter ? (l(),
|
|
2280
|
+
])) : b("", !0),
|
|
2281
|
+
u.value.admin && I.submitter ? (l(), $("span", an, s(i(a.value.owner, { user: I.submitter.user, uid: I.submitter.uid })), 1)) : b("", !0),
|
|
2282
|
+
I.scheduleId ? (l(), $("span", tn, s(a.value.scheduledJob), 1)) : b("", !0),
|
|
2283
|
+
S("div", ln, [
|
|
2284
|
+
u.value.admin && I.submitter ? (l(), g(e(V), {
|
|
2283
2285
|
key: 0,
|
|
2284
2286
|
variant: "secondary",
|
|
2285
2287
|
disabled: d.value,
|
|
@@ -2289,8 +2291,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2289
2291
|
h(s(a.value.purgeOwner), 1)
|
|
2290
2292
|
]),
|
|
2291
2293
|
_: 1
|
|
2292
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2293
|
-
!q(I) && !I.pauseRequested && !I.delegation_id ? (l(),
|
|
2294
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2295
|
+
!q(I) && !I.pauseRequested && !I.delegation_id ? (l(), g(e(V), {
|
|
2294
2296
|
key: 1,
|
|
2295
2297
|
variant: "secondary",
|
|
2296
2298
|
disabled: d.value,
|
|
@@ -2300,8 +2302,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2300
2302
|
h(s(a.value.pause), 1)
|
|
2301
2303
|
]),
|
|
2302
2304
|
_: 1
|
|
2303
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2304
|
-
I.state === "paused" || se(I) ? (l(),
|
|
2305
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2306
|
+
I.state === "paused" || se(I) ? (l(), g(e(V), {
|
|
2305
2307
|
key: 2,
|
|
2306
2308
|
variant: "secondary",
|
|
2307
2309
|
disabled: d.value,
|
|
@@ -2311,8 +2313,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2311
2313
|
h(s(a.value.resume), 1)
|
|
2312
2314
|
]),
|
|
2313
2315
|
_: 1
|
|
2314
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2315
|
-
M(I) ?
|
|
2316
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2317
|
+
M(I) ? b("", !0) : (l(), g(e(V), {
|
|
2316
2318
|
key: 3,
|
|
2317
2319
|
variant: "secondary",
|
|
2318
2320
|
disabled: d.value,
|
|
@@ -2323,7 +2325,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2323
2325
|
]),
|
|
2324
2326
|
_: 1
|
|
2325
2327
|
}, 8, ["disabled", "onClick"])),
|
|
2326
|
-
ye(I) ? (l(),
|
|
2328
|
+
ye(I) ? (l(), g(e(V), {
|
|
2327
2329
|
key: 4,
|
|
2328
2330
|
variant: "secondary",
|
|
2329
2331
|
disabled: d.value,
|
|
@@ -2333,8 +2335,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2333
2335
|
h(s(a.value.scheduleCopy), 1)
|
|
2334
2336
|
]),
|
|
2335
2337
|
_: 1
|
|
2336
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2337
|
-
I.state === "succeeded" ? (l(),
|
|
2338
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2339
|
+
I.state === "succeeded" ? (l(), g(e(V), {
|
|
2338
2340
|
key: 5,
|
|
2339
2341
|
variant: "secondary",
|
|
2340
2342
|
disabled: d.value,
|
|
@@ -2344,13 +2346,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2344
2346
|
h(s(a.value.result), 1)
|
|
2345
2347
|
]),
|
|
2346
2348
|
_: 1
|
|
2347
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2349
|
+
}, 8, ["disabled", "onClick"])) : b("", !0)
|
|
2348
2350
|
])
|
|
2349
2351
|
])
|
|
2350
2352
|
]),
|
|
2351
2353
|
_: 2
|
|
2352
2354
|
}, 1032, ["title", "data-job-state", "data-job-id"]))), 128))
|
|
2353
|
-
])) : (l(), $("p",
|
|
2355
|
+
])) : (l(), $("p", Jl, s(a.value.noJobs), 1)),
|
|
2354
2356
|
v(e(ke), {
|
|
2355
2357
|
"data-bg-schedules": "",
|
|
2356
2358
|
class: "bg-schedules",
|
|
@@ -2359,7 +2361,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2359
2361
|
collapsible: !1
|
|
2360
2362
|
}, {
|
|
2361
2363
|
default: n(() => [
|
|
2362
|
-
x.value ? (l(),
|
|
2364
|
+
x.value ? (l(), g(e(Me), {
|
|
2363
2365
|
key: 0,
|
|
2364
2366
|
class: "bg-schedule-form",
|
|
2365
2367
|
onSubmit: qe(Ae, ["prevent"])
|
|
@@ -2415,9 +2417,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2415
2417
|
})
|
|
2416
2418
|
]),
|
|
2417
2419
|
_: 1
|
|
2418
|
-
})) :
|
|
2419
|
-
|
|
2420
|
-
(l(!0), $(oe, null, ge(
|
|
2420
|
+
})) : b("", !0),
|
|
2421
|
+
p.value.length ? (l(), $("div", on, [
|
|
2422
|
+
(l(!0), $(oe, null, ge(p.value, (I) => (l(), g(e(_a), {
|
|
2421
2423
|
key: I.id,
|
|
2422
2424
|
title: I.name,
|
|
2423
2425
|
"layout-type": "compact",
|
|
@@ -2435,11 +2437,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2435
2437
|
}, 1032, ["tone"])
|
|
2436
2438
|
]),
|
|
2437
2439
|
default: n(() => [
|
|
2438
|
-
S("div",
|
|
2439
|
-
u.value.admin ? (l(), $("span",
|
|
2440
|
-
I.enabled ? (l(), $("span",
|
|
2441
|
-
S("span",
|
|
2442
|
-
I.reason === "worker-changed" ? (l(),
|
|
2440
|
+
S("div", sn, [
|
|
2441
|
+
u.value.admin ? (l(), $("span", un, s(i(a.value.owner, { user: I.owner.user, uid: I.owner.uid })), 1)) : b("", !0),
|
|
2442
|
+
I.enabled ? (l(), $("span", rn, s(i(a.value.nextRun, { time: ne(I.nextAt) })), 1)) : b("", !0),
|
|
2443
|
+
S("span", dn, s(i(a.value.missedRuns, { count: I.missed })), 1),
|
|
2444
|
+
I.reason === "worker-changed" ? (l(), g(e(j), {
|
|
2443
2445
|
key: 2,
|
|
2444
2446
|
tone: "warning"
|
|
2445
2447
|
}, {
|
|
@@ -2447,7 +2449,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2447
2449
|
h(s(a.value.revisionChanged), 1)
|
|
2448
2450
|
]),
|
|
2449
2451
|
_: 1
|
|
2450
|
-
})) : I.reason === "input-unavailable" ? (l(),
|
|
2452
|
+
})) : I.reason === "input-unavailable" ? (l(), g(e(j), {
|
|
2451
2453
|
key: 3,
|
|
2452
2454
|
tone: "warning"
|
|
2453
2455
|
}, {
|
|
@@ -2455,9 +2457,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2455
2457
|
h(s(a.value.errors["input-unavailable"]), 1)
|
|
2456
2458
|
]),
|
|
2457
2459
|
_: 1
|
|
2458
|
-
})) :
|
|
2459
|
-
S("div",
|
|
2460
|
-
I.enabled ? (l(),
|
|
2460
|
+
})) : b("", !0),
|
|
2461
|
+
S("div", cn, [
|
|
2462
|
+
I.enabled ? (l(), g(e(V), {
|
|
2461
2463
|
key: 0,
|
|
2462
2464
|
variant: "secondary",
|
|
2463
2465
|
disabled: d.value,
|
|
@@ -2467,7 +2469,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2467
2469
|
h(s(a.value.disableSchedule), 1)
|
|
2468
2470
|
]),
|
|
2469
2471
|
_: 1
|
|
2470
|
-
}, 8, ["disabled", "onClick"])) : u.value.admin ? (l(),
|
|
2472
|
+
}, 8, ["disabled", "onClick"])) : u.value.admin ? (l(), g(e(V), {
|
|
2471
2473
|
key: 1,
|
|
2472
2474
|
variant: "secondary",
|
|
2473
2475
|
disabled: d.value,
|
|
@@ -2477,7 +2479,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2477
2479
|
h(s(a.value.enableSchedule), 1)
|
|
2478
2480
|
]),
|
|
2479
2481
|
_: 1
|
|
2480
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2482
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2481
2483
|
v(e(V), {
|
|
2482
2484
|
variant: "secondary",
|
|
2483
2485
|
disabled: d.value,
|
|
@@ -2493,14 +2495,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2493
2495
|
]),
|
|
2494
2496
|
_: 2
|
|
2495
2497
|
}, 1032, ["title", "data-schedule-id"]))), 128))
|
|
2496
|
-
])) : (l(), $("p",
|
|
2497
|
-
C.value ? (l(),
|
|
2498
|
+
])) : (l(), $("p", nn, s(a.value.noSchedules), 1)),
|
|
2499
|
+
C.value ? (l(), g(e(j), {
|
|
2498
2500
|
key: 3,
|
|
2499
2501
|
tone: "warning"
|
|
2500
2502
|
}, {
|
|
2501
2503
|
default: n(() => [
|
|
2502
2504
|
S("p", null, s(i(a.value.deleteScheduleConsent, { name: C.value.name })), 1),
|
|
2503
|
-
S("div",
|
|
2505
|
+
S("div", vn, [
|
|
2504
2506
|
v(e(V), {
|
|
2505
2507
|
variant: "danger",
|
|
2506
2508
|
disabled: d.value,
|
|
@@ -2524,14 +2526,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2524
2526
|
])
|
|
2525
2527
|
]),
|
|
2526
2528
|
_: 1
|
|
2527
|
-
})) :
|
|
2528
|
-
E.value ? (l(),
|
|
2529
|
+
})) : b("", !0),
|
|
2530
|
+
E.value ? (l(), g(e(j), {
|
|
2529
2531
|
key: 4,
|
|
2530
2532
|
tone: "warning"
|
|
2531
2533
|
}, {
|
|
2532
2534
|
default: n(() => [
|
|
2533
2535
|
S("p", null, s(i(a.value.enableScheduleConsent, { name: E.value.name })), 1),
|
|
2534
|
-
S("div",
|
|
2536
|
+
S("div", fn, [
|
|
2535
2537
|
v(e(V), {
|
|
2536
2538
|
variant: "primary",
|
|
2537
2539
|
disabled: d.value,
|
|
@@ -2555,11 +2557,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2555
2557
|
])
|
|
2556
2558
|
]),
|
|
2557
2559
|
_: 1
|
|
2558
|
-
})) :
|
|
2560
|
+
})) : b("", !0)
|
|
2559
2561
|
]),
|
|
2560
2562
|
_: 1
|
|
2561
2563
|
}, 8, ["title", "description"]),
|
|
2562
|
-
B.value ? (l(),
|
|
2564
|
+
B.value ? (l(), g(e(ua), {
|
|
2563
2565
|
key: 4,
|
|
2564
2566
|
href: B.value,
|
|
2565
2567
|
download: K.value
|
|
@@ -2568,20 +2570,20 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2568
2570
|
h(s(a.value.download), 1)
|
|
2569
2571
|
]),
|
|
2570
2572
|
_: 1
|
|
2571
|
-
}, 8, ["href", "download"])) :
|
|
2572
|
-
], 64)) :
|
|
2573
|
+
}, 8, ["href", "download"])) : b("", !0)
|
|
2574
|
+
], 64)) : b("", !0)
|
|
2573
2575
|
], 64))
|
|
2574
2576
|
]),
|
|
2575
2577
|
_: 1
|
|
2576
2578
|
}, 8, ["aria-busy", "title", "description"]));
|
|
2577
2579
|
}
|
|
2578
|
-
}),
|
|
2580
|
+
}), yo = /* @__PURE__ */ me(pn, [["__scopeId", "data-v-a7c98d9d"]]), mn = ["inert", "aria-hidden"], yn = {
|
|
2579
2581
|
key: 3,
|
|
2580
2582
|
class: "executor-approval"
|
|
2581
|
-
},
|
|
2583
|
+
}, bn = {
|
|
2582
2584
|
key: 0,
|
|
2583
2585
|
class: "executor-brand"
|
|
2584
|
-
},
|
|
2586
|
+
}, gn = ["src"], hn = /* @__PURE__ */ fe({
|
|
2585
2587
|
__name: "ExecutorApproval",
|
|
2586
2588
|
props: {
|
|
2587
2589
|
admin: { type: Boolean },
|
|
@@ -2591,31 +2593,31 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2591
2593
|
preload: { type: Boolean }
|
|
2592
2594
|
},
|
|
2593
2595
|
setup(t) {
|
|
2594
|
-
const
|
|
2595
|
-
const w =
|
|
2596
|
+
const m = t, o = Ee(We, void 0), a = _(() => Ve(m.locale)), i = y("checking"), u = y(), r = _(() => {
|
|
2597
|
+
const w = m.ctx;
|
|
2596
2598
|
return (w?.fullPage ?? (w?.host ? $a({ host: w.host }) : !1)) && w?.displayName ? w : void 0;
|
|
2597
2599
|
});
|
|
2598
2600
|
function c(w) {
|
|
2599
2601
|
u.value = w, i.value = w.state;
|
|
2600
2602
|
}
|
|
2601
|
-
let
|
|
2602
|
-
async function
|
|
2603
|
+
let f = !1, d;
|
|
2604
|
+
async function p() {
|
|
2603
2605
|
try {
|
|
2604
2606
|
const w = await o.status();
|
|
2605
|
-
|
|
2607
|
+
f || c(w);
|
|
2606
2608
|
} catch {
|
|
2607
|
-
|
|
2609
|
+
f || (u.value = void 0, i.value = "blocked");
|
|
2608
2610
|
}
|
|
2609
2611
|
}
|
|
2610
|
-
const x = _(() => Ce(u.value)), P = _(() => !!
|
|
2611
|
-
return Le(Ua, _(() => P.value && i.value === "checking")), Ke(() => x.value,
|
|
2612
|
+
const x = _(() => Ce(u.value)), P = _(() => !!m.preload && !!o && (i.value === "ready" || i.value === "checking"));
|
|
2613
|
+
return Le(Ua, _(() => P.value && i.value === "checking")), Ke(() => x.value, p), Se(() => {
|
|
2612
2614
|
o && (o.subscribe?.((w) => {
|
|
2613
|
-
!
|
|
2614
|
-
}), d =
|
|
2615
|
-
|
|
2616
|
-
}),
|
|
2615
|
+
!f && !je(w) && c(w);
|
|
2616
|
+
}), d = m.ctx?.reopen(() => {
|
|
2617
|
+
p();
|
|
2618
|
+
}), p());
|
|
2617
2619
|
}), we(() => {
|
|
2618
|
-
|
|
2620
|
+
f = !0, d?.();
|
|
2619
2621
|
}), (w, C) => (l(), $(oe, null, [
|
|
2620
2622
|
P.value ? (l(), $("div", {
|
|
2621
2623
|
key: 0,
|
|
@@ -2624,20 +2626,20 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2624
2626
|
"aria-hidden": i.value === "checking" ? "true" : void 0
|
|
2625
2627
|
}, [
|
|
2626
2628
|
be(w.$slots, "default", {}, void 0, !0)
|
|
2627
|
-
], 10,
|
|
2628
|
-
e(o) && i.value === "checking" ? (l(),
|
|
2629
|
+
], 10, mn)) : !e(o) || i.value === "ready" ? be(w.$slots, "default", {}, void 0, !0, 1) : b("", !0),
|
|
2630
|
+
e(o) && i.value === "checking" ? (l(), g(e(bt), {
|
|
2629
2631
|
key: 2,
|
|
2630
2632
|
text: a.value.loading
|
|
2631
|
-
}, null, 8, ["text"])) : e(o) && i.value !== "ready" ? (l(), $("div",
|
|
2632
|
-
r.value ? (l(), $("header",
|
|
2633
|
+
}, null, 8, ["text"])) : e(o) && i.value !== "ready" ? (l(), $("div", yn, [
|
|
2634
|
+
r.value ? (l(), $("header", bn, [
|
|
2633
2635
|
r.value.appIcon ? (l(), $("img", {
|
|
2634
2636
|
key: 0,
|
|
2635
2637
|
src: r.value.appIcon,
|
|
2636
2638
|
alt: ""
|
|
2637
|
-
}, null, 8,
|
|
2639
|
+
}, null, 8, gn)) : b("", !0),
|
|
2638
2640
|
S("span", null, s(r.value.displayName), 1)
|
|
2639
|
-
])) :
|
|
2640
|
-
x.value ? (l(),
|
|
2641
|
+
])) : b("", !0),
|
|
2642
|
+
x.value ? (l(), g(e(j), {
|
|
2641
2643
|
key: 1,
|
|
2642
2644
|
tone: "info",
|
|
2643
2645
|
role: "status"
|
|
@@ -2646,7 +2648,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2646
2648
|
h(s(e(Ne)(x.value, t.locale)), 1)
|
|
2647
2649
|
]),
|
|
2648
2650
|
_: 1
|
|
2649
|
-
})) : t.admin ? (l(),
|
|
2651
|
+
})) : t.admin ? (l(), g(La, {
|
|
2650
2652
|
key: 2,
|
|
2651
2653
|
admin: !0,
|
|
2652
2654
|
locale: t.locale,
|
|
@@ -2654,14 +2656,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2654
2656
|
purpose: t.purpose,
|
|
2655
2657
|
title: "",
|
|
2656
2658
|
layout: "page",
|
|
2657
|
-
onConfirmed:
|
|
2658
|
-
}, null, 8, ["locale", "initial", "purpose"])) : i.value === "needs-admin-approval" ? (l(),
|
|
2659
|
+
onConfirmed: p
|
|
2660
|
+
}, null, 8, ["locale", "initial", "purpose"])) : i.value === "needs-admin-approval" ? (l(), g(ea, {
|
|
2659
2661
|
key: 3,
|
|
2660
2662
|
admin: !1,
|
|
2661
2663
|
locale: t.locale,
|
|
2662
2664
|
purpose: t.purpose,
|
|
2663
2665
|
layout: "page"
|
|
2664
|
-
}, null, 8, ["locale", "purpose"])) : (l(),
|
|
2666
|
+
}, null, 8, ["locale", "purpose"])) : (l(), g(e(j), {
|
|
2665
2667
|
key: 4,
|
|
2666
2668
|
tone: "info"
|
|
2667
2669
|
}, {
|
|
@@ -2670,59 +2672,59 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2670
2672
|
]),
|
|
2671
2673
|
_: 1
|
|
2672
2674
|
}))
|
|
2673
|
-
])) :
|
|
2675
|
+
])) : b("", !0)
|
|
2674
2676
|
], 64));
|
|
2675
2677
|
}
|
|
2676
|
-
}),
|
|
2678
|
+
}), bo = /* @__PURE__ */ me(hn, [["__scopeId", "data-v-59aae3f3"]]), kn = {
|
|
2677
2679
|
key: 2,
|
|
2678
2680
|
role: "status"
|
|
2679
|
-
},
|
|
2681
|
+
}, wn = {
|
|
2680
2682
|
key: 3,
|
|
2681
2683
|
role: "status"
|
|
2682
|
-
},
|
|
2684
|
+
}, _n = {
|
|
2683
2685
|
key: 0,
|
|
2684
2686
|
role: "status",
|
|
2685
2687
|
class: "destination"
|
|
2686
|
-
},
|
|
2688
|
+
}, xn = {
|
|
2687
2689
|
key: 0,
|
|
2688
2690
|
"data-placeholder-row": ""
|
|
2689
|
-
},
|
|
2691
|
+
}, Cn = { key: 1 }, $n = {
|
|
2690
2692
|
key: 2,
|
|
2691
2693
|
class: "records"
|
|
2692
|
-
},
|
|
2694
|
+
}, Sn = ["data-job-state"], Pn = ["role"], En = {
|
|
2693
2695
|
key: 0,
|
|
2694
2696
|
"data-placeholder-row": ""
|
|
2695
|
-
},
|
|
2697
|
+
}, Tn = { key: 1 }, zn = {
|
|
2696
2698
|
key: 2,
|
|
2697
2699
|
class: "records"
|
|
2698
|
-
},
|
|
2700
|
+
}, An = /* @__PURE__ */ fe({
|
|
2699
2701
|
__name: "DelegatePanel",
|
|
2700
2702
|
props: {
|
|
2701
2703
|
ctx: {}
|
|
2702
2704
|
},
|
|
2703
|
-
setup(t, { expose:
|
|
2704
|
-
const o = t, a = _(() => Ve(o.ctx.locale)), i = _(() => Ea(o.ctx.locale)), u = Pa(o.ctx), r = y(), c = y([]),
|
|
2705
|
+
setup(t, { expose: m }) {
|
|
2706
|
+
const o = t, a = _(() => Ve(o.ctx.locale)), i = _(() => Ea(o.ctx.locale)), u = Pa(o.ctx), r = y(), c = y([]), f = y([]), d = y(!1), p = y(), x = y(""), P = y(!1), w = y(""), C = y(""), E = y("");
|
|
2705
2707
|
let k = !1, T, N;
|
|
2706
2708
|
const te = y();
|
|
2707
2709
|
Oe([C, w, E], () => {
|
|
2708
2710
|
N = void 0;
|
|
2709
2711
|
}, { flush: "sync" });
|
|
2710
|
-
const F = (ee) => ["queued", "running", "waiting_executor"].includes(ee.state), Y = _(() =>
|
|
2712
|
+
const F = (ee) => ["queued", "running", "waiting_executor"].includes(ee.state), Y = _(() => f.value.some((ee) => ee.state === "waiting_executor")), B = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = _(() => Y.value && B.includes(p.value?.code ?? "")), L = _(() => !r.value && !p.value && !te.value), R = _(() => r.value && r.value.state !== "ready" && !(Y.value && r.value.state === "needs-admin-approval" && B.includes(r.value.reason ?? "")));
|
|
2711
2713
|
async function A() {
|
|
2712
2714
|
if (k) return;
|
|
2713
2715
|
const [ee, X, Q] = await Promise.allSettled([o.ctx.call("delegate.status"), o.ctx.call("delegate.list"), o.ctx.call("delegate.jobs.list")]);
|
|
2714
2716
|
if (k) return;
|
|
2715
|
-
ee.status === "fulfilled" && (r.value = ee.value), X.status === "fulfilled" && (c.value = (X.value.delegations ?? []).filter((he) => !he.revoked)), Q.status === "fulfilled" && (
|
|
2717
|
+
ee.status === "fulfilled" && (r.value = ee.value), X.status === "fulfilled" && (c.value = (X.value.delegations ?? []).filter((he) => !he.revoked)), Q.status === "fulfilled" && (f.value = Q.value.jobs ?? []);
|
|
2716
2718
|
const de = [ee, X, Q].find((he) => he.status === "rejected");
|
|
2717
2719
|
if (te.value = de && Ce(de.reason), de && !te.value) throw de.reason;
|
|
2718
2720
|
}
|
|
2719
2721
|
async function q(ee) {
|
|
2720
2722
|
if (!(d.value || k)) {
|
|
2721
|
-
d.value = !0,
|
|
2723
|
+
d.value = !0, p.value = void 0;
|
|
2722
2724
|
try {
|
|
2723
2725
|
await ee();
|
|
2724
2726
|
} catch (X) {
|
|
2725
|
-
k || (
|
|
2727
|
+
k || (p.value = X);
|
|
2726
2728
|
} finally {
|
|
2727
2729
|
k || (d.value = !1);
|
|
2728
2730
|
}
|
|
@@ -2741,13 +2743,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2741
2743
|
const X = new Date(ee);
|
|
2742
2744
|
return Number.isNaN(X.getTime()) ? "—" : X.toLocaleString(o.ctx.locale);
|
|
2743
2745
|
};
|
|
2744
|
-
return
|
|
2746
|
+
return m({ refresh: M }), Se(() => {
|
|
2745
2747
|
M(), T = setInterval(() => {
|
|
2746
|
-
|
|
2748
|
+
f.value.some(F) && M();
|
|
2747
2749
|
}, 3e3);
|
|
2748
2750
|
}), we(() => {
|
|
2749
2751
|
k = !0, T && clearInterval(T), u.dispose();
|
|
2750
|
-
}), (ee, X) => (l(),
|
|
2752
|
+
}), (ee, X) => (l(), g(e(ke), {
|
|
2751
2753
|
title: a.value.title,
|
|
2752
2754
|
description: a.value.help,
|
|
2753
2755
|
collapsible: !1,
|
|
@@ -2755,17 +2757,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2755
2757
|
class: "delegate-panel"
|
|
2756
2758
|
}, {
|
|
2757
2759
|
default: n(() => [
|
|
2758
|
-
|
|
2760
|
+
p.value && !K.value ? (l(), g(e(j), {
|
|
2759
2761
|
key: 0,
|
|
2760
2762
|
tone: "danger",
|
|
2761
2763
|
role: "alert"
|
|
2762
2764
|
}, {
|
|
2763
2765
|
default: n(() => [
|
|
2764
|
-
h(s(e(Ya)(
|
|
2766
|
+
h(s(e(Ya)(p.value, t.ctx.locale) ?? e(Qa)(p.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
|
|
2765
2767
|
]),
|
|
2766
2768
|
_: 1
|
|
2767
|
-
})) :
|
|
2768
|
-
te.value ? (l(),
|
|
2769
|
+
})) : b("", !0),
|
|
2770
|
+
te.value ? (l(), g(e(j), {
|
|
2769
2771
|
key: 1,
|
|
2770
2772
|
tone: "info",
|
|
2771
2773
|
role: "status"
|
|
@@ -2774,9 +2776,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2774
2776
|
h(s(e(Ne)(te.value, t.ctx.locale)), 1)
|
|
2775
2777
|
]),
|
|
2776
2778
|
_: 1
|
|
2777
|
-
})) :
|
|
2778
|
-
x.value ? (l(), $("p",
|
|
2779
|
-
R.value ? (l(), $("p",
|
|
2779
|
+
})) : b("", !0),
|
|
2780
|
+
x.value ? (l(), $("p", kn, s(x.value), 1)) : b("", !0),
|
|
2781
|
+
R.value ? (l(), $("p", wn, s(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : b("", !0),
|
|
2780
2782
|
v(e(Me), {
|
|
2781
2783
|
direction: "vertical",
|
|
2782
2784
|
onSubmit: qe(le, ["prevent"])
|
|
@@ -2813,10 +2815,10 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2813
2815
|
_: 1
|
|
2814
2816
|
}, 8, ["label"]),
|
|
2815
2817
|
S("p", null, s(a.value.size), 1),
|
|
2816
|
-
w.value ? (l(), $("p",
|
|
2818
|
+
w.value ? (l(), $("p", _n, [
|
|
2817
2819
|
h(s(a.value.destination) + s(i.value), 1),
|
|
2818
2820
|
v(e(Ue), { path: w.value }, null, 8, ["path"])
|
|
2819
|
-
])) :
|
|
2821
|
+
])) : b("", !0),
|
|
2820
2822
|
v(e(aa), null, {
|
|
2821
2823
|
default: n(() => [
|
|
2822
2824
|
v(e(V), {
|
|
@@ -2861,20 +2863,20 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2861
2863
|
class: "delegate-group"
|
|
2862
2864
|
}, {
|
|
2863
2865
|
default: n(() => [
|
|
2864
|
-
L.value ? (l(), $("p",
|
|
2866
|
+
L.value ? (l(), $("p", xn, [
|
|
2865
2867
|
v(e(Fe), {
|
|
2866
2868
|
width: "12rem",
|
|
2867
2869
|
height: "20px"
|
|
2868
2870
|
})
|
|
2869
|
-
])) : !
|
|
2870
|
-
(l(!0), $(oe, null, ge(
|
|
2871
|
+
])) : !f.value.length && !p.value ? (l(), $("p", Cn, s(a.value.noJobs), 1)) : (l(), $("ul", $n, [
|
|
2872
|
+
(l(!0), $(oe, null, ge(f.value, (Q) => (l(), $("li", {
|
|
2871
2873
|
key: Q.id,
|
|
2872
2874
|
"data-job-state": Q.state
|
|
2873
2875
|
}, [
|
|
2874
2876
|
S("span", {
|
|
2875
2877
|
role: Q.state === "waiting_executor" ? "status" : void 0
|
|
2876
|
-
}, s(Q.name) + " · " + s(a.value[Q.state]), 9,
|
|
2877
|
-
F(Q) ? (l(),
|
|
2878
|
+
}, s(Q.name) + " · " + s(a.value[Q.state]), 9, Pn),
|
|
2879
|
+
F(Q) ? (l(), g(e(V), {
|
|
2878
2880
|
key: 0,
|
|
2879
2881
|
variant: "secondary",
|
|
2880
2882
|
disabled: d.value,
|
|
@@ -2884,8 +2886,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2884
2886
|
h(s(a.value.cancel), 1)
|
|
2885
2887
|
]),
|
|
2886
2888
|
_: 1
|
|
2887
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2888
|
-
], 8,
|
|
2889
|
+
}, 8, ["disabled", "onClick"])) : b("", !0)
|
|
2890
|
+
], 8, Sn))), 128))
|
|
2889
2891
|
]))
|
|
2890
2892
|
]),
|
|
2891
2893
|
_: 1
|
|
@@ -2896,12 +2898,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2896
2898
|
class: "delegate-group"
|
|
2897
2899
|
}, {
|
|
2898
2900
|
default: n(() => [
|
|
2899
|
-
L.value ? (l(), $("p",
|
|
2901
|
+
L.value ? (l(), $("p", En, [
|
|
2900
2902
|
v(e(Fe), {
|
|
2901
2903
|
width: "12rem",
|
|
2902
2904
|
height: "20px"
|
|
2903
2905
|
})
|
|
2904
|
-
])) : !c.value.length && !
|
|
2906
|
+
])) : !c.value.length && !p.value ? (l(), $("p", Tn, s(a.value.noDelegations), 1)) : (l(), $("ul", zn, [
|
|
2905
2907
|
(l(!0), $(oe, null, ge(c.value, (Q) => (l(), $("li", {
|
|
2906
2908
|
key: Q.delegation_id
|
|
2907
2909
|
}, [
|
|
@@ -2930,19 +2932,19 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2930
2932
|
_: 1
|
|
2931
2933
|
}, 8, ["title", "description", "aria-busy"]));
|
|
2932
2934
|
}
|
|
2933
|
-
}),
|
|
2935
|
+
}), go = /* @__PURE__ */ me(An, [["__scopeId", "data-v-987b56d5"]]), Rn = { class: "save-alert" }, In = { "data-save-error": "" }, Dn = { class: "save-alert" }, Un = {
|
|
2934
2936
|
key: 0,
|
|
2935
2937
|
class: "save-reason"
|
|
2936
|
-
},
|
|
2938
|
+
}, Vn = {
|
|
2937
2939
|
key: 0,
|
|
2938
2940
|
class: "save-reason"
|
|
2939
|
-
},
|
|
2941
|
+
}, Nn = { class: "save-alert" }, Bn = {
|
|
2940
2942
|
key: 0,
|
|
2941
2943
|
class: "save-help"
|
|
2942
|
-
},
|
|
2944
|
+
}, Ln = { class: "save-actions" }, On = {
|
|
2943
2945
|
key: 1,
|
|
2944
2946
|
class: "save-none"
|
|
2945
|
-
},
|
|
2947
|
+
}, Fn = /* @__PURE__ */ fe({
|
|
2946
2948
|
__name: "BackgroundSaveSettings",
|
|
2947
2949
|
props: {
|
|
2948
2950
|
sdk: {},
|
|
@@ -2954,14 +2956,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2954
2956
|
pickerErrorText: { type: Function }
|
|
2955
2957
|
},
|
|
2956
2958
|
emits: ["authorized", "confirmed", "destinations"],
|
|
2957
|
-
setup(t, { expose:
|
|
2958
|
-
const a = t, i = o, u = _(() => fa(a.locale)), r = _(() => Ve(a.locale)), c = Ee(We, void 0),
|
|
2959
|
+
setup(t, { expose: m, emit: o }) {
|
|
2960
|
+
const a = t, i = o, u = _(() => fa(a.locale)), r = _(() => Ve(a.locale)), c = Ee(We, void 0), f = _(() => a.ctx ?? (c?.call ? { call: c.call.bind(c) } : void 0)), d = Ba({ get admin() {
|
|
2959
2961
|
return a.admin;
|
|
2960
2962
|
}, get locale() {
|
|
2961
2963
|
return a.locale;
|
|
2962
2964
|
}, get ctx() {
|
|
2963
|
-
return
|
|
2964
|
-
} }, J), { password:
|
|
2965
|
+
return f.value;
|
|
2966
|
+
} }, J), { password: p, busy: x, confirming: P, failure: w, passwordError: C, scope: E, chosen: k, options: T, dynamic: N, canConfirm: te } = d, F = y(), Y = y([]), B = y(!1), K = y(!1), L = y(), R = y(!1), A = y(!1), q = y(!1), M = y(""), se = y(), H = _(() => se.value ?? (B.value ? Ce(d.status.value) : void 0));
|
|
2965
2967
|
let G = !1;
|
|
2966
2968
|
async function le() {
|
|
2967
2969
|
let ue;
|
|
@@ -3039,13 +3041,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3039
3041
|
return !ue || "confirm" in ue ? "" : ue.code === "session_ended" ? r.value.session : d.explain(ue) ?? r.value.setupError;
|
|
3040
3042
|
}), W = _(() => a.admin && Pe.value && !A.value), I = _(() => x.value || K.value || d.error.value || !te.value);
|
|
3041
3043
|
function ve() {
|
|
3042
|
-
A.value = !1,
|
|
3044
|
+
A.value = !1, p.value = "", w.value = void 0, k.value = E.value?.selection?.scope ?? "";
|
|
3043
3045
|
}
|
|
3044
|
-
return Ke(() => H.value, () => Promise.all([ee(), a.admin ? d.refresh() : void 0])),
|
|
3046
|
+
return Ke(() => H.value, () => Promise.all([ee(), a.admin ? d.refresh() : void 0])), m({ refresh: X }), Se(() => {
|
|
3045
3047
|
ee();
|
|
3046
3048
|
}), we(() => {
|
|
3047
3049
|
G = !0;
|
|
3048
|
-
}), (ue, pe) => (l(),
|
|
3050
|
+
}), (ue, pe) => (l(), g(e(ke), {
|
|
3049
3051
|
title: t.title ?? u.value.title,
|
|
3050
3052
|
description: Pe.value && !A.value ? void 0 : u.value.help,
|
|
3051
3053
|
collapsible: !1,
|
|
@@ -3053,7 +3055,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3053
3055
|
class: "background-save-settings"
|
|
3054
3056
|
}, {
|
|
3055
3057
|
default: n(() => [
|
|
3056
|
-
ye.value ? (l(!0), $(oe, { key: 0 }, ge(t.picker?.keys ?? [], (ae) => (l(),
|
|
3058
|
+
ye.value ? (l(!0), $(oe, { key: 0 }, ge(t.picker?.keys ?? [], (ae) => (l(), g(e(xe), {
|
|
3057
3059
|
key: ae,
|
|
3058
3060
|
label: ce(ae),
|
|
3059
3061
|
"field-width": "full",
|
|
@@ -3066,7 +3068,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3066
3068
|
})
|
|
3067
3069
|
]),
|
|
3068
3070
|
_: 1
|
|
3069
|
-
}, 8, ["label"]))), 128)) : H.value ? (l(),
|
|
3071
|
+
}, 8, ["label"]))), 128)) : H.value ? (l(), g(e(j), {
|
|
3070
3072
|
key: 1,
|
|
3071
3073
|
tone: "info",
|
|
3072
3074
|
role: "status"
|
|
@@ -3076,14 +3078,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3076
3078
|
]),
|
|
3077
3079
|
_: 1
|
|
3078
3080
|
})) : (l(), $(oe, { key: 2 }, [
|
|
3079
|
-
L.value ? (l(),
|
|
3081
|
+
L.value ? (l(), g(e(j), {
|
|
3080
3082
|
key: 0,
|
|
3081
3083
|
tone: "danger",
|
|
3082
3084
|
role: "alert"
|
|
3083
3085
|
}, {
|
|
3084
3086
|
default: n(() => [
|
|
3085
|
-
S("span",
|
|
3086
|
-
S("span",
|
|
3087
|
+
S("span", Rn, [
|
|
3088
|
+
S("span", In, s(he.value), 1),
|
|
3087
3089
|
v(e(V), {
|
|
3088
3090
|
variant: "secondary",
|
|
3089
3091
|
size: "sm",
|
|
@@ -3098,14 +3100,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3098
3100
|
])
|
|
3099
3101
|
]),
|
|
3100
3102
|
_: 1
|
|
3101
|
-
})) :
|
|
3102
|
-
e(d).error.value ? (l(),
|
|
3103
|
+
})) : b("", !0),
|
|
3104
|
+
e(d).error.value ? (l(), g(e(j), {
|
|
3103
3105
|
key: 1,
|
|
3104
3106
|
tone: "danger",
|
|
3105
3107
|
role: "alert"
|
|
3106
3108
|
}, {
|
|
3107
3109
|
default: n(() => [
|
|
3108
|
-
S("span",
|
|
3110
|
+
S("span", Dn, [
|
|
3109
3111
|
h(s(r.value.setupError), 1),
|
|
3110
3112
|
v(e(V), {
|
|
3111
3113
|
variant: "secondary",
|
|
@@ -3121,41 +3123,41 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3121
3123
|
])
|
|
3122
3124
|
]),
|
|
3123
3125
|
_: 1
|
|
3124
|
-
})) :
|
|
3125
|
-
z.value ? (l(),
|
|
3126
|
+
})) : b("", !0),
|
|
3127
|
+
z.value ? (l(), g(e(j), {
|
|
3126
3128
|
key: 2,
|
|
3127
3129
|
tone: "danger",
|
|
3128
3130
|
role: "alert"
|
|
3129
3131
|
}, {
|
|
3130
3132
|
default: n(() => [
|
|
3131
3133
|
h(s(z.value), 1),
|
|
3132
|
-
e(w) && "reason" in e(w) && e(w).reason ? (l(), $("span",
|
|
3134
|
+
e(w) && "reason" in e(w) && e(w).reason ? (l(), $("span", Un, s(e(w).reason), 1)) : b("", !0)
|
|
3133
3135
|
]),
|
|
3134
3136
|
_: 1
|
|
3135
|
-
})) :
|
|
3136
|
-
D.value ? (l(),
|
|
3137
|
+
})) : b("", !0),
|
|
3138
|
+
D.value ? (l(), g(e(j), {
|
|
3137
3139
|
key: 3,
|
|
3138
3140
|
tone: "warning"
|
|
3139
3141
|
}, {
|
|
3140
3142
|
default: n(() => [
|
|
3141
3143
|
h(s(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
|
|
3142
|
-
e(d).status.value?.reason ? (l(), $("span",
|
|
3144
|
+
e(d).status.value?.reason ? (l(), $("span", Vn, s(e(d).status.value.reason), 1)) : b("", !0)
|
|
3143
3145
|
]),
|
|
3144
3146
|
_: 1
|
|
3145
|
-
})) : Pe.value && !t.admin ? (l(),
|
|
3147
|
+
})) : Pe.value && !t.admin ? (l(), g(ea, {
|
|
3146
3148
|
key: 4,
|
|
3147
3149
|
admin: !1,
|
|
3148
3150
|
locale: t.locale,
|
|
3149
3151
|
files: ""
|
|
3150
|
-
}, null, 8, ["locale"])) :
|
|
3151
|
-
F.value?.disabled ? (l(),
|
|
3152
|
+
}, null, 8, ["locale"])) : b("", !0),
|
|
3153
|
+
F.value?.disabled ? (l(), g(e(j), {
|
|
3152
3154
|
key: 5,
|
|
3153
3155
|
tone: "warning"
|
|
3154
3156
|
}, {
|
|
3155
3157
|
default: n(() => [
|
|
3156
|
-
S("span",
|
|
3158
|
+
S("span", Nn, [
|
|
3157
3159
|
S("span", null, s(u.value.disabled), 1),
|
|
3158
|
-
t.admin ? (l(),
|
|
3160
|
+
t.admin ? (l(), g(e(V), {
|
|
3159
3161
|
key: 0,
|
|
3160
3162
|
variant: "secondary",
|
|
3161
3163
|
size: "sm",
|
|
@@ -3166,12 +3168,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3166
3168
|
h(s(u.value.enable), 1)
|
|
3167
3169
|
]),
|
|
3168
3170
|
_: 1
|
|
3169
|
-
}, 8, ["disabled"])) :
|
|
3171
|
+
}, 8, ["disabled"])) : b("", !0)
|
|
3170
3172
|
])
|
|
3171
3173
|
]),
|
|
3172
3174
|
_: 1
|
|
3173
|
-
})) :
|
|
3174
|
-
U.value && Y.value.some((ae) => ae.status === "reselection-required") ? (l(),
|
|
3175
|
+
})) : b("", !0),
|
|
3176
|
+
U.value && Y.value.some((ae) => ae.status === "reselection-required") ? (l(), g(e(j), {
|
|
3175
3177
|
key: 6,
|
|
3176
3178
|
tone: "warning"
|
|
3177
3179
|
}, {
|
|
@@ -3179,8 +3181,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3179
3181
|
h(s(u.value.reselect), 1)
|
|
3180
3182
|
]),
|
|
3181
3183
|
_: 1
|
|
3182
|
-
})) :
|
|
3183
|
-
O.value || A.value ? (l(),
|
|
3184
|
+
})) : b("", !0),
|
|
3185
|
+
O.value || A.value ? (l(), g(Xe(W.value ? ea : "div"), Qe(pa({ key: 7 }, W.value ? { admin: !0, locale: t.locale, files: !0 } : {})), {
|
|
3184
3186
|
default: n(() => [
|
|
3185
3187
|
v(e(Me), {
|
|
3186
3188
|
direction: "vertical",
|
|
@@ -3188,8 +3190,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3188
3190
|
onSubmit: qe(e(d).submit, ["prevent"])
|
|
3189
3191
|
}, {
|
|
3190
3192
|
default: n(() => [
|
|
3191
|
-
A.value ? (l(), $("p",
|
|
3192
|
-
e(N) ? (l(),
|
|
3193
|
+
A.value ? (l(), $("p", Bn, s(u.value.changeHelp), 1)) : b("", !0),
|
|
3194
|
+
e(N) ? (l(), g(e($e), {
|
|
3193
3195
|
key: 1,
|
|
3194
3196
|
label: u.value.folder,
|
|
3195
3197
|
description: W.value ? u.value.approveHelp : void 0,
|
|
@@ -3205,7 +3207,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3205
3207
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
3206
3208
|
]),
|
|
3207
3209
|
_: 1
|
|
3208
|
-
}, 8, ["label", "description"])) :
|
|
3210
|
+
}, 8, ["label", "description"])) : b("", !0),
|
|
3209
3211
|
v(e($e), {
|
|
3210
3212
|
label: u.value.password,
|
|
3211
3213
|
description: e(P) ? r.value.confirmingHelp : W.value ? r.value.passwordNote : void 0,
|
|
@@ -3226,7 +3228,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3226
3228
|
]),
|
|
3227
3229
|
_: 1
|
|
3228
3230
|
}, 8, ["class", "loading", "disabled"]),
|
|
3229
|
-
A.value ? (l(),
|
|
3231
|
+
A.value ? (l(), g(e(V), {
|
|
3230
3232
|
key: 0,
|
|
3231
3233
|
class: De(ae.afterItem),
|
|
3232
3234
|
type: "button",
|
|
@@ -3238,13 +3240,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3238
3240
|
h(s(u.value.cancelChange), 1)
|
|
3239
3241
|
]),
|
|
3240
3242
|
_: 1
|
|
3241
|
-
}, 8, ["class", "disabled"])) :
|
|
3243
|
+
}, 8, ["class", "disabled"])) : b("", !0)
|
|
3242
3244
|
]),
|
|
3243
3245
|
default: n(() => [
|
|
3244
3246
|
v(e(ze), {
|
|
3245
3247
|
id: "save-password",
|
|
3246
|
-
modelValue: e(
|
|
3247
|
-
"onUpdate:modelValue": pe[1] || (pe[1] = (ae) => Ze(
|
|
3248
|
+
modelValue: e(p),
|
|
3249
|
+
"onUpdate:modelValue": pe[1] || (pe[1] = (ae) => Ze(p) ? p.value = ae : null),
|
|
3248
3250
|
type: "password",
|
|
3249
3251
|
autocomplete: "current-password",
|
|
3250
3252
|
invalid: !!e(C),
|
|
@@ -3258,19 +3260,19 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3258
3260
|
}, 8, ["onSubmit"])
|
|
3259
3261
|
]),
|
|
3260
3262
|
_: 1
|
|
3261
|
-
}, 16)) :
|
|
3262
|
-
U.value && !A.value && !O.value ? (l(!0), $(oe, { key: 8 }, ge(Y.value, (ae) => (l(),
|
|
3263
|
+
}, 16)) : b("", !0),
|
|
3264
|
+
U.value && !A.value && !O.value ? (l(!0), $(oe, { key: 8 }, ge(Y.value, (ae) => (l(), g(e(xe), {
|
|
3263
3265
|
key: ae.key,
|
|
3264
3266
|
label: ce(ae.key),
|
|
3265
3267
|
"field-width": "full",
|
|
3266
3268
|
"data-save-row": "folder"
|
|
3267
3269
|
}, {
|
|
3268
3270
|
default: n(() => [
|
|
3269
|
-
S("div",
|
|
3270
|
-
ae.status === "active" && ae.destination ? (l(),
|
|
3271
|
+
S("div", Ln, [
|
|
3272
|
+
ae.status === "active" && ae.destination ? (l(), g(e(Ue), {
|
|
3271
3273
|
key: 0,
|
|
3272
3274
|
path: ae.destination.path
|
|
3273
|
-
}, null, 8, ["path"])) : (l(), $("span",
|
|
3275
|
+
}, null, 8, ["path"])) : (l(), $("span", On, s(u.value.folderNone), 1)),
|
|
3274
3276
|
v(e(V), {
|
|
3275
3277
|
variant: "secondary",
|
|
3276
3278
|
size: "sm",
|
|
@@ -3282,7 +3284,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3282
3284
|
]),
|
|
3283
3285
|
_: 1
|
|
3284
3286
|
}, 8, ["disabled", "onClick"]),
|
|
3285
|
-
ae.status === "active" && ae.destination ? (l(),
|
|
3287
|
+
ae.status === "active" && ae.destination ? (l(), g(e(V), {
|
|
3286
3288
|
key: 2,
|
|
3287
3289
|
variant: "ghost",
|
|
3288
3290
|
size: "sm",
|
|
@@ -3293,14 +3295,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3293
3295
|
h(s(u.value.revoke), 1)
|
|
3294
3296
|
]),
|
|
3295
3297
|
_: 1
|
|
3296
|
-
}, 8, ["disabled", "onClick"])) :
|
|
3298
|
+
}, 8, ["disabled", "onClick"])) : b("", !0)
|
|
3297
3299
|
])
|
|
3298
3300
|
]),
|
|
3299
3301
|
_: 2
|
|
3300
|
-
}, 1032, ["label"]))), 128)) :
|
|
3302
|
+
}, 1032, ["label"]))), 128)) : b("", !0)
|
|
3301
3303
|
], 64)),
|
|
3302
3304
|
be(ue.$slots, "default", {}, void 0, !0),
|
|
3303
|
-
Z.value ? (l(),
|
|
3305
|
+
Z.value ? (l(), g(ta, {
|
|
3304
3306
|
key: ne.value?.scope,
|
|
3305
3307
|
open: q.value,
|
|
3306
3308
|
"onUpdate:open": pe[2] || (pe[2] = (ae) => q.value = ae),
|
|
@@ -3312,15 +3314,15 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3312
3314
|
onAuthorized: Q,
|
|
3313
3315
|
onRefused: de,
|
|
3314
3316
|
"error-text": t.pickerErrorText
|
|
3315
|
-
}, null, 8, ["open", "provider", "locale", "name", "destination", "error-text"])) :
|
|
3317
|
+
}, null, 8, ["open", "provider", "locale", "name", "destination", "error-text"])) : b("", !0)
|
|
3316
3318
|
]),
|
|
3317
3319
|
_: 3
|
|
3318
3320
|
}, 8, ["title", "description", "aria-busy"]));
|
|
3319
3321
|
}
|
|
3320
|
-
}),
|
|
3322
|
+
}), qn = /* @__PURE__ */ me(Fn, [["__scopeId", "data-v-79ce68f8"]]), Mn = { class: "background-save-panel" }, Kn = {
|
|
3321
3323
|
key: 1,
|
|
3322
3324
|
class: "save-example"
|
|
3323
|
-
},
|
|
3325
|
+
}, Hn = { class: "save-help" }, Xn = { class: "save-actions" }, Wn = /* @__PURE__ */ fe({
|
|
3324
3326
|
__name: "BackgroundSavePanel",
|
|
3325
3327
|
props: {
|
|
3326
3328
|
sdk: {},
|
|
@@ -3333,25 +3335,25 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3333
3335
|
sampleSave: { type: Boolean }
|
|
3334
3336
|
},
|
|
3335
3337
|
emits: ["authorized"],
|
|
3336
|
-
setup(t, { expose:
|
|
3337
|
-
const a = t, i = o, u = _(() => fa(a.locale)), r = _(() => Ea(a.locale)), c = y([]),
|
|
3338
|
+
setup(t, { expose: m, emit: o }) {
|
|
3339
|
+
const a = t, i = o, u = _(() => fa(a.locale)), r = _(() => Ea(a.locale)), c = y([]), f = y(), d = () => (x.value = void 0, f.value?.refresh() ?? Promise.resolve()), p = y(!1), x = y();
|
|
3338
3340
|
async function P(C) {
|
|
3339
|
-
if (
|
|
3340
|
-
|
|
3341
|
+
if (p.value) return;
|
|
3342
|
+
p.value = !0, x.value = void 0;
|
|
3341
3343
|
const E = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (k) => k.toString(16).padStart(2, "0")).join("");
|
|
3342
3344
|
try {
|
|
3343
3345
|
await a.sdk.exportExample({ key: C, job_id: E });
|
|
3344
3346
|
} catch (k) {
|
|
3345
3347
|
x.value = k;
|
|
3346
3348
|
} finally {
|
|
3347
|
-
|
|
3349
|
+
p.value = !1;
|
|
3348
3350
|
}
|
|
3349
3351
|
}
|
|
3350
3352
|
const w = (C) => a.picker?.labels?.[C] ? `${u.value.example}${r.value}${a.picker.labels[C]}` : u.value.example;
|
|
3351
|
-
return
|
|
3352
|
-
v(
|
|
3353
|
+
return m({ refresh: d }), (C, E) => (l(), $("div", Mn, [
|
|
3354
|
+
v(qn, {
|
|
3353
3355
|
ref_key: "settings",
|
|
3354
|
-
ref:
|
|
3356
|
+
ref: f,
|
|
3355
3357
|
sdk: t.sdk,
|
|
3356
3358
|
admin: t.admin,
|
|
3357
3359
|
locale: t.locale,
|
|
@@ -3363,7 +3365,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3363
3365
|
onDestinations: E[1] || (E[1] = (k) => c.value = k.filter((T) => T.status === "active"))
|
|
3364
3366
|
}, {
|
|
3365
3367
|
default: n(() => [
|
|
3366
|
-
x.value ? (l(),
|
|
3368
|
+
x.value ? (l(), g(e(j), {
|
|
3367
3369
|
key: 0,
|
|
3368
3370
|
tone: "danger",
|
|
3369
3371
|
role: "alert"
|
|
@@ -3372,14 +3374,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3372
3374
|
h(s(e(Ye)(x.value, u.value, "save", t.locale, t.ctx?.displayName)), 1)
|
|
3373
3375
|
]),
|
|
3374
3376
|
_: 1
|
|
3375
|
-
})) :
|
|
3376
|
-
t.sampleSave && c.value.length ? (l(), $("div",
|
|
3377
|
-
S("p",
|
|
3378
|
-
S("div",
|
|
3379
|
-
(l(!0), $(oe, null, ge(c.value, (k) => (l(),
|
|
3377
|
+
})) : b("", !0),
|
|
3378
|
+
t.sampleSave && c.value.length ? (l(), $("div", Kn, [
|
|
3379
|
+
S("p", Hn, s(u.value.exampleHelp), 1),
|
|
3380
|
+
S("div", Xn, [
|
|
3381
|
+
(l(!0), $(oe, null, ge(c.value, (k) => (l(), g(e(V), {
|
|
3380
3382
|
key: k.key,
|
|
3381
3383
|
variant: "secondary",
|
|
3382
|
-
disabled:
|
|
3384
|
+
disabled: p.value,
|
|
3383
3385
|
onClick: (T) => P(k.key)
|
|
3384
3386
|
}, {
|
|
3385
3387
|
default: n(() => [
|
|
@@ -3388,33 +3390,33 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3388
3390
|
_: 2
|
|
3389
3391
|
}, 1032, ["disabled", "onClick"]))), 128))
|
|
3390
3392
|
])
|
|
3391
|
-
])) :
|
|
3393
|
+
])) : b("", !0)
|
|
3392
3394
|
]),
|
|
3393
3395
|
_: 1
|
|
3394
3396
|
}, 8, ["sdk", "admin", "locale", "title", "picker", "ctx", "picker-error-text"])
|
|
3395
3397
|
]));
|
|
3396
3398
|
}
|
|
3397
|
-
}),
|
|
3398
|
-
function
|
|
3399
|
-
const { code:
|
|
3400
|
-
return !!Be(t) || typeof
|
|
3399
|
+
}), ho = /* @__PURE__ */ me(Wn, [["__scopeId", "data-v-05618cb8"]]);
|
|
3400
|
+
function Gn(t) {
|
|
3401
|
+
const { code: m, message: o } = t ?? {};
|
|
3402
|
+
return !!Be(t) || typeof m == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(m) || m === "bad_response" && /HTTP 40[13]\b/.test(String(o));
|
|
3401
3403
|
}
|
|
3402
3404
|
const Ka = /* @__PURE__ */ Symbol("authorization");
|
|
3403
|
-
function
|
|
3405
|
+
function Jn() {
|
|
3404
3406
|
const t = Ee(Ka, void 0);
|
|
3405
3407
|
if (!t) throw Error("authorization controls must be placed inside AuthorizationGate");
|
|
3406
3408
|
return t;
|
|
3407
3409
|
}
|
|
3408
|
-
const
|
|
3410
|
+
const Yn = { class: "authorization-content" }, Qn = ["aria-busy", "data-authorization-state"], Zn = { class: "authorization-body" }, jn = /* @__PURE__ */ fe({
|
|
3409
3411
|
__name: "AuthorizationGate",
|
|
3410
3412
|
props: {
|
|
3411
3413
|
ctx: {},
|
|
3412
3414
|
name: {}
|
|
3413
3415
|
},
|
|
3414
3416
|
emits: ["ready"],
|
|
3415
|
-
setup(t, { emit:
|
|
3416
|
-
const o = t, a =
|
|
3417
|
-
let
|
|
3417
|
+
setup(t, { emit: m }) {
|
|
3418
|
+
const o = t, a = m, i = y(), u = y(), r = y(!1), c = y(!1), f = y(!1), d = _t();
|
|
3419
|
+
let p = [], x = !1, P = 0, w = !1, C, E = 0, k;
|
|
3418
3420
|
const T = _(() => ja(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")), N = _(() => i.value || u.value), te = _(() => N.value?.state === "authorization_required"), F = _(() => ["helper_untrusted", "cli_untrusted"].includes(N.value?.reason || "")), Y = _(() => te.value && !F.value), B = _(() => N.value?.state === "unavailable" ? Ce(N.value) : void 0), K = _(() => B.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[N.value?.reason ?? ""] ?? "unavailable"), L = _(() => da({ code: N.value?.reason }, o.ctx.locale, o.name ?? o.ctx.displayName)), R = _(() => L.value?.title ?? (N.value ? te.value ? T.value("title") : N.value.state === "ready" ? T.value("ready") : N.value.state === "not_admin" ? T.value("not_admin.title") : N.value.state === "session_expired" ? T.value("session_expired.title") : T.value(K.value + ".title") : T.value("checking"))), A = _(() => L.value?.message ?? (te.value ? T.value("purpose") : N.value?.state === "not_admin" ? T.value("not_admin.body") : N.value?.state === "session_expired" ? T.value("session_expired.body") : N.value?.state === "unavailable" ? T.value(K.value + ".body") : T.value("purpose"))), q = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], M = _(() => q.includes(N.value?.reason || "") ? N.value.reason : "unknown"), se = _(() => F.value ? "next.reinstall" : M.value === "grant_missing" ? "next.install" : M.value === "upgrade_reapproval" || M.value === "grant_incompatible" ? "next.update" : "next.repair");
|
|
3419
3421
|
function H(J) {
|
|
3420
3422
|
if (!J || J.command !== "authorization" || J.schema_version !== 1 || !["ready", "authorization_required", "not_admin", "session_expired", "unavailable"].includes(J.state) || J.reason === "upgrade_reapproval" && J.state !== "authorization_required") throw Error("invalid status");
|
|
@@ -3423,7 +3425,7 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3423
3425
|
const G = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
|
|
3424
3426
|
function le(J) {
|
|
3425
3427
|
const { code: ie } = J ?? {}, ne = Ce(J);
|
|
3426
|
-
return ne ? ne === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie : Be(J) ? Be(J) :
|
|
3428
|
+
return ne ? ne === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie : Be(J) ? Be(J) : Gn(J) ? "access_denied" : typeof ie == "string" && G.includes(ie) || ie === void 0 ? "service_unavailable" : "check_failed";
|
|
3427
3429
|
}
|
|
3428
3430
|
let re;
|
|
3429
3431
|
function ee() {
|
|
@@ -3433,7 +3435,7 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3433
3435
|
}
|
|
3434
3436
|
const X = [1e3, 3e3];
|
|
3435
3437
|
async function Q(J) {
|
|
3436
|
-
const ie = J === "status" && !
|
|
3438
|
+
const ie = J === "status" && !f.value ? X : [];
|
|
3437
3439
|
for (let ne = 0; ; ne++) {
|
|
3438
3440
|
try {
|
|
3439
3441
|
const ye = H(await o.ctx.authorization?.[J]());
|
|
@@ -3451,22 +3453,22 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3451
3453
|
try {
|
|
3452
3454
|
const ne = await Q(J);
|
|
3453
3455
|
if (x || ie !== P) return;
|
|
3454
|
-
i.value = ne,
|
|
3456
|
+
i.value = ne, f.value = ne.state !== "ready", ne.state === "ready" && he(!0), ne.state === "ready" && a("ready");
|
|
3455
3457
|
} catch (ne) {
|
|
3456
|
-
!x && ie === P && (i.value = ne.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : u.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: le(ne) }, c.value = !L.value && K.value === "unavailable",
|
|
3458
|
+
!x && ie === P && (i.value = ne.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : u.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: le(ne) }, c.value = !L.value && K.value === "unavailable", f.value = !0);
|
|
3457
3459
|
} finally {
|
|
3458
3460
|
!x && ie === P && (r.value = !1, u.value = void 0, w ? (w = !1, de("status")) : ee());
|
|
3459
3461
|
}
|
|
3460
3462
|
}
|
|
3461
3463
|
function he(J) {
|
|
3462
|
-
const ie =
|
|
3463
|
-
|
|
3464
|
+
const ie = p;
|
|
3465
|
+
p = [], ie.forEach((ne) => ne(J));
|
|
3464
3466
|
}
|
|
3465
3467
|
function Ae(J) {
|
|
3466
|
-
|
|
3468
|
+
f.value = J, J || he(!1);
|
|
3467
3469
|
}
|
|
3468
3470
|
function _e() {
|
|
3469
|
-
return i.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (
|
|
3471
|
+
return i.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (f.value = !0), new Promise((J) => p.push(J)));
|
|
3470
3472
|
}
|
|
3471
3473
|
return Le(Ka, { state: _(() => i.value?.state ?? "checking"), requireAuthorization: _e, text: T, busy: r, canManage: () => !!o.ctx.authorization?.canManage?.(), revoke: () => de("revoke") }), Se(() => {
|
|
3472
3474
|
k = o.ctx.reopen(() => {
|
|
@@ -3475,17 +3477,16 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3475
3477
|
}), Ra(() => {
|
|
3476
3478
|
x = !0, P++, clearTimeout(C), he(!1), typeof k == "function" && k();
|
|
3477
3479
|
}), (J, ie) => (l(), $(oe, null, [
|
|
3478
|
-
S("div",
|
|
3480
|
+
S("div", Yn, [
|
|
3479
3481
|
be(J.$slots, "default", {}, void 0, !0)
|
|
3480
3482
|
]),
|
|
3481
3483
|
v(e(Ge), {
|
|
3482
|
-
open:
|
|
3484
|
+
open: f.value && !e(d),
|
|
3483
3485
|
title: R.value,
|
|
3484
|
-
width: "480px",
|
|
3485
3486
|
"onUpdate:open": Ae
|
|
3486
3487
|
}, {
|
|
3487
3488
|
footer: n(() => [
|
|
3488
|
-
Y.value ? (l(),
|
|
3489
|
+
Y.value ? (l(), g(e(V), {
|
|
3489
3490
|
key: 0,
|
|
3490
3491
|
variant: "primary",
|
|
3491
3492
|
loading: r.value,
|
|
@@ -3496,7 +3497,7 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3496
3497
|
h(s(r.value ? T.value("authorizing") : T.value("authorize")), 1)
|
|
3497
3498
|
]),
|
|
3498
3499
|
_: 1
|
|
3499
|
-
}, 8, ["loading", "disabled"])) : (l(),
|
|
3500
|
+
}, 8, ["loading", "disabled"])) : (l(), g(e(V), {
|
|
3500
3501
|
key: 1,
|
|
3501
3502
|
variant: "primary",
|
|
3502
3503
|
loading: r.value,
|
|
@@ -3515,8 +3516,8 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3515
3516
|
"aria-busy": r.value,
|
|
3516
3517
|
"data-authorization-state": i.value?.state || "checking"
|
|
3517
3518
|
}, [
|
|
3518
|
-
S("p",
|
|
3519
|
-
te.value ? (l(),
|
|
3519
|
+
S("p", Zn, s(A.value), 1),
|
|
3520
|
+
te.value ? (l(), g(e(j), {
|
|
3520
3521
|
key: 0,
|
|
3521
3522
|
class: "authorization-status",
|
|
3522
3523
|
tone: ["grant_missing", "upgrade_reapproval"].includes(M.value) ? "info" : "warning",
|
|
@@ -3526,8 +3527,8 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3526
3527
|
h(s(T.value(se.value)), 1)
|
|
3527
3528
|
]),
|
|
3528
3529
|
_: 1
|
|
3529
|
-
}, 8, ["tone", "title"])) :
|
|
3530
|
-
c.value ? (l(),
|
|
3530
|
+
}, 8, ["tone", "title"])) : b("", !0),
|
|
3531
|
+
c.value ? (l(), g(e(j), {
|
|
3531
3532
|
key: 1,
|
|
3532
3533
|
class: "authorization-failed",
|
|
3533
3534
|
tone: "warning"
|
|
@@ -3536,21 +3537,21 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3536
3537
|
h(s(T.value("failed")), 1)
|
|
3537
3538
|
]),
|
|
3538
3539
|
_: 1
|
|
3539
|
-
})) :
|
|
3540
|
-
], 8,
|
|
3540
|
+
})) : b("", !0)
|
|
3541
|
+
], 8, Qn)
|
|
3541
3542
|
]),
|
|
3542
3543
|
_: 1
|
|
3543
3544
|
}, 8, ["open", "title"])
|
|
3544
3545
|
], 64));
|
|
3545
3546
|
}
|
|
3546
|
-
}),
|
|
3547
|
+
}), ko = /* @__PURE__ */ me(jn, [["__scopeId", "data-v-42db0617"]]), eo = { class: "authorization-setting" }, ao = {
|
|
3547
3548
|
class: "authorization-state",
|
|
3548
3549
|
role: "status"
|
|
3549
|
-
},
|
|
3550
|
+
}, to = { class: "authorization-revoke-body" }, lo = /* @__PURE__ */ fe({
|
|
3550
3551
|
__name: "AuthorizationSettings",
|
|
3551
3552
|
setup(t) {
|
|
3552
|
-
const { state:
|
|
3553
|
-
return (d,
|
|
3553
|
+
const { state: m, requireAuthorization: o, text: a, busy: i, canManage: u, revoke: r } = Jn(), c = y(!1), f = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
|
|
3554
|
+
return (d, p) => (l(), $(oe, null, [
|
|
3554
3555
|
v(e(ke), {
|
|
3555
3556
|
title: e(a)("settings.title"),
|
|
3556
3557
|
collapsible: !1
|
|
@@ -3562,35 +3563,35 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3562
3563
|
align: "center"
|
|
3563
3564
|
}, {
|
|
3564
3565
|
default: n(() => [
|
|
3565
|
-
S("div",
|
|
3566
|
-
S("span",
|
|
3567
|
-
e(
|
|
3566
|
+
S("div", eo, [
|
|
3567
|
+
S("span", ao, [
|
|
3568
|
+
e(m) === "ready" ? (l(), g(e(Ia), {
|
|
3568
3569
|
key: 0,
|
|
3569
3570
|
size: 16,
|
|
3570
3571
|
"aria-hidden": "true"
|
|
3571
|
-
})) :
|
|
3572
|
-
h(s(e(a)(
|
|
3572
|
+
})) : b("", !0),
|
|
3573
|
+
h(s(e(a)(f[e(m)])), 1)
|
|
3573
3574
|
]),
|
|
3574
|
-
e(
|
|
3575
|
+
e(m) === "ready" && e(u)() ? (l(), g(e(V), {
|
|
3575
3576
|
key: 0,
|
|
3576
3577
|
variant: "secondary",
|
|
3577
3578
|
disabled: e(i),
|
|
3578
|
-
onClick:
|
|
3579
|
+
onClick: p[0] || (p[0] = (x) => c.value = !0)
|
|
3579
3580
|
}, {
|
|
3580
3581
|
default: n(() => [
|
|
3581
3582
|
h(s(e(a)("revoke")), 1)
|
|
3582
3583
|
]),
|
|
3583
3584
|
_: 1
|
|
3584
|
-
}, 8, ["disabled"])) : e(
|
|
3585
|
+
}, 8, ["disabled"])) : e(m) !== "ready" && e(m) !== "checking" ? (l(), g(e(V), {
|
|
3585
3586
|
key: 1,
|
|
3586
3587
|
variant: "secondary",
|
|
3587
|
-
onClick:
|
|
3588
|
+
onClick: p[1] || (p[1] = (x) => e(o)())
|
|
3588
3589
|
}, {
|
|
3589
3590
|
default: n(() => [
|
|
3590
3591
|
h(s(e(a)("settings.details")), 1)
|
|
3591
3592
|
]),
|
|
3592
3593
|
_: 1
|
|
3593
|
-
})) :
|
|
3594
|
+
})) : b("", !0)
|
|
3594
3595
|
])
|
|
3595
3596
|
]),
|
|
3596
3597
|
_: 1
|
|
@@ -3600,14 +3601,13 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3600
3601
|
}, 8, ["title"]),
|
|
3601
3602
|
v(e(Ge), {
|
|
3602
3603
|
open: c.value,
|
|
3603
|
-
"onUpdate:open":
|
|
3604
|
-
title: e(a)("revoke.title")
|
|
3605
|
-
width: "480px"
|
|
3604
|
+
"onUpdate:open": p[4] || (p[4] = (x) => c.value = x),
|
|
3605
|
+
title: e(a)("revoke.title")
|
|
3606
3606
|
}, {
|
|
3607
3607
|
footer: n(() => [
|
|
3608
3608
|
v(e(V), {
|
|
3609
3609
|
variant: "secondary",
|
|
3610
|
-
onClick:
|
|
3610
|
+
onClick: p[2] || (p[2] = (x) => c.value = !1)
|
|
3611
3611
|
}, {
|
|
3612
3612
|
default: n(() => [
|
|
3613
3613
|
h(s(e(a)("cancel")), 1)
|
|
@@ -3617,7 +3617,7 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3617
3617
|
v(e(V), {
|
|
3618
3618
|
variant: "danger",
|
|
3619
3619
|
disabled: e(i),
|
|
3620
|
-
onClick:
|
|
3620
|
+
onClick: p[3] || (p[3] = (x) => {
|
|
3621
3621
|
c.value = !1, e(r)();
|
|
3622
3622
|
})
|
|
3623
3623
|
}, {
|
|
@@ -3628,97 +3628,97 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3628
3628
|
}, 8, ["disabled"])
|
|
3629
3629
|
]),
|
|
3630
3630
|
default: n(() => [
|
|
3631
|
-
S("p",
|
|
3631
|
+
S("p", to, s(e(a)("revoke.body")), 1)
|
|
3632
3632
|
]),
|
|
3633
3633
|
_: 1
|
|
3634
3634
|
}, 8, ["open", "title"])
|
|
3635
3635
|
], 64));
|
|
3636
3636
|
}
|
|
3637
|
-
}),
|
|
3637
|
+
}), wo = /* @__PURE__ */ me(lo, [["__scopeId", "data-v-fc7dce79"]]);
|
|
3638
3638
|
export {
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3639
|
+
ro as AppShell,
|
|
3640
|
+
ko as AuthorizationGate,
|
|
3641
|
+
wo as AuthorizationSettings,
|
|
3642
|
+
yo as BackgroundPanel,
|
|
3643
|
+
ho as BackgroundSavePanel,
|
|
3644
|
+
qn as BackgroundSaveSettings,
|
|
3645
|
+
Co as DEFAULT_REQUEST_TIMEOUT,
|
|
3646
|
+
go as DelegatePanel,
|
|
3647
|
+
bo as ExecutorApproval,
|
|
3648
|
+
tl as ExecutorNotice,
|
|
3649
3649
|
Ua as ExecutorPreloadKey,
|
|
3650
3650
|
La as ExecutorSettings,
|
|
3651
3651
|
We as ExecutorSetupKey,
|
|
3652
|
-
|
|
3652
|
+
$o as FILE_STATION_APP,
|
|
3653
3653
|
Ma as FileBrowser,
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3654
|
+
fo as FilesPage,
|
|
3655
|
+
So as LIFECYCLE_RETRY_MAX_MS,
|
|
3656
|
+
Po as LIFECYCLE_STARTING_RETRY_MAX_MS,
|
|
3657
|
+
mo as LoginPage,
|
|
3658
3658
|
ta as NasPicker,
|
|
3659
|
-
|
|
3659
|
+
co as PageActions,
|
|
3660
3660
|
Oa as PageActionsTarget,
|
|
3661
|
-
|
|
3661
|
+
vo as PageInfo,
|
|
3662
3662
|
Fa as PageInfoTarget,
|
|
3663
|
-
|
|
3664
|
-
|
|
3663
|
+
po as PortalSettings,
|
|
3664
|
+
Eo as activePage,
|
|
3665
3665
|
Be as appDenial,
|
|
3666
3666
|
Ce as appLifecycle,
|
|
3667
3667
|
da as appRefusal,
|
|
3668
|
-
|
|
3668
|
+
To as authorizationCatalogs,
|
|
3669
3669
|
ja as authorizationCopy,
|
|
3670
|
-
|
|
3670
|
+
zo as backgroundCatalogs,
|
|
3671
3671
|
Wa as backgroundCopy,
|
|
3672
3672
|
Ja as backgroundErrorCopy,
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3673
|
+
Ao as bridgeCatalogs,
|
|
3674
|
+
Ro as bridgeErrorCopy,
|
|
3675
|
+
Io as catalogs,
|
|
3676
|
+
Do as clientTimeout,
|
|
3677
3677
|
Ga as createBackgroundPickerProvider,
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3678
|
+
Uo as createBackgroundSaveFacade,
|
|
3679
|
+
Vo as createDsmSession,
|
|
3680
|
+
No as createFileTransfers,
|
|
3681
3681
|
Pa as createNasProvider,
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3682
|
+
Bo as createPortalAccess,
|
|
3683
|
+
uo as createSession,
|
|
3684
|
+
Lo as createStandaloneContext,
|
|
3685
|
+
Oo as createStandaloneHost,
|
|
3686
|
+
Fo as decodeResponse,
|
|
3687
|
+
qo as delegateCatalogs,
|
|
3688
3688
|
Ve as delegateCopy,
|
|
3689
|
-
|
|
3689
|
+
Mo as encodeRequest,
|
|
3690
3690
|
Qa as errorCopy,
|
|
3691
|
-
|
|
3691
|
+
Ko as fileStationPath,
|
|
3692
3692
|
Je as format,
|
|
3693
|
-
|
|
3693
|
+
Ho as identityCatalogs,
|
|
3694
3694
|
Xa as identityCopy,
|
|
3695
3695
|
$a as isFullPage,
|
|
3696
3696
|
Ea as labelSeparator,
|
|
3697
3697
|
Ne as lifecycleCopy,
|
|
3698
3698
|
Ya as lifecycleRefusal,
|
|
3699
3699
|
ca as lifecycleRetryDelay,
|
|
3700
|
-
|
|
3701
|
-
|
|
3700
|
+
Xo as mergeCatalogs,
|
|
3701
|
+
Wo as nasCatalogs,
|
|
3702
3702
|
Te as nasCopy,
|
|
3703
3703
|
Sa as nasErrorCopy,
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3704
|
+
Go as openFileInFileStation,
|
|
3705
|
+
Jo as openFolderInFileStation,
|
|
3706
|
+
Yo as portalCatalogs,
|
|
3707
|
+
Qo as portalMessages,
|
|
3708
|
+
Zo as protocolCodes,
|
|
3709
|
+
jo as protocolOps,
|
|
3710
|
+
es as protocolSchemas,
|
|
3711
3711
|
ba as requestKey,
|
|
3712
|
-
|
|
3712
|
+
as as saveCatalogs,
|
|
3713
3713
|
fa as saveCopy,
|
|
3714
3714
|
Ye as saveError,
|
|
3715
3715
|
Za as scopedPicker,
|
|
3716
|
-
|
|
3716
|
+
ts as shellCatalogs,
|
|
3717
3717
|
sa as shellCopy,
|
|
3718
|
-
|
|
3718
|
+
ls as shellPages,
|
|
3719
3719
|
va as uiLocale,
|
|
3720
|
-
|
|
3721
|
-
|
|
3720
|
+
ns as uiLocales,
|
|
3721
|
+
Jn as useAuthorization,
|
|
3722
3722
|
_t as useExecutorPreload,
|
|
3723
3723
|
Va as useExecutorSetup,
|
|
3724
3724
|
$t as useNasRequest
|