@ximatai/muyun-web-app 0.26.26 → 0.26.28

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.
Files changed (69) hide show
  1. package/dist/{BusinessActivityLogView-BPnAoGim.js → BusinessActivityLogView-DlNB97pu.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-CXabZOOM.js → BusinessLogListDrawer-ByiwQP1m.js} +163 -163
  3. package/dist/CodeConfigurationView-91B9dHjD.js +2333 -0
  4. package/dist/{ConfigurationTranslationView-BsWyLeRd.js → ConfigurationTranslationView-ClovkYJt.js} +22 -22
  5. package/dist/{LoginAuditLogView-D3TJdzWM.js → LoginAuditLogView-Blg9giRX.js} +2 -2
  6. package/dist/{ModuleActionManagementView-C9LiwMM3.js → ModuleActionManagementView-Chr_XTJ3.js} +193 -193
  7. package/dist/{ModuleGovernanceView-CYZzHLHa.js → ModuleGovernanceView-BNlRHqSj.js} +4054 -4072
  8. package/dist/{RequestErrorLogView-D85h_q4P.js → RequestErrorLogView-CGczIKQy.js} +2 -2
  9. package/dist/{RoleDetailWorkspaceView-VHvh-_Sj.js → RoleDetailWorkspaceView-CPH9cga9.js} +75 -75
  10. package/dist/{RuntimeLogView-D-MrVfT7.js → RuntimeLogView-DF-1k-9y.js} +60 -60
  11. package/dist/WorkflowAdministrationView-CCXry0G4.js +650 -0
  12. package/dist/WorkflowConfigurationView-BqSfYua2.js +2227 -0
  13. package/dist/{WorkflowWorkbenchView-BN3ckTHB.js → WorkflowWorkbenchView-DUFfO3Gf.js} +248 -248
  14. package/dist/{codeConfiguration-B5OjCYZ6.js → codeConfiguration-BRxveKen.js} +71 -54
  15. package/dist/configurationEditorNavigation-DeXvfJyr.js +15 -0
  16. package/dist/formulaReferences-CKkkdA_R.js +23 -0
  17. package/dist/index.css +1 -1
  18. package/dist/index.js +1239 -1131
  19. package/dist/{moduleMenuWorkspace-DhI4_LpA.js → moduleMenuWorkspace-D_A94ZgR.js} +218 -229
  20. package/dist/{platform-components-Ca8SikTY.js → platform-components-DSMqalgQ.js} +4660 -4538
  21. package/dist/{platform-workbench-DpXhb4F6.js → platform-workbench-B53hydzq.js} +6055 -5909
  22. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
  23. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +37 -3
  25. package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +16 -4
  27. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -0
  28. package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +4 -2
  29. package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
  30. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
  31. package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
  32. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
  33. package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +11 -1
  34. package/dist/types/platform-components/index.d.ts +2 -2
  35. package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
  36. package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
  37. package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +17 -2
  38. package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
  39. package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
  40. package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
  41. package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
  42. package/dist/types/views/businessRuleGovernance.d.ts +1 -2
  43. package/dist/types/views/codeConfiguration.d.ts +29 -1
  44. package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
  45. package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
  46. package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
  47. package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
  48. package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
  49. package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
  50. package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
  51. package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
  52. package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
  53. package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
  54. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  55. package/dist/types/web-contracts/operation.d.ts +7 -0
  56. package/dist/types/web-core/assistantConfirmation.d.ts +4 -4
  57. package/dist/types/web-core/assistantSurface.d.ts +2 -2
  58. package/dist/types/web-core/businessNotificationSession.d.ts +27 -0
  59. package/dist/types/web-core/formulaReferences.d.ts +2 -0
  60. package/dist/types/web-core/index.d.ts +1 -0
  61. package/dist/types/web-core/operationConfirmation.d.ts +13 -8
  62. package/dist/types/web-core/workflow.d.ts +11 -1
  63. package/dist/useWorkflowConfigurationContext-BuBDdUcQ.js +78 -0
  64. package/dist/{workspaceViews-CLOyLZMZ.js → workspaceViews-BSVtjZj1.js} +689 -689
  65. package/package.json +1 -1
  66. package/dist/CodeConfigurationView-B1Lgdnkj.js +0 -1667
  67. package/dist/WorkflowAdministrationView-DHPlIJXF.js +0 -650
  68. package/dist/WorkflowConfigurationView-BhQl7NjM.js +0 -980
  69. package/dist/useWorkflowConfigurationContext-DpzBpKa3.js +0 -66
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { n as e, r as t } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { $ as n, A as r, At as i, B as a, C as o, Ct as s, Dt as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, Mt as v, N as y, Nt as b, O as x, Ot as S, P as C, Q as w, R as ee, S as T, St as te, Tt as ne, U as E, V as D, W as O, X as k, Y as A, Z as j, _ as re, _t as M, a as ie, at as N, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, gt as me, h as he, ht as ge, i as _e, it as ve, j as ye, jt as be, k as xe, kt as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as Oe, o as ke, ot as Ae, p as je, pt as Me, q as Ne, r as Pe, rt as Fe, s as Ie, st as Le, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as Ye, z as Xe } from "./platform-workbench-DpXhb4F6.js";
3
- import { $ as Ze, $a as Qe, $i as $e, $r as et, Aa as tt, Ai as nt, An as rt, Ar as it, B as at, Ba as ot, Bi as st, Bn as ct, Br as lt, Ca as ut, Ci as dt, Cn as ft, Cr as pt, Ct as mt, Da as ht, Di as gt, Dn as _t, Dr as vt, Ea as yt, Ei as bt, En as xt, Er as St, Fa as Ct, Fi as wt, Fr as Tt, Ga as Et, Gi as Dt, Gr as Ot, Ha as kt, Hi as At, Hn as jt, Hr as Mt, Ia as Nt, Ii as Pt, In as Ft, Ir as It, Ja as Lt, Ji as Rt, Jn as zt, Jr as Bt, Jt as Vt, Ka as Ht, Ki as Ut, Kn as Wt, Kr as Gt, La as Kt, Li as qt, Ln as Jt, Lr as Yt, Ma as Xt, Mi as Zt, Mr as Qt, Na as $t, Ni as en, Nr as tn, Oa as nn, Oi as rn, Or as an, Pa as on, Pi as sn, Pn as cn, Pr as ln, Qa as un, Qi as dn, Qn as fn, Qr as pn, Ra as mn, Ri as hn, Rn as gn, Rr as _n, Rt as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, St as Cn, Ta as wn, Ti as Tn, Tr as En, Ua as Dn, Ui as On, Un as kn, Ur as An, Va as jn, Vi as Mn, Vr as Nn, Wa as Pn, Wi as Fn, Wn as In, Wr as Ln, Wt as Rn, Xa as zn, Xi as Bn, Xn as Vn, Xr as Hn, Ya as Un, Yi as Wn, Yn as Gn, Yr as Kn, Za as qn, Zi as Jn, Zn as Yn, Zr as Xn, _a as Zn, _i as Qn, _n as $n, _r as er, aa as tr, ai as nr, an as rr, ao as ir, at as ar, ba as or, bi as sr, bn as cr, br as lr, bt as ur, ca as dr, ci as fr, cn as pr, co as mr, cr as hr, da as gr, di as _r, dn as vr, dr as yr, dt as br, ea as xr, ei as Sr, eo as Cr, et as wr, fa as Tr, fi as Er, fn as Dr, fr as Or, ft as kr, ga as Ar, gi as jr, gr as P, gt as Mr, ha as Nr, hi as Pr, hn as Fr, ht as Ir, ia as Lr, ii as Rr, io as zr, ir as Br, ja as Vr, ji as Hr, jr as Ur, ka as Wr, ki as Gr, kr as Kr, la as qr, li as Jr, lo as Yr, lr as F, ma as Xr, mi as Zr, mn as Qr, mr as $r, mt as ei, n as ti, na as ni, ni as ri, nn as ii, no as I, nr as ai, nt as oi, oa as si, oi as ci, oo as li, pa as ui, pi as di, pn as fi, pt as pi, q as mi, qa as hi, qi as gi, qr as _i, r as vi, ra as yi, ri as bi, rn as xi, ro as Si, rt as Ci, sa as wi, si as Ti, sn as Ei, sr as Di, t as Oi, ta as ki, ti as Ai, tn as ji, to as Mi, ua as Ni, ui as Pi, un as Fi, uo as Ii, ur as Li, ut as Ri, va as zi, vi as Bi, vr as Vi, wa as Hi, wi as Ui, wr as Wi, xa as Gi, xi as Ki, xn as qi, xr as Ji, ya as Yi, yi as Xi, yr as Zi, yt as Qi, z as $i, za as ea, zi as ta, zr as na } from "./platform-components-Ca8SikTY.js";
4
- import { n as ra, t as ia } from "./recordReadEntry-CxDHM44F.js";
5
- import { m as aa } from "./codeConfiguration-B5OjCYZ6.js";
6
- import "./workspaceViews-CLOyLZMZ.js";
7
- import * as oa from "vue";
8
- import { Fragment as sa, computed as L, createBlock as R, createCommentVNode as z, createElementBlock as B, createElementVNode as V, createSlots as ca, createTextVNode as H, createVNode as U, defineAsyncComponent as la, defineComponent as W, guardReactiveProps as ua, inject as da, mergeProps as fa, nextTick as pa, normalizeClass as ma, normalizeProps as ha, normalizeStyle as ga, onBeforeUnmount as _a, onMounted as va, onScopeDispose as ya, openBlock as G, provide as ba, readonly as xa, ref as K, renderList as Sa, renderSlot as Ca, resolveDynamicComponent as wa, toDisplayString as q, unref as J, useId as Ta, vShow as Ea, watch as Y, withCtx as X, withDirectives as Da, withModifiers as Oa } from "vue";
2
+ import { $ as n, A as r, At as i, B as a, C as o, Ct as s, Dt as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, Mt as v, N as y, Nt as b, Ot as ee, P as x, Pt as te, Q as S, R as ne, S as C, St as w, T, Tt as E, U as D, V as re, W as O, X as k, Y as A, Z as j, _ as M, _t as ie, a as ae, at as oe, bt as se, c as ce, ct as le, d as ue, dt as de, et as fe, f as pe, ft as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, jt as xe, k as Se, kt as Ce, l as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, p as Me, pt as Ne, q as Pe, r as Fe, rt as Ie, s as Le, st as Re, t as ze, tt as Be, u as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, xt as Je, y as Ye, yt as Xe, z as Ze } from "./platform-workbench-B53hydzq.js";
3
+ import { $ as Qe, $a as $e, $i as et, $n as tt, $r as nt, Aa as rt, Ai as it, Ar as at, B as ot, Ba as st, Bi as ct, Bn as lt, Br as ut, Bt as dt, Ca as ft, Ci as pt, Cn as mt, Cr as ht, Ct as gt, Da as _t, Di as vt, Dr as yt, Ea as bt, Ei as xt, Er as St, Fa as Ct, Fi as wt, Fr as Tt, Ga as Et, Gi as Dt, Gn as Ot, Gr as kt, Ha as At, Hi as jt, Hn as Mt, Hr as Nt, Ia as Pt, Ii as Ft, In as It, Ir as Lt, Ja as Rt, Ji as zt, Jn as Bt, Jr as Vt, Ka as Ht, Ki as Ut, Kn as Wt, Kr as Gt, Kt, La as qt, Li as Jt, Lr as Yt, Ma as Xt, Mi as Zt, Mn as Qt, Mr as $t, Na as en, Ni as tn, Nr as nn, Oa as rn, Oi as an, On as on, Or as sn, Pa as cn, Pi as ln, Pr as un, Qa as dn, Qi as fn, Qn as pn, Qr as mn, Ra as hn, Ri as gn, Rn as _n, Rr as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, St as Cn, Ta as wn, Ti as Tn, Tn as En, Tr as Dn, Ua as On, Ui as kn, Ur as An, Va as jn, Vi as Mn, Vr as Nn, Wa as Pn, Wi as Fn, Wn as In, Wr as Ln, Xa as Rn, Xi as zn, Xn as Bn, Xr as Vn, Xt as Hn, Ya as Un, Yi as Wn, Yr as Gn, Za as Kn, Zi as qn, Zn as Jn, Zr as Yn, _a as Xn, _i as Zn, _n as Qn, aa as $n, ai as er, an as tr, ao as N, at as nr, ba as rr, bi as ir, br as ar, bt as or, ca as sr, ci as cr, co as lr, da as ur, di as dr, do as fr, dr as P, dt as pr, ea as mr, ei as hr, eo as gr, er as _r, et as vr, fa as yr, fi as br, fn as xr, fo as Sr, fr as Cr, ft as wr, ga as Tr, gi as Er, gn as Dr, gr as Or, gt as kr, ha as Ar, hi as jr, hn as Mr, ht as Nr, ia as Pr, ii as Fr, in as Ir, io as Lr, ir as Rr, ja as zr, ji as Br, jr as Vr, ka as Hr, ki as Ur, kn as Wr, kr as Gr, la as Kr, li as qr, ln as Jr, lo as Yr, lr as Xr, ma as Zr, mi as Qr, mn as $r, mr as ei, mt as ti, n as ni, na as ri, ni as ii, no as ai, nt as oi, oa as si, oi as ci, oo as li, or as ui, pa as di, pi as fi, pn as pi, po as mi, pr as hi, pt as gi, q as _i, qa as vi, qi as yi, qr as bi, r as xi, ra as Si, ri as Ci, rn as wi, ro as Ti, rt as Ei, sa as Di, si as Oi, sn as ki, so as Ai, t as ji, ta as Mi, ti as Ni, to as Pi, ua as Fi, ui as Ii, un as Li, ur as Ri, ut as zi, va as Bi, vi as Vi, vr as F, wa as Hi, wi as Ui, wn as Wi, wr as Gi, xa as Ki, xi as qi, xr as Ji, ya as Yi, yi as Xi, yn as Zi, yr as Qi, yt as $i, z as ea, za as ta, zi as na, zn as ra, zr as ia } from "./platform-components-DSMqalgQ.js";
4
+ import { n as aa, t as oa } from "./recordReadEntry-CxDHM44F.js";
5
+ import { _ as sa } from "./codeConfiguration-BRxveKen.js";
6
+ import "./workspaceViews-BSVtjZj1.js";
7
+ import * as ca from "vue";
8
+ import { Fragment as la, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as ua, createTextVNode as V, createVNode as H, defineAsyncComponent as da, defineComponent as U, guardReactiveProps as fa, inject as pa, mergeProps as ma, nextTick as ha, normalizeClass as ga, normalizeProps as _a, normalizeStyle as va, onBeforeUnmount as ya, onMounted as ba, onScopeDispose as xa, openBlock as W, provide as Sa, readonly as Ca, ref as G, renderList as wa, renderSlot as Ta, resolveDynamicComponent as Ea, toDisplayString as K, unref as q, useId as Da, vShow as Oa, watch as J, withCtx as Y, withDirectives as ka, withModifiers as Aa } from "vue";
9
9
  //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
