@jari-ace/element-plus-component 0.1.7 → 0.1.9

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 (33) hide show
  1. package/dist/components/inputI18n/InputI18n.vue.d.ts.map +1 -1
  2. package/dist/components/inputI18n/InputI18n.vue.js +2 -2
  3. package/dist/components/inputI18n/InputI18n.vue.js.map +1 -1
  4. package/dist/components/userPicker/src/UserPicker.vue.d.ts +0 -3
  5. package/dist/components/userPicker/src/UserPicker.vue.d.ts.map +1 -1
  6. package/dist/components/userPicker/src/UserPicker.vue.js +9 -7
  7. package/dist/components/userPicker/src/UserPicker.vue.js.map +1 -1
  8. package/dist/components/userSelectDialog/src/userSelectDialog.vue.d.ts +2 -5
  9. package/dist/components/userSelectDialog/src/userSelectDialog.vue.d.ts.map +1 -1
  10. package/dist/components/userSelectDialog/src/userSelectDialog.vue.js +14 -11
  11. package/dist/components/userSelectDialog/src/userSelectDialog.vue.js.map +1 -1
  12. package/dist/hooks/useRealms.d.ts +22 -0
  13. package/dist/hooks/useRealms.d.ts.map +1 -0
  14. package/dist/hooks/useRealms.js +25 -0
  15. package/dist/hooks/useRealms.js.map +1 -0
  16. package/dist/hooks/useUserRefQuery.d.ts.map +1 -1
  17. package/dist/hooks/useUserRefQuery.js +4 -2
  18. package/dist/hooks/useUserRefQuery.js.map +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -0
  22. package/dist/index.js.map +1 -1
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +1239 -1211
  25. package/lib/index.umd.cjs +2 -2
  26. package/package.json +2 -2
  27. package/packages/components/enumPicker/src/EnumPicker.vue +103 -103
  28. package/packages/components/inputI18n/InputI18n.vue +6 -2
  29. package/packages/components/userPicker/src/UserPicker.vue +8 -6
  30. package/packages/components/userSelectDialog/src/userSelectDialog.vue +16 -8
  31. package/packages/hooks/useRealms.ts +28 -0
  32. package/packages/hooks/useUserRefQuery.ts +4 -2
  33. package/packages/index.ts +1 -0
