@synopackageland/sdk 0.38.4 → 0.38.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/vue.js +570 -567
- package/executor-manifest.json +1 -1
- package/package.json +1 -1
package/dist/vue.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { appRefusal as
|
|
2
|
-
import { DEFAULT_REQUEST_TIMEOUT as
|
|
3
|
-
import { inject as Te, ref as b, computed as w, onBeforeUnmount as ge, Comment as nt, Text as st, Fragment as Z, watch as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { appRefusal as na, appDenial as Fe, delegateCopy as Re, createDsmFileStation as Ya, appLifecycle as Se, lifecycleRetryDelay as fa, uiLocale as pa, lifecycleCopy as Ve, shellCopy as je, isFullPage as Ea, format as We, nasCopy as ze, nasErrorCopy as Ta, saveCopy as ma, saveError as Ze, createNasProvider as za, labelSeparator as ya, identityCopy as Aa, backgroundCopy as Qa, createBackgroundPickerProvider as ja, backgroundErrorCopy as Za, requestKey as da, lifecycleRefusal as et, errorCopy as at, scopedPicker as tt, authorizationCopy as Ra, createEntryCheck as lt } from "./index.js";
|
|
2
|
+
import { DEFAULT_REQUEST_TIMEOUT as Qs, FILE_STATION_APP as js, LIFECYCLE_RETRY_MAX_MS as Zs, LIFECYCLE_STARTING_RETRY_MAX_MS as eo, MAX_LAUNCH_ROUTE as ao, activePage as to, authorizationCatalogs as lo, backgroundCatalogs as no, bridgeCatalogs as so, bridgeErrorCopy as oo, catalogs as io, clientTimeout as uo, createBackgroundSaveFacade as ro, createClient as co, createDsmSession as vo, createFileTransfers as fo, createPortalAccess as po, createSharedFolderAccess as mo, createSharedFolderPermission as yo, createStandaloneContext as bo, createStandaloneHost as go, decodeResponse as ho, delegateCatalogs as ko, dsmLaunchURL as _o, encodeRequest as wo, fileStationPath as xo, followLaunchRoute as Co, identityCatalogs as $o, launchRoute as So, mergeCatalogs as Po, nasCatalogs as Eo, openFileInFileStation as To, openFolderInFileStation as zo, portalCatalogs as Ao, portalMessages as Ro, protocolCodes as Uo, protocolOps as Io, protocolSchemas as Do, readDsmPorts as No, saveCatalogs as Lo, sharedFolderAccessFor as Vo, sharedFolderCatalogs as Bo, sharedFolderMessages as Fo, sharedFolderPermissionMessage as Oo, shellCatalogs as qo, shellPages as Mo, uiLocales as Ko } from "./index.js";
|
|
3
|
+
import { inject as Te, ref as b, computed as w, onBeforeUnmount as ge, Comment as nt, Text as st, Fragment as Z, watch as qe, onMounted as we, defineComponent as de, openBlock as l, createElementBlock as _, createElementVNode as S, toDisplayString as o, createCommentVNode as y, renderList as pe, normalizeClass as De, createVNode as p, unref as e, createTextVNode as h, createBlock as g, renderSlot as he, withCtx as s, resolveDynamicComponent as Xe, normalizeProps as ea, mergeProps as ba, withModifiers as Me, isRef as aa, provide as Oe, useTemplateRef as Ge, useSlots as Ua, watchEffect as ka, guardReactiveProps as _a, createSlots as sa, Teleport as Ia, markRaw as ot, h as it, shallowRef as ut, onUnmounted as Da, nextTick as rt } from "vue";
|
|
4
|
+
import { Timer as dt, Info as ct, ShieldCheck as Na, ChevronRight as La, LogOut as vt, ChevronLeft as ft, RotateCw as pt } from "@lucide/vue";
|
|
5
|
+
import { SettingsSection as _e, Callout as Q, Button as I, SettingsRow as xe, Skeleton as Ne, Badge as Je, PathDisplay as Le, Form as Ke, FormItem as Pe, Select as ga, Input as Ae, Dialog as Be, ensureDeviceViewport as mt, AppRoot as yt, ConfigProvider as bt, PageContent as wa, PageHeader as xa, AppLayout as gt, LoadingArea as Va, AppSidebar as ht, AppSidebarUser as kt, IconButton as Qe, InfoTip as _t, FileTypeIcon as ua, Breadcrumb as wt, FilePicker as xt, TreeView as Ct, DataGrid as $t, Link as ca, FormActions as oa, Card as Ca, Checkbox as St, ListItem as $a } from "@synopackageland/ui";
|
|
6
6
|
const Ye = /* @__PURE__ */ Symbol("executor-setup"), Ba = /* @__PURE__ */ Symbol("executor-preload");
|
|
7
|
-
function
|
|
7
|
+
function Pt() {
|
|
8
8
|
return Te(Ba, b(!1));
|
|
9
9
|
}
|
|
10
10
|
function Fa() {
|
|
@@ -20,19 +20,19 @@ function Fa() {
|
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
function
|
|
23
|
+
const Et = ["password_rejected", "password_required", "password_confirm_failed"];
|
|
24
|
+
function ta(t) {
|
|
25
25
|
if (t.state !== "blocked") return;
|
|
26
|
-
if (t.code) return
|
|
26
|
+
if (t.code) return Et.includes(t.code) ? t.code : void 0;
|
|
27
27
|
const c = t.reason ?? "";
|
|
28
28
|
if (/^dsm_3121\b/.test(c)) return "password_rejected";
|
|
29
29
|
if (/^\S+: administrator password confirmation failed\./.test(c)) return "password_confirm_failed";
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Tt(t) {
|
|
32
32
|
return /: the executor status request failed\.$/.test(t ?? "");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const c = b(), n = w(() => c.value ? { code: c.value, ...
|
|
34
|
+
function Us(t) {
|
|
35
|
+
const c = b(), n = w(() => c.value ? { code: c.value, ...na({ code: c.value }, t.locale, t.displayName) } : void 0), a = b(!1), u = b(!1), i = b(), r = b("");
|
|
36
36
|
let f = !1, m = 0, d, v;
|
|
37
37
|
function x() {
|
|
38
38
|
clearTimeout(d), clearTimeout(v);
|
|
@@ -128,7 +128,7 @@ function Rs(t) {
|
|
|
128
128
|
}
|
|
129
129
|
return { enabled: a, ready: u, subject: i, notice: r, denied: n, start: C, call: T, batch: A, login: ae, bootstrap: F, logout: G, dispose: X };
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function zt() {
|
|
132
132
|
const t = b(!1), c = b();
|
|
133
133
|
let n = !1, a = 0, u;
|
|
134
134
|
function i() {
|
|
@@ -153,7 +153,7 @@ function Tt() {
|
|
|
153
153
|
}), { busy: t, error: c, run: r, cancel: i };
|
|
154
154
|
}
|
|
155
155
|
const Sa = ".sds-standalone-main-window";
|
|
156
|
-
function
|
|
156
|
+
function At(t) {
|
|
157
157
|
const c = { brand: !1, user: !1 };
|
|
158
158
|
try {
|
|
159
159
|
const n = t.closest(Sa);
|
|
@@ -177,20 +177,20 @@ function zt(t) {
|
|
|
177
177
|
return c;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Oa(t) {
|
|
181
181
|
return Array.isArray(t) && t.some((c) => {
|
|
182
182
|
const n = c;
|
|
183
|
-
return n.type === nt ? !1 : n.type === st ? String(n.children).trim() !== "" : n.type === Z ?
|
|
183
|
+
return n.type === nt ? !1 : n.type === st ? String(n.children).trim() !== "" : n.type === Z ? Oa(n.children) : !0;
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Rt(t) {
|
|
187
187
|
return Array.from(t.childNodes).some((c) => c.nodeType === Node.ELEMENT_NODE || c.nodeType === Node.TEXT_NODE && c.textContent.trim() !== "");
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
return t.map((n) => typeof n == "string" ? { id: n, title: c[n], icon:
|
|
189
|
+
const Ut = { status: ct, background: dt };
|
|
190
|
+
function It(t, c) {
|
|
191
|
+
return t.map((n) => typeof n == "string" ? { id: n, title: c[n], icon: Ut[n] } : n);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Dt(t) {
|
|
194
194
|
const c = /* @__PURE__ */ new Map(), n = { items: [] };
|
|
195
195
|
for (const a of t) {
|
|
196
196
|
if (a.hidden) continue;
|
|
@@ -199,10 +199,10 @@ function It(t) {
|
|
|
199
199
|
}
|
|
200
200
|
return n.items.length ? [...c.values(), n] : [...c.values()];
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
-
const n = Fa(), a = w(() => Re(t.locale)), u = b(), i = b(""), r = b(!1), f = b(!1), m = b(!1), d = b(), v = b(!1), x = w(() => v.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[
|
|
205
|
-
|
|
202
|
+
const Nt = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Lt = 6e4, Vt = 1e3;
|
|
203
|
+
function qa(t, c) {
|
|
204
|
+
const n = Fa(), a = w(() => Re(t.locale)), u = b(), i = b(""), r = b(!1), f = b(!1), m = b(!1), d = b(), v = b(!1), x = w(() => v.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[Nt[d.value.confirm]] : "");
|
|
205
|
+
qe(i, () => {
|
|
206
206
|
v.value = !1;
|
|
207
207
|
});
|
|
208
208
|
const P = b(), k = b(""), $ = b([]), z = Ya(), C = w(() => P.value?.scope_mode === "install-selected"), T = w(() => !!P.value?.scope_mode), A = w(() => [{ label: a.value.homeScope, value: "home" }, ...$.value]), ae = w(() => !C.value || !!k.value && A.value.some((N) => N.value === k.value)), F = w(() => C.value && !P.value?.selection);
|
|
@@ -210,8 +210,8 @@ function Oa(t, c) {
|
|
|
210
210
|
async function X(N) {
|
|
211
211
|
const le = N ?? await n.status();
|
|
212
212
|
if (G || (u.value = le, !t.ctx || Se(le))) return;
|
|
213
|
-
const
|
|
214
|
-
if (G || (P.value =
|
|
213
|
+
const O = await t.ctx.call("delegate.status");
|
|
214
|
+
if (G || (P.value = O, O.scope_mode !== "install-selected")) return;
|
|
215
215
|
const j = [];
|
|
216
216
|
let ie = 0;
|
|
217
217
|
for (let ce = 0; ce < 128; ce++) {
|
|
@@ -223,7 +223,7 @@ function Oa(t, c) {
|
|
|
223
223
|
if (ie += W.shares.length, ie >= W.total) break;
|
|
224
224
|
if (ce === 127) throw { code: "EXECUTOR_PROTOCOL" };
|
|
225
225
|
}
|
|
226
|
-
$.value = j, k.value =
|
|
226
|
+
$.value = j, k.value = O.selection?.scope ?? O.preselection ?? "";
|
|
227
227
|
}
|
|
228
228
|
async function B(N) {
|
|
229
229
|
if (!(!t.admin || r.value)) {
|
|
@@ -244,18 +244,18 @@ function Oa(t, c) {
|
|
|
244
244
|
const N = i.value, le = k.value;
|
|
245
245
|
i.value = "", f.value = !0;
|
|
246
246
|
try {
|
|
247
|
-
let
|
|
248
|
-
const j =
|
|
247
|
+
let O = C.value ? await n.authorize(N, k.value) : await n.authorize(N);
|
|
248
|
+
const j = ta(O);
|
|
249
249
|
if (j) {
|
|
250
250
|
G || (d.value = { confirm: j }, i.value = N);
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
|
-
if (await X(
|
|
253
|
+
if (await X(O), !G && C.value && O.state === "ready" && F.value && (O = await n.authorize(N, k.value), await X(O)), O.state !== "ready" && O.requested && await M(O.requested) && (O = await n.status(), await X(O)), O.state === "ready" && C.value && P.value?.selection?.scope !== le) {
|
|
254
254
|
G || (d.value = { reason: "", code: "selection_failed" });
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
258
|
-
G || (d.value = { reason:
|
|
257
|
+
if (O.state !== "ready") {
|
|
258
|
+
G || (d.value = { reason: O.reason ?? "", code: O.code });
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
261
261
|
G || await c();
|
|
@@ -269,18 +269,18 @@ function Oa(t, c) {
|
|
|
269
269
|
return !i.value && !r.value ? (v.value = !0, Promise.resolve()) : D();
|
|
270
270
|
}
|
|
271
271
|
async function M(N) {
|
|
272
|
-
for (const le = Date.now() +
|
|
273
|
-
const
|
|
272
|
+
for (const le = Date.now() + Lt; !G; await new Promise((O) => setTimeout(O, Vt))) {
|
|
273
|
+
const O = (await t.ctx?.call("delegate.status").catch(() => {
|
|
274
274
|
}))?.selection;
|
|
275
|
-
if (
|
|
275
|
+
if (O?.scope === N.scope && O.generation > N.generation) return !0;
|
|
276
276
|
if (Date.now() >= le) return !1;
|
|
277
277
|
}
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
280
|
-
const se = (N) => N?.code === "executor_starting" ? a.value.statusStarting :
|
|
280
|
+
const se = (N) => N?.code === "executor_starting" ? a.value.statusStarting : Tt(N?.reason) ? a.value.statusUnreachable : void 0;
|
|
281
281
|
return we(() => {
|
|
282
282
|
n.subscribe?.((N) => {
|
|
283
|
-
!G && !
|
|
283
|
+
!G && !ta(N) && (u.value = N);
|
|
284
284
|
}), B(t.initial);
|
|
285
285
|
}), ge(() => {
|
|
286
286
|
G = !0, i.value = "";
|
|
@@ -295,13 +295,13 @@ function He(t, c) {
|
|
|
295
295
|
});
|
|
296
296
|
}, fa(u++, t()));
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
qe(t, (r) => {
|
|
299
299
|
clearTimeout(a), u = 0, r && !n && i();
|
|
300
300
|
}), ge(() => {
|
|
301
301
|
n = !0, clearTimeout(a);
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const Bt = ["aria-label"], Ft = { class: "executor-upgrade-title" }, Ot = { key: 0 }, qt = { key: 1 }, Mt = { key: 2 }, Kt = { key: 3 }, Ht = { key: 1 }, Gt = /* @__PURE__ */ de({
|
|
305
305
|
__name: "ExecutorUpgrade",
|
|
306
306
|
props: {
|
|
307
307
|
status: {},
|
|
@@ -315,11 +315,11 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
315
315
|
"data-approval-diff": "",
|
|
316
316
|
"aria-label": n.value.upgradeTitle
|
|
317
317
|
}, [
|
|
318
|
-
S("p",
|
|
318
|
+
S("p", Ft, o(n.value.upgradeTitle), 1),
|
|
319
319
|
a.value ? (l(), _(Z, { key: 0 }, [
|
|
320
|
-
a.value.root_programs.length ? (l(), _("p",
|
|
320
|
+
a.value.root_programs.length ? (l(), _("p", Ot, o(n.value.upgradePrograms), 1)) : y("", !0),
|
|
321
321
|
a.value.task_template_changed ? (l(), _("p", qt, o(n.value.upgradeTasks), 1)) : y("", !0),
|
|
322
|
-
a.value.old_policy_digest !== a.value.new_policy_digest && !a.value.root_programs.length ? (l(), _("p",
|
|
322
|
+
a.value.old_policy_digest !== a.value.new_policy_digest && !a.value.root_programs.length ? (l(), _("p", Mt, o(n.value.upgradePolicy), 1)) : y("", !0),
|
|
323
323
|
S("p", null, o(i.value), 1),
|
|
324
324
|
S("dl", null, [
|
|
325
325
|
(l(!0), _(Z, null, pe(a.value.root_programs, (d) => (l(), _(Z, {
|
|
@@ -335,7 +335,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
335
335
|
S("code", null, o(r(a.value.old_policy_digest)) + " → " + o(r(a.value.new_policy_digest)), 1)
|
|
336
336
|
])
|
|
337
337
|
]),
|
|
338
|
-
a.value.policy_changes.length ? (l(), _("details",
|
|
338
|
+
a.value.policy_changes.length ? (l(), _("details", Kt, [
|
|
339
339
|
S("summary", null, o(n.value.upgradeChanges), 1),
|
|
340
340
|
S("ul", null, [
|
|
341
341
|
(l(!0), _(Z, null, pe(a.value.policy_changes, (d) => (l(), _("li", {
|
|
@@ -346,38 +346,38 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
346
346
|
]))), 128))
|
|
347
347
|
])
|
|
348
348
|
])) : y("", !0)
|
|
349
|
-
], 64)) : (l(), _("p",
|
|
350
|
-
], 8,
|
|
349
|
+
], 64)) : (l(), _("p", Ht, o(n.value.upgradeUnknown), 1))
|
|
350
|
+
], 8, Bt)) : y("", !0);
|
|
351
351
|
}
|
|
352
352
|
}), ve = (t, c) => {
|
|
353
353
|
const n = t.__vccOpts || t;
|
|
354
354
|
for (const [a, u] of c)
|
|
355
355
|
n[a] = u;
|
|
356
356
|
return n;
|
|
357
|
-
},
|
|
357
|
+
}, Xt = /* @__PURE__ */ ve(Gt, [["__scopeId", "data-v-aa18745e"]]), Wt = ["data-audience"], Jt = {
|
|
358
358
|
class: "executor-consent-icon",
|
|
359
359
|
"aria-hidden": "true"
|
|
360
|
-
},
|
|
360
|
+
}, Yt = { class: "executor-consent-body" }, Qt = { class: "executor-consent-head" }, jt = {
|
|
361
361
|
class: "executor-consent-title",
|
|
362
362
|
"data-consent-title": ""
|
|
363
|
-
},
|
|
363
|
+
}, Zt = {
|
|
364
364
|
class: "executor-consent-lead",
|
|
365
365
|
"data-consent-lead": ""
|
|
366
|
-
},
|
|
366
|
+
}, el = {
|
|
367
367
|
key: 0,
|
|
368
368
|
class: "executor-consent-lead executor-consent-ask",
|
|
369
369
|
"data-consent-ask": ""
|
|
370
|
-
},
|
|
370
|
+
}, al = {
|
|
371
371
|
key: 0,
|
|
372
372
|
"data-webapi-profiles": ""
|
|
373
|
-
},
|
|
373
|
+
}, tl = {
|
|
374
374
|
key: 0,
|
|
375
375
|
"data-webapi-raw": ""
|
|
376
|
-
},
|
|
376
|
+
}, ll = {
|
|
377
377
|
key: 2,
|
|
378
378
|
class: "executor-consent-more",
|
|
379
379
|
"data-consent-points": ""
|
|
380
|
-
},
|
|
380
|
+
}, nl = /* @__PURE__ */ de({
|
|
381
381
|
__name: "ExecutorConsent",
|
|
382
382
|
props: {
|
|
383
383
|
admin: { type: Boolean },
|
|
@@ -395,18 +395,18 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
395
395
|
"data-executor-consent": "",
|
|
396
396
|
"data-audience": t.admin ? "admin" : "user"
|
|
397
397
|
}, [
|
|
398
|
-
S("span",
|
|
399
|
-
p(e(
|
|
398
|
+
S("span", Jt, [
|
|
399
|
+
p(e(Na), {
|
|
400
400
|
size: t.layout === "page" ? 24 : 18
|
|
401
401
|
}, null, 8, ["size"])
|
|
402
402
|
]),
|
|
403
|
-
S("div",
|
|
404
|
-
S("div",
|
|
405
|
-
S("p",
|
|
406
|
-
S("p",
|
|
407
|
-
t.admin ? y("", !0) : (l(), _("p",
|
|
403
|
+
S("div", Yt, [
|
|
404
|
+
S("div", Qt, [
|
|
405
|
+
S("p", jt, o(t.admin ? n.value ? a.value.upgradeConsentTitle : a.value.consentTitle : a.value.consentTitleUser), 1),
|
|
406
|
+
S("p", Zt, o(i.value), 1),
|
|
407
|
+
t.admin ? y("", !0) : (l(), _("p", el, o(a.value.consentAsk), 1))
|
|
408
408
|
]),
|
|
409
|
-
t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), _("ul",
|
|
409
|
+
t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), _("ul", al, [
|
|
410
410
|
(l(!0), _(Z, null, pe(t.webapiProfiles, (d, v) => (l(), _("li", { key: v }, [
|
|
411
411
|
S("strong", null, o(v), 1),
|
|
412
412
|
h(": " + o(d.purpose) + " ", 1),
|
|
@@ -416,19 +416,19 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
416
416
|
S("code", null, o(P), 1),
|
|
417
417
|
(l(!0), _(Z, null, pe(x, (k, $) => (l(), _("div", { key: $ }, o($) + " (" + o(k.join(", ")) + ")", 1))), 128))
|
|
418
418
|
]))), 128)),
|
|
419
|
-
d.raw_max_bytes ? (l(), _("code",
|
|
419
|
+
d.raw_max_bytes ? (l(), _("code", tl, o(a.value.rawLimit) + ": " + o(d.raw_max_bytes), 1)) : y("", !0)
|
|
420
420
|
])
|
|
421
421
|
]))), 128))
|
|
422
422
|
])) : y("", !0),
|
|
423
|
-
t.admin ? (l(), g(
|
|
423
|
+
t.admin ? (l(), g(Xt, {
|
|
424
424
|
key: 1,
|
|
425
425
|
status: t.status,
|
|
426
426
|
locale: t.locale
|
|
427
427
|
}, null, 8, ["status", "locale"])) : y("", !0),
|
|
428
428
|
he(f.$slots, "default", {}, void 0, !0),
|
|
429
|
-
t.admin ? (l(), _("details",
|
|
429
|
+
t.admin ? (l(), _("details", ll, [
|
|
430
430
|
S("summary", null, [
|
|
431
|
-
p(e(
|
|
431
|
+
p(e(La), {
|
|
432
432
|
class: "executor-consent-chevron",
|
|
433
433
|
size: 14,
|
|
434
434
|
"aria-hidden": "true"
|
|
@@ -440,18 +440,18 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
440
440
|
])
|
|
441
441
|
])) : y("", !0)
|
|
442
442
|
])
|
|
443
|
-
], 10,
|
|
443
|
+
], 10, Wt));
|
|
444
444
|
}
|
|
445
|
-
}),
|
|
445
|
+
}), la = /* @__PURE__ */ ve(nl, [["__scopeId", "data-v-f93b77c1"]]), sl = { class: "executor-alert" }, ol = {
|
|
446
446
|
key: 0,
|
|
447
447
|
class: "executor-reason"
|
|
448
|
-
},
|
|
448
|
+
}, il = {
|
|
449
449
|
key: 0,
|
|
450
450
|
class: "executor-summary"
|
|
451
|
-
},
|
|
451
|
+
}, ul = {
|
|
452
452
|
key: 1,
|
|
453
453
|
class: "executor-summary"
|
|
454
|
-
},
|
|
454
|
+
}, rl = ["data-executor-status"], dl = { class: "executor-reason" }, cl = /* @__PURE__ */ de({
|
|
455
455
|
__name: "ExecutorSettings",
|
|
456
456
|
props: {
|
|
457
457
|
admin: { type: Boolean },
|
|
@@ -464,7 +464,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
464
464
|
},
|
|
465
465
|
emits: ["confirmed"],
|
|
466
466
|
setup(t, { expose: c, emit: n }) {
|
|
467
|
-
const a = t, u = n, i = w(() => Re(a.locale)), { status: r, password: f, busy: m, confirming: d, error: v, failure: x, passwordError: P, scope: k, chosen: $, options: z, dynamic: C, files: T, webapiProfiles: A, canConfirm: ae, needsScope: F, refresh: G, submit: X, explain: B } =
|
|
467
|
+
const a = t, u = n, i = w(() => Re(a.locale)), { status: r, password: f, busy: m, confirming: d, error: v, failure: x, passwordError: P, scope: k, chosen: $, options: z, dynamic: C, files: T, webapiProfiles: A, canConfirm: ae, needsScope: F, refresh: G, submit: X, explain: B } = qa(a, () => u("confirmed")), K = w(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), D = w(() => ({ ready: { tone: "success", text: i.value.statusReady }, blocked: { tone: "danger", text: i.value.statusBlocked }, confirming: { tone: "info", text: i.value.statusConfirming } })[K.value ?? "confirming"]), E = w(() => d.value ? void 0 : Se(r.value));
|
|
468
468
|
He(() => E.value, G);
|
|
469
469
|
const M = w(() => !E.value && (r.value?.state === "needs-admin-approval" || F.value)), se = w(() => M.value || !!r.value?.retry);
|
|
470
470
|
return c({ refresh: G }), (N, le) => t.admin ? (l(), g(e(_e), {
|
|
@@ -481,9 +481,9 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
481
481
|
role: "alert"
|
|
482
482
|
}, {
|
|
483
483
|
default: s(() => [
|
|
484
|
-
S("span",
|
|
484
|
+
S("span", sl, [
|
|
485
485
|
S("span", null, o(i.value.setupError), 1),
|
|
486
|
-
p(e(
|
|
486
|
+
p(e(I), {
|
|
487
487
|
variant: "secondary",
|
|
488
488
|
size: "sm",
|
|
489
489
|
disabled: e(m),
|
|
@@ -504,7 +504,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
504
504
|
}, {
|
|
505
505
|
default: s(() => [
|
|
506
506
|
h(o(e(x).code === "session_ended" ? i.value.session : e(B)(e(x)) ?? i.value.setupError), 1),
|
|
507
|
-
e(x).reason ? (l(), _("span",
|
|
507
|
+
e(x).reason ? (l(), _("span", ol, o(e(x).reason), 1)) : y("", !0)
|
|
508
508
|
]),
|
|
509
509
|
_: 1
|
|
510
510
|
})) : y("", !0),
|
|
@@ -518,7 +518,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
518
518
|
]),
|
|
519
519
|
_: 1
|
|
520
520
|
})) : (l(), _(Z, { key: 3 }, [
|
|
521
|
-
!e(r) && !e(d) && !e(v) ? (l(), _("div",
|
|
521
|
+
!e(r) && !e(d) && !e(v) ? (l(), _("div", il, [
|
|
522
522
|
p(e(xe), {
|
|
523
523
|
label: i.value.status,
|
|
524
524
|
"data-placeholder-row": ""
|
|
@@ -532,7 +532,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
532
532
|
_: 1
|
|
533
533
|
}, 8, ["label"])
|
|
534
534
|
])) : y("", !0),
|
|
535
|
-
(e(r) || e(d)) && !M.value ? (l(), _("div",
|
|
535
|
+
(e(r) || e(d)) && !M.value ? (l(), _("div", ul, [
|
|
536
536
|
p(e(xe), {
|
|
537
537
|
label: i.value.status
|
|
538
538
|
}, {
|
|
@@ -549,7 +549,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
549
549
|
]),
|
|
550
550
|
_: 1
|
|
551
551
|
}, 8, ["tone"])
|
|
552
|
-
], 8,
|
|
552
|
+
], 8, rl)
|
|
553
553
|
]),
|
|
554
554
|
_: 1
|
|
555
555
|
}, 8, ["label"]),
|
|
@@ -560,7 +560,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
560
560
|
default: s(() => [
|
|
561
561
|
e(B)(e(r)) ? (l(), _(Z, { key: 0 }, [
|
|
562
562
|
h(o(e(B)(e(r))), 1),
|
|
563
|
-
S("span",
|
|
563
|
+
S("span", dl, o(e(r).reason), 1)
|
|
564
564
|
], 64)) : (l(), _(Z, { key: 1 }, [
|
|
565
565
|
h(o(e(r).reason), 1)
|
|
566
566
|
], 64))
|
|
@@ -597,7 +597,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
597
597
|
]),
|
|
598
598
|
_: 1
|
|
599
599
|
})) : y("", !0),
|
|
600
|
-
se.value ? (l(), g(Xe(M.value ?
|
|
600
|
+
se.value ? (l(), g(Xe(M.value ? la : "div"), ea(ba({ key: 4 }, M.value ? { admin: !0, locale: t.locale, files: e(T), purpose: t.purpose, layout: t.layout, webapiProfiles: e(A), status: e(r) } : {})), {
|
|
601
601
|
default: s(() => [
|
|
602
602
|
p(e(Ke), {
|
|
603
603
|
direction: "vertical",
|
|
@@ -614,7 +614,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
614
614
|
p(e(ga), {
|
|
615
615
|
id: "delegate-scope",
|
|
616
616
|
modelValue: e($),
|
|
617
|
-
"onUpdate:modelValue": le[0] || (le[0] = (
|
|
617
|
+
"onUpdate:modelValue": le[0] || (le[0] = (O) => aa($) ? $.value = O : null),
|
|
618
618
|
options: e(z),
|
|
619
619
|
disabled: e(m) || e(v)
|
|
620
620
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
@@ -628,9 +628,9 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
628
628
|
"validate-status": e(P) ? "error" : void 0,
|
|
629
629
|
"validate-message-display-mode": "text"
|
|
630
630
|
}, {
|
|
631
|
-
after: s(({ classes:
|
|
632
|
-
p(e(
|
|
633
|
-
class: De(
|
|
631
|
+
after: s(({ classes: O }) => [
|
|
632
|
+
p(e(I), {
|
|
633
|
+
class: De(O.afterItem),
|
|
634
634
|
type: "submit",
|
|
635
635
|
variant: "primary",
|
|
636
636
|
loading: e(d),
|
|
@@ -646,7 +646,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
646
646
|
p(e(Ae), {
|
|
647
647
|
id: "delegate-password",
|
|
648
648
|
modelValue: e(f),
|
|
649
|
-
"onUpdate:modelValue": le[1] || (le[1] = (
|
|
649
|
+
"onUpdate:modelValue": le[1] || (le[1] = (O) => aa(f) ? f.value = O : null),
|
|
650
650
|
type: "password",
|
|
651
651
|
autocomplete: "current-password",
|
|
652
652
|
invalid: !!e(P),
|
|
@@ -666,13 +666,13 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
666
666
|
_: 1
|
|
667
667
|
}, 8, ["title", "description", "aria-busy"])) : y("", !0);
|
|
668
668
|
}
|
|
669
|
-
}), Ma = /* @__PURE__ */ ve(
|
|
669
|
+
}), Ma = /* @__PURE__ */ ve(cl, [["__scopeId", "data-v-b666a69c"]]), vl = {
|
|
670
670
|
key: 0,
|
|
671
671
|
class: "executor-notice"
|
|
672
|
-
},
|
|
672
|
+
}, fl = {
|
|
673
673
|
key: 1,
|
|
674
674
|
class: "executor-notice"
|
|
675
|
-
},
|
|
675
|
+
}, pl = { class: "executor-notice-body" }, ml = /* @__PURE__ */ de({
|
|
676
676
|
__name: "ExecutorNotice",
|
|
677
677
|
props: {
|
|
678
678
|
locale: {},
|
|
@@ -681,7 +681,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
681
681
|
},
|
|
682
682
|
setup(t) {
|
|
683
683
|
const c = t, n = w(() => Re(c.locale)), a = Te(Ye, void 0) ?? c.ctx.executor;
|
|
684
|
-
a &&
|
|
684
|
+
a && Oe(Ye, a);
|
|
685
685
|
const u = b("checking"), i = b(), r = b(!1), f = w(() => c.ctx.user?.isAdmin === !0), m = w(() => !i.value && (u.value === "needs-admin-approval" || u.value === "blocked")), d = w(() => a?.call ? { call: (C, T) => a.call(C, T) } : c.ctx.call ? c.ctx : void 0);
|
|
686
686
|
let v = !1, x, P, k = 0;
|
|
687
687
|
function $(C) {
|
|
@@ -706,13 +706,13 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
706
706
|
}
|
|
707
707
|
return we(() => {
|
|
708
708
|
a && (a.subscribe?.((C) => {
|
|
709
|
-
!v && !
|
|
709
|
+
!v && !ta(C) && $(C);
|
|
710
710
|
}), x = c.ctx.reopen?.(() => {
|
|
711
711
|
z();
|
|
712
712
|
}), z());
|
|
713
713
|
}), ge(() => {
|
|
714
714
|
v = !0, clearTimeout(P), x?.();
|
|
715
|
-
}), (C, T) => i.value ? (l(), _("div",
|
|
715
|
+
}), (C, T) => i.value ? (l(), _("div", vl, [
|
|
716
716
|
p(e(Q), {
|
|
717
717
|
tone: "info",
|
|
718
718
|
role: "status"
|
|
@@ -722,12 +722,12 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
722
722
|
]),
|
|
723
723
|
_: 1
|
|
724
724
|
})
|
|
725
|
-
])) : m.value ? (l(), _("div",
|
|
725
|
+
])) : m.value ? (l(), _("div", fl, [
|
|
726
726
|
p(e(Q), { tone: "warning" }, {
|
|
727
727
|
default: s(() => [
|
|
728
|
-
S("span",
|
|
728
|
+
S("span", pl, [
|
|
729
729
|
h(o(f.value ? n.value.noticeAdmin : n.value.noticeUser), 1),
|
|
730
|
-
f.value ? (l(), g(e(
|
|
730
|
+
f.value ? (l(), g(e(I), {
|
|
731
731
|
key: 0,
|
|
732
732
|
variant: "secondary",
|
|
733
733
|
size: "sm",
|
|
@@ -762,17 +762,17 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
762
762
|
}, 8, ["open", "title"])) : y("", !0)
|
|
763
763
|
])) : y("", !0);
|
|
764
764
|
}
|
|
765
|
-
}),
|
|
765
|
+
}), yl = /* @__PURE__ */ ve(ml, [["__scopeId", "data-v-5468feb3"]]), bl = {
|
|
766
766
|
key: 0,
|
|
767
767
|
class: "ui-update-notice"
|
|
768
|
-
},
|
|
768
|
+
}, gl = { class: "ui-update-notice-body" }, hl = /* @__PURE__ */ de({
|
|
769
769
|
__name: "UiUpdateNotice",
|
|
770
770
|
props: {
|
|
771
771
|
locale: {},
|
|
772
772
|
ctx: {}
|
|
773
773
|
},
|
|
774
774
|
setup(t) {
|
|
775
|
-
const c = t, n = w(() =>
|
|
775
|
+
const c = t, n = w(() => je(c.locale ?? "en")), a = b(!1), u = new AbortController();
|
|
776
776
|
let i, r = -1 / 0;
|
|
777
777
|
async function f() {
|
|
778
778
|
const v = c.ctx.uiUpdate;
|
|
@@ -797,15 +797,15 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
797
797
|
function d() {
|
|
798
798
|
window.location.reload();
|
|
799
799
|
}
|
|
800
|
-
return (v, x) => a.value ? (l(), _("div",
|
|
800
|
+
return (v, x) => a.value ? (l(), _("div", bl, [
|
|
801
801
|
p(e(Q), {
|
|
802
802
|
tone: "info",
|
|
803
803
|
role: "status"
|
|
804
804
|
}, {
|
|
805
805
|
default: s(() => [
|
|
806
|
-
S("span",
|
|
806
|
+
S("span", gl, [
|
|
807
807
|
h(o(n.value.uiUpdated), 1),
|
|
808
|
-
p(e(
|
|
808
|
+
p(e(I), {
|
|
809
809
|
variant: "secondary",
|
|
810
810
|
size: "sm",
|
|
811
811
|
onClick: d
|
|
@@ -821,16 +821,16 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
821
821
|
})
|
|
822
822
|
])) : y("", !0);
|
|
823
823
|
}
|
|
824
|
-
}),
|
|
824
|
+
}), kl = /* @__PURE__ */ ve(hl, [["__scopeId", "data-v-8141bcd1"]]), Ka = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Ha = /* @__PURE__ */ Symbol("synopackageland:page-info"), Ga = /* @__PURE__ */ Symbol("synopackageland:shell-locale"), _l = { role: "alert" }, wl = {
|
|
825
825
|
key: 0,
|
|
826
826
|
class: "app-shell-account"
|
|
827
|
-
},
|
|
827
|
+
}, xl = {
|
|
828
828
|
ref: "page-info",
|
|
829
829
|
class: "app-page-info"
|
|
830
|
-
},
|
|
830
|
+
}, Cl = {
|
|
831
831
|
ref: "page-actions",
|
|
832
832
|
class: "app-page-actions"
|
|
833
|
-
},
|
|
833
|
+
}, $l = ["hidden"], Sl = { class: "app-page-content" }, Pl = /* @__PURE__ */ de({
|
|
834
834
|
__name: "AppShell",
|
|
835
835
|
props: {
|
|
836
836
|
locale: {},
|
|
@@ -858,23 +858,23 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
858
858
|
const le = f.value[0];
|
|
859
859
|
!N.defaultPrevented && le && a("update:modelValue", le.id);
|
|
860
860
|
}
|
|
861
|
-
const i = w(() =>
|
|
862
|
-
|
|
861
|
+
const i = w(() => je(n.locale)), r = w(() => n.pageSurface), f = w(() => It(n.pages, i.value)), m = w(() => Dt(f.value)), d = w(() => f.value.find((N) => N.id === n.modelValue)), v = w(() => d.value && n.loading ? { ...d.value, fill: !0 } : d.value), x = w(() => v.value?.title ?? i.value[n.modelValue] ?? i.value.status), P = Ge("scroller"), k = w(() => n.pages.some((N) => typeof N != "string"));
|
|
862
|
+
qe(() => n.modelValue, () => {
|
|
863
863
|
k.value && !n.keepScroll && P.value && (P.value.$el.scrollTop = 0);
|
|
864
864
|
}, { flush: "post" });
|
|
865
|
-
const $ = Ua(), z = w(() => n.denied === !0 ? {} : n.denied || void 0), C = w(() =>
|
|
865
|
+
const $ = Ua(), z = w(() => n.denied === !0 ? {} : n.denied || void 0), C = w(() => na(z.value, n.locale, n.brandName ?? n.ctx?.displayName)), T = w(() => n.ctx !== void 0 && Ea(n.ctx)), A = w(() => T.value ? n.ctx : void 0), ae = (N, { slots: le }) => le.default?.(), F = w(() => n.ctx !== void 0 && !T.value);
|
|
866
866
|
function G() {
|
|
867
867
|
n.ctx?.host?.activateWindow?.();
|
|
868
868
|
}
|
|
869
869
|
const X = Ge("layout"), B = b({ brand: !1, user: !1 });
|
|
870
|
-
|
|
870
|
+
qe([T, X], (N, le, O) => {
|
|
871
871
|
const j = X.value?.$el;
|
|
872
872
|
if (!T.value || !j) {
|
|
873
873
|
B.value = { brand: !1, user: !1 };
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
876
|
const ie = () => {
|
|
877
|
-
const H =
|
|
877
|
+
const H = At(j);
|
|
878
878
|
(H.brand !== B.value.brand || H.user !== B.value.user) && (B.value = H);
|
|
879
879
|
};
|
|
880
880
|
ie();
|
|
@@ -883,7 +883,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
883
883
|
});
|
|
884
884
|
ce.observe(j.ownerDocument.body, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["class", "style", "hidden"], characterData: !0 });
|
|
885
885
|
const W = j.ownerDocument.defaultView;
|
|
886
|
-
W?.addEventListener("resize", ie),
|
|
886
|
+
W?.addEventListener("resize", ie), O(() => {
|
|
887
887
|
ce.disconnect(), W?.removeEventListener("resize", ie);
|
|
888
888
|
});
|
|
889
889
|
}, { flush: "post", immediate: !0 });
|
|
@@ -894,22 +894,22 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
894
894
|
function E() {
|
|
895
895
|
A.value?.host?.signOut?.();
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
Oe(Ka, Ge("page-actions")), Oe(Ha, Ge("page-info")), Oe(Ga, w(() => n.locale));
|
|
898
898
|
const M = Ge("notices"), se = b(!0);
|
|
899
899
|
return ka((N) => {
|
|
900
900
|
const le = M.value;
|
|
901
901
|
if (!le) return;
|
|
902
|
-
const
|
|
903
|
-
se.value = !
|
|
902
|
+
const O = () => {
|
|
903
|
+
se.value = !Rt(le);
|
|
904
904
|
};
|
|
905
|
-
|
|
906
|
-
const j = new MutationObserver(
|
|
905
|
+
O();
|
|
906
|
+
const j = new MutationObserver(O);
|
|
907
907
|
j.observe(le, { childList: !0, subtree: !0, characterData: !0 }), N(() => j.disconnect());
|
|
908
908
|
}, { flush: "post" }), ka((N) => {
|
|
909
|
-
T.value && N(
|
|
910
|
-
}), (N, le) => (l(), g(Xe(t.appRoot ? e(
|
|
909
|
+
T.value && N(mt());
|
|
910
|
+
}), (N, le) => (l(), g(Xe(t.appRoot ? e(yt) : ae), ea(_a(t.appRoot ? { modalScope: "app", dialogBounds: F.value ? "viewport" : "app", style: "height: 100%;", onActivate: G } : {})), {
|
|
911
911
|
default: s(() => [
|
|
912
|
-
(l(), g(Xe(t.appRoot ? e(
|
|
912
|
+
(l(), g(Xe(t.appRoot ? e(bt) : ae), ea(_a(t.appRoot ? { locale: e(pa)(t.locale) } : {})), {
|
|
913
913
|
default: s(() => [
|
|
914
914
|
z.value ? (l(), g(e(wa), {
|
|
915
915
|
key: 0,
|
|
@@ -925,14 +925,14 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
925
925
|
he(N.$slots, "denied", {}, () => [
|
|
926
926
|
p(e(Q), { tone: "danger" }, {
|
|
927
927
|
default: s(() => [
|
|
928
|
-
S("span",
|
|
928
|
+
S("span", _l, o(z.value.message ?? C.value?.message ?? i.value.deniedMessage), 1)
|
|
929
929
|
]),
|
|
930
930
|
_: 1
|
|
931
931
|
})
|
|
932
932
|
], !0)
|
|
933
933
|
]),
|
|
934
934
|
_: 3
|
|
935
|
-
}, 8, ["width", "surface"])) : (l(), g(e(
|
|
935
|
+
}, 8, ["width", "surface"])) : (l(), g(e(gt), {
|
|
936
936
|
key: 1,
|
|
937
937
|
ref_key: "layout",
|
|
938
938
|
ref: X,
|
|
@@ -944,12 +944,12 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
944
944
|
"brand-name": t.brandName ?? t.ctx?.displayName,
|
|
945
945
|
"brand-icon": t.brandIcon ?? t.ctx?.appIcon,
|
|
946
946
|
onBrand: u
|
|
947
|
-
},
|
|
947
|
+
}, sa({
|
|
948
948
|
sidebar: s(() => [
|
|
949
|
-
p(e(
|
|
949
|
+
p(e(ht), {
|
|
950
950
|
"model-value": t.modelValue,
|
|
951
951
|
groups: m.value,
|
|
952
|
-
"onUpdate:modelValue": le[0] || (le[0] = (
|
|
952
|
+
"onUpdate:modelValue": le[0] || (le[0] = (O) => a("update:modelValue", O))
|
|
953
953
|
}, null, 8, ["model-value", "groups"])
|
|
954
954
|
]),
|
|
955
955
|
default: s(() => [
|
|
@@ -967,35 +967,35 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
967
967
|
description: v.value?.description ?? t.description
|
|
968
968
|
}, {
|
|
969
969
|
meta: s(() => [
|
|
970
|
-
S("span",
|
|
970
|
+
S("span", xl, null, 512),
|
|
971
971
|
he(N.$slots, "meta", { page: t.modelValue }, void 0, !0)
|
|
972
972
|
]),
|
|
973
973
|
actions: s(() => [
|
|
974
|
-
S("div",
|
|
974
|
+
S("div", Cl, null, 512),
|
|
975
975
|
t.loading ? y("", !0) : he(N.$slots, "actions", { page: t.modelValue }, void 0, !0, 0)
|
|
976
976
|
]),
|
|
977
977
|
_: 3
|
|
978
978
|
}, 8, ["title", "description"])) : y("", !0),
|
|
979
|
-
t.ctx?.uiUpdate ? (l(), g(
|
|
979
|
+
t.ctx?.uiUpdate ? (l(), g(kl, {
|
|
980
980
|
key: 1,
|
|
981
981
|
ctx: t.ctx,
|
|
982
982
|
locale: t.locale
|
|
983
983
|
}, null, 8, ["ctx", "locale"])) : y("", !0),
|
|
984
|
-
t.ctx?.executor ? (l(), g(
|
|
984
|
+
t.ctx?.executor ? (l(), g(yl, {
|
|
985
985
|
key: 2,
|
|
986
986
|
ctx: t.ctx,
|
|
987
987
|
locale: t.locale
|
|
988
988
|
}, null, 8, ["ctx", "locale"])) : y("", !0),
|
|
989
|
-
e(
|
|
989
|
+
e(Oa)($.notices?.({ page: t.modelValue })) ? (l(), _("div", {
|
|
990
990
|
key: 3,
|
|
991
991
|
ref: "notices",
|
|
992
992
|
class: "app-notices",
|
|
993
993
|
hidden: se.value
|
|
994
994
|
}, [
|
|
995
995
|
he(N.$slots, "notices", { page: t.modelValue }, void 0, !0)
|
|
996
|
-
], 8,
|
|
997
|
-
S("div",
|
|
998
|
-
t.loading ? (l(), g(e(
|
|
996
|
+
], 8, $l)) : y("", !0),
|
|
997
|
+
S("div", Sl, [
|
|
998
|
+
t.loading ? (l(), g(e(Va), {
|
|
999
999
|
key: 0,
|
|
1000
1000
|
text: i.value.loading
|
|
1001
1001
|
}, null, 8, ["text"])) : (l(), _(Z, { key: 1 }, [
|
|
@@ -1015,23 +1015,26 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
1015
1015
|
name: "sidebar-footer",
|
|
1016
1016
|
fn: s(() => [
|
|
1017
1017
|
he(N.$slots, "sidebar-footer", {}, () => [
|
|
1018
|
-
K.value ? (l(), _("div",
|
|
1019
|
-
p(e(
|
|
1018
|
+
K.value ? (l(), _("div", wl, [
|
|
1019
|
+
p(e(kt), {
|
|
1020
1020
|
name: K.value.name,
|
|
1021
1021
|
detail: K.value.isAdmin ? i.value.administrator : i.value.dsmUser
|
|
1022
1022
|
}, null, 8, ["name", "detail"]),
|
|
1023
|
-
D.value ? (l(), g(e(
|
|
1023
|
+
D.value ? (l(), g(e(Qe), {
|
|
1024
1024
|
key: 0,
|
|
1025
1025
|
class: "app-shell-sign-out",
|
|
1026
1026
|
variant: "ghost",
|
|
1027
|
-
|
|
1027
|
+
label: i.value.signOut,
|
|
1028
1028
|
onClick: E
|
|
1029
1029
|
}, {
|
|
1030
1030
|
default: s(() => [
|
|
1031
|
-
|
|
1031
|
+
p(e(vt), {
|
|
1032
|
+
size: 16,
|
|
1033
|
+
"aria-hidden": "true"
|
|
1034
|
+
})
|
|
1032
1035
|
]),
|
|
1033
1036
|
_: 1
|
|
1034
|
-
})) : y("", !0)
|
|
1037
|
+
}, 8, ["label"])) : y("", !0)
|
|
1035
1038
|
])) : y("", !0)
|
|
1036
1039
|
], !0)
|
|
1037
1040
|
]),
|
|
@@ -1052,7 +1055,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
1052
1055
|
_: 3
|
|
1053
1056
|
}, 16));
|
|
1054
1057
|
}
|
|
1055
|
-
}),
|
|
1058
|
+
}), Is = /* @__PURE__ */ ve(Pl, [["__scopeId", "data-v-ef083db8"]]), Ds = /* @__PURE__ */ de({
|
|
1056
1059
|
__name: "PageActions",
|
|
1057
1060
|
setup(t) {
|
|
1058
1061
|
const c = Te(Ka, null), n = w(() => c?.value ?? null);
|
|
@@ -1063,7 +1066,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
1063
1066
|
he(a.$slots, "default")
|
|
1064
1067
|
], 8, ["to"])) : y("", !0);
|
|
1065
1068
|
}
|
|
1066
|
-
}),
|
|
1069
|
+
}), El = { class: "page-info-notes" }, Tl = /* @__PURE__ */ de({
|
|
1067
1070
|
inheritAttrs: !1,
|
|
1068
1071
|
__name: "PageInfo",
|
|
1069
1072
|
props: {
|
|
@@ -1078,14 +1081,14 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
1078
1081
|
const c = t, n = Ua(), a = w(() => (c.notes ?? []).filter(Boolean)), u = c.inline ? null : Te(Ha, null), i = w(() => u?.value ?? null), r = Te(Ga, null), f = w(() => {
|
|
1079
1082
|
if (c.label) return c.label;
|
|
1080
1083
|
const m = c.locale ?? r?.value ?? "en";
|
|
1081
|
-
return n.default ?
|
|
1084
|
+
return n.default ? je(m).notes : We(je(m).notesCount, { count: a.value.length }, m);
|
|
1082
1085
|
});
|
|
1083
1086
|
return (m, d) => (a.value.length || n.default) && (!e(u) || i.value) ? (l(), g(Ia, {
|
|
1084
1087
|
key: 0,
|
|
1085
1088
|
to: i.value ?? "body",
|
|
1086
1089
|
disabled: !e(u)
|
|
1087
1090
|
}, [
|
|
1088
|
-
p(e(
|
|
1091
|
+
p(e(_t), ba(m.$attrs, {
|
|
1089
1092
|
class: "page-info",
|
|
1090
1093
|
icon: "info",
|
|
1091
1094
|
"trigger-action": "click",
|
|
@@ -1095,7 +1098,7 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
1095
1098
|
}), {
|
|
1096
1099
|
default: s(() => [
|
|
1097
1100
|
he(m.$slots, "default", {}, () => [
|
|
1098
|
-
S("ul",
|
|
1101
|
+
S("ul", El, [
|
|
1099
1102
|
(l(!0), _(Z, null, pe(a.value, (v) => (l(), _("li", { key: v }, o(v), 1))), 128))
|
|
1100
1103
|
])
|
|
1101
1104
|
], !0)
|
|
@@ -1104,27 +1107,27 @@ const Vt = ["aria-label"], Bt = { class: "executor-upgrade-title" }, Ft = { key:
|
|
|
1104
1107
|
}, 16, ["side", "align", "aria-label"])
|
|
1105
1108
|
], 8, ["to", "disabled"])) : y("", !0);
|
|
1106
1109
|
}
|
|
1107
|
-
}),
|
|
1110
|
+
}), Ns = /* @__PURE__ */ ve(Tl, [["__scopeId", "data-v-93861654"]]), Pa = ["B", "KB", "MB", "GB", "TB", "PB"];
|
|
1108
1111
|
function va(t, c) {
|
|
1109
1112
|
let n = 0, a = t;
|
|
1110
1113
|
for (; a >= 1024 && n < Pa.length - 1; )
|
|
1111
1114
|
a /= 1024, n++;
|
|
1112
1115
|
return `${new Intl.NumberFormat(c, { maximumFractionDigits: n ? 1 : 0 }).format(a)} ${Pa[n]}`;
|
|
1113
1116
|
}
|
|
1114
|
-
const
|
|
1117
|
+
const zl = ["aria-busy", "aria-label"], Al = { class: "file-toolbar file-location" }, Rl = ["aria-label"], Ul = {
|
|
1115
1118
|
key: 0,
|
|
1116
1119
|
class: "file-toolbar"
|
|
1117
|
-
},
|
|
1120
|
+
}, Il = {
|
|
1118
1121
|
key: 1,
|
|
1119
1122
|
role: "status"
|
|
1120
|
-
},
|
|
1123
|
+
}, Dl = { role: "alert" }, Nl = {
|
|
1121
1124
|
key: 4,
|
|
1122
1125
|
role: "status"
|
|
1123
|
-
},
|
|
1126
|
+
}, Ll = { class: "file-columns" }, Vl = ["aria-label"], Bl = { class: "file-content" }, Fl = { class: "file-name" }, Ol = { class: "file-empty" }, ql = { class: "file-bytes" }, Ml = {
|
|
1124
1127
|
key: 5,
|
|
1125
1128
|
class: "file-selection",
|
|
1126
1129
|
role: "status"
|
|
1127
|
-
},
|
|
1130
|
+
}, Kl = /* @__PURE__ */ de({
|
|
1128
1131
|
__name: "FileBrowser",
|
|
1129
1132
|
props: {
|
|
1130
1133
|
provider: {},
|
|
@@ -1135,7 +1138,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1135
1138
|
},
|
|
1136
1139
|
emits: ["selected"],
|
|
1137
1140
|
setup(t, { emit: c }) {
|
|
1138
|
-
const n = t, a = c, u = w(() => ze(n.locale)), i =
|
|
1141
|
+
const n = t, a = c, u = w(() => ze(n.locale)), i = zt(), { busy: r, error: f } = i, m = b([]), d = b([]), v = b([]), x = b(), P = b(), k = b(), $ = b([]), z = b(), C = b({ key: "name", direction: "asc" }), T = b(0), A = b([]), ae = b(!1);
|
|
1139
1142
|
let F = new AbortController();
|
|
1140
1143
|
async function G() {
|
|
1141
1144
|
const L = x.value;
|
|
@@ -1150,7 +1153,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1150
1153
|
{ key: "name", label: u.value.nameColumn, sortable: !0 },
|
|
1151
1154
|
{ key: "kind", label: u.value.kindColumn },
|
|
1152
1155
|
{ key: "bytes", label: u.value.sizeColumn, align: "right", sortable: !0 }
|
|
1153
|
-
]), K = ot((L, { attrs: V }) => it(
|
|
1156
|
+
]), K = ot((L, { attrs: V }) => it(ua, { ...V, kind: "folder" }));
|
|
1154
1157
|
function D(L) {
|
|
1155
1158
|
return { id: L.path, label: L.name, icon: K, data: L };
|
|
1156
1159
|
}
|
|
@@ -1164,29 +1167,29 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1164
1167
|
L.isDir ? Ce(L) : M(L);
|
|
1165
1168
|
}
|
|
1166
1169
|
const N = (L) => m.value.find((V) => V.path === L);
|
|
1167
|
-
function le(L, V,
|
|
1170
|
+
function le(L, V, q = []) {
|
|
1168
1171
|
for (const te of L) {
|
|
1169
|
-
const fe = [...
|
|
1172
|
+
const fe = [...q, te.data];
|
|
1170
1173
|
if (te.id === V) return fe;
|
|
1171
1174
|
const R = le(te.children ?? [], V, fe);
|
|
1172
1175
|
if (R) return R;
|
|
1173
1176
|
}
|
|
1174
1177
|
}
|
|
1175
|
-
function
|
|
1176
|
-
for (const
|
|
1177
|
-
if (
|
|
1178
|
-
const te = q
|
|
1178
|
+
function O(L, V) {
|
|
1179
|
+
for (const q of L) {
|
|
1180
|
+
if (q.id === V) return q;
|
|
1181
|
+
const te = O(q.children ?? [], V);
|
|
1179
1182
|
if (te) return te;
|
|
1180
1183
|
}
|
|
1181
1184
|
}
|
|
1182
|
-
function j(L, V,
|
|
1183
|
-
return L.map((te) => te.id === V ? { ...te, children:
|
|
1185
|
+
function j(L, V, q) {
|
|
1186
|
+
return L.map((te) => te.id === V ? { ...te, children: q } : te.children ? { ...te, children: j(te.children, V, q) } : te);
|
|
1184
1187
|
}
|
|
1185
1188
|
let ie = 0;
|
|
1186
1189
|
async function ce(L) {
|
|
1187
1190
|
const V = ++ie;
|
|
1188
|
-
for (const
|
|
1189
|
-
const te =
|
|
1191
|
+
for (const q of L.slice(0, -1)) {
|
|
1192
|
+
const te = O(d.value, q.path);
|
|
1190
1193
|
if (!te) break;
|
|
1191
1194
|
if (te.children === void 0) {
|
|
1192
1195
|
const fe = await W(te);
|
|
@@ -1198,32 +1201,32 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1198
1201
|
z.value = L.at(-1)?.path;
|
|
1199
1202
|
}
|
|
1200
1203
|
async function W(L) {
|
|
1201
|
-
const V = T.value,
|
|
1204
|
+
const V = T.value, q = F.signal;
|
|
1202
1205
|
try {
|
|
1203
1206
|
const te = [];
|
|
1204
1207
|
let fe = 0;
|
|
1205
1208
|
for (; fe !== void 0; ) {
|
|
1206
|
-
const R = await n.provider.list(L.id, { offset: fe, sortBy: "name", sortDirection: "ASC" },
|
|
1207
|
-
if (
|
|
1209
|
+
const R = await n.provider.list(L.id, { offset: fe, sortBy: "name", sortDirection: "ASC" }, q);
|
|
1210
|
+
if (q.aborted || V !== T.value) return;
|
|
1208
1211
|
te.push(...R.entries.filter((Y) => Y.isDir).map(D)), fe = R.nextOffset;
|
|
1209
1212
|
}
|
|
1210
1213
|
return te;
|
|
1211
1214
|
} catch (te) {
|
|
1212
|
-
!
|
|
1215
|
+
!q.aborted && V === T.value && (f.value = te, E());
|
|
1213
1216
|
return;
|
|
1214
1217
|
}
|
|
1215
1218
|
}
|
|
1216
1219
|
async function H(L, V = !1) {
|
|
1217
1220
|
if (r.value) return;
|
|
1218
1221
|
E(), P.value = void 0, m.value = V ? m.value : [], k.value = V ? k.value : void 0;
|
|
1219
|
-
const
|
|
1222
|
+
const q = V ? k.value ?? 0 : 0, te = L.at(-1)?.path;
|
|
1220
1223
|
v.value = L;
|
|
1221
|
-
const fe = await i.run((R) => te ? n.provider.list(te, { offset:
|
|
1224
|
+
const fe = await i.run((R) => te ? n.provider.list(te, { offset: q, sortBy: C.value.key, sortDirection: C.value.direction === "asc" ? "ASC" : "DESC" }, R) : n.provider.shares(q, R));
|
|
1222
1225
|
fe && (m.value = V ? [...m.value, ...fe.entries] : fe.entries, k.value = fe.nextOffset, te ? n.mode === "folder" && !V && E(L.at(-1)) : d.value = m.value.filter((R) => R.isDir).map(D), V || ce(L));
|
|
1223
1226
|
}
|
|
1224
1227
|
const J = w(() => [{ id: "", display: u.value.roots }, ...v.value.map((L) => ({ id: L.path, display: L.name }))]);
|
|
1225
1228
|
function ye(L) {
|
|
1226
|
-
const V = J.value.findIndex((
|
|
1229
|
+
const V = J.value.findIndex((q) => q.id === L.id);
|
|
1227
1230
|
V < v.value.length && ue(v.value.slice(0, V));
|
|
1228
1231
|
}
|
|
1229
1232
|
function Ce(L) {
|
|
@@ -1251,43 +1254,43 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1251
1254
|
"aria-busy": e(r),
|
|
1252
1255
|
"aria-label": u.value.title
|
|
1253
1256
|
}, [
|
|
1254
|
-
S("div",
|
|
1255
|
-
p(e(
|
|
1257
|
+
S("div", Al, [
|
|
1258
|
+
p(e(Qe), {
|
|
1256
1259
|
label: u.value.back,
|
|
1257
1260
|
size: "sm",
|
|
1258
1261
|
disabled: e(r) || ee.value === 0,
|
|
1259
|
-
onClick: V[0] || (V[0] = (
|
|
1262
|
+
onClick: V[0] || (V[0] = (q) => oe(-1))
|
|
1260
1263
|
}, {
|
|
1261
1264
|
default: s(() => [
|
|
1262
|
-
p(e(
|
|
1265
|
+
p(e(ft), {
|
|
1263
1266
|
size: 16,
|
|
1264
1267
|
"aria-hidden": "true"
|
|
1265
1268
|
})
|
|
1266
1269
|
]),
|
|
1267
1270
|
_: 1
|
|
1268
1271
|
}, 8, ["label", "disabled"]),
|
|
1269
|
-
p(e(
|
|
1272
|
+
p(e(Qe), {
|
|
1270
1273
|
label: u.value.forward,
|
|
1271
1274
|
size: "sm",
|
|
1272
1275
|
disabled: e(r) || ee.value === $e.value.length - 1,
|
|
1273
|
-
onClick: V[1] || (V[1] = (
|
|
1276
|
+
onClick: V[1] || (V[1] = (q) => oe(1))
|
|
1274
1277
|
}, {
|
|
1275
1278
|
default: s(() => [
|
|
1276
|
-
p(e(
|
|
1279
|
+
p(e(La), {
|
|
1277
1280
|
size: 16,
|
|
1278
1281
|
"aria-hidden": "true"
|
|
1279
1282
|
})
|
|
1280
1283
|
]),
|
|
1281
1284
|
_: 1
|
|
1282
1285
|
}, 8, ["label", "disabled"]),
|
|
1283
|
-
p(e(
|
|
1286
|
+
p(e(Qe), {
|
|
1284
1287
|
label: u.value.refresh,
|
|
1285
1288
|
size: "sm",
|
|
1286
1289
|
disabled: e(r),
|
|
1287
1290
|
onClick: Ee
|
|
1288
1291
|
}, {
|
|
1289
1292
|
default: s(() => [
|
|
1290
|
-
p(e(
|
|
1293
|
+
p(e(pt), {
|
|
1291
1294
|
size: 14,
|
|
1292
1295
|
"aria-hidden": "true"
|
|
1293
1296
|
})
|
|
@@ -1298,25 +1301,25 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1298
1301
|
class: "file-path",
|
|
1299
1302
|
"aria-label": u.value.location
|
|
1300
1303
|
}, [
|
|
1301
|
-
p(e(
|
|
1304
|
+
p(e(wt), {
|
|
1302
1305
|
items: J.value,
|
|
1303
1306
|
"collapsed-label": u.value.fullPath,
|
|
1304
1307
|
onClickItem: ye
|
|
1305
1308
|
}, null, 8, ["items", "collapsed-label"])
|
|
1306
|
-
], 8,
|
|
1309
|
+
], 8, Rl)
|
|
1307
1310
|
]),
|
|
1308
|
-
t.transfers && t.provider.upload && v.value.length ? (l(), _("div",
|
|
1309
|
-
p(e(
|
|
1311
|
+
t.transfers && t.provider.upload && v.value.length ? (l(), _("div", Ul, [
|
|
1312
|
+
p(e(xt), {
|
|
1310
1313
|
modelValue: A.value,
|
|
1311
|
-
"onUpdate:modelValue": V[2] || (V[2] = (
|
|
1314
|
+
"onUpdate:modelValue": V[2] || (V[2] = (q) => A.value = q),
|
|
1312
1315
|
variant: "compact",
|
|
1313
1316
|
disabled: e(r),
|
|
1314
1317
|
"max-files": 1,
|
|
1315
1318
|
"max-size": 16 * 1024 ** 3,
|
|
1316
1319
|
title: u.value.upload,
|
|
1317
|
-
onRejected: V[3] || (V[3] = (
|
|
1320
|
+
onRejected: V[3] || (V[3] = (q) => f.value = { code: "upload_size_required" })
|
|
1318
1321
|
}, null, 8, ["modelValue", "disabled", "title"]),
|
|
1319
|
-
p(e(
|
|
1322
|
+
p(e(I), {
|
|
1320
1323
|
variant: "primary",
|
|
1321
1324
|
disabled: e(r) || !A.value.length,
|
|
1322
1325
|
onClick: X
|
|
@@ -1327,8 +1330,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1327
1330
|
_: 1
|
|
1328
1331
|
}, 8, ["disabled"])
|
|
1329
1332
|
])) : y("", !0),
|
|
1330
|
-
ae.value ? (l(), _("p",
|
|
1331
|
-
t.transfers && t.provider.download && x.value && !x.value.isDir && !e(f) ? (l(), g(e(
|
|
1333
|
+
ae.value ? (l(), _("p", Il, o(u.value.uploaded), 1)) : y("", !0),
|
|
1334
|
+
t.transfers && t.provider.download && x.value && !x.value.isDir && !e(f) ? (l(), g(e(I), {
|
|
1332
1335
|
key: 2,
|
|
1333
1336
|
variant: "secondary",
|
|
1334
1337
|
disabled: e(r),
|
|
@@ -1344,35 +1347,35 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1344
1347
|
tone: "danger"
|
|
1345
1348
|
}, {
|
|
1346
1349
|
default: s(() => [
|
|
1347
|
-
S("span",
|
|
1350
|
+
S("span", Dl, o(e(Ta)(e(f), u.value, t.locale, t.name)), 1)
|
|
1348
1351
|
]),
|
|
1349
1352
|
_: 1
|
|
1350
1353
|
})) : y("", !0),
|
|
1351
|
-
e(r) ? (l(), _("p",
|
|
1352
|
-
S("div",
|
|
1354
|
+
e(r) ? (l(), _("p", Nl, o(u.value.loading), 1)) : y("", !0),
|
|
1355
|
+
S("div", Ll, [
|
|
1353
1356
|
S("aside", {
|
|
1354
1357
|
class: "file-tree",
|
|
1355
1358
|
"aria-label": u.value.roots
|
|
1356
1359
|
}, [
|
|
1357
|
-
d.value.length ? (l(), g(e(
|
|
1360
|
+
d.value.length ? (l(), g(e(Ct), {
|
|
1358
1361
|
key: T.value,
|
|
1359
1362
|
"selection-style": "background",
|
|
1360
1363
|
modelValue: z.value,
|
|
1361
|
-
"onUpdate:modelValue": V[4] || (V[4] = (
|
|
1364
|
+
"onUpdate:modelValue": V[4] || (V[4] = (q) => z.value = q),
|
|
1362
1365
|
nodes: d.value,
|
|
1363
|
-
"onUpdate:nodes": V[5] || (V[5] = (
|
|
1366
|
+
"onUpdate:nodes": V[5] || (V[5] = (q) => d.value = q),
|
|
1364
1367
|
expanded: $.value,
|
|
1365
|
-
"onUpdate:expanded": V[6] || (V[6] = (
|
|
1368
|
+
"onUpdate:expanded": V[6] || (V[6] = (q) => $.value = q),
|
|
1366
1369
|
"load-children": W,
|
|
1367
|
-
"expand-label": (
|
|
1368
|
-
onSelect: V[7] || (V[7] = (
|
|
1370
|
+
"expand-label": (q, te) => e(We)(te ? u.value.collapse : u.value.expand, { name: q.label }),
|
|
1371
|
+
onSelect: V[7] || (V[7] = (q) => ue(le(d.value, q.id) ?? [q.data]))
|
|
1369
1372
|
}, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) : y("", !0)
|
|
1370
|
-
], 8,
|
|
1371
|
-
S("div",
|
|
1372
|
-
e(f) ? y("", !0) : (l(), g(e(
|
|
1373
|
+
], 8, Vl),
|
|
1374
|
+
S("div", Bl, [
|
|
1375
|
+
e(f) ? y("", !0) : (l(), g(e($t), {
|
|
1373
1376
|
key: 0,
|
|
1374
1377
|
columns: B.value,
|
|
1375
|
-
rows: m.value.map((
|
|
1378
|
+
rows: m.value.map((q) => ({ ...q, kind: q.isDir ? u.value.directoryKind : u.value.fileKind })),
|
|
1376
1379
|
"row-key": "path",
|
|
1377
1380
|
footer: !1,
|
|
1378
1381
|
resizable: !1,
|
|
@@ -1385,44 +1388,44 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1385
1388
|
"single-select": "",
|
|
1386
1389
|
"selected-keys": P.value ? [P.value] : [],
|
|
1387
1390
|
"onUpdate:sort": ke,
|
|
1388
|
-
"onUpdate:selectedKeys": V[8] || (V[8] = (
|
|
1389
|
-
e(r) || M(N(
|
|
1391
|
+
"onUpdate:selectedKeys": V[8] || (V[8] = (q) => {
|
|
1392
|
+
e(r) || M(N(q[0]));
|
|
1390
1393
|
}),
|
|
1391
|
-
onRowActivate: V[9] || (V[9] = (
|
|
1392
|
-
e(r) || se(N(
|
|
1394
|
+
onRowActivate: V[9] || (V[9] = (q) => {
|
|
1395
|
+
e(r) || se(N(q.path));
|
|
1393
1396
|
}),
|
|
1394
|
-
onRowDblclick: V[10] || (V[10] = (
|
|
1395
|
-
e(r) || se(N(
|
|
1397
|
+
onRowDblclick: V[10] || (V[10] = (q) => {
|
|
1398
|
+
e(r) || se(N(q.path));
|
|
1396
1399
|
})
|
|
1397
1400
|
}, {
|
|
1398
|
-
"cell-name": s(({ row:
|
|
1399
|
-
S("span",
|
|
1400
|
-
p(e(
|
|
1401
|
-
kind:
|
|
1402
|
-
name:
|
|
1401
|
+
"cell-name": s(({ row: q }) => [
|
|
1402
|
+
S("span", Fl, [
|
|
1403
|
+
p(e(ua), {
|
|
1404
|
+
kind: q.isDir ? "folder" : "file",
|
|
1405
|
+
name: q.name
|
|
1403
1406
|
}, null, 8, ["kind", "name"]),
|
|
1404
|
-
h(o(
|
|
1407
|
+
h(o(q.name), 1)
|
|
1405
1408
|
])
|
|
1406
1409
|
]),
|
|
1407
1410
|
empty: s(() => [
|
|
1408
|
-
S("div",
|
|
1409
|
-
p(e(
|
|
1411
|
+
S("div", Ol, [
|
|
1412
|
+
p(e(ua), {
|
|
1410
1413
|
kind: "folder",
|
|
1411
1414
|
size: [40, 40]
|
|
1412
1415
|
}),
|
|
1413
1416
|
S("span", null, o(u.value.emptyFolder), 1)
|
|
1414
1417
|
])
|
|
1415
1418
|
]),
|
|
1416
|
-
"cell-bytes": s(({ row:
|
|
1417
|
-
S("span", ql, o(
|
|
1419
|
+
"cell-bytes": s(({ row: q }) => [
|
|
1420
|
+
S("span", ql, o(q.isDir || q.bytes === void 0 ? "—" : e(va)(q.bytes, e(pa)(t.locale))), 1)
|
|
1418
1421
|
]),
|
|
1419
1422
|
_: 1
|
|
1420
1423
|
}, 8, ["columns", "rows", "loading", "loading-text", "sort", "labels", "selected-keys"])),
|
|
1421
|
-
k.value !== void 0 && !e(f) ? (l(), g(e(
|
|
1424
|
+
k.value !== void 0 && !e(f) ? (l(), g(e(I), {
|
|
1422
1425
|
key: 1,
|
|
1423
1426
|
variant: "secondary",
|
|
1424
1427
|
disabled: e(r),
|
|
1425
|
-
onClick: V[11] || (V[11] = (
|
|
1428
|
+
onClick: V[11] || (V[11] = (q) => H(v.value, !0))
|
|
1426
1429
|
}, {
|
|
1427
1430
|
default: s(() => [
|
|
1428
1431
|
h(o(u.value.loadMore), 1)
|
|
@@ -1431,13 +1434,13 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1431
1434
|
}, 8, ["disabled"])) : y("", !0)
|
|
1432
1435
|
])
|
|
1433
1436
|
]),
|
|
1434
|
-
x.value && !e(f) ? (l(), _("p",
|
|
1435
|
-
], 8,
|
|
1437
|
+
x.value && !e(f) ? (l(), _("p", Ml, o(e(We)(u.value.selected, { name: x.value.path })), 1)) : y("", !0)
|
|
1438
|
+
], 8, zl));
|
|
1436
1439
|
}
|
|
1437
|
-
}), Xa = /* @__PURE__ */ ve(
|
|
1440
|
+
}), Xa = /* @__PURE__ */ ve(Kl, [["__scopeId", "data-v-8133f935"]]), Hl = {
|
|
1438
1441
|
key: 0,
|
|
1439
1442
|
class: "save-consent"
|
|
1440
|
-
},
|
|
1443
|
+
}, Gl = ["aria-busy", "inert"], Xl = /* @__PURE__ */ de({
|
|
1441
1444
|
__name: "NasPicker",
|
|
1442
1445
|
props: {
|
|
1443
1446
|
open: { type: Boolean },
|
|
@@ -1454,7 +1457,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1454
1457
|
setup(t, { emit: c }) {
|
|
1455
1458
|
const n = t, a = c, u = b(), i = w(() => ze(n.locale)), r = w(() => ma(n.locale)), f = b(!1), m = b();
|
|
1456
1459
|
let d = 0, v = !1;
|
|
1457
|
-
|
|
1460
|
+
qe(() => n.open, () => {
|
|
1458
1461
|
d++, u.value = void 0, m.value = void 0;
|
|
1459
1462
|
}), ge(() => {
|
|
1460
1463
|
v = !0, d++;
|
|
@@ -1505,7 +1508,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1505
1508
|
})
|
|
1506
1509
|
}, {
|
|
1507
1510
|
footer: s(() => [
|
|
1508
|
-
p(e(
|
|
1511
|
+
p(e(I), {
|
|
1509
1512
|
variant: "secondary",
|
|
1510
1513
|
disabled: f.value,
|
|
1511
1514
|
onClick: x
|
|
@@ -1515,7 +1518,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1515
1518
|
]),
|
|
1516
1519
|
_: 1
|
|
1517
1520
|
}, 8, ["disabled"]),
|
|
1518
|
-
p(e(
|
|
1521
|
+
p(e(I), {
|
|
1519
1522
|
variant: "primary",
|
|
1520
1523
|
disabled: !u.value || f.value || !!t.destination && t.mode !== "folder",
|
|
1521
1524
|
onClick: P
|
|
@@ -1527,7 +1530,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1527
1530
|
}, 8, ["disabled"])
|
|
1528
1531
|
]),
|
|
1529
1532
|
default: s(() => [
|
|
1530
|
-
t.destination ? (l(), _("p",
|
|
1533
|
+
t.destination ? (l(), _("p", Hl, o(r.value.selection), 1)) : y("", !0),
|
|
1531
1534
|
m.value ? (l(), g(e(Q), {
|
|
1532
1535
|
key: 1,
|
|
1533
1536
|
tone: "danger",
|
|
@@ -1535,7 +1538,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1535
1538
|
class: "save-message"
|
|
1536
1539
|
}, {
|
|
1537
1540
|
default: s(() => [
|
|
1538
|
-
h(o(t.errorText?.(m.value) ?? e(
|
|
1541
|
+
h(o(t.errorText?.(m.value) ?? e(Ze)(m.value, r.value, "select", t.locale, t.name)), 1)
|
|
1539
1542
|
]),
|
|
1540
1543
|
_: 1
|
|
1541
1544
|
})) : y("", !0),
|
|
@@ -1552,16 +1555,16 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1552
1555
|
mode: t.mode,
|
|
1553
1556
|
onSelected: $[0] || ($[0] = (z) => u.value = z)
|
|
1554
1557
|
}, null, 8, ["provider", "locale", "name", "mode"])) : y("", !0)
|
|
1555
|
-
], 8,
|
|
1558
|
+
], 8, Gl)
|
|
1556
1559
|
]),
|
|
1557
1560
|
_: 1
|
|
1558
1561
|
}, 8, ["open", "title", "description", "close-label", "show-close"]));
|
|
1559
1562
|
}
|
|
1560
|
-
}),
|
|
1563
|
+
}), ia = /* @__PURE__ */ ve(Xl, [["__scopeId", "data-v-08be5e1e"]]), Wl = { role: "alert" }, Jl = { class: "files-actions" }, Yl = {
|
|
1561
1564
|
key: 0,
|
|
1562
1565
|
class: "files-path",
|
|
1563
1566
|
role: "status"
|
|
1564
|
-
},
|
|
1567
|
+
}, Ql = /* @__PURE__ */ de({
|
|
1565
1568
|
__name: "FilesPage",
|
|
1566
1569
|
props: {
|
|
1567
1570
|
ctx: {}
|
|
@@ -1602,8 +1605,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1602
1605
|
tone: "danger"
|
|
1603
1606
|
}, {
|
|
1604
1607
|
default: s(() => [
|
|
1605
|
-
S("span",
|
|
1606
|
-
p(e(
|
|
1608
|
+
S("span", Wl, o(e(Ta)(n.value, e(ze)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
|
|
1609
|
+
p(e(I), {
|
|
1607
1610
|
variant: "secondary",
|
|
1608
1611
|
onClick: P
|
|
1609
1612
|
}, {
|
|
@@ -1622,8 +1625,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1622
1625
|
collapsible: !1
|
|
1623
1626
|
}, {
|
|
1624
1627
|
default: s(() => [
|
|
1625
|
-
S("div",
|
|
1626
|
-
p(e(
|
|
1628
|
+
S("div", Jl, [
|
|
1629
|
+
p(e(I), {
|
|
1627
1630
|
variant: "secondary",
|
|
1628
1631
|
onClick: $[0] || ($[0] = (z) => {
|
|
1629
1632
|
i.value = "folder", r.value = !0;
|
|
@@ -1634,7 +1637,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1634
1637
|
]),
|
|
1635
1638
|
_: 1
|
|
1636
1639
|
}),
|
|
1637
|
-
p(e(
|
|
1640
|
+
p(e(I), {
|
|
1638
1641
|
variant: "secondary",
|
|
1639
1642
|
onClick: $[1] || ($[1] = (z) => {
|
|
1640
1643
|
i.value = "file", r.value = !0;
|
|
@@ -1646,7 +1649,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1646
1649
|
_: 1
|
|
1647
1650
|
})
|
|
1648
1651
|
]),
|
|
1649
|
-
f.value ? (l(), _("p",
|
|
1652
|
+
f.value ? (l(), _("p", Yl, [
|
|
1650
1653
|
p(e(Le), { path: f.value }, null, 8, ["path"])
|
|
1651
1654
|
])) : y("", !0),
|
|
1652
1655
|
(l(), g(Xa, {
|
|
@@ -1656,7 +1659,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1656
1659
|
name: t.ctx.displayName,
|
|
1657
1660
|
transfers: ""
|
|
1658
1661
|
}, null, 8, ["provider", "locale", "name"])),
|
|
1659
|
-
p(
|
|
1662
|
+
p(ia, {
|
|
1660
1663
|
provider: e(d),
|
|
1661
1664
|
locale: t.ctx.locale,
|
|
1662
1665
|
name: t.ctx.displayName,
|
|
@@ -1670,7 +1673,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1670
1673
|
}, 8, ["title", "description"])) : y("", !0)
|
|
1671
1674
|
], 64));
|
|
1672
1675
|
}
|
|
1673
|
-
}),
|
|
1676
|
+
}), Ls = /* @__PURE__ */ ve(Ql, [["__scopeId", "data-v-b2e16764"]]), jl = { role: "status" }, Zl = { role: "alert" }, ra = /* @__PURE__ */ new WeakMap(), Vs = /* @__PURE__ */ de({
|
|
1674
1677
|
__name: "PortalSettings",
|
|
1675
1678
|
props: {
|
|
1676
1679
|
portal: {}
|
|
@@ -1756,7 +1759,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1756
1759
|
default: s(() => [
|
|
1757
1760
|
p(e(Q), { tone: "info" }, {
|
|
1758
1761
|
default: s(() => [
|
|
1759
|
-
S("span",
|
|
1762
|
+
S("span", jl, o(e(a)[v.value]), 1)
|
|
1760
1763
|
]),
|
|
1761
1764
|
_: 1
|
|
1762
1765
|
}),
|
|
@@ -1777,7 +1780,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1777
1780
|
description: ae.value,
|
|
1778
1781
|
collapsible: !1,
|
|
1779
1782
|
"aria-busy": r.value || !u.value
|
|
1780
|
-
},
|
|
1783
|
+
}, sa({
|
|
1781
1784
|
default: s(() => [
|
|
1782
1785
|
u.value ? (l(), _(Z, { key: 1 }, [
|
|
1783
1786
|
u.value.state === "active" ? (l(), g(e(xe), {
|
|
@@ -1823,9 +1826,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1823
1826
|
"field-width": "full"
|
|
1824
1827
|
}, {
|
|
1825
1828
|
default: s(() => [
|
|
1826
|
-
p(e(
|
|
1829
|
+
p(e(oa), null, {
|
|
1827
1830
|
default: s(() => [
|
|
1828
|
-
p(e(
|
|
1831
|
+
p(e(I), {
|
|
1829
1832
|
type: "submit",
|
|
1830
1833
|
variant: "primary",
|
|
1831
1834
|
disabled: r.value
|
|
@@ -1835,7 +1838,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1835
1838
|
]),
|
|
1836
1839
|
_: 1
|
|
1837
1840
|
}, 8, ["disabled"]),
|
|
1838
|
-
u.value.state === "active" ? (l(), g(e(
|
|
1841
|
+
u.value.state === "active" ? (l(), g(e(I), {
|
|
1839
1842
|
key: 0,
|
|
1840
1843
|
variant: "secondary",
|
|
1841
1844
|
disabled: r.value,
|
|
@@ -1846,7 +1849,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1846
1849
|
]),
|
|
1847
1850
|
_: 1
|
|
1848
1851
|
}, 8, ["disabled"])) : y("", !0),
|
|
1849
|
-
p(e(
|
|
1852
|
+
p(e(I), {
|
|
1850
1853
|
variant: "secondary",
|
|
1851
1854
|
onClick: E[2] || (E[2] = (M) => t.portal.openControlPanel())
|
|
1852
1855
|
}, {
|
|
@@ -1855,7 +1858,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1855
1858
|
]),
|
|
1856
1859
|
_: 1
|
|
1857
1860
|
}),
|
|
1858
|
-
u.value.entry ? (l(), g(e(
|
|
1861
|
+
u.value.entry ? (l(), g(e(I), {
|
|
1859
1862
|
key: 1,
|
|
1860
1863
|
variant: "secondary",
|
|
1861
1864
|
disabled: r.value,
|
|
@@ -1880,7 +1883,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1880
1883
|
tone: "danger"
|
|
1881
1884
|
}, {
|
|
1882
1885
|
default: s(() => [
|
|
1883
|
-
S("span",
|
|
1886
|
+
S("span", Zl, o(f.value), 1)
|
|
1884
1887
|
]),
|
|
1885
1888
|
_: 1
|
|
1886
1889
|
})) : y("", !0)
|
|
@@ -1903,7 +1906,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1903
1906
|
u.value && A.value ? {
|
|
1904
1907
|
name: "footer",
|
|
1905
1908
|
fn: s(() => [
|
|
1906
|
-
u.value.entry === "unregistered" ? (l(), g(e(
|
|
1909
|
+
u.value.entry === "unregistered" ? (l(), g(e(I), {
|
|
1907
1910
|
key: 0,
|
|
1908
1911
|
variant: "primary",
|
|
1909
1912
|
disabled: r.value,
|
|
@@ -1913,7 +1916,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1913
1916
|
h(o(e(a).register), 1)
|
|
1914
1917
|
]),
|
|
1915
1918
|
_: 1
|
|
1916
|
-
}, 8, ["disabled"])) : (l(), g(e(
|
|
1919
|
+
}, 8, ["disabled"])) : (l(), g(e(I), {
|
|
1917
1920
|
key: 1,
|
|
1918
1921
|
variant: "primary",
|
|
1919
1922
|
disabled: r.value,
|
|
@@ -1929,7 +1932,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1929
1932
|
} : u.value && !u.value.canManage && u.value.controlPanel ? {
|
|
1930
1933
|
name: "footer",
|
|
1931
1934
|
fn: s(() => [
|
|
1932
|
-
p(e(
|
|
1935
|
+
p(e(I), {
|
|
1933
1936
|
variant: "secondary",
|
|
1934
1937
|
onClick: E[5] || (E[5] = (M) => t.portal.openControlPanel())
|
|
1935
1938
|
}, {
|
|
@@ -1950,7 +1953,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1950
1953
|
"close-label": e(a).cancel
|
|
1951
1954
|
}, {
|
|
1952
1955
|
footer: s(() => [
|
|
1953
|
-
p(e(
|
|
1956
|
+
p(e(I), {
|
|
1954
1957
|
variant: "secondary",
|
|
1955
1958
|
onClick: E[6] || (E[6] = (M) => d.value = !1)
|
|
1956
1959
|
}, {
|
|
@@ -1959,7 +1962,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1959
1962
|
]),
|
|
1960
1963
|
_: 1
|
|
1961
1964
|
}),
|
|
1962
|
-
p(e(
|
|
1965
|
+
p(e(I), {
|
|
1963
1966
|
variant: "danger",
|
|
1964
1967
|
disabled: r.value,
|
|
1965
1968
|
onClick: K
|
|
@@ -1974,7 +1977,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
1974
1977
|
}, 8, ["open", "title", "description", "close-label"])
|
|
1975
1978
|
], 64));
|
|
1976
1979
|
}
|
|
1977
|
-
}),
|
|
1980
|
+
}), en = { class: "sf-state" }, an = { class: "sf-notices" }, tn = { role: "status" }, ln = { role: "alert" }, nn = /* @__PURE__ */ de({
|
|
1978
1981
|
__name: "SharedFolderSettings",
|
|
1979
1982
|
props: {
|
|
1980
1983
|
shared: {},
|
|
@@ -2035,7 +2038,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2035
2038
|
title: e(n).title,
|
|
2036
2039
|
collapsible: !1,
|
|
2037
2040
|
"aria-busy": !!i.value
|
|
2038
|
-
},
|
|
2041
|
+
}, sa({
|
|
2039
2042
|
default: s(() => [
|
|
2040
2043
|
(l(!0), _(Z, null, pe(a.value.folders, (F) => (l(), g(e(xe), {
|
|
2041
2044
|
key: F.key,
|
|
@@ -2043,7 +2046,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2043
2046
|
"data-shared-folder": F.key
|
|
2044
2047
|
}, {
|
|
2045
2048
|
default: s(() => [
|
|
2046
|
-
S("div",
|
|
2049
|
+
S("div", en, [
|
|
2047
2050
|
p(e(Je), {
|
|
2048
2051
|
tone: m[F.state],
|
|
2049
2052
|
"data-shared-folder-state": F.state
|
|
@@ -2055,7 +2058,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2055
2058
|
}, 1032, ["tone", "data-shared-folder-state"]),
|
|
2056
2059
|
S("span", null, o(e(n).required) + o(e(P)) + o(e(n)[F.required]), 1),
|
|
2057
2060
|
S("span", null, o(e(n).granted) + o(e(P)) + o(e(n)[F.granted]), 1),
|
|
2058
|
-
F.state === "pending" && k.value ? (l(), g(e(
|
|
2061
|
+
F.state === "pending" && k.value ? (l(), g(e(I), {
|
|
2059
2062
|
key: 0,
|
|
2060
2063
|
variant: "primary",
|
|
2061
2064
|
disabled: !!i.value,
|
|
@@ -2070,14 +2073,14 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2070
2073
|
]),
|
|
2071
2074
|
_: 2
|
|
2072
2075
|
}, 1032, ["label", "data-shared-folder"]))), 128)),
|
|
2073
|
-
S("div",
|
|
2076
|
+
S("div", an, [
|
|
2074
2077
|
(l(!0), _(Z, null, pe(x.value, (F) => (l(), g(e(Q), {
|
|
2075
2078
|
key: F.key,
|
|
2076
2079
|
tone: "warning",
|
|
2077
2080
|
"data-shared-folder-notice": ""
|
|
2078
2081
|
}, {
|
|
2079
2082
|
default: s(() => [
|
|
2080
|
-
S("span",
|
|
2083
|
+
S("span", tn, [
|
|
2081
2084
|
F.state === "pending" ? (l(), _(Z, { key: 0 }, [
|
|
2082
2085
|
h(o(e(n).pendingNote) + " " + o(k.value ? "" : v(e(n).askAdmin, d(F))) + " " + o(v(e(n).steps, d(F))), 1)
|
|
2083
2086
|
], 64)) : F.state === "missing" ? (l(), _(Z, { key: 1 }, [
|
|
@@ -2094,7 +2097,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2094
2097
|
tone: "danger"
|
|
2095
2098
|
}, {
|
|
2096
2099
|
default: s(() => [
|
|
2097
|
-
S("span",
|
|
2100
|
+
S("span", ln, o(r.value), 1)
|
|
2098
2101
|
]),
|
|
2099
2102
|
_: 1
|
|
2100
2103
|
})) : y("", !0)
|
|
@@ -2105,7 +2108,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2105
2108
|
x.value.some((F) => F.state === "pending") ? {
|
|
2106
2109
|
name: "footer",
|
|
2107
2110
|
fn: s(() => [
|
|
2108
|
-
p(e(
|
|
2111
|
+
p(e(I), {
|
|
2109
2112
|
variant: "secondary",
|
|
2110
2113
|
onClick: ae[0] || (ae[0] = (F) => t.shared.openControlPanel())
|
|
2111
2114
|
}, {
|
|
@@ -2119,10 +2122,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2119
2122
|
} : void 0
|
|
2120
2123
|
]), 1032, ["title", "aria-busy"])) : y("", !0);
|
|
2121
2124
|
}
|
|
2122
|
-
}),
|
|
2125
|
+
}), Bs = /* @__PURE__ */ ve(nn, [["__scopeId", "data-v-273cff49"]]), sn = { class: "shared-folder-permission-issues" }, on = {
|
|
2123
2126
|
key: 0,
|
|
2124
2127
|
role: "alert"
|
|
2125
|
-
},
|
|
2128
|
+
}, un = /* @__PURE__ */ de({
|
|
2126
2129
|
__name: "SharedFolderPermissionDialog",
|
|
2127
2130
|
props: {
|
|
2128
2131
|
permission: {}
|
|
@@ -2159,7 +2162,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2159
2162
|
"close-label": t.permission.messages.dismiss
|
|
2160
2163
|
}, {
|
|
2161
2164
|
footer: s(() => [
|
|
2162
|
-
p(e(
|
|
2165
|
+
p(e(I), {
|
|
2163
2166
|
variant: "secondary",
|
|
2164
2167
|
onClick: v[0] || (v[0] = (x) => t.permission.openControlPanel())
|
|
2165
2168
|
}, {
|
|
@@ -2168,7 +2171,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2168
2171
|
]),
|
|
2169
2172
|
_: 1
|
|
2170
2173
|
}),
|
|
2171
|
-
p(e(
|
|
2174
|
+
p(e(I), {
|
|
2172
2175
|
variant: "secondary",
|
|
2173
2176
|
onClick: v[1] || (v[1] = (x) => n.value = !1)
|
|
2174
2177
|
}, {
|
|
@@ -2177,7 +2180,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2177
2180
|
]),
|
|
2178
2181
|
_: 1
|
|
2179
2182
|
}),
|
|
2180
|
-
p(e(
|
|
2183
|
+
p(e(I), {
|
|
2181
2184
|
variant: "primary",
|
|
2182
2185
|
disabled: u.value,
|
|
2183
2186
|
onClick: m
|
|
@@ -2189,20 +2192,20 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2189
2192
|
}, 8, ["disabled"])
|
|
2190
2193
|
]),
|
|
2191
2194
|
default: s(() => [
|
|
2192
|
-
S("ul",
|
|
2195
|
+
S("ul", sn, [
|
|
2193
2196
|
(l(!0), _(Z, null, pe(a.value, (x) => (l(), _("li", {
|
|
2194
2197
|
key: JSON.stringify([x.account, x.share, x.required])
|
|
2195
2198
|
}, o(t.permission.message(x)), 1))), 128))
|
|
2196
2199
|
]),
|
|
2197
|
-
i.value ? (l(), _("p",
|
|
2200
|
+
i.value ? (l(), _("p", on, o(t.permission.messages.shared_folder_unavailable), 1)) : y("", !0)
|
|
2198
2201
|
]),
|
|
2199
2202
|
_: 1
|
|
2200
2203
|
}, 8, ["open", "title", "description", "close-label"])) : y("", !0);
|
|
2201
2204
|
}
|
|
2202
|
-
}),
|
|
2205
|
+
}), Fs = /* @__PURE__ */ ve(un, [["__scopeId", "data-v-360e834c"]]), rn = ["aria-busy"], dn = { role: "alert" }, cn = {
|
|
2203
2206
|
key: 2,
|
|
2204
2207
|
role: "status"
|
|
2205
|
-
},
|
|
2208
|
+
}, vn = { role: "alert" }, fn = { role: "status" }, pn = /* @__PURE__ */ de({
|
|
2206
2209
|
__name: "LoginPage",
|
|
2207
2210
|
props: {
|
|
2208
2211
|
session: {},
|
|
@@ -2270,17 +2273,17 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2270
2273
|
tone: "danger"
|
|
2271
2274
|
}, {
|
|
2272
2275
|
default: s(() => [
|
|
2273
|
-
S("span",
|
|
2276
|
+
S("span", dn, o(t.session.denied.value.message), 1)
|
|
2274
2277
|
]),
|
|
2275
2278
|
_: 1
|
|
2276
|
-
})) : t.session.notice.value ? (l(), _("p",
|
|
2279
|
+
})) : t.session.notice.value ? (l(), _("p", cn, o(n.value.notices[t.session.notice.value]), 1)) : y("", !0),
|
|
2277
2280
|
m.value && !t.session.denied.value ? (l(), g(e(Q), {
|
|
2278
2281
|
key: 3,
|
|
2279
2282
|
tone: "danger",
|
|
2280
2283
|
title: n.value.failedTitle
|
|
2281
2284
|
}, {
|
|
2282
2285
|
default: s(() => [
|
|
2283
|
-
S("span",
|
|
2286
|
+
S("span", vn, o(m.value), 1)
|
|
2284
2287
|
]),
|
|
2285
2288
|
_: 1
|
|
2286
2289
|
}, 8, ["title"])) : y("", !0),
|
|
@@ -2303,7 +2306,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2303
2306
|
_: 1
|
|
2304
2307
|
}, 8, ["label"]),
|
|
2305
2308
|
r.value ? (l(), _(Z, { key: 1 }, [
|
|
2306
|
-
S("p",
|
|
2309
|
+
S("p", fn, o(n.value.otpPrompt), 1),
|
|
2307
2310
|
S("div", {
|
|
2308
2311
|
ref_key: "otpField",
|
|
2309
2312
|
ref: d
|
|
@@ -2338,9 +2341,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2338
2341
|
]),
|
|
2339
2342
|
_: 1
|
|
2340
2343
|
}, 8, ["label"])),
|
|
2341
|
-
p(e(
|
|
2344
|
+
p(e(oa), null, {
|
|
2342
2345
|
default: s(() => [
|
|
2343
|
-
p(e(
|
|
2346
|
+
p(e(I), {
|
|
2344
2347
|
type: "submit",
|
|
2345
2348
|
variant: "primary",
|
|
2346
2349
|
disabled: f.value || !v.value || !a.value || !u.value || r.value && !i.value
|
|
@@ -2350,7 +2353,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2350
2353
|
]),
|
|
2351
2354
|
_: 1
|
|
2352
2355
|
}, 8, ["disabled"]),
|
|
2353
|
-
r.value ? (l(), g(e(
|
|
2356
|
+
r.value ? (l(), g(e(I), {
|
|
2354
2357
|
key: 0,
|
|
2355
2358
|
variant: "secondary",
|
|
2356
2359
|
disabled: f.value,
|
|
@@ -2360,7 +2363,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2360
2363
|
h(o(n.value.otherAccount), 1)
|
|
2361
2364
|
]),
|
|
2362
2365
|
_: 1
|
|
2363
|
-
}, 8, ["disabled"])) : (l(), g(e(
|
|
2366
|
+
}, 8, ["disabled"])) : (l(), g(e(I), {
|
|
2364
2367
|
key: 1,
|
|
2365
2368
|
variant: "secondary",
|
|
2366
2369
|
disabled: f.value || !v.value,
|
|
@@ -2380,41 +2383,41 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2380
2383
|
]),
|
|
2381
2384
|
_: 1
|
|
2382
2385
|
}, 8, ["title", "description"])
|
|
2383
|
-
], 8,
|
|
2386
|
+
], 8, rn));
|
|
2384
2387
|
}
|
|
2385
|
-
}),
|
|
2388
|
+
}), Os = /* @__PURE__ */ ve(pn, [["__scopeId", "data-v-06b2efdb"]]), mn = { class: "integration-actions" }, yn = { role: "status" }, bn = { class: "integration-help" }, gn = { class: "integration-help" }, hn = { class: "integration-help" }, kn = { class: "integration-actions" }, _n = {
|
|
2386
2389
|
key: 0,
|
|
2387
2390
|
role: "status",
|
|
2388
2391
|
"data-bg-picked": "",
|
|
2389
2392
|
class: "bg-path"
|
|
2390
|
-
},
|
|
2393
|
+
}, wn = { class: "integration-actions" }, xn = { key: 2 }, Cn = {
|
|
2391
2394
|
key: 3,
|
|
2392
2395
|
class: "bg-cards"
|
|
2393
|
-
},
|
|
2396
|
+
}, $n = { class: "bg-card-body" }, Sn = {
|
|
2394
2397
|
key: 0,
|
|
2395
2398
|
class: "integration-help"
|
|
2396
|
-
},
|
|
2399
|
+
}, Pn = {
|
|
2397
2400
|
key: 1,
|
|
2398
2401
|
class: "integration-help"
|
|
2399
|
-
},
|
|
2402
|
+
}, En = {
|
|
2400
2403
|
key: 2,
|
|
2401
2404
|
class: "integration-help bg-path"
|
|
2402
|
-
},
|
|
2405
|
+
}, Tn = {
|
|
2403
2406
|
key: 3,
|
|
2404
2407
|
class: "integration-help"
|
|
2405
|
-
},
|
|
2408
|
+
}, zn = {
|
|
2406
2409
|
key: 4,
|
|
2407
2410
|
class: "integration-help"
|
|
2408
|
-
},
|
|
2411
|
+
}, An = { class: "integration-actions" }, Rn = { key: 1 }, Un = {
|
|
2409
2412
|
key: 2,
|
|
2410
2413
|
class: "bg-cards"
|
|
2411
|
-
},
|
|
2414
|
+
}, In = { class: "bg-card-body" }, Dn = {
|
|
2412
2415
|
key: 0,
|
|
2413
2416
|
class: "integration-help"
|
|
2414
|
-
},
|
|
2417
|
+
}, Nn = {
|
|
2415
2418
|
key: 1,
|
|
2416
2419
|
class: "integration-help"
|
|
2417
|
-
},
|
|
2420
|
+
}, Ln = { class: "integration-help" }, Vn = { class: "integration-actions" }, Bn = { class: "integration-actions" }, Fn = { class: "integration-actions" }, On = /* @__PURE__ */ de({
|
|
2418
2421
|
__name: "BackgroundPanel",
|
|
2419
2422
|
props: {
|
|
2420
2423
|
ctx: {}
|
|
@@ -2422,12 +2425,12 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2422
2425
|
setup(t, { expose: c }) {
|
|
2423
2426
|
const n = t, a = w(() => Qa(n.ctx.locale)), u = (R, Y) => We(R, Y, n.ctx.locale), i = b(), r = b([]), f = b(), m = b(!1), d = b(!1), v = b([]), x = b(), P = b(!1), k = b("3600"), $ = b(), z = b(), C = b(), T = b(!1), A = b(), ae = w(() => !i.value && !f.value && !m.value && !A.value), F = b(!1), G = b(), X = b(""), B = b(""), K = ja(n.ctx);
|
|
2424
2427
|
let D, E = !1;
|
|
2425
|
-
const M = (R) => !["queued", "running"].includes(R.state), se = (R) => M(R) && R.state !== "paused", N = (R) => R.state === "running" && R.pauseRequested, le = (R) => N(R) ? a.value.pausing : a.value[`state_${R.state}`],
|
|
2426
|
-
async function j(R, Y,
|
|
2428
|
+
const M = (R) => !["queued", "running"].includes(R.state), se = (R) => M(R) && R.state !== "paused", N = (R) => R.state === "running" && R.pauseRequested, le = (R) => N(R) ? a.value.pausing : a.value[`state_${R.state}`], O = (R) => N(R) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[R.state];
|
|
2429
|
+
async function j(R, Y, U = !1) {
|
|
2427
2430
|
try {
|
|
2428
2431
|
return await n.ctx.call(R, Y);
|
|
2429
2432
|
} catch (me) {
|
|
2430
|
-
if (E ||
|
|
2433
|
+
if (E || U && (A.value = Se(me))) return;
|
|
2431
2434
|
me?.code === "unsupported" ? (m.value = !0, r.value = [], v.value = [], x.value = void 0, $.value = void 0, z.value = void 0, i.value = void 0, C.value = void 0, G.value = void 0, X.value && URL.revokeObjectURL(X.value), X.value = "") : E || (f.value = me);
|
|
2432
2435
|
return;
|
|
2433
2436
|
}
|
|
@@ -2445,8 +2448,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2445
2448
|
m.value = !1, i.value = R;
|
|
2446
2449
|
const Y = await j("bg.jobs.list", void 0, !0);
|
|
2447
2450
|
Y && !E && (r.value = Y.jobs ?? []);
|
|
2448
|
-
const
|
|
2449
|
-
|
|
2451
|
+
const U = await j("bg.schedules.list", void 0, !0);
|
|
2452
|
+
U && !E && (v.value = U.schedules ?? []), !E && r.value.every(M) && v.value.every((me) => !me.enabled) && D && (clearInterval(D), D = void 0);
|
|
2450
2453
|
} finally {
|
|
2451
2454
|
T.value = !1;
|
|
2452
2455
|
}
|
|
@@ -2484,7 +2487,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2484
2487
|
}), oe = (R) => {
|
|
2485
2488
|
const Y = new Date(R);
|
|
2486
2489
|
return Number.isFinite(Y.getTime()) ? Y.toLocaleString() : a.value.unknownTime;
|
|
2487
|
-
}, ke = (R) => R.copyRetained && R.state === "succeeded" && !R.scheduleId && R.submitter?.user === i.value?.owner?.user && R.submitter?.uid === i.value?.owner?.uid, Ee = (R) => W(() => j("bg.jobs.cancel", { id: R })), L = (R) => W(() => j("bg.jobs.pause", { id: R })), V = (R) => W(() => j("bg.jobs.resume", { id: R })),
|
|
2490
|
+
}, ke = (R) => R.copyRetained && R.state === "succeeded" && !R.scheduleId && R.submitter?.user === i.value?.owner?.user && R.submitter?.uid === i.value?.owner?.uid, Ee = (R) => W(() => j("bg.jobs.cancel", { id: R })), L = (R) => W(() => j("bg.jobs.pause", { id: R })), V = (R) => W(() => j("bg.jobs.resume", { id: R })), q = (R) => {
|
|
2488
2491
|
const Y = R.lastIndexOf("/");
|
|
2489
2492
|
G.value = { folder: R.slice(0, Y), relative: R.slice(Y + 1) };
|
|
2490
2493
|
}, te = () => W(async () => {
|
|
@@ -2539,17 +2542,17 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2539
2542
|
_: 1
|
|
2540
2543
|
})) : y("", !0),
|
|
2541
2544
|
ae.value ? (l(), _(Z, { key: 2 }, [
|
|
2542
|
-
(l(), _(Z, null, pe(["14rem", "24rem", "18rem", "24rem"], (
|
|
2545
|
+
(l(), _(Z, null, pe(["14rem", "24rem", "18rem", "24rem"], (U, me) => S("p", {
|
|
2543
2546
|
key: me,
|
|
2544
2547
|
"data-placeholder-row": ""
|
|
2545
2548
|
}, [
|
|
2546
2549
|
p(e(Ne), {
|
|
2547
|
-
width:
|
|
2550
|
+
width: U,
|
|
2548
2551
|
height: "20px"
|
|
2549
2552
|
}, null, 8, ["width"])
|
|
2550
2553
|
])), 64)),
|
|
2551
|
-
S("div",
|
|
2552
|
-
p(e(
|
|
2554
|
+
S("div", mn, [
|
|
2555
|
+
p(e(I), {
|
|
2553
2556
|
variant: "secondary",
|
|
2554
2557
|
disabled: ""
|
|
2555
2558
|
}, {
|
|
@@ -2558,7 +2561,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2558
2561
|
]),
|
|
2559
2562
|
_: 1
|
|
2560
2563
|
}),
|
|
2561
|
-
p(e(
|
|
2564
|
+
p(e(I), {
|
|
2562
2565
|
variant: "primary",
|
|
2563
2566
|
disabled: ""
|
|
2564
2567
|
}, {
|
|
@@ -2570,22 +2573,22 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2570
2573
|
])
|
|
2571
2574
|
], 64)) : y("", !0),
|
|
2572
2575
|
i.value ? (l(), _(Z, { key: 3 }, [
|
|
2573
|
-
S("p",
|
|
2574
|
-
S("p",
|
|
2575
|
-
S("p",
|
|
2576
|
-
S("p",
|
|
2577
|
-
S("div",
|
|
2578
|
-
p(e(
|
|
2576
|
+
S("p", yn, o(i.value.worker?.alive ? u(a.value.workerRunning, { user: i.value.worker.username }) : a.value.workerStopped), 1),
|
|
2577
|
+
S("p", bn, o(u(a.value.limits, { size: i.value.limits.maxInputBytes / 1024, queue: i.value.limits.maxQueued, seconds: i.value.limits.jobTimeoutSeconds })), 1),
|
|
2578
|
+
S("p", gn, o(i.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
|
|
2579
|
+
S("p", hn, o(u(a.value.ownerLimits, { jobs: i.value.limits.maxOwnerPending, size: i.value.limits.maxOwnerBytes / 1024 })), 1),
|
|
2580
|
+
S("div", kn, [
|
|
2581
|
+
p(e(I), {
|
|
2579
2582
|
variant: "secondary",
|
|
2580
2583
|
disabled: d.value,
|
|
2581
|
-
onClick: Y[0] || (Y[0] = (
|
|
2584
|
+
onClick: Y[0] || (Y[0] = (U) => F.value = !0)
|
|
2582
2585
|
}, {
|
|
2583
2586
|
default: s(() => [
|
|
2584
2587
|
h(o(a.value.chooseFile), 1)
|
|
2585
2588
|
]),
|
|
2586
2589
|
_: 1
|
|
2587
2590
|
}, 8, ["disabled"]),
|
|
2588
|
-
p(e(
|
|
2591
|
+
p(e(I), {
|
|
2589
2592
|
variant: "primary",
|
|
2590
2593
|
disabled: d.value || !G.value,
|
|
2591
2594
|
onClick: te
|
|
@@ -2596,22 +2599,22 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2596
2599
|
_: 1
|
|
2597
2600
|
}, 8, ["disabled"])
|
|
2598
2601
|
]),
|
|
2599
|
-
G.value ? (l(), _("p",
|
|
2602
|
+
G.value ? (l(), _("p", _n, [
|
|
2600
2603
|
h(o(u(a.value.chosen, { path: "" }).trim()) + " ", 1),
|
|
2601
2604
|
p(e(Le), {
|
|
2602
2605
|
path: `${G.value.folder}/${G.value.relative}`
|
|
2603
2606
|
}, null, 8, ["path"])
|
|
2604
2607
|
])) : y("", !0),
|
|
2605
|
-
p(
|
|
2608
|
+
p(ia, {
|
|
2606
2609
|
open: F.value,
|
|
2607
|
-
"onUpdate:open": Y[1] || (Y[1] = (
|
|
2610
|
+
"onUpdate:open": Y[1] || (Y[1] = (U) => F.value = U),
|
|
2608
2611
|
locale: t.ctx.locale,
|
|
2609
2612
|
name: t.ctx.displayName,
|
|
2610
2613
|
provider: e(K),
|
|
2611
2614
|
mode: "file",
|
|
2612
2615
|
title: a.value.pickerTitle,
|
|
2613
2616
|
description: a.value.pickerConsent,
|
|
2614
|
-
onSelected:
|
|
2617
|
+
onSelected: q
|
|
2615
2618
|
}, null, 8, ["open", "locale", "name", "provider", "title", "description"]),
|
|
2616
2619
|
C.value && i.value.admin ? (l(), g(e(Q), {
|
|
2617
2620
|
key: 1,
|
|
@@ -2619,8 +2622,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2619
2622
|
}, {
|
|
2620
2623
|
default: s(() => [
|
|
2621
2624
|
S("p", null, o(u(a.value.purgeConfirm, { user: C.value.user, uid: C.value.uid })), 1),
|
|
2622
|
-
S("div",
|
|
2623
|
-
p(e(
|
|
2625
|
+
S("div", wn, [
|
|
2626
|
+
p(e(I), {
|
|
2624
2627
|
variant: "secondary",
|
|
2625
2628
|
disabled: d.value,
|
|
2626
2629
|
onClick: H
|
|
@@ -2630,10 +2633,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2630
2633
|
]),
|
|
2631
2634
|
_: 1
|
|
2632
2635
|
}, 8, ["disabled"]),
|
|
2633
|
-
p(e(
|
|
2636
|
+
p(e(I), {
|
|
2634
2637
|
variant: "secondary",
|
|
2635
2638
|
disabled: d.value,
|
|
2636
|
-
onClick: Y[2] || (Y[2] = (
|
|
2639
|
+
onClick: Y[2] || (Y[2] = (U) => C.value = void 0)
|
|
2637
2640
|
}, {
|
|
2638
2641
|
default: s(() => [
|
|
2639
2642
|
h(o(a.value.keepJobs), 1)
|
|
@@ -2644,98 +2647,98 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2644
2647
|
]),
|
|
2645
2648
|
_: 1
|
|
2646
2649
|
})) : y("", !0),
|
|
2647
|
-
r.value.length ? (l(), _("div",
|
|
2648
|
-
(l(!0), _(Z, null, pe(r.value, (
|
|
2649
|
-
key:
|
|
2650
|
-
title:
|
|
2650
|
+
r.value.length ? (l(), _("div", Cn, [
|
|
2651
|
+
(l(!0), _(Z, null, pe(r.value, (U) => (l(), g(e(Ca), {
|
|
2652
|
+
key: U.id,
|
|
2653
|
+
title: U.name,
|
|
2651
2654
|
"layout-type": "compact",
|
|
2652
|
-
"data-job-state":
|
|
2653
|
-
"data-job-id":
|
|
2655
|
+
"data-job-state": U.state,
|
|
2656
|
+
"data-job-id": U.id
|
|
2654
2657
|
}, {
|
|
2655
2658
|
"header-actions": s(() => [
|
|
2656
2659
|
p(e(Je), {
|
|
2657
|
-
tone:
|
|
2660
|
+
tone: O(U),
|
|
2658
2661
|
"data-bg-state": ""
|
|
2659
2662
|
}, {
|
|
2660
2663
|
default: s(() => [
|
|
2661
|
-
h(o(le(
|
|
2664
|
+
h(o(le(U)), 1)
|
|
2662
2665
|
]),
|
|
2663
2666
|
_: 2
|
|
2664
2667
|
}, 1032, ["tone"])
|
|
2665
2668
|
]),
|
|
2666
2669
|
default: s(() => [
|
|
2667
|
-
S("div",
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2670
|
+
S("div", $n, [
|
|
2671
|
+
U.progress?.total ? (l(), _("span", Sn, o(u(a.value.progressItems, { done: U.progress.done, count: U.progress.total })), 1)) : y("", !0),
|
|
2672
|
+
U.progress?.totalBytes ? (l(), _("span", Pn, o(u(a.value.progressBytes, { done: e(va)(U.progress.bytes, t.ctx.locale), total: e(va)(U.progress.totalBytes, t.ctx.locale) })), 1)) : y("", !0),
|
|
2673
|
+
U.progress?.item ? (l(), _("span", En, [
|
|
2671
2674
|
h(o(u(a.value.progressItem, { item: "" }).trim()) + " ", 1),
|
|
2672
2675
|
p(e(Le), {
|
|
2673
|
-
path:
|
|
2676
|
+
path: U.progress.item
|
|
2674
2677
|
}, null, 8, ["path"])
|
|
2675
2678
|
])) : y("", !0),
|
|
2676
|
-
i.value.admin &&
|
|
2677
|
-
|
|
2678
|
-
S("div",
|
|
2679
|
-
i.value.admin &&
|
|
2679
|
+
i.value.admin && U.submitter ? (l(), _("span", Tn, o(u(a.value.owner, { user: U.submitter.user, uid: U.submitter.uid })), 1)) : y("", !0),
|
|
2680
|
+
U.scheduleId ? (l(), _("span", zn, o(a.value.scheduledJob), 1)) : y("", !0),
|
|
2681
|
+
S("div", An, [
|
|
2682
|
+
i.value.admin && U.submitter ? (l(), g(e(I), {
|
|
2680
2683
|
key: 0,
|
|
2681
2684
|
variant: "secondary",
|
|
2682
2685
|
disabled: d.value,
|
|
2683
|
-
onClick: (me) => C.value =
|
|
2686
|
+
onClick: (me) => C.value = U.submitter
|
|
2684
2687
|
}, {
|
|
2685
2688
|
default: s(() => [
|
|
2686
2689
|
h(o(a.value.purgeOwner), 1)
|
|
2687
2690
|
]),
|
|
2688
2691
|
_: 1
|
|
2689
2692
|
}, 8, ["disabled", "onClick"])) : y("", !0),
|
|
2690
|
-
!M(
|
|
2693
|
+
!M(U) && !U.pauseRequested && !U.delegation_id ? (l(), g(e(I), {
|
|
2691
2694
|
key: 1,
|
|
2692
2695
|
variant: "secondary",
|
|
2693
2696
|
disabled: d.value,
|
|
2694
|
-
onClick: (me) => L(
|
|
2697
|
+
onClick: (me) => L(U.id)
|
|
2695
2698
|
}, {
|
|
2696
2699
|
default: s(() => [
|
|
2697
2700
|
h(o(a.value.pause), 1)
|
|
2698
2701
|
]),
|
|
2699
2702
|
_: 1
|
|
2700
2703
|
}, 8, ["disabled", "onClick"])) : y("", !0),
|
|
2701
|
-
|
|
2704
|
+
U.state === "paused" || N(U) ? (l(), g(e(I), {
|
|
2702
2705
|
key: 2,
|
|
2703
2706
|
variant: "secondary",
|
|
2704
2707
|
disabled: d.value,
|
|
2705
|
-
onClick: (me) => V(
|
|
2708
|
+
onClick: (me) => V(U.id)
|
|
2706
2709
|
}, {
|
|
2707
2710
|
default: s(() => [
|
|
2708
2711
|
h(o(a.value.resume), 1)
|
|
2709
2712
|
]),
|
|
2710
2713
|
_: 1
|
|
2711
2714
|
}, 8, ["disabled", "onClick"])) : y("", !0),
|
|
2712
|
-
se(
|
|
2715
|
+
se(U) ? y("", !0) : (l(), g(e(I), {
|
|
2713
2716
|
key: 3,
|
|
2714
2717
|
variant: "secondary",
|
|
2715
2718
|
disabled: d.value,
|
|
2716
|
-
onClick: (me) => Ee(
|
|
2719
|
+
onClick: (me) => Ee(U.id)
|
|
2717
2720
|
}, {
|
|
2718
2721
|
default: s(() => [
|
|
2719
2722
|
h(o(a.value.cancel), 1)
|
|
2720
2723
|
]),
|
|
2721
2724
|
_: 1
|
|
2722
2725
|
}, 8, ["disabled", "onClick"])),
|
|
2723
|
-
ke(
|
|
2726
|
+
ke(U) ? (l(), g(e(I), {
|
|
2724
2727
|
key: 4,
|
|
2725
2728
|
variant: "secondary",
|
|
2726
2729
|
disabled: d.value,
|
|
2727
|
-
onClick: (me) => ye(
|
|
2730
|
+
onClick: (me) => ye(U)
|
|
2728
2731
|
}, {
|
|
2729
2732
|
default: s(() => [
|
|
2730
2733
|
h(o(a.value.scheduleCopy), 1)
|
|
2731
2734
|
]),
|
|
2732
2735
|
_: 1
|
|
2733
2736
|
}, 8, ["disabled", "onClick"])) : y("", !0),
|
|
2734
|
-
|
|
2737
|
+
U.state === "succeeded" ? (l(), g(e(I), {
|
|
2735
2738
|
key: 5,
|
|
2736
2739
|
variant: "secondary",
|
|
2737
2740
|
disabled: d.value,
|
|
2738
|
-
onClick: (me) => fe(
|
|
2741
|
+
onClick: (me) => fe(U)
|
|
2739
2742
|
}, {
|
|
2740
2743
|
default: s(() => [
|
|
2741
2744
|
h(o(a.value.result), 1)
|
|
@@ -2747,7 +2750,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2747
2750
|
]),
|
|
2748
2751
|
_: 2
|
|
2749
2752
|
}, 1032, ["title", "data-job-state", "data-job-id"]))), 128))
|
|
2750
|
-
])) : (l(), _("p",
|
|
2753
|
+
])) : (l(), _("p", xn, o(a.value.noJobs), 1)),
|
|
2751
2754
|
p(e(_e), {
|
|
2752
2755
|
"data-bg-schedules": "",
|
|
2753
2756
|
class: "bg-schedules",
|
|
@@ -2769,7 +2772,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2769
2772
|
default: s(() => [
|
|
2770
2773
|
p(e(ga), {
|
|
2771
2774
|
modelValue: k.value,
|
|
2772
|
-
"onUpdate:modelValue": Y[3] || (Y[3] = (
|
|
2775
|
+
"onUpdate:modelValue": Y[3] || (Y[3] = (U) => k.value = U),
|
|
2773
2776
|
"data-schedule-interval": "",
|
|
2774
2777
|
options: J.value,
|
|
2775
2778
|
disabled: d.value
|
|
@@ -2777,16 +2780,16 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2777
2780
|
]),
|
|
2778
2781
|
_: 1
|
|
2779
2782
|
}, 8, ["label"]),
|
|
2780
|
-
p(e(
|
|
2783
|
+
p(e(St), {
|
|
2781
2784
|
modelValue: P.value,
|
|
2782
|
-
"onUpdate:modelValue": Y[4] || (Y[4] = (
|
|
2785
|
+
"onUpdate:modelValue": Y[4] || (Y[4] = (U) => P.value = U),
|
|
2783
2786
|
"data-schedule-consent": "",
|
|
2784
2787
|
disabled: d.value,
|
|
2785
2788
|
label: a.value.scheduleConsent
|
|
2786
2789
|
}, null, 8, ["modelValue", "disabled", "label"]),
|
|
2787
|
-
p(e(
|
|
2790
|
+
p(e(oa), null, {
|
|
2788
2791
|
default: s(() => [
|
|
2789
|
-
p(e(
|
|
2792
|
+
p(e(I), {
|
|
2790
2793
|
type: "submit",
|
|
2791
2794
|
variant: "primary",
|
|
2792
2795
|
disabled: d.value || !P.value
|
|
@@ -2796,11 +2799,11 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2796
2799
|
]),
|
|
2797
2800
|
_: 1
|
|
2798
2801
|
}, 8, ["disabled"]),
|
|
2799
|
-
p(e(
|
|
2802
|
+
p(e(I), {
|
|
2800
2803
|
type: "button",
|
|
2801
2804
|
variant: "secondary",
|
|
2802
2805
|
disabled: d.value,
|
|
2803
|
-
onClick: Y[5] || (Y[5] = (
|
|
2806
|
+
onClick: Y[5] || (Y[5] = (U) => x.value = void 0)
|
|
2804
2807
|
}, {
|
|
2805
2808
|
default: s(() => [
|
|
2806
2809
|
h(o(a.value.cancel), 1)
|
|
@@ -2813,30 +2816,30 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2813
2816
|
]),
|
|
2814
2817
|
_: 1
|
|
2815
2818
|
})) : y("", !0),
|
|
2816
|
-
v.value.length ? (l(), _("div",
|
|
2817
|
-
(l(!0), _(Z, null, pe(v.value, (
|
|
2818
|
-
key:
|
|
2819
|
-
title:
|
|
2819
|
+
v.value.length ? (l(), _("div", Un, [
|
|
2820
|
+
(l(!0), _(Z, null, pe(v.value, (U) => (l(), g(e(Ca), {
|
|
2821
|
+
key: U.id,
|
|
2822
|
+
title: U.name,
|
|
2820
2823
|
"layout-type": "compact",
|
|
2821
|
-
"data-schedule-id":
|
|
2824
|
+
"data-schedule-id": U.id
|
|
2822
2825
|
}, {
|
|
2823
2826
|
"header-actions": s(() => [
|
|
2824
2827
|
p(e(Je), {
|
|
2825
|
-
tone:
|
|
2828
|
+
tone: U.enabled ? "success" : "neutral",
|
|
2826
2829
|
"data-bg-state": ""
|
|
2827
2830
|
}, {
|
|
2828
2831
|
default: s(() => [
|
|
2829
|
-
h(o(
|
|
2832
|
+
h(o(U.enabled ? a.value.scheduleOn : a.value.scheduleOff), 1)
|
|
2830
2833
|
]),
|
|
2831
2834
|
_: 2
|
|
2832
2835
|
}, 1032, ["tone"])
|
|
2833
2836
|
]),
|
|
2834
2837
|
default: s(() => [
|
|
2835
|
-
S("div",
|
|
2836
|
-
i.value.admin ? (l(), _("span",
|
|
2837
|
-
|
|
2838
|
-
S("span",
|
|
2839
|
-
|
|
2838
|
+
S("div", In, [
|
|
2839
|
+
i.value.admin ? (l(), _("span", Dn, o(u(a.value.owner, { user: U.owner.user, uid: U.owner.uid })), 1)) : y("", !0),
|
|
2840
|
+
U.enabled ? (l(), _("span", Nn, o(u(a.value.nextRun, { time: oe(U.nextAt) })), 1)) : y("", !0),
|
|
2841
|
+
S("span", Ln, o(u(a.value.missedRuns, { count: U.missed })), 1),
|
|
2842
|
+
U.reason === "worker-changed" ? (l(), g(e(Q), {
|
|
2840
2843
|
key: 2,
|
|
2841
2844
|
tone: "warning"
|
|
2842
2845
|
}, {
|
|
@@ -2844,7 +2847,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2844
2847
|
h(o(a.value.revisionChanged), 1)
|
|
2845
2848
|
]),
|
|
2846
2849
|
_: 1
|
|
2847
|
-
})) :
|
|
2850
|
+
})) : U.reason === "input-unavailable" ? (l(), g(e(Q), {
|
|
2848
2851
|
key: 3,
|
|
2849
2852
|
tone: "warning"
|
|
2850
2853
|
}, {
|
|
@@ -2853,32 +2856,32 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2853
2856
|
]),
|
|
2854
2857
|
_: 1
|
|
2855
2858
|
})) : y("", !0),
|
|
2856
|
-
S("div",
|
|
2857
|
-
|
|
2859
|
+
S("div", Vn, [
|
|
2860
|
+
U.enabled ? (l(), g(e(I), {
|
|
2858
2861
|
key: 0,
|
|
2859
2862
|
variant: "secondary",
|
|
2860
2863
|
disabled: d.value,
|
|
2861
|
-
onClick: (me) => $e(
|
|
2864
|
+
onClick: (me) => $e(U.id)
|
|
2862
2865
|
}, {
|
|
2863
2866
|
default: s(() => [
|
|
2864
2867
|
h(o(a.value.disableSchedule), 1)
|
|
2865
2868
|
]),
|
|
2866
2869
|
_: 1
|
|
2867
|
-
}, 8, ["disabled", "onClick"])) : i.value.admin ? (l(), g(e(
|
|
2870
|
+
}, 8, ["disabled", "onClick"])) : i.value.admin ? (l(), g(e(I), {
|
|
2868
2871
|
key: 1,
|
|
2869
2872
|
variant: "secondary",
|
|
2870
2873
|
disabled: d.value,
|
|
2871
|
-
onClick: (me) => z.value =
|
|
2874
|
+
onClick: (me) => z.value = U
|
|
2872
2875
|
}, {
|
|
2873
2876
|
default: s(() => [
|
|
2874
2877
|
h(o(a.value.enableSchedule), 1)
|
|
2875
2878
|
]),
|
|
2876
2879
|
_: 1
|
|
2877
2880
|
}, 8, ["disabled", "onClick"])) : y("", !0),
|
|
2878
|
-
p(e(
|
|
2881
|
+
p(e(I), {
|
|
2879
2882
|
variant: "secondary",
|
|
2880
2883
|
disabled: d.value,
|
|
2881
|
-
onClick: (me) => $.value =
|
|
2884
|
+
onClick: (me) => $.value = U
|
|
2882
2885
|
}, {
|
|
2883
2886
|
default: s(() => [
|
|
2884
2887
|
h(o(a.value.deleteSchedule), 1)
|
|
@@ -2890,15 +2893,15 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2890
2893
|
]),
|
|
2891
2894
|
_: 2
|
|
2892
2895
|
}, 1032, ["title", "data-schedule-id"]))), 128))
|
|
2893
|
-
])) : (l(), _("p",
|
|
2896
|
+
])) : (l(), _("p", Rn, o(a.value.noSchedules), 1)),
|
|
2894
2897
|
$.value ? (l(), g(e(Q), {
|
|
2895
2898
|
key: 3,
|
|
2896
2899
|
tone: "warning"
|
|
2897
2900
|
}, {
|
|
2898
2901
|
default: s(() => [
|
|
2899
2902
|
S("p", null, o(u(a.value.deleteScheduleConsent, { name: $.value.name })), 1),
|
|
2900
|
-
S("div",
|
|
2901
|
-
p(e(
|
|
2903
|
+
S("div", Bn, [
|
|
2904
|
+
p(e(I), {
|
|
2902
2905
|
variant: "danger",
|
|
2903
2906
|
disabled: d.value,
|
|
2904
2907
|
onClick: ee
|
|
@@ -2908,10 +2911,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2908
2911
|
]),
|
|
2909
2912
|
_: 1
|
|
2910
2913
|
}, 8, ["disabled"]),
|
|
2911
|
-
p(e(
|
|
2914
|
+
p(e(I), {
|
|
2912
2915
|
variant: "secondary",
|
|
2913
2916
|
disabled: d.value,
|
|
2914
|
-
onClick: Y[6] || (Y[6] = (
|
|
2917
|
+
onClick: Y[6] || (Y[6] = (U) => $.value = void 0)
|
|
2915
2918
|
}, {
|
|
2916
2919
|
default: s(() => [
|
|
2917
2920
|
h(o(a.value.cancel), 1)
|
|
@@ -2928,8 +2931,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2928
2931
|
}, {
|
|
2929
2932
|
default: s(() => [
|
|
2930
2933
|
S("p", null, o(u(a.value.enableScheduleConsent, { name: z.value.name })), 1),
|
|
2931
|
-
S("div",
|
|
2932
|
-
p(e(
|
|
2934
|
+
S("div", Fn, [
|
|
2935
|
+
p(e(I), {
|
|
2933
2936
|
variant: "primary",
|
|
2934
2937
|
disabled: d.value,
|
|
2935
2938
|
onClick: ue
|
|
@@ -2939,10 +2942,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2939
2942
|
]),
|
|
2940
2943
|
_: 1
|
|
2941
2944
|
}, 8, ["disabled"]),
|
|
2942
|
-
p(e(
|
|
2945
|
+
p(e(I), {
|
|
2943
2946
|
variant: "secondary",
|
|
2944
2947
|
disabled: d.value,
|
|
2945
|
-
onClick: Y[7] || (Y[7] = (
|
|
2948
|
+
onClick: Y[7] || (Y[7] = (U) => z.value = void 0)
|
|
2946
2949
|
}, {
|
|
2947
2950
|
default: s(() => [
|
|
2948
2951
|
h(o(a.value.cancel), 1)
|
|
@@ -2972,13 +2975,13 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
2972
2975
|
_: 1
|
|
2973
2976
|
}, 8, ["aria-busy", "title", "description"]));
|
|
2974
2977
|
}
|
|
2975
|
-
}), qs = /* @__PURE__ */ ve(
|
|
2978
|
+
}), qs = /* @__PURE__ */ ve(On, [["__scopeId", "data-v-85ff7ec5"]]), qn = ["inert", "aria-hidden"], Mn = {
|
|
2976
2979
|
key: 3,
|
|
2977
2980
|
class: "executor-approval"
|
|
2978
|
-
},
|
|
2981
|
+
}, Kn = {
|
|
2979
2982
|
key: 0,
|
|
2980
2983
|
class: "executor-brand"
|
|
2981
|
-
},
|
|
2984
|
+
}, Hn = ["src"], Gn = /* @__PURE__ */ de({
|
|
2982
2985
|
__name: "ExecutorApproval",
|
|
2983
2986
|
props: {
|
|
2984
2987
|
admin: { type: Boolean },
|
|
@@ -3005,9 +3008,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3005
3008
|
}
|
|
3006
3009
|
}
|
|
3007
3010
|
const x = w(() => Se(i.value)), P = w(() => !!c.preload && !!n && (u.value === "ready" || u.value === "checking"));
|
|
3008
|
-
return
|
|
3011
|
+
return Oe(Ba, w(() => P.value && u.value === "checking")), He(() => x.value, v), we(() => {
|
|
3009
3012
|
n && (n.subscribe?.((k) => {
|
|
3010
|
-
!m && !
|
|
3013
|
+
!m && !ta(k) && f(k);
|
|
3011
3014
|
}), d = c.ctx?.reopen(() => {
|
|
3012
3015
|
v();
|
|
3013
3016
|
}), v());
|
|
@@ -3022,16 +3025,16 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3022
3025
|
}, [
|
|
3023
3026
|
he(k.$slots, "default", {}, void 0, !0)
|
|
3024
3027
|
], 10, qn)) : !e(n) || u.value === "ready" ? he(k.$slots, "default", {}, void 0, !0, 1) : y("", !0),
|
|
3025
|
-
e(n) && u.value === "checking" ? (l(), g(e(
|
|
3028
|
+
e(n) && u.value === "checking" ? (l(), g(e(Va), {
|
|
3026
3029
|
key: 2,
|
|
3027
3030
|
text: a.value.loading
|
|
3028
|
-
}, null, 8, ["text"])) : e(n) && u.value !== "ready" ? (l(), _("div",
|
|
3029
|
-
r.value ? (l(), _("header",
|
|
3031
|
+
}, null, 8, ["text"])) : e(n) && u.value !== "ready" ? (l(), _("div", Mn, [
|
|
3032
|
+
r.value ? (l(), _("header", Kn, [
|
|
3030
3033
|
r.value.appIcon ? (l(), _("img", {
|
|
3031
3034
|
key: 0,
|
|
3032
3035
|
src: r.value.appIcon,
|
|
3033
3036
|
alt: ""
|
|
3034
|
-
}, null, 8,
|
|
3037
|
+
}, null, 8, Hn)) : y("", !0),
|
|
3035
3038
|
S("span", null, o(r.value.displayName), 1)
|
|
3036
3039
|
])) : y("", !0),
|
|
3037
3040
|
x.value ? (l(), g(e(Q), {
|
|
@@ -3052,7 +3055,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3052
3055
|
title: "",
|
|
3053
3056
|
layout: "page",
|
|
3054
3057
|
onConfirmed: v
|
|
3055
|
-
}, null, 8, ["locale", "initial", "purpose"])) : u.value === "needs-admin-approval" ? (l(), g(
|
|
3058
|
+
}, null, 8, ["locale", "initial", "purpose"])) : u.value === "needs-admin-approval" ? (l(), g(la, {
|
|
3056
3059
|
key: 3,
|
|
3057
3060
|
admin: !1,
|
|
3058
3061
|
locale: t.locale,
|
|
@@ -3070,29 +3073,29 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3070
3073
|
])) : y("", !0)
|
|
3071
3074
|
], 64));
|
|
3072
3075
|
}
|
|
3073
|
-
}),
|
|
3076
|
+
}), Ms = /* @__PURE__ */ ve(Gn, [["__scopeId", "data-v-da0bbc2c"]]), Xn = {
|
|
3074
3077
|
key: 2,
|
|
3075
3078
|
role: "status"
|
|
3076
|
-
},
|
|
3079
|
+
}, Wn = {
|
|
3077
3080
|
key: 3,
|
|
3078
3081
|
role: "status"
|
|
3079
|
-
},
|
|
3082
|
+
}, Jn = {
|
|
3080
3083
|
key: 0,
|
|
3081
3084
|
role: "status",
|
|
3082
3085
|
class: "destination"
|
|
3083
|
-
},
|
|
3086
|
+
}, Yn = {
|
|
3084
3087
|
key: 0,
|
|
3085
3088
|
"data-placeholder-row": ""
|
|
3086
|
-
},
|
|
3089
|
+
}, Qn = { key: 1 }, jn = {
|
|
3087
3090
|
key: 2,
|
|
3088
3091
|
role: "list"
|
|
3089
|
-
},
|
|
3092
|
+
}, Zn = {
|
|
3090
3093
|
key: 0,
|
|
3091
3094
|
"data-placeholder-row": ""
|
|
3092
|
-
},
|
|
3095
|
+
}, es = { key: 1 }, as = {
|
|
3093
3096
|
key: 2,
|
|
3094
3097
|
role: "list"
|
|
3095
|
-
},
|
|
3098
|
+
}, ts = /* @__PURE__ */ de({
|
|
3096
3099
|
__name: "DelegatePanel",
|
|
3097
3100
|
props: {
|
|
3098
3101
|
ctx: {}
|
|
@@ -3101,7 +3104,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3101
3104
|
const n = t, a = w(() => Re(n.ctx.locale)), u = w(() => ya(n.ctx.locale)), i = za(n.ctx), r = b(), f = b([]), m = b([]), d = b(!1), v = b(), x = b(""), P = b(!1), k = b(""), $ = b(""), z = b("");
|
|
3102
3105
|
let C = !1, T, A;
|
|
3103
3106
|
const ae = b();
|
|
3104
|
-
|
|
3107
|
+
qe([$, k, z], () => {
|
|
3105
3108
|
A = void 0;
|
|
3106
3109
|
}, { flush: "sync" });
|
|
3107
3110
|
const F = (W) => ["queued", "running", "waiting_executor"].includes(W.state), G = { waiting_executor: "info", queued: "info", running: "info", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }, X = w(() => m.value.some((W) => W.state === "waiting_executor")), B = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = w(() => X.value && B.includes(v.value?.code ?? "")), D = w(() => !r.value && !v.value && !ae.value), E = w(() => r.value && r.value.state !== "ready" && !(X.value && r.value.state === "needs-admin-approval" && B.includes(r.value.reason ?? "")));
|
|
@@ -3129,7 +3132,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3129
3132
|
He(() => ae.value, N);
|
|
3130
3133
|
const le = (W) => se(async () => {
|
|
3131
3134
|
await n.ctx.call("delegate.revoke", { delegation_id: W }), await M();
|
|
3132
|
-
}),
|
|
3135
|
+
}), O = (W) => se(async () => {
|
|
3133
3136
|
const H = await n.ctx.call("delegate.jobs.cancel", { id: W });
|
|
3134
3137
|
C || (x.value = H.revocation_pending ? a.value.pending : ""), await M();
|
|
3135
3138
|
}), j = w(() => r.value?.state === "ready" && !!k.value && !!$.value && !!z.value), ie = () => se(async () => {
|
|
@@ -3172,8 +3175,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3172
3175
|
]),
|
|
3173
3176
|
_: 1
|
|
3174
3177
|
})) : y("", !0),
|
|
3175
|
-
x.value ? (l(), _("p",
|
|
3176
|
-
E.value ? (l(), _("p",
|
|
3178
|
+
x.value ? (l(), _("p", Xn, o(x.value), 1)) : y("", !0),
|
|
3179
|
+
E.value ? (l(), _("p", Wn, o(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : y("", !0),
|
|
3177
3180
|
p(e(Ke), {
|
|
3178
3181
|
direction: "vertical",
|
|
3179
3182
|
onSubmit: Me(ie, ["prevent"])
|
|
@@ -3210,13 +3213,13 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3210
3213
|
_: 1
|
|
3211
3214
|
}, 8, ["label"]),
|
|
3212
3215
|
S("p", null, o(a.value.size), 1),
|
|
3213
|
-
k.value ? (l(), _("p",
|
|
3216
|
+
k.value ? (l(), _("p", Jn, [
|
|
3214
3217
|
h(o(a.value.destination) + o(u.value), 1),
|
|
3215
3218
|
p(e(Le), { path: k.value }, null, 8, ["path"])
|
|
3216
3219
|
])) : y("", !0),
|
|
3217
|
-
p(e(
|
|
3220
|
+
p(e(oa), null, {
|
|
3218
3221
|
default: s(() => [
|
|
3219
|
-
p(e(
|
|
3222
|
+
p(e(I), {
|
|
3220
3223
|
type: "button",
|
|
3221
3224
|
variant: "secondary",
|
|
3222
3225
|
disabled: d.value || r.value?.state !== "ready",
|
|
@@ -3227,7 +3230,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3227
3230
|
]),
|
|
3228
3231
|
_: 1
|
|
3229
3232
|
}, 8, ["disabled"]),
|
|
3230
|
-
p(e(
|
|
3233
|
+
p(e(I), {
|
|
3231
3234
|
type: "submit",
|
|
3232
3235
|
variant: "primary",
|
|
3233
3236
|
disabled: d.value || !j.value
|
|
@@ -3243,7 +3246,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3243
3246
|
]),
|
|
3244
3247
|
_: 1
|
|
3245
3248
|
}),
|
|
3246
|
-
p(
|
|
3249
|
+
p(ia, {
|
|
3247
3250
|
open: P.value,
|
|
3248
3251
|
"onUpdate:open": H[3] || (H[3] = (J) => P.value = J),
|
|
3249
3252
|
locale: t.ctx.locale,
|
|
@@ -3258,17 +3261,17 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3258
3261
|
class: "delegate-group"
|
|
3259
3262
|
}, {
|
|
3260
3263
|
default: s(() => [
|
|
3261
|
-
D.value ? (l(), _("p",
|
|
3264
|
+
D.value ? (l(), _("p", Yn, [
|
|
3262
3265
|
p(e(Ne), {
|
|
3263
3266
|
width: "12rem",
|
|
3264
3267
|
height: "20px"
|
|
3265
3268
|
})
|
|
3266
|
-
])) : !m.value.length && !v.value ? (l(), _("p",
|
|
3269
|
+
])) : !m.value.length && !v.value ? (l(), _("p", Qn, o(a.value.noJobs), 1)) : (l(), _("div", jn, [
|
|
3267
3270
|
(l(!0), _(Z, null, pe(m.value, (J) => (l(), g(e($a), {
|
|
3268
3271
|
key: J.id,
|
|
3269
3272
|
title: J.name,
|
|
3270
3273
|
"data-job-state": J.state
|
|
3271
|
-
},
|
|
3274
|
+
}, sa({
|
|
3272
3275
|
meta: s(() => [
|
|
3273
3276
|
p(e(Je), {
|
|
3274
3277
|
tone: G[J.state],
|
|
@@ -3286,10 +3289,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3286
3289
|
F(J) ? {
|
|
3287
3290
|
name: "actions",
|
|
3288
3291
|
fn: s(() => [
|
|
3289
|
-
p(e(
|
|
3292
|
+
p(e(I), {
|
|
3290
3293
|
variant: "secondary",
|
|
3291
3294
|
disabled: d.value,
|
|
3292
|
-
onClick: (ye) =>
|
|
3295
|
+
onClick: (ye) => O(J.id)
|
|
3293
3296
|
}, {
|
|
3294
3297
|
default: s(() => [
|
|
3295
3298
|
h(o(a.value.cancel), 1)
|
|
@@ -3310,12 +3313,12 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3310
3313
|
class: "delegate-group"
|
|
3311
3314
|
}, {
|
|
3312
3315
|
default: s(() => [
|
|
3313
|
-
D.value ? (l(), _("p",
|
|
3316
|
+
D.value ? (l(), _("p", Zn, [
|
|
3314
3317
|
p(e(Ne), {
|
|
3315
3318
|
width: "12rem",
|
|
3316
3319
|
height: "20px"
|
|
3317
3320
|
})
|
|
3318
|
-
])) : !f.value.length && !v.value ? (l(), _("p",
|
|
3321
|
+
])) : !f.value.length && !v.value ? (l(), _("p", es, o(a.value.noDelegations), 1)) : (l(), _("div", as, [
|
|
3319
3322
|
(l(!0), _(Z, null, pe(f.value, (J) => (l(), g(e($a), {
|
|
3320
3323
|
key: J.delegation_id
|
|
3321
3324
|
}, {
|
|
@@ -3328,7 +3331,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3328
3331
|
h(o(a.value.expires) + o(u.value) + o(ce(J.expires_at)), 1)
|
|
3329
3332
|
]),
|
|
3330
3333
|
actions: s(() => [
|
|
3331
|
-
p(e(
|
|
3334
|
+
p(e(I), {
|
|
3332
3335
|
variant: "secondary",
|
|
3333
3336
|
disabled: d.value,
|
|
3334
3337
|
onClick: (ye) => le(J.delegation_id)
|
|
@@ -3349,19 +3352,19 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3349
3352
|
_: 1
|
|
3350
3353
|
}, 8, ["title", "description", "aria-busy"]));
|
|
3351
3354
|
}
|
|
3352
|
-
}),
|
|
3355
|
+
}), Ks = /* @__PURE__ */ ve(ts, [["__scopeId", "data-v-4f648674"]]), ls = { class: "save-alert" }, ns = { "data-save-error": "" }, ss = { class: "save-alert" }, os = {
|
|
3353
3356
|
key: 0,
|
|
3354
3357
|
class: "save-reason"
|
|
3355
|
-
},
|
|
3358
|
+
}, is = {
|
|
3356
3359
|
key: 0,
|
|
3357
3360
|
class: "save-reason"
|
|
3358
|
-
},
|
|
3361
|
+
}, us = { class: "save-alert" }, rs = {
|
|
3359
3362
|
key: 0,
|
|
3360
3363
|
class: "save-help"
|
|
3361
|
-
},
|
|
3364
|
+
}, ds = { class: "save-actions" }, cs = {
|
|
3362
3365
|
key: 1,
|
|
3363
3366
|
class: "save-none"
|
|
3364
|
-
},
|
|
3367
|
+
}, vs = /* @__PURE__ */ de({
|
|
3365
3368
|
__name: "BackgroundSaveSettings",
|
|
3366
3369
|
props: {
|
|
3367
3370
|
sdk: {},
|
|
@@ -3374,14 +3377,14 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3374
3377
|
},
|
|
3375
3378
|
emits: ["authorized", "confirmed", "destinations"],
|
|
3376
3379
|
setup(t, { expose: c, emit: n }) {
|
|
3377
|
-
const a = t, u = n, i = w(() => ma(a.locale)), r = w(() => Re(a.locale)), f = Te(Ye, void 0), m = w(() => a.ctx ?? (f?.call ? { call: f.call.bind(f) } : void 0)), d =
|
|
3380
|
+
const a = t, u = n, i = w(() => ma(a.locale)), r = w(() => Re(a.locale)), f = Te(Ye, void 0), m = w(() => a.ctx ?? (f?.call ? { call: f.call.bind(f) } : void 0)), d = qa({ get admin() {
|
|
3378
3381
|
return a.admin;
|
|
3379
3382
|
}, get locale() {
|
|
3380
3383
|
return a.locale;
|
|
3381
3384
|
}, get ctx() {
|
|
3382
3385
|
return m.value;
|
|
3383
3386
|
} }, ee), { password: v, busy: x, confirming: P, failure: k, passwordError: $, scope: z, chosen: C, options: T, dynamic: A, canConfirm: ae } = d, F = b(), G = b([]), X = b(!1), B = b(!1), K = b(), D = b(!1), E = b(!1), M = b(!1), se = b(""), N = b(), le = w(() => N.value ?? (X.value ? Se(d.status.value) : void 0));
|
|
3384
|
-
let
|
|
3387
|
+
let O = !1;
|
|
3385
3388
|
async function j() {
|
|
3386
3389
|
let re;
|
|
3387
3390
|
try {
|
|
@@ -3389,21 +3392,21 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3389
3392
|
} catch (ne) {
|
|
3390
3393
|
const Ue = Se(ne);
|
|
3391
3394
|
if (!Ue && ne?.code !== "EXECUTOR_UNAVAILABLE") throw ne;
|
|
3392
|
-
|
|
3395
|
+
O || (N.value = Ue, X.value = !Ue, F.value = void 0, G.value = []);
|
|
3393
3396
|
return;
|
|
3394
3397
|
}
|
|
3395
3398
|
const be = await Promise.all((a.picker?.keys ?? []).map((ne) => a.sdk.destination(ne)));
|
|
3396
|
-
|
|
3399
|
+
O || (N.value = void 0, X.value = !1, F.value = re, G.value = be, u("destinations", be));
|
|
3397
3400
|
}
|
|
3398
3401
|
async function ie(re) {
|
|
3399
|
-
if (!(
|
|
3402
|
+
if (!(O || B.value)) {
|
|
3400
3403
|
B.value = !0, K.value = void 0, D.value = !1;
|
|
3401
3404
|
try {
|
|
3402
3405
|
await re();
|
|
3403
3406
|
} catch (be) {
|
|
3404
|
-
|
|
3407
|
+
O || (K.value = be);
|
|
3405
3408
|
} finally {
|
|
3406
|
-
|
|
3409
|
+
O || (B.value = !1);
|
|
3407
3410
|
}
|
|
3408
3411
|
}
|
|
3409
3412
|
}
|
|
@@ -3413,9 +3416,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3413
3416
|
u("authorized", re), ce();
|
|
3414
3417
|
}
|
|
3415
3418
|
function J(re) {
|
|
3416
|
-
|
|
3419
|
+
O || (K.value = re, D.value = !0);
|
|
3417
3420
|
}
|
|
3418
|
-
const ye = w(() => D.value ? a.pickerErrorText?.(K.value) ??
|
|
3421
|
+
const ye = w(() => D.value ? a.pickerErrorText?.(K.value) ?? Ze(K.value, i.value, "select", a.locale, a.ctx?.displayName) : Ze(K.value, i.value, "save", a.locale, a.ctx?.displayName)), Ce = (re) => ie(async () => {
|
|
3419
3422
|
if ((await a.sdk.revoke({ delegation_id: re }))?.revoked !== !0) throw { code: "commit-uncertain" };
|
|
3420
3423
|
await j();
|
|
3421
3424
|
}), $e = () => ie(async () => {
|
|
@@ -3426,15 +3429,15 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3426
3429
|
});
|
|
3427
3430
|
async function ee() {
|
|
3428
3431
|
await ie(async () => {
|
|
3429
|
-
if (
|
|
3432
|
+
if (O) return;
|
|
3430
3433
|
const re = await a.sdk.status(), be = z.value?.selection;
|
|
3431
|
-
if (!
|
|
3434
|
+
if (!O) {
|
|
3432
3435
|
if (A.value) {
|
|
3433
3436
|
const ne = re.selection;
|
|
3434
3437
|
if (!be || !ne || ne.scope !== C.value || ne.scope !== be.scope || ne.generation !== be.generation || ne.root !== be.root) throw { code: "commit-uncertain" };
|
|
3435
3438
|
const Ue = se.value ? [se.value] : a.picker?.keys ?? [];
|
|
3436
3439
|
for (const ha of Ue) {
|
|
3437
|
-
if (
|
|
3440
|
+
if (O) return;
|
|
3438
3441
|
let Ie;
|
|
3439
3442
|
try {
|
|
3440
3443
|
Ie = await a.sdk.selectDestination({ key: ha, path: ne.root });
|
|
@@ -3442,28 +3445,28 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3442
3445
|
throw D.value = !0, Ja;
|
|
3443
3446
|
}
|
|
3444
3447
|
if (!Ie?.id || !Ie.username || Ie.path !== ne.root || Ie.key !== ha || Ie.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
|
|
3445
|
-
if (
|
|
3448
|
+
if (O) return;
|
|
3446
3449
|
u("authorized", Ie);
|
|
3447
3450
|
}
|
|
3448
3451
|
}
|
|
3449
|
-
|
|
3452
|
+
O || (E.value = !1, u("confirmed"), await j());
|
|
3450
3453
|
}
|
|
3451
3454
|
});
|
|
3452
3455
|
}
|
|
3453
3456
|
function ue(re) {
|
|
3454
3457
|
se.value = re, a.admin && A.value ? E.value = !0 : M.value = !0;
|
|
3455
3458
|
}
|
|
3456
|
-
const oe = w(() => F.value?.selection), ke = w(() => !F.value && !X.value && !K.value && !le.value), Ee = w(() => X.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !oe.value), L = w(() => a.admin && X.value && d.status.value?.state === "blocked" && !d.status.value.retry), V = w(() => !!F.value && !Ee.value && !F.value.disabled),
|
|
3459
|
+
const oe = w(() => F.value?.selection), ke = w(() => !F.value && !X.value && !K.value && !le.value), Ee = w(() => X.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !oe.value), L = w(() => a.admin && X.value && d.status.value?.state === "blocked" && !d.status.value.retry), V = w(() => !!F.value && !Ee.value && !F.value.disabled), q = w(() => a.admin && (Ee.value || X.value && !!d.status.value?.retry)), te = w(() => a.picker ? oe.value ? tt(a.picker.provider, oe.value.root) : F.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), fe = (re) => a.picker?.labels?.[re] ?? i.value.folder, R = w(() => {
|
|
3457
3460
|
const re = k.value;
|
|
3458
3461
|
return !re || "confirm" in re ? "" : re.code === "session_ended" ? r.value.session : d.explain(re) ?? r.value.setupError;
|
|
3459
|
-
}), Y = w(() => a.admin && Ee.value && !E.value),
|
|
3462
|
+
}), Y = w(() => a.admin && Ee.value && !E.value), U = w(() => x.value || B.value || d.error.value || !ae.value);
|
|
3460
3463
|
function me() {
|
|
3461
3464
|
E.value = !1, v.value = "", k.value = void 0, C.value = z.value?.selection?.scope ?? "";
|
|
3462
3465
|
}
|
|
3463
3466
|
return He(() => le.value, () => Promise.all([ce(), a.admin ? d.refresh() : void 0])), c({ refresh: W }), we(() => {
|
|
3464
3467
|
ce();
|
|
3465
3468
|
}), ge(() => {
|
|
3466
|
-
|
|
3469
|
+
O = !0;
|
|
3467
3470
|
}), (re, be) => (l(), g(e(_e), {
|
|
3468
3471
|
title: t.title ?? i.value.title,
|
|
3469
3472
|
description: Ee.value && !E.value ? void 0 : i.value.help,
|
|
@@ -3501,9 +3504,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3501
3504
|
role: "alert"
|
|
3502
3505
|
}, {
|
|
3503
3506
|
default: s(() => [
|
|
3504
|
-
S("span",
|
|
3505
|
-
S("span",
|
|
3506
|
-
p(e(
|
|
3507
|
+
S("span", ls, [
|
|
3508
|
+
S("span", ns, o(ye.value), 1),
|
|
3509
|
+
p(e(I), {
|
|
3507
3510
|
variant: "secondary",
|
|
3508
3511
|
size: "sm",
|
|
3509
3512
|
disabled: B.value,
|
|
@@ -3524,9 +3527,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3524
3527
|
role: "alert"
|
|
3525
3528
|
}, {
|
|
3526
3529
|
default: s(() => [
|
|
3527
|
-
S("span",
|
|
3530
|
+
S("span", ss, [
|
|
3528
3531
|
h(o(r.value.setupError), 1),
|
|
3529
|
-
p(e(
|
|
3532
|
+
p(e(I), {
|
|
3530
3533
|
variant: "secondary",
|
|
3531
3534
|
size: "sm",
|
|
3532
3535
|
disabled: e(x),
|
|
@@ -3548,7 +3551,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3548
3551
|
}, {
|
|
3549
3552
|
default: s(() => [
|
|
3550
3553
|
h(o(R.value), 1),
|
|
3551
|
-
e(k) && "reason" in e(k) && e(k).reason ? (l(), _("span",
|
|
3554
|
+
e(k) && "reason" in e(k) && e(k).reason ? (l(), _("span", os, o(e(k).reason), 1)) : y("", !0)
|
|
3552
3555
|
]),
|
|
3553
3556
|
_: 1
|
|
3554
3557
|
})) : y("", !0),
|
|
@@ -3558,10 +3561,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3558
3561
|
}, {
|
|
3559
3562
|
default: s(() => [
|
|
3560
3563
|
h(o(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
|
|
3561
|
-
e(d).status.value?.reason ? (l(), _("span",
|
|
3564
|
+
e(d).status.value?.reason ? (l(), _("span", is, o(e(d).status.value.reason), 1)) : y("", !0)
|
|
3562
3565
|
]),
|
|
3563
3566
|
_: 1
|
|
3564
|
-
})) : Ee.value && !t.admin ? (l(), g(
|
|
3567
|
+
})) : Ee.value && !t.admin ? (l(), g(la, {
|
|
3565
3568
|
key: 4,
|
|
3566
3569
|
admin: !1,
|
|
3567
3570
|
locale: t.locale,
|
|
@@ -3572,9 +3575,9 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3572
3575
|
tone: "warning"
|
|
3573
3576
|
}, {
|
|
3574
3577
|
default: s(() => [
|
|
3575
|
-
S("span",
|
|
3578
|
+
S("span", us, [
|
|
3576
3579
|
S("span", null, o(i.value.disabled), 1),
|
|
3577
|
-
t.admin ? (l(), g(e(
|
|
3580
|
+
t.admin ? (l(), g(e(I), {
|
|
3578
3581
|
key: 0,
|
|
3579
3582
|
variant: "secondary",
|
|
3580
3583
|
size: "sm",
|
|
@@ -3599,7 +3602,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3599
3602
|
]),
|
|
3600
3603
|
_: 1
|
|
3601
3604
|
})) : y("", !0),
|
|
3602
|
-
|
|
3605
|
+
q.value || E.value ? (l(), g(Xe(Y.value ? la : "div"), ea(ba({ key: 7 }, Y.value ? { admin: !0, locale: t.locale, files: !0, status: e(d).status.value } : {})), {
|
|
3603
3606
|
default: s(() => [
|
|
3604
3607
|
p(e(Ke), {
|
|
3605
3608
|
direction: "vertical",
|
|
@@ -3607,7 +3610,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3607
3610
|
onSubmit: Me(e(d).submit, ["prevent"])
|
|
3608
3611
|
}, {
|
|
3609
3612
|
default: s(() => [
|
|
3610
|
-
E.value ? (l(), _("p",
|
|
3613
|
+
E.value ? (l(), _("p", rs, o(i.value.changeHelp), 1)) : y("", !0),
|
|
3611
3614
|
e(A) ? (l(), g(e(Pe), {
|
|
3612
3615
|
key: 1,
|
|
3613
3616
|
label: i.value.folder,
|
|
@@ -3618,7 +3621,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3618
3621
|
p(e(ga), {
|
|
3619
3622
|
id: "save-scope",
|
|
3620
3623
|
modelValue: e(C),
|
|
3621
|
-
"onUpdate:modelValue": be[0] || (be[0] = (ne) =>
|
|
3624
|
+
"onUpdate:modelValue": be[0] || (be[0] = (ne) => aa(C) ? C.value = ne : null),
|
|
3622
3625
|
options: e(T),
|
|
3623
3626
|
disabled: e(x)
|
|
3624
3627
|
}, null, 8, ["modelValue", "options", "disabled"])
|
|
@@ -3633,19 +3636,19 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3633
3636
|
"validate-message-display-mode": "text"
|
|
3634
3637
|
}, {
|
|
3635
3638
|
after: s(({ classes: ne }) => [
|
|
3636
|
-
p(e(
|
|
3639
|
+
p(e(I), {
|
|
3637
3640
|
class: De(ne.afterItem),
|
|
3638
3641
|
type: "submit",
|
|
3639
3642
|
variant: "primary",
|
|
3640
3643
|
loading: e(P),
|
|
3641
|
-
disabled:
|
|
3644
|
+
disabled: U.value
|
|
3642
3645
|
}, {
|
|
3643
3646
|
default: s(() => [
|
|
3644
3647
|
h(o(E.value ? i.value.confirmChange : i.value.approve), 1)
|
|
3645
3648
|
]),
|
|
3646
3649
|
_: 1
|
|
3647
3650
|
}, 8, ["class", "loading", "disabled"]),
|
|
3648
|
-
E.value ? (l(), g(e(
|
|
3651
|
+
E.value ? (l(), g(e(I), {
|
|
3649
3652
|
key: 0,
|
|
3650
3653
|
class: De(ne.afterItem),
|
|
3651
3654
|
type: "button",
|
|
@@ -3663,7 +3666,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3663
3666
|
p(e(Ae), {
|
|
3664
3667
|
id: "save-password",
|
|
3665
3668
|
modelValue: e(v),
|
|
3666
|
-
"onUpdate:modelValue": be[1] || (be[1] = (ne) =>
|
|
3669
|
+
"onUpdate:modelValue": be[1] || (be[1] = (ne) => aa(v) ? v.value = ne : null),
|
|
3667
3670
|
type: "password",
|
|
3668
3671
|
autocomplete: "current-password",
|
|
3669
3672
|
invalid: !!e($),
|
|
@@ -3678,19 +3681,19 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3678
3681
|
]),
|
|
3679
3682
|
_: 1
|
|
3680
3683
|
}, 16)) : y("", !0),
|
|
3681
|
-
V.value && !E.value && !
|
|
3684
|
+
V.value && !E.value && !q.value ? (l(!0), _(Z, { key: 8 }, pe(G.value, (ne) => (l(), g(e(xe), {
|
|
3682
3685
|
key: ne.key,
|
|
3683
3686
|
label: fe(ne.key),
|
|
3684
3687
|
"field-width": "full",
|
|
3685
3688
|
"data-save-row": "folder"
|
|
3686
3689
|
}, {
|
|
3687
3690
|
default: s(() => [
|
|
3688
|
-
S("div",
|
|
3691
|
+
S("div", ds, [
|
|
3689
3692
|
ne.status === "active" && ne.destination ? (l(), g(e(Le), {
|
|
3690
3693
|
key: 0,
|
|
3691
3694
|
path: ne.destination.path
|
|
3692
|
-
}, null, 8, ["path"])) : (l(), _("span",
|
|
3693
|
-
p(e(
|
|
3695
|
+
}, null, 8, ["path"])) : (l(), _("span", cs, o(i.value.folderNone), 1)),
|
|
3696
|
+
p(e(I), {
|
|
3694
3697
|
variant: "secondary",
|
|
3695
3698
|
size: "sm",
|
|
3696
3699
|
disabled: B.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(A) || e(d).error.value : !te.value),
|
|
@@ -3701,7 +3704,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3701
3704
|
]),
|
|
3702
3705
|
_: 1
|
|
3703
3706
|
}, 8, ["disabled", "onClick"]),
|
|
3704
|
-
ne.status === "active" && ne.destination ? (l(), g(e(
|
|
3707
|
+
ne.status === "active" && ne.destination ? (l(), g(e(I), {
|
|
3705
3708
|
key: 2,
|
|
3706
3709
|
variant: "ghost",
|
|
3707
3710
|
size: "sm",
|
|
@@ -3719,7 +3722,7 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3719
3722
|
}, 1032, ["label"]))), 128)) : y("", !0)
|
|
3720
3723
|
], 64)),
|
|
3721
3724
|
he(re.$slots, "default", {}, void 0, !0),
|
|
3722
|
-
te.value ? (l(), g(
|
|
3725
|
+
te.value ? (l(), g(ia, {
|
|
3723
3726
|
key: oe.value?.scope,
|
|
3724
3727
|
open: M.value,
|
|
3725
3728
|
"onUpdate:open": be[2] || (be[2] = (ne) => M.value = ne),
|
|
@@ -3736,10 +3739,10 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3736
3739
|
_: 3
|
|
3737
3740
|
}, 8, ["title", "description", "aria-busy"]));
|
|
3738
3741
|
}
|
|
3739
|
-
}),
|
|
3742
|
+
}), fs = /* @__PURE__ */ ve(vs, [["__scopeId", "data-v-cce39b9a"]]), ps = { class: "background-save-panel" }, ms = {
|
|
3740
3743
|
key: 1,
|
|
3741
3744
|
class: "save-example"
|
|
3742
|
-
},
|
|
3745
|
+
}, ys = { class: "save-help" }, bs = { class: "save-actions" }, gs = /* @__PURE__ */ de({
|
|
3743
3746
|
__name: "BackgroundSavePanel",
|
|
3744
3747
|
props: {
|
|
3745
3748
|
sdk: {},
|
|
@@ -3767,8 +3770,8 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3767
3770
|
}
|
|
3768
3771
|
}
|
|
3769
3772
|
const k = ($) => a.picker?.labels?.[$] ? `${i.value.example}${r.value}${a.picker.labels[$]}` : i.value.example;
|
|
3770
|
-
return c({ refresh: d }), ($, z) => (l(), _("div",
|
|
3771
|
-
p(
|
|
3773
|
+
return c({ refresh: d }), ($, z) => (l(), _("div", ps, [
|
|
3774
|
+
p(fs, {
|
|
3772
3775
|
ref_key: "settings",
|
|
3773
3776
|
ref: m,
|
|
3774
3777
|
sdk: t.sdk,
|
|
@@ -3788,14 +3791,14 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3788
3791
|
role: "alert"
|
|
3789
3792
|
}, {
|
|
3790
3793
|
default: s(() => [
|
|
3791
|
-
h(o(e(
|
|
3794
|
+
h(o(e(Ze)(x.value, i.value, "save", t.locale, t.ctx?.displayName)), 1)
|
|
3792
3795
|
]),
|
|
3793
3796
|
_: 1
|
|
3794
3797
|
})) : y("", !0),
|
|
3795
|
-
t.sampleSave && f.value.length ? (l(), _("div",
|
|
3796
|
-
S("p",
|
|
3797
|
-
S("div",
|
|
3798
|
-
(l(!0), _(Z, null, pe(f.value, (C) => (l(), g(e(
|
|
3798
|
+
t.sampleSave && f.value.length ? (l(), _("div", ms, [
|
|
3799
|
+
S("p", ys, o(i.value.exampleHelp), 1),
|
|
3800
|
+
S("div", bs, [
|
|
3801
|
+
(l(!0), _(Z, null, pe(f.value, (C) => (l(), g(e(I), {
|
|
3799
3802
|
key: C.key,
|
|
3800
3803
|
variant: "secondary",
|
|
3801
3804
|
disabled: v.value,
|
|
@@ -3813,18 +3816,18 @@ const Tl = ["aria-busy", "aria-label"], zl = { class: "file-toolbar file-locatio
|
|
|
3813
3816
|
}, 8, ["sdk", "admin", "locale", "title", "picker", "ctx", "picker-error-text"])
|
|
3814
3817
|
]));
|
|
3815
3818
|
}
|
|
3816
|
-
}),
|
|
3817
|
-
function
|
|
3819
|
+
}), Hs = /* @__PURE__ */ ve(gs, [["__scopeId", "data-v-05618cb8"]]);
|
|
3820
|
+
function hs(t) {
|
|
3818
3821
|
const { code: c, message: n } = t ?? {};
|
|
3819
3822
|
return !!Fe(t) || typeof c == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(c) || c === "bad_response" && /HTTP 40[13]\b/.test(String(n));
|
|
3820
3823
|
}
|
|
3821
3824
|
const Wa = /* @__PURE__ */ Symbol("authorization");
|
|
3822
|
-
function
|
|
3825
|
+
function ks() {
|
|
3823
3826
|
const t = Te(Wa, void 0);
|
|
3824
3827
|
if (!t) throw Error("authorization controls must be placed inside AuthorizationGate");
|
|
3825
3828
|
return t;
|
|
3826
3829
|
}
|
|
3827
|
-
const
|
|
3830
|
+
const _s = { class: "authorization-content" }, ws = ["aria-busy", "data-authorization-state"], xs = { class: "authorization-body" }, Cs = /* @__PURE__ */ de({
|
|
3828
3831
|
__name: "AuthorizationGate",
|
|
3829
3832
|
props: {
|
|
3830
3833
|
ctx: {},
|
|
@@ -3832,17 +3835,17 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3832
3835
|
},
|
|
3833
3836
|
emits: ["ready"],
|
|
3834
3837
|
setup(t, { emit: c }) {
|
|
3835
|
-
const n = t, a = c, u = b(), i = b(), r = b(!1), f = b(!1), m = b(!1), d =
|
|
3838
|
+
const n = t, a = c, u = b(), i = b(), r = b(!1), f = b(!1), m = b(!1), d = Pt();
|
|
3836
3839
|
let v = [], x = !1, P = 0, k = !1, $, z = 0, C;
|
|
3837
|
-
const T = w(() => Ra(n.ctx.locale, n.name ?? n.ctx.displayName ?? "")), A = w(() => u.value || i.value), ae = w(() => A.value?.state === "authorization_required"), F = w(() => ["helper_untrusted", "cli_untrusted"].includes(A.value?.reason || "")), G = w(() => ae.value && !F.value), X = w(() => A.value?.state === "unavailable" ? Se(A.value) : void 0), B = w(() => X.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[A.value?.reason ?? ""] ?? "unavailable"), K = w(() =>
|
|
3840
|
+
const T = w(() => Ra(n.ctx.locale, n.name ?? n.ctx.displayName ?? "")), A = w(() => u.value || i.value), ae = w(() => A.value?.state === "authorization_required"), F = w(() => ["helper_untrusted", "cli_untrusted"].includes(A.value?.reason || "")), G = w(() => ae.value && !F.value), X = w(() => A.value?.state === "unavailable" ? Se(A.value) : void 0), B = w(() => X.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[A.value?.reason ?? ""] ?? "unavailable"), K = w(() => na({ code: A.value?.reason }, n.ctx.locale, n.name ?? n.ctx.displayName)), D = w(() => K.value?.title ?? (A.value ? ae.value ? T.value("title") : A.value.state === "ready" ? T.value("ready") : A.value.state === "not_admin" ? T.value("not_admin.title") : A.value.state === "session_expired" ? T.value("session_expired.title") : T.value(B.value + ".title") : T.value("checking"))), E = w(() => K.value?.message ?? (ae.value ? T.value("purpose") : A.value?.state === "not_admin" ? T.value("not_admin.body") : A.value?.state === "session_expired" ? T.value("session_expired.body") : A.value?.state === "unavailable" ? T.value(B.value + ".body") : T.value("purpose"))), M = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], se = w(() => M.includes(A.value?.reason || "") ? A.value.reason : "unknown"), N = w(() => F.value ? "next.reinstall" : se.value === "grant_missing" ? "next.install" : se.value === "upgrade_reapproval" || se.value === "grant_incompatible" ? "next.update" : "next.repair");
|
|
3838
3841
|
function le(ee) {
|
|
3839
3842
|
if (!ee || ee.command !== "authorization" || ee.schema_version !== 1 || !["ready", "authorization_required", "not_admin", "session_expired", "unavailable"].includes(ee.state) || ee.reason === "upgrade_reapproval" && ee.state !== "authorization_required") throw Error("invalid status");
|
|
3840
3843
|
return ee;
|
|
3841
3844
|
}
|
|
3842
|
-
const
|
|
3845
|
+
const O = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
|
|
3843
3846
|
function j(ee) {
|
|
3844
3847
|
const { code: ue } = ee ?? {}, oe = Se(ee);
|
|
3845
|
-
return oe ? oe === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ue === "credential_not_ready" ? ue : Fe(ee) ? Fe(ee) :
|
|
3848
|
+
return oe ? oe === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ue === "credential_not_ready" ? ue : Fe(ee) ? Fe(ee) : hs(ee) ? "access_denied" : typeof ue == "string" && O.includes(ue) || ue === void 0 ? "service_unavailable" : "check_failed";
|
|
3846
3849
|
}
|
|
3847
3850
|
let ie;
|
|
3848
3851
|
function ce() {
|
|
@@ -3887,14 +3890,14 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3887
3890
|
function $e() {
|
|
3888
3891
|
return u.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (m.value = !0), new Promise((ee) => v.push(ee)));
|
|
3889
3892
|
}
|
|
3890
|
-
return
|
|
3893
|
+
return Oe(Wa, { state: w(() => u.value?.state ?? "checking"), requireAuthorization: $e, text: T, busy: r, canManage: () => !!n.ctx.authorization?.canManage?.(), revoke: () => J("revoke") }), we(() => {
|
|
3891
3894
|
C = n.ctx.reopen(() => {
|
|
3892
3895
|
r.value ? k = !0 : J("status");
|
|
3893
3896
|
}), J("status");
|
|
3894
3897
|
}), Da(() => {
|
|
3895
3898
|
x = !0, P++, clearTimeout($), ye(!1), typeof C == "function" && C();
|
|
3896
3899
|
}), (ee, ue) => (l(), _(Z, null, [
|
|
3897
|
-
S("div",
|
|
3900
|
+
S("div", _s, [
|
|
3898
3901
|
he(ee.$slots, "default", {}, void 0, !0)
|
|
3899
3902
|
]),
|
|
3900
3903
|
p(e(Be), {
|
|
@@ -3903,7 +3906,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3903
3906
|
"onUpdate:open": Ce
|
|
3904
3907
|
}, {
|
|
3905
3908
|
footer: s(() => [
|
|
3906
|
-
G.value ? (l(), g(e(
|
|
3909
|
+
G.value ? (l(), g(e(I), {
|
|
3907
3910
|
key: 0,
|
|
3908
3911
|
variant: "primary",
|
|
3909
3912
|
loading: r.value,
|
|
@@ -3914,7 +3917,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3914
3917
|
h(o(r.value ? T.value("authorizing") : T.value("authorize")), 1)
|
|
3915
3918
|
]),
|
|
3916
3919
|
_: 1
|
|
3917
|
-
}, 8, ["loading", "disabled"])) : (l(), g(e(
|
|
3920
|
+
}, 8, ["loading", "disabled"])) : (l(), g(e(I), {
|
|
3918
3921
|
key: 1,
|
|
3919
3922
|
variant: "primary",
|
|
3920
3923
|
loading: r.value,
|
|
@@ -3933,7 +3936,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3933
3936
|
"aria-busy": r.value,
|
|
3934
3937
|
"data-authorization-state": u.value?.state || "checking"
|
|
3935
3938
|
}, [
|
|
3936
|
-
S("p",
|
|
3939
|
+
S("p", xs, o(E.value), 1),
|
|
3937
3940
|
ae.value ? (l(), g(e(Q), {
|
|
3938
3941
|
key: 0,
|
|
3939
3942
|
class: "authorization-status",
|
|
@@ -3955,19 +3958,19 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3955
3958
|
]),
|
|
3956
3959
|
_: 1
|
|
3957
3960
|
})) : y("", !0)
|
|
3958
|
-
], 8,
|
|
3961
|
+
], 8, ws)
|
|
3959
3962
|
]),
|
|
3960
3963
|
_: 1
|
|
3961
3964
|
}, 8, ["open", "title"])
|
|
3962
3965
|
], 64));
|
|
3963
3966
|
}
|
|
3964
|
-
}),
|
|
3967
|
+
}), Gs = /* @__PURE__ */ ve(Cs, [["__scopeId", "data-v-e6c8e4e1"]]), $s = { class: "authorization-setting" }, Ss = {
|
|
3965
3968
|
class: "authorization-state",
|
|
3966
3969
|
role: "status"
|
|
3967
|
-
},
|
|
3970
|
+
}, Ps = { class: "authorization-revoke-body" }, Es = /* @__PURE__ */ de({
|
|
3968
3971
|
__name: "AuthorizationSettings",
|
|
3969
3972
|
setup(t) {
|
|
3970
|
-
const { state: c, requireAuthorization: n, text: a, busy: u, canManage: i, revoke: r } =
|
|
3973
|
+
const { state: c, requireAuthorization: n, text: a, busy: u, canManage: i, revoke: r } = ks(), f = b(!1), m = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
|
|
3971
3974
|
return (d, v) => (l(), _(Z, null, [
|
|
3972
3975
|
p(e(_e), {
|
|
3973
3976
|
title: e(a)("settings.title"),
|
|
@@ -3980,16 +3983,16 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3980
3983
|
align: "center"
|
|
3981
3984
|
}, {
|
|
3982
3985
|
default: s(() => [
|
|
3983
|
-
S("div",
|
|
3984
|
-
S("span",
|
|
3985
|
-
e(c) === "ready" ? (l(), g(e(
|
|
3986
|
+
S("div", $s, [
|
|
3987
|
+
S("span", Ss, [
|
|
3988
|
+
e(c) === "ready" ? (l(), g(e(Na), {
|
|
3986
3989
|
key: 0,
|
|
3987
3990
|
size: 16,
|
|
3988
3991
|
"aria-hidden": "true"
|
|
3989
3992
|
})) : y("", !0),
|
|
3990
3993
|
h(o(e(a)(m[e(c)])), 1)
|
|
3991
3994
|
]),
|
|
3992
|
-
e(c) === "ready" && e(i)() ? (l(), g(e(
|
|
3995
|
+
e(c) === "ready" && e(i)() ? (l(), g(e(I), {
|
|
3993
3996
|
key: 0,
|
|
3994
3997
|
variant: "secondary",
|
|
3995
3998
|
disabled: e(u),
|
|
@@ -3999,7 +4002,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
3999
4002
|
h(o(e(a)("revoke")), 1)
|
|
4000
4003
|
]),
|
|
4001
4004
|
_: 1
|
|
4002
|
-
}, 8, ["disabled"])) : e(c) !== "ready" && e(c) !== "checking" ? (l(), g(e(
|
|
4005
|
+
}, 8, ["disabled"])) : e(c) !== "ready" && e(c) !== "checking" ? (l(), g(e(I), {
|
|
4003
4006
|
key: 1,
|
|
4004
4007
|
variant: "secondary",
|
|
4005
4008
|
onClick: v[1] || (v[1] = (x) => e(n)())
|
|
@@ -4022,7 +4025,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4022
4025
|
title: e(a)("revoke.title")
|
|
4023
4026
|
}, {
|
|
4024
4027
|
footer: s(() => [
|
|
4025
|
-
p(e(
|
|
4028
|
+
p(e(I), {
|
|
4026
4029
|
variant: "secondary",
|
|
4027
4030
|
onClick: v[2] || (v[2] = (x) => f.value = !1)
|
|
4028
4031
|
}, {
|
|
@@ -4031,7 +4034,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4031
4034
|
]),
|
|
4032
4035
|
_: 1
|
|
4033
4036
|
}),
|
|
4034
|
-
p(e(
|
|
4037
|
+
p(e(I), {
|
|
4035
4038
|
variant: "danger",
|
|
4036
4039
|
disabled: e(u),
|
|
4037
4040
|
onClick: v[3] || (v[3] = (x) => {
|
|
@@ -4045,13 +4048,13 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4045
4048
|
}, 8, ["disabled"])
|
|
4046
4049
|
]),
|
|
4047
4050
|
default: s(() => [
|
|
4048
|
-
S("p",
|
|
4051
|
+
S("p", Ps, o(e(a)("revoke.body")), 1)
|
|
4049
4052
|
]),
|
|
4050
4053
|
_: 1
|
|
4051
4054
|
}, 8, ["open", "title"])
|
|
4052
4055
|
], 64));
|
|
4053
4056
|
}
|
|
4054
|
-
}),
|
|
4057
|
+
}), Xs = /* @__PURE__ */ ve(Es, [["__scopeId", "data-v-8452013e"]]), Ws = /* @__PURE__ */ de({
|
|
4055
4058
|
__name: "EntryGuard",
|
|
4056
4059
|
props: {
|
|
4057
4060
|
ctx: {},
|
|
@@ -4070,7 +4073,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4070
4073
|
retry: $("retry"),
|
|
4071
4074
|
dismiss: $("cancel")
|
|
4072
4075
|
};
|
|
4073
|
-
}), r = w(() =>
|
|
4076
|
+
}), r = w(() => na(n.value, c.locale ?? "en", c.ctx.displayName)), f = w(() => r.value?.message ?? (n.value?.code === "session_required" ? i.value.session : i.value.unavailable)), m = lt({ call: (...k) => c.ctx.call(...k) }, c.mode, (k) => {
|
|
4074
4077
|
n.value = k, a.value = k !== void 0;
|
|
4075
4078
|
});
|
|
4076
4079
|
let d, v = !1;
|
|
@@ -4102,7 +4105,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4102
4105
|
"close-label": i.value.dismiss
|
|
4103
4106
|
}, {
|
|
4104
4107
|
footer: s(() => [
|
|
4105
|
-
p(e(
|
|
4108
|
+
p(e(I), {
|
|
4106
4109
|
variant: "secondary",
|
|
4107
4110
|
onClick: $[0] || ($[0] = (z) => a.value = !1)
|
|
4108
4111
|
}, {
|
|
@@ -4111,7 +4114,7 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4111
4114
|
]),
|
|
4112
4115
|
_: 1
|
|
4113
4116
|
}),
|
|
4114
|
-
p(e(
|
|
4117
|
+
p(e(I), {
|
|
4115
4118
|
variant: "primary",
|
|
4116
4119
|
disabled: u.value,
|
|
4117
4120
|
onClick: x
|
|
@@ -4128,108 +4131,108 @@ const ks = { class: "authorization-content" }, _s = ["aria-busy", "data-authoriz
|
|
|
4128
4131
|
}
|
|
4129
4132
|
});
|
|
4130
4133
|
export {
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
+
Is as AppShell,
|
|
4135
|
+
Gs as AuthorizationGate,
|
|
4136
|
+
Xs as AuthorizationSettings,
|
|
4134
4137
|
qs as BackgroundPanel,
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4138
|
+
Hs as BackgroundSavePanel,
|
|
4139
|
+
fs as BackgroundSaveSettings,
|
|
4140
|
+
Qs as DEFAULT_REQUEST_TIMEOUT,
|
|
4141
|
+
Ks as DelegatePanel,
|
|
4142
|
+
Ws as EntryGuard,
|
|
4143
|
+
Ms as ExecutorApproval,
|
|
4144
|
+
yl as ExecutorNotice,
|
|
4142
4145
|
Ba as ExecutorPreloadKey,
|
|
4143
4146
|
Ma as ExecutorSettings,
|
|
4144
4147
|
Ye as ExecutorSetupKey,
|
|
4145
|
-
|
|
4148
|
+
js as FILE_STATION_APP,
|
|
4146
4149
|
Xa as FileBrowser,
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4150
|
+
Ls as FilesPage,
|
|
4151
|
+
Zs as LIFECYCLE_RETRY_MAX_MS,
|
|
4152
|
+
eo as LIFECYCLE_STARTING_RETRY_MAX_MS,
|
|
4153
|
+
Os as LoginPage,
|
|
4154
|
+
ao as MAX_LAUNCH_ROUTE,
|
|
4155
|
+
ia as NasPicker,
|
|
4156
|
+
Ds as PageActions,
|
|
4154
4157
|
Ka as PageActionsTarget,
|
|
4155
|
-
|
|
4158
|
+
Ns as PageInfo,
|
|
4156
4159
|
Ha as PageInfoTarget,
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4160
|
+
Vs as PortalSettings,
|
|
4161
|
+
Fs as SharedFolderPermissionDialog,
|
|
4162
|
+
Bs as SharedFolderSettings,
|
|
4163
|
+
kl as UiUpdateNotice,
|
|
4164
|
+
to as activePage,
|
|
4162
4165
|
Fe as appDenial,
|
|
4163
4166
|
Se as appLifecycle,
|
|
4164
|
-
|
|
4165
|
-
|
|
4167
|
+
na as appRefusal,
|
|
4168
|
+
lo as authorizationCatalogs,
|
|
4166
4169
|
Ra as authorizationCopy,
|
|
4167
|
-
|
|
4170
|
+
no as backgroundCatalogs,
|
|
4168
4171
|
Qa as backgroundCopy,
|
|
4169
4172
|
Za as backgroundErrorCopy,
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4173
|
+
so as bridgeCatalogs,
|
|
4174
|
+
oo as bridgeErrorCopy,
|
|
4175
|
+
io as catalogs,
|
|
4176
|
+
uo as clientTimeout,
|
|
4174
4177
|
ja as createBackgroundPickerProvider,
|
|
4175
|
-
|
|
4176
|
-
|
|
4178
|
+
ro as createBackgroundSaveFacade,
|
|
4179
|
+
co as createClient,
|
|
4177
4180
|
Ya as createDsmFileStation,
|
|
4178
|
-
|
|
4181
|
+
vo as createDsmSession,
|
|
4179
4182
|
lt as createEntryCheck,
|
|
4180
|
-
|
|
4183
|
+
fo as createFileTransfers,
|
|
4181
4184
|
za as createNasProvider,
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4185
|
+
po as createPortalAccess,
|
|
4186
|
+
Us as createSession,
|
|
4187
|
+
mo as createSharedFolderAccess,
|
|
4188
|
+
yo as createSharedFolderPermission,
|
|
4189
|
+
bo as createStandaloneContext,
|
|
4190
|
+
go as createStandaloneHost,
|
|
4191
|
+
ho as decodeResponse,
|
|
4192
|
+
ko as delegateCatalogs,
|
|
4190
4193
|
Re as delegateCopy,
|
|
4191
|
-
|
|
4192
|
-
|
|
4194
|
+
_o as dsmLaunchURL,
|
|
4195
|
+
wo as encodeRequest,
|
|
4193
4196
|
at as errorCopy,
|
|
4194
|
-
|
|
4195
|
-
|
|
4197
|
+
xo as fileStationPath,
|
|
4198
|
+
Co as followLaunchRoute,
|
|
4196
4199
|
We as format,
|
|
4197
|
-
|
|
4200
|
+
$o as identityCatalogs,
|
|
4198
4201
|
Aa as identityCopy,
|
|
4199
4202
|
Ea as isFullPage,
|
|
4200
4203
|
ya as labelSeparator,
|
|
4201
|
-
|
|
4204
|
+
So as launchRoute,
|
|
4202
4205
|
Ve as lifecycleCopy,
|
|
4203
4206
|
et as lifecycleRefusal,
|
|
4204
4207
|
fa as lifecycleRetryDelay,
|
|
4205
|
-
|
|
4206
|
-
|
|
4208
|
+
Po as mergeCatalogs,
|
|
4209
|
+
Eo as nasCatalogs,
|
|
4207
4210
|
ze as nasCopy,
|
|
4208
4211
|
Ta as nasErrorCopy,
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4212
|
+
To as openFileInFileStation,
|
|
4213
|
+
zo as openFolderInFileStation,
|
|
4214
|
+
Ao as portalCatalogs,
|
|
4215
|
+
Ro as portalMessages,
|
|
4216
|
+
Uo as protocolCodes,
|
|
4217
|
+
Io as protocolOps,
|
|
4218
|
+
Do as protocolSchemas,
|
|
4219
|
+
No as readDsmPorts,
|
|
4217
4220
|
da as requestKey,
|
|
4218
|
-
|
|
4221
|
+
Lo as saveCatalogs,
|
|
4219
4222
|
ma as saveCopy,
|
|
4220
|
-
|
|
4223
|
+
Ze as saveError,
|
|
4221
4224
|
tt as scopedPicker,
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4225
|
+
Vo as sharedFolderAccessFor,
|
|
4226
|
+
Bo as sharedFolderCatalogs,
|
|
4227
|
+
Fo as sharedFolderMessages,
|
|
4228
|
+
Oo as sharedFolderPermissionMessage,
|
|
4226
4229
|
qo as shellCatalogs,
|
|
4227
|
-
|
|
4228
|
-
|
|
4230
|
+
je as shellCopy,
|
|
4231
|
+
Mo as shellPages,
|
|
4229
4232
|
pa as uiLocale,
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
+
Ko as uiLocales,
|
|
4234
|
+
ks as useAuthorization,
|
|
4235
|
+
Pt as useExecutorPreload,
|
|
4233
4236
|
Fa as useExecutorSetup,
|
|
4234
|
-
|
|
4237
|
+
zt as useNasRequest
|
|
4235
4238
|
};
|