@synopackageland/sdk 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vue.js CHANGED
@@ -1,6 +1,6 @@
1
- import { appRefusal as da, appDenial as Be, delegateCopy as Ve, appLifecycle as Ce, lifecycleRetryDelay as ca, uiLocale as va, lifecycleCopy as Ne, shellCopy as sa, isFullPage as $a, format as Je, nasCopy as Te, nasErrorCopy as Sa, saveCopy as fa, saveError as Ye, createNasProvider as Pa, identityCopy as Xa, backgroundCopy as Wa, createBackgroundPickerProvider as Ga, backgroundErrorCopy as Ja, requestKey as ba, labelSeparator as Ea, lifecycleRefusal as Ya, errorCopy as Qa, scopedPicker as Za, authorizationCopy as ja } from "./index.js";
2
- import { DEFAULT_REQUEST_TIMEOUT as Co, FILE_STATION_APP as $o, LIFECYCLE_RETRY_MAX_MS as So, LIFECYCLE_STARTING_RETRY_MAX_MS as Po, activePage as Eo, authorizationCatalogs as To, backgroundCatalogs as zo, bridgeCatalogs as Ao, bridgeErrorCopy as Ro, catalogs as Io, clientTimeout as Do, createBackgroundSaveFacade as Uo, createDsmSession as Vo, createFileTransfers as No, createPortalAccess as Bo, createStandaloneContext as Lo, createStandaloneHost as Oo, decodeResponse as Fo, delegateCatalogs as qo, encodeRequest as Mo, fileStationPath as Ko, identityCatalogs as Ho, mergeCatalogs as Xo, nasCatalogs as Wo, openFileInFileStation as Go, openFolderInFileStation as Jo, portalCatalogs as Yo, portalMessages as Qo, protocolCodes as Zo, protocolOps as jo, protocolSchemas as es, saveCatalogs as as, shellCatalogs as ts, shellPages as ls, uiLocales as ns } from "./index.js";
3
- import { inject as Ee, ref as y, computed as _, onBeforeUnmount as we, Comment as et, Text as at, Fragment as oe, watch as Oe, onMounted as Se, defineComponent as fe, openBlock as l, createElementBlock as $, normalizeClass as De, createElementVNode as S, createVNode as v, unref as e, toDisplayString as s, createCommentVNode as b, renderList as ge, createTextVNode as h, renderSlot as be, createBlock as g, withCtx as n, resolveDynamicComponent as Xe, normalizeProps as Qe, mergeProps as pa, withModifiers as qe, isRef as Ze, provide as Le, useTemplateRef as He, useSlots as Ta, watchEffect as ga, guardReactiveProps as ha, createSlots as za, Teleport as Aa, markRaw as tt, h as lt, onUnmounted as Ra, nextTick as nt } from "vue";
1
+ import { appRefusal as da, appDenial as Ne, delegateCopy as Ve, appLifecycle as Ce, lifecycleRetryDelay as ca, uiLocale as va, lifecycleCopy as Le, shellCopy as sa, isFullPage as $a, format as Je, nasCopy as Te, nasErrorCopy as Sa, saveCopy as fa, saveError as Ye, createNasProvider as Pa, identityCopy as Xa, backgroundCopy as Wa, createBackgroundPickerProvider as Ga, backgroundErrorCopy as Ja, requestKey as ba, labelSeparator as Ea, lifecycleRefusal as Ya, errorCopy as Qa, scopedPicker as Za, authorizationCopy as ja } from "./index.js";
2
+ import { DEFAULT_REQUEST_TIMEOUT as Co, FILE_STATION_APP as $o, LIFECYCLE_RETRY_MAX_MS as So, LIFECYCLE_STARTING_RETRY_MAX_MS as Po, MAX_LAUNCH_ROUTE as Eo, activePage as To, authorizationCatalogs as zo, backgroundCatalogs as Ao, bridgeCatalogs as Ro, bridgeErrorCopy as Io, catalogs as Do, clientTimeout as Uo, createBackgroundSaveFacade as Vo, createDsmSession as Lo, createFileTransfers as No, createPortalAccess as Bo, createStandaloneContext as Oo, createStandaloneHost as Fo, decodeResponse as qo, delegateCatalogs as Mo, dsmLaunchURL as Ko, encodeRequest as Ho, fileStationPath as Xo, followLaunchRoute as Wo, identityCatalogs as Go, launchRoute as Jo, mergeCatalogs as Yo, nasCatalogs as Qo, openFileInFileStation as Zo, openFolderInFileStation as jo, portalCatalogs as es, portalMessages as as, protocolCodes as ts, protocolOps as ls, protocolSchemas as ns, saveCatalogs as os, shellCatalogs as ss, shellPages as is, uiLocales as us } from "./index.js";
3
+ import { inject as Ee, ref as y, computed as _, onBeforeUnmount as we, Comment as et, Text as at, Fragment as oe, watch as Oe, onMounted as Se, defineComponent as fe, openBlock as l, createElementBlock as $, normalizeClass as De, createElementVNode as S, createVNode as v, unref as e, toDisplayString as s, createCommentVNode as b, renderList as ge, createTextVNode as h, renderSlot as be, createBlock as g, withCtx as n, resolveDynamicComponent as Xe, normalizeProps as Qe, mergeProps as pa, withModifiers as qe, isRef as Ze, provide as Be, useTemplateRef as He, useSlots as Ta, watchEffect as ga, guardReactiveProps as ha, createSlots as za, Teleport as Aa, markRaw as tt, h as lt, onUnmounted as Ra, nextTick as nt } from "vue";
4
4
  import { SettingsSection as ke, Callout as j, Button as V, SettingsRow as xe, Skeleton as Fe, Badge as ia, PathDisplay as Ue, Form as Me, FormItem as $e, Select as ma, Input as ze, Dialog as Ge, ensureDeviceViewport as ot, AppRoot as st, ConfigProvider as it, PageContent as ka, PageHeader as wa, AppLayout as ut, AppSidebar as rt, AppSidebarUser as dt, InfoTip as ct, FileTypeIcon as la, IconButton as na, Breadcrumb as vt, FilePicker as ft, TreeView as pt, DataGrid as mt, Link as ua, FormActions as aa, Card as _a, Checkbox as yt, LoadingArea as bt } from "@synopackageland/ui";
5
5
  import { Timer as gt, Info as ht, ShieldCheck as Ia, ChevronRight as Da, ChevronLeft as kt, RotateCw as wt } from "@lucide/vue";
6
6
  const We = /* @__PURE__ */ Symbol("executor-setup"), Ua = /* @__PURE__ */ Symbol("executor-preload");
