@ximatai/muyun-web-app 0.26.28 → 0.26.31

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 (57) hide show
  1. package/dist/{BusinessActivityLogView-DlNB97pu.js → BusinessActivityLogView-Dw_SjtBi.js} +2 -2
  2. package/dist/BusinessLogListDrawer-Bkws0k6G.js +868 -0
  3. package/dist/{CodeConfigurationView-91B9dHjD.js → CodeConfigurationView-D-S2nX4C.js} +703 -703
  4. package/dist/{ConfigurationTranslationView-ClovkYJt.js → ConfigurationTranslationView-CzLoZCo5.js} +21 -21
  5. package/dist/{LoginAuditLogView-Blg9giRX.js → LoginAuditLogView-DxAlmQ9Q.js} +2 -2
  6. package/dist/ModuleActionManagementView-CfsGwDOn.js +780 -0
  7. package/dist/{ModuleGovernanceView-BNlRHqSj.js → ModuleGovernanceView-Bt2UhO-A.js} +2352 -2352
  8. package/dist/{RequestErrorLogView-CGczIKQy.js → RequestErrorLogView--g3Uwvzx.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-Bv21G3CF.js +1435 -0
  10. package/dist/{RuntimeLogView-DF-1k-9y.js → RuntimeLogView-CM47CKiD.js} +38 -38
  11. package/dist/WorkflowAdministrationView-CYq7bXS5.js +650 -0
  12. package/dist/{WorkflowConfigurationView-BqSfYua2.js → WorkflowConfigurationView-D1ve8wHF.js} +189 -189
  13. package/dist/WorkflowWorkbenchView-CJXy2iRP.js +759 -0
  14. package/dist/{codeConfiguration-BRxveKen.js → codeConfiguration-Bls4mHm3.js} +28 -28
  15. package/dist/{configurationEditorNavigation-DeXvfJyr.js → configurationEditorNavigation-DteTknF3.js} +2 -2
  16. package/dist/index.css +1 -1
  17. package/dist/index.js +704 -646
  18. package/dist/{moduleMenuWorkspace-D_A94ZgR.js → moduleMenuWorkspace-CsYcDzfq.js} +197 -197
  19. package/dist/{platform-components-DSMqalgQ.js → platform-components-CT5wnPa0.js} +2987 -2646
  20. package/dist/{platform-workbench-B53hydzq.js → platform-workbench-CBLyxlvV.js} +5350 -5264
  21. package/dist/types/app/useLoginFailureFeedback.d.ts +8 -0
  22. package/dist/types/consumer/index.d.ts +2 -1
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +30 -26
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +32 -26
  25. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
  26. package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
  27. package/dist/types/dynamic-page-runtime/modulePageActionControls.d.ts +12 -0
  28. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +16 -5
  29. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +15 -13
  30. package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -1
  31. package/dist/types/platform-components/ActionControlHost.vue.d.ts +16 -0
  32. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +3 -0
  33. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +13 -0
  34. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +7 -29
  35. package/dist/types/platform-components/RecordPicker.vue.d.ts +7 -31
  36. package/dist/types/platform-components/RecordReferencePicker.vue.d.ts +24 -0
  37. package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
  38. package/dist/types/platform-components/ReferenceSelectionPanel.vue.d.ts +20 -0
  39. package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
  40. package/dist/types/platform-components/actionControl.d.ts +28 -0
  41. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +4 -2
  42. package/dist/types/platform-components/index.d.ts +1 -0
  43. package/dist/types/platform-components/recordActionBarModel.d.ts +5 -0
  44. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -0
  45. package/dist/types/platform-components/recordReferencePickerProvider.d.ts +26 -0
  46. package/dist/types/platform-components/workflowAccountOptions.d.ts +3 -3
  47. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -0
  48. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +13 -2
  49. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +8 -2
  50. package/dist/{useWorkflowConfigurationContext-BuBDdUcQ.js → useWorkflowConfigurationContext-DsuGHZ0U.js} +9 -9
  51. package/dist/{workspaceViews-BSVtjZj1.js → workspaceViews-BxEz6u5n.js} +523 -523
  52. package/package.json +1 -1
  53. package/dist/BusinessLogListDrawer-ByiwQP1m.js +0 -868
  54. package/dist/ModuleActionManagementView-Chr_XTJ3.js +0 -780
  55. package/dist/RoleDetailWorkspaceView-CPH9cga9.js +0 -1435
  56. package/dist/WorkflowAdministrationView-CCXry0G4.js +0 -650
  57. package/dist/WorkflowWorkbenchView-DUFfO3Gf.js +0 -759
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { n as e, r as t } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { $ as n, A as r, At as i, B as a, C as o, Ct as s, Dt as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, Mt as v, N as y, Nt as b, Ot as ee, P as x, Pt as te, Q as S, R as ne, S as C, St as w, T, Tt as E, U as D, V as re, W as O, X as k, Y as A, Z as j, _ as M, _t as ie, a as ae, at as oe, bt as se, c as ce, ct as le, d as ue, dt as de, et as fe, f as pe, ft as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, jt as xe, k as Se, kt as Ce, l as we, lt as Te, m as Ee, mt as De, n as Oe, nt as ke, o as Ae, ot as je, p as Me, pt as Ne, q as Pe, r as Fe, rt as Ie, s as Le, st as Re, t as ze, tt as Be, u as Ve, ut as He, v as Ue, vt as We, w as Ge, wt as Ke, x as qe, xt as Je, y as Ye, yt as Xe, z as Ze } from "./platform-workbench-B53hydzq.js";
3
- import { $ as Qe, $a as $e, $i as et, $n as tt, $r as nt, Aa as rt, Ai as it, Ar as at, B as ot, Ba as st, Bi as ct, Bn as lt, Br as ut, Bt as dt, Ca as ft, Ci as pt, Cn as mt, Cr as ht, Ct as gt, Da as _t, Di as vt, Dr as yt, Ea as bt, Ei as xt, Er as St, Fa as Ct, Fi as wt, Fr as Tt, Ga as Et, Gi as Dt, Gn as Ot, Gr as kt, Ha as At, Hi as jt, Hn as Mt, Hr as Nt, Ia as Pt, Ii as Ft, In as It, Ir as Lt, Ja as Rt, Ji as zt, Jn as Bt, Jr as Vt, Ka as Ht, Ki as Ut, Kn as Wt, Kr as Gt, Kt, La as qt, Li as Jt, Lr as Yt, Ma as Xt, Mi as Zt, Mn as Qt, Mr as $t, Na as en, Ni as tn, Nr as nn, Oa as rn, Oi as an, On as on, Or as sn, Pa as cn, Pi as ln, Pr as un, Qa as dn, Qi as fn, Qn as pn, Qr as mn, Ra as hn, Ri as gn, Rn as _n, Rr as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, St as Cn, Ta as wn, Ti as Tn, Tn as En, Tr as Dn, Ua as On, Ui as kn, Ur as An, Va as jn, Vi as Mn, Vr as Nn, Wa as Pn, Wi as Fn, Wn as In, Wr as Ln, Xa as Rn, Xi as zn, Xn as Bn, Xr as Vn, Xt as Hn, Ya as Un, Yi as Wn, Yr as Gn, Za as Kn, Zi as qn, Zn as Jn, Zr as Yn, _a as Xn, _i as Zn, _n as Qn, aa as $n, ai as er, an as tr, ao as N, at as nr, ba as rr, bi as ir, br as ar, bt as or, ca as sr, ci as cr, co as lr, da as ur, di as dr, do as fr, dr as P, dt as pr, ea as mr, ei as hr, eo as gr, er as _r, et as vr, fa as yr, fi as br, fn as xr, fo as Sr, fr as Cr, ft as wr, ga as Tr, gi as Er, gn as Dr, gr as Or, gt as kr, ha as Ar, hi as jr, hn as Mr, ht as Nr, ia as Pr, ii as Fr, in as Ir, io as Lr, ir as Rr, ja as zr, ji as Br, jr as Vr, ka as Hr, ki as Ur, kn as Wr, kr as Gr, la as Kr, li as qr, ln as Jr, lo as Yr, lr as Xr, ma as Zr, mi as Qr, mn as $r, mr as ei, mt as ti, n as ni, na as ri, ni as ii, no as ai, nt as oi, oa as si, oi as ci, oo as li, or as ui, pa as di, pi as fi, pn as pi, po as mi, pr as hi, pt as gi, q as _i, qa as vi, qi as yi, qr as bi, r as xi, ra as Si, ri as Ci, rn as wi, ro as Ti, rt as Ei, sa as Di, si as Oi, sn as ki, so as Ai, t as ji, ta as Mi, ti as Ni, to as Pi, ua as Fi, ui as Ii, un as Li, ur as Ri, ut as zi, va as Bi, vi as Vi, vr as F, wa as Hi, wi as Ui, wn as Wi, wr as Gi, xa as Ki, xi as qi, xr as Ji, ya as Yi, yi as Xi, yn as Zi, yr as Qi, yt as $i, z as ea, za as ta, zi as na, zn as ra, zr as ia } from "./platform-components-DSMqalgQ.js";
4
- import { n as aa, t as oa } from "./recordReadEntry-CxDHM44F.js";
5
- import { _ as sa } from "./codeConfiguration-BRxveKen.js";
6
- import "./workspaceViews-BSVtjZj1.js";
7
- import * as ca from "vue";
8
- import { Fragment as la, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as ua, createTextVNode as V, createVNode as H, defineAsyncComponent as da, defineComponent as U, guardReactiveProps as fa, inject as pa, mergeProps as ma, nextTick as ha, normalizeClass as ga, normalizeProps as _a, normalizeStyle as va, onBeforeUnmount as ya, onMounted as ba, onScopeDispose as xa, openBlock as W, provide as Sa, readonly as Ca, ref as G, renderList as wa, renderSlot as Ta, resolveDynamicComponent as Ea, toDisplayString as K, unref as q, useId as Da, vShow as Oa, watch as J, withCtx as Y, withDirectives as ka, withModifiers as Aa } from "vue";
2
+ import { $ as n, A as r, At as i, B as a, C as o, Ct as s, Dt as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, Mt as v, N as y, Nt as b, Ot as ee, P as x, Pt as S, Q as C, R as te, S as w, St as T, T as E, Tt as ne, U as D, V as O, W as k, X as A, Y as j, Z as M, _ as N, _t as re, a as ie, at as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, gt as me, h as he, ht as ge, i as _e, it as ve, j as ye, jt as be, k as xe, kt as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as Oe, o as ke, ot as Ae, p as je, pt as Me, q as Ne, r as Pe, rt as Fe, s as Ie, st as Le, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as Ye, z as Xe } from "./platform-workbench-CBLyxlvV.js";
3
+ import { $ as Ze, $a as Qe, $i as $e, $n as et, $r as tt, Aa as nt, Ai as rt, Ar as it, B as at, Ba as ot, Bi 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, Er as yt, Fa as bt, Fi as xt, Fn as St, Fr as Ct, Ga as wt, Gi as Tt, Gn as Et, Gr as Dt, Gt as Ot, Ha as kt, Hi as At, Hr as jt, Ia as Mt, Ii as Nt, Ir as Pt, Ja as Ft, Ji as It, Jr as Lt, Ka as Rt, Ki as zt, Kr as Bt, La as Vt, Li as Ht, Ln as Ut, Lr as Wt, Ma as Gt, Mi as Kt, Mr as qt, Na as Jt, Ni as Yt, Nr as Xt, Oa as Zt, Oi as Qt, On as $t, Or as en, Pa as tn, Pi as nn, Pr as rn, Qa as an, Qi as on, Qn as sn, Qr as cn, Ra as ln, Ri as un, Rn as dn, Rr as fn, Sa as pn, Si as mn, Sn as hn, Sr as gn, St as _n, Ta as vn, Ti as yn, Tr as bn, Ua as xn, Ui as Sn, Un as Cn, Ur as wn, Va as Tn, Vi as En, Vn as Dn, Vr as On, Wa as kn, Wi as An, Wn as jn, Wr as Mn, Xa as Nn, Xi as Pn, Xn as Fn, Xr as In, Ya as Ln, Yi as Rn, Yn as zn, Yr as Bn, Yt as Vn, Za as Hn, Zi as Un, Zn as Wn, Zr as Gn, _a as Kn, _i as qn, _r as P, aa as Jn, ai as Yn, ao as Xn, ar as Zn, at as Qn, ba as $n, bi as er, br as tr, ca as nr, ci as rr, cn as ir, co as ar, cr as or, da as sr, di as cr, dn as lr, do as ur, dr, dt as fr, ea as pr, ei as mr, eo as hr, et as gr, fa as _r, fi as vr, fn as yr, fo as br, fr as xr, ft as Sr, ga as Cr, gi as wr, gn as Tr, ha as Er, hi as Dr, hn as Or, hr as kr, ht as Ar, ia as jr, ii as Mr, in as Nr, io as F, ja as Pr, ji as Fr, jn as Ir, jr as Lr, ka as Rr, ki as zr, kr as Br, la as Vr, li as Hr, ln as Ur, lr as Wr, lt as Gr, ma as Kr, mi as qr, mn as Jr, mt as Yr, n as Xr, na as Zr, ni as Qr, nn as $r, no as ei, oa as ti, oi as ni, on as ri, oo as ii, ot as ai, pa as oi, pi as si, pn as ci, pr as li, pt as ui, q as di, qa as fi, qi as pi, qn as mi, qr as hi, r as gi, ra as _i, ri as vi, rn as yi, ro as bi, rr as xi, sa as Si, si as Ci, so as wi, st as Ti, t as Ei, ta as Di, ti as Oi, to as ki, ua as Ai, ui as ji, uo as Mi, ur as I, ut as Ni, va as Pi, vi as Fi, vn as Ii, vr as Li, vt as Ri, wa as zi, wi as Bi, wn as Vi, wr as Hi, xa as Ui, xi as Wi, xn as Gi, xr as Ki, xt as qi, ya as Ji, yi as Yi, yr as Xi, yt as Zi, z as Qi, za as $i, zi as ea, zn as ta, zr as na, zt as ra } from "./platform-components-CT5wnPa0.js";
4
+ import { n as ia, t as aa } from "./recordReadEntry-CxDHM44F.js";
5
+ import { _ as oa } from "./codeConfiguration-Bls4mHm3.js";
6
+ import "./workspaceViews-BxEz6u5n.js";
7
+ import * as sa from "vue";
8
+ import { Fragment as ca, computed as L, createBlock as R, createCommentVNode as z, createElementBlock as B, createElementVNode as V, createSlots as la, createTextVNode as H, createVNode as U, defineAsyncComponent as ua, defineComponent as W, guardReactiveProps as da, inject as fa, mergeProps as pa, nextTick as ma, normalizeClass as ha, normalizeProps as ga, normalizeStyle as _a, onBeforeUnmount as va, onMounted as ya, onScopeDispose as ba, openBlock as G, provide as xa, readonly as Sa, ref as K, renderList as Ca, renderSlot as wa, resolveDynamicComponent as Ta, toDisplayString as q, unref as J, useId as Ea, vShow as Da, watch as Y, withCtx as X, withDirectives as Oa, withModifiers as ka } from "vue";
9
9
  //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
10
- var ja = class {
10
+ var Aa = class {
11
11
  constructor() {
12
12
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
13
13
  }
@@ -21,7 +21,7 @@ var ja = class {
21
21
  }
22
22
  onSubscribe() {}
23
23
  onUnsubscribe() {}
24
- }, Ma = new class extends ja {
24
+ }, ja = new class extends Aa {
25
25
  #e;
26
26
  #t;
27
27
  #n;
@@ -58,13 +58,13 @@ var ja = class {
58
58
  isFocused() {
59
59
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
60
60
  }
61
- }(), Na = {
61
+ }(), Ma = {
62
62
  setTimeout: (e, t) => setTimeout(e, t),
63
63
  clearTimeout: (e) => clearTimeout(e),
64
64
  setInterval: (e, t) => setInterval(e, t),
65
65
  clearInterval: (e) => clearInterval(e)
66
- }, Pa = new class {
67
- #e = Na;
66
+ }, Na = new class {
67
+ #e = Ma;
68
68
  #t = !1;
69
69
  setTimeoutProvider(e) {
70
70
  process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
@@ -85,13 +85,13 @@ var ja = class {
85
85
  this.#e.clearInterval(e);
86
86
  }
87
87
  }();
88
- function Fa(e) {
88
+ function Pa(e) {
89
89
  setTimeout(e, 0);
90
90
  }
91
91
  //#endregion
92
92
  //#region node_modules/@tanstack/query-core/build/modern/utils.js
93
- var Ia = typeof window > "u" || "Deno" in globalThis;
94
- function X() {}
93
+ var Fa = typeof window > "u" || "Deno" in globalThis;
94
+ function Ia() {}
95
95
  function La(e, t) {
96
96
  return typeof e == "function" ? e(t) : e;
97
97
  }
@@ -176,7 +176,7 @@ function Za(e) {
176
176
  }
177
177
  function Qa(e) {
178
178
  return new Promise((t) => {
179
- Pa.setTimeout(t, e);
179
+ Na.setTimeout(t, e);
180
180
  });
181
181
  }
182
182
  function $a(e, t, n) {
@@ -213,7 +213,7 @@ function io(e, t, n) {
213
213
  //#endregion
214
214
  //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
215
215
  var ao = /* @__PURE__ */ (() => {
216
- let e = () => Ia;
216
+ let e = () => Fa;
217
217
  return {
218
218
  isServer() {
219
219
  return e();
@@ -247,7 +247,7 @@ function oo() {
247
247
  }
248
248
  //#endregion
249
249
  //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
250
- var so = Fa;
250
+ var so = Pa;
251
251
  function co() {
252
252
  let e = [], t = 0, n = (e) => {
253
253
  e();
@@ -295,7 +295,7 @@ function co() {
295
295
  }
296
296
  };
297
297
  }
298
- var Z = co(), lo = new class extends ja {
298
+ var Z = co(), lo = new class extends Aa {
299
299
  #e = !0;
300
300
  #t;
301
301
  #n;
@@ -350,7 +350,7 @@ function mo(e) {
350
350
  t = !0;
351
351
  }, c = () => {
352
352
  t = !1;
353
- }, l = () => Ma.isFocused() && (e.networkMode === "always" || lo.isOnline()) && e.canRun(), u = () => fo(e.networkMode) && e.canRun(), d = (e) => {
353
+ }, l = () => ja.isFocused() && (e.networkMode === "always" || lo.isOnline()) && e.canRun(), u = () => fo(e.networkMode) && e.canRun(), d = (e) => {
354
354
  a() || (r?.(), i.resolve(e));
355
355
  }, f = (e) => {
356
356
  a() || (r?.(), i.reject(e));
@@ -399,7 +399,7 @@ var ho = class {
399
399
  this.clearGcTimeout();
400
400
  }
401
401
  scheduleGc() {
402
- this.clearGcTimeout(), Ra(this.gcTime) && (this.#e = Pa.setTimeout(() => {
402
+ this.clearGcTimeout(), Ra(this.gcTime) && (this.#e = Na.setTimeout(() => {
403
403
  this.optionalRemove();
404
404
  }, this.gcTime));
405
405
  }
@@ -407,7 +407,7 @@ var ho = class {
407
407
  this.gcTime = Math.max(this.gcTime || 0, e ?? (ao.isServer() ? Infinity : 3e5));
408
408
  }
409
409
  clearGcTimeout() {
410
- this.#e !== void 0 && (Pa.clearTimeout(this.#e), this.#e = void 0);
410
+ this.#e !== void 0 && (Na.clearTimeout(this.#e), this.#e = void 0);
411
411
  }
412
412
  };
413
413
  //#endregion
@@ -521,7 +521,7 @@ var yo = class extends ho {
521
521
  }
522
522
  cancel(e) {
523
523
  let t = this.#a?.promise;
524
- return this.#a?.cancel(e), t ? t.then(X).catch(X) : Promise.resolve();
524
+ return this.#a?.cancel(e), t ? t.then(Ia).catch(Ia) : Promise.resolve();
525
525
  }
526
526
  destroy() {
527
527
  super.destroy(), this.cancel({ silent: !0 });
@@ -956,7 +956,7 @@ function wo() {
956
956
  }
957
957
  //#endregion
958
958
  //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
959
- var To = class extends ja {
959
+ var To = class extends Aa {
960
960
  constructor(e = {}) {
961
961
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
962
962
  }
@@ -1047,7 +1047,7 @@ var To = class extends ja {
1047
1047
  }
1048
1048
  resumePausedMutations() {
1049
1049
  let e = this.getAll().filter((e) => e.state.isPaused);
1050
- return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(X))));
1050
+ return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(Ia))));
1051
1051
  }
1052
1052
  };
1053
1053
  function Eo(e) {
@@ -1055,7 +1055,7 @@ function Eo(e) {
1055
1055
  }
1056
1056
  //#endregion
1057
1057
  //#region node_modules/@tanstack/query-core/build/modern/queryCache.js
1058
- var Do = class extends ja {
1058
+ var Do = class extends Aa {
1059
1059
  constructor(e = {}) {
1060
1060
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1061
1061
  }
@@ -1142,7 +1142,7 @@ var Do = class extends ja {
1142
1142
  this.#e = e.queryCache || new Do(), this.#t = e.mutationCache || new To(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1143
1143
  }
1144
1144
  mount() {
1145
- this.#a++, this.#a === 1 && (this.#o = Ma.subscribe(async (e) => {
1145
+ this.#a++, this.#a === 1 && (this.#o = ja.subscribe(async (e) => {
1146
1146
  e && (await this.resumePausedMutations(), this.#e.onFocus());
1147
1147
  }), this.#s = lo.subscribe(async (e) => {
1148
1148
  e && (await this.resumePausedMutations(), this.#e.onOnline());
@@ -1210,7 +1210,7 @@ var Do = class extends ja {
1210
1210
  revert: !0,
1211
1211
  ...t
1212
1212
  }, r = Z.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1213
- return Promise.all(r).then(X).catch(X);
1213
+ return Promise.all(r).then(Ia).catch(Ia);
1214
1214
  }
1215
1215
  invalidateQueries(e, t = {}) {
1216
1216
  return Z.batch(() => (this.#e.findAll(e).forEach((e) => {
@@ -1226,9 +1226,9 @@ var Do = class extends ja {
1226
1226
  cancelRefetch: t.cancelRefetch ?? !0
1227
1227
  }, r = Z.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1228
1228
  let t = e.fetch(void 0, n);
1229
- return n.throwOnError || (t = t.catch(X)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1229
+ return n.throwOnError || (t = t.catch(Ia)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1230
1230
  }));
1231
- return Promise.all(r).then(X);
1231
+ return Promise.all(r).then(Ia);
1232
1232
  }
1233
1233
  fetchQuery(e) {
1234
1234
  let t = this.defaultQueryOptions(e);
@@ -1237,13 +1237,13 @@ var Do = class extends ja {
1237
1237
  return n.isStaleByTime(Ba(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1238
1238
  }
1239
1239
  prefetchQuery(e) {
1240
- return this.fetchQuery(e).then(X).catch(X);
1240
+ return this.fetchQuery(e).then(Ia).catch(Ia);
1241
1241
  }
1242
1242
  fetchInfiniteQuery(e) {
1243
1243
  return e._type = "infinite", this.fetchQuery(e);
1244
1244
  }
1245
1245
  prefetchInfiniteQuery(e) {
1246
- return this.fetchInfiniteQuery(e).then(X).catch(X);
1246
+ return this.fetchInfiniteQuery(e).then(Ia).catch(Ia);
1247
1247
  }
1248
1248
  ensureInfiniteQueryData(e) {
1249
1249
  return e._type = "infinite", this.ensureQueryData(e);
@@ -1309,7 +1309,7 @@ var Do = class extends ja {
1309
1309
  this.#e.clear(), this.#t.clear();
1310
1310
  }
1311
1311
  }, ko = /* @__PURE__ */ e({
1312
- Vue: () => ca,
1312
+ Vue: () => sa,
1313
1313
  Vue2: () => void 0,
1314
1314
  del: () => No,
1315
1315
  install: () => jo,
@@ -2349,7 +2349,7 @@ function Es(e) {
2349
2349
  function Ds(e) {
2350
2350
  let t = "/platform.assistant-conversations";
2351
2351
  return {
2352
- lookupOperation: (t) => se(e, t),
2352
+ lookupOperation: (t) => oe(e, t),
2353
2353
  list: (n, r) => e.request({
2354
2354
  path: t,
2355
2355
  query: {
@@ -2383,7 +2383,7 @@ function Os(e) {
2383
2383
  return n[0]?.definition.id;
2384
2384
  }
2385
2385
  function c() {
2386
- return o() ? [...n.values()].map((e) => e.notification).filter((e) => !r.has(e.id) && !Wn(e, i())).map((e) => structuredClone(e)) : [];
2386
+ return o() ? [...n.values()].map((e) => e.notification).filter((e) => !r.has(e.id) && !It(e, i())).map((e) => structuredClone(e)) : [];
2387
2387
  }
2388
2388
  function l() {
2389
2389
  o() && e.onChange(c());
@@ -2413,7 +2413,7 @@ function Os(e) {
2413
2413
  }
2414
2414
  for (let [e, n] of c.updates) t.delete(e), t.set(e, n);
2415
2415
  let o = new Map([...n].filter(([, e]) => e.sourceId !== u));
2416
- for (let [e, n] of t) !r.has(e) && !Wn(n, i()) && o.set(e, {
2416
+ for (let [e, n] of t) !r.has(e) && !It(n, i()) && o.set(e, {
2417
2417
  sourceId: u,
2418
2418
  notification: n
2419
2419
  });
@@ -2448,11 +2448,11 @@ function Os(e) {
2448
2448
  if (!o()) return;
2449
2449
  let a = structuredClone(e), c = s(a), u = n.get(a.id);
2450
2450
  if (u && u.sourceId !== c) throw Error("Notification identity collides with another source");
2451
- c && t.get(c)?.flight?.updates.set(a.id, a), n.delete(a.id), !r.has(a.id) && !Wn(a, i()) && n.set(a.id, {
2451
+ c && t.get(c)?.flight?.updates.set(a.id, a), n.delete(a.id), !r.has(a.id) && !It(a, i()) && n.set(a.id, {
2452
2452
  sourceId: c,
2453
2453
  notification: a
2454
2454
  });
2455
- for (let [e, t] of n) Wn(t.notification, i()) && n.delete(e);
2455
+ for (let [e, t] of n) It(t.notification, i()) && n.delete(e);
2456
2456
  l();
2457
2457
  },
2458
2458
  dismiss(e) {
@@ -2482,29 +2482,29 @@ function Os(e) {
2482
2482
  }
2483
2483
  //#endregion
2484
2484
  //#region src/platform-admin-runtime/platformAdminRoutes.ts
2485
- var ks = da(() => import("./workspaceViews-BSVtjZj1.js").then((e) => e.n)), As = da(() => import("./BusinessActivityLogView-DlNB97pu.js")), js = da(() => import("./RequestErrorLogView-CGczIKQy.js")), Ms = da(() => import("./LoginAuditLogView-Blg9giRX.js")), Ns = da(() => import("./RuntimeLogView-DF-1k-9y.js")), Ps = [
2485
+ var ks = ua(() => import("./workspaceViews-BxEz6u5n.js").then((e) => e.n)), As = ua(() => import("./BusinessActivityLogView-Dw_SjtBi.js")), js = ua(() => import("./RequestErrorLogView--g3Uwvzx.js")), Ms = ua(() => import("./LoginAuditLogView-DxAlmQ9Q.js")), Ns = ua(() => import("./RuntimeLogView-CM47CKiD.js")), Ps = [
2486
2486
  {
2487
2487
  route: "/platform/code-rule",
2488
2488
  moduleAlias: "platform.code_rule",
2489
- component: da(() => import("./CodeConfigurationView-91B9dHjD.js").then((e) => e.n)),
2489
+ component: ua(() => import("./CodeConfigurationView-D-S2nX4C.js").then((e) => e.n)),
2490
2490
  layout: "workspace"
2491
2491
  },
2492
2492
  {
2493
2493
  route: "/platform/translations",
2494
2494
  moduleAlias: "platform.localization",
2495
- component: da(() => import("./ConfigurationTranslationView-ClovkYJt.js")),
2495
+ component: ua(() => import("./ConfigurationTranslationView-CzLoZCo5.js")),
2496
2496
  layout: "workspace"
2497
2497
  },
2498
2498
  {
2499
2499
  route: "/workflow/admin",
2500
2500
  moduleAlias: "platform.workflow_admin",
2501
- component: da(() => import("./WorkflowAdministrationView-CCXry0G4.js")),
2501
+ component: ua(() => import("./WorkflowAdministrationView-CYq7bXS5.js")),
2502
2502
  layout: "workspace"
2503
2503
  },
2504
2504
  {
2505
2505
  route: "/workflow/workbench",
2506
2506
  moduleAlias: "iam.workflow_workbench",
2507
- component: da(() => import("./WorkflowWorkbenchView-DUFfO3Gf.js")),
2507
+ component: ua(() => import("./WorkflowWorkbenchView-CJXy2iRP.js")),
2508
2508
  layout: "workspace"
2509
2509
  },
2510
2510
  {
@@ -2556,26 +2556,26 @@ function Vs(e, t) {
2556
2556
  //#region src/app/pageRouteContext.ts
2557
2557
  var Hs = Symbol("page-route"), Us = Symbol("page-descriptor");
2558
2558
  function Ws(e) {
2559
- Sa(Hs, I(e));
2559
+ xa(Hs, L(e));
2560
2560
  }
2561
2561
  function Gs() {
2562
- let e = pa(Hs);
2562
+ let e = fa(Hs);
2563
2563
  if (e) return e;
2564
- let t = Le();
2565
- return I(() => t);
2564
+ let t = Ie();
2565
+ return L(() => t);
2566
2566
  }
2567
2567
  function Ks() {
2568
- return pa(Us) ?? I(() => void 0);
2568
+ return fa(Us) ?? L(() => void 0);
2569
2569
  }
2570
2570
  //#endregion
2571
2571
  //#region src/platform-admin-runtime/PlatformAdminOutlet.vue
2572
- var qs = /* @__PURE__ */ U({
2572
+ var qs = /* @__PURE__ */ W({
2573
2573
  name: "PlatformAdminRouteOutlet",
2574
2574
  __name: "PlatformAdminOutlet",
2575
2575
  props: { descriptor: {} },
2576
2576
  setup(e) {
2577
- let t = e, n = I(() => Rs(t.descriptor)), r = I(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = I(() => t.descriptor.target.query?.workspacePresentation);
2578
- tr(I(() => t.descriptor.layout ?? n.value?.layout)), Ws(() => {
2577
+ let t = e, n = L(() => Rs(t.descriptor)), r = L(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = L(() => t.descriptor.target.query?.workspacePresentation);
2578
+ Nr(L(() => t.descriptor.layout ?? n.value?.layout)), Ws(() => {
2579
2579
  let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
2580
2580
  return {
2581
2581
  path: r,
@@ -2591,16 +2591,16 @@ var qs = /* @__PURE__ */ U({
2591
2591
  e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
2592
2592
  }), n;
2593
2593
  }
2594
- return (t, a) => n.value && r.value ? (W(), L(q(Gn), {
2594
+ return (t, a) => n.value && r.value ? (G(), R(J(Lt), {
2595
2595
  key: 0,
2596
2596
  "module-alias": r.value
2597
2597
  }, {
2598
- default: Y(() => [i.value === "drawer" || i.value === "tab" ? (W(), L(q(ce), {
2598
+ default: X(() => [i.value === "drawer" || i.value === "tab" ? (G(), R(J(se), {
2599
2599
  key: 0,
2600
2600
  descriptor: e.descriptor
2601
- }, null, 8, ["descriptor"])) : (W(), L(Ea(n.value.component), { key: 1 }))]),
2601
+ }, null, 8, ["descriptor"])) : (G(), R(Ta(n.value.component), { key: 1 }))]),
2602
2602
  _: 1
2603
- }, 8, ["module-alias"])) : R("v-if", !0);
2603
+ }, 8, ["module-alias"])) : z("v-if", !0);
2604
2604
  }
2605
2605
  }), Js;
2606
2606
  function Ys(e) {
@@ -2612,16 +2612,16 @@ function Xs(e, t) {
2612
2612
  //#endregion
2613
2613
  //#region src/platform-admin-runtime/backendHttp.ts
2614
2614
  function Zs(e = {}) {
2615
- let t = () => li(Ai({
2615
+ let t = () => Xn(ii({
2616
2616
  baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
2617
2617
  token: e.withAuth === !1 ? void 0 : u(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
2618
2618
  credentials: Qs(import.meta.env.VITE_MUYUN_CREDENTIALS),
2619
2619
  onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => Xs(e, t)
2620
- }), e.language ?? ai);
2620
+ }), e.language ?? ki);
2621
2621
  return {
2622
2622
  async request(e) {
2623
- let n = await t().request(e), r = Hi(n);
2624
- return r.changeSetId && Se.dispatch({
2623
+ let n = await t().request(e), r = lt(n);
2624
+ return r.changeSetId && xe.dispatch({
2625
2625
  changeSetId: r.changeSetId,
2626
2626
  changes: r.changes
2627
2627
  }), n;
@@ -2657,14 +2657,14 @@ function tc(e, t) {
2657
2657
  }
2658
2658
  };
2659
2659
  }
2660
- function nc(e = ai) {
2661
- let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = Pi(t);
2660
+ function nc(e = ki) {
2661
+ let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = hr(t);
2662
2662
  return {
2663
2663
  pageType: "platform-route",
2664
2664
  openMode: "workbench-route",
2665
2665
  hostType: "platform-route-host",
2666
2666
  title: "开放模块 API",
2667
- titleText: hn(t, n.originalText, e),
2667
+ titleText: Vt(t, n.originalText, e),
2668
2668
  target: { route: "/openapi" },
2669
2669
  tabPolicy: {
2670
2670
  identity: "by-target",
@@ -2684,7 +2684,7 @@ function ic(e) {
2684
2684
  //#endregion
2685
2685
  //#region src/app/workbenchStartup.ts
2686
2686
  function ac(e, t, n, r = {}) {
2687
- let i = j(t, n, r), a = e.find((e) => e.key === i.key);
2687
+ let i = M(t, n, r), a = e.find((e) => e.key === i.key);
2688
2688
  if (a) {
2689
2689
  let o = a.pageDescriptor ? Oc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2690
2690
  return {
@@ -2698,7 +2698,7 @@ function ac(e, t, n, r = {}) {
2698
2698
  };
2699
2699
  }
2700
2700
  function oc(e, t, n = {}) {
2701
- let r = Tc(He(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && Re(e.pageDescriptor) === Re(r.pageDescriptor));
2701
+ let r = Tc(Ve(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && Le(e.pageDescriptor) === Le(r.pageDescriptor));
2702
2702
  return i ? {
2703
2703
  tabs: e,
2704
2704
  activeTabKey: i.key,
@@ -2710,7 +2710,7 @@ function oc(e, t, n = {}) {
2710
2710
  };
2711
2711
  }
2712
2712
  function sc(e, t, n = {}) {
2713
- return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : ye(je(t, {
2713
+ return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : ve(Ae(t, {
2714
2714
  ...n,
2715
2715
  title: e.title
2716
2716
  }), n);
@@ -2718,18 +2718,18 @@ function sc(e, t, n = {}) {
2718
2718
  function cc(e) {
2719
2719
  let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
2720
2720
  if (t?.fullPath) return t.fullPath;
2721
- let n = t?.pageDescriptor ?? (t?.target ? je(t.target, { title: t.title }) : void 0);
2722
- return n?.pageType === "platform-route" && rc(n) && n.target.route ? n.target.route : n ? ye(n) : void 0;
2721
+ let n = t?.pageDescriptor ?? (t?.target ? Ae(t.target, { title: t.title }) : void 0);
2722
+ return n?.pageType === "platform-route" && rc(n) && n.target.route ? n.target.route : n ? ve(n) : void 0;
2723
2723
  }
2724
- function lc(e, t, n = {}, r = !1, i = ai) {
2724
+ function lc(e, t, n = {}, r = !1, i = ki) {
2725
2725
  if (t === "/" || t === "") return e;
2726
- let a = t.split(/[?#]/, 1)[0] ?? "", o = ec(a), s = o ? tc(o) : ic(a) ? nc(i) : Te(t, n);
2726
+ let a = t.split(/[?#]/, 1)[0] ?? "", o = ec(a), s = o ? tc(o) : ic(a) ? nc(i) : we(t, n);
2727
2727
  if (!s) return e;
2728
- let c = s.menuId ? Fc(e.menus, s.menuId) : void 0, l = c ? fe(c) : void 0, u = c && l && pc(l, s) ? {
2728
+ let c = s.menuId ? Fc(e.menus, s.menuId) : void 0, l = c ? de(c) : void 0, u = c && l && pc(l, s) ? {
2729
2729
  ...s,
2730
2730
  title: c.title,
2731
2731
  titleText: c.titleText
2732
- } : s, d = fc(u, n.title, i), f = d ?? u, p = e.tabs ?? [], m = d ? dc(p, d) : void 0, h = d ? uc(d, m) : r ? He(f) : f, g = c && Nc(c, h, n) ? c : Mc(e.menus, h, n), _ = g === c ? l : g ? fe(g) : void 0, v = d ? Tc(h, n) : g && _ && Be(_) ? Oc(g, _, h, n, p.find((e) => e.key === `menu:${g.id}`)?.instanceKey) : Tc(h, n), y = Dc(p, v);
2732
+ } : s, d = fc(u, n.title, i), f = d ?? u, p = e.tabs ?? [], m = d ? dc(p, d) : void 0, h = d ? uc(d, m) : r ? Ve(f) : f, g = c && Nc(c, h, n) ? c : Mc(e.menus, h, n), _ = g === c ? l : g ? de(g) : void 0, v = d ? Tc(h, n) : g && _ && ze(_) ? Oc(g, _, h, n, p.find((e) => e.key === `menu:${g.id}`)?.instanceKey) : Tc(h, n), y = Dc(p, v);
2733
2733
  return {
2734
2734
  ...e,
2735
2735
  tabs: y,
@@ -2737,16 +2737,16 @@ function lc(e, t, n = {}, r = !1, i = ai) {
2737
2737
  };
2738
2738
  }
2739
2739
  function uc(e, t) {
2740
- return t?.instanceKey ? He(e, t.instanceKey) : t ? e : He(e);
2740
+ return t?.instanceKey ? Ve(e, t.instanceKey) : t ? e : Ve(e);
2741
2741
  }
2742
2742
  function dc(e, t) {
2743
- let n = Re(t);
2744
- return e.find((e) => e.pageDescriptor?.pageType === "business-route" && Re(e.pageDescriptor) === n);
2743
+ let n = Le(t);
2744
+ return e.find((e) => e.pageDescriptor?.pageType === "business-route" && Le(e.pageDescriptor) === n);
2745
2745
  }
2746
2746
  function fc(e, t, n) {
2747
2747
  if (e.pageType !== "business-route") return;
2748
- let r = _e(e);
2749
- return r ? me(r.view, r.input, r.presentation, t, n) : void 0;
2748
+ let r = ge(e);
2749
+ return r ? pe(r.view, r.input, r.presentation, t, n) : void 0;
2750
2750
  }
2751
2751
  function pc(e, t) {
2752
2752
  return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
@@ -2800,7 +2800,7 @@ function _c(e, t) {
2800
2800
  target: t.target
2801
2801
  };
2802
2802
  }
2803
- function vc(e, t, n = {}, r = ai) {
2803
+ function vc(e, t, n = {}, r = ki) {
2804
2804
  let i = /* @__PURE__ */ new Map();
2805
2805
  Sc(t, i);
2806
2806
  let a = /* @__PURE__ */ new Set();
@@ -2809,7 +2809,7 @@ function vc(e, t, n = {}, r = ai) {
2809
2809
  if (t) {
2810
2810
  if (a.has(t)) return [];
2811
2811
  let e = i.get(t);
2812
- return e ? (a.add(t), [j(e.menu, e.target, n)]) : [];
2812
+ return e ? (a.add(t), [M(e.menu, e.target, n)]) : [];
2813
2813
  }
2814
2814
  let o = bc(e, r);
2815
2815
  return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
@@ -2821,8 +2821,8 @@ function yc(e) {
2821
2821
  function bc(e, t) {
2822
2822
  let n = e.pageDescriptor;
2823
2823
  if (n?.pageType !== "business-route") return;
2824
- let r = _e(n);
2825
- if (r && r.presentation === "tab") return Tc(me(r.view, r.input, "tab", void 0, t));
2824
+ let r = ge(n);
2825
+ if (r && r.presentation === "tab") return Tc(pe(r.view, r.input, "tab", void 0, t));
2826
2826
  }
2827
2827
  function xc(e, t) {
2828
2828
  let n = e.findIndex((e) => e.key === t.key);
@@ -2830,8 +2830,8 @@ function xc(e, t) {
2830
2830
  }
2831
2831
  function Sc(e, t) {
2832
2832
  for (let n of e) {
2833
- let e = fe(n.record);
2834
- e && Be(e) && t.set(n.record.id, {
2833
+ let e = de(n.record);
2834
+ e && ze(e) && t.set(n.record.id, {
2835
2835
  menu: n.record,
2836
2836
  target: e
2837
2837
  }), Sc(n.children, t);
@@ -2849,10 +2849,10 @@ function wc(e, t, n = []) {
2849
2849
  return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
2850
2850
  }
2851
2851
  function Tc(e, t = {}) {
2852
- let n = ye(e, t);
2852
+ let n = ve(e, t);
2853
2853
  return {
2854
2854
  ...Ec(e) ? { instanceKey: Ec(e) } : {},
2855
- key: le(e),
2855
+ key: ce(e),
2856
2856
  title: e.title ?? jc(e),
2857
2857
  fullPath: n,
2858
2858
  pageDescriptor: e,
@@ -2869,7 +2869,7 @@ function Dc(e, t) {
2869
2869
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2870
2870
  }
2871
2871
  function Oc(e, t, n, r, i) {
2872
- let a = He(n, i), o = j(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2872
+ let a = Ve(n, i), o = M(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2873
2873
  title: e.title,
2874
2874
  titleText: s.titleText
2875
2875
  } : { title: a.title }, l = kc(a) && kc(s) || Ac(a) && Ac(s) ? {
@@ -2910,7 +2910,7 @@ function Mc(e, t, n) {
2910
2910
  }
2911
2911
  }
2912
2912
  function Nc(e, t, n) {
2913
- let r = fe(e), i = r ? je(r, {
2913
+ let r = de(e), i = r ? Ae(r, {
2914
2914
  ...n,
2915
2915
  title: e.title
2916
2916
  }) : void 0;
@@ -2978,21 +2978,21 @@ function Kc(e) {
2978
2978
  }
2979
2979
  //#endregion
2980
2980
  //#region src/consumer/PlatformAdminOutlet.vue
2981
- var qc = /* @__PURE__ */ U({
2981
+ var qc = /* @__PURE__ */ W({
2982
2982
  name: "PlatformAdminOutlet",
2983
2983
  __name: "PlatformAdminOutlet",
2984
2984
  props: { descriptor: {} },
2985
2985
  setup(e) {
2986
- return (t, n) => (W(), L(ae, { descriptor: e.descriptor }, ua({ _: 2 }, [q(zs)(e.descriptor) ? {
2986
+ return (t, n) => (G(), R(ie, { descriptor: e.descriptor }, la({ _: 2 }, [J(zs)(e.descriptor) ? {
2987
2987
  name: "default",
2988
- fn: Y(() => [H(qs, { descriptor: e.descriptor }, null, 8, ["descriptor"])]),
2988
+ fn: X(() => [U(qs, { descriptor: e.descriptor }, null, 8, ["descriptor"])]),
2989
2989
  key: "0"
2990
2990
  } : void 0]), 1032, ["descriptor"]));
2991
2991
  }
2992
2992
  }), Jc = { class: "change-own-password-fields" }, Yc = {
2993
2993
  key: 0,
2994
2994
  class: "change-own-password-error"
2995
- }, Xc = /*#__PURE__*/ ar(/* @__PURE__ */ U({
2995
+ }, Xc = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
2996
2996
  name: "ChangeOwnPasswordDialog",
2997
2997
  __name: "ChangeOwnPasswordDialog",
2998
2998
  props: {
@@ -3017,54 +3017,54 @@ var qc = /* @__PURE__ */ U({
3017
3017
  "update:confirmPassword"
3018
3018
  ],
3019
3019
  setup(e, { emit: t }) {
3020
- let n = N(), r = t;
3021
- return (t, i) => (W(), L(q(lt), {
3020
+ let n = F(), r = t;
3021
+ return (t, i) => (G(), R(J(ta), {
3022
3022
  open: e.open,
3023
- title: q(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3024
- "confirm-text": q(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3023
+ title: J(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3024
+ "confirm-text": J(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3025
3025
  "confirm-loading": e.saving,
3026
3026
  "confirm-disabled": !e.currentPassword || !e.newPassword || !e.confirmPassword,
3027
3027
  onConfirm: i[3] ||= (e) => r("submit"),
3028
3028
  onCancel: i[4] ||= (e) => r("close")
3029
3029
  }, {
3030
- default: Y(() => [B("div", Jc, [
3031
- B("label", null, [B("span", null, K(q(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), H(q(P), {
3030
+ default: X(() => [V("div", Jc, [
3031
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), U(J(I), {
3032
3032
  value: e.currentPassword,
3033
3033
  type: "password",
3034
3034
  autocomplete: "current-password",
3035
3035
  disabled: e.saving,
3036
- placeholder: q(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3036
+ placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3037
3037
  "onUpdate:value": i[0] ||= (e) => r("update:currentPassword", e)
3038
3038
  }, null, 8, [
3039
3039
  "value",
3040
3040
  "disabled",
3041
3041
  "placeholder"
3042
3042
  ])]),
3043
- B("label", null, [B("span", null, K(q(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), H(q(P), {
3043
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), U(J(I), {
3044
3044
  value: e.newPassword,
3045
3045
  type: "password",
3046
3046
  autocomplete: "new-password",
3047
3047
  disabled: e.saving,
3048
- placeholder: q(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3048
+ placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3049
3049
  "onUpdate:value": i[1] ||= (e) => r("update:newPassword", e)
3050
3050
  }, null, 8, [
3051
3051
  "value",
3052
3052
  "disabled",
3053
3053
  "placeholder"
3054
3054
  ])]),
3055
- B("label", null, [B("span", null, K(q(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), H(q(P), {
3055
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), U(J(I), {
3056
3056
  value: e.confirmPassword,
3057
3057
  type: "password",
3058
3058
  autocomplete: "new-password",
3059
3059
  disabled: e.saving,
3060
- placeholder: q(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3060
+ placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3061
3061
  "onUpdate:value": i[2] ||= (e) => r("update:confirmPassword", e)
3062
3062
  }, null, 8, [
3063
3063
  "value",
3064
3064
  "disabled",
3065
3065
  "placeholder"
3066
3066
  ])])
3067
- ]), e.error ? (W(), z("p", Yc, K(e.error), 1)) : R("v-if", !0)]),
3067
+ ]), e.error ? (G(), B("p", Yc, q(e.error), 1)) : z("v-if", !0)]),
3068
3068
  _: 1
3069
3069
  }, 8, [
3070
3070
  "open",
@@ -3169,12 +3169,12 @@ var ul = {
3169
3169
  }, dl = { key: 0 }, fl = {
3170
3170
  key: 1,
3171
3171
  role: "alert"
3172
- }, pl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3172
+ }, pl = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
3173
3173
  __name: "WeLinkQrCode",
3174
3174
  props: { start: {} },
3175
3175
  emits: ["close"],
3176
3176
  setup(e, { emit: t }) {
3177
- let n = e, r = t, i = N(), a = `welink-${Da()}`, o = G(), s = G(!1), c = G(!1), l = !0, u = !1, d;
3177
+ let n = e, r = t, i = F(), a = `welink-${Ea()}`, o = K(), s = K(!1), c = K(!1), l = !0, u = !1, d;
3178
3178
  function f(e) {
3179
3179
  let t = o.value?.querySelector("iframe");
3180
3180
  if (!l || s.value || c.value || u || Date.now() >= Date.parse(n.start.expiresAt) || e.origin !== "https://login.welink.huaweicloud.com" || !t?.contentWindow || e.source !== t.contentWindow || typeof e.data != "string" || !e.data.trim() || e.data.length > 4096) return;
@@ -3188,7 +3188,7 @@ var ul = {
3188
3188
  code: e.data
3189
3189
  }).toString(), u = !0, el(i.toString());
3190
3190
  }
3191
- return ba(async () => {
3191
+ return ya(async () => {
3192
3192
  try {
3193
3193
  let e = n.start.qrCode;
3194
3194
  if (!e || e.providerType !== "welink" || e.scriptUrl !== sl || e.messageOrigin !== "https://login.welink.huaweicloud.com" || e.state !== n.start.state || e.scope !== "snsapi_login" || new URL(e.authorizationUrl).origin !== "https://login.welink.huaweicloud.com" || new URL(e.authorizationUrl).pathname !== "/sso/oauth2/sns_authorize") throw Error("Unrecognized QR presentation");
@@ -3217,14 +3217,14 @@ var ul = {
3217
3217
  } catch {
3218
3218
  l && (s.value = !0);
3219
3219
  }
3220
- }), ya(() => {
3220
+ }), va(() => {
3221
3221
  l = !1, clearTimeout(d), window.removeEventListener("message", f);
3222
- }), (e, t) => (W(), z("section", ul, [c.value ? (W(), z("p", dl, K(q(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (W(), z("p", fl, K(q(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (W(), z(la, { key: 2 }, [B("p", null, K(q(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), B("div", {
3222
+ }), (e, t) => (G(), B("section", ul, [c.value ? (G(), B("p", dl, q(J(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (G(), B("p", fl, q(J(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (G(), B(ca, { key: 2 }, [V("p", null, q(J(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), V("div", {
3223
3223
  id: a,
3224
3224
  ref_key: "container",
3225
3225
  ref: o
3226
- }, null, 512)], 64)), H(q(F), { onClick: t[0] ||= (e) => r("close") }, {
3227
- default: Y(() => [V(K(q(i).t("platform.action.cancel", "取消")), 1)]),
3226
+ }, null, 512)], 64)), U(J(P), { onClick: t[0] ||= (e) => r("close") }, {
3227
+ default: X(() => [H(q(J(i).t("platform.action.cancel", "取消")), 1)]),
3228
3228
  _: 1
3229
3229
  })]));
3230
3230
  }
@@ -3237,7 +3237,7 @@ var ul = {
3237
3237
  }, gl = {
3238
3238
  key: 2,
3239
3239
  class: "external-bindings-list"
3240
- }, _l = { class: "external-bindings-provider" }, vl = { class: "external-bindings-account" }, yl = { class: "external-bindings-provider" }, bl = { class: "external-bindings-account muted" }, xl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3240
+ }, _l = { class: "external-bindings-provider" }, vl = { class: "external-bindings-account" }, yl = { class: "external-bindings-provider" }, bl = { class: "external-bindings-account muted" }, xl = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
3241
3241
  name: "ExternalIdentityBindings",
3242
3242
  __name: "ExternalIdentityBindings",
3243
3243
  props: {
@@ -3245,22 +3245,22 @@ var ul = {
3245
3245
  token: {}
3246
3246
  },
3247
3247
  setup(e) {
3248
- let t = e, n = N(), r = G();
3248
+ let t = e, n = F(), r = K();
3249
3249
  function i() {
3250
3250
  r.value && $c(r.value.state), r.value = void 0;
3251
3251
  }
3252
- let a = G(), o = G(!1), s = G(!1), c = G();
3253
- ba(l);
3252
+ let a = K(), o = K(!1), s = K(!1), c = K();
3253
+ ya(l);
3254
3254
  async function l() {
3255
3255
  c.value = void 0;
3256
3256
  try {
3257
3257
  a.value = await t.client.identities(t.token);
3258
3258
  } catch (e) {
3259
- if (e instanceof rt && (e.status === 404 || e.status === 405)) {
3259
+ if (e instanceof Rr && (e.status === 404 || e.status === 405)) {
3260
3260
  o.value = !0;
3261
3261
  return;
3262
3262
  }
3263
- c.value = () => Pt(en(e), n);
3263
+ c.value = () => bt(Gt(e), n);
3264
3264
  }
3265
3265
  }
3266
3266
  async function u(e) {
@@ -3273,11 +3273,11 @@ var ul = {
3273
3273
  purpose: "bind"
3274
3274
  }), n.qrCode ? (r.value = n, s.value = !1) : el(n.authorizationUrl);
3275
3275
  } catch (e) {
3276
- c.value = () => Pt(en(e), n), s.value = !1;
3276
+ c.value = () => bt(Gt(e), n), s.value = !1;
3277
3277
  }
3278
3278
  }
3279
3279
  async function d(e) {
3280
- if (await It({
3280
+ if (await St({
3281
3281
  title: n.t("platform.screen.ExternalIdentityBindings.unbind-title", "解除外部账号绑定"),
3282
3282
  content: n.t("platform.screen.ExternalIdentityBindings.unbind-content", "解除后将无法再通过 {provider} 登录当前账号。", { provider: e.providerTitle }),
3283
3283
  danger: !0
@@ -3286,45 +3286,45 @@ var ul = {
3286
3286
  try {
3287
3287
  await t.client.unbind(e.id, t.token), await l();
3288
3288
  } catch (e) {
3289
- c.value = () => Pt(en(e), n);
3289
+ c.value = () => bt(Gt(e), n);
3290
3290
  } finally {
3291
3291
  s.value = !1;
3292
3292
  }
3293
3293
  }
3294
3294
  }
3295
- return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (W(), z("section", ml, [
3296
- r.value ? (W(), L(pl, {
3295
+ return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (G(), B("section", ml, [
3296
+ r.value ? (G(), R(pl, {
3297
3297
  key: r.value.state,
3298
3298
  start: r.value,
3299
3299
  onClose: i
3300
- }, null, 8, ["start"])) : R("v-if", !0),
3301
- B("h3", null, K(q(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
3302
- c.value ? (W(), z("p", hl, K(c.value()), 1)) : R("v-if", !0),
3303
- a.value ? (W(), z("ul", gl, [(W(!0), z(la, null, wa(a.value.bindings, (e) => (W(), z("li", { key: e.id }, [
3304
- B("span", _l, K(e.providerTitle), 1),
3305
- B("span", vl, K(e.displayName || e.externalUserId), 1),
3306
- H(q(F), {
3300
+ }, null, 8, ["start"])) : z("v-if", !0),
3301
+ V("h3", null, q(J(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
3302
+ c.value ? (G(), B("p", hl, q(c.value()), 1)) : z("v-if", !0),
3303
+ a.value ? (G(), B("ul", gl, [(G(!0), B(ca, null, Ca(a.value.bindings, (e) => (G(), B("li", { key: e.id }, [
3304
+ V("span", _l, q(e.providerTitle), 1),
3305
+ V("span", vl, q(e.displayName || e.externalUserId), 1),
3306
+ U(J(P), {
3307
3307
  size: "small",
3308
3308
  danger: "",
3309
3309
  disabled: s.value,
3310
3310
  onClick: (t) => d(e)
3311
3311
  }, {
3312
- default: Y(() => [V(K(q(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
3312
+ default: X(() => [H(q(J(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
3313
3313
  _: 1
3314
3314
  }, 8, ["disabled", "onClick"])
3315
- ]))), 128)), (W(!0), z(la, null, wa(a.value.bindableProviders, (e) => (W(), z("li", { key: e.providerId }, [
3316
- B("span", yl, K(e.title), 1),
3317
- B("span", bl, K(q(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
3318
- H(q(F), {
3315
+ ]))), 128)), (G(!0), B(ca, null, Ca(a.value.bindableProviders, (e) => (G(), B("li", { key: e.providerId }, [
3316
+ V("span", yl, q(e.title), 1),
3317
+ V("span", bl, q(J(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
3318
+ U(J(P), {
3319
3319
  size: "small",
3320
3320
  loading: s.value,
3321
3321
  onClick: (t) => u(e)
3322
3322
  }, {
3323
- default: Y(() => [V(K(q(n).t("platform.screen.ExternalIdentityBindings.bind", "去绑定")), 1)]),
3323
+ default: X(() => [H(q(J(n).t("platform.screen.ExternalIdentityBindings.bind", "去绑定")), 1)]),
3324
3324
  _: 1
3325
3325
  }, 8, ["loading", "onClick"])
3326
- ]))), 128))])) : R("v-if", !0)
3327
- ])) : R("v-if", !0);
3326
+ ]))), 128))])) : z("v-if", !0)
3327
+ ])) : z("v-if", !0);
3328
3328
  }
3329
3329
  }), [["__scopeId", "data-v-c99eaf5c"]]), Sl = {
3330
3330
  key: 0,
@@ -3344,7 +3344,7 @@ var ul = {
3344
3344
  }, zl = { class: "profile-account-monogram" }, Bl = {
3345
3345
  key: 2,
3346
3346
  class: "profile-error"
3347
- }, Vl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3347
+ }, Vl = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
3348
3348
  name: "CurrentUserProfileDialog",
3349
3349
  __name: "CurrentUserProfileDialog",
3350
3350
  props: {
@@ -3368,14 +3368,14 @@ var ul = {
3368
3368
  },
3369
3369
  emits: ["close", "submit"],
3370
3370
  setup(e, { emit: t }) {
3371
- let n = N(), r = e, i = t, a = G(""), o = G(""), s = G();
3372
- J(() => r.profile, (e) => {
3371
+ let n = F(), r = e, i = t, a = K(""), o = K(""), s = K();
3372
+ Y(() => r.profile, (e) => {
3373
3373
  a.value = e?.employee?.mobile ?? "", o.value = e?.employee?.email ?? "", s.value = e?.employee?.avatarAssetId;
3374
3374
  }, { immediate: !0 });
3375
- let c = I(() => r.profile?.employee), l = I(() => mn({
3375
+ let c = L(() => r.profile?.employee), l = L(() => Gn({
3376
3376
  moduleAlias: "iam.employee",
3377
3377
  http: r.http
3378
- })), u = I(() => c.value?.positions ?? []), d = {
3378
+ })), u = L(() => c.value?.positions ?? []), d = {
3379
3379
  fieldRef: { fieldName: "avatarAssetId" },
3380
3380
  allowedMediaTypes: [
3381
3381
  "image/png",
@@ -3388,16 +3388,16 @@ var ul = {
3388
3388
  storagePolicy: "DATABASE_INLINE",
3389
3389
  uploadAvailable: !0,
3390
3390
  readAvailable: !0
3391
- }, f = I(() => ({
3391
+ }, f = L(() => ({
3392
3392
  id: c.value?.id,
3393
3393
  avatarAssetId: s.value
3394
3394
  }));
3395
- return (t, r) => (W(), L(q(lt), {
3395
+ return (t, r) => (G(), R(J(ta), {
3396
3396
  open: e.open,
3397
- title: q(n).t("platform.screen.CurrentUserProfileDialog.my-profile", "个人信息"),
3397
+ title: J(n).t("platform.screen.CurrentUserProfileDialog.my-profile", "个人信息"),
3398
3398
  width: 640,
3399
3399
  class: "current-user-profile-dialog",
3400
- "confirm-text": c.value?.contactEditable ? q(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : q(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭"),
3400
+ "confirm-text": c.value?.contactEditable ? J(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : J(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭"),
3401
3401
  "confirm-loading": e.saving,
3402
3402
  "confirm-disabled": e.loading,
3403
3403
  onConfirm: r[5] ||= (e) => c.value?.contactEditable ? i("submit", {
@@ -3407,14 +3407,14 @@ var ul = {
3407
3407
  }) : i("close"),
3408
3408
  onCancel: r[6] ||= (e) => i("close")
3409
3409
  }, {
3410
- operation: Y(() => [c.value?.contactEditable ? (W(), L(q(F), {
3410
+ operation: X(() => [c.value?.contactEditable ? (G(), R(J(P), {
3411
3411
  key: 0,
3412
3412
  disabled: e.saving,
3413
3413
  onClick: r[3] ||= (e) => i("close")
3414
3414
  }, {
3415
- default: Y(() => [V(K(q(n).t("platform.action.cancel", "取消")), 1)]),
3415
+ default: X(() => [H(q(J(n).t("platform.action.cancel", "取消")), 1)]),
3416
3416
  _: 1
3417
- }, 8, ["disabled"])) : R("v-if", !0), H(q(F), {
3417
+ }, 8, ["disabled"])) : z("v-if", !0), U(J(P), {
3418
3418
  type: c.value?.contactEditable ? "primary" : "default",
3419
3419
  loading: e.saving,
3420
3420
  disabled: e.loading,
@@ -3424,25 +3424,25 @@ var ul = {
3424
3424
  avatarAssetId: s.value
3425
3425
  }) : i("close")
3426
3426
  }, {
3427
- default: Y(() => [V(K(c.value?.contactEditable ? q(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : q(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭")), 1)]),
3427
+ default: X(() => [H(q(c.value?.contactEditable ? J(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : J(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭")), 1)]),
3428
3428
  _: 1
3429
3429
  }, 8, [
3430
3430
  "type",
3431
3431
  "loading",
3432
3432
  "disabled"
3433
3433
  ])]),
3434
- default: Y(() => [e.loading ? (W(), z("p", Sl, K(q(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (W(), z(la, { key: 1 }, [
3435
- c.value ? (W(), z("section", Cl, [
3436
- B("div", wl, [H(q(Jr), {
3434
+ default: X(() => [e.loading ? (G(), B("p", Sl, q(J(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (G(), B(ca, { key: 1 }, [
3435
+ c.value ? (G(), B("section", Cl, [
3436
+ V("div", wl, [U(J(ir), {
3437
3437
  "hide-label": "",
3438
- label: q(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
3438
+ label: J(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
3439
3439
  value: s.value,
3440
3440
  record: f.value,
3441
3441
  context: l.value,
3442
3442
  definition: d,
3443
3443
  disabled: !c.value.contactEditable || e.saving,
3444
3444
  "form-session-key": c.value.id,
3445
- "upload-hint": q(n).t("platform.screen.CurrentUserProfileDialog.png-jpg-gif-and-webp-are-supported-up", "支持 PNG、JPG、GIF、WebP,文件不超过 1024 KB。"),
3445
+ "upload-hint": J(n).t("platform.screen.CurrentUserProfileDialog.png-jpg-gif-and-webp-are-supported-up", "支持 PNG、JPG、GIF、WebP,文件不超过 1024 KB。"),
3446
3446
  "onUpdate:value": r[0] ||= (e) => s.value = e
3447
3447
  }, null, 8, [
3448
3448
  "label",
@@ -3453,42 +3453,42 @@ var ul = {
3453
3453
  "form-session-key",
3454
3454
  "upload-hint"
3455
3455
  ])]),
3456
- B("div", Tl, [
3457
- B("p", El, K(q(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
3458
- B("h2", null, K(c.value.title || q(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
3459
- B("p", Dl, K(c.value.employeeNo || q(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
3460
- B("div", Ol, [B("span", null, K(c.value.organizationTitle || c.value.organizationId || q(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), B("span", null, K(c.value.departmentTitle || c.value.departmentId || q(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
3456
+ V("div", Tl, [
3457
+ V("p", El, q(J(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
3458
+ V("h2", null, q(c.value.title || J(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
3459
+ V("p", Dl, q(c.value.employeeNo || J(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
3460
+ V("div", Ol, [V("span", null, q(c.value.organizationTitle || c.value.organizationId || J(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), V("span", null, q(c.value.departmentTitle || c.value.departmentId || J(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
3461
3461
  ]),
3462
- B("aside", kl, [
3463
- B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
3464
- B("strong", null, K(e.profile?.username || "—"), 1),
3465
- B("small", null, K(e.profile?.timeZone || q(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
3462
+ V("aside", kl, [
3463
+ V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
3464
+ V("strong", null, q(e.profile?.username || "—"), 1),
3465
+ V("small", null, q(e.profile?.timeZone || J(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
3466
3466
  ])
3467
- ])) : R("v-if", !0),
3468
- c.value ? (W(), z("section", Al, [B("div", jl, [B("div", Ml, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), B("small", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), B("dl", Nl, [
3469
- B("dt", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
3470
- B("dd", null, K(c.value.organizationTitle || c.value.organizationId || "—") + " / " + K(c.value.departmentTitle || c.value.departmentId || "—"), 1),
3471
- B("dt", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
3472
- B("dd", null, K(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? q(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
3473
- ])]), B("div", Pl, [
3474
- B("div", Fl, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), B("small", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
3475
- B("div", Il, [B("label", null, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), H(q(P), {
3467
+ ])) : z("v-if", !0),
3468
+ c.value ? (G(), B("section", Al, [V("div", jl, [V("div", Ml, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), V("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), V("dl", Nl, [
3469
+ V("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
3470
+ V("dd", null, q(c.value.organizationTitle || c.value.organizationId || "—") + " / " + q(c.value.departmentTitle || c.value.departmentId || "—"), 1),
3471
+ V("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
3472
+ V("dd", null, q(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? J(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
3473
+ ])]), V("div", Pl, [
3474
+ V("div", Fl, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), V("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
3475
+ V("div", Il, [V("label", null, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), U(J(I), {
3476
3476
  value: a.value,
3477
3477
  disabled: !c.value.contactEditable || e.saving,
3478
3478
  "onUpdate:value": r[1] ||= (e) => a.value = e
3479
- }, null, 8, ["value", "disabled"])]), B("label", null, [B("span", null, K(q(n).t("platform.screen.CurrentUserProfileDialog.email", "邮箱")), 1), H(q(P), {
3479
+ }, null, 8, ["value", "disabled"])]), V("label", null, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.email", "邮箱")), 1), U(J(I), {
3480
3480
  value: o.value,
3481
3481
  disabled: !c.value.contactEditable || e.saving,
3482
3482
  "onUpdate:value": r[2] ||= (e) => o.value = e
3483
3483
  }, null, 8, ["value", "disabled"])])]),
3484
- c.value.contactEditable ? R("v-if", !0) : (W(), z("p", Ll, K(q(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
3485
- ])])) : (W(), z("section", Rl, [B("span", zl, K((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1), B("strong", null, K(e.profile?.username || q(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1)])),
3486
- e.externalLoginClient && e.authToken && e.open ? (W(), L(xl, {
3484
+ c.value.contactEditable ? z("v-if", !0) : (G(), B("p", Ll, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
3485
+ ])])) : (G(), B("section", Rl, [V("span", zl, q((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1), V("strong", null, q(e.profile?.username || J(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1)])),
3486
+ e.externalLoginClient && e.authToken && e.open ? (G(), R(xl, {
3487
3487
  key: 3,
3488
3488
  client: e.externalLoginClient,
3489
3489
  token: e.authToken
3490
- }, null, 8, ["client", "token"])) : R("v-if", !0)
3491
- ], 64)), e.error ? (W(), z("p", Bl, K(e.error), 1)) : R("v-if", !0)]),
3490
+ }, null, 8, ["client", "token"])) : z("v-if", !0)
3491
+ ], 64)), e.error ? (G(), B("p", Bl, q(e.error), 1)) : z("v-if", !0)]),
3492
3492
  _: 1
3493
3493
  }, 8, [
3494
3494
  "open",
@@ -3504,7 +3504,7 @@ var ul = {
3504
3504
  }, Ul = {
3505
3505
  key: 0,
3506
3506
  class: "access-token-secret"
3507
- }, Wl = ["title"], Gl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3507
+ }, Wl = ["title"], Gl = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
3508
3508
  name: "PersonalAccessTokens",
3509
3509
  __name: "PersonalAccessTokens",
3510
3510
  props: {
@@ -3512,7 +3512,7 @@ var ul = {
3512
3512
  sessionToken: {}
3513
3513
  },
3514
3514
  setup(e) {
3515
- let t = e, n = N(), r = G([]), i = G(!1), a = G(""), o = G(90), s = G(), c = G(), l = G(!1), u = G(), d = G(!1), f = G(!1), p = I(() => [
3515
+ let t = e, n = F(), r = K([]), i = K(!1), a = K(""), o = K(90), s = K(), c = K(), l = K(!1), u = K(), d = K(!1), f = K(!1), p = L(() => [
3516
3516
  30,
3517
3517
  90,
3518
3518
  180,
@@ -3520,20 +3520,20 @@ var ul = {
3520
3520
  ].map((e) => ({
3521
3521
  value: e,
3522
3522
  label: n.t("platform.access-tokens.days", "{days} 天", { days: e })
3523
- }))), m = I(() => [{
3523
+ }))), m = L(() => [{
3524
3524
  key: "name",
3525
3525
  title: n.t("platform.access-tokens.name", "名称")
3526
3526
  }, {
3527
3527
  key: "expiresAt",
3528
3528
  title: n.t("platform.access-tokens.expires-at", "到期时间"),
3529
3529
  width: 156
3530
- }]), h = I(() => r.value.map((e) => ({
3530
+ }]), h = L(() => r.value.map((e) => ({
3531
3531
  ...e,
3532
3532
  status: x(e)
3533
3533
  }))), g = !1;
3534
- ya(() => {
3534
+ va(() => {
3535
3535
  g = !0, s.value = void 0;
3536
- }), ba(_);
3536
+ }), ya(_);
3537
3537
  async function _() {
3538
3538
  l.value = !0, u.value = void 0, d.value = !1;
3539
3539
  try {
@@ -3546,7 +3546,7 @@ var ul = {
3546
3546
  }
3547
3547
  }
3548
3548
  function v(e) {
3549
- g || (u.value = () => Pt(en(e), n));
3549
+ g || (u.value = () => bt(Gt(e), n));
3550
3550
  }
3551
3551
  async function y() {
3552
3552
  if (i.value && !l.value && a.value.trim() && !s.value) {
@@ -3567,7 +3567,7 @@ var ul = {
3567
3567
  }
3568
3568
  async function b(e) {
3569
3569
  let i = r.value.find((t) => t.id === e);
3570
- if (i && !l.value && !(!await It({
3570
+ if (i && !l.value && !(!await St({
3571
3571
  title: n.t("platform.access-tokens.revoke-title", "撤销访问密钥"),
3572
3572
  content: n.t("platform.access-tokens.revoke-content", "使用“{name}”的工具将无法继续访问平台。", { name: i.name }),
3573
3573
  danger: !0
@@ -3584,7 +3584,7 @@ var ul = {
3584
3584
  }
3585
3585
  async function ee(e) {
3586
3586
  let i = r.value.find((t) => t.id === e);
3587
- if (i?.revokedAt && !l.value && !(!await It({
3587
+ if (i?.revokedAt && !l.value && !(!await St({
3588
3588
  title: n.t("platform.access-tokens.delete-title", "删除访问密钥"),
3589
3589
  content: n.t("platform.access-tokens.delete-content", "从列表中删除“{name}”?审计记录将保留。", { name: i.name }),
3590
3590
  danger: !0
@@ -3602,34 +3602,34 @@ var ul = {
3602
3602
  function x(e) {
3603
3603
  return e.revokedAt ? "revoked" : Date.parse(e.expiresAt) <= Date.now() ? "expired" : "active";
3604
3604
  }
3605
- return (e, t) => i.value || r.value.length || u.value || s.value ? (W(), z("section", Hl, [
3606
- s.value ? (W(), z("div", Ul, [B("label", null, [B("span", null, K(q(n).t("platform.access-tokens.copy-now", "密钥仅显示一次,请保存。")), 1), H(q(ui), {
3605
+ return (e, t) => i.value || r.value.length || u.value || s.value ? (G(), B("section", Hl, [
3606
+ s.value ? (G(), B("div", Ul, [V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.copy-now", "密钥仅显示一次,请保存。")), 1), U(J(Zn), {
3607
3607
  value: s.value,
3608
3608
  readonly: "",
3609
3609
  rows: 2
3610
- }, null, 8, ["value"])]), H(q(F), {
3610
+ }, null, 8, ["value"])]), U(J(P), {
3611
3611
  size: "small",
3612
3612
  onClick: t[0] ||= (e) => s.value = void 0
3613
3613
  }, {
3614
- default: Y(() => [V(K(q(n).t("platform.access-tokens.saved", "已保存")), 1)]),
3614
+ default: X(() => [H(q(J(n).t("platform.access-tokens.saved", "已保存")), 1)]),
3615
3615
  _: 1
3616
- })])) : i.value ? (W(), z("form", {
3616
+ })])) : i.value ? (G(), B("form", {
3617
3617
  key: 1,
3618
3618
  class: "access-token-create",
3619
- onSubmit: Aa(y, ["prevent"])
3619
+ onSubmit: ka(y, ["prevent"])
3620
3620
  }, [
3621
- B("label", null, [B("span", null, K(q(n).t("platform.access-tokens.name", "名称")), 1), H(q(P), {
3621
+ V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.name", "名称")), 1), U(J(I), {
3622
3622
  value: a.value,
3623
3623
  disabled: l.value,
3624
3624
  autocomplete: "off",
3625
3625
  "onUpdate:value": t[1] ||= (e) => a.value = e
3626
3626
  }, null, 8, ["value", "disabled"])]),
3627
- B("label", null, [B("span", null, K(q(n).t("platform.access-tokens.lifetime", "有效期")), 1), H(q(ei), {
3627
+ V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.lifetime", "有效期")), 1), U(J(li), {
3628
3628
  value: o.value,
3629
3629
  options: p.value,
3630
3630
  "allow-clear": !1,
3631
3631
  disabled: l.value,
3632
- "aria-label": q(n).t("platform.access-tokens.lifetime", "有效期"),
3632
+ "aria-label": J(n).t("platform.access-tokens.lifetime", "有效期"),
3633
3633
  "onUpdate:value": t[2] ||= (e) => o.value = Number(e)
3634
3634
  }, null, 8, [
3635
3635
  "value",
@@ -3637,32 +3637,32 @@ var ul = {
3637
3637
  "disabled",
3638
3638
  "aria-label"
3639
3639
  ])]),
3640
- H(q(F), {
3640
+ U(J(P), {
3641
3641
  type: "primary",
3642
3642
  "html-type": "submit",
3643
3643
  disabled: l.value || !a.value.trim(),
3644
3644
  loading: f.value
3645
3645
  }, {
3646
- default: Y(() => [V(K(q(n).t("platform.access-tokens.create", "创建密钥")), 1)]),
3646
+ default: X(() => [H(q(J(n).t("platform.access-tokens.create", "创建密钥")), 1)]),
3647
3647
  _: 1
3648
3648
  }, 8, ["disabled", "loading"])
3649
- ], 32)) : R("v-if", !0),
3650
- u.value ? (W(), L(q(_n), {
3649
+ ], 32)) : z("v-if", !0),
3650
+ u.value ? (G(), R(J(Ut), {
3651
3651
  key: 2,
3652
3652
  title: u.value(),
3653
3653
  message: ""
3654
- }, null, 8, ["title"])) : R("v-if", !0),
3655
- d.value ? (W(), L(q(F), {
3654
+ }, null, 8, ["title"])) : z("v-if", !0),
3655
+ d.value ? (G(), R(J(P), {
3656
3656
  key: 3,
3657
3657
  type: "text",
3658
3658
  size: "small",
3659
3659
  disabled: l.value,
3660
3660
  onClick: _
3661
3661
  }, {
3662
- default: Y(() => [V(K(q(n).t("platform.access-tokens.reload", "重新加载")), 1)]),
3662
+ default: X(() => [H(q(J(n).t("platform.access-tokens.reload", "重新加载")), 1)]),
3663
3663
  _: 1
3664
- }, 8, ["disabled"])) : R("v-if", !0),
3665
- H(q(In), {
3664
+ }, 8, ["disabled"])) : z("v-if", !0),
3665
+ U(J(Cn), {
3666
3666
  class: "access-token-list",
3667
3667
  columns: m.value,
3668
3668
  rows: h.value,
@@ -3674,25 +3674,25 @@ var ul = {
3674
3674
  "action-column-title": "",
3675
3675
  "action-column-fixed": !1,
3676
3676
  "action-column-width": 64,
3677
- "empty-description": q(n).t("platform.access-tokens.empty", "暂无访问密钥")
3677
+ "empty-description": J(n).t("platform.access-tokens.empty", "暂无访问密钥")
3678
3678
  }, {
3679
- cell: Y(({ column: e, record: t }) => [e.key === "name" ? (W(), z("div", {
3679
+ cell: X(({ column: e, record: t }) => [e.key === "name" ? (G(), B("div", {
3680
3680
  key: 0,
3681
3681
  class: "access-token-name",
3682
3682
  title: String(t.id)
3683
- }, [B("span", null, K(t.name), 1), B("code", null, K(t.displayPrefix) + "…", 1)], 8, Wl)) : e.key === "expiresAt" ? (W(), z(la, { key: 1 }, [t.status === "active" ? (W(), L(q(Wr), {
3683
+ }, [V("span", null, q(t.name), 1), V("code", null, q(t.displayPrefix) + "…", 1)], 8, Wl)) : e.key === "expiresAt" ? (G(), B(ca, { key: 1 }, [t.status === "active" ? (G(), R(J($t), {
3684
3684
  key: 1,
3685
3685
  value: String(t.expiresAt),
3686
3686
  precision: "minute"
3687
- }, null, 8, ["value"])) : (W(), L(q(Or), {
3687
+ }, null, 8, ["value"])) : (G(), R(J(kr), {
3688
3688
  key: 0,
3689
3689
  items: [{
3690
3690
  key: String(t.status),
3691
- label: t.status === "revoked" ? q(n).t("platform.access-tokens.revoked", "已撤销") : q(n).t("platform.access-tokens.expired", "已过期"),
3691
+ label: t.status === "revoked" ? J(n).t("platform.access-tokens.revoked", "已撤销") : J(n).t("platform.access-tokens.expired", "已过期"),
3692
3692
  color: t.status === "expired" ? "red" : void 0
3693
3693
  }]
3694
- }, null, 8, ["items"]))], 64)) : R("v-if", !0)]),
3695
- rowActions: Y(({ record: e }) => [e.revokedAt ? (W(), L(q(F), {
3694
+ }, null, 8, ["items"]))], 64)) : z("v-if", !0)]),
3695
+ rowActions: X(({ record: e }) => [e.revokedAt ? (G(), R(J(P), {
3696
3696
  key: 1,
3697
3697
  type: "text",
3698
3698
  size: "small",
@@ -3700,9 +3700,9 @@ var ul = {
3700
3700
  disabled: l.value,
3701
3701
  onClick: (t) => ee(String(e.id))
3702
3702
  }, {
3703
- default: Y(() => [V(K(q(n).t("platform.action.delete", "删除")), 1)]),
3703
+ default: X(() => [H(q(J(n).t("platform.action.delete", "删除")), 1)]),
3704
3704
  _: 1
3705
- }, 8, ["disabled", "onClick"])) : (W(), L(q(F), {
3705
+ }, 8, ["disabled", "onClick"])) : (G(), R(J(P), {
3706
3706
  key: 0,
3707
3707
  type: "text",
3708
3708
  size: "small",
@@ -3710,7 +3710,7 @@ var ul = {
3710
3710
  disabled: l.value,
3711
3711
  onClick: (t) => b(String(e.id))
3712
3712
  }, {
3713
- default: Y(() => [V(K(q(n).t("platform.access-tokens.revoke", "撤销")), 1)]),
3713
+ default: X(() => [H(q(J(n).t("platform.access-tokens.revoke", "撤销")), 1)]),
3714
3714
  _: 1
3715
3715
  }, 8, ["disabled", "onClick"]))]),
3716
3716
  _: 1
@@ -3720,9 +3720,9 @@ var ul = {
3720
3720
  "loading",
3721
3721
  "empty-description"
3722
3722
  ])
3723
- ])) : R("v-if", !0);
3723
+ ])) : z("v-if", !0);
3724
3724
  }
3725
- }), [["__scopeId", "data-v-07369c31"]]), Kl = /* @__PURE__ */ U({
3725
+ }), [["__scopeId", "data-v-07369c31"]]), Kl = /* @__PURE__ */ W({
3726
3726
  __name: "PersonalAccessTokenDialog",
3727
3727
  props: {
3728
3728
  open: { type: Boolean },
@@ -3731,23 +3731,23 @@ var ul = {
3731
3731
  },
3732
3732
  emits: ["close"],
3733
3733
  setup(e, { emit: t }) {
3734
- let n = e, r = t, i = N();
3735
- return (t, a) => (W(), L(q(lt), {
3734
+ let n = e, r = t, i = F();
3735
+ return (t, a) => (G(), R(J(ta), {
3736
3736
  open: n.open,
3737
- title: q(i).t("platform.access-tokens.title", "个人访问密钥"),
3737
+ title: J(i).t("platform.access-tokens.title", "个人访问密钥"),
3738
3738
  width: 640,
3739
3739
  "scroll-content": "",
3740
3740
  onCancel: a[1] ||= (e) => r("close")
3741
3741
  }, {
3742
- operation: Y(() => [H(q(F), { onClick: a[0] ||= (e) => r("close") }, {
3743
- default: Y(() => [V(K(q(i).t("platform.content.close", "关闭")), 1)]),
3742
+ operation: X(() => [U(J(P), { onClick: a[0] ||= (e) => r("close") }, {
3743
+ default: X(() => [H(q(J(i).t("platform.content.close", "关闭")), 1)]),
3744
3744
  _: 1
3745
3745
  })]),
3746
- default: Y(() => [e.open && e.sessionToken ? (W(), L(Gl, {
3746
+ default: X(() => [e.open && e.sessionToken ? (G(), R(Gl, {
3747
3747
  key: e.sessionToken,
3748
3748
  client: e.client,
3749
3749
  "session-token": e.sessionToken
3750
- }, null, 8, ["client", "session-token"])) : R("v-if", !0)]),
3750
+ }, null, 8, ["client", "session-token"])) : z("v-if", !0)]),
3751
3751
  _: 1
3752
3752
  }, 8, ["open", "title"]));
3753
3753
  }
@@ -3762,7 +3762,7 @@ var ul = {
3762
3762
  "disabled",
3763
3763
  "onClick",
3764
3764
  "onKeydown"
3765
- ], Zl = /*#__PURE__*/ ar(/* @__PURE__ */ U({
3765
+ ], Zl = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
3766
3766
  name: "ThemeSkinPreferencesDialog",
3767
3767
  __name: "ThemeSkinPreferencesDialog",
3768
3768
  props: {
@@ -3778,7 +3778,7 @@ var ul = {
3778
3778
  },
3779
3779
  emits: ["close", "select"],
3780
3780
  setup(e, { emit: t }) {
3781
- let n = N(), r = e, i = I(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3781
+ let n = F(), r = e, i = L(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3782
3782
  function o(e, t) {
3783
3783
  if (![
3784
3784
  "ArrowRight",
@@ -3794,25 +3794,25 @@ var ul = {
3794
3794
  let i = e.key === "Home" ? 0 : e.key === "End" ? r - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + r) % r, o = n?.children.item(i), s = o?.dataset.skinId;
3795
3795
  s && (a("select", s), o?.focus());
3796
3796
  }
3797
- return (t, r) => (W(), L(q(lt), {
3797
+ return (t, r) => (G(), R(J(ta), {
3798
3798
  open: e.open,
3799
- title: q(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3799
+ title: J(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3800
3800
  width: 460,
3801
- "confirm-text": e.saving ? q(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : q(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3801
+ "confirm-text": e.saving ? J(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : J(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3802
3802
  "confirm-loading": e.saving,
3803
3803
  onConfirm: r[0] ||= (e) => a("close"),
3804
3804
  onCancel: r[1] ||= (e) => a("close")
3805
3805
  }, {
3806
- default: Y(() => [B("section", ql, [
3807
- B("header", null, [B("h2", null, K(q(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), B("p", null, K(q(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3808
- i.value ? (W(), z("p", Jl, K(i.value), 1)) : R("v-if", !0),
3809
- B("div", {
3806
+ default: X(() => [V("section", ql, [
3807
+ V("header", null, [V("h2", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), V("p", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3808
+ i.value ? (G(), B("p", Jl, q(i.value), 1)) : z("v-if", !0),
3809
+ V("div", {
3810
3810
  class: "theme-skin-grid",
3811
3811
  role: "radiogroup",
3812
- "aria-label": q(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3813
- }, [(W(!0), z(la, null, wa(e.skins, (t, i) => (W(), z("button", {
3812
+ "aria-label": J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3813
+ }, [(G(!0), B(ca, null, Ca(e.skins, (t, i) => (G(), B("button", {
3814
3814
  key: t.id,
3815
- class: ga(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3815
+ class: ha(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3816
3816
  type: "button",
3817
3817
  role: "radio",
3818
3818
  "aria-checked": t.id === e.activeSkinId,
@@ -3822,9 +3822,9 @@ var ul = {
3822
3822
  onClick: (e) => a("select", t.id),
3823
3823
  onKeydown: (e) => o(e, i)
3824
3824
  }, [
3825
- B("span", {
3825
+ V("span", {
3826
3826
  class: "theme-skin-preview",
3827
- style: va({
3827
+ style: _a({
3828
3828
  "--skin-canvas": t.theme.support.canvas,
3829
3829
  "--skin-surface": t.theme.support.surface,
3830
3830
  "--skin-text": t.theme.support.text,
@@ -3832,12 +3832,12 @@ var ul = {
3832
3832
  "--skin-accent": t.theme.brandAccent.base
3833
3833
  })
3834
3834
  }, [...r[2] ||= [
3835
- B("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3836
- B("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3837
- B("i", { class: "theme-skin-preview-card" }, null, -1)
3835
+ V("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3836
+ V("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3837
+ V("i", { class: "theme-skin-preview-card" }, null, -1)
3838
3838
  ]], 4),
3839
- B("strong", null, K(t.titleKey ? q(n).t(t.titleKey, t.title) : t.title), 1),
3840
- B("small", null, K(t.descriptionKey ? q(n).t(t.descriptionKey, t.description) : t.description), 1)
3839
+ V("strong", null, q(t.titleKey ? J(n).t(t.titleKey, t.title) : t.title), 1),
3840
+ V("small", null, q(t.descriptionKey ? J(n).t(t.descriptionKey, t.description) : t.description), 1)
3841
3841
  ], 42, Xl))), 128))], 8, Yl)
3842
3842
  ])]),
3843
3843
  _: 1
@@ -3852,7 +3852,7 @@ var ul = {
3852
3852
  //#endregion
3853
3853
  //#region src/app/useCurrentUserProfile.ts
3854
3854
  function Ql(e) {
3855
- let t = G(), n = 0, r = !1, i = () => {
3855
+ let t = K(), n = 0, r = !1, i = () => {
3856
3856
  let t = e.currentUser();
3857
3857
  return t ? JSON.stringify([
3858
3858
  e.token(),
@@ -3875,12 +3875,12 @@ function Ql(e) {
3875
3875
  }
3876
3876
  }
3877
3877
  let o = () => a((t) => e.client.currentProfile(t));
3878
- return J([i, () => e.scopeKey?.()], () => {
3878
+ return Y([i, () => e.scopeKey?.()], () => {
3879
3879
  n++, t.value = void 0, o().catch(() => void 0);
3880
3880
  }, {
3881
3881
  immediate: !0,
3882
3882
  flush: "sync"
3883
- }), xa(() => {
3883
+ }), ba(() => {
3884
3884
  r = !0, n++;
3885
3885
  }), {
3886
3886
  profile: t,
@@ -3891,7 +3891,7 @@ function Ql(e) {
3891
3891
  //#endregion
3892
3892
  //#region src/app/usePersonalAccessTokenAccess.ts
3893
3893
  function $l(e) {
3894
- let t = G(!1), n = G(), r = 0, i = !1;
3894
+ let t = K(!1), n = K(), r = 0, i = !1;
3895
3895
  async function a() {
3896
3896
  if (i) return;
3897
3897
  let a = e.sessionToken(), o = e.scopeKey?.(), s = ++r;
@@ -3907,7 +3907,7 @@ function $l(e) {
3907
3907
  c() && (t.value = !1);
3908
3908
  }
3909
3909
  }
3910
- J([e.sessionToken, () => e.scopeKey?.()], () => {
3910
+ Y([e.sessionToken, () => e.scopeKey?.()], () => {
3911
3911
  t.value = !1, a();
3912
3912
  }, {
3913
3913
  immediate: !0,
@@ -3918,13 +3918,13 @@ function $l(e) {
3918
3918
  }, s = (t) => {
3919
3919
  t.storageArea === window.localStorage && e.sessionToken() !== n.value && a();
3920
3920
  };
3921
- return ba(() => {
3921
+ return ya(() => {
3922
3922
  window.addEventListener("focus", o), window.addEventListener("storage", s);
3923
- }), xa(() => {
3923
+ }), ba(() => {
3924
3924
  i = !0, r++, window.removeEventListener("focus", o), window.removeEventListener("storage", s);
3925
3925
  }), {
3926
3926
  available: t,
3927
- sessionToken: Ca(n),
3927
+ sessionToken: Sa(n),
3928
3928
  refresh: a
3929
3929
  };
3930
3930
  }
@@ -3934,7 +3934,7 @@ var eu = "workbench.theme-skin";
3934
3934
  async function tu(e, t, n = () => !0) {
3935
3935
  let r = await e.restore(eu, t, { persistence: "backend" });
3936
3936
  if (!n()) return t;
3937
- let i = tt(r).id;
3937
+ let i = sn(r).id;
3938
3938
  return await e.set(eu, i, { persistence: "local" }), i;
3939
3939
  }
3940
3940
  async function nu(e, t, n, r = () => !0) {
@@ -3950,7 +3950,7 @@ async function nu(e, t, n, r = () => !0) {
3950
3950
  }
3951
3951
  //#endregion
3952
3952
  //#region src/app/WorkbenchAccountCenter.vue
3953
- var ru = /* @__PURE__ */ U({
3953
+ var ru = /* @__PURE__ */ W({
3954
3954
  name: "WorkbenchAccountCenter",
3955
3955
  inheritAttrs: !1,
3956
3956
  __name: "WorkbenchAccountCenter",
@@ -3966,9 +3966,9 @@ var ru = /* @__PURE__ */ U({
3966
3966
  "update:skinId"
3967
3967
  ],
3968
3968
  setup(e, { expose: t, emit: n }) {
3969
- let r = e, i = n, a = N(), o = { request: (e) => r.context ? r.context.http.request(e) : Promise.reject(/* @__PURE__ */ Error("Account context is unavailable")) }, c = s(o), l = Ke(o), u = ee(o), d = I(() => {
3969
+ let r = e, i = n, a = F(), o = { request: (e) => r.context ? r.context.http.request(e) : Promise.reject(/* @__PURE__ */ Error("Account context is unavailable")) }, c = s(o), l = Ge(o), u = ee(o), d = L(() => {
3970
3970
  let e = r.context;
3971
- return e?.token ? Yr(e.http, { Authorization: `Bearer ${e.token}` }) : void 0;
3971
+ return e?.token ? ar(e.http, { Authorization: `Bearer ${e.token}` }) : void 0;
3972
3972
  }), f = () => r.context?.token, p = () => {
3973
3973
  let e = r.context?.currentUser;
3974
3974
  return JSON.stringify([
@@ -3978,12 +3978,12 @@ var ru = /* @__PURE__ */ U({
3978
3978
  e?.organizationId,
3979
3979
  e?.system
3980
3980
  ]);
3981
- }, m = I(() => r.context?.currentUser && f() && r.context.preferencePersistence !== "local" ? p() : void 0), h = Ql({
3981
+ }, m = L(() => r.context?.currentUser && f() && r.context.preferencePersistence !== "local" ? p() : void 0), h = Ql({
3982
3982
  currentUser: () => r.context?.currentUser,
3983
3983
  token: f,
3984
3984
  scopeKey: () => r.context?.http,
3985
3985
  client: c
3986
- }), g = I((e) => {
3986
+ }), g = L((e) => {
3987
3987
  let t = r.context?.http, n = p();
3988
3988
  return e && e.http === t && e.identity === n ? e : {
3989
3989
  http: t,
@@ -3993,178 +3993,178 @@ var ru = /* @__PURE__ */ U({
3993
3993
  scopeKey: () => g.value,
3994
3994
  client: u,
3995
3995
  sessionToken: () => r.context?.currentUser && !r.menu?.hiddenCommands?.includes("accessTokens") ? f() : void 0
3996
- }), v = I(() => r.context ? We(a, r.menu, _.available.value) : void 0), y = G(), b = G(!1), x = G(!1), te = G(!1), S = G(), ne = G(""), C = G(""), w = G(""), T = G(tt(r.skinId ?? bn.get("workbench.theme-skin", "light-blue")).id), E = G(), D = 0, re = 0, O = 0, k = 0;
3997
- J(() => r.skinId, (e) => {
3998
- e && (T.value = tt(e).id);
3996
+ }), v = L(() => r.context ? Ue(a, r.menu, _.available.value) : void 0), y = K(), b = K(!1), x = K(!1), S = K(!1), C = K(), te = K(""), w = K(""), T = K(""), E = K(sn(r.skinId ?? Wi.get("workbench.theme-skin", "light-blue")).id), ne = K(), D = 0, O = 0, k = 0, A = 0;
3997
+ Y(() => r.skinId, (e) => {
3998
+ e && (E.value = sn(e).id);
3999
3999
  });
4000
- function A() {
4001
- ne.value = "", C.value = "", w.value = "";
4002
- }
4003
4000
  function j() {
4004
- ++D, ++re, ++k, y.value = void 0, b.value = !1, x.value = !1, te.value = !1, S.value = void 0, E.value = void 0, A();
4001
+ te.value = "", w.value = "", T.value = "";
4002
+ }
4003
+ function M() {
4004
+ ++D, ++O, ++A, y.value = void 0, b.value = !1, x.value = !1, S.value = !1, C.value = void 0, ne.value = void 0, j();
4005
4005
  }
4006
- J([
4006
+ Y([
4007
4007
  p,
4008
4008
  () => r.context?.http,
4009
4009
  f
4010
4010
  ], () => {
4011
- j(), f() && r.context?.currentUser && se();
4011
+ M(), f() && r.context?.currentUser && oe();
4012
4012
  }, {
4013
4013
  immediate: !0,
4014
4014
  flush: "sync"
4015
- }), J(y, () => {
4016
- ++O, te.value = !1;
4017
- }, { flush: "sync" }), J(_.available, (e) => {
4018
- !e && y.value === "accessTokens" && M();
4019
- }), J(v, (e) => {
4020
- y.value && !b.value && e && !e.some((e) => e.key === y.value) && j();
4015
+ }), Y(y, () => {
4016
+ ++k, S.value = !1;
4017
+ }, { flush: "sync" }), Y(_.available, (e) => {
4018
+ !e && y.value === "accessTokens" && N();
4019
+ }), Y(v, (e) => {
4020
+ y.value && !b.value && e && !e.some((e) => e.key === y.value) && M();
4021
4021
  });
4022
- function M() {
4023
- x.value || (++re, y.value = void 0, b.value = !1, S.value = void 0, A());
4022
+ function N() {
4023
+ x.value || (++O, y.value = void 0, b.value = !1, C.value = void 0, j());
4024
4024
  }
4025
- function ae(e) {
4026
- let t = en(e);
4027
- S.value = () => Pt(t, a);
4025
+ function ie(e) {
4026
+ let t = Gt(e);
4027
+ C.value = () => bt(t, a);
4028
4028
  }
4029
- function oe(e) {
4030
- T.value = e, i("update:skinId", e);
4029
+ function ae(e) {
4030
+ E.value = e, i("update:skinId", e);
4031
4031
  }
4032
- async function se() {
4032
+ async function oe() {
4033
4033
  if (r.context?.preferencePersistence === "local") return;
4034
- let e = ++k;
4034
+ let e = ++A;
4035
4035
  try {
4036
- let t = await tu(bn, T.value, () => e === k);
4037
- e === k && oe(t);
4036
+ let t = await tu(Wi, E.value, () => e === A);
4037
+ e === A && ae(t);
4038
4038
  } catch {}
4039
4039
  }
4040
- async function ce(e) {
4041
- if (x.value || e === T.value) return;
4042
- let t = ++k, n = T.value;
4043
- oe(e), x.value = !0, E.value = void 0;
4040
+ async function se(e) {
4041
+ if (x.value || e === E.value) return;
4042
+ let t = ++A, n = E.value;
4043
+ ae(e), x.value = !0, ne.value = void 0;
4044
4044
  try {
4045
4045
  if (r.context?.preferencePersistence === "local") {
4046
- await bn.set(eu, e, { persistence: "local" });
4046
+ await Wi.set(eu, e, { persistence: "local" });
4047
4047
  return;
4048
4048
  }
4049
- let i = await nu(bn, e, n, () => t === k);
4050
- t === k && (oe(i.skinId), E.value = i.failure);
4049
+ let i = await nu(Wi, e, n, () => t === A);
4050
+ t === A && (ae(i.skinId), ne.value = i.failure);
4051
4051
  } finally {
4052
- t === k && (x.value = !1);
4052
+ t === A && (x.value = !1);
4053
4053
  }
4054
4054
  }
4055
- async function le(e) {
4055
+ async function ce(e) {
4056
4056
  if (!r.context) {
4057
4057
  i("userCommand", e);
4058
4058
  return;
4059
4059
  }
4060
4060
  let t = v.value?.find((t) => t.key === e);
4061
4061
  if (!t || t.disabled || x.value) return;
4062
- let n = ++re, a = p();
4062
+ let n = ++O, a = p();
4063
4063
  try {
4064
4064
  if (r.beforeCommand && !await r.beforeCommand({
4065
4065
  key: e,
4066
4066
  currentUser: r.context.currentUser
4067
- }) || n !== re || a !== p() || !v.value?.some((t) => t.key === e && !t.disabled)) return;
4068
- if (S.value = void 0, E.value = void 0, e.includes(".")) {
4067
+ }) || n !== O || a !== p() || !v.value?.some((t) => t.key === e && !t.disabled)) return;
4068
+ if (C.value = void 0, ne.value = void 0, e.includes(".")) {
4069
4069
  i("userCommand", e);
4070
4070
  return;
4071
4071
  }
4072
4072
  if (e === "logout") {
4073
- M(), i("logout", "requested");
4073
+ N(), i("logout", "requested");
4074
4074
  return;
4075
4075
  }
4076
- if (e === "accessTokens" && (await _.refresh(), n !== re || a !== p() || !_.available.value)) return;
4077
- A(), b.value = !1, y.value = e, e === "profile" && await ue();
4076
+ if (e === "accessTokens" && (await _.refresh(), n !== O || a !== p() || !_.available.value)) return;
4077
+ j(), b.value = !1, y.value = e, e === "profile" && await le();
4078
4078
  } catch (e) {
4079
- n === re && a === p() && (y.value ? ae(e) : xn(e, {
4079
+ n === O && a === p() && (y.value ? ie(e) : Gi(e, {
4080
4080
  source: "workbench-account",
4081
4081
  phase: "action"
4082
4082
  }));
4083
4083
  }
4084
4084
  }
4085
- async function ue() {
4086
- let e = D, t = ++O, n = () => e === D && t === O && y.value === "profile";
4087
- te.value = !0;
4085
+ async function le() {
4086
+ let e = D, t = ++k, n = () => e === D && t === k && y.value === "profile";
4087
+ S.value = !0;
4088
4088
  try {
4089
4089
  await h.refresh();
4090
4090
  } catch (e) {
4091
- n() && ae(e);
4091
+ n() && ie(e);
4092
4092
  } finally {
4093
- n() && (te.value = !1);
4093
+ n() && (S.value = !1);
4094
4094
  }
4095
4095
  }
4096
- async function de(e) {
4096
+ async function ue(e) {
4097
4097
  if (x.value) return;
4098
4098
  let t = D;
4099
- x.value = !0, S.value = void 0;
4099
+ x.value = !0, C.value = void 0;
4100
4100
  try {
4101
- await h.save(e) && t === D && (y.value = void 0, En(a.t("platform.screen.App.your-profile-has-been-saved", "个人资料已保存")));
4101
+ await h.save(e) && t === D && (y.value = void 0, Vi(a.t("platform.screen.App.your-profile-has-been-saved", "个人资料已保存")));
4102
4102
  } catch (e) {
4103
- t === D && ae(e);
4103
+ t === D && ie(e);
4104
4104
  } finally {
4105
4105
  t === D && (x.value = !1);
4106
4106
  }
4107
4107
  }
4108
- function fe() {
4109
- if (!ne.value.trim()) return a.t("platform.screen.App.enter-your-current-password", "请输入当前密码");
4110
- if (!C.value.trim()) return a.t("platform.screen.App.enter-your-new-password", "请输入新密码");
4111
- if (C.value !== w.value) return a.t("platform.screen.App.the-new-passwords-do-not-match", "两次输入的新密码不一致");
4112
- if (ne.value === C.value) return a.t("platform.screen.App.the-new-password-must-differ-from-the-current", "新密码不能与当前密码相同");
4108
+ function de() {
4109
+ if (!te.value.trim()) return a.t("platform.screen.App.enter-your-current-password", "请输入当前密码");
4110
+ if (!w.value.trim()) return a.t("platform.screen.App.enter-your-new-password", "请输入新密码");
4111
+ if (w.value !== T.value) return a.t("platform.screen.App.the-new-passwords-do-not-match", "两次输入的新密码不一致");
4112
+ if (te.value === w.value) return a.t("platform.screen.App.the-new-password-must-differ-from-the-current", "新密码不能与当前密码相同");
4113
4113
  }
4114
- async function pe() {
4114
+ async function fe() {
4115
4115
  if (x.value) return;
4116
- let e = fe();
4116
+ let e = de();
4117
4117
  if (e) {
4118
- S.value = () => e;
4118
+ C.value = () => e;
4119
4119
  return;
4120
4120
  }
4121
4121
  let t = f();
4122
4122
  if (!t) {
4123
- S.value = () => a.t("platform.screen.App.your-session-is-no-longer-valid-please-sign", "登录已失效,请重新登录");
4123
+ C.value = () => a.t("platform.screen.App.your-session-is-no-longer-valid-please-sign", "登录已失效,请重新登录");
4124
4124
  return;
4125
4125
  }
4126
4126
  let n = D;
4127
- x.value = !0, S.value = void 0;
4127
+ x.value = !0, C.value = void 0;
4128
4128
  try {
4129
4129
  await c.changeOwnPassword({
4130
- currentPassword: ne.value,
4131
- newPassword: C.value
4132
- }, t), n === D && (y.value = void 0, A(), i("logout", "passwordChanged"));
4130
+ currentPassword: te.value,
4131
+ newPassword: w.value
4132
+ }, t), n === D && (y.value = void 0, j(), i("logout", "passwordChanged"));
4133
4133
  } catch (e) {
4134
- n === D && ae(e);
4134
+ n === D && ie(e);
4135
4135
  } finally {
4136
4136
  n === D && (x.value = !1);
4137
4137
  }
4138
4138
  }
4139
- async function me() {
4140
- await ha(), j(), b.value = !0, y.value = "changePassword";
4139
+ async function pe() {
4140
+ await ma(), M(), b.value = !0, y.value = "changePassword";
4141
4141
  }
4142
- return ya(j), t({ requestPasswordChange: me }), (t, n) => (W(), z(la, null, [
4143
- Ta(t.$slots, "default", {
4142
+ return va(M), t({ requestPasswordChange: pe }), (t, n) => (G(), B(ca, null, [
4143
+ wa(t.$slots, "default", {
4144
4144
  items: v.value,
4145
- select: le,
4146
- refresh: q(_).refresh,
4147
- profile: q(h).profile.value,
4148
- skinId: T.value
4145
+ select: ce,
4146
+ refresh: J(_).refresh,
4147
+ profile: J(h).profile.value,
4148
+ skinId: E.value
4149
4149
  }),
4150
- e.context ? (W(), L(ie, {
4150
+ e.context ? (G(), R(re, {
4151
4151
  key: 0,
4152
4152
  open: y.value === "languageSettings",
4153
4153
  "identity-scope": m.value,
4154
- "onUpdate:open": n[0] ||= (e) => !e && M()
4155
- }, null, 8, ["open", "identity-scope"])) : R("v-if", !0),
4156
- H(Xc, {
4157
- "current-password": ne.value,
4158
- "onUpdate:currentPassword": n[1] ||= (e) => ne.value = e,
4159
- "new-password": C.value,
4160
- "onUpdate:newPassword": n[2] ||= (e) => C.value = e,
4161
- "confirm-password": w.value,
4162
- "onUpdate:confirmPassword": n[3] ||= (e) => w.value = e,
4154
+ "onUpdate:open": n[0] ||= (e) => !e && N()
4155
+ }, null, 8, ["open", "identity-scope"])) : z("v-if", !0),
4156
+ U(Xc, {
4157
+ "current-password": te.value,
4158
+ "onUpdate:currentPassword": n[1] ||= (e) => te.value = e,
4159
+ "new-password": w.value,
4160
+ "onUpdate:newPassword": n[2] ||= (e) => w.value = e,
4161
+ "confirm-password": T.value,
4162
+ "onUpdate:confirmPassword": n[3] ||= (e) => T.value = e,
4163
4163
  open: y.value === "changePassword",
4164
4164
  saving: x.value,
4165
- error: S.value?.(),
4166
- onClose: M,
4167
- onSubmit: pe
4165
+ error: C.value?.(),
4166
+ onClose: N,
4167
+ onSubmit: fe
4168
4168
  }, null, 8, [
4169
4169
  "current-password",
4170
4170
  "new-password",
@@ -4173,17 +4173,17 @@ var ru = /* @__PURE__ */ U({
4173
4173
  "saving",
4174
4174
  "error"
4175
4175
  ]),
4176
- H(Vl, {
4176
+ U(Vl, {
4177
4177
  open: y.value === "profile",
4178
- profile: q(h).profile.value,
4179
- loading: te.value,
4178
+ profile: J(h).profile.value,
4179
+ loading: S.value,
4180
4180
  saving: x.value,
4181
- error: S.value?.(),
4182
- "external-login-client": q(l),
4181
+ error: C.value?.(),
4182
+ "external-login-client": J(l),
4183
4183
  http: d.value,
4184
4184
  "auth-token": y.value === "profile" ? e.context?.token : void 0,
4185
- onClose: M,
4186
- onSubmit: de
4185
+ onClose: N,
4186
+ onSubmit: ue
4187
4187
  }, null, 8, [
4188
4188
  "open",
4189
4189
  "profile",
@@ -4194,24 +4194,24 @@ var ru = /* @__PURE__ */ U({
4194
4194
  "http",
4195
4195
  "auth-token"
4196
4196
  ]),
4197
- H(Kl, {
4197
+ U(Kl, {
4198
4198
  open: y.value === "accessTokens",
4199
- client: q(u),
4199
+ client: J(u),
4200
4200
  "session-token": e.context?.token,
4201
- onClose: M
4201
+ onClose: N
4202
4202
  }, null, 8, [
4203
4203
  "open",
4204
4204
  "client",
4205
4205
  "session-token"
4206
4206
  ]),
4207
- H(Zl, {
4207
+ U(Zl, {
4208
4208
  open: y.value === "themeSkin",
4209
- skins: q(_r),
4210
- "active-skin-id": T.value,
4209
+ skins: J(et),
4210
+ "active-skin-id": E.value,
4211
4211
  saving: x.value,
4212
- failure: E.value,
4213
- onClose: M,
4214
- onSelect: ce
4212
+ failure: ne.value,
4213
+ onClose: N,
4214
+ onSelect: se
4215
4215
  }, null, 8, [
4216
4216
  "open",
4217
4217
  "skins",
@@ -4242,7 +4242,7 @@ function au(e, t, n) {
4242
4242
  }
4243
4243
  //#endregion
4244
4244
  //#region src/consumer/AppWorkbenchShell.vue
4245
- var ou = /* @__PURE__ */ U({
4245
+ var ou = /* @__PURE__ */ W({
4246
4246
  name: "AppWorkbenchShell",
4247
4247
  inheritAttrs: !1,
4248
4248
  __name: "AppWorkbenchShell",
@@ -4280,15 +4280,15 @@ var ou = /* @__PURE__ */ U({
4280
4280
  "update:skinId"
4281
4281
  ],
4282
4282
  setup(e, { emit: t }) {
4283
- let n = N(), r = e, i = t, a = I(() => r.accountContext ? {
4283
+ let n = F(), r = e, i = t, a = L(() => r.accountContext ? {
4284
4284
  ...r.accountContext,
4285
4285
  currentUser: r.startup.session.currentUser
4286
4286
  } : void 0);
4287
4287
  async function o(e) {
4288
- return e.key === "logout" && !await Oe((r.startup.tabs ?? []).map((e) => e.key), "logout", n) ? !1 : !r.beforeAccountCommand || r.beforeAccountCommand(e);
4288
+ return e.key === "logout" && !await De((r.startup.tabs ?? []).map((e) => e.key), "logout", n) ? !1 : !r.beforeAccountCommand || r.beforeAccountCommand(e);
4289
4289
  }
4290
- let s = I(() => r.startup.activeTabKey), c = G([]), l = 0, u = Promise.resolve(), d = !1;
4291
- pe({
4290
+ let s = L(() => r.startup.activeTabKey), c = K([]), l = 0, u = Promise.resolve(), d = !1;
4291
+ fe({
4292
4292
  refreshMenus: r.loadMenus ? async () => {
4293
4293
  let e = r.startup.session, t = await r.loadMenus();
4294
4294
  if (!d || e !== r.startup.session) throw Error(n.t("platform.screen.AppWorkbenchShell.your-sign-in-state-has-changed-please-try", "登录状态已变化,请重试"));
@@ -4298,23 +4298,23 @@ var ou = /* @__PURE__ */ U({
4298
4298
  }), t;
4299
4299
  } : void 0,
4300
4300
  openMenu: (e) => {
4301
- let t = fe(e);
4301
+ let t = de(e);
4302
4302
  t && p(e, t);
4303
4303
  },
4304
- openRoute: te,
4305
- replaceRoute: S,
4306
- closeCurrentTab: ne,
4304
+ openRoute: S,
4305
+ replaceRoute: C,
4306
+ closeCurrentTab: te,
4307
4307
  openPage: x,
4308
4308
  replacePage: D,
4309
4309
  closePage: g,
4310
- setTabName: E
4311
- }), ba(() => {
4312
- d = !0, Ae(), A(), k(r.location);
4310
+ setTabName: ne
4313
4311
  }), ya(() => {
4312
+ d = !0, ke(), j(), A(r.location);
4313
+ }), va(() => {
4314
4314
  d = !1;
4315
- }), J(() => r.location, (e) => k(e));
4315
+ }), Y(() => r.location, (e) => A(e));
4316
4316
  function f(e, t = void 0) {
4317
- i("update:startup", e), t && O(e, t);
4317
+ i("update:startup", e), t && k(e, t);
4318
4318
  }
4319
4319
  function p(e, t) {
4320
4320
  if (t.openMode === "window") {
@@ -4335,25 +4335,25 @@ var ou = /* @__PURE__ */ U({
4335
4335
  }, "push");
4336
4336
  }
4337
4337
  async function h(e) {
4338
- await Oe([e], "refresh", n) && d && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
4338
+ await De([e], "refresh", n) && d && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
4339
4339
  }
4340
4340
  async function g(e) {
4341
- if (!await Oe([e], "close", n) || !d) return;
4341
+ if (!await De([e], "close", n) || !d) return;
4342
4342
  let t = mc(r.startup.tabs ?? [], r.startup.activeTabKey, e);
4343
4343
  c.value.some((t) => t.key === e) && b(Cc(c.value, [e])), f({
4344
4344
  ...r.startup,
4345
4345
  tabs: t.tabs,
4346
4346
  activeTabKey: t.activeTabKey
4347
- }, "replace"), we(e);
4347
+ }, "replace"), Ce(e);
4348
4348
  }
4349
4349
  async function _(e) {
4350
- if (!await Oe(e, "close", n) || !d) return;
4350
+ if (!await De(e, "close", n) || !d) return;
4351
4351
  let t = hc(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => c.value.some((t) => t.key === e));
4352
4352
  i.length > 0 && b(Cc(c.value, i)), f({
4353
4353
  ...r.startup,
4354
4354
  tabs: t.tabs,
4355
4355
  activeTabKey: t.activeTabKey
4356
- }, "replace"), e.forEach(we);
4356
+ }, "replace"), e.forEach(Ce);
4357
4357
  }
4358
4358
  function v(e) {
4359
4359
  let t = wc(r.startup.tabs ?? [], e, c.value.map((e) => e.key)), n = t.filter((e) => c.value.some((t) => t.key === e.key));
@@ -4377,7 +4377,7 @@ var ou = /* @__PURE__ */ U({
4377
4377
  }
4378
4378
  async function ee(e, t, n) {
4379
4379
  try {
4380
- u = u.catch(() => void 0).then(() => Gc(bn, e)), await u;
4380
+ u = u.catch(() => void 0).then(() => Gc(Wi, e)), await u;
4381
4381
  } catch {
4382
4382
  if (n !== l) return;
4383
4383
  c.value = t, f({
@@ -4394,18 +4394,18 @@ var ou = /* @__PURE__ */ U({
4394
4394
  activeTabKey: t.activeTabKey
4395
4395
  }, "push"), { created: t.created };
4396
4396
  }
4397
- function te(e, t = {}) {
4398
- return T(Me(e, t), "push", r.startup, t.tabTitle, t.newInstance);
4399
- }
4400
4397
  function S(e, t = {}) {
4401
- let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = Me(e, t);
4402
- if (!i || !a) return T(o, "replace", r.startup, t.tabTitle);
4398
+ return E(je(e, t), "push", r.startup, t.tabTitle, t.newInstance);
4399
+ }
4400
+ function C(e, t = {}) {
4401
+ let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = je(e, t);
4402
+ if (!i || !a) return E(o, "replace", r.startup, t.tabTitle);
4403
4403
  let s = lc(r.startup, o, {
4404
4404
  ...r.resolveOptions,
4405
4405
  title: t.tabTitle ?? r.resolveOptions.title
4406
4406
  }, !1, n), c = s.tabs?.find((e) => e.key === s.activeTabKey);
4407
4407
  if (!c) return { created: !1 };
4408
- let l = c.pageDescriptor && a.instanceKey ? He(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, u = l ? ye(l, r.resolveOptions) : c.fullPath, d = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
4408
+ let l = c.pageDescriptor && a.instanceKey ? Ve(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, u = l ? ve(l, r.resolveOptions) : c.fullPath, d = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
4409
4409
  ...a,
4410
4410
  ...c,
4411
4411
  key: i,
@@ -4421,31 +4421,31 @@ var ou = /* @__PURE__ */ U({
4421
4421
  activeTabKey: i
4422
4422
  }, "replace"), { created: !1 };
4423
4423
  }
4424
- function ne(e) {
4424
+ function te(e) {
4425
4425
  let t = r.startup.activeTabKey;
4426
- return t ? Fe([t]) ? (C(e, t), { created: !1 }) : w(e, t) : T(Me(e), "replace", r.startup);
4426
+ return t ? Pe([t]) ? (w(e, t), { created: !1 }) : T(e, t) : E(je(e), "replace", r.startup);
4427
4427
  }
4428
- async function C(e, t) {
4429
- if (await Oe([t], "close", n) && d && (r.startup.tabs ?? []).some((e) => e.key === t)) return w(e, t);
4428
+ async function w(e, t) {
4429
+ if (await De([t], "close", n) && d && (r.startup.tabs ?? []).some((e) => e.key === t)) return T(e, t);
4430
4430
  }
4431
- function w(e, t) {
4431
+ function T(e, t) {
4432
4432
  let n = mc(r.startup.tabs ?? [], r.startup.activeTabKey, t);
4433
- we(t), c.value.some((e) => e.key === t) && b(Cc(c.value, [t]));
4433
+ Ce(t), c.value.some((e) => e.key === t) && b(Cc(c.value, [t]));
4434
4434
  let i = n.tabs.find((t) => {
4435
- let n = t.fullPath ?? (t.pageDescriptor ? ye(t.pageDescriptor) : void 0);
4435
+ let n = t.fullPath ?? (t.pageDescriptor ? ve(t.pageDescriptor) : void 0);
4436
4436
  return n && new URL(n, "http://muyun.local").pathname === e;
4437
4437
  });
4438
4438
  return i ? (f({
4439
4439
  ...r.startup,
4440
4440
  tabs: n.tabs,
4441
4441
  activeTabKey: i.key
4442
- }, "replace"), { created: !1 }) : T(Me(e), "replace", {
4442
+ }, "replace"), { created: !1 }) : E(je(e), "replace", {
4443
4443
  ...r.startup,
4444
4444
  tabs: n.tabs,
4445
4445
  activeTabKey: n.activeTabKey
4446
4446
  });
4447
4447
  }
4448
- function T(e, t, i, a, o = !1) {
4448
+ function E(e, t, i, a, o = !1) {
4449
4449
  let s = new Set((i.tabs ?? []).map((e) => e.key)), c = lc(i, e, {
4450
4450
  ...r.resolveOptions,
4451
4451
  title: a ?? r.resolveOptions.title
@@ -4455,7 +4455,7 @@ var ou = /* @__PURE__ */ U({
4455
4455
  tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? Ic(e, a) : e)
4456
4456
  }), f(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
4457
4457
  }
4458
- function E(e, t) {
4458
+ function ne(e, t) {
4459
4459
  let n = t.trim();
4460
4460
  e && n && f({
4461
4461
  ...r.startup,
@@ -4467,24 +4467,24 @@ var ou = /* @__PURE__ */ U({
4467
4467
  ...n,
4468
4468
  title: t.title ?? n.title,
4469
4469
  pageDescriptor: t,
4470
- restoreState: { url: ye(t) }
4470
+ restoreState: { url: ve(t) }
4471
4471
  } : n), i = n.find((t) => t.key === e);
4472
4472
  i && c.value.some((t) => t.key === e) && b(xc(c.value, i)), f({
4473
4473
  ...r.startup,
4474
4474
  tabs: n
4475
4475
  }, "replace");
4476
4476
  }
4477
- function O(e, t) {
4477
+ function k(e, t) {
4478
4478
  let n = au(e, r.location, t);
4479
4479
  n && i("navigate", n);
4480
4480
  }
4481
- function k(e) {
4481
+ function A(e) {
4482
4482
  f(lc(r.startup, e, r.resolveOptions, !1, n));
4483
4483
  }
4484
- async function A() {
4484
+ async function j() {
4485
4485
  let e = l;
4486
4486
  try {
4487
- let t = vc(await Wc(bn), r.startup.menus, r.resolveOptions, n);
4487
+ let t = vc(await Wc(Wi), r.startup.menus, r.resolveOptions, n);
4488
4488
  if (!d || e !== l) return;
4489
4489
  c.value = t;
4490
4490
  let i = new Set(t.map((e) => e.key)), a = [...t, ...(r.startup.tabs ?? []).filter((e) => !i.has(e.key))];
@@ -4494,7 +4494,7 @@ var ou = /* @__PURE__ */ U({
4494
4494
  });
4495
4495
  } catch {}
4496
4496
  }
4497
- return (t, n) => (W(), L(ru, {
4497
+ return (t, n) => (G(), R(ru, {
4498
4498
  context: a.value,
4499
4499
  menu: e.accountMenu,
4500
4500
  "before-command": o,
@@ -4503,7 +4503,7 @@ var ou = /* @__PURE__ */ U({
4503
4503
  onLogout: n[2] ||= (e) => i("logout", e),
4504
4504
  "onUpdate:skinId": n[3] ||= (e) => i("update:skinId", e)
4505
4505
  }, {
4506
- default: Y((r) => [H(re, ma(t.$attrs, {
4506
+ default: X((r) => [U(O, pa(t.$attrs, {
4507
4507
  startup: e.startup,
4508
4508
  "current-user-employee-name": e.currentUserEmployeeName ?? r.profile?.employee?.title,
4509
4509
  "managed-account-menu-items": r.items,
@@ -4523,12 +4523,12 @@ var ou = /* @__PURE__ */ U({
4523
4523
  onUserCommand: (e) => r.select(e),
4524
4524
  onAccountMenuOpen: (e) => r.refresh(),
4525
4525
  onRetryLoad: n[0] ||= (e) => i("retryLoad")
4526
- }), ua({
4527
- default: Y(({ pageDescriptor: e }) => [Ta(t.$slots, "default", { pageDescriptor: e })]),
4526
+ }), la({
4527
+ default: X(({ pageDescriptor: e }) => [wa(t.$slots, "default", { pageDescriptor: e })]),
4528
4528
  _: 2
4529
4529
  }, [t.$slots["topbar-actions"] ? {
4530
4530
  name: "topbar-actions",
4531
- fn: Y((e) => [Ta(t.$slots, "topbar-actions", _a(fa(e)))]),
4531
+ fn: X((e) => [wa(t.$slots, "topbar-actions", ga(da(e)))]),
4532
4532
  key: "0"
4533
4533
  } : void 0]), 1040, [
4534
4534
  "startup",
@@ -4553,7 +4553,7 @@ var ou = /* @__PURE__ */ U({
4553
4553
  }), su = { class: "external-provisioning-confirmation" }, cu = {
4554
4554
  key: 0,
4555
4555
  role: "alert"
4556
- }, lu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4556
+ }, lu = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
4557
4557
  __name: "ExternalProvisioningConfirmation",
4558
4558
  props: {
4559
4559
  confirmation: {},
@@ -4562,77 +4562,126 @@ var ou = /* @__PURE__ */ U({
4562
4562
  },
4563
4563
  emits: ["confirm", "cancel"],
4564
4564
  setup(e) {
4565
- let t = N();
4566
- return (n, r) => (W(), z("main", su, [
4567
- B("h1", null, K(q(t).t("platform.external-login.confirm-title", "确认加入")), 1),
4568
- B("p", null, K(q(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
4569
- B("dl", null, [
4570
- B("dt", null, K(q(t).t("platform.external-login.person", "姓名")), 1),
4571
- B("dd", null, K(e.confirmation.displayName), 1),
4572
- B("dt", null, K(q(t).t("platform.external-login.tenant", "租户")), 1),
4573
- B("dd", null, K(e.confirmation.tenantId), 1),
4574
- B("dt", null, K(q(t).t("platform.external-login.placements", "任职归属")), 1),
4575
- B("dd", null, K((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
4565
+ let t = F();
4566
+ return (n, r) => (G(), B("main", su, [
4567
+ V("h1", null, q(J(t).t("platform.external-login.confirm-title", "确认加入")), 1),
4568
+ V("p", null, q(J(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
4569
+ V("dl", null, [
4570
+ V("dt", null, q(J(t).t("platform.external-login.person", "姓名")), 1),
4571
+ V("dd", null, q(e.confirmation.displayName), 1),
4572
+ V("dt", null, q(J(t).t("platform.external-login.tenant", "租户")), 1),
4573
+ V("dd", null, q(e.confirmation.tenantId), 1),
4574
+ V("dt", null, q(J(t).t("platform.external-login.placements", "任职归属")), 1),
4575
+ V("dd", null, q((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
4576
4576
  ]),
4577
- e.error ? (W(), z("p", cu, K(e.error), 1)) : R("v-if", !0),
4578
- H(q(F), {
4577
+ e.error ? (G(), B("p", cu, q(e.error), 1)) : z("v-if", !0),
4578
+ U(J(P), {
4579
4579
  disabled: e.busy,
4580
4580
  onClick: r[0] ||= (e) => n.$emit("confirm")
4581
4581
  }, {
4582
- default: Y(() => [V(K(q(t).t("platform.external-login.confirm-join", "确认并登录")), 1)]),
4582
+ default: X(() => [H(q(J(t).t("platform.external-login.confirm-join", "确认并登录")), 1)]),
4583
4583
  _: 1
4584
4584
  }, 8, ["disabled"]),
4585
- H(q(F), {
4585
+ U(J(P), {
4586
4586
  disabled: e.busy,
4587
4587
  onClick: r[1] ||= (e) => n.$emit("cancel")
4588
4588
  }, {
4589
- default: Y(() => [V(K(q(t).t("platform.external-login.cancel-join", "取消")), 1)]),
4589
+ default: X(() => [H(q(J(t).t("platform.external-login.cancel-join", "取消")), 1)]),
4590
4590
  _: 1
4591
4591
  }, 8, ["disabled"])
4592
4592
  ]));
4593
4593
  }
4594
4594
  }), [["__scopeId", "data-v-90a45828"]]);
4595
4595
  //#endregion
4596
+ //#region src/app/useLoginFailureFeedback.ts
4597
+ function uu() {
4598
+ let e = F(), t = K(), n = K(), r = K(0), i, a = !1, o = L(() => !!t.value);
4599
+ function s() {
4600
+ i !== void 0 && clearInterval(i), i = void 0, t.value = void 0, n.value = void 0;
4601
+ }
4602
+ ba(() => {
4603
+ a = !0, s();
4604
+ });
4605
+ let c = L(() => {
4606
+ if (t.value) {
4607
+ let n = Math.max(0, r.value - t.value.startedAt), i = Math.max(0, Math.ceil((t.value.duration - n) / 1e3)), a = `${Math.floor(i / 60)}:${String(i % 60).padStart(2, "0")}`;
4608
+ return t.value.triggered ? e.t("platform.screen.LoginView.lock-triggered", "连续登录失败,账号已临时锁定。{remaining} 后可重试。", { remaining: a }) : e.t("platform.screen.LoginView.account-locked", "账号暂时锁定,{remaining} 后可重试。急需登录请联系管理员。", { remaining: a });
4609
+ }
4610
+ if (n.value !== void 0) return e.t("platform.screen.LoginView.attempts-remaining", "用户名或密码错误。还可尝试 {count} 次,之后将临时锁定。", { count: n.value });
4611
+ }), l = L(() => t.value ? e.t("platform.screen.LoginView.unlock-time", "可重试时间:{time}", { time: new Date(t.value.until).toLocaleString(e.languageTag.value, { hour12: !1 }) }) : void 0);
4612
+ function u(e) {
4613
+ if (a) return !0;
4614
+ if (s(), !(e instanceof Rr) || e.code !== Jt.loginBadCredentials) return !1;
4615
+ let o = e.details?.loginFailure;
4616
+ if (!o || typeof o != "object" || Array.isArray(o)) return !1;
4617
+ let c = o;
4618
+ if (typeof c.lockedUntil == "string" && typeof c.serverTime == "string") {
4619
+ let e = Date.parse(c.lockedUntil), n = Date.parse(c.serverTime);
4620
+ if (!Number.isFinite(e) || !Number.isFinite(n)) return !1;
4621
+ let a = e - n;
4622
+ return a <= 0 || (r.value = performance.now(), t.value = {
4623
+ startedAt: r.value,
4624
+ duration: a,
4625
+ until: e,
4626
+ triggered: c.lockTriggered === !0
4627
+ }, i = setInterval(() => {
4628
+ r.value = performance.now(), t.value && r.value - t.value.startedAt >= t.value.duration && s();
4629
+ }, 250), !0);
4630
+ }
4631
+ return typeof c.remainingAttempts == "number" && Number.isSafeInteger(c.remainingAttempts) && c.remainingAttempts > 0 ? (n.value = c.remainingAttempts, !0) : !1;
4632
+ }
4633
+ return {
4634
+ locked: o,
4635
+ message: c,
4636
+ unlockTime: l,
4637
+ accept: u,
4638
+ clear: s
4639
+ };
4640
+ }
4641
+ //#endregion
4596
4642
  //#region src/app/loginTenant.ts
4597
- function uu(e, t = mu(), n = hu(), r = "/") {
4598
- let i = pu(t, n === fu(r));
4643
+ function du(e, t = hu(), n = gu(), r = "/") {
4644
+ let i = mu(t, n === pu(r));
4599
4645
  return i ? {
4600
4646
  tenantId: i,
4601
4647
  tenantLocked: !0
4602
4648
  } : {
4603
- tenantId: du(e),
4649
+ tenantId: fu(e),
4604
4650
  tenantLocked: !1
4605
4651
  };
4606
4652
  }
4607
- function du(e) {
4653
+ function fu(e) {
4608
4654
  return e?.trim() ?? "";
4609
4655
  }
4610
- function fu(e) {
4656
+ function pu(e) {
4611
4657
  let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
4612
4658
  return t === "/" ? t : `${t}/`;
4613
4659
  }
4614
- function pu(e, t) {
4615
- let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = du(n.get("_muyunTenantId"));
4616
- return r || !t ? r : du(n.get("tenantId")) || du(n.get("tenant"));
4660
+ function mu(e, t) {
4661
+ let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = fu(n.get("_muyunTenantId"));
4662
+ return r || !t ? r : fu(n.get("tenantId")) || fu(n.get("tenant"));
4617
4663
  }
4618
- function mu() {
4664
+ function hu() {
4619
4665
  return typeof window > "u" ? "" : window.location.search;
4620
4666
  }
4621
- function hu() {
4667
+ function gu() {
4622
4668
  return typeof window > "u" ? "/" : window.location.pathname;
4623
4669
  }
4624
4670
  //#endregion
4625
4671
  //#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
4626
- var gu = { class: "login-language" }, _u = { class: "login-page" }, vu = { class: "login-panel" }, yu = { class: "login-brand" }, bu = ["src"], xu = { key: 1 }, Su = { key: 0 }, Cu = {
4672
+ var _u = { class: "login-language" }, vu = { class: "login-page" }, yu = { class: "login-panel" }, bu = { class: "login-brand" }, xu = ["src"], Su = { key: 1 }, Cu = { key: 0 }, wu = {
4627
4673
  key: 1,
4628
4674
  class: "login-subtitle"
4629
- }, wu = {
4675
+ }, Tu = {
4630
4676
  key: 0,
4631
4677
  class: "login-error"
4632
- }, Tu = { key: 0 }, Eu = {
4678
+ }, Eu = {
4679
+ key: 0,
4680
+ class: "login-unlock-time"
4681
+ }, Du = { key: 0 }, Ou = {
4633
4682
  key: 3,
4634
4683
  class: "login-external"
4635
- }, Du = { class: "login-external-divider" }, Ou = { class: "login-context" }, ku = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4684
+ }, ku = { class: "login-external-divider" }, Au = { class: "login-context" }, ju = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
4636
4685
  name: "LoginView",
4637
4686
  __name: "LoginView",
4638
4687
  props: {
@@ -4645,28 +4694,32 @@ var gu = { class: "login-language" }, _u = { class: "login-page" }, vu = { class
4645
4694
  },
4646
4695
  emits: ["authenticated"],
4647
4696
  setup(e, { emit: t }) {
4648
- let n = N(), r = G();
4697
+ let n = F(), r = K();
4649
4698
  function i() {
4650
4699
  r.value && $c(r.value.state), r.value = void 0;
4651
4700
  }
4652
- let a = e, o = t, s = uu(void 0), c = G(s.tenantId), l = s.tenantLocked, u = G(du(a.initialUsername) || du(void 0)), d = G(du(void 0)), f = G(!1), p = G(), m = G(!1), h = G(), g = G(""), _ = G(""), v = G(), y = G(!1), b = G(), ee = G([]), x = G(!1), te = I(() => !l || !y.value && !b.value), S = I(() => v.value?.mode !== "logoOnly"), ne = I(() => v.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), C = I(() => v.value?.subtitle);
4653
- ba(async () => {
4701
+ let a = e, o = t, s = du(void 0), c = K(s.tenantId), l = s.tenantLocked, u = K(fu(a.initialUsername) || fu(void 0)), d = K(fu(void 0)), f = uu(), p = K(!1), m = K();
4702
+ Y([c, u], () => {
4703
+ f.clear(), m.value = void 0;
4704
+ });
4705
+ let h = K(!1), g = K(), _ = K(""), v = K(""), y = K(), b = K(!1), ee = K(), x = K([]), S = K(!1), C = L(() => !l || !b.value && !ee.value), te = L(() => y.value?.mode !== "logoOnly"), w = L(() => y.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), T = L(() => y.value?.subtitle);
4706
+ ya(async () => {
4654
4707
  if (l && c.value) {
4655
- y.value = !0;
4708
+ b.value = !0;
4656
4709
  try {
4657
4710
  if (!a.loginContextClient) throw Error("login context client is unavailable");
4658
4711
  let e = await a.loginContextClient.loginContext(c.value);
4659
- v.value = e.branding, ee.value = a.externalLoginClient ? e.externalLoginMethods ?? [] : [];
4712
+ y.value = e.branding, x.value = a.externalLoginClient ? e.externalLoginMethods ?? [] : [];
4660
4713
  } catch {
4661
- b.value = () => n.t("platform.screen.LoginView.unable-to-open-sign-in-for-this-tenant", "无法打开该租户的登录入口");
4714
+ ee.value = () => n.t("platform.screen.LoginView.unable-to-open-sign-in-for-this-tenant", "无法打开该租户的登录入口");
4662
4715
  } finally {
4663
- y.value = !1;
4716
+ b.value = !1;
4664
4717
  }
4665
4718
  }
4666
4719
  });
4667
- async function w(e) {
4720
+ async function E(e) {
4668
4721
  if (a.externalLoginClient) {
4669
- p.value = void 0, x.value = !0;
4722
+ m.value = void 0, S.value = !0;
4670
4723
  try {
4671
4724
  i();
4672
4725
  let t = await a.externalLoginClient.startLogin(e.providerId, c.value);
@@ -4674,163 +4727,168 @@ var gu = { class: "login-language" }, _u = { class: "login-page" }, vu = { class
4674
4727
  providerId: e.providerId,
4675
4728
  purpose: "login",
4676
4729
  tenantId: c.value
4677
- }), t.qrCode ? (r.value = t, x.value = !1) : el(t.authorizationUrl);
4730
+ }), t.qrCode ? (r.value = t, S.value = !1) : el(t.authorizationUrl);
4678
4731
  } catch (e) {
4679
- p.value = () => E(e), x.value = !1;
4732
+ m.value = () => D(e), S.value = !1;
4680
4733
  }
4681
4734
  }
4682
4735
  }
4683
- async function T() {
4684
- p.value = void 0, f.value = !0;
4736
+ async function ne() {
4737
+ if (p.value || a.loading || f.locked.value) return;
4738
+ let e = {
4739
+ tenantId: c.value,
4740
+ username: u.value,
4741
+ password: d.value
4742
+ };
4743
+ f.clear(), m.value = void 0, p.value = !0;
4685
4744
  try {
4686
- let e = await a.authClient.login({
4687
- tenantId: c.value,
4688
- username: u.value,
4689
- password: d.value
4690
- });
4691
- if (e.passwordChangeRequired) {
4692
- h.value = e.token, m.value = !0, p.value = void 0;
4745
+ let t = await a.authClient.login(e);
4746
+ if (t.passwordChangeRequired) {
4747
+ g.value = t.token, h.value = !0, m.value = void 0;
4693
4748
  return;
4694
4749
  }
4695
- o("authenticated", e);
4696
- } catch (e) {
4697
- p.value = () => E(e);
4750
+ o("authenticated", t);
4751
+ } catch (t) {
4752
+ e.tenantId === c.value && e.username === u.value && !f.accept(t) && (m.value = () => D(t));
4698
4753
  } finally {
4699
- f.value = !1;
4754
+ p.value = !1;
4700
4755
  }
4701
4756
  }
4702
- function E(e) {
4703
- return e instanceof rt ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === cn.networkError || e.code === cn.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === cn.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
4757
+ function D(e) {
4758
+ return e instanceof Rr ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === Jt.networkError || e.code === Jt.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.service-unavailable", "暂时无法连接服务,请稍后重试。") : e.code === Jt.loginBadCredentials ? n.t("platform.screen.LoginView.sign-in-rejected", "用户名或密码错误,请检查后重试。") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
4704
4759
  }
4705
- async function D() {
4706
- if (p.value = void 0, !h.value) {
4707
- p.value = () => n.t("platform.screen.LoginView.your-session-is-no-longer-valid-please-sign", "登录状态已失效,请重新登录"), m.value = !1;
4760
+ async function O() {
4761
+ if (m.value = void 0, !g.value) {
4762
+ m.value = () => n.t("platform.screen.LoginView.your-session-is-no-longer-valid-please-sign", "登录状态已失效,请重新登录"), h.value = !1;
4708
4763
  return;
4709
4764
  }
4710
- if (g.value !== _.value) {
4711
- p.value = () => n.t("platform.screen.LoginView.the-new-passwords-do-not-match", "两次输入的新密码不一致");
4765
+ if (_.value !== v.value) {
4766
+ m.value = () => n.t("platform.screen.LoginView.the-new-passwords-do-not-match", "两次输入的新密码不一致");
4712
4767
  return;
4713
4768
  }
4714
- f.value = !0;
4769
+ p.value = !0;
4715
4770
  try {
4716
4771
  await a.authClient.changeOwnPassword({
4717
4772
  currentPassword: d.value,
4718
- newPassword: g.value
4719
- }, h.value), d.value = g.value;
4773
+ newPassword: _.value
4774
+ }, g.value), d.value = _.value;
4720
4775
  let e = await a.authClient.login({
4721
4776
  tenantId: c.value,
4722
4777
  username: u.value,
4723
- password: g.value
4778
+ password: _.value
4724
4779
  });
4725
4780
  o("authenticated", e);
4726
4781
  } catch (e) {
4727
- p.value = () => e instanceof Error ? Pt(en(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
4782
+ m.value = () => e instanceof Error ? bt(Gt(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
4728
4783
  } finally {
4729
- f.value = !1;
4784
+ p.value = !1;
4730
4785
  }
4731
4786
  }
4732
- return (t, a) => (W(), z(la, null, [B("div", gu, [H(q(ze))]), B("main", _u, [B("section", vu, [
4733
- B("header", null, [B("div", yu, [v.value?.lightLogo ? (W(), z("img", {
4787
+ return (t, a) => (G(), B(ca, null, [V("div", _u, [U(J(Re))]), V("main", vu, [V("section", yu, [
4788
+ V("header", null, [V("div", bu, [y.value?.lightLogo ? (G(), B("img", {
4734
4789
  key: 0,
4735
4790
  class: "login-logo",
4736
- src: v.value.lightLogo,
4791
+ src: y.value.lightLogo,
4737
4792
  alt: ""
4738
- }, null, 8, bu)) : R("v-if", !0), S.value ? (W(), z("div", xu, [
4739
- v.value?.lightLogo ? R("v-if", !0) : (W(), z("p", Su, "MuYun Platform")),
4740
- B("h1", null, K(ne.value), 1),
4741
- C.value ? (W(), z("p", Cu, K(C.value), 1)) : R("v-if", !0)
4742
- ])) : R("v-if", !0)])]),
4743
- p.value || e.error || b.value ? (W(), z("p", wu, K(p.value?.() || e.error || b.value?.()), 1)) : R("v-if", !0),
4744
- r.value ? (W(), L(pl, {
4793
+ }, null, 8, xu)) : z("v-if", !0), te.value ? (G(), B("div", Su, [
4794
+ y.value?.lightLogo ? z("v-if", !0) : (G(), B("p", Cu, "MuYun Platform")),
4795
+ V("h1", null, q(w.value), 1),
4796
+ T.value ? (G(), B("p", wu, q(T.value), 1)) : z("v-if", !0)
4797
+ ])) : z("v-if", !0)])]),
4798
+ J(f).message.value || m.value || e.error || ee.value ? (G(), B("p", Tu, [H(q(J(f).message.value || m.value?.() || e.error || ee.value?.()) + " ", 1), J(f).unlockTime.value ? (G(), B("span", Eu, q(J(f).unlockTime.value), 1)) : z("v-if", !0)])) : z("v-if", !0),
4799
+ r.value ? (G(), R(pl, {
4745
4800
  key: r.value.state,
4746
4801
  start: r.value,
4747
4802
  onClose: i
4748
- }, null, 8, ["start"])) : R("v-if", !0),
4749
- m.value ? R("v-if", !0) : (W(), z("form", {
4803
+ }, null, 8, ["start"])) : z("v-if", !0),
4804
+ h.value ? z("v-if", !0) : (G(), B("form", {
4750
4805
  key: 2,
4751
4806
  class: "login-form",
4752
- onSubmit: Aa(T, ["prevent"])
4807
+ onSubmit: ka(ne, ["prevent"])
4753
4808
  }, [
4754
- q(l) ? R("v-if", !0) : (W(), z("label", Tu, [B("span", null, K(q(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), H(q(P), {
4809
+ J(l) ? z("v-if", !0) : (G(), B("label", Du, [V("span", null, q(J(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), U(J(I), {
4755
4810
  value: c.value,
4756
4811
  "onUpdate:value": a[0] ||= (e) => c.value = e,
4757
4812
  autocomplete: "organization",
4758
- placeholder: q(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
4813
+ placeholder: J(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
4759
4814
  }, null, 8, ["value", "placeholder"])])),
4760
- B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.username", "用户名")), 1), H(q(P), {
4815
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.username", "用户名")), 1), U(J(I), {
4761
4816
  value: u.value,
4762
4817
  "onUpdate:value": a[1] ||= (e) => u.value = e,
4763
4818
  autocomplete: "username",
4764
4819
  required: ""
4765
4820
  }, null, 8, ["value"])]),
4766
- B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.password", "密码")), 1), H(q(P), {
4821
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.password", "密码")), 1), U(J(I), {
4767
4822
  value: d.value,
4768
4823
  "onUpdate:value": a[2] ||= (e) => d.value = e,
4769
4824
  type: "password",
4825
+ "visibility-toggle": "",
4770
4826
  autocomplete: "current-password",
4771
4827
  required: ""
4772
4828
  }, null, 8, ["value"])]),
4773
- H(q(F), {
4829
+ U(J(P), {
4774
4830
  class: "login-submit",
4775
4831
  "html-type": "submit",
4776
4832
  type: "primary",
4777
- disabled: !te.value,
4778
- loading: f.value || e.loading || y.value
4833
+ disabled: !C.value || J(f).locked.value,
4834
+ loading: p.value || e.loading || b.value
4779
4835
  }, {
4780
- default: Y(() => [V(K(f.value || e.loading ? q(n).t("platform.screen.LoginView.signing-in", "登录中") : q(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
4836
+ default: X(() => [H(q(p.value || e.loading ? J(n).t("platform.screen.LoginView.signing-in", "登录中") : J(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
4781
4837
  _: 1
4782
4838
  }, 8, ["disabled", "loading"])
4783
4839
  ], 32)),
4784
- !m.value && ee.value.length > 0 ? (W(), z("div", Eu, [B("p", Du, K(q(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (W(!0), z(la, null, wa(ee.value, (e) => (W(), L(q(F), {
4840
+ !h.value && x.value.length > 0 ? (G(), B("div", Ou, [V("p", ku, q(J(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (G(!0), B(ca, null, Ca(x.value, (e) => (G(), R(J(P), {
4785
4841
  key: e.providerId,
4786
4842
  class: "login-submit",
4787
- loading: x.value,
4788
- disabled: x.value,
4789
- onClick: (t) => w(e)
4843
+ loading: S.value,
4844
+ disabled: S.value,
4845
+ onClick: (t) => E(e)
4790
4846
  }, {
4791
- default: Y(() => [V(K(q(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
4847
+ default: X(() => [H(q(J(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
4792
4848
  _: 2
4793
4849
  }, 1032, [
4794
4850
  "loading",
4795
4851
  "disabled",
4796
4852
  "onClick"
4797
- ]))), 128))])) : m.value ? (W(), z("form", {
4853
+ ]))), 128))])) : h.value ? (G(), B("form", {
4798
4854
  key: 4,
4799
4855
  class: "login-form",
4800
- onSubmit: Aa(D, ["prevent"])
4856
+ onSubmit: ka(O, ["prevent"])
4801
4857
  }, [
4802
- B("p", Ou, K(q(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
4803
- B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.new-password", "新密码")), 1), H(q(P), {
4804
- value: g.value,
4805
- "onUpdate:value": a[3] ||= (e) => g.value = e,
4858
+ V("p", Au, q(J(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
4859
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.new-password", "新密码")), 1), U(J(I), {
4860
+ value: _.value,
4861
+ "onUpdate:value": a[3] ||= (e) => _.value = e,
4806
4862
  type: "password",
4863
+ "visibility-toggle": "",
4807
4864
  autocomplete: "new-password",
4808
4865
  required: ""
4809
4866
  }, null, 8, ["value"])]),
4810
- B("label", null, [B("span", null, K(q(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), H(q(P), {
4811
- value: _.value,
4812
- "onUpdate:value": a[4] ||= (e) => _.value = e,
4867
+ V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), U(J(I), {
4868
+ value: v.value,
4869
+ "onUpdate:value": a[4] ||= (e) => v.value = e,
4813
4870
  type: "password",
4871
+ "visibility-toggle": "",
4814
4872
  autocomplete: "new-password",
4815
4873
  required: ""
4816
4874
  }, null, 8, ["value"])]),
4817
- H(q(F), {
4875
+ U(J(P), {
4818
4876
  class: "login-submit",
4819
4877
  "html-type": "submit",
4820
4878
  type: "primary",
4821
- loading: f.value || e.loading
4879
+ loading: p.value || e.loading
4822
4880
  }, {
4823
- default: Y(() => [V(K(f.value || e.loading ? q(n).t("platform.screen.LoginView.saving", "保存中") : q(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
4881
+ default: X(() => [H(q(p.value || e.loading ? J(n).t("platform.screen.LoginView.saving", "保存中") : J(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
4824
4882
  _: 1
4825
4883
  }, 8, ["loading"])
4826
- ], 32)) : R("v-if", !0)
4884
+ ], 32)) : z("v-if", !0)
4827
4885
  ])])], 64));
4828
4886
  }
4829
- }), [["__scopeId", "data-v-96af9dc4"]]);
4887
+ }), [["__scopeId", "data-v-21a4d9fb"]]);
4830
4888
  //#endregion
4831
4889
  //#region src/consumer/userPreferencePersistence.ts
4832
- function Au(e) {
4833
- qi({
4890
+ function Mu(e) {
4891
+ er({
4834
4892
  load: async (t) => (await e().request({
4835
4893
  path: `/platform.user-preference/${encodeURIComponent(t)}`,
4836
4894
  query: { clientType: "WEB" }
@@ -4852,7 +4910,7 @@ function Au(e) {
4852
4910
  }
4853
4911
  //#endregion
4854
4912
  //#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
4855
- var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4913
+ var Nu = ["aria-label"], Pu = /*#__PURE__*/ Xi(/* @__PURE__ */ W({
4856
4914
  name: "ReadonlyRecordWorkspace",
4857
4915
  __name: "ReadonlyRecordWorkspace",
4858
4916
  props: {
@@ -4870,35 +4928,35 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4870
4928
  }
4871
4929
  },
4872
4930
  setup(e, { expose: t }) {
4873
- tr("workspace");
4874
- let n = e, r = N(), i = Un(r), a = G(), o = ni(a, ki(0)), s = G({}), c = G({}), l = G({}), u = G(0), d = I({
4931
+ Nr("workspace");
4932
+ let n = e, r = F(), i = Ft(r), a = K(), o = Xr(a, ri(0)), s = K({}), c = K({}), l = K({}), u = K(0), d = L({
4875
4933
  get: () => s.value.criteria,
4876
4934
  set: (e) => {
4877
- T({
4935
+ E({
4878
4936
  ...s.value,
4879
4937
  criteria: e
4880
4938
  });
4881
4939
  }
4882
- }), f = I({
4940
+ }), f = L({
4883
4941
  get: () => s.value.sorts,
4884
4942
  set: (e) => {
4885
- T({
4943
+ E({
4886
4944
  ...s.value,
4887
4945
  sorts: e
4888
4946
  });
4889
4947
  }
4890
- }), p = G(!1), m = G(!1), h = G(""), g = I(() => JSON.stringify([
4948
+ }), p = K(!1), m = K(!1), h = K(""), g = L(() => JSON.stringify([
4891
4949
  n.view.sourceId,
4892
4950
  n.view.viewCode,
4893
4951
  n.view.scopeKey
4894
- ])), _ = I(() => n.view.querySchema), v = I(() => _.value?.criteriaComposition ?? "TREE"), y = I(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
4952
+ ])), _ = L(() => n.view.querySchema), v = L(() => _.value?.criteriaComposition ?? "TREE"), y = L(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
4895
4953
  ...e,
4896
- title: jn(e.title ?? e.name, e.titleText, r)
4897
- }))), b = I(() => y.value.filter((e) => e.persistentControl)), ee = I(() => Object.values(l.value).every((e) => e.valid));
4954
+ title: ot(e.title ?? e.name, e.titleText, r)
4955
+ }))), b = L(() => y.value.filter((e) => e.persistentControl)), ee = L(() => Object.values(l.value).every((e) => e.valid));
4898
4956
  function x(e) {
4899
4957
  return b.value.flatMap((t) => {
4900
4958
  let n = t.persistentControl, r = e?.[n.id] ?? n.defaultValues ?? [];
4901
- return r.length || gi(n.operator) ? [{
4959
+ return r.length || Sr(n.operator) ? [{
4902
4960
  kind: "CONDITION",
4903
4961
  fieldName: t.name,
4904
4962
  operator: n.operator,
@@ -4906,34 +4964,34 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4906
4964
  }] : [];
4907
4965
  });
4908
4966
  }
4909
- let te = I(() => x(s.value.persistentValues)), S = I(() => b.value.map((e) => {
4967
+ let S = L(() => x(s.value.persistentValues)), C = L(() => b.value.map((e) => {
4910
4968
  let t = e.persistentControl;
4911
4969
  return {
4912
4970
  ...t,
4913
- title: jn(t.title, t.titleText, r),
4971
+ title: ot(t.title, t.titleText, r),
4914
4972
  field: e,
4915
4973
  values: c.value[t.id] ?? t.defaultValues ?? [],
4916
4974
  options: n.queryOptionsByField[e.name],
4917
4975
  referencePicker: n.referencePickerOf?.(e)
4918
4976
  };
4919
4977
  }));
4920
- function ne() {
4921
- ee.value && !A.value && T({
4978
+ function te() {
4979
+ ee.value && !j.value && E({
4922
4980
  ...s.value,
4923
- persistentValues: Object.fromEntries(S.value.map((e) => [e.id, [...e.values]]))
4981
+ persistentValues: Object.fromEntries(C.value.map((e) => [e.id, [...e.values]]))
4924
4982
  });
4925
4983
  }
4926
- function C() {
4927
- c.value = {}, l.value = {}, u.value++, T({
4984
+ function w() {
4985
+ c.value = {}, l.value = {}, u.value++, E({
4928
4986
  ...s.value,
4929
4987
  persistentValues: void 0
4930
4988
  });
4931
4989
  }
4932
- let w = I(() => ({
4990
+ let T = L(() => ({
4933
4991
  ...n.query,
4934
- criteria: zi([
4992
+ criteria: Gr([
4935
4993
  n.query?.criteria,
4936
- ...te.value,
4994
+ ...S.value,
4937
4995
  d.value
4938
4996
  ]),
4939
4997
  sorts: f.value ?? n.query?.sorts ?? _.value?.defaultSorts.map((e) => ({
@@ -4942,15 +5000,15 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4942
5000
  })),
4943
5001
  quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
4944
5002
  }));
4945
- function T(e) {
4946
- let t = JSON.stringify(w.value), i = wr(zi([
5003
+ function E(e) {
5004
+ let t = JSON.stringify(T.value), i = fr(Gr([
4947
5005
  n.query?.criteria,
4948
5006
  ...x(e.persistentValues),
4949
5007
  e.criteria
4950
5008
  ]), r);
4951
- h.value = i ?? "", !i && (s.value = e, JSON.stringify(w.value) === t && O.goPage(1));
5009
+ h.value = i ?? "", !i && (s.value = e, JSON.stringify(T.value) === t && k.goPage(1));
4952
5010
  }
4953
- let E = I(() => JSON.stringify({
5011
+ let ne = L(() => JSON.stringify({
4954
5012
  composition: v.value,
4955
5013
  fields: _.value?.fields.map((e) => ({
4956
5014
  name: e.name,
@@ -4970,81 +5028,81 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
4970
5028
  },
4971
5029
  defaultSorts: _.value?.defaultSorts
4972
5030
  }));
4973
- J([g, E], () => {
5031
+ Y([g, ne], () => {
4974
5032
  s.value = {}, c.value = {}, l.value = {}, u.value++, p.value = !1, m.value = !1, h.value = "";
4975
5033
  }, { flush: "sync" });
4976
5034
  function D() {
4977
5035
  m.value = !0, p.value = !p.value;
4978
5036
  }
4979
- function re(e) {
5037
+ function O(e) {
4980
5038
  h.value = "", d.value = e;
4981
5039
  }
4982
- let O = aa({
5040
+ let k = ia({
4983
5041
  view: () => n.view,
4984
- query: w,
5042
+ query: T,
4985
5043
  pageSize: n.pageSize,
4986
5044
  contentLanguage: () => i.languageTag.value
4987
- }), { result: k, loading: A, error: j, selected: M, detail: ie, detailLoading: ae, detailError: oe, pageNum: se, pageSize: ce } = O;
4988
- J(E, () => {
4989
- O.search("");
5045
+ }), { result: A, loading: j, error: M, selected: N, detail: re, detailLoading: ie, detailError: ae, pageNum: oe, pageSize: se } = k;
5046
+ Y(ne, () => {
5047
+ k.search("");
4990
5048
  }, { flush: "sync" });
4991
- let le = G("");
4992
- J(() => n.pageSize, (e) => void O.resizePage(e)), J(O.quickSearch, (e) => {
4993
- le.value = e;
4994
- }), J(g, () => {
4995
- le.value = "";
5049
+ let ce = K("");
5050
+ Y(() => n.pageSize, (e) => void k.resizePage(e)), Y(k.quickSearch, (e) => {
5051
+ ce.value = e;
5052
+ }), Y(g, () => {
5053
+ ce.value = "";
4996
5054
  }, { flush: "sync" });
4997
- let ue = I(() => n.view.descriptor.page?.list), de = I(() => kr(ue.value?.fields)), fe = I(() => n.view.descriptor.page?.detail?.display ? dt(n.view.descriptor) : /* @__PURE__ */ new Map()), pe = I(() => !o.value), me = I(() => ue.value?.title?.text ?? ue.value?.fields.title ?? n.view.viewCode), he = I(() => M.value ? n.view.detail?.title(M.value) ?? me.value : me.value), ge = I(() => k.value?.pages ?? 0);
4998
- function _e(e) {
4999
- return Pt(en(e), r);
5055
+ let le = L(() => n.view.descriptor.page?.list), ue = L(() => Ar(le.value?.fields)), de = L(() => n.view.descriptor.page?.detail?.display ? ra(n.view.descriptor) : /* @__PURE__ */ new Map()), fe = L(() => !o.value), pe = L(() => le.value?.title?.text ?? le.value?.fields.title ?? n.view.viewCode), me = L(() => N.value ? n.view.detail?.title(N.value) ?? pe.value : pe.value), he = L(() => A.value?.pages ?? 0);
5056
+ function ge(e) {
5057
+ return bt(Gt(e), r);
5000
5058
  }
5001
5059
  return t({
5002
- refresh: O.refresh,
5003
- closeDetail: O.closeDetail
5004
- }), (t, i) => (W(), z("section", {
5060
+ refresh: k.refresh,
5061
+ closeDetail: k.closeDetail
5062
+ }), (t, i) => (G(), B("section", {
5005
5063
  ref_key: "host",
5006
5064
  ref: a,
5007
5065
  class: "readonly-record-workspace",
5008
- "aria-label": me.value
5009
- }, [H(Ir, {
5066
+ "aria-label": pe.value
5067
+ }, [U(yi, {
5010
5068
  "explorer-count": 0,
5011
- "detail-surface": !!q(M) && pe.value,
5012
- "list-surface": !q(M) || !pe.value
5069
+ "detail-surface": !!J(N) && fe.value,
5070
+ "list-surface": !J(N) || !fe.value
5013
5071
  }, {
5014
- default: Y(() => [H(Hn, {
5015
- title: me.value,
5016
- subtitle: ue.value?.subtitle?.text,
5072
+ default: X(() => [U(Vn, {
5073
+ title: pe.value,
5074
+ subtitle: le.value?.subtitle?.text,
5017
5075
  "title-action-icon": "reload",
5018
- "title-action-title": q(r).t("platform.read-view.refresh", "刷新"),
5019
- "title-action-disabled": q(A),
5076
+ "title-action-title": J(r).t("platform.read-view.refresh", "刷新"),
5077
+ "title-action-disabled": J(j),
5020
5078
  "quick-search-visible": e.quickSearch && (_.value?.quickSearch.enabled ?? !0),
5021
- "quick-search-value": le.value,
5022
- "quick-search-placeholder": ue.value?.searchPlaceholder,
5023
- "quick-search-disabled": q(A),
5024
- columns: de.value,
5025
- rows: q(k)?.records ?? [],
5079
+ "quick-search-value": ce.value,
5080
+ "quick-search-placeholder": le.value?.searchPlaceholder,
5081
+ "quick-search-disabled": J(j),
5082
+ columns: ue.value,
5083
+ rows: J(A)?.records ?? [],
5026
5084
  "row-key": (t) => e.view.recordKey(t),
5027
- "selected-row-key": q(M) ? e.view.recordKey(q(M)) : void 0,
5085
+ "selected-row-key": J(N) ? e.view.recordKey(J(N)) : void 0,
5028
5086
  "clickable-rows": !!e.view.detail,
5029
- "table-visible": !q(A) && !q(j) && !!q(k)?.records.length,
5087
+ "table-visible": !J(j) && !J(M) && !!J(A)?.records.length,
5030
5088
  pageable: "",
5031
- total: q(k)?.total ?? 0,
5032
- "total-known": q(k)?.totalKnown ?? !0,
5033
- "page-num": q(se),
5034
- "page-size": q(ce),
5035
- pages: ge.value,
5036
- "pagination-disabled": q(A) || !q(k),
5037
- onTitleAction: q(O).refresh,
5038
- "onUpdate:quickSearchValue": i[5] ||= (e) => le.value = e,
5039
- onQuickSearch: q(O).search,
5040
- onPageChange: q(O).goPage,
5041
- onPageSizeChange: q(O).resizePage,
5042
- onRowClick: i[6] ||= (e) => q(O).select(e)
5043
- }, ua({
5044
- persistentQueries: Y(() => [H(Qe, {
5045
- controls: S.value,
5089
+ total: J(A)?.total ?? 0,
5090
+ "total-known": J(A)?.totalKnown ?? !0,
5091
+ "page-num": J(oe),
5092
+ "page-size": J(se),
5093
+ pages: he.value,
5094
+ "pagination-disabled": J(j) || !J(A),
5095
+ onTitleAction: J(k).refresh,
5096
+ "onUpdate:quickSearchValue": i[5] ||= (e) => ce.value = e,
5097
+ onQuickSearch: J(k).search,
5098
+ onPageChange: J(k).goPage,
5099
+ onPageSizeChange: J(k).resizePage,
5100
+ onRowClick: i[6] ||= (e) => J(k).select(e)
5101
+ }, la({
5102
+ persistentQueries: X(() => [U(Ze, {
5103
+ controls: C.value,
5046
5104
  "reset-key": `${g.value}:${u.value}`,
5047
- disabled: q(A),
5105
+ disabled: J(j),
5048
5106
  valid: ee.value,
5049
5107
  "onUpdate:values": i[0] ||= (e, t) => c.value = {
5050
5108
  ...c.value,
@@ -5054,23 +5112,23 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
5054
5112
  ...l.value,
5055
5113
  [e]: t
5056
5114
  },
5057
- onApply: ne,
5058
- onReset: C
5115
+ onApply: te,
5116
+ onReset: w
5059
5117
  }, null, 8, [
5060
5118
  "controls",
5061
5119
  "reset-key",
5062
5120
  "disabled",
5063
5121
  "valid"
5064
- ]), Ta(t.$slots, "queries", {}, void 0, !0)]),
5065
- queryControls: Y(() => [H(ti, {
5122
+ ]), wa(t.$slots, "queries", {}, void 0, !0)]),
5123
+ queryControls: X(() => [U(ui, {
5066
5124
  "sort-visible": !!_.value,
5067
5125
  "sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
5068
5126
  sorts: f.value,
5069
5127
  "filter-visible": v.value !== "NONE" && y.value.some((e) => v.value !== "FLAT_AND" || !e.persistentControl),
5070
- "filter-title": v.value === "FLAT_AND" ? q(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : q(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
5128
+ "filter-title": v.value === "FLAT_AND" ? J(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : J(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
5071
5129
  expanded: p.value,
5072
- count: q(pr)(d.value),
5073
- disabled: q(A),
5130
+ count: J(Ni)(d.value),
5131
+ disabled: J(j),
5074
5132
  onSortChange: i[2] ||= (e) => f.value = e,
5075
5133
  onToggle: D
5076
5134
  }, null, 8, [
@@ -5083,24 +5141,24 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
5083
5141
  "count",
5084
5142
  "disabled"
5085
5143
  ])]),
5086
- operations: Y(() => [Ta(t.$slots, "operations", { refresh: q(O).refresh }, void 0, !0)]),
5087
- beforeTable: Y(() => [h.value ? (W(), L(q(_n), {
5144
+ operations: X(() => [wa(t.$slots, "operations", { refresh: J(k).refresh }, void 0, !0)]),
5145
+ beforeTable: X(() => [h.value ? (G(), R(J(Ut), {
5088
5146
  key: 0,
5089
5147
  message: h.value
5090
- }, null, 8, ["message"])) : R("v-if", !0), q(j) ? (W(), L(q(_n), {
5148
+ }, null, 8, ["message"])) : z("v-if", !0), J(M) ? (G(), R(J(Ut), {
5091
5149
  key: 1,
5092
- message: _e(q(j))
5093
- }, null, 8, ["message"])) : q(A) ? (W(), L(q(ra), { key: 2 })) : q(k)?.records.length ? R("v-if", !0) : (W(), L(q(Ot), {
5150
+ message: ge(J(M))
5151
+ }, null, 8, ["message"])) : J(j) ? (G(), R(J(dn), { key: 2 })) : J(A)?.records.length ? z("v-if", !0) : (G(), R(J(jn), {
5094
5152
  key: 3,
5095
- description: q(r).t("platform.read-view.empty", "暂无符合条件的记录")
5153
+ description: J(r).t("platform.read-view.empty", "暂无符合条件的记录")
5096
5154
  }, null, 8, ["description"]))]),
5097
- cell: Y(({ column: n, record: r }) => [Ta(t.$slots, "cell", {
5098
- column: de.value.find((e) => e.key === n.key),
5155
+ cell: X(({ column: n, record: r }) => [wa(t.$slots, "cell", {
5156
+ column: ue.value.find((e) => e.key === n.key),
5099
5157
  record: r
5100
- }, () => [H(Nr, {
5101
- column: de.value.find((e) => e.key === n.key),
5158
+ }, () => [U(Yr, {
5159
+ column: ue.value.find((e) => e.key === n.key),
5102
5160
  record: r,
5103
- reading: q(k)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
5161
+ reading: J(A)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
5104
5162
  }, null, 8, [
5105
5163
  "column",
5106
5164
  "record",
@@ -5109,18 +5167,18 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
5109
5167
  _: 2
5110
5168
  }, [m.value ? {
5111
5169
  name: "conditions",
5112
- fn: Y(() => [ka(B("section", null, [(W(), L(vr, {
5170
+ fn: X(() => [Oa(V("section", null, [(G(), R(gr, {
5113
5171
  key: g.value,
5114
5172
  fields: y.value,
5115
- conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...te.value],
5173
+ conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...S.value],
5116
5174
  "excluded-field-names": v.value === "FLAT_AND" ? b.value.map((e) => e.name) : [],
5117
5175
  "option-items-by-field": e.queryOptionsByField,
5118
5176
  "reference-contexts": {},
5119
5177
  "reference-picker-of": e.referencePickerOf,
5120
- disabled: q(A),
5178
+ disabled: J(j),
5121
5179
  composition: v.value === "FLAT_AND" ? "FLAT_AND" : "TREE",
5122
- onApply: re,
5123
- onClear: i[3] ||= (e) => re(void 0),
5180
+ onApply: O,
5181
+ onClear: i[3] ||= (e) => O(void 0),
5124
5182
  onValidation: i[4] ||= (e) => h.value = e
5125
5183
  }, null, 8, [
5126
5184
  "fields",
@@ -5130,7 +5188,7 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
5130
5188
  "reference-picker-of",
5131
5189
  "disabled",
5132
5190
  "composition"
5133
- ]))], 512), [[Oa, p.value]])]),
5191
+ ]))], 512), [[Da, p.value]])]),
5134
5192
  key: "0"
5135
5193
  } : void 0]), 1032, [
5136
5194
  "title",
@@ -5157,32 +5215,32 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
5157
5215
  "onQuickSearch",
5158
5216
  "onPageChange",
5159
5217
  "onPageSizeChange"
5160
- ]), H(ji, {
5161
- open: !!q(M),
5162
- docked: pe.value,
5163
- title: he.value,
5218
+ ]), U(Ei, {
5219
+ open: !!J(N),
5220
+ docked: fe.value,
5221
+ title: me.value,
5164
5222
  dismissal: "dismissible",
5165
- onClose: q(O).closeDetail
5166
- }, ua({
5167
- default: Y(() => [q(oe) ? (W(), L(q(_n), {
5223
+ onClose: J(k).closeDetail
5224
+ }, la({
5225
+ default: X(() => [J(ae) ? (G(), R(J(Ut), {
5168
5226
  key: 0,
5169
- message: _e(q(oe))
5170
- }, null, 8, ["message"])) : q(ae) ? (W(), L(q(ra), { key: 1 })) : q(M) && q(ie) ? (W(), z(la, { key: 2 }, [H(Cn, {
5171
- record: q(ie),
5172
- fields: fe.value
5173
- }, null, 8, ["record", "fields"]), Ta(t.$slots, "detail", {
5174
- record: q(M),
5175
- detail: q(ie),
5176
- refresh: q(O).refresh
5177
- }, void 0, !0)], 64)) : R("v-if", !0)]),
5227
+ message: ge(J(ae))
5228
+ }, null, 8, ["message"])) : J(ie) ? (G(), R(J(dn), { key: 1 })) : J(N) && J(re) ? (G(), B(ca, { key: 2 }, [U(qi, {
5229
+ record: J(re),
5230
+ fields: de.value
5231
+ }, null, 8, ["record", "fields"]), wa(t.$slots, "detail", {
5232
+ record: J(N),
5233
+ detail: J(re),
5234
+ refresh: J(k).refresh
5235
+ }, void 0, !0)], 64)) : z("v-if", !0)]),
5178
5236
  _: 2
5179
- }, [q(M) && q(ie) && !q(ae) && !q(oe) ? {
5237
+ }, [J(N) && J(re) && !J(ie) && !J(ae) ? {
5180
5238
  name: "operation",
5181
- fn: Y(() => [Ta(t.$slots, "detailOperations", {
5182
- record: q(M),
5183
- detail: q(ie),
5184
- refresh: q(O).refresh,
5185
- close: q(O).closeDetail
5239
+ fn: X(() => [wa(t.$slots, "detailOperations", {
5240
+ record: J(N),
5241
+ detail: J(re),
5242
+ refresh: J(k).refresh,
5243
+ close: J(k).closeDetail
5186
5244
  }, void 0, !0)]),
5187
5245
  key: "0"
5188
5246
  } : void 0]), 1032, [
@@ -5192,13 +5250,13 @@ var ju = ["aria-label"], Mu = /*#__PURE__*/ ar(/* @__PURE__ */ U({
5192
5250
  "onClose"
5193
5251
  ])]),
5194
5252
  _: 3
5195
- }, 8, ["detail-surface", "list-surface"])], 8, ju));
5253
+ }, 8, ["detail-surface", "list-surface"])], 8, Nu));
5196
5254
  }
5197
5255
  }), [["__scopeId", "data-v-e13b15ec"]]);
5198
5256
  //#endregion
5199
5257
  //#region src/app/useExternalLoginHost.ts
5200
- function Nu(e) {
5201
- let t = N(), n = G(), r = G(!1), i, a = G(), o = G(!1);
5258
+ function Fu(e) {
5259
+ let t = F(), n = K(), r = K(!1), i, a = K(), o = K(!1);
5202
5260
  async function s() {
5203
5261
  let r = a.value;
5204
5262
  if (r && !o.value) {
@@ -5210,7 +5268,7 @@ function Nu(e) {
5210
5268
  });
5211
5269
  i.status === "succeeded" ? (a.value = void 0, i.login ? await e.onAuthenticated(i.login) : n.value = () => t.t("platform.external-login.created-sign-in-again", "账号已创建,请重新扫码登录")) : n.value = () => nl(i, t);
5212
5270
  } catch (e) {
5213
- n.value = () => Pt(en(e), t);
5271
+ n.value = () => bt(Gt(e), t);
5214
5272
  } finally {
5215
5273
  o.value = !1;
5216
5274
  }
@@ -5236,23 +5294,23 @@ function Nu(e) {
5236
5294
  return c.status === "confirmationRequired" && c.confirmation && s.purpose === "login" ? (a.value = {
5237
5295
  pending: s,
5238
5296
  confirmation: c.confirmation
5239
- }, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (En(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => nl(c, t), s.purpose === "login" && !e.signedIn() || (Wi(n.value()), !1));
5297
+ }, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (Vi(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => nl(c, t), s.purpose === "login" && !e.signedIn() || (dt(n.value()), !1));
5240
5298
  } catch (r) {
5241
- return n.value = () => Pt(en(r), t), !e.signedIn() || (Wi(n.value()), !1);
5299
+ return n.value = () => bt(Gt(r), t), !e.signedIn() || (dt(n.value()), !1);
5242
5300
  } finally {
5243
5301
  r.value = !1;
5244
5302
  }
5245
5303
  }
5246
5304
  return {
5247
5305
  client: e.client,
5248
- confirmation: I(() => a.value?.confirmation),
5249
- confirming: I(() => o.value),
5306
+ confirmation: L(() => a.value?.confirmation),
5307
+ confirming: L(() => o.value),
5250
5308
  confirmProvisioning: s,
5251
5309
  cancelProvisioning() {
5252
5310
  o.value || (a.value = void 0, n.value = void 0);
5253
5311
  },
5254
- error: I(() => n.value?.()),
5255
- completing: I(() => r.value),
5312
+ error: L(() => n.value?.()),
5313
+ completing: L(() => r.value),
5256
5314
  completeReturn() {
5257
5315
  return i ||= c().finally(() => {
5258
5316
  i = void 0;
@@ -5261,4 +5319,4 @@ function Nu(e) {
5261
5319
  };
5262
5320
  }
5263
5321
  //#endregion
5264
- export { rt as AppError, ou as AppWorkbenchShell, Pr as AssistantCapabilityUsageError, et as AssistantConversationInterruptedError, $n as AssistantEffectInterruptedError, Tr as AssistantOperationRejectedError, Tr as OperationRejectedError, on as BusinessNotificationPanel, Xc as ChangeOwnPasswordDialog, ea as CronExpressionInput, Vl as CurrentUserProfileDialog, Wr as DateTimeText, Yi as DraftUpdateRejectedError, Zi as DrawerOperationBar, Qn as DurationSecondsInput, ge as DynamicModuleWorkspaceDetailView, xl as ExternalIdentityBindings, lu as ExternalProvisioningConfirmation, Dr as FileSizeText, pi as FileTransferUploadCancelledError, xr as FileTransferUploader, ze as LanguageSelector, ku as LoginView, wi as ManagementExplorerColumn, Ir as ManagementWorkspace, Gn as ModuleContextProvider, Vn as ModuleHttpProvider, qe as ModuleReferenceRecordDetailBrowser, rr as OperationUsageError, Kl as PersonalAccessTokenDialog, qc as PlatformAdminOutlet, qs as PlatformAdminRouteOutlet, Mu as ReadonlyRecordWorkspace, gt as ReadonlyReferenceValue, Kt as RecordDetailDrawer, $i as RecordDetailExtensionSection, Cn as RecordDetailFields, _i as RecordDetailPanel, nr as RecordExplorerPanel, Nr as RecordQueryListCell, Hn as RecordQueryListSurface, oi as ReferencePicker, Ei as ReferencePickerReadError, or as ReferenceRecordDetailBrowser, Jr as SingleImageFileReferenceField, si as StaleAssistantInvocationError, xi as TenantScopeExplorer, Zl as ThemeSkinPreferencesDialog, F as UiButton, In as UiDataTable, Cr as UiDatePicker, Bt as UiDropdown, Ot as UiEmpty, _n as UiError, Qi as UiIcon, P as UiInput, Ri as UiInputGroup, Qt as UiLanguageProvider, Xr as UiSearchInput, ei as UiSelect, Mt as UiSidePanel, Bn as UiSwitch, ui as UiTextArea, Jn as UiThemeProvider, Wt as UiTree, Rr as UiTreeSelect, Cs as VueQueryPlugin, re as Workbench, ru as WorkbenchAccountCenter, he as WorkbenchAssistantPanel, f as WorkbenchMenu, ae as WorkbenchOutlet, ce as WorkspaceViewOutlet, ft as actionResultData, cc as activeTabUrlOf, gc as arrangeLockedMenuTabs, mr as boundedAssistantConversationHistory, O as buildWorkbenchMegaMenuModel, St as businessContentGenerationBatch, qt as businessContentLabel, Un as businessContentLanguageContext, Rn as businessContentLanguages, yt as businessContentPath, Kn as businessContentReadHeaders, Wn as businessNotificationExpired, Vi as canQueryRecycleBin, k as canonicalDynamicModulePath, sn as changeBusinessContentTranslation, x as clearAuthToken, Ki as codeOperationErrorMessage, Ys as configureAuthenticationRecovery, Yn as configureModuleContext, C as configureModulePageEnhancementContributions, o as configureModulePageEnhancements, Au as configureUserPreferencePersistence, de as configureWorkspaceViewContributions, It as confirmAction, Oe as confirmDiscardWorkspaceViewState, r as connectAppRealtime, Ui as connectRealtimeBusinessEvents, Tn as connectRealtimeBusinessNotifications, xt as connectRealtimeDataChanges, vt as connectRealtimeUserNotifications, te as constructionPlanLimits, an as contextDataChangeChannel, Di as createAssistantCapabilitySelection, Ds as createAssistantConversationClient, Mi as createAssistantDisplayObservations, Zr as createAssistantOperationConfirmation, sr as createAssistantSurfaceRegistry, qn as createAssistantTurnRequester, s as createAuthClient, Zs as createBackendHttpClient, $r as createBrowserFileTransferUpload, Os as createBusinessNotificationSession, hn as createCodeTextPresentation, Es as createConstructionPlanClient, xe as createDataChangeDispatcher, Ln as createDataExchangeClient, Ke as createExternalLoginClient, Ai as createHttpClient, dn as createLanguageContext, Lt as createLanguagePreferenceController, E as createLoginContextClient, er as createManagedDetailRelationClient, l as createMenuClient, j as createMenuTab, mn as createModuleContext, ci as createModuleCrudClient, Ge as createModulePageEnhancementRegistry, Oi as createModuleTreeClient, nt as createModuleTreeContext, cr as createNavigatorReferenceCrudClient, qr as createNavigatorReferenceTreeClient, Xn as createOperationConfirmation, c as createPageBootstrapClient, ee as createPersonalAccessTokenClient, ws as createQueryClient, Ur as createRealtimeClient, pt as createReferenceResolveClient, Ce as createSessionClient, Hr as createSseParser, Ii as createStaticModuleCrudClient, dr as createStaticModuleTreeClient, br as createStaticResourceCrudClient, fi as createStaticResourceTreeClient, An as createUuid, d as createWorkbenchMenuNodes, ia as createWorkflowAdminClient, ut as createWorkflowClient, Nn as createWorkflowDefinitionClient, me as createWorkspaceViewDescriptor, Ne as createWorkspaceViewRegistry, it as dataChangeChannel, pn as defaultUiThemeSkinId, sa as defineWorkspaceView, be as disconnectAppRealtime, De as dismissWorkspaceViewDescriptor, Fr as displayModuleRuntime, S as dynamicModuleAliasFromPath, u as effectiveAuthToken, Kr as emptyAssistantCapabilityInputSchema, h as filterWorkbenchMenuNodes, n as findFirstNavigationMenu, Pe as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, A as firstDeepRootIdOf, fe as getMenuNavigationTarget, fr as hasExecutableDetailRelationMutationContract, Sr as hasExecutableDetailRelationQueryContract, Xi as hasRecycleBinAbility, Fe as hasWorkspaceViewDiscardProtection, Br as imConversationMessageChannel, Zt as imMessageSendCommand, zn as invokeBusinessNotificationRecordAction, lr as isHttpStreamClient, zs as isPlatformAdminRoutePage, Be as isTabMenuTarget, ta as isTextReference, zr as isUnexpectedPlatformError, ke as isWindowMenuTarget, ki as listDetailWorkspaceMinWidth, Gr as loadBusinessContentGeneration, at as loadBusinessContentHistory, Vr as loadBusinessContentReading, $t as loadBusinessContentSources, nn as loadBusinessContentTranslationHistory, $e as loadLanguageCatalog, se as lookupOperationReceipt, Xt as modelFailureMessage, ir as moduleAbilityCodes, tn as moduleDataChangeChannel, T as modulePageWorkspaceViews, v as normalizeChangeSet, en as normalizeError, i as normalizeMenuMineResponse, Qr as normalizeModuleListResponse, jr as normalizeModulePageResponse, Er as normalizeModuleRecord, Zn as normalizeModuleTreeResponse, ln as organizationPublicDataChangeChannel, wt as organizationPublicNotificationChannel, st as originalPresentation, kt as pageActionEntryDescription, Gt as pageActionEntryTitle, bi as pageActionEntryVisible, Vt as pageActionIntent, b as pageAssistantCatalog, Ie as pageDescriptorFromUrl, ye as pageDescriptorToUrl, oe as pageInstanceKeyOf, Je as pagePublicationDigest, Fi as parseEmptyAssistantCapabilityInput, w as parseOperationReceiptReference, Is as platformAdminModuleRoutes, Ls as platformAdminRouteLayouts, Fs as platformAdminRoutePrefixes, Ps as platformAdminRoutes, gr as platformCodeTextOriginal, Pi as platformCodeTextReference, cn as platformErrorCodes, ai as platformLanguageContext, Ft as platformPingCommand, un as prepareBusinessContentTranslation, xn as presentPlatformError, mt as presentPlatformInfo, Wi as presentPlatformMessage, En as presentPlatformSuccess, D as presentWorkbenchRealtimeStatus, jn as presentationLabel, ur as provideAssistantSurfaceHost, Ue as provideCurrentUserContext, Ti as provideLanguageContext, hr as provideModuleContextConfig, Sn as provideRecordReadRefreshGuard, pe as provideWorkbenchNavigation, Yt as provideWorkspaceUnsavedStateRegistrar, Ve as provideWorkspaceViewHost, Ts as queryKeys, fn as readAssistantAvailability, Jt as realtimeDestinations, gn as realtimeMessageTypes, At as recordBusinessContentArray, On as recordBusinessContentText, na as recordDataChangeChannel, Pn as recordPresentationLabel, Et as recordPresentationText, M as refreshModulePageList, Nt as refreshWorkflowRecordActions, hi as registerUiLanguageLocales, Cc as removeLockedMenuTabs, Tt as requestBusinessContentGeneration, Ct as resolveGlobalErrorPresentation, yn as resolveOperationErrorMessage, je as resolvePageDescriptor, Rs as resolvePlatformAdminRoute, Ht as resolvePresentationText, dt as resolveRecordDetailFields, kr as resolveRecordQueryListColumns, oa as resolveRecordReadEntry, Hi as resolveWebActionResult, wn as resolveWebActionResultMessage, _e as resolveWorkspaceView, ct as resourceDataChangeChannel, Mn as resourceRecordDataChangeChannel, Ar as restoreAssistantOperationReceipt, Wc as restoreLockedTabPreference, vc as restoreLockedWorkbenchTabs, Bi as restoreOperationConfirmation, tu as restoreThemeSkinPreference, lc as restoreWorkbenchStartupStateFromUrl, Me as routeUrlWithOpenOptions, ri as runAssistantConversation, Si as runAssistantStep, yr as sameAssistantInvocationToken, p as saveAuthSessionId, g as saveAuthToken, Gc as saveLockedTabPreference, nu as saveThemeSkinPreference, jt as sessionActivityCommand, ne as storedAuthSessionId, Ze as storedAuthToken, _ as subscribeAppBusinessEvents, y as subscribeAppDataChanges, Ae as syncModulePageWorkspaceViewContributions, Re as tabIdentityKeyOf, le as tabKeyOf, kn as tenantPublicDataChangeChannel, Fn as tenantPublicNotificationChannel, Lr as textReferenceMatchesOriginal, eu as themeSkinPreferenceKey, vi as translatedPresentation, Te as tryPageDescriptorFromUrl, tt as uiThemeSkinById, _r as uiThemeSkins, Mr as unwrapResponsePayload, xc as updateLockedMenuTabs, Li as uploadedFileId, di as useAssistantSurfaceHost, Dn as useBusinessContentGenerationBatch, Ji as useBusinessContentReading, Ye as useCurrentUserContext, a as useEffectiveAuthToken, Nu as useExternalLoginHost, N as useLanguageContext, Ni as useModuleContext, ii as useModuleHttpClient, Ci as useModuleTreeContext, Ks as usePageDescriptor, Gs as usePageRoute, $l as usePersonalAccessTokenAccess, ht as useRecordReadRefreshGuard, Gi as useRecordReadRefreshRevision, aa as useRecordReadSession, Ee as useWorkbenchNavigation, ni as useWorkspaceDetailSurface, ue as useWorkspaceViewHost, ve as useWorkspaceViewNavigation, vn as useWorkspaceViewUnsavedState, Dt as userBusinessEventChannel, Ut as userBusinessNotificationChannel, Pt as userFacingErrorMessage, yi as userImMessageChannel, zt as userNotificationChannel, bn as userPreferences, ot as validateCronExpression, bt as webDataChangeKey, mi as webDataChangeTypes, _t as webDataChanges, Yr as withHttpHeaders, li as withLanguageContext, He as withPageInstanceKey, rn as withWebActionResultChanges, Rt as withoutRecordPresentation, Xe as workbenchAccountCommands };
5322
+ export { Rr as AppError, ou as AppWorkbenchShell, _i as AssistantCapabilityUsageError, on as AssistantConversationInterruptedError, jr as AssistantEffectInterruptedError, Er as AssistantOperationRejectedError, Er as OperationRejectedError, ht as BusinessNotificationPanel, Xc as ChangeOwnPasswordDialog, Qi as CronExpressionInput, Vl as CurrentUserProfileDialog, $t as DateTimeText, Pi as DraftUpdateRejectedError, Ii as DrawerOperationBar, Tr as DurationSecondsInput, he as DynamicModuleWorkspaceDetailView, xl as ExternalIdentityBindings, lu as ExternalProvisioningConfirmation, Or as FileSizeText, yr as FileTransferUploadCancelledError, lr as FileTransferUploader, Re as LanguageSelector, ju as LoginView, $r as ManagementExplorerColumn, yi as ManagementWorkspace, Lt as ModuleContextProvider, Bn as ModuleHttpProvider, Ke as ModuleReferenceRecordDetailBrowser, Ji as OperationUsageError, Kl as PersonalAccessTokenDialog, qc as PlatformAdminOutlet, qs as PlatformAdminRouteOutlet, Pu as ReadonlyRecordWorkspace, _n as ReadonlyReferenceValue, Ot as RecordDetailDrawer, Ri as RecordDetailExtensionSection, qi as RecordDetailFields, di as RecordDetailPanel, Ti as RecordExplorerPanel, Yr as RecordQueryListCell, Vn as RecordQueryListSurface, Qn as ReferencePicker, ai as ReferencePickerReadError, Zi as ReferenceRecordDetailBrowser, ir as SingleImageFileReferenceField, Jn as StaleAssistantInvocationError, gi as TenantScopeExplorer, Zl as ThemeSkinPreferencesDialog, P as UiButton, Cn as UiDataTable, dr as UiDatePicker, mi as UiDropdown, jn as UiEmpty, Ut as UiError, Li as UiIcon, I as UiInput, Wr as UiInputGroup, Ir as UiLanguageProvider, or as UiSearchInput, li as UiSelect, Dn as UiSidePanel, zn as UiSwitch, Zn as UiTextArea, Fn as UiThemeProvider, Et as UiTree, xi as UiTreeSelect, Cs as VueQueryPlugin, O as Workbench, ru as WorkbenchAccountCenter, me as WorkbenchAssistantPanel, f as WorkbenchMenu, ie as WorkbenchOutlet, se as WorkspaceViewOutlet, pn as actionResultData, cc as activeTabUrlOf, gc as arrangeLockedMenuTabs, $e as boundedAssistantConversationHistory, k as buildWorkbenchMegaMenuModel, bn as businessContentGenerationBatch, Mt as businessContentLabel, Ft as businessContentLanguageContext, Ln as businessContentLanguages, yt as businessContentPath, Nn as businessContentReadHeaders, It as businessNotificationExpired, qn as canQueryRecycleBin, A as canonicalDynamicModulePath, gt as changeBusinessContentTranslation, x as clearAuthToken, $n as codeOperationErrorMessage, Ys as configureAuthenticationRecovery, In as configureModuleContext, w as configureModulePageEnhancementContributions, o as configureModulePageEnhancements, Mu as configureUserPreferencePersistence, ue as configureWorkspaceViewContributions, St as confirmAction, De as confirmDiscardWorkspaceViewState, r as connectAppRealtime, ut as connectRealtimeBusinessEvents, Bi as connectRealtimeBusinessNotifications, yn as connectRealtimeDataChanges, vt as connectRealtimeUserNotifications, S as constructionPlanLimits, mt as contextDataChangeChannel, ti as createAssistantCapabilitySelection, Ds as createAssistantConversationClient, pr as createAssistantDisplayObservations, oi as createAssistantOperationConfirmation, Si as createAssistantSurfaceRegistry, Pn as createAssistantTurnRequester, s as createAuthClient, Zs as createBackendHttpClient, ci as createBrowserFileTransferUpload, Os as createBusinessNotificationSession, Vt as createCodeTextPresentation, Es as createConstructionPlanClient, be as createDataChangeDispatcher, wn as createDataExchangeClient, Ge as createExternalLoginClient, ii as createHttpClient, Hn as createLanguageContext, Ct as createLanguagePreferenceController, ne as createLoginContextClient, Mr as createManagedDetailRelationClient, l as createMenuClient, M as createMenuTab, Gn as createModuleContext, Yn as createModuleCrudClient, We as createModulePageEnhancementRegistry, ni as createModuleTreeClient, cn as createModuleTreeContext, Ci as createNavigatorReferenceCrudClient, rr as createNavigatorReferenceTreeClient, Cr as createOperationConfirmation, c as createPageBootstrapClient, ee as createPersonalAccessTokenClient, ws as createQueryClient, Qt as createRealtimeClient, mn as createReferenceResolveClient, Se as createSessionClient, Zt as createSseParser, Hr as createStaticModuleCrudClient, ji as createStaticModuleTreeClient, cr as createStaticResourceCrudClient, vr as createStaticResourceTreeClient, jt as createUuid, d as createWorkbenchMenuNodes, fn as createWorkflowAdminClient, na as createWorkflowClient, ct as createWorkflowDefinitionClient, pe as createWorkspaceViewDescriptor, Me as createWorkspaceViewRegistry, zr as dataChangeChannel, Wn as defaultUiThemeSkinId, oa as defineWorkspaceView, ye as disconnectAppRealtime, Ee as dismissWorkspaceViewDescriptor, vi as displayModuleRuntime, C as dynamicModuleAliasFromPath, u as effectiveAuthToken, nr as emptyAssistantCapabilityInputSchema, h as filterWorkbenchMenuNodes, n as findFirstNavigationMenu, Ne as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, j as firstDeepRootIdOf, de as getMenuNavigationTarget, Mi as hasExecutableDetailRelationMutationContract, ur as hasExecutableDetailRelationQueryContract, Fi as hasRecycleBinAbility, Pe as hasWorkspaceViewDiscardProtection, rt as imConversationMessageChannel, Fr as imMessageSendCommand, Rn as invokeBusinessNotificationRecordAction, wi as isHttpStreamClient, zs as isPlatformAdminRoutePage, ze as isTabMenuTarget, ln as isTextReference, nt as isUnexpectedPlatformError, Oe as isWindowMenuTarget, ri as listDetailWorkspaceMinWidth, en as loadBusinessContentGeneration, Br as loadBusinessContentHistory, it as loadBusinessContentReading, Lr as loadBusinessContentSources, qt as loadBusinessContentTranslationHistory, an as loadLanguageCatalog, oe as lookupOperationReceipt, Pr as modelFailureMessage, Yi as moduleAbilityCodes, Kt as moduleDataChangeChannel, E as modulePageWorkspaceViews, v as normalizeChangeSet, Gt as normalizeError, i as normalizeMenuMineResponse, si as normalizeModuleListResponse, qr as normalizeModulePageResponse, Dr as normalizeModuleRecord, wr as normalizeModuleTreeResponse, Yt as organizationPublicDataChangeChannel, nn as organizationPublicNotificationChannel, $i as originalPresentation, Mn as pageActionEntryDescription, Dt as pageActionEntryTitle, Bt as pageActionEntryVisible, hi as pageActionIntent, b as pageAssistantCatalog, Fe as pageDescriptorFromUrl, ve as pageDescriptorToUrl, ae as pageInstanceKeyOf, qe as pagePublicationDigest, Vr as parseEmptyAssistantCapabilityInput, T as parseOperationReceiptReference, Is as platformAdminModuleRoutes, Ls as platformAdminRouteLayouts, Fs as platformAdminRoutePrefixes, Ps as platformAdminRoutes, Qe as platformCodeTextOriginal, hr as platformCodeTextReference, Jt as platformErrorCodes, ki as platformLanguageContext, xt as platformPingCommand, Xt as prepareBusinessContentTranslation, Gi as presentPlatformError, hn as presentPlatformInfo, dt as presentPlatformMessage, Vi as presentPlatformSuccess, D as presentWorkbenchRealtimeStatus, ot as presentationLabel, Ai as provideAssistantSurfaceHost, He as provideCurrentUserContext, ei as provideLanguageContext, tt as provideModuleContextConfig, Ki as provideRecordReadRefreshGuard, fe as provideWorkbenchNavigation, Pt as provideWorkspaceUnsavedStateRegistrar, Be as provideWorkspaceViewHost, Ts as queryKeys, Un as readAssistantAvailability, Nt as realtimeDestinations, Ht as realtimeMessageTypes, Tn as recordBusinessContentArray, kt as recordBusinessContentText, un as recordDataChangeChannel, xn as recordPresentationLabel, kn as recordPresentationText, N as refreshModulePageList, On as refreshWorkflowRecordActions, xr as registerUiLanguageLocales, Cc as removeLockedMenuTabs, rn as requestBusinessContentGeneration, tn as resolveGlobalErrorPresentation, Ui as resolveOperationErrorMessage, Ae as resolvePageDescriptor, Rs as resolvePlatformAdminRoute, wt as resolvePresentationText, ra as resolveRecordDetailFields, Ar as resolveRecordQueryListColumns, aa as resolveRecordReadEntry, lt as resolveWebActionResult, zi as resolveWebActionResultMessage, ge as resolveWorkspaceView, ea as resourceDataChangeChannel, st as resourceRecordDataChangeChannel, Kr as restoreAssistantOperationReceipt, Wc as restoreLockedTabPreference, vc as restoreLockedWorkbenchTabs, Kn as restoreOperationConfirmation, tu as restoreThemeSkinPreference, lc as restoreWorkbenchStartupStateFromUrl, je as routeUrlWithOpenOptions, Di as runAssistantConversation, Zr as runAssistantStep, sr as sameAssistantInvocationToken, p as saveAuthSessionId, g as saveAuthToken, Gc as saveLockedTabPreference, nu as saveThemeSkinPreference, En as sessionActivityCommand, te as storedAuthSessionId, Xe as storedAuthToken, _ as subscribeAppBusinessEvents, y as subscribeAppDataChanges, ke as syncModulePageWorkspaceViewContributions, Le as tabIdentityKeyOf, ce as tabKeyOf, At as tenantPublicDataChangeChannel, Sn as tenantPublicNotificationChannel, bi as textReferenceMatchesOriginal, eu as themeSkinPreferenceKey, Rt as translatedPresentation, we as tryPageDescriptorFromUrl, sn as uiThemeSkinById, et as uiThemeSkins, Jr as unwrapResponsePayload, xc as updateLockedMenuTabs, Ur as uploadedFileId, _r as useAssistantSurfaceHost, Hi as useBusinessContentGenerationBatch, tr as useBusinessContentReading, Je as useCurrentUserContext, a as useEffectiveAuthToken, Fu as useExternalLoginHost, F as useLanguageContext, mr as useModuleContext, Oi as useModuleHttpClient, Qr as useModuleTreeContext, Ks as usePageDescriptor, Gs as usePageRoute, $l as usePersonalAccessTokenAccess, gn as useRecordReadRefreshGuard, ft as useRecordReadRefreshRevision, ia as useRecordReadSession, Te as useWorkbenchNavigation, Xr as useWorkspaceDetailSurface, le as useWorkspaceViewHost, _e as useWorkspaceViewNavigation, Wt as useWorkspaceViewUnsavedState, An as userBusinessEventChannel, Tt as userBusinessNotificationChannel, bt as userFacingErrorMessage, zt as userImMessageChannel, pi as userNotificationChannel, Wi as userPreferences, at as validateCronExpression, vn as webDataChangeKey, br as webDataChangeTypes, _t as webDataChanges, ar as withHttpHeaders, Xn as withLanguageContext, Ve as withPageInstanceKey, pt as withWebActionResultChanges, fi as withoutRecordPresentation, Ye as workbenchAccountCommands };