@ximatai/muyun-web-app 0.26.4 → 0.26.5

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 (25) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-BySbWjCV.js → EmployeeDetailWorkspaceView-rm9ujeiQ.js} +1 -1
  2. package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-DyYMWQ64.js} +486 -486
  3. package/dist/{MetadataOrchestrationView-2JxJkFEC.js → MetadataOrchestrationView-DaPNQML7.js} +203 -203
  4. package/dist/ModuleActionManagementView-BFoPGqzC.js +597 -0
  5. package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-qQvn7M75.js} +68 -68
  6. package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-C-vaKeZM.js} +1 -1
  7. package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-C3nxfub2.js} +486 -486
  8. package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-FIbfff00.js} +1 -1
  9. package/dist/SystemUserManagementView-m6vwJDxI.js +761 -0
  10. package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-M--ndn6x.js} +1 -1
  11. package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-MSXf4fno.js} +302 -302
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2237 -2237
  14. package/dist/{pageRealtime-CJriNmzP.js → pageRealtime-4LXXvVW7.js} +14 -14
  15. package/dist/{platform-components-CgMBopmF.js → platform-components-_3KlZZf5.js} +1166 -1168
  16. package/dist/types/consumer/index.d.ts +1 -2
  17. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
  18. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +14 -0
  19. package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -1
  20. package/dist/{useUserSessionRows-DHsyr2Vy.js → useUserSessionRows-iAqK_cUy.js} +2 -2
  21. package/dist/workspaceViewSessions-DW0wbyQ_.js +1448 -0
  22. package/package.json +1 -1
  23. package/dist/ModuleActionManagementView-DRtYMXOK.js +0 -597
  24. package/dist/SystemUserManagementView-TKqj92zG.js +0 -761
  25. package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
@@ -1,36 +1,36 @@
1
- import { $t as e, C as t, Dt as n, Et as r, G as i, It as a, Jt as o, K as s, L as ee, Lt as c, Pt as l, Qt as u, R as te, S as ne, Ut as re, X as ie, Z as ae, a as d, d as oe, et as se, ht as ce, i as le, lt as f, nr as p, on as ue, tt as de, y as fe, z as pe } from "./platform-components-CgMBopmF.js";
2
- import { g as me, i as he, m, n as h, r as g, t as _ } from "./workspaceViewSessions-BMbyO9O4.js";
3
- import { n as ge, o as v } from "./pageRealtime-CJriNmzP.js";
4
- import { n as _e } from "./currentUserContext-B1lj1WgF.js";
5
- import { t as ve } from "./useUserSessionRows-DHsyr2Vy.js";
6
- import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createTextVNode as T, createVNode as E, defineComponent as D, normalizeClass as ye, onBeforeUnmount as be, onMounted as xe, openBlock as O, ref as k, toDisplayString as A, unref as j, watch as Se, withCtx as M, withModifiers as N } from "vue";
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, K as ee, M as te, N as ne, Q as re, R as o, S as ie, St as ae, X as oe, _ as s, at as se, c as ce, ht as c, i as l, k as le, m as ue, mt as u, q as d, r as de, ut as f, v as p, vn as m, w as fe } from "./platform-components-_3KlZZf5.js";
2
+ import { g as pe, i as me, m as h, n as g, r as _, t as v } from "./workspaceViewSessions-DW0wbyQ_.js";
3
+ import { n as he, o as y } from "./pageRealtime-4LXXvVW7.js";
4
+ import { n as ge } from "./currentUserContext-B1lj1WgF.js";
5
+ import { t as _e } from "./useUserSessionRows-iAqK_cUy.js";
6
+ import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createTextVNode as E, createVNode as D, defineComponent as O, normalizeClass as ve, onBeforeUnmount as ye, onMounted as be, openBlock as k, ref as A, toDisplayString as j, unref as M, watch as N, withCtx as P, withModifiers as F } from "vue";
7
7
  //#region src/platform-admin-runtime/sessionRecovery.ts
