@skyfox2000/webui 1.2.5 → 1.2.7

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 (31) hide show
  1. package/README.md +441 -91
  2. package/lib/assets/modules/{file-upload-CoDWKNFQ.js → file-upload-D4bA7go8.js} +1 -1
  3. package/lib/assets/modules/{form-excel-DitXm4uj.js → form-excel-DL2_SNiS.js} +1 -1
  4. package/lib/assets/modules/{index-DG2jNBuv.js → index-BZvwPKou.js} +1 -1
  5. package/lib/assets/modules/{index-C4515EtU.js → index-CKMDsqve.js} +749 -735
  6. package/lib/assets/modules/{index-B5NckHoK.js → index-D16E7UbH.js} +2 -2
  7. package/lib/assets/modules/{menuTabs-BwX6S1WN.js → menuTabs-izaFx0kk.js} +196 -175
  8. package/lib/assets/modules/{toolIcon-B5Qojob9.js → toolIcon-66dclHit.js} +1 -1
  9. package/lib/assets/modules/{uploadList-BdeV2JlK.js → uploadList-Dw6eRrJT.js} +3 -3
  10. package/lib/components/common/icon/index.vue.d.ts +1 -1
  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/stores/appInfo.d.ts +2 -5
  18. package/lib/stores/userInfo.d.ts +3 -1
  19. package/lib/webui.css +1 -1
  20. package/lib/webui.es.js +279 -290
  21. package/package.json +2 -2
  22. package/src/components/layout/header/headerExits.vue +5 -4
  23. package/src/components/layout/header/index.vue +4 -2
  24. package/src/components/layout/header/user.vue +4 -1
  25. package/src/directives/permission.ts +6 -2
  26. package/src/router/index.ts +1 -11
  27. package/src/stores/appInfo.ts +87 -58
  28. package/src/stores/pageInfo.ts +1 -0
  29. package/src/stores/settingInfo.ts +1 -7
  30. package/src/stores/userInfo.ts +78 -53
  31. package/src/utils/main-openapis.ts +1 -9
