@ximatai/muyun-web-app 0.26.16 → 0.26.17

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 (103) hide show
  1. package/dist/{BusinessActivityLogView-DVM_GB5y.js → BusinessActivityLogView-9RrW-RKb.js} +2 -2
  2. package/dist/BusinessLogListDrawer-DYVx9tiQ.js +864 -0
  3. package/dist/{ConfigurationTranslationView-B0FosDyz.js → ConfigurationTranslationView-Bh_ekuMP.js} +40 -40
  4. package/dist/{LoginAuditLogView-3tAozKlC.js → LoginAuditLogView-DG6iBXEn.js} +2 -2
  5. package/dist/ModuleActionManagementView-DgHqhoMN.js +755 -0
  6. package/dist/{ModuleGovernanceView-DsqR_Sj7.js → ModuleGovernanceView-C53RnUzc.js} +2994 -2994
  7. package/dist/{RequestErrorLogView-C4yH-TSX.js → RequestErrorLogView-Ba5p0hLE.js} +2 -2
  8. package/dist/{RoleDetailWorkspaceView-BpOoGUwS.js → RoleDetailWorkspaceView-C3TBqksY.js} +157 -157
  9. package/dist/{RuntimeLogView-CoKKpJ39.js → RuntimeLogView-BFEABm8G.js} +66 -66
  10. package/dist/WorkflowAdministrationView-BOHG2e-I.js +650 -0
  11. package/dist/WorkflowConfigurationView-A0m5tBX9.js +1097 -0
  12. package/dist/WorkflowWorkbenchView-DGpNDt5V.js +759 -0
  13. package/dist/index.css +1 -1
  14. package/dist/index.js +606 -590
  15. package/dist/moduleGovernanceWorkspaceView-DNKzYX0x.js +667 -0
  16. package/dist/{platform-components-Cl5ZZiuU.js → platform-components-BBfyINHa.js} +8858 -6085
  17. package/dist/{platform-workbench-CAHoriIf.js → platform-workbench-C1hmkOUD.js} +6546 -6637
  18. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
  19. package/dist/types/app/useAssistantAvailability.d.ts +8 -0
  20. package/dist/types/app/useCurrentUserProfile.d.ts +12 -0
  21. package/dist/types/app/workbenchRouteSync.d.ts +2 -0
  22. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
  23. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +8 -8
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +208 -92
  25. package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +1 -0
  26. package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +2 -2
  27. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +2 -2
  28. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +4 -4
  29. package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -0
  30. package/dist/types/main.d.ts +0 -1
  31. package/dist/types/platform-components/BusinessContentGenerationPanel.vue.d.ts +22 -0
  32. package/dist/types/platform-components/BusinessContentQueryNotice.vue.d.ts +17 -0
  33. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  34. package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +4 -4
  35. package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +1 -1
  36. package/dist/types/platform-components/DictionaryPicker.vue.d.ts +4 -4
  37. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -2
  38. package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +2 -2
  39. package/dist/types/platform-components/RecordContentSourceField.vue.d.ts +22 -0
  40. package/dist/types/platform-components/RecordContentTranslationField.vue.d.ts +26 -0
  41. package/dist/types/platform-components/RecordDataExchangeSurface.vue.d.ts +26 -0
  42. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +3 -2
  43. package/dist/types/platform-components/RecordFormFields.vue.d.ts +3 -2
  44. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -1
  45. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -0
  46. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  47. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
  48. package/dist/types/{dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts → platform-components/RecordQuerySortSelector.vue.d.ts} +5 -9
  49. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +2 -0
  50. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +7 -2
  51. package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +2 -0
  52. package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +4 -0
  53. package/dist/types/platform-components/crudRecordListModel.d.ts +1 -0
  54. package/dist/types/platform-components/index.d.ts +1 -0
  55. package/dist/types/platform-components/loadExplorerRecords.d.ts +3 -0
  56. package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
  57. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -0
  58. package/dist/types/platform-components/recordQueryListQueryController.d.ts +2 -0
  59. package/dist/types/platform-components/recordSurfaceActivity.d.ts +3 -0
  60. package/dist/types/platform-components/recycleBinState.d.ts +1 -0
  61. package/dist/types/platform-components/referencePickerModel.d.ts +6 -2
  62. package/dist/types/platform-components/scopedTreePickerModel.d.ts +4 -0
  63. package/dist/types/platform-workbench/Workbench.vue.d.ts +9 -4
  64. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +16 -0
  65. package/dist/types/platform-workbench/WorkbenchLanguageSettings.vue.d.ts +11 -0
  66. package/dist/types/platform-workbench/WorkbenchPageTitle.vue.d.ts +10 -0
  67. package/dist/types/platform-workbench/menuGroupLayout.d.ts +5 -0
  68. package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -2
  69. package/dist/types/platform-workbench/useAssistantConversation.d.ts +1 -1
  70. package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +1 -1
  71. package/dist/types/platform-workbench/useLanguagePreferenceSelection.d.ts +7 -0
  72. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +4 -4
  73. package/dist/types/views/WorkflowSelectionFields.vue.d.ts +28 -0
  74. package/dist/types/views/metadataEditorSession.d.ts +4 -0
  75. package/dist/types/views/metadataOrchestrationState.d.ts +3 -0
  76. package/dist/types/views/metadataWorkspace.d.ts +8 -0
  77. package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +1 -0
  78. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  79. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +9 -6
  80. package/dist/types/vue-ui-antdv/types.d.ts +2 -0
  81. package/dist/types/vue-ui-antdv/typography.d.ts +25 -0
  82. package/dist/types/web-contracts/index.d.ts +132 -1
  83. package/dist/types/web-contracts/workflow.d.ts +10 -0
  84. package/dist/types/web-core/assistantTurnClient.d.ts +2 -0
  85. package/dist/types/web-core/businessContent.d.ts +38 -0
  86. package/dist/types/web-core/businessContentLanguage.d.ts +18 -0
  87. package/dist/types/web-core/index.d.ts +5 -0
  88. package/dist/types/web-core/languagePreference.d.ts +2 -2
  89. package/dist/types/web-core/module/dataExchangeClient.d.ts +83 -1
  90. package/dist/types/web-core/module/staticModuleClient.d.ts +9 -3
  91. package/dist/types/web-core/presentationTexts.d.ts +5 -0
  92. package/dist/types/web-core/recordReadRefreshGuard.d.ts +7 -0
  93. package/dist/types/web-core/useBusinessContentGenerationBatch.d.ts +36 -0
  94. package/dist/types/web-core/useBusinessContentReading.d.ts +30 -0
  95. package/dist/types/web-core/workflow.d.ts +2 -1
  96. package/dist/{workspaceViews-BIYGPUAO.js → workspaceViews-BpH71LKQ.js} +542 -542
  97. package/package.json +1 -1
  98. package/dist/BusinessLogListDrawer-BciMLY9z.js +0 -864
  99. package/dist/ModuleActionManagementView-CJRNShGg.js +0 -755
  100. package/dist/WorkflowAdministrationView-DmUV6vWS.js +0 -650
  101. package/dist/WorkflowConfigurationView-pghDbWEh.js +0 -975
  102. package/dist/WorkflowWorkbenchView-BwWxyDen.js +0 -747
  103. package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +0 -667
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { A as t, b as n, lt as r, p as i, u as a, ut as o, v as s, w as c } from "./platform-workbench-CAHoriIf.js";
3
- import { $i as l, Bn as u, C as d, Ci as f, Cn as p, Ei as m, F as h, Gi as g, Gn as _, Hn as v, Ii as y, In as b, J as x, N as S, On as ee, Ot as C, Qi as w, R as T, Sn as E, Ti as te, Tn as D, Ui as O, Un as k, Vi as A, Vn as ne, Wi as re, Xn as ie, Y as ae, _n as oe, dr as se, fr as j, gn as M, hn as ce, in as N, na as P, nn as F, qn as I, ta as le, tn as ue, vn as de, wi as fe, wn as pe, x as me, zi as he } from "./platform-components-Cl5ZZiuU.js";
4
- import { a as ge, c as L, l as _e, n as ve, o as ye, r as be, s as xe, u as Se } from "./moduleGovernanceWorkspaceView-DGEV3ZyT.js";
2
+ import { T as t, d as n, j as r, lt as i, m as a, ut as o, x as s, y as c } from "./platform-workbench-C1hmkOUD.js";
3
+ import { Aa as l, Ar as u, Da as d, Dn as f, E as p, En as m, Gn as h, I as g, Ji as _, Jn as v, Ki as y, Kn as b, Oa as x, On as S, Q as C, R as w, Tn as T, Un as E, V as ee, Wn as te, Xn as D, Yi as O, Z as k, _a as A, aa as ne, an as j, bn as re, ca as ie, da as ae, ga as oe, in as se, ja as M, jn as ce, jr as N, jt as P, mr as le, pa as F, qi as ue, sn as de, vn as fe, w as pe, xn as me, yn as he, zn as I } from "./platform-components-BBfyINHa.js";
4
+ import { a as ge, c as L, l as _e, n as ve, o as ye, r as be, s as xe, u as Se } from "./moduleGovernanceWorkspaceView-DNKzYX0x.js";
5
5
  import { Fragment as R, computed as z, createBlock as B, createCommentVNode as V, createElementBlock as H, createElementVNode as U, createSlots as Ce, createTextVNode as W, createVNode as G, defineAsyncComponent as we, defineComponent as K, guardReactiveProps as Te, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as ke, onBeforeUnmount as Ae, onMounted as je, onScopeDispose as Me, onUnmounted as Ne, openBlock as q, ref as J, renderList as Pe, renderSlot as Fe, resolveDynamicComponent as Ie, shallowRef as Le, toDisplayString as Y, toValue as Re, unref as X, watch as Z, withCtx as Q, withKeys as ze, withModifiers as Be } from "vue";
6
6
  //#region src/views/roleDetailWorkspaceView.ts