8
- var P;
9
- function F(e, t) {
10
- return P?.(e, t) ?? !1;
8
+ var I;
9
+ function L(e, t) {
10
+ return I?.(e, t) ?? !1;
11
11
  }
12
12
  //#endregion
13
13
  //#region src/platform-admin-runtime/backendHttp.ts
14
- function Ce(e = {}) {
15
- return p({
14
+ function xe(e = {}) {
15
+ return m({
16
16
  baseUrl: void 0,
17
- token: e.withAuth === !1 ? void 0 : v(void 0),
18
- credentials: we(void 0),
19
- onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => F(e, t)
17
+ token: e.withAuth === !1 ? void 0 : y(void 0),
18
+ credentials: Se(void 0),
19
+ onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => L(e, t)
20
20
  });
21
21
  }
22
- function we(e) {
22
+ function Se(e) {
23
23
  return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
24
24
  }
25
25
  //#endregion
26
26
  //#region src/views/UserDetailContent.vue?vue&type=script&setup=true&lang.ts
27
- var Te = {
27
+ var Ce = {
28
28
  key: 1,
29
29
  class: "user-detail-state"
30
- }, Ee = {
30
+ }, we = {
31
31
  key: 1,
32
32
  class: "user-password-reset-result"
33
- }, De = { key: 0 }, I = { key: 1 }, Oe = { class: "user-form-label" }, ke = /*#__PURE__*/ e(/* @__PURE__ */ D({
33
+ }, Te = { key: 0 }, R = { key: 1 }, Ee = { class: "user-form-label" }, De = /*#__PURE__*/ c(/* @__PURE__ */ O({
34
34
  name: "UserDetailContent",
35
35
  __name: "UserDetailContent",
36
36
  props: {
@@ -55,61 +55,61 @@ var Te = {
55
55
  "update:field",
56
56
  "update:password"
57
57
  ],
58
- setup(e, { emit: n }) {
58
+ setup(t, { emit: n }) {
59
59
  let r = n;
60
- return (n, i) => e.loading ? (O(), x(j(c), {
60
+ return (n, a) => t.loading ? (k(), S(M(e), {
61
61
  key: 0,
62
62
  class: "user-detail-state",
63
63
  tip: "加载用户详情"
64
- })) : e.loadFailed ? (O(), C("div", Te, [E(j(a), {
64
+ })) : t.loadFailed ? (k(), w("div", Ce, [D(M(re), {
65
65
  title: "详情加载失败",
66
66
  message: "无法加载用户详情,请重试"
67
- }), E(j(u), {
67
+ }), D(M(u), {
68
68
  type: "primary",
69
69
  "icon-name": "reload",
70
- onClick: i[0] ||= (e) => r("retry")
70
+ onClick: a[0] ||= (e) => r("retry")
71
71
  }, {
72
- default: M(() => [...i[4] ||= [T("重试", -1)]]),
72
+ default: P(() => [...a[4] ||= [E("重试", -1)]]),
73
73
  _: 1
74
- })])) : e.mode === "view" || e.mode === "create" || e.selectedUser ? (O(), C(y, { key: 2 }, [
75
- e.mode === "view" ? (O(), x(j(s), {
74
+ })])) : t.mode === "view" || t.mode === "create" || t.selectedUser ? (k(), w(b, { key: 2 }, [
75
+ t.mode === "view" ? (k(), S(M(i), {
76
76
  key: 0,
77
- record: e.draft,
78
- fields: e.fields,
79
- fallback: e.fallback,
80
- "display-of": e.displayOf
77
+ record: t.draft,
78
+ fields: t.fields,
79
+ fallback: t.fallback,
80
+ "display-of": t.displayOf
81
81
  }, null, 8, [
82
82
  "record",
83
83
  "fields",
84
84
  "fallback",
85
85
  "display-of"
86
- ])) : S("v-if", !0),
87
- e.mode === "view" && e.resetPasswordResult?.temporaryPassword ? (O(), C("div", Ee, [
88
- i[6] ||= w("span", null, "临时密码", -1),
89
- E(j(o), {
90
- value: e.resetPasswordResult.temporaryPassword,
86
+ ])) : C("v-if", !0),
87
+ t.mode === "view" && t.resetPasswordResult?.temporaryPassword ? (k(), w("div", we, [
88
+ a[6] ||= T("span", null, "临时密码", -1),
89
+ D(M(f), {
90
+ value: t.resetPasswordResult.temporaryPassword,
91
91
  disabled: ""
92
92
  }, null, 8, ["value"]),
93
- e.resetPasswordResult.expiresAt ? (O(), C("small", De, [i[5] ||= T(" 有效期至 ", -1), E(j(f), { value: e.resetPasswordResult.expiresAt }, null, 8, ["value"])])) : S("v-if", !0)
94
- ])) : S("v-if", !0),
95
- e.mode === "view" ? S("v-if", !0) : (O(), C("form", {
93
+ t.resetPasswordResult.expiresAt ? (k(), w("small", Te, [a[5] ||= E(" 有效期至 ", -1), D(M(o), { value: t.resetPasswordResult.expiresAt }, null, 8, ["value"])])) : C("v-if", !0)
94
+ ])) : C("v-if", !0),
95
+ t.mode === "view" ? C("v-if", !0) : (k(), w("form", {
96
96
  key: 2,
97
97
  class: "user-form",
98
- onSubmit: i[3] ||= N((e) => r("save"), ["prevent"])
98
+ onSubmit: a[3] ||= F((e) => r("save"), ["prevent"])
99
99
  }, [
100
- w("label", null, [i[7] ||= w("span", { class: "user-form-label" }, "当前租户", -1), E(j(o), {
101
- value: e.tenantTitle,
100
+ T("label", null, [a[7] ||= T("span", { class: "user-form-label" }, "当前租户", -1), D(M(f), {
101
+ value: t.tenantTitle,
102
102
  disabled: ""
103
103
  }, null, 8, ["value"])]),
104
- e.mode === "resetPassword" ? S("v-if", !0) : (O(), x(j(t), {
104
+ t.mode === "resetPassword" ? C("v-if", !0) : (k(), S(M(p), {
105
105
  key: 0,
106
- record: e.draft,
107
- "field-names": e.fieldNames,
108
- fields: e.fields,
109
- fallback: e.fallback,
110
- disabled: e.saving,
111
- "disabled-of": e.disabledOf,
112
- "onUpdate:field": i[1] ||= (e, t) => r("update:field", e, t)
106
+ record: t.draft,
107
+ "field-names": t.fieldNames,
108
+ fields: t.fields,
109
+ fallback: t.fallback,
110
+ disabled: t.saving,
111
+ "disabled-of": t.disabledOf,
112
+ "onUpdate:field": a[1] ||= (e, t) => r("update:field", e, t)
113
113
  }, null, 8, [
114
114
  "record",
115
115
  "field-names",
@@ -118,52 +118,52 @@ var Te = {
118
118
  "disabled",
119
119
  "disabled-of"
120
120
  ])),
121
- e.mode === "create" || e.mode === "resetPassword" ? (O(), C("label", I, [w("span", Oe, A(e.mode === "create" ? "初始密码" : "新密码"), 1), E(j(o), {
122
- value: e.password,
121
+ t.mode === "create" || t.mode === "resetPassword" ? (k(), w("label", R, [T("span", Ee, j(t.mode === "create" ? "初始密码" : "新密码"), 1), D(M(f), {
122
+ value: t.password,
123
123
  type: "password",
124
- disabled: e.saving,
124
+ disabled: t.saving,
125
125
  placeholder: "请输入密码",
126
126
  "allow-clear": "",
127
- "onUpdate:value": i[2] ||= (e) => r("update:password", e)
128
- }, null, 8, ["value", "disabled"])])) : S("v-if", !0)
127
+ "onUpdate:value": a[2] ||= (e) => r("update:password", e)
128
+ }, null, 8, ["value", "disabled"])])) : C("v-if", !0)
129
129
  ], 32)),
130
- e.mode !== "create" && e.mode !== "resetPassword" ? (O(), x(j(ne), {
130
+ t.mode !== "create" && t.mode !== "resetPassword" ? (k(), S(M(s), {
131
131
  key: 3,
132
- record: e.draft
133
- }, null, 8, ["record"])) : S("v-if", !0)
134
- ], 64)) : S("v-if", !0);
132
+ record: t.draft
133
+ }, null, 8, ["record"])) : C("v-if", !0)
134
+ ], 64)) : C("v-if", !0);
135
135
  }
136
136
  }), [["__scopeId", "data-v-621edc75"]]);
137
137
  //#endregion
138
138
  //#region src/views/userDetailWorkspaceSession.ts
139
- function Ae(e, t) {
140
- return _(m, e, {
139
+ function Oe(e, t) {
140
+ return v(h, e, {
141
141
  ...t,
142
142
  selectedUser: { ...t.selectedUser },
143
143
  draft: { ...t.draft },
144
144
  tenant: t.tenant ? { ...t.tenant } : void 0
145
145
  });
146
146
  }
147
- function je(e, t) {
148
- return h(m, e, t);
147
+ function ke(e, t) {
148
+ return g(h, e, t);
149
149
  }
150
- function Me(e) {
151
- return g(m, e);
150
+ function Ae(e) {
151
+ return _(h, e);
152
152
  }
153
153
  //#endregion
154
154
  //#region src/views/userDetailStateModel.ts
155
- function Ne(e) {
155
+ function je(e) {
156
156
  return !e;
157
157
  }
158
- function Pe(e) {
158
+ function Me(e) {
159
159
  return e.activeRequestSeq === e.requestSeq && e.selectedUserKey === e.recordId;
160
160
  }
161
- function Fe(e) {
161
+ function Ne(e) {
162
162
  return e === "edit" ? "edit" : "view";
163
163
  }
164
164
  //#endregion
165
165
  //#region src/views/UserManagementView.vue
166
- var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
166
+ var Pe = /*#__PURE__*/ c(/* @__PURE__ */ O({
167
167
  name: "UserManagementView",
168
168
  __name: "UserManagementView",
169
169
  props: {
@@ -171,10 +171,10 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
171
171
  mode: {}
172
172
  },
173
173
  setup(e) {
174
- let t = e, a = ue({ moduleAlias: "iam.tenant" }), o = ue({ moduleAlias: "iam.user" }), s = _e(), c = me(), u = k(""), ne = k(0), f = k(0), p = k(), h = k(), g = k(), _ = k(!1), v = k("view"), y = k(!1), w = k(!1), T = k(!1), D = k(0), A = k(X(void 0)), N = k(""), P = k(), F = k(ae(void 0)), { expandedUserKeys: we, handleUserListLoaded: Te, handleUserRowExpand: Ee, handleUserSessionBusinessEvent: De, loadUserSessions: I, resetUserSessionRows: Oe, userOnlineStatusTitle: Ie, userSessionState: L } = ve({
174
+ let i = e, re = ae({ moduleAlias: "iam.tenant" }), o = ae({ moduleAlias: "iam.user" }), s = ge(), c = pe(), u = A(""), f = A(0), p = A(0), m = A(), g = A(), _ = A(), v = A(!1), y = A("view"), b = A(!1), T = A(!1), E = A(!1), O = A(0), j = A(X(void 0)), F = A(""), I = A(), L = A(t(void 0)), { expandedUserKeys: Se, handleUserListLoaded: Ce, handleUserRowExpand: we, handleUserSessionBusinessEvent: Te, loadUserSessions: R, resetUserSessionRows: Ee, userOnlineStatusTitle: Pe, userSessionState: z } = _e({
175
175
  context: o,
176
176
  source: "user-management"
177
- }), Le = b(() => a), R = b(() => !!t.recordId), z = b(() => R.value && c?.presentation === "drawer"), Re = b(() => !R.value || z.value), B = b(() => s?.value?.system === !0), V = b(() => {
177
+ }), Fe = x(() => re), B = x(() => !!i.recordId), V = x(() => B.value && c?.presentation === "drawer"), Ie = x(() => !B.value || V.value), H = x(() => s?.value?.system === !0), U = x(() => {
178
178
  let e = s?.value?.tenantId;
179
179
  if (!(s?.value?.system === !0 || !e)) return {
180
180
  id: e,
@@ -182,7 +182,7 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
182
182
  alias: e,
183
183
  enabled: !0
184
184
  };
185
- }), ze = b(() => $e(o, p.value)), Be = b(() => [
185
+ }), Le = x(() => $e(o, m.value)), Re = x(() => [
186
186
  {
187
187
  key: "username",
188
188
  title: "账号",
@@ -222,38 +222,38 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
222
222
  type: "datetime",
223
223
  width: "180px"
224
224
  }
225
- ]), Ve = b(() => !!p.value?.id), He = b(() => p.value ? `用户列表 - ${$(p.value)}` : "用户列表"), Ue = b(() => v.value === "create" ? "新建用户" : Dt(g.value ?? A.value)), We = b(() => {
226
- if (v.value !== "create") return Ot(g.value ?? A.value);
227
- }), H = b(() => {
228
- if (y.value) return !1;
229
- if (v.value === "create") return !!p.value?.id && o.can("create") === !0;
230
- if (v.value === "edit") return !!g.value?.id && o.can("update") === !0;
231
- if (v.value === "resetPassword") {
232
- let e = g.value?.id;
225
+ ]), ze = x(() => !!m.value?.id), Be = x(() => m.value ? `用户列表 - ${$(m.value)}` : "用户列表"), Ve = x(() => y.value === "create" ? "新建用户" : Dt(_.value ?? j.value)), He = x(() => {
226
+ if (y.value !== "create") return Ot(_.value ?? j.value);
227
+ }), W = x(() => {
228
+ if (b.value) return !1;
229
+ if (y.value === "create") return !!m.value?.id && o.can("create") === !0;
230
+ if (y.value === "edit") return !!_.value?.id && o.can("update") === !0;
231
+ if (y.value === "resetPassword") {
232
+ let e = _.value?.id;
233
233
  return !!e && o.can("changePassword", e) === !0;
234
234
  }
235
235
  return !1;
236
- }), U = b(() => !g.value?.id || y.value ? !1 : o.can(Et(g.value)) === !0), Ge = b(() => v.value === "view" ? g.value?.id ? [
236
+ }), Ue = x(() => !_.value?.id || b.value ? !1 : o.can(Et(_.value)) === !0), We = x(() => y.value === "view" ? _.value?.id ? [
237
237
  {
238
238
  key: "edit",
239
239
  actionCode: "update",
240
240
  title: "编辑",
241
241
  iconName: "edit",
242
- disabled: T.value
242
+ disabled: E.value
243
243
  },
244
244
  {
245
245
  key: "resetPassword",
246
246
  actionCode: "changePassword",
247
247
  title: "修改密码",
248
248
  iconName: "lock",
249
- disabled: T.value
249
+ disabled: E.value
250
250
  },
251
251
  {
252
252
  key: "resetGeneratedPassword",
253
253
  actionCode: "resetPassword",
254
254
  title: "重置密码",
255
255
  iconName: "reload",
256
- disabled: T.value
256
+ disabled: E.value
257
257
  },
258
258
  {
259
259
  key: "delete",
@@ -261,68 +261,68 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
261
261
  title: "删除",
262
262
  iconName: "delete",
263
263
  danger: !0,
264
- disabled: T.value
264
+ disabled: E.value
265
265
  }
266
266
  ] : [] : [{
267
267
  key: "cancel",
268
268
  title: "取消",
269
269
  iconName: "close",
270
- disabled: T.value
270
+ disabled: E.value
271
271
  }, {
272
272
  key: "save",
273
- actionCode: v.value === "create" ? "create" : v.value === "resetPassword" ? "changePassword" : "update",
273
+ actionCode: y.value === "create" ? "create" : y.value === "resetPassword" ? "changePassword" : "update",
274
274
  title: "保存",
275
275
  iconName: "save",
276
276
  primary: !0,
277
- loading: T.value,
278
- disabled: !H.value
279
- }]), Ke = b(() => Ge.value), qe = b(() => v.value === "view" ? g.value?.id ? [{
277
+ loading: E.value,
278
+ disabled: !W.value
279
+ }]), Ge = x(() => We.value), Ke = x(() => y.value === "view" ? _.value?.id ? [{
280
280
  key: "edit",
281
281
  actionCode: "update",
282
282
  title: "编辑",
283
283
  iconName: "edit",
284
- disabled: T.value
285
- }] : [] : v.value === "edit" ? [{
284
+ disabled: E.value
285
+ }] : [] : y.value === "edit" ? [{
286
286
  key: "cancel",
287
287
  title: "取消",
288
288
  iconName: "close",
289
- disabled: T.value
289
+ disabled: E.value
290
290
  }, {
291
291
  key: "save",
292
292
  actionCode: "update",
293
293
  title: "保存",
294
294
  iconName: "save",
295
295
  primary: !0,
296
- loading: T.value,
297
- disabled: !H.value
298
- }] : []), Je = he({
299
- view: m,
300
- input: b(() => {
301
- let e = g.value?.id, t = v.value;
296
+ loading: E.value,
297
+ disabled: !W.value
298
+ }] : []), qe = me({
299
+ view: h,
300
+ input: x(() => {
301
+ let e = _.value?.id, t = y.value;
302
302
  return e && (t === "view" || t === "edit") ? { recordId: e } : void 0;
303
303
  }),
304
- title: b(() => Dt(g.value)),
305
- eligibility: b(() => ({
306
- hasStableIdentity: !!g.value?.id && !y.value,
307
- busy: T.value
304
+ title: x(() => Dt(_.value)),
305
+ eligibility: x(() => ({
306
+ hasStableIdentity: !!_.value?.id && !b.value,
307
+ busy: E.value
308
308
  })),
309
309
  beforePromote: async (e) => {
310
- let t = g.value;
311
- if (t) return await Ae(e, {
310
+ let t = _.value;
311
+ if (t) return await Oe(e, {
312
312
  selectedUser: t,
313
- draft: A.value,
314
- tenant: p.value,
315
- mode: v.value === "edit" ? "edit" : "view",
316
- password: N.value,
317
- resetPasswordResult: P.value
313
+ draft: j.value,
314
+ tenant: m.value,
315
+ mode: y.value === "edit" ? "edit" : "view",
316
+ password: F.value,
317
+ resetPasswordResult: I.value
318
318
  }) === "accepted";
319
319
  },
320
320
  onPromoted: K
321
321
  });
322
- Se(g, (e) => {
323
- !R.value || !e || c?.setTitle(Dt(e));
322
+ N(_, (e) => {
323
+ !B.value || !e || c?.setTitle(Dt(e));
324
324
  }, { immediate: !0 });
325
- let W = b(() => ({
325
+ let Je = x(() => ({
326
326
  username: {
327
327
  label: "账号",
328
328
  required: !0,
@@ -334,30 +334,30 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
334
334
  visible: !0,
335
335
  controlType: "enabledStatus"
336
336
  }
337
- })), Ye = b(() => ["username", "enabled"]), Xe;
338
- xe(() => {
339
- if (Qe(), t.recordId) {
340
- let e = { recordId: t.recordId };
341
- z.value || (Xe = je(e, Ze));
342
- let n = Me(e);
343
- if (n) {
344
- yt(n);
337
+ })), Ye = x(() => ["username", "enabled"]), Xe;
338
+ be(() => {
339
+ if (Qe(), i.recordId) {
340
+ let e = { recordId: i.recordId };
341
+ V.value || (Xe = ke(e, Ze));
342
+ let t = Ae(e);
343
+ if (t) {
344
+ yt(t);
345
345
  return;
346
346
  }
347
- G({ id: t.recordId }, t.mode ?? "view");
347
+ G({ id: i.recordId }, i.mode ?? "view");
348
348
  }
349
- }), be(() => Xe?.());
349
+ }), ye(() => Xe?.());
350
350
  function Ze(e) {
351
- return v.value === "view" ? (yt(e), !0) : !1;
351
+ return y.value === "view" ? (yt(e), !0) : !1;
352
352
  }
353
- ge(De), Se(V, nt, { immediate: !0 }), Se(p, () => {
354
- R.value || (h.value = void 0, g.value = void 0, Oe(), A.value = X(p.value), K(), f.value += 1);
353
+ he(Te), N(U, nt, { immediate: !0 }), N(m, () => {
354
+ B.value || (g.value = void 0, _.value = void 0, Ee(), j.value = X(m.value), K(), p.value += 1);
355
355
  });
356
356
  async function Qe() {
357
357
  try {
358
- F.value = ae((await o.runtime.ready).uiDescriptor);
358
+ L.value = t((await o.runtime.ready).uiDescriptor);
359
359
  } catch (e) {
360
- r(e, {
360
+ ee(e, {
361
361
  source: "user-management",
362
362
  phase: "load"
363
363
  });
@@ -384,13 +384,13 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
384
384
  };
385
385
  }
386
386
  function tt(e) {
387
- !B.value || p.value || e.length > 0 && rt(e[0]);
387
+ !H.value || m.value || e.length > 0 && rt(e[0]);
388
388
  }
389
- function nt(e = V.value) {
390
- R.value || !e || B.value || p.value || (p.value = e);
389
+ function nt(e = U.value) {
390
+ B.value || !e || H.value || m.value || (m.value = e);
391
391
  }
392
392
  function rt(e) {
393
- q() && (p.value = e);
393
+ q() && (m.value = e);
394
394
  }
395
395
  function it(e) {
396
396
  e.key === "create" && st();
@@ -413,58 +413,58 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
413
413
  }
414
414
  function st() {
415
415
  if (q()) {
416
- if (!p.value?.id) {
417
- n("请先选择租户", { phase: "validation" });
416
+ if (!m.value?.id) {
417
+ d("请先选择租户", { phase: "validation" });
418
418
  return;
419
419
  }
420
- g.value = void 0, h.value = void 0, A.value = X(p.value), N.value = "", v.value = "create", y.value = !1, w.value = !1, D.value += 1, _.value = !0;
420
+ _.value = void 0, g.value = void 0, j.value = X(m.value), F.value = "", y.value = "create", b.value = !1, T.value = !1, O.value += 1, v.value = !0;
421
421
  }
422
422
  }
423
423
  async function G(e, t) {
424
424
  if (!q()) return;
425
- let i = String(e.id ?? "");
426
- if (!i) return;
427
- h.value = i, _.value = !0, v.value = t, g.value = void 0, A.value = Z(e), N.value = "", P.value = void 0, y.value = !0, w.value = !1;
428
- let a = D.value + 1;
429
- D.value = a;
425
+ let n = String(e.id ?? "");
426
+ if (!n) return;
427
+ g.value = n, v.value = !0, y.value = t, _.value = void 0, j.value = Z(e), F.value = "", I.value = void 0, b.value = !0, T.value = !1;
428
+ let r = O.value + 1;
429
+ O.value = r;
430
430
  try {
431
- let e = await o.crud.view(i);
432
- if (!J(i, a)) return;
431
+ let e = await o.crud.view(n);
432
+ if (!J(n, r)) return;
433
433
  if (!e?.id) {
434
- w.value = !0, n("未找到指定用户", {
434
+ T.value = !0, d("未找到指定用户", {
435
435
  source: "user-management",
436
436
  phase: "load"
437
437
  });
438
438
  return;
439
439
  }
440
- let r = await ct(i);
441
- if (!J(i, a)) return;
440
+ let i = await ct(n);
441
+ if (!J(n, r)) return;
442
442
  Y({
443
443
  ...e,
444
- ...r
444
+ ...i
445
445
  }, t);
446
446
  } catch (e) {
447
- J(i, a) && (w.value = !0, r(e, {
447
+ J(n, r) && (T.value = !0, ee(e, {
448
448
  source: "user-management",
449
449
  phase: "load"
450
450
  }));
451
451
  } finally {
452
- J(i, a) && (y.value = !1);
452
+ J(n, r) && (b.value = !1);
453
453
  }
454
454
  }
455
455
  function ct(e) {
456
- return Ce().request({ path: `/iam.user/${encodeURIComponent(e)}/employee-binding` });
456
+ return xe().request({ path: `/iam.user/${encodeURIComponent(e)}/employee-binding` });
457
457
  }
458
458
  function K() {
459
- T.value || (D.value += 1, y.value = !1, w.value = !1, _.value = !1, v.value = "view", N.value = "", P.value = void 0, A.value = g.value ? Z(g.value) : X(p.value), z.value && c?.dismiss());
459
+ E.value || (O.value += 1, b.value = !1, T.value = !1, v.value = !1, y.value = "view", F.value = "", I.value = void 0, j.value = _.value ? Z(_.value) : X(m.value), V.value && c?.dismiss());
460
460
  }
461
461
  function lt() {
462
- if (!T.value) {
463
- if (!g.value?.id || v.value === "create") {
462
+ if (!E.value) {
463
+ if (!_.value?.id || y.value === "create") {
464
464
  K();
465
465
  return;
466
466
  }
467
- A.value = Z(g.value), N.value = "", P.value = void 0, v.value = "view", y.value = !1, w.value = !1;
467
+ j.value = Z(_.value), F.value = "", I.value = void 0, y.value = "view", b.value = !1, T.value = !1;
468
468
  }
469
469
  }
470
470
  function ut(e) {
@@ -477,72 +477,72 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
477
477
  return;
478
478
  }
479
479
  if (q()) {
480
- if (e.key === "edit" && g.value) {
481
- A.value = Z(g.value), v.value = "edit";
480
+ if (e.key === "edit" && _.value) {
481
+ j.value = Z(_.value), y.value = "edit";
482
482
  return;
483
483
  }
484
- if (e.key === "resetPassword" && g.value) {
485
- N.value = "", P.value = void 0, v.value = "resetPassword";
484
+ if (e.key === "resetPassword" && _.value) {
485
+ F.value = "", I.value = void 0, y.value = "resetPassword";
486
486
  return;
487
487
  }
488
- if (e.key === "resetGeneratedPassword" && g.value) {
488
+ if (e.key === "resetGeneratedPassword" && _.value) {
489
489
  mt();
490
490
  return;
491
491
  }
492
- e.key === "delete" && vt(g.value);
492
+ e.key === "delete" && vt(_.value);
493
493
  }
494
494
  }
495
495
  function dt() {
496
- let e = String(A.value.id ?? h.value ?? "");
496
+ let e = String(j.value.id ?? g.value ?? "");
497
497
  if (!e) return;
498
- let t = v.value === "create" ? "view" : v.value;
498
+ let t = y.value === "create" ? "view" : y.value;
499
499
  G({
500
- ...A.value,
500
+ ...j.value,
501
501
  id: e
502
502
  }, t);
503
503
  }
504
504
  async function ft() {
505
- if (v.value === "resetPassword") {
505
+ if (y.value === "resetPassword") {
506
506
  await pt();
507
507
  return;
508
508
  }
509
- await le({
510
- loading: T,
511
- mode: v.value === "edit" ? "edit" : "create",
509
+ await de({
510
+ loading: E,
511
+ mode: y.value === "edit" ? "edit" : "create",
512
512
  source: "user-management",
513
- validateContext: () => v.value === "create" && !p.value?.id ? "请先选择租户" : void 0,
514
- canSave: () => H.value,
513
+ validateContext: () => y.value === "create" && !m.value?.id ? "请先选择租户" : void 0,
514
+ canSave: () => W.value,
515
515
  deniedMessage: "当前用户无权保存用户",
516
- createRecord: () => St(A.value, p.value, v.value, N.value),
516
+ createRecord: () => St(j.value, m.value, y.value, F.value),
517
517
  validateRecord: Ct,
518
- save: (e, t) => t === "edit" && g.value?.id ? o.crud.update(g.value.id, e) : o.crud.insert(e),
518
+ save: (e, t) => t === "edit" && _.value?.id ? o.crud.update(_.value.id, e) : o.crud.insert(e),
519
519
  onSaved: ({ record: e }) => {
520
- Y(e), f.value += 1;
520
+ Y(e), p.value += 1;
521
521
  }
522
522
  });
523
523
  }
524
524
  async function pt() {
525
- await d({
526
- loading: T,
525
+ await l({
526
+ loading: E,
527
527
  source: "user-management",
528
- record: () => g.value?.id ? g.value : void 0,
529
- canExecute: () => H.value,
528
+ record: () => _.value?.id ? _.value : void 0,
529
+ canExecute: () => W.value,
530
530
  deniedMessage: "当前用户无权重置用户密码",
531
531
  execute: (e) => o.http.request({
532
532
  method: "POST",
533
533
  path: `/iam.user/changePassword/${encodeURIComponent(e.id)}`,
534
- body: { password: N.value }
534
+ body: { password: F.value }
535
535
  }),
536
536
  onExecuted: async (e, t) => {
537
- Y(await o.crud.view(t.id)), f.value += 1;
537
+ Y(await o.crud.view(t.id)), p.value += 1;
538
538
  }
539
539
  });
540
540
  }
541
541
  async function mt() {
542
- await d({
543
- loading: T,
542
+ await l({
543
+ loading: E,
544
544
  source: "user-management",
545
- record: () => g.value?.id ? g.value : void 0,
545
+ record: () => _.value?.id ? _.value : void 0,
546
546
  canExecute: (e) => o.can("resetPassword", e.id) === !0,
547
547
  deniedMessage: "当前用户无权重置用户密码",
548
548
  execute: (e) => o.http.request({
@@ -550,18 +550,18 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
550
550
  path: `/iam.user/resetPassword/${encodeURIComponent(e.id)}`
551
551
  }),
552
552
  onExecuted: async (e, t) => {
553
- Y(await o.crud.view(t.id)), P.value = e, f.value += 1;
553
+ Y(await o.crud.view(t.id)), I.value = e, p.value += 1;
554
554
  }
555
555
  });
556
556
  }
557
557
  async function ht(e, t) {
558
- await d({
559
- loading: T,
558
+ await l({
559
+ loading: E,
560
560
  source: "user-management",
561
561
  record: () => e?.id ? e : void 0,
562
562
  canExecute: (e) => o.can("revokeSession", e.id) === !0 && !t.current,
563
563
  deniedMessage: "当前用户无权下线该登录会话",
564
- confirm: (e) => l({
564
+ confirm: (e) => oe({
565
565
  title: "下线登录会话",
566
566
  content: `确认下线用户「${Q(e)}」的该登录会话?`,
567
567
  okText: "下线",
@@ -572,26 +572,26 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
572
572
  path: `/iam.user/${encodeURIComponent(e.id)}/sessions/${encodeURIComponent(t.id)}/revoke`
573
573
  }),
574
574
  onExecuted: (e, t) => {
575
- I(t.id), f.value += 1;
575
+ R(t.id), p.value += 1;
576
576
  }
577
577
  });
578
578
  }
579
579
  async function gt(e) {
580
580
  let t = bt(String(e.id ?? "")).map((e) => e.id);
581
581
  if (t.length === 0) {
582
- n("当前没有可下线的登录会话", {
582
+ d("当前没有可下线的登录会话", {
583
583
  source: "user-management",
584
584
  phase: "validation"
585
585
  });
586
586
  return;
587
587
  }
588
- await d({
589
- loading: T,
588
+ await l({
589
+ loading: E,
590
590
  source: "user-management",
591
591
  record: () => e?.id ? e : void 0,
592
592
  canExecute: (e) => o.can("revokeSessions", e.id) === !0,
593
593
  deniedMessage: "当前用户无权批量下线登录会话",
594
- confirm: (e) => l({
594
+ confirm: (e) => oe({
595
595
  title: "批量下线登录会话",
596
596
  content: `确认下线用户「${Q(e)}」的 ${t.length} 个登录会话?`,
597
597
  okText: "全部下线",
@@ -603,31 +603,31 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
603
603
  body: { sessionIds: t }
604
604
  }),
605
605
  onExecuted: (e, t) => {
606
- I(t.id), f.value += 1;
606
+ R(t.id), p.value += 1;
607
607
  }
608
608
  });
609
609
  }
610
610
  async function _t() {
611
- await d({
612
- loading: T,
611
+ await l({
612
+ loading: E,
613
613
  source: "user-management",
614
- record: () => g.value?.id ? g.value : void 0,
615
- canExecute: () => U.value,
614
+ record: () => _.value?.id ? _.value : void 0,
615
+ canExecute: () => Ue.value,
616
616
  deniedMessage: "当前用户无权变更用户启停状态",
617
617
  execute: (e) => e.enabled === !1 ? o.crud.enable(e.id, { version: e.version }) : o.crud.disable(e.id, { version: e.version }),
618
618
  onExecuted: async (e, t) => {
619
- Y(await o.crud.view(t.id)), f.value += 1;
619
+ Y(await o.crud.view(t.id)), p.value += 1;
620
620
  }
621
621
  });
622
622
  }
623
623
  async function vt(e) {
624
- await d({
625
- loading: T,
624
+ await l({
625
+ loading: E,
626
626
  source: "user-management",
627
627
  record: () => e?.id ? e : void 0,
628
628
  canExecute: () => o.can("delete") === !0,
629
629
  deniedMessage: "当前用户无权删除用户",
630
- confirm: (e) => l({
630
+ confirm: (e) => oe({
631
631
  title: "删除用户",
632
632
  content: `确认删除用户「${Q(e)}」?`,
633
633
  okText: "删除",
@@ -635,29 +635,29 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
635
635
  }),
636
636
  execute: (e) => o.crud.delete(String(e.id), { version: e.version }),
637
637
  onExecuted: (e, t) => {
638
- h.value === String(t.id) && (h.value = void 0, g.value = void 0, A.value = X(p.value), _.value = !1, v.value = "view", y.value = !1, w.value = !1, D.value += 1), f.value += 1;
638
+ g.value === String(t.id) && (g.value = void 0, _.value = void 0, j.value = X(m.value), v.value = !1, y.value = "view", b.value = !1, T.value = !1, O.value += 1), p.value += 1;
639
639
  }
640
640
  });
641
641
  }
642
642
  function q() {
643
- return Ne(T.value);
643
+ return je(E.value);
644
644
  }
645
645
  function J(e, t) {
646
- return Pe({
647
- activeRequestSeq: D.value,
646
+ return Me({
647
+ activeRequestSeq: O.value,
648
648
  requestSeq: t,
649
- selectedUserKey: h.value,
649
+ selectedUserKey: g.value,
650
650
  recordId: e
651
651
  });
652
652
  }
653
653
  function Y(e, t = "view") {
654
- return g.value = e, h.value = e.id, A.value = Z(e), N.value = "", v.value = Fe(t), _.value = !0, y.value = !1, w.value = !1, D.value += 1, D.value;
654
+ return _.value = e, g.value = e.id, j.value = Z(e), F.value = "", y.value = Ne(t), v.value = !0, b.value = !1, T.value = !1, O.value += 1, O.value;
655
655
  }
656
656
  function yt(e) {
657
- g.value = e.selectedUser, h.value = e.selectedUser.id, p.value = e.tenant, A.value = e.draft, v.value = e.mode, N.value = e.password, P.value = e.resetPasswordResult, _.value = !0, y.value = !1, w.value = !1, D.value += 1;
657
+ _.value = e.selectedUser, g.value = e.selectedUser.id, m.value = e.tenant, j.value = e.draft, y.value = e.mode, F.value = e.password, I.value = e.resetPasswordResult, v.value = !0, b.value = !1, T.value = !1, O.value += 1;
658
658
  }
659
659
  function bt(e) {
660
- return !e || o.can("revokeSession", e) !== !0 ? [] : L(e).records.filter((e) => !e.current);
660
+ return !e || o.can("revokeSession", e) !== !0 ? [] : z(e).records.filter((e) => !e.current);
661
661
  }
662
662
  function xt(e, t) {
663
663
  return !!e && !t.current && o.can("revokeSession", e) === !0;
@@ -675,7 +675,7 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
675
675
  };
676
676
  }
677
677
  function St(e, t, n, r) {
678
- return oe(e, {
678
+ return ce(e, {
679
679
  tenantId: t?.id ?? e.tenantId,
680
680
  username: e.username?.trim(),
681
681
  enabled: e.enabled !== !1,
@@ -684,21 +684,21 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
684
684
  }
685
685
  function Ct(e) {
686
686
  for (let t of ["username"]) {
687
- let n = ie(t, {
688
- fields: F.value,
689
- fallback: W.value
687
+ let n = le(t, {
688
+ fields: L.value,
689
+ fallback: Je.value
690
690
  });
691
691
  if (n.visible && n.required && !e[t]) return `请填写${n.label}`;
692
692
  }
693
- if (v.value === "create" && !e.password) return "请填写初始密码";
694
- if (v.value === "resetPassword" && !N.value.trim()) return "请填写新密码";
693
+ if (y.value === "create" && !e.password) return "请填写初始密码";
694
+ if (y.value === "resetPassword" && !F.value.trim()) return "请填写新密码";
695
695
  }
696
696
  function wt(e) {
697
- return e === "username" && v.value === "edit";
697
+ return e === "username" && y.value === "edit";
698
698
  }
699
699
  function Tt(e, t) {
700
- A.value = {
701
- ...A.value,
700
+ j.value = {
701
+ ...j.value,
702
702
  [e]: t
703
703
  };
704
704
  }
@@ -726,33 +726,33 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
726
726
  muted: e.enabled === !1
727
727
  };
728
728
  }
729
- return (e, t) => (O(), C("section", { class: ye(["user-management-page", { "user-management-page--task": R.value && !z.value }]) }, [
730
- !R.value || z.value ? (O(), x(j(te), {
729
+ return (e, t) => (k(), w("section", { class: ve(["user-management-page", { "user-management-page--task": B.value && !V.value }]) }, [
730
+ !B.value || V.value ? (k(), S(M(r), {
731
731
  key: 0,
732
732
  class: "user-scope-panel",
733
733
  title: "租户",
734
734
  "refresh-title": "刷新租户列表",
735
735
  "search-keyword": u.value,
736
736
  "search-placeholder": "搜索租户名称、alias 或 ID",
737
- searchable: B.value,
738
- onRefresh: t[2] ||= (e) => B.value ? ne.value += 1 : nt(),
737
+ searchable: H.value,
738
+ onRefresh: t[2] ||= (e) => H.value ? f.value += 1 : nt(),
739
739
  "onUpdate:searchKeyword": t[3] ||= (e) => u.value = e
740
740
  }, {
741
- default: M(() => [!B.value && V.value ? (O(), C("button", {
741
+ default: P(() => [!H.value && U.value ? (k(), w("button", {
742
742
  key: 0,
743
743
  class: "user-scope-entry",
744
744
  type: "button",
745
- onClick: t[0] ||= (e) => rt(V.value)
746
- }, [E(j(re), {
747
- title: $(V.value),
745
+ onClick: t[0] ||= (e) => rt(U.value)
746
+ }, [D(M(se), {
747
+ title: $(U.value),
748
748
  secondary: "当前租户",
749
749
  clickable: "",
750
- selected: p.value?.id === V.value.id
751
- }, null, 8, ["title", "selected"])])) : S("v-if", !0), B.value ? (O(), x(j(ce), {
750
+ selected: m.value?.id === U.value.id
751
+ }, null, 8, ["title", "selected"])])) : C("v-if", !0), H.value ? (k(), S(M(n), {
752
752
  key: 1,
753
- context: Le.value,
754
- "selected-id": p.value?.id,
755
- "reload-key": ne.value,
753
+ context: Fe.value,
754
+ "selected-id": m.value?.id,
755
+ "reload-key": f.value,
756
756
  keyword: u.value,
757
757
  "empty-description": "暂无租户",
758
758
  "loading-tip": "加载租户列表",
@@ -765,40 +765,40 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
765
765
  "selected-id",
766
766
  "reload-key",
767
767
  "keyword"
768
- ])) : S("v-if", !0)]),
768
+ ])) : C("v-if", !0)]),
769
769
  _: 1
770
- }, 8, ["search-keyword", "searchable"])) : S("v-if", !0),
771
- !R.value || z.value ? (O(), x(j(fe), {
770
+ }, 8, ["search-keyword", "searchable"])) : C("v-if", !0),
771
+ !B.value || V.value ? (k(), S(M(ue), {
772
772
  key: 1,
773
773
  class: "user-list-panel",
774
- context: ze.value,
775
- title: He.value,
776
- columns: Be.value,
774
+ context: Le.value,
775
+ title: Be.value,
776
+ columns: Re.value,
777
777
  "standard-crud-actions": "",
778
778
  "standard-crud-row-actions": "",
779
- "selected-key": h.value,
780
- "expanded-row-keys": j(we),
781
- "cell-renderers": { onlineStatus: j(Ie) },
782
- "reload-key": f.value,
783
- ready: Ve.value,
779
+ "selected-key": g.value,
780
+ "expanded-row-keys": M(Se),
781
+ "cell-renderers": { onlineStatus: M(Pe) },
782
+ "reload-key": p.value,
783
+ ready: ze.value,
784
784
  "quick-search-placeholder": "搜索账号",
785
785
  "empty-description": "当前租户暂无账号",
786
786
  "waiting-description": "请选择租户",
787
787
  onAction: it,
788
788
  onRowAction: at,
789
789
  onRowDblclick: ot,
790
- onRowExpand: j(Ee),
791
- onLoaded: j(Te),
792
- onSelect: t[4] ||= (e) => h.value = String(e.id ?? "")
790
+ onRowExpand: M(we),
791
+ onLoaded: M(Ce),
792
+ onSelect: t[4] ||= (e) => g.value = String(e.id ?? "")
793
793
  }, {
794
- expandedRow: M(({ record: e }) => [E(j(pe), {
795
- sessions: j(L)(String(e.id ?? "")).records,
796
- loading: j(L)(String(e.id ?? "")).loading,
797
- error: j(L)(String(e.id ?? "")).error,
798
- "actions-disabled": T.value,
794
+ expandedRow: P(({ record: e }) => [D(M(fe), {
795
+ sessions: M(z)(String(e.id ?? "")).records,
796
+ loading: M(z)(String(e.id ?? "")).loading,
797
+ error: M(z)(String(e.id ?? "")).error,
798
+ "actions-disabled": E.value,
799
799
  "can-revoke": (t) => xt(String(e.id ?? ""), t),
800
800
  "can-revoke-all": bt(String(e.id ?? "")).length > 1,
801
- onRefresh: (t) => j(I)(String(e.id ?? "")),
801
+ onRefresh: (t) => M(R)(String(e.id ?? "")),
802
802
  onRevoke: (t) => ht(e, t),
803
803
  onRevokeAll: (t) => gt(e)
804
804
  }, null, 8, [
@@ -824,57 +824,57 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
824
824
  "ready",
825
825
  "onRowExpand",
826
826
  "onLoaded"
827
- ])) : S("v-if", !0),
828
- Re.value ? (O(), x(j(se), {
827
+ ])) : C("v-if", !0),
828
+ Ie.value ? (k(), S(M(te), {
829
829
  key: 2,
830
- open: _.value,
831
- title: Ue.value,
832
- subtitle: We.value,
833
- "close-on-outside": v.value === "view",
834
- promotion: j(Je),
830
+ open: v.value,
831
+ title: Ve.value,
832
+ subtitle: He.value,
833
+ "close-on-outside": y.value === "view",
834
+ promotion: M(qe),
835
835
  onClose: K
836
836
  }, {
837
- status: M(() => [v.value === "view" && g.value ? (O(), x(j(ee), {
837
+ status: P(() => [y.value === "view" && _.value ? (k(), S(M(ie), {
838
838
  key: 0,
839
- enabled: g.value.enabled !== !1,
840
- disabled: T.value || !U.value,
841
- loading: T.value,
839
+ enabled: _.value.enabled !== !1,
840
+ disabled: E.value || !Ue.value,
841
+ loading: E.value,
842
842
  "show-label": !1,
843
843
  onChange: _t
844
844
  }, null, 8, [
845
845
  "enabled",
846
846
  "disabled",
847
847
  "loading"
848
- ])) : S("v-if", !0)]),
849
- operation: M(() => [E(j(de), {
850
- context: ze.value,
851
- actions: Ke.value,
852
- "record-id": g.value?.id,
848
+ ])) : C("v-if", !0)]),
849
+ operation: P(() => [D(M(ne), {
850
+ context: Le.value,
851
+ actions: Ge.value,
852
+ "record-id": _.value?.id,
853
853
  onAction: ut
854
854
  }, null, 8, [
855
855
  "context",
856
856
  "actions",
857
857
  "record-id"
858
858
  ])]),
859
- default: M(() => [E(ke, {
860
- mode: v.value,
861
- draft: A.value,
862
- "selected-user": g.value,
863
- loading: y.value,
864
- "load-failed": w.value,
865
- saving: T.value || y.value,
866
- "tenant-title": $(p.value),
867
- fields: F.value,
868
- fallback: W.value,
859
+ default: P(() => [D(De, {
860
+ mode: y.value,
861
+ draft: j.value,
862
+ "selected-user": _.value,
863
+ loading: b.value,
864
+ "load-failed": T.value,
865
+ saving: E.value || b.value,
866
+ "tenant-title": $(m.value),
867
+ fields: L.value,
868
+ fallback: Je.value,
869
869
  "field-names": Ye.value,
870
- password: N.value,
871
- "reset-password-result": P.value,
870
+ password: F.value,
871
+ "reset-password-result": I.value,
872
872
  "display-of": kt,
873
873
  "disabled-of": wt,
874
874
  onRetry: dt,
875
875
  onSave: ft,
876
876
  "onUpdate:field": Tt,
877
- "onUpdate:password": t[5] ||= (e) => N.value = e
877
+ "onUpdate:password": t[5] ||= (e) => F.value = e
878
878
  }, null, 8, [
879
879
  "mode",
880
880
  "draft",
@@ -896,52 +896,52 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
896
896
  "subtitle",
897
897
  "close-on-outside",
898
898
  "promotion"
899
- ])) : (O(), x(j(i), {
899
+ ])) : (k(), S(M(a), {
900
900
  key: 3,
901
- title: Ue.value,
902
- subtitle: We.value
901
+ title: Ve.value,
902
+ subtitle: He.value
903
903
  }, {
904
- status: M(() => [v.value === "view" && g.value ? (O(), x(j(ee), {
904
+ status: P(() => [y.value === "view" && _.value ? (k(), S(M(ie), {
905
905
  key: 0,
906
- enabled: g.value.enabled !== !1,
907
- disabled: T.value || !U.value,
908
- loading: T.value,
906
+ enabled: _.value.enabled !== !1,
907
+ disabled: E.value || !Ue.value,
908
+ loading: E.value,
909
909
  "show-label": !1,
910
910
  onChange: _t
911
911
  }, null, 8, [
912
912
  "enabled",
913
913
  "disabled",
914
914
  "loading"
915
- ])) : S("v-if", !0)]),
916
- operation: M(() => [E(j(de), {
917
- context: j(o),
918
- actions: qe.value,
919
- "record-id": g.value?.id,
915
+ ])) : C("v-if", !0)]),
916
+ operation: P(() => [D(M(ne), {
917
+ context: M(o),
918
+ actions: Ke.value,
919
+ "record-id": _.value?.id,
920
920
  onAction: ut
921
921
  }, null, 8, [
922
922
  "context",
923
923
  "actions",
924
924
  "record-id"
925
925
  ])]),
926
- default: M(() => [E(ke, {
927
- mode: v.value,
928
- draft: A.value,
929
- "selected-user": g.value,
930
- loading: y.value,
931
- "load-failed": w.value,
932
- saving: T.value || y.value,
933
- "tenant-title": $(p.value ?? { id: A.value.tenantId }),
934
- fields: F.value,
935
- fallback: W.value,
926
+ default: P(() => [D(De, {
927
+ mode: y.value,
928
+ draft: j.value,
929
+ "selected-user": _.value,
930
+ loading: b.value,
931
+ "load-failed": T.value,
932
+ saving: E.value || b.value,
933
+ "tenant-title": $(m.value ?? { id: j.value.tenantId }),
934
+ fields: L.value,
935
+ fallback: Je.value,
936
936
  "field-names": Ye.value,
937
- password: N.value,
938
- "reset-password-result": P.value,
937
+ password: F.value,
938
+ "reset-password-result": I.value,
939
939
  "display-of": kt,
940
940
  "disabled-of": wt,
941
941
  onRetry: dt,
942
942
  onSave: ft,
943
943
  "onUpdate:field": Tt,
944
- "onUpdate:password": t[6] ||= (e) => N.value = e
944
+ "onUpdate:password": t[6] ||= (e) => F.value = e
945
945
  }, null, 8, [
946
946
  "mode",
947
947
  "draft",
@@ -962,4 +962,4 @@ var Ie = /*#__PURE__*/ e(/* @__PURE__ */ D({
962
962
  }
963
963
  }), [["__scopeId", "data-v-9f0f413a"]]);
964
964
  //#endregion
965
- export { Ce as n, Ie as t };
965
+ export { xe as n, Pe as t };