@synopackageland/sdk 0.12.0 → 0.12.2
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/README.md +34 -0
- 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 +2520 -2487
- package/dist/src/context.d.ts +3 -0
- 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/index.d.ts +1 -0
- package/dist/src/launch.d.ts +23 -0
- package/dist/src/protocol/v1.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/vue.js +752 -744
- package/package.json +2 -2
- 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
|
-
import { appRefusal as da, appDenial as
|
|
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
|
|
1
|
+
import { appRefusal as da, appDenial as Ne, delegateCopy as Ve, appLifecycle as Ce, lifecycleRetryDelay as ca, uiLocale as va, lifecycleCopy as Le, 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 Co, FILE_STATION_APP as $o, LIFECYCLE_RETRY_MAX_MS as So, LIFECYCLE_STARTING_RETRY_MAX_MS as Po, MAX_LAUNCH_ROUTE as Eo, activePage as To, authorizationCatalogs as zo, backgroundCatalogs as Ao, bridgeCatalogs as Ro, bridgeErrorCopy as Io, catalogs as Do, clientTimeout as Uo, createBackgroundSaveFacade as Vo, createDsmSession as Lo, createFileTransfers as No, createPortalAccess as Bo, createStandaloneContext as Oo, createStandaloneHost as Fo, decodeResponse as qo, delegateCatalogs as Mo, dsmLaunchURL as Ko, encodeRequest as Ho, fileStationPath as Xo, followLaunchRoute as Wo, identityCatalogs as Go, launchRoute as Jo, mergeCatalogs as Yo, nasCatalogs as Qo, openFileInFileStation as Zo, openFolderInFileStation as jo, portalCatalogs as es, portalMessages as as, protocolCodes as ts, protocolOps as ls, protocolSchemas as ns, saveCatalogs as os, shellCatalogs as ss, shellPages as is, uiLocales as us } 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 Be, 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,89 +24,89 @@ 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
|
-
function P(
|
|
41
|
-
|
|
40
|
+
function P(N = "") {
|
|
41
|
+
f++, x(), u.value = void 0, r.value = N;
|
|
42
42
|
}
|
|
43
|
-
function w(
|
|
44
|
-
const K =
|
|
45
|
-
return c || !K ? !1 : (P(),
|
|
43
|
+
function w(N) {
|
|
44
|
+
const K = Ne(N);
|
|
45
|
+
return c || !K ? !1 : (P(), m.value = K, !0);
|
|
46
46
|
}
|
|
47
|
-
async function C(
|
|
48
|
-
const
|
|
47
|
+
async function C(N, K) {
|
|
48
|
+
const B = f;
|
|
49
49
|
try {
|
|
50
|
-
return await t.call(
|
|
50
|
+
return await t.call(N, K);
|
|
51
51
|
} catch (R) {
|
|
52
|
-
throw
|
|
52
|
+
throw B === f && w(R), R;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
function E(
|
|
55
|
+
function E(N) {
|
|
56
56
|
if (c) return;
|
|
57
|
-
const K = Date.parse(
|
|
57
|
+
const K = Date.parse(N.expiresAt) - Date.now();
|
|
58
58
|
if (!Number.isFinite(K) || K <= 0) {
|
|
59
59
|
P("expired");
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
x(),
|
|
63
|
-
const
|
|
64
|
-
|
|
62
|
+
x(), m.value = void 0, u.value = N, r.value = "", d = setTimeout(() => P("expired"), K);
|
|
63
|
+
const B = f;
|
|
64
|
+
p = setTimeout(async () => {
|
|
65
65
|
try {
|
|
66
66
|
const R = await C("identity.session");
|
|
67
|
-
!c &&
|
|
67
|
+
!c && f === B && E(R);
|
|
68
68
|
} catch (R) {
|
|
69
|
-
!c &&
|
|
69
|
+
!c && f === B && !w(R) && P("expired");
|
|
70
70
|
}
|
|
71
71
|
}, Math.min(6e4, K));
|
|
72
72
|
}
|
|
73
73
|
async function k() {
|
|
74
74
|
try {
|
|
75
|
-
const
|
|
75
|
+
const N = await C("identity.status");
|
|
76
76
|
if (c) return;
|
|
77
|
-
if (
|
|
77
|
+
if (m.value = void 0, a.value = N.enabled === !0, a.value)
|
|
78
78
|
try {
|
|
79
79
|
E(await C("identity.session", { bootstrap: !0 }));
|
|
80
80
|
} catch (K) {
|
|
81
|
-
!c && !
|
|
81
|
+
!c && !Ne(K) && P();
|
|
82
82
|
}
|
|
83
|
-
} catch (
|
|
83
|
+
} catch (N) {
|
|
84
84
|
if (c) return;
|
|
85
|
-
const K =
|
|
86
|
-
a.value = !
|
|
85
|
+
const K = N?.code;
|
|
86
|
+
a.value = !Ne(N) && !["unknown_method", "session_required"].includes(K || ""), a.value && (r.value = "unavailable");
|
|
87
87
|
} finally {
|
|
88
88
|
c || (i.value = !0);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
async function T(
|
|
92
|
-
const
|
|
91
|
+
async function T(N, K) {
|
|
92
|
+
const B = f;
|
|
93
93
|
try {
|
|
94
|
-
const R = await t.call(
|
|
95
|
-
if (c || a.value &&
|
|
94
|
+
const R = await t.call(N, K);
|
|
95
|
+
if (c || a.value && B !== f) throw { code: "session_required" };
|
|
96
96
|
return R;
|
|
97
97
|
} catch (R) {
|
|
98
|
-
|
|
98
|
+
B === f && w(R);
|
|
99
99
|
const A = R?.code;
|
|
100
|
-
throw !c &&
|
|
100
|
+
throw !c && B === f && a.value && ["session_required", "session_revalidation_required"].includes(A || "") && P(A === "session_revalidation_required" ? "revalidate" : "expired"), R;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
async function N
|
|
104
|
-
const R = await C("identity.login", { account:
|
|
105
|
-
c || (
|
|
103
|
+
async function L(N, K, B) {
|
|
104
|
+
const R = await C("identity.login", { account: N, password: K, otp: B });
|
|
105
|
+
c || (f++, E(R));
|
|
106
106
|
}
|
|
107
107
|
async function te() {
|
|
108
|
-
const
|
|
109
|
-
c || (
|
|
108
|
+
const N = await C("identity.session", { bootstrap: !0 });
|
|
109
|
+
c || (f++, E(N));
|
|
110
110
|
}
|
|
111
111
|
async function F() {
|
|
112
112
|
await C("identity.logout"), c || P();
|
|
@@ -114,45 +114,45 @@ function io(t) {
|
|
|
114
114
|
function Y() {
|
|
115
115
|
c = !0, P();
|
|
116
116
|
}
|
|
117
|
-
return { enabled: a, ready: i, subject: u, notice: r, denied: o, start: k, call: T, login:
|
|
117
|
+
return { enabled: a, ready: i, subject: u, notice: r, denied: o, start: k, call: T, login: L, 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,38 +162,38 @@ 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
|
-
function
|
|
169
|
-
return Array.isArray(t) && t.some((
|
|
170
|
-
const o =
|
|
171
|
-
return o.type === et ? !1 : o.type === at ? String(o.children).trim() !== "" : o.type === oe ?
|
|
168
|
+
function La(t) {
|
|
169
|
+
return Array.isArray(t) && t.some((m) => {
|
|
170
|
+
const o = m;
|
|
171
|
+
return o.type === et ? !1 : o.type === at ? String(o.children).trim() !== "" : o.type === oe ? La(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
|
|
192
|
-
const o = Va(), a = _(() => Ve(t.locale)), i = y(), u = y(""), r = y(!1), c = y(!1),
|
|
191
|
+
function Na(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
|
-
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]),
|
|
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]), L = _(() => !E.value || !!w.value && T.value.some((M) => M.value === w.value)), te = _(() => E.value && !P.value?.selection);
|
|
197
197
|
let F = !1;
|
|
198
198
|
async function Y(M) {
|
|
199
199
|
const se = M ?? await o.status();
|
|
@@ -213,22 +213,22 @@ function Ba(t, p) {
|
|
|
213
213
|
}
|
|
214
214
|
C.value = G, w.value = H.selection?.scope ?? H.preselection ?? "";
|
|
215
215
|
}
|
|
216
|
-
async function
|
|
216
|
+
async function N(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
|
}
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
const K = () =>
|
|
229
|
-
async function
|
|
230
|
-
if (!t.admin || r.value || !u.value || !
|
|
231
|
-
r.value = !0,
|
|
228
|
+
const K = () => N();
|
|
229
|
+
async function B() {
|
|
230
|
+
if (!t.admin || r.value || !u.value || !L.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()) : B();
|
|
258
258
|
}
|
|
259
259
|
async function A(M) {
|
|
260
260
|
for (const se = Date.now() + Rt; !F; await new Promise((H) => setTimeout(H, It))) {
|
|
@@ -269,16 +269,16 @@ function Ba(t, p) {
|
|
|
269
269
|
return Se(() => {
|
|
270
270
|
o.subscribe?.((M) => {
|
|
271
271
|
!F && !je(M) && (i.value = M);
|
|
272
|
-
}),
|
|
272
|
+
}), N(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: L, needsScope: te, refresh: K, authorize: B, 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()));
|
|
@@ -292,10 +292,10 @@ function Ke(t, p) {
|
|
|
292
292
|
const Dt = ["data-audience"], Ut = {
|
|
293
293
|
class: "executor-consent-icon",
|
|
294
294
|
"aria-hidden": "true"
|
|
295
|
-
}, Vt = { class: "executor-consent-body" },
|
|
295
|
+
}, Vt = { class: "executor-consent-body" }, Lt = { class: "executor-consent-head" }, Nt = {
|
|
296
296
|
class: "executor-consent-title",
|
|
297
297
|
"data-consent-title": ""
|
|
298
|
-
},
|
|
298
|
+
}, Bt = {
|
|
299
299
|
class: "executor-consent-lead",
|
|
300
300
|
"data-consent-lead": ""
|
|
301
301
|
}, Ot = {
|
|
@@ -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": "",
|
|
@@ -332,26 +335,27 @@ const Dt = ["data-audience"], Ut = {
|
|
|
332
335
|
}, null, 8, ["size"])
|
|
333
336
|
]),
|
|
334
337
|
S("div", Vt, [
|
|
335
|
-
S("div",
|
|
336
|
-
S("p",
|
|
337
|
-
S("p",
|
|
338
|
-
t.admin ?
|
|
338
|
+
S("div", Lt, [
|
|
339
|
+
S("p", Nt, s(t.admin ? o.value.consentTitle : o.value.consentTitleUser), 1),
|
|
340
|
+
S("p", Bt, s(i.value), 1),
|
|
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: L, canConfirm: te, needsScope: F, refresh: Y, submit: N, explain: K } = Na(a, () => i("confirmed")), B = _(() => 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 } })[B.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,28 +431,28 @@ 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"
|
|
445
449
|
}, {
|
|
446
450
|
default: n(() => [
|
|
447
|
-
h(s(e(
|
|
451
|
+
h(s(e(Le)(A.value, t.locale)), 1)
|
|
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,15 +465,15 @@ 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
|
}, {
|
|
469
473
|
default: n(() => [
|
|
470
474
|
S("span", {
|
|
471
475
|
role: "status",
|
|
472
|
-
"data-executor-status":
|
|
476
|
+
"data-executor-status": B.value
|
|
473
477
|
}, [
|
|
474
478
|
v(e(ia), {
|
|
475
479
|
tone: R.value.tone
|
|
@@ -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
|
-
|
|
514
|
+
}, 8, ["label"])) : b("", !0)
|
|
515
|
+
])) : b("", !0),
|
|
516
|
+
B.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,16 +530,16 @@ 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(L) } : {})), {
|
|
531
535
|
default: n(() => [
|
|
532
536
|
v(e(Me), {
|
|
533
537
|
direction: "vertical",
|
|
534
538
|
class: "executor-form",
|
|
535
|
-
onSubmit: qe(e(
|
|
539
|
+
onSubmit: qe(e(N), ["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
|
-
}),
|
|
603
|
+
}), Ba = /* @__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
|
|
614
|
-
a &&
|
|
615
|
-
const i = y("checking"), u = y(), r = y(!1), c = _(() =>
|
|
616
|
-
let
|
|
617
|
+
const m = t, o = _(() => Ve(m.locale)), a = Ee(We, void 0) ?? m.ctx.executor;
|
|
618
|
+
a && Be(We, a);
|
|
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,54 +636,54 @@ 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"
|
|
649
653
|
}, {
|
|
650
654
|
default: n(() => [
|
|
651
|
-
h(s(e(
|
|
655
|
+
h(s(e(Le)(u.value, t.locale)), 1)
|
|
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",
|
|
664
|
-
onClick: T[0] || (T[0] = (
|
|
668
|
+
onClick: T[0] || (T[0] = (L) => r.value = !0)
|
|
665
669
|
}, {
|
|
666
670
|
default: n(() => [
|
|
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
|
-
"onUpdate:open": T[1] || (T[1] = (
|
|
683
|
+
"onUpdate:open": T[1] || (T[1] = (L) => r.value = L)
|
|
680
684
|
}, {
|
|
681
685
|
default: n(() => [
|
|
682
|
-
v(
|
|
686
|
+
v(Ba, {
|
|
683
687
|
admin: !0,
|
|
684
688
|
locale: t.locale,
|
|
685
689
|
ctx: d.value,
|
|
@@ -689,16 +693,16 @@ const Dt = ["data-audience"], Ut = {
|
|
|
689
693
|
}, null, 8, ["locale", "ctx", "purpose"])
|
|
690
694
|
]),
|
|
691
695
|
_: 1
|
|
692
|
-
}, 8, ["open", "title"])) :
|
|
693
|
-
])) :
|
|
696
|
+
}, 8, ["open", "title"])) : b("", !0)
|
|
697
|
+
])) : b("", !0);
|
|
694
698
|
}
|
|
695
|
-
}),
|
|
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 = {
|
|
696
700
|
ref: "page-info",
|
|
697
701
|
class: "app-page-info"
|
|
698
|
-
},
|
|
702
|
+
}, ol = {
|
|
699
703
|
ref: "page-actions",
|
|
700
704
|
class: "app-page-actions"
|
|
701
|
-
},
|
|
705
|
+
}, sl = ["hidden"], il = { class: "app-page-content" }, ul = /* @__PURE__ */ fe({
|
|
702
706
|
__name: "AppShell",
|
|
703
707
|
props: {
|
|
704
708
|
locale: {},
|
|
@@ -716,17 +720,17 @@ const Dt = ["data-audience"], Ut = {
|
|
|
716
720
|
appRoot: { type: Boolean }
|
|
717
721
|
},
|
|
718
722
|
emits: ["update:modelValue"],
|
|
719
|
-
setup(t, { emit:
|
|
720
|
-
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((B) => B.id === o.modelValue)), f = _(() => c.value?.title ?? i.value[o.modelValue] ?? i.value.status), d = He("scroller"), p = _(() => o.pages.some((B) => typeof B != "string"));
|
|
721
725
|
Oe(() => o.modelValue, () => {
|
|
722
|
-
|
|
726
|
+
p.value && !o.keepScroll && d.value && (d.value.$el.scrollTop = 0);
|
|
723
727
|
}, { flush: "post" });
|
|
724
|
-
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 = (
|
|
725
|
-
function
|
|
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 = (B, { slots: R }) => R.default?.(), T = _(() => o.ctx !== void 0 && !C.value);
|
|
729
|
+
function L() {
|
|
726
730
|
o.ctx?.host?.activateWindow?.();
|
|
727
731
|
}
|
|
728
732
|
const te = He("layout"), F = y({ brand: !1, user: !1 });
|
|
729
|
-
Oe([C, te], (
|
|
733
|
+
Oe([C, te], (B, R, A) => {
|
|
730
734
|
const q = te.value?.$el;
|
|
731
735
|
if (!C.value || !q) {
|
|
732
736
|
F.value = { brand: !1, user: !1 };
|
|
@@ -747,44 +751,44 @@ const Dt = ["data-audience"], Ut = {
|
|
|
747
751
|
});
|
|
748
752
|
}, { flush: "post", immediate: !0 });
|
|
749
753
|
const Y = _(() => !F.value.user && E.value?.user?.name ? E.value.user : void 0);
|
|
750
|
-
|
|
751
|
-
const
|
|
752
|
-
return ga((
|
|
753
|
-
const R =
|
|
754
|
+
Be(Oa, He("page-actions")), Be(Fa, He("page-info")), Be(qa, _(() => o.locale));
|
|
755
|
+
const N = He("notices"), K = y(!0);
|
|
756
|
+
return ga((B) => {
|
|
757
|
+
const R = N.value;
|
|
754
758
|
if (!R) return;
|
|
755
759
|
const A = () => {
|
|
756
760
|
K.value = !Pt(R);
|
|
757
761
|
};
|
|
758
762
|
A();
|
|
759
763
|
const q = new MutationObserver(A);
|
|
760
|
-
q.observe(R, { childList: !0, subtree: !0, characterData: !0 }),
|
|
761
|
-
}, { flush: "post" }), ga((
|
|
762
|
-
C.value &&
|
|
763
|
-
}), (
|
|
764
|
+
q.observe(R, { childList: !0, subtree: !0, characterData: !0 }), B(() => q.disconnect());
|
|
765
|
+
}, { flush: "post" }), ga((B) => {
|
|
766
|
+
C.value && B(ot());
|
|
767
|
+
}), (B, R) => (l(), g(Xe(t.appRoot ? e(st) : k), Qe(ha(t.appRoot ? { modalScope: "app", dialogBounds: T.value ? "viewport" : "app", style: "height: 100%;", onActivate: L } : {})), {
|
|
764
768
|
default: n(() => [
|
|
765
|
-
(l(),
|
|
769
|
+
(l(), g(Xe(t.appRoot ? e(it) : k), Qe(ha(t.appRoot ? { locale: e(va)(t.locale) } : {})), {
|
|
766
770
|
default: n(() => [
|
|
767
|
-
P.value ? (l(),
|
|
771
|
+
P.value ? (l(), g(e(ka), {
|
|
768
772
|
key: 0,
|
|
769
773
|
class: "app-denied",
|
|
770
774
|
width: t.pageWidth
|
|
771
775
|
}, {
|
|
772
776
|
default: n(() => [
|
|
773
|
-
P.value.header !== !1 ? (l(),
|
|
777
|
+
P.value.header !== !1 ? (l(), g(e(wa), {
|
|
774
778
|
key: 0,
|
|
775
779
|
title: P.value.title ?? w.value?.title ?? i.value.deniedTitle
|
|
776
|
-
}, null, 8, ["title"])) :
|
|
777
|
-
be(
|
|
780
|
+
}, null, 8, ["title"])) : b("", !0),
|
|
781
|
+
be(B.$slots, "denied", {}, () => [
|
|
778
782
|
v(e(j), { tone: "danger" }, {
|
|
779
783
|
default: n(() => [
|
|
780
|
-
S("span",
|
|
784
|
+
S("span", ll, s(P.value.message ?? w.value?.message ?? i.value.deniedMessage), 1)
|
|
781
785
|
]),
|
|
782
786
|
_: 1
|
|
783
787
|
})
|
|
784
788
|
], !0)
|
|
785
789
|
]),
|
|
786
790
|
_: 3
|
|
787
|
-
}, 8, ["width"])) : (l(),
|
|
791
|
+
}, 8, ["width"])) : (l(), g(e(ut), {
|
|
788
792
|
key: 1,
|
|
789
793
|
ref_key: "layout",
|
|
790
794
|
ref: te,
|
|
@@ -810,39 +814,39 @@ const Dt = ["data-audience"], Ut = {
|
|
|
810
814
|
width: t.pageWidth
|
|
811
815
|
}, {
|
|
812
816
|
default: n(() => [
|
|
813
|
-
c.value?.header !== !1 ? (l(),
|
|
817
|
+
c.value?.header !== !1 ? (l(), g(e(wa), {
|
|
814
818
|
key: 0,
|
|
815
|
-
title:
|
|
819
|
+
title: f.value,
|
|
816
820
|
description: c.value?.description ?? t.description
|
|
817
821
|
}, {
|
|
818
822
|
meta: n(() => [
|
|
819
|
-
S("span",
|
|
820
|
-
be(
|
|
823
|
+
S("span", nl, null, 512),
|
|
824
|
+
be(B.$slots, "meta", { page: t.modelValue }, void 0, !0)
|
|
821
825
|
]),
|
|
822
826
|
actions: n(() => [
|
|
823
|
-
S("div",
|
|
824
|
-
be(
|
|
827
|
+
S("div", ol, null, 512),
|
|
828
|
+
be(B.$slots, "actions", { page: t.modelValue }, void 0, !0)
|
|
825
829
|
]),
|
|
826
830
|
_: 3
|
|
827
|
-
}, 8, ["title", "description"])) :
|
|
828
|
-
t.ctx?.executor ? (l(),
|
|
831
|
+
}, 8, ["title", "description"])) : b("", !0),
|
|
832
|
+
t.ctx?.executor ? (l(), g(tl, {
|
|
829
833
|
key: 1,
|
|
830
834
|
ctx: t.ctx,
|
|
831
835
|
locale: t.locale
|
|
832
|
-
}, null, 8, ["ctx", "locale"])) :
|
|
833
|
-
e(
|
|
836
|
+
}, null, 8, ["ctx", "locale"])) : b("", !0),
|
|
837
|
+
e(La)(x.notices?.({ page: t.modelValue })) ? (l(), $("div", {
|
|
834
838
|
key: 2,
|
|
835
839
|
ref: "notices",
|
|
836
840
|
class: "app-notices",
|
|
837
841
|
hidden: K.value
|
|
838
842
|
}, [
|
|
839
|
-
be(
|
|
840
|
-
], 8,
|
|
841
|
-
S("div",
|
|
842
|
-
c.value?.component ? (l(),
|
|
843
|
+
be(B.$slots, "notices", { page: t.modelValue }, void 0, !0)
|
|
844
|
+
], 8, sl)) : b("", !0),
|
|
845
|
+
S("div", il, [
|
|
846
|
+
c.value?.component ? (l(), g(Xe(c.value.component), {
|
|
843
847
|
key: c.value.id
|
|
844
|
-
})) :
|
|
845
|
-
be(
|
|
848
|
+
})) : b("", !0),
|
|
849
|
+
be(B.$slots, "default", { page: t.modelValue }, void 0, !0)
|
|
846
850
|
])
|
|
847
851
|
]),
|
|
848
852
|
_: 3
|
|
@@ -853,12 +857,12 @@ const Dt = ["data-audience"], Ut = {
|
|
|
853
857
|
x["sidebar-footer"] || Y.value ? {
|
|
854
858
|
name: "sidebar-footer",
|
|
855
859
|
fn: n(() => [
|
|
856
|
-
be(
|
|
857
|
-
Y.value ? (l(),
|
|
860
|
+
be(B.$slots, "sidebar-footer", {}, () => [
|
|
861
|
+
Y.value ? (l(), g(e(dt), {
|
|
858
862
|
key: 0,
|
|
859
863
|
name: Y.value.name,
|
|
860
864
|
detail: Y.value.isAdmin ? i.value.administrator : i.value.dsmUser
|
|
861
|
-
}, null, 8, ["name", "detail"])) :
|
|
865
|
+
}, null, 8, ["name", "detail"])) : b("", !0)
|
|
862
866
|
], !0)
|
|
863
867
|
]),
|
|
864
868
|
key: "0"
|
|
@@ -866,7 +870,7 @@ const Dt = ["data-audience"], Ut = {
|
|
|
866
870
|
x.toolbar ? {
|
|
867
871
|
name: "toolbar",
|
|
868
872
|
fn: n(() => [
|
|
869
|
-
be(
|
|
873
|
+
be(B.$slots, "toolbar", { page: t.modelValue }, void 0, !0)
|
|
870
874
|
]),
|
|
871
875
|
key: "1"
|
|
872
876
|
} : void 0
|
|
@@ -878,18 +882,18 @@ const Dt = ["data-audience"], Ut = {
|
|
|
878
882
|
_: 3
|
|
879
883
|
}, 16));
|
|
880
884
|
}
|
|
881
|
-
}),
|
|
885
|
+
}), ro = /* @__PURE__ */ me(ul, [["__scopeId", "data-v-59f635a8"]]), co = /* @__PURE__ */ fe({
|
|
882
886
|
__name: "PageActions",
|
|
883
887
|
setup(t) {
|
|
884
|
-
const
|
|
885
|
-
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, {
|
|
886
890
|
key: 0,
|
|
887
891
|
to: o.value
|
|
888
892
|
}, [
|
|
889
893
|
be(a.$slots, "default")
|
|
890
|
-
], 8, ["to"])) :
|
|
894
|
+
], 8, ["to"])) : b("", !0);
|
|
891
895
|
}
|
|
892
|
-
}),
|
|
896
|
+
}), rl = { class: "page-info-notes" }, dl = /* @__PURE__ */ fe({
|
|
893
897
|
inheritAttrs: !1,
|
|
894
898
|
__name: "PageInfo",
|
|
895
899
|
props: {
|
|
@@ -901,17 +905,17 @@ const Dt = ["data-audience"], Ut = {
|
|
|
901
905
|
align: { default: "start" }
|
|
902
906
|
},
|
|
903
907
|
setup(t) {
|
|
904
|
-
const
|
|
905
|
-
if (
|
|
906
|
-
const
|
|
907
|
-
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);
|
|
908
912
|
});
|
|
909
|
-
return (
|
|
913
|
+
return (f, d) => (a.value.length || o.default) && (!e(i) || u.value) ? (l(), g(Aa, {
|
|
910
914
|
key: 0,
|
|
911
915
|
to: u.value ?? "body",
|
|
912
916
|
disabled: !e(i)
|
|
913
917
|
}, [
|
|
914
|
-
v(e(ct), pa(
|
|
918
|
+
v(e(ct), pa(f.$attrs, {
|
|
915
919
|
class: "page-info",
|
|
916
920
|
icon: "info",
|
|
917
921
|
"trigger-action": "click",
|
|
@@ -920,37 +924,37 @@ const Dt = ["data-audience"], Ut = {
|
|
|
920
924
|
"aria-label": c.value
|
|
921
925
|
}), {
|
|
922
926
|
default: n(() => [
|
|
923
|
-
be(
|
|
924
|
-
S("ul",
|
|
925
|
-
(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))
|
|
926
930
|
])
|
|
927
931
|
], !0)
|
|
928
932
|
]),
|
|
929
933
|
_: 3
|
|
930
934
|
}, 16, ["side", "align", "aria-label"])
|
|
931
|
-
], 8, ["to", "disabled"])) :
|
|
935
|
+
], 8, ["to", "disabled"])) : b("", !0);
|
|
932
936
|
}
|
|
933
|
-
}),
|
|
934
|
-
function ra(t,
|
|
937
|
+
}), vo = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-93861654"]]), Ca = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
938
|
+
function ra(t, m) {
|
|
935
939
|
let o = 0, a = t;
|
|
936
940
|
for (; a >= 1024 && o < Ca.length - 1; )
|
|
937
941
|
a /= 1024, o++;
|
|
938
|
-
return `${new Intl.NumberFormat(
|
|
942
|
+
return `${new Intl.NumberFormat(m, { maximumFractionDigits: o ? 1 : 0 }).format(a)} ${Ca[o]}`;
|
|
939
943
|
}
|
|
940
|
-
const
|
|
944
|
+
const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-location" }, fl = ["aria-label"], pl = {
|
|
941
945
|
key: 0,
|
|
942
946
|
class: "file-toolbar"
|
|
943
|
-
},
|
|
947
|
+
}, ml = {
|
|
944
948
|
key: 1,
|
|
945
949
|
role: "status"
|
|
946
|
-
},
|
|
950
|
+
}, yl = { role: "alert" }, bl = {
|
|
947
951
|
key: 4,
|
|
948
952
|
role: "status"
|
|
949
|
-
},
|
|
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 = {
|
|
950
954
|
key: 5,
|
|
951
955
|
class: "file-selection",
|
|
952
956
|
role: "status"
|
|
953
|
-
},
|
|
957
|
+
}, $l = /* @__PURE__ */ fe({
|
|
954
958
|
__name: "FileBrowser",
|
|
955
959
|
props: {
|
|
956
960
|
provider: {},
|
|
@@ -960,36 +964,36 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
960
964
|
transfers: { type: Boolean, default: !1 }
|
|
961
965
|
},
|
|
962
966
|
emits: ["selected"],
|
|
963
|
-
setup(t, { emit:
|
|
964
|
-
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), L = y([]), te = y(!1);
|
|
965
969
|
let F = new AbortController();
|
|
966
970
|
async function Y() {
|
|
967
971
|
const D = x.value;
|
|
968
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));
|
|
969
973
|
}
|
|
970
|
-
async function
|
|
971
|
-
const D =
|
|
974
|
+
async function N() {
|
|
975
|
+
const D = p.value.at(-1)?.path, U = L.value[0];
|
|
972
976
|
if (!D || !U || !o.provider.upload) return;
|
|
973
|
-
te.value = !1, await u.run(async (Z) => (await o.provider.upload(D, U, Z), !0)) && (
|
|
977
|
+
te.value = !1, await u.run(async (Z) => (await o.provider.upload(D, U, Z), !0)) && (L.value = [], await Q(p.value), te.value = !0);
|
|
974
978
|
}
|
|
975
979
|
const K = _(() => [
|
|
976
980
|
{ key: "name", label: i.value.nameColumn, sortable: !0 },
|
|
977
981
|
{ key: "kind", label: i.value.kindColumn },
|
|
978
982
|
{ key: "bytes", label: i.value.sizeColumn, align: "right", sortable: !0 }
|
|
979
|
-
]),
|
|
983
|
+
]), B = tt((D, { attrs: U }) => lt(la, { ...U, kind: "folder" }));
|
|
980
984
|
function R(D) {
|
|
981
|
-
return { id: D.path, label: D.name, icon:
|
|
985
|
+
return { id: D.path, label: D.name, icon: B, data: D };
|
|
982
986
|
}
|
|
983
987
|
function A(D) {
|
|
984
988
|
x.value = D, a("selected", D?.path);
|
|
985
989
|
}
|
|
986
990
|
function q(D) {
|
|
987
|
-
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);
|
|
988
992
|
}
|
|
989
993
|
function M(D) {
|
|
990
994
|
D.isDir ? Ae(D) : q(D);
|
|
991
995
|
}
|
|
992
|
-
const se = (D) =>
|
|
996
|
+
const se = (D) => f.value.find((U) => U.path === D);
|
|
993
997
|
function H(D, U, O = []) {
|
|
994
998
|
for (const Z of D) {
|
|
995
999
|
const ce = [...O, Z.data];
|
|
@@ -1041,29 +1045,29 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1041
1045
|
}
|
|
1042
1046
|
async function Q(D, U = !1) {
|
|
1043
1047
|
if (r.value) return;
|
|
1044
|
-
A(), P.value = void 0,
|
|
1048
|
+
A(), P.value = void 0, f.value = U ? f.value : [], w.value = U ? w.value : void 0;
|
|
1045
1049
|
const O = U ? w.value ?? 0 : 0, Z = D.at(-1)?.path;
|
|
1046
|
-
|
|
1050
|
+
p.value = D;
|
|
1047
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));
|
|
1048
|
-
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));
|
|
1049
1053
|
}
|
|
1050
|
-
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 }))]);
|
|
1051
1055
|
function he(D) {
|
|
1052
1056
|
const U = de.value.findIndex((O) => O.id === D.id);
|
|
1053
|
-
U <
|
|
1057
|
+
U < p.value.length && ie(p.value.slice(0, U));
|
|
1054
1058
|
}
|
|
1055
1059
|
function Ae(D) {
|
|
1056
|
-
ie([...
|
|
1060
|
+
ie([...p.value, D]);
|
|
1057
1061
|
}
|
|
1058
1062
|
const _e = y([[]]), J = y(0);
|
|
1059
1063
|
function ie(D) {
|
|
1060
|
-
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));
|
|
1061
1065
|
}
|
|
1062
1066
|
function ne(D) {
|
|
1063
1067
|
r.value || (J.value += D, Q(_e.value[J.value]));
|
|
1064
1068
|
}
|
|
1065
1069
|
function ye(D) {
|
|
1066
|
-
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);
|
|
1067
1071
|
}
|
|
1068
1072
|
function Pe() {
|
|
1069
1073
|
r.value || (T.value++, F.abort(), F = new AbortController(), d.value = [], C.value = [], E.value = void 0, _e.value = [[]], J.value = 0, Q([]));
|
|
@@ -1077,7 +1081,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1077
1081
|
"aria-busy": e(r),
|
|
1078
1082
|
"aria-label": i.value.title
|
|
1079
1083
|
}, [
|
|
1080
|
-
S("div",
|
|
1084
|
+
S("div", vl, [
|
|
1081
1085
|
v(e(na), {
|
|
1082
1086
|
label: i.value.back,
|
|
1083
1087
|
size: "sm",
|
|
@@ -1129,12 +1133,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1129
1133
|
"collapsed-label": i.value.fullPath,
|
|
1130
1134
|
onClickItem: he
|
|
1131
1135
|
}, null, 8, ["items", "collapsed-label"])
|
|
1132
|
-
], 8,
|
|
1136
|
+
], 8, fl)
|
|
1133
1137
|
]),
|
|
1134
|
-
t.transfers && t.provider.upload &&
|
|
1138
|
+
t.transfers && t.provider.upload && p.value.length ? (l(), $("div", pl, [
|
|
1135
1139
|
v(e(ft), {
|
|
1136
|
-
modelValue:
|
|
1137
|
-
"onUpdate:modelValue": U[2] || (U[2] = (O) =>
|
|
1140
|
+
modelValue: L.value,
|
|
1141
|
+
"onUpdate:modelValue": U[2] || (U[2] = (O) => L.value = O),
|
|
1138
1142
|
variant: "compact",
|
|
1139
1143
|
disabled: e(r),
|
|
1140
1144
|
"max-files": 1,
|
|
@@ -1144,17 +1148,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1144
1148
|
}, null, 8, ["modelValue", "disabled", "title"]),
|
|
1145
1149
|
v(e(V), {
|
|
1146
1150
|
variant: "primary",
|
|
1147
|
-
disabled: e(r) || !
|
|
1148
|
-
onClick:
|
|
1151
|
+
disabled: e(r) || !L.value.length,
|
|
1152
|
+
onClick: N
|
|
1149
1153
|
}, {
|
|
1150
1154
|
default: n(() => [
|
|
1151
1155
|
h(s(i.value.upload), 1)
|
|
1152
1156
|
]),
|
|
1153
1157
|
_: 1
|
|
1154
1158
|
}, 8, ["disabled"])
|
|
1155
|
-
])) :
|
|
1156
|
-
te.value ? (l(), $("p",
|
|
1157
|
-
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), {
|
|
1158
1162
|
key: 2,
|
|
1159
1163
|
variant: "secondary",
|
|
1160
1164
|
disabled: e(r),
|
|
@@ -1164,23 +1168,23 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1164
1168
|
h(s(i.value.download), 1)
|
|
1165
1169
|
]),
|
|
1166
1170
|
_: 1
|
|
1167
|
-
}, 8, ["disabled"])) :
|
|
1168
|
-
e(c) ? (l(),
|
|
1171
|
+
}, 8, ["disabled"])) : b("", !0),
|
|
1172
|
+
e(c) ? (l(), g(e(j), {
|
|
1169
1173
|
key: 3,
|
|
1170
1174
|
tone: "danger"
|
|
1171
1175
|
}, {
|
|
1172
1176
|
default: n(() => [
|
|
1173
|
-
S("span",
|
|
1177
|
+
S("span", yl, s(e(Sa)(e(c), i.value, t.locale, t.name)), 1)
|
|
1174
1178
|
]),
|
|
1175
1179
|
_: 1
|
|
1176
|
-
})) :
|
|
1177
|
-
e(r) ? (l(), $("p",
|
|
1178
|
-
S("div",
|
|
1180
|
+
})) : b("", !0),
|
|
1181
|
+
e(r) ? (l(), $("p", bl, s(i.value.loading), 1)) : b("", !0),
|
|
1182
|
+
S("div", gl, [
|
|
1179
1183
|
S("aside", {
|
|
1180
1184
|
class: "file-tree",
|
|
1181
1185
|
"aria-label": i.value.roots
|
|
1182
1186
|
}, [
|
|
1183
|
-
d.value.length ? (l(),
|
|
1187
|
+
d.value.length ? (l(), g(e(pt), {
|
|
1184
1188
|
key: T.value,
|
|
1185
1189
|
"selection-style": "background",
|
|
1186
1190
|
modelValue: E.value,
|
|
@@ -1192,13 +1196,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1192
1196
|
"load-children": X,
|
|
1193
1197
|
"expand-label": (O, Z) => e(Je)(Z ? i.value.collapse : i.value.expand, { name: O.label }),
|
|
1194
1198
|
onSelect: U[7] || (U[7] = (O) => ie(H(d.value, O.id) ?? [O.data]))
|
|
1195
|
-
}, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) :
|
|
1196
|
-
], 8,
|
|
1197
|
-
S("div",
|
|
1198
|
-
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), {
|
|
1199
1203
|
key: 0,
|
|
1200
1204
|
columns: K.value,
|
|
1201
|
-
rows:
|
|
1205
|
+
rows: f.value.map((O) => ({ ...O, kind: O.isDir ? i.value.directoryKind : i.value.fileKind })),
|
|
1202
1206
|
"row-key": "path",
|
|
1203
1207
|
footer: !1,
|
|
1204
1208
|
resizable: !1,
|
|
@@ -1222,7 +1226,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1222
1226
|
})
|
|
1223
1227
|
}, {
|
|
1224
1228
|
"cell-name": n(({ row: O }) => [
|
|
1225
|
-
S("span",
|
|
1229
|
+
S("span", wl, [
|
|
1226
1230
|
v(e(la), {
|
|
1227
1231
|
kind: O.isDir ? "folder" : "file",
|
|
1228
1232
|
name: O.name
|
|
@@ -1231,7 +1235,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1231
1235
|
])
|
|
1232
1236
|
]),
|
|
1233
1237
|
empty: n(() => [
|
|
1234
|
-
S("div",
|
|
1238
|
+
S("div", _l, [
|
|
1235
1239
|
v(e(la), {
|
|
1236
1240
|
kind: "folder",
|
|
1237
1241
|
size: [40, 40]
|
|
@@ -1240,30 +1244,30 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1240
1244
|
])
|
|
1241
1245
|
]),
|
|
1242
1246
|
"cell-bytes": n(({ row: O }) => [
|
|
1243
|
-
S("span",
|
|
1247
|
+
S("span", xl, s(O.isDir || O.bytes === void 0 ? "—" : e(ra)(O.bytes, e(va)(t.locale))), 1)
|
|
1244
1248
|
]),
|
|
1245
1249
|
_: 1
|
|
1246
1250
|
}, 8, ["columns", "rows", "loading", "loading-text", "sort", "labels", "selected-keys"])),
|
|
1247
|
-
w.value !== void 0 && !e(c) ? (l(),
|
|
1251
|
+
w.value !== void 0 && !e(c) ? (l(), g(e(V), {
|
|
1248
1252
|
key: 1,
|
|
1249
1253
|
variant: "secondary",
|
|
1250
1254
|
disabled: e(r),
|
|
1251
|
-
onClick: U[11] || (U[11] = (O) => Q(
|
|
1255
|
+
onClick: U[11] || (U[11] = (O) => Q(p.value, !0))
|
|
1252
1256
|
}, {
|
|
1253
1257
|
default: n(() => [
|
|
1254
1258
|
h(s(i.value.loadMore), 1)
|
|
1255
1259
|
]),
|
|
1256
1260
|
_: 1
|
|
1257
|
-
}, 8, ["disabled"])) :
|
|
1261
|
+
}, 8, ["disabled"])) : b("", !0)
|
|
1258
1262
|
])
|
|
1259
1263
|
]),
|
|
1260
|
-
x.value && !e(c) ? (l(), $("p",
|
|
1261
|
-
], 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));
|
|
1262
1266
|
}
|
|
1263
|
-
}), Ma = /* @__PURE__ */ me(
|
|
1267
|
+
}), Ma = /* @__PURE__ */ me($l, [["__scopeId", "data-v-f4863cea"]]), Sl = {
|
|
1264
1268
|
key: 0,
|
|
1265
1269
|
class: "save-consent"
|
|
1266
|
-
},
|
|
1270
|
+
}, Pl = ["aria-busy", "inert"], El = /* @__PURE__ */ fe({
|
|
1267
1271
|
__name: "NasPicker",
|
|
1268
1272
|
props: {
|
|
1269
1273
|
open: { type: Boolean },
|
|
@@ -1277,43 +1281,43 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1277
1281
|
errorText: { type: Function }
|
|
1278
1282
|
},
|
|
1279
1283
|
emits: ["update:open", "selected", "authorized", "refused"],
|
|
1280
|
-
setup(t, { emit:
|
|
1281
|
-
const o = t, a =
|
|
1282
|
-
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;
|
|
1283
1287
|
Oe(() => o.open, () => {
|
|
1284
|
-
d++, i.value = void 0,
|
|
1288
|
+
d++, i.value = void 0, f.value = void 0;
|
|
1285
1289
|
}), we(() => {
|
|
1286
|
-
|
|
1290
|
+
p = !0, d++;
|
|
1287
1291
|
});
|
|
1288
1292
|
function x() {
|
|
1289
1293
|
c.value || (i.value = void 0, a("update:open", !1));
|
|
1290
1294
|
}
|
|
1291
1295
|
async function P() {
|
|
1292
1296
|
const w = i.value, C = o.destination, E = d;
|
|
1293
|
-
if (!(!w || c.value || !o.open ||
|
|
1297
|
+
if (!(!w || c.value || !o.open || p || C && o.mode !== "folder")) {
|
|
1294
1298
|
if (!C) {
|
|
1295
1299
|
a("selected", w), x();
|
|
1296
1300
|
return;
|
|
1297
1301
|
}
|
|
1298
|
-
c.value = !0,
|
|
1302
|
+
c.value = !0, f.value = void 0;
|
|
1299
1303
|
try {
|
|
1300
1304
|
const k = await C.selectDestination({ key: C.key, path: w });
|
|
1301
|
-
if (
|
|
1305
|
+
if (p || E !== d) return;
|
|
1302
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" };
|
|
1303
1307
|
a("authorized", k), c.value = !1, x();
|
|
1304
1308
|
} catch (k) {
|
|
1305
|
-
if (
|
|
1309
|
+
if (p || E !== d) return;
|
|
1306
1310
|
if (k?.code === "APP_DENIED") {
|
|
1307
1311
|
c.value = !1, a("refused", k), x();
|
|
1308
1312
|
return;
|
|
1309
1313
|
}
|
|
1310
|
-
|
|
1314
|
+
f.value = k;
|
|
1311
1315
|
} finally {
|
|
1312
|
-
|
|
1316
|
+
p || (c.value = !1);
|
|
1313
1317
|
}
|
|
1314
1318
|
}
|
|
1315
1319
|
}
|
|
1316
|
-
return (w, C) => (l(),
|
|
1320
|
+
return (w, C) => (l(), g(e(Ge), {
|
|
1317
1321
|
open: t.open,
|
|
1318
1322
|
title: t.title ?? (t.mode === "folder" ? u.value.choose : u.value.chooseFile),
|
|
1319
1323
|
description: t.description ?? u.value.ownPermissions,
|
|
@@ -1353,82 +1357,82 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1353
1357
|
}, 8, ["disabled"])
|
|
1354
1358
|
]),
|
|
1355
1359
|
default: n(() => [
|
|
1356
|
-
t.destination ? (l(), $("p",
|
|
1357
|
-
|
|
1360
|
+
t.destination ? (l(), $("p", Sl, s(r.value.selection), 1)) : b("", !0),
|
|
1361
|
+
f.value ? (l(), g(e(j), {
|
|
1358
1362
|
key: 1,
|
|
1359
1363
|
tone: "danger",
|
|
1360
1364
|
role: "alert",
|
|
1361
1365
|
class: "save-message"
|
|
1362
1366
|
}, {
|
|
1363
1367
|
default: n(() => [
|
|
1364
|
-
h(s(t.errorText?.(
|
|
1368
|
+
h(s(t.errorText?.(f.value) ?? e(Ye)(f.value, r.value, "select", t.locale, t.name)), 1)
|
|
1365
1369
|
]),
|
|
1366
1370
|
_: 1
|
|
1367
|
-
})) :
|
|
1371
|
+
})) : b("", !0),
|
|
1368
1372
|
S("div", {
|
|
1369
1373
|
class: "nas-picker-content",
|
|
1370
1374
|
"aria-busy": c.value,
|
|
1371
1375
|
inert: c.value
|
|
1372
1376
|
}, [
|
|
1373
|
-
t.open ? (l(),
|
|
1377
|
+
t.open ? (l(), g(Ma, {
|
|
1374
1378
|
key: 0,
|
|
1375
1379
|
provider: t.provider,
|
|
1376
1380
|
locale: t.locale,
|
|
1377
1381
|
name: t.name,
|
|
1378
1382
|
mode: t.mode,
|
|
1379
1383
|
onSelected: C[0] || (C[0] = (E) => i.value = E)
|
|
1380
|
-
}, null, 8, ["provider", "locale", "name", "mode"])) :
|
|
1381
|
-
], 8,
|
|
1384
|
+
}, null, 8, ["provider", "locale", "name", "mode"])) : b("", !0)
|
|
1385
|
+
], 8, Pl)
|
|
1382
1386
|
]),
|
|
1383
1387
|
_: 1
|
|
1384
1388
|
}, 8, ["open", "title", "description", "close-label", "show-close"]));
|
|
1385
1389
|
}
|
|
1386
|
-
}), ta = /* @__PURE__ */ me(
|
|
1390
|
+
}), ta = /* @__PURE__ */ me(El, [["__scopeId", "data-v-08be5e1e"]]), Tl = { role: "alert" }, zl = { class: "files-actions" }, Al = {
|
|
1387
1391
|
key: 0,
|
|
1388
1392
|
class: "files-path",
|
|
1389
1393
|
role: "status"
|
|
1390
|
-
},
|
|
1394
|
+
}, Rl = /* @__PURE__ */ fe({
|
|
1391
1395
|
__name: "FilesPage",
|
|
1392
1396
|
props: {
|
|
1393
1397
|
ctx: {}
|
|
1394
1398
|
},
|
|
1395
1399
|
setup(t) {
|
|
1396
|
-
const
|
|
1397
|
-
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;
|
|
1398
1402
|
async function P() {
|
|
1399
|
-
if (!
|
|
1400
|
-
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++;
|
|
1401
1405
|
try {
|
|
1402
|
-
await
|
|
1406
|
+
await m.ctx.call("nas.session.status"), p || (a.value = void 0, i.value = !0);
|
|
1403
1407
|
} catch (w) {
|
|
1404
|
-
if (
|
|
1408
|
+
if (p) return;
|
|
1405
1409
|
a.value = Ce(w), !a.value && w?.code !== "unknown_method" && (o.value = w);
|
|
1406
1410
|
}
|
|
1407
1411
|
}
|
|
1408
1412
|
}
|
|
1409
1413
|
return Ke(() => a.value, P), Se(() => {
|
|
1410
|
-
x =
|
|
1414
|
+
x = m.ctx.reopen(() => {
|
|
1411
1415
|
P();
|
|
1412
1416
|
}), P();
|
|
1413
1417
|
}), we(() => {
|
|
1414
|
-
|
|
1418
|
+
p = !0, x?.(), d.dispose();
|
|
1415
1419
|
}), (w, C) => (l(), $(oe, null, [
|
|
1416
|
-
a.value ? (l(),
|
|
1420
|
+
a.value ? (l(), g(e(j), {
|
|
1417
1421
|
key: 0,
|
|
1418
1422
|
tone: "info",
|
|
1419
1423
|
role: "status"
|
|
1420
1424
|
}, {
|
|
1421
1425
|
default: n(() => [
|
|
1422
|
-
h(s(e(
|
|
1426
|
+
h(s(e(Le)(a.value, t.ctx.locale)), 1)
|
|
1423
1427
|
]),
|
|
1424
1428
|
_: 1
|
|
1425
|
-
})) :
|
|
1426
|
-
o.value ? (l(),
|
|
1429
|
+
})) : b("", !0),
|
|
1430
|
+
o.value ? (l(), g(e(j), {
|
|
1427
1431
|
key: 1,
|
|
1428
1432
|
tone: "danger"
|
|
1429
1433
|
}, {
|
|
1430
1434
|
default: n(() => [
|
|
1431
|
-
S("span",
|
|
1435
|
+
S("span", Tl, s(e(Sa)(o.value, e(Te)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
|
|
1432
1436
|
v(e(V), {
|
|
1433
1437
|
variant: "secondary",
|
|
1434
1438
|
onClick: P
|
|
@@ -1440,15 +1444,15 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1440
1444
|
})
|
|
1441
1445
|
]),
|
|
1442
1446
|
_: 1
|
|
1443
|
-
})) :
|
|
1444
|
-
i.value ? (l(),
|
|
1447
|
+
})) : b("", !0),
|
|
1448
|
+
i.value ? (l(), g(e(ke), {
|
|
1445
1449
|
key: 2,
|
|
1446
1450
|
title: e(Te)(t.ctx.locale).title,
|
|
1447
1451
|
description: e(Te)(t.ctx.locale).ownPermissions,
|
|
1448
1452
|
collapsible: !1
|
|
1449
1453
|
}, {
|
|
1450
1454
|
default: n(() => [
|
|
1451
|
-
S("div",
|
|
1455
|
+
S("div", zl, [
|
|
1452
1456
|
v(e(V), {
|
|
1453
1457
|
variant: "secondary",
|
|
1454
1458
|
onClick: C[0] || (C[0] = (E) => {
|
|
@@ -1472,11 +1476,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1472
1476
|
_: 1
|
|
1473
1477
|
})
|
|
1474
1478
|
]),
|
|
1475
|
-
c.value ? (l(), $("p",
|
|
1479
|
+
c.value ? (l(), $("p", Al, [
|
|
1476
1480
|
v(e(Ue), { path: c.value }, null, 8, ["path"])
|
|
1477
|
-
])) :
|
|
1478
|
-
(l(),
|
|
1479
|
-
key:
|
|
1481
|
+
])) : b("", !0),
|
|
1482
|
+
(l(), g(Ma, {
|
|
1483
|
+
key: f.value,
|
|
1480
1484
|
provider: e(d),
|
|
1481
1485
|
locale: t.ctx.locale,
|
|
1482
1486
|
name: t.ctx.displayName,
|
|
@@ -1493,16 +1497,16 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1493
1497
|
}, null, 8, ["provider", "locale", "name", "mode", "open"])
|
|
1494
1498
|
]),
|
|
1495
1499
|
_: 1
|
|
1496
|
-
}, 8, ["title", "description"])) :
|
|
1500
|
+
}, 8, ["title", "description"])) : b("", !0)
|
|
1497
1501
|
], 64));
|
|
1498
1502
|
}
|
|
1499
|
-
}),
|
|
1503
|
+
}), fo = /* @__PURE__ */ me(Rl, [["__scopeId", "data-v-a8fc5aa4"]]), Il = { role: "status" }, Dl = { role: "alert" }, oa = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ fe({
|
|
1500
1504
|
__name: "PortalSettings",
|
|
1501
1505
|
props: {
|
|
1502
1506
|
portal: {}
|
|
1503
1507
|
},
|
|
1504
1508
|
setup(t) {
|
|
1505
|
-
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));
|
|
1506
1510
|
let x = !1, P = !1;
|
|
1507
1511
|
function w(R) {
|
|
1508
1512
|
if (!P && (i.value = R, u.value = R.alias || R.defaultAlias, R.url))
|
|
@@ -1512,7 +1516,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1512
1516
|
} catch {
|
|
1513
1517
|
}
|
|
1514
1518
|
}
|
|
1515
|
-
const C =
|
|
1519
|
+
const C = m.portal.lastStatus?.();
|
|
1516
1520
|
C && w(C);
|
|
1517
1521
|
const E = 5e3, k = /* @__PURE__ */ Symbol("late");
|
|
1518
1522
|
async function T(R) {
|
|
@@ -1525,11 +1529,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1525
1529
|
w(q);
|
|
1526
1530
|
return;
|
|
1527
1531
|
}
|
|
1528
|
-
w(await
|
|
1532
|
+
w(await m.portal.status());
|
|
1529
1533
|
try {
|
|
1530
1534
|
await A;
|
|
1531
1535
|
} finally {
|
|
1532
|
-
w(await
|
|
1536
|
+
w(await m.portal.status());
|
|
1533
1537
|
}
|
|
1534
1538
|
} catch (q) {
|
|
1535
1539
|
P || (c.value = a[q?.code || ""] || a.portal_unavailable);
|
|
@@ -1537,32 +1541,32 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1537
1541
|
P || (r.value = !1);
|
|
1538
1542
|
}
|
|
1539
1543
|
}
|
|
1540
|
-
const
|
|
1544
|
+
const L = _(() => !!i.value?.canManage && !!i.value.entry && i.value.entry !== "registered"), te = _(() => {
|
|
1541
1545
|
const R = i.value;
|
|
1542
1546
|
if (R) {
|
|
1543
|
-
if (
|
|
1547
|
+
if (L.value) return R.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
|
|
1544
1548
|
if (R.state !== "active")
|
|
1545
1549
|
return R.canManage ? a.inactive : R.controlPanel ? void 0 : a.askAdmin;
|
|
1546
1550
|
}
|
|
1547
1551
|
}), F = a.link?.replace(/\s*[::]\s*$/, "");
|
|
1548
1552
|
async function Y() {
|
|
1549
|
-
const R = await
|
|
1550
|
-
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;
|
|
1551
1555
|
}
|
|
1552
|
-
function
|
|
1553
|
-
!r.value && !
|
|
1556
|
+
function N() {
|
|
1557
|
+
!r.value && !p.value && m.portal.status().then(w, () => {
|
|
1554
1558
|
}).finally(() => {
|
|
1555
|
-
P || (
|
|
1559
|
+
P || (f.value = !1);
|
|
1556
1560
|
});
|
|
1557
1561
|
}
|
|
1558
1562
|
function K() {
|
|
1559
|
-
x ? d.value = !0 : T(() =>
|
|
1563
|
+
x ? d.value = !0 : T(() => m.portal.unregister());
|
|
1560
1564
|
}
|
|
1561
|
-
async function
|
|
1565
|
+
async function B() {
|
|
1562
1566
|
if (d.value = !1, !r.value) {
|
|
1563
|
-
r.value = !0,
|
|
1567
|
+
r.value = !0, p.value = "removalUnconfirmed", oa.set(m.portal, p.value);
|
|
1564
1568
|
try {
|
|
1565
|
-
await
|
|
1569
|
+
await m.portal.unregister(), p.value = "removedFromPage", oa.set(m.portal, p.value);
|
|
1566
1570
|
} catch {
|
|
1567
1571
|
} finally {
|
|
1568
1572
|
P || (r.value = !1);
|
|
@@ -1570,11 +1574,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1570
1574
|
}
|
|
1571
1575
|
}
|
|
1572
1576
|
return Se(() => {
|
|
1573
|
-
o.subscribe?.(
|
|
1577
|
+
o.subscribe?.(N), N();
|
|
1574
1578
|
}), we(() => {
|
|
1575
1579
|
P = !0;
|
|
1576
1580
|
}), (R, A) => (l(), $(oe, null, [
|
|
1577
|
-
|
|
1581
|
+
p.value ? (l(), g(e(ke), {
|
|
1578
1582
|
key: 0,
|
|
1579
1583
|
title: e(a).title,
|
|
1580
1584
|
collapsible: !1
|
|
@@ -1582,7 +1586,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1582
1586
|
default: n(() => [
|
|
1583
1587
|
v(e(j), { tone: "info" }, {
|
|
1584
1588
|
default: n(() => [
|
|
1585
|
-
S("span",
|
|
1589
|
+
S("span", Il, s(e(a)[p.value]), 1)
|
|
1586
1590
|
]),
|
|
1587
1591
|
_: 1
|
|
1588
1592
|
}),
|
|
@@ -1597,7 +1601,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1597
1601
|
})
|
|
1598
1602
|
]),
|
|
1599
1603
|
_: 1
|
|
1600
|
-
}, 8, ["title"])) : i.value ||
|
|
1604
|
+
}, 8, ["title"])) : i.value || f.value ? (l(), g(e(ke), {
|
|
1601
1605
|
key: 1,
|
|
1602
1606
|
title: e(a).title,
|
|
1603
1607
|
description: te.value,
|
|
@@ -1606,7 +1610,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1606
1610
|
}, za({
|
|
1607
1611
|
default: n(() => [
|
|
1608
1612
|
i.value ? (l(), $(oe, { key: 1 }, [
|
|
1609
|
-
i.value.state === "active" ? (l(),
|
|
1613
|
+
i.value.state === "active" ? (l(), g(e(xe), {
|
|
1610
1614
|
key: 0,
|
|
1611
1615
|
label: e(F)
|
|
1612
1616
|
}, {
|
|
@@ -1622,8 +1626,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1622
1626
|
}, 8, ["href"])
|
|
1623
1627
|
]),
|
|
1624
1628
|
_: 1
|
|
1625
|
-
}, 8, ["label"])) :
|
|
1626
|
-
i.value.canManage && !
|
|
1629
|
+
}, 8, ["label"])) : b("", !0),
|
|
1630
|
+
i.value.canManage && !L.value ? (l(), g(e(Me), {
|
|
1627
1631
|
key: 1,
|
|
1628
1632
|
onSubmit: A[3] || (A[3] = qe((q) => T(() => t.portal.apply(u.value)), ["prevent"]))
|
|
1629
1633
|
}, {
|
|
@@ -1661,7 +1665,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1661
1665
|
]),
|
|
1662
1666
|
_: 1
|
|
1663
1667
|
}, 8, ["disabled"]),
|
|
1664
|
-
i.value.state === "active" ? (l(),
|
|
1668
|
+
i.value.state === "active" ? (l(), g(e(V), {
|
|
1665
1669
|
key: 0,
|
|
1666
1670
|
variant: "secondary",
|
|
1667
1671
|
disabled: r.value,
|
|
@@ -1671,7 +1675,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1671
1675
|
h(s(e(a).disable), 1)
|
|
1672
1676
|
]),
|
|
1673
1677
|
_: 1
|
|
1674
|
-
}, 8, ["disabled"])) :
|
|
1678
|
+
}, 8, ["disabled"])) : b("", !0),
|
|
1675
1679
|
v(e(V), {
|
|
1676
1680
|
variant: "secondary",
|
|
1677
1681
|
onClick: A[2] || (A[2] = (q) => t.portal.openControlPanel())
|
|
@@ -1681,7 +1685,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1681
1685
|
]),
|
|
1682
1686
|
_: 1
|
|
1683
1687
|
}),
|
|
1684
|
-
i.value.entry ? (l(),
|
|
1688
|
+
i.value.entry ? (l(), g(e(V), {
|
|
1685
1689
|
key: 1,
|
|
1686
1690
|
variant: "secondary",
|
|
1687
1691
|
disabled: r.value,
|
|
@@ -1691,7 +1695,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1691
1695
|
h(s(e(a).unregister), 1)
|
|
1692
1696
|
]),
|
|
1693
1697
|
_: 1
|
|
1694
|
-
}, 8, ["disabled"])) :
|
|
1698
|
+
}, 8, ["disabled"])) : b("", !0)
|
|
1695
1699
|
]),
|
|
1696
1700
|
_: 1
|
|
1697
1701
|
})
|
|
@@ -1700,17 +1704,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1700
1704
|
})
|
|
1701
1705
|
]),
|
|
1702
1706
|
_: 1
|
|
1703
|
-
})) :
|
|
1704
|
-
c.value ? (l(),
|
|
1707
|
+
})) : b("", !0),
|
|
1708
|
+
c.value ? (l(), g(e(j), {
|
|
1705
1709
|
key: 2,
|
|
1706
1710
|
tone: "danger"
|
|
1707
1711
|
}, {
|
|
1708
1712
|
default: n(() => [
|
|
1709
|
-
S("span",
|
|
1713
|
+
S("span", Dl, s(c.value), 1)
|
|
1710
1714
|
]),
|
|
1711
1715
|
_: 1
|
|
1712
|
-
})) :
|
|
1713
|
-
], 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), {
|
|
1714
1718
|
key: se,
|
|
1715
1719
|
label: q,
|
|
1716
1720
|
"data-placeholder-row": ""
|
|
@@ -1726,10 +1730,10 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1726
1730
|
]),
|
|
1727
1731
|
_: 2
|
|
1728
1732
|
}, [
|
|
1729
|
-
i.value &&
|
|
1733
|
+
i.value && L.value ? {
|
|
1730
1734
|
name: "footer",
|
|
1731
1735
|
fn: n(() => [
|
|
1732
|
-
i.value.entry === "unregistered" ? (l(),
|
|
1736
|
+
i.value.entry === "unregistered" ? (l(), g(e(V), {
|
|
1733
1737
|
key: 0,
|
|
1734
1738
|
variant: "primary",
|
|
1735
1739
|
disabled: r.value,
|
|
@@ -1739,7 +1743,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1739
1743
|
h(s(e(a).register), 1)
|
|
1740
1744
|
]),
|
|
1741
1745
|
_: 1
|
|
1742
|
-
}, 8, ["disabled"])) : (l(),
|
|
1746
|
+
}, 8, ["disabled"])) : (l(), g(e(V), {
|
|
1743
1747
|
key: 1,
|
|
1744
1748
|
variant: "primary",
|
|
1745
1749
|
disabled: r.value,
|
|
@@ -1767,7 +1771,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1767
1771
|
]),
|
|
1768
1772
|
key: "1"
|
|
1769
1773
|
} : void 0
|
|
1770
|
-
]), 1032, ["title", "description", "aria-busy"])) :
|
|
1774
|
+
]), 1032, ["title", "description", "aria-busy"])) : b("", !0),
|
|
1771
1775
|
v(e(Ge), {
|
|
1772
1776
|
open: d.value,
|
|
1773
1777
|
"onUpdate:open": A[7] || (A[7] = (q) => d.value = q),
|
|
@@ -1788,7 +1792,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1788
1792
|
v(e(V), {
|
|
1789
1793
|
variant: "danger",
|
|
1790
1794
|
disabled: r.value,
|
|
1791
|
-
onClick:
|
|
1795
|
+
onClick: B
|
|
1792
1796
|
}, {
|
|
1793
1797
|
default: n(() => [
|
|
1794
1798
|
h(s(e(a).unregister), 1)
|
|
@@ -1800,30 +1804,30 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1800
1804
|
}, 8, ["open", "title", "description", "close-label"])
|
|
1801
1805
|
], 64));
|
|
1802
1806
|
}
|
|
1803
|
-
}),
|
|
1807
|
+
}), Ul = ["aria-busy"], Vl = { role: "alert" }, Ll = {
|
|
1804
1808
|
key: 2,
|
|
1805
1809
|
role: "status"
|
|
1806
|
-
}, Nl = { role: "alert" }, Bl = { role: "status" },
|
|
1810
|
+
}, Nl = { role: "alert" }, Bl = { role: "status" }, Ol = /* @__PURE__ */ fe({
|
|
1807
1811
|
__name: "LoginPage",
|
|
1808
1812
|
props: {
|
|
1809
1813
|
session: {},
|
|
1810
1814
|
locale: {}
|
|
1811
1815
|
},
|
|
1812
1816
|
setup(t) {
|
|
1813
|
-
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:");
|
|
1814
1818
|
let x = !1;
|
|
1815
1819
|
function P(k) {
|
|
1816
1820
|
const T = k?.code;
|
|
1817
|
-
return
|
|
1821
|
+
return m.session.denied.value?.message || o.value.errors[T || ""] || o.value.errors.failed;
|
|
1818
1822
|
}
|
|
1819
1823
|
async function w() {
|
|
1820
|
-
if (!(c.value || !
|
|
1821
|
-
c.value = !0,
|
|
1824
|
+
if (!(c.value || !p.value || !a.value || !i.value || r.value && !u.value)) {
|
|
1825
|
+
c.value = !0, f.value = "";
|
|
1822
1826
|
try {
|
|
1823
|
-
await
|
|
1827
|
+
await m.session.login(a.value, i.value, u.value), i.value = "", u.value = "";
|
|
1824
1828
|
} catch (k) {
|
|
1825
1829
|
if (x) return;
|
|
1826
|
-
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);
|
|
1827
1831
|
} finally {
|
|
1828
1832
|
x || (c.value = !1, r.value && (await nt(), x || d.value?.querySelector("input")?.focus()));
|
|
1829
1833
|
}
|
|
@@ -1831,18 +1835,18 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1831
1835
|
}
|
|
1832
1836
|
async function C() {
|
|
1833
1837
|
if (!c.value) {
|
|
1834
|
-
c.value = !0,
|
|
1838
|
+
c.value = !0, f.value = "";
|
|
1835
1839
|
try {
|
|
1836
|
-
await
|
|
1840
|
+
await m.session.bootstrap();
|
|
1837
1841
|
} catch (k) {
|
|
1838
|
-
x || (
|
|
1842
|
+
x || (f.value = P(k));
|
|
1839
1843
|
} finally {
|
|
1840
1844
|
x || (c.value = !1);
|
|
1841
1845
|
}
|
|
1842
1846
|
}
|
|
1843
1847
|
}
|
|
1844
1848
|
function E() {
|
|
1845
|
-
i.value = "", u.value = "", r.value = !1,
|
|
1849
|
+
i.value = "", u.value = "", r.value = !1, f.value = "";
|
|
1846
1850
|
}
|
|
1847
1851
|
return Ra(() => {
|
|
1848
1852
|
x = !0, i.value = "", u.value = "";
|
|
@@ -1856,7 +1860,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1856
1860
|
collapsible: !1
|
|
1857
1861
|
}, {
|
|
1858
1862
|
default: n(() => [
|
|
1859
|
-
|
|
1863
|
+
p.value ? b("", !0) : (l(), g(e(j), {
|
|
1860
1864
|
key: 0,
|
|
1861
1865
|
tone: "warning",
|
|
1862
1866
|
title: o.value.httpsTitle
|
|
@@ -1866,26 +1870,26 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1866
1870
|
]),
|
|
1867
1871
|
_: 1
|
|
1868
1872
|
}, 8, ["title"])),
|
|
1869
|
-
t.session.denied.value ? (l(),
|
|
1873
|
+
t.session.denied.value ? (l(), g(e(j), {
|
|
1870
1874
|
key: 1,
|
|
1871
1875
|
tone: "danger"
|
|
1872
1876
|
}, {
|
|
1873
1877
|
default: n(() => [
|
|
1874
|
-
S("span",
|
|
1878
|
+
S("span", Vl, s(t.session.denied.value.message), 1)
|
|
1875
1879
|
]),
|
|
1876
1880
|
_: 1
|
|
1877
|
-
})) : t.session.notice.value ? (l(), $("p",
|
|
1878
|
-
|
|
1881
|
+
})) : t.session.notice.value ? (l(), $("p", Ll, s(o.value.notices[t.session.notice.value]), 1)) : b("", !0),
|
|
1882
|
+
f.value && !t.session.denied.value ? (l(), g(e(j), {
|
|
1879
1883
|
key: 3,
|
|
1880
1884
|
tone: "danger",
|
|
1881
1885
|
title: o.value.failedTitle
|
|
1882
1886
|
}, {
|
|
1883
1887
|
default: n(() => [
|
|
1884
|
-
S("span", Nl, s(
|
|
1888
|
+
S("span", Nl, s(f.value), 1)
|
|
1885
1889
|
]),
|
|
1886
1890
|
_: 1
|
|
1887
|
-
}, 8, ["title"])) :
|
|
1888
|
-
t.session.denied.value ?
|
|
1891
|
+
}, 8, ["title"])) : b("", !0),
|
|
1892
|
+
t.session.denied.value ? b("", !0) : (l(), g(e(Me), {
|
|
1889
1893
|
key: 4,
|
|
1890
1894
|
onSubmit: qe(w, ["prevent"])
|
|
1891
1895
|
}, {
|
|
@@ -1896,9 +1900,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1896
1900
|
default: n(() => [
|
|
1897
1901
|
v(e(ze), {
|
|
1898
1902
|
modelValue: a.value,
|
|
1899
|
-
"onUpdate:modelValue": T[0] || (T[0] = (
|
|
1903
|
+
"onUpdate:modelValue": T[0] || (T[0] = (L) => a.value = L),
|
|
1900
1904
|
autocomplete: "username",
|
|
1901
|
-
disabled: c.value || r.value || !
|
|
1905
|
+
disabled: c.value || r.value || !p.value
|
|
1902
1906
|
}, null, 8, ["modelValue", "disabled"])
|
|
1903
1907
|
]),
|
|
1904
1908
|
_: 1
|
|
@@ -1915,7 +1919,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1915
1919
|
default: n(() => [
|
|
1916
1920
|
v(e(ze), {
|
|
1917
1921
|
modelValue: u.value,
|
|
1918
|
-
"onUpdate:modelValue": T[2] || (T[2] = (
|
|
1922
|
+
"onUpdate:modelValue": T[2] || (T[2] = (L) => u.value = L),
|
|
1919
1923
|
inputmode: "numeric",
|
|
1920
1924
|
autocomplete: "one-time-code",
|
|
1921
1925
|
disabled: c.value
|
|
@@ -1924,17 +1928,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1924
1928
|
_: 1
|
|
1925
1929
|
}, 8, ["label"])
|
|
1926
1930
|
], 512)
|
|
1927
|
-
], 64)) : (l(),
|
|
1931
|
+
], 64)) : (l(), g(e($e), {
|
|
1928
1932
|
key: 0,
|
|
1929
1933
|
label: o.value.password
|
|
1930
1934
|
}, {
|
|
1931
1935
|
default: n(() => [
|
|
1932
1936
|
v(e(ze), {
|
|
1933
1937
|
modelValue: i.value,
|
|
1934
|
-
"onUpdate:modelValue": T[1] || (T[1] = (
|
|
1938
|
+
"onUpdate:modelValue": T[1] || (T[1] = (L) => i.value = L),
|
|
1935
1939
|
type: "password",
|
|
1936
1940
|
autocomplete: "current-password",
|
|
1937
|
-
disabled: c.value || !
|
|
1941
|
+
disabled: c.value || !p.value
|
|
1938
1942
|
}, null, 8, ["modelValue", "disabled"])
|
|
1939
1943
|
]),
|
|
1940
1944
|
_: 1
|
|
@@ -1944,14 +1948,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1944
1948
|
v(e(V), {
|
|
1945
1949
|
type: "submit",
|
|
1946
1950
|
variant: "primary",
|
|
1947
|
-
disabled: c.value || !
|
|
1951
|
+
disabled: c.value || !p.value || !a.value || !i.value || r.value && !u.value
|
|
1948
1952
|
}, {
|
|
1949
1953
|
default: n(() => [
|
|
1950
1954
|
h(s(c.value ? o.value.signingIn : r.value ? o.value.verify : o.value.signIn), 1)
|
|
1951
1955
|
]),
|
|
1952
1956
|
_: 1
|
|
1953
1957
|
}, 8, ["disabled"]),
|
|
1954
|
-
r.value ? (l(),
|
|
1958
|
+
r.value ? (l(), g(e(V), {
|
|
1955
1959
|
key: 0,
|
|
1956
1960
|
variant: "secondary",
|
|
1957
1961
|
disabled: c.value,
|
|
@@ -1961,10 +1965,10 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1961
1965
|
h(s(o.value.otherAccount), 1)
|
|
1962
1966
|
]),
|
|
1963
1967
|
_: 1
|
|
1964
|
-
}, 8, ["disabled"])) : (l(),
|
|
1968
|
+
}, 8, ["disabled"])) : (l(), g(e(V), {
|
|
1965
1969
|
key: 1,
|
|
1966
1970
|
variant: "secondary",
|
|
1967
|
-
disabled: c.value || !
|
|
1971
|
+
disabled: c.value || !p.value,
|
|
1968
1972
|
onClick: C
|
|
1969
1973
|
}, {
|
|
1970
1974
|
default: n(() => [
|
|
@@ -1981,55 +1985,55 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
1981
1985
|
]),
|
|
1982
1986
|
_: 1
|
|
1983
1987
|
}, 8, ["title", "description"])
|
|
1984
|
-
], 8,
|
|
1988
|
+
], 8, Ul));
|
|
1985
1989
|
}
|
|
1986
|
-
}),
|
|
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 = {
|
|
1987
1991
|
key: 0,
|
|
1988
1992
|
role: "status",
|
|
1989
1993
|
"data-bg-picked": "",
|
|
1990
1994
|
class: "bg-path"
|
|
1991
|
-
},
|
|
1995
|
+
}, Gl = { class: "integration-actions" }, Jl = { key: 2 }, Yl = {
|
|
1992
1996
|
key: 3,
|
|
1993
1997
|
class: "bg-cards"
|
|
1994
|
-
},
|
|
1998
|
+
}, Ql = { class: "bg-card-body" }, Zl = {
|
|
1995
1999
|
key: 0,
|
|
1996
2000
|
class: "integration-help"
|
|
1997
|
-
},
|
|
2001
|
+
}, jl = {
|
|
1998
2002
|
key: 1,
|
|
1999
2003
|
class: "integration-help"
|
|
2000
|
-
},
|
|
2004
|
+
}, en = {
|
|
2001
2005
|
key: 2,
|
|
2002
2006
|
class: "integration-help bg-path"
|
|
2003
|
-
},
|
|
2007
|
+
}, an = {
|
|
2004
2008
|
key: 3,
|
|
2005
2009
|
class: "integration-help"
|
|
2006
|
-
},
|
|
2010
|
+
}, tn = {
|
|
2007
2011
|
key: 4,
|
|
2008
2012
|
class: "integration-help"
|
|
2009
|
-
},
|
|
2013
|
+
}, ln = { class: "integration-actions" }, nn = { key: 1 }, on = {
|
|
2010
2014
|
key: 2,
|
|
2011
2015
|
class: "bg-cards"
|
|
2012
|
-
},
|
|
2016
|
+
}, sn = { class: "bg-card-body" }, un = {
|
|
2013
2017
|
key: 0,
|
|
2014
2018
|
class: "integration-help"
|
|
2015
|
-
},
|
|
2019
|
+
}, rn = {
|
|
2016
2020
|
key: 1,
|
|
2017
2021
|
class: "integration-help"
|
|
2018
|
-
},
|
|
2022
|
+
}, dn = { class: "integration-help" }, cn = { class: "integration-actions" }, vn = { class: "integration-actions" }, fn = { class: "integration-actions" }, pn = /* @__PURE__ */ fe({
|
|
2019
2023
|
__name: "BackgroundPanel",
|
|
2020
2024
|
props: {
|
|
2021
2025
|
ctx: {}
|
|
2022
2026
|
},
|
|
2023
|
-
setup(t, { expose:
|
|
2024
|
-
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), L = y(), te = _(() => !u.value && !c.value && !f.value && !L.value), F = y(!1), Y = y(), N = y(""), K = y(""), B = Ga(o.ctx);
|
|
2025
2029
|
let R, A = !1;
|
|
2026
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];
|
|
2027
2031
|
async function le(z, W, I = !1) {
|
|
2028
2032
|
try {
|
|
2029
2033
|
return await o.ctx.call(z, W);
|
|
2030
2034
|
} catch (ve) {
|
|
2031
|
-
if (A || I && (
|
|
2032
|
-
ve?.code === "unsupported" ? (
|
|
2035
|
+
if (A || I && (L.value = Ce(ve))) return;
|
|
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, N.value && URL.revokeObjectURL(N.value), N.value = "") : A || (c.value = ve);
|
|
2033
2037
|
return;
|
|
2034
2038
|
}
|
|
2035
2039
|
}
|
|
@@ -2039,15 +2043,15 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2039
2043
|
try {
|
|
2040
2044
|
const z = await le("bg.status", void 0, !0);
|
|
2041
2045
|
if (!z || A) return;
|
|
2042
|
-
if (
|
|
2046
|
+
if (L.value = void 0, !z.limits || typeof z.admin != "boolean") {
|
|
2043
2047
|
c.value = { code: "unavailable" };
|
|
2044
2048
|
return;
|
|
2045
2049
|
}
|
|
2046
|
-
|
|
2050
|
+
f.value = !1, u.value = z;
|
|
2047
2051
|
const W = await le("bg.jobs.list", void 0, !0);
|
|
2048
2052
|
W && !A && (r.value = W.jobs ?? []);
|
|
2049
2053
|
const I = await le("bg.schedules.list", void 0, !0);
|
|
2050
|
-
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);
|
|
2051
2055
|
} finally {
|
|
2052
2056
|
T.value = !1;
|
|
2053
2057
|
}
|
|
@@ -2062,7 +2066,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2062
2066
|
if (!d.value) {
|
|
2063
2067
|
d.value = !0, c.value = void 0;
|
|
2064
2068
|
try {
|
|
2065
|
-
await z(), await re(), (
|
|
2069
|
+
await z(), await re(), (p.value.some((W) => W.enabled) || r.value.some((W) => !q(W))) && ee();
|
|
2066
2070
|
} finally {
|
|
2067
2071
|
A || (d.value = !1);
|
|
2068
2072
|
}
|
|
@@ -2094,23 +2098,23 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2094
2098
|
});
|
|
2095
2099
|
async function ce(z) {
|
|
2096
2100
|
const W = await le("bg.jobs.result", { id: z.id });
|
|
2097
|
-
!W || A || (
|
|
2101
|
+
!W || A || (N.value && URL.revokeObjectURL(N.value), N.value = URL.createObjectURL(new Blob([JSON.stringify(W.result, null, 2)], { type: "application/json" })), K.value = `${z.name || z.id}.sha256.json`);
|
|
2098
2102
|
}
|
|
2099
|
-
return Ke(() =>
|
|
2103
|
+
return Ke(() => L.value, re), m({ refresh: re }), Se(() => {
|
|
2100
2104
|
re().then(() => {
|
|
2101
|
-
(
|
|
2105
|
+
(p.value.some((z) => z.enabled) || r.value.some((z) => !q(z))) && ee();
|
|
2102
2106
|
});
|
|
2103
2107
|
}), we(() => {
|
|
2104
|
-
A = !0,
|
|
2105
|
-
}), (z, W) => (l(),
|
|
2108
|
+
A = !0, B.dispose(), R && clearInterval(R), N.value && URL.revokeObjectURL(N.value);
|
|
2109
|
+
}), (z, W) => (l(), g(e(ke), {
|
|
2106
2110
|
"aria-busy": d.value || T.value || te.value,
|
|
2107
2111
|
title: a.value.title,
|
|
2108
|
-
description:
|
|
2112
|
+
description: f.value ? void 0 : a.value.help,
|
|
2109
2113
|
collapsible: !1,
|
|
2110
2114
|
"data-background-panel": ""
|
|
2111
2115
|
}, {
|
|
2112
2116
|
default: n(() => [
|
|
2113
|
-
|
|
2117
|
+
f.value ? (l(), g(e(j), {
|
|
2114
2118
|
key: 0,
|
|
2115
2119
|
tone: "warning"
|
|
2116
2120
|
}, {
|
|
@@ -2119,17 +2123,17 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2119
2123
|
]),
|
|
2120
2124
|
_: 1
|
|
2121
2125
|
})) : (l(), $(oe, { key: 1 }, [
|
|
2122
|
-
|
|
2126
|
+
L.value ? (l(), g(e(j), {
|
|
2123
2127
|
key: 0,
|
|
2124
2128
|
tone: "info",
|
|
2125
2129
|
role: "status"
|
|
2126
2130
|
}, {
|
|
2127
2131
|
default: n(() => [
|
|
2128
|
-
h(s(e(
|
|
2132
|
+
h(s(e(Le)(L.value, t.ctx.locale)), 1)
|
|
2129
2133
|
]),
|
|
2130
2134
|
_: 1
|
|
2131
|
-
})) :
|
|
2132
|
-
c.value ? (l(),
|
|
2135
|
+
})) : b("", !0),
|
|
2136
|
+
c.value ? (l(), g(e(j), {
|
|
2133
2137
|
key: 1,
|
|
2134
2138
|
tone: "danger",
|
|
2135
2139
|
role: "alert"
|
|
@@ -2138,7 +2142,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2138
2142
|
h(s(e(Ja)(c.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
|
|
2139
2143
|
]),
|
|
2140
2144
|
_: 1
|
|
2141
|
-
})) :
|
|
2145
|
+
})) : b("", !0),
|
|
2142
2146
|
te.value ? (l(), $(oe, { key: 2 }, [
|
|
2143
2147
|
(l(), $(oe, null, ge(["14rem", "24rem", "18rem", "24rem"], (I, ve) => S("p", {
|
|
2144
2148
|
key: ve,
|
|
@@ -2149,7 +2153,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2149
2153
|
height: "20px"
|
|
2150
2154
|
}, null, 8, ["width"])
|
|
2151
2155
|
])), 64)),
|
|
2152
|
-
S("div",
|
|
2156
|
+
S("div", Fl, [
|
|
2153
2157
|
v(e(V), {
|
|
2154
2158
|
variant: "secondary",
|
|
2155
2159
|
disabled: ""
|
|
@@ -2169,13 +2173,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2169
2173
|
_: 1
|
|
2170
2174
|
})
|
|
2171
2175
|
])
|
|
2172
|
-
], 64)) :
|
|
2176
|
+
], 64)) : b("", !0),
|
|
2173
2177
|
u.value ? (l(), $(oe, { key: 3 }, [
|
|
2174
|
-
S("p",
|
|
2175
|
-
S("p",
|
|
2176
|
-
S("p",
|
|
2177
|
-
S("p",
|
|
2178
|
-
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, [
|
|
2179
2183
|
v(e(V), {
|
|
2180
2184
|
variant: "secondary",
|
|
2181
2185
|
disabled: d.value,
|
|
@@ -2197,30 +2201,30 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2197
2201
|
_: 1
|
|
2198
2202
|
}, 8, ["disabled"])
|
|
2199
2203
|
]),
|
|
2200
|
-
Y.value ? (l(), $("p",
|
|
2204
|
+
Y.value ? (l(), $("p", Wl, [
|
|
2201
2205
|
h(s(i(a.value.chosen, { path: "" }).trim()) + " ", 1),
|
|
2202
2206
|
v(e(Ue), {
|
|
2203
2207
|
path: `${Y.value.folder}/${Y.value.relative}`
|
|
2204
2208
|
}, null, 8, ["path"])
|
|
2205
|
-
])) :
|
|
2209
|
+
])) : b("", !0),
|
|
2206
2210
|
v(ta, {
|
|
2207
2211
|
open: F.value,
|
|
2208
2212
|
"onUpdate:open": W[1] || (W[1] = (I) => F.value = I),
|
|
2209
2213
|
locale: t.ctx.locale,
|
|
2210
2214
|
name: t.ctx.displayName,
|
|
2211
|
-
provider: e(
|
|
2215
|
+
provider: e(B),
|
|
2212
2216
|
mode: "file",
|
|
2213
2217
|
title: a.value.pickerTitle,
|
|
2214
2218
|
description: a.value.pickerConsent,
|
|
2215
2219
|
onSelected: O
|
|
2216
2220
|
}, null, 8, ["open", "locale", "name", "provider", "title", "description"]),
|
|
2217
|
-
k.value && u.value.admin ? (l(),
|
|
2221
|
+
k.value && u.value.admin ? (l(), g(e(j), {
|
|
2218
2222
|
key: 1,
|
|
2219
2223
|
tone: "warning"
|
|
2220
2224
|
}, {
|
|
2221
2225
|
default: n(() => [
|
|
2222
2226
|
S("p", null, s(i(a.value.purgeConfirm, { user: k.value.user, uid: k.value.uid })), 1),
|
|
2223
|
-
S("div",
|
|
2227
|
+
S("div", Gl, [
|
|
2224
2228
|
v(e(V), {
|
|
2225
2229
|
variant: "secondary",
|
|
2226
2230
|
disabled: d.value,
|
|
@@ -2244,9 +2248,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2244
2248
|
])
|
|
2245
2249
|
]),
|
|
2246
2250
|
_: 1
|
|
2247
|
-
})) :
|
|
2248
|
-
r.value.length ? (l(), $("div",
|
|
2249
|
-
(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), {
|
|
2250
2254
|
key: I.id,
|
|
2251
2255
|
title: I.name,
|
|
2252
2256
|
"layout-type": "compact",
|
|
@@ -2265,19 +2269,19 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2265
2269
|
}, 1032, ["tone"])
|
|
2266
2270
|
]),
|
|
2267
2271
|
default: n(() => [
|
|
2268
|
-
S("div",
|
|
2269
|
-
I.progress?.total ? (l(), $("span",
|
|
2270
|
-
I.progress?.totalBytes ? (l(), $("span",
|
|
2271
|
-
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, [
|
|
2272
2276
|
h(s(i(a.value.progressItem, { item: "" }).trim()) + " ", 1),
|
|
2273
2277
|
v(e(Ue), {
|
|
2274
2278
|
path: I.progress.item
|
|
2275
2279
|
}, null, 8, ["path"])
|
|
2276
|
-
])) :
|
|
2277
|
-
u.value.admin && I.submitter ? (l(), $("span",
|
|
2278
|
-
I.scheduleId ? (l(), $("span",
|
|
2279
|
-
S("div",
|
|
2280
|
-
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), {
|
|
2281
2285
|
key: 0,
|
|
2282
2286
|
variant: "secondary",
|
|
2283
2287
|
disabled: d.value,
|
|
@@ -2287,8 +2291,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2287
2291
|
h(s(a.value.purgeOwner), 1)
|
|
2288
2292
|
]),
|
|
2289
2293
|
_: 1
|
|
2290
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2291
|
-
!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), {
|
|
2292
2296
|
key: 1,
|
|
2293
2297
|
variant: "secondary",
|
|
2294
2298
|
disabled: d.value,
|
|
@@ -2298,8 +2302,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2298
2302
|
h(s(a.value.pause), 1)
|
|
2299
2303
|
]),
|
|
2300
2304
|
_: 1
|
|
2301
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2302
|
-
I.state === "paused" || se(I) ? (l(),
|
|
2305
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2306
|
+
I.state === "paused" || se(I) ? (l(), g(e(V), {
|
|
2303
2307
|
key: 2,
|
|
2304
2308
|
variant: "secondary",
|
|
2305
2309
|
disabled: d.value,
|
|
@@ -2309,8 +2313,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2309
2313
|
h(s(a.value.resume), 1)
|
|
2310
2314
|
]),
|
|
2311
2315
|
_: 1
|
|
2312
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2313
|
-
M(I) ?
|
|
2316
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2317
|
+
M(I) ? b("", !0) : (l(), g(e(V), {
|
|
2314
2318
|
key: 3,
|
|
2315
2319
|
variant: "secondary",
|
|
2316
2320
|
disabled: d.value,
|
|
@@ -2321,7 +2325,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2321
2325
|
]),
|
|
2322
2326
|
_: 1
|
|
2323
2327
|
}, 8, ["disabled", "onClick"])),
|
|
2324
|
-
ye(I) ? (l(),
|
|
2328
|
+
ye(I) ? (l(), g(e(V), {
|
|
2325
2329
|
key: 4,
|
|
2326
2330
|
variant: "secondary",
|
|
2327
2331
|
disabled: d.value,
|
|
@@ -2331,8 +2335,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2331
2335
|
h(s(a.value.scheduleCopy), 1)
|
|
2332
2336
|
]),
|
|
2333
2337
|
_: 1
|
|
2334
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2335
|
-
I.state === "succeeded" ? (l(),
|
|
2338
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2339
|
+
I.state === "succeeded" ? (l(), g(e(V), {
|
|
2336
2340
|
key: 5,
|
|
2337
2341
|
variant: "secondary",
|
|
2338
2342
|
disabled: d.value,
|
|
@@ -2342,13 +2346,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2342
2346
|
h(s(a.value.result), 1)
|
|
2343
2347
|
]),
|
|
2344
2348
|
_: 1
|
|
2345
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2349
|
+
}, 8, ["disabled", "onClick"])) : b("", !0)
|
|
2346
2350
|
])
|
|
2347
2351
|
])
|
|
2348
2352
|
]),
|
|
2349
2353
|
_: 2
|
|
2350
2354
|
}, 1032, ["title", "data-job-state", "data-job-id"]))), 128))
|
|
2351
|
-
])) : (l(), $("p",
|
|
2355
|
+
])) : (l(), $("p", Jl, s(a.value.noJobs), 1)),
|
|
2352
2356
|
v(e(ke), {
|
|
2353
2357
|
"data-bg-schedules": "",
|
|
2354
2358
|
class: "bg-schedules",
|
|
@@ -2357,7 +2361,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2357
2361
|
collapsible: !1
|
|
2358
2362
|
}, {
|
|
2359
2363
|
default: n(() => [
|
|
2360
|
-
x.value ? (l(),
|
|
2364
|
+
x.value ? (l(), g(e(Me), {
|
|
2361
2365
|
key: 0,
|
|
2362
2366
|
class: "bg-schedule-form",
|
|
2363
2367
|
onSubmit: qe(Ae, ["prevent"])
|
|
@@ -2413,9 +2417,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2413
2417
|
})
|
|
2414
2418
|
]),
|
|
2415
2419
|
_: 1
|
|
2416
|
-
})) :
|
|
2417
|
-
|
|
2418
|
-
(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), {
|
|
2419
2423
|
key: I.id,
|
|
2420
2424
|
title: I.name,
|
|
2421
2425
|
"layout-type": "compact",
|
|
@@ -2433,11 +2437,11 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2433
2437
|
}, 1032, ["tone"])
|
|
2434
2438
|
]),
|
|
2435
2439
|
default: n(() => [
|
|
2436
|
-
S("div",
|
|
2437
|
-
u.value.admin ? (l(), $("span",
|
|
2438
|
-
I.enabled ? (l(), $("span",
|
|
2439
|
-
S("span",
|
|
2440
|
-
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), {
|
|
2441
2445
|
key: 2,
|
|
2442
2446
|
tone: "warning"
|
|
2443
2447
|
}, {
|
|
@@ -2445,7 +2449,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2445
2449
|
h(s(a.value.revisionChanged), 1)
|
|
2446
2450
|
]),
|
|
2447
2451
|
_: 1
|
|
2448
|
-
})) : I.reason === "input-unavailable" ? (l(),
|
|
2452
|
+
})) : I.reason === "input-unavailable" ? (l(), g(e(j), {
|
|
2449
2453
|
key: 3,
|
|
2450
2454
|
tone: "warning"
|
|
2451
2455
|
}, {
|
|
@@ -2453,9 +2457,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2453
2457
|
h(s(a.value.errors["input-unavailable"]), 1)
|
|
2454
2458
|
]),
|
|
2455
2459
|
_: 1
|
|
2456
|
-
})) :
|
|
2457
|
-
S("div",
|
|
2458
|
-
I.enabled ? (l(),
|
|
2460
|
+
})) : b("", !0),
|
|
2461
|
+
S("div", cn, [
|
|
2462
|
+
I.enabled ? (l(), g(e(V), {
|
|
2459
2463
|
key: 0,
|
|
2460
2464
|
variant: "secondary",
|
|
2461
2465
|
disabled: d.value,
|
|
@@ -2465,7 +2469,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2465
2469
|
h(s(a.value.disableSchedule), 1)
|
|
2466
2470
|
]),
|
|
2467
2471
|
_: 1
|
|
2468
|
-
}, 8, ["disabled", "onClick"])) : u.value.admin ? (l(),
|
|
2472
|
+
}, 8, ["disabled", "onClick"])) : u.value.admin ? (l(), g(e(V), {
|
|
2469
2473
|
key: 1,
|
|
2470
2474
|
variant: "secondary",
|
|
2471
2475
|
disabled: d.value,
|
|
@@ -2475,7 +2479,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2475
2479
|
h(s(a.value.enableSchedule), 1)
|
|
2476
2480
|
]),
|
|
2477
2481
|
_: 1
|
|
2478
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2482
|
+
}, 8, ["disabled", "onClick"])) : b("", !0),
|
|
2479
2483
|
v(e(V), {
|
|
2480
2484
|
variant: "secondary",
|
|
2481
2485
|
disabled: d.value,
|
|
@@ -2491,14 +2495,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2491
2495
|
]),
|
|
2492
2496
|
_: 2
|
|
2493
2497
|
}, 1032, ["title", "data-schedule-id"]))), 128))
|
|
2494
|
-
])) : (l(), $("p",
|
|
2495
|
-
C.value ? (l(),
|
|
2498
|
+
])) : (l(), $("p", nn, s(a.value.noSchedules), 1)),
|
|
2499
|
+
C.value ? (l(), g(e(j), {
|
|
2496
2500
|
key: 3,
|
|
2497
2501
|
tone: "warning"
|
|
2498
2502
|
}, {
|
|
2499
2503
|
default: n(() => [
|
|
2500
2504
|
S("p", null, s(i(a.value.deleteScheduleConsent, { name: C.value.name })), 1),
|
|
2501
|
-
S("div",
|
|
2505
|
+
S("div", vn, [
|
|
2502
2506
|
v(e(V), {
|
|
2503
2507
|
variant: "danger",
|
|
2504
2508
|
disabled: d.value,
|
|
@@ -2522,14 +2526,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2522
2526
|
])
|
|
2523
2527
|
]),
|
|
2524
2528
|
_: 1
|
|
2525
|
-
})) :
|
|
2526
|
-
E.value ? (l(),
|
|
2529
|
+
})) : b("", !0),
|
|
2530
|
+
E.value ? (l(), g(e(j), {
|
|
2527
2531
|
key: 4,
|
|
2528
2532
|
tone: "warning"
|
|
2529
2533
|
}, {
|
|
2530
2534
|
default: n(() => [
|
|
2531
2535
|
S("p", null, s(i(a.value.enableScheduleConsent, { name: E.value.name })), 1),
|
|
2532
|
-
S("div",
|
|
2536
|
+
S("div", fn, [
|
|
2533
2537
|
v(e(V), {
|
|
2534
2538
|
variant: "primary",
|
|
2535
2539
|
disabled: d.value,
|
|
@@ -2553,33 +2557,33 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2553
2557
|
])
|
|
2554
2558
|
]),
|
|
2555
2559
|
_: 1
|
|
2556
|
-
})) :
|
|
2560
|
+
})) : b("", !0)
|
|
2557
2561
|
]),
|
|
2558
2562
|
_: 1
|
|
2559
2563
|
}, 8, ["title", "description"]),
|
|
2560
|
-
|
|
2564
|
+
N.value ? (l(), g(e(ua), {
|
|
2561
2565
|
key: 4,
|
|
2562
|
-
href:
|
|
2566
|
+
href: N.value,
|
|
2563
2567
|
download: K.value
|
|
2564
2568
|
}, {
|
|
2565
2569
|
default: n(() => [
|
|
2566
2570
|
h(s(a.value.download), 1)
|
|
2567
2571
|
]),
|
|
2568
2572
|
_: 1
|
|
2569
|
-
}, 8, ["href", "download"])) :
|
|
2570
|
-
], 64)) :
|
|
2573
|
+
}, 8, ["href", "download"])) : b("", !0)
|
|
2574
|
+
], 64)) : b("", !0)
|
|
2571
2575
|
], 64))
|
|
2572
2576
|
]),
|
|
2573
2577
|
_: 1
|
|
2574
2578
|
}, 8, ["aria-busy", "title", "description"]));
|
|
2575
2579
|
}
|
|
2576
|
-
}),
|
|
2580
|
+
}), yo = /* @__PURE__ */ me(pn, [["__scopeId", "data-v-a7c98d9d"]]), mn = ["inert", "aria-hidden"], yn = {
|
|
2577
2581
|
key: 3,
|
|
2578
2582
|
class: "executor-approval"
|
|
2579
|
-
},
|
|
2583
|
+
}, bn = {
|
|
2580
2584
|
key: 0,
|
|
2581
2585
|
class: "executor-brand"
|
|
2582
|
-
},
|
|
2586
|
+
}, gn = ["src"], hn = /* @__PURE__ */ fe({
|
|
2583
2587
|
__name: "ExecutorApproval",
|
|
2584
2588
|
props: {
|
|
2585
2589
|
admin: { type: Boolean },
|
|
@@ -2589,31 +2593,31 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2589
2593
|
preload: { type: Boolean }
|
|
2590
2594
|
},
|
|
2591
2595
|
setup(t) {
|
|
2592
|
-
const
|
|
2593
|
-
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;
|
|
2594
2598
|
return (w?.fullPage ?? (w?.host ? $a({ host: w.host }) : !1)) && w?.displayName ? w : void 0;
|
|
2595
2599
|
});
|
|
2596
2600
|
function c(w) {
|
|
2597
2601
|
u.value = w, i.value = w.state;
|
|
2598
2602
|
}
|
|
2599
|
-
let
|
|
2600
|
-
async function
|
|
2603
|
+
let f = !1, d;
|
|
2604
|
+
async function p() {
|
|
2601
2605
|
try {
|
|
2602
2606
|
const w = await o.status();
|
|
2603
|
-
|
|
2607
|
+
f || c(w);
|
|
2604
2608
|
} catch {
|
|
2605
|
-
|
|
2609
|
+
f || (u.value = void 0, i.value = "blocked");
|
|
2606
2610
|
}
|
|
2607
2611
|
}
|
|
2608
|
-
const x = _(() => Ce(u.value)), P = _(() => !!
|
|
2609
|
-
return
|
|
2612
|
+
const x = _(() => Ce(u.value)), P = _(() => !!m.preload && !!o && (i.value === "ready" || i.value === "checking"));
|
|
2613
|
+
return Be(Ua, _(() => P.value && i.value === "checking")), Ke(() => x.value, p), Se(() => {
|
|
2610
2614
|
o && (o.subscribe?.((w) => {
|
|
2611
|
-
!
|
|
2612
|
-
}), d =
|
|
2613
|
-
|
|
2614
|
-
}),
|
|
2615
|
+
!f && !je(w) && c(w);
|
|
2616
|
+
}), d = m.ctx?.reopen(() => {
|
|
2617
|
+
p();
|
|
2618
|
+
}), p());
|
|
2615
2619
|
}), we(() => {
|
|
2616
|
-
|
|
2620
|
+
f = !0, d?.();
|
|
2617
2621
|
}), (w, C) => (l(), $(oe, null, [
|
|
2618
2622
|
P.value ? (l(), $("div", {
|
|
2619
2623
|
key: 0,
|
|
@@ -2622,29 +2626,29 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2622
2626
|
"aria-hidden": i.value === "checking" ? "true" : void 0
|
|
2623
2627
|
}, [
|
|
2624
2628
|
be(w.$slots, "default", {}, void 0, !0)
|
|
2625
|
-
], 10,
|
|
2626
|
-
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), {
|
|
2627
2631
|
key: 2,
|
|
2628
2632
|
text: a.value.loading
|
|
2629
|
-
}, null, 8, ["text"])) : e(o) && i.value !== "ready" ? (l(), $("div",
|
|
2630
|
-
r.value ? (l(), $("header",
|
|
2633
|
+
}, null, 8, ["text"])) : e(o) && i.value !== "ready" ? (l(), $("div", yn, [
|
|
2634
|
+
r.value ? (l(), $("header", bn, [
|
|
2631
2635
|
r.value.appIcon ? (l(), $("img", {
|
|
2632
2636
|
key: 0,
|
|
2633
2637
|
src: r.value.appIcon,
|
|
2634
2638
|
alt: ""
|
|
2635
|
-
}, null, 8,
|
|
2639
|
+
}, null, 8, gn)) : b("", !0),
|
|
2636
2640
|
S("span", null, s(r.value.displayName), 1)
|
|
2637
|
-
])) :
|
|
2638
|
-
x.value ? (l(),
|
|
2641
|
+
])) : b("", !0),
|
|
2642
|
+
x.value ? (l(), g(e(j), {
|
|
2639
2643
|
key: 1,
|
|
2640
2644
|
tone: "info",
|
|
2641
2645
|
role: "status"
|
|
2642
2646
|
}, {
|
|
2643
2647
|
default: n(() => [
|
|
2644
|
-
h(s(e(
|
|
2648
|
+
h(s(e(Le)(x.value, t.locale)), 1)
|
|
2645
2649
|
]),
|
|
2646
2650
|
_: 1
|
|
2647
|
-
})) : t.admin ? (l(),
|
|
2651
|
+
})) : t.admin ? (l(), g(Ba, {
|
|
2648
2652
|
key: 2,
|
|
2649
2653
|
admin: !0,
|
|
2650
2654
|
locale: t.locale,
|
|
@@ -2652,14 +2656,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2652
2656
|
purpose: t.purpose,
|
|
2653
2657
|
title: "",
|
|
2654
2658
|
layout: "page",
|
|
2655
|
-
onConfirmed:
|
|
2656
|
-
}, 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, {
|
|
2657
2661
|
key: 3,
|
|
2658
2662
|
admin: !1,
|
|
2659
2663
|
locale: t.locale,
|
|
2660
2664
|
purpose: t.purpose,
|
|
2661
2665
|
layout: "page"
|
|
2662
|
-
}, null, 8, ["locale", "purpose"])) : (l(),
|
|
2666
|
+
}, null, 8, ["locale", "purpose"])) : (l(), g(e(j), {
|
|
2663
2667
|
key: 4,
|
|
2664
2668
|
tone: "info"
|
|
2665
2669
|
}, {
|
|
@@ -2668,59 +2672,59 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2668
2672
|
]),
|
|
2669
2673
|
_: 1
|
|
2670
2674
|
}))
|
|
2671
|
-
])) :
|
|
2675
|
+
])) : b("", !0)
|
|
2672
2676
|
], 64));
|
|
2673
2677
|
}
|
|
2674
|
-
}),
|
|
2678
|
+
}), bo = /* @__PURE__ */ me(hn, [["__scopeId", "data-v-59aae3f3"]]), kn = {
|
|
2675
2679
|
key: 2,
|
|
2676
2680
|
role: "status"
|
|
2677
|
-
},
|
|
2681
|
+
}, wn = {
|
|
2678
2682
|
key: 3,
|
|
2679
2683
|
role: "status"
|
|
2680
|
-
},
|
|
2684
|
+
}, _n = {
|
|
2681
2685
|
key: 0,
|
|
2682
2686
|
role: "status",
|
|
2683
2687
|
class: "destination"
|
|
2684
|
-
},
|
|
2688
|
+
}, xn = {
|
|
2685
2689
|
key: 0,
|
|
2686
2690
|
"data-placeholder-row": ""
|
|
2687
|
-
},
|
|
2691
|
+
}, Cn = { key: 1 }, $n = {
|
|
2688
2692
|
key: 2,
|
|
2689
2693
|
class: "records"
|
|
2690
|
-
},
|
|
2694
|
+
}, Sn = ["data-job-state"], Pn = ["role"], En = {
|
|
2691
2695
|
key: 0,
|
|
2692
2696
|
"data-placeholder-row": ""
|
|
2693
|
-
},
|
|
2697
|
+
}, Tn = { key: 1 }, zn = {
|
|
2694
2698
|
key: 2,
|
|
2695
2699
|
class: "records"
|
|
2696
|
-
},
|
|
2700
|
+
}, An = /* @__PURE__ */ fe({
|
|
2697
2701
|
__name: "DelegatePanel",
|
|
2698
2702
|
props: {
|
|
2699
2703
|
ctx: {}
|
|
2700
2704
|
},
|
|
2701
|
-
setup(t, { expose:
|
|
2702
|
-
const o = t, a = _(() => Ve(o.ctx.locale)), i = _(() => Ea(o.ctx.locale)), u = Pa(o.ctx), r = y(), c = y([]),
|
|
2703
|
-
let k = !1, T,
|
|
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("");
|
|
2707
|
+
let k = !1, T, L;
|
|
2704
2708
|
const te = y();
|
|
2705
2709
|
Oe([C, w, E], () => {
|
|
2706
|
-
|
|
2710
|
+
L = void 0;
|
|
2707
2711
|
}, { flush: "sync" });
|
|
2708
|
-
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")), N = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = _(() => Y.value && N.includes(p.value?.code ?? "")), B = _(() => !r.value && !p.value && !te.value), R = _(() => r.value && r.value.state !== "ready" && !(Y.value && r.value.state === "needs-admin-approval" && N.includes(r.value.reason ?? "")));
|
|
2709
2713
|
async function A() {
|
|
2710
2714
|
if (k) return;
|
|
2711
2715
|
const [ee, X, Q] = await Promise.allSettled([o.ctx.call("delegate.status"), o.ctx.call("delegate.list"), o.ctx.call("delegate.jobs.list")]);
|
|
2712
2716
|
if (k) return;
|
|
2713
|
-
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 ?? []);
|
|
2714
2718
|
const de = [ee, X, Q].find((he) => he.status === "rejected");
|
|
2715
2719
|
if (te.value = de && Ce(de.reason), de && !te.value) throw de.reason;
|
|
2716
2720
|
}
|
|
2717
2721
|
async function q(ee) {
|
|
2718
2722
|
if (!(d.value || k)) {
|
|
2719
|
-
d.value = !0,
|
|
2723
|
+
d.value = !0, p.value = void 0;
|
|
2720
2724
|
try {
|
|
2721
2725
|
await ee();
|
|
2722
2726
|
} catch (X) {
|
|
2723
|
-
k || (
|
|
2727
|
+
k || (p.value = X);
|
|
2724
2728
|
} finally {
|
|
2725
2729
|
k || (d.value = !1);
|
|
2726
2730
|
}
|
|
@@ -2734,47 +2738,47 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2734
2738
|
const X = await o.ctx.call("delegate.jobs.cancel", { id: ee });
|
|
2735
2739
|
k || (x.value = X.revocation_pending ? a.value.pending : ""), await A();
|
|
2736
2740
|
}), G = _(() => r.value?.state === "ready" && !!w.value && !!C.value && !!E.value), le = () => q(async () => {
|
|
2737
|
-
G.value && (await o.ctx.call("delegate.jobs.submit", { key:
|
|
2741
|
+
G.value && (await o.ctx.call("delegate.jobs.submit", { key: L ?? (L = crypto.randomUUID()), url: C.value, dest: w.value, name: E.value }), k || (C.value = "", E.value = "", w.value = ""), await A());
|
|
2738
2742
|
}), re = (ee) => {
|
|
2739
2743
|
const X = new Date(ee);
|
|
2740
2744
|
return Number.isNaN(X.getTime()) ? "—" : X.toLocaleString(o.ctx.locale);
|
|
2741
2745
|
};
|
|
2742
|
-
return
|
|
2746
|
+
return m({ refresh: M }), Se(() => {
|
|
2743
2747
|
M(), T = setInterval(() => {
|
|
2744
|
-
|
|
2748
|
+
f.value.some(F) && M();
|
|
2745
2749
|
}, 3e3);
|
|
2746
2750
|
}), we(() => {
|
|
2747
2751
|
k = !0, T && clearInterval(T), u.dispose();
|
|
2748
|
-
}), (ee, X) => (l(),
|
|
2752
|
+
}), (ee, X) => (l(), g(e(ke), {
|
|
2749
2753
|
title: a.value.title,
|
|
2750
2754
|
description: a.value.help,
|
|
2751
2755
|
collapsible: !1,
|
|
2752
|
-
"aria-busy": d.value ||
|
|
2756
|
+
"aria-busy": d.value || B.value,
|
|
2753
2757
|
class: "delegate-panel"
|
|
2754
2758
|
}, {
|
|
2755
2759
|
default: n(() => [
|
|
2756
|
-
|
|
2760
|
+
p.value && !K.value ? (l(), g(e(j), {
|
|
2757
2761
|
key: 0,
|
|
2758
2762
|
tone: "danger",
|
|
2759
2763
|
role: "alert"
|
|
2760
2764
|
}, {
|
|
2761
2765
|
default: n(() => [
|
|
2762
|
-
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)
|
|
2763
2767
|
]),
|
|
2764
2768
|
_: 1
|
|
2765
|
-
})) :
|
|
2766
|
-
te.value ? (l(),
|
|
2769
|
+
})) : b("", !0),
|
|
2770
|
+
te.value ? (l(), g(e(j), {
|
|
2767
2771
|
key: 1,
|
|
2768
2772
|
tone: "info",
|
|
2769
2773
|
role: "status"
|
|
2770
2774
|
}, {
|
|
2771
2775
|
default: n(() => [
|
|
2772
|
-
h(s(e(
|
|
2776
|
+
h(s(e(Le)(te.value, t.ctx.locale)), 1)
|
|
2773
2777
|
]),
|
|
2774
2778
|
_: 1
|
|
2775
|
-
})) :
|
|
2776
|
-
x.value ? (l(), $("p",
|
|
2777
|
-
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),
|
|
2778
2782
|
v(e(Me), {
|
|
2779
2783
|
direction: "vertical",
|
|
2780
2784
|
onSubmit: qe(le, ["prevent"])
|
|
@@ -2811,10 +2815,10 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2811
2815
|
_: 1
|
|
2812
2816
|
}, 8, ["label"]),
|
|
2813
2817
|
S("p", null, s(a.value.size), 1),
|
|
2814
|
-
w.value ? (l(), $("p",
|
|
2818
|
+
w.value ? (l(), $("p", _n, [
|
|
2815
2819
|
h(s(a.value.destination) + s(i.value), 1),
|
|
2816
2820
|
v(e(Ue), { path: w.value }, null, 8, ["path"])
|
|
2817
|
-
])) :
|
|
2821
|
+
])) : b("", !0),
|
|
2818
2822
|
v(e(aa), null, {
|
|
2819
2823
|
default: n(() => [
|
|
2820
2824
|
v(e(V), {
|
|
@@ -2859,20 +2863,20 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2859
2863
|
class: "delegate-group"
|
|
2860
2864
|
}, {
|
|
2861
2865
|
default: n(() => [
|
|
2862
|
-
|
|
2866
|
+
B.value ? (l(), $("p", xn, [
|
|
2863
2867
|
v(e(Fe), {
|
|
2864
2868
|
width: "12rem",
|
|
2865
2869
|
height: "20px"
|
|
2866
2870
|
})
|
|
2867
|
-
])) : !
|
|
2868
|
-
(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", {
|
|
2869
2873
|
key: Q.id,
|
|
2870
2874
|
"data-job-state": Q.state
|
|
2871
2875
|
}, [
|
|
2872
2876
|
S("span", {
|
|
2873
2877
|
role: Q.state === "waiting_executor" ? "status" : void 0
|
|
2874
|
-
}, s(Q.name) + " · " + s(a.value[Q.state]), 9,
|
|
2875
|
-
F(Q) ? (l(),
|
|
2878
|
+
}, s(Q.name) + " · " + s(a.value[Q.state]), 9, Pn),
|
|
2879
|
+
F(Q) ? (l(), g(e(V), {
|
|
2876
2880
|
key: 0,
|
|
2877
2881
|
variant: "secondary",
|
|
2878
2882
|
disabled: d.value,
|
|
@@ -2882,8 +2886,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2882
2886
|
h(s(a.value.cancel), 1)
|
|
2883
2887
|
]),
|
|
2884
2888
|
_: 1
|
|
2885
|
-
}, 8, ["disabled", "onClick"])) :
|
|
2886
|
-
], 8,
|
|
2889
|
+
}, 8, ["disabled", "onClick"])) : b("", !0)
|
|
2890
|
+
], 8, Sn))), 128))
|
|
2887
2891
|
]))
|
|
2888
2892
|
]),
|
|
2889
2893
|
_: 1
|
|
@@ -2894,12 +2898,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2894
2898
|
class: "delegate-group"
|
|
2895
2899
|
}, {
|
|
2896
2900
|
default: n(() => [
|
|
2897
|
-
|
|
2901
|
+
B.value ? (l(), $("p", En, [
|
|
2898
2902
|
v(e(Fe), {
|
|
2899
2903
|
width: "12rem",
|
|
2900
2904
|
height: "20px"
|
|
2901
2905
|
})
|
|
2902
|
-
])) : !c.value.length && !
|
|
2906
|
+
])) : !c.value.length && !p.value ? (l(), $("p", Tn, s(a.value.noDelegations), 1)) : (l(), $("ul", zn, [
|
|
2903
2907
|
(l(!0), $(oe, null, ge(c.value, (Q) => (l(), $("li", {
|
|
2904
2908
|
key: Q.delegation_id
|
|
2905
2909
|
}, [
|
|
@@ -2928,19 +2932,19 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2928
2932
|
_: 1
|
|
2929
2933
|
}, 8, ["title", "description", "aria-busy"]));
|
|
2930
2934
|
}
|
|
2931
|
-
}),
|
|
2935
|
+
}), go = /* @__PURE__ */ me(An, [["__scopeId", "data-v-987b56d5"]]), Rn = { class: "save-alert" }, In = { "data-save-error": "" }, Dn = { class: "save-alert" }, Un = {
|
|
2932
2936
|
key: 0,
|
|
2933
2937
|
class: "save-reason"
|
|
2934
|
-
},
|
|
2938
|
+
}, Vn = {
|
|
2935
2939
|
key: 0,
|
|
2936
2940
|
class: "save-reason"
|
|
2937
|
-
},
|
|
2941
|
+
}, Ln = { class: "save-alert" }, Nn = {
|
|
2938
2942
|
key: 0,
|
|
2939
2943
|
class: "save-help"
|
|
2940
|
-
}, Bn = { class: "save-actions" },
|
|
2944
|
+
}, Bn = { class: "save-actions" }, On = {
|
|
2941
2945
|
key: 1,
|
|
2942
2946
|
class: "save-none"
|
|
2943
|
-
},
|
|
2947
|
+
}, Fn = /* @__PURE__ */ fe({
|
|
2944
2948
|
__name: "BackgroundSaveSettings",
|
|
2945
2949
|
props: {
|
|
2946
2950
|
sdk: {},
|
|
@@ -2952,14 +2956,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2952
2956
|
pickerErrorText: { type: Function }
|
|
2953
2957
|
},
|
|
2954
2958
|
emits: ["authorized", "confirmed", "destinations"],
|
|
2955
|
-
setup(t, { expose:
|
|
2956
|
-
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 = Na({ get admin() {
|
|
2957
2961
|
return a.admin;
|
|
2958
2962
|
}, get locale() {
|
|
2959
2963
|
return a.locale;
|
|
2960
2964
|
}, get ctx() {
|
|
2961
|
-
return
|
|
2962
|
-
} }, 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: L, canConfirm: te } = d, F = y(), Y = y([]), N = y(!1), K = y(!1), B = y(), R = y(!1), A = y(!1), q = y(!1), M = y(""), se = y(), H = _(() => se.value ?? (N.value ? Ce(d.status.value) : void 0));
|
|
2963
2967
|
let G = !1;
|
|
2964
2968
|
async function le() {
|
|
2965
2969
|
let ue;
|
|
@@ -2968,19 +2972,19 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2968
2972
|
} catch (ae) {
|
|
2969
2973
|
const Re = Ce(ae);
|
|
2970
2974
|
if (!Re && ae?.code !== "EXECUTOR_UNAVAILABLE") throw ae;
|
|
2971
|
-
G || (se.value = Re,
|
|
2975
|
+
G || (se.value = Re, N.value = !Re, F.value = void 0, Y.value = []);
|
|
2972
2976
|
return;
|
|
2973
2977
|
}
|
|
2974
2978
|
const pe = await Promise.all((a.picker?.keys ?? []).map((ae) => a.sdk.destination(ae)));
|
|
2975
|
-
G || (se.value = void 0,
|
|
2979
|
+
G || (se.value = void 0, N.value = !1, F.value = ue, Y.value = pe, i("destinations", pe));
|
|
2976
2980
|
}
|
|
2977
2981
|
async function re(ue) {
|
|
2978
2982
|
if (!(G || K.value)) {
|
|
2979
|
-
K.value = !0,
|
|
2983
|
+
K.value = !0, B.value = void 0, R.value = !1;
|
|
2980
2984
|
try {
|
|
2981
2985
|
await ue();
|
|
2982
2986
|
} catch (pe) {
|
|
2983
|
-
G || (
|
|
2987
|
+
G || (B.value = pe);
|
|
2984
2988
|
} finally {
|
|
2985
2989
|
G || (K.value = !1);
|
|
2986
2990
|
}
|
|
@@ -2992,9 +2996,9 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
2992
2996
|
i("authorized", ue), ee();
|
|
2993
2997
|
}
|
|
2994
2998
|
function de(ue) {
|
|
2995
|
-
G || (
|
|
2999
|
+
G || (B.value = ue, R.value = !0);
|
|
2996
3000
|
}
|
|
2997
|
-
const he = _(() => R.value ? a.pickerErrorText?.(
|
|
3001
|
+
const he = _(() => R.value ? a.pickerErrorText?.(B.value) ?? Ye(B.value, u.value, "select", a.locale, a.ctx?.displayName) : Ye(B.value, u.value, "save", a.locale, a.ctx?.displayName)), Ae = (ue) => re(async () => {
|
|
2998
3002
|
if ((await a.sdk.revoke({ delegation_id: ue }))?.revoked !== !0) throw { code: "commit-uncertain" };
|
|
2999
3003
|
await le();
|
|
3000
3004
|
}), _e = () => re(async () => {
|
|
@@ -3008,7 +3012,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3008
3012
|
if (G) return;
|
|
3009
3013
|
const ue = await a.sdk.status(), pe = E.value?.selection;
|
|
3010
3014
|
if (!G) {
|
|
3011
|
-
if (
|
|
3015
|
+
if (L.value) {
|
|
3012
3016
|
const ae = ue.selection;
|
|
3013
3017
|
if (!pe || !ae || ae.scope !== k.value || ae.scope !== pe.scope || ae.generation !== pe.generation || ae.root !== pe.root) throw { code: "commit-uncertain" };
|
|
3014
3018
|
const Re = M.value ? [M.value] : a.picker?.keys ?? [];
|
|
@@ -3030,20 +3034,20 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3030
3034
|
});
|
|
3031
3035
|
}
|
|
3032
3036
|
function ie(ue) {
|
|
3033
|
-
M.value = ue, a.admin &&
|
|
3037
|
+
M.value = ue, a.admin && L.value ? A.value = !0 : q.value = !0;
|
|
3034
3038
|
}
|
|
3035
|
-
const ne = _(() => F.value?.selection), ye = _(() => !F.value && !
|
|
3039
|
+
const ne = _(() => F.value?.selection), ye = _(() => !F.value && !N.value && !B.value && !H.value), Pe = _(() => N.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !ne.value), D = _(() => a.admin && N.value && d.status.value?.state === "blocked" && !d.status.value.retry), U = _(() => !!F.value && !Pe.value && !F.value.disabled), O = _(() => a.admin && (Pe.value || N.value && !!d.status.value?.retry)), Z = _(() => a.picker ? ne.value ? Za(a.picker.provider, ne.value.root) : F.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ce = (ue) => a.picker?.labels?.[ue] ?? u.value.folder, z = _(() => {
|
|
3036
3040
|
const ue = w.value;
|
|
3037
3041
|
return !ue || "confirm" in ue ? "" : ue.code === "session_ended" ? r.value.session : d.explain(ue) ?? r.value.setupError;
|
|
3038
3042
|
}), W = _(() => a.admin && Pe.value && !A.value), I = _(() => x.value || K.value || d.error.value || !te.value);
|
|
3039
3043
|
function ve() {
|
|
3040
|
-
A.value = !1,
|
|
3044
|
+
A.value = !1, p.value = "", w.value = void 0, k.value = E.value?.selection?.scope ?? "";
|
|
3041
3045
|
}
|
|
3042
|
-
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(() => {
|
|
3043
3047
|
ee();
|
|
3044
3048
|
}), we(() => {
|
|
3045
3049
|
G = !0;
|
|
3046
|
-
}), (ue, pe) => (l(),
|
|
3050
|
+
}), (ue, pe) => (l(), g(e(ke), {
|
|
3047
3051
|
title: t.title ?? u.value.title,
|
|
3048
3052
|
description: Pe.value && !A.value ? void 0 : u.value.help,
|
|
3049
3053
|
collapsible: !1,
|
|
@@ -3051,7 +3055,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3051
3055
|
class: "background-save-settings"
|
|
3052
3056
|
}, {
|
|
3053
3057
|
default: n(() => [
|
|
3054
|
-
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), {
|
|
3055
3059
|
key: ae,
|
|
3056
3060
|
label: ce(ae),
|
|
3057
3061
|
"field-width": "full",
|
|
@@ -3064,24 +3068,24 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3064
3068
|
})
|
|
3065
3069
|
]),
|
|
3066
3070
|
_: 1
|
|
3067
|
-
}, 8, ["label"]))), 128)) : H.value ? (l(),
|
|
3071
|
+
}, 8, ["label"]))), 128)) : H.value ? (l(), g(e(j), {
|
|
3068
3072
|
key: 1,
|
|
3069
3073
|
tone: "info",
|
|
3070
3074
|
role: "status"
|
|
3071
3075
|
}, {
|
|
3072
3076
|
default: n(() => [
|
|
3073
|
-
h(s(e(
|
|
3077
|
+
h(s(e(Le)(H.value, t.locale)), 1)
|
|
3074
3078
|
]),
|
|
3075
3079
|
_: 1
|
|
3076
3080
|
})) : (l(), $(oe, { key: 2 }, [
|
|
3077
|
-
|
|
3081
|
+
B.value ? (l(), g(e(j), {
|
|
3078
3082
|
key: 0,
|
|
3079
3083
|
tone: "danger",
|
|
3080
3084
|
role: "alert"
|
|
3081
3085
|
}, {
|
|
3082
3086
|
default: n(() => [
|
|
3083
|
-
S("span",
|
|
3084
|
-
S("span",
|
|
3087
|
+
S("span", Rn, [
|
|
3088
|
+
S("span", In, s(he.value), 1),
|
|
3085
3089
|
v(e(V), {
|
|
3086
3090
|
variant: "secondary",
|
|
3087
3091
|
size: "sm",
|
|
@@ -3096,14 +3100,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3096
3100
|
])
|
|
3097
3101
|
]),
|
|
3098
3102
|
_: 1
|
|
3099
|
-
})) :
|
|
3100
|
-
e(d).error.value ? (l(),
|
|
3103
|
+
})) : b("", !0),
|
|
3104
|
+
e(d).error.value ? (l(), g(e(j), {
|
|
3101
3105
|
key: 1,
|
|
3102
3106
|
tone: "danger",
|
|
3103
3107
|
role: "alert"
|
|
3104
3108
|
}, {
|
|
3105
3109
|
default: n(() => [
|
|
3106
|
-
S("span",
|
|
3110
|
+
S("span", Dn, [
|
|
3107
3111
|
h(s(r.value.setupError), 1),
|
|
3108
3112
|
v(e(V), {
|
|
3109
3113
|
variant: "secondary",
|
|
@@ -3119,41 +3123,41 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3119
3123
|
])
|
|
3120
3124
|
]),
|
|
3121
3125
|
_: 1
|
|
3122
|
-
})) :
|
|
3123
|
-
z.value ? (l(),
|
|
3126
|
+
})) : b("", !0),
|
|
3127
|
+
z.value ? (l(), g(e(j), {
|
|
3124
3128
|
key: 2,
|
|
3125
3129
|
tone: "danger",
|
|
3126
3130
|
role: "alert"
|
|
3127
3131
|
}, {
|
|
3128
3132
|
default: n(() => [
|
|
3129
3133
|
h(s(z.value), 1),
|
|
3130
|
-
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)
|
|
3131
3135
|
]),
|
|
3132
3136
|
_: 1
|
|
3133
|
-
})) :
|
|
3134
|
-
D.value ? (l(),
|
|
3137
|
+
})) : b("", !0),
|
|
3138
|
+
D.value ? (l(), g(e(j), {
|
|
3135
3139
|
key: 3,
|
|
3136
3140
|
tone: "warning"
|
|
3137
3141
|
}, {
|
|
3138
3142
|
default: n(() => [
|
|
3139
3143
|
h(s(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
|
|
3140
|
-
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)
|
|
3141
3145
|
]),
|
|
3142
3146
|
_: 1
|
|
3143
|
-
})) : Pe.value && !t.admin ? (l(),
|
|
3147
|
+
})) : Pe.value && !t.admin ? (l(), g(ea, {
|
|
3144
3148
|
key: 4,
|
|
3145
3149
|
admin: !1,
|
|
3146
3150
|
locale: t.locale,
|
|
3147
3151
|
files: ""
|
|
3148
|
-
}, null, 8, ["locale"])) :
|
|
3149
|
-
F.value?.disabled ? (l(),
|
|
3152
|
+
}, null, 8, ["locale"])) : b("", !0),
|
|
3153
|
+
F.value?.disabled ? (l(), g(e(j), {
|
|
3150
3154
|
key: 5,
|
|
3151
3155
|
tone: "warning"
|
|
3152
3156
|
}, {
|
|
3153
3157
|
default: n(() => [
|
|
3154
|
-
S("span",
|
|
3158
|
+
S("span", Ln, [
|
|
3155
3159
|
S("span", null, s(u.value.disabled), 1),
|
|
3156
|
-
t.admin ? (l(),
|
|
3160
|
+
t.admin ? (l(), g(e(V), {
|
|
3157
3161
|
key: 0,
|
|
3158
3162
|
variant: "secondary",
|
|
3159
3163
|
size: "sm",
|
|
@@ -3164,12 +3168,12 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3164
3168
|
h(s(u.value.enable), 1)
|
|
3165
3169
|
]),
|
|
3166
3170
|
_: 1
|
|
3167
|
-
}, 8, ["disabled"])) :
|
|
3171
|
+
}, 8, ["disabled"])) : b("", !0)
|
|
3168
3172
|
])
|
|
3169
3173
|
]),
|
|
3170
3174
|
_: 1
|
|
3171
|
-
})) :
|
|
3172
|
-
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), {
|
|
3173
3177
|
key: 6,
|
|
3174
3178
|
tone: "warning"
|
|
3175
3179
|
}, {
|
|
@@ -3177,8 +3181,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3177
3181
|
h(s(u.value.reselect), 1)
|
|
3178
3182
|
]),
|
|
3179
3183
|
_: 1
|
|
3180
|
-
})) :
|
|
3181
|
-
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 } : {})), {
|
|
3182
3186
|
default: n(() => [
|
|
3183
3187
|
v(e(Me), {
|
|
3184
3188
|
direction: "vertical",
|
|
@@ -3186,8 +3190,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3186
3190
|
onSubmit: qe(e(d).submit, ["prevent"])
|
|
3187
3191
|
}, {
|
|
3188
3192
|
default: n(() => [
|
|
3189
|
-
A.value ? (l(), $("p", Nn, s(u.value.changeHelp), 1)) :
|
|
3190
|
-
e(
|
|
3193
|
+
A.value ? (l(), $("p", Nn, s(u.value.changeHelp), 1)) : b("", !0),
|
|
3194
|
+
e(L) ? (l(), g(e($e), {
|
|
3191
3195
|
key: 1,
|
|
3192
3196
|
label: u.value.folder,
|
|
3193
3197
|
description: W.value ? u.value.approveHelp : void 0,
|
|
@@ -3203,7 +3207,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3203
3207
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
3204
3208
|
]),
|
|
3205
3209
|
_: 1
|
|
3206
|
-
}, 8, ["label", "description"])) :
|
|
3210
|
+
}, 8, ["label", "description"])) : b("", !0),
|
|
3207
3211
|
v(e($e), {
|
|
3208
3212
|
label: u.value.password,
|
|
3209
3213
|
description: e(P) ? r.value.confirmingHelp : W.value ? r.value.passwordNote : void 0,
|
|
@@ -3224,7 +3228,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3224
3228
|
]),
|
|
3225
3229
|
_: 1
|
|
3226
3230
|
}, 8, ["class", "loading", "disabled"]),
|
|
3227
|
-
A.value ? (l(),
|
|
3231
|
+
A.value ? (l(), g(e(V), {
|
|
3228
3232
|
key: 0,
|
|
3229
3233
|
class: De(ae.afterItem),
|
|
3230
3234
|
type: "button",
|
|
@@ -3236,13 +3240,13 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3236
3240
|
h(s(u.value.cancelChange), 1)
|
|
3237
3241
|
]),
|
|
3238
3242
|
_: 1
|
|
3239
|
-
}, 8, ["class", "disabled"])) :
|
|
3243
|
+
}, 8, ["class", "disabled"])) : b("", !0)
|
|
3240
3244
|
]),
|
|
3241
3245
|
default: n(() => [
|
|
3242
3246
|
v(e(ze), {
|
|
3243
3247
|
id: "save-password",
|
|
3244
|
-
modelValue: e(
|
|
3245
|
-
"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),
|
|
3246
3250
|
type: "password",
|
|
3247
3251
|
autocomplete: "current-password",
|
|
3248
3252
|
invalid: !!e(C),
|
|
@@ -3256,8 +3260,8 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3256
3260
|
}, 8, ["onSubmit"])
|
|
3257
3261
|
]),
|
|
3258
3262
|
_: 1
|
|
3259
|
-
}, 16)) :
|
|
3260
|
-
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), {
|
|
3261
3265
|
key: ae.key,
|
|
3262
3266
|
label: ce(ae.key),
|
|
3263
3267
|
"field-width": "full",
|
|
@@ -3265,14 +3269,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3265
3269
|
}, {
|
|
3266
3270
|
default: n(() => [
|
|
3267
3271
|
S("div", Bn, [
|
|
3268
|
-
ae.status === "active" && ae.destination ? (l(),
|
|
3272
|
+
ae.status === "active" && ae.destination ? (l(), g(e(Ue), {
|
|
3269
3273
|
key: 0,
|
|
3270
3274
|
path: ae.destination.path
|
|
3271
|
-
}, null, 8, ["path"])) : (l(), $("span",
|
|
3275
|
+
}, null, 8, ["path"])) : (l(), $("span", On, s(u.value.folderNone), 1)),
|
|
3272
3276
|
v(e(V), {
|
|
3273
3277
|
variant: "secondary",
|
|
3274
3278
|
size: "sm",
|
|
3275
|
-
disabled: K.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(
|
|
3279
|
+
disabled: K.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(L) || e(d).error.value : !Z.value),
|
|
3276
3280
|
onClick: (Re) => ie(ae.key)
|
|
3277
3281
|
}, {
|
|
3278
3282
|
default: n(() => [
|
|
@@ -3280,7 +3284,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3280
3284
|
]),
|
|
3281
3285
|
_: 1
|
|
3282
3286
|
}, 8, ["disabled", "onClick"]),
|
|
3283
|
-
ae.status === "active" && ae.destination ? (l(),
|
|
3287
|
+
ae.status === "active" && ae.destination ? (l(), g(e(V), {
|
|
3284
3288
|
key: 2,
|
|
3285
3289
|
variant: "ghost",
|
|
3286
3290
|
size: "sm",
|
|
@@ -3291,14 +3295,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3291
3295
|
h(s(u.value.revoke), 1)
|
|
3292
3296
|
]),
|
|
3293
3297
|
_: 1
|
|
3294
|
-
}, 8, ["disabled", "onClick"])) :
|
|
3298
|
+
}, 8, ["disabled", "onClick"])) : b("", !0)
|
|
3295
3299
|
])
|
|
3296
3300
|
]),
|
|
3297
3301
|
_: 2
|
|
3298
|
-
}, 1032, ["label"]))), 128)) :
|
|
3302
|
+
}, 1032, ["label"]))), 128)) : b("", !0)
|
|
3299
3303
|
], 64)),
|
|
3300
3304
|
be(ue.$slots, "default", {}, void 0, !0),
|
|
3301
|
-
Z.value ? (l(),
|
|
3305
|
+
Z.value ? (l(), g(ta, {
|
|
3302
3306
|
key: ne.value?.scope,
|
|
3303
3307
|
open: q.value,
|
|
3304
3308
|
"onUpdate:open": pe[2] || (pe[2] = (ae) => q.value = ae),
|
|
@@ -3310,15 +3314,15 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3310
3314
|
onAuthorized: Q,
|
|
3311
3315
|
onRefused: de,
|
|
3312
3316
|
"error-text": t.pickerErrorText
|
|
3313
|
-
}, null, 8, ["open", "provider", "locale", "name", "destination", "error-text"])) :
|
|
3317
|
+
}, null, 8, ["open", "provider", "locale", "name", "destination", "error-text"])) : b("", !0)
|
|
3314
3318
|
]),
|
|
3315
3319
|
_: 3
|
|
3316
3320
|
}, 8, ["title", "description", "aria-busy"]));
|
|
3317
3321
|
}
|
|
3318
|
-
}),
|
|
3322
|
+
}), qn = /* @__PURE__ */ me(Fn, [["__scopeId", "data-v-79ce68f8"]]), Mn = { class: "background-save-panel" }, Kn = {
|
|
3319
3323
|
key: 1,
|
|
3320
3324
|
class: "save-example"
|
|
3321
|
-
},
|
|
3325
|
+
}, Hn = { class: "save-help" }, Xn = { class: "save-actions" }, Wn = /* @__PURE__ */ fe({
|
|
3322
3326
|
__name: "BackgroundSavePanel",
|
|
3323
3327
|
props: {
|
|
3324
3328
|
sdk: {},
|
|
@@ -3331,25 +3335,25 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3331
3335
|
sampleSave: { type: Boolean }
|
|
3332
3336
|
},
|
|
3333
3337
|
emits: ["authorized"],
|
|
3334
|
-
setup(t, { expose:
|
|
3335
|
-
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();
|
|
3336
3340
|
async function P(C) {
|
|
3337
|
-
if (
|
|
3338
|
-
|
|
3341
|
+
if (p.value) return;
|
|
3342
|
+
p.value = !0, x.value = void 0;
|
|
3339
3343
|
const E = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (k) => k.toString(16).padStart(2, "0")).join("");
|
|
3340
3344
|
try {
|
|
3341
3345
|
await a.sdk.exportExample({ key: C, job_id: E });
|
|
3342
3346
|
} catch (k) {
|
|
3343
3347
|
x.value = k;
|
|
3344
3348
|
} finally {
|
|
3345
|
-
|
|
3349
|
+
p.value = !1;
|
|
3346
3350
|
}
|
|
3347
3351
|
}
|
|
3348
3352
|
const w = (C) => a.picker?.labels?.[C] ? `${u.value.example}${r.value}${a.picker.labels[C]}` : u.value.example;
|
|
3349
|
-
return
|
|
3350
|
-
v(
|
|
3353
|
+
return m({ refresh: d }), (C, E) => (l(), $("div", Mn, [
|
|
3354
|
+
v(qn, {
|
|
3351
3355
|
ref_key: "settings",
|
|
3352
|
-
ref:
|
|
3356
|
+
ref: f,
|
|
3353
3357
|
sdk: t.sdk,
|
|
3354
3358
|
admin: t.admin,
|
|
3355
3359
|
locale: t.locale,
|
|
@@ -3361,7 +3365,7 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3361
3365
|
onDestinations: E[1] || (E[1] = (k) => c.value = k.filter((T) => T.status === "active"))
|
|
3362
3366
|
}, {
|
|
3363
3367
|
default: n(() => [
|
|
3364
|
-
x.value ? (l(),
|
|
3368
|
+
x.value ? (l(), g(e(j), {
|
|
3365
3369
|
key: 0,
|
|
3366
3370
|
tone: "danger",
|
|
3367
3371
|
role: "alert"
|
|
@@ -3370,14 +3374,14 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3370
3374
|
h(s(e(Ye)(x.value, u.value, "save", t.locale, t.ctx?.displayName)), 1)
|
|
3371
3375
|
]),
|
|
3372
3376
|
_: 1
|
|
3373
|
-
})) :
|
|
3374
|
-
t.sampleSave && c.value.length ? (l(), $("div",
|
|
3375
|
-
S("p",
|
|
3376
|
-
S("div",
|
|
3377
|
-
(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), {
|
|
3378
3382
|
key: k.key,
|
|
3379
3383
|
variant: "secondary",
|
|
3380
|
-
disabled:
|
|
3384
|
+
disabled: p.value,
|
|
3381
3385
|
onClick: (T) => P(k.key)
|
|
3382
3386
|
}, {
|
|
3383
3387
|
default: n(() => [
|
|
@@ -3386,34 +3390,34 @@ const dl = ["aria-busy", "aria-label"], cl = { class: "file-toolbar file-locatio
|
|
|
3386
3390
|
_: 2
|
|
3387
3391
|
}, 1032, ["disabled", "onClick"]))), 128))
|
|
3388
3392
|
])
|
|
3389
|
-
])) :
|
|
3393
|
+
])) : b("", !0)
|
|
3390
3394
|
]),
|
|
3391
3395
|
_: 1
|
|
3392
3396
|
}, 8, ["sdk", "admin", "locale", "title", "picker", "ctx", "picker-error-text"])
|
|
3393
3397
|
]));
|
|
3394
3398
|
}
|
|
3395
|
-
}),
|
|
3396
|
-
function
|
|
3397
|
-
const { code:
|
|
3398
|
-
return !!
|
|
3399
|
+
}), ho = /* @__PURE__ */ me(Wn, [["__scopeId", "data-v-05618cb8"]]);
|
|
3400
|
+
function Gn(t) {
|
|
3401
|
+
const { code: m, message: o } = t ?? {};
|
|
3402
|
+
return !!Ne(t) || typeof m == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(m) || m === "bad_response" && /HTTP 40[13]\b/.test(String(o));
|
|
3399
3403
|
}
|
|
3400
3404
|
const Ka = /* @__PURE__ */ Symbol("authorization");
|
|
3401
|
-
function
|
|
3405
|
+
function Jn() {
|
|
3402
3406
|
const t = Ee(Ka, void 0);
|
|
3403
3407
|
if (!t) throw Error("authorization controls must be placed inside AuthorizationGate");
|
|
3404
3408
|
return t;
|
|
3405
3409
|
}
|
|
3406
|
-
const
|
|
3410
|
+
const Yn = { class: "authorization-content" }, Qn = ["aria-busy", "data-authorization-state"], Zn = { class: "authorization-body" }, jn = /* @__PURE__ */ fe({
|
|
3407
3411
|
__name: "AuthorizationGate",
|
|
3408
3412
|
props: {
|
|
3409
3413
|
ctx: {},
|
|
3410
3414
|
name: {}
|
|
3411
3415
|
},
|
|
3412
3416
|
emits: ["ready"],
|
|
3413
|
-
setup(t, { emit:
|
|
3414
|
-
const o = t, a =
|
|
3415
|
-
let
|
|
3416
|
-
const T = _(() => ja(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")),
|
|
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;
|
|
3420
|
+
const T = _(() => ja(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")), L = _(() => i.value || u.value), te = _(() => L.value?.state === "authorization_required"), F = _(() => ["helper_untrusted", "cli_untrusted"].includes(L.value?.reason || "")), Y = _(() => te.value && !F.value), N = _(() => L.value?.state === "unavailable" ? Ce(L.value) : void 0), K = _(() => N.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[L.value?.reason ?? ""] ?? "unavailable"), B = _(() => da({ code: L.value?.reason }, o.ctx.locale, o.name ?? o.ctx.displayName)), R = _(() => B.value?.title ?? (L.value ? te.value ? T.value("title") : L.value.state === "ready" ? T.value("ready") : L.value.state === "not_admin" ? T.value("not_admin.title") : L.value.state === "session_expired" ? T.value("session_expired.title") : T.value(K.value + ".title") : T.value("checking"))), A = _(() => B.value?.message ?? (te.value ? T.value("purpose") : L.value?.state === "not_admin" ? T.value("not_admin.body") : L.value?.state === "session_expired" ? T.value("session_expired.body") : L.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(L.value?.reason || "") ? L.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");
|
|
3417
3421
|
function H(J) {
|
|
3418
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");
|
|
3419
3423
|
return J;
|
|
@@ -3421,17 +3425,17 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3421
3425
|
const G = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
|
|
3422
3426
|
function le(J) {
|
|
3423
3427
|
const { code: ie } = J ?? {}, ne = Ce(J);
|
|
3424
|
-
return ne ? ne === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie :
|
|
3428
|
+
return ne ? ne === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie : Ne(J) ? Ne(J) : Gn(J) ? "access_denied" : typeof ie == "string" && G.includes(ie) || ie === void 0 ? "service_unavailable" : "check_failed";
|
|
3425
3429
|
}
|
|
3426
3430
|
let re;
|
|
3427
3431
|
function ee() {
|
|
3428
|
-
clearTimeout(C),
|
|
3432
|
+
clearTimeout(C), N.value !== re && (re = N.value, E = 0), N.value && (C = setTimeout(() => {
|
|
3429
3433
|
r.value ? w = !0 : de("status");
|
|
3430
|
-
}, ca(E++,
|
|
3434
|
+
}, ca(E++, N.value)));
|
|
3431
3435
|
}
|
|
3432
3436
|
const X = [1e3, 3e3];
|
|
3433
3437
|
async function Q(J) {
|
|
3434
|
-
const ie = J === "status" && !
|
|
3438
|
+
const ie = J === "status" && !f.value ? X : [];
|
|
3435
3439
|
for (let ne = 0; ; ne++) {
|
|
3436
3440
|
try {
|
|
3437
3441
|
const ye = H(await o.ctx.authorization?.[J]());
|
|
@@ -3449,40 +3453,40 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3449
3453
|
try {
|
|
3450
3454
|
const ne = await Q(J);
|
|
3451
3455
|
if (x || ie !== P) return;
|
|
3452
|
-
i.value = ne,
|
|
3456
|
+
i.value = ne, f.value = ne.state !== "ready", ne.state === "ready" && he(!0), ne.state === "ready" && a("ready");
|
|
3453
3457
|
} catch (ne) {
|
|
3454
|
-
!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 = !
|
|
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 = !B.value && K.value === "unavailable", f.value = !0);
|
|
3455
3459
|
} finally {
|
|
3456
3460
|
!x && ie === P && (r.value = !1, u.value = void 0, w ? (w = !1, de("status")) : ee());
|
|
3457
3461
|
}
|
|
3458
3462
|
}
|
|
3459
3463
|
function he(J) {
|
|
3460
|
-
const ie =
|
|
3461
|
-
|
|
3464
|
+
const ie = p;
|
|
3465
|
+
p = [], ie.forEach((ne) => ne(J));
|
|
3462
3466
|
}
|
|
3463
3467
|
function Ae(J) {
|
|
3464
|
-
|
|
3468
|
+
f.value = J, J || he(!1);
|
|
3465
3469
|
}
|
|
3466
3470
|
function _e() {
|
|
3467
|
-
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)));
|
|
3468
3472
|
}
|
|
3469
|
-
return
|
|
3473
|
+
return Be(Ka, { state: _(() => i.value?.state ?? "checking"), requireAuthorization: _e, text: T, busy: r, canManage: () => !!o.ctx.authorization?.canManage?.(), revoke: () => de("revoke") }), Se(() => {
|
|
3470
3474
|
k = o.ctx.reopen(() => {
|
|
3471
3475
|
r.value ? w = !0 : de("status");
|
|
3472
3476
|
}), de("status");
|
|
3473
3477
|
}), Ra(() => {
|
|
3474
3478
|
x = !0, P++, clearTimeout(C), he(!1), typeof k == "function" && k();
|
|
3475
3479
|
}), (J, ie) => (l(), $(oe, null, [
|
|
3476
|
-
S("div",
|
|
3480
|
+
S("div", Yn, [
|
|
3477
3481
|
be(J.$slots, "default", {}, void 0, !0)
|
|
3478
3482
|
]),
|
|
3479
3483
|
v(e(Ge), {
|
|
3480
|
-
open:
|
|
3484
|
+
open: f.value && !e(d),
|
|
3481
3485
|
title: R.value,
|
|
3482
3486
|
"onUpdate:open": Ae
|
|
3483
3487
|
}, {
|
|
3484
3488
|
footer: n(() => [
|
|
3485
|
-
Y.value ? (l(),
|
|
3489
|
+
Y.value ? (l(), g(e(V), {
|
|
3486
3490
|
key: 0,
|
|
3487
3491
|
variant: "primary",
|
|
3488
3492
|
loading: r.value,
|
|
@@ -3493,7 +3497,7 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3493
3497
|
h(s(r.value ? T.value("authorizing") : T.value("authorize")), 1)
|
|
3494
3498
|
]),
|
|
3495
3499
|
_: 1
|
|
3496
|
-
}, 8, ["loading", "disabled"])) : (l(),
|
|
3500
|
+
}, 8, ["loading", "disabled"])) : (l(), g(e(V), {
|
|
3497
3501
|
key: 1,
|
|
3498
3502
|
variant: "primary",
|
|
3499
3503
|
loading: r.value,
|
|
@@ -3512,8 +3516,8 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3512
3516
|
"aria-busy": r.value,
|
|
3513
3517
|
"data-authorization-state": i.value?.state || "checking"
|
|
3514
3518
|
}, [
|
|
3515
|
-
S("p",
|
|
3516
|
-
te.value ? (l(),
|
|
3519
|
+
S("p", Zn, s(A.value), 1),
|
|
3520
|
+
te.value ? (l(), g(e(j), {
|
|
3517
3521
|
key: 0,
|
|
3518
3522
|
class: "authorization-status",
|
|
3519
3523
|
tone: ["grant_missing", "upgrade_reapproval"].includes(M.value) ? "info" : "warning",
|
|
@@ -3523,8 +3527,8 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3523
3527
|
h(s(T.value(se.value)), 1)
|
|
3524
3528
|
]),
|
|
3525
3529
|
_: 1
|
|
3526
|
-
}, 8, ["tone", "title"])) :
|
|
3527
|
-
c.value ? (l(),
|
|
3530
|
+
}, 8, ["tone", "title"])) : b("", !0),
|
|
3531
|
+
c.value ? (l(), g(e(j), {
|
|
3528
3532
|
key: 1,
|
|
3529
3533
|
class: "authorization-failed",
|
|
3530
3534
|
tone: "warning"
|
|
@@ -3533,21 +3537,21 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3533
3537
|
h(s(T.value("failed")), 1)
|
|
3534
3538
|
]),
|
|
3535
3539
|
_: 1
|
|
3536
|
-
})) :
|
|
3537
|
-
], 8,
|
|
3540
|
+
})) : b("", !0)
|
|
3541
|
+
], 8, Qn)
|
|
3538
3542
|
]),
|
|
3539
3543
|
_: 1
|
|
3540
3544
|
}, 8, ["open", "title"])
|
|
3541
3545
|
], 64));
|
|
3542
3546
|
}
|
|
3543
|
-
}),
|
|
3547
|
+
}), ko = /* @__PURE__ */ me(jn, [["__scopeId", "data-v-42db0617"]]), eo = { class: "authorization-setting" }, ao = {
|
|
3544
3548
|
class: "authorization-state",
|
|
3545
3549
|
role: "status"
|
|
3546
|
-
},
|
|
3550
|
+
}, to = { class: "authorization-revoke-body" }, lo = /* @__PURE__ */ fe({
|
|
3547
3551
|
__name: "AuthorizationSettings",
|
|
3548
3552
|
setup(t) {
|
|
3549
|
-
const { state:
|
|
3550
|
-
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, [
|
|
3551
3555
|
v(e(ke), {
|
|
3552
3556
|
title: e(a)("settings.title"),
|
|
3553
3557
|
collapsible: !1
|
|
@@ -3559,35 +3563,35 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3559
3563
|
align: "center"
|
|
3560
3564
|
}, {
|
|
3561
3565
|
default: n(() => [
|
|
3562
|
-
S("div",
|
|
3563
|
-
S("span",
|
|
3564
|
-
e(
|
|
3566
|
+
S("div", eo, [
|
|
3567
|
+
S("span", ao, [
|
|
3568
|
+
e(m) === "ready" ? (l(), g(e(Ia), {
|
|
3565
3569
|
key: 0,
|
|
3566
3570
|
size: 16,
|
|
3567
3571
|
"aria-hidden": "true"
|
|
3568
|
-
})) :
|
|
3569
|
-
h(s(e(a)(
|
|
3572
|
+
})) : b("", !0),
|
|
3573
|
+
h(s(e(a)(f[e(m)])), 1)
|
|
3570
3574
|
]),
|
|
3571
|
-
e(
|
|
3575
|
+
e(m) === "ready" && e(u)() ? (l(), g(e(V), {
|
|
3572
3576
|
key: 0,
|
|
3573
3577
|
variant: "secondary",
|
|
3574
3578
|
disabled: e(i),
|
|
3575
|
-
onClick:
|
|
3579
|
+
onClick: p[0] || (p[0] = (x) => c.value = !0)
|
|
3576
3580
|
}, {
|
|
3577
3581
|
default: n(() => [
|
|
3578
3582
|
h(s(e(a)("revoke")), 1)
|
|
3579
3583
|
]),
|
|
3580
3584
|
_: 1
|
|
3581
|
-
}, 8, ["disabled"])) : e(
|
|
3585
|
+
}, 8, ["disabled"])) : e(m) !== "ready" && e(m) !== "checking" ? (l(), g(e(V), {
|
|
3582
3586
|
key: 1,
|
|
3583
3587
|
variant: "secondary",
|
|
3584
|
-
onClick:
|
|
3588
|
+
onClick: p[1] || (p[1] = (x) => e(o)())
|
|
3585
3589
|
}, {
|
|
3586
3590
|
default: n(() => [
|
|
3587
3591
|
h(s(e(a)("settings.details")), 1)
|
|
3588
3592
|
]),
|
|
3589
3593
|
_: 1
|
|
3590
|
-
})) :
|
|
3594
|
+
})) : b("", !0)
|
|
3591
3595
|
])
|
|
3592
3596
|
]),
|
|
3593
3597
|
_: 1
|
|
@@ -3597,13 +3601,13 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3597
3601
|
}, 8, ["title"]),
|
|
3598
3602
|
v(e(Ge), {
|
|
3599
3603
|
open: c.value,
|
|
3600
|
-
"onUpdate:open":
|
|
3604
|
+
"onUpdate:open": p[4] || (p[4] = (x) => c.value = x),
|
|
3601
3605
|
title: e(a)("revoke.title")
|
|
3602
3606
|
}, {
|
|
3603
3607
|
footer: n(() => [
|
|
3604
3608
|
v(e(V), {
|
|
3605
3609
|
variant: "secondary",
|
|
3606
|
-
onClick:
|
|
3610
|
+
onClick: p[2] || (p[2] = (x) => c.value = !1)
|
|
3607
3611
|
}, {
|
|
3608
3612
|
default: n(() => [
|
|
3609
3613
|
h(s(e(a)("cancel")), 1)
|
|
@@ -3613,7 +3617,7 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3613
3617
|
v(e(V), {
|
|
3614
3618
|
variant: "danger",
|
|
3615
3619
|
disabled: e(i),
|
|
3616
|
-
onClick:
|
|
3620
|
+
onClick: p[3] || (p[3] = (x) => {
|
|
3617
3621
|
c.value = !1, e(r)();
|
|
3618
3622
|
})
|
|
3619
3623
|
}, {
|
|
@@ -3624,97 +3628,101 @@ const Jn = { class: "authorization-content" }, Yn = ["aria-busy", "data-authoriz
|
|
|
3624
3628
|
}, 8, ["disabled"])
|
|
3625
3629
|
]),
|
|
3626
3630
|
default: n(() => [
|
|
3627
|
-
S("p",
|
|
3631
|
+
S("p", to, s(e(a)("revoke.body")), 1)
|
|
3628
3632
|
]),
|
|
3629
3633
|
_: 1
|
|
3630
3634
|
}, 8, ["open", "title"])
|
|
3631
3635
|
], 64));
|
|
3632
3636
|
}
|
|
3633
|
-
}),
|
|
3637
|
+
}), wo = /* @__PURE__ */ me(lo, [["__scopeId", "data-v-fc7dce79"]]);
|
|
3634
3638
|
export {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
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,
|
|
3645
3649
|
Ua as ExecutorPreloadKey,
|
|
3646
|
-
|
|
3650
|
+
Ba as ExecutorSettings,
|
|
3647
3651
|
We as ExecutorSetupKey,
|
|
3648
|
-
|
|
3652
|
+
$o as FILE_STATION_APP,
|
|
3649
3653
|
Ma as FileBrowser,
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
+
fo as FilesPage,
|
|
3655
|
+
So as LIFECYCLE_RETRY_MAX_MS,
|
|
3656
|
+
Po as LIFECYCLE_STARTING_RETRY_MAX_MS,
|
|
3657
|
+
mo as LoginPage,
|
|
3658
|
+
Eo as MAX_LAUNCH_ROUTE,
|
|
3654
3659
|
ta as NasPicker,
|
|
3655
|
-
|
|
3660
|
+
co as PageActions,
|
|
3656
3661
|
Oa as PageActionsTarget,
|
|
3657
|
-
|
|
3662
|
+
vo as PageInfo,
|
|
3658
3663
|
Fa as PageInfoTarget,
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3664
|
+
po as PortalSettings,
|
|
3665
|
+
To as activePage,
|
|
3666
|
+
Ne as appDenial,
|
|
3662
3667
|
Ce as appLifecycle,
|
|
3663
3668
|
da as appRefusal,
|
|
3664
|
-
|
|
3669
|
+
zo as authorizationCatalogs,
|
|
3665
3670
|
ja as authorizationCopy,
|
|
3666
|
-
|
|
3671
|
+
Ao as backgroundCatalogs,
|
|
3667
3672
|
Wa as backgroundCopy,
|
|
3668
3673
|
Ja as backgroundErrorCopy,
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3674
|
+
Ro as bridgeCatalogs,
|
|
3675
|
+
Io as bridgeErrorCopy,
|
|
3676
|
+
Do as catalogs,
|
|
3677
|
+
Uo as clientTimeout,
|
|
3673
3678
|
Ga as createBackgroundPickerProvider,
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3679
|
+
Vo as createBackgroundSaveFacade,
|
|
3680
|
+
Lo as createDsmSession,
|
|
3681
|
+
No as createFileTransfers,
|
|
3677
3682
|
Pa as createNasProvider,
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3683
|
+
Bo as createPortalAccess,
|
|
3684
|
+
uo as createSession,
|
|
3685
|
+
Oo as createStandaloneContext,
|
|
3686
|
+
Fo as createStandaloneHost,
|
|
3687
|
+
qo as decodeResponse,
|
|
3688
|
+
Mo as delegateCatalogs,
|
|
3684
3689
|
Ve as delegateCopy,
|
|
3685
|
-
|
|
3690
|
+
Ko as dsmLaunchURL,
|
|
3691
|
+
Ho as encodeRequest,
|
|
3686
3692
|
Qa as errorCopy,
|
|
3687
|
-
|
|
3693
|
+
Xo as fileStationPath,
|
|
3694
|
+
Wo as followLaunchRoute,
|
|
3688
3695
|
Je as format,
|
|
3689
|
-
|
|
3696
|
+
Go as identityCatalogs,
|
|
3690
3697
|
Xa as identityCopy,
|
|
3691
3698
|
$a as isFullPage,
|
|
3692
3699
|
Ea as labelSeparator,
|
|
3693
|
-
|
|
3700
|
+
Jo as launchRoute,
|
|
3701
|
+
Le as lifecycleCopy,
|
|
3694
3702
|
Ya as lifecycleRefusal,
|
|
3695
3703
|
ca as lifecycleRetryDelay,
|
|
3696
|
-
|
|
3697
|
-
|
|
3704
|
+
Yo as mergeCatalogs,
|
|
3705
|
+
Qo as nasCatalogs,
|
|
3698
3706
|
Te as nasCopy,
|
|
3699
3707
|
Sa as nasErrorCopy,
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3708
|
+
Zo as openFileInFileStation,
|
|
3709
|
+
jo as openFolderInFileStation,
|
|
3710
|
+
es as portalCatalogs,
|
|
3711
|
+
as as portalMessages,
|
|
3712
|
+
ts as protocolCodes,
|
|
3713
|
+
ls as protocolOps,
|
|
3714
|
+
ns as protocolSchemas,
|
|
3707
3715
|
ba as requestKey,
|
|
3708
|
-
|
|
3716
|
+
os as saveCatalogs,
|
|
3709
3717
|
fa as saveCopy,
|
|
3710
3718
|
Ye as saveError,
|
|
3711
3719
|
Za as scopedPicker,
|
|
3712
|
-
|
|
3720
|
+
ss as shellCatalogs,
|
|
3713
3721
|
sa as shellCopy,
|
|
3714
|
-
|
|
3722
|
+
is as shellPages,
|
|
3715
3723
|
va as uiLocale,
|
|
3716
|
-
|
|
3717
|
-
|
|
3724
|
+
us as uiLocales,
|
|
3725
|
+
Jn as useAuthorization,
|
|
3718
3726
|
_t as useExecutorPreload,
|
|
3719
3727
|
Va as useExecutorSetup,
|
|
3720
3728
|
$t as useNasRequest
|