@utogether/udp-core 2.0.0-beta.27 → 2.0.0-beta.28

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 (100) hide show
  1. package/dist/{403-gdcH0-Bo.js → 403-CyoOD-Ik.js} +1 -1
  2. package/dist/{404-Se2SF97M.js → 404-Ch_OHTw0.js} +1 -1
  3. package/dist/{500-B6j9AqLo.js → 500-Cf9am7HK.js} +1 -1
  4. package/dist/{AuthorityInfo-CQ8ydZvr.js → AuthorityInfo-BJ427cqG.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-C4NRvS8p.js → AuthorityInfo.vue_vue_type_style_index_0_lang-D9y7AwbB.js} +11 -12
  6. package/dist/{Company-BzSVBSC4.js → Company-qo-lKPkv.js} +3 -3
  7. package/dist/{CompanyPanel-DBjZB4aJ.js → CompanyPanel-DkKWAKvY.js} +7 -7
  8. package/dist/{Department-BkgseHo8.js → Department-CHUQByKX.js} +3 -3
  9. package/dist/{DepartmentPanel-Sen93_2M.js → DepartmentPanel-C742dfOO.js} +27 -28
  10. package/dist/{DesignPanel-pqDcwaFC.js → DesignPanel-D9oE5R7m.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BjtYyEw7.js → DesignPanel.vue_vue_type_style_index_0_lang-hYldVEbo.js} +192 -108
  12. package/dist/{DictView-CJLG4LlE.js → DictView-CrFXprP9.js} +1 -1
  13. package/dist/{InvOrganization-D0Jq1IAa.js → InvOrganization-Cz8SzIgs.js} +6 -7
  14. package/dist/{Org-CO_1WT39.js → Org-Bzt6yKox.js} +9 -10
  15. package/dist/{Preview-DLI4Bwel.js → Preview-jonigfMQ.js} +1 -1
  16. package/dist/{ReportDefine-Cw46OnJ_.js → ReportDefine-BpiM5Ovq.js} +1 -1
  17. package/dist/{ReportDesign-D4sHTXT7.js → ReportDesign-fp09cXJ7.js} +24 -25
  18. package/dist/{ReportQuery-DtOCvQSN.js → ReportQuery-52ZP1PYP.js} +1 -1
  19. package/dist/{ReportQueryFrom-QjL-ETPq.js → ReportQueryFrom-DSYavJb1.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Dj9ne87n.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-DBGYEp0u.js} +4 -4
  21. package/dist/{ReportTemplate-BxAgc_Aj.js → ReportTemplate-CA_UW0eD.js} +3 -3
  22. package/dist/{Role-Df77BBD-.js → Role-DqOt8Bk0.js} +3 -3
  23. package/dist/{RoleAssign-BrunouML.js → RoleAssign-BdxhefhQ.js} +3 -3
  24. package/dist/{RolePanel-HLA7XBlN.js → RolePanel-2gZ3H0ET.js} +1 -1
  25. package/dist/{RolePanel-DSVwqhiD.js → RolePanel-BsNd0svJ.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CN0rUxKz.js → RolePanel.vue_vue_type_script_setup_true_lang-DLOwgF99.js} +9 -9
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CKlbqRa5.js → RolePanel.vue_vue_type_script_setup_true_lang-DmzD9kab.js} +26 -27
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-D_FeSXKv.js → ScrollPanel.vue_vue_type_style_index_0_lang-B9ptUMeI.js} +7 -7
  29. package/dist/{Staff-BeL1xcRf.js → Staff-D3L8fEoY.js} +3 -3
  30. package/dist/{StaffInfo-CIfnltyX.js → StaffInfo-DYRw6ZYJ.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DbLFwWfG.js → StaffInfo.vue_vue_type_script_setup_true_lang-xqEOQnMs.js} +1 -1
  32. package/dist/{StaffPanel-BV2CHWac.js → StaffPanel-DkrNH6Px.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CvT-Vp2G.js → StaffPanel.vue_vue_type_script_setup_true_lang-BPBMnliy.js} +8 -9
  34. package/dist/{SysUser-DPfNvthk.js → SysUser-Bl1-cIpJ.js} +2 -2
  35. package/dist/{SysUserPanel-CoLKYlQE.js → SysUserPanel-yxNLaBwt.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-lcO3Cjbq.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BDcsgSl5.js} +11 -12
  37. package/dist/{SystemMenu-sdj1dRDA.js → SystemMenu-C4_Arn12.js} +9 -10
  38. package/dist/{UserInfo-CTX4hhFl.js → UserInfo-QcNwJCUR.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-ClhCd_8z.js → UserInfo.vue_vue_type_style_index_0_lang-DLIeUphX.js} +5 -6
  40. package/dist/{childView-BDmWwJO5.js → childView-B23DEO2u.js} +1 -1
  41. package/dist/{childView-Dx3ACtHa.js → childView-saDZQv9x.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-CfKq_0FN.js → childView.vue_vue_type_style_index_0_lang-RsKR6CAC.js} +14 -15
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DxZNtkhd.js → childView.vue_vue_type_style_index_0_lang-ZFEfavUY.js} +11 -12
  44. package/dist/{code-rule-cvN4gYC_.js → code-rule-2_Ihx_by.js} +12 -13
  45. package/dist/core.es.js +21 -19
  46. package/dist/{cron-task-B0TkxFdp.js → cron-task-BFOPJQIk.js} +3 -4
  47. package/dist/{frameView-5cy5BSgS.js → frameView-f7Ya0Knj.js} +1 -1
  48. package/dist/img/minicolors.png +0 -0
  49. package/dist/{index-C5WRTwvI.js → index-BpdTDaTk.js} +811 -604
  50. package/dist/{layout-home-DrARg-3o.js → layout-home-v3DPJ7rB.js} +12 -13
  51. package/dist/{layoutView-25v_ngk5.js → layoutView-DZHoQDH1.js} +186 -187
  52. package/dist/{log-in-Bmz5Uhbt.js → log-in-BPAMJTwH.js} +4 -5
  53. package/dist/{log-out-B-8m3oNj.js → log-out-DZACF0jg.js} +8 -9
  54. package/dist/{login-Cmp2RvvW.js → login-B8cwozax.js} +22 -23
  55. package/dist/{lov-view-BATtzw2X.js → lov-view-Ba7Y7xy0.js} +4 -5
  56. package/dist/{menuInfo-BIvrE7nm.js → menuInfo-BpRKFYK8.js} +1 -1
  57. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-B6USomit.js → menuInfo.vue_vue_type_style_index_0_lang-DJ5sUC6m.js} +17 -18
  58. package/dist/{pda-app-CzHVyeEa.js → pda-app-C0jJecrL.js} +7 -8
  59. package/dist/{resource-Y5lGB38n.js → resource-BG22Cw4P.js} +4 -4
  60. package/dist/su-welcome-DaxhbrC6.js +879 -0
  61. package/dist/{sys-config-CqO03LeC.js → sys-config-CG2fMtak.js} +22 -23
  62. package/dist/udp-core.css +1 -1
  63. package/dist/{useNav-C-rCgubt.js → useNav-_u2UAQWk.js} +24 -24
  64. package/index.ts +54 -51
  65. package/package.json +21 -21
  66. package/src/api/http.ts +10 -4
  67. package/src/api/index.ts +51 -51
  68. package/src/api/user.ts +64 -64
  69. package/src/components/udp/content/index.vue +93 -93
  70. package/src/components/udp/form-upload/form-upload.vue +496 -496
  71. package/src/components/udp/grid/index.vue +643 -544
  72. package/src/components/udp/index.ts +2 -1
  73. package/src/components/udp/modal-form/index.vue +326 -0
  74. package/src/components/udp/utils.ts +420 -420
  75. package/src/layout/components/lay-navbar/index.vue +240 -240
  76. package/src/layout/components/lay-search/components/SearchModal.vue +185 -185
  77. package/src/layout/components/lay-sidebar/mixNav.vue +261 -261
  78. package/src/layout/components/lay-sidebar/sidebarItem.vue +199 -195
  79. package/src/layout/components/lay-sidebar/vertical.vue +92 -92
  80. package/src/layout/layoutView.vue +1 -0
  81. package/src/main.ts +111 -111
  82. package/src/plugins/i18n/zh.ts +5 -1
  83. package/src/plugins/vxe-table/index.ts +116 -116
  84. package/src/router/index.ts +158 -156
  85. package/src/router/utils.ts +434 -430
  86. package/src/store/modules/permission.ts +1 -1
  87. package/src/store/modules/system.ts +193 -193
  88. package/src/style/print-lock.css +380 -375
  89. package/src/style/suprint.css +990 -985
  90. package/src/utils/authority/index.ts +46 -46
  91. package/src/utils/dataFormat/index.ts +309 -222
  92. package/src/utils/udp/http/index.ts +19 -11
  93. package/src/views/uhome/components/home-todo.vue +15 -3
  94. package/src/views/uhome/dynamic-card.vue +31 -31
  95. package/src/views/uhome/su-welcome.vue +310 -310
  96. package/src/views/ulogin/login.vue +292 -292
  97. package/src/views/urpt/design/DesignPanel.vue +538 -507
  98. package/src/views/urpt/design/print-data.ts +39 -59
  99. package/dist/await-to-js.es5-Bv3Eu4mi.js +0 -10
  100. package/dist/su-welcome-CXA6OzBw.js +0 -878