package/lib/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defineComponent as z, reactive as Oe, resolveComponent as he, createElementBlock as N, openBlock as y, createVNode as w, withCtx as g, createTextVNode as G, createElementVNode as j, normalizeStyle as Pa, renderSlot as te, toDisplayString as ae, ref as h, provide as Te, computed as ve, watch as T, createBlock as $, unref as s, createCommentVNode as de, inject as M, createSlots as fe, renderList as W, mergeProps as K, onMounted as Ye, withDirectives as Y, onBeforeMount as je, Fragment as oe, vShow as ge, resolveDynamicComponent as Ua, mergeModels as Q, useModel as ue, nextTick as Ie, onUnmounted as $e, normalizeClass as Ge, shallowReactive as pt, withAsyncContext as mt, h as Ue, shallowRef as za, withKeys as Ve, withModifiers as $t, vModelText as Ba, resolveDirective as Rt } from "vue";
2
- import { ElForm as ft, ElFormItem as He, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Ra, ElInputNumber as We, ElSelect as Ae, ElDatePicker as rt, ElButton as me, ElDropdown as Lt, ElSwitch as Nt, ElSpace as vt, ElTreeSelect as gt, ElAvatar as La, ElImage as Na, ElPopover as Jt, vLoading as De, ElTree as Qe, ElOption as Xe, ElDialog as st, ElTabs as Ja, ElTabPane as at, ElScrollbar as Ce, ElTableV2 as Oa, ElMessageBox as ja, ElMessage as xa, ElEmpty as Ot, ElTimePicker as qa, ElAutocomplete as Ga, ElRadioGroup as Ha, ElDrawer as jt, ElTag as At, ElCheckboxGroup as Wa } from "element-plus";
3
- import { createAxiosWithoutCache as ne, useLoginUser as Ze, useDepartmentApi as xt, FromDeptSelect as qt, useLoading as _e, useUserApi as ht, useUserQueryBuilder as Gt, useUserGroupApi as Ht, useAppApi as yt, useCustomGroupApi as Wt, useRoleApi as Kt, useChannelApi as Ka, useEntityApi as Ya, useAppMessageApi as Yt, createAxios as Qa, useEnumApi as Xa } from "@jari-ace/app-bolts";
4
- import { QuestionFilled as Qt, ArrowDown as Xt, Minus as xe, Plus as Ee, Star as Za, StarFilled as Zt, Close as el, Hide as tl, View as al, Check as ea, Notebook as ll, Delete as ol, Finished as nl, Setting as rl, Search as Dt, ArrowUp as sl } from "@element-plus/icons-vue";
5
- const R = (e, l) => (e.install = (a) => {
1
+ import { defineComponent as z, reactive as Oe, resolveComponent as he, createElementBlock as N, openBlock as y, createVNode as w, withCtx as g, createTextVNode as H, createElementVNode as j, normalizeStyle as za, renderSlot as te, toDisplayString as ae, ref as h, provide as Te, computed as ve, watch as T, createBlock as $, unref as s, createCommentVNode as de, inject as M, createSlots as fe, renderList as W, mergeProps as K, onMounted as Qe, withDirectives as Y, onBeforeMount as je, Fragment as ne, vShow as ge, resolveDynamicComponent as Ba, mergeModels as Q, useModel as ue, nextTick as Ie, onUnmounted as $e, normalizeClass as He, shallowReactive as pt, withAsyncContext as mt, h as Ue, shallowRef as Ra, withKeys as Ve, withModifiers as At, vModelText as La, resolveDirective as Lt } from "vue";
2
+ import { ElForm as ft, ElFormItem as We, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Na, ElInputNumber as Ke, ElSelect as Ae, ElDatePicker as rt, ElButton as me, ElDropdown as Nt, ElSwitch as Jt, ElSpace as vt, ElTreeSelect as gt, ElAvatar as Ja, ElImage as Oa, ElPopover as Ot, vLoading as De, ElTree as Xe, ElOption as Ze, ElDialog as st, ElTabs as ja, ElTabPane as at, ElScrollbar as Ce, ElTableV2 as xa, ElMessageBox as qa, ElMessage as Ga, ElEmpty as jt, ElTimePicker as Ha, ElAutocomplete as Wa, ElRadioGroup as Ka, ElDrawer as xt, ElTag as Dt, ElCheckboxGroup as Ya } from "element-plus";
3
+ import { createAxiosWithoutCache as le, useLoginUser as qt, useDepartmentApi as Gt, FromDeptSelect as Ht, useLoading as _e, useUserApi as ht, useRealmApi as Qa, useUserQueryBuilder as Wt, useUserGroupApi as Kt, useAppApi as yt, useCustomGroupApi as Yt, useRoleApi as Qt, useChannelApi as Xa, useEntityApi as Za, useAppMessageApi as Xt, useEnumApi as el } from "@jari-ace/app-bolts";
4
+ import { QuestionFilled as Zt, ArrowDown as ea, Minus as xe, Plus as Ee, Star as tl, StarFilled as ta, Close as al, Hide as ll, View as ol, Check as aa, Notebook as nl, Delete as rl, Finished as sl, Setting as ul, Search as Et, ArrowUp as il } from "@element-plus/icons-vue";
5
+ const R = (e, a) => (e.install = (l) => {
6
6
  for (const t of [e, ...Object.values({})])
7
- a.component(t.name, t);
8
- }, e), ul = /* @__PURE__ */ z({
7
+ l.component(t.name, t);
8
+ }, e), dl = /* @__PURE__ */ z({
9
9
  __name: "Upload",
10
10
  props: {
11
11
  action: {},
@@ -20,15 +20,15 @@ const R = (e, l) => (e.install = (a) => {
20
20
  withCredentials: { type: Boolean }
21
21
  },
22
22
  setup(e) {
23
- const l = Oe({
23
+ const a = Oe({
24
24
  fileList: []
25
25
  });
26
- return (a, t) => {
27
- const o = he("el-button"), i = he("el-upload");
26
+ return (l, t) => {
27
+ const o = he("el-button"), u = he("el-upload");
28
28
  return y(), N("div", null, [
29
- w(i, {
30
- "file-list": l.fileList,
31
- "onUpdate:fileList": t[0] || (t[0] = (d) => l.fileList = d),
29
+ w(u, {
30
+ "file-list": a.fileList,
31
+ "onUpdate:fileList": t[0] || (t[0] = (i) => a.fileList = i),
32
32
  class: "ace-upload",
33
33
  "list-type": "picture"
34
34
  }, {
@@ -38,7 +38,7 @@ const R = (e, l) => (e.install = (a) => {
38
38
  default: g(() => [
39
39
  w(o, { type: "primary" }, {
40
40
  default: g(() => t[1] || (t[1] = [
41
- G("Click to upload")
41
+ H("Click to upload")
42
42
  ])),
43
43
  _: 1,
44
44
  __: [1]
@@ -49,35 +49,35 @@ const R = (e, l) => (e.install = (a) => {
49
49
  ]);
50
50
  };
51
51
  }
52
- }), il = R(ul), dl = { class: "text-box" }, cl = /* @__PURE__ */ z({
52
+ }), cl = R(dl), pl = { class: "text-box" }, ml = /* @__PURE__ */ z({
53
53
  __name: "AceTip",
54
54
  props: {
55
55
  type: { default: "primary" },
56
56
  text: { default: "" }
57
57
  },
58
58
  setup(e) {
59
- const l = e;
60
- return (a, t) => (y(), N("div", {
59
+ const a = e;
60
+ return (l, t) => (y(), N("div", {
61
61
  class: "ace-tip-sfc",
62
- style: Pa({
63
- backgroundColor: `var(--el-color-${l.type}-light-9)`,
64
- border: ` var(--el-color-${l.type})`
62
+ style: za({
63
+ backgroundColor: `var(--el-color-${a.type}-light-9)`,
64
+ border: ` var(--el-color-${a.type})`
65
65
  })
66
66
  }, [
67
- te(a.$slots, "icon", {}, void 0, !0),
68
- j("p", dl, ae(l.text), 1)
67
+ te(l.$slots, "icon", {}, void 0, !0),
68
+ j("p", pl, ae(a.text), 1)
69
69
  ], 4));
70
70
  }
71
- }), pe = (e, l) => {
72
- const a = e.__vccOpts || e;
73
- for (const [t, o] of l)
74
- a[t] = o;
75
- return a;
76
- }, pl = /* @__PURE__ */ pe(cl, [["__scopeId", "data-v-2d61860f"]]), ml = R(pl);
77
- function fl(e, l, a) {
71
+ }), pe = (e, a) => {
72
+ const l = e.__vccOpts || e;
73
+ for (const [t, o] of a)
74
+ l[t] = o;
75
+ return l;
76
+ }, fl = /* @__PURE__ */ pe(ml, [["__scopeId", "data-v-2d61860f"]]), vl = R(fl);
77
+ function gl(e, a, l) {
78
78
  const t = Oe({});
79
79
  let o = [];
80
- l || (l = ne()), l.setDefaultRequestConfig({
80
+ a || (a = le()), a.setDefaultRequestConfig({
81
81
  validationErrorProcessor: (n) => {
82
82
  o = n;
83
83
  }
@@ -85,17 +85,17 @@ function fl(e, l, a) {
85
85
  for (const n of e) {
86
86
  const c = {
87
87
  trigger: "blur",
88
- validator: (p, r, u) => {
88
+ validator: (p, r, d) => {
89
89
  if (!o) return;
90
90
  let m = !1;
91
91
  for (const f of o) {
92
92
  let _ = f.fieldName;
93
- _ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0, u(new Error(f.message)));
93
+ _ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0, d(new Error(f.message)));
94
94
  }
95
- m || u();
95
+ m || d();
96
96
  }
97
97
  };
98
- a && a[n] ? Array.isArray(a[n]) ? t[n] = [c, ...a[n]] : t[n] = [c, a[n]] : t[n] = c;
98
+ l && l[n] ? Array.isArray(l[n]) ? t[n] = [c, ...l[n]] : t[n] = [c, l[n]] : t[n] = c;
99
99
  }
100
100
  return {
101
101
  removeFieldError: (n) => {
@@ -104,11 +104,11 @@ function fl(e, l, a) {
104
104
  clearFiledErrors: () => {
105
105
  o = [];
106
106
  },
107
- axios: l,
107
+ axios: a,
108
108
  rules: t
109
109
  };
110
110
  }
111
- const vl = /* @__PURE__ */ z({
111
+ const hl = /* @__PURE__ */ z({
112
112
  __name: "JaForm",
113
113
  props: {
114
114
  model: {},
@@ -128,64 +128,64 @@ const vl = /* @__PURE__ */ z({
128
128
  validator: {}
129
129
  },
130
130
  emits: ["validate", "click"],
131
- setup(e, { expose: l }) {
132
- const a = h(void 0), t = e;
131
+ setup(e, { expose: a }) {
132
+ const l = h(void 0), t = e;
133
133
  Te("aceFormValidator", t.validator), Te("aceFormModel", t.model), Te("aceFormSize", t.size);
134
134
  const o = ve(() => ({
135
135
  ...t.rules,
136
136
  ...t.validator.rules
137
137
  }));
138
- return l({
139
- elForm: a,
140
- getElForm: () => a.value,
141
- validate: async (i, d) => {
142
- a && (a.value.clearValidate(), t.rules ? await a.value.validate((n, c) => {
143
- n ? i().then(() => {
138
+ return a({
139
+ elForm: l,
140
+ getElForm: () => l.value,
141
+ validate: async (u, i) => {
142
+ l && (l.value.clearValidate(), t.rules ? await l.value.validate((n, c) => {
143
+ n ? u().then(() => {
144
144
  var p;
145
145
  (p = t.validator) == null || p.clearFiledErrors();
146
146
  }).catch(() => {
147
- a.value.validate(), d && d();
147
+ l.value.validate(), i && i();
148
148
  }) : console.log("error submit!", c);
149
- }) : i().then(() => {
149
+ }) : u().then(() => {
150
150
  var n;
151
151
  (n = t.validator) == null || n.clearFiledErrors();
152
152
  }).catch(async () => {
153
- await a.value.validate(), d && d();
153
+ await l.value.validate(), i && i();
154
154
  }));
155
155
  }
156
156
  }), T(() => t.model.formData, () => {
157
- var i;
158
- (i = t.validator) == null || i.clearFiledErrors();
159
- }), (i, d) => (y(), $(s(ft), {
157
+ var u;
158
+ (u = t.validator) == null || u.clearFiledErrors();
159
+ }), (u, i) => (y(), $(s(ft), {
160
160
  ref_key: "formRef",
161
- ref: a,
162
- model: i.model.formData,
161
+ ref: l,
162
+ model: u.model.formData,
163
163
  rules: o.value,
164
- inline: i.inline,
165
- "label-position": i.labelPosition,
166
- "label-width": i.labelWidth,
167
- "label-suffix": i.labelSuffix,
168
- "hide-required-asterisk": i.hideRequiredAsterisk,
169
- "show-message": i.showMessage,
170
- "inline-message": i.inlineMessage,
171
- "status-icon": i.statusIcon,
172
- "validate-on-rule-change": i.validateOnRuleChange,
173
- size: i.size,
174
- disabled: i.disabled,
175
- "scroll-to-error": i.scrollToError,
176
- onValidate: d[0] || (d[0] = (n, c, p) => i.$emit("validate", n, c, p)),
177
- onClick: d[1] || (d[1] = () => i.$emit("click"))
164
+ inline: u.inline,
165
+ "label-position": u.labelPosition,
166
+ "label-width": u.labelWidth,
167
+ "label-suffix": u.labelSuffix,
168
+ "hide-required-asterisk": u.hideRequiredAsterisk,
169
+ "show-message": u.showMessage,
170
+ "inline-message": u.inlineMessage,
171
+ "status-icon": u.statusIcon,
172
+ "validate-on-rule-change": u.validateOnRuleChange,
173
+ size: u.size,
174
+ disabled: u.disabled,
175
+ "scroll-to-error": u.scrollToError,
176
+ onValidate: i[0] || (i[0] = (n, c, p) => u.$emit("validate", n, c, p)),
177
+ onClick: i[1] || (i[1] = () => u.$emit("click"))
178
178
  }, {
179
179
  default: g(() => [
180
- te(i.$slots, "default")
180
+ te(u.$slots, "default")
181
181
  ]),
182
182
  _: 3
183
183
  }, 8, ["model", "rules", "inline", "label-position", "label-width", "label-suffix", "hide-required-asterisk", "show-message", "inline-message", "status-icon", "validate-on-rule-change", "size", "disabled", "scroll-to-error"]));
184
184
  }
185
- }), gl = R(vl), hl = {
185
+ }), yl = R(hl), bl = {
186
186
  key: 0,
187
187
  style: { color: "red" }
188
- }, yl = ["innerHTML"], bl = /* @__PURE__ */ z({
188
+ }, wl = ["innerHTML"], _l = /* @__PURE__ */ z({
189
189
  __name: "JaFormItem",
190
190
  props: {
191
191
  prop: {},
@@ -199,11 +199,11 @@ const vl = /* @__PURE__ */ z({
199
199
  inlineMessage: { type: Boolean, default: !0 },
200
200
  size: { default: "small" }
201
201
  },
202
- setup(e, { expose: l }) {
203
- const a = e;
204
- Te("aceFormItemProp", a.prop);
202
+ setup(e, { expose: a }) {
203
+ const l = e;
204
+ Te("aceFormItemProp", l.prop);
205
205
  const t = h(null);
206
- return l({
206
+ return a({
207
207
  resetField: () => {
208
208
  t.value.resetField();
209
209
  },
@@ -211,7 +211,7 @@ const vl = /* @__PURE__ */ z({
211
211
  t.value.clearValidate();
212
212
  },
213
213
  elFormItem: t
214
- }), (o, i) => (y(), $(s(He), {
214
+ }), (o, u) => (y(), $(s(We), {
215
215
  ref_key: "formItem",
216
216
  ref: t,
217
217
  prop: o.prop,
@@ -225,19 +225,19 @@ const vl = /* @__PURE__ */ z({
225
225
  label: g(() => [
226
226
  w(s(Fe), { class: "el-form-item__label" }, {
227
227
  default: g(() => [
228
- G(ae(a.label) + " ", 1),
229
- a.required ? (y(), N("span", hl, "*")) : de("", !0),
228
+ H(ae(l.label) + " ", 1),
229
+ l.required ? (y(), N("span", bl, "*")) : de("", !0),
230
230
  o.labelRemark ? (y(), $(s(ke), {
231
231
  key: 1,
232
232
  placement: "top"
233
233
  }, {
234
234
  content: g(() => [
235
- j("div", { innerHTML: o.labelRemark }, null, 8, yl)
235
+ j("div", { innerHTML: o.labelRemark }, null, 8, wl)
236
236
  ]),
237
237
  default: g(() => [
238
238
  w(s(ce), null, {
239
239
  default: g(() => [
240
- w(s(Qt))
240
+ w(s(Zt))
241
241
  ]),
242
242
  _: 1
243
243
  })
@@ -255,26 +255,26 @@ const vl = /* @__PURE__ */ z({
255
255
  _: 3
256
256
  }, 8, ["prop", "rules", "label-width", "error", "show-message", "inline-message", "size"]));
257
257
  }
258
- }), Le = R(bl);
259
- function x(e, l) {
260
- if (!l || l.length == 0)
258
+ }), Le = R(_l);
259
+ function x(e, a) {
260
+ if (!a || a.length == 0)
261
261
  throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
262
- const a = l.split(".");
262
+ const l = a.split(".");
263
263
  let t = e;
264
- for (let o = 0; o < a.length && (t = t[a[o]], !!t); o++)
264
+ for (let o = 0; o < l.length && (t = t[l[o]], !!t); o++)
265
265
  ;
266
266
  return t;
267
267
  }
268
- function re(e, l, a) {
269
- if (!l || l.length == 0)
268
+ function re(e, a, l) {
269
+ if (!a || a.length == 0)
270
270
  throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
271
- const t = l.split(".");
271
+ const t = a.split(".");
272
272
  let o = e;
273
- for (let i = 0; i < t.length - 1 && (o = o[t[i]], !!o); i++)
273
+ for (let u = 0; u < t.length - 1 && (o = o[t[u]], !!o); u++)
274
274
  ;
275
- o && (o[t[t.length - 1]] = a);
275
+ o && (o[t[t.length - 1]] = l);
276
276
  }
277
- const wl = /* @__PURE__ */ z({
277
+ const kl = /* @__PURE__ */ z({
278
278
  __name: "JaInput",
279
279
  props: {
280
280
  type: { default: "text" },
@@ -307,36 +307,36 @@ const wl = /* @__PURE__ */ z({
307
307
  inputStyle: { type: [Boolean, null, String, Object, Array] }
308
308
  },
309
309
  emits: ["blur", "focus", "change", "input", "clear"],
310
- setup(e, { expose: l, emit: a }) {
311
- const t = M("aceFormModel"), o = M("aceFormItemProp"), i = M("aceFormValidator"), d = h({}), n = a;
310
+ setup(e, { expose: a, emit: l }) {
311
+ const t = M("aceFormModel"), o = M("aceFormItemProp"), u = M("aceFormValidator"), i = h({}), n = l;
312
312
  function c(r) {
313
- i.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
313
+ u.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
314
314
  }
315
315
  const p = h(x(t.formData, o));
316
316
  return T(() => t.formData, () => {
317
317
  p.value = x(t.formData, o);
318
318
  }, {
319
319
  deep: !0
320
- }), l({
320
+ }), a({
321
321
  focus() {
322
- d.value.focus();
322
+ i.value.focus();
323
323
  },
324
324
  blur() {
325
- d.value.blur();
325
+ i.value.blur();
326
326
  },
327
327
  select() {
328
- d.value.select();
328
+ i.value.select();
329
329
  },
330
330
  clear() {
331
- d.value.clear();
331
+ i.value.clear();
332
332
  },
333
- elInput: d
334
- }), (r, u) => (y(), $(s(we), {
333
+ elInput: i
334
+ }), (r, d) => (y(), $(s(we), {
335
335
  ref_key: "input",
336
- ref: d,
336
+ ref: i,
337
337
  type: r.type,
338
338
  modelValue: p.value,
339
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
339
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
340
340
  maxlength: r.maxLength,
341
341
  minLength: r.minLength,
342
342
  "show-word-limit": r.showWordLimit,
@@ -363,11 +363,11 @@ const wl = /* @__PURE__ */ z({
363
363
  label: r.label,
364
364
  tabindex: r.tabindex,
365
365
  "validate-event": r.validateEvent,
366
- onBlur: u[1] || (u[1] = (m) => r.$emit("blur", m)),
367
- onFocus: u[2] || (u[2] = (m) => r.$emit("focus", m)),
366
+ onBlur: d[1] || (d[1] = (m) => r.$emit("blur", m)),
367
+ onFocus: d[2] || (d[2] = (m) => r.$emit("focus", m)),
368
368
  onChange: c,
369
- onInput: u[3] || (u[3] = (m) => r.$emit("input", m)),
370
- onClear: u[4] || (u[4] = () => r.$emit("clear"))
369
+ onInput: d[3] || (d[3] = (m) => r.$emit("input", m)),
370
+ onClear: d[4] || (d[4] = () => r.$emit("clear"))
371
371
  }, fe({ _: 2 }, [
372
372
  W(r.$slots, (m, f) => ({
373
373
  name: f,
@@ -377,7 +377,7 @@ const wl = /* @__PURE__ */ z({
377
377
  }))
378
378
  ]), 1032, ["type", "modelValue", "maxlength", "minLength", "show-word-limit", "placeholder", "clearable", "formatter", "parser", "show-password", "disabled", "size", "prefix-icon", "suffix-icon", "rows", "autosize", "autocomplete", "name", "readonly", "max", "min", "step", "resize", "autofocus", "form", "label", "tabindex", "validate-event"]));
379
379
  }
380
- }), ut = R(wl), _l = /* @__PURE__ */ z({
380
+ }), ut = R(kl), Vl = /* @__PURE__ */ z({
381
381
  __name: "JaCheckbox",
382
382
  props: {
383
383
  label: { type: [String, Number, Boolean, Object] },
@@ -392,21 +392,21 @@ const wl = /* @__PURE__ */ z({
392
392
  validateEvent: { type: Boolean, default: !0 }
393
393
  },
394
394
  emits: ["change"],
395
- setup(e, { expose: l, emit: a }) {
396
- const t = M("aceFormModel"), o = M("aceFormItemProp"), i = M("aceFormValidator"), d = h({}), n = a;
395
+ setup(e, { expose: a, emit: l }) {
396
+ const t = M("aceFormModel"), o = M("aceFormItemProp"), u = M("aceFormValidator"), i = h({}), n = l;
397
397
  function c(r) {
398
- i.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
398
+ u.removeFieldError(o), re(t.formData, o, p.value), n("change", r);
399
399
  }
400
400
  const p = h(x(t.formData, o));
401
401
  return T(() => t.formData, () => {
402
402
  p.value = x(t.formData, o);
403
- }), l({
404
- elCheckbox: d
405
- }), (r, u) => (y(), $(s(Ra), {
403
+ }), a({
404
+ elCheckbox: i
405
+ }), (r, d) => (y(), $(s(Na), {
406
406
  ref_key: "checkbox",
407
- ref: d,
407
+ ref: i,
408
408
  modelValue: p.value,
409
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
409
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
410
410
  disabled: r.disabled,
411
411
  "true-label": r.trueLabel,
412
412
  "false-label": r.falseLabel,
@@ -425,7 +425,7 @@ const wl = /* @__PURE__ */ z({
425
425
  _: 3
426
426
  }, 8, ["modelValue", "disabled", "true-label", "false-label", "border", "size", "name", "checked", "indeterminate", "validate-event", "label"]));
427
427
  }
428
- }), kl = R(_l), Vl = /* @__PURE__ */ z({
428
+ }), Il = R(Vl), Cl = /* @__PURE__ */ z({
429
429
  __name: "JaInputNumber",
430
430
  props: {
431
431
  min: { default: -1 / 0 },
@@ -447,17 +447,17 @@ const wl = /* @__PURE__ */ z({
447
447
  validateEvent: { type: Boolean, default: !0 }
448
448
  },
449
449
  emits: ["blur", "focus", "change"],
450
- setup(e, { expose: l, emit: a }) {
451
- const t = e, o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = ve(() => t.size ? t.size : M("aceFormSize")), c = h(), p = a;
450
+ setup(e, { expose: a, emit: l }) {
451
+ const t = e, o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = ve(() => t.size ? t.size : M("aceFormSize")), c = h(), p = l;
452
452
  function r(m) {
453
- d.removeFieldError(i), re(o.formData, i, u.value), p("change", m);
453
+ i.removeFieldError(u), re(o.formData, u, d.value), p("change", m);
454
454
  }
455
- const u = h(x(o.formData, i));
455
+ const d = h(x(o.formData, u));
456
456
  return T(() => o.formData, () => {
457
- u.value = x(o.formData, i);
457
+ d.value = x(o.formData, u);
458
458
  }, {
459
459
  deep: !0
460
- }), l({
460
+ }), a({
461
461
  focus() {
462
462
  var m;
463
463
  (m = c == null ? void 0 : c.value) == null || m.focus();
@@ -467,7 +467,7 @@ const wl = /* @__PURE__ */ z({
467
467
  (m = c == null ? void 0 : c.value) == null || m.blur();
468
468
  },
469
469
  elInputNumber: c
470
- }), (m, f) => (y(), $(s(We), {
470
+ }), (m, f) => (y(), $(s(Ke), {
471
471
  min: m.min,
472
472
  max: m.max,
473
473
  label: m.label,
@@ -476,8 +476,8 @@ const wl = /* @__PURE__ */ z({
476
476
  "aria-label": m.ariaLabel,
477
477
  controls: m.controls,
478
478
  "controls-position": m.controlsPosition,
479
- modelValue: u.value,
480
- "onUpdate:modelValue": f[0] || (f[0] = (_) => u.value = _),
479
+ modelValue: d.value,
480
+ "onUpdate:modelValue": f[0] || (f[0] = (_) => d.value = _),
481
481
  name: m.name,
482
482
  placeholder: m.placeholder,
483
483
  precision: m.precision,
@@ -498,28 +498,28 @@ const wl = /* @__PURE__ */ z({
498
498
  _: 3
499
499
  }, 8, ["min", "max", "label", "disabled", "id", "aria-label", "controls", "controls-position", "modelValue", "name", "placeholder", "precision", "readonly", "size", "step", "step-strictly", "value-on-clear", "validate-event"]));
500
500
  }
501
- }), Il = R(Vl), Cl = /* @__PURE__ */ z({
501
+ }), $l = R(Cl), Al = /* @__PURE__ */ z({
502
502
  __name: "JaSelect",
503
503
  emits: ["change"],
504
- setup(e, { expose: l, emit: a }) {
505
- const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
504
+ setup(e, { expose: a, emit: l }) {
505
+ const t = h({}), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l;
506
506
  function c(r) {
507
- d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
507
+ i.removeFieldError(u), re(o.formData, u, p.value), n("change", r);
508
508
  }
509
- const p = h(x(o.formData, i));
509
+ const p = h(x(o.formData, u));
510
510
  return T(() => o.formData, () => {
511
- p.value = x(o.formData, i);
511
+ p.value = x(o.formData, u);
512
512
  }, {
513
513
  deep: !0
514
- }), l({
514
+ }), a({
515
515
  focus: () => t.value.focus(),
516
516
  blur: () => t.value.blur(),
517
517
  elSelect: t
518
- }), (r, u) => (y(), $(s(Ae), K({
518
+ }), (r, d) => (y(), $(s(Ae), K({
519
519
  ref_key: "input",
520
520
  ref: t,
521
521
  modelValue: p.value,
522
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
522
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
523
523
  onChange: c
524
524
  }, r.$attrs), fe({ _: 2 }, [
525
525
  W(r.$slots, (m, f) => ({
@@ -530,41 +530,41 @@ const wl = /* @__PURE__ */ z({
530
530
  }))
531
531
  ]), 1040, ["modelValue"]));
532
532
  }
533
- }), $l = R(Cl), Al = /* @__PURE__ */ z({
533
+ }), Dl = R(Al), El = /* @__PURE__ */ z({
534
534
  __name: "JaDatePicker",
535
535
  emits: ["change"],
536
- setup(e, { expose: l, emit: a }) {
537
- const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a, c = h({});
538
- function p(u) {
539
- d.removeFieldError(i), re(o.formData, i, r.value), n("change", u);
536
+ setup(e, { expose: a, emit: l }) {
537
+ const t = h({}), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l, c = h({});
538
+ function p(d) {
539
+ i.removeFieldError(u), re(o.formData, u, r.value), n("change", d);
540
540
  }
541
- const r = h(x(o.formData, i));
541
+ const r = h(x(o.formData, u));
542
542
  return T(() => o.formData, () => {
543
- r.value = x(o.formData, i);
543
+ r.value = x(o.formData, u);
544
544
  }, {
545
545
  deep: !0
546
- }), Ye(() => {
546
+ }), Qe(() => {
547
547
  Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
548
548
  c.value[m] = f;
549
549
  });
550
- }), l(c.value), (u, m) => (y(), $(s(rt), K({
550
+ }), a(c.value), (d, m) => (y(), $(s(rt), K({
551
551
  ref_key: "input",
552
552
  ref: t,
553
- modelValue: s(o).formData[s(i)],
554
- "onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(i)] = f),
553
+ modelValue: s(o).formData[s(u)],
554
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(u)] = f),
555
555
  onChange: p
556
- }, u.$attrs), fe({ _: 2 }, [
557
- W(u.$slots, (f, _) => ({
556
+ }, d.$attrs), fe({ _: 2 }, [
557
+ W(d.$slots, (f, _) => ({
558
558
  name: _,
559
559
  fn: g(() => [
560
- te(u.$slots, _)
560
+ te(d.$slots, _)
561
561
  ])
562
562
  }))
563
563
  ]), 1040, ["modelValue"]));
564
564
  }
565
- }), Dl = R(Al);
566
- function El(e) {
567
- const l = ["Ctrl", "Alt", "Shift", "Meta"], a = [
565
+ }), Sl = R(El);
566
+ function Tl(e) {
567
+ const a = ["Ctrl", "Alt", "Shift", "Meta"], l = [
568
568
  "A",
569
569
  "B",
570
570
  "C",
@@ -625,93 +625,93 @@ function El(e) {
625
625
  if (e.length < 2)
626
626
  return !1;
627
627
  for (let o = 0; o < e.length - 1; o++)
628
- if (!l.includes(e[o]))
628
+ if (!a.includes(e[o]))
629
629
  return !1;
630
630
  const t = e[e.length - 1];
631
- return a.includes(t);
631
+ return l.includes(t);
632
632
  }
633
633
  let Ne = {};
634
- function Et(e, l, a) {
634
+ function St(e, a, l) {
635
635
  var o;
636
636
  const t = ((o = e.arg) == null ? void 0 : o.split("+")) ?? [];
637
637
  if (!(!t || t.length === 0))
638
- if (El(t)) {
639
- if (l.__vueShortcutHandler__)
638
+ if (Tl(t)) {
639
+ if (a.__vueShortcutHandler__)
640
640
  return;
641
- const i = (d) => {
641
+ const u = (i) => {
642
642
  var r;
643
643
  let n = !0;
644
- for (const u of t)
645
- u === "Ctrl" && !d.ctrlKey && (n = !1), u === "Alt" && !d.altKey && (n = !1), u === "Shift" && !d.shiftKey && (n = !1), u === "Meta" && !d.metaKey && (n = !1);
644
+ for (const d of t)
645
+ d === "Ctrl" && !i.ctrlKey && (n = !1), d === "Alt" && !i.altKey && (n = !1), d === "Shift" && !i.shiftKey && (n = !1), d === "Meta" && !i.metaKey && (n = !1);
646
646
  const c = t.length > 0 ? t[t.length - 1] : null;
647
- d.key && c && d.key.toUpperCase() !== c.toUpperCase() && (n = !1);
647
+ i.key && c && i.key.toUpperCase() !== c.toUpperCase() && (n = !1);
648
648
  let p = !1;
649
- a.component ? p = (r = a.component.props) == null ? void 0 : r.disabled : a.props ? p = a.props.disabled : p = l.hasAttribute("disabled"), n && !p && (d.preventDefault(), e.value ? e.value(l, e, a) : (l.focus(), l.click()));
649
+ l.component ? p = (r = l.component.props) == null ? void 0 : r.disabled : l.props ? p = l.props.disabled : p = a.hasAttribute("disabled"), n && !p && (i.preventDefault(), e.value ? e.value(a, e, l) : (a.focus(), a.click()));
650
650
  };
651
- Sl({
651
+ Fl({
652
652
  keys: e.arg,
653
- handler: i,
654
- el: l,
653
+ handler: u,
654
+ el: a,
655
655
  prev: Ne[e.arg]
656
656
  });
657
657
  } else
658
658
  console.warn(`Invalid shortcut key combination: ${t.join("+")}`);
659
659
  }
660
- function St(e) {
661
- e.__vueShortcutHandler__ && Tl(e.__vueShortcutHandler__);
660
+ function Tt(e) {
661
+ e.__vueShortcutHandler__ && Ml(e.__vueShortcutHandler__);
662
662
  }
663
- function Sl(e) {
664
- const l = e.prev, a = (window.rawWindow ?? window).document;
665
- l && a.removeEventListener("keydown", l.handler), a.addEventListener("keydown", e.handler), Ne[e.keys] = e, e.el.__vueShortcutHandler__ = e;
663
+ function Fl(e) {
664
+ const a = e.prev, l = (window.rawWindow ?? window).document;
665
+ a && l.removeEventListener("keydown", a.handler), l.addEventListener("keydown", e.handler), Ne[e.keys] = e, e.el.__vueShortcutHandler__ = e;
666
666
  }
667
- function Tl(e) {
668
- const l = Ne[e.keys];
669
- if (l && l == e) {
670
- const a = (window.rawWindow ?? window).document;
671
- a.removeEventListener("keydown", e.handler), e.prev ? (a.addEventListener("keydown", e.prev.handler), Ne[e.keys] = e.prev) : Ne[e.keys] = void 0;
672
- } else if (l) {
673
- let a = l;
674
- for (; a && a.prev != e; )
675
- a = a.prev;
676
- a && (a.prev = e.prev);
667
+ function Ml(e) {
668
+ const a = Ne[e.keys];
669
+ if (a && a == e) {
670
+ const l = (window.rawWindow ?? window).document;
671
+ l.removeEventListener("keydown", e.handler), e.prev ? (l.addEventListener("keydown", e.prev.handler), Ne[e.keys] = e.prev) : Ne[e.keys] = void 0;
672
+ } else if (a) {
673
+ let l = a;
674
+ for (; l && l.prev != e; )
675
+ l = l.prev;
676
+ l && (l.prev = e.prev);
677
677
  }
678
678
  e.prev && delete e.prev, delete e.el.__vueShortcutHandler__;
679
679
  }
680
- const Fl = (e) => {
680
+ const Pl = (e) => {
681
681
  if (e.offsetParent === null)
682
682
  return !1;
683
- const l = e.getBoundingClientRect(), a = window.rawWindow ?? window;
684
- return l.top <= a.innerHeight && l.bottom >= 0 && l.left <= a.innerWidth && l.right >= 0;
685
- }, Ml = {
683
+ const a = e.getBoundingClientRect(), l = window.rawWindow ?? window;
684
+ return a.top <= l.innerHeight && a.bottom >= 0 && a.left <= l.innerWidth && a.right >= 0;
685
+ }, Ul = {
686
686
  root: null,
687
687
  // 默认为视口
688
688
  rootMargin: "0px",
689
689
  threshold: 0.1
690
690
  // 当 10% 的元素可见时触发
691
691
  }, et = {
692
- mounted(e, l, a) {
693
- Fl(e) && Et(l, e, a);
694
- const t = (i) => {
695
- i.forEach((d) => {
696
- d.isIntersecting ? Et(l, e, a) : St(e);
692
+ mounted(e, a, l) {
693
+ Pl(e) && St(a, e, l);
694
+ const t = (u) => {
695
+ u.forEach((i) => {
696
+ i.isIntersecting ? St(a, e, l) : Tt(e);
697
697
  });
698
- }, o = new IntersectionObserver(t, Ml);
698
+ }, o = new IntersectionObserver(t, Ul);
699
699
  e.__visibilityObserver__ = o, o.observe(e);
700
700
  },
701
701
  unmounted(e) {
702
- e.__visibilityObserver__.disconnect(), delete e.__visibilityObserver__, St(e);
702
+ e.__visibilityObserver__.disconnect(), delete e.__visibilityObserver__, Tt(e);
703
703
  }
704
704
  };
705
- function Tt(e, l) {
706
- e.disable ? (l.disabled = !0, l.classList.add("disabled")) : l.style.display = "none";
705
+ function Ft(e, a) {
706
+ e.disable ? (a.disabled = !0, a.classList.add("disabled")) : a.style.display = "none";
707
707
  }
708
- const ta = {
708
+ const la = {
709
709
  // 当指令绑定到元素时调用
710
- mounted(e, l) {
711
- const a = Ze(), { value: t, modifiers: o } = l, i = typeof t == "string" ? t.split(/,/) : t ?? [];
712
- !i || i.length === 0 || (o.any ? i.some((d) => a.hasRole(d)) || Tt(o, e) : i.every((d) => a.hasRole(d)) || Tt(o, e));
710
+ mounted(e, a) {
711
+ const l = qt(), { value: t, modifiers: o } = a, u = typeof t == "string" ? t.split(/,/) : t ?? [];
712
+ !u || u.length === 0 || (o.any ? u.some((i) => l.hasRole(i)) || Ft(o, e) : u.every((i) => l.hasRole(i)) || Ft(o, e));
713
713
  }
714
- }, Pl = /* @__PURE__ */ z({
714
+ }, zl = /* @__PURE__ */ z({
715
715
  __name: "JaButton",
716
716
  props: {
717
717
  tooltip: {},
@@ -723,37 +723,37 @@ const ta = {
723
723
  }) },
724
724
  tooltipPlacement: { default: "bottom" }
725
725
  },
726
- setup(e, { expose: l }) {
727
- const a = h({}), t = e, o = et;
728
- return l({
729
- elButton: a
730
- }), (i, d) => (y(), $(s(ke), {
731
- placement: i.tooltipPlacement,
726
+ setup(e, { expose: a }) {
727
+ const l = h({}), t = e, o = et;
728
+ return a({
729
+ elButton: l
730
+ }), (u, i) => (y(), $(s(ke), {
731
+ placement: u.tooltipPlacement,
732
732
  "append-to": "body"
733
733
  }, {
734
734
  content: g(() => [
735
- G(ae(`${t.tooltip ?? ""} ${t.shortcut ? "(" : ""}${t.shortcut ?? ""}${t.shortcut ? ")" : ""}`), 1)
735
+ H(ae(`${t.tooltip ?? ""} ${t.shortcut ? "(" : ""}${t.shortcut ?? ""}${t.shortcut ? ")" : ""}`), 1)
736
736
  ]),
737
737
  default: g(() => [
738
738
  Y((y(), $(s(me), K({
739
739
  ref_key: "input",
740
- ref: a
741
- }, i.$attrs), fe({ _: 2 }, [
742
- W(i.$slots, (n, c) => ({
740
+ ref: l
741
+ }, u.$attrs), fe({ _: 2 }, [
742
+ W(u.$slots, (n, c) => ({
743
743
  name: c,
744
744
  fn: g(() => [
745
- te(i.$slots, c)
745
+ te(u.$slots, c)
746
746
  ])
747
747
  }))
748
748
  ]), 1040)), [
749
- [s(ta), i.auth, i.authModifiers],
750
- [s(o), void 0, i.shortcut]
749
+ [s(la), u.auth, u.authModifiers],
750
+ [s(o), void 0, u.shortcut]
751
751
  ])
752
752
  ]),
753
753
  _: 3
754
754
  }, 8, ["placement"]));
755
755
  }
756
- }), se = R(Pl), Ul = /* @__PURE__ */ z({
756
+ }), se = R(zl), Bl = /* @__PURE__ */ z({
757
757
  __name: "JaDropdownButton",
758
758
  props: {
759
759
  tooltip: {},
@@ -762,21 +762,21 @@ const ta = {
762
762
  tooltipPlacement: { default: "top" },
763
763
  type: { default: "default" }
764
764
  },
765
- setup(e, { expose: l }) {
766
- const a = h(), t = h(), o = e, i = et;
767
- l({
768
- elButton: a,
765
+ setup(e, { expose: a }) {
766
+ const l = h(), t = h(), o = e, u = et;
767
+ a({
768
+ elButton: l,
769
769
  elDropdown: t
770
770
  });
771
- function d(n) {
771
+ function i(n) {
772
772
  n.focus();
773
773
  }
774
774
  return (n, c) => (y(), $(s(ke), { placement: n.tooltipPlacement }, {
775
775
  content: g(() => [
776
- G(ae(`${o.tooltip ?? ""} ${o.tooltip ? "(" : ""}${o.shortcut ?? ""}${o.tooltip ? ")" : ""}`), 1)
776
+ H(ae(`${o.tooltip ?? ""} ${o.tooltip ? "(" : ""}${o.shortcut ?? ""}${o.tooltip ? ")" : ""}`), 1)
777
777
  ]),
778
778
  default: g(() => [
779
- w(s(Lt), K({
779
+ w(s(Nt), K({
780
780
  size: "default",
781
781
  ref_key: "dropdown",
782
782
  ref: t,
@@ -785,22 +785,22 @@ const ta = {
785
785
  default: g(() => [
786
786
  Y((y(), $(s(me), K({
787
787
  ref_key: "input",
788
- ref: a,
788
+ ref: l,
789
789
  type: n.type,
790
790
  size: "default"
791
791
  }, n.$attrs), {
792
792
  default: g(() => [
793
- G(ae(o.buttonText) + " ", 1),
793
+ H(ae(o.buttonText) + " ", 1),
794
794
  w(s(ce), { class: "el-icon--right" }, {
795
795
  default: g(() => [
796
- w(s(Xt))
796
+ w(s(ea))
797
797
  ]),
798
798
  _: 1
799
799
  })
800
800
  ]),
801
801
  _: 1
802
802
  }, 16, ["type"])), [
803
- [s(i), d, n.shortcut]
803
+ [s(u), i, n.shortcut]
804
804
  ])
805
805
  ]),
806
806
  _: 2
@@ -816,20 +816,20 @@ const ta = {
816
816
  _: 3
817
817
  }, 8, ["placement"]));
818
818
  }
819
- }), zl = R(Ul), Bl = /* @__PURE__ */ z({
819
+ }), Rl = R(Bl), Ll = /* @__PURE__ */ z({
820
820
  __name: "JaSwitch",
821
821
  emits: ["change"],
822
- setup(e, { expose: l, emit: a }) {
823
- const t = h(), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
822
+ setup(e, { expose: a, emit: l }) {
823
+ const t = h(), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l;
824
824
  function c(r) {
825
- d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
825
+ i.removeFieldError(u), re(o.formData, u, p.value), n("change", r);
826
826
  }
827
- const p = h(x(o.formData, i));
827
+ const p = h(x(o.formData, u));
828
828
  return T(() => o.formData, () => {
829
- p.value = x(o.formData, i);
829
+ p.value = x(o.formData, u);
830
830
  }, {
831
831
  deep: !0
832
- }), l({
832
+ }), a({
833
833
  focus: () => {
834
834
  var r;
835
835
  return (r = t.value) == null ? void 0 : r.focus();
@@ -839,11 +839,11 @@ const ta = {
839
839
  return (r = t.value) == null ? void 0 : r.blur();
840
840
  },
841
841
  elSwitch: t
842
- }), (r, u) => (y(), $(s(Nt), K({
842
+ }), (r, d) => (y(), $(s(Jt), K({
843
843
  ref_key: "input",
844
844
  ref: t,
845
845
  modelValue: p.value,
846
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
846
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
847
847
  onChange: c
848
848
  }, r.$attrs), fe({ _: 2 }, [
849
849
  W(r.$slots, (m, f) => ({
@@ -854,55 +854,55 @@ const ta = {
854
854
  }))
855
855
  ]), 1040, ["modelValue"]));
856
856
  }
857
- }), Rl = R(Bl), Ll = { style: { width: "100%" } }, Nl = ["onClick"], aa = /* @__PURE__ */ z({
857
+ }), Nl = R(Ll), Jl = { style: { width: "100%" } }, Ol = ["onClick"], oa = /* @__PURE__ */ z({
858
858
  __name: "StringListInput",
859
859
  props: {
860
860
  modelValue: {},
861
861
  size: {}
862
862
  },
863
863
  emits: ["update:modelValue", "change"],
864
- setup(e, { emit: l }) {
864
+ setup(e, { emit: a }) {
865
865
  var r;
866
- const a = e, t = l;
867
- function o(u) {
868
- d.value.splice(u, 1);
866
+ const l = e, t = a;
867
+ function o(d) {
868
+ i.value.splice(d, 1);
869
869
  }
870
- function i() {
871
- d.value.push({ v: "" });
870
+ function u() {
871
+ i.value.push({ v: "" });
872
872
  }
873
- const d = h(((r = a.modelValue) == null ? void 0 : r.map((u) => ({ v: u }))) ?? [{
873
+ const i = h(((r = l.modelValue) == null ? void 0 : r.map((d) => ({ v: d }))) ?? [{
874
874
  v: ""
875
875
  }]);
876
876
  let n = !1, c = !1;
877
- je(() => p(a.modelValue));
878
- function p(u) {
877
+ je(() => p(l.modelValue));
878
+ function p(d) {
879
879
  if (c) {
880
880
  c = !1;
881
881
  return;
882
882
  }
883
- n = !0, u ? (d.value = u.map((m) => ({ v: m })), d.value.length == 0 && d.value.push({ v: "" })) : d.value = [{ v: "" }];
883
+ n = !0, d ? (i.value = d.map((m) => ({ v: m })), i.value.length == 0 && i.value.push({ v: "" })) : i.value = [{ v: "" }];
884
884
  }
885
- return T(() => a.modelValue, (u) => {
886
- p(u);
887
- }), T(() => d.value, () => {
885
+ return T(() => l.modelValue, (d) => {
886
+ p(d);
887
+ }), T(() => i.value, () => {
888
888
  if (n) {
889
889
  n = !1;
890
890
  return;
891
891
  }
892
892
  c = !0;
893
- const u = d.value.map((m) => m.v).filter((m) => m && m.length > 0);
894
- t("update:modelValue", u), t("change", u);
895
- }, { deep: !0 }), (u, m) => (y(), N("div", Ll, [
893
+ const d = i.value.map((m) => m.v).filter((m) => m && m.length > 0);
894
+ t("update:modelValue", d), t("change", d);
895
+ }, { deep: !0 }), (d, m) => (y(), N("div", Jl, [
896
896
  w(s(vt), {
897
897
  direction: "vertical",
898
898
  style: { "align-items": "stretch", width: "100%" }
899
899
  }, {
900
900
  default: g(() => [
901
- (y(!0), N(oe, null, W(d.value, (f, _) => (y(), $(s(we), {
901
+ (y(!0), N(ne, null, W(i.value, (f, _) => (y(), $(s(we), {
902
902
  key: _,
903
903
  modelValue: f.v,
904
904
  "onUpdate:modelValue": (I) => f.v = I,
905
- size: u.size
905
+ size: d.size
906
906
  }, {
907
907
  append: g(() => [
908
908
  w(s(ke), {
@@ -922,8 +922,8 @@ const ta = {
922
922
  ]),
923
923
  _: 1
924
924
  })
925
- ], 8, Nl), [
926
- [ge, _ < (((I = d.value) == null ? void 0 : I.length) ?? 0) - 1]
925
+ ], 8, Ol), [
926
+ [ge, _ < (((I = i.value) == null ? void 0 : I.length) ?? 0) - 1]
927
927
  ])
928
928
  ];
929
929
  }),
@@ -937,7 +937,7 @@ const ta = {
937
937
  var I;
938
938
  return [
939
939
  Y(j("div", {
940
- onClick: m[0] || (m[0] = (b) => i()),
940
+ onClick: m[0] || (m[0] = (b) => u()),
941
941
  style: { margin: "0 -20px", padding: "0 20px" }
942
942
  }, [
943
943
  w(s(ce), null, {
@@ -947,7 +947,7 @@ const ta = {
947
947
  _: 1
948
948
  })
949
949
  ], 512), [
950
- [ge, _ === (((I = d.value) == null ? void 0 : I.length) ?? 0) - 1]
950
+ [ge, _ === (((I = i.value) == null ? void 0 : I.length) ?? 0) - 1]
951
951
  ])
952
952
  ];
953
953
  }),
@@ -961,29 +961,29 @@ const ta = {
961
961
  })
962
962
  ]));
963
963
  }
964
- }), Jl = /* @__PURE__ */ z({
964
+ }), jl = /* @__PURE__ */ z({
965
965
  __name: "JaStringList",
966
966
  emits: ["change"],
967
- setup(e, { emit: l }) {
968
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
969
- function d(c) {
970
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
971
- }
972
- const n = h(x(a.formData, t) ?? [""]);
973
- return T(() => a.formData, () => {
974
- n.value = x(a.formData, t) ?? [""];
967
+ setup(e, { emit: a }) {
968
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
969
+ function i(c) {
970
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
971
+ }
972
+ const n = h(x(l.formData, t) ?? [""]);
973
+ return T(() => l.formData, () => {
974
+ n.value = x(l.formData, t) ?? [""];
975
975
  }, {
976
976
  deep: !0
977
- }), (c, p) => (y(), $(aa, K({
977
+ }), (c, p) => (y(), $(oa, K({
978
978
  modelValue: n.value,
979
979
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
980
- onChange: d
980
+ onChange: i
981
981
  }, c.$attrs), null, 16, ["modelValue"]));
982
982
  }
983
- }), Ol = R(Jl), jl = R(aa), xl = {
983
+ }), xl = R(jl), ql = R(oa), Gl = {
984
984
  style: { width: "100%" },
985
985
  class: "ja-number-list"
986
- }, ql = { class: "el-input-group__append" }, Gl = { class: "el-input-group__append" }, Hl = /* @__PURE__ */ z({
986
+ }, Hl = { class: "el-input-group__append" }, Wl = { class: "el-input-group__append" }, Kl = /* @__PURE__ */ z({
987
987
  __name: "NumberListInput",
988
988
  props: {
989
989
  modelValue: {},
@@ -992,52 +992,52 @@ const ta = {
992
992
  size: {}
993
993
  },
994
994
  emits: ["update:modelValue", "change"],
995
- setup(e, { emit: l }) {
995
+ setup(e, { emit: a }) {
996
996
  var r;
997
- const a = e, t = l;
998
- function o(u) {
999
- d.value.splice(u, 1);
997
+ const l = e, t = a;
998
+ function o(d) {
999
+ i.value.splice(d, 1);
1000
1000
  }
1001
- function i() {
1002
- d.value.push({ v: 0 });
1001
+ function u() {
1002
+ i.value.push({ v: 0 });
1003
1003
  }
1004
- const d = h(((r = a.modelValue) == null ? void 0 : r.map((u) => ({ v: u }))) ?? [{
1004
+ const i = h(((r = l.modelValue) == null ? void 0 : r.map((d) => ({ v: d }))) ?? [{
1005
1005
  v: 0
1006
1006
  }]);
1007
1007
  let n = !1, c = !1;
1008
- je(() => p(a.modelValue));
1009
- function p(u) {
1010
- if (u) {
1008
+ je(() => p(l.modelValue));
1009
+ function p(d) {
1010
+ if (d) {
1011
1011
  if (c) {
1012
1012
  c = !1;
1013
1013
  return;
1014
1014
  }
1015
- n = !0, u ? (d.value = u.map((m) => ({ v: m })), d.value.length == 0 && d.value.push({ v: 0 })) : d.value = [{ v: 0 }];
1015
+ n = !0, d ? (i.value = d.map((m) => ({ v: m })), i.value.length == 0 && i.value.push({ v: 0 })) : i.value = [{ v: 0 }];
1016
1016
  }
1017
1017
  }
1018
- return T(() => a.modelValue, (u) => {
1019
- p(u);
1020
- }), T(() => d.value, () => {
1018
+ return T(() => l.modelValue, (d) => {
1019
+ p(d);
1020
+ }), T(() => i.value, () => {
1021
1021
  if (n) {
1022
1022
  n = !1;
1023
1023
  return;
1024
1024
  }
1025
1025
  c = !0;
1026
- const u = d.value.map((m) => m.v);
1027
- t("update:modelValue", u), t("change", u);
1028
- }, { deep: !0 }), (u, m) => {
1026
+ const d = i.value.map((m) => m.v);
1027
+ t("update:modelValue", d), t("change", d);
1028
+ }, { deep: !0 }), (d, m) => {
1029
1029
  const f = he("el-tooltip");
1030
- return y(), N("div", xl, [
1031
- (y(!0), N(oe, null, W(d.value, (_, I) => (y(), N("div", {
1030
+ return y(), N("div", Gl, [
1031
+ (y(!0), N(ne, null, W(i.value, (_, I) => (y(), N("div", {
1032
1032
  class: "ja-input-box",
1033
1033
  key: I
1034
1034
  }, [
1035
- w(s(We), {
1035
+ w(s(Ke), {
1036
1036
  modelValue: _.v,
1037
1037
  "onUpdate:modelValue": (b) => _.v = b,
1038
- precision: u.precision,
1039
- size: u.size,
1040
- step: u.step
1038
+ precision: d.precision,
1039
+ size: d.size,
1040
+ step: d.step
1041
1041
  }, null, 8, ["modelValue", "onUpdate:modelValue", "precision", "size", "step"]),
1042
1042
  w(f, {
1043
1043
  content: "删除",
@@ -1046,15 +1046,15 @@ const ta = {
1046
1046
  default: g(() => {
1047
1047
  var b;
1048
1048
  return [
1049
- Y(j("div", ql, [
1049
+ Y(j("div", Hl, [
1050
1050
  w(s(me), {
1051
1051
  link: "",
1052
1052
  icon: s(xe),
1053
1053
  onClick: (v) => o(I),
1054
- size: u.size
1054
+ size: d.size
1055
1055
  }, null, 8, ["icon", "onClick", "size"])
1056
1056
  ], 512), [
1057
- [ge, I < (((b = d.value) == null ? void 0 : b.length) ?? 0) - 1]
1057
+ [ge, I < (((b = i.value) == null ? void 0 : b.length) ?? 0) - 1]
1058
1058
  ])
1059
1059
  ];
1060
1060
  }),
@@ -1067,15 +1067,15 @@ const ta = {
1067
1067
  default: g(() => {
1068
1068
  var b;
1069
1069
  return [
1070
- Y(j("div", Gl, [
1070
+ Y(j("div", Wl, [
1071
1071
  w(s(me), {
1072
- onClick: m[0] || (m[0] = (v) => i()),
1073
- size: u.size,
1072
+ onClick: m[0] || (m[0] = (v) => u()),
1073
+ size: d.size,
1074
1074
  link: "",
1075
1075
  icon: s(Ee)
1076
1076
  }, null, 8, ["size", "icon"])
1077
1077
  ], 512), [
1078
- [ge, I === (((b = d.value) == null ? void 0 : b.length) ?? 0) - 1]
1078
+ [ge, I === (((b = i.value) == null ? void 0 : b.length) ?? 0) - 1]
1079
1079
  ])
1080
1080
  ];
1081
1081
  }),
@@ -1085,29 +1085,29 @@ const ta = {
1085
1085
  ]);
1086
1086
  };
1087
1087
  }
1088
- }), la = /* @__PURE__ */ pe(Hl, [["__scopeId", "data-v-d4e93caa"]]), Wl = /* @__PURE__ */ z({
1088
+ }), na = /* @__PURE__ */ pe(Kl, [["__scopeId", "data-v-d4e93caa"]]), Yl = /* @__PURE__ */ z({
1089
1089
  __name: "JaNumberList",
1090
1090
  emits: ["change"],
1091
- setup(e, { emit: l }) {
1092
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
1093
- function d(c) {
1094
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
1095
- }
1096
- const n = h(x(a.formData, t) ?? [0]);
1097
- return T(() => a.formData, () => {
1098
- n.value = x(a.formData, t) ?? [0];
1091
+ setup(e, { emit: a }) {
1092
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
1093
+ function i(c) {
1094
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
1095
+ }
1096
+ const n = h(x(l.formData, t) ?? [0]);
1097
+ return T(() => l.formData, () => {
1098
+ n.value = x(l.formData, t) ?? [0];
1099
1099
  }, {
1100
1100
  deep: !0
1101
- }), (c, p) => (y(), $(la, K({
1101
+ }), (c, p) => (y(), $(na, K({
1102
1102
  modelValue: n.value,
1103
1103
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
1104
- onChange: d
1104
+ onChange: i
1105
1105
  }, c.$attrs), null, 16, ["modelValue"]));
1106
1106
  }
1107
- }), Kl = R(Wl), Yl = R(la), Ql = {
1107
+ }), Ql = R(Yl), Xl = R(na), Zl = {
1108
1108
  style: { width: "100%" },
1109
1109
  class: "ja-enum-list"
1110
- }, Xl = { class: "el-input-group__append" }, Zl = { class: "el-input-group__append" }, eo = /* @__PURE__ */ z({
1110
+ }, eo = { class: "el-input-group__append" }, to = { class: "el-input-group__append" }, ao = /* @__PURE__ */ z({
1111
1111
  __name: "EnumListInput",
1112
1112
  props: {
1113
1113
  modelValue: {},
@@ -1115,54 +1115,54 @@ const ta = {
1115
1115
  size: {}
1116
1116
  },
1117
1117
  emits: ["update:modelValue", "change"],
1118
- setup(e, { emit: l }) {
1118
+ setup(e, { emit: a }) {
1119
1119
  var r;
1120
- const a = e, t = l;
1121
- function o(u) {
1122
- d.value.splice(u, 1);
1120
+ const l = e, t = a;
1121
+ function o(d) {
1122
+ i.value.splice(d, 1);
1123
1123
  }
1124
- function i() {
1125
- d.value.push({ v: "" });
1124
+ function u() {
1125
+ i.value.push({ v: "" });
1126
1126
  }
1127
- const d = h(((r = a.modelValue) == null ? void 0 : r.map((u) => ({ v: u }))) ?? [{
1127
+ const i = h(((r = l.modelValue) == null ? void 0 : r.map((d) => ({ v: d }))) ?? [{
1128
1128
  v: ""
1129
1129
  }]);
1130
1130
  let n = !1, c = !1;
1131
- je(() => p(a.modelValue));
1132
- function p(u) {
1131
+ je(() => p(l.modelValue));
1132
+ function p(d) {
1133
1133
  if (c) {
1134
1134
  c = !1;
1135
1135
  return;
1136
1136
  }
1137
- n = !0, d.value = u.map((m) => ({ v: m })), d.value.length == 0 && d.value.push({ v: "" });
1137
+ n = !0, i.value = d.map((m) => ({ v: m })), i.value.length == 0 && i.value.push({ v: "" });
1138
1138
  }
1139
- return T(() => a.modelValue, (u) => {
1140
- p(u);
1141
- }), T(() => d.value, () => {
1139
+ return T(() => l.modelValue, (d) => {
1140
+ p(d);
1141
+ }), T(() => i.value, () => {
1142
1142
  if (n) {
1143
1143
  n = !1;
1144
1144
  return;
1145
1145
  }
1146
1146
  c = !0;
1147
- const u = d.value.map((m) => m.v).filter((m) => m && m.length > 0);
1148
- t("update:modelValue", u), t("change", u);
1149
- }, { deep: !0 }), (u, m) => {
1147
+ const d = i.value.map((m) => m.v).filter((m) => m && m.length > 0);
1148
+ t("update:modelValue", d), t("change", d);
1149
+ }, { deep: !0 }), (d, m) => {
1150
1150
  const f = he("el-option"), _ = he("el-tooltip");
1151
- return y(), N("div", Ql, [
1152
- (y(!0), N(oe, null, W(d.value, (I, b) => (y(), N("div", {
1151
+ return y(), N("div", Zl, [
1152
+ (y(!0), N(ne, null, W(i.value, (I, b) => (y(), N("div", {
1153
1153
  class: "ja-input-box",
1154
1154
  key: b
1155
1155
  }, [
1156
1156
  w(s(Ae), {
1157
1157
  modelValue: I.v,
1158
1158
  "onUpdate:modelValue": (v) => I.v = v,
1159
- size: u.size
1159
+ size: d.size
1160
1160
  }, {
1161
1161
  default: g(() => [
1162
- (y(!0), N(oe, null, W(Object.keys(a.enumValues), (v) => (y(), $(f, {
1162
+ (y(!0), N(ne, null, W(Object.keys(l.enumValues), (v) => (y(), $(f, {
1163
1163
  key: v,
1164
1164
  label: v,
1165
- value: a.enumValues[v]
1165
+ value: l.enumValues[v]
1166
1166
  }, null, 8, ["label", "value"]))), 128))
1167
1167
  ]),
1168
1168
  _: 2
@@ -1174,15 +1174,15 @@ const ta = {
1174
1174
  default: g(() => {
1175
1175
  var v;
1176
1176
  return [
1177
- Y(j("div", Xl, [
1177
+ Y(j("div", eo, [
1178
1178
  w(s(me), {
1179
1179
  link: "",
1180
1180
  icon: s(xe),
1181
1181
  onClick: (S) => o(b),
1182
- size: u.size
1182
+ size: d.size
1183
1183
  }, null, 8, ["icon", "onClick", "size"])
1184
1184
  ], 512), [
1185
- [ge, b < (((v = d.value) == null ? void 0 : v.length) ?? 0) - 1]
1185
+ [ge, b < (((v = i.value) == null ? void 0 : v.length) ?? 0) - 1]
1186
1186
  ])
1187
1187
  ];
1188
1188
  }),
@@ -1195,15 +1195,15 @@ const ta = {
1195
1195
  default: g(() => {
1196
1196
  var v;
1197
1197
  return [
1198
- Y(j("div", Zl, [
1198
+ Y(j("div", to, [
1199
1199
  w(s(me), {
1200
- onClick: m[0] || (m[0] = (S) => i()),
1201
- size: u.size,
1200
+ onClick: m[0] || (m[0] = (S) => u()),
1201
+ size: d.size,
1202
1202
  link: "",
1203
1203
  icon: s(Ee)
1204
1204
  }, null, 8, ["size", "icon"])
1205
1205
  ], 512), [
1206
- [ge, b === (((v = d.value) == null ? void 0 : v.length) ?? 0) - 1]
1206
+ [ge, b === (((v = i.value) == null ? void 0 : v.length) ?? 0) - 1]
1207
1207
  ])
1208
1208
  ];
1209
1209
  }),
@@ -1213,33 +1213,33 @@ const ta = {
1213
1213
  ]);
1214
1214
  };
1215
1215
  }
1216
- }), oa = /* @__PURE__ */ pe(eo, [["__scopeId", "data-v-7f910f6d"]]), to = /* @__PURE__ */ z({
1216
+ }), ra = /* @__PURE__ */ pe(ao, [["__scopeId", "data-v-7f910f6d"]]), lo = /* @__PURE__ */ z({
1217
1217
  __name: "JaEnumList",
1218
1218
  props: {
1219
1219
  enumValues: {}
1220
1220
  },
1221
1221
  emits: ["change"],
1222
- setup(e, { emit: l }) {
1223
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
1224
- function d(c) {
1225
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
1226
- }
1227
- const n = h(x(a.formData, t) ?? [""]);
1228
- return T(() => a.formData, () => {
1229
- n.value = x(a.formData, t) ?? [""];
1222
+ setup(e, { emit: a }) {
1223
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
1224
+ function i(c) {
1225
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
1226
+ }
1227
+ const n = h(x(l.formData, t) ?? [""]);
1228
+ return T(() => l.formData, () => {
1229
+ n.value = x(l.formData, t) ?? [""];
1230
1230
  }, {
1231
1231
  deep: !0
1232
- }), (c, p) => (y(), $(oa, K({
1232
+ }), (c, p) => (y(), $(ra, K({
1233
1233
  modelValue: n.value,
1234
1234
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
1235
1235
  "enum-values": c.enumValues,
1236
- onChange: d
1236
+ onChange: i
1237
1237
  }, c.$attrs), null, 16, ["modelValue", "enum-values"]));
1238
1238
  }
1239
- }), ao = R(to), lo = R(oa), oo = {
1239
+ }), oo = R(lo), no = R(ra), ro = {
1240
1240
  style: { width: "100%" },
1241
1241
  class: "ja-enum-list"
1242
- }, no = { class: "splitter" }, ro = { class: "el-input-group__append" }, so = { class: "el-input-group__append" }, uo = /* @__PURE__ */ z({
1242
+ }, so = { class: "splitter" }, uo = { class: "el-input-group__append" }, io = { class: "el-input-group__append" }, co = /* @__PURE__ */ z({
1243
1243
  __name: "MapItemListInput",
1244
1244
  props: {
1245
1245
  modelValue: {},
@@ -1248,29 +1248,29 @@ const ta = {
1248
1248
  size: {}
1249
1249
  },
1250
1250
  emits: ["update:modelValue", "change"],
1251
- setup(e, { emit: l }) {
1252
- const a = e, t = l;
1251
+ setup(e, { emit: a }) {
1252
+ const l = e, t = a;
1253
1253
  function o(f) {
1254
1254
  var _;
1255
- (_ = d.value) == null || _.splice(f, 1);
1255
+ (_ = i.value) == null || _.splice(f, 1);
1256
1256
  }
1257
- function i() {
1257
+ function u() {
1258
1258
  var f;
1259
- (f = d.value) == null || f.push({ k: "" });
1259
+ (f = i.value) == null || f.push({ k: "" });
1260
1260
  }
1261
- const d = h([]);
1261
+ const i = h([]);
1262
1262
  let n = !1, c = !1, p = h(), r = h({});
1263
- function u() {
1264
- switch (console.log("map item value comp type:", a.valueType), a.valueType) {
1263
+ function d() {
1264
+ switch (console.log("map item value comp type:", l.valueType), l.valueType) {
1265
1265
  case "String":
1266
1266
  p.value = we, r.value = {};
1267
1267
  break;
1268
1268
  case "Integer":
1269
1269
  case "Long":
1270
- p.value = We;
1270
+ p.value = Ke;
1271
1271
  break;
1272
1272
  case "Decimal":
1273
- p.value = We, r.value = {
1273
+ p.value = Ke, r.value = {
1274
1274
  precision: 2,
1275
1275
  step: 0.1
1276
1276
  };
@@ -1279,7 +1279,7 @@ const ta = {
1279
1279
  p.value = Ae;
1280
1280
  break;
1281
1281
  case "Boolean":
1282
- p.value = Nt;
1282
+ p.value = Jt;
1283
1283
  break;
1284
1284
  case "DATE":
1285
1285
  p.value = rt, r.value = {
@@ -1294,7 +1294,7 @@ const ta = {
1294
1294
  }
1295
1295
  }
1296
1296
  je(() => {
1297
- m(a.modelValue), u();
1297
+ m(l.modelValue), d();
1298
1298
  });
1299
1299
  function m(f) {
1300
1300
  if (c) {
@@ -1304,29 +1304,29 @@ const ta = {
1304
1304
  if (f) {
1305
1305
  n = !0;
1306
1306
  const _ = Object.keys(f);
1307
- d.value = _.map((I) => ({ k: I, v: f[I] })), d.value.length == 0 && d.value.push({ k: "" });
1307
+ i.value = _.map((I) => ({ k: I, v: f[I] })), i.value.length == 0 && i.value.push({ k: "" });
1308
1308
  } else
1309
- d.value = [{ k: "" }];
1309
+ i.value = [{ k: "" }];
1310
1310
  }
1311
- return T(() => a.modelValue, (f) => {
1311
+ return T(() => l.modelValue, (f) => {
1312
1312
  m(f);
1313
1313
  }, {
1314
1314
  deep: !0
1315
- }), T(() => d.value, () => {
1315
+ }), T(() => i.value, () => {
1316
1316
  var _;
1317
1317
  if (n) {
1318
1318
  n = !1;
1319
1319
  return;
1320
1320
  }
1321
1321
  c = !0;
1322
- const f = (_ = d.value) == null ? void 0 : _.filter((I) => I.k && I.v).reduce((I, b) => (I[b.k] = b.v, I), {});
1322
+ const f = (_ = i.value) == null ? void 0 : _.filter((I) => I.k && I.v).reduce((I, b) => (I[b.k] = b.v, I), {});
1323
1323
  t("update:modelValue", f), t("change", f);
1324
- }, { deep: !0 }), T(() => a.valueType, () => {
1325
- u();
1324
+ }, { deep: !0 }), T(() => l.valueType, () => {
1325
+ d();
1326
1326
  }), (f, _) => {
1327
1327
  const I = he("el-text"), b = he("el-option"), v = he("el-tooltip");
1328
- return y(), N("div", oo, [
1329
- (y(!0), N(oe, null, W(d.value, (S, P) => (y(), N("div", {
1328
+ return y(), N("div", ro, [
1329
+ (y(!0), N(ne, null, W(i.value, (S, P) => (y(), N("div", {
1330
1330
  class: "ja-input-box",
1331
1331
  key: P
1332
1332
  }, [
@@ -1336,26 +1336,26 @@ const ta = {
1336
1336
  size: f.size,
1337
1337
  placeholder: "键"
1338
1338
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
1339
- j("div", no, [
1339
+ j("div", so, [
1340
1340
  w(I, null, {
1341
1341
  default: g(() => _[1] || (_[1] = [
1342
- G(":")
1342
+ H(":")
1343
1343
  ])),
1344
1344
  _: 1,
1345
1345
  __: [1]
1346
1346
  })
1347
1347
  ]),
1348
- (y(), $(Ua(s(p)), K({
1348
+ (y(), $(Ba(s(p)), K({
1349
1349
  modelValue: S.v,
1350
1350
  "onUpdate:modelValue": (k) => S.v = k,
1351
1351
  size: f.size,
1352
1352
  placeholder: "值"
1353
1353
  }, { ref_for: !0 }, s(r)), {
1354
1354
  default: g(() => [
1355
- a.valueType == "Enum" ? (y(!0), N(oe, { key: 0 }, W(Object.keys(a.enumValues ?? {}), (k) => (y(), $(b, {
1355
+ l.valueType == "Enum" ? (y(!0), N(ne, { key: 0 }, W(Object.keys(l.enumValues ?? {}), (k) => (y(), $(b, {
1356
1356
  key: k,
1357
1357
  label: k,
1358
- value: a.enumValues ? a.enumValues[k] : ""
1358
+ value: l.enumValues ? l.enumValues[k] : ""
1359
1359
  }, null, 8, ["label", "value"]))), 128)) : de("", !0)
1360
1360
  ]),
1361
1361
  _: 2
@@ -1367,7 +1367,7 @@ const ta = {
1367
1367
  default: g(() => {
1368
1368
  var k;
1369
1369
  return [
1370
- Y(j("div", ro, [
1370
+ Y(j("div", uo, [
1371
1371
  w(s(me), {
1372
1372
  link: "",
1373
1373
  icon: s(xe),
@@ -1375,7 +1375,7 @@ const ta = {
1375
1375
  size: f.size
1376
1376
  }, null, 8, ["icon", "onClick", "size"])
1377
1377
  ], 512), [
1378
- [ge, P < (((k = d.value) == null ? void 0 : k.length) ?? 0) - 1]
1378
+ [ge, P < (((k = i.value) == null ? void 0 : k.length) ?? 0) - 1]
1379
1379
  ])
1380
1380
  ];
1381
1381
  }),
@@ -1388,15 +1388,15 @@ const ta = {
1388
1388
  default: g(() => {
1389
1389
  var k;
1390
1390
  return [
1391
- Y(j("div", so, [
1391
+ Y(j("div", io, [
1392
1392
  w(s(me), {
1393
- onClick: _[0] || (_[0] = (C) => i()),
1393
+ onClick: _[0] || (_[0] = (C) => u()),
1394
1394
  size: f.size,
1395
1395
  link: "",
1396
1396
  icon: s(Ee)
1397
1397
  }, null, 8, ["size", "icon"])
1398
1398
  ], 512), [
1399
- [ge, P === (((k = d.value) == null ? void 0 : k.length) ?? 0) - 1]
1399
+ [ge, P === (((k = i.value) == null ? void 0 : k.length) ?? 0) - 1]
1400
1400
  ])
1401
1401
  ];
1402
1402
  }),
@@ -1406,40 +1406,40 @@ const ta = {
1406
1406
  ]);
1407
1407
  };
1408
1408
  }
1409
- }), na = /* @__PURE__ */ pe(uo, [["__scopeId", "data-v-f8df7c64"]]), io = /* @__PURE__ */ z({
1409
+ }), sa = /* @__PURE__ */ pe(co, [["__scopeId", "data-v-f8df7c64"]]), po = /* @__PURE__ */ z({
1410
1410
  __name: "JaMapItemList",
1411
1411
  emits: ["change"],
1412
- setup(e, { emit: l }) {
1413
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
1414
- function d(c) {
1415
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
1416
- }
1417
- const n = h(x(a.formData, t) ?? { "": "" });
1418
- return T(() => a.formData, () => {
1419
- n.value = x(a.formData, t) ?? { "": "" };
1420
- }), (c, p) => (y(), $(na, K({
1412
+ setup(e, { emit: a }) {
1413
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
1414
+ function i(c) {
1415
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
1416
+ }
1417
+ const n = h(x(l.formData, t) ?? { "": "" });
1418
+ return T(() => l.formData, () => {
1419
+ n.value = x(l.formData, t) ?? { "": "" };
1420
+ }), (c, p) => (y(), $(sa, K({
1421
1421
  modelValue: n.value,
1422
1422
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
1423
- onChange: d
1423
+ onChange: i
1424
1424
  }, c.$attrs), null, 16, ["modelValue"]));
1425
1425
  }
1426
- }), co = R(io), po = R(na);
1427
- function mo(e, l) {
1426
+ }), mo = R(po), fo = R(sa);
1427
+ function vo(e, a) {
1428
1428
  return {
1429
1429
  ...e,
1430
- label: typeof l == "string" && typeof e[l] == "string" ? e[l] : "",
1430
+ label: typeof a == "string" && typeof e[a] == "string" ? e[a] : "",
1431
1431
  children: []
1432
1432
  };
1433
1433
  }
1434
- function Pe(e, l) {
1435
- const a = {}, t = [];
1434
+ function Pe(e, a) {
1435
+ const l = {}, t = [];
1436
1436
  for (let o = 0; o < e.length; o++) {
1437
- const i = e[o], d = mo(i, l);
1438
- a[i.id] = d, i.parentId ? a[i.parentId].children.push(d) : t.push(d);
1437
+ const u = e[o], i = vo(u, a);
1438
+ l[u.id] = i, u.parentId ? l[u.parentId].children.push(i) : t.push(i);
1439
1439
  }
1440
1440
  return t;
1441
1441
  }
1442
- const bt = "-1", ra = "-100", fo = /* @__PURE__ */ z({
1442
+ const bt = "-1", ua = "-100", go = /* @__PURE__ */ z({
1443
1443
  __name: "DepartmentPicker",
1444
1444
  props: /* @__PURE__ */ Q({
1445
1445
  realmId: {},
@@ -1453,16 +1453,16 @@ const bt = "-1", ra = "-100", fo = /* @__PURE__ */ z({
1453
1453
  modelModifiers: {}
1454
1454
  }),
1455
1455
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
1456
- setup(e, { emit: l }) {
1457
- const a = ne(), t = xt(a), o = e, i = l, d = ue(e, "modelValue");
1458
- if (o.multiple && !Array.isArray(d.value))
1456
+ setup(e, { emit: a }) {
1457
+ const l = le(), t = Gt(l), o = e, u = a, i = ue(e, "modelValue");
1458
+ if (o.multiple && !Array.isArray(i.value))
1459
1459
  throw new Error("部门选择器设置multiple为true,但是绑定的v-model值是单值");
1460
- if (!o.multiple && Array.isArray(d.value))
1460
+ if (!o.multiple && Array.isArray(i.value))
1461
1461
  throw new Error("部门选择器未设置multiple为true,但是绑定的v-model值是数组");
1462
1462
  const n = Oe({
1463
1463
  department: []
1464
1464
  }), c = () => {
1465
- o.realmId && t.getNormal(o.realmId ?? "0", qt.BAT).then((r) => {
1465
+ o.realmId && t.getNormal(o.realmId ?? "0", Ht.BAT).then((r) => {
1466
1466
  n.department = [...Pe(r, "name")], o.showNodeAll && n.department.unshift({
1467
1467
  label: "所有部门",
1468
1468
  id: o.allId,
@@ -1475,23 +1475,23 @@ const bt = "-1", ra = "-100", fo = /* @__PURE__ */ z({
1475
1475
  });
1476
1476
  });
1477
1477
  }, p = (r) => {
1478
- i("change", Array.isArray(r) ? n.department.filter((u) => r.findIndex((m) => u.id === m) >= 0) : n.department.find((u) => u.id === r));
1478
+ u("change", Array.isArray(r) ? n.department.filter((d) => r.findIndex((m) => d.id === m) >= 0) : n.department.find((d) => d.id === r));
1479
1479
  };
1480
1480
  return c(), T(
1481
1481
  () => o.realmId,
1482
1482
  () => {
1483
1483
  c();
1484
1484
  }
1485
- ), (r, u) => (y(), $(s(gt), K({
1485
+ ), (r, d) => (y(), $(s(gt), K({
1486
1486
  style: { width: "100%" },
1487
1487
  data: n.department,
1488
1488
  size: o.size,
1489
1489
  "node-key": "id",
1490
1490
  "check-strictly": "",
1491
- "current-node-key": d.value,
1491
+ "current-node-key": i.value,
1492
1492
  "highlight-current": "",
1493
- modelValue: d.value,
1494
- "onUpdate:modelValue": u[0] || (u[0] = (m) => d.value = m),
1493
+ modelValue: i.value,
1494
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
1495
1495
  multiple: r.multiple,
1496
1496
  onChange: p
1497
1497
  }, r.$attrs, {
@@ -1501,12 +1501,12 @@ const bt = "-1", ra = "-100", fo = /* @__PURE__ */ z({
1501
1501
  teleported: ""
1502
1502
  }), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
1503
1503
  }
1504
- }), vo = R(fo), sa = h(Date.now());
1505
- function go() {
1506
- sa.value = Date.now();
1504
+ }), ho = R(go), ia = h(Date.now());
1505
+ function yo() {
1506
+ ia.value = Date.now();
1507
1507
  }
1508
- function ua() {
1509
- return sa;
1508
+ function da() {
1509
+ return ia;
1510
1510
  }
1511
1511
  const lt = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1280.000000pt' height='1248.000000pt' viewBox='-384 -374 2048 2048' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0.000000,1248.000000) scale(0.100000,-0.100000)'
1512
1512
  fill='%23fff' stroke='none'%3E%3Cpath d='M6005 12474 c-22 -2 -89 -9 -149 -14 -542 -53 -1087 -253 -1556 -571
@@ -1521,7 +1521,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
1521
1521
  19 4525 19 4730 0 495 -47 873 -112 1690 -291 697 -153 961 -197 1230 -208
1522
1522
  254 -10 438 21 605 103 172 84 315 254 390 463 74 203 108 420 117 736 34
1523
1523
  1230 -451 2439 -1332 3320 -707 707 -1608 1156 -2597 1294 -206 29 -201 30
1524
- -283 -33z'/%3E%3C/g%3E%3C/svg%3E`, ho = /* @__PURE__ */ z({
1524
+ -283 -33z'/%3E%3C/g%3E%3C/svg%3E`, bo = /* @__PURE__ */ z({
1525
1525
  __name: "JaAvatar",
1526
1526
  props: {
1527
1527
  userId: {},
@@ -1532,44 +1532,44 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
1532
1532
  firstName: {}
1533
1533
  },
1534
1534
  setup(e) {
1535
- const l = e, a = ua(), t = h(!1), o = h(), i = h();
1536
- t.value = !0, Ye(async () => {
1535
+ const a = e, l = da(), t = h(!1), o = h(), u = h();
1536
+ t.value = !0, Qe(async () => {
1537
1537
  await Ie();
1538
1538
  });
1539
- const d = ve(
1539
+ const i = ve(
1540
1540
  () => {
1541
- if (!(t.value && l.hasAvatar && !l.doNotLoadAvatar))
1542
- return l.firstName ? "" : lt;
1543
- if (l.userId && l.userId.length > 0) {
1544
- const c = "/ace-app-service/avatar/" + l.userId;
1545
- return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" + a.value.toString() : new URL(c, location.origin).toString() + "?t=" + a.value.toString();
1541
+ if (!(t.value && a.hasAvatar && !a.doNotLoadAvatar))
1542
+ return a.firstName ? "" : lt;
1543
+ if (a.userId && a.userId.length > 0) {
1544
+ const c = "/ace-app-service/avatar/" + a.userId;
1545
+ return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" + l.value.toString() : new URL(c, location.origin).toString() + "?t=" + l.value.toString();
1546
1546
  }
1547
- if (l.realm && l.realm.length > 0 && l.username && l.username.length > 0) {
1548
- const c = "/ace-app-service/avatar/" + l.realm + "/" + l.username;
1549
- return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" + a.value.toString() : new URL(c, location.origin).toString() + "?t=" + a.value.toString();
1547
+ if (a.realm && a.realm.length > 0 && a.username && a.username.length > 0) {
1548
+ const c = "/ace-app-service/avatar/" + a.realm + "/" + a.username;
1549
+ return window.appDescriptor.env.isDevMode() ? new URL("/ace" + c, location.origin).toString() + "?t=" + l.value.toString() : new URL(c, location.origin).toString() + "?t=" + l.value.toString();
1550
1550
  }
1551
- return l.firstName ? "" : lt;
1551
+ return a.firstName ? "" : lt;
1552
1552
  }
1553
1553
  );
1554
1554
  function n(c) {
1555
- var u;
1555
+ var d;
1556
1556
  if (!c) return;
1557
- let r = ((u = o.value) == null ? void 0 : u.$el.clientWidth) / 2.8;
1557
+ let r = ((d = o.value) == null ? void 0 : d.$el.clientWidth) / 2.8;
1558
1558
  c.style.fontSize = r + "px";
1559
1559
  }
1560
1560
  return $e(() => {
1561
- }), T(i, () => n(i.value)), (c, p) => (y(), $(s(La), K({ src: d.value }, c.$attrs, {
1561
+ }), T(u, () => n(u.value)), (c, p) => (y(), $(s(Ja), K({ src: i.value }, c.$attrs, {
1562
1562
  ref_key: "avatar",
1563
1563
  ref: o,
1564
1564
  class: "ja-avatar"
1565
1565
  }), {
1566
1566
  default: g(() => [
1567
- l.firstName && l.firstName.length > 0 ? (y(), N("span", {
1567
+ a.firstName && a.firstName.length > 0 ? (y(), N("span", {
1568
1568
  key: 0,
1569
1569
  class: "user-name-avatar",
1570
1570
  ref_key: "usernameSpan",
1571
- ref: i
1572
- }, ae(c.firstName), 513)) : (y(), $(s(Na), {
1571
+ ref: u
1572
+ }, ae(c.firstName), 513)) : (y(), $(s(Oa), {
1573
1573
  key: 1,
1574
1574
  style: { height: "100%" },
1575
1575
  src: s(lt),
@@ -1579,12 +1579,12 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
1579
1579
  _: 1
1580
1580
  }, 16, ["src"]));
1581
1581
  }
1582
- }), yo = /* @__PURE__ */ pe(ho, [["__scopeId", "data-v-23297931"]]), it = R(yo);
1582
+ }), wo = /* @__PURE__ */ pe(bo, [["__scopeId", "data-v-23297931"]]), it = R(wo);
1583
1583
  let ot;
1584
- function bo() {
1585
- return ot || (ot = ne()), ot;
1584
+ function _o() {
1585
+ return ot || (ot = le()), ot;
1586
1586
  }
1587
- const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dropdown" }, Vo = { class: "header" }, Io = { class: "tools" }, Co = { style: { margin: "0", "font-weight": "600" } }, $o = { style: { margin: "0", "font-size": "14px", color: "var(--el-color-info-light-3)" } }, Ao = { style: { margin: "0" } }, Do = /* @__PURE__ */ z({
1587
+ const ko = { class: "portrait" }, Vo = { class: "user-info" }, Io = { class: "dropdown" }, Co = { class: "header" }, $o = { class: "tools" }, Ao = { style: { margin: "0", "font-weight": "600" } }, Do = { style: { margin: "0", "font-size": "14px", color: "var(--el-color-info-light-3)" } }, Eo = { style: { margin: "0" } }, So = /* @__PURE__ */ z({
1588
1588
  __name: "UserInfoTag",
1589
1589
  props: {
1590
1590
  closable: { type: Boolean, default: !1 },
@@ -1597,8 +1597,8 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1597
1597
  placement: { default: "bottom" }
1598
1598
  },
1599
1599
  emits: ["closed"],
1600
- setup(e, { emit: l }) {
1601
- const a = {
1600
+ setup(e, { emit: a }) {
1601
+ const l = {
1602
1602
  primary: "user-info-tag--root theme-primary",
1603
1603
  success: "user-info-tag--root theme-success",
1604
1604
  warning: "user-info-tag--root theme-warning",
@@ -1613,12 +1613,12 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1613
1613
  clovePurple: "user-info-tag--root theme-clove-purple",
1614
1614
  skyGray: "user-info-tag--root theme-sky-gray"
1615
1615
  }, t = e, o = h();
1616
- let i = bo(), d = _e(i), n = ht(i);
1617
- const c = h(!1), p = h(!1), r = l;
1616
+ let u = _o(), i = _e(u), n = ht(u);
1617
+ const c = h(!1), p = h(!1), r = a;
1618
1618
  $e(() => {
1619
- i = void 0, d = void 0, n = void 0;
1619
+ u = void 0, i = void 0, n = void 0;
1620
1620
  });
1621
- function u() {
1621
+ function d() {
1622
1622
  if (!o.value)
1623
1623
  if (t.userId)
1624
1624
  n == null || n.getById(t.userId).then((b) => {
@@ -1648,19 +1648,19 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1648
1648
  function I() {
1649
1649
  o.value && (n == null || n.unbookmarkUser(o.value.id).then(() => c.value = !1));
1650
1650
  }
1651
- return (b, v) => (y(), $(s(Jt), {
1651
+ return (b, v) => (y(), $(s(Ot), {
1652
1652
  width: "auto",
1653
1653
  "hide-after": 200,
1654
- onBeforeEnter: u,
1654
+ onBeforeEnter: d,
1655
1655
  placement: b.placement,
1656
1656
  visible: p.value,
1657
1657
  "onUpdate:visible": v[3] || (v[3] = (S) => p.value = S)
1658
1658
  }, {
1659
1659
  reference: g(() => [
1660
1660
  j("div", {
1661
- class: Ge(a[t.theme])
1661
+ class: He(l[t.theme])
1662
1662
  }, [
1663
- j("div", wo, [
1663
+ j("div", ko, [
1664
1664
  w(s(it), {
1665
1665
  size: 24,
1666
1666
  "user-id": b.userId,
@@ -1669,8 +1669,8 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1669
1669
  "has-avatar": !1
1670
1670
  }, null, 8, ["user-id", "realm", "username"])
1671
1671
  ]),
1672
- j("div", _o, [
1673
- G(ae(b.fullName) + " ", 1),
1672
+ j("div", Vo, [
1673
+ H(ae(b.fullName) + " ", 1),
1674
1674
  b.closable ? (y(), N("div", {
1675
1675
  key: 0,
1676
1676
  class: "close-btn",
@@ -1678,7 +1678,7 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1678
1678
  }, [
1679
1679
  w(s(ce), { size: 10 }, {
1680
1680
  default: g(() => [
1681
- w(s(el))
1681
+ w(s(al))
1682
1682
  ]),
1683
1683
  _: 1
1684
1684
  })
@@ -1687,10 +1687,10 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1687
1687
  ], 2)
1688
1688
  ]),
1689
1689
  default: g(() => {
1690
- var S, P, k, C, F, q, H;
1690
+ var S, P, k, C, F, q, G;
1691
1691
  return [
1692
- Y((y(), N("div", ko, [
1693
- j("div", Vo, [
1692
+ Y((y(), N("div", Io, [
1693
+ j("div", Co, [
1694
1694
  w(s(it), {
1695
1695
  "user-id": b.userId,
1696
1696
  realm: b.realm,
@@ -1699,7 +1699,7 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1699
1699
  "has-avatar": (S = o.value) == null ? void 0 : S.hasAvatar,
1700
1700
  style: { "margin-bottom": "8px" }
1701
1701
  }, null, 8, ["user-id", "realm", "username", "has-avatar"]),
1702
- j("div", Io, [
1702
+ j("div", $o, [
1703
1703
  w(s(ke), {
1704
1704
  content: c.value ? "取消常用人员" : "设置为常用人员"
1705
1705
  }, {
@@ -1711,7 +1711,7 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1711
1711
  size: 16
1712
1712
  }, {
1713
1713
  default: g(() => [
1714
- w(s(Zt))
1714
+ w(s(ta))
1715
1715
  ]),
1716
1716
  _: 1
1717
1717
  })) : (y(), $(s(ce), {
@@ -1720,7 +1720,7 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1720
1720
  size: 16
1721
1721
  }, {
1722
1722
  default: g(() => [
1723
- w(s(Za))
1723
+ w(s(tl))
1724
1724
  ]),
1725
1725
  _: 1
1726
1726
  }))
@@ -1730,104 +1730,104 @@ const wo = { class: "portrait" }, _o = { class: "user-info" }, ko = { class: "dr
1730
1730
  ])
1731
1731
  ]),
1732
1732
  j("div", null, [
1733
- j("p", Co, ae(b.fullName), 1),
1734
- j("p", $o, " @" + ae(((k = (P = o.value) == null ? void 0 : P.department) == null ? void 0 : k.name) ?? "无归属部门"), 1)
1733
+ j("p", Ao, ae(b.fullName), 1),
1734
+ j("p", Do, " @" + ae(((k = (P = o.value) == null ? void 0 : P.department) == null ? void 0 : k.name) ?? "无归属部门"), 1)
1735
1735
  ]),
1736
- j("p", Ao, [
1736
+ j("p", Eo, [
1737
1737
  v[4] || (v[4] = j("span", { class: "label" }, "手机:", -1)),
1738
- G(" " + ae(!((C = o.value) != null && C.mobile) || o.value.mobile.length === 0 ? "(未填写手机号)" : (F = o.value) == null ? void 0 : F.mobile) + " ", 1),
1738
+ H(" " + ae(!((C = o.value) != null && C.mobile) || o.value.mobile.length === 0 ? "(未填写手机号)" : (F = o.value) == null ? void 0 : F.mobile) + " ", 1),
1739
1739
  v[5] || (v[5] = j("br", null, null, -1)),
1740
1740
  v[6] || (v[6] = j("span", { class: "label" }, "邮箱:", -1)),
1741
- G(" " + ae(!((q = o.value) != null && q.email) || o.value.email.length === 0 ? "(未填写邮箱号)" : (H = o.value) == null ? void 0 : H.email), 1)
1741
+ H(" " + ae(!((q = o.value) != null && q.email) || o.value.email.length === 0 ? "(未填写邮箱号)" : (G = o.value) == null ? void 0 : G.email), 1)
1742
1742
  ])
1743
1743
  ])), [
1744
1744
  [ge, p.value],
1745
- [s(De), !!s(d)]
1745
+ [s(De), !!s(i)]
1746
1746
  ])
1747
1747
  ];
1748
1748
  }),
1749
1749
  _: 1
1750
1750
  }, 8, ["placement", "visible"]));
1751
1751
  }
1752
- }), Eo = /* @__PURE__ */ pe(Do, [["__scopeId", "data-v-b26877d9"]]), tt = R(Eo);
1753
- function Ke(e) {
1754
- var l = typeof e;
1755
- return e != null && (l == "object" || l == "function");
1752
+ }), To = /* @__PURE__ */ pe(So, [["__scopeId", "data-v-b26877d9"]]), tt = R(To);
1753
+ function Ye(e) {
1754
+ var a = typeof e;
1755
+ return e != null && (a == "object" || a == "function");
1756
1756
  }
1757
- var So = typeof global == "object" && global && global.Object === Object && global, To = typeof self == "object" && self && self.Object === Object && self, ia = So || To || Function("return this")(), nt = function() {
1758
- return ia.Date.now();
1759
- }, Fo = /\s/;
1760
- function Mo(e) {
1761
- for (var l = e.length; l-- && Fo.test(e.charAt(l)); )
1757
+ var Fo = typeof global == "object" && global && global.Object === Object && global, Mo = typeof self == "object" && self && self.Object === Object && self, ca = Fo || Mo || Function("return this")(), nt = function() {
1758
+ return ca.Date.now();
1759
+ }, Po = /\s/;
1760
+ function Uo(e) {
1761
+ for (var a = e.length; a-- && Po.test(e.charAt(a)); )
1762
1762
  ;
1763
- return l;
1763
+ return a;
1764
1764
  }
1765
- var Po = /^\s+/;
1766
- function da(e) {
1767
- return e && e.slice(0, Mo(e) + 1).replace(Po, "");
1765
+ var zo = /^\s+/;
1766
+ function pa(e) {
1767
+ return e && e.slice(0, Uo(e) + 1).replace(zo, "");
1768
1768
  }
1769
- var Me = ia.Symbol, ca = Object.prototype, Uo = ca.hasOwnProperty, zo = ca.toString, ze = Me ? Me.toStringTag : void 0;
1770
- function Bo(e) {
1771
- var l = Uo.call(e, ze), a = e[ze];
1769
+ var Me = ca.Symbol, ma = Object.prototype, Bo = ma.hasOwnProperty, Ro = ma.toString, ze = Me ? Me.toStringTag : void 0;
1770
+ function Lo(e) {
1771
+ var a = Bo.call(e, ze), l = e[ze];
1772
1772
  try {
1773
1773
  e[ze] = void 0;
1774
1774
  var t = !0;
1775
1775
  } catch {
1776
1776
  }
1777
- var o = zo.call(e);
1778
- return t && (l ? e[ze] = a : delete e[ze]), o;
1777
+ var o = Ro.call(e);
1778
+ return t && (a ? e[ze] = l : delete e[ze]), o;
1779
1779
  }
1780
- var Ro = Object.prototype, Lo = Ro.toString;
1781
- function No(e) {
1782
- return Lo.call(e);
1780
+ var No = Object.prototype, Jo = No.toString;
1781
+ function Oo(e) {
1782
+ return Jo.call(e);
1783
1783
  }
1784
- var Jo = "[object Null]", Oo = "[object Undefined]", Ft = Me ? Me.toStringTag : void 0;
1785
- function jo(e) {
1786
- return e == null ? e === void 0 ? Oo : Jo : Ft && Ft in Object(e) ? Bo(e) : No(e);
1784
+ var jo = "[object Null]", xo = "[object Undefined]", Mt = Me ? Me.toStringTag : void 0;
1785
+ function qo(e) {
1786
+ return e == null ? e === void 0 ? xo : jo : Mt && Mt in Object(e) ? Lo(e) : Oo(e);
1787
1787
  }
1788
- function xo(e) {
1788
+ function Go(e) {
1789
1789
  return e != null && typeof e == "object";
1790
1790
  }
1791
- var qo = "[object Symbol]";
1792
- function pa(e) {
1793
- return typeof e == "symbol" || xo(e) && jo(e) == qo;
1791
+ var Ho = "[object Symbol]";
1792
+ function fa(e) {
1793
+ return typeof e == "symbol" || Go(e) && qo(e) == Ho;
1794
1794
  }
1795
- var Mt = NaN, Go = /^[-+]0x[0-9a-f]+$/i, Ho = /^0b[01]+$/i, Wo = /^0o[0-7]+$/i, Ko = parseInt;
1796
- function Pt(e) {
1795
+ var Pt = NaN, Wo = /^[-+]0x[0-9a-f]+$/i, Ko = /^0b[01]+$/i, Yo = /^0o[0-7]+$/i, Qo = parseInt;
1796
+ function Ut(e) {
1797
1797
  if (typeof e == "number")
1798
1798
  return e;
1799
- if (pa(e))
1800
- return Mt;
1801
- if (Ke(e)) {
1802
- var l = typeof e.valueOf == "function" ? e.valueOf() : e;
1803
- e = Ke(l) ? l + "" : l;
1799
+ if (fa(e))
1800
+ return Pt;
1801
+ if (Ye(e)) {
1802
+ var a = typeof e.valueOf == "function" ? e.valueOf() : e;
1803
+ e = Ye(a) ? a + "" : a;
1804
1804
  }
1805
1805
  if (typeof e != "string")
1806
1806
  return e === 0 ? e : +e;
1807
- e = da(e);
1808
- var a = Ho.test(e);
1809
- return a || Wo.test(e) ? Ko(e.slice(2), a ? 2 : 8) : Go.test(e) ? Mt : +e;
1807
+ e = pa(e);
1808
+ var l = Ko.test(e);
1809
+ return l || Yo.test(e) ? Qo(e.slice(2), l ? 2 : 8) : Wo.test(e) ? Pt : +e;
1810
1810
  }
1811
- var Yo = "Expected a function", Qo = Math.max, Xo = Math.min;
1812
- function wt(e, l, a) {
1813
- var t, o, i, d, n, c, p = 0, r = !1, u = !1, m = !0;
1811
+ var Xo = "Expected a function", Zo = Math.max, en = Math.min;
1812
+ function wt(e, a, l) {
1813
+ var t, o, u, i, n, c, p = 0, r = !1, d = !1, m = !0;
1814
1814
  if (typeof e != "function")
1815
- throw new TypeError(Yo);
1816
- l = Pt(l) || 0, Ke(a) && (r = !!a.leading, u = "maxWait" in a, i = u ? Qo(Pt(a.maxWait) || 0, l) : i, m = "trailing" in a ? !!a.trailing : m);
1815
+ throw new TypeError(Xo);
1816
+ a = Ut(a) || 0, Ye(l) && (r = !!l.leading, d = "maxWait" in l, u = d ? Zo(Ut(l.maxWait) || 0, a) : u, m = "trailing" in l ? !!l.trailing : m);
1817
1817
  function f(F) {
1818
- var q = t, H = o;
1819
- return t = o = void 0, p = F, d = e.apply(H, q), d;
1818
+ var q = t, G = o;
1819
+ return t = o = void 0, p = F, i = e.apply(G, q), i;
1820
1820
  }
1821
1821
  function _(F) {
1822
- return p = F, n = setTimeout(v, l), r ? f(F) : d;
1822
+ return p = F, n = setTimeout(v, a), r ? f(F) : i;
1823
1823
  }
1824
1824
  function I(F) {
1825
- var q = F - c, H = F - p, Z = l - q;
1826
- return u ? Xo(Z, i - H) : Z;
1825
+ var q = F - c, G = F - p, Z = a - q;
1826
+ return d ? en(Z, u - G) : Z;
1827
1827
  }
1828
1828
  function b(F) {
1829
- var q = F - c, H = F - p;
1830
- return c === void 0 || q >= l || q < 0 || u && H >= i;
1829
+ var q = F - c, G = F - p;
1830
+ return c === void 0 || q >= a || q < 0 || d && G >= u;
1831
1831
  }
1832
1832
  function v() {
1833
1833
  var F = nt();
@@ -1836,90 +1836,105 @@ function wt(e, l, a) {
1836
1836
  n = setTimeout(v, I(F));
1837
1837
  }
1838
1838
  function S(F) {
1839
- return n = void 0, m && t ? f(F) : (t = o = void 0, d);
1839
+ return n = void 0, m && t ? f(F) : (t = o = void 0, i);
1840
1840
  }
1841
1841
  function P() {
1842
1842
  n !== void 0 && clearTimeout(n), p = 0, t = c = o = n = void 0;
1843
1843
  }
1844
1844
  function k() {
1845
- return n === void 0 ? d : S(nt());
1845
+ return n === void 0 ? i : S(nt());
1846
1846
  }
1847
1847
  function C() {
1848
1848
  var F = nt(), q = b(F);
1849
1849
  if (t = arguments, o = this, c = F, q) {
1850
1850
  if (n === void 0)
1851
1851
  return _(c);
1852
- if (u)
1853
- return clearTimeout(n), n = setTimeout(v, l), f(c);
1852
+ if (d)
1853
+ return clearTimeout(n), n = setTimeout(v, a), f(c);
1854
1854
  }
1855
- return n === void 0 && (n = setTimeout(v, l)), d;
1855
+ return n === void 0 && (n = setTimeout(v, a)), i;
1856
1856
  }
1857
1857
  return C.cancel = P, C.flush = k, C;
1858
1858
  }
1859
- function ma(e, l, a, t, o, i) {
1860
- const d = h({}), n = h({
1859
+ const Ge = h([]);
1860
+ function _t() {
1861
+ const e = Qa(), a = async () => {
1862
+ if (Ge.value.length !== 0) return;
1863
+ const t = {};
1864
+ Ge.value = await e.getAll(t);
1865
+ };
1866
+ return {
1867
+ realms: Ge,
1868
+ getAllRealms: a,
1869
+ getDefaultRealm: async () => (await a(), Ge.value.find((t) => t.name === "ace-platform"))
1870
+ };
1871
+ }
1872
+ function va(e, a, l, t, o, u) {
1873
+ const i = h({}), n = h({
1861
1874
  currentPage: 1,
1862
1875
  pageSize: 50
1863
1876
  }), c = h({
1864
1877
  total: 0,
1865
1878
  users: []
1866
1879
  });
1867
- o || (o = ne());
1868
- const p = ht(o), r = _e(o), u = h(!1);
1880
+ o || (o = le());
1881
+ const p = ht(o), r = _e(o), d = h(!1);
1869
1882
  function m() {
1870
1883
  I().then((b) => {
1871
- a && a(b, u.value), u.value = !1;
1884
+ l && l(b, d.value), d.value = !1;
1872
1885
  });
1873
1886
  }
1874
1887
  const f = wt(m, 300);
1875
1888
  function _() {
1876
1889
  c.value.total = 0, c.value.users = [], n.value.currentPage !== 1 ? n.value.currentPage = 1 : f();
1877
1890
  }
1878
- T(d, () => {
1879
- u.value = !0, _();
1891
+ T(i, () => {
1892
+ d.value = !0, _();
1880
1893
  }, {
1881
1894
  deep: !0
1882
1895
  }), T(() => n.value.pageSize, () => {
1883
- u.value = !0, _();
1896
+ d.value = !0, _();
1884
1897
  }), T(() => n.value.currentPage, () => {
1885
1898
  I().then((b) => {
1886
- a && a(b, u.value), u.value = !1;
1899
+ l && l(b, d.value), d.value = !1;
1887
1900
  });
1888
1901
  });
1889
- function I() {
1902
+ async function I() {
1890
1903
  if (e && !e())
1891
1904
  return Promise.resolve(void 0);
1892
- if (!d.value.realmId)
1893
- return Promise.resolve([]);
1894
- const b = Gt(), v = b.getQEntity();
1895
- b.and(v.realm.id.eq(d.value.realmId)).and(v.recycled.eq(!1));
1896
- const S = d.value.currentDept;
1897
- S && (S.id == ra ? b.and(v.department.isNull()) : S.id !== bt && b.and(v.department.sortPath.startWith(S.sortPath)));
1898
- const P = d.value.currentGroup;
1905
+ if (!i.value.realmId) {
1906
+ const G = await _t().getDefaultRealm();
1907
+ i.value.realmId = G.id;
1908
+ }
1909
+ const b = Wt(), v = b.getQEntity();
1910
+ b.and(v.realm.id.eq(i.value.realmId)).and(v.recycled.eq(!1));
1911
+ const S = i.value.currentDept;
1912
+ S && (S.id == ua ? b.and(v.department.isNull()) : S.id !== bt && b.and(v.department.sortPath.startWith(S.sortPath)));
1913
+ const P = i.value.currentGroup;
1899
1914
  P && b.and(v.userGroups.any().group.sortPath.startWith(P.sortPath));
1900
- const k = d.value.currentCustomGroup;
1915
+ const k = i.value.currentCustomGroup;
1901
1916
  k && b.and(v.customGroups.any().customGroup.sortPath.startWith(k.sortPath));
1902
- const C = d.value.name;
1917
+ const C = i.value.name;
1903
1918
  if (C) {
1904
- const H = "%" + C.split("").join("%") + "%";
1905
- b.and(v.username.like(H).or(v.fullName.like(H)).or(v.pinYinName.like(H)).or(v.mobile.like(H)));
1919
+ const G = "%" + C.split("").join("%") + "%";
1920
+ b.and(v.username.like(G).or(v.fullName.like(G)).or(v.pinYinName.like(G)).or(v.mobile.like(G)));
1906
1921
  }
1907
- l && b.and(l(v));
1908
- const F = d.value.currentSort;
1922
+ a && b.and(a(v));
1923
+ const F = i.value.currentSort;
1909
1924
  F && b.orderBy(F);
1910
1925
  const q = b.build();
1911
- if (i)
1912
- return p.queryUserRefs(q).then((H) => (c.value.users = H, H));
1926
+ if (u)
1927
+ return p.queryUserRefs(q).then((G) => (c.value.users = G, G));
1913
1928
  {
1914
- const H = n.value.currentPage - 1;
1915
- return p.queryUserRefsPaged(q, H, n.value.pageSize).then((Z) => (t && H > 0 ? c.value.users.push(...Z.content) : c.value.users = Z.content, c.value.total = Z.totalElements, Z.content));
1929
+ const G = n.value.currentPage - 1;
1930
+ return p.queryUserRefsPaged(q, G, n.value.pageSize).then((Z) => (t && G > 0 ? c.value.users.push(...Z.content) : c.value.users = Z.content, c.value.total = Z.totalElements, Z.content));
1916
1931
  }
1917
1932
  }
1918
1933
  return {
1919
1934
  /**
1920
1935
  * 查询的参数
1921
1936
  */
1922
- queryParams: d,
1937
+ queryParams: i,
1923
1938
  /**
1924
1939
  * 分页参数
1925
1940
  */
@@ -1938,7 +1953,7 @@ function ma(e, l, a, t, o, i) {
1938
1953
  loading: r
1939
1954
  };
1940
1955
  }
1941
- const Zo = /* @__PURE__ */ z({
1956
+ const tn = /* @__PURE__ */ z({
1942
1957
  __name: "departmentTree",
1943
1958
  props: /* @__PURE__ */ Q({
1944
1959
  realmId: {},
@@ -1949,21 +1964,21 @@ const Zo = /* @__PURE__ */ z({
1949
1964
  modelModifiers: {}
1950
1965
  }),
1951
1966
  emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
1952
- setup(e, { expose: l, emit: a }) {
1953
- const t = h(), o = ne(), i = _e(o), d = xt(o), n = e, c = a, p = ue(e, "modelValue"), r = ve({
1967
+ setup(e, { expose: a, emit: l }) {
1968
+ const t = h(), o = le(), u = _e(o), i = Gt(o), n = e, c = l, p = ue(e, "modelValue"), r = ve({
1954
1969
  get() {
1955
1970
  var _;
1956
1971
  return (_ = p.value) == null ? void 0 : _.id;
1957
1972
  },
1958
1973
  set(_) {
1959
- p.value = u.departments.find((I) => I.id === _) ?? null;
1974
+ p.value = d.departments.find((I) => I.id === _) ?? null;
1960
1975
  }
1961
- }), u = pt({
1976
+ }), d = pt({
1962
1977
  departments: []
1963
1978
  }), m = async () => {
1964
1979
  if (!n.realmId) return;
1965
- const _ = await d.getNormal(n.realmId, qt.BT);
1966
- u.departments = [
1980
+ const _ = await i.getNormal(n.realmId, Ht.BT);
1981
+ d.departments = [
1967
1982
  {
1968
1983
  id: bt,
1969
1984
  label: "所有部门",
@@ -1978,7 +1993,7 @@ const Zo = /* @__PURE__ */ z({
1978
1993
  attributes: {}
1979
1994
  },
1980
1995
  ...n.showNoDepartment ? [{
1981
- id: ra,
1996
+ id: ua,
1982
1997
  label: "无归属部门",
1983
1998
  name: "无归属部门",
1984
1999
  shortCode: "",
@@ -1991,7 +2006,7 @@ const Zo = /* @__PURE__ */ z({
1991
2006
  attributes: {}
1992
2007
  }] : [],
1993
2008
  ...Pe(_, "name")
1994
- ], r.value = u.departments[0].id, c("loaded", u.departments);
2009
+ ], r.value = d.departments[0].id, c("loaded", d.departments);
1995
2010
  }, f = (_) => {
1996
2011
  p.value = _, c("change", _);
1997
2012
  };
@@ -2000,12 +2015,12 @@ const Zo = /* @__PURE__ */ z({
2000
2015
  () => {
2001
2016
  m();
2002
2017
  }
2003
- ), l({
2018
+ ), a({
2004
2019
  reload: m
2005
- }), m(), (_, I) => Y((y(), $(s(Qe), {
2020
+ }), m(), (_, I) => Y((y(), $(s(Xe), {
2006
2021
  ref_key: "deptTree",
2007
2022
  ref: t,
2008
- data: s(u).departments,
2023
+ data: s(d).departments,
2009
2024
  size: "default",
2010
2025
  "node-key": "id",
2011
2026
  "default-expand-all": "",
@@ -2020,22 +2035,22 @@ const Zo = /* @__PURE__ */ z({
2020
2035
  }
2021
2036
  }
2022
2037
  }, null, 8, ["data", "current-node-key", "props"])), [
2023
- [s(De), s(i)]
2038
+ [s(De), s(u)]
2024
2039
  ]);
2025
2040
  }
2026
- }), en = /* @__PURE__ */ pe(Zo, [["__scopeId", "data-v-3d45613c"]]), fa = R(en), va = "com.csicit.ace.scrollbar.wrapped";
2027
- var tn = "Expected a function";
2028
- function Je(e, l, a) {
2041
+ }), an = /* @__PURE__ */ pe(tn, [["__scopeId", "data-v-3d45613c"]]), ga = R(an), ha = "com.csicit.ace.scrollbar.wrapped";
2042
+ var ln = "Expected a function";
2043
+ function Je(e, a, l) {
2029
2044
  var t = !0, o = !0;
2030
2045
  if (typeof e != "function")
2031
- throw new TypeError(tn);
2032
- return Ke(a) && (t = "leading" in a ? !!a.leading : t, o = "trailing" in a ? !!a.trailing : o), wt(e, l, {
2046
+ throw new TypeError(ln);
2047
+ return Ye(l) && (t = "leading" in l ? !!l.leading : t, o = "trailing" in l ? !!l.trailing : o), wt(e, a, {
2033
2048
  leading: t,
2034
- maxWait: l,
2049
+ maxWait: a,
2035
2050
  trailing: o
2036
2051
  });
2037
2052
  }
2038
- const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2053
+ const on = { class: "ja-user-group-tree" }, nn = /* @__PURE__ */ z({
2039
2054
  __name: "userGroupTree",
2040
2055
  props: /* @__PURE__ */ Q({
2041
2056
  realmId: {},
@@ -2048,9 +2063,9 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2048
2063
  modelModifiers: {}
2049
2064
  }),
2050
2065
  emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
2051
- async setup(e, { expose: l, emit: a }) {
2066
+ async setup(e, { expose: a, emit: l }) {
2052
2067
  let t, o;
2053
- const i = h(), d = ne(), n = _e(d), c = Ht(d), p = yt(d), r = e, u = a, m = ue(e, "modelValue"), f = h(r.appId), _ = ve({
2068
+ const u = h(), i = le(), n = _e(i), c = Kt(i), p = yt(i), r = e, d = l, m = ue(e, "modelValue"), f = h(r.appId), _ = ve({
2054
2069
  get() {
2055
2070
  var k;
2056
2071
  return (k = m.value) == null ? void 0 : k.id;
@@ -2074,9 +2089,9 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2074
2089
  const k = await c.getByAppIdAndRealm(f.value, r.realmId);
2075
2090
  v.groups = [
2076
2091
  ...Pe(k, "name")
2077
- ], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id), u("loaded", v.groups);
2092
+ ], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id), d("loaded", v.groups);
2078
2093
  }, P = (k) => {
2079
- m.value = k, u("change", k);
2094
+ m.value = k, d("change", k);
2080
2095
  };
2081
2096
  return T(
2082
2097
  () => r.realmId,
@@ -2087,10 +2102,10 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2087
2102
  f.value = r.appId;
2088
2103
  }), T(f, () => {
2089
2104
  S();
2090
- }), l({
2105
+ }), a({
2091
2106
  reload: S,
2092
- elTree: i
2093
- }), S(), (k, C) => (y(), N("div", an, [
2107
+ elTree: u
2108
+ }), S(), (k, C) => (y(), N("div", on, [
2094
2109
  r.appId ? de("", !0) : (y(), $(s(Ae), {
2095
2110
  key: 0,
2096
2111
  modelValue: f.value,
@@ -2098,7 +2113,7 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2098
2113
  style: { width: "100%" }
2099
2114
  }, {
2100
2115
  default: g(() => [
2101
- (y(!0), N(oe, null, W(s(b), (F) => (y(), $(s(Xe), {
2116
+ (y(!0), N(ne, null, W(s(b), (F) => (y(), $(s(Ze), {
2102
2117
  key: F.id,
2103
2118
  label: F.caption,
2104
2119
  value: F.id
@@ -2106,10 +2121,10 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2106
2121
  ]),
2107
2122
  _: 1
2108
2123
  }, 8, ["modelValue"])),
2109
- Y(w(s(Qe), K({
2124
+ Y(w(s(Xe), K({
2110
2125
  style: { width: "100%", "--ja-group-tree-node-height": r.nodeHeight },
2111
2126
  ref_key: "groupTree",
2112
- ref: i,
2127
+ ref: u,
2113
2128
  data: s(v).groups,
2114
2129
  size: "default",
2115
2130
  "node-key": "id",
@@ -2130,7 +2145,7 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2130
2145
  ])
2131
2146
  ]));
2132
2147
  }
2133
- }), on = /* @__PURE__ */ pe(ln, [["__scopeId", "data-v-69d218a4"]]), ga = R(on), nn = /* @__PURE__ */ z({
2148
+ }), rn = /* @__PURE__ */ pe(nn, [["__scopeId", "data-v-69d218a4"]]), ya = R(rn), sn = /* @__PURE__ */ z({
2134
2149
  __name: "customGroupTree",
2135
2150
  props: /* @__PURE__ */ Q({
2136
2151
  multiple: { type: Boolean }
@@ -2139,8 +2154,8 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2139
2154
  modelModifiers: {}
2140
2155
  }),
2141
2156
  emits: /* @__PURE__ */ Q(["change", "loaded"], ["update:modelValue"]),
2142
- setup(e, { expose: l, emit: a }) {
2143
- const t = h(), o = ne(), i = _e(o), d = Wt(o), n = a, c = ue(e, "modelValue"), p = ve({
2157
+ setup(e, { expose: a, emit: l }) {
2158
+ const t = h(), o = le(), u = _e(o), i = Yt(o), n = l, c = ue(e, "modelValue"), p = ve({
2144
2159
  get() {
2145
2160
  var f;
2146
2161
  return (f = c.value) == null ? void 0 : f.id;
@@ -2150,17 +2165,17 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2150
2165
  }
2151
2166
  }), r = pt({
2152
2167
  groups: []
2153
- }), u = async () => {
2154
- const f = await d.getAll();
2168
+ }), d = async () => {
2169
+ const f = await i.getAll();
2155
2170
  r.groups = [
2156
2171
  ...Pe(f, "name")
2157
2172
  ], r.groups.length > 0 && (c.value = r.groups[0], p.value = c.value.id), n("loaded", r.groups);
2158
2173
  }, m = (f) => {
2159
2174
  c.value = f, n("change", f);
2160
2175
  };
2161
- return l({
2162
- reload: u
2163
- }), u(), (f, _) => Y((y(), $(s(Qe), {
2176
+ return a({
2177
+ reload: d
2178
+ }), d(), (f, _) => Y((y(), $(s(Xe), {
2164
2179
  ref_key: "deptTree",
2165
2180
  ref: t,
2166
2181
  data: s(r).groups,
@@ -2178,14 +2193,14 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2178
2193
  }
2179
2194
  }
2180
2195
  }, null, 8, ["data", "current-node-key", "props"])), [
2181
- [s(De), s(i)]
2196
+ [s(De), s(u)]
2182
2197
  ]);
2183
2198
  }
2184
- }), rn = /* @__PURE__ */ pe(nn, [["__scopeId", "data-v-78c7dcfc"]]), sn = R(rn), un = {
2199
+ }), un = /* @__PURE__ */ pe(sn, [["__scopeId", "data-v-78c7dcfc"]]), dn = R(un), cn = {
2185
2200
  class: "ja-user-select-dialog"
2186
- }, dn = {
2201
+ }, pn = {
2187
2202
  class: "ja-user-select-dialog__content"
2188
- }, cn = {
2203
+ }, mn = {
2189
2204
  style: {
2190
2205
  display: "flex",
2191
2206
  "flex-direction": "row",
@@ -2193,7 +2208,7 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2193
2208
  width: "100%",
2194
2209
  gap: "0"
2195
2210
  }
2196
- }, pn = /* @__PURE__ */ z({
2211
+ }, fn = /* @__PURE__ */ z({
2197
2212
  __name: "userSelectDialog",
2198
2213
  props: /* @__PURE__ */ Q({
2199
2214
  /**
@@ -2201,8 +2216,7 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2201
2216
  */
2202
2217
  realmId: {
2203
2218
  type: String,
2204
- required: !0,
2205
- default: 1
2219
+ required: !1
2206
2220
  },
2207
2221
  /**
2208
2222
  * 是否多选模式
@@ -2227,17 +2241,25 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2227
2241
  }),
2228
2242
  emits: ["update:modelValue"],
2229
2243
  setup(e, {
2230
- expose: l
2244
+ expose: a
2231
2245
  }) {
2232
- const a = e, t = ue(e, "modelValue"), o = h(), i = Ze();
2233
- if (a.realmId ? o.value = a.realmId : o.value = i.realmId, a.multiple) {
2246
+ const l = e, t = ue(e, "modelValue"), o = h();
2247
+ async function u() {
2248
+ if (l.realmId)
2249
+ o.value = l.realmId;
2250
+ else {
2251
+ const J = await _t().getDefaultRealm();
2252
+ o.value = J.id;
2253
+ }
2254
+ }
2255
+ if (u(), l.multiple) {
2234
2256
  if (t.value || (t.value = []), !Array.isArray(t.value))
2235
2257
  throw new Error("多选模式的选择用户对话框(multiple设置为true)的v-model必须是数组类型");
2236
2258
  } else if (Array.isArray(t.value))
2237
2259
  throw new Error("单选模式的选择用户对话框(multiple设置为false)的v-model只能为空或是单个UserReference对象");
2238
- const d = h(!1), n = h(), c = h(), p = h(), r = ne(), u = _e(r), m = h(!1), f = h([]), _ = Oe(/* @__PURE__ */ new Map()), I = h("dept");
2239
- Te(va, void 0);
2240
- const b = h(Array.isArray(t.value) ? [...t.value] : t.value), v = ma(void 0, a.customFilter, (J) => {
2260
+ const i = h(!1), n = h(), c = h(), p = h(), r = le(), d = _e(r), m = h(!1), f = h([]), _ = Oe(/* @__PURE__ */ new Map()), I = h("dept");
2261
+ Te(ha, void 0);
2262
+ const b = h(Array.isArray(t.value) ? [...t.value] : t.value), v = va(void 0, l.customFilter, (J) => {
2241
2263
  m.value || (f.value = J ?? []);
2242
2264
  }, !1, r, !0), S = [{
2243
2265
  key: "user",
@@ -2247,26 +2269,26 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2247
2269
  cellRenderer: ({
2248
2270
  cellData: J,
2249
2271
  rowData: U,
2250
- rowIndex: le
2272
+ rowIndex: oe
2251
2273
  }) => {
2252
2274
  const {
2253
- hasAvatar: Ct,
2254
- fullName: Ta
2255
- } = U, qe = U, Fa = le;
2275
+ hasAvatar: $t,
2276
+ fullName: Ma
2277
+ } = U, qe = U, Pa = oe;
2256
2278
  return Ue("div", {
2257
2279
  class: "user-row",
2258
2280
  onMousedown: () => ee(qe),
2259
2281
  onMouseenter: () => V(qe),
2260
2282
  onMouseup: E,
2261
- onMouseover: (Ma) => ie(Ma, Fa)
2283
+ onMouseover: (Ua) => ie(Ua, Pa)
2262
2284
  }, [Ue(ce, {
2263
2285
  color: "#0D6A9F"
2264
- }, () => q(qe) ? Ue(ea) : void 0), Ue(tt, {
2286
+ }, () => q(qe) ? Ue(aa) : void 0), Ue(tt, {
2265
2287
  userId: J,
2266
- theme: H(qe),
2288
+ theme: G(qe),
2267
2289
  placement: "right-start",
2268
2290
  hasAvatar: !1,
2269
- fullName: Ta
2291
+ fullName: Ma
2270
2292
  }), Ue("div", {
2271
2293
  style: "flex:auto"
2272
2294
  })]);
@@ -2284,12 +2306,12 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2284
2306
  function q(J) {
2285
2307
  return Array.isArray(b.value) ? _.has(J.id) : b.value && b.value.id === J.id;
2286
2308
  }
2287
- function H(J) {
2309
+ function G(J) {
2288
2310
  return q(J) ? "autumnOrange" : "skyGray";
2289
2311
  }
2290
2312
  function Z(J) {
2291
2313
  if (Array.isArray(b.value)) {
2292
- const U = b.value.findIndex((le) => le.id === J.id);
2314
+ const U = b.value.findIndex((oe) => oe.id === J.id);
2293
2315
  U >= 0 ? (_.delete(J.id), b.value.splice(U, 1)) : (_.set(J.id, J), b.value.push(J));
2294
2316
  } else
2295
2317
  b.value = J;
@@ -2313,13 +2335,13 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2313
2335
  }
2314
2336
  }
2315
2337
  function O() {
2316
- t.value = b.value, d.value = !1;
2338
+ t.value = b.value, i.value = !1;
2317
2339
  }
2318
2340
  function L() {
2319
2341
  m.value = !m.value, m.value ? Array.isArray(b.value) ? f.value = [...b.value] : f.value = b.value ? [b.value] : [] : f.value = v.queryResult.value.users;
2320
2342
  }
2321
2343
  function X() {
2322
- (!v.queryParams.value.realmId || v.queryParams.value.realmId !== o.value) && (v.queryParams.value.realmId = o.value), b.value = Array.isArray(t.value) ? [...t.value] : t.value, Array.isArray(t.value) && (_.clear(), t.value.forEach((J) => _.set(J.id, J)));
2344
+ !v.queryParams.value.realmId && o.value && (v.queryParams.value.realmId = o.value), b.value = Array.isArray(t.value) ? [...t.value] : t.value, Array.isArray(t.value) && (_.clear(), t.value.forEach((J) => _.set(J.id, J)));
2323
2345
  }
2324
2346
  function ee(J) {
2325
2347
  Z(J), P.value = !0;
@@ -2337,13 +2359,13 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2337
2359
  function ie(J, U) {
2338
2360
  P.value = J.buttons > 0, P.value && (D = U, C());
2339
2361
  }
2340
- return l({
2362
+ return a({
2341
2363
  show() {
2342
- d.value = !0;
2364
+ i.value = !0;
2343
2365
  }
2344
2366
  }), (J, U) => (y(), $(s(st), {
2345
- modelValue: d.value,
2346
- "onUpdate:modelValue": U[5] || (U[5] = (le) => d.value = le),
2367
+ modelValue: i.value,
2368
+ "onUpdate:modelValue": U[5] || (U[5] = (oe) => i.value = oe),
2347
2369
  "destroy-on-close": "",
2348
2370
  draggable: "",
2349
2371
  width: "640",
@@ -2357,22 +2379,22 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2357
2379
  onClick: O,
2358
2380
  size: "default"
2359
2381
  }, {
2360
- default: g(() => U[10] || (U[10] = [G("确定 ")])),
2382
+ default: g(() => U[10] || (U[10] = [H("确定 ")])),
2361
2383
  _: 1,
2362
2384
  __: [10]
2363
2385
  }), w(s(me), {
2364
2386
  plain: "",
2365
2387
  size: "default",
2366
- onClick: U[4] || (U[4] = (le) => d.value = !1)
2388
+ onClick: U[4] || (U[4] = (oe) => i.value = !1)
2367
2389
  }, {
2368
- default: g(() => U[11] || (U[11] = [G("取消")])),
2390
+ default: g(() => U[11] || (U[11] = [H("取消")])),
2369
2391
  _: 1,
2370
2392
  __: [11]
2371
2393
  })]),
2372
- default: g(() => [j("div", un, [w(s(Ja), {
2394
+ default: g(() => [j("div", cn, [w(s(ja), {
2373
2395
  class: "ja-user-select-dialog__left",
2374
2396
  modelValue: I.value,
2375
- "onUpdate:modelValue": U[3] || (U[3] = (le) => I.value = le)
2397
+ "onUpdate:modelValue": U[3] || (U[3] = (oe) => I.value = oe)
2376
2398
  }, {
2377
2399
  default: g(() => [w(s(at), {
2378
2400
  name: "dept",
@@ -2382,9 +2404,9 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2382
2404
  default: g(() => [w(s(Ce), {
2383
2405
  height: "400"
2384
2406
  }, {
2385
- default: g(() => [w(s(fa), {
2407
+ default: g(() => [w(s(ga), {
2386
2408
  modelValue: n.value,
2387
- "onUpdate:modelValue": U[0] || (U[0] = (le) => n.value = le),
2409
+ "onUpdate:modelValue": U[0] || (U[0] = (oe) => n.value = oe),
2388
2410
  "realm-id": o.value
2389
2411
  }, null, 8, ["modelValue", "realm-id"])]),
2390
2412
  _: 1
@@ -2397,9 +2419,9 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2397
2419
  default: g(() => [w(s(Ce), {
2398
2420
  height: "400"
2399
2421
  }, {
2400
- default: g(() => [w(s(ga), {
2422
+ default: g(() => [w(s(ya), {
2401
2423
  modelValue: c.value,
2402
- "onUpdate:modelValue": U[1] || (U[1] = (le) => c.value = le),
2424
+ "onUpdate:modelValue": U[1] || (U[1] = (oe) => c.value = oe),
2403
2425
  "realm-id": o.value
2404
2426
  }, null, 8, ["modelValue", "realm-id"])]),
2405
2427
  _: 1
@@ -2412,16 +2434,16 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2412
2434
  default: g(() => [w(s(Ce), {
2413
2435
  height: "400"
2414
2436
  }, {
2415
- default: g(() => [w(s(sn), {
2437
+ default: g(() => [w(s(dn), {
2416
2438
  modelValue: p.value,
2417
- "onUpdate:modelValue": U[2] || (U[2] = (le) => p.value = le)
2439
+ "onUpdate:modelValue": U[2] || (U[2] = (oe) => p.value = oe)
2418
2440
  }, null, 8, ["modelValue"])]),
2419
2441
  _: 1
2420
2442
  })]),
2421
2443
  _: 1
2422
2444
  })]),
2423
2445
  _: 1
2424
- }, 8, ["modelValue"]), j("div", dn, [Y((y(), $(s(Oa), {
2446
+ }, 8, ["modelValue"]), j("div", pn, [Y((y(), $(s(xa), {
2425
2447
  ref_key: "userTable",
2426
2448
  ref: k,
2427
2449
  "row-height": 40,
@@ -2432,26 +2454,26 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2432
2454
  height: 450,
2433
2455
  fixed: ""
2434
2456
  }, {
2435
- header: g(() => [j("div", cn, [w(s(Fe), {
2457
+ header: g(() => [j("div", mn, [w(s(Fe), {
2436
2458
  style: {
2437
2459
  flex: "auto",
2438
2460
  "font-weight": "600"
2439
2461
  }
2440
2462
  }, {
2441
- default: g(() => [U[6] || (U[6] = G(" 人员 ")), w(s(ke), {
2463
+ default: g(() => [U[6] || (U[6] = H(" 人员 ")), w(s(ke), {
2442
2464
  content: "切换筛选条件,不会清除已选人员。支持鼠标拖动多选。"
2443
2465
  }, {
2444
- default: g(() => [a.multiple ? (y(), $(s(ce), {
2466
+ default: g(() => [l.multiple ? (y(), $(s(ce), {
2445
2467
  key: 0
2446
2468
  }, {
2447
- default: g(() => [w(s(Qt))]),
2469
+ default: g(() => [w(s(Zt))]),
2448
2470
  _: 1
2449
2471
  })) : de("", !0)]),
2450
2472
  _: 1
2451
2473
  })]),
2452
2474
  _: 1,
2453
2475
  __: [6]
2454
- }), a.multiple ? (y(), $(s(Fe), {
2476
+ }), l.multiple ? (y(), $(s(Fe), {
2455
2477
  key: 0,
2456
2478
  style: {
2457
2479
  flex: "none",
@@ -2465,9 +2487,9 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2465
2487
  size: "15",
2466
2488
  onClick: L
2467
2489
  }, {
2468
- default: g(() => [m.value ? (y(), $(s(al), {
2490
+ default: g(() => [m.value ? (y(), $(s(ol), {
2469
2491
  key: 1
2470
- })) : (y(), $(s(tl), {
2492
+ })) : (y(), $(s(ll), {
2471
2493
  key: 0
2472
2494
  }))]),
2473
2495
  _: 1
@@ -2475,7 +2497,7 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2475
2497
  _: 1
2476
2498
  }, 8, ["content"])]),
2477
2499
  _: 1
2478
- })) : de("", !0), a.multiple ? (y(), $(s(se), {
2500
+ })) : de("", !0), l.multiple ? (y(), $(s(se), {
2479
2501
  key: 1,
2480
2502
  plain: "",
2481
2503
  style: {
@@ -2486,10 +2508,10 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2486
2508
  shortcut: "Ctrl+A",
2487
2509
  onClick: ye
2488
2510
  }, {
2489
- default: g(() => U[7] || (U[7] = [G("全选 ")])),
2511
+ default: g(() => U[7] || (U[7] = [H("全选 ")])),
2490
2512
  _: 1,
2491
2513
  __: [7]
2492
- })) : de("", !0), a.multiple ? (y(), $(s(se), {
2514
+ })) : de("", !0), l.multiple ? (y(), $(s(se), {
2493
2515
  key: 2,
2494
2516
  plain: "",
2495
2517
  style: {
@@ -2500,10 +2522,10 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2500
2522
  shortcut: "Ctrl+Q",
2501
2523
  onClick: be
2502
2524
  }, {
2503
- default: g(() => U[8] || (U[8] = [G("全消 ")])),
2525
+ default: g(() => U[8] || (U[8] = [H("全消 ")])),
2504
2526
  _: 1,
2505
2527
  __: [8]
2506
- })) : de("", !0), a.multiple ? (y(), $(s(se), {
2528
+ })) : de("", !0), l.multiple ? (y(), $(s(se), {
2507
2529
  key: 3,
2508
2530
  plain: "",
2509
2531
  style: {
@@ -2514,29 +2536,29 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2514
2536
  shortcut: "Ctrl+F",
2515
2537
  onClick: A
2516
2538
  }, {
2517
- default: g(() => U[9] || (U[9] = [G("反选 ")])),
2539
+ default: g(() => U[9] || (U[9] = [H("反选 ")])),
2518
2540
  _: 1,
2519
2541
  __: [9]
2520
2542
  })) : de("", !0)])]),
2521
2543
  _: 1
2522
- }, 8, ["data"])), [[s(De), s(u)]])])])]),
2544
+ }, 8, ["data"])), [[s(De), s(d)]])])])]),
2523
2545
  _: 1
2524
2546
  }, 8, ["modelValue"]));
2525
2547
  }
2526
- }), mn = /* @__PURE__ */ pe(pn, [["__scopeId", "data-v-d800ec6a"]]), ha = R(mn), fn = /* @__PURE__ */ z({
2548
+ }), vn = /* @__PURE__ */ pe(fn, [["__scopeId", "data-v-c6c347d9"]]), ba = R(vn), gn = /* @__PURE__ */ z({
2527
2549
  __name: "Scrollbar",
2528
- setup(e, { expose: l }) {
2529
- const a = h(), t = h([]), o = /* @__PURE__ */ new Map();
2530
- l({
2531
- elScrollbar: a
2532
- }), Te(va, t);
2533
- let i = !1;
2550
+ setup(e, { expose: a }) {
2551
+ const l = h(), t = h([]), o = /* @__PURE__ */ new Map();
2552
+ a({
2553
+ elScrollbar: l
2554
+ }), Te(ha, t);
2555
+ let u = !1;
2534
2556
  T(t, () => {
2535
- i && n();
2557
+ u && n();
2536
2558
  }, {
2537
2559
  deep: !0
2538
2560
  });
2539
- const d = new IntersectionObserver((c) => {
2561
+ const i = new IntersectionObserver((c) => {
2540
2562
  c.forEach((p) => {
2541
2563
  const r = o.get(p.target);
2542
2564
  r == null || r.onInView(p.isIntersecting);
@@ -2545,143 +2567,143 @@ const an = { class: "ja-user-group-tree" }, ln = /* @__PURE__ */ z({
2545
2567
  async function n() {
2546
2568
  var p;
2547
2569
  await Ie();
2548
- const c = (p = a.value) == null ? void 0 : p.$el;
2570
+ const c = (p = l.value) == null ? void 0 : p.$el;
2549
2571
  if (t.value) {
2550
2572
  try {
2551
2573
  for (let r = 0; r < t.value.length; r++)
2552
2574
  if (t.value[r]) {
2553
- const u = t.value[r], m = u.childElement.getBoundingClientRect(), f = c.getBoundingClientRect();
2554
- m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right && u.onInView(!0), o.set(u.childElement, u), d.observe(u.childElement);
2575
+ const d = t.value[r], m = d.childElement.getBoundingClientRect(), f = c.getBoundingClientRect();
2576
+ m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right && d.onInView(!0), o.set(d.childElement, d), i.observe(d.childElement);
2555
2577
  }
2556
2578
  } finally {
2557
2579
  t.value && t.value.splice(0);
2558
2580
  }
2559
- i = !0;
2581
+ u = !0;
2560
2582
  }
2561
2583
  }
2562
- return Ye(async () => {
2584
+ return Qe(async () => {
2563
2585
  await n();
2564
2586
  }), $e(() => {
2565
2587
  o.forEach((c) => {
2566
- d.disconnect();
2588
+ i.disconnect();
2567
2589
  });
2568
2590
  }), (c, p) => (y(), $(s(Ce), K({
2569
2591
  ref_key: "scroll",
2570
- ref: a,
2592
+ ref: l,
2571
2593
  class: "scroll-container"
2572
2594
  }, c.$attrs), fe({ _: 2 }, [
2573
- W(c.$slots, (r, u) => ({
2574
- name: u,
2595
+ W(c.$slots, (r, d) => ({
2596
+ name: d,
2575
2597
  fn: g(() => [
2576
- te(c.$slots, u)
2598
+ te(c.$slots, d)
2577
2599
  ])
2578
2600
  }))
2579
2601
  ]), 1040));
2580
2602
  }
2581
- }), ya = R(fn);
2582
- function vn(e, l) {
2583
- for (var a = -1, t = e == null ? 0 : e.length, o = Array(t); ++a < t; )
2584
- o[a] = l(e[a], a, e);
2603
+ }), wa = R(gn);
2604
+ function hn(e, a) {
2605
+ for (var l = -1, t = e == null ? 0 : e.length, o = Array(t); ++l < t; )
2606
+ o[l] = a(e[l], l, e);
2585
2607
  return o;
2586
2608
  }
2587
- var gn = Array.isArray, Ut = Me ? Me.prototype : void 0, zt = Ut ? Ut.toString : void 0;
2588
- function _t(e) {
2609
+ var yn = Array.isArray, zt = Me ? Me.prototype : void 0, Bt = zt ? zt.toString : void 0;
2610
+ function kt(e) {
2589
2611
  if (typeof e == "string")
2590
2612
  return e;
2591
- if (gn(e))
2592
- return vn(e, _t) + "";
2593
- if (pa(e))
2594
- return zt ? zt.call(e) : "";
2595
- var l = e + "";
2596
- return l == "0" && 1 / e == -1 / 0 ? "-0" : l;
2613
+ if (yn(e))
2614
+ return hn(e, kt) + "";
2615
+ if (fa(e))
2616
+ return Bt ? Bt.call(e) : "";
2617
+ var a = e + "";
2618
+ return a == "0" && 1 / e == -1 / 0 ? "-0" : a;
2597
2619
  }
2598
- function hn(e, l, a, t) {
2599
- for (var o = e.length, i = a + -1; ++i < o; )
2600
- if (l(e[i], i, e))
2601
- return i;
2620
+ function bn(e, a, l, t) {
2621
+ for (var o = e.length, u = l + -1; ++u < o; )
2622
+ if (a(e[u], u, e))
2623
+ return u;
2602
2624
  return -1;
2603
2625
  }
2604
- function yn(e) {
2626
+ function wn(e) {
2605
2627
  return e !== e;
2606
2628
  }
2607
- function bn(e, l, a) {
2608
- for (var t = a - 1, o = e.length; ++t < o; )
2609
- if (e[t] === l)
2629
+ function _n(e, a, l) {
2630
+ for (var t = l - 1, o = e.length; ++t < o; )
2631
+ if (e[t] === a)
2610
2632
  return t;
2611
2633
  return -1;
2612
2634
  }
2613
- function ba(e, l, a) {
2614
- return l === l ? bn(e, l, a) : hn(e, yn, a);
2635
+ function _a(e, a, l) {
2636
+ return a === a ? _n(e, a, l) : bn(e, wn, l);
2615
2637
  }
2616
- function wn(e) {
2617
- return e == null ? "" : _t(e);
2638
+ function kn(e) {
2639
+ return e == null ? "" : kt(e);
2618
2640
  }
2619
- function _n(e, l, a) {
2641
+ function Vn(e, a, l) {
2620
2642
  var t = -1, o = e.length;
2621
- l < 0 && (l = -l > o ? 0 : o + l), a = a > o ? o : a, a < 0 && (a += o), o = l > a ? 0 : a - l >>> 0, l >>>= 0;
2622
- for (var i = Array(o); ++t < o; )
2623
- i[t] = e[t + l];
2624
- return i;
2643
+ a < 0 && (a = -a > o ? 0 : o + a), l = l > o ? o : l, l < 0 && (l += o), o = a > l ? 0 : l - a >>> 0, a >>>= 0;
2644
+ for (var u = Array(o); ++t < o; )
2645
+ u[t] = e[t + a];
2646
+ return u;
2625
2647
  }
2626
- function kn(e, l, a) {
2648
+ function In(e, a, l) {
2627
2649
  var t = e.length;
2628
- return a = a === void 0 ? t : a, !l && a >= t ? e : _n(e, l, a);
2650
+ return l = l === void 0 ? t : l, !a && l >= t ? e : Vn(e, a, l);
2629
2651
  }
2630
- var Vn = "\\ud800-\\udfff", In = "\\u0300-\\u036f", Cn = "\\ufe20-\\ufe2f", $n = "\\u20d0-\\u20ff", An = In + Cn + $n, Dn = "\\ufe0e\\ufe0f", En = "\\u200d", Sn = RegExp("[" + En + Vn + An + Dn + "]");
2631
- function Tn(e) {
2632
- return Sn.test(e);
2652
+ var Cn = "\\ud800-\\udfff", $n = "\\u0300-\\u036f", An = "\\ufe20-\\ufe2f", Dn = "\\u20d0-\\u20ff", En = $n + An + Dn, Sn = "\\ufe0e\\ufe0f", Tn = "\\u200d", Fn = RegExp("[" + Tn + Cn + En + Sn + "]");
2653
+ function Mn(e) {
2654
+ return Fn.test(e);
2633
2655
  }
2634
- function Fn(e) {
2656
+ function Pn(e) {
2635
2657
  return e.split("");
2636
2658
  }
2637
- var wa = "\\ud800-\\udfff", Mn = "\\u0300-\\u036f", Pn = "\\ufe20-\\ufe2f", Un = "\\u20d0-\\u20ff", zn = Mn + Pn + Un, Bn = "\\ufe0e\\ufe0f", Rn = "[" + wa + "]", dt = "[" + zn + "]", ct = "\\ud83c[\\udffb-\\udfff]", Ln = "(?:" + dt + "|" + ct + ")", _a = "[^" + wa + "]", ka = "(?:\\ud83c[\\udde6-\\uddff]){2}", Va = "[\\ud800-\\udbff][\\udc00-\\udfff]", Nn = "\\u200d", Ia = Ln + "?", Ca = "[" + Bn + "]?", Jn = "(?:" + Nn + "(?:" + [_a, ka, Va].join("|") + ")" + Ca + Ia + ")*", On = Ca + Ia + Jn, jn = "(?:" + [_a + dt + "?", dt, ka, Va, Rn].join("|") + ")", xn = RegExp(ct + "(?=" + ct + ")|" + jn + On, "g");
2638
- function qn(e) {
2639
- return e.match(xn) || [];
2659
+ var ka = "\\ud800-\\udfff", Un = "\\u0300-\\u036f", zn = "\\ufe20-\\ufe2f", Bn = "\\u20d0-\\u20ff", Rn = Un + zn + Bn, Ln = "\\ufe0e\\ufe0f", Nn = "[" + ka + "]", dt = "[" + Rn + "]", ct = "\\ud83c[\\udffb-\\udfff]", Jn = "(?:" + dt + "|" + ct + ")", Va = "[^" + ka + "]", Ia = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ca = "[\\ud800-\\udbff][\\udc00-\\udfff]", On = "\\u200d", $a = Jn + "?", Aa = "[" + Ln + "]?", jn = "(?:" + On + "(?:" + [Va, Ia, Ca].join("|") + ")" + Aa + $a + ")*", xn = Aa + $a + jn, qn = "(?:" + [Va + dt + "?", dt, Ia, Ca, Nn].join("|") + ")", Gn = RegExp(ct + "(?=" + ct + ")|" + qn + xn, "g");
2660
+ function Hn(e) {
2661
+ return e.match(Gn) || [];
2640
2662
  }
2641
- function Bt(e) {
2642
- return Tn(e) ? qn(e) : Fn(e);
2663
+ function Rt(e) {
2664
+ return Mn(e) ? Hn(e) : Pn(e);
2643
2665
  }
2644
- function Gn(e, l) {
2645
- for (var a = e.length; a-- && ba(l, e[a], 0) > -1; )
2666
+ function Wn(e, a) {
2667
+ for (var l = e.length; l-- && _a(a, e[l], 0) > -1; )
2646
2668
  ;
2647
- return a;
2669
+ return l;
2648
2670
  }
2649
- function Hn(e, l) {
2650
- for (var a = -1, t = e.length; ++a < t && ba(l, e[a], 0) > -1; )
2671
+ function Kn(e, a) {
2672
+ for (var l = -1, t = e.length; ++l < t && _a(a, e[l], 0) > -1; )
2651
2673
  ;
2652
- return a;
2674
+ return l;
2653
2675
  }
2654
- function Wn(e, l, a) {
2655
- if (e = wn(e), e && l === void 0)
2656
- return da(e);
2657
- if (!e || !(l = _t(l)))
2676
+ function Yn(e, a, l) {
2677
+ if (e = kn(e), e && a === void 0)
2678
+ return pa(e);
2679
+ if (!e || !(a = kt(a)))
2658
2680
  return e;
2659
- var t = Bt(e), o = Bt(l), i = Hn(t, o), d = Gn(t, o) + 1;
2660
- return kn(t, i, d).join("");
2681
+ var t = Rt(e), o = Rt(a), u = Kn(t, o), i = Wn(t, o) + 1;
2682
+ return In(t, u, i).join("");
2661
2683
  }
2662
- const Be = /* @__PURE__ */ new Map(), kt = {
2684
+ const Be = /* @__PURE__ */ new Map(), Vt = {
2663
2685
  mounted(e) {
2664
- let l;
2686
+ let a;
2665
2687
  if (e instanceof HTMLInputElement)
2666
- l = setTimeout(() => e == null ? void 0 : e.focus(), 500), Be.set(e, l);
2688
+ a = setTimeout(() => e == null ? void 0 : e.focus(), 500), Be.set(e, a);
2667
2689
  else {
2668
- const a = e.querySelectorAll("input");
2669
- a.length > 0 && a.item(0) instanceof HTMLInputElement && (l = setTimeout(() => {
2690
+ const l = e.querySelectorAll("input");
2691
+ l.length > 0 && l.item(0) instanceof HTMLInputElement && (a = setTimeout(() => {
2670
2692
  var t;
2671
- return (t = a == null ? void 0 : a.item(0)) == null ? void 0 : t.focus();
2672
- }, 500), Be.set(e, l));
2693
+ return (t = l == null ? void 0 : l.item(0)) == null ? void 0 : t.focus();
2694
+ }, 500), Be.set(e, a));
2673
2695
  }
2674
2696
  },
2675
2697
  onUnmounted(e) {
2676
2698
  Be.has(e) && (clearTimeout(Be.get(e)), Be.delete(e));
2677
2699
  }
2678
- }, Kn = { class: "ja-custom-group-manager" }, Yn = /* @__PURE__ */ z({
2700
+ }, Qn = { class: "ja-custom-group-manager" }, Xn = /* @__PURE__ */ z({
2679
2701
  __name: "CustomGroupManager",
2680
2702
  props: {
2681
2703
  users: { default: () => [] }
2682
2704
  },
2683
- setup(e, { expose: l }) {
2684
- const a = h(!1), t = ne(), o = Wt(t), i = h(), d = {
2705
+ setup(e, { expose: a }) {
2706
+ const l = h(!1), t = le(), o = Yt(t), u = h(), i = {
2685
2707
  label: "name",
2686
2708
  children: "children",
2687
2709
  isLeaf: (k, C) => !k.hasChildren,
@@ -2689,7 +2711,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2689
2711
  var C;
2690
2712
  return k.id === ((C = n.value) == null ? void 0 : C.id) ? "selected-group" : "group";
2691
2713
  }
2692
- }, n = h(), c = h(!1), p = h(), r = _e(t), u = e, m = {};
2714
+ }, n = h(), c = h(!1), p = h(), r = _e(t), d = e, m = {};
2693
2715
  async function f() {
2694
2716
  const k = Pe(await o.getAll()), C = {
2695
2717
  id: "-1",
@@ -2702,7 +2724,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2702
2724
  sortIndex: 0,
2703
2725
  sortPath: ""
2704
2726
  };
2705
- return i.value = [C], C;
2727
+ return u.value = [C], C;
2706
2728
  }
2707
2729
  async function _() {
2708
2730
  n.value = await f();
@@ -2721,30 +2743,30 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2721
2743
  }), c.value = !1, await f();
2722
2744
  }
2723
2745
  async function S() {
2724
- n.value && n.value.id !== "-1" && (await ja.confirm("确定要删除选中的自定义组?", "确认删除"), await o.delete(n.value.id), await f(), n.value = void 0);
2746
+ n.value && n.value.id !== "-1" && (await qa.confirm("确定要删除选中的自定义组?", "确认删除"), await o.delete(n.value.id), await f(), n.value = void 0);
2725
2747
  }
2726
2748
  async function P() {
2727
2749
  var k;
2728
2750
  if (!n.value || n.value.id === "-1") {
2729
- xa.warning("请选择要保存到的自定义用户组");
2751
+ Ga.warning("请选择要保存到的自定义用户组");
2730
2752
  return;
2731
2753
  }
2732
2754
  await o.setMembers({
2733
2755
  id: n.value.id,
2734
- userIds: ((k = u.users) == null ? void 0 : k.map((C) => C.id)) ?? []
2735
- }, m), a.value = !1;
2756
+ userIds: ((k = d.users) == null ? void 0 : k.map((C) => C.id)) ?? []
2757
+ }, m), l.value = !1;
2736
2758
  }
2737
- return l({
2759
+ return a({
2738
2760
  show() {
2739
- a.value = !0;
2761
+ l.value = !0;
2740
2762
  },
2741
2763
  close() {
2742
- a.value = !1;
2764
+ l.value = !1;
2743
2765
  }
2744
- }), (k, C) => (y(), N(oe, null, [
2766
+ }), (k, C) => (y(), N(ne, null, [
2745
2767
  w(s(st), {
2746
- modelValue: a.value,
2747
- "onUpdate:modelValue": C[1] || (C[1] = (F) => a.value = F),
2768
+ modelValue: l.value,
2769
+ "onUpdate:modelValue": C[1] || (C[1] = (F) => l.value = F),
2748
2770
  "destroy-on-close": "",
2749
2771
  "append-to-body": "",
2750
2772
  draggable: "",
@@ -2760,28 +2782,28 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2760
2782
  onClick: P
2761
2783
  }, {
2762
2784
  default: g(() => C[6] || (C[6] = [
2763
- G("确定 ")
2785
+ H("确定 ")
2764
2786
  ])),
2765
2787
  _: 1,
2766
2788
  __: [6]
2767
2789
  }, 8, ["loading"]),
2768
2790
  w(s(me), {
2769
- onClick: C[0] || (C[0] = (F) => a.value = !1)
2791
+ onClick: C[0] || (C[0] = (F) => l.value = !1)
2770
2792
  }, {
2771
2793
  default: g(() => C[7] || (C[7] = [
2772
- G("取消")
2794
+ H("取消")
2773
2795
  ])),
2774
2796
  _: 1,
2775
2797
  __: [7]
2776
2798
  })
2777
2799
  ]),
2778
2800
  default: g(() => [
2779
- j("div", Kn, [
2801
+ j("div", Qn, [
2780
2802
  w(s(vt), null, {
2781
2803
  default: g(() => [
2782
2804
  w(s(Fe), null, {
2783
2805
  default: g(() => C[5] || (C[5] = [
2784
- G("请创建或选择要保存为的自定义组:")
2806
+ H("请创建或选择要保存为的自定义组:")
2785
2807
  ])),
2786
2808
  _: 1,
2787
2809
  __: [5]
@@ -2811,10 +2833,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2811
2833
  default: g(() => {
2812
2834
  var F;
2813
2835
  return [
2814
- w(s(Qe), {
2815
- data: i.value,
2836
+ w(s(Xe), {
2837
+ data: u.value,
2816
2838
  "node-key": "id",
2817
- props: d,
2839
+ props: i,
2818
2840
  "default-expand-all": "",
2819
2841
  "expand-on-click-node": !1,
2820
2842
  onCurrentChange: I,
@@ -2845,7 +2867,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2845
2867
  size: "default"
2846
2868
  }, {
2847
2869
  default: g(() => C[8] || (C[8] = [
2848
- G(" 确定 ")
2870
+ H(" 确定 ")
2849
2871
  ])),
2850
2872
  _: 1,
2851
2873
  __: [8]
@@ -2855,7 +2877,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2855
2877
  size: "default"
2856
2878
  }, {
2857
2879
  default: g(() => C[9] || (C[9] = [
2858
- G("取消")
2880
+ H("取消")
2859
2881
  ])),
2860
2882
  _: 1,
2861
2883
  __: [9]
@@ -2864,7 +2886,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2864
2886
  default: g(() => [
2865
2887
  w(s(ft), { "label-position": "top" }, {
2866
2888
  default: g(() => [
2867
- w(s(He), {
2889
+ w(s(We), {
2868
2890
  label: "自定义组名",
2869
2891
  required: ""
2870
2892
  }, {
@@ -2874,7 +2896,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2874
2896
  "onUpdate:modelValue": C[2] || (C[2] = (F) => p.value = F),
2875
2897
  style: { width: "100%" }
2876
2898
  }, null, 8, ["modelValue"]), [
2877
- [s(kt)]
2899
+ [s(Vt)]
2878
2900
  ])
2879
2901
  ]),
2880
2902
  _: 1
@@ -2887,10 +2909,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2887
2909
  }, 8, ["modelValue"])
2888
2910
  ], 64));
2889
2911
  }
2890
- }), Qn = /* @__PURE__ */ pe(Yn, [["__scopeId", "data-v-8ef9bcd8"]]), Xn = { class: "ja-user-list" }, Zn = ["onMouseenter", "onMousedown", "onMouseover"], er = {
2912
+ }), Zn = /* @__PURE__ */ pe(Xn, [["__scopeId", "data-v-8ef9bcd8"]]), er = { class: "ja-user-list" }, tr = ["onMouseenter", "onMousedown", "onMouseover"], ar = {
2891
2913
  key: 0,
2892
2914
  class: "page-indicator"
2893
- }, tr = { class: "nb-spinner" }, ar = 1, lr = /* @__PURE__ */ z({
2915
+ }, lr = { class: "nb-spinner" }, or = 1, nr = /* @__PURE__ */ z({
2894
2916
  __name: "JaUserList",
2895
2917
  props: /* @__PURE__ */ Q({
2896
2918
  emptyText: {},
@@ -2911,11 +2933,11 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2911
2933
  pageModifiers: {}
2912
2934
  }),
2913
2935
  emits: /* @__PURE__ */ Q(["arrowKeyDown", "itemClicked"], ["update:modelValue", "update:page"]),
2914
- setup(e, { expose: l, emit: a }) {
2915
- const t = e, o = h(0), i = h(), d = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = a, u = Je(() => {
2936
+ setup(e, { expose: a, emit: l }) {
2937
+ const t = e, o = h(0), u = h(), i = h(!1), n = ue(e, "modelValue"), c = ue(e, "page"), p = l, d = Je(() => {
2916
2938
  var O;
2917
- const A = (O = i.value) == null ? void 0 : O.wrapRef;
2918
- A && A.scrollHeight - A.scrollTop <= A.clientHeight + ar && c.value < t.total / t.pageSize && c.value++;
2939
+ const A = (O = u.value) == null ? void 0 : O.wrapRef;
2940
+ A && A.scrollHeight - A.scrollTop <= A.clientHeight + or && c.value < t.total / t.pageSize && c.value++;
2919
2941
  }, 200);
2920
2942
  function m(A) {
2921
2943
  if (t.multiple) {
@@ -2928,13 +2950,13 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2928
2950
  }
2929
2951
  let f;
2930
2952
  function _(A) {
2931
- m(A), d.value = !0, f = A;
2953
+ m(A), i.value = !0, f = A;
2932
2954
  }
2933
2955
  function I() {
2934
- d.value = !1, p("itemClicked", f), f = void 0;
2956
+ i.value = !1, p("itemClicked", f), f = void 0;
2935
2957
  }
2936
2958
  function b(A) {
2937
- d.value && m(A);
2959
+ i.value && m(A);
2938
2960
  }
2939
2961
  function v() {
2940
2962
  o.value < t.users.length - 1 && o.value++, P();
@@ -2945,20 +2967,20 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2945
2967
  const P = () => {
2946
2968
  Ie(() => {
2947
2969
  var L, X, ee;
2948
- const A = (L = i.value) == null ? void 0 : L.$refs.wrapRef, O = A == null ? void 0 : A.querySelectorAll("li")[o.value];
2970
+ const A = (L = u.value) == null ? void 0 : L.$refs.wrapRef, O = A == null ? void 0 : A.querySelectorAll("li")[o.value];
2949
2971
  if (O && A) {
2950
2972
  const E = O.offsetTop, V = O.offsetTop + O.offsetHeight, D = A.scrollTop, B = A.scrollTop + A.clientHeight;
2951
- V > B ? (X = i.value) == null || X.scrollTo(
2973
+ V > B ? (X = u.value) == null || X.scrollTo(
2952
2974
  0,
2953
2975
  V - A.clientHeight + O.offsetHeight - 38
2954
- ) : E < D && ((ee = i.value) == null || ee.scrollTo(0, E));
2976
+ ) : E < D && ((ee = u.value) == null || ee.scrollTo(0, E));
2955
2977
  }
2956
2978
  });
2957
2979
  }, k = Je(v, 100), C = Je(S, 100);
2958
2980
  function F(A, O) {
2959
2981
  var L;
2960
- if (o.value = O, d.value = A.buttons > 0, d.value) {
2961
- const X = (L = i.value) == null ? void 0 : L.$refs.wrapRef, ee = A.target;
2982
+ if (o.value = O, i.value = A.buttons > 0, i.value) {
2983
+ const X = (L = u.value) == null ? void 0 : L.$refs.wrapRef, ee = A.target;
2962
2984
  if (ee && X) {
2963
2985
  const E = ee.offsetTop, V = ee.offsetTop + ee.offsetHeight, D = X.scrollTop, B = X.scrollTop + X.clientHeight;
2964
2986
  V + 20 > B ? k() : E < D + 20 && C();
@@ -2968,7 +2990,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2968
2990
  function q(A) {
2969
2991
  return Z.value.some((O) => O.id === A.id);
2970
2992
  }
2971
- const H = (A) => Z.value.some((O) => O.id === A.id) ? "autumnOrange" : "skyGray", Z = ve(() => {
2993
+ const G = (A) => Z.value.some((O) => O.id === A.id) ? "autumnOrange" : "skyGray", Z = ve(() => {
2972
2994
  if (t.multiple && Array.isArray(n.value))
2973
2995
  return n.value;
2974
2996
  if (!t.multiple && !Array.isArray(n.value))
@@ -2979,7 +3001,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2979
3001
  return A === o.value ? "active" : "";
2980
3002
  }
2981
3003
  const be = ve(() => t.loading && t.users.length == 0);
2982
- return l({
3004
+ return a({
2983
3005
  scrollUp() {
2984
3006
  S();
2985
3007
  },
@@ -2992,30 +3014,30 @@ const Be = /* @__PURE__ */ new Map(), kt = {
2992
3014
  }, {
2993
3015
  deep: !1
2994
3016
  }), $e(() => {
2995
- k.cancel(), C.cancel(), u.cancel();
2996
- }), (A, O) => (y(), N("div", Xn, [
3017
+ k.cancel(), C.cancel(), d.cancel();
3018
+ }), (A, O) => (y(), N("div", er, [
2997
3019
  Y((y(), $(s(Ce), {
2998
3020
  height: A.height,
2999
3021
  ref_key: "scrollbar",
3000
- ref: i,
3022
+ ref: u,
3001
3023
  always: "",
3002
- onScroll: s(u)
3024
+ onScroll: s(d)
3003
3025
  }, {
3004
3026
  default: g(() => [
3005
3027
  A.users.length > 0 ? (y(), N("ul", {
3006
3028
  key: 0,
3007
3029
  onMouseup: I
3008
3030
  }, [
3009
- (y(!0), N(oe, null, W(A.users, (L, X) => (y(), N("li", {
3031
+ (y(!0), N(ne, null, W(A.users, (L, X) => (y(), N("li", {
3010
3032
  key: L.id,
3011
- class: Ge(ye(X)),
3012
- onMouseenter: (ee) => d.value && b(L),
3033
+ class: He(ye(X)),
3034
+ onMouseenter: (ee) => i.value && b(L),
3013
3035
  onMousedown: (ee) => _(L),
3014
3036
  onMouseover: (ee) => F(ee, X)
3015
3037
  }, [
3016
3038
  w(s(ce), { color: "#0D6A9F" }, {
3017
3039
  default: g(() => [
3018
- q(L) ? (y(), $(s(ea), { key: 0 })) : de("", !0)
3040
+ q(L) ? (y(), $(s(aa), { key: 0 })) : de("", !0)
3019
3041
  ]),
3020
3042
  _: 2
3021
3043
  }, 1024),
@@ -3024,10 +3046,10 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3024
3046
  "full-name": L.fullName,
3025
3047
  "has-avatar": L.hasAvatar,
3026
3048
  placement: "left-start",
3027
- theme: H(L)
3049
+ theme: G(L)
3028
3050
  }, null, 8, ["user-id", "full-name", "has-avatar", "theme"])
3029
- ], 42, Zn))), 128))
3030
- ], 32)) : (y(), $(s(Ot), {
3051
+ ], 42, tr))), 128))
3052
+ ], 32)) : (y(), $(s(jt), {
3031
3053
  key: 1,
3032
3054
  description: A.emptyText
3033
3055
  }, null, 8, ["description"]))
@@ -3036,24 +3058,24 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3036
3058
  }, 8, ["height", "onScroll"])), [
3037
3059
  [s(De), be.value]
3038
3060
  ]),
3039
- A.users.length > 0 ? (y(), N("div", er, [
3040
- Y(j("div", tr, null, 512), [
3061
+ A.users.length > 0 ? (y(), N("div", ar, [
3062
+ Y(j("div", lr, null, 512), [
3041
3063
  [ge, A.loading]
3042
3064
  ]),
3043
- G(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(A.total / A.pageSize)) + "页 ", 1)
3065
+ H(" 已加载 " + ae(c.value) + " /" + ae(Math.ceil(A.total / A.pageSize)) + "页 ", 1)
3044
3066
  ])) : de("", !0)
3045
3067
  ]));
3046
3068
  }
3047
- }), $a = /* @__PURE__ */ pe(lr, [["__scopeId", "data-v-6fd19ea8"]]), or = { class: "ja-user-picker__root" }, nr = { class: "ja-user-picker-bookmark__dropdown" }, rr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, sr = { style: { color: "var(--el-color-info-light-5)" } }, ur = { class: "dropdown-header" }, ir = {
3069
+ }), Da = /* @__PURE__ */ pe(nr, [["__scopeId", "data-v-6fd19ea8"]]), rr = { class: "ja-user-picker__root" }, sr = { class: "ja-user-picker-bookmark__dropdown" }, ur = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, ir = { style: { color: "var(--el-color-info-light-5)" } }, dr = { class: "dropdown-header" }, cr = {
3048
3070
  key: 0,
3049
3071
  class: "more-tag"
3050
- }, dr = { key: 1 }, Re = 0, cr = /* @__PURE__ */ z({
3072
+ }, pr = { key: 1 }, Re = 0, mr = /* @__PURE__ */ z({
3051
3073
  __name: "UserPicker",
3052
3074
  props: /* @__PURE__ */ Q({
3053
3075
  /**
3054
3076
  * 可选择用户的用户域ID
3055
3077
  */
3056
- realmId: { type: String, required: !1, default: 1 },
3078
+ realmId: { type: String, required: !1 },
3057
3079
  /**
3058
3080
  * 弹出下拉选框的快捷键
3059
3081
  */
@@ -3089,24 +3111,29 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3089
3111
  }),
3090
3112
  emits: ["update:modelValue"],
3091
3113
  setup(e) {
3092
- const l = e, a = h();
3093
- function t() {
3094
- l.realmId ? a.value = l.realmId : a.value = Ze().realmId;
3095
- }
3096
- t(), T(() => l.realmId, t);
3097
- const o = ne(), i = ht(o), d = za([]), n = ue(e, "modelValue"), c = h(), p = h(!1), { queryResult: r, queryParams: u, pageParams: m, loading: f } = ma(
3098
- () => u.value.name != null && u.value.name.length > Re,
3099
- l.customFilter,
3114
+ const a = e, l = h();
3115
+ async function t() {
3116
+ if (a.realmId)
3117
+ l.value = a.realmId;
3118
+ else {
3119
+ const V = await _t().getDefaultRealm();
3120
+ l.value = V.id;
3121
+ }
3122
+ }
3123
+ t(), T(() => a.realmId, t);
3124
+ const o = le(), u = ht(o), i = Ra([]), n = ue(e, "modelValue"), c = h(), p = h(!1), { queryResult: r, queryParams: d, pageParams: m, loading: f } = va(
3125
+ () => d.value.name != null && d.value.name.length > Re,
3126
+ a.customFilter,
3100
3127
  (V, D) => {
3101
3128
  var B, ie;
3102
- V ? (d.value = r.value.users, D && ((ie = (B = I.value) == null ? void 0 : B.elScrollbar) == null || ie.scrollTo(0, 0))) : k();
3129
+ V ? (i.value = r.value.users, D && ((ie = (B = I.value) == null ? void 0 : B.elScrollbar) == null || ie.scrollTo(0, 0))) : k();
3103
3130
  },
3104
3131
  !0,
3105
3132
  o,
3106
3133
  !1
3107
3134
  ), _ = h(), I = h(), b = h(), v = h(), S = h();
3108
3135
  function P(V) {
3109
- if (l.multiple) {
3136
+ if (a.multiple) {
3110
3137
  if (!Array.isArray(n.value))
3111
3138
  throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
3112
3139
  const D = n.value.findIndex((B) => B.id == V.id);
@@ -3115,14 +3142,14 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3115
3142
  n.value = V;
3116
3143
  }
3117
3144
  function k() {
3118
- (!u.value.realmId || u.value.realmId !== a.value) && (u.value.realmId = a.value), u.value.name && u.value.name.length > Re && (u.value.name = void 0);
3119
- const V = Gt();
3120
- if (l.customFilter) {
3145
+ a.realmId && (d.value.realmId = a.realmId), d.value.name && d.value.name.length > Re && (d.value.name = void 0);
3146
+ const V = Wt();
3147
+ if (a.customFilter) {
3121
3148
  const D = V.getQEntity();
3122
- V.and(l.customFilter(D));
3149
+ V.and(a.customFilter(D));
3123
3150
  }
3124
- i.getBookmarkedUsers(V.build()).then((D) => {
3125
- d.value = D;
3151
+ u.getBookmarkedUsers(V.build()).then((D) => {
3152
+ i.value = D;
3126
3153
  }), setTimeout(() => {
3127
3154
  var D;
3128
3155
  (D = c.value) == null || D.focus();
@@ -3143,7 +3170,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3143
3170
  } else
3144
3171
  n.value = null;
3145
3172
  }
3146
- function H() {
3173
+ function G() {
3147
3174
  var V;
3148
3175
  S.value.scrollDown(), (V = c.value) == null || V.focus();
3149
3176
  }
@@ -3153,26 +3180,26 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3153
3180
  }
3154
3181
  function ye() {
3155
3182
  var V;
3156
- P(d.value[(V = S.value) == null ? void 0 : V.activeIndex]);
3183
+ P(i.value[(V = S.value) == null ? void 0 : V.activeIndex]);
3157
3184
  }
3158
3185
  function be() {
3159
3186
  p.value = !0;
3160
3187
  }
3161
3188
  function A() {
3162
3189
  const V = n.value;
3163
- V.push(...d.value.filter((D) => !V.some((B) => B.id === D.id)));
3190
+ V.push(...i.value.filter((D) => !V.some((B) => B.id === D.id)));
3164
3191
  }
3165
3192
  function O() {
3166
- l.multiple ? n.value = [] : n.value = null;
3193
+ a.multiple ? n.value = [] : n.value = null;
3167
3194
  }
3168
3195
  function L() {
3169
3196
  var V;
3170
3197
  (V = c.value) == null || V.focus();
3171
3198
  }
3172
3199
  const X = ve(() => {
3173
- if (l.multiple && Array.isArray(n.value))
3200
+ if (a.multiple && Array.isArray(n.value))
3174
3201
  return n.value;
3175
- if (!l.multiple && !Array.isArray(n.value))
3202
+ if (!a.multiple && !Array.isArray(n.value))
3176
3203
  return n.value ? [n.value] : [];
3177
3204
  throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
3178
3205
  });
@@ -3180,15 +3207,15 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3180
3207
  var V;
3181
3208
  (V = b.value) == null || V.show(), p.value = !1;
3182
3209
  }
3183
- const E = ve(() => X.value.slice(0, l.maxShowCount));
3184
- return (V, D) => (y(), N(oe, null, [
3185
- w(s(ya), K({
3186
- "max-height": l.maxHeight,
3187
- height: l.height
3210
+ const E = ve(() => X.value.slice(0, a.maxShowCount));
3211
+ return (V, D) => (y(), N(ne, null, [
3212
+ w(s(wa), K({
3213
+ "max-height": a.maxHeight,
3214
+ height: a.height
3188
3215
  }, V.$attrs, { style: { "overflow-x": "hidden" } }), {
3189
3216
  default: g(() => [
3190
- Y((y(), N("div", or, [
3191
- w(s(Jt), {
3217
+ Y((y(), N("div", rr, [
3218
+ w(s(Ot), {
3192
3219
  ref: "bookmarkDropdown",
3193
3220
  onShow: k,
3194
3221
  onHide: C,
@@ -3208,8 +3235,8 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3208
3235
  }, null, 8, ["icon"])
3209
3236
  ]),
3210
3237
  default: g(() => [
3211
- j("div", nr, [
3212
- j("div", rr, [
3238
+ j("div", sr, [
3239
+ j("div", ur, [
3213
3240
  w(s(vt), { style: { flex: "auto" } }, {
3214
3241
  default: g(() => [
3215
3242
  w(s(se), {
@@ -3220,7 +3247,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3220
3247
  type: "primary",
3221
3248
  tooltip: "对话框筛选(大批量选择)",
3222
3249
  shortcut: "Ctrl+Alt+I",
3223
- icon: s(ll)
3250
+ icon: s(nl)
3224
3251
  }, null, 8, ["icon"]),
3225
3252
  w(s(se), {
3226
3253
  circle: "",
@@ -3228,18 +3255,18 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3228
3255
  onClick: O,
3229
3256
  type: "danger",
3230
3257
  plain: "",
3231
- icon: s(ol),
3258
+ icon: s(rl),
3232
3259
  tooltip: "清空选择",
3233
3260
  shortcut: "Alt+C"
3234
3261
  }, null, 8, ["icon"]),
3235
- l.multiple ? (y(), $(s(se), {
3262
+ a.multiple ? (y(), $(s(se), {
3236
3263
  key: 0,
3237
3264
  circle: "",
3238
3265
  size: "small",
3239
3266
  onClick: A,
3240
3267
  type: "success",
3241
3268
  plain: "",
3242
- icon: s(nl),
3269
+ icon: s(sl),
3243
3270
  tooltip: "全选(已加载的数据)",
3244
3271
  shortcut: "Ctrl+A"
3245
3272
  }, null, 8, ["icon"])) : de("", !0),
@@ -3248,35 +3275,35 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3248
3275
  size: "small",
3249
3276
  onClick: F,
3250
3277
  type: "warning",
3251
- icon: s(rl),
3278
+ icon: s(ul),
3252
3279
  plain: "",
3253
3280
  tooltip: "将已选中用户保存为自定义组,方便以后选择使用"
3254
3281
  }, null, 8, ["icon"])
3255
3282
  ]),
3256
3283
  _: 1
3257
3284
  }),
3258
- j("div", sr, " 弹出快捷键:" + ae(l.shortcut), 1)
3285
+ j("div", ir, " 弹出快捷键:" + ae(a.shortcut), 1)
3259
3286
  ]),
3260
3287
  w(s(we), {
3261
- modelValue: s(u).name,
3262
- "onUpdate:modelValue": D[1] || (D[1] = (B) => s(u).name = B),
3288
+ modelValue: s(d).name,
3289
+ "onUpdate:modelValue": D[1] || (D[1] = (B) => s(d).name = B),
3263
3290
  ref_key: "inputSearchText",
3264
3291
  ref: c,
3265
- "suffix-icon": s(Dt),
3292
+ "suffix-icon": s(Et),
3266
3293
  placeholder: "请输入拼音名、姓名或手机号查询",
3267
3294
  autocomplete: "off",
3268
3295
  onKeydown: [
3269
3296
  Ve(ye, ["enter"]),
3270
- Ve($t(Z, ["stop", "prevent"]), ["up"]),
3271
- Ve($t(H, ["stop", "prevent"]), ["down"])
3297
+ Ve(At(Z, ["stop", "prevent"]), ["up"]),
3298
+ Ve(At(G, ["stop", "prevent"]), ["down"])
3272
3299
  ]
3273
3300
  }, null, 8, ["modelValue", "suffix-icon", "onKeydown"]),
3274
- j("div", ur, [
3301
+ j("div", dr, [
3275
3302
  w(s(Fe), null, {
3276
3303
  default: g(() => [
3277
- s(u).name && s(u).name.length > Re ? (y(), $(s(ce), { key: 0 }, {
3304
+ s(d).name && s(d).name.length > Re ? (y(), $(s(ce), { key: 0 }, {
3278
3305
  default: g(() => [
3279
- w(s(Dt))
3306
+ w(s(Et))
3280
3307
  ]),
3281
3308
  _: 1
3282
3309
  })) : (y(), $(s(ce), {
@@ -3284,24 +3311,24 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3284
3311
  color: "#FFBF29"
3285
3312
  }, {
3286
3313
  default: g(() => [
3287
- w(s(Zt))
3314
+ w(s(ta))
3288
3315
  ]),
3289
3316
  _: 1
3290
3317
  })),
3291
- G(" " + ae(s(u).name && s(u).name.length > Re ? "查询结果" : "常用人员"), 1)
3318
+ H(" " + ae(s(d).name && s(d).name.length > Re ? "查询结果" : "常用人员"), 1)
3292
3319
  ]),
3293
3320
  _: 1
3294
3321
  })
3295
3322
  ]),
3296
- w($a, {
3323
+ w(Da, {
3297
3324
  ref_key: "userList",
3298
3325
  ref: S,
3299
3326
  total: s(r).total,
3300
- "empty-text": s(u).name && s(u).name.length > Re ? void 0 : "无可选常用人员",
3327
+ "empty-text": s(d).name && s(d).name.length > Re ? void 0 : "无可选常用人员",
3301
3328
  multiple: "",
3302
3329
  "page-size": s(m).pageSize,
3303
3330
  loading: s(f),
3304
- users: d.value,
3331
+ users: i.value,
3305
3332
  height: 300,
3306
3333
  modelValue: n.value,
3307
3334
  "onUpdate:modelValue": D[2] || (D[2] = (B) => n.value = B),
@@ -3314,7 +3341,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3314
3341
  ]),
3315
3342
  _: 1
3316
3343
  }, 8, ["visible"]),
3317
- (y(!0), N(oe, null, W(E.value, (B) => (y(), $(s(tt), {
3344
+ (y(!0), N(ne, null, W(E.value, (B) => (y(), $(s(tt), {
3318
3345
  key: B.id,
3319
3346
  "user-id": B.id,
3320
3347
  "full-name": B.fullName,
@@ -3322,90 +3349,90 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3322
3349
  "has-avatar": B.hasAvatar,
3323
3350
  onClosed: q
3324
3351
  }, null, 8, ["user-id", "full-name", "has-avatar"]))), 128)),
3325
- X.value.length > l.maxShowCount ? (y(), N("div", ir, " +" + ae(X.value.length - l.maxShowCount) + "人 ", 1)) : de("", !0),
3326
- X.value.length === 0 ? (y(), N("div", dr, [
3352
+ X.value.length > a.maxShowCount ? (y(), N("div", cr, " +" + ae(X.value.length - a.maxShowCount) + "人 ", 1)) : de("", !0),
3353
+ X.value.length === 0 ? (y(), N("div", pr, [
3327
3354
  w(s(Fe), { type: "info" }, {
3328
3355
  default: g(() => D[6] || (D[6] = [
3329
- G(" <暂无选中人员>")
3356
+ H(" <暂无选中人员>")
3330
3357
  ])),
3331
3358
  _: 1,
3332
3359
  __: [6]
3333
3360
  })
3334
3361
  ])) : de("", !0),
3335
- w(s(ha), {
3362
+ w(s(ba), {
3336
3363
  ref_key: "dialogUserSelector",
3337
3364
  ref: b,
3338
- multiple: l.multiple,
3339
- "realm-id": a.value,
3340
- customFilter: l.customFilter,
3365
+ multiple: a.multiple,
3366
+ "realm-id": l.value,
3367
+ customFilter: a.customFilter,
3341
3368
  modelValue: n.value,
3342
3369
  "onUpdate:modelValue": D[5] || (D[5] = (B) => n.value = B)
3343
3370
  }, null, 8, ["multiple", "realm-id", "customFilter", "modelValue"])
3344
3371
  ])), [
3345
- [s(et), be, l.shortcut]
3372
+ [s(et), be, a.shortcut]
3346
3373
  ])
3347
3374
  ]),
3348
3375
  _: 1
3349
3376
  }, 16, ["max-height", "height"]),
3350
- w(Qn, {
3377
+ w(Zn, {
3351
3378
  ref_key: "dlgCustomGroupManager",
3352
3379
  ref: v,
3353
3380
  users: Array.isArray(n.value) ? n.value : n.value ? [n.value] : null
3354
3381
  }, null, 8, ["users"])
3355
3382
  ], 64));
3356
3383
  }
3357
- }), Aa = /* @__PURE__ */ pe(cr, [["__scopeId", "data-v-dff7e717"]]), pr = /* @__PURE__ */ z({
3384
+ }), Ea = /* @__PURE__ */ pe(mr, [["__scopeId", "data-v-bdc9b066"]]), fr = /* @__PURE__ */ z({
3358
3385
  __name: "JaUserPicker",
3359
3386
  emits: ["change"],
3360
- setup(e, { emit: l }) {
3361
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
3362
- function d(c) {
3363
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
3364
- }
3365
- const n = h(x(a.formData, t) ?? []);
3366
- return T(() => a.formData, () => {
3367
- n.value = x(a.formData, t) ?? [];
3387
+ setup(e, { emit: a }) {
3388
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
3389
+ function i(c) {
3390
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
3391
+ }
3392
+ const n = h(x(l.formData, t) ?? []);
3393
+ return T(() => l.formData, () => {
3394
+ n.value = x(l.formData, t) ?? [];
3368
3395
  }, {
3369
3396
  deep: !0
3370
- }), (c, p) => (y(), $(Aa, K({
3397
+ }), (c, p) => (y(), $(Ea, K({
3371
3398
  modelValue: n.value,
3372
3399
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
3373
- onChange: d
3400
+ onChange: i
3374
3401
  }, c.$attrs), null, 16, ["modelValue"]));
3375
3402
  }
3376
- }), mr = R(Aa), fr = R(pr), vr = R($a), gr = /* @__PURE__ */ z({
3403
+ }), vr = R(Ea), gr = R(fr), hr = R(Da), yr = /* @__PURE__ */ z({
3377
3404
  __name: "JaTimePicker",
3378
3405
  emits: ["change"],
3379
- setup(e, { expose: l, emit: a }) {
3380
- const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a, c = h({});
3381
- function p(u) {
3382
- d.removeFieldError(i), re(o.formData, i, r.value), n("change", u);
3406
+ setup(e, { expose: a, emit: l }) {
3407
+ const t = h({}), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l, c = h({});
3408
+ function p(d) {
3409
+ i.removeFieldError(u), re(o.formData, u, r.value), n("change", d);
3383
3410
  }
3384
- const r = h(x(o.formData, i));
3411
+ const r = h(x(o.formData, u));
3385
3412
  return T(() => o.formData, () => {
3386
- r.value = x(o.formData, i);
3413
+ r.value = x(o.formData, u);
3387
3414
  }, {
3388
3415
  deep: !0
3389
- }), Ye(() => {
3416
+ }), Qe(() => {
3390
3417
  Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
3391
3418
  c.value[m] = f;
3392
3419
  });
3393
- }), l(c.value), (u, m) => (y(), $(s(qa), K({
3420
+ }), a(c.value), (d, m) => (y(), $(s(Ha), K({
3394
3421
  ref_key: "input",
3395
3422
  ref: t,
3396
- modelValue: s(o).formData[s(i)],
3397
- "onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(i)] = f),
3423
+ modelValue: s(o).formData[s(u)],
3424
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => s(o).formData[s(u)] = f),
3398
3425
  onChange: p
3399
- }, u.$attrs), fe({ _: 2 }, [
3400
- W(u.$slots, (f, _) => ({
3426
+ }, d.$attrs), fe({ _: 2 }, [
3427
+ W(d.$slots, (f, _) => ({
3401
3428
  name: _,
3402
3429
  fn: g(() => [
3403
- te(u.$slots, _)
3430
+ te(d.$slots, _)
3404
3431
  ])
3405
3432
  }))
3406
3433
  ]), 1040, ["modelValue"]));
3407
3434
  }
3408
- }), hr = R(gr), yr = /* @__PURE__ */ z({
3435
+ }), br = R(yr), wr = /* @__PURE__ */ z({
3409
3436
  __name: "UserGroupPicker",
3410
3437
  props: /* @__PURE__ */ Q({
3411
3438
  realmId: {},
@@ -3418,36 +3445,36 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3418
3445
  modelModifiers: {}
3419
3446
  }),
3420
3447
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
3421
- setup(e, { emit: l }) {
3422
- const a = ne(), t = Ht(a), o = e, i = ue(e, "modelValue"), d = l;
3423
- if (o.multiple && !Array.isArray(i.value))
3448
+ setup(e, { emit: a }) {
3449
+ const l = le(), t = Kt(l), o = e, u = ue(e, "modelValue"), i = a;
3450
+ if (o.multiple && !Array.isArray(u.value))
3424
3451
  throw new Error("用户组选择器设置multiple为true,但是绑定的v-model值是单值");
3425
- if (!o.multiple && Array.isArray(i.value))
3452
+ if (!o.multiple && Array.isArray(u.value))
3426
3453
  throw new Error("用户组选择器未设置multiple为true,但是绑定的v-model值是数组");
3427
3454
  const n = Oe({
3428
3455
  groups: []
3429
3456
  }), c = () => {
3430
3457
  !o.realmId || !o.appId || t.getByAppIdAndRealm(o.appId, o.realmId ?? "0").then((r) => {
3431
- n.groups = [...Pe(r, "name")], !i.value && !o.multiple && (i.value = n.groups[0].id);
3458
+ n.groups = [...Pe(r, "name")], !u.value && !o.multiple && (u.value = n.groups[0].id);
3432
3459
  });
3433
3460
  }, p = (r) => {
3434
- d("change", Array.isArray(r) ? n.groups.filter((u) => r.findIndex((m) => u.id === m) >= 0) : n.groups.find((u) => u.id === r));
3461
+ i("change", Array.isArray(r) ? n.groups.filter((d) => r.findIndex((m) => d.id === m) >= 0) : n.groups.find((d) => d.id === r));
3435
3462
  };
3436
3463
  return c(), T(
3437
3464
  () => o.realmId,
3438
3465
  () => {
3439
3466
  c();
3440
3467
  }
3441
- ), T(() => o.appId, c), (r, u) => (y(), $(s(gt), K({
3468
+ ), T(() => o.appId, c), (r, d) => (y(), $(s(gt), K({
3442
3469
  style: { width: "100%" },
3443
3470
  data: n.groups,
3444
3471
  size: o.size,
3445
3472
  "node-key": "id",
3446
3473
  "check-strictly": "",
3447
- "current-node-key": i.value,
3474
+ "current-node-key": u.value,
3448
3475
  "highlight-current": "",
3449
- modelValue: i.value,
3450
- "onUpdate:modelValue": u[0] || (u[0] = (m) => i.value = m),
3476
+ modelValue: u.value,
3477
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => u.value = m),
3451
3478
  multiple: r.multiple,
3452
3479
  onChange: p
3453
3480
  }, r.$attrs, {
@@ -3457,26 +3484,26 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3457
3484
  teleported: ""
3458
3485
  }), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
3459
3486
  }
3460
- }), br = R(yr), wr = /* @__PURE__ */ z({
3487
+ }), _r = R(wr), kr = /* @__PURE__ */ z({
3461
3488
  __name: "JaAutoComplete",
3462
3489
  emits: ["change"],
3463
- setup(e, { expose: l, emit: a }) {
3464
- const t = h(), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
3490
+ setup(e, { expose: a, emit: l }) {
3491
+ const t = h(), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l;
3465
3492
  function c(r) {
3466
- d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
3493
+ i.removeFieldError(u), re(o.formData, u, p.value), n("change", r);
3467
3494
  }
3468
- const p = h(x(o.formData, i));
3495
+ const p = h(x(o.formData, u));
3469
3496
  return T(() => o.formData, () => {
3470
- p.value = x(o.formData, i);
3497
+ p.value = x(o.formData, u);
3471
3498
  }, {
3472
3499
  deep: !0
3473
- }), l({
3500
+ }), a({
3474
3501
  elAutocomplete: t
3475
- }), (r, u) => (y(), $(s(Ga), K({
3502
+ }), (r, d) => (y(), $(s(Wa), K({
3476
3503
  ref_key: "input",
3477
3504
  ref: t,
3478
3505
  modelValue: p.value,
3479
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
3506
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
3480
3507
  onChange: c
3481
3508
  }, r.$attrs), fe({ _: 2 }, [
3482
3509
  W(r.$slots, (m, f) => ({
@@ -3487,28 +3514,28 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3487
3514
  }))
3488
3515
  ]), 1040, ["modelValue"]));
3489
3516
  }
3490
- }), _r = R(wr), kr = /* @__PURE__ */ z({
3517
+ }), Vr = R(kr), Ir = /* @__PURE__ */ z({
3491
3518
  __name: "JaRadioGroup",
3492
3519
  emits: ["change"],
3493
- setup(e, { expose: l, emit: a }) {
3494
- const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
3520
+ setup(e, { expose: a, emit: l }) {
3521
+ const t = h({}), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l;
3495
3522
  function c(r) {
3496
- d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
3523
+ i.removeFieldError(u), re(o.formData, u, p.value), n("change", r);
3497
3524
  }
3498
- const p = h(x(o.formData, i));
3525
+ const p = h(x(o.formData, u));
3499
3526
  return T(() => o.formData, () => {
3500
- p.value = x(o.formData, i);
3527
+ p.value = x(o.formData, u);
3501
3528
  }, {
3502
3529
  deep: !0
3503
- }), l({
3530
+ }), a({
3504
3531
  focus: () => t.value.focus(),
3505
3532
  blur: () => t.value.blur(),
3506
3533
  elRadioGroup: t
3507
- }), (r, u) => (y(), $(s(Ha), K({
3534
+ }), (r, d) => (y(), $(s(Ka), K({
3508
3535
  ref_key: "input",
3509
3536
  ref: t,
3510
3537
  modelValue: p.value,
3511
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
3538
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
3512
3539
  onChange: c
3513
3540
  }, r.$attrs), fe({ _: 2 }, [
3514
3541
  W(r.$slots, (m, f) => ({
@@ -3519,7 +3546,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3519
3546
  }))
3520
3547
  ]), 1040, ["modelValue"]));
3521
3548
  }
3522
- }), Vr = R(kr), Ir = /* @__PURE__ */ z({
3549
+ }), Cr = R(Ir), $r = /* @__PURE__ */ z({
3523
3550
  __name: "baseRolePicker",
3524
3551
  props: /* @__PURE__ */ Q({
3525
3552
  appName: {}
@@ -3528,17 +3555,17 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3528
3555
  modelModifiers: {}
3529
3556
  }),
3530
3557
  emits: /* @__PURE__ */ Q(["change"], ["update:modelValue"]),
3531
- setup(e, { expose: l, emit: a }) {
3532
- const t = ne(), o = Kt(t), i = yt(t), d = e, n = h(), c = h([]), p = async () => {
3533
- d.appName && (n.value = await i.getByName(d.appName), c.value = await o.getAllRole(n.value.id), console.log(c.value), r.value ? m.value = b(r.value, c.value) : m.value = void 0);
3534
- }, r = ue(e, "modelValue"), u = a, m = h();
3535
- T(() => d.appName, p), p();
3558
+ setup(e, { expose: a, emit: l }) {
3559
+ const t = le(), o = Qt(t), u = yt(t), i = e, n = h(), c = h([]), p = async () => {
3560
+ i.appName && (n.value = await u.getByName(i.appName), c.value = await o.getAllRole(n.value.id), console.log(c.value), r.value ? m.value = b(r.value, c.value) : m.value = void 0);
3561
+ }, r = ue(e, "modelValue"), d = l, m = h();
3562
+ T(() => i.appName, p), p();
3536
3563
  const f = {
3537
3564
  label: (v) => v.caption ? v.caption : v.name,
3538
3565
  isLeaf: (v) => !v.hasChildren
3539
3566
  }, _ = h();
3540
3567
  function I(v) {
3541
- m.value = b(v, c.value), u("change", v);
3568
+ m.value = b(v, c.value), d("change", v);
3542
3569
  }
3543
3570
  function b(v, S) {
3544
3571
  for (let P = 0; P < S.length; P++) {
@@ -3551,7 +3578,7 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3551
3578
  }
3552
3579
  }
3553
3580
  }
3554
- return l({
3581
+ return a({
3555
3582
  loadData: p,
3556
3583
  currentRole: m,
3557
3584
  elTreeSelect: _
@@ -3581,20 +3608,20 @@ const Be = /* @__PURE__ */ new Map(), kt = {
3581
3608
  }
3582
3609
  });
3583
3610
  let Se = [];
3584
- async function Vt() {
3585
- const e = ne(), l = yt(e);
3586
- return Se.length === 0 && (Se = await l.getAll(!0)), {
3587
- async getById(a) {
3588
- let t = Se.find((o) => o.id === a);
3589
- return t || (t = await l.getById(a), t && Se.push(t)), t;
3611
+ async function It() {
3612
+ const e = le(), a = yt(e);
3613
+ return Se.length === 0 && (Se = await a.getAll(!0)), {
3614
+ async getById(l) {
3615
+ let t = Se.find((o) => o.id === l);
3616
+ return t || (t = await a.getById(l), t && Se.push(t)), t;
3590
3617
  },
3591
- async getByName(a) {
3592
- let t = Se.find((o) => o.name === a);
3593
- return t || (t = await l.getByName(a), t && Se.push(t)), t;
3618
+ async getByName(l) {
3619
+ let t = Se.find((o) => o.name === l);
3620
+ return t || (t = await a.getByName(l), t && Se.push(t)), t;
3594
3621
  }
3595
3622
  };
3596
3623
  }
3597
- const Cr = /* @__PURE__ */ z({
3624
+ const Ar = /* @__PURE__ */ z({
3598
3625
  __name: "RoleEditor",
3599
3626
  props: /* @__PURE__ */ Q({
3600
3627
  appName: {}
@@ -3603,8 +3630,8 @@ const Cr = /* @__PURE__ */ z({
3603
3630
  modelModifiers: {}
3604
3631
  }),
3605
3632
  emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
3606
- setup(e, { emit: l }) {
3607
- const a = ue(e, "modelValue"), t = e, o = l, i = {
3633
+ setup(e, { emit: a }) {
3634
+ const l = ue(e, "modelValue"), t = e, o = a, u = {
3608
3635
  hasChildren: !1,
3609
3636
  parentId: "0",
3610
3637
  releaseSource: "",
@@ -3617,19 +3644,19 @@ const Cr = /* @__PURE__ */ z({
3617
3644
  description: "",
3618
3645
  id: "0",
3619
3646
  name: ""
3620
- }, d = h({
3621
- formData: { ...i }
3622
- }), n = ne(), c = fl(Object.keys(i), n), p = _e(n), r = Kt(n), u = h(), m = h(), f = h();
3647
+ }, i = h({
3648
+ formData: { ...u }
3649
+ }), n = le(), c = gl(Object.keys(u), n), p = _e(n), r = Qt(n), d = h(), m = h(), f = h();
3623
3650
  async function _() {
3624
- if (d.value.formData = { ...i }, !t.appName)
3651
+ if (i.value.formData = { ...u }, !t.appName)
3625
3652
  throw new Error("rolePicker组件的appName属性不能为空");
3626
- f.value = await (await Vt()).getByName(t.appName);
3653
+ f.value = await (await It()).getByName(t.appName);
3627
3654
  }
3628
3655
  async function I() {
3629
3656
  var S, P;
3630
3657
  if (!t.appName) return;
3631
- const b = d.value.formData, v = (S = m.value) == null ? void 0 : S.currentRole;
3632
- (P = u.value) == null || P.validate(() => r.create({
3658
+ const b = i.value.formData, v = (S = m.value) == null ? void 0 : S.currentRole;
3659
+ (P = d.value) == null || P.validate(() => r.create({
3633
3660
  addTo: v ? {
3634
3661
  id: v.id,
3635
3662
  name: v.name,
@@ -3644,17 +3671,17 @@ const Cr = /* @__PURE__ */ z({
3644
3671
  name: b.name,
3645
3672
  caption: b.caption
3646
3673
  }).then((k) => {
3647
- o("success", k), a.value = !1;
3674
+ o("success", k), l.value = !1;
3648
3675
  }));
3649
3676
  }
3650
3677
  return (b, v) => {
3651
3678
  const S = he("ja-input-i18n-raw"), P = he("ja-form");
3652
- return y(), $(s(jt), {
3679
+ return y(), $(s(xt), {
3653
3680
  "destroy-on-close": "",
3654
3681
  "append-to-body": "",
3655
3682
  title: "新建角色",
3656
- modelValue: a.value,
3657
- "onUpdate:modelValue": v[2] || (v[2] = (k) => a.value = k),
3683
+ modelValue: l.value,
3684
+ "onUpdate:modelValue": v[2] || (v[2] = (k) => l.value = k),
3658
3685
  onOpen: _
3659
3686
  }, {
3660
3687
  footer: g(() => [
@@ -3666,17 +3693,17 @@ const Cr = /* @__PURE__ */ z({
3666
3693
  shortcut: "Alt+Enter"
3667
3694
  }, {
3668
3695
  default: g(() => v[3] || (v[3] = [
3669
- G("确定 ")
3696
+ H("确定 ")
3670
3697
  ])),
3671
3698
  _: 1,
3672
3699
  __: [3]
3673
3700
  }, 8, ["loading"]),
3674
3701
  w(s(me), {
3675
3702
  size: "default",
3676
- onClick: v[1] || (v[1] = (k) => a.value = !1)
3703
+ onClick: v[1] || (v[1] = (k) => l.value = !1)
3677
3704
  }, {
3678
3705
  default: g(() => v[4] || (v[4] = [
3679
- G("取消")
3706
+ H("取消")
3680
3707
  ])),
3681
3708
  _: 1,
3682
3709
  __: [4]
@@ -3685,8 +3712,8 @@ const Cr = /* @__PURE__ */ z({
3685
3712
  default: g(() => [
3686
3713
  w(P, {
3687
3714
  ref_key: "formRef",
3688
- ref: u,
3689
- model: d.value,
3715
+ ref: d,
3716
+ model: i.value,
3690
3717
  validator: s(c)
3691
3718
  }, {
3692
3719
  default: g(() => [
@@ -3697,7 +3724,7 @@ const Cr = /* @__PURE__ */ z({
3697
3724
  }, {
3698
3725
  default: g(() => [
3699
3726
  Y(w(s(ut), null, null, 512), [
3700
- [s(kt)]
3727
+ [s(Vt)]
3701
3728
  ])
3702
3729
  ]),
3703
3730
  _: 1
@@ -3707,7 +3734,7 @@ const Cr = /* @__PURE__ */ z({
3707
3734
  prop: "none"
3708
3735
  }, {
3709
3736
  default: g(() => [
3710
- w(s(It), {
3737
+ w(s(Ct), {
3711
3738
  ref_key: "rolePicker",
3712
3739
  ref: m,
3713
3740
  placeholder: "请选择上级角色,置空表示添加顶层角色",
@@ -3727,8 +3754,8 @@ const Cr = /* @__PURE__ */ z({
3727
3754
  w(S, {
3728
3755
  "app-id": (k = f.value) == null ? void 0 : k.id,
3729
3756
  size: "small",
3730
- modelValue: d.value.formData.caption,
3731
- "onUpdate:modelValue": v[0] || (v[0] = (C) => d.value.formData.caption = C)
3757
+ modelValue: i.value.formData.caption,
3758
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => i.value.formData.caption = C)
3732
3759
  }, null, 8, ["app-id", "modelValue"])
3733
3760
  ];
3734
3761
  }),
@@ -3751,7 +3778,7 @@ const Cr = /* @__PURE__ */ z({
3751
3778
  }, 8, ["modelValue"]);
3752
3779
  };
3753
3780
  }
3754
- }), $r = { class: "ja-role-picker" }, Ar = /* @__PURE__ */ z({
3781
+ }), Dr = { class: "ja-role-picker" }, Er = /* @__PURE__ */ z({
3755
3782
  __name: "RolePickerRaw",
3756
3783
  props: /* @__PURE__ */ Q({
3757
3784
  appName: {}
@@ -3763,24 +3790,24 @@ const Cr = /* @__PURE__ */ z({
3763
3790
  }),
3764
3791
  emits: ["update:modelValue"],
3765
3792
  setup(e) {
3766
- const l = e, a = ue(e, "modelValue");
3793
+ const a = e, l = ue(e, "modelValue");
3767
3794
  function t(n) {
3768
3795
  var c;
3769
- a.value = n.name, (c = o.value) == null || c.loadData();
3796
+ l.value = n.name, (c = o.value) == null || c.loadData();
3770
3797
  }
3771
- const o = h(), i = h(!1);
3772
- function d() {
3773
- i.value = !0;
3798
+ const o = h(), u = h(!1);
3799
+ function i() {
3800
+ u.value = !0;
3774
3801
  }
3775
- return (n, c) => (y(), N("div", $r, [
3776
- w(s(It), K({
3802
+ return (n, c) => (y(), N("div", Dr, [
3803
+ w(s(Ct), K({
3777
3804
  ref_key: "picker",
3778
3805
  ref: o,
3779
- "app-name": l.appName,
3806
+ "app-name": a.appName,
3780
3807
  style: { flex: "auto" }
3781
3808
  }, n.$attrs, {
3782
- modelValue: a.value,
3783
- "onUpdate:modelValue": c[1] || (c[1] = (p) => a.value = p)
3809
+ modelValue: l.value,
3810
+ "onUpdate:modelValue": c[1] || (c[1] = (p) => l.value = p)
3784
3811
  }), fe({
3785
3812
  footer: g(() => [
3786
3813
  w(s(se), {
@@ -3789,18 +3816,18 @@ const Cr = /* @__PURE__ */ z({
3789
3816
  icon: s(Ee),
3790
3817
  shortcut: "Alt+I",
3791
3818
  style: { width: "100%" },
3792
- onClick: d
3819
+ onClick: i
3793
3820
  }, {
3794
3821
  default: g(() => c[2] || (c[2] = [
3795
- G(" 新建角色(Alt+I) ")
3822
+ H(" 新建角色(Alt+I) ")
3796
3823
  ])),
3797
3824
  _: 1,
3798
3825
  __: [2]
3799
3826
  }, 8, ["icon"]),
3800
- w(Cr, {
3801
- modelValue: i.value,
3802
- "onUpdate:modelValue": c[0] || (c[0] = (p) => i.value = p),
3803
- "app-name": l.appName,
3827
+ w(Ar, {
3828
+ modelValue: u.value,
3829
+ "onUpdate:modelValue": c[0] || (c[0] = (p) => u.value = p),
3830
+ "app-name": a.appName,
3804
3831
  onSuccess: t
3805
3832
  }, null, 8, ["modelValue", "app-name"])
3806
3833
  ]),
@@ -3815,28 +3842,28 @@ const Cr = /* @__PURE__ */ z({
3815
3842
  ]), 1040, ["app-name", "modelValue"])
3816
3843
  ]));
3817
3844
  }
3818
- }), Da = /* @__PURE__ */ pe(Ar, [["__scopeId", "data-v-36b2392a"]]), Dr = /* @__PURE__ */ z({
3845
+ }), Sa = /* @__PURE__ */ pe(Er, [["__scopeId", "data-v-36b2392a"]]), Sr = /* @__PURE__ */ z({
3819
3846
  __name: "RolePicker",
3820
3847
  props: {
3821
3848
  appName: {}
3822
3849
  },
3823
3850
  emits: ["change"],
3824
- setup(e, { emit: l }) {
3825
- const a = e, t = h(), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = l;
3851
+ setup(e, { emit: a }) {
3852
+ const l = e, t = h(), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = a;
3826
3853
  function c(r) {
3827
- d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
3854
+ i.removeFieldError(u), re(o.formData, u, p.value), n("change", r);
3828
3855
  }
3829
- const p = h(x(o.formData, i));
3856
+ const p = h(x(o.formData, u));
3830
3857
  return T(() => o.formData, () => {
3831
- p.value = x(o.formData, i);
3858
+ p.value = x(o.formData, u);
3832
3859
  }, {
3833
3860
  deep: !0
3834
- }), (r, u) => (y(), $(Da, K({
3861
+ }), (r, d) => (y(), $(Sa, K({
3835
3862
  ref_key: "picker",
3836
3863
  ref: t,
3837
- "app-name": a.appName,
3864
+ "app-name": l.appName,
3838
3865
  modelValue: p.value,
3839
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
3866
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
3840
3867
  onChange: c
3841
3868
  }, r.$attrs), fe({ _: 2 }, [
3842
3869
  W(r.$slots, (m, f) => ({
@@ -3847,7 +3874,7 @@ const Cr = /* @__PURE__ */ z({
3847
3874
  }))
3848
3875
  ]), 1040, ["app-name", "modelValue"]));
3849
3876
  }
3850
- }), It = R(Ir), Er = R(Dr), Sr = R(Da), Ea = /* @__PURE__ */ z({
3877
+ }), Ct = R($r), Tr = R(Sr), Fr = R(Sa), Ta = /* @__PURE__ */ z({
3851
3878
  __name: "ChannelPicker",
3852
3879
  props: /* @__PURE__ */ Q({
3853
3880
  appName: {}
@@ -3859,57 +3886,57 @@ const Cr = /* @__PURE__ */ z({
3859
3886
  }),
3860
3887
  emits: ["update:modelValue"],
3861
3888
  setup(e) {
3862
- const l = ne(), a = Ka(l), t = e, o = h(), i = h(), d = ue(e, "modelValue");
3889
+ const a = le(), l = Xa(a), t = e, o = h(), u = h(), i = ue(e, "modelValue");
3863
3890
  je(() => {
3864
3891
  n();
3865
3892
  });
3866
3893
  async function n() {
3867
- console.log("load channels of app " + t.appName), t.appName && (o.value = await a.getAll(t.appName), i.value = o.value);
3894
+ console.log("load channels of app " + t.appName), t.appName && (o.value = await l.getAll(t.appName), u.value = o.value);
3868
3895
  }
3869
3896
  function c(p) {
3870
3897
  var r;
3871
- i.value = ((r = o.value) == null ? void 0 : r.filter((u) => u.name.indexOf(p) > -1)) ?? [];
3898
+ u.value = ((r = o.value) == null ? void 0 : r.filter((d) => d.name.indexOf(p) > -1)) ?? [];
3872
3899
  }
3873
3900
  return T(() => t.appName, n), (p, r) => (y(), $(s(Ae), K({
3874
3901
  filterable: "",
3875
3902
  "filter-method": c,
3876
3903
  "value-key": "id",
3877
- modelValue: d.value,
3878
- "onUpdate:modelValue": r[0] || (r[0] = (u) => d.value = u)
3904
+ modelValue: i.value,
3905
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => i.value = d)
3879
3906
  }, p.$attrs), {
3880
3907
  default: g(() => [
3881
- (y(!0), N(oe, null, W(i.value, (u) => (y(), $(s(Xe), {
3882
- key: u.id,
3883
- label: u.name,
3884
- value: u
3908
+ (y(!0), N(ne, null, W(u.value, (d) => (y(), $(s(Ze), {
3909
+ key: d.id,
3910
+ label: d.name,
3911
+ value: d
3885
3912
  }, null, 8, ["label", "value"]))), 128))
3886
3913
  ]),
3887
3914
  _: 1
3888
3915
  }, 16, ["modelValue"]));
3889
3916
  }
3890
- }), Tr = /* @__PURE__ */ z({
3917
+ }), Mr = /* @__PURE__ */ z({
3891
3918
  __name: "JaChannelPicker",
3892
3919
  emits: ["change"],
3893
- setup(e, { emit: l }) {
3894
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
3895
- function d(c) {
3896
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
3897
- }
3898
- const n = h(x(a.formData, t));
3899
- return T(() => a.formData, () => {
3900
- n.value = x(a.formData, t);
3920
+ setup(e, { emit: a }) {
3921
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
3922
+ function i(c) {
3923
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
3924
+ }
3925
+ const n = h(x(l.formData, t));
3926
+ return T(() => l.formData, () => {
3927
+ n.value = x(l.formData, t);
3901
3928
  }, {
3902
3929
  deep: !0
3903
- }), (c, p) => (y(), $(Ea, K({
3930
+ }), (c, p) => (y(), $(Ta, K({
3904
3931
  modelValue: n.value,
3905
3932
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
3906
- onChange: d
3933
+ onChange: i
3907
3934
  }, c.$attrs), null, 16, ["modelValue"]));
3908
3935
  }
3909
- }), Fr = R(Tr), Mr = R(Ea), Pr = { class: "ja-property-picker__dropdown" }, Ur = { key: 0 }, zr = ["onMouseenter", "onClick"], Br = {
3936
+ }), Pr = R(Mr), Ur = R(Ta), zr = { class: "ja-property-picker__dropdown" }, Br = { key: 0 }, Rr = ["onMouseenter", "onClick"], Lr = {
3910
3937
  key: 0,
3911
3938
  class: "entity-type"
3912
- }, Rr = { key: 1 }, Lr = /* @__PURE__ */ z({
3939
+ }, Nr = { key: 1 }, Jr = /* @__PURE__ */ z({
3913
3940
  __name: "PropertyPicker",
3914
3941
  props: /* @__PURE__ */ Q({
3915
3942
  entityId: {}
@@ -3921,14 +3948,14 @@ const Cr = /* @__PURE__ */ z({
3921
3948
  }),
3922
3949
  emits: ["update:modelValue"],
3923
3950
  setup(e) {
3924
- const l = e;
3925
- let a;
3926
- const t = ue(e, "modelValue"), o = h([]), i = ne(), d = Ya(i), n = h(), c = {}, p = h(0), r = _e(i), u = h(!1), m = h(!1), f = h(), _ = h(), I = h("");
3951
+ const a = e;
3952
+ let l;
3953
+ const t = ue(e, "modelValue"), o = h([]), u = le(), i = Za(u), n = h(), c = {}, p = h(0), r = _e(u), d = h(!1), m = h(!1), f = h(), _ = h(), I = h("");
3927
3954
  let b = h(!1);
3928
3955
  async function v() {
3929
- if (a || (a = l.entityId), a) {
3930
- let E = c[a];
3931
- E || (E = await d.getProperties(a), c[a] = E), n.value = E;
3956
+ if (l || (l = a.entityId), l) {
3957
+ let E = c[l];
3958
+ E || (E = await i.getProperties(l), c[l] = E), n.value = E;
3932
3959
  } else
3933
3960
  n.value = [];
3934
3961
  }
@@ -3936,13 +3963,13 @@ const Cr = /* @__PURE__ */ z({
3936
3963
  let V;
3937
3964
  E ? V = E.join(".") : V = "", V !== t.value && (t.value = V), Ie(async () => {
3938
3965
  var B;
3939
- a = l.entityId, await v();
3940
- let D = c[a];
3966
+ l = a.entityId, await v();
3967
+ let D = c[l];
3941
3968
  if (D) {
3942
3969
  for (let ie = 0; ie < E.length; ie++) {
3943
3970
  const J = E[ie];
3944
- let U = D.find((le) => le.name === J);
3945
- U && U.entityType ? (a = U.entityType.id, ie < E.length - 1 ? (await v(), D = c[a]) : U.dataType === "ENTITY" && U.collectionType === "NONE" ? (a = U.entityType.id, v()) : (a = "-1", v())) : (a = "-1", v());
3971
+ let U = D.find((oe) => oe.name === J);
3972
+ U && U.entityType ? (l = U.entityType.id, ie < E.length - 1 ? (await v(), D = c[l]) : U.dataType === "ENTITY" && U.collectionType === "NONE" ? (l = U.entityType.id, v()) : (l = "-1", v())) : (l = "-1", v());
3946
3973
  }
3947
3974
  (B = f.value) == null || B.focus();
3948
3975
  }
@@ -3965,10 +3992,10 @@ const Cr = /* @__PURE__ */ z({
3965
3992
  var V;
3966
3993
  (V = o.value) == null || V.pop();
3967
3994
  }
3968
- function H() {
3995
+ function G() {
3969
3996
  var D;
3970
- if (!a) return;
3971
- const E = c[a];
3997
+ if (!l) return;
3998
+ const E = c[l];
3972
3999
  if (!E) return;
3973
4000
  const V = (D = f.value) == null ? void 0 : D.value;
3974
4001
  V && V.length > 0 ? n.value = [...E].filter((B) => B.name.toLowerCase().indexOf(V.toLowerCase()) > -1) : n.value = E, X();
@@ -4002,15 +4029,15 @@ const Cr = /* @__PURE__ */ z({
4002
4029
  var D, B, ie;
4003
4030
  const E = (D = _.value) == null ? void 0 : D.$refs.wrapRef, V = E == null ? void 0 : E.querySelectorAll("li")[p.value];
4004
4031
  if (V && E) {
4005
- const J = V.offsetTop, U = V.offsetTop + V.offsetHeight, le = E.scrollTop, Ct = E.scrollTop + E.clientHeight;
4006
- U > Ct ? (B = _.value) == null || B.scrollTo(
4032
+ const J = V.offsetTop, U = V.offsetTop + V.offsetHeight, oe = E.scrollTop, $t = E.scrollTop + E.clientHeight;
4033
+ U > $t ? (B = _.value) == null || B.scrollTo(
4007
4034
  0,
4008
4035
  U - E.clientHeight + V.offsetHeight - 38
4009
- ) : J < le && ((ie = _.value) == null || ie.scrollTo(0, J));
4036
+ ) : J < oe && ((ie = _.value) == null || ie.scrollTo(0, J));
4010
4037
  }
4011
4038
  });
4012
4039
  };
4013
- T(() => l.entityId, v), T(
4040
+ T(() => a.entityId, v), T(
4014
4041
  o,
4015
4042
  () => S(o.value),
4016
4043
  {
@@ -4028,21 +4055,21 @@ const Cr = /* @__PURE__ */ z({
4028
4055
  ee();
4029
4056
  }), t.value && t.value.length > 0 ? ee() : v(), T(n, () => {
4030
4057
  p.value = 0, X();
4031
- }), (E, V) => (y(), $(s(Lt), { onVisibleChange: O }, {
4058
+ }), (E, V) => (y(), $(s(Nt), { onVisibleChange: O }, {
4032
4059
  dropdown: g(() => [
4033
- j("div", Pr, [
4060
+ j("div", zr, [
4034
4061
  j("div", {
4035
- class: Ge(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": u.value, "is-focused": m.value }]),
4036
- onMouseenter: V[3] || (V[3] = (D) => u.value = !0),
4037
- onMouseleave: V[4] || (V[4] = (D) => u.value = !1)
4062
+ class: He(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": d.value, "is-focused": m.value }]),
4063
+ onMouseenter: V[3] || (V[3] = (D) => d.value = !0),
4064
+ onMouseleave: V[4] || (V[4] = (D) => d.value = !1)
4038
4065
  }, [
4039
- (y(!0), N(oe, null, W(o.value, (D) => (y(), $(s(At), {
4066
+ (y(!0), N(ne, null, W(o.value, (D) => (y(), $(s(Dt), {
4040
4067
  id: D,
4041
4068
  onClose: (B) => q(),
4042
4069
  closable: ""
4043
4070
  }, {
4044
4071
  default: g(() => [
4045
- G(ae(D), 1)
4072
+ H(ae(D), 1)
4046
4073
  ]),
4047
4074
  _: 2
4048
4075
  }, 1032, ["id", "onClose"]))), 256)),
@@ -4062,9 +4089,9 @@ const Cr = /* @__PURE__ */ z({
4062
4089
  Ve(ye, ["up"]),
4063
4090
  Ve(be, ["enter"])
4064
4091
  ],
4065
- onInput: H
4092
+ onInput: G
4066
4093
  }, null, 544), [
4067
- [Ba, I.value]
4094
+ [La, I.value]
4068
4095
  ])
4069
4096
  ], 34),
4070
4097
  Y((y(), $(s(Ce), {
@@ -4076,16 +4103,16 @@ const Cr = /* @__PURE__ */ z({
4076
4103
  default: g(() => {
4077
4104
  var D;
4078
4105
  return [
4079
- ((D = n.value) == null ? void 0 : D.length) ?? !1 ? (y(), N("ul", Ur, [
4080
- (y(!0), N(oe, null, W(n.value, (B, ie) => (y(), N("li", {
4106
+ ((D = n.value) == null ? void 0 : D.length) ?? !1 ? (y(), N("ul", Br, [
4107
+ (y(!0), N(ne, null, W(n.value, (B, ie) => (y(), N("li", {
4081
4108
  key: B.id,
4082
4109
  onMouseenter: (J) => k(ie),
4083
4110
  onClick: (J) => F(B),
4084
- class: Ge(C(ie))
4111
+ class: He(C(ie))
4085
4112
  }, [
4086
- B.dataType === "ENTITY" ? (y(), N("span", Br, ae(P(B)), 1)) : (y(), N("span", Rr, ae(P(B)), 1))
4087
- ], 42, zr))), 128))
4088
- ])) : (y(), $(s(Ot), {
4113
+ B.dataType === "ENTITY" ? (y(), N("span", Lr, ae(P(B)), 1)) : (y(), N("span", Nr, ae(P(B)), 1))
4114
+ ], 42, Rr))), 128))
4115
+ ])) : (y(), $(s(jt), {
4089
4116
  key: 1,
4090
4117
  description: "无可选属性"
4091
4118
  }))
@@ -4098,17 +4125,17 @@ const Cr = /* @__PURE__ */ z({
4098
4125
  ])
4099
4126
  ]),
4100
4127
  default: g(() => [
4101
- w(s(At), { type: "primary" }, {
4128
+ w(s(Dt), { type: "primary" }, {
4102
4129
  default: g(() => [
4103
- G(ae(L.value) + " ", 1),
4130
+ H(ae(L.value) + " ", 1),
4104
4131
  s(b) ? (y(), $(s(ce), { key: 0 }, {
4105
4132
  default: g(() => [
4106
- w(s(sl))
4133
+ w(s(il))
4107
4134
  ]),
4108
4135
  _: 1
4109
4136
  })) : (y(), $(s(ce), { key: 1 }, {
4110
4137
  default: g(() => [
4111
- w(s(Xt))
4138
+ w(s(ea))
4112
4139
  ]),
4113
4140
  _: 1
4114
4141
  }))
@@ -4119,26 +4146,26 @@ const Cr = /* @__PURE__ */ z({
4119
4146
  _: 1
4120
4147
  }));
4121
4148
  }
4122
- }), Sa = /* @__PURE__ */ pe(Lr, [["__scopeId", "data-v-24d9cf5a"]]), Nr = /* @__PURE__ */ z({
4149
+ }), Fa = /* @__PURE__ */ pe(Jr, [["__scopeId", "data-v-24d9cf5a"]]), Or = /* @__PURE__ */ z({
4123
4150
  __name: "JaPropertyPicker",
4124
4151
  emits: ["change"],
4125
- setup(e, { emit: l }) {
4126
- const a = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), i = l;
4127
- function d(c) {
4128
- o.removeFieldError(t), re(a.formData, t, n.value), i("change", c);
4129
- }
4130
- const n = h(x(a.formData, t) ?? "");
4131
- return T(() => a.formData, () => {
4132
- n.value = x(a.formData, t) ?? "";
4152
+ setup(e, { emit: a }) {
4153
+ const l = M("aceFormModel"), t = M("aceFormItemProp"), o = M("aceFormValidator"), u = a;
4154
+ function i(c) {
4155
+ o.removeFieldError(t), re(l.formData, t, n.value), u("change", c);
4156
+ }
4157
+ const n = h(x(l.formData, t) ?? "");
4158
+ return T(() => l.formData, () => {
4159
+ n.value = x(l.formData, t) ?? "";
4133
4160
  }, {
4134
4161
  deep: !0
4135
- }), (c, p) => (y(), $(Sa, K({
4162
+ }), (c, p) => (y(), $(Fa, K({
4136
4163
  modelValue: n.value,
4137
4164
  "onUpdate:modelValue": p[0] || (p[0] = (r) => n.value = r),
4138
- onChange: d
4165
+ onChange: i
4139
4166
  }, c.$attrs), null, 16, ["modelValue"]));
4140
4167
  }
4141
- }), Jr = R(Nr), Or = R(Sa), jr = /* @__PURE__ */ z({
4168
+ }), jr = R(Or), xr = R(Fa), qr = /* @__PURE__ */ z({
4142
4169
  __name: "I18nBundleEditor",
4143
4170
  props: /* @__PURE__ */ Q({
4144
4171
  appId: {},
@@ -4148,30 +4175,30 @@ const Cr = /* @__PURE__ */ z({
4148
4175
  modelModifiers: {}
4149
4176
  }),
4150
4177
  emits: /* @__PURE__ */ Q(["success"], ["update:modelValue"]),
4151
- async setup(e, { emit: l }) {
4152
- let a, t;
4153
- const o = ue(e, "modelValue"), i = e, d = ne(), n = Yt(d), c = h(), p = h(""), r = h({}), u = l, m = ([a, t] = mt(() => Vt()), a = await a, t(), a);
4178
+ async setup(e, { emit: a }) {
4179
+ let l, t;
4180
+ const o = ue(e, "modelValue"), u = e, i = le(), n = Xt(i), c = h(), p = h(""), r = h({}), d = a, m = ([l, t] = mt(() => It()), l = await l, t(), l);
4154
4181
  function f() {
4155
- I(), p.value = i.preKey ?? "", r.value = {};
4182
+ I(), p.value = u.preKey ?? "", r.value = {};
4156
4183
  }
4157
4184
  async function _() {
4158
4185
  const b = {
4159
4186
  key: p.value,
4160
4187
  messages: r.value,
4161
4188
  appInstance: {
4162
- id: i.appId
4189
+ id: u.appId
4163
4190
  }
4164
4191
  };
4165
- await n.createBundle(b), o.value = !1, u("success", p.value);
4192
+ await n.createBundle(b), o.value = !1, d("success", p.value);
4166
4193
  }
4167
4194
  async function I() {
4168
- c.value = await m.getById(i.appId);
4195
+ c.value = await m.getById(u.appId);
4169
4196
  }
4170
- return T(() => i.appId, async () => {
4197
+ return T(() => u.appId, async () => {
4171
4198
  await I();
4172
4199
  }), (b, v) => {
4173
- const S = Rt("focus");
4174
- return y(), $(s(jt), {
4200
+ const S = Lt("focus");
4201
+ return y(), $(s(xt), {
4175
4202
  "destroy-on-close": "",
4176
4203
  "append-to-body": "",
4177
4204
  modelValue: o.value,
@@ -4187,7 +4214,7 @@ const Cr = /* @__PURE__ */ z({
4187
4214
  onClick: _
4188
4215
  }, {
4189
4216
  default: g(() => v[3] || (v[3] = [
4190
- G("确定 ")
4217
+ H("确定 ")
4191
4218
  ])),
4192
4219
  _: 1,
4193
4220
  __: [3]
@@ -4198,7 +4225,7 @@ const Cr = /* @__PURE__ */ z({
4198
4225
  onClick: v[1] || (v[1] = (P) => o.value = !1)
4199
4226
  }, {
4200
4227
  default: g(() => v[4] || (v[4] = [
4201
- G("取消")
4228
+ H("取消")
4202
4229
  ])),
4203
4230
  _: 1,
4204
4231
  __: [4]
@@ -4212,7 +4239,7 @@ const Cr = /* @__PURE__ */ z({
4212
4239
  default: g(() => {
4213
4240
  var P;
4214
4241
  return [
4215
- w(s(He), {
4242
+ w(s(We), {
4216
4243
  label: "文本键",
4217
4244
  required: ""
4218
4245
  }, {
@@ -4226,7 +4253,7 @@ const Cr = /* @__PURE__ */ z({
4226
4253
  ]),
4227
4254
  _: 1
4228
4255
  }),
4229
- (y(!0), N(oe, null, W((P = c.value) == null ? void 0 : P.supportedLocales, (k) => (y(), $(s(He), {
4256
+ (y(!0), N(ne, null, W((P = c.value) == null ? void 0 : P.supportedLocales, (k) => (y(), $(s(We), {
4230
4257
  key: k,
4231
4258
  label: k
4232
4259
  }, {
@@ -4249,7 +4276,7 @@ const Cr = /* @__PURE__ */ z({
4249
4276
  }, 8, ["modelValue"]);
4250
4277
  };
4251
4278
  }
4252
- }), xr = /* @__PURE__ */ z({
4279
+ }), Gr = /* @__PURE__ */ z({
4253
4280
  __name: "InputI18n",
4254
4281
  props: /* @__PURE__ */ Q({
4255
4282
  appId: {},
@@ -4263,20 +4290,20 @@ const Cr = /* @__PURE__ */ z({
4263
4290
  modelModifiers: {}
4264
4291
  }),
4265
4292
  emits: /* @__PURE__ */ Q(["change", "focus", "blur"], ["update:modelValue"]),
4266
- async setup(e, { expose: l, emit: a }) {
4293
+ async setup(e, { expose: a, emit: l }) {
4267
4294
  let t, o;
4268
- const i = e, d = ue(e, "modelValue"), n = Qa(), c = Yt(n), p = Ze().locale, r = h(), u = h(!1), m = h(!1), f = h(), _ = h(""), I = ([t, o] = mt(() => Vt()), t = await t, o(), t), b = h(""), v = h(""), S = h(), P = a, k = wt(F, 500);
4295
+ const u = e, i = ue(e, "modelValue"), n = le(), c = Xt(n), p = qt().locale, r = h(), d = h(!1), m = h(!1), f = h(), _ = h(""), I = ([t, o] = mt(() => It()), t = await t, o(), t), b = h(""), v = h(""), S = h(), P = l, k = wt(F, 500);
4269
4296
  let C;
4270
4297
  async function F(A) {
4271
- if (A || (A = d.value), !i.appId) return;
4272
- const O = await I.getById(i.appId);
4298
+ if (A || (A = i.value), !u.appId) return;
4299
+ const O = await I.getById(u.appId);
4273
4300
  if (_.value = O.name, !A || !_.value) {
4274
4301
  v.value = "";
4275
4302
  return;
4276
4303
  }
4277
4304
  v.value = A;
4278
4305
  let L = A;
4279
- A && A.length > 0 && (L = Wn(L), L.startsWith("{") && L.endsWith("}") && (L = L.substring(1, L.length - 1)));
4306
+ A && A.length > 0 && (L = Yn(L), L.startsWith("{") && L.endsWith("}") && (L = L.substring(1, L.length - 1)));
4280
4307
  const ee = (await c.getByKey(_.value, L, {
4281
4308
  cancelDuplicatedRequest: !1
4282
4309
  })).find((E) => E.locale === p);
@@ -4285,18 +4312,18 @@ const Cr = /* @__PURE__ */ z({
4285
4312
  async function q(A) {
4286
4313
  b.value = A, r.value = await c.searchKeys(_.value, A);
4287
4314
  }
4288
- async function H() {
4315
+ async function G() {
4289
4316
  var A;
4290
- u.value = !0, await Ie(), P("focus"), (A = f.value) == null || A.focus();
4317
+ d.value = !0, await Ie(), P("focus"), (A = f.value) == null || A.focus();
4291
4318
  }
4292
4319
  function Z() {
4293
4320
  C = setTimeout(() => {
4294
- u.value = !1;
4321
+ d.value = !1;
4295
4322
  }, 200), P("blur");
4296
4323
  }
4297
4324
  $e(() => {
4298
4325
  k.cancel(), C && clearTimeout(C);
4299
- }), T(d, () => {
4326
+ }), T(i, () => {
4300
4327
  k();
4301
4328
  }, {
4302
4329
  deep: !0,
@@ -4306,27 +4333,27 @@ const Cr = /* @__PURE__ */ z({
4306
4333
  P("change", A);
4307
4334
  }
4308
4335
  async function be(A) {
4309
- await q(b.value), d.value = "{" + A + "}", S.value.focus;
4336
+ await q(b.value), i.value = "{" + A + "}", S.value.focus;
4310
4337
  }
4311
- return l({
4338
+ return a({
4312
4339
  focus() {
4313
4340
  S == null || S.value.focus();
4314
4341
  },
4315
4342
  blur() {
4316
4343
  f == null || f.value.blur();
4317
4344
  }
4318
- }), (A, O) => (y(), N(oe, null, [
4345
+ }), (A, O) => (y(), N(ne, null, [
4319
4346
  Y(w(s(we), {
4320
4347
  ref_key: "selectI18n",
4321
4348
  ref: S,
4322
- onFocus: H,
4349
+ onFocus: G,
4323
4350
  modelValue: v.value,
4324
4351
  "onUpdate:modelValue": O[0] || (O[0] = (L) => v.value = L),
4325
4352
  size: A.size,
4326
4353
  disabled: A.disabled,
4327
4354
  type: A.textarea ? "textarea" : void 0
4328
4355
  }, null, 8, ["modelValue", "size", "disabled", "type"]), [
4329
- [ge, !u.value]
4356
+ [ge, !d.value]
4330
4357
  ]),
4331
4358
  Y(w(s(Ae), {
4332
4359
  ref_key: "select",
@@ -4342,8 +4369,8 @@ const Cr = /* @__PURE__ */ z({
4342
4369
  "allow-create": "",
4343
4370
  clearable: "",
4344
4371
  onBlur: Z,
4345
- modelValue: d.value,
4346
- "onUpdate:modelValue": O[2] || (O[2] = (L) => d.value = L)
4372
+ modelValue: i.value,
4373
+ "onUpdate:modelValue": O[2] || (O[2] = (L) => i.value = L)
4347
4374
  }, {
4348
4375
  footer: g(() => [
4349
4376
  w(s(se), {
@@ -4354,14 +4381,14 @@ const Cr = /* @__PURE__ */ z({
4354
4381
  shortcut: "Alt+I"
4355
4382
  }, {
4356
4383
  default: g(() => O[4] || (O[4] = [
4357
- G(" 新建国际化文本(Alt+I) ")
4384
+ H(" 新建国际化文本(Alt+I) ")
4358
4385
  ])),
4359
4386
  _: 1,
4360
4387
  __: [4]
4361
4388
  })
4362
4389
  ]),
4363
4390
  default: g(() => [
4364
- (y(!0), N(oe, null, W(r.value, (L) => (y(), $(s(Xe), {
4391
+ (y(!0), N(ne, null, W(r.value, (L) => (y(), $(s(Ze), {
4365
4392
  key: L,
4366
4393
  value: "{" + L + "}",
4367
4394
  label: "{" + L + "}"
@@ -4369,9 +4396,9 @@ const Cr = /* @__PURE__ */ z({
4369
4396
  ]),
4370
4397
  _: 1
4371
4398
  }, 8, ["disabled", "size", "modelValue"]), [
4372
- [ge, u.value]
4399
+ [ge, d.value]
4373
4400
  ]),
4374
- w(jr, {
4401
+ w(qr, {
4375
4402
  "app-id": A.appId,
4376
4403
  "pre-key": b.value,
4377
4404
  modelValue: m.value,
@@ -4380,28 +4407,28 @@ const Cr = /* @__PURE__ */ z({
4380
4407
  }, null, 8, ["app-id", "pre-key", "modelValue"])
4381
4408
  ], 64));
4382
4409
  }
4383
- }), qr = R(xr), Gr = /* @__PURE__ */ z({
4410
+ }), Hr = R(Gr), Wr = /* @__PURE__ */ z({
4384
4411
  __name: "JaCheckboxGroup",
4385
4412
  emits: ["change"],
4386
- setup(e, { expose: l, emit: a }) {
4387
- const t = h({}), o = M("aceFormModel"), i = M("aceFormItemProp"), d = M("aceFormValidator"), n = a;
4413
+ setup(e, { expose: a, emit: l }) {
4414
+ const t = h({}), o = M("aceFormModel"), u = M("aceFormItemProp"), i = M("aceFormValidator"), n = l;
4388
4415
  function c(r) {
4389
- d.removeFieldError(i), re(o.formData, i, p.value), n("change", r);
4416
+ i.removeFieldError(u), re(o.formData, u, p.value), n("change", r);
4390
4417
  }
4391
- const p = h(x(o.formData, i));
4418
+ const p = h(x(o.formData, u));
4392
4419
  return T(() => o.formData, () => {
4393
- p.value = x(o.formData, i);
4420
+ p.value = x(o.formData, u);
4394
4421
  }, {
4395
4422
  deep: !0
4396
- }), l({
4423
+ }), a({
4397
4424
  focus: () => t.value.focus(),
4398
4425
  blur: () => t.value.blur(),
4399
4426
  elCheckboxGroup: t
4400
- }), (r, u) => (y(), $(s(Wa), K({
4427
+ }), (r, d) => (y(), $(s(Ya), K({
4401
4428
  ref_key: "input",
4402
4429
  ref: t,
4403
4430
  modelValue: p.value,
4404
- "onUpdate:modelValue": u[0] || (u[0] = (m) => p.value = m),
4431
+ "onUpdate:modelValue": d[0] || (d[0] = (m) => p.value = m),
4405
4432
  onChange: c
4406
4433
  }, r.$attrs), fe({ _: 2 }, [
4407
4434
  W(r.$slots, (m, f) => ({
@@ -4412,7 +4439,7 @@ const Cr = /* @__PURE__ */ z({
4412
4439
  }))
4413
4440
  ]), 1040, ["modelValue"]));
4414
4441
  }
4415
- }), Hr = R(Gr), Wr = /* @__PURE__ */ z({
4442
+ }), Kr = R(Wr), Yr = /* @__PURE__ */ z({
4416
4443
  __name: "EnumPicker",
4417
4444
  props: /* @__PURE__ */ Q({
4418
4445
  clearable: { type: Boolean, default: !0 },
@@ -4429,34 +4456,34 @@ const Cr = /* @__PURE__ */ z({
4429
4456
  }),
4430
4457
  emits: ["update:modelValue"],
4431
4458
  setup(e) {
4432
- const l = e, a = h([]), t = h(!1), o = ue(e, "modelValue"), i = ne(), d = Xa(i);
4459
+ const a = e, l = h([]), t = h(!1), o = ue(e, "modelValue"), u = le(), i = el(u);
4433
4460
  async function n() {
4434
- !l.name || !l.serviceName || (t.value = !0, d.queryByName(l.serviceName, l.name).then((r) => {
4435
- a.value = r.values;
4461
+ !a.name || !a.serviceName || (t.value = !0, i.queryByName(a.serviceName, a.name).then((r) => {
4462
+ l.value = r.values;
4436
4463
  }).finally(() => {
4437
4464
  t.value = !1;
4438
4465
  }));
4439
4466
  }
4440
- const c = ve(() => l.multiple ? o.value.map((r) => r[l.keyField]) || [] : o.value[0] !== void 0 ? o.value[0][l.keyField] : ""), p = (r) => {
4467
+ const c = ve(() => a.multiple ? o.value.map((r) => r[a.keyField]) || [] : o.value[0] !== void 0 ? o.value[0][a.keyField] : ""), p = (r) => {
4441
4468
  if (typeof r == "string") {
4442
- const u = a.value.find((m) => m[l.keyField] === r);
4443
- o.value = u ? [u] : [];
4469
+ const d = l.value.find((m) => m[a.keyField] === r);
4470
+ o.value = d ? [d] : [];
4444
4471
  } else
4445
- o.value = a.value.filter((u) => r.includes(u[l.keyField]));
4472
+ o.value = l.value.filter((d) => r.includes(d[a.keyField]));
4446
4473
  };
4447
- return n(), T(() => l.name, n), T(() => l.serviceName, n), (r, u) => {
4448
- const m = Rt("loading");
4474
+ return n(), T(() => a.name, n), T(() => a.serviceName, n), (r, d) => {
4475
+ const m = Lt("loading");
4449
4476
  return Y((y(), $(s(Ae), {
4450
4477
  "model-value": c.value,
4451
- filterable: l.filterable,
4452
- multiple: l.multiple,
4453
- clearable: l.clearable,
4478
+ filterable: a.filterable,
4479
+ multiple: a.multiple,
4480
+ clearable: a.clearable,
4454
4481
  onChange: p
4455
4482
  }, {
4456
4483
  default: g(() => [
4457
- (y(!0), N(oe, null, W(a.value, (f) => (y(), $(s(Xe), {
4484
+ (y(!0), N(ne, null, W(l.value, (f) => (y(), $(s(Ze), {
4458
4485
  key: f.id,
4459
- value: f[l.keyField],
4486
+ value: f[a.keyField],
4460
4487
  label: f.text
4461
4488
  }, null, 8, ["value", "label"]))), 128))
4462
4489
  ]),
@@ -4466,117 +4493,117 @@ const Cr = /* @__PURE__ */ z({
4466
4493
  ]);
4467
4494
  };
4468
4495
  }
4469
- }), Kr = R(Wr), Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4496
+ }), Qr = R(Yr), Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4470
4497
  __proto__: null,
4471
- AceTip: ml,
4472
- AceUpload: il,
4473
- JaAutocomplete: _r,
4498
+ AceTip: vl,
4499
+ AceUpload: cl,
4500
+ JaAutocomplete: Vr,
4474
4501
  JaAvatar: it,
4475
- JaBaseRolePicker: It,
4502
+ JaBaseRolePicker: Ct,
4476
4503
  JaButton: se,
4477
- JaChannelPicker: Fr,
4478
- JaChannelPickerRaw: Mr,
4479
- JaCheckbox: kl,
4480
- JaCheckboxGroup: Hr,
4481
- JaDatePicker: Dl,
4482
- JaDepartmentPicker: vo,
4483
- JaDepartmentTree: fa,
4484
- JaDropdownButton: zl,
4485
- JaEnumList: ao,
4486
- JaEnumListRaw: lo,
4487
- JaEnumPicker: Kr,
4488
- JaForm: gl,
4504
+ JaChannelPicker: Pr,
4505
+ JaChannelPickerRaw: Ur,
4506
+ JaCheckbox: Il,
4507
+ JaCheckboxGroup: Kr,
4508
+ JaDatePicker: Sl,
4509
+ JaDepartmentPicker: ho,
4510
+ JaDepartmentTree: ga,
4511
+ JaDropdownButton: Rl,
4512
+ JaEnumList: oo,
4513
+ JaEnumListRaw: no,
4514
+ JaEnumPicker: Qr,
4515
+ JaForm: yl,
4489
4516
  JaFormItem: Le,
4490
4517
  JaInput: ut,
4491
- JaInputI18nRaw: qr,
4492
- JaInputNumber: Il,
4493
- JaMapItemList: co,
4494
- JaMapItemListRaw: po,
4495
- JaNumberList: Kl,
4496
- JaNumberListRaw: Yl,
4497
- JaPropertyPicker: Jr,
4498
- JaPropertyPickerRaw: Or,
4499
- JaRadioGroup: Vr,
4500
- JaRolePicker: Er,
4501
- JaRolePickerRaw: Sr,
4502
- JaScrollbar: ya,
4503
- JaSelect: $l,
4504
- JaStringList: Ol,
4505
- JaStringListRaw: jl,
4506
- JaSwitch: Rl,
4507
- JaTimePicker: hr,
4508
- JaUserGroupPicker: br,
4509
- JaUserGroupTree: ga,
4518
+ JaInputI18nRaw: Hr,
4519
+ JaInputNumber: $l,
4520
+ JaMapItemList: mo,
4521
+ JaMapItemListRaw: fo,
4522
+ JaNumberList: Ql,
4523
+ JaNumberListRaw: Xl,
4524
+ JaPropertyPicker: jr,
4525
+ JaPropertyPickerRaw: xr,
4526
+ JaRadioGroup: Cr,
4527
+ JaRolePicker: Tr,
4528
+ JaRolePickerRaw: Fr,
4529
+ JaScrollbar: wa,
4530
+ JaSelect: Dl,
4531
+ JaStringList: xl,
4532
+ JaStringListRaw: ql,
4533
+ JaSwitch: Nl,
4534
+ JaTimePicker: br,
4535
+ JaUserGroupPicker: _r,
4536
+ JaUserGroupTree: ya,
4510
4537
  JaUserInfoTag: tt,
4511
- JaUserList: vr,
4512
- JaUserPicker: fr,
4513
- JaUserPickerRaw: mr,
4514
- JaUserSelectDialog: ha,
4515
- getAvatarToken: ua,
4516
- updateAvatarToken: go
4538
+ JaUserList: hr,
4539
+ JaUserPicker: gr,
4540
+ JaUserPickerRaw: vr,
4541
+ JaUserSelectDialog: ba,
4542
+ getAvatarToken: da,
4543
+ updateAvatarToken: yo
4517
4544
  }, Symbol.toStringTag, { value: "Module" }));
4518
- function Qr(e) {
4519
- e.directive("focus", kt), e.directive("shortcut", et), e.directive("auth", ta);
4545
+ function Zr(e) {
4546
+ e.directive("focus", Vt), e.directive("shortcut", et), e.directive("auth", la);
4520
4547
  }
4521
- const as = [
4548
+ const os = [
4522
4549
  {
4523
4550
  text: "近一天",
4524
4551
  value: () => {
4525
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4526
- return l.setDate(l.getDate() - 1), [l, e];
4552
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4553
+ return a.setDate(a.getDate() - 1), [a, e];
4527
4554
  }
4528
4555
  },
4529
4556
  {
4530
4557
  text: "近三天",
4531
4558
  value: () => {
4532
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4533
- return l.setDate(l.getDate() - 3), [l, e];
4559
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4560
+ return a.setDate(a.getDate() - 3), [a, e];
4534
4561
  }
4535
4562
  },
4536
4563
  {
4537
4564
  text: "近一周",
4538
4565
  value: () => {
4539
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4540
- return l.setDate(l.getDate() - 7), [l, e];
4566
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4567
+ return a.setDate(a.getDate() - 7), [a, e];
4541
4568
  }
4542
4569
  },
4543
4570
  {
4544
4571
  text: "近一月",
4545
4572
  value: () => {
4546
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4547
- return l.setMonth(l.getMonth() - 1), [l, e];
4573
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4574
+ return a.setMonth(a.getMonth() - 1), [a, e];
4548
4575
  }
4549
4576
  },
4550
4577
  {
4551
4578
  text: "近三月",
4552
4579
  value: () => {
4553
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4554
- return l.setMonth(l.getMonth() - 3), [l, e];
4580
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4581
+ return a.setMonth(a.getMonth() - 3), [a, e];
4555
4582
  }
4556
4583
  },
4557
4584
  {
4558
4585
  text: "近半年",
4559
4586
  value: () => {
4560
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4561
- return l.setMonth(l.getMonth() - 6), [l, e];
4587
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4588
+ return a.setMonth(a.getMonth() - 6), [a, e];
4562
4589
  }
4563
4590
  },
4564
4591
  {
4565
4592
  text: "近一年",
4566
4593
  value: () => {
4567
- const e = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
4568
- return l.setFullYear(l.getFullYear() - 1), [l, e];
4594
+ const e = /* @__PURE__ */ new Date(), a = /* @__PURE__ */ new Date();
4595
+ return a.setFullYear(a.getFullYear() - 1), [a, e];
4569
4596
  }
4570
4597
  }
4571
4598
  ];
4572
- function ls(e) {
4599
+ function ns(e) {
4573
4600
  if (!e)
4574
4601
  throw new Error(
4575
4602
  "无法获取到应用名称,请确保VITE_APP_NAME环境变量已配置或者在创建时传入appName参数。"
4576
4603
  );
4577
4604
  if (!window.microApp)
4578
4605
  throw new Error("无法获取到window.microApp。");
4579
- const l = h(/* @__PURE__ */ new Set()), a = (p, r = !0, u = !0) => {
4606
+ const a = h(/* @__PURE__ */ new Set()), l = (p, r = !0, d = !0) => {
4580
4607
  const m = {
4581
4608
  sender: e,
4582
4609
  // 将自己的appName填入sender字段
@@ -4585,37 +4612,37 @@ function ls(e) {
4585
4612
  };
4586
4613
  r ? window.microApp.forceDispatch(m) : window.microApp.dispatch(m, (f) => {
4587
4614
  console.log("消息是否有返回值", f);
4588
- }), u && d();
4615
+ }), d && i();
4589
4616
  }, t = (p, r = !0) => {
4590
- const u = {
4617
+ const d = {
4591
4618
  sender: "app-demo",
4592
4619
  timestamp: Date.now(),
4593
4620
  payload: p
4594
4621
  };
4595
- window.microApp.setGlobalData(u), r && d();
4622
+ window.microApp.setGlobalData(d), r && i();
4596
4623
  }, o = (p, r = !0) => {
4597
4624
  window.microApp.addGlobalDataListener(p, r);
4598
- }, i = () => window.microApp.getData(), d = () => {
4625
+ }, u = () => window.microApp.getData(), i = () => {
4599
4626
  window.microApp.clearData();
4600
4627
  }, n = (p, r = !1) => {
4601
- window.microApp.addDataListener(p, r), l.value.add(p);
4628
+ window.microApp.addDataListener(p, r), a.value.add(p);
4602
4629
  }, c = (p) => {
4603
- window.microApp.removeDataListener(p), l.value.delete(p);
4630
+ window.microApp.removeDataListener(p), a.value.delete(p);
4604
4631
  };
4605
4632
  return $e(() => {
4606
- window.microApp.clearDataListener(), l.value.clear();
4633
+ window.microApp.clearDataListener(), a.value.clear();
4607
4634
  }), {
4608
- sendMessage: a,
4635
+ sendMessage: l,
4609
4636
  // 发送消息的方法
4610
4637
  onMessage: n,
4611
4638
  // 监听消息的方法
4612
- clearCache: d,
4639
+ clearCache: i,
4613
4640
  // 清除缓存
4614
- getBaseAppData: i,
4641
+ getBaseAppData: u,
4615
4642
  // 获取主应用下发的消息
4616
4643
  offMessage: c,
4617
4644
  // 移除指定监听函数
4618
- listeners: l,
4645
+ listeners: a,
4619
4646
  // 应用的监听函数集合
4620
4647
  // receivedMessage, // 接收到的消息列表
4621
4648
  sendGlobalMessage: t,
@@ -4624,66 +4651,67 @@ function ls(e) {
4624
4651
  // 监听全局消息的方法
4625
4652
  };
4626
4653
  }
4627
- const os = {
4654
+ const rs = {
4628
4655
  install(e) {
4629
- for (const [l, a] of Object.entries(Yr))
4630
- e.component(l, a);
4631
- Qr(e);
4656
+ for (const [a, l] of Object.entries(Xr))
4657
+ e.component(a, l);
4658
+ Zr(e);
4632
4659
  }
4633
4660
  };
4634
4661
  export {
4635
- ml as AceTip,
4636
- il as AceUpload,
4637
- os as AceVueUI,
4638
- _r as JaAutocomplete,
4662
+ vl as AceTip,
4663
+ cl as AceUpload,
4664
+ rs as AceVueUI,
4665
+ Vr as JaAutocomplete,
4639
4666
  it as JaAvatar,
4640
- It as JaBaseRolePicker,
4667
+ Ct as JaBaseRolePicker,
4641
4668
  se as JaButton,
4642
- Fr as JaChannelPicker,
4643
- Mr as JaChannelPickerRaw,
4644
- kl as JaCheckbox,
4645
- Hr as JaCheckboxGroup,
4646
- Dl as JaDatePicker,
4647
- vo as JaDepartmentPicker,
4648
- fa as JaDepartmentTree,
4649
- zl as JaDropdownButton,
4650
- ao as JaEnumList,
4651
- lo as JaEnumListRaw,
4652
- Kr as JaEnumPicker,
4653
- gl as JaForm,
4669
+ Pr as JaChannelPicker,
4670
+ Ur as JaChannelPickerRaw,
4671
+ Il as JaCheckbox,
4672
+ Kr as JaCheckboxGroup,
4673
+ Sl as JaDatePicker,
4674
+ ho as JaDepartmentPicker,
4675
+ ga as JaDepartmentTree,
4676
+ Rl as JaDropdownButton,
4677
+ oo as JaEnumList,
4678
+ no as JaEnumListRaw,
4679
+ Qr as JaEnumPicker,
4680
+ yl as JaForm,
4654
4681
  Le as JaFormItem,
4655
4682
  ut as JaInput,
4656
- qr as JaInputI18nRaw,
4657
- Il as JaInputNumber,
4658
- co as JaMapItemList,
4659
- po as JaMapItemListRaw,
4660
- Kl as JaNumberList,
4661
- Yl as JaNumberListRaw,
4662
- Jr as JaPropertyPicker,
4663
- Or as JaPropertyPickerRaw,
4664
- Vr as JaRadioGroup,
4665
- Er as JaRolePicker,
4666
- Sr as JaRolePickerRaw,
4667
- ya as JaScrollbar,
4668
- $l as JaSelect,
4669
- Ol as JaStringList,
4670
- jl as JaStringListRaw,
4671
- Rl as JaSwitch,
4672
- hr as JaTimePicker,
4673
- br as JaUserGroupPicker,
4674
- ga as JaUserGroupTree,
4683
+ Hr as JaInputI18nRaw,
4684
+ $l as JaInputNumber,
4685
+ mo as JaMapItemList,
4686
+ fo as JaMapItemListRaw,
4687
+ Ql as JaNumberList,
4688
+ Xl as JaNumberListRaw,
4689
+ jr as JaPropertyPicker,
4690
+ xr as JaPropertyPickerRaw,
4691
+ Cr as JaRadioGroup,
4692
+ Tr as JaRolePicker,
4693
+ Fr as JaRolePickerRaw,
4694
+ wa as JaScrollbar,
4695
+ Dl as JaSelect,
4696
+ xl as JaStringList,
4697
+ ql as JaStringListRaw,
4698
+ Nl as JaSwitch,
4699
+ br as JaTimePicker,
4700
+ _r as JaUserGroupPicker,
4701
+ ya as JaUserGroupTree,
4675
4702
  tt as JaUserInfoTag,
4676
- vr as JaUserList,
4677
- fr as JaUserPicker,
4678
- mr as JaUserPickerRaw,
4679
- ha as JaUserSelectDialog,
4680
- va as SCROLL_BAR_WRAPPED_INJECT_KEY,
4681
- ua as getAvatarToken,
4682
- Qr as installDirectives,
4683
- as as shortcuts,
4684
- go as updateAvatarToken,
4685
- Vt as useAppInstances,
4686
- fl as useBackendValidations,
4687
- ls as useBridge,
4703
+ hr as JaUserList,
4704
+ gr as JaUserPicker,
4705
+ vr as JaUserPickerRaw,
4706
+ ba as JaUserSelectDialog,
4707
+ ha as SCROLL_BAR_WRAPPED_INJECT_KEY,
4708
+ da as getAvatarToken,
4709
+ Zr as installDirectives,
4710
+ os as shortcuts,
4711
+ yo as updateAvatarToken,
4712
+ It as useAppInstances,
4713
+ gl as useBackendValidations,
4714
+ ns as useBridge,
4715
+ _t as useRealms,
4688
4716
  Pe as useTreeData
4689
4717
  };