@skyfox2000/webui 1.3.1 → 1.3.3

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 (37) hide show
  1. package/lib/assets/modules/{file-upload-Ce5MFm6o.js → file-upload-D4Pqs8h3.js} +1 -1
  2. package/lib/assets/modules/{form-excel-Bq-9rkHa.js → form-excel-D1vXB4c4.js} +1 -1
  3. package/lib/assets/modules/{index-B8uZAVPS.js → index-CSnwbbQT.js} +2 -2
  4. package/lib/assets/modules/{index-CrAJ72MK.js → index-V1j9haWy.js} +1 -1
  5. package/lib/assets/modules/{menuTabs-DEq88ENK.js → menuTabs-e8XoJN7m.js} +2 -2
  6. package/lib/assets/modules/{toolIcon-OGhmNg0x.js → toolIcon-BSF7eiPf.js} +1 -1
  7. package/lib/assets/modules/uploadList-Bcf7g1bf.js +382 -0
  8. package/lib/assets/modules/{uploadList-BzBJXttS.js → uploadList-DA4TRDWR.js} +686 -712
  9. package/lib/components/form/autoComplete/index.vue.d.ts +10 -48
  10. package/lib/components/form/upload/uploadList.vue.d.ts +1 -0
  11. package/lib/es/AceEditor/index.js +3 -3
  12. package/lib/es/BasicLayout/index.js +3 -3
  13. package/lib/es/Error403/index.js +1 -1
  14. package/lib/es/Error404/index.js +1 -1
  15. package/lib/es/ExcelForm/index.js +4 -4
  16. package/lib/es/UploadForm/index.js +4 -4
  17. package/lib/index.d.ts +1 -1
  18. package/lib/typings/option.d.ts +3 -2
  19. package/lib/utils/download.d.ts +2 -0
  20. package/lib/utils/options.d.ts +1 -1
  21. package/lib/webui.css +1 -1
  22. package/lib/webui.es.js +275 -273
  23. package/package.json +1 -1
  24. package/src/components/content/table/index.vue +22 -10
  25. package/src/components/form/autoComplete/index.vue +29 -60
  26. package/src/components/form/cascader/index.vue +1 -1
  27. package/src/components/form/checkbox/index.vue +1 -1
  28. package/src/components/form/radio/index.vue +1 -1
  29. package/src/components/form/select/index.vue +1 -9
  30. package/src/components/form/switch/index.vue +1 -1
  31. package/src/components/form/upload/uploadList.vue +50 -11
  32. package/src/index.ts +1 -1
  33. package/src/typings/option.d.ts +3 -2
  34. package/src/utils/download.ts +31 -0
  35. package/src/utils/options.ts +15 -26
  36. package/src/utils/page.ts +39 -4
  37. package/lib/assets/modules/uploadList-DzK2YNwb.js +0 -327
@@ -1,23 +1,23 @@
1
1
  var da = Object.defineProperty;