10
- var ka = class {
10
+ var ja = class {
11
11
  constructor() {
12
12
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
13
13
  }
@@ -21,7 +21,7 @@ var ka = class {
21
21
  }
22
22
  onSubscribe() {}
23
23
  onUnsubscribe() {}
24
- }, Aa = new class extends ka {
24
+ }, Ma = new class extends ja {
25
25
  #e;
26
26
  #t;
27
27
  #n;
@@ -58,13 +58,13 @@ var ka = class {
58
58
  isFocused() {
59
59
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
60
60
  }
61
- }(), ja = {
61
+ }(), Na = {
62
62
  setTimeout: (e, t) => setTimeout(e, t),
63
63
  clearTimeout: (e) => clearTimeout(e),
64
64
  setInterval: (e, t) => setInterval(e, t),
65
65
  clearInterval: (e) => clearInterval(e)
66
- }, Ma = new class {
67
- #e = ja;
66
+ }, Pa = new class {
67
+ #e = Na;
68
68
  #t = !1;
69
69
  setTimeoutProvider(e) {
70
70
  process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
@@ -85,34 +85,34 @@ var ka = class {
85
85
  this.#e.clearInterval(e);
86
86
  }
87
87
  }();
88
- function Na(e) {
88
+ function Fa(e) {
89
89
  setTimeout(e, 0);
90
90
  }
91
91
  //#endregion
92
92
  //#region node_modules/@tanstack/query-core/build/modern/utils.js
93
- var Pa = typeof window > "u" || "Deno" in globalThis;
94
- function Fa() {}
95
- function Ia(e, t) {
93
+ var Ia = typeof window > "u" || "Deno" in globalThis;
94
+ function X() {}
95
+ function La(e, t) {
96
96
  return typeof e == "function" ? e(t) : e;
97
97
  }
98
- function La(e) {
98
+ function Ra(e) {
99
99
  return typeof e == "number" && e >= 0 && e !== Infinity;
100
100
  }
101
- function Ra(e, t) {
102
- return Math.max(e + (t || 0) - Date.now(), 0);
103
- }
104
101
  function za(e, t) {
105
- return typeof e == "function" ? e(t) : e;
102
+ return Math.max(e + (t || 0) - Date.now(), 0);
106
103
  }
107
104
  function Ba(e, t) {
108
105
  return typeof e == "function" ? e(t) : e;
109
106
  }
110
107
  function Va(e, t) {
108
+ return typeof e == "function" ? e(t) : e;
109
+ }
110
+ function Ha(e, t) {
111
111
  let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
112
112
  if (o) {
113
113
  if (r) {
114
- if (t.queryHash !== Ua(o, t.options)) return !1;
115
- } else if (!Ga(t.queryKey, o)) return !1;
114
+ if (t.queryHash !== Wa(o, t.options)) return !1;
115
+ } else if (!Ka(t.queryKey, o)) return !1;
116
116
  }
117
117
  if (n !== "all") {
118
118
  let e = t.isActive();
@@ -120,90 +120,90 @@ function Va(e, t) {
120
120
  }
121
121
  return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
122
122
  }
123
- function Ha(e, t) {
123
+ function Ua(e, t) {
124
124
  let { exact: n, status: r, predicate: i, mutationKey: a } = e;
125
125
  if (a) {
126
126
  if (!t.options.mutationKey) return !1;
127
127
  if (n) {
128
- if (Wa(t.options.mutationKey) !== Wa(a)) return !1;
129
- } else if (!Ga(t.options.mutationKey, a)) return !1;
128
+ if (Ga(t.options.mutationKey) !== Ga(a)) return !1;
129
+ } else if (!Ka(t.options.mutationKey, a)) return !1;
130
130
  }
131
131
  return !(r && t.state.status !== r || i && !i(t));
132
132
  }
133
- function Ua(e, t) {
134
- return (t?.queryKeyHashFn || Wa)(e);
133
+ function Wa(e, t) {
134
+ return (t?.queryKeyHashFn || Ga)(e);
135
135
  }
136
- function Wa(e) {
137
- return JSON.stringify(e, (e, t) => Ya(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
136
+ function Ga(e) {
137
+ return JSON.stringify(e, (e, t) => Xa(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
138
138
  }
139
- function Ga(e, t) {
140
- return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Ga(e[n], t[n])) : !1;
139
+ function Ka(e, t) {
140
+ return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Ka(e[n], t[n])) : !1;
141
141
  }
142
- var Ka = Object.prototype.hasOwnProperty;
143
- function qa(e, t, n = 0) {
142
+ var qa = Object.prototype.hasOwnProperty;
143
+ function Ja(e, t, n = 0) {
144
144
  if (e === t) return e;
145
145
  if (n > 500) return t;
146
- let r = Ja(e) && Ja(t);
147
- if (!r && !(Ya(e) && Ya(t))) return t;
146
+ let r = Ya(e) && Ya(t);
147
+ if (!r && !(Xa(e) && Xa(t))) return t;
148
148
  let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
149
149
  for (let l = 0; l < o; l++) {
150
150
  let o = r ? l : a[l], u = e[o], d = t[o];
151
151
  if (u === d) {
152
- s[o] = u, (r ? l < i : Ka.call(e, o)) && c++;
152
+ s[o] = u, (r ? l < i : qa.call(e, o)) && c++;
153
153
  continue;
154
154
  }
155
155
  if (u === null || d === null || typeof u != "object" || typeof d != "object") {
156
156
  s[o] = d;
157
157
  continue;
158
158
  }
159
- let f = qa(u, d, n + 1);
159
+ let f = Ja(u, d, n + 1);
160
160
  s[o] = f, f === u && c++;
161
161
  }
162
162
  return i === o && c === i ? e : s;
163
163
  }
164
- function Ja(e) {
164
+ function Ya(e) {
165
165
  return Array.isArray(e) && e.length === Object.keys(e).length;
166
166
  }
167
- function Ya(e) {
168
- if (!Xa(e)) return !1;
167
+ function Xa(e) {
168
+ if (!Za(e)) return !1;
169
169
  let t = e.constructor;
170
170
  if (t === void 0) return !0;
171
171
  let n = t.prototype;
172
- return !(!Xa(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
172
+ return !(!Za(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
173
173
  }
174
- function Xa(e) {
174
+ function Za(e) {
175
175
  return Object.prototype.toString.call(e) === "[object Object]";
176
176
  }
177
- function Za(e) {
177
+ function Qa(e) {
178
178
  return new Promise((t) => {
179
- Ma.setTimeout(t, e);
179
+ Pa.setTimeout(t, e);
180
180
  });
181
181
  }
182
- function Qa(e, t, n) {
182
+ function $a(e, t, n) {
183
183
  if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
184
184
  if (n.structuralSharing !== !1) {
185
185
  if (process.env.NODE_ENV !== "production") try {
186
- return qa(e, t);
186
+ return Ja(e, t);
187
187
  } catch (e) {
188
188
  throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
189
189
  }
190
- return qa(e, t);
190
+ return Ja(e, t);
191
191
  }
192
192
  return t;
193
193
  }
194
- function $a(e, t, n = 0) {
194
+ function eo(e, t, n = 0) {
195
195
  let r = [...e, t];
196
196
  return n && r.length > n ? r.slice(1) : r;
197
197
  }
198
- function eo(e, t, n = 0) {
198
+ function to(e, t, n = 0) {
199
199
  let r = [t, ...e];
200
200
  return n && r.length > n ? r.slice(0, -1) : r;
201
201
  }
202
- var to = /* @__PURE__ */ Symbol();
203
- function no(e, t) {
204
- return process.env.NODE_ENV !== "production" && e.queryFn === to && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === to ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
202
+ var no = /* @__PURE__ */ Symbol();
203
+ function ro(e, t) {
204
+ return process.env.NODE_ENV !== "production" && e.queryFn === no && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === no ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
205
205
  }
206
- function ro(e, t, n) {
206
+ function io(e, t, n) {
207
207
  let r = !1, i;
208
208
  return Object.defineProperty(e, "signal", {
209
209
  enumerable: !0,
@@ -212,8 +212,8 @@ function ro(e, t, n) {
212
212
  }
213
213
  //#endregion
214
214
  //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
215
- var io = /* @__PURE__ */ (() => {
216
- let e = () => Pa;
215
+ var ao = /* @__PURE__ */ (() => {
216
+ let e = () => Ia;
217
217
  return {
218
218
  isServer() {
219
219
  return e();
@@ -225,7 +225,7 @@ var io = /* @__PURE__ */ (() => {
225
225
  })();
226
226
  //#endregion
227
227
  //#region node_modules/@tanstack/query-core/build/modern/thenable.js
228
- function ao() {
228
+ function oo() {
229
229
  let e, t, n = new Promise((n, r) => {
230
230
  e = n, t = r;
231
231
  });
@@ -247,13 +247,13 @@ function ao() {
247
247
  }
248
248
  //#endregion
249
249
  //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
250
- var oo = Na;
251
- function so() {
250
+ var so = Fa;
251
+ function co() {
252
252
  let e = [], t = 0, n = (e) => {
253
253
  e();
254
254
  }, r = (e) => {
255
255
  e();
256
- }, i = oo, a = (r) => {
256
+ }, i = so, a = (r) => {
257
257
  t ? e.push(r) : i(() => {
258
258
  n(r);
259
259
  });
@@ -295,7 +295,7 @@ function so() {
295
295
  }
296
296
  };
297
297
  }
298
- var Z = so(), co = new class extends ka {
298
+ var Z = co(), lo = new class extends ja {
299
299
  #e = !0;
300
300
  #t;
301
301
  #n;
@@ -329,28 +329,28 @@ var Z = so(), co = new class extends ka {
329
329
  }();
330
330
  //#endregion
331
331
  //#region node_modules/@tanstack/query-core/build/modern/retryer.js
332
- function lo(e) {
332
+ function uo(e) {
333
333
  return Math.min(1e3 * 2 ** e, 3e4);
334
334
  }
335
- function uo(e) {
336
- return (e ?? "online") !== "online" || co.isOnline();
335
+ function fo(e) {
336
+ return (e ?? "online") !== "online" || lo.isOnline();
337
337
  }
338
- var fo = class extends Error {
338
+ var po = class extends Error {
339
339
  constructor(e) {
340
340
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
341
341
  }
342
342
  };
343
- function po(e) {
344
- let t = !1, n = 0, r, i = ao(), a = () => i.status !== "pending", o = (t) => {
343
+ function mo(e) {
344
+ let t = !1, n = 0, r, i = oo(), a = () => i.status !== "pending", o = (t) => {
345
345
  if (!a()) {
346
- let n = new fo(t);
346
+ let n = new po(t);
347
347
  f(n), e.onCancel?.(n);
348
348
  }
349
349
  }, s = () => {
350
350
  t = !0;
351
351
  }, c = () => {
352
352
  t = !1;
353
- }, l = () => Aa.isFocused() && (e.networkMode === "always" || co.isOnline()) && e.canRun(), u = () => uo(e.networkMode) && e.canRun(), d = (e) => {
353
+ }, l = () => Ma.isFocused() && (e.networkMode === "always" || lo.isOnline()) && e.canRun(), u = () => fo(e.networkMode) && e.canRun(), d = (e) => {
354
354
  a() || (r?.(), i.resolve(e));
355
355
  }, f = (e) => {
356
356
  a() || (r?.(), i.reject(e));
@@ -370,12 +370,12 @@ function po(e) {
370
370
  }
371
371
  Promise.resolve(r).then(d).catch((r) => {
372
372
  if (a()) return;
373
- let i = e.retry ?? (io.isServer() ? 0 : 3), o = e.retryDelay ?? lo, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
373
+ let i = e.retry ?? (ao.isServer() ? 0 : 3), o = e.retryDelay ?? uo, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
374
374
  if (t || !c) {
375
375
  f(r);
376
376
  return;
377
377
  }
378
- n++, e.onFail?.(n, r), Za(s).then(() => l() ? void 0 : p()).then(() => {
378
+ n++, e.onFail?.(n, r), Qa(s).then(() => l() ? void 0 : p()).then(() => {
379
379
  t ? f(r) : m();
380
380
  });
381
381
  });
@@ -393,34 +393,34 @@ function po(e) {
393
393
  }
394
394
  //#endregion
395
395
  //#region node_modules/@tanstack/query-core/build/modern/removable.js
396
- var mo = class {
396
+ var ho = class {
397
397
  #e;
398
398
  destroy() {
399
399
  this.clearGcTimeout();
400
400
  }
401
401
  scheduleGc() {
402
- this.clearGcTimeout(), La(this.gcTime) && (this.#e = Ma.setTimeout(() => {
402
+ this.clearGcTimeout(), Ra(this.gcTime) && (this.#e = Pa.setTimeout(() => {
403
403
  this.optionalRemove();
404
404
  }, this.gcTime));
405
405
  }
406
406
  updateGcTime(e) {
407
- this.gcTime = Math.max(this.gcTime || 0, e ?? (io.isServer() ? Infinity : 3e5));
407
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (ao.isServer() ? Infinity : 3e5));
408
408
  }
409
409
  clearGcTimeout() {
410
- this.#e !== void 0 && (Ma.clearTimeout(this.#e), this.#e = void 0);
410
+ this.#e !== void 0 && (Pa.clearTimeout(this.#e), this.#e = void 0);
411
411
  }
412
412
  };
413
413
  //#endregion
414
414
  //#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
415
- function ho(e) {
415
+ function go(e) {
416
416
  return { onFetch: (t, n) => {
417
417
  let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
418
418
  pages: [],
419
419
  pageParams: []
420
420
  }, c = 0, l = async () => {
421
421
  let n = !1, l = (e) => {
422
- ro(e, () => t.signal, () => n = !0);
423
- }, u = no(t.options, t.fetchOptions), d = async (e, r, i) => {
422
+ io(e, () => t.signal, () => n = !0);
423
+ }, u = ro(t.options, t.fetchOptions), d = async (e, r, i) => {
424
424
  if (n) return Promise.reject(t.signal.reason);
425
425
  if (r == null && e.pages.length) return Promise.resolve(e);
426
426
  let a = (() => {
@@ -432,14 +432,14 @@ function ho(e) {
432
432
  meta: t.options.meta
433
433
  };
434
434
  return l(e), e;
435
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? eo : $a;
435
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? to : eo;
436
436
  return {
437
437
  pages: c(e.pages, o, s),
438
438
  pageParams: c(e.pageParams, r, s)
439
439
  };
440
440
  };
441
441
  if (i && a.length) {
442
- let e = i === "backward", t = e ? _o : go, n = {
442
+ let e = i === "backward", t = e ? vo : _o, n = {
443
443
  pages: a,
444
444
  pageParams: o
445
445
  };
@@ -447,7 +447,7 @@ function ho(e) {
447
447
  } else {
448
448
  let t = e ?? a.length;
449
449
  do {
450
- let e = c === 0 ? o[0] ?? r.initialPageParam : go(r, s);
450
+ let e = c === 0 ? o[0] ?? r.initialPageParam : _o(r, s);
451
451
  if (c > 0 && e == null) break;
452
452
  s = await d(s, e), c++;
453
453
  } while (c < t);
@@ -462,16 +462,16 @@ function ho(e) {
462
462
  }, n) : l;
463
463
  } };
464
464
  }
465
- function go(e, { pages: t, pageParams: n }) {
465
+ function _o(e, { pages: t, pageParams: n }) {
466
466
  let r = t.length - 1;
467
467
  return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
468
468
  }
469
- function _o(e, { pages: t, pageParams: n }) {
469
+ function vo(e, { pages: t, pageParams: n }) {
470
470
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
471
471
  }
472
472
  //#endregion
473
473
  //#region node_modules/@tanstack/query-core/build/modern/query.js
474
- var vo = class extends mo {
474
+ var yo = class extends ho {
475
475
  #e;
476
476
  #t;
477
477
  #n;
@@ -481,7 +481,7 @@ var vo = class extends mo {
481
481
  #o;
482
482
  #s;
483
483
  constructor(e) {
484
- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = xo(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
484
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = So(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
485
485
  }
486
486
  get meta() {
487
487
  return this.options.meta;
@@ -497,15 +497,15 @@ var vo = class extends mo {
497
497
  ...this.#o,
498
498
  ...e
499
499
  }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
500
- let e = xo(this.options);
501
- e.data !== void 0 && (this.setState(bo(e.data, e.dataUpdatedAt)), this.#t = e);
500
+ let e = So(this.options);
501
+ e.data !== void 0 && (this.setState(xo(e.data, e.dataUpdatedAt)), this.#t = e);
502
502
  }
503
503
  }
504
504
  optionalRemove() {
505
505
  !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
506
506
  }
507
507
  setData(e, t) {
508
- let n = Qa(this.state.data, e, this.options);
508
+ let n = $a(this.state.data, e, this.options);
509
509
  return this.#l({
510
510
  data: n,
511
511
  type: "success",
@@ -521,7 +521,7 @@ var vo = class extends mo {
521
521
  }
522
522
  cancel(e) {
523
523
  let t = this.#a?.promise;
524
- return this.#a?.cancel(e), t ? t.then(Fa).catch(Fa) : Promise.resolve();
524
+ return this.#a?.cancel(e), t ? t.then(X).catch(X) : Promise.resolve();
525
525
  }
526
526
  destroy() {
527
527
  super.destroy(), this.cancel({ silent: !0 });
@@ -533,22 +533,22 @@ var vo = class extends mo {
533
533
  this.destroy(), this.setState(this.resetState);
534
534
  }
535
535
  isActive() {
536
- return this.observers.some((e) => Ba(e.options.enabled, this) !== !1);
536
+ return this.observers.some((e) => Va(e.options.enabled, this) !== !1);
537
537
  }
538
538
  isDisabled() {
539
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === to || !this.isFetched();
539
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === no || !this.isFetched();
540
540
  }
541
541
  isFetched() {
542
542
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
543
543
  }
544
544
  isStatic() {
545
- return this.getObserversCount() > 0 && this.observers.some((e) => za(e.options.staleTime, this) === "static");
545
+ return this.getObserversCount() > 0 && this.observers.some((e) => Ba(e.options.staleTime, this) === "static");
546
546
  }
547
547
  isStale() {
548
548
  return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
549
549
  }
550
550
  isStaleByTime(e = 0) {
551
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Ra(this.state.dataUpdatedAt, e);
551
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !za(this.state.dataUpdatedAt, e);
552
552
  }
553
553
  onFocus() {
554
554
  this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -595,7 +595,7 @@ var vo = class extends mo {
595
595
  get: () => (this.#s = !0, n.signal)
596
596
  });
597
597
  }, i = () => {
598
- let e = no(this.options, t), n = (() => {
598
+ let e = ro(this.options, t), n = (() => {
599
599
  let e = {
600
600
  client: this.#i,
601
601
  queryKey: this.queryKey,
@@ -615,14 +615,14 @@ var vo = class extends mo {
615
615
  };
616
616
  return r(e), e;
617
617
  })();
618
- (this.#e === "infinite" ? ho(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
618
+ (this.#e === "infinite" ? go(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
619
619
  type: "fetch",
620
620
  meta: a.fetchOptions?.meta
621
- }), this.#a = po({
621
+ }), this.#a = mo({
622
622
  initialPromise: t?.initialPromise,
623
623
  fn: a.fetchFn,
624
624
  onCancel: (e) => {
625
- e instanceof fo && e.revert && this.setState({
625
+ e instanceof po && e.revert && this.setState({
626
626
  ...this.#n,
627
627
  fetchStatus: "idle"
628
628
  }), n.abort();
@@ -650,7 +650,7 @@ var vo = class extends mo {
650
650
  if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
651
651
  return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
652
652
  } catch (e) {
653
- if (e instanceof fo) {
653
+ if (e instanceof po) {
654
654
  if (e.silent) return this.#a.promise;
655
655
  if (e.revert) {
656
656
  if (this.state.data === void 0) throw e;
@@ -683,13 +683,13 @@ var vo = class extends mo {
683
683
  };
684
684
  case "fetch": return {
685
685
  ...t,
686
- ...yo(t.data, this.options),
686
+ ...bo(t.data, this.options),
687
687
  fetchMeta: e.meta ?? null
688
688
  };
689
689
  case "success":
690
690
  let n = {
691
691
  ...t,
692
- ...bo(e.data, e.dataUpdatedAt),
692
+ ...xo(e.data, e.dataUpdatedAt),
693
693
  dataUpdateCount: t.dataUpdateCount + 1,
694
694
  ...!e.manual && {
695
695
  fetchStatus: "idle",
@@ -732,18 +732,18 @@ var vo = class extends mo {
732
732
  });
733
733
  }
734
734
  };
735
- function yo(e, t) {
735
+ function bo(e, t) {
736
736
  return {
737
737
  fetchFailureCount: 0,
738
738
  fetchFailureReason: null,
739
- fetchStatus: uo(t.networkMode) ? "fetching" : "paused",
739
+ fetchStatus: fo(t.networkMode) ? "fetching" : "paused",
740
740
  ...e === void 0 && {
741
741
  error: null,
742
742
  status: "pending"
743
743
  }
744
744
  };
745
745
  }
746
- function bo(e, t) {
746
+ function xo(e, t) {
747
747
  return {
748
748
  data: e,
749
749
  dataUpdatedAt: t ?? Date.now(),
@@ -752,7 +752,7 @@ function bo(e, t) {
752
752
  status: "success"
753
753
  };
754
754
  }
755
- function xo(e) {
755
+ function So(e) {
756
756
  let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
757
757
  return {
758
758
  data: t,
@@ -771,13 +771,13 @@ function xo(e) {
771
771
  }
772
772
  //#endregion
773
773
  //#region node_modules/@tanstack/query-core/build/modern/mutation.js
774
- var So = class extends mo {
774
+ var Co = class extends ho {
775
775
  #e;
776
776
  #t;
777
777
  #n;
778
778
  #r;
779
779
  constructor(e) {
780
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Co(), this.setOptions(e.options), this.scheduleGc();
780
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || wo(), this.setOptions(e.options), this.scheduleGc();
781
781
  }
782
782
  setOptions(e) {
783
783
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -813,7 +813,7 @@ var So = class extends mo {
813
813
  meta: this.options.meta,
814
814
  mutationKey: this.options.mutationKey
815
815
  };
816
- this.#r = po({
816
+ this.#r = mo({
817
817
  fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
818
818
  onFail: (e, t) => {
819
819
  this.#i({
@@ -941,7 +941,7 @@ var So = class extends mo {
941
941
  });
942
942
  }
943
943
  };
944
- function Co() {
944
+ function wo() {
945
945
  return {
946
946
  context: void 0,
947
947
  data: void 0,
@@ -956,7 +956,7 @@ function Co() {
956
956
  }
957
957
  //#endregion
958
958
  //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
959
- var wo = class extends ka {
959
+ var To = class extends ja {
960
960
  constructor(e = {}) {
961
961
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
962
962
  }
@@ -964,7 +964,7 @@ var wo = class extends ka {
964
964
  #t;
965
965
  #n;
966
966
  build(e, t, n) {
967
- let r = new So({
967
+ let r = new Co({
968
968
  client: e,
969
969
  mutationCache: this,
970
970
  mutationId: ++this.#n,
@@ -975,7 +975,7 @@ var wo = class extends ka {
975
975
  }
976
976
  add(e) {
977
977
  this.#e.add(e);
978
- let t = To(e);
978
+ let t = Eo(e);
979
979
  if (typeof t == "string") {
980
980
  let n = this.#t.get(t);
981
981
  n ? n.push(e) : this.#t.set(t, [e]);
@@ -987,7 +987,7 @@ var wo = class extends ka {
987
987
  }
988
988
  remove(e) {
989
989
  if (this.#e.delete(e)) {
990
- let t = To(e);
990
+ let t = Eo(e);
991
991
  if (typeof t == "string") {
992
992
  let n = this.#t.get(t);
993
993
  if (n) {
@@ -1004,7 +1004,7 @@ var wo = class extends ka {
1004
1004
  });
1005
1005
  }
1006
1006
  canRun(e) {
1007
- let t = To(e);
1007
+ let t = Eo(e);
1008
1008
  if (typeof t == "string") {
1009
1009
  let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
1010
1010
  return !n || n === e;
@@ -1012,7 +1012,7 @@ var wo = class extends ka {
1012
1012
  return !0;
1013
1013
  }
1014
1014
  runNext(e) {
1015
- let t = To(e);
1015
+ let t = Eo(e);
1016
1016
  return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
1017
1017
  }
1018
1018
  clear() {
@@ -1033,10 +1033,10 @@ var wo = class extends ka {
1033
1033
  exact: !0,
1034
1034
  ...e
1035
1035
  };
1036
- return this.getAll().find((e) => Ha(t, e));
1036
+ return this.getAll().find((e) => Ua(t, e));
1037
1037
  }
1038
1038
  findAll(e = {}) {
1039
- return this.getAll().filter((t) => Ha(e, t));
1039
+ return this.getAll().filter((t) => Ua(e, t));
1040
1040
  }
1041
1041
  notify(e) {
1042
1042
  Z.batch(() => {
@@ -1047,22 +1047,22 @@ var wo = class extends ka {
1047
1047
  }
1048
1048
  resumePausedMutations() {
1049
1049
  let e = this.getAll().filter((e) => e.state.isPaused);
1050
- return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(Fa))));
1050
+ return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(X))));
1051
1051
  }
1052
1052
  };
1053
- function To(e) {
1053
+ function Eo(e) {
1054
1054
  return e.options.scope?.id;
1055
1055
  }
1056
1056
  //#endregion
1057
1057
  //#region node_modules/@tanstack/query-core/build/modern/queryCache.js
1058
- var Eo = class extends ka {
1058
+ var Do = class extends ja {
1059
1059
  constructor(e = {}) {
1060
1060
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1061
1061
  }
1062
1062
  #e;
1063
1063
  build(e, t, n) {
1064
- let r = t.queryKey, i = t.queryHash ?? Ua(r, t), a = this.get(i);
1065
- return a || (a = new vo({
1064
+ let r = t.queryKey, i = t.queryHash ?? Wa(r, t), a = this.get(i);
1065
+ return a || (a = new yo({
1066
1066
  client: e,
1067
1067
  queryKey: r,
1068
1068
  queryHash: i,
@@ -1102,11 +1102,11 @@ var Eo = class extends ka {
1102
1102
  exact: !0,
1103
1103
  ...e
1104
1104
  };
1105
- return this.getAll().find((e) => Va(t, e));
1105
+ return this.getAll().find((e) => Ha(t, e));
1106
1106
  }
1107
1107
  findAll(e = {}) {
1108
1108
  let t = this.getAll();
1109
- return Object.keys(e).length > 0 ? t.filter((t) => Va(e, t)) : t;
1109
+ return Object.keys(e).length > 0 ? t.filter((t) => Ha(e, t)) : t;
1110
1110
  }
1111
1111
  notify(e) {
1112
1112
  Z.batch(() => {
@@ -1129,7 +1129,7 @@ var Eo = class extends ka {
1129
1129
  });
1130
1130
  });
1131
1131
  }
1132
- }, Do = class {
1132
+ }, Oo = class {
1133
1133
  #e;
1134
1134
  #t;
1135
1135
  #n;
@@ -1139,12 +1139,12 @@ var Eo = class extends ka {
1139
1139
  #o;
1140
1140
  #s;
1141
1141
  constructor(e = {}) {
1142
- this.#e = e.queryCache || new Eo(), this.#t = e.mutationCache || new wo(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1142
+ this.#e = e.queryCache || new Do(), this.#t = e.mutationCache || new To(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1143
1143
  }
1144
1144
  mount() {
1145
- this.#a++, this.#a === 1 && (this.#o = Aa.subscribe(async (e) => {
1145
+ this.#a++, this.#a === 1 && (this.#o = Ma.subscribe(async (e) => {
1146
1146
  e && (await this.resumePausedMutations(), this.#e.onFocus());
1147
- }), this.#s = co.subscribe(async (e) => {
1147
+ }), this.#s = lo.subscribe(async (e) => {
1148
1148
  e && (await this.resumePausedMutations(), this.#e.onOnline());
1149
1149
  }));
1150
1150
  }
@@ -1169,13 +1169,13 @@ var Eo = class extends ka {
1169
1169
  }
1170
1170
  ensureQueryData(e) {
1171
1171
  let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
1172
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(za(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1172
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Ba(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1173
1173
  }
1174
1174
  getQueriesData(e) {
1175
1175
  return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
1176
1176
  }
1177
1177
  setQueryData(e, t, n) {
1178
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = Ia(t, i);
1178
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = La(t, i);
1179
1179
  if (a !== void 0) return this.#e.build(this, r).setData(a, {
1180
1180
  ...n,
1181
1181
  manual: !0
@@ -1210,7 +1210,7 @@ var Eo = class extends ka {
1210
1210
  revert: !0,
1211
1211
  ...t
1212
1212
  }, r = Z.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1213
- return Promise.all(r).then(Fa).catch(Fa);
1213
+ return Promise.all(r).then(X).catch(X);
1214
1214
  }
1215
1215
  invalidateQueries(e, t = {}) {
1216
1216
  return Z.batch(() => (this.#e.findAll(e).forEach((e) => {
@@ -1226,30 +1226,30 @@ var Eo = class extends ka {
1226
1226
  cancelRefetch: t.cancelRefetch ?? !0
1227
1227
  }, r = Z.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1228
1228
  let t = e.fetch(void 0, n);
1229
- return n.throwOnError || (t = t.catch(Fa)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1229
+ return n.throwOnError || (t = t.catch(X)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1230
1230
  }));
1231
- return Promise.all(r).then(Fa);
1231
+ return Promise.all(r).then(X);
1232
1232
  }
1233
1233
  fetchQuery(e) {
1234
1234
  let t = this.defaultQueryOptions(e);
1235
1235
  t.retry === void 0 && (t.retry = !1);
1236
1236
  let n = this.#e.build(this, t);
1237
- return n.isStaleByTime(za(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1237
+ return n.isStaleByTime(Ba(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1238
1238
  }
1239
1239
  prefetchQuery(e) {
1240
- return this.fetchQuery(e).then(Fa).catch(Fa);
1240
+ return this.fetchQuery(e).then(X).catch(X);
1241
1241
  }
1242
1242
  fetchInfiniteQuery(e) {
1243
1243
  return e._type = "infinite", this.fetchQuery(e);
1244
1244
  }
1245
1245
  prefetchInfiniteQuery(e) {
1246
- return this.fetchInfiniteQuery(e).then(Fa).catch(Fa);
1246
+ return this.fetchInfiniteQuery(e).then(X).catch(X);
1247
1247
  }
1248
1248
  ensureInfiniteQueryData(e) {
1249
1249
  return e._type = "infinite", this.ensureQueryData(e);
1250
1250
  }
1251
1251
  resumePausedMutations() {
1252
- return co.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1252
+ return lo.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1253
1253
  }
1254
1254
  getQueryCache() {
1255
1255
  return this.#e;
@@ -1264,7 +1264,7 @@ var Eo = class extends ka {
1264
1264
  this.#n = e;
1265
1265
  }
1266
1266
  setQueryDefaults(e, t) {
1267
- this.#r.set(Wa(e), {
1267
+ this.#r.set(Ga(e), {
1268
1268
  queryKey: e,
1269
1269
  defaultOptions: t
1270
1270
  });
@@ -1272,11 +1272,11 @@ var Eo = class extends ka {
1272
1272
  getQueryDefaults(e) {
1273
1273
  let t = [...this.#r.values()], n = {};
1274
1274
  return t.forEach((t) => {
1275
- Ga(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1275
+ Ka(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1276
1276
  }), n;
1277
1277
  }
1278
1278
  setMutationDefaults(e, t) {
1279
- this.#i.set(Wa(e), {
1279
+ this.#i.set(Ga(e), {
1280
1280
  mutationKey: e,
1281
1281
  defaultOptions: t
1282
1282
  });
@@ -1284,7 +1284,7 @@ var Eo = class extends ka {
1284
1284
  getMutationDefaults(e) {
1285
1285
  let t = [...this.#i.values()], n = {};
1286
1286
  return t.forEach((t) => {
1287
- Ga(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1287
+ Ka(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1288
1288
  }), n;
1289
1289
  }
1290
1290
  defaultQueryOptions(e) {
@@ -1295,7 +1295,7 @@ var Eo = class extends ka {
1295
1295
  ...e,
1296
1296
  _defaulted: !0
1297
1297
  };
1298
- return t.queryHash ||= Ua(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === to && (t.enabled = !1), t;
1298
+ return t.queryHash ||= Wa(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === no && (t.enabled = !1), t;
1299
1299
  }
1300
1300
  defaultMutationOptions(e) {
1301
1301
  return e?._defaulted ? e : {
@@ -1308,22 +1308,22 @@ var Eo = class extends ka {
1308
1308
  clear() {
1309
1309
  this.#e.clear(), this.#t.clear();
1310
1310
  }
1311
- }, Oo = /* @__PURE__ */ e({
1312
- Vue: () => oa,
1311
+ }, ko = /* @__PURE__ */ e({
1312
+ Vue: () => ca,
1313
1313
  Vue2: () => void 0,
1314
- del: () => Mo,
1315
- install: () => Ao,
1314
+ del: () => No,
1315
+ install: () => jo,
1316
1316
  isVue2: () => !1,
1317
1317
  isVue3: () => !0,
1318
- set: () => jo
1318
+ set: () => Mo
1319
1319
  });
1320
- import * as ko from "vue";
1321
- t(Oo, ko);
1322
- function Ao() {}
1323
- function jo(e, t, n) {
1320
+ import * as Ao from "vue";
1321
+ t(ko, Ao);
1322
+ function jo() {}
1323
+ function Mo(e, t, n) {
1324
1324
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
1325
1325
  }
1326
- function Mo(e, t) {
1326
+ function No(e, t) {
1327
1327
  if (Array.isArray(e)) {
1328
1328
  e.splice(t, 1);
1329
1329
  return;
@@ -1332,64 +1332,64 @@ function Mo(e, t) {
1332
1332
  }
1333
1333
  //#endregion
1334
1334
  //#region node_modules/@tanstack/vue-query/build/modern/utils.js
1335
- var No = "VUE_QUERY_CLIENT";
1336
- function Po(e) {
1337
- return `${No}${e ? `:${e}` : ""}`;
1335
+ var Po = "VUE_QUERY_CLIENT";
1336
+ function Fo(e) {
1337
+ return `${Po}${e ? `:${e}` : ""}`;
1338
1338
  }
1339
- function Fo(e, t, n = "", r = 0) {
1339
+ function Io(e, t, n = "", r = 0) {
1340
1340
  if (t) {
1341
1341
  let i = t(e, n, r);
1342
- if (i === void 0 && (0, Oo.isRef)(e) || i !== void 0) return i;
1342
+ if (i === void 0 && (0, ko.isRef)(e) || i !== void 0) return i;
1343
1343
  }
1344
- if (Array.isArray(e)) return e.map((e, n) => Fo(e, t, String(n), r + 1));
1345
- if (typeof e == "object" && Lo(e)) {
1346
- let n = Object.entries(e).map(([e, n]) => [e, Fo(n, t, e, r + 1)]);
1344
+ if (Array.isArray(e)) return e.map((e, n) => Io(e, t, String(n), r + 1));
1345
+ if (typeof e == "object" && Ro(e)) {
1346
+ let n = Object.entries(e).map(([e, n]) => [e, Io(n, t, e, r + 1)]);
1347
1347
  return Object.fromEntries(n);
1348
1348
  }
1349
1349
  return e;
1350
1350
  }
1351
- function Io(e, t) {
1352
- return Fo(e, t);
1351
+ function Lo(e, t) {
1352
+ return Io(e, t);
1353
1353
  }
1354
1354
  function Q(e, t = !1) {
1355
- return Io(e, (e, n, r) => {
1355
+ return Lo(e, (e, n, r) => {
1356
1356
  if (r === 1 && n === "queryKey") return Q(e, !0);
1357
- if (t && Ro(e)) return Q(e(), t);
1358
- if ((0, Oo.isRef)(e)) return Q((0, Oo.unref)(e), t);
1357
+ if (t && zo(e)) return Q(e(), t);
1358
+ if ((0, ko.isRef)(e)) return Q((0, ko.unref)(e), t);
1359
1359
  });
1360
1360
  }
1361
- function Lo(e) {
1361
+ function Ro(e) {
1362
1362
  if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
1363
1363
  let t = Object.getPrototypeOf(e);
1364
1364
  return t === null || t === Object.prototype;
1365
1365
  }
1366
- function Ro(e) {
1366
+ function zo(e) {
1367
1367
  return typeof e == "function";
1368
1368
  }
1369
1369
  //#endregion
1370
1370
  //#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
1371
- var zo = class extends Eo {
1371
+ var Bo = class extends Do {
1372
1372
  find(e) {
1373
1373
  return super.find(Q(e));
1374
1374
  }
1375
1375
  findAll(e = {}) {
1376
1376
  return super.findAll(Q(e));
1377
1377
  }
1378
- }, Bo = class extends wo {
1378
+ }, Vo = class extends To {
1379
1379
  find(e) {
1380
1380
  return super.find(Q(e));
1381
1381
  }
1382
1382
  findAll(e = {}) {
1383
1383
  return super.findAll(Q(e));
1384
1384
  }
1385
- }, Vo = class extends Do {
1385
+ }, Ho = class extends Oo {
1386
1386
  constructor(e = {}) {
1387
1387
  let t = {
1388
1388
  defaultOptions: e.defaultOptions,
1389
- queryCache: e.queryCache || new zo(),
1390
- mutationCache: e.mutationCache || new Bo()
1389
+ queryCache: e.queryCache || new Bo(),
1390
+ mutationCache: e.mutationCache || new Vo()
1391
1391
  };
1392
- super(t), this.isRestoring = (0, Oo.ref)(!1);
1392
+ super(t), this.isRestoring = (0, ko.ref)(!1);
1393
1393
  }
1394
1394
  isFetching(e = {}) {
1395
1395
  return super.isFetching(Q(e));
@@ -1434,7 +1434,7 @@ var zo = class extends Eo {
1434
1434
  ...n,
1435
1435
  type: n.refetchType ?? n.type ?? "active"
1436
1436
  };
1437
- return (0, Oo.nextTick)().then(() => super.refetchQueries(i, r));
1437
+ return (0, ko.nextTick)().then(() => super.refetchQueries(i, r));
1438
1438
  }
1439
1439
  refetchQueries(e = {}, t = {}) {
1440
1440
  return super.refetchQueries(Q(e), Q(t));
@@ -1469,22 +1469,22 @@ var zo = class extends Eo {
1469
1469
  };
1470
1470
  //#endregion
1471
1471
  //#region node_modules/@vue/devtools-api/lib/esm/env.js
1472
- function Ho() {
1473
- return Uo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1474
- }
1475
1472
  function Uo() {
1476
- return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1473
+ return Wo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1477
1474
  }
1478
- var Wo = typeof Proxy == "function", Go = "devtools-plugin:setup", Ko = "plugin:settings:set", qo, Jo;
1479
- function Yo() {
1480
- return qo === void 0 && (typeof window < "u" && window.performance ? (qo = !0, Jo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (qo = !0, Jo = globalThis.perf_hooks.performance) : qo = !1), qo;
1475
+ function Wo() {
1476
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1481
1477
  }
1478
+ var Go = typeof Proxy == "function", Ko = "devtools-plugin:setup", qo = "plugin:settings:set", Jo, Yo;
1482
1479
  function Xo() {
1483
- return Yo() ? Jo.now() : Date.now();
1480
+ return Jo === void 0 && (typeof window < "u" && window.performance ? (Jo = !0, Yo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Jo = !0, Yo = globalThis.perf_hooks.performance) : Jo = !1), Jo;
1481
+ }
1482
+ function Zo() {
1483
+ return Xo() ? Yo.now() : Date.now();
1484
1484
  }
1485
1485
  //#endregion
1486
1486
  //#region node_modules/@vue/devtools-api/lib/esm/proxy.js
1487
- var Zo = class {
1487
+ var Qo = class {
1488
1488
  constructor(e, t) {
1489
1489
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
1490
1490
  let n = {};
@@ -1505,9 +1505,9 @@ var Zo = class {
1505
1505
  i = e;
1506
1506
  },
1507
1507
  now() {
1508
- return Xo();
1508
+ return Zo();
1509
1509
  }
1510
- }, t && t.on(Ko, (e, t) => {
1510
+ }, t && t.on(qo, (e, t) => {
1511
1511
  e === this.plugin.id && this.fallbacks.setSettings(t);
1512
1512
  }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
1513
1513
  this.onQueue.push({
@@ -1534,11 +1534,11 @@ var Zo = class {
1534
1534
  };
1535
1535
  //#endregion
1536
1536
  //#region node_modules/@vue/devtools-api/lib/esm/index.js
1537
- function Qo(e, t) {
1538
- let n = e, r = Uo(), i = Ho(), a = Wo && n.enableEarlyProxy;
1539
- if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Go, e, t);
1537
+ function $o(e, t) {
1538
+ let n = e, r = Wo(), i = Uo(), a = Go && n.enableEarlyProxy;
1539
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Ko, e, t);
1540
1540
  else {
1541
- let e = a ? new Zo(n, i) : null;
1541
+ let e = a ? new Qo(n, i) : null;
1542
1542
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1543
1543
  pluginDescriptor: n,
1544
1544
  setupFn: t,
@@ -1548,7 +1548,7 @@ function Qo(e, t) {
1548
1548
  }
1549
1549
  //#endregion
1550
1550
  //#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
1551
- var $o = {
1551
+ var es = {
1552
1552
  À: "A",
1553
1553
  Á: "A",
1554
1554
  Â: "A",
@@ -1948,9 +1948,9 @@ var $o = {
1948
1948
  x̧: "x",
1949
1949
  Z̧: "Z",
1950
1950
  z̧: "z"
1951
- }, es = Object.keys($o).join("|"), ts = new RegExp(es, "g");
1952
- function ns(e) {
1953
- return e.replace(ts, (e) => $o[e]);
1951
+ }, ts = Object.keys(es).join("|"), ns = new RegExp(ts, "g");
1952
+ function rs(e) {
1953
+ return e.replace(ns, (e) => es[e]);
1954
1954
  }
1955
1955
  var $ = {
1956
1956
  CASE_SENSITIVE_EQUAL: 7,
@@ -1962,9 +1962,9 @@ var $ = {
1962
1962
  MATCHES: 1,
1963
1963
  NO_MATCH: 0
1964
1964
  };
1965
- function rs(e, t, n) {
1965
+ function is(e, t, n) {
1966
1966
  if (n ||= {}, n.threshold = n.threshold ?? $.MATCHES, !n.accessors) {
1967
- let r = is(e, t, n);
1967
+ let r = as(e, t, n);
1968
1968
  return {
1969
1969
  rankedValue: e,
1970
1970
  rank: r,
@@ -1973,7 +1973,7 @@ function rs(e, t, n) {
1973
1973
  passed: r >= n.threshold
1974
1974
  };
1975
1975
  }
1976
- let r = ls(e, n.accessors), i = {
1976
+ let r = us(e, n.accessors), i = {
1977
1977
  rankedValue: e,
1978
1978
  rank: $.NO_MATCH,
1979
1979
  accessorIndex: -1,
@@ -1981,15 +1981,15 @@ function rs(e, t, n) {
1981
1981
  passed: !1
1982
1982
  };
1983
1983
  for (let e = 0; e < r.length; e++) {
1984
- let a = r[e], o = is(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1984
+ let a = r[e], o = as(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1985
1985
  o < s && o >= $.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
1986
1986
  }
1987
1987
  return i;
1988
1988
  }
1989
- function is(e, t, n) {
1990
- return e = ss(e, n), t = ss(t, n), t.length > e.length ? $.NO_MATCH : e === t ? $.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? $.EQUAL : e.startsWith(t) ? $.STARTS_WITH : e.includes(` ${t}`) ? $.WORD_STARTS_WITH : e.includes(t) ? $.CONTAINS : t.length === 1 ? $.NO_MATCH : as(e).includes(t) ? $.ACRONYM : os(e, t));
1989
+ function as(e, t, n) {
1990
+ return e = cs(e, n), t = cs(t, n), t.length > e.length ? $.NO_MATCH : e === t ? $.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? $.EQUAL : e.startsWith(t) ? $.STARTS_WITH : e.includes(` ${t}`) ? $.WORD_STARTS_WITH : e.includes(t) ? $.CONTAINS : t.length === 1 ? $.NO_MATCH : os(e).includes(t) ? $.ACRONYM : ss(e, t));
1991
1991
  }
1992
- function as(e) {
1992
+ function os(e) {
1993
1993
  let t = "";
1994
1994
  return e.split(" ").forEach((e) => {
1995
1995
  e.split("-").forEach((e) => {
@@ -1997,7 +1997,7 @@ function as(e) {
1997
1997
  });
1998
1998
  }), t;
1999
1999
  }
2000
- function os(e, t) {
2000
+ function ss(e, t) {
2001
2001
  let n = 0, r = 0;
2002
2002
  function i(e, t, r) {
2003
2003
  for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
@@ -2016,20 +2016,20 @@ function os(e, t) {
2016
2016
  }
2017
2017
  return a(r - o);
2018
2018
  }
2019
- function ss(e, t) {
2019
+ function cs(e, t) {
2020
2020
  let { keepDiacritics: n } = t;
2021
- return e = `${e}`, n || (e = ns(e)), e;
2021
+ return e = `${e}`, n || (e = rs(e)), e;
2022
2022
  }
2023
- function cs(e, t) {
2023
+ function ls(e, t) {
2024
2024
  let n = t;
2025
2025
  typeof t == "object" && (n = t.accessor);
2026
2026
  let r = n(e);
2027
2027
  return r == null ? [] : Array.isArray(r) ? r : [String(r)];
2028
2028
  }
2029
- function ls(e, t) {
2029
+ function us(e, t) {
2030
2030
  let n = [];
2031
2031
  for (let r = 0, i = t.length; r < i; r++) {
2032
- let i = t[r], a = ds(i), o = cs(e, i);
2032
+ let i = t[r], a = fs(i), o = ls(e, i);
2033
2033
  for (let e = 0, t = o.length; e < t; e++) n.push({
2034
2034
  itemValue: o[e],
2035
2035
  attributes: a
@@ -2037,41 +2037,41 @@ function ls(e, t) {
2037
2037
  }
2038
2038
  return n;
2039
2039
  }
2040
- var us = {
2040
+ var ds = {
2041
2041
  maxRanking: Infinity,
2042
2042
  minRanking: -Infinity
2043
2043
  };
2044
- function ds(e) {
2045
- return typeof e == "function" ? us : {
2046
- ...us,
2044
+ function fs(e) {
2045
+ return typeof e == "function" ? ds : {
2046
+ ...ds,
2047
2047
  ...e
2048
2048
  };
2049
2049
  }
2050
2050
  //#endregion
2051
2051
  //#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
2052
- function fs(e) {
2053
- return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
2054
- }
2055
2052
  function ps(e) {
2056
- let t = fs(e);
2057
- return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
2053
+ return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
2058
2054
  }
2059
2055
  function ms(e) {
2060
- return fs(e) === 2 ? 0 : 16777215;
2056
+ let t = ps(e);
2057
+ return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
2061
2058
  }
2062
2059
  function hs(e) {
2063
- let t = fs(e);
2060
+ return ps(e) === 2 ? 0 : 16777215;
2061
+ }
2062
+ function gs(e) {
2063
+ let t = ps(e);
2064
2064
  return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
2065
2065
  }
2066
- var gs = (e, t) => e.queryHash.localeCompare(t.queryHash), _s = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, vs = {
2067
- "Status > Last Updated": (e, t) => fs(e) === fs(t) ? _s(e, t) : fs(e) > fs(t) ? 1 : -1,
2068
- "Query Hash": gs,
2069
- "Last Updated": _s
2070
- }, ys = "vue-query", bs = "Vue Query";
2071
- function xs(e, t) {
2072
- Qo({
2073
- id: ys,
2074
- label: bs,
2066
+ var _s = (e, t) => e.queryHash.localeCompare(t.queryHash), vs = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ys = {
2067
+ "Status > Last Updated": (e, t) => ps(e) === ps(t) ? vs(e, t) : ps(e) > ps(t) ? 1 : -1,
2068
+ "Query Hash": _s,
2069
+ "Last Updated": vs
2070
+ }, bs = "vue-query", xs = "Vue Query";
2071
+ function Ss(e, t) {
2072
+ $o({
2073
+ id: bs,
2074
+ label: xs,
2075
2075
  packageName: "vue-query",
2076
2076
  homepage: "https://tanstack.com/query/latest",
2077
2077
  logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
@@ -2093,11 +2093,11 @@ function xs(e, t) {
2093
2093
  sortFn: {
2094
2094
  type: "choice",
2095
2095
  label: "Sort Function",
2096
- options: Object.keys(vs).map((e) => ({
2096
+ options: Object.keys(ys).map((e) => ({
2097
2097
  label: e,
2098
2098
  value: e
2099
2099
  })),
2100
- defaultValue: Object.keys(vs)[0]
2100
+ defaultValue: Object.keys(ys)[0]
2101
2101
  },
2102
2102
  onlineMode: {
2103
2103
  type: "choice",
@@ -2115,11 +2115,11 @@ function xs(e, t) {
2115
2115
  }
2116
2116
  }, (e) => {
2117
2117
  let n = e.getSettings();
2118
- co.setOnline(!!n.onlineMode.valueOf());
2118
+ lo.setOnline(!!n.onlineMode.valueOf());
2119
2119
  let r = t.getQueryCache();
2120
2120
  e.addInspector({
2121
- id: ys,
2122
- label: bs,
2121
+ id: bs,
2122
+ label: xs,
2123
2123
  icon: "api",
2124
2124
  nodeActions: [
2125
2125
  {
@@ -2178,16 +2178,16 @@ function xs(e, t) {
2178
2178
  }
2179
2179
  ]
2180
2180
  }), e.addTimelineLayer({
2181
- id: ys,
2182
- label: bs,
2181
+ id: bs,
2182
+ label: xs,
2183
2183
  color: 16767308
2184
2184
  }), r.subscribe((t) => {
2185
- e.sendInspectorTree(ys), e.sendInspectorState(ys), [
2185
+ e.sendInspectorTree(bs), e.sendInspectorState(bs), [
2186
2186
  "added",
2187
2187
  "removed",
2188
2188
  "updated"
2189
2189
  ].includes(t.type) && e.addTimelineEvent({
2190
- layerId: ys,
2190
+ layerId: bs,
2191
2191
  event: {
2192
2192
  title: t.type,
2193
2193
  subtitle: t.query.queryHash,
@@ -2199,25 +2199,25 @@ function xs(e, t) {
2199
2199
  }
2200
2200
  });
2201
2201
  }), e.on.setPluginSettings((e) => {
2202
- e.key === "onlineMode" && co.setOnline(!!e.newValue);
2202
+ e.key === "onlineMode" && lo.setOnline(!!e.newValue);
2203
2203
  }), e.on.getInspectorTree((t) => {
2204
- if (t.inspectorId === ys) {
2204
+ if (t.inspectorId === bs) {
2205
2205
  let n = r.getAll(), i = e.getSettings();
2206
- t.rootNodes = (t.filter ? n.filter((e) => rs(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => vs[i.sortFn](e, t) * i.baseSort).map((e) => {
2207
- let t = ps(e);
2206
+ t.rootNodes = (t.filter ? n.filter((e) => is(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => ys[i.sortFn](e, t) * i.baseSort).map((e) => {
2207
+ let t = ms(e);
2208
2208
  return {
2209
2209
  id: e.queryHash,
2210
2210
  label: e.queryHash,
2211
2211
  tags: [{
2212
2212
  label: `${t} [${e.getObserversCount()}]`,
2213
- textColor: ms(e),
2214
- backgroundColor: hs(e)
2213
+ textColor: hs(e),
2214
+ backgroundColor: gs(e)
2215
2215
  }]
2216
2216
  };
2217
2217
  });
2218
2218
  }
2219
2219
  }), e.on.getInspectorState((e) => {
2220
- if (e.inspectorId === ys) {
2220
+ if (e.inspectorId === bs) {
2221
2221
  let t = r.get(e.nodeId);
2222
2222
  if (!t) return;
2223
2223
  e.state = {
@@ -2228,7 +2228,7 @@ function xs(e, t) {
2228
2228
  },
2229
2229
  {
2230
2230
  key: "Query status",
2231
- value: ps(t)
2231
+ value: ms(t)
2232
2232
  },
2233
2233
  {
2234
2234
  key: "Observers",
@@ -2254,9 +2254,9 @@ function xs(e, t) {
2254
2254
  }
2255
2255
  //#endregion
2256
2256
  //#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
2257
- var Ss = { install: (e, t = {}) => {
2258
- let n = Po(t.queryClientKey), r;
2259
- r = "queryClient" in t && t.queryClient ? t.queryClient : new Vo("queryClientConfig" in t ? t.queryClientConfig : void 0), io.isServer() || r.mount();
2257
+ var Cs = { install: (e, t = {}) => {
2258
+ let n = Fo(t.queryClientKey), r;
2259
+ r = "queryClient" in t && t.queryClient ? t.queryClient : new Ho("queryClientConfig" in t ? t.queryClientConfig : void 0), ao.isServer() || r.mount();
2260
2260
  let i = () => {};
2261
2261
  if (t.clientPersister) {
2262
2262
  r.isRestoring && (r.isRestoring.value = !0);
@@ -2275,17 +2275,17 @@ var Ss = { install: (e, t = {}) => {
2275
2275
  a(), t();
2276
2276
  };
2277
2277
  }
2278
- e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && xs(e, r);
2278
+ e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Ss(e, r);
2279
2279
  } };
2280
2280
  //#endregion
2281
2281
  //#region src/web-core/query.ts
2282
- function Cs() {
2283
- return new Vo({ defaultOptions: { queries: {
2282
+ function ws() {
2283
+ return new Ho({ defaultOptions: { queries: {
2284
2284
  staleTime: 3e4,
2285
2285
  refetchOnWindowFocus: !1
2286
2286
  } } });
2287
2287
  }
2288
- var ws = {
2288
+ var Ts = {
2289
2289
  session: { current: ["session", "current"] },
2290
2290
  menu: { mine: ["menu", "mine"] },
2291
2291
  staticModule: {
@@ -2311,7 +2311,7 @@ var ws = {
2311
2311
  };
2312
2312
  //#endregion
2313
2313
  //#region src/web-core/constructionPlanClient.ts
2314
- function Ts(e) {
2314
+ function Es(e) {
2315
2315
  let t = "/platform.application-construction-plans", n = (e) => `${t}/${encodeURIComponent(e)}`;
2316
2316
  return {
2317
2317
  designContract: () => e.request({ path: `${t}/design-contract` }),
@@ -2346,10 +2346,10 @@ function Ts(e) {
2346
2346
  }
2347
2347
  //#endregion
2348
2348
  //#region src/web-core/assistantConversationClient.ts
2349
- function Es(e) {
2349
+ function Ds(e) {
2350
2350
  let t = "/platform.assistant-conversations";
2351
2351
  return {
2352
- lookupOperation: (t) => Ye(e, t),
2352
+ lookupOperation: (t) => se(e, t),
2353
2353
  list: (n, r) => e.request({
2354
2354
  path: t,
2355
2355
  query: {
@@ -2373,101 +2373,209 @@ function Es(e) {
2373
2373
  };
2374
2374
  }
2375
2375
  //#endregion
2376
+ //#region src/web-core/businessNotificationSession.ts
2377
+ function Os(e) {
2378
+ let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = e.now ?? Date.now, a = !1, o = () => !a && e.isCurrent();
2379
+ function s(e) {
2380
+ if (!e.id) throw Error("Notification identity is required");
2381
+ let n = [...t.values()].filter((t) => t.definition.owns(e));
2382
+ if (n.length > 1) throw Error("Notification belongs to multiple recovery sources");
2383
+ return n[0]?.definition.id;
2384
+ }
2385
+ function c() {
2386
+ return o() ? [...n.values()].map((e) => e.notification).filter((e) => !r.has(e.id) && !Wn(e, i())).map((e) => structuredClone(e)) : [];
2387
+ }
2388
+ function l() {
2389
+ o() && e.onChange(c());
2390
+ }
2391
+ function u(a) {
2392
+ if (!o()) return Promise.resolve();
2393
+ if (a.flight) return a.flight.promise;
2394
+ let c = {
2395
+ controller: new AbortController(),
2396
+ updates: /* @__PURE__ */ new Map(),
2397
+ promise: Promise.resolve()
2398
+ };
2399
+ a.flight = c;
2400
+ let u = a.definition.id, d = () => o() && t.get(u) === a && !c.controller.signal.aborted;
2401
+ return c.promise = Promise.resolve().then(async () => {
2402
+ try {
2403
+ if (!d()) return;
2404
+ let e = await a.definition.load(c.controller.signal);
2405
+ if (!d()) return;
2406
+ let t = /* @__PURE__ */ new Map();
2407
+ for (let r of e) {
2408
+ let e = structuredClone(r);
2409
+ if (s(e) !== u || t.has(e.id)) throw Error("Invalid notification recovery snapshot");
2410
+ let i = n.get(e.id);
2411
+ if (i && i.sourceId !== u) throw Error("Notification identity collides with another source");
2412
+ t.set(e.id, e);
2413
+ }
2414
+ for (let [e, n] of c.updates) t.delete(e), t.set(e, n);
2415
+ let o = new Map([...n].filter(([, e]) => e.sourceId !== u));
2416
+ for (let [e, n] of t) !r.has(e) && !Wn(n, i()) && o.set(e, {
2417
+ sourceId: u,
2418
+ notification: n
2419
+ });
2420
+ n = o, l();
2421
+ } catch (t) {
2422
+ d() && e.onRecoveryError?.(u, t);
2423
+ } finally {
2424
+ a.flight === c && (a.flight = void 0);
2425
+ }
2426
+ }), c.promise;
2427
+ }
2428
+ return {
2429
+ register(e) {
2430
+ let r = e.id;
2431
+ if (!o()) throw Error("Notification session is no longer current");
2432
+ if (!r || t.has(r)) throw Error("Duplicate or empty notification source");
2433
+ let i = { definition: { ...e } };
2434
+ t.set(r, i);
2435
+ try {
2436
+ n = new Map([...n].map(([e, t]) => [e, {
2437
+ ...t,
2438
+ sourceId: s(t.notification)
2439
+ }]));
2440
+ } catch (e) {
2441
+ throw t.delete(r), e;
2442
+ }
2443
+ return () => {
2444
+ t.get(r) === i && (t.delete(r), i.flight?.controller.abort(), n = new Map([...n].filter(([, e]) => e.sourceId !== r)), l());
2445
+ };
2446
+ },
2447
+ receive(e) {
2448
+ if (!o()) return;
2449
+ let a = structuredClone(e), c = s(a), u = n.get(a.id);
2450
+ if (u && u.sourceId !== c) throw Error("Notification identity collides with another source");
2451
+ c && t.get(c)?.flight?.updates.set(a.id, a), n.delete(a.id), !r.has(a.id) && !Wn(a, i()) && n.set(a.id, {
2452
+ sourceId: c,
2453
+ notification: a
2454
+ });
2455
+ for (let [e, t] of n) Wn(t.notification, i()) && n.delete(e);
2456
+ l();
2457
+ },
2458
+ dismiss(e) {
2459
+ o() && (r.add(e), n.delete(e), l());
2460
+ },
2461
+ async recover(e) {
2462
+ if (o()) {
2463
+ if (e !== void 0) {
2464
+ let n = t.get(e);
2465
+ if (!n) throw Error("Unknown notification source");
2466
+ await u(n);
2467
+ } else await Promise.all([...t.values()].map(u));
2468
+ }
2469
+ },
2470
+ snapshot: c,
2471
+ cancelRecovery() {
2472
+ for (let e of t.values()) e.flight?.controller.abort(), e.flight = void 0;
2473
+ },
2474
+ dispose() {
2475
+ if (a) return;
2476
+ let i = e.isCurrent();
2477
+ a = !0;
2478
+ for (let e of t.values()) e.flight?.controller.abort();
2479
+ t.clear(), n.clear(), r.clear(), i && e.onChange([]);
2480
+ }
2481
+ };
2482
+ }
2483
+ //#endregion
2376
2484
  //#region src/platform-admin-runtime/platformAdminRoutes.ts
2377
- var Ds = la(() => import("./workspaceViews-CLOyLZMZ.js").then((e) => e.n)), Os = la(() => import("./BusinessActivityLogView-BPnAoGim.js")), ks = la(() => import("./RequestErrorLogView-D85h_q4P.js")), As = la(() => import("./LoginAuditLogView-D3TJdzWM.js")), js = la(() => import("./RuntimeLogView-D-MrVfT7.js")), Ms = [
2485
+ var ks = da(() => import("./workspaceViews-BSVtjZj1.js").then((e) => e.n)), As = da(() => import("./BusinessActivityLogView-DlNB97pu.js")), js = da(() => import("./RequestErrorLogView-CGczIKQy.js")), Ms = da(() => import("./LoginAuditLogView-Blg9giRX.js")), Ns = da(() => import("./RuntimeLogView-DF-1k-9y.js")), Ps = [
2378
2486
  {
2379
2487
  route: "/platform/code-rule",
2380
2488
  moduleAlias: "platform.code_rule",
2381
- component: la(() => import("./CodeConfigurationView-B1Lgdnkj.js").then((e) => e.n)),
2489
+ component: da(() => import("./CodeConfigurationView-91B9dHjD.js").then((e) => e.n)),
2382
2490
  layout: "workspace"
2383
2491
  },
2384
2492
  {
2385
2493
  route: "/platform/translations",
2386
2494
  moduleAlias: "platform.localization",
2387
- component: la(() => import("./ConfigurationTranslationView-BsWyLeRd.js")),
2495
+ component: da(() => import("./ConfigurationTranslationView-ClovkYJt.js")),
2388
2496
  layout: "workspace"
2389
2497
  },
2390
2498
  {
2391
2499
  route: "/workflow/admin",
2392
2500
  moduleAlias: "platform.workflow_admin",
2393
- component: la(() => import("./WorkflowAdministrationView-DHPlIJXF.js")),
2501
+ component: da(() => import("./WorkflowAdministrationView-CCXry0G4.js")),
2394
2502
  layout: "workspace"
2395
2503
  },
2396
2504
  {
2397
2505
  route: "/workflow/workbench",
2398
2506
  moduleAlias: "iam.workflow_workbench",
2399
- component: la(() => import("./WorkflowWorkbenchView-BN3ckTHB.js")),
2507
+ component: da(() => import("./WorkflowWorkbenchView-DUFfO3Gf.js")),
2400
2508
  layout: "workspace"
2401
2509
  },
2402
2510
  {
2403
2511
  route: "/platform/logs/runtime",
2404
2512
  moduleAlias: "platform.runtime_log",
2405
- component: js,
2513
+ component: Ns,
2406
2514
  layout: "workspace"
2407
2515
  },
2408
2516
  {
2409
2517
  route: "/platform/logs/activity",
2410
2518
  moduleAlias: "platform.business_activity_log",
2411
- component: Os,
2519
+ component: As,
2412
2520
  layout: "workspace"
2413
2521
  },
2414
2522
  {
2415
2523
  route: "/platform/logs/errors",
2416
2524
  moduleAlias: "platform.request_error_log",
2417
- component: ks,
2525
+ component: js,
2418
2526
  layout: "workspace"
2419
2527
  },
2420
2528
  {
2421
2529
  route: "/iam/logs/login",
2422
2530
  moduleAlias: "iam.login_audit_log",
2423
- component: As,
2531
+ component: Ms,
2424
2532
  layout: "workspace"
2425
2533
  },
2426
2534
  {
2427
2535
  route: "/iam/role/authorization",
2428
2536
  moduleAlias: "iam.role",
2429
- component: Ds,
2537
+ component: ks,
2430
2538
  layout: "workspace",
2431
2539
  menuEntry: !1
2432
2540
  }
2433
- ], Ns = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...Ms.map((e) => e.route)])), Ps = Object.fromEntries(Ms.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Fs = Object.fromEntries(Ms.map((e) => [e.route, e.layout]));
2434
- function Is(e) {
2435
- if (e) return Ms.find((t) => Rs(t, e.target));
2541
+ ], Fs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...Ps.map((e) => e.route)])), Is = Object.fromEntries(Ps.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Ls = Object.fromEntries(Ps.map((e) => [e.route, e.layout]));
2542
+ function Rs(e) {
2543
+ if (e) return Ps.find((t) => Bs(t, e.target));
2436
2544
  }
2437
- function Ls(e) {
2438
- return e?.pageType === "business-route" && !!Is(e);
2545
+ function zs(e) {
2546
+ return e?.pageType === "business-route" && !!Rs(e);
2439
2547
  }
2440
- function Rs(e, t) {
2441
- return t.route ? zs(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2548
+ function Bs(e, t) {
2549
+ return t.route ? Vs(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2442
2550
  }
2443
- function zs(e, t) {
2551
+ function Vs(e, t) {
2444
2552
  let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2445
2553
  return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
2446
2554
  }
2447
2555
  //#endregion
2448
2556
  //#region src/app/pageRouteContext.ts
2449
- var Bs = Symbol("page-route"), Vs = Symbol("page-descriptor");
2450
- function Hs(e) {
2451
- ba(Bs, L(e));
2557
+ var Hs = Symbol("page-route"), Us = Symbol("page-descriptor");
2558
+ function Ws(e) {
2559
+ Sa(Hs, I(e));
2452
2560
  }
2453
- function Us() {
2454
- let e = da(Bs);
2561
+ function Gs() {
2562
+ let e = pa(Hs);
2455
2563
  if (e) return e;
2456
- let t = Ie();
2457
- return L(() => t);
2564
+ let t = Le();
2565
+ return I(() => t);
2458
2566
  }
2459
- function Ws() {
2460
- return da(Vs) ?? L(() => void 0);
2567
+ function Ks() {
2568
+ return pa(Us) ?? I(() => void 0);
2461
2569
  }
2462
2570
  //#endregion
2463
2571
  //#region src/platform-admin-runtime/PlatformAdminOutlet.vue
2464
- var Gs = /* @__PURE__ */ W({
2572
+ var qs = /* @__PURE__ */ U({
2465
2573
  name: "PlatformAdminRouteOutlet",
2466
2574
  __name: "PlatformAdminOutlet",
2467
2575
  props: { descriptor: {} },
2468
2576
  setup(e) {
2469
- let t = e, n = L(() => Is(t.descriptor)), r = L(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = L(() => t.descriptor.target.query?.workspacePresentation);
2470
- xi(L(() => t.descriptor.layout ?? n.value?.layout)), Hs(() => {
2577
+ let t = e, n = I(() => Rs(t.descriptor)), r = I(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = I(() => t.descriptor.target.query?.workspacePresentation);
2578
+ tr(I(() => t.descriptor.layout ?? n.value?.layout)), Ws(() => {
2471
2579
  let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
2472
2580
  return {
2473
2581
  path: r,
@@ -2483,37 +2591,37 @@ var Gs = /* @__PURE__ */ W({
2483
2591
  e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
2484
2592
  }), n;
2485
2593
  }
2486
- return (t, a) => n.value && r.value ? (G(), R(J(_i), {
2594
+ return (t, a) => n.value && r.value ? (W(), L(q(Gn), {
2487
2595
  key: 0,
2488
2596
  "module-alias": r.value
2489
2597
  }, {
2490
- default: X(() => [i.value === "drawer" || i.value === "tab" ? (G(), R(J(se), {
2598
+ default: Y(() => [i.value === "drawer" || i.value === "tab" ? (W(), L(q(ce), {
2491
2599
  key: 0,
2492
2600
  descriptor: e.descriptor
2493
- }, null, 8, ["descriptor"])) : (G(), R(wa(n.value.component), { key: 1 }))]),
2601
+ }, null, 8, ["descriptor"])) : (W(), L(Ea(n.value.component), { key: 1 }))]),
2494
2602
  _: 1
2495
- }, 8, ["module-alias"])) : z("v-if", !0);
2603
+ }, 8, ["module-alias"])) : R("v-if", !0);
2496
2604
  }
2497
- }), Ks;
2498
- function qs(e) {
2499
- Ks = e;
2605
+ }), Js;
2606
+ function Ys(e) {
2607
+ Js = e;
2500
2608
  }
2501
- function Js(e, t) {
2502
- return Ks?.(e, t) ?? !1;
2609
+ function Xs(e, t) {
2610
+ return Js?.(e, t) ?? !1;
2503
2611
  }
2504
2612
  //#endregion
2505
2613
  //#region src/platform-admin-runtime/backendHttp.ts
2506
- function Ys(e = {}) {
2507
- let t = () => Si(zr({
2614
+ function Zs(e = {}) {
2615
+ let t = () => li(Ai({
2508
2616
  baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
2509
- token: e.withAuth === !1 ? void 0 : C(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
2510
- credentials: Xs(import.meta.env.VITE_MUYUN_CREDENTIALS),
2511
- onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => Js(e, t)
2512
- }), e.language ?? Qe);
2617
+ token: e.withAuth === !1 ? void 0 : u(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
2618
+ credentials: Qs(import.meta.env.VITE_MUYUN_CREDENTIALS),
2619
+ onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => Xs(e, t)
2620
+ }), e.language ?? ai);
2513
2621
  return {
2514
2622
  async request(e) {
2515
- let n = await t().request(e), r = Gi(n);
2516
- return r.changeSetId && x.dispatch({
2623
+ let n = await t().request(e), r = Hi(n);
2624
+ return r.changeSetId && Se.dispatch({
2517
2625
  changeSetId: r.changeSetId,
2518
2626
  changes: r.changes
2519
2627
  }), n;
@@ -2523,16 +2631,16 @@ function Ys(e = {}) {
2523
2631
  }
2524
2632
  };
2525
2633
  }
2526
- function Xs(e) {
2634
+ function Qs(e) {
2527
2635
  return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
2528
2636
  }
2529
2637
  //#endregion
2530
2638
  //#region src/platform-admin-runtime/moduleOpenApi.ts
2531
- var Zs = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2532
- function Qs(e) {
2533
- return Zs.exec(e)?.[1];
2639
+ var $s = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2640
+ function ec(e) {
2641
+ return $s.exec(e)?.[1];
2534
2642
  }
2535
- function $s(e, t) {
2643
+ function tc(e, t) {
2536
2644
  return {
2537
2645
  pageType: "platform-route",
2538
2646
  openMode: "workbench-route",
@@ -2549,14 +2657,14 @@ function $s(e, t) {
2549
2657
  }
2550
2658
  };
2551
2659
  }
2552
- function ec(e = Qe) {
2553
- let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = un(t);
2660
+ function nc(e = ai) {
2661
+ let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = Pi(t);
2554
2662
  return {
2555
2663
  pageType: "platform-route",
2556
2664
  openMode: "workbench-route",
2557
2665
  hostType: "platform-route-host",
2558
2666
  title: "开放模块 API",
2559
- titleText: Ct(t, n.originalText, e),
2667
+ titleText: hn(t, n.originalText, e),
2560
2668
  target: { route: "/openapi" },
2561
2669
  tabPolicy: {
2562
2670
  identity: "by-target",
@@ -2565,20 +2673,20 @@ function ec(e = Qe) {
2565
2673
  }
2566
2674
  };
2567
2675
  }
2568
- function tc(e) {
2676
+ function rc(e) {
2569
2677
  if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
2570
- let t = Qs(e.target.route ?? "");
2678
+ let t = ec(e.target.route ?? "");
2571
2679
  return t !== void 0 && e.target.moduleAlias === t;
2572
2680
  }
2573
- function nc(e) {
2681
+ function ic(e) {
2574
2682
  return e === "/openapi" || e === "/openapi/";
2575
2683
  }
2576
2684
  //#endregion
2577
2685
  //#region src/app/workbenchStartup.ts
2578
- function rc(e, t, n, r = {}) {
2579
- let i = k(t, n, r), a = e.find((e) => e.key === i.key);
2686
+ function ac(e, t, n, r = {}) {
2687
+ let i = j(t, n, r), a = e.find((e) => e.key === i.key);
2580
2688
  if (a) {
2581
- let o = a.pageDescriptor ? Ec(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2689
+ let o = a.pageDescriptor ? Oc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2582
2690
  return {
2583
2691
  tabs: e.map((e) => e.key === i.key ? o : e),
2584
2692
  activeTabKey: i.key
@@ -2589,8 +2697,8 @@ function rc(e, t, n, r = {}) {
2589
2697
  activeTabKey: i.key
2590
2698
  };
2591
2699
  }
2592
- function ic(e, t, n = {}) {
2593
- let r = Cc(we(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && Ae(e.pageDescriptor) === Ae(r.pageDescriptor));
2700
+ function oc(e, t, n = {}) {
2701
+ let r = Tc(He(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && Re(e.pageDescriptor) === Re(r.pageDescriptor));
2594
2702
  return i ? {
2595
2703
  tabs: e,
2596
2704
  activeTabKey: i.key,
@@ -2601,49 +2709,49 @@ function ic(e, t, n = {}) {
2601
2709
  created: !0
2602
2710
  };
2603
2711
  }
2604
- function ac(e, t, n = {}) {
2605
- return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : Fe(N(t, {
2712
+ function sc(e, t, n = {}) {
2713
+ return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : ye(je(t, {
2606
2714
  ...n,
2607
2715
  title: e.title
2608
2716
  }), n);
2609
2717
  }
2610
- function oc(e) {
2718
+ function cc(e) {
2611
2719
  let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
2612
2720
  if (t?.fullPath) return t.fullPath;
2613
- let n = t?.pageDescriptor ?? (t?.target ? N(t.target, { title: t.title }) : void 0);
2614
- return n?.pageType === "platform-route" && tc(n) && n.target.route ? n.target.route : n ? Fe(n) : void 0;
2721
+ let n = t?.pageDescriptor ?? (t?.target ? je(t.target, { title: t.title }) : void 0);
2722
+ return n?.pageType === "platform-route" && rc(n) && n.target.route ? n.target.route : n ? ye(n) : void 0;
2615
2723
  }
2616
- function sc(e, t, r = {}, i = !1, a = Qe) {
2724
+ function lc(e, t, n = {}, r = !1, i = ai) {
2617
2725
  if (t === "/" || t === "") return e;
2618
- let o = t.split(/[?#]/, 1)[0] ?? "", s = Qs(o), c = s ? $s(s) : nc(o) ? ec(a) : ce(t, r);
2619
- if (!c) return e;
2620
- let l = c.menuId ? Nc(e.menus, c.menuId) : void 0, u = l ? n(l) : void 0, d = l && u && dc(u, c) ? {
2621
- ...c,
2622
- title: l.title,
2623
- titleText: l.titleText
2624
- } : c, f = uc(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? lc(m, f) : void 0, g = f ? cc(f, h) : i ? we(p) : p, _ = l && jc(l, g, r) ? l : Ac(e.menus, g, r), v = _ === l ? u : _ ? n(_) : void 0, y = f ? Cc(g, r) : _ && v && de(v) ? Ec(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : Cc(g, r), b = Tc(m, y);
2726
+ let a = t.split(/[?#]/, 1)[0] ?? "", o = ec(a), s = o ? tc(o) : ic(a) ? nc(i) : Te(t, n);
2727
+ if (!s) return e;
2728
+ let c = s.menuId ? Fc(e.menus, s.menuId) : void 0, l = c ? fe(c) : void 0, u = c && l && pc(l, s) ? {
2729
+ ...s,
2730
+ title: c.title,
2731
+ titleText: c.titleText
2732
+ } : s, d = fc(u, n.title, i), f = d ?? u, p = e.tabs ?? [], m = d ? dc(p, d) : void 0, h = d ? uc(d, m) : r ? He(f) : f, g = c && Nc(c, h, n) ? c : Mc(e.menus, h, n), _ = g === c ? l : g ? fe(g) : void 0, v = d ? Tc(h, n) : g && _ && Be(_) ? Oc(g, _, h, n, p.find((e) => e.key === `menu:${g.id}`)?.instanceKey) : Tc(h, n), y = Dc(p, v);
2625
2733
  return {
2626
2734
  ...e,
2627
- tabs: b,
2628
- activeTabKey: y.key
2735
+ tabs: y,
2736
+ activeTabKey: v.key
2629
2737
  };
2630
2738
  }
2631
- function cc(e, t) {
2632
- return t?.instanceKey ? we(e, t.instanceKey) : t ? e : we(e);
2739
+ function uc(e, t) {
2740
+ return t?.instanceKey ? He(e, t.instanceKey) : t ? e : He(e);
2633
2741
  }
2634
- function lc(e, t) {
2635
- let n = Ae(t);
2636
- return e.find((e) => e.pageDescriptor?.pageType === "business-route" && Ae(e.pageDescriptor) === n);
2742
+ function dc(e, t) {
2743
+ let n = Re(t);
2744
+ return e.find((e) => e.pageDescriptor?.pageType === "business-route" && Re(e.pageDescriptor) === n);
2637
2745
  }
2638
- function uc(e, t, n) {
2746
+ function fc(e, t, n) {
2639
2747
  if (e.pageType !== "business-route") return;
2640
- let r = Ee(e);
2641
- return r ? ue(r.view, r.input, r.presentation, t, n) : void 0;
2748
+ let r = _e(e);
2749
+ return r ? me(r.view, r.input, r.presentation, t, n) : void 0;
2642
2750
  }
2643
- function dc(e, t) {
2751
+ function pc(e, t) {
2644
2752
  return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
2645
2753
  }
2646
- function fc(e, t, n) {
2754
+ function mc(e, t, n) {
2647
2755
  let r = e.findIndex((e) => e.key === n);
2648
2756
  if (r < 0) return {
2649
2757
  tabs: e,
@@ -2658,7 +2766,7 @@ function fc(e, t, n) {
2658
2766
  activeTabKey: t
2659
2767
  };
2660
2768
  }
2661
- function pc(e, t, n) {
2769
+ function hc(e, t, n) {
2662
2770
  let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
2663
2771
  return !t || !r.has(t) ? {
2664
2772
  tabs: a,
@@ -2668,16 +2776,16 @@ function pc(e, t, n) {
2668
2776
  activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
2669
2777
  };
2670
2778
  }
2671
- function mc(e, t, n = !0) {
2779
+ function gc(e, t, n = !0) {
2672
2780
  let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
2673
2781
  return [...t.flatMap((e) => {
2674
2782
  if (i.has(e.key)) return [];
2675
2783
  i.add(e.key);
2676
2784
  let t = r.get(e.key);
2677
- return t ? [hc(t, e)] : n ? [e] : [];
2785
+ return t ? [_c(t, e)] : n ? [e] : [];
2678
2786
  }), ...e.filter((e) => !i.has(e.key))];
2679
2787
  }
2680
- function hc(e, t) {
2788
+ function _c(e, t) {
2681
2789
  let n = e.pageDescriptor, r = t.pageDescriptor;
2682
2790
  if (!n || !r || !t.target) return e;
2683
2791
  let i = {
@@ -2688,83 +2796,83 @@ function hc(e, t) {
2688
2796
  };
2689
2797
  return {
2690
2798
  ...t,
2691
- ...Cc(i),
2799
+ ...Tc(i),
2692
2800
  target: t.target
2693
2801
  };
2694
2802
  }
2695
- function gc(e, t, n = {}, r = Qe) {
2803
+ function vc(e, t, n = {}, r = ai) {
2696
2804
  let i = /* @__PURE__ */ new Map();
2697
- bc(t, i);
2805
+ Sc(t, i);
2698
2806
  let a = /* @__PURE__ */ new Set();
2699
2807
  return e.flatMap((e) => {
2700
- let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? _c(e.key);
2808
+ let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? yc(e.key);
2701
2809
  if (t) {
2702
2810
  if (a.has(t)) return [];
2703
2811
  let e = i.get(t);
2704
- return e ? (a.add(t), [k(e.menu, e.target, n)]) : [];
2812
+ return e ? (a.add(t), [j(e.menu, e.target, n)]) : [];
2705
2813
  }
2706
- let o = vc(e, r);
2814
+ let o = bc(e, r);
2707
2815
  return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
2708
2816
  });
2709
2817
  }
2710
- function _c(e) {
2818
+ function yc(e) {
2711
2819
  return e.startsWith("menu:") && e.slice(5) || void 0;
2712
2820
  }
2713
- function vc(e, t) {
2821
+ function bc(e, t) {
2714
2822
  let n = e.pageDescriptor;
2715
2823
  if (n?.pageType !== "business-route") return;
2716
- let r = Ee(n);
2717
- if (r && r.presentation === "tab") return Cc(ue(r.view, r.input, "tab", void 0, t));
2824
+ let r = _e(n);
2825
+ if (r && r.presentation === "tab") return Tc(me(r.view, r.input, "tab", void 0, t));
2718
2826
  }
2719
- function yc(e, t) {
2827
+ function xc(e, t) {
2720
2828
  let n = e.findIndex((e) => e.key === t.key);
2721
2829
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2722
2830
  }
2723
- function bc(e, t) {
2724
- for (let r of e) {
2725
- let e = n(r.record);
2726
- e && de(e) && t.set(r.record.id, {
2727
- menu: r.record,
2831
+ function Sc(e, t) {
2832
+ for (let n of e) {
2833
+ let e = fe(n.record);
2834
+ e && Be(e) && t.set(n.record.id, {
2835
+ menu: n.record,
2728
2836
  target: e
2729
- }), bc(r.children, t);
2837
+ }), Sc(n.children, t);
2730
2838
  }
2731
2839
  }
2732
- function xc(e, t) {
2840
+ function Cc(e, t) {
2733
2841
  let n = new Set(t);
2734
2842
  return e.filter((e) => !n.has(e.key));
2735
2843
  }
2736
- function Sc(e, t, n = []) {
2844
+ function wc(e, t, n = []) {
2737
2845
  if (e.length !== t.length || new Set(t).size !== e.length) return e;
2738
2846
  let r = new Map(e.map((e) => [e.key, e]));
2739
2847
  if (t.some((e) => !r.has(e))) return e;
2740
2848
  let i = t.map((e) => r.get(e)), a = new Set(n);
2741
2849
  return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
2742
2850
  }
2743
- function Cc(e, t = {}) {
2744
- let n = Fe(e, t);
2851
+ function Tc(e, t = {}) {
2852
+ let n = ye(e, t);
2745
2853
  return {
2746
- ...wc(e) ? { instanceKey: wc(e) } : {},
2747
- key: Le(e),
2748
- title: e.title ?? kc(e),
2854
+ ...Ec(e) ? { instanceKey: Ec(e) } : {},
2855
+ key: le(e),
2856
+ title: e.title ?? jc(e),
2749
2857
  fullPath: n,
2750
2858
  pageDescriptor: e,
2751
2859
  restoreState: { url: n },
2752
2860
  closable: !0
2753
2861
  };
2754
2862
  }
2755
- function wc(e) {
2863
+ function Ec(e) {
2756
2864
  let t = (e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.query ?? e.params : e.params)?.InstanceKey, n = Array.isArray(t) ? t[0] : t;
2757
2865
  return typeof n == "string" && n ? n : void 0;
2758
2866
  }
2759
- function Tc(e, t) {
2867
+ function Dc(e, t) {
2760
2868
  let n = e.findIndex((e) => e.key === t.key);
2761
2869
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2762
2870
  }
2763
- function Ec(e, t, n, r, i) {
2764
- let a = we(n, i), o = k(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2871
+ function Oc(e, t, n, r, i) {
2872
+ let a = He(n, i), o = j(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2765
2873
  title: e.title,
2766
2874
  titleText: s.titleText
2767
- } : { title: a.title }, l = Dc(a) && Dc(s) || Oc(a) && Oc(s) ? {
2875
+ } : { title: a.title }, l = kc(a) && kc(s) || Ac(a) && Ac(s) ? {
2768
2876
  ...a,
2769
2877
  ...c,
2770
2878
  menuId: e.id,
@@ -2781,44 +2889,44 @@ function Ec(e, t, n, r, i) {
2781
2889
  };
2782
2890
  return {
2783
2891
  ...o,
2784
- ...Cc(l, r),
2892
+ ...Tc(l, r),
2785
2893
  target: t
2786
2894
  };
2787
2895
  }
2788
- function Dc(e) {
2896
+ function kc(e) {
2789
2897
  return e.pageType === "platform-route" || e.pageType === "business-route";
2790
2898
  }
2791
- function Oc(e) {
2899
+ function Ac(e) {
2792
2900
  return e.pageType === "remote-url" || e.pageType === "external-link";
2793
2901
  }
2794
- function kc(e) {
2902
+ function jc(e) {
2795
2903
  return e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url;
2796
2904
  }
2797
- function Ac(e, t, n) {
2905
+ function Mc(e, t, n) {
2798
2906
  for (let r of e) {
2799
- if (jc(r.record, t, n)) return r.record;
2800
- let e = Ac(r.children, t, n);
2907
+ if (Nc(r.record, t, n)) return r.record;
2908
+ let e = Mc(r.children, t, n);
2801
2909
  if (e) return e;
2802
2910
  }
2803
2911
  }
2804
- function jc(e, t, r) {
2805
- let i = n(e), a = i ? N(i, {
2806
- ...r,
2912
+ function Nc(e, t, n) {
2913
+ let r = fe(e), i = r ? je(r, {
2914
+ ...n,
2807
2915
  title: e.title
2808
2916
  }) : void 0;
2809
- return a ? Mc(a, t) : !1;
2917
+ return i ? Pc(i, t) : !1;
2810
2918
  }
2811
- function Mc(e, t) {
2919
+ function Pc(e, t) {
2812
2920
  return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") && e.target.url === t.target.url;
2813
2921
  }
2814
- function Nc(e, t) {
2922
+ function Fc(e, t) {
2815
2923
  for (let n of e) {
2816
2924
  if (n.record.id === t) return n.record;
2817
- let e = Nc(n.children, t);
2925
+ let e = Fc(n.children, t);
2818
2926
  if (e) return e;
2819
2927
  }
2820
2928
  }
2821
- function Pc(e, t) {
2929
+ function Ic(e, t) {
2822
2930
  return {
2823
2931
  ...e,
2824
2932
  title: t,
@@ -2831,60 +2939,60 @@ function Pc(e, t) {
2831
2939
  }
2832
2940
  //#endregion
2833
2941
  //#region src/app/workbenchSessionTabs.ts
2834
- function Fc(e) {
2942
+ function Lc(e) {
2835
2943
  if (!Array.isArray(e)) return [];
2836
2944
  let t = /* @__PURE__ */ new Set();
2837
- return e.flatMap((e) => !Ic(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2945
+ return e.flatMap((e) => !Rc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2838
2946
  }
2839
- function Ic(e) {
2947
+ function Rc(e) {
2840
2948
  let t = e;
2841
- return Bc(e) && typeof t.key == "string" && typeof t.title == "string" && (Lc(t.pageDescriptor) || zc(t.target));
2949
+ return Hc(e) && typeof t.key == "string" && typeof t.title == "string" && (zc(t.pageDescriptor) || Vc(t.target));
2842
2950
  }
2843
- function Lc(e) {
2844
- return !Bc(e) || !Bc(e.target) || !Bc(e.tabPolicy) || ![
2951
+ function zc(e) {
2952
+ return !Hc(e) || !Hc(e.target) || !Hc(e.tabPolicy) || ![
2845
2953
  "by-menu",
2846
2954
  "by-target",
2847
2955
  "by-params"
2848
- ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Rc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Rc(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
2956
+ ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Bc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Bc(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
2849
2957
  }
2850
- function Rc(e) {
2958
+ function Bc(e) {
2851
2959
  return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
2852
2960
  }
2853
- function zc(e) {
2854
- return !Bc(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
2961
+ function Vc(e) {
2962
+ return !Hc(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
2855
2963
  }
2856
- function Bc(e) {
2964
+ function Hc(e) {
2857
2965
  return typeof e == "object" && !!e;
2858
2966
  }
2859
2967
  //#endregion
2860
2968
  //#region src/app/lockedTabPreference.ts
2861
- var Vc = "workbench.locked-tabs";
2862
- async function Hc(e) {
2863
- return Wc(await e.restore(Vc, [], { persistence: "backend" }));
2969
+ var Uc = "workbench.locked-tabs";
2970
+ async function Wc(e) {
2971
+ return Kc(await e.restore(Uc, [], { persistence: "backend" }));
2864
2972
  }
2865
- async function Uc(e, t) {
2866
- await e.set(Vc, t, { persistence: "backend" });
2973
+ async function Gc(e, t) {
2974
+ await e.set(Uc, t, { persistence: "backend" });
2867
2975
  }
2868
- function Wc(e) {
2869
- return Fc(e);
2976
+ function Kc(e) {
2977
+ return Lc(e);
2870
2978
  }
2871
2979
  //#endregion
2872
2980
  //#region src/consumer/PlatformAdminOutlet.vue
2873
- var Gc = /* @__PURE__ */ W({
2981
+ var qc = /* @__PURE__ */ U({
2874
2982
  name: "PlatformAdminOutlet",
2875
2983
  __name: "PlatformAdminOutlet",
2876
2984
  props: { descriptor: {} },
2877
2985
  setup(e) {
2878
- return (t, n) => (G(), R(ie, { descriptor: e.descriptor }, ca({ _: 2 }, [J(Ls)(e.descriptor) ? {
2986
+ return (t, n) => (W(), L(ae, { descriptor: e.descriptor }, ua({ _: 2 }, [q(zs)(e.descriptor) ? {
2879
2987
  name: "default",
2880
- fn: X(() => [U(Gs, { descriptor: e.descriptor }, null, 8, ["descriptor"])]),
2988
+ fn: Y(() => [H(qs, { descriptor: e.descriptor }, null, 8, ["descriptor"])]),
2881
2989
  key: "0"
2882
2990
  } : void 0]), 1032, ["descriptor"]));
2883
2991
  }
2884
- }), Kc = { class: "change-own-password-fields" }, qc = {
2992
+ }), Jc = { class: "change-own-password-fields" }, Yc = {
2885
2993
  key: 0,
2886
2994
  class: "change-own-password-error"
2887
- }, Jc = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
2995
+ }, Xc = /*#__PURE__*/ ar(/* @__PURE__ */ U({
2888
2996
  name: "ChangeOwnPasswordDialog",
2889
2997
  __name: "ChangeOwnPasswordDialog",
2890
2998
  props: {
@@ -2909,54 +3017,54 @@ var Gc = /* @__PURE__ */ W({
2909
3017
  "update:confirmPassword"
2910
3018
  ],
2911
3019
  setup(e, { emit: t }) {
2912
- let n = I(), r = t;
2913
- return (t, i) => (G(), R(J(gn), {
3020
+ let n = N(), r = t;
3021
+ return (t, i) => (W(), L(q(lt), {
2914
3022
  open: e.open,
2915
- title: J(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
2916
- "confirm-text": J(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3023
+ title: q(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3024
+ "confirm-text": q(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
2917
3025
  "confirm-loading": e.saving,
2918
3026
  "confirm-disabled": !e.currentPassword || !e.newPassword || !e.confirmPassword,
2919
3027
  onConfirm: i[3] ||= (e) => r("submit"),
2920
3028
  onCancel: i[4] ||= (e) => r("close")
2921
3029
  }, {
2922
- default: X(() => [V("div", Kc, [
2923
- V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), U(J(F), {
3030
+ default: Y(() => [B("div", Jc, [
3031
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), H(q(P), {
2924
3032
  value: e.currentPassword,
2925
3033
  type: "password",
2926
3034
  autocomplete: "current-password",
2927
3035
  disabled: e.saving,
2928
- placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3036
+ placeholder: q(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
2929
3037
  "onUpdate:value": i[0] ||= (e) => r("update:currentPassword", e)
2930
3038
  }, null, 8, [
2931
3039
  "value",
2932
3040
  "disabled",
2933
3041
  "placeholder"
2934
3042
  ])]),
2935
- V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), U(J(F), {
3043
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), H(q(P), {
2936
3044
  value: e.newPassword,
2937
3045
  type: "password",
2938
3046
  autocomplete: "new-password",
2939
3047
  disabled: e.saving,
2940
- placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3048
+ placeholder: q(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
2941
3049
  "onUpdate:value": i[1] ||= (e) => r("update:newPassword", e)
2942
3050
  }, null, 8, [
2943
3051
  "value",
2944
3052
  "disabled",
2945
3053
  "placeholder"
2946
3054
  ])]),
2947
- V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), U(J(F), {
3055
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), H(q(P), {
2948
3056
  value: e.confirmPassword,
2949
3057
  type: "password",
2950
3058
  autocomplete: "new-password",
2951
3059
  disabled: e.saving,
2952
- placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3060
+ placeholder: q(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
2953
3061
  "onUpdate:value": i[2] ||= (e) => r("update:confirmPassword", e)
2954
3062
  }, null, 8, [
2955
3063
  "value",
2956
3064
  "disabled",
2957
3065
  "placeholder"
2958
3066
  ])])
2959
- ]), e.error ? (G(), B("p", qc, q(e.error), 1)) : z("v-if", !0)]),
3067
+ ]), e.error ? (W(), z("p", Yc, K(e.error), 1)) : R("v-if", !0)]),
2960
3068
  _: 1
2961
3069
  }, 8, [
2962
3070
  "open",
@@ -2966,24 +3074,24 @@ var Gc = /* @__PURE__ */ W({
2966
3074
  "confirm-disabled"
2967
3075
  ]));
2968
3076
  }
2969
- }), [["__scopeId", "data-v-c6faa9f8"]]), Yc = "muyun.externalLogin.pending";
2970
- function Xc(e, t, n = il()) {
2971
- let r = tl(n).filter((t) => t.state !== e.state);
3077
+ }), [["__scopeId", "data-v-c6faa9f8"]]), Zc = "muyun.externalLogin.pending";
3078
+ function Qc(e, t, n = ol()) {
3079
+ let r = rl(n).filter((t) => t.state !== e.state);
2972
3080
  r.push({
2973
3081
  providerId: t.providerId,
2974
3082
  state: e.state,
2975
3083
  browserProof: e.browserProof,
2976
3084
  purpose: t.purpose,
2977
3085
  tenantId: t.tenantId || void 0
2978
- }), nl(n, r.slice(-5));
3086
+ }), il(n, r.slice(-5));
2979
3087
  }
2980
- function Zc(e, t = il()) {
2981
- nl(t, tl(t).filter((t) => t.state !== e));
3088
+ function $c(e, t = ol()) {
3089
+ il(t, rl(t).filter((t) => t.state !== e));
2982
3090
  }
2983
- function Qc(e) {
3091
+ function el(e) {
2984
3092
  window.location.assign(e);
2985
3093
  }
2986
- function $c(e, t = il()) {
3094
+ function tl(e, t = ol()) {
2987
3095
  let n = {};
2988
3096
  for (let [t, r] of Object.entries(e)) {
2989
3097
  let e = Array.isArray(r) ? r[0] : r;
@@ -2991,13 +3099,13 @@ function $c(e, t = il()) {
2991
3099
  }
2992
3100
  let r = n.state?.trim();
2993
3101
  if (!r) return;
2994
- let i = tl(t);
2995
- return nl(t, i.filter((e) => e.state !== r)), {
3102
+ let i = rl(t);
3103
+ return il(t, i.filter((e) => e.state !== r)), {
2996
3104
  pending: i.find((e) => e.state === r),
2997
3105
  parameters: n
2998
3106
  };
2999
3107
  }
3000
- function el(e, t) {
3108
+ function nl(e, t) {
3001
3109
  if (e.status === "reviewPending") return t.t("platform.external-login.review-pending", "加入申请已提交,审核通过后请重新扫码登录");
3002
3110
  if (e.status === "reviewRejected") return t.t("platform.external-login.review-rejected", "加入申请已被拒绝,请联系管理员");
3003
3111
  if (e.failure === "admissionRejected") return t.t("platform.external-login.admission-rejected", "无法确认有效的准入资料,请联系管理员检查准入范围并更新通讯录后重试");
@@ -3013,60 +3121,60 @@ function el(e, t) {
3013
3121
  default: return t.t("platform.external-login.authorization-failed", "外部授权未通过,请重试或联系管理员");
3014
3122
  }
3015
3123
  }
3016
- function tl(e) {
3124
+ function rl(e) {
3017
3125
  try {
3018
- let t = JSON.parse(e?.getItem(Yc) ?? "[]");
3019
- return Array.isArray(t) ? t.filter(rl) : [];
3126
+ let t = JSON.parse(e?.getItem(Zc) ?? "[]");
3127
+ return Array.isArray(t) ? t.filter(al) : [];
3020
3128
  } catch {
3021
3129
  return [];
3022
3130
  }
3023
3131
  }
3024
- function nl(e, t) {
3132
+ function il(e, t) {
3025
3133
  try {
3026
- t.length === 0 ? e?.removeItem(Yc) : e?.setItem(Yc, JSON.stringify(t));
3134
+ t.length === 0 ? e?.removeItem(Zc) : e?.setItem(Zc, JSON.stringify(t));
3027
3135
  } catch {}
3028
3136
  }
3029
- function rl(e) {
3137
+ function al(e) {
3030
3138
  if (typeof e != "object" || !e) return !1;
3031
3139
  let t = e;
3032
3140
  return typeof t.providerId == "string" && typeof t.state == "string" && typeof t.browserProof == "string" && (t.purpose === "login" || t.purpose === "bind");
3033
3141
  }
3034
- function il() {
3142
+ function ol() {
3035
3143
  try {
3036
3144
  return typeof window > "u" ? void 0 : window.sessionStorage;
3037
3145
  } catch {
3038
3146
  return;
3039
3147
  }
3040
3148
  }
3041
- var al = "https://login.welink.huaweicloud.com/sso-proxy-front/public/qrcode/0.0.1/wlQrcodeLogin.js", ol;
3042
- function sl() {
3043
- return window.wlQrcodeLogin ? Promise.resolve(window.wlQrcodeLogin) : ol || (ol = new Promise((e, t) => {
3149
+ var sl = "https://login.welink.huaweicloud.com/sso-proxy-front/public/qrcode/0.0.1/wlQrcodeLogin.js", cl;
3150
+ function ll() {
3151
+ return window.wlQrcodeLogin ? Promise.resolve(window.wlQrcodeLogin) : cl || (cl = new Promise((e, t) => {
3044
3152
  let n = document.createElement("script");
3045
- n.src = al, n.async = !0, n.referrerPolicy = "no-referrer";
3153
+ n.src = sl, n.async = !0, n.referrerPolicy = "no-referrer";
3046
3154
  let r = setTimeout(i, 15e3);
3047
3155
  function i() {
3048
- clearTimeout(r), n.remove(), ol = void 0, t(/* @__PURE__ */ Error("WeLink script unavailable"));
3156
+ clearTimeout(r), n.remove(), cl = void 0, t(/* @__PURE__ */ Error("WeLink script unavailable"));
3049
3157
  }
3050
3158
  n.onerror = i, n.onload = () => {
3051
3159
  if (!window.wlQrcodeLogin) return i();
3052
3160
  clearTimeout(r), e(window.wlQrcodeLogin);
3053
3161
  }, document.head.append(n);
3054
- }), ol);
3162
+ }), cl);
3055
3163
  }
3056
3164
  //#endregion
3057
3165
  //#region src/app/WeLinkQrCode.vue?vue&type=script&setup=true&lang.ts
3058
- var cl = {
3166
+ var ul = {
3059
3167
  class: "welink-qr",
3060
3168
  "aria-live": "polite"
3061
- }, ll = { key: 0 }, ul = {
3169
+ }, dl = { key: 0 }, fl = {
3062
3170
  key: 1,
3063
3171
  role: "alert"
3064
- }, dl = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
3172
+ }, pl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3065
3173
  __name: "WeLinkQrCode",
3066
3174
  props: { start: {} },
3067
3175
  emits: ["close"],
3068
3176
  setup(e, { emit: t }) {
3069
- let n = e, r = t, i = I(), a = `welink-${Ta()}`, o = K(), s = K(!1), c = K(!1), l = !0, u = !1, d;
3177
+ let n = e, r = t, i = N(), a = `welink-${Da()}`, o = G(), s = G(!1), c = G(!1), l = !0, u = !1, d;
3070
3178
  function f(e) {
3071
3179
  let t = o.value?.querySelector("iframe");
3072
3180
  if (!l || s.value || c.value || u || Date.now() >= Date.parse(n.start.expiresAt) || e.origin !== "https://login.welink.huaweicloud.com" || !t?.contentWindow || e.source !== t.contentWindow || typeof e.data != "string" || !e.data.trim() || e.data.length > 4096) return;
@@ -3078,19 +3186,19 @@ var cl = {
3078
3186
  scope: r.scope,
3079
3187
  state: n.start.state,
3080
3188
  code: e.data
3081
- }).toString(), u = !0, Qc(i.toString());
3189
+ }).toString(), u = !0, el(i.toString());
3082
3190
  }
3083
- return va(async () => {
3191
+ return ba(async () => {
3084
3192
  try {
3085
3193
  let e = n.start.qrCode;
3086
- if (!e || e.providerType !== "welink" || e.scriptUrl !== al || e.messageOrigin !== "https://login.welink.huaweicloud.com" || e.state !== n.start.state || e.scope !== "snsapi_login" || new URL(e.authorizationUrl).origin !== "https://login.welink.huaweicloud.com" || new URL(e.authorizationUrl).pathname !== "/sso/oauth2/sns_authorize") throw Error("Unrecognized QR presentation");
3194
+ if (!e || e.providerType !== "welink" || e.scriptUrl !== sl || e.messageOrigin !== "https://login.welink.huaweicloud.com" || e.state !== n.start.state || e.scope !== "snsapi_login" || new URL(e.authorizationUrl).origin !== "https://login.welink.huaweicloud.com" || new URL(e.authorizationUrl).pathname !== "/sso/oauth2/sns_authorize") throw Error("Unrecognized QR presentation");
3087
3195
  let t = Date.parse(n.start.expiresAt) - Date.now();
3088
3196
  if (!Number.isFinite(t) || t <= 0) {
3089
3197
  c.value = !0;
3090
3198
  return;
3091
3199
  }
3092
3200
  d = setTimeout(() => c.value = !0, Math.min(t, 2147483647));
3093
- let r = await sl();
3201
+ let r = await ll();
3094
3202
  if (!l || c.value) return;
3095
3203
  window.addEventListener("message", f), r({
3096
3204
  id: a,
@@ -3109,27 +3217,27 @@ var cl = {
3109
3217
  } catch {
3110
3218
  l && (s.value = !0);
3111
3219
  }
3112
- }), _a(() => {
3220
+ }), ya(() => {
3113
3221
  l = !1, clearTimeout(d), window.removeEventListener("message", f);
3114
- }), (e, t) => (G(), B("section", cl, [c.value ? (G(), B("p", ll, q(J(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (G(), B("p", ul, q(J(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (G(), B(sa, { key: 2 }, [V("p", null, q(J(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), V("div", {
3222
+ }), (e, t) => (W(), z("section", ul, [c.value ? (W(), z("p", dl, K(q(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (W(), z("p", fl, K(q(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (W(), z(la, { key: 2 }, [B("p", null, K(q(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), B("div", {
3115
3223
  id: a,
3116
3224
  ref_key: "container",
3117
3225
  ref: o
3118
- }, null, 512)], 64)), U(J(P), { onClick: t[0] ||= (e) => r("close") }, {
3119
- default: X(() => [H(q(J(i).t("platform.action.cancel", "取消")), 1)]),
3226
+ }, null, 512)], 64)), H(q(F), { onClick: t[0] ||= (e) => r("close") }, {
3227
+ default: Y(() => [V(K(q(i).t("platform.action.cancel", "取消")), 1)]),
3120
3228
  _: 1
3121
3229
  })]));
3122
3230
  }
3123
- }), [["__scopeId", "data-v-85e0956f"]]), fl = {
3231
+ }), [["__scopeId", "data-v-85e0956f"]]), ml = {
3124
3232
  key: 0,
3125
3233
  class: "external-bindings"
3126
- }, pl = {
3234
+ }, hl = {
3127
3235
  key: 1,
3128
3236
  class: "external-bindings-error"
3129
- }, ml = {
3237
+ }, gl = {
3130
3238
  key: 2,
3131
3239
  class: "external-bindings-list"
3132
- }, hl = { class: "external-bindings-provider" }, gl = { class: "external-bindings-account" }, _l = { class: "external-bindings-provider" }, vl = { class: "external-bindings-account muted" }, yl = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
3240
+ }, _l = { class: "external-bindings-provider" }, vl = { class: "external-bindings-account" }, yl = { class: "external-bindings-provider" }, bl = { class: "external-bindings-account muted" }, xl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3133
3241
  name: "ExternalIdentityBindings",
3134
3242
  __name: "ExternalIdentityBindings",
3135
3243
  props: {
@@ -3137,22 +3245,22 @@ var cl = {
3137
3245
  token: {}
3138
3246
  },
3139
3247
  setup(e) {
3140
- let t = e, n = I(), r = K();
3248
+ let t = e, n = N(), r = G();
3141
3249
  function i() {
3142
- r.value && Zc(r.value.state), r.value = void 0;
3250
+ r.value && $c(r.value.state), r.value = void 0;
3143
3251
  }
3144
- let a = K(), o = K(!1), s = K(!1), c = K();
3145
- va(l);
3252
+ let a = G(), o = G(!1), s = G(!1), c = G();
3253
+ ba(l);
3146
3254
  async function l() {
3147
3255
  c.value = void 0;
3148
3256
  try {
3149
3257
  a.value = await t.client.identities(t.token);
3150
3258
  } catch (e) {
3151
- if (e instanceof ht && (e.status === 404 || e.status === 405)) {
3259
+ if (e instanceof rt && (e.status === 404 || e.status === 405)) {
3152
3260
  o.value = !0;
3153
3261
  return;
3154
3262
  }
3155
- c.value = () => $t(tt(e), n);
3263
+ c.value = () => Pt(en(e), n);
3156
3264
  }
3157
3265
  }
3158
3266
  async function u(e) {
@@ -3160,16 +3268,16 @@ var cl = {
3160
3268
  try {
3161
3269
  i();
3162
3270
  let n = await t.client.startBind(e.providerId, t.token);
3163
- Xc(n, {
3271
+ Qc(n, {
3164
3272
  providerId: e.providerId,
3165
3273
  purpose: "bind"
3166
- }), n.qrCode ? (r.value = n, s.value = !1) : Qc(n.authorizationUrl);
3274
+ }), n.qrCode ? (r.value = n, s.value = !1) : el(n.authorizationUrl);
3167
3275
  } catch (e) {
3168
- c.value = () => $t(tt(e), n), s.value = !1;
3276
+ c.value = () => Pt(en(e), n), s.value = !1;
3169
3277
  }
3170
3278
  }
3171
3279
  async function d(e) {
3172
- if (await cn({
3280
+ if (await It({
3173
3281
  title: n.t("platform.screen.ExternalIdentityBindings.unbind-title", "解除外部账号绑定"),
3174
3282
  content: n.t("platform.screen.ExternalIdentityBindings.unbind-content", "解除后将无法再通过 {provider} 登录当前账号。", { provider: e.providerTitle }),
3175
3283
  danger: !0
@@ -3178,65 +3286,65 @@ var cl = {
3178
3286
  try {
3179
3287
  await t.client.unbind(e.id, t.token), await l();
3180
3288
  } catch (e) {
3181
- c.value = () => $t(tt(e), n);
3289
+ c.value = () => Pt(en(e), n);
3182
3290
  } finally {
3183
3291
  s.value = !1;
3184
3292
  }
3185
3293
  }
3186
3294
  }
3187
- return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (G(), B("section", fl, [
3188
- r.value ? (G(), R(dl, {
3295
+ return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (W(), z("section", ml, [
3296
+ r.value ? (W(), L(pl, {
3189
3297
  key: r.value.state,
3190
3298
  start: r.value,
3191
3299
  onClose: i
3192
- }, null, 8, ["start"])) : z("v-if", !0),
3193
- V("h3", null, q(J(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
3194
- c.value ? (G(), B("p", pl, q(c.value()), 1)) : z("v-if", !0),
3195
- a.value ? (G(), B("ul", ml, [(G(!0), B(sa, null, Sa(a.value.bindings, (e) => (G(), B("li", { key: e.id }, [
3196
- V("span", hl, q(e.providerTitle), 1),
3197
- V("span", gl, q(e.displayName || e.externalUserId), 1),
3198
- U(J(P), {
3300
+ }, null, 8, ["start"])) : R("v-if", !0),
3301
+ B("h3", null, K(q(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
3302
+ c.value ? (W(), z("p", hl, K(c.value()), 1)) : R("v-if", !0),
3303
+ a.value ? (W(), z("ul", gl, [(W(!0), z(la, null, wa(a.value.bindings, (e) => (W(), z("li", { key: e.id }, [
3304
+ B("span", _l, K(e.providerTitle), 1),
3305
+ B("span", vl, K(e.displayName || e.externalUserId), 1),
3306
+ H(q(F), {
3199
3307
  size: "small",
3200
3308
  danger: "",
3201
3309
  disabled: s.value,
3202
3310
  onClick: (t) => d(e)
3203
3311
  }, {
3204
- default: X(() => [H(q(J(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
3312
+ default: Y(() => [V(K(q(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
3205
3313
  _: 1
3206
3314
  }, 8, ["disabled", "onClick"])
3207
- ]))), 128)), (G(!0), B(sa, null, Sa(a.value.bindableProviders, (e) => (G(), B("li", { key: e.providerId }, [
3208
- V("span", _l, q(e.title), 1),
3209
- V("span", vl, q(J(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
3210
- U(J(P), {
3315
+ ]))), 128)), (W(!0), z(la, null, wa(a.value.bindableProviders, (e) => (W(), z("li", { key: e.providerId }, [
3316
+ B("span", yl, K(e.title), 1),
3317
+ B("span", bl, K(q(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
3318
+ H(q(F), {
3211
3319
  size: "small",
3212
3320
  loading: s.value,
3213
3321
  onClick: (t) => u(e)
3214
3322
  }, {
3215
- default: X(() => [H(q(J(n).t("platform.screen.ExternalIdentityBindings.bind", "去绑定")), 1)]),
3323
+ default: Y(() => [V(K(q(n).t("platform.screen.ExternalIdentityBindings.bind", "去绑定")), 1)]),
3216
3324
  _: 1
3217
3325
  }, 8, ["loading", "onClick"])
3218
- ]))), 128))])) : z("v-if", !0)
3219
- ])) : z("v-if", !0);
3326
+ ]))), 128))])) : R("v-if", !0)
3327
+ ])) : R("v-if", !0);
3220
3328
  }
3221
- }), [["__scopeId", "data-v-c99eaf5c"]]), bl = {
3329
+ }), [["__scopeId", "data-v-c99eaf5c"]]), Sl = {
3222
3330
  key: 0,
3223
3331
  class: "profile-loading"
3224
- }, xl = {
3332
+ }, Cl = {
3225
3333
  key: 0,
3226
3334
  class: "profile-hero"
3227
- }, Sl = { class: "profile-avatar" }, Cl = { class: "profile-identity" }, wl = { class: "profile-kicker" }, Tl = { class: "profile-number" }, El = { class: "profile-tags" }, Dl = { class: "profile-account" }, Ol = {
3335
+ }, wl = { class: "profile-avatar" }, Tl = { class: "profile-identity" }, El = { class: "profile-kicker" }, Dl = { class: "profile-number" }, Ol = { class: "profile-tags" }, kl = { class: "profile-account" }, Al = {
3228
3336
  key: 1,
3229
3337
  class: "profile-body"
3230
- }, kl = { class: "profile-card profile-card--readonly" }, Al = { class: "profile-card-heading" }, jl = { class: "profile-details" }, Ml = { class: "profile-card profile-card--editable" }, Nl = { class: "profile-card-heading" }, Pl = { class: "profile-contact-fields" }, Fl = {
3338
+ }, jl = { class: "profile-card profile-card--readonly" }, Ml = { class: "profile-card-heading" }, Nl = { class: "profile-details" }, Pl = { class: "profile-card profile-card--editable" }, Fl = { class: "profile-card-heading" }, Il = { class: "profile-contact-fields" }, Ll = {
3231
3339
  key: 0,
3232
3340
  class: "profile-hint"
3233
- }, Il = {
3341
+ }, Rl = {
3234
3342
  key: 2,
3235
3343
  class: "profile-account-summary"
3236
- }, Ll = { class: "profile-account-monogram" }, Rl = {
3344
+ }, zl = { class: "profile-account-monogram" }, Bl = {
3237
3345
  key: 2,
3238
3346
  class: "profile-error"
3239
- }, zl = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
3347
+ }, Vl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3240
3348
  name: "CurrentUserProfileDialog",
3241
3349
  __name: "CurrentUserProfileDialog",
3242
3350
  props: {
@@ -3260,14 +3368,14 @@ var cl = {
3260
3368
  },
3261
3369
  emits: ["close", "submit"],
3262
3370
  setup(e, { emit: t }) {
3263
- let n = I(), r = e, i = t, a = K(""), o = K(""), s = K();
3264
- Y(() => r.profile, (e) => {
3371
+ let n = N(), r = e, i = t, a = G(""), o = G(""), s = G();
3372
+ J(() => r.profile, (e) => {
3265
3373
  a.value = e?.employee?.mobile ?? "", o.value = e?.employee?.email ?? "", s.value = e?.employee?.avatarAssetId;
3266
3374
  }, { immediate: !0 });
3267
- let c = L(() => r.profile?.employee), l = L(() => Hn({
3375
+ let c = I(() => r.profile?.employee), l = I(() => mn({
3268
3376
  moduleAlias: "iam.employee",
3269
3377
  http: r.http
3270
- })), u = L(() => c.value?.positions ?? []), d = {
3378
+ })), u = I(() => c.value?.positions ?? []), d = {
3271
3379
  fieldRef: { fieldName: "avatarAssetId" },
3272
3380
  allowedMediaTypes: [
3273
3381
  "image/png",
@@ -3280,16 +3388,16 @@ var cl = {
3280
3388
  storagePolicy: "DATABASE_INLINE",
3281
3389
  uploadAvailable: !0,
3282
3390
  readAvailable: !0
3283
- }, f = L(() => ({
3391
+ }, f = I(() => ({
3284
3392
  id: c.value?.id,
3285
3393
  avatarAssetId: s.value
3286
3394
  }));
3287
- return (t, r) => (G(), R(J(gn), {
3395
+ return (t, r) => (W(), L(q(lt), {
3288
3396
  open: e.open,
3289
- title: J(n).t("platform.screen.CurrentUserProfileDialog.my-profile", "个人信息"),
3397
+ title: q(n).t("platform.screen.CurrentUserProfileDialog.my-profile", "个人信息"),
3290
3398
  width: 640,
3291
3399
  class: "current-user-profile-dialog",
3292
- "confirm-text": c.value?.contactEditable ? J(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : J(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭"),
3400
+ "confirm-text": c.value?.contactEditable ? q(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : q(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭"),
3293
3401
  "confirm-loading": e.saving,
3294
3402
  "confirm-disabled": e.loading,
3295
3403
  onConfirm: r[5] ||= (e) => c.value?.contactEditable ? i("submit", {
@@ -3299,14 +3407,14 @@ var cl = {
3299
3407
  }) : i("close"),
3300
3408
  onCancel: r[6] ||= (e) => i("close")
3301
3409
  }, {
3302
- operation: X(() => [c.value?.contactEditable ? (G(), R(J(P), {
3410
+ operation: Y(() => [c.value?.contactEditable ? (W(), L(q(F), {
3303
3411
  key: 0,
3304
3412
  disabled: e.saving,
3305
3413
  onClick: r[3] ||= (e) => i("close")
3306
3414
  }, {
3307
- default: X(() => [H(q(J(n).t("platform.action.cancel", "取消")), 1)]),
3415
+ default: Y(() => [V(K(q(n).t("platform.action.cancel", "取消")), 1)]),
3308
3416
  _: 1
3309
- }, 8, ["disabled"])) : z("v-if", !0), U(J(P), {
3417
+ }, 8, ["disabled"])) : R("v-if", !0), H(q(F), {
3310
3418
  type: c.value?.contactEditable ? "primary" : "default",
3311
3419
  loading: e.saving,
3312
3420
  disabled: e.loading,
@@ -3316,25 +3424,25 @@ var cl = {
3316
3424
  avatarAssetId: s.value
3317
3425
  }) : i("close")
3318
3426
  }, {
3319
- default: X(() => [H(q(c.value?.contactEditable ? J(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : J(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭")), 1)]),
3427
+ default: Y(() => [V(K(c.value?.contactEditable ? q(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : q(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭")), 1)]),
3320
3428
  _: 1
3321
3429
  }, 8, [
3322
3430
  "type",
3323
3431
  "loading",
3324
3432
  "disabled"
3325
3433
  ])]),
3326
- default: X(() => [e.loading ? (G(), B("p", bl, q(J(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (G(), B(sa, { key: 1 }, [
3327
- c.value ? (G(), B("section", xl, [
3328
- V("div", Sl, [U(J(Ei), {
3434
+ default: Y(() => [e.loading ? (W(), z("p", Sl, K(q(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (W(), z(la, { key: 1 }, [
3435
+ c.value ? (W(), z("section", Cl, [
3436
+ B("div", wl, [H(q(Jr), {
3329
3437
  "hide-label": "",
3330
- label: J(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
3438
+ label: q(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
3331
3439
  value: s.value,
3332
3440
  record: f.value,
3333
3441
  context: l.value,
3334
3442
  definition: d,
3335
3443
  disabled: !c.value.contactEditable || e.saving,
3336
3444
  "form-session-key": c.value.id,
3337
- "upload-hint": J(n).t("platform.screen.CurrentUserProfileDialog.png-jpg-gif-and-webp-are-supported-up", "支持 PNG、JPG、GIF、WebP,文件不超过 1024 KB。"),
3445
+ "upload-hint": q(n).t("platform.screen.CurrentUserProfileDialog.png-jpg-gif-and-webp-are-supported-up", "支持 PNG、JPG、GIF、WebP,文件不超过 1024 KB。"),
3338
3446
  "onUpdate:value": r[0] ||= (e) => s.value = e
3339
3447
  }, null, 8, [
3340
3448
  "label",
@@ -3345,42 +3453,42 @@ var cl = {
3345
3453
  "form-session-key",
3346
3454
  "upload-hint"
3347
3455
  ])]),
3348
- V("div", Cl, [
3349
- V("p", wl, q(J(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
3350
- V("h2", null, q(c.value.title || J(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
3351
- V("p", Tl, q(c.value.employeeNo || J(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
3352
- V("div", El, [V("span", null, q(c.value.organizationTitle || c.value.organizationId || J(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), V("span", null, q(c.value.departmentTitle || c.value.departmentId || J(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
3456
+ B("div", Tl, [
3457
+ B("p", El, K(q(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
3458
+ B("h2", null, K(c.value.title || q(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
3459
+ B("p", Dl, K(c.value.employeeNo || q(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
3460
+ B("div", Ol, [B("span", null, K(c.value.organizationTitle || c.value.organizationId || q(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), B("span", null, K(c.value.departmentTitle || c.value.departmentId || q(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
3353
3461
  ]),
3354
- V("aside", Dl, [
3355
- V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
3356
- V("strong", null, q(e.profile?.username || "—"), 1),
3357
- V("small", null, q(e.profile?.timeZone || J(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
3462
+ B("aside", kl, [
3463
+ B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
3464
+ B("strong", null, K(e.profile?.username || "—"), 1),
3465
+ B("small", null, K(e.profile?.timeZone || q(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
3358
3466
  ])
3359
- ])) : z("v-if", !0),
3360
- c.value ? (G(), B("section", Ol, [V("div", kl, [V("div", Al, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), V("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), V("dl", jl, [
3361
- V("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
3362
- V("dd", null, q(c.value.organizationTitle || c.value.organizationId || "—") + " / " + q(c.value.departmentTitle || c.value.departmentId || "—"), 1),
3363
- V("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
3364
- V("dd", null, q(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? J(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
3365
- ])]), V("div", Ml, [
3366
- V("div", Nl, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), V("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
3367
- V("div", Pl, [V("label", null, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), U(J(F), {
3467
+ ])) : R("v-if", !0),
3468
+ c.value ? (W(), z("section", Al, [B("div", jl, [B("div", Ml, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), B("small", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), B("dl", Nl, [
3469
+ B("dt", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
3470
+ B("dd", null, K(c.value.organizationTitle || c.value.organizationId || "—") + " / " + K(c.value.departmentTitle || c.value.departmentId || "—"), 1),
3471
+ B("dt", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
3472
+ B("dd", null, K(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? q(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
3473
+ ])]), B("div", Pl, [
3474
+ B("div", Fl, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), B("small", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
3475
+ B("div", Il, [B("label", null, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), H(q(P), {
3368
3476
  value: a.value,
3369
3477
  disabled: !c.value.contactEditable || e.saving,
3370
3478
  "onUpdate:value": r[1] ||= (e) => a.value = e
3371
- }, null, 8, ["value", "disabled"])]), V("label", null, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.email", "邮箱")), 1), U(J(F), {
3479
+ }, null, 8, ["value", "disabled"])]), B("label", null, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.email", "邮箱")), 1), H(q(P), {
3372
3480
  value: o.value,
3373
3481
  disabled: !c.value.contactEditable || e.saving,
3374
3482
  "onUpdate:value": r[2] ||= (e) => o.value = e
3375
3483
  }, null, 8, ["value", "disabled"])])]),
3376
- c.value.contactEditable ? z("v-if", !0) : (G(), B("p", Fl, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
3377
- ])])) : (G(), B("section", Il, [V("span", Ll, q((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1), V("strong", null, q(e.profile?.username || J(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1)])),
3378
- e.externalLoginClient && e.authToken && e.open ? (G(), R(yl, {
3484
+ c.value.contactEditable ? R("v-if", !0) : (W(), z("p", Ll, K(q(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
3485
+ ])])) : (W(), z("section", Rl, [B("span", zl, K((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1), B("strong", null, K(e.profile?.username || q(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1)])),
3486
+ e.externalLoginClient && e.authToken && e.open ? (W(), L(xl, {
3379
3487
  key: 3,
3380
3488
  client: e.externalLoginClient,
3381
3489
  token: e.authToken
3382
- }, null, 8, ["client", "token"])) : z("v-if", !0)
3383
- ], 64)), e.error ? (G(), B("p", Rl, q(e.error), 1)) : z("v-if", !0)]),
3490
+ }, null, 8, ["client", "token"])) : R("v-if", !0)
3491
+ ], 64)), e.error ? (W(), z("p", Bl, K(e.error), 1)) : R("v-if", !0)]),
3384
3492
  _: 1
3385
3493
  }, 8, [
3386
3494
  "open",
@@ -3390,13 +3498,13 @@ var cl = {
3390
3498
  "confirm-disabled"
3391
3499
  ]));
3392
3500
  }
3393
- }), [["__scopeId", "data-v-dbb6933e"]]), Bl = {
3501
+ }), [["__scopeId", "data-v-dbb6933e"]]), Hl = {
3394
3502
  key: 0,
3395
3503
  class: "personal-access-tokens"
3396
- }, Vl = {
3504
+ }, Ul = {
3397
3505
  key: 0,
3398
3506
  class: "access-token-secret"
3399
- }, Hl = ["title"], Ul = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
3507
+ }, Wl = ["title"], Gl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3400
3508
  name: "PersonalAccessTokens",
3401
3509
  __name: "PersonalAccessTokens",
3402
3510
  props: {
@@ -3404,7 +3512,7 @@ var cl = {
3404
3512
  sessionToken: {}
3405
3513
  },
3406
3514
  setup(e) {
3407
- let t = e, n = I(), r = K([]), i = K(!1), a = K(""), o = K(90), s = K(), c = K(), l = K(!1), u = K(), d = K(!1), f = K(!1), p = L(() => [
3515
+ let t = e, n = N(), r = G([]), i = G(!1), a = G(""), o = G(90), s = G(), c = G(), l = G(!1), u = G(), d = G(!1), f = G(!1), p = I(() => [
3408
3516
  30,
3409
3517
  90,
3410
3518
  180,
@@ -3412,20 +3520,20 @@ var cl = {
3412
3520
  ].map((e) => ({
3413
3521
  value: e,
3414
3522
  label: n.t("platform.access-tokens.days", "{days} 天", { days: e })
3415
- }))), m = L(() => [{
3523
+ }))), m = I(() => [{
3416
3524
  key: "name",
3417
3525
  title: n.t("platform.access-tokens.name", "名称")
3418
3526
  }, {
3419
3527
  key: "expiresAt",
3420
3528
  title: n.t("platform.access-tokens.expires-at", "到期时间"),
3421
3529
  width: 156
3422
- }]), h = L(() => r.value.map((e) => ({
3530
+ }]), h = I(() => r.value.map((e) => ({
3423
3531
  ...e,
3424
- status: S(e)
3532
+ status: x(e)
3425
3533
  }))), g = !1;
3426
- _a(() => {
3534
+ ya(() => {
3427
3535
  g = !0, s.value = void 0;
3428
- }), va(_);
3536
+ }), ba(_);
3429
3537
  async function _() {
3430
3538
  l.value = !0, u.value = void 0, d.value = !1;
3431
3539
  try {
@@ -3438,7 +3546,7 @@ var cl = {
3438
3546
  }
3439
3547
  }
3440
3548
  function v(e) {
3441
- g || (u.value = () => $t(tt(e), n));
3549
+ g || (u.value = () => Pt(en(e), n));
3442
3550
  }
3443
3551
  async function y() {
3444
3552
  if (i.value && !l.value && a.value.trim() && !s.value) {
@@ -3459,7 +3567,7 @@ var cl = {
3459
3567
  }
3460
3568
  async function b(e) {
3461
3569
  let i = r.value.find((t) => t.id === e);
3462
- if (i && !l.value && !(!await cn({
3570
+ if (i && !l.value && !(!await It({
3463
3571
  title: n.t("platform.access-tokens.revoke-title", "撤销访问密钥"),
3464
3572
  content: n.t("platform.access-tokens.revoke-content", "使用“{name}”的工具将无法继续访问平台。", { name: i.name }),
3465
3573
  danger: !0
@@ -3474,9 +3582,9 @@ var cl = {
3474
3582
  }
3475
3583
  }
3476
3584
  }
3477
- async function x(e) {
3585
+ async function ee(e) {
3478
3586
  let i = r.value.find((t) => t.id === e);
3479
- if (i?.revokedAt && !l.value && !(!await cn({
3587
+ if (i?.revokedAt && !l.value && !(!await It({
3480
3588
  title: n.t("platform.access-tokens.delete-title", "删除访问密钥"),
3481
3589
  content: n.t("platform.access-tokens.delete-content", "从列表中删除“{name}”?审计记录将保留。", { name: i.name }),
3482
3590
  danger: !0
@@ -3491,37 +3599,37 @@ var cl = {
3491
3599
  }
3492
3600
  }
3493
3601
  }
3494
- function S(e) {
3602
+ function x(e) {
3495
3603
  return e.revokedAt ? "revoked" : Date.parse(e.expiresAt) <= Date.now() ? "expired" : "active";
3496
3604
  }
3497
- return (e, t) => i.value || r.value.length || u.value || s.value ? (G(), B("section", Bl, [
3498
- s.value ? (G(), B("div", Vl, [V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.copy-now", "密钥仅显示一次,请保存。")), 1), U(J(Br), {
3605
+ return (e, t) => i.value || r.value.length || u.value || s.value ? (W(), z("section", Hl, [
3606
+ s.value ? (W(), z("div", Ul, [B("label", null, [B("span", null, K(q(n).t("platform.access-tokens.copy-now", "密钥仅显示一次,请保存。")), 1), H(q(ui), {
3499
3607
  value: s.value,
3500
3608
  readonly: "",
3501
3609
  rows: 2
3502
- }, null, 8, ["value"])]), U(J(P), {
3610
+ }, null, 8, ["value"])]), H(q(F), {
3503
3611
  size: "small",
3504
3612
  onClick: t[0] ||= (e) => s.value = void 0
3505
3613
  }, {
3506
- default: X(() => [H(q(J(n).t("platform.access-tokens.saved", "已保存")), 1)]),
3614
+ default: Y(() => [V(K(q(n).t("platform.access-tokens.saved", "已保存")), 1)]),
3507
3615
  _: 1
3508
- })])) : i.value ? (G(), B("form", {
3616
+ })])) : i.value ? (W(), z("form", {
3509
3617
  key: 1,
3510
3618
  class: "access-token-create",
3511
- onSubmit: Oa(y, ["prevent"])
3619
+ onSubmit: Aa(y, ["prevent"])
3512
3620
  }, [
3513
- V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.name", "名称")), 1), U(J(F), {
3621
+ B("label", null, [B("span", null, K(q(n).t("platform.access-tokens.name", "名称")), 1), H(q(P), {
3514
3622
  value: a.value,
3515
3623
  disabled: l.value,
3516
3624
  autocomplete: "off",
3517
3625
  "onUpdate:value": t[1] ||= (e) => a.value = e
3518
3626
  }, null, 8, ["value", "disabled"])]),
3519
- V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.lifetime", "有效期")), 1), U(J(Or), {
3627
+ B("label", null, [B("span", null, K(q(n).t("platform.access-tokens.lifetime", "有效期")), 1), H(q(ei), {
3520
3628
  value: o.value,
3521
3629
  options: p.value,
3522
3630
  "allow-clear": !1,
3523
3631
  disabled: l.value,
3524
- "aria-label": J(n).t("platform.access-tokens.lifetime", "有效期"),
3632
+ "aria-label": q(n).t("platform.access-tokens.lifetime", "有效期"),
3525
3633
  "onUpdate:value": t[2] ||= (e) => o.value = Number(e)
3526
3634
  }, null, 8, [
3527
3635
  "value",
@@ -3529,32 +3637,32 @@ var cl = {
3529
3637
  "disabled",
3530
3638
  "aria-label"
3531
3639
  ])]),
3532
- U(J(P), {
3640
+ H(q(F), {
3533
3641
  type: "primary",
3534
3642
  "html-type": "submit",
3535
3643
  disabled: l.value || !a.value.trim(),
3536
3644
  loading: f.value
3537
3645
  }, {
3538
- default: X(() => [H(q(J(n).t("platform.access-tokens.create", "创建密钥")), 1)]),
3646
+ default: Y(() => [V(K(q(n).t("platform.access-tokens.create", "创建密钥")), 1)]),
3539
3647
  _: 1
3540
3648
  }, 8, ["disabled", "loading"])
3541
- ], 32)) : z("v-if", !0),
3542
- u.value ? (G(), R(J(Ft), {
3649
+ ], 32)) : R("v-if", !0),
3650
+ u.value ? (W(), L(q(_n), {
3543
3651
  key: 2,
3544
3652
  title: u.value(),
3545
3653
  message: ""
3546
- }, null, 8, ["title"])) : z("v-if", !0),
3547
- d.value ? (G(), R(J(P), {
3654
+ }, null, 8, ["title"])) : R("v-if", !0),
3655
+ d.value ? (W(), L(q(F), {
3548
3656
  key: 3,
3549
3657
  type: "text",
3550
3658
  size: "small",
3551
3659
  disabled: l.value,
3552
3660
  onClick: _
3553
3661
  }, {
3554
- default: X(() => [H(q(J(n).t("platform.access-tokens.reload", "重新加载")), 1)]),
3662
+ default: Y(() => [V(K(q(n).t("platform.access-tokens.reload", "重新加载")), 1)]),
3555
3663
  _: 1
3556
- }, 8, ["disabled"])) : z("v-if", !0),
3557
- U(J(jt), {
3664
+ }, 8, ["disabled"])) : R("v-if", !0),
3665
+ H(q(In), {
3558
3666
  class: "access-token-list",
3559
3667
  columns: m.value,
3560
3668
  rows: h.value,
@@ -3566,35 +3674,35 @@ var cl = {
3566
3674
  "action-column-title": "",
3567
3675
  "action-column-fixed": !1,
3568
3676
  "action-column-width": 64,
3569
- "empty-description": J(n).t("platform.access-tokens.empty", "暂无访问密钥")
3677
+ "empty-description": q(n).t("platform.access-tokens.empty", "暂无访问密钥")
3570
3678
  }, {
3571
- cell: X(({ column: e, record: t }) => [e.key === "name" ? (G(), B("div", {
3679
+ cell: Y(({ column: e, record: t }) => [e.key === "name" ? (W(), z("div", {
3572
3680
  key: 0,
3573
3681
  class: "access-token-name",
3574
3682
  title: String(t.id)
3575
- }, [V("span", null, q(t.name), 1), V("code", null, q(t.displayPrefix) + "…", 1)], 8, Hl)) : e.key === "expiresAt" ? (G(), B(sa, { key: 1 }, [t.status === "active" ? (G(), R(J(_t), {
3683
+ }, [B("span", null, K(t.name), 1), B("code", null, K(t.displayPrefix) + "…", 1)], 8, Wl)) : e.key === "expiresAt" ? (W(), z(la, { key: 1 }, [t.status === "active" ? (W(), L(q(Wr), {
3576
3684
  key: 1,
3577
3685
  value: String(t.expiresAt),
3578
3686
  precision: "minute"
3579
- }, null, 8, ["value"])) : (G(), R(J($r), {
3687
+ }, null, 8, ["value"])) : (W(), L(q(Or), {
3580
3688
  key: 0,
3581
3689
  items: [{
3582
3690
  key: String(t.status),
3583
- label: t.status === "revoked" ? J(n).t("platform.access-tokens.revoked", "已撤销") : J(n).t("platform.access-tokens.expired", "已过期"),
3691
+ label: t.status === "revoked" ? q(n).t("platform.access-tokens.revoked", "已撤销") : q(n).t("platform.access-tokens.expired", "已过期"),
3584
3692
  color: t.status === "expired" ? "red" : void 0
3585
3693
  }]
3586
- }, null, 8, ["items"]))], 64)) : z("v-if", !0)]),
3587
- rowActions: X(({ record: e }) => [e.revokedAt ? (G(), R(J(P), {
3694
+ }, null, 8, ["items"]))], 64)) : R("v-if", !0)]),
3695
+ rowActions: Y(({ record: e }) => [e.revokedAt ? (W(), L(q(F), {
3588
3696
  key: 1,
3589
3697
  type: "text",
3590
3698
  size: "small",
3591
3699
  danger: "",
3592
3700
  disabled: l.value,
3593
- onClick: (t) => x(String(e.id))
3701
+ onClick: (t) => ee(String(e.id))
3594
3702
  }, {
3595
- default: X(() => [H(q(J(n).t("platform.action.delete", "删除")), 1)]),
3703
+ default: Y(() => [V(K(q(n).t("platform.action.delete", "删除")), 1)]),
3596
3704
  _: 1
3597
- }, 8, ["disabled", "onClick"])) : (G(), R(J(P), {
3705
+ }, 8, ["disabled", "onClick"])) : (W(), L(q(F), {
3598
3706
  key: 0,
3599
3707
  type: "text",
3600
3708
  size: "small",
@@ -3602,7 +3710,7 @@ var cl = {
3602
3710
  disabled: l.value,
3603
3711
  onClick: (t) => b(String(e.id))
3604
3712
  }, {
3605
- default: X(() => [H(q(J(n).t("platform.access-tokens.revoke", "撤销")), 1)]),
3713
+ default: Y(() => [V(K(q(n).t("platform.access-tokens.revoke", "撤销")), 1)]),
3606
3714
  _: 1
3607
3715
  }, 8, ["disabled", "onClick"]))]),
3608
3716
  _: 1
@@ -3612,9 +3720,9 @@ var cl = {
3612
3720
  "loading",
3613
3721
  "empty-description"
3614
3722
  ])
3615
- ])) : z("v-if", !0);
3723
+ ])) : R("v-if", !0);
3616
3724
  }
3617
- }), [["__scopeId", "data-v-07369c31"]]), Wl = /* @__PURE__ */ W({
3725
+ }), [["__scopeId", "data-v-07369c31"]]), Kl = /* @__PURE__ */ U({
3618
3726
  __name: "PersonalAccessTokenDialog",
3619
3727
  props: {
3620
3728
  open: { type: Boolean },
@@ -3623,38 +3731,38 @@ var cl = {
3623
3731
  },
3624
3732
  emits: ["close"],
3625
3733
  setup(e, { emit: t }) {
3626
- let n = e, r = t, i = I();
3627
- return (t, a) => (G(), R(J(gn), {
3734
+ let n = e, r = t, i = N();
3735
+ return (t, a) => (W(), L(q(lt), {
3628
3736
  open: n.open,
3629
- title: J(i).t("platform.access-tokens.title", "个人访问密钥"),
3737
+ title: q(i).t("platform.access-tokens.title", "个人访问密钥"),
3630
3738
  width: 640,
3631
3739
  "scroll-content": "",
3632
3740
  onCancel: a[1] ||= (e) => r("close")
3633
3741
  }, {
3634
- operation: X(() => [U(J(P), { onClick: a[0] ||= (e) => r("close") }, {
3635
- default: X(() => [H(q(J(i).t("platform.content.close", "关闭")), 1)]),
3742
+ operation: Y(() => [H(q(F), { onClick: a[0] ||= (e) => r("close") }, {
3743
+ default: Y(() => [V(K(q(i).t("platform.content.close", "关闭")), 1)]),
3636
3744
  _: 1
3637
3745
  })]),
3638
- default: X(() => [e.open && e.sessionToken ? (G(), R(Ul, {
3746
+ default: Y(() => [e.open && e.sessionToken ? (W(), L(Gl, {
3639
3747
  key: e.sessionToken,
3640
3748
  client: e.client,
3641
3749
  "session-token": e.sessionToken
3642
- }, null, 8, ["client", "session-token"])) : z("v-if", !0)]),
3750
+ }, null, 8, ["client", "session-token"])) : R("v-if", !0)]),
3643
3751
  _: 1
3644
3752
  }, 8, ["open", "title"]));
3645
3753
  }
3646
- }), Gl = { class: "theme-skin-preferences" }, Kl = {
3754
+ }), ql = { class: "theme-skin-preferences" }, Jl = {
3647
3755
  key: 0,
3648
3756
  class: "theme-skin-error",
3649
3757
  role: "alert"
3650
- }, ql = ["aria-label"], Jl = [
3758
+ }, Yl = ["aria-label"], Xl = [
3651
3759
  "aria-checked",
3652
3760
  "tabindex",
3653
3761
  "data-skin-id",
3654
3762
  "disabled",
3655
3763
  "onClick",
3656
3764
  "onKeydown"
3657
- ], Yl = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
3765
+ ], Zl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3658
3766
  name: "ThemeSkinPreferencesDialog",
3659
3767
  __name: "ThemeSkinPreferencesDialog",
3660
3768
  props: {
@@ -3670,7 +3778,7 @@ var cl = {
3670
3778
  },
3671
3779
  emits: ["close", "select"],
3672
3780
  setup(e, { emit: t }) {
3673
- let n = I(), r = e, i = L(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3781
+ let n = N(), r = e, i = I(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3674
3782
  function o(e, t) {
3675
3783
  if (![
3676
3784
  "ArrowRight",
@@ -3686,25 +3794,25 @@ var cl = {
3686
3794
  let i = e.key === "Home" ? 0 : e.key === "End" ? r - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + r) % r, o = n?.children.item(i), s = o?.dataset.skinId;
3687
3795
  s && (a("select", s), o?.focus());
3688
3796
  }
3689
- return (t, r) => (G(), R(J(gn), {
3797
+ return (t, r) => (W(), L(q(lt), {
3690
3798
  open: e.open,
3691
- title: J(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3799
+ title: q(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3692
3800
  width: 460,
3693
- "confirm-text": e.saving ? J(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : J(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3801
+ "confirm-text": e.saving ? q(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : q(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3694
3802
  "confirm-loading": e.saving,
3695
3803
  onConfirm: r[0] ||= (e) => a("close"),
3696
3804
  onCancel: r[1] ||= (e) => a("close")
3697
3805
  }, {
3698
- default: X(() => [V("section", Gl, [
3699
- V("header", null, [V("h2", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), V("p", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3700
- i.value ? (G(), B("p", Kl, q(i.value), 1)) : z("v-if", !0),
3701
- V("div", {
3806
+ default: Y(() => [B("section", ql, [
3807
+ B("header", null, [B("h2", null, K(q(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), B("p", null, K(q(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3808
+ i.value ? (W(), z("p", Jl, K(i.value), 1)) : R("v-if", !0),
3809
+ B("div", {
3702
3810
  class: "theme-skin-grid",
3703
3811
  role: "radiogroup",
3704
- "aria-label": J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3705
- }, [(G(!0), B(sa, null, Sa(e.skins, (t, i) => (G(), B("button", {
3812
+ "aria-label": q(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3813
+ }, [(W(!0), z(la, null, wa(e.skins, (t, i) => (W(), z("button", {
3706
3814
  key: t.id,
3707
- class: ma(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3815
+ class: ga(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3708
3816
  type: "button",
3709
3817
  role: "radio",
3710
3818
  "aria-checked": t.id === e.activeSkinId,
@@ -3714,9 +3822,9 @@ var cl = {
3714
3822
  onClick: (e) => a("select", t.id),
3715
3823
  onKeydown: (e) => o(e, i)
3716
3824
  }, [
3717
- V("span", {
3825
+ B("span", {
3718
3826
  class: "theme-skin-preview",
3719
- style: ga({
3827
+ style: va({
3720
3828
  "--skin-canvas": t.theme.support.canvas,
3721
3829
  "--skin-surface": t.theme.support.surface,
3722
3830
  "--skin-text": t.theme.support.text,
@@ -3724,13 +3832,13 @@ var cl = {
3724
3832
  "--skin-accent": t.theme.brandAccent.base
3725
3833
  })
3726
3834
  }, [...r[2] ||= [
3727
- V("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3728
- V("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3729
- V("i", { class: "theme-skin-preview-card" }, null, -1)
3835
+ B("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3836
+ B("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3837
+ B("i", { class: "theme-skin-preview-card" }, null, -1)
3730
3838
  ]], 4),
3731
- V("strong", null, q(t.titleKey ? J(n).t(t.titleKey, t.title) : t.title), 1),
3732
- V("small", null, q(t.descriptionKey ? J(n).t(t.descriptionKey, t.description) : t.description), 1)
3733
- ], 42, Jl))), 128))], 8, ql)
3839
+ B("strong", null, K(t.titleKey ? q(n).t(t.titleKey, t.title) : t.title), 1),
3840
+ B("small", null, K(t.descriptionKey ? q(n).t(t.descriptionKey, t.description) : t.description), 1)
3841
+ ], 42, Xl))), 128))], 8, Yl)
3734
3842
  ])]),
3735
3843
  _: 1
3736
3844
  }, 8, [
@@ -3743,8 +3851,8 @@ var cl = {
3743
3851
  }), [["__scopeId", "data-v-d7f8f04d"]]);
3744
3852
  //#endregion
3745
3853
  //#region src/app/useCurrentUserProfile.ts
3746
- function Xl(e) {
3747
- let t = K(), n = 0, r = !1, i = () => {
3854
+ function Ql(e) {
3855
+ let t = G(), n = 0, r = !1, i = () => {
3748
3856
  let t = e.currentUser();
3749
3857
  return t ? JSON.stringify([
3750
3858
  e.token(),
@@ -3767,12 +3875,12 @@ function Xl(e) {
3767
3875
  }
3768
3876
  }
3769
3877
  let o = () => a((t) => e.client.currentProfile(t));
3770
- return Y([i, () => e.scopeKey?.()], () => {
3878
+ return J([i, () => e.scopeKey?.()], () => {
3771
3879
  n++, t.value = void 0, o().catch(() => void 0);
3772
3880
  }, {
3773
3881
  immediate: !0,
3774
3882
  flush: "sync"
3775
- }), ya(() => {
3883
+ }), xa(() => {
3776
3884
  r = !0, n++;
3777
3885
  }), {
3778
3886
  profile: t,
@@ -3782,8 +3890,8 @@ function Xl(e) {
3782
3890
  }
3783
3891
  //#endregion
3784
3892
  //#region src/app/usePersonalAccessTokenAccess.ts
3785
- function Zl(e) {
3786
- let t = K(!1), n = K(), r = 0, i = !1;
3893
+ function $l(e) {
3894
+ let t = G(!1), n = G(), r = 0, i = !1;
3787
3895
  async function a() {
3788
3896
  if (i) return;
3789
3897
  let a = e.sessionToken(), o = e.scopeKey?.(), s = ++r;
@@ -3799,7 +3907,7 @@ function Zl(e) {
3799
3907
  c() && (t.value = !1);
3800
3908
  }
3801
3909
  }
3802
- Y([e.sessionToken, () => e.scopeKey?.()], () => {
3910
+ J([e.sessionToken, () => e.scopeKey?.()], () => {
3803
3911
  t.value = !1, a();
3804
3912
  }, {
3805
3913
  immediate: !0,
@@ -3810,31 +3918,31 @@ function Zl(e) {
3810
3918
  }, s = (t) => {
3811
3919
  t.storageArea === window.localStorage && e.sessionToken() !== n.value && a();
3812
3920
  };
3813
- return va(() => {
3921
+ return ba(() => {
3814
3922
  window.addEventListener("focus", o), window.addEventListener("storage", s);
3815
- }), ya(() => {
3923
+ }), xa(() => {
3816
3924
  i = !0, r++, window.removeEventListener("focus", o), window.removeEventListener("storage", s);
3817
3925
  }), {
3818
3926
  available: t,
3819
- sessionToken: xa(n),
3927
+ sessionToken: Ca(n),
3820
3928
  refresh: a
3821
3929
  };
3822
3930
  }
3823
3931
  //#endregion
3824
3932
  //#region src/app/themeSkinPreference.ts
3825
- var Ql = "workbench.theme-skin";
3826
- async function $l(e, t, n = () => !0) {
3827
- let r = await e.restore(Ql, t, { persistence: "backend" });
3933
+ var eu = "workbench.theme-skin";
3934
+ async function tu(e, t, n = () => !0) {
3935
+ let r = await e.restore(eu, t, { persistence: "backend" });
3828
3936
  if (!n()) return t;
3829
- let i = Yn(r).id;
3830
- return await e.set(Ql, i, { persistence: "local" }), i;
3937
+ let i = tt(r).id;
3938
+ return await e.set(eu, i, { persistence: "local" }), i;
3831
3939
  }
3832
- async function eu(e, t, n, r = () => !0) {
3833
- if (await e.set(Ql, t, { persistence: "local" }), !r()) return { skinId: n };
3940
+ async function nu(e, t, n, r = () => !0) {
3941
+ if (await e.set(eu, t, { persistence: "local" }), !r()) return { skinId: n };
3834
3942
  try {
3835
- return await e.set(Ql, t, { persistence: "backend" }), { skinId: t };
3943
+ return await e.set(eu, t, { persistence: "backend" }), { skinId: t };
3836
3944
  } catch {
3837
- return r() ? (await e.set(Ql, n, { persistence: "local" }), {
3945
+ return r() ? (await e.set(eu, n, { persistence: "local" }), {
3838
3946
  skinId: n,
3839
3947
  failure: "save-failed"
3840
3948
  }) : { skinId: n };
@@ -3842,7 +3950,7 @@ async function eu(e, t, n, r = () => !0) {
3842
3950
  }
3843
3951
  //#endregion
3844
3952
  //#region src/app/WorkbenchAccountCenter.vue
3845
- var tu = /* @__PURE__ */ W({
3953
+ var ru = /* @__PURE__ */ U({
3846
3954
  name: "WorkbenchAccountCenter",
3847
3955
  inheritAttrs: !1,
3848
3956
  __name: "WorkbenchAccountCenter",
@@ -3858,90 +3966,90 @@ var tu = /* @__PURE__ */ W({
3858
3966
  "update:skinId"
3859
3967
  ],
3860
3968
  setup(e, { expose: t, emit: n }) {
3861
- let r = e, i = n, a = I(), o = { request: (e) => r.context ? r.context.http.request(e) : Promise.reject(/* @__PURE__ */ Error("Account context is unavailable")) }, l = te(o), u = s(o), d = c(o), f = L(() => {
3969
+ let r = e, i = n, a = N(), o = { request: (e) => r.context ? r.context.http.request(e) : Promise.reject(/* @__PURE__ */ Error("Account context is unavailable")) }, c = s(o), l = Ke(o), u = ee(o), d = I(() => {
3862
3970
  let e = r.context;
3863
- return e?.token ? li(e.http, { Authorization: `Bearer ${e.token}` }) : void 0;
3864
- }), p = () => r.context?.token, m = () => {
3971
+ return e?.token ? Yr(e.http, { Authorization: `Bearer ${e.token}` }) : void 0;
3972
+ }), f = () => r.context?.token, p = () => {
3865
3973
  let e = r.context?.currentUser;
3866
3974
  return JSON.stringify([
3867
- p(),
3975
+ f(),
3868
3976
  e?.userId,
3869
3977
  e?.tenantId,
3870
3978
  e?.organizationId,
3871
3979
  e?.system
3872
3980
  ]);
3873
- }, h = L(() => r.context?.currentUser && p() && r.context.preferencePersistence !== "local" ? m() : void 0), g = Xl({
3981
+ }, m = I(() => r.context?.currentUser && f() && r.context.preferencePersistence !== "local" ? p() : void 0), h = Ql({
3874
3982
  currentUser: () => r.context?.currentUser,
3875
- token: p,
3983
+ token: f,
3876
3984
  scopeKey: () => r.context?.http,
3877
- client: l
3878
- }), _ = L((e) => {
3879
- let t = r.context?.http, n = m();
3985
+ client: c
3986
+ }), g = I((e) => {
3987
+ let t = r.context?.http, n = p();
3880
3988
  return e && e.http === t && e.identity === n ? e : {
3881
3989
  http: t,
3882
3990
  identity: n
3883
3991
  };
3884
- }), v = Zl({
3885
- scopeKey: () => _.value,
3886
- client: d,
3887
- sessionToken: () => r.context?.currentUser && !r.menu?.hiddenCommands?.includes("accessTokens") ? p() : void 0
3888
- }), y = L(() => r.context ? M(a, r.menu, v.available.value) : void 0), b = K(), x = K(!1), S = K(!1), C = K(!1), w = K(), ee = K(""), T = K(""), ne = K(""), E = K(Yn(r.skinId ?? sr.get("workbench.theme-skin", "light-blue")).id), D = K(), O = 0, k = 0, A = 0, j = 0;
3889
- Y(() => r.skinId, (e) => {
3890
- e && (E.value = Yn(e).id);
3992
+ }), _ = $l({
3993
+ scopeKey: () => g.value,
3994
+ client: u,
3995
+ sessionToken: () => r.context?.currentUser && !r.menu?.hiddenCommands?.includes("accessTokens") ? f() : void 0
3996
+ }), v = I(() => r.context ? We(a, r.menu, _.available.value) : void 0), y = G(), b = G(!1), x = G(!1), te = G(!1), S = G(), ne = G(""), C = G(""), w = G(""), T = G(tt(r.skinId ?? bn.get("workbench.theme-skin", "light-blue")).id), E = G(), D = 0, re = 0, O = 0, k = 0;
3997
+ J(() => r.skinId, (e) => {
3998
+ e && (T.value = tt(e).id);
3891
3999
  });
3892
- function re() {
3893
- ee.value = "", T.value = "", ne.value = "";
4000
+ function A() {
4001
+ ne.value = "", C.value = "", w.value = "";
3894
4002
  }
3895
- function ie() {
3896
- ++O, ++k, ++j, b.value = void 0, x.value = !1, S.value = !1, C.value = !1, w.value = void 0, D.value = void 0, re();
4003
+ function j() {
4004
+ ++D, ++re, ++k, y.value = void 0, b.value = !1, x.value = !1, te.value = !1, S.value = void 0, E.value = void 0, A();
3897
4005
  }
3898
- Y([
3899
- m,
4006
+ J([
4007
+ p,
3900
4008
  () => r.context?.http,
3901
- p
4009
+ f
3902
4010
  ], () => {
3903
- ie(), p() && r.context?.currentUser && se();
4011
+ j(), f() && r.context?.currentUser && se();
3904
4012
  }, {
3905
4013
  immediate: !0,
3906
4014
  flush: "sync"
3907
- }), Y(b, () => {
3908
- ++A, C.value = !1;
3909
- }, { flush: "sync" }), Y(v.available, (e) => {
3910
- !e && b.value === "accessTokens" && N();
3911
- }), Y(y, (e) => {
3912
- b.value && !x.value && e && !e.some((e) => e.key === b.value) && ie();
4015
+ }), J(y, () => {
4016
+ ++O, te.value = !1;
4017
+ }, { flush: "sync" }), J(_.available, (e) => {
4018
+ !e && y.value === "accessTokens" && M();
4019
+ }), J(v, (e) => {
4020
+ y.value && !b.value && e && !e.some((e) => e.key === y.value) && j();
3913
4021
  });
3914
- function N() {
3915
- S.value || (++k, b.value = void 0, x.value = !1, w.value = void 0, re());
4022
+ function M() {
4023
+ x.value || (++re, y.value = void 0, b.value = !1, S.value = void 0, A());
3916
4024
  }
3917
4025
  function ae(e) {
3918
- let t = tt(e);
3919
- w.value = () => $t(t, a);
4026
+ let t = en(e);
4027
+ S.value = () => Pt(t, a);
3920
4028
  }
3921
4029
  function oe(e) {
3922
- E.value = e, i("update:skinId", e);
4030
+ T.value = e, i("update:skinId", e);
3923
4031
  }
3924
4032
  async function se() {
3925
4033
  if (r.context?.preferencePersistence === "local") return;
3926
- let e = ++j;
4034
+ let e = ++k;
3927
4035
  try {
3928
- let t = await $l(sr, E.value, () => e === j);
3929
- e === j && oe(t);
4036
+ let t = await tu(bn, T.value, () => e === k);
4037
+ e === k && oe(t);
3930
4038
  } catch {}
3931
4039
  }
3932
4040
  async function ce(e) {
3933
- if (S.value || e === E.value) return;
3934
- let t = ++j, n = E.value;
3935
- oe(e), S.value = !0, D.value = void 0;
4041
+ if (x.value || e === T.value) return;
4042
+ let t = ++k, n = T.value;
4043
+ oe(e), x.value = !0, E.value = void 0;
3936
4044
  try {
3937
4045
  if (r.context?.preferencePersistence === "local") {
3938
- await sr.set(Ql, e, { persistence: "local" });
4046
+ await bn.set(eu, e, { persistence: "local" });
3939
4047
  return;
3940
4048
  }
3941
- let i = await eu(sr, e, n, () => t === j);
3942
- t === j && (oe(i.skinId), D.value = i.failure);
4049
+ let i = await nu(bn, e, n, () => t === k);
4050
+ t === k && (oe(i.skinId), E.value = i.failure);
3943
4051
  } finally {
3944
- t === j && (S.value = !1);
4052
+ t === k && (x.value = !1);
3945
4053
  }
3946
4054
  }
3947
4055
  async function le(e) {
@@ -3949,113 +4057,113 @@ var tu = /* @__PURE__ */ W({
3949
4057
  i("userCommand", e);
3950
4058
  return;
3951
4059
  }
3952
- let t = y.value?.find((t) => t.key === e);
3953
- if (!t || t.disabled || S.value) return;
3954
- let n = ++k, a = m();
4060
+ let t = v.value?.find((t) => t.key === e);
4061
+ if (!t || t.disabled || x.value) return;
4062
+ let n = ++re, a = p();
3955
4063
  try {
3956
4064
  if (r.beforeCommand && !await r.beforeCommand({
3957
4065
  key: e,
3958
4066
  currentUser: r.context.currentUser
3959
- }) || n !== k || a !== m() || !y.value?.some((t) => t.key === e && !t.disabled)) return;
3960
- if (w.value = void 0, D.value = void 0, e.includes(".")) {
4067
+ }) || n !== re || a !== p() || !v.value?.some((t) => t.key === e && !t.disabled)) return;
4068
+ if (S.value = void 0, E.value = void 0, e.includes(".")) {
3961
4069
  i("userCommand", e);
3962
4070
  return;
3963
4071
  }
3964
4072
  if (e === "logout") {
3965
- N(), i("logout", "requested");
4073
+ M(), i("logout", "requested");
3966
4074
  return;
3967
4075
  }
3968
- if (e === "accessTokens" && (await v.refresh(), n !== k || a !== m() || !v.available.value)) return;
3969
- re(), x.value = !1, b.value = e, e === "profile" && await ue();
4076
+ if (e === "accessTokens" && (await _.refresh(), n !== re || a !== p() || !_.available.value)) return;
4077
+ A(), b.value = !1, y.value = e, e === "profile" && await ue();
3970
4078
  } catch (e) {
3971
- n === k && a === m() && (b.value ? ae(e) : cr(e, {
4079
+ n === re && a === p() && (y.value ? ae(e) : xn(e, {
3972
4080
  source: "workbench-account",
3973
4081
  phase: "action"
3974
4082
  }));
3975
4083
  }
3976
4084
  }
3977
4085
  async function ue() {
3978
- let e = O, t = ++A, n = () => e === O && t === A && b.value === "profile";
3979
- C.value = !0;
4086
+ let e = D, t = ++O, n = () => e === D && t === O && y.value === "profile";
4087
+ te.value = !0;
3980
4088
  try {
3981
- await g.refresh();
4089
+ await h.refresh();
3982
4090
  } catch (e) {
3983
4091
  n() && ae(e);
3984
4092
  } finally {
3985
- n() && (C.value = !1);
4093
+ n() && (te.value = !1);
3986
4094
  }
3987
4095
  }
3988
4096
  async function de(e) {
3989
- if (S.value) return;
3990
- let t = O;
3991
- S.value = !0, w.value = void 0;
4097
+ if (x.value) return;
4098
+ let t = D;
4099
+ x.value = !0, S.value = void 0;
3992
4100
  try {
3993
- await g.save(e) && t === O && (b.value = void 0, ft(a.t("platform.screen.App.your-profile-has-been-saved", "个人资料已保存")));
4101
+ await h.save(e) && t === D && (y.value = void 0, En(a.t("platform.screen.App.your-profile-has-been-saved", "个人资料已保存")));
3994
4102
  } catch (e) {
3995
- t === O && ae(e);
4103
+ t === D && ae(e);
3996
4104
  } finally {
3997
- t === O && (S.value = !1);
4105
+ t === D && (x.value = !1);
3998
4106
  }
3999
4107
  }
4000
4108
  function fe() {
4001
- if (!ee.value.trim()) return a.t("platform.screen.App.enter-your-current-password", "请输入当前密码");
4002
- if (!T.value.trim()) return a.t("platform.screen.App.enter-your-new-password", "请输入新密码");
4003
- if (T.value !== ne.value) return a.t("platform.screen.App.the-new-passwords-do-not-match", "两次输入的新密码不一致");
4004
- if (ee.value === T.value) return a.t("platform.screen.App.the-new-password-must-differ-from-the-current", "新密码不能与当前密码相同");
4109
+ if (!ne.value.trim()) return a.t("platform.screen.App.enter-your-current-password", "请输入当前密码");
4110
+ if (!C.value.trim()) return a.t("platform.screen.App.enter-your-new-password", "请输入新密码");
4111
+ if (C.value !== w.value) return a.t("platform.screen.App.the-new-passwords-do-not-match", "两次输入的新密码不一致");
4112
+ if (ne.value === C.value) return a.t("platform.screen.App.the-new-password-must-differ-from-the-current", "新密码不能与当前密码相同");
4005
4113
  }
4006
4114
  async function pe() {
4007
- if (S.value) return;
4115
+ if (x.value) return;
4008
4116
  let e = fe();
4009
4117
  if (e) {
4010
- w.value = () => e;
4118
+ S.value = () => e;
4011
4119
  return;
4012
4120
  }
4013
- let t = p();
4121
+ let t = f();
4014
4122
  if (!t) {
4015
- w.value = () => a.t("platform.screen.App.your-session-is-no-longer-valid-please-sign", "登录已失效,请重新登录");
4123
+ S.value = () => a.t("platform.screen.App.your-session-is-no-longer-valid-please-sign", "登录已失效,请重新登录");
4016
4124
  return;
4017
4125
  }
4018
- let n = O;
4019
- S.value = !0, w.value = void 0;
4126
+ let n = D;
4127
+ x.value = !0, S.value = void 0;
4020
4128
  try {
4021
- await l.changeOwnPassword({
4022
- currentPassword: ee.value,
4023
- newPassword: T.value
4024
- }, t), n === O && (b.value = void 0, re(), i("logout", "passwordChanged"));
4129
+ await c.changeOwnPassword({
4130
+ currentPassword: ne.value,
4131
+ newPassword: C.value
4132
+ }, t), n === D && (y.value = void 0, A(), i("logout", "passwordChanged"));
4025
4133
  } catch (e) {
4026
- n === O && ae(e);
4134
+ n === D && ae(e);
4027
4135
  } finally {
4028
- n === O && (S.value = !1);
4136
+ n === D && (x.value = !1);
4029
4137
  }
4030
4138
  }
4031
- async function he() {
4032
- await pa(), ie(), x.value = !0, b.value = "changePassword";
4139
+ async function me() {
4140
+ await ha(), j(), b.value = !0, y.value = "changePassword";
4033
4141
  }
4034
- return _a(ie), t({ requestPasswordChange: he }), (t, n) => (G(), B(sa, null, [
4035
- Ca(t.$slots, "default", {
4036
- items: y.value,
4142
+ return ya(j), t({ requestPasswordChange: me }), (t, n) => (W(), z(la, null, [
4143
+ Ta(t.$slots, "default", {
4144
+ items: v.value,
4037
4145
  select: le,
4038
- refresh: J(v).refresh,
4039
- profile: J(g).profile.value,
4040
- skinId: E.value
4146
+ refresh: q(_).refresh,
4147
+ profile: q(h).profile.value,
4148
+ skinId: T.value
4041
4149
  }),
4042
- e.context ? (G(), R(me, {
4150
+ e.context ? (W(), L(ie, {
4043
4151
  key: 0,
4044
- open: b.value === "languageSettings",
4045
- "identity-scope": h.value,
4046
- "onUpdate:open": n[0] ||= (e) => !e && N()
4047
- }, null, 8, ["open", "identity-scope"])) : z("v-if", !0),
4048
- U(Jc, {
4049
- "current-password": ee.value,
4050
- "onUpdate:currentPassword": n[1] ||= (e) => ee.value = e,
4051
- "new-password": T.value,
4052
- "onUpdate:newPassword": n[2] ||= (e) => T.value = e,
4053
- "confirm-password": ne.value,
4054
- "onUpdate:confirmPassword": n[3] ||= (e) => ne.value = e,
4055
- open: b.value === "changePassword",
4056
- saving: S.value,
4057
- error: w.value?.(),
4058
- onClose: N,
4152
+ open: y.value === "languageSettings",
4153
+ "identity-scope": m.value,
4154
+ "onUpdate:open": n[0] ||= (e) => !e && M()
4155
+ }, null, 8, ["open", "identity-scope"])) : R("v-if", !0),
4156
+ H(Xc, {
4157
+ "current-password": ne.value,
4158
+ "onUpdate:currentPassword": n[1] ||= (e) => ne.value = e,
4159
+ "new-password": C.value,
4160
+ "onUpdate:newPassword": n[2] ||= (e) => C.value = e,
4161
+ "confirm-password": w.value,
4162
+ "onUpdate:confirmPassword": n[3] ||= (e) => w.value = e,
4163
+ open: y.value === "changePassword",
4164
+ saving: x.value,
4165
+ error: S.value?.(),
4166
+ onClose: M,
4059
4167
  onSubmit: pe
4060
4168
  }, null, 8, [
4061
4169
  "current-password",
@@ -4065,16 +4173,16 @@ var tu = /* @__PURE__ */ W({
4065
4173
  "saving",
4066
4174
  "error"
4067
4175
  ]),
4068
- U(zl, {
4069
- open: b.value === "profile",
4070
- profile: J(g).profile.value,
4071
- loading: C.value,
4072
- saving: S.value,
4073
- error: w.value?.(),
4074
- "external-login-client": J(u),
4075
- http: f.value,
4076
- "auth-token": b.value === "profile" ? e.context?.token : void 0,
4077
- onClose: N,
4176
+ H(Vl, {
4177
+ open: y.value === "profile",
4178
+ profile: q(h).profile.value,
4179
+ loading: te.value,
4180
+ saving: x.value,
4181
+ error: S.value?.(),
4182
+ "external-login-client": q(l),
4183
+ http: d.value,
4184
+ "auth-token": y.value === "profile" ? e.context?.token : void 0,
4185
+ onClose: M,
4078
4186
  onSubmit: de
4079
4187
  }, null, 8, [
4080
4188
  "open",
@@ -4086,23 +4194,23 @@ var tu = /* @__PURE__ */ W({
4086
4194
  "http",
4087
4195
  "auth-token"
4088
4196
  ]),
4089
- U(Wl, {
4090
- open: b.value === "accessTokens",
4091
- client: J(d),
4197
+ H(Kl, {
4198
+ open: y.value === "accessTokens",
4199
+ client: q(u),
4092
4200
  "session-token": e.context?.token,
4093
- onClose: N
4201
+ onClose: M
4094
4202
  }, null, 8, [
4095
4203
  "open",
4096
4204
  "client",
4097
4205
  "session-token"
4098
4206
  ]),
4099
- U(Yl, {
4100
- open: b.value === "themeSkin",
4101
- skins: J(fn),
4102
- "active-skin-id": E.value,
4103
- saving: S.value,
4104
- failure: D.value,
4105
- onClose: N,
4207
+ H(Zl, {
4208
+ open: y.value === "themeSkin",
4209
+ skins: q(_r),
4210
+ "active-skin-id": T.value,
4211
+ saving: x.value,
4212
+ failure: E.value,
4213
+ onClose: M,
4106
4214
  onSelect: ce
4107
4215
  }, null, 8, [
4108
4216
  "open",
@@ -4116,7 +4224,7 @@ var tu = /* @__PURE__ */ W({
4116
4224
  });
4117
4225
  //#endregion
4118
4226
  //#region src/app/workbenchRouteSync.ts
4119
- function nu(e, t) {
4227
+ function iu(e, t) {
4120
4228
  if (e === t) return !0;
4121
4229
  if (e === void 0 || t === void 0) return !1;
4122
4230
  let n = (e) => {
@@ -4125,16 +4233,16 @@ function nu(e, t) {
4125
4233
  };
4126
4234
  return n(e) === n(t);
4127
4235
  }
4128
- function ru(e, t, n) {
4129
- let r = oc(e) ?? "/";
4130
- return nu(r, t) ? void 0 : {
4236
+ function au(e, t, n) {
4237
+ let r = cc(e) ?? "/";
4238
+ return iu(r, t) ? void 0 : {
4131
4239
  url: r,
4132
4240
  mode: n
4133
4241
  };
4134
4242
  }
4135
4243
  //#endregion
4136
4244
  //#region src/consumer/AppWorkbenchShell.vue
4137
- var iu = /* @__PURE__ */ W({
4245
+ var ou = /* @__PURE__ */ U({
4138
4246
  name: "AppWorkbenchShell",
4139
4247
  inheritAttrs: !1,
4140
4248
  __name: "AppWorkbenchShell",
@@ -4172,255 +4280,255 @@ var iu = /* @__PURE__ */ W({
4172
4280
  "update:skinId"
4173
4281
  ],
4174
4282
  setup(e, { emit: t }) {
4175
- let r = I(), i = e, o = t, s = L(() => i.accountContext ? {
4176
- ...i.accountContext,
4177
- currentUser: i.startup.session.currentUser
4283
+ let n = N(), r = e, i = t, a = I(() => r.accountContext ? {
4284
+ ...r.accountContext,
4285
+ currentUser: r.startup.session.currentUser
4178
4286
  } : void 0);
4179
- async function c(e) {
4180
- return e.key === "logout" && !await De((i.startup.tabs ?? []).map((e) => e.key), "logout", r) ? !1 : !i.beforeAccountCommand || i.beforeAccountCommand(e);
4287
+ async function o(e) {
4288
+ return e.key === "logout" && !await Oe((r.startup.tabs ?? []).map((e) => e.key), "logout", n) ? !1 : !r.beforeAccountCommand || r.beforeAccountCommand(e);
4181
4289
  }
4182
- let l = L(() => i.startup.activeTabKey), u = K([]), d = 0, f = Promise.resolve(), p = !1;
4183
- fe({
4184
- refreshMenus: i.loadMenus ? async () => {
4185
- let e = i.startup.session, t = await i.loadMenus();
4186
- if (!p || e !== i.startup.session) throw Error(r.t("platform.screen.AppWorkbenchShell.your-sign-in-state-has-changed-please-try", "登录状态已变化,请重试"));
4187
- return o("update:startup", {
4188
- ...i.startup,
4290
+ let s = I(() => r.startup.activeTabKey), c = G([]), l = 0, u = Promise.resolve(), d = !1;
4291
+ pe({
4292
+ refreshMenus: r.loadMenus ? async () => {
4293
+ let e = r.startup.session, t = await r.loadMenus();
4294
+ if (!d || e !== r.startup.session) throw Error(n.t("platform.screen.AppWorkbenchShell.your-sign-in-state-has-changed-please-try", "登录状态已变化,请重试"));
4295
+ return i("update:startup", {
4296
+ ...r.startup,
4189
4297
  menus: t
4190
4298
  }), t;
4191
4299
  } : void 0,
4192
4300
  openMenu: (e) => {
4193
- let t = n(e);
4194
- t && h(e, t);
4301
+ let t = fe(e);
4302
+ t && p(e, t);
4195
4303
  },
4196
- openRoute: ee,
4197
- replaceRoute: T,
4198
- closeCurrentTab: te,
4199
- openPage: w,
4200
- replacePage: k,
4201
- closePage: v,
4202
- setTabName: O
4203
- }), va(() => {
4204
- p = !0, ke(), re(), j(i.location);
4205
- }), _a(() => {
4206
- p = !1;
4207
- }), Y(() => i.location, (e) => j(e));
4208
- function m(e, t = void 0) {
4209
- o("update:startup", e), t && A(e, t);
4304
+ openRoute: te,
4305
+ replaceRoute: S,
4306
+ closeCurrentTab: ne,
4307
+ openPage: x,
4308
+ replacePage: D,
4309
+ closePage: g,
4310
+ setTabName: E
4311
+ }), ba(() => {
4312
+ d = !0, Ae(), A(), k(r.location);
4313
+ }), ya(() => {
4314
+ d = !1;
4315
+ }), J(() => r.location, (e) => k(e));
4316
+ function f(e, t = void 0) {
4317
+ i("update:startup", e), t && O(e, t);
4210
4318
  }
4211
- function h(e, t) {
4319
+ function p(e, t) {
4212
4320
  if (t.openMode === "window") {
4213
- window.open(ac(e, t), "_blank", "noopener,noreferrer");
4321
+ window.open(sc(e, t), "_blank", "noopener,noreferrer");
4214
4322
  return;
4215
4323
  }
4216
- let n = rc(i.startup.tabs ?? [], e, t, i.resolveOptions);
4217
- m({
4218
- ...i.startup,
4324
+ let n = ac(r.startup.tabs ?? [], e, t, r.resolveOptions);
4325
+ f({
4326
+ ...r.startup,
4219
4327
  tabs: n.tabs,
4220
4328
  activeTabKey: n.activeTabKey
4221
4329
  }, "push");
4222
4330
  }
4223
- function g(e) {
4224
- e !== i.startup.activeTabKey && m({
4225
- ...i.startup,
4331
+ function m(e) {
4332
+ e !== r.startup.activeTabKey && f({
4333
+ ...r.startup,
4226
4334
  activeTabKey: e
4227
4335
  }, "push");
4228
4336
  }
4229
- async function _(e) {
4230
- await De([e], "refresh", r) && p && (i.startup.tabs ?? []).some((t) => t.key === e) && o("refreshPage", e);
4337
+ async function h(e) {
4338
+ await Oe([e], "refresh", n) && d && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
4231
4339
  }
4232
- async function v(e) {
4233
- if (!await De([e], "close", r) || !p) return;
4234
- let t = fc(i.startup.tabs ?? [], i.startup.activeTabKey, e);
4235
- u.value.some((t) => t.key === e) && S(xc(u.value, [e])), m({
4236
- ...i.startup,
4340
+ async function g(e) {
4341
+ if (!await Oe([e], "close", n) || !d) return;
4342
+ let t = mc(r.startup.tabs ?? [], r.startup.activeTabKey, e);
4343
+ c.value.some((t) => t.key === e) && b(Cc(c.value, [e])), f({
4344
+ ...r.startup,
4237
4345
  tabs: t.tabs,
4238
4346
  activeTabKey: t.activeTabKey
4239
- }, "replace"), Ce(e);
4347
+ }, "replace"), we(e);
4240
4348
  }
4241
- async function y(e) {
4242
- if (!await De(e, "close", r) || !p) return;
4243
- let t = pc(i.startup.tabs ?? [], i.startup.activeTabKey, e), n = e.filter((e) => u.value.some((t) => t.key === e));
4244
- n.length > 0 && S(xc(u.value, n)), m({
4245
- ...i.startup,
4349
+ async function _(e) {
4350
+ if (!await Oe(e, "close", n) || !d) return;
4351
+ let t = hc(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => c.value.some((t) => t.key === e));
4352
+ i.length > 0 && b(Cc(c.value, i)), f({
4353
+ ...r.startup,
4246
4354
  tabs: t.tabs,
4247
4355
  activeTabKey: t.activeTabKey
4248
- }, "replace"), e.forEach(Ce);
4356
+ }, "replace"), e.forEach(we);
4249
4357
  }
4250
- function b(e) {
4251
- let t = Sc(i.startup.tabs ?? [], e, u.value.map((e) => e.key)), n = t.filter((e) => u.value.some((t) => t.key === e.key));
4252
- n.map((e) => e.key).join("|") !== u.value.map((e) => e.key).join("|") && S(n), m({
4253
- ...i.startup,
4358
+ function v(e) {
4359
+ let t = wc(r.startup.tabs ?? [], e, c.value.map((e) => e.key)), n = t.filter((e) => c.value.some((t) => t.key === e.key));
4360
+ n.map((e) => e.key).join("|") !== c.value.map((e) => e.key).join("|") && b(n), f({
4361
+ ...r.startup,
4254
4362
  tabs: t
4255
4363
  });
4256
4364
  }
4257
- function x(e) {
4258
- let t = i.startup.tabs?.find((t) => t.key === e);
4365
+ function y(e) {
4366
+ let t = r.startup.tabs?.find((t) => t.key === e);
4259
4367
  if (!t) return;
4260
- let n = u.value.some((t) => t.key === e), r = u.value, a = n ? xc(r, [e]) : yc(r, t);
4261
- S(a), m({
4262
- ...i.startup,
4263
- tabs: mc(i.startup.tabs ?? [], a)
4368
+ let n = c.value.some((t) => t.key === e), i = c.value, a = n ? Cc(i, [e]) : xc(i, t);
4369
+ b(a), f({
4370
+ ...r.startup,
4371
+ tabs: gc(r.startup.tabs ?? [], a)
4264
4372
  });
4265
4373
  }
4266
- function S(e) {
4267
- let t = u.value, n = ++d;
4268
- u.value = e, C(e, t, n);
4374
+ function b(e) {
4375
+ let t = c.value, n = ++l;
4376
+ c.value = e, ee(e, t, n);
4269
4377
  }
4270
- async function C(e, t, n) {
4378
+ async function ee(e, t, n) {
4271
4379
  try {
4272
- f = f.catch(() => void 0).then(() => Uc(sr, e)), await f;
4380
+ u = u.catch(() => void 0).then(() => Gc(bn, e)), await u;
4273
4381
  } catch {
4274
- if (n !== d) return;
4275
- u.value = t, m({
4276
- ...i.startup,
4277
- tabs: mc(i.startup.tabs ?? [], t, !1)
4382
+ if (n !== l) return;
4383
+ c.value = t, f({
4384
+ ...r.startup,
4385
+ tabs: gc(r.startup.tabs ?? [], t, !1)
4278
4386
  });
4279
4387
  }
4280
4388
  }
4281
- function w(e) {
4282
- let t = ic(i.startup.tabs ?? [], e);
4283
- return m({
4284
- ...i.startup,
4389
+ function x(e) {
4390
+ let t = oc(r.startup.tabs ?? [], e);
4391
+ return f({
4392
+ ...r.startup,
4285
4393
  tabs: t.tabs,
4286
4394
  activeTabKey: t.activeTabKey
4287
4395
  }, "push"), { created: t.created };
4288
4396
  }
4289
- function ee(e, t = {}) {
4290
- return D(je(e, t), "push", i.startup, t.tabTitle, t.newInstance);
4397
+ function te(e, t = {}) {
4398
+ return T(Me(e, t), "push", r.startup, t.tabTitle, t.newInstance);
4291
4399
  }
4292
- function T(e, t = {}) {
4293
- let n = i.startup.activeTabKey, a = i.startup.tabs?.find((e) => e.key === n), o = je(e, t);
4294
- if (!n || !a) return D(o, "replace", i.startup, t.tabTitle);
4295
- let s = sc(i.startup, o, {
4296
- ...i.resolveOptions,
4297
- title: t.tabTitle ?? i.resolveOptions.title
4298
- }, !1, r), c = s.tabs?.find((e) => e.key === s.activeTabKey);
4400
+ function S(e, t = {}) {
4401
+ let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = Me(e, t);
4402
+ if (!i || !a) return T(o, "replace", r.startup, t.tabTitle);
4403
+ let s = lc(r.startup, o, {
4404
+ ...r.resolveOptions,
4405
+ title: t.tabTitle ?? r.resolveOptions.title
4406
+ }, !1, n), c = s.tabs?.find((e) => e.key === s.activeTabKey);
4299
4407
  if (!c) return { created: !1 };
4300
- let l = c.pageDescriptor && a.instanceKey ? we(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, u = l ? Fe(l, i.resolveOptions) : c.fullPath, d = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === n ? {
4408
+ let l = c.pageDescriptor && a.instanceKey ? He(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, u = l ? ye(l, r.resolveOptions) : c.fullPath, d = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
4301
4409
  ...a,
4302
4410
  ...c,
4303
- key: n,
4411
+ key: i,
4304
4412
  instanceKey: a.instanceKey,
4305
4413
  pageDescriptor: l,
4306
4414
  fullPath: u,
4307
4415
  restoreState: u ? { url: u } : c.restoreState,
4308
4416
  title: t.tabTitle ?? c.title
4309
4417
  } : e);
4310
- return m({
4418
+ return f({
4311
4419
  ...s,
4312
4420
  tabs: d,
4313
- activeTabKey: n
4421
+ activeTabKey: i
4314
4422
  }, "replace"), { created: !1 };
4315
4423
  }
4316
- function te(e) {
4317
- let t = i.startup.activeTabKey;
4318
- return t ? Pe([t]) ? (ne(e, t), { created: !1 }) : E(e, t) : D(je(e), "replace", i.startup);
4424
+ function ne(e) {
4425
+ let t = r.startup.activeTabKey;
4426
+ return t ? Fe([t]) ? (C(e, t), { created: !1 }) : w(e, t) : T(Me(e), "replace", r.startup);
4319
4427
  }
4320
- async function ne(e, t) {
4321
- if (await De([t], "close", r) && p && (i.startup.tabs ?? []).some((e) => e.key === t)) return E(e, t);
4428
+ async function C(e, t) {
4429
+ if (await Oe([t], "close", n) && d && (r.startup.tabs ?? []).some((e) => e.key === t)) return w(e, t);
4322
4430
  }
4323
- function E(e, t) {
4324
- let n = fc(i.startup.tabs ?? [], i.startup.activeTabKey, t);
4325
- Ce(t), u.value.some((e) => e.key === t) && S(xc(u.value, [t]));
4326
- let r = n.tabs.find((t) => {
4327
- let n = t.fullPath ?? (t.pageDescriptor ? Fe(t.pageDescriptor) : void 0);
4431
+ function w(e, t) {
4432
+ let n = mc(r.startup.tabs ?? [], r.startup.activeTabKey, t);
4433
+ we(t), c.value.some((e) => e.key === t) && b(Cc(c.value, [t]));
4434
+ let i = n.tabs.find((t) => {
4435
+ let n = t.fullPath ?? (t.pageDescriptor ? ye(t.pageDescriptor) : void 0);
4328
4436
  return n && new URL(n, "http://muyun.local").pathname === e;
4329
4437
  });
4330
- return r ? (m({
4331
- ...i.startup,
4438
+ return i ? (f({
4439
+ ...r.startup,
4332
4440
  tabs: n.tabs,
4333
- activeTabKey: r.key
4334
- }, "replace"), { created: !1 }) : D(je(e), "replace", {
4335
- ...i.startup,
4441
+ activeTabKey: i.key
4442
+ }, "replace"), { created: !1 }) : T(Me(e), "replace", {
4443
+ ...r.startup,
4336
4444
  tabs: n.tabs,
4337
4445
  activeTabKey: n.activeTabKey
4338
4446
  });
4339
4447
  }
4340
- function D(e, t, n, a, o = !1) {
4341
- let s = new Set((n.tabs ?? []).map((e) => e.key)), c = sc(n, e, {
4342
- ...i.resolveOptions,
4343
- title: a ?? i.resolveOptions.title
4344
- }, o, r);
4448
+ function T(e, t, i, a, o = !1) {
4449
+ let s = new Set((i.tabs ?? []).map((e) => e.key)), c = lc(i, e, {
4450
+ ...r.resolveOptions,
4451
+ title: a ?? r.resolveOptions.title
4452
+ }, o, n);
4345
4453
  return a && c.activeTabKey && (c = {
4346
4454
  ...c,
4347
- tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? Pc(e, a) : e)
4348
- }), m(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
4455
+ tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? Ic(e, a) : e)
4456
+ }), f(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
4349
4457
  }
4350
- function O(e, t) {
4458
+ function E(e, t) {
4351
4459
  let n = t.trim();
4352
- e && n && m({
4353
- ...i.startup,
4354
- tabs: (i.startup.tabs ?? []).map((t) => t.instanceKey === e ? Pc(t, n) : t)
4460
+ e && n && f({
4461
+ ...r.startup,
4462
+ tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? Ic(t, n) : t)
4355
4463
  });
4356
4464
  }
4357
- function k(e, t) {
4358
- let n = (i.startup.tabs ?? []).map((n) => n.key === e ? {
4465
+ function D(e, t) {
4466
+ let n = (r.startup.tabs ?? []).map((n) => n.key === e ? {
4359
4467
  ...n,
4360
4468
  title: t.title ?? n.title,
4361
4469
  pageDescriptor: t,
4362
- restoreState: { url: Fe(t) }
4363
- } : n), r = n.find((t) => t.key === e);
4364
- r && u.value.some((t) => t.key === e) && S(yc(u.value, r)), m({
4365
- ...i.startup,
4470
+ restoreState: { url: ye(t) }
4471
+ } : n), i = n.find((t) => t.key === e);
4472
+ i && c.value.some((t) => t.key === e) && b(xc(c.value, i)), f({
4473
+ ...r.startup,
4366
4474
  tabs: n
4367
4475
  }, "replace");
4368
4476
  }
4369
- function A(e, t) {
4370
- let n = ru(e, i.location, t);
4371
- n && o("navigate", n);
4477
+ function O(e, t) {
4478
+ let n = au(e, r.location, t);
4479
+ n && i("navigate", n);
4372
4480
  }
4373
- function j(e) {
4374
- m(sc(i.startup, e, i.resolveOptions, !1, r));
4481
+ function k(e) {
4482
+ f(lc(r.startup, e, r.resolveOptions, !1, n));
4375
4483
  }
4376
- async function re() {
4377
- let e = d;
4484
+ async function A() {
4485
+ let e = l;
4378
4486
  try {
4379
- let t = gc(await Hc(sr), i.startup.menus, i.resolveOptions, r);
4380
- if (!p || e !== d) return;
4381
- u.value = t;
4382
- let n = new Set(t.map((e) => e.key)), a = [...t, ...(i.startup.tabs ?? []).filter((e) => !n.has(e.key))];
4383
- m({
4384
- ...i.startup,
4385
- tabs: mc(a, t)
4487
+ let t = vc(await Wc(bn), r.startup.menus, r.resolveOptions, n);
4488
+ if (!d || e !== l) return;
4489
+ c.value = t;
4490
+ let i = new Set(t.map((e) => e.key)), a = [...t, ...(r.startup.tabs ?? []).filter((e) => !i.has(e.key))];
4491
+ f({
4492
+ ...r.startup,
4493
+ tabs: gc(a, t)
4386
4494
  });
4387
4495
  } catch {}
4388
4496
  }
4389
- return (t, n) => (G(), R(tu, {
4390
- context: s.value,
4497
+ return (t, n) => (W(), L(ru, {
4498
+ context: a.value,
4391
4499
  menu: e.accountMenu,
4392
- "before-command": c,
4500
+ "before-command": o,
4393
4501
  "skin-id": e.skinId,
4394
- onUserCommand: n[1] ||= (e) => o("userCommand", e),
4395
- onLogout: n[2] ||= (e) => o("logout", e),
4396
- "onUpdate:skinId": n[3] ||= (e) => o("update:skinId", e)
4502
+ onUserCommand: n[1] ||= (e) => i("userCommand", e),
4503
+ onLogout: n[2] ||= (e) => i("logout", e),
4504
+ "onUpdate:skinId": n[3] ||= (e) => i("update:skinId", e)
4397
4505
  }, {
4398
- default: X((r) => [U(a, fa(t.$attrs, {
4506
+ default: Y((r) => [H(re, ma(t.$attrs, {
4399
4507
  startup: e.startup,
4400
4508
  "current-user-employee-name": e.currentUserEmployeeName ?? r.profile?.employee?.title,
4401
4509
  "managed-account-menu-items": r.items,
4402
4510
  loading: e.loading,
4403
4511
  error: e.error,
4404
- "active-tab-key": l.value,
4405
- "locked-tab-keys": u.value.map((e) => e.key),
4512
+ "active-tab-key": s.value,
4513
+ "locked-tab-keys": c.value.map((e) => e.key),
4406
4514
  "realtime-status": e.realtimeStatus,
4407
4515
  "theme-appearance": e.themeAppearance,
4408
- onSelectMenu: h,
4409
- onChangeTab: g,
4410
- onCloseTab: v,
4411
- onCloseTabs: y,
4412
- onReorderTabs: b,
4413
- onToggleTabLock: x,
4414
- onRefreshPage: _,
4516
+ onSelectMenu: p,
4517
+ onChangeTab: m,
4518
+ onCloseTab: g,
4519
+ onCloseTabs: _,
4520
+ onReorderTabs: v,
4521
+ onToggleTabLock: y,
4522
+ onRefreshPage: h,
4415
4523
  onUserCommand: (e) => r.select(e),
4416
4524
  onAccountMenuOpen: (e) => r.refresh(),
4417
- onRetryLoad: n[0] ||= (e) => o("retryLoad")
4418
- }), ca({
4419
- default: X(({ pageDescriptor: e }) => [Ca(t.$slots, "default", { pageDescriptor: e })]),
4525
+ onRetryLoad: n[0] ||= (e) => i("retryLoad")
4526
+ }), ua({
4527
+ default: Y(({ pageDescriptor: e }) => [Ta(t.$slots, "default", { pageDescriptor: e })]),
4420
4528
  _: 2
4421
4529
  }, [t.$slots["topbar-actions"] ? {
4422
4530
  name: "topbar-actions",
4423
- fn: X((e) => [Ca(t.$slots, "topbar-actions", ha(ua(e)))]),
4531
+ fn: Y((e) => [Ta(t.$slots, "topbar-actions", _a(fa(e)))]),
4424
4532
  key: "0"
4425
4533
  } : void 0]), 1040, [
4426
4534
  "startup",
@@ -4442,10 +4550,10 @@ var iu = /* @__PURE__ */ W({
4442
4550
  "skin-id"
4443
4551
  ]));
4444
4552
  }
4445
- }), au = { class: "external-provisioning-confirmation" }, ou = {
4553
+ }), su = { class: "external-provisioning-confirmation" }, cu = {
4446
4554
  key: 0,
4447
4555
  role: "alert"
4448
- }, su = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4556
+ }, lu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4449
4557
  __name: "ExternalProvisioningConfirmation",
4450
4558
  props: {
4451
4559
  confirmation: {},
@@ -4454,31 +4562,31 @@ var iu = /* @__PURE__ */ W({
4454
4562
  },
4455
4563
  emits: ["confirm", "cancel"],
4456
4564
  setup(e) {
4457
- let t = I();
4458
- return (n, r) => (G(), B("main", au, [
4459
- V("h1", null, q(J(t).t("platform.external-login.confirm-title", "确认加入")), 1),
4460
- V("p", null, q(J(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
4461
- V("dl", null, [
4462
- V("dt", null, q(J(t).t("platform.external-login.person", "姓名")), 1),
4463
- V("dd", null, q(e.confirmation.displayName), 1),
4464
- V("dt", null, q(J(t).t("platform.external-login.tenant", "租户")), 1),
4465
- V("dd", null, q(e.confirmation.tenantId), 1),
4466
- V("dt", null, q(J(t).t("platform.external-login.placements", "任职归属")), 1),
4467
- V("dd", null, q((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
4565
+ let t = N();
4566
+ return (n, r) => (W(), z("main", su, [
4567
+ B("h1", null, K(q(t).t("platform.external-login.confirm-title", "确认加入")), 1),
4568
+ B("p", null, K(q(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
4569
+ B("dl", null, [
4570
+ B("dt", null, K(q(t).t("platform.external-login.person", "姓名")), 1),
4571
+ B("dd", null, K(e.confirmation.displayName), 1),
4572
+ B("dt", null, K(q(t).t("platform.external-login.tenant", "租户")), 1),
4573
+ B("dd", null, K(e.confirmation.tenantId), 1),
4574
+ B("dt", null, K(q(t).t("platform.external-login.placements", "任职归属")), 1),
4575
+ B("dd", null, K((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
4468
4576
  ]),
4469
- e.error ? (G(), B("p", ou, q(e.error), 1)) : z("v-if", !0),
4470
- U(J(P), {
4577
+ e.error ? (W(), z("p", cu, K(e.error), 1)) : R("v-if", !0),
4578
+ H(q(F), {
4471
4579
  disabled: e.busy,
4472
4580
  onClick: r[0] ||= (e) => n.$emit("confirm")
4473
4581
  }, {
4474
- default: X(() => [H(q(J(t).t("platform.external-login.confirm-join", "确认并登录")), 1)]),
4582
+ default: Y(() => [V(K(q(t).t("platform.external-login.confirm-join", "确认并登录")), 1)]),
4475
4583
  _: 1
4476
4584
  }, 8, ["disabled"]),
4477
- U(J(P), {
4585
+ H(q(F), {
4478
4586
  disabled: e.busy,
4479
4587
  onClick: r[1] ||= (e) => n.$emit("cancel")
4480
4588
  }, {
4481
- default: X(() => [H(q(J(t).t("platform.external-login.cancel-join", "取消")), 1)]),
4589
+ default: Y(() => [V(K(q(t).t("platform.external-login.cancel-join", "取消")), 1)]),
4482
4590
  _: 1
4483
4591
  }, 8, ["disabled"])
4484
4592
  ]));
@@ -4486,45 +4594,45 @@ var iu = /* @__PURE__ */ W({
4486
4594
  }), [["__scopeId", "data-v-90a45828"]]);
4487
4595
  //#endregion
4488
4596
  //#region src/app/loginTenant.ts
4489
- function cu(e, t = fu(), n = pu(), r = "/") {
4490
- let i = du(t, n === uu(r));
4597
+ function uu(e, t = mu(), n = hu(), r = "/") {
4598
+ let i = pu(t, n === fu(r));
4491
4599
  return i ? {
4492
4600
  tenantId: i,
4493
4601
  tenantLocked: !0
4494
4602
  } : {
4495
- tenantId: lu(e),
4603
+ tenantId: du(e),
4496
4604
  tenantLocked: !1
4497
4605
  };
4498
4606
  }
4499
- function lu(e) {
4607
+ function du(e) {
4500
4608
  return e?.trim() ?? "";
4501
4609
  }
4502
- function uu(e) {
4610
+ function fu(e) {
4503
4611
  let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
4504
4612
  return t === "/" ? t : `${t}/`;
4505
4613
  }
4506
- function du(e, t) {
4507
- let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = lu(n.get("_muyunTenantId"));
4508
- return r || !t ? r : lu(n.get("tenantId")) || lu(n.get("tenant"));
4614
+ function pu(e, t) {
4615
+ let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = du(n.get("_muyunTenantId"));
4616
+ return r || !t ? r : du(n.get("tenantId")) || du(n.get("tenant"));
4509
4617
  }
4510
- function fu() {
4618
+ function mu() {
4511
4619
  return typeof window > "u" ? "" : window.location.search;
4512
4620
  }
4513
- function pu() {
4621
+ function hu() {
4514
4622
  return typeof window > "u" ? "/" : window.location.pathname;
4515
4623
  }
4516
4624
  //#endregion
4517
4625
  //#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
4518
- var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class: "login-panel" }, _u = { class: "login-brand" }, vu = ["src"], yu = { key: 1 }, bu = { key: 0 }, xu = {
4626
+ var gu = { class: "login-language" }, _u = { class: "login-page" }, vu = { class: "login-panel" }, yu = { class: "login-brand" }, bu = ["src"], xu = { key: 1 }, Su = { key: 0 }, Cu = {
4519
4627
  key: 1,
4520
4628
  class: "login-subtitle"
4521
- }, Su = {
4629
+ }, wu = {
4522
4630
  key: 0,
4523
4631
  class: "login-error"
4524
- }, Cu = { key: 0 }, wu = {
4632
+ }, Tu = { key: 0 }, Eu = {
4525
4633
  key: 3,
4526
4634
  class: "login-external"
4527
- }, Tu = { class: "login-external-divider" }, Eu = { class: "login-context" }, Du = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4635
+ }, Du = { class: "login-external-divider" }, Ou = { class: "login-context" }, ku = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4528
4636
  name: "LoginView",
4529
4637
  __name: "LoginView",
4530
4638
  props: {
@@ -4537,18 +4645,18 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
4537
4645
  },
4538
4646
  emits: ["authenticated"],
4539
4647
  setup(e, { emit: t }) {
4540
- let n = I(), r = K();
4648
+ let n = N(), r = G();
4541
4649
  function i() {
4542
- r.value && Zc(r.value.state), r.value = void 0;
4650
+ r.value && $c(r.value.state), r.value = void 0;
4543
4651
  }
4544
- let a = e, o = t, s = cu(void 0), c = K(s.tenantId), l = s.tenantLocked, u = K(lu(a.initialUsername) || lu(void 0)), d = K(lu(void 0)), f = K(!1), p = K(), m = K(!1), h = K(), g = K(""), _ = K(""), v = K(), y = K(!1), b = K(), x = K([]), S = K(!1), C = L(() => !l || !y.value && !b.value), w = L(() => v.value?.mode !== "logoOnly"), ee = L(() => v.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), T = L(() => v.value?.subtitle);
4545
- va(async () => {
4652
+ let a = e, o = t, s = uu(void 0), c = G(s.tenantId), l = s.tenantLocked, u = G(du(a.initialUsername) || du(void 0)), d = G(du(void 0)), f = G(!1), p = G(), m = G(!1), h = G(), g = G(""), _ = G(""), v = G(), y = G(!1), b = G(), ee = G([]), x = G(!1), te = I(() => !l || !y.value && !b.value), S = I(() => v.value?.mode !== "logoOnly"), ne = I(() => v.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), C = I(() => v.value?.subtitle);
4653
+ ba(async () => {
4546
4654
  if (l && c.value) {
4547
4655
  y.value = !0;
4548
4656
  try {
4549
4657
  if (!a.loginContextClient) throw Error("login context client is unavailable");
4550
4658
  let e = await a.loginContextClient.loginContext(c.value);
4551
- v.value = e.branding, x.value = a.externalLoginClient ? e.externalLoginMethods ?? [] : [];
4659
+ v.value = e.branding, ee.value = a.externalLoginClient ? e.externalLoginMethods ?? [] : [];
4552
4660
  } catch {
4553
4661
  b.value = () => n.t("platform.screen.LoginView.unable-to-open-sign-in-for-this-tenant", "无法打开该租户的登录入口");
4554
4662
  } finally {
@@ -4556,23 +4664,23 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
4556
4664
  }
4557
4665
  }
4558
4666
  });
4559
- async function te(e) {
4667
+ async function w(e) {
4560
4668
  if (a.externalLoginClient) {
4561
- p.value = void 0, S.value = !0;
4669
+ p.value = void 0, x.value = !0;
4562
4670
  try {
4563
4671
  i();
4564
4672
  let t = await a.externalLoginClient.startLogin(e.providerId, c.value);
4565
- Xc(t, {
4673
+ Qc(t, {
4566
4674
  providerId: e.providerId,
4567
4675
  purpose: "login",
4568
4676
  tenantId: c.value
4569
- }), t.qrCode ? (r.value = t, S.value = !1) : Qc(t.authorizationUrl);
4677
+ }), t.qrCode ? (r.value = t, x.value = !1) : el(t.authorizationUrl);
4570
4678
  } catch (e) {
4571
- p.value = () => E(e), S.value = !1;
4679
+ p.value = () => E(e), x.value = !1;
4572
4680
  }
4573
4681
  }
4574
4682
  }
4575
- async function ne() {
4683
+ async function T() {
4576
4684
  p.value = void 0, f.value = !0;
4577
4685
  try {
4578
4686
  let e = await a.authClient.login({
@@ -4592,7 +4700,7 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
4592
4700
  }
4593
4701
  }
4594
4702
  function E(e) {
4595
- return e instanceof ht ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === Vr.networkError || e.code === Vr.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === Vr.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
4703
+ return e instanceof rt ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === cn.networkError || e.code === cn.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === cn.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
4596
4704
  }
4597
4705
  async function D() {
4598
4706
  if (p.value = void 0, !h.value) {
@@ -4616,113 +4724,113 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
4616
4724
  });
4617
4725
  o("authenticated", e);
4618
4726
  } catch (e) {
4619
- p.value = () => e instanceof Error ? $t(tt(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
4727
+ p.value = () => e instanceof Error ? Pt(en(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
4620
4728
  } finally {
4621
4729
  f.value = !1;
4622
4730
  }
4623
4731
  }
4624
- return (t, a) => (G(), B(sa, null, [V("div", mu, [U(J(Re))]), V("main", hu, [V("section", gu, [
4625
- V("header", null, [V("div", _u, [v.value?.lightLogo ? (G(), B("img", {
4732
+ return (t, a) => (W(), z(la, null, [B("div", gu, [H(q(ze))]), B("main", _u, [B("section", vu, [
4733
+ B("header", null, [B("div", yu, [v.value?.lightLogo ? (W(), z("img", {
4626
4734
  key: 0,
4627
4735
  class: "login-logo",
4628
4736
  src: v.value.lightLogo,
4629
4737
  alt: ""
4630
- }, null, 8, vu)) : z("v-if", !0), w.value ? (G(), B("div", yu, [
4631
- v.value?.lightLogo ? z("v-if", !0) : (G(), B("p", bu, "MuYun Platform")),
4632
- V("h1", null, q(ee.value), 1),
4633
- T.value ? (G(), B("p", xu, q(T.value), 1)) : z("v-if", !0)
4634
- ])) : z("v-if", !0)])]),
4635
- p.value || e.error || b.value ? (G(), B("p", Su, q(p.value?.() || e.error || b.value?.()), 1)) : z("v-if", !0),
4636
- r.value ? (G(), R(dl, {
4738
+ }, null, 8, bu)) : R("v-if", !0), S.value ? (W(), z("div", xu, [
4739
+ v.value?.lightLogo ? R("v-if", !0) : (W(), z("p", Su, "MuYun Platform")),
4740
+ B("h1", null, K(ne.value), 1),
4741
+ C.value ? (W(), z("p", Cu, K(C.value), 1)) : R("v-if", !0)
4742
+ ])) : R("v-if", !0)])]),
4743
+ p.value || e.error || b.value ? (W(), z("p", wu, K(p.value?.() || e.error || b.value?.()), 1)) : R("v-if", !0),
4744
+ r.value ? (W(), L(pl, {
4637
4745
  key: r.value.state,
4638
4746
  start: r.value,
4639
4747
  onClose: i
4640
- }, null, 8, ["start"])) : z("v-if", !0),
4641
- m.value ? z("v-if", !0) : (G(), B("form", {
4748
+ }, null, 8, ["start"])) : R("v-if", !0),
4749
+ m.value ? R("v-if", !0) : (W(), z("form", {
4642
4750
  key: 2,
4643
4751
  class: "login-form",
4644
- onSubmit: Oa(ne, ["prevent"])
4752
+ onSubmit: Aa(T, ["prevent"])
4645
4753
  }, [
4646
- J(l) ? z("v-if", !0) : (G(), B("label", Cu, [V("span", null, q(J(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), U(J(F), {
4754
+ q(l) ? R("v-if", !0) : (W(), z("label", Tu, [B("span", null, K(q(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), H(q(P), {
4647
4755
  value: c.value,
4648
4756
  "onUpdate:value": a[0] ||= (e) => c.value = e,
4649
4757
  autocomplete: "organization",
4650
- placeholder: J(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
4758
+ placeholder: q(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
4651
4759
  }, null, 8, ["value", "placeholder"])])),
4652
- V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.username", "用户名")), 1), U(J(F), {
4760
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.username", "用户名")), 1), H(q(P), {
4653
4761
  value: u.value,
4654
4762
  "onUpdate:value": a[1] ||= (e) => u.value = e,
4655
4763
  autocomplete: "username",
4656
4764
  required: ""
4657
4765
  }, null, 8, ["value"])]),
4658
- V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.password", "密码")), 1), U(J(F), {
4766
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.password", "密码")), 1), H(q(P), {
4659
4767
  value: d.value,
4660
4768
  "onUpdate:value": a[2] ||= (e) => d.value = e,
4661
4769
  type: "password",
4662
4770
  autocomplete: "current-password",
4663
4771
  required: ""
4664
4772
  }, null, 8, ["value"])]),
4665
- U(J(P), {
4773
+ H(q(F), {
4666
4774
  class: "login-submit",
4667
4775
  "html-type": "submit",
4668
4776
  type: "primary",
4669
- disabled: !C.value,
4777
+ disabled: !te.value,
4670
4778
  loading: f.value || e.loading || y.value
4671
4779
  }, {
4672
- default: X(() => [H(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.signing-in", "登录中") : J(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
4780
+ default: Y(() => [V(K(f.value || e.loading ? q(n).t("platform.screen.LoginView.signing-in", "登录中") : q(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
4673
4781
  _: 1
4674
4782
  }, 8, ["disabled", "loading"])
4675
4783
  ], 32)),
4676
- !m.value && x.value.length > 0 ? (G(), B("div", wu, [V("p", Tu, q(J(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (G(!0), B(sa, null, Sa(x.value, (e) => (G(), R(J(P), {
4784
+ !m.value && ee.value.length > 0 ? (W(), z("div", Eu, [B("p", Du, K(q(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (W(!0), z(la, null, wa(ee.value, (e) => (W(), L(q(F), {
4677
4785
  key: e.providerId,
4678
4786
  class: "login-submit",
4679
- loading: S.value,
4680
- disabled: S.value,
4681
- onClick: (t) => te(e)
4787
+ loading: x.value,
4788
+ disabled: x.value,
4789
+ onClick: (t) => w(e)
4682
4790
  }, {
4683
- default: X(() => [H(q(J(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
4791
+ default: Y(() => [V(K(q(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
4684
4792
  _: 2
4685
4793
  }, 1032, [
4686
4794
  "loading",
4687
4795
  "disabled",
4688
4796
  "onClick"
4689
- ]))), 128))])) : m.value ? (G(), B("form", {
4797
+ ]))), 128))])) : m.value ? (W(), z("form", {
4690
4798
  key: 4,
4691
4799
  class: "login-form",
4692
- onSubmit: Oa(D, ["prevent"])
4800
+ onSubmit: Aa(D, ["prevent"])
4693
4801
  }, [
4694
- V("p", Eu, q(J(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
4695
- V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.new-password", "新密码")), 1), U(J(F), {
4802
+ B("p", Ou, K(q(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
4803
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.new-password", "新密码")), 1), H(q(P), {
4696
4804
  value: g.value,
4697
4805
  "onUpdate:value": a[3] ||= (e) => g.value = e,
4698
4806
  type: "password",
4699
4807
  autocomplete: "new-password",
4700
4808
  required: ""
4701
4809
  }, null, 8, ["value"])]),
4702
- V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), U(J(F), {
4810
+ B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), H(q(P), {
4703
4811
  value: _.value,
4704
4812
  "onUpdate:value": a[4] ||= (e) => _.value = e,
4705
4813
  type: "password",
4706
4814
  autocomplete: "new-password",
4707
4815
  required: ""
4708
4816
  }, null, 8, ["value"])]),
4709
- U(J(P), {
4817
+ H(q(F), {
4710
4818
  class: "login-submit",
4711
4819
  "html-type": "submit",
4712
4820
  type: "primary",
4713
4821
  loading: f.value || e.loading
4714
4822
  }, {
4715
- default: X(() => [H(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.saving", "保存中") : J(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
4823
+ default: Y(() => [V(K(f.value || e.loading ? q(n).t("platform.screen.LoginView.saving", "保存中") : q(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
4716
4824
  _: 1
4717
4825
  }, 8, ["loading"])
4718
- ], 32)) : z("v-if", !0)
4826
+ ], 32)) : R("v-if", !0)
4719
4827
  ])])], 64));
4720
4828
  }
4721
4829
  }), [["__scopeId", "data-v-96af9dc4"]]);
4722
4830
  //#endregion
4723
4831
  //#region src/consumer/userPreferencePersistence.ts
4724
- function Ou(e) {
4725
- Xi({
4832
+ function Au(e) {
4833
+ qi({
4726
4834
  load: async (t) => (await e().request({
4727
4835
  path: `/platform.user-preference/${encodeURIComponent(t)}`,
4728
4836
  query: { clientType: "WEB" }
@@ -4744,7 +4852,7 @@ function Ou(e) {
4744
4852
  }
4745
4853
  //#endregion
4746
4854
  //#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
4747
- var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4855
+ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4748
4856
  name: "ReadonlyRecordWorkspace",
4749
4857
  __name: "ReadonlyRecordWorkspace",
4750
4858
  props: {
@@ -4762,35 +4870,35 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4762
4870
  }
4763
4871
  },
4764
4872
  setup(e, { expose: t }) {
4765
- xi("workspace");
4766
- let n = e, r = I(), i = Ht(r), a = K(), o = ti(a, rr(0)), s = K({}), c = K({}), l = K({}), u = K(0), d = L({
4873
+ tr("workspace");
4874
+ let n = e, r = N(), i = Un(r), a = G(), o = ni(a, ki(0)), s = G({}), c = G({}), l = G({}), u = G(0), d = I({
4767
4875
  get: () => s.value.criteria,
4768
4876
  set: (e) => {
4769
- ne({
4877
+ T({
4770
4878
  ...s.value,
4771
4879
  criteria: e
4772
4880
  });
4773
4881
  }
4774
- }), f = L({
4882
+ }), f = I({
4775
4883
  get: () => s.value.sorts,
4776
4884
  set: (e) => {
4777
- ne({
4885
+ T({
4778
4886
  ...s.value,
4779
4887
  sorts: e
4780
4888
  });
4781
4889
  }
4782
- }), p = K(!1), m = K(!1), h = K(""), g = L(() => JSON.stringify([
4890
+ }), p = G(!1), m = G(!1), h = G(""), g = I(() => JSON.stringify([
4783
4891
  n.view.sourceId,
4784
4892
  n.view.viewCode,
4785
4893
  n.view.scopeKey
4786
- ])), _ = L(() => n.view.querySchema), v = L(() => _.value?.criteriaComposition ?? "TREE"), y = L(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
4894
+ ])), _ = I(() => n.view.querySchema), v = I(() => _.value?.criteriaComposition ?? "TREE"), y = I(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
4787
4895
  ...e,
4788
- title: mn(e.title ?? e.name, e.titleText, r)
4789
- }))), b = L(() => y.value.filter((e) => e.persistentControl)), x = L(() => Object.values(l.value).every((e) => e.valid));
4790
- function S(e) {
4896
+ title: jn(e.title ?? e.name, e.titleText, r)
4897
+ }))), b = I(() => y.value.filter((e) => e.persistentControl)), ee = I(() => Object.values(l.value).every((e) => e.valid));
4898
+ function x(e) {
4791
4899
  return b.value.flatMap((t) => {
4792
4900
  let n = t.persistentControl, r = e?.[n.id] ?? n.defaultValues ?? [];
4793
- return r.length || pi(n.operator) ? [{
4901
+ return r.length || gi(n.operator) ? [{
4794
4902
  kind: "CONDITION",
4795
4903
  fieldName: t.name,
4796
4904
  operator: n.operator,
@@ -4798,34 +4906,34 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4798
4906
  }] : [];
4799
4907
  });
4800
4908
  }
4801
- let C = L(() => S(s.value.persistentValues)), w = L(() => b.value.map((e) => {
4909
+ let te = I(() => x(s.value.persistentValues)), S = I(() => b.value.map((e) => {
4802
4910
  let t = e.persistentControl;
4803
4911
  return {
4804
4912
  ...t,
4805
- title: mn(t.title, t.titleText, r),
4913
+ title: jn(t.title, t.titleText, r),
4806
4914
  field: e,
4807
4915
  values: c.value[t.id] ?? t.defaultValues ?? [],
4808
4916
  options: n.queryOptionsByField[e.name],
4809
4917
  referencePicker: n.referencePickerOf?.(e)
4810
4918
  };
4811
4919
  }));
4812
- function ee() {
4813
- x.value && !j.value && ne({
4920
+ function ne() {
4921
+ ee.value && !A.value && T({
4814
4922
  ...s.value,
4815
- persistentValues: Object.fromEntries(w.value.map((e) => [e.id, [...e.values]]))
4923
+ persistentValues: Object.fromEntries(S.value.map((e) => [e.id, [...e.values]]))
4816
4924
  });
4817
4925
  }
4818
- function T() {
4819
- c.value = {}, l.value = {}, u.value++, ne({
4926
+ function C() {
4927
+ c.value = {}, l.value = {}, u.value++, T({
4820
4928
  ...s.value,
4821
4929
  persistentValues: void 0
4822
4930
  });
4823
4931
  }
4824
- let te = L(() => ({
4932
+ let w = I(() => ({
4825
4933
  ...n.query,
4826
- criteria: Ri([
4934
+ criteria: zi([
4827
4935
  n.query?.criteria,
4828
- ...C.value,
4936
+ ...te.value,
4829
4937
  d.value
4830
4938
  ]),
4831
4939
  sorts: f.value ?? n.query?.sorts ?? _.value?.defaultSorts.map((e) => ({
@@ -4834,15 +4942,15 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4834
4942
  })),
4835
4943
  quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
4836
4944
  }));
4837
- function ne(e) {
4838
- let t = JSON.stringify(te.value), i = kr(Ri([
4945
+ function T(e) {
4946
+ let t = JSON.stringify(w.value), i = wr(zi([
4839
4947
  n.query?.criteria,
4840
- ...S(e.persistentValues),
4948
+ ...x(e.persistentValues),
4841
4949
  e.criteria
4842
4950
  ]), r);
4843
- h.value = i ?? "", !i && (s.value = e, JSON.stringify(te.value) === t && k.goPage(1));
4951
+ h.value = i ?? "", !i && (s.value = e, JSON.stringify(w.value) === t && O.goPage(1));
4844
4952
  }
4845
- let E = L(() => JSON.stringify({
4953
+ let E = I(() => JSON.stringify({
4846
4954
  composition: v.value,
4847
4955
  fields: _.value?.fields.map((e) => ({
4848
4956
  name: e.name,
@@ -4862,82 +4970,82 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4862
4970
  },
4863
4971
  defaultSorts: _.value?.defaultSorts
4864
4972
  }));
4865
- Y([g, E], () => {
4973
+ J([g, E], () => {
4866
4974
  s.value = {}, c.value = {}, l.value = {}, u.value++, p.value = !1, m.value = !1, h.value = "";
4867
4975
  }, { flush: "sync" });
4868
4976
  function D() {
4869
4977
  m.value = !0, p.value = !p.value;
4870
4978
  }
4871
- function O(e) {
4979
+ function re(e) {
4872
4980
  h.value = "", d.value = e;
4873
4981
  }
4874
- let k = ra({
4982
+ let O = aa({
4875
4983
  view: () => n.view,
4876
- query: te,
4984
+ query: w,
4877
4985
  pageSize: n.pageSize,
4878
4986
  contentLanguage: () => i.languageTag.value
4879
- }), { result: A, loading: j, error: re, selected: M, detail: ie, detailLoading: N, detailError: ae, pageNum: oe, pageSize: se } = k;
4880
- Y(E, () => {
4881
- k.search("");
4987
+ }), { result: k, loading: A, error: j, selected: M, detail: ie, detailLoading: ae, detailError: oe, pageNum: se, pageSize: ce } = O;
4988
+ J(E, () => {
4989
+ O.search("");
4882
4990
  }, { flush: "sync" });
4883
- let ce = K("");
4884
- Y(() => n.pageSize, (e) => void k.resizePage(e)), Y(k.quickSearch, (e) => {
4885
- ce.value = e;
4886
- }), Y(g, () => {
4887
- ce.value = "";
4991
+ let le = G("");
4992
+ J(() => n.pageSize, (e) => void O.resizePage(e)), J(O.quickSearch, (e) => {
4993
+ le.value = e;
4994
+ }), J(g, () => {
4995
+ le.value = "";
4888
4996
  }, { flush: "sync" });
4889
- let le = L(() => n.view.descriptor.page?.list), ue = L(() => Mr(le.value?.fields)), de = L(() => n.view.descriptor.page?.detail?.display ? vn(n.view.descriptor) : /* @__PURE__ */ new Map()), fe = L(() => !o.value), pe = L(() => le.value?.title?.text ?? le.value?.fields.title ?? n.view.viewCode), me = L(() => M.value ? n.view.detail?.title(M.value) ?? pe.value : pe.value), he = L(() => A.value?.pages ?? 0);
4890
- function ge(e) {
4891
- return $t(tt(e), r);
4997
+ let ue = I(() => n.view.descriptor.page?.list), de = I(() => kr(ue.value?.fields)), fe = I(() => n.view.descriptor.page?.detail?.display ? dt(n.view.descriptor) : /* @__PURE__ */ new Map()), pe = I(() => !o.value), me = I(() => ue.value?.title?.text ?? ue.value?.fields.title ?? n.view.viewCode), he = I(() => M.value ? n.view.detail?.title(M.value) ?? me.value : me.value), ge = I(() => k.value?.pages ?? 0);
4998
+ function _e(e) {
4999
+ return Pt(en(e), r);
4892
5000
  }
4893
5001
  return t({
4894
- refresh: k.refresh,
4895
- closeDetail: k.closeDetail
4896
- }), (t, i) => (G(), B("section", {
5002
+ refresh: O.refresh,
5003
+ closeDetail: O.closeDetail
5004
+ }), (t, i) => (W(), z("section", {
4897
5005
  ref_key: "host",
4898
5006
  ref: a,
4899
5007
  class: "readonly-record-workspace",
4900
- "aria-label": pe.value
4901
- }, [U(ii, {
5008
+ "aria-label": me.value
5009
+ }, [H(Ir, {
4902
5010
  "explorer-count": 0,
4903
- "detail-surface": !!J(M) && fe.value,
4904
- "list-surface": !J(M) || !fe.value
5011
+ "detail-surface": !!q(M) && pe.value,
5012
+ "list-surface": !q(M) || !pe.value
4905
5013
  }, {
4906
- default: X(() => [U(Vt, {
4907
- title: pe.value,
4908
- subtitle: le.value?.subtitle?.text,
5014
+ default: Y(() => [H(Hn, {
5015
+ title: me.value,
5016
+ subtitle: ue.value?.subtitle?.text,
4909
5017
  "title-action-icon": "reload",
4910
- "title-action-title": J(r).t("platform.read-view.refresh", "刷新"),
4911
- "title-action-disabled": J(j),
5018
+ "title-action-title": q(r).t("platform.read-view.refresh", "刷新"),
5019
+ "title-action-disabled": q(A),
4912
5020
  "quick-search-visible": e.quickSearch && (_.value?.quickSearch.enabled ?? !0),
4913
- "quick-search-value": ce.value,
4914
- "quick-search-placeholder": le.value?.searchPlaceholder,
4915
- "quick-search-disabled": J(j),
4916
- columns: ue.value,
4917
- rows: J(A)?.records ?? [],
5021
+ "quick-search-value": le.value,
5022
+ "quick-search-placeholder": ue.value?.searchPlaceholder,
5023
+ "quick-search-disabled": q(A),
5024
+ columns: de.value,
5025
+ rows: q(k)?.records ?? [],
4918
5026
  "row-key": (t) => e.view.recordKey(t),
4919
- "selected-row-key": J(M) ? e.view.recordKey(J(M)) : void 0,
5027
+ "selected-row-key": q(M) ? e.view.recordKey(q(M)) : void 0,
4920
5028
  "clickable-rows": !!e.view.detail,
4921
- "table-visible": !J(j) && !J(re) && !!J(A)?.records.length,
5029
+ "table-visible": !q(A) && !q(j) && !!q(k)?.records.length,
4922
5030
  pageable: "",
4923
- total: J(A)?.total ?? 0,
4924
- "total-known": J(A)?.totalKnown ?? !0,
4925
- "page-num": J(oe),
4926
- "page-size": J(se),
4927
- pages: he.value,
4928
- "pagination-disabled": J(j) || !J(A),
4929
- onTitleAction: J(k).refresh,
4930
- "onUpdate:quickSearchValue": i[5] ||= (e) => ce.value = e,
4931
- onQuickSearch: J(k).search,
4932
- onPageChange: J(k).goPage,
4933
- onPageSizeChange: J(k).resizePage,
4934
- onRowClick: i[6] ||= (e) => J(k).select(e)
4935
- }, ca({
4936
- persistentQueries: X(() => [U(Ze, {
4937
- controls: w.value,
5031
+ total: q(k)?.total ?? 0,
5032
+ "total-known": q(k)?.totalKnown ?? !0,
5033
+ "page-num": q(se),
5034
+ "page-size": q(ce),
5035
+ pages: ge.value,
5036
+ "pagination-disabled": q(A) || !q(k),
5037
+ onTitleAction: q(O).refresh,
5038
+ "onUpdate:quickSearchValue": i[5] ||= (e) => le.value = e,
5039
+ onQuickSearch: q(O).search,
5040
+ onPageChange: q(O).goPage,
5041
+ onPageSizeChange: q(O).resizePage,
5042
+ onRowClick: i[6] ||= (e) => q(O).select(e)
5043
+ }, ua({
5044
+ persistentQueries: Y(() => [H(Qe, {
5045
+ controls: S.value,
4938
5046
  "reset-key": `${g.value}:${u.value}`,
4939
- disabled: J(j),
4940
- valid: x.value,
5047
+ disabled: q(A),
5048
+ valid: ee.value,
4941
5049
  "onUpdate:values": i[0] ||= (e, t) => c.value = {
4942
5050
  ...c.value,
4943
5051
  [e]: t
@@ -4946,23 +5054,23 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4946
5054
  ...l.value,
4947
5055
  [e]: t
4948
5056
  },
4949
- onApply: ee,
4950
- onReset: T
5057
+ onApply: ne,
5058
+ onReset: C
4951
5059
  }, null, 8, [
4952
5060
  "controls",
4953
5061
  "reset-key",
4954
5062
  "disabled",
4955
5063
  "valid"
4956
- ]), Ca(t.$slots, "queries", {}, void 0, !0)]),
4957
- queryControls: X(() => [U(ei, {
5064
+ ]), Ta(t.$slots, "queries", {}, void 0, !0)]),
5065
+ queryControls: Y(() => [H(ti, {
4958
5066
  "sort-visible": !!_.value,
4959
5067
  "sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
4960
5068
  sorts: f.value,
4961
5069
  "filter-visible": v.value !== "NONE" && y.value.some((e) => v.value !== "FLAT_AND" || !e.persistentControl),
4962
- "filter-title": v.value === "FLAT_AND" ? J(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : J(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
5070
+ "filter-title": v.value === "FLAT_AND" ? q(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : q(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
4963
5071
  expanded: p.value,
4964
- count: J(br)(d.value),
4965
- disabled: J(j),
5072
+ count: q(pr)(d.value),
5073
+ disabled: q(A),
4966
5074
  onSortChange: i[2] ||= (e) => f.value = e,
4967
5075
  onToggle: D
4968
5076
  }, null, 8, [
@@ -4975,24 +5083,24 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
4975
5083
  "count",
4976
5084
  "disabled"
4977
5085
  ])]),
4978
- operations: X(() => [Ca(t.$slots, "operations", { refresh: J(k).refresh }, void 0, !0)]),
4979
- beforeTable: X(() => [h.value ? (G(), R(J(Ft), {
5086
+ operations: Y(() => [Ta(t.$slots, "operations", { refresh: q(O).refresh }, void 0, !0)]),
5087
+ beforeTable: Y(() => [h.value ? (W(), L(q(_n), {
4980
5088
  key: 0,
4981
5089
  message: h.value
4982
- }, null, 8, ["message"])) : z("v-if", !0), J(re) ? (G(), R(J(Ft), {
5090
+ }, null, 8, ["message"])) : R("v-if", !0), q(j) ? (W(), L(q(_n), {
4983
5091
  key: 1,
4984
- message: ge(J(re))
4985
- }, null, 8, ["message"])) : J(j) ? (G(), R(J(Jt), { key: 2 })) : J(A)?.records.length ? z("v-if", !0) : (G(), R(J(kn), {
5092
+ message: _e(q(j))
5093
+ }, null, 8, ["message"])) : q(A) ? (W(), L(q(ra), { key: 2 })) : q(k)?.records.length ? R("v-if", !0) : (W(), L(q(Ot), {
4986
5094
  key: 3,
4987
- description: J(r).t("platform.read-view.empty", "暂无符合条件的记录")
5095
+ description: q(r).t("platform.read-view.empty", "暂无符合条件的记录")
4988
5096
  }, null, 8, ["description"]))]),
4989
- cell: X(({ column: n, record: r }) => [Ca(t.$slots, "cell", {
4990
- column: ue.value.find((e) => e.key === n.key),
5097
+ cell: Y(({ column: n, record: r }) => [Ta(t.$slots, "cell", {
5098
+ column: de.value.find((e) => e.key === n.key),
4991
5099
  record: r
4992
- }, () => [U(Ir, {
4993
- column: ue.value.find((e) => e.key === n.key),
5100
+ }, () => [H(Nr, {
5101
+ column: de.value.find((e) => e.key === n.key),
4994
5102
  record: r,
4995
- reading: J(A)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
5103
+ reading: q(k)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
4996
5104
  }, null, 8, [
4997
5105
  "column",
4998
5106
  "record",
@@ -5001,18 +5109,18 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
5001
5109
  _: 2
5002
5110
  }, [m.value ? {
5003
5111
  name: "conditions",
5004
- fn: X(() => [Da(V("section", null, [(G(), R(wr, {
5112
+ fn: Y(() => [ka(B("section", null, [(W(), L(vr, {
5005
5113
  key: g.value,
5006
5114
  fields: y.value,
5007
- conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...C.value],
5115
+ conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...te.value],
5008
5116
  "excluded-field-names": v.value === "FLAT_AND" ? b.value.map((e) => e.name) : [],
5009
5117
  "option-items-by-field": e.queryOptionsByField,
5010
5118
  "reference-contexts": {},
5011
5119
  "reference-picker-of": e.referencePickerOf,
5012
- disabled: J(j),
5120
+ disabled: q(A),
5013
5121
  composition: v.value === "FLAT_AND" ? "FLAT_AND" : "TREE",
5014
- onApply: O,
5015
- onClear: i[3] ||= (e) => O(void 0),
5122
+ onApply: re,
5123
+ onClear: i[3] ||= (e) => re(void 0),
5016
5124
  onValidation: i[4] ||= (e) => h.value = e
5017
5125
  }, null, 8, [
5018
5126
  "fields",
@@ -5022,7 +5130,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
5022
5130
  "reference-picker-of",
5023
5131
  "disabled",
5024
5132
  "composition"
5025
- ]))], 512), [[Ea, p.value]])]),
5133
+ ]))], 512), [[Oa, p.value]])]),
5026
5134
  key: "0"
5027
5135
  } : void 0]), 1032, [
5028
5136
  "title",
@@ -5049,32 +5157,32 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
5049
5157
  "onQuickSearch",
5050
5158
  "onPageChange",
5051
5159
  "onPageSizeChange"
5052
- ]), U(Oi, {
5053
- open: !!J(M),
5054
- docked: fe.value,
5055
- title: me.value,
5160
+ ]), H(ji, {
5161
+ open: !!q(M),
5162
+ docked: pe.value,
5163
+ title: he.value,
5056
5164
  dismissal: "dismissible",
5057
- onClose: J(k).closeDetail
5058
- }, ca({
5059
- default: X(() => [J(ae) ? (G(), R(J(Ft), {
5165
+ onClose: q(O).closeDetail
5166
+ }, ua({
5167
+ default: Y(() => [q(oe) ? (W(), L(q(_n), {
5060
5168
  key: 0,
5061
- message: ge(J(ae))
5062
- }, null, 8, ["message"])) : J(N) ? (G(), R(J(Jt), { key: 1 })) : J(M) && J(ie) ? (G(), B(sa, { key: 2 }, [U(Cn, {
5063
- record: J(ie),
5064
- fields: de.value
5065
- }, null, 8, ["record", "fields"]), Ca(t.$slots, "detail", {
5066
- record: J(M),
5067
- detail: J(ie),
5068
- refresh: J(k).refresh
5069
- }, void 0, !0)], 64)) : z("v-if", !0)]),
5169
+ message: _e(q(oe))
5170
+ }, null, 8, ["message"])) : q(ae) ? (W(), L(q(ra), { key: 1 })) : q(M) && q(ie) ? (W(), z(la, { key: 2 }, [H(Cn, {
5171
+ record: q(ie),
5172
+ fields: fe.value
5173
+ }, null, 8, ["record", "fields"]), Ta(t.$slots, "detail", {
5174
+ record: q(M),
5175
+ detail: q(ie),
5176
+ refresh: q(O).refresh
5177
+ }, void 0, !0)], 64)) : R("v-if", !0)]),
5070
5178
  _: 2
5071
- }, [J(M) && J(ie) && !J(N) && !J(ae) ? {
5179
+ }, [q(M) && q(ie) && !q(ae) && !q(oe) ? {
5072
5180
  name: "operation",
5073
- fn: X(() => [Ca(t.$slots, "detailOperations", {
5074
- record: J(M),
5075
- detail: J(ie),
5076
- refresh: J(k).refresh,
5077
- close: J(k).closeDetail
5181
+ fn: Y(() => [Ta(t.$slots, "detailOperations", {
5182
+ record: q(M),
5183
+ detail: q(ie),
5184
+ refresh: q(O).refresh,
5185
+ close: q(O).closeDetail
5078
5186
  }, void 0, !0)]),
5079
5187
  key: "0"
5080
5188
  } : void 0]), 1032, [
@@ -5084,13 +5192,13 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
5084
5192
  "onClose"
5085
5193
  ])]),
5086
5194
  _: 3
5087
- }, 8, ["detail-surface", "list-surface"])], 8, ku));
5195
+ }, 8, ["detail-surface", "list-surface"])], 8, ju));
5088
5196
  }
5089
5197
  }), [["__scopeId", "data-v-e13b15ec"]]);
5090
5198
  //#endregion
5091
5199
  //#region src/app/useExternalLoginHost.ts
5092
- function ju(e) {
5093
- let t = I(), n = K(), r = K(!1), i, a = K(), o = K(!1);
5200
+ function Nu(e) {
5201
+ let t = N(), n = G(), r = G(!1), i, a = G(), o = G(!1);
5094
5202
  async function s() {
5095
5203
  let r = a.value;
5096
5204
  if (r && !o.value) {
@@ -5100,9 +5208,9 @@ function ju(e) {
5100
5208
  state: r.pending.state,
5101
5209
  browserProof: r.pending.browserProof
5102
5210
  });
5103
- i.status === "succeeded" ? (a.value = void 0, i.login ? await e.onAuthenticated(i.login) : n.value = () => t.t("platform.external-login.created-sign-in-again", "账号已创建,请重新扫码登录")) : n.value = () => el(i, t);
5211
+ i.status === "succeeded" ? (a.value = void 0, i.login ? await e.onAuthenticated(i.login) : n.value = () => t.t("platform.external-login.created-sign-in-again", "账号已创建,请重新扫码登录")) : n.value = () => nl(i, t);
5104
5212
  } catch (e) {
5105
- n.value = () => $t(tt(e), t);
5213
+ n.value = () => Pt(en(e), t);
5106
5214
  } finally {
5107
5215
  o.value = !1;
5108
5216
  }
@@ -5112,7 +5220,7 @@ function ju(e) {
5112
5220
  r.value = !0, n.value = void 0;
5113
5221
  try {
5114
5222
  await e.router.isReady();
5115
- let r = e.router.currentRoute.value, i = e.callbackPath ?? "/", o = r.path === i ? $c(r.query) : void 0;
5223
+ let r = e.router.currentRoute.value, i = e.callbackPath ?? "/", o = r.path === i ? tl(r.query) : void 0;
5116
5224
  if (!o) return !1;
5117
5225
  let s = o.pending;
5118
5226
  if (await e.router.replace({
@@ -5128,23 +5236,23 @@ function ju(e) {
5128
5236
  return c.status === "confirmationRequired" && c.confirmation && s.purpose === "login" ? (a.value = {
5129
5237
  pending: s,
5130
5238
  confirmation: c.confirmation
5131
- }, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (ft(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => el(c, t), s.purpose === "login" && !e.signedIn() || (xn(n.value()), !1));
5239
+ }, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (En(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => nl(c, t), s.purpose === "login" && !e.signedIn() || (Wi(n.value()), !1));
5132
5240
  } catch (r) {
5133
- return n.value = () => $t(tt(r), t), !e.signedIn() || (xn(n.value()), !1);
5241
+ return n.value = () => Pt(en(r), t), !e.signedIn() || (Wi(n.value()), !1);
5134
5242
  } finally {
5135
5243
  r.value = !1;
5136
5244
  }
5137
5245
  }
5138
5246
  return {
5139
5247
  client: e.client,
5140
- confirmation: L(() => a.value?.confirmation),
5141
- confirming: L(() => o.value),
5248
+ confirmation: I(() => a.value?.confirmation),
5249
+ confirming: I(() => o.value),
5142
5250
  confirmProvisioning: s,
5143
5251
  cancelProvisioning() {
5144
5252
  o.value || (a.value = void 0, n.value = void 0);
5145
5253
  },
5146
- error: L(() => n.value?.()),
5147
- completing: L(() => r.value),
5254
+ error: I(() => n.value?.()),
5255
+ completing: I(() => r.value),
5148
5256
  completeReturn() {
5149
5257
  return i ||= c().finally(() => {
5150
5258
  i = void 0;
@@ -5153,4 +5261,4 @@ function ju(e) {
5153
5261
  };
5154
5262
  }
5155
5263
  //#endregion
5156
- export { ht as AppError, iu as AppWorkbenchShell, ni as AssistantCapabilityUsageError, Jn as AssistantConversationInterruptedError, yi as AssistantEffectInterruptedError, Xr as AssistantOperationRejectedError, Xr as OperationRejectedError, xt as BusinessNotificationPanel, Jc as ChangeOwnPasswordDialog, $i as CronExpressionInput, zl as CurrentUserProfileDialog, _t as DateTimeText, Ar as DraftUpdateRejectedError, $n as DrawerOperationBar, Fr as DurationSecondsInput, he as DynamicModuleWorkspaceDetailView, yl as ExternalIdentityBindings, su as ExternalProvisioningConfirmation, Qr as FileSizeText, vr as FileTransferUploadCancelledError, Fi as FileTransferUploader, Re as LanguageSelector, Du as LoginView, ji as ManagementExplorerColumn, ii as ManagementWorkspace, _i as ModuleContextProvider, Bt as ModuleHttpProvider, ae as ModuleReferenceRecordDetailBrowser, Zn as OperationUsageError, Wl as PersonalAccessTokenDialog, Gc as PlatformAdminOutlet, Gs as PlatformAdminRouteOutlet, Au as ReadonlyRecordWorkspace, mt as ReadonlyReferenceValue, Rn as RecordDetailDrawer, Qi as RecordDetailExtensionSection, Cn as RecordDetailFields, mi as RecordDetailPanel, ar as RecordExplorerPanel, Ir as RecordQueryListCell, Vt as RecordQueryListSurface, oi as ReferencePicker, Ci as ReferencePickerReadError, ur as ReferenceRecordDetailBrowser, Ei as SingleImageFileReferenceField, Lr as StaleAssistantInvocationError, vi as TenantScopeExplorer, Yl as ThemeSkinPreferencesDialog, P as UiButton, jt as UiDataTable, Li as UiDatePicker, Wt as UiDropdown, kn as UiEmpty, Ft as UiError, er as UiIcon, F as UiInput, hr as UiInputGroup, rt as UiLanguageProvider, Di as UiSearchInput, Or as UiSelect, ct as UiSidePanel, zt as UiSwitch, Br as UiTextArea, Gn as UiThemeProvider, In as UiTree, ai as UiTreeSelect, Ss as VueQueryPlugin, a as Workbench, tu as WorkbenchAccountCenter, ge as WorkbenchAssistantPanel, D as WorkbenchMenu, ie as WorkbenchOutlet, se as WorkspaceViewOutlet, or as actionResultData, oc as activeTabUrlOf, mc as arrangeLockedMenuTabs, dn as boundedAssistantConversationHistory, E as buildWorkbenchMegaMenuModel, Wi as businessContentGenerationBatch, on as businessContentLabel, Ht as businessContentLanguageContext, hi as businessContentLanguages, En as businessContentPath, Lt as businessContentReadHeaders, gi as businessNotificationExpired, jr as canQueryRecycleBin, A as canonicalDynamicModulePath, St as changeBusinessContentTranslation, y as clearAuthToken, zi as codeOperationErrorMessage, qs as configureAuthenticationRecovery, Kn as configureModuleContext, Ke as configureModulePageEnhancementContributions, T as configureModulePageEnhancements, Ou as configureUserPreferencePersistence, Ve as configureWorkspaceViewContributions, cn as confirmAction, De as confirmDiscardWorkspaceViewState, xe as connectAppRealtime, bn as connectRealtimeBusinessEvents, dt as connectRealtimeBusinessNotifications, Ui as connectRealtimeDataChanges, Tn as connectRealtimeUserNotifications, b as constructionPlanLimits, bt as contextDataChangeChannel, tr as createAssistantCapabilitySelection, Es as createAssistantConversationClient, $e as createAssistantDisplayObservations, Tr as createAssistantOperationConfirmation, si as createAssistantSurfaceRegistry, Wn as createAssistantTurnRequester, te as createAuthClient, Ys as createBackendHttpClient, Dr as createBrowserFileTransferUpload, Ct as createCodeTextPresentation, Ts as createConstructionPlanClient, i as createDataChangeDispatcher, Mt as createDataExchangeClient, s as createExternalLoginClient, zr as createHttpClient, Un as createLanguageContext, ln as createLanguagePreferenceController, Ge as createLoginContextClient, bi as createManagedDetailRelationClient, ne as createMenuClient, k as createMenuTab, Hn as createModuleContext, Rr as createModuleCrudClient, o as createModulePageEnhancementRegistry, nr as createModuleTreeClient, Xn as createModuleTreeContext, ci as createNavigatorReferenceCrudClient, Ti as createNavigatorReferenceTreeClient, Nr as createOperationConfirmation, l as createPageBootstrapClient, c as createPersonalAccessTokenClient, Cs as createQueryClient, gt as createRealtimeClient, Ki as createReferenceResolveClient, S as createSessionClient, yt as createSseParser, fr as createStaticModuleCrudClient, Jr as createStaticModuleTreeClient, Pi as createStaticResourceCrudClient, _r as createStaticResourceTreeClient, Nn as createUuid, O as createWorkbenchMenuNodes, Yt as createWorkflowAdminClient, _n as createWorkflowClient, na as createWorkflowDefinitionClient, ue as createWorkspaceViewDescriptor, pe as createWorkspaceViewRegistry, rn as dataChangeChannel, Vn as defaultUiThemeSkinId, aa as defineWorkspaceView, r as disconnectAppRealtime, Me as dismissWorkspaceViewDescriptor, ri as displayModuleRuntime, j as dynamicModuleAliasFromPath, C as effectiveAuthToken, wi as emptyAssistantCapabilityInputSchema, d as filterWorkbenchMenuNodes, w as findFirstNavigationMenu, h as findWorkbenchMenuNodeById, Ne as findWorkbenchMenuPath, m as firstDeepRootIdOf, n as getMenuNavigationTarget, mr as hasExecutableDetailRelationMutationContract, Yr as hasExecutableDetailRelationQueryContract, Qn as hasRecycleBinAbility, Pe as hasWorkspaceViewDiscardProtection, Gr as imConversationMessageChannel, nt as imMessageSendCommand, Rt as invokeBusinessNotificationRecordAction, ir as isHttpStreamClient, Ls as isPlatformAdminRoutePage, de as isTabMenuTarget, Nt as isTextReference, nn as isUnexpectedPlatformError, ze as isWindowMenuTarget, rr as listDetailWorkspaceMinWidth, vt as loadBusinessContentGeneration, an as loadBusinessContentHistory, Kr as loadBusinessContentReading, it as loadBusinessContentSources, Ur as loadBusinessContentTranslationHistory, zn as loadLanguageCatalog, Ye as lookupOperationReceipt, Wr as modelFailureMessage, Bi as moduleAbilityCodes, Hr as moduleDataChangeChannel, We as modulePageWorkspaceViews, be as normalizeChangeSet, tt as normalizeError, Se as normalizeMenuMineResponse, Er as normalizeModuleListResponse, di as normalizeModulePageResponse, Zr as normalizeModuleRecord, Pr as normalizeModuleTreeResponse, Zt as organizationPublicDataChangeChannel, en as organizationPublicNotificationChannel, Kt as originalPresentation, An as pageActionEntryDescription, Ln as pageActionEntryTitle, Ot as pageActionEntryVisible, Gt as pageActionIntent, v as pageAssistantCatalog, Oe as pageDescriptorFromUrl, Fe as pageDescriptorToUrl, ve as pageInstanceKeyOf, oe as pagePublicationDigest, dr as parseEmptyAssistantCapabilityInput, qe as parseOperationReceiptReference, Ps as platformAdminModuleRoutes, Fs as platformAdminRouteLayouts, Ns as platformAdminRoutePrefixes, Ms as platformAdminRoutes, qn as platformCodeTextOriginal, un as platformCodeTextReference, Vr as platformErrorCodes, Qe as platformLanguageContext, sn as platformPingCommand, Qt as prepareBusinessContentTranslation, cr as presentPlatformError, qi as presentPlatformInfo, xn as presentPlatformMessage, ft as presentPlatformSuccess, f as presentWorkbenchRealtimeStatus, mn as presentationLabel, qr as provideAssistantSurfaceHost, He as provideCurrentUserContext, Cr as provideLanguageContext, pn as provideModuleContextConfig, lr as provideRecordReadRefreshGuard, fe as provideWorkbenchNavigation, Tt as provideWorkspaceUnsavedStateRegistrar, Be as provideWorkspaceViewHost, ws as queryKeys, Bn as readAssistantAvailability, wt as realtimeDestinations, Pt as realtimeMessageTypes, ea as recordBusinessContentArray, ot as recordBusinessContentText, qt as recordDataChangeChannel, jn as recordPresentationLabel, kt as recordPresentationText, re as refreshModulePageList, lt as refreshWorkflowRecordActions, yr as registerUiLanguageLocales, xc as removeLockedMenuTabs, tn as requestBusinessContentGeneration, Xt as resolveGlobalErrorPresentation, Yi as resolveOperationErrorMessage, N as resolvePageDescriptor, Is as resolvePlatformAdminRoute, Dn as resolvePresentationText, vn as resolveRecordDetailFields, Mr as resolveRecordQueryListColumns, ia as resolveRecordReadEntry, Gi as resolveWebActionResult, yn as resolveWebActionResultMessage, Ee as resolveWorkspaceView, hn as resourceDataChangeChannel, ta as resourceRecordDataChangeChannel, ui as restoreAssistantOperationReceipt, Hc as restoreLockedTabPreference, gc as restoreLockedWorkbenchTabs, $l as restoreThemeSkinPreference, sc as restoreWorkbenchStartupStateFromUrl, je as routeUrlWithOpenOptions, xr as runAssistantConversation, ki as runAssistantStep, Ni as sameAssistantInvocationToken, u as saveAuthSessionId, p as saveAuthToken, Uc as saveLockedTabPreference, eu as saveThemeSkinPreference, st as sessionActivityCommand, g as storedAuthSessionId, ee as storedAuthToken, ye as subscribeAppBusinessEvents, _ as subscribeAppDataChanges, ke as syncModulePageWorkspaceViewContributions, Ae as tabIdentityKeyOf, Le as tabKeyOf, Mn as tenantPublicDataChangeChannel, At as tenantPublicNotificationChannel, Mi as textReferenceMatchesOriginal, Ql as themeSkinPreferenceKey, Pn as translatedPresentation, ce as tryPageDescriptorFromUrl, Yn as uiThemeSkinById, fn as uiThemeSkins, fi as unwrapResponsePayload, yc as updateLockedMenuTabs, pr as uploadedFileId, gr as useAssistantSurfaceHost, pt as useBusinessContentGenerationBatch, Zi as useBusinessContentReading, Je as useCurrentUserContext, Xe as useEffectiveAuthToken, ju as useExternalLoginHost, I as useLanguageContext, et as useModuleContext, Sr as useModuleHttpClient, Ai as useModuleTreeContext, Ws as usePageDescriptor, Us as usePageRoute, Zl as usePersonalAccessTokenAccess, Ji as useRecordReadRefreshGuard, Sn as useRecordReadRefreshRevision, ra as useRecordReadSession, Te as useWorkbenchNavigation, ti as useWorkspaceDetailSurface, le as useWorkspaceViewHost, _e as useWorkspaceViewNavigation, It as useWorkspaceViewUnsavedState, On as userBusinessEventChannel, Fn as userBusinessNotificationChannel, $t as userFacingErrorMessage, Dt as userImMessageChannel, Ut as userNotificationChannel, sr as userPreferences, at as validateCronExpression, ut as webDataChangeKey, Ii as webDataChangeTypes, Hi as webDataChanges, li as withHttpHeaders, Si as withLanguageContext, we as withPageInstanceKey, wn as withWebActionResultChanges, Et as withoutRecordPresentation, Ue as workbenchAccountCommands };
5264
+ export { rt as AppError, ou as AppWorkbenchShell, Pr as AssistantCapabilityUsageError, et as AssistantConversationInterruptedError, $n as AssistantEffectInterruptedError, Tr as AssistantOperationRejectedError, Tr as OperationRejectedError, on as BusinessNotificationPanel, Xc as ChangeOwnPasswordDialog, ea as CronExpressionInput, Vl as CurrentUserProfileDialog, Wr as DateTimeText, Yi as DraftUpdateRejectedError, Zi as DrawerOperationBar, Qn as DurationSecondsInput, ge as DynamicModuleWorkspaceDetailView, xl as ExternalIdentityBindings, lu as ExternalProvisioningConfirmation, Dr as FileSizeText, pi as FileTransferUploadCancelledError, xr as FileTransferUploader, ze as LanguageSelector, ku as LoginView, wi as ManagementExplorerColumn, Ir as ManagementWorkspace, Gn as ModuleContextProvider, Vn as ModuleHttpProvider, qe as ModuleReferenceRecordDetailBrowser, rr as OperationUsageError, Kl as PersonalAccessTokenDialog, qc as PlatformAdminOutlet, qs as PlatformAdminRouteOutlet, Mu as ReadonlyRecordWorkspace, gt as ReadonlyReferenceValue, Kt as RecordDetailDrawer, $i as RecordDetailExtensionSection, Cn as RecordDetailFields, _i as RecordDetailPanel, nr as RecordExplorerPanel, Nr as RecordQueryListCell, Hn as RecordQueryListSurface, oi as ReferencePicker, Ei as ReferencePickerReadError, or as ReferenceRecordDetailBrowser, Jr as SingleImageFileReferenceField, si as StaleAssistantInvocationError, xi as TenantScopeExplorer, Zl as ThemeSkinPreferencesDialog, F as UiButton, In as UiDataTable, Cr as UiDatePicker, Bt as UiDropdown, Ot as UiEmpty, _n as UiError, Qi as UiIcon, P as UiInput, Ri as UiInputGroup, Qt as UiLanguageProvider, Xr as UiSearchInput, ei as UiSelect, Mt as UiSidePanel, Bn as UiSwitch, ui as UiTextArea, Jn as UiThemeProvider, Wt as UiTree, Rr as UiTreeSelect, Cs as VueQueryPlugin, re as Workbench, ru as WorkbenchAccountCenter, he as WorkbenchAssistantPanel, f as WorkbenchMenu, ae as WorkbenchOutlet, ce as WorkspaceViewOutlet, ft as actionResultData, cc as activeTabUrlOf, gc as arrangeLockedMenuTabs, mr as boundedAssistantConversationHistory, O as buildWorkbenchMegaMenuModel, St as businessContentGenerationBatch, qt as businessContentLabel, Un as businessContentLanguageContext, Rn as businessContentLanguages, yt as businessContentPath, Kn as businessContentReadHeaders, Wn as businessNotificationExpired, Vi as canQueryRecycleBin, k as canonicalDynamicModulePath, sn as changeBusinessContentTranslation, x as clearAuthToken, Ki as codeOperationErrorMessage, Ys as configureAuthenticationRecovery, Yn as configureModuleContext, C as configureModulePageEnhancementContributions, o as configureModulePageEnhancements, Au as configureUserPreferencePersistence, de as configureWorkspaceViewContributions, It as confirmAction, Oe as confirmDiscardWorkspaceViewState, r as connectAppRealtime, Ui as connectRealtimeBusinessEvents, Tn as connectRealtimeBusinessNotifications, xt as connectRealtimeDataChanges, vt as connectRealtimeUserNotifications, te as constructionPlanLimits, an as contextDataChangeChannel, Di as createAssistantCapabilitySelection, Ds as createAssistantConversationClient, Mi as createAssistantDisplayObservations, Zr as createAssistantOperationConfirmation, sr as createAssistantSurfaceRegistry, qn as createAssistantTurnRequester, s as createAuthClient, Zs as createBackendHttpClient, $r as createBrowserFileTransferUpload, Os as createBusinessNotificationSession, hn as createCodeTextPresentation, Es as createConstructionPlanClient, xe as createDataChangeDispatcher, Ln as createDataExchangeClient, Ke as createExternalLoginClient, Ai as createHttpClient, dn as createLanguageContext, Lt as createLanguagePreferenceController, E as createLoginContextClient, er as createManagedDetailRelationClient, l as createMenuClient, j as createMenuTab, mn as createModuleContext, ci as createModuleCrudClient, Ge as createModulePageEnhancementRegistry, Oi as createModuleTreeClient, nt as createModuleTreeContext, cr as createNavigatorReferenceCrudClient, qr as createNavigatorReferenceTreeClient, Xn as createOperationConfirmation, c as createPageBootstrapClient, ee as createPersonalAccessTokenClient, ws as createQueryClient, Ur as createRealtimeClient, pt as createReferenceResolveClient, Ce as createSessionClient, Hr as createSseParser, Ii as createStaticModuleCrudClient, dr as createStaticModuleTreeClient, br as createStaticResourceCrudClient, fi as createStaticResourceTreeClient, An as createUuid, d as createWorkbenchMenuNodes, ia as createWorkflowAdminClient, ut as createWorkflowClient, Nn as createWorkflowDefinitionClient, me as createWorkspaceViewDescriptor, Ne as createWorkspaceViewRegistry, it as dataChangeChannel, pn as defaultUiThemeSkinId, sa as defineWorkspaceView, be as disconnectAppRealtime, De as dismissWorkspaceViewDescriptor, Fr as displayModuleRuntime, S as dynamicModuleAliasFromPath, u as effectiveAuthToken, Kr as emptyAssistantCapabilityInputSchema, h as filterWorkbenchMenuNodes, n as findFirstNavigationMenu, Pe as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, A as firstDeepRootIdOf, fe as getMenuNavigationTarget, fr as hasExecutableDetailRelationMutationContract, Sr as hasExecutableDetailRelationQueryContract, Xi as hasRecycleBinAbility, Fe as hasWorkspaceViewDiscardProtection, Br as imConversationMessageChannel, Zt as imMessageSendCommand, zn as invokeBusinessNotificationRecordAction, lr as isHttpStreamClient, zs as isPlatformAdminRoutePage, Be as isTabMenuTarget, ta as isTextReference, zr as isUnexpectedPlatformError, ke as isWindowMenuTarget, ki as listDetailWorkspaceMinWidth, Gr as loadBusinessContentGeneration, at as loadBusinessContentHistory, Vr as loadBusinessContentReading, $t as loadBusinessContentSources, nn as loadBusinessContentTranslationHistory, $e as loadLanguageCatalog, se as lookupOperationReceipt, Xt as modelFailureMessage, ir as moduleAbilityCodes, tn as moduleDataChangeChannel, T as modulePageWorkspaceViews, v as normalizeChangeSet, en as normalizeError, i as normalizeMenuMineResponse, Qr as normalizeModuleListResponse, jr as normalizeModulePageResponse, Er as normalizeModuleRecord, Zn as normalizeModuleTreeResponse, ln as organizationPublicDataChangeChannel, wt as organizationPublicNotificationChannel, st as originalPresentation, kt as pageActionEntryDescription, Gt as pageActionEntryTitle, bi as pageActionEntryVisible, Vt as pageActionIntent, b as pageAssistantCatalog, Ie as pageDescriptorFromUrl, ye as pageDescriptorToUrl, oe as pageInstanceKeyOf, Je as pagePublicationDigest, Fi as parseEmptyAssistantCapabilityInput, w as parseOperationReceiptReference, Is as platformAdminModuleRoutes, Ls as platformAdminRouteLayouts, Fs as platformAdminRoutePrefixes, Ps as platformAdminRoutes, gr as platformCodeTextOriginal, Pi as platformCodeTextReference, cn as platformErrorCodes, ai as platformLanguageContext, Ft as platformPingCommand, un as prepareBusinessContentTranslation, xn as presentPlatformError, mt as presentPlatformInfo, Wi as presentPlatformMessage, En as presentPlatformSuccess, D as presentWorkbenchRealtimeStatus, jn as presentationLabel, ur as provideAssistantSurfaceHost, Ue as provideCurrentUserContext, Ti as provideLanguageContext, hr as provideModuleContextConfig, Sn as provideRecordReadRefreshGuard, pe as provideWorkbenchNavigation, Yt as provideWorkspaceUnsavedStateRegistrar, Ve as provideWorkspaceViewHost, Ts as queryKeys, fn as readAssistantAvailability, Jt as realtimeDestinations, gn as realtimeMessageTypes, At as recordBusinessContentArray, On as recordBusinessContentText, na as recordDataChangeChannel, Pn as recordPresentationLabel, Et as recordPresentationText, M as refreshModulePageList, Nt as refreshWorkflowRecordActions, hi as registerUiLanguageLocales, Cc as removeLockedMenuTabs, Tt as requestBusinessContentGeneration, Ct as resolveGlobalErrorPresentation, yn as resolveOperationErrorMessage, je as resolvePageDescriptor, Rs as resolvePlatformAdminRoute, Ht as resolvePresentationText, dt as resolveRecordDetailFields, kr as resolveRecordQueryListColumns, oa as resolveRecordReadEntry, Hi as resolveWebActionResult, wn as resolveWebActionResultMessage, _e as resolveWorkspaceView, ct as resourceDataChangeChannel, Mn as resourceRecordDataChangeChannel, Ar as restoreAssistantOperationReceipt, Wc as restoreLockedTabPreference, vc as restoreLockedWorkbenchTabs, Bi as restoreOperationConfirmation, tu as restoreThemeSkinPreference, lc as restoreWorkbenchStartupStateFromUrl, Me as routeUrlWithOpenOptions, ri as runAssistantConversation, Si as runAssistantStep, yr as sameAssistantInvocationToken, p as saveAuthSessionId, g as saveAuthToken, Gc as saveLockedTabPreference, nu as saveThemeSkinPreference, jt as sessionActivityCommand, ne as storedAuthSessionId, Ze as storedAuthToken, _ as subscribeAppBusinessEvents, y as subscribeAppDataChanges, Ae as syncModulePageWorkspaceViewContributions, Re as tabIdentityKeyOf, le as tabKeyOf, kn as tenantPublicDataChangeChannel, Fn as tenantPublicNotificationChannel, Lr as textReferenceMatchesOriginal, eu as themeSkinPreferenceKey, vi as translatedPresentation, Te as tryPageDescriptorFromUrl, tt as uiThemeSkinById, _r as uiThemeSkins, Mr as unwrapResponsePayload, xc as updateLockedMenuTabs, Li as uploadedFileId, di as useAssistantSurfaceHost, Dn as useBusinessContentGenerationBatch, Ji as useBusinessContentReading, Ye as useCurrentUserContext, a as useEffectiveAuthToken, Nu as useExternalLoginHost, N as useLanguageContext, Ni as useModuleContext, ii as useModuleHttpClient, Ci as useModuleTreeContext, Ks as usePageDescriptor, Gs as usePageRoute, $l as usePersonalAccessTokenAccess, ht as useRecordReadRefreshGuard, Gi as useRecordReadRefreshRevision, aa as useRecordReadSession, Ee as useWorkbenchNavigation, ni as useWorkspaceDetailSurface, ue as useWorkspaceViewHost, ve as useWorkspaceViewNavigation, vn as useWorkspaceViewUnsavedState, Dt as userBusinessEventChannel, Ut as userBusinessNotificationChannel, Pt as userFacingErrorMessage, yi as userImMessageChannel, zt as userNotificationChannel, bn as userPreferences, ot as validateCronExpression, bt as webDataChangeKey, mi as webDataChangeTypes, _t as webDataChanges, Yr as withHttpHeaders, li as withLanguageContext, He as withPageInstanceKey, rn as withWebActionResultChanges, Rt as withoutRecordPresentation, Xe as workbenchAccountCommands };