@@ -1,23 +1,23 @@
1
- var ia = Object.defineProperty;
2
- var la = (e, t, a) => t in e ? ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var P = (e, t, a) => la(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { inject as G, ref as f, provide as me, watch as T, toRaw as Qe, h as C, nextTick as ua, shallowRef as Ge, defineComponent as W, reactive as ca, useAttrs as te, onMounted as se, onUnmounted as ne, createElementBlock as O, openBlock as x, createVNode as q, unref as E, mergeProps as re, withCtx as H, createCommentVNode as j, Fragment as B, renderList as Ae, createBlock as Re, normalizeClass as Ve, createTextVNode as Te, toDisplayString as J, createElementVNode as fa } from "vue";
1
+ var la = Object.defineProperty;
2
+ var ia = (e, t, a) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var k = (e, t, a) => ia(e, typeof t != "symbol" ? t + "" : t, a);
4
+ import { inject as G, ref as u, provide as ye, watch as R, toRaw as Qe, h as C, nextTick as ua, shallowRef as Ve, defineComponent as X, reactive as ca, useAttrs as ne, onMounted as oe, onUnmounted as le, createElementBlock as O, openBlock as A, createVNode as j, unref as x, mergeProps as ie, withCtx as Q, createCommentVNode as B, Fragment as J, renderList as Te, createBlock as Re, normalizeClass as Ge, createTextVNode as we, toDisplayString as z, createElementVNode as fa } from "vue";
5
5
  import { AutoComplete as pa, CheckboxGroup as da, Checkbox as ha, RadioGroup as ma, Radio as va, Select as ga, SelectOption as ya } from "ant-design-vue";
6
- import { createPinia as ba, defineStore as Y } from "pinia";
6
+ import { createPinia as ba, defineStore as Z } from "pinia";
7
7
  import Sa from "pinia-plugin-persistedstate";
8
- import { combineParams as we, isMicroApp as qe, mainAppApis as Ce, EnvConfig as De, AppAction as Fe, AppSource as Ne, isBaseMicroApp as Ue } from "@skyfox2000/microbase";
9
- import { ResStatus as A, httpPost as _, setToken as X, fieldMapping as Ia, parseFieldTemplate as Ea, API_HOST as ve, SERVER_HOST as xa } from "@skyfox2000/fapi";
8
+ import { combineParams as Pe, EnvConfig as te, AppAction as Ue, AppSource as Ce, isMicroApp as Ne, mainAppApis as D, isBaseMicroApp as Ia } from "@skyfox2000/microbase";
9
+ import { ResStatus as E, httpPost as K, setToken as be, fieldMapping as xa, parseFieldTemplate as Aa, API_HOST as Se, SERVER_HOST as Ea } from "@skyfox2000/fapi";
10
10
  import S from "vue-m-message";
11
11
  import Oe from "async-validator";
12
- import { createRouter as Aa, createWebHashHistory as Ra } from "vue-router";
12
+ import { createRouter as Ta, createWebHashHistory as Ra } from "vue-router";
13
13
  import "dayjs";
14
14
  import "vue-draggable-next";
15
- const Ta = ba();
16
- Ta.use(Sa);
17
- var $ = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))($ || {});
18
- const R = class R {
15
+ const wa = ba();
16
+ wa.use(Sa);
17
+ var U = /* @__PURE__ */ ((e) => (e.PageControl = "Page.PageControl", e.EditorControl = "Page.EditorControl", e.GridControl = "Page.GridControl", e.LabelText = "FormItem.LabelText", e.RuleKey = "FormItem.RuleKey", e.ErrInfo = "FormItem.ErrInfo", e))(U || {});
18
+ const T = class T {
19
19
  };
20
- P(R, "dict", {}), P(R, "Keys", {
20
+ k(T, "dict", {}), k(T, "Keys", {
21
21
  EnableDisable: "EnableDisable",
22
22
  SuccessResult: "SuccessResult",
23
23
  YesNo: "YesNo",
@@ -27,25 +27,25 @@ P(R, "dict", {}), P(R, "Keys", {
27
27
  * @param key 名称
28
28
  * @returns
29
29
  */
30
- P(R, "getOptions", (t) => R.dict[t]), /**
30
+ k(T, "getOptions", (t) => T.dict[t]), /**
31
31
  * 静态选择项对象
32
32
  * @param key 名称
33
33
  * @param value 值
34
34
  * @returns
35
35
  */
36
- P(R, "getOptionItem", (t, a) => R.dict[t].find((s) => s.value === a)), /**
36
+ k(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
- P(R, "setOptions", (t, a) => {
42
- R.dict[t] = a;
41
+ k(T, "setOptions", (t, a) => {
42
+ T.dict[t] = a;
43
43
  }), /**
44
44
  * 启用/停用选项
45
45
  * - 启用 1
46
46
  * - 停用 0
47
47
  */
48
- P(R, "EnableDisable", [
48
+ k(T, "EnableDisable", [
49
49
  {
50
50
  label: "启用",
51
51
  text: "✅ 启用",
@@ -61,7 +61,7 @@ P(R, "EnableDisable", [
61
61
  * - 成功 1
62
62
  * - 失败 0
63
63
  */
64
- P(R, "SuccessResult", [
64
+ k(T, "SuccessResult", [
65
65
  {
66
66
  label: "成功",
67
67
  text: "✅ 成功",
@@ -77,7 +77,7 @@ P(R, "SuccessResult", [
77
77
  * - 是 1
78
78
  * - 否 0
79
79
  */
80
- P(R, "YesNo", [
80
+ k(T, "YesNo", [
81
81
  {
82
82
  label: "是",
83
83
  text: "✅ 是",
@@ -93,7 +93,7 @@ P(R, "YesNo", [
93
93
  * - 男 M
94
94
  * - 女 F
95
95
  */
96
- P(R, "MaleFemale", [
96
+ k(T, "MaleFemale", [
97
97
  {
98
98
  label: "男",
99
99
  text: "男 👨",
@@ -105,12 +105,12 @@ P(R, "MaleFemale", [
105
105
  value: "F"
106
106
  }
107
107
  ]);
108
- let L = R;
109
- L.setOptions("EnableDisable", L.EnableDisable);
110
- L.setOptions("SuccessResult", L.SuccessResult);
111
- L.setOptions("YesNo", L.YesNo);
112
- L.setOptions("MaleFemale", L.MaleFemale);
113
- const oe = {
108
+ let M = T;
109
+ M.setOptions("EnableDisable", M.EnableDisable);
110
+ M.setOptions("SuccessResult", M.SuccessResult);
111
+ M.setOptions("YesNo", M.YesNo);
112
+ M.setOptions("MaleFemale", M.MaleFemale);
113
+ const ue = {
114
114
  /**
115
115
  * 自动接口加载数据
116
116
  * - 默认为true
@@ -202,29 +202,29 @@ const oe = {
202
202
  type: [String, Array],
203
203
  required: !1
204
204
  }
205
- }, D = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, ie = (e, t) => {
206
- var n;
205
+ }, w = (e) => e == null || e === "" ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1, ce = (e, t) => {
206
+ var r;
207
207
  return {
208
208
  url: "",
209
- ...(n = e.page.urls) == null ? void 0 : n[t.urlKey],
209
+ ...(r = e.page.urls) == null ? void 0 : r[t.urlKey],
210
210
  ...e.url,
211
211
  ...t.url,
212
212
  loadingText: t.loadingText
213
213
  };
214
- }, le = (e, t) => {
214
+ }, fe = (e, t) => {
215
215
  const a = e.page, s = t.url;
216
216
  if (!s || !s.url) {
217
- const r = `URL未设置: ${t.urlKey}`;
218
- return console.warn(r), Promise.reject(new Error(r));
217
+ const n = `URL未设置: ${t.urlKey}`;
218
+ return console.warn(n), Promise.reject(new Error(n));
219
219
  }
220
220
  s.api || (s.api = a.api), s.authorize === void 0 && (s.authorize = a.authorize);
221
- let n = JSON.parse(JSON.stringify(t.params));
222
- return t.processParams && (n = t.processParams(n)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), _(s, n).then((r) => (t.loadingState && (t.loadingState.value = !1), r)).catch((r) => (t.loadingState && (t.loadingState.value = !1), null));
223
- }, Pe = (e, t) => {
221
+ let r = JSON.parse(JSON.stringify(t.params));
222
+ return t.processParams && (r = t.processParams(r)), t.loadingState && (t.loadingState.value = !0), t.hideErrorToast && (s.hideErrorToast = !0), K(s, r).then((n) => (t.loadingState && (t.loadingState.value = !1), n)).catch((n) => (t.loadingState && (t.loadingState.value = !1), null));
223
+ }, ke = (e, t) => {
224
224
  t.params || (t.params = {}), t.params.Query || (t.params.Query = {});
225
- const a = ie(e, t);
226
- return t.url = a, le(e, t);
227
- }, At = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = ie(e, t), le(e, t).then((a) => ((a == null ? void 0 : a.status) === A.SUCCESS && (t.hideErrorToast || S.success("执行成功!")), a))), je = (e, t = {}) => {
225
+ const a = ce(e, t);
226
+ return t.url = a, fe(e, t);
227
+ }, At = (e, t) => (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), t.loadingText = t.loadingText === !1 ? !1 : t.loadingText || "开始执行...", t.url = ce(e, t), fe(e, t).then((a) => ((a == null ? void 0 : a.status) === E.SUCCESS && (t.hideErrorToast || S.success("执行成功!")), a))), qe = (e, t = {}) => {
228
228
  const a = t.primaryKey || "Id";
229
229
  if (t.params || (t.params = {}), t.params.Query || (t.params.Query = {}), !t.params.Data)
230
230
  return S.error("错误!无保存数据!"), Promise.resolve(null);
@@ -234,30 +234,30 @@ const oe = {
234
234
  loadingText: t.loadingText === !1 ? !1 : t.loadingText || "数据保存中..."
235
235
  };
236
236
  s.params.Query[a] = s.params.Data[a];
237
- const n = ie(e, s);
238
- return s.url = n, le(e, s).then((r) => ((r == null ? void 0 : r.status) === A.SUCCESS && (t.hideErrorToast || S.success("保存成功!")), r));
239
- }, wa = (e, t, a = {}) => {
237
+ const r = ce(e, s);
238
+ return s.url = r, fe(e, s).then((n) => ((n == null ? void 0 : n.status) === E.SUCCESS && (t.hideErrorToast || S.success("保存成功!")), n));
239
+ }, Pa = (e, t, a = {}) => {
240
240
  const s = a.primaryKey || "Id";
241
241
  a.params || (a.params = {}), a.params.Query || (a.params.Query = {});
242
- const n = {
242
+ const r = {
243
243
  ...a,
244
244
  urlKey: "delete",
245
245
  loadingText: a.loadingText === !1 ? !1 : a.loadingText || "数据删除中..."
246
246
  };
247
- if (Array.isArray(t) ? n.params.Query[s] = t : n.params.Query[s] = t[s], D(n.params.Query) || D(n.params.Query[s]))
247
+ if (Array.isArray(t) ? r.params.Query[s] = t : r.params.Query[s] = t[s], w(r.params.Query) || w(r.params.Query[s]))
248
248
  return S.error("错误!禁止无条件删除数据!"), Promise.resolve(null);
249
- const r = ie(e, n);
250
- return n.url = r, le(e, n).then((o) => ((o == null ? void 0 : o.status) === A.SUCCESS && (a.hideErrorToast || S.success("删除成功!")), o));
251
- }, Oa = (e, t) => Pe(e, {
249
+ const n = ce(e, r);
250
+ return r.url = n, fe(e, r).then((o) => ((o == null ? void 0 : o.status) === E.SUCCESS && (a.hideErrorToast || S.success("删除成功!")), o));
251
+ }, Oa = (e, t) => ke(e, {
252
252
  urlKey: "tree",
253
253
  params: {},
254
254
  loadingState: e.isTreeLoading,
255
255
  loadingText: !1,
256
- processParams: () => we(e.treeQuery, t)
257
- }).then((a) => (a == null ? void 0 : a.status) === A.SUCCESS ? (e.data.value = a.data, e.data.value) : []);
258
- let z;
259
- const Rt = (e) => {
260
- z = new Oe({}), z.messages({
256
+ processParams: () => Pe(e.treeQuery, t)
257
+ }).then((a) => (a == null ? void 0 : a.status) === E.SUCCESS ? (e.data.value = a.data, e.data.value) : []);
258
+ let W;
259
+ const Et = (e) => {
260
+ W = new Oe({}), W.messages({
261
261
  required: "${label}不能为空",
262
262
  types: {
263
263
  number: "${label}必须是数字"
@@ -284,146 +284,146 @@ const Rt = (e) => {
284
284
  ...e
285
285
  });
286
286
  }, Tt = (e) => {
287
- if (!e || D(e))
287
+ if (!e || w(e))
288
288
  return [];
289
- const t = [], a = z.messages(), s = (r, o, i) => {
290
- const l = o.type;
291
- if (l && a.types && l in a.types) {
292
- const c = a.types[l];
293
- n(c, r, { type: l }, i);
289
+ const t = [], a = W.messages(), s = (n, o, l) => {
290
+ const i = o.type;
291
+ if (i && a.types && i in a.types) {
292
+ const f = a.types[i];
293
+ r(f, n, { type: i }, l);
294
294
  }
295
- const u = ["string", "number", "array"];
296
- for (const c of u)
297
- if (l === c && a[c]) {
298
- const p = a[c], h = ["len", "min", "max", "range"];
299
- for (const v of h)
300
- v === "range" && o.min != null && o.max != null && p.range ? n(p.range, r, { min: o.min, max: o.max }, i) : v !== "range" && o[v] != null && p[v] && n(p[v], r, { [v]: o[v] }, i);
295
+ const c = ["string", "number", "array"];
296
+ for (const f of c)
297
+ if (i === f && a[f]) {
298
+ const p = a[f], v = ["len", "min", "max", "range"];
299
+ for (const g of v)
300
+ g === "range" && o.min != null && o.max != null && p.range ? r(p.range, n, { min: o.min, max: o.max }, l) : g !== "range" && o[g] != null && p[g] && r(p[g], n, { [g]: o[g] }, l);
301
301
  }
302
- if (o.required && a.required && n(a.required, r, {}, i), o.pattern && a.pattern && n(o.message, r, {}, i), o.enum && Array.isArray(o.enum) && a.enum) {
303
- const c = o.enum.join(", ");
304
- n(a.enum, r, { enum: c }, i);
302
+ if (o.required && a.required && r(a.required, n, {}, l), o.pattern && a.pattern && r(o.message, n, {}, l), o.enum && Array.isArray(o.enum) && a.enum) {
303
+ const f = o.enum.join(", ");
304
+ r(a.enum, n, { enum: f }, l);
305
305
  }
306
- }, n = (r, o, i, l) => {
307
- if (r)
306
+ }, r = (n, o, l, i) => {
307
+ if (n)
308
308
  try {
309
- let u;
310
- if (typeof r == "function") {
311
- const c = [o];
312
- for (const p in i)
313
- c.push(i[p]);
314
- u = r.apply(null, c), u && l.push(u);
309
+ let c;
310
+ if (typeof n == "function") {
311
+ const f = [o];
312
+ for (const p in l)
313
+ f.push(l[p]);
314
+ c = n.apply(null, f), c && i.push(c);
315
315
  } else {
316
- u = String(r);
317
- for (const c in i)
318
- u = u.replace(new RegExp(`\\$\\{${c}\\}`, "g"), i[c]);
319
- u = u.replace(/\$\{label\}/g, ""), u && l.push(u);
316
+ c = String(n);
317
+ for (const f in l)
318
+ c = c.replace(new RegExp(`\\$\\{${f}\\}`, "g"), l[f]);
319
+ c = c.replace(/\$\{label\}/g, ""), c && i.push(c);
320
320
  }
321
- } catch (u) {
322
- console.error("格式化验证消息出错:", u);
321
+ } catch (c) {
322
+ console.error("格式化验证消息出错:", c);
323
323
  }
324
324
  };
325
- return Object.keys(e).forEach((r) => {
326
- const o = e[r], i = [];
325
+ return Object.keys(e).forEach((n) => {
326
+ const o = e[n], l = [];
327
327
  try {
328
- s(r, o, i), Array.isArray(o) && o.forEach((u) => {
329
- u && typeof u == "object" && s(r, u, i);
328
+ s(n, o, l), Array.isArray(o) && o.forEach((c) => {
329
+ c && typeof c == "object" && s(n, c, l);
330
330
  }), o && typeof o == "object" && "fields" in o;
331
- } catch (u) {
332
- console.error("处理验证规则出错:", u);
331
+ } catch (c) {
332
+ console.error("处理验证规则出错:", c);
333
333
  }
334
- const l = Array.from(new Set(i));
335
- r && l.length > 0 && t.push({
336
- field: r,
337
- rules: l
334
+ const i = Array.from(new Set(l));
335
+ n && i.length > 0 && t.push({
336
+ field: n,
337
+ rules: i
338
338
  });
339
339
  }), t;
340
- }, ue = async (e) => {
340
+ }, pe = async (e) => {
341
341
  const t = e.formData.value, a = e.formRules.value;
342
- D(a) || (ke(e), e.ruleValidator || (e.ruleValidator = new Oe({}), e.ruleValidator.messages(z.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
342
+ w(a) || (Le(e), e.ruleValidator || (e.ruleValidator = new Oe({}), e.ruleValidator.messages(W.messages()), e.ruleValidator.define(a)), e.ruleResults.value = await e.ruleValidator.validate(t).then(() => {
343
343
  }).catch(({ fields: s }) => s));
344
- }, wt = async (e, t, a) => (a || (a = new Oe({}), a.messages(z.messages()), a.define(t)), a.validate(e).then(() => {
345
- }).catch(({ fields: s }) => s)), ke = (e) => {
344
+ }, Rt = async (e, t, a) => (a || (a = new Oe({}), a.messages(W.messages()), a.define(t)), a.validate(e).then(() => {
345
+ }).catch(({ fields: s }) => s)), Le = (e) => {
346
346
  e.ruleResults.value = void 0;
347
- }, ce = () => {
348
- const e = G($.EditorControl, void 0), t = f(G($.LabelText, "")), a = f(G($.RuleKey, "")), s = G($.ErrInfo, void 0);
347
+ }, de = () => {
348
+ const e = G(U.EditorControl, void 0), t = u(G(U.LabelText, "")), a = u(G(U.RuleKey, "")), s = G(U.ErrInfo, void 0);
349
349
  return {
350
350
  editorCtrl: e,
351
351
  labelText: t,
352
352
  ruleKey: a,
353
353
  errInfo: s
354
354
  };
355
- }, Pa = (e, t) => {
356
- let a = f({
355
+ }, ka = (e, t) => {
356
+ let a = u({
357
357
  msg: "",
358
358
  errClass: ""
359
359
  });
360
360
  if (!e.label || !e.rule)
361
361
  return a;
362
362
  const s = t == null ? void 0 : t.ruleResults;
363
- return T(
363
+ return R(
364
364
  () => s == null ? void 0 : s.value,
365
- (n) => {
366
- if (a.value.errClass = "", a.value.msg = "", !D(n)) {
367
- const r = ka(
365
+ (r) => {
366
+ if (a.value.errClass = "", a.value.msg = "", !w(r)) {
367
+ const n = La(
368
368
  {
369
369
  label: e.label,
370
370
  rule: e.rule
371
371
  },
372
372
  t == null ? void 0 : t.formRules.value,
373
- Qe(n)
373
+ Qe(r)
374
374
  );
375
- a.value.errClass = r.errClass.value, a.value.msg = r.msg.value;
375
+ a.value.errClass = n.errClass.value, a.value.msg = n.msg.value;
376
376
  }
377
377
  },
378
378
  { deep: !0 }
379
379
  ), a;
380
- }, ka = (e, t, a) => {
381
- const s = f([]), n = f(""), r = f("");
380
+ }, La = (e, t, a) => {
381
+ const s = u([]), r = u(""), n = u("");
382
382
  if (!e.rule || !t || !a)
383
- return { msg: n, ruleErrors: s, errClass: r };
384
- e.rule.split("|").forEach((l) => {
385
- if (l = l.trim(), l)
386
- if (a[l])
387
- s.value.push(...a[l]);
383
+ return { msg: r, ruleErrors: s, errClass: n };
384
+ e.rule.split("|").forEach((i) => {
385
+ if (i = i.trim(), i)
386
+ if (a[i])
387
+ s.value.push(...a[i]);
388
388
  else {
389
- const u = [];
390
- for (let c in a)
391
- c !== l && c.startsWith(l + ".") && u.push(...a[c]);
392
- u.length > 0 && s.value.push(...u);
389
+ const c = [];
390
+ for (let f in a)
391
+ f !== i && f.startsWith(i + ".") && c.push(...a[f]);
392
+ c.length > 0 && s.value.push(...c);
393
393
  }
394
394
  });
395
- const i = /\${\w+}/g;
396
- return s.value.forEach((l) => {
397
- n.value && (n.value += " / "), n.value += l.message.replace("${label}", e.label ?? "");
398
- const u = t[l.field];
399
- if (u) {
400
- const c = n.value.match(i);
401
- c && c.forEach((p) => {
402
- const h = p.replace("${", "").replace("}", "");
403
- n.value = n.value.replace(p, u[h] ?? "");
395
+ const l = /\${\w+}/g;
396
+ return s.value.forEach((i) => {
397
+ r.value && (r.value += " / "), r.value += i.message.replace("${label}", e.label ?? "");
398
+ const c = t[i.field];
399
+ if (c) {
400
+ const f = r.value.match(l);
401
+ f && f.forEach((p) => {
402
+ const v = p.replace("${", "").replace("}", "");
403
+ r.value = r.value.replace(p, c[v] ?? "");
404
404
  });
405
405
  }
406
- }), s.value.length > 0 && (r.value = "error"), { msg: n, ruleErrors: s, errClass: r };
407
- }, Ot = (e, t) => {
408
- me($.LabelText, e.label || ""), me($.RuleKey, e.rule || "");
409
- const a = Pa(e, t);
410
- return me($.ErrInfo, a), a;
406
+ }), s.value.length > 0 && (n.value = "error"), { msg: r, ruleErrors: s, errClass: n };
407
+ }, wt = (e, t) => {
408
+ ye(U.LabelText, e.label || ""), ye(U.RuleKey, e.rule || "");
409
+ const a = ka(e, t);
410
+ return ye(U.ErrInfo, a), a;
411
411
  }, Pt = (e) => {
412
- Be(e);
413
- }, kt = (e) => {
412
+ je(e);
413
+ }, Ot = (e) => {
414
414
  const t = e.page, a = e.formData.value;
415
- a[e.primaryKey ?? t.primaryKey] = null, Be(e);
416
- }, Lt = (e) => {
415
+ a[e.primaryKey ?? t.primaryKey] = null, je(e);
416
+ }, kt = (e) => {
417
417
  e.visible.value = !1;
418
- }, Be = async (e) => {
418
+ }, je = async (e) => {
419
419
  var s;
420
420
  const t = e.page;
421
- if (e.isFormSaving.value = !0, ke(e), e.beforeSave && e.beforeSave() === !1)
421
+ if (e.isFormSaving.value = !0, Le(e), e.beforeSave && e.beforeSave() === !1)
422
422
  return e.isFormSaving.value = !1, Promise.resolve();
423
- if (e.formRules.value && await ue(e), e.ruleResults.value)
423
+ if (e.formRules.value && await pe(e), e.ruleResults.value)
424
424
  return S.error("提交表单时,验证失败!"), console.error("表单验证失败!", e.ruleResults.value), e.isFormSaving.value = !1, Promise.resolve();
425
425
  const a = e.formData.value;
426
- return je(
426
+ return qe(
427
427
  {
428
428
  page: t,
429
429
  // 转换为AnyControl接口
@@ -440,134 +440,128 @@ const Rt = (e) => {
440
440
  // 隐藏自动错误提示,特殊判断控制
441
441
  loadingState: e.isFormSaving
442
442
  }
443
- ).then((n) => {
444
- var r, o;
445
- if ((n == null ? void 0 : n.status) === A.SUCCESS)
443
+ ).then((r) => {
444
+ var n, o;
445
+ if ((r == null ? void 0 : r.status) === E.SUCCESS)
446
446
  S.success("保存成功!"), e.grid && (e.grid.reload.value = !0), e.afterSave && e.afterSave(), e.autoClose !== !1 && (e.visible.value = !1);
447
- else if (n != null && n.msg && ((r = n == null ? void 0 : n.msg) == null ? void 0 : r.indexOf("Duplicate entry")) > -1) {
448
- const i = (o = n == null ? void 0 : n.msg) == null ? void 0 : o.match(/Duplicate entry '([^']+)' for key '([^']+)'/);
449
- if (i && i.length > 2 && i[1] && i[2]) {
450
- const l = i[1], u = i[2].replace(/Idx_/g, "").split("_"), c = e.formRules.value;
451
- if (c && u.length > 0) {
447
+ else if (r != null && r.msg && ((n = r == null ? void 0 : r.msg) == null ? void 0 : n.indexOf("Duplicate entry")) > -1) {
448
+ const l = (o = r == null ? void 0 : r.msg) == null ? void 0 : o.match(/Duplicate entry '([^']+)' for key '([^']+)'/);
449
+ if (l && l.length > 2 && l[1] && l[2]) {
450
+ const i = l[1], c = l[2].replace(/Idx_/g, "").split("_"), f = e.formRules.value;
451
+ if (f && c.length > 0) {
452
452
  const p = {};
453
- u.forEach((h) => {
454
- c[h] && (p[h] = [
453
+ c.forEach((v) => {
454
+ f[v] && (p[v] = [
455
455
  {
456
- field: h,
457
- fieldValue: l,
456
+ field: v,
457
+ fieldValue: i,
458
458
  message: "数据重复"
459
459
  }
460
460
  ]);
461
461
  }), Object.keys(p).length > 0 && (console.error("保存失败!", p), e.ruleResults.value = p);
462
462
  }
463
- S.error(`保存失败!数据 \`${l}\` 已存在!`);
464
- } else S.error((n == null ? void 0 : n.msg) ?? "保存失败!");
463
+ S.error(`保存失败!数据 \`${i}\` 已存在!`);
464
+ } else S.error((r == null ? void 0 : r.msg) ?? "保存失败!");
465
465
  } else
466
- S.error((n == null ? void 0 : n.msg) ?? "保存失败!");
466
+ S.error((r == null ? void 0 : r.msg) ?? "保存失败!");
467
467
  });
468
- }, Mt = async (e) => {
468
+ }, Lt = async (e) => {
469
469
  const t = e.page, a = e.grid;
470
470
  e.isFormLoading.value = !0;
471
- const s = e.formData.value, n = e.primaryKey ?? t.primaryKey;
472
- return ea(a, { [n]: s[n] }, e.detailUrl).then((r) => {
473
- e.isFormLoading.value = !1, r && Je(e, r);
471
+ const s = e.formData.value, r = e.primaryKey ?? t.primaryKey;
472
+ return ea(a, { [r]: s[r] }, e.detailUrl).then((n) => {
473
+ e.isFormLoading.value = !1, n && Be(e, n);
474
474
  });
475
- }, $t = (e) => {
475
+ }, Mt = (e) => {
476
476
  const t = e.grid;
477
- t && (t.rowData.value = void 0), e && (ze(e), e.visible && (e.visible.value = !1), setTimeout(() => {
477
+ t && (t.rowData.value = void 0), e && (Je(e), e.visible && (e.visible.value = !1), setTimeout(() => {
478
478
  e.visible.value = !0;
479
479
  }, 1));
480
- }, Je = (e, t) => {
481
- ze(e), e.formData.value = { ...e.formData.value, ...t };
482
- }, ze = (e) => {
483
- e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, ke(e);
484
- }, Ie = "/login/", ee = [], La = (e) => {
480
+ }, Be = (e, t) => {
481
+ Je(e), e.formData.value = { ...e.formData.value, ...t };
482
+ }, Je = (e) => {
483
+ e.formData.value = e.default ? JSON.parse(JSON.stringify(e.default)) : {}, Le(e);
484
+ }, se = "/login/", ae = [], Ma = (e) => {
485
485
  for (const t of e) {
486
- const a = ee.findIndex((s) => s.path === t.path);
487
- a !== -1 && ee.splice(a, 1), ee.push(t), N.addRoute(t);
486
+ const a = ae.findIndex((s) => s.path === t.path);
487
+ a !== -1 && ae.splice(a, 1), ae.push(t), Y.addRoute(t);
488
488
  }
489
- }, We = (e, t, a, s = "") => {
490
- const n = s + (s ? "/" : "") + e.path;
491
- t[n] = { ...e, parent: a }, e.children && e.children.forEach((r) => We(r, t, e, n));
492
- }, N = Aa({
489
+ }, ze = (e, t, a, s = "") => {
490
+ const r = s + (s ? "/" : "") + e.path;
491
+ t[r] = { ...e, parent: a }, e.children && e.children.forEach((n) => ze(n, t, e, r));
492
+ }, Y = Ta({
493
493
  history: Ra("/"),
494
- routes: ee
495
- }), Ma = (e, t) => {
496
- var n, r;
497
- const a = ((n = e.meta) == null ? void 0 : n.roles) ?? [], s = (r = e.meta) == null ? void 0 : r.permission;
494
+ routes: ae
495
+ }), $a = (e, t) => {
496
+ var r, n;
497
+ const a = ((r = e.meta) == null ? void 0 : r.roles) ?? [], s = (n = e.meta) == null ? void 0 : n.permission;
498
498
  if (!t)
499
499
  return a.length === 0 && !s;
500
500
  if (t) {
501
- const o = Q();
502
- if (De.VITE_PERMISSION_MODE === "role")
501
+ const o = _();
502
+ if (te.VITE_PERMISSION_MODE === "role")
503
503
  return a.length === 0 ? !0 : o.hasRole(a);
504
- if (De.VITE_PERMISSION_MODE === "permit") {
504
+ if (te.VITE_PERMISSION_MODE === "permit") {
505
505
  if (a.length === 0 && !s)
506
506
  return !0;
507
- let i = !1, l = !1;
508
- return a.length > 0 && (i = o.hasRole(a)), s && (l = o.hasPermit(e.path, ":page")), i || l;
507
+ let l = !1, i = !1;
508
+ return a.length > 0 && (l = o.hasRole(a)), s && (i = o.hasPermit(e.path, ":page")), l || i;
509
509
  }
510
510
  }
511
511
  return !1;
512
- }, V = f(null);
513
- N.beforeEach((e, t, a) => {
514
- var i;
512
+ }, q = u(null);
513
+ Y.beforeEach((e, t, a) => {
514
+ var l;
515
515
  const s = e;
516
- if (e.path.startsWith("/error/") || e.path.startsWith(Ie))
516
+ if (e.path.startsWith("/error/") || e.path.startsWith(se))
517
517
  return a();
518
- const n = s.meta, o = ((n == null ? void 0 : n.roles) ?? []).length > 0 || ((i = n == null ? void 0 : n.permission) == null ? void 0 : i.length);
518
+ const r = s.meta, o = ((r == null ? void 0 : r.roles) ?? []).length > 0 || ((l = r == null ? void 0 : r.permission) == null ? void 0 : l.length);
519
519
  if (e.path === "/") {
520
- const l = F();
521
- if (!l.menuLoaded) {
522
- V.value = {
520
+ const i = N();
521
+ if (!i.menuLoaded) {
522
+ q.value = {
523
523
  to: e,
524
- next: (u) => {
525
- a({ path: u });
524
+ next: (c) => {
525
+ a({ path: c });
526
526
  }
527
527
  };
528
528
  return;
529
529
  }
530
- l.toDefaultApp();
530
+ i.toDefaultApp();
531
531
  return;
532
532
  }
533
533
  if (!o)
534
534
  a();
535
535
  else {
536
- const l = Q();
537
- if (!l.isLogin)
538
- a({ path: Ie });
536
+ const i = _();
537
+ if (!i.isLogin)
538
+ a({ path: se });
539
539
  else {
540
- if (!F().menuLoaded) {
541
- V.value = {
540
+ if (!N().menuLoaded) {
541
+ q.value = {
542
542
  to: e,
543
543
  next: a
544
544
  };
545
545
  return;
546
546
  }
547
- const c = Ma(s, l.isLogin);
547
+ const f = $a(s, i.isLogin);
548
548
  a();
549
549
  }
550
550
  }
551
551
  });
552
- N.afterEach((e) => {
553
- if (qe() && Ce.value) {
554
- const { mainAppPush: t } = Ce.value;
555
- t && t(e.hash);
556
- }
557
- });
558
- const $a = (e) => {
559
- if (V.value) {
560
- const { to: t, next: a } = V.value;
561
- V.value = null, t.path === "/" ? a(e) : a(t.path);
552
+ const Da = (e) => {
553
+ if (q.value) {
554
+ const { to: t, next: a } = q.value;
555
+ q.value = null, t.path === "/" ? a(e) : a(t.path);
562
556
  }
563
- }, Ca = (e) => {
564
- const t = Le();
557
+ }, Ua = (e) => {
558
+ const t = Me();
565
559
  if (t.TabEnabled) {
566
- if (Da(e.key, t.TabPanes))
560
+ if (Ca(e.key, t.TabPanes))
567
561
  return;
568
562
  t.TabPanes.push(e);
569
563
  }
570
- }, Da = (e, t) => t.find((a) => a.key === e), Le = Y("pageInfo", {
564
+ }, Ca = (e, t) => t.find((a) => a.key === e), Me = Z("pageInfo", {
571
565
  state: () => ({
572
566
  TabActive: "",
573
567
  TabPanes: [],
@@ -580,16 +574,16 @@ const $a = (e) => {
580
574
  */
581
575
  removeTabPane(e) {
582
576
  if (this.TabEnabled) {
583
- F().excludeComponent(e);
577
+ N().excludeComponent(e);
584
578
  let a = 0, s = [...this.TabPanes];
585
- for (let n = 0; n < s.length; n++)
586
- if (s[n].key === e) {
587
- s.splice(n, 1), a = n - 1 < 0 ? 0 : n - 1;
579
+ for (let r = 0; r < s.length; r++)
580
+ if (s[r].key === e) {
581
+ s.splice(r, 1), a = r - 1 < 0 ? 0 : r - 1;
588
582
  break;
589
583
  }
590
- for (let n = 0; n < s.length; n++)
591
- if (s[n].key === this.TabActive) {
592
- a = n;
584
+ for (let r = 0; r < s.length; r++)
585
+ if (s[r].key === this.TabActive) {
586
+ a = r;
593
587
  break;
594
588
  }
595
589
  this.TabPanes = s, this.setTabActive(s[a].key);
@@ -601,7 +595,7 @@ const $a = (e) => {
601
595
  * @returns
602
596
  */
603
597
  async setTabActive(e) {
604
- let a = F().findRoute(e);
598
+ let a = N().findRoute(e);
605
599
  if (!a) return;
606
600
  const s = {
607
601
  key: e,
@@ -612,23 +606,31 @@ const $a = (e) => {
612
606
  // 默认为true
613
607
  keepAlive: !(a.meta && !a.meta.keepAlive)
614
608
  };
615
- Ca(s), this.TabActive = e;
609
+ Ua(s), this.TabActive = e;
616
610
  }
617
- }
618
- }), Fa = "appInfoStore", Na = {
611
+ },
612
+ persist: !1
613
+ }), Na = {
619
614
  appList: {
620
615
  api: "PLATFORM_API",
621
616
  authorize: !0,
622
617
  url: "/api/RCTenanetOpSrv/getApps",
623
618
  loadingText: !1
624
619
  }
625
- }, ge = /* @__PURE__ */ new Map(), Ee = (e, t) => e.map((a) => {
626
- var o, i, l, u, c, p, h, v;
627
- const s = { ...a };
628
- if (!((i = (o = s.meta) == null ? void 0 : o.roles) != null && i.length) && !((u = (l = s.meta) == null ? void 0 : l.permission) != null && u.length))
629
- return s.children && (s.children = Ee(s.children, t)), s;
630
- const n = (p = (c = s.meta) == null ? void 0 : c.roles) != null && p.length ? t.hasRole(s.meta.roles) : !1, r = (v = (h = s.meta) == null ? void 0 : h.permission) != null && v.length ? t.hasPermit(s.meta.permission, ":page") : !1;
631
- return n || r ? (s.children && (s.children = Ee(s.children, t)), s) : null;
620
+ }, Ie = /* @__PURE__ */ new Map(), Fa = (e) => {
621
+ const t = _(), { roles: a, permission: s } = e.meta || {};
622
+ if (w(a) && w(s))
623
+ return !0;
624
+ if (te.VITE_PERMISSION_MODE === "role")
625
+ return !w(a) && a ? t.hasRole(a) : !0;
626
+ if (te.VITE_PERMISSION_MODE === "permit") {
627
+ let r = !1, n = !1;
628
+ return !w(a) && a && (r = t.hasRole(a)), t.isAdmin() ? r : (!w(s) && s && (n = t.hasPermit(e.path, s)), r || n);
629
+ }
630
+ return !1;
631
+ }, We = (e) => e.map((t) => {
632
+ const a = { ...t };
633
+ return Fa(a) ? (a.children && (a.children = We(a.children)), a) : null;
632
634
  }).filter(Boolean), Ye = (e, t = "") => {
633
635
  for (const a of e) {
634
636
  if (!a.children && !a.redirect) {
@@ -641,18 +643,16 @@ const $a = (e) => {
641
643
  return s;
642
644
  }
643
645
  }
644
- }, F = Y("appInfo", {
646
+ }, N = Z("appInfo", {
645
647
  state: () => ({
646
- microRouter: null,
647
- microActions: {},
648
648
  appInfo: {
649
649
  Id: "",
650
650
  Name: "",
651
651
  AppCode: "",
652
652
  Version: "",
653
653
  Host: "",
654
- Source: Ne.Manual,
655
- Action: Fe.App,
654
+ Source: Ce.Manual,
655
+ Action: Ue.App,
656
656
  Path: "",
657
657
  Icon: "",
658
658
  Routes: [],
@@ -666,9 +666,6 @@ const $a = (e) => {
666
666
  menuLoaded: !1
667
667
  }),
668
668
  actions: {
669
- init(e, t) {
670
- this.microRouter = e, this.microActions = t;
671
- },
672
669
  /**
673
670
  * 加载授权应用列表
674
671
  */
@@ -680,13 +677,13 @@ const $a = (e) => {
680
677
  });
681
678
  },
682
679
  async getRemoteAppList() {
683
- return _(Na.appList, {
680
+ return K(Na.appList, {
684
681
  Query: {
685
682
  AppCode: this.appInfo.AppCode,
686
683
  Enabled: 1
687
684
  }
688
685
  }).then((e) => {
689
- (e == null ? void 0 : e.status) === A.SUCCESS && e.data && (this.appList.length = 0, this.appList.push(...e.data));
686
+ (e == null ? void 0 : e.status) === E.SUCCESS && e.data && (this.appList.length = 0, this.appList.push(...e.data));
690
687
  });
691
688
  },
692
689
  async toDefaultApp(e) {
@@ -697,14 +694,14 @@ const $a = (e) => {
697
694
  let t = "";
698
695
  const a = window.location.pathname.split("/");
699
696
  if (a.length > 1) {
700
- for (let n = a.length - 1; n >= 0; n--)
701
- if (a[n] !== "") {
702
- t = a[n];
697
+ for (let r = a.length - 1; r >= 0; r--)
698
+ if (a[r] !== "") {
699
+ t = a[r];
703
700
  break;
704
701
  }
705
702
  }
706
703
  let s = null;
707
- 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);
704
+ 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);
708
705
  },
709
706
  /**
710
707
  * 设置当前应用
@@ -719,7 +716,7 @@ const $a = (e) => {
719
716
  flattenRoutes: {},
720
717
  Routes: t ?? [],
721
718
  defaultPage: ""
722
- }), (!qe() || !Ue()) && (await (await Q()).getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
719
+ }), (!Ne() || !Ia()) && (await _().getRolePermits(a.Id), this.appInfo.Routes.length && this.setAppRoutes(this.appInfo.Routes)));
723
720
  },
724
721
  /**
725
722
  * 设置当前应用路由信息
@@ -733,16 +730,20 @@ const $a = (e) => {
733
730
  defaultPage: ""
734
731
  };
735
732
  const t = this.appInfo.flattenRoutes;
736
- for (const s of e)
737
- We(s, t, void 0);
738
- Object.keys(t).forEach((s) => {
739
- const n = t[s];
740
- n.children || !n.component || (n.meta && n.meta.keepAlive === !1 ? this.ExcludeComponents.push(s) : this.CachedComponents.push(s));
741
- });
742
- const a = Q();
743
- if (a.isLogin) {
744
- const s = Ee(this.appInfo.Routes, a);
745
- La(s), this.appInfo.defaultPage = Ye(s) || "", this.appInfo.defaultPage && (this.menuLoaded = !0, $a(this.appInfo.defaultPage));
733
+ for (const a of e)
734
+ ze(a, t, void 0);
735
+ if (Object.keys(t).forEach((a) => {
736
+ const s = t[a];
737
+ s.children || !s.component || (s.meta && s.meta.keepAlive === !1 ? this.ExcludeComponents.push(a) : this.CachedComponents.push(a));
738
+ }), _().isLogin) {
739
+ const a = We(this.appInfo.Routes);
740
+ if (Ma(a), this.appInfo.defaultPage = Ye(a) || "", this.appInfo.defaultPage) {
741
+ if (this.menuLoaded = !0, D.value && D.value.mainAppPush) {
742
+ const s = this.formatRoute(this.appInfo.defaultPage);
743
+ D.value.mainAppPush(s);
744
+ }
745
+ Da(this.appInfo.defaultPage);
746
+ }
746
747
  }
747
748
  },
748
749
  /**
@@ -759,8 +760,11 @@ const $a = (e) => {
759
760
  * @param path 路由地址
760
761
  */
761
762
  push(e) {
762
- this.findRoute(e) && Le().setTabActive(e), ua(() => {
763
- Ue() ? (e = this.formatRoute(e), this.microRouter ? this.microRouter.push({ path: e }) : N.push({ path: e })) : N.push({ path: e });
763
+ this.findRoute(e) && Me().setTabActive(e), ua(() => {
764
+ if (Y.push({ path: e }), D.value && D.value.mainAppPush) {
765
+ const a = this.formatRoute(e);
766
+ D.value.mainAppPush(a);
767
+ }
764
768
  });
765
769
  },
766
770
  /**
@@ -778,7 +782,7 @@ const $a = (e) => {
778
782
  * @returns 组件实例
779
783
  */
780
784
  cacheComponent(e, t) {
781
- let a = ge.get(t.path);
785
+ let a = Ie.get(t.path);
782
786
  if (!a)
783
787
  if (this.CachedComponents.includes(t.path))
784
788
  a = {
@@ -787,7 +791,7 @@ const $a = (e) => {
787
791
  render() {
788
792
  return C(e);
789
793
  }
790
- }, ge.set(t.path, a);
794
+ }, Ie.set(t.path, a);
791
795
  else return e;
792
796
  return a;
793
797
  },
@@ -796,7 +800,7 @@ const $a = (e) => {
796
800
  * @param path 路由地址
797
801
  */
798
802
  excludeComponent(e) {
799
- this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), ge.delete(e);
803
+ this.ExcludeComponents.includes(e) || this.ExcludeComponents.push(e), this.CachedComponents.splice(this.CachedComponents.indexOf(e), 1), Ie.delete(e);
800
804
  },
801
805
  /**
802
806
  * 路由路径层级查询,返回面包屑
@@ -809,15 +813,15 @@ const $a = (e) => {
809
813
  }
810
814
  return t.reverse();
811
815
  },
812
- clear() {
816
+ clean() {
813
817
  this.appInfo = {
814
818
  Id: "",
815
819
  Name: "",
816
820
  AppCode: "",
817
821
  Version: "",
818
822
  Host: "",
819
- Source: Ne.Manual,
820
- Action: Fe.App,
823
+ Source: Ce.Manual,
824
+ Action: Ue.App,
821
825
  Path: "",
822
826
  Icon: "",
823
827
  Routes: [],
@@ -827,15 +831,11 @@ const $a = (e) => {
827
831
  }, this.CachedComponents.splice(0, this.CachedComponents.length), this.ExcludeComponents.splice(0, this.ExcludeComponents.length), this.appList.splice(0, this.appList.length), this.menuLoaded = !1;
828
832
  },
829
833
  logout() {
830
- this.microRouter ? this.microActions && typeof this.microActions.login == "function" && this.microActions.login() : N.push({ path: Ie + "#/" });
834
+ this.clean(), Y.push({ path: se + "#/" }), Ne() && D.value && D.value.mainAppPush && D.value.mainAppPush(se + "#/");
831
835
  }
832
836
  },
833
- persist: {
834
- key: Fa,
835
- storage: localStorage,
836
- pick: ["appList"]
837
- }
838
- }), Ua = "userInfoStore", Xe = "Token解析失败", _e = "登录过期,请重新登录", Me = {
837
+ persist: !1
838
+ }), Xe = "Token解析失败", Fe = "登录过期,请重新登录", $e = {
839
839
  login: {
840
840
  api: "PLATFORM_API",
841
841
  url: "/openapi/LoginSrv/login",
@@ -855,23 +855,25 @@ const $a = (e) => {
855
855
  }
856
856
  }, _a = (e) => {
857
857
  let t = {
858
- Option: {},
858
+ Option: {
859
+ Mode: "MicroApp"
860
+ },
859
861
  Query: e
860
862
  };
861
- return _(Me.login, t).then((a) => (a == null ? void 0 : a.status) === A.SUCCESS ? a : null);
863
+ return K($e.login, t).then((a) => (a == null ? void 0 : a.status) === E.SUCCESS ? a : null);
862
864
  }, Ka = (e) => {
863
865
  let t = {
864
866
  Query: {
865
867
  AppId: e
866
868
  }
867
869
  };
868
- return _(Me.auth, t).then((a) => (a == null ? void 0 : a.status) === A.SUCCESS ? a.data : (S.error("获取授权信息失败," + (a == null ? void 0 : a.msg)), null));
870
+ return K($e.auth, t).then((a) => (a == null ? void 0 : a.status) === E.SUCCESS ? a.data : (S.error("获取授权信息失败," + (a == null ? void 0 : a.msg)), null));
869
871
  }, Ha = () => {
870
872
  let e = {
871
873
  Option: {},
872
874
  Query: {}
873
875
  };
874
- return _(Me.logout, e).then((t) => (t == null ? void 0 : t.status) === A.SUCCESS ? t.data : null);
876
+ return K($e.logout, e).then((t) => (t == null ? void 0 : t.status) === E.SUCCESS ? t.data : null);
875
877
  }, Qa = (e) => {
876
878
  try {
877
879
  const a = JSON.parse(atob(e.split(".")[1])).exp;
@@ -879,20 +881,20 @@ const $a = (e) => {
879
881
  } catch (t) {
880
882
  return console.error(Xe, t), !0;
881
883
  }
882
- }, ye = (e, t) => e == "" ? (S.error(_e, {
884
+ }, _e = (e, t) => e == "" ? (S.error(Fe, {
883
885
  duration: 3e3,
884
886
  onClose: t
885
- }), !1) : Qa(e) ? (S.error(_e, {
887
+ }), !1) : Qa(e) ? (S.error(Fe, {
886
888
  duration: 3e3,
887
889
  onClose: t
888
- }), !1) : !0, Ga = (e) => {
890
+ }), !1) : !0, Va = (e) => {
889
891
  try {
890
892
  const t = JSON.parse(atob(e.token.split(".")[1]));
891
893
  return t.user = JSON.parse(t.user), e.UserInfo = t.user, !0;
892
894
  } catch (t) {
893
895
  return console.error(Xe, t), !1;
894
896
  }
895
- }, k = f(null), Q = Y("userInfo", {
897
+ }, L = u(""), V = u(null), _ = Z("userInfo", {
896
898
  state: () => ({
897
899
  isLogin: !1,
898
900
  userInfo: {
@@ -900,18 +902,12 @@ const $a = (e) => {
900
902
  Name: "",
901
903
  Code: "",
902
904
  TenantId: null,
903
- UserLevel: "Guest"
905
+ UserLevel: ""
904
906
  },
905
907
  token: "",
906
908
  refreshToken: ""
907
909
  }),
908
910
  actions: {
909
- /**
910
- * 启动时初始化用户信息
911
- */
912
- init() {
913
- this.token && this.isLogin ? (ye(this.token, () => this.clean()), X(this.token)) : this.clean();
914
- },
915
911
  /**
916
912
  * 登录操作
917
913
  * @param loginInfo 登录信息
@@ -924,17 +920,17 @@ const $a = (e) => {
924
920
  if (s.errno)
925
921
  return s;
926
922
  {
927
- const n = a.data;
928
- if (this.token = n.token, X(this.token), this.isLogin = !0, Ga(n))
923
+ const r = a.data;
924
+ if (this.token = r.token, be(this.token), this.isLogin = !0, Va(r))
929
925
  this.userInfo = {
930
926
  ...this.userInfo,
931
- ...n.UserInfo
932
- };
927
+ ...r.UserInfo
928
+ }, L.value = r.UserInfo.UserLevel;
933
929
  else {
934
930
  S.error("用户信息解析失败");
935
931
  return;
936
932
  }
937
- t && (await F()).toDefaultApp();
933
+ t && N().toDefaultApp();
938
934
  }
939
935
  }
940
936
  },
@@ -946,13 +942,12 @@ const $a = (e) => {
946
942
  async getRolePermits(e) {
947
943
  if (!this.isLogin || !this.token)
948
944
  return !1;
949
- if (k.value && k.value.appId === e)
945
+ if (V.value && V.value.appId === e)
950
946
  return !0;
951
947
  try {
952
948
  const t = await Ka(e);
953
- return t ? (k.value = {
949
+ return t ? (V.value = {
954
950
  appId: e,
955
- level: this.userInfo.UserLevel,
956
951
  permits: t.permits || [],
957
952
  lastTime: t.lastTime
958
953
  }, !0) : !1;
@@ -966,16 +961,18 @@ const $a = (e) => {
966
961
  * @returns 是否有角色权限
967
962
  */
968
963
  hasRole(e) {
969
- return !k.value || !k.value.level ? !1 : Array.isArray(e) ? e.includes(k.value.level) : k.value.level === e;
964
+ return L.value ? Array.isArray(e) ? e.includes(L.value) : L.value === e : !1;
970
965
  },
971
966
  /**
972
967
  * 检查功能权限
968
+ * @param url 所在页面
973
969
  * @param permitCode 资源权限编码
974
970
  * @returns 是否有功能权限
975
971
  */
976
972
  hasPermit(e, t) {
977
- var a;
978
- return !k.value || !k.value.permits ? !1 : ((a = k.value.permits[e]) == null ? void 0 : a.includes(t)) ?? !1;
973
+ var s;
974
+ const a = V.value;
975
+ return !a || !a.permits ? !1 : ((s = a.permits[e]) == null ? void 0 : s.includes(t)) ?? !1;
979
976
  },
980
977
  /**
981
978
  * 获取用户信息
@@ -984,25 +981,50 @@ const $a = (e) => {
984
981
  getUserInfo() {
985
982
  return this.userInfo;
986
983
  },
984
+ /**
985
+ * 设置用户信息
986
+ * 仅允许设置一次,启动时设置,避免通过其它方式设置
987
+ * @param userInfo 用户信息
988
+ * @param token 用户Token
989
+ */
987
990
  setUserInfo(e, t) {
988
- if (!ye(t)) {
991
+ if (!_e(t)) {
989
992
  this.clean();
990
993
  return;
991
994
  }
992
- this.userInfo = {
995
+ L.value || (L.value = e.UserLevel, this.userInfo = {
993
996
  ...this.userInfo,
994
997
  ...e
995
- }, this.token = t, X(this.token), this.isLogin = !0;
998
+ }, this.token = t, be(this.token), this.isLogin = !0);
996
999
  },
997
1000
  /**
998
1001
  * 获取用户Token
999
1002
  * @returns 用户Token
1000
1003
  */
1001
1004
  getToken() {
1002
- return ye(this.token, () => {
1005
+ return _e(this.token, () => {
1003
1006
  this.clean(), this.logout();
1004
1007
  }) ? this.token : "";
1005
1008
  },
1009
+ /**
1010
+ * 是否超级管理员
1011
+ */
1012
+ isSuperAdmin() {
1013
+ return L.value === "Super";
1014
+ },
1015
+ /**
1016
+ * 是否管理员
1017
+ */
1018
+ isAdmin() {
1019
+ return L.value === "Super" || L.value === "Admin";
1020
+ },
1021
+ /**
1022
+ * 获取用户级别
1023
+ * @returns 用户级别
1024
+ */
1025
+ getUserLevel() {
1026
+ return L.value;
1027
+ },
1006
1028
  /*
1007
1029
  * 清理登录信息
1008
1030
  */
@@ -1013,7 +1035,7 @@ const $a = (e) => {
1013
1035
  Code: "",
1014
1036
  TenantId: "",
1015
1037
  UserLevel: ""
1016
- }, this.token = "", X(this.token), this.isLogin = !1, k.value = null, (await F()).clear(), Promise.resolve();
1038
+ }, this.token = "", be(this.token), this.isLogin = !1, V.value = null, L.value = "", N().clean(), Promise.resolve();
1017
1039
  },
1018
1040
  /**
1019
1041
  * 登出操作
@@ -1028,21 +1050,17 @@ const $a = (e) => {
1028
1050
  await this.clean(), setTimeout(async () => {
1029
1051
  S.success("已退出登录");
1030
1052
  }, 1e3), setTimeout(async () => {
1031
- (await F()).logout();
1053
+ N().logout();
1032
1054
  }, 2e3);
1033
1055
  }
1034
1056
  return Promise.resolve();
1035
1057
  }
1036
1058
  },
1037
- persist: {
1038
- key: Ua,
1039
- storage: localStorage,
1040
- pick: ["isLogin", "userInfo", "token", "refreshToken"]
1041
- }
1042
- }), Ct = (e, t) => {
1043
- const a = Q();
1059
+ persist: !1
1060
+ }), $t = (e, t) => {
1061
+ const a = _();
1044
1062
  return e.filter((s) => {
1045
- if (s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(N.currentRoute.value.path, s.permit))
1063
+ if (s.role && !a.hasRole(s.role) || s.permit && !a.hasPermit(Y.currentRoute.value.path, s.permit))
1046
1064
  return !1;
1047
1065
  if (!t) {
1048
1066
  if (s.visible === !1)
@@ -1054,26 +1072,26 @@ const $a = (e) => {
1054
1072
  });
1055
1073
  }, Dt = (e, t) => {
1056
1074
  const a = t == null ? void 0 : t.filter((s) => {
1057
- const n = e.find(
1058
- (r) => r.dataIndex === s.dataIndex || r.key === s.key || r.title === s.title
1075
+ const r = e.find(
1076
+ (n) => n.dataIndex === s.dataIndex || n.key === s.key || n.title === s.title
1059
1077
  );
1060
- return n ? { ...s, ...n } : !1;
1078
+ return r ? { ...s, ...r } : !1;
1061
1079
  });
1062
1080
  return [...a || [], ...e.filter((s) => !(a != null && a.includes(s)))];
1063
- }, Va = (e) => (e.remotePage = !1, Ze(e).then((t) => t.rows)), Ze = (e) => {
1081
+ }, Ga = (e) => (e.remotePage = !1, Ze(e).then((t) => t.rows)), Ze = (e) => {
1064
1082
  e.gridQuery || (e.gridQuery = {});
1065
1083
  const t = e.remotePage ? "find" : "list";
1066
- return Pe(e, {
1084
+ return ke(e, {
1067
1085
  urlKey: t,
1068
1086
  url: e.gridUrl,
1069
1087
  params: e.gridQuery,
1070
1088
  loadingState: e.isGridLoading,
1071
1089
  processParams: (a) => {
1072
- var n;
1073
- return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), we((n = e.gridUrl) == null ? void 0 : n.params, a, e.gridQuery);
1090
+ var r;
1091
+ return e.remotePage && (a.Query.$limit = [(e.pageNo.value - 1) * e.pageSize.value, e.pageSize.value]), Pe((r = e.gridUrl) == null ? void 0 : r.params, a, e.gridQuery);
1074
1092
  }
1075
1093
  }).then((a) => {
1076
- if ((a == null ? void 0 : a.status) === A.SUCCESS) {
1094
+ if ((a == null ? void 0 : a.status) === E.SUCCESS) {
1077
1095
  let s = a.data;
1078
1096
  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 = {
1079
1097
  total: e.total.value,
@@ -1085,7 +1103,7 @@ const $a = (e) => {
1085
1103
  rows: []
1086
1104
  };
1087
1105
  });
1088
- }, qa = (e, t, a = {}) => je(e, {
1106
+ }, qa = (e, t, a = {}) => qe(e, {
1089
1107
  urlKey: "update",
1090
1108
  url: e.updateUrl,
1091
1109
  params: {
@@ -1094,29 +1112,29 @@ const $a = (e) => {
1094
1112
  },
1095
1113
  loadingState: e.isGridSaving,
1096
1114
  ...a
1097
- }).then((s) => ((s == null ? void 0 : s.status) === A.SUCCESS && setTimeout(() => {
1115
+ }).then((s) => ((s == null ? void 0 : s.status) === E.SUCCESS && setTimeout(() => {
1098
1116
  e.reload.value = !0, e.afterUpdate && e.afterUpdate(t);
1099
- }, 50), s)), Ft = (e, t) => {
1117
+ }, 50), s)), Ut = (e, t) => {
1100
1118
  const a = {};
1101
1119
  return a[e.primaryKey] = t[e.primaryKey], a[e.statusKey] = t[e.statusKey], qa(e, a, {
1102
1120
  loadingText: !1,
1103
1121
  hideErrorToast: !0
1104
1122
  });
1105
- }, ea = async (e, t, a) => await Pe(e, {
1123
+ }, ea = async (e, t, a) => await ke(e, {
1106
1124
  urlKey: "detail",
1107
1125
  url: a,
1108
1126
  params: t,
1109
1127
  loadingState: e.isGridLoading
1110
- }), Nt = (e, t) => {
1128
+ }), Ct = (e, t) => {
1111
1129
  const a = t;
1112
- return ea(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === A.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1113
- }, Ut = (e, t) => {
1130
+ return ea(e, { [e.primaryKey]: a[e.primaryKey] }).then((s) => ((s == null ? void 0 : s.status) === E.SUCCESS && s.data && (e.expandRows.value[a[e.primaryKey]] = s), s));
1131
+ }, Nt = (e, t) => {
1114
1132
  let a = e.editor;
1115
- e.rowData.value = t, a && (Je(a, t), a.visible.value = !0);
1116
- }, _t = (e, t) => wa(e, t, {
1133
+ e.rowData.value = t, a && (Be(a, t), a.visible.value = !0);
1134
+ }, Ft = (e, t) => Pa(e, t, {
1117
1135
  url: e.deleteUrl,
1118
1136
  primaryKey: e.primaryKey
1119
- }).then((a) => ((a == null ? void 0 : a.status) === A.SUCCESS && setTimeout(() => {
1137
+ }).then((a) => ((a == null ? void 0 : a.status) === E.SUCCESS && setTimeout(() => {
1120
1138
  e.reload.value = !0, e.afterDelete && !Array.isArray(t) && e.afterDelete(t);
1121
1139
  }, 50), a)), y = {
1122
1140
  PageOption: {
@@ -1128,12 +1146,12 @@ const $a = (e) => {
1128
1146
  primaryKey: "Id",
1129
1147
  statusKey: "Enabled",
1130
1148
  remotePage: !0,
1131
- tableSize: f("small"),
1132
- selectable: f(!1),
1133
- searchBar: f(!0),
1134
- pageSize: f(10),
1135
- rowExpand: f(!1),
1136
- buttons: f(["New"]),
1149
+ tableSize: u("small"),
1150
+ selectable: u(!1),
1151
+ searchBar: u(!0),
1152
+ pageSize: u(10),
1153
+ rowExpand: u(!1),
1154
+ buttons: u(["New"]),
1137
1155
  tools: ["Reload", "RowHeight", "TableHeadset"],
1138
1156
  operates: ["Edit", "Delete"]
1139
1157
  },
@@ -1147,7 +1165,7 @@ const $a = (e) => {
1147
1165
  TreeOption: {
1148
1166
  autoload: !0
1149
1167
  }
1150
- }, Kt = (e) => {
1168
+ }, _t = (e) => {
1151
1169
  y.PageOption = {
1152
1170
  ...y.PageOption,
1153
1171
  ...e.pageOption
@@ -1166,66 +1184,66 @@ const $a = (e) => {
1166
1184
  ...y.EditorOption,
1167
1185
  name: "",
1168
1186
  default: a ? JSON.parse(JSON.stringify(a)) : void 0,
1169
- visible: f(!1),
1187
+ visible: u(!1),
1170
1188
  page: t,
1171
- formData: f(a ? JSON.parse(JSON.stringify(a)) : void 0),
1172
- formRules: f(s),
1173
- ruleResults: f({}),
1174
- updateData: f(void 0),
1189
+ formData: u(a ? JSON.parse(JSON.stringify(a)) : void 0),
1190
+ formRules: u(s),
1191
+ ruleResults: u({}),
1192
+ updateData: u(void 0),
1175
1193
  saveUrl: e.urls.save,
1176
1194
  detailUrl: e.urls.detail,
1177
- isFormSaving: f(!1),
1178
- isFormLoading: f(!1)
1195
+ isFormSaving: u(!1),
1196
+ isFormLoading: u(!1)
1179
1197
  }
1180
1198
  }), Ba = (e, t, a) => {
1181
1199
  const s = {
1182
1200
  ...y.GridOption,
1183
- tableSize: f(y.GridOption.tableSize.value),
1184
- selectable: f(y.GridOption.selectable.value),
1185
- searchBar: f(y.GridOption.searchBar.value),
1186
- pageSize: f(y.GridOption.pageSize.value),
1187
- rowExpand: f(y.GridOption.rowExpand.value),
1188
- buttons: f([...y.GridOption.buttons.value]),
1201
+ tableSize: u(y.GridOption.tableSize.value),
1202
+ selectable: u(y.GridOption.selectable.value),
1203
+ searchBar: u(y.GridOption.searchBar.value),
1204
+ pageSize: u(y.GridOption.pageSize.value),
1205
+ rowExpand: u(y.GridOption.rowExpand.value),
1206
+ buttons: u([...y.GridOption.buttons.value]),
1189
1207
  tools: [...y.GridOption.tools],
1190
1208
  operates: [...y.GridOption.operates],
1191
- columns: f(a || []),
1192
- reload: f(!1),
1193
- pageNo: f(1),
1194
- total: f(0),
1209
+ columns: u(a || []),
1210
+ reload: u(!1),
1211
+ pageNo: u(1),
1212
+ total: u(0),
1195
1213
  page: t,
1196
- selectKeys: f([]),
1197
- selectRows: f([]),
1198
- rowData: f(void 0),
1214
+ selectKeys: u([]),
1215
+ selectRows: u([]),
1216
+ rowData: u(void 0),
1199
1217
  gridQuery: {},
1200
- tableData: Ge(void 0),
1201
- expandRows: f({}),
1202
- isGridLoading: f(!1),
1203
- isGridSaving: f(!1),
1218
+ tableData: Ve(void 0),
1219
+ expandRows: u({}),
1220
+ isGridLoading: u(!1),
1221
+ isGridSaving: u(!1),
1204
1222
  gridUrl: e.urls.list || e.urls.find,
1205
1223
  updateUrl: e.urls.update,
1206
1224
  deleteUrl: e.urls.delete
1207
1225
  };
1208
- return T(
1226
+ return R(
1209
1227
  () => s.reload.value,
1210
- (n) => {
1211
- n && (setTimeout(() => {
1228
+ (r) => {
1229
+ r && (setTimeout(() => {
1212
1230
  s.reload.value = !1;
1213
- }, 1), s.remotePage ? Ze(s) : Va(s));
1231
+ }, 1), s.remotePage ? Ze(s) : Ga(s));
1214
1232
  }
1215
1233
  ), {
1216
1234
  gridCtrl: s
1217
1235
  };
1218
- }, Ht = (e, t) => {
1236
+ }, Kt = (e, t) => {
1219
1237
  const a = {
1220
1238
  ...y.TreeOption,
1221
- reload: f(!1),
1239
+ reload: u(!1),
1222
1240
  page: t,
1223
- node: f(void 0),
1241
+ node: u(void 0),
1224
1242
  url: e.urls.tree,
1225
- data: Ge(void 0),
1226
- isTreeLoading: f(!1)
1243
+ data: Ve(void 0),
1244
+ isTreeLoading: u(!1)
1227
1245
  };
1228
- return T(
1246
+ return R(
1229
1247
  () => a.reload.value,
1230
1248
  (s) => {
1231
1249
  s && (setTimeout(() => {
@@ -1235,23 +1253,23 @@ const $a = (e) => {
1235
1253
  ), {
1236
1254
  treeCtrl: a
1237
1255
  };
1238
- }, Qt = (e, t, a) => {
1256
+ }, Ht = (e, t, a) => {
1239
1257
  for (const o in e.urls)
1240
1258
  e.urls[o] && (e.urls[o].api || (e.urls[o].api = e.api), e.urls[o].authorize === void 0 && (e.urls[o].authorize = e.authorize));
1241
1259
  const s = {
1242
1260
  ...y.PageOption,
1243
1261
  ...e
1244
- }, { editorCtrl: n } = ja(e, s, t, a), { gridCtrl: r } = Ba(e, s);
1245
- return s.editor = n, s.grid = r, r.editor = n, r.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], n.grid = r, {
1262
+ }, { editorCtrl: r } = ja(e, s, t, a), { gridCtrl: n } = Ba(e, s);
1263
+ return s.editor = r, s.grid = n, n.editor = r, n.tools = ["Reload", "RowHeight", "TableHeadset", "Fullscreen"], r.grid = n, {
1246
1264
  pageCtrl: s,
1247
- editorCtrl: n,
1248
- gridCtrl: r
1265
+ editorCtrl: r,
1266
+ gridCtrl: n
1249
1267
  };
1250
1268
  };
1251
1269
  var aa = /* @__PURE__ */ ((e) => (e.SelectReload = "Select.Reload", e.RadioReload = "Radio.Reload", e.CheckboxReload = "Checkbox.Reload", e.TreeSelectReload = "TreeSelect.Reload", e.TreeCheckReload = "TreeCheck.Reload", e))(aa || {});
1252
1270
  class Ja {
1253
1271
  constructor() {
1254
- P(this, "listeners", {});
1272
+ k(this, "listeners", {});
1255
1273
  }
1256
1274
  // 检查事件名是否符合前缀
1257
1275
  isValidPrefix(t) {
@@ -1295,51 +1313,51 @@ class Ja {
1295
1313
  this.listeners[t] && this.listeners[t].forEach((s) => s(t, ...a));
1296
1314
  }
1297
1315
  }
1298
- const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1299
- if (s && t.reloadEvent && (s.reloadHandler = (o, i) => {
1300
- za(n, t, i, a);
1301
- }, ae.on(t.reloadEvent, s.reloadHandler)), t.data)
1302
- T(
1316
+ const re = new Ja(), he = (e, t, a, s, r, n) => {
1317
+ if (s && t.reloadEvent && (s.reloadHandler = (o, l) => {
1318
+ za(r, t, l, a);
1319
+ }, re.on(t.reloadEvent, s.reloadHandler)), t.data)
1320
+ R(
1303
1321
  () => t.data,
1304
1322
  () => {
1305
- $e(t, t.data, a, !0);
1323
+ De(t, t.data, a, !0);
1306
1324
  },
1307
1325
  { deep: !0, immediate: !0 }
1308
1326
  );
1309
- else if (n && n.url)
1310
- e !== !1 && ta(n, t, r ?? {}, a);
1327
+ else if (r && r.url)
1328
+ e !== !1 && ta(r, t, n ?? {}, a);
1311
1329
  else {
1312
- const o = f(G($.LabelText, ""));
1330
+ const o = u(G(U.LabelText, ""));
1313
1331
  S.error("`" + o.value + "` 未配置选项数据!", {
1314
1332
  duration: 5e3
1315
1333
  });
1316
1334
  }
1317
- }, $e = (e, t, a, s) => {
1335
+ }, De = (e, t, a, s) => {
1318
1336
  if (!t || t.length === 0) {
1319
1337
  a.value = [];
1320
1338
  return;
1321
1339
  }
1322
1340
  if (s) {
1323
- const n = {
1341
+ const r = {
1324
1342
  ...e.fieldMap
1325
1343
  };
1326
- t = Ia(n, t);
1344
+ t = xa(r, t);
1327
1345
  }
1328
1346
  t = JSON.parse(JSON.stringify(t)), e.all && t.unshift({
1329
1347
  label: "全部",
1330
1348
  value: void 0
1331
1349
  }), a.value = t;
1332
1350
  }, za = (e, t, a, s) => {
1333
- Array.isArray(a) ? $e(t, a, s, !0) : ta(e, t, { Query: a }, s);
1334
- }, pe = (e, t) => {
1335
- t && e.reloadEvent && t.reloadHandler && ae.off(e.reloadEvent, t.reloadHandler);
1351
+ Array.isArray(a) ? De(t, a, s, !0) : ta(e, t, { Query: a }, s);
1352
+ }, me = (e, t) => {
1353
+ t && e.reloadEvent && t.reloadHandler && re.off(e.reloadEvent, t.reloadHandler);
1336
1354
  }, ta = (e, t, a, s) => {
1337
- const n = we(e.params, a, t.params);
1338
- Wa(e, t.fieldMap, n).then((r) => {
1339
- $e(t, r, s, !1);
1355
+ const r = Pe(e.params, a, t.params);
1356
+ Wa(e, t.fieldMap, r).then((n) => {
1357
+ De(t, n, s, !1);
1340
1358
  });
1341
1359
  }, Wa = (e, t, a) => {
1342
- const { fieldMap: s, ...n } = e, o = {
1360
+ const { fieldMap: s, ...r } = e, o = {
1343
1361
  ...{
1344
1362
  url: "",
1345
1363
  cacheTime: 6e4,
@@ -1348,49 +1366,49 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1348
1366
  ...e.fieldMap
1349
1367
  }
1350
1368
  },
1351
- ...n
1369
+ ...r
1352
1370
  };
1353
- return o.loadingText = !1, a || (a = {}), a.Query || (a.Query = {}), _(o, a).then((i) => (i == null ? void 0 : i.status) === A.SUCCESS && i.data ? i.data : []);
1371
+ return o.loadingText = !1, a || (a = {}), a.Query || (a.Query = {}), K(o, a).then((l) => (l == null ? void 0 : l.status) === E.SUCCESS && l.data ? l.data : []);
1354
1372
  }, Ya = (e, t) => {
1355
1373
  if (e !== void 0)
1356
1374
  return Array.isArray(e) ? t.filter((a) => e.includes(a.value)) : t.find((a) => a.value === e);
1357
- }, be = (e, t, a) => {
1375
+ }, xe = (e, t, a) => {
1358
1376
  const s = t.split(".");
1359
- let n = e;
1360
- for (let r = 0; r < s.length - 1; r++) {
1361
- const o = s[r];
1362
- n[o] || (n[o] = {}), n = n[o];
1377
+ let r = e;
1378
+ for (let n = 0; n < s.length - 1; n++) {
1379
+ const o = s[n];
1380
+ r[o] || (r[o] = {}), r = r[o];
1363
1381
  }
1364
- n[s[s.length - 1]] = a;
1382
+ r[s[s.length - 1]] = a;
1365
1383
  }, sa = (e, t, a) => {
1366
1384
  if (a == null) {
1367
1385
  Object.entries(t).forEach(([s]) => {
1368
- be(e, s, a);
1386
+ xe(e, s, a);
1369
1387
  });
1370
1388
  return;
1371
1389
  }
1372
- Array.isArray(a) || Object.entries(t).forEach(([s, n]) => {
1373
- if (n.includes("${")) {
1374
- const r = Ea(n, a);
1375
- be(e, s, r);
1390
+ Array.isArray(a) || Object.entries(t).forEach(([s, r]) => {
1391
+ if (r.includes("${")) {
1392
+ const n = Aa(r, a);
1393
+ xe(e, s, n);
1376
1394
  } else
1377
- be(e, s, a[n]);
1395
+ xe(e, s, a[r]);
1378
1396
  });
1379
- }, de = (e, t, a, s) => {
1380
- var r;
1381
- s.editorCtrl && ((r = s.errInfo) != null && r.value.errClass) && ue(s.editorCtrl);
1382
- const n = Ya(t, a.value);
1383
- return e.formData && e.outFields && sa(e.formData, e.outFields, n), e.changeEvent && (Array.isArray(e.changeEvent) ? e.changeEvent.every((o) => {
1384
- ae.emit(o, t, n);
1385
- }) : ae.emit(e.changeEvent, t, n)), s.inputEmit && s.inputEmit("change", t, n), n;
1386
- }, he = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], Xa = 7 * 24 * 60 * 60 * 1e3, Se = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Set(), U = f({}), Gt = U, Vt = (e) => {
1397
+ }, ve = (e, t, a, s) => {
1387
1398
  var n;
1388
- if (!e.iconUrl) return xe;
1389
- const t = f(!0), a = f("");
1399
+ s.editorCtrl && ((n = s.errInfo) != null && n.value.errClass) && pe(s.editorCtrl);
1400
+ const r = Ya(t, a.value);
1401
+ return e.formData && e.outFields && sa(e.formData, e.outFields, r), e.changeEvent && (Array.isArray(e.changeEvent) ? e.changeEvent.every((o) => {
1402
+ re.emit(o, t, r);
1403
+ }) : re.emit(e.changeEvent, t, r)), s.inputEmit && s.inputEmit("change", t, r), r;
1404
+ }, ge = (e) => e === void 0 ? [] : Array.isArray(e) ? e.map((t) => t.label) : [e.label], Xa = 7 * 24 * 60 * 60 * 1e3, Ae = /* @__PURE__ */ new Map(), Ke = /* @__PURE__ */ new Set(), F = u({}), Qt = F, Vt = (e) => {
1405
+ var r;
1406
+ if (!e.iconUrl) return Ee;
1407
+ const t = u(!0), a = u("");
1390
1408
  let s = !0;
1391
- return (n = e.icons) != null && n.length && (s = e.icons.every((r) => U.value[r] !== void 0)), (e.icon && !U.value[e.icon] || !s) && Za(e, t).then(() => {
1409
+ return (r = e.icons) != null && r.length && (s = e.icons.every((n) => F.value[n] !== void 0)), (e.icon && !F.value[e.icon] || !s) && Za(e, t).then(() => {
1392
1410
  tt(e.iconUrl, e.monoColor || !1), t.value = !0;
1393
- }), W({
1411
+ }), X({
1394
1412
  props: {
1395
1413
  icon: {
1396
1414
  type: String
@@ -1416,48 +1434,48 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1416
1434
  }
1417
1435
  },
1418
1436
  emits: ["update:iconIndex"],
1419
- setup(r, { emit: o }) {
1420
- const i = f(r.icon), l = f(0), u = () => {
1421
- r.icons && l.value++;
1437
+ setup(n, { emit: o }) {
1438
+ const l = u(n.icon), i = u(0), c = () => {
1439
+ n.icons && i.value++;
1422
1440
  };
1423
- return T(
1424
- () => r.iconIndex,
1425
- (c) => {
1426
- c !== void 0 && (l.value = c);
1441
+ return R(
1442
+ () => n.iconIndex,
1443
+ (f) => {
1444
+ f !== void 0 && (i.value = f);
1427
1445
  },
1428
1446
  { immediate: !0 }
1429
- ), T(
1430
- () => l.value,
1431
- (c) => {
1432
- r.icons && (c >= r.icons.length && (l.value = 0), i.value = r.icons[l.value], Z(a, i, i.value), o("update:iconIndex", l.value));
1447
+ ), R(
1448
+ () => i.value,
1449
+ (f) => {
1450
+ n.icons && (f >= n.icons.length && (i.value = 0), l.value = n.icons[i.value], ee(a, l, l.value), o("update:iconIndex", i.value));
1433
1451
  },
1434
1452
  { immediate: !0 }
1435
- ), T(
1436
- () => U.value,
1453
+ ), R(
1454
+ () => F.value,
1437
1455
  () => {
1438
- Z(a, i, i.value);
1456
+ ee(a, l, l.value);
1439
1457
  },
1440
1458
  { deep: !0 }
1441
- ), T(
1442
- () => r.icon,
1443
- (c) => {
1444
- Z(a, i, c);
1459
+ ), R(
1460
+ () => n.icon,
1461
+ (f) => {
1462
+ ee(a, l, f);
1445
1463
  }
1446
- ), Z(a, i, i.value), { isLoaded: t, Icon: a, handleClick: u };
1464
+ ), ee(a, l, l.value), { isLoaded: t, Icon: a, handleClick: c };
1447
1465
  },
1448
1466
  render() {
1449
1467
  if (!t.value)
1450
- return xe;
1451
- let r = this.class, o = "";
1452
- Array.isArray(r) ? o = r.join(" ") : typeof r == "string" && (o = r);
1453
- let i = [o];
1454
- return !/\bw-/.test(o) && !/$w-/.test(o) && i.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && i.push("h-4"), a.value ? C(Qe(a.value), {
1468
+ return Ee;
1469
+ let n = this.class, o = "";
1470
+ Array.isArray(n) ? o = n.join(" ") : typeof n == "string" && (o = n);
1471
+ let l = [o];
1472
+ return !/\bw-/.test(o) && !/$w-/.test(o) && l.push("w-4"), !/\bh-/.test(o) && !/$h-/.test(o) && l.push("h-4"), a.value ? C(Qe(a.value), {
1455
1473
  onClick: this.$props.clickable ? this.handleClick : void 0,
1456
- class: `${i.join(" ")}`,
1474
+ class: `${l.join(" ")}`,
1457
1475
  style: {
1458
1476
  fill: "currentColor",
1459
1477
  cursor: this.$props.clickable ? "pointer" : "default",
1460
- transform: nt(this.angle, this.flip)
1478
+ transform: rt(this.angle, this.flip)
1461
1479
  }
1462
1480
  }) : C("div", { class: "w-[14px] h-[14px]" });
1463
1481
  }
@@ -1466,16 +1484,16 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1466
1484
  let a = e.iconUrl;
1467
1485
  if (!a)
1468
1486
  return console.error("图标库地址不能为空"), Promise.resolve();
1469
- if (Se.has(a))
1487
+ if (Ae.has(a))
1470
1488
  return Promise.resolve();
1471
- const s = ra(a);
1489
+ const s = na(a);
1472
1490
  if (s)
1473
- return new Promise(async (r) => (na(s.scriptContent), r()));
1491
+ return new Promise(async (n) => (ra(s.scriptContent), n()));
1474
1492
  t.value = !1;
1475
- const n = new Promise(async (r) => {
1476
- await et(a, e.monoColor || !1), r(), Se.delete(a);
1493
+ const r = new Promise(async (n) => {
1494
+ await et(a, e.monoColor || !1), n(), Ae.delete(a);
1477
1495
  });
1478
- return Se.set(a, n), n;
1496
+ return Ae.set(a, r), r;
1479
1497
  }, et = async (e, t) => {
1480
1498
  try {
1481
1499
  const a = await fetch(e);
@@ -1485,53 +1503,53 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1485
1503
  }
1486
1504
  let s = await a.text();
1487
1505
  s = t ? s.replace(/fill=\"[^\"]*\"/gi, "") : s;
1488
- let n = /^window\.(\w+)\s*=/;
1489
- const r = s.match(n);
1490
- if (r && r.length > 1) {
1491
- let o = r[1];
1506
+ let r = /^window\.(\w+)\s*=/;
1507
+ const n = s.match(r);
1508
+ if (n && n.length > 1) {
1509
+ let o = n[1];
1492
1510
  at(e, o, t, s);
1493
1511
  }
1494
- na(s);
1512
+ ra(s);
1495
1513
  return;
1496
1514
  } catch (a) {
1497
1515
  return console.error("网络异常,无法加载图标库:", a), null;
1498
1516
  }
1499
- }, na = (e) => {
1517
+ }, ra = (e) => {
1500
1518
  const t = document.createElement("script");
1501
1519
  t.textContent = e, document.head.appendChild(t);
1502
1520
  }, at = (e, t, a, s) => {
1503
- let n = `icon_cache:${e}`;
1504
- const r = {
1521
+ let r = `icon_cache:${e}`;
1522
+ const n = {
1505
1523
  windowKey: t,
1506
1524
  monoColor: a,
1507
1525
  scriptContent: s,
1508
1526
  expireTime: Date.now() + Xa
1509
1527
  // 缓存时间:7天
1510
1528
  };
1511
- localStorage.setItem(n, JSON.stringify(r));
1512
- }, ra = (e) => {
1529
+ localStorage.setItem(r, JSON.stringify(n));
1530
+ }, na = (e) => {
1513
1531
  let t = `icon_cache:${e}`;
1514
1532
  const a = localStorage.getItem(t);
1515
1533
  if (!a) return null;
1516
1534
  let s;
1517
1535
  try {
1518
1536
  s = JSON.parse(a);
1519
- } catch (n) {
1520
- return console.error("解析缓存失败:", n), null;
1537
+ } catch (r) {
1538
+ return console.error("解析缓存失败:", r), null;
1521
1539
  }
1522
1540
  return s.expireTime < Date.now() ? (localStorage.removeItem(e), null) : s;
1523
- }, qt = () => {
1541
+ }, Gt = () => {
1524
1542
  const e = Date.now();
1525
1543
  for (const t in localStorage)
1526
1544
  if (t.startsWith("icon_cache:")) {
1527
1545
  const a = localStorage.getItem(t);
1528
1546
  a && JSON.parse(a).expireTime < e && localStorage.removeItem(t);
1529
1547
  }
1530
- }, Z = (e, t, a) => {
1548
+ }, ee = (e, t, a) => {
1531
1549
  setTimeout(() => {
1532
- t.value = a, t.value && (e.value = U.value[t.value]);
1550
+ t.value = a, t.value && (e.value = F.value[t.value]);
1533
1551
  }, 1);
1534
- }, xe = C(
1552
+ }, Ee = C(
1535
1553
  "svg",
1536
1554
  { class: "w-4 h-4", viewBox: "0 0 50 50", style: { animation: "rotate 2s linear infinite" } },
1537
1555
  [
@@ -1552,55 +1570,55 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1552
1570
  })
1553
1571
  ]
1554
1572
  ), tt = (e, t) => {
1555
- const a = ra(e);
1573
+ const a = na(e);
1556
1574
  Object.keys(window).forEach((s) => {
1557
1575
  s.startsWith("_iconfont_svg_string_") && (a == null ? void 0 : a.windowKey) === s && !Ke.has(s) && (Ke.add(s), st(s, t));
1558
1576
  });
1559
1577
  }, st = (e, t) => {
1560
- const a = window[e], r = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
1561
- for (const i of r) {
1562
- const l = i.id, u = Array.from(o).find((c) => c.id === l);
1563
- u && t && (u.innerHTML = i.innerHTML, u.querySelectorAll("*").forEach((c) => {
1564
- c.hasAttribute("fill") && c.removeAttribute("fill");
1565
- })), U.value[l] || (U.value[l] = C("svg", { fill: "currentColor" }, [C("use", { "xlink:href": `#${l}` })]));
1578
+ const a = window[e], n = new DOMParser().parseFromString(a, "image/svg+xml").getElementsByTagName("symbol"), o = document.querySelectorAll("symbol");
1579
+ for (const l of n) {
1580
+ const i = l.id, c = Array.from(o).find((f) => f.id === i);
1581
+ c && t && (c.innerHTML = l.innerHTML, c.querySelectorAll("*").forEach((f) => {
1582
+ f.hasAttribute("fill") && f.removeAttribute("fill");
1583
+ })), F.value[i] || (F.value[i] = C("svg", { fill: "currentColor" }, [C("use", { "xlink:href": `#${i}` })]));
1566
1584
  }
1567
- }, nt = (e, t) => {
1585
+ }, rt = (e, t) => {
1568
1586
  let a = "";
1569
1587
  return e && (a += `rotate(${e}deg)`), t && (a += " scaleX(-1)"), a;
1570
- }, jt = (e, t, a, s) => {
1571
- oa(e, [], a, s).forEach((r) => t.push(r));
1588
+ }, qt = (e, t, a, s) => {
1589
+ oa(e, [], a, s).forEach((n) => t.push(n));
1572
1590
  }, oa = (e, t, a, s) => {
1573
- var o, i, l, u, c;
1574
- const n = [], r = Q();
1591
+ var o, l, i, c, f;
1592
+ const r = [], n = _();
1575
1593
  for (const p of e) {
1576
- if (p.redirect || p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (i = (o = p.meta) == null ? void 0 : o.roles) != null && i.length && !r.hasRole(p.meta.roles) && (l = p.meta) != null && l.permission && !r.hasPermit(p.meta.permission, ":page"))
1594
+ if (p.redirect || p.path.includes("/login") || p.path.includes("/error") || p.path.includes("/:page(.*)") || (l = (o = p.meta) == null ? void 0 : o.roles) != null && l.length && !n.hasRole(p.meta.roles) && (i = p.meta) != null && i.permission && !n.hasPermit(p.meta.permission, ":page"))
1577
1595
  continue;
1578
- const h = p.path.split("/");
1579
- h.unshift(...t);
1580
- const v = oa(p.children || [], h, a, s), w = {
1581
- key: h.join("/"),
1582
- label: ((u = p.name) == null ? void 0 : u.toString()) ?? "",
1583
- title: ((c = p.name) == null ? void 0 : c.toString()) ?? "",
1596
+ const v = p.path.split("/");
1597
+ v.unshift(...t);
1598
+ const g = oa(p.children || [], v, a, s), P = {
1599
+ key: v.join("/"),
1600
+ label: ((c = p.name) == null ? void 0 : c.toString()) ?? "",
1601
+ title: ((f = p.name) == null ? void 0 : f.toString()) ?? "",
1584
1602
  icon: p.icon ? C(a, { ...s, icon: p.icon }) : void 0,
1585
- children: v.length > 0 ? v : void 0
1603
+ children: g.length > 0 ? g : void 0
1586
1604
  };
1587
- (v.length > 0 || !p.children) && n.push(w);
1605
+ (g.length > 0 || !p.children) && r.push(P);
1588
1606
  }
1589
- return n;
1590
- }, He = ca([]), Bt = () => {
1607
+ return r;
1608
+ }, He = ca([]), jt = () => {
1591
1609
  He.length = 0;
1592
- const e = F();
1593
- let a = Le().TabActive;
1594
- e.matchedRoutes(a).forEach((n, r) => {
1595
- var i;
1610
+ const e = N();
1611
+ let a = Me().TabActive;
1612
+ e.matchedRoutes(a).forEach((r, n) => {
1613
+ var l;
1596
1614
  const o = {
1597
- index: r,
1598
- path: n.path,
1599
- breadcrumbName: ((i = n.name) == null ? void 0 : i.toString()) ?? ""
1615
+ index: n,
1616
+ path: r.path,
1617
+ breadcrumbName: ((l = r.name) == null ? void 0 : l.toString()) ?? ""
1600
1618
  };
1601
1619
  He.push(o);
1602
1620
  });
1603
- }, rt = {
1621
+ }, nt = {
1604
1622
  host: {
1605
1623
  api: "SITEHOST_API",
1606
1624
  url: "/openapi/RCSiteHostSrv/get",
@@ -1612,7 +1630,7 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1612
1630
  // 不显示错误
1613
1631
  hideErrorToast: !0
1614
1632
  }
1615
- }, Jt = Y("hostInfo", {
1633
+ }, Bt = Z("hostInfo", {
1616
1634
  state: () => ({
1617
1635
  hostInfo: {
1618
1636
  Host: "",
@@ -1636,15 +1654,15 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1636
1654
  return;
1637
1655
  }
1638
1656
  return new Promise((s) => {
1639
- ve.SITEHOST_API || (ve.SITEHOST_API = e);
1640
- const n = t || window.location.origin;
1641
- _(rt.host, {
1657
+ Se.SITEHOST_API || (Se.SITEHOST_API = e);
1658
+ const r = t || window.location.origin;
1659
+ K(nt.host, {
1642
1660
  Query: {
1643
- Host: n
1661
+ Host: r
1644
1662
  }
1645
- }).then((r) => {
1646
- if ((r == null ? void 0 : r.status) === A.SUCCESS && r.data) {
1647
- const o = r.data;
1663
+ }).then((n) => {
1664
+ if ((n == null ? void 0 : n.status) === E.SUCCESS && n.data) {
1665
+ const o = n.data;
1648
1666
  this._setHostInfo(o);
1649
1667
  }
1650
1668
  s();
@@ -1659,9 +1677,9 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1659
1677
  ...this.hostInfo,
1660
1678
  ...e
1661
1679
  }, this.hostInfo.API_HOST)
1662
- for (const t in this.hostInfo.API_HOST) ve[t] = this.hostInfo.API_HOST[t];
1680
+ for (const t in this.hostInfo.API_HOST) Se[t] = this.hostInfo.API_HOST[t];
1663
1681
  if (this.hostInfo.SERVER_HOST)
1664
- for (const t in this.hostInfo.SERVER_HOST) xa[t] = this.hostInfo.SERVER_HOST[t];
1682
+ for (const t in this.hostInfo.SERVER_HOST) Ea[t] = this.hostInfo.SERVER_HOST[t];
1665
1683
  },
1666
1684
  getHostInfo() {
1667
1685
  return this.hostInfo;
@@ -1674,7 +1692,7 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1674
1692
  // storage: localStorage,
1675
1693
  // pick: ['hostInfo'],
1676
1694
  // },
1677
- }), ot = "settingInfoStore", zt = Y("settingInfo", {
1695
+ }), Jt = Z("settingInfo", {
1678
1696
  state: () => ({
1679
1697
  fullscreen: !1,
1680
1698
  menuCollapse: !1,
@@ -1715,16 +1733,12 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1715
1733
  });
1716
1734
  }
1717
1735
  },
1718
- persist: {
1719
- key: ot,
1720
- storage: localStorage,
1721
- pick: ["fullscreen", "menuCollapse", "tableColumns"]
1722
- }
1723
- }), Wt = /* @__PURE__ */ W({
1736
+ persist: !1
1737
+ }), zt = /* @__PURE__ */ X({
1724
1738
  inheritAttrs: !1,
1725
1739
  __name: "index",
1726
1740
  props: {
1727
- ...oe,
1741
+ ...ue,
1728
1742
  autoload: {
1729
1743
  type: Boolean,
1730
1744
  default: !1
@@ -1758,78 +1772,78 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1758
1772
  },
1759
1773
  emits: ["update:value", "select", "change", "update:labels"],
1760
1774
  setup(e, { emit: t }) {
1761
- var w, m, b;
1762
- const a = e, s = te(), n = f({
1775
+ var P, h, b;
1776
+ const a = e, s = ne(), r = u({
1763
1777
  ...a.url,
1764
- url: ((w = a.url) == null ? void 0 : w.url) || "",
1765
- fieldMap: a.fieldMap || ((m = a.url) == null ? void 0 : m.fieldMap),
1778
+ url: ((P = a.url) == null ? void 0 : P.url) || "",
1779
+ fieldMap: a.fieldMap || ((h = a.url) == null ? void 0 : h.fieldMap),
1766
1780
  params: a.params || ((b = a.url) == null ? void 0 : b.params),
1767
1781
  loadingText: !1
1768
- }), r = f(void 0);
1769
- T(
1782
+ }), n = u(void 0);
1783
+ R(
1770
1784
  () => a.value,
1771
1785
  () => {
1772
- r.value = a.value;
1786
+ n.value = a.value;
1773
1787
  },
1774
1788
  { immediate: !0 }
1775
- ), T(
1776
- () => r.value,
1777
- (g) => {
1778
- a.autoClean && a.formData && a.outFields && g !== a.value && sa(a.formData, a.outFields, null);
1789
+ ), R(
1790
+ () => n.value,
1791
+ (m) => {
1792
+ a.autoClean && a.formData && a.outFields && m !== a.value && sa(a.formData, a.outFields, null);
1779
1793
  }
1780
1794
  );
1781
- const o = ce(), { editorCtrl: i, errInfo: l, labelText: u } = o, c = t;
1782
- o.inputEmit = c;
1783
- const p = f([]), h = (g) => {
1784
- var M;
1785
- if (p.value = [], g === "") return;
1786
- let d = g.trim(), I = {
1787
- ...n.value.params,
1795
+ const o = de(), { editorCtrl: l, errInfo: i, labelText: c } = o, f = t;
1796
+ o.inputEmit = f;
1797
+ const p = u([]), v = (m) => {
1798
+ var $;
1799
+ if (p.value = [], m === "") return;
1800
+ let d = m.trim(), I = {
1801
+ ...r.value.params,
1788
1802
  Query: {
1789
- ...(M = n.value.params) == null ? void 0 : M.Query
1803
+ ...($ = r.value.params) == null ? void 0 : $.Query
1790
1804
  }
1791
1805
  };
1792
1806
  a.searchField && (I.Query[a.searchField] = {
1793
1807
  $like: "%" + d + "%"
1794
- }), a.onsearch && a.onsearch(d, I), fe(!0, a, p, o, n.value, I);
1795
- }, v = (g) => {
1796
- const d = de(a, g, p, o);
1797
- c("update:value", g), c("select", g);
1798
- const I = he(d);
1799
- c("update:labels", I), l != null && l.value.errClass && i && ue(i);
1808
+ }), a.onsearch && a.onsearch(d, I), he(!0, a, p, o, r.value, I);
1809
+ }, g = (m) => {
1810
+ const d = ve(a, m, p, o);
1811
+ f("update:value", m), f("select", m);
1812
+ const I = ge(d);
1813
+ f("update:labels", I), i != null && i.value.errClass && l && pe(l);
1800
1814
  };
1801
- return se(() => {
1802
- n.value && !n.value.fieldMap && (n.value.fieldMap = {
1815
+ return oe(() => {
1816
+ r.value && !r.value.fieldMap && (r.value.fieldMap = {
1803
1817
  title: "Name",
1804
1818
  label: "Name",
1805
1819
  value: "Name",
1806
1820
  key: "Id"
1807
1821
  });
1808
- }), ne(() => {
1809
- pe(a, o);
1810
- }), (g, d) => {
1822
+ }), le(() => {
1823
+ me(a, o);
1824
+ }), (m, d) => {
1811
1825
  var I;
1812
- return x(), O("div", null, [
1813
- q(E(pa), re({
1814
- value: r.value,
1815
- "onUpdate:value": d[0] || (d[0] = (M) => r.value = M),
1816
- class: [(I = E(l)) == null ? void 0 : I.errClass, "error w-full"],
1826
+ return A(), O("div", null, [
1827
+ j(x(pa), ie({
1828
+ value: n.value,
1829
+ "onUpdate:value": d[0] || (d[0] = ($) => n.value = $),
1830
+ class: [(I = x(i)) == null ? void 0 : I.errClass, "error w-full"],
1817
1831
  options: p.value,
1818
- onSearch: h,
1819
- onSelect: v,
1820
- placeholder: a.url && !a.url.loading ? "请输入并选择" + E(u) : ""
1821
- }, E(s)), null, 16, ["value", "class", "options", "placeholder"])
1832
+ onSearch: v,
1833
+ onSelect: g,
1834
+ placeholder: a.url && !a.url.loading ? "请输入并选择" + x(c) : ""
1835
+ }, x(s)), null, 16, ["value", "class", "options", "placeholder"])
1822
1836
  ]);
1823
1837
  };
1824
1838
  }
1825
- }), it = { class: "min-h-[32px] pt-[5px]" }, lt = {
1839
+ }), ot = { class: "min-h-[32px] pt-[5px]" }, lt = {
1826
1840
  key: 1,
1827
1841
  class: "text-center text-gray-500"
1828
- }, Yt = /* @__PURE__ */ W({
1842
+ }, Wt = /* @__PURE__ */ X({
1829
1843
  inheritAttrs: !1,
1830
1844
  __name: "index",
1831
1845
  props: {
1832
- ...oe,
1846
+ ...ue,
1833
1847
  nodata: {
1834
1848
  type: String,
1835
1849
  default: ""
@@ -1846,66 +1860,66 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1846
1860
  },
1847
1861
  emits: ["change", "update:labels"],
1848
1862
  setup(e, { emit: t }) {
1849
- var c, p, h;
1850
- const a = e, s = te(), n = f({
1863
+ var f, p, v;
1864
+ const a = e, s = ne(), r = u({
1851
1865
  ...a.url,
1852
- url: ((c = a.url) == null ? void 0 : c.url) || "",
1866
+ url: ((f = a.url) == null ? void 0 : f.url) || "",
1853
1867
  fieldMap: a.fieldMap || ((p = a.url) == null ? void 0 : p.fieldMap),
1854
- params: a.params || ((h = a.url) == null ? void 0 : h.params),
1868
+ params: a.params || ((v = a.url) == null ? void 0 : v.params),
1855
1869
  loadingText: !1
1856
- }), r = ce(), { errInfo: o } = r, i = t;
1857
- r.inputEmit = i;
1858
- const l = f([]), u = (v) => {
1859
- const m = de(a, v, l, r), b = he(m);
1860
- i("update:labels", b);
1870
+ }), n = de(), { errInfo: o } = n, l = t;
1871
+ n.inputEmit = l;
1872
+ const i = u([]), c = (g) => {
1873
+ const h = ve(a, g, i, n), b = ge(h);
1874
+ l("update:labels", b);
1861
1875
  };
1862
- return se(() => {
1863
- n.value && !n.value.fieldMap && (n.value.fieldMap = {
1876
+ return oe(() => {
1877
+ r.value && !r.value.fieldMap && (r.value.fieldMap = {
1864
1878
  title: "Name",
1865
1879
  label: "Name",
1866
1880
  value: "Id",
1867
1881
  key: "Id"
1868
- }), fe(a.autoload, a, l, r, n.value, n.value.params);
1869
- }), ne(() => {
1870
- pe(a, r);
1871
- }), (v, w) => (x(), O("div", it, [
1872
- q(E(da), re({
1873
- onChange: u,
1882
+ }), he(a.autoload, a, i, n, r.value, r.value.params);
1883
+ }), le(() => {
1884
+ me(a, n);
1885
+ }), (g, P) => (A(), O("div", ot, [
1886
+ j(x(da), ie({
1887
+ onChange: c,
1874
1888
  class: "w-full mb-[-3px]"
1875
- }, E(s)), {
1876
- default: H(() => [
1877
- l.value.length > 0 ? (x(!0), O(B, { key: 0 }, Ae(l.value, (m) => {
1889
+ }, x(s)), {
1890
+ default: Q(() => [
1891
+ i.value.length > 0 ? (A(!0), O(J, { key: 0 }, Te(i.value, (h) => {
1878
1892
  var b;
1879
- return x(), Re(E(ha), {
1880
- key: m.value,
1881
- value: m.value,
1882
- disabled: m.disabled || m.value && e.disabledItems && e.disabledItems.indexOf(m.value.toString()) > -1,
1883
- class: Ve([
1884
- ((b = E(o)) == null ? void 0 : b.errClass) === "error" ? "error !text-red-400" : "",
1893
+ return A(), Re(x(ha), {
1894
+ key: h.value,
1895
+ value: h.value,
1896
+ disabled: h.disabled || h.value && e.disabledItems && e.disabledItems.indexOf(h.value.toString()) > -1,
1897
+ class: Ge([
1898
+ ((b = x(o)) == null ? void 0 : b.errClass) === "error" ? "error !text-red-400" : "",
1885
1899
  "text-nowrap",
1886
1900
  "pb-1",
1887
1901
  e.wrap ? `w-1/${a.wrap}` : ""
1888
1902
  ])
1889
1903
  }, {
1890
- default: H(() => [
1891
- Te(J(m.label), 1)
1904
+ default: Q(() => [
1905
+ we(z(h.label), 1)
1892
1906
  ]),
1893
1907
  _: 2
1894
1908
  }, 1032, ["value", "disabled", "class"]);
1895
- }), 128)) : e.nodata ? (x(), O("div", lt, J(e.nodata), 1)) : j("", !0)
1909
+ }), 128)) : e.nodata ? (A(), O("div", lt, z(e.nodata), 1)) : B("", !0)
1896
1910
  ]),
1897
1911
  _: 1
1898
1912
  }, 16)
1899
1913
  ]));
1900
1914
  }
1901
- }), ut = { class: "min-h-[32px] pt-1" }, ct = {
1915
+ }), it = { class: "min-h-[32px] pt-1" }, ut = {
1902
1916
  key: 1,
1903
1917
  class: "text-center text-gray-500"
1904
- }, Xt = /* @__PURE__ */ W({
1918
+ }, Yt = /* @__PURE__ */ X({
1905
1919
  inheritAttrs: !1,
1906
1920
  __name: "index",
1907
1921
  props: {
1908
- ...oe,
1922
+ ...ue,
1909
1923
  value: {
1910
1924
  type: [String, Number, null, Array],
1911
1925
  default: void 0
@@ -1923,84 +1937,84 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
1923
1937
  },
1924
1938
  emits: ["change", "update:value", "update:labels"],
1925
1939
  setup(e, { emit: t }) {
1926
- var h, v, w;
1927
- const a = e, s = te(), n = f({
1940
+ var v, g, P;
1941
+ const a = e, s = ne(), r = u({
1928
1942
  ...a.url,
1929
- url: ((h = a.url) == null ? void 0 : h.url) || "",
1930
- fieldMap: a.fieldMap || ((v = a.url) == null ? void 0 : v.fieldMap),
1931
- params: a.params || ((w = a.url) == null ? void 0 : w.params),
1943
+ url: ((v = a.url) == null ? void 0 : v.url) || "",
1944
+ fieldMap: a.fieldMap || ((g = a.url) == null ? void 0 : g.fieldMap),
1945
+ params: a.params || ((P = a.url) == null ? void 0 : P.params),
1932
1946
  loadingText: !1
1933
- }), r = f(a.value), o = ce(), { errInfo: i } = o, l = f([]), u = t;
1934
- o.inputEmit = u, T(
1935
- () => r.value,
1936
- (m) => {
1937
- u("update:value", m);
1947
+ }), n = u(a.value), o = de(), { errInfo: l } = o, i = u([]), c = t;
1948
+ o.inputEmit = c, R(
1949
+ () => n.value,
1950
+ (h) => {
1951
+ c("update:value", h);
1938
1952
  }
1939
1953
  );
1940
- const c = (m, b) => {
1941
- if (typeof m == "object" && typeof b == "object") {
1942
- const g = JSON.stringify(m) === JSON.stringify(b);
1943
- return g && (r.value = m), g;
1954
+ const f = (h, b) => {
1955
+ if (typeof h == "object" && typeof b == "object") {
1956
+ const m = JSON.stringify(h) === JSON.stringify(b);
1957
+ return m && (n.value = h), m;
1944
1958
  }
1945
- return m === b;
1946
- }, p = (m) => {
1947
- const b = m.target.value, g = de(a, b, l, o), d = he(g);
1948
- u("update:labels", d);
1959
+ return h === b;
1960
+ }, p = (h) => {
1961
+ const b = h.target.value, m = ve(a, b, i, o), d = ge(m);
1962
+ c("update:labels", d);
1949
1963
  };
1950
- return se(() => {
1951
- var m;
1952
- n.value && !n.value.fieldMap && (n.value.fieldMap = {
1964
+ return oe(() => {
1965
+ var h;
1966
+ r.value && !r.value.fieldMap && (r.value.fieldMap = {
1953
1967
  label: "Name",
1954
1968
  value: "Id",
1955
1969
  key: "Id"
1956
- }), fe(a.autoload, a, l, o, n.value, (m = n.value) == null ? void 0 : m.params);
1957
- }), ne(() => {
1958
- pe(a, o);
1959
- }), (m, b) => (x(), O("div", ut, [
1960
- q(E(ma), re({
1961
- value: r.value,
1962
- "onUpdate:value": b[0] || (b[0] = (g) => r.value = g),
1970
+ }), he(a.autoload, a, i, o, r.value, (h = r.value) == null ? void 0 : h.params);
1971
+ }), le(() => {
1972
+ me(a, o);
1973
+ }), (h, b) => (A(), O("div", it, [
1974
+ j(x(ma), ie({
1975
+ value: n.value,
1976
+ "onUpdate:value": b[0] || (b[0] = (m) => n.value = m),
1963
1977
  autocheck: !1,
1964
1978
  onChange: p,
1965
1979
  class: "w-full flex align-items flex-wrap mb-[-3px]"
1966
- }, E(s)), {
1967
- default: H(() => [
1968
- l.value.length > 0 ? (x(!0), O(B, { key: 0 }, Ae(l.value, (g) => {
1980
+ }, x(s)), {
1981
+ default: Q(() => [
1982
+ i.value.length > 0 ? (A(!0), O(J, { key: 0 }, Te(i.value, (m) => {
1969
1983
  var d;
1970
- return x(), O(B, {
1971
- key: g.value
1984
+ return A(), O(J, {
1985
+ key: m.value
1972
1986
  }, [
1973
- g.visible !== !1 ? (x(), Re(E(va), {
1987
+ m.visible !== !1 ? (A(), Re(x(va), {
1974
1988
  key: 0,
1975
- checked: c(g.value, a.value),
1976
- value: g.value,
1977
- class: Ve([
1978
- ((d = E(i)) == null ? void 0 : d.errClass) === "error" ? "error !text-red-400" : "",
1989
+ checked: f(m.value, a.value),
1990
+ value: m.value,
1991
+ class: Ge([
1992
+ ((d = x(l)) == null ? void 0 : d.errClass) === "error" ? "error !text-red-400" : "",
1979
1993
  "text-nowrap",
1980
1994
  "pb-1",
1981
1995
  e.wrap ? `w-1/${a.wrap}` : ""
1982
1996
  ])
1983
1997
  }, {
1984
- default: H(() => [
1985
- Te(J(g.label), 1)
1998
+ default: Q(() => [
1999
+ we(z(m.label), 1)
1986
2000
  ]),
1987
2001
  _: 2
1988
- }, 1032, ["checked", "value", "class"])) : j("", !0)
2002
+ }, 1032, ["checked", "value", "class"])) : B("", !0)
1989
2003
  ], 64);
1990
- }), 128)) : e.nodata ? (x(), O("div", ct, J(e.nodata), 1)) : j("", !0)
2004
+ }), 128)) : e.nodata ? (A(), O("div", ut, z(e.nodata), 1)) : B("", !0)
1991
2005
  ]),
1992
2006
  _: 1
1993
2007
  }, 16, ["value"])
1994
2008
  ]));
1995
2009
  }
1996
- }), ft = {
2010
+ }), ct = {
1997
2011
  key: 0,
1998
2012
  class: "absolute z-10 mt-[5px] mr-[10px] text-[#999] flex items-center"
1999
- }, Zt = /* @__PURE__ */ W({
2013
+ }, Xt = /* @__PURE__ */ X({
2000
2014
  inheritAttrs: !1,
2001
2015
  __name: "index",
2002
2016
  props: {
2003
- ...oe,
2017
+ ...ue,
2004
2018
  value: {
2005
2019
  type: [String, Number, Array, null],
2006
2020
  default: void 0
@@ -2038,86 +2052,86 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
2038
2052
  },
2039
2053
  emits: ["change", "update:value", "update:labels"],
2040
2054
  setup(e, { emit: t }) {
2041
- var m, b, g;
2042
- const a = e, s = te(), n = f({
2055
+ var h, b, m;
2056
+ const a = e, s = ne(), r = u({
2043
2057
  ...a.url,
2044
- url: ((m = a.url) == null ? void 0 : m.url) || "",
2058
+ url: ((h = a.url) == null ? void 0 : h.url) || "",
2045
2059
  fieldMap: a.fieldMap || ((b = a.url) == null ? void 0 : b.fieldMap),
2046
- params: a.params || ((g = a.url) == null ? void 0 : g.params),
2060
+ params: a.params || ((m = a.url) == null ? void 0 : m.params),
2047
2061
  loadingText: !1
2048
- }), r = ce(), { editorCtrl: o, errInfo: i, labelText: l } = r, u = f(void 0), c = t;
2049
- r.inputEmit = c;
2050
- const p = f([]);
2051
- T(
2062
+ }), n = de(), { editorCtrl: o, errInfo: l, labelText: i } = n, c = u(void 0), f = t;
2063
+ n.inputEmit = f;
2064
+ const p = u([]);
2065
+ R(
2052
2066
  () => p.value,
2053
2067
  (d) => {
2054
- d.length > 0 && D(a.value) && a.selectFirst ? (u.value = d[0].value, w(d[0].value)) : u.value = a.value === null ? void 0 : a.value;
2068
+ d.length > 0 && w(a.value) && a.selectFirst ? (c.value = d[0].value, P(d[0].value)) : c.value = a.value === null ? void 0 : a.value;
2055
2069
  }
2056
2070
  );
2057
- const h = f(s.placeholder);
2058
- T(
2059
- () => n.value.loading,
2071
+ const v = u(s.placeholder);
2072
+ R(
2073
+ () => r.value.loading,
2060
2074
  (d) => {
2061
- d ? h.value = "" : h.value || (h.value = "请选择" + l.value);
2075
+ d ? v.value = "" : v.value || (v.value = "请选择" + i.value);
2062
2076
  },
2063
2077
  { immediate: !0 }
2064
2078
  );
2065
- const v = f(a.value);
2066
- T(
2067
- () => u.value,
2079
+ const g = u(a.value);
2080
+ R(
2081
+ () => c.value,
2068
2082
  (d) => {
2069
- if (s.mode === "multiple" && D(d) && D(v.value)) {
2070
- c("update:value", v.value);
2083
+ if (s.mode === "multiple" && w(d) && w(g.value)) {
2084
+ f("update:value", g.value);
2071
2085
  return;
2072
2086
  }
2073
- c("update:value", d);
2087
+ f("update:value", d);
2074
2088
  }
2075
2089
  );
2076
- const w = (d) => {
2077
- const I = de(a, d, p, r), M = he(I);
2078
- u.value = d, c("update:labels", M), c("change", d), i != null && i.value.errClass && o && ue(o);
2090
+ const P = (d) => {
2091
+ const I = ve(a, d, p, n), $ = ge(I);
2092
+ c.value = d, f("update:labels", $), f("change", d), l != null && l.value.errClass && o && pe(o);
2079
2093
  };
2080
- return se(() => {
2094
+ return oe(() => {
2081
2095
  var d;
2082
- if (n.value && !n.value.fieldMap && (n.value.fieldMap = {
2096
+ if (r.value && !r.value.fieldMap && (r.value.fieldMap = {
2083
2097
  label: "Name",
2084
2098
  value: "Id",
2085
2099
  key: "Id"
2086
2100
  }), a.dataKey) {
2087
- const I = JSON.parse(JSON.stringify(L.getOptions(a.dataKey)));
2101
+ const I = JSON.parse(JSON.stringify(M.getOptions(a.dataKey)));
2088
2102
  p.value = I;
2089
- } else fe(a.autoload, a, p, r, n.value, (d = n.value) == null ? void 0 : d.params);
2090
- }), ne(() => {
2091
- pe(a, r);
2103
+ } else he(a.autoload, a, p, n, r.value, (d = r.value) == null ? void 0 : d.params);
2104
+ }), le(() => {
2105
+ me(a, n);
2092
2106
  }), (d, I) => {
2093
- var M;
2094
- return x(), O("div", null, [
2095
- a.url && a.url.loading === !0 ? (x(), O("div", ft, [
2096
- q(E(xe), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2107
+ var $;
2108
+ return A(), O("div", null, [
2109
+ a.url && a.url.loading === !0 ? (A(), O("div", ct, [
2110
+ j(x(Ee), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
2097
2111
  I[1] || (I[1] = fa("span", null, "数据加载中...", -1))
2098
- ])) : j("", !0),
2099
- q(E(ga), re({
2100
- class: [(M = E(i)) == null ? void 0 : M.errClass, "w-full"],
2101
- value: u.value,
2102
- "onUpdate:value": I[0] || (I[0] = (K) => u.value = K),
2112
+ ])) : B("", !0),
2113
+ j(x(ga), ie({
2114
+ class: [($ = x(l)) == null ? void 0 : $.errClass, "w-full"],
2115
+ value: c.value,
2116
+ "onUpdate:value": I[0] || (I[0] = (H) => c.value = H),
2103
2117
  "allow-clear": !0,
2104
- onChange: w,
2105
- placeholder: h.value,
2118
+ onChange: P,
2119
+ placeholder: v.value,
2106
2120
  "label-in-value": !1
2107
- }, E(s)), {
2108
- default: H(() => [
2109
- (x(!0), O(B, null, Ae(p.value, (K) => (x(), O(B, {
2110
- key: K.value
2121
+ }, x(s)), {
2122
+ default: Q(() => [
2123
+ (A(!0), O(J, null, Te(p.value, (H) => (A(), O(J, {
2124
+ key: H.value
2111
2125
  }, [
2112
- K.visible !== !1 ? (x(), Re(E(ya), {
2126
+ H.visible !== !1 ? (A(), Re(x(ya), {
2113
2127
  key: 0,
2114
- value: K.value
2128
+ value: H.value
2115
2129
  }, {
2116
- default: H(() => [
2117
- Te(J(K.label), 1)
2130
+ default: Q(() => [
2131
+ we(z(H.label), 1)
2118
2132
  ]),
2119
2133
  _: 2
2120
- }, 1032, ["value"])) : j("", !0)
2134
+ }, 1032, ["value"])) : B("", !0)
2121
2135
  ], 64))), 128))
2122
2136
  ]),
2123
2137
  _: 1
@@ -2128,72 +2142,72 @@ const ae = new Ja(), fe = (e, t, a, s, n, r) => {
2128
2142
  });
2129
2143
  export {
2130
2144
  Tt as $,
2131
- Pe as A,
2132
- Ta as B,
2133
- Kt as C,
2145
+ ke as A,
2146
+ wa as B,
2147
+ _t as C,
2134
2148
  ja as D,
2135
2149
  Ba as E,
2136
- Ht as F,
2137
- Qt as G,
2150
+ Kt as F,
2151
+ Ht as G,
2138
2152
  Ya as H,
2139
2153
  sa as I,
2140
- de as J,
2141
- he as K,
2142
- Gt as L,
2143
- qt as M,
2154
+ ve as J,
2155
+ ge as K,
2156
+ Qt as L,
2157
+ Gt as M,
2144
2158
  st as N,
2145
- L as O,
2146
- $ as P,
2147
- nt as Q,
2148
- jt as R,
2159
+ M as O,
2160
+ U as P,
2161
+ rt as Q,
2162
+ qt as R,
2149
2163
  He as S,
2150
- Bt as T,
2151
- Be as U,
2152
- Mt as V,
2153
- Je as W,
2154
- Rt as X,
2155
- wt as Y,
2156
- ke as Z,
2157
- Wt as _,
2158
- zt as a,
2164
+ jt as T,
2165
+ je as U,
2166
+ Lt as V,
2167
+ Be as W,
2168
+ Et as X,
2169
+ Rt as Y,
2170
+ Le as Z,
2171
+ zt as _,
2172
+ Jt as a,
2159
2173
  Dt as a0,
2160
2174
  qa as a1,
2161
2175
  ea as a2,
2162
- Nt as a3,
2176
+ Ct as a3,
2163
2177
  At as a4,
2164
- je as a5,
2165
- wa as a6,
2178
+ qe as a5,
2179
+ Pa as a6,
2166
2180
  aa as a7,
2167
- ae as a8,
2168
- V as a9,
2169
- ee as aa,
2170
- F as ab,
2171
- Jt as ac,
2172
- Le as ad,
2173
- z as ae,
2174
- kt as b,
2181
+ re as a8,
2182
+ q as a9,
2183
+ ae as aa,
2184
+ N as ab,
2185
+ Bt as ac,
2186
+ Me as ad,
2187
+ W as ae,
2188
+ Ot as b,
2175
2189
  Vt as c,
2176
2190
  Pt as d,
2177
- Ot as e,
2178
- Ut as f,
2179
- _t as g,
2180
- Ct as h,
2181
- D as i,
2182
- $t as j,
2183
- ce as k,
2184
- fe as l,
2185
- pe as m,
2186
- ue as n,
2187
- Lt as o,
2191
+ wt as e,
2192
+ Nt as f,
2193
+ Ft as g,
2194
+ $t as h,
2195
+ w as i,
2196
+ Mt as j,
2197
+ de as k,
2198
+ he as l,
2199
+ me as m,
2200
+ pe as n,
2201
+ kt as o,
2188
2202
  Ze as p,
2189
- Va as q,
2190
- N as r,
2191
- Ft as s,
2203
+ Ga as q,
2204
+ Y as r,
2205
+ Ut as s,
2192
2206
  Oa as t,
2193
- Q as u,
2194
- oe as v,
2195
- xe as w,
2196
- Yt as x,
2197
- Xt as y,
2198
- Zt as z
2207
+ _ as u,
2208
+ ue as v,
2209
+ Ee as w,
2210
+ Wt as x,
2211
+ Yt as y,
2212
+ Xt as z
2199
2213
  };