2
2
  var ha = (e, t, a) => t in e ? da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var F = (e, t, a) => ha(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { inject as Z, ref as f, provide as Oe, watch as b, toRaw as Ye, h as _, nextTick as ma, shallowRef as H, defineComponent as C, reactive as va, onMounted as ie, onUnmounted as oe, createBlock as Ie, createCommentVNode as B, openBlock as A, unref as S, mergeProps as le, useAttrs as xe, createElementBlock as L, createVNode as ae, withCtx as z, Fragment as te, renderList as De, normalizeClass as Xe, createTextVNode as Ue, toDisplayString as se, createElementVNode as ga } from "vue";
5
- import { Switch as ya, AutoComplete as Sa, CheckboxGroup as ba, Checkbox as Ia, RadioGroup as xa, Radio as Aa, Select as Ea, SelectOption as Ra } from "ant-design-vue";
6
- import { createPinia as Ta, defineStore as ue } from "pinia";
7
- import Oa from "pinia-plugin-persistedstate";
8
- import { combineParams as _e, EnvConfig as ye, AppAction as qe, AppSource as Be, isMicroApp as Se, mainAppApis as D, isBaseMicroApp as wa } from "@skyfox2000/microbase";
9
- import { ResStatus as T, httpPost as G, setToken as me, fieldMapping as Pa, parseFieldTemplate as Me, API_HOST as we, SERVER_HOST as ka } from "@skyfox2000/fapi";
4
+ import { inject as X, ref as c, provide as Te, watch as I, toRaw as Ye, h as _, nextTick as ma, shallowRef as U, defineComponent as C, reactive as va, onMounted as ye, onUnmounted as ne, createBlock as Se, createCommentVNode as q, openBlock as A, unref as b, mergeProps as re, useAttrs as be, createElementBlock as L, createVNode as ee, withCtx as H, createTextVNode as Ie, toDisplayString as B, Fragment as ae, renderList as _e, normalizeClass as Xe, createElementVNode as ga } from "vue";
5
+ import { Switch as ya, AutoComplete as Sa, CheckboxGroup as ba, Checkbox as Ia, RadioGroup as xa, Radio as Aa, Select as Ea, SelectOption as Oa } from "ant-design-vue";
6
+ import { createPinia as Ra, defineStore as oe } from "pinia";
7
+ import Ta from "pinia-plugin-persistedstate";
8
+ import { combineParams as xe, EnvConfig as me, AppAction as qe, AppSource as Be, isMicroApp as ve, mainAppApis as $, isBaseMicroApp as wa } from "@skyfox2000/microbase";
9
+ import { ResStatus as R, httpPost as Q, setToken as pe, fieldMapping as Pa, parseFieldTemplate as Me, API_HOST as we, SERVER_HOST as ka } from "@skyfox2000/fapi";
10
10
  import x from "vue-m-message";
11
- import Ve from "async-validator";
11
+ import De from "async-validator";
12
12
  import { createRouter as La, createWebHashHistory as Fa } from "vue-router";
13
13
  import "dayjs";
14
14
  import "vue-draggable-next";
15
- const Ma = Ta();
16
- Ma.use(Oa);
17
- var U = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(U || {});
18
- const w = class w {
15
+ const Ma = Ra();
16
+ Ma.use(Ta);
17
+ var N = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.LabelWidth = "FormItem.LabelWidth", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(N || {});
18
+ const T = class T {
19
19
  };
20
- F(w, "dict", {}), F(w, "Keys", {
20
+ F(T, "dict", {}), F(T, "Keys", {
21
21
  EnableDisable: "EnableDisable",
22
22
  SuccessResult: "SuccessResult",
23
23
  YesNo: "YesNo",
@@ -27,25 +27,25 @@ F(w, "dict", {}), F(w, "Keys", {
27
27
  * @param key 名称
28
28
  * @returns
29
29
  */
30
- F(w, "getOptions", (t) => w.dict[t]), /**
30
+ F(T, "getOptions", (t) => T.dict[t]), /**
31
31
  * 静态选择项对象
32
32
  * @param key 名称
33
33
  * @param value 值
34
34
  * @returns
35
35
  */
36
- F(w, "getOptionItem", (t, a) => w.dict[t].find((s) => s.value === a)), /**
36
+ F(T, "getOptionItem", (t, a) => T.dict[t].find((s) => s.value === a)), /**
37
37
  * 设置静态选择项
38
38
  * @param key 名称
39
39
  * @param list 列表
40
40
  */
41
- F(w, "setOptions", (t, a) => {
42
- w.dict[t] = a;
41
+ F(T, "setOptions", (t, a) => {
42
+ T.dict[t] = a;
43
43
  }), /**
44
44
  * 启用/停用选项
45
45
  * - 启用 1
46
46
  * - 停用 0
47
47
  */
48
- F(w, "EnableDisable", [
48
+ F(T, "EnableDisable", [
49
49
  {
50
50
  label: "启用",
51
51
  text: "✅ 启用",
@@ -61,7 +61,7 @@ F(w, "EnableDisable", [
61
61
  * - 成功 1
62
62
  * - 失败 0
63
63
  */
64
- F(w, "SuccessResult", [
64
+ F(T, "SuccessResult", [
65
65
  {
66
66
  label: "成功",
67
67
  text: "✅ 成功",
@@ -77,7 +77,7 @@ F(w, "SuccessResult", [
77
77
  * - 是 1
78
78
  * - 否 0
79
79
  */
80
- F(w, "YesNo", [
80
+ F(T, "YesNo", [
81
81
  {
82
82
  label: "是",
83
83
  text: "✅ 是",
@@ -93,7 +93,7 @@ F(w, "YesNo", [
93
93
  * - 男 M
94
94
  * - 女 F
95
95
  */
96
- F(w, "MaleFemale", [
96
+ F(T, "MaleFemale", [
97
97
  {
98
98
  label: "男",
99
99
  text: "男 👨",
@@ -105,12 +105,12 @@ F(w, "MaleFemale", [
105
105
  value: "F"
106
106
  }
107
107
  ]);
108
- let M = w;
108
+ let M = T;
109
109
  M.setOptions("EnableDisable", M.EnableDisable);
110
110
  M.setOptions("SuccessResult", M.SuccessResult);
111
111
  M.setOptions("YesNo", M.YesNo);
112
112
  M.setOptions("MaleFemale", M.MaleFemale);
113
- const ce = {
113
+ const ie = {
114
114
  /**
115
115
  * 选项数据接口
116
116
  */
@@ -174,10 +174,10 @@ const ce = {
174
174
  required: !1
175
175
  }
176
176
  }, P = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, Ae = (e, t) => {
177
- var r;
177
+ var n;
178
178
  return {
179
179
  url: "",
180
- ...(r = e.page.urls) == null ? void 0 : r[t.urlKey],
180
+ ...(n = e.page.urls) == null ? void 0 : n[t.urlKey],
181
181
  ...e.url,
182
182
  ...t.url,
183
183
  loadingText: t.loadingText
@@ -185,17 +185,17 @@ const ce = {
185
185
  }, Ee = (e, t) => {
186
186
  const a = e.page, s = t.url;
187
187
  if (!s || !s.url) {
188
- const i = `URL未设置: ${t.urlKey}`;
189
- return console.warn(i), Promise.reject(new Error(i));
188
+ const o = `URL未设置: ${t.urlKey}`;
189
+ return console.warn(o), Promise.reject(new Error(o));
190
190
  }
191
191
  s.api || (s.api = a.api), s.authorize === void 0 && (s.authorize = a.authorize);
192
- let r = JSON.parse(JSON.stringify(t.params));
193
- return t.processParams && (r = t.processParams(r)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), G(s, r).then((i) => (t.loadingState && (t.loadingState.value = !1), i)).catch((i) => (t.loadingState && (t.loadingState.value = !1), null));
194
- }, He = (e, t) => {
192
+ let n = JSON.parse(JSON.stringify(t.params));
193
+ return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), Q(s, n).then((o) => (t.loadingState && (t.loadingState.value = !1), o)).catch((o) => (t.loadingState && (t.loadingState.value = !1), null));
194
+ }, Ue = (e, t) => {
195
195
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
196
196
  const a = Ae(e, t);
197
197
  return t.url = a, Ee(e, t);
198
- }, Pt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Ae(e, t), Ee(e, t).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && (t.hideErrorToast || x.success("执行成功!")), a))), Ze = (e, t = {}) => {
198
+ }, Pt = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = Ae(e, t), Ee(e, t).then((a) => ((a == null ? void 0 : a.status) === R.SUCCESS && (t.hideErrorToast || x.success("执行成功!")), a))), Ze = (e, t = {}) => {
199
199
  const a = t.primaryKey || "Id";
200
200
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
201
201
  return x.error("错误!无保存数据!"), Promise.resolve(null);
@@ -205,30 +205,30 @@ const ce = {
205
205
  loadingText: t.loadingText === !1 ? !1 : t.loadingText || "数据保存中..."
206
206
  };
207
207
  s.params.Query[a] = s.params.Data[a];
208
- const r = Ae(e, s);
209
- return s.url = r, Ee(e, s).then((i) => ((i == null ? void 0 : i.status) === T.SUCCESS && (t.hideErrorToast || x.success("保存成功!")), i));
208
+ const n = Ae(e, s);
209
+ return s.url = n, Ee(e, s).then((o) => ((o == null ? void 0 : o.status) === R.SUCCESS && (t.hideErrorToast || x.success("保存成功!")), o));
210
210
  }, $a = (e, t, a = {}) => {
211
211
  const s = a.primaryKey || "Id";
212
212
  a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
213
- const r = {
213
+ const n = {
214
214
  ...a,
215
215
  urlKey: "delete",
216
216
  loadingText: a.loadingText === !1 ? !1 : a.loadingText || "数据删除中..."
217
217
  };
218
- if (Array.isArray(t) ? r.params.Query[s] = t : r.params.Query[s] = t[s], P(r.params.Query) || P(r.params.Query[s]))
218
+ if (Array.isArray(t) ? n.params.Query[s] = t : n.params.Query[s] = t[s], P(n.params.Query) || P(n.params.Query[s]))
219
219
  return x.error("错误!禁止无条件删除数据!"), Promise.resolve(null);
220
- const i = Ae(e, r);
221
- return r.url = i, Ee(e, r).then((n) => ((n == null ? void 0 : n.status) === T.SUCCESS && (a.hideErrorToast || x.success("删除成功!")), n));
222
- }, Na = (e, t) => He(e, {
220
+ const o = Ae(e, n);
221
+ return n.url = o, Ee(e, n).then((r) => ((r == null ? void 0 : r.status) === R.SUCCESS && (a.hideErrorToast || x.success("删除成功!")), r));
222
+ }, Na = (e, t) => Ue(e, {
223
223
  urlKey: "tree",
224
224
  params: {},
225
225
  loadingState: e.isTreeLoading,
226
226
  loadingText: !1,
227
- processParams: () => _e(e.treeQuery, t)
228
- }).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? (e.data.value = a.data, e.data.value) : []);
229
- let re;
227
+ processParams: () => xe(e.treeQuery, t)
228
+ }).then((a) => (a == null ? void 0 : a.status) === R.SUCCESS ? (e.data.value = a.data, e.data.value) : []);
229
+ let te;
230
230
  const kt = (e) => {
231
- re = new Ve({}), re.messages({
231
+ te = new De({}), te.messages({
232
232
  required: "${label}不能为空",
233
233
  types: {
234
234
  number: "${label}必须是数字"
@@ -257,141 +257,141 @@ const kt = (e) => {
257
257
  }, Lt = (e) => {
258
258
  if (!e || P(e))
259
259
  return [];
260
- const t = [], a = re.messages(), s = (i, n, l) => {
261
- const o = n.type;
262
- if (o && a.types && o in a.types) {
263
- const u = a.types[o];
264
- r(u, i, { type: o }, l);
260
+ const t = [], a = te.messages(), s = (o, r, l) => {
261
+ const i = r.type;
262
+ if (i && a.types && i in a.types) {
263
+ const f = a.types[i];
264
+ n(f, o, { type: i }, l);
265
265
  }
266
- const c = ["string", "number", "array"];
267
- for (const u of c)
268
- if (o === u && a[u]) {
269
- const p = a[u], m = ["len", "min", "max", "range"];
266
+ const u = ["string", "number", "array"];
267
+ for (const f of u)
268
+ if (i === f && a[f]) {
269
+ const p = a[f], m = ["len", "min", "max", "range"];
270
270
  for (const d of m)
271
- d === "range" && n.min != null && n.max != null && p.range ? r(p.range, i, { min: n.min, max: n.max }, l) : d !== "range" && n[d] != null && p[d] && r(p[d], i, { [d]: n[d] }, l);
271
+ d === "range" && r.min != null && r.max != null && p.range ? n(p.range, o, { min: r.min, max: r.max }, l) : d !== "range" && r[d] != null && p[d] && n(p[d], o, { [d]: r[d] }, l);
272
272
  }
273
- if (n.required && a.required && r(a.required, i, {}, l), n.pattern && a.pattern && r(n.message, i, {}, l), n.enum && Array.isArray(n.enum) && a.enum) {
274
- const u = n.enum.join(", ");
275
- r(a.enum, i, { enum: u }, l);
273
+ if (r.required && a.required && n(a.required, o, {}, l), r.pattern && a.pattern && n(r.message, o, {}, l), r.enum && Array.isArray(r.enum) && a.enum) {
274
+ const f = r.enum.join(", ");
275
+ n(a.enum, o, { enum: f }, l);
276
276
  }
277
- }, r = (i, n, l, o) => {
278
- if (i)
277
+ }, n = (o, r, l, i) => {
278
+ if (o)
279
279
  try {
280
- let c;
281
- if (typeof i == "function") {
282
- const u = [n];
280
+ let u;
281
+ if (typeof o == "function") {
282
+ const f = [r];
283
283
  for (const p in l)
284
- u.push(l[p]);
285
- c = i.apply(null, u), c && o.push(c);
284
+ f.push(l[p]);
285
+ u = o.apply(null, f), u && i.push(u);
286
286
  } else {
287
- c = String(i);
288
- for (const u in l)
289
- c = c.replace(new RegExp(`\\$\\{${u}\\}`, "g"), l[u]);
290
- c = c.replace(/\$\{label\}/g, ""), c && o.push(c);
287
+ u = String(o);
288
+ for (const f in l)
289
+ u = u.replace(new RegExp(`\\$\\{${f}\\}`, "g"), l[f]);
290
+ u = u.replace(/\$\{label\}/g, ""), u && i.push(u);
291
291
  }
292
- } catch (c) {
293
- console.error("格式化验证消息出错:", c);
292
+ } catch (u) {
293
+ console.error("格式化验证消息出错:", u);
294
294
  }
295
295
  };
296
- return Object.keys(e).forEach((i) => {
297
- const n = e[i], l = [];
296
+ return Object.keys(e).forEach((o) => {
297
+ const r = e[o], l = [];
298
298
  try {
299
- s(i, n, l), Array.isArray(n) && n.forEach((c) => {
300
- c && typeof c == "object" && s(i, c, l);
301
- }), n && typeof n == "object" && "fields" in n;
302
- } catch (c) {
303
- console.error("处理验证规则出错:", c);
299
+ s(o, r, l), Array.isArray(r) && r.forEach((u) => {
300
+ u && typeof u == "object" && s(o, u, l);
301
+ }), r && typeof r == "object" && "fields" in r;
302
+ } catch (u) {
303
+ console.error("处理验证规则出错:", u);
304
304
  }
305
- const o = Array.from(new Set(l));
306
- i && o.length > 0 && t.push({
307
- field: i,
308
- rules: o
305
+ const i = Array.from(new Set(l));
306
+ o && i.length > 0 && t.push({
307
+ field: o,
308
+ rules: i
309
309
  });
310
310
  }), t;
311
- }, fe = async (e) => {
311
+ }, le = async (e) => {
312
312
  const t = e.formData.value, a = e.formRules.value;
313
- P(a) || (Ke(e), e.ruleValidator || (e.ruleValidator = new Ve({}), e.ruleValidator.messages(re.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
313
+ P(a) || (Ve(e), e.ruleValidator || (e.ruleValidator = new De({}), e.ruleValidator.messages(te.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
314
314
  }).catch(({ fields: s }) => s));
315
- }, Ft = async (e, t, a) => (a || (a = new Ve({}), a.messages(re.messages()), a.define(t)), a.validate(e).then(() => {
316
- }).catch(({ fields: s }) => s)), Ke = (e) => {
315
+ }, Ft = async (e, t, a) => (a || (a = new De({}), a.messages(te.messages()), a.define(t)), a.validate(e).then(() => {
316
+ }).catch(({ fields: s }) => s)), Ve = (e) => {
317
317
  e.ruleResults.value = void 0;
318
- }, W = () => {
319
- const e = Z(U.EditorControl, void 0), t = f(Z(U.LabelText, "")), a = f(Z(U.RuleKey, "")), s = Z(U.ErrInfo, void 0);
318
+ }, z = () => {
319
+ const e = X(N.EditorControl, void 0), t = c(X(N.LabelText, "")), a = c(X(N.RuleKey, "")), s = X(N.ErrInfo, void 0);
320
320
  return {
321
321
  editorCtrl: e,
322
322
  labelText: t,
323
323
  ruleKey: a,
324
324
  errInfo: s
325
325
  };
326
- }, Da = (e, t) => {
327
- let a = f({
326
+ }, _a = (e, t) => {
327
+ let a = c({
328
328
  msg: "",
329
329
  errClass: ""
330
330
  });
331
331
  if (!e.label || !e.rule)
332
332
  return a;
333
333
  const s = t == null ? void 0 : t.ruleResults;
334
- return b(
334
+ return I(
335
335
  () => s == null ? void 0 : s.value,
336
- (r) => {
337
- if (a.value.errClass = "", a.value.msg = "", !P(r)) {
338
- const i = Ua(
336
+ (n) => {
337
+ if (a.value.errClass = "", a.value.msg = "", !P(n)) {
338
+ const o = Da(
339
339
  {
340
340
  label: e.label,
341
341
  rule: e.rule
342
342
  },
343
343
  t == null ? void 0 : t.formRules.value,
344
- Ye(r)
344
+ Ye(n)
345
345
  );
346
- a.value.errClass = i.errClass.value, a.value.msg = i.msg.value;
346
+ a.value.errClass = o.errClass.value, a.value.msg = o.msg.value;
347
347
  }
348
348
  },
349
349
  { deep: !0 }
350
350
  ), a;
351
- }, Ua = (e, t, a) => {
352
- const s = f([]), r = f(""), i = f("");
351
+ }, Da = (e, t, a) => {
352
+ const s = c([]), n = c(""), o = c("");
353
353
  if (!e.rule || !t || !a)
354
- return { msg: r, ruleErrors: s, errClass: i };
355
- e.rule.split("|").forEach((o) => {
356
- if (o = o.trim(), o)
357
- if (a[o])
358
- s.value.push(...a[o]);
354
+ return { msg: n, ruleErrors: s, errClass: o };
355
+ e.rule.split("|").forEach((i) => {
356
+ if (i = i.trim(), i)
357
+ if (a[i])
358
+ s.value.push(...a[i]);
359
359
  else {
360
- const c = [];
361
- for (let u in a)
362
- u !== o && u.startsWith(o + ".") && c.push(...a[u]);
363
- c.length > 0 && s.value.push(...c);
360
+ const u = [];
361
+ for (let f in a)
362
+ f !== i && f.startsWith(i + ".") && u.push(...a[f]);
363
+ u.length > 0 && s.value.push(...u);
364
364
  }
365
365
  });
366
366
  const l = /\${\w+}/g;
367
- return s.value.forEach((o) => {
368
- r.value && (r.value += " / "), r.value += o.message.replace("${label}", e.label ?? "");
369
- const c = t[o.field];
370
- if (c) {
371
- const u = r.value.match(l);
372
- u && u.forEach((p) => {
367
+ return s.value.forEach((i) => {
368
+ n.value && (n.value += " / "), n.value += i.message.replace("${label}", e.label ?? "");
369
+ const u = t[i.field];
370
+ if (u) {
371
+ const f = n.value.match(l);
372
+ f && f.forEach((p) => {
373
373
  const m = p.replace("${", "").replace("}", "");
374
- r.value = r.value.replace(p, c[m] ?? "");
374
+ n.value = n.value.replace(p, u[m] ?? "");
375
375
  });
376
376
  }
377
- }), s.value.length > 0 && (i.value = "error"), { msg: r, ruleErrors: s, errClass: i };
377
+ }), s.value.length > 0 && (o.value = "error"), { msg: n, ruleErrors: s, errClass: o };
378
378
  }, Mt = (e, t) => {
379
- Oe(U.LabelText, e.label || ""), Oe(U.RuleKey, e.rule || "");
380
- const a = Da(e, t);
381
- return Oe(U.ErrInfo, a), a;
379
+ Te(N.LabelText, e.label || ""), Te(N.RuleKey, e.rule || "");
380
+ const a = _a(e, t);
381
+ return Te(N.ErrInfo, a), a;
382
382
  }, $t = (e) => {
383
383
  ea(e);
384
384
  }, Nt = (e) => {
385
385
  const t = e.page, a = e.formData.value;
386
386
  a[e.primaryKey ?? t.primaryKey] = null, ea(e);
387
- }, Dt = (e) => {
388
- Qe(e), e.visible.value = !1;
387
+ }, _t = (e) => {
388
+ He(e), e.visible.value = !1;
389
389
  }, ea = async (e) => {
390
390
  var s;
391
391
  const t = e.page;
392
- if (e.isFormSaving.value = !0, Ke(e), e.beforeSave && e.beforeSave() === !1)
392
+ if (e.isFormSaving.value = !0, Ve(e), e.beforeSave && e.beforeSave() === !1)
393
393
  return e.isFormSaving.value = !1, Promise.resolve();
394
- if (e.formRules.value && await fe(e), e.ruleResults.value)
394
+ if (e.formRules.value && await le(e), e.ruleResults.value)
395
395
  return x.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
396
396
  const a = e.formData.value;
397
397
  return Ze(
@@ -411,130 +411,130 @@ const kt = (e) => {
411
411
  // 隐藏自动错误提示,特殊判断控制
412
412
  loadingState: e.isFormSaving
413
413
  }
414
- ).then((r) => {
415
- var i, n;
416
- if ((r == null ? void 0 : r.status) === T.SUCCESS)
414
+ ).then((n) => {
415
+ var o, r;
416
+ if ((n == null ? void 0 : n.status) === R.SUCCESS)
417
417
  x.success("保存成功!"), e.grid && (e.grid.reload.value = !0), e.afterSave && e.afterSave(), e.autoClose !== !1 && (e.visible.value = !1);
418
- else if (r != null && r.msg && ((i = r == null ? void 0 : r.msg) == null ? void 0 : i.indexOf("Duplicate entry")) > -1) {
419
- const l = (n = r == null ? void 0 : r.msg) == null ? void 0 : n.match(/Duplicate entry '([^']+)' for key '([^']+)'/);
418
+ else if (n != null && n.msg && ((o = n == null ? void 0 : n.msg) == null ? void 0 : o.indexOf("Duplicate entry")) > -1) {
419
+ const l = (r = n == null ? void 0 : n.msg) == null ? void 0 : r.match(/Duplicate entry '([^']+)' for key '([^']+)'/);
420
420
  if (l && l.length > 2 && l[1] && l[2]) {
421
- const o = l[1], c = l[2].replace(/Idx_/g, "").split("_"), u = e.formRules.value;
422
- if (u && c.length > 0) {
421
+ const i = l[1], u = l[2].replace(/Idx_/g, "").split("_"), f = e.formRules.value;
422
+ if (f && u.length > 0) {
423
423
  const p = {};
424
- c.forEach((m) => {
425
- u[m] && (p[m] = [
424
+ u.forEach((m) => {
425
+ f[m] && (p[m] = [
426
426
  {
427
427
  field: m,
428
- fieldValue: o,
428
+ fieldValue: i,
429
429
  message: "数据重复"
430
430
  }
431
431
  ]);
432
432
  }), Object.keys(p).length > 0 && (console.error("保存失败!", p), e.ruleResults.value = p);
433
433
  }
434
- x.error(`保存失败!数据 \`${o}\` 已存在!`);
435
- } else x.error((r == null ? void 0 : r.msg) ?? "保存失败!");
434
+ x.error(`保存失败!数据 \`${i}\` 已存在!`);
435
+ } else x.error((n == null ? void 0 : n.msg) ?? "保存失败!");
436
436
  } else
437
- x.error((r == null ? void 0 : r.msg) ?? "保存失败!");
437
+ x.error((n == null ? void 0 : n.msg) ?? "保存失败!");
438
438
  });
439
- }, Ut = async (e) => {
439
+ }, Dt = async (e) => {
440
440
  const t = e.page, a = e.grid;
441
441
  e.isFormLoading.value = !0;
442
- const s = e.formData.value, r = e.primaryKey ?? t.primaryKey;
443
- return oa(a, { [r]: s[r] }, e.detailUrl).then((i) => {
444
- e.isFormLoading.value = !1, i && aa(e, i);
442
+ const s = e.formData.value, n = e.primaryKey ?? t.primaryKey;
443
+ return ia(a, { [n]: s[n] }, e.detailUrl).then((o) => {
444
+ e.isFormLoading.value = !1, o && aa(e, o);
445
445
  });
446
- }, _t = (e) => {
446
+ }, Ut = (e) => {
447
447
  const t = e.grid;
448
- t && (t.rowData.value = void 0), e && (Qe(e), e.visible && (e.visible.value = !1), setTimeout(() => {
448
+ t && (t.rowData.value = void 0), e && (He(e), e.visible && (e.visible.value = !1), setTimeout(() => {
449
449
  e.visible.value = !0;
450
450
  }, 1));
451
451
  }, aa = (e, t) => {
452
- Qe(e);
452
+ He(e);
453
453
  const a = { ...e.formData.value, ...t };
454
454
  e.formData.value = JSON.parse(JSON.stringify(a));
455
- }, Qe = (e) => {
456
- e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Ke(e);
457
- }, be = "/login/", ge = [], _a = (e) => {
455
+ }, He = (e) => {
456
+ e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Ve(e);
457
+ }, ge = "/login/", he = [], Ua = (e) => {
458
458
  for (const t of e) {
459
- const a = ge.findIndex((s) => s.path === t.path);
460
- a !== -1 && ge.splice(a, 1), ge.push(t), ne.addRoute(t);
459
+ const a = he.findIndex((s) => s.path === t.path);
460
+ a !== -1 && he.splice(a, 1), he.push(t), se.addRoute(t);
461
461
  }
462
462
  }, ta = (e, t, a, s = "") => {
463
- const r = s + (s ? "/" : "") + e.path;
464
- t[r] = { ...e, parent: a }, e.children && e.children.forEach((i) => ta(i, t, e, r));
465
- }, ne = La({
463
+ const n = s + (s ? "/" : "") + e.path;
464
+ t[n] = { ...e, parent: a }, e.children && e.children.forEach((o) => ta(o, t, e, n));
465
+ }, se = La({
466
466
  history: Fa("/"),
467
- routes: ge
467
+ routes: he
468
468
  }), Va = (e, t) => {
469
- var r, i;
470
- const a = ((r = e.meta) == null ? void 0 : r.roles) ?? [], s = (i = e.meta) == null ? void 0 : i.permission;
469
+ var n, o;
470
+ const a = ((n = e.meta) == null ? void 0 : n.roles) ?? [], s = (o = e.meta) == null ? void 0 : o.permission;
471
471
  if (!t)
472
472
  return a.length === 0 && !s;
473
473
  if (t) {
474
- const n = J();
475
- if (ye.VITE_PERMISSION_MODE === "role")
476
- return a.length === 0 ? !0 : n.hasRole(a);
477
- if (ye.VITE_PERMISSION_MODE === "permit") {
474
+ const r = K();
475
+ if (me.VITE_PERMISSION_MODE === "role")
476
+ return a.length === 0 ? !0 : r.hasRole(a);
477
+ if (me.VITE_PERMISSION_MODE === "permit") {
478
478
  if (a.length === 0 && !s)
479
479
  return !0;
480
- let l = !1, o = !1;
481
- return a.length > 0 && (l = n.hasRole(a)), s && (o = n.hasPermit(e.path, ":page")), l || o;
480
+ let l = !1, i = !1;
481
+ return a.length > 0 && (l = r.hasRole(a)), s && (i = r.hasPermit(e.path, ":page")), l || i;
482
482
  }
483
483
  }
484
484
  return !1;
485
- }, ee = f(null);
486
- ne.beforeEach((e, t, a) => {
485
+ }, Z = c(null);
486
+ se.beforeEach((e, t, a) => {
487
487
  var l;
488
488
  const s = e;
489
- if (e.path.startsWith("/error/") || e.path.startsWith(be))
489
+ if (e.path.startsWith("/error/") || e.path.startsWith(ge))
490
490
  return a();
491
- const r = s.meta, n = ((r == null ? void 0 : r.roles) ?? []).length > 0 || ((l = r == null ? void 0 : r.permission) == null ? void 0 : l.length);
491
+ const n = s.meta, r = ((n == null ? void 0 : n.roles) ?? []).length > 0 || ((l = n == null ? void 0 : n.permission) == null ? void 0 : l.length);
492
492
  if (e.path === "/") {
493
- const o = V();
494
- if (!o.menuLoaded) {
495
- ee.value = {
493
+ const i = D();
494
+ if (!i.menuLoaded) {
495
+ Z.value = {
496
496
  to: e,
497
- next: (c) => {
498
- a({ path: c });
497
+ next: (u) => {
498
+ a({ path: u });
499
499
  }
500
500
  };
501
501
  return;
502
502
  }
503
- o.toDefaultApp();
503
+ i.toDefaultApp();
504
504
  return;
505
505
  }
506
- if (!n)
506
+ if (!r)
507
507
  a();
508
508
  else {
509
- const o = J();
510
- if (!o.isLogin)
511
- a({ path: be });
509
+ const i = K();
510
+ if (!i.isLogin)
511
+ a({ path: ge });
512
512
  else {
513
- if (!V().menuLoaded) {
514
- ee.value = {
513
+ if (!D().menuLoaded) {
514
+ Z.value = {
515
515
  to: e,
516
516
  next: a
517
517
  };
518
518
  return;
519
519
  }
520
- const u = Va(s, o.isLogin);
520
+ const f = Va(s, i.isLogin);
521
521
  a();
522
522
  }
523
523
  }
524
524
  });
525
525
  const Ha = (e) => {
526
- if (ee.value) {
527
- const { to: t, next: a } = ee.value;
528
- ee.value = null, t.path === "/" ? a(e) : a(t.path);
526
+ if (Z.value) {
527
+ const { to: t, next: a } = Z.value;
528
+ Z.value = null, t.path === "/" ? a(e) : a(t.path);
529
529
  }
530
530
  }, Ka = (e) => {
531
- const t = Je();
531
+ const t = Ke();
532
532
  if (t.TabEnabled) {
533
533
  if (Qa(e.key, t.TabPanes))
534
534
  return;
535
535
  t.TabPanes.push(e);
536
536
  }
537
- }, Qa = (e, t) => t.find((a) => a.key === e), Je = ue("pageInfo", {
537
+ }, Qa = (e, t) => t.find((a) => a.key === e), Ke = oe("pageInfo", {
538
538
  state: () => ({
539
539
  TabActive: "",
540
540
  TabPanes: [],
@@ -547,16 +547,16 @@ const Ha = (e) => {
547
547
  */
548
548
  removeTabPane(e) {
549
549
  if (this.TabEnabled) {
550
- V().excludeComponent(e);
550
+ D().excludeComponent(e);
551
551
  let a = 0, s = [...this.TabPanes];
552
- for (let r = 0; r < s.length; r++)
553
- if (s[r].key === e) {
554
- s.splice(r, 1), a = r - 1 < 0 ? 0 : r - 1;
552
+ for (let n = 0; n < s.length; n++)
553
+ if (s[n].key === e) {
554
+ s.splice(n, 1), a = n - 1 < 0 ? 0 : n - 1;
555
555
  break;
556
556
  }
557
- for (let r = 0; r < s.length; r++)
558
- if (s[r].key === this.TabActive) {
559
- a = r;
557
+ for (let n = 0; n < s.length; n++)
558
+ if (s[n].key === this.TabActive) {
559
+ a = n;
560
560
  break;
561
561
  }
562
562
  this.TabPanes = s, this.setTabActive(s[a].key);
@@ -568,7 +568,7 @@ const Ha = (e) => {
568
568
  * @returns
569
569
  */
570
570
  async setTabActive(e) {
571
- let a = V().findRoute(e);
571
+ let a = D().findRoute(e);
572
572
  if (!a) return;
573
573
  const s = {
574
574
  key: e,
@@ -591,32 +591,32 @@ const Ha = (e) => {
591
591
  loadingText: !1
592
592
  }
593
593
  }, Pe = /* @__PURE__ */ new Map(), Ga = (e) => {
594
- const t = J(), { roles: a, permission: s } = e.meta || {};
594
+ const t = K(), { roles: a, permission: s } = e.meta || {};
595
595
  if (P(a) && P(s))
596
596
  return !0;
597
- if (ye.VITE_PERMISSION_MODE === "role")
597
+ if (me.VITE_PERMISSION_MODE === "role")
598
598
  return P(a) ? !0 : t.hasRole(a);
599
- if (ye.VITE_PERMISSION_MODE === "permit") {
600
- let r = !1, i = !1;
601
- return P(a) || (r = t.hasRole(a)), t.isAdmin() ? r : (P(s) || (i = t.hasPermit(e.path, s)), r || i);
599
+ if (me.VITE_PERMISSION_MODE === "permit") {
600
+ let n = !1, o = !1;
601
+ return P(a) || (n = t.hasRole(a)), t.isAdmin() ? n : (P(s) || (o = t.hasPermit(e.path, s)), n || o);
602
602
  }
603
603
  return !1;
604
604
  }, sa = (e) => e.map((t) => {
605
605
  const a = { ...t };
606
606
  return Ga(a) ? (a.children && (a.children = sa(a.children)), a) : null;
607
- }).filter(Boolean), ra = (e, t = "") => {
607
+ }).filter(Boolean), na = (e, t = "") => {
608
608
  for (const a of e) {
609
609
  if (!a.children && !a.redirect) {
610
610
  let s = t + a.path;
611
611
  return s.startsWith("/") || (s = "/" + s), s;
612
612
  }
613
613
  if (a.children && a.children.length > 0 && a.path !== "/error" && a.path !== "/login" && a.path !== "/:page(.*)") {
614
- const s = ra(a.children, t + a.path + "/");
614
+ const s = na(a.children, t + a.path + "/");
615
615
  if (s)
616
616
  return s;
617
617
  }
618
618
  }
619
- }, V = ue("appInfo", {
619
+ }, D = oe("appInfo", {
620
620
  state: () => ({
621
621
  appInfo: {
622
622
  Id: "",
@@ -650,13 +650,13 @@ const Ha = (e) => {
650
650
  });
651
651
  },
652
652
  async getRemoteAppList() {
653
- return G(Ja.appList, {
653
+ return Q(Ja.appList, {
654
654
  Query: {
655
655
  AppCode: this.appInfo.AppCode,
656
656
  Enabled: 1
657
657
  }
658
658
  }).then((e) => {
659
- (e == null ? void 0 : e.status) === T.SUCCESS && e.data && (this.appList.length = 0, this.appList.push(...e.data));
659
+ (e == null ? void 0 : e.status) === R.SUCCESS && e.data && (this.appList.length = 0, this.appList.push(...e.data));
660
660
  });
661
661
  },
662
662
  async toDefaultApp(e) {
@@ -667,14 +667,14 @@ const Ha = (e) => {
667
667
  let t = "";
668
668
  const a = window.location.pathname.split("/");
669
669
  if (a.length > 1) {
670
- for (let r = a.length - 1; r >= 0; r--)
671
- if (a[r] !== "") {
672
- t = a[r];
670
+ for (let n = a.length - 1; n >= 0; n--)
671
+ if (a[n] !== "") {
672
+ t = a[n];
673
673
  break;
674
674
  }
675
675
  }
676
676
  let s = null;
677
- t && t != "login" ? s = this.appList.find((r) => r.AppCode === t) : s = this.appList.find((r) => r.Default), t = s ? s.AppCode : this.appList[0].AppCode, await this.setActiveApp(t), (!e || e.startsWith("/#/") || e.includes("/error/") || window.location.hash.includes("/error/")) && this.push(this.appInfo.defaultPage);
677
+ t && t != "login" ? s = this.appList.find((n) => n.AppCode === t) : s = this.appList.find((n) => n.Default), t = s ? s.AppCode : this.appList[0].AppCode, await this.setActiveApp(t), (!e || e.startsWith("/#/") || e.includes("/error/") || window.location.hash.includes("/error/")) && this.push(this.appInfo.defaultPage);
678
678
  },
679
679
  /**
680
680
  * 设置当前应用
@@ -689,7 +689,7 @@ const Ha = (e) => {
689
689
  flattenRoutes: {},
690
690
  Routes: t ?? [],
691
691
  defaultPage: ""
692
- }), (!Se() || !wa()) && (await J().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
692
+ }), (!ve() || !wa()) && (await K().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
693
693
  },
694
694
  /**
695
695
  * 设置当前应用路由信息
@@ -708,12 +708,12 @@ const Ha = (e) => {
708
708
  if (Object.keys(t).forEach((a) => {
709
709
  const s = t[a];
710
710
  s.children || !s.component || (s.meta && s.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
711
- }), J().isLogin) {
711
+ }), K().isLogin) {
712
712
  const a = sa(this.appInfo.Routes);
713
- if (_a(a), this.appInfo.defaultPage = ra(a) || "", this.appInfo.defaultPage) {
714
- if (this.menuLoaded = !0, D.value && D.value.mainAppPush) {
713
+ if (Ua(a), this.appInfo.defaultPage = na(a) || "", this.appInfo.defaultPage) {
714
+ if (this.menuLoaded = !0, $.value && $.value.mainAppPush) {
715
715
  const s = this.formatRoute(this.appInfo.defaultPage);
716
- D.value.mainAppPush(s);
716
+ $.value.mainAppPush(s);
717
717
  }
718
718
  Ha(this.appInfo.defaultPage);
719
719
  }
@@ -733,10 +733,10 @@ const Ha = (e) => {
733
733
  * @param path 路由地址
734
734
  */
735
735
  push(e) {
736
- this.findRoute(e) && Je().setTabActive(e), ma(() => {
737
- if (ne.push({ path: e }), D.value && D.value.mainAppPush) {
736
+ this.findRoute(e) && Ke().setTabActive(e), ma(() => {
737
+ if (se.push({ path: e }), $.value && $.value.mainAppPush) {
738
738
  const a = this.formatRoute(e);
739
- D.value.mainAppPush(a);
739
+ $.value.mainAppPush(a);
740
740
  }
741
741
  });
742
742
  },
@@ -804,11 +804,11 @@ const Ha = (e) => {
804
804
  }, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
805
805
  },
806
806
  logout() {
807
- this.clean(), ne.push({ path: be + "#/" }), Se() && D.value && D.value.mainAppPush && D.value.mainAppPush(be + "#/");
807
+ this.clean(), se.push({ path: ge + "#/" }), ve() && $.value && $.value.mainAppPush && $.value.mainAppPush(ge + "#/");
808
808
  }
809
809
  },
810
810
  persist: !1
811
- }), na = "Token解析失败", ze = "登录过期,请重新登录", Ge = {
811
+ }), ra = "Token解析失败", ze = "登录过期,请重新登录", Qe = {
812
812
  login: {
813
813
  api: "PLATFORM_API",
814
814
  url: "/openapi/LoginSrv/login",
@@ -833,26 +833,26 @@ const Ha = (e) => {
833
833
  },
834
834
  Query: e
835
835
  };
836
- return G(Ge.login, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a : null);
836
+ return Q(Qe.login, t).then((a) => (a == null ? void 0 : a.status) === R.SUCCESS ? a : null);
837
837
  }, qa = (e) => {
838
838
  let t = {
839
839
  Query: {
840
840
  AppId: e
841
841
  }
842
842
  };
843
- return G(Ge.auth, t).then((a) => (a == null ? void 0 : a.status) === T.SUCCESS ? a.data : (x.error("获取授权信息失败," + (a == null ? void 0 : a.msg)), null));
843
+ return Q(Qe.auth, t).then((a) => (a == null ? void 0 : a.status) === R.SUCCESS ? a.data : (x.error("获取授权信息失败," + (a == null ? void 0 : a.msg)), null));
844
844
  }, Ba = () => {
845
845
  let e = {
846
846
  Option: {},
847
847
  Query: {}
848
848
  };
849
- return G(Ge.logout, e).then((t) => (t == null ? void 0 : t.status) === T.SUCCESS ? t.data : null);
849
+ return Q(Qe.logout, e).then((t) => (t == null ? void 0 : t.status) === R.SUCCESS ? t.data : null);
850
850
  }, za = (e) => {
851
851
  try {
852
852
  const a = JSON.parse(atob(e.split(".")[1])).exp;
853
853
  return Date.now() / 1e3 > a;
854
854
  } catch (t) {
855
- return console.error(na, t), !0;
855
+ return console.error(ra, t), !0;
856
856
  }
857
857
  }, ke = (e, t) => e == "" ? (x.error(ze, {
858
858
  duration: 3e3,
@@ -860,14 +860,14 @@ const Ha = (e) => {
860
860
  }), !1) : za(e) ? (x.error(ze, {
861
861
  duration: 3e3,
862
862
  onClose: t
863
- }), !1) : !0, Wa = (e) => {
863
+ }), !1) : !0, Ca = (e) => {
864
864
  try {
865
865
  const t = JSON.parse(atob(e.token.split(".")[1]));
866
866
  return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
867
867
  } catch (t) {
868
- return console.error(na, t), !1;
868
+ return console.error(ra, t), !1;
869
869
  }
870
- }, k = f(""), X = f(null), J = ue("userInfo", {
870
+ }, k = c(""), Y = c(null), K = oe("userInfo", {
871
871
  state: () => ({
872
872
  isLogin: !1,
873
873
  userInfo: {
@@ -885,7 +885,7 @@ const Ha = (e) => {
885
885
  * 启动时初始化用户信息
886
886
  */
887
887
  init() {
888
- Se() || (this.token ? (ke(this.token, () => this.clean()), me(this.token), k.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
888
+ ve() || (this.token ? (ke(this.token, () => this.clean()), pe(this.token), k.value = this.userInfo.UserLevel, this.isLogin = !0) : this.clean());
889
889
  },
890
890
  /**
891
891
  * 登录操作
@@ -899,17 +899,17 @@ const Ha = (e) => {
899
899
  if (s.errno)
900
900
  return s;
901
901
  {
902
- const r = a.data;
903
- if (this.token = r.token, me(this.token), this.isLogin = !0, Wa(r))
902
+ const n = a.data;
903
+ if (this.token = n.token, pe(this.token), this.isLogin = !0, Ca(n))
904
904
  this.userInfo = {
905
905
  ...this.userInfo,
906
- ...r.UserInfo
907
- }, k.value = r.UserInfo.UserLevel;
906
+ ...n.UserInfo
907
+ }, k.value = n.UserInfo.UserLevel;
908
908
  else {
909
909
  x.error("用户信息解析失败");
910
910
  return;
911
911
  }
912
- t && V().toDefaultApp();
912
+ t && D().toDefaultApp();
913
913
  }
914
914
  }
915
915
  },
@@ -921,11 +921,11 @@ const Ha = (e) => {
921
921
  async getRolePermits(e) {
922
922
  if (!this.isLogin || !this.token)
923
923
  return !1;
924
- if (X.value && X.value.appId === e)
924
+ if (Y.value && Y.value.appId === e)
925
925
  return !0;
926
926
  try {
927
927
  const t = await qa(e);
928
- return t ? (X.value = {
928
+ return t ? (Y.value = {
929
929
  appId: e,
930
930
  permits: t.permits || [],
931
931
  lastTime: t.lastTime
@@ -950,7 +950,7 @@ const Ha = (e) => {
950
950
  */
951
951
  hasPermit(e, t) {
952
952
  var s;
953
- const a = X.value;
953
+ const a = Y.value;
954
954
  return !a || !a.permits ? !1 : ((s = a.permits[e]) == null ? void 0 : s.includes(t)) ?? !1;
955
955
  },
956
956
  /**
@@ -974,7 +974,7 @@ const Ha = (e) => {
974
974
  k.value || (k.value = e.UserLevel, this.userInfo = {
975
975
  ...this.userInfo,
976
976
  ...e
977
- }, this.token = t, me(this.token), this.isLogin = !0);
977
+ }, this.token = t, pe(this.token), this.isLogin = !0);
978
978
  },
979
979
  /**
980
980
  * 获取用户Token
@@ -1014,7 +1014,7 @@ const Ha = (e) => {
1014
1014
  Code: "",
1015
1015
  TenantId: "",
1016
1016
  UserLevel: ""
1017
- }, this.token = "", me(this.token), this.isLogin = !1, X.value = null, k.value = "", V().clean(), Promise.resolve();
1017
+ }, this.token = "", pe(this.token), this.isLogin = !1, Y.value = null, k.value = "", D().clean(), Promise.resolve();
1018
1018
  },
1019
1019
  /**
1020
1020
  * 登出操作
@@ -1029,13 +1029,13 @@ const Ha = (e) => {
1029
1029
  await this.clean(), setTimeout(async () => {
1030
1030
  x.success("已退出登录");
1031
1031
  }, 1e3), setTimeout(async () => {
1032
- V().logout();
1032
+ D().logout();
1033
1033
  }, 2e3);
1034
1034
  }
1035
1035
  return Promise.resolve();
1036
1036
  }
1037
1037
  },
1038
- persist: Se() ? !1 : {
1038
+ persist: ve() ? !1 : {
1039
1039
  key: "MICROAPP_USER_INFO",
1040
1040
  storage: localStorage,
1041
1041
  pick: ["token", "userInfo"],
@@ -1045,9 +1045,9 @@ const Ha = (e) => {
1045
1045
  }
1046
1046
  }
1047
1047
  }), Vt = (e, t) => {
1048
- const a = J();
1048
+ const a = K();
1049
1049
  return e.filter((s) => {
1050
- if (s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(ne.currentRoute.value.path, s.permit))
1050
+ if (s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(se.currentRoute.value.path, s.permit))
1051
1051
  return !1;
1052
1052
  if (!t) {
1053
1053
  if (s.visible === !1)
@@ -1059,26 +1059,26 @@ const Ha = (e) => {
1059
1059
  });
1060
1060
  }, Ht = (e, t) => {
1061
1061
  const a = t == null ? void 0 : t.filter((s) => {
1062
- const r = e.find(
1063
- (i) => i.dataIndex === s.dataIndex || i.key === s.key || i.title === s.title
1062
+ const n = e.find(
1063
+ (o) => o.dataIndex === s.dataIndex || o.key === s.key || o.title === s.title
1064
1064
  );
1065
- return r ? { ...s, ...r } : !1;
1065
+ return n ? { ...s, ...n } : !1;
1066
1066
  });
1067
1067
  return [...a || [], ...e.filter((s) => !(a != null && a.includes(s)))];
1068
- }, Ca = (e) => (e.remotePage = !1, ia(e).then((t) => t.rows)), ia = (e) => {
1068
+ }, Wa = (e) => (e.remotePage = !1, oa(e).then((t) => t.rows)), oa = (e) => {
1069
1069
  e.gridQuery || (e.gridQuery = {});
1070
1070
  const t = e.remotePage ? "find" : "list";
1071
- return He(e, {
1071
+ return Ue(e, {
1072
1072
  urlKey: t,
1073
1073
  url: e.gridUrl,
1074
1074
  params: e.gridQuery,
1075
1075
  loadingState: e.isGridLoading,
1076
1076
  processParams: (a) => {
1077
- var r;
1078
- return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), _e((r = e.gridUrl) == null ? void 0 : r.params, a, e.gridQuery);
1077
+ var n;
1078
+ return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), xe((n = e.gridUrl) == null ? void 0 : n.params, a, e.gridQuery);
1079
1079
  }
1080
1080
  }).then((a) => {
1081
- if ((a == null ? void 0 : a.status) === T.SUCCESS) {
1081
+ if ((a == null ? void 0 : a.status) === R.SUCCESS) {
1082
1082
  let s = a.data;
1083
1083
  return s.rows ? (e.tableData.value = s.rows, e.total.value = s.total) : (e.tableData.value = a.data, e.total.value = a.data.length, s = {
1084
1084
  total: e.total.value,
@@ -1099,7 +1099,7 @@ const Ha = (e) => {
1099
1099
  },
1100
1100
  loadingState: e.isGridSaving,
1101
1101
  ...a
1102
- }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && setTimeout(() => {
1102
+ }).then((s) => ((s == null ? void 0 : s.status) === R.SUCCESS && setTimeout(() => {
1103
1103
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
1104
1104
  }, 50), s)), Kt = (e, t) => {
1105
1105
  const a = {};
@@ -1107,21 +1107,21 @@ const Ha = (e) => {
1107
1107
  loadingText: !1,
1108
1108
  hideErrorToast: !0
1109
1109
  });
1110
- }, oa = async (e, t, a) => await He(e, {
1110
+ }, ia = async (e, t, a) => await Ue(e, {
1111
1111
  urlKey: "detail",
1112
1112
  url: a,
1113
1113
  params: t,
1114
1114
  loadingState: e.isGridLoading
1115
1115
  }), Qt = (e, t) => {
1116
1116
  const a = t;
1117
- return oa(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === T.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1117
+ return ia(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === R.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1118
1118
  }, Jt = (e, t) => {
1119
1119
  let a = e.editor;
1120
1120
  e.rowData.value = t, a && (aa(a, t), a.visible.value = !0);
1121
1121
  }, Gt = (e, t) => $a(e, t, {
1122
1122
  url: e.deleteUrl,
1123
1123
  primaryKey: e.primaryKey
1124
- }).then((a) => ((a == null ? void 0 : a.status) === T.SUCCESS && setTimeout(() => {
1124
+ }).then((a) => ((a == null ? void 0 : a.status) === R.SUCCESS && setTimeout(() => {
1125
1125
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
1126
1126
  }, 50), a));
1127
1127
  var $e = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))($e || {});
@@ -1171,63 +1171,63 @@ class Xa {
1171
1171
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1172
1172
  }
1173
1173
  }
1174
- const q = new Xa(), Y = (e, t) => {
1175
- if (e.inputFactory && (t != null && t.reloadEvent)) {
1176
- const a = e.inputFactory.value;
1177
- a.reloadHandler = (s, r) => {
1178
- Za(e.url, e, r, e.options);
1179
- }, q.on(t.reloadEvent, a.reloadHandler);
1174
+ const j = new Xa(), W = (e, t, a) => {
1175
+ if (t.inputFactory && (a != null && a.reloadEvent)) {
1176
+ const s = t.inputFactory.value;
1177
+ s.reloadHandler = (n, o) => {
1178
+ Za(t.url, t, o);
1179
+ }, j.on(a.reloadEvent, s.reloadHandler);
1180
1180
  }
1181
- if (t != null && t.data)
1182
- b(
1183
- () => t.data,
1181
+ if (a != null && a.data)
1182
+ I(
1183
+ () => a.data,
1184
1184
  () => {
1185
- je(e, t.data, e.options, !0);
1185
+ Je(t, a.data, !0);
1186
1186
  },
1187
1187
  { deep: !0, immediate: !0 }
1188
1188
  );
1189
- else if (e.url && e.url.url)
1190
- e.autoload !== !1 && la(e.url, e, e.params ?? {}, e.options);
1189
+ else if (t.url && t.url.url)
1190
+ e && la(t.url, t, t.params ?? {});
1191
1191
  else {
1192
- const a = f(Z(U.LabelText, ""));
1193
- x.error("`" + a.value + "` 未配置选项数据!", {
1192
+ const s = c(X(N.LabelText, ""));
1193
+ x.error("`" + s.value + "` 未配置选项数据!", {
1194
1194
  duration: 5e3
1195
1195
  });
1196
1196
  }
1197
- }, je = (e, t, a, s) => {
1198
- if (s) {
1199
- const r = {
1197
+ }, Je = (e, t, a) => {
1198
+ if (a) {
1199
+ const s = {
1200
1200
  ...e.fieldMap
1201
1201
  };
1202
- t = Pa(r, t);
1202
+ t = Pa(s, t);
1203
1203
  }
1204
1204
  t = JSON.parse(JSON.stringify(t ?? [])), e.all && t.unshift({
1205
1205
  label: "全部",
1206
1206
  value: e.allValue ?? void 0
1207
- }), a.value = t;
1208
- }, Za = (e, t, a, s) => {
1209
- Array.isArray(a) ? je(t, a, s, !0) : la(e, t, a, s);
1210
- }, pe = (e, t) => {
1207
+ }), e.options.value = t;
1208
+ }, Za = (e, t, a) => {
1209
+ Array.isArray(a) ? Je(t, a, !0) : la(e, t, a);
1210
+ }, ue = (e, t) => {
1211
1211
  var a;
1212
- (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && q.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1213
- }, la = (e, t, a, s) => {
1214
- const r = JSON.parse(JSON.stringify(e.params ?? {})), i = JSON.parse(JSON.stringify(t.params ?? {})), n = _e(r, i, a);
1215
- et(e, t, t.fieldMap, n).then((l) => {
1216
- je(t, l, s, !1);
1212
+ (a = e.inputFactory) != null && a.value && t.reloadEvent && e.inputFactory.value.reloadHandler && j.off(t.reloadEvent, e.inputFactory.value.reloadHandler);
1213
+ }, la = (e, t, a) => {
1214
+ const s = JSON.parse(JSON.stringify(e.params ?? {})), n = JSON.parse(JSON.stringify(t.params ?? {})), o = xe(s, n, a);
1215
+ et(e, t, t.fieldMap, o).then((r) => {
1216
+ Je(t, r, !1);
1217
1217
  });
1218
1218
  }, et = (e, t, a, s) => {
1219
- const { fieldMap: r, ...i } = e, l = {
1219
+ const { fieldMap: n, ...o } = e, l = {
1220
1220
  ...{
1221
1221
  url: "",
1222
1222
  cacheTime: 6e4,
1223
1223
  fieldMap: {
1224
- ...a,
1225
- ...e.fieldMap
1224
+ ...e.fieldMap,
1225
+ ...a
1226
1226
  }
1227
1227
  },
1228
- ...i
1228
+ ...o
1229
1229
  };
1230
- return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.isOptionLoading.value = !0, G(l, s).then((o) => (o == null ? void 0 : o.status) === T.SUCCESS && o.data ? o.data : []).finally(() => {
1230
+ return l.loadingText = !1, s || (s = {}), s.Query || (s.Query = {}), t.optionQuery = s, t.isOptionLoading.value = !0, Q(l, s).then((i) => (i == null ? void 0 : i.status) === R.SUCCESS && i.data ? i.data : []).finally(() => {
1231
1231
  t.isOptionLoading.value = !1;
1232
1232
  });
1233
1233
  }, at = (e, t) => {
@@ -1235,12 +1235,12 @@ const q = new Xa(), Y = (e, t) => {
1235
1235
  return Array.isArray(e) ? t.filter((a) => e.includes(a.value)) : t.find((a) => a.value === e);
1236
1236
  }, Le = (e, t, a) => {
1237
1237
  const s = t.split(".");
1238
- let r = e;
1239
- for (let i = 0; i < s.length - 1; i++) {
1240
- const n = s[i];
1241
- r[n] || (r[n] = {}), r = r[n];
1238
+ let n = e;
1239
+ for (let o = 0; o < s.length - 1; o++) {
1240
+ const r = s[o];
1241
+ n[r] || (n[r] = {}), n = n[r];
1242
1242
  }
1243
- r[s[s.length - 1]] = a;
1243
+ n[s[s.length - 1]] = a;
1244
1244
  }, ua = (e, t, a) => {
1245
1245
  if (a == null) {
1246
1246
  Object.entries(t).forEach(([s]) => {
@@ -1248,47 +1248,47 @@ const q = new Xa(), Y = (e, t) => {
1248
1248
  });
1249
1249
  return;
1250
1250
  }
1251
- Array.isArray(a) || Object.entries(t).forEach(([s, r]) => {
1252
- if (r.includes("${")) {
1253
- const i = Me(r, a);
1254
- Le(e, s, i);
1251
+ Array.isArray(a) || Object.entries(t).forEach(([s, n]) => {
1252
+ if (n.includes("${")) {
1253
+ const o = Me(n, a);
1254
+ Le(e, s, o);
1255
1255
  } else
1256
- Le(e, s, a[r]);
1256
+ Le(e, s, a[n]);
1257
1257
  });
1258
- }, Re = (e, t, a) => {
1259
- var i, n;
1260
- const s = (i = e.inputFactory) == null ? void 0 : i.value;
1261
- s != null && s.editorCtrl && ((n = s.errInfo) != null && n.value.errClass) && fe(s.editorCtrl);
1262
- const r = at(a, e.options.value);
1263
- if (t.formData && t.outFields && ua(t.formData, t.outFields, r), t.changeEvent) {
1264
- const [l, o] = t.changeEvent;
1265
- if (o)
1258
+ }, Oe = (e, t, a) => {
1259
+ var o, r;
1260
+ const s = (o = e.inputFactory) == null ? void 0 : o.value;
1261
+ s != null && s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && le(s.editorCtrl), e.selected.value = a;
1262
+ const n = at(a, e.options.value);
1263
+ if (e.selectedOptions.value = n, t.formData && t.outFields && ua(t.formData, t.outFields, n), t.changeEvent) {
1264
+ const [l, i] = t.changeEvent;
1265
+ if (i)
1266
1266
  if (Array.isArray(l))
1267
- l.every((c) => {
1268
- const u = Me(o, { selectedValues: a });
1267
+ l.every((u) => {
1268
+ const f = Me(i, { selectedValues: a });
1269
1269
  try {
1270
- const p = JSON.parse(u);
1271
- q.emit(c, p, a, r);
1270
+ const p = JSON.parse(f);
1271
+ j.emit(u, p, a, n);
1272
1272
  } catch (p) {
1273
- console.error("eventParamsValue: ", u, p);
1273
+ console.error("eventParamsValue: ", f, p);
1274
1274
  }
1275
1275
  });
1276
1276
  else {
1277
- const c = Me(o, { selectedValues: a });
1277
+ const u = Me(i, { selectedValues: a });
1278
1278
  try {
1279
- const u = JSON.parse(c);
1280
- q.emit(l, u, a, r);
1281
- } catch (u) {
1282
- console.error("eventParamsValue: ", c, u);
1279
+ const f = JSON.parse(u);
1280
+ j.emit(l, f, a, n);
1281
+ } catch (f) {
1282
+ console.error("eventParamsValue: ", u, f);
1283
1283
  }
1284
1284
  }
1285
1285
  else
1286
- Array.isArray(l) ? l.every((c) => {
1287
- q.emit(c, r, a);
1288
- }) : q.emit(l, r, a);
1286
+ Array.isArray(l) ? l.every((u) => {
1287
+ j.emit(u, n, a);
1288
+ }) : j.emit(l, n, a);
1289
1289
  }
1290
- return s != null && s.inputEmit && s.inputEmit("change", a, r), r;
1291
- }, Te = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], y = {
1290
+ return s != null && s.inputEmit && s.inputEmit("change", a, n), n;
1291
+ }, Re = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], y = {
1292
1292
  PageOption: {
1293
1293
  primaryKey: "Id",
1294
1294
  statusKey: "Enabled"
@@ -1298,12 +1298,12 @@ const q = new Xa(), Y = (e, t) => {
1298
1298
  primaryKey: "Id",
1299
1299
  statusKey: "Enabled",
1300
1300
  remotePage: !0,
1301
- tableSize: f("small"),
1302
- selectable: f(!1),
1303
- searchBar: f(!0),
1304
- pageSize: f(10),
1305
- rowExpand: f(!1),
1306
- buttons: f(["New"]),
1301
+ tableSize: c("small"),
1302
+ selectable: c(!1),
1303
+ searchBar: c(!0),
1304
+ pageSize: c(10),
1305
+ rowExpand: c(!1),
1306
+ buttons: c(["New"]),
1307
1307
  tools: ["Reload", "RowHeight", "TableHeadset"],
1308
1308
  operates: ["Edit", "Delete"]
1309
1309
  },
@@ -1345,51 +1345,51 @@ const q = new Xa(), Y = (e, t) => {
1345
1345
  ...y.EditorOption,
1346
1346
  name: "",
1347
1347
  default: a ? JSON.parse(JSON.stringify(a)) : void 0,
1348
- visible: f(!1),
1348
+ visible: c(!1),
1349
1349
  page: t,
1350
- formData: f(a ? JSON.parse(JSON.stringify(a)) : void 0),
1351
- formRules: f(s),
1352
- ruleResults: f({}),
1353
- updateData: f(void 0),
1350
+ formData: c(a ? JSON.parse(JSON.stringify(a)) : void 0),
1351
+ formRules: c(s),
1352
+ ruleResults: c({}),
1353
+ updateData: c(void 0),
1354
1354
  saveUrl: e.urls.save,
1355
1355
  detailUrl: e.urls.detail,
1356
- isFormSaving: f(!1),
1357
- isFormLoading: f(!1)
1356
+ isFormSaving: c(!1),
1357
+ isFormLoading: c(!1)
1358
1358
  }
1359
1359
  }), st = (e, t, a) => {
1360
1360
  const s = {
1361
1361
  ...y.GridOption,
1362
- tableSize: f(y.GridOption.tableSize.value),
1363
- selectable: f(y.GridOption.selectable.value),
1364
- searchBar: f(y.GridOption.searchBar.value),
1365
- pageSize: f(y.GridOption.pageSize.value),
1366
- rowExpand: f(y.GridOption.rowExpand.value),
1367
- buttons: f([...y.GridOption.buttons.value]),
1362
+ tableSize: c(y.GridOption.tableSize.value),
1363
+ selectable: c(y.GridOption.selectable.value),
1364
+ searchBar: c(y.GridOption.searchBar.value),
1365
+ pageSize: c(y.GridOption.pageSize.value),
1366
+ rowExpand: c(y.GridOption.rowExpand.value),
1367
+ buttons: c([...y.GridOption.buttons.value]),
1368
1368
  tools: [...y.GridOption.tools],
1369
1369
  operates: [...y.GridOption.operates],
1370
- columns: f(a || []),
1371
- reload: f(!1),
1372
- pageNo: f(1),
1373
- total: f(0),
1370
+ columns: c(a || []),
1371
+ reload: c(!1),
1372
+ pageNo: c(1),
1373
+ total: c(0),
1374
1374
  page: t,
1375
- selectKeys: f([]),
1376
- selectRows: f([]),
1377
- rowData: f(void 0),
1375
+ selectKeys: c([]),
1376
+ selectRows: c([]),
1377
+ rowData: c(void 0),
1378
1378
  gridQuery: {},
1379
- tableData: H(void 0),
1380
- expandRows: f({}),
1381
- isGridLoading: f(!1),
1382
- isGridSaving: f(!1),
1379
+ tableData: U(void 0),
1380
+ expandRows: c({}),
1381
+ isGridLoading: c(!1),
1382
+ isGridSaving: c(!1),
1383
1383
  gridUrl: e.urls.list || e.urls.find,
1384
1384
  updateUrl: e.urls.update,
1385
1385
  deleteUrl: e.urls.delete
1386
1386
  };
1387
- return b(
1387
+ return I(
1388
1388
  () => s.reload.value,
1389
- (r) => {
1390
- r && (setTimeout(() => {
1389
+ (n) => {
1390
+ n && (setTimeout(() => {
1391
1391
  s.reload.value = !1;
1392
- }, 1), s.remotePage ? ia(s) : Ca(s));
1392
+ }, 1), s.remotePage ? oa(s) : Wa(s));
1393
1393
  }
1394
1394
  ), {
1395
1395
  gridCtrl: s
@@ -1397,14 +1397,14 @@ const q = new Xa(), Y = (e, t) => {
1397
1397
  }, qt = (e, t) => {
1398
1398
  const a = {
1399
1399
  ...y.TreeOption,
1400
- reload: f(!1),
1400
+ reload: c(!1),
1401
1401
  page: t,
1402
- node: f(void 0),
1402
+ node: c(void 0),
1403
1403
  url: e.urls.tree,
1404
- data: H(void 0),
1405
- isTreeLoading: f(!1)
1404
+ data: U(void 0),
1405
+ isTreeLoading: c(!1)
1406
1406
  };
1407
- return b(
1407
+ return I(
1408
1408
  () => a.reload.value,
1409
1409
  (s) => {
1410
1410
  s && (setTimeout(() => {
@@ -1414,46 +1414,46 @@ const q = new Xa(), Y = (e, t) => {
1414
1414
  ), {
1415
1415
  treeCtrl: a
1416
1416
  };
1417
- }, de = (e, t) => {
1417
+ }, ce = (e, t) => {
1418
1418
  const a = {
1419
1419
  ...y.OptionOption,
1420
1420
  url: e,
1421
- options: f([]),
1422
- reload: f(!1),
1423
- data: H([]),
1424
- selected: f([]),
1425
- selectedOptions: f([]),
1421
+ reload: c(!1),
1426
1422
  optionQuery: {},
1427
- isOptionLoading: f(!1)
1423
+ data: U([]),
1424
+ selected: c([]),
1425
+ selectedOptions: c([]),
1426
+ options: c([]),
1427
+ isOptionLoading: c(!1)
1428
1428
  };
1429
- return b(
1429
+ return I(
1430
1430
  () => a.reload.value,
1431
1431
  (s) => {
1432
1432
  s && (setTimeout(() => {
1433
1433
  a.reload.value = !1;
1434
- }, 1), Y(a, t));
1434
+ }, 1), W(!0, a, t));
1435
1435
  }
1436
1436
  ), {
1437
1437
  optionCtrl: a
1438
1438
  };
1439
1439
  }, Bt = (e, t, a) => {
1440
- for (const n in e.urls)
1441
- e.urls[n] && (e.urls[n].api || (e.urls[n].api = e.api), e.urls[n].authorize === void 0 && (e.urls[n].authorize = e.authorize));
1440
+ for (const r in e.urls)
1441
+ e.urls[r] && (e.urls[r].api || (e.urls[r].api = e.api), e.urls[r].authorize === void 0 && (e.urls[r].authorize = e.authorize));
1442
1442
  const s = {
1443
1443
  ...y.PageOption,
1444
1444
  ...e
1445
- }, { editorCtrl: r } = tt(e, s, t, a), { gridCtrl: i } = st(e, s);
1446
- return s.editor = r, s.grid = i, i.editor = r, i.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], r.grid = i, {
1445
+ }, { editorCtrl: n } = tt(e, s, t, a), { gridCtrl: o } = st(e, s);
1446
+ return s.editor = n, s.grid = o, o.editor = n, o.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], n.grid = o, {
1447
1447
  pageCtrl: s,
1448
- editorCtrl: r,
1449
- gridCtrl: i
1448
+ editorCtrl: n,
1449
+ gridCtrl: o
1450
1450
  };
1451
- }, rt = 7 * 24 * 60 * 60 * 1e3, Fe = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Set(), Q = f({}), zt = Q, Wt = (e) => {
1452
- var r;
1451
+ }, nt = 7 * 24 * 60 * 60 * 1e3, Fe = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Set(), V = c({}), zt = V, Ct = (e) => {
1452
+ var n;
1453
1453
  if (!e.iconUrl) return Ne;
1454
- const t = f(!0), a = f("");
1454
+ const t = c(!0), a = c("");
1455
1455
  let s = !0;
1456
- return (r = e.icons) != null && r.length && (s = e.icons.every((i) => Q.value[i] !== void 0)), (e.icon && !Q.value[e.icon] || !s) && nt(e, t).then(() => {
1456
+ return (n = e.icons) != null && n.length && (s = e.icons.every((o) => V.value[o] !== void 0)), (e.icon && !V.value[e.icon] || !s) && rt(e, t).then(() => {
1457
1457
  lt(e.iconUrl, e.monoColor || !1), t.value = !0;
1458
1458
  }), C({
1459
1459
  props: {
@@ -1481,42 +1481,42 @@ const q = new Xa(), Y = (e, t) => {
1481
1481
  }
1482
1482
  },
1483
1483
  emits: ["update:iconIndex"],
1484
- setup(i, { emit: n }) {
1485
- const l = f(i.icon), o = f(0), c = () => {
1486
- i.icons && o.value++;
1484
+ setup(o, { emit: r }) {
1485
+ const l = c(o.icon), i = c(0), u = () => {
1486
+ o.icons && i.value++;
1487
1487
  };
1488
- return b(
1489
- () => i.iconIndex,
1490
- (u) => {
1491
- u !== void 0 && (o.value = u);
1488
+ return I(
1489
+ () => o.iconIndex,
1490
+ (f) => {
1491
+ f !== void 0 && (i.value = f);
1492
1492
  },
1493
1493
  { immediate: !0 }
1494
- ), b(
1495
- () => o.value,
1496
- (u) => {
1497
- i.icons && (u >= i.icons.length && (o.value = 0), l.value = i.icons[o.value], ve(a, l, l.value), n("update:iconIndex", o.value));
1494
+ ), I(
1495
+ () => i.value,
1496
+ (f) => {
1497
+ o.icons && (f >= o.icons.length && (i.value = 0), l.value = o.icons[i.value], de(a, l, l.value), r("update:iconIndex", i.value));
1498
1498
  },
1499
1499
  { immediate: !0 }
1500
- ), b(
1501
- () => Q.value,
1500
+ ), I(
1501
+ () => V.value,
1502
1502
  () => {
1503
- ve(a, l, l.value);
1503
+ de(a, l, l.value);
1504
1504
  },
1505
1505
  { deep: !0 }
1506
- ), b(
1507
- () => i.icon,
1508
- (u) => {
1509
- ve(a, l, u);
1506
+ ), I(
1507
+ () => o.icon,
1508
+ (f) => {
1509
+ de(a, l, f);
1510
1510
  }
1511
- ), ve(a, l, l.value), { isLoaded: t, Icon: a, handleClick: c };
1511
+ ), de(a, l, l.value), { isLoaded: t, Icon: a, handleClick: u };
1512
1512
  },
1513
1513
  render() {
1514
1514
  if (!t.value)
1515
1515
  return Ne;
1516
- let i = this.class, n = "";
1517
- Array.isArray(i) ? n = i.join(" ") : typeof i == "string" && (n = i);
1518
- let l = [n];
1519
- return !/\bw-/.test(n) && !/$w-/.test(n) && l.push("w-4"), !/\bh-/.test(n) && !/$h-/.test(n) && l.push("h-4"), a.value ? _(Ye(a.value), {
1516
+ let o = this.class, r = "";
1517
+ Array.isArray(o) ? r = o.join(" ") : typeof o == "string" && (r = o);
1518
+ let l = [r];
1519
+ return !/\bw-/.test(r) && !/$w-/.test(r) && l.push("w-4"), !/\bh-/.test(r) && !/$h-/.test(r) && l.push("h-4"), a.value ? _(Ye(a.value), {
1520
1520
  onClick: this.$props.clickable ? this.handleClick : void 0,
1521
1521
  class: `${l.join(" ")}`,
1522
1522
  style: {
@@ -1527,7 +1527,7 @@ const q = new Xa(), Y = (e, t) => {
1527
1527
  }) : _("div", { class: "w-[14px] h-[14px]" });
1528
1528
  }
1529
1529
  });
1530
- }, nt = (e, t) => {
1530
+ }, rt = (e, t) => {
1531
1531
  let a = e.iconUrl;
1532
1532
  if (!a)
1533
1533
  return console.error("图标库地址不能为空"), Promise.resolve();
@@ -1535,13 +1535,13 @@ const q = new Xa(), Y = (e, t) => {
1535
1535
  return Promise.resolve();
1536
1536
  const s = fa(a);
1537
1537
  if (s)
1538
- return new Promise(async (i) => (ca(s.scriptContent), i()));
1538
+ return new Promise(async (o) => (ca(s.scriptContent), o()));
1539
1539
  t.value = !1;
1540
- const r = new Promise(async (i) => {
1541
- await it(a, e.monoColor || !1), i(), Fe.delete(a);
1540
+ const n = new Promise(async (o) => {
1541
+ await ot(a, e.monoColor || !1), o(), Fe.delete(a);
1542
1542
  });
1543
- return Fe.set(a, r), r;
1544
- }, it = async (e, t) => {
1543
+ return Fe.set(a, n), n;
1544
+ }, ot = async (e, t) => {
1545
1545
  try {
1546
1546
  const a = await fetch(e);
1547
1547
  if (!a.ok) {
@@ -1550,11 +1550,11 @@ const q = new Xa(), Y = (e, t) => {
1550
1550
  }
1551
1551
  let s = await a.text();
1552
1552
  s = t ? s.replace(/fill=\"[^\"]*\"/gi, "") : s;
1553
- let r = /^window\.(\w+)\s*=/;
1554
- const i = s.match(r);
1555
- if (i && i.length > 1) {
1556
- let n = i[1];
1557
- ot(e, n, t, s);
1553
+ let n = /^window\.(\w+)\s*=/;
1554
+ const o = s.match(n);
1555
+ if (o && o.length > 1) {
1556
+ let r = o[1];
1557
+ it(e, r, t, s);
1558
1558
  }
1559
1559
  ca(s);
1560
1560
  return;
@@ -1564,16 +1564,16 @@ const q = new Xa(), Y = (e, t) => {
1564
1564
  }, ca = (e) => {
1565
1565
  const t = document.createElement("script");
1566
1566
  t.textContent = e, document.head.appendChild(t);
1567
- }, ot = (e, t, a, s) => {
1568
- let r = `icon_cache:${e}`;
1569
- const i = {
1567
+ }, it = (e, t, a, s) => {
1568
+ let n = `icon_cache:${e}`;
1569
+ const o = {
1570
1570
  windowKey: t,
1571
1571
  monoColor: a,
1572
1572
  scriptContent: s,
1573
- expireTime: Date.now() + rt
1573
+ expireTime: Date.now() + nt
1574
1574
  // 缓存时间:7天
1575
1575
  };
1576
- localStorage.setItem(r, JSON.stringify(i));
1576
+ localStorage.setItem(n, JSON.stringify(o));
1577
1577
  }, fa = (e) => {
1578
1578
  let t = `icon_cache:${e}`;
1579
1579
  const a = localStorage.getItem(t);
@@ -1581,20 +1581,20 @@ const q = new Xa(), Y = (e, t) => {
1581
1581
  let s;
1582
1582
  try {
1583
1583
  s = JSON.parse(a);
1584
- } catch (r) {
1585
- return console.error("解析缓存失败:", r), null;
1584
+ } catch (n) {
1585
+ return console.error("解析缓存失败:", n), null;
1586
1586
  }
1587
1587
  return s.expireTime < Date.now() ? (localStorage.removeItem(e), null) : s;
1588
- }, Ct = () => {
1588
+ }, Wt = () => {
1589
1589
  const e = Date.now();
1590
1590
  for (const t in localStorage)
1591
1591
  if (t.startsWith("icon_cache:")) {
1592
1592
  const a = localStorage.getItem(t);
1593
1593
  a && JSON.parse(a).expireTime < e && localStorage.removeItem(t);
1594
1594
  }
1595
- }, ve = (e, t, a) => {
1595
+ }, de = (e, t, a) => {
1596
1596
  setTimeout(() => {
1597
- t.value = a, t.value && (e.value = Q.value[t.value]);
1597
+ t.value = a, t.value && (e.value = V.value[t.value]);
1598
1598
  }, 1);
1599
1599
  }, Ne = _(
1600
1600
  "svg",
@@ -1619,51 +1619,51 @@ const q = new Xa(), Y = (e, t) => {
1619
1619
  ), lt = (e, t) => {
1620
1620
  const a = fa(e);
1621
1621
  Object.keys(window).forEach((s) => {
1622
- s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !We.has(s) && (We.add(s), ut(s, t));
1622
+ s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !Ce.has(s) && (Ce.add(s), ut(s, t));
1623
1623
  });
1624
1624
  }, ut = (e, t) => {
1625
- const a = window[e], i = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), n = document.querySelectorAll("symbol");
1626
- for (const l of i) {
1627
- const o = l.id, c = Array.from(n).find((u) => u.id === o);
1628
- c && t && (c.innerHTML = l.innerHTML, c.querySelectorAll("*").forEach((u) => {
1629
- u.hasAttribute("fill") && u.removeAttribute("fill");
1630
- })), Q.value[o] || (Q.value[o] = _("svg", { fill: "currentColor" }, [_("use", { "xlink:href": `#${o}` })]));
1625
+ const a = window[e], o = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), r = document.querySelectorAll("symbol");
1626
+ for (const l of o) {
1627
+ const i = l.id, u = Array.from(r).find((f) => f.id === i);
1628
+ u && t && (u.innerHTML = l.innerHTML, u.querySelectorAll("*").forEach((f) => {
1629
+ f.hasAttribute("fill") && f.removeAttribute("fill");
1630
+ })), V.value[i] || (V.value[i] = _("svg", { fill: "currentColor" }, [_("use", { "xlink:href": `#${i}` })]));
1631
1631
  }
1632
1632
  }, ct = (e, t) => {
1633
1633
  let a = "";
1634
1634
  return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
1635
1635
  }, Yt = (e, t, a, s) => {
1636
- pa(e, [], a, s).forEach((i) => t.push(i));
1636
+ pa(e, [], a, s).forEach((o) => t.push(o));
1637
1637
  }, pa = (e, t, a, s) => {
1638
- var n, l, o, c, u;
1639
- const r = [], i = J();
1638
+ var r, l, i, u, f;
1639
+ const n = [], o = K();
1640
1640
  for (const p of e) {
1641
- if (p.redirect || p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (l = (n = p.meta) == null ? void 0 : n.roles) != null && l.length && !i.hasRole(p.meta.roles) && (o = p.meta) != null && o.permission && !i.hasPermit(p.meta.permission, ":page"))
1641
+ if (p.redirect || p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (l = (r = p.meta) == null ? void 0 : r.roles) != null && l.length && !o.hasRole(p.meta.roles) && (i = p.meta) != null && i.permission && !o.hasPermit(p.meta.permission, ":page"))
1642
1642
  continue;
1643
1643
  const m = p.path.split("/");
1644
1644
  m.unshift(...t);
1645
1645
  const d = pa(p.children || [], m, a, s), E = {
1646
1646
  key: m.join("/"),
1647
- label: ((c = p.name) == null ? void 0 : c.toString()) ?? "",
1648
- title: ((u = p.name) == null ? void 0 : u.toString()) ?? "",
1647
+ label: ((u = p.name) == null ? void 0 : u.toString()) ?? "",
1648
+ title: ((f = p.name) == null ? void 0 : f.toString()) ?? "",
1649
1649
  icon: p.icon ? _(a, { ...s, icon: p.icon }) : void 0,
1650
1650
  children: d.length > 0 ? d : void 0
1651
1651
  };
1652
- (d.length > 0 || !p.children) && r.push(E);
1652
+ (d.length > 0 || !p.children) && n.push(E);
1653
1653
  }
1654
- return r;
1655
- }, Ce = va([]), Xt = () => {
1656
- Ce.length = 0;
1657
- const e = V();
1658
- let a = Je().TabActive;
1659
- e.matchedRoutes(a).forEach((r, i) => {
1654
+ return n;
1655
+ }, We = va([]), Xt = () => {
1656
+ We.length = 0;
1657
+ const e = D();
1658
+ let a = Ke().TabActive;
1659
+ e.matchedRoutes(a).forEach((n, o) => {
1660
1660
  var l;
1661
- const n = {
1662
- index: i,
1663
- path: r.path,
1664
- breadcrumbName: ((l = r.name) == null ? void 0 : l.toString()) ?? ""
1661
+ const r = {
1662
+ index: o,
1663
+ path: n.path,
1664
+ breadcrumbName: ((l = n.name) == null ? void 0 : l.toString()) ?? ""
1665
1665
  };
1666
- Ce.push(n);
1666
+ We.push(r);
1667
1667
  });
1668
1668
  }, ft = {
1669
1669
  host: {
@@ -1677,7 +1677,7 @@ const q = new Xa(), Y = (e, t) => {
1677
1677
  // 不显示错误
1678
1678
  hideErrorToast: !0
1679
1679
  }
1680
- }, Zt = ue("hostInfo", {
1680
+ }, Zt = oe("hostInfo", {
1681
1681
  state: () => ({
1682
1682
  hostInfo: {
1683
1683
  Host: "",
@@ -1702,15 +1702,15 @@ const q = new Xa(), Y = (e, t) => {
1702
1702
  }
1703
1703
  return new Promise((s) => {
1704
1704
  we.SITEHOST_API || (we.SITEHOST_API = e);
1705
- const r = t || window.location.origin;
1706
- G(ft.host, {
1705
+ const n = t || window.location.origin;
1706
+ Q(ft.host, {
1707
1707
  Query: {
1708
- Host: r
1708
+ Host: n
1709
1709
  }
1710
- }).then((i) => {
1711
- if ((i == null ? void 0 : i.status) === T.SUCCESS && i.data) {
1712
- const n = i.data;
1713
- this._setHostInfo(n);
1710
+ }).then((o) => {
1711
+ if ((o == null ? void 0 : o.status) === R.SUCCESS && o.data) {
1712
+ const r = o.data;
1713
+ this._setHostInfo(r);
1714
1714
  }
1715
1715
  s();
1716
1716
  });
@@ -1739,7 +1739,7 @@ const q = new Xa(), Y = (e, t) => {
1739
1739
  // storage: localStorage,
1740
1740
  // pick: ['hostInfo'],
1741
1741
  // },
1742
- }), es = ue("settingInfo", {
1742
+ }), es = oe("settingInfo", {
1743
1743
  state: () => ({
1744
1744
  fullscreen: !1,
1745
1745
  menuCollapse: !1,
@@ -1784,7 +1784,7 @@ const q = new Xa(), Y = (e, t) => {
1784
1784
  }), as = /* @__PURE__ */ C({
1785
1785
  __name: "index",
1786
1786
  props: {
1787
- ...ce,
1787
+ ...ie,
1788
1788
  /**
1789
1789
  * 选择项数据
1790
1790
  */
@@ -1795,70 +1795,57 @@ const q = new Xa(), Y = (e, t) => {
1795
1795
  },
1796
1796
  emits: ["change"],
1797
1797
  setup(e, { emit: t }) {
1798
- const a = e, s = W(), r = de(a.url, a), i = a.optionCtrl ?? r.optionCtrl;
1799
- i.inputFactory = H(s);
1800
- const n = f([]);
1801
- i && b(
1802
- () => i.options.value,
1798
+ const a = e, s = z(), n = ce(a.url, a), o = a.optionCtrl ?? n.optionCtrl;
1799
+ o.inputFactory = U(s);
1800
+ const r = c([]);
1801
+ o && I(
1802
+ () => o.options.value,
1803
1803
  (p) => {
1804
- n.value = p || [];
1804
+ r.value = p || [];
1805
1805
  },
1806
1806
  { immediate: !0, deep: !0 }
1807
1807
  );
1808
- const l = t, { editorCtrl: o, errInfo: c } = W(), u = (p) => {
1809
- c != null && c.value.errClass && o && fe(o), l("change", p);
1808
+ const l = t, { editorCtrl: i, errInfo: u } = z(), f = (p) => {
1809
+ u != null && u.value.errClass && i && le(i), l("change", p);
1810
1810
  };
1811
- return ie(() => {
1811
+ return ye(() => {
1812
1812
  if (!a.data || a.data.length != 2) {
1813
1813
  console.error("Switch组件: ", a.data), x.error("Switch组件必须有且只有两个选项");
1814
1814
  return;
1815
1815
  }
1816
- i && Y(i, a);
1817
- }), oe(() => {
1818
- i && pe(i, a);
1816
+ o && W(o.autoload, o, a);
1817
+ }), ne(() => {
1818
+ o && ue(o, a);
1819
1819
  }), (p, m) => {
1820
1820
  var d;
1821
- return n.value.length === 2 ? (A(), Ie(S(ya), le({
1821
+ return r.value.length === 2 ? (A(), Se(b(ya), re({
1822
1822
  key: 0,
1823
1823
  class: [
1824
- ((d = S(c)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
1824
+ ((d = b(u)) == null ? void 0 : d.errClass) === "error" ? "error !border-red-300 shadow-[0_0_3px_0px_#ff4d4f]" : "",
1825
1825
  "bg-blue-300",
1826
1826
  "w-[58px]"
1827
1827
  ],
1828
- checkedChildren: n.value[0].label,
1829
- checkedValue: n.value[0].value,
1830
- unCheckedChildren: n.value[1].label,
1831
- unCheckedValue: n.value[1].value,
1832
- onChange: u
1833
- }, p.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : B("", !0);
1828
+ checkedChildren: r.value[0].label,
1829
+ checkedValue: r.value[0].value,
1830
+ unCheckedChildren: r.value[1].label,
1831
+ unCheckedValue: r.value[1].value,
1832
+ onChange: f
1833
+ }, p.$attrs), null, 16, ["class", "checkedChildren", "checkedValue", "unCheckedChildren", "unCheckedValue"])) : q("", !0);
1834
1834
  };
1835
1835
  }
1836
1836
  }), ts = /* @__PURE__ */ C({
1837
1837
  inheritAttrs: !1,
1838
1838
  __name: "index",
1839
1839
  props: {
1840
- ...ce,
1840
+ ...ie,
1841
1841
  value: {
1842
- type: [String, Number, null, Array],
1842
+ type: [String, Number, Array, null],
1843
1843
  default: void 0
1844
1844
  },
1845
- /**
1846
- * 查询字段
1847
- * - 模糊查询
1848
- */
1849
- searchField: {
1850
- type: [String, Array]
1851
- },
1852
- /**
1853
- * 自定义查询参数
1854
- * - 查询参数
1855
- * - query参数
1856
- */
1857
- onsearch: {
1858
- type: Function
1859
- },
1860
1845
  /**
1861
1846
  * 修改输入数据则自动清空关联数据
1847
+ * - FormData: 表单数据
1848
+ * - outFields: 输出字段
1862
1849
  */
1863
1850
  autoClean: {
1864
1851
  type: Boolean,
@@ -1867,81 +1854,68 @@ const q = new Xa(), Y = (e, t) => {
1867
1854
  },
1868
1855
  emits: ["update:value", "select", "change", "update:labels"],
1869
1856
  setup(e, { emit: t }) {
1870
- var $, g, I;
1871
- const a = e, s = xe(), r = W(), i = de(a.url, a), n = a.optionCtrl ?? i.optionCtrl;
1872
- n.inputFactory = H(r);
1873
- const l = f({
1874
- ...n == null ? void 0 : n.url,
1875
- url: (($ = n == null ? void 0 : n.url) == null ? void 0 : $.url) || "",
1876
- fieldMap: (n == null ? void 0 : n.fieldMap) || ((g = n == null ? void 0 : n.url) == null ? void 0 : g.fieldMap),
1877
- params: (n == null ? void 0 : n.params) || ((I = n == null ? void 0 : n.url) == null ? void 0 : I.params),
1878
- loadingText: !1
1879
- }), o = f((n == null ? void 0 : n.selected.value) || void 0);
1880
- b(
1857
+ const a = e, s = be(), n = z(), o = ce(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
1858
+ r.inputFactory = U(n), r.fieldMap = {
1859
+ label: "Name",
1860
+ value: "Id",
1861
+ ...r == null ? void 0 : r.fieldMap
1862
+ };
1863
+ const l = c((r == null ? void 0 : r.selected.value) || void 0);
1864
+ I(
1881
1865
  () => a.value,
1882
1866
  () => {
1883
- o.value = a.value;
1867
+ l.value = a.value;
1884
1868
  },
1885
1869
  { immediate: !0 }
1886
- ), b(
1887
- () => o.value,
1870
+ ), I(
1871
+ () => l.value,
1888
1872
  (v) => {
1889
1873
  a.autoClean && a.formData && a.outFields && v !== a.value && ua(a.formData, a.outFields, null);
1890
1874
  }
1891
1875
  );
1892
- const { editorCtrl: c, errInfo: u, labelText: p } = r, m = t;
1893
- r.inputEmit = m;
1894
- const d = f((n == null ? void 0 : n.options.value) || []);
1895
- n && b(
1896
- () => n.options.value,
1876
+ const { editorCtrl: i, errInfo: u, labelText: f } = n, p = t;
1877
+ n.inputEmit = p;
1878
+ const m = c((r == null ? void 0 : r.options.value) || []);
1879
+ r && I(
1880
+ () => r.options.value,
1897
1881
  (v) => {
1898
- d.value = v || [];
1882
+ m.value = v || [];
1899
1883
  },
1900
1884
  { immediate: !0, deep: !0 }
1901
1885
  );
1902
- const E = (v) => {
1903
- var N;
1904
- if (d.value = [], v === "") return;
1905
- let h = v.trim(), R = {
1906
- ...l.value.params,
1886
+ const d = (v) => {
1887
+ if (m.value = [], v === "") return;
1888
+ let h = {
1907
1889
  Query: {
1908
- ...(N = l.value.params) == null ? void 0 : N.Query
1890
+ SearchField: "%" + v.trim() + "%"
1909
1891
  }
1910
1892
  };
1911
- a.searchField && (Array.isArray(a.searchField) ? a.searchField.forEach((K) => {
1912
- R.Query[K] = {
1913
- $like: "%" + h + "%"
1914
- };
1915
- }) : R.Query[a.searchField] = {
1916
- $like: "%" + h + "%"
1917
- }), a.onsearch && a.onsearch(h, R), n && Y(n, a);
1918
- }, O = (v) => {
1919
- const h = Re(n, a, v);
1920
- m("update:value", v), m("select", v);
1921
- const R = Te(h);
1922
- m("update:labels", R), u != null && u.value.errClass && c && fe(c);
1893
+ r.params = xe(r.params, h), r && W(!0, r, a);
1894
+ }, E = (v) => {
1895
+ const w = Oe(r, a, v);
1896
+ p("update:value", v), p("select", v);
1897
+ const h = Re(w);
1898
+ p("update:labels", h), u != null && u.value.errClass && i && le(i);
1923
1899
  };
1924
- return ie(() => {
1925
- l.value && !l.value.fieldMap && (l.value.fieldMap = {
1926
- title: "Name",
1927
- label: "Name",
1928
- value: "Name",
1929
- key: "Id"
1930
- });
1931
- }), oe(() => {
1932
- n && pe(n, a);
1933
- }), (v, h) => {
1934
- var R, N, K;
1900
+ return ne(() => {
1901
+ r && ue(r, a);
1902
+ }), (v, w) => {
1903
+ var h;
1935
1904
  return A(), L("div", null, [
1936
- ae(S(Sa), le({
1937
- value: o.value,
1938
- "onUpdate:value": h[0] || (h[0] = (he) => o.value = he),
1939
- class: [(R = S(u)) == null ? void 0 : R.errClass, "error w-full"],
1940
- options: d.value,
1941
- onSearch: E,
1942
- onSelect: O,
1943
- placeholder: (K = (N = S(n)) == null ? void 0 : N.url) != null && K.loading ? "请输入并选择" + S(p) : ""
1944
- }, S(s)), null, 16, ["value", "class", "options", "placeholder"])
1905
+ ee(b(Sa), re({
1906
+ value: l.value,
1907
+ "onUpdate:value": w[0] || (w[0] = (S) => l.value = S),
1908
+ class: ["w-full", (h = b(u)) == null ? void 0 : h.errClass],
1909
+ options: m.value,
1910
+ onSearch: d,
1911
+ onSelect: E,
1912
+ placeholder: "请输入并选择" + b(f)
1913
+ }, b(s)), {
1914
+ option: H(({ label: S }) => [
1915
+ Ie(B(S), 1)
1916
+ ]),
1917
+ _: 1
1918
+ }, 16, ["value", "class", "options", "placeholder"])
1945
1919
  ]);
1946
1920
  };
1947
1921
  }
@@ -1952,7 +1926,7 @@ const q = new Xa(), Y = (e, t) => {
1952
1926
  inheritAttrs: !1,
1953
1927
  __name: "index",
1954
1928
  props: {
1955
- ...ce,
1929
+ ...ie,
1956
1930
  nodata: {
1957
1931
  type: String,
1958
1932
  default: ""
@@ -1970,62 +1944,62 @@ const q = new Xa(), Y = (e, t) => {
1970
1944
  emits: ["change", "update:labels"],
1971
1945
  setup(e, { emit: t }) {
1972
1946
  var m, d, E;
1973
- const a = e, s = xe(), r = W(), i = de(a.url, a), n = a.optionCtrl ?? i.optionCtrl;
1974
- n.inputFactory = H(r);
1975
- const l = f({
1976
- ...n == null ? void 0 : n.url,
1977
- url: ((m = n == null ? void 0 : n.url) == null ? void 0 : m.url) || "",
1978
- fieldMap: (n == null ? void 0 : n.fieldMap) || ((d = n == null ? void 0 : n.url) == null ? void 0 : d.fieldMap),
1979
- params: (n == null ? void 0 : n.params) || ((E = n == null ? void 0 : n.url) == null ? void 0 : E.params),
1947
+ const a = e, s = be(), n = z(), o = ce(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
1948
+ r.inputFactory = U(n);
1949
+ const l = c({
1950
+ ...r == null ? void 0 : r.url,
1951
+ url: ((m = r == null ? void 0 : r.url) == null ? void 0 : m.url) || "",
1952
+ fieldMap: (r == null ? void 0 : r.fieldMap) || ((d = r == null ? void 0 : r.url) == null ? void 0 : d.fieldMap),
1953
+ params: (r == null ? void 0 : r.params) || ((E = r == null ? void 0 : r.url) == null ? void 0 : E.params),
1980
1954
  loadingText: !1
1981
- }), { errInfo: o } = r, c = t;
1982
- r.inputEmit = c;
1983
- const u = f((n == null ? void 0 : n.options.value) || []);
1984
- n && b(
1985
- () => n.options.value,
1986
- (O) => {
1987
- u.value = O || [];
1955
+ }), { errInfo: i } = n, u = t;
1956
+ n.inputEmit = u;
1957
+ const f = c((r == null ? void 0 : r.options.value) || []);
1958
+ r && I(
1959
+ () => r.options.value,
1960
+ (v) => {
1961
+ f.value = v || [];
1988
1962
  },
1989
1963
  { immediate: !0, deep: !0 }
1990
1964
  );
1991
- const p = (O) => {
1992
- const g = Re(n, a, O), I = Te(g);
1993
- c("update:labels", I);
1965
+ const p = (v) => {
1966
+ const h = Oe(r, a, v), S = Re(h);
1967
+ u("update:labels", S);
1994
1968
  };
1995
- return ie(() => {
1969
+ return ye(() => {
1996
1970
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
1997
1971
  title: "Name",
1998
1972
  label: "Name",
1999
1973
  value: "Id",
2000
1974
  key: "Id"
2001
- }), n && Y(n, a);
2002
- }), oe(() => {
2003
- n && pe(n, a);
2004
- }), (O, $) => (A(), L("div", pt, [
2005
- ae(S(ba), le({
1975
+ }), r && W(r.autoload, r, a);
1976
+ }), ne(() => {
1977
+ r && ue(r, a);
1978
+ }), (v, w) => (A(), L("div", pt, [
1979
+ ee(b(ba), re({
2006
1980
  onChange: p,
2007
1981
  class: "w-full mb-[-3px]"
2008
- }, S(s)), {
2009
- default: z(() => [
2010
- u.value.length > 0 ? (A(!0), L(te, { key: 0 }, De(u.value, (g) => {
2011
- var I;
2012
- return A(), Ie(S(Ia), {
2013
- key: g.value,
2014
- value: g.value,
2015
- disabled: g.disabled || g.value && e.disabledItems && e.disabledItems.indexOf(g.value.toString()) > -1,
1982
+ }, b(s)), {
1983
+ default: H(() => [
1984
+ f.value.length > 0 ? (A(!0), L(ae, { key: 0 }, _e(f.value, (h) => {
1985
+ var S;
1986
+ return A(), Se(b(Ia), {
1987
+ key: h.value,
1988
+ value: h.value,
1989
+ disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
2016
1990
  class: Xe([
2017
- ((I = S(o)) == null ? void 0 : I.errClass) === "error" ? "error !text-red-400" : "",
1991
+ ((S = b(i)) == null ? void 0 : S.errClass) === "error" ? "error !text-red-400" : "",
2018
1992
  "text-nowrap",
2019
1993
  "pb-1",
2020
1994
  e.wrap ? `w-1/${a.wrap}` : ""
2021
1995
  ])
2022
1996
  }, {
2023
- default: z(() => [
2024
- Ue(se(g.label), 1)
1997
+ default: H(() => [
1998
+ Ie(B(h.label), 1)
2025
1999
  ]),
2026
2000
  _: 2
2027
2001
  }, 1032, ["value", "disabled", "class"]);
2028
- }), 128)) : e.nodata ? (A(), L("div", dt, se(e.nodata), 1)) : B("", !0)
2002
+ }), 128)) : e.nodata ? (A(), L("div", dt, B(e.nodata), 1)) : q("", !0)
2029
2003
  ]),
2030
2004
  _: 1
2031
2005
  }, 16)
@@ -2034,11 +2008,11 @@ const q = new Xa(), Y = (e, t) => {
2034
2008
  }), ht = { class: "min-h-[32px] pt-1" }, mt = {
2035
2009
  key: 1,
2036
2010
  class: "text-center text-gray-500"
2037
- }, rs = /* @__PURE__ */ C({
2011
+ }, ns = /* @__PURE__ */ C({
2038
2012
  inheritAttrs: !1,
2039
2013
  __name: "index",
2040
2014
  props: {
2041
- ...ce,
2015
+ ...ie,
2042
2016
  value: {
2043
2017
  type: [String, Number, null, Array],
2044
2018
  default: void 0
@@ -2056,78 +2030,78 @@ const q = new Xa(), Y = (e, t) => {
2056
2030
  },
2057
2031
  emits: ["change", "update:value", "update:labels"],
2058
2032
  setup(e, { emit: t }) {
2059
- var E, O, $;
2060
- const a = e, s = xe(), r = W(), i = de(a.url, a), n = a.optionCtrl ?? i.optionCtrl;
2061
- n.inputFactory = H(r);
2062
- const l = f({
2063
- ...n == null ? void 0 : n.url,
2064
- url: ((E = n == null ? void 0 : n.url) == null ? void 0 : E.url) || "",
2065
- fieldMap: (n == null ? void 0 : n.fieldMap) || ((O = n == null ? void 0 : n.url) == null ? void 0 : O.fieldMap),
2066
- params: (n == null ? void 0 : n.params) || (($ = n == null ? void 0 : n.url) == null ? void 0 : $.params),
2033
+ var E, v, w;
2034
+ const a = e, s = be(), n = z(), o = ce(a.url, a), r = a.optionCtrl ?? o.optionCtrl;
2035
+ r.inputFactory = U(n);
2036
+ const l = c({
2037
+ ...r == null ? void 0 : r.url,
2038
+ url: ((E = r == null ? void 0 : r.url) == null ? void 0 : E.url) || "",
2039
+ fieldMap: (r == null ? void 0 : r.fieldMap) || ((v = r == null ? void 0 : r.url) == null ? void 0 : v.fieldMap),
2040
+ params: (r == null ? void 0 : r.params) || ((w = r == null ? void 0 : r.url) == null ? void 0 : w.params),
2067
2041
  loadingText: !1
2068
- }), o = f(a.value), { errInfo: c } = r, u = f((n == null ? void 0 : n.options.value) || []), p = t;
2069
- r.inputEmit = p, n && b(
2070
- () => n.options.value,
2071
- (g) => {
2072
- u.value = g || [];
2042
+ }), i = c(a.value), { errInfo: u } = n, f = c((r == null ? void 0 : r.options.value) || []), p = t;
2043
+ n.inputEmit = p, r && I(
2044
+ () => r.options.value,
2045
+ (h) => {
2046
+ f.value = h || [];
2073
2047
  },
2074
2048
  { immediate: !0, deep: !0 }
2075
- ), b(
2076
- () => o.value,
2077
- (g) => {
2078
- p("update:value", g);
2049
+ ), I(
2050
+ () => i.value,
2051
+ (h) => {
2052
+ p("update:value", h);
2079
2053
  }
2080
2054
  );
2081
- const m = (g, I) => {
2082
- if (typeof g == "object" && typeof I == "object") {
2083
- const v = JSON.stringify(g) === JSON.stringify(I);
2084
- return v && (o.value = g), v;
2055
+ const m = (h, S) => {
2056
+ if (typeof h == "object" && typeof S == "object") {
2057
+ const O = JSON.stringify(h) === JSON.stringify(S);
2058
+ return O && (i.value = h), O;
2085
2059
  }
2086
- return g === I;
2087
- }, d = (g) => {
2088
- const I = g.target.value, v = Re(n, a, I), h = Te(v);
2089
- p("update:labels", h);
2060
+ return h === S;
2061
+ }, d = (h) => {
2062
+ const S = h.target.value, O = Oe(r, a, S), g = Re(O);
2063
+ p("update:labels", g);
2090
2064
  };
2091
- return ie(() => {
2065
+ return ye(() => {
2092
2066
  l.value && !l.value.fieldMap && (l.value.fieldMap = {
2093
2067
  label: "Name",
2094
2068
  value: "Id",
2095
2069
  key: "Id"
2096
- }), n && Y(n, a);
2097
- }), oe(() => {
2098
- n && pe(n, a);
2099
- }), (g, I) => (A(), L("div", ht, [
2100
- ae(S(xa), le({
2101
- value: o.value,
2102
- "onUpdate:value": I[0] || (I[0] = (v) => o.value = v),
2070
+ }), r && W(r.autoload, r, a);
2071
+ }), ne(() => {
2072
+ r && ue(r, a);
2073
+ }), (h, S) => (A(), L("div", ht, [
2074
+ ee(b(xa), re({
2075
+ value: i.value,
2076
+ "onUpdate:value": S[0] || (S[0] = (O) => i.value = O),
2103
2077
  autocheck: !1,
2104
2078
  onChange: d,
2105
2079
  class: "w-full flex align-items flex-wrap mb-[-3px]"
2106
- }, S(s)), {
2107
- default: z(() => [
2108
- u.value.length > 0 ? (A(!0), L(te, { key: 0 }, De(u.value, (v) => {
2109
- var h;
2110
- return A(), L(te, {
2111
- key: v.value
2080
+ }, b(s)), {
2081
+ default: H(() => [
2082
+ f.value.length > 0 ? (A(!0), L(ae, { key: 0 }, _e(f.value, (O) => {
2083
+ var g;
2084
+ return A(), L(ae, {
2085
+ key: O.value
2112
2086
  }, [
2113
- v.visible !== !1 ? (A(), Ie(S(Aa), {
2087
+ O.visible !== !1 ? (A(), Se(b(Aa), {
2114
2088
  key: 0,
2115
- checked: m(v.value, a.value),
2116
- value: v.value,
2089
+ checked: m(O.value, a.value),
2090
+ value: O.value,
2117
2091
  class: Xe([
2118
- ((h = S(c)) == null ? void 0 : h.errClass) === "error" ? "error !text-red-400" : "",
2092
+ ((g = b(u)) == null ? void 0 : g.errClass) === "error" ? "error !text-red-400" : "",
2119
2093
  "text-nowrap",
2120
2094
  "pb-1",
2121
2095
  e.wrap ? `w-1/${a.wrap}` : ""
2122
2096
  ])
2123
2097
  }, {
2124
- default: z(() => [
2125
- Ue(se(v.label), 1)
2098
+ default: H(() => [
2099
+ Ie(B(O.label), 1)
2126
2100
  ]),
2127
2101
  _: 2
2128
- }, 1032, ["checked", "value", "class"])) : B("", !0)
2102
+ }, 1032, ["checked", "value", "class"])) : q("", !0)
2129
2103
  ], 64);
2130
- }), 128)) : e.nodata ? (A(), L("div", mt, se(e.nodata), 1)) : B("", !0)
2104
+ }), 128)) : e.nodata ? (A(), L("div", mt, B(e.nodata), 1)) : q("", !0)
2131
2105
  ]),
2132
2106
  _: 1
2133
2107
  }, 16, ["value"])
@@ -2136,11 +2110,11 @@ const q = new Xa(), Y = (e, t) => {
2136
2110
  }), vt = {
2137
2111
  key: 0,
2138
2112
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
2139
- }, ns = /* @__PURE__ */ C({
2113
+ }, rs = /* @__PURE__ */ C({
2140
2114
  inheritAttrs: !1,
2141
2115
  __name: "index",
2142
2116
  props: {
2143
- ...ce,
2117
+ ...ie,
2144
2118
  value: {
2145
2119
  type: [String, Number, Array, null],
2146
2120
  default: void 0
@@ -2162,89 +2136,89 @@ const q = new Xa(), Y = (e, t) => {
2162
2136
  },
2163
2137
  emits: ["change", "update:value", "update:labels"],
2164
2138
  setup(e, { emit: t }) {
2165
- var g, I, v;
2166
- const a = e, s = W(), { editorCtrl: r, errInfo: i, labelText: n } = s, l = de(a.url, a), o = a.optionCtrl ?? l.optionCtrl;
2167
- o.inputFactory = H(s);
2168
- const c = xe(), u = f({
2169
- ...o == null ? void 0 : o.url,
2170
- url: ((g = o == null ? void 0 : o.url) == null ? void 0 : g.url) || "",
2171
- fieldMap: (o == null ? void 0 : o.fieldMap) || ((I = o == null ? void 0 : o.url) == null ? void 0 : I.fieldMap),
2172
- params: (o == null ? void 0 : o.params) || ((v = o == null ? void 0 : o.url) == null ? void 0 : v.params),
2139
+ var h, S, O;
2140
+ const a = e, s = z(), { editorCtrl: n, errInfo: o, labelText: r } = s, l = ce(a.url, a), i = a.optionCtrl ?? l.optionCtrl;
2141
+ i.inputFactory = U(s);
2142
+ const u = be(), f = c({
2143
+ ...i == null ? void 0 : i.url,
2144
+ url: ((h = i == null ? void 0 : i.url) == null ? void 0 : h.url) || "",
2145
+ fieldMap: (i == null ? void 0 : i.fieldMap) || ((S = i == null ? void 0 : i.url) == null ? void 0 : S.fieldMap),
2146
+ params: (i == null ? void 0 : i.params) || ((O = i == null ? void 0 : i.url) == null ? void 0 : O.params),
2173
2147
  loadingText: !1
2174
- }), p = f(a.value), m = f(c.placeholder), d = f((o == null ? void 0 : o.selected.value) || void 0), E = t;
2148
+ }), p = c(a.value), m = c(u.placeholder), d = c((i == null ? void 0 : i.selected.value) || void 0), E = t;
2175
2149
  s.inputEmit = E;
2176
- const O = f((o == null ? void 0 : o.options.value) || []);
2177
- o && b(
2178
- () => o.options.value,
2179
- (h) => {
2180
- O.value = h || [];
2150
+ const v = c((i == null ? void 0 : i.options.value) || []);
2151
+ i && I(
2152
+ () => i.options.value,
2153
+ (g) => {
2154
+ v.value = g || [];
2181
2155
  },
2182
2156
  { immediate: !0, deep: !0 }
2183
2157
  );
2184
- const $ = (h) => {
2185
- const R = Re(o, a, h), N = Te(R);
2186
- d.value = h, E("update:labels", N), E("change", h), i != null && i.value.errClass && r && fe(r);
2158
+ const w = (g) => {
2159
+ const J = Oe(i, a, g), fe = Re(J);
2160
+ d.value = g, E("update:labels", fe), E("change", g), o != null && o.value.errClass && n && le(n);
2187
2161
  };
2188
- return b(
2189
- () => O.value,
2190
- (h) => {
2191
- h.length && P(a.value) && a.selectFirst ? d.value = h[0].value : d.value = a.value === null ? void 0 : a.value, h.length > 0 && d.value && $(d.value);
2162
+ return I(
2163
+ () => v.value,
2164
+ (g) => {
2165
+ g.length && P(a.value) && a.selectFirst ? d.value = g[0].value : d.value = a.value === null ? void 0 : a.value, g.length > 0 && d.value && w(d.value);
2192
2166
  }
2193
- ), b(
2194
- () => u.value.loading,
2195
- (h) => {
2196
- h ? m.value = "" : m.value || (m.value = "请选择" + n.value);
2167
+ ), I(
2168
+ () => f.value.loading,
2169
+ (g) => {
2170
+ g ? m.value = "" : m.value || (m.value = "请选择" + r.value);
2197
2171
  },
2198
2172
  { immediate: !0 }
2199
- ), b(
2173
+ ), I(
2200
2174
  () => d.value,
2201
- (h) => {
2202
- if (c.mode === "multiple" && P(h) && P(p.value)) {
2175
+ (g) => {
2176
+ if (u.mode === "multiple" && P(g) && P(p.value)) {
2203
2177
  E("update:value", p.value);
2204
2178
  return;
2205
2179
  }
2206
- E("update:value", h);
2180
+ E("update:value", g);
2207
2181
  }
2208
- ), ie(() => {
2209
- if (u.value && !u.value.fieldMap && (u.value.fieldMap = {
2182
+ ), ye(() => {
2183
+ if (f.value && !f.value.fieldMap && (f.value.fieldMap = {
2210
2184
  label: "Name",
2211
2185
  value: "Id",
2212
2186
  key: "Id"
2213
2187
  }), a.dataKey) {
2214
- const h = JSON.parse(JSON.stringify(M.getOptions(a.dataKey)));
2215
- O.value = h;
2216
- } else o && Y(o, a);
2217
- }), oe(() => {
2218
- o && pe(o, a);
2219
- }), (h, R) => {
2220
- var N, K, he;
2188
+ const g = JSON.parse(JSON.stringify(M.getOptions(a.dataKey)));
2189
+ v.value = g;
2190
+ } else i && W(i.autoload, i, a);
2191
+ }), ne(() => {
2192
+ i && ue(i, a);
2193
+ }), (g, J) => {
2194
+ var fe, Ge, je;
2221
2195
  return A(), L("div", null, [
2222
- (K = (N = S(o)) == null ? void 0 : N.url) != null && K.loading ? (A(), L("div", vt, [
2223
- ae(S(Ne), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2224
- R[1] || (R[1] = ga("span", null, "数据加载中...", -1))
2225
- ])) : B("", !0),
2226
- ae(S(Ea), le({
2227
- class: [(he = S(i)) == null ? void 0 : he.errClass, "w-full"],
2196
+ (Ge = (fe = b(i)) == null ? void 0 : fe.url) != null && Ge.loading ? (A(), L("div", vt, [
2197
+ ee(b(Ne), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2198
+ J[1] || (J[1] = ga("span", null, "数据加载中...", -1))
2199
+ ])) : q("", !0),
2200
+ ee(b(Ea), re({
2201
+ class: [(je = b(o)) == null ? void 0 : je.errClass, "w-full"],
2228
2202
  value: d.value,
2229
- "onUpdate:value": R[0] || (R[0] = (j) => d.value = j),
2203
+ "onUpdate:value": J[0] || (J[0] = (G) => d.value = G),
2230
2204
  "allow-clear": !0,
2231
- onChange: $,
2205
+ onChange: w,
2232
2206
  placeholder: m.value,
2233
2207
  "label-in-value": !1
2234
- }, S(c)), {
2235
- default: z(() => [
2236
- (A(!0), L(te, null, De(O.value, (j) => (A(), L(te, {
2237
- key: j.value
2208
+ }, b(u)), {
2209
+ default: H(() => [
2210
+ (A(!0), L(ae, null, _e(v.value, (G) => (A(), L(ae, {
2211
+ key: G.value
2238
2212
  }, [
2239
- j.visible !== !1 ? (A(), Ie(S(Ra), {
2213
+ G.visible !== !1 ? (A(), Se(b(Oa), {
2240
2214
  key: 0,
2241
- value: j.value
2215
+ value: G.value
2242
2216
  }, {
2243
- default: z(() => [
2244
- Ue(se(j.label), 1)
2217
+ default: H(() => [
2218
+ Ie(B(G.label), 1)
2245
2219
  ]),
2246
2220
  _: 2
2247
- }, 1032, ["value"])) : B("", !0)
2221
+ }, 1032, ["value"])) : q("", !0)
2248
2222
  ], 64))), 128))
2249
2223
  ]),
2250
2224
  _: 1
@@ -2255,9 +2229,9 @@ const q = new Xa(), Y = (e, t) => {
2255
2229
  });
2256
2230
  export {
2257
2231
  Ft as $,
2258
- rs as A,
2259
- ns as B,
2260
- He as C,
2232
+ ns as A,
2233
+ rs as B,
2234
+ Ue as C,
2261
2235
  Ma as D,
2262
2236
  jt as E,
2263
2237
  tt as F,
@@ -2266,63 +2240,63 @@ export {
2266
2240
  Bt as I,
2267
2241
  at as J,
2268
2242
  ua as K,
2269
- Re as L,
2270
- Te as M,
2243
+ Oe as L,
2244
+ Re as M,
2271
2245
  zt as N,
2272
2246
  M as O,
2273
- U as P,
2274
- Ct as Q,
2247
+ N as P,
2248
+ Wt as Q,
2275
2249
  ut as R,
2276
2250
  ct as S,
2277
2251
  Yt as T,
2278
- Ce as U,
2252
+ We as U,
2279
2253
  Xt as V,
2280
2254
  ea as W,
2281
- Ut as X,
2255
+ Dt as X,
2282
2256
  aa as Y,
2283
2257
  kt as Z,
2284
2258
  as as _,
2285
2259
  es as a,
2286
- Ke as a0,
2260
+ Ve as a0,
2287
2261
  Lt as a1,
2288
2262
  Ht as a2,
2289
2263
  Ya as a3,
2290
- oa as a4,
2264
+ ia as a4,
2291
2265
  Qt as a5,
2292
2266
  Pt as a6,
2293
2267
  Ze as a7,
2294
2268
  $a as a8,
2295
2269
  $e as a9,
2296
- q as aa,
2297
- ee as ab,
2298
- ge as ac,
2299
- V as ad,
2270
+ j as aa,
2271
+ Z as ab,
2272
+ he as ac,
2273
+ D as ad,
2300
2274
  Zt as ae,
2301
- Je as af,
2302
- re as ag,
2275
+ Ke as af,
2276
+ te as ag,
2303
2277
  Nt as b,
2304
- Wt as c,
2305
- Dt as d,
2278
+ Ct as c,
2279
+ _t as d,
2306
2280
  Mt as e,
2307
2281
  Jt as f,
2308
2282
  Gt as g,
2309
2283
  Vt as h,
2310
2284
  P as i,
2311
- _t as j,
2312
- ia as k,
2313
- Ca as l,
2285
+ Ut as j,
2286
+ oa as k,
2287
+ Wa as l,
2314
2288
  Kt as m,
2315
2289
  ts as n,
2316
2290
  $t as o,
2317
- ce as p,
2291
+ ie as p,
2318
2292
  Na as q,
2319
- ne as r,
2320
- W as s,
2321
- de as t,
2322
- J as u,
2323
- Y as v,
2324
- pe as w,
2293
+ se as r,
2294
+ z as s,
2295
+ ce as t,
2296
+ K as u,
2297
+ W as v,
2298
+ ue as w,
2325
2299
  Ne as x,
2326
- fe as y,
2300
+ le as y,
2327
2301
  ss as z
2328
2302
  };