7
7
  var Ve = /* @__PURE__ */ new Set([
@@ -12,7 +12,7 @@ var Ve = /* @__PURE__ */ new Set([
12
12
  type: "iam.role.detail",
13
13
  route: "/iam/role",
14
14
  moduleAlias: "iam.role",
15
- component: we(() => import("./RoleDetailWorkspaceView-BpOoGUwS.js")),
15
+ component: we(() => import("./RoleDetailWorkspaceView-C3TBqksY.js")),
16
16
  layout: "workspace",
17
17
  routeTitle: "角色管理",
18
18
  routeTitleKey: "platform.workspace-view.roles.route-title",
@@ -53,7 +53,7 @@ var Ve = /* @__PURE__ */ new Set([
53
53
  type: "platform.module.actions",
54
54
  route: "/_platform/workspace/platform.module.actions",
55
55
  moduleAlias: "platform.module",
56
- component: we(() => import("./ModuleActionManagementView-CJRNShGg.js").then((e) => e.n)),
56
+ component: we(() => import("./ModuleActionManagementView-DgHqhoMN.js").then((e) => e.n)),
57
57
  layout: "workspace",
58
58
  routeTitle: "模块管理",
59
59
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -74,7 +74,7 @@ var Ve = /* @__PURE__ */ new Set([
74
74
  type: "platform.module.workflows",
75
75
  route: "/_platform/workspace/platform.module.workflows",
76
76
  moduleAlias: "platform.module",
77
- component: we(() => import("./WorkflowConfigurationView-pghDbWEh.js")),
77
+ component: we(() => import("./WorkflowConfigurationView-A0m5tBX9.js")),
78
78
  layout: "workspace",
79
79
  routeTitle: "模块管理",
80
80
  routeTitleKey: "platform.workspace-view.modules.route-title",
@@ -93,7 +93,7 @@ var Ve = /* @__PURE__ */ new Set([
93
93
  __name: "ModuleMenuDrawer",
94
94
  props: { context: {} },
95
95
  setup(e) {
96
- let t = P(), n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), a = i(), o = be(), c = o?.language ?? t, l = s(), u = () => JSON.stringify([
96
+ let t = M(), n = e, r = String(n.context.record?.alias ?? n.context.record?.id ?? ""), i = a(), o = be(), s = o?.language ?? t, l = c(), u = () => JSON.stringify([
97
97
  l?.value?.userId,
98
98
  l?.value?.tenantId,
99
99
  l?.value?.organizationId,
@@ -101,17 +101,17 @@ var Ve = /* @__PURE__ */ new Set([
101
101
  ]), d = u(), f = !0, p = o?.session(r) ?? ge(L(n.context.module.http), r, {
102
102
  valid: () => f && !!l?.value?.userId && u() === d,
103
103
  active: () => f
104
- }, ye(d, r, () => !!l?.value?.userId && u() === d, void 0, void 0, c), a?.refreshMenus, c), m = J();
104
+ }, ye(d, r, () => !!l?.value?.userId && u() === d, void 0, void 0, s), i?.refreshMenus, s), m = J();
105
105
  return o?.focus(p), o?.showEditor(p), p.ready.value || p.load(), Z([
106
106
  p.canSave,
107
107
  p.saving,
108
108
  p.saved,
109
109
  p.resultUnknown,
110
- c.revision
110
+ s.revision
111
111
  ], () => {
112
112
  n.context.setCloseBlocked(p.saving.value), n.context.setTitleActions(p.saved.value || p.resultUnknown.value ? [] : [{
113
113
  key: "add-menu",
114
- label: c.t("platform.screen.ModuleMenuDrawer.add", "添加"),
114
+ label: s.t("platform.screen.ModuleMenuDrawer.add", "添加"),
115
115
  emphasis: "primary",
116
116
  disabled: !p.canSave.value,
117
117
  loading: p.saving.value,
@@ -131,29 +131,29 @@ var Ve = /* @__PURE__ */ new Set([
131
131
  }), qe = { class: "module-menu-entries" }, Je = { key: 0 }, Ye = {
132
132
  key: 1,
133
133
  role: "status"
134
- }, Xe = { key: 2 }, Ze = { key: 0 }, Qe = /*#__PURE__*/ I(/* @__PURE__ */ K({
134
+ }, Xe = { key: 2 }, Ze = { key: 0 }, Qe = /*#__PURE__*/ D(/* @__PURE__ */ K({
135
135
  __name: "ModuleMenuEntriesSection",
136
136
  props: { context: {} },
137
137
  setup(e) {
138
- let t = P(), n = e, r = i(), a = J([]), o = z(() => a.value.flatMap(({ scheme: e, tree: r }) => _e(r, re(e, "title", t) ?? e.alias ?? e.id, t).filter(({ menu: e }) => e.moduleAlias === String(n.context.record.alias ?? n.context.record.id ?? "")))), s = J(/* @__PURE__ */ new Map()), c = J(!1), l = J(!1), u = z(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
138
+ let t = M(), n = e, r = a(), i = J([]), o = z(() => i.value.flatMap(({ scheme: e, tree: r }) => _e(r, oe(e, "title", t) ?? e.alias ?? e.id, t).filter(({ menu: e }) => e.moduleAlias === String(n.context.record.alias ?? n.context.record.id ?? "")))), s = J(/* @__PURE__ */ new Map()), c = J(!1), l = J(!1), u = z(() => l.value ? t.t("platform.screen.ModuleMenuEntriesSection.cannot-load-menu-entries-right-now-check-that-you-have", "暂时无法读取菜单入口,请确认有菜单管理权限后重试。") : ""), d = 0;
139
139
  Ae(() => d++), Z(() => [n.context.record.id, n.context.refreshKey], () => void f(), { immediate: !0 });
140
140
  async function f() {
141
141
  let e = ++d, t = L(n.context.module.http);
142
- c.value = !0, l.value = !1, a.value = [], s.value = /* @__PURE__ */ new Map();
142
+ c.value = !0, l.value = !1, i.value = [], s.value = /* @__PURE__ */ new Map();
143
143
  try {
144
- let [n, r] = await Promise.all([t.schemes(), t.visible()]), i = await Promise.all(n.map(async (e) => ({
144
+ let [n, r] = await Promise.all([t.schemes(), t.visible()]), a = await Promise.all(n.map(async (e) => ({
145
145
  scheme: e,
146
146
  tree: await t.tree(e.id)
147
147
  })));
148
148
  if (e !== d) return;
149
- a.value = i, s.value = new Map(_e(r).map(({ menu: e }) => [e.id, e]));
149
+ i.value = a, s.value = new Map(_e(r).map(({ menu: e }) => [e.id, e]));
150
150
  } catch {
151
151
  e === d && (l.value = !0);
152
152
  } finally {
153
153
  e === d && (c.value = !1);
154
154
  }
155
155
  }
156
- return (e, n) => (q(), H("div", qe, [c.value ? (q(), H("span", Je, Y(X(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : u.value ? (q(), H("div", Ye, [W(Y(u.value) + " ", 1), G(X(_), {
156
+ return (e, n) => (q(), H("div", qe, [c.value ? (q(), H("span", Je, Y(X(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : u.value ? (q(), H("div", Ye, [W(Y(u.value) + " ", 1), G(X(v), {
157
157
  type: "link",
158
158
  onClick: f
159
159
  }, {
@@ -162,7 +162,7 @@ var Ve = /* @__PURE__ */ new Set([
162
162
  })])) : o.value.length ? V("v-if", !0) : (q(), H("span", Xe, Y(X(t).t("platform.screen.ModuleMenuEntriesSection.no-menu-entry-yet-use-add-to-menu-above-to", "尚未添加到菜单,可通过上方“添加到菜单”设置入口。")), 1)), (q(!0), H(R, null, Pe(o.value, (e) => (q(), H("div", {
163
163
  key: e.menu.id,
164
164
  class: "menu-entry"
165
- }, [U("span", null, [W(Y(e.path), 1), e.menu.enabled === !1 ? (q(), H("small", Ze, Y(X(t).t("platform.screen.ModuleMenuEntriesSection.disabled", "· 已停用")), 1)) : V("v-if", !0)]), s.value.has(e.menu.id) && X(r)?.openMenu ? (q(), B(X(_), {
165
+ }, [U("span", null, [W(Y(e.path), 1), e.menu.enabled === !1 ? (q(), H("small", Ze, Y(X(t).t("platform.screen.ModuleMenuEntriesSection.disabled", "· 已停用")), 1)) : V("v-if", !0)]), s.value.has(e.menu.id) && X(r)?.openMenu ? (q(), B(X(v), {
166
166
  key: 0,
167
167
  type: "link",
168
168
  onClick: (t) => X(r).openMenu(s.value.get(e.menu.id))
@@ -288,24 +288,24 @@ var lt = { class: "password-policy-preview" }, ut = {
288
288
  id: "iam-password-policy-preview",
289
289
  target: { moduleAlias: "iam.password_policy_rule" },
290
290
  card: { assistant: {
291
- component: /* @__PURE__ */ I(/* @__PURE__ */ K({
291
+ component: /* @__PURE__ */ D(/* @__PURE__ */ K({
292
292
  name: "PasswordPolicyPreview",
293
293
  __name: "PasswordPolicyPreview",
294
294
  props: { context: {} },
295
295
  setup(e) {
296
- let t = P(), n = e, r = J("CURRENT"), i = J(""), a = J(), o = J(!1), s = J(!1), c = 0, l = z(() => x(n.context.record)), d = z(() => n.context.mode !== "view" || T(l.value?.id) !== void 0), f = z(() => [{
296
+ let t = M(), n = e, r = J("CURRENT"), i = J(""), a = J(), o = J(!1), s = J(!1), c = 0, l = z(() => y(n.context.record)), u = z(() => n.context.mode !== "view" || C(l.value?.id) !== void 0), f = z(() => [{
297
297
  value: "CURRENT",
298
298
  label: t.t("platform.screen.PasswordPolicyPreview.current-rule", "本规则"),
299
- disabled: !d.value
299
+ disabled: !u.value
300
300
  }, {
301
301
  value: "ALL",
302
302
  label: t.t("platform.screen.PasswordPolicyPreview.all-rules", "全规则")
303
303
  }]);
304
- Z(d, (e) => {
304
+ Z(u, (e) => {
305
305
  !e && r.value === "CURRENT" && (r.value = "ALL");
306
306
  }, { immediate: !0 });
307
307
  function p(e) {
308
- (e !== "CURRENT" || d.value) && (e === "CURRENT" || e === "ALL") && (r.value = e);
308
+ (e !== "CURRENT" || u.value) && (e === "CURRENT" || e === "ALL") && (r.value = e);
309
309
  }
310
310
  Z([r, () => n.context.formSessionKey], ([e]) => {
311
311
  e === "ALL" && m();
@@ -325,55 +325,55 @@ var lt = { class: "password-policy-preview" }, ut = {
325
325
  }
326
326
  }
327
327
  let h = z(() => {
328
- let e = d.value ? l.value : void 0;
328
+ let e = u.value ? l.value : void 0;
329
329
  if (r.value === "CURRENT") return e ? [e] : [];
330
330
  if (!a.value) return [];
331
- let t = a.value.filter(te), n = T(e?.id);
331
+ let t = a.value.filter(T), n = C(e?.id);
332
332
  if (n) {
333
- let e = t.findIndex((e) => T(e.id) === n);
333
+ let e = t.findIndex((e) => C(e.id) === n);
334
334
  e >= 0 && t.splice(e, 1);
335
335
  }
336
- return e && te(e) && t.push(e), t.length > 0 ? t.sort(ee) : [];
337
- }), _ = z(() => i.value ? h.value.map((e, t) => S(e, i.value, t)) : []), v = z(() => _.value.map((e) => ({
336
+ return e && T(e) && t.push(e), t.length > 0 ? t.sort(x) : [];
337
+ }), g = z(() => i.value ? h.value.map((e, t) => b(e, i.value, t)) : []), _ = z(() => g.value.map((e) => ({
338
338
  ...e,
339
- title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : O(e.title, e.titleText, t),
340
- message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : O(e.message, e.messageText, t),
339
+ title: e.titleSource ? t.t(e.titleSource.sourceId, e.title) : F(e.title, e.titleText, t),
340
+ message: e.messageSource ? t.t(e.messageSource.sourceId, e.message) : F(e.message, e.messageText, t),
341
341
  diagnostic: e.diagnostic ? t.t(e.diagnostic.sourceId, e.diagnostic.originalText) : void 0
342
- }))), y = z(() => {
343
- if (!d.value && r.value === "CURRENT") return t.t("platform.screen.PasswordPolicyPreview.select-or-create-a-rule", "请选择或新建一条规则");
342
+ }))), v = z(() => {
343
+ if (!u.value && r.value === "CURRENT") return t.t("platform.screen.PasswordPolicyPreview.select-or-create-a-rule", "请选择或新建一条规则");
344
344
  if (r.value === "ALL" && s.value) return t.t("platform.screen.PasswordPolicyPreview.loading-the-authoritative-rules", "正在加载权威规则集");
345
345
  if (r.value === "ALL" && o.value) return t.t("platform.screen.PasswordPolicyPreview.unable-to-load-the-authoritative-rules", "无法加载权威规则集");
346
346
  if (!i.value) return t.t("platform.screen.PasswordPolicyPreview.enter-a-test-password-for-immediate-feedback", "输入测试密码后即时反馈");
347
- if (_.value.length === 0) return t.t("platform.screen.PasswordPolicyPreview.no-enabled-rules-participate-in-this-preview", "当前没有参与试算的启用规则");
348
- let e = _.value.filter((e) => !e.passed).length;
347
+ if (g.value.length === 0) return t.t("platform.screen.PasswordPolicyPreview.no-enabled-rules-participate-in-this-preview", "当前没有参与试算的启用规则");
348
+ let e = g.value.filter((e) => !e.passed).length;
349
349
  return e === 0 ? t.t("platform.screen.PasswordPolicyPreview.all-passed-value-value", "全部通过({value1}/{value2})", {
350
- value1: _.value.length,
351
- value2: _.value.length
350
+ value1: g.value.length,
351
+ value2: g.value.length
352
352
  }) : t.t("platform.screen.PasswordPolicyPreview.value-rules-failed", "{value1} 条规则未通过", { value1: e });
353
353
  });
354
- function x(e) {
354
+ function y(e) {
355
355
  if (e) return e;
356
356
  }
357
- function S(e, t, n) {
358
- 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 = E(e.title, r?.originalText ?? ""), o = E(e.message, i?.originalText ?? ""), s = {
359
- titleText: g(e, "title"),
360
- messageText: g(e, "message")
357
+ function b(e, t, n) {
358
+ let r = e.title?.trim() ? void 0 : d("platform.screen.PasswordPolicyPreview.unnamed-rule"), i = e.message?.trim() ? void 0 : d("platform.screen.PasswordPolicyPreview.no-failure-message-configured"), a = w(e.title, r?.originalText ?? ""), o = w(e.message, i?.originalText ?? ""), s = {
359
+ titleText: A(e, "title"),
360
+ messageText: A(e, "message")
361
361
  }, c = e.pattern;
362
362
  if (!c?.trim()) return {
363
363
  ...s,
364
- key: C(e, n),
364
+ key: S(e, n),
365
365
  title: a,
366
366
  message: o,
367
367
  titleSource: r,
368
368
  messageSource: i,
369
369
  passed: !1,
370
- diagnostic: w("platform.screen.PasswordPolicyPreview.regular-expression-required")
370
+ diagnostic: d("platform.screen.PasswordPolicyPreview.regular-expression-required")
371
371
  };
372
372
  try {
373
373
  let l = RegExp(`^(?:${c})$`).test(t);
374
374
  return {
375
375
  ...s,
376
- key: C(e, n),
376
+ key: S(e, n),
377
377
  title: a,
378
378
  message: o,
379
379
  titleSource: r,
@@ -383,41 +383,41 @@ var lt = { class: "password-policy-preview" }, ut = {
383
383
  } catch {
384
384
  return {
385
385
  ...s,
386
- key: C(e, n),
386
+ key: S(e, n),
387
387
  title: a,
388
388
  message: o,
389
389
  titleSource: r,
390
390
  messageSource: i,
391
391
  passed: !1,
392
- diagnostic: w("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
392
+ diagnostic: d("platform.screen.PasswordPolicyPreview.browser-regex-unsupported")
393
393
  };
394
394
  }
395
395
  }
396
- function ee(e, t) {
397
- return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || E(e.title, "").localeCompare(E(t.title, ""));
396
+ function x(e, t) {
397
+ return (e.sortOrder ?? 2 ** 53 - 1) - (t.sortOrder ?? 2 ** 53 - 1) || w(e.title, "").localeCompare(w(t.title, ""));
398
398
  }
399
- function C(e, t) {
400
- return T(e.id) ?? `draft:${t}`;
399
+ function S(e, t) {
400
+ return C(e.id) ?? `draft:${t}`;
401
401
  }
402
- function T(e) {
402
+ function C(e) {
403
403
  return e?.trim() || void 0;
404
404
  }
405
- function E(e, t) {
405
+ function w(e, t) {
406
406
  return e?.trim() || t;
407
407
  }
408
- function te(e) {
408
+ function T(e) {
409
409
  return e.enabled !== !1 && (e.scopeType == null || e.scopeType.toLowerCase() === "global");
410
410
  }
411
411
  return (e, n) => (q(), H("section", lt, [
412
- U("header", null, [U("h3", null, Y(X(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), U("span", { class: Oe({ failed: _.value.some((e) => !e.passed) }) }, Y(y.value), 3)]),
413
- G(X(b), {
412
+ U("header", null, [U("h3", null, Y(X(t).t("platform.screen.PasswordPolicyPreview.password-preview", "密码试算")), 1), U("span", { class: Oe({ failed: g.value.some((e) => !e.passed) }) }, Y(v.value), 3)]),
413
+ G(X(I), {
414
414
  class: "preview-scope",
415
415
  value: r.value,
416
416
  options: f.value,
417
417
  size: "small",
418
418
  "onUpdate:value": p
419
419
  }, null, 8, ["value", "options"]),
420
- G(X(u), {
420
+ G(X(E), {
421
421
  value: i.value,
422
422
  "onUpdate:value": n[0] ||= (e) => i.value = e,
423
423
  type: "text",
@@ -429,7 +429,7 @@ var lt = { class: "password-policy-preview" }, ut = {
429
429
  "placeholder",
430
430
  "aria-label"
431
431
  ]),
432
- _.value.length ? (q(), H("ul", ut, [(q(!0), H(R, null, Pe(v.value, (e) => (q(), H("li", {
432
+ g.value.length ? (q(), H("ul", ut, [(q(!0), H(R, null, Pe(_.value, (e) => (q(), H("li", {
433
433
  key: e.key,
434
434
  class: Oe({
435
435
  passed: e.passed,
@@ -447,12 +447,12 @@ var lt = { class: "password-policy-preview" }, ut = {
447
447
  }, ft = { class: "tenant-applications-detail" }, pt = { class: "tenant-applications-summary" }, mt = {
448
448
  key: 0,
449
449
  class: "tenant-applications-status"
450
- }, ht = /*#__PURE__*/ I(/* @__PURE__ */ K({
450
+ }, ht = /*#__PURE__*/ D(/* @__PURE__ */ K({
451
451
  name: "TenantApplicationsDetailSection",
452
452
  __name: "TenantApplicationsDetailSection",
453
453
  props: { context: {} },
454
454
  setup(e) {
455
- let t = P(), n = e, r = J([]), i = J(!1), a = 0, o = J(/* @__PURE__ */ new Map()), s = z(() => r.value.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && e.length > 0).map((e) => ({
455
+ let t = M(), n = e, r = J([]), i = J(!1), a = 0, o = J(/* @__PURE__ */ new Map()), s = z(() => r.value.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && e.length > 0).map((e) => ({
456
456
  key: e,
457
457
  label: o.value.get(e) ? `${o.value.get(e)} · ${e}` : e
458
458
  })));
@@ -482,7 +482,7 @@ var lt = { class: "password-policy-preview" }, ut = {
482
482
  })]);
483
483
  s === a && (o.value = new Map(t.records.filter((e) => e.alias && e.title).map((e) => [e.alias, e.title])), r.value = i.records);
484
484
  } catch (e) {
485
- s === a && F(e, {
485
+ s === a && j(e, {
486
486
  language: t,
487
487
  source: "tenant-applications-detail",
488
488
  phase: "load"
@@ -494,19 +494,19 @@ var lt = { class: "password-policy-preview" }, ut = {
494
494
  function l(e, t) {
495
495
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
496
496
  }
497
- return (e, n) => (q(), H("section", ft, [U("div", pt, [i.value ? (q(), H("span", mt, Y(X(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (q(), B(X(k), {
497
+ return (e, n) => (q(), H("section", ft, [U("div", pt, [i.value ? (q(), H("span", mt, Y(X(t).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : (q(), B(X(b), {
498
498
  key: 1,
499
499
  items: s.value,
500
500
  "max-visible": 8,
501
501
  "empty-text": X(t).t("platform.screen.CrudRecordListExplorer.emptyDescription", "暂无记录")
502
502
  }, null, 8, ["items", "empty-text"]))])]));
503
503
  }
504
- }), [["__scopeId", "data-v-49a973de"]]), gt = { class: "tenant-application-configuration" }, _t = /*#__PURE__*/ I(/* @__PURE__ */ K({
504
+ }), [["__scopeId", "data-v-49a973de"]]), gt = { class: "tenant-application-configuration" }, _t = /*#__PURE__*/ D(/* @__PURE__ */ K({
505
505
  name: "TenantApplicationConfigurationDrawer",
506
506
  __name: "TenantApplicationConfigurationDrawer",
507
507
  props: { context: {} },
508
508
  setup(e) {
509
- let t = P(), n = e, r = J([]), i = J(/* @__PURE__ */ new Set()), a = J(!1), o = J(!1), s = z(() => [{
509
+ let t = M(), n = e, r = J([]), i = J(/* @__PURE__ */ new Set()), a = J(!1), o = J(!1), s = z(() => [{
510
510
  key: "title",
511
511
  title: t.t("platform.screen.TenantApplicationConfigurationDrawer.application-name", "应用名称"),
512
512
  width: 260
@@ -566,7 +566,7 @@ var lt = { class: "password-policy-preview" }, ut = {
566
566
  let o = new Set(r.value.map((e) => e.alias).filter(Boolean));
567
567
  i.value = /* @__PURE__ */ new Set(["iam", ...a.records.map((e) => e.applicationAlias).filter((e) => typeof e == "string" && o.has(e))]);
568
568
  } catch (e) {
569
- F(e, {
569
+ j(e, {
570
570
  language: t,
571
571
  source: "tenant-application-configuration",
572
572
  phase: "load"
@@ -587,7 +587,7 @@ var lt = { class: "password-policy-preview" }, ut = {
587
587
  body: { applicationAliases: [...i.value] }
588
588
  }), n.context.refreshDetailExtensions(), n.context.refreshList(), n.context.close();
589
589
  } catch (e) {
590
- F(e, {
590
+ j(e, {
591
591
  language: t,
592
592
  source: "tenant-application-configuration",
593
593
  phase: "action"
@@ -600,7 +600,7 @@ var lt = { class: "password-policy-preview" }, ut = {
600
600
  function p(e, t) {
601
601
  return `/iam.tenant/${encodeURIComponent(e)}/applications/${t}`;
602
602
  }
603
- return (e, n) => (q(), H("section", gt, [U("p", null, Y(X(t).t("platform.screen.TenantApplicationConfigurationDrawer.select-applications-to-provision-for-this-tenant-deselecting-an-application", "勾选表示向当前租户开通应用;取消勾选将移除该租户的应用开通记录。")), 1), G(X(E), {
603
+ return (e, n) => (q(), H("section", gt, [U("p", null, Y(X(t).t("platform.screen.TenantApplicationConfigurationDrawer.select-applications-to-provision-for-this-tenant-deselecting-an-application", "勾选表示向当前租户开通应用;取消勾选将移除该租户的应用开通记录。")), 1), G(X(T), {
604
604
  columns: s.value,
605
605
  rows: c.value,
606
606
  loading: a.value,
@@ -633,8 +633,8 @@ var lt = { class: "password-policy-preview" }, ut = {
633
633
  },
634
634
  ...["lightLogoAssetId", "darkLogoAssetId"].map((e) => ({
635
635
  fieldName: e,
636
- imageUploadHint: ({ draft: e }, t = l) => 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)"),
637
- imageUploadAdvisory: ({ draft: e }, t = l) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => yt(e, t)
636
+ imageUploadHint: ({ draft: e }, t = x) => 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)"),
637
+ imageUploadAdvisory: ({ draft: e }, t = x) => e.workbenchBrandMode === "logoOnly" ? void 0 : (e) => yt(e, t)
638
638
  }))
639
639
  ]
640
640
  },
@@ -693,21 +693,21 @@ function bt(e) {
693
693
  var xt = {
694
694
  key: 1,
695
695
  class: "employee-account-drawer"
696
- }, St = { class: "employee-account-existing-picker" }, Ct = /*#__PURE__*/ I(/* @__PURE__ */ K({
696
+ }, St = { class: "employee-account-existing-picker" }, Ct = /*#__PURE__*/ D(/* @__PURE__ */ K({
697
697
  name: "EmployeeAccountDrawer",
698
698
  __name: "EmployeeAccountDrawer",
699
699
  props: { context: {} },
700
700
  setup(e) {
701
- let t = P(), n = e, r = J(), i = J(), a = J(""), o = J(""), s = J(!1), c = J(!1);
701
+ let t = M(), n = e, r = J(), i = J(), a = J(""), o = J(""), s = J(!1), c = J(!1);
702
702
  je(() => void l());
703
703
  async function l() {
704
- let e = x();
704
+ let e = y();
705
705
  if (e) {
706
706
  s.value = !0;
707
707
  try {
708
708
  r.value = await n.context.module.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/account` });
709
709
  } catch (e) {
710
- F(e, {
710
+ j(e, {
711
711
  language: t,
712
712
  source: "employee-account",
713
713
  phase: "load"
@@ -717,12 +717,12 @@ var xt = {
717
717
  }
718
718
  }
719
719
  }
720
- async function f() {
721
- let e = x();
720
+ async function u() {
721
+ let e = y();
722
722
  if (!e || c.value) return;
723
723
  let i = a.value.trim();
724
724
  if (!i || !o.value) {
725
- N(t.t("platform.screen.EmployeeAccountDrawer.enter-an-account-and-initial-password", "请输入账号和初始密码。"), {
725
+ de(t.t("platform.screen.EmployeeAccountDrawer.enter-an-account-and-initial-password", "请输入账号和初始密码。"), {
726
726
  language: t,
727
727
  source: "employee-account",
728
728
  phase: "validation"
@@ -739,9 +739,9 @@ var xt = {
739
739
  password: o.value
740
740
  }
741
741
  });
742
- r.value = m(t).binding, o.value = "", n.context.refreshList();
742
+ r.value = O(t).binding, o.value = "", n.context.refreshList();
743
743
  } catch (e) {
744
- F(e, {
744
+ j(e, {
745
745
  language: t,
746
746
  source: "employee-account",
747
747
  phase: "action"
@@ -750,12 +750,12 @@ var xt = {
750
750
  c.value = !1;
751
751
  }
752
752
  }
753
- async function p(e) {
753
+ async function d(e) {
754
754
  let t = e[0];
755
- t && await h(t.id);
755
+ t && await f(t.id);
756
756
  }
757
- async function h(e) {
758
- let a = x();
757
+ async function f(e) {
758
+ let a = y();
759
759
  if (a && e && !c.value) {
760
760
  c.value = !0;
761
761
  try {
@@ -763,13 +763,13 @@ var xt = {
763
763
  method: "POST",
764
764
  path: `/iam.employee/${encodeURIComponent(a)}/account`,
765
765
  body: { userId: e }
766
- }), i.value = void 0, n.context.refreshList(), N(t.t("platform.screen.EmployeeAccountDrawer.the-account-is-bound-to-this-employee", "账号已绑定到当前职员。"), {
766
+ }), i.value = void 0, n.context.refreshList(), de(t.t("platform.screen.EmployeeAccountDrawer.the-account-is-bound-to-this-employee", "账号已绑定到当前职员。"), {
767
767
  language: t,
768
768
  source: "employee-account",
769
769
  phase: "action"
770
770
  });
771
771
  } catch (e) {
772
- F(e, {
772
+ j(e, {
773
773
  language: t,
774
774
  source: "employee-account",
775
775
  phase: "action"
@@ -779,8 +779,8 @@ var xt = {
779
779
  }
780
780
  }
781
781
  }
782
- async function g(e) {
783
- let t = x();
782
+ async function m(e) {
783
+ let t = y();
784
784
  if (!t) return {
785
785
  records: [],
786
786
  total: 0
@@ -797,12 +797,12 @@ var xt = {
797
797
  }
798
798
  });
799
799
  return {
800
- records: r.records.map(y),
800
+ records: r.records.map(g),
801
801
  total: r.total
802
802
  };
803
803
  }
804
- async function v(e) {
805
- let t = x();
804
+ async function h(e) {
805
+ let t = y();
806
806
  return !t || e.length === 0 ? [] : (await n.context.module.http.request({
807
807
  method: "POST",
808
808
  path: `/iam.employee/${encodeURIComponent(t)}/account-candidates/query`,
@@ -813,9 +813,9 @@ var xt = {
813
813
  pageSize: e.length
814
814
  }
815
815
  }
816
- })).records.map(y);
816
+ })).records.map(g);
817
817
  }
818
- function y(e) {
818
+ function g(e) {
819
819
  return {
820
820
  id: e.id,
821
821
  title: e.username ?? e.id,
@@ -827,9 +827,9 @@ var xt = {
827
827
  departmentName: e.departmentTitle
828
828
  };
829
829
  }
830
- async function b() {
831
- let e = x();
832
- if (e && r.value && !c.value && await ce({
830
+ async function _() {
831
+ let e = y();
832
+ if (e && r.value && !c.value && await fe({
833
833
  title: t.t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户"),
834
834
  content: t.t("platform.screen.EmployeeAccountDrawer.remove-this-employee-s-account-the-user-account-will-also", "确认移除该职员的账户?该用户账号会同步删除。"),
835
835
  okText: t.t("platform.screen.RecordPermissionDialog.remove", "移除"),
@@ -842,7 +842,7 @@ var xt = {
842
842
  path: `/iam.employee/${encodeURIComponent(e)}/account/delete`
843
843
  }), r.value = void 0, n.context.refreshList();
844
844
  } catch (e) {
845
- F(e, {
845
+ j(e, {
846
846
  language: t,
847
847
  source: "employee-account",
848
848
  phase: "action"
@@ -852,38 +852,38 @@ var xt = {
852
852
  }
853
853
  }
854
854
  }
855
- function x() {
855
+ function y() {
856
856
  let e = n.context.record?.id;
857
857
  return e == null ? void 0 : String(e);
858
858
  }
859
- return (e, n) => s.value ? (q(), B(X(de), {
859
+ return (e, n) => s.value ? (q(), B(X(me), {
860
860
  key: 0,
861
861
  tip: X(t).t("platform.screen.EmployeeAccountDrawer.loading-account-binding", "加载账号绑定")
862
- }, null, 8, ["tip"])) : (q(), H("section", xt, [x() ? r.value ? (q(), H(R, { key: 1 }, [U("p", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.currently-bound-user", "当前已绑定用户:")) + Y(r.value.userId ?? "-"), 1), G(X(_), {
862
+ }, null, 8, ["tip"])) : (q(), H("section", xt, [y() ? r.value ? (q(), H(R, { key: 1 }, [U("p", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.currently-bound-user", "当前已绑定用户:")) + Y(r.value.userId ?? "-"), 1), G(X(v), {
863
863
  danger: "",
864
864
  "icon-name": "delete",
865
865
  loading: c.value,
866
- onClick: b
866
+ onClick: _
867
867
  }, {
868
868
  default: Q(() => [W(Y(X(t).t("platform.screen.EmployeeAccountDrawer.remove-account", "移除账户")), 1)]),
869
869
  _: 1
870
- }, 8, ["loading"])], 64)) : (q(), H(R, { key: 2 }, [U("section", St, [U("p", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.bind-an-existing-user-account-only-enabled-accounts-in-this", "绑定已有用户账号;仅显示当前租户内启用且尚未绑定其他职员的账号。")), 1), G(X(d), {
870
+ }, 8, ["loading"])], 64)) : (q(), H(R, { key: 2 }, [U("section", St, [U("p", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.bind-an-existing-user-account-only-enabled-accounts-in-this", "绑定已有用户账号;仅显示当前租户内启用且尚未绑定其他职员的账号。")), 1), G(X(p), {
871
871
  value: i.value,
872
872
  disabled: c.value,
873
873
  placeholder: X(t).t("platform.screen.EmployeeAccountDrawer.search-and-select-an-existing-login-account", "搜索并选择已有登录账号"),
874
874
  title: X(t).t("platform.screen.EmployeeAccountDrawer.select-an-existing-login-account", "选择已有登录账号"),
875
- "search-page": g,
876
- "resolve-users": v,
875
+ "search-page": m,
876
+ "resolve-users": h,
877
877
  "onUpdate:value": n[0] ||= (e) => i.value = typeof e == "string" ? e : void 0,
878
- onSelect: p
878
+ onSelect: d
879
879
  }, null, 8, [
880
880
  "value",
881
881
  "disabled",
882
882
  "placeholder",
883
883
  "title"
884
- ])]), U("form", { onSubmit: Be(f, ["prevent"]) }, [
884
+ ])]), U("form", { onSubmit: Be(u, ["prevent"]) }, [
885
885
  U("p", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.you-can-also-create-a-login-account-and-bind-it", "也可直接创建登录账号并自动绑定到当前职员。")), 1),
886
- U("label", null, [U("span", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), G(X(u), {
886
+ U("label", null, [U("span", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.account", "账号")), 1), G(X(E), {
887
887
  value: a.value,
888
888
  "onUpdate:value": n[1] ||= (e) => a.value = e,
889
889
  disabled: c.value,
@@ -893,7 +893,7 @@ var xt = {
893
893
  "disabled",
894
894
  "placeholder"
895
895
  ])]),
896
- U("label", null, [U("span", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), G(X(u), {
896
+ U("label", null, [U("span", null, Y(X(t).t("platform.screen.EmployeeAccountDrawer.initial-password", "初始密码")), 1), G(X(E), {
897
897
  value: o.value,
898
898
  "onUpdate:value": n[2] ||= (e) => o.value = e,
899
899
  type: "password",
@@ -904,7 +904,7 @@ var xt = {
904
904
  "disabled",
905
905
  "placeholder"
906
906
  ])]),
907
- G(X(_), {
907
+ G(X(v), {
908
908
  type: "primary",
909
909
  "html-type": "submit",
910
910
  "icon-name": "plus",
@@ -913,7 +913,7 @@ var xt = {
913
913
  default: Q(() => [W(Y(X(t).t("platform.screen.EmployeeAccountDrawer.create-and-bind-account", "创建账号并绑定")), 1)]),
914
914
  _: 1
915
915
  }, 8, ["loading"])
916
- ], 32)], 64)) : (q(), B(X(oe), {
916
+ ], 32)], 64)) : (q(), B(X(re), {
917
917
  key: 0,
918
918
  title: X(t).t("platform.screen.EmployeeAccountDrawer.employee-not-found", "职员不存在"),
919
919
  message: X(t).t("platform.screen.EmployeeAccountDrawer.reopen-the-employee-record-to-set-up-an-account", "请重新打开职员档案后再设置账号。")
@@ -939,7 +939,7 @@ var xt = {
939
939
  }] }
940
940
  }, Tt = "iam.user.session.collectionChanged", Et = /* @__PURE__ */ new WeakMap();
941
941
  function Dt() {
942
- let e = j(), t = Et.get(e);
942
+ let e = N(), t = Et.get(e);
943
943
  t || (t = Ot(e), Et.set(e, t));
944
944
  let n = t;
945
945
  return n.users += 1, Me(() => {
@@ -951,14 +951,14 @@ function Dt() {
951
951
  };
952
952
  }
953
953
  function Ot(e) {
954
- let n = J({}), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = !1, o = !1, s = t((e) => {
955
- kt(e) && r.has(e.recordId) && u(e.recordId);
954
+ let t = J({}), n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), a = !1, o = !1, s = r((e) => {
955
+ kt(e) && n.has(e.recordId) && u(e.recordId);
956
956
  });
957
957
  function c(e) {
958
- e && !o && (r.add(e), n.value[e] || u(e));
958
+ e && !o && (n.add(e), t.value[e] || u(e));
959
959
  }
960
960
  function l(e) {
961
- return e ? n.value[e] : void 0;
961
+ return e ? t.value[e] : void 0;
962
962
  }
963
963
  function u(e) {
964
964
  e && !o && (i.add(e), !a && (a = !0, queueMicrotask(() => {
@@ -966,20 +966,20 @@ function Ot(e) {
966
966
  })));
967
967
  }
968
968
  async function d() {
969
- let t = Array.from(i);
970
- if (i.clear(), t.length !== 0) try {
969
+ let n = Array.from(i);
970
+ if (i.clear(), n.length !== 0) try {
971
971
  let r = await e.request({
972
972
  method: "POST",
973
973
  path: "/iam.user/sessions/status",
974
- body: { userIds: t }
974
+ body: { userIds: n }
975
975
  });
976
976
  if (o) return;
977
- n.value = {
978
- ...n.value,
977
+ t.value = {
978
+ ...t.value,
979
979
  ...Object.fromEntries(r.map((e) => [e.userId, e]))
980
980
  };
981
981
  } catch (e) {
982
- o || F(e, {
982
+ o || j(e, {
983
983
  source: "iam-user-online-status",
984
984
  phase: "load"
985
985
  });
@@ -991,7 +991,7 @@ function Ot(e) {
991
991
  statusOf: l,
992
992
  refresh: u,
993
993
  dispose() {
994
- o = !0, r.clear(), i.clear(), s.unsubscribe();
994
+ o = !0, n.clear(), i.clear(), s.unsubscribe();
995
995
  }
996
996
  };
997
997
  }
@@ -1000,7 +1000,7 @@ function kt(e) {
1000
1000
  }
1001
1001
  //#endregion
1002
1002
  //#region src/platform-admin-runtime/user/UserOnlineStatusCell.vue
1003
- var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1003
+ var At = /*#__PURE__*/ D(/* @__PURE__ */ K({
1004
1004
  name: "UserOnlineStatusCell",
1005
1005
  __name: "UserOnlineStatusCell",
1006
1006
  props: {
@@ -1008,7 +1008,7 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1008
1008
  column: {}
1009
1009
  },
1010
1010
  setup(e) {
1011
- let t = P(), n = e, r = Dt(), i = z(() => n.record.id == null ? void 0 : String(n.record.id)), a = z(() => r.statusOf(i.value)), o = z(() => {
1011
+ let t = M(), n = e, r = Dt(), i = z(() => n.record.id == null ? void 0 : String(n.record.id)), a = z(() => r.statusOf(i.value)), o = z(() => {
1012
1012
  let e = a.value;
1013
1013
  if (!e) return "-";
1014
1014
  if (e.present) {
@@ -1037,17 +1037,17 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1037
1037
  }, Mt = { key: 0 }, Nt = {
1038
1038
  key: 1,
1039
1039
  class: "user-password-reset"
1040
- }, Pt = { key: 0 }, Ft = /*#__PURE__*/ I(/* @__PURE__ */ K({
1040
+ }, Pt = { key: 0 }, Ft = /*#__PURE__*/ D(/* @__PURE__ */ K({
1041
1041
  name: "UserPasswordDrawer",
1042
1042
  __name: "UserPasswordDrawer",
1043
1043
  props: { context: {} },
1044
1044
  setup(e) {
1045
- let t = P(), n = e, r = J(""), i = J(), a = J(!1), o = z(() => n.context.record?.id == null ? void 0 : String(n.context.record.id));
1045
+ let t = M(), n = e, r = J(""), i = J(), a = J(!1), o = z(() => n.context.record?.id == null ? void 0 : String(n.context.record.id));
1046
1046
  async function s() {
1047
1047
  let e = o.value;
1048
1048
  if (e && !a.value && n.context.module.can("changePassword", e) === !0) {
1049
1049
  if (!r.value) {
1050
- N(t.t("platform.screen.UserPasswordDrawer.enter-a-new-password", "请输入新密码。"), {
1050
+ de(t.t("platform.screen.UserPasswordDrawer.enter-a-new-password", "请输入新密码。"), {
1051
1051
  language: t,
1052
1052
  source: "iam-user-password",
1053
1053
  phase: "validation"
@@ -1060,13 +1060,13 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1060
1060
  method: "POST",
1061
1061
  path: `/iam.user/changePassword/${encodeURIComponent(e)}`,
1062
1062
  body: { password: r.value }
1063
- }), r.value = "", N(t.t("platform.screen.UserPasswordDrawer.password-changed", "密码已修改。"), {
1063
+ }), r.value = "", de(t.t("platform.screen.UserPasswordDrawer.password-changed", "密码已修改。"), {
1064
1064
  language: t,
1065
1065
  source: "iam-user-password",
1066
1066
  phase: "action"
1067
1067
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1068
1068
  } catch (e) {
1069
- F(e, {
1069
+ j(e, {
1070
1070
  language: t,
1071
1071
  source: "iam-user-password",
1072
1072
  phase: "action"
@@ -1086,7 +1086,7 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1086
1086
  path: `/iam.user/resetPassword/${encodeURIComponent(e)}`
1087
1087
  }), n.context.refreshList(), n.context.refreshDetailExtensions();
1088
1088
  } catch (e) {
1089
- F(e, {
1089
+ j(e, {
1090
1090
  language: t,
1091
1091
  source: "iam-user-password",
1092
1092
  phase: "action"
@@ -1098,7 +1098,7 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1098
1098
  }
1099
1099
  return (n, l) => o.value ? (q(), H("section", jt, [e.context.module.can("changePassword", o.value) === !0 ? (q(), H("label", Mt, [
1100
1100
  U("span", null, Y(X(t).t("platform.screen.LoginView.new-password", "新密码")), 1),
1101
- G(X(u), {
1101
+ G(X(E), {
1102
1102
  value: r.value,
1103
1103
  "onUpdate:value": l[0] ||= (e) => r.value = e,
1104
1104
  type: "password",
@@ -1109,7 +1109,7 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1109
1109
  "disabled",
1110
1110
  "placeholder"
1111
1111
  ]),
1112
- G(X(_), {
1112
+ G(X(v), {
1113
1113
  type: "primary",
1114
1114
  loading: a.value,
1115
1115
  onClick: s
@@ -1119,7 +1119,7 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1119
1119
  }, 8, ["loading"])
1120
1120
  ])) : V("v-if", !0), e.context.module.can("resetPassword", o.value) === !0 ? (q(), H("section", Nt, [
1121
1121
  U("p", null, Y(X(t).t("platform.screen.UserPasswordDrawer.generate-a-temporary-password-deliver-it-to-the-user-through", "由系统生成临时密码。请在安全渠道交付给用户,并提醒其尽快修改。")), 1),
1122
- G(X(_), {
1122
+ G(X(v), {
1123
1123
  loading: a.value,
1124
1124
  onClick: c
1125
1125
  }, {
@@ -1127,7 +1127,7 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1127
1127
  _: 1
1128
1128
  }, 8, ["loading"]),
1129
1129
  i.value ? (q(), H("dl", Pt, [U("div", null, [U("dt", null, Y(X(t).t("platform.screen.UserPasswordDrawer.temporary-password", "临时密码")), 1), U("dd", null, Y(i.value.temporaryPassword), 1)]), U("div", null, [U("dt", null, Y(X(t).t("platform.screen.UserPasswordDrawer.expires-at", "失效时间")), 1), U("dd", null, Y(i.value.expiresAt ?? "-"), 1)])])) : V("v-if", !0)
1130
- ])) : V("v-if", !0)])) : (q(), B(X(oe), {
1130
+ ])) : V("v-if", !0)])) : (q(), B(X(re), {
1131
1131
  key: 0,
1132
1132
  title: X(t).t("platform.screen.UserPasswordDrawer.user-not-found", "用户不存在"),
1133
1133
  message: X(t).t("platform.screen.UserPasswordDrawer.reopen-the-user-details-to-manage-the-password", "请重新打开用户详情后再管理密码。")
@@ -1137,79 +1137,79 @@ var At = /*#__PURE__*/ I(/* @__PURE__ */ K({
1137
1137
  //#endregion
1138
1138
  //#region src/platform-admin-runtime/user/useUserSessionRows.ts
1139
1139
  function It(e) {
1140
- let t = e.language ?? l, n = J([]), r = J({}), i = c({ load: async (e) => {
1141
- await Promise.all(e.keys.map((t) => o(t, e.isLatest)));
1140
+ let n = e.language ?? x, r = J([]), i = J({}), a = t({ load: async (e) => {
1141
+ await Promise.all(e.keys.map((t) => s(t, e.isLatest)));
1142
1142
  } });
1143
- function a(e) {
1144
- i.enqueue(e);
1143
+ function o(e) {
1144
+ a.enqueue(e);
1145
1145
  }
1146
- async function o(n, r) {
1147
- if (e.context.can("sessions", n) !== !1) {
1148
- p(n, {
1149
- ...d(n),
1146
+ async function s(t, r) {
1147
+ if (e.context.can("sessions", t) !== !1) {
1148
+ f(t, {
1149
+ ...u(t),
1150
1150
  loading: !0,
1151
1151
  error: void 0,
1152
1152
  failure: void 0
1153
1153
  });
1154
1154
  try {
1155
- await e.context.recordActions(n);
1156
- let t = await e.context.http.request({
1155
+ await e.context.recordActions(t);
1156
+ let n = await e.context.http.request({
1157
1157
  method: "GET",
1158
- path: `/iam.user/${encodeURIComponent(n)}/sessions`
1158
+ path: `/iam.user/${encodeURIComponent(t)}/sessions`
1159
1159
  });
1160
- r(n) && p(n, {
1161
- records: t,
1160
+ r(t) && f(t, {
1161
+ records: n,
1162
1162
  loading: !1
1163
1163
  });
1164
1164
  } catch (i) {
1165
- if (!r(n)) return;
1166
- let a = y(i);
1167
- F(a, {
1168
- language: t,
1165
+ if (!r(t)) return;
1166
+ let a = ne(i);
1167
+ j(a, {
1168
+ language: n,
1169
1169
  source: `${e.source}-sessions`,
1170
1170
  phase: "load"
1171
- }), p(n, {
1172
- ...d(n),
1171
+ }), f(t, {
1172
+ ...u(t),
1173
1173
  loading: !1,
1174
1174
  failure: a
1175
1175
  });
1176
1176
  }
1177
1177
  }
1178
1178
  }
1179
- function s(e, t) {
1180
- let r = String(e.id ?? "");
1181
- r && (n.value = t ? Array.from(/* @__PURE__ */ new Set([...n.value, r])) : n.value.filter((e) => e !== r), t && d(r).records.length === 0 && a(r));
1179
+ function c(e, t) {
1180
+ let n = String(e.id ?? "");
1181
+ n && (r.value = t ? Array.from(/* @__PURE__ */ new Set([...r.value, n])) : r.value.filter((e) => e !== n), t && u(n).records.length === 0 && o(n));
1182
1182
  }
1183
- function u(e) {
1183
+ function l(e) {
1184
1184
  if (e.type !== "iam.user.session.collectionChanged" || e.moduleAlias !== "iam.user") return;
1185
1185
  let t = String(e.recordId ?? "");
1186
- t && n.value.includes(t) && a(t);
1186
+ t && r.value.includes(t) && o(t);
1187
1187
  }
1188
- function d(e) {
1189
- let n = e ? r.value[e] : void 0;
1190
- return n ? n.failure ? {
1191
- ...n,
1192
- error: he(n.failure, t)
1193
- } : n : {
1188
+ function u(e) {
1189
+ let t = e ? i.value[e] : void 0;
1190
+ return t ? t.failure ? {
1191
+ ...t,
1192
+ error: ie(t.failure, n)
1193
+ } : t : {
1194
1194
  records: [],
1195
1195
  loading: !1
1196
1196
  };
1197
1197
  }
1198
- function f() {
1199
- i.reset(), n.value = [], r.value = {};
1198
+ function d() {
1199
+ a.reset(), r.value = [], i.value = {};
1200
1200
  }
1201
- function p(e, t) {
1202
- r.value = {
1203
- ...r.value,
1201
+ function f(e, t) {
1202
+ i.value = {
1203
+ ...i.value,
1204
1204
  [e]: t
1205
1205
  };
1206
1206
  }
1207
1207
  return {
1208
- handleUserRowExpand: s,
1209
- handleUserSessionBusinessEvent: u,
1210
- loadUserSessions: a,
1211
- reset: f,
1212
- userSessionState: d
1208
+ handleUserRowExpand: c,
1209
+ handleUserSessionBusinessEvent: l,
1210
+ loadUserSessions: o,
1211
+ reset: d,
1212
+ userSessionState: u
1213
1213
  };
1214
1214
  }
1215
1215
  //#endregion
@@ -1232,44 +1232,44 @@ var Lt = {
1232
1232
  __name: "UserSessionListExpansion",
1233
1233
  props: { context: {} },
1234
1234
  setup(e) {
1235
- let n = P(), r = e, i = z(() => r.context.record.id == null ? void 0 : String(r.context.record.id)), a = It({
1236
- context: r.context.module,
1235
+ let t = M(), n = e, i = z(() => n.context.record.id == null ? void 0 : String(n.context.record.id)), a = It({
1236
+ context: n.context.module,
1237
1237
  source: "iam-user-list-expansion",
1238
- language: n
1239
- }), o = z(() => a.userSessionState(i.value)), s = z(() => o.value.records.filter((e) => !e.current && r.context.module.can("revokeSession", i.value) === !0)), c = z(() => s.value.length > 1 && r.context.module.can("revokeSessions", i.value) === !0);
1240
- Z([i, () => r.context.expanded], ([e, t]) => {
1238
+ language: t
1239
+ }), o = z(() => a.userSessionState(i.value)), s = z(() => o.value.records.filter((e) => !e.current && n.context.module.can("revokeSession", i.value) === !0)), c = z(() => s.value.length > 1 && n.context.module.can("revokeSessions", i.value) === !0);
1240
+ Z([i, () => n.context.expanded], ([e, t]) => {
1241
1241
  e && a.handleUserRowExpand({ id: e }, t);
1242
1242
  }, { immediate: !0 });
1243
- let l = t((e) => a.handleUserSessionBusinessEvent(e));
1243
+ let l = r((e) => a.handleUserSessionBusinessEvent(e));
1244
1244
  Ne(() => {
1245
1245
  l.unsubscribe(), a.reset();
1246
1246
  });
1247
1247
  async function u(e) {
1248
- let t = i.value;
1249
- t && !e.current && r.context.module.can("revokeSession", t) === !0 && await ce({
1250
- title: n.t("platform.screen.UserSessionListExpansion.sign-out-session", "下线登录会话"),
1251
- content: n.t("platform.screen.UserSessionListExpansion.sign-out-this-login-session", "确认下线该登录会话?"),
1252
- okText: n.t("platform.screen.UserSessionExpandedSubtable.sign-out-session", "下线"),
1248
+ let r = i.value;
1249
+ r && !e.current && n.context.module.can("revokeSession", r) === !0 && await fe({
1250
+ title: t.t("platform.screen.UserSessionListExpansion.sign-out-session", "下线登录会话"),
1251
+ content: t.t("platform.screen.UserSessionListExpansion.sign-out-this-login-session", "确认下线该登录会话?"),
1252
+ okText: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-session", "下线"),
1253
1253
  danger: !0
1254
- }, n) && (await r.context.module.http.request({
1254
+ }, t) && (await n.context.module.http.request({
1255
1255
  method: "POST",
1256
- path: `/iam.user/${encodeURIComponent(t)}/sessions/${encodeURIComponent(e.id)}/revoke`
1257
- }), a.loadUserSessions(t));
1256
+ path: `/iam.user/${encodeURIComponent(r)}/sessions/${encodeURIComponent(e.id)}/revoke`
1257
+ }), a.loadUserSessions(r));
1258
1258
  }
1259
1259
  async function d() {
1260
- let e = i.value, t = s.value.map((e) => e.id);
1261
- e && t.length !== 0 && r.context.module.can("revokeSessions", e) === !0 && await ce({
1262
- title: n.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
1263
- content: n.t("platform.screen.UserSessionListExpansion.sign-out-this-user-s-value-login-sessions", "确认下线该用户的 {value1} 个登录会话?", { value1: t.length }),
1264
- okText: n.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
1260
+ let e = i.value, r = s.value.map((e) => e.id);
1261
+ e && r.length !== 0 && n.context.module.can("revokeSessions", e) === !0 && await fe({
1262
+ title: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
1263
+ content: t.t("platform.screen.UserSessionListExpansion.sign-out-this-user-s-value-login-sessions", "确认下线该用户的 {value1} 个登录会话?", { value1: r.length }),
1264
+ okText: t.t("platform.screen.UserSessionExpandedSubtable.sign-out-all-sessions", "全部下线"),
1265
1265
  danger: !0
1266
- }, n) && (await r.context.module.http.request({
1266
+ }, t) && (await n.context.module.http.request({
1267
1267
  method: "POST",
1268
1268
  path: `/iam.user/${encodeURIComponent(e)}/sessions/revoke`,
1269
- body: { sessionIds: t }
1269
+ body: { sessionIds: r }
1270
1270
  }), a.loadUserSessions(e));
1271
1271
  }
1272
- return (t, n) => (q(), B(X(S), {
1272
+ return (t, n) => (q(), B(X(g), {
1273
1273
  embedded: "",
1274
1274
  sessions: o.value.records,
1275
1275
  loading: o.value.loading,
@@ -1388,7 +1388,7 @@ function Gt(e) {
1388
1388
  }
1389
1389
  function Kt(e, t) {
1390
1390
  let n = Jt(e), r = n.source;
1391
- if (!A(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !le(r, t)) return;
1391
+ if (!ae(r) || r.sourceKind !== "CODE" || !r.sourceId.startsWith("iam.role.scope.") || !l(r, t)) return;
1392
1392
  let i = {};
1393
1393
  for (let [e, t] of Object.entries(Jt(n.languages))) {
1394
1394
  let n = Jt(t);
@@ -1441,25 +1441,25 @@ var nn = /* @__PURE__ */ K({
1441
1441
  __name: "RoleScopeTree",
1442
1442
  props: { context: {} },
1443
1443
  setup(e) {
1444
- let t = P(), n = e, r = Bt(j()), i = J(), a = J(""), o = J(!1), s = J([]), c = J([]), l = J(0), u = J(/* @__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 = D({
1444
+ let t = M(), n = e, r = Bt(N()), i = J(), a = J(""), o = J(!1), s = J([]), c = J([]), l = J(0), u = J(/* @__PURE__ */ new Map()), d = z(() => n.context.selectionKey), p = z(() => i.value?.navigations.some((e) => e.level === "TENANT") === !0), m = z(() => i.value?.navigations.length !== 0), h = z(() => p.value ? t.t("platform.screen.ModulePageHostRuntime.tenant", "租户") : t.t("platform.user-picker.axis.organization", "机构")), g = S({
1445
1445
  nodes: () => s.value,
1446
- loader: () => k,
1446
+ loader: () => O,
1447
1447
  version: () => l.value
1448
- }), g = z(() => _(h.nodes.value));
1449
- function _(e) {
1448
+ }), _ = z(() => v(g.nodes.value));
1449
+ function v(e) {
1450
1450
  return e.map((e) => ({
1451
1451
  ...e,
1452
- title: O(e.title, u.value.get(e.key)?.labelText, t),
1453
- ...e.children ? { children: _(e.children) } : {}
1452
+ title: F(e.title, u.value.get(e.key)?.labelText, t),
1453
+ ...e.children ? { children: v(e.children) } : {}
1454
1454
  }));
1455
1455
  }
1456
- let v = h.states, y = 0, b;
1457
- je(() => void S()), Ae(() => {
1458
- y += 1, b && clearTimeout(b);
1456
+ let y = g.states, b = 0, x;
1457
+ je(() => void C()), Ae(() => {
1458
+ b += 1, x && clearTimeout(x);
1459
1459
  }), Z(a, () => {
1460
- p.value && (b && clearTimeout(b), b = setTimeout(() => void C(), 240));
1460
+ m.value && (x && clearTimeout(x), x = setTimeout(() => void T(), 240));
1461
1461
  });
1462
- async function S() {
1462
+ async function C() {
1463
1463
  o.value = !0;
1464
1464
  try {
1465
1465
  i.value = await r.descriptor();
@@ -1472,9 +1472,9 @@ var nn = /* @__PURE__ */ K({
1472
1472
  key: e.selectionKey,
1473
1473
  label: e.label,
1474
1474
  labelText: e.labelText
1475
- }), await ee();
1475
+ }), await w();
1476
1476
  } catch (e) {
1477
- F(e, {
1477
+ j(e, {
1478
1478
  language: t,
1479
1479
  source: "role-scope-tree",
1480
1480
  phase: "load"
@@ -1483,34 +1483,34 @@ var nn = /* @__PURE__ */ K({
1483
1483
  o.value = !1;
1484
1484
  }
1485
1485
  }
1486
- async function ee(e = {}) {
1486
+ async function w(e = {}) {
1487
1487
  let n = i.value;
1488
1488
  if (!n) return;
1489
- let r = ++y;
1489
+ let r = ++b;
1490
1490
  if (!e.append) {
1491
1491
  c.value = [], l.value += 1, o.value = !0;
1492
1492
  try {
1493
- let e = w(n);
1494
- if (r !== y) return;
1493
+ let e = E(n);
1494
+ if (r !== b) return;
1495
1495
  u.value = /* @__PURE__ */ new Map(), A(e), s.value = e.map((e) => e.ui);
1496
1496
  } catch (e) {
1497
- if (r !== y) return;
1498
- s.value = [], F(e, {
1497
+ if (r !== b) return;
1498
+ s.value = [], j(e, {
1499
1499
  language: t,
1500
1500
  source: "role-scope-tree",
1501
1501
  phase: "load"
1502
1502
  });
1503
1503
  } finally {
1504
- r === y && (o.value = !1);
1504
+ r === b && (o.value = !1);
1505
1505
  }
1506
1506
  }
1507
1507
  }
1508
- async function C() {
1509
- if (await ee(), !a.value.trim()) return;
1508
+ async function T() {
1509
+ if (await w(), !a.value.trim()) return;
1510
1510
  let e = (i.value?.navigations ?? []).map((e) => `navigation:${e.navigationKey}`);
1511
- c.value = e, await De(), await Promise.all(e.map((e) => h.request(e, "refresh")));
1511
+ c.value = e, await De(), await Promise.all(e.map((e) => g.request(e, "refresh")));
1512
1512
  }
1513
- function w(e) {
1513
+ function E(e) {
1514
1514
  return [
1515
1515
  ...e.directSelections.map((e) => ({
1516
1516
  ui: {
@@ -1525,11 +1525,11 @@ var nn = /* @__PURE__ */ K({
1525
1525
  labelText: e.labelText
1526
1526
  }
1527
1527
  })),
1528
- ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => T(e)),
1529
- ...e.navigations.filter((e) => e.level === "TENANT").map((e) => T(e))
1528
+ ...e.navigations.filter((e) => e.level === "ORGANIZATION").map((e) => ee(e)),
1529
+ ...e.navigations.filter((e) => e.level === "TENANT").map((e) => ee(e))
1530
1530
  ];
1531
1531
  }
1532
- function T(e) {
1532
+ function ee(e) {
1533
1533
  return {
1534
1534
  ui: {
1535
1535
  key: `navigation:${e.navigationKey}`,
@@ -1543,8 +1543,8 @@ var nn = /* @__PURE__ */ K({
1543
1543
  }
1544
1544
  };
1545
1545
  }
1546
- function E(e, t, n) {
1547
- let r = te(e, t, n);
1546
+ function te(e, t, n) {
1547
+ let r = D(e, t, n);
1548
1548
  return {
1549
1549
  ui: {
1550
1550
  key: e.selectionKey,
@@ -1560,7 +1560,7 @@ var nn = /* @__PURE__ */ K({
1560
1560
  children: r
1561
1561
  };
1562
1562
  }
1563
- function te(e, t, n) {
1563
+ function D(e, t, n) {
1564
1564
  return t === "TENANT" ? {
1565
1565
  navigationKey: e.selectionKey,
1566
1566
  level: "ORGANIZATION"
@@ -1570,7 +1570,7 @@ var nn = /* @__PURE__ */ K({
1570
1570
  parentId: e.id
1571
1571
  } : void 0;
1572
1572
  }
1573
- async function k(e, n) {
1573
+ async function O(e, n) {
1574
1574
  let i = u.value.get(e.key);
1575
1575
  if (!i?.children) throw Error(t.t("platform.screen.RoleScopeTree.the-role-ownership-scope-is-no-longer-available", "角色归属范围已失效"));
1576
1576
  try {
@@ -1580,7 +1580,7 @@ var nn = /* @__PURE__ */ K({
1580
1580
  pageNum: n.reason === "load-more" ? Number(n.cursor) : 1
1581
1581
  });
1582
1582
  n.signal.throwIfAborted();
1583
- let t = e.records.map((e) => E(e, i.children.level, i.children.navigationKey));
1583
+ let t = e.records.map((e) => te(e, i.children.level, i.children.navigationKey));
1584
1584
  return A(t), {
1585
1585
  mode: n.reason === "load-more" ? "append" : "replace",
1586
1586
  nodes: t.map((e) => e.ui),
@@ -1588,7 +1588,7 @@ var nn = /* @__PURE__ */ K({
1588
1588
  nextCursor: e.nextPage == null ? void 0 : String(e.nextPage)
1589
1589
  };
1590
1590
  } catch (e) {
1591
- throw n.signal.aborted || F(e, {
1591
+ throw n.signal.aborted || j(e, {
1592
1592
  language: t,
1593
1593
  source: "role-scope-tree",
1594
1594
  phase: "load"
@@ -1618,33 +1618,33 @@ var nn = /* @__PURE__ */ K({
1618
1618
  labelText: e.labelText
1619
1619
  });
1620
1620
  }
1621
- return (e, n) => (q(), B(X(x), {
1621
+ return (e, n) => (q(), B(X(k), {
1622
1622
  class: "role-scope-tree",
1623
- title: m.value,
1623
+ title: h.value,
1624
1624
  "refresh-title": X(t).t("platform.screen.RoleScopeTree.refresh-role-ownership-scopes", "刷新角色归属范围"),
1625
1625
  "search-keyword": a.value,
1626
1626
  "search-placeholder": X(t).t("platform.screen.RoleScopeTree.search-names-codes-or-ids", "搜索名称、编码或标识"),
1627
- searchable: p.value,
1628
- onRefresh: ee,
1627
+ searchable: m.value,
1628
+ onRefresh: w,
1629
1629
  "onUpdate:searchKeyword": n[3] ||= (e) => a.value = e
1630
1630
  }, {
1631
- default: Q(() => [o.value ? (q(), B(X(de), {
1631
+ default: Q(() => [o.value ? (q(), B(X(me), {
1632
1632
  key: 0,
1633
1633
  tip: X(t).t("platform.screen.RoleScopeTree.loading-role-ownership-scopes", "加载角色归属范围")
1634
- }, null, 8, ["tip"])) : (q(), B(X(pe), {
1634
+ }, null, 8, ["tip"])) : (q(), B(X(f), {
1635
1635
  key: 1,
1636
1636
  "expanded-keys": c.value,
1637
1637
  "onUpdate:expandedKeys": n[0] ||= (e) => c.value = e,
1638
- nodes: g.value,
1638
+ nodes: _.value,
1639
1639
  "selected-key": d.value,
1640
1640
  "reload-key": l.value,
1641
1641
  "load-strategy": "controlled",
1642
1642
  "reload-on-reexpand": "",
1643
- "branch-states": X(v),
1644
- onLoadRequest: n[1] ||= (e) => X(h).request(e.node.key, e.reason, X(h).stateOf(e.node.key).status === "error"),
1643
+ "branch-states": X(y),
1644
+ onLoadRequest: n[1] ||= (e) => X(g).request(e.node.key, e.reason, X(g).stateOf(e.node.key).status === "error"),
1645
1645
  onSelect: ne,
1646
1646
  onDeselect: ie,
1647
- onUnloadChildren: n[2] ||= (e) => X(h).release(e.key)
1647
+ onUnloadChildren: n[2] ||= (e) => X(g).release(e.key)
1648
1648
  }, null, 8, [
1649
1649
  "expanded-keys",
1650
1650
  "nodes",
@@ -1669,7 +1669,7 @@ var nn = /* @__PURE__ */ K({
1669
1669
  column: {}
1670
1670
  },
1671
1671
  setup(e) {
1672
- let t = P(), n = e, r = z(() => {
1672
+ let t = M(), n = e, r = z(() => {
1673
1673
  let e = String(n.record[n.column?.key ?? ""] ?? "");
1674
1674
  return {
1675
1675
  account: t.t("platform.screen.RoleManagementView.account-role", "账号角色"),
@@ -1807,7 +1807,7 @@ var on = {
1807
1807
  }, ln = { class: "role-account-grant-search" }, un = {
1808
1808
  key: 0,
1809
1809
  class: "role-account-grant-selected"
1810
- }, dn = { class: "role-account-grant-selected-title" }, fn = { class: "role-account-grant-selected-list" }, pn = ["disabled", "onClick"], mn = 20, hn = /*#__PURE__*/ I(/* @__PURE__ */ K({
1810
+ }, dn = { class: "role-account-grant-selected-title" }, fn = { class: "role-account-grant-selected-list" }, pn = ["disabled", "onClick"], mn = 20, hn = /*#__PURE__*/ D(/* @__PURE__ */ K({
1811
1811
  name: "RoleAccountGrantDrawer",
1812
1812
  __name: "RoleAccountGrantDrawer",
1813
1813
  props: {
@@ -1820,17 +1820,17 @@ var on = {
1820
1820
  },
1821
1821
  emits: ["close", "saved"],
1822
1822
  setup(e, { emit: t }) {
1823
- let n = P(), r = e, i = t, a = J([]), o = J({}), s = J([]), c = J(/* @__PURE__ */ new Set()), l = J(/* @__PURE__ */ new Set()), d = J(""), f = J(""), p = J(1), m = J(0), h = J(!1), g = J(!1), v = J(!1), y = J(!1), b = J(), x = z(() => an(r.context.http)), S = se({ moduleAlias: "iam.tenant" }), ee = z(() => r.role?.id), w = z(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: je(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), T = z(() => r.embedded ? "section" : C), E = z(() => r.embedded ? {} : {
1823
+ let n = M(), r = e, i = t, a = J([]), o = J({}), s = J([]), c = J(/* @__PURE__ */ new Set()), l = J(/* @__PURE__ */ new Set()), d = J(""), f = J(""), p = J(1), m = J(0), h = J(!1), g = J(!1), _ = J(!1), y = J(!1), b = J(), x = z(() => an(r.context.http)), S = u({ moduleAlias: "iam.tenant" }), w = z(() => r.role?.id), T = z(() => r.role ? n.t("platform.screen.RoleAccountGrantDrawer.assign-users-value", "绑定用户 - {value1}", { value1: je(r.role) }) : n.t("platform.screen.RoleManagementView.assign-to-users", "绑定用户")), ee = z(() => r.embedded ? "section" : P), te = z(() => r.embedded ? {} : {
1824
1824
  open: r.open,
1825
- title: w.value,
1825
+ title: T.value,
1826
1826
  renderMode: r.container ? "inline" : "portal",
1827
1827
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
1828
1828
  onClose: ye
1829
- }), te = z(() => r.role?.ownerScopeType === "platform"), D = z(() => b.value?.id), O = z(() => !te.value || !!D.value), k = z(() => S), A = z(() => {
1829
+ }), D = z(() => r.role?.ownerScopeType === "platform"), O = z(() => b.value?.id), k = z(() => !D.value || !!O.value), A = z(() => S), ne = z(() => {
1830
1830
  let e = /* @__PURE__ */ new Map();
1831
1831
  for (let t of a.value) t.userId && e.set(t.userId, t);
1832
1832
  return e;
1833
- }), ne = z(() => s.value.filter((e) => e.id).map((e) => ({
1833
+ }), ie = z(() => s.value.filter((e) => e.id).map((e) => ({
1834
1834
  id: e.id,
1835
1835
  username: De(e),
1836
1836
  employeeNo: e.employeeNo ?? "",
@@ -1838,7 +1838,7 @@ var on = {
1838
1838
  organizationTitle: e.organizationTitle ?? e.organizationId ?? "",
1839
1839
  departmentTitle: e.departmentTitle ?? e.departmentId ?? "",
1840
1840
  boundTitle: l.value.has(e.id) ? n.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : n.t("platform.screen.MetadataGovernanceSurface.unbound", "未绑定")
1841
- }))), ie = z(() => [...c.value].map((e) => o.value[e] ?? Te(e))), j = z(() => [...c.value].filter((e) => !l.value.has(e))), ce = z(() => [...l.value].filter((e) => !c.value.has(e))), N = z(() => j.value.length > 0 || ce.value.length > 0), I = {
1841
+ }))), ae = z(() => [...c.value].map((e) => o.value[e] ?? Te(e))), ce = z(() => [...c.value].filter((e) => !l.value.has(e))), N = z(() => [...l.value].filter((e) => !c.value.has(e))), le = z(() => ce.value.length > 0 || N.value.length > 0), F = {
1842
1842
  rowKey: "id",
1843
1843
  columns: [
1844
1844
  {
@@ -1872,14 +1872,14 @@ var on = {
1872
1872
  width: 90
1873
1873
  }
1874
1874
  ]
1875
- }, le = z(() => ({
1875
+ }, ue = z(() => ({
1876
1876
  selectedRowKeys: [...c.value],
1877
1877
  preserveSelectedRowKeys: !0,
1878
- disabledOf: () => v.value,
1878
+ disabledOf: () => _.value,
1879
1879
  onChange: (e) => {
1880
1880
  c.value = new Set(e.map((e) => String(e)));
1881
1881
  }
1882
- })), fe = z(() => ({
1882
+ })), de = z(() => ({
1883
1883
  current: p.value,
1884
1884
  total: m.value,
1885
1885
  pageSize: mn,
@@ -1888,65 +1888,65 @@ var on = {
1888
1888
  onChange: (e) => void ge(e)
1889
1889
  }));
1890
1890
  Z(() => [r.open, r.role?.id], ([e]) => {
1891
- e ? he() : be();
1891
+ e ? I() : be();
1892
1892
  }, { immediate: !0 }), Z([
1893
1893
  () => r.embedded,
1894
1894
  () => r.drawerContext,
1895
1895
  c,
1896
- N,
1897
- O,
1898
- j,
1896
+ le,
1897
+ k,
1899
1898
  ce,
1900
- v,
1899
+ N,
1900
+ _,
1901
1901
  h
1902
- ], pe, { immediate: !0 }), Ae(() => r.drawerContext?.setOperation(void 0));
1903
- function pe() {
1902
+ ], fe, { immediate: !0 }), Ae(() => r.drawerContext?.setOperation(void 0));
1903
+ function fe() {
1904
1904
  let e = r.drawerContext;
1905
1905
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
1906
1906
  value1: je(r.role ?? {}),
1907
1907
  value2: Me(r.role)
1908
1908
  })), e.setOperation({
1909
- summary: me(),
1909
+ summary: pe(),
1910
1910
  actions: [{
1911
1911
  key: "cancel-account-role-grants",
1912
1912
  label: n.t("platform.action.cancel", "取消"),
1913
- disabled: v.value || h.value,
1913
+ disabled: _.value || h.value,
1914
1914
  run: ye
1915
1915
  }, {
1916
1916
  key: "save-account-role-grants",
1917
1917
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
1918
1918
  emphasis: "primary",
1919
- disabled: h.value || !O.value || !N.value,
1920
- loading: v.value,
1919
+ disabled: h.value || !k.value || !le.value,
1920
+ loading: _.value,
1921
1921
  run: () => void ve()
1922
1922
  }]
1923
1923
  }));
1924
1924
  }
1925
- function me() {
1926
- return O.value ? N.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
1925
+ function pe() {
1926
+ return k.value ? le.value ? n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected-value-added-value-removed", "已选 {value1} 个用户 · 新增 {value2} · 移除 {value3}", {
1927
1927
  value1: c.value.size,
1928
- value2: j.value.length,
1929
- value3: ce.value.length
1928
+ value2: ce.value.length,
1929
+ value3: N.value.length
1930
1930
  }) : n.t("platform.screen.RoleAccountGrantDrawer.value-users-selected", "已选 {value1} 个用户", { value1: c.value.size }) : n.t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant", "请选择目标租户");
1931
1931
  }
1932
- async function he() {
1933
- let e = ee.value;
1932
+ async function I() {
1933
+ let e = w.value;
1934
1934
  if (!e) {
1935
1935
  be();
1936
1936
  return;
1937
1937
  }
1938
- if (!O.value) {
1938
+ if (!k.value) {
1939
1939
  xe();
1940
1940
  return;
1941
1941
  }
1942
1942
  h.value = !0, y.value = !1;
1943
1943
  try {
1944
- let t = await x.value.accountRoleGrants(e, D.value);
1944
+ let t = await x.value.accountRoleGrants(e, O.value);
1945
1945
  a.value = t;
1946
1946
  let n = new Set(t.map((e) => e.userId).filter((e) => !!e));
1947
1947
  l.value = n, c.value = new Set(n), o.value = K([...t.map((e) => Te(e.userId)).filter((e) => !!e)]), await ge(1);
1948
1948
  } catch (e) {
1949
- y.value = !0, F(e, {
1949
+ y.value = !0, j(e, {
1950
1950
  language: n,
1951
1951
  source: "role-account-grants",
1952
1952
  phase: "load"
@@ -1956,12 +1956,12 @@ var on = {
1956
1956
  }
1957
1957
  }
1958
1958
  async function ge(e) {
1959
- let t = ee.value;
1960
- if (t && O.value) {
1959
+ let t = w.value;
1960
+ if (t && k.value) {
1961
1961
  g.value = !0;
1962
1962
  try {
1963
1963
  let n = await x.value.accountRoleCandidates(t, {
1964
- targetTenantId: D.value,
1964
+ targetTenantId: O.value,
1965
1965
  keyword: f.value,
1966
1966
  enabledOnly: !0,
1967
1967
  page: {
@@ -1974,7 +1974,7 @@ var on = {
1974
1974
  ...K(n.records)
1975
1975
  }, p.value = n.pageNum, m.value = n.total;
1976
1976
  } catch (e) {
1977
- F(e, {
1977
+ j(e, {
1978
1978
  language: n,
1979
1979
  source: "role-account-grants",
1980
1980
  phase: "load"
@@ -1992,23 +1992,23 @@ var on = {
1992
1992
  t ? n.add(e) : n.delete(e), c.value = n;
1993
1993
  }
1994
1994
  async function ve() {
1995
- let e = ee.value;
1996
- if (e && O.value) {
1997
- if (!N.value) {
1995
+ let e = w.value;
1996
+ if (e && k.value) {
1997
+ if (!le.value) {
1998
1998
  i("close");
1999
1999
  return;
2000
2000
  }
2001
- v.value = !0;
2001
+ _.value = !0;
2002
2002
  try {
2003
- for (let t of j.value) await x.value.grantAccountRole(e, {
2003
+ for (let t of ce.value) await x.value.grantAccountRole(e, {
2004
2004
  userId: t,
2005
- targetTenantId: D.value
2005
+ targetTenantId: O.value
2006
2006
  });
2007
- for (let t of ce.value) {
2008
- let n = A.value.get(t)?.id;
2009
- n && await x.value.deleteAccountRoleGrant(e, n, D.value);
2007
+ for (let t of N.value) {
2008
+ let n = ne.value.get(t)?.id;
2009
+ n && await x.value.deleteAccountRoleGrant(e, n, O.value);
2010
2010
  }
2011
- await ue({
2011
+ await se({
2012
2012
  success: !0,
2013
2013
  message: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2014
2014
  }, {
@@ -2018,24 +2018,24 @@ var on = {
2018
2018
  fallbackMessage: n.t("platform.screen.RoleAccountGrantDrawer.user-assignments-saved", "用户绑定已保存")
2019
2019
  }), i("saved"), i("close");
2020
2020
  } catch (e) {
2021
- F(e, {
2021
+ j(e, {
2022
2022
  language: n,
2023
2023
  source: "role-account-grants",
2024
2024
  phase: "action"
2025
2025
  });
2026
2026
  } finally {
2027
- v.value = !1;
2027
+ _.value = !1;
2028
2028
  }
2029
2029
  }
2030
2030
  }
2031
2031
  function ye() {
2032
- v.value || i("close");
2032
+ _.value || i("close");
2033
2033
  }
2034
2034
  function be() {
2035
2035
  b.value = void 0, xe();
2036
2036
  }
2037
2037
  function xe() {
2038
- a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), d.value = "", f.value = "", p.value = 1, m.value = 0, h.value = !1, g.value = !1, v.value = !1, y.value = !1;
2038
+ a.value = [], o.value = {}, s.value = [], c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), d.value = "", f.value = "", p.value = 1, m.value = 0, h.value = !1, g.value = !1, _.value = !1, y.value = !1;
2039
2039
  }
2040
2040
  async function Se(e) {
2041
2041
  if (!e) {
@@ -2046,7 +2046,7 @@ var on = {
2046
2046
  b.value = t ?? {
2047
2047
  id: e,
2048
2048
  title: e
2049
- }, await he();
2049
+ }, await I();
2050
2050
  }
2051
2051
  function we(e) {
2052
2052
  _e(e, !1);
@@ -2069,46 +2069,46 @@ var on = {
2069
2069
  return e.employeeTitle && e.employeeNo ? `${e.employeeTitle} / ${e.employeeNo}` : e.employeeTitle ?? e.employeeNo ?? e.employeeId ?? e.id;
2070
2070
  }
2071
2071
  function je(e) {
2072
- return String(re(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2072
+ return String(oe(e, "title", n) ?? e.id ?? n.t("platform.screen.RoleManagementView.role", "角色"));
2073
2073
  }
2074
2074
  function Me(e) {
2075
2075
  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", "租户范围");
2076
2076
  }
2077
- return (t, r) => (q(), B(Ie(T.value), Ee(E.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Ce({
2078
- default: Q(() => [h.value ? (q(), B(X(de), {
2077
+ return (t, r) => (q(), B(Ie(ee.value), Ee(te.value, { class: { "role-account-grant-drawer-surface": e.embedded } }), Ce({
2078
+ default: Q(() => [h.value ? (q(), B(X(me), {
2079
2079
  key: 0,
2080
2080
  class: "role-account-grant-drawer-state",
2081
2081
  tip: X(n).t("platform.screen.RoleAccountGrantDrawer.loading-users", "加载用户")
2082
- }, null, 8, ["tip"])) : y.value ? (q(), H("div", on, [G(X(oe), {
2082
+ }, null, 8, ["tip"])) : y.value ? (q(), H("div", on, [G(X(re), {
2083
2083
  title: X(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-users", "用户加载失败"),
2084
2084
  message: X(n).t("platform.screen.RoleAccountGrantDrawer.failed-to-load-user-assignments-for-this-role", "无法加载当前角色的用户绑定")
2085
- }, null, 8, ["title", "message"]), G(X(_), {
2085
+ }, null, 8, ["title", "message"]), G(X(v), {
2086
2086
  type: "primary",
2087
2087
  "icon-name": "reload",
2088
- onClick: he
2088
+ onClick: I
2089
2089
  }, {
2090
2090
  default: Q(() => [W(Y(X(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
2091
2091
  _: 1
2092
2092
  })])) : (q(), H("section", {
2093
2093
  key: 2,
2094
- class: Oe(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": te.value }])
2095
- }, [te.value ? (q(), H("label", sn, [U("span", null, Y(X(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), G(X(ae), {
2096
- context: k.value,
2097
- value: D.value,
2094
+ class: Oe(["role-account-grant-drawer-body", { "role-account-grant-drawer-body--target-tenant": D.value }])
2095
+ }, [D.value ? (q(), H("label", sn, [U("span", null, Y(X(n).t("platform.screen.RoleAccountGrantDrawer.target-tenant", "目标租户")), 1), G(X(C), {
2096
+ context: A.value,
2097
+ value: O.value,
2098
2098
  mode: "list",
2099
2099
  placeholder: X(n).t("platform.screen.RoleAccountGrantDrawer.select-the-target-tenant-for-this-role-assignment", "请选择角色下发的目标租户"),
2100
- disabled: v.value || h.value,
2100
+ disabled: _.value || h.value,
2101
2101
  "onUpdate:value": Se
2102
2102
  }, null, 8, [
2103
2103
  "context",
2104
2104
  "value",
2105
2105
  "placeholder",
2106
2106
  "disabled"
2107
- ])])) : V("v-if", !0), O.value ? (q(), H(R, { key: 2 }, [
2108
- U("div", ln, [G(X(u), {
2107
+ ])])) : V("v-if", !0), k.value ? (q(), H(R, { key: 2 }, [
2108
+ U("div", ln, [G(X(E), {
2109
2109
  value: d.value,
2110
2110
  "allow-clear": "",
2111
- disabled: v.value,
2111
+ disabled: _.value,
2112
2112
  placeholder: X(n).t("platform.screen.RoleAccountGrantDrawer.search-user-accounts", "搜索用户账号"),
2113
2113
  "onUpdate:value": r[0] ||= (e) => d.value = e,
2114
2114
  onKeydown: ze(L, ["enter"])
@@ -2116,22 +2116,22 @@ var on = {
2116
2116
  "value",
2117
2117
  "disabled",
2118
2118
  "placeholder"
2119
- ]), G(X(_), {
2119
+ ]), G(X(v), {
2120
2120
  "icon-name": "search",
2121
- disabled: v.value,
2121
+ disabled: _.value,
2122
2122
  onClick: L
2123
2123
  }, {
2124
2124
  default: Q(() => [W(Y(X(n).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
2125
2125
  _: 1
2126
2126
  }, 8, ["disabled"])]),
2127
- G(X(M), {
2127
+ G(X(he), {
2128
2128
  class: "role-account-grant-table",
2129
2129
  size: "middle",
2130
- contract: I,
2131
- rows: ne.value,
2130
+ contract: F,
2131
+ rows: ie.value,
2132
2132
  loading: g.value,
2133
- pagination: fe.value,
2134
- selection: le.value,
2133
+ pagination: de.value,
2134
+ selection: ue.value,
2135
2135
  "fill-height": ""
2136
2136
  }, null, 8, [
2137
2137
  "rows",
@@ -2139,26 +2139,26 @@ var on = {
2139
2139
  "pagination",
2140
2140
  "selection"
2141
2141
  ]),
2142
- ie.value.length > 0 ? (q(), H("section", un, [U("div", dn, [U("strong", null, Y(X(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), U("span", null, Y(ie.value.length), 1)]), U("div", fn, [(q(!0), H(R, null, Pe(ie.value, (e) => (q(), H("button", {
2142
+ ae.value.length > 0 ? (q(), H("section", un, [U("div", dn, [U("strong", null, Y(X(n).t("platform.screen.RoleAccountGrantDrawer.selected-users", "已选用户")), 1), U("span", null, Y(ae.value.length), 1)]), U("div", fn, [(q(!0), H(R, null, Pe(ae.value, (e) => (q(), H("button", {
2143
2143
  key: e.id,
2144
2144
  type: "button",
2145
- disabled: v.value,
2145
+ disabled: _.value,
2146
2146
  onClick: (t) => we(e.id)
2147
2147
  }, [U("span", null, Y(De(e)), 1), U("small", null, Y(ke(e)), 1)], 8, pn))), 128))])])) : V("v-if", !0)
2148
2148
  ], 64)) : (q(), H("div", cn, Y(X(n).t("platform.screen.RoleAccountGrantDrawer.select-a-target-tenant-for-a-platform-shared-role-before", "平台共享角色需要先选择目标租户,再加载可绑定账号。")), 1))], 2))]),
2149
2149
  _: 2
2150
2150
  }, [e.embedded ? void 0 : {
2151
2151
  name: "operation",
2152
- fn: Q(() => [G(X(_), {
2153
- disabled: v.value || h.value,
2152
+ fn: Q(() => [G(X(v), {
2153
+ disabled: _.value || h.value,
2154
2154
  onClick: ye
2155
2155
  }, {
2156
2156
  default: Q(() => [W(Y(X(n).t("platform.action.cancel", "取消")), 1)]),
2157
2157
  _: 1
2158
- }, 8, ["disabled"]), G(X(_), {
2158
+ }, 8, ["disabled"]), G(X(v), {
2159
2159
  type: "primary",
2160
- loading: v.value,
2161
- disabled: h.value || !N.value,
2160
+ loading: _.value,
2161
+ disabled: h.value || !le.value,
2162
2162
  onClick: ve
2163
2163
  }, {
2164
2164
  default: Q(() => [W(Y(X(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
@@ -2189,7 +2189,7 @@ var on = {
2189
2189
  "onSaved"
2190
2190
  ]));
2191
2191
  }
2192
- }), _n = /*#__PURE__*/ I(/* @__PURE__ */ K({
2192
+ }), _n = /*#__PURE__*/ D(/* @__PURE__ */ K({
2193
2193
  name: "EmployeeEmploymentTable",
2194
2194
  __name: "EmployeeEmploymentTable",
2195
2195
  props: {
@@ -2214,7 +2214,7 @@ var on = {
2214
2214
  },
2215
2215
  emits: ["update:selectedIds"],
2216
2216
  setup(e, { emit: t }) {
2217
- let n = P(), r = e, i = t, a = J([]), o = z(() => [
2217
+ let n = M(), r = e, i = t, a = J([]), o = z(() => [
2218
2218
  {
2219
2219
  key: "title",
2220
2220
  title: n.t("platform.screen.EmployeePicker.employee", "职员"),
@@ -2302,15 +2302,15 @@ var on = {
2302
2302
  for (let e of t) n.add(String(e));
2303
2303
  i("update:selectedIds", n);
2304
2304
  }
2305
- function g(e, t) {
2305
+ function h(e, t) {
2306
2306
  let n = e.employeeId;
2307
2307
  a.value = t ? Array.from(/* @__PURE__ */ new Set([...a.value, n])) : a.value.filter((e) => e !== n);
2308
2308
  }
2309
- function _(e) {
2309
+ function g(e) {
2310
2310
  let t = e.employeeId;
2311
- g(e, !a.value.includes(t));
2311
+ h(e, !a.value.includes(t));
2312
2312
  }
2313
- return (t, r) => (q(), B(X(E), {
2313
+ return (t, r) => (q(), B(X(T), {
2314
2314
  class: "employee-employment-table",
2315
2315
  columns: o.value,
2316
2316
  rows: l.value,
@@ -2320,12 +2320,12 @@ var on = {
2320
2320
  "clickable-rows": "",
2321
2321
  "horizontal-scroll": "",
2322
2322
  "fill-height": e.fillHeight,
2323
- onRowExpand: g,
2324
- onRowDblclick: _
2323
+ onRowExpand: h,
2324
+ onRowDblclick: g
2325
2325
  }, {
2326
2326
  cell: Q(({ column: e, record: t }) => [W(Y(u(e, t)), 1)]),
2327
- expandedRow: Q(({ record: e }) => [G(X(h), { title: X(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息") }, {
2328
- default: Q(() => [G(X(E), {
2327
+ expandedRow: Q(({ record: e }) => [G(X(w), { title: X(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息") }, {
2328
+ default: Q(() => [G(X(T), {
2329
2329
  columns: s.value,
2330
2330
  rows: e.positions,
2331
2331
  "row-key": "id",
@@ -2359,7 +2359,7 @@ var on = {
2359
2359
  }, bn = {
2360
2360
  key: 0,
2361
2361
  class: "role-employment-grant-selected"
2362
- }, xn = { class: "role-employment-grant-selected-title" }, Sn = { class: "role-employment-grant-selected-list" }, Cn = ["disabled", "onClick"], wn = /*#__PURE__*/ I(/* @__PURE__ */ K({
2362
+ }, xn = { class: "role-employment-grant-selected-title" }, Sn = { class: "role-employment-grant-selected-list" }, Cn = ["disabled", "onClick"], wn = /*#__PURE__*/ D(/* @__PURE__ */ K({
2363
2363
  name: "RoleEmploymentGrantDrawer",
2364
2364
  __name: "RoleEmploymentGrantDrawer",
2365
2365
  props: {
@@ -2372,65 +2372,65 @@ var on = {
2372
2372
  },
2373
2373
  emits: ["close", "saved"],
2374
2374
  setup(e, { emit: t }) {
2375
- let n = P(), r = e, i = t, a = J([]), o = J([]), s = J({}), c = J(/* @__PURE__ */ new Set()), l = J(/* @__PURE__ */ new Set()), d = J(!1), f = J(!1), p = J(!1), m = J(!1), h = J(1), g = J(0), v = J(""), y = z(() => r.role?.id), b = z(() => an(r.context.http)), x = z(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), S = z(() => r.embedded ? "section" : C), ee = z(() => r.embedded ? {} : {
2375
+ let n = M(), r = e, i = t, a = J([]), o = J([]), s = J({}), c = J(/* @__PURE__ */ new Set()), l = J(/* @__PURE__ */ new Set()), u = J(!1), d = J(!1), f = J(!1), p = J(!1), m = J(1), h = J(0), g = J(""), _ = z(() => r.role?.id), y = z(() => an(r.context.http)), b = z(() => n.t("platform.screen.RoleEmploymentGrantDrawer.assign-positions-value", "绑定任职 - {value1}", { value1: r.role?.title ?? r.role?.id ?? "" })), x = z(() => r.embedded ? "section" : P), S = z(() => r.embedded ? {} : {
2376
2376
  open: r.open,
2377
- title: x.value,
2377
+ title: b.value,
2378
2378
  renderMode: r.container ? "inline" : "portal",
2379
2379
  closeTitle: n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"),
2380
- onClose: () => !p.value && i("close")
2381
- }), w = z(() => [...c.value].filter((e) => !l.value.has(e))), T = z(() => [...l.value].filter((e) => !c.value.has(e))), E = z(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), te = z(() => o.value.filter((e) => !v.value.trim() || ie(e).includes(v.value.trim()))), D = z(() => [...c.value].map((e) => s.value[e] ?? j(e))), O = z(() => ({
2382
- current: h.value,
2383
- total: g.value,
2380
+ onClose: () => !f.value && i("close")
2381
+ }), C = z(() => [...c.value].filter((e) => !l.value.has(e))), w = z(() => [...l.value].filter((e) => !c.value.has(e))), T = z(() => new Map(a.value.map((e) => [e.employeePositionId, e]))), ee = z(() => o.value.filter((e) => !g.value.trim() || ie(e).includes(g.value.trim()))), te = z(() => [...c.value].map((e) => s.value[e] ?? ce(e))), D = z(() => ({
2382
+ current: m.value,
2383
+ total: h.value,
2384
2384
  pageSize: 50,
2385
2385
  showSizeChanger: !1,
2386
2386
  showQuickJumper: !1,
2387
- onChange: (e) => void A(e)
2387
+ onChange: (e) => void k(e)
2388
2388
  }));
2389
2389
  Z(() => [r.open, r.role?.id], ([e]) => {
2390
- e ? A() : re();
2390
+ e ? k() : ne();
2391
2391
  }, { immediate: !0 }), Z([
2392
2392
  () => r.embedded,
2393
2393
  () => r.drawerContext,
2394
2394
  c,
2395
+ C,
2395
2396
  w,
2396
- T,
2397
- p,
2398
- f
2399
- ], k, { immediate: !0 }), Ae(() => r.drawerContext?.setOperation(void 0));
2400
- function k() {
2397
+ f,
2398
+ d
2399
+ ], O, { immediate: !0 }), Ae(() => r.drawerContext?.setOperation(void 0));
2400
+ function O() {
2401
2401
  let e = r.drawerContext;
2402
2402
  r.embedded && e && (e.setSubtitle(n.t("platform.screen.RoleAccountGrantDrawer.role-value-value", "角色:{value1} · {value2}", {
2403
2403
  value1: r.role?.title ?? r.role?.id ?? n.t("platform.screen.RoleManagementView.role", "角色"),
2404
- value2: N(r.role)
2404
+ value2: F(r.role)
2405
2405
  })), e.setOperation({
2406
2406
  summary: n.t("platform.screen.RoleEmploymentGrantDrawer.value-positions-selectedvalue", "已选 {value1} 个任职{value2}", {
2407
2407
  value1: c.value.size,
2408
- value2: w.value.length || T.value.length ? n.t("platform.screen.RoleEmploymentGrantDrawer.value-added-value-removed", " · 新增 {value1} · 移除 {value2}", {
2409
- value1: w.value.length,
2410
- value2: T.value.length
2408
+ value2: C.value.length || w.value.length ? n.t("platform.screen.RoleEmploymentGrantDrawer.value-added-value-removed", " · 新增 {value1} · 移除 {value2}", {
2409
+ value1: C.value.length,
2410
+ value2: w.value.length
2411
2411
  }) : ""
2412
2412
  }),
2413
2413
  actions: [{
2414
2414
  key: "cancel-employment-role-grants",
2415
2415
  label: n.t("platform.action.cancel", "取消"),
2416
- disabled: p.value,
2416
+ disabled: f.value,
2417
2417
  run: () => i("close")
2418
2418
  }, {
2419
2419
  key: "save-employment-role-grants",
2420
2420
  label: n.t("platform.screen.RoleAccountGrantDrawer.confirm", "确定"),
2421
2421
  emphasis: "primary",
2422
- disabled: f.value || w.value.length === 0 && T.value.length === 0,
2423
- loading: p.value,
2424
- run: () => void ne()
2422
+ disabled: d.value || C.value.length === 0 && w.value.length === 0,
2423
+ loading: f.value,
2424
+ run: () => void A()
2425
2425
  }]
2426
2426
  }));
2427
2427
  }
2428
- async function A(e = 1) {
2429
- let t = y.value;
2428
+ async function k(e = 1) {
2429
+ let t = _.value;
2430
2430
  if (t) {
2431
- f.value = !0, m.value = !1;
2431
+ d.value = !0, p.value = !1;
2432
2432
  try {
2433
- let [n, r] = await Promise.all([b.value.employmentRoleGrants(t), b.value.employmentSelector(t, {
2433
+ let [n, r] = await Promise.all([y.value.employmentRoleGrants(t), y.value.employmentSelector(t, {
2434
2434
  enabledOnly: !0,
2435
2435
  page: {
2436
2436
  pageNum: e,
@@ -2439,30 +2439,30 @@ var on = {
2439
2439
  })]);
2440
2440
  a.value = n, l.value = new Set(n.map((e) => e.employeePositionId).filter((e) => !!e)), s.value = {
2441
2441
  ...s.value,
2442
- ...se(r.records)
2443
- }, d.value ||= (c.value = new Set(l.value), !0), o.value = r.records, h.value = r.pageNum, g.value = r.total;
2442
+ ...oe(r.records)
2443
+ }, u.value ||= (c.value = new Set(l.value), !0), o.value = r.records, m.value = r.pageNum, h.value = r.total;
2444
2444
  } catch (e) {
2445
- m.value = !0, F(e, {
2445
+ p.value = !0, j(e, {
2446
2446
  language: n,
2447
2447
  source: "role-employment-grants",
2448
2448
  phase: "load"
2449
2449
  });
2450
2450
  } finally {
2451
- f.value = !1;
2451
+ d.value = !1;
2452
2452
  }
2453
2453
  }
2454
2454
  }
2455
- async function ne() {
2456
- let e = y.value;
2455
+ async function A() {
2456
+ let e = _.value;
2457
2457
  if (e) {
2458
- p.value = !0;
2458
+ f.value = !0;
2459
2459
  try {
2460
- for (let t of w.value) await b.value.grantEmploymentRole(e, t);
2461
- for (let t of T.value) {
2462
- let n = E.value.get(t)?.id;
2463
- n && await b.value.deleteEmploymentRoleGrant(e, n);
2460
+ for (let t of C.value) await y.value.grantEmploymentRole(e, t);
2461
+ for (let t of w.value) {
2462
+ let n = T.value.get(t)?.id;
2463
+ n && await y.value.deleteEmploymentRoleGrant(e, n);
2464
2464
  }
2465
- await ue({
2465
+ await se({
2466
2466
  success: !0,
2467
2467
  message: n.t("platform.screen.RoleEmploymentGrantDrawer.position-role-assignments-saved", "任职角色授权已保存")
2468
2468
  }, {
@@ -2471,18 +2471,18 @@ var on = {
2471
2471
  phase: "action"
2472
2472
  }), i("saved"), i("close");
2473
2473
  } catch (e) {
2474
- F(e, {
2474
+ j(e, {
2475
2475
  language: n,
2476
2476
  source: "role-employment-grants",
2477
2477
  phase: "action"
2478
2478
  });
2479
2479
  } finally {
2480
- p.value = !1;
2480
+ f.value = !1;
2481
2481
  }
2482
2482
  }
2483
2483
  }
2484
- function re() {
2485
- a.value = [], o.value = [], s.value = {}, c.value = /* @__PURE__ */ new Set(), l.value = /* @__PURE__ */ new Set(), d.value = !1, v.value = "", h.value = 1, g.value = 0, m.value = !1;
2484
+ function ne() {
2485
+ 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;
2486
2486
  }
2487
2487
  function ie(e) {
2488
2488
  return [
@@ -2497,55 +2497,55 @@ var on = {
2497
2497
  let t = new Set(c.value);
2498
2498
  t.delete(e), c.value = t;
2499
2499
  }
2500
- function se(e) {
2500
+ function oe(e) {
2501
2501
  let t = {};
2502
2502
  for (let n of e) n.id && (t[n.id] = n);
2503
2503
  return t;
2504
2504
  }
2505
- function j(e) {
2505
+ function ce(e) {
2506
2506
  return {
2507
2507
  id: e,
2508
2508
  positionId: e
2509
2509
  };
2510
2510
  }
2511
- function M(e) {
2511
+ function N(e) {
2512
2512
  let t = e.positionTitle ?? e.positionId ?? e.id;
2513
2513
  return e.employeeTitle ? `${e.employeeTitle} · ${t}` : t;
2514
2514
  }
2515
- function ce(e) {
2515
+ function le(e) {
2516
2516
  return [
2517
2517
  e.employeeNo,
2518
2518
  e.organizationTitle ?? e.organizationId,
2519
2519
  e.departmentTitle ?? e.departmentId
2520
2520
  ].filter(Boolean).join(" / ") || e.id;
2521
2521
  }
2522
- function N(e) {
2522
+ function F(e) {
2523
2523
  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", "租户范围");
2524
2524
  }
2525
- return (t, r) => (q(), B(Ie(S.value), Ee(ee.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Ce({
2526
- default: Q(() => [f.value ? (q(), B(X(de), {
2525
+ return (t, r) => (q(), B(Ie(x.value), Ee(S.value, { class: { "role-employment-grant-drawer-surface": e.embedded } }), Ce({
2526
+ default: Q(() => [d.value ? (q(), B(X(me), {
2527
2527
  key: 0,
2528
2528
  tip: X(n).t("platform.screen.RoleEmploymentGrantDrawer.loading-positions", "加载任职")
2529
- }, null, 8, ["tip"])) : m.value ? (q(), H("div", vn, [G(X(oe), {
2529
+ }, null, 8, ["tip"])) : p.value ? (q(), H("div", vn, [G(X(re), {
2530
2530
  title: X(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-positions", "任职加载失败"),
2531
2531
  message: X(n).t("platform.screen.RoleEmploymentGrantDrawer.failed-to-load-position-assignments", "无法加载任职授权")
2532
- }, null, 8, ["title", "message"]), G(X(_), { onClick: r[1] ||= (e) => A() }, {
2532
+ }, null, 8, ["title", "message"]), G(X(v), { onClick: r[1] ||= (e) => k() }, {
2533
2533
  default: Q(() => [W(Y(X(n).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
2534
2534
  _: 1
2535
2535
  })])) : (q(), H("section", yn, [
2536
- G(X(u), {
2537
- value: v.value,
2538
- "onUpdate:value": r[2] ||= (e) => v.value = e,
2536
+ G(X(E), {
2537
+ value: g.value,
2538
+ "onUpdate:value": r[2] ||= (e) => g.value = e,
2539
2539
  "allow-clear": "",
2540
2540
  placeholder: X(n).t("platform.screen.RoleEmploymentGrantDrawer.filter-by-employee-employee-number-organization-department-or-position", "筛选职员、工号、机构、部门或岗位")
2541
2541
  }, null, 8, ["value", "placeholder"]),
2542
2542
  G(_n, {
2543
2543
  "selected-ids": c.value,
2544
2544
  "onUpdate:selectedIds": r[3] ||= (e) => c.value = e,
2545
- rows: te.value,
2545
+ rows: ee.value,
2546
2546
  selectable: "",
2547
- disabled: p.value,
2548
- pagination: O.value,
2547
+ disabled: f.value,
2548
+ pagination: D.value,
2549
2549
  "fill-height": ""
2550
2550
  }, null, 8, [
2551
2551
  "selected-ids",
@@ -2553,27 +2553,27 @@ var on = {
2553
2553
  "disabled",
2554
2554
  "pagination"
2555
2555
  ]),
2556
- D.value.length > 0 ? (q(), H("section", bn, [U("div", xn, [U("strong", null, Y(X(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), U("span", null, Y(D.value.length), 1)]), U("div", Sn, [(q(!0), H(R, null, Pe(D.value, (e) => (q(), H("button", {
2556
+ te.value.length > 0 ? (q(), H("section", bn, [U("div", xn, [U("strong", null, Y(X(n).t("platform.screen.RoleEmploymentGrantDrawer.selected-positions", "已选任职")), 1), U("span", null, Y(te.value.length), 1)]), U("div", Sn, [(q(!0), H(R, null, Pe(te.value, (e) => (q(), H("button", {
2557
2557
  key: e.id,
2558
2558
  type: "button",
2559
- disabled: p.value,
2559
+ disabled: f.value,
2560
2560
  onClick: (t) => ae(e.id)
2561
- }, [U("span", null, Y(M(e)), 1), U("small", null, Y(ce(e)), 1)], 8, Cn))), 128))])])) : V("v-if", !0)
2561
+ }, [U("span", null, Y(N(e)), 1), U("small", null, Y(le(e)), 1)], 8, Cn))), 128))])])) : V("v-if", !0)
2562
2562
  ]))]),
2563
2563
  _: 2
2564
2564
  }, [e.embedded ? void 0 : {
2565
2565
  name: "operation",
2566
- fn: Q(() => [G(X(_), {
2567
- disabled: p.value,
2566
+ fn: Q(() => [G(X(v), {
2567
+ disabled: f.value,
2568
2568
  onClick: r[0] ||= (e) => i("close")
2569
2569
  }, {
2570
2570
  default: Q(() => [W(Y(X(n).t("platform.action.cancel", "取消")), 1)]),
2571
2571
  _: 1
2572
- }, 8, ["disabled"]), G(X(_), {
2572
+ }, 8, ["disabled"]), G(X(v), {
2573
2573
  type: "primary",
2574
- loading: p.value,
2575
- disabled: f.value || w.value.length === 0 && T.value.length === 0,
2576
- onClick: ne
2574
+ loading: f.value,
2575
+ disabled: d.value || C.value.length === 0 && w.value.length === 0,
2576
+ onClick: A
2577
2577
  }, {
2578
2578
  default: Q(() => [W(Y(X(n).t("platform.screen.RoleAccountGrantDrawer.confirm", "确定")), 1)]),
2579
2579
  _: 1
@@ -2622,7 +2622,7 @@ var on = {
2622
2622
  emits: ["close"],
2623
2623
  setup(e, { emit: t }) {
2624
2624
  let n = e, r = t, i = z(() => n.profile === "wide-work" ? "wide" : "standard");
2625
- return (t, n) => (q(), B(X(C), {
2625
+ return (t, n) => (q(), B(X(P), {
2626
2626
  open: e.open,
2627
2627
  title: e.title,
2628
2628
  "render-mode": e.container ? "inline" : "portal",
@@ -2657,7 +2657,7 @@ function Dn(e) {
2657
2657
  return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
2658
2658
  }
2659
2659
  function On(e) {
2660
- let t = i(), n = P();
2660
+ let t = a(), n = M();
2661
2661
  return z(() => {
2662
2662
  let r = Re(e.input);
2663
2663
  if (r && Dn(Re(e.eligibility)) && t) return {
@@ -2733,140 +2733,140 @@ var Bn = { class: "panel-title" }, Vn = {
2733
2733
  },
2734
2734
  emits: ["close"],
2735
2735
  setup(e, { emit: t }) {
2736
- let n = P(), r = e, i = t, o = se({ moduleAlias: "iam.role" }), s = r.moduleContext ?? o, c = an(s.http), l = r.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", u = a(), d = r.roleId ? { roleId: r.roleId } : void 0, m = d ? zn(d) : void 0, h = J(), g = J([]), y = J(), b = J(""), S = J([]), C = J(), w = J(), D = J(!1), O = J(!1), k = J(!1), A = Le(), ae = z(() => A.value ? te(A.value, n) : void 0), j = J(), M = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map(), le = J(0), pe, he = z(() => h.value?.roleKind === "group"), ge = z(() => h.value?.roleKind === "dataGrant"), L = z(() => h.value?.assignmentType === "employment"), _e = z(() => !!r.drawerContext), ve = z(() => (h.value && re(h.value, "title", n)) ?? l ?? n.t("platform.screen.RoleManagementView.role", "角色")), ye = z(() => n.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: ve.value })), be = z(() => xe.value ? n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: xe.value.title }) : n.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: ve.value })), xe = z(() => g.value.find((e) => e.moduleAlias === y.value)), Se = z(() => {
2737
- let e = b.value.trim().toLocaleLowerCase(), t = new Set(e ? g.value.filter((t) => [
2736
+ let r = M(), i = e, a = t, o = u({ moduleAlias: "iam.role" }), s = i.moduleContext ?? o, c = an(s.http), l = i.roleId ?? new URLSearchParams(window.location.search).get("roleId") ?? "", d = n(), f = i.roleId ? { roleId: i.roleId } : void 0, p = f ? zn(f) : void 0, g = J(), b = J([]), x = J(), S = J(""), C = J([]), w = J(), E = J(), D = J(!1), O = J(!1), A = J(!1), ne = Le(), ie = z(() => ne.value ? _(ne.value, r) : void 0), ae = J(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), F = J(0), he, I = z(() => g.value?.roleKind === "group"), ge = z(() => g.value?.roleKind === "dataGrant"), L = z(() => g.value?.assignmentType === "employment"), _e = z(() => !!i.drawerContext), ve = z(() => (g.value && oe(g.value, "title", r)) ?? l ?? r.t("platform.screen.RoleManagementView.role", "角色")), ye = z(() => r.t("platform.screen.RoleAuthorizationView.permissions-value", "授权:{value1}", { value1: ve.value })), be = z(() => xe.value ? r.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: xe.value.title }) : r.t("platform.screen.RoleAuthorizationView.action-permissions-value", "动作授权 - {value1}", { value1: ve.value })), xe = z(() => b.value.find((e) => e.moduleAlias === x.value)), Se = z(() => {
2737
+ let e = S.value.trim().toLocaleLowerCase(), t = new Set(e ? b.value.filter((t) => [
2738
2738
  t.title,
2739
2739
  t.moduleAlias,
2740
2740
  t.applicationAlias
2741
- ].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]));
2741
+ ].filter((e) => !!e).some((t) => t.toLocaleLowerCase().includes(e))).map((e) => e.moduleAlias) : b.value.map((e) => e.moduleAlias)), n = new Map(b.value.map((e) => [e.moduleAlias, e]));
2742
2742
  for (let e of [...t]) {
2743
2743
  let r = n.get(e)?.parentId;
2744
2744
  for (; r && n.has(r) && !t.has(r);) t.add(r), r = n.get(r)?.parentId;
2745
2745
  }
2746
- return g.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
2746
+ return b.value.filter((e) => t.has(e.moduleAlias)).map((e) => ({
2747
2747
  id: e.moduleAlias,
2748
2748
  parentId: e.parentId,
2749
2749
  title: e.title,
2750
2750
  secondary: e.applicationAlias
2751
2751
  }));
2752
- }), we = z(() => (w.value?.options ?? []).map((e) => ({
2752
+ }), we = z(() => (E.value?.options ?? []).map((e) => ({
2753
2753
  value: e.code,
2754
2754
  label: e.title
2755
- }))), K = z(() => (w.value?.referenceDependencies ?? []).map((e) => ({
2755
+ }))), K = z(() => (E.value?.referenceDependencies ?? []).map((e) => ({
2756
2756
  value: e.referenceFieldId,
2757
2757
  label: `${e.title} → ${e.targetModuleTitle}`
2758
- }))), Ee = z(() => new Map((w.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), De = z(() => L.value && S.value.some((e) => !!e.dataAuth)), Me = z(() => [
2758
+ }))), Ee = z(() => new Map((E.value?.referenceDependencies ?? []).map((e) => [e.referenceFieldId, e]))), De = z(() => L.value && C.value.some((e) => !!e.dataAuth)), Me = z(() => [
2759
2759
  {
2760
2760
  key: "title",
2761
- title: n.t("platform.governance.tab.actions", "动作"),
2761
+ title: r.t("platform.governance.tab.actions", "动作"),
2762
2762
  width: 160
2763
2763
  },
2764
2764
  {
2765
2765
  key: "granted",
2766
- title: n.t("platform.page-action.MANAGE_PERMISSIONS.title", "授权"),
2766
+ title: r.t("platform.page-action.MANAGE_PERMISSIONS.title", "授权"),
2767
2767
  width: 104,
2768
2768
  align: "center"
2769
2769
  },
2770
2770
  ...De.value ? [{
2771
2771
  key: "dataScopePolicy",
2772
- title: n.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
2772
+ title: r.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
2773
2773
  width: 200
2774
2774
  }] : []
2775
2775
  ]), Ne = z(() => [
2776
2776
  {
2777
2777
  key: "title",
2778
- title: n.t("platform.screen.RoleAuthorizationView.standard-action", "标准动作"),
2778
+ title: r.t("platform.screen.RoleAuthorizationView.standard-action", "标准动作"),
2779
2779
  width: 130
2780
2780
  },
2781
2781
  {
2782
2782
  key: "configured",
2783
- title: n.t("platform.screen.RoleAuthorizationView.enable-template", "启用模板"),
2783
+ title: r.t("platform.screen.RoleAuthorizationView.enable-template", "启用模板"),
2784
2784
  width: 104,
2785
2785
  align: "center"
2786
2786
  },
2787
2787
  {
2788
2788
  key: "dataScopePolicy",
2789
- title: n.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
2789
+ title: r.t("platform.screen.RoleAuthorizationView.data-scope", "数据范围"),
2790
2790
  width: 160
2791
2791
  }
2792
- ]), Pe = z(() => S.value), Fe = z(() => C.value?.actions ?? []), Re = z(() => r.drawer === !0 || !!d && u?.presentation === "drawer"), ze = z(() => !!d), Be = z(() => ze.value && !_e.value), Ve = z(() => _e.value ? "div" : Re.value ? En : ze.value ? T : "div"), He = z(() => Re.value ? {
2792
+ ]), Pe = z(() => C.value), Fe = z(() => w.value?.actions ?? []), Re = z(() => i.drawer === !0 || !!f && d?.presentation === "drawer"), ze = z(() => !!f), Be = z(() => ze.value && !_e.value), Ve = z(() => _e.value ? "div" : Re.value ? En : ze.value ? ee : "div"), He = z(() => Re.value ? {
2793
2793
  open: !0,
2794
2794
  title: ye.value,
2795
- container: r.container ?? null,
2795
+ container: i.container ?? null,
2796
2796
  profile: Ue.drawerProfile,
2797
2797
  promotion: Ye.value,
2798
2798
  dismissal: "guarded",
2799
2799
  beforeClose: ft,
2800
2800
  onClose: pt
2801
2801
  } : Be.value ? { title: ye.value } : {}), We = z(() => {
2802
- let e = C.value;
2803
- return !e || j.value === void 0 ? !1 : JSON.stringify(e.actions) !== j.value;
2804
- }), Ge = z(() => le.value >= 0 && [...M.entries()].some(([e, t]) => I.get(e) !== JSON.stringify(t))), $ = z(() => We.value || Ge.value);
2805
- ie(() => n.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => $.value, () => k.value);
2806
- let Ke = z(() => S.value.length > 0 && S.value.every((e) => e.granted)), qe = z(() => S.value.some((e) => e.granted) && !Ke.value), Je = z(() => {
2807
- let e = xe.value?.title ?? n.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = S.value.filter((e) => e.granted).length, r = $.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
2808
- return n.t("platform.screen.RoleAuthorizationView.current-module-value-value-value-actions-granted-value", "当前模块:{value1} · 已授权 {value2}/{value3} 项 · {value4}", {
2802
+ let e = w.value;
2803
+ return !e || ae.value === void 0 ? !1 : JSON.stringify(e.actions) !== ae.value;
2804
+ }), Ge = z(() => F.value >= 0 && [...N.entries()].some(([e, t]) => P.get(e) !== JSON.stringify(t))), $ = z(() => We.value || Ge.value);
2805
+ le(() => r.t("platform.unsaved-source.RoleAuthorizationView", "角色授权"), () => $.value, () => A.value);
2806
+ let Ke = z(() => C.value.length > 0 && C.value.every((e) => e.granted)), qe = z(() => C.value.some((e) => e.granted) && !Ke.value), Je = z(() => {
2807
+ let e = xe.value?.title ?? r.t("platform.screen.RoleAuthorizationView.no-module-selected", "未选择模块"), t = C.value.filter((e) => e.granted).length, n = $.value ? r.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : r.t("platform.screen.RoleAuthorizationView.unchanged", "未修改");
2808
+ return r.t("platform.screen.RoleAuthorizationView.current-module-value-value-value-actions-granted-value", "当前模块:{value1} · 已授权 {value2}/{value3} 项 · {value4}", {
2809
2809
  value1: e,
2810
2810
  value2: t,
2811
- value3: S.value.length,
2812
- value4: r
2811
+ value3: C.value.length,
2812
+ value4: n
2813
2813
  });
2814
2814
  }), Ye = On({
2815
2815
  view: Ue,
2816
- input: () => d,
2816
+ input: () => f,
2817
2817
  title: ye,
2818
2818
  eligibility: () => ({
2819
- hasStableIdentity: !!(l && h.value),
2820
- busy: k.value
2819
+ hasStableIdentity: !!(l && g.value),
2820
+ busy: A.value
2821
2821
  }),
2822
2822
  beforePromote: (e) => Ln(e, {
2823
- selectedModuleAlias: y.value,
2824
- dataGrantMatrix: C.value,
2825
- actionDrafts: [...M.entries()].map(([e, t]) => ({
2823
+ selectedModuleAlias: x.value,
2824
+ dataGrantMatrix: w.value,
2825
+ actionDrafts: [...N.entries()].map(([e, t]) => ({
2826
2826
  moduleAlias: e,
2827
2827
  actions: t
2828
2828
  })),
2829
- actionSnapshots: [...I.entries()].map(([e, t]) => ({
2829
+ actionSnapshots: [...P.entries()].map(([e, t]) => ({
2830
2830
  moduleAlias: e,
2831
2831
  snapshot: t
2832
2832
  }))
2833
2833
  }).then((e) => e === "accepted"),
2834
2834
  onPromoted: mt,
2835
- onPromotionRejected: () => N(n.t("platform.screen.RoleAuthorizationView.the-target-tab-has-unconfirmed-permission-changes-confirm-or-close", "目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。"), {
2836
- language: n,
2835
+ onPromotionRejected: () => de(r.t("platform.screen.RoleAuthorizationView.the-target-tab-has-unconfirmed-permission-changes-confirm-or-close", "目标页签存在未确认的授权配置;请先确认或关闭该页签后再固定当前抽屉。"), {
2836
+ language: r,
2837
2837
  source: "role-authorization",
2838
2838
  phase: "validation"
2839
2839
  })
2840
2840
  });
2841
2841
  je(() => {
2842
- d && !Re.value && (pe = Rn(d, ht)), Ze();
2842
+ f && !Re.value && (he = Rn(f, ht)), Ze();
2843
2843
  }), Z(ye, (e) => {
2844
- ze.value && u?.setTitle(e);
2845
- }, { immediate: !0 }), Z(y, () => void Qe()), Z([
2844
+ ze.value && d?.setTitle(e);
2845
+ }, { immediate: !0 }), Z(x, () => void Qe()), Z([
2846
2846
  ve,
2847
2847
  Je,
2848
2848
  $,
2849
- k,
2850
- he,
2849
+ A,
2850
+ I,
2851
2851
  ge
2852
2852
  ], Xe, { immediate: !0 }), je(() => window.addEventListener("beforeunload", _t)), Ae(() => {
2853
- pe?.(), r.drawerContext?.setOperation(void 0), r.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
2853
+ he?.(), i.drawerContext?.setOperation(void 0), i.drawerContext?.setSubtitle(void 0), window.removeEventListener("beforeunload", _t);
2854
2854
  });
2855
2855
  function Xe() {
2856
- let e = r.drawerContext;
2856
+ let e = i.drawerContext;
2857
2857
  if (e) {
2858
- if (e.setSubtitle(`${ve.value} · ${vt(h.value)}`), he.value) {
2858
+ if (e.setSubtitle(`${ve.value} · ${vt(g.value)}`), I.value) {
2859
2859
  e.setOperation(void 0);
2860
2860
  return;
2861
2861
  }
2862
2862
  e.setOperation({
2863
- summary: ge.value ? $.value ? n.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : n.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Je.value,
2863
+ summary: ge.value ? $.value ? r.t("platform.screen.ConstructionPlanCard.unconfirmed-changes", "有未确认修改") : r.t("platform.screen.RoleAuthorizationView.unchanged", "未修改") : Je.value,
2864
2864
  actions: [{
2865
2865
  key: "confirm-role-authorization",
2866
- label: n.t("platform.screen.UiModal.confirmText", "确认"),
2866
+ label: r.t("platform.screen.UiModal.confirmText", "确认"),
2867
2867
  emphasis: "primary",
2868
- disabled: k.value || !$.value,
2869
- loading: k.value,
2868
+ disabled: A.value || !$.value,
2869
+ loading: A.value,
2870
2870
  run: () => void dt()
2871
2871
  }]
2872
2872
  });
@@ -2874,21 +2874,21 @@ var Bn = { class: "panel-title" }, Vn = {
2874
2874
  }
2875
2875
  async function Ze() {
2876
2876
  if (!l) {
2877
- A.value = new f(fe(n, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
2877
+ ne.value = new y(ue(r, "platform.screen.RoleAuthorizationView.the-role-id-is-missing-cannot-open-the-permissions-page", "缺少角色标识,无法打开授权页。"));
2878
2878
  return;
2879
2879
  }
2880
- D.value = !0, A.value = void 0;
2880
+ D.value = !0, ne.value = void 0;
2881
2881
  try {
2882
- if (h.value = await s.crud.view(l), h.value.roleKind === "group") return;
2883
- if (h.value.roleKind === "dataGrant") {
2882
+ if (g.value = await s.crud.view(l), g.value.roleKind === "group") return;
2883
+ if (g.value.roleKind === "dataGrant") {
2884
2884
  let [e, t] = await Promise.all([c.dataGrantActionMatrix(l), c.dataScopePolicyCatalog(l)]);
2885
- C.value = m?.dataGrantMatrix ?? e, w.value = t, j.value = JSON.stringify(e.actions);
2885
+ w.value = p?.dataGrantMatrix ?? e, E.value = t, ae.value = JSON.stringify(e.actions);
2886
2886
  return;
2887
2887
  }
2888
- g.value = (await c.authorizationModules(l)).records, y.value = m?.selectedModuleAlias ?? g.value[0]?.moduleAlias;
2888
+ b.value = (await c.authorizationModules(l)).records, x.value = p?.selectedModuleAlias ?? b.value[0]?.moduleAlias;
2889
2889
  } catch (e) {
2890
- A.value = new f(fe(n, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), F(e, {
2891
- language: n,
2890
+ ne.value = new y(ue(r, "platform.screen.RoleAuthorizationView.failed-to-load-permission-information-try-again", "授权信息加载失败,请重试。")), j(e, {
2891
+ language: r,
2892
2892
  source: "role-authorization",
2893
2893
  phase: "load"
2894
2894
  });
@@ -2897,15 +2897,15 @@ var Bn = { class: "panel-title" }, Vn = {
2897
2897
  }
2898
2898
  }
2899
2899
  async function Qe() {
2900
- let e = y.value;
2901
- if (!(!e || ge.value || he.value)) {
2900
+ let e = x.value;
2901
+ if (!(!e || ge.value || I.value)) {
2902
2902
  O.value = !0;
2903
2903
  try {
2904
- 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;
2905
- S.value = a ?? r, M.has(e) || (M.set(e, S.value), I.set(e, m?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), le.value += 1, w.value = n;
2904
+ let [t, n] = await Promise.all([c.permissionMatrix(l, [e]), c.dataScopePolicyCatalog(l, e)]), r = (t.modules[0]?.actions ?? []).map(ct), i = p?.actionDrafts?.find((t) => t.moduleAlias === e)?.actions, a = N.get(e) ?? i;
2905
+ C.value = a ?? r, N.has(e) || (N.set(e, C.value), P.set(e, p?.actionSnapshots?.find((t) => t.moduleAlias === e)?.snapshot ?? JSON.stringify(r))), F.value += 1, E.value = n;
2906
2906
  } catch (e) {
2907
- F(e, {
2908
- language: n,
2907
+ j(e, {
2908
+ language: r,
2909
2909
  source: "role-authorization",
2910
2910
  phase: "load"
2911
2911
  });
@@ -2915,21 +2915,21 @@ var Bn = { class: "panel-title" }, Vn = {
2915
2915
  }
2916
2916
  }
2917
2917
  function $e(e, t) {
2918
- t && e.dataAuth && L.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, le.value += 1;
2918
+ t && e.dataAuth && L.value && !e.dataScopePolicy && (e.dataScopePolicy = "inheritDataGrant"), t && e.dataScopePolicy === "referenceDependency" && !e.referenceFieldId && (e.dataScopePolicy = "inheritDataGrant"), e.granted = t, F.value += 1;
2919
2919
  }
2920
2920
  function et(e) {
2921
- S.value.forEach((t) => $e(t, e));
2921
+ C.value.forEach((t) => $e(t, e));
2922
2922
  }
2923
2923
  function tt(e, t) {
2924
2924
  if (e.dataScopePolicy = String(t || "none"), e.dataScopePolicy === "referenceDependency") {
2925
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, le.value += 1;
2925
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, F.value += 1;
2926
2926
  return;
2927
2927
  }
2928
- e.referenceFieldId = void 0, e.referenceActionCode = void 0, le.value += 1;
2928
+ e.referenceFieldId = void 0, e.referenceActionCode = void 0, F.value += 1;
2929
2929
  }
2930
2930
  function nt(e, t) {
2931
2931
  let n = Ee.value.get(String(t || ""));
2932
- e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, le.value += 1;
2932
+ e.referenceFieldId = n?.referenceFieldId, e.referenceActionCode = n?.referenceActionCode, F.value += 1;
2933
2933
  }
2934
2934
  function rt(e) {
2935
2935
  return Ee.value.get(String(e || ""));
@@ -2953,35 +2953,35 @@ var Bn = { class: "panel-title" }, Vn = {
2953
2953
  } : e;
2954
2954
  }
2955
2955
  async function lt() {
2956
- if (C.value) {
2957
- k.value = !0;
2956
+ if (w.value) {
2957
+ A.value = !0;
2958
2958
  try {
2959
- let e = await c.replaceDataGrantActions(l, C.value.actions.map((e) => ({
2959
+ let e = await c.replaceDataGrantActions(l, w.value.actions.map((e) => ({
2960
2960
  actionCode: e.actionCode,
2961
2961
  dataScopePolicy: e.dataScopePolicy,
2962
2962
  enabled: e.configured
2963
2963
  })));
2964
- await ue(e, {
2965
- language: n,
2964
+ await se(e, {
2965
+ language: r,
2966
2966
  source: "role-authorization",
2967
2967
  phase: "action",
2968
- fallbackMessage: n.t("platform.screen.RoleAuthorizationView.data-permission-template-saved", "数据权限模板已保存")
2969
- }), j.value = JSON.stringify(C.value.actions);
2968
+ fallbackMessage: r.t("platform.screen.RoleAuthorizationView.data-permission-template-saved", "数据权限模板已保存")
2969
+ }), ae.value = JSON.stringify(w.value.actions);
2970
2970
  } catch (e) {
2971
- F(e, {
2972
- language: n,
2971
+ j(e, {
2972
+ language: r,
2973
2973
  source: "role-authorization",
2974
2974
  phase: "action"
2975
2975
  });
2976
2976
  } finally {
2977
- k.value = !1;
2977
+ A.value = !1;
2978
2978
  }
2979
2979
  }
2980
2980
  }
2981
2981
  async function ut() {
2982
- let e = [...M.entries()].filter(([e, t]) => I.get(e) !== JSON.stringify(t));
2982
+ let e = [...N.entries()].filter(([e, t]) => P.get(e) !== JSON.stringify(t));
2983
2983
  if (e.length) {
2984
- k.value = !0;
2984
+ A.value = !0;
2985
2985
  try {
2986
2986
  let t = await c.replacePermissionMatrix(l, e.flatMap(([e, t]) => t.map((t) => ({
2987
2987
  moduleAlias: e,
@@ -2991,20 +2991,20 @@ var Bn = { class: "panel-title" }, Vn = {
2991
2991
  referenceFieldId: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceFieldId : void 0,
2992
2992
  referenceActionCode: t.granted && t.dataScopePolicy === "referenceDependency" ? t.referenceActionCode : void 0
2993
2993
  }))));
2994
- await ue(t, {
2995
- language: n,
2994
+ await se(t, {
2995
+ language: r,
2996
2996
  source: "role-authorization",
2997
2997
  phase: "action",
2998
- fallbackMessage: n.t("platform.screen.RoleAuthorizationView.role-permissions-saved", "角色授权已保存")
2999
- }), e.forEach(([e, t]) => I.set(e, JSON.stringify(t))), le.value += 1;
2998
+ fallbackMessage: r.t("platform.screen.RoleAuthorizationView.role-permissions-saved", "角色授权已保存")
2999
+ }), e.forEach(([e, t]) => P.set(e, JSON.stringify(t))), F.value += 1;
3000
3000
  } catch (e) {
3001
- F(e, {
3002
- language: n,
3001
+ j(e, {
3002
+ language: r,
3003
3003
  source: "role-authorization",
3004
3004
  phase: "action"
3005
3005
  });
3006
3006
  } finally {
3007
- k.value = !1;
3007
+ A.value = !1;
3008
3008
  }
3009
3009
  }
3010
3010
  }
@@ -3016,12 +3016,12 @@ var Bn = { class: "panel-title" }, Vn = {
3016
3016
  await ut();
3017
3017
  }
3018
3018
  async function ft() {
3019
- return !$.value || ce({
3020
- title: n.t("platform.screen.RoleAuthorizationView.discard-unconfirmed-permission-changes", "放弃未确认的授权配置"),
3021
- content: n.t("platform.screen.RoleAuthorizationView.these-changes-have-not-been-confirmed-and-will-be-lost", "当前修改尚未确认,关闭后将丢失这些修改。"),
3022
- okText: n.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
3019
+ return !$.value || fe({
3020
+ title: r.t("platform.screen.RoleAuthorizationView.discard-unconfirmed-permission-changes", "放弃未确认的授权配置"),
3021
+ content: r.t("platform.screen.RoleAuthorizationView.these-changes-have-not-been-confirmed-and-will-be-lost", "当前修改尚未确认,关闭后将丢失这些修改。"),
3022
+ okText: r.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
3023
3023
  danger: !0
3024
- }, n);
3024
+ }, r);
3025
3025
  }
3026
3026
  function pt() {
3027
3027
  gt();
@@ -3030,70 +3030,70 @@ var Bn = { class: "panel-title" }, Vn = {
3030
3030
  gt();
3031
3031
  }
3032
3032
  function ht(e) {
3033
- return !$.value && (y.value = e.selectedModuleAlias, C.value = e.dataGrantMatrix, M.clear(), I.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => M.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => I.set(e, t)), le.value += 1, !0);
3033
+ return !$.value && (x.value = e.selectedModuleAlias, w.value = e.dataGrantMatrix, N.clear(), P.clear(), e.actionDrafts?.forEach(({ moduleAlias: e, actions: t }) => N.set(e, t)), e.actionSnapshots?.forEach(({ moduleAlias: e, snapshot: t }) => P.set(e, t)), F.value += 1, !0);
3034
3034
  }
3035
3035
  function gt() {
3036
- if (r.drawer === !0) {
3037
- i("close");
3036
+ if (i.drawer === !0) {
3037
+ a("close");
3038
3038
  return;
3039
3039
  }
3040
- u?.dismiss();
3040
+ d?.dismiss();
3041
3041
  }
3042
3042
  function _t(e) {
3043
3043
  $.value && (e.preventDefault(), e.returnValue = "");
3044
3044
  }
3045
3045
  function vt(e) {
3046
- 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", "租户范围");
3046
+ return e?.ownerScopeType === "platform" ? r.t("platform.screen.RoleAuthorizationView.platform-scope", "平台范围") : e?.ownerScopeType === "organization" ? r.t("platform.screen.RoleAuthorizationView.organization-scope", "机构范围") : r.t("platform.screen.RoleAuthorizationView.tenant-scope", "租户范围");
3047
3047
  }
3048
3048
  return (e, t) => (q(), B(Ie(Ve.value), ke(Te(He.value)), Ce({
3049
- default: Q(() => [U("section", { class: Oe(["role-authorization-page", { "role-authorization-page--drawer": Re.value || _e.value }]) }, [D.value ? (q(), B(X(de), {
3049
+ default: Q(() => [U("section", { class: Oe(["role-authorization-page", { "role-authorization-page--drawer": Re.value || _e.value }]) }, [D.value ? (q(), B(X(me), {
3050
3050
  key: 0,
3051
- tip: X(n).t("platform.screen.RoleAuthorizationView.loading-permissions", "加载授权信息")
3052
- }, null, 8, ["tip"])) : ae.value ? (q(), B(X(oe), {
3051
+ tip: X(r).t("platform.screen.RoleAuthorizationView.loading-permissions", "加载授权信息")
3052
+ }, null, 8, ["tip"])) : ie.value ? (q(), B(X(re), {
3053
3053
  key: 1,
3054
- title: X(n).t("platform.screen.RoleAuthorizationView.failed-to-load-the-permissions-page", "授权页加载失败"),
3055
- message: ae.value
3056
- }, null, 8, ["title", "message"])) : he.value ? (q(), B(X(p), {
3054
+ title: X(r).t("platform.screen.RoleAuthorizationView.failed-to-load-the-permissions-page", "授权页加载失败"),
3055
+ message: ie.value
3056
+ }, null, 8, ["title", "message"])) : I.value ? (q(), B(X(m), {
3057
3057
  key: 2,
3058
- title: X(n).t("platform.screen.RoleAuthorizationView.role-groups-do-not-have-separate-permissions", "角色组不独立授权"),
3059
- description: X(n).t("platform.screen.RoleAuthorizationView.role-groups-combine-their-member-roles-configure-action-and-data", "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。")
3060
- }, null, 8, ["title", "description"])) : ge.value && C.value ? (q(), B(X(x), {
3058
+ title: X(r).t("platform.screen.RoleAuthorizationView.role-groups-do-not-have-separate-permissions", "角色组不独立授权"),
3059
+ description: X(r).t("platform.screen.RoleAuthorizationView.role-groups-combine-their-member-roles-configure-action-and-data", "角色组只组合成员角色;请到成员角色分别配置动作和数据权限。")
3060
+ }, null, 8, ["title", "description"])) : ge.value && w.value ? (q(), B(X(k), {
3061
3061
  key: 3,
3062
3062
  class: "data-grant-content",
3063
- title: Be.value ? X(n).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : X(n).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: ve.value }),
3063
+ title: Be.value ? X(r).t("platform.screen.RoleAuthorizationView.data-permission-template", "数据权限模板") : X(r).t("platform.screen.RoleAuthorizationView.data-permission-template-value", "数据权限模板 - {value1}", { value1: ve.value }),
3064
3064
  searchable: !1,
3065
3065
  onRefresh: Ze
3066
3066
  }, {
3067
- default: Q(() => [U("header", Bn, [U("div", null, [U("h3", null, Y(X(n).t("platform.screen.RoleAuthorizationView.data-scope-templates-for-standard-actions", "标准动作的数据范围模板")), 1), U("p", null, Y(X(n).t("platform.screen.RoleAuthorizationView.a-template-takes-effect-only-when-a-standard-role-action", "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")), 1)]), ze.value ? V("v-if", !0) : (q(), B(X(_), {
3067
+ default: Q(() => [U("header", Bn, [U("div", null, [U("h3", null, Y(X(r).t("platform.screen.RoleAuthorizationView.data-scope-templates-for-standard-actions", "标准动作的数据范围模板")), 1), U("p", null, Y(X(r).t("platform.screen.RoleAuthorizationView.a-template-takes-effect-only-when-a-standard-role-action", "模板只会在具体任职的普通角色动作选择“继承数据授权角色”时生效。")), 1)]), ze.value ? V("v-if", !0) : (q(), B(X(v), {
3068
3068
  key: 0,
3069
3069
  type: "primary",
3070
3070
  disabled: !$.value,
3071
- loading: k.value,
3071
+ loading: A.value,
3072
3072
  onClick: dt
3073
3073
  }, {
3074
- default: Q(() => [W(Y(X(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3074
+ default: Q(() => [W(Y(X(r).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3075
3075
  _: 1
3076
- }, 8, ["disabled", "loading"]))]), G(X(E), {
3076
+ }, 8, ["disabled", "loading"]))]), G(X(T), {
3077
3077
  columns: Ne.value,
3078
3078
  rows: Fe.value,
3079
3079
  "row-key": "actionCode",
3080
3080
  "horizontal-scroll": ""
3081
3081
  }, {
3082
- cell: Q(({ column: e, record: t }) => [e.key === "title" ? (q(), H(R, { key: 0 }, [U("strong", null, Y(t.title || t.actionCode), 1), U("small", null, Y(t.actionCode), 1)], 64)) : e.key === "configured" ? (q(), B(X(ee), {
3082
+ cell: Q(({ column: e, record: t }) => [e.key === "title" ? (q(), H(R, { key: 0 }, [U("strong", null, Y(t.title || t.actionCode), 1), U("small", null, Y(t.actionCode), 1)], 64)) : e.key === "configured" ? (q(), B(X(ce), {
3083
3083
  key: 1,
3084
3084
  checked: !!t.configured,
3085
- disabled: k.value,
3085
+ disabled: A.value,
3086
3086
  onChange: (e) => t.configured = e
3087
3087
  }, null, 8, [
3088
3088
  "checked",
3089
3089
  "disabled",
3090
3090
  "onChange"
3091
- ])) : (q(), B(X(ne), {
3091
+ ])) : (q(), B(X(te), {
3092
3092
  key: 2,
3093
3093
  value: t.dataScopePolicy,
3094
3094
  options: we.value,
3095
- disabled: !t.configured || k.value,
3096
- placeholder: X(n).t("platform.screen.RoleAuthorizationView.select-a-data-scope", "请选择数据范围"),
3095
+ disabled: !t.configured || A.value,
3096
+ placeholder: X(r).t("platform.screen.RoleAuthorizationView.select-a-data-scope", "请选择数据范围"),
3097
3097
  "allow-clear": !1,
3098
3098
  "onUpdate:value": (e) => t.dataScopePolicy = String(e || "")
3099
3099
  }, null, 8, [
@@ -3109,19 +3109,19 @@ var Bn = { class: "panel-title" }, Vn = {
3109
3109
  }, 8, ["title"])) : (q(), H("section", {
3110
3110
  key: 4,
3111
3111
  class: Oe(["authorization-layout", { "authorization-layout--compact-actions": !De.value }])
3112
- }, [G(X(x), {
3113
- "search-keyword": b.value,
3114
- "onUpdate:searchKeyword": t[1] ||= (e) => b.value = e,
3112
+ }, [G(X(k), {
3113
+ "search-keyword": S.value,
3114
+ "onUpdate:searchKeyword": t[1] ||= (e) => S.value = e,
3115
3115
  class: "module-panel",
3116
- title: X(n).t("platform.screen.RoleAuthorizationView.module-tree", "模块树"),
3117
- "refresh-title": X(n).t("platform.screen.RoleAuthorizationView.refresh-module-directory", "刷新模块目录"),
3118
- "search-placeholder": X(n).t("platform.screen.RoleAuthorizationView.search-module-names-or-aliases", "搜索模块名称或别名"),
3116
+ title: X(r).t("platform.screen.RoleAuthorizationView.module-tree", "模块树"),
3117
+ "refresh-title": X(r).t("platform.screen.RoleAuthorizationView.refresh-module-directory", "刷新模块目录"),
3118
+ "search-placeholder": X(r).t("platform.screen.RoleAuthorizationView.search-module-names-or-aliases", "搜索模块名称或别名"),
3119
3119
  onRefresh: Ze
3120
3120
  }, {
3121
- default: Q(() => [G(X(me), {
3121
+ default: Q(() => [G(X(pe), {
3122
3122
  records: Se.value,
3123
- "selected-id": y.value,
3124
- onSelect: t[0] ||= (e) => y.value = e.id
3123
+ "selected-id": x.value,
3124
+ onSelect: t[0] ||= (e) => x.value = e.id
3125
3125
  }, null, 8, ["records", "selected-id"])]),
3126
3126
  _: 1
3127
3127
  }, 8, [
@@ -3129,15 +3129,15 @@ var Bn = { class: "panel-title" }, Vn = {
3129
3129
  "title",
3130
3130
  "refresh-title",
3131
3131
  "search-placeholder"
3132
- ]), G(X(x), {
3132
+ ]), G(X(k), {
3133
3133
  class: "action-panel",
3134
3134
  title: be.value,
3135
3135
  searchable: !1
3136
3136
  }, Ce({
3137
- default: Q(() => [O.value ? (q(), B(X(de), {
3137
+ default: Q(() => [O.value ? (q(), B(X(me), {
3138
3138
  key: 0,
3139
- tip: X(n).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作")
3140
- }, null, 8, ["tip"])) : y.value ? (q(), B(X(E), {
3139
+ tip: X(r).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作")
3140
+ }, null, 8, ["tip"])) : x.value ? (q(), B(X(T), {
3141
3141
  key: 2,
3142
3142
  columns: Me.value,
3143
3143
  rows: Pe.value,
@@ -3145,31 +3145,31 @@ var Bn = { class: "panel-title" }, Vn = {
3145
3145
  "fill-height": "",
3146
3146
  "horizontal-scroll": ""
3147
3147
  }, {
3148
- header: Q(({ column: e }) => [e.key === "granted" ? (q(), H("span", Vn, [G(X(v), {
3148
+ header: Q(({ column: e }) => [e.key === "granted" ? (q(), H("span", Vn, [G(X(h), {
3149
3149
  checked: Ke.value,
3150
3150
  indeterminate: qe.value,
3151
- disabled: k.value || !S.value.length,
3152
- "aria-label": X(n).t("platform.screen.RoleAuthorizationView.grant-all-actions-in-the-current-module", "全选当前模块动作授权"),
3151
+ disabled: A.value || !C.value.length,
3152
+ "aria-label": X(r).t("platform.screen.RoleAuthorizationView.grant-all-actions-in-the-current-module", "全选当前模块动作授权"),
3153
3153
  onChange: et
3154
3154
  }, null, 8, [
3155
3155
  "checked",
3156
3156
  "indeterminate",
3157
3157
  "disabled",
3158
3158
  "aria-label"
3159
- ]), W(" " + Y(X(n).t("platform.page-action.MANAGE_PERMISSIONS.title", "授权")), 1)])) : (q(), H(R, { key: 1 }, [W(Y(e.title), 1)], 64))]),
3160
- cell: Q(({ column: e, record: t }) => [e.key === "title" ? (q(), H(R, { key: 0 }, [U("strong", null, Y(t.title || t.actionCode), 1), U("small", null, Y(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (q(), B(X(v), {
3159
+ ]), W(" " + Y(X(r).t("platform.page-action.MANAGE_PERMISSIONS.title", "授权")), 1)])) : (q(), H(R, { key: 1 }, [W(Y(e.title), 1)], 64))]),
3160
+ cell: Q(({ column: e, record: t }) => [e.key === "title" ? (q(), H(R, { key: 0 }, [U("strong", null, Y(t.title || t.actionCode), 1), U("small", null, Y(t.permissionActionCode || t.actionCode), 1)], 64)) : e.key === "granted" ? (q(), B(X(h), {
3161
3161
  key: 1,
3162
3162
  checked: !!t.granted,
3163
- disabled: k.value,
3163
+ disabled: A.value,
3164
3164
  onChange: (e) => $e(t, e)
3165
3165
  }, null, 8, [
3166
3166
  "checked",
3167
3167
  "disabled",
3168
3168
  "onChange"
3169
- ])) : t.dataAuth && L.value && t.granted ? (q(), H("div", Hn, [G(X(ne), {
3169
+ ])) : t.dataAuth && L.value && t.granted ? (q(), H("div", Hn, [G(X(te), {
3170
3170
  value: at(t),
3171
3171
  options: we.value,
3172
- disabled: k.value,
3172
+ disabled: A.value,
3173
3173
  "allow-clear": !1,
3174
3174
  "onUpdate:value": (e) => tt(t, e)
3175
3175
  }, null, 8, [
@@ -3177,11 +3177,11 @@ var Bn = { class: "panel-title" }, Vn = {
3177
3177
  "options",
3178
3178
  "disabled",
3179
3179
  "onUpdate:value"
3180
- ]), t.dataScopePolicy === "referenceDependency" ? (q(), H(R, { key: 0 }, [G(X(ne), {
3180
+ ]), t.dataScopePolicy === "referenceDependency" ? (q(), H(R, { key: 0 }, [G(X(te), {
3181
3181
  value: it(t.referenceFieldId),
3182
3182
  options: K.value,
3183
- disabled: k.value,
3184
- placeholder: X(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field", "请选择引用字段"),
3183
+ disabled: A.value,
3184
+ placeholder: X(r).t("platform.screen.RoleAuthorizationView.select-a-reference-field", "请选择引用字段"),
3185
3185
  "allow-clear": !1,
3186
3186
  "onUpdate:value": (e) => nt(t, e)
3187
3187
  }, null, 8, [
@@ -3190,42 +3190,42 @@ var Bn = { class: "panel-title" }, Vn = {
3190
3190
  "disabled",
3191
3191
  "placeholder",
3192
3192
  "onUpdate:value"
3193
- ]), t.referenceFieldId ? (q(), H("small", Un, Y(X(n).t("platform.screen.RoleAuthorizationView.dependency-target", "依赖目标:")) + Y(rt(t.referenceFieldId)?.targetModuleTitle) + " · " + Y(rt(t.referenceFieldId)?.referenceActionTitle), 1)) : (q(), H("small", Wn, Y(X(n).t("platform.screen.RoleAuthorizationView.select-a-reference-field-before-granting-this-action", "请先选择引用字段,再开启该动作授权。")), 1))], 64)) : V("v-if", !0)])) : st(e, t) ? (q(), H("span", Gn, "—")) : (q(), H("span", Kn, Y(X(n).t("platform.screen.RoleAuthorizationView.not-applicable", "不适用")), 1))]),
3193
+ ]), t.referenceFieldId ? (q(), H("small", Un, Y(X(r).t("platform.screen.RoleAuthorizationView.dependency-target", "依赖目标:")) + Y(rt(t.referenceFieldId)?.targetModuleTitle) + " · " + Y(rt(t.referenceFieldId)?.referenceActionTitle), 1)) : (q(), H("small", Wn, Y(X(r).t("platform.screen.RoleAuthorizationView.select-a-reference-field-before-granting-this-action", "请先选择引用字段,再开启该动作授权。")), 1))], 64)) : V("v-if", !0)])) : st(e, t) ? (q(), H("span", Gn, "—")) : (q(), H("span", Kn, Y(X(r).t("platform.screen.RoleAuthorizationView.not-applicable", "不适用")), 1))]),
3194
3194
  _: 1
3195
- }, 8, ["columns", "rows"])) : (q(), B(X(p), {
3195
+ }, 8, ["columns", "rows"])) : (q(), B(X(m), {
3196
3196
  key: 1,
3197
- title: X(n).t("platform.screen.useModulePageSession.select-a-module", "请选择模块")
3197
+ title: X(r).t("platform.screen.useModulePageSession.select-a-module", "请选择模块")
3198
3198
  }, null, 8, ["title"]))]),
3199
3199
  _: 2
3200
3200
  }, [ze.value ? void 0 : {
3201
3201
  name: "actions",
3202
- fn: Q(() => [G(X(_), {
3202
+ fn: Q(() => [G(X(v), {
3203
3203
  type: "primary",
3204
3204
  disabled: !$.value,
3205
- loading: k.value,
3205
+ loading: A.value,
3206
3206
  onClick: dt
3207
3207
  }, {
3208
- default: Q(() => [W(Y(X(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3208
+ default: Q(() => [W(Y(X(r).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3209
3209
  _: 1
3210
3210
  }, 8, ["disabled", "loading"])]),
3211
3211
  key: "0"
3212
3212
  }]), 1032, ["title"])], 2))], 2)]),
3213
3213
  _: 2
3214
- }, [Be.value && !he.value ? {
3214
+ }, [Be.value && !I.value ? {
3215
3215
  name: "operation",
3216
- fn: Q(() => [G(X(_), {
3216
+ fn: Q(() => [G(X(v), {
3217
3217
  type: "primary",
3218
3218
  disabled: !$.value,
3219
- loading: k.value,
3219
+ loading: A.value,
3220
3220
  onClick: dt
3221
3221
  }, {
3222
- default: Q(() => [W(Y(X(n).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3222
+ default: Q(() => [W(Y(X(r).t("platform.screen.UiModal.confirmText", "确认")), 1)]),
3223
3223
  _: 1
3224
3224
  }, 8, ["disabled", "loading"])]),
3225
3225
  key: "0"
3226
3226
  } : void 0]), 1040));
3227
3227
  }
3228
- }), Jn = /* @__PURE__ */ e({ default: () => Yn }), Yn = /*#__PURE__*/ I(qn, [["__scopeId", "data-v-817d8433"]]), Xn = { class: "role-authorization-drawer-surface" }, Zn = /*#__PURE__*/ I(/* @__PURE__ */ K({
3228
+ }), Jn = /* @__PURE__ */ e({ default: () => Yn }), Yn = /*#__PURE__*/ D(qn, [["__scopeId", "data-v-817d8433"]]), Xn = { class: "role-authorization-drawer-surface" }, Zn = /*#__PURE__*/ D(/* @__PURE__ */ K({
3229
3229
  name: "RoleAuthorizationDrawerSurface",
3230
3230
  __name: "RoleAuthorizationDrawerSurface",
3231
3231
  props: { context: {} },
@@ -3273,12 +3273,12 @@ var Bn = { class: "panel-title" }, Vn = {
3273
3273
  form: {
3274
3274
  contributions: [{
3275
3275
  key: "role-group-members",
3276
- component: /* @__PURE__ */ I(/* @__PURE__ */ K({
3276
+ component: /* @__PURE__ */ D(/* @__PURE__ */ K({
3277
3277
  name: "RoleGroupMemberFormField",
3278
3278
  __name: "RoleGroupMemberFormField",
3279
3279
  props: { context: {} },
3280
3280
  setup(e) {
3281
- let t = P(), n = e, r = J([]), i = J(!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) => ({
3281
+ let t = M(), n = e, r = J([]), i = J(!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) => ({
3282
3282
  label: `${e.title ?? e.id} / ${e.roleKind === "dataGrant" ? t.t("platform.screen.RoleManagementView.data-authorization-role", "数据授权角色") : t.t("platform.screen.RoleManagementView.standard-role", "标准角色")}`,
3283
3283
  value: e.id,
3284
3284
  disabled: e.roleKind === "dataGrant" && c.value.size > 0 && !o.value.includes(e.id)
@@ -3337,7 +3337,7 @@ var Bn = { class: "panel-title" }, Vn = {
3337
3337
  function f(e) {
3338
3338
  return typeof e == "string" ? e.split(",").map((e) => e.trim()).filter(Boolean) : [];
3339
3339
  }
3340
- return (n, r) => a.value ? (q(), H("label", Qn, [U("span", null, Y(X(t).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), G(X(ne), {
3340
+ return (n, r) => a.value ? (q(), H("label", Qn, [U("span", null, Y(X(t).t("platform.screen.RoleManagementView.member-roles", "成员角色")), 1), G(X(te), {
3341
3341
  mode: "multiple",
3342
3342
  value: o.value,
3343
3343
  options: l.value,
@@ -3423,7 +3423,7 @@ var Bn = { class: "panel-title" }, Vn = {
3423
3423
  }
3424
3424
  ]
3425
3425
  };
3426
- r("platform-admin-runtime", We), n("platform-admin-runtime", [
3426
+ i("platform-admin-runtime", We), s("platform-admin-runtime", [
3427
3427
  nt,
3428
3428
  rt,
3429
3429
  it,