@synopackageland/sdk 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.js CHANGED
@@ -1,10 +1,10 @@
1
- import { appRefusal as ca, appDenial as Be, delegateCopy as Re, appLifecycle as Se, lifecycleRetryDelay as va, uiLocale as fa, lifecycleCopy as Le, shellCopy as ua, isFullPage as Ea, format as We, nasCopy as ze, nasErrorCopy as Ta, saveCopy as pa, saveError as Qe, createNasProvider as za, labelSeparator as ma, identityCopy as Wa, backgroundCopy as Ja, createBackgroundPickerProvider as Ya, backgroundErrorCopy as Qa, requestKey as ha, lifecycleRefusal as Za, errorCopy as ja, scopedPicker as et, authorizationCopy as at } from "./index.js";
2
- import { DEFAULT_REQUEST_TIMEOUT as Os, FILE_STATION_APP as Ms, LIFECYCLE_RETRY_MAX_MS as Ks, LIFECYCLE_STARTING_RETRY_MAX_MS as Hs, MAX_LAUNCH_ROUTE as Xs, activePage as Gs, authorizationCatalogs as Ws, backgroundCatalogs as Js, bridgeCatalogs as Ys, bridgeErrorCopy as Qs, catalogs as Zs, clientTimeout as js, createBackgroundSaveFacade as eo, createClient as ao, createDsmSession as to, createFileTransfers as lo, createPortalAccess as no, createSharedFolderAccess as so, createSharedFolderPermission as oo, createStandaloneContext as io, createStandaloneHost as uo, decodeResponse as ro, delegateCatalogs as co, dsmLaunchURL as vo, encodeRequest as fo, fileStationPath as po, followLaunchRoute as mo, identityCatalogs as yo, launchRoute as bo, mergeCatalogs as go, nasCatalogs as ho, openFileInFileStation as ko, openFolderInFileStation as _o, portalCatalogs as wo, portalMessages as xo, protocolCodes as Co, protocolOps as $o, protocolSchemas as So, saveCatalogs as Po, sharedFolderAccessFor as Eo, sharedFolderCatalogs as To, sharedFolderMessages as zo, sharedFolderPermissionMessage as Ao, shellCatalogs as Ro, shellPages as Io, uiLocales as Uo } from "./index.js";
3
- import { inject as Te, ref as b, computed as _, onBeforeUnmount as _e, Comment as tt, Text as lt, Fragment as Q, watch as qe, onMounted as xe, defineComponent as ce, openBlock as l, createElementBlock as k, createElementVNode as $, toDisplayString as o, createCommentVNode as m, renderList as fe, normalizeClass as De, createVNode as p, unref as e, createTextVNode as h, createBlock as y, renderSlot as he, withCtx as n, resolveDynamicComponent as Ge, normalizeProps as Ze, mergeProps as ya, withModifiers as Oe, isRef as je, provide as Fe, useTemplateRef as Xe, useSlots as Aa, watchEffect as ka, guardReactiveProps as _a, createSlots as ta, Teleport as Ra, markRaw as nt, h as st, shallowRef as ot, onUnmounted as Ia, nextTick as it } from "vue";
4
- import { SettingsSection as ke, Callout as J, Button as N, SettingsRow as we, Skeleton as Ve, Badge as Je, PathDisplay as Ne, Form as Me, FormItem as Pe, Select as ba, Input as Ae, Dialog as Ke, ensureDeviceViewport as ut, AppRoot as rt, ConfigProvider as dt, PageContent as wa, PageHeader as xa, AppLayout as ct, LoadingArea as Ua, AppSidebar as vt, AppSidebarUser as ft, InfoTip as pt, FileTypeIcon as sa, IconButton as oa, Breadcrumb as mt, FilePicker as yt, TreeView as bt, DataGrid as gt, Link as ra, FormActions as la, Card as Ca, Checkbox as ht, ListItem as $a } from "@synopackageland/ui";
5
- import { Timer as kt, Info as _t, ShieldCheck as Da, ChevronRight as Va, ChevronLeft as wt, RotateCw as xt } from "@lucide/vue";
1
+ import { appRefusal as ca, appDenial as Be, delegateCopy as Re, createDsmFileStation as Wa, appLifecycle as Se, lifecycleRetryDelay as va, uiLocale as fa, lifecycleCopy as Le, shellCopy as ua, isFullPage as Ea, format as We, nasCopy as Ae, nasErrorCopy as Ta, saveCopy as pa, saveError as Qe, createNasProvider as Aa, labelSeparator as ma, identityCopy as Ja, backgroundCopy as Ya, createBackgroundPickerProvider as Qa, backgroundErrorCopy as Za, requestKey as ha, lifecycleRefusal as ja, errorCopy as et, scopedPicker as at, authorizationCopy as tt } from "./index.js";
2
+ import { DEFAULT_REQUEST_TIMEOUT as Ms, FILE_STATION_APP as Ks, LIFECYCLE_RETRY_MAX_MS as Hs, LIFECYCLE_STARTING_RETRY_MAX_MS as Xs, MAX_LAUNCH_ROUTE as Gs, activePage as Ws, authorizationCatalogs as Js, backgroundCatalogs as Ys, bridgeCatalogs as Qs, bridgeErrorCopy as Zs, catalogs as js, clientTimeout as eo, createBackgroundSaveFacade as ao, createClient as to, createDsmSession as lo, createFileTransfers as no, createPortalAccess as so, createSharedFolderAccess as oo, createSharedFolderPermission as io, createStandaloneContext as uo, createStandaloneHost as ro, decodeResponse as co, delegateCatalogs as vo, dsmLaunchURL as fo, encodeRequest as po, fileStationPath as mo, followLaunchRoute as yo, identityCatalogs as bo, launchRoute as go, mergeCatalogs as ho, nasCatalogs as ko, openFileInFileStation as _o, openFolderInFileStation as wo, portalCatalogs as xo, portalMessages as Co, protocolCodes as $o, protocolOps as So, protocolSchemas as Po, saveCatalogs as Eo, sharedFolderAccessFor as To, sharedFolderCatalogs as Ao, sharedFolderMessages as zo, sharedFolderPermissionMessage as Ro, shellCatalogs as Io, shellPages as Uo, uiLocales as Do } from "./index.js";
3
+ import { inject as Te, ref as b, computed as w, onBeforeUnmount as _e, Comment as lt, Text as nt, Fragment as ee, watch as qe, onMounted as xe, defineComponent as ce, openBlock as l, createElementBlock as k, createElementVNode as $, toDisplayString as o, createCommentVNode as m, renderList as fe, normalizeClass as De, createVNode as p, unref as e, createTextVNode as h, createBlock as y, renderSlot as he, withCtx as n, resolveDynamicComponent as Ge, normalizeProps as Ze, mergeProps as ya, withModifiers as Oe, isRef as je, provide as Fe, useTemplateRef as Xe, useSlots as za, watchEffect as ka, guardReactiveProps as _a, createSlots as ta, Teleport as Ra, markRaw as st, h as ot, shallowRef as it, onUnmounted as Ia, nextTick as ut } from "vue";
4
+ import { SettingsSection as ke, Callout as Z, Button as V, SettingsRow as we, Skeleton as Ve, Badge as Je, PathDisplay as Ne, Form as Me, FormItem as Pe, Select as ba, Input as ze, Dialog as Ke, ensureDeviceViewport as rt, AppRoot as dt, ConfigProvider as ct, PageContent as wa, PageHeader as xa, AppLayout as vt, LoadingArea as Ua, AppSidebar as ft, AppSidebarUser as pt, InfoTip as mt, FileTypeIcon as sa, IconButton as oa, Breadcrumb as yt, FilePicker as bt, TreeView as gt, DataGrid as ht, Link as ra, FormActions as la, Card as Ca, Checkbox as kt, ListItem as $a } from "@synopackageland/ui";
5
+ import { Timer as _t, Info as wt, ShieldCheck as Da, ChevronRight as Va, ChevronLeft as xt, RotateCw as Ct } from "@lucide/vue";
6
6
  const Ye = /* @__PURE__ */ Symbol("executor-setup"), Na = /* @__PURE__ */ Symbol("executor-preload");
7
- function Ct() {
7
+ function $t() {
8
8
  return Te(Na, b(!1));
9
9
  }
10
10
  function La() {
@@ -20,115 +20,115 @@ function La() {
20
20
  }
21
21
  });
22
22
  }
23
- const $t = ["password_rejected", "password_required", "password_confirm_failed"];
23
+ const St = ["password_rejected", "password_required", "password_confirm_failed"];
24
24
  function ea(t) {
25
25
  if (t.state !== "blocked") return;
26
- if (t.code) return $t.includes(t.code) ? t.code : void 0;
26
+ if (t.code) return St.includes(t.code) ? t.code : void 0;
27
27
  const v = t.reason ?? "";
28
28
  if (/^dsm_3121\b/.test(v)) return "password_rejected";
29
29
  if (/^\S+: administrator password confirmation failed\./.test(v)) return "password_confirm_failed";
30
30
  }