@@ -37,76 +37,76 @@ function uo(t) {
37
37
  function x() {
38
38
  clearTimeout(d), clearTimeout(p);
39
39
  }
40
- function P(B = "") {
41
- f++, x(), u.value = void 0, r.value = B;
40
+ function P(N = "") {
41
+ f++, x(), u.value = void 0, r.value = N;
42
42
  }
43
- function w(B) {
44
- const K = Be(B);
43
+ function w(N) {
44
+ const K = Ne(N);
45
45
  return c || !K ? !1 : (P(), m.value = K, !0);
46
46
  }
47
- async function C(B, K) {
48
- const L = f;
47
+ async function C(N, K) {
48
+ const B = f;
49
49
  try {
50
- return await t.call(B, K);
50
+ return await t.call(N, K);
51
51
  } catch (R) {
52
- throw L === f && w(R), R;
52
+ throw B === f && w(R), R;
53
53
  }
54
54
  }
55
- function E(B) {
55
+ function E(N) {
56
56
  if (c) return;
57
- const K = Date.parse(B.expiresAt) - Date.now();
57
+ const K = Date.parse(N.expiresAt) - Date.now();
58
58
  if (!Number.isFinite(K) || K <= 0) {
59
59
  P("expired");
60
60
  return;
61
61
  }
62
- x(), m.value = void 0, u.value = B, r.value = "", d = setTimeout(() => P("expired"), K);
63
- const L = f;
62
+ x(), m.value = void 0, u.value = N, r.value = "", d = setTimeout(() => P("expired"), K);
63
+ const B = f;
64
64
  p = setTimeout(async () => {
65
65
  try {
66
66
  const R = await C("identity.session");
67
- !c && f === L && E(R);
67
+ !c && f === B && E(R);
68
68
  } catch (R) {
69
- !c && f === L && !w(R) && P("expired");
69
+ !c && f === B && !w(R) && P("expired");
70
70
  }
71
71
  }, Math.min(6e4, K));
72
72
  }
73
73
  async function k() {
74
74
  try {
75
- const B = await C("identity.status");
75
+ const N = await C("identity.status");
76
76
  if (c) return;
77
- if (m.value = void 0, a.value = B.enabled === !0, a.value)
77
+ if (m.value = void 0, a.value = N.enabled === !0, a.value)
78
78
  try {
79
79
  E(await C("identity.session", { bootstrap: !0 }));
80
80
  } catch (K) {
81
- !c && !Be(K) && P();
81
+ !c && !Ne(K) && P();
82
82
  }
83
- } catch (B) {
83
+ } catch (N) {
84
84
  if (c) return;
85
- const K = B?.code;
86
- a.value = !Be(B) && !["unknown_method", "session_required"].includes(K || ""), a.value && (r.value = "unavailable");
85
+ const K = N?.code;
86
+ a.value = !Ne(N) && !["unknown_method", "session_required"].includes(K || ""), a.value && (r.value = "unavailable");
87
87
  } finally {
88
88
  c || (i.value = !0);
89
89
  }
90
90
  }
91
- async function T(B, K) {
92
- const L = f;
91
+ async function T(N, K) {
92
+ const B = f;
93
93
  try {
94
- const R = await t.call(B, K);
95
- if (c || a.value && L !== f) throw { code: "session_required" };
94
+ const R = await t.call(N, K);
95
+ if (c || a.value && B !== f) throw { code: "session_required" };
96
96
  return R;
97
97
  } catch (R) {
98
- L === f && w(R);
98
+ B === f && w(R);
99
99
  const A = R?.code;
100
- throw !c && L === f && a.value && ["session_required", "session_revalidation_required"].includes(A || "") && P(A === "session_revalidation_required" ? "revalidate" : "expired"), R;
100
+ throw !c && B === f && a.value && ["session_required", "session_revalidation_required"].includes(A || "") && P(A === "session_revalidation_required" ? "revalidate" : "expired"), R;
101
101
  }
102
102
  }
103
- async function N(B, K, L) {
104
- const R = await C("identity.login", { account: B, password: K, otp: L });
103
+ async function L(N, K, B) {
104
+ const R = await C("identity.login", { account: N, password: K, otp: B });
105
105
  c || (f++, E(R));
106
106
  }
107
107
  async function te() {
108
- const B = await C("identity.session", { bootstrap: !0 });
109
- c || (f++, E(B));
108
+ const N = await C("identity.session", { bootstrap: !0 });
109
+ c || (f++, E(N));
110
110
  }
111
111
  async function F() {
112
112
  await C("identity.logout"), c || P();
@@ -114,7 +114,7 @@ function uo(t) {
114
114
  function Y() {
115
115
  c = !0, P();
116
116
  }
117
- return { enabled: a, ready: i, subject: u, notice: r, denied: o, start: k, call: T, login: N, bootstrap: te, logout: F, dispose: Y };
117
+ return { enabled: a, ready: i, subject: u, notice: r, denied: o, start: k, call: T, login: L, bootstrap: te, logout: F, dispose: Y };
118
118
  }
119
119
  function $t() {
120
120
  const t = y(!1), m = y();
@@ -165,10 +165,10 @@ function St(t) {
165
165
  return m;
166
166
  }
167
167
  }
168
- function Na(t) {
168
+ function La(t) {
169
169
  return Array.isArray(t) && t.some((m) => {
170
170
  const o = m;
171
- return o.type === et ? !1 : o.type === at ? String(o.children).trim() !== "" : o.type === oe ? Na(o.children) : !0;
171
+ return o.type === et ? !1 : o.type === at ? String(o.children).trim() !== "" : o.type === oe ? La(o.children) : !0;
172
172
  });
173
173
  }
174
174
  function Pt(t) {
@@ -188,12 +188,12 @@ function zt(t) {
188
188
  return o.items.length ? [...m.values(), o] : [...m.values()];
189
189
  }
190
190
  const At = { password_rejected: "passwordRejected", password_required: "passwordRequired", password_confirm_failed: "passwordConfirmFailed" }, Rt = 6e4, It = 1e3;
191
- function Ba(t, m) {
191
+ function Na(t, m) {
192
192
  const o = Va(), a = _(() => Ve(t.locale)), i = y(), u = y(""), r = y(!1), c = y(!1), f = y(!1), d = y(), p = y(!1), x = _(() => p.value ? a.value.passwordRequired : d.value && "confirm" in d.value ? a.value[At[d.value.confirm]] : "");
193
193
  Oe(u, () => {
194
194
  p.value = !1;
195
195
  });
196
- const P = y(), w = y(""), C = y([]), E = _(() => P.value?.scope_mode === "install-selected"), k = _(() => !!P.value?.scope_mode), T = _(() => [{ label: a.value.homeScope, value: "home" }, ...C.value]), N = _(() => !E.value || !!w.value && T.value.some((M) => M.value === w.value)), te = _(() => E.value && !P.value?.selection);
196
+ const P = y(), w = y(""), C = y([]), E = _(() => P.value?.scope_mode === "install-selected"), k = _(() => !!P.value?.scope_mode), T = _(() => [{ label: a.value.homeScope, value: "home" }, ...C.value]), L = _(() => !E.value || !!w.value && T.value.some((M) => M.value === w.value)), te = _(() => E.value && !P.value?.selection);
197
197
  let F = !1;
198
198
  async function Y(M) {
199
199
  const se = M ?? await o.status();
@@ -213,7 +213,7 @@ function Ba(t, m) {
213
213
  }
214
214
  C.value = G, w.value = H.selection?.scope ?? H.preselection ?? "";
215
215
  }
216
- async function B(M) {
216
+ async function N(M) {
217
217
  if (!(!t.admin || r.value)) {
218
218
  r.value = !0, f.value = !1, d.value = void 0;
219
219
  try {
@@ -225,9 +225,9 @@ function Ba(t, m) {
225
225
  }
226
226
  }
227
227
  }
228
- const K = () => B();
229
- async function L() {
230
- if (!t.admin || r.value || !u.value || !N.value || f.value) return;
228
+ const K = () => N();
229
+ async function B() {
230
+ if (!t.admin || r.value || !u.value || !L.value || f.value) return;
231
231
  r.value = !0, f.value = !1, d.value = void 0;
232
232
  const M = u.value, se = w.value;
233
233
  u.value = "", c.value = !0;
@@ -254,7 +254,7 @@ function Ba(t, m) {
254
254
  }
255
255
  }
256
256
  function R() {
257
- return !u.value && !r.value ? (p.value = !0, Promise.resolve()) : L();
257
+ return !u.value && !r.value ? (p.value = !0, Promise.resolve()) : B();
258
258
  }
259
259
  async function A(M) {
260
260
  for (const se = Date.now() + Rt; !F; await new Promise((H) => setTimeout(H, It))) {
@@ -269,10 +269,10 @@ function Ba(t, m) {
269
269
  return Se(() => {
270
270
  o.subscribe?.((M) => {
271
271
  !F && !je(M) && (i.value = M);
272
- }), B(t.initial);
272
+ }), N(t.initial);
273
273
  }), we(() => {
274
274
  F = !0, u.value = "";
275
- }), { status: i, password: u, busy: r, confirming: c, error: f, failure: d, passwordError: x, scope: P, chosen: w, options: T, dynamic: E, files: k, webapiProfiles: o.webapiProfiles, canConfirm: N, needsScope: te, refresh: K, authorize: L, submit: R, explain: q };
275
+ }), { status: i, password: u, busy: r, confirming: c, error: f, failure: d, passwordError: x, scope: P, chosen: w, options: T, dynamic: E, files: k, webapiProfiles: o.webapiProfiles, canConfirm: L, needsScope: te, refresh: K, authorize: B, submit: R, explain: q };
276
276
  }
277
277
  function Ke(t, m) {
278
278
  let o = !1, a, i = 0;
@@ -292,10 +292,10 @@ function Ke(t, m) {
292
292
  const Dt = ["data-audience"], Ut = {
293
293
  class: "executor-consent-icon",
294
294
  "aria-hidden": "true"
295
- }, Vt = { class: "executor-consent-body" }, Nt = { class: "executor-consent-head" }, Bt = {
295
+ }, Vt = { class: "executor-consent-body" }, Lt = { class: "executor-consent-head" }, Nt = {
296
296
  class: "executor-consent-title",
297
297
  "data-consent-title": ""
298
- }, Lt = {
298
+ }, Bt = {
299
299
  class: "executor-consent-lead",
300
300
  "data-consent-lead": ""
301
301
  }, Ot = {
@@ -335,9 +335,9 @@ const Dt = ["data-audience"], Ut = {
335
335
  }, null, 8, ["size"])
336
336
  ]),
337
337
  S("div", Vt, [
338
- S("div", Nt, [
339
- S("p", Bt, s(t.admin ? o.value.consentTitle : o.value.consentTitleUser), 1),
340
- S("p", Lt, s(i.value), 1),
338
+ S("div", Lt, [
339
+ S("p", Nt, s(t.admin ? o.value.consentTitle : o.value.consentTitleUser), 1),
340
+ S("p", Bt, s(i.value), 1),
341
341
  t.admin ? b("", !0) : (l(), $("p", Ot, s(o.value.consentAsk), 1))
342
342
  ]),
343
343
  t.webapiProfiles && Object.keys(t.webapiProfiles).length ? (l(), $("ul", Ft, [
@@ -398,7 +398,7 @@ const Dt = ["data-audience"], Ut = {
398
398
  },
399
399
  emits: ["confirmed"],
400
400
  setup(t, { expose: m, emit: o }) {
401
- const a = t, i = o, u = _(() => Ve(a.locale)), { status: r, password: c, busy: f, confirming: d, error: p, failure: x, passwordError: P, scope: w, chosen: C, options: E, dynamic: k, files: T, webapiProfiles: N, canConfirm: te, needsScope: F, refresh: Y, submit: B, explain: K } = Ba(a, () => i("confirmed")), L = _(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), R = _(() => ({ ready: { tone: "success", text: u.value.statusReady }, blocked: { tone: "danger", text: u.value.statusBlocked }, confirming: { tone: "info", text: u.value.statusConfirming } })[L.value ?? "confirming"]), A = _(() => d.value ? void 0 : Ce(r.value));
401
+ const a = t, i = o, u = _(() => Ve(a.locale)), { status: r, password: c, busy: f, confirming: d, error: p, failure: x, passwordError: P, scope: w, chosen: C, options: E, dynamic: k, files: T, webapiProfiles: L, canConfirm: te, needsScope: F, refresh: Y, submit: N, explain: K } = Na(a, () => i("confirmed")), B = _(() => d.value ? "confirming" : r.value ? r.value.state === "ready" ? "ready" : "blocked" : void 0), R = _(() => ({ ready: { tone: "success", text: u.value.statusReady }, blocked: { tone: "danger", text: u.value.statusBlocked }, confirming: { tone: "info", text: u.value.statusConfirming } })[B.value ?? "confirming"]), A = _(() => d.value ? void 0 : Ce(r.value));
402
402
  Ke(() => A.value, Y);
403
403
  const q = _(() => !A.value && (r.value?.state === "needs-admin-approval" || F.value)), M = _(() => q.value || !!r.value?.retry);
404
404
  return m({ refresh: Y }), (se, H) => t.admin ? (l(), g(e(ke), {
@@ -448,7 +448,7 @@ const Dt = ["data-audience"], Ut = {
448
448
  role: "status"
449
449
  }, {
450
450
  default: n(() => [
451
- h(s(e(Ne)(A.value, t.locale)), 1)
451
+ h(s(e(Le)(A.value, t.locale)), 1)
452
452
  ]),
453
453
  _: 1
454
454
  })) : (l(), $(oe, { key: 3 }, [
@@ -473,7 +473,7 @@ const Dt = ["data-audience"], Ut = {
473
473
  default: n(() => [
474
474
  S("span", {
475
475
  role: "status",
476
- "data-executor-status": L.value
476
+ "data-executor-status": B.value
477
477
  }, [
478
478
  v(e(ia), {
479
479
  tone: R.value.tone
@@ -513,7 +513,7 @@ const Dt = ["data-audience"], Ut = {
513
513
  _: 1
514
514
  }, 8, ["label"])) : b("", !0)
515
515
  ])) : b("", !0),
516
- L.value === "blocked" && !q.value ? (l(), g(e(j), {
516
+ B.value === "blocked" && !q.value ? (l(), g(e(j), {
517
517
  key: 2,
518
518
  tone: "warning"
519
519
  }, {
@@ -531,12 +531,12 @@ const Dt = ["data-audience"], Ut = {
531
531
  ]),
532
532
  _: 1
533
533
  })) : b("", !0),
534
- M.value ? (l(), g(Xe(q.value ? ea : "div"), Qe(pa({ key: 4 }, q.value ? { admin: !0, locale: t.locale, files: e(T), purpose: t.purpose, layout: t.layout, webapiProfiles: e(N) } : {})), {
534
+ M.value ? (l(), g(Xe(q.value ? ea : "div"), Qe(pa({ key: 4 }, q.value ? { admin: !0, locale: t.locale, files: e(T), purpose: t.purpose, layout: t.layout, webapiProfiles: e(L) } : {})), {
535
535
  default: n(() => [
536
536
  v(e(Me), {
537
537
  direction: "vertical",
538
538
  class: "executor-form",
539
- onSubmit: qe(e(B), ["prevent"])
539
+ onSubmit: qe(e(N), ["prevent"])
540
540
  }, {
541
541
  default: n(() => [
542
542
  e(k) ? (l(), g(e($e), {
@@ -600,7 +600,7 @@ const Dt = ["data-audience"], Ut = {
600
600
  _: 1
601
601
  }, 8, ["title", "description", "aria-busy"])) : b("", !0);
602
602
  }
603
- }), La = /* @__PURE__ */ me(Qt, [["__scopeId", "data-v-5a1f26e3"]]), Zt = {
603
+ }), Ba = /* @__PURE__ */ me(Qt, [["__scopeId", "data-v-5a1f26e3"]]), Zt = {
604
604
  key: 0,
605
605
  class: "executor-notice"
606
606
  }, jt = {
@@ -615,7 +615,7 @@ const Dt = ["data-audience"], Ut = {
615
615
  },
616
616
  setup(t) {
617
617
  const m = t, o = _(() => Ve(m.locale)), a = Ee(We, void 0) ?? m.ctx.executor;
618
- a && Le(We, a);
618
+ a && Be(We, a);
619
619
  const i = y("checking"), u = y(), r = y(!1), c = _(() => m.ctx.user?.isAdmin === !0), f = _(() => !u.value && (i.value === "needs-admin-approval" || i.value === "blocked")), d = _(() => a?.call ? { call: (k, T) => a.call(k, T) } : m.ctx.call ? m.ctx : void 0);
620
620
  let p = !1, x, P, w = 0;
621
621
  function C(k) {
@@ -652,7 +652,7 @@ const Dt = ["data-audience"], Ut = {
652
652
  role: "status"
653
653
  }, {
654
654
  default: n(() => [
655
- h(s(e(Ne)(u.value, t.locale)), 1)
655
+ h(s(e(Le)(u.value, t.locale)), 1)
656
656
  ]),
657
657
  _: 1
658
658
  })
@@ -665,7 +665,7 @@ const Dt = ["data-audience"], Ut = {
665
665
  key: 0,
666
666
  variant: "secondary",
667
667
  size: "sm",
668
- onClick: T[0] || (T[0] = (N) => r.value = !0)
668
+ onClick: T[0] || (T[0] = (L) => r.value = !0)
669
669
  }, {
670
670
  default: n(() => [
671
671
  h(s(o.value.noticeApprove), 1)
@@ -680,10 +680,10 @@ const Dt = ["data-audience"], Ut = {
680
680
  key: 0,
681
681
  open: r.value && f.value,
682
682
  title: o.value.setupTitle,
683
- "onUpdate:open": T[1] || (T[1] = (N) => r.value = N)
683
+ "onUpdate:open": T[1] || (T[1] = (L) => r.value = L)
684
684
  }, {
685
685
  default: n(() => [
686
- v(La, {
686
+ v(Ba, {
687
687
  admin: !0,
688
688
  locale: t.locale,
689
689
  ctx: d.value,
@@ -721,16 +721,16 @@ const Dt = ["data-audience"], Ut = {
721
721
  },
722
722
  emits: ["update:modelValue"],
723
723
  setup(t, { emit: m }) {
724
- const o = t, a = m, i = _(() => sa(o.locale)), u = _(() => Tt(o.pages, i.value)), r = _(() => zt(u.value)), c = _(() => u.value.find((L) => L.id === o.modelValue)), f = _(() => c.value?.title ?? i.value[o.modelValue] ?? i.value.status), d = He("scroller"), p = _(() => o.pages.some((L) => typeof L != "string"));
724
+ const o = t, a = m, i = _(() => sa(o.locale)), u = _(() => Tt(o.pages, i.value)), r = _(() => zt(u.value)), c = _(() => u.value.find((B) => B.id === o.modelValue)), f = _(() => c.value?.title ?? i.value[o.modelValue] ?? i.value.status), d = He("scroller"), p = _(() => o.pages.some((B) => typeof B != "string"));
725
725
  Oe(() => o.modelValue, () => {
726
726
  p.value && !o.keepScroll && d.value && (d.value.$el.scrollTop = 0);
727
727
  }, { flush: "post" });
728
- const x = Ta(), P = _(() => o.denied === !0 ? {} : o.denied || void 0), w = _(() => da(P.value, o.locale, o.brandName ?? o.ctx?.displayName)), C = _(() => o.ctx !== void 0 && $a(o.ctx)), E = _(() => C.value ? o.ctx : void 0), k = (L, { slots: R }) => R.default?.(), T = _(() => o.ctx !== void 0 && !C.value);
729
- function N() {
728
+ const x = Ta(), P = _(() => o.denied === !0 ? {} : o.denied || void 0), w = _(() => da(P.value, o.locale, o.brandName ?? o.ctx?.displayName)), C = _(() => o.ctx !== void 0 && $a(o.ctx)), E = _(() => C.value ? o.ctx : void 0), k = (B, { slots: R }) => R.default?.(), T = _(() => o.ctx !== void 0 && !C.value);
729
+ function L() {
730
730
  o.ctx?.host?.activateWindow?.();
731
731
  }
732
732
  const te = He("layout"), F = y({ brand: !1, user: !1 });
733
- Oe([C, te], (L, R, A) => {
733
+ Oe([C, te], (B, R, A) => {
734
734
  const q = te.value?.$el;
735
735
  if (!C.value || !q) {
736
736
  F.value = { brand: !1, user: !1 };
@@ -751,20 +751,20 @@ const Dt = ["data-audience"], Ut = {
751
751
  });
752
752
  }, { flush: "post", immediate: !0 });
753
753
  const Y = _(() => !F.value.user && E.value?.user?.name ? E.value.user : void 0);
754
- Le(Oa, He("page-actions")), Le(Fa, He("page-info")), Le(qa, _(() => o.locale));
755
- const B = He("notices"), K = y(!0);
756
- return ga((L) => {
757
- const R = B.value;
754
+ Be(Oa, He("page-actions")), Be(Fa, He("page-info")), Be(qa, _(() => o.locale));
755
+ const N = He("notices"), K = y(!0);
756
+ return ga((B) => {
757
+ const R = N.value;
758
758
  if (!R) return;
759
759
  const A = () => {
760
760
  K.value = !Pt(R);
761
761
  };
762
762
  A();
763
763
  const q = new MutationObserver(A);
764
- q.observe(R, { childList: !0, subtree: !0, characterData: !0 }), L(() => q.disconnect());
765
- }, { flush: "post" }), ga((L) => {
766
- C.value && L(ot());
767
- }), (L, R) => (l(), g(Xe(t.appRoot ? e(st) : k), Qe(ha(t.appRoot ? { modalScope: "app", dialogBounds: T.value ? "viewport" : "app", style: "height: 100%;", onActivate: N } : {})), {
764
+ q.observe(R, { childList: !0, subtree: !0, characterData: !0 }), B(() => q.disconnect());
765
+ }, { flush: "post" }), ga((B) => {
766
+ C.value && B(ot());
767
+ }), (B, R) => (l(), g(Xe(t.appRoot ? e(st) : k), Qe(ha(t.appRoot ? { modalScope: "app", dialogBounds: T.value ? "viewport" : "app", style: "height: 100%;", onActivate: L } : {})), {
768
768
  default: n(() => [
769
769
  (l(), g(Xe(t.appRoot ? e(it) : k), Qe(ha(t.appRoot ? { locale: e(va)(t.locale) } : {})), {
770
770
  default: n(() => [
@@ -778,7 +778,7 @@ const Dt = ["data-audience"], Ut = {
778
778
  key: 0,
779
779
  title: P.value.title ?? w.value?.title ?? i.value.deniedTitle
780
780
  }, null, 8, ["title"])) : b("", !0),
781
- be(L.$slots, "denied", {}, () => [
781
+ be(B.$slots, "denied", {}, () => [
782
782
  v(e(j), { tone: "danger" }, {
783
783
  default: n(() => [
784
784
  S("span", ll, s(P.value.message ?? w.value?.message ?? i.value.deniedMessage), 1)
@@ -821,11 +821,11 @@ const Dt = ["data-audience"], Ut = {
821
821
  }, {
822
822
  meta: n(() => [
823
823
  S("span", nl, null, 512),
824
- be(L.$slots, "meta", { page: t.modelValue }, void 0, !0)
824
+ be(B.$slots, "meta", { page: t.modelValue }, void 0, !0)
825
825
  ]),
826
826
  actions: n(() => [
827
827
  S("div", ol, null, 512),
828
- be(L.$slots, "actions", { page: t.modelValue }, void 0, !0)
828
+ be(B.$slots, "actions", { page: t.modelValue }, void 0, !0)
829
829
  ]),
830
830
  _: 3
831
831
  }, 8, ["title", "description"])) : b("", !0),
@@ -834,19 +834,19 @@ const Dt = ["data-audience"], Ut = {
834
834
  ctx: t.ctx,
835
835
  locale: t.locale
836
836
  }, null, 8, ["ctx", "locale"])) : b("", !0),
837
- e(Na)(x.notices?.({ page: t.modelValue })) ? (l(), $("div", {
837
+ e(La)(x.notices?.({ page: t.modelValue })) ? (l(), $("div", {
838
838
  key: 2,
839
839
  ref: "notices",
840
840
  class: "app-notices",
841
841
  hidden: K.value
842
842
  }, [
843
- be(L.$slots, "notices", { page: t.modelValue }, void 0, !0)
843
+ be(B.$slots, "notices", { page: t.modelValue }, void 0, !0)
844
844
  ], 8, sl)) : b("", !0),
845
845
  S("div", il, [
846
846
  c.value?.component ? (l(), g(Xe(c.value.component), {
847
847
  key: c.value.id
848
848
  })) : b("", !0),
849
- be(L.$slots, "default", { page: t.modelValue }, void 0, !0)
849
+ be(B.$slots, "default", { page: t.modelValue }, void 0, !0)
850
850
  ])
851
851
  ]),
852
852
  _: 3
@@ -857,7 +857,7 @@ const Dt = ["data-audience"], Ut = {
857
857
  x["sidebar-footer"] || Y.value ? {
858
858
  name: "sidebar-footer",
859
859
  fn: n(() => [
860
- be(L.$slots, "sidebar-footer", {}, () => [
860
+ be(B.$slots, "sidebar-footer", {}, () => [
861
861
  Y.value ? (l(), g(e(dt), {
862
862
  key: 0,
863
863
  name: Y.value.name,
@@ -870,7 +870,7 @@ const Dt = ["data-audience"], Ut = {
870
870
  x.toolbar ? {
871
871
  name: "toolbar",
872
872
  fn: n(() => [
873
- be(L.$slots, "toolbar", { page: t.modelValue }, void 0, !0)
873
+ be(B.$slots, "toolbar", { page: t.modelValue }, void 0, !0)
874
874
  ]),
875
875
  key: "1"
876
876
  } : void 0
@@ -965,24 +965,24 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
965
965
  },
966
966
  emits: ["selected"],
967
967
  setup(t, { emit: m }) {
968
- const o = t, a = m, i = _(() => Te(o.locale)), u = $t(), { busy: r, error: c } = u, f = y([]), d = y([]), p = y([]), x = y(), P = y(), w = y(), C = y([]), E = y(), k = y({ key: "name", direction: "asc" }), T = y(0), N = y([]), te = y(!1);
968
+ const o = t, a = m, i = _(() => Te(o.locale)), u = $t(), { busy: r, error: c } = u, f = y([]), d = y([]), p = y([]), x = y(), P = y(), w = y(), C = y([]), E = y(), k = y({ key: "name", direction: "asc" }), T = y(0), L = y([]), te = y(!1);
969
969
  let F = new AbortController();
970
970
  async function Y() {
971
971
  const D = x.value;
972
972
  !D || D.isDir || !o.provider.download || await u.run(async (U) => (await o.provider.info(D.path, U), o.provider.download(D.path), !0));
973
973
  }
974
- async function B() {
975
- const D = p.value.at(-1)?.path, U = N.value[0];
974
+ async function N() {
975
+ const D = p.value.at(-1)?.path, U = L.value[0];
976
976
  if (!D || !U || !o.provider.upload) return;
977
- te.value = !1, await u.run(async (Z) => (await o.provider.upload(D, U, Z), !0)) && (N.value = [], await Q(p.value), te.value = !0);
977
+ te.value = !1, await u.run(async (Z) => (await o.provider.upload(D, U, Z), !0)) && (L.value = [], await Q(p.value), te.value = !0);
978
978
  }
979
979
  const K = _(() => [
980
980
  { key: "name", label: i.value.nameColumn, sortable: !0 },
981
981
  { key: "kind", label: i.value.kindColumn },
982
982
  { key: "bytes", label: i.value.sizeColumn, align: "right", sortable: !0 }
983
- ]), L = tt((D, { attrs: U }) => lt(la, { ...U, kind: "folder" }));
983
+ ]), B = tt((D, { attrs: U }) => lt(la, { ...U, kind: "folder" }));
984
984
  function R(D) {
985
- return { id: D.path, label: D.name, icon: L, data: D };
985
+ return { id: D.path, label: D.name, icon: B, data: D };
986
986
  }
987
987
  function A(D) {
988
988
  x.value = D, a("selected", D?.path);
@@ -1137,8 +1137,8 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1137
1137
  ]),
1138
1138
  t.transfers && t.provider.upload && p.value.length ? (l(), $("div", pl, [
1139
1139
  v(e(ft), {
1140
- modelValue: N.value,
1141
- "onUpdate:modelValue": U[2] || (U[2] = (O) => N.value = O),
1140
+ modelValue: L.value,
1141
+ "onUpdate:modelValue": U[2] || (U[2] = (O) => L.value = O),
1142
1142
  variant: "compact",
1143
1143
  disabled: e(r),
1144
1144
  "max-files": 1,
@@ -1148,8 +1148,8 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1148
1148
  }, null, 8, ["modelValue", "disabled", "title"]),
1149
1149
  v(e(V), {
1150
1150
  variant: "primary",
1151
- disabled: e(r) || !N.value.length,
1152
- onClick: B
1151
+ disabled: e(r) || !L.value.length,
1152
+ onClick: N
1153
1153
  }, {
1154
1154
  default: n(() => [
1155
1155
  h(s(i.value.upload), 1)
@@ -1423,7 +1423,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1423
1423
  role: "status"
1424
1424
  }, {
1425
1425
  default: n(() => [
1426
- h(s(e(Ne)(a.value, t.ctx.locale)), 1)
1426
+ h(s(e(Le)(a.value, t.ctx.locale)), 1)
1427
1427
  ]),
1428
1428
  _: 1
1429
1429
  })) : b("", !0),
@@ -1541,10 +1541,10 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1541
1541
  P || (r.value = !1);
1542
1542
  }
1543
1543
  }
1544
- const N = _(() => !!i.value?.canManage && !!i.value.entry && i.value.entry !== "registered"), te = _(() => {
1544
+ const L = _(() => !!i.value?.canManage && !!i.value.entry && i.value.entry !== "registered"), te = _(() => {
1545
1545
  const R = i.value;
1546
1546
  if (R) {
1547
- if (N.value) return R.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
1547
+ if (L.value) return R.entry === "unregistered" ? a.entryOff : a.cleanupRequired;
1548
1548
  if (R.state !== "active")
1549
1549
  return R.canManage ? a.inactive : R.controlPanel ? void 0 : a.askAdmin;
1550
1550
  }
@@ -1553,7 +1553,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1553
1553
  const R = await m.portal.register();
1554
1554
  return R.canManage && R.entry === "registered" && R.state === "inactive" ? (w(R), m.portal.apply(R.alias || R.defaultAlias)) : R;
1555
1555
  }
1556
- function B() {
1556
+ function N() {
1557
1557
  !r.value && !p.value && m.portal.status().then(w, () => {
1558
1558
  }).finally(() => {
1559
1559
  P || (f.value = !1);
@@ -1562,7 +1562,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1562
1562
  function K() {
1563
1563
  x ? d.value = !0 : T(() => m.portal.unregister());
1564
1564
  }
1565
- async function L() {
1565
+ async function B() {
1566
1566
  if (d.value = !1, !r.value) {
1567
1567
  r.value = !0, p.value = "removalUnconfirmed", oa.set(m.portal, p.value);
1568
1568
  try {
@@ -1574,7 +1574,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1574
1574
  }
1575
1575
  }
1576
1576
  return Se(() => {
1577
- o.subscribe?.(B), B();
1577
+ o.subscribe?.(N), N();
1578
1578
  }), we(() => {
1579
1579
  P = !0;
1580
1580
  }), (R, A) => (l(), $(oe, null, [
@@ -1627,7 +1627,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1627
1627
  ]),
1628
1628
  _: 1
1629
1629
  }, 8, ["label"])) : b("", !0),
1630
- i.value.canManage && !N.value ? (l(), g(e(Me), {
1630
+ i.value.canManage && !L.value ? (l(), g(e(Me), {
1631
1631
  key: 1,
1632
1632
  onSubmit: A[3] || (A[3] = qe((q) => T(() => t.portal.apply(u.value)), ["prevent"]))
1633
1633
  }, {
@@ -1730,7 +1730,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1730
1730
  ]),
1731
1731
  _: 2
1732
1732
  }, [
1733
- i.value && N.value ? {
1733
+ i.value && L.value ? {
1734
1734
  name: "footer",
1735
1735
  fn: n(() => [
1736
1736
  i.value.entry === "unregistered" ? (l(), g(e(V), {
@@ -1792,7 +1792,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1792
1792
  v(e(V), {
1793
1793
  variant: "danger",
1794
1794
  disabled: r.value,
1795
- onClick: L
1795
+ onClick: B
1796
1796
  }, {
1797
1797
  default: n(() => [
1798
1798
  h(s(e(a).unregister), 1)
@@ -1804,10 +1804,10 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1804
1804
  }, 8, ["open", "title", "description", "close-label"])
1805
1805
  ], 64));
1806
1806
  }
1807
- }), Ul = ["aria-busy"], Vl = { role: "alert" }, Nl = {
1807
+ }), Ul = ["aria-busy"], Vl = { role: "alert" }, Ll = {
1808
1808
  key: 2,
1809
1809
  role: "status"
1810
- }, Bl = { role: "alert" }, Ll = { role: "status" }, Ol = /* @__PURE__ */ fe({
1810
+ }, Nl = { role: "alert" }, Bl = { role: "status" }, Ol = /* @__PURE__ */ fe({
1811
1811
  __name: "LoginPage",
1812
1812
  props: {
1813
1813
  session: {},
@@ -1878,14 +1878,14 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1878
1878
  S("span", Vl, s(t.session.denied.value.message), 1)
1879
1879
  ]),
1880
1880
  _: 1
1881
- })) : t.session.notice.value ? (l(), $("p", Nl, s(o.value.notices[t.session.notice.value]), 1)) : b("", !0),
1881
+ })) : t.session.notice.value ? (l(), $("p", Ll, s(o.value.notices[t.session.notice.value]), 1)) : b("", !0),
1882
1882
  f.value && !t.session.denied.value ? (l(), g(e(j), {
1883
1883
  key: 3,
1884
1884
  tone: "danger",
1885
1885
  title: o.value.failedTitle
1886
1886
  }, {
1887
1887
  default: n(() => [
1888
- S("span", Bl, s(f.value), 1)
1888
+ S("span", Nl, s(f.value), 1)
1889
1889
  ]),
1890
1890
  _: 1
1891
1891
  }, 8, ["title"])) : b("", !0),
@@ -1900,7 +1900,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1900
1900
  default: n(() => [
1901
1901
  v(e(ze), {
1902
1902
  modelValue: a.value,
1903
- "onUpdate:modelValue": T[0] || (T[0] = (N) => a.value = N),
1903
+ "onUpdate:modelValue": T[0] || (T[0] = (L) => a.value = L),
1904
1904
  autocomplete: "username",
1905
1905
  disabled: c.value || r.value || !p.value
1906
1906
  }, null, 8, ["modelValue", "disabled"])
@@ -1908,7 +1908,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1908
1908
  _: 1
1909
1909
  }, 8, ["label"]),
1910
1910
  r.value ? (l(), $(oe, { key: 1 }, [
1911
- S("p", Ll, s(o.value.otpPrompt), 1),
1911
+ S("p", Bl, s(o.value.otpPrompt), 1),
1912
1912
  S("div", {
1913
1913
  ref_key: "otpField",
1914
1914
  ref: d
@@ -1919,7 +1919,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1919
1919
  default: n(() => [
1920
1920
  v(e(ze), {
1921
1921
  modelValue: u.value,
1922
- "onUpdate:modelValue": T[2] || (T[2] = (N) => u.value = N),
1922
+ "onUpdate:modelValue": T[2] || (T[2] = (L) => u.value = L),
1923
1923
  inputmode: "numeric",
1924
1924
  autocomplete: "one-time-code",
1925
1925
  disabled: c.value
@@ -1935,7 +1935,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
1935
1935
  default: n(() => [
1936
1936
  v(e(ze), {
1937
1937
  modelValue: i.value,
1938
- "onUpdate:modelValue": T[1] || (T[1] = (N) => i.value = N),
1938
+ "onUpdate:modelValue": T[1] || (T[1] = (L) => i.value = L),
1939
1939
  type: "password",
1940
1940
  autocomplete: "current-password",
1941
1941
  disabled: c.value || !p.value
@@ -2025,15 +2025,15 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2025
2025
  ctx: {}
2026
2026
  },
2027
2027
  setup(t, { expose: m }) {
2028
- const o = t, a = _(() => Wa(o.ctx.locale)), i = (z, W) => Je(z, W, o.ctx.locale), u = y(), r = y([]), c = y(), f = y(!1), d = y(!1), p = y([]), x = y(), P = y(!1), w = y("3600"), C = y(), E = y(), k = y(), T = y(!1), N = y(), te = _(() => !u.value && !c.value && !f.value && !N.value), F = y(!1), Y = y(), B = y(""), K = y(""), L = Ga(o.ctx);
2028
+ const o = t, a = _(() => Wa(o.ctx.locale)), i = (z, W) => Je(z, W, o.ctx.locale), u = y(), r = y([]), c = y(), f = y(!1), d = y(!1), p = y([]), x = y(), P = y(!1), w = y("3600"), C = y(), E = y(), k = y(), T = y(!1), L = y(), te = _(() => !u.value && !c.value && !f.value && !L.value), F = y(!1), Y = y(), N = y(""), K = y(""), B = Ga(o.ctx);
2029
2029
  let R, A = !1;
2030
2030
  const q = (z) => !["queued", "running"].includes(z.state), M = (z) => q(z) && z.state !== "paused", se = (z) => z.state === "running" && z.pauseRequested, H = (z) => se(z) ? a.value.pausing : a.value[`state_${z.state}`], G = (z) => se(z) ? "warning" : { queued: "info", running: "info", paused: "warning", succeeded: "success", failed: "danger", canceled: "neutral", interrupted: "danger" }[z.state];
2031
2031
  async function le(z, W, I = !1) {
2032
2032
  try {
2033
2033
  return await o.ctx.call(z, W);
2034
2034
  } catch (ve) {
2035
- if (A || I && (N.value = Ce(ve))) return;
2036
- ve?.code === "unsupported" ? (f.value = !0, r.value = [], p.value = [], x.value = void 0, C.value = void 0, E.value = void 0, u.value = void 0, k.value = void 0, Y.value = void 0, B.value && URL.revokeObjectURL(B.value), B.value = "") : A || (c.value = ve);
2035
+ if (A || I && (L.value = Ce(ve))) return;
2036
+ ve?.code === "unsupported" ? (f.value = !0, r.value = [], p.value = [], x.value = void 0, C.value = void 0, E.value = void 0, u.value = void 0, k.value = void 0, Y.value = void 0, N.value && URL.revokeObjectURL(N.value), N.value = "") : A || (c.value = ve);
2037
2037
  return;
2038
2038
  }
2039
2039
  }
@@ -2043,7 +2043,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2043
2043
  try {
2044
2044
  const z = await le("bg.status", void 0, !0);
2045
2045
  if (!z || A) return;
2046
- if (N.value = void 0, !z.limits || typeof z.admin != "boolean") {
2046
+ if (L.value = void 0, !z.limits || typeof z.admin != "boolean") {
2047
2047
  c.value = { code: "unavailable" };
2048
2048
  return;
2049
2049
  }
@@ -2098,14 +2098,14 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2098
2098
  });
2099
2099
  async function ce(z) {
2100
2100
  const W = await le("bg.jobs.result", { id: z.id });
2101
- !W || A || (B.value && URL.revokeObjectURL(B.value), B.value = URL.createObjectURL(new Blob([JSON.stringify(W.result, null, 2)], { type: "application/json" })), K.value = `${z.name || z.id}.sha256.json`);
2101
+ !W || A || (N.value && URL.revokeObjectURL(N.value), N.value = URL.createObjectURL(new Blob([JSON.stringify(W.result, null, 2)], { type: "application/json" })), K.value = `${z.name || z.id}.sha256.json`);
2102
2102
  }
2103
- return Ke(() => N.value, re), m({ refresh: re }), Se(() => {
2103
+ return Ke(() => L.value, re), m({ refresh: re }), Se(() => {
2104
2104
  re().then(() => {
2105
2105
  (p.value.some((z) => z.enabled) || r.value.some((z) => !q(z))) && ee();
2106
2106
  });
2107
2107
  }), we(() => {
2108
- A = !0, L.dispose(), R && clearInterval(R), B.value && URL.revokeObjectURL(B.value);
2108
+ A = !0, B.dispose(), R && clearInterval(R), N.value && URL.revokeObjectURL(N.value);
2109
2109
  }), (z, W) => (l(), g(e(ke), {
2110
2110
  "aria-busy": d.value || T.value || te.value,
2111
2111
  title: a.value.title,
@@ -2123,13 +2123,13 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2123
2123
  ]),
2124
2124
  _: 1
2125
2125
  })) : (l(), $(oe, { key: 1 }, [
2126
- N.value ? (l(), g(e(j), {
2126
+ L.value ? (l(), g(e(j), {
2127
2127
  key: 0,
2128
2128
  tone: "info",
2129
2129
  role: "status"
2130
2130
  }, {
2131
2131
  default: n(() => [
2132
- h(s(e(Ne)(N.value, t.ctx.locale)), 1)
2132
+ h(s(e(Le)(L.value, t.ctx.locale)), 1)
2133
2133
  ]),
2134
2134
  _: 1
2135
2135
  })) : b("", !0),
@@ -2212,7 +2212,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2212
2212
  "onUpdate:open": W[1] || (W[1] = (I) => F.value = I),
2213
2213
  locale: t.ctx.locale,
2214
2214
  name: t.ctx.displayName,
2215
- provider: e(L),
2215
+ provider: e(B),
2216
2216
  mode: "file",
2217
2217
  title: a.value.pickerTitle,
2218
2218
  description: a.value.pickerConsent,
@@ -2561,9 +2561,9 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2561
2561
  ]),
2562
2562
  _: 1
2563
2563
  }, 8, ["title", "description"]),
2564
- B.value ? (l(), g(e(ua), {
2564
+ N.value ? (l(), g(e(ua), {
2565
2565
  key: 4,
2566
- href: B.value,
2566
+ href: N.value,
2567
2567
  download: K.value
2568
2568
  }, {
2569
2569
  default: n(() => [
@@ -2610,7 +2610,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2610
2610
  }
2611
2611
  }
2612
2612
  const x = _(() => Ce(u.value)), P = _(() => !!m.preload && !!o && (i.value === "ready" || i.value === "checking"));
2613
- return Le(Ua, _(() => P.value && i.value === "checking")), Ke(() => x.value, p), Se(() => {
2613
+ return Be(Ua, _(() => P.value && i.value === "checking")), Ke(() => x.value, p), Se(() => {
2614
2614
  o && (o.subscribe?.((w) => {
2615
2615
  !f && !je(w) && c(w);
2616
2616
  }), d = m.ctx?.reopen(() => {
@@ -2645,10 +2645,10 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2645
2645
  role: "status"
2646
2646
  }, {
2647
2647
  default: n(() => [
2648
- h(s(e(Ne)(x.value, t.locale)), 1)
2648
+ h(s(e(Le)(x.value, t.locale)), 1)
2649
2649
  ]),
2650
2650
  _: 1
2651
- })) : t.admin ? (l(), g(La, {
2651
+ })) : t.admin ? (l(), g(Ba, {
2652
2652
  key: 2,
2653
2653
  admin: !0,
2654
2654
  locale: t.locale,
@@ -2704,12 +2704,12 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2704
2704
  },
2705
2705
  setup(t, { expose: m }) {
2706
2706
  const o = t, a = _(() => Ve(o.ctx.locale)), i = _(() => Ea(o.ctx.locale)), u = Pa(o.ctx), r = y(), c = y([]), f = y([]), d = y(!1), p = y(), x = y(""), P = y(!1), w = y(""), C = y(""), E = y("");
2707
- let k = !1, T, N;
2707
+ let k = !1, T, L;
2708
2708
  const te = y();
2709
2709
  Oe([C, w, E], () => {
2710
- N = void 0;
2710
+ L = void 0;
2711
2711
  }, { flush: "sync" });
2712
- const F = (ee) => ["queued", "running", "waiting_executor"].includes(ee.state), Y = _(() => f.value.some((ee) => ee.state === "waiting_executor")), B = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = _(() => Y.value && B.includes(p.value?.code ?? "")), L = _(() => !r.value && !p.value && !te.value), R = _(() => r.value && r.value.state !== "ready" && !(Y.value && r.value.state === "needs-admin-approval" && B.includes(r.value.reason ?? "")));
2712
+ const F = (ee) => ["queued", "running", "waiting_executor"].includes(ee.state), Y = _(() => f.value.some((ee) => ee.state === "waiting_executor")), N = ["EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT"], K = _(() => Y.value && N.includes(p.value?.code ?? "")), B = _(() => !r.value && !p.value && !te.value), R = _(() => r.value && r.value.state !== "ready" && !(Y.value && r.value.state === "needs-admin-approval" && N.includes(r.value.reason ?? "")));
2713
2713
  async function A() {
2714
2714
  if (k) return;
2715
2715
  const [ee, X, Q] = await Promise.allSettled([o.ctx.call("delegate.status"), o.ctx.call("delegate.list"), o.ctx.call("delegate.jobs.list")]);
@@ -2738,7 +2738,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2738
2738
  const X = await o.ctx.call("delegate.jobs.cancel", { id: ee });
2739
2739
  k || (x.value = X.revocation_pending ? a.value.pending : ""), await A();
2740
2740
  }), G = _(() => r.value?.state === "ready" && !!w.value && !!C.value && !!E.value), le = () => q(async () => {
2741
- G.value && (await o.ctx.call("delegate.jobs.submit", { key: N ?? (N = crypto.randomUUID()), url: C.value, dest: w.value, name: E.value }), k || (C.value = "", E.value = "", w.value = ""), await A());
2741
+ G.value && (await o.ctx.call("delegate.jobs.submit", { key: L ?? (L = crypto.randomUUID()), url: C.value, dest: w.value, name: E.value }), k || (C.value = "", E.value = "", w.value = ""), await A());
2742
2742
  }), re = (ee) => {
2743
2743
  const X = new Date(ee);
2744
2744
  return Number.isNaN(X.getTime()) ? "—" : X.toLocaleString(o.ctx.locale);
@@ -2753,7 +2753,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2753
2753
  title: a.value.title,
2754
2754
  description: a.value.help,
2755
2755
  collapsible: !1,
2756
- "aria-busy": d.value || L.value,
2756
+ "aria-busy": d.value || B.value,
2757
2757
  class: "delegate-panel"
2758
2758
  }, {
2759
2759
  default: n(() => [
@@ -2773,7 +2773,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2773
2773
  role: "status"
2774
2774
  }, {
2775
2775
  default: n(() => [
2776
- h(s(e(Ne)(te.value, t.ctx.locale)), 1)
2776
+ h(s(e(Le)(te.value, t.ctx.locale)), 1)
2777
2777
  ]),
2778
2778
  _: 1
2779
2779
  })) : b("", !0),
@@ -2863,7 +2863,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2863
2863
  class: "delegate-group"
2864
2864
  }, {
2865
2865
  default: n(() => [
2866
- L.value ? (l(), $("p", xn, [
2866
+ B.value ? (l(), $("p", xn, [
2867
2867
  v(e(Fe), {
2868
2868
  width: "12rem",
2869
2869
  height: "20px"
@@ -2898,7 +2898,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2898
2898
  class: "delegate-group"
2899
2899
  }, {
2900
2900
  default: n(() => [
2901
- L.value ? (l(), $("p", En, [
2901
+ B.value ? (l(), $("p", En, [
2902
2902
  v(e(Fe), {
2903
2903
  width: "12rem",
2904
2904
  height: "20px"
@@ -2938,10 +2938,10 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2938
2938
  }, Vn = {
2939
2939
  key: 0,
2940
2940
  class: "save-reason"
2941
- }, Nn = { class: "save-alert" }, Bn = {
2941
+ }, Ln = { class: "save-alert" }, Nn = {
2942
2942
  key: 0,
2943
2943
  class: "save-help"
2944
- }, Ln = { class: "save-actions" }, On = {
2944
+ }, Bn = { class: "save-actions" }, On = {
2945
2945
  key: 1,
2946
2946
  class: "save-none"
2947
2947
  }, Fn = /* @__PURE__ */ fe({
@@ -2957,13 +2957,13 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2957
2957
  },
2958
2958
  emits: ["authorized", "confirmed", "destinations"],
2959
2959
  setup(t, { expose: m, emit: o }) {
2960
- const a = t, i = o, u = _(() => fa(a.locale)), r = _(() => Ve(a.locale)), c = Ee(We, void 0), f = _(() => a.ctx ?? (c?.call ? { call: c.call.bind(c) } : void 0)), d = Ba({ get admin() {
2960
+ const a = t, i = o, u = _(() => fa(a.locale)), r = _(() => Ve(a.locale)), c = Ee(We, void 0), f = _(() => a.ctx ?? (c?.call ? { call: c.call.bind(c) } : void 0)), d = Na({ get admin() {
2961
2961
  return a.admin;
2962
2962
  }, get locale() {
2963
2963
  return a.locale;
2964
2964
  }, get ctx() {
2965
2965
  return f.value;
2966
- } }, J), { password: p, busy: x, confirming: P, failure: w, passwordError: C, scope: E, chosen: k, options: T, dynamic: N, canConfirm: te } = d, F = y(), Y = y([]), B = y(!1), K = y(!1), L = y(), R = y(!1), A = y(!1), q = y(!1), M = y(""), se = y(), H = _(() => se.value ?? (B.value ? Ce(d.status.value) : void 0));
2966
+ } }, J), { password: p, busy: x, confirming: P, failure: w, passwordError: C, scope: E, chosen: k, options: T, dynamic: L, canConfirm: te } = d, F = y(), Y = y([]), N = y(!1), K = y(!1), B = y(), R = y(!1), A = y(!1), q = y(!1), M = y(""), se = y(), H = _(() => se.value ?? (N.value ? Ce(d.status.value) : void 0));
2967
2967
  let G = !1;
2968
2968
  async function le() {
2969
2969
  let ue;
@@ -2972,19 +2972,19 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2972
2972
  } catch (ae) {
2973
2973
  const Re = Ce(ae);
2974
2974
  if (!Re && ae?.code !== "EXECUTOR_UNAVAILABLE") throw ae;
2975
- G || (se.value = Re, B.value = !Re, F.value = void 0, Y.value = []);
2975
+ G || (se.value = Re, N.value = !Re, F.value = void 0, Y.value = []);
2976
2976
  return;
2977
2977
  }
2978
2978
  const pe = await Promise.all((a.picker?.keys ?? []).map((ae) => a.sdk.destination(ae)));
2979
- G || (se.value = void 0, B.value = !1, F.value = ue, Y.value = pe, i("destinations", pe));
2979
+ G || (se.value = void 0, N.value = !1, F.value = ue, Y.value = pe, i("destinations", pe));
2980
2980
  }
2981
2981
  async function re(ue) {
2982
2982
  if (!(G || K.value)) {
2983
- K.value = !0, L.value = void 0, R.value = !1;
2983
+ K.value = !0, B.value = void 0, R.value = !1;
2984
2984
  try {
2985
2985
  await ue();
2986
2986
  } catch (pe) {
2987
- G || (L.value = pe);
2987
+ G || (B.value = pe);
2988
2988
  } finally {
2989
2989
  G || (K.value = !1);
2990
2990
  }
@@ -2996,9 +2996,9 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
2996
2996
  i("authorized", ue), ee();
2997
2997
  }
2998
2998
  function de(ue) {
2999
- G || (L.value = ue, R.value = !0);
2999
+ G || (B.value = ue, R.value = !0);
3000
3000
  }
3001
- const he = _(() => R.value ? a.pickerErrorText?.(L.value) ?? Ye(L.value, u.value, "select", a.locale, a.ctx?.displayName) : Ye(L.value, u.value, "save", a.locale, a.ctx?.displayName)), Ae = (ue) => re(async () => {
3001
+ const he = _(() => R.value ? a.pickerErrorText?.(B.value) ?? Ye(B.value, u.value, "select", a.locale, a.ctx?.displayName) : Ye(B.value, u.value, "save", a.locale, a.ctx?.displayName)), Ae = (ue) => re(async () => {
3002
3002
  if ((await a.sdk.revoke({ delegation_id: ue }))?.revoked !== !0) throw { code: "commit-uncertain" };
3003
3003
  await le();
3004
3004
  }), _e = () => re(async () => {
@@ -3012,7 +3012,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3012
3012
  if (G) return;
3013
3013
  const ue = await a.sdk.status(), pe = E.value?.selection;
3014
3014
  if (!G) {
3015
- if (N.value) {
3015
+ if (L.value) {
3016
3016
  const ae = ue.selection;
3017
3017
  if (!pe || !ae || ae.scope !== k.value || ae.scope !== pe.scope || ae.generation !== pe.generation || ae.root !== pe.root) throw { code: "commit-uncertain" };
3018
3018
  const Re = M.value ? [M.value] : a.picker?.keys ?? [];
@@ -3034,9 +3034,9 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3034
3034
  });
3035
3035
  }
3036
3036
  function ie(ue) {
3037
- M.value = ue, a.admin && N.value ? A.value = !0 : q.value = !0;
3037
+ M.value = ue, a.admin && L.value ? A.value = !0 : q.value = !0;
3038
3038
  }
3039
- const ne = _(() => F.value?.selection), ye = _(() => !F.value && !B.value && !L.value && !H.value), Pe = _(() => B.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !ne.value), D = _(() => a.admin && B.value && d.status.value?.state === "blocked" && !d.status.value.retry), U = _(() => !!F.value && !Pe.value && !F.value.disabled), O = _(() => a.admin && (Pe.value || B.value && !!d.status.value?.retry)), Z = _(() => a.picker ? ne.value ? Za(a.picker.provider, ne.value.root) : F.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ce = (ue) => a.picker?.labels?.[ue] ?? u.value.folder, z = _(() => {
3039
+ const ne = _(() => F.value?.selection), ye = _(() => !F.value && !N.value && !B.value && !H.value), Pe = _(() => N.value && (!a.admin || d.status.value?.state !== "blocked") || F.value?.scopeMode === "install-selected" && !ne.value), D = _(() => a.admin && N.value && d.status.value?.state === "blocked" && !d.status.value.retry), U = _(() => !!F.value && !Pe.value && !F.value.disabled), O = _(() => a.admin && (Pe.value || N.value && !!d.status.value?.retry)), Z = _(() => a.picker ? ne.value ? Za(a.picker.provider, ne.value.root) : F.value?.scopeMode === "install-selected" ? void 0 : a.picker.provider : void 0), ce = (ue) => a.picker?.labels?.[ue] ?? u.value.folder, z = _(() => {
3040
3040
  const ue = w.value;
3041
3041
  return !ue || "confirm" in ue ? "" : ue.code === "session_ended" ? r.value.session : d.explain(ue) ?? r.value.setupError;
3042
3042
  }), W = _(() => a.admin && Pe.value && !A.value), I = _(() => x.value || K.value || d.error.value || !te.value);
@@ -3074,11 +3074,11 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3074
3074
  role: "status"
3075
3075
  }, {
3076
3076
  default: n(() => [
3077
- h(s(e(Ne)(H.value, t.locale)), 1)
3077
+ h(s(e(Le)(H.value, t.locale)), 1)
3078
3078
  ]),
3079
3079
  _: 1
3080
3080
  })) : (l(), $(oe, { key: 2 }, [
3081
- L.value ? (l(), g(e(j), {
3081
+ B.value ? (l(), g(e(j), {
3082
3082
  key: 0,
3083
3083
  tone: "danger",
3084
3084
  role: "alert"
@@ -3155,7 +3155,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3155
3155
  tone: "warning"
3156
3156
  }, {
3157
3157
  default: n(() => [
3158
- S("span", Nn, [
3158
+ S("span", Ln, [
3159
3159
  S("span", null, s(u.value.disabled), 1),
3160
3160
  t.admin ? (l(), g(e(V), {
3161
3161
  key: 0,
@@ -3190,8 +3190,8 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3190
3190
  onSubmit: qe(e(d).submit, ["prevent"])
3191
3191
  }, {
3192
3192
  default: n(() => [
3193
- A.value ? (l(), $("p", Bn, s(u.value.changeHelp), 1)) : b("", !0),
3194
- e(N) ? (l(), g(e($e), {
3193
+ A.value ? (l(), $("p", Nn, s(u.value.changeHelp), 1)) : b("", !0),
3194
+ e(L) ? (l(), g(e($e), {
3195
3195
  key: 1,
3196
3196
  label: u.value.folder,
3197
3197
  description: W.value ? u.value.approveHelp : void 0,
@@ -3268,7 +3268,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3268
3268
  "data-save-row": "folder"
3269
3269
  }, {
3270
3270
  default: n(() => [
3271
- S("div", Ln, [
3271
+ S("div", Bn, [
3272
3272
  ae.status === "active" && ae.destination ? (l(), g(e(Ue), {
3273
3273
  key: 0,
3274
3274
  path: ae.destination.path
@@ -3276,7 +3276,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3276
3276
  v(e(V), {
3277
3277
  variant: "secondary",
3278
3278
  size: "sm",
3279
- disabled: K.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(N) || e(d).error.value : !Z.value),
3279
+ disabled: K.value || e(x) || (t.admin && F.value?.scopeMode === "install-selected" ? !e(L) || e(d).error.value : !Z.value),
3280
3280
  onClick: (Re) => ie(ae.key)
3281
3281
  }, {
3282
3282
  default: n(() => [
@@ -3399,7 +3399,7 @@ const cl = ["aria-busy", "aria-label"], vl = { class: "file-toolbar file-locatio
3399
3399
  }), ho = /* @__PURE__ */ me(Wn, [["__scopeId", "data-v-05618cb8"]]);
3400
3400
  function Gn(t) {
3401
3401
  const { code: m, message: o } = t ?? {};
3402
- return !!Be(t) || typeof m == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(m) || m === "bad_response" && /HTTP 40[13]\b/.test(String(o));
3402
+ return !!Ne(t) || typeof m == "string" && ["APP_DENIED", "PERMISSION_DENIED", "cross_origin", "origin_required"].includes(m) || m === "bad_response" && /HTTP 40[13]\b/.test(String(o));
3403
3403
  }
3404
3404
  const Ka = /* @__PURE__ */ Symbol("authorization");
3405
3405
  function Jn() {
@@ -3417,7 +3417,7 @@ const Yn = { class: "authorization-content" }, Qn = ["aria-busy", "data-authoriz
3417
3417
  setup(t, { emit: m }) {
3418
3418
  const o = t, a = m, i = y(), u = y(), r = y(!1), c = y(!1), f = y(!1), d = _t();
3419
3419
  let p = [], x = !1, P = 0, w = !1, C, E = 0, k;
3420
- const T = _(() => ja(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")), N = _(() => i.value || u.value), te = _(() => N.value?.state === "authorization_required"), F = _(() => ["helper_untrusted", "cli_untrusted"].includes(N.value?.reason || "")), Y = _(() => te.value && !F.value), B = _(() => N.value?.state === "unavailable" ? Ce(N.value) : void 0), K = _(() => B.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[N.value?.reason ?? ""] ?? "unavailable"), L = _(() => da({ code: N.value?.reason }, o.ctx.locale, o.name ?? o.ctx.displayName)), R = _(() => L.value?.title ?? (N.value ? te.value ? T.value("title") : N.value.state === "ready" ? T.value("ready") : N.value.state === "not_admin" ? T.value("not_admin.title") : N.value.state === "session_expired" ? T.value("session_expired.title") : T.value(K.value + ".title") : T.value("checking"))), A = _(() => L.value?.message ?? (te.value ? T.value("purpose") : N.value?.state === "not_admin" ? T.value("not_admin.body") : N.value?.state === "session_expired" ? T.value("session_expired.body") : N.value?.state === "unavailable" ? T.value(K.value + ".body") : T.value("purpose"))), q = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], M = _(() => q.includes(N.value?.reason || "") ? N.value.reason : "unknown"), se = _(() => F.value ? "next.reinstall" : M.value === "grant_missing" ? "next.install" : M.value === "upgrade_reapproval" || M.value === "grant_incompatible" ? "next.update" : "next.repair");
3420
+ const T = _(() => ja(o.ctx.locale, o.name ?? o.ctx.displayName ?? "")), L = _(() => i.value || u.value), te = _(() => L.value?.state === "authorization_required"), F = _(() => ["helper_untrusted", "cli_untrusted"].includes(L.value?.reason || "")), Y = _(() => te.value && !F.value), N = _(() => L.value?.state === "unavailable" ? Ce(L.value) : void 0), K = _(() => N.value ?? { credential_not_ready: "credential", access_denied: "denied", check_failed: "config" }[L.value?.reason ?? ""] ?? "unavailable"), B = _(() => da({ code: L.value?.reason }, o.ctx.locale, o.name ?? o.ctx.displayName)), R = _(() => B.value?.title ?? (L.value ? te.value ? T.value("title") : L.value.state === "ready" ? T.value("ready") : L.value.state === "not_admin" ? T.value("not_admin.title") : L.value.state === "session_expired" ? T.value("session_expired.title") : T.value(K.value + ".title") : T.value("checking"))), A = _(() => B.value?.message ?? (te.value ? T.value("purpose") : L.value?.state === "not_admin" ? T.value("not_admin.body") : L.value?.state === "session_expired" ? T.value("session_expired.body") : L.value?.state === "unavailable" ? T.value(K.value + ".body") : T.value("purpose"))), q = ["grant_missing", "upgrade_reapproval", "helper_untrusted", "cli_untrusted", "grant_incompatible", "package_identity_changed", "maintenance_task_missing", "maintenance_task_mismatch", "helper_health_rejected", "capability_missing"], M = _(() => q.includes(L.value?.reason || "") ? L.value.reason : "unknown"), se = _(() => F.value ? "next.reinstall" : M.value === "grant_missing" ? "next.install" : M.value === "upgrade_reapproval" || M.value === "grant_incompatible" ? "next.update" : "next.repair");
3421
3421
  function H(J) {
3422
3422
  if (!J || J.command !== "authorization" || J.schema_version !== 1 || !["ready", "authorization_required", "not_admin", "session_expired", "unavailable"].includes(J.state) || J.reason === "upgrade_reapproval" && J.state !== "authorization_required") throw Error("invalid status");
3423
3423
  return J;
@@ -3425,13 +3425,13 @@ const Yn = { class: "authorization-content" }, Qn = ["aria-busy", "data-authoriz
3425
3425
  const G = ["service_unavailable", "request_timeout", "request_canceled", "network", "app_unavailable", "internal", "auth_unavailable", "EXECUTOR_UNAVAILABLE", "EXECUTOR_TIMEOUT", "EXECUTOR_PAUSED"];
3426
3426
  function le(J) {
3427
3427
  const { code: ie } = J ?? {}, ne = Ce(J);
3428
- return ne ? ne === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie : Be(J) ? Be(J) : Gn(J) ? "access_denied" : typeof ie == "string" && G.includes(ie) || ie === void 0 ? "service_unavailable" : "check_failed";
3428
+ return ne ? ne === "stopped" ? "APP_STOPPED" : "APP_STARTING" : ie === "credential_not_ready" ? ie : Ne(J) ? Ne(J) : Gn(J) ? "access_denied" : typeof ie == "string" && G.includes(ie) || ie === void 0 ? "service_unavailable" : "check_failed";
3429
3429
  }
3430
3430
  let re;
3431
3431
  function ee() {
3432
- clearTimeout(C), B.value !== re && (re = B.value, E = 0), B.value && (C = setTimeout(() => {
3432
+ clearTimeout(C), N.value !== re && (re = N.value, E = 0), N.value && (C = setTimeout(() => {
3433
3433
  r.value ? w = !0 : de("status");
3434
- }, ca(E++, B.value)));
3434
+ }, ca(E++, N.value)));
3435
3435
  }
3436
3436
  const X = [1e3, 3e3];
3437
3437
  async function Q(J) {
@@ -3455,7 +3455,7 @@ const Yn = { class: "authorization-content" }, Qn = ["aria-busy", "data-authoriz
3455
3455
  if (x || ie !== P) return;
3456
3456
  i.value = ne, f.value = ne.state !== "ready", ne.state === "ready" && he(!0), ne.state === "ready" && a("ready");
3457
3457
  } catch (ne) {
3458
- !x && ie === P && (i.value = ne.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : u.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: le(ne) }, c.value = !L.value && K.value === "unavailable", f.value = !0);
3458
+ !x && ie === P && (i.value = ne.code === "session_required" ? { command: "authorization", schema_version: 1, state: "session_expired", reason: "session_expired" } : u.value || { command: "authorization", schema_version: 1, state: "unavailable", reason: le(ne) }, c.value = !B.value && K.value === "unavailable", f.value = !0);
3459
3459
  } finally {
3460
3460
  !x && ie === P && (r.value = !1, u.value = void 0, w ? (w = !1, de("status")) : ee());
3461
3461
  }
@@ -3470,7 +3470,7 @@ const Yn = { class: "authorization-content" }, Qn = ["aria-busy", "data-authoriz
3470
3470
  function _e() {
3471
3471
  return i.value?.state === "ready" ? Promise.resolve(!0) : (r.value || (f.value = !0), new Promise((J) => p.push(J)));
3472
3472
  }
3473
- return Le(Ka, { state: _(() => i.value?.state ?? "checking"), requireAuthorization: _e, text: T, busy: r, canManage: () => !!o.ctx.authorization?.canManage?.(), revoke: () => de("revoke") }), Se(() => {
3473
+ return Be(Ka, { state: _(() => i.value?.state ?? "checking"), requireAuthorization: _e, text: T, busy: r, canManage: () => !!o.ctx.authorization?.canManage?.(), revoke: () => de("revoke") }), Se(() => {
3474
3474
  k = o.ctx.reopen(() => {
3475
3475
  r.value ? w = !0 : de("status");
3476
3476
  }), de("status");
@@ -3647,7 +3647,7 @@ export {
3647
3647
  bo as ExecutorApproval,
3648
3648
  tl as ExecutorNotice,
3649
3649
  Ua as ExecutorPreloadKey,
3650
- La as ExecutorSettings,
3650
+ Ba as ExecutorSettings,
3651
3651
  We as ExecutorSetupKey,
3652
3652
  $o as FILE_STATION_APP,
3653
3653
  Ma as FileBrowser,
@@ -3655,69 +3655,73 @@ export {
3655
3655
  So as LIFECYCLE_RETRY_MAX_MS,
3656
3656
  Po as LIFECYCLE_STARTING_RETRY_MAX_MS,
3657
3657
  mo as LoginPage,
3658
+ Eo as MAX_LAUNCH_ROUTE,
3658
3659
  ta as NasPicker,
3659
3660
  co as PageActions,
3660
3661
  Oa as PageActionsTarget,
3661
3662
  vo as PageInfo,
3662
3663
  Fa as PageInfoTarget,
3663
3664
  po as PortalSettings,
3664
- Eo as activePage,
3665
- Be as appDenial,
3665
+ To as activePage,
3666
+ Ne as appDenial,
3666
3667
  Ce as appLifecycle,
3667
3668
  da as appRefusal,
3668
- To as authorizationCatalogs,
3669
+ zo as authorizationCatalogs,
3669
3670
  ja as authorizationCopy,
3670
- zo as backgroundCatalogs,
3671
+ Ao as backgroundCatalogs,
3671
3672
  Wa as backgroundCopy,
3672
3673
  Ja as backgroundErrorCopy,
3673
- Ao as bridgeCatalogs,
3674
- Ro as bridgeErrorCopy,
3675
- Io as catalogs,
3676
- Do as clientTimeout,
3674
+ Ro as bridgeCatalogs,
3675
+ Io as bridgeErrorCopy,
3676
+ Do as catalogs,
3677
+ Uo as clientTimeout,
3677
3678
  Ga as createBackgroundPickerProvider,
3678
- Uo as createBackgroundSaveFacade,
3679
- Vo as createDsmSession,
3679
+ Vo as createBackgroundSaveFacade,
3680
+ Lo as createDsmSession,
3680
3681
  No as createFileTransfers,
3681
3682
  Pa as createNasProvider,
3682
3683
  Bo as createPortalAccess,
3683
3684
  uo as createSession,
3684
- Lo as createStandaloneContext,
3685
- Oo as createStandaloneHost,
3686
- Fo as decodeResponse,
3687
- qo as delegateCatalogs,
3685
+ Oo as createStandaloneContext,
3686
+ Fo as createStandaloneHost,
3687
+ qo as decodeResponse,
3688
+ Mo as delegateCatalogs,
3688
3689
  Ve as delegateCopy,
3689
- Mo as encodeRequest,
3690
+ Ko as dsmLaunchURL,
3691
+ Ho as encodeRequest,
3690
3692
  Qa as errorCopy,
3691
- Ko as fileStationPath,
3693
+ Xo as fileStationPath,
3694
+ Wo as followLaunchRoute,
3692
3695
  Je as format,
3693
- Ho as identityCatalogs,
3696
+ Go as identityCatalogs,
3694
3697
  Xa as identityCopy,
3695
3698
  $a as isFullPage,
3696
3699
  Ea as labelSeparator,
3697
- Ne as lifecycleCopy,
3700
+ Jo as launchRoute,
3701
+ Le as lifecycleCopy,
3698
3702
  Ya as lifecycleRefusal,
3699
3703
  ca as lifecycleRetryDelay,
3700
- Xo as mergeCatalogs,
3701
- Wo as nasCatalogs,
3704
+ Yo as mergeCatalogs,
3705
+ Qo as nasCatalogs,
3702
3706
  Te as nasCopy,
3703
3707
  Sa as nasErrorCopy,
3704
- Go as openFileInFileStation,
3705
- Jo as openFolderInFileStation,
3706
- Yo as portalCatalogs,
3707
- Qo as portalMessages,
3708
- Zo as protocolCodes,
3709
- jo as protocolOps,
3710
- es as protocolSchemas,
3708
+ Zo as openFileInFileStation,
3709
+ jo as openFolderInFileStation,
3710
+ es as portalCatalogs,
3711
+ as as portalMessages,
3712
+ ts as protocolCodes,
3713
+ ls as protocolOps,
3714
+ ns as protocolSchemas,
3711
3715
  ba as requestKey,
3712
- as as saveCatalogs,
3716
+ os as saveCatalogs,
3713
3717
  fa as saveCopy,
3714
3718
  Ye as saveError,
3715
3719
  Za as scopedPicker,
3716
- ts as shellCatalogs,
3720
+ ss as shellCatalogs,
3717
3721
  sa as shellCopy,
3718
- ls as shellPages,
3722
+ is as shellPages,
3719
3723
  va as uiLocale,
3720
- ns as uiLocales,
3724
+ us as uiLocales,
3721
3725
  Jn as useAuthorization,
3722
3726
  _t as useExecutorPreload,
3723
3727
  Va as useExecutorSetup,