@synopackageland/sdk 0.24.1 → 0.26.0

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