@@ -1,17 +1,18 @@
1
- import * as je from "vue";
2
- import { defineComponent as _, createVNode as ze, resolveComponent as se, isProxy as we, toRaw as be, defineAsyncComponent as ht, openBlock as ft, createBlock as gt, withCtx as yt, h as N, createApp as wt, computed as ve, ref as te } from "vue";
3
- import { ElConfigProvider as Te } from "element-plus";
4
- import { checkVersion as bt } from "version-rocket";
5
- import { http as T, isUrl as Ve, storageLocal as f, buildHierarchyTree as ue, dbstorage as oe, cookies as U, openLink as vt, NProgress as Tt, VxetableRender as Ct, useGlobal as Be, deviceDetection as St, storageSession as kt } from "@utogether/utils";
6
- import { toDateString as v, isEqual as Ce, merge as de, clone as j, findIndexOf as xt, isEmpty as Pt, findLastIndexOf as Dt, getWhatDay as O, isArray as It } from "xe-utils";
7
- import { createPinia as Lt, defineStore as B } from "pinia";
8
- import { useTimeoutFn as Mt } from "@vueuse/core";
9
- import { createI18n as Rt, useI18n as Nt } from "vue-i18n";
10
- import qe, { VxeUI as D } from "vxe-table";
11
- import { Icon as Se } from "@iconify/vue";
12
- import Ot from "vue-tippy";
13
- import Et from "element-resize-detector";
14
- var At = {
1
+ import * as Ye from "vue";
2
+ import { isRef as se, defineComponent as q, createVNode as Qe, resolveComponent as me, isProxy as Pe, toRaw as De, defineAsyncComponent as Pt, openBlock as Dt, createBlock as It, withCtx as Lt, h as E, createApp as Rt, computed as Ie, ref as re } from "vue";
3
+ import { ElConfigProvider as Le } from "element-plus";
4
+ import { checkVersion as Nt } from "version-rocket";
5
+ import { NProgress as Z, cookies as S, errorMessage as ie, http as B, isUrl as Ze, storageLocal as f, buildHierarchyTree as we, dbstorage as le, openLink as Mt, VxetableRender as Ot, useGlobal as Xe, deviceDetection as Et, storageSession as At } from "@utogether/utils";
6
+ import pe from "axios";
7
+ import { has as ce, toDateString as T, isEqual as Re, merge as be, clone as V, findIndexOf as Ft, isEmpty as $t, findLastIndexOf as Ut, getWhatDay as A, isArray as jt } from "xe-utils";
8
+ import { createPinia as zt, defineStore as G } from "pinia";
9
+ import { useTimeoutFn as _t } from "@vueuse/core";
10
+ import { createI18n as qt, useI18n as Bt } from "vue-i18n";
11
+ import et, { VxeUI as I } from "vxe-table";
12
+ import { Icon as Ne } from "@iconify/vue";
13
+ import Vt from "vue-tippy";
14
+ import Wt from "element-resize-detector";
15
+ var Gt = {
15
16
  name: "en",
16
17
  el: {
17
18
  breadcrumb: { label: "Breadcrumb" },
@@ -190,7 +191,7 @@ var At = {
190
191
  defaultLabel: "Please enter OTP character {index}"
191
192
  }
192
193
  }
193
- }, Ft = {
194
+ }, Ht = {
194
195
  name: "zh-cn",
195
196
  el: {
196
197
  breadcrumb: { label: "面包屑" },
@@ -370,35 +371,212 @@ var At = {
370
371
  }
371
372
  }
372
373
  };
373
- let re = {}, We = {};
374
- const Ut = (e, t) => {
375
- re = Object.assign(re, t), e.config.globalProperties.$config = I();
376
- }, I = () => re, $t = (e = {}) => {
377
- We = e;
378
- }, A = () => We, w = () => I().ResponsiveStorageNameSpace, _t = "menu_zh", jt = "menu_en", He = "authorized-token", zt = "kCookies_token", Vt = "kSysConfig", Ge = "loginer", ra = "k-UTOGETHER-Q66!", ia = "UDP_PWSD", q = () => ({
379
- post: (e, t, o) => T.post(`${x(e)}${e}`, t, o),
380
- get: (e, t, o) => T.get(`${x(e)}${e}`, t, o),
381
- put: (e, t) => T.put(`${x(e)}${e}`, t),
382
- delete: (e, t) => T.delete(`${x(e)}${e}`, t)
383
- }), Bt = (e) => {
384
- T.setRouter(e);
385
- }, qt = (e) => {
386
- T.setBaseUrl(e);
387
- }, Wt = window.location.origin + "/gateway", x = (e) => {
374
+ let he = {}, tt = {};
375
+ const Jt = (e, t) => {
376
+ he = Object.assign(he, t), e.config.globalProperties.$config = R();
377
+ }, R = () => he, Kt = (e = {}) => {
378
+ tt = e;
379
+ }, U = () => tt, w = () => R().ResponsiveStorageNameSpace, Yt = "menu_zh", Qt = "menu_en", ot = "authorized-token", Zt = "kCookies_token", Xt = "kSysConfig", nt = "loginer", Ca = "k-UTOGETHER-Q66!", Sa = "UDP_PWSD", Me = "authorized-token", eo = {
380
+ timeout: 3e5,
381
+ headers: {
382
+ Accept: "application/json, text/plain, */*",
383
+ "Content-Type": "application/json",
384
+ "X-Requested-With": "XMLHttpRequest"
385
+ }
386
+ }, j = /* @__PURE__ */ new Map(), at = (e) => {
387
+ try {
388
+ const { method: t, url: o, params: n, data: a } = e, s = n ? JSON.stringify(n) : "", r = a ? JSON.stringify(a) : "";
389
+ return [t?.toUpperCase(), o, s, r].filter(Boolean).join("&");
390
+ } catch (t) {
391
+ return console.warn("Failed to generate request key:", t), `${e.method || "GET"}_${e.url || ""}_${Date.now()}`;
392
+ }
393
+ }, to = (e) => {
394
+ const t = at(e);
395
+ if (j.has(t)) {
396
+ const o = j.get(t);
397
+ o && o(`Duplicate request canceled: ${t}`), j.delete(t);
398
+ }
399
+ e.cancelToken = new pe.CancelToken((o) => {
400
+ j.set(t, o);
401
+ });
402
+ }, Oe = (e) => {
403
+ const t = at(e);
404
+ j.has(t) && j.delete(t);
405
+ };
406
+ class v {
407
+ constructor() {
408
+ this.httpInterceptorsRequest(), this.httpInterceptorsResponse();
409
+ }
410
+ router = void 0;
411
+ baseUrl = null;
412
+ // 服务白名单,判断是否需要token
413
+ whiteList = [/\/refreshToken$/, /\/login$/];
414
+ /** token过期后,暂存待执行的请求 */
415
+ static requests = [];
416
+ /** 防止重复刷新token */
417
+ static isRefreshing = !1;
418
+ /** 设置router调整 */
419
+ setRouter(t) {
420
+ this.router = t;
421
+ }
422
+ setBaseUrl(t) {
423
+ this.baseUrl = t;
424
+ }
425
+ // 保存当前Axios实例对象
426
+ static axiosInstance = pe.create(eo);
427
+ /** 重连原始请求 */
428
+ static retryOriginalRequest(t) {
429
+ return new Promise((o) => {
430
+ v.requests.push((n) => {
431
+ t.headers.Authorization = "Bearer " + n, o(t);
432
+ });
433
+ });
434
+ }
435
+ // 请求拦截
436
+ httpInterceptorsRequest() {
437
+ v.axiosInstance.interceptors.request.use(
438
+ (t) => (ce(t, "loading") && se(t.loading) && (t.loading.value = !0), !t.url.includes("uath/refreshToken") && to(t), Z.start(), typeof t.beforeRequestCallback == "function" ? (t.beforeRequestCallback(t), t) : this.whiteList.some((o) => o.test(t.url)) ? t : new Promise(async (o) => {
439
+ const n = S.get(Me);
440
+ if (n) {
441
+ const a = JSON.parse(n), s = (/* @__PURE__ */ new Date()).getTime();
442
+ a.expires - s <= 0 ? (v.isRefreshing || (v.isRefreshing = !0, v.axiosInstance.get(this.baseUrl + "/uath/refreshToken", {
443
+ params: { refreshToken: a.refreshToken }
444
+ }).then((i) => {
445
+ i?.access_token ? (this.setToken(i), t.headers.Authorization = "Bearer " + i.access_token, v.requests.forEach((l) => l(i.access_token)), v.requests = []) : this.routeToLogin();
446
+ }).catch(() => {
447
+ this.routeToLogin();
448
+ }).finally(() => {
449
+ v.isRefreshing = !1;
450
+ })), o(v.retryOriginalRequest(t))) : (t.headers.Authorization = "Bearer " + a.accessToken, o(t));
451
+ } else {
452
+ const a = S.get("kCookies_token");
453
+ a && (t.headers["X-Token"] = a), o(t);
454
+ }
455
+ })),
456
+ (t) => Promise.reject(t)
457
+ );
458
+ }
459
+ setToken(t) {
460
+ const { access_token: o, expires_in: n, refresh_token: a } = t, s = {
461
+ accessToken: o,
462
+ refreshToken: a,
463
+ expires: Date.now() + n
464
+ // expires: Date.now() + expires_in * 1000
465
+ };
466
+ S.set(Me, JSON.stringify(s));
467
+ }
468
+ routeToLogin() {
469
+ v.requests = [], S.remove("kCookies_token"), S.remove("authorized-token"), S.remove("loginer"), this.router.push({ name: "login" });
470
+ }
471
+ // 响应拦截
472
+ httpInterceptorsResponse() {
473
+ v.axiosInstance.interceptors.response.use(
474
+ (o) => {
475
+ const n = o.config;
476
+ return ce(n, "loading") && se(n.loading) && (n.loading.value = !1), Oe(o.config), Z.done(), typeof n.beforeResponseCallback == "function" ? (n.beforeResponseCallback(o), o.data) : !o.data && o?.msg ? Promise.reject(o.msg) : o.data;
477
+ },
478
+ (o) => {
479
+ if (pe.isCancel(o))
480
+ return console.warn("请求已取消:", o.message), Promise.reject(o);
481
+ o.config && Oe(o.config);
482
+ const n = o.config;
483
+ return ce(n, "loading") && se(n?.loading) && (n.loading.value = !1), Z.done(), Promise.reject(o);
484
+ }
485
+ );
486
+ }
487
+ transformConfigByMethod(t, o) {
488
+ const { method: n } = o, a = ["get"], s = n.toLocaleLowerCase(), r = a.includes(s) ? "params" : "data";
489
+ return {
490
+ ...o,
491
+ [r]: t
492
+ };
493
+ }
494
+ // 通用请求工具函数
495
+ request(t, o, n, a) {
496
+ const s = this.transformConfigByMethod(n, {
497
+ method: t,
498
+ url: o,
499
+ ...a
500
+ });
501
+ return new Promise((r, i) => {
502
+ v.axiosInstance.request(s).then((l) => {
503
+ if (l.code === "500")
504
+ ie(l.msg, { duration: 8e3 }), s.method === "get" ? r(l) : i(l.msg);
505
+ else if (l?.code === "0")
506
+ r(l.data);
507
+ else if (l?.code !== "-1")
508
+ r(l);
509
+ else {
510
+ const d = l?.msg || "服务异常";
511
+ ie(d, { duration: 8e3 }), i(d);
512
+ }
513
+ }).catch((l) => {
514
+ if (l?.code) {
515
+ if (l?.response?.status === 401)
516
+ return this.router?.push({ path: "/login" });
517
+ l.code !== "ERR_CANCELED" && ie(this.getNetworkError(l?.response?.status) || l?.message, { duration: 8e3 });
518
+ }
519
+ l.config?.method === "get" ? r(l) : i(l);
520
+ });
521
+ });
522
+ }
523
+ getNetworkError = (t) => t ? {
524
+ 400: "请求参数错误",
525
+ 401: "登录已过期,请重新登录",
526
+ 403: "没有权限访问",
527
+ 404: "请求错误,未找到该资源",
528
+ 408: "请求超时",
529
+ 500: "服务器内部错误",
530
+ 502: "网络超时",
531
+ 503: "服务不可用",
532
+ 504: "网络超时"
533
+ }[t] : null;
534
+ // 单独抽离的post工具函数
535
+ post(t, o, n) {
536
+ return this.request("post", t, o, n);
537
+ }
538
+ // 单独抽离的delete工具函数
539
+ delete(t, o, n) {
540
+ return this.request("delete", t, o, n);
541
+ }
542
+ // 单独抽离的put工具函数
543
+ put(t, o, n) {
544
+ return this.request("put", t, o, n);
545
+ }
546
+ // 单独抽离的get工具函数
547
+ get(t, o, n) {
548
+ for (const a in o)
549
+ o[a] || delete o[a];
550
+ return this.request("get", t, o, n);
551
+ }
552
+ postRouter(t) {
553
+ return this.request("post", "route/service", t);
554
+ }
555
+ }
556
+ const L = new v(), H = () => ({
557
+ post: (e, t, o) => L.post(`${C(e)}${e}`, t, o),
558
+ get: (e, t, o) => L.get(`${C(e)}${e}`, t, o),
559
+ put: (e, t) => L.put(`${C(e)}${e}`, t),
560
+ delete: (e, t) => L.delete(`${C(e)}${e}`, t)
561
+ }), oo = (e) => {
562
+ L.setRouter(e);
563
+ }, no = (e) => {
564
+ L.setBaseUrl(e);
565
+ }, ao = window.location.origin + "/gateway", C = (e) => {
388
566
  const t = ["/uath/", "/uwfl/", "/uums/", "/upfm/", "/urpt/", "/usch/"];
389
- return e && A().VITE_DEBUG === "true" && !t.some((o) => e.includes(o)) ? A().VITE_DEBUG_URL : A().VITE_BASE_URL === "origin" ? Wt : A().VITE_BASE_URL;
390
- }, Ht = () => ({
391
- post: (e, t, o) => T.post(`${J()}${e}`, t, o),
392
- get: (e, t, o) => T.get(`${J()}${e}`, t, o),
393
- put: (e, t) => T.put(`${J()}${e}`, t),
394
- delete: (e, t) => T.delete(`${J()}${e}`, t)
395
- }), J = () => A().VITE_DEBUG_URL, Je = (e) => {
567
+ return e && U().VITE_DEBUG === "true" && !t.some((o) => e.includes(o)) ? U().VITE_DEBUG_URL : U().VITE_BASE_URL === "origin" ? ao : U().VITE_BASE_URL;
568
+ }, so = () => ({
569
+ post: (e, t, o) => L.post(`${Q()}${e}`, t, o),
570
+ get: (e, t, o) => L.get(`${Q()}${e}`, t, o),
571
+ put: (e, t) => L.put(`${Q()}${e}`, t),
572
+ delete: (e, t) => L.delete(`${Q()}${e}`, t)
573
+ }), Q = () => U().VITE_DEBUG_URL, st = (e) => {
396
574
  const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
397
575
  if (e.indexOf("windows xp") > -1, t) return "WinXP";
398
576
  if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
399
577
  if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
400
578
  if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
401
- }, Ke = (e) => {
579
+ }, rt = (e) => {
402
580
  let t = null;
403
581
  const o = {
404
582
  Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
@@ -422,20 +600,20 @@ const Ut = (e, t) => {
422
600
  for (const a in o)
423
601
  o[a] && (n = e.match(/chrome\/([\d.]+)/)[1], t = a);
424
602
  return { browser: t, browserVersion: n };
425
- }, Gt = () => T.get(`${x()}/uums/roleMenu`), Ye = () => T.get(`${x()}/upfm/v1/lov/selectAll`), ke = (e) => T.get(`${x()}/uums/roleMenu/userMenu`, e), Jt = (e) => {
426
- const t = navigator.userAgent.toLowerCase(), { browser: o, browserVersion: n } = Ke(t), a = {
603
+ }, ro = () => B.get(`${C()}/uums/roleMenu`), it = () => B.get(`${C()}/upfm/v1/lov/selectAll`), Ee = (e) => B.get(`${C()}/uums/roleMenu/userMenu`, e), io = (e) => {
604
+ const t = navigator.userAgent.toLowerCase(), { browser: o, browserVersion: n } = rt(t), a = {
427
605
  userName: e,
428
- loginTime: v(/* @__PURE__ */ new Date()),
606
+ loginTime: T(/* @__PURE__ */ new Date()),
429
607
  browser: o,
430
608
  browserVersion: n,
431
- operatingSystem: Je(t)
609
+ operatingSystem: st(t)
432
610
  };
433
- return T.request("post", `${x()}/upfm/v1/userMonitor`, a);
434
- }, E = Lt();
435
- function Kt(e) {
436
- e.use(E);
611
+ return B.request("post", `${C()}/upfm/v1/userMonitor`, a);
612
+ }, $ = zt();
613
+ function lo(e) {
614
+ e.use($);
437
615
  }
438
- const W = [
616
+ const J = [
439
617
  {
440
618
  path: "/welcome",
441
619
  name: "UdpWelcome",
@@ -444,10 +622,10 @@ const W = [
444
622
  icon: "home-filled"
445
623
  }
446
624
  }
447
- ], Qe = B("udp-multiTags", {
625
+ ], lt = G("udp-multiTags", {
448
626
  state: () => ({
449
627
  // 存储标签页信息(路由信息)
450
- multiTags: f.getItem(`${w()}configure`)?.multiTagsCache ? f.getItem(`${w()}tags`) : [...W, ...b().flatteningRoutes.filter((e) => e?.meta?.fixedTag)],
628
+ multiTags: f.getItem(`${w()}configure`)?.multiTagsCache ? f.getItem(`${w()}tags`) : [...J, ...b().flatteningRoutes.filter((e) => e?.meta?.fixedTag)],
451
629
  multiTagsCache: f.getItem(`${w()}configure`)?.multiTagsCache
452
630
  }),
453
631
  getters: {
@@ -470,12 +648,12 @@ const W = [
470
648
  case "push":
471
649
  {
472
650
  const n = t;
473
- if (n?.meta?.hiddenTag || Ve(n?.name) || n?.meta?.title?.length === 0) return;
651
+ if (n?.meta?.hiddenTag || Ze(n?.name) || n?.meta?.title?.length === 0) return;
474
652
  const a = n.path;
475
- if (this.multiTags.some((i) => i.path === a && Ce(i?.query, n?.query) && Ce(i?.params, n?.params))) return;
653
+ if (this.multiTags.some((i) => i.path === a && Re(i?.query, n?.query) && Re(i?.params, n?.params))) return;
476
654
  const r = n?.meta?.dynamicLevel ?? -1;
477
655
  if (r > 0 && this.multiTags.filter((i) => i?.path === a).length >= r) {
478
- const i = this.multiTags.findIndex((d) => d?.path === a);
656
+ const i = this.multiTags.findIndex((l) => l?.path === a);
479
657
  i !== -1 && this.multiTags.splice(i, 1);
480
658
  }
481
659
  this.multiTags.push(t), this.tagsCache(this.multiTags);
@@ -496,10 +674,10 @@ const W = [
496
674
  }
497
675
  }
498
676
  });
499
- function C() {
500
- return Qe(E);
677
+ function k() {
678
+ return lt($);
501
679
  }
502
- const xe = {
680
+ const Ae = {
503
681
  zh: {
504
682
  message: {
505
683
  reportCode: "报表编号",
@@ -549,13 +727,13 @@ const xe = {
549
727
  isRequired: "Required"
550
728
  }
551
729
  }
552
- }, Yt = {
553
- zh: { ...xe.zh.message },
554
- en: { ...xe.en.message }
555
- }, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
730
+ }, co = {
731
+ zh: { ...Ae.zh.message },
732
+ en: { ...Ae.en.message }
733
+ }, uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
556
734
  __proto__: null,
557
- default: Yt
558
- }, Symbol.toStringTag, { value: "Module" })), Zt = {
735
+ default: co
736
+ }, Symbol.toStringTag, { value: "Module" })), mo = {
559
737
  zh: {
560
738
  message: {
561
739
  taskName: "任务名称",
@@ -584,7 +762,7 @@ const xe = {
584
762
  actuatorAddress: "Actuator Adress"
585
763
  }
586
764
  }
587
- }, Xt = {
765
+ }, po = {
588
766
  zh: {
589
767
  message: {
590
768
  flowId: "流程标识",
@@ -605,17 +783,17 @@ const xe = {
605
783
  flowDesign: "Flow Design"
606
784
  }
607
785
  }
608
- }, Pe = [Zt, Xt], eo = {
786
+ }, Fe = [mo, po], ho = {
609
787
  zh: {
610
- ...Object.assign({}, ...Pe.map((e) => e.zh.message))
788
+ ...Object.assign({}, ...Fe.map((e) => e.zh.message))
611
789
  },
612
790
  en: {
613
- ...Object.assign({}, ...Pe.map((e) => e.en.message))
791
+ ...Object.assign({}, ...Fe.map((e) => e.en.message))
614
792
  }
615
- }, to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
793
+ }, fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
616
794
  __proto__: null,
617
- default: eo
618
- }, Symbol.toStringTag, { value: "Module" })), oo = {
795
+ default: ho
796
+ }, Symbol.toStringTag, { value: "Module" })), go = {
619
797
  zh: {
620
798
  message: {
621
799
  msgtemplateCode: "模板代码",
@@ -635,10 +813,10 @@ const xe = {
635
813
  xx: "xxx"
636
814
  }
637
815
  }
638
- }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
816
+ }, yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
639
817
  __proto__: null,
640
- default: oo
641
- }, Symbol.toStringTag, { value: "Module" })), ao = {
818
+ default: go
819
+ }, Symbol.toStringTag, { value: "Module" })), wo = {
642
820
  udp: {
643
821
  dark: "深色",
644
822
  light: "浅色",
@@ -712,6 +890,7 @@ const xe = {
712
890
  currentValue: "当前值",
713
891
  haveBeenUsed: "使用中",
714
892
  description: "描述",
893
+ continuousAddition: "连续添加",
715
894
  unitName: "单位名称",
716
895
  unitCode: "单位编码",
717
896
  unitNote: "单位介绍",
@@ -988,7 +1167,8 @@ const xe = {
988
1167
  updatenow: "立即更新",
989
1168
  newVersion: "检测到新版本",
990
1169
  updateLater: "稍后更新",
991
- confirmResetPassword: "确认重置密码吗?"
1170
+ confirmResetPassword: "确认重置密码吗?",
1171
+ dialog2Level: "弹框层级只支持2级"
992
1172
  },
993
1173
  title: {
994
1174
  employeeInfo: "员工信息",
@@ -1007,7 +1187,7 @@ const xe = {
1007
1187
  userInfo: "用户信息",
1008
1188
  layoutRole: "【{name}】角色列表"
1009
1189
  }
1010
- }, so = {
1190
+ }, bo = {
1011
1191
  udp: {
1012
1192
  dark: "深色",
1013
1193
  light: "浅色",
@@ -1289,67 +1469,67 @@ const xe = {
1289
1469
  dictDispose: "dictDispose",
1290
1470
  isSearch: "isSearch",
1291
1471
  isCol: "isCol"
1292
- }, De = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Qt, "./module/u-workflow.ts": to, "./module/umsg.ts": no }), K = {};
1293
- for (const e in De)
1294
- K[e.replace(/(\.\/module\/|\.ts)/g, "")] = De[e].default;
1295
- const Ie = Object.keys(K).filter((e) => K[e]).map((e) => K[e]), ro = {
1472
+ }, $e = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": uo, "./module/u-workflow.ts": fo, "./module/umsg.ts": yo }), X = {};
1473
+ for (const e in $e)
1474
+ X[e.replace(/(\.\/module\/|\.ts)/g, "")] = $e[e].default;
1475
+ const Ue = Object.keys(X).filter((e) => X[e]).map((e) => X[e]), To = {
1296
1476
  zh: {
1297
- ...f.getItem(_t),
1298
- message: de(ao, ...Ie.map((e) => e.zh.message))
1477
+ ...f.getItem(Yt),
1478
+ message: be(wo, ...Ue.map((e) => e.zh.message))
1299
1479
  },
1300
1480
  en: {
1301
- ...f.getItem(jt),
1302
- message: Object.assign(so, ...Ie.map((e) => e.en.message))
1481
+ ...f.getItem(Qt),
1482
+ message: Object.assign(bo, ...Ue.map((e) => e.en.message))
1303
1483
  }
1304
1484
  };
1305
- let $ = null;
1306
- function io(e, t = { messages: {} }) {
1307
- $ = Rt({
1485
+ let _ = null;
1486
+ function vo(e, t = { messages: {} }) {
1487
+ _ = qt({
1308
1488
  legacy: !1,
1309
1489
  locale: f.getItem(`${w()}locale`)?.locale ?? "zh",
1310
1490
  fallbackLocale: "en",
1311
1491
  globalInjection: !0,
1312
- messages: de(ro, t.messages)
1313
- }), D.setLanguage("zh-CN"), e.use($);
1492
+ messages: be(To, t.messages)
1493
+ }), I.setLanguage("zh-CN"), e.use(_);
1314
1494
  }
1315
- const Y = () => $;
1316
- function Ze(e = "", t = !0) {
1495
+ const ee = () => _;
1496
+ function ct(e = "", t = !0) {
1317
1497
  if (!e)
1318
1498
  return "";
1319
1499
  if (typeof e == "object") {
1320
- const o = $.global.locale;
1500
+ const o = _.global.locale;
1321
1501
  return e[o.value];
1322
1502
  }
1323
- return t ? $.global.t.call($.global, e) : e;
1503
+ return t ? _.global.t.call(_.global, e) : e;
1324
1504
  }
1325
- function lo(e, t) {
1326
- return /* @__PURE__ */ _({
1505
+ function Co(e, t) {
1506
+ return /* @__PURE__ */ q({
1327
1507
  name: e,
1328
1508
  components: {
1329
1509
  asyncComponent: t
1330
1510
  },
1331
1511
  setup() {
1332
- return () => ze(se("async-component"), null, null);
1512
+ return () => Qe(me("async-component"), null, null);
1333
1513
  }
1334
1514
  });
1335
1515
  }
1336
- const co = () => import("./layoutView-25v_ngk5.js"), uo = () => import("./frameView-5cy5BSgS.js");
1337
- function H(e) {
1516
+ const So = () => import("./layoutView-DZHoQDH1.js"), ko = () => import("./frameView-f7Ya0Knj.js");
1517
+ function K(e) {
1338
1518
  return e.forEach((t) => {
1339
1519
  t?.meta?.rank === null && (t.meta.rank = void 0), t?.meta?.rank === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
1340
1520
  }), e.sort((t, o) => t?.meta?.rank - o?.meta?.rank);
1341
1521
  }
1342
- function Xe(e) {
1343
- const t = j(e, !0).filter((o) => o && o.meta?.showLink !== !1);
1344
- return t.forEach((o) => o.children && (o.children = Xe(o.children))), t;
1522
+ function ut(e) {
1523
+ const t = V(e, !0).filter((o) => o && o.meta?.showLink !== !1);
1524
+ return t.forEach((o) => o.children && (o.children = ut(o.children))), t;
1345
1525
  }
1346
- function la(e, t, o = "path") {
1526
+ function ka(e, t, o = "path") {
1347
1527
  function n(a, s, r) {
1348
1528
  for (let i = 0; i < a.length; i++) {
1349
- const d = a[i];
1350
- if (d[o] === s) return r;
1351
- if (!(!d.children || !d.children.length)) {
1352
- if (r.push(d.path), n(d.children, s, r).length) return r;
1529
+ const l = a[i];
1530
+ if (l[o] === s) return r;
1531
+ if (!(!l.children || !l.children.length)) {
1532
+ if (r.push(l.path), n(l.children, s, r).length) return r;
1353
1533
  r.pop();
1354
1534
  }
1355
1535
  }
@@ -1357,69 +1537,69 @@ function la(e, t, o = "path") {
1357
1537
  }
1358
1538
  return n(t, e, []);
1359
1539
  }
1360
- function et(e, t) {
1540
+ function dt(e, t) {
1361
1541
  let o = t.find((n) => n.path == e);
1362
1542
  if (o)
1363
- return we(o) ? be(o) : o;
1543
+ return Pe(o) ? De(o) : o;
1364
1544
  for (let n = 0; n < t.length; n++)
1365
- if (t[n].children instanceof Array && t[n].children.length > 0 && (o = et(e, t[n].children), o))
1366
- return we(o) ? be(o) : o;
1545
+ if (t[n].children instanceof Array && t[n].children.length > 0 && (o = dt(e, t[n].children), o))
1546
+ return Pe(o) ? De(o) : o;
1367
1547
  return null;
1368
1548
  }
1369
- function mo() {
1549
+ function xo() {
1370
1550
  g.hasRoute("pathMatch") || g.addRoute({
1371
1551
  path: "/:pathMatch(.*)",
1372
1552
  name: "pathMatch",
1373
1553
  redirect: "/error/404"
1374
1554
  });
1375
1555
  }
1376
- function po() {
1377
- const e = Y();
1378
- e.global?.mergeLocaleMessage("zh", F.zh), e.global?.mergeLocaleMessage("en", F.en), f.setItem("menu_zh", F.zh), f.setItem("menu_en", F.en);
1556
+ function Po() {
1557
+ const e = ee();
1558
+ e.global?.mergeLocaleMessage("zh", z.zh), e.global?.mergeLocaleMessage("en", z.en), f.setItem("menu_zh", z.zh), f.setItem("menu_en", z.en);
1379
1559
  }
1380
- function Le(e) {
1560
+ function je(e) {
1381
1561
  if (e?.length) {
1382
1562
  const t = e.findIndex((n) => n.menuCode === "SysHome");
1383
1563
  if (t !== -1) {
1384
1564
  const n = [], a = [];
1385
1565
  e[t].children.forEach((s) => {
1386
1566
  s.menuCategory !== "1" ? n.push(s) : a.push(s);
1387
- }), e[t].children = a, V().setHomeMenus(n);
1567
+ }), e[t].children = a, F().setHomeMenus(n);
1388
1568
  }
1389
- const o = j(at(e), !0);
1390
- po(), ee(o).map((n) => {
1569
+ const o = V(ft(e), !0);
1570
+ Po(), ae(o).map((n) => {
1391
1571
  const { options: a } = g;
1392
- a.routes[0].children.findIndex((s) => s.path === n.path) === -1 && (g.options.routes[0].children.push(n), H(g.options.routes[0].children), g.hasRoute(n?.name) || g.addRoute(n));
1572
+ a.routes[0].children.findIndex((s) => s.path === n.path) === -1 && (g.options.routes[0].children.push(n), K(g.options.routes[0].children), g.hasRoute(n?.name) || g.addRoute(n));
1393
1573
  });
1394
1574
  }
1395
- b().changeSetting(e), C().getMultiTagsCache || C().handleTags("equal", [
1396
- ...W,
1575
+ b().changeSetting(e), k().getMultiTagsCache || k().handleTags("equal", [
1576
+ ...J,
1397
1577
  ...b().flatteningRoutes.filter((t) => t?.meta?.fixedTag)
1398
- ]), mo();
1578
+ ]), xo();
1399
1579
  }
1400
- async function ho(e) {
1580
+ async function Do(e) {
1401
1581
  let t = [];
1402
1582
  const o = `U-${e}-ROUTES`;
1403
- return I().CachingAsyncRoutes && await oe.getItem(o).then((n) => t = n), await Gt().then(async (n) => {
1404
- V().setSystemInfo(n), await q().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((a) => V().setInvOrgList(a?.list || []));
1583
+ return R().CachingAsyncRoutes && await le.getItem(o).then((n) => t = n), await ro().then(async (n) => {
1584
+ F().setSystemInfo(n), await H().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((a) => F().setInvOrgList(a?.list || []));
1405
1585
  }), t?.length ? new Promise((n) => {
1406
- Le(t), ke({ userName: e }).then((a) => {
1407
- oe.setItem(o, a);
1586
+ je(t), Ee({ userName: e }).then((a) => {
1587
+ le.setItem(o, a);
1408
1588
  }), n(g);
1409
1589
  }) : new Promise((n) => {
1410
- ke({ userName: e }).then((a) => {
1411
- Le(j(a, !0)), oe.setItem(o, a), n(g);
1590
+ Ee({ userName: e }).then((a) => {
1591
+ je(V(a, !0)), le.setItem(o, a), n(g);
1412
1592
  });
1413
1593
  });
1414
1594
  }
1415
- function ee(e) {
1595
+ function ae(e) {
1416
1596
  if (e.length === 0) return e;
1417
- let t = ue(e);
1597
+ let t = we(e);
1418
1598
  for (let o = 0; o < t.length; o++)
1419
1599
  t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
1420
1600
  return t;
1421
1601
  }
1422
- function tt(e) {
1602
+ function mt(e) {
1423
1603
  if (e.length === 0) return e;
1424
1604
  const t = [];
1425
1605
  return e.forEach((o) => {
@@ -1433,7 +1613,7 @@ function tt(e) {
1433
1613
  }) : t[0].children.push({ ...o });
1434
1614
  }), t;
1435
1615
  }
1436
- function ot({ name: e }, t) {
1616
+ function pt({ name: e }, t) {
1437
1617
  switch (t) {
1438
1618
  case "add":
1439
1619
  b().cacheOperate({ mode: "add", name: e });
@@ -1445,84 +1625,84 @@ function ot({ name: e }, t) {
1445
1625
  b().cacheOperate({ mode: "refresh", name: e });
1446
1626
  break;
1447
1627
  default:
1448
- b().cacheOperate({ mode: "delete", name: e }), Mt(() => {
1628
+ b().cacheOperate({ mode: "delete", name: e }), _t(() => {
1449
1629
  b().cacheOperate({ mode: "add", name: e });
1450
1630
  }, 100);
1451
1631
  }
1452
1632
  }
1453
- const F = {
1633
+ const z = {
1454
1634
  zh: {},
1455
1635
  en: {}
1456
- }, nt = [], at = (e) => {
1457
- const t = Oo();
1636
+ }, ht = [], ft = (e) => {
1637
+ const t = Go();
1458
1638
  if (!e || !e.length) return;
1459
1639
  const o = Object.keys(t);
1460
1640
  for (let n = 0; n < e.length; n++) {
1461
1641
  const a = e[n];
1462
1642
  a?.children && a.children.length && !a.redirect && (a.redirect = a.children[0].path);
1463
- const { icon: s, permissionCode: r, extraIcon: i, frameSrc: d } = a;
1464
- if (a.isApprovalPage === "Y" && nt.push(a), a.meta = {
1643
+ const { icon: s, permissionCode: r, extraIcon: i, frameSrc: l } = a;
1644
+ if (a.isApprovalPage === "Y" && ht.push(a), a.meta = {
1465
1645
  keepAlive: !0,
1466
1646
  rank: a.sort,
1467
1647
  title: `${a.i18nField}`,
1468
1648
  // 审批流设计页面和审批页面的code写死,只需配置页面即可(保底方式)
1469
1649
  // showLink: !['UDPFlowTask'].includes(v.menuCode) ? null : false
1470
1650
  showLink: a.showLink !== "N"
1471
- }, a.hiddenTag = null, Object.assign(a.meta, { icon: s, permissionCode: r, extraIcon: i, frameSrc: d }), F.zh[a.i18nField] = a.menuName || a.menuNameEn, F.en[a.i18nField] = a.menuNameEn || a.menuName, a.name = a.menuCode || a.name, a.path = a.menuPath || a.path, !a.parentId)
1472
- a.component = co;
1651
+ }, a.hiddenTag = null, Object.assign(a.meta, { icon: s, permissionCode: r, extraIcon: i, frameSrc: l }), z.zh[a.i18nField] = a.menuName || a.menuNameEn, z.en[a.i18nField] = a.menuNameEn || a.menuName, a.name = a.menuCode || a.name, a.path = a.menuPath || a.path, !a.parentId)
1652
+ a.component = So;
1473
1653
  else if (a.meta?.frameSrc)
1474
- a.component = uo;
1654
+ a.component = ko;
1475
1655
  else if (a.menuCategory === "10") {
1476
- const c = o.findIndex((u) => u.includes("lowcode-contain"));
1477
- a.component = lo(
1656
+ const d = o.findIndex((u) => u.includes("lowcode-contain"));
1657
+ a.component = Co(
1478
1658
  a.name,
1479
- ht(() => import(
1659
+ Pt(() => import(
1480
1660
  /* @vite-ignore */
1481
- o[c]
1661
+ o[d]
1482
1662
  ))
1483
1663
  ), Object.assign(a.meta, { moduleType: a.moduleType });
1484
1664
  } else if (a.menuCategory !== "5") {
1485
- const c = o.findIndex((u) => u.includes(a.path));
1486
- if (a.component = t[o[c]], a.menuCategory === "3" && a.name.includes("${access_token}")) {
1665
+ const d = o.findIndex((u) => u.includes(a.path));
1666
+ if (a.component = t[o[d]], a.menuName.includes("电梯类别对应类型"), a.menuCategory === "3" && a.name.includes("${access_token}")) {
1487
1667
  let u = a.name;
1488
- const y = JSON.parse(U.get(He));
1668
+ const y = JSON.parse(S.get(ot));
1489
1669
  u = a.name.replace("${access_token}", y.accessToken), u = a.name.includes("${refresh_token}") ? u.replace("${refresh_token}", y.refreshToken) : u, u = a.name.includes("${expires_in}") ? u.replace("${expires_in}", y.expires) : u, a.name = u;
1490
1670
  }
1491
1671
  }
1492
- a?.children && a.children.length ? at(a.children) : delete a.children;
1672
+ a?.children && a.children.length ? ft(a.children) : delete a.children;
1493
1673
  }
1494
1674
  return e;
1495
1675
  };
1496
- function fo(e, t = !0) {
1497
- const o = C().multiTags.findIndex((n) => {
1676
+ function Io(e, t = !0) {
1677
+ const o = k().multiTags.findIndex((n) => {
1498
1678
  if (e.query) {
1499
1679
  if (e.path === n.path)
1500
1680
  return e.query === n.query;
1501
1681
  } else
1502
1682
  return e.path === n.path;
1503
1683
  });
1504
- if (C().handleTags("splice", "", { startIndex: o, length: 1 }), ot(e.matched, "delete"), t) {
1505
- const n = C().handleTags("slice");
1684
+ if (k().handleTags("splice", "", { startIndex: o, length: 1 }), pt(e.matched, "delete"), t) {
1685
+ const n = k().handleTags("slice");
1506
1686
  g.push({
1507
1687
  path: n[0].path,
1508
1688
  query: n[0].query
1509
1689
  });
1510
1690
  }
1511
1691
  }
1512
- function go(e) {
1692
+ function Lo(e) {
1513
1693
  return e?.children && e.children.length > 1 ? e.redirect ? e.children.filter((t) => t.path === e.redirect)[0] : e.children[0] : e;
1514
1694
  }
1515
- function ca(e = !1) {
1516
- const t = go(b().wholeMenus[0]?.children[0]);
1517
- return e && C().handleTags("push", t), t;
1695
+ function xa(e = !1) {
1696
+ const t = Lo(b().wholeMenus[0]?.children[0]);
1697
+ return e && k().handleTags("push", t), t;
1518
1698
  }
1519
- function yo() {
1520
- return nt;
1699
+ function Ro() {
1700
+ return ht;
1521
1701
  }
1522
- const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1702
+ const No = () => import("./layoutView-DZHoQDH1.js"), Mo = {
1523
1703
  path: "/",
1524
1704
  name: "home",
1525
- component: wo,
1705
+ component: No,
1526
1706
  redirect: "/welcome",
1527
1707
  meta: {
1528
1708
  icon: "home-filled",
@@ -1533,17 +1713,17 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1533
1713
  {
1534
1714
  path: "/welcome",
1535
1715
  name: "UdpWelcome",
1536
- component: () => import("./su-welcome-CXA6OzBw.js"),
1716
+ component: () => import("./su-welcome-DaxhbrC6.js"),
1537
1717
  meta: {
1538
1718
  title: "message.udp.home",
1539
1719
  keepAlive: !0
1540
1720
  }
1541
1721
  }
1542
1722
  ]
1543
- }, vo = () => import("./layoutView-25v_ngk5.js"), To = {
1723
+ }, Oo = () => import("./layoutView-DZHoQDH1.js"), Eo = {
1544
1724
  path: "/error",
1545
1725
  name: "error",
1546
- component: vo,
1726
+ component: Oo,
1547
1727
  redirect: "/error/403",
1548
1728
  meta: {
1549
1729
  showLink: !1,
@@ -1555,17 +1735,17 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1555
1735
  {
1556
1736
  path: "/error/403",
1557
1737
  name: "403",
1558
- component: () => import("./403-gdcH0-Bo.js"),
1738
+ component: () => import("./403-CyoOD-Ik.js"),
1559
1739
  meta: {
1560
1740
  title: "message.udp.fourZeroThree"
1561
1741
  }
1562
1742
  }
1563
1743
  ]
1564
- }, Co = () => import("./layoutView-25v_ngk5.js"), z = [
1744
+ }, Ao = () => import("./layoutView-DZHoQDH1.js"), W = [
1565
1745
  {
1566
1746
  path: "/login",
1567
1747
  name: "login",
1568
- component: () => import("./login-Cmp2RvvW.js"),
1748
+ component: () => import("./login-B8cwozax.js"),
1569
1749
  meta: {
1570
1750
  title: "message.udp.login",
1571
1751
  showLink: !1
@@ -1574,7 +1754,7 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1574
1754
  {
1575
1755
  path: "/error/404",
1576
1756
  name: "404",
1577
- component: () => import("./404-Se2SF97M.js"),
1757
+ component: () => import("./404-Ch_OHTw0.js"),
1578
1758
  meta: {
1579
1759
  title: "message.udp.fourZeroFour",
1580
1760
  showLink: !1
@@ -1583,7 +1763,7 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1583
1763
  {
1584
1764
  path: "/error/500",
1585
1765
  name: "500",
1586
- component: () => import("./500-B6j9AqLo.js"),
1766
+ component: () => import("./500-Cf9am7HK.js"),
1587
1767
  meta: {
1588
1768
  title: "message.udp.five",
1589
1769
  showLink: !1
@@ -1592,7 +1772,7 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1592
1772
  {
1593
1773
  path: "/redirect",
1594
1774
  name: "redirect",
1595
- component: Co,
1775
+ component: Ao,
1596
1776
  meta: {
1597
1777
  icon: "home-filled",
1598
1778
  title: "message.udp.home",
@@ -1608,8 +1788,8 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1608
1788
  }
1609
1789
  ]
1610
1790
  }
1611
- ], So = () => import("./layoutView-25v_ngk5.js"), ko = {
1612
- component: So,
1791
+ ], Fo = () => import("./layoutView-DZHoQDH1.js"), $o = {
1792
+ component: Fo,
1613
1793
  path: "/utask",
1614
1794
  redirect: "/utask/task/flow-task",
1615
1795
  meta: {
@@ -1631,93 +1811,93 @@ const wo = () => import("./layoutView-25v_ngk5.js"), bo = {
1631
1811
  }
1632
1812
  }
1633
1813
  ]
1634
- }, xo = /* @__PURE__ */ Object.assign({
1635
- "../views/organization/company/Company.vue": () => import("./Company-BzSVBSC4.js"),
1636
- "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-DBjZB4aJ.js"),
1637
- "../views/organization/department/Department.vue": () => import("./Department-BkgseHo8.js"),
1638
- "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-Sen93_2M.js"),
1639
- "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-D0Jq1IAa.js"),
1640
- "../views/organization/org/Org.vue": () => import("./Org-CO_1WT39.js"),
1641
- "../views/organization/staff/Staff.vue": () => import("./Staff-BeL1xcRf.js"),
1642
- "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CIfnltyX.js"),
1643
- "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-BV2CHWac.js"),
1644
- "../views/system/cron/cron-task.vue": () => import("./cron-task-B0TkxFdp.js"),
1645
- "../views/system/layout/layout-home.vue": () => import("./layout-home-DrARg-3o.js"),
1814
+ }, Uo = /* @__PURE__ */ Object.assign({
1815
+ "../views/organization/company/Company.vue": () => import("./Company-qo-lKPkv.js"),
1816
+ "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-DkKWAKvY.js"),
1817
+ "../views/organization/department/Department.vue": () => import("./Department-CHUQByKX.js"),
1818
+ "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-C742dfOO.js"),
1819
+ "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-Cz8SzIgs.js"),
1820
+ "../views/organization/org/Org.vue": () => import("./Org-Bzt6yKox.js"),
1821
+ "../views/organization/staff/Staff.vue": () => import("./Staff-D3L8fEoY.js"),
1822
+ "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-DYRw6ZYJ.js"),
1823
+ "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-DkrNH6Px.js"),
1824
+ "../views/system/cron/cron-task.vue": () => import("./cron-task-BFOPJQIk.js"),
1825
+ "../views/system/layout/layout-home.vue": () => import("./layout-home-v3DPJ7rB.js"),
1646
1826
  "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-lVnZ5bce.js"),
1647
- "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-sdj1dRDA.js"),
1648
- "../views/system/menu/menuInfo.vue": () => import("./menuInfo-BIvrE7nm.js"),
1649
- "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-BrunouML.js"),
1650
- "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-HLA7XBlN.js"),
1651
- "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-CQ8ydZvr.js"),
1652
- "../views/system/role/Role.vue": () => import("./Role-Df77BBD-.js"),
1653
- "../views/system/role/RolePanel.vue": () => import("./RolePanel-DSVwqhiD.js"),
1654
- "../views/system/role/UserInfo.vue": () => import("./UserInfo-CTX4hhFl.js"),
1655
- "../views/system/sys/sys-config.vue": () => import("./sys-config-CqO03LeC.js"),
1656
- "../views/system/sysUser/SysUser.vue": () => import("./SysUser-DPfNvthk.js"),
1657
- "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-CoLKYlQE.js"),
1658
- "../views/uapp/pda/pda-app.vue": () => import("./pda-app-CzHVyeEa.js"),
1659
- "../views/udev/coderule/code-rule.vue": () => import("./code-rule-cvN4gYC_.js"),
1660
- "../views/udev/dict/DictView.vue": () => import("./DictView-CJLG4LlE.js"),
1661
- "../views/udev/dict/childView.vue": () => import("./childView-BDmWwJO5.js"),
1662
- "../views/udev/lov/childView.vue": () => import("./childView-Dx3ACtHa.js"),
1663
- "../views/udev/lov/lov-view.vue": () => import("./lov-view-BATtzw2X.js"),
1827
+ "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-C4_Arn12.js"),
1828
+ "../views/system/menu/menuInfo.vue": () => import("./menuInfo-BpRKFYK8.js"),
1829
+ "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-BdxhefhQ.js"),
1830
+ "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-2gZ3H0ET.js"),
1831
+ "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-BJ427cqG.js"),
1832
+ "../views/system/role/Role.vue": () => import("./Role-DqOt8Bk0.js"),
1833
+ "../views/system/role/RolePanel.vue": () => import("./RolePanel-BsNd0svJ.js"),
1834
+ "../views/system/role/UserInfo.vue": () => import("./UserInfo-QcNwJCUR.js"),
1835
+ "../views/system/sys/sys-config.vue": () => import("./sys-config-CG2fMtak.js"),
1836
+ "../views/system/sysUser/SysUser.vue": () => import("./SysUser-Bl1-cIpJ.js"),
1837
+ "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-yxNLaBwt.js"),
1838
+ "../views/uapp/pda/pda-app.vue": () => import("./pda-app-C0jJecrL.js"),
1839
+ "../views/udev/coderule/code-rule.vue": () => import("./code-rule-2_Ihx_by.js"),
1840
+ "../views/udev/dict/DictView.vue": () => import("./DictView-CrFXprP9.js"),
1841
+ "../views/udev/dict/childView.vue": () => import("./childView-saDZQv9x.js"),
1842
+ "../views/udev/lov/childView.vue": () => import("./childView-B23DEO2u.js"),
1843
+ "../views/udev/lov/lov-view.vue": () => import("./lov-view-Ba7Y7xy0.js"),
1664
1844
  "../views/udev/wx/wecom-push.vue": () => import("./wecom-push-B75FLee5.js"),
1665
- "../views/upms/interface/log-in.vue": () => import("./log-in-Bmz5Uhbt.js"),
1666
- "../views/upms/interface/log-out.vue": () => import("./log-out-B-8m3oNj.js"),
1845
+ "../views/upms/interface/log-in.vue": () => import("./log-in-BPAMJTwH.js"),
1846
+ "../views/upms/interface/log-out.vue": () => import("./log-out-DZACF0jg.js"),
1667
1847
  "../views/upms/user/login-log.vue": () => import("./login-log-CVvRgZSu.js"),
1668
1848
  "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-iBHzs75s.js"),
1669
- "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-pqDcwaFC.js"),
1670
- "../views/urpt/design/Preview.vue": () => import("./Preview-DLI4Bwel.js"),
1671
- "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-D4sHTXT7.js"),
1672
- "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-DtOCvQSN.js"),
1673
- "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-QjL-ETPq.js"),
1674
- "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-Cw46OnJ_.js"),
1675
- "../views/urpt/static-resource/resource.vue": () => import("./resource-Y5lGB38n.js"),
1676
- "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-BxAgc_Aj.js")
1677
- }), Po = z, me = [bo, To, ko], Do = tt(
1678
- ee(ue(H(me)))
1679
- ), Io = H(me).concat(...z), ua = Object.keys(z).map((e) => z[e].path), Lo = /* @__PURE__ */ new Set();
1680
- function Mo() {
1681
- Lo.clear();
1849
+ "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-D9oE5R7m.js"),
1850
+ "../views/urpt/design/Preview.vue": () => import("./Preview-jonigfMQ.js"),
1851
+ "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-fp09cXJ7.js"),
1852
+ "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-52ZP1PYP.js"),
1853
+ "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-DSYavJb1.js"),
1854
+ "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-BpiM5Ovq.js"),
1855
+ "../views/urpt/static-resource/resource.vue": () => import("./resource-BG22Cw4P.js"),
1856
+ "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-CA_UW0eD.js")
1857
+ }), jo = W, Te = [Mo, Eo, $o], zo = mt(
1858
+ ae(we(K(Te)))
1859
+ ), _o = K(Te).concat(...W), Pa = Object.keys(W).map((e) => W[e].path), qo = /* @__PURE__ */ new Set();
1860
+ function Bo() {
1861
+ qo.clear();
1682
1862
  }
1683
- function Ro() {
1863
+ function Vo() {
1684
1864
  g.getRoutes().forEach((e) => {
1685
1865
  const { name: t, meta: o } = e;
1686
- t && g.hasRoute(t) && o?.backstage && (g.removeRoute(t), g.options.routes = tt(ee(ue(H(me)))));
1687
- }), b().clearAllCachePage(), Mo();
1866
+ t && g.hasRoute(t) && o?.backstage && (g.removeRoute(t), g.options.routes = mt(ae(we(K(Te)))));
1867
+ }), b().clearAllCachePage(), Bo();
1688
1868
  }
1689
- let ie = null, g = null;
1690
- function No(e, t) {
1691
- ie = e, g = t, Object.assign(ie, xo);
1869
+ let fe = null, g = null;
1870
+ function Wo(e, t) {
1871
+ fe = e, g = t, Object.assign(fe, Uo);
1692
1872
  }
1693
- function Oo() {
1694
- return ie;
1873
+ function Go() {
1874
+ return fe;
1695
1875
  }
1696
- const Eo = ["/login"], Ao = (e, t) => {
1697
- const o = U.get(Ge), n = Ve(e?.name);
1876
+ const Ho = ["/login"], Jo = (e, t) => {
1877
+ const o = S.get(nt), n = Ze(e?.name);
1698
1878
  function a() {
1699
- return Eo.includes(e.fullPath) ? t.fullPath : void 0;
1879
+ return Ho.includes(e.fullPath) ? t.fullPath : void 0;
1700
1880
  }
1701
1881
  if (t?.name && t?.name !== "login") {
1702
1882
  const s = e.matched.find((r) => r.path === e.path || r.name === e.name && e.params)?.components;
1703
1883
  if (n)
1704
- vt(e?.name), Tt?.done();
1884
+ Mt(e?.name), Z?.done();
1705
1885
  else if (s?.default || e.name === "redirect")
1706
1886
  a();
1707
1887
  else
1708
1888
  return { path: "/error/404" };
1709
1889
  } else
1710
- b().wholeMenus.length === 0 && ho(o).then((s) => {
1711
- if (!C().getMultiTagsCache) {
1712
- const { path: r } = e, d = xt(z, (u) => u.path === r) === -1 ? s.options.routes[0].children : s.options.routes, c = et(r, d);
1713
- if (c && c.meta?.title) {
1714
- const { path: u, name: y, meta: L } = c;
1715
- C().handleTags("push", { path: u, name: y, meta: L });
1890
+ b().wholeMenus.length === 0 && Do(o).then((s) => {
1891
+ if (!k().getMultiTagsCache) {
1892
+ const { path: r } = e, l = Ft(W, (u) => u.path === r) === -1 ? s.options.routes[0].children : s.options.routes, d = dt(r, l);
1893
+ if (d && d.meta?.title) {
1894
+ const { path: u, name: y, meta: N } = d;
1895
+ k().handleTags("push", { path: u, name: y, meta: N });
1716
1896
  }
1717
1897
  }
1718
- Pt(e.name) && s.push(e.fullPath);
1898
+ $t(e.name) && s.push(e.fullPath);
1719
1899
  }), t.fullPath === "/" && e.fullPath === "/login" && !e.query?.tokenExpire ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "UdpWelcome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "UdpWelcome", e.query = {}), a();
1720
- }, G = {
1900
+ }, Y = {
1721
1901
  onBeforeLogined: () => {
1722
1902
  },
1723
1903
  onLogined: () => {
@@ -1726,40 +1906,40 @@ const Eo = ["/login"], Ao = (e, t) => {
1726
1906
  },
1727
1907
  onAfterLogout: () => {
1728
1908
  }
1729
- }, da = () => {
1730
- G.onBeforeLogined();
1731
- }, ma = () => {
1732
- G.onLogined();
1733
- }, pa = () => {
1734
- G.onBeforeLogout();
1735
- }, ha = () => {
1736
- G.onAfterLogout();
1737
- }, Fo = (e, t) => {
1909
+ }, Da = () => {
1910
+ Y.onBeforeLogined();
1911
+ }, Ia = () => {
1912
+ Y.onLogined();
1913
+ }, La = () => {
1914
+ Y.onBeforeLogout();
1915
+ }, Ra = () => {
1916
+ Y.onAfterLogout();
1917
+ }, Ko = (e, t) => {
1738
1918
  const o = [];
1739
1919
  for (const n of e)
1740
1920
  n[t] && o.push(n[t]);
1741
1921
  return Array.from(new Set(o));
1742
- }, st = (e) => {
1922
+ }, gt = (e) => {
1743
1923
  const t = e.replace("#", "").match(/../g);
1744
1924
  for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
1745
1925
  return t;
1746
- }, rt = (e, t, o) => {
1926
+ }, yt = (e, t, o) => {
1747
1927
  const n = [e.toString(16), t.toString(16), o.toString(16)];
1748
1928
  for (let a = 0; a < 3; a++)
1749
1929
  n[a].length == 1 && (n[a] = `0${n[a]}`);
1750
1930
  return `#${n.join("")}`;
1751
- }, Uo = (e, t) => {
1752
- const o = st(e);
1931
+ }, Yo = (e, t) => {
1932
+ const o = gt(e);
1753
1933
  for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
1754
- return rt(o[0], o[1], o[2]);
1755
- }, $o = (e, t) => {
1756
- const o = st(e);
1934
+ return yt(o[0], o[1], o[2]);
1935
+ }, Qo = (e, t) => {
1936
+ const o = gt(e);
1757
1937
  for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
1758
- return rt(o[0], o[1], o[2]);
1759
- }, _o = B("udp-permission", {
1938
+ return yt(o[0], o[1], o[2]);
1939
+ }, Zo = G("udp-permission", {
1760
1940
  state: () => ({
1761
1941
  // 静态路由生成的菜单
1762
- constantMenus: Io,
1942
+ constantMenus: _o,
1763
1943
  // 整体路由生成的菜单(静态、动态)
1764
1944
  wholeMenus: [],
1765
1945
  // 深拷贝一个菜单树,与导航菜单不冲突
@@ -1778,12 +1958,12 @@ const Eo = ["/login"], Ao = (e, t) => {
1778
1958
  actions: {
1779
1959
  asyncActionRoutes(e = []) {
1780
1960
  if (this.wholeMenus.length > 0) return;
1781
- const t = Dt(e, (n) => n.menuCode === "SysHome"), o = j(this.constantMenus, !0);
1961
+ const t = Ut(e, (n) => n.menuCode === "SysHome"), o = V(this.constantMenus, !0);
1782
1962
  if (t !== -1) {
1783
1963
  const n = this.constantMenus.find((a) => a.name === "home");
1784
1964
  e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
1785
1965
  }
1786
- this.wholeMenus = Xe(H(this.constantMenus.concat(e))), this.flatteningRoutes = ee(this.constantMenus.concat(e)), this.menusTree = j(this.wholeMenus, !0), this.constantMenus = o;
1966
+ this.wholeMenus = ut(K(this.constantMenus.concat(e))), this.flatteningRoutes = ae(this.constantMenus.concat(e)), this.menusTree = V(this.wholeMenus, !0), this.constantMenus = o;
1787
1967
  },
1788
1968
  async changeSetting(e) {
1789
1969
  await this.asyncActionRoutes(e);
@@ -1797,7 +1977,7 @@ const Eo = ["/login"], Ao = (e, t) => {
1797
1977
  /** 监听缓存页面是否存在于标签页,不存在则删除 */
1798
1978
  clearCache() {
1799
1979
  let e = this.cachePageList.length;
1800
- const t = Fo(C().multiTags, "name");
1980
+ const t = Ko(k().multiTags, "name");
1801
1981
  for (; e > 0; )
1802
1982
  t.findIndex((o) => o === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
1803
1983
  },
@@ -1825,9 +2005,9 @@ const Eo = ["/login"], Ao = (e, t) => {
1825
2005
  }
1826
2006
  });
1827
2007
  function b() {
1828
- return _o(E);
2008
+ return Zo($);
1829
2009
  }
1830
- const jo = B("udp-system", {
2010
+ const Xo = G("udp-system", {
1831
2011
  state: () => ({
1832
2012
  baseURL: "",
1833
2013
  userInfo: {},
@@ -1960,41 +2140,41 @@ const jo = B("udp-system", {
1960
2140
  orgId: e.orgId,
1961
2141
  organizationId: e.organizationId
1962
2142
  };
1963
- U.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((n) => n.roleCode === "admin" || ["管理员"].includes(n.roleName)), b().setAuthButton(e.dataMenus);
2143
+ S.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((n) => n.roleCode === "admin" || ["管理员"].includes(n.roleName)), b().setAuthButton(e.dataMenus);
1964
2144
  }
1965
2145
  }
1966
2146
  });
1967
- function V() {
1968
- return jo(E);
2147
+ function F() {
2148
+ return Xo($);
1969
2149
  }
1970
- const zo = _({
2150
+ const en = q({
1971
2151
  name: "app",
1972
2152
  components: {
1973
- [Te.name]: Te
2153
+ [Le.name]: Le
1974
2154
  },
1975
2155
  computed: {
1976
2156
  currentLocale() {
1977
- return this.$storage?.locale?.locale === "zh" ? Ft : At;
2157
+ return this.$storage?.locale?.locale === "zh" ? Ht : Gt;
1978
2158
  }
1979
2159
  },
1980
2160
  async beforeCreate() {
1981
- await q().get("/upfm/v1/sysConfig", {}).then((e) => {
2161
+ await H().get("/upfm/v1/sysConfig", {}).then((e) => {
1982
2162
  const t = {};
1983
2163
  e.list?.forEach((n) => {
1984
- t[n.configCode] = n.configValue, n.fileName && (t[n.configCode] = x() + "/ufil" + n.configValue);
2164
+ t[n.configCode] = n.configValue, n.fileName && (t[n.configCode] = C() + "/ufil" + n.configValue);
1985
2165
  });
1986
2166
  const o = e.list?.find((n) => n.configCode === "title")?.configValue;
1987
- t.title = o || "U-DP", f.setItem(Vt, t), t.releaseNote !== !1 && this.pollingVersion(t.title);
2167
+ t.title = o || "U-DP", f.setItem(Xt, t), t.releaseNote !== !1 && this.pollingVersion(t.title);
1988
2168
  });
1989
2169
  },
1990
2170
  mounted() {
1991
- Ye().then((e) => V().setDict(e));
2171
+ it().then((e) => F().setDict(e));
1992
2172
  },
1993
2173
  methods: {
1994
2174
  // / 版本实时更新检测,只作用于线上环境
1995
2175
  pollingVersion(e) {
1996
- const t = A().VITE_ROUTER_HISTORY;
1997
- bt(
2176
+ const t = U().VITE_ROUTER_HISTORY;
2177
+ Nt(
1998
2178
  {
1999
2179
  pollingTime: 3e5,
2000
2180
  checkOriginSpecifiedFilesUrl: [`${location.origin}${t ? `/${t}` : ""}/index.html`],
@@ -2009,98 +2189,98 @@ const zo = _({
2009
2189
  );
2010
2190
  }
2011
2191
  }
2012
- }), Vo = (e, t) => {
2192
+ }), tn = (e, t) => {
2013
2193
  const o = e.__vccOpts || e;
2014
2194
  for (const [n, a] of t)
2015
2195
  o[n] = a;
2016
2196
  return o;
2017
2197
  };
2018
- function Bo(e, t, o, n, a, s) {
2019
- const r = se("router-view"), i = se("el-config-provider");
2020
- return ft(), gt(i, {
2198
+ function on(e, t, o, n, a, s) {
2199
+ const r = me("router-view"), i = me("el-config-provider");
2200
+ return Dt(), It(i, {
2021
2201
  size: "small",
2022
2202
  "z-index": 5555,
2023
2203
  locale: e.currentLocale
2024
2204
  }, {
2025
- default: yt(() => [
2026
- ze(r)
2205
+ default: Lt(() => [
2206
+ Qe(r)
2027
2207
  ]),
2028
2208
  _: 1
2029
2209
  }, 8, ["locale"]);
2030
2210
  }
2031
- const qo = /* @__PURE__ */ Vo(zo, [["render", Bo]]);
2032
- Ct(qe, { serviceApi: q(), i18n: Ze });
2033
- Jo();
2034
- const Wo = {
2211
+ const nn = /* @__PURE__ */ tn(en, [["render", on]]);
2212
+ Ot(et, { serviceApi: H(), i18n: ct });
2213
+ ln();
2214
+ const an = {
2035
2215
  // 对组件内置的提示语进行国际化翻译
2036
2216
  // @ts-ignore
2037
- i18n: (e, t) => Y().global.t(e, t),
2217
+ i18n: (e, t) => ee().global.t(e, t),
2038
2218
  // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
2039
2219
  translate(e) {
2040
- return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? Y().global.t.call(Y().global.locale, e) : e;
2220
+ return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? ee().global.t.call(ee().global.locale, e) : e;
2041
2221
  }
2042
2222
  };
2043
- function Ho(e = {}) {
2044
- qe.setConfig(de(Wo, e)), D.interceptor.add("event.clearEdit", {
2223
+ function sn(e = {}) {
2224
+ et.setConfig(be(an, e)), I.interceptor.add("event.clearEdit", {
2045
2225
  tableInterceptorMethod(t) {
2046
2226
  const { $event: o } = t;
2047
2227
  if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
2048
2228
  }
2049
2229
  });
2050
2230
  }
2051
- function Go(e) {
2052
- D.setTheme(e);
2231
+ function rn(e) {
2232
+ I.setTheme(e);
2053
2233
  }
2054
- function Jo() {
2055
- D.commands.add("utTodyay", {
2234
+ function ln() {
2235
+ I.commands.add("utTodyay", {
2056
2236
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2057
- const t = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2237
+ const t = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2058
2238
  e.setModelValue(t, o);
2059
2239
  }
2060
- }), D.commands.add("utYesterDay", {
2240
+ }), I.commands.add("utYesterDay", {
2061
2241
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2062
- const t = v(O(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = v(O(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
2242
+ const t = T(A(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = T(A(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
2063
2243
  e.setModelValue(t, o);
2064
2244
  }
2065
- }), D.commands.add("utRecentWeek", {
2245
+ }), I.commands.add("utRecentWeek", {
2066
2246
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2067
- const t = v(O(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2247
+ const t = T(A(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2068
2248
  e.setModelValue(t, o);
2069
2249
  }
2070
- }), D.commands.add("utRecentMonth", {
2250
+ }), I.commands.add("utRecentMonth", {
2071
2251
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2072
- const t = v(O(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2252
+ const t = T(A(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2073
2253
  e.setModelValue(t, o);
2074
2254
  }
2075
- }), D.commands.add("utRecentThreeMonth", {
2255
+ }), I.commands.add("utRecentThreeMonth", {
2076
2256
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2077
- const t = v(O(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2257
+ const t = T(A(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2078
2258
  e.setModelValue(t, o);
2079
2259
  }
2080
- }), D.commands.add("utRecentHalfYear", {
2260
+ }), I.commands.add("utRecentHalfYear", {
2081
2261
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2082
- const t = v(O(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2262
+ const t = T(A(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2083
2263
  e.setModelValue(t, o);
2084
2264
  }
2085
- }), D.commands.add("utRecentYear", {
2265
+ }), I.commands.add("utRecentYear", {
2086
2266
  dateRangePickerCommandMethod({ $dateRangePicker: e }) {
2087
- const t = v(O(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = v(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2267
+ const t = T(A(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = T(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
2088
2268
  e.setModelValue(t, o);
2089
2269
  }
2090
2270
  });
2091
2271
  }
2092
- var pe = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Yo = Object.getOwnPropertyNames, Qo = Object.prototype.hasOwnProperty, Zo = (e, t, o) => t in e ? pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Xo = (e, t) => {
2093
- for (var o in t) pe(e, o, { get: t[o], enumerable: !0 });
2094
- }, en = (e, t, o, n) => {
2095
- if (t && typeof t == "object" || typeof t == "function") for (let a of Yo(t)) !Qo.call(e, a) && a !== o && pe(e, a, { get: () => t[a], enumerable: !(n = Ko(t, a)) || n.enumerable });
2272
+ var ve = Object.defineProperty, cn = Object.getOwnPropertyDescriptor, un = Object.getOwnPropertyNames, dn = Object.prototype.hasOwnProperty, mn = (e, t, o) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, pn = (e, t) => {
2273
+ for (var o in t) ve(e, o, { get: t[o], enumerable: !0 });
2274
+ }, hn = (e, t, o, n) => {
2275
+ if (t && typeof t == "object" || typeof t == "function") for (let a of un(t)) !dn.call(e, a) && a !== o && ve(e, a, { get: () => t[a], enumerable: !(n = cn(t, a)) || n.enumerable });
2096
2276
  return e;
2097
- }, tn = (e, t, o) => (en(e, t, "default"), o), Me = (e, t, o) => (Zo(e, typeof t != "symbol" ? t + "" : t, o), o), he = {};
2098
- Xo(he, { Vue: () => je });
2099
- tn(he, je);
2100
- var Z = class {
2277
+ }, fn = (e, t, o) => (hn(e, t, "default"), o), ze = (e, t, o) => (mn(e, typeof t != "symbol" ? t + "" : t, o), o), Ce = {};
2278
+ pn(Ce, { Vue: () => Ye });
2279
+ fn(Ce, Ye);
2280
+ var oe = class {
2101
2281
  static install(e, t) {
2102
2282
  let { nameSpace: o = this._nameSpace, memory: n } = t;
2103
- return n && this.clearAll(o, n), new Z(e, t);
2283
+ return n && this.clearAll(o, n), new oe(e, t);
2104
2284
  }
2105
2285
  static clearAll(e, t) {
2106
2286
  Object.keys(t).forEach((o) => {
@@ -2118,25 +2298,25 @@ var Z = class {
2118
2298
  if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
2119
2299
  }
2120
2300
  constructor(e, t) {
2121
- let o = Z, { version: n = 3, nameSpace: a = o._nameSpace, memory: s } = t, r = (c) => a + c, i = n === 3 ? (0, he.reactive)(s) : s;
2122
- Object.keys(i).length === 0 && console.warn("key cannot be empty"), Object.keys(i).forEach((c) => {
2123
- let u = i[c];
2124
- o.set(r(c), u), Reflect.defineProperty(i, c, { get: () => o.get(r(c)), set: (y) => o.set(r(c), y), configurable: !0 }), n === 2 && e.util.defineReactive(i, c, i[c]);
2301
+ let o = oe, { version: n = 3, nameSpace: a = o._nameSpace, memory: s } = t, r = (d) => a + d, i = n === 3 ? (0, Ce.reactive)(s) : s;
2302
+ Object.keys(i).length === 0 && console.warn("key cannot be empty"), Object.keys(i).forEach((d) => {
2303
+ let u = i[d];
2304
+ o.set(r(d), u), Reflect.defineProperty(i, d, { get: () => o.get(r(d)), set: (y) => o.set(r(d), y), configurable: !0 }), n === 2 && e.util.defineReactive(i, d, i[d]);
2125
2305
  });
2126
- let d = n === 3 ? e.config.globalProperties : e.prototype;
2127
- Reflect.defineProperty(d, "$storage", { get: () => i });
2306
+ let l = n === 3 ? e.config.globalProperties : e.prototype;
2307
+ Reflect.defineProperty(l, "$storage", { get: () => i });
2128
2308
  }
2129
- }, R = Z;
2130
- Me(R, "_nameSpace", "rs-"), Me(R, "_getStaticKey", (e, t) => `${e ?? Z._nameSpace}${t}`);
2131
- const on = (e, t) => {
2309
+ }, O = oe;
2310
+ ze(O, "_nameSpace", "rs-"), ze(O, "_getStaticKey", (e, t) => `${e ?? oe._nameSpace}${t}`);
2311
+ const gn = (e, t) => {
2132
2312
  const o = w(), n = Object.assign(
2133
2313
  {
2134
2314
  // 国际化 默认中文zh
2135
- locale: R.getData("locale", o) ?? {
2315
+ locale: O.getData("locale", o) ?? {
2136
2316
  locale: t.Locale ?? "zh"
2137
2317
  },
2138
2318
  // layout模式以及主题
2139
- layout: R.getData("layout", o) ?? {
2319
+ layout: O.getData("layout", o) ?? {
2140
2320
  layout: t.Layout ?? "vertical",
2141
2321
  theme: t.Theme ?? "default",
2142
2322
  darkMode: t.DarkMode ?? !1,
@@ -2147,7 +2327,7 @@ const on = (e, t) => {
2147
2327
  overallStyle: t.OverallStyle ?? "light"
2148
2328
  // 主题模式(浅色:light、深色:dark、自动:system)
2149
2329
  },
2150
- configure: R.getData("configure", o) ?? {
2330
+ configure: O.getData("configure", o) ?? {
2151
2331
  grey: t.Grey ?? !1,
2152
2332
  weak: t.Weak ?? !1,
2153
2333
  hideTabs: t.HideTabs ?? !1,
@@ -2155,19 +2335,19 @@ const on = (e, t) => {
2155
2335
  showModel: t.ShowModel ?? "smart",
2156
2336
  multiTagsCache: t.MultiTagsCache ?? !1
2157
2337
  },
2158
- cnd: R.getData("cnd", o) ?? {}
2338
+ cnd: O.getData("cnd", o) ?? {}
2159
2339
  },
2160
2340
  t.MultiTagsCache ? {
2161
2341
  // 默认显示首页tag
2162
- tags: R.getData("tags", o) ?? W
2342
+ tags: O.getData("tags", o) ?? J
2163
2343
  } : {}
2164
2344
  );
2165
- e.use(R, { nameSpace: o, memory: n });
2166
- }, it = (e) => {
2345
+ e.use(O, { nameSpace: o, memory: n });
2346
+ }, wt = (e) => {
2167
2347
  if (!e) return !0;
2168
2348
  const t = g.currentRoute.value.meta?.permissionCode;
2169
2349
  if (!t) return !0;
2170
- It(e) || (e = [e]);
2350
+ jt(e) || (e = [e]);
2171
2351
  const o = b().getButtonAuth;
2172
2352
  if (!o) return !0;
2173
2353
  let n = !1;
@@ -2177,7 +2357,7 @@ const on = (e, t) => {
2177
2357
  n = o.includes(s);
2178
2358
  }
2179
2359
  }), n;
2180
- }, lt = (e = "fetch", t = "edit") => {
2360
+ }, bt = (e = "fetch", t = "edit") => {
2181
2361
  if (!e) return !0;
2182
2362
  const o = g.currentRoute.value.meta?.permissionCode;
2183
2363
  if (!o) return !0;
@@ -2185,93 +2365,93 @@ const on = (e, t) => {
2185
2365
  if (!n) return !0;
2186
2366
  const a = `${o}.${e}`;
2187
2367
  return n.includes(a) && !n.includes(`${o}.${t}`);
2188
- }, ct = Object.freeze(
2368
+ }, Tt = Object.freeze(
2189
2369
  {
2190
2370
  left: 0,
2191
2371
  top: 0,
2192
2372
  width: 16,
2193
2373
  height: 16
2194
2374
  }
2195
- ), X = Object.freeze({
2375
+ ), ne = Object.freeze({
2196
2376
  rotate: 0,
2197
2377
  vFlip: !1,
2198
2378
  hFlip: !1
2199
- }), fe = Object.freeze({
2200
- ...ct,
2201
- ...X
2202
- }), le = Object.freeze({
2203
- ...fe,
2379
+ }), Se = Object.freeze({
2380
+ ...Tt,
2381
+ ...ne
2382
+ }), ge = Object.freeze({
2383
+ ...Se,
2204
2384
  body: "",
2205
2385
  hidden: !1
2206
2386
  });
2207
- function nn(e, t) {
2387
+ function yn(e, t) {
2208
2388
  const o = {};
2209
2389
  !e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
2210
2390
  const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
2211
2391
  return n && (o.rotate = n), o;
2212
2392
  }
2213
- function Re(e, t) {
2214
- const o = nn(e, t);
2215
- for (const n in le)
2216
- n in X ? n in e && !(n in o) && (o[n] = X[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
2393
+ function _e(e, t) {
2394
+ const o = yn(e, t);
2395
+ for (const n in ge)
2396
+ n in ne ? n in e && !(n in o) && (o[n] = ne[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
2217
2397
  return o;
2218
2398
  }
2219
- function an(e, t) {
2399
+ function wn(e, t) {
2220
2400
  const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), a = /* @__PURE__ */ Object.create(null);
2221
2401
  function s(r) {
2222
2402
  if (o[r])
2223
2403
  return a[r] = [];
2224
2404
  if (!(r in a)) {
2225
2405
  a[r] = null;
2226
- const i = n[r] && n[r].parent, d = i && s(i);
2227
- d && (a[r] = [i].concat(d));
2406
+ const i = n[r] && n[r].parent, l = i && s(i);
2407
+ l && (a[r] = [i].concat(l));
2228
2408
  }
2229
2409
  return a[r];
2230
2410
  }
2231
2411
  return Object.keys(o).concat(Object.keys(n)).forEach(s), a;
2232
2412
  }
2233
- function sn(e, t, o) {
2413
+ function bn(e, t, o) {
2234
2414
  const n = e.icons, a = e.aliases || /* @__PURE__ */ Object.create(null);
2235
2415
  let s = {};
2236
2416
  function r(i) {
2237
- s = Re(
2417
+ s = _e(
2238
2418
  n[i] || a[i],
2239
2419
  s
2240
2420
  );
2241
2421
  }
2242
- return r(t), o.forEach(r), Re(e, s);
2422
+ return r(t), o.forEach(r), _e(e, s);
2243
2423
  }
2244
- function rn(e, t) {
2424
+ function Tn(e, t) {
2245
2425
  const o = [];
2246
2426
  if (typeof e != "object" || typeof e.icons != "object")
2247
2427
  return o;
2248
2428
  e.not_found instanceof Array && e.not_found.forEach((a) => {
2249
2429
  t(a, null), o.push(a);
2250
2430
  });
2251
- const n = an(e);
2431
+ const n = wn(e);
2252
2432
  for (const a in n) {
2253
2433
  const s = n[a];
2254
- s && (t(a, sn(e, a, s)), o.push(a));
2434
+ s && (t(a, bn(e, a, s)), o.push(a));
2255
2435
  }
2256
2436
  return o;
2257
2437
  }
2258
- const ln = {
2438
+ const vn = {
2259
2439
  provider: "",
2260
2440
  aliases: {},
2261
2441
  not_found: {},
2262
- ...ct
2442
+ ...Tt
2263
2443
  };
2264
- function ne(e, t) {
2444
+ function ue(e, t) {
2265
2445
  for (const o in t)
2266
2446
  if (o in e && typeof e[o] != typeof t[o])
2267
2447
  return !1;
2268
2448
  return !0;
2269
2449
  }
2270
- function cn(e) {
2450
+ function Cn(e) {
2271
2451
  if (typeof e != "object" || e === null)
2272
2452
  return null;
2273
2453
  const t = e;
2274
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ne(e, ln))
2454
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ue(e, vn))
2275
2455
  return null;
2276
2456
  const o = t.icons;
2277
2457
  for (const a in o) {
@@ -2280,9 +2460,9 @@ function cn(e) {
2280
2460
  // Name cannot be empty
2281
2461
  !a || // Must have body
2282
2462
  typeof s.body != "string" || // Check other props
2283
- !ne(
2463
+ !ue(
2284
2464
  s,
2285
- le
2465
+ ge
2286
2466
  )
2287
2467
  )
2288
2468
  return null;
@@ -2294,37 +2474,37 @@ function cn(e) {
2294
2474
  // Name cannot be empty
2295
2475
  !a || // Parent must be set and point to existing icon
2296
2476
  typeof r != "string" || !o[r] && !n[r] || // Check other props
2297
- !ne(
2477
+ !ue(
2298
2478
  s,
2299
- le
2479
+ ge
2300
2480
  )
2301
2481
  )
2302
2482
  return null;
2303
2483
  }
2304
2484
  return t;
2305
2485
  }
2306
- const ut = Object.freeze({
2486
+ const vt = Object.freeze({
2307
2487
  width: null,
2308
2488
  height: null
2309
- }), dt = Object.freeze({
2489
+ }), Ct = Object.freeze({
2310
2490
  // Dimensions
2311
- ...ut,
2491
+ ...vt,
2312
2492
  // Transformations
2313
- ...X
2493
+ ...ne
2314
2494
  });
2315
- function un(e, t) {
2495
+ function Sn(e, t) {
2316
2496
  const o = {
2317
2497
  ...e
2318
2498
  };
2319
2499
  for (const n in t) {
2320
2500
  const a = t[n], s = typeof a;
2321
- n in ut ? (a === null || a && (s === "string" || s === "number")) && (o[n] = a) : s === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
2501
+ n in vt ? (a === null || a && (s === "string" || s === "number")) && (o[n] = a) : s === typeof o[n] && (o[n] = n === "rotate" ? a % 4 : a);
2322
2502
  }
2323
2503
  return o;
2324
2504
  }
2325
- const dn = /[\s,]+/;
2326
- function mn(e, t) {
2327
- t.split(dn).forEach((o) => {
2505
+ const kn = /[\s,]+/;
2506
+ function xn(e, t) {
2507
+ t.split(kn).forEach((o) => {
2328
2508
  switch (o.trim()) {
2329
2509
  case "horizontal":
2330
2510
  e.hFlip = !0;
@@ -2335,7 +2515,7 @@ function mn(e, t) {
2335
2515
  }
2336
2516
  });
2337
2517
  }
2338
- function pn(e, t = 0) {
2518
+ function Pn(e, t = 0) {
2339
2519
  const o = e.replace(/^-?[0-9.]*/, "");
2340
2520
  function n(a) {
2341
2521
  for (; a < 0; )
@@ -2361,19 +2541,19 @@ function pn(e, t = 0) {
2361
2541
  }
2362
2542
  return t;
2363
2543
  }
2364
- const hn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, fn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2365
- function Ne(e, t, o) {
2544
+ const Dn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, In = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2545
+ function qe(e, t, o) {
2366
2546
  if (t === 1)
2367
2547
  return e;
2368
2548
  if (o = o || 100, typeof e == "number")
2369
2549
  return Math.ceil(e * t * o) / o;
2370
2550
  if (typeof e != "string")
2371
2551
  return e;
2372
- const n = e.split(hn);
2552
+ const n = e.split(Dn);
2373
2553
  if (n === null || !n.length)
2374
2554
  return e;
2375
2555
  const a = [];
2376
- let s = n.shift(), r = fn.test(s);
2556
+ let s = n.shift(), r = In.test(s);
2377
2557
  for (; ; ) {
2378
2558
  if (r) {
2379
2559
  const i = parseFloat(s);
@@ -2385,7 +2565,7 @@ function Ne(e, t, o) {
2385
2565
  r = !r;
2386
2566
  }
2387
2567
  }
2388
- function gn(e, t = "defs") {
2568
+ function Ln(e, t = "defs") {
2389
2569
  let o = "";
2390
2570
  const n = e.indexOf("<" + t);
2391
2571
  for (; n >= 0; ) {
@@ -2402,20 +2582,20 @@ function gn(e, t = "defs") {
2402
2582
  content: e
2403
2583
  };
2404
2584
  }
2405
- function yn(e, t) {
2585
+ function Rn(e, t) {
2406
2586
  return e ? "<defs>" + e + "</defs>" + t : t;
2407
2587
  }
2408
- function wn(e, t, o) {
2409
- const n = gn(e);
2410
- return yn(n.defs, t + n.content + o);
2588
+ function Nn(e, t, o) {
2589
+ const n = Ln(e);
2590
+ return Rn(n.defs, t + n.content + o);
2411
2591
  }
2412
- const bn = (e) => e === "unset" || e === "undefined" || e === "none";
2413
- function vn(e, t) {
2592
+ const Mn = (e) => e === "unset" || e === "undefined" || e === "none";
2593
+ function On(e, t) {
2414
2594
  const o = {
2415
- ...fe,
2595
+ ...Se,
2416
2596
  ...e
2417
2597
  }, n = {
2418
- ...dt,
2598
+ ...Ct,
2419
2599
  ...t
2420
2600
  }, a = {
2421
2601
  left: o.left,
@@ -2425,63 +2605,63 @@ function vn(e, t) {
2425
2605
  };
2426
2606
  let s = o.body;
2427
2607
  [o, n].forEach((p) => {
2428
- const l = [], S = p.hFlip, ye = p.vFlip;
2608
+ const c = [], x = p.hFlip, xe = p.vFlip;
2429
2609
  let M = p.rotate;
2430
- S ? ye ? M += 2 : (l.push(
2610
+ x ? xe ? M += 2 : (c.push(
2431
2611
  "translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
2432
- ), l.push("scale(-1 1)"), a.top = a.left = 0) : ye && (l.push(
2612
+ ), c.push("scale(-1 1)"), a.top = a.left = 0) : xe && (c.push(
2433
2613
  "translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
2434
- ), l.push("scale(1 -1)"), a.top = a.left = 0);
2435
- let P;
2614
+ ), c.push("scale(1 -1)"), a.top = a.left = 0);
2615
+ let D;
2436
2616
  switch (M < 0 && (M -= Math.floor(M / 4) * 4), M = M % 4, M) {
2437
2617
  case 1:
2438
- P = a.height / 2 + a.top, l.unshift(
2439
- "rotate(90 " + P.toString() + " " + P.toString() + ")"
2618
+ D = a.height / 2 + a.top, c.unshift(
2619
+ "rotate(90 " + D.toString() + " " + D.toString() + ")"
2440
2620
  );
2441
2621
  break;
2442
2622
  case 2:
2443
- l.unshift(
2623
+ c.unshift(
2444
2624
  "rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")"
2445
2625
  );
2446
2626
  break;
2447
2627
  case 3:
2448
- P = a.width / 2 + a.left, l.unshift(
2449
- "rotate(-90 " + P.toString() + " " + P.toString() + ")"
2628
+ D = a.width / 2 + a.left, c.unshift(
2629
+ "rotate(-90 " + D.toString() + " " + D.toString() + ")"
2450
2630
  );
2451
2631
  break;
2452
2632
  }
2453
- M % 2 === 1 && (a.left !== a.top && (P = a.left, a.left = a.top, a.top = P), a.width !== a.height && (P = a.width, a.width = a.height, a.height = P)), l.length && (s = wn(
2633
+ M % 2 === 1 && (a.left !== a.top && (D = a.left, a.left = a.top, a.top = D), a.width !== a.height && (D = a.width, a.width = a.height, a.height = D)), c.length && (s = Nn(
2454
2634
  s,
2455
- '<g transform="' + l.join(" ") + '">',
2635
+ '<g transform="' + c.join(" ") + '">',
2456
2636
  "</g>"
2457
2637
  ));
2458
2638
  });
2459
- const r = n.width, i = n.height, d = a.width, c = a.height;
2639
+ const r = n.width, i = n.height, l = a.width, d = a.height;
2460
2640
  let u, y;
2461
- r === null ? (y = i === null ? "1em" : i === "auto" ? c : i, u = Ne(y, d / c)) : (u = r === "auto" ? d : r, y = i === null ? Ne(u, c / d) : i === "auto" ? c : i);
2462
- const L = {}, m = (p, l) => {
2463
- bn(l) || (L[p] = l.toString());
2641
+ r === null ? (y = i === null ? "1em" : i === "auto" ? d : i, u = qe(y, l / d)) : (u = r === "auto" ? l : r, y = i === null ? qe(u, d / l) : i === "auto" ? d : i);
2642
+ const N = {}, m = (p, c) => {
2643
+ Mn(c) || (N[p] = c.toString());
2464
2644
  };
2465
2645
  m("width", u), m("height", y);
2466
- const h = [a.left, a.top, d, c];
2467
- return L.viewBox = h.join(" "), {
2468
- attributes: L,
2646
+ const h = [a.left, a.top, l, d];
2647
+ return N.viewBox = h.join(" "), {
2648
+ attributes: N,
2469
2649
  viewBox: h,
2470
2650
  body: s
2471
2651
  };
2472
2652
  }
2473
- const Tn = /\sid="(\S+)"/g, Cn = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2474
- let Sn = 0;
2475
- function kn(e, t = Cn) {
2653
+ const En = /\sid="(\S+)"/g, An = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
2654
+ let Fn = 0;
2655
+ function $n(e, t = An) {
2476
2656
  const o = [];
2477
2657
  let n;
2478
- for (; n = Tn.exec(e); )
2658
+ for (; n = En.exec(e); )
2479
2659
  o.push(n[1]);
2480
2660
  if (!o.length)
2481
2661
  return e;
2482
2662
  const a = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
2483
2663
  return o.forEach((s) => {
2484
- const r = typeof t == "function" ? t(s) : t + (Sn++).toString(), i = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2664
+ const r = typeof t == "function" ? t(s) : t + (Fn++).toString(), i = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2485
2665
  e = e.replace(
2486
2666
  // Allowed characters before id: [#;"]
2487
2667
  // Allowed characters after id: [)"], .[a-z]
@@ -2490,62 +2670,62 @@ function kn(e, t = Cn) {
2490
2670
  );
2491
2671
  }), e = e.replace(new RegExp(a, "g"), ""), e;
2492
2672
  }
2493
- function xn(e, t) {
2673
+ function Un(e, t) {
2494
2674
  let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
2495
2675
  for (const n in t)
2496
2676
  o += " " + n + '="' + t[n] + '"';
2497
2677
  return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
2498
2678
  }
2499
- function Pn(e) {
2679
+ function jn(e) {
2500
2680
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
2501
2681
  }
2502
- function Dn(e) {
2503
- return "data:image/svg+xml," + Pn(e);
2682
+ function zn(e) {
2683
+ return "data:image/svg+xml," + jn(e);
2504
2684
  }
2505
- function In(e) {
2506
- return 'url("' + Dn(e) + '")';
2685
+ function _n(e) {
2686
+ return 'url("' + zn(e) + '")';
2507
2687
  }
2508
- const Oe = {
2509
- ...dt,
2688
+ const Be = {
2689
+ ...Ct,
2510
2690
  inline: !1
2511
- }, Ln = {
2691
+ }, qn = {
2512
2692
  xmlns: "http://www.w3.org/2000/svg",
2513
2693
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
2514
2694
  "aria-hidden": !0,
2515
2695
  role: "img"
2516
- }, Mn = {
2696
+ }, Bn = {
2517
2697
  display: "inline-block"
2518
- }, ce = {
2698
+ }, ye = {
2519
2699
  backgroundColor: "currentColor"
2520
- }, mt = {
2700
+ }, St = {
2521
2701
  backgroundColor: "transparent"
2522
- }, Ee = {
2702
+ }, Ve = {
2523
2703
  Image: "var(--svg)",
2524
2704
  Repeat: "no-repeat",
2525
2705
  Size: "100% 100%"
2526
- }, Ae = {
2527
- webkitMask: ce,
2528
- mask: ce,
2529
- background: mt
2706
+ }, We = {
2707
+ webkitMask: ye,
2708
+ mask: ye,
2709
+ background: St
2530
2710
  };
2531
- for (const e in Ae) {
2532
- const t = Ae[e];
2533
- for (const o in Ee)
2534
- t[e + o] = Ee[o];
2711
+ for (const e in We) {
2712
+ const t = We[e];
2713
+ for (const o in Ve)
2714
+ t[e + o] = Ve[o];
2535
2715
  }
2536
- const Q = {};
2716
+ const te = {};
2537
2717
  ["horizontal", "vertical"].forEach((e) => {
2538
2718
  const t = e.slice(0, 1) + "Flip";
2539
- Q[e + "-flip"] = t, Q[e.slice(0, 1) + "-flip"] = t, Q[e + "Flip"] = t;
2719
+ te[e + "-flip"] = t, te[e.slice(0, 1) + "-flip"] = t, te[e + "Flip"] = t;
2540
2720
  });
2541
- function Fe(e) {
2721
+ function Ge(e) {
2542
2722
  return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
2543
2723
  }
2544
- const Rn = (e, t) => {
2545
- const o = un(Oe, t), n = { ...Ln }, a = t.mode || "svg", s = {}, r = t.style, i = typeof r == "object" && !(r instanceof Array) ? r : {};
2724
+ const Vn = (e, t) => {
2725
+ const o = Sn(Be, t), n = { ...qn }, a = t.mode || "svg", s = {}, r = t.style, i = typeof r == "object" && !(r instanceof Array) ? r : {};
2546
2726
  for (let p in t) {
2547
- const l = t[p];
2548
- if (l !== void 0)
2727
+ const c = t[p];
2728
+ if (c !== void 0)
2549
2729
  switch (p) {
2550
2730
  // Properties to ignore
2551
2731
  case "icon":
@@ -2558,88 +2738,88 @@ const Rn = (e, t) => {
2558
2738
  case "inline":
2559
2739
  case "hFlip":
2560
2740
  case "vFlip":
2561
- o[p] = l === !0 || l === "true" || l === 1;
2741
+ o[p] = c === !0 || c === "true" || c === 1;
2562
2742
  break;
2563
2743
  // Flip as string: 'horizontal,vertical'
2564
2744
  case "flip":
2565
- typeof l == "string" && mn(o, l);
2745
+ typeof c == "string" && xn(o, c);
2566
2746
  break;
2567
2747
  // Color: override style
2568
2748
  case "color":
2569
- s.color = l;
2749
+ s.color = c;
2570
2750
  break;
2571
2751
  // Rotation as string
2572
2752
  case "rotate":
2573
- typeof l == "string" ? o[p] = pn(l) : typeof l == "number" && (o[p] = l);
2753
+ typeof c == "string" ? o[p] = Pn(c) : typeof c == "number" && (o[p] = c);
2574
2754
  break;
2575
2755
  // Remove aria-hidden
2576
2756
  case "ariaHidden":
2577
2757
  case "aria-hidden":
2578
- l !== !0 && l !== "true" && delete n["aria-hidden"];
2758
+ c !== !0 && c !== "true" && delete n["aria-hidden"];
2579
2759
  break;
2580
2760
  default: {
2581
- const S = Q[p];
2582
- S ? (l === !0 || l === "true" || l === 1) && (o[S] = !0) : Oe[p] === void 0 && (n[p] = l);
2761
+ const x = te[p];
2762
+ x ? (c === !0 || c === "true" || c === 1) && (o[x] = !0) : Be[p] === void 0 && (n[p] = c);
2583
2763
  }
2584
2764
  }
2585
2765
  }
2586
- const d = vn(e, o), c = d.attributes;
2766
+ const l = On(e, o), d = l.attributes;
2587
2767
  if (o.inline && (s.verticalAlign = "-0.125em"), a === "svg") {
2588
2768
  n.style = {
2589
2769
  ...s,
2590
2770
  ...i
2591
- }, Object.assign(n, c);
2592
- let p = 0, l = t.id;
2593
- return typeof l == "string" && (l = l.replace(/-/g, "_")), n.innerHTML = kn(d.body, l ? () => l + "ID" + p++ : "iconifyVue"), N("svg", n);
2771
+ }, Object.assign(n, d);
2772
+ let p = 0, c = t.id;
2773
+ return typeof c == "string" && (c = c.replace(/-/g, "_")), n.innerHTML = $n(l.body, c ? () => c + "ID" + p++ : "iconifyVue"), E("svg", n);
2594
2774
  }
2595
- const { body: u, width: y, height: L } = e, m = a === "mask" || (a === "bg" ? !1 : u.indexOf("currentColor") !== -1), h = xn(u, {
2596
- ...c,
2775
+ const { body: u, width: y, height: N } = e, m = a === "mask" || (a === "bg" ? !1 : u.indexOf("currentColor") !== -1), h = Un(u, {
2776
+ ...d,
2597
2777
  width: y + "",
2598
- height: L + ""
2778
+ height: N + ""
2599
2779
  });
2600
2780
  return n.style = {
2601
2781
  ...s,
2602
- "--svg": In(h),
2603
- width: Fe(c.width),
2604
- height: Fe(c.height),
2605
- ...Mn,
2606
- ...m ? ce : mt,
2782
+ "--svg": _n(h),
2783
+ width: Ge(d.width),
2784
+ height: Ge(d.height),
2785
+ ...Bn,
2786
+ ...m ? ye : St,
2607
2787
  ...i
2608
- }, N("span", n);
2609
- }, ge = /* @__PURE__ */ Object.create(null);
2610
- function Nn(e, t) {
2611
- ge[e] = t;
2788
+ }, E("span", n);
2789
+ }, ke = /* @__PURE__ */ Object.create(null);
2790
+ function Wn(e, t) {
2791
+ ke[e] = t;
2612
2792
  }
2613
- function fa(e, t) {
2793
+ function Na(e, t) {
2614
2794
  const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
2615
- cn(e) && rn(e, (n, a) => {
2616
- a && (ge[o + n] = a);
2795
+ Cn(e) && Tn(e, (n, a) => {
2796
+ a && (ke[o + n] = a);
2617
2797
  });
2618
2798
  }
2619
- const Ue = _({
2799
+ const He = q({
2620
2800
  // Do not inherit other attributes: it is handled by render()
2621
2801
  inheritAttrs: !1,
2622
2802
  // Render icon
2623
2803
  render() {
2624
- const e = this.$attrs, t = e.icon, o = typeof t == "string" ? ge[t] : typeof t == "object" ? t : null;
2625
- return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : Rn({
2626
- ...fe,
2804
+ const e = this.$attrs, t = e.icon, o = typeof t == "string" ? ke[t] : typeof t == "object" ? t : null;
2805
+ return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : Vn({
2806
+ ...Se,
2627
2807
  ...o
2628
2808
  }, e);
2629
2809
  }
2630
- }), On = _({
2810
+ }), Gn = q({
2631
2811
  name: "IconOffline",
2632
- components: { IconifyIcon: Ue },
2812
+ components: { IconifyIcon: He },
2633
2813
  props: {
2634
2814
  icon: {
2635
2815
  default: null
2636
2816
  }
2637
2817
  },
2638
2818
  render() {
2639
- typeof this.icon == "object" && Nn(this.icon, this.icon);
2819
+ typeof this.icon == "object" && Wn(this.icon, this.icon);
2640
2820
  const e = this.$attrs;
2641
- return N(
2642
- Ue,
2821
+ return E(
2822
+ He,
2643
2823
  {
2644
2824
  icon: this.icon,
2645
2825
  style: e?.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
@@ -2651,9 +2831,9 @@ const Ue = _({
2651
2831
  );
2652
2832
  }
2653
2833
  });
2654
- _({
2834
+ q({
2655
2835
  name: "IconifyIconOnline",
2656
- components: { IconifyIcon: Se },
2836
+ components: { IconifyIcon: Ne },
2657
2837
  props: {
2658
2838
  icon: {
2659
2839
  type: String,
@@ -2662,8 +2842,8 @@ _({
2662
2842
  },
2663
2843
  render() {
2664
2844
  const e = this.$attrs;
2665
- return N(
2666
- Se,
2845
+ return E(
2846
+ Ne,
2667
2847
  {
2668
2848
  icon: `${this.icon}`,
2669
2849
  style: e?.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
@@ -2675,7 +2855,7 @@ _({
2675
2855
  );
2676
2856
  }
2677
2857
  });
2678
- const En = _({
2858
+ const Hn = q({
2679
2859
  name: "FontIcon",
2680
2860
  props: {
2681
2861
  icon: {
@@ -2685,14 +2865,14 @@ const En = _({
2685
2865
  },
2686
2866
  render() {
2687
2867
  const e = this.$attrs;
2688
- return Object.keys(e).includes("uni") || e?.iconType === "uni" ? N(
2868
+ return Object.keys(e).includes("uni") || e?.iconType === "uni" ? E(
2689
2869
  "i",
2690
2870
  {
2691
2871
  class: "iconfont",
2692
2872
  ...e
2693
2873
  },
2694
2874
  this.icon
2695
- ) : Object.keys(e).includes("svg") || e?.iconType === "svg" ? N(
2875
+ ) : Object.keys(e).includes("svg") || e?.iconType === "svg" ? E(
2696
2876
  "svg",
2697
2877
  {
2698
2878
  class: "icon-svg",
@@ -2700,17 +2880,17 @@ const En = _({
2700
2880
  },
2701
2881
  {
2702
2882
  default: () => [
2703
- N("use", {
2883
+ E("use", {
2704
2884
  "xlink:href": `#${this.icon}`
2705
2885
  })
2706
2886
  ]
2707
2887
  }
2708
- ) : N("i", {
2888
+ ) : E("i", {
2709
2889
  class: `iconfont ${this.icon}`,
2710
2890
  ...e
2711
2891
  });
2712
2892
  }
2713
- }), An = On, Fn = En, Un = {
2893
+ }), Jn = Gn, Kn = Hn, Yn = {
2714
2894
  mounted(e, t) {
2715
2895
  const { value: o } = t;
2716
2896
  if (o) {
@@ -2720,7 +2900,7 @@ const En = _({
2720
2900
  throw new Error(`need roles! Like v-auth="['admin','test']"`);
2721
2901
  }
2722
2902
  };
2723
- function $n(e) {
2903
+ function Qn(e) {
2724
2904
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
2725
2905
  var n = e.get(t);
2726
2906
  n ? n.push(o) : e.set(t, [o]);
@@ -2736,38 +2916,38 @@ function $n(e) {
2736
2916
  });
2737
2917
  } };
2738
2918
  }
2739
- const _n = $n(), $e = Et({
2919
+ const Zn = Qn(), Je = Wt({
2740
2920
  strategy: "scroll"
2741
- }), jn = {
2921
+ }), Xn = {
2742
2922
  mounted(e, t, o) {
2743
- $e.listenTo(e, (n) => {
2923
+ Je.listenTo(e, (n) => {
2744
2924
  const a = n.offsetWidth, s = n.offsetHeight;
2745
- t?.instance ? _n.emit("resize", { detail: { width: a, height: s } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: s } }));
2925
+ t?.instance ? Zn.emit("resize", { detail: { width: a, height: s } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: a, height: s } }));
2746
2926
  });
2747
2927
  },
2748
2928
  unmounted(e) {
2749
- $e.uninstall(e);
2929
+ Je.uninstall(e);
2750
2930
  }
2751
- }, _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2931
+ }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2752
2932
  __proto__: null,
2753
- auth: Un,
2754
- resize: jn
2755
- }, Symbol.toStringTag, { value: "Module" })), k = wt(qo);
2756
- k.use(Ot, {
2933
+ auth: Yn,
2934
+ resize: Xn
2935
+ }, Symbol.toStringTag, { value: "Module" })), P = Rt(nn);
2936
+ P.use(Vt, {
2757
2937
  defaultProps: { animation: "perspective" }
2758
2938
  });
2759
- const zn = (e) => {
2760
- e.config.globalProperties.$hasAuthority = it, e.config.globalProperties.$isViewonly = lt, e.config.globalProperties.$serviceApi = q(), e.config.globalProperties.$debuggerApi = Ht(), e.config.globalProperties.$url = x(), window.$i18n = Ze;
2761
- }, Vn = (e) => {
2762
- Object.keys(_e).forEach((t) => {
2763
- e.directive(t, _e[t]);
2939
+ const ea = (e) => {
2940
+ e.config.globalProperties.$hasAuthority = wt, e.config.globalProperties.$isViewonly = bt, e.config.globalProperties.$serviceApi = H(), e.config.globalProperties.$debuggerApi = so(), e.config.globalProperties.$url = C(), window.$i18n = ct;
2941
+ }, ta = (e) => {
2942
+ Object.keys(Ke).forEach((t) => {
2943
+ e.directive(t, Ke[t]);
2764
2944
  });
2765
- }, Bn = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: s }) => (No(n, e), k.use(e), Bt(e), Ut(k, t), $t(a), Ho(s), new Promise((r) => {
2766
- io(k, o), k.component("IconifyIconOffline", An), k.component("FontIcon", Fn), zn(k), qt(x()), Vn(k), Kt(k), on(k, t), r({ app: k, router: e });
2945
+ }, oa = ({ router: e, config: t, lang: o, views: n, env: a, tableConfig: s }) => (Wo(n, e), P.use(e), oo(e), Jt(P, t), Kt(a), sn(s), new Promise((r) => {
2946
+ vo(P, o), P.component("IconifyIconOffline", Jn), P.component("FontIcon", Kn), ea(P), no(C()), ta(P), lo(P), gn(P, t), r({ app: P, router: e });
2767
2947
  }));
2768
- function pt() {
2769
- const { $storage: e, $config: t } = Be(), o = () => {
2770
- Qe().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = W), e?.locale || (Nt().locale.value = t?.Locale ?? "zh"), e && !e?.layout && (e.layout = {
2948
+ function kt() {
2949
+ const { $storage: e, $config: t } = Xe(), o = () => {
2950
+ lt().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = J), e?.locale || (Bt().locale.value = t?.Locale ?? "zh"), e && !e?.layout && (e.layout = {
2771
2951
  layout: t?.Layout ?? "vertical",
2772
2952
  theme: t?.Theme ?? "default",
2773
2953
  darkMode: t?.DarkMode ?? !1,
@@ -2782,23 +2962,23 @@ function pt() {
2782
2962
  showModel: t?.ShowModel ?? "smart",
2783
2963
  multiTagsCache: t?.MultiTagsCache ?? !1
2784
2964
  });
2785
- }, n = ve(() => e?.layout.layout), a = ve(() => e?.layout);
2965
+ }, n = Ie(() => e?.layout.layout), a = Ie(() => e?.layout);
2786
2966
  return {
2787
2967
  layout: n,
2788
2968
  layoutTheme: a,
2789
2969
  initStorage: o
2790
2970
  };
2791
2971
  }
2792
- const qn = B("udp-app", {
2972
+ const na = G("udp-app", {
2793
2973
  state: () => ({
2794
2974
  sidebar: {
2795
- opened: f.getItem(`${w()}layout`)?.sidebarStatus ?? I().SidebarStatus,
2975
+ opened: f.getItem(`${w()}layout`)?.sidebarStatus ?? R().SidebarStatus,
2796
2976
  withoutAnimation: !1,
2797
2977
  isClickCollapse: !1
2798
2978
  },
2799
2979
  // 这里的layout用于监听容器拖拉后恢复对应的菜单布局
2800
- layout: f.getItem(`${w()}layout`)?.layout ?? I().Layout,
2801
- device: St() ? "mobile" : "desktop"
2980
+ layout: f.getItem(`${w()}layout`)?.layout ?? R().Layout,
2981
+ device: Et() ? "mobile" : "desktop"
2802
2982
  }),
2803
2983
  getters: {
2804
2984
  getSidebarStatus() {
@@ -2824,13 +3004,13 @@ const qn = B("udp-app", {
2824
3004
  }
2825
3005
  }
2826
3006
  });
2827
- function Wn() {
2828
- return qn(E);
3007
+ function aa() {
3008
+ return na($);
2829
3009
  }
2830
- const Hn = B("udp-epTheme", {
3010
+ const sa = G("udp-epTheme", {
2831
3011
  state: () => ({
2832
- epThemeColor: f.getItem(`${w()}-layout`)?.epThemeColor ?? I().EpThemeColor,
2833
- epTheme: f.getItem(`${w()}-layout`)?.theme ?? I().Theme
3012
+ epThemeColor: f.getItem(`${w()}-layout`)?.epThemeColor ?? R().EpThemeColor,
3013
+ epTheme: f.getItem(`${w()}-layout`)?.theme ?? R().Theme
2834
3014
  }),
2835
3015
  getters: {
2836
3016
  getEpThemeColor() {
@@ -2848,11 +3028,11 @@ const Hn = B("udp-epTheme", {
2848
3028
  }
2849
3029
  }
2850
3030
  });
2851
- function ae() {
2852
- return Hn(E);
3031
+ function de() {
3032
+ return sa($);
2853
3033
  }
2854
- function Gn() {
2855
- const { layoutTheme: e, layout: t } = pt(), o = te([
3034
+ function ra() {
3035
+ const { layoutTheme: e, layout: t } = kt(), o = re([
2856
3036
  /* 道奇蓝(默认) */
2857
3037
  { color: "#1b2a47", themeColor: "default" },
2858
3038
  /* 亮白色 */
@@ -2871,13 +3051,13 @@ function Gn() {
2871
3051
  { color: "#eb2f96", themeColor: "pink" },
2872
3052
  /* 深紫罗兰色 */
2873
3053
  { color: "#722ed1", themeColor: "saucePurple" }
2874
- ]), { $storage: n } = Be(), a = te(n?.layout?.darkMode), s = te(n?.layout?.overallStyle), r = document.documentElement;
3054
+ ]), { $storage: n } = Xe(), a = re(n?.layout?.darkMode), s = re(n?.layout?.overallStyle), r = document.documentElement;
2875
3055
  function i(m, h, p) {
2876
- const l = p || document.body;
2877
- let { className: S } = l;
2878
- S = S.replace(h, "").trim(), l.className = m ? `${S} ${h}` : S;
3056
+ const c = p || document.body;
3057
+ let { className: x } = c;
3058
+ x = x.replace(h, "").trim(), c.className = m ? `${x} ${h}` : x;
2879
3059
  }
2880
- function d(m = I().Theme ?? "default") {
3060
+ function l(m = R().Theme ?? "default") {
2881
3061
  if (e.value.theme = m, document.documentElement.setAttribute("data-theme", m), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${m}`), n.layout = {
2882
3062
  layout: t.value,
2883
3063
  theme: m,
@@ -2886,32 +3066,32 @@ function Gn() {
2886
3066
  epThemeColor: n.layout?.epThemeColor,
2887
3067
  overallStyle: s.value
2888
3068
  }, m === "default" || m === "light")
2889
- u(I().EpThemeColor || "#409EFF");
3069
+ u(R().EpThemeColor || "#409EFF");
2890
3070
  else {
2891
3071
  const h = o.value.find((p) => p.themeColor === m);
2892
3072
  u(h.color);
2893
3073
  }
2894
3074
  }
2895
- function c(m, h, p) {
3075
+ function d(m, h, p) {
2896
3076
  document.documentElement.style.setProperty(
2897
3077
  `--el-color-primary-${m}-${h}`,
2898
- a.value ? Uo(p, h / 10) : $o(p, h / 10)
3078
+ a.value ? Yo(p, h / 10) : Qo(p, h / 10)
2899
3079
  );
2900
3080
  }
2901
3081
  const u = (m) => {
2902
- ae().setEpThemeColor(m), document.documentElement.style.setProperty("--el-color-primary", m);
3082
+ de().setEpThemeColor(m), document.documentElement.style.setProperty("--el-color-primary", m);
2903
3083
  for (let h = 1; h <= 2; h++)
2904
- c("dark", h, m);
3084
+ d("dark", h, m);
2905
3085
  for (let h = 1; h <= 9; h++)
2906
- c("light", h, m);
3086
+ d("light", h, m);
2907
3087
  };
2908
3088
  function y(m) {
2909
- s.value = m, ae().epTheme === "light" && a.value ? d("default") : d(ae().epTheme), Go(a.value ? "dark" : "light"), a.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
3089
+ s.value = m, de().epTheme === "light" && a.value ? l("default") : l(de().epTheme), rn(a.value ? "dark" : "light"), a.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
2910
3090
  }
2911
- function L() {
2912
- U.remove(zt), U.remove(He), U.remove(Ge), f.clear(), kt.clear();
2913
- const { Grey: m, Weak: h, MultiTagsCache: p, EpThemeColor: l, Layout: S } = I();
2914
- Wn().setLayout(S), u(l), C().multiTagsCacheChange(p), i(m, "html-grey", document.querySelector("html")), i(h, "html-weakness", document.querySelector("html")), g.push("/login"), C().handleTags("equal", [...W]), Ro();
3091
+ function N() {
3092
+ S.remove(Zt), S.remove(ot), S.remove(nt), f.clear(), At.clear();
3093
+ const { Grey: m, Weak: h, MultiTagsCache: p, EpThemeColor: c, Layout: x } = R();
3094
+ aa().setLayout(x), u(c), k().multiTagsCacheChange(p), i(m, "html-grey", document.querySelector("html")), i(h, "html-weakness", document.querySelector("html")), g.push("/login"), k().handleTags("equal", [...J]), Vo();
2915
3095
  }
2916
3096
  return {
2917
3097
  body: r,
@@ -2919,88 +3099,115 @@ function Gn() {
2919
3099
  dataTheme: a,
2920
3100
  layoutTheme: e,
2921
3101
  themeColors: o,
2922
- onReset: L,
3102
+ onReset: N,
2923
3103
  toggleClass: i,
2924
3104
  dataThemeChange: y,
2925
3105
  setEpThemeColor: u,
2926
- setLayoutThemeColor: d
3106
+ setLayoutThemeColor: l
2927
3107
  };
2928
3108
  }
2929
- const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3109
+ function ia(e, t) {
3110
+ return e.then(function(o) {
3111
+ return [null, o];
3112
+ }).catch(function(o) {
3113
+ return t && Object.assign(o, t), [o, void 0];
3114
+ });
3115
+ }
3116
+ const xt = (e, t = "N") => {
3117
+ const n = "/urpt/v1/printTemplate/" + (t === "Y" ? "selectByMultiTemplateCode" : "selectByTemplateCode");
3118
+ return B.get(`${C()}${n}`, { templateCode: e });
3119
+ }, la = (e, t) => {
3120
+ const o = { printConfig: {}, printContentList: null }, n = F().getOrganizationId, a = F().getOrgId, s = "/upms/v1/printTemplateConfig/ogn", r = Object.assign({ pageSize: 100, pageNum: 1, orgId: a, organizationId: n, printPosition: e }, t || {});
3121
+ return new Promise((i) => {
3122
+ B.get(`${C()}${s}`, r).then(async (l) => {
3123
+ const d = l.list?.map((u) => (o.printConfig[u.buttonCode] = { templateCode: u.templateCode, url: u.url }, u.templateCode)).join(",");
3124
+ if (d) {
3125
+ const [u, y] = await ia(xt(d, "Y"));
3126
+ u || (o.printContentList = y);
3127
+ }
3128
+ i(o);
3129
+ });
3130
+ });
3131
+ }, Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2930
3132
  __proto__: null,
2931
- constantRoutes: Do,
2932
- default: Bn,
2933
- delCurrentRoute: fo,
2934
- getBrower: Ke,
2935
- getPlatform: Je,
2936
- getProcessMenu: yo,
2937
- getServiceApi: q,
2938
- handleAliveRoute: ot,
2939
- hasAuthority: it,
2940
- initDict: Ye,
2941
- isViewonly: lt,
2942
- lifeCycleEvent: G,
2943
- remainingRouters: Po,
2944
- routerBefore: Ao,
2945
- store: E,
2946
- useDataThemeChange: Gn,
2947
- useLayout: pt,
2948
- useMultiTagsStore: C,
3133
+ constantRoutes: zo,
3134
+ default: oa,
3135
+ delCurrentRoute: Io,
3136
+ getBrower: rt,
3137
+ getDesignTemplate: xt,
3138
+ getPlatform: st,
3139
+ getPrintTemp: la,
3140
+ getProcessMenu: Ro,
3141
+ getServiceApi: H,
3142
+ handleAliveRoute: pt,
3143
+ hasAuthority: wt,
3144
+ initDict: it,
3145
+ isViewonly: bt,
3146
+ lifeCycleEvent: Y,
3147
+ remainingRouters: jo,
3148
+ routerBefore: Jo,
3149
+ store: $,
3150
+ useDataThemeChange: ra,
3151
+ useLayout: kt,
3152
+ useMultiTagsStore: k,
2949
3153
  usePermissionStore: b,
2950
- useSystemStore: V,
2951
- userMonitor: Jt
3154
+ useSystemStore: F,
3155
+ userMonitor: io
2952
3156
  }, Symbol.toStringTag, { value: "Module" }));
2953
3157
  export {
2954
- G as A,
2955
- ha as B,
2956
- da as C,
2957
- pa as D,
2958
- ma as E,
2959
- Fn as F,
2960
- ua as G,
2961
- Po as H,
2962
- An as I,
2963
- Ro as J,
2964
- w as K,
2965
- g as L,
2966
- W as M,
2967
- Ao as N,
2968
- E as O,
2969
- Ze as P,
2970
- ga as Q,
2971
- Wn as R,
2972
- Gn as S,
2973
- ae as T,
2974
- pt as U,
2975
- C as V,
2976
- b as W,
2977
- V as X,
2978
- Jt as Y,
2979
- Vo as _,
2980
- fa as a,
2981
- Nn as b,
2982
- Do as c,
2983
- fo as d,
2984
- _n as e,
2985
- et as f,
2986
- x as g,
2987
- Ke as h,
2988
- I as i,
2989
- A as j,
2990
- la as k,
2991
- Je as l,
2992
- yo as m,
2993
- q as n,
2994
- ca as o,
2995
- ot as p,
2996
- it as q,
2997
- Bn as r,
2998
- Ye as s,
2999
- lt as t,
3000
- zt as u,
3001
- ra as v,
3002
- Ge as w,
3003
- ia as x,
3004
- Vt as y,
3005
- He as z
3158
+ jo as $,
3159
+ U as A,
3160
+ g as B,
3161
+ Zt as C,
3162
+ Vo as D,
3163
+ Pa as E,
3164
+ Kn as F,
3165
+ La as G,
3166
+ Ra as H,
3167
+ Jn as I,
3168
+ Ma as J,
3169
+ Sa as K,
3170
+ Ca as L,
3171
+ Io as M,
3172
+ io as N,
3173
+ Da as O,
3174
+ Ia as P,
3175
+ zo as Q,
3176
+ oa as R,
3177
+ rt as S,
3178
+ xt as T,
3179
+ st as U,
3180
+ la as V,
3181
+ Ro as W,
3182
+ it as X,
3183
+ bt as Y,
3184
+ Y as Z,
3185
+ tn as _,
3186
+ Na as a,
3187
+ Jo as a0,
3188
+ Wn as b,
3189
+ k as c,
3190
+ ka as d,
3191
+ b as e,
3192
+ dt as f,
3193
+ R as g,
3194
+ F as h,
3195
+ ia as i,
3196
+ H as j,
3197
+ Xt as k,
3198
+ xa as l,
3199
+ J as m,
3200
+ Zn as n,
3201
+ pt as o,
3202
+ ra as p,
3203
+ aa as q,
3204
+ w as r,
3205
+ $ as s,
3206
+ ct as t,
3207
+ de as u,
3208
+ kt as v,
3209
+ wt as w,
3210
+ C as x,
3211
+ ot as y,
3212
+ nt as z
3006
3213
  };