@ximatai/muyun-web-app 0.26.22 → 0.26.24

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 (59) hide show
  1. package/dist/{BusinessActivityLogView-CXBpVbZW.js → BusinessActivityLogView-DQ5_VmLp.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-DToyqP9V.js → BusinessLogListDrawer-BnucgqNA.js} +116 -116
  3. package/dist/{CodeConfigurationView-DAdbnF2Y.js → CodeConfigurationView-CtQjmpLz.js} +527 -527
  4. package/dist/{ConfigurationTranslationView-D1aLZQlx.js → ConfigurationTranslationView-BiYn2MJx.js} +26 -26
  5. package/dist/{LoginAuditLogView-DRxp6BbU.js → LoginAuditLogView-BIz1LVC3.js} +2 -2
  6. package/dist/ModuleActionManagementView-0_ek9yag.js +780 -0
  7. package/dist/{ModuleGovernanceView-C7V5KQcA.js → ModuleGovernanceView-DEDF61vj.js} +3061 -3061
  8. package/dist/{RequestErrorLogView-S6O4ha82.js → RequestErrorLogView-HatmiK8_.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-BzzoarpR.js +1435 -0
  10. package/dist/{RuntimeLogView-BuF-xgEc.js → RuntimeLogView-Vdt6SWK6.js} +65 -65
  11. package/dist/{WorkflowAdministrationView-DkK3Wybi.js → WorkflowAdministrationView-Dlw2ng0N.js} +193 -193
  12. package/dist/{WorkflowConfigurationView-8DFNdIyI.js → WorkflowConfigurationView-j2xnGmkM.js} +39 -39
  13. package/dist/{WorkflowWorkbenchView-CAloU49z.js → WorkflowWorkbenchView-Nv4mvTTP.js} +122 -122
  14. package/dist/{codeConfiguration-BV9yki1E.js → codeConfiguration-B_z1qQvB.js} +43 -43
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +1344 -818
  17. package/dist/moduleMenuWorkspace-1N0U7QW9.js +626 -0
  18. package/dist/{platform-components-C9cG_1E2.js → platform-components-Xb5qgsXU.js} +3088 -2999
  19. package/dist/{platform-workbench-BSTroBaq.js → platform-workbench-VhgKhPLI.js} +5106 -5031
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +6 -0
  23. package/dist/types/app/ExternalIdentityBindings.vue.d.ts +8 -0
  24. package/dist/types/app/ExternalProvisioningConfirmation.vue.d.ts +15 -0
  25. package/dist/types/app/LoginView.vue.d.ts +3 -1
  26. package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
  27. package/dist/types/app/externalLoginReturn.d.ts +38 -0
  28. package/dist/types/app/useExternalLoginHost.d.ts +27 -0
  29. package/dist/types/app/weLinkQrCode.d.ts +22 -0
  30. package/dist/types/consumer/index.d.ts +7 -2
  31. package/dist/types/consumer/recordRead.d.ts +6 -0
  32. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -0
  33. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -0
  34. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  35. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -0
  36. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +11 -15
  37. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +2 -0
  38. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  39. package/dist/types/platform-admin-runtime/job/ScheduledActionTargetFields.vue.d.ts +7 -0
  40. package/dist/types/platform-admin-runtime/scheduledActionPlanPageEnhancement.d.ts +3 -0
  41. package/dist/types/platform-components/BusinessNotificationCard.vue.d.ts +30 -0
  42. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +4 -39
  43. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +8 -17
  45. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +2 -0
  46. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  47. package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +4 -0
  48. package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
  49. package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
  50. package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
  51. package/dist/types/views/businessRuleGovernance.d.ts +1 -0
  52. package/dist/types/web-contracts/index.d.ts +71 -2
  53. package/dist/types/web-core/clients.d.ts +11 -1
  54. package/dist/{useWorkflowConfigurationContext-ClwD0BWE.js → useWorkflowConfigurationContext-BLFXzHwn.js} +8 -8
  55. package/dist/{workspaceViews-Cvi7uakV.js → workspaceViews-Cas3PR5B.js} +1035 -879
  56. package/package.json +5 -1
  57. package/dist/ModuleActionManagementView-D4oXCnW2.js +0 -755
  58. package/dist/RoleDetailWorkspaceView-lg4XwTlN.js +0 -1435
  59. package/dist/moduleMenuWorkspace-BBOQrHeT.js +0 -626
package/dist/index.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import { n as e, r as t } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { $ as n, A as r, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as ee, S as te, St as ne, Tt as re, U as ie, V as S, W as ae, X as oe, Y as se, Z as ce, _ as C, _t as w, a as T, at as E, b as D, bt as le, c as ue, ct as O, d as de, dt as fe, et as pe, f as k, ft as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as A, o as De, ot as Oe, p as ke, pt as Ae, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as Ve, w as He, wt as Ue, x as We, xt as Ge, y as Ke, yt as qe, z as Je } from "./platform-workbench-BSTroBaq.js";
3
- import { $a as Ye, $i as Xe, $r as Ze, Aa as Qe, Ai as $e, An as et, Ar as tt, Ba as nt, Bi as rt, Bn as it, Br as at, Ca as ot, Ci as st, Cn as ct, Cr as lt, Da as ut, Di as dt, Dn as ft, Dr as pt, Ea as mt, Ei as ht, En as gt, Er as _t, Fa as vt, Fi as yt, Fr as bt, G as xt, Ga as St, Gi as Ct, Gn as wt, Gr as Tt, Ha as Et, Hi as Dt, Hn as Ot, Hr as kt, Ht as At, Ia as jt, Ii as Mt, In as Nt, Ir as Pt, It as Ft, Ja as It, Ji as Lt, Jn as Rt, Jr as zt, Ka as Bt, Ki as Vt, Kn as Ht, Kr as Ut, Kt as Wt, La as Gt, Li as Kt, Lr as qt, Ma as Jt, Mi as Yt, Mn as Xt, Mr as Zt, Na as Qt, Ni as $t, Nn 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, Q 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, Ta as Cn, Ti as wn, Tr as Tn, Ua as En, Ui as Dn, Ur as On, Va as kn, Vi as An, Vr as jn, Wa as Mn, Wi as Nn, Wn as Pn, Wr as Fn, Xa as In, Xi as Ln, Xr as Rn, Ya as zn, Yi as Bn, Yr as Vn, Z as Hn, Za as Un, Zi as Wn, Zr as Gn, _a as Kn, _i as qn, _n as Jn, _r as Yn, _t as Xn, aa as Zn, ai as Qn, an as $n, ar as er, ba as tr, bi as nr, bn as rr, br as ir, bt as ar, ca as or, ci as sr, cn as cr, ct as lr, da as ur, di as dr, dn as fr, dr as pr, dt as mr, ea as hr, ei as gr, en as _r, eo as vr, er as yr, et as br, fa as xr, fi as Sr, fn as Cr, fr as wr, ft as Tr, ga as Er, gi as Dr, gr as Or, ha as kr, hi as Ar, hr as jr, ia as Mr, ii as Nr, io as Pr, ir as Fr, ja as Ir, ji as Lr, jr as Rr, ka as zr, ki as Br, kr as Vr, la as Hr, li as Ur, ln as Wr, lt as Gr, ma as Kr, mi as qr, mn as Jr, mr as Yr, mt as Xr, n as Zr, na as Qr, ni as $r, no as ei, oa as ti, oi as ni, on as ri, or as ii, pa as ai, pi as oi, pr as si, pt as ci, qa as li, qi as ui, qn as di, qr as fi, ra as pi, ri as mi, rn as hi, ro as gi, rr as j, sa as _i, si as vi, t as yi, ta as bi, ti as xi, tn as Si, tt as Ci, ua as wi, ui as Ti, un as Ei, ur as Di, ut as Oi, va as ki, vi as Ai, vn as ji, vr as Mi, vt as Ni, wa as Pi, wi as Fi, wr as Ii, xa as Li, xi as Ri, xr as zi, xt as Bi, ya as Vi, yi as Hi, yn as Ui, yr as Wi, za as Gi, zi as Ki, zn as qi, zr as Ji } from "./platform-components-C9cG_1E2.js";
4
- import { m as Yi } from "./codeConfiguration-BV9yki1E.js";
5
- import "./workspaceViews-Cvi7uakV.js";
6
- import * as Xi from "vue";
7
- import { Fragment as Zi, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as Qi, createTextVNode as $i, createVNode as L, defineAsyncComponent as R, defineComponent as z, guardReactiveProps as ea, inject as ta, normalizeClass as na, normalizeProps as ra, normalizeStyle as ia, onBeforeUnmount as aa, onMounted as oa, openBlock as B, provide as sa, ref as V, renderList as ca, renderSlot as H, resolveDynamicComponent as la, toDisplayString as U, unref as W, vShow as ua, watch as da, withCtx as G, withDirectives as fa, withModifiers as pa } from "vue";
2
+ import { $ as n, A as r, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as S, S as ee, St as te, Tt as ne, U as re, V as C, W as ie, X as ae, Y as oe, Z as se, _ as w, _t as T, a as E, at as ce, b as D, bt as le, c as ue, ct as O, d as de, dt as fe, et as pe, f as me, ft as he, gt as ge, h as _e, ht as ve, i as ye, it as be, j as xe, k 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-VhgKhPLI.js";
3
+ import { $a as Ze, $i as Qe, $r as $e, $t as et, Aa as tt, Ai as nt, An as rt, Ar as it, Ba as at, Bi as ot, Bn as st, Br as ct, Ca as lt, Ci as ut, Cn as dt, Cr as ft, Da as pt, Di as mt, Dn as ht, Dr as gt, Ea as _t, Ei as vt, En as yt, Er as bt, Fa as xt, Fi as St, Fr as Ct, G as wt, Ga as Tt, Gi as Et, Gn as Dt, Gr as Ot, Ha as kt, Hi as At, Hn as jt, Hr as Mt, Ht as Nt, Ia as Pt, Ii as Ft, In as It, Ir as Lt, It as Rt, Ja as zt, Ji as Bt, Jn as Vt, Jr as Ht, Ka as Ut, Ki as Wt, Kn as Gt, Kr as Kt, Kt as qt, La as Jt, Li as Yt, Lr as Xt, Ma as Zt, Mi as Qt, Mn as $t, Mr as en, Na as tn, Ni as nn, Nn as rn, Nr as an, Oa as k, Oi as on, Or as sn, Pa as cn, Pi as ln, Pn as un, Pr as dn, Q as fn, Qa as pn, Qi as mn, Qn as hn, Qr as gn, Ra as _n, Ri as vn, Rn as yn, Rr as bn, Sa as xn, Si as Sn, Sn as Cn, Sr as wn, Ta as A, Ti as Tn, Tr as En, Ua as Dn, Ui as On, Ur as kn, Va as An, Vi as jn, Vr as Mn, Wa as Nn, Wi as Pn, Wn as Fn, Wr as In, Xa as Ln, Xi as Rn, Xr as zn, Ya as Bn, Yi as Vn, Yr as Hn, Z as Un, Za as j, Zi as Wn, Zr as Gn, _a as Kn, _i as qn, _n as Jn, _r as Yn, _t as Xn, aa as Zn, ai as Qn, an as $n, ao as er, ar as tr, ba as nr, bi as rr, bn as ir, br as ar, bt as or, ca as sr, ci as cr, cn as lr, ct as ur, da as dr, di as fr, dn as pr, dr as M, dt as mr, ea as hr, ei as gr, en as _r, eo as vr, er as yr, et as br, fa as xr, fi as Sr, fn as Cr, fr as wr, ft as Tr, ga as Er, gi as Dr, gr as Or, ha as kr, hi as Ar, hr as jr, ia as Mr, ii as Nr, io as Pr, ir as N, ja as Fr, ji as Ir, jr as Lr, ka as Rr, ki as zr, kr as Br, la as Vr, li as Hr, ln as Ur, lt as Wr, ma as Gr, mi as Kr, mn as qr, mr as Jr, mt as Yr, n as Xr, na as Zr, ni as Qr, oa as $r, oi as ei, on as ti, or as ni, pa as ri, pi as ii, pr as P, pt as ai, qa as oi, qi as si, qn as ci, qr as li, r as ui, ra as di, ri as fi, rn as pi, ro as mi, rr as hi, rt as gi, sa as _i, si as vi, sr as yi, t as bi, ta as xi, ti as Si, tn as Ci, to as wi, tt as Ti, ua as Ei, ui as Di, un as Oi, ut as ki, va as Ai, vi as ji, vn as Mi, vr as Ni, vt as Pi, wa as Fi, wi as Ii, wr as Li, xa as Ri, xi as zi, xr as Bi, xt as Vi, ya as Hi, yi as Ui, yn as Wi, yr as Gi, za as Ki, zi as qi, zn as Ji, zr as Yi } from "./platform-components-Xb5qgsXU.js";
4
+ import { n as Xi, t as Zi } from "./recordReadEntry-CxDHM44F.js";
5
+ import { m as Qi } from "./codeConfiguration-B_z1qQvB.js";
6
+ import "./workspaceViews-Cas3PR5B.js";
7
+ import * as $i from "vue";
8
+ import { Fragment as F, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as ea, createTextVNode as V, createVNode as H, defineAsyncComponent as U, defineComponent as W, guardReactiveProps as ta, inject as na, normalizeClass as ra, normalizeProps as ia, normalizeStyle as aa, onBeforeUnmount as oa, onMounted as sa, openBlock as G, provide as ca, ref as K, renderList as la, renderSlot as ua, resolveDynamicComponent as da, toDisplayString as q, unref as J, useId as fa, vShow as pa, watch as ma, withCtx as Y, withDirectives as ha, withModifiers as ga } from "vue";
8
9
  //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
9
- var ma = class {
10
+ var _a = class {
10
11
  constructor() {
11
12
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
12
13
  }
@@ -20,7 +21,7 @@ var ma = class {
20
21
  }
21
22
  onSubscribe() {}
22
23
  onUnsubscribe() {}
23
- }, ha = new class extends ma {
24
+ }, va = new class extends _a {
24
25
  #e;
25
26
  #t;
26
27
  #n;
@@ -57,13 +58,13 @@ var ma = class {
57
58
  isFocused() {
58
59
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
59
60
  }
60
- }(), ga = {
61
+ }(), ya = {
61
62
  setTimeout: (e, t) => setTimeout(e, t),
62
63
  clearTimeout: (e) => clearTimeout(e),
63
64
  setInterval: (e, t) => setInterval(e, t),
64
65
  clearInterval: (e) => clearInterval(e)
65
- }, _a = new class {
66
- #e = ga;
66
+ }, ba = new class {
67
+ #e = ya;
67
68
  #t = !1;
68
69
  setTimeoutProvider(e) {
69
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.", {
@@ -84,34 +85,34 @@ var ma = class {
84
85
  this.#e.clearInterval(e);
85
86
  }
86
87
  }();
87
- function va(e) {
88
+ function xa(e) {
88
89
  setTimeout(e, 0);
89
90
  }
90
91
  //#endregion
91
92
  //#region node_modules/@tanstack/query-core/build/modern/utils.js
92
- var ya = typeof window > "u" || "Deno" in globalThis;
93
- function K() {}
94
- function ba(e, t) {
93
+ var Sa = typeof window > "u" || "Deno" in globalThis;
94
+ function X() {}
95
+ function Ca(e, t) {
95
96
  return typeof e == "function" ? e(t) : e;
96
97
  }
97
- function xa(e) {
98
+ function wa(e) {
98
99
  return typeof e == "number" && e >= 0 && e !== Infinity;
99
100
  }
100
- function Sa(e, t) {
101
+ function Ta(e, t) {
101
102
  return Math.max(e + (t || 0) - Date.now(), 0);
102
103
  }
103
- function Ca(e, t) {
104
+ function Ea(e, t) {
104
105
  return typeof e == "function" ? e(t) : e;
105
106
  }
106
- function wa(e, t) {
107
+ function Da(e, t) {
107
108
  return typeof e == "function" ? e(t) : e;
108
109
  }
109
- function Ta(e, t) {
110
+ function Oa(e, t) {
110
111
  let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
111
112
  if (o) {
112
113
  if (r) {
113
- if (t.queryHash !== Da(o, t.options)) return !1;
114
- } else if (!ka(t.queryKey, o)) return !1;
114
+ if (t.queryHash !== Aa(o, t.options)) return !1;
115
+ } else if (!Ma(t.queryKey, o)) return !1;
115
116
  }
116
117
  if (n !== "all") {
117
118
  let e = t.isActive();
@@ -119,90 +120,90 @@ function Ta(e, t) {
119
120
  }
120
121
  return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
121
122
  }
122
- function Ea(e, t) {
123
+ function ka(e, t) {
123
124
  let { exact: n, status: r, predicate: i, mutationKey: a } = e;
124
125
  if (a) {
125
126
  if (!t.options.mutationKey) return !1;
126
127
  if (n) {
127
- if (Oa(t.options.mutationKey) !== Oa(a)) return !1;
128
- } else if (!ka(t.options.mutationKey, a)) return !1;
128
+ if (ja(t.options.mutationKey) !== ja(a)) return !1;
129
+ } else if (!Ma(t.options.mutationKey, a)) return !1;
129
130
  }
130
131
  return !(r && t.state.status !== r || i && !i(t));
131
132
  }
132
- function Da(e, t) {
133
- return (t?.queryKeyHashFn || Oa)(e);
133
+ function Aa(e, t) {
134
+ return (t?.queryKeyHashFn || ja)(e);
134
135
  }
135
- function Oa(e) {
136
- return JSON.stringify(e, (e, t) => Na(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
136
+ function ja(e) {
137
+ return JSON.stringify(e, (e, t) => Ia(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
137
138
  }
138
- function ka(e, t) {
139
- 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;
139
+ function Ma(e, t) {
140
+ return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Ma(e[n], t[n])) : !1;
140
141
  }
141
- var Aa = Object.prototype.hasOwnProperty;
142
- function ja(e, t, n = 0) {
142
+ var Na = Object.prototype.hasOwnProperty;
143
+ function Pa(e, t, n = 0) {
143
144
  if (e === t) return e;
144
145
  if (n > 500) return t;
145
- let r = Ma(e) && Ma(t);
146
- if (!r && !(Na(e) && Na(t))) return t;
146
+ let r = Fa(e) && Fa(t);
147
+ if (!r && !(Ia(e) && Ia(t))) return t;
147
148
  let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
148
149
  for (let l = 0; l < o; l++) {
149
150
  let o = r ? l : a[l], u = e[o], d = t[o];
150
151
  if (u === d) {
151
- s[o] = u, (r ? l < i : Aa.call(e, o)) && c++;
152
+ s[o] = u, (r ? l < i : Na.call(e, o)) && c++;
152
153
  continue;
153
154
  }
154
155
  if (u === null || d === null || typeof u != "object" || typeof d != "object") {
155
156
  s[o] = d;
156
157
  continue;
157
158
  }
158
- let f = ja(u, d, n + 1);
159
+ let f = Pa(u, d, n + 1);
159
160
  s[o] = f, f === u && c++;
160
161
  }
161
162
  return i === o && c === i ? e : s;
162
163
  }
163
- function Ma(e) {
164
+ function Fa(e) {
164
165
  return Array.isArray(e) && e.length === Object.keys(e).length;
165
166
  }
166
- function Na(e) {
167
- if (!Pa(e)) return !1;
167
+ function Ia(e) {
168
+ if (!La(e)) return !1;
168
169
  let t = e.constructor;
169
170
  if (t === void 0) return !0;
170
171
  let n = t.prototype;
171
- return !(!Pa(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
172
+ return !(!La(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
172
173
  }
173
- function Pa(e) {
174
+ function La(e) {
174
175
  return Object.prototype.toString.call(e) === "[object Object]";
175
176
  }
176
- function Fa(e) {
177
+ function Ra(e) {
177
178
  return new Promise((t) => {
178
- _a.setTimeout(t, e);
179
+ ba.setTimeout(t, e);
179
180
  });
180
181
  }
181
- function Ia(e, t, n) {
182
+ function za(e, t, n) {
182
183
  if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
183
184
  if (n.structuralSharing !== !1) {
184
185
  if (process.env.NODE_ENV !== "production") try {
185
- return ja(e, t);
186
+ return Pa(e, t);
186
187
  } catch (e) {
187
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;
188
189
  }
189
- return ja(e, t);
190
+ return Pa(e, t);
190
191
  }
191
192
  return t;
192
193
  }
193
- function La(e, t, n = 0) {
194
+ function Ba(e, t, n = 0) {
194
195
  let r = [...e, t];
195
196
  return n && r.length > n ? r.slice(1) : r;
196
197
  }
197
- function Ra(e, t, n = 0) {
198
+ function Va(e, t, n = 0) {
198
199
  let r = [t, ...e];
199
200
  return n && r.length > n ? r.slice(0, -1) : r;
200
201
  }
201
- var za = /* @__PURE__ */ Symbol();
202
- function Ba(e, t) {
203
- return process.env.NODE_ENV !== "production" && e.queryFn === za && 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 === za ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
202
+ var Ha = /* @__PURE__ */ Symbol();
203
+ function Ua(e, t) {
204
+ return process.env.NODE_ENV !== "production" && e.queryFn === Ha && 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 === Ha ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
204
205
  }
205
- function Va(e, t, n) {
206
+ function Wa(e, t, n) {
206
207
  let r = !1, i;
207
208
  return Object.defineProperty(e, "signal", {
208
209
  enumerable: !0,
@@ -211,8 +212,8 @@ function Va(e, t, n) {
211
212
  }
212
213
  //#endregion
213
214
  //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
214
- var Ha = /* @__PURE__ */ (() => {
215
- let e = () => ya;
215
+ var Ga = /* @__PURE__ */ (() => {
216
+ let e = () => Sa;
216
217
  return {
217
218
  isServer() {
218
219
  return e();
@@ -224,7 +225,7 @@ var Ha = /* @__PURE__ */ (() => {
224
225
  })();
225
226
  //#endregion
226
227
  //#region node_modules/@tanstack/query-core/build/modern/thenable.js
227
- function Ua() {
228
+ function Ka() {
228
229
  let e, t, n = new Promise((n, r) => {
229
230
  e = n, t = r;
230
231
  });
@@ -246,13 +247,13 @@ function Ua() {
246
247
  }
247
248
  //#endregion
248
249
  //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
249
- var Wa = va;
250
- function Ga() {
250
+ var qa = xa;
251
+ function Ja() {
251
252
  let e = [], t = 0, n = (e) => {
252
253
  e();
253
254
  }, r = (e) => {
254
255
  e();
255
- }, i = Wa, a = (r) => {
256
+ }, i = qa, a = (r) => {
256
257
  t ? e.push(r) : i(() => {
257
258
  n(r);
258
259
  });
@@ -294,7 +295,7 @@ function Ga() {
294
295
  }
295
296
  };
296
297
  }
297
- var q = Ga(), Ka = new class extends ma {
298
+ var Z = Ja(), Ya = new class extends _a {
298
299
  #e = !0;
299
300
  #t;
300
301
  #n;
@@ -328,28 +329,28 @@ var q = Ga(), Ka = new class extends ma {
328
329
  }();
329
330
  //#endregion
330
331
  //#region node_modules/@tanstack/query-core/build/modern/retryer.js
331
- function qa(e) {
332
+ function Xa(e) {
332
333
  return Math.min(1e3 * 2 ** e, 3e4);
333
334
  }
334
- function Ja(e) {
335
- return (e ?? "online") !== "online" || Ka.isOnline();
335
+ function Za(e) {
336
+ return (e ?? "online") !== "online" || Ya.isOnline();
336
337
  }
337
- var Ya = class extends Error {
338
+ var Qa = class extends Error {
338
339
  constructor(e) {
339
340
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
340
341
  }
341
342
  };
342
- function Xa(e) {
343
- let t = !1, n = 0, r, i = Ua(), a = () => i.status !== "pending", o = (t) => {
343
+ function $a(e) {
344
+ let t = !1, n = 0, r, i = Ka(), a = () => i.status !== "pending", o = (t) => {
344
345
  if (!a()) {
345
- let n = new Ya(t);
346
+ let n = new Qa(t);
346
347
  f(n), e.onCancel?.(n);
347
348
  }
348
349
  }, s = () => {
349
350
  t = !0;
350
351
  }, c = () => {
351
352
  t = !1;
352
- }, l = () => ha.isFocused() && (e.networkMode === "always" || Ka.isOnline()) && e.canRun(), u = () => Ja(e.networkMode) && e.canRun(), d = (e) => {
353
+ }, l = () => va.isFocused() && (e.networkMode === "always" || Ya.isOnline()) && e.canRun(), u = () => Za(e.networkMode) && e.canRun(), d = (e) => {
353
354
  a() || (r?.(), i.resolve(e));
354
355
  }, f = (e) => {
355
356
  a() || (r?.(), i.reject(e));
@@ -369,12 +370,12 @@ function Xa(e) {
369
370
  }
370
371
  Promise.resolve(r).then(d).catch((r) => {
371
372
  if (a()) return;
372
- let i = e.retry ?? (Ha.isServer() ? 0 : 3), o = e.retryDelay ?? qa, 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 ?? (Ga.isServer() ? 0 : 3), o = e.retryDelay ?? Xa, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
373
374
  if (t || !c) {
374
375
  f(r);
375
376
  return;
376
377
  }
377
- n++, e.onFail?.(n, r), Fa(s).then(() => l() ? void 0 : p()).then(() => {
378
+ n++, e.onFail?.(n, r), Ra(s).then(() => l() ? void 0 : p()).then(() => {
378
379
  t ? f(r) : m();
379
380
  });
380
381
  });
@@ -392,34 +393,34 @@ function Xa(e) {
392
393
  }
393
394
  //#endregion
394
395
  //#region node_modules/@tanstack/query-core/build/modern/removable.js
395
- var Za = class {
396
+ var eo = class {
396
397
  #e;
397
398
  destroy() {
398
399
  this.clearGcTimeout();
399
400
  }
400
401
  scheduleGc() {
401
- this.clearGcTimeout(), xa(this.gcTime) && (this.#e = _a.setTimeout(() => {
402
+ this.clearGcTimeout(), wa(this.gcTime) && (this.#e = ba.setTimeout(() => {
402
403
  this.optionalRemove();
403
404
  }, this.gcTime));
404
405
  }
405
406
  updateGcTime(e) {
406
- this.gcTime = Math.max(this.gcTime || 0, e ?? (Ha.isServer() ? Infinity : 3e5));
407
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Ga.isServer() ? Infinity : 3e5));
407
408
  }
408
409
  clearGcTimeout() {
409
- this.#e !== void 0 && (_a.clearTimeout(this.#e), this.#e = void 0);
410
+ this.#e !== void 0 && (ba.clearTimeout(this.#e), this.#e = void 0);
410
411
  }
411
412
  };
412
413
  //#endregion
413
414
  //#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
414
- function Qa(e) {
415
+ function to(e) {
415
416
  return { onFetch: (t, n) => {
416
417
  let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
417
418
  pages: [],
418
419
  pageParams: []
419
420
  }, c = 0, l = async () => {
420
421
  let n = !1, l = (e) => {
421
- Va(e, () => t.signal, () => n = !0);
422
- }, u = Ba(t.options, t.fetchOptions), d = async (e, r, i) => {
422
+ Wa(e, () => t.signal, () => n = !0);
423
+ }, u = Ua(t.options, t.fetchOptions), d = async (e, r, i) => {
423
424
  if (n) return Promise.reject(t.signal.reason);
424
425
  if (r == null && e.pages.length) return Promise.resolve(e);
425
426
  let a = (() => {
@@ -431,14 +432,14 @@ function Qa(e) {
431
432
  meta: t.options.meta
432
433
  };
433
434
  return l(e), e;
434
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? Ra : La;
435
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? Va : Ba;
435
436
  return {
436
437
  pages: c(e.pages, o, s),
437
438
  pageParams: c(e.pageParams, r, s)
438
439
  };
439
440
  };
440
441
  if (i && a.length) {
441
- let e = i === "backward", t = e ? eo : $a, n = {
442
+ let e = i === "backward", t = e ? ro : no, n = {
442
443
  pages: a,
443
444
  pageParams: o
444
445
  };
@@ -446,7 +447,7 @@ function Qa(e) {
446
447
  } else {
447
448
  let t = e ?? a.length;
448
449
  do {
449
- let e = c === 0 ? o[0] ?? r.initialPageParam : $a(r, s);
450
+ let e = c === 0 ? o[0] ?? r.initialPageParam : no(r, s);
450
451
  if (c > 0 && e == null) break;
451
452
  s = await d(s, e), c++;
452
453
  } while (c < t);
@@ -461,16 +462,16 @@ function Qa(e) {
461
462
  }, n) : l;
462
463
  } };
463
464
  }
464
- function $a(e, { pages: t, pageParams: n }) {
465
+ function no(e, { pages: t, pageParams: n }) {
465
466
  let r = t.length - 1;
466
467
  return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
467
468
  }
468
- function eo(e, { pages: t, pageParams: n }) {
469
+ function ro(e, { pages: t, pageParams: n }) {
469
470
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
470
471
  }
471
472
  //#endregion
472
473
  //#region node_modules/@tanstack/query-core/build/modern/query.js
473
- var to = class extends Za {
474
+ var io = class extends eo {
474
475
  #e;
475
476
  #t;
476
477
  #n;
@@ -480,7 +481,7 @@ var to = class extends Za {
480
481
  #o;
481
482
  #s;
482
483
  constructor(e) {
483
- 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 = io(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();
484
485
  }
485
486
  get meta() {
486
487
  return this.options.meta;
@@ -496,15 +497,15 @@ var to = class extends Za {
496
497
  ...this.#o,
497
498
  ...e
498
499
  }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
499
- let e = io(this.options);
500
- e.data !== void 0 && (this.setState(ro(e.data, e.dataUpdatedAt)), this.#t = e);
500
+ let e = so(this.options);
501
+ e.data !== void 0 && (this.setState(oo(e.data, e.dataUpdatedAt)), this.#t = e);
501
502
  }
502
503
  }
503
504
  optionalRemove() {
504
505
  !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
505
506
  }
506
507
  setData(e, t) {
507
- let n = Ia(this.state.data, e, this.options);
508
+ let n = za(this.state.data, e, this.options);
508
509
  return this.#l({
509
510
  data: n,
510
511
  type: "success",
@@ -520,7 +521,7 @@ var to = class extends Za {
520
521
  }
521
522
  cancel(e) {
522
523
  let t = this.#a?.promise;
523
- return this.#a?.cancel(e), t ? t.then(K).catch(K) : Promise.resolve();
524
+ return this.#a?.cancel(e), t ? t.then(X).catch(X) : Promise.resolve();
524
525
  }
525
526
  destroy() {
526
527
  super.destroy(), this.cancel({ silent: !0 });
@@ -532,22 +533,22 @@ var to = class extends Za {
532
533
  this.destroy(), this.setState(this.resetState);
533
534
  }
534
535
  isActive() {
535
- return this.observers.some((e) => wa(e.options.enabled, this) !== !1);
536
+ return this.observers.some((e) => Da(e.options.enabled, this) !== !1);
536
537
  }
537
538
  isDisabled() {
538
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === za || !this.isFetched();
539
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Ha || !this.isFetched();
539
540
  }
540
541
  isFetched() {
541
542
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
542
543
  }
543
544
  isStatic() {
544
- return this.getObserversCount() > 0 && this.observers.some((e) => Ca(e.options.staleTime, this) === "static");
545
+ return this.getObserversCount() > 0 && this.observers.some((e) => Ea(e.options.staleTime, this) === "static");
545
546
  }
546
547
  isStale() {
547
548
  return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
548
549
  }
549
550
  isStaleByTime(e = 0) {
550
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Sa(this.state.dataUpdatedAt, e);
551
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Ta(this.state.dataUpdatedAt, e);
551
552
  }
552
553
  onFocus() {
553
554
  this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -594,7 +595,7 @@ var to = class extends Za {
594
595
  get: () => (this.#s = !0, n.signal)
595
596
  });
596
597
  }, i = () => {
597
- let e = Ba(this.options, t), n = (() => {
598
+ let e = Ua(this.options, t), n = (() => {
598
599
  let e = {
599
600
  client: this.#i,
600
601
  queryKey: this.queryKey,
@@ -614,14 +615,14 @@ var to = class extends Za {
614
615
  };
615
616
  return r(e), e;
616
617
  })();
617
- (this.#e === "infinite" ? Qa(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" ? to(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
619
  type: "fetch",
619
620
  meta: a.fetchOptions?.meta
620
- }), this.#a = Xa({
621
+ }), this.#a = $a({
621
622
  initialPromise: t?.initialPromise,
622
623
  fn: a.fetchFn,
623
624
  onCancel: (e) => {
624
- e instanceof Ya && e.revert && this.setState({
625
+ e instanceof Qa && e.revert && this.setState({
625
626
  ...this.#n,
626
627
  fetchStatus: "idle"
627
628
  }), n.abort();
@@ -649,7 +650,7 @@ var to = class extends Za {
649
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`);
650
651
  return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
651
652
  } catch (e) {
652
- if (e instanceof Ya) {
653
+ if (e instanceof Qa) {
653
654
  if (e.silent) return this.#a.promise;
654
655
  if (e.revert) {
655
656
  if (this.state.data === void 0) throw e;
@@ -682,13 +683,13 @@ var to = class extends Za {
682
683
  };
683
684
  case "fetch": return {
684
685
  ...t,
685
- ...no(t.data, this.options),
686
+ ...ao(t.data, this.options),
686
687
  fetchMeta: e.meta ?? null
687
688
  };
688
689
  case "success":
689
690
  let n = {
690
691
  ...t,
691
- ...ro(e.data, e.dataUpdatedAt),
692
+ ...oo(e.data, e.dataUpdatedAt),
692
693
  dataUpdateCount: t.dataUpdateCount + 1,
693
694
  ...!e.manual && {
694
695
  fetchStatus: "idle",
@@ -720,7 +721,7 @@ var to = class extends Za {
720
721
  };
721
722
  }
722
723
  };
723
- this.state = t(this.state), q.batch(() => {
724
+ this.state = t(this.state), Z.batch(() => {
724
725
  this.observers.forEach((e) => {
725
726
  e.onQueryUpdate();
726
727
  }), this.#r.notify({
@@ -731,18 +732,18 @@ var to = class extends Za {
731
732
  });
732
733
  }
733
734
  };
734
- function no(e, t) {
735
+ function ao(e, t) {
735
736
  return {
736
737
  fetchFailureCount: 0,
737
738
  fetchFailureReason: null,
738
- fetchStatus: Ja(t.networkMode) ? "fetching" : "paused",
739
+ fetchStatus: Za(t.networkMode) ? "fetching" : "paused",
739
740
  ...e === void 0 && {
740
741
  error: null,
741
742
  status: "pending"
742
743
  }
743
744
  };
744
745
  }
745
- function ro(e, t) {
746
+ function oo(e, t) {
746
747
  return {
747
748
  data: e,
748
749
  dataUpdatedAt: t ?? Date.now(),
@@ -751,7 +752,7 @@ function ro(e, t) {
751
752
  status: "success"
752
753
  };
753
754
  }
754
- function io(e) {
755
+ function so(e) {
755
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;
756
757
  return {
757
758
  data: t,
@@ -770,13 +771,13 @@ function io(e) {
770
771
  }
771
772
  //#endregion
772
773
  //#region node_modules/@tanstack/query-core/build/modern/mutation.js
773
- var ao = class extends Za {
774
+ var co = class extends eo {
774
775
  #e;
775
776
  #t;
776
777
  #n;
777
778
  #r;
778
779
  constructor(e) {
779
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || oo(), 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 || lo(), this.setOptions(e.options), this.scheduleGc();
780
781
  }
781
782
  setOptions(e) {
782
783
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -812,7 +813,7 @@ var ao = class extends Za {
812
813
  meta: this.options.meta,
813
814
  mutationKey: this.options.mutationKey
814
815
  };
815
- this.#r = Xa({
816
+ this.#r = $a({
816
817
  fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
817
818
  onFail: (e, t) => {
818
819
  this.#i({
@@ -929,7 +930,7 @@ var ao = class extends Za {
929
930
  };
930
931
  }
931
932
  };
932
- this.state = t(this.state), q.batch(() => {
933
+ this.state = t(this.state), Z.batch(() => {
933
934
  this.#t.forEach((t) => {
934
935
  t.onMutationUpdate(e);
935
936
  }), this.#n.notify({
@@ -940,7 +941,7 @@ var ao = class extends Za {
940
941
  });
941
942
  }
942
943
  };
943
- function oo() {
944
+ function lo() {
944
945
  return {
945
946
  context: void 0,
946
947
  data: void 0,
@@ -955,7 +956,7 @@ function oo() {
955
956
  }
956
957
  //#endregion
957
958
  //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
958
- var so = class extends ma {
959
+ var uo = class extends _a {
959
960
  constructor(e = {}) {
960
961
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
961
962
  }
@@ -963,7 +964,7 @@ var so = class extends ma {
963
964
  #t;
964
965
  #n;
965
966
  build(e, t, n) {
966
- let r = new ao({
967
+ let r = new co({
967
968
  client: e,
968
969
  mutationCache: this,
969
970
  mutationId: ++this.#n,
@@ -974,7 +975,7 @@ var so = class extends ma {
974
975
  }
975
976
  add(e) {
976
977
  this.#e.add(e);
977
- let t = co(e);
978
+ let t = fo(e);
978
979
  if (typeof t == "string") {
979
980
  let n = this.#t.get(t);
980
981
  n ? n.push(e) : this.#t.set(t, [e]);
@@ -986,7 +987,7 @@ var so = class extends ma {
986
987
  }
987
988
  remove(e) {
988
989
  if (this.#e.delete(e)) {
989
- let t = co(e);
990
+ let t = fo(e);
990
991
  if (typeof t == "string") {
991
992
  let n = this.#t.get(t);
992
993
  if (n) {
@@ -1003,7 +1004,7 @@ var so = class extends ma {
1003
1004
  });
1004
1005
  }
1005
1006
  canRun(e) {
1006
- let t = co(e);
1007
+ let t = fo(e);
1007
1008
  if (typeof t == "string") {
1008
1009
  let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
1009
1010
  return !n || n === e;
@@ -1011,11 +1012,11 @@ var so = class extends ma {
1011
1012
  return !0;
1012
1013
  }
1013
1014
  runNext(e) {
1014
- let t = co(e);
1015
+ let t = fo(e);
1015
1016
  return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
1016
1017
  }
1017
1018
  clear() {
1018
- q.batch(() => {
1019
+ Z.batch(() => {
1019
1020
  this.#e.forEach((e) => {
1020
1021
  this.notify({
1021
1022
  type: "removed",
@@ -1032,13 +1033,13 @@ var so = class extends ma {
1032
1033
  exact: !0,
1033
1034
  ...e
1034
1035
  };
1035
- return this.getAll().find((e) => Ea(t, e));
1036
+ return this.getAll().find((e) => ka(t, e));
1036
1037
  }
1037
1038
  findAll(e = {}) {
1038
- return this.getAll().filter((t) => Ea(e, t));
1039
+ return this.getAll().filter((t) => ka(e, t));
1039
1040
  }
1040
1041
  notify(e) {
1041
- q.batch(() => {
1042
+ Z.batch(() => {
1042
1043
  this.listeners.forEach((t) => {
1043
1044
  t(e);
1044
1045
  });
@@ -1046,22 +1047,22 @@ var so = class extends ma {
1046
1047
  }
1047
1048
  resumePausedMutations() {
1048
1049
  let e = this.getAll().filter((e) => e.state.isPaused);
1049
- return q.batch(() => Promise.all(e.map((e) => e.continue().catch(K))));
1050
+ return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(X))));
1050
1051
  }
1051
1052
  };
1052
- function co(e) {
1053
+ function fo(e) {
1053
1054
  return e.options.scope?.id;
1054
1055
  }
1055
1056
  //#endregion
1056
1057
  //#region node_modules/@tanstack/query-core/build/modern/queryCache.js
1057
- var lo = class extends ma {
1058
+ var po = class extends _a {
1058
1059
  constructor(e = {}) {
1059
1060
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1060
1061
  }
1061
1062
  #e;
1062
1063
  build(e, t, n) {
1063
- let r = t.queryKey, i = t.queryHash ?? Da(r, t), a = this.get(i);
1064
- return a || (a = new to({
1064
+ let r = t.queryKey, i = t.queryHash ?? Aa(r, t), a = this.get(i);
1065
+ return a || (a = new io({
1065
1066
  client: e,
1066
1067
  queryKey: r,
1067
1068
  queryHash: i,
@@ -1084,7 +1085,7 @@ var lo = class extends ma {
1084
1085
  }));
1085
1086
  }
1086
1087
  clear() {
1087
- q.batch(() => {
1088
+ Z.batch(() => {
1088
1089
  this.getAll().forEach((e) => {
1089
1090
  this.remove(e);
1090
1091
  });
@@ -1101,34 +1102,34 @@ var lo = class extends ma {
1101
1102
  exact: !0,
1102
1103
  ...e
1103
1104
  };
1104
- return this.getAll().find((e) => Ta(t, e));
1105
+ return this.getAll().find((e) => Oa(t, e));
1105
1106
  }
1106
1107
  findAll(e = {}) {
1107
1108
  let t = this.getAll();
1108
- return Object.keys(e).length > 0 ? t.filter((t) => Ta(e, t)) : t;
1109
+ return Object.keys(e).length > 0 ? t.filter((t) => Oa(e, t)) : t;
1109
1110
  }
1110
1111
  notify(e) {
1111
- q.batch(() => {
1112
+ Z.batch(() => {
1112
1113
  this.listeners.forEach((t) => {
1113
1114
  t(e);
1114
1115
  });
1115
1116
  });
1116
1117
  }
1117
1118
  onFocus() {
1118
- q.batch(() => {
1119
+ Z.batch(() => {
1119
1120
  this.getAll().forEach((e) => {
1120
1121
  e.onFocus();
1121
1122
  });
1122
1123
  });
1123
1124
  }
1124
1125
  onOnline() {
1125
- q.batch(() => {
1126
+ Z.batch(() => {
1126
1127
  this.getAll().forEach((e) => {
1127
1128
  e.onOnline();
1128
1129
  });
1129
1130
  });
1130
1131
  }
1131
- }, uo = class {
1132
+ }, mo = class {
1132
1133
  #e;
1133
1134
  #t;
1134
1135
  #n;
@@ -1138,12 +1139,12 @@ var lo = class extends ma {
1138
1139
  #o;
1139
1140
  #s;
1140
1141
  constructor(e = {}) {
1141
- this.#e = e.queryCache || new lo(), this.#t = e.mutationCache || new so(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1142
+ this.#e = e.queryCache || new po(), this.#t = e.mutationCache || new uo(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1142
1143
  }
1143
1144
  mount() {
1144
- this.#a++, this.#a === 1 && (this.#o = ha.subscribe(async (e) => {
1145
+ this.#a++, this.#a === 1 && (this.#o = va.subscribe(async (e) => {
1145
1146
  e && (await this.resumePausedMutations(), this.#e.onFocus());
1146
- }), this.#s = Ka.subscribe(async (e) => {
1147
+ }), this.#s = Ya.subscribe(async (e) => {
1147
1148
  e && (await this.resumePausedMutations(), this.#e.onOnline());
1148
1149
  }));
1149
1150
  }
@@ -1168,20 +1169,20 @@ var lo = class extends ma {
1168
1169
  }
1169
1170
  ensureQueryData(e) {
1170
1171
  let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
1171
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Ca(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1172
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Ea(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1172
1173
  }
1173
1174
  getQueriesData(e) {
1174
1175
  return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
1175
1176
  }
1176
1177
  setQueryData(e, t, n) {
1177
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ba(t, i);
1178
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = Ca(t, i);
1178
1179
  if (a !== void 0) return this.#e.build(this, r).setData(a, {
1179
1180
  ...n,
1180
1181
  manual: !0
1181
1182
  });
1182
1183
  }
1183
1184
  setQueriesData(e, t, n) {
1184
- return q.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
1185
+ return Z.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
1185
1186
  }
1186
1187
  getQueryState(e) {
1187
1188
  let t = this.defaultQueryOptions({ queryKey: e });
@@ -1189,7 +1190,7 @@ var lo = class extends ma {
1189
1190
  }
1190
1191
  removeQueries(e) {
1191
1192
  let t = this.#e;
1192
- q.batch(() => {
1193
+ Z.batch(() => {
1193
1194
  t.findAll(e).forEach((e) => {
1194
1195
  t.remove(e);
1195
1196
  });
@@ -1197,7 +1198,7 @@ var lo = class extends ma {
1197
1198
  }
1198
1199
  resetQueries(e, t) {
1199
1200
  let n = this.#e;
1200
- return q.batch(() => (n.findAll(e).forEach((e) => {
1201
+ return Z.batch(() => (n.findAll(e).forEach((e) => {
1201
1202
  e.reset();
1202
1203
  }), this.refetchQueries({
1203
1204
  type: "active",
@@ -1208,11 +1209,11 @@ var lo = class extends ma {
1208
1209
  let n = {
1209
1210
  revert: !0,
1210
1211
  ...t
1211
- }, r = q.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1212
- return Promise.all(r).then(K).catch(K);
1212
+ }, r = Z.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1213
+ return Promise.all(r).then(X).catch(X);
1213
1214
  }
1214
1215
  invalidateQueries(e, t = {}) {
1215
- return q.batch(() => (this.#e.findAll(e).forEach((e) => {
1216
+ return Z.batch(() => (this.#e.findAll(e).forEach((e) => {
1216
1217
  e.invalidate();
1217
1218
  }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
1218
1219
  ...e,
@@ -1223,32 +1224,32 @@ var lo = class extends ma {
1223
1224
  let n = {
1224
1225
  ...t,
1225
1226
  cancelRefetch: t.cancelRefetch ?? !0
1226
- }, r = q.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1227
+ }, r = Z.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1227
1228
  let t = e.fetch(void 0, n);
1228
- return n.throwOnError || (t = t.catch(K)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1229
+ return n.throwOnError || (t = t.catch(X)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1229
1230
  }));
1230
- return Promise.all(r).then(K);
1231
+ return Promise.all(r).then(X);
1231
1232
  }
1232
1233
  fetchQuery(e) {
1233
1234
  let t = this.defaultQueryOptions(e);
1234
1235
  t.retry === void 0 && (t.retry = !1);
1235
1236
  let n = this.#e.build(this, t);
1236
- return n.isStaleByTime(Ca(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1237
+ return n.isStaleByTime(Ea(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1237
1238
  }
1238
1239
  prefetchQuery(e) {
1239
- return this.fetchQuery(e).then(K).catch(K);
1240
+ return this.fetchQuery(e).then(X).catch(X);
1240
1241
  }
1241
1242
  fetchInfiniteQuery(e) {
1242
1243
  return e._type = "infinite", this.fetchQuery(e);
1243
1244
  }
1244
1245
  prefetchInfiniteQuery(e) {
1245
- return this.fetchInfiniteQuery(e).then(K).catch(K);
1246
+ return this.fetchInfiniteQuery(e).then(X).catch(X);
1246
1247
  }
1247
1248
  ensureInfiniteQueryData(e) {
1248
1249
  return e._type = "infinite", this.ensureQueryData(e);
1249
1250
  }
1250
1251
  resumePausedMutations() {
1251
- return Ka.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1252
+ return Ya.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1252
1253
  }
1253
1254
  getQueryCache() {
1254
1255
  return this.#e;
@@ -1263,7 +1264,7 @@ var lo = class extends ma {
1263
1264
  this.#n = e;
1264
1265
  }
1265
1266
  setQueryDefaults(e, t) {
1266
- this.#r.set(Oa(e), {
1267
+ this.#r.set(ja(e), {
1267
1268
  queryKey: e,
1268
1269
  defaultOptions: t
1269
1270
  });
@@ -1271,11 +1272,11 @@ var lo = class extends ma {
1271
1272
  getQueryDefaults(e) {
1272
1273
  let t = [...this.#r.values()], n = {};
1273
1274
  return t.forEach((t) => {
1274
- ka(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1275
+ Ma(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1275
1276
  }), n;
1276
1277
  }
1277
1278
  setMutationDefaults(e, t) {
1278
- this.#i.set(Oa(e), {
1279
+ this.#i.set(ja(e), {
1279
1280
  mutationKey: e,
1280
1281
  defaultOptions: t
1281
1282
  });
@@ -1283,7 +1284,7 @@ var lo = class extends ma {
1283
1284
  getMutationDefaults(e) {
1284
1285
  let t = [...this.#i.values()], n = {};
1285
1286
  return t.forEach((t) => {
1286
- ka(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1287
+ Ma(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1287
1288
  }), n;
1288
1289
  }
1289
1290
  defaultQueryOptions(e) {
@@ -1294,7 +1295,7 @@ var lo = class extends ma {
1294
1295
  ...e,
1295
1296
  _defaulted: !0
1296
1297
  };
1297
- return t.queryHash ||= Da(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 === za && (t.enabled = !1), t;
1298
+ return t.queryHash ||= Aa(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 === Ha && (t.enabled = !1), t;
1298
1299
  }
1299
1300
  defaultMutationOptions(e) {
1300
1301
  return e?._defaulted ? e : {
@@ -1307,22 +1308,22 @@ var lo = class extends ma {
1307
1308
  clear() {
1308
1309
  this.#e.clear(), this.#t.clear();
1309
1310
  }
1310
- }, J = /* @__PURE__ */ e({
1311
- Vue: () => Xi,
1311
+ }, ho = /* @__PURE__ */ e({
1312
+ Vue: () => $i,
1312
1313
  Vue2: () => void 0,
1313
- del: () => ho,
1314
- install: () => po,
1314
+ del: () => yo,
1315
+ install: () => _o,
1315
1316
  isVue2: () => !1,
1316
1317
  isVue3: () => !0,
1317
- set: () => mo
1318
+ set: () => vo
1318
1319
  });
1319
- import * as fo from "vue";
1320
- t(J, fo);
1321
- function po() {}
1322
- function mo(e, t, n) {
1320
+ import * as go from "vue";
1321
+ t(ho, go);
1322
+ function _o() {}
1323
+ function vo(e, t, n) {
1323
1324
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
1324
1325
  }
1325
- function ho(e, t) {
1326
+ function yo(e, t) {
1326
1327
  if (Array.isArray(e)) {
1327
1328
  e.splice(t, 1);
1328
1329
  return;
@@ -1331,100 +1332,100 @@ function ho(e, t) {
1331
1332
  }
1332
1333
  //#endregion
1333
1334
  //#region node_modules/@tanstack/vue-query/build/modern/utils.js
1334
- var go = "VUE_QUERY_CLIENT";
1335
- function _o(e) {
1336
- return `${go}${e ? `:${e}` : ""}`;
1335
+ var bo = "VUE_QUERY_CLIENT";
1336
+ function xo(e) {
1337
+ return `${bo}${e ? `:${e}` : ""}`;
1337
1338
  }
1338
- function vo(e, t, n = "", r = 0) {
1339
+ function So(e, t, n = "", r = 0) {
1339
1340
  if (t) {
1340
1341
  let i = t(e, n, r);
1341
- if (i === void 0 && (0, J.isRef)(e) || i !== void 0) return i;
1342
+ if (i === void 0 && (0, ho.isRef)(e) || i !== void 0) return i;
1342
1343
  }
1343
- if (Array.isArray(e)) return e.map((e, n) => vo(e, t, String(n), r + 1));
1344
- if (typeof e == "object" && bo(e)) {
1345
- let n = Object.entries(e).map(([e, n]) => [e, vo(n, t, e, r + 1)]);
1344
+ if (Array.isArray(e)) return e.map((e, n) => So(e, t, String(n), r + 1));
1345
+ if (typeof e == "object" && wo(e)) {
1346
+ let n = Object.entries(e).map(([e, n]) => [e, So(n, t, e, r + 1)]);
1346
1347
  return Object.fromEntries(n);
1347
1348
  }
1348
1349
  return e;
1349
1350
  }
1350
- function yo(e, t) {
1351
- return vo(e, t);
1351
+ function Co(e, t) {
1352
+ return So(e, t);
1352
1353
  }
1353
- function Y(e, t = !1) {
1354
- return yo(e, (e, n, r) => {
1355
- if (r === 1 && n === "queryKey") return Y(e, !0);
1356
- if (t && xo(e)) return Y(e(), t);
1357
- if ((0, J.isRef)(e)) return Y((0, J.unref)(e), t);
1354
+ function Q(e, t = !1) {
1355
+ return Co(e, (e, n, r) => {
1356
+ if (r === 1 && n === "queryKey") return Q(e, !0);
1357
+ if (t && To(e)) return Q(e(), t);
1358
+ if ((0, ho.isRef)(e)) return Q((0, ho.unref)(e), t);
1358
1359
  });
1359
1360
  }
1360
- function bo(e) {
1361
+ function wo(e) {
1361
1362
  if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
1362
1363
  let t = Object.getPrototypeOf(e);
1363
1364
  return t === null || t === Object.prototype;
1364
1365
  }
1365
- function xo(e) {
1366
+ function To(e) {
1366
1367
  return typeof e == "function";
1367
1368
  }
1368
1369
  //#endregion
1369
1370
  //#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
1370
- var So = class extends lo {
1371
+ var Eo = class extends po {
1371
1372
  find(e) {
1372
- return super.find(Y(e));
1373
+ return super.find(Q(e));
1373
1374
  }
1374
1375
  findAll(e = {}) {
1375
- return super.findAll(Y(e));
1376
+ return super.findAll(Q(e));
1376
1377
  }
1377
- }, Co = class extends so {
1378
+ }, Do = class extends uo {
1378
1379
  find(e) {
1379
- return super.find(Y(e));
1380
+ return super.find(Q(e));
1380
1381
  }
1381
1382
  findAll(e = {}) {
1382
- return super.findAll(Y(e));
1383
+ return super.findAll(Q(e));
1383
1384
  }
1384
- }, wo = class extends uo {
1385
+ }, Oo = class extends mo {
1385
1386
  constructor(e = {}) {
1386
1387
  let t = {
1387
1388
  defaultOptions: e.defaultOptions,
1388
- queryCache: e.queryCache || new So(),
1389
- mutationCache: e.mutationCache || new Co()
1389
+ queryCache: e.queryCache || new Eo(),
1390
+ mutationCache: e.mutationCache || new Do()
1390
1391
  };
1391
- super(t), this.isRestoring = (0, J.ref)(!1);
1392
+ super(t), this.isRestoring = (0, ho.ref)(!1);
1392
1393
  }
1393
1394
  isFetching(e = {}) {
1394
- return super.isFetching(Y(e));
1395
+ return super.isFetching(Q(e));
1395
1396
  }
1396
1397
  isMutating(e = {}) {
1397
- return super.isMutating(Y(e));
1398
+ return super.isMutating(Q(e));
1398
1399
  }
1399
1400
  getQueryData(e) {
1400
- return super.getQueryData(Y(e));
1401
+ return super.getQueryData(Q(e));
1401
1402
  }
1402
1403
  ensureQueryData(e) {
1403
- return super.ensureQueryData(Y(e));
1404
+ return super.ensureQueryData(Q(e));
1404
1405
  }
1405
1406
  getQueriesData(e) {
1406
- return super.getQueriesData(Y(e));
1407
+ return super.getQueriesData(Q(e));
1407
1408
  }
1408
1409
  setQueryData(e, t, n = {}) {
1409
- return super.setQueryData(Y(e), t, Y(n));
1410
+ return super.setQueryData(Q(e), t, Q(n));
1410
1411
  }
1411
1412
  setQueriesData(e, t, n = {}) {
1412
- return super.setQueriesData(Y(e), t, Y(n));
1413
+ return super.setQueriesData(Q(e), t, Q(n));
1413
1414
  }
1414
1415
  getQueryState(e) {
1415
- return super.getQueryState(Y(e));
1416
+ return super.getQueryState(Q(e));
1416
1417
  }
1417
1418
  removeQueries(e = {}) {
1418
- return super.removeQueries(Y(e));
1419
+ return super.removeQueries(Q(e));
1419
1420
  }
1420
1421
  resetQueries(e = {}, t = {}) {
1421
- return super.resetQueries(Y(e), Y(t));
1422
+ return super.resetQueries(Q(e), Q(t));
1422
1423
  }
1423
1424
  cancelQueries(e = {}, t = {}) {
1424
- return super.cancelQueries(Y(e), Y(t));
1425
+ return super.cancelQueries(Q(e), Q(t));
1425
1426
  }
1426
1427
  invalidateQueries(e = {}, t = {}) {
1427
- let n = Y(e), r = Y(t);
1428
+ let n = Q(e), r = Q(t);
1428
1429
  if (super.invalidateQueries({
1429
1430
  ...n,
1430
1431
  refetchType: "none"
@@ -1433,57 +1434,57 @@ var So = class extends lo {
1433
1434
  ...n,
1434
1435
  type: n.refetchType ?? n.type ?? "active"
1435
1436
  };
1436
- return (0, J.nextTick)().then(() => super.refetchQueries(i, r));
1437
+ return (0, ho.nextTick)().then(() => super.refetchQueries(i, r));
1437
1438
  }
1438
1439
  refetchQueries(e = {}, t = {}) {
1439
- return super.refetchQueries(Y(e), Y(t));
1440
+ return super.refetchQueries(Q(e), Q(t));
1440
1441
  }
1441
1442
  fetchQuery(e) {
1442
- return super.fetchQuery(Y(e));
1443
+ return super.fetchQuery(Q(e));
1443
1444
  }
1444
1445
  prefetchQuery(e) {
1445
- return super.prefetchQuery(Y(e));
1446
+ return super.prefetchQuery(Q(e));
1446
1447
  }
1447
1448
  fetchInfiniteQuery(e) {
1448
- return super.fetchInfiniteQuery(Y(e));
1449
+ return super.fetchInfiniteQuery(Q(e));
1449
1450
  }
1450
1451
  prefetchInfiniteQuery(e) {
1451
- return super.prefetchInfiniteQuery(Y(e));
1452
+ return super.prefetchInfiniteQuery(Q(e));
1452
1453
  }
1453
1454
  setDefaultOptions(e) {
1454
- super.setDefaultOptions(Y(e));
1455
+ super.setDefaultOptions(Q(e));
1455
1456
  }
1456
1457
  setQueryDefaults(e, t) {
1457
- super.setQueryDefaults(Y(e), Y(t));
1458
+ super.setQueryDefaults(Q(e), Q(t));
1458
1459
  }
1459
1460
  getQueryDefaults(e) {
1460
- return super.getQueryDefaults(Y(e));
1461
+ return super.getQueryDefaults(Q(e));
1461
1462
  }
1462
1463
  setMutationDefaults(e, t) {
1463
- super.setMutationDefaults(Y(e), Y(t));
1464
+ super.setMutationDefaults(Q(e), Q(t));
1464
1465
  }
1465
1466
  getMutationDefaults(e) {
1466
- return super.getMutationDefaults(Y(e));
1467
+ return super.getMutationDefaults(Q(e));
1467
1468
  }
1468
1469
  };
1469
1470
  //#endregion
1470
1471
  //#region node_modules/@vue/devtools-api/lib/esm/env.js
1471
- function To() {
1472
- return Eo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1472
+ function ko() {
1473
+ return Ao().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1473
1474
  }
1474
- function Eo() {
1475
+ function Ao() {
1475
1476
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1476
1477
  }
1477
- var Do = typeof Proxy == "function", Oo = "devtools-plugin:setup", ko = "plugin:settings:set", Ao, jo;
1478
- function Mo() {
1479
- return Ao === void 0 && (typeof window < "u" && window.performance ? (Ao = !0, jo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Ao = !0, jo = globalThis.perf_hooks.performance) : Ao = !1), Ao;
1478
+ var jo = typeof Proxy == "function", Mo = "devtools-plugin:setup", No = "plugin:settings:set", Po, Fo;
1479
+ function Io() {
1480
+ return Po === void 0 && (typeof window < "u" && window.performance ? (Po = !0, Fo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Po = !0, Fo = globalThis.perf_hooks.performance) : Po = !1), Po;
1480
1481
  }
1481
- function No() {
1482
- return Mo() ? jo.now() : Date.now();
1482
+ function Lo() {
1483
+ return Io() ? Fo.now() : Date.now();
1483
1484
  }
1484
1485
  //#endregion
1485
1486
  //#region node_modules/@vue/devtools-api/lib/esm/proxy.js
1486
- var Po = class {
1487
+ var Ro = class {
1487
1488
  constructor(e, t) {
1488
1489
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
1489
1490
  let n = {};
@@ -1504,9 +1505,9 @@ var Po = class {
1504
1505
  i = e;
1505
1506
  },
1506
1507
  now() {
1507
- return No();
1508
+ return Lo();
1508
1509
  }
1509
- }, t && t.on(ko, (e, t) => {
1510
+ }, t && t.on(No, (e, t) => {
1510
1511
  e === this.plugin.id && this.fallbacks.setSettings(t);
1511
1512
  }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
1512
1513
  this.onQueue.push({
@@ -1533,11 +1534,11 @@ var Po = class {
1533
1534
  };
1534
1535
  //#endregion
1535
1536
  //#region node_modules/@vue/devtools-api/lib/esm/index.js
1536
- function Fo(e, t) {
1537
- let n = e, r = Eo(), i = To(), a = Do && n.enableEarlyProxy;
1538
- if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Oo, e, t);
1537
+ function zo(e, t) {
1538
+ let n = e, r = Ao(), i = ko(), a = jo && n.enableEarlyProxy;
1539
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Mo, e, t);
1539
1540
  else {
1540
- let e = a ? new Po(n, i) : null;
1541
+ let e = a ? new Ro(n, i) : null;
1541
1542
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1542
1543
  pluginDescriptor: n,
1543
1544
  setupFn: t,
@@ -1547,7 +1548,7 @@ function Fo(e, t) {
1547
1548
  }
1548
1549
  //#endregion
1549
1550
  //#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
1550
- var Io = {
1551
+ var Bo = {
1551
1552
  À: "A",
1552
1553
  Á: "A",
1553
1554
  Â: "A",
@@ -1947,11 +1948,11 @@ var Io = {
1947
1948
  x̧: "x",
1948
1949
  Z̧: "Z",
1949
1950
  z̧: "z"
1950
- }, Lo = Object.keys(Io).join("|"), Ro = new RegExp(Lo, "g");
1951
- function zo(e) {
1952
- return e.replace(Ro, (e) => Io[e]);
1951
+ }, Vo = Object.keys(Bo).join("|"), Ho = new RegExp(Vo, "g");
1952
+ function Uo(e) {
1953
+ return e.replace(Ho, (e) => Bo[e]);
1953
1954
  }
1954
- var X = {
1955
+ var $ = {
1955
1956
  CASE_SENSITIVE_EQUAL: 7,
1956
1957
  EQUAL: 6,
1957
1958
  STARTS_WITH: 5,
@@ -1961,9 +1962,9 @@ var X = {
1961
1962
  MATCHES: 1,
1962
1963
  NO_MATCH: 0
1963
1964
  };
1964
- function Bo(e, t, n) {
1965
- if (n ||= {}, n.threshold = n.threshold ?? X.MATCHES, !n.accessors) {
1966
- let r = Vo(e, t, n);
1965
+ function Wo(e, t, n) {
1966
+ if (n ||= {}, n.threshold = n.threshold ?? $.MATCHES, !n.accessors) {
1967
+ let r = Go(e, t, n);
1967
1968
  return {
1968
1969
  rankedValue: e,
1969
1970
  rank: r,
@@ -1972,23 +1973,23 @@ function Bo(e, t, n) {
1972
1973
  passed: r >= n.threshold
1973
1974
  };
1974
1975
  }
1975
- let r = Ko(e, n.accessors), i = {
1976
+ let r = Xo(e, n.accessors), i = {
1976
1977
  rankedValue: e,
1977
- rank: X.NO_MATCH,
1978
+ rank: $.NO_MATCH,
1978
1979
  accessorIndex: -1,
1979
1980
  accessorThreshold: n.threshold,
1980
1981
  passed: !1
1981
1982
  };
1982
1983
  for (let e = 0; e < r.length; e++) {
1983
- let a = r[e], o = Vo(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1984
- o < s && o >= X.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);
1984
+ let a = r[e], o = Go(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
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);
1985
1986
  }
1986
1987
  return i;
1987
1988
  }
1988
- function Vo(e, t, n) {
1989
- return e = Wo(e, n), t = Wo(t, n), t.length > e.length ? X.NO_MATCH : e === t ? X.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? X.EQUAL : e.startsWith(t) ? X.STARTS_WITH : e.includes(` ${t}`) ? X.WORD_STARTS_WITH : e.includes(t) ? X.CONTAINS : t.length === 1 ? X.NO_MATCH : Ho(e).includes(t) ? X.ACRONYM : Uo(e, t));
1989
+ function Go(e, t, n) {
1990
+ return e = Jo(e, n), t = Jo(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 : Ko(e).includes(t) ? $.ACRONYM : qo(e, t));
1990
1991
  }
1991
- function Ho(e) {
1992
+ function Ko(e) {
1992
1993
  let t = "";
1993
1994
  return e.split(" ").forEach((e) => {
1994
1995
  e.split("-").forEach((e) => {
@@ -1996,7 +1997,7 @@ function Ho(e) {
1996
1997
  });
1997
1998
  }), t;
1998
1999
  }
1999
- function Uo(e, t) {
2000
+ function qo(e, t) {
2000
2001
  let n = 0, r = 0;
2001
2002
  function i(e, t, r) {
2002
2003
  for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
@@ -2004,31 +2005,31 @@ function Uo(e, t) {
2004
2005
  }
2005
2006
  function a(e) {
2006
2007
  let r = 1 / e, i = n / t.length;
2007
- return X.MATCHES + i * r;
2008
+ return $.MATCHES + i * r;
2008
2009
  }
2009
2010
  let o = i(t[0], e, 0);
2010
- if (o < 0) return X.NO_MATCH;
2011
+ if (o < 0) return $.NO_MATCH;
2011
2012
  r = o;
2012
2013
  for (let n = 1, a = t.length; n < a; n++) {
2013
2014
  let a = t[n];
2014
- if (r = i(a, e, r), !(r > -1)) return X.NO_MATCH;
2015
+ if (r = i(a, e, r), !(r > -1)) return $.NO_MATCH;
2015
2016
  }
2016
2017
  return a(r - o);
2017
2018
  }
2018
- function Wo(e, t) {
2019
+ function Jo(e, t) {
2019
2020
  let { keepDiacritics: n } = t;
2020
- return e = `${e}`, n || (e = zo(e)), e;
2021
+ return e = `${e}`, n || (e = Uo(e)), e;
2021
2022
  }
2022
- function Go(e, t) {
2023
+ function Yo(e, t) {
2023
2024
  let n = t;
2024
2025
  typeof t == "object" && (n = t.accessor);
2025
2026
  let r = n(e);
2026
2027
  return r == null ? [] : Array.isArray(r) ? r : [String(r)];
2027
2028
  }
2028
- function Ko(e, t) {
2029
+ function Xo(e, t) {
2029
2030
  let n = [];
2030
2031
  for (let r = 0, i = t.length; r < i; r++) {
2031
- let i = t[r], a = Jo(i), o = Go(e, i);
2032
+ let i = t[r], a = Qo(i), o = Yo(e, i);
2032
2033
  for (let e = 0, t = o.length; e < t; e++) n.push({
2033
2034
  itemValue: o[e],
2034
2035
  attributes: a
@@ -2036,41 +2037,41 @@ function Ko(e, t) {
2036
2037
  }
2037
2038
  return n;
2038
2039
  }
2039
- var qo = {
2040
+ var Zo = {
2040
2041
  maxRanking: Infinity,
2041
2042
  minRanking: -Infinity
2042
2043
  };
2043
- function Jo(e) {
2044
- return typeof e == "function" ? qo : {
2045
- ...qo,
2044
+ function Qo(e) {
2045
+ return typeof e == "function" ? Zo : {
2046
+ ...Zo,
2046
2047
  ...e
2047
2048
  };
2048
2049
  }
2049
2050
  //#endregion
2050
2051
  //#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
2051
- function Z(e) {
2052
+ function $o(e) {
2052
2053
  return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
2053
2054
  }
2054
- function Yo(e) {
2055
- let t = Z(e);
2055
+ function es(e) {
2056
+ let t = $o(e);
2056
2057
  return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
2057
2058
  }
2058
- function Xo(e) {
2059
- return Z(e) === 2 ? 0 : 16777215;
2059
+ function ts(e) {
2060
+ return $o(e) === 2 ? 0 : 16777215;
2060
2061
  }
2061
- function Zo(e) {
2062
- let t = Z(e);
2062
+ function ns(e) {
2063
+ let t = $o(e);
2063
2064
  return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
2064
2065
  }
2065
- var Qo = (e, t) => e.queryHash.localeCompare(t.queryHash), $o = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, es = {
2066
- "Status > Last Updated": (e, t) => Z(e) === Z(t) ? $o(e, t) : Z(e) > Z(t) ? 1 : -1,
2067
- "Query Hash": Qo,
2068
- "Last Updated": $o
2069
- }, Q = "vue-query", ts = "Vue Query";
2070
- function ns(e, t) {
2071
- Fo({
2072
- id: Q,
2073
- label: ts,
2066
+ var rs = (e, t) => e.queryHash.localeCompare(t.queryHash), is = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, as = {
2067
+ "Status > Last Updated": (e, t) => $o(e) === $o(t) ? is(e, t) : $o(e) > $o(t) ? 1 : -1,
2068
+ "Query Hash": rs,
2069
+ "Last Updated": is
2070
+ }, os = "vue-query", ss = "Vue Query";
2071
+ function cs(e, t) {
2072
+ zo({
2073
+ id: os,
2074
+ label: ss,
2074
2075
  packageName: "vue-query",
2075
2076
  homepage: "https://tanstack.com/query/latest",
2076
2077
  logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
@@ -2092,11 +2093,11 @@ function ns(e, t) {
2092
2093
  sortFn: {
2093
2094
  type: "choice",
2094
2095
  label: "Sort Function",
2095
- options: Object.keys(es).map((e) => ({
2096
+ options: Object.keys(as).map((e) => ({
2096
2097
  label: e,
2097
2098
  value: e
2098
2099
  })),
2099
- defaultValue: Object.keys(es)[0]
2100
+ defaultValue: Object.keys(as)[0]
2100
2101
  },
2101
2102
  onlineMode: {
2102
2103
  type: "choice",
@@ -2114,11 +2115,11 @@ function ns(e, t) {
2114
2115
  }
2115
2116
  }, (e) => {
2116
2117
  let n = e.getSettings();
2117
- Ka.setOnline(!!n.onlineMode.valueOf());
2118
+ Ya.setOnline(!!n.onlineMode.valueOf());
2118
2119
  let r = t.getQueryCache();
2119
2120
  e.addInspector({
2120
- id: Q,
2121
- label: ts,
2121
+ id: os,
2122
+ label: ss,
2122
2123
  icon: "api",
2123
2124
  nodeActions: [
2124
2125
  {
@@ -2177,16 +2178,16 @@ function ns(e, t) {
2177
2178
  }
2178
2179
  ]
2179
2180
  }), e.addTimelineLayer({
2180
- id: Q,
2181
- label: ts,
2181
+ id: os,
2182
+ label: ss,
2182
2183
  color: 16767308
2183
2184
  }), r.subscribe((t) => {
2184
- e.sendInspectorTree(Q), e.sendInspectorState(Q), [
2185
+ e.sendInspectorTree(os), e.sendInspectorState(os), [
2185
2186
  "added",
2186
2187
  "removed",
2187
2188
  "updated"
2188
2189
  ].includes(t.type) && e.addTimelineEvent({
2189
- layerId: Q,
2190
+ layerId: os,
2190
2191
  event: {
2191
2192
  title: t.type,
2192
2193
  subtitle: t.query.queryHash,
@@ -2198,25 +2199,25 @@ function ns(e, t) {
2198
2199
  }
2199
2200
  });
2200
2201
  }), e.on.setPluginSettings((e) => {
2201
- e.key === "onlineMode" && Ka.setOnline(!!e.newValue);
2202
+ e.key === "onlineMode" && Ya.setOnline(!!e.newValue);
2202
2203
  }), e.on.getInspectorTree((t) => {
2203
- if (t.inspectorId === Q) {
2204
+ if (t.inspectorId === os) {
2204
2205
  let n = r.getAll(), i = e.getSettings();
2205
- t.rootNodes = (t.filter ? n.filter((e) => Bo(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => es[i.sortFn](e, t) * i.baseSort).map((e) => {
2206
- let t = Yo(e);
2206
+ t.rootNodes = (t.filter ? n.filter((e) => Wo(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => as[i.sortFn](e, t) * i.baseSort).map((e) => {
2207
+ let t = es(e);
2207
2208
  return {
2208
2209
  id: e.queryHash,
2209
2210
  label: e.queryHash,
2210
2211
  tags: [{
2211
2212
  label: `${t} [${e.getObserversCount()}]`,
2212
- textColor: Xo(e),
2213
- backgroundColor: Zo(e)
2213
+ textColor: ts(e),
2214
+ backgroundColor: ns(e)
2214
2215
  }]
2215
2216
  };
2216
2217
  });
2217
2218
  }
2218
2219
  }), e.on.getInspectorState((e) => {
2219
- if (e.inspectorId === Q) {
2220
+ if (e.inspectorId === os) {
2220
2221
  let t = r.get(e.nodeId);
2221
2222
  if (!t) return;
2222
2223
  e.state = {
@@ -2227,7 +2228,7 @@ function ns(e, t) {
2227
2228
  },
2228
2229
  {
2229
2230
  key: "Query status",
2230
- value: Yo(t)
2231
+ value: es(t)
2231
2232
  },
2232
2233
  {
2233
2234
  key: "Observers",
@@ -2253,9 +2254,9 @@ function ns(e, t) {
2253
2254
  }
2254
2255
  //#endregion
2255
2256
  //#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
2256
- var rs = { install: (e, t = {}) => {
2257
- let n = _o(t.queryClientKey), r;
2258
- r = "queryClient" in t && t.queryClient ? t.queryClient : new wo("queryClientConfig" in t ? t.queryClientConfig : void 0), Ha.isServer() || r.mount();
2257
+ var ls = { install: (e, t = {}) => {
2258
+ let n = xo(t.queryClientKey), r;
2259
+ r = "queryClient" in t && t.queryClient ? t.queryClient : new Oo("queryClientConfig" in t ? t.queryClientConfig : void 0), Ga.isServer() || r.mount();
2259
2260
  let i = () => {};
2260
2261
  if (t.clientPersister) {
2261
2262
  r.isRestoring && (r.isRestoring.value = !0);
@@ -2274,17 +2275,17 @@ var rs = { install: (e, t = {}) => {
2274
2275
  a(), t();
2275
2276
  };
2276
2277
  }
2277
- e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && ns(e, r);
2278
+ e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && cs(e, r);
2278
2279
  } };
2279
2280
  //#endregion
2280
2281
  //#region src/web-core/query.ts
2281
- function is() {
2282
- return new wo({ defaultOptions: { queries: {
2282
+ function us() {
2283
+ return new Oo({ defaultOptions: { queries: {
2283
2284
  staleTime: 3e4,
2284
2285
  refetchOnWindowFocus: !1
2285
2286
  } } });
2286
2287
  }
2287
- var as = {
2288
+ var ds = {
2288
2289
  session: { current: ["session", "current"] },
2289
2290
  menu: { mine: ["menu", "mine"] },
2290
2291
  staticModule: {
@@ -2310,7 +2311,7 @@ var as = {
2310
2311
  };
2311
2312
  //#endregion
2312
2313
  //#region src/web-core/constructionPlanClient.ts
2313
- function os(e) {
2314
+ function fs(e) {
2314
2315
  let t = "/platform.application-construction-plans", n = (e) => `${t}/${encodeURIComponent(e)}`;
2315
2316
  return {
2316
2317
  designContract: () => e.request({ path: `${t}/design-contract` }),
@@ -2345,10 +2346,10 @@ function os(e) {
2345
2346
  }
2346
2347
  //#endregion
2347
2348
  //#region src/web-core/assistantConversationClient.ts
2348
- function ss(e) {
2349
+ function ps(e) {
2349
2350
  let t = "/platform.assistant-conversations";
2350
2351
  return {
2351
- lookupOperation: (t) => he(e, t),
2352
+ lookupOperation: (t) => ve(e, t),
2352
2353
  list: (n, r) => e.request({
2353
2354
  path: t,
2354
2355
  query: {
@@ -2372,128 +2373,101 @@ function ss(e) {
2372
2373
  };
2373
2374
  }
2374
2375
  //#endregion
2375
- //#region src/web-core/recordReadEntry.ts
2376
- function cs(e) {
2377
- let { page: t, moduleAlias: n } = e;
2378
- if (t?.target.moduleAlias && t.target.moduleAlias !== n) throw Error(`Read entry module mismatch: ${n}`);
2379
- let r = {};
2380
- if (t?.entryParamsJson !== void 0) {
2381
- let e = JSON.parse(t.entryParamsJson);
2382
- if (typeof e != "object" || !e || Array.isArray(e)) throw Error("Read entry parameters require a JSON object");
2383
- r = e;
2384
- }
2385
- let i = r.view;
2386
- if (i !== void 0 && (typeof i != "string" || !i.trim())) throw Error("Read entry requires a named view");
2387
- let a = t?.menuId ? i : e.directViewCode ?? i ?? e.defaultViewCode;
2388
- if (typeof a != "string" || !e.viewCodes.includes(a)) throw Error(`Unknown read view: ${String(a)}`);
2389
- if (t?.menuId && e.directViewCode && e.directViewCode !== a) throw Error("Read entry view conflicts with menu");
2390
- return {
2391
- moduleAlias: n,
2392
- viewCode: a,
2393
- menuId: t?.menuId,
2394
- params: r,
2395
- ...t?.pageType === "dynamic-module" || t?.pageType === "business-route" ? {
2396
- defaultUiConfigId: t.target.defaultUiConfigId,
2397
- defaultQueryTemplateId: t.target.defaultQueryTemplateId
2398
- } : {}
2399
- };
2400
- }
2401
- //#endregion
2402
2376
  //#region src/platform-admin-runtime/platformAdminRoutes.ts
2403
- var ls = R(() => import("./workspaceViews-Cvi7uakV.js").then((e) => e.n)), us = R(() => import("./BusinessActivityLogView-CXBpVbZW.js")), ds = R(() => import("./RequestErrorLogView-S6O4ha82.js")), fs = R(() => import("./LoginAuditLogView-DRxp6BbU.js")), ps = R(() => import("./RuntimeLogView-BuF-xgEc.js")), ms = [
2377
+ var ms = U(() => import("./workspaceViews-Cas3PR5B.js").then((e) => e.n)), hs = U(() => import("./BusinessActivityLogView-DQ5_VmLp.js")), gs = U(() => import("./RequestErrorLogView-HatmiK8_.js")), _s = U(() => import("./LoginAuditLogView-BIz1LVC3.js")), vs = U(() => import("./RuntimeLogView-Vdt6SWK6.js")), ys = [
2404
2378
  {
2405
2379
  route: "/platform/code-rule",
2406
2380
  moduleAlias: "platform.code_rule",
2407
- component: R(() => import("./CodeConfigurationView-DAdbnF2Y.js").then((e) => e.n)),
2381
+ component: U(() => import("./CodeConfigurationView-CtQjmpLz.js").then((e) => e.n)),
2408
2382
  layout: "workspace"
2409
2383
  },
2410
2384
  {
2411
2385
  route: "/platform/translations",
2412
2386
  moduleAlias: "platform.localization",
2413
- component: R(() => import("./ConfigurationTranslationView-D1aLZQlx.js")),
2387
+ component: U(() => import("./ConfigurationTranslationView-BiYn2MJx.js")),
2414
2388
  layout: "workspace"
2415
2389
  },
2416
2390
  {
2417
2391
  route: "/workflow/admin",
2418
2392
  moduleAlias: "platform.workflow_admin",
2419
- component: R(() => import("./WorkflowAdministrationView-DkK3Wybi.js")),
2393
+ component: U(() => import("./WorkflowAdministrationView-Dlw2ng0N.js")),
2420
2394
  layout: "workspace"
2421
2395
  },
2422
2396
  {
2423
2397
  route: "/workflow/workbench",
2424
2398
  moduleAlias: "iam.workflow_workbench",
2425
- component: R(() => import("./WorkflowWorkbenchView-CAloU49z.js")),
2399
+ component: U(() => import("./WorkflowWorkbenchView-Nv4mvTTP.js")),
2426
2400
  layout: "workspace"
2427
2401
  },
2428
2402
  {
2429
2403
  route: "/platform/logs/runtime",
2430
2404
  moduleAlias: "platform.runtime_log",
2431
- component: ps,
2405
+ component: vs,
2432
2406
  layout: "workspace"
2433
2407
  },
2434
2408
  {
2435
2409
  route: "/platform/logs/activity",
2436
2410
  moduleAlias: "platform.business_activity_log",
2437
- component: us,
2411
+ component: hs,
2438
2412
  layout: "workspace"
2439
2413
  },
2440
2414
  {
2441
2415
  route: "/platform/logs/errors",
2442
2416
  moduleAlias: "platform.request_error_log",
2443
- component: ds,
2417
+ component: gs,
2444
2418
  layout: "workspace"
2445
2419
  },
2446
2420
  {
2447
2421
  route: "/iam/logs/login",
2448
2422
  moduleAlias: "iam.login_audit_log",
2449
- component: fs,
2423
+ component: _s,
2450
2424
  layout: "workspace"
2451
2425
  },
2452
2426
  {
2453
2427
  route: "/iam/role/authorization",
2454
2428
  moduleAlias: "iam.role",
2455
- component: ls,
2429
+ component: ms,
2456
2430
  layout: "workspace",
2457
2431
  menuEntry: !1
2458
2432
  }
2459
- ], hs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...ms.map((e) => e.route)])), gs = Object.fromEntries(ms.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), _s = Object.fromEntries(ms.map((e) => [e.route, e.layout]));
2460
- function vs(e) {
2461
- if (e) return ms.find((t) => bs(t, e.target));
2433
+ ], bs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...ys.map((e) => e.route)])), xs = Object.fromEntries(ys.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Ss = Object.fromEntries(ys.map((e) => [e.route, e.layout]));
2434
+ function Cs(e) {
2435
+ if (e) return ys.find((t) => Ts(t, e.target));
2462
2436
  }
2463
- function ys(e) {
2464
- return e?.pageType === "business-route" && !!vs(e);
2437
+ function ws(e) {
2438
+ return e?.pageType === "business-route" && !!Cs(e);
2465
2439
  }
2466
- function bs(e, t) {
2467
- return t.route ? xs(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2440
+ function Ts(e, t) {
2441
+ return t.route ? Es(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2468
2442
  }
2469
- function xs(e, t) {
2443
+ function Es(e, t) {
2470
2444
  let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2471
2445
  return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
2472
2446
  }
2473
2447
  //#endregion
2474
2448
  //#region src/app/pageRouteContext.ts
2475
- var Ss = Symbol("page-route"), Cs = Symbol("page-descriptor");
2476
- function ws(e) {
2477
- sa(Ss, M(e));
2449
+ var Ds = Symbol("page-route"), Os = Symbol("page-descriptor");
2450
+ function ks(e) {
2451
+ ca(Ds, I(e));
2478
2452
  }
2479
- function Ts() {
2480
- let e = ta(Ss);
2453
+ function As() {
2454
+ let e = na(Ds);
2481
2455
  if (e) return e;
2482
- let t = T();
2483
- return M(() => t);
2456
+ let t = E();
2457
+ return I(() => t);
2484
2458
  }
2485
- function Es() {
2486
- return ta(Cs) ?? M(() => void 0);
2459
+ function js() {
2460
+ return na(Os) ?? I(() => void 0);
2487
2461
  }
2488
2462
  //#endregion
2489
2463
  //#region src/platform-admin-runtime/PlatformAdminOutlet.vue
2490
- var Ds = /* @__PURE__ */ z({
2464
+ var Ms = /* @__PURE__ */ W({
2491
2465
  name: "PlatformAdminRouteOutlet",
2492
2466
  __name: "PlatformAdminOutlet",
2493
2467
  props: { descriptor: {} },
2494
2468
  setup(e) {
2495
- let t = e, n = M(() => vs(t.descriptor)), r = M(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = M(() => t.descriptor.target.query?.workspacePresentation);
2496
- Si(M(() => t.descriptor.layout ?? n.value?.layout)), ws(() => {
2469
+ let t = e, n = I(() => Cs(t.descriptor)), r = I(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = I(() => t.descriptor.target.query?.workspacePresentation);
2470
+ Ci(I(() => t.descriptor.layout ?? n.value?.layout)), ks(() => {
2497
2471
  let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
2498
2472
  return {
2499
2473
  path: r,
@@ -2509,36 +2483,36 @@ var Ds = /* @__PURE__ */ z({
2509
2483
  e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
2510
2484
  }), n;
2511
2485
  }
2512
- return (t, a) => n.value && r.value ? (B(), N(W(jn), {
2486
+ return (t, a) => n.value && r.value ? (G(), L(J(Mt), {
2513
2487
  key: 0,
2514
2488
  "module-alias": r.value
2515
2489
  }, {
2516
- default: G(() => [i.value === "drawer" || i.value === "tab" ? (B(), N(W(De), {
2490
+ default: Y(() => [i.value === "drawer" || i.value === "tab" ? (G(), L(J(ke), {
2517
2491
  key: 0,
2518
2492
  descriptor: e.descriptor
2519
- }, null, 8, ["descriptor"])) : (B(), N(la(n.value.component), { key: 1 }))]),
2493
+ }, null, 8, ["descriptor"])) : (G(), L(da(n.value.component), { key: 1 }))]),
2520
2494
  _: 1
2521
- }, 8, ["module-alias"])) : P("v-if", !0);
2495
+ }, 8, ["module-alias"])) : R("v-if", !0);
2522
2496
  }
2523
- }), Os;
2524
- function ks(e) {
2525
- Os = e;
2497
+ }), Ns;
2498
+ function Ps(e) {
2499
+ Ns = e;
2526
2500
  }
2527
- function As(e, t) {
2528
- return Os?.(e, t) ?? !1;
2501
+ function Fs(e, t) {
2502
+ return Ns?.(e, t) ?? !1;
2529
2503
  }
2530
2504
  //#endregion
2531
2505
  //#region src/platform-admin-runtime/backendHttp.ts
2532
- function js(e = {}) {
2533
- let t = () => Un(dn({
2506
+ function Is(e = {}) {
2507
+ let t = () => pn(Ze({
2534
2508
  baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
2535
2509
  token: e.withAuth === !1 ? void 0 : b(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
2536
- credentials: Ms(import.meta.env.VITE_MUYUN_CREDENTIALS),
2537
- onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => As(e, t)
2538
- }), e.language ?? li);
2510
+ credentials: Ls(import.meta.env.VITE_MUYUN_CREDENTIALS),
2511
+ onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => Fs(e, t)
2512
+ }), e.language ?? zt);
2539
2513
  return {
2540
2514
  async request(e) {
2541
- let n = await t().request(e), r = kr(n);
2515
+ let n = await t().request(e), r = Er(n);
2542
2516
  return r.changeSetId && v.dispatch({
2543
2517
  changeSetId: r.changeSetId,
2544
2518
  changes: r.changes
@@ -2549,16 +2523,16 @@ function js(e = {}) {
2549
2523
  }
2550
2524
  };
2551
2525
  }
2552
- function Ms(e) {
2526
+ function Ls(e) {
2553
2527
  return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
2554
2528
  }
2555
2529
  //#endregion
2556
2530
  //#region src/platform-admin-runtime/moduleOpenApi.ts
2557
- var Ns = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2558
- function Ps(e) {
2559
- return Ns.exec(e)?.[1];
2531
+ var Rs = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2532
+ function zs(e) {
2533
+ return Rs.exec(e)?.[1];
2560
2534
  }
2561
- function Fs(e, t) {
2535
+ function Bs(e, t) {
2562
2536
  return {
2563
2537
  pageType: "platform-route",
2564
2538
  openMode: "workbench-route",
@@ -2575,14 +2549,14 @@ function Fs(e, t) {
2575
2549
  }
2576
2550
  };
2577
2551
  }
2578
- function Is(e = li) {
2579
- let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = Bt(t);
2552
+ function Vs(e = zt) {
2553
+ let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = oi(t);
2580
2554
  return {
2581
2555
  pageType: "platform-route",
2582
2556
  openMode: "workbench-route",
2583
2557
  hostType: "platform-route-host",
2584
2558
  title: "开放模块 API",
2585
- titleText: zr(t, n.originalText, e),
2559
+ titleText: tt(t, n.originalText, e),
2586
2560
  target: { route: "/openapi" },
2587
2561
  tabPolicy: {
2588
2562
  identity: "by-target",
@@ -2591,20 +2565,20 @@ function Is(e = li) {
2591
2565
  }
2592
2566
  };
2593
2567
  }
2594
- function Ls(e) {
2568
+ function Hs(e) {
2595
2569
  if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
2596
- let t = Ps(e.target.route ?? "");
2570
+ let t = zs(e.target.route ?? "");
2597
2571
  return t !== void 0 && e.target.moduleAlias === t;
2598
2572
  }
2599
- function Rs(e) {
2573
+ function Us(e) {
2600
2574
  return e === "/openapi" || e === "/openapi/";
2601
2575
  }
2602
2576
  //#endregion
2603
2577
  //#region src/app/workbenchStartup.ts
2604
- function zs(e, t, n, r = {}) {
2605
- let i = se(t, n, r), a = e.find((e) => e.key === i.key);
2578
+ function Ws(e, t, n, r = {}) {
2579
+ let i = oe(t, n, r), a = e.find((e) => e.key === i.key);
2606
2580
  if (a) {
2607
- let o = a.pageDescriptor ? cc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2581
+ let o = a.pageDescriptor ? pc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2608
2582
  return {
2609
2583
  tabs: e.map((e) => e.key === i.key ? o : e),
2610
2584
  activeTabKey: i.key
@@ -2615,8 +2589,8 @@ function zs(e, t, n, r = {}) {
2615
2589
  activeTabKey: i.key
2616
2590
  };
2617
2591
  }
2618
- function Bs(e, t, n = {}) {
2619
- let r = ac(O(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && E(e.pageDescriptor) === E(r.pageDescriptor));
2592
+ function Gs(e, t, n = {}) {
2593
+ let r = uc(O(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && ce(e.pageDescriptor) === ce(r.pageDescriptor));
2620
2594
  return i ? {
2621
2595
  tabs: e,
2622
2596
  activeTabKey: i.key,
@@ -2627,49 +2601,49 @@ function Bs(e, t, n = {}) {
2627
2601
  created: !0
2628
2602
  };
2629
2603
  }
2630
- function Vs(e, t, n = {}) {
2631
- return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : A(ye(t, {
2604
+ function Ks(e, t, n = {}) {
2605
+ return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : Oe(be(t, {
2632
2606
  ...n,
2633
2607
  title: e.title
2634
2608
  }), n);
2635
2609
  }
2636
- function Hs(e) {
2610
+ function qs(e) {
2637
2611
  let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
2638
2612
  if (t?.fullPath) return t.fullPath;
2639
- let n = t?.pageDescriptor ?? (t?.target ? ye(t.target, { title: t.title }) : void 0);
2640
- return n?.pageType === "platform-route" && Ls(n) && n.target.route ? n.target.route : n ? A(n) : void 0;
2613
+ let n = t?.pageDescriptor ?? (t?.target ? be(t.target, { title: t.title }) : void 0);
2614
+ return n?.pageType === "platform-route" && Hs(n) && n.target.route ? n.target.route : n ? Oe(n) : void 0;
2641
2615
  }
2642
- function Us(e, t, r = {}, i = !1, a = li) {
2616
+ function Js(e, t, r = {}, i = !1, a = zt) {
2643
2617
  if (t === "/" || t === "") return e;
2644
- let o = t.split(/[?#]/, 1)[0] ?? "", s = Ps(o), c = s ? Fs(s) : Rs(o) ? Is(a) : Fe(t, r);
2618
+ let o = t.split(/[?#]/, 1)[0] ?? "", s = zs(o), c = s ? Bs(s) : Us(o) ? Vs(a) : Le(t, r);
2645
2619
  if (!c) return e;
2646
- let l = c.menuId ? hc(e.menus, c.menuId) : void 0, u = l ? x(l) : void 0, d = l && u && qs(u, c) ? {
2620
+ let l = c.menuId ? bc(e.menus, c.menuId) : void 0, u = l ? x(l) : void 0, d = l && u && Qs(u, c) ? {
2647
2621
  ...c,
2648
2622
  title: l.title,
2649
2623
  titleText: l.titleText
2650
- } : c, f = Ks(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? Gs(m, f) : void 0, g = f ? Ws(f, h) : i ? O(p) : p, _ = l && pc(l, g, r) ? l : fc(e.menus, g, r), v = _ === l ? u : _ ? x(_) : void 0, y = f ? ac(g, r) : _ && v && n(v) ? cc(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : ac(g, r), b = sc(m, y);
2624
+ } : c, f = Zs(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? Xs(m, f) : void 0, g = f ? Ys(f, h) : i ? O(p) : p, _ = l && vc(l, g, r) ? l : _c(e.menus, g, r), v = _ === l ? u : _ ? x(_) : void 0, y = f ? uc(g, r) : _ && v && n(v) ? pc(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : uc(g, r), b = fc(m, y);
2651
2625
  return {
2652
2626
  ...e,
2653
2627
  tabs: b,
2654
2628
  activeTabKey: y.key
2655
2629
  };
2656
2630
  }
2657
- function Ws(e, t) {
2631
+ function Ys(e, t) {
2658
2632
  return t?.instanceKey ? O(e, t.instanceKey) : t ? e : O(e);
2659
2633
  }
2660
- function Gs(e, t) {
2661
- let n = E(t);
2662
- return e.find((e) => e.pageDescriptor?.pageType === "business-route" && E(e.pageDescriptor) === n);
2634
+ function Xs(e, t) {
2635
+ let n = ce(t);
2636
+ return e.find((e) => e.pageDescriptor?.pageType === "business-route" && ce(e.pageDescriptor) === n);
2663
2637
  }
2664
- function Ks(e, t, n) {
2638
+ function Zs(e, t, n) {
2665
2639
  if (e.pageType !== "business-route") return;
2666
- let r = Ae(e);
2667
- return r ? ze(r.view, r.input, r.presentation, t, n) : void 0;
2640
+ let r = Me(e);
2641
+ return r ? Ve(r.view, r.input, r.presentation, t, n) : void 0;
2668
2642
  }
2669
- function qs(e, t) {
2643
+ function Qs(e, t) {
2670
2644
  return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
2671
2645
  }
2672
- function Js(e, t, n) {
2646
+ function $s(e, t, n) {
2673
2647
  let r = e.findIndex((e) => e.key === n);
2674
2648
  if (r < 0) return {
2675
2649
  tabs: e,
@@ -2684,7 +2658,7 @@ function Js(e, t, n) {
2684
2658
  activeTabKey: t
2685
2659
  };
2686
2660
  }
2687
- function Ys(e, t, n) {
2661
+ function ec(e, t, n) {
2688
2662
  let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
2689
2663
  return !t || !r.has(t) ? {
2690
2664
  tabs: a,
@@ -2694,16 +2668,16 @@ function Ys(e, t, n) {
2694
2668
  activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
2695
2669
  };
2696
2670
  }
2697
- function Xs(e, t, n = !0) {
2671
+ function tc(e, t, n = !0) {
2698
2672
  let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
2699
2673
  return [...t.flatMap((e) => {
2700
2674
  if (i.has(e.key)) return [];
2701
2675
  i.add(e.key);
2702
2676
  let t = r.get(e.key);
2703
- return t ? [Zs(t, e)] : n ? [e] : [];
2677
+ return t ? [nc(t, e)] : n ? [e] : [];
2704
2678
  }), ...e.filter((e) => !i.has(e.key))];
2705
2679
  }
2706
- function Zs(e, t) {
2680
+ function nc(e, t) {
2707
2681
  let n = e.pageDescriptor, r = t.pageDescriptor;
2708
2682
  if (!n || !r || !t.target) return e;
2709
2683
  let i = {
@@ -2714,83 +2688,83 @@ function Zs(e, t) {
2714
2688
  };
2715
2689
  return {
2716
2690
  ...t,
2717
- ...ac(i),
2691
+ ...uc(i),
2718
2692
  target: t.target
2719
2693
  };
2720
2694
  }
2721
- function Qs(e, t, n = {}, r = li) {
2695
+ function rc(e, t, n = {}, r = zt) {
2722
2696
  let i = /* @__PURE__ */ new Map();
2723
- nc(t, i);
2697
+ sc(t, i);
2724
2698
  let a = /* @__PURE__ */ new Set();
2725
2699
  return e.flatMap((e) => {
2726
- let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? $s(e.key);
2700
+ let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? ic(e.key);
2727
2701
  if (t) {
2728
2702
  if (a.has(t)) return [];
2729
2703
  let e = i.get(t);
2730
- return e ? (a.add(t), [se(e.menu, e.target, n)]) : [];
2704
+ return e ? (a.add(t), [oe(e.menu, e.target, n)]) : [];
2731
2705
  }
2732
- let o = ec(e, r);
2706
+ let o = ac(e, r);
2733
2707
  return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
2734
2708
  });
2735
2709
  }
2736
- function $s(e) {
2710
+ function ic(e) {
2737
2711
  return e.startsWith("menu:") && e.slice(5) || void 0;
2738
2712
  }
2739
- function ec(e, t) {
2713
+ function ac(e, t) {
2740
2714
  let n = e.pageDescriptor;
2741
2715
  if (n?.pageType !== "business-route") return;
2742
- let r = Ae(n);
2743
- if (r && r.presentation === "tab") return ac(ze(r.view, r.input, "tab", void 0, t));
2716
+ let r = Me(n);
2717
+ if (r && r.presentation === "tab") return uc(Ve(r.view, r.input, "tab", void 0, t));
2744
2718
  }
2745
- function tc(e, t) {
2719
+ function oc(e, t) {
2746
2720
  let n = e.findIndex((e) => e.key === t.key);
2747
2721
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2748
2722
  }
2749
- function nc(e, t) {
2723
+ function sc(e, t) {
2750
2724
  for (let r of e) {
2751
2725
  let e = x(r.record);
2752
2726
  e && n(e) && t.set(r.record.id, {
2753
2727
  menu: r.record,
2754
2728
  target: e
2755
- }), nc(r.children, t);
2729
+ }), sc(r.children, t);
2756
2730
  }
2757
2731
  }
2758
- function rc(e, t) {
2732
+ function cc(e, t) {
2759
2733
  let n = new Set(t);
2760
2734
  return e.filter((e) => !n.has(e.key));
2761
2735
  }
2762
- function ic(e, t, n = []) {
2736
+ function lc(e, t, n = []) {
2763
2737
  if (e.length !== t.length || new Set(t).size !== e.length) return e;
2764
2738
  let r = new Map(e.map((e) => [e.key, e]));
2765
2739
  if (t.some((e) => !r.has(e))) return e;
2766
2740
  let i = t.map((e) => r.get(e)), a = new Set(n);
2767
2741
  return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
2768
2742
  }
2769
- function ac(e, t = {}) {
2770
- let n = A(e, t);
2743
+ function uc(e, t = {}) {
2744
+ let n = Oe(e, t);
2771
2745
  return {
2772
- ...oc(e) ? { instanceKey: oc(e) } : {},
2773
- key: Oe(e),
2774
- title: e.title ?? dc(e),
2746
+ ...dc(e) ? { instanceKey: dc(e) } : {},
2747
+ key: Ae(e),
2748
+ title: e.title ?? gc(e),
2775
2749
  fullPath: n,
2776
2750
  pageDescriptor: e,
2777
2751
  restoreState: { url: n },
2778
2752
  closable: !0
2779
2753
  };
2780
2754
  }
2781
- function oc(e) {
2755
+ function dc(e) {
2782
2756
  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;
2783
2757
  return typeof n == "string" && n ? n : void 0;
2784
2758
  }
2785
- function sc(e, t) {
2759
+ function fc(e, t) {
2786
2760
  let n = e.findIndex((e) => e.key === t.key);
2787
2761
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2788
2762
  }
2789
- function cc(e, t, n, r, i) {
2790
- let a = O(n, i), o = se(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2763
+ function pc(e, t, n, r, i) {
2764
+ let a = O(n, i), o = oe(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2791
2765
  title: e.title,
2792
2766
  titleText: s.titleText
2793
- } : { title: a.title }, l = lc(a) && lc(s) || uc(a) && uc(s) ? {
2767
+ } : { title: a.title }, l = mc(a) && mc(s) || hc(a) && hc(s) ? {
2794
2768
  ...a,
2795
2769
  ...c,
2796
2770
  menuId: e.id,
@@ -2807,44 +2781,44 @@ function cc(e, t, n, r, i) {
2807
2781
  };
2808
2782
  return {
2809
2783
  ...o,
2810
- ...ac(l, r),
2784
+ ...uc(l, r),
2811
2785
  target: t
2812
2786
  };
2813
2787
  }
2814
- function lc(e) {
2788
+ function mc(e) {
2815
2789
  return e.pageType === "platform-route" || e.pageType === "business-route";
2816
2790
  }
2817
- function uc(e) {
2791
+ function hc(e) {
2818
2792
  return e.pageType === "remote-url" || e.pageType === "external-link";
2819
2793
  }
2820
- function dc(e) {
2794
+ function gc(e) {
2821
2795
  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;
2822
2796
  }
2823
- function fc(e, t, n) {
2797
+ function _c(e, t, n) {
2824
2798
  for (let r of e) {
2825
- if (pc(r.record, t, n)) return r.record;
2826
- let e = fc(r.children, t, n);
2799
+ if (vc(r.record, t, n)) return r.record;
2800
+ let e = _c(r.children, t, n);
2827
2801
  if (e) return e;
2828
2802
  }
2829
2803
  }
2830
- function pc(e, t, n) {
2831
- let r = x(e), i = r ? ye(r, {
2804
+ function vc(e, t, n) {
2805
+ let r = x(e), i = r ? be(r, {
2832
2806
  ...n,
2833
2807
  title: e.title
2834
2808
  }) : void 0;
2835
- return i ? mc(i, t) : !1;
2809
+ return i ? yc(i, t) : !1;
2836
2810
  }
2837
- function mc(e, t) {
2811
+ function yc(e, t) {
2838
2812
  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;
2839
2813
  }
2840
- function hc(e, t) {
2814
+ function bc(e, t) {
2841
2815
  for (let n of e) {
2842
2816
  if (n.record.id === t) return n.record;
2843
- let e = hc(n.children, t);
2817
+ let e = bc(n.children, t);
2844
2818
  if (e) return e;
2845
2819
  }
2846
2820
  }
2847
- function gc(e, t) {
2821
+ function xc(e, t) {
2848
2822
  return {
2849
2823
  ...e,
2850
2824
  title: t,
@@ -2857,54 +2831,54 @@ function gc(e, t) {
2857
2831
  }
2858
2832
  //#endregion
2859
2833
  //#region src/app/workbenchSessionTabs.ts
2860
- function _c(e) {
2834
+ function Sc(e) {
2861
2835
  if (!Array.isArray(e)) return [];
2862
2836
  let t = /* @__PURE__ */ new Set();
2863
- return e.flatMap((e) => !vc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2837
+ return e.flatMap((e) => !Cc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2864
2838
  }
2865
- function vc(e) {
2839
+ function Cc(e) {
2866
2840
  let t = e;
2867
- return Sc(e) && typeof t.key == "string" && typeof t.title == "string" && (yc(t.pageDescriptor) || xc(t.target));
2841
+ return Dc(e) && typeof t.key == "string" && typeof t.title == "string" && (wc(t.pageDescriptor) || Ec(t.target));
2868
2842
  }
2869
- function yc(e) {
2870
- return !Sc(e) || !Sc(e.target) || !Sc(e.tabPolicy) || ![
2843
+ function wc(e) {
2844
+ return !Dc(e) || !Dc(e.target) || !Dc(e.tabPolicy) || ![
2871
2845
  "by-menu",
2872
2846
  "by-target",
2873
2847
  "by-params"
2874
- ].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";
2848
+ ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Tc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Tc(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";
2875
2849
  }
2876
- function bc(e) {
2850
+ function Tc(e) {
2877
2851
  return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
2878
2852
  }
2879
- function xc(e) {
2880
- return !Sc(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";
2853
+ function Ec(e) {
2854
+ return !Dc(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";
2881
2855
  }
2882
- function Sc(e) {
2856
+ function Dc(e) {
2883
2857
  return typeof e == "object" && !!e;
2884
2858
  }
2885
2859
  //#endregion
2886
2860
  //#region src/app/lockedTabPreference.ts
2887
- var Cc = "workbench.locked-tabs";
2888
- async function wc(e) {
2889
- return Ec(await e.restore(Cc, [], { persistence: "backend" }));
2861
+ var Oc = "workbench.locked-tabs";
2862
+ async function kc(e) {
2863
+ return jc(await e.restore(Oc, [], { persistence: "backend" }));
2890
2864
  }
2891
- async function Tc(e, t) {
2892
- await e.set(Cc, t, { persistence: "backend" });
2865
+ async function Ac(e, t) {
2866
+ await e.set(Oc, t, { persistence: "backend" });
2893
2867
  }
2894
- function Ec(e) {
2895
- return _c(e);
2868
+ function jc(e) {
2869
+ return Sc(e);
2896
2870
  }
2897
2871
  //#endregion
2898
2872
  //#region src/consumer/PlatformAdminOutlet.vue
2899
- var Dc = /* @__PURE__ */ z({
2873
+ var Mc = /* @__PURE__ */ W({
2900
2874
  name: "PlatformAdminOutlet",
2901
2875
  __name: "PlatformAdminOutlet",
2902
2876
  props: { descriptor: {} },
2903
2877
  setup(e) {
2904
- return (t, n) => W(ys)(e.descriptor) ? (B(), N(Ds, {
2878
+ return (t, n) => J(ws)(e.descriptor) ? (G(), L(Ms, {
2905
2879
  key: 0,
2906
2880
  descriptor: e.descriptor
2907
- }, null, 8, ["descriptor"])) : (B(), N(Me, {
2881
+ }, null, 8, ["descriptor"])) : (G(), L(Pe, {
2908
2882
  key: 1,
2909
2883
  descriptor: e.descriptor
2910
2884
  }, null, 8, ["descriptor"]));
@@ -2912,7 +2886,7 @@ var Dc = /* @__PURE__ */ z({
2912
2886
  });
2913
2887
  //#endregion
2914
2888
  //#region src/app/workbenchRouteSync.ts
2915
- function Oc(e, t) {
2889
+ function Nc(e, t) {
2916
2890
  if (e === t) return !0;
2917
2891
  if (e === void 0 || t === void 0) return !1;
2918
2892
  let n = (e) => {
@@ -2921,47 +2895,47 @@ function Oc(e, t) {
2921
2895
  };
2922
2896
  return n(e) === n(t);
2923
2897
  }
2924
- function kc(e, t, n) {
2925
- let r = Hs(e) ?? "/";
2926
- return Oc(r, t) ? void 0 : {
2898
+ function Pc(e, t, n) {
2899
+ let r = qs(e) ?? "/";
2900
+ return Nc(r, t) ? void 0 : {
2927
2901
  url: r,
2928
2902
  mode: n
2929
2903
  };
2930
2904
  }
2931
2905
  //#endregion
2932
2906
  //#region src/platform-workbench/workspaceViewDiscardGuard.ts
2933
- function Ac(e) {
2934
- return e.some((e) => ue(e).length > 0 || Se(e).length > 0);
2907
+ function Fc(e) {
2908
+ return e.some((e) => ue(e).length > 0 || Ce(e).length > 0);
2935
2909
  }
2936
- async function jc(e, t = "close", n = li) {
2937
- if (Mc(e, t, n)) return !1;
2938
- if ([...new Set(e.flatMap(Se))].length === 0) return !0;
2910
+ async function Ic(e, t = "close", n = zt) {
2911
+ if (Lc(e, t, n)) return !1;
2912
+ if ([...new Set(e.flatMap(Ce))].length === 0) return !0;
2939
2913
  let r = () => {
2940
2914
  let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭");
2941
2915
  return {
2942
2916
  title: t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh-page", "刷新页面") : n.t("platform.screen.UiTabs.close-tab", "关闭标签"),
2943
2917
  content: n.t("platform.screen.workspaceViewDiscardGuard.value-has-unsaved-changes-that-will-be-lost-when-you", "“{value1}”存在未保存的更改,{value2}后将丢失。是否继续?", {
2944
- value1: [...new Set(e.flatMap(Se))].join(n.t("platform.list.separator", "、")),
2918
+ value1: [...new Set(e.flatMap(Ce))].join(n.t("platform.list.separator", "、")),
2945
2919
  value2: r
2946
2920
  }),
2947
2921
  okText: r
2948
2922
  };
2949
2923
  };
2950
- return await et({
2924
+ return await rt({
2951
2925
  ...r(),
2952
2926
  presentation: r
2953
- }, n) && !Mc(e, t, n);
2927
+ }, n) && !Lc(e, t, n);
2954
2928
  }
2955
- function Mc(e, t, n) {
2929
+ function Lc(e, t, n) {
2956
2930
  let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"), i = [...new Set(e.flatMap(ue))];
2957
- return i.length !== 0 && (ft(n.t("platform.screen.workspaceViewDiscardGuard.value-has-an-operation-in-progress-wait-for-it-to", "“{value1}”正在处理操作,请完成后再{value2}。", {
2931
+ return i.length !== 0 && (ht(n.t("platform.screen.workspaceViewDiscardGuard.value-has-an-operation-in-progress-wait-for-it-to", "“{value1}”正在处理操作,请完成后再{value2}。", {
2958
2932
  value1: i.join(n.t("platform.list.separator", "、")),
2959
2933
  value2: r
2960
2934
  })), !0);
2961
2935
  }
2962
2936
  //#endregion
2963
2937
  //#region src/consumer/AppWorkbenchShell.vue
2964
- var Nc = /* @__PURE__ */ z({
2938
+ var Rc = /* @__PURE__ */ W({
2965
2939
  name: "AppWorkbenchShell",
2966
2940
  __name: "AppWorkbenchShell",
2967
2941
  props: {
@@ -2989,8 +2963,8 @@ var Nc = /* @__PURE__ */ z({
2989
2963
  "userCommand"
2990
2964
  ],
2991
2965
  setup(e, { emit: t }) {
2992
- let n = In(), r = e, i = t, a = M(() => r.startup.activeTabKey), o = V([]), s = 0, c = Promise.resolve(), l = !1;
2993
- k({
2966
+ let n = j(), r = e, i = t, a = I(() => r.startup.activeTabKey), o = K([]), s = 0, c = Promise.resolve(), l = !1;
2967
+ me({
2994
2968
  refreshMenus: r.loadMenus ? async () => {
2995
2969
  let e = r.startup.session, t = await r.loadMenus();
2996
2970
  if (!l || e !== r.startup.session) throw Error(n.t("platform.screen.AppWorkbenchShell.your-sign-in-state-has-changed-please-try", "登录状态已变化,请重试"));
@@ -3003,27 +2977,27 @@ var Nc = /* @__PURE__ */ z({
3003
2977
  let t = x(e);
3004
2978
  t && d(e, t);
3005
2979
  },
3006
- openRoute: ee,
3007
- replaceRoute: te,
3008
- closeCurrentTab: ne,
2980
+ openRoute: S,
2981
+ replaceRoute: ee,
2982
+ closeCurrentTab: te,
3009
2983
  openPage: b,
3010
- replacePage: oe,
2984
+ replacePage: ae,
3011
2985
  closePage: m,
3012
- setTabName: ae
2986
+ setTabName: ie
2987
+ }), sa(() => {
2988
+ l = !0, ye(), w(), se(r.location);
3013
2989
  }), oa(() => {
3014
- l = !0, ve(), C(), ce(r.location);
3015
- }), aa(() => {
3016
2990
  l = !1;
3017
- }), da(() => r.location, (e) => ce(e));
2991
+ }), ma(() => r.location, (e) => se(e));
3018
2992
  function u(e, t = void 0) {
3019
- i("update:startup", e), t && se(e, t);
2993
+ i("update:startup", e), t && oe(e, t);
3020
2994
  }
3021
2995
  function d(e, t) {
3022
2996
  if (t.openMode === "window") {
3023
- window.open(Vs(e, t), "_blank", "noopener,noreferrer");
2997
+ window.open(Ks(e, t), "_blank", "noopener,noreferrer");
3024
2998
  return;
3025
2999
  }
3026
- let n = zs(r.startup.tabs ?? [], e, t, r.resolveOptions);
3000
+ let n = Ws(r.startup.tabs ?? [], e, t, r.resolveOptions);
3027
3001
  u({
3028
3002
  ...r.startup,
3029
3003
  tabs: n.tabs,
@@ -3037,28 +3011,28 @@ var Nc = /* @__PURE__ */ z({
3037
3011
  }, "push");
3038
3012
  }
3039
3013
  async function p(e) {
3040
- await jc([e], "refresh", n) && l && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
3014
+ await Ic([e], "refresh", n) && l && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
3041
3015
  }
3042
3016
  async function m(e) {
3043
- if (!await jc([e], "close", n) || !l) return;
3044
- let t = Js(r.startup.tabs ?? [], r.startup.activeTabKey, e);
3045
- o.value.some((t) => t.key === e) && v(rc(o.value, [e])), u({
3017
+ if (!await Ic([e], "close", n) || !l) return;
3018
+ let t = $s(r.startup.tabs ?? [], r.startup.activeTabKey, e);
3019
+ o.value.some((t) => t.key === e) && v(cc(o.value, [e])), u({
3046
3020
  ...r.startup,
3047
3021
  tabs: t.tabs,
3048
3022
  activeTabKey: t.activeTabKey
3049
- }, "replace"), Pe(e);
3023
+ }, "replace"), Ie(e);
3050
3024
  }
3051
3025
  async function h(e) {
3052
- if (!await jc(e, "close", n) || !l) return;
3053
- let t = Ys(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => o.value.some((t) => t.key === e));
3054
- i.length > 0 && v(rc(o.value, i)), u({
3026
+ if (!await Ic(e, "close", n) || !l) return;
3027
+ let t = ec(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => o.value.some((t) => t.key === e));
3028
+ i.length > 0 && v(cc(o.value, i)), u({
3055
3029
  ...r.startup,
3056
3030
  tabs: t.tabs,
3057
3031
  activeTabKey: t.activeTabKey
3058
- }, "replace"), e.forEach(Pe);
3032
+ }, "replace"), e.forEach(Ie);
3059
3033
  }
3060
3034
  function g(e) {
3061
- let t = ic(r.startup.tabs ?? [], e, o.value.map((e) => e.key)), n = t.filter((e) => o.value.some((t) => t.key === e.key));
3035
+ let t = lc(r.startup.tabs ?? [], e, o.value.map((e) => e.key)), n = t.filter((e) => o.value.some((t) => t.key === e.key));
3062
3036
  n.map((e) => e.key).join("|") !== o.value.map((e) => e.key).join("|") && v(n), u({
3063
3037
  ...r.startup,
3064
3038
  tabs: t
@@ -3067,10 +3041,10 @@ var Nc = /* @__PURE__ */ z({
3067
3041
  function _(e) {
3068
3042
  let t = r.startup.tabs?.find((t) => t.key === e);
3069
3043
  if (!t) return;
3070
- let n = o.value.some((t) => t.key === e), i = o.value, a = n ? rc(i, [e]) : tc(i, t);
3044
+ let n = o.value.some((t) => t.key === e), i = o.value, a = n ? cc(i, [e]) : oc(i, t);
3071
3045
  v(a), u({
3072
3046
  ...r.startup,
3073
- tabs: Xs(r.startup.tabs ?? [], a)
3047
+ tabs: tc(r.startup.tabs ?? [], a)
3074
3048
  });
3075
3049
  }
3076
3050
  function v(e) {
@@ -3079,35 +3053,35 @@ var Nc = /* @__PURE__ */ z({
3079
3053
  }
3080
3054
  async function y(e, t, n) {
3081
3055
  try {
3082
- c = c.catch(() => void 0).then(() => Tc(qr, e)), await c;
3056
+ c = c.catch(() => void 0).then(() => Ac(Ar, e)), await c;
3083
3057
  } catch {
3084
3058
  if (n !== s) return;
3085
3059
  o.value = t, u({
3086
3060
  ...r.startup,
3087
- tabs: Xs(r.startup.tabs ?? [], t, !1)
3061
+ tabs: tc(r.startup.tabs ?? [], t, !1)
3088
3062
  });
3089
3063
  }
3090
3064
  }
3091
3065
  function b(e) {
3092
- let t = Bs(r.startup.tabs ?? [], e);
3066
+ let t = Gs(r.startup.tabs ?? [], e);
3093
3067
  return u({
3094
3068
  ...r.startup,
3095
3069
  tabs: t.tabs,
3096
3070
  activeTabKey: t.activeTabKey
3097
3071
  }, "push"), { created: t.created };
3098
3072
  }
3099
- function ee(e, t = {}) {
3100
- return S(ke(e, t), "push", r.startup, t.tabTitle, t.newInstance);
3073
+ function S(e, t = {}) {
3074
+ return C(je(e, t), "push", r.startup, t.tabTitle, t.newInstance);
3101
3075
  }
3102
- function te(e, t = {}) {
3103
- let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = ke(e, t);
3104
- if (!i || !a) return S(o, "replace", r.startup, t.tabTitle);
3105
- let s = Us(r.startup, o, {
3076
+ function ee(e, t = {}) {
3077
+ let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = je(e, t);
3078
+ if (!i || !a) return C(o, "replace", r.startup, t.tabTitle);
3079
+ let s = Js(r.startup, o, {
3106
3080
  ...r.resolveOptions,
3107
3081
  title: t.tabTitle ?? r.resolveOptions.title
3108
3082
  }, !1, n), c = s.tabs?.find((e) => e.key === s.activeTabKey);
3109
3083
  if (!c) return { created: !1 };
3110
- let l = c.pageDescriptor && a.instanceKey ? O(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, d = l ? A(l, r.resolveOptions) : c.fullPath, f = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
3084
+ let l = c.pageDescriptor && a.instanceKey ? O(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, d = l ? Oe(l, r.resolveOptions) : c.fullPath, f = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
3111
3085
  ...a,
3112
3086
  ...c,
3113
3087
  key: i,
@@ -3123,80 +3097,80 @@ var Nc = /* @__PURE__ */ z({
3123
3097
  activeTabKey: i
3124
3098
  }, "replace"), { created: !1 };
3125
3099
  }
3126
- function ne(e) {
3100
+ function te(e) {
3127
3101
  let t = r.startup.activeTabKey;
3128
- return t ? Ac([t]) ? (re(e, t), { created: !1 }) : ie(e, t) : S(ke(e), "replace", r.startup);
3102
+ return t ? Fc([t]) ? (ne(e, t), { created: !1 }) : re(e, t) : C(je(e), "replace", r.startup);
3129
3103
  }
3130
- async function re(e, t) {
3131
- if (await jc([t], "close", n) && l && (r.startup.tabs ?? []).some((e) => e.key === t)) return ie(e, t);
3104
+ async function ne(e, t) {
3105
+ if (await Ic([t], "close", n) && l && (r.startup.tabs ?? []).some((e) => e.key === t)) return re(e, t);
3132
3106
  }
3133
- function ie(e, t) {
3134
- let n = Js(r.startup.tabs ?? [], r.startup.activeTabKey, t);
3135
- Pe(t), o.value.some((e) => e.key === t) && v(rc(o.value, [t]));
3107
+ function re(e, t) {
3108
+ let n = $s(r.startup.tabs ?? [], r.startup.activeTabKey, t);
3109
+ Ie(t), o.value.some((e) => e.key === t) && v(cc(o.value, [t]));
3136
3110
  let i = n.tabs.find((t) => {
3137
- let n = t.fullPath ?? (t.pageDescriptor ? A(t.pageDescriptor) : void 0);
3111
+ let n = t.fullPath ?? (t.pageDescriptor ? Oe(t.pageDescriptor) : void 0);
3138
3112
  return n && new URL(n, "http://muyun.local").pathname === e;
3139
3113
  });
3140
3114
  return i ? (u({
3141
3115
  ...r.startup,
3142
3116
  tabs: n.tabs,
3143
3117
  activeTabKey: i.key
3144
- }, "replace"), { created: !1 }) : S(ke(e), "replace", {
3118
+ }, "replace"), { created: !1 }) : C(je(e), "replace", {
3145
3119
  ...r.startup,
3146
3120
  tabs: n.tabs,
3147
3121
  activeTabKey: n.activeTabKey
3148
3122
  });
3149
3123
  }
3150
- function S(e, t, i, a, o = !1) {
3151
- let s = new Set((i.tabs ?? []).map((e) => e.key)), c = Us(i, e, {
3124
+ function C(e, t, i, a, o = !1) {
3125
+ let s = new Set((i.tabs ?? []).map((e) => e.key)), c = Js(i, e, {
3152
3126
  ...r.resolveOptions,
3153
3127
  title: a ?? r.resolveOptions.title
3154
3128
  }, o, n);
3155
3129
  return a && c.activeTabKey && (c = {
3156
3130
  ...c,
3157
- tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? gc(e, a) : e)
3131
+ tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? xc(e, a) : e)
3158
3132
  }), u(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
3159
3133
  }
3160
- function ae(e, t) {
3134
+ function ie(e, t) {
3161
3135
  let n = t.trim();
3162
3136
  e && n && u({
3163
3137
  ...r.startup,
3164
- tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? gc(t, n) : t)
3138
+ tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? xc(t, n) : t)
3165
3139
  });
3166
3140
  }
3167
- function oe(e, t) {
3141
+ function ae(e, t) {
3168
3142
  let n = (r.startup.tabs ?? []).map((n) => n.key === e ? {
3169
3143
  ...n,
3170
3144
  title: t.title ?? n.title,
3171
3145
  pageDescriptor: t,
3172
- restoreState: { url: A(t) }
3146
+ restoreState: { url: Oe(t) }
3173
3147
  } : n), i = n.find((t) => t.key === e);
3174
- i && o.value.some((t) => t.key === e) && v(tc(o.value, i)), u({
3148
+ i && o.value.some((t) => t.key === e) && v(oc(o.value, i)), u({
3175
3149
  ...r.startup,
3176
3150
  tabs: n
3177
3151
  }, "replace");
3178
3152
  }
3179
- function se(e, t) {
3180
- let n = kc(e, r.location, t);
3153
+ function oe(e, t) {
3154
+ let n = Pc(e, r.location, t);
3181
3155
  n && i("navigate", n);
3182
3156
  }
3183
- function ce(e) {
3184
- u(Us(r.startup, e, r.resolveOptions, !1, n));
3157
+ function se(e) {
3158
+ u(Js(r.startup, e, r.resolveOptions, !1, n));
3185
3159
  }
3186
- async function C() {
3160
+ async function w() {
3187
3161
  let e = s;
3188
3162
  try {
3189
- let t = Qs(await wc(qr), r.startup.menus, r.resolveOptions, n);
3163
+ let t = rc(await kc(Ar), r.startup.menus, r.resolveOptions, n);
3190
3164
  if (!l || e !== s) return;
3191
3165
  o.value = t;
3192
3166
  let i = new Set(t.map((e) => e.key)), a = [...t, ...(r.startup.tabs ?? []).filter((e) => !i.has(e.key))];
3193
3167
  u({
3194
3168
  ...r.startup,
3195
- tabs: Xs(a, t)
3169
+ tabs: tc(a, t)
3196
3170
  });
3197
3171
  } catch {}
3198
3172
  }
3199
- return (t, n) => (B(), N(Je, {
3173
+ return (t, n) => (G(), L(Xe, {
3200
3174
  startup: e.startup,
3201
3175
  "current-user-employee-name": e.currentUserEmployeeName,
3202
3176
  loading: e.loading,
@@ -3214,12 +3188,12 @@ var Nc = /* @__PURE__ */ z({
3214
3188
  onRefreshPage: p,
3215
3189
  onUserCommand: n[0] ||= (e) => i("userCommand", e),
3216
3190
  onRetryLoad: n[1] ||= (e) => i("retryLoad")
3217
- }, Qi({
3218
- default: G(({ pageDescriptor: e }) => [H(t.$slots, "default", { pageDescriptor: e })]),
3191
+ }, ea({
3192
+ default: Y(({ pageDescriptor: e }) => [ua(t.$slots, "default", { pageDescriptor: e })]),
3219
3193
  _: 2
3220
3194
  }, [t.$slots["topbar-actions"] ? {
3221
3195
  name: "topbar-actions",
3222
- fn: G((e) => [H(t.$slots, "topbar-actions", ra(ea(e)))]),
3196
+ fn: Y((e) => [ua(t.$slots, "topbar-actions", ia(ta(e)))]),
3223
3197
  key: "0"
3224
3198
  } : void 0]), 1032, [
3225
3199
  "startup",
@@ -3232,203 +3206,441 @@ var Nc = /* @__PURE__ */ z({
3232
3206
  "theme-appearance"
3233
3207
  ]));
3234
3208
  }
3235
- });
3209
+ }), zc = { class: "external-provisioning-confirmation" }, Bc = {
3210
+ key: 0,
3211
+ role: "alert"
3212
+ }, Vc = /*#__PURE__*/ P(/* @__PURE__ */ W({
3213
+ __name: "ExternalProvisioningConfirmation",
3214
+ props: {
3215
+ confirmation: {},
3216
+ busy: { type: Boolean },
3217
+ error: {}
3218
+ },
3219
+ emits: ["confirm", "cancel"],
3220
+ setup(e) {
3221
+ let t = j();
3222
+ return (n, r) => (G(), z("main", zc, [
3223
+ B("h1", null, q(J(t).t("platform.external-login.confirm-title", "确认加入")), 1),
3224
+ B("p", null, q(J(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
3225
+ B("dl", null, [
3226
+ B("dt", null, q(J(t).t("platform.external-login.person", "姓名")), 1),
3227
+ B("dd", null, q(e.confirmation.displayName), 1),
3228
+ B("dt", null, q(J(t).t("platform.external-login.tenant", "租户")), 1),
3229
+ B("dd", null, q(e.confirmation.tenantId), 1),
3230
+ B("dt", null, q(J(t).t("platform.external-login.placements", "任职归属")), 1),
3231
+ B("dd", null, q((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
3232
+ ]),
3233
+ e.error ? (G(), z("p", Bc, q(e.error), 1)) : R("v-if", !0),
3234
+ H(J(M), {
3235
+ disabled: e.busy,
3236
+ onClick: r[0] ||= (e) => n.$emit("confirm")
3237
+ }, {
3238
+ default: Y(() => [V(q(J(t).t("platform.external-login.confirm-join", "确认并登录")), 1)]),
3239
+ _: 1
3240
+ }, 8, ["disabled"]),
3241
+ H(J(M), {
3242
+ disabled: e.busy,
3243
+ onClick: r[1] ||= (e) => n.$emit("cancel")
3244
+ }, {
3245
+ default: Y(() => [V(q(J(t).t("platform.external-login.cancel-join", "取消")), 1)]),
3246
+ _: 1
3247
+ }, 8, ["disabled"])
3248
+ ]));
3249
+ }
3250
+ }), [["__scopeId", "data-v-90a45828"]]);
3236
3251
  //#endregion
3237
3252
  //#region src/app/loginTenant.ts
3238
- function Pc(e, t = Lc(), n = Rc(), r = "/") {
3239
- let i = Ic(t, n === Fc(r));
3253
+ function Hc(e, t = Kc(), n = qc(), r = "/") {
3254
+ let i = Gc(t, n === Wc(r));
3240
3255
  return i ? {
3241
3256
  tenantId: i,
3242
3257
  tenantLocked: !0
3243
3258
  } : {
3244
- tenantId: $(e),
3259
+ tenantId: Uc(e),
3245
3260
  tenantLocked: !1
3246
3261
  };
3247
3262
  }
3248
- function $(e) {
3263
+ function Uc(e) {
3249
3264
  return e?.trim() ?? "";
3250
3265
  }
3251
- function Fc(e) {
3266
+ function Wc(e) {
3252
3267
  let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
3253
3268
  return t === "/" ? t : `${t}/`;
3254
3269
  }
3255
- function Ic(e, t) {
3256
- let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = $(n.get("_muyunTenantId"));
3257
- return r || !t ? r : $(n.get("tenantId")) || $(n.get("tenant"));
3270
+ function Gc(e, t) {
3271
+ let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Uc(n.get("_muyunTenantId"));
3272
+ return r || !t ? r : Uc(n.get("tenantId")) || Uc(n.get("tenant"));
3258
3273
  }
3259
- function Lc() {
3274
+ function Kc() {
3260
3275
  return typeof window > "u" ? "" : window.location.search;
3261
3276
  }
3262
- function Rc() {
3277
+ function qc() {
3263
3278
  return typeof window > "u" ? "/" : window.location.pathname;
3264
3279
  }
3265
3280
  //#endregion
3266
- //#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
3267
- var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class: "login-panel" }, Hc = { class: "login-brand" }, Uc = ["src"], Wc = { key: 1 }, Gc = { key: 0 }, Kc = {
3281
+ //#region src/app/externalLoginReturn.ts
3282
+ var Jc = "muyun.externalLogin.pending";
3283
+ function Yc(e, t, n = rl()) {
3284
+ let r = el(n).filter((t) => t.state !== e.state);
3285
+ r.push({
3286
+ providerId: t.providerId,
3287
+ state: e.state,
3288
+ browserProof: e.browserProof,
3289
+ purpose: t.purpose,
3290
+ tenantId: t.tenantId || void 0
3291
+ }), tl(n, r.slice(-5));
3292
+ }
3293
+ function Xc(e, t = rl()) {
3294
+ tl(t, el(t).filter((t) => t.state !== e));
3295
+ }
3296
+ function Zc(e) {
3297
+ window.location.assign(e);
3298
+ }
3299
+ function Qc(e, t = rl()) {
3300
+ let n = {};
3301
+ for (let [t, r] of Object.entries(e)) {
3302
+ let e = Array.isArray(r) ? r[0] : r;
3303
+ typeof e == "string" && !t.startsWith("_muyun") && (n[t] = e);
3304
+ }
3305
+ let r = n.state?.trim();
3306
+ if (!r) return;
3307
+ let i = el(t);
3308
+ return tl(t, i.filter((e) => e.state !== r)), {
3309
+ pending: i.find((e) => e.state === r),
3310
+ parameters: n
3311
+ };
3312
+ }
3313
+ function $c(e, t) {
3314
+ if (e.status === "reviewPending") return t.t("platform.external-login.review-pending", "加入申请已提交,审核通过后请重新扫码登录");
3315
+ if (e.status === "reviewRejected") return t.t("platform.external-login.review-rejected", "加入申请已被拒绝,请联系管理员");
3316
+ if (e.failure === "admissionRejected") return t.t("platform.external-login.admission-rejected", "无法确认有效的准入资料,请联系管理员检查准入范围并更新通讯录后重试");
3317
+ if (e.status === "expired") return t.t("platform.external-login.authorization-expired", "授权已超时,请重新发起");
3318
+ switch (e.failure) {
3319
+ case "identityNotBound": return t.t("platform.external-login.identity-not-bound", "该外部账号尚未绑定本系统账号,请先用账号密码登录,在个人信息中绑定后再使用");
3320
+ case "identityConflict": return t.t("platform.external-login.identity-conflict", "该外部账号已绑定其他账号");
3321
+ case "alreadyBound": return t.t("platform.external-login.already-bound", "当前账号已绑定该身份源");
3322
+ case "enterpriseMismatch": return t.t("platform.external-login.enterprise-mismatch", "该外部账号不属于允许的企业");
3323
+ case "providerUnavailable": return t.t("platform.external-login.provider-unavailable", "身份源暂时不可用,请稍后重试");
3324
+ case "internalError": return t.t("platform.external-login.internal-error", "平台处理失败,请稍后重试");
3325
+ case "sessionEnded": return t.t("platform.external-login.session-ended", "发起绑定的登录已失效,请重新登录后再绑定");
3326
+ default: return t.t("platform.external-login.authorization-failed", "外部授权未通过,请重试或联系管理员");
3327
+ }
3328
+ }
3329
+ function el(e) {
3330
+ try {
3331
+ let t = JSON.parse(e?.getItem(Jc) ?? "[]");
3332
+ return Array.isArray(t) ? t.filter(nl) : [];
3333
+ } catch {
3334
+ return [];
3335
+ }
3336
+ }
3337
+ function tl(e, t) {
3338
+ try {
3339
+ t.length === 0 ? e?.removeItem(Jc) : e?.setItem(Jc, JSON.stringify(t));
3340
+ } catch {}
3341
+ }
3342
+ function nl(e) {
3343
+ if (typeof e != "object" || !e) return !1;
3344
+ let t = e;
3345
+ return typeof t.providerId == "string" && typeof t.state == "string" && typeof t.browserProof == "string" && (t.purpose === "login" || t.purpose === "bind");
3346
+ }
3347
+ function rl() {
3348
+ try {
3349
+ return typeof window > "u" ? void 0 : window.sessionStorage;
3350
+ } catch {
3351
+ return;
3352
+ }
3353
+ }
3354
+ var il = "https://login.welink.huaweicloud.com/sso-proxy-front/public/qrcode/0.0.1/wlQrcodeLogin.js", al;
3355
+ function ol() {
3356
+ return window.wlQrcodeLogin ? Promise.resolve(window.wlQrcodeLogin) : al || (al = new Promise((e, t) => {
3357
+ let n = document.createElement("script");
3358
+ n.src = il, n.async = !0, n.referrerPolicy = "no-referrer";
3359
+ let r = setTimeout(i, 15e3);
3360
+ function i() {
3361
+ clearTimeout(r), n.remove(), al = void 0, t(/* @__PURE__ */ Error("WeLink script unavailable"));
3362
+ }
3363
+ n.onerror = i, n.onload = () => {
3364
+ if (!window.wlQrcodeLogin) return i();
3365
+ clearTimeout(r), e(window.wlQrcodeLogin);
3366
+ }, document.head.append(n);
3367
+ }), al);
3368
+ }
3369
+ //#endregion
3370
+ //#region src/app/WeLinkQrCode.vue?vue&type=script&setup=true&lang.ts
3371
+ var sl = {
3372
+ class: "welink-qr",
3373
+ "aria-live": "polite"
3374
+ }, cl = { key: 0 }, ll = {
3375
+ key: 1,
3376
+ role: "alert"
3377
+ }, ul = /*#__PURE__*/ P(/* @__PURE__ */ W({
3378
+ __name: "WeLinkQrCode",
3379
+ props: { start: {} },
3380
+ emits: ["close"],
3381
+ setup(e, { emit: t }) {
3382
+ let n = e, r = t, i = j(), a = `welink-${fa()}`, o = K(), s = K(!1), c = K(!1), l = !0, u = !1, d;
3383
+ function f(e) {
3384
+ let t = o.value?.querySelector("iframe");
3385
+ 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;
3386
+ let r = n.start.qrCode, i = new URL(r.authorizationUrl);
3387
+ i.search = new URLSearchParams({
3388
+ client_id: r.clientId,
3389
+ redirect_uri: r.redirectUri,
3390
+ response_type: "code",
3391
+ scope: r.scope,
3392
+ state: n.start.state,
3393
+ code: e.data
3394
+ }).toString(), u = !0, Zc(i.toString());
3395
+ }
3396
+ return sa(async () => {
3397
+ try {
3398
+ let e = n.start.qrCode;
3399
+ if (!e || e.providerType !== "welink" || e.scriptUrl !== il || 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");
3400
+ let t = Date.parse(n.start.expiresAt) - Date.now();
3401
+ if (!Number.isFinite(t) || t <= 0) {
3402
+ c.value = !0;
3403
+ return;
3404
+ }
3405
+ d = setTimeout(() => c.value = !0, Math.min(t, 2147483647));
3406
+ let r = await ol();
3407
+ if (!l || c.value) return;
3408
+ window.addEventListener("message", f), r({
3409
+ id: a,
3410
+ client_id: e.clientId,
3411
+ redirect_uri: e.redirectUri,
3412
+ state: e.state,
3413
+ scope: e.scope,
3414
+ response_type: "code",
3415
+ self_redirect: "false",
3416
+ lang: i.languageTag.value.startsWith("en") ? "en" : "cn",
3417
+ width: 300,
3418
+ height: 330
3419
+ });
3420
+ let s = o.value?.querySelector("iframe");
3421
+ s && (s.title = i.t("platform.welink.qr-title", "WeLink 扫码授权"));
3422
+ } catch {
3423
+ l && (s.value = !0);
3424
+ }
3425
+ }), oa(() => {
3426
+ l = !1, clearTimeout(d), window.removeEventListener("message", f);
3427
+ }), (e, t) => (G(), z("section", sl, [c.value ? (G(), z("p", cl, q(J(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (G(), z("p", ll, q(J(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (G(), z(F, { key: 2 }, [B("p", null, q(J(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), B("div", {
3428
+ id: a,
3429
+ ref_key: "container",
3430
+ ref: o
3431
+ }, null, 512)], 64)), H(J(M), { onClick: t[0] ||= (e) => r("close") }, {
3432
+ default: Y(() => [V(q(J(i).t("platform.action.cancel", "取消")), 1)]),
3433
+ _: 1
3434
+ })]));
3435
+ }
3436
+ }), [["__scopeId", "data-v-85e0956f"]]), dl = { class: "login-language" }, fl = { class: "login-page" }, pl = { class: "login-panel" }, ml = { class: "login-brand" }, hl = ["src"], gl = { key: 1 }, _l = { key: 0 }, vl = {
3268
3437
  key: 1,
3269
3438
  class: "login-subtitle"
3270
- }, qc = {
3439
+ }, yl = {
3271
3440
  key: 0,
3272
3441
  class: "login-error"
3273
- }, Jc = { key: 0 }, Yc = { class: "login-context" }, Xc = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3442
+ }, bl = { key: 0 }, xl = {
3443
+ key: 3,
3444
+ class: "login-external"
3445
+ }, Sl = { class: "login-external-divider" }, Cl = { class: "login-context" }, wl = /*#__PURE__*/ P(/* @__PURE__ */ W({
3274
3446
  name: "LoginView",
3275
3447
  __name: "LoginView",
3276
3448
  props: {
3277
3449
  authClient: {},
3278
3450
  loginContextClient: {},
3451
+ externalLoginClient: {},
3279
3452
  loading: { type: Boolean },
3280
3453
  error: {},
3281
3454
  initialUsername: {}
3282
3455
  },
3283
3456
  emits: ["authenticated"],
3284
3457
  setup(e, { emit: t }) {
3285
- let n = In(), r = e, i = t, a = Pc(void 0), o = V(a.tenantId), s = a.tenantLocked, c = V($(r.initialUsername) || $(void 0)), l = V($(void 0)), u = V(!1), d = V(), f = V(!1), p = V(), m = V(""), h = V(""), g = V(), _ = V(!1), v = V(), y = M(() => !s || !_.value && !v.value), b = M(() => g.value?.mode !== "logoOnly"), x = M(() => g.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), ee = M(() => g.value?.subtitle);
3286
- oa(async () => {
3287
- if (s && o.value) {
3288
- _.value = !0;
3458
+ let n = j(), r = K();
3459
+ function i() {
3460
+ r.value && Xc(r.value.state), r.value = void 0;
3461
+ }
3462
+ let a = e, o = t, s = Hc(void 0), c = K(s.tenantId), l = s.tenantLocked, u = K(Uc(a.initialUsername) || Uc(void 0)), d = K(Uc(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), ee = I(() => !l || !y.value && !b.value), te = I(() => v.value?.mode !== "logoOnly"), ne = I(() => v.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), re = I(() => v.value?.subtitle);
3463
+ sa(async () => {
3464
+ if (l && c.value) {
3465
+ y.value = !0;
3289
3466
  try {
3290
- if (!r.loginContextClient) throw Error("login context client is unavailable");
3291
- let e = await r.loginContextClient.loginContext(o.value);
3292
- g.value = e.branding;
3467
+ if (!a.loginContextClient) throw Error("login context client is unavailable");
3468
+ let e = await a.loginContextClient.loginContext(c.value);
3469
+ v.value = e.branding, x.value = a.externalLoginClient ? e.externalLoginMethods ?? [] : [];
3293
3470
  } catch {
3294
- v.value = () => n.t("platform.screen.LoginView.unable-to-open-sign-in-for-this-tenant", "无法打开该租户的登录入口");
3471
+ b.value = () => n.t("platform.screen.LoginView.unable-to-open-sign-in-for-this-tenant", "无法打开该租户的登录入口");
3295
3472
  } finally {
3296
- _.value = !1;
3473
+ y.value = !1;
3297
3474
  }
3298
3475
  }
3299
3476
  });
3300
- async function te() {
3301
- d.value = void 0, u.value = !0;
3477
+ async function C(e) {
3478
+ if (a.externalLoginClient) {
3479
+ p.value = void 0, S.value = !0;
3480
+ try {
3481
+ i();
3482
+ let t = await a.externalLoginClient.startLogin(e.providerId, c.value);
3483
+ Yc(t, {
3484
+ providerId: e.providerId,
3485
+ purpose: "login",
3486
+ tenantId: c.value
3487
+ }), t.qrCode ? (r.value = t, S.value = !1) : Zc(t.authorizationUrl);
3488
+ } catch (e) {
3489
+ p.value = () => ae(e), S.value = !1;
3490
+ }
3491
+ }
3492
+ }
3493
+ async function ie() {
3494
+ p.value = void 0, f.value = !0;
3302
3495
  try {
3303
- let e = await r.authClient.login({
3304
- tenantId: o.value,
3305
- username: c.value,
3306
- password: l.value
3496
+ let e = await a.authClient.login({
3497
+ tenantId: c.value,
3498
+ username: u.value,
3499
+ password: d.value
3307
3500
  });
3308
3501
  if (e.passwordChangeRequired) {
3309
- p.value = e.token, f.value = !0, d.value = void 0;
3502
+ h.value = e.token, m.value = !0, p.value = void 0;
3310
3503
  return;
3311
3504
  }
3312
- i("authenticated", e);
3505
+ o("authenticated", e);
3313
3506
  } catch (e) {
3314
- d.value = () => ne(e);
3507
+ p.value = () => ae(e);
3315
3508
  } finally {
3316
- u.value = !1;
3509
+ f.value = !1;
3317
3510
  }
3318
3511
  }
3319
- function ne(e) {
3320
- return e instanceof Li ? 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", "登录失败,请稍后重试");
3512
+ function ae(e) {
3513
+ return e instanceof xn ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === _t.networkError || e.code === _t.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === _t.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", "登录失败,请稍后重试");
3321
3514
  }
3322
- async function re() {
3323
- if (d.value = void 0, !p.value) {
3324
- d.value = () => n.t("platform.screen.LoginView.your-session-is-no-longer-valid-please-sign", "登录状态已失效,请重新登录"), f.value = !1;
3515
+ async function oe() {
3516
+ if (p.value = void 0, !h.value) {
3517
+ p.value = () => n.t("platform.screen.LoginView.your-session-is-no-longer-valid-please-sign", "登录状态已失效,请重新登录"), m.value = !1;
3325
3518
  return;
3326
3519
  }
3327
- if (m.value !== h.value) {
3328
- d.value = () => n.t("platform.screen.LoginView.the-new-passwords-do-not-match", "两次输入的新密码不一致");
3520
+ if (g.value !== _.value) {
3521
+ p.value = () => n.t("platform.screen.LoginView.the-new-passwords-do-not-match", "两次输入的新密码不一致");
3329
3522
  return;
3330
3523
  }
3331
- u.value = !0;
3524
+ f.value = !0;
3332
3525
  try {
3333
- await r.authClient.changeOwnPassword({
3334
- currentPassword: l.value,
3335
- newPassword: m.value
3336
- }, p.value), l.value = m.value;
3337
- let e = await r.authClient.login({
3338
- tenantId: o.value,
3339
- username: c.value,
3340
- password: m.value
3526
+ await a.authClient.changeOwnPassword({
3527
+ currentPassword: d.value,
3528
+ newPassword: g.value
3529
+ }, h.value), d.value = g.value;
3530
+ let e = await a.authClient.login({
3531
+ tenantId: c.value,
3532
+ username: u.value,
3533
+ password: g.value
3341
3534
  });
3342
- i("authenticated", e);
3535
+ o("authenticated", e);
3343
3536
  } catch (e) {
3344
- d.value = () => e instanceof Error ? ut(Pi(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
3537
+ p.value = () => e instanceof Error ? k(A(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
3345
3538
  } finally {
3346
- u.value = !1;
3539
+ f.value = !1;
3347
3540
  }
3348
3541
  }
3349
- return (t, r) => (B(), F(Zi, null, [I("div", zc, [L(W(Ie))]), I("main", Bc, [I("section", Vc, [
3350
- I("header", null, [I("div", Hc, [g.value?.lightLogo ? (B(), F("img", {
3542
+ return (t, a) => (G(), z(F, null, [B("div", dl, [H(J(Re))]), B("main", fl, [B("section", pl, [
3543
+ B("header", null, [B("div", ml, [v.value?.lightLogo ? (G(), z("img", {
3351
3544
  key: 0,
3352
3545
  class: "login-logo",
3353
- src: g.value.lightLogo,
3546
+ src: v.value.lightLogo,
3354
3547
  alt: ""
3355
- }, null, 8, Uc)) : P("v-if", !0), b.value ? (B(), F("div", Wc, [
3356
- g.value?.lightLogo ? P("v-if", !0) : (B(), F("p", Gc, "MuYun Platform")),
3357
- I("h1", null, U(x.value), 1),
3358
- ee.value ? (B(), F("p", Kc, U(ee.value), 1)) : P("v-if", !0)
3359
- ])) : P("v-if", !0)])]),
3360
- d.value || e.error || v.value ? (B(), F("p", qc, U(d.value?.() || e.error || v.value?.()), 1)) : P("v-if", !0),
3361
- f.value ? (B(), F("form", {
3548
+ }, null, 8, hl)) : R("v-if", !0), te.value ? (G(), z("div", gl, [
3549
+ v.value?.lightLogo ? R("v-if", !0) : (G(), z("p", _l, "MuYun Platform")),
3550
+ B("h1", null, q(ne.value), 1),
3551
+ re.value ? (G(), z("p", vl, q(re.value), 1)) : R("v-if", !0)
3552
+ ])) : R("v-if", !0)])]),
3553
+ p.value || e.error || b.value ? (G(), z("p", yl, q(p.value?.() || e.error || b.value?.()), 1)) : R("v-if", !0),
3554
+ r.value ? (G(), L(ul, {
3555
+ key: r.value.state,
3556
+ start: r.value,
3557
+ onClose: i
3558
+ }, null, 8, ["start"])) : R("v-if", !0),
3559
+ m.value ? R("v-if", !0) : (G(), z("form", {
3362
3560
  key: 2,
3363
3561
  class: "login-form",
3364
- onSubmit: pa(re, ["prevent"])
3562
+ onSubmit: ga(ie, ["prevent"])
3365
3563
  }, [
3366
- I("p", Yc, U(W(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
3367
- I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.new-password", "新密码")), 1), L(W(j), {
3368
- value: m.value,
3369
- "onUpdate:value": r[3] ||= (e) => m.value = e,
3370
- type: "password",
3371
- autocomplete: "new-password",
3564
+ J(l) ? R("v-if", !0) : (G(), z("label", bl, [B("span", null, q(J(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), H(J(N), {
3565
+ value: c.value,
3566
+ "onUpdate:value": a[0] ||= (e) => c.value = e,
3567
+ autocomplete: "organization",
3568
+ placeholder: J(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
3569
+ }, null, 8, ["value", "placeholder"])])),
3570
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.username", "用户名")), 1), H(J(N), {
3571
+ value: u.value,
3572
+ "onUpdate:value": a[1] ||= (e) => u.value = e,
3573
+ autocomplete: "username",
3372
3574
  required: ""
3373
3575
  }, null, 8, ["value"])]),
3374
- I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), L(W(j), {
3375
- value: h.value,
3376
- "onUpdate:value": r[4] ||= (e) => h.value = e,
3576
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.password", "密码")), 1), H(J(N), {
3577
+ value: d.value,
3578
+ "onUpdate:value": a[2] ||= (e) => d.value = e,
3377
3579
  type: "password",
3378
- autocomplete: "new-password",
3580
+ autocomplete: "current-password",
3379
3581
  required: ""
3380
3582
  }, null, 8, ["value"])]),
3381
- L(W(Di), {
3583
+ H(J(M), {
3382
3584
  class: "login-submit",
3383
3585
  "html-type": "submit",
3384
3586
  type: "primary",
3385
- loading: u.value || e.loading
3587
+ disabled: !ee.value,
3588
+ loading: f.value || e.loading || y.value
3386
3589
  }, {
3387
- default: G(() => [$i(U(u.value || e.loading ? W(n).t("platform.screen.LoginView.saving", "保存中") : W(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
3590
+ default: Y(() => [V(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.signing-in", "登录中") : J(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
3388
3591
  _: 1
3389
- }, 8, ["loading"])
3390
- ], 32)) : (B(), F("form", {
3391
- key: 1,
3592
+ }, 8, ["disabled", "loading"])
3593
+ ], 32)),
3594
+ !m.value && x.value.length > 0 ? (G(), z("div", xl, [B("p", Sl, q(J(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (G(!0), z(F, null, la(x.value, (e) => (G(), L(J(M), {
3595
+ key: e.providerId,
3596
+ class: "login-submit",
3597
+ loading: S.value,
3598
+ disabled: S.value,
3599
+ onClick: (t) => C(e)
3600
+ }, {
3601
+ default: Y(() => [V(q(J(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
3602
+ _: 2
3603
+ }, 1032, [
3604
+ "loading",
3605
+ "disabled",
3606
+ "onClick"
3607
+ ]))), 128))])) : m.value ? (G(), z("form", {
3608
+ key: 4,
3392
3609
  class: "login-form",
3393
- onSubmit: pa(te, ["prevent"])
3610
+ onSubmit: ga(oe, ["prevent"])
3394
3611
  }, [
3395
- W(s) ? P("v-if", !0) : (B(), F("label", Jc, [I("span", null, U(W(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), L(W(j), {
3396
- value: o.value,
3397
- "onUpdate:value": r[0] ||= (e) => o.value = e,
3398
- autocomplete: "organization",
3399
- placeholder: W(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
3400
- }, null, 8, ["value", "placeholder"])])),
3401
- I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.username", "用户名")), 1), L(W(j), {
3402
- value: c.value,
3403
- "onUpdate:value": r[1] ||= (e) => c.value = e,
3404
- autocomplete: "username",
3612
+ B("p", Cl, q(J(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
3613
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.new-password", "新密码")), 1), H(J(N), {
3614
+ value: g.value,
3615
+ "onUpdate:value": a[3] ||= (e) => g.value = e,
3616
+ type: "password",
3617
+ autocomplete: "new-password",
3405
3618
  required: ""
3406
3619
  }, null, 8, ["value"])]),
3407
- I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.password", "密码")), 1), L(W(j), {
3408
- value: l.value,
3409
- "onUpdate:value": r[2] ||= (e) => l.value = e,
3620
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), H(J(N), {
3621
+ value: _.value,
3622
+ "onUpdate:value": a[4] ||= (e) => _.value = e,
3410
3623
  type: "password",
3411
- autocomplete: "current-password",
3624
+ autocomplete: "new-password",
3412
3625
  required: ""
3413
3626
  }, null, 8, ["value"])]),
3414
- L(W(Di), {
3627
+ H(J(M), {
3415
3628
  class: "login-submit",
3416
3629
  "html-type": "submit",
3417
3630
  type: "primary",
3418
- disabled: !y.value,
3419
- loading: u.value || e.loading || _.value
3631
+ loading: f.value || e.loading
3420
3632
  }, {
3421
- default: G(() => [$i(U(u.value || e.loading ? W(n).t("platform.screen.LoginView.signing-in", "登录中") : W(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
3633
+ default: Y(() => [V(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.saving", "保存中") : J(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
3422
3634
  _: 1
3423
- }, 8, ["disabled", "loading"])
3424
- ], 32))
3635
+ }, 8, ["loading"])
3636
+ ], 32)) : R("v-if", !0)
3425
3637
  ])])], 64));
3426
3638
  }
3427
- }), [["__scopeId", "data-v-8ea5034c"]]);
3639
+ }), [["__scopeId", "data-v-96af9dc4"]]);
3428
3640
  //#endregion
3429
3641
  //#region src/consumer/userPreferencePersistence.ts
3430
- function Zc(e) {
3431
- oi({
3642
+ function Tl(e) {
3643
+ Kr({
3432
3644
  load: async (t) => (await e().request({
3433
3645
  path: `/platform.user-preference/${encodeURIComponent(t)}`,
3434
3646
  query: { clientType: "WEB" }
@@ -3450,10 +3662,10 @@ function Zc(e) {
3450
3662
  }
3451
3663
  //#endregion
3452
3664
  //#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
3453
- var Qc = { class: "change-own-password-fields" }, $c = {
3665
+ var El = { class: "change-own-password-fields" }, Dl = {
3454
3666
  key: 0,
3455
3667
  class: "change-own-password-error"
3456
- }, el = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3668
+ }, Ol = /*#__PURE__*/ P(/* @__PURE__ */ W({
3457
3669
  name: "ChangeOwnPasswordDialog",
3458
3670
  __name: "ChangeOwnPasswordDialog",
3459
3671
  props: {
@@ -3478,54 +3690,54 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3478
3690
  "update:confirmPassword"
3479
3691
  ],
3480
3692
  setup(e, { emit: t }) {
3481
- let n = In(), r = t;
3482
- return (t, i) => (B(), N(W(cn), {
3693
+ let n = j(), r = t;
3694
+ return (t, i) => (G(), L(J(un), {
3483
3695
  open: e.open,
3484
- title: W(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3485
- "confirm-text": W(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3696
+ title: J(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3697
+ "confirm-text": J(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3486
3698
  "confirm-loading": e.saving,
3487
3699
  "confirm-disabled": !e.currentPassword || !e.newPassword || !e.confirmPassword,
3488
3700
  onConfirm: i[3] ||= (e) => r("submit"),
3489
3701
  onCancel: i[4] ||= (e) => r("close")
3490
3702
  }, {
3491
- default: G(() => [I("div", Qc, [
3492
- I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), L(W(j), {
3703
+ default: Y(() => [B("div", El, [
3704
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), H(J(N), {
3493
3705
  value: e.currentPassword,
3494
3706
  type: "password",
3495
3707
  autocomplete: "current-password",
3496
3708
  disabled: e.saving,
3497
- placeholder: W(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3709
+ placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3498
3710
  "onUpdate:value": i[0] ||= (e) => r("update:currentPassword", e)
3499
3711
  }, null, 8, [
3500
3712
  "value",
3501
3713
  "disabled",
3502
3714
  "placeholder"
3503
3715
  ])]),
3504
- I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), L(W(j), {
3716
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), H(J(N), {
3505
3717
  value: e.newPassword,
3506
3718
  type: "password",
3507
3719
  autocomplete: "new-password",
3508
3720
  disabled: e.saving,
3509
- placeholder: W(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3721
+ placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3510
3722
  "onUpdate:value": i[1] ||= (e) => r("update:newPassword", e)
3511
3723
  }, null, 8, [
3512
3724
  "value",
3513
3725
  "disabled",
3514
3726
  "placeholder"
3515
3727
  ])]),
3516
- I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), L(W(j), {
3728
+ B("label", null, [B("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), H(J(N), {
3517
3729
  value: e.confirmPassword,
3518
3730
  type: "password",
3519
3731
  autocomplete: "new-password",
3520
3732
  disabled: e.saving,
3521
- placeholder: W(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3733
+ placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3522
3734
  "onUpdate:value": i[2] ||= (e) => r("update:confirmPassword", e)
3523
3735
  }, null, 8, [
3524
3736
  "value",
3525
3737
  "disabled",
3526
3738
  "placeholder"
3527
3739
  ])])
3528
- ]), e.error ? (B(), F("p", $c, U(e.error), 1)) : P("v-if", !0)]),
3740
+ ]), e.error ? (G(), z("p", Dl, q(e.error), 1)) : R("v-if", !0)]),
3529
3741
  _: 1
3530
3742
  }, 8, [
3531
3743
  "open",
@@ -3535,18 +3747,18 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3535
3747
  "confirm-disabled"
3536
3748
  ]));
3537
3749
  }
3538
- }), [["__scopeId", "data-v-c6faa9f8"]]), tl = { class: "theme-skin-preferences" }, nl = {
3750
+ }), [["__scopeId", "data-v-c6faa9f8"]]), kl = { class: "theme-skin-preferences" }, Al = {
3539
3751
  key: 0,
3540
3752
  class: "theme-skin-error",
3541
3753
  role: "alert"
3542
- }, rl = ["aria-label"], il = [
3754
+ }, jl = ["aria-label"], Ml = [
3543
3755
  "aria-checked",
3544
3756
  "tabindex",
3545
3757
  "data-skin-id",
3546
3758
  "disabled",
3547
3759
  "onClick",
3548
3760
  "onKeydown"
3549
- ], al = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3761
+ ], Nl = /*#__PURE__*/ P(/* @__PURE__ */ W({
3550
3762
  name: "ThemeSkinPreferencesDialog",
3551
3763
  __name: "ThemeSkinPreferencesDialog",
3552
3764
  props: {
@@ -3562,7 +3774,7 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3562
3774
  },
3563
3775
  emits: ["close", "select"],
3564
3776
  setup(e, { emit: t }) {
3565
- let n = In(), r = e, i = M(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3777
+ let n = j(), 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;
3566
3778
  function o(e, t) {
3567
3779
  if (![
3568
3780
  "ArrowRight",
@@ -3578,25 +3790,25 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3578
3790
  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;
3579
3791
  s && (a("select", s), o?.focus());
3580
3792
  }
3581
- return (t, r) => (B(), N(W(cn), {
3793
+ return (t, r) => (G(), L(J(un), {
3582
3794
  open: e.open,
3583
- title: W(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3795
+ title: J(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3584
3796
  width: 460,
3585
- "confirm-text": e.saving ? W(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : W(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3797
+ "confirm-text": e.saving ? J(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : J(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3586
3798
  "confirm-loading": e.saving,
3587
3799
  onConfirm: r[0] ||= (e) => a("close"),
3588
3800
  onCancel: r[1] ||= (e) => a("close")
3589
3801
  }, {
3590
- default: G(() => [I("section", tl, [
3591
- I("header", null, [I("h2", null, U(W(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), I("p", null, U(W(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3592
- i.value ? (B(), F("p", nl, U(i.value), 1)) : P("v-if", !0),
3593
- I("div", {
3802
+ default: Y(() => [B("section", kl, [
3803
+ B("header", null, [B("h2", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), B("p", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3804
+ i.value ? (G(), z("p", Al, q(i.value), 1)) : R("v-if", !0),
3805
+ B("div", {
3594
3806
  class: "theme-skin-grid",
3595
3807
  role: "radiogroup",
3596
- "aria-label": W(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3597
- }, [(B(!0), F(Zi, null, ca(e.skins, (t, i) => (B(), F("button", {
3808
+ "aria-label": J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3809
+ }, [(G(!0), z(F, null, la(e.skins, (t, i) => (G(), z("button", {
3598
3810
  key: t.id,
3599
- class: na(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3811
+ class: ra(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3600
3812
  type: "button",
3601
3813
  role: "radio",
3602
3814
  "aria-checked": t.id === e.activeSkinId,
@@ -3606,9 +3818,9 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3606
3818
  onClick: (e) => a("select", t.id),
3607
3819
  onKeydown: (e) => o(e, i)
3608
3820
  }, [
3609
- I("span", {
3821
+ B("span", {
3610
3822
  class: "theme-skin-preview",
3611
- style: ia({
3823
+ style: aa({
3612
3824
  "--skin-canvas": t.theme.support.canvas,
3613
3825
  "--skin-surface": t.theme.support.surface,
3614
3826
  "--skin-text": t.theme.support.text,
@@ -3616,13 +3828,13 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3616
3828
  "--skin-accent": t.theme.brandAccent.base
3617
3829
  })
3618
3830
  }, [...r[2] ||= [
3619
- I("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3620
- I("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3621
- I("i", { class: "theme-skin-preview-card" }, null, -1)
3831
+ B("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3832
+ B("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3833
+ B("i", { class: "theme-skin-preview-card" }, null, -1)
3622
3834
  ]], 4),
3623
- I("strong", null, U(t.titleKey ? W(n).t(t.titleKey, t.title) : t.title), 1),
3624
- I("small", null, U(t.descriptionKey ? W(n).t(t.descriptionKey, t.description) : t.description), 1)
3625
- ], 42, il))), 128))], 8, rl)
3835
+ B("strong", null, q(t.titleKey ? J(n).t(t.titleKey, t.title) : t.title), 1),
3836
+ B("small", null, q(t.descriptionKey ? J(n).t(t.descriptionKey, t.description) : t.description), 1)
3837
+ ], 42, Ml))), 128))], 8, jl)
3626
3838
  ])]),
3627
3839
  _: 1
3628
3840
  }, 8, [
@@ -3632,17 +3844,17 @@ var Qc = { class: "change-own-password-fields" }, $c = {
3632
3844
  "confirm-loading"
3633
3845
  ]));
3634
3846
  }
3635
- }), [["__scopeId", "data-v-d7f8f04d"]]), ol = "workbench.theme-skin";
3636
- async function sl(e, t) {
3637
- let n = await e.restore(ol, t, { persistence: "backend" }), r = di(n).id;
3638
- return await e.set(ol, r, { persistence: "local" }), r;
3847
+ }), [["__scopeId", "data-v-d7f8f04d"]]), Pl = "workbench.theme-skin";
3848
+ async function Fl(e, t) {
3849
+ let n = await e.restore(Pl, t, { persistence: "backend" }), r = ci(n).id;
3850
+ return await e.set(Pl, r, { persistence: "local" }), r;
3639
3851
  }
3640
- async function cl(e, t, n) {
3641
- await e.set(ol, t, { persistence: "local" });
3852
+ async function Il(e, t, n) {
3853
+ await e.set(Pl, t, { persistence: "local" });
3642
3854
  try {
3643
- return await e.set(ol, t, { persistence: "backend" }), { skinId: t };
3855
+ return await e.set(Pl, t, { persistence: "backend" }), { skinId: t };
3644
3856
  } catch {
3645
- return await e.set(ol, n, { persistence: "local" }), {
3857
+ return await e.set(Pl, n, { persistence: "local" }), {
3646
3858
  skinId: n,
3647
3859
  failure: "save-failed"
3648
3860
  };
@@ -3650,7 +3862,7 @@ async function cl(e, t, n) {
3650
3862
  }
3651
3863
  //#endregion
3652
3864
  //#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
3653
- var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3865
+ var Ll = ["aria-label"], Rl = /*#__PURE__*/ P(/* @__PURE__ */ W({
3654
3866
  name: "ReadonlyRecordWorkspace",
3655
3867
  __name: "ReadonlyRecordWorkspace",
3656
3868
  props: {
@@ -3668,32 +3880,32 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3668
3880
  }
3669
3881
  },
3670
3882
  setup(e, { expose: t }) {
3671
- Si("workspace");
3672
- let n = e, r = In(), i = nt(r), a = V(), o = Zr(a, hi(0)), s = V({}), c = V({}), l = V({}), u = V(0), d = M({
3883
+ Ci("workspace");
3884
+ let n = e, r = j(), i = An(r), a = K(), o = Xr(a, pi(0)), s = K({}), c = K({}), l = K({}), u = K(0), d = I({
3673
3885
  get: () => s.value.criteria,
3674
3886
  set: (e) => {
3675
- ae({
3887
+ ie({
3676
3888
  ...s.value,
3677
3889
  criteria: e
3678
3890
  });
3679
3891
  }
3680
- }), f = M({
3892
+ }), f = I({
3681
3893
  get: () => s.value.sorts,
3682
3894
  set: (e) => {
3683
- ae({
3895
+ ie({
3684
3896
  ...s.value,
3685
3897
  sorts: e
3686
3898
  });
3687
3899
  }
3688
- }), p = V(!1), m = V(!1), h = V(""), g = M(() => JSON.stringify([
3900
+ }), p = K(!1), m = K(!1), h = K(""), g = I(() => JSON.stringify([
3689
3901
  n.view.sourceId,
3690
3902
  n.view.viewCode,
3691
3903
  n.view.scopeKey
3692
- ])), _ = M(() => n.view.querySchema), v = M(() => _.value?.criteriaComposition ?? "TREE"), y = M(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
3904
+ ])), _ = I(() => n.view.querySchema), v = I(() => _.value?.criteriaComposition ?? "TREE"), y = I(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
3693
3905
  ...e,
3694
- title: Jt(e.title ?? e.name, e.titleText, r)
3695
- }))), b = M(() => y.value.filter((e) => e.persistentControl)), x = M(() => Object.values(l.value).every((e) => e.valid));
3696
- function ee(e) {
3906
+ title: tn(e.title ?? e.name, e.titleText, r)
3907
+ }))), b = I(() => y.value.filter((e) => e.persistentControl)), x = I(() => Object.values(l.value).every((e) => e.valid));
3908
+ function S(e) {
3697
3909
  return b.value.flatMap((t) => {
3698
3910
  let n = t.persistentControl, r = e?.[n.id] ?? n.defaultValues ?? [];
3699
3911
  return r.length || mr(n.operator) ? [{
@@ -3704,34 +3916,34 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3704
3916
  }] : [];
3705
3917
  });
3706
3918
  }
3707
- let te = M(() => ee(s.value.persistentValues)), ne = M(() => b.value.map((e) => {
3919
+ let ee = I(() => S(s.value.persistentValues)), te = I(() => b.value.map((e) => {
3708
3920
  let t = e.persistentControl;
3709
3921
  return {
3710
3922
  ...t,
3711
- title: Jt(t.title, t.titleText, r),
3923
+ title: tn(t.title, t.titleText, r),
3712
3924
  field: e,
3713
3925
  values: c.value[t.id] ?? t.defaultValues ?? [],
3714
3926
  options: n.queryOptionsByField[e.name],
3715
3927
  referencePicker: n.referencePickerOf?.(e)
3716
3928
  };
3717
3929
  }));
3718
- function re() {
3719
- x.value && !T.value && ae({
3930
+ function ne() {
3931
+ x.value && !E.value && ie({
3720
3932
  ...s.value,
3721
- persistentValues: Object.fromEntries(ne.value.map((e) => [e.id, [...e.values]]))
3933
+ persistentValues: Object.fromEntries(te.value.map((e) => [e.id, [...e.values]]))
3722
3934
  });
3723
3935
  }
3724
- function ie() {
3725
- c.value = {}, l.value = {}, u.value++, ae({
3936
+ function re() {
3937
+ c.value = {}, l.value = {}, u.value++, ie({
3726
3938
  ...s.value,
3727
3939
  persistentValues: void 0
3728
3940
  });
3729
3941
  }
3730
- let S = M(() => ({
3942
+ let C = I(() => ({
3731
3943
  ...n.query,
3732
- criteria: lr([
3944
+ criteria: ur([
3733
3945
  n.query?.criteria,
3734
- ...te.value,
3946
+ ...ee.value,
3735
3947
  d.value
3736
3948
  ]),
3737
3949
  sorts: f.value ?? n.query?.sorts ?? _.value?.defaultSorts.map((e) => ({
@@ -3740,15 +3952,15 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3740
3952
  })),
3741
3953
  quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
3742
3954
  }));
3743
- function ae(e) {
3744
- let t = JSON.stringify(S.value), i = Oi(lr([
3955
+ function ie(e) {
3956
+ let t = JSON.stringify(C.value), i = ki(ur([
3745
3957
  n.query?.criteria,
3746
- ...ee(e.persistentValues),
3958
+ ...S(e.persistentValues),
3747
3959
  e.criteria
3748
3960
  ]), r);
3749
- h.value = i ?? "", !i && (s.value = e, JSON.stringify(S.value) === t && C.goPage(1));
3961
+ h.value = i ?? "", !i && (s.value = e, JSON.stringify(C.value) === t && w.goPage(1));
3750
3962
  }
3751
- let oe = M(() => JSON.stringify({
3963
+ let ae = I(() => JSON.stringify({
3752
3964
  composition: v.value,
3753
3965
  fields: _.value?.fields.map((e) => ({
3754
3966
  name: e.name,
@@ -3768,81 +3980,81 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3768
3980
  },
3769
3981
  defaultSorts: _.value?.defaultSorts
3770
3982
  }));
3771
- da([g, oe], () => {
3983
+ ma([g, ae], () => {
3772
3984
  s.value = {}, c.value = {}, l.value = {}, u.value++, p.value = !1, m.value = !1, h.value = "";
3773
3985
  }, { flush: "sync" });
3774
- function se() {
3986
+ function oe() {
3775
3987
  m.value = !0, p.value = !p.value;
3776
3988
  }
3777
- function ce(e) {
3989
+ function se(e) {
3778
3990
  h.value = "", d.value = e;
3779
3991
  }
3780
- let C = si({
3992
+ let w = Xi({
3781
3993
  view: () => n.view,
3782
- query: S,
3994
+ query: C,
3783
3995
  pageSize: n.pageSize,
3784
3996
  contentLanguage: () => i.languageTag.value
3785
- }), { result: w, loading: T, error: E, selected: D, detail: le, detailLoading: ue, detailError: O, pageNum: de, pageSize: fe } = C;
3786
- da(oe, () => {
3787
- C.search("");
3997
+ }), { result: T, loading: E, error: ce, selected: D, detail: le, detailLoading: ue, detailError: O, pageNum: de, pageSize: fe } = w;
3998
+ ma(ae, () => {
3999
+ w.search("");
3788
4000
  }, { flush: "sync" });
3789
- let pe = V("");
3790
- da(() => n.pageSize, (e) => void C.resizePage(e)), da(C.quickSearch, (e) => {
4001
+ let pe = K("");
4002
+ ma(() => n.pageSize, (e) => void w.resizePage(e)), ma(w.quickSearch, (e) => {
3791
4003
  pe.value = e;
3792
- }), da(g, () => {
4004
+ }), ma(g, () => {
3793
4005
  pe.value = "";
3794
4006
  }, { flush: "sync" });
3795
- let k = M(() => n.view.descriptor.page?.list), me = M(() => Xr(k.value?.fields)), he = M(() => n.view.descriptor.page?.detail?.display ? Ft(n.view.descriptor) : /* @__PURE__ */ new Map()), ge = M(() => !o.value), _e = M(() => k.value?.title?.text ?? k.value?.fields.title ?? n.view.viewCode), ve = M(() => D.value ? n.view.detail?.title(D.value) ?? _e.value : _e.value), ye = M(() => w.value?.pages ?? 0);
3796
- function be(e) {
3797
- return ut(Pi(e), r);
4007
+ let me = I(() => n.view.descriptor.page?.list), he = I(() => Yr(me.value?.fields)), ge = I(() => n.view.descriptor.page?.detail?.display ? Rt(n.view.descriptor) : /* @__PURE__ */ new Map()), _e = I(() => !o.value), ve = I(() => me.value?.title?.text ?? me.value?.fields.title ?? n.view.viewCode), ye = I(() => D.value ? n.view.detail?.title(D.value) ?? ve.value : ve.value), be = I(() => T.value?.pages ?? 0);
4008
+ function xe(e) {
4009
+ return k(A(e), r);
3798
4010
  }
3799
4011
  return t({
3800
- refresh: C.refresh,
3801
- closeDetail: C.closeDetail
3802
- }), (t, i) => (B(), F("section", {
4012
+ refresh: w.refresh,
4013
+ closeDetail: w.closeDetail
4014
+ }), (t, i) => (G(), z("section", {
3803
4015
  ref_key: "host",
3804
4016
  ref: a,
3805
4017
  class: "readonly-record-workspace",
3806
- "aria-label": _e.value
3807
- }, [L(_r, {
4018
+ "aria-label": ve.value
4019
+ }, [H(_r, {
3808
4020
  "explorer-count": 0,
3809
- "detail-surface": !!W(D) && ge.value,
3810
- "list-surface": !W(D) || !ge.value
4021
+ "detail-surface": !!J(D) && _e.value,
4022
+ "list-surface": !J(D) || !_e.value
3811
4023
  }, {
3812
- default: G(() => [L(Wt, {
3813
- title: _e.value,
3814
- subtitle: k.value?.subtitle?.text,
4024
+ default: Y(() => [H(qt, {
4025
+ title: ve.value,
4026
+ subtitle: me.value?.subtitle?.text,
3815
4027
  "title-action-icon": "reload",
3816
- "title-action-title": W(r).t("platform.read-view.refresh", "刷新"),
3817
- "title-action-disabled": W(T),
4028
+ "title-action-title": J(r).t("platform.read-view.refresh", "刷新"),
4029
+ "title-action-disabled": J(E),
3818
4030
  "quick-search-visible": e.quickSearch && (_.value?.quickSearch.enabled ?? !0),
3819
4031
  "quick-search-value": pe.value,
3820
- "quick-search-placeholder": k.value?.searchPlaceholder,
3821
- "quick-search-disabled": W(T),
3822
- columns: me.value,
3823
- rows: W(w)?.records ?? [],
4032
+ "quick-search-placeholder": me.value?.searchPlaceholder,
4033
+ "quick-search-disabled": J(E),
4034
+ columns: he.value,
4035
+ rows: J(T)?.records ?? [],
3824
4036
  "row-key": (t) => e.view.recordKey(t),
3825
- "selected-row-key": W(D) ? e.view.recordKey(W(D)) : void 0,
4037
+ "selected-row-key": J(D) ? e.view.recordKey(J(D)) : void 0,
3826
4038
  "clickable-rows": !!e.view.detail,
3827
- "table-visible": !W(T) && !W(E) && !!W(w)?.records.length,
4039
+ "table-visible": !J(E) && !J(ce) && !!J(T)?.records.length,
3828
4040
  pageable: "",
3829
- total: W(w)?.total ?? 0,
3830
- "total-known": W(w)?.totalKnown ?? !0,
3831
- "page-num": W(de),
3832
- "page-size": W(fe),
3833
- pages: ye.value,
3834
- "pagination-disabled": W(T) || !W(w),
3835
- onTitleAction: W(C).refresh,
4041
+ total: J(T)?.total ?? 0,
4042
+ "total-known": J(T)?.totalKnown ?? !0,
4043
+ "page-num": J(de),
4044
+ "page-size": J(fe),
4045
+ pages: be.value,
4046
+ "pagination-disabled": J(E) || !J(T),
4047
+ onTitleAction: J(w).refresh,
3836
4048
  "onUpdate:quickSearchValue": i[5] ||= (e) => pe.value = e,
3837
- onQuickSearch: W(C).search,
3838
- onPageChange: W(C).goPage,
3839
- onPageSizeChange: W(C).resizePage,
3840
- onRowClick: i[6] ||= (e) => W(C).select(e)
3841
- }, Qi({
3842
- persistentQueries: G(() => [L(Hn, {
3843
- controls: ne.value,
4049
+ onQuickSearch: J(w).search,
4050
+ onPageChange: J(w).goPage,
4051
+ onPageSizeChange: J(w).resizePage,
4052
+ onRowClick: i[6] ||= (e) => J(w).select(e)
4053
+ }, ea({
4054
+ persistentQueries: Y(() => [H(Un, {
4055
+ controls: te.value,
3844
4056
  "reset-key": `${g.value}:${u.value}`,
3845
- disabled: W(T),
4057
+ disabled: J(E),
3846
4058
  valid: x.value,
3847
4059
  "onUpdate:values": i[0] ||= (e, t) => c.value = {
3848
4060
  ...c.value,
@@ -3852,25 +4064,25 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3852
4064
  ...l.value,
3853
4065
  [e]: t
3854
4066
  },
3855
- onApply: re,
3856
- onReset: ie
4067
+ onApply: ne,
4068
+ onReset: re
3857
4069
  }, null, 8, [
3858
4070
  "controls",
3859
4071
  "reset-key",
3860
4072
  "disabled",
3861
4073
  "valid"
3862
- ]), H(t.$slots, "queries", {}, void 0, !0)]),
3863
- queryControls: G(() => [L(Tr, {
4074
+ ]), ua(t.$slots, "queries", {}, void 0, !0)]),
4075
+ queryControls: Y(() => [H(Tr, {
3864
4076
  "sort-visible": !!_.value,
3865
4077
  "sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
3866
4078
  sorts: f.value,
3867
4079
  "filter-visible": v.value !== "NONE" && y.value.some((e) => v.value !== "FLAT_AND" || !e.persistentControl),
3868
- "filter-title": v.value === "FLAT_AND" ? W(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : W(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
4080
+ "filter-title": v.value === "FLAT_AND" ? J(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : J(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
3869
4081
  expanded: p.value,
3870
- count: W(Gr)(d.value),
3871
- disabled: W(T),
4082
+ count: J(Wr)(d.value),
4083
+ disabled: J(E),
3872
4084
  onSortChange: i[2] ||= (e) => f.value = e,
3873
- onToggle: se
4085
+ onToggle: oe
3874
4086
  }, null, 8, [
3875
4087
  "sort-visible",
3876
4088
  "sort-fields",
@@ -3881,24 +4093,24 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3881
4093
  "count",
3882
4094
  "disabled"
3883
4095
  ])]),
3884
- operations: G(() => [H(t.$slots, "operations", { refresh: W(C).refresh }, void 0, !0)]),
3885
- beforeTable: G(() => [h.value ? (B(), N(W(Xt), {
4096
+ operations: Y(() => [ua(t.$slots, "operations", { refresh: J(w).refresh }, void 0, !0)]),
4097
+ beforeTable: Y(() => [h.value ? (G(), L(J($t), {
3886
4098
  key: 0,
3887
4099
  message: h.value
3888
- }, null, 8, ["message"])) : P("v-if", !0), W(E) ? (B(), N(W(Xt), {
4100
+ }, null, 8, ["message"])) : R("v-if", !0), J(ce) ? (G(), L(J($t), {
3889
4101
  key: 1,
3890
- message: be(W(E))
3891
- }, null, 8, ["message"])) : W(T) ? (B(), N(W(en), { key: 2 })) : W(w)?.records.length ? P("v-if", !0) : (B(), N(W(qi), {
4102
+ message: xe(J(ce))
4103
+ }, null, 8, ["message"])) : J(E) ? (G(), L(J(rn), { key: 2 })) : J(T)?.records.length ? R("v-if", !0) : (G(), L(J(Ji), {
3892
4104
  key: 3,
3893
- description: W(r).t("platform.read-view.empty", "暂无符合条件的记录")
4105
+ description: J(r).t("platform.read-view.empty", "暂无符合条件的记录")
3894
4106
  }, null, 8, ["description"]))]),
3895
- cell: G(({ column: n, record: r }) => [H(t.$slots, "cell", {
3896
- column: me.value.find((e) => e.key === n.key),
4107
+ cell: Y(({ column: n, record: r }) => [ua(t.$slots, "cell", {
4108
+ column: he.value.find((e) => e.key === n.key),
3897
4109
  record: r
3898
- }, () => [L(ci, {
3899
- column: me.value.find((e) => e.key === n.key),
4110
+ }, () => [H(ai, {
4111
+ column: he.value.find((e) => e.key === n.key),
3900
4112
  record: r,
3901
- reading: W(w)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
4113
+ reading: J(T)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
3902
4114
  }, null, 8, [
3903
4115
  "column",
3904
4116
  "record",
@@ -3907,18 +4119,18 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3907
4119
  _: 2
3908
4120
  }, [m.value ? {
3909
4121
  name: "conditions",
3910
- fn: G(() => [fa(I("section", null, [(B(), N(un, {
4122
+ fn: Y(() => [ha(B("section", null, [(G(), L(fn, {
3911
4123
  key: g.value,
3912
4124
  fields: y.value,
3913
- conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...te.value],
4125
+ conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...ee.value],
3914
4126
  "excluded-field-names": v.value === "FLAT_AND" ? b.value.map((e) => e.name) : [],
3915
4127
  "option-items-by-field": e.queryOptionsByField,
3916
4128
  "reference-contexts": {},
3917
4129
  "reference-picker-of": e.referencePickerOf,
3918
- disabled: W(T),
4130
+ disabled: J(E),
3919
4131
  composition: v.value === "FLAT_AND" ? "FLAT_AND" : "TREE",
3920
- onApply: ce,
3921
- onClear: i[3] ||= (e) => ce(void 0),
4132
+ onApply: se,
4133
+ onClear: i[3] ||= (e) => se(void 0),
3922
4134
  onValidation: i[4] ||= (e) => h.value = e
3923
4135
  }, null, 8, [
3924
4136
  "fields",
@@ -3928,7 +4140,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3928
4140
  "reference-picker-of",
3929
4141
  "disabled",
3930
4142
  "composition"
3931
- ]))], 512), [[ua, p.value]])]),
4143
+ ]))], 512), [[pa, p.value]])]),
3932
4144
  key: "0"
3933
4145
  } : void 0]), 1032, [
3934
4146
  "title",
@@ -3955,32 +4167,32 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3955
4167
  "onQuickSearch",
3956
4168
  "onPageChange",
3957
4169
  "onPageSizeChange"
3958
- ]), L(yi, {
3959
- open: !!W(D),
3960
- docked: ge.value,
3961
- title: ve.value,
4170
+ ]), H(bi, {
4171
+ open: !!J(D),
4172
+ docked: _e.value,
4173
+ title: ye.value,
3962
4174
  dismissal: "dismissible",
3963
- onClose: W(C).closeDetail
3964
- }, Qi({
3965
- default: G(() => [W(O) ? (B(), N(W(Xt), {
4175
+ onClose: J(w).closeDetail
4176
+ }, ea({
4177
+ default: Y(() => [J(O) ? (G(), L(J($t), {
3966
4178
  key: 0,
3967
- message: be(W(O))
3968
- }, null, 8, ["message"])) : W(ue) ? (B(), N(W(en), { key: 1 })) : W(D) && W(le) ? (B(), F(Zi, { key: 2 }, [L(ar, {
3969
- record: W(le),
3970
- fields: he.value
3971
- }, null, 8, ["record", "fields"]), H(t.$slots, "detail", {
3972
- record: W(D),
3973
- detail: W(le),
3974
- refresh: W(C).refresh
3975
- }, void 0, !0)], 64)) : P("v-if", !0)]),
4179
+ message: xe(J(O))
4180
+ }, null, 8, ["message"])) : J(ue) ? (G(), L(J(rn), { key: 1 })) : J(D) && J(le) ? (G(), z(F, { key: 2 }, [H(or, {
4181
+ record: J(le),
4182
+ fields: ge.value
4183
+ }, null, 8, ["record", "fields"]), ua(t.$slots, "detail", {
4184
+ record: J(D),
4185
+ detail: J(le),
4186
+ refresh: J(w).refresh
4187
+ }, void 0, !0)], 64)) : R("v-if", !0)]),
3976
4188
  _: 2
3977
- }, [W(D) && W(le) && !W(ue) && !W(O) ? {
4189
+ }, [J(D) && J(le) && !J(ue) && !J(O) ? {
3978
4190
  name: "operation",
3979
- fn: G(() => [H(t.$slots, "detailOperations", {
3980
- record: W(D),
3981
- detail: W(le),
3982
- refresh: W(C).refresh,
3983
- close: W(C).closeDetail
4191
+ fn: Y(() => [ua(t.$slots, "detailOperations", {
4192
+ record: J(D),
4193
+ detail: J(le),
4194
+ refresh: J(w).refresh,
4195
+ close: J(w).closeDetail
3984
4196
  }, void 0, !0)]),
3985
4197
  key: "0"
3986
4198
  } : void 0]), 1032, [
@@ -3990,8 +4202,322 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3990
4202
  "onClose"
3991
4203
  ])]),
3992
4204
  _: 3
3993
- }, 8, ["detail-surface", "list-surface"])], 8, ll));
4205
+ }, 8, ["detail-surface", "list-surface"])], 8, Ll));
3994
4206
  }
3995
4207
  }), [["__scopeId", "data-v-e13b15ec"]]);
3996
4208
  //#endregion
3997
- export { Li as AppError, Nc as AppWorkbenchShell, Ln as AssistantCapabilityUsageError, Ct as AssistantConversationInterruptedError, Wn as AssistantEffectInterruptedError, or as AssistantOperationRejectedError, or as OperationRejectedError, xn as BusinessNotificationPanel, el as ChangeOwnPasswordDialog, ct as DateTimeText, wi as DraftUpdateRejectedError, Jr as DrawerOperationBar, ge as DynamicModuleWorkspaceDetailView, Cr as FileSizeText, Wr as FileTransferUploadCancelledError, cr as FileTransferUploader, Ie as LanguageSelector, Xc as LoginView, _r as ManagementWorkspace, jn as ModuleContextProvider, kt as ModuleHttpProvider, D as ModuleReferenceRecordDetailBrowser, ur as OperationUsageError, Dc as PlatformAdminOutlet, Ds as PlatformAdminRouteOutlet, ul as ReadonlyRecordWorkspace, Bi as ReadonlyReferenceValue, At as RecordDetailDrawer, Xn as RecordDetailExtensionSection, ar as RecordDetailFields, xt as RecordDetailPanel, ci as RecordQueryListCell, Wt as RecordQueryListSurface, br as ReferencePicker, Ci as ReferencePickerReadError, Ni as ReferenceRecordDetailBrowser, $n as SingleImageFileReferenceField, fn as StaleAssistantInvocationError, al as ThemeSkinPreferencesDialog, Di as UiButton, _n as UiDataTable, Fr as UiDatePicker, Ot as UiDropdown, qi as UiEmpty, Xt as UiError, pr as UiIcon, j as UiInput, gt as UiLanguageProvider, ii as UiSelect, Nt as UiSidePanel, Pn as UiSwitch, yr as UiTextArea, wt as UiThemeProvider, it as UiTree, pn as UiTreeSelect, rs as VueQueryPlugin, Je as Workbench, Te as WorkbenchAssistantPanel, i as WorkbenchMenu, Me as WorkbenchOutlet, De as WorkspaceViewOutlet, Kr as actionResultData, Hs as activeTabUrlOf, Xs as arrangeLockedMenuTabs, Vt as boundedAssistantConversationHistory, d as buildWorkbenchMegaMenuModel, Wi as businessContentGenerationBatch, nn as businessContentLabel, nt as businessContentLanguageContext, kn as businessContentLanguages, ir as businessContentPath, Et as businessContentReadHeaders, An as businessNotificationExpired, Ti as canQueryRecycleBin, p as canonicalDynamicModulePath, zi as changeBusinessContentTranslation, _ as clearAuthToken, xr as codeOperationErrorMessage, ks as configureAuthenticationRecovery, On as configureModuleContext, We as configureModulePageEnhancementContributions, te as configureModulePageEnhancements, Zc as configureUserPreferencePersistence, Ce as configureWorkspaceViewContributions, et as confirmAction, xe as connectAppRealtime, Dr as connectRealtimeBusinessEvents, qn as connectRealtimeBusinessNotifications, Ai as connectRealtimeDataChanges, Hi as connectRealtimeUserNotifications, y as constructionPlanLimits, nr as contextDataChangeChannel, Xe as createAssistantCapabilitySelection, ss as createAssistantConversationClient, ui as createAssistantDisplayObservations, ti as createAssistantOperationConfirmation, hr as createAssistantSurfaceRegistry, Dn as createAssistantTurnRequester, qe as createAuthClient, js as createBackendHttpClient, Ei as createBrowserFileTransferUpload, zr as createCodeTextPresentation, os as createConstructionPlanClient, re as createDataChangeDispatcher, Pt as createDataExchangeClient, dn as createHttpClient, En as createLanguageContext, Vr as createLanguagePreferenceController, le as createLoginContextClient, Gn as createManagedDetailRelationClient, Ge as createMenuClient, se as createMenuTab, Fn as createModuleContext, mn as createModuleCrudClient, a as createModulePageEnhancementRegistry, Ze as createModuleTreeClient, Tt as createModuleTreeContext, gr as createNavigatorReferenceCrudClient, xi as createNavigatorReferenceTreeClient, Hr as createOperationConfirmation, ne as createPageBootstrapClient, is as createQueryClient, Ri as createRealtimeClient, Ar as createReferenceResolveClient, o as createSessionClient, tr as createSseParser, $r as createStaticModuleCrudClient, mi as createStaticModuleTreeClient, Nr as createStaticResourceCrudClient, Qn as createStaticResourceTreeClient, _e as createUuid, ie as createWorkbenchMenuNodes, Zt as createWorkflowAdminClient, tn as createWorkflowClient, ln as createWorkflowDefinitionClient, ze as createWorkspaceViewDescriptor, fe as createWorkspaceViewRegistry, bn as dataChangeChannel, Ht as defaultUiThemeSkinId, Yi as defineWorkspaceView, r as disconnectAppRealtime, me as dismissWorkspaceViewDescriptor, Rn as displayModuleRuntime, oe as dynamicModuleAliasFromPath, b as effectiveAuthToken, bi as emptyAssistantCapabilityInputSchema, ae as filterWorkbenchMenuNodes, ce as findFirstNavigationMenu, u as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, je as firstDeepRootIdOf, x as getMenuNavigationTarget, ei as hasExecutableDetailRelationMutationContract, gi as hasExecutableDetailRelationQueryContract, dr as hasRecycleBinAbility, st as imConversationMessageChannel, Fi as imMessageSendCommand, Dt as invokeBusinessNotificationRecordAction, Ye as isHttpStreamClient, ys as isPlatformAdminRoutePage, n as isTabMenuTarget, Qe as isTextReference, yn as isUnexpectedPlatformError, pe as isWindowMenuTarget, hi as listDetailWorkspaceMinWidth, Sn as loadBusinessContentGeneration, lt as loadBusinessContentHistory, Ii as loadBusinessContentReading, Tn as loadBusinessContentSources, _t as loadBusinessContentTranslationHistory, Mn as loadLanguageCatalog, he as lookupOperationReceipt, ot as modelFailureMessage, Sr as moduleAbilityCodes, wn as moduleDataChangeChannel, He as modulePageWorkspaceViews, c as normalizeChangeSet, Pi as normalizeError, Ue as normalizeMenuMineResponse, ni as normalizeModuleListResponse, vi as normalizeModulePageResponse, sr as normalizeModuleRecord, Ur as normalizeModuleTreeResponse, ht as organizationPublicDataChangeChannel, dt as organizationPublicNotificationChannel, Ir as originalPresentation, qt as pageActionEntryDescription, vn as pageActionEntryTitle, Ji as pageActionEntryVisible, at as pageActionIntent, s as pageAssistantCatalog, Le as pageDescriptorFromUrl, A as pageDescriptorToUrl, Ne as pageInstanceKeyOf, w as pagePublicationDigest, Qr as parseEmptyAssistantCapabilityInput, Ve as parseOperationReceiptReference, gs as platformAdminModuleRoutes, _s as platformAdminRouteLayouts, hs as platformAdminRoutePrefixes, ms as platformAdminRoutes, St as platformCodeTextOriginal, Bt as platformCodeTextReference, Cn as platformErrorCodes, li as platformLanguageContext, rn as platformPingCommand, pt as prepareBusinessContentTranslation, Jn as presentPlatformError, ji as presentPlatformInfo, Ui as presentPlatformMessage, rr as presentPlatformSuccess, S as presentWorkbenchRealtimeStatus, Jt as presentationLabel, pi as provideAssistantSurfaceHost, Be as provideCurrentUserContext, It as provideLanguageContext, Ut as provideModuleContextConfig, jr as provideRecordReadRefreshGuard, k as provideWorkbenchNavigation, tt as provideWorkspaceUnsavedStateRegistrar, Re as provideWorkspaceViewHost, as as queryKeys, Nn as readAssistantAvailability, Br as realtimeDestinations, $e as realtimeMessageTypes, Qt as recordBusinessContentArray, on as recordBusinessContentText, Lr as recordDataChangeChannel, vt as recordPresentationLabel, jt as recordPresentationText, C as refreshModulePageList, bt as refreshWorkflowRecordActions, er as registerUiLanguageLocales, rc as removeLockedMenuTabs, an as requestBusinessContentGeneration, mt as resolveGlobalErrorPresentation, ai as resolveOperationErrorMessage, ye as resolvePageDescriptor, vs as resolvePlatformAdminRoute, Gt as resolvePresentationText, Ft as resolveRecordDetailFields, Xr as resolveRecordQueryListColumns, cs as resolveRecordReadEntry, kr as resolveWebActionResult, Er as resolveWebActionResultMessage, Ae as resolveWorkspaceView, Yt as resourceDataChangeChannel, $t as resourceRecordDataChangeChannel, _i as restoreAssistantOperationReceipt, wc as restoreLockedTabPreference, Qs as restoreLockedWorkbenchTabs, sl as restoreThemeSkinPreference, Us as restoreWorkbenchStartupStateFromUrl, ke as routeUrlWithOpenOptions, Lt as runAssistantConversation, Bn as runAssistantStep, Mr as sameAssistantInvocationToken, l as saveAuthSessionId, f as saveAuthToken, Tc as saveLockedTabPreference, cl as saveThemeSkinPreference, sn as sessionActivityCommand, h as storedAuthSessionId, ee as storedAuthToken, be as subscribeAppBusinessEvents, g as subscribeAppDataChanges, ve as syncModulePageWorkspaceViewContributions, E as tabIdentityKeyOf, Oe as tabKeyOf, yt as tenantPublicDataChangeChannel, Mt as tenantPublicNotificationChannel, zn as textReferenceMatchesOriginal, ol as themeSkinPreferenceKey, hn as translatedPresentation, Fe as tryPageDescriptorFromUrl, di as uiThemeSkinById, Rt as uiThemeSkins, fr as unwrapResponsePayload, tc as updateLockedMenuTabs, ri as uploadedFileId, Zn as useAssistantSurfaceHost, Mi as useBusinessContentGenerationBatch, Yr as useBusinessContentReading, Ke as useCurrentUserContext, In as useLanguageContext, fi as useModuleContext, zt as useModuleHttpClient, Vn as useModuleTreeContext, Es as usePageDescriptor, Ts as usePageRoute, Or as useRecordReadRefreshGuard, Yn as useRecordReadRefreshRevision, si as useRecordReadSession, we as useWorkbenchNavigation, Zr as useWorkspaceDetailSurface, de as useWorkspaceViewHost, Ee as useWorkspaceViewNavigation, Rr as useWorkspaceViewUnsavedState, Kt as userBusinessEventChannel, gn as userBusinessNotificationChannel, ut as userFacingErrorMessage, Ki as userImMessageChannel, rt as userNotificationChannel, qr as userPreferences, Kn as webDataChangeKey, Pr as webDataChangeTypes, ki as webDataChanges, vr as withHttpHeaders, Un as withLanguageContext, O as withPageInstanceKey, Vi as withWebActionResultChanges, Gi as withoutRecordPresentation };
4209
+ //#region src/app/useExternalLoginHost.ts
4210
+ function zl(e) {
4211
+ let t = j(), n = K(), r = K(!1), i, a = K(), o = K(!1);
4212
+ async function s() {
4213
+ let r = a.value;
4214
+ if (r && !o.value) {
4215
+ o.value = !0, n.value = void 0;
4216
+ try {
4217
+ let i = await e.client.confirm(r.pending.providerId, {
4218
+ state: r.pending.state,
4219
+ browserProof: r.pending.browserProof
4220
+ });
4221
+ 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 = () => $c(i, t);
4222
+ } catch (e) {
4223
+ n.value = () => k(A(e), t);
4224
+ } finally {
4225
+ o.value = !1;
4226
+ }
4227
+ }
4228
+ }
4229
+ async function c() {
4230
+ r.value = !0, n.value = void 0;
4231
+ try {
4232
+ await e.router.isReady();
4233
+ let r = e.router.currentRoute.value, i = e.callbackPath ?? "/", o = r.path === i ? Qc(r.query) : void 0;
4234
+ if (!o) return !1;
4235
+ let s = o.pending;
4236
+ if (await e.router.replace({
4237
+ path: i,
4238
+ query: s?.purpose === "login" && s.tenantId ? { _muyunTenantId: s.tenantId } : {},
4239
+ hash: ""
4240
+ }), !s) return !1;
4241
+ let c = await e.client.complete(s.providerId, {
4242
+ state: s.state,
4243
+ browserProof: s.browserProof,
4244
+ parameters: o.parameters
4245
+ });
4246
+ return c.status === "confirmationRequired" && c.confirmation && s.purpose === "login" ? (a.value = {
4247
+ pending: s,
4248
+ confirmation: c.confirmation
4249
+ }, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (ir(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => $c(c, t), s.purpose === "login" && !e.signedIn() || (Wi(n.value()), !1));
4250
+ } catch (r) {
4251
+ return n.value = () => k(A(r), t), !e.signedIn() || (Wi(n.value()), !1);
4252
+ } finally {
4253
+ r.value = !1;
4254
+ }
4255
+ }
4256
+ return {
4257
+ client: e.client,
4258
+ confirmation: I(() => a.value?.confirmation),
4259
+ confirming: I(() => o.value),
4260
+ confirmProvisioning: s,
4261
+ cancelProvisioning() {
4262
+ o.value || (a.value = void 0, n.value = void 0);
4263
+ },
4264
+ error: I(() => n.value?.()),
4265
+ completing: I(() => r.value),
4266
+ completeReturn() {
4267
+ return i ||= c().finally(() => {
4268
+ i = void 0;
4269
+ }), i;
4270
+ }
4271
+ };
4272
+ }
4273
+ //#endregion
4274
+ //#region src/app/ExternalIdentityBindings.vue?vue&type=script&setup=true&lang.ts
4275
+ var Bl = {
4276
+ key: 0,
4277
+ class: "external-bindings"
4278
+ }, Vl = {
4279
+ key: 1,
4280
+ class: "external-bindings-error"
4281
+ }, Hl = {
4282
+ key: 2,
4283
+ class: "external-bindings-list"
4284
+ }, Ul = { class: "external-bindings-provider" }, Wl = { class: "external-bindings-account" }, Gl = { class: "external-bindings-provider" }, Kl = { class: "external-bindings-account muted" }, ql = /*#__PURE__*/ P(/* @__PURE__ */ W({
4285
+ name: "ExternalIdentityBindings",
4286
+ __name: "ExternalIdentityBindings",
4287
+ props: {
4288
+ client: {},
4289
+ token: {}
4290
+ },
4291
+ setup(e) {
4292
+ let t = e, n = j(), r = K();
4293
+ function i() {
4294
+ r.value && Xc(r.value.state), r.value = void 0;
4295
+ }
4296
+ let a = K(), o = K(!1), s = K(!1), c = K();
4297
+ sa(l);
4298
+ async function l() {
4299
+ c.value = void 0;
4300
+ try {
4301
+ a.value = await t.client.identities(t.token);
4302
+ } catch (e) {
4303
+ if (e instanceof xn && e.status === 404) {
4304
+ o.value = !0;
4305
+ return;
4306
+ }
4307
+ c.value = () => k(A(e), n);
4308
+ }
4309
+ }
4310
+ async function u(e) {
4311
+ s.value = !0, c.value = void 0;
4312
+ try {
4313
+ i();
4314
+ let n = await t.client.startBind(e.providerId, t.token);
4315
+ Yc(n, {
4316
+ providerId: e.providerId,
4317
+ purpose: "bind"
4318
+ }), n.qrCode ? (r.value = n, s.value = !1) : Zc(n.authorizationUrl);
4319
+ } catch (e) {
4320
+ c.value = () => k(A(e), n), s.value = !1;
4321
+ }
4322
+ }
4323
+ async function d(e) {
4324
+ if (await rt({
4325
+ title: n.t("platform.screen.ExternalIdentityBindings.unbind-title", "解除外部账号绑定"),
4326
+ content: n.t("platform.screen.ExternalIdentityBindings.unbind-content", "解除后将无法再通过 {provider} 登录当前账号。", { provider: e.providerTitle }),
4327
+ danger: !0
4328
+ }, n)) {
4329
+ s.value = !0, c.value = void 0;
4330
+ try {
4331
+ await t.client.unbind(e.id, t.token), await l();
4332
+ } catch (e) {
4333
+ c.value = () => k(A(e), n);
4334
+ } finally {
4335
+ s.value = !1;
4336
+ }
4337
+ }
4338
+ }
4339
+ return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (G(), z("section", Bl, [
4340
+ r.value ? (G(), L(ul, {
4341
+ key: r.value.state,
4342
+ start: r.value,
4343
+ onClose: i
4344
+ }, null, 8, ["start"])) : R("v-if", !0),
4345
+ B("h3", null, q(J(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
4346
+ c.value ? (G(), z("p", Vl, q(c.value()), 1)) : R("v-if", !0),
4347
+ a.value ? (G(), z("ul", Hl, [(G(!0), z(F, null, la(a.value.bindings, (e) => (G(), z("li", { key: e.id }, [
4348
+ B("span", Ul, q(e.providerTitle), 1),
4349
+ B("span", Wl, q(e.displayName || e.externalUserId), 1),
4350
+ H(J(M), {
4351
+ size: "small",
4352
+ danger: "",
4353
+ disabled: s.value,
4354
+ onClick: (t) => d(e)
4355
+ }, {
4356
+ default: Y(() => [V(q(J(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
4357
+ _: 1
4358
+ }, 8, ["disabled", "onClick"])
4359
+ ]))), 128)), (G(!0), z(F, null, la(a.value.bindableProviders, (e) => (G(), z("li", { key: e.providerId }, [
4360
+ B("span", Gl, q(e.title), 1),
4361
+ B("span", Kl, q(J(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
4362
+ H(J(M), {
4363
+ size: "small",
4364
+ loading: s.value,
4365
+ onClick: (t) => u(e)
4366
+ }, {
4367
+ default: Y(() => [V(q(J(n).t("platform.screen.ExternalIdentityBindings.bind", "去绑定")), 1)]),
4368
+ _: 1
4369
+ }, 8, ["loading", "onClick"])
4370
+ ]))), 128))])) : R("v-if", !0)
4371
+ ])) : R("v-if", !0);
4372
+ }
4373
+ }), [["__scopeId", "data-v-b3d09e12"]]), Jl = {
4374
+ key: 0,
4375
+ class: "profile-loading"
4376
+ }, Yl = {
4377
+ key: 0,
4378
+ class: "profile-hero"
4379
+ }, Xl = { class: "profile-avatar" }, Zl = { class: "profile-identity" }, Ql = { class: "profile-kicker" }, $l = { class: "profile-number" }, eu = { class: "profile-tags" }, tu = { class: "profile-account" }, nu = {
4380
+ key: 1,
4381
+ class: "profile-body"
4382
+ }, ru = { class: "profile-card profile-card--readonly" }, iu = { class: "profile-card-heading" }, au = { class: "profile-details" }, ou = { class: "profile-card profile-card--editable" }, su = { class: "profile-card-heading" }, cu = { class: "profile-contact-fields" }, lu = {
4383
+ key: 0,
4384
+ class: "profile-hint"
4385
+ }, uu = {
4386
+ key: 2,
4387
+ class: "profile-empty-state"
4388
+ }, du = { class: "profile-empty-monogram" }, fu = {
4389
+ key: 2,
4390
+ class: "profile-error"
4391
+ }, pu = /*#__PURE__*/ P(/* @__PURE__ */ W({
4392
+ name: "CurrentUserProfileDialog",
4393
+ __name: "CurrentUserProfileDialog",
4394
+ props: {
4395
+ open: {
4396
+ type: Boolean,
4397
+ default: !1
4398
+ },
4399
+ profile: { default: void 0 },
4400
+ loading: {
4401
+ type: Boolean,
4402
+ default: !1
4403
+ },
4404
+ saving: {
4405
+ type: Boolean,
4406
+ default: !1
4407
+ },
4408
+ error: { default: void 0 },
4409
+ externalLoginClient: { default: void 0 },
4410
+ authToken: { default: void 0 }
4411
+ },
4412
+ emits: ["close", "submit"],
4413
+ setup(e, { emit: t }) {
4414
+ let n = j(), r = e, i = t, a = K(""), o = K(""), s = K();
4415
+ ma(() => r.profile, (e) => {
4416
+ a.value = e?.employee?.mobile ?? "", o.value = e?.employee?.email ?? "", s.value = e?.employee?.avatarAssetId;
4417
+ }, { immediate: !0 });
4418
+ let c = I(() => r.profile?.employee), l = I(() => Ot({ moduleAlias: "iam.employee" })), u = I(() => c.value?.positions ?? []), d = {
4419
+ fieldRef: { fieldName: "avatarAssetId" },
4420
+ allowedMediaTypes: [
4421
+ "image/png",
4422
+ "image/jpeg",
4423
+ "image/gif",
4424
+ "image/webp"
4425
+ ],
4426
+ maxFileSizeBytes: 1048576,
4427
+ maxFiles: 1,
4428
+ storagePolicy: "DATABASE_INLINE",
4429
+ uploadAvailable: !0,
4430
+ readAvailable: !0
4431
+ }, f = I(() => ({
4432
+ id: c.value?.id,
4433
+ avatarAssetId: s.value
4434
+ }));
4435
+ return (t, r) => (G(), L(J(un), {
4436
+ open: e.open,
4437
+ title: J(n).t("platform.screen.CurrentUserProfileDialog.my-profile", "个人信息"),
4438
+ width: 640,
4439
+ class: "current-user-profile-dialog",
4440
+ "confirm-text": c.value?.contactEditable ? J(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : J(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭"),
4441
+ "confirm-loading": e.saving,
4442
+ "confirm-disabled": e.loading,
4443
+ onConfirm: r[3] ||= (e) => c.value?.contactEditable ? i("submit", {
4444
+ mobile: a.value,
4445
+ email: o.value,
4446
+ avatarAssetId: s.value
4447
+ }) : i("close"),
4448
+ onCancel: r[4] ||= (e) => i("close")
4449
+ }, {
4450
+ default: Y(() => [e.loading ? (G(), z("p", Jl, q(J(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (G(), z(F, { key: 1 }, [
4451
+ c.value ? (G(), z("section", Yl, [
4452
+ B("div", Xl, [H(J($n), {
4453
+ "hide-label": "",
4454
+ label: J(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
4455
+ value: s.value,
4456
+ record: f.value,
4457
+ context: l.value,
4458
+ definition: d,
4459
+ disabled: !c.value.contactEditable || e.saving,
4460
+ "form-session-key": c.value.id,
4461
+ "upload-hint": J(n).t("platform.screen.CurrentUserProfileDialog.png-jpg-gif-and-webp-are-supported-up", "支持 PNG、JPG、GIF、WebP,文件不超过 1024 KB。"),
4462
+ "onUpdate:value": r[0] ||= (e) => s.value = e
4463
+ }, null, 8, [
4464
+ "label",
4465
+ "value",
4466
+ "record",
4467
+ "context",
4468
+ "disabled",
4469
+ "form-session-key",
4470
+ "upload-hint"
4471
+ ])]),
4472
+ B("div", Zl, [
4473
+ B("p", Ql, q(J(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
4474
+ B("h2", null, q(c.value.title || J(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
4475
+ B("p", $l, q(c.value.employeeNo || J(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
4476
+ B("div", eu, [B("span", null, q(c.value.organizationTitle || c.value.organizationId || J(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), B("span", null, q(c.value.departmentTitle || c.value.departmentId || J(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
4477
+ ]),
4478
+ B("aside", tu, [
4479
+ B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
4480
+ B("strong", null, q(e.profile?.username || "—"), 1),
4481
+ B("small", null, q(e.profile?.timeZone || J(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
4482
+ ])
4483
+ ])) : R("v-if", !0),
4484
+ c.value ? (G(), z("section", nu, [B("div", ru, [B("div", iu, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), B("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), B("dl", au, [
4485
+ B("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
4486
+ B("dd", null, q(c.value.organizationTitle || c.value.organizationId || "—") + " / " + q(c.value.departmentTitle || c.value.departmentId || "—"), 1),
4487
+ B("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
4488
+ B("dd", null, q(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? J(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
4489
+ ])]), B("div", ou, [
4490
+ B("div", su, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), B("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
4491
+ B("div", cu, [B("label", null, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), H(J(N), {
4492
+ value: a.value,
4493
+ disabled: !c.value.contactEditable || e.saving,
4494
+ "onUpdate:value": r[1] ||= (e) => a.value = e
4495
+ }, null, 8, ["value", "disabled"])]), B("label", null, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.email", "邮箱")), 1), H(J(N), {
4496
+ value: o.value,
4497
+ disabled: !c.value.contactEditable || e.saving,
4498
+ "onUpdate:value": r[2] ||= (e) => o.value = e
4499
+ }, null, 8, ["value", "disabled"])])]),
4500
+ c.value.contactEditable ? R("v-if", !0) : (G(), z("p", lu, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
4501
+ ])])) : (G(), z("section", uu, [
4502
+ B("span", du, q((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1),
4503
+ B("h2", null, q(e.profile?.username || J(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1),
4504
+ B("p", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-account-is-not-linked-to-an-employee", "此账号尚未绑定职员档案。请在职员管理中完成绑定后维护个人资料。")), 1)
4505
+ ])),
4506
+ e.externalLoginClient && e.authToken && e.open ? (G(), L(ql, {
4507
+ key: 3,
4508
+ client: e.externalLoginClient,
4509
+ token: e.authToken
4510
+ }, null, 8, ["client", "token"])) : R("v-if", !0)
4511
+ ], 64)), e.error ? (G(), z("p", fu, q(e.error), 1)) : R("v-if", !0)]),
4512
+ _: 1
4513
+ }, 8, [
4514
+ "open",
4515
+ "title",
4516
+ "confirm-text",
4517
+ "confirm-loading",
4518
+ "confirm-disabled"
4519
+ ]));
4520
+ }
4521
+ }), [["__scopeId", "data-v-31653f7f"]]);
4522
+ //#endregion
4523
+ export { xn as AppError, Rc as AppWorkbenchShell, Wn as AssistantCapabilityUsageError, Wt as AssistantConversationInterruptedError, mn as AssistantEffectInterruptedError, Vr as AssistantOperationRejectedError, Vr as OperationRejectedError, Cn as BusinessNotificationPanel, Ol as ChangeOwnPasswordDialog, pu as CurrentUserProfileDialog, dt as DateTimeText, dr as DraftUpdateRejectedError, qr as DrawerOperationBar, _e as DynamicModuleWorkspaceDetailView, ql as ExternalIdentityBindings, Vc as ExternalProvisioningConfirmation, Cr as FileSizeText, Ur as FileTransferUploadCancelledError, lr as FileTransferUploader, Re as LanguageSelector, wl as LoginView, et as ManagementExplorerColumn, _r as ManagementWorkspace, Mt as ModuleContextProvider, kn as ModuleHttpProvider, D as ModuleReferenceRecordDetailBrowser, xr as OperationUsageError, Mc as PlatformAdminOutlet, Ms as PlatformAdminRouteOutlet, Rl as ReadonlyRecordWorkspace, Vi as ReadonlyReferenceValue, Nt as RecordDetailDrawer, Xn as RecordDetailExtensionSection, or as RecordDetailFields, wt as RecordDetailPanel, gi as RecordExplorerPanel, ai as RecordQueryListCell, qt as RecordQueryListSurface, br as ReferencePicker, Ti as ReferencePickerReadError, Pi as ReferenceRecordDetailBrowser, $n as SingleImageFileReferenceField, Qe as StaleAssistantInvocationError, ui as TenantScopeExplorer, Nl as ThemeSkinPreferencesDialog, M as UiButton, yn as UiDataTable, tr as UiDatePicker, jt as UiDropdown, Ji as UiEmpty, $t as UiError, wr as UiIcon, N as UiInput, yt as UiLanguageProvider, hi as UiSearchInput, yi as UiSelect, It as UiSidePanel, Fn as UiSwitch, yr as UiTextArea, Dt as UiThemeProvider, st as UiTree, hn as UiTreeSelect, ls as VueQueryPlugin, Xe as Workbench, Ee as WorkbenchAssistantPanel, i as WorkbenchMenu, Pe as WorkbenchOutlet, ke as WorkspaceViewOutlet, kr as actionResultData, qs as activeTabUrlOf, tc as arrangeLockedMenuTabs, si as boundedAssistantConversationHistory, d as buildWorkbenchMegaMenuModel, Gi as businessContentGenerationBatch, Rr as businessContentLabel, An as businessContentLanguageContext, kt as businessContentLanguages, ar as businessContentPath, Dn as businessContentReadHeaders, At as businessNotificationExpired, fr as canQueryRecycleBin, p as canonicalDynamicModulePath, Bi as changeBusinessContentTranslation, _ as clearAuthToken, ri as codeOperationErrorMessage, Ps as configureAuthenticationRecovery, In as configureModuleContext, Ke as configureModulePageEnhancementContributions, ee as configureModulePageEnhancements, Tl as configureUserPreferencePersistence, we as configureWorkspaceViewContributions, rt as confirmAction, Se as connectAppRealtime, qn as connectRealtimeBusinessEvents, ji as connectRealtimeBusinessNotifications, Ui as connectRealtimeDataChanges, rr as connectRealtimeUserNotifications, y as constructionPlanLimits, zi as contextDataChangeChannel, hr as createAssistantCapabilitySelection, ps as createAssistantConversationClient, Bt as createAssistantDisplayObservations, _i as createAssistantOperationConfirmation, xi as createAssistantSurfaceRegistry, Pn as createAssistantTurnRequester, Ue as createAuthClient, Is as createBackendHttpClient, Oi as createBrowserFileTransferUpload, tt as createCodeTextPresentation, fs as createConstructionPlanClient, ne as createDataChangeDispatcher, Xt as createDataExchangeClient, Ye as createExternalLoginClient, Ze as createHttpClient, Nn as createLanguageContext, Br as createLanguagePreferenceController, le as createLoginContextClient, gn as createManagedDetailRelationClient, qe as createMenuClient, oe as createMenuTab, Ot as createModuleContext, $e as createModuleCrudClient, a as createModulePageEnhancementRegistry, gr as createModuleTreeClient, Kt as createModuleTreeContext, Si as createNavigatorReferenceCrudClient, Qr as createNavigatorReferenceTreeClient, Ei as createOperationConfirmation, te as createPageBootstrapClient, us as createQueryClient, Sn as createRealtimeClient, Dr as createReferenceResolveClient, o as createSessionClient, Ri as createSseParser, fi as createStaticModuleCrudClient, Nr as createStaticModuleTreeClient, Qn as createStaticResourceCrudClient, ei as createStaticResourceTreeClient, Lt as createUuid, re as createWorkbenchMenuNodes, en as createWorkflowAdminClient, an as createWorkflowClient, dn as createWorkflowDefinitionClient, Ve as createWorkspaceViewDescriptor, fe as createWorkspaceViewRegistry, ut as dataChangeChannel, Gt as defaultUiThemeSkinId, Qi as defineWorkspaceView, r as disconnectAppRealtime, he as dismissWorkspaceViewDescriptor, Gn as displayModuleRuntime, ae as dynamicModuleAliasFromPath, b as effectiveAuthToken, Zr as emptyAssistantCapabilityInputSchema, ie as filterWorkbenchMenuNodes, se as findFirstNavigationMenu, u as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, Ne as firstDeepRootIdOf, x as getMenuNavigationTarget, mi as hasExecutableDetailRelationMutationContract, Pr as hasExecutableDetailRelationQueryContract, Sr as hasRecycleBinAbility, Ii as imConversationMessageChannel, Tn as imMessageSendCommand, On as invokeBusinessNotificationRecordAction, vr as isHttpStreamClient, ws as isPlatformAdminRoutePage, n as isTabMenuTarget, Fr as isTextReference, lt as isUnexpectedPlatformError, pe as isWindowMenuTarget, pi as listDetailWorkspaceMinWidth, wn as loadBusinessContentGeneration, ft as loadBusinessContentHistory, Li as loadBusinessContentReading, En as loadBusinessContentSources, bt as loadBusinessContentTranslationHistory, Tt as loadLanguageCatalog, ve as lookupOperationReceipt, Fi as modelFailureMessage, ii as moduleAbilityCodes, vt as moduleDataChangeChannel, We as modulePageWorkspaceViews, c as normalizeChangeSet, A as normalizeError, Ge as normalizeMenuMineResponse, vi as normalizeModuleListResponse, cr as normalizeModulePageResponse, Hr as normalizeModuleRecord, Di as normalizeModuleTreeResponse, mt as organizationPublicDataChangeChannel, on as organizationPublicNotificationChannel, Zt as originalPresentation, bn as pageActionEntryDescription, Yi as pageActionEntryTitle, ct as pageActionEntryVisible, Mn as pageActionIntent, s as pageAssistantCatalog, ze as pageDescriptorFromUrl, Oe as pageDescriptorToUrl, Fe as pageInstanceKeyOf, ge as pagePublicationDigest, di as parseEmptyAssistantCapabilityInput, T as parseOperationReceiptReference, xs as platformAdminModuleRoutes, Ss as platformAdminRouteLayouts, bs as platformAdminRoutePrefixes, ys as platformAdminRoutes, Ut as platformCodeTextOriginal, oi as platformCodeTextReference, _t as platformErrorCodes, zt as platformLanguageContext, zr as platformPingCommand, gt as prepareBusinessContentTranslation, Jn as presentPlatformError, Mi as presentPlatformInfo, Wi as presentPlatformMessage, ir as presentPlatformSuccess, C as presentWorkbenchRealtimeStatus, tn as presentationLabel, Mr as provideAssistantSurfaceHost, He as provideCurrentUserContext, Bn as provideLanguageContext, li as provideModuleContextConfig, jr as provideRecordReadRefreshGuard, me as provideWorkbenchNavigation, it as provideWorkspaceUnsavedStateRegistrar, Be as provideWorkspaceViewHost, ds as queryKeys, Et as readAssistantAvailability, nt as realtimeDestinations, Ir as realtimeMessageTypes, cn as recordBusinessContentArray, xt as recordBusinessContentText, Qt as recordDataChangeChannel, Pt as recordPresentationLabel, Jt as recordPresentationText, w as refreshModulePageList, Ct as refreshWorkflowRecordActions, ni as registerUiLanguageLocales, cc as removeLockedMenuTabs, sn as requestBusinessContentGeneration, pt as resolveGlobalErrorPresentation, Gr as resolveOperationErrorMessage, be as resolvePageDescriptor, Cs as resolvePlatformAdminRoute, _n as resolvePresentationText, Rt as resolveRecordDetailFields, Yr as resolveRecordQueryListColumns, Zi as resolveRecordReadEntry, Er as resolveWebActionResult, Kn as resolveWebActionResultMessage, Me as resolveWorkspaceView, nn as resourceDataChangeChannel, ln as resourceRecordDataChangeChannel, sr as restoreAssistantOperationReceipt, kc as restoreLockedTabPreference, rc as restoreLockedWorkbenchTabs, Fl as restoreThemeSkinPreference, Js as restoreWorkbenchStartupStateFromUrl, je as routeUrlWithOpenOptions, Vn as runAssistantConversation, Rn as runAssistantStep, Zn as sameAssistantInvocationToken, l as saveAuthSessionId, f as saveAuthToken, Ac as saveLockedTabPreference, Il as saveThemeSkinPreference, St as sessionActivityCommand, h as storedAuthSessionId, S as storedAuthToken, xe as subscribeAppBusinessEvents, g as subscribeAppDataChanges, ye as syncModulePageWorkspaceViewContributions, ce as tabIdentityKeyOf, Ae as tabKeyOf, Ft as tenantPublicDataChangeChannel, Yt as tenantPublicNotificationChannel, Ln as textReferenceMatchesOriginal, Pl as themeSkinPreferenceKey, Ki as translatedPresentation, Le as tryPageDescriptorFromUrl, ci as uiThemeSkinById, Vt as uiThemeSkins, pr as unwrapResponsePayload, oc as updateLockedMenuTabs, ti as uploadedFileId, $r as useAssistantSurfaceHost, Ni as useBusinessContentGenerationBatch, Jr as useBusinessContentReading, Je as useCurrentUserContext, zl as useExternalLoginHost, j as useLanguageContext, Ht as useModuleContext, Hn as useModuleHttpClient, zn as useModuleTreeContext, js as usePageDescriptor, As as usePageRoute, Or as useRecordReadRefreshGuard, Yn as useRecordReadRefreshRevision, Xi as useRecordReadSession, Te as useWorkbenchNavigation, Xr as useWorkspaceDetailSurface, de as useWorkspaceViewHost, De as useWorkspaceViewNavigation, Lr as useWorkspaceViewUnsavedState, vn as userBusinessEventChannel, qi as userBusinessNotificationChannel, k as userFacingErrorMessage, ot as userImMessageChannel, jn as userNotificationChannel, Ar as userPreferences, Ai as webDataChangeKey, er as webDataChangeTypes, Hi as webDataChanges, wi as withHttpHeaders, pn as withLanguageContext, O as withPageInstanceKey, nr as withWebActionResultChanges, at as withoutRecordPresentation };