@ximatai/muyun-web-app 0.26.23 → 0.26.25

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 (80) hide show
  1. package/dist/{BusinessActivityLogView-IWGZiPLo.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-UCsg6psI.js → BusinessLogListDrawer-DtSXpK6g.js} +135 -131
  3. package/dist/{CodeConfigurationView-Calkazua.js → CodeConfigurationView-BVu1ZnH-.js} +366 -366
  4. package/dist/{ConfigurationTranslationView-fZrlRAMy.js → ConfigurationTranslationView-Cd8ezR4t.js} +44 -44
  5. package/dist/{LoginAuditLogView-B6J7t__0.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
  6. package/dist/ModuleActionManagementView-y3t2YHKF.js +780 -0
  7. package/dist/{ModuleGovernanceView-D8ONs78K.js → ModuleGovernanceView-BqJq2Pxm.js} +3521 -3521
  8. package/dist/{RequestErrorLogView-poMgx4_6.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
  9. package/dist/{RoleDetailWorkspaceView-6Bs1eKbm.js → RoleDetailWorkspaceView-G-5VAV_B.js} +54 -54
  10. package/dist/{RuntimeLogView-Co-Z86bt.js → RuntimeLogView-CulSgS0l.js} +61 -61
  11. package/dist/WorkflowAdministrationView-y8VBYMLZ.js +650 -0
  12. package/dist/{WorkflowConfigurationView-mSyL_-We.js → WorkflowConfigurationView-DpONX2nN.js} +290 -290
  13. package/dist/{WorkflowWorkbenchView-DBMh3ycN.js → WorkflowWorkbenchView-CGo1eZjr.js} +215 -215
  14. package/dist/{codeConfiguration-D1zrxzoW.js → codeConfiguration-fZiz0PNC.js} +27 -27
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +2407 -1222
  17. package/dist/{moduleMenuWorkspace-lIVrTaOB.js → moduleMenuWorkspace-AZ4G9BpZ.js} +222 -222
  18. package/dist/{platform-components-D0T03KGl.js → platform-components-D98pyZ77.js} +4296 -3497
  19. package/dist/{platform-workbench-CobObbuz.js → platform-workbench-BBLDvT9V.js} +6311 -6111
  20. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +9 -0
  21. package/dist/types/app/ExternalIdentityBindings.vue.d.ts +8 -0
  22. package/dist/types/app/ExternalProvisioningConfirmation.vue.d.ts +15 -0
  23. package/dist/types/app/LoginView.vue.d.ts +3 -1
  24. package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
  25. package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
  26. package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
  27. package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
  28. package/dist/types/app/externalLoginReturn.d.ts +38 -0
  29. package/dist/types/app/themeSkinPreference.d.ts +2 -2
  30. package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
  31. package/dist/types/app/useExternalLoginHost.d.ts +27 -0
  32. package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
  33. package/dist/types/app/weLinkQrCode.d.ts +22 -0
  34. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
  35. package/dist/types/consumer/index.d.ts +16 -2
  36. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -0
  37. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -0
  38. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  39. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -0
  40. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +11 -15
  41. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +2 -0
  42. package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
  43. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  44. package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
  45. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  46. package/dist/types/platform-admin-runtime/job/ScheduledActionTargetFields.vue.d.ts +7 -0
  47. package/dist/types/platform-admin-runtime/scheduledActionPlanPageEnhancement.d.ts +3 -0
  48. package/dist/types/platform-components/BusinessNotificationCard.vue.d.ts +30 -0
  49. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +4 -39
  50. package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
  51. package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
  52. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  53. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +8 -17
  54. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +2 -0
  55. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  56. package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +4 -0
  57. package/dist/types/platform-components/cronExpression.d.ts +36 -0
  58. package/dist/types/platform-components/durationSeconds.d.ts +31 -0
  59. package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
  60. package/dist/types/platform-components/index.d.ts +6 -0
  61. package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
  62. package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
  63. package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
  64. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
  65. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
  66. package/dist/types/platform-workbench/index.d.ts +3 -0
  67. package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
  68. package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
  69. package/dist/types/views/businessLogClient.d.ts +2 -0
  70. package/dist/types/views/businessRuleGovernance.d.ts +1 -0
  71. package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
  72. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  73. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  74. package/dist/types/web-contracts/index.d.ts +87 -2
  75. package/dist/types/web-core/clients.d.ts +25 -1
  76. package/dist/{useWorkflowConfigurationContext-BkcNPU2H.js → useWorkflowConfigurationContext-BcK19EXl.js} +6 -6
  77. package/dist/{workspaceViews-BtqO8rU0.js → workspaceViews-Dr7RZXvX.js} +1139 -983
  78. package/package.json +1 -1
  79. package/dist/ModuleActionManagementView-BZ89Woex.js +0 -755
  80. package/dist/WorkflowAdministrationView-D7QpRHDp.js +0 -650
@@ -1,16 +1,16 @@
1
1
  import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { E as t, M as n, T as r, d as i, j as a, lt as o, m as s, ut as c, x as l, y as u } from "./platform-workbench-CobObbuz.js";
3
- import { $n as d, An as f, Ar as p, Bn as m, Ca as h, D as g, Ea as _, Fa as v, G as y, Ga as b, Ht as x, Ja as S, Ka as C, Kr as w, Kt as ee, Mn as T, Nn as E, Pa as te, Rn as D, Tn as O, V as k, Vn as A, W as ne, Wn as re, Ya as j, Yn as ie, Zn as M, _n as N, cr as P, da as F, fa as ae, fr as I, gn as oe, it as se, ja as L, jn as ce, k as le, ka as ue, lr as de, m as fe, or as pe, pa as me, pn as he, pt as ge, qr as _e, rr as ve, rt as ye, sn as be, sr as xe, ua as Se, ur as R, yn as Ce, z as we, zn as Te } from "./platform-components-D0T03KGl.js";
4
- import { d as Ee, m as De, p as Oe } from "./codeConfiguration-D1zrxzoW.js";
5
- import { a as ke, i as Ae, o as je, r as Me, s as Ne, t as Pe } from "./moduleMenuWorkspace-lIVrTaOB.js";
6
- import { t as Fe } from "./useWorkflowConfigurationContext-BkcNPU2H.js";
7
- import { Fragment as z, computed as B, createBlock as V, createCommentVNode as H, createElementBlock as U, createElementVNode as W, createSlots as Ie, createTextVNode as G, createVNode as K, defineAsyncComponent as Le, defineComponent as q, guardReactiveProps as Re, mergeModels as ze, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as Ue, onActivated as We, onBeforeUnmount as Ge, onMounted as Ke, onScopeDispose as qe, onUnmounted as Je, openBlock as J, ref as Y, renderList as Ye, renderSlot as Xe, resolveDynamicComponent as Ze, shallowRef as Qe, toDisplayString as X, toRaw as $e, toValue as et, unref as Z, useModel as tt, watch as Q, withCtx as $, withKeys as nt, withModifiers as rt } from "vue";
2
+ import { E as t, M as n, T as r, d as i, dt as a, j as o, m as s, ut as c, x as l, y as u } from "./platform-workbench-BBLDvT9V.js";
3
+ import { $a as d, $n as f, $r as p, Aa as m, D as h, Fn as g, Gn as _, Ha as v, Hn as y, Ia as b, In as x, Ir as ee, Jn as S, Jt as C, K as te, Ln as ne, Na as re, Pn as ie, Qa as w, Ra as T, Sn as E, U as D, Un as ae, V as O, Va as oe, Wn as se, Wt as ce, _a as k, at as le, ba as A, bn as j, ei as M, fr as ue, gn as de, gr as N, hr as fe, ht as pe, k as P, kn as me, ln as he, lr as F, m as ge, mr as _e, no as I, nt as ve, ot as ye, pr as be, q as xe, rr as Se, to as Ce, tr as we, va as Te, vr as L, ya as Ee, yn as De } from "./platform-components-D98pyZ77.js";
4
+ import { d as Oe, m as ke, p as Ae } from "./codeConfiguration-fZiz0PNC.js";
5
+ import { a as je, i as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./moduleMenuWorkspace-AZ4G9BpZ.js";
6
+ import { t as Le } from "./useWorkflowConfigurationContext-BcK19EXl.js";
7
+ import { Fragment as R, computed as z, createBlock as B, createCommentVNode as V, createElementBlock as H, createElementVNode as U, createSlots as Re, createTextVNode as W, createVNode as G, defineAsyncComponent as K, defineComponent as q, guardReactiveProps as ze, mergeModels as Be, mergeProps as Ve, nextTick as He, normalizeClass as Ue, normalizeProps as We, onActivated as Ge, onBeforeUnmount as Ke, onMounted as qe, onScopeDispose as Je, onUnmounted as Ye, openBlock as J, ref as Y, renderList as Xe, renderSlot as Ze, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as X, toRaw as et, toValue as tt, unref as Z, useModel as nt, watch as Q, withCtx as $, withKeys as rt, withModifiers as it } from "vue";
8
8
  //#region src/views/codeConfigurationWorkspaceView.ts
9
- var it = De({
9
+ var at = ke({
10
10
  type: "platform.code.configuration",
11
11
  route: "/_platform/workspace/platform.code.configuration",
12
12
  moduleAlias: "platform.code_rule",
13
- component: Le(() => import("./CodeConfigurationView-Calkazua.js").then((e) => e.n)),
13
+ component: K(() => import("./CodeConfigurationView-BVu1ZnH-.js").then((e) => e.n)),
14
14
  layout: "workspace",
15
15
  routeTitle: "业务编码",
16
16
  routeTitleKey: "platform.code.config.title",
@@ -26,15 +26,15 @@ var it = De({
26
26
  ...typeof e.moduleTitle == "string" && e.moduleTitle ? { moduleTitle: e.moduleTitle } : {}
27
27
  };
28
28
  }
29
- }), at = /* @__PURE__ */ new Set([
29
+ }), ot = /* @__PURE__ */ new Set([
30
30
  "platform",
31
31
  "tenant",
32
32
  "organization"
33
- ]), ot = De({
33
+ ]), st = ke({
34
34
  type: "iam.role.detail",
35
35
  route: "/iam/role",
36
36
  moduleAlias: "iam.role",
37
- component: Le(() => import("./RoleDetailWorkspaceView-6Bs1eKbm.js")),
37
+ component: K(() => import("./RoleDetailWorkspaceView-G-5VAV_B.js")),
38
38
  layout: "workspace",
39
39
  routeTitle: "角色管理",
40
40
  routeTitleKey: "platform.workspace-view.roles.route-title",
@@ -49,17 +49,17 @@ var it = De({
49
49
  },
50
50
  parse(e) {
51
51
  let t = e.recordId, n = e.scopeKind, r = e.scopeId;
52
- if (!(typeof t != "string" || !t || typeof n != "string" || !at.has(n) || (n === "platform" ? r !== void 0 : typeof r != "string" || !r))) return {
52
+ if (!(typeof t != "string" || !t || typeof n != "string" || !ot.has(n) || (n === "platform" ? r !== void 0 : typeof r != "string" || !r))) return {
53
53
  recordId: t,
54
54
  scopeKind: n,
55
55
  ...typeof r == "string" ? { scopeId: r } : {}
56
56
  };
57
57
  }
58
- }), st = De({
58
+ }), ct = ke({
59
59
  type: "iam.role.authorization",
60
60
  route: "/iam/role/authorization",
61
61
  moduleAlias: "iam.role",
62
- component: Le(() => Promise.resolve().then(() => Rr)),
62
+ component: K(() => Promise.resolve().then(() => Kr)),
63
63
  layout: "workspace",
64
64
  routeTitle: "角色授权",
65
65
  routeTitleKey: "platform.workspace-view.role-authorization.route-title",
@@ -71,15 +71,15 @@ var it = De({
71
71
  let t = e.roleId;
72
72
  return typeof t == "string" && t ? { roleId: t } : void 0;
73
73
  }
74
- }), ct = [
75
- it,
76
- ot,
77
- st
78
- ], lt = De({
74
+ }), lt = [
75
+ at,
76
+ st,
77
+ ct
78
+ ], ut = ke({
79
79
  type: "platform.module.actions",
80
80
  route: "/_platform/workspace/platform.module.actions",
81
81
  moduleAlias: "platform.module",
82
- component: Le(() => import("./ModuleActionManagementView-BZ89Woex.js").then((e) => e.n)),
82
+ component: K(() => import("./ModuleActionManagementView-y3t2YHKF.js").then((e) => e.n)),
83
83
  layout: "workspace",
84
84
  routeTitle: "模块管理",
85
85
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -96,11 +96,11 @@ var it = De({
96
96
  ...e.moduleKind === "static" || e.moduleKind === "dynamic" ? { moduleKind: e.moduleKind } : {}
97
97
  };
98
98
  }
99
- }), ut = De({
99
+ }), dt = ke({
100
100
  type: "platform.module.workflows",
101
101
  route: "/_platform/workspace/platform.module.workflows",
102
102
  moduleAlias: "platform.module",
103
- component: Le(() => import("./WorkflowConfigurationView-mSyL_-We.js")),
103
+ component: K(() => import("./WorkflowConfigurationView-DpONX2nN.js")),
104
104
  layout: "workspace",
105
105
  routeTitle: "模块管理",
106
106
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -121,19 +121,19 @@ var it = De({
121
121
  ...typeof e.moduleTitle == "string" ? { moduleTitle: e.moduleTitle } : {}
122
122
  };
123
123
  }
124
- }), dt = /* @__PURE__ */ q({
124
+ }), ft = /* @__PURE__ */ q({
125
125
  __name: "ModuleMenuDrawer",
126
126
  props: { context: {} },
127
127
  setup(e) {
128
- let t = j(), n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = s(), a = Pe(), o = a?.language ?? t, c = u(), l = () => JSON.stringify([
128
+ let t = I(), n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = s(), a = Ie(), o = a?.language ?? t, c = u(), l = () => JSON.stringify([
129
129
  c?.value?.userId,
130
130
  c?.value?.tenantId,
131
131
  c?.value?.organizationId,
132
132
  c?.value?.system
133
- ]), d = l(), f = !0, p = a?.session(r) ?? Me(je(n.context.module.http), r, {
133
+ ]), d = l(), f = !0, p = a?.session(r) ?? Pe(Ne(n.context.module.http), r, {
134
134
  valid: () => f && !!c?.value?.userId && l() === d,
135
135
  active: () => f
136
- }, Ae(d, r, () => !!c?.value?.userId && l() === d, void 0, void 0, o), i?.refreshMenus, o), m = Y();
136
+ }, Me(d, r, () => !!c?.value?.userId && l() === d, void 0, void 0, o), i?.refreshMenus, o), m = Y();
137
137
  return a?.focus(p), a?.showEditor(p), p.ready.value || p.load(), Q([
138
138
  p.canSave,
139
139
  p.saving,
@@ -151,19 +151,19 @@ var it = De({
151
151
  }] });
152
152
  }, { immediate: !0 }), Q(p.saved, (e) => {
153
153
  e && n.context.refreshDetailExtensions();
154
- }), Ge(() => {
154
+ }), Ke(() => {
155
155
  f = !1, a?.hideEditor(p), a || p.dispose();
156
- }), (t, n) => (J(), V(ke, {
156
+ }), (t, n) => (J(), B(je, {
157
157
  ref_key: "editor",
158
158
  ref: m,
159
159
  session: Z(p),
160
160
  onOpened: n[0] ||= (t) => e.context.close()
161
161
  }, null, 8, ["session"]));
162
162
  }
163
- }), ft = { class: "workflow-selection-fields" }, pt = { class: "workflow-field settings-wide" }, mt = { class: "settings-help" }, ht = { class: "workflow-field settings-wide" }, gt = { class: "settings-wide workflow-field" }, _t = { class: "settings-help" }, vt = /*#__PURE__*/ I(/* @__PURE__ */ q({
163
+ }), pt = { class: "workflow-selection-fields" }, mt = { class: "workflow-field settings-wide" }, ht = { class: "settings-help" }, gt = { class: "workflow-field settings-wide" }, _t = { class: "settings-wide workflow-field" }, vt = { class: "settings-help" }, yt = /*#__PURE__*/ L(/* @__PURE__ */ q({
164
164
  name: "WorkflowSelectionFields",
165
165
  __name: "WorkflowSelectionFields",
166
- props: /*@__PURE__*/ ze({
166
+ props: /*@__PURE__*/ Be({
167
167
  organizationContext: {},
168
168
  fields: {},
169
169
  disabled: { type: Boolean },
@@ -185,11 +185,11 @@ var it = De({
185
185
  "update:fallback"
186
186
  ],
187
187
  setup(e) {
188
- let t = j(), n = e, r = tt(e, "organizationId"), i = tt(e, "matchExpression"), a = tt(e, "fallback");
189
- return (o, s) => (J(), U("div", ft, [
190
- W("label", pt, [
191
- G(X(Z(t).t("platform.screen.WorkflowConfigurationView.applicable-organization", "适用组织")), 1),
192
- n.organizationContext ? (J(), V(Z(se), {
188
+ let t = I(), n = e, r = nt(e, "organizationId"), i = nt(e, "matchExpression"), a = nt(e, "fallback");
189
+ return (o, s) => (J(), H("div", pt, [
190
+ U("label", mt, [
191
+ W(X(Z(t).t("platform.screen.WorkflowConfigurationView.applicable-organization", "适用组织")), 1),
192
+ n.organizationContext ? (J(), B(Z(ye), {
193
193
  key: 0,
194
194
  placeholder: Z(t).t("platform.workflow-config.organization-placeholder", "全部组织(可选指定组织)"),
195
195
  value: r.value || void 0,
@@ -202,14 +202,14 @@ var it = De({
202
202
  "value",
203
203
  "context",
204
204
  "disabled"
205
- ])) : (J(), V(Z(ve), {
205
+ ])) : (J(), B(Z(F), {
206
206
  key: 1,
207
207
  value: r.value || Z(t).t("platform.workflow-config.all-organizations", "模块内全部组织"),
208
208
  disabled: ""
209
209
  }, null, 8, ["value"])),
210
- W("small", mt, X(n.organizationContext ? Z(t).t("platform.workflow-config.organization-help", "留空适用于全部组织;指定组织后包含其下级组织。") : Z(t).t("platform.workflow-config.global-scope-help", "当前为全局流程模板,适用于全部组织;组织选择需使用租户身份。")), 1)
210
+ U("small", ht, X(n.organizationContext ? Z(t).t("platform.workflow-config.organization-help", "留空适用于全部组织;指定组织后包含其下级组织。") : Z(t).t("platform.workflow-config.global-scope-help", "当前为全局流程模板,适用于全部组织;组织选择需使用租户身份。")), 1)
211
211
  ]),
212
- W("div", ht, [W("span", null, X(Z(t).t("platform.screen.WorkflowConfigurationView.matching-condition", "匹配条件")), 1), K(Z(O), {
212
+ U("div", gt, [U("span", null, X(Z(t).t("platform.screen.WorkflowConfigurationView.matching-condition", "匹配条件")), 1), G(Z(me), {
213
213
  disabled: n.disabled || a.value,
214
214
  value: i.value,
215
215
  "onUpdate:value": s[1] ||= (e) => i.value = e,
@@ -224,28 +224,28 @@ var it = De({
224
224
  "tools",
225
225
  "placeholder"
226
226
  ])]),
227
- W("div", gt, [K(Z(xe), {
227
+ U("div", _t, [G(Z(be), {
228
228
  disabled: n.disabled,
229
229
  checked: a.value,
230
230
  "onUpdate:checked": s[2] ||= (e) => a.value = e
231
231
  }, {
232
- default: $(() => [G(X(Z(t).t("platform.screen.WorkflowConfigurationView.use-as-the-fallback-workflow-for-this", "作为当前组织范围的兜底流程")), 1)]),
232
+ default: $(() => [W(X(Z(t).t("platform.screen.WorkflowConfigurationView.use-as-the-fallback-workflow-for-this", "作为当前组织范围的兜底流程")), 1)]),
233
233
  _: 1
234
- }, 8, ["disabled", "checked"]), W("small", _t, X(Z(t).t("platform.workflow-config.fallback-help", "同一组织范围内无普通流程命中时使用;兜底流程不判断匹配条件。")), 1)])
234
+ }, 8, ["disabled", "checked"]), U("small", vt, X(Z(t).t("platform.workflow-config.fallback-help", "同一组织范围内无普通流程命中时使用;兜底流程不判断匹配条件。")), 1)])
235
235
  ]));
236
236
  }
237
- }), [["__scopeId", "data-v-eecb79d1"]]), yt = {
237
+ }), [["__scopeId", "data-v-eecb79d1"]]), bt = {
238
238
  key: 0,
239
239
  class: "settings-help"
240
- }, bt = { class: "workflow-field" }, xt = {
240
+ }, xt = { class: "workflow-field" }, St = {
241
241
  key: 1,
242
242
  class: "settings-wide workflow-approval-setting"
243
- }, St = {
243
+ }, Ct = {
244
244
  key: 2,
245
245
  class: "workflow-field settings-wide"
246
- }, Ct = { class: "settings-help" }, wt = ["open"], Tt = /*#__PURE__*/ I(/* @__PURE__ */ q({
246
+ }, wt = { class: "settings-help" }, Tt = ["open"], Et = /*#__PURE__*/ L(/* @__PURE__ */ q({
247
247
  __name: "WorkflowDefinitionSettings",
248
- props: /*@__PURE__*/ ze({
248
+ props: /*@__PURE__*/ Be({
249
249
  configuration: {},
250
250
  creating: { type: Boolean },
251
251
  busy: { type: Boolean },
@@ -270,7 +270,7 @@ var it = De({
270
270
  },
271
271
  fallbackModifiers: {}
272
272
  }),
273
- emits: /*@__PURE__*/ ze(["submit"], [
273
+ emits: /*@__PURE__*/ Be(["submit"], [
274
274
  "update:title",
275
275
  "update:approvalEnabled",
276
276
  "update:actionCode",
@@ -279,19 +279,19 @@ var it = De({
279
279
  "update:fallback"
280
280
  ]),
281
281
  setup(e, { emit: t }) {
282
- let { language: n, fields: r, organizationContext: i, conditionTools: a } = e.configuration, o = t, s = tt(e, "title"), c = tt(e, "approvalEnabled"), l = tt(e, "actionCode"), u = tt(e, "organizationId"), d = tt(e, "matchExpression"), f = tt(e, "fallback");
283
- return (t, p) => (J(), U("form", {
282
+ let { language: n, fields: r, organizationContext: i, conditionTools: a } = e.configuration, o = t, s = nt(e, "title"), c = nt(e, "approvalEnabled"), l = nt(e, "actionCode"), u = nt(e, "organizationId"), d = nt(e, "matchExpression"), p = nt(e, "fallback");
283
+ return (t, m) => (J(), H("form", {
284
284
  class: "property-form",
285
- onSubmit: p[6] ||= rt((e) => o("submit"), ["prevent"])
285
+ onSubmit: m[6] ||= it((e) => o("submit"), ["prevent"])
286
286
  }, [
287
- e.creating ? (J(), U("p", yt, X(Z(n).t("platform.workflow-config.creation-help", "先创建草稿,再配置节点和参与人;发布后才会用于后续申请。")), 1)) : H("v-if", !0),
288
- W("label", bt, [K(Z(be), { required: "" }, {
289
- default: $(() => [G(X(Z(n).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
287
+ e.creating ? (J(), H("p", bt, X(Z(n).t("platform.workflow-config.creation-help", "先创建草稿,再配置节点和参与人;发布后才会用于后续申请。")), 1)) : V("v-if", !0),
288
+ U("label", xt, [G(Z(he), { required: "" }, {
289
+ default: $(() => [W(X(Z(n).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")), 1)]),
290
290
  _: 1
291
- }), K(Z(ve), {
291
+ }), G(Z(F), {
292
292
  disabled: e.busy,
293
293
  value: s.value,
294
- "onUpdate:value": p[0] ||= (e) => s.value = e,
294
+ "onUpdate:value": m[0] ||= (e) => s.value = e,
295
295
  required: "",
296
296
  "aria-label": Z(n).t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称")
297
297
  }, null, 8, [
@@ -299,25 +299,25 @@ var it = De({
299
299
  "value",
300
300
  "aria-label"
301
301
  ])]),
302
- e.creating ? (J(), U("div", xt, [K(Z(xe), {
302
+ e.creating ? (J(), H("div", St, [G(Z(be), {
303
303
  disabled: e.busy,
304
304
  checked: c.value,
305
- "onUpdate:checked": p[1] ||= (e) => c.value = e
305
+ "onUpdate:checked": m[1] ||= (e) => c.value = e
306
306
  }, {
307
- default: $(() => [G(X(Z(n).t("platform.screen.WorkflowConfigurationView.govern-business-approval-status", "驱动业务审批状态")), 1)]),
307
+ default: $(() => [W(X(Z(n).t("platform.screen.WorkflowConfigurationView.govern-business-approval-status", "驱动业务审批状态")), 1)]),
308
308
  _: 1
309
- }, 8, ["disabled", "checked"]), K(Z(ie), { label: Z(n).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
310
- default: $(() => [G(X(Z(n).t("platform.workflow-config.approval-help", "开启后回写业务记录的审批状态;关闭后仅编排任务流程。")), 1)]),
309
+ }, 8, ["disabled", "checked"]), G(Z(f), { label: Z(n).t("platform.workflow-config.approval-help-title", "审批状态说明") }, {
310
+ default: $(() => [W(X(Z(n).t("platform.workflow-config.approval-help", "开启后回写业务记录的审批状态;关闭后仅编排任务流程。")), 1)]),
311
311
  _: 1
312
- }, 8, ["label"])])) : H("v-if", !0),
313
- c.value ? H("v-if", !0) : (J(), U("label", St, [
314
- K(Z(be), { required: "" }, {
315
- default: $(() => [G(X(Z(n).t("platform.workflow-config.action-code", "模块动作编码")), 1)]),
312
+ }, 8, ["label"])])) : V("v-if", !0),
313
+ c.value ? V("v-if", !0) : (J(), H("label", Ct, [
314
+ G(Z(he), { required: "" }, {
315
+ default: $(() => [W(X(Z(n).t("platform.workflow-config.action-code", "模块动作编码")), 1)]),
316
316
  _: 1
317
317
  }),
318
- K(Z(ve), {
318
+ G(Z(F), {
319
319
  value: l.value,
320
- "onUpdate:value": p[2] ||= (e) => l.value = e,
320
+ "onUpdate:value": m[2] ||= (e) => l.value = e,
321
321
  required: "",
322
322
  disabled: e.busy || e.actionCodeLocked,
323
323
  invalid: !!l.value.trim() && !/^[a-z][A-Za-z0-9_]{0,63}$/.test(l.value.trim()),
@@ -328,20 +328,20 @@ var it = De({
328
328
  "invalid",
329
329
  "aria-label"
330
330
  ]),
331
- W("span", Ct, X(Z(n).t("platform.workflow-config.action-code-help", "用于流程启动动作,以小写字母开头,可含字母、数字、下划线,最多64位;发布后不能修改。")), 1)
331
+ U("span", wt, X(Z(n).t("platform.workflow-config.action-code-help", "用于流程启动动作,以小写字母开头,可含字母、数字、下划线,最多64位;发布后不能修改。")), 1)
332
332
  ])),
333
- W("details", {
333
+ U("details", {
334
334
  class: "settings-wide",
335
335
  open: !e.creating
336
- }, [W("summary", null, X(Z(n).t("platform.workflow-config.optional-matching", "适用范围与匹配规则(可选)")), 1), K(vt, {
336
+ }, [U("summary", null, X(Z(n).t("platform.workflow-config.optional-matching", "适用范围与匹配规则(可选)")), 1), G(yt, {
337
337
  "condition-tools": Z(a),
338
338
  class: "optional-settings",
339
339
  "organization-id": u.value,
340
- "onUpdate:organizationId": p[3] ||= (e) => u.value = e,
340
+ "onUpdate:organizationId": m[3] ||= (e) => u.value = e,
341
341
  "match-expression": d.value,
342
- "onUpdate:matchExpression": p[4] ||= (e) => d.value = e,
343
- fallback: f.value,
344
- "onUpdate:fallback": p[5] ||= (e) => f.value = e,
342
+ "onUpdate:matchExpression": m[4] ||= (e) => d.value = e,
343
+ fallback: p.value,
344
+ "onUpdate:fallback": m[5] ||= (e) => p.value = e,
345
345
  "organization-context": Z(i),
346
346
  fields: Z(r),
347
347
  disabled: e.busy
@@ -353,117 +353,117 @@ var it = De({
353
353
  "organization-context",
354
354
  "fields",
355
355
  "disabled"
356
- ])], 8, wt)
356
+ ])], 8, Tt)
357
357
  ], 32));
358
358
  }
359
- }), [["__scopeId", "data-v-c008d307"]]), Et = { key: 0 }, Dt = { key: 1 }, Ot = /* @__PURE__ */ q({
359
+ }), [["__scopeId", "data-v-c008d307"]]), Dt = { key: 0 }, Ot = { key: 1 }, kt = /* @__PURE__ */ q({
360
360
  __name: "ModuleWorkflowDrawer",
361
361
  props: { context: {} },
362
362
  setup(e) {
363
- let n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = String(n.context.record?.title ?? r), a = Fe(r), { client: o, context: l, language: u } = a, d = s(), m = Y([]), g = Y(), v = Y(!1), y = Y(!1), b = Y(!1), S = Y(!1), C = Y(""), w = Y(!1), E = Y(), te = Y(""), D = Y(!0), O = Y(""), k = Y(""), A = Y(""), j = Y(!1), ie = B(() => l.can?.("sort") === !0), P = B(() => !!te.value.trim() && (D.value || /^[a-z][A-Za-z0-9_]{0,63}$/.test(O.value.trim()))), F = !0;
364
- Ge(() => {
365
- F = !1;
366
- }), p(() => u.t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"), () => S.value, () => b.value), Q([
367
- te,
363
+ let n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = String(n.context.record?.title ?? r), o = Le(r), { client: c, context: l, language: u } = o, d = s(), f = Y([]), p = Y(), h = Y(!1), g = Y(!1), _ = Y(!1), v = Y(!1), y = Y(""), b = Y(!1), ne = Y(), w = Y(""), T = Y(!0), E = Y(""), D = Y(""), ae = Y(""), O = Y(!1), oe = z(() => l.can?.("sort") === !0), se = z(() => !!w.value.trim() && (T.value || /^[a-z][A-Za-z0-9_]{0,63}$/.test(E.value.trim()))), k = !0;
364
+ Ke(() => {
365
+ k = !1;
366
+ }), ee(() => u.t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"), () => v.value, () => _.value), Q([
367
+ w,
368
+ T,
369
+ E,
368
370
  D,
369
- O,
370
- k,
371
- A,
372
- j
371
+ ae,
372
+ O
373
373
  ], () => {
374
- v.value && (S.value = !0);
374
+ h.value && (v.value = !0);
375
375
  }, { flush: "sync" });
376
- let ae = B(() => u.t(y.value ? "platform.screen.WorkflowConfigurationView.new-workflow" : "platform.workflow-manager.edit", y.value ? "新建流程" : "流程设置")), I = B(() => [{
376
+ let le = z(() => u.t(g.value ? "platform.screen.WorkflowConfigurationView.new-workflow" : "platform.workflow-manager.edit", g.value ? "新建流程" : "流程设置")), A = z(() => [{
377
377
  key: "cancel",
378
378
  label: u.t("platform.action.cancel", "取消"),
379
- disabled: b.value,
380
- run: ue
379
+ disabled: _.value,
380
+ run: F
381
381
  }, {
382
382
  key: "save",
383
- label: u.t(y.value ? "platform.screen.WorkflowConfigurationView.create-workflow-draft" : "platform.action.save", y.value ? "创建流程草稿" : "保存"),
383
+ label: u.t(g.value ? "platform.screen.WorkflowConfigurationView.create-workflow-draft" : "platform.action.save", g.value ? "创建流程草稿" : "保存"),
384
384
  emphasis: "primary",
385
- disabled: b.value || !P.value,
386
- loading: b.value,
387
- run: pe
385
+ disabled: _.value || !se.value,
386
+ loading: _.value,
387
+ run: _e
388
388
  }]);
389
- n.context.setSubtitle(i), n.context.setOperation(void 0), Q(b, () => n.context.setCloseBlocked(b.value), { immediate: !0 });
390
- async function oe(e) {
391
- if (!b.value) {
392
- b.value = !0, E.value = void 0;
389
+ n.context.setSubtitle(i), n.context.setOperation(void 0), Q(_, () => n.context.setCloseBlocked(_.value), { immediate: !0 });
390
+ async function M(e) {
391
+ if (!_.value) {
392
+ _.value = !0, ne.value = void 0;
393
393
  try {
394
394
  await e();
395
395
  } catch (e) {
396
- F && (E.value = () => _(h(e), u));
396
+ k && (ne.value = () => re(m(e), u));
397
397
  } finally {
398
- F && (b.value = !1);
398
+ k && (_.value = !1);
399
399
  }
400
400
  }
401
401
  }
402
- async function se() {
403
- v.value || b.value || await oe(async () => {
404
- let e = await o.query();
405
- F && (m.value = e, await L(e));
402
+ async function ue() {
403
+ h.value || _.value || await M(async () => {
404
+ let e = await c.query();
405
+ k && (f.value = e, await P(e));
406
406
  });
407
407
  }
408
- async function L(e) {
408
+ async function P(e) {
409
409
  l.invalidateRecordActions?.(e.map((e) => e.id)), l.recordActionsBatch ? await l.recordActionsBatch(e.map((e) => e.id)) : l.recordActions && await Promise.all(e.map((e) => l.recordActions(e.id)));
410
410
  }
411
- Ke(() => {
412
- se();
413
- }), We(() => {
414
- se();
411
+ qe(() => {
412
+ ue();
413
+ }), Ge(() => {
414
+ ue();
415
415
  }), t({
416
416
  moduleAlias: "platform.workflow.definition",
417
417
  handler: async () => {
418
- await se();
418
+ await ue();
419
419
  }
420
420
  });
421
- function ce(e) {
422
- b.value || v.value || (w.value = !1, g.value = e, te.value = e?.title ?? "", D.value = e?.approvalEnabled ?? !0, O.value = e?.actionCode ?? "", k.value = e?.organizationId ?? "", A.value = e?.matchExpression ?? "", j.value = e?.defaultDefinition ?? !1, y.value = !e, S.value = !1, v.value = !0);
421
+ function me(e) {
422
+ _.value || h.value || (b.value = !1, p.value = e, w.value = e?.title ?? "", T.value = e?.approvalEnabled ?? !0, E.value = e?.actionCode ?? "", D.value = e?.organizationId ?? "", ae.value = e?.matchExpression ?? "", O.value = e?.defaultDefinition ?? !1, g.value = !e, v.value = !1, h.value = !0);
423
423
  }
424
- async function le() {
425
- return b.value || S.value && !await f({
424
+ async function he() {
425
+ return _.value || v.value && !await ie({
426
426
  title: u.t("platform.workflow-config.discard-confirm", "放弃未保存的流程设置?"),
427
427
  danger: !0,
428
428
  okText: u.t("platform.workflow-config.discard", "放弃修改")
429
- }, u) ? !1 : (S.value = !1, !0);
429
+ }, u) ? !1 : (v.value = !1, !0);
430
430
  }
431
- n.context.setBeforeClose(le);
432
- async function ue() {
433
- await le() && (v.value = !1, await se());
431
+ n.context.setBeforeClose(he);
432
+ async function F() {
433
+ await he() && (h.value = !1, await ue());
434
434
  }
435
- async function pe() {
436
- v.value && P.value && await oe(async () => {
435
+ async function _e() {
436
+ h.value && se.value && await M(async () => {
437
437
  let e = {
438
- title: te.value.trim(),
439
- organizationId: k.value || null,
440
- matchExpression: A.value || null,
441
- defaultDefinition: j.value,
442
- ...D.value ? {} : { actionCode: O.value.trim() }
443
- }, t = y.value ? await o.create({
438
+ title: w.value.trim(),
439
+ organizationId: D.value || null,
440
+ matchExpression: ae.value || null,
441
+ defaultDefinition: O.value,
442
+ ...T.value ? {} : { actionCode: E.value.trim() }
443
+ }, t = g.value ? await c.create({
444
444
  ...e,
445
- ...D.value ? { approvalEnabled: !0 } : {
445
+ ...T.value ? { approvalEnabled: !0 } : {
446
446
  approvalEnabled: !1,
447
- actionCode: O.value.trim()
447
+ actionCode: E.value.trim()
448
448
  },
449
449
  enabled: !0
450
- }) : await o.saveSelection(g.value.id, {
450
+ }) : await c.saveSelection(p.value.id, {
451
451
  ...e,
452
- version: g.value.version
452
+ version: p.value.version
453
453
  });
454
- F && (m.value = y.value ? [...m.value, t] : m.value.map((e) => e.id === t.id ? t : e), g.value = t, v.value = !1, S.value = !1, C.value = "", n.context.refreshDetailExtensions(), await L([t]));
454
+ k && (f.value = g.value ? [...f.value, t] : f.value.map((e) => e.id === t.id ? t : e), p.value = t, h.value = !1, v.value = !1, y.value = "", n.context.refreshDetailExtensions(), await P([t]));
455
455
  });
456
456
  }
457
- function me(e) {
458
- if (!(b.value || v.value)) {
457
+ function I(e) {
458
+ if (!(_.value || h.value)) {
459
459
  if (!d) {
460
- N(Error(u.t("platform.workflow-manager.navigation-unavailable", "工作台导航暂不可用")), {
460
+ j(Error(u.t("platform.workflow-manager.navigation-unavailable", "工作台导航暂不可用")), {
461
461
  source: "workflow-design",
462
462
  phase: "action"
463
463
  });
464
464
  return;
465
465
  }
466
- d.openPage(c(ut, {
466
+ d.openPage(a(dt, {
467
467
  moduleAlias: r,
468
468
  moduleTitle: i,
469
469
  definitionId: e.id,
@@ -471,7 +471,7 @@ var it = De({
471
471
  }));
472
472
  }
473
473
  }
474
- let _e = B(() => [
474
+ let ve = z(() => [
475
475
  {
476
476
  key: "title",
477
477
  title: u.t("platform.screen.WorkflowConfigurationView.workflow-name", "流程名称"),
@@ -497,85 +497,85 @@ var it = De({
497
497
  title: u.t("platform.workflow-manager.active", "启用状态"),
498
498
  width: 90
499
499
  }
500
- ]), ve = B(() => m.value.filter((e) => !C.value.trim() || [
500
+ ]), ye = z(() => f.value.filter((e) => !y.value.trim() || [
501
501
  e.title,
502
502
  e.matchExpression,
503
- fe(e.definitionStatus, u)
504
- ].some((e) => String(e ?? "").toLocaleLowerCase().includes(C.value.trim().toLocaleLowerCase()))).map((e) => ({ ...e })));
505
- function ye(e) {
503
+ ge(e.definitionStatus, u)
504
+ ].some((e) => String(e ?? "").toLocaleLowerCase().includes(y.value.trim().toLocaleLowerCase()))).map((e) => ({ ...e })));
505
+ function be(e) {
506
506
  return e.definitionStatus === "published" || e.definitionStatus === "disabled" && e.currentVersionNo != null;
507
507
  }
508
- function be(e, t) {
509
- return !b.value && !v.value && l.can?.(e, String(t.id)) === !0;
508
+ function xe(e, t) {
509
+ return !_.value && !h.value && l.can?.(e, String(t.id)) === !0;
510
510
  }
511
- function xe(e) {
512
- if (e.source.tenantId === e.target.tenantId) return Ce({
511
+ function Se(e) {
512
+ if (e.source.tenantId === e.target.tenantId) return Te({
513
513
  dragRecord: e.source,
514
514
  dropRecord: e.target,
515
515
  position: e.position === "before" ? -1 : 1
516
516
  });
517
517
  }
518
- async function Se(e, t) {
519
- let n = m.value.find((e) => e.id === t.id);
520
- if (n && !(b.value || v.value)) {
518
+ async function Ce(e, t) {
519
+ let n = f.value.find((e) => e.id === t.id);
520
+ if (n && !(_.value || h.value)) {
521
521
  if (e === "design") {
522
- me(n);
522
+ I(n);
523
523
  return;
524
524
  }
525
525
  if (e === "settings") {
526
- if (!be("configureWorkflowSelection", n)) return;
527
- ce(n);
526
+ if (!xe("configureWorkflowSelection", n)) return;
527
+ me(n);
528
528
  return;
529
529
  }
530
- (e === "enable" || e === "disable" || e === "archive") && be(`${e}WorkflowDefinition`, n) && (e !== "enable" || ye(n)) && await f({
530
+ (e === "enable" || e === "disable" || e === "archive") && xe(`${e}WorkflowDefinition`, n) && (e !== "enable" || be(n)) && await ie({
531
531
  title: u.t(e === "archive" ? "platform.workflow-config.archive-confirm" : e === "enable" ? "platform.workflow-config.enable-confirm" : "platform.workflow-config.disable-confirm", e === "archive" ? "归档此流程?" : e === "enable" ? "启用此流程?" : "停用此流程?"),
532
532
  content: u.t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。"),
533
533
  danger: e !== "enable"
534
- }, u) && await oe(async () => {
535
- let t = await o.changeStatus(n.id, e, n.version);
536
- F && (m.value = m.value.map((e) => e.id === t.id ? t : e), await L([t]));
534
+ }, u) && await M(async () => {
535
+ let t = await c.changeStatus(n.id, e, n.version);
536
+ k && (f.value = f.value.map((e) => e.id === t.id ? t : e), await P([t]));
537
537
  });
538
538
  }
539
539
  }
540
- async function Ce(e) {
541
- w.value && ie.value && !b.value && !v.value && !C.value.trim() && e.dragRecord.id && e.dropRecord.id && await oe(async () => {
542
- await o.sort(String(e.dragRecord.id), String(e.dropRecord.id), e.position);
543
- let t = await o.query();
544
- F && (m.value = t, await L(t));
540
+ async function Te(e) {
541
+ b.value && oe.value && !_.value && !h.value && !y.value.trim() && e.dragRecord.id && e.dropRecord.id && await M(async () => {
542
+ await c.sort(String(e.dragRecord.id), String(e.dropRecord.id), e.position);
543
+ let t = await c.query();
544
+ k && (f.value = t, await P(t));
545
545
  });
546
546
  }
547
- return (e, t) => (J(), U(z, null, [
548
- v.value ? (J(), V(Z(x), {
547
+ return (e, t) => (J(), H(R, null, [
548
+ h.value ? (J(), B(Z(ce), {
549
549
  key: 0,
550
- open: v.value,
550
+ open: h.value,
551
551
  width: "standard",
552
- title: ae.value,
552
+ title: le.value,
553
553
  subtitle: Z(i),
554
- "before-close": le,
555
- onClose: ue
554
+ "before-close": he,
555
+ onClose: F
556
556
  }, {
557
- operation: $(() => [K(Z(he), { actions: I.value }, null, 8, ["actions"])]),
558
- default: $(() => [E.value ? (J(), V(Z(T), {
557
+ operation: $(() => [G(Z(de), { actions: A.value }, null, 8, ["actions"])]),
558
+ default: $(() => [ne.value ? (J(), B(Z(x), {
559
559
  key: 0,
560
- message: E.value()
561
- }, null, 8, ["message"])) : H("v-if", !0), K(Tt, {
562
- onSubmit: pe,
563
- configuration: Z(a),
564
- creating: y.value,
565
- busy: b.value,
566
- title: te.value,
567
- "onUpdate:title": t[0] ||= (e) => te.value = e,
568
- "approval-enabled": D.value,
569
- "onUpdate:approvalEnabled": t[1] ||= (e) => D.value = e,
570
- "action-code": O.value,
571
- "onUpdate:actionCode": t[2] ||= (e) => O.value = e,
572
- "action-code-locked": !y.value && g.value?.currentVersionNo != null,
573
- "organization-id": k.value,
574
- "onUpdate:organizationId": t[3] ||= (e) => k.value = e,
575
- "match-expression": A.value,
576
- "onUpdate:matchExpression": t[4] ||= (e) => A.value = e,
577
- fallback: j.value,
578
- "onUpdate:fallback": t[5] ||= (e) => j.value = e
560
+ message: ne.value()
561
+ }, null, 8, ["message"])) : V("v-if", !0), G(Et, {
562
+ onSubmit: _e,
563
+ configuration: Z(o),
564
+ creating: g.value,
565
+ busy: _.value,
566
+ title: w.value,
567
+ "onUpdate:title": t[0] ||= (e) => w.value = e,
568
+ "approval-enabled": T.value,
569
+ "onUpdate:approvalEnabled": t[1] ||= (e) => T.value = e,
570
+ "action-code": E.value,
571
+ "onUpdate:actionCode": t[2] ||= (e) => E.value = e,
572
+ "action-code-locked": !g.value && p.value?.currentVersionNo != null,
573
+ "organization-id": D.value,
574
+ "onUpdate:organizationId": t[3] ||= (e) => D.value = e,
575
+ "match-expression": ae.value,
576
+ "onUpdate:matchExpression": t[4] ||= (e) => ae.value = e,
577
+ fallback: O.value,
578
+ "onUpdate:fallback": t[5] ||= (e) => O.value = e
579
579
  }, null, 8, [
580
580
  "configuration",
581
581
  "creating",
@@ -593,62 +593,62 @@ var it = De({
593
593
  "open",
594
594
  "title",
595
595
  "subtitle"
596
- ])) : H("v-if", !0),
597
- E.value && !v.value ? (J(), V(Z(T), {
596
+ ])) : V("v-if", !0),
597
+ ne.value && !h.value ? (J(), B(Z(x), {
598
598
  key: 1,
599
- message: E.value()
600
- }, null, 8, ["message"])) : H("v-if", !0),
601
- K(Z(ee), {
599
+ message: ne.value()
600
+ }, null, 8, ["message"])) : V("v-if", !0),
601
+ G(Z(C), {
602
602
  embedded: "",
603
603
  title: Z(u).t("platform.screen.WorkflowConfigurationView.approval-workflow", "审批流程"),
604
- "title-action-disabled": b.value || v.value,
604
+ "title-action-disabled": _.value || h.value,
605
605
  "title-action-icon": "reload",
606
606
  "title-action-title": Z(u).t("platform.screen.CrudRecordListExplorer.reload", "重新加载"),
607
607
  "fill-height": !1,
608
- columns: _e.value,
609
- rows: ve.value,
610
- loading: b.value,
611
- "table-visible": v.value || !E.value || m.value.length > 0,
608
+ columns: ve.value,
609
+ rows: ye.value,
610
+ loading: _.value,
611
+ "table-visible": h.value || !ne.value || f.value.length > 0,
612
612
  "empty-description": Z(u).t("platform.workflow-config.no-definitions", "暂无流程,点击“新建流程”开始配置"),
613
613
  "quick-search-visible": !0,
614
- "quick-search-value": C.value,
615
- "quick-search-disabled": b.value || v.value,
616
- "row-draggable": w.value && !b.value && !v.value && ie.value && !C.value.trim(),
614
+ "quick-search-value": y.value,
615
+ "quick-search-disabled": _.value || h.value,
616
+ "row-draggable": b.value && !_.value && !h.value && oe.value && !y.value.trim(),
617
617
  "row-drag-handle-title": Z(u).t("platform.workflow-config.reorder", "调整流程顺序:越靠上越优先"),
618
618
  "show-action-column": !0,
619
619
  "action-column-width": 170,
620
- "onUpdate:quickSearchValue": t[9] ||= (e) => C.value = e,
621
- onTitleAction: se,
622
- onRowDrop: xe
620
+ "onUpdate:quickSearchValue": t[9] ||= (e) => y.value = e,
621
+ onTitleAction: ue,
622
+ onRowDrop: Se
623
623
  }, {
624
- operations: $(() => [ie.value ? (J(), V(Z(ne), {
624
+ operations: $(() => [oe.value ? (J(), B(Z(te), {
625
625
  key: 0,
626
626
  "icon-name": "swap-vertical",
627
627
  "icon-only": "",
628
628
  size: "small",
629
629
  type: "text",
630
- selected: w.value,
631
- disabled: b.value || v.value || !!C.value.trim(),
630
+ selected: b.value,
631
+ disabled: _.value || h.value || !!y.value.trim(),
632
632
  title: Z(u).t("platform.workflow-config.reorder", "调整流程顺序:越靠上越优先"),
633
- onClick: t[6] ||= (e) => w.value = !w.value
633
+ onClick: t[6] ||= (e) => b.value = !b.value
634
634
  }, null, 8, [
635
635
  "selected",
636
636
  "disabled",
637
637
  "title"
638
- ])) : H("v-if", !0), K(Z(de), {
638
+ ])) : V("v-if", !0), G(Z(fe), {
639
639
  "icon-name": "plus",
640
640
  title: Z(u).t("platform.screen.WorkflowConfigurationView.new-workflow", "新建流程"),
641
- disabled: b.value || v.value || Z(l).can?.("create") !== !0,
642
- onClick: t[7] ||= (e) => ce()
641
+ disabled: _.value || h.value || Z(l).can?.("create") !== !0,
642
+ onClick: t[7] ||= (e) => me()
643
643
  }, null, 8, ["title", "disabled"])]),
644
- beforeTable: $(() => [E.value && !v.value ? (J(), V(Z(R), {
644
+ beforeTable: $(() => [ne.value && !h.value ? (J(), B(Z(N), {
645
645
  key: 0,
646
- onClick: se
646
+ onClick: ue
647
647
  }, {
648
- default: $(() => [G(X(Z(u).t("platform.screen.CrudRecordListExplorer.reload", "重新加载")), 1)]),
648
+ default: $(() => [W(X(Z(u).t("platform.screen.CrudRecordListExplorer.reload", "重新加载")), 1)]),
649
649
  _: 1
650
- })) : H("v-if", !0)]),
651
- cell: $(({ column: e, record: n, value: r }) => [e.key === "definitionStatus" ? (J(), U("span", Et, X(Z(fe)(String(r ?? ""), Z(u))), 1)) : e.key === "currentVersionNo" ? (J(), U("span", Dt, X(r == null ? "—" : `v${r}`), 1)) : e.key === "matchExpression" ? (J(), V(Z(ge), {
650
+ })) : V("v-if", !0)]),
651
+ cell: $(({ column: e, record: n, value: r }) => [e.key === "definitionStatus" ? (J(), H("span", Dt, X(Z(ge)(String(r ?? ""), Z(u))), 1)) : e.key === "currentVersionNo" ? (J(), H("span", Ot, X(r == null ? "—" : `v${r}`), 1)) : e.key === "matchExpression" ? (J(), B(Z(pe), {
652
652
  key: 2,
653
653
  column: {
654
654
  ...e,
@@ -659,15 +659,15 @@ var it = De({
659
659
  ...n,
660
660
  matchExpression: n.defaultDefinition ? Z(u).t("platform.workflow-manager.fallback", "兜底流程") : r || Z(u).t("platform.workflow-manager.all-records", "全部记录")
661
661
  }
662
- }, null, 8, ["column", "record"])) : e.key === "active" ? (J(), V(Z(M), {
662
+ }, null, 8, ["column", "record"])) : e.key === "active" ? (J(), B(Z(we), {
663
663
  key: 3,
664
- title: ye(n) ? Z(u).t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。") : Z(u).t("platform.workflow-manager.publish-to-enable", "请进入编排发布流程后启用")
664
+ title: be(n) ? Z(u).t("platform.workflow-config.future-only", "此操作影响后续新申请,已有实例继续使用冻结版本。") : Z(u).t("platform.workflow-manager.publish-to-enable", "请进入编排发布流程后启用")
665
665
  }, {
666
- default: $(() => [W("span", { onClick: t[8] ||= rt(() => {}, ["stop"]) }, [K(Z(re), {
666
+ default: $(() => [U("span", { onClick: t[8] ||= it(() => {}, ["stop"]) }, [G(Z(S), {
667
667
  "aria-label": Z(u).t("platform.workflow-manager.active", "启用状态") + ":" + n.title,
668
668
  checked: n.definitionStatus === "published" && n.enabled !== !1,
669
- disabled: !ye(n) || !be(n.definitionStatus === "published" ? "disableWorkflowDefinition" : "enableWorkflowDefinition", n),
670
- onChange: (e) => Se(e ? "enable" : "disable", n)
669
+ disabled: !be(n) || !xe(n.definitionStatus === "published" ? "disableWorkflowDefinition" : "enableWorkflowDefinition", n),
670
+ onChange: (e) => Ce(e ? "enable" : "disable", n)
671
671
  }, null, 8, [
672
672
  "aria-label",
673
673
  "checked",
@@ -675,7 +675,7 @@ var it = De({
675
675
  "onChange"
676
676
  ])])]),
677
677
  _: 2
678
- }, 1032, ["title"])) : (J(), V(Z(ge), {
678
+ }, 1032, ["title"])) : (J(), B(Z(pe), {
679
679
  key: 4,
680
680
  column: {
681
681
  ...e,
@@ -685,32 +685,32 @@ var it = De({
685
685
  record: n
686
686
  }, null, 8, ["column", "record"]))]),
687
687
  rowActions: $(({ record: e }) => [
688
- K(Z(R), {
688
+ G(Z(N), {
689
689
  type: "link",
690
690
  size: "small",
691
- disabled: b.value || v.value,
692
- onClick: (t) => Se("design", e)
691
+ disabled: _.value || h.value,
692
+ onClick: (t) => Ce("design", e)
693
693
  }, {
694
- default: $(() => [G(X(Z(u).t("platform.workflow-manager.design", "编排")), 1)]),
694
+ default: $(() => [W(X(Z(u).t("platform.workflow-manager.design", "编排")), 1)]),
695
695
  _: 1
696
696
  }, 8, ["disabled", "onClick"]),
697
- K(Z(R), {
697
+ G(Z(N), {
698
698
  type: "link",
699
699
  size: "small",
700
- disabled: !be("configureWorkflowSelection", e),
701
- onClick: (t) => Se("settings", e)
700
+ disabled: !xe("configureWorkflowSelection", e),
701
+ onClick: (t) => Ce("settings", e)
702
702
  }, {
703
- default: $(() => [G(X(Z(u).t("platform.workflow-manager.settings", "设置")), 1)]),
703
+ default: $(() => [W(X(Z(u).t("platform.workflow-manager.settings", "设置")), 1)]),
704
704
  _: 1
705
705
  }, 8, ["disabled", "onClick"]),
706
- K(Z(R), {
706
+ G(Z(N), {
707
707
  type: "link",
708
708
  size: "small",
709
709
  danger: "",
710
- disabled: e.definitionStatus === "archived" || !be("archiveWorkflowDefinition", e),
711
- onClick: (t) => Se("archive", e)
710
+ disabled: e.definitionStatus === "archived" || !xe("archiveWorkflowDefinition", e),
711
+ onClick: (t) => Ce("archive", e)
712
712
  }, {
713
- default: $(() => [G(X(Z(u).t("platform.screen.WorkflowConfigurationView.archive", "归档")), 1)]),
713
+ default: $(() => [W(X(Z(u).t("platform.screen.WorkflowConfigurationView.archive", "归档")), 1)]),
714
714
  _: 1
715
715
  }, 8, ["disabled", "onClick"])
716
716
  ]),
@@ -731,17 +731,17 @@ var it = De({
731
731
  ])
732
732
  ], 64));
733
733
  }
734
- }), kt = { class: "module-menu-entries" }, At = { key: 0 }, jt = {
734
+ }), At = { class: "module-menu-entries" }, jt = { key: 0 }, Mt = {
735
735
  key: 1,
736
736
  role: "status"
737
- }, Mt = { key: 2 }, Nt = { key: 0 }, Pt = /*#__PURE__*/ I(/* @__PURE__ */ q({
737
+ }, Nt = { key: 2 }, Pt = { key: 0 }, Ft = /*#__PURE__*/ L(/* @__PURE__ */ q({
738
738
  __name: "ModuleMenuEntriesSection",
739
739
  props: { context: {} },
740
740
  setup(e) {
741
- let t = j(), n = e, r = s(), i = Y([]), a = B(() => i.value.flatMap(({ scheme: e, tree: r }) => Ne(r, te(e, "title", t) ?? e.alias ?? e.id, t).filter(({ menu: e }) => e.moduleAlias === String(n.context.record.alias ?? n.context.record.id ?? "")))), o = Y(/* @__PURE__ */ new Map()), c = Y(!1), l = Y(!1), u = B(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
742
- Ge(() => d++), Q(() => [n.context.record.id, n.context.refreshKey], () => void f(), { immediate: !0 });
741
+ let t = I(), n = e, r = s(), i = Y([]), a = z(() => i.value.flatMap(({ scheme: e, tree: r }) => Fe(r, oe(e, "title", t) ?? e.alias ?? e.id, t).filter(({ menu: e }) => e.moduleAlias === String(n.context.record.alias ?? n.context.record.id ?? "")))), o = Y(/* @__PURE__ */ new Map()), c = Y(!1), l = Y(!1), u = z(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
742
+ Ke(() => d++), Q(() => [n.context.record.id, n.context.refreshKey], () => void f(), { immediate: !0 });
743
743
  async function f() {
744
- let e = ++d, t = je(n.context.module.http);
744
+ let e = ++d, t = Ne(n.context.module.http);
745
745
  c.value = !0, l.value = !1, i.value = [], o.value = /* @__PURE__ */ new Map();
746
746
  try {
747
747
  let [n, r] = await Promise.all([t.schemes(), t.visible()]), a = await Promise.all(n.map(async (e) => ({
@@ -749,33 +749,33 @@ var it = De({
749
749
  tree: await t.tree(e.id)
750
750
  })));
751
751
  if (e !== d) return;
752
- i.value = a, o.value = new Map(Ne(r).map(({ menu: e }) => [e.id, e]));
752
+ i.value = a, o.value = new Map(Fe(r).map(({ menu: e }) => [e.id, e]));
753
753
  } catch {
754
754
  e === d && (l.value = !0);
755
755
  } finally {
756
756
  e === d && (c.value = !1);
757
757
  }
758
758
  }
759
- return (e, n) => (J(), U("div", kt, [c.value ? (J(), U("span", At, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : u.value ? (J(), U("div", jt, [G(X(u.value) + " ", 1), K(Z(R), {
759
+ return (e, n) => (J(), H("div", At, [c.value ? (J(), H("span", jt, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : u.value ? (J(), H("div", Mt, [W(X(u.value) + " ", 1), G(Z(N), {
760
760
  type: "link",
761
761
  onClick: f
762
762
  }, {
763
- default: $(() => [G(X(Z(t).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
763
+ default: $(() => [W(X(Z(t).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
764
764
  _: 1
765
- })])) : a.value.length ? H("v-if", !0) : (J(), U("span", Mt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.no-menu-entry-yet-use-add-to-menu-above-to", "尚未添加到菜单,可通过上方“添加到菜单”设置入口。")), 1)), (J(!0), U(z, null, Ye(a.value, (e) => (J(), U("div", {
765
+ })])) : a.value.length ? V("v-if", !0) : (J(), H("span", Nt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.no-menu-entry-yet-use-add-to-menu-above-to", "尚未添加到菜单,可通过上方“添加到菜单”设置入口。")), 1)), (J(!0), H(R, null, Xe(a.value, (e) => (J(), H("div", {
766
766
  key: e.menu.id,
767
767
  class: "menu-entry"
768
- }, [W("span", null, [G(X(e.path), 1), e.menu.enabled === !1 ? (J(), U("small", Nt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.disabled", "· 已停用")), 1)) : H("v-if", !0)]), o.value.has(e.menu.id) && Z(r)?.openMenu ? (J(), V(Z(R), {
768
+ }, [U("span", null, [W(X(e.path), 1), e.menu.enabled === !1 ? (J(), H("small", Pt, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.disabled", "· 已停用")), 1)) : V("v-if", !0)]), o.value.has(e.menu.id) && Z(r)?.openMenu ? (J(), B(Z(N), {
769
769
  key: 0,
770
770
  type: "link",
771
771
  onClick: (t) => Z(r).openMenu(o.value.get(e.menu.id))
772
772
  }, {
773
- default: $(() => [W("span", null, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.open", "打开")), 1)]),
773
+ default: $(() => [U("span", null, X(Z(t).t("platform.screen.ModuleMenuEntriesSection.open", "打开")), 1)]),
774
774
  _: 1
775
- }, 8, ["onClick"])) : H("v-if", !0)]))), 128))]));
775
+ }, 8, ["onClick"])) : V("v-if", !0)]))), 128))]));
776
776
  }
777
- }), [["__scopeId", "data-v-d5fd13ca"]]), Ft = /* @__PURE__ */ new WeakMap();
778
- function It(e) {
777
+ }), [["__scopeId", "data-v-d5fd13ca"]]), It = /* @__PURE__ */ new WeakMap();
778
+ function Lt(e) {
779
779
  let t = Y({}), n = /* @__PURE__ */ new Map();
780
780
  async function r(r) {
781
781
  let i = (n.get(r) ?? 0) + 1;
@@ -784,7 +784,7 @@ function It(e) {
784
784
  configurable: !1
785
785
  };
786
786
  try {
787
- let a = await Ee(e.http, r);
787
+ let a = await Oe(e.http, r);
788
788
  n.get(r) === i && (t.value[r] = {
789
789
  ...a,
790
790
  phase: "ready"
@@ -793,7 +793,7 @@ function It(e) {
793
793
  n.get(r) === i && (t.value[r] = {
794
794
  phase: "failed",
795
795
  configurable: !1,
796
- error: _(h(e))
796
+ error: re(m(e))
797
797
  });
798
798
  }
799
799
  }
@@ -803,14 +803,14 @@ function It(e) {
803
803
  dispose: () => n.clear()
804
804
  };
805
805
  }
806
- function Lt(e) {
807
- e = $e(e);
808
- let t = Ft.get(e);
809
- return t || (t = It(e), Ft.set(e, t)), t;
810
- }
811
806
  function Rt(e) {
812
- e = $e(e);
813
- let t = Lt(e), r = n((e) => {
807
+ e = et(e);
808
+ let t = It.get(e);
809
+ return t || (t = Lt(e), It.set(e, t)), t;
810
+ }
811
+ function zt(e) {
812
+ e = et(e);
813
+ let t = Rt(e), r = n((e) => {
814
814
  if (e.changes.some((e) => [
815
815
  "platform.module",
816
816
  "platform.metadata",
@@ -820,92 +820,92 @@ function Rt(e) {
820
820
  ].includes(e.moduleAlias))) for (let e of Object.keys(t.states.value)) t.refresh(e);
821
821
  });
822
822
  return () => {
823
- r.unsubscribe(), t.dispose(), Ft.delete(e);
823
+ r.unsubscribe(), t.dispose(), It.delete(e);
824
824
  };
825
825
  }
826
- function zt(e, t) {
827
- let n = Lt(e).states.value[t];
826
+ function Bt(e, t) {
827
+ let n = Rt(e).states.value[t];
828
828
  return n?.phase === "ready" && n.configurable;
829
829
  }
830
830
  //#endregion
831
831
  //#region src/platform-admin-runtime/ModuleCodeConfigurationStatus.vue?vue&type=script&setup=true&lang.ts
832
- var Bt = {
832
+ var Vt = {
833
833
  key: 0,
834
834
  class: "module-code-status",
835
835
  role: "status"
836
- }, Vt = /*#__PURE__*/ I(/* @__PURE__ */ q({
836
+ }, Ht = /*#__PURE__*/ L(/* @__PURE__ */ q({
837
837
  __name: "ModuleCodeConfigurationStatus",
838
838
  props: { context: {} },
839
839
  setup(e) {
840
- let t = e, n = j(), r = s(), i = B(() => Lt(t.context.module)), a = B(() => String(t.context.record?.alias ?? t.context.record?.id ?? "")), o = B(() => i.value.states.value[a.value]);
840
+ let t = e, n = I(), r = s(), i = z(() => Rt(t.context.module)), o = z(() => String(t.context.record?.alias ?? t.context.record?.id ?? "")), c = z(() => i.value.states.value[o.value]);
841
841
  Q([
842
- a,
842
+ o,
843
843
  () => t.context.mode,
844
844
  () => t.context.module
845
845
  ], ([e, t]) => {
846
846
  e && t === "view" && !i.value.states.value[e] && i.value.refresh(e);
847
847
  }, { immediate: !0 });
848
- let l = B(() => o.value?.reason), u = B(() => t.context.mode === "view" && !!a.value && (o.value?.phase === "failed" || t.context.record?.moduleKind === "dynamic" && o.value?.phase === "ready" && !o.value.configurable));
848
+ let l = z(() => c.value?.reason), u = z(() => t.context.mode === "view" && !!o.value && (c.value?.phase === "failed" || t.context.record?.moduleKind === "dynamic" && c.value?.phase === "ready" && !c.value.configurable));
849
849
  function d() {
850
- r?.openPage(c(Oe, {
851
- moduleAlias: a.value,
852
- moduleTitle: String(t.context.record?.title ?? a.value),
850
+ r?.openPage(a(Ae, {
851
+ moduleAlias: o.value,
852
+ moduleTitle: String(t.context.record?.title ?? o.value),
853
853
  governanceTab: "metadata"
854
854
  }));
855
855
  }
856
- return (e, t) => u.value ? (J(), U("div", Bt, [o.value?.phase === "failed" ? (J(), U(z, { key: 0 }, [
857
- W("span", null, X(Z(n).t("platform.code.config.catalog-failed", "暂时无法检查业务编码配置条件,请重试。")), 1),
858
- W("span", null, X(o.value?.error), 1),
859
- K(Z(R), {
856
+ return (e, t) => u.value ? (J(), H("div", Vt, [c.value?.phase === "failed" ? (J(), H(R, { key: 0 }, [
857
+ U("span", null, X(Z(n).t("platform.code.config.catalog-failed", "暂时无法检查业务编码配置条件,请重试。")), 1),
858
+ U("span", null, X(c.value?.error), 1),
859
+ G(Z(N), {
860
860
  type: "link",
861
- onClick: t[0] ||= (e) => i.value.refresh(a.value)
861
+ onClick: t[0] ||= (e) => i.value.refresh(o.value)
862
862
  }, {
863
- default: $(() => [G(X(Z(n).t("platform.code.config.retry", "重试")), 1)]),
863
+ default: $(() => [W(X(Z(n).t("platform.code.config.retry", "重试")), 1)]),
864
864
  _: 1
865
865
  })
866
- ], 64)) : (J(), U(z, { key: 1 }, [W("span", null, X(Z(n).t(`platform.code.config.reason.${l.value}`, l.value === "no-model" ? "尚未关联业务数据模型,请先配置模型,再设置编号规则。" : "当前数据模型没有可用于编号的字段,请先检查字段配置。")), 1), Z(r) ? (J(), V(Z(R), {
866
+ ], 64)) : (J(), H(R, { key: 1 }, [U("span", null, X(Z(n).t(`platform.code.config.reason.${l.value}`, l.value === "no-model" ? "尚未关联业务数据模型,请先配置模型,再设置编号规则。" : "当前数据模型没有可用于编号的字段,请先检查字段配置。")), 1), Z(r) ? (J(), B(Z(N), {
867
867
  key: 0,
868
868
  type: "link",
869
869
  onClick: d
870
870
  }, {
871
- default: $(() => [G(X(Z(n).t("platform.code.config.configure-model", "配置模型")), 1)]),
871
+ default: $(() => [W(X(Z(n).t("platform.code.config.configure-model", "配置模型")), 1)]),
872
872
  _: 1
873
- })) : H("v-if", !0)], 64))])) : H("v-if", !0);
873
+ })) : V("v-if", !0)], 64))])) : V("v-if", !0);
874
874
  }
875
- }), [["__scopeId", "data-v-ab744e6f"]]), Ht = it, Ut = ut, Wt = lt, Gt = Oe, Kt = {
875
+ }), [["__scopeId", "data-v-ab744e6f"]]), Ut = at, Wt = dt, Gt = ut, Kt = Ae, qt = {
876
876
  id: "platform-module-workspace-actions",
877
877
  target: { moduleAlias: "platform.module" },
878
- activate: ({ module: e }) => Rt(e),
878
+ activate: ({ module: e }) => zt(e),
879
879
  card: { assistant: {
880
- component: Vt,
880
+ component: Ht,
881
881
  placement: {
882
882
  boundary: "inside",
883
883
  position: "bottom"
884
884
  }
885
885
  } },
886
886
  workspaceViews: [
887
+ Kt,
887
888
  Gt,
888
- Wt,
889
- Ut
889
+ Wt
890
890
  ],
891
891
  detail: {
892
892
  sections: [{
893
893
  key: "module-menu-entries",
894
894
  title: "菜单入口",
895
895
  titleKey: "platform.screen.moduleMenuWorkspace.menu-entry",
896
- component: Pt
896
+ component: Ft
897
897
  }],
898
898
  actions: [
899
899
  {
900
900
  key: "module-business-code",
901
901
  title: "业务编码",
902
902
  titleKey: "platform.code.config.title",
903
- state: (e, t) => ({ visible: !!t && !!Yt(e) && zt(t.module, Yt(e)) }),
903
+ state: (e, t) => ({ visible: !!t && !!Xt(e) && Bt(t.module, Xt(e)) }),
904
904
  run({ record: e, module: t, openWorkspaceTab: n }) {
905
- let r = Yt(e);
906
- r && zt(t, r) && n(Ht, {
905
+ let r = Xt(e);
906
+ r && Bt(t, r) && n(Ut, {
907
907
  moduleAlias: r,
908
- moduleTitle: Xt(e)
908
+ moduleTitle: Zt(e)
909
909
  });
910
910
  }
911
911
  },
@@ -913,14 +913,14 @@ var Bt = {
913
913
  key: "module-workflow-workspace",
914
914
  title: "审批流程",
915
915
  titleKey: "platform.screen.WorkflowConfigurationView.approval-workflow",
916
- state: (e) => ({ visible: Yt(e) !== void 0 }),
916
+ state: (e) => ({ visible: Xt(e) !== void 0 }),
917
917
  run({ openDrawer: e }) {
918
918
  e({
919
919
  title: "审批流程",
920
920
  titleKey: "platform.screen.WorkflowConfigurationView.approval-workflow",
921
921
  width: "wide",
922
922
  dismissal: "dismissible",
923
- component: Ot
923
+ component: kt
924
924
  });
925
925
  }
926
926
  },
@@ -928,13 +928,13 @@ var Bt = {
928
928
  key: "module-add-to-menu",
929
929
  title: "添加到菜单",
930
930
  titleKey: "platform.entry.add-to-menu",
931
- state: (e) => ({ visible: Yt(e) !== void 0 }),
931
+ state: (e) => ({ visible: Xt(e) !== void 0 }),
932
932
  run({ openDrawer: e }) {
933
933
  e({
934
934
  title: "添加到菜单",
935
935
  titleKey: "platform.entry.add-to-menu",
936
936
  width: "narrow",
937
- component: dt
937
+ component: ft
938
938
  });
939
939
  }
940
940
  },
@@ -942,13 +942,13 @@ var Bt = {
942
942
  key: "module-actions-workspace",
943
943
  title: "动作",
944
944
  titleKey: "platform.governance.tab.actions",
945
- state: (e) => ({ visible: Yt(e) !== void 0 }),
945
+ state: (e) => ({ visible: Xt(e) !== void 0 }),
946
946
  run({ record: e, openWorkspaceTab: t }) {
947
- let n = Yt(e);
948
- n && t(Wt, {
947
+ let n = Xt(e);
948
+ n && t(Gt, {
949
949
  moduleAlias: n,
950
- moduleTitle: Xt(e),
951
- moduleKind: Zt(e)
950
+ moduleTitle: Zt(e),
951
+ moduleKind: Qt(e)
952
952
  });
953
953
  }
954
954
  },
@@ -956,19 +956,19 @@ var Bt = {
956
956
  key: "module-ui-orchestration-workspace",
957
957
  title: "低代码",
958
958
  titleKey: "platform.entry.low-code",
959
- state: (e) => ({ visible: Yt(e) !== void 0 && Zt(e) === "dynamic" }),
959
+ state: (e) => ({ visible: Xt(e) !== void 0 && Qt(e) === "dynamic" }),
960
960
  run({ record: e, openWorkspaceTab: t }) {
961
- let n = Yt(e);
962
- n && Zt(e) === "dynamic" && t(Gt, {
961
+ let n = Xt(e);
962
+ n && Qt(e) === "dynamic" && t(Kt, {
963
963
  moduleAlias: n,
964
- moduleTitle: Xt(e),
964
+ moduleTitle: Zt(e),
965
965
  governanceTab: "overview"
966
966
  });
967
967
  }
968
968
  }
969
969
  ]
970
970
  }
971
- }, qt = {
971
+ }, Jt = {
972
972
  id: "dictionary-category-tree-parent-policy",
973
973
  target: { moduleAlias: "platform.dictionary_category" },
974
974
  navigator: { treeParentPolicy: {
@@ -976,7 +976,7 @@ var Bt = {
976
976
  rejectionMessage: "字典类目只能挂在目录下",
977
977
  rejectionMessageKey: "platform.entry.dictionary-categories-must-belong-to-a-folder"
978
978
  } }
979
- }, Jt = {
979
+ }, Yt = {
980
980
  id: "platform-module-action-entry-scope",
981
981
  target: { moduleAlias: "platform.module_action" },
982
982
  navigator: {
@@ -989,35 +989,35 @@ var Bt = {
989
989
  },
990
990
  standardActions: { disabled: ["create"] }
991
991
  };
992
- function Yt(e) {
993
- return Qt(e, "alias") ?? Qt(e, "id");
994
- }
995
992
  function Xt(e) {
996
- return Qt(e, "title");
993
+ return $t(e, "alias") ?? $t(e, "id");
997
994
  }
998
995
  function Zt(e) {
999
- let t = Qt(e, "moduleKind");
996
+ return $t(e, "title");
997
+ }
998
+ function Qt(e) {
999
+ let t = $t(e, "moduleKind");
1000
1000
  return t === "static" || t === "dynamic" ? t : void 0;
1001
1001
  }
1002
- function Qt(e, t) {
1002
+ function $t(e, t) {
1003
1003
  let n = e[t];
1004
1004
  return typeof n == "string" && n.trim() ? n : void 0;
1005
1005
  }
1006
1006
  //#endregion
1007
1007
  //#region src/views/PasswordPolicyPreview.vue?vue&type=script&setup=true&lang.ts
1008
- var $t = { class: "password-policy-preview" }, en = {
1008
+ var en = { class: "password-policy-preview" }, tn = {
1009
1009
  key: 0,
1010
1010
  class: "preview-results"
1011
- }, tn = {
1011
+ }, nn = {
1012
1012
  id: "iam-password-policy-preview",
1013
1013
  target: { moduleAlias: "iam.password_policy_rule" },
1014
1014
  card: { assistant: {
1015
- component: /* @__PURE__ */ I(/* @__PURE__ */ q({
1015
+ component: /* @__PURE__ */ L(/* @__PURE__ */ q({
1016
1016
  name: "PasswordPolicyPreview",
1017
1017
  __name: "PasswordPolicyPreview",
1018
1018
  props: { context: {} },
1019
1019
  setup(e) {
1020
- let t = j(), n = e, r = Y("CURRENT"), i = Y(""), a = Y(), o = Y(!1), s = Y(!1), c = 0, l = B(() => x(n.context.record)), u = B(() => n.context.mode !== "view" || ee(l.value?.id) !== void 0), f = B(() => [{
1020
+ let t = I(), n = e, r = Y("CURRENT"), i = Y(""), a = Y(), o = Y(!1), s = Y(!1), c = 0, l = z(() => y(n.context.record)), u = z(() => n.context.mode !== "view" || S(l.value?.id) !== void 0), d = z(() => [{
1021
1021
  value: "CURRENT",
1022
1022
  label: t.t("platform.screen.PasswordPolicyPreview.current-rule", "本规则"),
1023
1023
  disabled: !u.value
@@ -1028,13 +1028,13 @@ var $t = { class: "password-policy-preview" }, en = {
1028
1028
  Q(u, (e) => {
1029
1029
  !e && r.value === "CURRENT" && (r.value = "ALL");
1030
1030
  }, { immediate: !0 });
1031
- function p(e) {
1031
+ function f(e) {
1032
1032
  (e !== "CURRENT" || u.value) && (e === "CURRENT" || e === "ALL") && (r.value = e);
1033
1033
  }
1034
1034
  Q([r, () => n.context.formSessionKey], ([e]) => {
1035
- e === "ALL" && m();
1035
+ e === "ALL" && p();
1036
1036
  }, { immediate: !0 });
1037
- async function m() {
1037
+ async function p() {
1038
1038
  let e = ++c;
1039
1039
  s.value = !0, o.value = !1, a.value = void 0;
1040
1040
  try {
@@ -1048,56 +1048,56 @@ var $t = { class: "password-policy-preview" }, en = {
1048
1048
  e === c && (s.value = !1);
1049
1049
  }
1050
1050
  }
1051
- let h = B(() => {
1051
+ let m = z(() => {
1052
1052
  let e = u.value ? l.value : void 0;
1053
1053
  if (r.value === "CURRENT") return e ? [e] : [];
1054
1054
  if (!a.value) return [];
1055
- let t = a.value.filter(E), n = ee(e?.id);
1055
+ let t = a.value.filter(te), n = S(e?.id);
1056
1056
  if (n) {
1057
- let e = t.findIndex((e) => ee(e.id) === n);
1057
+ let e = t.findIndex((e) => S(e.id) === n);
1058
1058
  e >= 0 && t.splice(e, 1);
1059
1059
  }
1060
- return e && E(e) && t.push(e), t.length > 0 ? t.sort(C) : [];
1061
- }), g = B(() => i.value ? h.value.map((e, t) => S(e, i.value, t)) : []), _ = B(() => g.value.map((e) => ({
1060
+ return e && te(e) && t.push(e), t.length > 0 ? t.sort(x) : [];
1061
+ }), h = z(() => i.value ? m.value.map((e, t) => b(e, i.value, t)) : []), g = z(() => h.value.map((e) => ({
1062
1062
  ...e,
1063
- title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : L(e.title, e.titleText, t),
1064
- message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : L(e.message, e.messageText, t),
1063
+ title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : T(e.title, e.titleText, t),
1064
+ message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : T(e.message, e.messageText, t),
1065
1065
  diagnostic: e.diagnostic ? t.t(e.diagnostic.sourceId, e.diagnostic.originalText) : void 0
1066
- }))), y = B(() => {
1066
+ }))), _ = z(() => {
1067
1067
  if (!u.value && r.value === "CURRENT") return t.t("platform.screen.PasswordPolicyPreview.select-or-create-a-rule", "请选择或新建一条规则");
1068
1068
  if (r.value === "ALL" && s.value) return t.t("platform.screen.PasswordPolicyPreview.loading-the-authoritative-rules", "正在加载权威规则集");
1069
1069
  if (r.value === "ALL" && o.value) return t.t("platform.screen.PasswordPolicyPreview.unable-to-load-the-authoritative-rules", "无法加载权威规则集");
1070
1070
  if (!i.value) return t.t("platform.screen.PasswordPolicyPreview.enter-a-test-password-for-immediate-feedback", "输入测试密码后即时反馈");
1071
- if (g.value.length === 0) return t.t("platform.screen.PasswordPolicyPreview.no-enabled-rules-participate-in-this-preview", "当前没有参与试算的启用规则");
1072
- let e = g.value.filter((e) => !e.passed).length;
1071
+ if (h.value.length === 0) return t.t("platform.screen.PasswordPolicyPreview.no-enabled-rules-participate-in-this-preview", "当前没有参与试算的启用规则");
1072
+ let e = h.value.filter((e) => !e.passed).length;
1073
1073
  return e === 0 ? t.t("platform.screen.PasswordPolicyPreview.all-passed-value-value", "全部通过({value1}/{value2})", {
1074
- value1: g.value.length,
1075
- value2: g.value.length
1074
+ value1: h.value.length,
1075
+ value2: h.value.length
1076
1076
  }) : t.t("platform.screen.PasswordPolicyPreview.value-rules-failed", "{value1} 条规则未通过", { value1: e });
1077
1077
  });
1078
- function x(e) {
1078
+ function y(e) {
1079
1079
  if (e) return e;
1080
1080
  }
1081
- function S(e, t, n) {
1082
- let r = e.title?.trim() ? void 0 : b("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : b("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = T(e.title, r?.originalText ?? ""), o = T(e.message, i?.originalText ?? ""), s = {
1081
+ function b(e, t, n) {
1082
+ let r = e.title?.trim() ? void 0 : w("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : w("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = C(e.title, r?.originalText ?? ""), o = C(e.message, i?.originalText ?? ""), s = {
1083
1083
  titleText: v(e, "title"),
1084
1084
  messageText: v(e, "message")
1085
1085
  }, c = e.pattern;
1086
1086
  if (!c?.trim()) return {
1087
1087
  ...s,
1088
- key: w(e, n),
1088
+ key: ee(e, n),
1089
1089
  title: a,
1090
1090
  message: o,
1091
1091
  titleSource: r,
1092
1092
  messageSource: i,
1093
1093
  passed: !1,
1094
- diagnostic: b("platform.screen.PasswordPolicyPreview.regular-expression-required")
1094
+ diagnostic: w("platform.screen.PasswordPolicyPreview.regular-expression-required")
1095
1095
  };
1096
1096
  try {
1097
1097
  let l = RegExp(`^(?:${c})$`).test(t);
1098
1098
  return {
1099
1099
  ...s,
1100
- key: w(e, n),
1100
+ key: ee(e, n),
1101
1101
  title: a,
1102
1102
  message: o,
1103
1103
  titleSource: r,
@@ -1107,41 +1107,41 @@ var $t = { class: "password-policy-preview" }, en = {
1107
1107
  } catch {
1108
1108
  return {
1109
1109
  ...s,
1110
- key: w(e, n),
1110
+ key: ee(e, n),
1111
1111
  title: a,
1112
1112
  message: o,
1113
1113
  titleSource: r,
1114
1114
  messageSource: i,
1115
1115
  passed: !1,
1116
- diagnostic: b("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
1116
+ diagnostic: w("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
1117
1117
  };
1118
1118
  }
1119
1119
  }
1120
- function C(e, t) {
1121
- return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || T(e.title, "").localeCompare(T(t.title, ""));
1120
+ function x(e, t) {
1121
+ return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || C(e.title, "").localeCompare(C(t.title, ""));
1122
1122
  }
1123
- function w(e, t) {
1124
- return ee(e.id) ?? `draft:${t}`;
1123
+ function ee(e, t) {
1124
+ return S(e.id) ?? `draft:${t}`;
1125
1125
  }
1126
- function ee(e) {
1126
+ function S(e) {
1127
1127
  return e?.trim() || void 0;
1128
1128
  }
1129
- function T(e, t) {
1129
+ function C(e, t) {
1130
1130
  return e?.trim() || t;
1131
1131
  }
1132
- function E(e) {
1132
+ function te(e) {
1133
1133
  return e.enabled !== !1 && (e.scopeType == null || e.scopeType.toLowerCase() === "global");
1134
1134
  }
1135
- return (e, n) => (J(), U("section", $t, [
1136
- W("header", null, [W("h3", null, X(Z(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), W("span", { class: He({ failed: g.value.some((e) => !e.passed) }) }, X(y.value), 3)]),
1137
- K(Z(d), {
1135
+ return (e, n) => (J(), H("section", en, [
1136
+ U("header", null, [U("h3", null, X(Z(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), U("span", { class: Ue({ failed: h.value.some((e) => !e.passed) }) }, X(_.value), 3)]),
1137
+ G(Z(Se), {
1138
1138
  class: "preview-scope",
1139
1139
  value: r.value,
1140
- options: f.value,
1140
+ options: d.value,
1141
1141
  size: "small",
1142
- "onUpdate:value": p
1142
+ "onUpdate:value": f
1143
1143
  }, null, 8, ["value", "options"]),
1144
- K(Z(ve), {
1144
+ G(Z(F), {
1145
1145
  value: i.value,
1146
1146
  "onUpdate:value": n[0] ||= (e) => i.value = e,
1147
1147
  type: "text",
@@ -1153,13 +1153,13 @@ var $t = { class: "password-policy-preview" }, en = {
1153
1153
  "placeholder",
1154
1154
  "aria-label"
1155
1155
  ]),
1156
- g.value.length ? (J(), U("ul", en, [(J(!0), U(z, null, Ye(_.value, (e) => (J(), U("li", {
1156
+ h.value.length ? (J(), H("ul", tn, [(J(!0), H(R, null, Xe(g.value, (e) => (J(), H("li", {
1157
1157
  key: e.key,
1158
- class: He({
1158
+ class: Ue({
1159
1159
  passed: e.passed,
1160
1160
  failed: !e.passed
1161
1161
  })
1162
- }, [W("strong", null, X(e.title), 1), W("span", null, X(e.diagnostic ?? (e.passed ? Z(t).t("platform.workflow-record.check-passed", "通过") : e.message)), 1)], 2))), 128))])) : H("v-if", !0)
1162
+ }, [U("strong", null, X(e.title), 1), U("span", null, X(e.diagnostic ?? (e.passed ? Z(t).t("platform.workflow-record.check-passed", "通过") : e.message)), 1)], 2))), 128))])) : V("v-if", !0)
1163
1163
  ]));
1164
1164
  }
1165
1165
  }), [["__scopeId", "data-v-235173d0"]]),
@@ -1168,15 +1168,15 @@ var $t = { class: "password-policy-preview" }, en = {
1168
1168
  position: "bottom"
1169
1169
  }
1170
1170
  } }
1171
- }, nn = { class: "tenant-applications-detail" }, rn = { class: "tenant-applications-summary" }, an = {
1171
+ }, rn = { class: "tenant-applications-detail" }, an = { class: "tenant-applications-summary" }, on = {
1172
1172
  key: 0,
1173
1173
  class: "tenant-applications-status"
1174
- }, on = /*#__PURE__*/ I(/* @__PURE__ */ q({
1174
+ }, sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1175
1175
  name: "TenantApplicationsDetailSection",
1176
1176
  __name: "TenantApplicationsDetailSection",
1177
1177
  props: { context: {} },
1178
1178
  setup(e) {
1179
- let t = j(), n = e, r = Y([]), i = Y(!1), a = 0, o = Y(/* @__PURE__ */ new Map()), s = B(() => r.value.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && e.length > 0).map((e) => ({
1179
+ let t = I(), n = e, r = Y([]), i = Y(!1), a = 0, o = Y(/* @__PURE__ */ new Map()), s = z(() => r.value.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && e.length > 0).map((e) => ({
1180
1180
  key: e,
1181
1181
  label: o.value.get(e) ? `${o.value.get(e)} · ${e}` : e
1182
1182
  })));
@@ -1206,7 +1206,7 @@ var $t = { class: "password-policy-preview" }, en = {
1206
1206
  })]);
1207
1207
  s === a && (o.value = new Map(t.records.filter((e) => e.alias && e.title).map((e) => [e.alias, e.title])), r.value = i.records);
1208
1208
  } catch (e) {
1209
- s === a && N(e, {
1209
+ s === a && j(e, {
1210
1210
  language: t,
1211
1211
  source: "tenant-applications-detail",
1212
1212
  phase: "load"
@@ -1218,19 +1218,19 @@ var $t = { class: "password-policy-preview" }, en = {
1218
1218
  function l(e, t) {
1219
1219
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
1220
1220
  }
1221
- return (e, n) => (J(), U("section", nn, [W("div", rn, [i.value ? (J(), U("span", an, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (J(), V(Z(P), {
1221
+ return (e, n) => (J(), H("section", rn, [U("div", an, [i.value ? (J(), H("span", on, X(Z(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (J(), B(Z(_e), {
1222
1222
  key: 1,
1223
1223
  items: s.value,
1224
1224
  "max-visible": 8,
1225
1225
  "empty-text": Z(t).t("platform.screen.CrudRecordListExplorer.emptyDescription", "暂无记录")
1226
1226
  }, null, 8, ["items", "empty-text"]))])]));
1227
1227
  }
1228
- }), [["__scopeId", "data-v-49a973de"]]), sn = { class: "tenant-application-configuration" }, cn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1228
+ }), [["__scopeId", "data-v-49a973de"]]), cn = { class: "tenant-application-configuration" }, ln = /*#__PURE__*/ L(/* @__PURE__ */ q({
1229
1229
  name: "TenantApplicationConfigurationDrawer",
1230
1230
  __name: "TenantApplicationConfigurationDrawer",
1231
1231
  props: { context: {} },
1232
1232
  setup(e) {
1233
- let t = j(), n = e, r = Y([]), i = Y(/* @__PURE__ */ new Set()), a = Y(!1), o = Y(!1), s = B(() => [{
1233
+ let t = I(), n = e, r = Y([]), i = Y(/* @__PURE__ */ new Set()), a = Y(!1), o = Y(!1), s = z(() => [{
1234
1234
  key: "title",
1235
1235
  title: t.t("platform.screen.TenantApplicationConfigurationDrawer.application-name", "应用名称"),
1236
1236
  width: 260
@@ -1238,7 +1238,7 @@ var $t = { class: "password-policy-preview" }, en = {
1238
1238
  key: "alias",
1239
1239
  title: t.t("platform.screen.TenantApplicationConfigurationDrawer.application-alias", "应用 alias"),
1240
1240
  width: 220
1241
- }]), c = B(() => r.value), l = B(() => ({
1241
+ }]), c = z(() => r.value), l = z(() => ({
1242
1242
  selectedRowKeys: [...i.value],
1243
1243
  preserveSelectedRowKeys: !0,
1244
1244
  disabledOf: (e) => o.value || e.alias === "iam",
@@ -1263,7 +1263,7 @@ var $t = { class: "password-policy-preview" }, en = {
1263
1263
  run: f
1264
1264
  }]);
1265
1265
  }
1266
- Ke(() => {
1266
+ qe(() => {
1267
1267
  u(), d();
1268
1268
  }), Q([o, t.revision], u);
1269
1269
  async function d() {
@@ -1290,7 +1290,7 @@ var $t = { class: "password-policy-preview" }, en = {
1290
1290
  let o = new Set(r.value.map((e) => e.alias).filter(Boolean));
1291
1291
  i.value = /* @__PURE__ */ new Set(["iam", ...a.records.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && o.has(e))]);
1292
1292
  } catch (e) {
1293
- N(e, {
1293
+ j(e, {
1294
1294
  language: t,
1295
1295
  source: "tenant-application-configuration",
1296
1296
  phase: "load"
@@ -1311,7 +1311,7 @@ var $t = { class: "password-policy-preview" }, en = {
1311
1311
  body: { applicationAliases: [...i.value] }
1312
1312
  }), n.context.refreshDetailExtensions(), n.context.refreshList(), n.context.close();
1313
1313
  } catch (e) {
1314
- N(e, {
1314
+ j(e, {
1315
1315
  language: t,
1316
1316
  source: "tenant-application-configuration",
1317
1317
  phase: "action"
@@ -1324,7 +1324,7 @@ var $t = { class: "password-policy-preview" }, en = {
1324
1324
  function p(e, t) {
1325
1325
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
1326
1326
  }
1327
- return (e, n) => (J(), U("section", sn, [W("p", null, X(Z(t).t("platform.screen.TenantApplicationConfigurationDrawer.select-applications-to-provision-for-this-tenant-deselecting-an-application", "勾选表示向当前租户开通应用;取消勾选将移除该租户的应用开通记录。")), 1), K(Z(D), {
1327
+ return (e, n) => (J(), H("section", cn, [U("p", null, X(Z(t).t("platform.screen.TenantApplicationConfigurationDrawer.select-applications-to-provision-for-this-tenant-deselecting-an-application", "勾选表示向当前租户开通应用;取消勾选将移除该租户的应用开通记录。")), 1), G(Z(y), {
1328
1328
  columns: s.value,
1329
1329
  rows: c.value,
1330
1330
  loading: a.value,
@@ -1341,7 +1341,7 @@ var $t = { class: "password-policy-preview" }, en = {
1341
1341
  "empty-description"
1342
1342
  ])]));
1343
1343
  }
1344
- }), [["__scopeId", "data-v-12c39b69"]]), ln = {
1344
+ }), [["__scopeId", "data-v-12c39b69"]]), un = {
1345
1345
  id: "iam-tenant-standard-page-enhancement",
1346
1346
  target: { moduleAlias: "iam.tenant" },
1347
1347
  form: {
@@ -1357,8 +1357,8 @@ var $t = { class: "password-policy-preview" }, en = {
1357
1357
  },
1358
1358
  ...["lightLogoAssetId", "darkLogoAssetId"].map((e) => ({
1359
1359
  fieldName: e,
1360
- imageUploadHint: ({ draft: e }, t = C) => e.workbenchBrandMode === "logoOnly" ? t.t("platform.entry.logo-only-mode-supports-landscape-or-square-images-up-to-512-kb", "纯 Logo 模式支持横向或正方形图片(最大 512 KB)") : t.t("platform.entry.logo-and-title-mode-requires-square-images-recommended-128-128-px-up-to-512-kb", "Logo + 标题模式仅支持正方形图片(建议 128 × 128 px,最大 512 KB)"),
1361
- imageUploadAdvisory: ({ draft: e }, t = C) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => un(e, t)
1360
+ imageUploadHint: ({ draft: e }, t = d) => e.workbenchBrandMode === "logoOnly" ? t.t("platform.entry.logo-only-mode-supports-landscape-or-square-images-up-to-512-kb", "纯 Logo 模式支持横向或正方形图片(最大 512 KB)") : t.t("platform.entry.logo-and-title-mode-requires-square-images-recommended-128-128-px-up-to-512-kb", "Logo + 标题模式仅支持正方形图片(建议 128 × 128 px,最大 512 KB)"),
1361
+ imageUploadAdvisory: ({ draft: e }, t = d) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => dn(e, t)
1362
1362
  }))
1363
1363
  ]
1364
1364
  },
@@ -1373,7 +1373,7 @@ var $t = { class: "password-policy-preview" }, en = {
1373
1373
  title: "配置应用",
1374
1374
  titleKey: "platform.entry.configure-applications",
1375
1375
  width: "wide",
1376
- component: cn
1376
+ component: ln
1377
1377
  });
1378
1378
  }
1379
1379
  }],
@@ -1381,14 +1381,14 @@ var $t = { class: "password-policy-preview" }, en = {
1381
1381
  key: "tenant-applications",
1382
1382
  title: "已开通应用",
1383
1383
  titleKey: "platform.entry.provisioned-applications",
1384
- component: on
1384
+ component: sn
1385
1385
  }]
1386
1386
  }
1387
1387
  };
1388
- async function un(e, t) {
1388
+ async function dn(e, t) {
1389
1389
  if (!e.type.startsWith("image/") || typeof Image > "u") return t.t("platform.entry.logo-and-title-mode-requires-a-readable-square-image", "Logo + 标题模式需要可读取的正方形图片。");
1390
1390
  try {
1391
- let { width: n, height: r } = await dn(e), i = n / r;
1391
+ let { width: n, height: r } = await fn(e), i = n / r;
1392
1392
  return i >= .9 && i <= 1.1 ? void 0 : t.t("platform.entry.value-is-value-value-px-logo-and-title-mode-only-supports-square-logos", "“{value1}”为 {value2} × {value3} px;Logo + 标题模式仅允许上传正方形 Logo。", {
1393
1393
  value1: e.name,
1394
1394
  value2: n,
@@ -1398,7 +1398,7 @@ async function un(e, t) {
1398
1398
  return t.t("platform.entry.unable-to-read-image-dimensions-select-a-square-png-jpg-or-gif-image", "无法读取图片尺寸,请选择正方形 PNG、JPG 或 GIF 图片。");
1399
1399
  }
1400
1400
  }
1401
- function dn(e) {
1401
+ function fn(e) {
1402
1402
  let t = URL.createObjectURL(e);
1403
1403
  return new Promise((e, n) => {
1404
1404
  let r = new Image();
@@ -1414,24 +1414,24 @@ function dn(e) {
1414
1414
  }
1415
1415
  //#endregion
1416
1416
  //#region src/platform-admin-runtime/employee/EmployeeAccountDrawer.vue?vue&type=script&setup=true&lang.ts
1417
- var fn = {
1417
+ var pn = {
1418
1418
  key: 1,
1419
1419
  class: "employee-account-drawer"
1420
- }, pn = { class: "employee-account-existing-picker" }, mn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1420
+ }, mn = { class: "employee-account-existing-picker" }, hn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1421
1421
  name: "EmployeeAccountDrawer",
1422
1422
  __name: "EmployeeAccountDrawer",
1423
1423
  props: { context: {} },
1424
1424
  setup(e) {
1425
- let t = j(), n = e, r = Y(), i = Y(), a = Y(""), o = Y(""), s = Y(!1), c = Y(!1);
1426
- Ke(() => void l());
1425
+ let t = I(), n = e, r = Y(), i = Y(), a = Y(""), o = Y(""), s = Y(!1), c = Y(!1);
1426
+ qe(() => void l());
1427
1427
  async function l() {
1428
- let e = v();
1428
+ let e = _();
1429
1429
  if (e) {
1430
1430
  s.value = !0;
1431
1431
  try {
1432
1432
  r.value = await n.context.module.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/account` });
1433
1433
  } catch (e) {
1434
- N(e, {
1434
+ j(e, {
1435
1435
  language: t,
1436
1436
  source: "employee-account",
1437
1437
  phase: "load"
@@ -1442,11 +1442,11 @@ var fn = {
1442
1442
  }
1443
1443
  }
1444
1444
  async function u() {
1445
- let e = v();
1445
+ let e = _();
1446
1446
  if (!e || c.value) return;
1447
1447
  let i = a.value.trim();
1448
1448
  if (!i || !o.value) {
1449
- Ce(t.t("platform.screen.EmployeeAccountDrawer.enter-an-account-and-initial-password", "请输入账号和初始密码。"), {
1449
+ E(t.t("platform.screen.EmployeeAccountDrawer.enter-an-account-and-initial-password", "请输入账号和初始密码。"), {
1450
1450
  language: t,
1451
1451
  source: "employee-account",
1452
1452
  phase: "validation"
@@ -1463,9 +1463,9 @@ var fn = {
1463
1463
  password: o.value
1464
1464
  }
1465
1465
  });
1466
- r.value = me(t).binding, o.value = "", n.context.refreshList();
1466
+ r.value = A(t).binding, o.value = "", n.context.refreshList();
1467
1467
  } catch (e) {
1468
- N(e, {
1468
+ j(e, {
1469
1469
  language: t,
1470
1470
  source: "employee-account",
1471
1471
  phase: "action"
@@ -1476,10 +1476,10 @@ var fn = {
1476
1476
  }
1477
1477
  async function d(e) {
1478
1478
  let t = e[0];
1479
- t && await p(t.id);
1479
+ t && await f(t.id);
1480
1480
  }
1481
- async function p(e) {
1482
- let a = v();
1481
+ async function f(e) {
1482
+ let a = _();
1483
1483
  if (a && e && !c.value) {
1484
1484
  c.value = !0;
1485
1485
  try {
@@ -1487,13 +1487,13 @@ var fn = {
1487
1487
  method: "POST",
1488
1488
  path: `/iam.employee/${encodeURIComponent(a)}/account`,
1489
1489
  body: { userId: e }
1490
- }), i.value = void 0, n.context.refreshList(), Ce(t.t("platform.screen.EmployeeAccountDrawer.the-account-is-bound-to-this-employee", "账号已绑定到当前职员。"), {
1490
+ }), i.value = void 0, n.context.refreshList(), E(t.t("platform.screen.EmployeeAccountDrawer.the-account-is-bound-to-this-employee", "账号已绑定到当前职员。"), {
1491
1491
  language: t,
1492
1492
  source: "employee-account",
1493
1493
  phase: "action"
1494
1494
  });
1495
1495
  } catch (e) {
1496
- N(e, {
1496
+ j(e, {
1497
1497
  language: t,
1498
1498
  source: "employee-account",
1499
1499
  phase: "action"
@@ -1503,8 +1503,8 @@ var fn = {
1503
1503
  }
1504
1504
  }
1505
1505
  }
1506
- async function m(e) {
1507
- let t = v();
1506
+ async function p(e) {
1507
+ let t = _();
1508
1508
  if (!t) return {
1509
1509
  records: [],
1510
1510
  total: 0
@@ -1521,12 +1521,12 @@ var fn = {
1521
1521
  }
1522
1522
  });
1523
1523
  return {
1524
- records: r.records.map(g),
1524
+ records: r.records.map(h),
1525
1525
  total: r.total
1526
1526
  };
1527
1527
  }
1528
- async function h(e) {
1529
- let t = v();
1528
+ async function m(e) {
1529
+ let t = _();
1530
1530
  return !t || e.length === 0 ? [] : (await n.context.module.http.request({
1531
1531
  method: "POST",
1532
1532
  path: `/iam.employee/${encodeURIComponent(t)}/account-candidates/query`,
@@ -1537,9 +1537,9 @@ var fn = {
1537
1537
  pageSize: e.length
1538
1538
  }
1539
1539
  }
1540
- })).records.map(g);
1540
+ })).records.map(h);
1541
1541
  }
1542
- function g(e) {
1542
+ function h(e) {
1543
1543
  return {
1544
1544
  id: e.id,
1545
1545
  title: e.username ?? e.id,
@@ -1551,9 +1551,9 @@ var fn = {
1551
1551
  departmentName: e.departmentTitle
1552
1552
  };
1553
1553
  }
1554
- async function _() {
1555
- let e = v();
1556
- if (e && r.value && !c.value && await f({
1554
+ async function g() {
1555
+ let e = _();
1556
+ if (e && r.value && !c.value && await ie({
1557
1557
  title: t.t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户"),
1558
1558
  content: t.t("platform.screen.EmployeeAccountDrawer.remove-this-employee-s-account-the-user-account-will-also", "确认移除该职员的账户?该用户账号会同步删除。"),
1559
1559
  okText: t.t("platform.screen.RecordPermissionDialog.remove", "移除"),
@@ -1566,7 +1566,7 @@ var fn = {
1566
1566
  path: `/iam.employee/${encodeURIComponent(e)}/account/delete`
1567
1567
  }), r.value = void 0, n.context.refreshList();
1568
1568
  } catch (e) {
1569
- N(e, {
1569
+ j(e, {
1570
1570
  language: t,
1571
1571
  source: "employee-account",
1572
1572
  phase: "action"
@@ -1576,28 +1576,28 @@ var fn = {
1576
1576
  }
1577
1577
  }
1578
1578
  }
1579
- function v() {
1579
+ function _() {
1580
1580
  let e = n.context.record?.id;
1581
1581
  return e == null ? void 0 : String(e);
1582
1582
  }
1583
- return (e, n) => s.value ? (J(), V(Z(E), {
1583
+ return (e, n) => s.value ? (J(), B(Z(ne), {
1584
1584
  key: 0,
1585
1585
  tip: Z(t).t("platform.screen.EmployeeAccountDrawer.loading-account-binding", "加载账号绑定")
1586
- }, null, 8, ["tip"])) : (J(), U("section", fn, [v() ? r.value ? (J(), U(z, { key: 1 }, [W("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.currently-bound-user", "当前已绑定用户:")) + X(r.value.userId ?? "-"), 1), K(Z(R), {
1586
+ }, null, 8, ["tip"])) : (J(), H("section", pn, [_() ? r.value ? (J(), H(R, { key: 1 }, [U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.currently-bound-user", "当前已绑定用户:")) + X(r.value.userId ?? "-"), 1), G(Z(N), {
1587
1587
  danger: "",
1588
1588
  "icon-name": "delete",
1589
1589
  loading: c.value,
1590
- onClick: _
1590
+ onClick: g
1591
1591
  }, {
1592
- default: $(() => [G(X(Z(t).t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户")), 1)]),
1592
+ default: $(() => [W(X(Z(t).t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户")), 1)]),
1593
1593
  _: 1
1594
- }, 8, ["loading"])], 64)) : (J(), U(z, { key: 2 }, [W("section", pn, [W("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.bind-an-existing-user-account-only-enabled-accounts-in-this", "绑定已有用户账号;仅显示当前租户内启用且尚未绑定其他职员的账号。")), 1), K(Z(le), {
1594
+ }, 8, ["loading"])], 64)) : (J(), H(R, { key: 2 }, [U("section", mn, [U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.bind-an-existing-user-account-only-enabled-accounts-in-this", "绑定已有用户账号;仅显示当前租户内启用且尚未绑定其他职员的账号。")), 1), G(Z(P), {
1595
1595
  value: i.value,
1596
1596
  disabled: c.value,
1597
1597
  placeholder: Z(t).t("platform.screen.EmployeeAccountDrawer.search-and-select-an-existing-login-account", "搜索并选择已有登录账号"),
1598
1598
  title: Z(t).t("platform.screen.EmployeeAccountDrawer.select-an-existing-login-account", "选择已有登录账号"),
1599
- "search-page": m,
1600
- "resolve-users": h,
1599
+ "search-page": p,
1600
+ "resolve-users": m,
1601
1601
  "onUpdate:value": n[0] ||= (e) => i.value = typeof e == "string" ? e : void 0,
1602
1602
  onSelect: d
1603
1603
  }, null, 8, [
@@ -1605,9 +1605,9 @@ var fn = {
1605
1605
  "disabled",
1606
1606
  "placeholder",
1607
1607
  "title"
1608
- ])]), W("form", { onSubmit: rt(u, ["prevent"]) }, [
1609
- W("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.you-can-also-create-a-login-account-and-bind-it", "也可直接创建登录账号并自动绑定到当前职员。")), 1),
1610
- W("label", null, [W("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), K(Z(ve), {
1608
+ ])]), U("form", { onSubmit: it(u, ["prevent"]) }, [
1609
+ U("p", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.you-can-also-create-a-login-account-and-bind-it", "也可直接创建登录账号并自动绑定到当前职员。")), 1),
1610
+ U("label", null, [U("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), G(Z(F), {
1611
1611
  value: a.value,
1612
1612
  "onUpdate:value": n[1] ||= (e) => a.value = e,
1613
1613
  disabled: c.value,
@@ -1617,7 +1617,7 @@ var fn = {
1617
1617
  "disabled",
1618
1618
  "placeholder"
1619
1619
  ])]),
1620
- W("label", null, [W("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), K(Z(ve), {
1620
+ U("label", null, [U("span", null, X(Z(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), G(Z(F), {
1621
1621
  value: o.value,
1622
1622
  "onUpdate:value": n[2] ||= (e) => o.value = e,
1623
1623
  type: "password",
@@ -1628,22 +1628,22 @@ var fn = {
1628
1628
  "disabled",
1629
1629
  "placeholder"
1630
1630
  ])]),
1631
- K(Z(R), {
1631
+ G(Z(N), {
1632
1632
  type: "primary",
1633
1633
  "html-type": "submit",
1634
1634
  "icon-name": "plus",
1635
1635
  loading: c.value
1636
1636
  }, {
1637
- default: $(() => [G(X(Z(t).t("platform.screen.EmployeeAccountDrawer.create-and-bind-account", "创建账号并绑定")), 1)]),
1637
+ default: $(() => [W(X(Z(t).t("platform.screen.EmployeeAccountDrawer.create-and-bind-account", "创建账号并绑定")), 1)]),
1638
1638
  _: 1
1639
1639
  }, 8, ["loading"])
1640
- ], 32)], 64)) : (J(), V(Z(T), {
1640
+ ], 32)], 64)) : (J(), B(Z(x), {
1641
1641
  key: 0,
1642
1642
  title: Z(t).t("platform.screen.EmployeeAccountDrawer.employee-not-found", "职员不存在"),
1643
1643
  message: Z(t).t("platform.screen.EmployeeAccountDrawer.reopen-the-employee-record-to-set-up-an-account", "请重新打开职员档案后再设置账号。")
1644
1644
  }, null, 8, ["title", "message"]))]));
1645
1645
  }
1646
- }), [["__scopeId", "data-v-e343e658"]]), hn = {
1646
+ }), [["__scopeId", "data-v-e343e658"]]), gn = {
1647
1647
  id: "iam-employee-account-drawer",
1648
1648
  target: { moduleAlias: "iam.employee" },
1649
1649
  detail: { actions: [{
@@ -1657,36 +1657,36 @@ var fn = {
1657
1657
  title: "设置账号",
1658
1658
  titleKey: "platform.entry.set-up-account",
1659
1659
  width: "standard",
1660
- component: mn
1660
+ component: hn
1661
1661
  });
1662
1662
  }
1663
1663
  }] }
1664
- }, gn = "iam.user.session.collectionChanged", _n = /* @__PURE__ */ new WeakMap();
1665
- function vn() {
1666
- let e = _e(), t = _n.get(e);
1667
- t || (t = yn(e), _n.set(e, t));
1664
+ }, _n = "iam.user.session.collectionChanged", vn = /* @__PURE__ */ new WeakMap();
1665
+ function yn() {
1666
+ let e = M(), t = vn.get(e);
1667
+ t || (t = bn(e), vn.set(e, t));
1668
1668
  let n = t;
1669
- return n.users += 1, qe(() => {
1670
- --n.users === 0 && (n.dispose(), _n.delete(e));
1669
+ return n.users += 1, Je(() => {
1670
+ --n.users === 0 && (n.dispose(), vn.delete(e));
1671
1671
  }), {
1672
1672
  observe: n.observe,
1673
1673
  statusOf: n.statusOf,
1674
1674
  refresh: n.refresh
1675
1675
  };
1676
1676
  }
1677
- function yn(e) {
1678
- let t = Y({}), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, o = !1, s = a((e) => {
1679
- bn(e) && n.has(e.recordId) && u(e.recordId);
1677
+ function bn(e) {
1678
+ let t = Y({}), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, s = o((e) => {
1679
+ xn(e) && n.has(e.recordId) && u(e.recordId);
1680
1680
  });
1681
1681
  function c(e) {
1682
- e && !o && (n.add(e), t.value[e] || u(e));
1682
+ e && !a && (n.add(e), t.value[e] || u(e));
1683
1683
  }
1684
1684
  function l(e) {
1685
1685
  return e ? t.value[e] : void 0;
1686
1686
  }
1687
1687
  function u(e) {
1688
- e && !o && (r.add(e), !i && (i = !0, queueMicrotask(() => {
1689
- i = !1, o || d();
1688
+ e && !a && (r.add(e), !i && (i = !0, queueMicrotask(() => {
1689
+ i = !1, a || d();
1690
1690
  })));
1691
1691
  }
1692
1692
  async function d() {
@@ -1697,13 +1697,13 @@ function yn(e) {
1697
1697
  path: "/iam.user/sessions/status",
1698
1698
  body: { userIds: n }
1699
1699
  });
1700
- if (o) return;
1700
+ if (a) return;
1701
1701
  t.value = {
1702
1702
  ...t.value,
1703
1703
  ...Object.fromEntries(r.map((e) => [e.userId, e]))
1704
1704
  };
1705
1705
  } catch (e) {
1706
- o || N(e, {
1706
+ a || j(e, {
1707
1707
  source: "iam-user-online-status",
1708
1708
  phase: "load"
1709
1709
  });
@@ -1715,16 +1715,16 @@ function yn(e) {
1715
1715
  statusOf: l,
1716
1716
  refresh: u,
1717
1717
  dispose() {
1718
- o = !0, n.clear(), r.clear(), s.unsubscribe();
1718
+ a = !0, n.clear(), r.clear(), s.unsubscribe();
1719
1719
  }
1720
1720
  };
1721
1721
  }
1722
- function bn(e) {
1723
- return e.type === gn && e.moduleAlias === "iam.user" && !!e.recordId;
1722
+ function xn(e) {
1723
+ return e.type === _n && e.moduleAlias === "iam.user" && !!e.recordId;
1724
1724
  }
1725
1725
  //#endregion
1726
1726
  //#region src/platform-admin-runtime/user/UserOnlineStatusCell.vue
1727
- var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1727
+ var Sn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1728
1728
  name: "UserOnlineStatusCell",
1729
1729
  __name: "UserOnlineStatusCell",
1730
1730
  props: {
@@ -1732,7 +1732,7 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1732
1732
  column: {}
1733
1733
  },
1734
1734
  setup(e) {
1735
- let t = j(), n = e, r = vn(), i = B(() => n.record.id == null ? void 0 : String(n.record.id)), a = B(() => r.statusOf(i.value)), o = B(() => {
1735
+ let t = I(), n = e, r = yn(), i = z(() => n.record.id == null ? void 0 : String(n.record.id)), a = z(() => r.statusOf(i.value)), o = z(() => {
1736
1736
  let e = a.value;
1737
1737
  if (!e) return "-";
1738
1738
  if (e.present) {
@@ -1750,28 +1750,28 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1750
1750
  function s() {
1751
1751
  r.observe(i.value);
1752
1752
  }
1753
- return Ke(s), Q(i, s), (e, t) => (J(), U("span", { class: He({
1753
+ return qe(s), Q(i, s), (e, t) => (J(), H("span", { class: Ue({
1754
1754
  "user-online-status--present": a.value?.present,
1755
1755
  "user-online-status--offline": a.value && !a.value.online
1756
1756
  }) }, X(o.value), 3));
1757
1757
  }
1758
- }), [["__scopeId", "data-v-56345a12"]]), Sn = {
1758
+ }), [["__scopeId", "data-v-56345a12"]]), Cn = {
1759
1759
  key: 1,
1760
1760
  class: "user-password-drawer"
1761
- }, Cn = { key: 0 }, wn = {
1761
+ }, wn = { key: 0 }, Tn = {
1762
1762
  key: 1,
1763
1763
  class: "user-password-reset"
1764
- }, Tn = { key: 0 }, En = /*#__PURE__*/ I(/* @__PURE__ */ q({
1764
+ }, En = { key: 0 }, Dn = /*#__PURE__*/ L(/* @__PURE__ */ q({
1765
1765
  name: "UserPasswordDrawer",
1766
1766
  __name: "UserPasswordDrawer",
1767
1767
  props: { context: {} },
1768
1768
  setup(e) {
1769
- let t = j(), n = e, r = Y(""), i = Y(), a = Y(!1), o = B(() => n.context.record?.id == null ? void 0 : String(n.context.record.id));
1769
+ let t = I(), n = e, r = Y(""), i = Y(), a = Y(!1), o = z(() => n.context.record?.id == null ? void 0 : String(n.context.record.id));
1770
1770
  async function s() {
1771
1771
  let e = o.value;
1772
1772
  if (e && !a.value && n.context.module.can("changePassword", e) === !0) {
1773
1773
  if (!r.value) {
1774
- Ce(t.t("platform.screen.UserPasswordDrawer.enter-a-new-password", "请输入新密码。"), {
1774
+ E(t.t("platform.screen.UserPasswordDrawer.enter-a-new-password", "请输入新密码。"), {
1775
1775
  language: t,
1776
1776
  source: "iam-user-password",
1777
1777
  phase: "validation"
@@ -1784,13 +1784,13 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1784
1784
  method: "POST",
1785
1785
  path: `/iam.user/changePassword/${encodeURIComponent(e)}`,
1786
1786
  body: { password: r.value }
1787
- }), r.value = "", Ce(t.t("platform.screen.UserPasswordDrawer.password-changed", "密码已修改。"), {
1787
+ }), r.value = "", E(t.t("platform.screen.UserPasswordDrawer.password-changed", "密码已修改。"), {
1788
1788
  language: t,
1789
1789
  source: "iam-user-password",
1790
1790
  phase: "action"
1791
1791
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1792
1792
  } catch (e) {
1793
- N(e, {
1793
+ j(e, {
1794
1794
  language: t,
1795
1795
  source: "iam-user-password",
1796
1796
  phase: "action"
@@ -1810,7 +1810,7 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1810
1810
  path: `/iam.user/resetPassword/${encodeURIComponent(e)}`
1811
1811
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1812
1812
  } catch (e) {
1813
- N(e, {
1813
+ j(e, {
1814
1814
  language: t,
1815
1815
  source: "iam-user-password",
1816
1816
  phase: "action"
@@ -1820,9 +1820,9 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1820
1820
  }
1821
1821
  }
1822
1822
  }
1823
- return (n, l) => o.value ? (J(), U("section", Sn, [e.context.module.can("changePassword", o.value) === !0 ? (J(), U("label", Cn, [
1824
- W("span", null, X(Z(t).t("platform.screen.LoginView.new-password", "新密码")), 1),
1825
- K(Z(ve), {
1823
+ return (n, l) => o.value ? (J(), H("section", Cn, [e.context.module.can("changePassword", o.value) === !0 ? (J(), H("label", wn, [
1824
+ U("span", null, X(Z(t).t("platform.screen.LoginView.new-password", "新密码")), 1),
1825
+ G(Z(F), {
1826
1826
  value: r.value,
1827
1827
  "onUpdate:value": l[0] ||= (e) => r.value = e,
1828
1828
  type: "password",
@@ -1833,25 +1833,25 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1833
1833
  "disabled",
1834
1834
  "placeholder"
1835
1835
  ]),
1836
- K(Z(R), {
1836
+ G(Z(N), {
1837
1837
  type: "primary",
1838
1838
  loading: a.value,
1839
1839
  onClick: s
1840
1840
  }, {
1841
- default: $(() => [G(X(Z(t).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
1841
+ default: $(() => [W(X(Z(t).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
1842
1842
  _: 1
1843
1843
  }, 8, ["loading"])
1844
- ])) : H("v-if", !0), e.context.module.can("resetPassword", o.value) === !0 ? (J(), U("section", wn, [
1845
- W("p", null, X(Z(t).t("platform.screen.UserPasswordDrawer.generate-a-temporary-password-deliver-it-to-the-user-through", "由系统生成临时密码。请在安全渠道交付给用户,并提醒其尽快修改。")), 1),
1846
- K(Z(R), {
1844
+ ])) : V("v-if", !0), e.context.module.can("resetPassword", o.value) === !0 ? (J(), H("section", Tn, [
1845
+ U("p", null, X(Z(t).t("platform.screen.UserPasswordDrawer.generate-a-temporary-password-deliver-it-to-the-user-through", "由系统生成临时密码。请在安全渠道交付给用户,并提醒其尽快修改。")), 1),
1846
+ G(Z(N), {
1847
1847
  loading: a.value,
1848
1848
  onClick: c
1849
1849
  }, {
1850
- default: $(() => [G(X(Z(t).t("platform.screen.UserPasswordDrawer.generate-temporary-password", "生成临时密码")), 1)]),
1850
+ default: $(() => [W(X(Z(t).t("platform.screen.UserPasswordDrawer.generate-temporary-password", "生成临时密码")), 1)]),
1851
1851
  _: 1
1852
1852
  }, 8, ["loading"]),
1853
- i.value ? (J(), U("dl", Tn, [W("div", null, [W("dt", null, X(Z(t).t("platform.screen.UserPasswordDrawer.temporary-password", "临时密码")), 1), W("dd", null, X(i.value.temporaryPassword), 1)]), W("div", null, [W("dt", null, X(Z(t).t("platform.screen.UserPasswordDrawer.expires-at", "失效时间")), 1), W("dd", null, X(i.value.expiresAt ?? "-"), 1)])])) : H("v-if", !0)
1854
- ])) : H("v-if", !0)])) : (J(), V(Z(T), {
1853
+ i.value ? (J(), H("dl", En, [U("div", null, [U("dt", null, X(Z(t).t("platform.screen.UserPasswordDrawer.temporary-password", "临时密码")), 1), U("dd", null, X(i.value.temporaryPassword), 1)]), U("div", null, [U("dt", null, X(Z(t).t("platform.screen.UserPasswordDrawer.expires-at", "失效时间")), 1), U("dd", null, X(i.value.expiresAt ?? "-"), 1)])])) : V("v-if", !0)
1854
+ ])) : V("v-if", !0)])) : (J(), B(Z(x), {
1855
1855
  key: 0,
1856
1856
  title: Z(t).t("platform.screen.UserPasswordDrawer.user-not-found", "用户不存在"),
1857
1857
  message: Z(t).t("platform.screen.UserPasswordDrawer.reopen-the-user-details-to-manage-the-password", "请重新打开用户详情后再管理密码。")
@@ -1860,8 +1860,8 @@ var xn = /*#__PURE__*/ I(/* @__PURE__ */ q({
1860
1860
  }), [["__scopeId", "data-v-891512e0"]]);
1861
1861
  //#endregion
1862
1862
  //#region src/platform-admin-runtime/user/useUserSessionRows.ts
1863
- function Dn(e) {
1864
- let t = e.language ?? C, n = Y([]), i = Y({}), a = r({ load: async (e) => {
1863
+ function On(e) {
1864
+ let t = e.language ?? d, n = Y([]), i = Y({}), a = r({ load: async (e) => {
1865
1865
  await Promise.all(e.keys.map((t) => s(t, e.isLatest)));
1866
1866
  } });
1867
1867
  function o(e) {
@@ -1869,7 +1869,7 @@ function Dn(e) {
1869
1869
  }
1870
1870
  async function s(n, r) {
1871
1871
  if (e.context.can("sessions", n) !== !1) {
1872
- f(n, {
1872
+ p(n, {
1873
1873
  ...u(n),
1874
1874
  loading: !0,
1875
1875
  error: void 0,
@@ -1881,18 +1881,18 @@ function Dn(e) {
1881
1881
  method: "GET",
1882
1882
  path: `/iam.user/${encodeURIComponent(n)}/sessions`
1883
1883
  });
1884
- r(n) && f(n, {
1884
+ r(n) && p(n, {
1885
1885
  records: t,
1886
1886
  loading: !1
1887
1887
  });
1888
1888
  } catch (i) {
1889
1889
  if (!r(n)) return;
1890
- let a = h(i);
1891
- N(a, {
1890
+ let a = m(i);
1891
+ j(a, {
1892
1892
  language: t,
1893
1893
  source: `${e.source}-sessions`,
1894
1894
  phase: "load"
1895
- }), f(n, {
1895
+ }), p(n, {
1896
1896
  ...u(n),
1897
1897
  loading: !1,
1898
1898
  failure: a
@@ -1913,16 +1913,16 @@ function Dn(e) {
1913
1913
  let n = e ? i.value[e] : void 0;
1914
1914
  return n ? n.failure ? {
1915
1915
  ...n,
1916
- error: _(n.failure, t)
1916
+ error: re(n.failure, t)
1917
1917
  } : n : {
1918
1918
  records: [],
1919
1919
  loading: !1
1920
1920
  };
1921
1921
  }
1922
- function d() {
1922
+ function f() {
1923
1923
  a.reset(), n.value = [], i.value = {};
1924
1924
  }
1925
- function f(e, t) {
1925
+ function p(e, t) {
1926
1926
  i.value = {
1927
1927
  ...i.value,
1928
1928
  [e]: t
@@ -1932,13 +1932,13 @@ function Dn(e) {
1932
1932
  handleUserRowExpand: c,
1933
1933
  handleUserSessionBusinessEvent: l,
1934
1934
  loadUserSessions: o,
1935
- reset: d,
1935
+ reset: f,
1936
1936
  userSessionState: u
1937
1937
  };
1938
1938
  }
1939
1939
  //#endregion
1940
1940
  //#region src/platform-admin-runtime/userModulePageEnhancement.ts
1941
- var On = {
1941
+ var kn = {
1942
1942
  id: "iam-user-standard-page-enhancement",
1943
1943
  target: { moduleAlias: "iam.user" },
1944
1944
  navigator: { emptyListScope: ({ currentUser: e, selectedNavigatorRecords: t }) => {
@@ -1956,21 +1956,21 @@ var On = {
1956
1956
  __name: "UserSessionListExpansion",
1957
1957
  props: { context: {} },
1958
1958
  setup(e) {
1959
- let t = j(), n = e, r = B(() => n.context.record.id == null ? void 0 : String(n.context.record.id)), i = Dn({
1959
+ let t = I(), n = e, r = z(() => n.context.record.id == null ? void 0 : String(n.context.record.id)), i = On({
1960
1960
  context: n.context.module,
1961
1961
  source: "iam-user-list-expansion",
1962
1962
  language: t
1963
- }), o = B(() => i.userSessionState(r.value)), s = B(() => o.value.records.filter((e) => !e.current && n.context.module.can("revokeSession", r.value) === !0)), c = B(() => s.value.length > 1 && n.context.module.can("revokeSessions", r.value) === !0);
1963
+ }), a = z(() => i.userSessionState(r.value)), s = z(() => a.value.records.filter((e) => !e.current && n.context.module.can("revokeSession", r.value) === !0)), c = z(() => s.value.length > 1 && n.context.module.can("revokeSessions", r.value) === !0);
1964
1964
  Q([r, () => n.context.expanded], ([e, t]) => {
1965
1965
  e && i.handleUserRowExpand({ id: e }, t);
1966
1966
  }, { immediate: !0 });
1967
- let l = a((e) => i.handleUserSessionBusinessEvent(e));
1968
- Je(() => {
1967
+ let l = o((e) => i.handleUserSessionBusinessEvent(e));
1968
+ Ye(() => {
1969
1969
  l.unsubscribe(), i.reset();
1970
1970
  });
1971
1971
  async function u(e) {
1972
1972
  let a = r.value;
1973
- a && !e.current && n.context.module.can("revokeSession", a) === !0 && await f({
1973
+ a && !e.current && n.context.module.can("revokeSession", a) === !0 && await ie({
1974
1974
  title: t.t("platform.screen.UserSessionListExpansion.sign-out-session", "下线登录会话"),
1975
1975
  content: t.t("platform.screen.UserSessionListExpansion.sign-out-this-login-session", "确认下线该登录会话?"),
1976
1976
  okText: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-session", "下线"),
@@ -1982,7 +1982,7 @@ var On = {
1982
1982
  }
1983
1983
  async function d() {
1984
1984
  let e = r.value, a = s.value.map((e) => e.id);
1985
- e && a.length !== 0 && n.context.module.can("revokeSessions", e) === !0 && await f({
1985
+ e && a.length !== 0 && n.context.module.can("revokeSessions", e) === !0 && await ie({
1986
1986
  title: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
1987
1987
  content: t.t("platform.screen.UserSessionListExpansion.sign-out-this-user-s-value-login-sessions", "确认下线该用户的 {value1} 个登录会话?", { value1: a.length }),
1988
1988
  okText: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
@@ -1993,11 +1993,11 @@ var On = {
1993
1993
  body: { sessionIds: a }
1994
1994
  }), i.loadUserSessions(e));
1995
1995
  }
1996
- return (t, n) => (J(), V(Z(we), {
1996
+ return (t, n) => (J(), B(Z(O), {
1997
1997
  embedded: "",
1998
- sessions: o.value.records,
1999
- loading: o.value.loading,
2000
- error: o.value.error,
1998
+ sessions: a.value.records,
1999
+ loading: a.value.loading,
2000
+ error: a.value.error,
2001
2001
  "can-revoke": (t) => !t.current && e.context.module.can("revokeSession", r.value) === !0,
2002
2002
  "can-revoke-all": c.value,
2003
2003
  onRefresh: n[0] ||= (e) => Z(i).loadUserSessions(r.value),
@@ -2020,7 +2020,7 @@ var On = {
2020
2020
  width: "112px",
2021
2021
  align: "center",
2022
2022
  before: "enabled",
2023
- cell: xn
2023
+ cell: Sn
2024
2024
  }]
2025
2025
  },
2026
2026
  detail: { actions: [{
@@ -2035,26 +2035,181 @@ var On = {
2035
2035
  title: "密码管理",
2036
2036
  titleKey: "platform.entry.password-management",
2037
2037
  width: "narrow",
2038
- component: En
2038
+ component: Dn
2039
2039
  });
2040
2040
  }
2041
2041
  }] }
2042
- }, kn = "/iam.role/scope-selection/descriptor", An = "/iam.role/scope-selection/candidates";
2043
- function jn(e) {
2042
+ }, An = { class: "scheduled-target-fields" }, jn = {
2043
+ key: 0,
2044
+ role: "status"
2045
+ }, Mn = {
2046
+ key: 1,
2047
+ role: "alert"
2048
+ }, Nn = {
2049
+ key: 2,
2050
+ role: "alert"
2051
+ }, Pn = { key: 3 }, Fn = { key: 4 }, In = {
2052
+ id: "platform-scheduled-action-targets",
2053
+ target: { moduleAlias: "platform.scheduled_action_plan" },
2054
+ form: {
2055
+ contributions: [{
2056
+ key: "scheduled-targets",
2057
+ component: /* @__PURE__ */ L(/* @__PURE__ */ q({
2058
+ __name: "ScheduledActionTargetFields",
2059
+ props: { context: {} },
2060
+ setup(e) {
2061
+ let t = e, n = I(), r = M(), i = Y([]), a = Y(!0), o = Y(!1), s = Y(!0), c = Y(!0), l = 0, u = z(() => String(t.context.draft.moduleAlias ?? "")), d = z(() => String(t.context.draft.actionCode ?? "")), f = z(() => JSON.stringify([
2062
+ t.context.formSessionKey,
2063
+ t.context.draft.executionTenantId,
2064
+ n.languageTag.value
2065
+ ]));
2066
+ Q(f, () => void p(), { immediate: !0 }), Ke(() => l++);
2067
+ async function p() {
2068
+ let e = ++l;
2069
+ i.value = [], a.value = !0, o.value = !1;
2070
+ try {
2071
+ let n = await r.request({
2072
+ path: "/platform.scheduled_action_plan/scheduled-targets",
2073
+ query: { executionTenantId: String(t.context.draft.executionTenantId ?? "") || void 0 }
2074
+ });
2075
+ e === l && (i.value = n);
2076
+ } catch {
2077
+ e === l && (o.value = !0);
2078
+ } finally {
2079
+ e === l && (a.value = !1);
2080
+ }
2081
+ }
2082
+ let m = z(() => n.t("platform.scheduled-target.unavailable", "当前目标已失效或无权调度,请重新选择")), h = z(() => i.value.find((e) => e.moduleAlias === u.value && e.actionCode === d.value));
2083
+ Q([
2084
+ a,
2085
+ o,
2086
+ h,
2087
+ u,
2088
+ d,
2089
+ s,
2090
+ c
2091
+ ], () => {
2092
+ let e = t.context.mode === "view" || !a.value && !o.value && !!h.value && s.value && c.value;
2093
+ t.context.reportValidity({
2094
+ valid: e,
2095
+ errors: e ? {} : { actionCode: m.value }
2096
+ });
2097
+ }, { immediate: !0 });
2098
+ function g(e) {
2099
+ let t = i.value, r = u.value, a = e === "moduleAlias" ? [...new Map(t.map((e) => [e.moduleAlias, {
2100
+ id: e.moduleAlias,
2101
+ title: e.moduleTitle,
2102
+ subtitle: e.moduleAlias
2103
+ }])).values()] : t.filter((e) => e.moduleAlias === r).map((e) => ({
2104
+ id: e.actionCode,
2105
+ title: e.actionTitle,
2106
+ subtitle: `${e.actionCode} · ${e.source === "static" ? n.t("platform.scheduled-target.static", "静态") : n.t("platform.scheduled-target.dynamic", "动态")}`
2107
+ }));
2108
+ return {
2109
+ identity: {
2110
+ targetModuleAlias: "platform.scheduled_action_plan",
2111
+ source: {
2112
+ kind: "businessPurpose",
2113
+ id: `scheduled-target:${e}`
2114
+ },
2115
+ authorizationScope: f.value
2116
+ },
2117
+ async searchPage(e) {
2118
+ let t = a.filter((t) => `${t.title} ${t.subtitle}`.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())), n = (e.pageNum - 1) * e.pageSize;
2119
+ return {
2120
+ records: t.slice(n, n + e.pageSize),
2121
+ total: t.length
2122
+ };
2123
+ },
2124
+ async resolve(e) {
2125
+ return e.map((e) => a.find((t) => t.id === e) ?? {
2126
+ id: e,
2127
+ title: e,
2128
+ unavailable: !0,
2129
+ disabled: !0
2130
+ });
2131
+ }
2132
+ };
2133
+ }
2134
+ let _ = z(() => g("moduleAlias")), v = z(() => g("actionCode"));
2135
+ function y(e) {
2136
+ let n = typeof e == "string" ? e : void 0;
2137
+ n !== u.value && (t.context.setField("moduleAlias", n), t.context.setField("actionCode", void 0));
2138
+ }
2139
+ function b(e) {
2140
+ t.context.setField("actionCode", typeof e == "string" ? e : void 0);
2141
+ }
2142
+ function x(e) {
2143
+ let n = t.context.fields.find((t) => t.fieldName === e);
2144
+ return t.context.mode === "view" || n?.readOnly === !0 || a.value || o.value;
2145
+ }
2146
+ function ee(e) {
2147
+ return t.context.fields.find((t) => t.fieldName === e)?.label ?? e;
2148
+ }
2149
+ return (e, t) => (J(), H("div", An, [
2150
+ U("label", null, [U("span", null, X(ee("moduleAlias")), 1), G(Z(ve), {
2151
+ value: u.value || void 0,
2152
+ provider: _.value,
2153
+ "reload-key": f.value,
2154
+ mode: "dropdown",
2155
+ disabled: x("moduleAlias"),
2156
+ "onUpdate:value": y,
2157
+ onValidityChange: t[0] ||= (e) => s.value = e.valid
2158
+ }, null, 8, [
2159
+ "value",
2160
+ "provider",
2161
+ "reload-key",
2162
+ "disabled"
2163
+ ])]),
2164
+ U("label", null, [U("span", null, X(ee("actionCode")), 1), G(Z(ve), {
2165
+ value: d.value || void 0,
2166
+ provider: v.value,
2167
+ "reload-key": `${f.value}:${u.value}`,
2168
+ mode: "dropdown",
2169
+ disabled: x("actionCode") || !u.value,
2170
+ "onUpdate:value": b,
2171
+ onValidityChange: t[1] ||= (e) => c.value = e.valid
2172
+ }, null, 8, [
2173
+ "value",
2174
+ "provider",
2175
+ "reload-key",
2176
+ "disabled"
2177
+ ])]),
2178
+ a.value ? (J(), H("p", jn, X(Z(n).t("platform.scheduled-target.loading", "正在加载候选")), 1)) : o.value ? (J(), H("p", Mn, [W(X(Z(n).t("platform.scheduled-target.load-failed", "候选加载失败,请重试")) + " ", 1), U("button", {
2179
+ type: "button",
2180
+ onClick: p
2181
+ }, X(Z(n).t("platform.scheduled-target.retry", "重试")), 1)])) : !a.value && (u.value || d.value) && !h.value ? (J(), H("p", Nn, X(m.value), 1)) : V("v-if", !0),
2182
+ h.value?.parametersRequired ? (J(), H("p", Pn, X(Z(n).t("platform.scheduled-target.parameters-required", "此动作需要参数,请填写静态参数 JSON")), 1)) : h.value && h.value.parametersRequired == null ? (J(), H("p", Fn, X(Z(n).t("platform.scheduled-target.parameters-unspecified", "此动作未声明参数要求,保存时将校验参数")), 1)) : V("v-if", !0)
2183
+ ]));
2184
+ }
2185
+ }), [["__scopeId", "data-v-405e31c0"]]),
2186
+ location: {
2187
+ surface: "record-card",
2188
+ fieldName: "moduleAlias",
2189
+ placement: "after"
2190
+ }
2191
+ }],
2192
+ fieldPolicies: ["moduleAlias", "actionCode"].map((e) => ({
2193
+ fieldName: e,
2194
+ visible: () => !1
2195
+ }))
2196
+ }
2197
+ }, Ln = "/iam.role/scope-selection/descriptor", Rn = "/iam.role/scope-selection/candidates";
2198
+ function zn(e) {
2044
2199
  return {
2045
2200
  async descriptor() {
2046
- return Mn(await e.request({ path: kn }));
2201
+ return Bn(await e.request({ path: Ln }));
2047
2202
  },
2048
2203
  async candidates(t) {
2049
- let n = Kn(t.pageNum) ?? 1, r = Kn(t.pageSize) ?? 100;
2050
- return Nn(await e.request({
2204
+ let n = er(t.pageNum) ?? 1, r = er(t.pageSize) ?? 100;
2205
+ return Vn(await e.request({
2051
2206
  method: "POST",
2052
- path: An,
2207
+ path: Rn,
2053
2208
  body: {
2054
- navigationKey: Un(t.navigationKey, "navigationKey"),
2209
+ navigationKey: Zn(t.navigationKey, "navigationKey"),
2055
2210
  level: t.level,
2056
- keyword: Hn(t.keyword),
2057
- parentId: Hn(t.parentId),
2211
+ keyword: Xn(t.keyword),
2212
+ parentId: Xn(t.parentId),
2058
2213
  page: {
2059
2214
  pageNum: n,
2060
2215
  pageSize: r
@@ -2064,35 +2219,35 @@ function jn(e) {
2064
2219
  }
2065
2220
  };
2066
2221
  }
2067
- function Mn(e) {
2068
- let t = zn(e);
2222
+ function Bn(e) {
2223
+ let t = qn(e);
2069
2224
  return {
2070
- directSelections: Bn(t.directSelections).flatMap(Pn),
2071
- navigations: Bn(t.navigations).flatMap(Fn)
2225
+ directSelections: Jn(t.directSelections).flatMap(Hn),
2226
+ navigations: Jn(t.navigations).flatMap(Un)
2072
2227
  };
2073
2228
  }
2074
- function Nn(e, t) {
2075
- let n = zn(e), r = Bn(n.records).flatMap(In), i = Gn(n.pageNum) ?? t, a = Gn(n.pages), o = Wn(n.totalKnown, !0) && a != null ? i < a : r.length > 0;
2229
+ function Vn(e, t) {
2230
+ let n = qn(e), r = Jn(n.records).flatMap(Wn), i = $n(n.pageNum) ?? t, a = $n(n.pages), o = Qn(n.totalKnown, !0) && a != null ? i < a : r.length > 0;
2076
2231
  return {
2077
2232
  records: r,
2078
2233
  hasMore: o,
2079
2234
  ...o ? { nextPage: i + 1 } : {}
2080
2235
  };
2081
2236
  }
2082
- function Pn(e) {
2083
- let t = zn(e), n = Vn(t.selectionKey);
2237
+ function Hn(e) {
2238
+ let t = qn(e), n = Yn(t.selectionKey);
2084
2239
  if (!n) return [];
2085
- let r = Vn(t.title ?? t.label) ?? n, i = Ln(t.titleText, r);
2240
+ let r = Yn(t.title ?? t.label) ?? n, i = Gn(t.titleText, r);
2086
2241
  return [{
2087
2242
  selectionKey: n,
2088
2243
  label: r,
2089
2244
  ...i ? { labelText: i } : {}
2090
2245
  }];
2091
2246
  }
2092
- function Fn(e) {
2093
- let t = zn(e), n = Vn(t.navigationKey), r = Rn(t.level);
2247
+ function Un(e) {
2248
+ let t = qn(e), n = Yn(t.navigationKey), r = Kn(t.level);
2094
2249
  if (!n || !r) return [];
2095
- let i = Vn(t.title ?? t.label) ?? n, a = Ln(t.titleText, i);
2250
+ let i = Yn(t.title ?? t.label) ?? n, a = Gn(t.titleText, i);
2096
2251
  return [{
2097
2252
  navigationKey: n,
2098
2253
  level: r,
@@ -2100,22 +2255,22 @@ function Fn(e) {
2100
2255
  ...a ? { labelText: a } : {}
2101
2256
  }];
2102
2257
  }
2103
- function In(e) {
2104
- let t = zn(e), n = Vn(t.id), r = Vn(t.selectionKey);
2258
+ function Wn(e) {
2259
+ let t = qn(e), n = Yn(t.id), r = Yn(t.selectionKey);
2105
2260
  return !n || !r ? [] : [{
2106
2261
  id: n,
2107
2262
  selectionKey: r,
2108
- label: Vn(t.title ?? t.label) ?? r,
2109
- ...Vn(t.subtitle ?? t.secondaryLabel) ? { secondaryLabel: Vn(t.subtitle ?? t.secondaryLabel) } : {},
2110
- expandable: Wn(t.expandable, !1)
2263
+ label: Yn(t.title ?? t.label) ?? r,
2264
+ ...Yn(t.subtitle ?? t.secondaryLabel) ? { secondaryLabel: Yn(t.subtitle ?? t.secondaryLabel) } : {},
2265
+ expandable: Qn(t.expandable, !1)
2111
2266
  }];
2112
2267
  }
2113
- function Ln(e, t) {
2114
- let n = zn(e), r = n.source;
2115
- if (!ue(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !S(r, t)) return;
2268
+ function Gn(e, t) {
2269
+ let n = qn(e), r = n.source;
2270
+ if (!b(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !Ce(r, t)) return;
2116
2271
  let i = {};
2117
- for (let [e, t] of Object.entries(zn(n.languages))) {
2118
- let n = zn(t);
2272
+ for (let [e, t] of Object.entries(qn(n.languages))) {
2273
+ let n = qn(t);
2119
2274
  typeof n.text == "string" && n.requestedTag === e && typeof n.missing == "boolean" && typeof n.fallback == "boolean" && (i[e] = {
2120
2275
  text: n.text,
2121
2276
  requestedTag: e,
@@ -2129,76 +2284,76 @@ function Ln(e, t) {
2129
2284
  languages: i
2130
2285
  } : void 0;
2131
2286
  }
2132
- function Rn(e) {
2287
+ function Kn(e) {
2133
2288
  return e === "TENANT" || e === "ORGANIZATION" ? e : void 0;
2134
2289
  }
2135
- function zn(e) {
2290
+ function qn(e) {
2136
2291
  return e && typeof e == "object" && !Array.isArray(e) ? e : {};
2137
2292
  }
2138
- function Bn(e) {
2293
+ function Jn(e) {
2139
2294
  return Array.isArray(e) ? e : [];
2140
2295
  }
2141
- function Vn(e) {
2142
- return typeof e == "string" ? Hn(e) : void 0;
2296
+ function Yn(e) {
2297
+ return typeof e == "string" ? Xn(e) : void 0;
2143
2298
  }
2144
- function Hn(e) {
2299
+ function Xn(e) {
2145
2300
  return e?.trim() || void 0;
2146
2301
  }
2147
- function Un(e, t) {
2148
- let n = Hn(e);
2302
+ function Zn(e, t) {
2303
+ let n = Xn(e);
2149
2304
  if (!n) throw Error(`角色归属范围${t}不能为空`);
2150
2305
  return n;
2151
2306
  }
2152
- function Wn(e, t) {
2307
+ function Qn(e, t) {
2153
2308
  return typeof e == "boolean" ? e : t;
2154
2309
  }
2155
- function Gn(e) {
2310
+ function $n(e) {
2156
2311
  return typeof e == "number" && Number.isInteger(e) && e > 0 ? e : void 0;
2157
2312
  }
2158
- function Kn(e) {
2313
+ function er(e) {
2159
2314
  return typeof e == "number" && Number.isInteger(e) && e > 0 ? e : void 0;
2160
2315
  }
2161
2316
  //#endregion
2162
2317
  //#region src/platform-admin-runtime/role/RoleScopeTree.vue
2163
- var qn = /* @__PURE__ */ q({
2318
+ var tr = /* @__PURE__ */ q({
2164
2319
  name: "RoleScopeTree",
2165
2320
  __name: "RoleScopeTree",
2166
2321
  props: { context: {} },
2167
2322
  setup(e) {
2168
- let t = j(), n = e, r = jn(_e()), i = Y(), a = Y(""), o = Y(!1), s = Y([]), c = Y([]), l = Y(0), u = Y(/* @__PURE__ */ new Map()), d = B(() => n.context.selectionKey), f = B(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), p = B(() => i.value?.navigations.length !== 0), h = B(() => f.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), g = A({
2323
+ let t = I(), n = e, r = zn(M()), i = Y(), a = Y(""), o = Y(!1), s = Y([]), c = Y([]), l = Y(0), u = Y(/* @__PURE__ */ new Map()), d = z(() => n.context.selectionKey), f = z(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), p = z(() => i.value?.navigations.length !== 0), m = z(() => f.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), h = _({
2169
2324
  nodes: () => s.value,
2170
- loader: () => O,
2325
+ loader: () => E,
2171
2326
  version: () => l.value
2172
- }), _ = B(() => v(g.nodes.value));
2327
+ }), g = z(() => v(h.nodes.value));
2173
2328
  function v(e) {
2174
2329
  return e.map((e) => ({
2175
2330
  ...e,
2176
- title: L(e.title, u.value.get(e.key)?.labelText, t),
2331
+ title: T(e.title, u.value.get(e.key)?.labelText, t),
2177
2332
  ...e.children ? { children: v(e.children) } : {}
2178
2333
  }));
2179
2334
  }
2180
- let y = g.states, b = 0, x;
2181
- Ke(() => void S()), Ge(() => {
2335
+ let y = h.states, b = 0, x;
2336
+ qe(() => void ee()), Ke(() => {
2182
2337
  b += 1, x && clearTimeout(x);
2183
2338
  }), Q(a, () => {
2184
- p.value && (x && clearTimeout(x), x = setTimeout(() => void w(), 240));
2339
+ p.value && (x && clearTimeout(x), x = setTimeout(() => void C(), 240));
2185
2340
  });
2186
- async function S() {
2341
+ async function ee() {
2187
2342
  o.value = !0;
2188
2343
  try {
2189
2344
  i.value = await r.descriptor();
2190
2345
  let e = i.value.directSelections[0], t = i.value.directSelections.find((e) => e.selectionKey === n.context.selectionKey);
2191
- t?.labelText && re({
2346
+ t?.labelText && O({
2192
2347
  key: t.selectionKey,
2193
2348
  label: t.label,
2194
2349
  labelText: t.labelText
2195
- }), !n.context.selectionKey && e && re({
2350
+ }), !n.context.selectionKey && e && O({
2196
2351
  key: e.selectionKey,
2197
2352
  label: e.label,
2198
2353
  labelText: e.labelText
2199
- }), await C();
2354
+ }), await S();
2200
2355
  } catch (e) {
2201
- N(e, {
2356
+ j(e, {
2202
2357
  language: t,
2203
2358
  source: "role-scope-tree",
2204
2359
  phase: "load"
@@ -2207,19 +2362,19 @@ var qn = /* @__PURE__ */ q({
2207
2362
  o.value = !1;
2208
2363
  }
2209
2364
  }
2210
- async function C(e = {}) {
2365
+ async function S(e = {}) {
2211
2366
  let n = i.value;
2212
2367
  if (!n) return;
2213
2368
  let r = ++b;
2214
2369
  if (!e.append) {
2215
2370
  c.value = [], l.value += 1, o.value = !0;
2216
2371
  try {
2217
- let e = ee(n);
2372
+ let e = te(n);
2218
2373
  if (r !== b) return;
2219
- u.value = /* @__PURE__ */ new Map(), k(e), s.value = e.map((e) => e.ui);
2374
+ u.value = /* @__PURE__ */ new Map(), D(e), s.value = e.map((e) => e.ui);
2220
2375
  } catch (e) {
2221
2376
  if (r !== b) return;
2222
- s.value = [], N(e, {
2377
+ s.value = [], j(e, {
2223
2378
  language: t,
2224
2379
  source: "role-scope-tree",
2225
2380
  phase: "load"
@@ -2229,12 +2384,12 @@ var qn = /* @__PURE__ */ q({
2229
2384
  }
2230
2385
  }
2231
2386
  }
2232
- async function w() {
2233
- if (await C(), !a.value.trim()) return;
2387
+ async function C() {
2388
+ if (await S(), !a.value.trim()) return;
2234
2389
  let e = (i.value?.navigations ?? []).map((e) => `navigation:${e.navigationKey}`);
2235
- c.value = e, await Ve(), await Promise.all(e.map((e) => g.request(e, "refresh")));
2390
+ c.value = e, await He(), await Promise.all(e.map((e) => h.request(e, "refresh")));
2236
2391
  }
2237
- function ee(e) {
2392
+ function te(e) {
2238
2393
  return [
2239
2394
  ...e.directSelections.map((e) => ({
2240
2395
  ui: {
@@ -2249,11 +2404,11 @@ var qn = /* @__PURE__ */ q({
2249
2404
  labelText: e.labelText
2250
2405
  }
2251
2406
  })),
2252
- ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => T(e)),
2253
- ...e.navigations.filter((e) => e.level === "TENANT").map((e) => T(e))
2407
+ ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => re(e)),
2408
+ ...e.navigations.filter((e) => e.level === "TENANT").map((e) => re(e))
2254
2409
  ];
2255
2410
  }
2256
- function T(e) {
2411
+ function re(e) {
2257
2412
  return {
2258
2413
  ui: {
2259
2414
  key: `navigation:${e.navigationKey}`,
@@ -2267,8 +2422,8 @@ var qn = /* @__PURE__ */ q({
2267
2422
  }
2268
2423
  };
2269
2424
  }
2270
- function te(e, t, n) {
2271
- let r = D(e, t, n);
2425
+ function ie(e, t, n) {
2426
+ let r = w(e, t, n);
2272
2427
  return {
2273
2428
  ui: {
2274
2429
  key: e.selectionKey,
@@ -2284,7 +2439,7 @@ var qn = /* @__PURE__ */ q({
2284
2439
  children: r
2285
2440
  };
2286
2441
  }
2287
- function D(e, t, n) {
2442
+ function w(e, t, n) {
2288
2443
  return t === "TENANT" ? {
2289
2444
  navigationKey: e.selectionKey,
2290
2445
  level: "ORGANIZATION"
@@ -2294,7 +2449,7 @@ var qn = /* @__PURE__ */ q({
2294
2449
  parentId: e.id
2295
2450
  } : void 0;
2296
2451
  }
2297
- async function O(e, n) {
2452
+ async function E(e, n) {
2298
2453
  let i = u.value.get(e.key);
2299
2454
  if (!i?.children) throw Error(t.t("platform.screen.RoleScopeTree.the-role-ownership-scope-is-no-longer-available", "角色归属范围已失效"));
2300
2455
  try {
@@ -2304,71 +2459,71 @@ var qn = /* @__PURE__ */ q({
2304
2459
  pageNum: n.reason === "load-more" ? Number(n.cursor) : 1
2305
2460
  });
2306
2461
  n.signal.throwIfAborted();
2307
- let t = e.records.map((e) => te(e, i.children.level, i.children.navigationKey));
2308
- return k(t), {
2462
+ let t = e.records.map((e) => ie(e, i.children.level, i.children.navigationKey));
2463
+ return D(t), {
2309
2464
  mode: n.reason === "load-more" ? "append" : "replace",
2310
2465
  nodes: t.map((e) => e.ui),
2311
2466
  hasMore: e.hasMore,
2312
2467
  nextCursor: e.nextPage == null ? void 0 : String(e.nextPage)
2313
2468
  };
2314
2469
  } catch (e) {
2315
- throw n.signal.aborted || N(e, {
2470
+ throw n.signal.aborted || j(e, {
2316
2471
  language: t,
2317
2472
  source: "role-scope-tree",
2318
2473
  phase: "load"
2319
2474
  }), e;
2320
2475
  }
2321
2476
  }
2322
- function k(e) {
2477
+ function D(e) {
2323
2478
  let t = new Map(u.value);
2324
2479
  e.forEach((e) => t.set(e.ui.key, e)), u.value = t;
2325
2480
  }
2326
- function ne(e) {
2481
+ function ae(e) {
2327
2482
  let t = u.value.get(e.key)?.selection;
2328
- t && re(t);
2483
+ t && O(t);
2329
2484
  }
2330
- function re(e) {
2485
+ function O(e) {
2331
2486
  n.context.selectSelectionKey(e.key, {
2332
2487
  label: e.label,
2333
2488
  ...e.labelText ? { labelText: e.labelText } : {},
2334
2489
  secondaryLabel: e.secondaryLabel
2335
2490
  });
2336
2491
  }
2337
- function ie() {
2492
+ function oe() {
2338
2493
  let e = i.value?.directSelections[0];
2339
- e && re({
2494
+ e && O({
2340
2495
  key: e.selectionKey,
2341
2496
  label: e.label,
2342
2497
  labelText: e.labelText
2343
2498
  });
2344
2499
  }
2345
- return (e, n) => (J(), V(Z(ye), {
2500
+ return (e, n) => (J(), B(Z(le), {
2346
2501
  class: "role-scope-tree",
2347
- title: h.value,
2502
+ title: m.value,
2348
2503
  "refresh-title": Z(t).t("platform.screen.RoleScopeTree.refresh-role-ownership-scopes", "刷新角色归属范围"),
2349
2504
  "search-keyword": a.value,
2350
2505
  "search-placeholder": Z(t).t("platform.screen.RoleScopeTree.search-names-codes-or-ids", "搜索名称、编码或标识"),
2351
2506
  searchable: p.value,
2352
- onRefresh: C,
2507
+ onRefresh: S,
2353
2508
  "onUpdate:searchKeyword": n[3] ||= (e) => a.value = e
2354
2509
  }, {
2355
- default: $(() => [o.value ? (J(), V(Z(E), {
2510
+ default: $(() => [o.value ? (J(), B(Z(ne), {
2356
2511
  key: 0,
2357
2512
  tip: Z(t).t("platform.screen.RoleScopeTree.loading-role-ownership-scopes", "加载角色归属范围")
2358
- }, null, 8, ["tip"])) : (J(), V(Z(m), {
2513
+ }, null, 8, ["tip"])) : (J(), B(Z(se), {
2359
2514
  key: 1,
2360
2515
  "expanded-keys": c.value,
2361
2516
  "onUpdate:expandedKeys": n[0] ||= (e) => c.value = e,
2362
- nodes: _.value,
2517
+ nodes: g.value,
2363
2518
  "selected-key": d.value,
2364
2519
  "reload-key": l.value,
2365
2520
  "load-strategy": "controlled",
2366
2521
  "reload-on-reexpand": "",
2367
2522
  "branch-states": Z(y),
2368
- onLoadRequest: n[1] ||= (e) => Z(g).request(e.node.key, e.reason, Z(g).stateOf(e.node.key).status === "error"),
2369
- onSelect: ne,
2370
- onDeselect: ie,
2371
- onUnloadChildren: n[2] ||= (e) => Z(g).release(e.key)
2523
+ onLoadRequest: n[1] ||= (e) => Z(h).request(e.node.key, e.reason, Z(h).stateOf(e.node.key).status === "error"),
2524
+ onSelect: ae,
2525
+ onDeselect: oe,
2526
+ onUnloadChildren: n[2] ||= (e) => Z(h).release(e.key)
2372
2527
  }, null, 8, [
2373
2528
  "expanded-keys",
2374
2529
  "nodes",
@@ -2385,7 +2540,7 @@ var qn = /* @__PURE__ */ q({
2385
2540
  "searchable"
2386
2541
  ]));
2387
2542
  }
2388
- }), Jn = /* @__PURE__ */ q({
2543
+ }), nr = /* @__PURE__ */ q({
2389
2544
  name: "RoleEnumTitleCell",
2390
2545
  __name: "RoleEnumTitleCell",
2391
2546
  props: {
@@ -2393,7 +2548,7 @@ var qn = /* @__PURE__ */ q({
2393
2548
  column: {}
2394
2549
  },
2395
2550
  setup(e) {
2396
- let t = j(), n = e, r = B(() => {
2551
+ let t = I(), n = e, r = z(() => {
2397
2552
  let e = String(n.record[n.column?.key ?? ""] ?? "");
2398
2553
  return {
2399
2554
  account: t.t("platform.screen.RoleManagementView.account-role", "账号角色"),
@@ -2408,12 +2563,12 @@ var qn = /* @__PURE__ */ q({
2408
2563
  platform: t.t("platform.screen.RoleManagementView.globally-visible", "全局公开")
2409
2564
  }[e] ?? (e || "-");
2410
2565
  });
2411
- return (e, t) => (J(), U("span", null, X(r.value), 1));
2566
+ return (e, t) => (J(), H("span", null, X(r.value), 1));
2412
2567
  }
2413
2568
  });
2414
2569
  //#endregion
2415
2570
  //#region src/views/roleGrantClient.ts
2416
- function Yn(e) {
2571
+ function rr(e) {
2417
2572
  return {
2418
2573
  accountRoleGrants(t, n) {
2419
2574
  return e.request({
@@ -2519,19 +2674,19 @@ function Yn(e) {
2519
2674
  }
2520
2675
  //#endregion
2521
2676
  //#region src/views/RoleAccountGrantDrawer.vue?vue&type=script&setup=true&lang.ts
2522
- var Xn = {
2677
+ var ir = {
2523
2678
  key: 1,
2524
2679
  class: "role-account-grant-drawer-state"
2525
- }, Zn = {
2680
+ }, ar = {
2526
2681
  key: 0,
2527
2682
  class: "role-account-grant-target-tenant"
2528
- }, Qn = {
2683
+ }, or = {
2529
2684
  key: 1,
2530
2685
  class: "role-account-grant-target-hint"
2531
- }, $n = { class: "role-account-grant-search" }, er = {
2686
+ }, sr = { class: "role-account-grant-search" }, cr = {
2532
2687
  key: 0,
2533
2688
  class: "role-account-grant-selected"
2534
- }, tr = { class: "role-account-grant-selected-title" }, nr = { class: "role-account-grant-selected-list" }, rr = ["disabled", "onClick"], ir = 20, ar = /*#__PURE__*/ I(/* @__PURE__ */ q({
2689
+ }, lr = { class: "role-account-grant-selected-title" }, ur = { class: "role-account-grant-selected-list" }, dr = ["disabled", "onClick"], fr = 20, pr = /*#__PURE__*/ L(/* @__PURE__ */ q({
2535
2690
  name: "RoleAccountGrantDrawer",
2536
2691
  __name: "RoleAccountGrantDrawer",
2537
2692
  props: {
@@ -2544,25 +2699,25 @@ var Xn = {
2544
2699
  },
2545
2700
  emits: ["close", "saved"],
2546
2701
  setup(e, { emit: t }) {
2547
- let n = j(), r = e, i = t, a = Y([]), o = Y({}), s = Y([]), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(""), d = Y(""), f = Y(1), p = Y(0), m = Y(!1), h = Y(!1), g = Y(!1), _ = Y(!1), v = Y(), y = B(() => Yn(r.context.http)), b = w({ moduleAlias: "iam.tenant" }), S = B(() => r.role?.id), C = B(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: De(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), ee = B(() => r.embedded ? "section" : x), D = B(() => r.embedded ? {} : {
2702
+ let n = I(), r = e, i = t, a = Y([]), o = Y({}), s = Y([]), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(""), d = Y(""), f = Y(1), m = Y(0), h = Y(!1), _ = Y(!1), v = Y(!1), y = Y(!1), b = Y(), ee = z(() => rr(r.context.http)), S = p({ moduleAlias: "iam.tenant" }), C = z(() => r.role?.id), te = z(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: Oe(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), re = z(() => r.embedded ? "section" : ce), ie = z(() => r.embedded ? {} : {
2548
2703
  open: r.open,
2549
- title: C.value,
2704
+ title: te.value,
2550
2705
  renderMode: r.container ? "inline" : "portal",
2551
2706
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
2552
- onClose: _e
2553
- }), O = B(() => r.role?.ownerScopeType === "platform"), k = B(() => v.value?.id), A = B(() => !O.value || !!k.value), ne = B(() => b), re = B(() => {
2707
+ onClose: ve
2708
+ }), w = z(() => r.role?.ownerScopeType === "platform"), T = z(() => b.value?.id), E = z(() => !w.value || !!T.value), D = z(() => S), ae = z(() => {
2554
2709
  let e = /* @__PURE__ */ new Map();
2555
2710
  for (let t of a.value) t.userId && e.set(t.userId, t);
2556
2711
  return e;
2557
- }), ie = B(() => s.value.filter((e) => e.id).map((e) => ({
2712
+ }), O = z(() => s.value.filter((e) => e.id).map((e) => ({
2558
2713
  id: e.id,
2559
- username: Te(e),
2714
+ username: L(e),
2560
2715
  employeeNo: e.employeeNo ?? "",
2561
2716
  employeeTitle: e.employeeTitle ?? "",
2562
2717
  organizationTitle: e.organizationTitle ?? e.organizationId ?? "",
2563
2718
  departmentTitle: e.departmentTitle ?? e.departmentId ?? "",
2564
2719
  boundTitle: l.value.has(e.id) ? n.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : n.t("platform.screen.MetadataGovernanceSurface.unbound", "未绑定")
2565
- }))), M = B(() => [...c.value].map((e) => o.value[e] ?? we(e))), P = B(() => [...c.value].filter((e) => !l.value.has(e))), F = B(() => [...l.value].filter((e) => !c.value.has(e))), ae = B(() => P.value.length > 0 || F.value.length > 0), I = {
2720
+ }))), se = z(() => [...c.value].map((e) => o.value[e] ?? Te(e))), k = z(() => [...c.value].filter((e) => !l.value.has(e))), le = z(() => [...l.value].filter((e) => !c.value.has(e))), A = z(() => k.value.length > 0 || le.value.length > 0), M = {
2566
2721
  rowKey: "id",
2567
2722
  columns: [
2568
2723
  {
@@ -2596,143 +2751,143 @@ var Xn = {
2596
2751
  width: 90
2597
2752
  }
2598
2753
  ]
2599
- }, L = B(() => ({
2754
+ }, ue = z(() => ({
2600
2755
  selectedRowKeys: [...c.value],
2601
2756
  preserveSelectedRowKeys: !0,
2602
- disabledOf: () => g.value,
2757
+ disabledOf: () => v.value,
2603
2758
  onChange: (e) => {
2604
2759
  c.value = new Set(e.map((e) => String(e)));
2605
2760
  }
2606
- })), le = B(() => ({
2761
+ })), de = z(() => ({
2607
2762
  current: f.value,
2608
- total: p.value,
2609
- pageSize: ir,
2763
+ total: m.value,
2764
+ pageSize: fr,
2610
2765
  showSizeChanger: !1,
2611
2766
  showQuickJumper: !1,
2612
- onChange: (e) => void pe(e)
2767
+ onChange: (e) => void me(e)
2613
2768
  }));
2614
2769
  Q(() => [r.open, r.role?.id], ([e]) => {
2615
- e ? fe() : ye();
2770
+ e ? P() : be();
2616
2771
  }, { immediate: !0 }), Q([
2617
2772
  () => r.embedded,
2618
2773
  () => r.drawerContext,
2619
2774
  c,
2620
- ae,
2621
2775
  A,
2622
- P,
2623
- F,
2624
- g,
2625
- m
2626
- ], ue, { immediate: !0 }), Ge(() => r.drawerContext?.setOperation(void 0));
2627
- function ue() {
2776
+ E,
2777
+ k,
2778
+ le,
2779
+ v,
2780
+ h
2781
+ ], fe, { immediate: !0 }), Ke(() => r.drawerContext?.setOperation(void 0));
2782
+ function fe() {
2628
2783
  let e = r.drawerContext;
2629
2784
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
2630
- value1: De(r.role ?? {}),
2631
- value2: Oe(r.role)
2785
+ value1: Oe(r.role ?? {}),
2786
+ value2: ke(r.role)
2632
2787
  })), e.setOperation({
2633
- summary: de(),
2788
+ summary: pe(),
2634
2789
  actions: [{
2635
2790
  key: "cancel-account-role-grants",
2636
2791
  label: n.t("platform.action.cancel", "取消"),
2637
- disabled: g.value || m.value,
2638
- run: _e
2792
+ disabled: v.value || h.value,
2793
+ run: ve
2639
2794
  }, {
2640
2795
  key: "save-account-role-grants",
2641
2796
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
2642
2797
  emphasis: "primary",
2643
- disabled: m.value || !A.value || !ae.value,
2644
- loading: g.value,
2645
- run: () => void ge()
2798
+ disabled: h.value || !E.value || !A.value,
2799
+ loading: v.value,
2800
+ run: () => void _e()
2646
2801
  }]
2647
2802
  }));
2648
2803
  }
2649
- function de() {
2650
- return A.value ? ae.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
2804
+ function pe() {
2805
+ return E.value ? A.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
2651
2806
  value1: c.value.size,
2652
- value2: P.value.length,
2653
- value3: F.value.length
2807
+ value2: k.value.length,
2808
+ value3: le.value.length
2654
2809
  }) : n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected", "已选 {value1} 个用户", { value1: c.value.size }) : n.t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant", "请选择目标租户");
2655
2810
  }
2656
- async function fe() {
2657
- let e = S.value;
2811
+ async function P() {
2812
+ let e = C.value;
2658
2813
  if (!e) {
2659
- ye();
2814
+ be();
2660
2815
  return;
2661
2816
  }
2662
- if (!A.value) {
2663
- be();
2817
+ if (!E.value) {
2818
+ xe();
2664
2819
  return;
2665
2820
  }
2666
- m.value = !0, _.value = !1;
2821
+ h.value = !0, y.value = !1;
2667
2822
  try {
2668
- let t = await y.value.accountRoleGrants(e, k.value);
2823
+ let t = await ee.value.accountRoleGrants(e, T.value);
2669
2824
  a.value = t;
2670
2825
  let n = new Set(t.map((e) => e.userId).filter((e) => !!e));
2671
- l.value = n, c.value = new Set(n), o.value = Ce([...t.map((e) => we(e.userId)).filter((e) => !!e)]), await pe(1);
2826
+ l.value = n, c.value = new Set(n), o.value = we([...t.map((e) => Te(e.userId)).filter((e) => !!e)]), await me(1);
2672
2827
  } catch (e) {
2673
- _.value = !0, N(e, {
2828
+ y.value = !0, j(e, {
2674
2829
  language: n,
2675
2830
  source: "role-account-grants",
2676
2831
  phase: "load"
2677
2832
  });
2678
2833
  } finally {
2679
- m.value = !1;
2834
+ h.value = !1;
2680
2835
  }
2681
2836
  }
2682
- async function pe(e) {
2683
- let t = S.value;
2684
- if (t && A.value) {
2685
- h.value = !0;
2837
+ async function me(e) {
2838
+ let t = C.value;
2839
+ if (t && E.value) {
2840
+ _.value = !0;
2686
2841
  try {
2687
- let n = await y.value.accountRoleCandidates(t, {
2688
- targetTenantId: k.value,
2842
+ let n = await ee.value.accountRoleCandidates(t, {
2843
+ targetTenantId: T.value,
2689
2844
  keyword: d.value,
2690
2845
  enabledOnly: !0,
2691
2846
  page: {
2692
2847
  pageNum: Math.max(0, e),
2693
- pageSize: ir
2848
+ pageSize: fr
2694
2849
  }
2695
2850
  });
2696
2851
  s.value = n.records, o.value = {
2697
2852
  ...o.value,
2698
- ...Ce(n.records)
2699
- }, f.value = n.pageNum, p.value = n.total;
2853
+ ...we(n.records)
2854
+ }, f.value = n.pageNum, m.value = n.total;
2700
2855
  } catch (e) {
2701
- N(e, {
2856
+ j(e, {
2702
2857
  language: n,
2703
2858
  source: "role-account-grants",
2704
2859
  phase: "load"
2705
2860
  });
2706
2861
  } finally {
2707
- h.value = !1;
2862
+ _.value = !1;
2708
2863
  }
2709
2864
  }
2710
2865
  }
2711
- function me() {
2712
- d.value = u.value.trim(), pe(0);
2866
+ function he() {
2867
+ d.value = u.value.trim(), me(0);
2713
2868
  }
2714
- function he(e, t) {
2869
+ function ge(e, t) {
2715
2870
  let n = new Set(c.value);
2716
2871
  t ? n.add(e) : n.delete(e), c.value = n;
2717
2872
  }
2718
- async function ge() {
2719
- let e = S.value;
2720
- if (e && A.value) {
2721
- if (!ae.value) {
2873
+ async function _e() {
2874
+ let e = C.value;
2875
+ if (e && E.value) {
2876
+ if (!A.value) {
2722
2877
  i("close");
2723
2878
  return;
2724
2879
  }
2725
- g.value = !0;
2880
+ v.value = !0;
2726
2881
  try {
2727
- for (let t of P.value) await y.value.grantAccountRole(e, {
2882
+ for (let t of k.value) await ee.value.grantAccountRole(e, {
2728
2883
  userId: t,
2729
- targetTenantId: k.value
2884
+ targetTenantId: T.value
2730
2885
  });
2731
- for (let t of F.value) {
2732
- let n = re.value.get(t)?.id;
2733
- n && await y.value.deleteAccountRoleGrant(e, n, k.value);
2886
+ for (let t of le.value) {
2887
+ let n = ae.value.get(t)?.id;
2888
+ n && await ee.value.deleteAccountRoleGrant(e, n, T.value);
2734
2889
  }
2735
- await oe({
2890
+ await De({
2736
2891
  success: !0,
2737
2892
  message: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2738
2893
  }, {
@@ -2742,120 +2897,120 @@ var Xn = {
2742
2897
  fallbackMessage: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2743
2898
  }), i("saved"), i("close");
2744
2899
  } catch (e) {
2745
- N(e, {
2900
+ j(e, {
2746
2901
  language: n,
2747
2902
  source: "role-account-grants",
2748
2903
  phase: "action"
2749
2904
  });
2750
2905
  } finally {
2751
- g.value = !1;
2906
+ v.value = !1;
2752
2907
  }
2753
2908
  }
2754
2909
  }
2755
- function _e() {
2756
- g.value || i("close");
2757
- }
2758
- function ye() {
2759
- v.value = void 0, be();
2910
+ function ve() {
2911
+ v.value || i("close");
2760
2912
  }
2761
2913
  function be() {
2762
- a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = "", d.value = "", f.value = 1, p.value = 0, m.value = !1, h.value = !1, g.value = !1, _.value = !1;
2914
+ b.value = void 0, xe();
2915
+ }
2916
+ function xe() {
2917
+ a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = "", d.value = "", f.value = 1, m.value = 0, h.value = !1, _.value = !1, v.value = !1, y.value = !1;
2763
2918
  }
2764
- async function xe(e) {
2919
+ async function Se(e) {
2765
2920
  if (!e) {
2766
- v.value = void 0, be();
2921
+ b.value = void 0, xe();
2767
2922
  return;
2768
2923
  }
2769
- let t = await b.crud.view(e);
2770
- v.value = t ?? {
2924
+ let t = await S.crud.view(e);
2925
+ b.value = t ?? {
2771
2926
  id: e,
2772
2927
  title: e
2773
- }, await fe();
2774
- }
2775
- function Se(e) {
2776
- he(e, !1);
2928
+ }, await P();
2777
2929
  }
2778
2930
  function Ce(e) {
2931
+ ge(e, !1);
2932
+ }
2933
+ function we(e) {
2779
2934
  let t = {};
2780
2935
  for (let n of e) n.id && (t[n.id] = n);
2781
2936
  return t;
2782
2937
  }
2783
- function we(e) {
2938
+ function Te(e) {
2784
2939
  return e ? {
2785
2940
  id: e,
2786
2941
  username: e
2787
2942
  } : void 0;
2788
2943
  }
2789
- function Te(e) {
2944
+ function L(e) {
2790
2945
  return String(e?.username ?? e?.id ?? n.t("platform.screen.RoleAccountGrantDrawer.unknown-user", "未知用户"));
2791
2946
  }
2792
2947
  function Ee(e) {
2793
2948
  return e.employeeTitle && e.employeeNo ? `${e.employeeTitle} / ${e.employeeNo}` : e.employeeTitle ?? e.employeeNo ?? e.employeeId ?? e.id;
2794
2949
  }
2795
- function De(e) {
2796
- return String(te(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2797
- }
2798
2950
  function Oe(e) {
2951
+ return String(oe(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2952
+ }
2953
+ function ke(e) {
2799
2954
  return e?.ownerScopeType === "platform" ? n.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? n.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : n.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
2800
2955
  }
2801
- return (t, r) => (J(), V(Ze(ee.value), Be(D.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Ie({
2802
- default: $(() => [m.value ? (J(), V(Z(E), {
2956
+ return (t, r) => (J(), B(Qe(re.value), Ve(ie.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Re({
2957
+ default: $(() => [h.value ? (J(), B(Z(ne), {
2803
2958
  key: 0,
2804
2959
  class: "role-account-grant-drawer-state",
2805
2960
  tip: Z(n).t("platform.screen.RoleAccountGrantDrawer.loading-users", "加载用户")
2806
- }, null, 8, ["tip"])) : _.value ? (J(), U("div", Xn, [K(Z(T), {
2961
+ }, null, 8, ["tip"])) : y.value ? (J(), H("div", ir, [G(Z(x), {
2807
2962
  title: Z(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-users", "用户加载失败"),
2808
2963
  message: Z(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-user-assignments-for-this-role", "无法加载当前角色的用户绑定")
2809
- }, null, 8, ["title", "message"]), K(Z(R), {
2964
+ }, null, 8, ["title", "message"]), G(Z(N), {
2810
2965
  type: "primary",
2811
2966
  "icon-name": "reload",
2812
- onClick: fe
2967
+ onClick: P
2813
2968
  }, {
2814
- default: $(() => [G(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
2969
+ default: $(() => [W(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
2815
2970
  _: 1
2816
- })])) : (J(), U("section", {
2971
+ })])) : (J(), H("section", {
2817
2972
  key: 2,
2818
- class: He(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": O.value }])
2819
- }, [O.value ? (J(), U("label", Zn, [W("span", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), K(Z(se), {
2820
- context: ne.value,
2821
- value: k.value,
2973
+ class: Ue(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": w.value }])
2974
+ }, [w.value ? (J(), H("label", ar, [U("span", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), G(Z(ye), {
2975
+ context: D.value,
2976
+ value: T.value,
2822
2977
  mode: "list",
2823
2978
  placeholder: Z(n).t("platform.screen.RoleAccountGrantDrawer.select-the-target-tenant-for-this-role-assignment", "请选择角色下发的目标租户"),
2824
- disabled: g.value || m.value,
2825
- "onUpdate:value": xe
2979
+ disabled: v.value || h.value,
2980
+ "onUpdate:value": Se
2826
2981
  }, null, 8, [
2827
2982
  "context",
2828
2983
  "value",
2829
2984
  "placeholder",
2830
2985
  "disabled"
2831
- ])])) : H("v-if", !0), A.value ? (J(), U(z, { key: 2 }, [
2832
- W("div", $n, [K(Z(ve), {
2986
+ ])])) : V("v-if", !0), E.value ? (J(), H(R, { key: 2 }, [
2987
+ U("div", sr, [G(Z(F), {
2833
2988
  value: u.value,
2834
2989
  "allow-clear": "",
2835
- disabled: g.value,
2990
+ disabled: v.value,
2836
2991
  placeholder: Z(n).t("platform.screen.RoleAccountGrantDrawer.search-user-accounts", "搜索用户账号"),
2837
2992
  "onUpdate:value": r[0] ||= (e) => u.value = e,
2838
- onKeydown: nt(me, ["enter"])
2993
+ onKeydown: rt(he, ["enter"])
2839
2994
  }, null, 8, [
2840
2995
  "value",
2841
2996
  "disabled",
2842
2997
  "placeholder"
2843
- ]), K(Z(R), {
2998
+ ]), G(Z(N), {
2844
2999
  "icon-name": "search",
2845
- disabled: g.value,
2846
- onClick: me
3000
+ disabled: v.value,
3001
+ onClick: he
2847
3002
  }, {
2848
- default: $(() => [G(X(Z(n).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
3003
+ default: $(() => [W(X(Z(n).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
2849
3004
  _: 1
2850
3005
  }, 8, ["disabled"])]),
2851
- K(Z(ce), {
3006
+ G(Z(g), {
2852
3007
  class: "role-account-grant-table",
2853
3008
  size: "middle",
2854
- contract: I,
2855
- rows: ie.value,
2856
- loading: h.value,
2857
- pagination: le.value,
2858
- selection: L.value,
3009
+ contract: M,
3010
+ rows: O.value,
3011
+ loading: _.value,
3012
+ pagination: de.value,
3013
+ selection: ue.value,
2859
3014
  "fill-height": ""
2860
3015
  }, null, 8, [
2861
3016
  "rows",
@@ -2863,41 +3018,41 @@ var Xn = {
2863
3018
  "pagination",
2864
3019
  "selection"
2865
3020
  ]),
2866
- M.value.length > 0 ? (J(), U("section", er, [W("div", tr, [W("strong", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), W("span", null, X(M.value.length), 1)]), W("div", nr, [(J(!0), U(z, null, Ye(M.value, (e) => (J(), U("button", {
3021
+ se.value.length > 0 ? (J(), H("section", cr, [U("div", lr, [U("strong", null, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), U("span", null, X(se.value.length), 1)]), U("div", ur, [(J(!0), H(R, null, Xe(se.value, (e) => (J(), H("button", {
2867
3022
  key: e.id,
2868
3023
  type: "button",
2869
- disabled: g.value,
2870
- onClick: (t) => Se(e.id)
2871
- }, [W("span", null, X(Te(e)), 1), W("small", null, X(Ee(e)), 1)], 8, rr))), 128))])])) : H("v-if", !0)
2872
- ], 64)) : (J(), U("div", Qn, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant-for-a-platform-shared-role-before", "平台共享角色需要先选择目标租户,再加载可绑定账号。")), 1))], 2))]),
3024
+ disabled: v.value,
3025
+ onClick: (t) => Ce(e.id)
3026
+ }, [U("span", null, X(L(e)), 1), U("small", null, X(Ee(e)), 1)], 8, dr))), 128))])])) : V("v-if", !0)
3027
+ ], 64)) : (J(), H("div", or, X(Z(n).t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant-for-a-platform-shared-role-before", "平台共享角色需要先选择目标租户,再加载可绑定账号。")), 1))], 2))]),
2873
3028
  _: 2
2874
3029
  }, [e.embedded ? void 0 : {
2875
3030
  name: "operation",
2876
- fn: $(() => [K(Z(R), {
2877
- disabled: g.value || m.value,
2878
- onClick: _e
3031
+ fn: $(() => [G(Z(N), {
3032
+ disabled: v.value || h.value,
3033
+ onClick: ve
2879
3034
  }, {
2880
- default: $(() => [G(X(Z(n).t("platform.action.cancel", "取消")), 1)]),
3035
+ default: $(() => [W(X(Z(n).t("platform.action.cancel", "取消")), 1)]),
2881
3036
  _: 1
2882
- }, 8, ["disabled"]), K(Z(R), {
3037
+ }, 8, ["disabled"]), G(Z(N), {
2883
3038
  type: "primary",
2884
- loading: g.value,
2885
- disabled: m.value || !ae.value,
2886
- onClick: ge
3039
+ loading: v.value,
3040
+ disabled: h.value || !A.value,
3041
+ onClick: _e
2887
3042
  }, {
2888
- default: $(() => [G(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
3043
+ default: $(() => [W(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
2889
3044
  _: 1
2890
3045
  }, 8, ["loading", "disabled"])]),
2891
3046
  key: "0"
2892
3047
  }]), 1040, ["class"]));
2893
3048
  }
2894
- }), [["__scopeId", "data-v-e7dae9bb"]]), or = /* @__PURE__ */ q({
3049
+ }), [["__scopeId", "data-v-e7dae9bb"]]), mr = /* @__PURE__ */ q({
2895
3050
  name: "RoleAccountGrantDrawerSurface",
2896
3051
  __name: "RoleAccountGrantDrawerSurface",
2897
3052
  props: { context: {} },
2898
3053
  setup(e) {
2899
- let t = e, n = B(() => t.context.module), r = B(() => t.context.record);
2900
- return (e, i) => (J(), V(ar, {
3054
+ let t = e, n = z(() => t.context.module), r = z(() => t.context.record);
3055
+ return (e, i) => (J(), B(pr, {
2901
3056
  open: "",
2902
3057
  embedded: "",
2903
3058
  "drawer-context": t.context,
@@ -2913,7 +3068,7 @@ var Xn = {
2913
3068
  "onSaved"
2914
3069
  ]));
2915
3070
  }
2916
- }), sr = /*#__PURE__*/ I(/* @__PURE__ */ q({
3071
+ }), hr = /*#__PURE__*/ L(/* @__PURE__ */ q({
2917
3072
  name: "EmployeeEmploymentTable",
2918
3073
  __name: "EmployeeEmploymentTable",
2919
3074
  props: {
@@ -2938,7 +3093,7 @@ var Xn = {
2938
3093
  },
2939
3094
  emits: ["update:selectedIds"],
2940
3095
  setup(e, { emit: t }) {
2941
- let n = j(), r = e, i = t, a = Y([]), o = B(() => [
3096
+ let n = I(), r = e, i = t, a = Y([]), o = z(() => [
2942
3097
  {
2943
3098
  key: "title",
2944
3099
  title: n.t("platform.screen.EmployeePicker.employee", "职员"),
@@ -2966,7 +3121,7 @@ var Xn = {
2966
3121
  width: 88,
2967
3122
  align: "right"
2968
3123
  }
2969
- ]), s = B(() => [
3124
+ ]), s = z(() => [
2970
3125
  {
2971
3126
  key: "position",
2972
3127
  title: n.t("platform.screen.CurrentUserProfileDialog.position", "岗位"),
@@ -2987,7 +3142,7 @@ var Xn = {
2987
3142
  title: n.t("platform.screen.EmployeeEmploymentTable.primary-position", "主岗位"),
2988
3143
  width: 88
2989
3144
  }
2990
- ]), c = B(() => {
3145
+ ]), c = z(() => {
2991
3146
  let e = /* @__PURE__ */ new Map();
2992
3147
  for (let t of r.rows) {
2993
3148
  let n = t.employeeId ?? t.id, r = e.get(n) ?? {
@@ -3000,7 +3155,7 @@ var Xn = {
3000
3155
  r.positions.push(t), e.set(n, r);
3001
3156
  }
3002
3157
  return [...e.values()];
3003
- }), l = B(() => c.value);
3158
+ }), l = z(() => c.value);
3004
3159
  function u(e, t) {
3005
3160
  let r = t;
3006
3161
  return e.key === "title" ? r.title : e.key === "employeeNo" ? r.employeeNo ?? r.employeeId : e.key === "organizationTitle" ? r.organizationTitle ?? "-" : e.key === "employmentCount" ? n.t("platform.screen.EmployeeEmploymentTable.value-items", "{value1} 项", { value1: r.positions.length }) : e.key === "selectedCount" ? n.t("platform.screen.EmployeeEmploymentTable.value-items", "{value1} 项", { value1: f(r) }) : "";
@@ -3034,7 +3189,7 @@ var Xn = {
3034
3189
  let t = e.employeeId;
3035
3190
  h(e, !a.value.includes(t));
3036
3191
  }
3037
- return (t, r) => (J(), V(Z(D), {
3192
+ return (t, r) => (J(), B(Z(y), {
3038
3193
  class: "employee-employment-table",
3039
3194
  columns: o.value,
3040
3195
  rows: l.value,
@@ -3047,9 +3202,9 @@ var Xn = {
3047
3202
  onRowExpand: h,
3048
3203
  onRowDblclick: g
3049
3204
  }, {
3050
- cell: $(({ column: e, record: t }) => [G(X(u(e, t)), 1)]),
3051
- expandedRow: $(({ record: e }) => [K(Z(k), { title: Z(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息") }, {
3052
- default: $(() => [K(Z(D), {
3205
+ cell: $(({ column: e, record: t }) => [W(X(u(e, t)), 1)]),
3206
+ expandedRow: $(({ record: e }) => [G(Z(D), { title: Z(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息") }, {
3207
+ default: $(() => [G(Z(y), {
3053
3208
  columns: s.value,
3054
3209
  rows: e.positions,
3055
3210
  "row-key": "id",
@@ -3058,7 +3213,7 @@ var Xn = {
3058
3213
  "horizontal-scroll": "",
3059
3214
  "row-muted": (e) => e.enabled === !1
3060
3215
  }, {
3061
- cell: $(({ column: e, record: t }) => [G(X(d(e, t)), 1)]),
3216
+ cell: $(({ column: e, record: t }) => [W(X(d(e, t)), 1)]),
3062
3217
  _: 1
3063
3218
  }, 8, [
3064
3219
  "columns",
@@ -3077,13 +3232,13 @@ var Xn = {
3077
3232
  "fill-height"
3078
3233
  ]));
3079
3234
  }
3080
- }), [["__scopeId", "data-v-7020a020"]]), cr = { key: 1 }, lr = {
3235
+ }), [["__scopeId", "data-v-7020a020"]]), gr = { key: 1 }, _r = {
3081
3236
  key: 2,
3082
3237
  class: "role-employment-grant-body"
3083
- }, ur = {
3238
+ }, vr = {
3084
3239
  key: 0,
3085
3240
  class: "role-employment-grant-selected"
3086
- }, dr = { class: "role-employment-grant-selected-title" }, fr = { class: "role-employment-grant-selected-list" }, pr = ["disabled", "onClick"], mr = /*#__PURE__*/ I(/* @__PURE__ */ q({
3241
+ }, yr = { class: "role-employment-grant-selected-title" }, br = { class: "role-employment-grant-selected-list" }, xr = ["disabled", "onClick"], Sr = /*#__PURE__*/ L(/* @__PURE__ */ q({
3087
3242
  name: "RoleEmploymentGrantDrawer",
3088
3243
  __name: "RoleEmploymentGrantDrawer",
3089
3244
  props: {
@@ -3096,42 +3251,42 @@ var Xn = {
3096
3251
  },
3097
3252
  emits: ["close", "saved"],
3098
3253
  setup(e, { emit: t }) {
3099
- let n = j(), r = e, i = t, a = Y([]), o = Y([]), s = Y({}), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(!1), d = Y(!1), f = Y(!1), p = Y(!1), m = Y(1), h = Y(0), g = Y(""), _ = B(() => r.role?.id), v = B(() => Yn(r.context.http)), y = B(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), b = B(() => r.embedded ? "section" : x), S = B(() => r.embedded ? {} : {
3254
+ let n = I(), r = e, i = t, a = Y([]), o = Y([]), s = Y({}), c = Y(/* @__PURE__ */ new Set()), l = Y(/* @__PURE__ */ new Set()), u = Y(!1), d = Y(!1), f = Y(!1), p = Y(!1), m = Y(1), h = Y(0), g = Y(""), _ = z(() => r.role?.id), v = z(() => rr(r.context.http)), y = z(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), b = z(() => r.embedded ? "section" : ce), ee = z(() => r.embedded ? {} : {
3100
3255
  open: r.open,
3101
3256
  title: y.value,
3102
3257
  renderMode: r.container ? "inline" : "portal",
3103
3258
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
3104
3259
  onClose: () => !f.value && i("close")
3105
- }), C = B(() => [...c.value].filter((e) => !l.value.has(e))), w = B(() => [...l.value].filter((e) => !c.value.has(e))), ee = B(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), te = B(() => o.value.filter((e) => !g.value.trim() || ie(e).includes(g.value.trim()))), D = B(() => [...c.value].map((e) => s.value[e] ?? F(e))), O = B(() => ({
3260
+ }), S = z(() => [...c.value].filter((e) => !l.value.has(e))), C = z(() => [...l.value].filter((e) => !c.value.has(e))), te = z(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), re = z(() => o.value.filter((e) => !g.value.trim() || O(e).includes(g.value.trim()))), ie = z(() => [...c.value].map((e) => s.value[e] ?? k(e))), w = z(() => ({
3106
3261
  current: m.value,
3107
3262
  total: h.value,
3108
3263
  pageSize: 50,
3109
3264
  showSizeChanger: !1,
3110
3265
  showQuickJumper: !1,
3111
- onChange: (e) => void A(e)
3266
+ onChange: (e) => void E(e)
3112
3267
  }));
3113
3268
  Q(() => [r.open, r.role?.id], ([e]) => {
3114
- e ? A() : re();
3269
+ e ? E() : ae();
3115
3270
  }, { immediate: !0 }), Q([
3116
3271
  () => r.embedded,
3117
3272
  () => r.drawerContext,
3118
3273
  c,
3274
+ S,
3119
3275
  C,
3120
- w,
3121
3276
  f,
3122
3277
  d
3123
- ], k, { immediate: !0 }), Ge(() => r.drawerContext?.setOperation(void 0));
3124
- function k() {
3278
+ ], T, { immediate: !0 }), Ke(() => r.drawerContext?.setOperation(void 0));
3279
+ function T() {
3125
3280
  let e = r.drawerContext;
3126
3281
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
3127
3282
  value1: r.role?.title ?? r.role?.id ?? n.t("platform.screen.RoleManagementView.role", "角色"),
3128
- value2: se(r.role)
3283
+ value2: M(r.role)
3129
3284
  })), e.setOperation({
3130
3285
  summary: n.t("platform.screen.RoleEmploymentGrantDrawer.value-positions-selectedvalue", "已选 {value1} 个任职{value2}", {
3131
3286
  value1: c.value.size,
3132
- value2: C.value.length || w.value.length ? n.t("platform.screen.RoleEmploymentGrantDrawer.value-added-value-removed", " · 新增 {value1} · 移除 {value2}", {
3133
- value1: C.value.length,
3134
- value2: w.value.length
3287
+ value2: S.value.length || C.value.length ? n.t("platform.screen.RoleEmploymentGrantDrawer.value-added-value-removed", " · 新增 {value1} · 移除 {value2}", {
3288
+ value1: S.value.length,
3289
+ value2: C.value.length
3135
3290
  }) : ""
3136
3291
  }),
3137
3292
  actions: [{
@@ -3143,13 +3298,13 @@ var Xn = {
3143
3298
  key: "save-employment-role-grants",
3144
3299
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
3145
3300
  emphasis: "primary",
3146
- disabled: d.value || C.value.length === 0 && w.value.length === 0,
3301
+ disabled: d.value || S.value.length === 0 && C.value.length === 0,
3147
3302
  loading: f.value,
3148
- run: () => void ne()
3303
+ run: () => void D()
3149
3304
  }]
3150
3305
  }));
3151
3306
  }
3152
- async function A(e = 1) {
3307
+ async function E(e = 1) {
3153
3308
  let t = _.value;
3154
3309
  if (t) {
3155
3310
  d.value = !0, p.value = !1;
@@ -3163,10 +3318,10 @@ var Xn = {
3163
3318
  })]);
3164
3319
  a.value = n, l.value = new Set(n.map((e) => e.employeePositionId).filter((e) => !!e)), s.value = {
3165
3320
  ...s.value,
3166
- ...P(r.records)
3321
+ ...se(r.records)
3167
3322
  }, u.value ||= (c.value = new Set(l.value), !0), o.value = r.records, m.value = r.pageNum, h.value = r.total;
3168
3323
  } catch (e) {
3169
- p.value = !0, N(e, {
3324
+ p.value = !0, j(e, {
3170
3325
  language: n,
3171
3326
  source: "role-employment-grants",
3172
3327
  phase: "load"
@@ -3176,17 +3331,17 @@ var Xn = {
3176
3331
  }
3177
3332
  }
3178
3333
  }
3179
- async function ne() {
3334
+ async function D() {
3180
3335
  let e = _.value;
3181
3336
  if (e) {
3182
3337
  f.value = !0;
3183
3338
  try {
3184
- for (let t of C.value) await v.value.grantEmploymentRole(e, t);
3185
- for (let t of w.value) {
3186
- let n = ee.value.get(t)?.id;
3339
+ for (let t of S.value) await v.value.grantEmploymentRole(e, t);
3340
+ for (let t of C.value) {
3341
+ let n = te.value.get(t)?.id;
3187
3342
  n && await v.value.deleteEmploymentRoleGrant(e, n);
3188
3343
  }
3189
- await oe({
3344
+ await De({
3190
3345
  success: !0,
3191
3346
  message: n.t("platform.screen.RoleEmploymentGrantDrawer.position-role-assignments-saved", "任职角色授权已保存")
3192
3347
  }, {
@@ -3195,7 +3350,7 @@ var Xn = {
3195
3350
  phase: "action"
3196
3351
  }), i("saved"), i("close");
3197
3352
  } catch (e) {
3198
- N(e, {
3353
+ j(e, {
3199
3354
  language: n,
3200
3355
  source: "role-employment-grants",
3201
3356
  phase: "action"
@@ -3205,10 +3360,10 @@ var Xn = {
3205
3360
  }
3206
3361
  }
3207
3362
  }
3208
- function re() {
3363
+ function ae() {
3209
3364
  a.value = [], o.value = [], s.value = {}, c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), u.value = !1, g.value = "", m.value = 1, h.value = 0, p.value = !1;
3210
3365
  }
3211
- function ie(e) {
3366
+ function O(e) {
3212
3367
  return [
3213
3368
  e.employeeTitle,
3214
3369
  e.employeeNo,
@@ -3217,59 +3372,59 @@ var Xn = {
3217
3372
  e.positionTitle
3218
3373
  ].filter(Boolean).join(" ");
3219
3374
  }
3220
- function M(e) {
3375
+ function oe(e) {
3221
3376
  let t = new Set(c.value);
3222
3377
  t.delete(e), c.value = t;
3223
3378
  }
3224
- function P(e) {
3379
+ function se(e) {
3225
3380
  let t = {};
3226
3381
  for (let n of e) n.id && (t[n.id] = n);
3227
3382
  return t;
3228
3383
  }
3229
- function F(e) {
3384
+ function k(e) {
3230
3385
  return {
3231
3386
  id: e,
3232
3387
  positionId: e
3233
3388
  };
3234
3389
  }
3235
- function ae(e) {
3390
+ function le(e) {
3236
3391
  let t = e.positionTitle ?? e.positionId ?? e.id;
3237
3392
  return e.employeeTitle ? `${e.employeeTitle} · ${t}` : t;
3238
3393
  }
3239
- function I(e) {
3394
+ function A(e) {
3240
3395
  return [
3241
3396
  e.employeeNo,
3242
3397
  e.organizationTitle ?? e.organizationId,
3243
3398
  e.departmentTitle ?? e.departmentId
3244
3399
  ].filter(Boolean).join(" / ") || e.id;
3245
3400
  }
3246
- function se(e) {
3401
+ function M(e) {
3247
3402
  return e?.ownerScopeType === "platform" ? n.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? n.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : n.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
3248
3403
  }
3249
- return (t, r) => (J(), V(Ze(b.value), Be(S.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Ie({
3250
- default: $(() => [d.value ? (J(), V(Z(E), {
3404
+ return (t, r) => (J(), B(Qe(b.value), Ve(ee.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Re({
3405
+ default: $(() => [d.value ? (J(), B(Z(ne), {
3251
3406
  key: 0,
3252
3407
  tip: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.loading-positions", "加载任职")
3253
- }, null, 8, ["tip"])) : p.value ? (J(), U("div", cr, [K(Z(T), {
3408
+ }, null, 8, ["tip"])) : p.value ? (J(), H("div", gr, [G(Z(x), {
3254
3409
  title: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-positions", "任职加载失败"),
3255
3410
  message: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-position-assignments", "无法加载任职授权")
3256
- }, null, 8, ["title", "message"]), K(Z(R), { onClick: r[1] ||= (e) => A() }, {
3257
- default: $(() => [G(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
3411
+ }, null, 8, ["title", "message"]), G(Z(N), { onClick: r[1] ||= (e) => E() }, {
3412
+ default: $(() => [W(X(Z(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
3258
3413
  _: 1
3259
- })])) : (J(), U("section", lr, [
3260
- K(Z(ve), {
3414
+ })])) : (J(), H("section", _r, [
3415
+ G(Z(F), {
3261
3416
  value: g.value,
3262
3417
  "onUpdate:value": r[2] ||= (e) => g.value = e,
3263
3418
  "allow-clear": "",
3264
3419
  placeholder: Z(n).t("platform.screen.RoleEmploymentGrantDrawer.filter-by-employee-employee-number-organization-department-or-position", "筛选职员、工号、机构、部门或岗位")
3265
3420
  }, null, 8, ["value", "placeholder"]),
3266
- K(sr, {
3421
+ G(hr, {
3267
3422
  "selected-ids": c.value,
3268
3423
  "onUpdate:selectedIds": r[3] ||= (e) => c.value = e,
3269
- rows: te.value,
3424
+ rows: re.value,
3270
3425
  selectable: "",
3271
3426
  disabled: f.value,
3272
- pagination: O.value,
3427
+ pagination: w.value,
3273
3428
  "fill-height": ""
3274
3429
  }, null, 8, [
3275
3430
  "selected-ids",
@@ -3277,41 +3432,41 @@ var Xn = {
3277
3432
  "disabled",
3278
3433
  "pagination"
3279
3434
  ]),
3280
- D.value.length > 0 ? (J(), U("section", ur, [W("div", dr, [W("strong", null, X(Z(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), W("span", null, X(D.value.length), 1)]), W("div", fr, [(J(!0), U(z, null, Ye(D.value, (e) => (J(), U("button", {
3435
+ ie.value.length > 0 ? (J(), H("section", vr, [U("div", yr, [U("strong", null, X(Z(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), U("span", null, X(ie.value.length), 1)]), U("div", br, [(J(!0), H(R, null, Xe(ie.value, (e) => (J(), H("button", {
3281
3436
  key: e.id,
3282
3437
  type: "button",
3283
3438
  disabled: f.value,
3284
- onClick: (t) => M(e.id)
3285
- }, [W("span", null, X(ae(e)), 1), W("small", null, X(I(e)), 1)], 8, pr))), 128))])])) : H("v-if", !0)
3439
+ onClick: (t) => oe(e.id)
3440
+ }, [U("span", null, X(le(e)), 1), U("small", null, X(A(e)), 1)], 8, xr))), 128))])])) : V("v-if", !0)
3286
3441
  ]))]),
3287
3442
  _: 2
3288
3443
  }, [e.embedded ? void 0 : {
3289
3444
  name: "operation",
3290
- fn: $(() => [K(Z(R), {
3445
+ fn: $(() => [G(Z(N), {
3291
3446
  disabled: f.value,
3292
3447
  onClick: r[0] ||= (e) => i("close")
3293
3448
  }, {
3294
- default: $(() => [G(X(Z(n).t("platform.action.cancel", "取消")), 1)]),
3449
+ default: $(() => [W(X(Z(n).t("platform.action.cancel", "取消")), 1)]),
3295
3450
  _: 1
3296
- }, 8, ["disabled"]), K(Z(R), {
3451
+ }, 8, ["disabled"]), G(Z(N), {
3297
3452
  type: "primary",
3298
3453
  loading: f.value,
3299
- disabled: d.value || C.value.length === 0 && w.value.length === 0,
3300
- onClick: ne
3454
+ disabled: d.value || S.value.length === 0 && C.value.length === 0,
3455
+ onClick: D
3301
3456
  }, {
3302
- default: $(() => [G(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
3457
+ default: $(() => [W(X(Z(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
3303
3458
  _: 1
3304
3459
  }, 8, ["loading", "disabled"])]),
3305
3460
  key: "0"
3306
3461
  }]), 1040, ["class"]));
3307
3462
  }
3308
- }), [["__scopeId", "data-v-4736da9f"]]), hr = /* @__PURE__ */ q({
3463
+ }), [["__scopeId", "data-v-4736da9f"]]), Cr = /* @__PURE__ */ q({
3309
3464
  name: "RoleEmploymentGrantDrawerSurface",
3310
3465
  __name: "RoleEmploymentGrantDrawerSurface",
3311
3466
  props: { context: {} },
3312
3467
  setup(e) {
3313
- let t = e, n = B(() => t.context.module), r = B(() => t.context.record);
3314
- return (e, i) => (J(), V(mr, {
3468
+ let t = e, n = z(() => t.context.module), r = z(() => t.context.record);
3469
+ return (e, i) => (J(), B(Sr, {
3315
3470
  open: "",
3316
3471
  embedded: "",
3317
3472
  "drawer-context": t.context,
@@ -3327,7 +3482,7 @@ var Xn = {
3327
3482
  "onSaved"
3328
3483
  ]));
3329
3484
  }
3330
- }), gr = /* @__PURE__ */ q({
3485
+ }), wr = /* @__PURE__ */ q({
3331
3486
  name: "WorkspaceViewDrawer",
3332
3487
  __name: "WorkspaceViewDrawer",
3333
3488
  props: {
@@ -3345,8 +3500,8 @@ var Xn = {
3345
3500
  },
3346
3501
  emits: ["close"],
3347
3502
  setup(e, { emit: t }) {
3348
- let n = e, r = t, i = B(() => n.profile === "wide-work" ? "wide" : "standard");
3349
- return (t, n) => (J(), V(Z(x), {
3503
+ let n = e, r = t, i = z(() => n.profile === "wide-work" ? "wide" : "standard");
3504
+ return (t, n) => (J(), B(Z(ce), {
3350
3505
  open: e.open,
3351
3506
  title: e.title,
3352
3507
  "render-mode": e.container ? "inline" : "portal",
@@ -3356,12 +3511,12 @@ var Xn = {
3356
3511
  dismissal: e.dismissal,
3357
3512
  "before-close": e.beforeClose,
3358
3513
  onClose: n[0] ||= (e) => r("close")
3359
- }, Ie({
3360
- default: $(() => [Xe(t.$slots, "default")]),
3514
+ }, Re({
3515
+ default: $(() => [Ze(t.$slots, "default")]),
3361
3516
  _: 2
3362
3517
  }, [t.$slots.operation ? {
3363
3518
  name: "operation",
3364
- fn: $(() => [Xe(t.$slots, "operation")]),
3519
+ fn: $(() => [Ze(t.$slots, "operation")]),
3365
3520
  key: "0"
3366
3521
  } : void 0]), 1032, [
3367
3522
  "open",
@@ -3377,21 +3532,21 @@ var Xn = {
3377
3532
  });
3378
3533
  //#endregion
3379
3534
  //#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
3380
- function _r(e) {
3535
+ function Tr(e) {
3381
3536
  return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
3382
3537
  }
3383
- function vr(e) {
3384
- let t = s(), n = j();
3385
- return B(() => {
3386
- let r = et(e.input);
3387
- if (r && _r(et(e.eligibility)) && t) return {
3538
+ function Er(e) {
3539
+ let t = s(), n = I();
3540
+ return z(() => {
3541
+ let r = tt(e.input);
3542
+ if (r && Tr(tt(e.eligibility)) && t) return {
3388
3543
  title: n.t("platform.workspace-view.pin-as-tab", "固定为页签"),
3389
3544
  promote: async () => {
3390
3545
  if (await e.beforePromote?.(r) === !1) {
3391
3546
  e.onPromotionRejected?.();
3392
3547
  return;
3393
3548
  }
3394
- let i = t.openPage(c(e.view, r, "tab", et(e.title), n));
3549
+ let i = t.openPage(a(e.view, r, "tab", tt(e.title), n));
3395
3550
  e.onPromoted?.(i);
3396
3551
  }
3397
3552
  };
@@ -3399,53 +3554,53 @@ function vr(e) {
3399
3554
  }
3400
3555
  //#endregion
3401
3556
  //#region src/platform-admin-runtime/workspaceViewSessions.ts
3402
- var yr = /* @__PURE__ */ new Map(), br = /* @__PURE__ */ new Map();
3403
- function xr(e, t) {
3404
- return `${e.type}:${Tr(t)}`;
3557
+ var Dr = /* @__PURE__ */ new Map(), Or = /* @__PURE__ */ new Map();
3558
+ function kr(e, t) {
3559
+ return `${e.type}:${Nr(t)}`;
3405
3560
  }
3406
- async function Sr(e, t, n) {
3407
- let r = xr(e, t), i = br.get(r), a = i && [...i].at(-1);
3408
- return a ? await a(Er(n)) ? "accepted" : "rejected" : (yr.set(r, Er(n)), "accepted");
3561
+ async function Ar(e, t, n) {
3562
+ let r = kr(e, t), i = Or.get(r), a = i && [...i].at(-1);
3563
+ return a ? await a(Pr(n)) ? "accepted" : "rejected" : (Dr.set(r, Pr(n)), "accepted");
3409
3564
  }
3410
- function Cr(e, t, n) {
3411
- let r = xr(e, t), i = br.get(r) ?? /* @__PURE__ */ new Set();
3412
- return i.add(n), br.set(r, i), () => {
3413
- i.delete(n), i.size === 0 && br.delete(r);
3565
+ function jr(e, t, n) {
3566
+ let r = kr(e, t), i = Or.get(r) ?? /* @__PURE__ */ new Set();
3567
+ return i.add(n), Or.set(r, i), () => {
3568
+ i.delete(n), i.size === 0 && Or.delete(r);
3414
3569
  };
3415
3570
  }
3416
- function wr(e, t) {
3417
- let n = xr(e, t), r = yr.get(n);
3418
- return yr.delete(n), r;
3571
+ function Mr(e, t) {
3572
+ let n = kr(e, t), r = Dr.get(n);
3573
+ return Dr.delete(n), r;
3419
3574
  }
3420
- function Tr(e) {
3421
- return Array.isArray(e) ? `[${e.map(Tr).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${Tr(t)}`).join(",")}}` : JSON.stringify(e);
3575
+ function Nr(e) {
3576
+ return Array.isArray(e) ? `[${e.map(Nr).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${Nr(t)}`).join(",")}}` : JSON.stringify(e);
3422
3577
  }
3423
- function Er(e) {
3578
+ function Pr(e) {
3424
3579
  return JSON.parse(JSON.stringify(e));
3425
3580
  }
3426
3581
  //#endregion
3427
3582
  //#region src/views/roleAuthorizationWorkspaceSession.ts
3428
- function Dr(e, t) {
3429
- return Sr(st, e, t);
3583
+ function Fr(e, t) {
3584
+ return Ar(ct, e, t);
3430
3585
  }
3431
- function Or(e, t) {
3432
- return Cr(st, e, t);
3586
+ function Ir(e, t) {
3587
+ return jr(ct, e, t);
3433
3588
  }
3434
- function kr(e) {
3435
- return wr(st, e);
3589
+ function Lr(e) {
3590
+ return Mr(ct, e);
3436
3591
  }
3437
3592
  //#endregion
3438
3593
  //#region src/views/RoleAuthorizationView.vue?vue&type=script&setup=true&lang.ts
3439
- var Ar = { class: "panel-title" }, jr = {
3594
+ var Rr = { class: "panel-title" }, zr = {
3440
3595
  key: 0,
3441
3596
  class: "authorization-column-header"
3442
- }, Mr = {
3597
+ }, Br = {
3443
3598
  key: 2,
3444
3599
  class: "data-scope-editor"
3445
- }, Nr = { key: 0 }, Pr = { key: 1 }, Fr = { key: 3 }, Ir = {
3600
+ }, Vr = { key: 0 }, Hr = { key: 1 }, Ur = { key: 3 }, Wr = {
3446
3601
  key: 4,
3447
3602
  class: "not-applicable"
3448
- }, Lr = /*@__PURE__*/ q({
3603
+ }, Gr = /*@__PURE__*/ q({
3449
3604
  name: "RoleAuthorizationView",
3450
3605
  __name: "RoleAuthorizationView",
3451
3606
  props: {
@@ -3457,29 +3612,29 @@ var Ar = { class: "panel-title" }, jr = {
3457
3612
  },
3458
3613
  emits: ["close"],
3459
3614
  setup(e, { emit: t }) {
3460
- let n = j(), r = e, a = t, o = w({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = Yn(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = i(), d = r.roleId ? { roleId: r.roleId } : void 0, m = d ? kr(d) : void 0, h = Y(), _ = Y([]), v = Y(), b = Y(""), x = Y([]), S = Y(), C = Y(), ee = Y(!1), O = Y(!1), k = Y(!1), A = Qe(), ne = B(() => A.value ? ae(A.value, n) : void 0), ie = Y(), M = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), I = Y(0), se, L = B(() => h.value?.roleKind === "group"), ce = B(() => h.value?.roleKind === "dataGrant"), le = B(() => h.value?.assignmentType === "employment"), ue = B(() => !!r.drawerContext), de = B(() => (h.value && te(h.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), fe = B(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: de.value })), me = B(() => he.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: he.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: de.value })), he = B(() => _.value.find((e) => e.moduleAlias === v.value)), ge = B(() => {
3461
- let e = b.value.trim().toLocaleLowerCase(), t = new Set(e ? _.value.filter((t) => [
3615
+ let n = I(), r = e, a = t, o = p({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = rr(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = i(), d = r.roleId ? { roleId: r.roleId } : void 0, f = d ? Lr(d) : void 0, m = Y(), g = Y([]), _ = Y(), v = Y(""), b = Y([]), C = Y(), te = Y(), re = Y(!1), w = Y(!1), T = Y(!1), D = $e(), O = z(() => D.value ? Ee(D.value, n) : void 0), se = Y(), ce = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map(), M = Y(0), de, fe = z(() => m.value?.roleKind === "group"), pe = z(() => m.value?.roleKind === "dataGrant"), P = z(() => m.value?.assignmentType === "employment"), me = z(() => !!r.drawerContext), he = z(() => (m.value && oe(m.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), F = z(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: he.value })), ge = z(() => _e.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: _e.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: he.value })), _e = z(() => g.value.find((e) => e.moduleAlias === _.value)), ve = z(() => {
3616
+ let e = v.value.trim().toLocaleLowerCase(), t = new Set(e ? g.value.filter((t) => [
3462
3617
  t.title,
3463
3618
  t.moduleAlias,
3464
3619
  t.applicationAlias
3465
- ].filter((e) => !!e).some((t) => t.toLocaleLowerCase().includes(e))).map((e) => e.moduleAlias) : _.value.map((e) => e.moduleAlias)), n = new Map(_.value.map((e) => [e.moduleAlias, e]));
3620
+ ].filter((e) => !!e).some((t) => t.toLocaleLowerCase().includes(e))).map((e) => e.moduleAlias) : g.value.map((e) => e.moduleAlias)), n = new Map(g.value.map((e) => [e.moduleAlias, e]));
3466
3621
  for (let e of [...t]) {
3467
3622
  let r = n.get(e)?.parentId;
3468
3623
  for (; r && n.has(r) && !t.has(r);) t.add(r), r = n.get(r)?.parentId;
3469
3624
  }
3470
- return _.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
3625
+ return g.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
3471
3626
  id: e.moduleAlias,
3472
3627
  parentId: e.parentId,
3473
3628
  title: e.title,
3474
3629
  secondary: e.applicationAlias
3475
3630
  }));
3476
- }), _e = B(() => (C.value?.options ?? []).map((e) => ({
3631
+ }), ye = z(() => (te.value?.options ?? []).map((e) => ({
3477
3632
  value: e.code,
3478
3633
  label: e.title
3479
- }))), ve = B(() => (C.value?.referenceDependencies ?? []).map((e) => ({
3634
+ }))), Se = z(() => (te.value?.referenceDependencies ?? []).map((e) => ({
3480
3635
  value: e.referenceFieldId,
3481
3636
  label: `${e.title} → ${e.targetModuleTitle}`
3482
- }))), be = B(() => new Map((C.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), we = B(() => le.value && x.value.some((e) => !!e.dataAuth)), Ee = B(() => [
3637
+ }))), Ce = z(() => new Map((te.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), we = z(() => P.value && b.value.some((e) => !!e.dataAuth)), L = z(() => [
3483
3638
  {
3484
3639
  key: "title",
3485
3640
  title: n.t("platform.governance.tab.actions", "动作"),
@@ -3496,7 +3651,7 @@ var Ar = { class: "panel-title" }, jr = {
3496
3651
  title: n.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
3497
3652
  width: 200
3498
3653
  }] : []
3499
- ]), De = B(() => [
3654
+ ]), Oe = z(() => [
3500
3655
  {
3501
3656
  key: "title",
3502
3657
  title: n.t("platform.screen.RoleAuthorizationView.standard-action", "标准动作"),
@@ -3513,84 +3668,84 @@ var Ar = { class: "panel-title" }, jr = {
3513
3668
  title: n.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
3514
3669
  width: 160
3515
3670
  }
3516
- ]), Oe = B(() => x.value), ke = B(() => S.value?.actions ?? []), Ae = B(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), je = B(() => !!d), Me = B(() => je.value && !ue.value), Ne = B(() => ue.value ? "div" : Ae.value ? gr : je.value ? y : "div"), Pe = B(() => Ae.value ? {
3671
+ ]), ke = z(() => b.value), Ae = z(() => C.value?.actions ?? []), je = z(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), Me = z(() => !!d), Ne = z(() => Me.value && !me.value), Pe = z(() => me.value ? "div" : je.value ? wr : Me.value ? xe : "div"), Fe = z(() => je.value ? {
3517
3672
  open: !0,
3518
- title: fe.value,
3673
+ title: F.value,
3519
3674
  container: r.container ?? null,
3520
- profile: st.drawerProfile,
3521
- promotion: We.value,
3675
+ profile: ct.drawerProfile,
3676
+ promotion: He.value,
3522
3677
  dismissal: "guarded",
3523
3678
  beforeClose: ft,
3524
3679
  onClose: pt
3525
- } : Me.value ? { title: fe.value } : {}), Fe = B(() => {
3526
- let e = S.value;
3527
- return !e || ie.value === void 0 ? !1 : JSON.stringify(e.actions) !== ie.value;
3528
- }), Le = B(() => I.value >= 0 && [...M.entries()].some(([e, t]) => P.get(e) !== JSON.stringify(t))), q = B(() => Fe.value || Le.value);
3529
- p(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => q.value, () => k.value);
3530
- let ze = B(() => x.value.length > 0 && x.value.every((e) => e.granted)), Be = B(() => x.value.some((e) => e.granted) && !ze.value), Ve = B(() => {
3531
- let e = he.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = x.value.filter((e) => e.granted).length, r = q.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
3680
+ } : Ne.value ? { title: F.value } : {}), Ie = z(() => {
3681
+ let e = C.value;
3682
+ return !e || se.value === void 0 ? !1 : JSON.stringify(e.actions) !== se.value;
3683
+ }), Le = z(() => M.value >= 0 && [...ce.entries()].some(([e, t]) => A.get(e) !== JSON.stringify(t))), K = z(() => Ie.value || Le.value);
3684
+ ee(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => K.value, () => T.value);
3685
+ let q = z(() => b.value.length > 0 && b.value.every((e) => e.granted)), Be = z(() => b.value.some((e) => e.granted) && !q.value), Ve = z(() => {
3686
+ let e = _e.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = b.value.filter((e) => e.granted).length, r = K.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
3532
3687
  return n.t("platform.screen.RoleAuthorizationView.current-module-value-value-value-actions-granted-value", "当前模块:{value1} · 已授权 {value2}/{value3} 项 · {value4}", {
3533
3688
  value1: e,
3534
3689
  value2: t,
3535
- value3: x.value.length,
3690
+ value3: b.value.length,
3536
3691
  value4: r
3537
3692
  });
3538
- }), We = vr({
3539
- view: st,
3693
+ }), He = Er({
3694
+ view: ct,
3540
3695
  input: () => d,
3541
- title: fe,
3696
+ title: F,
3542
3697
  eligibility: () => ({
3543
- hasStableIdentity: !!(l && h.value),
3544
- busy: k.value
3698
+ hasStableIdentity: !!(l && m.value),
3699
+ busy: T.value
3545
3700
  }),
3546
- beforePromote: (e) => Dr(e, {
3547
- selectedModuleAlias: v.value,
3548
- dataGrantMatrix: S.value,
3549
- actionDrafts: [...M.entries()].map(([e, t]) => ({
3701
+ beforePromote: (e) => Fr(e, {
3702
+ selectedModuleAlias: _.value,
3703
+ dataGrantMatrix: C.value,
3704
+ actionDrafts: [...ce.entries()].map(([e, t]) => ({
3550
3705
  moduleAlias: e,
3551
3706
  actions: t
3552
3707
  })),
3553
- actionSnapshots: [...P.entries()].map(([e, t]) => ({
3708
+ actionSnapshots: [...A.entries()].map(([e, t]) => ({
3554
3709
  moduleAlias: e,
3555
3710
  snapshot: t
3556
3711
  }))
3557
3712
  }).then((e) => e === "accepted"),
3558
3713
  onPromoted: mt,
3559
- onPromotionRejected: () => Ce(n.t("platform.screen.RoleAuthorizationView.the-target-tab-has-unconfirmed-permission-changes-confirm-or-close", "目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。"), {
3714
+ onPromotionRejected: () => E(n.t("platform.screen.RoleAuthorizationView.the-target-tab-has-unconfirmed-permission-changes-confirm-or-close", "目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。"), {
3560
3715
  language: n,
3561
3716
  source: "role-authorization",
3562
3717
  phase: "validation"
3563
3718
  })
3564
3719
  });
3565
- Ke(() => {
3566
- d && !Ae.value && (se = Or(d, ht)), Je();
3567
- }), Q(fe, (e) => {
3568
- je.value && u?.setTitle(e);
3569
- }, { immediate: !0 }), Q(v, () => void Ye()), Q([
3570
- de,
3720
+ qe(() => {
3721
+ d && !je.value && (de = Ir(d, ht)), Je();
3722
+ }), Q(F, (e) => {
3723
+ Me.value && u?.setTitle(e);
3724
+ }, { immediate: !0 }), Q(_, () => void Ye()), Q([
3725
+ he,
3571
3726
  Ve,
3572
- q,
3573
- k,
3574
- L,
3575
- ce
3576
- ], qe, { immediate: !0 }), Ke(() => window.addEventListener("beforeunload", _t)), Ge(() => {
3577
- se?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
3727
+ K,
3728
+ T,
3729
+ fe,
3730
+ pe
3731
+ ], Ge, { immediate: !0 }), qe(() => window.addEventListener("beforeunload", _t)), Ke(() => {
3732
+ de?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
3578
3733
  });
3579
- function qe() {
3734
+ function Ge() {
3580
3735
  let e = r.drawerContext;
3581
3736
  if (e) {
3582
- if (e.setSubtitle(`${de.value} · ${vt(h.value)}`), L.value) {
3737
+ if (e.setSubtitle(`${he.value} · ${vt(m.value)}`), fe.value) {
3583
3738
  e.setOperation(void 0);
3584
3739
  return;
3585
3740
  }
3586
3741
  e.setOperation({
3587
- summary: ce.value ? q.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Ve.value,
3742
+ summary: pe.value ? K.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Ve.value,
3588
3743
  actions: [{
3589
3744
  key: "confirm-role-authorization",
3590
3745
  label: n.t("platform.screen.UiModal.confirmText", "确认"),
3591
3746
  emphasis: "primary",
3592
- disabled: k.value || !q.value,
3593
- loading: k.value,
3747
+ disabled: T.value || !K.value,
3748
+ loading: T.value,
3594
3749
  run: () => void dt()
3595
3750
  }]
3596
3751
  });
@@ -3598,65 +3753,65 @@ var Ar = { class: "panel-title" }, jr = {
3598
3753
  }
3599
3754
  async function Je() {
3600
3755
  if (!l) {
3601
- A.value = new Se(F(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
3756
+ D.value = new k(Te(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
3602
3757
  return;
3603
3758
  }
3604
- ee.value = !0, A.value = void 0;
3759
+ re.value = !0, D.value = void 0;
3605
3760
  try {
3606
- if (h.value = await s.crud.view(l), h.value.roleKind === "group") return;
3607
- if (h.value.roleKind === "dataGrant") {
3761
+ if (m.value = await s.crud.view(l), m.value.roleKind === "group") return;
3762
+ if (m.value.roleKind === "dataGrant") {
3608
3763
  let [e, t] = await Promise.all([c.dataGrantActionMatrix(l), c.dataScopePolicyCatalog(l)]);
3609
- S.value = m?.dataGrantMatrix ?? e, C.value = t, ie.value = JSON.stringify(e.actions);
3764
+ C.value = f?.dataGrantMatrix ?? e, te.value = t, se.value = JSON.stringify(e.actions);
3610
3765
  return;
3611
3766
  }
3612
- _.value = (await c.authorizationModules(l)).records, v.value = m?.selectedModuleAlias ?? _.value[0]?.moduleAlias;
3767
+ g.value = (await c.authorizationModules(l)).records, _.value = f?.selectedModuleAlias ?? g.value[0]?.moduleAlias;
3613
3768
  } catch (e) {
3614
- A.value = new Se(F(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), N(e, {
3769
+ D.value = new k(Te(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), j(e, {
3615
3770
  language: n,
3616
3771
  source: "role-authorization",
3617
3772
  phase: "load"
3618
3773
  });
3619
3774
  } finally {
3620
- ee.value = !1;
3775
+ re.value = !1;
3621
3776
  }
3622
3777
  }
3623
3778
  async function Ye() {
3624
- let e = v.value;
3625
- if (!(!e || ce.value || L.value)) {
3626
- O.value = !0;
3779
+ let e = _.value;
3780
+ if (!(!e || pe.value || fe.value)) {
3781
+ w.value = !0;
3627
3782
  try {
3628
- let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(ct), i = m?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = M.get(e) ?? i;
3629
- x.value = a ?? r, M.has(e) || (M.set(e, x.value), P.set(e, m?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), I.value += 1, C.value = n;
3783
+ let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(st), i = f?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = ce.get(e) ?? i;
3784
+ b.value = a ?? r, ce.has(e) || (ce.set(e, b.value), A.set(e, f?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), M.value += 1, te.value = n;
3630
3785
  } catch (e) {
3631
- N(e, {
3786
+ j(e, {
3632
3787
  language: n,
3633
3788
  source: "role-authorization",
3634
3789
  phase: "load"
3635
3790
  });
3636
3791
  } finally {
3637
- O.value = !1;
3792
+ w.value = !1;
3638
3793
  }
3639
3794
  }
3640
3795
  }
3641
3796
  function Xe(e, t) {
3642
- t && e.dataAuth && le.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, I.value += 1;
3797
+ t && e.dataAuth && P.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, M.value += 1;
3643
3798
  }
3644
- function $e(e) {
3645
- x.value.forEach((t) => Xe(t, e));
3799
+ function Ze(e) {
3800
+ b.value.forEach((t) => Xe(t, e));
3646
3801
  }
3647
3802
  function et(e, t) {
3648
3803
  if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
3649
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, I.value += 1;
3804
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, M.value += 1;
3650
3805
  return;
3651
3806
  }
3652
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, I.value += 1;
3807
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, M.value += 1;
3653
3808
  }
3654
3809
  function tt(e, t) {
3655
- let n = be.value.get(String(t || ""));
3656
- e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, I.value += 1;
3810
+ let n = Ce.value.get(String(t || ""));
3811
+ e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, M.value += 1;
3657
3812
  }
3658
3813
  function nt(e) {
3659
- return be.value.get(String(e || ""));
3814
+ return Ce.value.get(String(e || ""));
3660
3815
  }
3661
3816
  function rt(e) {
3662
3817
  return typeof e == "string" || typeof e == "number" ? e : void 0;
@@ -3665,82 +3820,82 @@ var Ar = { class: "panel-title" }, jr = {
3665
3820
  return e.dataScopePolicy ?? "inheritDataGrant";
3666
3821
  }
3667
3822
  function at(e) {
3668
- return !!e.dataAuth && le.value;
3823
+ return !!e.dataAuth && P.value;
3669
3824
  }
3670
3825
  function ot(e, t) {
3671
3826
  return e.key === "dataScopePolicy" && at(t);
3672
3827
  }
3673
- function ct(e) {
3674
- return le.value && e.dataAuth && e.dataScopePolicy === "none" ? {
3828
+ function st(e) {
3829
+ return P.value && e.dataAuth && e.dataScopePolicy === "none" ? {
3675
3830
  ...e,
3676
3831
  dataScopePolicy: "inheritDataGrant"
3677
3832
  } : e;
3678
3833
  }
3679
3834
  async function lt() {
3680
- if (S.value) {
3681
- k.value = !0;
3835
+ if (C.value) {
3836
+ T.value = !0;
3682
3837
  try {
3683
- let e = await c.replaceDataGrantActions(l, S.value.actions.map((e) => ({
3838
+ let e = await c.replaceDataGrantActions(l, C.value.actions.map((e) => ({
3684
3839
  actionCode: e.actionCode,
3685
3840
  dataScopePolicy: e.dataScopePolicy,
3686
3841
  enabled: e.configured
3687
3842
  })));
3688
- await oe(e, {
3843
+ await De(e, {
3689
3844
  language: n,
3690
3845
  source: "role-authorization",
3691
3846
  phase: "action",
3692
3847
  fallbackMessage: n.t("platform.screen.RoleAuthorizationView.data-permission-template-saved", "数据权限模板已保存")
3693
- }), ie.value = JSON.stringify(S.value.actions);
3848
+ }), se.value = JSON.stringify(C.value.actions);
3694
3849
  } catch (e) {
3695
- N(e, {
3850
+ j(e, {
3696
3851
  language: n,
3697
3852
  source: "role-authorization",
3698
3853
  phase: "action"
3699
3854
  });
3700
3855
  } finally {
3701
- k.value = !1;
3856
+ T.value = !1;
3702
3857
  }
3703
3858
  }
3704
3859
  }
3705
3860
  async function ut() {
3706
- let e = [...M.entries()].filter(([e, t]) => P.get(e) !== JSON.stringify(t));
3861
+ let e = [...ce.entries()].filter(([e, t]) => A.get(e) !== JSON.stringify(t));
3707
3862
  if (e.length) {
3708
- k.value = !0;
3863
+ T.value = !0;
3709
3864
  try {
3710
3865
  let t = await c.replacePermissionMatrix(l, e.flatMap(([e, t]) => t.map((t) => ({
3711
3866
  moduleAlias: e,
3712
3867
  actionCode: t.actionCode,
3713
3868
  granted: !!t.granted,
3714
- dataScopePolicy: t.granted && t.dataAuth && le.value ? t.dataScopePolicy ?? "inheritDataGrant" : void 0,
3869
+ dataScopePolicy: t.granted && t.dataAuth && P.value ? t.dataScopePolicy ?? "inheritDataGrant" : void 0,
3715
3870
  referenceFieldId: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceFieldId : void 0,
3716
3871
  referenceActionCode: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceActionCode : void 0
3717
3872
  }))));
3718
- await oe(t, {
3873
+ await De(t, {
3719
3874
  language: n,
3720
3875
  source: "role-authorization",
3721
3876
  phase: "action",
3722
3877
  fallbackMessage: n.t("platform.screen.RoleAuthorizationView.role-permissions-saved", "角色授权已保存")
3723
- }), e.forEach(([e, t]) => P.set(e, JSON.stringify(t))), I.value += 1;
3878
+ }), e.forEach(([e, t]) => A.set(e, JSON.stringify(t))), M.value += 1;
3724
3879
  } catch (e) {
3725
- N(e, {
3880
+ j(e, {
3726
3881
  language: n,
3727
3882
  source: "role-authorization",
3728
3883
  phase: "action"
3729
3884
  });
3730
3885
  } finally {
3731
- k.value = !1;
3886
+ T.value = !1;
3732
3887
  }
3733
3888
  }
3734
3889
  }
3735
3890
  async function dt() {
3736
- if (ce.value) {
3891
+ if (pe.value) {
3737
3892
  await lt();
3738
3893
  return;
3739
3894
  }
3740
3895
  await ut();
3741
3896
  }
3742
3897
  async function ft() {
3743
- return !q.value || f({
3898
+ return !K.value || ie({
3744
3899
  title: n.t("platform.screen.RoleAuthorizationView.discard-unconfirmed-permission-changes", "放弃未确认的授权配置"),
3745
3900
  content: n.t("platform.screen.RoleAuthorizationView.these-changes-have-not-been-confirmed-and-will-be-lost", "当前修改尚未确认,关闭后将丢失这些修改。"),
3746
3901
  okText: n.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
@@ -3754,7 +3909,7 @@ var Ar = { class: "panel-title" }, jr = {
3754
3909
  gt();
3755
3910
  }
3756
3911
  function ht(e) {
3757
- return !q.value && (v.value = e.selectedModuleAlias, S.value = e.dataGrantMatrix, M.clear(), P.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => M.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => P.set(e, t)), I.value += 1, !0);
3912
+ return !K.value && (_.value = e.selectedModuleAlias, C.value = e.dataGrantMatrix, ce.clear(), A.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => ce.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => A.set(e, t)), M.value += 1, !0);
3758
3913
  }
3759
3914
  function gt() {
3760
3915
  if (r.drawer === !0) {
@@ -3764,59 +3919,59 @@ var Ar = { class: "panel-title" }, jr = {
3764
3919
  u?.dismiss();
3765
3920
  }
3766
3921
  function _t(e) {
3767
- q.value && (e.preventDefault(), e.returnValue = "");
3922
+ K.value && (e.preventDefault(), e.returnValue = "");
3768
3923
  }
3769
3924
  function vt(e) {
3770
3925
  return e?.ownerScopeType === "platform" ? n.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? n.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : n.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
3771
3926
  }
3772
- return (e, t) => (J(), V(Ze(Ne.value), Ue(Re(Pe.value)), Ie({
3773
- default: $(() => [W("section", { class: He(["role-authorization-page", { "role-authorization-page--drawer": Ae.value || ue.value }]) }, [ee.value ? (J(), V(Z(E), {
3927
+ return (e, t) => (J(), B(Qe(Pe.value), We(ze(Fe.value)), Re({
3928
+ default: $(() => [U("section", { class: Ue(["role-authorization-page", { "role-authorization-page--drawer": je.value || me.value }]) }, [re.value ? (J(), B(Z(ne), {
3774
3929
  key: 0,
3775
3930
  tip: Z(n).t("platform.screen.RoleAuthorizationView.loading-permissions", "加载授权信息")
3776
- }, null, 8, ["tip"])) : ne.value ? (J(), V(Z(T), {
3931
+ }, null, 8, ["tip"])) : O.value ? (J(), B(Z(x), {
3777
3932
  key: 1,
3778
3933
  title: Z(n).t("platform.screen.RoleAuthorizationView.failed-to-load-the-permissions-page", "授权页加载失败"),
3779
- message: ne.value
3780
- }, null, 8, ["title", "message"])) : L.value ? (J(), V(Z(Te), {
3934
+ message: O.value
3935
+ }, null, 8, ["title", "message"])) : fe.value ? (J(), B(Z(ae), {
3781
3936
  key: 2,
3782
3937
  title: Z(n).t("platform.screen.RoleAuthorizationView.role-groups-do-not-have-separate-permissions", "角色组不独立授权"),
3783
3938
  description: Z(n).t("platform.screen.RoleAuthorizationView.role-groups-combine-their-member-roles-configure-action-and-data", "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。")
3784
- }, null, 8, ["title", "description"])) : ce.value && S.value ? (J(), V(Z(ye), {
3939
+ }, null, 8, ["title", "description"])) : pe.value && C.value ? (J(), B(Z(le), {
3785
3940
  key: 3,
3786
3941
  class: "data-grant-content",
3787
- title: Me.value ? Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: de.value }),
3942
+ title: Ne.value ? Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : Z(n).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: he.value }),
3788
3943
  searchable: !1,
3789
3944
  onRefresh: Je
3790
3945
  }, {
3791
- default: $(() => [W("header", Ar, [W("div", null, [W("h3", null, X(Z(n).t("platform.screen.RoleAuthorizationView.data-scope-templates-for-standard-actions", "标准动作的数据范围模板")), 1), W("p", null, X(Z(n).t("platform.screen.RoleAuthorizationView.a-template-takes-effect-only-when-a-standard-role-action", "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")), 1)]), je.value ? H("v-if", !0) : (J(), V(Z(R), {
3946
+ default: $(() => [U("header", Rr, [U("div", null, [U("h3", null, X(Z(n).t("platform.screen.RoleAuthorizationView.data-scope-templates-for-standard-actions", "标准动作的数据范围模板")), 1), U("p", null, X(Z(n).t("platform.screen.RoleAuthorizationView.a-template-takes-effect-only-when-a-standard-role-action", "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")), 1)]), Me.value ? V("v-if", !0) : (J(), B(Z(N), {
3792
3947
  key: 0,
3793
3948
  type: "primary",
3794
- disabled: !q.value,
3795
- loading: k.value,
3949
+ disabled: !K.value,
3950
+ loading: T.value,
3796
3951
  onClick: dt
3797
3952
  }, {
3798
- default: $(() => [G(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3953
+ default: $(() => [W(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3799
3954
  _: 1
3800
- }, 8, ["disabled", "loading"]))]), K(Z(D), {
3801
- columns: De.value,
3802
- rows: ke.value,
3955
+ }, 8, ["disabled", "loading"]))]), G(Z(y), {
3956
+ columns: Oe.value,
3957
+ rows: Ae.value,
3803
3958
  "row-key": "actionCode",
3804
3959
  "horizontal-scroll": ""
3805
3960
  }, {
3806
- cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), U(z, { key: 0 }, [W("strong", null, X(t.title || t.actionCode), 1), W("small", null, X(t.actionCode), 1)], 64)) : e.key === "configured" ? (J(), V(Z(re), {
3961
+ cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), H(R, { key: 0 }, [U("strong", null, X(t.title || t.actionCode), 1), U("small", null, X(t.actionCode), 1)], 64)) : e.key === "configured" ? (J(), B(Z(S), {
3807
3962
  key: 1,
3808
3963
  checked: !!t.configured,
3809
- disabled: k.value,
3964
+ disabled: T.value,
3810
3965
  onChange: (e) => t.configured = e
3811
3966
  }, null, 8, [
3812
3967
  "checked",
3813
3968
  "disabled",
3814
3969
  "onChange"
3815
- ])) : (J(), V(Z(pe), {
3970
+ ])) : (J(), B(Z(ue), {
3816
3971
  key: 2,
3817
3972
  value: t.dataScopePolicy,
3818
- options: _e.value,
3819
- disabled: !t.configured || k.value,
3973
+ options: ye.value,
3974
+ disabled: !t.configured || T.value,
3820
3975
  placeholder: Z(n).t("platform.screen.RoleAuthorizationView.select-a-data-scope", "请选择数据范围"),
3821
3976
  "allow-clear": !1,
3822
3977
  "onUpdate:value": (e) => t.dataScopePolicy = String(e || "")
@@ -3830,22 +3985,22 @@ var Ar = { class: "panel-title" }, jr = {
3830
3985
  _: 1
3831
3986
  }, 8, ["columns", "rows"])]),
3832
3987
  _: 1
3833
- }, 8, ["title"])) : (J(), U("section", {
3988
+ }, 8, ["title"])) : (J(), H("section", {
3834
3989
  key: 4,
3835
- class: He(["authorization-layout", { "authorization-layout--compact-actions": !we.value }])
3836
- }, [K(Z(ye), {
3837
- "search-keyword": b.value,
3838
- "onUpdate:searchKeyword": t[1] ||= (e) => b.value = e,
3990
+ class: Ue(["authorization-layout", { "authorization-layout--compact-actions": !we.value }])
3991
+ }, [G(Z(le), {
3992
+ "search-keyword": v.value,
3993
+ "onUpdate:searchKeyword": t[1] ||= (e) => v.value = e,
3839
3994
  class: "module-panel",
3840
3995
  title: Z(n).t("platform.screen.RoleAuthorizationView.module-tree", "模块树"),
3841
3996
  "refresh-title": Z(n).t("platform.screen.RoleAuthorizationView.refresh-module-directory", "刷新模块目录"),
3842
3997
  "search-placeholder": Z(n).t("platform.screen.RoleAuthorizationView.search-module-names-or-aliases", "搜索模块名称或别名"),
3843
3998
  onRefresh: Je
3844
3999
  }, {
3845
- default: $(() => [K(Z(g), {
3846
- records: ge.value,
3847
- "selected-id": v.value,
3848
- onSelect: t[0] ||= (e) => v.value = e.id
4000
+ default: $(() => [G(Z(h), {
4001
+ records: ve.value,
4002
+ "selected-id": _.value,
4003
+ onSelect: t[0] ||= (e) => _.value = e.id
3849
4004
  }, null, 8, ["records", "selected-id"])]),
3850
4005
  _: 1
3851
4006
  }, 8, [
@@ -3853,47 +4008,47 @@ var Ar = { class: "panel-title" }, jr = {
3853
4008
  "title",
3854
4009
  "refresh-title",
3855
4010
  "search-placeholder"
3856
- ]), K(Z(ye), {
4011
+ ]), G(Z(le), {
3857
4012
  class: "action-panel",
3858
- title: me.value,
4013
+ title: ge.value,
3859
4014
  searchable: !1
3860
- }, Ie({
3861
- default: $(() => [O.value ? (J(), V(Z(E), {
4015
+ }, Re({
4016
+ default: $(() => [w.value ? (J(), B(Z(ne), {
3862
4017
  key: 0,
3863
4018
  tip: Z(n).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作")
3864
- }, null, 8, ["tip"])) : v.value ? (J(), V(Z(D), {
4019
+ }, null, 8, ["tip"])) : _.value ? (J(), B(Z(y), {
3865
4020
  key: 2,
3866
- columns: Ee.value,
3867
- rows: Oe.value,
4021
+ columns: L.value,
4022
+ rows: ke.value,
3868
4023
  "row-key": "actionCode",
3869
4024
  "fill-height": "",
3870
4025
  "horizontal-scroll": ""
3871
4026
  }, {
3872
- header: $(({ column: e }) => [e.key === "granted" ? (J(), U("span", jr, [K(Z(xe), {
3873
- checked: ze.value,
4027
+ header: $(({ column: e }) => [e.key === "granted" ? (J(), H("span", zr, [G(Z(be), {
4028
+ checked: q.value,
3874
4029
  indeterminate: Be.value,
3875
- disabled: k.value || !x.value.length,
4030
+ disabled: T.value || !b.value.length,
3876
4031
  "aria-label": Z(n).t("platform.screen.RoleAuthorizationView.grant-all-actions-in-the-current-module", "全选当前模块动作授权"),
3877
- onChange: $e
4032
+ onChange: Ze
3878
4033
  }, null, 8, [
3879
4034
  "checked",
3880
4035
  "indeterminate",
3881
4036
  "disabled",
3882
4037
  "aria-label"
3883
- ]), G(" " + X(Z(n).t("platform.page-action.MANAGE_PERMISSIONS.title", "授权")), 1)])) : (J(), U(z, { key: 1 }, [G(X(e.title), 1)], 64))]),
3884
- cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), U(z, { key: 0 }, [W("strong", null, X(t.title || t.actionCode), 1), W("small", null, X(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (J(), V(Z(xe), {
4038
+ ]), W(" " + X(Z(n).t("platform.page-action.MANAGE_PERMISSIONS.title", "授权")), 1)])) : (J(), H(R, { key: 1 }, [W(X(e.title), 1)], 64))]),
4039
+ cell: $(({ column: e, record: t }) => [e.key === "title" ? (J(), H(R, { key: 0 }, [U("strong", null, X(t.title || t.actionCode), 1), U("small", null, X(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (J(), B(Z(be), {
3885
4040
  key: 1,
3886
4041
  checked: !!t.granted,
3887
- disabled: k.value,
4042
+ disabled: T.value,
3888
4043
  onChange: (e) => Xe(t, e)
3889
4044
  }, null, 8, [
3890
4045
  "checked",
3891
4046
  "disabled",
3892
4047
  "onChange"
3893
- ])) : t.dataAuth && le.value && t.granted ? (J(), U("div", Mr, [K(Z(pe), {
4048
+ ])) : t.dataAuth && P.value && t.granted ? (J(), H("div", Br, [G(Z(ue), {
3894
4049
  value: it(t),
3895
- options: _e.value,
3896
- disabled: k.value,
4050
+ options: ye.value,
4051
+ disabled: T.value,
3897
4052
  "allow-clear": !1,
3898
4053
  "onUpdate:value": (e) => et(t, e)
3899
4054
  }, null, 8, [
@@ -3901,10 +4056,10 @@ var Ar = { class: "panel-title" }, jr = {
3901
4056
  "options",
3902
4057
  "disabled",
3903
4058
  "onUpdate:value"
3904
- ]), t.dataScopePolicy === "referenceDependency" ? (J(), U(z, { key: 0 }, [K(Z(pe), {
4059
+ ]), t.dataScopePolicy === "referenceDependency" ? (J(), H(R, { key: 0 }, [G(Z(ue), {
3905
4060
  value: rt(t.referenceFieldId),
3906
- options: ve.value,
3907
- disabled: k.value,
4061
+ options: Se.value,
4062
+ disabled: T.value,
3908
4063
  placeholder: Z(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field", "请选择引用字段"),
3909
4064
  "allow-clear": !1,
3910
4065
  "onUpdate:value": (e) => tt(t, e)
@@ -3914,48 +4069,48 @@ var Ar = { class: "panel-title" }, jr = {
3914
4069
  "disabled",
3915
4070
  "placeholder",
3916
4071
  "onUpdate:value"
3917
- ]), t.referenceFieldId ? (J(), U("small", Nr, X(Z(n).t("platform.screen.RoleAuthorizationView.dependency-target", "依赖目标:")) + X(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + X(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (J(), U("small", Pr, X(Z(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field-before-granting-this-action", "请先选择引用字段,再开启该动作授权。")), 1))], 64)) : H("v-if", !0)])) : ot(e, t) ? (J(), U("span", Fr, "—")) : (J(), U("span", Ir, X(Z(n).t("platform.screen.RoleAuthorizationView.not-applicable", "不适用")), 1))]),
4072
+ ]), t.referenceFieldId ? (J(), H("small", Vr, X(Z(n).t("platform.screen.RoleAuthorizationView.dependency-target", "依赖目标:")) + X(nt(t.referenceFieldId)?.targetModuleTitle) + " · " + X(nt(t.referenceFieldId)?.referenceActionTitle), 1)) : (J(), H("small", Hr, X(Z(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field-before-granting-this-action", "请先选择引用字段,再开启该动作授权。")), 1))], 64)) : V("v-if", !0)])) : ot(e, t) ? (J(), H("span", Ur, "—")) : (J(), H("span", Wr, X(Z(n).t("platform.screen.RoleAuthorizationView.not-applicable", "不适用")), 1))]),
3918
4073
  _: 1
3919
- }, 8, ["columns", "rows"])) : (J(), V(Z(Te), {
4074
+ }, 8, ["columns", "rows"])) : (J(), B(Z(ae), {
3920
4075
  key: 1,
3921
4076
  title: Z(n).t("platform.screen.useModulePageSession.select-a-module", "请选择模块")
3922
4077
  }, null, 8, ["title"]))]),
3923
4078
  _: 2
3924
- }, [je.value ? void 0 : {
4079
+ }, [Me.value ? void 0 : {
3925
4080
  name: "actions",
3926
- fn: $(() => [K(Z(R), {
4081
+ fn: $(() => [G(Z(N), {
3927
4082
  type: "primary",
3928
- disabled: !q.value,
3929
- loading: k.value,
4083
+ disabled: !K.value,
4084
+ loading: T.value,
3930
4085
  onClick: dt
3931
4086
  }, {
3932
- default: $(() => [G(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
4087
+ default: $(() => [W(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3933
4088
  _: 1
3934
4089
  }, 8, ["disabled", "loading"])]),
3935
4090
  key: "0"
3936
4091
  }]), 1032, ["title"])], 2))], 2)]),
3937
4092
  _: 2
3938
- }, [Me.value && !L.value ? {
4093
+ }, [Ne.value && !fe.value ? {
3939
4094
  name: "operation",
3940
- fn: $(() => [K(Z(R), {
4095
+ fn: $(() => [G(Z(N), {
3941
4096
  type: "primary",
3942
- disabled: !q.value,
3943
- loading: k.value,
4097
+ disabled: !K.value,
4098
+ loading: T.value,
3944
4099
  onClick: dt
3945
4100
  }, {
3946
- default: $(() => [G(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
4101
+ default: $(() => [W(X(Z(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3947
4102
  _: 1
3948
4103
  }, 8, ["disabled", "loading"])]),
3949
4104
  key: "0"
3950
4105
  } : void 0]), 1040));
3951
4106
  }
3952
- }), Rr = /* @__PURE__ */ e({ default: () => zr }), zr = /*#__PURE__*/ I(Lr, [["__scopeId", "data-v-817d8433"]]), Br = { class: "role-authorization-drawer-surface" }, Vr = /*#__PURE__*/ I(/* @__PURE__ */ q({
4107
+ }), Kr = /* @__PURE__ */ e({ default: () => qr }), qr = /*#__PURE__*/ L(Gr, [["__scopeId", "data-v-817d8433"]]), Jr = { class: "role-authorization-drawer-surface" }, Yr = /*#__PURE__*/ L(/* @__PURE__ */ q({
3953
4108
  name: "RoleAuthorizationDrawerSurface",
3954
4109
  __name: "RoleAuthorizationDrawerSurface",
3955
4110
  props: { context: {} },
3956
4111
  setup(e) {
3957
4112
  let t = e, n = t.context.module;
3958
- return (e, r) => (J(), U("section", Br, [t.context.record?.id == null ? H("v-if", !0) : (J(), V(zr, {
4113
+ return (e, r) => (J(), H("section", Jr, [t.context.record?.id == null ? V("v-if", !0) : (J(), B(qr, {
3959
4114
  key: 0,
3960
4115
  "role-id": String(t.context.record.id),
3961
4116
  "module-context": Z(n),
@@ -3966,43 +4121,43 @@ var Ar = { class: "panel-title" }, jr = {
3966
4121
  "drawer-context"
3967
4122
  ]))]));
3968
4123
  }
3969
- }), [["__scopeId", "data-v-04d29709"]]), Hr = {
4124
+ }), [["__scopeId", "data-v-04d29709"]]), Xr = {
3970
4125
  key: 0,
3971
4126
  class: "role-group-member-form-field"
3972
- }, Ur = {
4127
+ }, Zr = {
3973
4128
  id: "iam-role-scope-and-actions",
3974
4129
  target: { moduleAlias: "iam.role" },
3975
4130
  navigator: {
3976
4131
  bypassListScope: !0,
3977
4132
  extension: {
3978
4133
  key: "iam-role-scope-tree",
3979
- component: qn,
4134
+ component: tr,
3980
4135
  selection: { kind: "roleScope" }
3981
4136
  }
3982
4137
  },
3983
4138
  list: { cellComponents: [
3984
4139
  {
3985
4140
  key: "assignmentType",
3986
- cell: Jn
4141
+ cell: nr
3987
4142
  },
3988
4143
  {
3989
4144
  key: "roleKind",
3990
- cell: Jn
4145
+ cell: nr
3991
4146
  },
3992
4147
  {
3993
4148
  key: "sharePolicy",
3994
- cell: Jn
4149
+ cell: nr
3995
4150
  }
3996
4151
  ] },
3997
4152
  form: {
3998
4153
  contributions: [{
3999
4154
  key: "role-group-members",
4000
- component: /* @__PURE__ */ I(/* @__PURE__ */ q({
4155
+ component: /* @__PURE__ */ L(/* @__PURE__ */ q({
4001
4156
  name: "RoleGroupMemberFormField",
4002
4157
  __name: "RoleGroupMemberFormField",
4003
4158
  props: { context: {} },
4004
4159
  setup(e) {
4005
- let t = j(), n = e, r = Y([]), i = Y(!1), a = B(() => n.context.draft.roleKind === "group"), o = B(() => f(n.context.draft.memberRoleIds)), s = B(() => String(n.context.draft.id ?? "") || void 0), c = B(() => new Set(r.value.filter((e) => e.roleKind === "dataGrant" && e.id && o.value.includes(e.id)).map((e) => e.id))), l = B(() => r.value.filter((e) => e.id && e.id !== s.value).map((e) => ({
4160
+ let t = I(), n = e, r = Y([]), i = Y(!1), a = z(() => n.context.draft.roleKind === "group"), o = z(() => f(n.context.draft.memberRoleIds)), s = z(() => String(n.context.draft.id ?? "") || void 0), c = z(() => new Set(r.value.filter((e) => e.roleKind === "dataGrant" && e.id && o.value.includes(e.id)).map((e) => e.id))), l = z(() => r.value.filter((e) => e.id && e.id !== s.value).map((e) => ({
4006
4161
  label: `${e.title ?? e.id} / ${e.roleKind === "dataGrant" ? t.t("platform.screen.RoleManagementView.data-authorization-role", "数据授权角色") : t.t("platform.screen.RoleManagementView.standard-role", "标准角色")}`,
4007
4162
  value: e.id,
4008
4163
  disabled: e.roleKind === "dataGrant" && c.value.size > 0 && !o.value.includes(e.id)
@@ -4061,7 +4216,7 @@ var Ar = { class: "panel-title" }, jr = {
4061
4216
  function f(e) {
4062
4217
  return typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
4063
4218
  }
4064
- return (n, r) => a.value ? (J(), U("label", Hr, [W("span", null, X(Z(t).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), K(Z(pe), {
4219
+ return (n, r) => a.value ? (J(), H("label", Xr, [U("span", null, X(Z(t).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), G(Z(ue), {
4065
4220
  mode: "multiple",
4066
4221
  value: o.value,
4067
4222
  options: l.value,
@@ -4076,7 +4231,7 @@ var Ar = { class: "panel-title" }, jr = {
4076
4231
  "loading",
4077
4232
  "placeholder",
4078
4233
  "disabled"
4079
- ])])) : H("v-if", !0);
4234
+ ])])) : V("v-if", !0);
4080
4235
  }
4081
4236
  }), [["__scopeId", "data-v-5dd40ab2"]]),
4082
4237
  location: {
@@ -4105,7 +4260,7 @@ var Ar = { class: "panel-title" }, jr = {
4105
4260
  title: "绑定用户",
4106
4261
  titleKey: "platform.screen.RoleManagementView.assign-to-users",
4107
4262
  width: "extraWide",
4108
- component: or
4263
+ component: mr
4109
4264
  });
4110
4265
  }
4111
4266
  },
@@ -4123,7 +4278,7 @@ var Ar = { class: "panel-title" }, jr = {
4123
4278
  title: "绑定任职",
4124
4279
  titleKey: "platform.screen.RoleManagementView.assign-to-positions",
4125
4280
  width: "extraWide",
4126
- component: hr
4281
+ component: Cr
4127
4282
  });
4128
4283
  }
4129
4284
  },
@@ -4141,21 +4296,22 @@ var Ar = { class: "panel-title" }, jr = {
4141
4296
  title: "角色授权",
4142
4297
  titleKey: "platform.unsaved-source.RoleAuthorizationView",
4143
4298
  width: "wide",
4144
- component: Vr
4299
+ component: Yr
4145
4300
  });
4146
4301
  }
4147
4302
  }
4148
4303
  ]
4149
4304
  };
4150
- o("platform-admin-runtime", ct), l("platform-admin-runtime", [
4151
- Kt,
4305
+ c("platform-admin-runtime", lt), l("platform-admin-runtime", [
4152
4306
  qt,
4153
4307
  Jt,
4154
- tn,
4155
- ln,
4156
- hn,
4157
- On,
4158
- Ur
4308
+ Yt,
4309
+ nn,
4310
+ un,
4311
+ gn,
4312
+ kn,
4313
+ Zr,
4314
+ In
4159
4315
  ]);
4160
4316
  //#endregion
4161
- export { wr as a, ar as c, Cr as i, ot as l, Rr as n, vr as o, Sr as r, mr as s, zr as t };
4317
+ export { Mr as a, pr as c, jr as i, st as l, Kr as n, Er as o, Ar as r, Sr as s, qr as t };