31
- function St(t) {
31
+ function Pt(t) {
32
32
  return /: the executor status request failed\.$/.test(t ?? "");
33
33
  }
34
- function $s(t) {
35
- const v = b(), s = _(() => v.value ? { code: v.value, ...ca({ code: v.value }, t.locale, t.displayName) } : void 0), a = b(!1), u = b(!1), i = b(), r = b("");
34
+ function Ss(t) {
35
+ const v = b(), s = w(() => v.value ? { code: v.value, ...ca({ code: v.value }, t.locale, t.displayName) } : void 0), a = b(!1), u = b(!1), i = b(), r = b("");
36
36
  let f = !1, g = 0, d, c;
37
- function w() {
37
+ function x() {
38
38
  clearTimeout(d), clearTimeout(c);
39
39
  }
40
- function z(F = "") {
41
- g++, w(), i.value = void 0, r.value = F;
40
+ function T(B = "") {
41
+ g++, x(), i.value = void 0, r.value = B;
42
42
  }
43
- function x(F) {
44
- const M = Be(F);
45
- return f || !M ? !1 : (z(), v.value = M, !0);
43
+ function C(B) {
44
+ const M = Be(B);
45
+ return f || !M ? !1 : (T(), v.value = M, !0);
46
46
  }
47
- async function S(F, M) {
48
- const V = g;
47
+ async function S(B, M) {
48
+ const D = g;
49
49
  try {
50
- return await t.call(F, M);
50
+ return await t.call(B, M);
51
51
  } catch (P) {
52
- throw V === g && x(P), P;
52
+ throw D === g && C(P), P;
53
53
  }
54
54
  }
55
- function T(F) {
55
+ function A(B) {
56
56
  if (f) return;
57
- const M = Date.parse(F.expiresAt) - Date.now();
57
+ const M = Date.parse(B.expiresAt) - Date.now();
58
58
  if (!Number.isFinite(M) || M <= 0) {
59
- z("expired");
59
+ T("expired");
60
60
  return;
61
61
  }
62
- w(), v.value = void 0, i.value = F, r.value = "", d = setTimeout(() => z("expired"), M);
63
- const V = g;
62
+ x(), v.value = void 0, i.value = B, r.value = "", d = setTimeout(() => T("expired"), M);
63
+ const D = g;
64
64
  c = setTimeout(async () => {
65
65
  try {
66
66
  const P = await S("identity.session");
67
- !f && g === V && T(P);
67
+ !f && g === D && A(P);
68
68
  } catch (P) {
69
- !f && g === V && !x(P) && z("expired");
69
+ !f && g === D && !C(P) && T("expired");
70
70
  }
71
71
  }, Math.min(6e4, M));
72
72
  }
73
- async function C() {
73
+ async function _() {
74
74
  try {
75
- const F = await S("identity.status");
75
+ const B = await S("identity.status");
76
76
  if (f) return;
77
- if (v.value = void 0, a.value = F.enabled === !0, a.value)
77
+ if (v.value = void 0, a.value = B.enabled === !0, a.value)
78
78
  try {
79
- T(await S("identity.session", { bootstrap: !0 }));
79
+ A(await S("identity.session", { bootstrap: !0 }));
80
80
  } catch (M) {
81
- !f && !Be(M) && z();
81
+ !f && !Be(M) && T();
82
82
  }
83
- } catch (F) {
83
+ } catch (B) {
84
84
  if (f) return;
85
- const M = F?.code;
86
- a.value = !Be(F) && !["unknown_method", "session_required"].includes(M || ""), a.value && (r.value = "unavailable");
85
+ const M = B?.code;
86
+ a.value = !Be(B) && !["unknown_method", "session_required"].includes(M || ""), a.value && (r.value = "unavailable");
87
87
  } finally {
88
88
  f || (u.value = !0);
89
89
  }
90
90
  }
91
- async function E(F, M) {
92
- const V = g;
91
+ async function E(B, M) {
92
+ const D = g;
93
93
  try {
94
- const P = await t.call(F, M);
95
- if (f || a.value && V !== g) throw { code: "session_required" };
94
+ const P = await t.call(B, M);
95
+ if (f || a.value && D !== g) throw { code: "session_required" };
96
96
  return P;
97
97
  } catch (P) {
98
- V === g && x(P);
98
+ D === g && C(P);
99
99
  const R = P?.code;
100
- throw !f && V === g && a.value && ["session_required", "session_revalidation_required"].includes(R || "") && z(R === "session_revalidation_required" ? "revalidate" : "expired"), P;
100
+ throw !f && D === g && a.value && ["session_required", "session_revalidation_required"].includes(R || "") && T(R === "session_revalidation_required" ? "revalidate" : "expired"), P;
101
101
  }
102
102
  }
103
- async function A(F, M) {
103
+ async function z(B, M) {
104
104
  if (!t.batch) throw { code: "unsupported", message: "batch client unavailable" };
105
- const V = g;
105
+ const D = g;
106
106
  try {
107
- const P = await t.batch(F, M);
108
- if (f || a.value && V !== g) throw { code: "session_required" };
109
- for (const R of P) R.success || (V === g && x(R.error), V === g && a.value && ["session_required", "session_revalidation_required"].includes(R.error.code) && z(R.error.code === "session_revalidation_required" ? "revalidate" : "expired"));
107
+ const P = await t.batch(B, M);
108
+ if (f || a.value && D !== g) throw { code: "session_required" };
109
+ for (const R of P) R.success || (D === g && C(R.error), D === g && a.value && ["session_required", "session_revalidation_required"].includes(R.error.code) && T(R.error.code === "session_revalidation_required" ? "revalidate" : "expired"));
110
110
  return P;
111
111
  } catch (P) {
112
- throw V === g && x(P), P;
112
+ throw D === g && C(P), P;
113
113
  }
114
114
  }
115
- async function Z(F, M, V) {
116
- const P = await S("identity.login", { account: F, password: M, otp: V });
117
- f || (g++, T(P));
115
+ async function ae(B, M, D) {
116
+ const P = await S("identity.login", { account: B, password: M, otp: D });
117
+ f || (g++, A(P));
118
118
  }
119
- async function U() {
120
- const F = await S("identity.session", { bootstrap: !0 });
121
- f || (g++, T(F));
119
+ async function F() {
120
+ const B = await S("identity.session", { bootstrap: !0 });
121
+ f || (g++, A(B));
122
122
  }
123
- async function te() {
124
- await S("identity.logout"), f || z();
123
+ async function H() {
124
+ await S("identity.logout"), f || T();
125
125
  }
126
- function H() {
127
- f = !0, z();
126
+ function X() {
127
+ f = !0, T();
128
128
  }
129
- return { enabled: a, ready: u, subject: i, notice: r, denied: s, start: C, call: E, batch: A, login: Z, bootstrap: U, logout: te, dispose: H };
129
+ return { enabled: a, ready: u, subject: i, notice: r, denied: s, start: _, call: E, batch: z, login: ae, bootstrap: F, logout: H, dispose: X };
130
130
  }
131
- function Pt() {
131
+ function Et() {
132
132
  const t = b(!1), v = b();
133
133
  let s = !1, a = 0, u;
134
134
  function i() {
@@ -153,7 +153,7 @@ function Pt() {
153
153
  }), { busy: t, error: v, run: r, cancel: i };
154
154
  }
155
155
  const Sa = ".sds-standalone-main-window";
156
- function Et(t) {
156
+ function Tt(t) {
157
157
  const v = { brand: !1, user: !1 };
158
158
  try {
159
159
  const s = t.closest(Sa);
@@ -180,17 +180,17 @@ function Et(t) {
180
180
  function Ba(t) {
181
181
  return Array.isArray(t) && t.some((v) => {
182
182
  const s = v;
183
- return s.type === tt ? !1 : s.type === lt ? String(s.children).trim() !== "" : s.type === Q ? Ba(s.children) : !0;
183
+ return s.type === lt ? !1 : s.type === nt ? String(s.children).trim() !== "" : s.type === ee ? Ba(s.children) : !0;
184
184
  });
185
185
  }
186
- function Tt(t) {
186
+ function At(t) {
187
187
  return Array.from(t.childNodes).some((v) => v.nodeType === Node.ELEMENT_NODE || v.nodeType === Node.TEXT_NODE && v.textContent.trim() !== "");
188
188
  }
189
- const zt = { status: _t, background: kt };
190
- function At(t, v) {
189
+ const zt = { status: wt, background: _t };
190
+ function Rt(t, v) {
191
191
  return t.map((s) => typeof s == "string" ? { id: s, title: v[s], icon: zt[s] } : s);
192
192
  }
193
- function Rt(t) {
193
+ function It(t) {
194
194
  const v = /* @__PURE__ */ new Map(), s = { items: [] };
195
195
  for (const a of t) {
196
196
  if (a.hidden) continue;
@@ -199,92 +199,92 @@ function Rt(t) {
199
199
  }
200
200
  return s.items.length ? [...v.values(), s] : [...v.values()];
201
201
  }
202
- const It = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Ut = 6e4, Dt = 1e3;
202
+ const Ut = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Dt = 6e4, Vt = 1e3;
203
203
  function Fa(t, v) {
204
- const s = La(), a = _(() => Re(t.locale)), u = b(), i = b(""), r = b(!1), f = b(!1), g = b(!1), d = b(), c = b(!1), w = _(() => c.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[It[d.value.confirm]] : "");
204
+ const s = La(), a = w(() => Re(t.locale)), u = b(), i = b(""), r = b(!1), f = b(!1), g = b(!1), d = b(), c = b(!1), x = w(() => c.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[Ut[d.value.confirm]] : "");
205
205
  qe(i, () => {
206
206
  c.value = !1;
207
207
  });
208
- const z = b(), x = b(""), S = b([]), T = _(() => z.value?.scope_mode === "install-selected"), C = _(() => !!z.value?.scope_mode), E = _(() => [{ label: a.value.homeScope, value: "home" }, ...S.value]), A = _(() => !T.value || !!x.value && E.value.some((q) => q.value === x.value)), Z = _(() => T.value && !z.value?.selection);
209
- let U = !1;
210
- async function te(q) {
211
- const le = q ?? await s.status();
212
- if (U || (u.value = le, !t.ctx || Se(le))) return;
213
- const K = await t.ctx.call("delegate.status");
214
- if (U || (z.value = K, K.scope_mode !== "install-selected")) return;
215
- const ee = [];
216
- let se = 0;
208
+ const T = b(), C = b(""), S = b([]), A = Wa(), _ = w(() => T.value?.scope_mode === "install-selected"), E = w(() => !!T.value?.scope_mode), z = w(() => [{ label: a.value.homeScope, value: "home" }, ...S.value]), ae = w(() => !_.value || !!C.value && z.value.some((K) => K.value === C.value)), F = w(() => _.value && !T.value?.selection);
209
+ let H = !1;
210
+ async function X(K) {
211
+ const se = K ?? await s.status();
212
+ if (H || (u.value = se, !t.ctx || Se(se))) return;
213
+ const O = await t.ctx.call("delegate.status");
214
+ if (H || (T.value = O, O.scope_mode !== "install-selected")) return;
215
+ const ne = [];
216
+ let ue = 0;
217
217
  for (let re = 0; re < 128; re++) {
218
- const oe = await t.ctx.call("bg.browse", { offset: se });
219
- if (U) return;
220
- if (!Array.isArray(oe.shares) || !Number.isSafeInteger(oe.total) || oe.total < 0 || !oe.shares.length && se < oe.total) throw { code: "EXECUTOR_PROTOCOL" };
221
- for (const G of oe.shares)
222
- G.isdir && G.path === "/" + G.name && !["home", "homes"].includes(G.name.toLowerCase()) && ee.push({ label: G.name, value: "shared:" + G.name });
223
- if (se += oe.shares.length, se >= oe.total) break;
218
+ const G = await A.shares(ue, new AbortController().signal);
219
+ if (H) return;
220
+ if (!Array.isArray(G.shares) || !Number.isSafeInteger(G.total) || G.total < 0 || !G.shares.length && ue < G.total) throw { code: "EXECUTOR_PROTOCOL" };
221
+ for (const J of G.shares)
222
+ J.isdir && J.path === "/" + J.name && !["home", "homes"].includes(J.name.toLowerCase()) && ne.push({ label: J.name, value: "shared:" + J.name });
223
+ if (ue += G.shares.length, ue >= G.total) break;
224
224
  if (re === 127) throw { code: "EXECUTOR_PROTOCOL" };
225
225
  }
226
- S.value = ee, x.value = K.selection?.scope ?? K.preselection ?? "";
226
+ S.value = ne, C.value = O.selection?.scope ?? O.preselection ?? "";
227
227
  }
228
- async function H(q) {
228
+ async function B(K) {
229
229
  if (!(!t.admin || r.value)) {
230
230
  r.value = !0, g.value = !1, d.value = void 0;
231
231
  try {
232
- await te(q);
232
+ await X(K);
233
233
  } catch {
234
- U || (g.value = !0);
234
+ H || (g.value = !0);
235
235
  } finally {
236
- U || (r.value = !1);
236
+ H || (r.value = !1);
237
237
  }
238
238
  }
239
239
  }
240
- const F = () => H();
241
- async function M() {
242
- if (!t.admin || r.value || !i.value || !A.value || g.value) return;
240
+ const M = () => B();
241
+ async function D() {
242
+ if (!t.admin || r.value || !i.value || !ae.value || g.value) return;
243
243
  r.value = !0, g.value = !1, d.value = void 0;
244
- const q = i.value, le = x.value;
244
+ const K = i.value, se = C.value;
245
245
  i.value = "", f.value = !0;
246
246
  try {
247
- let K = T.value ? await s.authorize(q, x.value) : await s.authorize(q);
248
- const ee = ea(K);
249
- if (ee) {
250
- U || (d.value = { confirm: ee }, i.value = q);
247
+ let O = _.value ? await s.authorize(K, C.value) : await s.authorize(K);
248
+ const ne = ea(O);
249
+ if (ne) {
250
+ H || (d.value = { confirm: ne }, i.value = K);
251
251
  return;
252
252
  }
253
- if (await te(K), !U && T.value && K.state === "ready" && Z.value && (K = await s.authorize(q, x.value), await te(K)), K.state !== "ready" && K.requested && await P(K.requested) && (K = await s.status(), await te(K)), K.state === "ready" && T.value && z.value?.selection?.scope !== le) {
254
- U || (d.value = { reason: "", code: "selection_failed" });
253
+ if (await X(O), !H && _.value && O.state === "ready" && F.value && (O = await s.authorize(K, C.value), await X(O)), O.state !== "ready" && O.requested && await R(O.requested) && (O = await s.status(), await X(O)), O.state === "ready" && _.value && T.value?.selection?.scope !== se) {
254
+ H || (d.value = { reason: "", code: "selection_failed" });
255
255
  return;
256
256
  }
257
- if (K.state !== "ready") {
258
- U || (d.value = { reason: K.reason ?? "", code: K.code });
257
+ if (O.state !== "ready") {
258
+ H || (d.value = { reason: O.reason ?? "", code: O.code });
259
259
  return;
260
260
  }
261
- U || await v();
261
+ H || await v();
262
262
  } catch {
263
- U || (g.value = !0);
263
+ H || (g.value = !0);
264
264
  } finally {
265
- U || (r.value = !1, f.value = !1);
265
+ H || (r.value = !1, f.value = !1);
266
266
  }
267
267
  }
268
- function V() {
269
- return !i.value && !r.value ? (c.value = !0, Promise.resolve()) : M();
268
+ function P() {
269
+ return !i.value && !r.value ? (c.value = !0, Promise.resolve()) : D();
270
270
  }
271
- async function P(q) {
272
- for (const le = Date.now() + Ut; !U; await new Promise((K) => setTimeout(K, Dt))) {
273
- const K = (await t.ctx?.call("delegate.status").catch(() => {
271
+ async function R(K) {
272
+ for (const se = Date.now() + Dt; !H; await new Promise((O) => setTimeout(O, Vt))) {
273
+ const O = (await t.ctx?.call("delegate.status").catch(() => {
274
274
  }))?.selection;
275
- if (K?.scope === q.scope && K.generation > q.generation) return !0;
276
- if (Date.now() >= le) return !1;
275
+ if (O?.scope === K.scope && O.generation > K.generation) return !0;
276
+ if (Date.now() >= se) return !1;
277
277
  }
278
278
  return !1;
279
279
  }
280
- const R = (q) => q?.code === "executor_starting" ? a.value.statusStarting : St(q?.reason) ? a.value.statusUnreachable : void 0;
280
+ const Y = (K) => K?.code === "executor_starting" ? a.value.statusStarting : Pt(K?.reason) ? a.value.statusUnreachable : void 0;
281
281
  return xe(() => {
282
- s.subscribe?.((q) => {
283
- !U && !ea(q) && (u.value = q);
284
- }), H(t.initial);
282
+ s.subscribe?.((K) => {
283
+ !H && !ea(K) && (u.value = K);
284
+ }), B(t.initial);
285
285
  }), _e(() => {
286
- U = !0, i.value = "";
287
- }), { status: u, password: i, busy: r, confirming: f, error: g, failure: d, passwordError: w, scope: z, chosen: x, options: E, dynamic: T, files: C, webapiProfiles: s.webapiProfiles, canConfirm: A, needsScope: Z, refresh: F, authorize: M, submit: V, explain: R };
286
+ H = !0, i.value = "";
287
+ }), { status: u, password: i, busy: r, confirming: f, error: g, failure: d, passwordError: x, scope: T, chosen: C, options: z, dynamic: _, files: E, webapiProfiles: s.webapiProfiles, canConfirm: ae, needsScope: F, refresh: M, authorize: D, submit: P, explain: Y };
288
288
  }
289
289
  function He(t, v) {
290
290
  let s = !1, a, u = 0;
@@ -301,28 +301,28 @@ function He(t, v) {
301
301
  s = !0, clearTimeout(a);
302
302
  });
303
303
  }
304
- const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key: 0 }, Bt = { key: 1 }, Ft = { key: 2 }, qt = { key: 3 }, Ot = { key: 1 }, Mt = /* @__PURE__ */ ce({
304
+ const Nt = ["aria-label"], Lt = { class: "executor-upgrade-title" }, Bt = { key: 0 }, Ft = { key: 1 }, qt = { key: 2 }, Ot = { key: 3 }, Mt = { key: 1 }, Kt = /* @__PURE__ */ ce({
305
305
  __name: "ExecutorUpgrade",
306
306
  props: {
307
307
  status: {},
308
308
  locale: {}
309
309
  },
310
310
  setup(t) {
311
- const v = t, s = _(() => Re(v.locale)), a = _(() => v.status?.approval), u = _(() => v.status?.state === "needs-admin-approval" && (v.status.code === "task_outdated" || !!a.value)), i = _(() => a.value?.permissions === "unchanged" ? s.value.upgradeUnchanged : a.value?.permissions === "expanded" ? s.value.upgradeExpanded : s.value.upgradeReview), r = (f) => f?.slice(0, 12) ?? "—";
311
+ const v = t, s = w(() => Re(v.locale)), a = w(() => v.status?.approval), u = w(() => v.status?.state === "needs-admin-approval" && (v.status.code === "task_outdated" || !!a.value)), i = w(() => a.value?.permissions === "unchanged" ? s.value.upgradeUnchanged : a.value?.permissions === "expanded" ? s.value.upgradeExpanded : s.value.upgradeReview), r = (f) => f?.slice(0, 12) ?? "—";
312
312
  return (f, g) => u.value ? (l(), k("section", {
313
313
  key: 0,
314
314
  class: "executor-upgrade",
315
315
  "data-approval-diff": "",
316
316
  "aria-label": s.value.upgradeTitle
317
317
  }, [
318
- $("p", Nt, o(s.value.upgradeTitle), 1),
319
- a.value ? (l(), k(Q, { key: 0 }, [
320
- a.value.root_programs.length ? (l(), k("p", Lt, o(s.value.upgradePrograms), 1)) : m("", !0),
321
- a.value.task_template_changed ? (l(), k("p", Bt, o(s.value.upgradeTasks), 1)) : m("", !0),
322
- a.value.old_policy_digest !== a.value.new_policy_digest && !a.value.root_programs.length ? (l(), k("p", Ft, o(s.value.upgradePolicy), 1)) : m("", !0),
318
+ $("p", Lt, o(s.value.upgradeTitle), 1),
319
+ a.value ? (l(), k(ee, { key: 0 }, [
320
+ a.value.root_programs.length ? (l(), k("p", Bt, o(s.value.upgradePrograms), 1)) : m("", !0),
321
+ a.value.task_template_changed ? (l(), k("p", Ft, o(s.value.upgradeTasks), 1)) : m("", !0),
322
+ a.value.old_policy_digest !== a.value.new_policy_digest && !a.value.root_programs.length ? (l(), k("p", qt, o(s.value.upgradePolicy), 1)) : m("", !0),
323
323
  $("p", null, o(i.value), 1),
324
324
  $("dl", null, [
325
- (l(!0), k(Q, null, fe(a.value.root_programs, (d) => (l(), k(Q, {
325
+ (l(!0), k(ee, null, fe(a.value.root_programs, (d) => (l(), k(ee, {
326
326
  key: d.name
327
327
  }, [
328
328
  $("dt", null, o(d.name), 1),
@@ -335,10 +335,10 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
335
335
  $("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(), k("details", qt, [
338
+ a.value.policy_changes.length ? (l(), k("details", Ot, [
339
339
  $("summary", null, o(s.value.upgradeChanges), 1),
340
340
  $("ul", null, [
341
- (l(!0), k(Q, null, fe(a.value.policy_changes, (d) => (l(), k("li", {
341
+ (l(!0), k(ee, null, fe(a.value.policy_changes, (d) => (l(), k("li", {
342
342
  key: d.path
343
343
  }, [
344
344
  $("code", null, o(d.path), 1),
@@ -346,38 +346,38 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
346
346
  ]))), 128))
347
347
  ])
348
348
  ])) : m("", !0)
349
- ], 64)) : (l(), k("p", Ot, o(s.value.upgradeUnknown), 1))
350
- ], 8, Vt)) : m("", !0);
349
+ ], 64)) : (l(), k("p", Mt, o(s.value.upgradeUnknown), 1))
350
+ ], 8, Nt)) : m("", !0);
351
351
  }
352
352
  }), pe = (t, v) => {
353
353
  const s = t.__vccOpts || t;
354
354
  for (const [a, u] of v)
355
355
  s[a] = u;
356
356
  return s;
357
- }, Kt = /* @__PURE__ */ pe(Mt, [["__scopeId", "data-v-aa18745e"]]), Ht = ["data-audience"], Xt = {
357
+ }, Ht = /* @__PURE__ */ pe(Kt, [["__scopeId", "data-v-aa18745e"]]), Xt = ["data-audience"], Gt = {
358
358
  class: "executor-consent-icon",
359
359
  "aria-hidden": "true"
360
- }, Gt = { class: "executor-consent-body" }, Wt = { class: "executor-consent-head" }, Jt = {
360
+ }, Wt = { class: "executor-consent-body" }, Jt = { class: "executor-consent-head" }, Yt = {
361
361
  class: "executor-consent-title",
362
362
  "data-consent-title": ""
363
- }, Yt = {
363
+ }, Qt = {
364
364
  class: "executor-consent-lead",
365
365
  "data-consent-lead": ""
366
- }, Qt = {
366
+ }, Zt = {
367
367
  key: 0,
368
368
  class: "executor-consent-lead executor-consent-ask",
369
369
  "data-consent-ask": ""
370
- }, Zt = {
370
+ }, jt = {
371
371
  key: 0,
372
372
  "data-webapi-profiles": ""
373
- }, jt = {
373
+ }, el = {
374
374
  key: 0,
375
375
  "data-webapi-raw": ""
376
- }, el = {
376
+ }, al = {
377
377
  key: 2,
378
378
  class: "executor-consent-more",
379
379
  "data-consent-points": ""
380
- }, al = /* @__PURE__ */ ce({
380
+ }, tl = /* @__PURE__ */ ce({
381
381
  __name: "ExecutorConsent",
382
382
  props: {
383
383
  admin: { type: Boolean },
@@ -389,44 +389,44 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
389
389
  webapiProfiles: {}
390
390
  },
391
391
  setup(t) {
392
- const v = t, s = _(() => v.status?.code === "task_outdated" || !!v.status?.approval), a = _(() => Re(v.locale)), u = _(() => ["zh-TW", "zh-CN", "ja"].includes(fa(v.locale ?? "en")) ? "" : " "), i = _(() => [a.value.consentWhy, v.purpose || (v.files ? a.value.consentPurposeFiles : a.value.consentPurpose)].join(u.value)), r = _(() => [a.value.pointPassword, a.value.pointLimited, a.value.pointUpdate, a.value.pointRevoke]);
392
+ const v = t, s = w(() => v.status?.code === "task_outdated" || !!v.status?.approval), a = w(() => Re(v.locale)), u = w(() => ["zh-TW", "zh-CN", "ja"].includes(fa(v.locale ?? "en")) ? "" : " "), i = w(() => [a.value.consentWhy, v.purpose || (v.files ? a.value.consentPurposeFiles : a.value.consentPurpose)].join(u.value)), r = w(() => [a.value.pointPassword, a.value.pointLimited, a.value.pointUpdate, a.value.pointRevoke]);
393
393
  return (f, g) => (l(), k("div", {
394
394
  class: De(["executor-consent", `executor-consent-${t.layout ?? "inline"}`]),
395
395
  "data-executor-consent": "",
396
396
  "data-audience": t.admin ? "admin" : "user"
397
397
  }, [
398
- $("span", Xt, [
398
+ $("span", Gt, [
399
399
  p(e(Da), {
400
400
  size: t.layout === "page" ? 24 : 18
401
401
  }, null, 8, ["size"])
402
402
  ]),
403
- $("div", Gt, [
404
- $("div", Wt, [
405
- $("p", Jt, o(t.admin ? s.value ? a.value.upgradeConsentTitle : a.value.consentTitle : a.value.consentTitleUser), 1),
406
- $("p", Yt, o(i.value), 1),
407
- t.admin ? m("", !0) : (l(), k("p", Qt, o(a.value.consentAsk), 1))
403
+ $("div", Wt, [
404
+ $("div", Jt, [
405
+ $("p", Yt, o(t.admin ? s.value ? a.value.upgradeConsentTitle : a.value.consentTitle : a.value.consentTitleUser), 1),
406
+ $("p", Qt, o(i.value), 1),
407
+ t.admin ? m("", !0) : (l(), k("p", Zt, o(a.value.consentAsk), 1))
408
408
  ]),
409
- t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), k("ul", Zt, [
410
- (l(!0), k(Q, null, fe(t.webapiProfiles, (d, c) => (l(), k("li", { key: c }, [
409
+ t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), k("ul", jt, [
410
+ (l(!0), k(ee, null, fe(t.webapiProfiles, (d, c) => (l(), k("li", { key: c }, [
411
411
  $("strong", null, o(c), 1),
412
412
  h(": " + o(d.purpose) + " ", 1),
413
413
  $("details", null, [
414
414
  $("summary", null, o(a.value.details), 1),
415
- (l(!0), k(Q, null, fe(d.apis, (w, z) => (l(), k("div", { key: z }, [
416
- $("code", null, o(z), 1),
417
- (l(!0), k(Q, null, fe(w, (x, S) => (l(), k("div", { key: S }, o(S) + " (" + o(x.join(", ")) + ")", 1))), 128))
415
+ (l(!0), k(ee, null, fe(d.apis, (x, T) => (l(), k("div", { key: T }, [
416
+ $("code", null, o(T), 1),
417
+ (l(!0), k(ee, null, fe(x, (C, S) => (l(), k("div", { key: S }, o(S) + " (" + o(C.join(", ")) + ")", 1))), 128))
418
418
  ]))), 128)),
419
- d.raw_max_bytes ? (l(), k("code", jt, o(a.value.rawLimit) + ": " + o(d.raw_max_bytes), 1)) : m("", !0)
419
+ d.raw_max_bytes ? (l(), k("code", el, o(a.value.rawLimit) + ": " + o(d.raw_max_bytes), 1)) : m("", !0)
420
420
  ])
421
421
  ]))), 128))
422
422
  ])) : m("", !0),
423
- t.admin ? (l(), y(Kt, {
423
+ t.admin ? (l(), y(Ht, {
424
424
  key: 1,
425
425
  status: t.status,
426
426
  locale: t.locale
427
427
  }, null, 8, ["status", "locale"])) : m("", !0),
428
428
  he(f.$slots, "default", {}, void 0, !0),
429
- t.admin ? (l(), k("details", el, [
429
+ t.admin ? (l(), k("details", al, [
430
430
  $("summary", null, [
431
431
  p(e(Va), {
432
432
  class: "executor-consent-chevron",
@@ -436,22 +436,22 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
436
436
  h(o(a.value.consentDetails), 1)
437
437
  ]),
438
438
  $("ul", null, [
439
- (l(!0), k(Q, null, fe(r.value, (d) => (l(), k("li", { key: d }, o(d), 1))), 128))
439
+ (l(!0), k(ee, null, fe(r.value, (d) => (l(), k("li", { key: d }, o(d), 1))), 128))
440
440
  ])
441
441
  ])) : m("", !0)
442
442
  ])
443
- ], 10, Ht));
443
+ ], 10, Xt));
444
444
  }
445
- }), aa = /* @__PURE__ */ pe(al, [["__scopeId", "data-v-f93b77c1"]]), tl = { class: "executor-alert" }, ll = {
445
+ }), aa = /* @__PURE__ */ pe(tl, [["__scopeId", "data-v-f93b77c1"]]), ll = { class: "executor-alert" }, nl = {
446
446
  key: 0,
447
447
  class: "executor-reason"
448
- }, nl = {
448
+ }, sl = {
449
449
  key: 0,
450
450
  class: "executor-summary"
451
- }, sl = {
451
+ }, ol = {
452
452
  key: 1,
453
453
  class: "executor-summary"
454
- }, ol = ["data-executor-status"], il = { class: "executor-reason" }, ul = /* @__PURE__ */ ce({
454
+ }, il = ["data-executor-status"], ul = { class: "executor-reason" }, rl = /* @__PURE__ */ ce({
455
455
  __name: "ExecutorSettings",
456
456
  props: {
457
457
  admin: { type: Boolean },
@@ -464,10 +464,10 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
464
464
  },
465
465
  emits: ["confirmed"],
466
466
  setup(t, { expose: v, emit: s }) {
467
- const a = t, u = s, i = _(() => Re(a.locale)), { status: r, password: f, busy: g, confirming: d, error: c, failure: w, passwordError: z, scope: x, chosen: S, options: T, dynamic: C, files: E, webapiProfiles: A, canConfirm: Z, needsScope: U, refresh: te, submit: H, explain: F } = Fa(a, () => u("confirmed")), M = _(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), V = _(() => ({ ready: { tone: "success", text: i.value.statusReady }, blocked: { tone: "danger", text: i.value.statusBlocked }, confirming: { tone: "info", text: i.value.statusConfirming } })[M.value ?? "confirming"]), P = _(() => d.value ? void 0 : Se(r.value));
468
- He(() => P.value, te);
469
- const R = _(() => !P.value && (r.value?.state === "needs-admin-approval" || U.value)), q = _(() => R.value || !!r.value?.retry);
470
- return v({ refresh: te }), (le, K) => t.admin ? (l(), y(e(ke), {
467
+ const a = t, u = s, i = w(() => Re(a.locale)), { status: r, password: f, busy: g, confirming: d, error: c, failure: x, passwordError: T, scope: C, chosen: S, options: A, dynamic: _, files: E, webapiProfiles: z, canConfirm: ae, needsScope: F, refresh: H, submit: X, explain: B } = Fa(a, () => u("confirmed")), M = 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 } })[M.value ?? "confirming"]), P = w(() => d.value ? void 0 : Se(r.value));
468
+ He(() => P.value, H);
469
+ const R = w(() => !P.value && (r.value?.state === "needs-admin-approval" || F.value)), Y = w(() => R.value || !!r.value?.retry);
470
+ return v({ refresh: H }), (K, se) => t.admin ? (l(), y(e(ke), {
471
471
  key: 0,
472
472
  title: t.title ?? i.value.setupTitle,
473
473
  description: R.value ? void 0 : e(E) ? i.value.setupHelpFiles : i.value.setupHelp,
@@ -475,19 +475,19 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
475
475
  "aria-busy": e(g) || !e(r) && !e(d) && !e(c)
476
476
  }, {
477
477
  default: n(() => [
478
- e(c) ? (l(), y(e(J), {
478
+ e(c) ? (l(), y(e(Z), {
479
479
  key: 0,
480
480
  tone: "danger",
481
481
  role: "alert"
482
482
  }, {
483
483
  default: n(() => [
484
- $("span", tl, [
484
+ $("span", ll, [
485
485
  $("span", null, o(i.value.setupError), 1),
486
- p(e(N), {
486
+ p(e(V), {
487
487
  variant: "secondary",
488
488
  size: "sm",
489
489
  disabled: e(g),
490
- onClick: e(te)
490
+ onClick: e(H)
491
491
  }, {
492
492
  default: n(() => [
493
493
  h(o(i.value.retry), 1)
@@ -497,18 +497,18 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
497
497
  ])
498
498
  ]),
499
499
  _: 1
500
- })) : e(w) && !("confirm" in e(w)) ? (l(), y(e(J), {
500
+ })) : e(x) && !("confirm" in e(x)) ? (l(), y(e(Z), {
501
501
  key: 1,
502
502
  tone: "danger",
503
503
  role: "alert"
504
504
  }, {
505
505
  default: n(() => [
506
- h(o(e(w).code === "session_ended" ? i.value.session : e(F)(e(w)) ?? i.value.setupError), 1),
507
- e(w).reason ? (l(), k("span", ll, o(e(w).reason), 1)) : m("", !0)
506
+ h(o(e(x).code === "session_ended" ? i.value.session : e(B)(e(x)) ?? i.value.setupError), 1),
507
+ e(x).reason ? (l(), k("span", nl, o(e(x).reason), 1)) : m("", !0)
508
508
  ]),
509
509
  _: 1
510
510
  })) : m("", !0),
511
- P.value ? (l(), y(e(J), {
511
+ P.value ? (l(), y(e(Z), {
512
512
  key: 2,
513
513
  tone: "info",
514
514
  role: "status"
@@ -517,8 +517,8 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
517
517
  h(o(e(Le)(P.value, t.locale)), 1)
518
518
  ]),
519
519
  _: 1
520
- })) : (l(), k(Q, { key: 3 }, [
521
- !e(r) && !e(d) && !e(c) ? (l(), k("div", nl, [
520
+ })) : (l(), k(ee, { key: 3 }, [
521
+ !e(r) && !e(d) && !e(c) ? (l(), k("div", sl, [
522
522
  p(e(we), {
523
523
  label: i.value.status,
524
524
  "data-placeholder-row": ""
@@ -532,7 +532,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
532
532
  _: 1
533
533
  }, 8, ["label"])
534
534
  ])) : m("", !0),
535
- (e(r) || e(d)) && !R.value ? (l(), k("div", sl, [
535
+ (e(r) || e(d)) && !R.value ? (l(), k("div", ol, [
536
536
  p(e(we), {
537
537
  label: i.value.status
538
538
  }, {
@@ -542,14 +542,14 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
542
542
  "data-executor-status": M.value
543
543
  }, [
544
544
  p(e(Je), {
545
- tone: V.value.tone
545
+ tone: D.value.tone
546
546
  }, {
547
547
  default: n(() => [
548
- h(o(V.value.text), 1)
548
+ h(o(D.value.text), 1)
549
549
  ]),
550
550
  _: 1
551
551
  }, 8, ["tone"])
552
- ], 8, ol)
552
+ ], 8, il)
553
553
  ]),
554
554
  _: 1
555
555
  }, 8, ["label"]),
@@ -558,28 +558,28 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
558
558
  label: i.value.details
559
559
  }, {
560
560
  default: n(() => [
561
- e(F)(e(r)) ? (l(), k(Q, { key: 0 }, [
562
- h(o(e(F)(e(r))), 1),
563
- $("span", il, o(e(r).reason), 1)
564
- ], 64)) : (l(), k(Q, { key: 1 }, [
561
+ e(B)(e(r)) ? (l(), k(ee, { key: 0 }, [
562
+ h(o(e(B)(e(r))), 1),
563
+ $("span", ul, o(e(r).reason), 1)
564
+ ], 64)) : (l(), k(ee, { key: 1 }, [
565
565
  h(o(e(r).reason), 1)
566
566
  ], 64))
567
567
  ]),
568
568
  _: 1
569
569
  }, 8, ["label"])) : m("", !0),
570
- e(x)?.selection ? (l(), y(e(we), {
570
+ e(C)?.selection ? (l(), y(e(we), {
571
571
  key: 1,
572
572
  label: i.value.protectedScope
573
573
  }, {
574
574
  default: n(() => [
575
575
  p(e(Ne), {
576
- path: e(x).selection.root
576
+ path: e(C).selection.root
577
577
  }, null, 8, ["path"])
578
578
  ]),
579
579
  _: 1
580
580
  }, 8, ["label"])) : m("", !0)
581
581
  ])) : m("", !0),
582
- M.value === "blocked" && !R.value ? (l(), y(e(J), {
582
+ M.value === "blocked" && !R.value ? (l(), y(e(Z), {
583
583
  key: 2,
584
584
  tone: "warning"
585
585
  }, {
@@ -588,7 +588,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
588
588
  ]),
589
589
  _: 1
590
590
  })) : m("", !0),
591
- e(x)?.mismatch ? (l(), y(e(J), {
591
+ e(C)?.mismatch ? (l(), y(e(Z), {
592
592
  key: 3,
593
593
  tone: "warning"
594
594
  }, {
@@ -597,15 +597,15 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
597
597
  ]),
598
598
  _: 1
599
599
  })) : m("", !0),
600
- q.value ? (l(), y(Ge(R.value ? aa : "div"), Ze(ya({ key: 4 }, R.value ? { admin: !0, locale: t.locale, files: e(E), purpose: t.purpose, layout: t.layout, webapiProfiles: e(A), status: e(r) } : {})), {
600
+ Y.value ? (l(), y(Ge(R.value ? aa : "div"), Ze(ya({ key: 4 }, R.value ? { admin: !0, locale: t.locale, files: e(E), purpose: t.purpose, layout: t.layout, webapiProfiles: e(z), status: e(r) } : {})), {
601
601
  default: n(() => [
602
602
  p(e(Me), {
603
603
  direction: "vertical",
604
604
  class: "executor-form",
605
- onSubmit: Oe(e(H), ["prevent"])
605
+ onSubmit: Oe(e(X), ["prevent"])
606
606
  }, {
607
607
  default: n(() => [
608
- e(C) ? (l(), y(e(Pe), {
608
+ e(_) ? (l(), y(e(Pe), {
609
609
  key: 0,
610
610
  label: i.value.scopeLabel,
611
611
  description: i.value.preselectionHelp
@@ -614,8 +614,8 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
614
614
  p(e(ba), {
615
615
  id: "delegate-scope",
616
616
  modelValue: e(S),
617
- "onUpdate:modelValue": K[0] || (K[0] = (ee) => je(S) ? S.value = ee : null),
618
- options: e(T),
617
+ "onUpdate:modelValue": se[0] || (se[0] = (O) => je(S) ? S.value = O : null),
618
+ options: e(A),
619
619
  disabled: e(g) || e(c)
620
620
  }, null, 8, ["modelValue", "options", "disabled"])
621
621
  ]),
@@ -624,32 +624,32 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
624
624
  p(e(Pe), {
625
625
  label: i.value.password,
626
626
  description: e(d) ? i.value.confirmingHelp : i.value.passwordNote,
627
- help: e(z),
628
- "validate-status": e(z) ? "error" : void 0,
627
+ help: e(T),
628
+ "validate-status": e(T) ? "error" : void 0,
629
629
  "validate-message-display-mode": "text"
630
630
  }, {
631
- after: n(({ classes: ee }) => [
632
- p(e(N), {
633
- class: De(ee.afterItem),
631
+ after: n(({ classes: O }) => [
632
+ p(e(V), {
633
+ class: De(O.afterItem),
634
634
  type: "submit",
635
635
  variant: "primary",
636
636
  loading: e(d),
637
- disabled: e(g) || e(c) || !e(Z)
637
+ disabled: e(g) || e(c) || !e(ae)
638
638
  }, {
639
639
  default: n(() => [
640
- h(o(e(C) ? i.value.confirmShare : i.value.authorize), 1)
640
+ h(o(e(_) ? i.value.confirmShare : i.value.authorize), 1)
641
641
  ]),
642
642
  _: 1
643
643
  }, 8, ["class", "loading", "disabled"])
644
644
  ]),
645
645
  default: n(() => [
646
- p(e(Ae), {
646
+ p(e(ze), {
647
647
  id: "delegate-password",
648
648
  modelValue: e(f),
649
- "onUpdate:modelValue": K[1] || (K[1] = (ee) => je(f) ? f.value = ee : null),
649
+ "onUpdate:modelValue": se[1] || (se[1] = (O) => je(f) ? f.value = O : null),
650
650
  type: "password",
651
651
  autocomplete: "current-password",
652
- invalid: !!e(z),
652
+ invalid: !!e(T),
653
653
  disabled: e(g) || e(c)
654
654
  }, null, 8, ["modelValue", "invalid", "disabled"])
655
655
  ]),
@@ -666,13 +666,13 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
666
666
  _: 1
667
667
  }, 8, ["title", "description", "aria-busy"])) : m("", !0);
668
668
  }
669
- }), qa = /* @__PURE__ */ pe(ul, [["__scopeId", "data-v-b666a69c"]]), rl = {
669
+ }), qa = /* @__PURE__ */ pe(rl, [["__scopeId", "data-v-b666a69c"]]), dl = {
670
670
  key: 0,
671
671
  class: "executor-notice"
672
- }, dl = {
672
+ }, cl = {
673
673
  key: 1,
674
674
  class: "executor-notice"
675
- }, cl = { class: "executor-notice-body" }, vl = /* @__PURE__ */ ce({
675
+ }, vl = { class: "executor-notice-body" }, fl = /* @__PURE__ */ ce({
676
676
  __name: "ExecutorNotice",
677
677
  props: {
678
678
  locale: {},
@@ -680,40 +680,40 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
680
680
  ctx: {}
681
681
  },
682
682
  setup(t) {
683
- const v = t, s = _(() => Re(v.locale)), a = Te(Ye, void 0) ?? v.ctx.executor;
683
+ const v = t, s = w(() => Re(v.locale)), a = Te(Ye, void 0) ?? v.ctx.executor;
684
684
  a && Fe(Ye, a);
685
- const u = b("checking"), i = b(), r = b(!1), f = _(() => v.ctx.user?.isAdmin === !0), g = _(() => !i.value && (u.value === "needs-admin-approval" || u.value === "blocked")), d = _(() => a?.call ? { call: (C, E) => a.call(C, E) } : v.ctx.call ? v.ctx : void 0);
686
- let c = !1, w, z, x = 0;
687
- function S(C) {
685
+ const u = b("checking"), i = b(), r = b(!1), f = w(() => v.ctx.user?.isAdmin === !0), g = w(() => !i.value && (u.value === "needs-admin-approval" || u.value === "blocked")), d = w(() => a?.call ? { call: (_, E) => a.call(_, E) } : v.ctx.call ? v.ctx : void 0);
686
+ let c = !1, x, T, C = 0;
687
+ function S(_) {
688
688
  const E = i.value;
689
- if (i.value = Se(C), u.value = C?.state ?? "unknown", clearTimeout(z), C && !i.value) {
690
- x = 0;
689
+ if (i.value = Se(_), u.value = _?.state ?? "unknown", clearTimeout(T), _ && !i.value) {
690
+ C = 0;
691
691
  return;
692
692
  }
693
- i.value !== E && (x = 0), z = setTimeout(() => {
694
- T();
695
- }, va(x++, i.value));
693
+ i.value !== E && (C = 0), T = setTimeout(() => {
694
+ A();
695
+ }, va(C++, i.value));
696
696
  }
697
- async function T() {
697
+ async function A() {
698
698
  if (!a) return;
699
- let C;
699
+ let _;
700
700
  try {
701
- C = await a.status();
701
+ _ = await a.status();
702
702
  } catch {
703
- C = void 0;
703
+ _ = void 0;
704
704
  }
705
- c || S(C);
705
+ c || S(_);
706
706
  }
707
707
  return xe(() => {
708
- a && (a.subscribe?.((C) => {
709
- !c && !ea(C) && S(C);
710
- }), w = v.ctx.reopen?.(() => {
711
- T();
712
- }), T());
708
+ a && (a.subscribe?.((_) => {
709
+ !c && !ea(_) && S(_);
710
+ }), x = v.ctx.reopen?.(() => {
711
+ A();
712
+ }), A());
713
713
  }), _e(() => {
714
- c = !0, clearTimeout(z), w?.();
715
- }), (C, E) => i.value ? (l(), k("div", rl, [
716
- p(e(J), {
714
+ c = !0, clearTimeout(T), x?.();
715
+ }), (_, E) => i.value ? (l(), k("div", dl, [
716
+ p(e(Z), {
717
717
  tone: "info",
718
718
  role: "status"
719
719
  }, {
@@ -722,16 +722,16 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
722
722
  ]),
723
723
  _: 1
724
724
  })
725
- ])) : g.value ? (l(), k("div", dl, [
726
- p(e(J), { tone: "warning" }, {
725
+ ])) : g.value ? (l(), k("div", cl, [
726
+ p(e(Z), { tone: "warning" }, {
727
727
  default: n(() => [
728
- $("span", cl, [
728
+ $("span", vl, [
729
729
  h(o(f.value ? s.value.noticeAdmin : s.value.noticeUser), 1),
730
- f.value ? (l(), y(e(N), {
730
+ f.value ? (l(), y(e(V), {
731
731
  key: 0,
732
732
  variant: "secondary",
733
733
  size: "sm",
734
- onClick: E[0] || (E[0] = (A) => r.value = !0)
734
+ onClick: E[0] || (E[0] = (z) => r.value = !0)
735
735
  }, {
736
736
  default: n(() => [
737
737
  h(o(s.value.noticeApprove), 1)
@@ -746,7 +746,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
746
746
  key: 0,
747
747
  open: r.value && g.value,
748
748
  title: s.value.setupTitle,
749
- "onUpdate:open": E[1] || (E[1] = (A) => r.value = A)
749
+ "onUpdate:open": E[1] || (E[1] = (z) => r.value = z)
750
750
  }, {
751
751
  default: n(() => [
752
752
  p(qa, {
@@ -755,20 +755,20 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
755
755
  ctx: d.value,
756
756
  purpose: t.purpose,
757
757
  title: "",
758
- onConfirmed: T
758
+ onConfirmed: A
759
759
  }, null, 8, ["locale", "ctx", "purpose"])
760
760
  ]),
761
761
  _: 1
762
762
  }, 8, ["open", "title"])) : m("", !0)
763
763
  ])) : m("", !0);
764
764
  }
765
- }), fl = /* @__PURE__ */ pe(vl, [["__scopeId", "data-v-5468feb3"]]), Oa = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Ma = /* @__PURE__ */ Symbol("synopackageland:page-info"), Ka = /* @__PURE__ */ Symbol("synopackageland:shell-locale"), pl = { role: "alert" }, ml = {
765
+ }), pl = /* @__PURE__ */ pe(fl, [["__scopeId", "data-v-5468feb3"]]), Oa = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Ma = /* @__PURE__ */ Symbol("synopackageland:page-info"), Ka = /* @__PURE__ */ Symbol("synopackageland:shell-locale"), ml = { role: "alert" }, yl = {
766
766
  ref: "page-info",
767
767
  class: "app-page-info"
768
- }, yl = {
768
+ }, bl = {
769
769
  ref: "page-actions",
770
770
  class: "app-page-actions"
771
- }, bl = ["hidden"], gl = { class: "app-page-content" }, hl = /* @__PURE__ */ ce({
771
+ }, gl = ["hidden"], hl = { class: "app-page-content" }, kl = /* @__PURE__ */ ce({
772
772
  __name: "AppShell",
773
773
  props: {
774
774
  locale: {},
@@ -793,82 +793,82 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
793
793
  const s = t, a = v;
794
794
  function u(R) {
795
795
  a("brand", R);
796
- const q = f.value[0];
797
- !R.defaultPrevented && q && a("update:modelValue", q.id);
796
+ const Y = f.value[0];
797
+ !R.defaultPrevented && Y && a("update:modelValue", Y.id);
798
798
  }
799
- const i = _(() => ua(s.locale)), r = _(() => s.pageSurface), f = _(() => At(s.pages, i.value)), g = _(() => Rt(f.value)), d = _(() => f.value.find((R) => R.id === s.modelValue)), c = _(() => d.value && s.loading ? { ...d.value, fill: !0 } : d.value), w = _(() => c.value?.title ?? i.value[s.modelValue] ?? i.value.status), z = Xe("scroller"), x = _(() => s.pages.some((R) => typeof R != "string"));
799
+ const i = w(() => ua(s.locale)), r = w(() => s.pageSurface), f = w(() => Rt(s.pages, i.value)), g = w(() => It(f.value)), d = w(() => f.value.find((R) => R.id === s.modelValue)), c = w(() => d.value && s.loading ? { ...d.value, fill: !0 } : d.value), x = w(() => c.value?.title ?? i.value[s.modelValue] ?? i.value.status), T = Xe("scroller"), C = w(() => s.pages.some((R) => typeof R != "string"));
800
800
  qe(() => s.modelValue, () => {
801
- x.value && !s.keepScroll && z.value && (z.value.$el.scrollTop = 0);
801
+ C.value && !s.keepScroll && T.value && (T.value.$el.scrollTop = 0);
802
802
  }, { flush: "post" });
803
- const S = Aa(), T = _(() => s.denied === !0 ? {} : s.denied || void 0), C = _(() => ca(T.value, s.locale, s.brandName ?? s.ctx?.displayName)), E = _(() => s.ctx !== void 0 && Ea(s.ctx)), A = _(() => E.value ? s.ctx : void 0), Z = (R, { slots: q }) => q.default?.(), U = _(() => s.ctx !== void 0 && !E.value);
804
- function te() {
803
+ const S = za(), A = w(() => s.denied === !0 ? {} : s.denied || void 0), _ = w(() => ca(A.value, s.locale, s.brandName ?? s.ctx?.displayName)), E = w(() => s.ctx !== void 0 && Ea(s.ctx)), z = w(() => E.value ? s.ctx : void 0), ae = (R, { slots: Y }) => Y.default?.(), F = w(() => s.ctx !== void 0 && !E.value);
804
+ function H() {
805
805
  s.ctx?.host?.activateWindow?.();
806
806
  }
807
- const H = Xe("layout"), F = b({ brand: !1, user: !1 });
808
- qe([E, H], (R, q, le) => {
809
- const K = H.value?.$el;
810
- if (!E.value || !K) {
811
- F.value = { brand: !1, user: !1 };
807
+ const X = Xe("layout"), B = b({ brand: !1, user: !1 });
808
+ qe([E, X], (R, Y, K) => {
809
+ const se = X.value?.$el;
810
+ if (!E.value || !se) {
811
+ B.value = { brand: !1, user: !1 };
812
812
  return;
813
813
  }
814
- const ee = () => {
815
- const oe = Et(K);
816
- (oe.brand !== F.value.brand || oe.user !== F.value.user) && (F.value = oe);
814
+ const O = () => {
815
+ const re = Tt(se);
816
+ (re.brand !== B.value.brand || re.user !== B.value.user) && (B.value = re);
817
817
  };
818
- ee();
819
- const se = new MutationObserver((oe) => {
820
- oe.some((G) => !K.contains(G.target)) && ee();
818
+ O();
819
+ const ne = new MutationObserver((re) => {
820
+ re.some((G) => !se.contains(G.target)) && O();
821
821
  });
822
- se.observe(K.ownerDocument.body, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["class", "style", "hidden"], characterData: !0 });
823
- const re = K.ownerDocument.defaultView;
824
- re?.addEventListener("resize", ee), le(() => {
825
- se.disconnect(), re?.removeEventListener("resize", ee);
822
+ ne.observe(se.ownerDocument.body, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["class", "style", "hidden"], characterData: !0 });
823
+ const ue = se.ownerDocument.defaultView;
824
+ ue?.addEventListener("resize", O), K(() => {
825
+ ne.disconnect(), ue?.removeEventListener("resize", O);
826
826
  });
827
827
  }, { flush: "post", immediate: !0 });
828
- const M = _(() => !F.value.user && A.value?.user?.name ? A.value.user : void 0);
829
- Fe(Oa, Xe("page-actions")), Fe(Ma, Xe("page-info")), Fe(Ka, _(() => s.locale));
830
- const V = Xe("notices"), P = b(!0);
828
+ const M = w(() => !B.value.user && z.value?.user?.name ? z.value.user : void 0);
829
+ Fe(Oa, Xe("page-actions")), Fe(Ma, Xe("page-info")), Fe(Ka, w(() => s.locale));
830
+ const D = Xe("notices"), P = b(!0);
831
831
  return ka((R) => {
832
- const q = V.value;
833
- if (!q) return;
834
- const le = () => {
835
- P.value = !Tt(q);
832
+ const Y = D.value;
833
+ if (!Y) return;
834
+ const K = () => {
835
+ P.value = !At(Y);
836
836
  };
837
- le();
838
- const K = new MutationObserver(le);
839
- K.observe(q, { childList: !0, subtree: !0, characterData: !0 }), R(() => K.disconnect());
837
+ K();
838
+ const se = new MutationObserver(K);
839
+ se.observe(Y, { childList: !0, subtree: !0, characterData: !0 }), R(() => se.disconnect());
840
840
  }, { flush: "post" }), ka((R) => {
841
- E.value && R(ut());
842
- }), (R, q) => (l(), y(Ge(t.appRoot ? e(rt) : Z), Ze(_a(t.appRoot ? { modalScope: "app", dialogBounds: U.value ? "viewport" : "app", style: "height: 100%;", onActivate: te } : {})), {
841
+ E.value && R(rt());
842
+ }), (R, Y) => (l(), y(Ge(t.appRoot ? e(dt) : ae), Ze(_a(t.appRoot ? { modalScope: "app", dialogBounds: F.value ? "viewport" : "app", style: "height: 100%;", onActivate: H } : {})), {
843
843
  default: n(() => [
844
- (l(), y(Ge(t.appRoot ? e(dt) : Z), Ze(_a(t.appRoot ? { locale: e(fa)(t.locale) } : {})), {
844
+ (l(), y(Ge(t.appRoot ? e(ct) : ae), Ze(_a(t.appRoot ? { locale: e(fa)(t.locale) } : {})), {
845
845
  default: n(() => [
846
- T.value ? (l(), y(e(wa), {
846
+ A.value ? (l(), y(e(wa), {
847
847
  key: 0,
848
848
  class: "app-denied",
849
849
  width: t.pageWidth,
850
850
  surface: r.value
851
851
  }, {
852
852
  default: n(() => [
853
- T.value.header !== !1 ? (l(), y(e(xa), {
853
+ A.value.header !== !1 ? (l(), y(e(xa), {
854
854
  key: 0,
855
- title: T.value.title ?? C.value?.title ?? i.value.deniedTitle
855
+ title: A.value.title ?? _.value?.title ?? i.value.deniedTitle
856
856
  }, null, 8, ["title"])) : m("", !0),
857
857
  he(R.$slots, "denied", {}, () => [
858
- p(e(J), { tone: "danger" }, {
858
+ p(e(Z), { tone: "danger" }, {
859
859
  default: n(() => [
860
- $("span", pl, o(T.value.message ?? C.value?.message ?? i.value.deniedMessage), 1)
860
+ $("span", ml, o(A.value.message ?? _.value?.message ?? i.value.deniedMessage), 1)
861
861
  ]),
862
862
  _: 1
863
863
  })
864
864
  ], !0)
865
865
  ]),
866
866
  _: 3
867
- }, 8, ["width", "surface"])) : (l(), y(e(ct), {
867
+ }, 8, ["width", "surface"])) : (l(), y(e(vt), {
868
868
  key: 1,
869
869
  ref_key: "layout",
870
- ref: H,
871
- class: De(["app-shell", { "app-shell-fill": c.value?.fill, "app-shell-portal-brand": F.value.brand }]),
870
+ ref: X,
871
+ class: De(["app-shell", { "app-shell-fill": c.value?.fill, "app-shell-portal-brand": B.value.brand }]),
872
872
  "min-height": "0",
873
873
  "wide-layout": t.wideLayout ?? (E.value ? "web" : "window"),
874
874
  "sidebar-storage-key": t.sidebarStorageKey,
@@ -878,16 +878,16 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
878
878
  onBrand: u
879
879
  }, ta({
880
880
  sidebar: n(() => [
881
- p(e(vt), {
881
+ p(e(ft), {
882
882
  "model-value": t.modelValue,
883
883
  groups: g.value,
884
- "onUpdate:modelValue": q[0] || (q[0] = (le) => a("update:modelValue", le))
884
+ "onUpdate:modelValue": Y[0] || (Y[0] = (K) => a("update:modelValue", K))
885
885
  }, null, 8, ["model-value", "groups"])
886
886
  ]),
887
887
  default: n(() => [
888
888
  p(e(wa), {
889
889
  ref_key: "scroller",
890
- ref: z,
890
+ ref: T,
891
891
  class: De(["app-page", { "app-page-fill": c.value?.fill }]),
892
892
  width: t.pageWidth,
893
893
  surface: r.value
@@ -895,20 +895,20 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
895
895
  default: n(() => [
896
896
  c.value?.header !== !1 ? (l(), y(e(xa), {
897
897
  key: 0,
898
- title: w.value,
898
+ title: x.value,
899
899
  description: c.value?.description ?? t.description
900
900
  }, {
901
901
  meta: n(() => [
902
- $("span", ml, null, 512),
902
+ $("span", yl, null, 512),
903
903
  he(R.$slots, "meta", { page: t.modelValue }, void 0, !0)
904
904
  ]),
905
905
  actions: n(() => [
906
- $("div", yl, null, 512),
906
+ $("div", bl, null, 512),
907
907
  t.loading ? m("", !0) : he(R.$slots, "actions", { page: t.modelValue }, void 0, !0, 0)
908
908
  ]),
909
909
  _: 3
910
910
  }, 8, ["title", "description"])) : m("", !0),
911
- t.ctx?.executor ? (l(), y(fl, {
911
+ t.ctx?.executor ? (l(), y(pl, {
912
912
  key: 1,
913
913
  ctx: t.ctx,
914
914
  locale: t.locale
@@ -920,12 +920,12 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
920
920
  hidden: P.value
921
921
  }, [
922
922
  he(R.$slots, "notices", { page: t.modelValue }, void 0, !0)
923
- ], 8, bl)) : m("", !0),
924
- $("div", gl, [
923
+ ], 8, gl)) : m("", !0),
924
+ $("div", hl, [
925
925
  t.loading ? (l(), y(e(Ua), {
926
926
  key: 0,
927
927
  text: i.value.loading
928
- }, null, 8, ["text"])) : (l(), k(Q, { key: 1 }, [
928
+ }, null, 8, ["text"])) : (l(), k(ee, { key: 1 }, [
929
929
  c.value?.component ? (l(), y(Ge(c.value.component), {
930
930
  key: c.value.id
931
931
  })) : m("", !0),
@@ -942,7 +942,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
942
942
  name: "sidebar-footer",
943
943
  fn: n(() => [
944
944
  he(R.$slots, "sidebar-footer", {}, () => [
945
- M.value ? (l(), y(e(ft), {
945
+ M.value ? (l(), y(e(pt), {
946
946
  key: 0,
947
947
  name: M.value.name,
948
948
  detail: M.value.isAdmin ? i.value.administrator : i.value.dsmUser
@@ -966,10 +966,10 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
966
966
  _: 3
967
967
  }, 16));
968
968
  }
969
- }), Ss = /* @__PURE__ */ pe(hl, [["__scopeId", "data-v-a2ccb06b"]]), Ps = /* @__PURE__ */ ce({
969
+ }), Ps = /* @__PURE__ */ pe(kl, [["__scopeId", "data-v-a2ccb06b"]]), Es = /* @__PURE__ */ ce({
970
970
  __name: "PageActions",
971
971
  setup(t) {
972
- const v = Te(Oa, null), s = _(() => v?.value ?? null);
972
+ const v = Te(Oa, null), s = w(() => v?.value ?? null);
973
973
  return (a, u) => s.value ? (l(), y(Ra, {
974
974
  key: 0,
975
975
  to: s.value
@@ -977,7 +977,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
977
977
  he(a.$slots, "default")
978
978
  ], 8, ["to"])) : m("", !0);
979
979
  }
980
- }), kl = { class: "page-info-notes" }, _l = /* @__PURE__ */ ce({
980
+ }), _l = { class: "page-info-notes" }, wl = /* @__PURE__ */ ce({
981
981
  inheritAttrs: !1,
982
982
  __name: "PageInfo",
983
983
  props: {
@@ -989,7 +989,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
989
989
  align: { default: "start" }
990
990
  },
991
991
  setup(t) {
992
- const v = t, s = Aa(), a = _(() => (v.notes ?? []).filter(Boolean)), u = v.inline ? null : Te(Ma, null), i = _(() => u?.value ?? null), r = Te(Ka, null), f = _(() => {
992
+ const v = t, s = za(), a = w(() => (v.notes ?? []).filter(Boolean)), u = v.inline ? null : Te(Ma, null), i = w(() => u?.value ?? null), r = Te(Ka, null), f = w(() => {
993
993
  if (v.label) return v.label;
994
994
  const g = v.locale ?? r?.value ?? "en";
995
995
  return s.default ? ua(g).notes : We(ua(g).notesCount, { count: a.value.length }, g);
@@ -999,7 +999,7 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
999
999
  to: i.value ?? "body",
1000
1000
  disabled: !e(u)
1001
1001
  }, [
1002
- p(e(pt), ya(g.$attrs, {
1002
+ p(e(mt), ya(g.$attrs, {
1003
1003
  class: "page-info",
1004
1004
  icon: "info",
1005
1005
  "trigger-action": "click",
@@ -1009,8 +1009,8 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
1009
1009
  }), {
1010
1010
  default: n(() => [
1011
1011
  he(g.$slots, "default", {}, () => [
1012
- $("ul", kl, [
1013
- (l(!0), k(Q, null, fe(a.value, (c) => (l(), k("li", { key: c }, o(c), 1))), 128))
1012
+ $("ul", _l, [
1013
+ (l(!0), k(ee, null, fe(a.value, (c) => (l(), k("li", { key: c }, o(c), 1))), 128))
1014
1014
  ])
1015
1015
  ], !0)
1016
1016
  ]),
@@ -1018,27 +1018,27 @@ const Vt = ["aria-label"], Nt = { class: "executor-upgrade-title" }, Lt = { key:
1018
1018
  }, 16, ["side", "align", "aria-label"])
1019
1019
  ], 8, ["to", "disabled"])) : m("", !0);
1020
1020
  }
1021
- }), Es = /* @__PURE__ */ pe(_l, [["__scopeId", "data-v-93861654"]]), Pa = ["B", "KB", "MB", "GB", "TB", "PB"];
1021
+ }), Ts = /* @__PURE__ */ pe(wl, [["__scopeId", "data-v-93861654"]]), Pa = ["B", "KB", "MB", "GB", "TB", "PB"];
1022
1022
  function da(t, v) {
1023
1023
  let s = 0, a = t;
1024
1024
  for (; a >= 1024 && s < Pa.length - 1; )
1025
1025
  a /= 1024, s++;
1026
1026
  return `${new Intl.NumberFormat(v, { maximumFractionDigits: s ? 1 : 0 }).format(a)} ${Pa[s]}`;
1027
1027
  }
1028
- const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-location" }, Cl = ["aria-label"], $l = {
1028
+ const xl = ["aria-busy", "aria-label"], Cl = { class: "file-toolbar file-location" }, $l = ["aria-label"], Sl = {
1029
1029
  key: 0,
1030
1030
  class: "file-toolbar"
1031
- }, Sl = {
1031
+ }, Pl = {
1032
1032
  key: 1,
1033
1033
  role: "status"
1034
- }, Pl = { role: "alert" }, El = {
1034
+ }, El = { role: "alert" }, Tl = {
1035
1035
  key: 4,
1036
1036
  role: "status"
1037
- }, Tl = { class: "file-columns" }, zl = ["aria-label"], Al = { class: "file-content" }, Rl = { class: "file-name" }, Il = { class: "file-empty" }, Ul = { class: "file-bytes" }, Dl = {
1037
+ }, Al = { class: "file-columns" }, zl = ["aria-label"], Rl = { class: "file-content" }, Il = { class: "file-name" }, Ul = { class: "file-empty" }, Dl = { class: "file-bytes" }, Vl = {
1038
1038
  key: 5,
1039
1039
  class: "file-selection",
1040
1040
  role: "status"
1041
- }, Vl = /* @__PURE__ */ ce({
1041
+ }, Nl = /* @__PURE__ */ ce({
1042
1042
  __name: "FileBrowser",
1043
1043
  props: {
1044
1044
  provider: {},
@@ -1049,131 +1049,131 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1049
1049
  },
1050
1050
  emits: ["selected"],
1051
1051
  setup(t, { emit: v }) {
1052
- const s = t, a = v, u = _(() => ze(s.locale)), i = Pt(), { busy: r, error: f } = i, g = b([]), d = b([]), c = b([]), w = b(), z = b(), x = b(), S = b([]), T = b(), C = b({ key: "name", direction: "asc" }), E = b(0), A = b([]), Z = b(!1);
1053
- let U = new AbortController();
1054
- async function te() {
1055
- const L = w.value;
1056
- !L || L.isDir || !s.provider.download || await i.run(async (B) => (await s.provider.info(L.path, B), s.provider.download(L.path), !0));
1057
- }
1052
+ const s = t, a = v, u = w(() => Ae(s.locale)), i = Et(), { busy: r, error: f } = i, g = b([]), d = b([]), c = b([]), x = b(), T = b(), C = b(), S = b([]), A = b(), _ = b({ key: "name", direction: "asc" }), E = b(0), z = b([]), ae = b(!1);
1053
+ let F = new AbortController();
1058
1054
  async function H() {
1059
- const L = c.value.at(-1)?.path, B = A.value[0];
1060
- if (!L || !B || !s.provider.upload) return;
1061
- Z.value = !1, await i.run(async (j) => (await s.provider.upload(L, B, j), !0)) && (A.value = [], await ne(c.value), Z.value = !0);
1055
+ const N = x.value;
1056
+ !N || N.isDir || !s.provider.download || await i.run(async (L) => (await s.provider.info(N.path, L), await s.provider.download(N.path), !0));
1057
+ }
1058
+ async function X() {
1059
+ const N = c.value.at(-1)?.path, L = z.value[0];
1060
+ if (!N || !L || !s.provider.upload) return;
1061
+ ae.value = !1, await i.run(async (te) => (await s.provider.upload(N, L, te), !0)) && (z.value = [], await J(c.value), ae.value = !0);
1062
1062
  }
1063
- const F = _(() => [
1063
+ const B = w(() => [
1064
1064
  { key: "name", label: u.value.nameColumn, sortable: !0 },
1065
1065
  { key: "kind", label: u.value.kindColumn },
1066
1066
  { key: "bytes", label: u.value.sizeColumn, align: "right", sortable: !0 }
1067
- ]), M = nt((L, { attrs: B }) => st(sa, { ...B, kind: "folder" }));
1068
- function V(L) {
1069
- return { id: L.path, label: L.name, icon: M, data: L };
1067
+ ]), M = st((N, { attrs: L }) => ot(sa, { ...L, kind: "folder" }));
1068
+ function D(N) {
1069
+ return { id: N.path, label: N.name, icon: M, data: N };
1070
1070
  }
1071
- function P(L) {
1072
- w.value = L, a("selected", L?.path);
1071
+ function P(N) {
1072
+ x.value = N, a("selected", N?.path);
1073
1073
  }
1074
- function R(L) {
1075
- z.value = L.path, P(s.mode === "folder" ? L.isDir ? L : c.value.at(-1) : L.isDir ? void 0 : L);
1074
+ function R(N) {
1075
+ T.value = N.path, P(s.mode === "folder" ? N.isDir ? N : c.value.at(-1) : N.isDir ? void 0 : N);
1076
1076
  }
1077
- function q(L) {
1078
- L.isDir ? Ce(L) : R(L);
1077
+ function Y(N) {
1078
+ N.isDir ? Ce(N) : R(N);
1079
1079
  }
1080
- const le = (L) => g.value.find((B) => B.path === L);
1081
- function K(L, B, O = []) {
1082
- for (const j of L) {
1083
- const ve = [...O, j.data];
1084
- if (j.id === B) return ve;
1085
- const I = K(j.children ?? [], B, ve);
1080
+ const K = (N) => g.value.find((L) => L.path === N);
1081
+ function se(N, L, q = []) {
1082
+ for (const te of N) {
1083
+ const ve = [...q, te.data];
1084
+ if (te.id === L) return ve;
1085
+ const I = se(te.children ?? [], L, ve);
1086
1086
  if (I) return I;
1087
1087
  }
1088
1088
  }
1089
- function ee(L, B) {
1090
- for (const O of L) {
1091
- if (O.id === B) return O;
1092
- const j = ee(O.children ?? [], B);
1093
- if (j) return j;
1089
+ function O(N, L) {
1090
+ for (const q of N) {
1091
+ if (q.id === L) return q;
1092
+ const te = O(q.children ?? [], L);
1093
+ if (te) return te;
1094
1094
  }
1095
1095
  }
1096
- function se(L, B, O) {
1097
- return L.map((j) => j.id === B ? { ...j, children: O } : j.children ? { ...j, children: se(j.children, B, O) } : j);
1098
- }
1099
- let re = 0;
1100
- async function oe(L) {
1101
- const B = ++re;
1102
- for (const O of L.slice(0, -1)) {
1103
- const j = ee(d.value, O.path);
1104
- if (!j) break;
1105
- if (j.children === void 0) {
1106
- const ve = await G(j);
1107
- if (B !== re || !ve) return;
1108
- d.value = se(d.value, j.id, ve);
1096
+ function ne(N, L, q) {
1097
+ return N.map((te) => te.id === L ? { ...te, children: q } : te.children ? { ...te, children: ne(te.children, L, q) } : te);
1098
+ }
1099
+ let ue = 0;
1100
+ async function re(N) {
1101
+ const L = ++ue;
1102
+ for (const q of N.slice(0, -1)) {
1103
+ const te = O(d.value, q.path);
1104
+ if (!te) break;
1105
+ if (te.children === void 0) {
1106
+ const ve = await G(te);
1107
+ if (L !== ue || !ve) return;
1108
+ d.value = ne(d.value, te.id, ve);
1109
1109
  }
1110
- S.value.includes(j.id) || (S.value = [...S.value, j.id]);
1110
+ S.value.includes(te.id) || (S.value = [...S.value, te.id]);
1111
1111
  }
1112
- T.value = L.at(-1)?.path;
1112
+ A.value = N.at(-1)?.path;
1113
1113
  }
1114
- async function G(L) {
1115
- const B = E.value, O = U.signal;
1114
+ async function G(N) {
1115
+ const L = E.value, q = F.signal;
1116
1116
  try {
1117
- const j = [];
1117
+ const te = [];
1118
1118
  let ve = 0;
1119
1119
  for (; ve !== void 0; ) {
1120
- const I = await s.provider.list(L.id, { offset: ve, sortBy: "name", sortDirection: "ASC" }, O);
1121
- if (O.aborted || B !== E.value) return;
1122
- j.push(...I.entries.filter((X) => X.isDir).map(V)), ve = I.nextOffset;
1120
+ const I = await s.provider.list(N.id, { offset: ve, sortBy: "name", sortDirection: "ASC" }, q);
1121
+ if (q.aborted || L !== E.value) return;
1122
+ te.push(...I.entries.filter((W) => W.isDir).map(D)), ve = I.nextOffset;
1123
1123
  }
1124
- return j;
1125
- } catch (j) {
1126
- !O.aborted && B === E.value && (f.value = j, P());
1124
+ return te;
1125
+ } catch (te) {
1126
+ !q.aborted && L === E.value && (f.value = te, P());
1127
1127
  return;
1128
1128
  }
1129
1129
  }
1130
- async function ne(L, B = !1) {
1130
+ async function J(N, L = !1) {
1131
1131
  if (r.value) return;
1132
- P(), z.value = void 0, g.value = B ? g.value : [], x.value = B ? x.value : void 0;
1133
- const O = B ? x.value ?? 0 : 0, j = L.at(-1)?.path;
1134
- c.value = L;
1135
- const ve = await i.run((I) => j ? s.provider.list(j, { offset: O, sortBy: C.value.key, sortDirection: C.value.direction === "asc" ? "ASC" : "DESC" }, I) : s.provider.shares(O, I));
1136
- ve && (g.value = B ? [...g.value, ...ve.entries] : ve.entries, x.value = ve.nextOffset, j ? s.mode === "folder" && !B && P(L.at(-1)) : d.value = g.value.filter((I) => I.isDir).map(V), B || oe(L));
1132
+ P(), T.value = void 0, g.value = L ? g.value : [], C.value = L ? C.value : void 0;
1133
+ const q = L ? C.value ?? 0 : 0, te = N.at(-1)?.path;
1134
+ c.value = N;
1135
+ const ve = await i.run((I) => te ? s.provider.list(te, { offset: q, sortBy: _.value.key, sortDirection: _.value.direction === "asc" ? "ASC" : "DESC" }, I) : s.provider.shares(q, I));
1136
+ ve && (g.value = L ? [...g.value, ...ve.entries] : ve.entries, C.value = ve.nextOffset, te ? s.mode === "folder" && !L && P(N.at(-1)) : d.value = g.value.filter((I) => I.isDir).map(D), L || re(N));
1137
1137
  }
1138
- const W = _(() => [{ id: "", display: u.value.roots }, ...c.value.map((L) => ({ id: L.path, display: L.name }))]);
1139
- function ye(L) {
1140
- const B = W.value.findIndex((O) => O.id === L.id);
1141
- B < c.value.length && ue(c.value.slice(0, B));
1138
+ const Q = w(() => [{ id: "", display: u.value.roots }, ...c.value.map((N) => ({ id: N.path, display: N.name }))]);
1139
+ function ye(N) {
1140
+ const L = Q.value.findIndex((q) => q.id === N.id);
1141
+ L < c.value.length && ie(c.value.slice(0, L));
1142
1142
  }
1143
- function Ce(L) {
1144
- ue([...c.value, L]);
1143
+ function Ce(N) {
1144
+ ie([...c.value, N]);
1145
1145
  }
1146
- const $e = b([[]]), Y = b(0);
1147
- function ue(L) {
1148
- r.value || (L.at(-1)?.path !== c.value.at(-1)?.path && ($e.value = [...$e.value.slice(0, Y.value + 1), L], Y.value++), ne(L));
1146
+ const $e = b([[]]), j = b(0);
1147
+ function ie(N) {
1148
+ r.value || (N.at(-1)?.path !== c.value.at(-1)?.path && ($e.value = [...$e.value.slice(0, j.value + 1), N], j.value++), J(N));
1149
1149
  }
1150
- function ie(L) {
1151
- r.value || (Y.value += L, ne($e.value[Y.value]));
1150
+ function oe(N) {
1151
+ r.value || (j.value += N, J($e.value[j.value]));
1152
1152
  }
1153
- function ge(L) {
1154
- C.value = { key: L?.key === "bytes" ? "size" : "name", direction: L?.direction ?? "asc" }, ne(c.value);
1153
+ function ge(N) {
1154
+ _.value = { key: N?.key === "bytes" ? "size" : "name", direction: N?.direction ?? "asc" }, J(c.value);
1155
1155
  }
1156
1156
  function Ee() {
1157
- r.value || (E.value++, U.abort(), U = new AbortController(), d.value = [], S.value = [], T.value = void 0, $e.value = [[]], Y.value = 0, ne([]));
1157
+ r.value || (E.value++, F.abort(), F = new AbortController(), d.value = [], S.value = [], A.value = void 0, $e.value = [[]], j.value = 0, J([]));
1158
1158
  }
1159
1159
  return xe(() => {
1160
- ne([]);
1160
+ J([]);
1161
1161
  }), _e(() => {
1162
- E.value++, U.abort();
1163
- }), (L, B) => (l(), k("section", {
1162
+ E.value++, F.abort();
1163
+ }), (N, L) => (l(), k("section", {
1164
1164
  class: "file-browser",
1165
1165
  "aria-busy": e(r),
1166
1166
  "aria-label": u.value.title
1167
1167
  }, [
1168
- $("div", xl, [
1168
+ $("div", Cl, [
1169
1169
  p(e(oa), {
1170
1170
  label: u.value.back,
1171
1171
  size: "sm",
1172
- disabled: e(r) || Y.value === 0,
1173
- onClick: B[0] || (B[0] = (O) => ie(-1))
1172
+ disabled: e(r) || j.value === 0,
1173
+ onClick: L[0] || (L[0] = (q) => oe(-1))
1174
1174
  }, {
1175
1175
  default: n(() => [
1176
- p(e(wt), {
1176
+ p(e(xt), {
1177
1177
  size: 16,
1178
1178
  "aria-hidden": "true"
1179
1179
  })
@@ -1183,8 +1183,8 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1183
1183
  p(e(oa), {
1184
1184
  label: u.value.forward,
1185
1185
  size: "sm",
1186
- disabled: e(r) || Y.value === $e.value.length - 1,
1187
- onClick: B[1] || (B[1] = (O) => ie(1))
1186
+ disabled: e(r) || j.value === $e.value.length - 1,
1187
+ onClick: L[1] || (L[1] = (q) => oe(1))
1188
1188
  }, {
1189
1189
  default: n(() => [
1190
1190
  p(e(Va), {
@@ -1201,7 +1201,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1201
1201
  onClick: Ee
1202
1202
  }, {
1203
1203
  default: n(() => [
1204
- p(e(xt), {
1204
+ p(e(Ct), {
1205
1205
  size: 14,
1206
1206
  "aria-hidden": "true"
1207
1207
  })
@@ -1212,28 +1212,28 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1212
1212
  class: "file-path",
1213
1213
  "aria-label": u.value.location
1214
1214
  }, [
1215
- p(e(mt), {
1216
- items: W.value,
1215
+ p(e(yt), {
1216
+ items: Q.value,
1217
1217
  "collapsed-label": u.value.fullPath,
1218
1218
  onClickItem: ye
1219
1219
  }, null, 8, ["items", "collapsed-label"])
1220
- ], 8, Cl)
1220
+ ], 8, $l)
1221
1221
  ]),
1222
- t.transfers && t.provider.upload && c.value.length ? (l(), k("div", $l, [
1223
- p(e(yt), {
1224
- modelValue: A.value,
1225
- "onUpdate:modelValue": B[2] || (B[2] = (O) => A.value = O),
1222
+ t.transfers && t.provider.upload && c.value.length ? (l(), k("div", Sl, [
1223
+ p(e(bt), {
1224
+ modelValue: z.value,
1225
+ "onUpdate:modelValue": L[2] || (L[2] = (q) => z.value = q),
1226
1226
  variant: "compact",
1227
1227
  disabled: e(r),
1228
1228
  "max-files": 1,
1229
1229
  "max-size": 16 * 1024 ** 3,
1230
1230
  title: u.value.upload,
1231
- onRejected: B[3] || (B[3] = (O) => f.value = { code: "upload_size_required" })
1231
+ onRejected: L[3] || (L[3] = (q) => f.value = { code: "upload_size_required" })
1232
1232
  }, null, 8, ["modelValue", "disabled", "title"]),
1233
- p(e(N), {
1233
+ p(e(V), {
1234
1234
  variant: "primary",
1235
- disabled: e(r) || !A.value.length,
1236
- onClick: H
1235
+ disabled: e(r) || !z.value.length,
1236
+ onClick: X
1237
1237
  }, {
1238
1238
  default: n(() => [
1239
1239
  h(o(u.value.upload), 1)
@@ -1241,52 +1241,52 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1241
1241
  _: 1
1242
1242
  }, 8, ["disabled"])
1243
1243
  ])) : m("", !0),
1244
- Z.value ? (l(), k("p", Sl, o(u.value.uploaded), 1)) : m("", !0),
1245
- t.transfers && t.provider.download && w.value && !w.value.isDir && !e(f) ? (l(), y(e(N), {
1244
+ ae.value ? (l(), k("p", Pl, o(u.value.uploaded), 1)) : m("", !0),
1245
+ t.transfers && t.provider.download && x.value && !x.value.isDir && !e(f) ? (l(), y(e(V), {
1246
1246
  key: 2,
1247
1247
  variant: "secondary",
1248
1248
  disabled: e(r),
1249
- onClick: te
1249
+ onClick: H
1250
1250
  }, {
1251
1251
  default: n(() => [
1252
1252
  h(o(u.value.download), 1)
1253
1253
  ]),
1254
1254
  _: 1
1255
1255
  }, 8, ["disabled"])) : m("", !0),
1256
- e(f) ? (l(), y(e(J), {
1256
+ e(f) ? (l(), y(e(Z), {
1257
1257
  key: 3,
1258
1258
  tone: "danger"
1259
1259
  }, {
1260
1260
  default: n(() => [
1261
- $("span", Pl, o(e(Ta)(e(f), u.value, t.locale, t.name)), 1)
1261
+ $("span", El, o(e(Ta)(e(f), u.value, t.locale, t.name)), 1)
1262
1262
  ]),
1263
1263
  _: 1
1264
1264
  })) : m("", !0),
1265
- e(r) ? (l(), k("p", El, o(u.value.loading), 1)) : m("", !0),
1266
- $("div", Tl, [
1265
+ e(r) ? (l(), k("p", Tl, o(u.value.loading), 1)) : m("", !0),
1266
+ $("div", Al, [
1267
1267
  $("aside", {
1268
1268
  class: "file-tree",
1269
1269
  "aria-label": u.value.roots
1270
1270
  }, [
1271
- d.value.length ? (l(), y(e(bt), {
1271
+ d.value.length ? (l(), y(e(gt), {
1272
1272
  key: E.value,
1273
1273
  "selection-style": "background",
1274
- modelValue: T.value,
1275
- "onUpdate:modelValue": B[4] || (B[4] = (O) => T.value = O),
1274
+ modelValue: A.value,
1275
+ "onUpdate:modelValue": L[4] || (L[4] = (q) => A.value = q),
1276
1276
  nodes: d.value,
1277
- "onUpdate:nodes": B[5] || (B[5] = (O) => d.value = O),
1277
+ "onUpdate:nodes": L[5] || (L[5] = (q) => d.value = q),
1278
1278
  expanded: S.value,
1279
- "onUpdate:expanded": B[6] || (B[6] = (O) => S.value = O),
1279
+ "onUpdate:expanded": L[6] || (L[6] = (q) => S.value = q),
1280
1280
  "load-children": G,
1281
- "expand-label": (O, j) => e(We)(j ? u.value.collapse : u.value.expand, { name: O.label }),
1282
- onSelect: B[7] || (B[7] = (O) => ue(K(d.value, O.id) ?? [O.data]))
1281
+ "expand-label": (q, te) => e(We)(te ? u.value.collapse : u.value.expand, { name: q.label }),
1282
+ onSelect: L[7] || (L[7] = (q) => ie(se(d.value, q.id) ?? [q.data]))
1283
1283
  }, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) : m("", !0)
1284
1284
  ], 8, zl),
1285
- $("div", Al, [
1286
- e(f) ? m("", !0) : (l(), y(e(gt), {
1285
+ $("div", Rl, [
1286
+ e(f) ? m("", !0) : (l(), y(e(ht), {
1287
1287
  key: 0,
1288
- columns: F.value,
1289
- rows: g.value.map((O) => ({ ...O, kind: O.isDir ? u.value.directoryKind : u.value.fileKind })),
1288
+ columns: B.value,
1289
+ rows: g.value.map((q) => ({ ...q, kind: q.isDir ? u.value.directoryKind : u.value.fileKind })),
1290
1290
  "row-key": "path",
1291
1291
  footer: !1,
1292
1292
  resizable: !1,
@@ -1294,32 +1294,32 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1294
1294
  "local-pagination": !1,
1295
1295
  loading: e(r),
1296
1296
  "loading-text": u.value.loading,
1297
- sort: { key: C.value.key === "size" ? "bytes" : C.value.key, direction: C.value.direction },
1297
+ sort: { key: _.value.key === "size" ? "bytes" : _.value.key, direction: _.value.direction },
1298
1298
  labels: { empty: u.value.emptyFolder },
1299
1299
  "single-select": "",
1300
- "selected-keys": z.value ? [z.value] : [],
1300
+ "selected-keys": T.value ? [T.value] : [],
1301
1301
  "onUpdate:sort": ge,
1302
- "onUpdate:selectedKeys": B[8] || (B[8] = (O) => {
1303
- e(r) || R(le(O[0]));
1302
+ "onUpdate:selectedKeys": L[8] || (L[8] = (q) => {
1303
+ e(r) || R(K(q[0]));
1304
1304
  }),
1305
- onRowActivate: B[9] || (B[9] = (O) => {
1306
- e(r) || q(le(O.path));
1305
+ onRowActivate: L[9] || (L[9] = (q) => {
1306
+ e(r) || Y(K(q.path));
1307
1307
  }),
1308
- onRowDblclick: B[10] || (B[10] = (O) => {
1309
- e(r) || q(le(O.path));
1308
+ onRowDblclick: L[10] || (L[10] = (q) => {
1309
+ e(r) || Y(K(q.path));
1310
1310
  })
1311
1311
  }, {
1312
- "cell-name": n(({ row: O }) => [
1313
- $("span", Rl, [
1312
+ "cell-name": n(({ row: q }) => [
1313
+ $("span", Il, [
1314
1314
  p(e(sa), {
1315
- kind: O.isDir ? "folder" : "file",
1316
- name: O.name
1315
+ kind: q.isDir ? "folder" : "file",
1316
+ name: q.name
1317
1317
  }, null, 8, ["kind", "name"]),
1318
- h(o(O.name), 1)
1318
+ h(o(q.name), 1)
1319
1319
  ])
1320
1320
  ]),
1321
1321
  empty: n(() => [
1322
- $("div", Il, [
1322
+ $("div", Ul, [
1323
1323
  p(e(sa), {
1324
1324
  kind: "folder",
1325
1325
  size: [40, 40]
@@ -1327,16 +1327,16 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1327
1327
  $("span", null, o(u.value.emptyFolder), 1)
1328
1328
  ])
1329
1329
  ]),
1330
- "cell-bytes": n(({ row: O }) => [
1331
- $("span", Ul, o(O.isDir || O.bytes === void 0 ? "—" : e(da)(O.bytes, e(fa)(t.locale))), 1)
1330
+ "cell-bytes": n(({ row: q }) => [
1331
+ $("span", Dl, o(q.isDir || q.bytes === void 0 ? "—" : e(da)(q.bytes, e(fa)(t.locale))), 1)
1332
1332
  ]),
1333
1333
  _: 1
1334
1334
  }, 8, ["columns", "rows", "loading", "loading-text", "sort", "labels", "selected-keys"])),
1335
- x.value !== void 0 && !e(f) ? (l(), y(e(N), {
1335
+ C.value !== void 0 && !e(f) ? (l(), y(e(V), {
1336
1336
  key: 1,
1337
1337
  variant: "secondary",
1338
1338
  disabled: e(r),
1339
- onClick: B[11] || (B[11] = (O) => ne(c.value, !0))
1339
+ onClick: L[11] || (L[11] = (q) => J(c.value, !0))
1340
1340
  }, {
1341
1341
  default: n(() => [
1342
1342
  h(o(u.value.loadMore), 1)
@@ -1345,13 +1345,13 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1345
1345
  }, 8, ["disabled"])) : m("", !0)
1346
1346
  ])
1347
1347
  ]),
1348
- w.value && !e(f) ? (l(), k("p", Dl, o(e(We)(u.value.selected, { name: w.value.path })), 1)) : m("", !0)
1349
- ], 8, wl));
1348
+ x.value && !e(f) ? (l(), k("p", Vl, o(e(We)(u.value.selected, { name: x.value.path })), 1)) : m("", !0)
1349
+ ], 8, xl));
1350
1350
  }
1351
- }), Ha = /* @__PURE__ */ pe(Vl, [["__scopeId", "data-v-f4863cea"]]), Nl = {
1351
+ }), Ha = /* @__PURE__ */ pe(Nl, [["__scopeId", "data-v-8133f935"]]), Ll = {
1352
1352
  key: 0,
1353
1353
  class: "save-consent"
1354
- }, Ll = ["aria-busy", "inert"], Bl = /* @__PURE__ */ ce({
1354
+ }, Bl = ["aria-busy", "inert"], Fl = /* @__PURE__ */ ce({
1355
1355
  __name: "NasPicker",
1356
1356
  props: {
1357
1357
  open: { type: Boolean },
@@ -1366,73 +1366,73 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1366
1366
  },
1367
1367
  emits: ["update:open", "selected", "authorized", "refused"],
1368
1368
  setup(t, { emit: v }) {
1369
- const s = t, a = v, u = b(), i = _(() => ze(s.locale)), r = _(() => pa(s.locale)), f = b(!1), g = b();
1369
+ const s = t, a = v, u = b(), i = w(() => Ae(s.locale)), r = w(() => pa(s.locale)), f = b(!1), g = b();
1370
1370
  let d = 0, c = !1;
1371
1371
  qe(() => s.open, () => {
1372
1372
  d++, u.value = void 0, g.value = void 0;
1373
1373
  }), _e(() => {
1374
1374
  c = !0, d++;
1375
1375
  });
1376
- function w() {
1376
+ function x() {
1377
1377
  f.value || (u.value = void 0, a("update:open", !1));
1378
1378
  }
1379
- async function z() {
1380
- const x = u.value, S = s.destination, T = d;
1381
- if (!(!x || f.value || !s.open || c || S && s.mode !== "folder")) {
1379
+ async function T() {
1380
+ const C = u.value, S = s.destination, A = d;
1381
+ if (!(!C || f.value || !s.open || c || S && s.mode !== "folder")) {
1382
1382
  if (!S) {
1383
- a("selected", x), w();
1383
+ a("selected", C), x();
1384
1384
  return;
1385
1385
  }
1386
1386
  f.value = !0, g.value = void 0;
1387
1387
  try {
1388
- const C = await S.selectDestination({ key: S.key, path: x });
1389
- if (c || T !== d) return;
1390
- if (!C || typeof C.id != "string" || !C.id || typeof C.username != "string" || !C.username || C.path !== x || C.key !== S.key || C.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
1391
- a("authorized", C), f.value = !1, w();
1392
- } catch (C) {
1393
- if (c || T !== d) return;
1394
- if (C?.code === "APP_DENIED") {
1395
- f.value = !1, a("refused", C), w();
1388
+ const _ = await S.selectDestination({ key: S.key, path: C });
1389
+ if (c || A !== d) return;
1390
+ if (!_ || typeof _.id != "string" || !_.id || typeof _.username != "string" || !_.username || _.path !== C || _.key !== S.key || _.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
1391
+ a("authorized", _), f.value = !1, x();
1392
+ } catch (_) {
1393
+ if (c || A !== d) return;
1394
+ if (_?.code === "APP_DENIED") {
1395
+ f.value = !1, a("refused", _), x();
1396
1396
  return;
1397
1397
  }
1398
- g.value = C;
1398
+ g.value = _;
1399
1399
  } finally {
1400
1400
  c || (f.value = !1);
1401
1401
  }
1402
1402
  }
1403
1403
  }
1404
- return (x, S) => (l(), y(e(Ke), {
1404
+ return (C, S) => (l(), y(e(Ke), {
1405
1405
  open: t.open,
1406
1406
  title: t.title ?? (t.mode === "folder" ? i.value.choose : i.value.chooseFile),
1407
1407
  description: t.description ?? i.value.ownPermissions,
1408
1408
  "close-label": i.value.close,
1409
1409
  "show-close": !f.value,
1410
1410
  width: "800px",
1411
- onEscapeKeyDown: S[1] || (S[1] = (T) => {
1412
- f.value && T.preventDefault();
1411
+ onEscapeKeyDown: S[1] || (S[1] = (A) => {
1412
+ f.value && A.preventDefault();
1413
1413
  }),
1414
- onInteractOutside: S[2] || (S[2] = (T) => {
1415
- f.value && T.preventDefault();
1414
+ onInteractOutside: S[2] || (S[2] = (A) => {
1415
+ f.value && A.preventDefault();
1416
1416
  }),
1417
- "onUpdate:open": S[3] || (S[3] = (T) => {
1418
- T || w();
1417
+ "onUpdate:open": S[3] || (S[3] = (A) => {
1418
+ A || x();
1419
1419
  })
1420
1420
  }, {
1421
1421
  footer: n(() => [
1422
- p(e(N), {
1422
+ p(e(V), {
1423
1423
  variant: "secondary",
1424
1424
  disabled: f.value,
1425
- onClick: w
1425
+ onClick: x
1426
1426
  }, {
1427
1427
  default: n(() => [
1428
1428
  h(o(i.value.cancel), 1)
1429
1429
  ]),
1430
1430
  _: 1
1431
1431
  }, 8, ["disabled"]),
1432
- p(e(N), {
1432
+ p(e(V), {
1433
1433
  variant: "primary",
1434
1434
  disabled: !u.value || f.value || !!t.destination && t.mode !== "folder",
1435
- onClick: z
1435
+ onClick: T
1436
1436
  }, {
1437
1437
  default: n(() => [
1438
1438
  h(o(i.value.confirm), 1)
@@ -1441,8 +1441,8 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1441
1441
  }, 8, ["disabled"])
1442
1442
  ]),
1443
1443
  default: n(() => [
1444
- t.destination ? (l(), k("p", Nl, o(r.value.selection), 1)) : m("", !0),
1445
- g.value ? (l(), y(e(J), {
1444
+ t.destination ? (l(), k("p", Ll, o(r.value.selection), 1)) : m("", !0),
1445
+ g.value ? (l(), y(e(Z), {
1446
1446
  key: 1,
1447
1447
  tone: "danger",
1448
1448
  role: "alert",
@@ -1464,44 +1464,44 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1464
1464
  locale: t.locale,
1465
1465
  name: t.name,
1466
1466
  mode: t.mode,
1467
- onSelected: S[0] || (S[0] = (T) => u.value = T)
1467
+ onSelected: S[0] || (S[0] = (A) => u.value = A)
1468
1468
  }, null, 8, ["provider", "locale", "name", "mode"])) : m("", !0)
1469
- ], 8, Ll)
1469
+ ], 8, Bl)
1470
1470
  ]),
1471
1471
  _: 1
1472
1472
  }, 8, ["open", "title", "description", "close-label", "show-close"]));
1473
1473
  }
1474
- }), na = /* @__PURE__ */ pe(Bl, [["__scopeId", "data-v-08be5e1e"]]), Fl = { role: "alert" }, ql = { class: "files-actions" }, Ol = {
1474
+ }), na = /* @__PURE__ */ pe(Fl, [["__scopeId", "data-v-08be5e1e"]]), ql = { role: "alert" }, Ol = { class: "files-actions" }, Ml = {
1475
1475
  key: 0,
1476
1476
  class: "files-path",
1477
1477
  role: "status"
1478
- }, Ml = /* @__PURE__ */ ce({
1478
+ }, Kl = /* @__PURE__ */ ce({
1479
1479
  __name: "FilesPage",
1480
1480
  props: {
1481
1481
  ctx: {}
1482
1482
  },
1483
1483
  setup(t) {
1484
- const v = t, s = b(), a = b(), u = b(!1), i = b("folder"), r = b(!1), f = b(""), g = b(0), d = za(v.ctx);
1485
- let c = !1, w;
1486
- async function z() {
1484
+ const v = t, s = b(), a = b(), u = b(!1), i = b("folder"), r = b(!1), f = b(""), g = b(0), d = Aa(v.ctx);
1485
+ let c = !1, x;
1486
+ async function T() {
1487
1487
  if (!c) {
1488
1488
  s.value = void 0, u.value = !1, f.value = "", r.value = !1, g.value++;
1489
1489
  try {
1490
1490
  await v.ctx.call("nas.session.status"), c || (a.value = void 0, u.value = !0);
1491
- } catch (x) {
1491
+ } catch (C) {
1492
1492
  if (c) return;
1493
- a.value = Se(x), !a.value && x?.code !== "unknown_method" && (s.value = x);
1493
+ a.value = Se(C), !a.value && C?.code !== "unknown_method" && (s.value = C);
1494
1494
  }
1495
1495
  }
1496
1496
  }
1497
- return He(() => a.value, z), xe(() => {
1498
- w = v.ctx.reopen(() => {
1499
- z();
1500
- }), z();
1497
+ return He(() => a.value, T), xe(() => {
1498
+ x = v.ctx.reopen(() => {
1499
+ T();
1500
+ }), T();
1501
1501
  }), _e(() => {
1502
- c = !0, w?.(), d.dispose();
1503
- }), (x, S) => (l(), k(Q, null, [
1504
- a.value ? (l(), y(e(J), {
1502
+ c = !0, x?.(), d.dispose();
1503
+ }), (C, S) => (l(), k(ee, null, [
1504
+ a.value ? (l(), y(e(Z), {
1505
1505
  key: 0,
1506
1506
  tone: "info",
1507
1507
  role: "status"
@@ -1511,18 +1511,18 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1511
1511
  ]),
1512
1512
  _: 1
1513
1513
  })) : m("", !0),
1514
- s.value ? (l(), y(e(J), {
1514
+ s.value ? (l(), y(e(Z), {
1515
1515
  key: 1,
1516
1516
  tone: "danger"
1517
1517
  }, {
1518
1518
  default: n(() => [
1519
- $("span", Fl, o(e(Ta)(s.value, e(ze)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
1520
- p(e(N), {
1519
+ $("span", ql, o(e(Ta)(s.value, e(Ae)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
1520
+ p(e(V), {
1521
1521
  variant: "secondary",
1522
- onClick: z
1522
+ onClick: T
1523
1523
  }, {
1524
1524
  default: n(() => [
1525
- h(o(e(ze)(t.ctx.locale).refresh), 1)
1525
+ h(o(e(Ae)(t.ctx.locale).refresh), 1)
1526
1526
  ]),
1527
1527
  _: 1
1528
1528
  })
@@ -1531,36 +1531,36 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1531
1531
  })) : m("", !0),
1532
1532
  u.value ? (l(), y(e(ke), {
1533
1533
  key: 2,
1534
- title: e(ze)(t.ctx.locale).title,
1535
- description: e(ze)(t.ctx.locale).ownPermissions,
1534
+ title: e(Ae)(t.ctx.locale).title,
1535
+ description: e(Ae)(t.ctx.locale).ownPermissions,
1536
1536
  collapsible: !1
1537
1537
  }, {
1538
1538
  default: n(() => [
1539
- $("div", ql, [
1540
- p(e(N), {
1539
+ $("div", Ol, [
1540
+ p(e(V), {
1541
1541
  variant: "secondary",
1542
- onClick: S[0] || (S[0] = (T) => {
1542
+ onClick: S[0] || (S[0] = (A) => {
1543
1543
  i.value = "folder", r.value = !0;
1544
1544
  })
1545
1545
  }, {
1546
1546
  default: n(() => [
1547
- h(o(e(ze)(t.ctx.locale).choose), 1)
1547
+ h(o(e(Ae)(t.ctx.locale).choose), 1)
1548
1548
  ]),
1549
1549
  _: 1
1550
1550
  }),
1551
- p(e(N), {
1551
+ p(e(V), {
1552
1552
  variant: "secondary",
1553
- onClick: S[1] || (S[1] = (T) => {
1553
+ onClick: S[1] || (S[1] = (A) => {
1554
1554
  i.value = "file", r.value = !0;
1555
1555
  })
1556
1556
  }, {
1557
1557
  default: n(() => [
1558
- h(o(e(ze)(t.ctx.locale).chooseFile), 1)
1558
+ h(o(e(Ae)(t.ctx.locale).chooseFile), 1)
1559
1559
  ]),
1560
1560
  _: 1
1561
1561
  })
1562
1562
  ]),
1563
- f.value ? (l(), k("p", Ol, [
1563
+ f.value ? (l(), k("p", Ml, [
1564
1564
  p(e(Ne), { path: f.value }, null, 8, ["path"])
1565
1565
  ])) : m("", !0),
1566
1566
  (l(), y(Ha, {
@@ -1576,75 +1576,75 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1576
1576
  name: t.ctx.displayName,
1577
1577
  mode: i.value,
1578
1578
  open: r.value,
1579
- "onUpdate:open": S[2] || (S[2] = (T) => r.value = T),
1580
- onSelected: S[3] || (S[3] = (T) => f.value = T)
1579
+ "onUpdate:open": S[2] || (S[2] = (A) => r.value = A),
1580
+ onSelected: S[3] || (S[3] = (A) => f.value = A)
1581
1581
  }, null, 8, ["provider", "locale", "name", "mode", "open"])
1582
1582
  ]),
1583
1583
  _: 1
1584
1584
  }, 8, ["title", "description"])) : m("", !0)
1585
1585
  ], 64));
1586
1586
  }
1587
- }), Ts = /* @__PURE__ */ pe(Ml, [["__scopeId", "data-v-b2e16764"]]), Kl = { role: "status" }, Hl = { role: "alert" }, ia = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ ce({
1587
+ }), As = /* @__PURE__ */ pe(Kl, [["__scopeId", "data-v-b2e16764"]]), Hl = { role: "status" }, Xl = { role: "alert" }, ia = /* @__PURE__ */ new WeakMap(), zs = /* @__PURE__ */ ce({
1588
1588
  __name: "PortalSettings",
1589
1589
  props: {
1590
1590
  portal: {}
1591
1591
  },
1592
1592
  setup(t) {
1593
1593
  const v = t, s = La(), a = v.portal.messages, u = b(), i = b(""), r = b(!1), f = b(""), g = b(!0), d = b(!1), c = b(ia.get(v.portal));
1594
- let w = !1, z = !1;
1595
- function x(V) {
1596
- if (!z && (u.value = V, i.value = V.alias || V.defaultAlias, V.url))
1594
+ let x = !1, T = !1;
1595
+ function C(D) {
1596
+ if (!T && (u.value = D, i.value = D.alias || D.defaultAlias, D.url))
1597
1597
  try {
1598
- const P = new URL(V.url);
1599
- w ||= P.origin === window.location.origin && window.location.pathname.startsWith(P.pathname);
1598
+ const P = new URL(D.url);
1599
+ x ||= P.origin === window.location.origin && window.location.pathname.startsWith(P.pathname);
1600
1600
  } catch {
1601
1601
  }
1602
1602
  }
1603
1603
  const S = v.portal.lastStatus?.();
1604
- S && x(S);
1605
- const T = 5e3, C = /* @__PURE__ */ Symbol("late");
1606
- async function E(V) {
1604
+ S && C(S);
1605
+ const A = 5e3, _ = /* @__PURE__ */ Symbol("late");
1606
+ async function E(D) {
1607
1607
  if (r.value) return;
1608
1608
  r.value = !0, f.value = "";
1609
- const P = V();
1609
+ const P = D();
1610
1610
  try {
1611
- const R = await Promise.race([P, new Promise((q) => setTimeout(() => q(C), T))]);
1612
- if (R !== C) {
1613
- x(R);
1611
+ const R = await Promise.race([P, new Promise((Y) => setTimeout(() => Y(_), A))]);
1612
+ if (R !== _) {
1613
+ C(R);
1614
1614
  return;
1615
1615
  }
1616
- x(await v.portal.status());
1616
+ C(await v.portal.status());
1617
1617
  try {
1618
1618
  await P;
1619
1619
  } finally {
1620
- x(await v.portal.status());
1620
+ C(await v.portal.status());
1621
1621
  }
1622
1622
  } catch (R) {
1623
- z || (f.value = a[R?.code || ""] || a.portal_unavailable);
1623
+ T || (f.value = a[R?.code || ""] || a.portal_unavailable);
1624
1624
  } finally {
1625
- z || (r.value = !1);
1625
+ T || (r.value = !1);
1626
1626
  }
1627
1627
  }
1628
- const A = _(() => !!u.value?.canManage && !!u.value.entry && u.value.entry !== "registered"), Z = _(() => {
1629
- const V = u.value;
1630
- if (V) {
1631
- if (A.value) return V.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
1632
- if (V.state !== "active")
1633
- return V.canManage ? a.inactive : V.controlPanel ? void 0 : a.askAdmin;
1628
+ const z = w(() => !!u.value?.canManage && !!u.value.entry && u.value.entry !== "registered"), ae = w(() => {
1629
+ const D = u.value;
1630
+ if (D) {
1631
+ if (z.value) return D.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
1632
+ if (D.state !== "active")
1633
+ return D.canManage ? a.inactive : D.controlPanel ? void 0 : a.askAdmin;
1634
1634
  }
1635
- }), U = a.link?.replace(/\s*[::]\s*$/, "");
1636
- async function te() {
1637
- const V = await v.portal.register();
1638
- return V.canManage && V.entry === "registered" && V.state === "inactive" ? (x(V), v.portal.apply(V.alias || V.defaultAlias)) : V;
1635
+ }), F = a.link?.replace(/\s*[::]\s*$/, "");
1636
+ async function H() {
1637
+ const D = await v.portal.register();
1638
+ return D.canManage && D.entry === "registered" && D.state === "inactive" ? (C(D), v.portal.apply(D.alias || D.defaultAlias)) : D;
1639
1639
  }
1640
- function H() {
1641
- !r.value && !c.value && v.portal.status().then(x, () => {
1640
+ function X() {
1641
+ !r.value && !c.value && v.portal.status().then(C, () => {
1642
1642
  }).finally(() => {
1643
- z || (g.value = !1);
1643
+ T || (g.value = !1);
1644
1644
  });
1645
1645
  }
1646
- function F() {
1647
- w ? d.value = !0 : E(() => v.portal.unregister());
1646
+ function B() {
1647
+ x ? d.value = !0 : E(() => v.portal.unregister());
1648
1648
  }
1649
1649
  async function M() {
1650
1650
  if (d.value = !1, !r.value) {
@@ -1653,24 +1653,24 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1653
1653
  await v.portal.unregister(), c.value = "removedFromPage", ia.set(v.portal, c.value);
1654
1654
  } catch {
1655
1655
  } finally {
1656
- z || (r.value = !1);
1656
+ T || (r.value = !1);
1657
1657
  }
1658
1658
  }
1659
1659
  }
1660
1660
  return xe(() => {
1661
- s.subscribe?.(H), H();
1661
+ s.subscribe?.(X), X();
1662
1662
  }), _e(() => {
1663
- z = !0;
1664
- }), (V, P) => (l(), k(Q, null, [
1663
+ T = !0;
1664
+ }), (D, P) => (l(), k(ee, null, [
1665
1665
  c.value ? (l(), y(e(ke), {
1666
1666
  key: 0,
1667
1667
  title: e(a).title,
1668
1668
  collapsible: !1
1669
1669
  }, {
1670
1670
  default: n(() => [
1671
- p(e(J), { tone: "info" }, {
1671
+ p(e(Z), { tone: "info" }, {
1672
1672
  default: n(() => [
1673
- $("span", Kl, o(e(a)[c.value]), 1)
1673
+ $("span", Hl, o(e(a)[c.value]), 1)
1674
1674
  ]),
1675
1675
  _: 1
1676
1676
  }),
@@ -1688,15 +1688,15 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1688
1688
  }, 8, ["title"])) : u.value || g.value ? (l(), y(e(ke), {
1689
1689
  key: 1,
1690
1690
  title: e(a).title,
1691
- description: Z.value,
1691
+ description: ae.value,
1692
1692
  collapsible: !1,
1693
1693
  "aria-busy": r.value || !u.value
1694
1694
  }, ta({
1695
1695
  default: n(() => [
1696
- u.value ? (l(), k(Q, { key: 1 }, [
1696
+ u.value ? (l(), k(ee, { key: 1 }, [
1697
1697
  u.value.state === "active" ? (l(), y(e(we), {
1698
1698
  key: 0,
1699
- label: e(U)
1699
+ label: e(F)
1700
1700
  }, {
1701
1701
  default: n(() => [
1702
1702
  p(e(ra), {
@@ -1711,7 +1711,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1711
1711
  ]),
1712
1712
  _: 1
1713
1713
  }, 8, ["label"])) : m("", !0),
1714
- u.value.canManage && !A.value ? (l(), y(e(Me), {
1714
+ u.value.canManage && !z.value ? (l(), y(e(Me), {
1715
1715
  key: 1,
1716
1716
  onSubmit: P[3] || (P[3] = Oe((R) => E(() => t.portal.apply(i.value)), ["prevent"]))
1717
1717
  }, {
@@ -1720,7 +1720,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1720
1720
  label: e(a).alias
1721
1721
  }, {
1722
1722
  default: n(() => [
1723
- p(e(Ae), {
1723
+ p(e(ze), {
1724
1724
  id: "portal-alias",
1725
1725
  modelValue: i.value,
1726
1726
  "onUpdate:modelValue": P[0] || (P[0] = (R) => i.value = R),
@@ -1739,7 +1739,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1739
1739
  default: n(() => [
1740
1740
  p(e(la), null, {
1741
1741
  default: n(() => [
1742
- p(e(N), {
1742
+ p(e(V), {
1743
1743
  type: "submit",
1744
1744
  variant: "primary",
1745
1745
  disabled: r.value
@@ -1749,7 +1749,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1749
1749
  ]),
1750
1750
  _: 1
1751
1751
  }, 8, ["disabled"]),
1752
- u.value.state === "active" ? (l(), y(e(N), {
1752
+ u.value.state === "active" ? (l(), y(e(V), {
1753
1753
  key: 0,
1754
1754
  variant: "secondary",
1755
1755
  disabled: r.value,
@@ -1760,7 +1760,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1760
1760
  ]),
1761
1761
  _: 1
1762
1762
  }, 8, ["disabled"])) : m("", !0),
1763
- p(e(N), {
1763
+ p(e(V), {
1764
1764
  variant: "secondary",
1765
1765
  onClick: P[2] || (P[2] = (R) => t.portal.openControlPanel())
1766
1766
  }, {
@@ -1769,11 +1769,11 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1769
1769
  ]),
1770
1770
  _: 1
1771
1771
  }),
1772
- u.value.entry ? (l(), y(e(N), {
1772
+ u.value.entry ? (l(), y(e(V), {
1773
1773
  key: 1,
1774
1774
  variant: "secondary",
1775
1775
  disabled: r.value,
1776
- onClick: F
1776
+ onClick: B
1777
1777
  }, {
1778
1778
  default: n(() => [
1779
1779
  h(o(e(a).unregister), 1)
@@ -1789,24 +1789,24 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1789
1789
  ]),
1790
1790
  _: 1
1791
1791
  })) : m("", !0),
1792
- f.value ? (l(), y(e(J), {
1792
+ f.value ? (l(), y(e(Z), {
1793
1793
  key: 2,
1794
1794
  tone: "danger"
1795
1795
  }, {
1796
1796
  default: n(() => [
1797
- $("span", Hl, o(f.value), 1)
1797
+ $("span", Xl, o(f.value), 1)
1798
1798
  ]),
1799
1799
  _: 1
1800
1800
  })) : m("", !0)
1801
- ], 64)) : (l(!0), k(Q, { key: 0 }, fe([[e(U), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([R, q], le) => (l(), y(e(we), {
1802
- key: le,
1801
+ ], 64)) : (l(!0), k(ee, { key: 0 }, fe([[e(F), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([R, Y], K) => (l(), y(e(we), {
1802
+ key: K,
1803
1803
  label: R,
1804
1804
  "data-placeholder-row": ""
1805
1805
  }, {
1806
1806
  default: n(() => [
1807
1807
  p(e(Ve), {
1808
1808
  width: "16rem",
1809
- height: q
1809
+ height: Y
1810
1810
  }, null, 8, ["height"])
1811
1811
  ]),
1812
1812
  _: 2
@@ -1814,24 +1814,24 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1814
1814
  ]),
1815
1815
  _: 2
1816
1816
  }, [
1817
- u.value && A.value ? {
1817
+ u.value && z.value ? {
1818
1818
  name: "footer",
1819
1819
  fn: n(() => [
1820
- u.value.entry === "unregistered" ? (l(), y(e(N), {
1820
+ u.value.entry === "unregistered" ? (l(), y(e(V), {
1821
1821
  key: 0,
1822
1822
  variant: "primary",
1823
1823
  disabled: r.value,
1824
- onClick: P[4] || (P[4] = (R) => E(te))
1824
+ onClick: P[4] || (P[4] = (R) => E(H))
1825
1825
  }, {
1826
1826
  default: n(() => [
1827
1827
  h(o(e(a).register), 1)
1828
1828
  ]),
1829
1829
  _: 1
1830
- }, 8, ["disabled"])) : (l(), y(e(N), {
1830
+ }, 8, ["disabled"])) : (l(), y(e(V), {
1831
1831
  key: 1,
1832
1832
  variant: "primary",
1833
1833
  disabled: r.value,
1834
- onClick: F
1834
+ onClick: B
1835
1835
  }, {
1836
1836
  default: n(() => [
1837
1837
  h(o(e(a).unregister), 1)
@@ -1843,7 +1843,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1843
1843
  } : u.value && !u.value.canManage && u.value.controlPanel ? {
1844
1844
  name: "footer",
1845
1845
  fn: n(() => [
1846
- p(e(N), {
1846
+ p(e(V), {
1847
1847
  variant: "secondary",
1848
1848
  onClick: P[5] || (P[5] = (R) => t.portal.openControlPanel())
1849
1849
  }, {
@@ -1864,7 +1864,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1864
1864
  "close-label": e(a).cancel
1865
1865
  }, {
1866
1866
  footer: n(() => [
1867
- p(e(N), {
1867
+ p(e(V), {
1868
1868
  variant: "secondary",
1869
1869
  onClick: P[6] || (P[6] = (R) => d.value = !1)
1870
1870
  }, {
@@ -1873,7 +1873,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1873
1873
  ]),
1874
1874
  _: 1
1875
1875
  }),
1876
- p(e(N), {
1876
+ p(e(V), {
1877
1877
  variant: "danger",
1878
1878
  disabled: r.value,
1879
1879
  onClick: M
@@ -1888,7 +1888,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1888
1888
  }, 8, ["open", "title", "description", "close-label"])
1889
1889
  ], 64));
1890
1890
  }
1891
- }), Xl = { class: "sf-state" }, Gl = { class: "sf-notices" }, Wl = { role: "status" }, Jl = { role: "alert" }, Yl = /* @__PURE__ */ ce({
1891
+ }), Gl = { class: "sf-state" }, Wl = { class: "sf-notices" }, Jl = { role: "status" }, Yl = { role: "alert" }, Ql = /* @__PURE__ */ ce({
1892
1892
  __name: "SharedFolderSettings",
1893
1893
  props: {
1894
1894
  shared: {},
@@ -1897,33 +1897,33 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1897
1897
  setup(t) {
1898
1898
  const v = t, s = v.shared.messages, a = b(), u = b(!1), i = b(""), r = b("");
1899
1899
  let f = !1;
1900
- const g = { ready: "success", pending: "warning", missing: "danger", ambiguous: "danger" }, d = (A) => ({ account: a.value?.account ?? "", folder: A.name, access: s[A.required] ?? A.required }), c = (A, Z) => We(A, Z, v.locale), w = _(() => a.value?.folders.filter((A) => A.state !== "ready") ?? []), z = ma(v.locale ?? "en"), x = _(() => v.shared.canGrant());
1901
- function S(A) {
1902
- f || (a.value = A, u.value = !1);
1900
+ const g = { ready: "success", pending: "warning", missing: "danger", ambiguous: "danger" }, d = (z) => ({ account: a.value?.account ?? "", folder: z.name, access: s[z.required] ?? z.required }), c = (z, ae) => We(z, ae, v.locale), x = w(() => a.value?.folders.filter((z) => z.state !== "ready") ?? []), T = ma(v.locale ?? "en"), C = w(() => v.shared.canGrant());
1901
+ function S(z) {
1902
+ f || (a.value = z, u.value = !1);
1903
1903
  }
1904
- async function T() {
1904
+ async function A() {
1905
1905
  try {
1906
1906
  S(await v.shared.status());
1907
1907
  } catch {
1908
1908
  !f && !a.value && (u.value = !0);
1909
1909
  }
1910
1910
  }
1911
- async function C(A) {
1911
+ async function _(z) {
1912
1912
  if (!i.value) {
1913
- i.value = A.key, r.value = "";
1913
+ i.value = z.key, r.value = "";
1914
1914
  try {
1915
- S(await v.shared.grant(A.key));
1916
- } catch (Z) {
1917
- f || (r.value = s[Z?.code || ""] || s.shared_folder_unavailable);
1915
+ S(await v.shared.grant(z.key));
1916
+ } catch (ae) {
1917
+ f || (r.value = s[ae?.code || ""] || s.shared_folder_unavailable);
1918
1918
  } finally {
1919
1919
  f || (i.value = "");
1920
1920
  }
1921
1921
  }
1922
1922
  }
1923
1923
  const E = v.shared.lastStatus?.();
1924
- return E && (a.value = E), xe(T), _e(() => {
1924
+ return E && (a.value = E), xe(A), _e(() => {
1925
1925
  f = !0;
1926
- }), (A, Z) => !a.value && !u.value ? (l(), y(e(ke), {
1926
+ }), (z, ae) => !a.value && !u.value ? (l(), y(e(ke), {
1927
1927
  key: 0,
1928
1928
  title: e(s).title,
1929
1929
  collapsible: !1,
@@ -1951,29 +1951,29 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1951
1951
  "aria-busy": !!i.value
1952
1952
  }, ta({
1953
1953
  default: n(() => [
1954
- (l(!0), k(Q, null, fe(a.value.folders, (U) => (l(), y(e(we), {
1955
- key: U.key,
1956
- label: U.name,
1957
- "data-shared-folder": U.key
1954
+ (l(!0), k(ee, null, fe(a.value.folders, (F) => (l(), y(e(we), {
1955
+ key: F.key,
1956
+ label: F.name,
1957
+ "data-shared-folder": F.key
1958
1958
  }, {
1959
1959
  default: n(() => [
1960
- $("div", Xl, [
1960
+ $("div", Gl, [
1961
1961
  p(e(Je), {
1962
- tone: g[U.state],
1963
- "data-shared-folder-state": U.state
1962
+ tone: g[F.state],
1963
+ "data-shared-folder-state": F.state
1964
1964
  }, {
1965
1965
  default: n(() => [
1966
- h(o(e(s)[U.state]), 1)
1966
+ h(o(e(s)[F.state]), 1)
1967
1967
  ]),
1968
1968
  _: 2
1969
1969
  }, 1032, ["tone", "data-shared-folder-state"]),
1970
- $("span", null, o(e(s).required) + o(e(z)) + o(e(s)[U.required]), 1),
1971
- $("span", null, o(e(s).granted) + o(e(z)) + o(e(s)[U.granted]), 1),
1972
- U.state === "pending" && x.value ? (l(), y(e(N), {
1970
+ $("span", null, o(e(s).required) + o(e(T)) + o(e(s)[F.required]), 1),
1971
+ $("span", null, o(e(s).granted) + o(e(T)) + o(e(s)[F.granted]), 1),
1972
+ F.state === "pending" && C.value ? (l(), y(e(V), {
1973
1973
  key: 0,
1974
1974
  variant: "primary",
1975
1975
  disabled: !!i.value,
1976
- onClick: (te) => C(U)
1976
+ onClick: (H) => _(F)
1977
1977
  }, {
1978
1978
  default: n(() => [
1979
1979
  h(o(e(s).grant), 1)
@@ -1984,31 +1984,31 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
1984
1984
  ]),
1985
1985
  _: 2
1986
1986
  }, 1032, ["label", "data-shared-folder"]))), 128)),
1987
- $("div", Gl, [
1988
- (l(!0), k(Q, null, fe(w.value, (U) => (l(), y(e(J), {
1989
- key: U.key,
1987
+ $("div", Wl, [
1988
+ (l(!0), k(ee, null, fe(x.value, (F) => (l(), y(e(Z), {
1989
+ key: F.key,
1990
1990
  tone: "warning",
1991
1991
  "data-shared-folder-notice": ""
1992
1992
  }, {
1993
1993
  default: n(() => [
1994
- $("span", Wl, [
1995
- U.state === "pending" ? (l(), k(Q, { key: 0 }, [
1996
- h(o(e(s).pendingNote) + " " + o(x.value ? "" : c(e(s).askAdmin, d(U))) + " " + o(c(e(s).steps, d(U))), 1)
1997
- ], 64)) : U.state === "missing" ? (l(), k(Q, { key: 1 }, [
1998
- h(o(c(e(s).missingHint, d(U))), 1)
1999
- ], 64)) : (l(), k(Q, { key: 2 }, [
2000
- h(o(c(e(s).ambiguousHint, d(U))), 1)
1994
+ $("span", Jl, [
1995
+ F.state === "pending" ? (l(), k(ee, { key: 0 }, [
1996
+ h(o(e(s).pendingNote) + " " + o(C.value ? "" : c(e(s).askAdmin, d(F))) + " " + o(c(e(s).steps, d(F))), 1)
1997
+ ], 64)) : F.state === "missing" ? (l(), k(ee, { key: 1 }, [
1998
+ h(o(c(e(s).missingHint, d(F))), 1)
1999
+ ], 64)) : (l(), k(ee, { key: 2 }, [
2000
+ h(o(c(e(s).ambiguousHint, d(F))), 1)
2001
2001
  ], 64))
2002
2002
  ])
2003
2003
  ]),
2004
2004
  _: 2
2005
2005
  }, 1024))), 128)),
2006
- r.value ? (l(), y(e(J), {
2006
+ r.value ? (l(), y(e(Z), {
2007
2007
  key: 0,
2008
2008
  tone: "danger"
2009
2009
  }, {
2010
2010
  default: n(() => [
2011
- $("span", Jl, o(r.value), 1)
2011
+ $("span", Yl, o(r.value), 1)
2012
2012
  ]),
2013
2013
  _: 1
2014
2014
  })) : m("", !0)
@@ -2016,12 +2016,12 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2016
2016
  ]),
2017
2017
  _: 2
2018
2018
  }, [
2019
- w.value.some((U) => U.state === "pending") ? {
2019
+ x.value.some((F) => F.state === "pending") ? {
2020
2020
  name: "footer",
2021
2021
  fn: n(() => [
2022
- p(e(N), {
2022
+ p(e(V), {
2023
2023
  variant: "secondary",
2024
- onClick: Z[0] || (Z[0] = (U) => t.shared.openControlPanel())
2024
+ onClick: ae[0] || (ae[0] = (F) => t.shared.openControlPanel())
2025
2025
  }, {
2026
2026
  default: n(() => [
2027
2027
  h(o(e(s).openControlPanel), 1)
@@ -2033,16 +2033,16 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2033
2033
  } : void 0
2034
2034
  ]), 1032, ["title", "aria-busy"])) : m("", !0);
2035
2035
  }
2036
- }), As = /* @__PURE__ */ pe(Yl, [["__scopeId", "data-v-273cff49"]]), Ql = { class: "shared-folder-permission-issues" }, Zl = {
2036
+ }), Rs = /* @__PURE__ */ pe(Ql, [["__scopeId", "data-v-273cff49"]]), Zl = { class: "shared-folder-permission-issues" }, jl = {
2037
2037
  key: 0,
2038
2038
  role: "alert"
2039
- }, jl = /* @__PURE__ */ ce({
2039
+ }, en = /* @__PURE__ */ ce({
2040
2040
  __name: "SharedFolderPermissionDialog",
2041
2041
  props: {
2042
2042
  permission: {}
2043
2043
  },
2044
2044
  setup(t) {
2045
- const v = t, s = b(!1), a = ot([]), u = b(!1), i = b(!1);
2045
+ const v = t, s = b(!1), a = it([]), u = b(!1), i = b(!1);
2046
2046
  let r = !1, f;
2047
2047
  xe(() => {
2048
2048
  f = v.permission.subscribe((d) => {
@@ -2067,31 +2067,31 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2067
2067
  return (d, c) => s.value ? (l(), y(e(Ke), {
2068
2068
  key: 0,
2069
2069
  open: s.value,
2070
- "onUpdate:open": c[2] || (c[2] = (w) => s.value = w),
2070
+ "onUpdate:open": c[2] || (c[2] = (x) => s.value = x),
2071
2071
  title: t.permission.messages.pending,
2072
2072
  description: t.permission.messages.pendingNote,
2073
2073
  "close-label": t.permission.messages.dismiss
2074
2074
  }, {
2075
2075
  footer: n(() => [
2076
- p(e(N), {
2076
+ p(e(V), {
2077
2077
  variant: "secondary",
2078
- onClick: c[0] || (c[0] = (w) => t.permission.openControlPanel())
2078
+ onClick: c[0] || (c[0] = (x) => t.permission.openControlPanel())
2079
2079
  }, {
2080
2080
  default: n(() => [
2081
2081
  h(o(t.permission.messages.openControlPanel), 1)
2082
2082
  ]),
2083
2083
  _: 1
2084
2084
  }),
2085
- p(e(N), {
2085
+ p(e(V), {
2086
2086
  variant: "secondary",
2087
- onClick: c[1] || (c[1] = (w) => s.value = !1)
2087
+ onClick: c[1] || (c[1] = (x) => s.value = !1)
2088
2088
  }, {
2089
2089
  default: n(() => [
2090
2090
  h(o(t.permission.messages.dismiss), 1)
2091
2091
  ]),
2092
2092
  _: 1
2093
2093
  }),
2094
- p(e(N), {
2094
+ p(e(V), {
2095
2095
  variant: "primary",
2096
2096
  disabled: u.value,
2097
2097
  onClick: g
@@ -2103,42 +2103,42 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2103
2103
  }, 8, ["disabled"])
2104
2104
  ]),
2105
2105
  default: n(() => [
2106
- $("ul", Ql, [
2107
- (l(!0), k(Q, null, fe(a.value, (w) => (l(), k("li", {
2108
- key: JSON.stringify([w.account, w.share, w.required])
2109
- }, o(t.permission.message(w)), 1))), 128))
2106
+ $("ul", Zl, [
2107
+ (l(!0), k(ee, null, fe(a.value, (x) => (l(), k("li", {
2108
+ key: JSON.stringify([x.account, x.share, x.required])
2109
+ }, o(t.permission.message(x)), 1))), 128))
2110
2110
  ]),
2111
- i.value ? (l(), k("p", Zl, o(t.permission.messages.shared_folder_unavailable), 1)) : m("", !0)
2111
+ i.value ? (l(), k("p", jl, o(t.permission.messages.shared_folder_unavailable), 1)) : m("", !0)
2112
2112
  ]),
2113
2113
  _: 1
2114
2114
  }, 8, ["open", "title", "description", "close-label"])) : m("", !0);
2115
2115
  }
2116
- }), Rs = /* @__PURE__ */ pe(jl, [["__scopeId", "data-v-360e834c"]]), en = ["aria-busy"], an = { role: "alert" }, tn = {
2116
+ }), Is = /* @__PURE__ */ pe(en, [["__scopeId", "data-v-360e834c"]]), an = ["aria-busy"], tn = { role: "alert" }, ln = {
2117
2117
  key: 2,
2118
2118
  role: "status"
2119
- }, ln = { role: "alert" }, nn = { role: "status" }, sn = /* @__PURE__ */ ce({
2119
+ }, nn = { role: "alert" }, sn = { role: "status" }, on = /* @__PURE__ */ ce({
2120
2120
  __name: "LoginPage",
2121
2121
  props: {
2122
2122
  session: {},
2123
2123
  locale: {}
2124
2124
  },
2125
2125
  setup(t) {
2126
- const v = t, s = _(() => Wa(v.locale)), a = b(""), u = b(""), i = b(""), r = b(!1), f = b(!1), g = b(""), d = b(), c = _(() => window.location.protocol === "https:");
2127
- let w = !1;
2128
- function z(C) {
2129
- const E = C?.code;
2126
+ const v = t, s = w(() => Ja(v.locale)), a = b(""), u = b(""), i = b(""), r = b(!1), f = b(!1), g = b(""), d = b(), c = w(() => window.location.protocol === "https:");
2127
+ let x = !1;
2128
+ function T(_) {
2129
+ const E = _?.code;
2130
2130
  return v.session.denied.value?.message || s.value.errors[E || ""] || s.value.errors.failed;
2131
2131
  }
2132
- async function x() {
2132
+ async function C() {
2133
2133
  if (!(f.value || !c.value || !a.value || !u.value || r.value && !i.value)) {
2134
2134
  f.value = !0, g.value = "";
2135
2135
  try {
2136
2136
  await v.session.login(a.value, u.value, i.value), u.value = "", i.value = "";
2137
- } catch (C) {
2138
- if (w) return;
2139
- i.value = "", C?.code === "otp_required" ? r.value = !0 : (g.value = z(C), u.value = "", r.value = !1);
2137
+ } catch (_) {
2138
+ if (x) return;
2139
+ i.value = "", _?.code === "otp_required" ? r.value = !0 : (g.value = T(_), u.value = "", r.value = !1);
2140
2140
  } finally {
2141
- w || (f.value = !1, r.value && (await it(), w || d.value?.querySelector("input")?.focus()));
2141
+ x || (f.value = !1, r.value && (await ut(), x || d.value?.querySelector("input")?.focus()));
2142
2142
  }
2143
2143
  }
2144
2144
  }
@@ -2147,19 +2147,19 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2147
2147
  f.value = !0, g.value = "";
2148
2148
  try {
2149
2149
  await v.session.bootstrap();
2150
- } catch (C) {
2151
- w || (g.value = z(C));
2150
+ } catch (_) {
2151
+ x || (g.value = T(_));
2152
2152
  } finally {
2153
- w || (f.value = !1);
2153
+ x || (f.value = !1);
2154
2154
  }
2155
2155
  }
2156
2156
  }
2157
- function T() {
2157
+ function A() {
2158
2158
  u.value = "", i.value = "", r.value = !1, g.value = "";
2159
2159
  }
2160
2160
  return Ia(() => {
2161
- w = !0, u.value = "", i.value = "";
2162
- }), (C, E) => (l(), k("main", {
2161
+ x = !0, u.value = "", i.value = "";
2162
+ }), (_, E) => (l(), k("main", {
2163
2163
  class: "identity-login",
2164
2164
  "aria-busy": f.value
2165
2165
  }, [
@@ -2169,7 +2169,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2169
2169
  collapsible: !1
2170
2170
  }, {
2171
2171
  default: n(() => [
2172
- c.value ? m("", !0) : (l(), y(e(J), {
2172
+ c.value ? m("", !0) : (l(), y(e(Z), {
2173
2173
  key: 0,
2174
2174
  tone: "warning",
2175
2175
  title: s.value.httpsTitle
@@ -2179,45 +2179,45 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2179
2179
  ]),
2180
2180
  _: 1
2181
2181
  }, 8, ["title"])),
2182
- t.session.denied.value ? (l(), y(e(J), {
2182
+ t.session.denied.value ? (l(), y(e(Z), {
2183
2183
  key: 1,
2184
2184
  tone: "danger"
2185
2185
  }, {
2186
2186
  default: n(() => [
2187
- $("span", an, o(t.session.denied.value.message), 1)
2187
+ $("span", tn, o(t.session.denied.value.message), 1)
2188
2188
  ]),
2189
2189
  _: 1
2190
- })) : t.session.notice.value ? (l(), k("p", tn, o(s.value.notices[t.session.notice.value]), 1)) : m("", !0),
2191
- g.value && !t.session.denied.value ? (l(), y(e(J), {
2190
+ })) : t.session.notice.value ? (l(), k("p", ln, o(s.value.notices[t.session.notice.value]), 1)) : m("", !0),
2191
+ g.value && !t.session.denied.value ? (l(), y(e(Z), {
2192
2192
  key: 3,
2193
2193
  tone: "danger",
2194
2194
  title: s.value.failedTitle
2195
2195
  }, {
2196
2196
  default: n(() => [
2197
- $("span", ln, o(g.value), 1)
2197
+ $("span", nn, o(g.value), 1)
2198
2198
  ]),
2199
2199
  _: 1
2200
2200
  }, 8, ["title"])) : m("", !0),
2201
2201
  t.session.denied.value ? m("", !0) : (l(), y(e(Me), {
2202
2202
  key: 4,
2203
- onSubmit: Oe(x, ["prevent"])
2203
+ onSubmit: Oe(C, ["prevent"])
2204
2204
  }, {
2205
2205
  default: n(() => [
2206
2206
  p(e(Pe), {
2207
2207
  label: s.value.account
2208
2208
  }, {
2209
2209
  default: n(() => [
2210
- p(e(Ae), {
2210
+ p(e(ze), {
2211
2211
  modelValue: a.value,
2212
- "onUpdate:modelValue": E[0] || (E[0] = (A) => a.value = A),
2212
+ "onUpdate:modelValue": E[0] || (E[0] = (z) => a.value = z),
2213
2213
  autocomplete: "username",
2214
2214
  disabled: f.value || r.value || !c.value
2215
2215
  }, null, 8, ["modelValue", "disabled"])
2216
2216
  ]),
2217
2217
  _: 1
2218
2218
  }, 8, ["label"]),
2219
- r.value ? (l(), k(Q, { key: 1 }, [
2220
- $("p", nn, o(s.value.otpPrompt), 1),
2219
+ r.value ? (l(), k(ee, { key: 1 }, [
2220
+ $("p", sn, o(s.value.otpPrompt), 1),
2221
2221
  $("div", {
2222
2222
  ref_key: "otpField",
2223
2223
  ref: d
@@ -2226,9 +2226,9 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2226
2226
  label: s.value.otp
2227
2227
  }, {
2228
2228
  default: n(() => [
2229
- p(e(Ae), {
2229
+ p(e(ze), {
2230
2230
  modelValue: i.value,
2231
- "onUpdate:modelValue": E[2] || (E[2] = (A) => i.value = A),
2231
+ "onUpdate:modelValue": E[2] || (E[2] = (z) => i.value = z),
2232
2232
  inputmode: "numeric",
2233
2233
  autocomplete: "one-time-code",
2234
2234
  disabled: f.value
@@ -2242,9 +2242,9 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2242
2242
  label: s.value.password
2243
2243
  }, {
2244
2244
  default: n(() => [
2245
- p(e(Ae), {
2245
+ p(e(ze), {
2246
2246
  modelValue: u.value,
2247
- "onUpdate:modelValue": E[1] || (E[1] = (A) => u.value = A),
2247
+ "onUpdate:modelValue": E[1] || (E[1] = (z) => u.value = z),
2248
2248
  type: "password",
2249
2249
  autocomplete: "current-password",
2250
2250
  disabled: f.value || !c.value
@@ -2254,7 +2254,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2254
2254
  }, 8, ["label"])),
2255
2255
  p(e(la), null, {
2256
2256
  default: n(() => [
2257
- p(e(N), {
2257
+ p(e(V), {
2258
2258
  type: "submit",
2259
2259
  variant: "primary",
2260
2260
  disabled: f.value || !c.value || !a.value || !u.value || r.value && !i.value
@@ -2264,17 +2264,17 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2264
2264
  ]),
2265
2265
  _: 1
2266
2266
  }, 8, ["disabled"]),
2267
- r.value ? (l(), y(e(N), {
2267
+ r.value ? (l(), y(e(V), {
2268
2268
  key: 0,
2269
2269
  variant: "secondary",
2270
2270
  disabled: f.value,
2271
- onClick: T
2271
+ onClick: A
2272
2272
  }, {
2273
2273
  default: n(() => [
2274
2274
  h(o(s.value.otherAccount), 1)
2275
2275
  ]),
2276
2276
  _: 1
2277
- }, 8, ["disabled"])) : (l(), y(e(N), {
2277
+ }, 8, ["disabled"])) : (l(), y(e(V), {
2278
2278
  key: 1,
2279
2279
  variant: "secondary",
2280
2280
  disabled: f.value || !c.value,
@@ -2294,136 +2294,136 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2294
2294
  ]),
2295
2295
  _: 1
2296
2296
  }, 8, ["title", "description"])
2297
- ], 8, en));
2297
+ ], 8, an));
2298
2298
  }
2299
- }), Is = /* @__PURE__ */ pe(sn, [["__scopeId", "data-v-06b2efdb"]]), on = { class: "integration-actions" }, un = { role: "status" }, rn = { class: "integration-help" }, dn = { class: "integration-help" }, cn = { class: "integration-help" }, vn = { class: "integration-actions" }, fn = {
2299
+ }), Us = /* @__PURE__ */ pe(on, [["__scopeId", "data-v-06b2efdb"]]), un = { class: "integration-actions" }, rn = { role: "status" }, dn = { class: "integration-help" }, cn = { class: "integration-help" }, vn = { class: "integration-help" }, fn = { class: "integration-actions" }, pn = {
2300
2300
  key: 0,
2301
2301
  role: "status",
2302
2302
  "data-bg-picked": "",
2303
2303
  class: "bg-path"
2304
- }, pn = { class: "integration-actions" }, mn = { key: 2 }, yn = {
2304
+ }, mn = { class: "integration-actions" }, yn = { key: 2 }, bn = {
2305
2305
  key: 3,
2306
2306
  class: "bg-cards"
2307
- }, bn = { class: "bg-card-body" }, gn = {
2307
+ }, gn = { class: "bg-card-body" }, hn = {
2308
2308
  key: 0,
2309
2309
  class: "integration-help"
2310
- }, hn = {
2310
+ }, kn = {
2311
2311
  key: 1,
2312
2312
  class: "integration-help"
2313
- }, kn = {
2313
+ }, _n = {
2314
2314
  key: 2,
2315
2315
  class: "integration-help bg-path"
2316
- }, _n = {
2316
+ }, wn = {
2317
2317
  key: 3,
2318
2318
  class: "integration-help"
2319
- }, wn = {
2319
+ }, xn = {
2320
2320
  key: 4,
2321
2321
  class: "integration-help"
2322
- }, xn = { class: "integration-actions" }, Cn = { key: 1 }, $n = {
2322
+ }, Cn = { class: "integration-actions" }, $n = { key: 1 }, Sn = {
2323
2323
  key: 2,
2324
2324
  class: "bg-cards"
2325
- }, Sn = { class: "bg-card-body" }, Pn = {
2325
+ }, Pn = { class: "bg-card-body" }, En = {
2326
2326
  key: 0,
2327
2327
  class: "integration-help"
2328
- }, En = {
2328
+ }, Tn = {
2329
2329
  key: 1,
2330
2330
  class: "integration-help"
2331
- }, Tn = { class: "integration-help" }, zn = { class: "integration-actions" }, An = { class: "integration-actions" }, Rn = { class: "integration-actions" }, In = /* @__PURE__ */ ce({
2331
+ }, An = { class: "integration-help" }, zn = { class: "integration-actions" }, Rn = { class: "integration-actions" }, In = { class: "integration-actions" }, Un = /* @__PURE__ */ ce({
2332
2332
  __name: "BackgroundPanel",
2333
2333
  props: {
2334
2334
  ctx: {}
2335
2335
  },
2336
2336
  setup(t, { expose: v }) {
2337
- const s = t, a = _(() => Ja(s.ctx.locale)), u = (I, X) => We(I, X, s.ctx.locale), i = b(), r = b([]), f = b(), g = b(!1), d = b(!1), c = b([]), w = b(), z = b(!1), x = b("3600"), S = b(), T = b(), C = b(), E = b(!1), A = b(), Z = _(() => !i.value && !f.value && !g.value && !A.value), U = b(!1), te = b(), H = b(""), F = b(""), M = Ya(s.ctx);
2338
- let V, P = !1;
2339
- const R = (I) => !["queued", "running"].includes(I.state), q = (I) => R(I) && I.state !== "paused", le = (I) => I.state === "running" && I.pauseRequested, K = (I) => le(I) ? a.value.pausing : a.value[`state_${I.state}`], ee = (I) => le(I) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[I.state];
2340
- async function se(I, X, D = !1) {
2337
+ const s = t, a = w(() => Ya(s.ctx.locale)), u = (I, W) => We(I, W, s.ctx.locale), i = b(), r = b([]), f = b(), g = b(!1), d = b(!1), c = b([]), x = b(), T = b(!1), C = b("3600"), S = b(), A = b(), _ = b(), E = b(!1), z = b(), ae = w(() => !i.value && !f.value && !g.value && !z.value), F = b(!1), H = b(), X = b(""), B = b(""), M = Qa(s.ctx);
2338
+ let D, P = !1;
2339
+ const R = (I) => !["queued", "running"].includes(I.state), Y = (I) => R(I) && I.state !== "paused", K = (I) => I.state === "running" && I.pauseRequested, se = (I) => K(I) ? a.value.pausing : a.value[`state_${I.state}`], O = (I) => K(I) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[I.state];
2340
+ async function ne(I, W, U = !1) {
2341
2341
  try {
2342
- return await s.ctx.call(I, X);
2342
+ return await s.ctx.call(I, W);
2343
2343
  } catch (me) {
2344
- if (P || D && (A.value = Se(me))) return;
2345
- me?.code === "unsupported" ? (g.value = !0, r.value = [], c.value = [], w.value = void 0, S.value = void 0, T.value = void 0, i.value = void 0, C.value = void 0, te.value = void 0, H.value && URL.revokeObjectURL(H.value), H.value = "") : P || (f.value = me);
2344
+ if (P || U && (z.value = Se(me))) return;
2345
+ me?.code === "unsupported" ? (g.value = !0, r.value = [], c.value = [], x.value = void 0, S.value = void 0, A.value = void 0, i.value = void 0, _.value = void 0, H.value = void 0, X.value && URL.revokeObjectURL(X.value), X.value = "") : P || (f.value = me);
2346
2346
  return;
2347
2347
  }
2348
2348
  }
2349
- async function re() {
2349
+ async function ue() {
2350
2350
  if (!(P || E.value)) {
2351
2351
  E.value = !0;
2352
2352
  try {
2353
- const I = await se("bg.status", void 0, !0);
2353
+ const I = await ne("bg.status", void 0, !0);
2354
2354
  if (!I || P) return;
2355
- if (A.value = void 0, !I.limits || typeof I.admin != "boolean") {
2355
+ if (z.value = void 0, !I.limits || typeof I.admin != "boolean") {
2356
2356
  f.value = { code: "unavailable" };
2357
2357
  return;
2358
2358
  }
2359
2359
  g.value = !1, i.value = I;
2360
- const X = await se("bg.jobs.list", void 0, !0);
2361
- X && !P && (r.value = X.jobs ?? []);
2362
- const D = await se("bg.schedules.list", void 0, !0);
2363
- D && !P && (c.value = D.schedules ?? []), !P && r.value.every(R) && c.value.every((me) => !me.enabled) && V && (clearInterval(V), V = void 0);
2360
+ const W = await ne("bg.jobs.list", void 0, !0);
2361
+ W && !P && (r.value = W.jobs ?? []);
2362
+ const U = await ne("bg.schedules.list", void 0, !0);
2363
+ U && !P && (c.value = U.schedules ?? []), !P && r.value.every(R) && c.value.every((me) => !me.enabled) && D && (clearInterval(D), D = void 0);
2364
2364
  } finally {
2365
2365
  E.value = !1;
2366
2366
  }
2367
2367
  }
2368
2368
  }
2369
- function oe() {
2370
- V || (V = setInterval(() => {
2371
- re();
2369
+ function re() {
2370
+ D || (D = setInterval(() => {
2371
+ ue();
2372
2372
  }, 3e3));
2373
2373
  }
2374
2374
  async function G(I) {
2375
2375
  if (!d.value) {
2376
2376
  d.value = !0, f.value = void 0;
2377
2377
  try {
2378
- await I(), await re(), (c.value.some((X) => X.enabled) || r.value.some((X) => !R(X))) && oe();
2378
+ await I(), await ue(), (c.value.some((W) => W.enabled) || r.value.some((W) => !R(W))) && re();
2379
2379
  } finally {
2380
2380
  P || (d.value = !1);
2381
2381
  }
2382
2382
  }
2383
2383
  }
2384
- const ne = () => G(async () => {
2385
- if (!C.value) return;
2386
- await se("bg.jobs.purge", { owner: C.value }) && (C.value = void 0);
2387
- }), W = _(() => [{ value: "3600", label: a.value.hourly }, { value: "86400", label: a.value.daily }, { value: "604800", label: a.value.weekly }]), ye = (I) => {
2388
- w.value = I, z.value = !1, x.value = "3600";
2384
+ const J = () => G(async () => {
2385
+ if (!_.value) return;
2386
+ await ne("bg.jobs.purge", { owner: _.value }) && (_.value = void 0);
2387
+ }), Q = w(() => [{ value: "3600", label: a.value.hourly }, { value: "86400", label: a.value.daily }, { value: "604800", label: a.value.weekly }]), ye = (I) => {
2388
+ x.value = I, T.value = !1, C.value = "3600";
2389
2389
  }, Ce = () => G(async () => {
2390
- if (!w.value || !z.value) return;
2391
- await se("bg.schedules.create", { key: ha(), jobId: w.value.id, intervalSeconds: Number(x.value), consent: !0 }) && (w.value = void 0);
2392
- }), $e = (I) => G(() => se("bg.schedules.disable", { id: I })), Y = () => G(async () => {
2390
+ if (!x.value || !T.value) return;
2391
+ await ne("bg.schedules.create", { key: ha(), jobId: x.value.id, intervalSeconds: Number(C.value), consent: !0 }) && (x.value = void 0);
2392
+ }), $e = (I) => G(() => ne("bg.schedules.disable", { id: I })), j = () => G(async () => {
2393
2393
  if (!S.value) return;
2394
- await se("bg.schedules.delete", { id: S.value.id }) && (S.value = void 0);
2395
- }), ue = () => G(async () => {
2396
- if (!T.value) return;
2397
- await se("bg.schedules.enable", { id: T.value.id, consent: !0 }) && (T.value = void 0);
2398
- }), ie = (I) => {
2399
- const X = new Date(I);
2400
- return Number.isFinite(X.getTime()) ? X.toLocaleString() : a.value.unknownTime;
2401
- }, ge = (I) => I.copyRetained && I.state === "succeeded" && !I.scheduleId && I.submitter?.user === i.value?.owner?.user && I.submitter?.uid === i.value?.owner?.uid, Ee = (I) => G(() => se("bg.jobs.cancel", { id: I })), L = (I) => G(() => se("bg.jobs.pause", { id: I })), B = (I) => G(() => se("bg.jobs.resume", { id: I })), O = (I) => {
2402
- const X = I.lastIndexOf("/");
2403
- te.value = { folder: I.slice(0, X), relative: I.slice(X + 1) };
2404
- }, j = () => G(async () => {
2405
- if (!te.value) return;
2406
- await se("bg.jobs.submit", { key: ha(), ...te.value }) && (te.value = void 0);
2394
+ await ne("bg.schedules.delete", { id: S.value.id }) && (S.value = void 0);
2395
+ }), ie = () => G(async () => {
2396
+ if (!A.value) return;
2397
+ await ne("bg.schedules.enable", { id: A.value.id, consent: !0 }) && (A.value = void 0);
2398
+ }), oe = (I) => {
2399
+ const W = new Date(I);
2400
+ return Number.isFinite(W.getTime()) ? W.toLocaleString() : a.value.unknownTime;
2401
+ }, ge = (I) => I.copyRetained && I.state === "succeeded" && !I.scheduleId && I.submitter?.user === i.value?.owner?.user && I.submitter?.uid === i.value?.owner?.uid, Ee = (I) => G(() => ne("bg.jobs.cancel", { id: I })), N = (I) => G(() => ne("bg.jobs.pause", { id: I })), L = (I) => G(() => ne("bg.jobs.resume", { id: I })), q = (I) => {
2402
+ const W = I.lastIndexOf("/");
2403
+ H.value = { folder: I.slice(0, W), relative: I.slice(W + 1) };
2404
+ }, te = () => G(async () => {
2405
+ if (!H.value) return;
2406
+ await ne("bg.jobs.submit", { key: ha(), ...H.value }) && (H.value = void 0);
2407
2407
  });
2408
2408
  async function ve(I) {
2409
- const X = await se("bg.jobs.result", { id: I.id });
2410
- !X || P || (H.value && URL.revokeObjectURL(H.value), H.value = URL.createObjectURL(new Blob([JSON.stringify(X.result, null, 2)], { type: "application/json" })), F.value = `${I.name || I.id}.sha256.json`);
2409
+ const W = await ne("bg.jobs.result", { id: I.id });
2410
+ !W || P || (X.value && URL.revokeObjectURL(X.value), X.value = URL.createObjectURL(new Blob([JSON.stringify(W.result, null, 2)], { type: "application/json" })), B.value = `${I.name || I.id}.sha256.json`);
2411
2411
  }
2412
- return He(() => A.value, re), v({ refresh: re }), xe(() => {
2413
- re().then(() => {
2414
- (c.value.some((I) => I.enabled) || r.value.some((I) => !R(I))) && oe();
2412
+ return He(() => z.value, ue), v({ refresh: ue }), xe(() => {
2413
+ ue().then(() => {
2414
+ (c.value.some((I) => I.enabled) || r.value.some((I) => !R(I))) && re();
2415
2415
  });
2416
2416
  }), _e(() => {
2417
- P = !0, M.dispose(), V && clearInterval(V), H.value && URL.revokeObjectURL(H.value);
2418
- }), (I, X) => (l(), y(e(ke), {
2419
- "aria-busy": d.value || E.value || Z.value,
2417
+ P = !0, M.dispose(), D && clearInterval(D), X.value && URL.revokeObjectURL(X.value);
2418
+ }), (I, W) => (l(), y(e(ke), {
2419
+ "aria-busy": d.value || E.value || ae.value,
2420
2420
  title: a.value.title,
2421
2421
  description: g.value ? void 0 : a.value.help,
2422
2422
  collapsible: !1,
2423
2423
  "data-background-panel": ""
2424
2424
  }, {
2425
2425
  default: n(() => [
2426
- g.value ? (l(), y(e(J), {
2426
+ g.value ? (l(), y(e(Z), {
2427
2427
  key: 0,
2428
2428
  tone: "warning"
2429
2429
  }, {
@@ -2431,39 +2431,39 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2431
2431
  h(o(a.value.unsupported), 1)
2432
2432
  ]),
2433
2433
  _: 1
2434
- })) : (l(), k(Q, { key: 1 }, [
2435
- A.value ? (l(), y(e(J), {
2434
+ })) : (l(), k(ee, { key: 1 }, [
2435
+ z.value ? (l(), y(e(Z), {
2436
2436
  key: 0,
2437
2437
  tone: "info",
2438
2438
  role: "status"
2439
2439
  }, {
2440
2440
  default: n(() => [
2441
- h(o(e(Le)(A.value, t.ctx.locale)), 1)
2441
+ h(o(e(Le)(z.value, t.ctx.locale)), 1)
2442
2442
  ]),
2443
2443
  _: 1
2444
2444
  })) : m("", !0),
2445
- f.value ? (l(), y(e(J), {
2445
+ f.value ? (l(), y(e(Z), {
2446
2446
  key: 1,
2447
2447
  tone: "danger",
2448
2448
  role: "alert"
2449
2449
  }, {
2450
2450
  default: n(() => [
2451
- h(o(e(Qa)(f.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
2451
+ h(o(e(Za)(f.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
2452
2452
  ]),
2453
2453
  _: 1
2454
2454
  })) : m("", !0),
2455
- Z.value ? (l(), k(Q, { key: 2 }, [
2456
- (l(), k(Q, null, fe(["14rem", "24rem", "18rem", "24rem"], (D, me) => $("p", {
2455
+ ae.value ? (l(), k(ee, { key: 2 }, [
2456
+ (l(), k(ee, null, fe(["14rem", "24rem", "18rem", "24rem"], (U, me) => $("p", {
2457
2457
  key: me,
2458
2458
  "data-placeholder-row": ""
2459
2459
  }, [
2460
2460
  p(e(Ve), {
2461
- width: D,
2461
+ width: U,
2462
2462
  height: "20px"
2463
2463
  }, null, 8, ["width"])
2464
2464
  ])), 64)),
2465
- $("div", on, [
2466
- p(e(N), {
2465
+ $("div", un, [
2466
+ p(e(V), {
2467
2467
  variant: "secondary",
2468
2468
  disabled: ""
2469
2469
  }, {
@@ -2472,7 +2472,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2472
2472
  ]),
2473
2473
  _: 1
2474
2474
  }),
2475
- p(e(N), {
2475
+ p(e(V), {
2476
2476
  variant: "primary",
2477
2477
  disabled: ""
2478
2478
  }, {
@@ -2483,26 +2483,26 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2483
2483
  })
2484
2484
  ])
2485
2485
  ], 64)) : m("", !0),
2486
- i.value ? (l(), k(Q, { key: 3 }, [
2487
- $("p", un, o(i.value.worker?.alive ? u(a.value.workerRunning, { user: i.value.worker.username }) : a.value.workerStopped), 1),
2488
- $("p", rn, o(u(a.value.limits, { size: i.value.limits.maxInputBytes / 1024, queue: i.value.limits.maxQueued, seconds: i.value.limits.jobTimeoutSeconds })), 1),
2489
- $("p", dn, o(i.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
2490
- $("p", cn, o(u(a.value.ownerLimits, { jobs: i.value.limits.maxOwnerPending, size: i.value.limits.maxOwnerBytes / 1024 })), 1),
2491
- $("div", vn, [
2492
- p(e(N), {
2486
+ i.value ? (l(), k(ee, { key: 3 }, [
2487
+ $("p", rn, o(i.value.worker?.alive ? u(a.value.workerRunning, { user: i.value.worker.username }) : a.value.workerStopped), 1),
2488
+ $("p", dn, o(u(a.value.limits, { size: i.value.limits.maxInputBytes / 1024, queue: i.value.limits.maxQueued, seconds: i.value.limits.jobTimeoutSeconds })), 1),
2489
+ $("p", cn, o(i.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
2490
+ $("p", vn, o(u(a.value.ownerLimits, { jobs: i.value.limits.maxOwnerPending, size: i.value.limits.maxOwnerBytes / 1024 })), 1),
2491
+ $("div", fn, [
2492
+ p(e(V), {
2493
2493
  variant: "secondary",
2494
2494
  disabled: d.value,
2495
- onClick: X[0] || (X[0] = (D) => U.value = !0)
2495
+ onClick: W[0] || (W[0] = (U) => F.value = !0)
2496
2496
  }, {
2497
2497
  default: n(() => [
2498
2498
  h(o(a.value.chooseFile), 1)
2499
2499
  ]),
2500
2500
  _: 1
2501
2501
  }, 8, ["disabled"]),
2502
- p(e(N), {
2502
+ p(e(V), {
2503
2503
  variant: "primary",
2504
- disabled: d.value || !te.value,
2505
- onClick: j
2504
+ disabled: d.value || !H.value,
2505
+ onClick: te
2506
2506
  }, {
2507
2507
  default: n(() => [
2508
2508
  h(o(a.value.submit), 1)
@@ -2510,44 +2510,44 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2510
2510
  _: 1
2511
2511
  }, 8, ["disabled"])
2512
2512
  ]),
2513
- te.value ? (l(), k("p", fn, [
2513
+ H.value ? (l(), k("p", pn, [
2514
2514
  h(o(u(a.value.chosen, { path: "" }).trim()) + " ", 1),
2515
2515
  p(e(Ne), {
2516
- path: `${te.value.folder}/${te.value.relative}`
2516
+ path: `${H.value.folder}/${H.value.relative}`
2517
2517
  }, null, 8, ["path"])
2518
2518
  ])) : m("", !0),
2519
2519
  p(na, {
2520
- open: U.value,
2521
- "onUpdate:open": X[1] || (X[1] = (D) => U.value = D),
2520
+ open: F.value,
2521
+ "onUpdate:open": W[1] || (W[1] = (U) => F.value = U),
2522
2522
  locale: t.ctx.locale,
2523
2523
  name: t.ctx.displayName,
2524
2524
  provider: e(M),
2525
2525
  mode: "file",
2526
2526
  title: a.value.pickerTitle,
2527
2527
  description: a.value.pickerConsent,
2528
- onSelected: O
2528
+ onSelected: q
2529
2529
  }, null, 8, ["open", "locale", "name", "provider", "title", "description"]),
2530
- C.value && i.value.admin ? (l(), y(e(J), {
2530
+ _.value && i.value.admin ? (l(), y(e(Z), {
2531
2531
  key: 1,
2532
2532
  tone: "warning"
2533
2533
  }, {
2534
2534
  default: n(() => [
2535
- $("p", null, o(u(a.value.purgeConfirm, { user: C.value.user, uid: C.value.uid })), 1),
2536
- $("div", pn, [
2537
- p(e(N), {
2535
+ $("p", null, o(u(a.value.purgeConfirm, { user: _.value.user, uid: _.value.uid })), 1),
2536
+ $("div", mn, [
2537
+ p(e(V), {
2538
2538
  variant: "secondary",
2539
2539
  disabled: d.value,
2540
- onClick: ne
2540
+ onClick: J
2541
2541
  }, {
2542
2542
  default: n(() => [
2543
2543
  h(o(a.value.confirmPurge), 1)
2544
2544
  ]),
2545
2545
  _: 1
2546
2546
  }, 8, ["disabled"]),
2547
- p(e(N), {
2547
+ p(e(V), {
2548
2548
  variant: "secondary",
2549
2549
  disabled: d.value,
2550
- onClick: X[2] || (X[2] = (D) => C.value = void 0)
2550
+ onClick: W[2] || (W[2] = (U) => _.value = void 0)
2551
2551
  }, {
2552
2552
  default: n(() => [
2553
2553
  h(o(a.value.keepJobs), 1)
@@ -2558,98 +2558,98 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2558
2558
  ]),
2559
2559
  _: 1
2560
2560
  })) : m("", !0),
2561
- r.value.length ? (l(), k("div", yn, [
2562
- (l(!0), k(Q, null, fe(r.value, (D) => (l(), y(e(Ca), {
2563
- key: D.id,
2564
- title: D.name,
2561
+ r.value.length ? (l(), k("div", bn, [
2562
+ (l(!0), k(ee, null, fe(r.value, (U) => (l(), y(e(Ca), {
2563
+ key: U.id,
2564
+ title: U.name,
2565
2565
  "layout-type": "compact",
2566
- "data-job-state": D.state,
2567
- "data-job-id": D.id
2566
+ "data-job-state": U.state,
2567
+ "data-job-id": U.id
2568
2568
  }, {
2569
2569
  "header-actions": n(() => [
2570
2570
  p(e(Je), {
2571
- tone: ee(D),
2571
+ tone: O(U),
2572
2572
  "data-bg-state": ""
2573
2573
  }, {
2574
2574
  default: n(() => [
2575
- h(o(K(D)), 1)
2575
+ h(o(se(U)), 1)
2576
2576
  ]),
2577
2577
  _: 2
2578
2578
  }, 1032, ["tone"])
2579
2579
  ]),
2580
2580
  default: n(() => [
2581
- $("div", bn, [
2582
- D.progress?.total ? (l(), k("span", gn, o(u(a.value.progressItems, { done: D.progress.done, count: D.progress.total })), 1)) : m("", !0),
2583
- D.progress?.totalBytes ? (l(), k("span", hn, o(u(a.value.progressBytes, { done: e(da)(D.progress.bytes, t.ctx.locale), total: e(da)(D.progress.totalBytes, t.ctx.locale) })), 1)) : m("", !0),
2584
- D.progress?.item ? (l(), k("span", kn, [
2581
+ $("div", gn, [
2582
+ U.progress?.total ? (l(), k("span", hn, o(u(a.value.progressItems, { done: U.progress.done, count: U.progress.total })), 1)) : m("", !0),
2583
+ U.progress?.totalBytes ? (l(), k("span", kn, o(u(a.value.progressBytes, { done: e(da)(U.progress.bytes, t.ctx.locale), total: e(da)(U.progress.totalBytes, t.ctx.locale) })), 1)) : m("", !0),
2584
+ U.progress?.item ? (l(), k("span", _n, [
2585
2585
  h(o(u(a.value.progressItem, { item: "" }).trim()) + " ", 1),
2586
2586
  p(e(Ne), {
2587
- path: D.progress.item
2587
+ path: U.progress.item
2588
2588
  }, null, 8, ["path"])
2589
2589
  ])) : m("", !0),
2590
- i.value.admin && D.submitter ? (l(), k("span", _n, o(u(a.value.owner, { user: D.submitter.user, uid: D.submitter.uid })), 1)) : m("", !0),
2591
- D.scheduleId ? (l(), k("span", wn, o(a.value.scheduledJob), 1)) : m("", !0),
2592
- $("div", xn, [
2593
- i.value.admin && D.submitter ? (l(), y(e(N), {
2590
+ i.value.admin && U.submitter ? (l(), k("span", wn, o(u(a.value.owner, { user: U.submitter.user, uid: U.submitter.uid })), 1)) : m("", !0),
2591
+ U.scheduleId ? (l(), k("span", xn, o(a.value.scheduledJob), 1)) : m("", !0),
2592
+ $("div", Cn, [
2593
+ i.value.admin && U.submitter ? (l(), y(e(V), {
2594
2594
  key: 0,
2595
2595
  variant: "secondary",
2596
2596
  disabled: d.value,
2597
- onClick: (me) => C.value = D.submitter
2597
+ onClick: (me) => _.value = U.submitter
2598
2598
  }, {
2599
2599
  default: n(() => [
2600
2600
  h(o(a.value.purgeOwner), 1)
2601
2601
  ]),
2602
2602
  _: 1
2603
2603
  }, 8, ["disabled", "onClick"])) : m("", !0),
2604
- !R(D) && !D.pauseRequested && !D.delegation_id ? (l(), y(e(N), {
2604
+ !R(U) && !U.pauseRequested && !U.delegation_id ? (l(), y(e(V), {
2605
2605
  key: 1,
2606
2606
  variant: "secondary",
2607
2607
  disabled: d.value,
2608
- onClick: (me) => L(D.id)
2608
+ onClick: (me) => N(U.id)
2609
2609
  }, {
2610
2610
  default: n(() => [
2611
2611
  h(o(a.value.pause), 1)
2612
2612
  ]),
2613
2613
  _: 1
2614
2614
  }, 8, ["disabled", "onClick"])) : m("", !0),
2615
- D.state === "paused" || le(D) ? (l(), y(e(N), {
2615
+ U.state === "paused" || K(U) ? (l(), y(e(V), {
2616
2616
  key: 2,
2617
2617
  variant: "secondary",
2618
2618
  disabled: d.value,
2619
- onClick: (me) => B(D.id)
2619
+ onClick: (me) => L(U.id)
2620
2620
  }, {
2621
2621
  default: n(() => [
2622
2622
  h(o(a.value.resume), 1)
2623
2623
  ]),
2624
2624
  _: 1
2625
2625
  }, 8, ["disabled", "onClick"])) : m("", !0),
2626
- q(D) ? m("", !0) : (l(), y(e(N), {
2626
+ Y(U) ? m("", !0) : (l(), y(e(V), {
2627
2627
  key: 3,
2628
2628
  variant: "secondary",
2629
2629
  disabled: d.value,
2630
- onClick: (me) => Ee(D.id)
2630
+ onClick: (me) => Ee(U.id)
2631
2631
  }, {
2632
2632
  default: n(() => [
2633
2633
  h(o(a.value.cancel), 1)
2634
2634
  ]),
2635
2635
  _: 1
2636
2636
  }, 8, ["disabled", "onClick"])),
2637
- ge(D) ? (l(), y(e(N), {
2637
+ ge(U) ? (l(), y(e(V), {
2638
2638
  key: 4,
2639
2639
  variant: "secondary",
2640
2640
  disabled: d.value,
2641
- onClick: (me) => ye(D)
2641
+ onClick: (me) => ye(U)
2642
2642
  }, {
2643
2643
  default: n(() => [
2644
2644
  h(o(a.value.scheduleCopy), 1)
2645
2645
  ]),
2646
2646
  _: 1
2647
2647
  }, 8, ["disabled", "onClick"])) : m("", !0),
2648
- D.state === "succeeded" ? (l(), y(e(N), {
2648
+ U.state === "succeeded" ? (l(), y(e(V), {
2649
2649
  key: 5,
2650
2650
  variant: "secondary",
2651
2651
  disabled: d.value,
2652
- onClick: (me) => ve(D)
2652
+ onClick: (me) => ve(U)
2653
2653
  }, {
2654
2654
  default: n(() => [
2655
2655
  h(o(a.value.result), 1)
@@ -2661,7 +2661,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2661
2661
  ]),
2662
2662
  _: 2
2663
2663
  }, 1032, ["title", "data-job-state", "data-job-id"]))), 128))
2664
- ])) : (l(), k("p", mn, o(a.value.noJobs), 1)),
2664
+ ])) : (l(), k("p", yn, o(a.value.noJobs), 1)),
2665
2665
  p(e(ke), {
2666
2666
  "data-bg-schedules": "",
2667
2667
  class: "bg-schedules",
@@ -2670,51 +2670,51 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2670
2670
  collapsible: !1
2671
2671
  }, {
2672
2672
  default: n(() => [
2673
- w.value ? (l(), y(e(Me), {
2673
+ x.value ? (l(), y(e(Me), {
2674
2674
  key: 0,
2675
2675
  class: "bg-schedule-form",
2676
2676
  onSubmit: Oe(Ce, ["prevent"])
2677
2677
  }, {
2678
2678
  default: n(() => [
2679
- $("p", null, o(u(a.value.scheduleSource, { name: w.value.name })), 1),
2679
+ $("p", null, o(u(a.value.scheduleSource, { name: x.value.name })), 1),
2680
2680
  p(e(Pe), {
2681
2681
  label: a.value.interval
2682
2682
  }, {
2683
2683
  default: n(() => [
2684
2684
  p(e(ba), {
2685
- modelValue: x.value,
2686
- "onUpdate:modelValue": X[3] || (X[3] = (D) => x.value = D),
2685
+ modelValue: C.value,
2686
+ "onUpdate:modelValue": W[3] || (W[3] = (U) => C.value = U),
2687
2687
  "data-schedule-interval": "",
2688
- options: W.value,
2688
+ options: Q.value,
2689
2689
  disabled: d.value
2690
2690
  }, null, 8, ["modelValue", "options", "disabled"])
2691
2691
  ]),
2692
2692
  _: 1
2693
2693
  }, 8, ["label"]),
2694
- p(e(ht), {
2695
- modelValue: z.value,
2696
- "onUpdate:modelValue": X[4] || (X[4] = (D) => z.value = D),
2694
+ p(e(kt), {
2695
+ modelValue: T.value,
2696
+ "onUpdate:modelValue": W[4] || (W[4] = (U) => T.value = U),
2697
2697
  "data-schedule-consent": "",
2698
2698
  disabled: d.value,
2699
2699
  label: a.value.scheduleConsent
2700
2700
  }, null, 8, ["modelValue", "disabled", "label"]),
2701
2701
  p(e(la), null, {
2702
2702
  default: n(() => [
2703
- p(e(N), {
2703
+ p(e(V), {
2704
2704
  type: "submit",
2705
2705
  variant: "primary",
2706
- disabled: d.value || !z.value
2706
+ disabled: d.value || !T.value
2707
2707
  }, {
2708
2708
  default: n(() => [
2709
2709
  h(o(a.value.createSchedule), 1)
2710
2710
  ]),
2711
2711
  _: 1
2712
2712
  }, 8, ["disabled"]),
2713
- p(e(N), {
2713
+ p(e(V), {
2714
2714
  type: "button",
2715
2715
  variant: "secondary",
2716
2716
  disabled: d.value,
2717
- onClick: X[5] || (X[5] = (D) => w.value = void 0)
2717
+ onClick: W[5] || (W[5] = (U) => x.value = void 0)
2718
2718
  }, {
2719
2719
  default: n(() => [
2720
2720
  h(o(a.value.cancel), 1)
@@ -2727,30 +2727,30 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2727
2727
  ]),
2728
2728
  _: 1
2729
2729
  })) : m("", !0),
2730
- c.value.length ? (l(), k("div", $n, [
2731
- (l(!0), k(Q, null, fe(c.value, (D) => (l(), y(e(Ca), {
2732
- key: D.id,
2733
- title: D.name,
2730
+ c.value.length ? (l(), k("div", Sn, [
2731
+ (l(!0), k(ee, null, fe(c.value, (U) => (l(), y(e(Ca), {
2732
+ key: U.id,
2733
+ title: U.name,
2734
2734
  "layout-type": "compact",
2735
- "data-schedule-id": D.id
2735
+ "data-schedule-id": U.id
2736
2736
  }, {
2737
2737
  "header-actions": n(() => [
2738
2738
  p(e(Je), {
2739
- tone: D.enabled ? "success" : "neutral",
2739
+ tone: U.enabled ? "success" : "neutral",
2740
2740
  "data-bg-state": ""
2741
2741
  }, {
2742
2742
  default: n(() => [
2743
- h(o(D.enabled ? a.value.scheduleOn : a.value.scheduleOff), 1)
2743
+ h(o(U.enabled ? a.value.scheduleOn : a.value.scheduleOff), 1)
2744
2744
  ]),
2745
2745
  _: 2
2746
2746
  }, 1032, ["tone"])
2747
2747
  ]),
2748
2748
  default: n(() => [
2749
- $("div", Sn, [
2750
- i.value.admin ? (l(), k("span", Pn, o(u(a.value.owner, { user: D.owner.user, uid: D.owner.uid })), 1)) : m("", !0),
2751
- D.enabled ? (l(), k("span", En, o(u(a.value.nextRun, { time: ie(D.nextAt) })), 1)) : m("", !0),
2752
- $("span", Tn, o(u(a.value.missedRuns, { count: D.missed })), 1),
2753
- D.reason === "worker-changed" ? (l(), y(e(J), {
2749
+ $("div", Pn, [
2750
+ i.value.admin ? (l(), k("span", En, o(u(a.value.owner, { user: U.owner.user, uid: U.owner.uid })), 1)) : m("", !0),
2751
+ U.enabled ? (l(), k("span", Tn, o(u(a.value.nextRun, { time: oe(U.nextAt) })), 1)) : m("", !0),
2752
+ $("span", An, o(u(a.value.missedRuns, { count: U.missed })), 1),
2753
+ U.reason === "worker-changed" ? (l(), y(e(Z), {
2754
2754
  key: 2,
2755
2755
  tone: "warning"
2756
2756
  }, {
@@ -2758,7 +2758,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2758
2758
  h(o(a.value.revisionChanged), 1)
2759
2759
  ]),
2760
2760
  _: 1
2761
- })) : D.reason === "input-unavailable" ? (l(), y(e(J), {
2761
+ })) : U.reason === "input-unavailable" ? (l(), y(e(Z), {
2762
2762
  key: 3,
2763
2763
  tone: "warning"
2764
2764
  }, {
@@ -2768,31 +2768,31 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2768
2768
  _: 1
2769
2769
  })) : m("", !0),
2770
2770
  $("div", zn, [
2771
- D.enabled ? (l(), y(e(N), {
2771
+ U.enabled ? (l(), y(e(V), {
2772
2772
  key: 0,
2773
2773
  variant: "secondary",
2774
2774
  disabled: d.value,
2775
- onClick: (me) => $e(D.id)
2775
+ onClick: (me) => $e(U.id)
2776
2776
  }, {
2777
2777
  default: n(() => [
2778
2778
  h(o(a.value.disableSchedule), 1)
2779
2779
  ]),
2780
2780
  _: 1
2781
- }, 8, ["disabled", "onClick"])) : i.value.admin ? (l(), y(e(N), {
2781
+ }, 8, ["disabled", "onClick"])) : i.value.admin ? (l(), y(e(V), {
2782
2782
  key: 1,
2783
2783
  variant: "secondary",
2784
2784
  disabled: d.value,
2785
- onClick: (me) => T.value = D
2785
+ onClick: (me) => A.value = U
2786
2786
  }, {
2787
2787
  default: n(() => [
2788
2788
  h(o(a.value.enableSchedule), 1)
2789
2789
  ]),
2790
2790
  _: 1
2791
2791
  }, 8, ["disabled", "onClick"])) : m("", !0),
2792
- p(e(N), {
2792
+ p(e(V), {
2793
2793
  variant: "secondary",
2794
2794
  disabled: d.value,
2795
- onClick: (me) => S.value = D
2795
+ onClick: (me) => S.value = U
2796
2796
  }, {
2797
2797
  default: n(() => [
2798
2798
  h(o(a.value.deleteSchedule), 1)
@@ -2804,28 +2804,28 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2804
2804
  ]),
2805
2805
  _: 2
2806
2806
  }, 1032, ["title", "data-schedule-id"]))), 128))
2807
- ])) : (l(), k("p", Cn, o(a.value.noSchedules), 1)),
2808
- S.value ? (l(), y(e(J), {
2807
+ ])) : (l(), k("p", $n, o(a.value.noSchedules), 1)),
2808
+ S.value ? (l(), y(e(Z), {
2809
2809
  key: 3,
2810
2810
  tone: "warning"
2811
2811
  }, {
2812
2812
  default: n(() => [
2813
2813
  $("p", null, o(u(a.value.deleteScheduleConsent, { name: S.value.name })), 1),
2814
- $("div", An, [
2815
- p(e(N), {
2814
+ $("div", Rn, [
2815
+ p(e(V), {
2816
2816
  variant: "danger",
2817
2817
  disabled: d.value,
2818
- onClick: Y
2818
+ onClick: j
2819
2819
  }, {
2820
2820
  default: n(() => [
2821
2821
  h(o(a.value.confirmDeleteSchedule), 1)
2822
2822
  ]),
2823
2823
  _: 1
2824
2824
  }, 8, ["disabled"]),
2825
- p(e(N), {
2825
+ p(e(V), {
2826
2826
  variant: "secondary",
2827
2827
  disabled: d.value,
2828
- onClick: X[6] || (X[6] = (D) => S.value = void 0)
2828
+ onClick: W[6] || (W[6] = (U) => S.value = void 0)
2829
2829
  }, {
2830
2830
  default: n(() => [
2831
2831
  h(o(a.value.cancel), 1)
@@ -2836,27 +2836,27 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2836
2836
  ]),
2837
2837
  _: 1
2838
2838
  })) : m("", !0),
2839
- T.value ? (l(), y(e(J), {
2839
+ A.value ? (l(), y(e(Z), {
2840
2840
  key: 4,
2841
2841
  tone: "warning"
2842
2842
  }, {
2843
2843
  default: n(() => [
2844
- $("p", null, o(u(a.value.enableScheduleConsent, { name: T.value.name })), 1),
2845
- $("div", Rn, [
2846
- p(e(N), {
2844
+ $("p", null, o(u(a.value.enableScheduleConsent, { name: A.value.name })), 1),
2845
+ $("div", In, [
2846
+ p(e(V), {
2847
2847
  variant: "primary",
2848
2848
  disabled: d.value,
2849
- onClick: ue
2849
+ onClick: ie
2850
2850
  }, {
2851
2851
  default: n(() => [
2852
2852
  h(o(a.value.confirmEnableSchedule), 1)
2853
2853
  ]),
2854
2854
  _: 1
2855
2855
  }, 8, ["disabled"]),
2856
- p(e(N), {
2856
+ p(e(V), {
2857
2857
  variant: "secondary",
2858
2858
  disabled: d.value,
2859
- onClick: X[7] || (X[7] = (D) => T.value = void 0)
2859
+ onClick: W[7] || (W[7] = (U) => A.value = void 0)
2860
2860
  }, {
2861
2861
  default: n(() => [
2862
2862
  h(o(a.value.cancel), 1)
@@ -2870,10 +2870,10 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2870
2870
  ]),
2871
2871
  _: 1
2872
2872
  }, 8, ["title", "description"]),
2873
- H.value ? (l(), y(e(ra), {
2873
+ X.value ? (l(), y(e(ra), {
2874
2874
  key: 4,
2875
- href: H.value,
2876
- download: F.value
2875
+ href: X.value,
2876
+ download: B.value
2877
2877
  }, {
2878
2878
  default: n(() => [
2879
2879
  h(o(a.value.download), 1)
@@ -2886,13 +2886,13 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2886
2886
  _: 1
2887
2887
  }, 8, ["aria-busy", "title", "description"]));
2888
2888
  }
2889
- }), Us = /* @__PURE__ */ pe(In, [["__scopeId", "data-v-85ff7ec5"]]), Un = ["inert", "aria-hidden"], Dn = {
2889
+ }), Ds = /* @__PURE__ */ pe(Un, [["__scopeId", "data-v-85ff7ec5"]]), Dn = ["inert", "aria-hidden"], Vn = {
2890
2890
  key: 3,
2891
2891
  class: "executor-approval"
2892
- }, Vn = {
2892
+ }, Nn = {
2893
2893
  key: 0,
2894
2894
  class: "executor-brand"
2895
- }, Nn = ["src"], Ln = /* @__PURE__ */ ce({
2895
+ }, Ln = ["src"], Bn = /* @__PURE__ */ ce({
2896
2896
  __name: "ExecutorApproval",
2897
2897
  props: {
2898
2898
  admin: { type: Boolean },
@@ -2902,59 +2902,59 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2902
2902
  preload: { type: Boolean }
2903
2903
  },
2904
2904
  setup(t) {
2905
- const v = t, s = Te(Ye, void 0), a = _(() => Re(v.locale)), u = b("checking"), i = b(), r = _(() => {
2906
- const x = v.ctx;
2907
- return (x?.fullPage ?? (x?.host ? Ea({ host: x.host }) : !1)) && x?.displayName ? x : void 0;
2905
+ const v = t, s = Te(Ye, void 0), a = w(() => Re(v.locale)), u = b("checking"), i = b(), r = w(() => {
2906
+ const C = v.ctx;
2907
+ return (C?.fullPage ?? (C?.host ? Ea({ host: C.host }) : !1)) && C?.displayName ? C : void 0;
2908
2908
  });
2909
- function f(x) {
2910
- i.value = x, u.value = x.state;
2909
+ function f(C) {
2910
+ i.value = C, u.value = C.state;
2911
2911
  }
2912
2912
  let g = !1, d;
2913
2913
  async function c() {
2914
2914
  try {
2915
- const x = await s.status();
2916
- g || f(x);
2915
+ const C = await s.status();
2916
+ g || f(C);
2917
2917
  } catch {
2918
2918
  g || (i.value = void 0, u.value = "blocked");
2919
2919
  }
2920
2920
  }
2921
- const w = _(() => Se(i.value)), z = _(() => !!v.preload && !!s && (u.value === "ready" || u.value === "checking"));
2922
- return Fe(Na, _(() => z.value && u.value === "checking")), He(() => w.value, c), xe(() => {
2923
- s && (s.subscribe?.((x) => {
2924
- !g && !ea(x) && f(x);
2921
+ const x = w(() => Se(i.value)), T = w(() => !!v.preload && !!s && (u.value === "ready" || u.value === "checking"));
2922
+ return Fe(Na, w(() => T.value && u.value === "checking")), He(() => x.value, c), xe(() => {
2923
+ s && (s.subscribe?.((C) => {
2924
+ !g && !ea(C) && f(C);
2925
2925
  }), d = v.ctx?.reopen(() => {
2926
2926
  c();
2927
2927
  }), c());
2928
2928
  }), _e(() => {
2929
2929
  g = !0, d?.();
2930
- }), (x, S) => (l(), k(Q, null, [
2931
- z.value ? (l(), k("div", {
2930
+ }), (C, S) => (l(), k(ee, null, [
2931
+ T.value ? (l(), k("div", {
2932
2932
  key: 0,
2933
2933
  class: De(["executor-pages", { "executor-preloading": u.value === "checking" }]),
2934
2934
  inert: u.value === "checking" || void 0,
2935
2935
  "aria-hidden": u.value === "checking" ? "true" : void 0
2936
2936
  }, [
2937
- he(x.$slots, "default", {}, void 0, !0)
2938
- ], 10, Un)) : !e(s) || u.value === "ready" ? he(x.$slots, "default", {}, void 0, !0, 1) : m("", !0),
2937
+ he(C.$slots, "default", {}, void 0, !0)
2938
+ ], 10, Dn)) : !e(s) || u.value === "ready" ? he(C.$slots, "default", {}, void 0, !0, 1) : m("", !0),
2939
2939
  e(s) && u.value === "checking" ? (l(), y(e(Ua), {
2940
2940
  key: 2,
2941
2941
  text: a.value.loading
2942
- }, null, 8, ["text"])) : e(s) && u.value !== "ready" ? (l(), k("div", Dn, [
2943
- r.value ? (l(), k("header", Vn, [
2942
+ }, null, 8, ["text"])) : e(s) && u.value !== "ready" ? (l(), k("div", Vn, [
2943
+ r.value ? (l(), k("header", Nn, [
2944
2944
  r.value.appIcon ? (l(), k("img", {
2945
2945
  key: 0,
2946
2946
  src: r.value.appIcon,
2947
2947
  alt: ""
2948
- }, null, 8, Nn)) : m("", !0),
2948
+ }, null, 8, Ln)) : m("", !0),
2949
2949
  $("span", null, o(r.value.displayName), 1)
2950
2950
  ])) : m("", !0),
2951
- w.value ? (l(), y(e(J), {
2951
+ x.value ? (l(), y(e(Z), {
2952
2952
  key: 1,
2953
2953
  tone: "info",
2954
2954
  role: "status"
2955
2955
  }, {
2956
2956
  default: n(() => [
2957
- h(o(e(Le)(w.value, t.locale)), 1)
2957
+ h(o(e(Le)(x.value, t.locale)), 1)
2958
2958
  ]),
2959
2959
  _: 1
2960
2960
  })) : t.admin ? (l(), y(qa, {
@@ -2972,7 +2972,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2972
2972
  locale: t.locale,
2973
2973
  purpose: t.purpose,
2974
2974
  layout: "page"
2975
- }, null, 8, ["locale", "purpose"])) : (l(), y(e(J), {
2975
+ }, null, 8, ["locale", "purpose"])) : (l(), y(e(Z), {
2976
2976
  key: 4,
2977
2977
  tone: "info"
2978
2978
  }, {
@@ -2984,113 +2984,113 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
2984
2984
  ])) : m("", !0)
2985
2985
  ], 64));
2986
2986
  }
2987
- }), Ds = /* @__PURE__ */ pe(Ln, [["__scopeId", "data-v-da0bbc2c"]]), Bn = {
2987
+ }), Vs = /* @__PURE__ */ pe(Bn, [["__scopeId", "data-v-da0bbc2c"]]), Fn = {
2988
2988
  key: 2,
2989
2989
  role: "status"
2990
- }, Fn = {
2990
+ }, qn = {
2991
2991
  key: 3,
2992
2992
  role: "status"
2993
- }, qn = {
2993
+ }, On = {
2994
2994
  key: 0,
2995
2995
  role: "status",
2996
2996
  class: "destination"
2997
- }, On = {
2997
+ }, Mn = {
2998
2998
  key: 0,
2999
2999
  "data-placeholder-row": ""
3000
- }, Mn = { key: 1 }, Kn = {
3000
+ }, Kn = { key: 1 }, Hn = {
3001
3001
  key: 2,
3002
3002
  role: "list"
3003
- }, Hn = {
3003
+ }, Xn = {
3004
3004
  key: 0,
3005
3005
  "data-placeholder-row": ""
3006
- }, Xn = { key: 1 }, Gn = {
3006
+ }, Gn = { key: 1 }, Wn = {
3007
3007
  key: 2,
3008
3008
  role: "list"
3009
- }, Wn = /* @__PURE__ */ ce({
3009
+ }, Jn = /* @__PURE__ */ ce({
3010
3010
  __name: "DelegatePanel",
3011
3011
  props: {
3012
3012
  ctx: {}
3013
3013
  },
3014
3014
  setup(t, { expose: v }) {
3015
- const s = t, a = _(() => Re(s.ctx.locale)), u = _(() => ma(s.ctx.locale)), i = za(s.ctx), r = b(), f = b([]), g = b([]), d = b(!1), c = b(), w = b(""), z = b(!1), x = b(""), S = b(""), T = b("");
3016
- let C = !1, E, A;
3017
- const Z = b();
3018
- qe([S, x, T], () => {
3019
- A = void 0;
3015
+ const s = t, a = w(() => Re(s.ctx.locale)), u = w(() => ma(s.ctx.locale)), i = Aa(s.ctx), r = b(), f = b([]), g = b([]), d = b(!1), c = b(), x = b(""), T = b(!1), C = b(""), S = b(""), A = b("");
3016
+ let _ = !1, E, z;
3017
+ const ae = b();
3018
+ qe([S, C, A], () => {
3019
+ z = void 0;
3020
3020
  }, { flush: "sync" });
3021
- const U = (G) => ["queued", "running", "waiting_executor"].includes(G.state), te = { waiting_executor: "info", queued: "info", running: "info", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }, H = _(() => g.value.some((G) => G.state === "waiting_executor")), F = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], M = _(() => H.value && F.includes(c.value?.code ?? "")), V = _(() => !r.value && !c.value && !Z.value), P = _(() => r.value && r.value.state !== "ready" && !(H.value && r.value.state === "needs-admin-approval" && F.includes(r.value.reason ?? "")));
3021
+ const F = (G) => ["queued", "running", "waiting_executor"].includes(G.state), H = { waiting_executor: "info", queued: "info", running: "info", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }, X = w(() => g.value.some((G) => G.state === "waiting_executor")), B = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], M = w(() => X.value && B.includes(c.value?.code ?? "")), D = w(() => !r.value && !c.value && !ae.value), P = w(() => r.value && r.value.state !== "ready" && !(X.value && r.value.state === "needs-admin-approval" && B.includes(r.value.reason ?? "")));
3022
3022
  async function R() {
3023
- if (C) return;
3024
- const [G, ne, W] = await Promise.allSettled([s.ctx.call("delegate.status"), s.ctx.call("delegate.list"), s.ctx.call("delegate.jobs.list")]);
3025
- if (C) return;
3026
- G.status === "fulfilled" && (r.value = G.value), ne.status === "fulfilled" && (f.value = (ne.value.delegations ?? []).filter((Ce) => !Ce.revoked)), W.status === "fulfilled" && (g.value = W.value.jobs ?? []);
3027
- const ye = [G, ne, W].find((Ce) => Ce.status === "rejected");
3028
- if (Z.value = ye && Se(ye.reason), ye && !Z.value) throw ye.reason;
3029
- }
3030
- async function q(G) {
3031
- if (!(d.value || C)) {
3023
+ if (_) return;
3024
+ const [G, J, Q] = await Promise.allSettled([s.ctx.call("delegate.status"), s.ctx.call("delegate.list"), s.ctx.call("delegate.jobs.list")]);
3025
+ if (_) return;
3026
+ G.status === "fulfilled" && (r.value = G.value), J.status === "fulfilled" && (f.value = (J.value.delegations ?? []).filter((Ce) => !Ce.revoked)), Q.status === "fulfilled" && (g.value = Q.value.jobs ?? []);
3027
+ const ye = [G, J, Q].find((Ce) => Ce.status === "rejected");
3028
+ if (ae.value = ye && Se(ye.reason), ye && !ae.value) throw ye.reason;
3029
+ }
3030
+ async function Y(G) {
3031
+ if (!(d.value || _)) {
3032
3032
  d.value = !0, c.value = void 0;
3033
3033
  try {
3034
3034
  await G();
3035
- } catch (ne) {
3036
- C || (c.value = ne);
3035
+ } catch (J) {
3036
+ _ || (c.value = J);
3037
3037
  } finally {
3038
- C || (d.value = !1);
3038
+ _ || (d.value = !1);
3039
3039
  }
3040
3040
  }
3041
3041
  }
3042
- const le = () => q(R);
3043
- He(() => Z.value, le);
3044
- const K = (G) => q(async () => {
3042
+ const K = () => Y(R);
3043
+ He(() => ae.value, K);
3044
+ const se = (G) => Y(async () => {
3045
3045
  await s.ctx.call("delegate.revoke", { delegation_id: G }), await R();
3046
- }), ee = (G) => q(async () => {
3047
- const ne = await s.ctx.call("delegate.jobs.cancel", { id: G });
3048
- C || (w.value = ne.revocation_pending ? a.value.pending : ""), await R();
3049
- }), se = _(() => r.value?.state === "ready" && !!x.value && !!S.value && !!T.value), re = () => q(async () => {
3050
- se.value && (await s.ctx.call("delegate.jobs.submit", { key: A ?? (A = crypto.randomUUID()), url: S.value, dest: x.value, name: T.value }), C || (S.value = "", T.value = "", x.value = ""), await R());
3051
- }), oe = (G) => {
3052
- const ne = new Date(G);
3053
- return Number.isNaN(ne.getTime()) ? "—" : ne.toLocaleString(s.ctx.locale);
3046
+ }), O = (G) => Y(async () => {
3047
+ const J = await s.ctx.call("delegate.jobs.cancel", { id: G });
3048
+ _ || (x.value = J.revocation_pending ? a.value.pending : ""), await R();
3049
+ }), ne = w(() => r.value?.state === "ready" && !!C.value && !!S.value && !!A.value), ue = () => Y(async () => {
3050
+ ne.value && (await s.ctx.call("delegate.jobs.submit", { key: z ?? (z = crypto.randomUUID()), url: S.value, dest: C.value, name: A.value }), _ || (S.value = "", A.value = "", C.value = ""), await R());
3051
+ }), re = (G) => {
3052
+ const J = new Date(G);
3053
+ return Number.isNaN(J.getTime()) ? "—" : J.toLocaleString(s.ctx.locale);
3054
3054
  };
3055
- return v({ refresh: le }), xe(() => {
3056
- le(), E = setInterval(() => {
3057
- g.value.some(U) && le();
3055
+ return v({ refresh: K }), xe(() => {
3056
+ K(), E = setInterval(() => {
3057
+ g.value.some(F) && K();
3058
3058
  }, 3e3);
3059
3059
  }), _e(() => {
3060
- C = !0, E && clearInterval(E), i.dispose();
3061
- }), (G, ne) => (l(), y(e(ke), {
3060
+ _ = !0, E && clearInterval(E), i.dispose();
3061
+ }), (G, J) => (l(), y(e(ke), {
3062
3062
  title: a.value.title,
3063
3063
  description: a.value.help,
3064
3064
  collapsible: !1,
3065
- "aria-busy": d.value || V.value,
3065
+ "aria-busy": d.value || D.value,
3066
3066
  class: "delegate-panel"
3067
3067
  }, {
3068
3068
  default: n(() => [
3069
- c.value && !M.value ? (l(), y(e(J), {
3069
+ c.value && !M.value ? (l(), y(e(Z), {
3070
3070
  key: 0,
3071
3071
  tone: "danger",
3072
3072
  role: "alert"
3073
3073
  }, {
3074
3074
  default: n(() => [
3075
- h(o(e(Za)(c.value, t.ctx.locale) ?? e(ja)(c.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
3075
+ h(o(e(ja)(c.value, t.ctx.locale) ?? e(et)(c.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
3076
3076
  ]),
3077
3077
  _: 1
3078
3078
  })) : m("", !0),
3079
- Z.value ? (l(), y(e(J), {
3079
+ ae.value ? (l(), y(e(Z), {
3080
3080
  key: 1,
3081
3081
  tone: "info",
3082
3082
  role: "status"
3083
3083
  }, {
3084
3084
  default: n(() => [
3085
- h(o(e(Le)(Z.value, t.ctx.locale)), 1)
3085
+ h(o(e(Le)(ae.value, t.ctx.locale)), 1)
3086
3086
  ]),
3087
3087
  _: 1
3088
3088
  })) : m("", !0),
3089
- w.value ? (l(), k("p", Bn, o(w.value), 1)) : m("", !0),
3090
- P.value ? (l(), k("p", Fn, o(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : m("", !0),
3089
+ x.value ? (l(), k("p", Fn, o(x.value), 1)) : m("", !0),
3090
+ P.value ? (l(), k("p", qn, o(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : m("", !0),
3091
3091
  p(e(Me), {
3092
3092
  direction: "vertical",
3093
- onSubmit: Oe(re, ["prevent"])
3093
+ onSubmit: Oe(ue, ["prevent"])
3094
3094
  }, {
3095
3095
  default: n(() => [
3096
3096
  p(e(Pe), {
@@ -3098,10 +3098,10 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3098
3098
  "label-for": "delegate-url"
3099
3099
  }, {
3100
3100
  default: n(() => [
3101
- p(e(Ae), {
3101
+ p(e(ze), {
3102
3102
  id: "delegate-url",
3103
3103
  modelValue: S.value,
3104
- "onUpdate:modelValue": ne[0] || (ne[0] = (W) => S.value = W),
3104
+ "onUpdate:modelValue": J[0] || (J[0] = (Q) => S.value = Q),
3105
3105
  type: "url",
3106
3106
  disabled: d.value || r.value?.state !== "ready"
3107
3107
  }, null, 8, ["modelValue", "disabled"])
@@ -3113,10 +3113,10 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3113
3113
  "label-for": "delegate-name"
3114
3114
  }, {
3115
3115
  default: n(() => [
3116
- p(e(Ae), {
3116
+ p(e(ze), {
3117
3117
  id: "delegate-name",
3118
- modelValue: T.value,
3119
- "onUpdate:modelValue": ne[1] || (ne[1] = (W) => T.value = W),
3118
+ modelValue: A.value,
3119
+ "onUpdate:modelValue": J[1] || (J[1] = (Q) => A.value = Q),
3120
3120
  "data-file-name": "",
3121
3121
  disabled: d.value || r.value?.state !== "ready"
3122
3122
  }, null, 8, ["modelValue", "disabled"])
@@ -3124,27 +3124,27 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3124
3124
  _: 1
3125
3125
  }, 8, ["label"]),
3126
3126
  $("p", null, o(a.value.size), 1),
3127
- x.value ? (l(), k("p", qn, [
3127
+ C.value ? (l(), k("p", On, [
3128
3128
  h(o(a.value.destination) + o(u.value), 1),
3129
- p(e(Ne), { path: x.value }, null, 8, ["path"])
3129
+ p(e(Ne), { path: C.value }, null, 8, ["path"])
3130
3130
  ])) : m("", !0),
3131
3131
  p(e(la), null, {
3132
3132
  default: n(() => [
3133
- p(e(N), {
3133
+ p(e(V), {
3134
3134
  type: "button",
3135
3135
  variant: "secondary",
3136
3136
  disabled: d.value || r.value?.state !== "ready",
3137
- onClick: ne[2] || (ne[2] = (W) => z.value = !0)
3137
+ onClick: J[2] || (J[2] = (Q) => T.value = !0)
3138
3138
  }, {
3139
3139
  default: n(() => [
3140
3140
  h(o(a.value.choose), 1)
3141
3141
  ]),
3142
3142
  _: 1
3143
3143
  }, 8, ["disabled"]),
3144
- p(e(N), {
3144
+ p(e(V), {
3145
3145
  type: "submit",
3146
3146
  variant: "primary",
3147
- disabled: d.value || !se.value
3147
+ disabled: d.value || !ne.value
3148
3148
  }, {
3149
3149
  default: n(() => [
3150
3150
  h(o(a.value.submit), 1)
@@ -3158,13 +3158,13 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3158
3158
  _: 1
3159
3159
  }),
3160
3160
  p(na, {
3161
- open: z.value,
3162
- "onUpdate:open": ne[3] || (ne[3] = (W) => z.value = W),
3161
+ open: T.value,
3162
+ "onUpdate:open": J[3] || (J[3] = (Q) => T.value = Q),
3163
3163
  locale: t.ctx.locale,
3164
3164
  name: t.ctx.displayName,
3165
3165
  provider: e(i),
3166
3166
  mode: "folder",
3167
- onSelected: ne[4] || (ne[4] = (W) => x.value = W)
3167
+ onSelected: J[4] || (J[4] = (Q) => C.value = Q)
3168
3168
  }, null, 8, ["open", "locale", "name", "provider"]),
3169
3169
  p(e(ke), {
3170
3170
  title: a.value.downloads,
@@ -3172,38 +3172,38 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3172
3172
  class: "delegate-group"
3173
3173
  }, {
3174
3174
  default: n(() => [
3175
- V.value ? (l(), k("p", On, [
3175
+ D.value ? (l(), k("p", Mn, [
3176
3176
  p(e(Ve), {
3177
3177
  width: "12rem",
3178
3178
  height: "20px"
3179
3179
  })
3180
- ])) : !g.value.length && !c.value ? (l(), k("p", Mn, o(a.value.noJobs), 1)) : (l(), k("div", Kn, [
3181
- (l(!0), k(Q, null, fe(g.value, (W) => (l(), y(e($a), {
3182
- key: W.id,
3183
- title: W.name,
3184
- "data-job-state": W.state
3180
+ ])) : !g.value.length && !c.value ? (l(), k("p", Kn, o(a.value.noJobs), 1)) : (l(), k("div", Hn, [
3181
+ (l(!0), k(ee, null, fe(g.value, (Q) => (l(), y(e($a), {
3182
+ key: Q.id,
3183
+ title: Q.name,
3184
+ "data-job-state": Q.state
3185
3185
  }, ta({
3186
3186
  meta: n(() => [
3187
3187
  p(e(Je), {
3188
- tone: te[W.state],
3189
- role: W.state === "waiting_executor" ? "status" : void 0,
3188
+ tone: H[Q.state],
3189
+ role: Q.state === "waiting_executor" ? "status" : void 0,
3190
3190
  "data-job-badge": ""
3191
3191
  }, {
3192
3192
  default: n(() => [
3193
- h(o(a.value[W.state]), 1)
3193
+ h(o(a.value[Q.state]), 1)
3194
3194
  ]),
3195
3195
  _: 2
3196
3196
  }, 1032, ["tone", "role"])
3197
3197
  ]),
3198
3198
  _: 2
3199
3199
  }, [
3200
- U(W) ? {
3200
+ F(Q) ? {
3201
3201
  name: "actions",
3202
3202
  fn: n(() => [
3203
- p(e(N), {
3203
+ p(e(V), {
3204
3204
  variant: "secondary",
3205
3205
  disabled: d.value,
3206
- onClick: (ye) => ee(W.id)
3206
+ onClick: (ye) => O(Q.id)
3207
3207
  }, {
3208
3208
  default: n(() => [
3209
3209
  h(o(a.value.cancel), 1)
@@ -3224,28 +3224,28 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3224
3224
  class: "delegate-group"
3225
3225
  }, {
3226
3226
  default: n(() => [
3227
- V.value ? (l(), k("p", Hn, [
3227
+ D.value ? (l(), k("p", Xn, [
3228
3228
  p(e(Ve), {
3229
3229
  width: "12rem",
3230
3230
  height: "20px"
3231
3231
  })
3232
- ])) : !f.value.length && !c.value ? (l(), k("p", Xn, o(a.value.noDelegations), 1)) : (l(), k("div", Gn, [
3233
- (l(!0), k(Q, null, fe(f.value, (W) => (l(), y(e($a), {
3234
- key: W.delegation_id
3232
+ ])) : !f.value.length && !c.value ? (l(), k("p", Gn, o(a.value.noDelegations), 1)) : (l(), k("div", Wn, [
3233
+ (l(!0), k(ee, null, fe(f.value, (Q) => (l(), y(e($a), {
3234
+ key: Q.delegation_id
3235
3235
  }, {
3236
3236
  title: n(() => [
3237
3237
  p(e(Ne), {
3238
- path: W.path
3238
+ path: Q.path
3239
3239
  }, null, 8, ["path"])
3240
3240
  ]),
3241
3241
  description: n(() => [
3242
- h(o(a.value.expires) + o(u.value) + o(oe(W.expires_at)), 1)
3242
+ h(o(a.value.expires) + o(u.value) + o(re(Q.expires_at)), 1)
3243
3243
  ]),
3244
3244
  actions: n(() => [
3245
- p(e(N), {
3245
+ p(e(V), {
3246
3246
  variant: "secondary",
3247
3247
  disabled: d.value,
3248
- onClick: (ye) => K(W.delegation_id)
3248
+ onClick: (ye) => se(Q.delegation_id)
3249
3249
  }, {
3250
3250
  default: n(() => [
3251
3251
  h(o(a.value.revoke), 1)
@@ -3263,19 +3263,19 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3263
3263
  _: 1
3264
3264
  }, 8, ["title", "description", "aria-busy"]));
3265
3265
  }
3266
- }), Vs = /* @__PURE__ */ pe(Wn, [["__scopeId", "data-v-27a7b902"]]), Jn = { class: "save-alert" }, Yn = { "data-save-error": "" }, Qn = { class: "save-alert" }, Zn = {
3266
+ }), Ns = /* @__PURE__ */ pe(Jn, [["__scopeId", "data-v-27a7b902"]]), Yn = { class: "save-alert" }, Qn = { "data-save-error": "" }, Zn = { class: "save-alert" }, jn = {
3267
3267
  key: 0,
3268
3268
  class: "save-reason"
3269
- }, jn = {
3269
+ }, es = {
3270
3270
  key: 0,
3271
3271
  class: "save-reason"
3272
- }, es = { class: "save-alert" }, as = {
3272
+ }, as = { class: "save-alert" }, ts = {
3273
3273
  key: 0,
3274
3274
  class: "save-help"
3275
- }, ts = { class: "save-actions" }, ls = {
3275
+ }, ls = { class: "save-actions" }, ns = {
3276
3276
  key: 1,
3277
3277
  class: "save-none"
3278
- }, ns = /* @__PURE__ */ ce({
3278
+ }, ss = /* @__PURE__ */ ce({
3279
3279
  __name: "BackgroundSaveSettings",
3280
3280
  props: {
3281
3281
  sdk: {},
@@ -3288,107 +3288,107 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3288
3288
  },
3289
3289
  emits: ["authorized", "confirmed", "destinations"],
3290
3290
  setup(t, { expose: v, emit: s }) {
3291
- const a = t, u = s, i = _(() => pa(a.locale)), r = _(() => Re(a.locale)), f = Te(Ye, void 0), g = _(() => a.ctx ?? (f?.call ? { call: f.call.bind(f) } : void 0)), d = Fa({ get admin() {
3291
+ const a = t, u = s, i = w(() => pa(a.locale)), r = w(() => Re(a.locale)), f = Te(Ye, void 0), g = w(() => a.ctx ?? (f?.call ? { call: f.call.bind(f) } : void 0)), d = Fa({ get admin() {
3292
3292
  return a.admin;
3293
3293
  }, get locale() {
3294
3294
  return a.locale;
3295
3295
  }, get ctx() {
3296
3296
  return g.value;
3297
- } }, Y), { password: c, busy: w, confirming: z, failure: x, passwordError: S, scope: T, chosen: C, options: E, dynamic: A, canConfirm: Z } = d, U = b(), te = b([]), H = b(!1), F = b(!1), M = b(), V = b(!1), P = b(!1), R = b(!1), q = b(""), le = b(), K = _(() => le.value ?? (H.value ? Se(d.status.value) : void 0));
3298
- let ee = !1;
3299
- async function se() {
3297
+ } }, j), { password: c, busy: x, confirming: T, failure: C, passwordError: S, scope: A, chosen: _, options: E, dynamic: z, canConfirm: ae } = d, F = b(), H = b([]), X = b(!1), B = b(!1), M = b(), D = b(!1), P = b(!1), R = b(!1), Y = b(""), K = b(), se = w(() => K.value ?? (X.value ? Se(d.status.value) : void 0));
3298
+ let O = !1;
3299
+ async function ne() {
3300
3300
  let de;
3301
3301
  try {
3302
3302
  de = await a.sdk.status();
3303
- } catch (ae) {
3304
- const Ie = Se(ae);
3305
- if (!Ie && ae?.code !== "EXECUTOR_UNAVAILABLE") throw ae;
3306
- ee || (le.value = Ie, H.value = !Ie, U.value = void 0, te.value = []);
3303
+ } catch (le) {
3304
+ const Ie = Se(le);
3305
+ if (!Ie && le?.code !== "EXECUTOR_UNAVAILABLE") throw le;
3306
+ O || (K.value = Ie, X.value = !Ie, F.value = void 0, H.value = []);
3307
3307
  return;
3308
3308
  }
3309
- const be = await Promise.all((a.picker?.keys ?? []).map((ae) => a.sdk.destination(ae)));
3310
- ee || (le.value = void 0, H.value = !1, U.value = de, te.value = be, u("destinations", be));
3309
+ const be = await Promise.all((a.picker?.keys ?? []).map((le) => a.sdk.destination(le)));
3310
+ O || (K.value = void 0, X.value = !1, F.value = de, H.value = be, u("destinations", be));
3311
3311
  }
3312
- async function re(de) {
3313
- if (!(ee || F.value)) {
3314
- F.value = !0, M.value = void 0, V.value = !1;
3312
+ async function ue(de) {
3313
+ if (!(O || B.value)) {
3314
+ B.value = !0, M.value = void 0, D.value = !1;
3315
3315
  try {
3316
3316
  await de();
3317
3317
  } catch (be) {
3318
- ee || (M.value = be);
3318
+ O || (M.value = be);
3319
3319
  } finally {
3320
- ee || (F.value = !1);
3320
+ O || (B.value = !1);
3321
3321
  }
3322
3322
  }
3323
3323
  }
3324
- const oe = () => re(se), G = () => Promise.all([oe(), a.admin ? d.refresh() : void 0]).then(() => {
3324
+ const re = () => ue(ne), G = () => Promise.all([re(), a.admin ? d.refresh() : void 0]).then(() => {
3325
3325
  });
3326
- function ne(de) {
3327
- u("authorized", de), oe();
3326
+ function J(de) {
3327
+ u("authorized", de), re();
3328
3328
  }
3329
- function W(de) {
3330
- ee || (M.value = de, V.value = !0);
3329
+ function Q(de) {
3330
+ O || (M.value = de, D.value = !0);
3331
3331
  }
3332
- const ye = _(() => V.value ? a.pickerErrorText?.(M.value) ?? Qe(M.value, i.value, "select", a.locale, a.ctx?.displayName) : Qe(M.value, i.value, "save", a.locale, a.ctx?.displayName)), Ce = (de) => re(async () => {
3332
+ const ye = w(() => D.value ? a.pickerErrorText?.(M.value) ?? Qe(M.value, i.value, "select", a.locale, a.ctx?.displayName) : Qe(M.value, i.value, "save", a.locale, a.ctx?.displayName)), Ce = (de) => ue(async () => {
3333
3333
  if ((await a.sdk.revoke({ delegation_id: de }))?.revoked !== !0) throw { code: "commit-uncertain" };
3334
- await se();
3335
- }), $e = () => re(async () => {
3334
+ await ne();
3335
+ }), $e = () => ue(async () => {
3336
3336
  if (a.admin) {
3337
3337
  if ((await a.sdk.enable())?.disabled !== !1) throw { code: "commit-uncertain" };
3338
- await se();
3338
+ await ne();
3339
3339
  }
3340
3340
  });
3341
- async function Y() {
3342
- await re(async () => {
3343
- if (ee) return;
3344
- const de = await a.sdk.status(), be = T.value?.selection;
3345
- if (!ee) {
3346
- if (A.value) {
3347
- const ae = de.selection;
3348
- if (!be || !ae || ae.scope !== C.value || ae.scope !== be.scope || ae.generation !== be.generation || ae.root !== be.root) throw { code: "commit-uncertain" };
3349
- const Ie = q.value ? [q.value] : a.picker?.keys ?? [];
3341
+ async function j() {
3342
+ await ue(async () => {
3343
+ if (O) return;
3344
+ const de = await a.sdk.status(), be = A.value?.selection;
3345
+ if (!O) {
3346
+ if (z.value) {
3347
+ const le = de.selection;
3348
+ if (!be || !le || le.scope !== _.value || le.scope !== be.scope || le.generation !== be.generation || le.root !== be.root) throw { code: "commit-uncertain" };
3349
+ const Ie = Y.value ? [Y.value] : a.picker?.keys ?? [];
3350
3350
  for (const ga of Ie) {
3351
- if (ee) return;
3351
+ if (O) return;
3352
3352
  let Ue;
3353
3353
  try {
3354
- Ue = await a.sdk.selectDestination({ key: ga, path: ae.root });
3354
+ Ue = await a.sdk.selectDestination({ key: ga, path: le.root });
3355
3355
  } catch (Ga) {
3356
- throw V.value = !0, Ga;
3356
+ throw D.value = !0, Ga;
3357
3357
  }
3358
- if (!Ue?.id || !Ue.username || Ue.path !== ae.root || Ue.key !== ga || Ue.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
3359
- if (ee) return;
3358
+ if (!Ue?.id || !Ue.username || Ue.path !== le.root || Ue.key !== ga || Ue.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
3359
+ if (O) return;
3360
3360
  u("authorized", Ue);
3361
3361
  }
3362
3362
  }
3363
- ee || (P.value = !1, u("confirmed"), await se());
3363
+ O || (P.value = !1, u("confirmed"), await ne());
3364
3364
  }
3365
3365
  });
3366
3366
  }
3367
- function ue(de) {
3368
- q.value = de, a.admin && A.value ? P.value = !0 : R.value = !0;
3367
+ function ie(de) {
3368
+ Y.value = de, a.admin && z.value ? P.value = !0 : R.value = !0;
3369
3369
  }
3370
- const ie = _(() => U.value?.selection), ge = _(() => !U.value && !H.value && !M.value && !K.value), Ee = _(() => H.value && (!a.admin || d.status.value?.state !== "blocked") || U.value?.scopeMode === "install-selected" && !ie.value), L = _(() => a.admin && H.value && d.status.value?.state === "blocked" && !d.status.value.retry), B = _(() => !!U.value && !Ee.value && !U.value.disabled), O = _(() => a.admin && (Ee.value || H.value && !!d.status.value?.retry)), j = _(() => a.picker ? ie.value ? et(a.picker.provider, ie.value.root) : U.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ve = (de) => a.picker?.labels?.[de] ?? i.value.folder, I = _(() => {
3371
- const de = x.value;
3370
+ const oe = w(() => F.value?.selection), ge = w(() => !F.value && !X.value && !M.value && !se.value), Ee = w(() => X.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !oe.value), N = w(() => a.admin && X.value && d.status.value?.state === "blocked" && !d.status.value.retry), L = 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 ? at(a.picker.provider, oe.value.root) : F.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ve = (de) => a.picker?.labels?.[de] ?? i.value.folder, I = w(() => {
3371
+ const de = C.value;
3372
3372
  return !de || "confirm" in de ? "" : de.code === "session_ended" ? r.value.session : d.explain(de) ?? r.value.setupError;
3373
- }), X = _(() => a.admin && Ee.value && !P.value), D = _(() => w.value || F.value || d.error.value || !Z.value);
3373
+ }), W = w(() => a.admin && Ee.value && !P.value), U = w(() => x.value || B.value || d.error.value || !ae.value);
3374
3374
  function me() {
3375
- P.value = !1, c.value = "", x.value = void 0, C.value = T.value?.selection?.scope ?? "";
3375
+ P.value = !1, c.value = "", C.value = void 0, _.value = A.value?.selection?.scope ?? "";
3376
3376
  }
3377
- return He(() => K.value, () => Promise.all([oe(), a.admin ? d.refresh() : void 0])), v({ refresh: G }), xe(() => {
3378
- oe();
3377
+ return He(() => se.value, () => Promise.all([re(), a.admin ? d.refresh() : void 0])), v({ refresh: G }), xe(() => {
3378
+ re();
3379
3379
  }), _e(() => {
3380
- ee = !0;
3380
+ O = !0;
3381
3381
  }), (de, be) => (l(), y(e(ke), {
3382
3382
  title: t.title ?? i.value.title,
3383
3383
  description: Ee.value && !P.value ? void 0 : i.value.help,
3384
3384
  collapsible: !1,
3385
- "aria-busy": F.value || e(w) || ge.value,
3385
+ "aria-busy": B.value || e(x) || ge.value,
3386
3386
  class: "background-save-settings"
3387
3387
  }, {
3388
3388
  default: n(() => [
3389
- ge.value ? (l(!0), k(Q, { key: 0 }, fe(t.picker?.keys ?? [], (ae) => (l(), y(e(we), {
3390
- key: ae,
3391
- label: ve(ae),
3389
+ ge.value ? (l(!0), k(ee, { key: 0 }, fe(t.picker?.keys ?? [], (le) => (l(), y(e(we), {
3390
+ key: le,
3391
+ label: ve(le),
3392
3392
  "field-width": "full",
3393
3393
  "data-placeholder-row": ""
3394
3394
  }, {
@@ -3399,29 +3399,29 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3399
3399
  })
3400
3400
  ]),
3401
3401
  _: 1
3402
- }, 8, ["label"]))), 128)) : K.value ? (l(), y(e(J), {
3402
+ }, 8, ["label"]))), 128)) : se.value ? (l(), y(e(Z), {
3403
3403
  key: 1,
3404
3404
  tone: "info",
3405
3405
  role: "status"
3406
3406
  }, {
3407
3407
  default: n(() => [
3408
- h(o(e(Le)(K.value, t.locale)), 1)
3408
+ h(o(e(Le)(se.value, t.locale)), 1)
3409
3409
  ]),
3410
3410
  _: 1
3411
- })) : (l(), k(Q, { key: 2 }, [
3412
- M.value ? (l(), y(e(J), {
3411
+ })) : (l(), k(ee, { key: 2 }, [
3412
+ M.value ? (l(), y(e(Z), {
3413
3413
  key: 0,
3414
3414
  tone: "danger",
3415
3415
  role: "alert"
3416
3416
  }, {
3417
3417
  default: n(() => [
3418
- $("span", Jn, [
3419
- $("span", Yn, o(ye.value), 1),
3420
- p(e(N), {
3418
+ $("span", Yn, [
3419
+ $("span", Qn, o(ye.value), 1),
3420
+ p(e(V), {
3421
3421
  variant: "secondary",
3422
3422
  size: "sm",
3423
- disabled: F.value,
3424
- onClick: oe
3423
+ disabled: B.value,
3424
+ onClick: re
3425
3425
  }, {
3426
3426
  default: n(() => [
3427
3427
  h(o(i.value.retry), 1)
@@ -3432,18 +3432,18 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3432
3432
  ]),
3433
3433
  _: 1
3434
3434
  })) : m("", !0),
3435
- e(d).error.value ? (l(), y(e(J), {
3435
+ e(d).error.value ? (l(), y(e(Z), {
3436
3436
  key: 1,
3437
3437
  tone: "danger",
3438
3438
  role: "alert"
3439
3439
  }, {
3440
3440
  default: n(() => [
3441
- $("span", Qn, [
3441
+ $("span", Zn, [
3442
3442
  h(o(r.value.setupError), 1),
3443
- p(e(N), {
3443
+ p(e(V), {
3444
3444
  variant: "secondary",
3445
3445
  size: "sm",
3446
- disabled: e(w),
3446
+ disabled: e(x),
3447
3447
  onClick: e(d).refresh
3448
3448
  }, {
3449
3449
  default: n(() => [
@@ -3455,24 +3455,24 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3455
3455
  ]),
3456
3456
  _: 1
3457
3457
  })) : m("", !0),
3458
- I.value ? (l(), y(e(J), {
3458
+ I.value ? (l(), y(e(Z), {
3459
3459
  key: 2,
3460
3460
  tone: "danger",
3461
3461
  role: "alert"
3462
3462
  }, {
3463
3463
  default: n(() => [
3464
3464
  h(o(I.value), 1),
3465
- e(x) && "reason" in e(x) && e(x).reason ? (l(), k("span", Zn, o(e(x).reason), 1)) : m("", !0)
3465
+ e(C) && "reason" in e(C) && e(C).reason ? (l(), k("span", jn, o(e(C).reason), 1)) : m("", !0)
3466
3466
  ]),
3467
3467
  _: 1
3468
3468
  })) : m("", !0),
3469
- L.value ? (l(), y(e(J), {
3469
+ N.value ? (l(), y(e(Z), {
3470
3470
  key: 3,
3471
3471
  tone: "warning"
3472
3472
  }, {
3473
3473
  default: n(() => [
3474
3474
  h(o(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
3475
- e(d).status.value?.reason ? (l(), k("span", jn, o(e(d).status.value.reason), 1)) : m("", !0)
3475
+ e(d).status.value?.reason ? (l(), k("span", es, o(e(d).status.value.reason), 1)) : m("", !0)
3476
3476
  ]),
3477
3477
  _: 1
3478
3478
  })) : Ee.value && !t.admin ? (l(), y(aa, {
@@ -3481,18 +3481,18 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3481
3481
  locale: t.locale,
3482
3482
  files: ""
3483
3483
  }, null, 8, ["locale"])) : m("", !0),
3484
- U.value?.disabled ? (l(), y(e(J), {
3484
+ F.value?.disabled ? (l(), y(e(Z), {
3485
3485
  key: 5,
3486
3486
  tone: "warning"
3487
3487
  }, {
3488
3488
  default: n(() => [
3489
- $("span", es, [
3489
+ $("span", as, [
3490
3490
  $("span", null, o(i.value.disabled), 1),
3491
- t.admin ? (l(), y(e(N), {
3491
+ t.admin ? (l(), y(e(V), {
3492
3492
  key: 0,
3493
3493
  variant: "secondary",
3494
3494
  size: "sm",
3495
- disabled: F.value,
3495
+ disabled: B.value,
3496
3496
  onClick: $e
3497
3497
  }, {
3498
3498
  default: n(() => [
@@ -3504,7 +3504,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3504
3504
  ]),
3505
3505
  _: 1
3506
3506
  })) : m("", !0),
3507
- B.value && te.value.some((ae) => ae.status === "reselection-required") ? (l(), y(e(J), {
3507
+ L.value && H.value.some((le) => le.status === "reselection-required") ? (l(), y(e(Z), {
3508
3508
  key: 6,
3509
3509
  tone: "warning"
3510
3510
  }, {
@@ -3513,7 +3513,7 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3513
3513
  ]),
3514
3514
  _: 1
3515
3515
  })) : m("", !0),
3516
- O.value || P.value ? (l(), y(Ge(X.value ? aa : "div"), Ze(ya({ key: 7 }, X.value ? { admin: !0, locale: t.locale, files: !0, status: e(d).status.value } : {})), {
3516
+ q.value || P.value ? (l(), y(Ge(W.value ? aa : "div"), Ze(ya({ key: 7 }, W.value ? { admin: !0, locale: t.locale, files: !0, status: e(d).status.value } : {})), {
3517
3517
  default: n(() => [
3518
3518
  p(e(Me), {
3519
3519
  direction: "vertical",
@@ -3521,50 +3521,50 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3521
3521
  onSubmit: Oe(e(d).submit, ["prevent"])
3522
3522
  }, {
3523
3523
  default: n(() => [
3524
- P.value ? (l(), k("p", as, o(i.value.changeHelp), 1)) : m("", !0),
3525
- e(A) ? (l(), y(e(Pe), {
3524
+ P.value ? (l(), k("p", ts, o(i.value.changeHelp), 1)) : m("", !0),
3525
+ e(z) ? (l(), y(e(Pe), {
3526
3526
  key: 1,
3527
3527
  label: i.value.folder,
3528
- description: X.value ? i.value.approveHelp : void 0,
3528
+ description: W.value ? i.value.approveHelp : void 0,
3529
3529
  "data-save-row": "folder"
3530
3530
  }, {
3531
3531
  default: n(() => [
3532
3532
  p(e(ba), {
3533
3533
  id: "save-scope",
3534
- modelValue: e(C),
3535
- "onUpdate:modelValue": be[0] || (be[0] = (ae) => je(C) ? C.value = ae : null),
3534
+ modelValue: e(_),
3535
+ "onUpdate:modelValue": be[0] || (be[0] = (le) => je(_) ? _.value = le : null),
3536
3536
  options: e(E),
3537
- disabled: e(w)
3537
+ disabled: e(x)
3538
3538
  }, null, 8, ["modelValue", "options", "disabled"])
3539
3539
  ]),
3540
3540
  _: 1
3541
3541
  }, 8, ["label", "description"])) : m("", !0),
3542
3542
  p(e(Pe), {
3543
3543
  label: i.value.password,
3544
- description: e(z) ? r.value.confirmingHelp : X.value ? r.value.passwordNote : void 0,
3544
+ description: e(T) ? r.value.confirmingHelp : W.value ? r.value.passwordNote : void 0,
3545
3545
  help: e(S),
3546
3546
  "validate-status": e(S) ? "error" : void 0,
3547
3547
  "validate-message-display-mode": "text"
3548
3548
  }, {
3549
- after: n(({ classes: ae }) => [
3550
- p(e(N), {
3551
- class: De(ae.afterItem),
3549
+ after: n(({ classes: le }) => [
3550
+ p(e(V), {
3551
+ class: De(le.afterItem),
3552
3552
  type: "submit",
3553
3553
  variant: "primary",
3554
- loading: e(z),
3555
- disabled: D.value
3554
+ loading: e(T),
3555
+ disabled: U.value
3556
3556
  }, {
3557
3557
  default: n(() => [
3558
3558
  h(o(P.value ? i.value.confirmChange : i.value.approve), 1)
3559
3559
  ]),
3560
3560
  _: 1
3561
3561
  }, 8, ["class", "loading", "disabled"]),
3562
- P.value ? (l(), y(e(N), {
3562
+ P.value ? (l(), y(e(V), {
3563
3563
  key: 0,
3564
- class: De(ae.afterItem),
3564
+ class: De(le.afterItem),
3565
3565
  type: "button",
3566
3566
  variant: "secondary",
3567
- disabled: e(w),
3567
+ disabled: e(x),
3568
3568
  onClick: me
3569
3569
  }, {
3570
3570
  default: n(() => [
@@ -3574,14 +3574,14 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3574
3574
  }, 8, ["class", "disabled"])) : m("", !0)
3575
3575
  ]),
3576
3576
  default: n(() => [
3577
- p(e(Ae), {
3577
+ p(e(ze), {
3578
3578
  id: "save-password",
3579
3579
  modelValue: e(c),
3580
- "onUpdate:modelValue": be[1] || (be[1] = (ae) => je(c) ? c.value = ae : null),
3580
+ "onUpdate:modelValue": be[1] || (be[1] = (le) => je(c) ? c.value = le : null),
3581
3581
  type: "password",
3582
3582
  autocomplete: "current-password",
3583
3583
  invalid: !!e(S),
3584
- disabled: e(w)
3584
+ disabled: e(x)
3585
3585
  }, null, 8, ["modelValue", "invalid", "disabled"])
3586
3586
  ]),
3587
3587
  _: 1
@@ -3592,35 +3592,35 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3592
3592
  ]),
3593
3593
  _: 1
3594
3594
  }, 16)) : m("", !0),
3595
- B.value && !P.value && !O.value ? (l(!0), k(Q, { key: 8 }, fe(te.value, (ae) => (l(), y(e(we), {
3596
- key: ae.key,
3597
- label: ve(ae.key),
3595
+ L.value && !P.value && !q.value ? (l(!0), k(ee, { key: 8 }, fe(H.value, (le) => (l(), y(e(we), {
3596
+ key: le.key,
3597
+ label: ve(le.key),
3598
3598
  "field-width": "full",
3599
3599
  "data-save-row": "folder"
3600
3600
  }, {
3601
3601
  default: n(() => [
3602
- $("div", ts, [
3603
- ae.status === "active" && ae.destination ? (l(), y(e(Ne), {
3602
+ $("div", ls, [
3603
+ le.status === "active" && le.destination ? (l(), y(e(Ne), {
3604
3604
  key: 0,
3605
- path: ae.destination.path
3606
- }, null, 8, ["path"])) : (l(), k("span", ls, o(i.value.folderNone), 1)),
3607
- p(e(N), {
3605
+ path: le.destination.path
3606
+ }, null, 8, ["path"])) : (l(), k("span", ns, o(i.value.folderNone), 1)),
3607
+ p(e(V), {
3608
3608
  variant: "secondary",
3609
3609
  size: "sm",
3610
- disabled: F.value || e(w) || (t.admin && U.value?.scopeMode === "install-selected" ? !e(A) || e(d).error.value : !j.value),
3611
- onClick: (Ie) => ue(ae.key)
3610
+ disabled: B.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(z) || e(d).error.value : !te.value),
3611
+ onClick: (Ie) => ie(le.key)
3612
3612
  }, {
3613
3613
  default: n(() => [
3614
3614
  h(o(i.value.choose), 1)
3615
3615
  ]),
3616
3616
  _: 1
3617
3617
  }, 8, ["disabled", "onClick"]),
3618
- ae.status === "active" && ae.destination ? (l(), y(e(N), {
3618
+ le.status === "active" && le.destination ? (l(), y(e(V), {
3619
3619
  key: 2,
3620
3620
  variant: "ghost",
3621
3621
  size: "sm",
3622
- disabled: F.value,
3623
- onClick: (Ie) => Ce(ae.destination.id)
3622
+ disabled: B.value,
3623
+ onClick: (Ie) => Ce(le.destination.id)
3624
3624
  }, {
3625
3625
  default: n(() => [
3626
3626
  h(o(i.value.revoke), 1)
@@ -3633,27 +3633,27 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3633
3633
  }, 1032, ["label"]))), 128)) : m("", !0)
3634
3634
  ], 64)),
3635
3635
  he(de.$slots, "default", {}, void 0, !0),
3636
- j.value ? (l(), y(na, {
3637
- key: ie.value?.scope,
3636
+ te.value ? (l(), y(na, {
3637
+ key: oe.value?.scope,
3638
3638
  open: R.value,
3639
- "onUpdate:open": be[2] || (be[2] = (ae) => R.value = ae),
3640
- provider: j.value,
3639
+ "onUpdate:open": be[2] || (be[2] = (le) => R.value = le),
3640
+ provider: te.value,
3641
3641
  locale: t.locale,
3642
3642
  name: t.ctx?.displayName,
3643
3643
  mode: "folder",
3644
- destination: { key: q.value, selectDestination: t.sdk.selectDestination },
3645
- onAuthorized: ne,
3646
- onRefused: W,
3644
+ destination: { key: Y.value, selectDestination: t.sdk.selectDestination },
3645
+ onAuthorized: J,
3646
+ onRefused: Q,
3647
3647
  "error-text": t.pickerErrorText
3648
3648
  }, null, 8, ["open", "provider", "locale", "name", "destination", "error-text"])) : m("", !0)
3649
3649
  ]),
3650
3650
  _: 3
3651
3651
  }, 8, ["title", "description", "aria-busy"]));
3652
3652
  }
3653
- }), ss = /* @__PURE__ */ pe(ns, [["__scopeId", "data-v-34e785e2"]]), os = { class: "background-save-panel" }, is = {
3653
+ }), os = /* @__PURE__ */ pe(ss, [["__scopeId", "data-v-cce39b9a"]]), is = { class: "background-save-panel" }, us = {
3654
3654
  key: 1,
3655
3655
  class: "save-example"
3656
- }, us = { class: "save-help" }, rs = { class: "save-actions" }, ds = /* @__PURE__ */ ce({
3656
+ }, rs = { class: "save-help" }, ds = { class: "save-actions" }, cs = /* @__PURE__ */ ce({
3657
3657
  __name: "BackgroundSavePanel",
3658
3658
  props: {
3659
3659
  sdk: {},
@@ -3667,22 +3667,22 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3667
3667
  },
3668
3668
  emits: ["authorized"],
3669
3669
  setup(t, { expose: v, emit: s }) {
3670
- const a = t, u = s, i = _(() => pa(a.locale)), r = _(() => ma(a.locale)), f = b([]), g = b(), d = () => (w.value = void 0, g.value?.refresh() ?? Promise.resolve()), c = b(!1), w = b();
3671
- async function z(S) {
3670
+ const a = t, u = s, i = w(() => pa(a.locale)), r = w(() => ma(a.locale)), f = b([]), g = b(), d = () => (x.value = void 0, g.value?.refresh() ?? Promise.resolve()), c = b(!1), x = b();
3671
+ async function T(S) {
3672
3672
  if (c.value) return;
3673
- c.value = !0, w.value = void 0;
3674
- const T = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (C) => C.toString(16).padStart(2, "0")).join("");
3673
+ c.value = !0, x.value = void 0;
3674
+ const A = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (_) => _.toString(16).padStart(2, "0")).join("");
3675
3675
  try {
3676
- await a.sdk.exportExample({ key: S, job_id: T });
3677
- } catch (C) {
3678
- w.value = C;
3676
+ await a.sdk.exportExample({ key: S, job_id: A });
3677
+ } catch (_) {
3678
+ x.value = _;
3679
3679
  } finally {
3680
3680
  c.value = !1;
3681
3681
  }
3682
3682
  }
3683
- const x = (S) => a.picker?.labels?.[S] ? `${i.value.example}${r.value}${a.picker.labels[S]}` : i.value.example;
3684
- return v({ refresh: d }), (S, T) => (l(), k("div", os, [
3685
- p(ss, {
3683
+ const C = (S) => a.picker?.labels?.[S] ? `${i.value.example}${r.value}${a.picker.labels[S]}` : i.value.example;
3684
+ return v({ refresh: d }), (S, A) => (l(), k("div", is, [
3685
+ p(os, {
3686
3686
  ref_key: "settings",
3687
3687
  ref: g,
3688
3688
  sdk: t.sdk,
@@ -3692,31 +3692,31 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3692
3692
  picker: t.picker,
3693
3693
  ctx: t.ctx,
3694
3694
  "picker-error-text": t.pickerErrorText,
3695
- onAuthorized: T[0] || (T[0] = (C) => u("authorized", C)),
3696
- onDestinations: T[1] || (T[1] = (C) => f.value = C.filter((E) => E.status === "active"))
3695
+ onAuthorized: A[0] || (A[0] = (_) => u("authorized", _)),
3696
+ onDestinations: A[1] || (A[1] = (_) => f.value = _.filter((E) => E.status === "active"))
3697
3697
  }, {
3698
3698
  default: n(() => [
3699
- w.value ? (l(), y(e(J), {
3699
+ x.value ? (l(), y(e(Z), {
3700
3700
  key: 0,
3701
3701
  tone: "danger",
3702
3702
  role: "alert"
3703
3703
  }, {
3704
3704
  default: n(() => [
3705
- h(o(e(Qe)(w.value, i.value, "save", t.locale, t.ctx?.displayName)), 1)
3705
+ h(o(e(Qe)(x.value, i.value, "save", t.locale, t.ctx?.displayName)), 1)
3706
3706
  ]),
3707
3707
  _: 1
3708
3708
  })) : m("", !0),
3709
- t.sampleSave && f.value.length ? (l(), k("div", is, [
3710
- $("p", us, o(i.value.exampleHelp), 1),
3711
- $("div", rs, [
3712
- (l(!0), k(Q, null, fe(f.value, (C) => (l(), y(e(N), {
3713
- key: C.key,
3709
+ t.sampleSave && f.value.length ? (l(), k("div", us, [
3710
+ $("p", rs, o(i.value.exampleHelp), 1),
3711
+ $("div", ds, [
3712
+ (l(!0), k(ee, null, fe(f.value, (_) => (l(), y(e(V), {
3713
+ key: _.key,
3714
3714
  variant: "secondary",
3715
3715
  disabled: c.value,
3716
- onClick: (E) => z(C.key)
3716
+ onClick: (E) => T(_.key)
3717
3717
  }, {
3718
3718
  default: n(() => [
3719
- h(o(x(C.key)), 1)
3719
+ h(o(C(_.key)), 1)
3720
3720
  ]),
3721
3721
  _: 2
3722
3722
  }, 1032, ["disabled", "onClick"]))), 128))
@@ -3727,18 +3727,18 @@ const wl = ["aria-busy", "aria-label"], xl = { class: "file-toolbar file-locatio
3727
3727
  }, 8, ["sdk", "admin", "locale", "title", "picker", "ctx", "picker-error-text"])
3728
3728
  ]));
3729
3729
  }
3730
- }), Ns = /* @__PURE__ */ pe(ds, [["__scopeId", "data-v-05618cb8"]]);
3731
- function cs(t) {
3730
+ }), Ls = /* @__PURE__ */ pe(cs, [["__scopeId", "data-v-05618cb8"]]);
3731
+ function vs(t) {
3732
3732
  const { code: v, message: s } = t ?? {};
3733
3733
  return !!Be(t) || typeof v == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(v) || v === "bad_response" && /HTTP 40[13]\b/.test(String(s));
3734
3734
  }
3735
3735
  const Xa = /* @__PURE__ */ Symbol("authorization");
3736
- function vs() {
3736
+ function fs() {
3737
3737
  const t = Te(Xa, void 0);
3738
3738
  if (!t) throw Error("authorization controls must be placed inside AuthorizationGate");
3739
3739
  return t;
3740
3740
  }
3741
- const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authorization-state"], ms = { class: "authorization-body" }, ys = /* @__PURE__ */ ce({
3741
+ const ps = { class: "authorization-content" }, ms = ["aria-busy", "data-authorization-state"], ys = { class: "authorization-body" }, bs = /* @__PURE__ */ ce({
3742
3742
  __name: "AuthorizationGate",
3743
3743
  props: {
3744
3744
  ctx: {},
@@ -3746,94 +3746,94 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3746
3746
  },
3747
3747
  emits: ["ready"],
3748
3748
  setup(t, { emit: v }) {
3749
- const s = t, a = v, u = b(), i = b(), r = b(!1), f = b(!1), g = b(!1), d = Ct();
3750
- let c = [], w = !1, z = 0, x = !1, S, T = 0, C;
3751
- const E = _(() => at(s.ctx.locale, s.name ?? s.ctx.displayName ?? "")), A = _(() => u.value || i.value), Z = _(() => A.value?.state === "authorization_required"), U = _(() => ["helper_untrusted", "cli_untrusted"].includes(A.value?.reason || "")), te = _(() => Z.value && !U.value), H = _(() => A.value?.state === "unavailable" ? Se(A.value) : void 0), F = _(() => H.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[A.value?.reason ?? ""] ?? "unavailable"), M = _(() => ca({ code: A.value?.reason }, s.ctx.locale, s.name ?? s.ctx.displayName)), V = _(() => M.value?.title ?? (A.value ? Z.value ? E.value("title") : A.value.state === "ready" ? E.value("ready") : A.value.state === "not_admin" ? E.value("not_admin.title") : A.value.state === "session_expired" ? E.value("session_expired.title") : E.value(F.value + ".title") : E.value("checking"))), P = _(() => M.value?.message ?? (Z.value ? E.value("purpose") : A.value?.state === "not_admin" ? E.value("not_admin.body") : A.value?.state === "session_expired" ? E.value("session_expired.body") : A.value?.state === "unavailable" ? E.value(F.value + ".body") : E.value("purpose"))), R = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], q = _(() => R.includes(A.value?.reason || "") ? A.value.reason : "unknown"), le = _(() => U.value ? "next.reinstall" : q.value === "grant_missing" ? "next.install" : q.value === "upgrade_reapproval" || q.value === "grant_incompatible" ? "next.update" : "next.repair");
3752
- function K(Y) {
3753
- if (!Y || Y.command !== "authorization" || Y.schema_version !== 1 || !["ready", "authorization_required", "not_admin", "session_expired", "unavailable"].includes(Y.state) || Y.reason === "upgrade_reapproval" && Y.state !== "authorization_required") throw Error("invalid status");
3754
- return Y;
3755
- }
3756
- const ee = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
3757
- function se(Y) {
3758
- const { code: ue } = Y ?? {}, ie = Se(Y);
3759
- return ie ? ie === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ue === "credential_not_ready" ? ue : Be(Y) ? Be(Y) : cs(Y) ? "access_denied" : typeof ue == "string" && ee.includes(ue) || ue === void 0 ? "service_unavailable" : "check_failed";
3760
- }
3761
- let re;
3762
- function oe() {
3763
- clearTimeout(S), H.value !== re && (re = H.value, T = 0), H.value && (S = setTimeout(() => {
3764
- r.value ? x = !0 : W("status");
3765
- }, va(T++, H.value)));
3749
+ const s = t, a = v, u = b(), i = b(), r = b(!1), f = b(!1), g = b(!1), d = $t();
3750
+ let c = [], x = !1, T = 0, C = !1, S, A = 0, _;
3751
+ const E = w(() => tt(s.ctx.locale, s.name ?? s.ctx.displayName ?? "")), z = w(() => u.value || i.value), ae = w(() => z.value?.state === "authorization_required"), F = w(() => ["helper_untrusted", "cli_untrusted"].includes(z.value?.reason || "")), H = w(() => ae.value && !F.value), X = w(() => z.value?.state === "unavailable" ? Se(z.value) : void 0), B = w(() => X.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[z.value?.reason ?? ""] ?? "unavailable"), M = w(() => ca({ code: z.value?.reason }, s.ctx.locale, s.name ?? s.ctx.displayName)), D = w(() => M.value?.title ?? (z.value ? ae.value ? E.value("title") : z.value.state === "ready" ? E.value("ready") : z.value.state === "not_admin" ? E.value("not_admin.title") : z.value.state === "session_expired" ? E.value("session_expired.title") : E.value(B.value + ".title") : E.value("checking"))), P = w(() => M.value?.message ?? (ae.value ? E.value("purpose") : z.value?.state === "not_admin" ? E.value("not_admin.body") : z.value?.state === "session_expired" ? E.value("session_expired.body") : z.value?.state === "unavailable" ? E.value(B.value + ".body") : E.value("purpose"))), R = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], Y = w(() => R.includes(z.value?.reason || "") ? z.value.reason : "unknown"), K = w(() => F.value ? "next.reinstall" : Y.value === "grant_missing" ? "next.install" : Y.value === "upgrade_reapproval" || Y.value === "grant_incompatible" ? "next.update" : "next.repair");
3752
+ function se(j) {
3753
+ if (!j || j.command !== "authorization" || j.schema_version !== 1 || !["ready", "authorization_required", "not_admin", "session_expired", "unavailable"].includes(j.state) || j.reason === "upgrade_reapproval" && j.state !== "authorization_required") throw Error("invalid status");
3754
+ return j;
3755
+ }
3756
+ const O = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
3757
+ function ne(j) {
3758
+ const { code: ie } = j ?? {}, oe = Se(j);
3759
+ return oe ? oe === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie : Be(j) ? Be(j) : vs(j) ? "access_denied" : typeof ie == "string" && O.includes(ie) || ie === void 0 ? "service_unavailable" : "check_failed";
3760
+ }
3761
+ let ue;
3762
+ function re() {
3763
+ clearTimeout(S), X.value !== ue && (ue = X.value, A = 0), X.value && (S = setTimeout(() => {
3764
+ r.value ? C = !0 : Q("status");
3765
+ }, va(A++, X.value)));
3766
3766
  }
3767
3767
  const G = [1e3, 3e3];
3768
- async function ne(Y) {
3769
- const ue = Y === "status" && !g.value ? G : [];
3770
- for (let ie = 0; ; ie++) {
3768
+ async function J(j) {
3769
+ const ie = j === "status" && !g.value ? G : [];
3770
+ for (let oe = 0; ; oe++) {
3771
3771
  try {
3772
- const ge = K(await s.ctx.authorization?.[Y]());
3773
- if (ge.state !== "unavailable" || ie >= ue.length) return ge;
3772
+ const ge = se(await s.ctx.authorization?.[j]());
3773
+ if (ge.state !== "unavailable" || oe >= ie.length) return ge;
3774
3774
  } catch (ge) {
3775
- if (["session_required", "credential_not_ready"].includes(ge.code) || ie >= ue.length) throw ge;
3775
+ if (["session_required", "credential_not_ready"].includes(ge.code) || oe >= ie.length) throw ge;
3776
3776
  }
3777
- if (await new Promise((ge) => setTimeout(ge, ue[ie])), w) throw Error("disposed");
3777
+ if (await new Promise((ge) => setTimeout(ge, ie[oe])), x) throw Error("disposed");
3778
3778
  }
3779
3779
  }
3780
- async function W(Y) {
3781
- if (r.value || w) return;
3782
- const ue = ++z;
3783
- i.value = Y === "request" && u.value?.state === "authorization_required" ? u.value : void 0, r.value = !0, f.value = !1, u.value = void 0;
3780
+ async function Q(j) {
3781
+ if (r.value || x) return;
3782
+ const ie = ++T;
3783
+ i.value = j === "request" && u.value?.state === "authorization_required" ? u.value : void 0, r.value = !0, f.value = !1, u.value = void 0;
3784
3784
  try {
3785
- const ie = await ne(Y);
3786
- if (w || ue !== z) return;
3787
- u.value = ie, g.value = ie.state !== "ready", ie.state === "ready" && ye(!0), ie.state === "ready" && a("ready");
3788
- } catch (ie) {
3789
- !w && ue === z && (u.value = ie.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : i.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: se(ie) }, f.value = !M.value && F.value === "unavailable", g.value = !0);
3785
+ const oe = await J(j);
3786
+ if (x || ie !== T) return;
3787
+ u.value = oe, g.value = oe.state !== "ready", oe.state === "ready" && ye(!0), oe.state === "ready" && a("ready");
3788
+ } catch (oe) {
3789
+ !x && ie === T && (u.value = oe.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : i.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: ne(oe) }, f.value = !M.value && B.value === "unavailable", g.value = !0);
3790
3790
  } finally {
3791
- !w && ue === z && (r.value = !1, i.value = void 0, x ? (x = !1, W("status")) : oe());
3791
+ !x && ie === T && (r.value = !1, i.value = void 0, C ? (C = !1, Q("status")) : re());
3792
3792
  }
3793
3793
  }
3794
- function ye(Y) {
3795
- const ue = c;
3796
- c = [], ue.forEach((ie) => ie(Y));
3794
+ function ye(j) {
3795
+ const ie = c;
3796
+ c = [], ie.forEach((oe) => oe(j));
3797
3797
  }
3798
- function Ce(Y) {
3799
- g.value = Y, Y || ye(!1);
3798
+ function Ce(j) {
3799
+ g.value = j, j || ye(!1);
3800
3800
  }
3801
3801
  function $e() {
3802
- return u.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (g.value = !0), new Promise((Y) => c.push(Y)));
3802
+ return u.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (g.value = !0), new Promise((j) => c.push(j)));
3803
3803
  }
3804
- return Fe(Xa, { state: _(() => u.value?.state ?? "checking"), requireAuthorization: $e, text: E, busy: r, canManage: () => !!s.ctx.authorization?.canManage?.(), revoke: () => W("revoke") }), xe(() => {
3805
- C = s.ctx.reopen(() => {
3806
- r.value ? x = !0 : W("status");
3807
- }), W("status");
3804
+ return Fe(Xa, { state: w(() => u.value?.state ?? "checking"), requireAuthorization: $e, text: E, busy: r, canManage: () => !!s.ctx.authorization?.canManage?.(), revoke: () => Q("revoke") }), xe(() => {
3805
+ _ = s.ctx.reopen(() => {
3806
+ r.value ? C = !0 : Q("status");
3807
+ }), Q("status");
3808
3808
  }), Ia(() => {
3809
- w = !0, z++, clearTimeout(S), ye(!1), typeof C == "function" && C();
3810
- }), (Y, ue) => (l(), k(Q, null, [
3811
- $("div", fs, [
3812
- he(Y.$slots, "default", {}, void 0, !0)
3809
+ x = !0, T++, clearTimeout(S), ye(!1), typeof _ == "function" && _();
3810
+ }), (j, ie) => (l(), k(ee, null, [
3811
+ $("div", ps, [
3812
+ he(j.$slots, "default", {}, void 0, !0)
3813
3813
  ]),
3814
3814
  p(e(Ke), {
3815
3815
  open: g.value && !e(d),
3816
- title: V.value,
3816
+ title: D.value,
3817
3817
  "onUpdate:open": Ce
3818
3818
  }, {
3819
3819
  footer: n(() => [
3820
- te.value ? (l(), y(e(N), {
3820
+ H.value ? (l(), y(e(V), {
3821
3821
  key: 0,
3822
3822
  variant: "primary",
3823
3823
  loading: r.value,
3824
3824
  disabled: r.value,
3825
- onClick: ue[0] || (ue[0] = (ie) => W("request"))
3825
+ onClick: ie[0] || (ie[0] = (oe) => Q("request"))
3826
3826
  }, {
3827
3827
  default: n(() => [
3828
3828
  h(o(r.value ? E.value("authorizing") : E.value("authorize")), 1)
3829
3829
  ]),
3830
3830
  _: 1
3831
- }, 8, ["loading", "disabled"])) : (l(), y(e(N), {
3831
+ }, 8, ["loading", "disabled"])) : (l(), y(e(V), {
3832
3832
  key: 1,
3833
3833
  variant: "primary",
3834
3834
  loading: r.value,
3835
3835
  disabled: r.value,
3836
- onClick: ue[1] || (ue[1] = (ie) => W("status"))
3836
+ onClick: ie[1] || (ie[1] = (oe) => Q("status"))
3837
3837
  }, {
3838
3838
  default: n(() => [
3839
3839
  h(o(r.value ? E.value("checking") : E.value("retry")), 1)
@@ -3847,19 +3847,19 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3847
3847
  "aria-busy": r.value,
3848
3848
  "data-authorization-state": u.value?.state || "checking"
3849
3849
  }, [
3850
- $("p", ms, o(P.value), 1),
3851
- Z.value ? (l(), y(e(J), {
3850
+ $("p", ys, o(P.value), 1),
3851
+ ae.value ? (l(), y(e(Z), {
3852
3852
  key: 0,
3853
3853
  class: "authorization-status",
3854
- tone: ["grant_missing", "upgrade_reapproval"].includes(q.value) ? "info" : "warning",
3855
- title: E.value("reason." + q.value)
3854
+ tone: ["grant_missing", "upgrade_reapproval"].includes(Y.value) ? "info" : "warning",
3855
+ title: E.value("reason." + Y.value)
3856
3856
  }, {
3857
3857
  default: n(() => [
3858
- h(o(E.value(le.value)), 1)
3858
+ h(o(E.value(K.value)), 1)
3859
3859
  ]),
3860
3860
  _: 1
3861
3861
  }, 8, ["tone", "title"])) : m("", !0),
3862
- f.value ? (l(), y(e(J), {
3862
+ f.value ? (l(), y(e(Z), {
3863
3863
  key: 1,
3864
3864
  class: "authorization-failed",
3865
3865
  tone: "warning"
@@ -3869,20 +3869,20 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3869
3869
  ]),
3870
3870
  _: 1
3871
3871
  })) : m("", !0)
3872
- ], 8, ps)
3872
+ ], 8, ms)
3873
3873
  ]),
3874
3874
  _: 1
3875
3875
  }, 8, ["open", "title"])
3876
3876
  ], 64));
3877
3877
  }
3878
- }), Ls = /* @__PURE__ */ pe(ys, [["__scopeId", "data-v-e6c8e4e1"]]), bs = { class: "authorization-setting" }, gs = {
3878
+ }), Bs = /* @__PURE__ */ pe(bs, [["__scopeId", "data-v-e6c8e4e1"]]), gs = { class: "authorization-setting" }, hs = {
3879
3879
  class: "authorization-state",
3880
3880
  role: "status"
3881
- }, hs = { class: "authorization-revoke-body" }, ks = /* @__PURE__ */ ce({
3881
+ }, ks = { class: "authorization-revoke-body" }, _s = /* @__PURE__ */ ce({
3882
3882
  __name: "AuthorizationSettings",
3883
3883
  setup(t) {
3884
- const { state: v, requireAuthorization: s, text: a, busy: u, canManage: i, revoke: r } = vs(), f = b(!1), g = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
3885
- return (d, c) => (l(), k(Q, null, [
3884
+ const { state: v, requireAuthorization: s, text: a, busy: u, canManage: i, revoke: r } = fs(), f = b(!1), g = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
3885
+ return (d, c) => (l(), k(ee, null, [
3886
3886
  p(e(ke), {
3887
3887
  title: e(a)("settings.title"),
3888
3888
  collapsible: !1
@@ -3894,8 +3894,8 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3894
3894
  align: "center"
3895
3895
  }, {
3896
3896
  default: n(() => [
3897
- $("div", bs, [
3898
- $("span", gs, [
3897
+ $("div", gs, [
3898
+ $("span", hs, [
3899
3899
  e(v) === "ready" ? (l(), y(e(Da), {
3900
3900
  key: 0,
3901
3901
  size: 16,
@@ -3903,20 +3903,20 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3903
3903
  })) : m("", !0),
3904
3904
  h(o(e(a)(g[e(v)])), 1)
3905
3905
  ]),
3906
- e(v) === "ready" && e(i)() ? (l(), y(e(N), {
3906
+ e(v) === "ready" && e(i)() ? (l(), y(e(V), {
3907
3907
  key: 0,
3908
3908
  variant: "secondary",
3909
3909
  disabled: e(u),
3910
- onClick: c[0] || (c[0] = (w) => f.value = !0)
3910
+ onClick: c[0] || (c[0] = (x) => f.value = !0)
3911
3911
  }, {
3912
3912
  default: n(() => [
3913
3913
  h(o(e(a)("revoke")), 1)
3914
3914
  ]),
3915
3915
  _: 1
3916
- }, 8, ["disabled"])) : e(v) !== "ready" && e(v) !== "checking" ? (l(), y(e(N), {
3916
+ }, 8, ["disabled"])) : e(v) !== "ready" && e(v) !== "checking" ? (l(), y(e(V), {
3917
3917
  key: 1,
3918
3918
  variant: "secondary",
3919
- onClick: c[1] || (c[1] = (w) => e(s)())
3919
+ onClick: c[1] || (c[1] = (x) => e(s)())
3920
3920
  }, {
3921
3921
  default: n(() => [
3922
3922
  h(o(e(a)("settings.details")), 1)
@@ -3932,23 +3932,23 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3932
3932
  }, 8, ["title"]),
3933
3933
  p(e(Ke), {
3934
3934
  open: f.value,
3935
- "onUpdate:open": c[4] || (c[4] = (w) => f.value = w),
3935
+ "onUpdate:open": c[4] || (c[4] = (x) => f.value = x),
3936
3936
  title: e(a)("revoke.title")
3937
3937
  }, {
3938
3938
  footer: n(() => [
3939
- p(e(N), {
3939
+ p(e(V), {
3940
3940
  variant: "secondary",
3941
- onClick: c[2] || (c[2] = (w) => f.value = !1)
3941
+ onClick: c[2] || (c[2] = (x) => f.value = !1)
3942
3942
  }, {
3943
3943
  default: n(() => [
3944
3944
  h(o(e(a)("cancel")), 1)
3945
3945
  ]),
3946
3946
  _: 1
3947
3947
  }),
3948
- p(e(N), {
3948
+ p(e(V), {
3949
3949
  variant: "danger",
3950
3950
  disabled: e(u),
3951
- onClick: c[3] || (c[3] = (w) => {
3951
+ onClick: c[3] || (c[3] = (x) => {
3952
3952
  f.value = !1, e(r)();
3953
3953
  })
3954
3954
  }, {
@@ -3959,111 +3959,112 @@ const fs = { class: "authorization-content" }, ps = ["aria-busy", "data-authoriz
3959
3959
  }, 8, ["disabled"])
3960
3960
  ]),
3961
3961
  default: n(() => [
3962
- $("p", hs, o(e(a)("revoke.body")), 1)
3962
+ $("p", ks, o(e(a)("revoke.body")), 1)
3963
3963
  ]),
3964
3964
  _: 1
3965
3965
  }, 8, ["open", "title"])
3966
3966
  ], 64));
3967
3967
  }
3968
- }), Bs = /* @__PURE__ */ pe(ks, [["__scopeId", "data-v-8452013e"]]);
3968
+ }), Fs = /* @__PURE__ */ pe(_s, [["__scopeId", "data-v-8452013e"]]);
3969
3969
  export {
3970
- Ss as AppShell,
3971
- Ls as AuthorizationGate,
3972
- Bs as AuthorizationSettings,
3973
- Us as BackgroundPanel,
3974
- Ns as BackgroundSavePanel,
3975
- ss as BackgroundSaveSettings,
3976
- Os as DEFAULT_REQUEST_TIMEOUT,
3977
- Vs as DelegatePanel,
3978
- Ds as ExecutorApproval,
3979
- fl as ExecutorNotice,
3970
+ Ps as AppShell,
3971
+ Bs as AuthorizationGate,
3972
+ Fs as AuthorizationSettings,
3973
+ Ds as BackgroundPanel,
3974
+ Ls as BackgroundSavePanel,
3975
+ os as BackgroundSaveSettings,
3976
+ Ms as DEFAULT_REQUEST_TIMEOUT,
3977
+ Ns as DelegatePanel,
3978
+ Vs as ExecutorApproval,
3979
+ pl as ExecutorNotice,
3980
3980
  Na as ExecutorPreloadKey,
3981
3981
  qa as ExecutorSettings,
3982
3982
  Ye as ExecutorSetupKey,
3983
- Ms as FILE_STATION_APP,
3983
+ Ks as FILE_STATION_APP,
3984
3984
  Ha as FileBrowser,
3985
- Ts as FilesPage,
3986
- Ks as LIFECYCLE_RETRY_MAX_MS,
3987
- Hs as LIFECYCLE_STARTING_RETRY_MAX_MS,
3988
- Is as LoginPage,
3989
- Xs as MAX_LAUNCH_ROUTE,
3985
+ As as FilesPage,
3986
+ Hs as LIFECYCLE_RETRY_MAX_MS,
3987
+ Xs as LIFECYCLE_STARTING_RETRY_MAX_MS,
3988
+ Us as LoginPage,
3989
+ Gs as MAX_LAUNCH_ROUTE,
3990
3990
  na as NasPicker,
3991
- Ps as PageActions,
3991
+ Es as PageActions,
3992
3992
  Oa as PageActionsTarget,
3993
- Es as PageInfo,
3993
+ Ts as PageInfo,
3994
3994
  Ma as PageInfoTarget,
3995
3995
  zs as PortalSettings,
3996
- Rs as SharedFolderPermissionDialog,
3997
- As as SharedFolderSettings,
3998
- Gs as activePage,
3996
+ Is as SharedFolderPermissionDialog,
3997
+ Rs as SharedFolderSettings,
3998
+ Ws as activePage,
3999
3999
  Be as appDenial,
4000
4000
  Se as appLifecycle,
4001
4001
  ca as appRefusal,
4002
- Ws as authorizationCatalogs,
4003
- at as authorizationCopy,
4004
- Js as backgroundCatalogs,
4005
- Ja as backgroundCopy,
4006
- Qa as backgroundErrorCopy,
4007
- Ys as bridgeCatalogs,
4008
- Qs as bridgeErrorCopy,
4009
- Zs as catalogs,
4010
- js as clientTimeout,
4011
- Ya as createBackgroundPickerProvider,
4012
- eo as createBackgroundSaveFacade,
4013
- ao as createClient,
4014
- to as createDsmSession,
4015
- lo as createFileTransfers,
4016
- za as createNasProvider,
4017
- no as createPortalAccess,
4018
- $s as createSession,
4019
- so as createSharedFolderAccess,
4020
- oo as createSharedFolderPermission,
4021
- io as createStandaloneContext,
4022
- uo as createStandaloneHost,
4023
- ro as decodeResponse,
4024
- co as delegateCatalogs,
4002
+ Js as authorizationCatalogs,
4003
+ tt as authorizationCopy,
4004
+ Ys as backgroundCatalogs,
4005
+ Ya as backgroundCopy,
4006
+ Za as backgroundErrorCopy,
4007
+ Qs as bridgeCatalogs,
4008
+ Zs as bridgeErrorCopy,
4009
+ js as catalogs,
4010
+ eo as clientTimeout,
4011
+ Qa as createBackgroundPickerProvider,
4012
+ ao as createBackgroundSaveFacade,
4013
+ to as createClient,
4014
+ Wa as createDsmFileStation,
4015
+ lo as createDsmSession,
4016
+ no as createFileTransfers,
4017
+ Aa as createNasProvider,
4018
+ so as createPortalAccess,
4019
+ Ss as createSession,
4020
+ oo as createSharedFolderAccess,
4021
+ io as createSharedFolderPermission,
4022
+ uo as createStandaloneContext,
4023
+ ro as createStandaloneHost,
4024
+ co as decodeResponse,
4025
+ vo as delegateCatalogs,
4025
4026
  Re as delegateCopy,
4026
- vo as dsmLaunchURL,
4027
- fo as encodeRequest,
4028
- ja as errorCopy,
4029
- po as fileStationPath,
4030
- mo as followLaunchRoute,
4027
+ fo as dsmLaunchURL,
4028
+ po as encodeRequest,
4029
+ et as errorCopy,
4030
+ mo as fileStationPath,
4031
+ yo as followLaunchRoute,
4031
4032
  We as format,
4032
- yo as identityCatalogs,
4033
- Wa as identityCopy,
4033
+ bo as identityCatalogs,
4034
+ Ja as identityCopy,
4034
4035
  Ea as isFullPage,
4035
4036
  ma as labelSeparator,
4036
- bo as launchRoute,
4037
+ go as launchRoute,
4037
4038
  Le as lifecycleCopy,
4038
- Za as lifecycleRefusal,
4039
+ ja as lifecycleRefusal,
4039
4040
  va as lifecycleRetryDelay,
4040
- go as mergeCatalogs,
4041
- ho as nasCatalogs,
4042
- ze as nasCopy,
4041
+ ho as mergeCatalogs,
4042
+ ko as nasCatalogs,
4043
+ Ae as nasCopy,
4043
4044
  Ta as nasErrorCopy,
4044
- ko as openFileInFileStation,
4045
- _o as openFolderInFileStation,
4046
- wo as portalCatalogs,
4047
- xo as portalMessages,
4048
- Co as protocolCodes,
4049
- $o as protocolOps,
4050
- So as protocolSchemas,
4045
+ _o as openFileInFileStation,
4046
+ wo as openFolderInFileStation,
4047
+ xo as portalCatalogs,
4048
+ Co as portalMessages,
4049
+ $o as protocolCodes,
4050
+ So as protocolOps,
4051
+ Po as protocolSchemas,
4051
4052
  ha as requestKey,
4052
- Po as saveCatalogs,
4053
+ Eo as saveCatalogs,
4053
4054
  pa as saveCopy,
4054
4055
  Qe as saveError,
4055
- et as scopedPicker,
4056
- Eo as sharedFolderAccessFor,
4057
- To as sharedFolderCatalogs,
4056
+ at as scopedPicker,
4057
+ To as sharedFolderAccessFor,
4058
+ Ao as sharedFolderCatalogs,
4058
4059
  zo as sharedFolderMessages,
4059
- Ao as sharedFolderPermissionMessage,
4060
- Ro as shellCatalogs,
4060
+ Ro as sharedFolderPermissionMessage,
4061
+ Io as shellCatalogs,
4061
4062
  ua as shellCopy,
4062
- Io as shellPages,
4063
+ Uo as shellPages,
4063
4064
  fa as uiLocale,
4064
- Uo as uiLocales,
4065
- vs as useAuthorization,
4066
- Ct as useExecutorPreload,
4065
+ Do as uiLocales,
4066
+ fs as useAuthorization,
4067
+ $t as useExecutorPreload,
4067
4068
  La as useExecutorSetup,
4068
- Pt as useNasRequest
4069
+ Et as useNasRequest
4069
4070
  };