@synopackageland/sdk 0.10.10 → 0.10.11

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,14 +1,14 @@
1
- import { appRefusal as ua, appDenial as Be, delegateCopy as Ve, appLifecycle as xe, lifecycleRetryDelay as ra, uiLocale as da, lifecycleCopy as Ue, shellCopy as La, isFullPage as wa, nasCopy as Te, nasErrorCopy as _a, format as na, saveCopy as ca, saveError as Xe, createNasProvider as xa, identityCopy as Oa, backgroundCopy as qa, createBackgroundPickerProvider as Fa, backgroundErrorCopy as Ma, requestKey as pa, labelSeparator as Ca, lifecycleRefusal as Ka, errorCopy as Ha, scopedPicker as Xa, authorizationCopy as Ga } from "./index.js";
2
- import { DEFAULT_REQUEST_TIMEOUT as vo, FILE_STATION_APP as fo, LIFECYCLE_RETRY_MAX_MS as po, LIFECYCLE_STARTING_RETRY_MAX_MS as mo, activePage as yo, authorizationCatalogs as bo, backgroundCatalogs as go, bridgeCatalogs as ko, bridgeErrorCopy as ho, catalogs as wo, clientTimeout as _o, createBackgroundSaveFacade as xo, createDsmSession as Co, createFileTransfers as $o, createPortalAccess as So, createStandaloneContext as Eo, createStandaloneHost as To, decodeResponse as Po, delegateCatalogs as zo, encodeRequest as Ao, fileStationPath as Ro, identityCatalogs as Io, mergeCatalogs as Do, nasCatalogs as Vo, openFileInFileStation as Uo, openFolderInFileStation as No, portalCatalogs as Bo, portalMessages as Lo, protocolCodes as Oo, protocolOps as qo, protocolSchemas as Fo, saveCatalogs as Mo, shellCatalogs as Ko, shellPages as Ho, uiLocales as Xo } from "./index.js";
3
- import { inject as Ne, ref as p, computed as C, onBeforeUnmount as ke, Comment as Wa, Text as Ja, Fragment as se, watch as He, onMounted as Se, defineComponent as fe, openBlock as l, createElementBlock as E, normalizeClass as Ie, createElementVNode as A, createVNode as v, unref as e, toDisplayString as s, createCommentVNode as y, renderSlot as ge, createTextVNode as g, renderList as Ce, createBlock as m, withCtx as n, resolveDynamicComponent as Me, normalizeProps as Ge, mergeProps as $a, withModifiers as Oe, isRef as We, provide as Qe, useTemplateRef as aa, useSlots as Ya, watchEffect as ma, guardReactiveProps as ya, createSlots as oa, Teleport as Qa, markRaw as Za, h as ja, onUnmounted as Sa, nextTick as et } from "vue";
4
- import { SettingsSection as _e, Callout as j, Button as U, SettingsRow as we, Skeleton as Le, Badge as sa, PathDisplay as De, Form as qe, FormItem as $e, Select as va, Input as Pe, Dialog as Ze, ensureDeviceViewport as at, AppRoot as tt, ConfigProvider as lt, PageContent as ba, PageHeader as ga, AppLayout as nt, AppSidebar as ot, AppSidebarUser as st, FileTypeIcon as ta, IconButton as la, Breadcrumb as it, FilePicker as ut, TreeView as rt, DataGrid as dt, Link as Ea, FormActions as je, Card as ka, Checkbox as ct, LoadingArea as vt } from "@synopackageland/ui";
5
- import { Timer as ft, Info as pt, ShieldCheck as Ta, ChevronRight as Pa, ChevronLeft as mt, RotateCw as yt } from "@lucide/vue";
6
- const Ke = /* @__PURE__ */ Symbol("executor-setup"), za = /* @__PURE__ */ Symbol("executor-preload");
7
- function bt() {
8
- return Ne(za, p(!1));
1
+ import { appRefusal as ua, appDenial as Be, delegateCopy as Ve, appLifecycle as xe, lifecycleRetryDelay as ra, uiLocale as da, lifecycleCopy as Ue, shellCopy as Oa, isFullPage as _a, nasCopy as Pe, nasErrorCopy as xa, format as na, saveCopy as ca, saveError as Ge, createNasProvider as Ca, identityCopy as qa, backgroundCopy as Fa, createBackgroundPickerProvider as Ma, backgroundErrorCopy as Ka, requestKey as pa, labelSeparator as $a, lifecycleRefusal as Ha, errorCopy as Xa, scopedPicker as Ga, authorizationCopy as Wa } from "./index.js";
2
+ import { DEFAULT_REQUEST_TIMEOUT as po, FILE_STATION_APP as mo, LIFECYCLE_RETRY_MAX_MS as yo, LIFECYCLE_STARTING_RETRY_MAX_MS as bo, activePage as go, authorizationCatalogs as ho, backgroundCatalogs as ko, bridgeCatalogs as wo, bridgeErrorCopy as _o, catalogs as xo, clientTimeout as Co, createBackgroundSaveFacade as $o, createDsmSession as So, createFileTransfers as Eo, createPortalAccess as Po, createStandaloneContext as To, createStandaloneHost as zo, decodeResponse as Ao, delegateCatalogs as Ro, encodeRequest as Io, fileStationPath as Do, identityCatalogs as Vo, mergeCatalogs as Uo, nasCatalogs as No, openFileInFileStation as Bo, openFolderInFileStation as Lo, portalCatalogs as Oo, portalMessages as qo, protocolCodes as Fo, protocolOps as Mo, protocolSchemas as Ko, saveCatalogs as Ho, shellCatalogs as Xo, shellPages as Go, uiLocales as Wo } from "./index.js";
3
+ import { inject as Ne, ref as f, computed as C, onBeforeUnmount as he, Comment as Ja, Text as Ya, Fragment as ie, watch as Le, onMounted as Se, defineComponent as fe, openBlock as l, createElementBlock as S, normalizeClass as Ie, createElementVNode as A, createVNode as v, unref as e, toDisplayString as i, createCommentVNode as y, renderSlot as ge, createTextVNode as h, renderList as Ce, createBlock as m, withCtx as n, resolveDynamicComponent as Ke, normalizeProps as We, mergeProps as Sa, withModifiers as qe, isRef as Je, provide as Ze, useTemplateRef as Xe, useSlots as Qa, watchEffect as ma, guardReactiveProps as ya, createSlots as oa, Teleport as Za, markRaw as ja, h as et, onUnmounted as Ea, nextTick as at } from "vue";
4
+ import { SettingsSection as _e, Callout as j, Button as U, SettingsRow as we, Skeleton as Oe, Badge as sa, PathDisplay as De, Form as Fe, FormItem as $e, Select as va, Input as Te, Dialog as je, ensureDeviceViewport as tt, AppRoot as lt, ConfigProvider as nt, PageContent as ba, PageHeader as ga, AppLayout as ot, AppSidebar as st, AppSidebarUser as it, FileTypeIcon as ta, IconButton as la, Breadcrumb as ut, FilePicker as rt, TreeView as dt, DataGrid as ct, Link as Pa, FormActions as ea, Card as ha, Checkbox as vt, LoadingArea as ft } from "@synopackageland/ui";
5
+ import { Timer as pt, Info as mt, ShieldCheck as Ta, ChevronRight as za, ChevronLeft as yt, RotateCw as bt } from "@lucide/vue";
6
+ const He = /* @__PURE__ */ Symbol("executor-setup"), Aa = /* @__PURE__ */ Symbol("executor-preload");
7
+ function gt() {
8
+ return Ne(Aa, f(!1));
9
9
  }
10
- function Aa() {
11
- return Ne(Ke, {
10
+ function Ra() {
11
+ return Ne(He, {
12
12
  async status() {
13
13
  return { state: "blocked", reason: "setup-unavailable" };
14
14
  },
@@ -20,268 +20,293 @@ function Aa() {
20
20
  }
21
21
  });
22
22
  }
23
- const gt = ["password_rejected", "password_required", "password_confirm_failed"];
24
- function Je(t) {
23
+ const ht = ["password_rejected", "password_required", "password_confirm_failed"];
24
+ function Ye(t) {
25
25
  if (t.state !== "blocked") return;
26
- if (t.code) return gt.includes(t.code) ? t.code : void 0;
27
- const b = t.reason ?? "";
28
- if (/^dsm_3121\b/.test(b)) return "password_rejected";
29
- if (/^\S+: administrator password confirmation failed\./.test(b)) return "password_confirm_failed";
26
+ if (t.code) return ht.includes(t.code) ? t.code : void 0;
27
+ const g = t.reason ?? "";
28
+ if (/^dsm_3121\b/.test(g)) return "password_rejected";
29
+ if (/^\S+: administrator password confirmation failed\./.test(g)) return "password_confirm_failed";
30
30
  }
31
31
  function kt(t) {
32
32
  return /: the executor status request failed\.$/.test(t ?? "");
33
33
  }
34
- function Qn(t) {
35
- const b = p(), o = C(() => b.value ? { code: b.value, ...ua({ code: b.value }, t.locale, t.displayName) } : void 0), a = p(!1), i = p(!1), u = p(), r = p("");
36
- let c = !1, k = 0, d, f;
34
+ function jn(t) {
35
+ const g = f(), o = C(() => g.value ? { code: g.value, ...ua({ code: g.value }, t.locale, t.displayName) } : void 0), a = f(!1), s = f(!1), u = f(), r = f("");
36
+ let c = !1, b = 0, d, p;
37
37
  function x() {
38
- clearTimeout(d), clearTimeout(f);
38
+ clearTimeout(d), clearTimeout(p);
39
39
  }
40
- function P($ = "") {
41
- k++, x(), u.value = void 0, r.value = $;
40
+ function T(D = "") {
41
+ b++, x(), u.value = void 0, r.value = D;
42
42
  }
43
- function w($) {
44
- const L = Be($);
45
- return c || !L ? !1 : (P(), b.value = L, !0);
43
+ function _(D) {
44
+ const K = Be(D);
45
+ return c || !K ? !1 : (T(), g.value = K, !0);
46
46
  }
47
- async function _($, L) {
48
- const X = k;
47
+ async function w(D, K) {
48
+ const L = b;
49
49
  try {
50
- return await t.call($, L);
51
- } catch (K) {
52
- throw X === k && w(K), K;
50
+ return await t.call(D, K);
51
+ } catch (M) {
52
+ throw L === b && _(M), M;
53
53
  }
54
54
  }
55
- function S($) {
55
+ function $(D) {
56
56
  if (c) return;
57
- const L = Date.parse($.expiresAt) - Date.now();
58
- if (!Number.isFinite(L) || L <= 0) {
59
- P("expired");
57
+ const K = Date.parse(D.expiresAt) - Date.now();
58
+ if (!Number.isFinite(K) || K <= 0) {
59
+ T("expired");
60
60
  return;
61
61
  }
62
- x(), b.value = void 0, u.value = $, r.value = "", d = setTimeout(() => P("expired"), L);
63
- const X = k;
64
- f = setTimeout(async () => {
62
+ x(), g.value = void 0, u.value = D, r.value = "", d = setTimeout(() => T("expired"), K);
63
+ const L = b;
64
+ p = setTimeout(async () => {
65
65
  try {
66
- const K = await _("identity.session");
67
- !c && k === X && S(K);
68
- } catch (K) {
69
- !c && k === X && !w(K) && P("expired");
66
+ const M = await w("identity.session");
67
+ !c && b === L && $(M);
68
+ } catch (M) {
69
+ !c && b === L && !_(M) && T("expired");
70
70
  }
71
- }, Math.min(6e4, L));
71
+ }, Math.min(6e4, K));
72
72
  }
73
- async function h() {
73
+ async function k() {
74
74
  try {
75
- const $ = await _("identity.status");
75
+ const D = await w("identity.status");
76
76
  if (c) return;
77
- if (b.value = void 0, a.value = $.enabled === !0, a.value)
77
+ if (g.value = void 0, a.value = D.enabled === !0, a.value)
78
78
  try {
79
- S(await _("identity.session", { bootstrap: !0 }));
80
- } catch (L) {
81
- !c && !Be(L) && P();
79
+ $(await w("identity.session", { bootstrap: !0 }));
80
+ } catch (K) {
81
+ !c && !Be(K) && T();
82
82
  }
83
- } catch ($) {
83
+ } catch (D) {
84
84
  if (c) return;
85
- const L = $?.code;
86
- a.value = !Be($) && !["unknown_method", "session_required"].includes(L || ""), a.value && (r.value = "unavailable");
85
+ const K = D?.code;
86
+ a.value = !Be(D) && !["unknown_method", "session_required"].includes(K || ""), a.value && (r.value = "unavailable");
87
87
  } finally {
88
- c || (i.value = !0);
88
+ c || (s.value = !0);
89
89
  }
90
90
  }
91
- async function z($, L) {
92
- const X = k;
91
+ async function z(D, K) {
92
+ const L = b;
93
93
  try {
94
- const K = await t.call($, L);
95
- if (c || a.value && X !== k) throw { code: "session_required" };
96
- return K;
97
- } catch (K) {
98
- X === k && w(K);
99
- const F = K?.code;
100
- throw !c && X === k && a.value && ["session_required", "session_revalidation_required"].includes(F || "") && P(F === "session_revalidation_required" ? "revalidate" : "expired"), K;
94
+ const M = await t.call(D, K);
95
+ if (c || a.value && L !== b) throw { code: "session_required" };
96
+ return M;
97
+ } catch (M) {
98
+ L === b && _(M);
99
+ const q = M?.code;
100
+ throw !c && L === b && a.value && ["session_required", "session_revalidation_required"].includes(q || "") && T(q === "session_revalidation_required" ? "revalidate" : "expired"), M;
101
101
  }
102
102
  }
103
- async function B($, L, X) {
104
- const K = await _("identity.login", { account: $, password: L, otp: X });
105
- c || (k++, S(K));
103
+ async function B(D, K, L) {
104
+ const M = await w("identity.login", { account: D, password: K, otp: L });
105
+ c || (b++, $(M));
106
106
  }
107
107
  async function O() {
108
- const $ = await _("identity.session", { bootstrap: !0 });
109
- c || (k++, S($));
108
+ const D = await w("identity.session", { bootstrap: !0 });
109
+ c || (b++, $(D));
110
110
  }
111
- async function I() {
112
- await _("identity.logout"), c || P();
111
+ async function E() {
112
+ await w("identity.logout"), c || T();
113
113
  }
114
- function q() {
115
- c = !0, P();
114
+ function F() {
115
+ c = !0, T();
116
116
  }
117
- return { enabled: a, ready: i, subject: u, notice: r, denied: o, start: h, call: z, login: B, bootstrap: O, logout: I, dispose: q };
117
+ return { enabled: a, ready: s, subject: u, notice: r, denied: o, start: k, call: z, login: B, bootstrap: O, logout: E, dispose: F };
118
118
  }
119
- function ht() {
120
- const t = p(!1), b = p();
121
- let o = !1, a = 0, i;
119
+ function wt() {
120
+ const t = f(!1), g = f();
121
+ let o = !1, a = 0, s;
122
122
  function u() {
123
- a++, i?.abort(), i = void 0, t.value = !1, b.value = void 0;
123
+ a++, s?.abort(), s = void 0, t.value = !1, g.value = void 0;
124
124
  }
125
125
  async function r(c) {
126
126
  if (o || t.value) return;
127
- const k = ++a, d = new AbortController();
128
- i = d, t.value = !0, b.value = void 0;
127
+ const b = ++a, d = new AbortController();
128
+ s = d, t.value = !0, g.value = void 0;
129
129
  try {
130
- const f = await c(d.signal);
131
- return !o && k === a ? f : void 0;
132
- } catch (f) {
133
- !o && k === a && (b.value = f);
130
+ const p = await c(d.signal);
131
+ return !o && b === a ? p : void 0;
132
+ } catch (p) {
133
+ !o && b === a && (g.value = p);
134
134
  return;
135
135
  } finally {
136
- !o && k === a && (t.value = !1, i = void 0);
136
+ !o && b === a && (t.value = !1, s = void 0);
137
137
  }
138
138
  }
139
- return ke(() => {
139
+ return he(() => {
140
140
  o = !0, u();
141
- }), { busy: t, error: b, run: r, cancel: u };
141
+ }), { busy: t, error: g, run: r, cancel: u };
142
142
  }
143
- function Ra(t) {
144
- return Array.isArray(t) && t.some((b) => {
145
- const o = b;
146
- return o.type === Wa ? !1 : o.type === Ja ? String(o.children).trim() !== "" : o.type === se ? Ra(o.children) : !0;
143
+ const ka = ".sds-standalone-main-window";
144
+ function _t(t) {
145
+ const g = { brand: !1, user: !1 };
146
+ try {
147
+ const o = t.closest(ka);
148
+ if (!t.isConnected || !o || o.classList.contains("sds-standalone-main-window--no-banner")) return g;
149
+ const a = (s) => Array.from(o.querySelectorAll(s)).some((u) => {
150
+ if (t.contains(u) || u.closest(ka) !== o || !u.textContent?.trim()) return !1;
151
+ const r = u.ownerDocument.defaultView;
152
+ if (!r) return !1;
153
+ for (let b = u; b; b = b.parentElement) {
154
+ const d = r.getComputedStyle(b);
155
+ if (b.hidden || d.display === "none" || d.visibility === "hidden" || d.visibility === "collapse" || d.opacity === "0") return !1;
156
+ }
157
+ const c = u.getBoundingClientRect();
158
+ return c.width > 0 && c.height > 0;
159
+ });
160
+ return {
161
+ brand: a(".sds-standalone-main-window-header-text"),
162
+ user: a(".sds-standalone-main-window-header .sds-standalone-main-window-header__toolbar__btn")
163
+ };
164
+ } catch {
165
+ return g;
166
+ }
167
+ }
168
+ function Ia(t) {
169
+ return Array.isArray(t) && t.some((g) => {
170
+ const o = g;
171
+ return o.type === Ja ? !1 : o.type === Ya ? String(o.children).trim() !== "" : o.type === ie ? Ia(o.children) : !0;
147
172
  });
148
173
  }
149
- function wt(t) {
150
- return Array.from(t.childNodes).some((b) => b.nodeType === Node.ELEMENT_NODE || b.nodeType === Node.TEXT_NODE && b.textContent.trim() !== "");
174
+ function xt(t) {
175
+ return Array.from(t.childNodes).some((g) => g.nodeType === Node.ELEMENT_NODE || g.nodeType === Node.TEXT_NODE && g.textContent.trim() !== "");
151
176
  }
152
- const _t = { status: pt, background: ft };
153
- function xt(t, b) {
154
- return t.map((o) => typeof o == "string" ? { id: o, title: b[o], icon: _t[o] } : o);
177
+ const Ct = { status: mt, background: pt };
178
+ function $t(t, g) {
179
+ return t.map((o) => typeof o == "string" ? { id: o, title: g[o], icon: Ct[o] } : o);
155
180
  }
156
- function Ct(t) {
157
- const b = /* @__PURE__ */ new Map(), o = { items: [] };
181
+ function St(t) {
182
+ const g = /* @__PURE__ */ new Map(), o = { items: [] };
158
183
  for (const a of t) {
159
184
  if (a.hidden) continue;
160
- let i = a.placement === "bottom" ? o : b.get(a.group);
161
- i || b.set(a.group, i = a.group === void 0 ? { items: [] } : { label: a.group, items: [] }), i.items.push({ key: a.id, label: a.title, icon: a.icon, badge: a.badge });
185
+ let s = a.placement === "bottom" ? o : g.get(a.group);
186
+ s || g.set(a.group, s = a.group === void 0 ? { items: [] } : { label: a.group, items: [] }), s.items.push({ key: a.id, label: a.title, icon: a.icon, badge: a.badge });
162
187
  }
163
- return o.items.length ? [...b.values(), o] : [...b.values()];
188
+ return o.items.length ? [...g.values(), o] : [...g.values()];
164
189
  }
165
- const $t = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, St = 6e4, Et = 1e3;
166
- function Ia(t, b) {
167
- const o = Aa(), a = C(() => Ve(t.locale)), i = p(), u = p(""), r = p(!1), c = p(!1), k = p(!1), d = p(), f = p(!1), x = C(() => f.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[$t[d.value.confirm]] : "");
168
- He(u, () => {
169
- f.value = !1;
190
+ const Et = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Pt = 6e4, Tt = 1e3;
191
+ function Da(t, g) {
192
+ const o = Ra(), a = C(() => Ve(t.locale)), s = f(), u = f(""), r = f(!1), c = f(!1), b = f(!1), d = f(), p = f(!1), x = C(() => p.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[Et[d.value.confirm]] : "");
193
+ Le(u, () => {
194
+ p.value = !1;
170
195
  });
171
- const P = p(), w = p(""), _ = p([]), S = C(() => P.value?.scope_mode === "install-selected"), h = C(() => !!P.value?.scope_mode), z = C(() => [{ label: a.value.homeScope, value: "home" }, ..._.value]), B = C(() => !S.value || !!w.value && z.value.some((W) => W.value === w.value)), O = C(() => S.value && !P.value?.selection);
172
- let I = !1;
173
- async function q(W) {
174
- const oe = W ?? await o.status();
175
- if (I || (i.value = oe, !t.ctx || xe(oe))) return;
196
+ const T = f(), _ = f(""), w = f([]), $ = C(() => T.value?.scope_mode === "install-selected"), k = C(() => !!T.value?.scope_mode), z = C(() => [{ label: a.value.homeScope, value: "home" }, ...w.value]), B = C(() => !$.value || !!_.value && z.value.some((X) => X.value === _.value)), O = C(() => $.value && !T.value?.selection);
197
+ let E = !1;
198
+ async function F(X) {
199
+ const ne = X ?? await o.status();
200
+ if (E || (s.value = ne, !t.ctx || xe(ne))) return;
176
201
  const H = await t.ctx.call("delegate.status");
177
- if (I || (P.value = H, H.scope_mode !== "install-selected")) return;
178
- const le = [];
179
- let ae = 0;
202
+ if (E || (T.value = H, H.scope_mode !== "install-selected")) return;
203
+ const ae = [];
204
+ let le = 0;
180
205
  for (let re = 0; re < 128; re++) {
181
- const Z = await t.ctx.call("bg.browse", { offset: ae });
182
- if (I) return;
183
- if (!Array.isArray(Z.shares) || !Number.isSafeInteger(Z.total) || Z.total < 0 || !Z.shares.length && ae < Z.total) throw { code: "EXECUTOR_PROTOCOL" };
184
- for (const M of Z.shares)
185
- M.isdir && M.path === "/" + M.name && !["home", "homes"].includes(M.name.toLowerCase()) && le.push({ label: M.name, value: "shared:" + M.name });
186
- if (ae += Z.shares.length, ae >= Z.total) break;
206
+ const Z = await t.ctx.call("bg.browse", { offset: le });
207
+ if (E) return;
208
+ if (!Array.isArray(Z.shares) || !Number.isSafeInteger(Z.total) || Z.total < 0 || !Z.shares.length && le < Z.total) throw { code: "EXECUTOR_PROTOCOL" };
209
+ for (const G of Z.shares)
210
+ G.isdir && G.path === "/" + G.name && !["home", "homes"].includes(G.name.toLowerCase()) && ae.push({ label: G.name, value: "shared:" + G.name });
211
+ if (le += Z.shares.length, le >= Z.total) break;
187
212
  if (re === 127) throw { code: "EXECUTOR_PROTOCOL" };
188
213
  }
189
- _.value = le, w.value = H.selection?.scope ?? H.preselection ?? "";
214
+ w.value = ae, _.value = H.selection?.scope ?? H.preselection ?? "";
190
215
  }
191
- async function $(W) {
216
+ async function D(X) {
192
217
  if (!(!t.admin || r.value)) {
193
- r.value = !0, k.value = !1, d.value = void 0;
218
+ r.value = !0, b.value = !1, d.value = void 0;
194
219
  try {
195
- await q(W);
220
+ await F(X);
196
221
  } catch {
197
- I || (k.value = !0);
222
+ E || (b.value = !0);
198
223
  } finally {
199
- I || (r.value = !1);
224
+ E || (r.value = !1);
200
225
  }
201
226
  }
202
227
  }
203
- const L = () => $();
204
- async function X() {
205
- if (!t.admin || r.value || !u.value || !B.value || k.value) return;
206
- r.value = !0, k.value = !1, d.value = void 0;
207
- const W = u.value, oe = w.value;
228
+ const K = () => D();
229
+ async function L() {
230
+ if (!t.admin || r.value || !u.value || !B.value || b.value) return;
231
+ r.value = !0, b.value = !1, d.value = void 0;
232
+ const X = u.value, ne = _.value;
208
233
  u.value = "", c.value = !0;
209
234
  try {
210
- let H = S.value ? await o.authorize(W, w.value) : await o.authorize(W);
211
- const le = Je(H);
212
- if (le) {
213
- I || (d.value = { confirm: le }, u.value = W);
235
+ let H = $.value ? await o.authorize(X, _.value) : await o.authorize(X);
236
+ const ae = Ye(H);
237
+ if (ae) {
238
+ E || (d.value = { confirm: ae }, u.value = X);
214
239
  return;
215
240
  }
216
- if (await q(H), !I && S.value && H.state === "ready" && O.value && (H = await o.authorize(W, w.value), await q(H)), H.state !== "ready" && H.requested && await F(H.requested) && (H = await o.status(), await q(H)), H.state === "ready" && S.value && P.value?.selection?.scope !== oe) {
217
- I || (d.value = { reason: "", code: "selection_failed" });
241
+ if (await F(H), !E && $.value && H.state === "ready" && O.value && (H = await o.authorize(X, _.value), await F(H)), H.state !== "ready" && H.requested && await q(H.requested) && (H = await o.status(), await F(H)), H.state === "ready" && $.value && T.value?.selection?.scope !== ne) {
242
+ E || (d.value = { reason: "", code: "selection_failed" });
218
243
  return;
219
244
  }
220
245
  if (H.state !== "ready") {
221
- I || (d.value = { reason: H.reason ?? "", code: H.code });
246
+ E || (d.value = { reason: H.reason ?? "", code: H.code });
222
247
  return;
223
248
  }
224
- I || await b();
249
+ E || await g();
225
250
  } catch {
226
- I || (k.value = !0);
251
+ E || (b.value = !0);
227
252
  } finally {
228
- I || (r.value = !1, c.value = !1);
253
+ E || (r.value = !1, c.value = !1);
229
254
  }
230
255
  }
231
- function K() {
232
- return !u.value && !r.value ? (f.value = !0, Promise.resolve()) : X();
256
+ function M() {
257
+ return !u.value && !r.value ? (p.value = !0, Promise.resolve()) : L();
233
258
  }
234
- async function F(W) {
235
- for (const oe = Date.now() + St; !I; await new Promise((H) => setTimeout(H, Et))) {
259
+ async function q(X) {
260
+ for (const ne = Date.now() + Pt; !E; await new Promise((H) => setTimeout(H, Tt))) {
236
261
  const H = (await t.ctx?.call("delegate.status").catch(() => {
237
262
  }))?.selection;
238
- if (H?.scope === W.scope && H.generation > W.generation) return !0;
239
- if (Date.now() >= oe) return !1;
263
+ if (H?.scope === X.scope && H.generation > X.generation) return !0;
264
+ if (Date.now() >= ne) return !1;
240
265
  }
241
266
  return !1;
242
267
  }
243
- const ie = (W) => W?.code === "executor_starting" ? a.value.statusStarting : kt(W?.reason) ? a.value.statusUnreachable : void 0;
268
+ const te = (X) => X?.code === "executor_starting" ? a.value.statusStarting : kt(X?.reason) ? a.value.statusUnreachable : void 0;
244
269
  return Se(() => {
245
- o.subscribe?.((W) => {
246
- !I && !Je(W) && (i.value = W);
247
- }), $(t.initial);
248
- }), ke(() => {
249
- I = !0, u.value = "";
250
- }), { status: i, password: u, busy: r, confirming: c, error: k, failure: d, passwordError: x, scope: P, chosen: w, options: z, dynamic: S, files: h, canConfirm: B, needsScope: O, refresh: L, authorize: X, submit: K, explain: ie };
270
+ o.subscribe?.((X) => {
271
+ !E && !Ye(X) && (s.value = X);
272
+ }), D(t.initial);
273
+ }), he(() => {
274
+ E = !0, u.value = "";
275
+ }), { status: s, password: u, busy: r, confirming: c, error: b, failure: d, passwordError: x, scope: T, chosen: _, options: z, dynamic: $, files: k, canConfirm: B, needsScope: O, refresh: K, authorize: L, submit: M, explain: te };
251
276
  }
252
- function Fe(t, b) {
253
- let o = !1, a, i = 0;
277
+ function Me(t, g) {
278
+ let o = !1, a, s = 0;
254
279
  function u() {
255
280
  clearTimeout(a), a = setTimeout(() => {
256
- b().then(() => {
281
+ g().then(() => {
257
282
  !o && t() && u();
258
283
  });
259
- }, ra(i++, t()));
284
+ }, ra(s++, t()));
260
285
  }
261
- He(t, (r) => {
262
- clearTimeout(a), i = 0, r && !o && u();
263
- }), ke(() => {
286
+ Le(t, (r) => {
287
+ clearTimeout(a), s = 0, r && !o && u();
288
+ }), he(() => {
264
289
  o = !0, clearTimeout(a);
265
290
  });
266
291
  }
267
- const Tt = ["data-audience"], Pt = {
292
+ const zt = ["data-audience"], At = {
268
293
  class: "executor-consent-icon",
269
294
  "aria-hidden": "true"
270
- }, zt = { class: "executor-consent-body" }, At = { class: "executor-consent-head" }, Rt = {
295
+ }, Rt = { class: "executor-consent-body" }, It = { class: "executor-consent-head" }, Dt = {
271
296
  class: "executor-consent-title",
272
297
  "data-consent-title": ""
273
- }, It = {
298
+ }, Vt = {
274
299
  class: "executor-consent-lead",
275
300
  "data-consent-lead": ""
276
- }, Dt = {
301
+ }, Ut = {
277
302
  key: 0,
278
303
  class: "executor-consent-lead executor-consent-ask",
279
304
  "data-consent-ask": ""
280
- }, Vt = {
305
+ }, Nt = {
281
306
  key: 0,
282
307
  class: "executor-consent-more",
283
308
  "data-consent-points": ""
284
- }, Ut = /* @__PURE__ */ fe({
309
+ }, Bt = /* @__PURE__ */ fe({
285
310
  __name: "ExecutorConsent",
286
311
  props: {
287
312
  admin: { type: Boolean },
@@ -291,55 +316,55 @@ const Tt = ["data-audience"], Pt = {
291
316
  layout: {}
292
317
  },
293
318
  setup(t) {
294
- const b = t, o = C(() => Ve(b.locale)), a = C(() => ["zh-TW", "zh-CN", "ja"].includes(da(b.locale ?? "en")) ? "" : " "), i = C(() => [o.value.consentWhy, b.purpose || (b.files ? o.value.consentPurposeFiles : o.value.consentPurpose)].join(a.value)), u = C(() => [o.value.pointPassword, o.value.pointLimited, o.value.pointUpdate, o.value.pointRevoke]);
295
- return (r, c) => (l(), E("div", {
319
+ const g = t, o = C(() => Ve(g.locale)), a = C(() => ["zh-TW", "zh-CN", "ja"].includes(da(g.locale ?? "en")) ? "" : " "), s = C(() => [o.value.consentWhy, g.purpose || (g.files ? o.value.consentPurposeFiles : o.value.consentPurpose)].join(a.value)), u = C(() => [o.value.pointPassword, o.value.pointLimited, o.value.pointUpdate, o.value.pointRevoke]);
320
+ return (r, c) => (l(), S("div", {
296
321
  class: Ie(["executor-consent", `executor-consent-${t.layout ?? "inline"}`]),
297
322
  "data-executor-consent": "",
298
323
  "data-audience": t.admin ? "admin" : "user"
299
324
  }, [
300
- A("span", Pt, [
325
+ A("span", At, [
301
326
  v(e(Ta), {
302
327
  size: t.layout === "page" ? 24 : 18
303
328
  }, null, 8, ["size"])
304
329
  ]),
305
- A("div", zt, [
306
- A("div", At, [
307
- A("p", Rt, s(t.admin ? o.value.consentTitle : o.value.consentTitleUser), 1),
308
- A("p", It, s(i.value), 1),
309
- t.admin ? y("", !0) : (l(), E("p", Dt, s(o.value.consentAsk), 1))
330
+ A("div", Rt, [
331
+ A("div", It, [
332
+ A("p", Dt, i(t.admin ? o.value.consentTitle : o.value.consentTitleUser), 1),
333
+ A("p", Vt, i(s.value), 1),
334
+ t.admin ? y("", !0) : (l(), S("p", Ut, i(o.value.consentAsk), 1))
310
335
  ]),
311
336
  ge(r.$slots, "default", {}, void 0, !0),
312
- t.admin ? (l(), E("details", Vt, [
337
+ t.admin ? (l(), S("details", Nt, [
313
338
  A("summary", null, [
314
- v(e(Pa), {
339
+ v(e(za), {
315
340
  class: "executor-consent-chevron",
316
341
  size: 14,
317
342
  "aria-hidden": "true"
318
343
  }),
319
- g(s(o.value.consentDetails), 1)
344
+ h(i(o.value.consentDetails), 1)
320
345
  ]),
321
346
  A("ul", null, [
322
- (l(!0), E(se, null, Ce(u.value, (k) => (l(), E("li", { key: k }, s(k), 1))), 128))
347
+ (l(!0), S(ie, null, Ce(u.value, (b) => (l(), S("li", { key: b }, i(b), 1))), 128))
323
348
  ])
324
349
  ])) : y("", !0)
325
350
  ])
326
- ], 10, Tt));
351
+ ], 10, zt));
327
352
  }
328
- }), me = (t, b) => {
353
+ }), me = (t, g) => {
329
354
  const o = t.__vccOpts || t;
330
- for (const [a, i] of b)
331
- o[a] = i;
355
+ for (const [a, s] of g)
356
+ o[a] = s;
332
357
  return o;
333
- }, Ye = /* @__PURE__ */ me(Ut, [["__scopeId", "data-v-c5e4ccd1"]]), Nt = { class: "executor-alert" }, Bt = {
358
+ }, Qe = /* @__PURE__ */ me(Bt, [["__scopeId", "data-v-c5e4ccd1"]]), Lt = { class: "executor-alert" }, Ot = {
334
359
  key: 0,
335
360
  class: "executor-reason"
336
- }, Lt = {
361
+ }, qt = {
337
362
  key: 0,
338
363
  class: "executor-summary"
339
- }, Ot = {
364
+ }, Ft = {
340
365
  key: 1,
341
366
  class: "executor-summary"
342
- }, qt = ["data-executor-status"], Ft = { class: "executor-reason" }, Mt = /* @__PURE__ */ fe({
367
+ }, Mt = ["data-executor-status"], Kt = { class: "executor-reason" }, Ht = /* @__PURE__ */ fe({
343
368
  __name: "ExecutorSettings",
344
369
  props: {
345
370
  admin: { type: Boolean },
@@ -351,34 +376,34 @@ const Tt = ["data-audience"], Pt = {
351
376
  layout: {}
352
377
  },
353
378
  emits: ["confirmed"],
354
- setup(t, { expose: b, emit: o }) {
355
- const a = t, i = o, u = C(() => Ve(a.locale)), { status: r, password: c, busy: k, confirming: d, error: f, failure: x, passwordError: P, scope: w, chosen: _, options: S, dynamic: h, files: z, canConfirm: B, needsScope: O, refresh: I, submit: q, explain: $ } = Ia(a, () => i("confirmed")), L = C(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), X = C(() => ({ ready: { tone: "success", text: u.value.statusReady }, blocked: { tone: "danger", text: u.value.statusBlocked }, confirming: { tone: "info", text: u.value.statusConfirming } })[L.value ?? "confirming"]), K = C(() => d.value ? void 0 : xe(r.value));
356
- Fe(() => K.value, I);
357
- const F = C(() => !K.value && (r.value?.state === "needs-admin-approval" || O.value)), ie = C(() => F.value || !!r.value?.retry);
358
- return b({ refresh: I }), (W, oe) => t.admin ? (l(), m(e(_e), {
379
+ setup(t, { expose: g, emit: o }) {
380
+ const a = t, s = o, u = C(() => Ve(a.locale)), { status: r, password: c, busy: b, confirming: d, error: p, failure: x, passwordError: T, scope: _, chosen: w, options: $, dynamic: k, files: z, canConfirm: B, needsScope: O, refresh: E, submit: F, explain: D } = Da(a, () => s("confirmed")), K = C(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), L = C(() => ({ ready: { tone: "success", text: u.value.statusReady }, blocked: { tone: "danger", text: u.value.statusBlocked }, confirming: { tone: "info", text: u.value.statusConfirming } })[K.value ?? "confirming"]), M = C(() => d.value ? void 0 : xe(r.value));
381
+ Me(() => M.value, E);
382
+ const q = C(() => !M.value && (r.value?.state === "needs-admin-approval" || O.value)), te = C(() => q.value || !!r.value?.retry);
383
+ return g({ refresh: E }), (X, ne) => t.admin ? (l(), m(e(_e), {
359
384
  key: 0,
360
385
  title: t.title ?? u.value.setupTitle,
361
- description: F.value ? void 0 : e(z) ? u.value.setupHelpFiles : u.value.setupHelp,
386
+ description: q.value ? void 0 : e(z) ? u.value.setupHelpFiles : u.value.setupHelp,
362
387
  collapsible: !1,
363
- "aria-busy": e(k) || !e(r) && !e(d) && !e(f)
388
+ "aria-busy": e(b) || !e(r) && !e(d) && !e(p)
364
389
  }, {
365
390
  default: n(() => [
366
- e(f) ? (l(), m(e(j), {
391
+ e(p) ? (l(), m(e(j), {
367
392
  key: 0,
368
393
  tone: "danger",
369
394
  role: "alert"
370
395
  }, {
371
396
  default: n(() => [
372
- A("span", Nt, [
373
- A("span", null, s(u.value.setupError), 1),
397
+ A("span", Lt, [
398
+ A("span", null, i(u.value.setupError), 1),
374
399
  v(e(U), {
375
400
  variant: "secondary",
376
401
  size: "sm",
377
- disabled: e(k),
378
- onClick: e(I)
402
+ disabled: e(b),
403
+ onClick: e(E)
379
404
  }, {
380
405
  default: n(() => [
381
- g(s(u.value.retry), 1)
406
+ h(i(u.value.retry), 1)
382
407
  ]),
383
408
  _: 1
384
409
  }, 8, ["disabled", "onClick"])
@@ -391,28 +416,28 @@ const Tt = ["data-audience"], Pt = {
391
416
  role: "alert"
392
417
  }, {
393
418
  default: n(() => [
394
- g(s(e(x).code === "session_ended" ? u.value.session : e($)(e(x)) ?? u.value.setupError), 1),
395
- e(x).reason ? (l(), E("span", Bt, s(e(x).reason), 1)) : y("", !0)
419
+ h(i(e(x).code === "session_ended" ? u.value.session : e(D)(e(x)) ?? u.value.setupError), 1),
420
+ e(x).reason ? (l(), S("span", Ot, i(e(x).reason), 1)) : y("", !0)
396
421
  ]),
397
422
  _: 1
398
423
  })) : y("", !0),
399
- K.value ? (l(), m(e(j), {
424
+ M.value ? (l(), m(e(j), {
400
425
  key: 2,
401
426
  tone: "info",
402
427
  role: "status"
403
428
  }, {
404
429
  default: n(() => [
405
- g(s(e(Ue)(K.value, t.locale)), 1)
430
+ h(i(e(Ue)(M.value, t.locale)), 1)
406
431
  ]),
407
432
  _: 1
408
- })) : (l(), E(se, { key: 3 }, [
409
- !e(r) && !e(d) && !e(f) ? (l(), E("div", Lt, [
433
+ })) : (l(), S(ie, { key: 3 }, [
434
+ !e(r) && !e(d) && !e(p) ? (l(), S("div", qt, [
410
435
  v(e(we), {
411
436
  label: u.value.status,
412
437
  "data-placeholder-row": ""
413
438
  }, {
414
439
  default: n(() => [
415
- v(e(Le), {
440
+ v(e(Oe), {
416
441
  width: "5rem",
417
442
  height: "20px"
418
443
  })
@@ -420,24 +445,24 @@ const Tt = ["data-audience"], Pt = {
420
445
  _: 1
421
446
  }, 8, ["label"])
422
447
  ])) : y("", !0),
423
- (e(r) || e(d)) && !F.value ? (l(), E("div", Ot, [
448
+ (e(r) || e(d)) && !q.value ? (l(), S("div", Ft, [
424
449
  v(e(we), {
425
450
  label: u.value.status
426
451
  }, {
427
452
  default: n(() => [
428
453
  A("span", {
429
454
  role: "status",
430
- "data-executor-status": L.value
455
+ "data-executor-status": K.value
431
456
  }, [
432
457
  v(e(sa), {
433
- tone: X.value.tone
458
+ tone: L.value.tone
434
459
  }, {
435
460
  default: n(() => [
436
- g(s(X.value.text), 1)
461
+ h(i(L.value.text), 1)
437
462
  ]),
438
463
  _: 1
439
464
  }, 8, ["tone"])
440
- ], 8, qt)
465
+ ], 8, Mt)
441
466
  ]),
442
467
  _: 1
443
468
  }, 8, ["label"]),
@@ -446,54 +471,54 @@ const Tt = ["data-audience"], Pt = {
446
471
  label: u.value.details
447
472
  }, {
448
473
  default: n(() => [
449
- e($)(e(r)) ? (l(), E(se, { key: 0 }, [
450
- g(s(e($)(e(r))), 1),
451
- A("span", Ft, s(e(r).reason), 1)
452
- ], 64)) : (l(), E(se, { key: 1 }, [
453
- g(s(e(r).reason), 1)
474
+ e(D)(e(r)) ? (l(), S(ie, { key: 0 }, [
475
+ h(i(e(D)(e(r))), 1),
476
+ A("span", Kt, i(e(r).reason), 1)
477
+ ], 64)) : (l(), S(ie, { key: 1 }, [
478
+ h(i(e(r).reason), 1)
454
479
  ], 64))
455
480
  ]),
456
481
  _: 1
457
482
  }, 8, ["label"])) : y("", !0),
458
- e(w)?.selection ? (l(), m(e(we), {
483
+ e(_)?.selection ? (l(), m(e(we), {
459
484
  key: 1,
460
485
  label: u.value.protectedScope
461
486
  }, {
462
487
  default: n(() => [
463
488
  v(e(De), {
464
- path: e(w).selection.root
489
+ path: e(_).selection.root
465
490
  }, null, 8, ["path"])
466
491
  ]),
467
492
  _: 1
468
493
  }, 8, ["label"])) : y("", !0)
469
494
  ])) : y("", !0),
470
- L.value === "blocked" && !F.value ? (l(), m(e(j), {
495
+ K.value === "blocked" && !q.value ? (l(), m(e(j), {
471
496
  key: 2,
472
497
  tone: "warning"
473
498
  }, {
474
499
  default: n(() => [
475
- g(s(e(z) ? u.value.blocked : u.value.executorBlocked), 1)
500
+ h(i(e(z) ? u.value.blocked : u.value.executorBlocked), 1)
476
501
  ]),
477
502
  _: 1
478
503
  })) : y("", !0),
479
- e(w)?.mismatch ? (l(), m(e(j), {
504
+ e(_)?.mismatch ? (l(), m(e(j), {
480
505
  key: 3,
481
506
  tone: "warning"
482
507
  }, {
483
508
  default: n(() => [
484
- g(s(u.value.scopeMismatch), 1)
509
+ h(i(u.value.scopeMismatch), 1)
485
510
  ]),
486
511
  _: 1
487
512
  })) : y("", !0),
488
- ie.value ? (l(), m(Me(F.value ? Ye : "div"), Ge($a({ key: 4 }, F.value ? { admin: !0, locale: t.locale, files: e(z), purpose: t.purpose, layout: t.layout } : {})), {
513
+ te.value ? (l(), m(Ke(q.value ? Qe : "div"), We(Sa({ key: 4 }, q.value ? { admin: !0, locale: t.locale, files: e(z), purpose: t.purpose, layout: t.layout } : {})), {
489
514
  default: n(() => [
490
- v(e(qe), {
515
+ v(e(Fe), {
491
516
  direction: "vertical",
492
517
  class: "executor-form",
493
- onSubmit: Oe(e(q), ["prevent"])
518
+ onSubmit: qe(e(F), ["prevent"])
494
519
  }, {
495
520
  default: n(() => [
496
- e(h) ? (l(), m(e($e), {
521
+ e(k) ? (l(), m(e($e), {
497
522
  key: 0,
498
523
  label: u.value.scopeLabel,
499
524
  description: u.value.preselectionHelp
@@ -501,10 +526,10 @@ const Tt = ["data-audience"], Pt = {
501
526
  default: n(() => [
502
527
  v(e(va), {
503
528
  id: "delegate-scope",
504
- modelValue: e(_),
505
- "onUpdate:modelValue": oe[0] || (oe[0] = (H) => We(_) ? _.value = H : null),
506
- options: e(S),
507
- disabled: e(k) || e(f)
529
+ modelValue: e(w),
530
+ "onUpdate:modelValue": ne[0] || (ne[0] = (H) => Je(w) ? w.value = H : null),
531
+ options: e($),
532
+ disabled: e(b) || e(p)
508
533
  }, null, 8, ["modelValue", "options", "disabled"])
509
534
  ]),
510
535
  _: 1
@@ -512,8 +537,8 @@ const Tt = ["data-audience"], Pt = {
512
537
  v(e($e), {
513
538
  label: u.value.password,
514
539
  description: e(d) ? u.value.confirmingHelp : u.value.passwordNote,
515
- help: e(P),
516
- "validate-status": e(P) ? "error" : void 0,
540
+ help: e(T),
541
+ "validate-status": e(T) ? "error" : void 0,
517
542
  "validate-message-display-mode": "text"
518
543
  }, {
519
544
  after: n(({ classes: H }) => [
@@ -522,23 +547,23 @@ const Tt = ["data-audience"], Pt = {
522
547
  type: "submit",
523
548
  variant: "primary",
524
549
  loading: e(d),
525
- disabled: e(k) || e(f) || !e(B)
550
+ disabled: e(b) || e(p) || !e(B)
526
551
  }, {
527
552
  default: n(() => [
528
- g(s(e(h) ? u.value.confirmShare : u.value.authorize), 1)
553
+ h(i(e(k) ? u.value.confirmShare : u.value.authorize), 1)
529
554
  ]),
530
555
  _: 1
531
556
  }, 8, ["class", "loading", "disabled"])
532
557
  ]),
533
558
  default: n(() => [
534
- v(e(Pe), {
559
+ v(e(Te), {
535
560
  id: "delegate-password",
536
561
  modelValue: e(c),
537
- "onUpdate:modelValue": oe[1] || (oe[1] = (H) => We(c) ? c.value = H : null),
562
+ "onUpdate:modelValue": ne[1] || (ne[1] = (H) => Je(c) ? c.value = H : null),
538
563
  type: "password",
539
564
  autocomplete: "current-password",
540
- invalid: !!e(P),
541
- disabled: e(k) || e(f)
565
+ invalid: !!e(T),
566
+ disabled: e(b) || e(p)
542
567
  }, null, 8, ["modelValue", "invalid", "disabled"])
543
568
  ]),
544
569
  _: 1
@@ -554,13 +579,13 @@ const Tt = ["data-audience"], Pt = {
554
579
  _: 1
555
580
  }, 8, ["title", "description", "aria-busy"])) : y("", !0);
556
581
  }
557
- }), Da = /* @__PURE__ */ me(Mt, [["__scopeId", "data-v-96e151f8"]]), Kt = {
582
+ }), Va = /* @__PURE__ */ me(Ht, [["__scopeId", "data-v-96e151f8"]]), Xt = {
558
583
  key: 0,
559
584
  class: "executor-notice"
560
- }, Ht = {
585
+ }, Gt = {
561
586
  key: 1,
562
587
  class: "executor-notice"
563
- }, Xt = { class: "executor-notice-body" }, Gt = /* @__PURE__ */ fe({
588
+ }, Wt = { class: "executor-notice-body" }, Jt = /* @__PURE__ */ fe({
564
589
  __name: "ExecutorNotice",
565
590
  props: {
566
591
  locale: {},
@@ -568,53 +593,53 @@ const Tt = ["data-audience"], Pt = {
568
593
  ctx: {}
569
594
  },
570
595
  setup(t) {
571
- const b = t, o = C(() => Ve(b.locale)), a = Ne(Ke, void 0) ?? b.ctx.executor;
572
- a && Qe(Ke, a);
573
- const i = p("checking"), u = p(), r = p(!1), c = C(() => b.ctx.user?.isAdmin === !0), k = C(() => !u.value && (i.value === "needs-admin-approval" || i.value === "blocked")), d = C(() => a?.call ? { call: (h, z) => a.call(h, z) } : b.ctx.call ? b.ctx : void 0);
574
- let f = !1, x, P, w = 0;
575
- function _(h) {
596
+ const g = t, o = C(() => Ve(g.locale)), a = Ne(He, void 0) ?? g.ctx.executor;
597
+ a && Ze(He, a);
598
+ const s = f("checking"), u = f(), r = f(!1), c = C(() => g.ctx.user?.isAdmin === !0), b = C(() => !u.value && (s.value === "needs-admin-approval" || s.value === "blocked")), d = C(() => a?.call ? { call: (k, z) => a.call(k, z) } : g.ctx.call ? g.ctx : void 0);
599
+ let p = !1, x, T, _ = 0;
600
+ function w(k) {
576
601
  const z = u.value;
577
- if (u.value = xe(h), i.value = h?.state ?? "unknown", clearTimeout(P), h && !u.value) {
578
- w = 0;
602
+ if (u.value = xe(k), s.value = k?.state ?? "unknown", clearTimeout(T), k && !u.value) {
603
+ _ = 0;
579
604
  return;
580
605
  }
581
- u.value !== z && (w = 0), P = setTimeout(() => {
582
- S();
583
- }, ra(w++, u.value));
606
+ u.value !== z && (_ = 0), T = setTimeout(() => {
607
+ $();
608
+ }, ra(_++, u.value));
584
609
  }
585
- async function S() {
610
+ async function $() {
586
611
  if (!a) return;
587
- let h;
612
+ let k;
588
613
  try {
589
- h = await a.status();
614
+ k = await a.status();
590
615
  } catch {
591
- h = void 0;
616
+ k = void 0;
592
617
  }
593
- f || _(h);
618
+ p || w(k);
594
619
  }
595
620
  return Se(() => {
596
- a && (a.subscribe?.((h) => {
597
- !f && !Je(h) && _(h);
598
- }), x = b.ctx.reopen?.(() => {
599
- S();
600
- }), S());
601
- }), ke(() => {
602
- f = !0, clearTimeout(P), x?.();
603
- }), (h, z) => u.value ? (l(), E("div", Kt, [
621
+ a && (a.subscribe?.((k) => {
622
+ !p && !Ye(k) && w(k);
623
+ }), x = g.ctx.reopen?.(() => {
624
+ $();
625
+ }), $());
626
+ }), he(() => {
627
+ p = !0, clearTimeout(T), x?.();
628
+ }), (k, z) => u.value ? (l(), S("div", Xt, [
604
629
  v(e(j), {
605
630
  tone: "info",
606
631
  role: "status"
607
632
  }, {
608
633
  default: n(() => [
609
- g(s(e(Ue)(u.value, t.locale)), 1)
634
+ h(i(e(Ue)(u.value, t.locale)), 1)
610
635
  ]),
611
636
  _: 1
612
637
  })
613
- ])) : k.value ? (l(), E("div", Ht, [
638
+ ])) : b.value ? (l(), S("div", Gt, [
614
639
  v(e(j), { tone: "warning" }, {
615
640
  default: n(() => [
616
- A("span", Xt, [
617
- g(s(c.value ? o.value.noticeAdmin : o.value.noticeUser), 1),
641
+ A("span", Wt, [
642
+ h(i(c.value ? o.value.noticeAdmin : o.value.noticeUser), 1),
618
643
  c.value ? (l(), m(e(U), {
619
644
  key: 0,
620
645
  variant: "secondary",
@@ -622,7 +647,7 @@ const Tt = ["data-audience"], Pt = {
622
647
  onClick: z[0] || (z[0] = (B) => r.value = !0)
623
648
  }, {
624
649
  default: n(() => [
625
- g(s(o.value.noticeApprove), 1)
650
+ h(i(o.value.noticeApprove), 1)
626
651
  ]),
627
652
  _: 1
628
653
  })) : y("", !0)
@@ -630,31 +655,31 @@ const Tt = ["data-audience"], Pt = {
630
655
  ]),
631
656
  _: 1
632
657
  }),
633
- c.value ? (l(), m(e(Ze), {
658
+ c.value ? (l(), m(e(je), {
634
659
  key: 0,
635
- open: r.value && k.value,
660
+ open: r.value && b.value,
636
661
  title: o.value.setupTitle,
637
662
  width: "560px",
638
663
  "onUpdate:open": z[1] || (z[1] = (B) => r.value = B)
639
664
  }, {
640
665
  default: n(() => [
641
- v(Da, {
666
+ v(Va, {
642
667
  admin: !0,
643
668
  locale: t.locale,
644
669
  ctx: d.value,
645
670
  purpose: t.purpose,
646
671
  title: "",
647
- onConfirmed: S
672
+ onConfirmed: $
648
673
  }, null, 8, ["locale", "ctx", "purpose"])
649
674
  ]),
650
675
  _: 1
651
676
  }, 8, ["open", "title"])) : y("", !0)
652
677
  ])) : y("", !0);
653
678
  }
654
- }), Wt = /* @__PURE__ */ me(Gt, [["__scopeId", "data-v-d0ed5a05"]]), Va = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Jt = { role: "alert" }, Yt = {
679
+ }), Yt = /* @__PURE__ */ me(Jt, [["__scopeId", "data-v-d0ed5a05"]]), Ua = /* @__PURE__ */ Symbol("synopackageland:page-actions"), Qt = { role: "alert" }, Zt = {
655
680
  ref: "page-actions",
656
681
  class: "app-page-actions"
657
- }, Qt = ["hidden"], Zt = { class: "app-page-content" }, jt = /* @__PURE__ */ fe({
682
+ }, jt = ["hidden"], el = { class: "app-page-content" }, al = /* @__PURE__ */ fe({
658
683
  __name: "AppShell",
659
684
  props: {
660
685
  locale: {},
@@ -672,67 +697,90 @@ const Tt = ["data-audience"], Pt = {
672
697
  appRoot: { type: Boolean }
673
698
  },
674
699
  emits: ["update:modelValue"],
675
- setup(t, { emit: b }) {
676
- const o = t, a = b, i = C(() => La(o.locale)), u = C(() => xt(o.pages, i.value)), r = C(() => Ct(u.value)), c = C(() => u.value.find(($) => $.id === o.modelValue)), k = C(() => c.value?.title ?? i.value[o.modelValue] ?? i.value.status), d = aa("scroller"), f = C(() => o.pages.some(($) => typeof $ != "string"));
677
- He(() => o.modelValue, () => {
678
- f.value && !o.keepScroll && d.value && (d.value.$el.scrollTop = 0);
700
+ setup(t, { emit: g }) {
701
+ const o = t, a = g, s = C(() => Oa(o.locale)), u = C(() => $t(o.pages, s.value)), r = C(() => St(u.value)), c = C(() => u.value.find((L) => L.id === o.modelValue)), b = C(() => c.value?.title ?? s.value[o.modelValue] ?? s.value.status), d = Xe("scroller"), p = C(() => o.pages.some((L) => typeof L != "string"));
702
+ Le(() => o.modelValue, () => {
703
+ p.value && !o.keepScroll && d.value && (d.value.$el.scrollTop = 0);
679
704
  }, { flush: "post" });
680
- const x = Ya(), P = C(() => o.denied === !0 ? {} : o.denied || void 0), w = C(() => ua(P.value, o.locale, o.brandName ?? o.ctx?.displayName)), _ = C(() => o.ctx !== void 0 && wa(o.ctx)), S = C(() => _.value ? o.ctx : void 0), h = ($, { slots: L }) => L.default?.(), z = C(() => o.ctx !== void 0 && !_.value);
705
+ const x = Qa(), T = C(() => o.denied === !0 ? {} : o.denied || void 0), _ = C(() => ua(T.value, o.locale, o.brandName ?? o.ctx?.displayName)), w = C(() => o.ctx !== void 0 && _a(o.ctx)), $ = C(() => w.value ? o.ctx : void 0), k = (L, { slots: M }) => M.default?.(), z = C(() => o.ctx !== void 0 && !w.value);
681
706
  function B() {
682
707
  o.ctx?.host?.activateWindow?.();
683
708
  }
684
- const O = C(() => S.value?.user?.name ? S.value.user : void 0);
685
- Qe(Va, aa("page-actions"));
686
- const I = aa("notices"), q = p(!0);
687
- return ma(($) => {
688
- const L = I.value;
689
- if (!L) return;
709
+ const O = Xe("layout"), E = f({ brand: !1, user: !1 });
710
+ Le([w, O], (L, M, q) => {
711
+ const te = O.value?.$el;
712
+ if (!w.value || !te) {
713
+ E.value = { brand: !1, user: !1 };
714
+ return;
715
+ }
690
716
  const X = () => {
691
- q.value = !wt(L);
717
+ const ae = _t(te);
718
+ (ae.brand !== E.value.brand || ae.user !== E.value.user) && (E.value = ae);
692
719
  };
693
720
  X();
694
- const K = new MutationObserver(X);
695
- K.observe(L, { childList: !0, subtree: !0, characterData: !0 }), $(() => K.disconnect());
696
- }, { flush: "post" }), ma(($) => {
697
- _.value && $(at());
698
- }), ($, L) => (l(), m(Me(t.appRoot ? e(tt) : h), Ge(ya(t.appRoot ? { modalScope: "app", dialogBounds: z.value ? "viewport" : "app", style: "height: 100%;", onActivate: B } : {})), {
721
+ const ne = new MutationObserver((ae) => {
722
+ ae.some((le) => !te.contains(le.target)) && X();
723
+ });
724
+ ne.observe(te.ownerDocument.body, { subtree: !0, childList: !0, attributes: !0, attributeFilter: ["class", "style", "hidden"], characterData: !0 });
725
+ const H = te.ownerDocument.defaultView;
726
+ H?.addEventListener("resize", X), q(() => {
727
+ ne.disconnect(), H?.removeEventListener("resize", X);
728
+ });
729
+ }, { flush: "post", immediate: !0 });
730
+ const F = C(() => !E.value.user && $.value?.user?.name ? $.value.user : void 0);
731
+ Ze(Ua, Xe("page-actions"));
732
+ const D = Xe("notices"), K = f(!0);
733
+ return ma((L) => {
734
+ const M = D.value;
735
+ if (!M) return;
736
+ const q = () => {
737
+ K.value = !xt(M);
738
+ };
739
+ q();
740
+ const te = new MutationObserver(q);
741
+ te.observe(M, { childList: !0, subtree: !0, characterData: !0 }), L(() => te.disconnect());
742
+ }, { flush: "post" }), ma((L) => {
743
+ w.value && L(tt());
744
+ }), (L, M) => (l(), m(Ke(t.appRoot ? e(lt) : k), We(ya(t.appRoot ? { modalScope: "app", dialogBounds: z.value ? "viewport" : "app", style: "height: 100%;", onActivate: B } : {})), {
699
745
  default: n(() => [
700
- (l(), m(Me(t.appRoot ? e(lt) : h), Ge(ya(t.appRoot ? { locale: e(da)(t.locale) } : {})), {
746
+ (l(), m(Ke(t.appRoot ? e(nt) : k), We(ya(t.appRoot ? { locale: e(da)(t.locale) } : {})), {
701
747
  default: n(() => [
702
- P.value ? (l(), m(e(ba), {
748
+ T.value ? (l(), m(e(ba), {
703
749
  key: 0,
704
750
  class: "app-denied",
705
751
  width: t.pageWidth
706
752
  }, {
707
753
  default: n(() => [
708
- P.value.header !== !1 ? (l(), m(e(ga), {
754
+ T.value.header !== !1 ? (l(), m(e(ga), {
709
755
  key: 0,
710
- title: P.value.title ?? w.value?.title ?? i.value.deniedTitle
756
+ title: T.value.title ?? _.value?.title ?? s.value.deniedTitle
711
757
  }, null, 8, ["title"])) : y("", !0),
712
- ge($.$slots, "denied", {}, () => [
758
+ ge(L.$slots, "denied", {}, () => [
713
759
  v(e(j), { tone: "danger" }, {
714
760
  default: n(() => [
715
- A("span", Jt, s(P.value.message ?? w.value?.message ?? i.value.deniedMessage), 1)
761
+ A("span", Qt, i(T.value.message ?? _.value?.message ?? s.value.deniedMessage), 1)
716
762
  ]),
717
763
  _: 1
718
764
  })
719
765
  ], !0)
720
766
  ]),
721
767
  _: 3
722
- }, 8, ["width"])) : (l(), m(e(nt), {
768
+ }, 8, ["width"])) : (l(), m(e(ot), {
723
769
  key: 1,
724
- class: Ie(["app-shell", { "app-shell-fill": c.value?.fill }]),
770
+ ref_key: "layout",
771
+ ref: O,
772
+ class: Ie(["app-shell", { "app-shell-fill": c.value?.fill, "app-shell-portal-brand": E.value.brand }]),
725
773
  "min-height": "0",
726
- "wide-layout": t.wideLayout ?? (_.value ? "web" : "window"),
774
+ "wide-layout": t.wideLayout ?? (w.value ? "web" : "window"),
727
775
  "sidebar-storage-key": t.sidebarStorageKey,
728
776
  "brand-name": t.brandName ?? t.ctx?.displayName,
729
777
  "brand-icon": t.brandIcon ?? t.ctx?.appIcon
730
778
  }, oa({
731
779
  sidebar: n(() => [
732
- v(e(ot), {
780
+ v(e(st), {
733
781
  "model-value": t.modelValue,
734
782
  groups: r.value,
735
- "onUpdate:modelValue": L[0] || (L[0] = (X) => a("update:modelValue", X))
783
+ "onUpdate:modelValue": M[0] || (M[0] = (q) => a("update:modelValue", q))
736
784
  }, null, 8, ["model-value", "groups"])
737
785
  ]),
738
786
  default: n(() => [
@@ -745,41 +793,41 @@ const Tt = ["data-audience"], Pt = {
745
793
  default: n(() => [
746
794
  c.value?.header !== !1 ? (l(), m(e(ga), {
747
795
  key: 0,
748
- title: k.value,
796
+ title: b.value,
749
797
  description: c.value?.description ?? t.description
750
798
  }, oa({
751
799
  actions: n(() => [
752
- A("div", Yt, null, 512),
753
- ge($.$slots, "actions", { page: t.modelValue }, void 0, !0)
800
+ A("div", Zt, null, 512),
801
+ ge(L.$slots, "actions", { page: t.modelValue }, void 0, !0)
754
802
  ]),
755
803
  _: 2
756
804
  }, [
757
805
  x.meta ? {
758
806
  name: "meta",
759
807
  fn: n(() => [
760
- ge($.$slots, "meta", { page: t.modelValue }, void 0, !0)
808
+ ge(L.$slots, "meta", { page: t.modelValue }, void 0, !0)
761
809
  ]),
762
810
  key: "0"
763
811
  } : void 0
764
812
  ]), 1032, ["title", "description"])) : y("", !0),
765
- t.ctx?.executor ? (l(), m(Wt, {
813
+ t.ctx?.executor ? (l(), m(Yt, {
766
814
  key: 1,
767
815
  ctx: t.ctx,
768
816
  locale: t.locale
769
817
  }, null, 8, ["ctx", "locale"])) : y("", !0),
770
- e(Ra)(x.notices?.({ page: t.modelValue })) ? (l(), E("div", {
818
+ e(Ia)(x.notices?.({ page: t.modelValue })) ? (l(), S("div", {
771
819
  key: 2,
772
820
  ref: "notices",
773
821
  class: "app-notices",
774
- hidden: q.value
822
+ hidden: K.value
775
823
  }, [
776
- ge($.$slots, "notices", { page: t.modelValue }, void 0, !0)
777
- ], 8, Qt)) : y("", !0),
778
- A("div", Zt, [
779
- c.value?.component ? (l(), m(Me(c.value.component), {
824
+ ge(L.$slots, "notices", { page: t.modelValue }, void 0, !0)
825
+ ], 8, jt)) : y("", !0),
826
+ A("div", el, [
827
+ c.value?.component ? (l(), m(Ke(c.value.component), {
780
828
  key: c.value.id
781
829
  })) : y("", !0),
782
- ge($.$slots, "default", { page: t.modelValue }, void 0, !0)
830
+ ge(L.$slots, "default", { page: t.modelValue }, void 0, !0)
783
831
  ])
784
832
  ]),
785
833
  _: 3
@@ -787,14 +835,14 @@ const Tt = ["data-audience"], Pt = {
787
835
  ]),
788
836
  _: 2
789
837
  }, [
790
- x["sidebar-footer"] || O.value ? {
838
+ x["sidebar-footer"] || F.value ? {
791
839
  name: "sidebar-footer",
792
840
  fn: n(() => [
793
- ge($.$slots, "sidebar-footer", {}, () => [
794
- O.value ? (l(), m(e(st), {
841
+ ge(L.$slots, "sidebar-footer", {}, () => [
842
+ F.value ? (l(), m(e(it), {
795
843
  key: 0,
796
- name: O.value.name,
797
- detail: O.value.isAdmin ? i.value.administrator : i.value.dsmUser
844
+ name: F.value.name,
845
+ detail: F.value.isAdmin ? s.value.administrator : s.value.dsmUser
798
846
  }, null, 8, ["name", "detail"])) : y("", !0)
799
847
  ], !0)
800
848
  ]),
@@ -803,7 +851,7 @@ const Tt = ["data-audience"], Pt = {
803
851
  x.toolbar ? {
804
852
  name: "toolbar",
805
853
  fn: n(() => [
806
- ge($.$slots, "toolbar", { page: t.modelValue }, void 0, !0)
854
+ ge(L.$slots, "toolbar", { page: t.modelValue }, void 0, !0)
807
855
  ]),
808
856
  key: "1"
809
857
  } : void 0
@@ -815,38 +863,38 @@ const Tt = ["data-audience"], Pt = {
815
863
  _: 3
816
864
  }, 16));
817
865
  }
818
- }), Zn = /* @__PURE__ */ me(jt, [["__scopeId", "data-v-36019158"]]), jn = /* @__PURE__ */ fe({
866
+ }), eo = /* @__PURE__ */ me(al, [["__scopeId", "data-v-ca12cb17"]]), ao = /* @__PURE__ */ fe({
819
867
  __name: "PageActions",
820
868
  setup(t) {
821
- const b = Ne(Va, null), o = C(() => b?.value ?? null);
822
- return (a, i) => o.value ? (l(), m(Qa, {
869
+ const g = Ne(Ua, null), o = C(() => g?.value ?? null);
870
+ return (a, s) => o.value ? (l(), m(Za, {
823
871
  key: 0,
824
872
  to: o.value
825
873
  }, [
826
874
  ge(a.$slots, "default")
827
875
  ], 8, ["to"])) : y("", !0);
828
876
  }
829
- }), ha = ["B", "KB", "MB", "GB", "TB", "PB"];
830
- function ia(t, b) {
877
+ }), wa = ["B", "KB", "MB", "GB", "TB", "PB"];
878
+ function ia(t, g) {
831
879
  let o = 0, a = t;
832
- for (; a >= 1024 && o < ha.length - 1; )
880
+ for (; a >= 1024 && o < wa.length - 1; )
833
881
  a /= 1024, o++;
834
- return `${new Intl.NumberFormat(b, { maximumFractionDigits: o ? 1 : 0 }).format(a)} ${ha[o]}`;
882
+ return `${new Intl.NumberFormat(g, { maximumFractionDigits: o ? 1 : 0 }).format(a)} ${wa[o]}`;
835
883
  }
836
- const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-location" }, tl = ["aria-label"], ll = {
884
+ const tl = ["aria-busy", "aria-label"], ll = { class: "file-toolbar file-location" }, nl = ["aria-label"], ol = {
837
885
  key: 0,
838
886
  class: "file-toolbar"
839
- }, nl = {
887
+ }, sl = {
840
888
  key: 1,
841
889
  role: "status"
842
- }, ol = { role: "alert" }, sl = {
890
+ }, il = { role: "alert" }, ul = {
843
891
  key: 4,
844
892
  role: "status"
845
- }, il = { class: "file-columns" }, ul = ["aria-label"], rl = { class: "file-content" }, dl = { class: "file-name" }, cl = { class: "file-empty" }, vl = { class: "file-bytes" }, fl = {
893
+ }, rl = { class: "file-columns" }, dl = ["aria-label"], cl = { class: "file-content" }, vl = { class: "file-name" }, fl = { class: "file-empty" }, pl = { class: "file-bytes" }, ml = {
846
894
  key: 5,
847
895
  class: "file-selection",
848
896
  role: "status"
849
- }, pl = /* @__PURE__ */ fe({
897
+ }, yl = /* @__PURE__ */ fe({
850
898
  __name: "FileBrowser",
851
899
  props: {
852
900
  provider: {},
@@ -856,132 +904,132 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
856
904
  transfers: { type: Boolean, default: !1 }
857
905
  },
858
906
  emits: ["selected"],
859
- setup(t, { emit: b }) {
860
- const o = t, a = b, i = C(() => Te(o.locale)), u = ht(), { busy: r, error: c } = u, k = p([]), d = p([]), f = p([]), x = p(), P = p(), w = p(), _ = p([]), S = p(), h = p({ key: "name", direction: "asc" }), z = p(0), B = p([]), O = p(!1);
861
- let I = new AbortController();
862
- async function q() {
863
- const D = x.value;
864
- !D || D.isDir || !o.provider.download || await u.run(async (V) => (await o.provider.info(D.path, V), o.provider.download(D.path), !0));
865
- }
866
- async function $() {
867
- const D = f.value.at(-1)?.path, V = B.value[0];
868
- if (!D || !V || !o.provider.upload) return;
869
- O.value = !1, await u.run(async (Q) => (await o.provider.upload(D, V, Q), !0)) && (B.value = [], await Y(f.value), O.value = !0);
870
- }
871
- const L = C(() => [
872
- { key: "name", label: i.value.nameColumn, sortable: !0 },
873
- { key: "kind", label: i.value.kindColumn },
874
- { key: "bytes", label: i.value.sizeColumn, align: "right", sortable: !0 }
875
- ]), X = Za((D, { attrs: V }) => ja(ta, { ...V, kind: "folder" }));
876
- function K(D) {
877
- return { id: D.path, label: D.name, icon: X, data: D };
878
- }
879
- function F(D) {
880
- x.value = D, a("selected", D?.path);
881
- }
882
- function ie(D) {
883
- P.value = D.path, F(o.mode === "folder" ? D.isDir ? D : f.value.at(-1) : D.isDir ? void 0 : D);
884
- }
885
- function W(D) {
886
- D.isDir ? ze(D) : ie(D);
887
- }
888
- const oe = (D) => k.value.find((V) => V.path === D);
889
- function H(D, V, N = []) {
890
- for (const Q of D) {
907
+ setup(t, { emit: g }) {
908
+ const o = t, a = g, s = C(() => Pe(o.locale)), u = wt(), { busy: r, error: c } = u, b = f([]), d = f([]), p = f([]), x = f(), T = f(), _ = f(), w = f([]), $ = f(), k = f({ key: "name", direction: "asc" }), z = f(0), B = f([]), O = f(!1);
909
+ let E = new AbortController();
910
+ async function F() {
911
+ const I = x.value;
912
+ !I || I.isDir || !o.provider.download || await u.run(async (V) => (await o.provider.info(I.path, V), o.provider.download(I.path), !0));
913
+ }
914
+ async function D() {
915
+ const I = p.value.at(-1)?.path, V = B.value[0];
916
+ if (!I || !V || !o.provider.upload) return;
917
+ O.value = !1, await u.run(async (Q) => (await o.provider.upload(I, V, Q), !0)) && (B.value = [], await Y(p.value), O.value = !0);
918
+ }
919
+ const K = C(() => [
920
+ { key: "name", label: s.value.nameColumn, sortable: !0 },
921
+ { key: "kind", label: s.value.kindColumn },
922
+ { key: "bytes", label: s.value.sizeColumn, align: "right", sortable: !0 }
923
+ ]), L = ja((I, { attrs: V }) => et(ta, { ...V, kind: "folder" }));
924
+ function M(I) {
925
+ return { id: I.path, label: I.name, icon: L, data: I };
926
+ }
927
+ function q(I) {
928
+ x.value = I, a("selected", I?.path);
929
+ }
930
+ function te(I) {
931
+ T.value = I.path, q(o.mode === "folder" ? I.isDir ? I : p.value.at(-1) : I.isDir ? void 0 : I);
932
+ }
933
+ function X(I) {
934
+ I.isDir ? ze(I) : te(I);
935
+ }
936
+ const ne = (I) => b.value.find((V) => V.path === I);
937
+ function H(I, V, N = []) {
938
+ for (const Q of I) {
891
939
  const ce = [...N, Q.data];
892
940
  if (Q.id === V) return ce;
893
- const T = H(Q.children ?? [], V, ce);
894
- if (T) return T;
941
+ const P = H(Q.children ?? [], V, ce);
942
+ if (P) return P;
895
943
  }
896
944
  }
897
- function le(D, V) {
898
- for (const N of D) {
945
+ function ae(I, V) {
946
+ for (const N of I) {
899
947
  if (N.id === V) return N;
900
- const Q = le(N.children ?? [], V);
948
+ const Q = ae(N.children ?? [], V);
901
949
  if (Q) return Q;
902
950
  }
903
951
  }
904
- function ae(D, V, N) {
905
- return D.map((Q) => Q.id === V ? { ...Q, children: N } : Q.children ? { ...Q, children: ae(Q.children, V, N) } : Q);
952
+ function le(I, V, N) {
953
+ return I.map((Q) => Q.id === V ? { ...Q, children: N } : Q.children ? { ...Q, children: le(Q.children, V, N) } : Q);
906
954
  }
907
955
  let re = 0;
908
- async function Z(D) {
956
+ async function Z(I) {
909
957
  const V = ++re;
910
- for (const N of D.slice(0, -1)) {
911
- const Q = le(d.value, N.path);
958
+ for (const N of I.slice(0, -1)) {
959
+ const Q = ae(d.value, N.path);
912
960
  if (!Q) break;
913
961
  if (Q.children === void 0) {
914
- const ce = await M(Q);
962
+ const ce = await G(Q);
915
963
  if (V !== re || !ce) return;
916
- d.value = ae(d.value, Q.id, ce);
964
+ d.value = le(d.value, Q.id, ce);
917
965
  }
918
- _.value.includes(Q.id) || (_.value = [..._.value, Q.id]);
966
+ w.value.includes(Q.id) || (w.value = [...w.value, Q.id]);
919
967
  }
920
- S.value = D.at(-1)?.path;
968
+ $.value = I.at(-1)?.path;
921
969
  }
922
- async function M(D) {
923
- const V = z.value, N = I.signal;
970
+ async function G(I) {
971
+ const V = z.value, N = E.signal;
924
972
  try {
925
973
  const Q = [];
926
974
  let ce = 0;
927
975
  for (; ce !== void 0; ) {
928
- const T = await o.provider.list(D.id, { offset: ce, sortBy: "name", sortDirection: "ASC" }, N);
976
+ const P = await o.provider.list(I.id, { offset: ce, sortBy: "name", sortDirection: "ASC" }, N);
929
977
  if (N.aborted || V !== z.value) return;
930
- Q.push(...T.entries.filter((G) => G.isDir).map(K)), ce = T.nextOffset;
978
+ Q.push(...P.entries.filter((W) => W.isDir).map(M)), ce = P.nextOffset;
931
979
  }
932
980
  return Q;
933
981
  } catch (Q) {
934
- !N.aborted && V === z.value && (c.value = Q, F());
982
+ !N.aborted && V === z.value && (c.value = Q, q());
935
983
  return;
936
984
  }
937
985
  }
938
- async function Y(D, V = !1) {
986
+ async function Y(I, V = !1) {
939
987
  if (r.value) return;
940
- F(), P.value = void 0, k.value = V ? k.value : [], w.value = V ? w.value : void 0;
941
- const N = V ? w.value ?? 0 : 0, Q = D.at(-1)?.path;
942
- f.value = D;
943
- const ce = await u.run((T) => Q ? o.provider.list(Q, { offset: N, sortBy: h.value.key, sortDirection: h.value.direction === "asc" ? "ASC" : "DESC" }, T) : o.provider.shares(N, T));
944
- ce && (k.value = V ? [...k.value, ...ce.entries] : ce.entries, w.value = ce.nextOffset, Q ? o.mode === "folder" && !V && F(D.at(-1)) : d.value = k.value.filter((T) => T.isDir).map(K), V || Z(D));
988
+ q(), T.value = void 0, b.value = V ? b.value : [], _.value = V ? _.value : void 0;
989
+ const N = V ? _.value ?? 0 : 0, Q = I.at(-1)?.path;
990
+ p.value = I;
991
+ const ce = await u.run((P) => Q ? o.provider.list(Q, { offset: N, sortBy: k.value.key, sortDirection: k.value.direction === "asc" ? "ASC" : "DESC" }, P) : o.provider.shares(N, P));
992
+ ce && (b.value = V ? [...b.value, ...ce.entries] : ce.entries, _.value = ce.nextOffset, Q ? o.mode === "folder" && !V && q(I.at(-1)) : d.value = b.value.filter((P) => P.isDir).map(M), V || Z(I));
945
993
  }
946
- const de = C(() => [{ id: "", display: i.value.roots }, ...f.value.map((D) => ({ id: D.path, display: D.name }))]);
947
- function be(D) {
948
- const V = de.value.findIndex((N) => N.id === D.id);
949
- V < f.value.length && ne(f.value.slice(0, V));
994
+ const de = C(() => [{ id: "", display: s.value.roots }, ...p.value.map((I) => ({ id: I.path, display: I.name }))]);
995
+ function be(I) {
996
+ const V = de.value.findIndex((N) => N.id === I.id);
997
+ V < p.value.length && se(p.value.slice(0, V));
950
998
  }
951
- function ze(D) {
952
- ne([...f.value, D]);
999
+ function ze(I) {
1000
+ se([...p.value, I]);
953
1001
  }
954
- const he = p([[]]), J = p(0);
955
- function ne(D) {
956
- r.value || (D.at(-1)?.path !== f.value.at(-1)?.path && (he.value = [...he.value.slice(0, J.value + 1), D], J.value++), Y(D));
1002
+ const ke = f([[]]), J = f(0);
1003
+ function se(I) {
1004
+ r.value || (I.at(-1)?.path !== p.value.at(-1)?.path && (ke.value = [...ke.value.slice(0, J.value + 1), I], J.value++), Y(I));
957
1005
  }
958
- function te(D) {
959
- r.value || (J.value += D, Y(he.value[J.value]));
1006
+ function oe(I) {
1007
+ r.value || (J.value += I, Y(ke.value[J.value]));
960
1008
  }
961
- function ye(D) {
962
- h.value = { key: D?.key === "bytes" ? "size" : "name", direction: D?.direction ?? "asc" }, Y(f.value);
1009
+ function ye(I) {
1010
+ k.value = { key: I?.key === "bytes" ? "size" : "name", direction: I?.direction ?? "asc" }, Y(p.value);
963
1011
  }
964
1012
  function Ee() {
965
- r.value || (z.value++, I.abort(), I = new AbortController(), d.value = [], _.value = [], S.value = void 0, he.value = [[]], J.value = 0, Y([]));
1013
+ r.value || (z.value++, E.abort(), E = new AbortController(), d.value = [], w.value = [], $.value = void 0, ke.value = [[]], J.value = 0, Y([]));
966
1014
  }
967
1015
  return Se(() => {
968
1016
  Y([]);
969
- }), ke(() => {
970
- z.value++, I.abort();
971
- }), (D, V) => (l(), E("section", {
1017
+ }), he(() => {
1018
+ z.value++, E.abort();
1019
+ }), (I, V) => (l(), S("section", {
972
1020
  class: "file-browser",
973
1021
  "aria-busy": e(r),
974
- "aria-label": i.value.title
1022
+ "aria-label": s.value.title
975
1023
  }, [
976
- A("div", al, [
1024
+ A("div", ll, [
977
1025
  v(e(la), {
978
- label: i.value.back,
1026
+ label: s.value.back,
979
1027
  size: "sm",
980
1028
  disabled: e(r) || J.value === 0,
981
- onClick: V[0] || (V[0] = (N) => te(-1))
1029
+ onClick: V[0] || (V[0] = (N) => oe(-1))
982
1030
  }, {
983
1031
  default: n(() => [
984
- v(e(mt), {
1032
+ v(e(yt), {
985
1033
  size: 16,
986
1034
  "aria-hidden": "true"
987
1035
  })
@@ -989,13 +1037,13 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
989
1037
  _: 1
990
1038
  }, 8, ["label", "disabled"]),
991
1039
  v(e(la), {
992
- label: i.value.forward,
1040
+ label: s.value.forward,
993
1041
  size: "sm",
994
- disabled: e(r) || J.value === he.value.length - 1,
995
- onClick: V[1] || (V[1] = (N) => te(1))
1042
+ disabled: e(r) || J.value === ke.value.length - 1,
1043
+ onClick: V[1] || (V[1] = (N) => oe(1))
996
1044
  }, {
997
1045
  default: n(() => [
998
- v(e(Pa), {
1046
+ v(e(za), {
999
1047
  size: 16,
1000
1048
  "aria-hidden": "true"
1001
1049
  })
@@ -1003,13 +1051,13 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1003
1051
  _: 1
1004
1052
  }, 8, ["label", "disabled"]),
1005
1053
  v(e(la), {
1006
- label: i.value.refresh,
1054
+ label: s.value.refresh,
1007
1055
  size: "sm",
1008
1056
  disabled: e(r),
1009
1057
  onClick: Ee
1010
1058
  }, {
1011
1059
  default: n(() => [
1012
- v(e(yt), {
1060
+ v(e(bt), {
1013
1061
  size: 14,
1014
1062
  "aria-hidden": "true"
1015
1063
  })
@@ -1018,46 +1066,46 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1018
1066
  }, 8, ["label", "disabled"]),
1019
1067
  A("nav", {
1020
1068
  class: "file-path",
1021
- "aria-label": i.value.location
1069
+ "aria-label": s.value.location
1022
1070
  }, [
1023
- v(e(it), {
1071
+ v(e(ut), {
1024
1072
  items: de.value,
1025
- "collapsed-label": i.value.fullPath,
1073
+ "collapsed-label": s.value.fullPath,
1026
1074
  onClickItem: be
1027
1075
  }, null, 8, ["items", "collapsed-label"])
1028
- ], 8, tl)
1076
+ ], 8, nl)
1029
1077
  ]),
1030
- t.transfers && t.provider.upload && f.value.length ? (l(), E("div", ll, [
1031
- v(e(ut), {
1078
+ t.transfers && t.provider.upload && p.value.length ? (l(), S("div", ol, [
1079
+ v(e(rt), {
1032
1080
  modelValue: B.value,
1033
1081
  "onUpdate:modelValue": V[2] || (V[2] = (N) => B.value = N),
1034
1082
  variant: "compact",
1035
1083
  disabled: e(r),
1036
1084
  "max-files": 1,
1037
1085
  "max-size": 16 * 1024 ** 3,
1038
- title: i.value.upload,
1086
+ title: s.value.upload,
1039
1087
  onRejected: V[3] || (V[3] = (N) => c.value = { code: "upload_size_required" })
1040
1088
  }, null, 8, ["modelValue", "disabled", "title"]),
1041
1089
  v(e(U), {
1042
1090
  variant: "primary",
1043
1091
  disabled: e(r) || !B.value.length,
1044
- onClick: $
1092
+ onClick: D
1045
1093
  }, {
1046
1094
  default: n(() => [
1047
- g(s(i.value.upload), 1)
1095
+ h(i(s.value.upload), 1)
1048
1096
  ]),
1049
1097
  _: 1
1050
1098
  }, 8, ["disabled"])
1051
1099
  ])) : y("", !0),
1052
- O.value ? (l(), E("p", nl, s(i.value.uploaded), 1)) : y("", !0),
1100
+ O.value ? (l(), S("p", sl, i(s.value.uploaded), 1)) : y("", !0),
1053
1101
  t.transfers && t.provider.download && x.value && !x.value.isDir && !e(c) ? (l(), m(e(U), {
1054
1102
  key: 2,
1055
1103
  variant: "secondary",
1056
1104
  disabled: e(r),
1057
- onClick: q
1105
+ onClick: F
1058
1106
  }, {
1059
1107
  default: n(() => [
1060
- g(s(i.value.download), 1)
1108
+ h(i(s.value.download), 1)
1061
1109
  ]),
1062
1110
  _: 1
1063
1111
  }, 8, ["disabled"])) : y("", !0),
@@ -1066,100 +1114,100 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1066
1114
  tone: "danger"
1067
1115
  }, {
1068
1116
  default: n(() => [
1069
- A("span", ol, s(e(_a)(e(c), i.value, t.locale, t.name)), 1)
1117
+ A("span", il, i(e(xa)(e(c), s.value, t.locale, t.name)), 1)
1070
1118
  ]),
1071
1119
  _: 1
1072
1120
  })) : y("", !0),
1073
- e(r) ? (l(), E("p", sl, s(i.value.loading), 1)) : y("", !0),
1074
- A("div", il, [
1121
+ e(r) ? (l(), S("p", ul, i(s.value.loading), 1)) : y("", !0),
1122
+ A("div", rl, [
1075
1123
  A("aside", {
1076
1124
  class: "file-tree",
1077
- "aria-label": i.value.roots
1125
+ "aria-label": s.value.roots
1078
1126
  }, [
1079
- d.value.length ? (l(), m(e(rt), {
1127
+ d.value.length ? (l(), m(e(dt), {
1080
1128
  key: z.value,
1081
1129
  "selection-style": "background",
1082
- modelValue: S.value,
1083
- "onUpdate:modelValue": V[4] || (V[4] = (N) => S.value = N),
1130
+ modelValue: $.value,
1131
+ "onUpdate:modelValue": V[4] || (V[4] = (N) => $.value = N),
1084
1132
  nodes: d.value,
1085
1133
  "onUpdate:nodes": V[5] || (V[5] = (N) => d.value = N),
1086
- expanded: _.value,
1087
- "onUpdate:expanded": V[6] || (V[6] = (N) => _.value = N),
1088
- "load-children": M,
1089
- "expand-label": (N, Q) => e(na)(Q ? i.value.collapse : i.value.expand, { name: N.label }),
1090
- onSelect: V[7] || (V[7] = (N) => ne(H(d.value, N.id) ?? [N.data]))
1134
+ expanded: w.value,
1135
+ "onUpdate:expanded": V[6] || (V[6] = (N) => w.value = N),
1136
+ "load-children": G,
1137
+ "expand-label": (N, Q) => e(na)(Q ? s.value.collapse : s.value.expand, { name: N.label }),
1138
+ onSelect: V[7] || (V[7] = (N) => se(H(d.value, N.id) ?? [N.data]))
1091
1139
  }, null, 8, ["modelValue", "nodes", "expanded", "expand-label"])) : y("", !0)
1092
- ], 8, ul),
1093
- A("div", rl, [
1094
- e(c) ? y("", !0) : (l(), m(e(dt), {
1140
+ ], 8, dl),
1141
+ A("div", cl, [
1142
+ e(c) ? y("", !0) : (l(), m(e(ct), {
1095
1143
  key: 0,
1096
- columns: L.value,
1097
- rows: k.value.map((N) => ({ ...N, kind: N.isDir ? i.value.directoryKind : i.value.fileKind })),
1144
+ columns: K.value,
1145
+ rows: b.value.map((N) => ({ ...N, kind: N.isDir ? s.value.directoryKind : s.value.fileKind })),
1098
1146
  "row-key": "path",
1099
1147
  footer: !1,
1100
1148
  resizable: !1,
1101
1149
  "local-sort": !1,
1102
1150
  "local-pagination": !1,
1103
1151
  loading: e(r),
1104
- "loading-text": i.value.loading,
1105
- sort: { key: h.value.key === "size" ? "bytes" : h.value.key, direction: h.value.direction },
1106
- labels: { empty: i.value.emptyFolder },
1152
+ "loading-text": s.value.loading,
1153
+ sort: { key: k.value.key === "size" ? "bytes" : k.value.key, direction: k.value.direction },
1154
+ labels: { empty: s.value.emptyFolder },
1107
1155
  "single-select": "",
1108
- "selected-keys": P.value ? [P.value] : [],
1156
+ "selected-keys": T.value ? [T.value] : [],
1109
1157
  "onUpdate:sort": ye,
1110
1158
  "onUpdate:selectedKeys": V[8] || (V[8] = (N) => {
1111
- e(r) || ie(oe(N[0]));
1159
+ e(r) || te(ne(N[0]));
1112
1160
  }),
1113
1161
  onRowActivate: V[9] || (V[9] = (N) => {
1114
- e(r) || W(oe(N.path));
1162
+ e(r) || X(ne(N.path));
1115
1163
  }),
1116
1164
  onRowDblclick: V[10] || (V[10] = (N) => {
1117
- e(r) || W(oe(N.path));
1165
+ e(r) || X(ne(N.path));
1118
1166
  })
1119
1167
  }, {
1120
1168
  "cell-name": n(({ row: N }) => [
1121
- A("span", dl, [
1169
+ A("span", vl, [
1122
1170
  v(e(ta), {
1123
1171
  kind: N.isDir ? "folder" : "file",
1124
1172
  name: N.name
1125
1173
  }, null, 8, ["kind", "name"]),
1126
- g(s(N.name), 1)
1174
+ h(i(N.name), 1)
1127
1175
  ])
1128
1176
  ]),
1129
1177
  empty: n(() => [
1130
- A("div", cl, [
1178
+ A("div", fl, [
1131
1179
  v(e(ta), {
1132
1180
  kind: "folder",
1133
1181
  size: [40, 40]
1134
1182
  }),
1135
- A("span", null, s(i.value.emptyFolder), 1)
1183
+ A("span", null, i(s.value.emptyFolder), 1)
1136
1184
  ])
1137
1185
  ]),
1138
1186
  "cell-bytes": n(({ row: N }) => [
1139
- A("span", vl, s(N.isDir || N.bytes === void 0 ? "—" : e(ia)(N.bytes, e(da)(t.locale))), 1)
1187
+ A("span", pl, i(N.isDir || N.bytes === void 0 ? "—" : e(ia)(N.bytes, e(da)(t.locale))), 1)
1140
1188
  ]),
1141
1189
  _: 1
1142
1190
  }, 8, ["columns", "rows", "loading", "loading-text", "sort", "labels", "selected-keys"])),
1143
- w.value !== void 0 && !e(c) ? (l(), m(e(U), {
1191
+ _.value !== void 0 && !e(c) ? (l(), m(e(U), {
1144
1192
  key: 1,
1145
1193
  variant: "secondary",
1146
1194
  disabled: e(r),
1147
- onClick: V[11] || (V[11] = (N) => Y(f.value, !0))
1195
+ onClick: V[11] || (V[11] = (N) => Y(p.value, !0))
1148
1196
  }, {
1149
1197
  default: n(() => [
1150
- g(s(i.value.loadMore), 1)
1198
+ h(i(s.value.loadMore), 1)
1151
1199
  ]),
1152
1200
  _: 1
1153
1201
  }, 8, ["disabled"])) : y("", !0)
1154
1202
  ])
1155
1203
  ]),
1156
- x.value && !e(c) ? (l(), E("p", fl, s(e(na)(i.value.selected, { name: x.value.path })), 1)) : y("", !0)
1157
- ], 8, el));
1204
+ x.value && !e(c) ? (l(), S("p", ml, i(e(na)(s.value.selected, { name: x.value.path })), 1)) : y("", !0)
1205
+ ], 8, tl));
1158
1206
  }
1159
- }), Ua = /* @__PURE__ */ me(pl, [["__scopeId", "data-v-f4863cea"]]), ml = {
1207
+ }), Na = /* @__PURE__ */ me(yl, [["__scopeId", "data-v-f4863cea"]]), bl = {
1160
1208
  key: 0,
1161
1209
  class: "save-consent"
1162
- }, yl = ["aria-busy", "inert"], bl = /* @__PURE__ */ fe({
1210
+ }, gl = ["aria-busy", "inert"], hl = /* @__PURE__ */ fe({
1163
1211
  __name: "NasPicker",
1164
1212
  props: {
1165
1213
  open: { type: Boolean },
@@ -1173,57 +1221,57 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1173
1221
  errorText: { type: Function }
1174
1222
  },
1175
1223
  emits: ["update:open", "selected", "authorized", "refused"],
1176
- setup(t, { emit: b }) {
1177
- const o = t, a = b, i = p(), u = C(() => Te(o.locale)), r = C(() => ca(o.locale)), c = p(!1), k = p();
1178
- let d = 0, f = !1;
1179
- He(() => o.open, () => {
1180
- d++, i.value = void 0, k.value = void 0;
1181
- }), ke(() => {
1182
- f = !0, d++;
1224
+ setup(t, { emit: g }) {
1225
+ const o = t, a = g, s = f(), u = C(() => Pe(o.locale)), r = C(() => ca(o.locale)), c = f(!1), b = f();
1226
+ let d = 0, p = !1;
1227
+ Le(() => o.open, () => {
1228
+ d++, s.value = void 0, b.value = void 0;
1229
+ }), he(() => {
1230
+ p = !0, d++;
1183
1231
  });
1184
1232
  function x() {
1185
- c.value || (i.value = void 0, a("update:open", !1));
1233
+ c.value || (s.value = void 0, a("update:open", !1));
1186
1234
  }
1187
- async function P() {
1188
- const w = i.value, _ = o.destination, S = d;
1189
- if (!(!w || c.value || !o.open || f || _ && o.mode !== "folder")) {
1190
- if (!_) {
1191
- a("selected", w), x();
1235
+ async function T() {
1236
+ const _ = s.value, w = o.destination, $ = d;
1237
+ if (!(!_ || c.value || !o.open || p || w && o.mode !== "folder")) {
1238
+ if (!w) {
1239
+ a("selected", _), x();
1192
1240
  return;
1193
1241
  }
1194
- c.value = !0, k.value = void 0;
1242
+ c.value = !0, b.value = void 0;
1195
1243
  try {
1196
- const h = await _.selectDestination({ key: _.key, path: w });
1197
- if (f || S !== d) return;
1198
- if (!h || typeof h.id != "string" || !h.id || typeof h.username != "string" || !h.username || h.path !== w || h.key !== _.key || h.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
1199
- a("authorized", h), c.value = !1, x();
1200
- } catch (h) {
1201
- if (f || S !== d) return;
1202
- if (h?.code === "APP_DENIED") {
1203
- c.value = !1, a("refused", h), x();
1244
+ const k = await w.selectDestination({ key: w.key, path: _ });
1245
+ if (p || $ !== d) return;
1246
+ if (!k || typeof k.id != "string" || !k.id || typeof k.username != "string" || !k.username || k.path !== _ || k.key !== w.key || k.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
1247
+ a("authorized", k), c.value = !1, x();
1248
+ } catch (k) {
1249
+ if (p || $ !== d) return;
1250
+ if (k?.code === "APP_DENIED") {
1251
+ c.value = !1, a("refused", k), x();
1204
1252
  return;
1205
1253
  }
1206
- k.value = h;
1254
+ b.value = k;
1207
1255
  } finally {
1208
- f || (c.value = !1);
1256
+ p || (c.value = !1);
1209
1257
  }
1210
1258
  }
1211
1259
  }
1212
- return (w, _) => (l(), m(e(Ze), {
1260
+ return (_, w) => (l(), m(e(je), {
1213
1261
  open: t.open,
1214
1262
  title: t.title ?? (t.mode === "folder" ? u.value.choose : u.value.chooseFile),
1215
1263
  description: t.description ?? u.value.ownPermissions,
1216
1264
  "close-label": u.value.close,
1217
1265
  "show-close": !c.value,
1218
1266
  width: "800px",
1219
- onEscapeKeyDown: _[1] || (_[1] = (S) => {
1220
- c.value && S.preventDefault();
1267
+ onEscapeKeyDown: w[1] || (w[1] = ($) => {
1268
+ c.value && $.preventDefault();
1221
1269
  }),
1222
- onInteractOutside: _[2] || (_[2] = (S) => {
1223
- c.value && S.preventDefault();
1270
+ onInteractOutside: w[2] || (w[2] = ($) => {
1271
+ c.value && $.preventDefault();
1224
1272
  }),
1225
- "onUpdate:open": _[3] || (_[3] = (S) => {
1226
- S || x();
1273
+ "onUpdate:open": w[3] || (w[3] = ($) => {
1274
+ $ || x();
1227
1275
  })
1228
1276
  }, {
1229
1277
  footer: n(() => [
@@ -1233,31 +1281,31 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1233
1281
  onClick: x
1234
1282
  }, {
1235
1283
  default: n(() => [
1236
- g(s(u.value.cancel), 1)
1284
+ h(i(u.value.cancel), 1)
1237
1285
  ]),
1238
1286
  _: 1
1239
1287
  }, 8, ["disabled"]),
1240
1288
  v(e(U), {
1241
1289
  variant: "primary",
1242
- disabled: !i.value || c.value || !!t.destination && t.mode !== "folder",
1243
- onClick: P
1290
+ disabled: !s.value || c.value || !!t.destination && t.mode !== "folder",
1291
+ onClick: T
1244
1292
  }, {
1245
1293
  default: n(() => [
1246
- g(s(u.value.confirm), 1)
1294
+ h(i(u.value.confirm), 1)
1247
1295
  ]),
1248
1296
  _: 1
1249
1297
  }, 8, ["disabled"])
1250
1298
  ]),
1251
1299
  default: n(() => [
1252
- t.destination ? (l(), E("p", ml, s(r.value.selection), 1)) : y("", !0),
1253
- k.value ? (l(), m(e(j), {
1300
+ t.destination ? (l(), S("p", bl, i(r.value.selection), 1)) : y("", !0),
1301
+ b.value ? (l(), m(e(j), {
1254
1302
  key: 1,
1255
1303
  tone: "danger",
1256
1304
  role: "alert",
1257
1305
  class: "save-message"
1258
1306
  }, {
1259
1307
  default: n(() => [
1260
- g(s(t.errorText?.(k.value) ?? e(Xe)(k.value, r.value, "select", t.locale, t.name)), 1)
1308
+ h(i(t.errorText?.(b.value) ?? e(Ge)(b.value, r.value, "select", t.locale, t.name)), 1)
1261
1309
  ]),
1262
1310
  _: 1
1263
1311
  })) : y("", !0),
@@ -1266,56 +1314,56 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1266
1314
  "aria-busy": c.value,
1267
1315
  inert: c.value
1268
1316
  }, [
1269
- t.open ? (l(), m(Ua, {
1317
+ t.open ? (l(), m(Na, {
1270
1318
  key: 0,
1271
1319
  provider: t.provider,
1272
1320
  locale: t.locale,
1273
1321
  name: t.name,
1274
1322
  mode: t.mode,
1275
- onSelected: _[0] || (_[0] = (S) => i.value = S)
1323
+ onSelected: w[0] || (w[0] = ($) => s.value = $)
1276
1324
  }, null, 8, ["provider", "locale", "name", "mode"])) : y("", !0)
1277
- ], 8, yl)
1325
+ ], 8, gl)
1278
1326
  ]),
1279
1327
  _: 1
1280
1328
  }, 8, ["open", "title", "description", "close-label", "show-close"]));
1281
1329
  }
1282
- }), ea = /* @__PURE__ */ me(bl, [["__scopeId", "data-v-08be5e1e"]]), gl = { role: "alert" }, kl = { class: "files-actions" }, hl = {
1330
+ }), aa = /* @__PURE__ */ me(hl, [["__scopeId", "data-v-08be5e1e"]]), kl = { role: "alert" }, wl = { class: "files-actions" }, _l = {
1283
1331
  key: 0,
1284
1332
  class: "files-path",
1285
1333
  role: "status"
1286
- }, wl = /* @__PURE__ */ fe({
1334
+ }, xl = /* @__PURE__ */ fe({
1287
1335
  __name: "FilesPage",
1288
1336
  props: {
1289
1337
  ctx: {}
1290
1338
  },
1291
1339
  setup(t) {
1292
- const b = t, o = p(), a = p(), i = p(!1), u = p("folder"), r = p(!1), c = p(""), k = p(0), d = xa(b.ctx);
1293
- let f = !1, x;
1294
- async function P() {
1295
- if (!f) {
1296
- o.value = void 0, i.value = !1, c.value = "", r.value = !1, k.value++;
1340
+ const g = t, o = f(), a = f(), s = f(!1), u = f("folder"), r = f(!1), c = f(""), b = f(0), d = Ca(g.ctx);
1341
+ let p = !1, x;
1342
+ async function T() {
1343
+ if (!p) {
1344
+ o.value = void 0, s.value = !1, c.value = "", r.value = !1, b.value++;
1297
1345
  try {
1298
- await b.ctx.call("nas.session.status"), f || (a.value = void 0, i.value = !0);
1299
- } catch (w) {
1300
- if (f) return;
1301
- a.value = xe(w), !a.value && w?.code !== "unknown_method" && (o.value = w);
1346
+ await g.ctx.call("nas.session.status"), p || (a.value = void 0, s.value = !0);
1347
+ } catch (_) {
1348
+ if (p) return;
1349
+ a.value = xe(_), !a.value && _?.code !== "unknown_method" && (o.value = _);
1302
1350
  }
1303
1351
  }
1304
1352
  }
1305
- return Fe(() => a.value, P), Se(() => {
1306
- x = b.ctx.reopen(() => {
1307
- P();
1308
- }), P();
1309
- }), ke(() => {
1310
- f = !0, x?.(), d.dispose();
1311
- }), (w, _) => (l(), E(se, null, [
1353
+ return Me(() => a.value, T), Se(() => {
1354
+ x = g.ctx.reopen(() => {
1355
+ T();
1356
+ }), T();
1357
+ }), he(() => {
1358
+ p = !0, x?.(), d.dispose();
1359
+ }), (_, w) => (l(), S(ie, null, [
1312
1360
  a.value ? (l(), m(e(j), {
1313
1361
  key: 0,
1314
1362
  tone: "info",
1315
1363
  role: "status"
1316
1364
  }, {
1317
1365
  default: n(() => [
1318
- g(s(e(Ue)(a.value, t.ctx.locale)), 1)
1366
+ h(i(e(Ue)(a.value, t.ctx.locale)), 1)
1319
1367
  ]),
1320
1368
  _: 1
1321
1369
  })) : y("", !0),
@@ -1324,171 +1372,171 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1324
1372
  tone: "danger"
1325
1373
  }, {
1326
1374
  default: n(() => [
1327
- A("span", gl, s(e(_a)(o.value, e(Te)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
1375
+ A("span", kl, i(e(xa)(o.value, e(Pe)(t.ctx.locale), t.ctx.locale, t.ctx.displayName)), 1),
1328
1376
  v(e(U), {
1329
1377
  variant: "secondary",
1330
- onClick: P
1378
+ onClick: T
1331
1379
  }, {
1332
1380
  default: n(() => [
1333
- g(s(e(Te)(t.ctx.locale).refresh), 1)
1381
+ h(i(e(Pe)(t.ctx.locale).refresh), 1)
1334
1382
  ]),
1335
1383
  _: 1
1336
1384
  })
1337
1385
  ]),
1338
1386
  _: 1
1339
1387
  })) : y("", !0),
1340
- i.value ? (l(), m(e(_e), {
1388
+ s.value ? (l(), m(e(_e), {
1341
1389
  key: 2,
1342
- title: e(Te)(t.ctx.locale).title,
1343
- description: e(Te)(t.ctx.locale).ownPermissions,
1390
+ title: e(Pe)(t.ctx.locale).title,
1391
+ description: e(Pe)(t.ctx.locale).ownPermissions,
1344
1392
  collapsible: !1
1345
1393
  }, {
1346
1394
  default: n(() => [
1347
- A("div", kl, [
1395
+ A("div", wl, [
1348
1396
  v(e(U), {
1349
1397
  variant: "secondary",
1350
- onClick: _[0] || (_[0] = (S) => {
1398
+ onClick: w[0] || (w[0] = ($) => {
1351
1399
  u.value = "folder", r.value = !0;
1352
1400
  })
1353
1401
  }, {
1354
1402
  default: n(() => [
1355
- g(s(e(Te)(t.ctx.locale).choose), 1)
1403
+ h(i(e(Pe)(t.ctx.locale).choose), 1)
1356
1404
  ]),
1357
1405
  _: 1
1358
1406
  }),
1359
1407
  v(e(U), {
1360
1408
  variant: "secondary",
1361
- onClick: _[1] || (_[1] = (S) => {
1409
+ onClick: w[1] || (w[1] = ($) => {
1362
1410
  u.value = "file", r.value = !0;
1363
1411
  })
1364
1412
  }, {
1365
1413
  default: n(() => [
1366
- g(s(e(Te)(t.ctx.locale).chooseFile), 1)
1414
+ h(i(e(Pe)(t.ctx.locale).chooseFile), 1)
1367
1415
  ]),
1368
1416
  _: 1
1369
1417
  })
1370
1418
  ]),
1371
- c.value ? (l(), E("p", hl, [
1419
+ c.value ? (l(), S("p", _l, [
1372
1420
  v(e(De), { path: c.value }, null, 8, ["path"])
1373
1421
  ])) : y("", !0),
1374
- (l(), m(Ua, {
1375
- key: k.value,
1422
+ (l(), m(Na, {
1423
+ key: b.value,
1376
1424
  provider: e(d),
1377
1425
  locale: t.ctx.locale,
1378
1426
  name: t.ctx.displayName,
1379
1427
  transfers: ""
1380
1428
  }, null, 8, ["provider", "locale", "name"])),
1381
- v(ea, {
1429
+ v(aa, {
1382
1430
  provider: e(d),
1383
1431
  locale: t.ctx.locale,
1384
1432
  name: t.ctx.displayName,
1385
1433
  mode: u.value,
1386
1434
  open: r.value,
1387
- "onUpdate:open": _[2] || (_[2] = (S) => r.value = S),
1388
- onSelected: _[3] || (_[3] = (S) => c.value = S)
1435
+ "onUpdate:open": w[2] || (w[2] = ($) => r.value = $),
1436
+ onSelected: w[3] || (w[3] = ($) => c.value = $)
1389
1437
  }, null, 8, ["provider", "locale", "name", "mode", "open"])
1390
1438
  ]),
1391
1439
  _: 1
1392
1440
  }, 8, ["title", "description"])) : y("", !0)
1393
1441
  ], 64));
1394
1442
  }
1395
- }), eo = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-a8fc5aa4"]]), _l = { role: "alert" }, xl = 5e3, ao = /* @__PURE__ */ fe({
1443
+ }), to = /* @__PURE__ */ me(xl, [["__scopeId", "data-v-a8fc5aa4"]]), Cl = { role: "alert" }, $l = 5e3, lo = /* @__PURE__ */ fe({
1396
1444
  __name: "PortalSettings",
1397
1445
  props: {
1398
1446
  portal: {}
1399
1447
  },
1400
1448
  setup(t) {
1401
- const b = t, o = Aa(), a = b.portal.messages, i = p(), u = p(""), r = p(!1), c = p(""), k = p(!0);
1449
+ const g = t, o = Ra(), a = g.portal.messages, s = f(), u = f(""), r = f(!1), c = f(""), b = f(!0);
1402
1450
  let d = !1;
1403
- function f(O) {
1404
- d || (i.value = O, u.value = O.alias || O.defaultAlias);
1451
+ function p(O) {
1452
+ d || (s.value = O, u.value = O.alias || O.defaultAlias);
1405
1453
  }
1406
- const x = b.portal.lastStatus?.();
1407
- x && f(x);
1408
- const P = /* @__PURE__ */ Symbol("late");
1409
- async function w(O) {
1454
+ const x = g.portal.lastStatus?.();
1455
+ x && p(x);
1456
+ const T = /* @__PURE__ */ Symbol("late");
1457
+ async function _(O) {
1410
1458
  if (r.value) return;
1411
1459
  r.value = !0, c.value = "";
1412
- const I = O();
1460
+ const E = O();
1413
1461
  try {
1414
- const q = await Promise.race([I, new Promise(($) => setTimeout(() => $(P), xl))]);
1415
- if (q !== P) {
1416
- f(q);
1462
+ const F = await Promise.race([E, new Promise((D) => setTimeout(() => D(T), $l))]);
1463
+ if (F !== T) {
1464
+ p(F);
1417
1465
  return;
1418
1466
  }
1419
- f(await b.portal.status());
1467
+ p(await g.portal.status());
1420
1468
  try {
1421
- await I;
1469
+ await E;
1422
1470
  } finally {
1423
- f(await b.portal.status());
1471
+ p(await g.portal.status());
1424
1472
  }
1425
- } catch (q) {
1426
- d || (c.value = a[q?.code || ""] || a.portal_unavailable);
1473
+ } catch (F) {
1474
+ d || (c.value = a[F?.code || ""] || a.portal_unavailable);
1427
1475
  } finally {
1428
1476
  d || (r.value = !1);
1429
1477
  }
1430
1478
  }
1431
- const _ = C(() => !!i.value?.canManage && !!i.value.entry && i.value.entry !== "registered"), S = C(() => {
1432
- const O = i.value;
1479
+ const w = C(() => !!s.value?.canManage && !!s.value.entry && s.value.entry !== "registered"), $ = C(() => {
1480
+ const O = s.value;
1433
1481
  if (O) {
1434
- if (_.value) return O.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
1482
+ if (w.value) return O.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
1435
1483
  if (O.state !== "active")
1436
1484
  return O.canManage ? a.inactive : O.controlPanel ? void 0 : a.askAdmin;
1437
1485
  }
1438
- }), h = a.link?.replace(/\s*[::]\s*$/, "");
1486
+ }), k = a.link?.replace(/\s*[::]\s*$/, "");
1439
1487
  async function z() {
1440
- const O = await b.portal.register();
1441
- return O.canManage && O.entry === "registered" && O.state === "inactive" ? (f(O), b.portal.apply(O.alias || O.defaultAlias)) : O;
1488
+ const O = await g.portal.register();
1489
+ return O.canManage && O.entry === "registered" && O.state === "inactive" ? (p(O), g.portal.apply(O.alias || O.defaultAlias)) : O;
1442
1490
  }
1443
1491
  function B() {
1444
- r.value || b.portal.status().then(f, () => {
1492
+ r.value || g.portal.status().then(p, () => {
1445
1493
  }).finally(() => {
1446
- d || (k.value = !1);
1494
+ d || (b.value = !1);
1447
1495
  });
1448
1496
  }
1449
1497
  return Se(() => {
1450
1498
  o.subscribe?.(B), B();
1451
- }), ke(() => {
1499
+ }), he(() => {
1452
1500
  d = !0;
1453
- }), (O, I) => i.value || k.value ? (l(), m(e(_e), {
1501
+ }), (O, E) => s.value || b.value ? (l(), m(e(_e), {
1454
1502
  key: 0,
1455
1503
  title: e(a).title,
1456
- description: S.value,
1504
+ description: $.value,
1457
1505
  collapsible: !1,
1458
- "aria-busy": r.value || !i.value
1506
+ "aria-busy": r.value || !s.value
1459
1507
  }, oa({
1460
1508
  default: n(() => [
1461
- i.value ? (l(), E(se, { key: 1 }, [
1462
- i.value.state === "active" ? (l(), m(e(we), {
1509
+ s.value ? (l(), S(ie, { key: 1 }, [
1510
+ s.value.state === "active" ? (l(), m(e(we), {
1463
1511
  key: 0,
1464
- label: e(h)
1512
+ label: e(k)
1465
1513
  }, {
1466
1514
  default: n(() => [
1467
- v(e(Ea), {
1468
- href: i.value.url,
1515
+ v(e(Pa), {
1516
+ href: s.value.url,
1469
1517
  external: ""
1470
1518
  }, {
1471
1519
  default: n(() => [
1472
- g(s(i.value.url), 1)
1520
+ h(i(s.value.url), 1)
1473
1521
  ]),
1474
1522
  _: 1
1475
1523
  }, 8, ["href"])
1476
1524
  ]),
1477
1525
  _: 1
1478
1526
  }, 8, ["label"])) : y("", !0),
1479
- i.value.canManage && !_.value ? (l(), m(e(qe), {
1527
+ s.value.canManage && !w.value ? (l(), m(e(Fe), {
1480
1528
  key: 1,
1481
- onSubmit: I[4] || (I[4] = Oe((q) => w(() => t.portal.apply(u.value)), ["prevent"]))
1529
+ onSubmit: E[4] || (E[4] = qe((F) => _(() => t.portal.apply(u.value)), ["prevent"]))
1482
1530
  }, {
1483
1531
  default: n(() => [
1484
1532
  v(e(we), {
1485
1533
  label: e(a).alias
1486
1534
  }, {
1487
1535
  default: n(() => [
1488
- v(e(Pe), {
1536
+ v(e(Te), {
1489
1537
  id: "portal-alias",
1490
1538
  modelValue: u.value,
1491
- "onUpdate:modelValue": I[0] || (I[0] = (q) => u.value = q),
1539
+ "onUpdate:modelValue": E[0] || (E[0] = (F) => u.value = F),
1492
1540
  "aria-label": e(a).alias,
1493
1541
  maxlength: "64",
1494
1542
  autocomplete: "off",
@@ -1502,7 +1550,7 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1502
1550
  "field-width": "full"
1503
1551
  }, {
1504
1552
  default: n(() => [
1505
- v(e(je), null, {
1553
+ v(e(ea), null, {
1506
1554
  default: n(() => [
1507
1555
  v(e(U), {
1508
1556
  type: "submit",
@@ -1510,38 +1558,38 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1510
1558
  disabled: r.value
1511
1559
  }, {
1512
1560
  default: n(() => [
1513
- g(s(e(a).apply), 1)
1561
+ h(i(e(a).apply), 1)
1514
1562
  ]),
1515
1563
  _: 1
1516
1564
  }, 8, ["disabled"]),
1517
- i.value.state === "active" ? (l(), m(e(U), {
1565
+ s.value.state === "active" ? (l(), m(e(U), {
1518
1566
  key: 0,
1519
1567
  variant: "secondary",
1520
1568
  disabled: r.value,
1521
- onClick: I[1] || (I[1] = (q) => w(() => t.portal.disable()))
1569
+ onClick: E[1] || (E[1] = (F) => _(() => t.portal.disable()))
1522
1570
  }, {
1523
1571
  default: n(() => [
1524
- g(s(e(a).disable), 1)
1572
+ h(i(e(a).disable), 1)
1525
1573
  ]),
1526
1574
  _: 1
1527
1575
  }, 8, ["disabled"])) : y("", !0),
1528
1576
  v(e(U), {
1529
1577
  variant: "secondary",
1530
- onClick: I[2] || (I[2] = (q) => t.portal.openControlPanel())
1578
+ onClick: E[2] || (E[2] = (F) => t.portal.openControlPanel())
1531
1579
  }, {
1532
1580
  default: n(() => [
1533
- g(s(e(a).advanced), 1)
1581
+ h(i(e(a).advanced), 1)
1534
1582
  ]),
1535
1583
  _: 1
1536
1584
  }),
1537
- i.value.entry ? (l(), m(e(U), {
1585
+ s.value.entry ? (l(), m(e(U), {
1538
1586
  key: 1,
1539
1587
  variant: "secondary",
1540
1588
  disabled: r.value,
1541
- onClick: I[3] || (I[3] = (q) => w(() => t.portal.unregister()))
1589
+ onClick: E[3] || (E[3] = (F) => _(() => t.portal.unregister()))
1542
1590
  }, {
1543
1591
  default: n(() => [
1544
- g(s(e(a).unregister), 1)
1592
+ h(i(e(a).unregister), 1)
1545
1593
  ]),
1546
1594
  _: 1
1547
1595
  }, 8, ["disabled"])) : y("", !0)
@@ -1559,19 +1607,19 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1559
1607
  tone: "danger"
1560
1608
  }, {
1561
1609
  default: n(() => [
1562
- A("span", _l, s(c.value), 1)
1610
+ A("span", Cl, i(c.value), 1)
1563
1611
  ]),
1564
1612
  _: 1
1565
1613
  })) : y("", !0)
1566
- ], 64)) : (l(!0), E(se, { key: 0 }, Ce([[e(h), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([q, $], L) => (l(), m(e(we), {
1567
- key: L,
1568
- label: q,
1614
+ ], 64)) : (l(!0), S(ie, { key: 0 }, Ce([[e(k), "20px"], [e(a).alias, "32px"], ["", "32px"]], ([F, D], K) => (l(), m(e(we), {
1615
+ key: K,
1616
+ label: F,
1569
1617
  "data-placeholder-row": ""
1570
1618
  }, {
1571
1619
  default: n(() => [
1572
- v(e(Le), {
1620
+ v(e(Oe), {
1573
1621
  width: "16rem",
1574
- height: $
1622
+ height: D
1575
1623
  }, null, 8, ["height"])
1576
1624
  ]),
1577
1625
  _: 2
@@ -1579,41 +1627,41 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1579
1627
  ]),
1580
1628
  _: 2
1581
1629
  }, [
1582
- i.value && _.value ? {
1630
+ s.value && w.value ? {
1583
1631
  name: "footer",
1584
1632
  fn: n(() => [
1585
- i.value.entry === "unregistered" ? (l(), m(e(U), {
1633
+ s.value.entry === "unregistered" ? (l(), m(e(U), {
1586
1634
  key: 0,
1587
1635
  variant: "primary",
1588
1636
  disabled: r.value,
1589
- onClick: I[5] || (I[5] = (q) => w(z))
1637
+ onClick: E[5] || (E[5] = (F) => _(z))
1590
1638
  }, {
1591
1639
  default: n(() => [
1592
- g(s(e(a).register), 1)
1640
+ h(i(e(a).register), 1)
1593
1641
  ]),
1594
1642
  _: 1
1595
1643
  }, 8, ["disabled"])) : (l(), m(e(U), {
1596
1644
  key: 1,
1597
1645
  variant: "primary",
1598
1646
  disabled: r.value,
1599
- onClick: I[6] || (I[6] = (q) => w(() => t.portal.unregister()))
1647
+ onClick: E[6] || (E[6] = (F) => _(() => t.portal.unregister()))
1600
1648
  }, {
1601
1649
  default: n(() => [
1602
- g(s(e(a).unregister), 1)
1650
+ h(i(e(a).unregister), 1)
1603
1651
  ]),
1604
1652
  _: 1
1605
1653
  }, 8, ["disabled"]))
1606
1654
  ]),
1607
1655
  key: "0"
1608
- } : i.value && !i.value.canManage && i.value.controlPanel ? {
1656
+ } : s.value && !s.value.canManage && s.value.controlPanel ? {
1609
1657
  name: "footer",
1610
1658
  fn: n(() => [
1611
1659
  v(e(U), {
1612
1660
  variant: "secondary",
1613
- onClick: I[7] || (I[7] = (q) => t.portal.openControlPanel())
1661
+ onClick: E[7] || (E[7] = (F) => t.portal.openControlPanel())
1614
1662
  }, {
1615
1663
  default: n(() => [
1616
- g(s(e(a).controlPanel), 1)
1664
+ h(i(e(a).controlPanel), 1)
1617
1665
  ]),
1618
1666
  _: 1
1619
1667
  })
@@ -1622,53 +1670,53 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1622
1670
  } : void 0
1623
1671
  ]), 1032, ["title", "description", "aria-busy"])) : y("", !0);
1624
1672
  }
1625
- }), Cl = ["aria-busy"], $l = { role: "alert" }, Sl = {
1673
+ }), Sl = ["aria-busy"], El = { role: "alert" }, Pl = {
1626
1674
  key: 2,
1627
1675
  role: "status"
1628
- }, El = { role: "alert" }, Tl = { role: "status" }, Pl = /* @__PURE__ */ fe({
1676
+ }, Tl = { role: "alert" }, zl = { role: "status" }, Al = /* @__PURE__ */ fe({
1629
1677
  __name: "LoginPage",
1630
1678
  props: {
1631
1679
  session: {},
1632
1680
  locale: {}
1633
1681
  },
1634
1682
  setup(t) {
1635
- const b = t, o = C(() => Oa(b.locale)), a = p(""), i = p(""), u = p(""), r = p(!1), c = p(!1), k = p(""), d = p(), f = C(() => window.location.protocol === "https:");
1683
+ const g = t, o = C(() => qa(g.locale)), a = f(""), s = f(""), u = f(""), r = f(!1), c = f(!1), b = f(""), d = f(), p = C(() => window.location.protocol === "https:");
1636
1684
  let x = !1;
1637
- function P(h) {
1638
- const z = h?.code;
1639
- return b.session.denied.value?.message || o.value.errors[z || ""] || o.value.errors.failed;
1685
+ function T(k) {
1686
+ const z = k?.code;
1687
+ return g.session.denied.value?.message || o.value.errors[z || ""] || o.value.errors.failed;
1640
1688
  }
1641
- async function w() {
1642
- if (!(c.value || !f.value || !a.value || !i.value || r.value && !u.value)) {
1643
- c.value = !0, k.value = "";
1689
+ async function _() {
1690
+ if (!(c.value || !p.value || !a.value || !s.value || r.value && !u.value)) {
1691
+ c.value = !0, b.value = "";
1644
1692
  try {
1645
- await b.session.login(a.value, i.value, u.value), i.value = "", u.value = "";
1646
- } catch (h) {
1693
+ await g.session.login(a.value, s.value, u.value), s.value = "", u.value = "";
1694
+ } catch (k) {
1647
1695
  if (x) return;
1648
- u.value = "", h?.code === "otp_required" ? r.value = !0 : (k.value = P(h), i.value = "", r.value = !1);
1696
+ u.value = "", k?.code === "otp_required" ? r.value = !0 : (b.value = T(k), s.value = "", r.value = !1);
1649
1697
  } finally {
1650
- x || (c.value = !1, r.value && (await et(), x || d.value?.querySelector("input")?.focus()));
1698
+ x || (c.value = !1, r.value && (await at(), x || d.value?.querySelector("input")?.focus()));
1651
1699
  }
1652
1700
  }
1653
1701
  }
1654
- async function _() {
1702
+ async function w() {
1655
1703
  if (!c.value) {
1656
- c.value = !0, k.value = "";
1704
+ c.value = !0, b.value = "";
1657
1705
  try {
1658
- await b.session.bootstrap();
1659
- } catch (h) {
1660
- x || (k.value = P(h));
1706
+ await g.session.bootstrap();
1707
+ } catch (k) {
1708
+ x || (b.value = T(k));
1661
1709
  } finally {
1662
1710
  x || (c.value = !1);
1663
1711
  }
1664
1712
  }
1665
1713
  }
1666
- function S() {
1667
- i.value = "", u.value = "", r.value = !1, k.value = "";
1714
+ function $() {
1715
+ s.value = "", u.value = "", r.value = !1, b.value = "";
1668
1716
  }
1669
- return Sa(() => {
1670
- x = !0, i.value = "", u.value = "";
1671
- }), (h, z) => (l(), E("main", {
1717
+ return Ea(() => {
1718
+ x = !0, s.value = "", u.value = "";
1719
+ }), (k, z) => (l(), S("main", {
1672
1720
  class: "identity-login",
1673
1721
  "aria-busy": c.value
1674
1722
  }, [
@@ -1678,13 +1726,13 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1678
1726
  collapsible: !1
1679
1727
  }, {
1680
1728
  default: n(() => [
1681
- f.value ? y("", !0) : (l(), m(e(j), {
1729
+ p.value ? y("", !0) : (l(), m(e(j), {
1682
1730
  key: 0,
1683
1731
  tone: "warning",
1684
1732
  title: o.value.httpsTitle
1685
1733
  }, {
1686
1734
  default: n(() => [
1687
- g(s(o.value.errors.https_required), 1)
1735
+ h(i(o.value.errors.https_required), 1)
1688
1736
  ]),
1689
1737
  _: 1
1690
1738
  }, 8, ["title"])),
@@ -1693,40 +1741,40 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1693
1741
  tone: "danger"
1694
1742
  }, {
1695
1743
  default: n(() => [
1696
- A("span", $l, s(t.session.denied.value.message), 1)
1744
+ A("span", El, i(t.session.denied.value.message), 1)
1697
1745
  ]),
1698
1746
  _: 1
1699
- })) : t.session.notice.value ? (l(), E("p", Sl, s(o.value.notices[t.session.notice.value]), 1)) : y("", !0),
1700
- k.value && !t.session.denied.value ? (l(), m(e(j), {
1747
+ })) : t.session.notice.value ? (l(), S("p", Pl, i(o.value.notices[t.session.notice.value]), 1)) : y("", !0),
1748
+ b.value && !t.session.denied.value ? (l(), m(e(j), {
1701
1749
  key: 3,
1702
1750
  tone: "danger",
1703
1751
  title: o.value.failedTitle
1704
1752
  }, {
1705
1753
  default: n(() => [
1706
- A("span", El, s(k.value), 1)
1754
+ A("span", Tl, i(b.value), 1)
1707
1755
  ]),
1708
1756
  _: 1
1709
1757
  }, 8, ["title"])) : y("", !0),
1710
- t.session.denied.value ? y("", !0) : (l(), m(e(qe), {
1758
+ t.session.denied.value ? y("", !0) : (l(), m(e(Fe), {
1711
1759
  key: 4,
1712
- onSubmit: Oe(w, ["prevent"])
1760
+ onSubmit: qe(_, ["prevent"])
1713
1761
  }, {
1714
1762
  default: n(() => [
1715
1763
  v(e($e), {
1716
1764
  label: o.value.account
1717
1765
  }, {
1718
1766
  default: n(() => [
1719
- v(e(Pe), {
1767
+ v(e(Te), {
1720
1768
  modelValue: a.value,
1721
1769
  "onUpdate:modelValue": z[0] || (z[0] = (B) => a.value = B),
1722
1770
  autocomplete: "username",
1723
- disabled: c.value || r.value || !f.value
1771
+ disabled: c.value || r.value || !p.value
1724
1772
  }, null, 8, ["modelValue", "disabled"])
1725
1773
  ]),
1726
1774
  _: 1
1727
1775
  }, 8, ["label"]),
1728
- r.value ? (l(), E(se, { key: 1 }, [
1729
- A("p", Tl, s(o.value.otpPrompt), 1),
1776
+ r.value ? (l(), S(ie, { key: 1 }, [
1777
+ A("p", zl, i(o.value.otpPrompt), 1),
1730
1778
  A("div", {
1731
1779
  ref_key: "otpField",
1732
1780
  ref: d
@@ -1735,7 +1783,7 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1735
1783
  label: o.value.otp
1736
1784
  }, {
1737
1785
  default: n(() => [
1738
- v(e(Pe), {
1786
+ v(e(Te), {
1739
1787
  modelValue: u.value,
1740
1788
  "onUpdate:modelValue": z[2] || (z[2] = (B) => u.value = B),
1741
1789
  inputmode: "numeric",
@@ -1751,25 +1799,25 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1751
1799
  label: o.value.password
1752
1800
  }, {
1753
1801
  default: n(() => [
1754
- v(e(Pe), {
1755
- modelValue: i.value,
1756
- "onUpdate:modelValue": z[1] || (z[1] = (B) => i.value = B),
1802
+ v(e(Te), {
1803
+ modelValue: s.value,
1804
+ "onUpdate:modelValue": z[1] || (z[1] = (B) => s.value = B),
1757
1805
  type: "password",
1758
1806
  autocomplete: "current-password",
1759
- disabled: c.value || !f.value
1807
+ disabled: c.value || !p.value
1760
1808
  }, null, 8, ["modelValue", "disabled"])
1761
1809
  ]),
1762
1810
  _: 1
1763
1811
  }, 8, ["label"])),
1764
- v(e(je), null, {
1812
+ v(e(ea), null, {
1765
1813
  default: n(() => [
1766
1814
  v(e(U), {
1767
1815
  type: "submit",
1768
1816
  variant: "primary",
1769
- disabled: c.value || !f.value || !a.value || !i.value || r.value && !u.value
1817
+ disabled: c.value || !p.value || !a.value || !s.value || r.value && !u.value
1770
1818
  }, {
1771
1819
  default: n(() => [
1772
- g(s(c.value ? o.value.signingIn : r.value ? o.value.verify : o.value.signIn), 1)
1820
+ h(i(c.value ? o.value.signingIn : r.value ? o.value.verify : o.value.signIn), 1)
1773
1821
  ]),
1774
1822
  _: 1
1775
1823
  }, 8, ["disabled"]),
@@ -1777,20 +1825,20 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1777
1825
  key: 0,
1778
1826
  variant: "secondary",
1779
1827
  disabled: c.value,
1780
- onClick: S
1828
+ onClick: $
1781
1829
  }, {
1782
1830
  default: n(() => [
1783
- g(s(o.value.otherAccount), 1)
1831
+ h(i(o.value.otherAccount), 1)
1784
1832
  ]),
1785
1833
  _: 1
1786
1834
  }, 8, ["disabled"])) : (l(), m(e(U), {
1787
1835
  key: 1,
1788
1836
  variant: "secondary",
1789
- disabled: c.value || !f.value,
1790
- onClick: _
1837
+ disabled: c.value || !p.value,
1838
+ onClick: w
1791
1839
  }, {
1792
1840
  default: n(() => [
1793
- g(s(o.value.continueDSM), 1)
1841
+ h(i(o.value.continueDSM), 1)
1794
1842
  ]),
1795
1843
  _: 1
1796
1844
  }, 8, ["disabled"]))
@@ -1803,151 +1851,151 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1803
1851
  ]),
1804
1852
  _: 1
1805
1853
  }, 8, ["title", "description"])
1806
- ], 8, Cl));
1854
+ ], 8, Sl));
1807
1855
  }
1808
- }), to = /* @__PURE__ */ me(Pl, [["__scopeId", "data-v-07e4497c"]]), zl = { class: "integration-actions" }, Al = { role: "status" }, Rl = { class: "integration-help" }, Il = { class: "integration-help" }, Dl = { class: "integration-help" }, Vl = { class: "integration-actions" }, Ul = {
1856
+ }), no = /* @__PURE__ */ me(Al, [["__scopeId", "data-v-07e4497c"]]), Rl = { class: "integration-actions" }, Il = { role: "status" }, Dl = { class: "integration-help" }, Vl = { class: "integration-help" }, Ul = { class: "integration-help" }, Nl = { class: "integration-actions" }, Bl = {
1809
1857
  key: 0,
1810
1858
  role: "status",
1811
1859
  "data-bg-picked": "",
1812
1860
  class: "bg-path"
1813
- }, Nl = { class: "integration-actions" }, Bl = { key: 2 }, Ll = {
1861
+ }, Ll = { class: "integration-actions" }, Ol = { key: 2 }, ql = {
1814
1862
  key: 3,
1815
1863
  class: "bg-cards"
1816
- }, Ol = { class: "bg-card-body" }, ql = {
1864
+ }, Fl = { class: "bg-card-body" }, Ml = {
1817
1865
  key: 0,
1818
1866
  class: "integration-help"
1819
- }, Fl = {
1867
+ }, Kl = {
1820
1868
  key: 1,
1821
1869
  class: "integration-help"
1822
- }, Ml = {
1870
+ }, Hl = {
1823
1871
  key: 2,
1824
1872
  class: "integration-help bg-path"
1825
- }, Kl = {
1873
+ }, Xl = {
1826
1874
  key: 3,
1827
1875
  class: "integration-help"
1828
- }, Hl = {
1876
+ }, Gl = {
1829
1877
  key: 4,
1830
1878
  class: "integration-help"
1831
- }, Xl = { class: "integration-actions" }, Gl = { key: 1 }, Wl = {
1879
+ }, Wl = { class: "integration-actions" }, Jl = { key: 1 }, Yl = {
1832
1880
  key: 2,
1833
1881
  class: "bg-cards"
1834
- }, Jl = { class: "bg-card-body" }, Yl = {
1882
+ }, Ql = { class: "bg-card-body" }, Zl = {
1835
1883
  key: 0,
1836
1884
  class: "integration-help"
1837
- }, Ql = {
1885
+ }, jl = {
1838
1886
  key: 1,
1839
1887
  class: "integration-help"
1840
- }, Zl = { class: "integration-help" }, jl = { class: "integration-actions" }, en = { class: "integration-actions" }, an = { class: "integration-actions" }, tn = /* @__PURE__ */ fe({
1888
+ }, en = { class: "integration-help" }, an = { class: "integration-actions" }, tn = { class: "integration-actions" }, ln = { class: "integration-actions" }, nn = /* @__PURE__ */ fe({
1841
1889
  __name: "BackgroundPanel",
1842
1890
  props: {
1843
1891
  ctx: {}
1844
1892
  },
1845
- setup(t, { expose: b }) {
1846
- const o = t, a = C(() => qa(o.ctx.locale)), i = (T, G) => na(T, G, o.ctx.locale), u = p(), r = p([]), c = p(), k = p(!1), d = p(!1), f = p([]), x = p(), P = p(!1), w = p("3600"), _ = p(), S = p(), h = p(), z = p(!1), B = p(), O = C(() => !u.value && !c.value && !k.value && !B.value), I = p(!1), q = p(), $ = p(""), L = p(""), X = Fa(o.ctx);
1847
- let K, F = !1;
1848
- const ie = (T) => !["queued", "running"].includes(T.state), W = (T) => ie(T) && T.state !== "paused", oe = (T) => T.state === "running" && T.pauseRequested, H = (T) => oe(T) ? a.value.pausing : a.value[`state_${T.state}`], le = (T) => oe(T) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[T.state];
1849
- async function ae(T, G, R = !1) {
1893
+ setup(t, { expose: g }) {
1894
+ const o = t, a = C(() => Fa(o.ctx.locale)), s = (P, W) => na(P, W, o.ctx.locale), u = f(), r = f([]), c = f(), b = f(!1), d = f(!1), p = f([]), x = f(), T = f(!1), _ = f("3600"), w = f(), $ = f(), k = f(), z = f(!1), B = f(), O = C(() => !u.value && !c.value && !b.value && !B.value), E = f(!1), F = f(), D = f(""), K = f(""), L = Ma(o.ctx);
1895
+ let M, q = !1;
1896
+ const te = (P) => !["queued", "running"].includes(P.state), X = (P) => te(P) && P.state !== "paused", ne = (P) => P.state === "running" && P.pauseRequested, H = (P) => ne(P) ? a.value.pausing : a.value[`state_${P.state}`], ae = (P) => ne(P) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[P.state];
1897
+ async function le(P, W, R = !1) {
1850
1898
  try {
1851
- return await o.ctx.call(T, G);
1899
+ return await o.ctx.call(P, W);
1852
1900
  } catch (ve) {
1853
- if (F || R && (B.value = xe(ve))) return;
1854
- ve?.code === "unsupported" ? (k.value = !0, r.value = [], f.value = [], x.value = void 0, _.value = void 0, S.value = void 0, u.value = void 0, h.value = void 0, q.value = void 0, $.value && URL.revokeObjectURL($.value), $.value = "") : F || (c.value = ve);
1901
+ if (q || R && (B.value = xe(ve))) return;
1902
+ ve?.code === "unsupported" ? (b.value = !0, r.value = [], p.value = [], x.value = void 0, w.value = void 0, $.value = void 0, u.value = void 0, k.value = void 0, F.value = void 0, D.value && URL.revokeObjectURL(D.value), D.value = "") : q || (c.value = ve);
1855
1903
  return;
1856
1904
  }
1857
1905
  }
1858
1906
  async function re() {
1859
- if (!(F || z.value)) {
1907
+ if (!(q || z.value)) {
1860
1908
  z.value = !0;
1861
1909
  try {
1862
- const T = await ae("bg.status", void 0, !0);
1863
- if (!T || F) return;
1864
- if (B.value = void 0, !T.limits || typeof T.admin != "boolean") {
1910
+ const P = await le("bg.status", void 0, !0);
1911
+ if (!P || q) return;
1912
+ if (B.value = void 0, !P.limits || typeof P.admin != "boolean") {
1865
1913
  c.value = { code: "unavailable" };
1866
1914
  return;
1867
1915
  }
1868
- k.value = !1, u.value = T;
1869
- const G = await ae("bg.jobs.list", void 0, !0);
1870
- G && !F && (r.value = G.jobs ?? []);
1871
- const R = await ae("bg.schedules.list", void 0, !0);
1872
- R && !F && (f.value = R.schedules ?? []), !F && r.value.every(ie) && f.value.every((ve) => !ve.enabled) && K && (clearInterval(K), K = void 0);
1916
+ b.value = !1, u.value = P;
1917
+ const W = await le("bg.jobs.list", void 0, !0);
1918
+ W && !q && (r.value = W.jobs ?? []);
1919
+ const R = await le("bg.schedules.list", void 0, !0);
1920
+ R && !q && (p.value = R.schedules ?? []), !q && r.value.every(te) && p.value.every((ve) => !ve.enabled) && M && (clearInterval(M), M = void 0);
1873
1921
  } finally {
1874
1922
  z.value = !1;
1875
1923
  }
1876
1924
  }
1877
1925
  }
1878
1926
  function Z() {
1879
- K || (K = setInterval(() => {
1927
+ M || (M = setInterval(() => {
1880
1928
  re();
1881
1929
  }, 3e3));
1882
1930
  }
1883
- async function M(T) {
1931
+ async function G(P) {
1884
1932
  if (!d.value) {
1885
1933
  d.value = !0, c.value = void 0;
1886
1934
  try {
1887
- await T(), await re(), (f.value.some((G) => G.enabled) || r.value.some((G) => !ie(G))) && Z();
1935
+ await P(), await re(), (p.value.some((W) => W.enabled) || r.value.some((W) => !te(W))) && Z();
1888
1936
  } finally {
1889
- F || (d.value = !1);
1937
+ q || (d.value = !1);
1890
1938
  }
1891
1939
  }
1892
1940
  }
1893
- const Y = () => M(async () => {
1894
- if (!h.value) return;
1895
- await ae("bg.jobs.purge", { owner: h.value }) && (h.value = void 0);
1896
- }), de = C(() => [{ value: "3600", label: a.value.hourly }, { value: "86400", label: a.value.daily }, { value: "604800", label: a.value.weekly }]), be = (T) => {
1897
- x.value = T, P.value = !1, w.value = "3600";
1898
- }, ze = () => M(async () => {
1899
- if (!x.value || !P.value) return;
1900
- await ae("bg.schedules.create", { key: pa(), jobId: x.value.id, intervalSeconds: Number(w.value), consent: !0 }) && (x.value = void 0);
1901
- }), he = (T) => M(() => ae("bg.schedules.disable", { id: T })), J = () => M(async () => {
1902
- if (!_.value) return;
1903
- await ae("bg.schedules.delete", { id: _.value.id }) && (_.value = void 0);
1904
- }), ne = () => M(async () => {
1905
- if (!S.value) return;
1906
- await ae("bg.schedules.enable", { id: S.value.id, consent: !0 }) && (S.value = void 0);
1907
- }), te = (T) => {
1908
- const G = new Date(T);
1909
- return Number.isFinite(G.getTime()) ? G.toLocaleString() : a.value.unknownTime;
1910
- }, ye = (T) => T.copyRetained && T.state === "succeeded" && !T.scheduleId && T.submitter?.user === u.value?.owner?.user && T.submitter?.uid === u.value?.owner?.uid, Ee = (T) => M(() => ae("bg.jobs.cancel", { id: T })), D = (T) => M(() => ae("bg.jobs.pause", { id: T })), V = (T) => M(() => ae("bg.jobs.resume", { id: T })), N = (T) => {
1911
- const G = T.lastIndexOf("/");
1912
- q.value = { folder: T.slice(0, G), relative: T.slice(G + 1) };
1913
- }, Q = () => M(async () => {
1914
- if (!q.value) return;
1915
- await ae("bg.jobs.submit", { key: pa(), ...q.value }) && (q.value = void 0);
1941
+ const Y = () => G(async () => {
1942
+ if (!k.value) return;
1943
+ await le("bg.jobs.purge", { owner: k.value }) && (k.value = void 0);
1944
+ }), de = C(() => [{ value: "3600", label: a.value.hourly }, { value: "86400", label: a.value.daily }, { value: "604800", label: a.value.weekly }]), be = (P) => {
1945
+ x.value = P, T.value = !1, _.value = "3600";
1946
+ }, ze = () => G(async () => {
1947
+ if (!x.value || !T.value) return;
1948
+ await le("bg.schedules.create", { key: pa(), jobId: x.value.id, intervalSeconds: Number(_.value), consent: !0 }) && (x.value = void 0);
1949
+ }), ke = (P) => G(() => le("bg.schedules.disable", { id: P })), J = () => G(async () => {
1950
+ if (!w.value) return;
1951
+ await le("bg.schedules.delete", { id: w.value.id }) && (w.value = void 0);
1952
+ }), se = () => G(async () => {
1953
+ if (!$.value) return;
1954
+ await le("bg.schedules.enable", { id: $.value.id, consent: !0 }) && ($.value = void 0);
1955
+ }), oe = (P) => {
1956
+ const W = new Date(P);
1957
+ return Number.isFinite(W.getTime()) ? W.toLocaleString() : a.value.unknownTime;
1958
+ }, ye = (P) => P.copyRetained && P.state === "succeeded" && !P.scheduleId && P.submitter?.user === u.value?.owner?.user && P.submitter?.uid === u.value?.owner?.uid, Ee = (P) => G(() => le("bg.jobs.cancel", { id: P })), I = (P) => G(() => le("bg.jobs.pause", { id: P })), V = (P) => G(() => le("bg.jobs.resume", { id: P })), N = (P) => {
1959
+ const W = P.lastIndexOf("/");
1960
+ F.value = { folder: P.slice(0, W), relative: P.slice(W + 1) };
1961
+ }, Q = () => G(async () => {
1962
+ if (!F.value) return;
1963
+ await le("bg.jobs.submit", { key: pa(), ...F.value }) && (F.value = void 0);
1916
1964
  });
1917
- async function ce(T) {
1918
- const G = await ae("bg.jobs.result", { id: T.id });
1919
- !G || F || ($.value && URL.revokeObjectURL($.value), $.value = URL.createObjectURL(new Blob([JSON.stringify(G.result, null, 2)], { type: "application/json" })), L.value = `${T.name || T.id}.sha256.json`);
1965
+ async function ce(P) {
1966
+ const W = await le("bg.jobs.result", { id: P.id });
1967
+ !W || q || (D.value && URL.revokeObjectURL(D.value), D.value = URL.createObjectURL(new Blob([JSON.stringify(W.result, null, 2)], { type: "application/json" })), K.value = `${P.name || P.id}.sha256.json`);
1920
1968
  }
1921
- return Fe(() => B.value, re), b({ refresh: re }), Se(() => {
1969
+ return Me(() => B.value, re), g({ refresh: re }), Se(() => {
1922
1970
  re().then(() => {
1923
- (f.value.some((T) => T.enabled) || r.value.some((T) => !ie(T))) && Z();
1971
+ (p.value.some((P) => P.enabled) || r.value.some((P) => !te(P))) && Z();
1924
1972
  });
1925
- }), ke(() => {
1926
- F = !0, X.dispose(), K && clearInterval(K), $.value && URL.revokeObjectURL($.value);
1927
- }), (T, G) => (l(), m(e(_e), {
1973
+ }), he(() => {
1974
+ q = !0, L.dispose(), M && clearInterval(M), D.value && URL.revokeObjectURL(D.value);
1975
+ }), (P, W) => (l(), m(e(_e), {
1928
1976
  "aria-busy": d.value || z.value || O.value,
1929
1977
  title: a.value.title,
1930
- description: k.value ? void 0 : a.value.help,
1978
+ description: b.value ? void 0 : a.value.help,
1931
1979
  collapsible: !1,
1932
1980
  "data-background-panel": ""
1933
1981
  }, {
1934
1982
  default: n(() => [
1935
- k.value ? (l(), m(e(j), {
1983
+ b.value ? (l(), m(e(j), {
1936
1984
  key: 0,
1937
1985
  tone: "warning"
1938
1986
  }, {
1939
1987
  default: n(() => [
1940
- g(s(a.value.unsupported), 1)
1988
+ h(i(a.value.unsupported), 1)
1941
1989
  ]),
1942
1990
  _: 1
1943
- })) : (l(), E(se, { key: 1 }, [
1991
+ })) : (l(), S(ie, { key: 1 }, [
1944
1992
  B.value ? (l(), m(e(j), {
1945
1993
  key: 0,
1946
1994
  tone: "info",
1947
1995
  role: "status"
1948
1996
  }, {
1949
1997
  default: n(() => [
1950
- g(s(e(Ue)(B.value, t.ctx.locale)), 1)
1998
+ h(i(e(Ue)(B.value, t.ctx.locale)), 1)
1951
1999
  ]),
1952
2000
  _: 1
1953
2001
  })) : y("", !0),
@@ -1957,27 +2005,27 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1957
2005
  role: "alert"
1958
2006
  }, {
1959
2007
  default: n(() => [
1960
- g(s(e(Ma)(c.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
2008
+ h(i(e(Ka)(c.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
1961
2009
  ]),
1962
2010
  _: 1
1963
2011
  })) : y("", !0),
1964
- O.value ? (l(), E(se, { key: 2 }, [
1965
- (l(), E(se, null, Ce(["14rem", "24rem", "18rem", "24rem"], (R, ve) => A("p", {
2012
+ O.value ? (l(), S(ie, { key: 2 }, [
2013
+ (l(), S(ie, null, Ce(["14rem", "24rem", "18rem", "24rem"], (R, ve) => A("p", {
1966
2014
  key: ve,
1967
2015
  "data-placeholder-row": ""
1968
2016
  }, [
1969
- v(e(Le), {
2017
+ v(e(Oe), {
1970
2018
  width: R,
1971
2019
  height: "20px"
1972
2020
  }, null, 8, ["width"])
1973
2021
  ])), 64)),
1974
- A("div", zl, [
2022
+ A("div", Rl, [
1975
2023
  v(e(U), {
1976
2024
  variant: "secondary",
1977
2025
  disabled: ""
1978
2026
  }, {
1979
2027
  default: n(() => [
1980
- g(s(a.value.chooseFile), 1)
2028
+ h(i(a.value.chooseFile), 1)
1981
2029
  ]),
1982
2030
  _: 1
1983
2031
  }),
@@ -1986,80 +2034,80 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
1986
2034
  disabled: ""
1987
2035
  }, {
1988
2036
  default: n(() => [
1989
- g(s(a.value.submit), 1)
2037
+ h(i(a.value.submit), 1)
1990
2038
  ]),
1991
2039
  _: 1
1992
2040
  })
1993
2041
  ])
1994
2042
  ], 64)) : y("", !0),
1995
- u.value ? (l(), E(se, { key: 3 }, [
1996
- A("p", Al, s(u.value.worker?.alive ? i(a.value.workerRunning, { user: u.value.worker.username }) : a.value.workerStopped), 1),
1997
- A("p", Rl, s(i(a.value.limits, { size: u.value.limits.maxInputBytes / 1024, queue: u.value.limits.maxQueued, seconds: u.value.limits.jobTimeoutSeconds })), 1),
1998
- A("p", Il, s(u.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
1999
- A("p", Dl, s(i(a.value.ownerLimits, { jobs: u.value.limits.maxOwnerPending, size: u.value.limits.maxOwnerBytes / 1024 })), 1),
2000
- A("div", Vl, [
2043
+ u.value ? (l(), S(ie, { key: 3 }, [
2044
+ A("p", Il, i(u.value.worker?.alive ? s(a.value.workerRunning, { user: u.value.worker.username }) : a.value.workerStopped), 1),
2045
+ A("p", Dl, i(s(a.value.limits, { size: u.value.limits.maxInputBytes / 1024, queue: u.value.limits.maxQueued, seconds: u.value.limits.jobTimeoutSeconds })), 1),
2046
+ A("p", Vl, i(u.value.admin ? a.value.adminScope : a.value.ownerScope), 1),
2047
+ A("p", Ul, i(s(a.value.ownerLimits, { jobs: u.value.limits.maxOwnerPending, size: u.value.limits.maxOwnerBytes / 1024 })), 1),
2048
+ A("div", Nl, [
2001
2049
  v(e(U), {
2002
2050
  variant: "secondary",
2003
2051
  disabled: d.value,
2004
- onClick: G[0] || (G[0] = (R) => I.value = !0)
2052
+ onClick: W[0] || (W[0] = (R) => E.value = !0)
2005
2053
  }, {
2006
2054
  default: n(() => [
2007
- g(s(a.value.chooseFile), 1)
2055
+ h(i(a.value.chooseFile), 1)
2008
2056
  ]),
2009
2057
  _: 1
2010
2058
  }, 8, ["disabled"]),
2011
2059
  v(e(U), {
2012
2060
  variant: "primary",
2013
- disabled: d.value || !q.value,
2061
+ disabled: d.value || !F.value,
2014
2062
  onClick: Q
2015
2063
  }, {
2016
2064
  default: n(() => [
2017
- g(s(a.value.submit), 1)
2065
+ h(i(a.value.submit), 1)
2018
2066
  ]),
2019
2067
  _: 1
2020
2068
  }, 8, ["disabled"])
2021
2069
  ]),
2022
- q.value ? (l(), E("p", Ul, [
2023
- g(s(i(a.value.chosen, { path: "" }).trim()) + " ", 1),
2070
+ F.value ? (l(), S("p", Bl, [
2071
+ h(i(s(a.value.chosen, { path: "" }).trim()) + " ", 1),
2024
2072
  v(e(De), {
2025
- path: `${q.value.folder}/${q.value.relative}`
2073
+ path: `${F.value.folder}/${F.value.relative}`
2026
2074
  }, null, 8, ["path"])
2027
2075
  ])) : y("", !0),
2028
- v(ea, {
2029
- open: I.value,
2030
- "onUpdate:open": G[1] || (G[1] = (R) => I.value = R),
2076
+ v(aa, {
2077
+ open: E.value,
2078
+ "onUpdate:open": W[1] || (W[1] = (R) => E.value = R),
2031
2079
  locale: t.ctx.locale,
2032
2080
  name: t.ctx.displayName,
2033
- provider: e(X),
2081
+ provider: e(L),
2034
2082
  mode: "file",
2035
2083
  title: a.value.pickerTitle,
2036
2084
  description: a.value.pickerConsent,
2037
2085
  onSelected: N
2038
2086
  }, null, 8, ["open", "locale", "name", "provider", "title", "description"]),
2039
- h.value && u.value.admin ? (l(), m(e(j), {
2087
+ k.value && u.value.admin ? (l(), m(e(j), {
2040
2088
  key: 1,
2041
2089
  tone: "warning"
2042
2090
  }, {
2043
2091
  default: n(() => [
2044
- A("p", null, s(i(a.value.purgeConfirm, { user: h.value.user, uid: h.value.uid })), 1),
2045
- A("div", Nl, [
2092
+ A("p", null, i(s(a.value.purgeConfirm, { user: k.value.user, uid: k.value.uid })), 1),
2093
+ A("div", Ll, [
2046
2094
  v(e(U), {
2047
2095
  variant: "secondary",
2048
2096
  disabled: d.value,
2049
2097
  onClick: Y
2050
2098
  }, {
2051
2099
  default: n(() => [
2052
- g(s(a.value.confirmPurge), 1)
2100
+ h(i(a.value.confirmPurge), 1)
2053
2101
  ]),
2054
2102
  _: 1
2055
2103
  }, 8, ["disabled"]),
2056
2104
  v(e(U), {
2057
2105
  variant: "secondary",
2058
2106
  disabled: d.value,
2059
- onClick: G[2] || (G[2] = (R) => h.value = void 0)
2107
+ onClick: W[2] || (W[2] = (R) => k.value = void 0)
2060
2108
  }, {
2061
2109
  default: n(() => [
2062
- g(s(a.value.keepJobs), 1)
2110
+ h(i(a.value.keepJobs), 1)
2063
2111
  ]),
2064
2112
  _: 1
2065
2113
  }, 8, ["disabled"])
@@ -2067,8 +2115,8 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2067
2115
  ]),
2068
2116
  _: 1
2069
2117
  })) : y("", !0),
2070
- r.value.length ? (l(), E("div", Ll, [
2071
- (l(!0), E(se, null, Ce(r.value, (R) => (l(), m(e(ka), {
2118
+ r.value.length ? (l(), S("div", ql, [
2119
+ (l(!0), S(ie, null, Ce(r.value, (R) => (l(), m(e(ha), {
2072
2120
  key: R.id,
2073
2121
  title: R.name,
2074
2122
  "layout-type": "compact",
@@ -2077,69 +2125,69 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2077
2125
  }, {
2078
2126
  "header-actions": n(() => [
2079
2127
  v(e(sa), {
2080
- tone: le(R),
2128
+ tone: ae(R),
2081
2129
  "data-bg-state": ""
2082
2130
  }, {
2083
2131
  default: n(() => [
2084
- g(s(H(R)), 1)
2132
+ h(i(H(R)), 1)
2085
2133
  ]),
2086
2134
  _: 2
2087
2135
  }, 1032, ["tone"])
2088
2136
  ]),
2089
2137
  default: n(() => [
2090
- A("div", Ol, [
2091
- R.progress?.total ? (l(), E("span", ql, s(i(a.value.progressItems, { done: R.progress.done, count: R.progress.total })), 1)) : y("", !0),
2092
- R.progress?.totalBytes ? (l(), E("span", Fl, s(i(a.value.progressBytes, { done: e(ia)(R.progress.bytes, t.ctx.locale), total: e(ia)(R.progress.totalBytes, t.ctx.locale) })), 1)) : y("", !0),
2093
- R.progress?.item ? (l(), E("span", Ml, [
2094
- g(s(i(a.value.progressItem, { item: "" }).trim()) + " ", 1),
2138
+ A("div", Fl, [
2139
+ R.progress?.total ? (l(), S("span", Ml, i(s(a.value.progressItems, { done: R.progress.done, count: R.progress.total })), 1)) : y("", !0),
2140
+ R.progress?.totalBytes ? (l(), S("span", Kl, i(s(a.value.progressBytes, { done: e(ia)(R.progress.bytes, t.ctx.locale), total: e(ia)(R.progress.totalBytes, t.ctx.locale) })), 1)) : y("", !0),
2141
+ R.progress?.item ? (l(), S("span", Hl, [
2142
+ h(i(s(a.value.progressItem, { item: "" }).trim()) + " ", 1),
2095
2143
  v(e(De), {
2096
2144
  path: R.progress.item
2097
2145
  }, null, 8, ["path"])
2098
2146
  ])) : y("", !0),
2099
- u.value.admin && R.submitter ? (l(), E("span", Kl, s(i(a.value.owner, { user: R.submitter.user, uid: R.submitter.uid })), 1)) : y("", !0),
2100
- R.scheduleId ? (l(), E("span", Hl, s(a.value.scheduledJob), 1)) : y("", !0),
2101
- A("div", Xl, [
2147
+ u.value.admin && R.submitter ? (l(), S("span", Xl, i(s(a.value.owner, { user: R.submitter.user, uid: R.submitter.uid })), 1)) : y("", !0),
2148
+ R.scheduleId ? (l(), S("span", Gl, i(a.value.scheduledJob), 1)) : y("", !0),
2149
+ A("div", Wl, [
2102
2150
  u.value.admin && R.submitter ? (l(), m(e(U), {
2103
2151
  key: 0,
2104
2152
  variant: "secondary",
2105
2153
  disabled: d.value,
2106
- onClick: (ve) => h.value = R.submitter
2154
+ onClick: (ve) => k.value = R.submitter
2107
2155
  }, {
2108
2156
  default: n(() => [
2109
- g(s(a.value.purgeOwner), 1)
2157
+ h(i(a.value.purgeOwner), 1)
2110
2158
  ]),
2111
2159
  _: 1
2112
2160
  }, 8, ["disabled", "onClick"])) : y("", !0),
2113
- !ie(R) && !R.pauseRequested && !R.delegation_id ? (l(), m(e(U), {
2161
+ !te(R) && !R.pauseRequested && !R.delegation_id ? (l(), m(e(U), {
2114
2162
  key: 1,
2115
2163
  variant: "secondary",
2116
2164
  disabled: d.value,
2117
- onClick: (ve) => D(R.id)
2165
+ onClick: (ve) => I(R.id)
2118
2166
  }, {
2119
2167
  default: n(() => [
2120
- g(s(a.value.pause), 1)
2168
+ h(i(a.value.pause), 1)
2121
2169
  ]),
2122
2170
  _: 1
2123
2171
  }, 8, ["disabled", "onClick"])) : y("", !0),
2124
- R.state === "paused" || oe(R) ? (l(), m(e(U), {
2172
+ R.state === "paused" || ne(R) ? (l(), m(e(U), {
2125
2173
  key: 2,
2126
2174
  variant: "secondary",
2127
2175
  disabled: d.value,
2128
2176
  onClick: (ve) => V(R.id)
2129
2177
  }, {
2130
2178
  default: n(() => [
2131
- g(s(a.value.resume), 1)
2179
+ h(i(a.value.resume), 1)
2132
2180
  ]),
2133
2181
  _: 1
2134
2182
  }, 8, ["disabled", "onClick"])) : y("", !0),
2135
- W(R) ? y("", !0) : (l(), m(e(U), {
2183
+ X(R) ? y("", !0) : (l(), m(e(U), {
2136
2184
  key: 3,
2137
2185
  variant: "secondary",
2138
2186
  disabled: d.value,
2139
2187
  onClick: (ve) => Ee(R.id)
2140
2188
  }, {
2141
2189
  default: n(() => [
2142
- g(s(a.value.cancel), 1)
2190
+ h(i(a.value.cancel), 1)
2143
2191
  ]),
2144
2192
  _: 1
2145
2193
  }, 8, ["disabled", "onClick"])),
@@ -2150,7 +2198,7 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2150
2198
  onClick: (ve) => be(R)
2151
2199
  }, {
2152
2200
  default: n(() => [
2153
- g(s(a.value.scheduleCopy), 1)
2201
+ h(i(a.value.scheduleCopy), 1)
2154
2202
  ]),
2155
2203
  _: 1
2156
2204
  }, 8, ["disabled", "onClick"])) : y("", !0),
@@ -2161,7 +2209,7 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2161
2209
  onClick: (ve) => ce(R)
2162
2210
  }, {
2163
2211
  default: n(() => [
2164
- g(s(a.value.result), 1)
2212
+ h(i(a.value.result), 1)
2165
2213
  ]),
2166
2214
  _: 1
2167
2215
  }, 8, ["disabled", "onClick"])) : y("", !0)
@@ -2170,7 +2218,7 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2170
2218
  ]),
2171
2219
  _: 2
2172
2220
  }, 1032, ["title", "data-job-state", "data-job-id"]))), 128))
2173
- ])) : (l(), E("p", Bl, s(a.value.noJobs), 1)),
2221
+ ])) : (l(), S("p", Ol, i(a.value.noJobs), 1)),
2174
2222
  v(e(_e), {
2175
2223
  "data-bg-schedules": "",
2176
2224
  class: "bg-schedules",
@@ -2179,20 +2227,20 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2179
2227
  collapsible: !1
2180
2228
  }, {
2181
2229
  default: n(() => [
2182
- x.value ? (l(), m(e(qe), {
2230
+ x.value ? (l(), m(e(Fe), {
2183
2231
  key: 0,
2184
2232
  class: "bg-schedule-form",
2185
- onSubmit: Oe(ze, ["prevent"])
2233
+ onSubmit: qe(ze, ["prevent"])
2186
2234
  }, {
2187
2235
  default: n(() => [
2188
- A("p", null, s(i(a.value.scheduleSource, { name: x.value.name })), 1),
2236
+ A("p", null, i(s(a.value.scheduleSource, { name: x.value.name })), 1),
2189
2237
  v(e($e), {
2190
2238
  label: a.value.interval
2191
2239
  }, {
2192
2240
  default: n(() => [
2193
2241
  v(e(va), {
2194
- modelValue: w.value,
2195
- "onUpdate:modelValue": G[3] || (G[3] = (R) => w.value = R),
2242
+ modelValue: _.value,
2243
+ "onUpdate:modelValue": W[3] || (W[3] = (R) => _.value = R),
2196
2244
  "data-schedule-interval": "",
2197
2245
  options: de.value,
2198
2246
  disabled: d.value
@@ -2200,22 +2248,22 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2200
2248
  ]),
2201
2249
  _: 1
2202
2250
  }, 8, ["label"]),
2203
- v(e(ct), {
2204
- modelValue: P.value,
2205
- "onUpdate:modelValue": G[4] || (G[4] = (R) => P.value = R),
2251
+ v(e(vt), {
2252
+ modelValue: T.value,
2253
+ "onUpdate:modelValue": W[4] || (W[4] = (R) => T.value = R),
2206
2254
  "data-schedule-consent": "",
2207
2255
  disabled: d.value,
2208
2256
  label: a.value.scheduleConsent
2209
2257
  }, null, 8, ["modelValue", "disabled", "label"]),
2210
- v(e(je), null, {
2258
+ v(e(ea), null, {
2211
2259
  default: n(() => [
2212
2260
  v(e(U), {
2213
2261
  type: "submit",
2214
2262
  variant: "primary",
2215
- disabled: d.value || !P.value
2263
+ disabled: d.value || !T.value
2216
2264
  }, {
2217
2265
  default: n(() => [
2218
- g(s(a.value.createSchedule), 1)
2266
+ h(i(a.value.createSchedule), 1)
2219
2267
  ]),
2220
2268
  _: 1
2221
2269
  }, 8, ["disabled"]),
@@ -2223,10 +2271,10 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2223
2271
  type: "button",
2224
2272
  variant: "secondary",
2225
2273
  disabled: d.value,
2226
- onClick: G[5] || (G[5] = (R) => x.value = void 0)
2274
+ onClick: W[5] || (W[5] = (R) => x.value = void 0)
2227
2275
  }, {
2228
2276
  default: n(() => [
2229
- g(s(a.value.cancel), 1)
2277
+ h(i(a.value.cancel), 1)
2230
2278
  ]),
2231
2279
  _: 1
2232
2280
  }, 8, ["disabled"])
@@ -2236,8 +2284,8 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2236
2284
  ]),
2237
2285
  _: 1
2238
2286
  })) : y("", !0),
2239
- f.value.length ? (l(), E("div", Wl, [
2240
- (l(!0), E(se, null, Ce(f.value, (R) => (l(), m(e(ka), {
2287
+ p.value.length ? (l(), S("div", Yl, [
2288
+ (l(!0), S(ie, null, Ce(p.value, (R) => (l(), m(e(ha), {
2241
2289
  key: R.id,
2242
2290
  title: R.name,
2243
2291
  "layout-type": "compact",
@@ -2249,22 +2297,22 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2249
2297
  "data-bg-state": ""
2250
2298
  }, {
2251
2299
  default: n(() => [
2252
- g(s(R.enabled ? a.value.scheduleOn : a.value.scheduleOff), 1)
2300
+ h(i(R.enabled ? a.value.scheduleOn : a.value.scheduleOff), 1)
2253
2301
  ]),
2254
2302
  _: 2
2255
2303
  }, 1032, ["tone"])
2256
2304
  ]),
2257
2305
  default: n(() => [
2258
- A("div", Jl, [
2259
- u.value.admin ? (l(), E("span", Yl, s(i(a.value.owner, { user: R.owner.user, uid: R.owner.uid })), 1)) : y("", !0),
2260
- R.enabled ? (l(), E("span", Ql, s(i(a.value.nextRun, { time: te(R.nextAt) })), 1)) : y("", !0),
2261
- A("span", Zl, s(i(a.value.missedRuns, { count: R.missed })), 1),
2306
+ A("div", Ql, [
2307
+ u.value.admin ? (l(), S("span", Zl, i(s(a.value.owner, { user: R.owner.user, uid: R.owner.uid })), 1)) : y("", !0),
2308
+ R.enabled ? (l(), S("span", jl, i(s(a.value.nextRun, { time: oe(R.nextAt) })), 1)) : y("", !0),
2309
+ A("span", en, i(s(a.value.missedRuns, { count: R.missed })), 1),
2262
2310
  R.reason === "worker-changed" ? (l(), m(e(j), {
2263
2311
  key: 2,
2264
2312
  tone: "warning"
2265
2313
  }, {
2266
2314
  default: n(() => [
2267
- g(s(a.value.revisionChanged), 1)
2315
+ h(i(a.value.revisionChanged), 1)
2268
2316
  ]),
2269
2317
  _: 1
2270
2318
  })) : R.reason === "input-unavailable" ? (l(), m(e(j), {
@@ -2272,39 +2320,39 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2272
2320
  tone: "warning"
2273
2321
  }, {
2274
2322
  default: n(() => [
2275
- g(s(a.value.errors["input-unavailable"]), 1)
2323
+ h(i(a.value.errors["input-unavailable"]), 1)
2276
2324
  ]),
2277
2325
  _: 1
2278
2326
  })) : y("", !0),
2279
- A("div", jl, [
2327
+ A("div", an, [
2280
2328
  R.enabled ? (l(), m(e(U), {
2281
2329
  key: 0,
2282
2330
  variant: "secondary",
2283
2331
  disabled: d.value,
2284
- onClick: (ve) => he(R.id)
2332
+ onClick: (ve) => ke(R.id)
2285
2333
  }, {
2286
2334
  default: n(() => [
2287
- g(s(a.value.disableSchedule), 1)
2335
+ h(i(a.value.disableSchedule), 1)
2288
2336
  ]),
2289
2337
  _: 1
2290
2338
  }, 8, ["disabled", "onClick"])) : u.value.admin ? (l(), m(e(U), {
2291
2339
  key: 1,
2292
2340
  variant: "secondary",
2293
2341
  disabled: d.value,
2294
- onClick: (ve) => S.value = R
2342
+ onClick: (ve) => $.value = R
2295
2343
  }, {
2296
2344
  default: n(() => [
2297
- g(s(a.value.enableSchedule), 1)
2345
+ h(i(a.value.enableSchedule), 1)
2298
2346
  ]),
2299
2347
  _: 1
2300
2348
  }, 8, ["disabled", "onClick"])) : y("", !0),
2301
2349
  v(e(U), {
2302
2350
  variant: "secondary",
2303
2351
  disabled: d.value,
2304
- onClick: (ve) => _.value = R
2352
+ onClick: (ve) => w.value = R
2305
2353
  }, {
2306
2354
  default: n(() => [
2307
- g(s(a.value.deleteSchedule), 1)
2355
+ h(i(a.value.deleteSchedule), 1)
2308
2356
  ]),
2309
2357
  _: 1
2310
2358
  }, 8, ["disabled", "onClick"])
@@ -2313,31 +2361,31 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2313
2361
  ]),
2314
2362
  _: 2
2315
2363
  }, 1032, ["title", "data-schedule-id"]))), 128))
2316
- ])) : (l(), E("p", Gl, s(a.value.noSchedules), 1)),
2317
- _.value ? (l(), m(e(j), {
2364
+ ])) : (l(), S("p", Jl, i(a.value.noSchedules), 1)),
2365
+ w.value ? (l(), m(e(j), {
2318
2366
  key: 3,
2319
2367
  tone: "warning"
2320
2368
  }, {
2321
2369
  default: n(() => [
2322
- A("p", null, s(i(a.value.deleteScheduleConsent, { name: _.value.name })), 1),
2323
- A("div", en, [
2370
+ A("p", null, i(s(a.value.deleteScheduleConsent, { name: w.value.name })), 1),
2371
+ A("div", tn, [
2324
2372
  v(e(U), {
2325
2373
  variant: "danger",
2326
2374
  disabled: d.value,
2327
2375
  onClick: J
2328
2376
  }, {
2329
2377
  default: n(() => [
2330
- g(s(a.value.confirmDeleteSchedule), 1)
2378
+ h(i(a.value.confirmDeleteSchedule), 1)
2331
2379
  ]),
2332
2380
  _: 1
2333
2381
  }, 8, ["disabled"]),
2334
2382
  v(e(U), {
2335
2383
  variant: "secondary",
2336
2384
  disabled: d.value,
2337
- onClick: G[6] || (G[6] = (R) => _.value = void 0)
2385
+ onClick: W[6] || (W[6] = (R) => w.value = void 0)
2338
2386
  }, {
2339
2387
  default: n(() => [
2340
- g(s(a.value.cancel), 1)
2388
+ h(i(a.value.cancel), 1)
2341
2389
  ]),
2342
2390
  _: 1
2343
2391
  }, 8, ["disabled"])
@@ -2345,30 +2393,30 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2345
2393
  ]),
2346
2394
  _: 1
2347
2395
  })) : y("", !0),
2348
- S.value ? (l(), m(e(j), {
2396
+ $.value ? (l(), m(e(j), {
2349
2397
  key: 4,
2350
2398
  tone: "warning"
2351
2399
  }, {
2352
2400
  default: n(() => [
2353
- A("p", null, s(i(a.value.enableScheduleConsent, { name: S.value.name })), 1),
2354
- A("div", an, [
2401
+ A("p", null, i(s(a.value.enableScheduleConsent, { name: $.value.name })), 1),
2402
+ A("div", ln, [
2355
2403
  v(e(U), {
2356
2404
  variant: "primary",
2357
2405
  disabled: d.value,
2358
- onClick: ne
2406
+ onClick: se
2359
2407
  }, {
2360
2408
  default: n(() => [
2361
- g(s(a.value.confirmEnableSchedule), 1)
2409
+ h(i(a.value.confirmEnableSchedule), 1)
2362
2410
  ]),
2363
2411
  _: 1
2364
2412
  }, 8, ["disabled"]),
2365
2413
  v(e(U), {
2366
2414
  variant: "secondary",
2367
2415
  disabled: d.value,
2368
- onClick: G[7] || (G[7] = (R) => S.value = void 0)
2416
+ onClick: W[7] || (W[7] = (R) => $.value = void 0)
2369
2417
  }, {
2370
2418
  default: n(() => [
2371
- g(s(a.value.cancel), 1)
2419
+ h(i(a.value.cancel), 1)
2372
2420
  ]),
2373
2421
  _: 1
2374
2422
  }, 8, ["disabled"])
@@ -2379,13 +2427,13 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2379
2427
  ]),
2380
2428
  _: 1
2381
2429
  }, 8, ["title", "description"]),
2382
- $.value ? (l(), m(e(Ea), {
2430
+ D.value ? (l(), m(e(Pa), {
2383
2431
  key: 4,
2384
- href: $.value,
2385
- download: L.value
2432
+ href: D.value,
2433
+ download: K.value
2386
2434
  }, {
2387
2435
  default: n(() => [
2388
- g(s(a.value.download), 1)
2436
+ h(i(a.value.download), 1)
2389
2437
  ]),
2390
2438
  _: 1
2391
2439
  }, 8, ["href", "download"])) : y("", !0)
@@ -2395,13 +2443,13 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2395
2443
  _: 1
2396
2444
  }, 8, ["aria-busy", "title", "description"]));
2397
2445
  }
2398
- }), lo = /* @__PURE__ */ me(tn, [["__scopeId", "data-v-a7c98d9d"]]), ln = ["inert", "aria-hidden"], nn = {
2446
+ }), oo = /* @__PURE__ */ me(nn, [["__scopeId", "data-v-a7c98d9d"]]), on = ["inert", "aria-hidden"], sn = {
2399
2447
  key: 3,
2400
2448
  class: "executor-approval"
2401
- }, on = {
2449
+ }, un = {
2402
2450
  key: 0,
2403
2451
  class: "executor-brand"
2404
- }, sn = ["src"], un = /* @__PURE__ */ fe({
2452
+ }, rn = ["src"], dn = /* @__PURE__ */ fe({
2405
2453
  __name: "ExecutorApproval",
2406
2454
  props: {
2407
2455
  admin: { type: Boolean },
@@ -2411,51 +2459,51 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2411
2459
  preload: { type: Boolean }
2412
2460
  },
2413
2461
  setup(t) {
2414
- const b = t, o = Ne(Ke, void 0), a = C(() => Ve(b.locale)), i = p("checking"), u = p(), r = C(() => {
2415
- const w = b.ctx;
2416
- return (w?.fullPage ?? (w?.host ? wa({ host: w.host }) : !1)) && w?.displayName ? w : void 0;
2462
+ const g = t, o = Ne(He, void 0), a = C(() => Ve(g.locale)), s = f("checking"), u = f(), r = C(() => {
2463
+ const _ = g.ctx;
2464
+ return (_?.fullPage ?? (_?.host ? _a({ host: _.host }) : !1)) && _?.displayName ? _ : void 0;
2417
2465
  });
2418
- function c(w) {
2419
- u.value = w, i.value = w.state;
2466
+ function c(_) {
2467
+ u.value = _, s.value = _.state;
2420
2468
  }
2421
- let k = !1, d;
2422
- async function f() {
2469
+ let b = !1, d;
2470
+ async function p() {
2423
2471
  try {
2424
- const w = await o.status();
2425
- k || c(w);
2472
+ const _ = await o.status();
2473
+ b || c(_);
2426
2474
  } catch {
2427
- k || (u.value = void 0, i.value = "blocked");
2475
+ b || (u.value = void 0, s.value = "blocked");
2428
2476
  }
2429
2477
  }
2430
- const x = C(() => xe(u.value)), P = C(() => !!b.preload && !!o && (i.value === "ready" || i.value === "checking"));
2431
- return Qe(za, C(() => P.value && i.value === "checking")), Fe(() => x.value, f), Se(() => {
2432
- o && (o.subscribe?.((w) => {
2433
- !k && !Je(w) && c(w);
2434
- }), d = b.ctx?.reopen(() => {
2435
- f();
2436
- }), f());
2437
- }), ke(() => {
2438
- k = !0, d?.();
2439
- }), (w, _) => (l(), E(se, null, [
2440
- P.value ? (l(), E("div", {
2478
+ const x = C(() => xe(u.value)), T = C(() => !!g.preload && !!o && (s.value === "ready" || s.value === "checking"));
2479
+ return Ze(Aa, C(() => T.value && s.value === "checking")), Me(() => x.value, p), Se(() => {
2480
+ o && (o.subscribe?.((_) => {
2481
+ !b && !Ye(_) && c(_);
2482
+ }), d = g.ctx?.reopen(() => {
2483
+ p();
2484
+ }), p());
2485
+ }), he(() => {
2486
+ b = !0, d?.();
2487
+ }), (_, w) => (l(), S(ie, null, [
2488
+ T.value ? (l(), S("div", {
2441
2489
  key: 0,
2442
- class: Ie(["executor-pages", { "executor-preloading": i.value === "checking" }]),
2443
- inert: i.value === "checking" || void 0,
2444
- "aria-hidden": i.value === "checking" ? "true" : void 0
2490
+ class: Ie(["executor-pages", { "executor-preloading": s.value === "checking" }]),
2491
+ inert: s.value === "checking" || void 0,
2492
+ "aria-hidden": s.value === "checking" ? "true" : void 0
2445
2493
  }, [
2446
- ge(w.$slots, "default", {}, void 0, !0)
2447
- ], 10, ln)) : !e(o) || i.value === "ready" ? ge(w.$slots, "default", {}, void 0, !0, 1) : y("", !0),
2448
- e(o) && i.value === "checking" ? (l(), m(e(vt), {
2494
+ ge(_.$slots, "default", {}, void 0, !0)
2495
+ ], 10, on)) : !e(o) || s.value === "ready" ? ge(_.$slots, "default", {}, void 0, !0, 1) : y("", !0),
2496
+ e(o) && s.value === "checking" ? (l(), m(e(ft), {
2449
2497
  key: 2,
2450
2498
  text: a.value.loading
2451
- }, null, 8, ["text"])) : e(o) && i.value !== "ready" ? (l(), E("div", nn, [
2452
- r.value ? (l(), E("header", on, [
2453
- r.value.appIcon ? (l(), E("img", {
2499
+ }, null, 8, ["text"])) : e(o) && s.value !== "ready" ? (l(), S("div", sn, [
2500
+ r.value ? (l(), S("header", un, [
2501
+ r.value.appIcon ? (l(), S("img", {
2454
2502
  key: 0,
2455
2503
  src: r.value.appIcon,
2456
2504
  alt: ""
2457
- }, null, 8, sn)) : y("", !0),
2458
- A("span", null, s(r.value.displayName), 1)
2505
+ }, null, 8, rn)) : y("", !0),
2506
+ A("span", null, i(r.value.displayName), 1)
2459
2507
  ])) : y("", !0),
2460
2508
  x.value ? (l(), m(e(j), {
2461
2509
  key: 1,
@@ -2463,10 +2511,10 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2463
2511
  role: "status"
2464
2512
  }, {
2465
2513
  default: n(() => [
2466
- g(s(e(Ue)(x.value, t.locale)), 1)
2514
+ h(i(e(Ue)(x.value, t.locale)), 1)
2467
2515
  ]),
2468
2516
  _: 1
2469
- })) : t.admin ? (l(), m(Da, {
2517
+ })) : t.admin ? (l(), m(Va, {
2470
2518
  key: 2,
2471
2519
  admin: !0,
2472
2520
  locale: t.locale,
@@ -2474,8 +2522,8 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2474
2522
  purpose: t.purpose,
2475
2523
  title: "",
2476
2524
  layout: "page",
2477
- onConfirmed: f
2478
- }, null, 8, ["locale", "initial", "purpose"])) : i.value === "needs-admin-approval" ? (l(), m(Ye, {
2525
+ onConfirmed: p
2526
+ }, null, 8, ["locale", "initial", "purpose"])) : s.value === "needs-admin-approval" ? (l(), m(Qe, {
2479
2527
  key: 3,
2480
2528
  admin: !1,
2481
2529
  locale: t.locale,
@@ -2486,102 +2534,102 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2486
2534
  tone: "info"
2487
2535
  }, {
2488
2536
  default: n(() => [
2489
- g(s(a.value.executorBlocked), 1)
2537
+ h(i(a.value.executorBlocked), 1)
2490
2538
  ]),
2491
2539
  _: 1
2492
2540
  }))
2493
2541
  ])) : y("", !0)
2494
2542
  ], 64));
2495
2543
  }
2496
- }), no = /* @__PURE__ */ me(un, [["__scopeId", "data-v-59aae3f3"]]), rn = {
2544
+ }), so = /* @__PURE__ */ me(dn, [["__scopeId", "data-v-59aae3f3"]]), cn = {
2497
2545
  key: 2,
2498
2546
  role: "status"
2499
- }, dn = {
2547
+ }, vn = {
2500
2548
  key: 3,
2501
2549
  role: "status"
2502
- }, cn = {
2550
+ }, fn = {
2503
2551
  key: 0,
2504
2552
  role: "status",
2505
2553
  class: "destination"
2506
- }, vn = {
2554
+ }, pn = {
2507
2555
  key: 0,
2508
2556
  "data-placeholder-row": ""
2509
- }, fn = { key: 1 }, pn = {
2557
+ }, mn = { key: 1 }, yn = {
2510
2558
  key: 2,
2511
2559
  class: "records"
2512
- }, mn = ["data-job-state"], yn = ["role"], bn = {
2560
+ }, bn = ["data-job-state"], gn = ["role"], hn = {
2513
2561
  key: 0,
2514
2562
  "data-placeholder-row": ""
2515
- }, gn = { key: 1 }, kn = {
2563
+ }, kn = { key: 1 }, wn = {
2516
2564
  key: 2,
2517
2565
  class: "records"
2518
- }, hn = /* @__PURE__ */ fe({
2566
+ }, _n = /* @__PURE__ */ fe({
2519
2567
  __name: "DelegatePanel",
2520
2568
  props: {
2521
2569
  ctx: {}
2522
2570
  },
2523
- setup(t, { expose: b }) {
2524
- const o = t, a = C(() => Ve(o.ctx.locale)), i = C(() => Ca(o.ctx.locale)), u = xa(o.ctx), r = p(), c = p([]), k = p([]), d = p(!1), f = p(), x = p(""), P = p(!1), w = p(""), _ = p(""), S = p("");
2525
- let h = !1, z, B;
2526
- const O = p();
2527
- He([_, w, S], () => {
2571
+ setup(t, { expose: g }) {
2572
+ const o = t, a = C(() => Ve(o.ctx.locale)), s = C(() => $a(o.ctx.locale)), u = Ca(o.ctx), r = f(), c = f([]), b = f([]), d = f(!1), p = f(), x = f(""), T = f(!1), _ = f(""), w = f(""), $ = f("");
2573
+ let k = !1, z, B;
2574
+ const O = f();
2575
+ Le([w, _, $], () => {
2528
2576
  B = void 0;
2529
2577
  }, { flush: "sync" });
2530
- const I = (Z) => ["queued", "running", "waiting_executor"].includes(Z.state), q = C(() => k.value.some((Z) => Z.state === "waiting_executor")), $ = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], L = C(() => q.value && $.includes(f.value?.code ?? "")), X = C(() => !r.value && !f.value && !O.value), K = C(() => r.value && r.value.state !== "ready" && !(q.value && r.value.state === "needs-admin-approval" && $.includes(r.value.reason ?? "")));
2531
- async function F() {
2532
- if (h) return;
2533
- const [Z, M, Y] = await Promise.allSettled([o.ctx.call("delegate.status"), o.ctx.call("delegate.list"), o.ctx.call("delegate.jobs.list")]);
2534
- if (h) return;
2535
- Z.status === "fulfilled" && (r.value = Z.value), M.status === "fulfilled" && (c.value = (M.value.delegations ?? []).filter((be) => !be.revoked)), Y.status === "fulfilled" && (k.value = Y.value.jobs ?? []);
2536
- const de = [Z, M, Y].find((be) => be.status === "rejected");
2578
+ const E = (Z) => ["queued", "running", "waiting_executor"].includes(Z.state), F = C(() => b.value.some((Z) => Z.state === "waiting_executor")), D = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = C(() => F.value && D.includes(p.value?.code ?? "")), L = C(() => !r.value && !p.value && !O.value), M = C(() => r.value && r.value.state !== "ready" && !(F.value && r.value.state === "needs-admin-approval" && D.includes(r.value.reason ?? "")));
2579
+ async function q() {
2580
+ if (k) return;
2581
+ const [Z, G, Y] = await Promise.allSettled([o.ctx.call("delegate.status"), o.ctx.call("delegate.list"), o.ctx.call("delegate.jobs.list")]);
2582
+ if (k) return;
2583
+ Z.status === "fulfilled" && (r.value = Z.value), G.status === "fulfilled" && (c.value = (G.value.delegations ?? []).filter((be) => !be.revoked)), Y.status === "fulfilled" && (b.value = Y.value.jobs ?? []);
2584
+ const de = [Z, G, Y].find((be) => be.status === "rejected");
2537
2585
  if (O.value = de && xe(de.reason), de && !O.value) throw de.reason;
2538
2586
  }
2539
- async function ie(Z) {
2540
- if (!(d.value || h)) {
2541
- d.value = !0, f.value = void 0;
2587
+ async function te(Z) {
2588
+ if (!(d.value || k)) {
2589
+ d.value = !0, p.value = void 0;
2542
2590
  try {
2543
2591
  await Z();
2544
- } catch (M) {
2545
- h || (f.value = M);
2592
+ } catch (G) {
2593
+ k || (p.value = G);
2546
2594
  } finally {
2547
- h || (d.value = !1);
2595
+ k || (d.value = !1);
2548
2596
  }
2549
2597
  }
2550
2598
  }
2551
- const W = () => ie(F);
2552
- Fe(() => O.value, W);
2553
- const oe = (Z) => ie(async () => {
2554
- await o.ctx.call("delegate.revoke", { delegation_id: Z }), await F();
2555
- }), H = (Z) => ie(async () => {
2556
- const M = await o.ctx.call("delegate.jobs.cancel", { id: Z });
2557
- h || (x.value = M.revocation_pending ? a.value.pending : ""), await F();
2558
- }), le = C(() => r.value?.state === "ready" && !!w.value && !!_.value && !!S.value), ae = () => ie(async () => {
2559
- le.value && (await o.ctx.call("delegate.jobs.submit", { key: B ?? (B = crypto.randomUUID()), url: _.value, dest: w.value, name: S.value }), h || (_.value = "", S.value = "", w.value = ""), await F());
2599
+ const X = () => te(q);
2600
+ Me(() => O.value, X);
2601
+ const ne = (Z) => te(async () => {
2602
+ await o.ctx.call("delegate.revoke", { delegation_id: Z }), await q();
2603
+ }), H = (Z) => te(async () => {
2604
+ const G = await o.ctx.call("delegate.jobs.cancel", { id: Z });
2605
+ k || (x.value = G.revocation_pending ? a.value.pending : ""), await q();
2606
+ }), ae = C(() => r.value?.state === "ready" && !!_.value && !!w.value && !!$.value), le = () => te(async () => {
2607
+ ae.value && (await o.ctx.call("delegate.jobs.submit", { key: B ?? (B = crypto.randomUUID()), url: w.value, dest: _.value, name: $.value }), k || (w.value = "", $.value = "", _.value = ""), await q());
2560
2608
  }), re = (Z) => {
2561
- const M = new Date(Z);
2562
- return Number.isNaN(M.getTime()) ? "—" : M.toLocaleString(o.ctx.locale);
2609
+ const G = new Date(Z);
2610
+ return Number.isNaN(G.getTime()) ? "—" : G.toLocaleString(o.ctx.locale);
2563
2611
  };
2564
- return b({ refresh: W }), Se(() => {
2565
- W(), z = setInterval(() => {
2566
- k.value.some(I) && W();
2612
+ return g({ refresh: X }), Se(() => {
2613
+ X(), z = setInterval(() => {
2614
+ b.value.some(E) && X();
2567
2615
  }, 3e3);
2568
- }), ke(() => {
2569
- h = !0, z && clearInterval(z), u.dispose();
2570
- }), (Z, M) => (l(), m(e(_e), {
2616
+ }), he(() => {
2617
+ k = !0, z && clearInterval(z), u.dispose();
2618
+ }), (Z, G) => (l(), m(e(_e), {
2571
2619
  title: a.value.title,
2572
2620
  description: a.value.help,
2573
2621
  collapsible: !1,
2574
- "aria-busy": d.value || X.value,
2622
+ "aria-busy": d.value || L.value,
2575
2623
  class: "delegate-panel"
2576
2624
  }, {
2577
2625
  default: n(() => [
2578
- f.value && !L.value ? (l(), m(e(j), {
2626
+ p.value && !K.value ? (l(), m(e(j), {
2579
2627
  key: 0,
2580
2628
  tone: "danger",
2581
2629
  role: "alert"
2582
2630
  }, {
2583
2631
  default: n(() => [
2584
- g(s(e(Ka)(f.value, t.ctx.locale) ?? e(Ha)(f.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
2632
+ h(i(e(Ha)(p.value, t.ctx.locale) ?? e(Xa)(p.value, a.value, t.ctx.locale, t.ctx.displayName)), 1)
2585
2633
  ]),
2586
2634
  _: 1
2587
2635
  })) : y("", !0),
@@ -2591,15 +2639,15 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2591
2639
  role: "status"
2592
2640
  }, {
2593
2641
  default: n(() => [
2594
- g(s(e(Ue)(O.value, t.ctx.locale)), 1)
2642
+ h(i(e(Ue)(O.value, t.ctx.locale)), 1)
2595
2643
  ]),
2596
2644
  _: 1
2597
2645
  })) : y("", !0),
2598
- x.value ? (l(), E("p", rn, s(x.value), 1)) : y("", !0),
2599
- K.value ? (l(), E("p", dn, s(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : y("", !0),
2600
- v(e(qe), {
2646
+ x.value ? (l(), S("p", cn, i(x.value), 1)) : y("", !0),
2647
+ M.value ? (l(), S("p", vn, i(r.value?.state === "needs-admin-approval" ? a.value.needs : a.value.blocked), 1)) : y("", !0),
2648
+ v(e(Fe), {
2601
2649
  direction: "vertical",
2602
- onSubmit: Oe(ae, ["prevent"])
2650
+ onSubmit: qe(le, ["prevent"])
2603
2651
  }, {
2604
2652
  default: n(() => [
2605
2653
  v(e($e), {
@@ -2607,10 +2655,10 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2607
2655
  "label-for": "delegate-url"
2608
2656
  }, {
2609
2657
  default: n(() => [
2610
- v(e(Pe), {
2658
+ v(e(Te), {
2611
2659
  id: "delegate-url",
2612
- modelValue: _.value,
2613
- "onUpdate:modelValue": M[0] || (M[0] = (Y) => _.value = Y),
2660
+ modelValue: w.value,
2661
+ "onUpdate:modelValue": G[0] || (G[0] = (Y) => w.value = Y),
2614
2662
  type: "url",
2615
2663
  disabled: d.value || r.value?.state !== "ready"
2616
2664
  }, null, 8, ["modelValue", "disabled"])
@@ -2622,41 +2670,41 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2622
2670
  "label-for": "delegate-name"
2623
2671
  }, {
2624
2672
  default: n(() => [
2625
- v(e(Pe), {
2673
+ v(e(Te), {
2626
2674
  id: "delegate-name",
2627
- modelValue: S.value,
2628
- "onUpdate:modelValue": M[1] || (M[1] = (Y) => S.value = Y),
2675
+ modelValue: $.value,
2676
+ "onUpdate:modelValue": G[1] || (G[1] = (Y) => $.value = Y),
2629
2677
  "data-file-name": "",
2630
2678
  disabled: d.value || r.value?.state !== "ready"
2631
2679
  }, null, 8, ["modelValue", "disabled"])
2632
2680
  ]),
2633
2681
  _: 1
2634
2682
  }, 8, ["label"]),
2635
- A("p", null, s(a.value.size), 1),
2636
- w.value ? (l(), E("p", cn, [
2637
- g(s(a.value.destination) + s(i.value), 1),
2638
- v(e(De), { path: w.value }, null, 8, ["path"])
2683
+ A("p", null, i(a.value.size), 1),
2684
+ _.value ? (l(), S("p", fn, [
2685
+ h(i(a.value.destination) + i(s.value), 1),
2686
+ v(e(De), { path: _.value }, null, 8, ["path"])
2639
2687
  ])) : y("", !0),
2640
- v(e(je), null, {
2688
+ v(e(ea), null, {
2641
2689
  default: n(() => [
2642
2690
  v(e(U), {
2643
2691
  type: "button",
2644
2692
  variant: "secondary",
2645
2693
  disabled: d.value || r.value?.state !== "ready",
2646
- onClick: M[2] || (M[2] = (Y) => P.value = !0)
2694
+ onClick: G[2] || (G[2] = (Y) => T.value = !0)
2647
2695
  }, {
2648
2696
  default: n(() => [
2649
- g(s(a.value.choose), 1)
2697
+ h(i(a.value.choose), 1)
2650
2698
  ]),
2651
2699
  _: 1
2652
2700
  }, 8, ["disabled"]),
2653
2701
  v(e(U), {
2654
2702
  type: "submit",
2655
2703
  variant: "primary",
2656
- disabled: d.value || !le.value
2704
+ disabled: d.value || !ae.value
2657
2705
  }, {
2658
2706
  default: n(() => [
2659
- g(s(a.value.submit), 1)
2707
+ h(i(a.value.submit), 1)
2660
2708
  ]),
2661
2709
  _: 1
2662
2710
  }, 8, ["disabled"])
@@ -2666,14 +2714,14 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2666
2714
  ]),
2667
2715
  _: 1
2668
2716
  }),
2669
- v(ea, {
2670
- open: P.value,
2671
- "onUpdate:open": M[3] || (M[3] = (Y) => P.value = Y),
2717
+ v(aa, {
2718
+ open: T.value,
2719
+ "onUpdate:open": G[3] || (G[3] = (Y) => T.value = Y),
2672
2720
  locale: t.ctx.locale,
2673
2721
  name: t.ctx.displayName,
2674
2722
  provider: e(u),
2675
2723
  mode: "folder",
2676
- onSelected: M[4] || (M[4] = (Y) => w.value = Y)
2724
+ onSelected: G[4] || (G[4] = (Y) => _.value = Y)
2677
2725
  }, null, 8, ["open", "locale", "name", "provider"]),
2678
2726
  v(e(_e), {
2679
2727
  title: a.value.downloads,
@@ -2681,31 +2729,31 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2681
2729
  class: "delegate-group"
2682
2730
  }, {
2683
2731
  default: n(() => [
2684
- X.value ? (l(), E("p", vn, [
2685
- v(e(Le), {
2732
+ L.value ? (l(), S("p", pn, [
2733
+ v(e(Oe), {
2686
2734
  width: "12rem",
2687
2735
  height: "20px"
2688
2736
  })
2689
- ])) : !k.value.length && !f.value ? (l(), E("p", fn, s(a.value.noJobs), 1)) : (l(), E("ul", pn, [
2690
- (l(!0), E(se, null, Ce(k.value, (Y) => (l(), E("li", {
2737
+ ])) : !b.value.length && !p.value ? (l(), S("p", mn, i(a.value.noJobs), 1)) : (l(), S("ul", yn, [
2738
+ (l(!0), S(ie, null, Ce(b.value, (Y) => (l(), S("li", {
2691
2739
  key: Y.id,
2692
2740
  "data-job-state": Y.state
2693
2741
  }, [
2694
2742
  A("span", {
2695
2743
  role: Y.state === "waiting_executor" ? "status" : void 0
2696
- }, s(Y.name) + " · " + s(a.value[Y.state]), 9, yn),
2697
- I(Y) ? (l(), m(e(U), {
2744
+ }, i(Y.name) + " · " + i(a.value[Y.state]), 9, gn),
2745
+ E(Y) ? (l(), m(e(U), {
2698
2746
  key: 0,
2699
2747
  variant: "secondary",
2700
2748
  disabled: d.value,
2701
2749
  onClick: (de) => H(Y.id)
2702
2750
  }, {
2703
2751
  default: n(() => [
2704
- g(s(a.value.cancel), 1)
2752
+ h(i(a.value.cancel), 1)
2705
2753
  ]),
2706
2754
  _: 1
2707
2755
  }, 8, ["disabled", "onClick"])) : y("", !0)
2708
- ], 8, mn))), 128))
2756
+ ], 8, bn))), 128))
2709
2757
  ]))
2710
2758
  ]),
2711
2759
  _: 1
@@ -2716,28 +2764,28 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2716
2764
  class: "delegate-group"
2717
2765
  }, {
2718
2766
  default: n(() => [
2719
- X.value ? (l(), E("p", bn, [
2720
- v(e(Le), {
2767
+ L.value ? (l(), S("p", hn, [
2768
+ v(e(Oe), {
2721
2769
  width: "12rem",
2722
2770
  height: "20px"
2723
2771
  })
2724
- ])) : !c.value.length && !f.value ? (l(), E("p", gn, s(a.value.noDelegations), 1)) : (l(), E("ul", kn, [
2725
- (l(!0), E(se, null, Ce(c.value, (Y) => (l(), E("li", {
2772
+ ])) : !c.value.length && !p.value ? (l(), S("p", kn, i(a.value.noDelegations), 1)) : (l(), S("ul", wn, [
2773
+ (l(!0), S(ie, null, Ce(c.value, (Y) => (l(), S("li", {
2726
2774
  key: Y.delegation_id
2727
2775
  }, [
2728
2776
  A("div", null, [
2729
2777
  v(e(De), {
2730
2778
  path: Y.path
2731
2779
  }, null, 8, ["path"]),
2732
- A("p", null, s(a.value.expires) + s(i.value) + s(re(Y.expires_at)), 1)
2780
+ A("p", null, i(a.value.expires) + i(s.value) + i(re(Y.expires_at)), 1)
2733
2781
  ]),
2734
2782
  v(e(U), {
2735
2783
  variant: "secondary",
2736
2784
  disabled: d.value,
2737
- onClick: (de) => oe(Y.delegation_id)
2785
+ onClick: (de) => ne(Y.delegation_id)
2738
2786
  }, {
2739
2787
  default: n(() => [
2740
- g(s(a.value.revoke), 1)
2788
+ h(i(a.value.revoke), 1)
2741
2789
  ]),
2742
2790
  _: 1
2743
2791
  }, 8, ["disabled", "onClick"])
@@ -2750,19 +2798,19 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2750
2798
  _: 1
2751
2799
  }, 8, ["title", "description", "aria-busy"]));
2752
2800
  }
2753
- }), oo = /* @__PURE__ */ me(hn, [["__scopeId", "data-v-987b56d5"]]), wn = { class: "save-alert" }, _n = { "data-save-error": "" }, xn = { class: "save-alert" }, Cn = {
2801
+ }), io = /* @__PURE__ */ me(_n, [["__scopeId", "data-v-987b56d5"]]), xn = { class: "save-alert" }, Cn = { "data-save-error": "" }, $n = { class: "save-alert" }, Sn = {
2754
2802
  key: 0,
2755
2803
  class: "save-reason"
2756
- }, $n = {
2804
+ }, En = {
2757
2805
  key: 0,
2758
2806
  class: "save-reason"
2759
- }, Sn = { class: "save-alert" }, En = {
2807
+ }, Pn = { class: "save-alert" }, Tn = {
2760
2808
  key: 0,
2761
2809
  class: "save-help"
2762
- }, Tn = { class: "save-actions" }, Pn = {
2810
+ }, zn = { class: "save-actions" }, An = {
2763
2811
  key: 1,
2764
2812
  class: "save-none"
2765
- }, zn = /* @__PURE__ */ fe({
2813
+ }, Rn = /* @__PURE__ */ fe({
2766
2814
  __name: "BackgroundSaveSettings",
2767
2815
  props: {
2768
2816
  sdk: {},
@@ -2774,113 +2822,113 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2774
2822
  pickerErrorText: { type: Function }
2775
2823
  },
2776
2824
  emits: ["authorized", "confirmed", "destinations"],
2777
- setup(t, { expose: b, emit: o }) {
2778
- const a = t, i = o, u = C(() => ca(a.locale)), r = C(() => Ve(a.locale)), c = Ne(Ke, void 0), k = C(() => a.ctx ?? (c?.call ? { call: c.call.bind(c) } : void 0)), d = Ia({ get admin() {
2825
+ setup(t, { expose: g, emit: o }) {
2826
+ const a = t, s = o, u = C(() => ca(a.locale)), r = C(() => Ve(a.locale)), c = Ne(He, void 0), b = C(() => a.ctx ?? (c?.call ? { call: c.call.bind(c) } : void 0)), d = Da({ get admin() {
2779
2827
  return a.admin;
2780
2828
  }, get locale() {
2781
2829
  return a.locale;
2782
2830
  }, get ctx() {
2783
- return k.value;
2784
- } }, J), { password: f, busy: x, confirming: P, failure: w, passwordError: _, scope: S, chosen: h, options: z, dynamic: B, canConfirm: O } = d, I = p(), q = p([]), $ = p(!1), L = p(!1), X = p(), K = p(!1), F = p(!1), ie = p(!1), W = p(""), oe = p(), H = C(() => oe.value ?? ($.value ? xe(d.status.value) : void 0));
2785
- let le = !1;
2786
- async function ae() {
2831
+ return b.value;
2832
+ } }, J), { password: p, busy: x, confirming: T, failure: _, passwordError: w, scope: $, chosen: k, options: z, dynamic: B, canConfirm: O } = d, E = f(), F = f([]), D = f(!1), K = f(!1), L = f(), M = f(!1), q = f(!1), te = f(!1), X = f(""), ne = f(), H = C(() => ne.value ?? (D.value ? xe(d.status.value) : void 0));
2833
+ let ae = !1;
2834
+ async function le() {
2787
2835
  let ue;
2788
2836
  try {
2789
2837
  ue = await a.sdk.status();
2790
2838
  } catch (ee) {
2791
2839
  const Ae = xe(ee);
2792
2840
  if (!Ae && ee?.code !== "EXECUTOR_UNAVAILABLE") throw ee;
2793
- le || (oe.value = Ae, $.value = !Ae, I.value = void 0, q.value = []);
2841
+ ae || (ne.value = Ae, D.value = !Ae, E.value = void 0, F.value = []);
2794
2842
  return;
2795
2843
  }
2796
2844
  const pe = await Promise.all((a.picker?.keys ?? []).map((ee) => a.sdk.destination(ee)));
2797
- le || (oe.value = void 0, $.value = !1, I.value = ue, q.value = pe, i("destinations", pe));
2845
+ ae || (ne.value = void 0, D.value = !1, E.value = ue, F.value = pe, s("destinations", pe));
2798
2846
  }
2799
2847
  async function re(ue) {
2800
- if (!(le || L.value)) {
2801
- L.value = !0, X.value = void 0, K.value = !1;
2848
+ if (!(ae || K.value)) {
2849
+ K.value = !0, L.value = void 0, M.value = !1;
2802
2850
  try {
2803
2851
  await ue();
2804
2852
  } catch (pe) {
2805
- le || (X.value = pe);
2853
+ ae || (L.value = pe);
2806
2854
  } finally {
2807
- le || (L.value = !1);
2855
+ ae || (K.value = !1);
2808
2856
  }
2809
2857
  }
2810
2858
  }
2811
- const Z = () => re(ae), M = () => Promise.all([Z(), a.admin ? d.refresh() : void 0]).then(() => {
2859
+ const Z = () => re(le), G = () => Promise.all([Z(), a.admin ? d.refresh() : void 0]).then(() => {
2812
2860
  });
2813
2861
  function Y(ue) {
2814
- i("authorized", ue), Z();
2862
+ s("authorized", ue), Z();
2815
2863
  }
2816
2864
  function de(ue) {
2817
- le || (X.value = ue, K.value = !0);
2865
+ ae || (L.value = ue, M.value = !0);
2818
2866
  }
2819
- const be = C(() => K.value ? a.pickerErrorText?.(X.value) ?? Xe(X.value, u.value, "select", a.locale, a.ctx?.displayName) : Xe(X.value, u.value, "save", a.locale, a.ctx?.displayName)), ze = (ue) => re(async () => {
2867
+ const be = C(() => M.value ? a.pickerErrorText?.(L.value) ?? Ge(L.value, u.value, "select", a.locale, a.ctx?.displayName) : Ge(L.value, u.value, "save", a.locale, a.ctx?.displayName)), ze = (ue) => re(async () => {
2820
2868
  if ((await a.sdk.revoke({ delegation_id: ue }))?.revoked !== !0) throw { code: "commit-uncertain" };
2821
- await ae();
2822
- }), he = () => re(async () => {
2869
+ await le();
2870
+ }), ke = () => re(async () => {
2823
2871
  if (a.admin) {
2824
2872
  if ((await a.sdk.enable())?.disabled !== !1) throw { code: "commit-uncertain" };
2825
- await ae();
2873
+ await le();
2826
2874
  }
2827
2875
  });
2828
2876
  async function J() {
2829
2877
  await re(async () => {
2830
- if (le) return;
2831
- const ue = await a.sdk.status(), pe = S.value?.selection;
2832
- if (!le) {
2878
+ if (ae) return;
2879
+ const ue = await a.sdk.status(), pe = $.value?.selection;
2880
+ if (!ae) {
2833
2881
  if (B.value) {
2834
2882
  const ee = ue.selection;
2835
- if (!pe || !ee || ee.scope !== h.value || ee.scope !== pe.scope || ee.generation !== pe.generation || ee.root !== pe.root) throw { code: "commit-uncertain" };
2836
- const Ae = W.value ? [W.value] : a.picker?.keys ?? [];
2883
+ if (!pe || !ee || ee.scope !== k.value || ee.scope !== pe.scope || ee.generation !== pe.generation || ee.root !== pe.root) throw { code: "commit-uncertain" };
2884
+ const Ae = X.value ? [X.value] : a.picker?.keys ?? [];
2837
2885
  for (const fa of Ae) {
2838
- if (le) return;
2886
+ if (ae) return;
2839
2887
  let Re;
2840
2888
  try {
2841
2889
  Re = await a.sdk.selectDestination({ key: fa, path: ee.root });
2842
- } catch (Ba) {
2843
- throw K.value = !0, Ba;
2890
+ } catch (La) {
2891
+ throw M.value = !0, La;
2844
2892
  }
2845
2893
  if (!Re?.id || !Re.username || Re.path !== ee.root || Re.key !== fa || Re.lifetime !== "until-revoked") throw { code: "commit-uncertain" };
2846
- if (le) return;
2847
- i("authorized", Re);
2894
+ if (ae) return;
2895
+ s("authorized", Re);
2848
2896
  }
2849
2897
  }
2850
- le || (F.value = !1, i("confirmed"), await ae());
2898
+ ae || (q.value = !1, s("confirmed"), await le());
2851
2899
  }
2852
2900
  });
2853
2901
  }
2854
- function ne(ue) {
2855
- W.value = ue, a.admin && B.value ? F.value = !0 : ie.value = !0;
2902
+ function se(ue) {
2903
+ X.value = ue, a.admin && B.value ? q.value = !0 : te.value = !0;
2856
2904
  }
2857
- const te = C(() => I.value?.selection), ye = C(() => !I.value && !$.value && !X.value && !H.value), Ee = C(() => $.value && (!a.admin || d.status.value?.state !== "blocked") || I.value?.scopeMode === "install-selected" && !te.value), D = C(() => a.admin && $.value && d.status.value?.state === "blocked" && !d.status.value.retry), V = C(() => !!I.value && !Ee.value && !I.value.disabled), N = C(() => a.admin && (Ee.value || $.value && !!d.status.value?.retry)), Q = C(() => a.picker ? te.value ? Xa(a.picker.provider, te.value.root) : I.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ce = (ue) => a.picker?.labels?.[ue] ?? u.value.folder, T = C(() => {
2858
- const ue = w.value;
2905
+ const oe = C(() => E.value?.selection), ye = C(() => !E.value && !D.value && !L.value && !H.value), Ee = C(() => D.value && (!a.admin || d.status.value?.state !== "blocked") || E.value?.scopeMode === "install-selected" && !oe.value), I = C(() => a.admin && D.value && d.status.value?.state === "blocked" && !d.status.value.retry), V = C(() => !!E.value && !Ee.value && !E.value.disabled), N = C(() => a.admin && (Ee.value || D.value && !!d.status.value?.retry)), Q = C(() => a.picker ? oe.value ? Ga(a.picker.provider, oe.value.root) : E.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ce = (ue) => a.picker?.labels?.[ue] ?? u.value.folder, P = C(() => {
2906
+ const ue = _.value;
2859
2907
  return !ue || "confirm" in ue ? "" : ue.code === "session_ended" ? r.value.session : d.explain(ue) ?? r.value.setupError;
2860
- }), G = C(() => a.admin && Ee.value && !F.value), R = C(() => x.value || L.value || d.error.value || !O.value);
2908
+ }), W = C(() => a.admin && Ee.value && !q.value), R = C(() => x.value || K.value || d.error.value || !O.value);
2861
2909
  function ve() {
2862
- F.value = !1, f.value = "", w.value = void 0, h.value = S.value?.selection?.scope ?? "";
2910
+ q.value = !1, p.value = "", _.value = void 0, k.value = $.value?.selection?.scope ?? "";
2863
2911
  }
2864
- return Fe(() => H.value, () => Promise.all([Z(), a.admin ? d.refresh() : void 0])), b({ refresh: M }), Se(() => {
2912
+ return Me(() => H.value, () => Promise.all([Z(), a.admin ? d.refresh() : void 0])), g({ refresh: G }), Se(() => {
2865
2913
  Z();
2866
- }), ke(() => {
2867
- le = !0;
2914
+ }), he(() => {
2915
+ ae = !0;
2868
2916
  }), (ue, pe) => (l(), m(e(_e), {
2869
2917
  title: t.title ?? u.value.title,
2870
- description: Ee.value && !F.value ? void 0 : u.value.help,
2918
+ description: Ee.value && !q.value ? void 0 : u.value.help,
2871
2919
  collapsible: !1,
2872
- "aria-busy": L.value || e(x) || ye.value,
2920
+ "aria-busy": K.value || e(x) || ye.value,
2873
2921
  class: "background-save-settings"
2874
2922
  }, {
2875
2923
  default: n(() => [
2876
- ye.value ? (l(!0), E(se, { key: 0 }, Ce(t.picker?.keys ?? [], (ee) => (l(), m(e(we), {
2924
+ ye.value ? (l(!0), S(ie, { key: 0 }, Ce(t.picker?.keys ?? [], (ee) => (l(), m(e(we), {
2877
2925
  key: ee,
2878
2926
  label: ce(ee),
2879
2927
  "field-width": "full",
2880
2928
  "data-placeholder-row": ""
2881
2929
  }, {
2882
2930
  default: n(() => [
2883
- v(e(Le), {
2931
+ v(e(Oe), {
2884
2932
  width: "20rem",
2885
2933
  height: "28px"
2886
2934
  })
@@ -2892,26 +2940,26 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2892
2940
  role: "status"
2893
2941
  }, {
2894
2942
  default: n(() => [
2895
- g(s(e(Ue)(H.value, t.locale)), 1)
2943
+ h(i(e(Ue)(H.value, t.locale)), 1)
2896
2944
  ]),
2897
2945
  _: 1
2898
- })) : (l(), E(se, { key: 2 }, [
2899
- X.value ? (l(), m(e(j), {
2946
+ })) : (l(), S(ie, { key: 2 }, [
2947
+ L.value ? (l(), m(e(j), {
2900
2948
  key: 0,
2901
2949
  tone: "danger",
2902
2950
  role: "alert"
2903
2951
  }, {
2904
2952
  default: n(() => [
2905
- A("span", wn, [
2906
- A("span", _n, s(be.value), 1),
2953
+ A("span", xn, [
2954
+ A("span", Cn, i(be.value), 1),
2907
2955
  v(e(U), {
2908
2956
  variant: "secondary",
2909
2957
  size: "sm",
2910
- disabled: L.value,
2958
+ disabled: K.value,
2911
2959
  onClick: Z
2912
2960
  }, {
2913
2961
  default: n(() => [
2914
- g(s(u.value.retry), 1)
2962
+ h(i(u.value.retry), 1)
2915
2963
  ]),
2916
2964
  _: 1
2917
2965
  }, 8, ["disabled"])
@@ -2925,8 +2973,8 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2925
2973
  role: "alert"
2926
2974
  }, {
2927
2975
  default: n(() => [
2928
- A("span", xn, [
2929
- g(s(r.value.setupError), 1),
2976
+ A("span", $n, [
2977
+ h(i(r.value.setupError), 1),
2930
2978
  v(e(U), {
2931
2979
  variant: "secondary",
2932
2980
  size: "sm",
@@ -2934,7 +2982,7 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2934
2982
  onClick: e(d).refresh
2935
2983
  }, {
2936
2984
  default: n(() => [
2937
- g(s(u.value.retry), 1)
2985
+ h(i(u.value.retry), 1)
2938
2986
  ]),
2939
2987
  _: 1
2940
2988
  }, 8, ["disabled", "onClick"])
@@ -2942,48 +2990,48 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2942
2990
  ]),
2943
2991
  _: 1
2944
2992
  })) : y("", !0),
2945
- T.value ? (l(), m(e(j), {
2993
+ P.value ? (l(), m(e(j), {
2946
2994
  key: 2,
2947
2995
  tone: "danger",
2948
2996
  role: "alert"
2949
2997
  }, {
2950
2998
  default: n(() => [
2951
- g(s(T.value), 1),
2952
- e(w) && "reason" in e(w) && e(w).reason ? (l(), E("span", Cn, s(e(w).reason), 1)) : y("", !0)
2999
+ h(i(P.value), 1),
3000
+ e(_) && "reason" in e(_) && e(_).reason ? (l(), S("span", Sn, i(e(_).reason), 1)) : y("", !0)
2953
3001
  ]),
2954
3002
  _: 1
2955
3003
  })) : y("", !0),
2956
- D.value ? (l(), m(e(j), {
3004
+ I.value ? (l(), m(e(j), {
2957
3005
  key: 3,
2958
3006
  tone: "warning"
2959
3007
  }, {
2960
3008
  default: n(() => [
2961
- g(s(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
2962
- e(d).status.value?.reason ? (l(), E("span", $n, s(e(d).status.value.reason), 1)) : y("", !0)
3009
+ h(i(e(d).explain(e(d).status.value) ?? r.value.blocked), 1),
3010
+ e(d).status.value?.reason ? (l(), S("span", En, i(e(d).status.value.reason), 1)) : y("", !0)
2963
3011
  ]),
2964
3012
  _: 1
2965
- })) : Ee.value && !t.admin ? (l(), m(Ye, {
3013
+ })) : Ee.value && !t.admin ? (l(), m(Qe, {
2966
3014
  key: 4,
2967
3015
  admin: !1,
2968
3016
  locale: t.locale,
2969
3017
  files: ""
2970
3018
  }, null, 8, ["locale"])) : y("", !0),
2971
- I.value?.disabled ? (l(), m(e(j), {
3019
+ E.value?.disabled ? (l(), m(e(j), {
2972
3020
  key: 5,
2973
3021
  tone: "warning"
2974
3022
  }, {
2975
3023
  default: n(() => [
2976
- A("span", Sn, [
2977
- A("span", null, s(u.value.disabled), 1),
3024
+ A("span", Pn, [
3025
+ A("span", null, i(u.value.disabled), 1),
2978
3026
  t.admin ? (l(), m(e(U), {
2979
3027
  key: 0,
2980
3028
  variant: "secondary",
2981
3029
  size: "sm",
2982
- disabled: L.value,
2983
- onClick: he
3030
+ disabled: K.value,
3031
+ onClick: ke
2984
3032
  }, {
2985
3033
  default: n(() => [
2986
- g(s(u.value.enable), 1)
3034
+ h(i(u.value.enable), 1)
2987
3035
  ]),
2988
3036
  _: 1
2989
3037
  }, 8, ["disabled"])) : y("", !0)
@@ -2991,35 +3039,35 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
2991
3039
  ]),
2992
3040
  _: 1
2993
3041
  })) : y("", !0),
2994
- V.value && q.value.some((ee) => ee.status === "reselection-required") ? (l(), m(e(j), {
3042
+ V.value && F.value.some((ee) => ee.status === "reselection-required") ? (l(), m(e(j), {
2995
3043
  key: 6,
2996
3044
  tone: "warning"
2997
3045
  }, {
2998
3046
  default: n(() => [
2999
- g(s(u.value.reselect), 1)
3047
+ h(i(u.value.reselect), 1)
3000
3048
  ]),
3001
3049
  _: 1
3002
3050
  })) : y("", !0),
3003
- N.value || F.value ? (l(), m(Me(G.value ? Ye : "div"), Ge($a({ key: 7 }, G.value ? { admin: !0, locale: t.locale, files: !0 } : {})), {
3051
+ N.value || q.value ? (l(), m(Ke(W.value ? Qe : "div"), We(Sa({ key: 7 }, W.value ? { admin: !0, locale: t.locale, files: !0 } : {})), {
3004
3052
  default: n(() => [
3005
- v(e(qe), {
3053
+ v(e(Fe), {
3006
3054
  direction: "vertical",
3007
3055
  class: "save-form",
3008
- onSubmit: Oe(e(d).submit, ["prevent"])
3056
+ onSubmit: qe(e(d).submit, ["prevent"])
3009
3057
  }, {
3010
3058
  default: n(() => [
3011
- F.value ? (l(), E("p", En, s(u.value.changeHelp), 1)) : y("", !0),
3059
+ q.value ? (l(), S("p", Tn, i(u.value.changeHelp), 1)) : y("", !0),
3012
3060
  e(B) ? (l(), m(e($e), {
3013
3061
  key: 1,
3014
3062
  label: u.value.folder,
3015
- description: G.value ? u.value.approveHelp : void 0,
3063
+ description: W.value ? u.value.approveHelp : void 0,
3016
3064
  "data-save-row": "folder"
3017
3065
  }, {
3018
3066
  default: n(() => [
3019
3067
  v(e(va), {
3020
3068
  id: "save-scope",
3021
- modelValue: e(h),
3022
- "onUpdate:modelValue": pe[0] || (pe[0] = (ee) => We(h) ? h.value = ee : null),
3069
+ modelValue: e(k),
3070
+ "onUpdate:modelValue": pe[0] || (pe[0] = (ee) => Je(k) ? k.value = ee : null),
3023
3071
  options: e(z),
3024
3072
  disabled: e(x)
3025
3073
  }, null, 8, ["modelValue", "options", "disabled"])
@@ -3028,9 +3076,9 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3028
3076
  }, 8, ["label", "description"])) : y("", !0),
3029
3077
  v(e($e), {
3030
3078
  label: u.value.password,
3031
- description: e(P) ? r.value.confirmingHelp : G.value ? r.value.passwordNote : void 0,
3032
- help: e(_),
3033
- "validate-status": e(_) ? "error" : void 0,
3079
+ description: e(T) ? r.value.confirmingHelp : W.value ? r.value.passwordNote : void 0,
3080
+ help: e(w),
3081
+ "validate-status": e(w) ? "error" : void 0,
3034
3082
  "validate-message-display-mode": "text"
3035
3083
  }, {
3036
3084
  after: n(({ classes: ee }) => [
@@ -3038,15 +3086,15 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3038
3086
  class: Ie(ee.afterItem),
3039
3087
  type: "submit",
3040
3088
  variant: "primary",
3041
- loading: e(P),
3089
+ loading: e(T),
3042
3090
  disabled: R.value
3043
3091
  }, {
3044
3092
  default: n(() => [
3045
- g(s(F.value ? u.value.confirmChange : u.value.approve), 1)
3093
+ h(i(q.value ? u.value.confirmChange : u.value.approve), 1)
3046
3094
  ]),
3047
3095
  _: 1
3048
3096
  }, 8, ["class", "loading", "disabled"]),
3049
- F.value ? (l(), m(e(U), {
3097
+ q.value ? (l(), m(e(U), {
3050
3098
  key: 0,
3051
3099
  class: Ie(ee.afterItem),
3052
3100
  type: "button",
@@ -3055,19 +3103,19 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3055
3103
  onClick: ve
3056
3104
  }, {
3057
3105
  default: n(() => [
3058
- g(s(u.value.cancelChange), 1)
3106
+ h(i(u.value.cancelChange), 1)
3059
3107
  ]),
3060
3108
  _: 1
3061
3109
  }, 8, ["class", "disabled"])) : y("", !0)
3062
3110
  ]),
3063
3111
  default: n(() => [
3064
- v(e(Pe), {
3112
+ v(e(Te), {
3065
3113
  id: "save-password",
3066
- modelValue: e(f),
3067
- "onUpdate:modelValue": pe[1] || (pe[1] = (ee) => We(f) ? f.value = ee : null),
3114
+ modelValue: e(p),
3115
+ "onUpdate:modelValue": pe[1] || (pe[1] = (ee) => Je(p) ? p.value = ee : null),
3068
3116
  type: "password",
3069
3117
  autocomplete: "current-password",
3070
- invalid: !!e(_),
3118
+ invalid: !!e(w),
3071
3119
  disabled: e(x)
3072
3120
  }, null, 8, ["modelValue", "invalid", "disabled"])
3073
3121
  ]),
@@ -3079,26 +3127,26 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3079
3127
  ]),
3080
3128
  _: 1
3081
3129
  }, 16)) : y("", !0),
3082
- V.value && !F.value && !N.value ? (l(!0), E(se, { key: 8 }, Ce(q.value, (ee) => (l(), m(e(we), {
3130
+ V.value && !q.value && !N.value ? (l(!0), S(ie, { key: 8 }, Ce(F.value, (ee) => (l(), m(e(we), {
3083
3131
  key: ee.key,
3084
3132
  label: ce(ee.key),
3085
3133
  "field-width": "full",
3086
3134
  "data-save-row": "folder"
3087
3135
  }, {
3088
3136
  default: n(() => [
3089
- A("div", Tn, [
3137
+ A("div", zn, [
3090
3138
  ee.status === "active" && ee.destination ? (l(), m(e(De), {
3091
3139
  key: 0,
3092
3140
  path: ee.destination.path
3093
- }, null, 8, ["path"])) : (l(), E("span", Pn, s(u.value.folderNone), 1)),
3141
+ }, null, 8, ["path"])) : (l(), S("span", An, i(u.value.folderNone), 1)),
3094
3142
  v(e(U), {
3095
3143
  variant: "secondary",
3096
3144
  size: "sm",
3097
- disabled: L.value || e(x) || (t.admin && I.value?.scopeMode === "install-selected" ? !e(B) || e(d).error.value : !Q.value),
3098
- onClick: (Ae) => ne(ee.key)
3145
+ disabled: K.value || e(x) || (t.admin && E.value?.scopeMode === "install-selected" ? !e(B) || e(d).error.value : !Q.value),
3146
+ onClick: (Ae) => se(ee.key)
3099
3147
  }, {
3100
3148
  default: n(() => [
3101
- g(s(u.value.choose), 1)
3149
+ h(i(u.value.choose), 1)
3102
3150
  ]),
3103
3151
  _: 1
3104
3152
  }, 8, ["disabled", "onClick"]),
@@ -3106,11 +3154,11 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3106
3154
  key: 2,
3107
3155
  variant: "ghost",
3108
3156
  size: "sm",
3109
- disabled: L.value,
3157
+ disabled: K.value,
3110
3158
  onClick: (Ae) => ze(ee.destination.id)
3111
3159
  }, {
3112
3160
  default: n(() => [
3113
- g(s(u.value.revoke), 1)
3161
+ h(i(u.value.revoke), 1)
3114
3162
  ]),
3115
3163
  _: 1
3116
3164
  }, 8, ["disabled", "onClick"])) : y("", !0)
@@ -3120,15 +3168,15 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3120
3168
  }, 1032, ["label"]))), 128)) : y("", !0)
3121
3169
  ], 64)),
3122
3170
  ge(ue.$slots, "default", {}, void 0, !0),
3123
- Q.value ? (l(), m(ea, {
3124
- key: te.value?.scope,
3125
- open: ie.value,
3126
- "onUpdate:open": pe[2] || (pe[2] = (ee) => ie.value = ee),
3171
+ Q.value ? (l(), m(aa, {
3172
+ key: oe.value?.scope,
3173
+ open: te.value,
3174
+ "onUpdate:open": pe[2] || (pe[2] = (ee) => te.value = ee),
3127
3175
  provider: Q.value,
3128
3176
  locale: t.locale,
3129
3177
  name: t.ctx?.displayName,
3130
3178
  mode: "folder",
3131
- destination: { key: W.value, selectDestination: t.sdk.selectDestination },
3179
+ destination: { key: X.value, selectDestination: t.sdk.selectDestination },
3132
3180
  onAuthorized: Y,
3133
3181
  onRefused: de,
3134
3182
  "error-text": t.pickerErrorText
@@ -3137,10 +3185,10 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3137
3185
  _: 3
3138
3186
  }, 8, ["title", "description", "aria-busy"]));
3139
3187
  }
3140
- }), An = /* @__PURE__ */ me(zn, [["__scopeId", "data-v-79ce68f8"]]), Rn = { class: "background-save-panel" }, In = {
3188
+ }), In = /* @__PURE__ */ me(Rn, [["__scopeId", "data-v-79ce68f8"]]), Dn = { class: "background-save-panel" }, Vn = {
3141
3189
  key: 1,
3142
3190
  class: "save-example"
3143
- }, Dn = { class: "save-help" }, Vn = { class: "save-actions" }, Un = /* @__PURE__ */ fe({
3191
+ }, Un = { class: "save-help" }, Nn = { class: "save-actions" }, Bn = /* @__PURE__ */ fe({
3144
3192
  __name: "BackgroundSavePanel",
3145
3193
  props: {
3146
3194
  sdk: {},
@@ -3153,25 +3201,25 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3153
3201
  sampleSave: { type: Boolean }
3154
3202
  },
3155
3203
  emits: ["authorized"],
3156
- setup(t, { expose: b, emit: o }) {
3157
- const a = t, i = o, u = C(() => ca(a.locale)), r = C(() => Ca(a.locale)), c = p([]), k = p(), d = () => (x.value = void 0, k.value?.refresh() ?? Promise.resolve()), f = p(!1), x = p();
3158
- async function P(_) {
3159
- if (f.value) return;
3160
- f.value = !0, x.value = void 0;
3161
- const S = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (h) => h.toString(16).padStart(2, "0")).join("");
3204
+ setup(t, { expose: g, emit: o }) {
3205
+ const a = t, s = o, u = C(() => ca(a.locale)), r = C(() => $a(a.locale)), c = f([]), b = f(), d = () => (x.value = void 0, b.value?.refresh() ?? Promise.resolve()), p = f(!1), x = f();
3206
+ async function T(w) {
3207
+ if (p.value) return;
3208
+ p.value = !0, x.value = void 0;
3209
+ const $ = "example-" + Array.from(crypto.getRandomValues(new Uint8Array(16)), (k) => k.toString(16).padStart(2, "0")).join("");
3162
3210
  try {
3163
- await a.sdk.exportExample({ key: _, job_id: S });
3164
- } catch (h) {
3165
- x.value = h;
3211
+ await a.sdk.exportExample({ key: w, job_id: $ });
3212
+ } catch (k) {
3213
+ x.value = k;
3166
3214
  } finally {
3167
- f.value = !1;
3215
+ p.value = !1;
3168
3216
  }
3169
3217
  }
3170
- const w = (_) => a.picker?.labels?.[_] ? `${u.value.example}${r.value}${a.picker.labels[_]}` : u.value.example;
3171
- return b({ refresh: d }), (_, S) => (l(), E("div", Rn, [
3172
- v(An, {
3218
+ const _ = (w) => a.picker?.labels?.[w] ? `${u.value.example}${r.value}${a.picker.labels[w]}` : u.value.example;
3219
+ return g({ refresh: d }), (w, $) => (l(), S("div", Dn, [
3220
+ v(In, {
3173
3221
  ref_key: "settings",
3174
- ref: k,
3222
+ ref: b,
3175
3223
  sdk: t.sdk,
3176
3224
  admin: t.admin,
3177
3225
  locale: t.locale,
@@ -3179,8 +3227,8 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3179
3227
  picker: t.picker,
3180
3228
  ctx: t.ctx,
3181
3229
  "picker-error-text": t.pickerErrorText,
3182
- onAuthorized: S[0] || (S[0] = (h) => i("authorized", h)),
3183
- onDestinations: S[1] || (S[1] = (h) => c.value = h.filter((z) => z.status === "active"))
3230
+ onAuthorized: $[0] || ($[0] = (k) => s("authorized", k)),
3231
+ onDestinations: $[1] || ($[1] = (k) => c.value = k.filter((z) => z.status === "active"))
3184
3232
  }, {
3185
3233
  default: n(() => [
3186
3234
  x.value ? (l(), m(e(j), {
@@ -3189,21 +3237,21 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3189
3237
  role: "alert"
3190
3238
  }, {
3191
3239
  default: n(() => [
3192
- g(s(e(Xe)(x.value, u.value, "save", t.locale, t.ctx?.displayName)), 1)
3240
+ h(i(e(Ge)(x.value, u.value, "save", t.locale, t.ctx?.displayName)), 1)
3193
3241
  ]),
3194
3242
  _: 1
3195
3243
  })) : y("", !0),
3196
- t.sampleSave && c.value.length ? (l(), E("div", In, [
3197
- A("p", Dn, s(u.value.exampleHelp), 1),
3198
- A("div", Vn, [
3199
- (l(!0), E(se, null, Ce(c.value, (h) => (l(), m(e(U), {
3200
- key: h.key,
3244
+ t.sampleSave && c.value.length ? (l(), S("div", Vn, [
3245
+ A("p", Un, i(u.value.exampleHelp), 1),
3246
+ A("div", Nn, [
3247
+ (l(!0), S(ie, null, Ce(c.value, (k) => (l(), m(e(U), {
3248
+ key: k.key,
3201
3249
  variant: "secondary",
3202
- disabled: f.value,
3203
- onClick: (z) => P(h.key)
3250
+ disabled: p.value,
3251
+ onClick: (z) => T(k.key)
3204
3252
  }, {
3205
3253
  default: n(() => [
3206
- g(s(w(h.key)), 1)
3254
+ h(i(_(k.key)), 1)
3207
3255
  ]),
3208
3256
  _: 2
3209
3257
  }, 1032, ["disabled", "onClick"]))), 128))
@@ -3214,106 +3262,106 @@ const el = ["aria-busy", "aria-label"], al = { class: "file-toolbar file-locatio
3214
3262
  }, 8, ["sdk", "admin", "locale", "title", "picker", "ctx", "picker-error-text"])
3215
3263
  ]));
3216
3264
  }
3217
- }), so = /* @__PURE__ */ me(Un, [["__scopeId", "data-v-05618cb8"]]);
3218
- function Nn(t) {
3219
- const { code: b, message: o } = t ?? {};
3220
- return !!Be(t) || typeof b == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(b) || b === "bad_response" && /HTTP 40[13]\b/.test(String(o));
3265
+ }), uo = /* @__PURE__ */ me(Bn, [["__scopeId", "data-v-05618cb8"]]);
3266
+ function Ln(t) {
3267
+ const { code: g, message: o } = t ?? {};
3268
+ return !!Be(t) || typeof g == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(g) || g === "bad_response" && /HTTP 40[13]\b/.test(String(o));
3221
3269
  }
3222
- const Na = /* @__PURE__ */ Symbol("authorization");
3223
- function Bn() {
3224
- const t = Ne(Na, void 0);
3270
+ const Ba = /* @__PURE__ */ Symbol("authorization");
3271
+ function On() {
3272
+ const t = Ne(Ba, void 0);
3225
3273
  if (!t) throw Error("authorization controls must be placed inside AuthorizationGate");
3226
3274
  return t;
3227
3275
  }
3228
- const Ln = { class: "authorization-content" }, On = ["aria-busy", "data-authorization-state"], qn = { class: "authorization-body" }, Fn = /* @__PURE__ */ fe({
3276
+ const qn = { class: "authorization-content" }, Fn = ["aria-busy", "data-authorization-state"], Mn = { class: "authorization-body" }, Kn = /* @__PURE__ */ fe({
3229
3277
  __name: "AuthorizationGate",
3230
3278
  props: {
3231
3279
  ctx: {},
3232
3280
  name: {}
3233
3281
  },
3234
3282
  emits: ["ready"],
3235
- setup(t, { emit: b }) {
3236
- const o = t, a = b, i = p(), u = p(), r = p(!1), c = p(!1), k = p(!1), d = bt();
3237
- let f = [], x = !1, P = 0, w = !1, _, S = 0, h;
3238
- const z = C(() => Ga(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")), B = C(() => i.value || u.value), O = C(() => B.value?.state === "authorization_required"), I = C(() => ["helper_untrusted", "cli_untrusted"].includes(B.value?.reason || "")), q = C(() => O.value && !I.value), $ = C(() => B.value?.state === "unavailable" ? xe(B.value) : void 0), L = C(() => $.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[B.value?.reason ?? ""] ?? "unavailable"), X = C(() => ua({ code: B.value?.reason }, o.ctx.locale, o.name ?? o.ctx.displayName)), K = C(() => X.value?.title ?? (B.value ? O.value ? z.value("title") : B.value.state === "ready" ? z.value("ready") : B.value.state === "not_admin" ? z.value("not_admin.title") : B.value.state === "session_expired" ? z.value("session_expired.title") : z.value(L.value + ".title") : z.value("checking"))), F = C(() => X.value?.message ?? (O.value ? z.value("purpose") : B.value?.state === "not_admin" ? z.value("not_admin.body") : B.value?.state === "session_expired" ? z.value("session_expired.body") : B.value?.state === "unavailable" ? z.value(L.value + ".body") : z.value("purpose"))), ie = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], W = C(() => ie.includes(B.value?.reason || "") ? B.value.reason : "unknown"), oe = C(() => I.value ? "next.reinstall" : W.value === "grant_missing" ? "next.install" : W.value === "upgrade_reapproval" || W.value === "grant_incompatible" ? "next.update" : "next.repair");
3283
+ setup(t, { emit: g }) {
3284
+ const o = t, a = g, s = f(), u = f(), r = f(!1), c = f(!1), b = f(!1), d = gt();
3285
+ let p = [], x = !1, T = 0, _ = !1, w, $ = 0, k;
3286
+ const z = C(() => Wa(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")), B = C(() => s.value || u.value), O = C(() => B.value?.state === "authorization_required"), E = C(() => ["helper_untrusted", "cli_untrusted"].includes(B.value?.reason || "")), F = C(() => O.value && !E.value), D = C(() => B.value?.state === "unavailable" ? xe(B.value) : void 0), K = C(() => D.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[B.value?.reason ?? ""] ?? "unavailable"), L = C(() => ua({ code: B.value?.reason }, o.ctx.locale, o.name ?? o.ctx.displayName)), M = C(() => L.value?.title ?? (B.value ? O.value ? z.value("title") : B.value.state === "ready" ? z.value("ready") : B.value.state === "not_admin" ? z.value("not_admin.title") : B.value.state === "session_expired" ? z.value("session_expired.title") : z.value(K.value + ".title") : z.value("checking"))), q = C(() => L.value?.message ?? (O.value ? z.value("purpose") : B.value?.state === "not_admin" ? z.value("not_admin.body") : B.value?.state === "session_expired" ? z.value("session_expired.body") : B.value?.state === "unavailable" ? z.value(K.value + ".body") : z.value("purpose"))), te = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], X = C(() => te.includes(B.value?.reason || "") ? B.value.reason : "unknown"), ne = C(() => E.value ? "next.reinstall" : X.value === "grant_missing" ? "next.install" : X.value === "upgrade_reapproval" || X.value === "grant_incompatible" ? "next.update" : "next.repair");
3239
3287
  function H(J) {
3240
3288
  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");
3241
3289
  return J;
3242
3290
  }
3243
- const le = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
3244
- function ae(J) {
3245
- const { code: ne } = J ?? {}, te = xe(J);
3246
- return te ? te === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ne === "credential_not_ready" ? ne : Be(J) ? Be(J) : Nn(J) ? "access_denied" : typeof ne == "string" && le.includes(ne) || ne === void 0 ? "service_unavailable" : "check_failed";
3291
+ const ae = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
3292
+ function le(J) {
3293
+ const { code: se } = J ?? {}, oe = xe(J);
3294
+ return oe ? oe === "stopped" ? "APP_STOPPED" : "APP_STARTING" : se === "credential_not_ready" ? se : Be(J) ? Be(J) : Ln(J) ? "access_denied" : typeof se == "string" && ae.includes(se) || se === void 0 ? "service_unavailable" : "check_failed";
3247
3295
  }
3248
3296
  let re;
3249
3297
  function Z() {
3250
- clearTimeout(_), $.value !== re && (re = $.value, S = 0), $.value && (_ = setTimeout(() => {
3251
- r.value ? w = !0 : de("status");
3252
- }, ra(S++, $.value)));
3298
+ clearTimeout(w), D.value !== re && (re = D.value, $ = 0), D.value && (w = setTimeout(() => {
3299
+ r.value ? _ = !0 : de("status");
3300
+ }, ra($++, D.value)));
3253
3301
  }
3254
- const M = [1e3, 3e3];
3302
+ const G = [1e3, 3e3];
3255
3303
  async function Y(J) {
3256
- const ne = J === "status" && !k.value ? M : [];
3257
- for (let te = 0; ; te++) {
3304
+ const se = J === "status" && !b.value ? G : [];
3305
+ for (let oe = 0; ; oe++) {
3258
3306
  try {
3259
3307
  const ye = H(await o.ctx.authorization?.[J]());
3260
- if (ye.state !== "unavailable" || te >= ne.length) return ye;
3308
+ if (ye.state !== "unavailable" || oe >= se.length) return ye;
3261
3309
  } catch (ye) {
3262
- if (["session_required", "credential_not_ready"].includes(ye.code) || te >= ne.length) throw ye;
3310
+ if (["session_required", "credential_not_ready"].includes(ye.code) || oe >= se.length) throw ye;
3263
3311
  }
3264
- if (await new Promise((ye) => setTimeout(ye, ne[te])), x) throw Error("disposed");
3312
+ if (await new Promise((ye) => setTimeout(ye, se[oe])), x) throw Error("disposed");
3265
3313
  }
3266
3314
  }
3267
3315
  async function de(J) {
3268
3316
  if (r.value || x) return;
3269
- const ne = ++P;
3270
- u.value = J === "request" && i.value?.state === "authorization_required" ? i.value : void 0, r.value = !0, c.value = !1, i.value = void 0;
3317
+ const se = ++T;
3318
+ u.value = J === "request" && s.value?.state === "authorization_required" ? s.value : void 0, r.value = !0, c.value = !1, s.value = void 0;
3271
3319
  try {
3272
- const te = await Y(J);
3273
- if (x || ne !== P) return;
3274
- i.value = te, k.value = te.state !== "ready", te.state === "ready" && be(!0), te.state === "ready" && a("ready");
3275
- } catch (te) {
3276
- !x && ne === P && (i.value = te.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : u.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: ae(te) }, c.value = !X.value && L.value === "unavailable", k.value = !0);
3320
+ const oe = await Y(J);
3321
+ if (x || se !== T) return;
3322
+ s.value = oe, b.value = oe.state !== "ready", oe.state === "ready" && be(!0), oe.state === "ready" && a("ready");
3323
+ } catch (oe) {
3324
+ !x && se === T && (s.value = oe.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : u.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: le(oe) }, c.value = !L.value && K.value === "unavailable", b.value = !0);
3277
3325
  } finally {
3278
- !x && ne === P && (r.value = !1, u.value = void 0, w ? (w = !1, de("status")) : Z());
3326
+ !x && se === T && (r.value = !1, u.value = void 0, _ ? (_ = !1, de("status")) : Z());
3279
3327
  }
3280
3328
  }
3281
3329
  function be(J) {
3282
- const ne = f;
3283
- f = [], ne.forEach((te) => te(J));
3330
+ const se = p;
3331
+ p = [], se.forEach((oe) => oe(J));
3284
3332
  }
3285
3333
  function ze(J) {
3286
- k.value = J, J || be(!1);
3334
+ b.value = J, J || be(!1);
3287
3335
  }
3288
- function he() {
3289
- return i.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (k.value = !0), new Promise((J) => f.push(J)));
3336
+ function ke() {
3337
+ return s.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (b.value = !0), new Promise((J) => p.push(J)));
3290
3338
  }
3291
- return Qe(Na, { state: C(() => i.value?.state ?? "checking"), requireAuthorization: he, text: z, busy: r, canManage: () => !!o.ctx.authorization?.canManage?.(), revoke: () => de("revoke") }), Se(() => {
3292
- h = o.ctx.reopen(() => {
3293
- r.value ? w = !0 : de("status");
3339
+ return Ze(Ba, { state: C(() => s.value?.state ?? "checking"), requireAuthorization: ke, text: z, busy: r, canManage: () => !!o.ctx.authorization?.canManage?.(), revoke: () => de("revoke") }), Se(() => {
3340
+ k = o.ctx.reopen(() => {
3341
+ r.value ? _ = !0 : de("status");
3294
3342
  }), de("status");
3295
- }), Sa(() => {
3296
- x = !0, P++, clearTimeout(_), be(!1), typeof h == "function" && h();
3297
- }), (J, ne) => (l(), E(se, null, [
3298
- A("div", Ln, [
3343
+ }), Ea(() => {
3344
+ x = !0, T++, clearTimeout(w), be(!1), typeof k == "function" && k();
3345
+ }), (J, se) => (l(), S(ie, null, [
3346
+ A("div", qn, [
3299
3347
  ge(J.$slots, "default", {}, void 0, !0)
3300
3348
  ]),
3301
- v(e(Ze), {
3302
- open: k.value && !e(d),
3303
- title: K.value,
3349
+ v(e(je), {
3350
+ open: b.value && !e(d),
3351
+ title: M.value,
3304
3352
  width: "480px",
3305
3353
  "onUpdate:open": ze
3306
3354
  }, {
3307
3355
  footer: n(() => [
3308
- q.value ? (l(), m(e(U), {
3356
+ F.value ? (l(), m(e(U), {
3309
3357
  key: 0,
3310
3358
  variant: "primary",
3311
3359
  loading: r.value,
3312
3360
  disabled: r.value,
3313
- onClick: ne[0] || (ne[0] = (te) => de("request"))
3361
+ onClick: se[0] || (se[0] = (oe) => de("request"))
3314
3362
  }, {
3315
3363
  default: n(() => [
3316
- g(s(r.value ? z.value("authorizing") : z.value("authorize")), 1)
3364
+ h(i(r.value ? z.value("authorizing") : z.value("authorize")), 1)
3317
3365
  ]),
3318
3366
  _: 1
3319
3367
  }, 8, ["loading", "disabled"])) : (l(), m(e(U), {
@@ -3321,10 +3369,10 @@ const Ln = { class: "authorization-content" }, On = ["aria-busy", "data-authoriz
3321
3369
  variant: "primary",
3322
3370
  loading: r.value,
3323
3371
  disabled: r.value,
3324
- onClick: ne[1] || (ne[1] = (te) => de("status"))
3372
+ onClick: se[1] || (se[1] = (oe) => de("status"))
3325
3373
  }, {
3326
3374
  default: n(() => [
3327
- g(s(r.value ? z.value("checking") : z.value("retry")), 1)
3375
+ h(i(r.value ? z.value("checking") : z.value("retry")), 1)
3328
3376
  ]),
3329
3377
  _: 1
3330
3378
  }, 8, ["loading", "disabled"]))
@@ -3333,17 +3381,17 @@ const Ln = { class: "authorization-content" }, On = ["aria-busy", "data-authoriz
3333
3381
  A("div", {
3334
3382
  class: "authorization-view",
3335
3383
  "aria-busy": r.value,
3336
- "data-authorization-state": i.value?.state || "checking"
3384
+ "data-authorization-state": s.value?.state || "checking"
3337
3385
  }, [
3338
- A("p", qn, s(F.value), 1),
3386
+ A("p", Mn, i(q.value), 1),
3339
3387
  O.value ? (l(), m(e(j), {
3340
3388
  key: 0,
3341
3389
  class: "authorization-status",
3342
- tone: ["grant_missing", "upgrade_reapproval"].includes(W.value) ? "info" : "warning",
3343
- title: z.value("reason." + W.value)
3390
+ tone: ["grant_missing", "upgrade_reapproval"].includes(X.value) ? "info" : "warning",
3391
+ title: z.value("reason." + X.value)
3344
3392
  }, {
3345
3393
  default: n(() => [
3346
- g(s(z.value(oe.value)), 1)
3394
+ h(i(z.value(ne.value)), 1)
3347
3395
  ]),
3348
3396
  _: 1
3349
3397
  }, 8, ["tone", "title"])) : y("", !0),
@@ -3353,24 +3401,24 @@ const Ln = { class: "authorization-content" }, On = ["aria-busy", "data-authoriz
3353
3401
  tone: "warning"
3354
3402
  }, {
3355
3403
  default: n(() => [
3356
- g(s(z.value("failed")), 1)
3404
+ h(i(z.value("failed")), 1)
3357
3405
  ]),
3358
3406
  _: 1
3359
3407
  })) : y("", !0)
3360
- ], 8, On)
3408
+ ], 8, Fn)
3361
3409
  ]),
3362
3410
  _: 1
3363
3411
  }, 8, ["open", "title"])
3364
3412
  ], 64));
3365
3413
  }
3366
- }), io = /* @__PURE__ */ me(Fn, [["__scopeId", "data-v-3e998887"]]), Mn = { class: "authorization-setting" }, Kn = {
3414
+ }), ro = /* @__PURE__ */ me(Kn, [["__scopeId", "data-v-3e998887"]]), Hn = { class: "authorization-setting" }, Xn = {
3367
3415
  class: "authorization-state",
3368
3416
  role: "status"
3369
- }, Hn = { class: "authorization-revoke-body" }, Xn = /* @__PURE__ */ fe({
3417
+ }, Gn = { class: "authorization-revoke-body" }, Wn = /* @__PURE__ */ fe({
3370
3418
  __name: "AuthorizationSettings",
3371
3419
  setup(t) {
3372
- const { state: b, requireAuthorization: o, text: a, busy: i, canManage: u, revoke: r } = Bn(), c = p(!1), k = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
3373
- return (d, f) => (l(), E(se, null, [
3420
+ const { state: g, requireAuthorization: o, text: a, busy: s, canManage: u, revoke: r } = On(), c = f(!1), b = { checking: "checking", ready: "ready", authorization_required: "state.required", not_admin: "not_admin.title", session_expired: "session_expired.title", unavailable: "state.unavailable" };
3421
+ return (d, p) => (l(), S(ie, null, [
3374
3422
  v(e(_e), {
3375
3423
  title: e(a)("settings.title"),
3376
3424
  collapsible: !1
@@ -3382,32 +3430,32 @@ const Ln = { class: "authorization-content" }, On = ["aria-busy", "data-authoriz
3382
3430
  align: "center"
3383
3431
  }, {
3384
3432
  default: n(() => [
3385
- A("div", Mn, [
3386
- A("span", Kn, [
3387
- e(b) === "ready" ? (l(), m(e(Ta), {
3433
+ A("div", Hn, [
3434
+ A("span", Xn, [
3435
+ e(g) === "ready" ? (l(), m(e(Ta), {
3388
3436
  key: 0,
3389
3437
  size: 16,
3390
3438
  "aria-hidden": "true"
3391
3439
  })) : y("", !0),
3392
- g(s(e(a)(k[e(b)])), 1)
3440
+ h(i(e(a)(b[e(g)])), 1)
3393
3441
  ]),
3394
- e(b) === "ready" && e(u)() ? (l(), m(e(U), {
3442
+ e(g) === "ready" && e(u)() ? (l(), m(e(U), {
3395
3443
  key: 0,
3396
3444
  variant: "secondary",
3397
- disabled: e(i),
3398
- onClick: f[0] || (f[0] = (x) => c.value = !0)
3445
+ disabled: e(s),
3446
+ onClick: p[0] || (p[0] = (x) => c.value = !0)
3399
3447
  }, {
3400
3448
  default: n(() => [
3401
- g(s(e(a)("revoke")), 1)
3449
+ h(i(e(a)("revoke")), 1)
3402
3450
  ]),
3403
3451
  _: 1
3404
- }, 8, ["disabled"])) : e(b) !== "ready" && e(b) !== "checking" ? (l(), m(e(U), {
3452
+ }, 8, ["disabled"])) : e(g) !== "ready" && e(g) !== "checking" ? (l(), m(e(U), {
3405
3453
  key: 1,
3406
3454
  variant: "secondary",
3407
- onClick: f[1] || (f[1] = (x) => e(o)())
3455
+ onClick: p[1] || (p[1] = (x) => e(o)())
3408
3456
  }, {
3409
3457
  default: n(() => [
3410
- g(s(e(a)("settings.details")), 1)
3458
+ h(i(e(a)("settings.details")), 1)
3411
3459
  ]),
3412
3460
  _: 1
3413
3461
  })) : y("", !0)
@@ -3418,126 +3466,126 @@ const Ln = { class: "authorization-content" }, On = ["aria-busy", "data-authoriz
3418
3466
  ]),
3419
3467
  _: 1
3420
3468
  }, 8, ["title"]),
3421
- v(e(Ze), {
3469
+ v(e(je), {
3422
3470
  open: c.value,
3423
- "onUpdate:open": f[4] || (f[4] = (x) => c.value = x),
3471
+ "onUpdate:open": p[4] || (p[4] = (x) => c.value = x),
3424
3472
  title: e(a)("revoke.title"),
3425
3473
  width: "480px"
3426
3474
  }, {
3427
3475
  footer: n(() => [
3428
3476
  v(e(U), {
3429
3477
  variant: "secondary",
3430
- onClick: f[2] || (f[2] = (x) => c.value = !1)
3478
+ onClick: p[2] || (p[2] = (x) => c.value = !1)
3431
3479
  }, {
3432
3480
  default: n(() => [
3433
- g(s(e(a)("cancel")), 1)
3481
+ h(i(e(a)("cancel")), 1)
3434
3482
  ]),
3435
3483
  _: 1
3436
3484
  }),
3437
3485
  v(e(U), {
3438
3486
  variant: "danger",
3439
- disabled: e(i),
3440
- onClick: f[3] || (f[3] = (x) => {
3487
+ disabled: e(s),
3488
+ onClick: p[3] || (p[3] = (x) => {
3441
3489
  c.value = !1, e(r)();
3442
3490
  })
3443
3491
  }, {
3444
3492
  default: n(() => [
3445
- g(s(e(a)("revoke")), 1)
3493
+ h(i(e(a)("revoke")), 1)
3446
3494
  ]),
3447
3495
  _: 1
3448
3496
  }, 8, ["disabled"])
3449
3497
  ]),
3450
3498
  default: n(() => [
3451
- A("p", Hn, s(e(a)("revoke.body")), 1)
3499
+ A("p", Gn, i(e(a)("revoke.body")), 1)
3452
3500
  ]),
3453
3501
  _: 1
3454
3502
  }, 8, ["open", "title"])
3455
3503
  ], 64));
3456
3504
  }
3457
- }), uo = /* @__PURE__ */ me(Xn, [["__scopeId", "data-v-f031e7c7"]]);
3505
+ }), co = /* @__PURE__ */ me(Wn, [["__scopeId", "data-v-f031e7c7"]]);
3458
3506
  export {
3459
- Zn as AppShell,
3460
- io as AuthorizationGate,
3461
- uo as AuthorizationSettings,
3462
- lo as BackgroundPanel,
3463
- so as BackgroundSavePanel,
3464
- An as BackgroundSaveSettings,
3465
- vo as DEFAULT_REQUEST_TIMEOUT,
3466
- oo as DelegatePanel,
3467
- no as ExecutorApproval,
3468
- Wt as ExecutorNotice,
3469
- za as ExecutorPreloadKey,
3470
- Da as ExecutorSettings,
3471
- Ke as ExecutorSetupKey,
3472
- fo as FILE_STATION_APP,
3473
- Ua as FileBrowser,
3474
- eo as FilesPage,
3475
- po as LIFECYCLE_RETRY_MAX_MS,
3476
- mo as LIFECYCLE_STARTING_RETRY_MAX_MS,
3477
- to as LoginPage,
3478
- ea as NasPicker,
3479
- jn as PageActions,
3480
- Va as PageActionsTarget,
3481
- ao as PortalSettings,
3482
- yo as activePage,
3507
+ eo as AppShell,
3508
+ ro as AuthorizationGate,
3509
+ co as AuthorizationSettings,
3510
+ oo as BackgroundPanel,
3511
+ uo as BackgroundSavePanel,
3512
+ In as BackgroundSaveSettings,
3513
+ po as DEFAULT_REQUEST_TIMEOUT,
3514
+ io as DelegatePanel,
3515
+ so as ExecutorApproval,
3516
+ Yt as ExecutorNotice,
3517
+ Aa as ExecutorPreloadKey,
3518
+ Va as ExecutorSettings,
3519
+ He as ExecutorSetupKey,
3520
+ mo as FILE_STATION_APP,
3521
+ Na as FileBrowser,
3522
+ to as FilesPage,
3523
+ yo as LIFECYCLE_RETRY_MAX_MS,
3524
+ bo as LIFECYCLE_STARTING_RETRY_MAX_MS,
3525
+ no as LoginPage,
3526
+ aa as NasPicker,
3527
+ ao as PageActions,
3528
+ Ua as PageActionsTarget,
3529
+ lo as PortalSettings,
3530
+ go as activePage,
3483
3531
  Be as appDenial,
3484
3532
  xe as appLifecycle,
3485
3533
  ua as appRefusal,
3486
- bo as authorizationCatalogs,
3487
- Ga as authorizationCopy,
3488
- go as backgroundCatalogs,
3489
- qa as backgroundCopy,
3490
- Ma as backgroundErrorCopy,
3491
- ko as bridgeCatalogs,
3492
- ho as bridgeErrorCopy,
3493
- wo as catalogs,
3494
- _o as clientTimeout,
3495
- Fa as createBackgroundPickerProvider,
3496
- xo as createBackgroundSaveFacade,
3497
- Co as createDsmSession,
3498
- $o as createFileTransfers,
3499
- xa as createNasProvider,
3500
- So as createPortalAccess,
3501
- Qn as createSession,
3502
- Eo as createStandaloneContext,
3503
- To as createStandaloneHost,
3504
- Po as decodeResponse,
3505
- zo as delegateCatalogs,
3534
+ ho as authorizationCatalogs,
3535
+ Wa as authorizationCopy,
3536
+ ko as backgroundCatalogs,
3537
+ Fa as backgroundCopy,
3538
+ Ka as backgroundErrorCopy,
3539
+ wo as bridgeCatalogs,
3540
+ _o as bridgeErrorCopy,
3541
+ xo as catalogs,
3542
+ Co as clientTimeout,
3543
+ Ma as createBackgroundPickerProvider,
3544
+ $o as createBackgroundSaveFacade,
3545
+ So as createDsmSession,
3546
+ Eo as createFileTransfers,
3547
+ Ca as createNasProvider,
3548
+ Po as createPortalAccess,
3549
+ jn as createSession,
3550
+ To as createStandaloneContext,
3551
+ zo as createStandaloneHost,
3552
+ Ao as decodeResponse,
3553
+ Ro as delegateCatalogs,
3506
3554
  Ve as delegateCopy,
3507
- Ao as encodeRequest,
3508
- Ha as errorCopy,
3509
- Ro as fileStationPath,
3555
+ Io as encodeRequest,
3556
+ Xa as errorCopy,
3557
+ Do as fileStationPath,
3510
3558
  na as format,
3511
- Io as identityCatalogs,
3512
- Oa as identityCopy,
3513
- wa as isFullPage,
3514
- Ca as labelSeparator,
3559
+ Vo as identityCatalogs,
3560
+ qa as identityCopy,
3561
+ _a as isFullPage,
3562
+ $a as labelSeparator,
3515
3563
  Ue as lifecycleCopy,
3516
- Ka as lifecycleRefusal,
3564
+ Ha as lifecycleRefusal,
3517
3565
  ra as lifecycleRetryDelay,
3518
- Do as mergeCatalogs,
3519
- Vo as nasCatalogs,
3520
- Te as nasCopy,
3521
- _a as nasErrorCopy,
3522
- Uo as openFileInFileStation,
3523
- No as openFolderInFileStation,
3524
- Bo as portalCatalogs,
3525
- Lo as portalMessages,
3526
- Oo as protocolCodes,
3527
- qo as protocolOps,
3528
- Fo as protocolSchemas,
3566
+ Uo as mergeCatalogs,
3567
+ No as nasCatalogs,
3568
+ Pe as nasCopy,
3569
+ xa as nasErrorCopy,
3570
+ Bo as openFileInFileStation,
3571
+ Lo as openFolderInFileStation,
3572
+ Oo as portalCatalogs,
3573
+ qo as portalMessages,
3574
+ Fo as protocolCodes,
3575
+ Mo as protocolOps,
3576
+ Ko as protocolSchemas,
3529
3577
  pa as requestKey,
3530
- Mo as saveCatalogs,
3578
+ Ho as saveCatalogs,
3531
3579
  ca as saveCopy,
3532
- Xe as saveError,
3533
- Xa as scopedPicker,
3534
- Ko as shellCatalogs,
3535
- La as shellCopy,
3536
- Ho as shellPages,
3580
+ Ge as saveError,
3581
+ Ga as scopedPicker,
3582
+ Xo as shellCatalogs,
3583
+ Oa as shellCopy,
3584
+ Go as shellPages,
3537
3585
  da as uiLocale,
3538
- Xo as uiLocales,
3539
- Bn as useAuthorization,
3540
- bt as useExecutorPreload,
3541
- Aa as useExecutorSetup,
3542
- ht as useNasRequest
3586
+ Wo as uiLocales,
3587
+ On as useAuthorization,
3588
+ gt as useExecutorPreload,
3589
+ Ra as useExecutorSetup,
3590
+ wt as useNasRequest
3543
3591
  };