@utogether/udp-core 1.0.1-beta.21 → 1.0.1-beta.23

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 (79) hide show
  1. package/dist/{403-B_l9Q9w_.js → 403-CVk0Zv7-.js} +1 -1
  2. package/dist/{404-33KZO3Vz.js → 404-ndDOUJxF.js} +1 -1
  3. package/dist/{500-oI74ZkQH.js → 500-CBFigQjv.js} +1 -1
  4. package/dist/{AuthorityInfo-CNoxrmPS.js → AuthorityInfo-BDf4I8In.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CO01EWKQ.js → AuthorityInfo.vue_vue_type_style_index_0_lang-cEIXuHBK.js} +1 -1
  6. package/dist/{Company-DOCRUvUs.js → Company-DYDDIDa5.js} +3 -3
  7. package/dist/{CompanyPanel-Do2JlJ3U.js → CompanyPanel-DggYD4kC.js} +1 -1
  8. package/dist/{Department-BAlx8Am2.js → Department-DqrAvwmT.js} +3 -3
  9. package/dist/{DepartmentPanel-BvQUkRaM.js → DepartmentPanel-BjhhDlhw.js} +1 -1
  10. package/dist/{DesignPanel-BMr-c76z.js → DesignPanel-DAR2pcpF.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-COERxrYp.js → DesignPanel.vue_vue_type_style_index_0_lang-B8GPGq0h.js} +2 -2
  12. package/dist/{DictView-DkG5lo6m.js → DictView-BcLgE6q2.js} +1 -1
  13. package/dist/{InvOrganization-D_PuTpPt.js → InvOrganization-B61NWug9.js} +1 -1
  14. package/dist/{Org-CtVfZAjI.js → Org-9tL7q4mS.js} +1 -1
  15. package/dist/{Preview-Cuj_akRk.js → Preview-Bn4QDJ6s.js} +1 -1
  16. package/dist/{ReportDefine-CM2aNEVp.js → ReportDefine-BMGU8p3z.js} +1 -1
  17. package/dist/{ReportDesign-B1y79NKM.js → ReportDesign-DkwxPGCT.js} +2 -2
  18. package/dist/{ReportQuery-CZEfKCWP.js → ReportQuery-DOFFL8Nn.js} +1 -1
  19. package/dist/{ReportQueryFrom-C_cUB8bs.js → ReportQueryFrom-BDDlluNb.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DBqJnvTQ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Yqw26YrX.js} +1 -1
  21. package/dist/{ReportTemplate-BprAuCb1.js → ReportTemplate-DmFqn7ji.js} +1 -1
  22. package/dist/{Role-CAaLVGNy.js → Role-DGw_eao_.js} +3 -3
  23. package/dist/{RoleAssign-DuFp2Ty7.js → RoleAssign-BJ32jpGq.js} +3 -3
  24. package/dist/{RolePanel-FnyN7LiS.js → RolePanel-B2O0mFtr.js} +1 -1
  25. package/dist/{RolePanel-BRStoO0e.js → RolePanel-DHS9C-hf.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CNIA7zdk.js → RolePanel.vue_vue_type_script_setup_true_lang-CEYM_zn7.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CS7drFhn.js → RolePanel.vue_vue_type_script_setup_true_lang-T5FN19eF.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CEnqhlSE.js → ScrollPanel.vue_vue_type_style_index_0_lang-CeYU2NrW.js} +1 -1
  29. package/dist/{Staff-D493jHwR.js → Staff-3Rejxejf.js} +3 -3
  30. package/dist/{StaffInfo-suU_pcyD.js → StaffInfo-C94C3Gj7.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DV16a2Nz.js → StaffInfo.vue_vue_type_script_setup_true_lang-Bm76KXps.js} +1 -1
  32. package/dist/{StaffPanel-BbYWu-xZ.js → StaffPanel-ClhiNL5a.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-CfRIanr5.js → StaffPanel.vue_vue_type_script_setup_true_lang-DjUOMmMr.js} +2 -2
  34. package/dist/{SysUser-YXOsIVpJ.js → SysUser-DUXK1KbY.js} +2 -2
  35. package/dist/{SysUserPanel-C1tQzih_.js → SysUserPanel-3HThXZFZ.js} +1 -1
  36. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DjbpSAOd.js +340 -0
  37. package/dist/{SystemMenu-DzKl8RAz.js → SystemMenu-C1CrBLIy.js} +2 -2
  38. package/dist/{UserInfo-CYeYQNq8.js → UserInfo-C1tgO95t.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DYVdi2Ck.js → UserInfo.vue_vue_type_style_index_0_lang-CNLWkLRN.js} +1 -1
  40. package/dist/{childView-BNYdfnMx.js → childView-CCr-NwqZ.js} +1 -1
  41. package/dist/{childView-C6rHVrT6.js → childView-CeYGykew.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-O_zWFjYY.js → childView.vue_vue_type_style_index_0_lang-D9PsELsS.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-6o00J0a7.js → childView.vue_vue_type_style_index_0_lang-IhbVX2Xa.js} +1 -1
  44. package/dist/{code-rule-MxcRbYZR.js → code-rule-BVjue1Qj.js} +2 -2
  45. package/dist/core.es.js +12 -11
  46. package/dist/{cron-task-B0yfTtm6.js → cron-task-BfVSQIgT.js} +1 -1
  47. package/dist/flow-task-B07st2aD.js +10 -0
  48. package/dist/{frameView-DtHY5dLd.js → frameView-D_YJavxB.js} +1 -1
  49. package/dist/index-ZaDSQxcf.js +6495 -0
  50. package/dist/{layoutView-D0Q7EG0u.js → layoutView-DpxwrEJd.js} +164 -164
  51. package/dist/{login-CuO8YgN1.js → login-8muEJPMg.js} +1 -1
  52. package/dist/{lov-view-DcRVGqsD.js → lov-view-DEp2h_qy.js} +2 -2
  53. package/dist/{menuInfo-ccOqhCC8.js → menuInfo-rPb4Ed8Q.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DTBPgTe_.js → menuInfo.vue_vue_type_style_index_0_lang-mtPuZDRn.js} +1 -1
  55. package/dist/{pda-app-D7n4oxyn.js → pda-app-CSrTwUo7.js} +1 -1
  56. package/dist/{resource-_h2OtsKS.js → resource-B4Fsud2G.js} +1 -1
  57. package/dist/{su-welcome-Co6e4akE.js → su-welcome-DkwJ8pW8.js} +1 -1
  58. package/dist/{sys-config-C6Es9vZl.js → sys-config-CnMkBejC.js} +1 -1
  59. package/dist/udp-core.css +1 -1
  60. package/index.ts +49 -48
  61. package/package.json +1 -1
  62. package/src/components/udp/grid/index.vue +514 -509
  63. package/src/components/udp/utils.ts +7 -4
  64. package/src/layout/hooks/useTag.ts +5 -1
  65. package/src/plugins/i18n/module/u-workflow.ts +71 -71
  66. package/src/plugins/i18n/zh.ts +359 -356
  67. package/src/router/index.ts +3 -1
  68. package/src/router/modules/flow.ts +35 -0
  69. package/src/router/utils.ts +27 -1
  70. package/src/store/modules/multiTags.ts +4 -4
  71. package/src/utils/udp/http/index.ts +294 -0
  72. package/src/utils/udp/http/types.d.ts +42 -0
  73. package/src/views/system/cron/cron-task.vue +2 -12
  74. package/src/views/system/sysUser/SysUserPanel.vue +346 -279
  75. package/src/views/udev/coderule/code-rule.vue +2 -2
  76. package/src/views/udev/lov/childView.vue +174 -180
  77. package/src/views/utask/flow-task.vue +18 -0
  78. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BfT40pDr.js +0 -298
  79. package/dist/index-BWtOrjW2.js +0 -4603
@@ -1,4603 +0,0 @@
1
- import * as Cn from "vue";
2
- import { defineComponent as ke, resolveComponent as Ve, createBlock as ar, openBlock as vo, withCtx as ao, createVNode as st, toRaw as so, isProxy as zo, defineAsyncComponent as sr, useAttrs as lr, getCurrentInstance as ur, ref as Re, reactive as cr, nextTick as dr, onUnmounted as fr, onBeforeMount as mr, createElementBlock as Sn, mergeProps as Dn, toHandlers as hr, unref as pr, computed as Pt, h as Te, createApp as gr } from "vue";
3
- import { ElConfigProvider as Uo } from "element-plus";
4
- import { checkVersion as yr } from "version-rocket";
5
- import { useI18n as Bt, createI18n as vr } from "vue-i18n";
6
- import { http as he, storageLocal as O, cookies as Ae, buildHierarchyTree as bo, dbstorage as tt, isUrl as Tn, openLink as br, NProgress as wr, VxetableRender as Er, formatRules as lo, i18nColums as Cr, warnMessage as jo, errorMessage as Sr, formatGridItems as Dr, formatItems as Tr, useGlobal as xn, deviceDetection as xr, storageSession as kr } from "@utogether/utils";
7
- import { merge as wo, clone as ee, findLastIndexOf as Ir, isBoolean as Fr, isEqual as qo, findIndexOf as Pr, isEmpty as He, toDateString as L, getWhatDay as _e, isArray as _r, isString as Ye, isFunction as Or, orderBy as Nr, isObject as Mr } from "xe-utils";
8
- import { createPinia as Rr, defineStore as ut } from "pinia";
9
- import { useTimeoutFn as Ar } from "@vueuse/core";
10
- import kn, { VxeUI as ae } from "vxe-table";
11
- import { Icon as Ho } from "@iconify/vue";
12
- import Lr from "vue-tippy";
13
- import Br from "element-resize-detector";
14
- var zr = {
15
- name: "en",
16
- el: {
17
- breadcrumb: {
18
- label: "Breadcrumb"
19
- },
20
- colorpicker: {
21
- confirm: "OK",
22
- clear: "Clear",
23
- defaultLabel: "color picker",
24
- description: "current color is {color}. press enter to select a new color.",
25
- alphaLabel: "pick alpha value"
26
- },
27
- datepicker: {
28
- now: "Now",
29
- today: "Today",
30
- cancel: "Cancel",
31
- clear: "Clear",
32
- confirm: "OK",
33
- dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
34
- monthTablePrompt: "Use the arrow keys and enter to select the month",
35
- yearTablePrompt: "Use the arrow keys and enter to select the year",
36
- selectedDate: "Selected date",
37
- selectDate: "Select date",
38
- selectTime: "Select time",
39
- startDate: "Start Date",
40
- startTime: "Start Time",
41
- endDate: "End Date",
42
- endTime: "End Time",
43
- prevYear: "Previous Year",
44
- nextYear: "Next Year",
45
- prevMonth: "Previous Month",
46
- nextMonth: "Next Month",
47
- year: "",
48
- month1: "January",
49
- month2: "February",
50
- month3: "March",
51
- month4: "April",
52
- month5: "May",
53
- month6: "June",
54
- month7: "July",
55
- month8: "August",
56
- month9: "September",
57
- month10: "October",
58
- month11: "November",
59
- month12: "December",
60
- week: "week",
61
- weeks: {
62
- sun: "Sun",
63
- mon: "Mon",
64
- tue: "Tue",
65
- wed: "Wed",
66
- thu: "Thu",
67
- fri: "Fri",
68
- sat: "Sat"
69
- },
70
- weeksFull: {
71
- sun: "Sunday",
72
- mon: "Monday",
73
- tue: "Tuesday",
74
- wed: "Wednesday",
75
- thu: "Thursday",
76
- fri: "Friday",
77
- sat: "Saturday"
78
- },
79
- months: {
80
- jan: "Jan",
81
- feb: "Feb",
82
- mar: "Mar",
83
- apr: "Apr",
84
- may: "May",
85
- jun: "Jun",
86
- jul: "Jul",
87
- aug: "Aug",
88
- sep: "Sep",
89
- oct: "Oct",
90
- nov: "Nov",
91
- dec: "Dec"
92
- }
93
- },
94
- inputNumber: {
95
- decrease: "decrease number",
96
- increase: "increase number"
97
- },
98
- select: {
99
- loading: "Loading",
100
- noMatch: "No matching data",
101
- noData: "No data",
102
- placeholder: "Select"
103
- },
104
- mention: {
105
- loading: "Loading"
106
- },
107
- dropdown: {
108
- toggleDropdown: "Toggle Dropdown"
109
- },
110
- cascader: {
111
- noMatch: "No matching data",
112
- loading: "Loading",
113
- placeholder: "Select",
114
- noData: "No data"
115
- },
116
- pagination: {
117
- goto: "Go to",
118
- pagesize: "/page",
119
- total: "Total {total}",
120
- pageClassifier: "",
121
- page: "Page",
122
- prev: "Go to previous page",
123
- next: "Go to next page",
124
- currentPage: "page {pager}",
125
- prevPages: "Previous {pager} pages",
126
- nextPages: "Next {pager} pages",
127
- deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
128
- },
129
- dialog: {
130
- close: "Close this dialog"
131
- },
132
- drawer: {
133
- close: "Close this dialog"
134
- },
135
- messagebox: {
136
- title: "Message",
137
- confirm: "OK",
138
- cancel: "Cancel",
139
- error: "Illegal input",
140
- close: "Close this dialog"
141
- },
142
- upload: {
143
- deleteTip: "press delete to remove",
144
- delete: "Delete",
145
- preview: "Preview",
146
- continue: "Continue"
147
- },
148
- slider: {
149
- defaultLabel: "slider between {min} and {max}",
150
- defaultRangeStartLabel: "pick start value",
151
- defaultRangeEndLabel: "pick end value"
152
- },
153
- table: {
154
- emptyText: "No Data",
155
- confirmFilter: "Confirm",
156
- resetFilter: "Reset",
157
- clearFilter: "All",
158
- sumText: "Sum"
159
- },
160
- tour: {
161
- next: "Next",
162
- previous: "Previous",
163
- finish: "Finish"
164
- },
165
- tree: {
166
- emptyText: "No Data"
167
- },
168
- transfer: {
169
- noMatch: "No matching data",
170
- noData: "No data",
171
- titles: ["List 1", "List 2"],
172
- filterPlaceholder: "Enter keyword",
173
- noCheckedFormat: "{total} items",
174
- hasCheckedFormat: "{checked}/{total} checked"
175
- },
176
- image: {
177
- error: "FAILED"
178
- },
179
- pageHeader: {
180
- title: "Back"
181
- },
182
- popconfirm: {
183
- confirmButtonText: "Yes",
184
- cancelButtonText: "No"
185
- },
186
- carousel: {
187
- leftArrow: "Carousel arrow left",
188
- rightArrow: "Carousel arrow right",
189
- indicator: "Carousel switch to index {index}"
190
- }
191
- }
192
- }, Ur = {
193
- name: "zh-cn",
194
- el: {
195
- breadcrumb: {
196
- label: "面包屑"
197
- },
198
- colorpicker: {
199
- confirm: "确定",
200
- clear: "清空",
201
- defaultLabel: "颜色选择器",
202
- description: "当前颜色 {color},按 Enter 键选择新颜色",
203
- alphaLabel: "选择透明度的值"
204
- },
205
- datepicker: {
206
- now: "此刻",
207
- today: "今天",
208
- cancel: "取消",
209
- clear: "清空",
210
- confirm: "确定",
211
- dateTablePrompt: "使用方向键与 Enter 键可选择日期",
212
- monthTablePrompt: "使用方向键与 Enter 键可选择月份",
213
- yearTablePrompt: "使用方向键与 Enter 键可选择年份",
214
- selectedDate: "已选日期",
215
- selectDate: "选择日期",
216
- selectTime: "选择时间",
217
- startDate: "开始日期",
218
- startTime: "开始时间",
219
- endDate: "结束日期",
220
- endTime: "结束时间",
221
- prevYear: "前一年",
222
- nextYear: "后一年",
223
- prevMonth: "上个月",
224
- nextMonth: "下个月",
225
- year: "年",
226
- month1: "1 月",
227
- month2: "2 月",
228
- month3: "3 月",
229
- month4: "4 月",
230
- month5: "5 月",
231
- month6: "6 月",
232
- month7: "7 月",
233
- month8: "8 月",
234
- month9: "9 月",
235
- month10: "10 月",
236
- month11: "11 月",
237
- month12: "12 月",
238
- weeks: {
239
- sun: "日",
240
- mon: "一",
241
- tue: "二",
242
- wed: "三",
243
- thu: "四",
244
- fri: "五",
245
- sat: "六"
246
- },
247
- weeksFull: {
248
- sun: "星期日",
249
- mon: "星期一",
250
- tue: "星期二",
251
- wed: "星期三",
252
- thu: "星期四",
253
- fri: "星期五",
254
- sat: "星期六"
255
- },
256
- months: {
257
- jan: "一月",
258
- feb: "二月",
259
- mar: "三月",
260
- apr: "四月",
261
- may: "五月",
262
- jun: "六月",
263
- jul: "七月",
264
- aug: "八月",
265
- sep: "九月",
266
- oct: "十月",
267
- nov: "十一月",
268
- dec: "十二月"
269
- }
270
- },
271
- inputNumber: {
272
- decrease: "减少数值",
273
- increase: "增加数值"
274
- },
275
- select: {
276
- loading: "加载中",
277
- noMatch: "无匹配数据",
278
- noData: "无数据",
279
- placeholder: "请选择"
280
- },
281
- dropdown: {
282
- toggleDropdown: "切换下拉选项"
283
- },
284
- mention: {
285
- loading: "加载中"
286
- },
287
- cascader: {
288
- noMatch: "无匹配数据",
289
- loading: "加载中",
290
- placeholder: "请选择",
291
- noData: "暂无数据"
292
- },
293
- pagination: {
294
- goto: "前往",
295
- pagesize: "条/页",
296
- total: "共 {total} 条",
297
- pageClassifier: "页",
298
- page: "页",
299
- prev: "上一页",
300
- next: "下一页",
301
- currentPage: "第 {pager} 页",
302
- prevPages: "向前 {pager} 页",
303
- nextPages: "向后 {pager} 页",
304
- deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
305
- },
306
- dialog: {
307
- close: "关闭此对话框"
308
- },
309
- drawer: {
310
- close: "关闭此对话框"
311
- },
312
- messagebox: {
313
- title: "提示",
314
- confirm: "确定",
315
- cancel: "取消",
316
- error: "输入的数据不合法!",
317
- close: "关闭此对话框"
318
- },
319
- upload: {
320
- deleteTip: "按 Delete 键可删除",
321
- delete: "删除",
322
- preview: "查看图片",
323
- continue: "继续上传"
324
- },
325
- slider: {
326
- defaultLabel: "滑块介于 {min} 至 {max}",
327
- defaultRangeStartLabel: "选择起始值",
328
- defaultRangeEndLabel: "选择结束值"
329
- },
330
- table: {
331
- emptyText: "暂无数据",
332
- confirmFilter: "筛选",
333
- resetFilter: "重置",
334
- clearFilter: "全部",
335
- sumText: "合计"
336
- },
337
- tour: {
338
- next: "下一步",
339
- previous: "上一步",
340
- finish: "结束导览"
341
- },
342
- tree: {
343
- emptyText: "暂无数据"
344
- },
345
- transfer: {
346
- noMatch: "无匹配数据",
347
- noData: "无数据",
348
- titles: ["列表 1", "列表 2"],
349
- filterPlaceholder: "请输入搜索内容",
350
- noCheckedFormat: "共 {total} 项",
351
- hasCheckedFormat: "已选 {checked}/{total} 项"
352
- },
353
- image: {
354
- error: "加载失败"
355
- },
356
- pageHeader: {
357
- title: "返回"
358
- },
359
- popconfirm: {
360
- confirmButtonText: "确定",
361
- cancelButtonText: "取消"
362
- },
363
- carousel: {
364
- leftArrow: "上一张幻灯片",
365
- rightArrow: "下一张幻灯片",
366
- indicator: "幻灯片切换至索引 {index}"
367
- }
368
- }
369
- };
370
- const jr = "menu_zh", qr = "menu_en", Hr = "authorized-token", Wr = "kCookies_token", $r = "kSysConfig", In = "loginer";
371
- let uo = {}, Fn = {};
372
- const Vr = (e, t) => {
373
- uo = Object.assign(uo, t), e.config.globalProperties.$config = se();
374
- }, se = () => uo, Yr = (e = {}) => {
375
- Fn = e;
376
- }, Wo = () => Fn, q = () => se().ResponsiveStorageNameSpace, zt = () => ({
377
- post: (e, t, o) => he.post(`${pe()}${e}`, t, o),
378
- get: (e, t, o) => he.get(`${pe()}${e}`, t, o),
379
- put: (e, t) => he.put(`${pe()}${e}`, t),
380
- delete: (e, t) => he.delete(`${pe()}${e}`, t)
381
- }), Gr = (e) => {
382
- he.setRouter(e);
383
- }, Xr = (e) => {
384
- he.setBaseUrl(e);
385
- }, Kr = window.location.origin + "/gateway", pe = () => Wo().VITE_BASE_URL === "origin" ? Kr : Wo().VITE_BASE_URL, Jr = ke({
386
- name: "app",
387
- components: {
388
- [Uo.name]: Uo
389
- },
390
- beforeRouteEnter(e, t, o) {
391
- zt().get("/upfm/v1/sysConfig", {}).then((n) => {
392
- o();
393
- });
394
- },
395
- computed: {
396
- currentLocale() {
397
- var e, t;
398
- return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? Ur : zr;
399
- }
400
- },
401
- beforeCreate() {
402
- const { t: e } = Bt(), n = (O.getItem($r) || { title: "U-DP" }).title;
403
- yr(
404
- {
405
- pollingTime: 3e5,
406
- checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
407
- enable: process.env.NODE_ENV !== "development"
408
- },
409
- {
410
- title: n,
411
- description: e("message.udp.newVersion"),
412
- buttonText: e("message.udp.updatenow"),
413
- cancelButtonText: e("message.udp.updateLater")
414
- }
415
- );
416
- }
417
- }), Zr = (e, t) => {
418
- const o = e.__vccOpts || e;
419
- for (const [n, r] of t)
420
- o[n] = r;
421
- return o;
422
- };
423
- function Qr(e, t, o, n, r, i) {
424
- const a = Ve("router-view"), s = Ve("el-config-provider");
425
- return vo(), ar(s, {
426
- size: "small",
427
- "z-index": 5555,
428
- locale: e.currentLocale
429
- }, {
430
- default: ao(() => [
431
- st(a)
432
- ]),
433
- _: 1
434
- }, 8, ["locale"]);
435
- }
436
- const ei = /* @__PURE__ */ Zr(Jr, [["render", Qr]]), Xe = Rr();
437
- function ti(e) {
438
- e.use(Xe);
439
- }
440
- const ct = [
441
- {
442
- path: "/welcome",
443
- name: "Welcome",
444
- meta: {
445
- title: "message.udp.home",
446
- icon: "home-filled"
447
- }
448
- }
449
- ], Vs = (e) => {
450
- const t = e.indexOf("windows nt 5.1") > -1 || e.indexOf("windows xp") > -1;
451
- if (e.indexOf("windows xp") > -1, t) return "WinXP";
452
- if (e.indexOf("windows nt 6.1") > -1 || e.indexOf("windows 7") > -1) return "Win7";
453
- if (e.indexOf("windows nt6.2") > -1 || e.indexOf("windows 8") > -1) return "Win8";
454
- if (e.indexOf("windows nt 10.0") > -1 || e.indexOf("windows 10") > -1) return "Win10";
455
- }, Ys = (e) => {
456
- let t = null;
457
- const o = {
458
- Chrome: e.indexOf("chrome") > -1 && e.indexOf("safari") > -1,
459
- // Chrome浏览器
460
- Firefox: e.indexOf("firefox") > -1,
461
- // 火狐浏览器
462
- Opera: e.indexOf("opera") > -1,
463
- // Opera浏览器
464
- Safari: e.indexOf("safari") > -1 && e.indexOf("chrome") == -1,
465
- // safari浏览器
466
- Edge: e.indexOf("edg") > -1,
467
- // Edge浏览器
468
- MetaSr: e.indexOf("metaSr") > -1,
469
- // 搜狗浏览器
470
- QQBrowser: /qqbrowser/.test(e),
471
- // qq浏览器
472
- WeixinBrowser: /MicroMessenger/i.test(e)
473
- // 微信浏览器
474
- };
475
- let n = "";
476
- for (const r in o)
477
- o[r] && (n = e.match(/chrome\/([\d.]+)/)[1], t = r);
478
- return { browser: t, browserVersion: n };
479
- }, oi = {
480
- onLogined: () => {
481
- },
482
- onBeforeLogout: () => {
483
- }
484
- }, Gs = () => {
485
- oi.onLogined();
486
- }, ni = (e, t) => {
487
- const o = [];
488
- for (const n of e)
489
- n[t] && o.push(n[t]);
490
- return Array.from(new Set(o));
491
- }, Pn = (e) => {
492
- const t = e.replace("#", "").match(/../g);
493
- for (let o = 0; o < 3; o++) t[o] = parseInt(t[o], 16);
494
- return t;
495
- }, _n = (e, t, o) => {
496
- const n = [e.toString(16), t.toString(16), o.toString(16)];
497
- for (let r = 0; r < 3; r++)
498
- n[r].length == 1 && (n[r] = `0${n[r]}`);
499
- return `#${n.join("")}`;
500
- }, ri = (e, t) => {
501
- const o = Pn(e);
502
- for (let n = 0; n < 3; n++) o[n] = Math.floor(o[n] * (1 - t));
503
- return _n(o[0], o[1], o[2]);
504
- }, ii = (e, t) => {
505
- const o = Pn(e);
506
- for (let n = 0; n < 3; n++) o[n] = Math.floor((255 - o[n]) * t + o[n]);
507
- return _n(o[0], o[1], o[2]);
508
- }, $o = {
509
- zh: {
510
- message: {
511
- reportCode: "报表编号",
512
- tempPath: "模版路径",
513
- tempFile: "模版文件",
514
- exportFileType: "文件类型",
515
- parameterType: "参数类型",
516
- valueType: "值类型",
517
- parameterField: "参数字段名",
518
- parameterName: "参数名称",
519
- showField: "显示字段",
520
- valueField: "值字段",
521
- exportNo: "导出编号",
522
- moduleName: "模块名称",
523
- exportResult: "导出结果",
524
- exportStatus: "导出状态",
525
- exportMsg: "提示信息",
526
- fileType: "文件类型",
527
- exportDate: "完成时间"
528
- }
529
- },
530
- en: {
531
- message: {
532
- tempPath: "tempPath",
533
- tempFile: "tempFile",
534
- exportFileType: "exportFileType",
535
- parameterType: "parameterType",
536
- valueType: "valueType",
537
- serviceCode: "serviceCode",
538
- parameterField: "parameterField",
539
- parameterName: "parameterName",
540
- showField: "showField",
541
- valueField: "valueField",
542
- exportNo: "exportNo",
543
- moduleName: "moduleName",
544
- printPosition: "Print Position",
545
- exportResult: "exportResult",
546
- exportStatus: "exportStatus",
547
- exportMsg: "exportMsg",
548
- fileType: "fileType",
549
- exportDate: "Export Date",
550
- dataSetCode: "Dataset Code",
551
- dataSetName: "Dataset Name",
552
- dataSetType: "Dataset Type",
553
- dataSetUrl: "Dataset Url",
554
- defaultValue: "Default Value",
555
- isRequired: "Required"
556
- }
557
- }
558
- }, ai = {
559
- zh: { ...$o.zh.message },
560
- en: { ...$o.en.message }
561
- }, si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
562
- __proto__: null,
563
- default: ai
564
- }, Symbol.toStringTag, { value: "Module" })), li = {
565
- zh: {
566
- message: {
567
- taskName: "任务名称",
568
- processInstId: "任务编码",
569
- taskTitle: "任务标题",
570
- taskPhase: "流程阶段",
571
- agreement: "审批意见",
572
- description: "备注",
573
- actuatorCode: "执行器编码",
574
- actuatorName: "执行器名称",
575
- actuatorType: "注册方式",
576
- actuatorAddress: "机器地址"
577
- }
578
- },
579
- en: {
580
- message: {
581
- taskName: "taskName",
582
- processInstId: "processInstId",
583
- taskTitle: "taskTitle",
584
- taskPhase: "taskPhase",
585
- agreement: "agreement",
586
- description: "description",
587
- actuatorCode: "Actuator Code",
588
- actuatorName: "Actuator Name",
589
- actuatorType: "Actuator Type",
590
- actuatorAddress: "Actuator Adress"
591
- }
592
- }
593
- }, ui = {
594
- zh: {
595
- message: {
596
- flowId: "流程标识",
597
- flowName: "流程名称",
598
- flowCode: "流程编码",
599
- description: "流程描述",
600
- flowDesign: "流程设计",
601
- version: "版本",
602
- effectDate: "生效日期"
603
- }
604
- },
605
- en: {
606
- message: {
607
- flowId: "flowId",
608
- flowName: "flowName",
609
- flowCode: "flowCode",
610
- description: "description",
611
- flowDesign: "Flow Design"
612
- }
613
- }
614
- }, Vo = [li, ui], ci = {
615
- zh: {
616
- ...Object.assign({}, ...Vo.map((e) => e.zh.message))
617
- },
618
- en: {
619
- ...Object.assign({}, ...Vo.map((e) => e.en.message))
620
- }
621
- }, di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
622
- __proto__: null,
623
- default: ci
624
- }, Symbol.toStringTag, { value: "Module" })), fi = {
625
- zh: {
626
- message: {
627
- msgtemplateCode: "模板代码",
628
- msgtemplateName: "模板名称",
629
- msgTitle: "消息标题",
630
- msgType: "消息类型",
631
- language: "语言",
632
- templateContent: "模板内容",
633
- msgCode: "消息代码",
634
- msgName: "消息名称",
635
- msgService: "消息服务",
636
- msgServiceName: "消息服务名称"
637
- }
638
- },
639
- en: {
640
- message: {
641
- xx: "xxx"
642
- }
643
- }
644
- }, mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
645
- __proto__: null,
646
- default: fi
647
- }, Symbol.toStringTag, { value: "Module" })), hi = {
648
- udp: {
649
- dark: "深色",
650
- light: "浅色",
651
- smart: "灵动",
652
- card: "卡片",
653
- theme: "主题色",
654
- pageStyle: "整体风格",
655
- navigationMode: "导航模式",
656
- tagStyle: "页签风格",
657
- collapse: "折叠",
658
- expand: "展开",
659
- login: "登 陆",
660
- home: "首页",
661
- logout: "退出系统",
662
- password: "密码",
663
- passwordReset: "密码重置",
664
- oldPwd: "旧密码",
665
- newPwd: "新密码",
666
- confirmPwd: "确认密码",
667
- reload: "重新加载",
668
- closeCurrentTab: "关闭当前标签页",
669
- closeLeftTabs: "关闭左侧标签页",
670
- closeRightTabs: "关闭右侧标签页",
671
- closeOtherTabs: "关闭其他标签页",
672
- closeAllTabs: "关闭全部标签页",
673
- wholeFullScreen: "整体页面全屏",
674
- wholeExitFullScreen: "整体页面退出全屏",
675
- contentFullScreen: "内容区全屏",
676
- contentExitFullScreen: "内容区退出全屏",
677
- fourZeroFour: "404",
678
- fourZeroThree: "403",
679
- five: "500",
680
- backtop: "回到顶部",
681
- error: "Error Page",
682
- continueAdd: "连续添加",
683
- menuQuery: "菜单搜索",
684
- systemTitle: "系统标题",
685
- systemLogo: "LOGO",
686
- systemFavicon: "favicon",
687
- homeBackimg: "首页背景",
688
- baseUrl: "服务路径",
689
- copyright: "版权信息",
690
- i18nEnabled: "国际化",
691
- orgTaggle: "启用组织切换",
692
- baseColor: "基准色",
693
- techSupport: "技术支持",
694
- defaultLanguage: "默认语言",
695
- roleName: "角色名称",
696
- roleCode: "角色编码",
697
- roleDesc: "角色说明",
698
- loginTime: "登录时间",
699
- operatingSystem: "操作系统",
700
- ip: "ip地址",
701
- browserVersion: "浏览器版本",
702
- browser: "浏览器",
703
- dictCode: "字典编码",
704
- dictName: "字典名称",
705
- dictType: "字典类型",
706
- ruleCode: "规则代码",
707
- ruleName: "规则名称",
708
- fieldType: "段类型",
709
- fieldValue: "段值",
710
- dateMask: "日期掩码",
711
- resetFrequency: "重置频率",
712
- seqLength: "位数",
713
- startValue: "开始值",
714
- currentValue: "当前值",
715
- haveBeenUsed: "使用中",
716
- unitName: "单位名称",
717
- unitCode: "单位编码",
718
- unitNote: "单位介绍",
719
- deleteCompany: "部门存在子级,请先删除子级",
720
- tip: "温馨提示",
721
- today: "今天",
722
- yesterday: "昨天",
723
- lastWeek: "一周内",
724
- lastMonth: "1月内",
725
- threeMonth: "3月内",
726
- halfYear: "半年内",
727
- anniversary: "1年内",
728
- newVersion: "检测到新版本",
729
- updatenow: "立即更新",
730
- updateLater: "稍后更新",
731
- appVersion: "版本号",
732
- buildNo: "构建号",
733
- versionInfo: "版本信息",
734
- isForceUpdate: "安装方式",
735
- downloadUrl: "APK文件",
736
- forceUpdate: "强制更新",
737
- freeUpdate: "自主更新",
738
- placeholder: "请录入",
739
- userName: "用户姓名",
740
- userCode: "用户编码",
741
- userType: "用户类型",
742
- roleList: "角色列表",
743
- userList: "用户列表",
744
- orgCode: "业务实体编码",
745
- orgName: "业务实体名称",
746
- orgAlias: "业务实体简称",
747
- orgDesc: "业务实体描述",
748
- organizationName: "组织名称",
749
- organizationCode: "组织编码",
750
- appupper: "已上架",
751
- applower: "已下架"
752
- },
753
- btn: {
754
- passwordReset: "密码重置",
755
- add: "新增",
756
- agree: "同意",
757
- approve: "审批",
758
- appupper: "上架",
759
- applower: "下架",
760
- auth: "权限",
761
- back: "返回",
762
- cancel: "取消",
763
- completed: "完工",
764
- close: "关闭",
765
- toggle: "切换",
766
- confirm: "确认",
767
- config: "配置",
768
- copy: "复制",
769
- customSize: "自定义纸张",
770
- detail: "详情",
771
- directPrint: "直接打印",
772
- design: "设 计",
773
- delete: "删除",
774
- del: "删除",
775
- download: "下载",
776
- dispatchUser: "分配用户",
777
- dispatchAuth: "分配权限",
778
- FAQ: "常见问题",
779
- finish: "完成",
780
- fetch: "查询",
781
- edit: "编辑",
782
- export: "导出",
783
- import: "导入",
784
- encode: "编码",
785
- importJSON: "导入模板数据",
786
- downloadTemp: "模板下载",
787
- inv: "库存组织",
788
- look: "查看",
789
- lov: "值集",
790
- inbound: "入库",
791
- more: "更多",
792
- outbound: "出库",
793
- preview: "预览",
794
- print: "打印",
795
- paramSet: "参数集",
796
- reset: "重置",
797
- resumeTask: "继续",
798
- role: "角色",
799
- repaint: "重绘",
800
- save: "保存",
801
- scan: "扫码下载",
802
- stopTask: "停止",
803
- suspendTask: "暂停",
804
- search: "搜索",
805
- sync: "同步",
806
- submit: "提交",
807
- taskLog: "任务日志",
808
- revoke: "撤销",
809
- reject: "拒绝",
810
- upload: "上传",
811
- goback: "返回",
812
- disabled: "禁用",
813
- enable: "启用",
814
- bankinfo: "银行账号"
815
- },
816
- urpt: {
817
- templateName: "模版名称",
818
- templateCode: "模版编码",
819
- paperType: "纸张类型",
820
- printPosition: "打印视图",
821
- buttonCode: "按钮编码",
822
- resourceCode: "资源编码",
823
- resourceName: "资源名称",
824
- resourceUrl: "资源路径",
825
- fileName: "文件名称",
826
- fileSize: "文件大小",
827
- filePath: "文件路径",
828
- fileExtend: "文件类型",
829
- textAlign: "对齐方式",
830
- color: "色彩",
831
- fillOpacity: "透明度",
832
- fontSize: "字体大小",
833
- rotation: "倾斜角度",
834
- watermarkCode: "水印编码",
835
- watermarkContent: "水印内容",
836
- watermarkTrigger: "触发时机",
837
- watermarkType: "水印类型",
838
- xAxis: "横坐标",
839
- yAxis: "纵坐标"
840
- },
841
- add: "新增",
842
- operate: "操作",
843
- emptyData: "暂无数据",
844
- creationDate: "创建时间",
845
- createdByName: "创建人",
846
- creationName: "创建人",
847
- lastUpdateDate: "更新日期",
848
- lastUpdatedByName: "更新人",
849
- sort: "序号",
850
- seqNo: "序号",
851
- remark: "备注",
852
- loading: "加载中...",
853
- keyword: "关键字",
854
- required: "请录入",
855
- isRequired: "必填否",
856
- dataSetCode: "数据集编码",
857
- dataSetName: "数据集名称",
858
- dataSetType: "数据集类型",
859
- dataSetUrl: "URL/服务编码",
860
- paramCode: "参数编码",
861
- paramName: "参数名称",
862
- defaultValue: "默认值",
863
- enabled: "启用",
864
- disabled: "禁用",
865
- to: "至",
866
- startDate: "开始日期",
867
- endDate: "截至日期",
868
- operateSuccess: "操作成功!",
869
- operateFailed: "操作失败!",
870
- selectedRecord: "请至少选择一条记录",
871
- delRecord: "您确定要删除选择的数据吗?",
872
- importSuccess: "导入成功!",
873
- importFailed: "数据导入失败,请往下滚动以便查看错误信息",
874
- importRecord: "您确定要导入数据吗?",
875
- importEmpty: "数据列表为空,请先导入数据列表",
876
- importTip: `1、表格模板的【列标题】不可修改;
877
- 2、单次导入数据数量应小于2000条;
878
- 3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
879
- 4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行`,
880
- errorInfo: "异常信息",
881
- publish: "发布",
882
- menuName: "菜单名称(中文)",
883
- menuNameEn: "菜单名称(英文)",
884
- menuType: "菜单类型",
885
- menuCode: "菜单编码",
886
- permissionCode: "权限编码",
887
- permissionName: "权限名称",
888
- menuPath: "路由",
889
- frameSrc: "内链URI",
890
- externalURI: "外链URI",
891
- redirect: "重定向路径",
892
- i18nField: "标题字段",
893
- extraIcon: "额外图标",
894
- icon: "图标",
895
- jobResult: "执行结果",
896
- endTime: "结束时间",
897
- startTime: "开始时间",
898
- errorMessage: "异常信息",
899
- jobStatus: "任务状态",
900
- jobParam: "执行器任务参数",
901
- jobHandler: "任务处理类",
902
- jobClassName: "实现类",
903
- jobCron: "任务执行corn",
904
- jobName: "任务名称",
905
- jobDescription: "任务描述",
906
- interfaceName: "接口名称",
907
- interfaceUrl: "接口地址",
908
- requestDate: "请求日期",
909
- requestStatus: "请求状态",
910
- requestParameter: "body参数",
911
- responseTimeConsume: "响应时间(ms)",
912
- responseContent: "响应内容",
913
- stacktrace: "错误堆栈",
914
- status: "状态",
915
- email: "邮箱",
916
- userPassword: "登录密码",
917
- remarks: "备注",
918
- userPwd: "用户密码",
919
- unitName: "用户单位",
920
- employeeCode: "编号",
921
- employeeName: "姓名",
922
- department: "部门",
923
- gender: "性别",
924
- releateUser: "关联用户",
925
- identity: "身份证号码",
926
- employeeDate: "入职日期",
927
- solarDay: "出生日期",
928
- phone: "座机号",
929
- mobile: "手机号",
930
- deptName: "部门名称",
931
- deptCode: "部门编码",
932
- deptType: "部门类型",
933
- deletePartment: "部门存在子级,请先删除子级",
934
- lovCode: "视图编码",
935
- lovName: "视图名称",
936
- valueField: "值字段名",
937
- displayField: "显示字段名",
938
- lovTitle: "视图标题",
939
- lovType: "视图类型",
940
- lovUrl: "视图URI",
941
- colField: "表格字段名",
942
- colTitle: "表格列标题",
943
- colWidth: "列宽度",
944
- fieldType: "字段类型",
945
- dictName: "数据字典",
946
- isSearch: "查询字段",
947
- isCol: "表格列",
948
- sqlStatement: "SQL语句",
949
- fileName: "附件名称",
950
- fileSize: "附件大小",
951
- tip: {
952
- projectConfig: "项目配置",
953
- closeConfig: "关闭配置",
954
- clearCache: "清空缓存",
955
- toLogin: "清空缓存并返回登录页",
956
- del: "确定要删除{msg}吗?",
957
- uploadFormat: "上传格式{type}",
958
- imageSize: "图片尺寸{size}",
959
- imageCapacity: "图片大小{capacity}",
960
- singleImg: "仅支持设置单张图",
961
- emptyAuth: "无系统权限, 请先给用户分配角色重试",
962
- initPassword: "初始密码为:【123456】,请及时修改密码",
963
- loginFailure: "用户名或密码不能为空",
964
- updatenow: "立即更新",
965
- newVersion: "检测到新版本",
966
- updateLater: "稍后更新"
967
- },
968
- title: {
969
- employeeInfo: "员工信息",
970
- cronLog: "执行日志",
971
- memuInfo: "菜单配置",
972
- authority: "【{role}】权限明细",
973
- authUser: "【{role}】分配用户",
974
- authEdit: "角色编辑",
975
- roleInfo: "角色列表",
976
- appAdd: "App版本新增",
977
- dictList: "【{name}】字典值列表",
978
- dictInfo: "【{name}】字典值",
979
- lovView: "值集视图",
980
- lovColConfig: "值集列配置",
981
- sequenceInfo: "{name}单据序列配置"
982
- }
983
- }, pi = {
984
- udp: {
985
- dark: "深色",
986
- light: "浅色",
987
- smart: "灵动",
988
- card: "卡片",
989
- theme: "主题色",
990
- pageStyle: "Page Style",
991
- navigationMode: "Navigation Node",
992
- tagStyle: "Tag Style",
993
- collapse: "Collapse",
994
- expand: "Expand",
995
- login: "Login",
996
- home: "Home",
997
- logout: "Logout",
998
- password: "Password",
999
- passwordReset: "Password Reset",
1000
- oldPwd: "Old Password",
1001
- newPwd: "New Password",
1002
- confirmPwd: "Confirm Password",
1003
- reload: "Reload",
1004
- closeCurrentTab: "Close Current Tab",
1005
- closeLeftTabs: "Close Left Tabs",
1006
- closeRightTabs: "Close Right Tabs",
1007
- closeOtherTabs: "Close Other Tabs",
1008
- closeAllTabs: "Close All Tabs",
1009
- wholeFullScreen: "Whole Full Screen",
1010
- wholeExitFullScreen: "Whole Exit Full Screen",
1011
- contentFullScreen: "Content Fulll Screen",
1012
- contentExitFullScreen: "Content Exit Full Screen",
1013
- fourZeroFour: "404",
1014
- fourZeroThree: "403",
1015
- five: "500",
1016
- backtop: "Back Top",
1017
- error: "Error Page",
1018
- continueAdd: "Continue Add",
1019
- menuQuery: "Menu Search",
1020
- systemTitle: "System Title",
1021
- systemLogo: "LOGO",
1022
- systemFavicon: "favicon",
1023
- homeBackimg: "Home Background Image",
1024
- baseUrl: "Base Url",
1025
- copyright: "Copy Right",
1026
- i18nEnabled: "Internationalize",
1027
- defaultLanguage: "Language",
1028
- roleName: "Role Name",
1029
- roleCode: "Role Code",
1030
- roleDesc: "Role Desc",
1031
- loginTime: "Login Time",
1032
- operatingSystem: "Operate System",
1033
- ip: "ip",
1034
- browserVersion: "Browser Version",
1035
- browser: "Browser",
1036
- dictCode: "Dict Code",
1037
- dictName: "Dict Name",
1038
- dictType: "Dict Type",
1039
- ruleCode: "Rule Code",
1040
- ruleName: "Rule Name",
1041
- fieldType: "Field Type",
1042
- fieldValue: "Field Value",
1043
- dateMask: "Data Mask",
1044
- resetFrequency: "Reset Frequency",
1045
- seqLength: "Seq Length",
1046
- startValue: "Start Value",
1047
- currentValue: "Current Value",
1048
- haveBeenUsed: "Have Been Used",
1049
- unitName: "Unit Name",
1050
- unitCode: "Unit Code",
1051
- unitNote: "Unit Note",
1052
- deleteCompany: "There are child levels in the Company, please delete the child level first",
1053
- tip: "tip",
1054
- today: "Today",
1055
- yesterday: "Yesterday",
1056
- lastWeek: "Last Week",
1057
- lastMonth: "Last Month",
1058
- threeMonth: "Three Month",
1059
- halfYear: "Half Year",
1060
- anniversary: "Anniversary",
1061
- newVersion: "检测到新版本",
1062
- updatenow: "立即更新",
1063
- updateLater: "稍后更新",
1064
- appVersion: "版本号",
1065
- buildNo: "构建号",
1066
- versionInfo: "版本信息",
1067
- isForceUpdate: "安装方式",
1068
- downloadUrl: "APK文件",
1069
- forceUpdate: "强制更新",
1070
- freeUpdate: "自主更新",
1071
- userName: "User Name",
1072
- userCode: "user Code",
1073
- sysType: "User Type",
1074
- orgCode: "Business Unit Code",
1075
- orgName: "Business Unit Name",
1076
- orgAlias: "Business Unit Alias",
1077
- orgDesc: "Business Unit Descript",
1078
- organizationName: "Organization Name",
1079
- organizationCode: "Organization Code"
1080
- },
1081
- btn: {
1082
- add: "Add",
1083
- agree: "Agree",
1084
- approve: "Approval",
1085
- appupper: "App Add",
1086
- applower: "App Remove",
1087
- auth: "Authority",
1088
- back: "Back",
1089
- cancel: "Cancel",
1090
- completed: "Completed",
1091
- close: "Close",
1092
- toggle: "Toggle",
1093
- confirm: "Confirm",
1094
- config: "Config",
1095
- copy: "Copy",
1096
- customSize: "Custom Size",
1097
- detail: "Detail",
1098
- directPrint: "Direct Print",
1099
- design: "Design",
1100
- delete: "Delete",
1101
- del: "Delete",
1102
- download: "Download",
1103
- dispatchUser: "Dispatch User",
1104
- dispatchAuth: "Dispatch Authority",
1105
- finish: "Finish",
1106
- fetch: "Fetch",
1107
- edit: "Edit",
1108
- export: "Export",
1109
- import: "Import",
1110
- encode: "Encode",
1111
- importJSON: "Import Data",
1112
- look: "Look",
1113
- lov: "Lov",
1114
- inbound: "Inbound",
1115
- more: "More",
1116
- outbound: "Outbound",
1117
- preview: "Preview",
1118
- print: "Print",
1119
- paramSet: "Param Set",
1120
- reset: "Reset",
1121
- resumeTask: "Resume",
1122
- role: "Role",
1123
- repaint: "Repaint",
1124
- save: "Save",
1125
- scan: "Scan Download",
1126
- stopTask: "Stop",
1127
- suspendTask: "Suspend",
1128
- search: "Search",
1129
- sync: "Sync",
1130
- submit: "Submit",
1131
- taskLog: "Log",
1132
- revoke: "Revoke",
1133
- reject: "Reject",
1134
- upload: "Upload"
1135
- },
1136
- file: {
1137
- templateName: "Template Name",
1138
- templateCode: "Template Code",
1139
- paperType: "Paper Type",
1140
- printPosition: "Print Position",
1141
- buttonCode: "Button Code",
1142
- resourceCode: "Resource Code",
1143
- resourceName: "Resource Name",
1144
- resourceUrl: "Resource Url",
1145
- fileName: "File Name",
1146
- fileSize: "File Size",
1147
- filePath: "File Path",
1148
- fileExtend: "File Extend",
1149
- textAlign: "Text Align",
1150
- color: "Color",
1151
- fillOpacity: "Fill Opacity",
1152
- fontSize: "Font Size",
1153
- rotation: "Rotation",
1154
- watermarkCode: "Watermark Code",
1155
- watermarkContent: "Watermark Content",
1156
- watermarkTrigger: "Watermark Trigger",
1157
- watermarkType: "Watermark Type",
1158
- xAxis: "xAxis",
1159
- yAxis: "yAxis"
1160
- },
1161
- add: "Add",
1162
- operate: "Operate",
1163
- emptyData: "Empty Data",
1164
- creationDate: "Creation Date",
1165
- createdByName: "CreatedBy Name",
1166
- creationName: "Creation Name",
1167
- lastUpdateDate: "LastUpdate Date",
1168
- lastUpdatedByName: "LastUpdatedBy Name",
1169
- sort: "Sort",
1170
- seqNo: "Seq No",
1171
- remark: "Remark",
1172
- loading: "Loading...",
1173
- keyword: "Keyword",
1174
- required: "Required",
1175
- isRequired: "Is Required",
1176
- dataSetCode: "Dataset Code",
1177
- dataSetName: "Dataset Name",
1178
- dataSetType: "Dataset Type",
1179
- dataSetUrl: "Dataset Url",
1180
- paramCode: "Param Code",
1181
- paramName: "Param Name",
1182
- defaultValue: "Default Value",
1183
- enabled: "Enabled",
1184
- disabled: "Disabled",
1185
- to: "To",
1186
- startDate: "Start Date",
1187
- endDate: "End Date",
1188
- operateSuccess: "Operate Success!",
1189
- operateFailed: "Operate Failed!",
1190
- selectedRecord: "Please select at least one record",
1191
- delRecord: "Are you sure you want to delete this record?",
1192
- importSuccess: "Import Success!",
1193
- importFailed: "Data import failed, please scroll down to view the error message",
1194
- importRecord: "Are you sure you want to import the data?",
1195
- importEmpty: "The data list is empty, please import the data list first",
1196
- importTip: `1. The column headings in the table template cannot be modified;
1197
- 2. The number of data imported at a time should be less than 2000;
1198
- 3. Directly entering dictionary values into the data dictionary can greatly improve the speed of table rendering. For example: Data Dictionary [Yes/No] Y/N
1199
- 4. Import successful, system prompts' xxx successful imports', including header rows`,
1200
- errorInfo: "Error Info",
1201
- publish: "Publish",
1202
- menuName: "Menu Name",
1203
- menuNameEn: "Menu Name",
1204
- menuType: "Menu Type",
1205
- menuCode: "Menu Code",
1206
- permissionCode: "Permission Code",
1207
- permissionName: "Permission Name",
1208
- menuPath: "Menu Path",
1209
- frameSrc: "Internal Link URI",
1210
- externalURI: "External Link URI",
1211
- redirect: "Redirect",
1212
- i18nField: "Language Field",
1213
- extraIcon: "Extra Icon",
1214
- icon: "Icon",
1215
- jobResult: "Job Result",
1216
- endTime: "End Time",
1217
- startTime: "Start Time",
1218
- errorMessage: "Error Message",
1219
- jobStatus: "Job Status",
1220
- jobParam: "Job Param",
1221
- jobHandler: "Job Handler",
1222
- jobClassName: "Job ClassName",
1223
- jobCron: "Job Cron",
1224
- jobName: "Job Name",
1225
- jobDescription: "Job Description",
1226
- interfaceName: "Interface Name",
1227
- interfaceUrl: "Interface Url",
1228
- requestDate: "Request Date",
1229
- requestStatus: "Request Status",
1230
- requestParameter: "Request Parameter",
1231
- responseTimeConsume: "Response TimeConsume(ms)",
1232
- responseContent: "Response Content",
1233
- stacktrace: "Stacktrace",
1234
- status: "Status",
1235
- email: "Email",
1236
- userPassword: "Password",
1237
- remarks: "Remarks",
1238
- userPwd: "Password",
1239
- unitName: "Department",
1240
- employeeCode: "Employee Code",
1241
- employeeName: "Employee Name",
1242
- department: "Department",
1243
- gender: "Sex",
1244
- releateUser: "Releate User",
1245
- identity: "Identity",
1246
- employeeDate: "Employee Date",
1247
- solarDay: "Solar Day",
1248
- phone: "Phone",
1249
- mobile: "Mobile",
1250
- deptName: "Department Name",
1251
- deptCode: "Department Code",
1252
- deptType: "Department Type",
1253
- deletePartment: "There are child levels in the department, please delete the child level first",
1254
- lovCode: "LovCode",
1255
- lovName: "lovName",
1256
- valueField: "valueField",
1257
- displayField: "displayField",
1258
- lovTitle: "lovTitle",
1259
- colField: "colField",
1260
- colTitle: "colTitle",
1261
- width: "width",
1262
- dictDispose: "dictDispose",
1263
- isSearch: "isSearch",
1264
- isCol: "isCol"
1265
- }, Yo = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": si, "./module/u-workflow.ts": di, "./module/umsg.ts": mi }), Et = {};
1266
- for (const e in Yo)
1267
- Et[e.replace(/(\.\/module\/|\.ts)/g, "")] = Yo[e].default;
1268
- const Go = Object.keys(Et).filter((e) => Et[e]).map((e) => Et[e]), gi = {
1269
- zh: {
1270
- ...O.getItem(jr),
1271
- message: wo(hi, ...Go.map((e) => e.zh.message))
1272
- },
1273
- en: {
1274
- ...O.getItem(qr),
1275
- message: Object.assign(pi, ...Go.map((e) => e.en.message))
1276
- }
1277
- };
1278
- let We = null;
1279
- function yi(e, t = { messages: {} }) {
1280
- var o;
1281
- We = vr({
1282
- legacy: !1,
1283
- locale: ((o = O.getItem(`${q()}locale`)) == null ? void 0 : o.locale) ?? "zh",
1284
- fallbackLocale: "en",
1285
- globalInjection: !0,
1286
- messages: wo(gi, t.messages)
1287
- }), ae.setLanguage("zh-CN"), e.use(We);
1288
- }
1289
- const Ct = () => We;
1290
- function On(e = "", t = !0) {
1291
- if (!e)
1292
- return "";
1293
- if (typeof e == "object") {
1294
- const o = We.global.locale;
1295
- return e[o.value];
1296
- }
1297
- return t ? We.global.t.call(We.global, e) : e;
1298
- }
1299
- const vi = ut("udp-system", {
1300
- state: () => ({
1301
- baseURL: "",
1302
- userInfo: {},
1303
- systemInfo: {},
1304
- dataDict: {},
1305
- sysConfig: {},
1306
- menui18n: {},
1307
- i18n: {},
1308
- dicts: [],
1309
- orgList: [],
1310
- invOrgList: [],
1311
- homeMenus: [],
1312
- sessionKey: "",
1313
- orgId: "",
1314
- userName: "",
1315
- organizationId: "",
1316
- isAdminRole: !1
1317
- }),
1318
- getters: {
1319
- getBaseURL() {
1320
- return this.baseURL;
1321
- },
1322
- getUserInfo() {
1323
- return this.userInfo;
1324
- },
1325
- getSysConfig() {
1326
- return this.sysConfig;
1327
- },
1328
- getEmployee() {
1329
- return this.employee;
1330
- },
1331
- getSessionKey() {
1332
- return this.sessionKey;
1333
- },
1334
- getMenuI18n() {
1335
- return this.menui18n;
1336
- },
1337
- getI18n() {
1338
- return this.i18n;
1339
- },
1340
- getOrglist() {
1341
- return this.orgList;
1342
- },
1343
- getOrgId() {
1344
- return this.orgId;
1345
- },
1346
- getOrganizationId() {
1347
- return this.organizationId;
1348
- },
1349
- getDataDict() {
1350
- return this.dataDict;
1351
- },
1352
- getUserName() {
1353
- return this.userName;
1354
- },
1355
- getAdminRole(e) {
1356
- return e.isAdminRole;
1357
- },
1358
- getHomeMenus(e) {
1359
- return e.homeMenus;
1360
- },
1361
- getOrganizationCode(e) {
1362
- var t, o;
1363
- return (o = (t = e.invOrgList) == null ? void 0 : t.find((n) => n.id === e.organizationId)) == null ? void 0 : o.organizationCode;
1364
- },
1365
- getOrg(e) {
1366
- return e.orgList.find((t) => t.id === e.orgId);
1367
- }
1368
- },
1369
- actions: {
1370
- // baseURL
1371
- setBaseURL(e) {
1372
- this.sessionKey = e;
1373
- },
1374
- setSessionKey(e) {
1375
- this.sessionKey = e.access_token || e;
1376
- },
1377
- // sysConfig
1378
- setSysConfig(e) {
1379
- this.sysConfig = e;
1380
- },
1381
- // orgId
1382
- setOrgId(e) {
1383
- this.orgId = e;
1384
- },
1385
- setOrganizationId(e) {
1386
- this.organizationId = e;
1387
- },
1388
- setMenuI18n(e) {
1389
- this.menui18n = e;
1390
- },
1391
- setI18n(e) {
1392
- this.i18n = e;
1393
- },
1394
- setUserName(e) {
1395
- this.userName = e;
1396
- },
1397
- // 首页子菜单列表
1398
- setHomeMenus(e) {
1399
- this.homeMenus = e;
1400
- },
1401
- // 库存组织列表
1402
- setInvOrgList(e) {
1403
- this.invOrgList = e;
1404
- },
1405
- setOrgList(e) {
1406
- this.orgList = e;
1407
- },
1408
- setDict(e) {
1409
- this.dicts = e, e == null || e.forEach((t) => {
1410
- this.dataDict[t.dictCode] = t;
1411
- }), O.setItem("kLov", this.dataDict);
1412
- },
1413
- // 系统信息
1414
- setSystemInfo(e) {
1415
- var n;
1416
- this.systemInfo = e;
1417
- const t = (n = e.employeeList) != null && n.length ? e.employeeList[0] : "";
1418
- this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList;
1419
- const o = {
1420
- orgId: e.orgId,
1421
- organizationId: e.organizationId
1422
- };
1423
- Ae.set("kCookies_param", JSON.stringify(o)), this.isAdminRole = this.employee.sysRoles.some((r) => r.roleCode === "admin" || ["管理员"].includes(r.roleName)), Z().setAuthButton(e.dataMenus);
1424
- }
1425
- }
1426
- });
1427
- function St() {
1428
- return vi(Xe);
1429
- }
1430
- function bi(e, t) {
1431
- return /* @__PURE__ */ ke({
1432
- name: e,
1433
- components: {
1434
- asyncComponent: t
1435
- },
1436
- setup() {
1437
- return () => st(Ve("async-component"), null, null);
1438
- }
1439
- });
1440
- }
1441
- const wi = () => he.get(`${pe()}/uums/roleMenu`), Ei = () => he.get(`${pe()}/upfm/v1/lov/selectAll`), Xo = (e) => he.get(`${pe()}/uums/roleMenu/userMenu`, e), Ci = () => import("./layoutView-D0Q7EG0u.js"), Si = () => import("./frameView-DtHY5dLd.js");
1442
- function dt(e) {
1443
- return e.forEach((t) => {
1444
- var o, n;
1445
- ((o = t == null ? void 0 : t.meta) == null ? void 0 : o.rank) === null && (t.meta.rank = void 0), ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
1446
- }), e.sort((t, o) => {
1447
- var n, r;
1448
- return ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) - ((r = o == null ? void 0 : o.meta) == null ? void 0 : r.rank);
1449
- });
1450
- }
1451
- function Nn(e) {
1452
- const t = ee(e, !0).filter((o) => {
1453
- var n;
1454
- return o && ((n = o.meta) == null ? void 0 : n.showLink) !== !1;
1455
- });
1456
- return t.forEach((o) => o.children && (o.children = Nn(o.children))), t;
1457
- }
1458
- function Xs(e, t, o = "path") {
1459
- function n(r, i, a) {
1460
- for (let s = 0; s < r.length; s++) {
1461
- const u = r[s];
1462
- if (u[o] === i) return a;
1463
- if (!(!u.children || !u.children.length)) {
1464
- if (a.push(u.path), n(u.children, i, a).length) return a;
1465
- a.pop();
1466
- }
1467
- }
1468
- return [];
1469
- }
1470
- return n(t, e, []);
1471
- }
1472
- function Mn(e, t) {
1473
- let o = t.find((n) => n.path == e);
1474
- if (o)
1475
- return zo(o) ? so(o) : o;
1476
- for (let n = 0; n < t.length; n++)
1477
- if (t[n].children instanceof Array && t[n].children.length > 0 && (o = Mn(e, t[n].children), o))
1478
- return zo(o) ? so(o) : o;
1479
- return null;
1480
- }
1481
- function Di() {
1482
- B.hasRoute("pathMatch") || B.addRoute({
1483
- path: "/:pathMatch(.*)",
1484
- name: "pathMatch",
1485
- redirect: "/error/404"
1486
- });
1487
- }
1488
- function Ti() {
1489
- var t, o;
1490
- const e = Ct();
1491
- (t = e.global) == null || t.mergeLocaleMessage("zh", je.zh), (o = e.global) == null || o.mergeLocaleMessage("en", je.en), O.setItem("menu_zh", je.zh), O.setItem("menu_en", je.en);
1492
- }
1493
- function Ko(e) {
1494
- if (e != null && e.length) {
1495
- const t = e.findIndex((n) => n.menuCode === "SysHome");
1496
- if (t !== -1) {
1497
- const n = [], r = [];
1498
- e[t].children.forEach((i) => {
1499
- i.menuCategory !== "1" ? n.push(i) : r.push(i);
1500
- }), e[t].children = r, St().setHomeMenus(n);
1501
- }
1502
- const o = ee(An(e), !0);
1503
- Ti(), Ut(o).map((n) => {
1504
- const { options: r } = B;
1505
- r.routes[0].children.findIndex((i) => i.path === n.path) === -1 && (B.options.routes[0].children.push(n), dt(B.options.routes[0].children), B.hasRoute(n == null ? void 0 : n.name) || B.addRoute(n));
1506
- });
1507
- }
1508
- Z().changeSetting(e), le().getMultiTagsCache || le().handleTags("equal", [
1509
- ...ct,
1510
- ...Z().flatteningRoutes.filter((t) => {
1511
- var o;
1512
- return (o = t == null ? void 0 : t.meta) == null ? void 0 : o.fixedTag;
1513
- })
1514
- ]), Di();
1515
- }
1516
- async function xi(e) {
1517
- let t = [];
1518
- const o = `U-${e}-ROUTES`;
1519
- return se().CachingAsyncRoutes && await tt.getItem(o).then((n) => t = n), Ei().then((n) => St().setDict(n)), await wi().then(async (n) => {
1520
- St().setSystemInfo(n), await zt().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: n.orgId }).then((r) => St().setInvOrgList((r == null ? void 0 : r.list) || []));
1521
- }), t != null && t.length ? new Promise((n) => {
1522
- Ko(t), Xo({ userName: e }).then((r) => {
1523
- tt.setItem(o, r);
1524
- }), n(B);
1525
- }) : new Promise((n) => {
1526
- Xo({ userName: e }).then((r) => {
1527
- Ko(ee(r, !0)), tt.setItem(o, r), n(B);
1528
- });
1529
- });
1530
- }
1531
- function Ut(e) {
1532
- if (e.length === 0) return e;
1533
- let t = bo(e);
1534
- for (let o = 0; o < t.length; o++)
1535
- t[o].children && (t = t.slice(0, o + 1).concat(t[o].children, t.slice(o + 1)));
1536
- return t;
1537
- }
1538
- function Rn(e) {
1539
- if (e.length === 0) return e;
1540
- const t = [];
1541
- return e.forEach((o) => {
1542
- o.path === "/" ? t.push({
1543
- component: o.component,
1544
- name: o.name,
1545
- path: o.path,
1546
- redirect: o.redirect,
1547
- meta: o.meta,
1548
- children: []
1549
- }) : t[0].children.push({ ...o });
1550
- }), t;
1551
- }
1552
- function ki({ name: e }, t) {
1553
- switch (t) {
1554
- case "add":
1555
- Z().cacheOperate({ mode: "add", name: e });
1556
- break;
1557
- case "delete":
1558
- Z().cacheOperate({ mode: "delete", name: e });
1559
- break;
1560
- case "refresh":
1561
- Z().cacheOperate({ mode: "refresh", name: e });
1562
- break;
1563
- default:
1564
- Z().cacheOperate({ mode: "delete", name: e }), Ar(() => {
1565
- Z().cacheOperate({ mode: "add", name: e });
1566
- }, 100);
1567
- }
1568
- }
1569
- const je = {
1570
- zh: {},
1571
- en: {}
1572
- }, An = (e) => {
1573
- var n;
1574
- const t = Ui();
1575
- if (!e || !e.length) return;
1576
- const o = Object.keys(t);
1577
- for (let r = 0; r < e.length; r++) {
1578
- const i = e[r];
1579
- i != null && i.children && i.children.length && !i.redirect && (i.redirect = i.children[0].path);
1580
- const { icon: a, permissionCode: s, extraIcon: u, frameSrc: l } = i;
1581
- if (i.meta = { keepAlive: !0, rank: i.sort, title: `${i.i18nField}` }, Object.assign(i.meta, { icon: a, permissionCode: s, extraIcon: u, frameSrc: l }), je.zh[i.i18nField] = i.menuName || i.menuNameEn, je.en[i.i18nField] = i.menuNameEn || i.menuName, i.name = i.menuCode || i.name, i.path = i.menuPath || i.path, !i.parentId)
1582
- i.component = Ci;
1583
- else if ((n = i.meta) != null && n.frameSrc)
1584
- i.component = Si;
1585
- else if (i.menuCategory === "10") {
1586
- const d = o.findIndex((c) => c.includes("lowcode-contain"));
1587
- i.component = bi(
1588
- i.name,
1589
- sr(() => import(
1590
- /* @vite-ignore */
1591
- o[d]
1592
- ))
1593
- ), Object.assign(i.meta, { moduleType: i.moduleType });
1594
- } else if (i.menuCategory !== "5") {
1595
- const d = o.findIndex((c) => c.includes(i.path));
1596
- i.component = t[o[d]];
1597
- }
1598
- i != null && i.children && i.children.length ? An(i.children) : delete i.children;
1599
- }
1600
- return e;
1601
- };
1602
- function Ks(e, t = !0) {
1603
- const o = le().multiTags.findIndex((n) => {
1604
- if (e.query) {
1605
- if (e.path === n.path)
1606
- return e.query === n.query;
1607
- } else
1608
- return e.path === n.path;
1609
- });
1610
- if (le().handleTags("splice", "", { startIndex: o, length: 1 }), ki(e.matched, "delete"), t) {
1611
- const n = le().handleTags("slice");
1612
- B.push({
1613
- path: n[0].path,
1614
- query: n[0].query
1615
- });
1616
- }
1617
- }
1618
- const Ii = ut("udp-permission", {
1619
- state: () => ({
1620
- // 静态路由生成的菜单
1621
- constantMenus: Ri,
1622
- // 整体路由生成的菜单(静态、动态)
1623
- wholeMenus: [],
1624
- // 深拷贝一个菜单树,与导航菜单不冲突
1625
- menusTree: [],
1626
- // 整体路由(一维数组格式)
1627
- flatteningRoutes: [],
1628
- buttonAuth: [],
1629
- // 缓存页面keepAlive
1630
- cachePageList: []
1631
- }),
1632
- getters: {
1633
- getButtonAuth() {
1634
- return this.buttonAuth;
1635
- }
1636
- },
1637
- actions: {
1638
- asyncActionRoutes(e = []) {
1639
- if (this.wholeMenus.length > 0) return;
1640
- const t = Ir(e, (n) => n.menuCode === "SysHome"), o = ee(this.constantMenus, !0);
1641
- if (t !== -1) {
1642
- const n = this.constantMenus.find((r) => r.name === "home");
1643
- e[t].children && n.children.push(...e[t].children), e.splice(t, 1);
1644
- }
1645
- this.wholeMenus = Nn(dt(this.constantMenus.concat(e))), this.flatteningRoutes = Ut(this.constantMenus.concat(e)), this.menusTree = ee(this.wholeMenus, !0), this.constantMenus = o;
1646
- },
1647
- async changeSetting(e) {
1648
- await this.asyncActionRoutes(e);
1649
- },
1650
- setAuthButton(e) {
1651
- this.buttonAuth = e;
1652
- },
1653
- setWholeMenus(e) {
1654
- this.wholeMenus = e;
1655
- },
1656
- /** 监听缓存页面是否存在于标签页,不存在则删除 */
1657
- clearCache() {
1658
- let e = this.cachePageList.length;
1659
- const t = ni(le().multiTags, "name");
1660
- for (; e > 0; )
1661
- t.findIndex((o) => o === this.cachePageList[e - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[e - 1]), 1), e--;
1662
- },
1663
- cacheOperate({ mode: e, name: t }) {
1664
- const o = this.cachePageList.findIndex((n) => n === t);
1665
- switch (e) {
1666
- case "refresh":
1667
- this.cachePageList = this.cachePageList.filter((n) => n !== t), this.clearCache();
1668
- break;
1669
- case "add":
1670
- this.cachePageList.push(t);
1671
- break;
1672
- case "delete":
1673
- o !== -1 && this.cachePageList.splice(o, 1), this.clearCache();
1674
- break;
1675
- case "reset":
1676
- this.cachePageList = [];
1677
- break;
1678
- }
1679
- },
1680
- /** 清空缓存页面 */
1681
- clearAllCachePage() {
1682
- this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
1683
- }
1684
- }
1685
- });
1686
- function Z() {
1687
- return Ii(Xe);
1688
- }
1689
- const Ln = ut("udp-multiTags", {
1690
- state: () => {
1691
- var e, t;
1692
- return {
1693
- // 存储标签页信息(路由信息)
1694
- multiTags: (e = O.getItem(`${q()}configure`)) != null && e.multiTagsCache ? O.getItem(`${q()}tags`) : [...ct, ...Z().flatteningRoutes.filter((o) => {
1695
- var n;
1696
- return (n = o == null ? void 0 : o.meta) == null ? void 0 : n.fixedTag;
1697
- })],
1698
- multiTagsCache: (t = O.getItem(`${q()}configure`)) == null ? void 0 : t.multiTagsCache
1699
- };
1700
- },
1701
- getters: {
1702
- getMultiTagsCache(e) {
1703
- return e.multiTagsCache;
1704
- }
1705
- },
1706
- actions: {
1707
- multiTagsCacheChange(e) {
1708
- this.multiTagsCache = e, e ? O.setItem(`${q()}tags`, this.multiTags) : O.removeItem(`${q()}tags`);
1709
- },
1710
- tagsCache(e) {
1711
- this.getMultiTagsCache && O.setItem(`${q()}tags`, e);
1712
- },
1713
- handleTags(e, t, o) {
1714
- var n, r, i, a, s, u;
1715
- switch (e) {
1716
- case "equal":
1717
- this.multiTags = t, this.tagsCache(this.multiTags);
1718
- break;
1719
- case "push":
1720
- {
1721
- const l = t;
1722
- if ((n = l == null ? void 0 : l.meta) != null && n.hiddenTag || Tn(l == null ? void 0 : l.name) || ((i = (r = l == null ? void 0 : l.meta) == null ? void 0 : r.title) == null ? void 0 : i.length) === 0 || Fr((a = l == null ? void 0 : l.meta) == null ? void 0 : a.showLink) && !((s = l == null ? void 0 : l.meta) != null && s.showLink)) return;
1723
- const d = l.path;
1724
- if (this.multiTags.some((p) => p.path === d && qo(p == null ? void 0 : p.query, l == null ? void 0 : l.query) && qo(p == null ? void 0 : p.params, l == null ? void 0 : l.params))) return;
1725
- const g = ((u = l == null ? void 0 : l.meta) == null ? void 0 : u.dynamicLevel) ?? -1;
1726
- if (g > 0 && this.multiTags.filter((p) => (p == null ? void 0 : p.path) === d).length >= g) {
1727
- const p = this.multiTags.findIndex((v) => (v == null ? void 0 : v.path) === d);
1728
- p !== -1 && this.multiTags.splice(p, 1);
1729
- }
1730
- this.multiTags.push(t), this.tagsCache(this.multiTags);
1731
- }
1732
- break;
1733
- case "splice":
1734
- if (o)
1735
- this.multiTags.splice(o == null ? void 0 : o.startIndex, o == null ? void 0 : o.length);
1736
- else {
1737
- const l = this.multiTags.findIndex((d) => d.path === t);
1738
- if (l === -1) return;
1739
- this.multiTags.splice(l, 1);
1740
- }
1741
- return this.tagsCache(this.multiTags), this.multiTags;
1742
- case "slice":
1743
- return this.multiTags.slice(-1);
1744
- }
1745
- }
1746
- }
1747
- });
1748
- function le() {
1749
- return Ln(Xe);
1750
- }
1751
- const Fi = () => import("./layoutView-D0Q7EG0u.js"), Pi = {
1752
- path: "/",
1753
- name: "home",
1754
- component: Fi,
1755
- redirect: "/welcome",
1756
- meta: {
1757
- icon: "home-filled",
1758
- title: "message.udp.home",
1759
- rank: 0
1760
- },
1761
- children: [
1762
- {
1763
- path: "/welcome",
1764
- name: "SuHome",
1765
- component: () => import("./su-welcome-Co6e4akE.js"),
1766
- meta: {
1767
- title: "message.udp.home",
1768
- keepAlive: !0
1769
- }
1770
- }
1771
- ]
1772
- }, _i = () => import("./layoutView-D0Q7EG0u.js"), Oi = {
1773
- path: "/error",
1774
- name: "error",
1775
- component: _i,
1776
- redirect: "/error/403",
1777
- meta: {
1778
- showLink: !1,
1779
- icon: "information-line",
1780
- title: "message.udp.error",
1781
- rank: 999
1782
- },
1783
- children: [
1784
- {
1785
- path: "/error/403",
1786
- name: "403",
1787
- component: () => import("./403-B_l9Q9w_.js"),
1788
- meta: {
1789
- title: "message.udp.fourZeroThree"
1790
- }
1791
- }
1792
- ]
1793
- }, Ni = () => import("./layoutView-D0Q7EG0u.js"), lt = [
1794
- {
1795
- path: "/login",
1796
- name: "login",
1797
- component: () => import("./login-CuO8YgN1.js"),
1798
- meta: {
1799
- title: "message.udp.login",
1800
- showLink: !1
1801
- }
1802
- },
1803
- {
1804
- path: "/error/404",
1805
- name: "404",
1806
- component: () => import("./404-33KZO3Vz.js"),
1807
- meta: {
1808
- title: "message.udp.fourZeroFour",
1809
- showLink: !1
1810
- }
1811
- },
1812
- {
1813
- path: "/error/500",
1814
- name: "500",
1815
- component: () => import("./500-oI74ZkQH.js"),
1816
- meta: {
1817
- title: "message.udp.five",
1818
- showLink: !1
1819
- }
1820
- },
1821
- {
1822
- path: "/redirect",
1823
- name: "redirect",
1824
- component: Ni,
1825
- meta: {
1826
- icon: "home-filled",
1827
- title: "message.udp.home",
1828
- showLink: !1,
1829
- rank: 104
1830
- },
1831
- children: [
1832
- {
1833
- path: "/redirect/:path(.*)",
1834
- // 2024-12-17
1835
- name: "redirectView",
1836
- component: () => import("./redirect-BqegffKC.js")
1837
- }
1838
- ]
1839
- }
1840
- ], Mi = /* @__PURE__ */ Object.assign({
1841
- "../views/organization/company/Company.vue": () => import("./Company-DOCRUvUs.js"),
1842
- "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-Do2JlJ3U.js"),
1843
- "../views/organization/department/Department.vue": () => import("./Department-BAlx8Am2.js"),
1844
- "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-BvQUkRaM.js"),
1845
- "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-D_PuTpPt.js"),
1846
- "../views/organization/org/Org.vue": () => import("./Org-CtVfZAjI.js"),
1847
- "../views/organization/staff/Staff.vue": () => import("./Staff-D493jHwR.js"),
1848
- "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-suU_pcyD.js"),
1849
- "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-BbYWu-xZ.js"),
1850
- "../views/system/cron/cron-task.vue": () => import("./cron-task-B0yfTtm6.js"),
1851
- "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
1852
- "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-DzKl8RAz.js"),
1853
- "../views/system/menu/menuInfo.vue": () => import("./menuInfo-ccOqhCC8.js"),
1854
- "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-DuFp2Ty7.js"),
1855
- "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-FnyN7LiS.js"),
1856
- "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-CNoxrmPS.js"),
1857
- "../views/system/role/Role.vue": () => import("./Role-CAaLVGNy.js"),
1858
- "../views/system/role/RolePanel.vue": () => import("./RolePanel-BRStoO0e.js"),
1859
- "../views/system/role/UserInfo.vue": () => import("./UserInfo-CYeYQNq8.js"),
1860
- "../views/system/sys/sys-config.vue": () => import("./sys-config-C6Es9vZl.js"),
1861
- "../views/system/sysUser/SysUser.vue": () => import("./SysUser-YXOsIVpJ.js"),
1862
- "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-C1tQzih_.js"),
1863
- "../views/uapp/pda/pda-app.vue": () => import("./pda-app-D7n4oxyn.js"),
1864
- "../views/udev/coderule/code-rule.vue": () => import("./code-rule-MxcRbYZR.js"),
1865
- "../views/udev/dict/DictView.vue": () => import("./DictView-DkG5lo6m.js"),
1866
- "../views/udev/dict/childView.vue": () => import("./childView-C6rHVrT6.js"),
1867
- "../views/udev/lov/childView.vue": () => import("./childView-BNYdfnMx.js"),
1868
- "../views/udev/lov/lov-view.vue": () => import("./lov-view-DcRVGqsD.js"),
1869
- "../views/upms/interface/log-in.vue": () => import("./log-in-CpGqc33f.js"),
1870
- "../views/upms/interface/log-out.vue": () => import("./log-out-D1b4VRMZ.js"),
1871
- "../views/upms/user/login-log.vue": () => import("./login-log-BNRXLeMi.js"),
1872
- "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
1873
- "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-BMr-c76z.js"),
1874
- "../views/urpt/design/Preview.vue": () => import("./Preview-Cuj_akRk.js"),
1875
- "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-B1y79NKM.js"),
1876
- "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-CZEfKCWP.js"),
1877
- "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-C_cUB8bs.js"),
1878
- "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-CM2aNEVp.js"),
1879
- "../views/urpt/static-resource/resource.vue": () => import("./resource-_h2OtsKS.js"),
1880
- "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-BprAuCb1.js")
1881
- }), Js = lt, Eo = [Pi, Oi], Zs = Rn(
1882
- Ut(bo(dt(Eo)))
1883
- ), Ri = dt(Eo).concat(...lt), Qs = Object.keys(lt).map((e) => lt[e].path), Ai = /* @__PURE__ */ new Set();
1884
- function Li() {
1885
- Ai.clear();
1886
- }
1887
- function Bi() {
1888
- B.getRoutes().forEach((e) => {
1889
- const { name: t, meta: o } = e;
1890
- t && B.hasRoute(t) && (o != null && o.backstage) && (B.removeRoute(t), B.options.routes = Rn(Ut(bo(dt(Eo)))));
1891
- }), Z().clearAllCachePage(), Li();
1892
- }
1893
- let co = null, B = null;
1894
- function zi(e, t) {
1895
- co = e, B = t, Object.assign(co, Mi);
1896
- }
1897
- function Ui() {
1898
- return co;
1899
- }
1900
- const ji = ["/login"], el = (e, t, o) => {
1901
- var a, s, u;
1902
- const n = Ae.get(In), r = Tn(e == null ? void 0 : e.name);
1903
- function i() {
1904
- ji.includes(e.fullPath) ? o(t.fullPath) : o();
1905
- }
1906
- if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
1907
- const l = (a = e.matched.find((d) => d.path === e.path || d.name === e.name && e.params)) == null ? void 0 : a.components;
1908
- r ? (br(e == null ? void 0 : e.name), (s = wr) == null || s.done()) : l != null && l.default || e.name === "redirect" ? i() : o({ path: "/error/404" });
1909
- } else
1910
- Z().wholeMenus.length === 0 && xi(n).then((l) => {
1911
- var d;
1912
- if (!le().getMultiTagsCache) {
1913
- const { path: c } = e, p = Pr(lt, (m) => m.path === c) === -1 ? l.options.routes[0].children : l.options.routes, v = Mn(c, p);
1914
- if (v && ((d = v.meta) != null && d.title)) {
1915
- const { path: m, name: h, meta: x } = v;
1916
- le().handleTags("push", { path: m, name: h, meta: x });
1917
- }
1918
- }
1919
- He(e.name) && l.push(e.fullPath);
1920
- }), t.fullPath === "/" && e.fullPath === "/login" && !((u = e.query) != null && u.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome", e.query = {}), i();
1921
- };
1922
- Er(kn, { serviceApi: zt(), i18n: On });
1923
- $i();
1924
- const qi = {
1925
- // 对组件内置的提示语进行国际化翻译
1926
- // @ts-ignore
1927
- i18n: (e, t) => Ct().global.t(e, t),
1928
- // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
1929
- translate(e) {
1930
- return e && ["message.", "el."].findIndex((o) => e.includes(o)) !== -1 ? Ct().global.t.call(Ct().global.locale, e) : e;
1931
- }
1932
- };
1933
- function Hi(e = {}) {
1934
- kn.setConfig(wo(qi, e)), ae.interceptor.add("event.clearEdit", {
1935
- tableInterceptorMethod(t) {
1936
- const { $event: o } = t;
1937
- if (o.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
1938
- }
1939
- });
1940
- }
1941
- function Wi(e) {
1942
- ae.setTheme(e);
1943
- }
1944
- function $i() {
1945
- ae.commands.add("utTodyay", {
1946
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1947
- const t = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 00:00:00"), o = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1948
- e.setModelValue(t, o);
1949
- }
1950
- }), ae.commands.add("utYesterDay", {
1951
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1952
- const t = L(_e(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 00:00:00"), o = L(_e(/* @__PURE__ */ new Date(), -1), "yyyy-MM-dd 23:59:59");
1953
- e.setModelValue(t, o);
1954
- }
1955
- }), ae.commands.add("utRecentWeek", {
1956
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1957
- const t = L(_e(/* @__PURE__ */ new Date(), -7), "yyyy-MM-dd 00:00:00"), o = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1958
- e.setModelValue(t, o);
1959
- }
1960
- }), ae.commands.add("utRecentMonth", {
1961
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1962
- const t = L(_e(/* @__PURE__ */ new Date(), -30), "yyyy-MM-dd 00:00:00"), o = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1963
- e.setModelValue(t, o);
1964
- }
1965
- }), ae.commands.add("utRecentThreeMonth", {
1966
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1967
- const t = L(_e(/* @__PURE__ */ new Date(), -90), "yyyy-MM-dd 00:00:00"), o = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1968
- e.setModelValue(t, o);
1969
- }
1970
- }), ae.commands.add("utRecentHalfYear", {
1971
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1972
- const t = L(_e(/* @__PURE__ */ new Date(), -180), "yyyy-MM-dd 00:00:00"), o = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1973
- e.setModelValue(t, o);
1974
- }
1975
- }), ae.commands.add("utRecentYear", {
1976
- dateRangePickerCommandMethod({ $dateRangePicker: e }) {
1977
- const t = L(_e(/* @__PURE__ */ new Date(), -365), "yyyy-MM-dd 00:00:00"), o = L(/* @__PURE__ */ new Date(), "yyyy-MM-dd 23:59:59");
1978
- e.setModelValue(t, o);
1979
- }
1980
- });
1981
- }
1982
- var Co = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, Yi = Object.getOwnPropertyNames, Gi = Object.prototype.hasOwnProperty, Xi = (e, t, o) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, Ki = (e, t) => {
1983
- for (var o in t) Co(e, o, { get: t[o], enumerable: !0 });
1984
- }, Ji = (e, t, o, n) => {
1985
- if (t && typeof t == "object" || typeof t == "function") for (let r of Yi(t)) !Gi.call(e, r) && r !== o && Co(e, r, { get: () => t[r], enumerable: !(n = Vi(t, r)) || n.enumerable });
1986
- return e;
1987
- }, Zi = (e, t, o) => (Ji(e, t, "default"), o), Jo = (e, t, o) => (Xi(e, typeof t != "symbol" ? t + "" : t, o), o), So = {};
1988
- Ki(So, { Vue: () => Cn });
1989
- Zi(So, Cn);
1990
- var _t = class {
1991
- static install(e, t) {
1992
- let { nameSpace: o = this._nameSpace, memory: n } = t;
1993
- return n && this.clearAll(o, n), new _t(e, t);
1994
- }
1995
- static clearAll(e, t) {
1996
- Object.keys(t).forEach((o) => {
1997
- let n = e + o;
1998
- Object.prototype.hasOwnProperty.call(window.localStorage, n) && window.localStorage.removeItem(n);
1999
- });
2000
- }
2001
- static get(e) {
2002
- return JSON.parse(window.localStorage.getItem(e));
2003
- }
2004
- static set(e, t) {
2005
- t = typeof t == "object" ? JSON.stringify(t) : t, window.localStorage.setItem(e, t);
2006
- }
2007
- static getData(e, t) {
2008
- if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
2009
- }
2010
- constructor(e, t) {
2011
- let o = _t, { version: n = 3, nameSpace: r = o._nameSpace, memory: i } = t, a = (l) => r + l, s = n === 3 ? (0, So.reactive)(i) : i;
2012
- Object.keys(s).length === 0 && console.warn("key cannot be empty"), Object.keys(s).forEach((l) => {
2013
- let d = s[l];
2014
- o.set(a(l), d), Reflect.defineProperty(s, l, { get: () => o.get(a(l)), set: (c) => o.set(a(l), c), configurable: !0 }), n === 2 && e.util.defineReactive(s, l, s[l]);
2015
- });
2016
- let u = n === 3 ? e.config.globalProperties : e.prototype;
2017
- Reflect.defineProperty(u, "$storage", { get: () => s });
2018
- }
2019
- }, Ce = _t;
2020
- Jo(Ce, "_nameSpace", "rs-"), Jo(Ce, "_getStaticKey", (e, t) => `${e ?? _t._nameSpace}${t}`);
2021
- const Qi = (e, t) => {
2022
- const o = q(), n = Object.assign(
2023
- {
2024
- // 国际化 默认中文zh
2025
- locale: Ce.getData("locale", o) ?? {
2026
- locale: t.Locale ?? "zh"
2027
- },
2028
- // layout模式以及主题
2029
- layout: Ce.getData("layout", o) ?? {
2030
- layout: t.Layout ?? "vertical",
2031
- theme: t.Theme ?? "default",
2032
- darkMode: t.DarkMode ?? !1,
2033
- sidebarStatus: t.SidebarStatus ?? !0,
2034
- epThemeColor: t.EpThemeColor ?? "#409EFF",
2035
- themeColor: t.Theme ?? "light",
2036
- // 主题色(对应项目配置中的主题色,与theme不同的是它不会受到浅色、深色整体风格切换的影响,只会在手动点击主题色时改变)
2037
- overallStyle: t.OverallStyle ?? "light"
2038
- // 整体风格(浅色:light、深色:dark、自动:system)
2039
- },
2040
- configure: Ce.getData("configure", o) ?? {
2041
- grey: t.Grey ?? !1,
2042
- weak: t.Weak ?? !1,
2043
- hideTabs: t.HideTabs ?? !1,
2044
- showLogo: t.ShowLogo ?? !0,
2045
- showModel: t.ShowModel ?? "smart",
2046
- multiTagsCache: t.MultiTagsCache ?? !1
2047
- },
2048
- cnd: Ce.getData("cnd", o) ?? {}
2049
- },
2050
- t.MultiTagsCache ? {
2051
- // 默认显示首页tag
2052
- tags: Ce.getData("tags", o) ?? ct
2053
- } : {}
2054
- );
2055
- e.use(Ce, { nameSpace: o, memory: n });
2056
- }, ea = (e) => {
2057
- var r;
2058
- if (!e) return !0;
2059
- const t = (r = B.currentRoute.value.meta) == null ? void 0 : r.permissionCode;
2060
- if (!t) return !0;
2061
- _r(e) || (e = [e]);
2062
- const o = Z().getButtonAuth;
2063
- if (!o) return !0;
2064
- let n = !1;
2065
- return e.forEach((i) => {
2066
- if (!n) {
2067
- const a = `${t}.${i}`;
2068
- n = o.includes(a);
2069
- }
2070
- }), n;
2071
- };
2072
- /**!
2073
- * Sortable 1.15.6
2074
- * @author RubaXa <trash@rubaxa.org>
2075
- * @author owenm <owen23355@gmail.com>
2076
- * @license MIT
2077
- */
2078
- function Zo(e, t) {
2079
- var o = Object.keys(e);
2080
- if (Object.getOwnPropertySymbols) {
2081
- var n = Object.getOwnPropertySymbols(e);
2082
- t && (n = n.filter(function(r) {
2083
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
2084
- })), o.push.apply(o, n);
2085
- }
2086
- return o;
2087
- }
2088
- function ce(e) {
2089
- for (var t = 1; t < arguments.length; t++) {
2090
- var o = arguments[t] != null ? arguments[t] : {};
2091
- t % 2 ? Zo(Object(o), !0).forEach(function(n) {
2092
- ta(e, n, o[n]);
2093
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Zo(Object(o)).forEach(function(n) {
2094
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(o, n));
2095
- });
2096
- }
2097
- return e;
2098
- }
2099
- function Dt(e) {
2100
- "@babel/helpers - typeof";
2101
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Dt = function(t) {
2102
- return typeof t;
2103
- } : Dt = function(t) {
2104
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2105
- }, Dt(e);
2106
- }
2107
- function ta(e, t, o) {
2108
- return t in e ? Object.defineProperty(e, t, {
2109
- value: o,
2110
- enumerable: !0,
2111
- configurable: !0,
2112
- writable: !0
2113
- }) : e[t] = o, e;
2114
- }
2115
- function ye() {
2116
- return ye = Object.assign || function(e) {
2117
- for (var t = 1; t < arguments.length; t++) {
2118
- var o = arguments[t];
2119
- for (var n in o)
2120
- Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n]);
2121
- }
2122
- return e;
2123
- }, ye.apply(this, arguments);
2124
- }
2125
- function oa(e, t) {
2126
- if (e == null) return {};
2127
- var o = {}, n = Object.keys(e), r, i;
2128
- for (i = 0; i < n.length; i++)
2129
- r = n[i], !(t.indexOf(r) >= 0) && (o[r] = e[r]);
2130
- return o;
2131
- }
2132
- function na(e, t) {
2133
- if (e == null) return {};
2134
- var o = oa(e, t), n, r;
2135
- if (Object.getOwnPropertySymbols) {
2136
- var i = Object.getOwnPropertySymbols(e);
2137
- for (r = 0; r < i.length; r++)
2138
- n = i[r], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
2139
- }
2140
- return o;
2141
- }
2142
- var ra = "1.15.6";
2143
- function ge(e) {
2144
- if (typeof window < "u" && window.navigator)
2145
- return !!/* @__PURE__ */ navigator.userAgent.match(e);
2146
- }
2147
- var ve = ge(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ft = ge(/Edge/i), Qo = ge(/firefox/i), ot = ge(/safari/i) && !ge(/chrome/i) && !ge(/android/i), Do = ge(/iP(ad|od|hone)/i), Bn = ge(/chrome/i) && ge(/android/i), zn = {
2148
- capture: !1,
2149
- passive: !1
2150
- };
2151
- function D(e, t, o) {
2152
- e.addEventListener(t, o, !ve && zn);
2153
- }
2154
- function S(e, t, o) {
2155
- e.removeEventListener(t, o, !ve && zn);
2156
- }
2157
- function Ot(e, t) {
2158
- if (t) {
2159
- if (t[0] === ">" && (t = t.substring(1)), e)
2160
- try {
2161
- if (e.matches)
2162
- return e.matches(t);
2163
- if (e.msMatchesSelector)
2164
- return e.msMatchesSelector(t);
2165
- if (e.webkitMatchesSelector)
2166
- return e.webkitMatchesSelector(t);
2167
- } catch {
2168
- return !1;
2169
- }
2170
- return !1;
2171
- }
2172
- }
2173
- function Un(e) {
2174
- return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
2175
- }
2176
- function oe(e, t, o, n) {
2177
- if (e) {
2178
- o = o || document;
2179
- do {
2180
- if (t != null && (t[0] === ">" ? e.parentNode === o && Ot(e, t) : Ot(e, t)) || n && e === o)
2181
- return e;
2182
- if (e === o) break;
2183
- } while (e = Un(e));
2184
- }
2185
- return null;
2186
- }
2187
- var en = /\s+/g;
2188
- function X(e, t, o) {
2189
- if (e && t)
2190
- if (e.classList)
2191
- e.classList[o ? "add" : "remove"](t);
2192
- else {
2193
- var n = (" " + e.className + " ").replace(en, " ").replace(" " + t + " ", " ");
2194
- e.className = (n + (o ? " " + t : "")).replace(en, " ");
2195
- }
2196
- }
2197
- function b(e, t, o) {
2198
- var n = e && e.style;
2199
- if (n) {
2200
- if (o === void 0)
2201
- return document.defaultView && document.defaultView.getComputedStyle ? o = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (o = e.currentStyle), t === void 0 ? o : o[t];
2202
- !(t in n) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), n[t] = o + (typeof o == "string" ? "" : "px");
2203
- }
2204
- }
2205
- function $e(e, t) {
2206
- var o = "";
2207
- if (typeof e == "string")
2208
- o = e;
2209
- else
2210
- do {
2211
- var n = b(e, "transform");
2212
- n && n !== "none" && (o = n + " " + o);
2213
- } while (!t && (e = e.parentNode));
2214
- var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
2215
- return r && new r(o);
2216
- }
2217
- function jn(e, t, o) {
2218
- if (e) {
2219
- var n = e.getElementsByTagName(t), r = 0, i = n.length;
2220
- if (o)
2221
- for (; r < i; r++)
2222
- o(n[r], r);
2223
- return n;
2224
- }
2225
- return [];
2226
- }
2227
- function ue() {
2228
- var e = document.scrollingElement;
2229
- return e || document.documentElement;
2230
- }
2231
- function R(e, t, o, n, r) {
2232
- if (!(!e.getBoundingClientRect && e !== window)) {
2233
- var i, a, s, u, l, d, c;
2234
- if (e !== window && e.parentNode && e !== ue() ? (i = e.getBoundingClientRect(), a = i.top, s = i.left, u = i.bottom, l = i.right, d = i.height, c = i.width) : (a = 0, s = 0, u = window.innerHeight, l = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (t || o) && e !== window && (r = r || e.parentNode, !ve))
2235
- do
2236
- if (r && r.getBoundingClientRect && (b(r, "transform") !== "none" || o && b(r, "position") !== "static")) {
2237
- var g = r.getBoundingClientRect();
2238
- a -= g.top + parseInt(b(r, "border-top-width")), s -= g.left + parseInt(b(r, "border-left-width")), u = a + i.height, l = s + i.width;
2239
- break;
2240
- }
2241
- while (r = r.parentNode);
2242
- if (n && e !== window) {
2243
- var p = $e(r || e), v = p && p.a, m = p && p.d;
2244
- p && (a /= m, s /= v, c /= v, d /= m, u = a + d, l = s + c);
2245
- }
2246
- return {
2247
- top: a,
2248
- left: s,
2249
- bottom: u,
2250
- right: l,
2251
- width: c,
2252
- height: d
2253
- };
2254
- }
2255
- }
2256
- function tn(e, t, o) {
2257
- for (var n = xe(e, !0), r = R(e)[t]; n; ) {
2258
- var i = R(n)[o], a = void 0;
2259
- if (a = r >= i, !a) return n;
2260
- if (n === ue()) break;
2261
- n = xe(n, !1);
2262
- }
2263
- return !1;
2264
- }
2265
- function Ge(e, t, o, n) {
2266
- for (var r = 0, i = 0, a = e.children; i < a.length; ) {
2267
- if (a[i].style.display !== "none" && a[i] !== w.ghost && (n || a[i] !== w.dragged) && oe(a[i], o.draggable, e, !1)) {
2268
- if (r === t)
2269
- return a[i];
2270
- r++;
2271
- }
2272
- i++;
2273
- }
2274
- return null;
2275
- }
2276
- function To(e, t) {
2277
- for (var o = e.lastElementChild; o && (o === w.ghost || b(o, "display") === "none" || t && !Ot(o, t)); )
2278
- o = o.previousElementSibling;
2279
- return o || null;
2280
- }
2281
- function Q(e, t) {
2282
- var o = 0;
2283
- if (!e || !e.parentNode)
2284
- return -1;
2285
- for (; e = e.previousElementSibling; )
2286
- e.nodeName.toUpperCase() !== "TEMPLATE" && e !== w.clone && (!t || Ot(e, t)) && o++;
2287
- return o;
2288
- }
2289
- function on(e) {
2290
- var t = 0, o = 0, n = ue();
2291
- if (e)
2292
- do {
2293
- var r = $e(e), i = r.a, a = r.d;
2294
- t += e.scrollLeft * i, o += e.scrollTop * a;
2295
- } while (e !== n && (e = e.parentNode));
2296
- return [t, o];
2297
- }
2298
- function ia(e, t) {
2299
- for (var o in e)
2300
- if (e.hasOwnProperty(o)) {
2301
- for (var n in t)
2302
- if (t.hasOwnProperty(n) && t[n] === e[o][n]) return Number(o);
2303
- }
2304
- return -1;
2305
- }
2306
- function xe(e, t) {
2307
- if (!e || !e.getBoundingClientRect) return ue();
2308
- var o = e, n = !1;
2309
- do
2310
- if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
2311
- var r = b(o);
2312
- if (o.clientWidth < o.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
2313
- if (!o.getBoundingClientRect || o === document.body) return ue();
2314
- if (n || t) return o;
2315
- n = !0;
2316
- }
2317
- }
2318
- while (o = o.parentNode);
2319
- return ue();
2320
- }
2321
- function aa(e, t) {
2322
- if (e && t)
2323
- for (var o in t)
2324
- t.hasOwnProperty(o) && (e[o] = t[o]);
2325
- return e;
2326
- }
2327
- function Gt(e, t) {
2328
- return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
2329
- }
2330
- var nt;
2331
- function qn(e, t) {
2332
- return function() {
2333
- if (!nt) {
2334
- var o = arguments, n = this;
2335
- o.length === 1 ? e.call(n, o[0]) : e.apply(n, o), nt = setTimeout(function() {
2336
- nt = void 0;
2337
- }, t);
2338
- }
2339
- };
2340
- }
2341
- function sa() {
2342
- clearTimeout(nt), nt = void 0;
2343
- }
2344
- function Hn(e, t, o) {
2345
- e.scrollLeft += t, e.scrollTop += o;
2346
- }
2347
- function Wn(e) {
2348
- var t = window.Polymer, o = window.jQuery || window.Zepto;
2349
- return t && t.dom ? t.dom(e).cloneNode(!0) : o ? o(e).clone(!0)[0] : e.cloneNode(!0);
2350
- }
2351
- function $n(e, t, o) {
2352
- var n = {};
2353
- return Array.from(e.children).forEach(function(r) {
2354
- var i, a, s, u;
2355
- if (!(!oe(r, t.draggable, e, !1) || r.animated || r === o)) {
2356
- var l = R(r);
2357
- n.left = Math.min((i = n.left) !== null && i !== void 0 ? i : 1 / 0, l.left), n.top = Math.min((a = n.top) !== null && a !== void 0 ? a : 1 / 0, l.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, l.right), n.bottom = Math.max((u = n.bottom) !== null && u !== void 0 ? u : -1 / 0, l.bottom);
2358
- }
2359
- }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
2360
- }
2361
- var Y = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
2362
- function la() {
2363
- var e = [], t;
2364
- return {
2365
- captureAnimationState: function() {
2366
- if (e = [], !!this.options.animation) {
2367
- var n = [].slice.call(this.el.children);
2368
- n.forEach(function(r) {
2369
- if (!(b(r, "display") === "none" || r === w.ghost)) {
2370
- e.push({
2371
- target: r,
2372
- rect: R(r)
2373
- });
2374
- var i = ce({}, e[e.length - 1].rect);
2375
- if (r.thisAnimationDuration) {
2376
- var a = $e(r, !0);
2377
- a && (i.top -= a.f, i.left -= a.e);
2378
- }
2379
- r.fromRect = i;
2380
- }
2381
- });
2382
- }
2383
- },
2384
- addAnimationState: function(n) {
2385
- e.push(n);
2386
- },
2387
- removeAnimationState: function(n) {
2388
- e.splice(ia(e, {
2389
- target: n
2390
- }), 1);
2391
- },
2392
- animateAll: function(n) {
2393
- var r = this;
2394
- if (!this.options.animation) {
2395
- clearTimeout(t), typeof n == "function" && n();
2396
- return;
2397
- }
2398
- var i = !1, a = 0;
2399
- e.forEach(function(s) {
2400
- var u = 0, l = s.target, d = l.fromRect, c = R(l), g = l.prevFromRect, p = l.prevToRect, v = s.rect, m = $e(l, !0);
2401
- m && (c.top -= m.f, c.left -= m.e), l.toRect = c, l.thisAnimationDuration && Gt(g, c) && !Gt(d, c) && // Make sure animatingRect is on line between toRect & fromRect
2402
- (v.top - c.top) / (v.left - c.left) === (d.top - c.top) / (d.left - c.left) && (u = ca(v, g, p, r.options)), Gt(c, d) || (l.prevFromRect = d, l.prevToRect = c, u || (u = r.options.animation), r.animate(l, v, c, u)), u && (i = !0, a = Math.max(a, u), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
2403
- l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
2404
- }, u), l.thisAnimationDuration = u);
2405
- }), clearTimeout(t), i ? t = setTimeout(function() {
2406
- typeof n == "function" && n();
2407
- }, a) : typeof n == "function" && n(), e = [];
2408
- },
2409
- animate: function(n, r, i, a) {
2410
- if (a) {
2411
- b(n, "transition", ""), b(n, "transform", "");
2412
- var s = $e(this.el), u = s && s.a, l = s && s.d, d = (r.left - i.left) / (u || 1), c = (r.top - i.top) / (l || 1);
2413
- n.animatingX = !!d, n.animatingY = !!c, b(n, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = ua(n), b(n, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), b(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
2414
- b(n, "transition", ""), b(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
2415
- }, a);
2416
- }
2417
- }
2418
- };
2419
- }
2420
- function ua(e) {
2421
- return e.offsetWidth;
2422
- }
2423
- function ca(e, t, o, n) {
2424
- return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - o.top, 2) + Math.pow(t.left - o.left, 2)) * n.animation;
2425
- }
2426
- var Be = [], Xt = {
2427
- initializeByDefault: !0
2428
- }, mt = {
2429
- mount: function(t) {
2430
- for (var o in Xt)
2431
- Xt.hasOwnProperty(o) && !(o in t) && (t[o] = Xt[o]);
2432
- Be.forEach(function(n) {
2433
- if (n.pluginName === t.pluginName)
2434
- throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
2435
- }), Be.push(t);
2436
- },
2437
- pluginEvent: function(t, o, n) {
2438
- var r = this;
2439
- this.eventCanceled = !1, n.cancel = function() {
2440
- r.eventCanceled = !0;
2441
- };
2442
- var i = t + "Global";
2443
- Be.forEach(function(a) {
2444
- o[a.pluginName] && (o[a.pluginName][i] && o[a.pluginName][i](ce({
2445
- sortable: o
2446
- }, n)), o.options[a.pluginName] && o[a.pluginName][t] && o[a.pluginName][t](ce({
2447
- sortable: o
2448
- }, n)));
2449
- });
2450
- },
2451
- initializePlugins: function(t, o, n, r) {
2452
- Be.forEach(function(s) {
2453
- var u = s.pluginName;
2454
- if (!(!t.options[u] && !s.initializeByDefault)) {
2455
- var l = new s(t, o, t.options);
2456
- l.sortable = t, l.options = t.options, t[u] = l, ye(n, l.defaults);
2457
- }
2458
- });
2459
- for (var i in t.options)
2460
- if (t.options.hasOwnProperty(i)) {
2461
- var a = this.modifyOption(t, i, t.options[i]);
2462
- typeof a < "u" && (t.options[i] = a);
2463
- }
2464
- },
2465
- getEventProperties: function(t, o) {
2466
- var n = {};
2467
- return Be.forEach(function(r) {
2468
- typeof r.eventProperties == "function" && ye(n, r.eventProperties.call(o[r.pluginName], t));
2469
- }), n;
2470
- },
2471
- modifyOption: function(t, o, n) {
2472
- var r;
2473
- return Be.forEach(function(i) {
2474
- t[i.pluginName] && i.optionListeners && typeof i.optionListeners[o] == "function" && (r = i.optionListeners[o].call(t[i.pluginName], n));
2475
- }), r;
2476
- }
2477
- };
2478
- function da(e) {
2479
- var t = e.sortable, o = e.rootEl, n = e.name, r = e.targetEl, i = e.cloneEl, a = e.toEl, s = e.fromEl, u = e.oldIndex, l = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, g = e.originalEvent, p = e.putSortable, v = e.extraEventProperties;
2480
- if (t = t || o && o[Y], !!t) {
2481
- var m, h = t.options, x = "on" + n.charAt(0).toUpperCase() + n.substr(1);
2482
- window.CustomEvent && !ve && !ft ? m = new CustomEvent(n, {
2483
- bubbles: !0,
2484
- cancelable: !0
2485
- }) : (m = document.createEvent("Event"), m.initEvent(n, !0, !0)), m.to = a || o, m.from = s || o, m.item = r || o, m.clone = i, m.oldIndex = u, m.newIndex = l, m.oldDraggableIndex = d, m.newDraggableIndex = c, m.originalEvent = g, m.pullMode = p ? p.lastPutMode : void 0;
2486
- var C = ce(ce({}, v), mt.getEventProperties(n, t));
2487
- for (var T in C)
2488
- m[T] = C[T];
2489
- o && o.dispatchEvent(m), h[x] && h[x].call(t, m);
2490
- }
2491
- }
2492
- var fa = ["evt"], V = function(t, o) {
2493
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = na(n, fa);
2494
- mt.pluginEvent.bind(w)(t, o, ce({
2495
- dragEl: f,
2496
- parentEl: N,
2497
- ghostEl: E,
2498
- rootEl: P,
2499
- nextEl: Me,
2500
- lastDownEl: Tt,
2501
- cloneEl: _,
2502
- cloneHidden: De,
2503
- dragStarted: Ze,
2504
- putSortable: z,
2505
- activeSortable: w.active,
2506
- originalEvent: r,
2507
- oldIndex: qe,
2508
- oldDraggableIndex: rt,
2509
- newIndex: J,
2510
- newDraggableIndex: Se,
2511
- hideGhostForTarget: Xn,
2512
- unhideGhostForTarget: Kn,
2513
- cloneNowHidden: function() {
2514
- De = !0;
2515
- },
2516
- cloneNowShown: function() {
2517
- De = !1;
2518
- },
2519
- dispatchSortableEvent: function(s) {
2520
- $({
2521
- sortable: o,
2522
- name: s,
2523
- originalEvent: r
2524
- });
2525
- }
2526
- }, i));
2527
- };
2528
- function $(e) {
2529
- da(ce({
2530
- putSortable: z,
2531
- cloneEl: _,
2532
- targetEl: f,
2533
- rootEl: P,
2534
- oldIndex: qe,
2535
- oldDraggableIndex: rt,
2536
- newIndex: J,
2537
- newDraggableIndex: Se
2538
- }, e));
2539
- }
2540
- var f, N, E, P, Me, Tt, _, De, qe, J, rt, Se, yt, z, Ue = !1, Nt = !1, Mt = [], Oe, te, Kt, Jt, nn, rn, Ze, ze, it, at = !1, vt = !1, xt, j, Zt = [], fo = !1, Rt = [], jt = typeof document < "u", bt = Do, an = ft || ve ? "cssFloat" : "float", ma = jt && !Bn && !Do && "draggable" in document.createElement("div"), Vn = function() {
2541
- if (jt) {
2542
- if (ve)
2543
- return !1;
2544
- var e = document.createElement("x");
2545
- return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
2546
- }
2547
- }(), Yn = function(t, o) {
2548
- var n = b(t), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ge(t, 0, o), a = Ge(t, 1, o), s = i && b(i), u = a && b(a), l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + R(i).width, d = u && parseInt(u.marginLeft) + parseInt(u.marginRight) + R(a).width;
2549
- if (n.display === "flex")
2550
- return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
2551
- if (n.display === "grid")
2552
- return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
2553
- if (i && s.float && s.float !== "none") {
2554
- var c = s.float === "left" ? "left" : "right";
2555
- return a && (u.clear === "both" || u.clear === c) ? "vertical" : "horizontal";
2556
- }
2557
- return i && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || l >= r && n[an] === "none" || a && n[an] === "none" && l + d > r) ? "vertical" : "horizontal";
2558
- }, ha = function(t, o, n) {
2559
- var r = n ? t.left : t.top, i = n ? t.right : t.bottom, a = n ? t.width : t.height, s = n ? o.left : o.top, u = n ? o.right : o.bottom, l = n ? o.width : o.height;
2560
- return r === s || i === u || r + a / 2 === s + l / 2;
2561
- }, pa = function(t, o) {
2562
- var n;
2563
- return Mt.some(function(r) {
2564
- var i = r[Y].options.emptyInsertThreshold;
2565
- if (!(!i || To(r))) {
2566
- var a = R(r), s = t >= a.left - i && t <= a.right + i, u = o >= a.top - i && o <= a.bottom + i;
2567
- if (s && u)
2568
- return n = r;
2569
- }
2570
- }), n;
2571
- }, Gn = function(t) {
2572
- function o(i, a) {
2573
- return function(s, u, l, d) {
2574
- var c = s.options.group.name && u.options.group.name && s.options.group.name === u.options.group.name;
2575
- if (i == null && (a || c))
2576
- return !0;
2577
- if (i == null || i === !1)
2578
- return !1;
2579
- if (a && i === "clone")
2580
- return i;
2581
- if (typeof i == "function")
2582
- return o(i(s, u, l, d), a)(s, u, l, d);
2583
- var g = (a ? s : u).options.group.name;
2584
- return i === !0 || typeof i == "string" && i === g || i.join && i.indexOf(g) > -1;
2585
- };
2586
- }
2587
- var n = {}, r = t.group;
2588
- (!r || Dt(r) != "object") && (r = {
2589
- name: r
2590
- }), n.name = r.name, n.checkPull = o(r.pull, !0), n.checkPut = o(r.put), n.revertClone = r.revertClone, t.group = n;
2591
- }, Xn = function() {
2592
- !Vn && E && b(E, "display", "none");
2593
- }, Kn = function() {
2594
- !Vn && E && b(E, "display", "");
2595
- };
2596
- jt && !Bn && document.addEventListener("click", function(e) {
2597
- if (Nt)
2598
- return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Nt = !1, !1;
2599
- }, !0);
2600
- var Ne = function(t) {
2601
- if (f) {
2602
- t = t.touches ? t.touches[0] : t;
2603
- var o = pa(t.clientX, t.clientY);
2604
- if (o) {
2605
- var n = {};
2606
- for (var r in t)
2607
- t.hasOwnProperty(r) && (n[r] = t[r]);
2608
- n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[Y]._onDragOver(n);
2609
- }
2610
- }
2611
- }, ga = function(t) {
2612
- f && f.parentNode[Y]._isOutsideThisEl(t.target);
2613
- };
2614
- function w(e, t) {
2615
- if (!(e && e.nodeType && e.nodeType === 1))
2616
- throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
2617
- this.el = e, this.options = t = ye({}, t), e[Y] = this;
2618
- var o = {
2619
- group: null,
2620
- sort: !0,
2621
- disabled: !1,
2622
- store: null,
2623
- handle: null,
2624
- draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
2625
- swapThreshold: 1,
2626
- // percentage; 0 <= x <= 1
2627
- invertSwap: !1,
2628
- // invert always
2629
- invertedSwapThreshold: null,
2630
- // will be set to same as swapThreshold if default
2631
- removeCloneOnHide: !0,
2632
- direction: function() {
2633
- return Yn(e, this.options);
2634
- },
2635
- ghostClass: "sortable-ghost",
2636
- chosenClass: "sortable-chosen",
2637
- dragClass: "sortable-drag",
2638
- ignore: "a, img",
2639
- filter: null,
2640
- preventOnFilter: !0,
2641
- animation: 0,
2642
- easing: null,
2643
- setData: function(a, s) {
2644
- a.setData("Text", s.textContent);
2645
- },
2646
- dropBubble: !1,
2647
- dragoverBubble: !1,
2648
- dataIdAttr: "data-id",
2649
- delay: 0,
2650
- delayOnTouchOnly: !1,
2651
- touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
2652
- forceFallback: !1,
2653
- fallbackClass: "sortable-fallback",
2654
- fallbackOnBody: !1,
2655
- fallbackTolerance: 0,
2656
- fallbackOffset: {
2657
- x: 0,
2658
- y: 0
2659
- },
2660
- // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
2661
- supportPointer: w.supportPointer !== !1 && "PointerEvent" in window && (!ot || Do),
2662
- emptyInsertThreshold: 5
2663
- };
2664
- mt.initializePlugins(this, e, o);
2665
- for (var n in o)
2666
- !(n in t) && (t[n] = o[n]);
2667
- Gn(t);
2668
- for (var r in this)
2669
- r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
2670
- this.nativeDraggable = t.forceFallback ? !1 : ma, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? D(e, "pointerdown", this._onTapStart) : (D(e, "mousedown", this._onTapStart), D(e, "touchstart", this._onTapStart)), this.nativeDraggable && (D(e, "dragover", this), D(e, "dragenter", this)), Mt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ye(this, la());
2671
- }
2672
- w.prototype = /** @lends Sortable.prototype */
2673
- {
2674
- constructor: w,
2675
- _isOutsideThisEl: function(t) {
2676
- !this.el.contains(t) && t !== this.el && (ze = null);
2677
- },
2678
- _getDirection: function(t, o) {
2679
- return typeof this.options.direction == "function" ? this.options.direction.call(this, t, o, f) : this.options.direction;
2680
- },
2681
- _onTapStart: function(t) {
2682
- if (t.cancelable) {
2683
- var o = this, n = this.el, r = this.options, i = r.preventOnFilter, a = t.type, s = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, u = (s || t).target, l = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || u, d = r.filter;
2684
- if (Da(n), !f && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || r.disabled) && !l.isContentEditable && !(!this.nativeDraggable && ot && u && u.tagName.toUpperCase() === "SELECT") && (u = oe(u, r.draggable, n, !1), !(u && u.animated) && Tt !== u)) {
2685
- if (qe = Q(u), rt = Q(u, r.draggable), typeof d == "function") {
2686
- if (d.call(this, t, u, this)) {
2687
- $({
2688
- sortable: o,
2689
- rootEl: l,
2690
- name: "filter",
2691
- targetEl: u,
2692
- toEl: n,
2693
- fromEl: n
2694
- }), V("filter", o, {
2695
- evt: t
2696
- }), i && t.preventDefault();
2697
- return;
2698
- }
2699
- } else if (d && (d = d.split(",").some(function(c) {
2700
- if (c = oe(l, c.trim(), n, !1), c)
2701
- return $({
2702
- sortable: o,
2703
- rootEl: c,
2704
- name: "filter",
2705
- targetEl: u,
2706
- fromEl: n,
2707
- toEl: n
2708
- }), V("filter", o, {
2709
- evt: t
2710
- }), !0;
2711
- }), d)) {
2712
- i && t.preventDefault();
2713
- return;
2714
- }
2715
- r.handle && !oe(l, r.handle, n, !1) || this._prepareDragStart(t, s, u);
2716
- }
2717
- }
2718
- },
2719
- _prepareDragStart: function(t, o, n) {
2720
- var r = this, i = r.el, a = r.options, s = i.ownerDocument, u;
2721
- if (n && !f && n.parentNode === i) {
2722
- var l = R(n);
2723
- if (P = i, f = n, N = f.parentNode, Me = f.nextSibling, Tt = n, yt = a.group, w.dragged = f, Oe = {
2724
- target: f,
2725
- clientX: (o || t).clientX,
2726
- clientY: (o || t).clientY
2727
- }, nn = Oe.clientX - l.left, rn = Oe.clientY - l.top, this._lastX = (o || t).clientX, this._lastY = (o || t).clientY, f.style["will-change"] = "all", u = function() {
2728
- if (V("delayEnded", r, {
2729
- evt: t
2730
- }), w.eventCanceled) {
2731
- r._onDrop();
2732
- return;
2733
- }
2734
- r._disableDelayedDragEvents(), !Qo && r.nativeDraggable && (f.draggable = !0), r._triggerDragStart(t, o), $({
2735
- sortable: r,
2736
- name: "choose",
2737
- originalEvent: t
2738
- }), X(f, a.chosenClass, !0);
2739
- }, a.ignore.split(",").forEach(function(d) {
2740
- jn(f, d.trim(), Qt);
2741
- }), D(s, "dragover", Ne), D(s, "mousemove", Ne), D(s, "touchmove", Ne), a.supportPointer ? (D(s, "pointerup", r._onDrop), !this.nativeDraggable && D(s, "pointercancel", r._onDrop)) : (D(s, "mouseup", r._onDrop), D(s, "touchend", r._onDrop), D(s, "touchcancel", r._onDrop)), Qo && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), V("delayStart", this, {
2742
- evt: t
2743
- }), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(ft || ve))) {
2744
- if (w.eventCanceled) {
2745
- this._onDrop();
2746
- return;
2747
- }
2748
- a.supportPointer ? (D(s, "pointerup", r._disableDelayedDrag), D(s, "pointercancel", r._disableDelayedDrag)) : (D(s, "mouseup", r._disableDelayedDrag), D(s, "touchend", r._disableDelayedDrag), D(s, "touchcancel", r._disableDelayedDrag)), D(s, "mousemove", r._delayedDragTouchMoveHandler), D(s, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && D(s, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(u, a.delay);
2749
- } else
2750
- u();
2751
- }
2752
- },
2753
- _delayedDragTouchMoveHandler: function(t) {
2754
- var o = t.touches ? t.touches[0] : t;
2755
- Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
2756
- },
2757
- _disableDelayedDrag: function() {
2758
- f && Qt(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
2759
- },
2760
- _disableDelayedDragEvents: function() {
2761
- var t = this.el.ownerDocument;
2762
- S(t, "mouseup", this._disableDelayedDrag), S(t, "touchend", this._disableDelayedDrag), S(t, "touchcancel", this._disableDelayedDrag), S(t, "pointerup", this._disableDelayedDrag), S(t, "pointercancel", this._disableDelayedDrag), S(t, "mousemove", this._delayedDragTouchMoveHandler), S(t, "touchmove", this._delayedDragTouchMoveHandler), S(t, "pointermove", this._delayedDragTouchMoveHandler);
2763
- },
2764
- _triggerDragStart: function(t, o) {
2765
- o = o || t.pointerType == "touch" && t, !this.nativeDraggable || o ? this.options.supportPointer ? D(document, "pointermove", this._onTouchMove) : o ? D(document, "touchmove", this._onTouchMove) : D(document, "mousemove", this._onTouchMove) : (D(f, "dragend", this), D(P, "dragstart", this._onDragStart));
2766
- try {
2767
- document.selection ? kt(function() {
2768
- document.selection.empty();
2769
- }) : window.getSelection().removeAllRanges();
2770
- } catch {
2771
- }
2772
- },
2773
- _dragStarted: function(t, o) {
2774
- if (Ue = !1, P && f) {
2775
- V("dragStarted", this, {
2776
- evt: o
2777
- }), this.nativeDraggable && D(document, "dragover", ga);
2778
- var n = this.options;
2779
- !t && X(f, n.dragClass, !1), X(f, n.ghostClass, !0), w.active = this, t && this._appendGhost(), $({
2780
- sortable: this,
2781
- name: "start",
2782
- originalEvent: o
2783
- });
2784
- } else
2785
- this._nulling();
2786
- },
2787
- _emulateDragOver: function() {
2788
- if (te) {
2789
- this._lastX = te.clientX, this._lastY = te.clientY, Xn();
2790
- for (var t = document.elementFromPoint(te.clientX, te.clientY), o = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(te.clientX, te.clientY), t !== o); )
2791
- o = t;
2792
- if (f.parentNode[Y]._isOutsideThisEl(t), o)
2793
- do {
2794
- if (o[Y]) {
2795
- var n = void 0;
2796
- if (n = o[Y]._onDragOver({
2797
- clientX: te.clientX,
2798
- clientY: te.clientY,
2799
- target: t,
2800
- rootEl: o
2801
- }), n && !this.options.dragoverBubble)
2802
- break;
2803
- }
2804
- t = o;
2805
- } while (o = Un(o));
2806
- Kn();
2807
- }
2808
- },
2809
- _onTouchMove: function(t) {
2810
- if (Oe) {
2811
- var o = this.options, n = o.fallbackTolerance, r = o.fallbackOffset, i = t.touches ? t.touches[0] : t, a = E && $e(E, !0), s = E && a && a.a, u = E && a && a.d, l = bt && j && on(j), d = (i.clientX - Oe.clientX + r.x) / (s || 1) + (l ? l[0] - Zt[0] : 0) / (s || 1), c = (i.clientY - Oe.clientY + r.y) / (u || 1) + (l ? l[1] - Zt[1] : 0) / (u || 1);
2812
- if (!w.active && !Ue) {
2813
- if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n)
2814
- return;
2815
- this._onDragStart(t, !0);
2816
- }
2817
- if (E) {
2818
- a ? (a.e += d - (Kt || 0), a.f += c - (Jt || 0)) : a = {
2819
- a: 1,
2820
- b: 0,
2821
- c: 0,
2822
- d: 1,
2823
- e: d,
2824
- f: c
2825
- };
2826
- var g = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
2827
- b(E, "webkitTransform", g), b(E, "mozTransform", g), b(E, "msTransform", g), b(E, "transform", g), Kt = d, Jt = c, te = i;
2828
- }
2829
- t.cancelable && t.preventDefault();
2830
- }
2831
- },
2832
- _appendGhost: function() {
2833
- if (!E) {
2834
- var t = this.options.fallbackOnBody ? document.body : P, o = R(f, !0, bt, !0, t), n = this.options;
2835
- if (bt) {
2836
- for (j = t; b(j, "position") === "static" && b(j, "transform") === "none" && j !== document; )
2837
- j = j.parentNode;
2838
- j !== document.body && j !== document.documentElement ? (j === document && (j = ue()), o.top += j.scrollTop, o.left += j.scrollLeft) : j = ue(), Zt = on(j);
2839
- }
2840
- E = f.cloneNode(!0), X(E, n.ghostClass, !1), X(E, n.fallbackClass, !0), X(E, n.dragClass, !0), b(E, "transition", ""), b(E, "transform", ""), b(E, "box-sizing", "border-box"), b(E, "margin", 0), b(E, "top", o.top), b(E, "left", o.left), b(E, "width", o.width), b(E, "height", o.height), b(E, "opacity", "0.8"), b(E, "position", bt ? "absolute" : "fixed"), b(E, "zIndex", "100000"), b(E, "pointerEvents", "none"), w.ghost = E, t.appendChild(E), b(E, "transform-origin", nn / parseInt(E.style.width) * 100 + "% " + rn / parseInt(E.style.height) * 100 + "%");
2841
- }
2842
- },
2843
- _onDragStart: function(t, o) {
2844
- var n = this, r = t.dataTransfer, i = n.options;
2845
- if (V("dragStart", this, {
2846
- evt: t
2847
- }), w.eventCanceled) {
2848
- this._onDrop();
2849
- return;
2850
- }
2851
- V("setupClone", this), w.eventCanceled || (_ = Wn(f), _.removeAttribute("id"), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), X(_, this.options.chosenClass, !1), w.clone = _), n.cloneId = kt(function() {
2852
- V("clone", n), !w.eventCanceled && (n.options.removeCloneOnHide || P.insertBefore(_, f), n._hideClone(), $({
2853
- sortable: n,
2854
- name: "clone"
2855
- }));
2856
- }), !o && X(f, i.dragClass, !0), o ? (Nt = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (S(document, "mouseup", n._onDrop), S(document, "touchend", n._onDrop), S(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, f)), D(document, "drop", n), b(f, "transform", "translateZ(0)")), Ue = !0, n._dragStartId = kt(n._dragStarted.bind(n, o, t)), D(document, "selectstart", n), Ze = !0, window.getSelection().removeAllRanges(), ot && b(document.body, "user-select", "none");
2857
- },
2858
- // Returns true - if no further action is needed (either inserted or another condition)
2859
- _onDragOver: function(t) {
2860
- var o = this.el, n = t.target, r, i, a, s = this.options, u = s.group, l = w.active, d = yt === u, c = s.sort, g = z || l, p, v = this, m = !1;
2861
- if (fo) return;
2862
- function h(be, qt) {
2863
- V(be, v, ce({
2864
- evt: t,
2865
- isOwner: d,
2866
- axis: p ? "vertical" : "horizontal",
2867
- revert: a,
2868
- dragRect: r,
2869
- targetRect: i,
2870
- canSort: c,
2871
- fromSortable: g,
2872
- target: n,
2873
- completed: C,
2874
- onMove: function(ht, Ht) {
2875
- return wt(P, o, f, r, ht, R(ht), t, Ht);
2876
- },
2877
- changed: T
2878
- }, qt));
2879
- }
2880
- function x() {
2881
- h("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
2882
- }
2883
- function C(be) {
2884
- return h("dragOverCompleted", {
2885
- insertion: be
2886
- }), be && (d ? l._hideClone() : l._showClone(v), v !== g && (X(f, z ? z.options.ghostClass : l.options.ghostClass, !1), X(f, s.ghostClass, !0)), z !== v && v !== w.active ? z = v : v === w.active && z && (z = null), g === v && (v._ignoreWhileAnimating = n), v.animateAll(function() {
2887
- h("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
2888
- }), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (n === f && !f.animated || n === o && !n.animated) && (ze = null), !s.dragoverBubble && !t.rootEl && n !== document && (f.parentNode[Y]._isOutsideThisEl(t.target), !be && Ne(t)), !s.dragoverBubble && t.stopPropagation && t.stopPropagation(), m = !0;
2889
- }
2890
- function T() {
2891
- J = Q(f), Se = Q(f, s.draggable), $({
2892
- sortable: v,
2893
- name: "change",
2894
- toEl: o,
2895
- newIndex: J,
2896
- newDraggableIndex: Se,
2897
- originalEvent: t
2898
- });
2899
- }
2900
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), n = oe(n, s.draggable, o, !0), h("dragOver"), w.eventCanceled) return m;
2901
- if (f.contains(t.target) || n.animated && n.animatingX && n.animatingY || v._ignoreWhileAnimating === n)
2902
- return C(!1);
2903
- if (Nt = !1, l && !s.disabled && (d ? c || (a = N !== P) : z === this || (this.lastPutMode = yt.checkPull(this, l, f, t)) && u.checkPut(this, l, f, t))) {
2904
- if (p = this._getDirection(t, n) === "vertical", r = R(f), h("dragOverValid"), w.eventCanceled) return m;
2905
- if (a)
2906
- return N = P, x(), this._hideClone(), h("revert"), w.eventCanceled || (Me ? P.insertBefore(f, Me) : P.appendChild(f)), C(!0);
2907
- var I = To(o, s.draggable);
2908
- if (!I || wa(t, p, this) && !I.animated) {
2909
- if (I === f)
2910
- return C(!1);
2911
- if (I && o === t.target && (n = I), n && (i = R(n)), wt(P, o, f, r, n, i, t, !!n) !== !1)
2912
- return x(), I && I.nextSibling ? o.insertBefore(f, I.nextSibling) : o.appendChild(f), N = o, T(), C(!0);
2913
- } else if (I && ba(t, p, this)) {
2914
- var ne = Ge(o, 0, s, !0);
2915
- if (ne === f)
2916
- return C(!1);
2917
- if (n = ne, i = R(n), wt(P, o, f, r, n, i, t, !1) !== !1)
2918
- return x(), o.insertBefore(f, ne), N = o, T(), C(!0);
2919
- } else if (n.parentNode === o) {
2920
- i = R(n);
2921
- var G = 0, de, Ie = f.parentNode !== o, H = !ha(f.animated && f.toRect || r, n.animated && n.toRect || i, p), Fe = p ? "top" : "left", re = tn(n, "top", "top") || tn(f, "top", "top"), Pe = re ? re.scrollTop : void 0;
2922
- ze !== n && (de = i[Fe], at = !1, vt = !H && s.invertSwap || Ie), G = Ea(t, n, i, p, H ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, vt, ze === n);
2923
- var U;
2924
- if (G !== 0) {
2925
- var fe = Q(f);
2926
- do
2927
- fe -= G, U = N.children[fe];
2928
- while (U && (b(U, "display") === "none" || U === E));
2929
- }
2930
- if (G === 0 || U === n)
2931
- return C(!1);
2932
- ze = n, it = G;
2933
- var me = n.nextElementSibling, ie = !1;
2934
- ie = G === 1;
2935
- var Ke = wt(P, o, f, r, n, i, t, ie);
2936
- if (Ke !== !1)
2937
- return (Ke === 1 || Ke === -1) && (ie = Ke === 1), fo = !0, setTimeout(va, 30), x(), ie && !me ? o.appendChild(f) : n.parentNode.insertBefore(f, ie ? me : n), re && Hn(re, 0, Pe - re.scrollTop), N = f.parentNode, de !== void 0 && !vt && (xt = Math.abs(de - R(n)[Fe])), T(), C(!0);
2938
- }
2939
- if (o.contains(f))
2940
- return C(!1);
2941
- }
2942
- return !1;
2943
- },
2944
- _ignoreWhileAnimating: null,
2945
- _offMoveEvents: function() {
2946
- S(document, "mousemove", this._onTouchMove), S(document, "touchmove", this._onTouchMove), S(document, "pointermove", this._onTouchMove), S(document, "dragover", Ne), S(document, "mousemove", Ne), S(document, "touchmove", Ne);
2947
- },
2948
- _offUpEvents: function() {
2949
- var t = this.el.ownerDocument;
2950
- S(t, "mouseup", this._onDrop), S(t, "touchend", this._onDrop), S(t, "pointerup", this._onDrop), S(t, "pointercancel", this._onDrop), S(t, "touchcancel", this._onDrop), S(document, "selectstart", this);
2951
- },
2952
- _onDrop: function(t) {
2953
- var o = this.el, n = this.options;
2954
- if (J = Q(f), Se = Q(f, n.draggable), V("drop", this, {
2955
- evt: t
2956
- }), N = f && f.parentNode, J = Q(f), Se = Q(f, n.draggable), w.eventCanceled) {
2957
- this._nulling();
2958
- return;
2959
- }
2960
- Ue = !1, vt = !1, at = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), mo(this.cloneId), mo(this._dragStartId), this.nativeDraggable && (S(document, "drop", this), S(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), ot && b(document.body, "user-select", ""), b(f, "transform", ""), t && (Ze && (t.cancelable && t.preventDefault(), !n.dropBubble && t.stopPropagation()), E && E.parentNode && E.parentNode.removeChild(E), (P === N || z && z.lastPutMode !== "clone") && _ && _.parentNode && _.parentNode.removeChild(_), f && (this.nativeDraggable && S(f, "dragend", this), Qt(f), f.style["will-change"] = "", Ze && !Ue && X(f, z ? z.options.ghostClass : this.options.ghostClass, !1), X(f, this.options.chosenClass, !1), $({
2961
- sortable: this,
2962
- name: "unchoose",
2963
- toEl: N,
2964
- newIndex: null,
2965
- newDraggableIndex: null,
2966
- originalEvent: t
2967
- }), P !== N ? (J >= 0 && ($({
2968
- rootEl: N,
2969
- name: "add",
2970
- toEl: N,
2971
- fromEl: P,
2972
- originalEvent: t
2973
- }), $({
2974
- sortable: this,
2975
- name: "remove",
2976
- toEl: N,
2977
- originalEvent: t
2978
- }), $({
2979
- rootEl: N,
2980
- name: "sort",
2981
- toEl: N,
2982
- fromEl: P,
2983
- originalEvent: t
2984
- }), $({
2985
- sortable: this,
2986
- name: "sort",
2987
- toEl: N,
2988
- originalEvent: t
2989
- })), z && z.save()) : J !== qe && J >= 0 && ($({
2990
- sortable: this,
2991
- name: "update",
2992
- toEl: N,
2993
- originalEvent: t
2994
- }), $({
2995
- sortable: this,
2996
- name: "sort",
2997
- toEl: N,
2998
- originalEvent: t
2999
- })), w.active && ((J == null || J === -1) && (J = qe, Se = rt), $({
3000
- sortable: this,
3001
- name: "end",
3002
- toEl: N,
3003
- originalEvent: t
3004
- }), this.save()))), this._nulling();
3005
- },
3006
- _nulling: function() {
3007
- V("nulling", this), P = f = N = E = Me = _ = Tt = De = Oe = te = Ze = J = Se = qe = rt = ze = it = z = yt = w.dragged = w.ghost = w.clone = w.active = null, Rt.forEach(function(t) {
3008
- t.checked = !0;
3009
- }), Rt.length = Kt = Jt = 0;
3010
- },
3011
- handleEvent: function(t) {
3012
- switch (t.type) {
3013
- case "drop":
3014
- case "dragend":
3015
- this._onDrop(t);
3016
- break;
3017
- case "dragenter":
3018
- case "dragover":
3019
- f && (this._onDragOver(t), ya(t));
3020
- break;
3021
- case "selectstart":
3022
- t.preventDefault();
3023
- break;
3024
- }
3025
- },
3026
- /**
3027
- * Serializes the item into an array of string.
3028
- * @returns {String[]}
3029
- */
3030
- toArray: function() {
3031
- for (var t = [], o, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++)
3032
- o = n[r], oe(o, a.draggable, this.el, !1) && t.push(o.getAttribute(a.dataIdAttr) || Sa(o));
3033
- return t;
3034
- },
3035
- /**
3036
- * Sorts the elements according to the array.
3037
- * @param {String[]} order order of the items
3038
- */
3039
- sort: function(t, o) {
3040
- var n = {}, r = this.el;
3041
- this.toArray().forEach(function(i, a) {
3042
- var s = r.children[a];
3043
- oe(s, this.options.draggable, r, !1) && (n[i] = s);
3044
- }, this), o && this.captureAnimationState(), t.forEach(function(i) {
3045
- n[i] && (r.removeChild(n[i]), r.appendChild(n[i]));
3046
- }), o && this.animateAll();
3047
- },
3048
- /**
3049
- * Save the current sorting
3050
- */
3051
- save: function() {
3052
- var t = this.options.store;
3053
- t && t.set && t.set(this);
3054
- },
3055
- /**
3056
- * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
3057
- * @param {HTMLElement} el
3058
- * @param {String} [selector] default: `options.draggable`
3059
- * @returns {HTMLElement|null}
3060
- */
3061
- closest: function(t, o) {
3062
- return oe(t, o || this.options.draggable, this.el, !1);
3063
- },
3064
- /**
3065
- * Set/get option
3066
- * @param {string} name
3067
- * @param {*} [value]
3068
- * @returns {*}
3069
- */
3070
- option: function(t, o) {
3071
- var n = this.options;
3072
- if (o === void 0)
3073
- return n[t];
3074
- var r = mt.modifyOption(this, t, o);
3075
- typeof r < "u" ? n[t] = r : n[t] = o, t === "group" && Gn(n);
3076
- },
3077
- /**
3078
- * Destroy
3079
- */
3080
- destroy: function() {
3081
- V("destroy", this);
3082
- var t = this.el;
3083
- t[Y] = null, S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart), S(t, "pointerdown", this._onTapStart), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(o) {
3084
- o.removeAttribute("draggable");
3085
- }), this._onDrop(), this._disableDelayedDragEvents(), Mt.splice(Mt.indexOf(this.el), 1), this.el = t = null;
3086
- },
3087
- _hideClone: function() {
3088
- if (!De) {
3089
- if (V("hideClone", this), w.eventCanceled) return;
3090
- b(_, "display", "none"), this.options.removeCloneOnHide && _.parentNode && _.parentNode.removeChild(_), De = !0;
3091
- }
3092
- },
3093
- _showClone: function(t) {
3094
- if (t.lastPutMode !== "clone") {
3095
- this._hideClone();
3096
- return;
3097
- }
3098
- if (De) {
3099
- if (V("showClone", this), w.eventCanceled) return;
3100
- f.parentNode == P && !this.options.group.revertClone ? P.insertBefore(_, f) : Me ? P.insertBefore(_, Me) : P.appendChild(_), this.options.group.revertClone && this.animate(f, _), b(_, "display", ""), De = !1;
3101
- }
3102
- }
3103
- };
3104
- function ya(e) {
3105
- e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
3106
- }
3107
- function wt(e, t, o, n, r, i, a, s) {
3108
- var u, l = e[Y], d = l.options.onMove, c;
3109
- return window.CustomEvent && !ve && !ft ? u = new CustomEvent("move", {
3110
- bubbles: !0,
3111
- cancelable: !0
3112
- }) : (u = document.createEvent("Event"), u.initEvent("move", !0, !0)), u.to = t, u.from = e, u.dragged = o, u.draggedRect = n, u.related = r || t, u.relatedRect = i || R(t), u.willInsertAfter = s, u.originalEvent = a, e.dispatchEvent(u), d && (c = d.call(l, u, a)), c;
3113
- }
3114
- function Qt(e) {
3115
- e.draggable = !1;
3116
- }
3117
- function va() {
3118
- fo = !1;
3119
- }
3120
- function ba(e, t, o) {
3121
- var n = R(Ge(o.el, 0, o.options, !0)), r = $n(o.el, o.options, E), i = 10;
3122
- return t ? e.clientX < r.left - i || e.clientY < n.top && e.clientX < n.right : e.clientY < r.top - i || e.clientY < n.bottom && e.clientX < n.left;
3123
- }
3124
- function wa(e, t, o) {
3125
- var n = R(To(o.el, o.options.draggable)), r = $n(o.el, o.options, E), i = 10;
3126
- return t ? e.clientX > r.right + i || e.clientY > n.bottom && e.clientX > n.left : e.clientY > r.bottom + i || e.clientX > n.right && e.clientY > n.top;
3127
- }
3128
- function Ea(e, t, o, n, r, i, a, s) {
3129
- var u = n ? e.clientY : e.clientX, l = n ? o.height : o.width, d = n ? o.top : o.left, c = n ? o.bottom : o.right, g = !1;
3130
- if (!a) {
3131
- if (s && xt < l * r) {
3132
- if (!at && (it === 1 ? u > d + l * i / 2 : u < c - l * i / 2) && (at = !0), at)
3133
- g = !0;
3134
- else if (it === 1 ? u < d + xt : u > c - xt)
3135
- return -it;
3136
- } else if (u > d + l * (1 - r) / 2 && u < c - l * (1 - r) / 2)
3137
- return Ca(t);
3138
- }
3139
- return g = g || a, g && (u < d + l * i / 2 || u > c - l * i / 2) ? u > d + l / 2 ? 1 : -1 : 0;
3140
- }
3141
- function Ca(e) {
3142
- return Q(f) < Q(e) ? 1 : -1;
3143
- }
3144
- function Sa(e) {
3145
- for (var t = e.tagName + e.className + e.src + e.href + e.textContent, o = t.length, n = 0; o--; )
3146
- n += t.charCodeAt(o);
3147
- return n.toString(36);
3148
- }
3149
- function Da(e) {
3150
- Rt.length = 0;
3151
- for (var t = e.getElementsByTagName("input"), o = t.length; o--; ) {
3152
- var n = t[o];
3153
- n.checked && Rt.push(n);
3154
- }
3155
- }
3156
- function kt(e) {
3157
- return setTimeout(e, 0);
3158
- }
3159
- function mo(e) {
3160
- return clearTimeout(e);
3161
- }
3162
- jt && D(document, "touchmove", function(e) {
3163
- (w.active || Ue) && e.cancelable && e.preventDefault();
3164
- });
3165
- w.utils = {
3166
- on: D,
3167
- off: S,
3168
- css: b,
3169
- find: jn,
3170
- is: function(t, o) {
3171
- return !!oe(t, o, t, !1);
3172
- },
3173
- extend: aa,
3174
- throttle: qn,
3175
- closest: oe,
3176
- toggleClass: X,
3177
- clone: Wn,
3178
- index: Q,
3179
- nextTick: kt,
3180
- cancelNextTick: mo,
3181
- detectDirection: Yn,
3182
- getChild: Ge,
3183
- expando: Y
3184
- };
3185
- w.get = function(e) {
3186
- return e[Y];
3187
- };
3188
- w.mount = function() {
3189
- for (var e = arguments.length, t = new Array(e), o = 0; o < e; o++)
3190
- t[o] = arguments[o];
3191
- t[0].constructor === Array && (t = t[0]), t.forEach(function(n) {
3192
- if (!n.prototype || !n.prototype.constructor)
3193
- throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
3194
- n.utils && (w.utils = ce(ce({}, w.utils), n.utils)), mt.mount(n);
3195
- });
3196
- };
3197
- w.create = function(e, t) {
3198
- return new w(e, t);
3199
- };
3200
- w.version = ra;
3201
- var M = [], Qe, ho, po = !1, eo, to, At, et;
3202
- function Ta() {
3203
- function e() {
3204
- this.defaults = {
3205
- scroll: !0,
3206
- forceAutoScrollFallback: !1,
3207
- scrollSensitivity: 30,
3208
- scrollSpeed: 10,
3209
- bubbleScroll: !0
3210
- };
3211
- for (var t in this)
3212
- t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
3213
- }
3214
- return e.prototype = {
3215
- dragStarted: function(o) {
3216
- var n = o.originalEvent;
3217
- this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? D(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? D(document, "touchmove", this._handleFallbackAutoScroll) : D(document, "mousemove", this._handleFallbackAutoScroll);
3218
- },
3219
- dragOverCompleted: function(o) {
3220
- var n = o.originalEvent;
3221
- !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
3222
- },
3223
- drop: function() {
3224
- this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : (S(document, "pointermove", this._handleFallbackAutoScroll), S(document, "touchmove", this._handleFallbackAutoScroll), S(document, "mousemove", this._handleFallbackAutoScroll)), sn(), It(), sa();
3225
- },
3226
- nulling: function() {
3227
- At = ho = Qe = po = et = eo = to = null, M.length = 0;
3228
- },
3229
- _handleFallbackAutoScroll: function(o) {
3230
- this._handleAutoScroll(o, !0);
3231
- },
3232
- _handleAutoScroll: function(o, n) {
3233
- var r = this, i = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, s = document.elementFromPoint(i, a);
3234
- if (At = o, n || this.options.forceAutoScrollFallback || ft || ve || ot) {
3235
- oo(o, this.options, s, n);
3236
- var u = xe(s, !0);
3237
- po && (!et || i !== eo || a !== to) && (et && sn(), et = setInterval(function() {
3238
- var l = xe(document.elementFromPoint(i, a), !0);
3239
- l !== u && (u = l, It()), oo(o, r.options, l, n);
3240
- }, 10), eo = i, to = a);
3241
- } else {
3242
- if (!this.options.bubbleScroll || xe(s, !0) === ue()) {
3243
- It();
3244
- return;
3245
- }
3246
- oo(o, this.options, xe(s, !1), !1);
3247
- }
3248
- }
3249
- }, ye(e, {
3250
- pluginName: "scroll",
3251
- initializeByDefault: !0
3252
- });
3253
- }
3254
- function It() {
3255
- M.forEach(function(e) {
3256
- clearInterval(e.pid);
3257
- }), M = [];
3258
- }
3259
- function sn() {
3260
- clearInterval(et);
3261
- }
3262
- var oo = qn(function(e, t, o, n) {
3263
- if (t.scroll) {
3264
- var r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, s = t.scrollSpeed, u = ue(), l = !1, d;
3265
- ho !== o && (ho = o, It(), Qe = t.scroll, d = t.scrollFn, Qe === !0 && (Qe = xe(o, !0)));
3266
- var c = 0, g = Qe;
3267
- do {
3268
- var p = g, v = R(p), m = v.top, h = v.bottom, x = v.left, C = v.right, T = v.width, I = v.height, ne = void 0, G = void 0, de = p.scrollWidth, Ie = p.scrollHeight, H = b(p), Fe = p.scrollLeft, re = p.scrollTop;
3269
- p === u ? (ne = T < de && (H.overflowX === "auto" || H.overflowX === "scroll" || H.overflowX === "visible"), G = I < Ie && (H.overflowY === "auto" || H.overflowY === "scroll" || H.overflowY === "visible")) : (ne = T < de && (H.overflowX === "auto" || H.overflowX === "scroll"), G = I < Ie && (H.overflowY === "auto" || H.overflowY === "scroll"));
3270
- var Pe = ne && (Math.abs(C - r) <= a && Fe + T < de) - (Math.abs(x - r) <= a && !!Fe), U = G && (Math.abs(h - i) <= a && re + I < Ie) - (Math.abs(m - i) <= a && !!re);
3271
- if (!M[c])
3272
- for (var fe = 0; fe <= c; fe++)
3273
- M[fe] || (M[fe] = {});
3274
- (M[c].vx != Pe || M[c].vy != U || M[c].el !== p) && (M[c].el = p, M[c].vx = Pe, M[c].vy = U, clearInterval(M[c].pid), (Pe != 0 || U != 0) && (l = !0, M[c].pid = setInterval((function() {
3275
- n && this.layer === 0 && w.active._onTouchMove(At);
3276
- var me = M[this.layer].vy ? M[this.layer].vy * s : 0, ie = M[this.layer].vx ? M[this.layer].vx * s : 0;
3277
- typeof d == "function" && d.call(w.dragged.parentNode[Y], ie, me, e, At, M[this.layer].el) !== "continue" || Hn(M[this.layer].el, ie, me);
3278
- }).bind({
3279
- layer: c
3280
- }), 24))), c++;
3281
- } while (t.bubbleScroll && g !== u && (g = xe(g, !1)));
3282
- po = l;
3283
- }
3284
- }, 30), Jn = function(t) {
3285
- var o = t.originalEvent, n = t.putSortable, r = t.dragEl, i = t.activeSortable, a = t.dispatchSortableEvent, s = t.hideGhostForTarget, u = t.unhideGhostForTarget;
3286
- if (o) {
3287
- var l = n || i;
3288
- s();
3289
- var d = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(d.clientX, d.clientY);
3290
- u(), l && !l.el.contains(c) && (a("spill"), this.onSpill({
3291
- dragEl: r,
3292
- putSortable: n
3293
- }));
3294
- }
3295
- };
3296
- function xo() {
3297
- }
3298
- xo.prototype = {
3299
- startIndex: null,
3300
- dragStart: function(t) {
3301
- var o = t.oldDraggableIndex;
3302
- this.startIndex = o;
3303
- },
3304
- onSpill: function(t) {
3305
- var o = t.dragEl, n = t.putSortable;
3306
- this.sortable.captureAnimationState(), n && n.captureAnimationState();
3307
- var r = Ge(this.sortable.el, this.startIndex, this.options);
3308
- r ? this.sortable.el.insertBefore(o, r) : this.sortable.el.appendChild(o), this.sortable.animateAll(), n && n.animateAll();
3309
- },
3310
- drop: Jn
3311
- };
3312
- ye(xo, {
3313
- pluginName: "revertOnSpill"
3314
- });
3315
- function ko() {
3316
- }
3317
- ko.prototype = {
3318
- onSpill: function(t) {
3319
- var o = t.dragEl, n = t.putSortable, r = n || this.sortable;
3320
- r.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), r.animateAll();
3321
- },
3322
- drop: Jn
3323
- };
3324
- ye(ko, {
3325
- pluginName: "removeOnSpill"
3326
- });
3327
- w.mount(new Ta());
3328
- w.mount(ko, xo);
3329
- const xa = "kSysConfig", ln = "kCookies_param", no = O.getItem(xa), Zn = (e, t) => (e.forEach((o) => {
3330
- var n;
3331
- o.auth = t && t[o.code] || o.auth, o.name ? (no == null ? void 0 : no.i18nEnabled) === "Y" && !o.name.startsWith("message.") && (o.name = `message.btn.${o.name}`) : o.name = `message.btn.${o.code}`, (n = o.dropdowns) != null && n.length && Zn(o.dropdowns, t);
3332
- }), e), ka = (e, t, o) => {
3333
- const n = { pageNum: 1, pageSize: 1e5 }, r = Io();
3334
- Object.assign(n, o, r, e.defaultParams || {});
3335
- let i = Qn(n, e.items);
3336
- i = er(i, e.items);
3337
- const { url: a } = e;
3338
- if (!a) return null;
3339
- const s = Ye(a) ? a : a.fetch || a.restful;
3340
- if (!s) return null;
3341
- const u = a.fetch ? "post" : "get";
3342
- return new Promise((l, d) => {
3343
- t[u](s, i).then((c) => {
3344
- l(c.list);
3345
- }).catch((c) => {
3346
- d(c);
3347
- });
3348
- });
3349
- }, Ia = (e, t, o, n, r, i) => {
3350
- if (i) return Ba();
3351
- for (const g in t)
3352
- t[g] && Ye(t[g]) && (t[g] = t[g].trim());
3353
- const a = { pageNum: o.currentPage, pageSize: o.pageSize }, s = Io();
3354
- Object.assign(a, s, e.defaultParams || {}, t);
3355
- let u = Qn(a, e.items);
3356
- u = er(u, e.items);
3357
- const { url: l } = e;
3358
- if (!l) return null;
3359
- const d = Ye(l) ? l : l.fetch || l.restful, c = l.fetch ? "post" : "get";
3360
- return d ? n[c](d, u) : null;
3361
- }, Fa = (e, t, o) => {
3362
- const { url: n } = o;
3363
- if (!n) return null;
3364
- const r = Ye(n) ? n : n.del || n.restful;
3365
- if (!r) return null;
3366
- const i = n.del ? "post" : "delete";
3367
- return e[i](r, t);
3368
- }, Pa = (e, t, o) => {
3369
- const n = [], { url: r } = o;
3370
- if (!r) return null;
3371
- const { insertRecords: i, updateRecords: a } = t;
3372
- if (!He(i)) {
3373
- const s = Io();
3374
- i.forEach((l) => {
3375
- var d;
3376
- !He(o == null ? void 0 : o.defaultValue) && Object.assign(l, o.defaultValue), (d = Object.keys(s)) == null || d.forEach((c) => {
3377
- l[c] = l[c] || s[c];
3378
- });
3379
- });
3380
- const u = Ye(r) ? r : r.add || r.restful;
3381
- u && n.push(e.post(u, i));
3382
- }
3383
- if (!He(a)) {
3384
- const s = Ye(r) ? r : r.save || r.restful, u = r.save ? "post" : "put";
3385
- s && n.push(e[u](s, a));
3386
- }
3387
- return n;
3388
- }, Qn = (e, t) => {
3389
- const o = t.filter((r) => {
3390
- var i, a;
3391
- return ((a = (i = r.itemRender) == null ? void 0 : i.props) == null ? void 0 : a.multiple) || r.multiple;
3392
- });
3393
- if (He(o)) return e;
3394
- const n = ee(e, !0);
3395
- return o.forEach((r) => {
3396
- r.itemRender.name === "#select" && delete n[`_${r.field}`];
3397
- }), n;
3398
- }, un = "yyyy-MM-dd 00:00:00", cn = "yyyy-MM-dd 23:59:59", er = (e, t) => {
3399
- const o = t.filter((r) => {
3400
- var i;
3401
- return ["#SuDateRange", "VxeDateRangePicker"].includes((i = r.itemRender) == null ? void 0 : i.name);
3402
- });
3403
- if (He(o)) return e;
3404
- const n = ee(e, !0);
3405
- return o.forEach((r) => {
3406
- const i = n[r.field];
3407
- i && r.itemRender.startField ? (n[r.itemRender.startField] = L(n[r.itemRender.startField], un), n[r.itemRender.endField] = L(n[r.itemRender.endField], cn)) : i && (n[`${r.field}From`] = L(i[0], un), n[`${r.field}To`] = L(i[1], cn)), delete n[r.field];
3408
- }), n;
3409
- }, Io = () => Ae.get(ln) ? JSON.parse(Ae.get(ln)) : {}, _a = [
3410
- {
3411
- code: "insert_actived",
3412
- name: "add",
3413
- status: "u-cyan",
3414
- icon: "vxe-icon-add",
3415
- auth: "add",
3416
- sort: 1
3417
- },
3418
- {
3419
- code: "delete",
3420
- status: "danger",
3421
- icon: "vxe-icon-delete",
3422
- auth: "del",
3423
- sort: 2
3424
- },
3425
- {
3426
- code: "save",
3427
- status: "primary",
3428
- icon: "vxe-icon-save",
3429
- auth: "edit",
3430
- sort: 3
3431
- }
3432
- ], Oa = [
3433
- {
3434
- code: "add",
3435
- status: "u-cyan",
3436
- icon: "vxe-icon-add",
3437
- auth: "add",
3438
- sort: 1
3439
- },
3440
- {
3441
- code: "del",
3442
- status: "danger",
3443
- icon: "vxe-icon-delete",
3444
- auth: "del",
3445
- sort: 2
3446
- }
3447
- ], Na = [
3448
- { field: "createdByName", width: 90, visible: !1 },
3449
- { field: "creationDate", width: 140, visible: !1 },
3450
- { field: "lastUpdatedByName", width: 90, visible: !1 },
3451
- { field: "lastUpdateDate", width: 140, visible: !1 }
3452
- ], dn = (e) => Mr(e.exportConfig) ? e.exportConfig : {
3453
- filename: e.fileName || "导出明细",
3454
- type: "xlsx",
3455
- types: ["xlsx", "csv"],
3456
- modes: ["current", "selected", "all"],
3457
- useStyle: !0,
3458
- sheetMethod: ({ worksheet: t }) => e.onSheetMethod ? e.onSheetMethod(t) : La(t),
3459
- columnFilterMethod: ({ column: t }) => e.columnFilter ? !!e.columnFilter(t) : !["operate"].includes(t.field) && t.type !== "checkbox"
3460
- }, Ma = (e, t, o, n) => {
3461
- const r = {
3462
- icon: "ri-refresh-line",
3463
- iconLoading: "vxe-icon-spinner roll vxe-loading--default-icon"
3464
- };
3465
- if (!t.editable) {
3466
- e.editConfig.editable = t.editable;
3467
- const d = t.needExport && n("export");
3468
- return d && (e.exportConfig = dn(o)), e.toolbarConfig = {
3469
- buttons: [],
3470
- enabled: d,
3471
- refreshOptions: r,
3472
- exportOptions: { icon: "ri-download-2-line", code: "export" },
3473
- export: d,
3474
- custom: !!o.gridId,
3475
- refresh: !0,
3476
- perfect: !0
3477
- }, e;
3478
- }
3479
- let i = ee(o.buttons || [], !0);
3480
- i.forEach((d, c) => {
3481
- d.sort = d.sort || c + 10;
3482
- }), (o.mode !== "form" ? ee(_a, !0) : ee(Oa, !0)).reverse().forEach((d) => {
3483
- !i.some((c) => c.code === d.code) && i.unshift(d), o.authPrefix && !["printer", "export"].includes(d.auth) && (d.auth = o.authPrefix + d.auth.slice(0, 1).toLocaleUpperCase() + d.auth.slice(1).toLocaleLowerCase());
3484
- }), i = Zn(i, t.auth).filter((d) => {
3485
- var g;
3486
- const c = d.auth ? n(d.auth) : !0;
3487
- return (g = d.dropdowns) != null && g.length && (d.dropdowns = d.dropdowns.filter((p) => !p.auth || p.auth && n(p.auth))), c;
3488
- });
3489
- const s = { trigger: "dblclick", mode: "row", showStatus: !0 };
3490
- e.editConfig = o.mode !== "form" ? s : { enabled: !1 };
3491
- const u = t.needExport && n("export");
3492
- let l = null;
3493
- return u && (e.exportConfig = dn(o), l = { icon: "ri-download-2-line", code: "export" }), e.toolbarConfig = {
3494
- buttons: Nr(i, "sort"),
3495
- enabled: !0,
3496
- refreshOptions: r,
3497
- customOptions: o.gridId ? {} : null,
3498
- exportOptions: l,
3499
- custom: !!o.gridId,
3500
- export: u,
3501
- refresh: !0,
3502
- perfect: !0
3503
- }, e;
3504
- }, Ra = ({ columns: e, data: t }, o) => [
3505
- e.map((n, r) => {
3506
- var i;
3507
- if (r === (o.index || 0))
3508
- return o.label || "合计";
3509
- if ((i = o.fields) != null && i.includes(n.property)) {
3510
- const a = t.reduce((s, u) => s + Number(u[n.property] || 0), 0);
3511
- return a && Number(a.toFixed(o.decimal || 2));
3512
- }
3513
- return "";
3514
- })
3515
- ], Aa = (e, t) => Or(t.checkMethod) ? t.checkMethod(e) : !0, La = (e) => {
3516
- e.eachRow((t, o) => {
3517
- t.font = { name: "微软雅黑", size: 9 }, t.border = {
3518
- top: { style: "thin" },
3519
- left: { style: "thin" },
3520
- bottom: { style: "thin" },
3521
- right: { style: "thin" }
3522
- }, o === 1 && (t.fill = {
3523
- type: "pattern",
3524
- pattern: "solid",
3525
- fgColor: { argb: "4F81BD" }
3526
- }, t.font = {
3527
- name: "微软雅黑",
3528
- size: 10,
3529
- bold: !0,
3530
- color: { argb: "FFFFFFFF" }
3531
- });
3532
- });
3533
- }, Ba = () => new Promise((e) => {
3534
- setTimeout(() => {
3535
- e({ list: [
3536
- { id: 1, name: "Test1", sex: "Man", age: 28, address: "Shenzhen" },
3537
- { id: 2, name: "Test2", sex: "Women", age: 22, address: "Guangzhou" },
3538
- { id: 3, name: "Test3", sex: "Man", age: 32, address: "Shanghai" },
3539
- { id: 4, name: "Test4", sex: "Women", age: 23, address: "test abc" },
3540
- { id: 5, name: "Test5", sex: "Women", age: 30, address: "Shanghai" }
3541
- ], total: 5 });
3542
- }, 100);
3543
- }), za = (e) => {
3544
- const t = {};
3545
- return Object.keys(e).forEach((o) => {
3546
- const n = o.replace(/-(\w)/g, (r) => r.slice(1).toUpperCase());
3547
- t[n] = e[o];
3548
- }), t;
3549
- }, Ua = { style: { width: "100%", height: "100%" } }, fn = "U_TABLE_COLUMNN_SORT", ja = /* @__PURE__ */ ke({
3550
- name: "UtGrid",
3551
- __name: "index",
3552
- props: {
3553
- checkMethod: {},
3554
- serviceCode: { default: () => ({}) },
3555
- defaultValue: {},
3556
- defaultParams: {},
3557
- url: {},
3558
- columns: { default: () => [] },
3559
- items: { default: () => [] },
3560
- editable: { type: Boolean, default: !0 },
3561
- needExport: { type: Boolean, default: !0 },
3562
- autoLoad: { type: Boolean, default: !0 }
3563
- },
3564
- emits: ["buttonClick", "cellClick", "cellDbclick", "editEctivated"],
3565
- setup(e, { expose: t, emit: o }) {
3566
- const n = za(lr());
3567
- let r;
3568
- const i = {}, a = ur(), s = a.appContext.config.globalProperties.$hasAuthority, u = a.appContext.config.globalProperties.$serviceApi, l = a.parent.type.name, d = a.appContext.config.globalProperties.$mode, c = e, { t: g } = Bt(), p = Re(null), v = Re(!1), m = {
3569
- icon: "vxe-icon-setting",
3570
- name: "favorite",
3571
- events: {
3572
- click: (y, F) => {
3573
- F.name === "favorite" && (v.value = !0);
3574
- }
3575
- }
3576
- }, h = () => c.columns.length ? lo(c.columns, g) : {}, x = () => {
3577
- const y = c.columns;
3578
- if (n.gridId) {
3579
- const k = Na.filter((A) => !y.some((we) => we.field === A.field)).map((A) => (n.format && ["lastUpdateDate", "creationDate"].includes(A.field) && (A.formatter = n.format, A.width = 90), A)), W = y.findIndex((A) => A.field === "operate");
3580
- W !== -1 ? y.splice(W, 0, ...k) : y.push(...k);
3581
- }
3582
- const F = n.gridId ? I(y) : y;
3583
- return Cr(F, n.sortable);
3584
- };
3585
- tt.getItem(fn).then((y) => {
3586
- r = y, C.columns = x();
3587
- });
3588
- const C = cr({
3589
- border: !0,
3590
- pagerConfig: { pageSize: n.pageSize || 20 },
3591
- editConfig: {},
3592
- editRules: h(),
3593
- formConfig: {},
3594
- columnConfig: { useKey: !0 },
3595
- toolbarConfig: { enabled: !1 },
3596
- sortConfig: { multiple: !0, trigger: "cell" },
3597
- height: d ? void 0 : window.innerHeight - 92,
3598
- checkboxConfig: {
3599
- checkMethod: ({ row: y }) => Aa(y, c),
3600
- checkRowKeys: c.checkRowKeys
3601
- },
3602
- loading: !1,
3603
- footerRowClassName: "ut-grid-footer",
3604
- proxyConfig: {
3605
- form: !0,
3606
- // 查询是需要启用表单代理
3607
- autoLoad: c.autoLoad,
3608
- showResponseMsgvxe: !1,
3609
- showActionMsgvxe: !1,
3610
- // 接收 Promise
3611
- ajax: {
3612
- queryAll: ({ form: y }) => ka(c, u, y),
3613
- query: ({ page: y, form: F, code: k }) => Ia(c, F, y, u, k, d),
3614
- delete: ({ body: { removeRecords: y } }) => Fa(u, y, c),
3615
- save: ({ body: y }) => Promise.all(Pa(u, y, c)),
3616
- querySuccess: ({ response: y }) => U("querySuccess", y),
3617
- queryError: ({ response: y }) => U("queryError", y),
3618
- deleteSuccess: ({ response: y }) => U("deleteSuccess", y),
3619
- deleteError: ({ response: y }) => U("deleteError", y),
3620
- saveSuccess: ({ response: y }) => U("saveSuccess", y),
3621
- saveError: ({ response: y }) => U("saveError", y)
3622
- }
3623
- },
3624
- columns: n.gridId ? [] : x(),
3625
- ...n
3626
- }), T = () => c.items.length ? Dr(ee(c.items, !0), l && c.url ? m : l) : c.items;
3627
- function I(y) {
3628
- const F = r ? r[n.gridId] : {};
3629
- return F ? y.map((k, W) => {
3630
- const A = (W + 1) * 10;
3631
- return k._sort = F[k.field] || A, i[k.field] = k._sort, k;
3632
- }).sort((k, W) => k._sort - W._sort) : y;
3633
- }
3634
- const ne = () => {
3635
- c.items.length && (C.formConfig = {
3636
- titleWidth: 100,
3637
- titleAlign: "right",
3638
- items: T(),
3639
- rules: lo(c.items, g),
3640
- validConfig: { showMessage: !1 }
3641
- });
3642
- const y = Ma(C, c, n, s);
3643
- Object.assign(C, y), n.gridId && (C.id = n.gridId, C.customConfig = {
3644
- storage: !0,
3645
- mode: "popup",
3646
- checkMethod({ column: F }) {
3647
- return !(F.field === "operate" || ["checkbox", "radio"].includes(F.type));
3648
- },
3649
- modalOptions: {
3650
- width: 750,
3651
- height: "75%"
3652
- }
3653
- }), n.mergeFooter && (C.showFooter = !0, C.footerMethod = ({ columns: F, data: k }) => Ra({ columns: F, data: k }, n.mergeFooter));
3654
- }, G = () => {
3655
- p.value.commitProxy("query");
3656
- }, de = () => (C.editRules = h(), p.value.refreshColumn()), Ie = () => {
3657
- C.loading = !0;
3658
- }, H = () => {
3659
- C.loading = !1;
3660
- }, Fe = () => so(p.value), re = () => p.value.getTableData().fullData, Pe = (y = !1) => {
3661
- const F = c.columns[0].type, k = F === "radio" ? p.value.getRadioRecord(y) : p.value.getCheckboxRecords(y);
3662
- return F === "checkbox" && !k.length ? (jo(g("message.tip_selectedRecord")), []) : F === "radio" && !k ? (jo(g("message.tip_selectedRecord")), null) : k;
3663
- }, U = (y, F) => {
3664
- n != null && n.callback && (n != null && n.callback[y]) && (n == null || n.callback[y](F));
3665
- }, fe = ({ data: y }) => {
3666
- c.items.filter((k) => {
3667
- var W, A;
3668
- return (A = (W = k.itemRender) == null ? void 0 : W.props) == null ? void 0 : A.multiple;
3669
- }).forEach((k) => {
3670
- y[`_${k.field}`] = [];
3671
- }), G();
3672
- };
3673
- let me;
3674
- const ie = () => {
3675
- const y = p.value;
3676
- me = w.create(y.$el.querySelector(".vxe-table--header .vxe-header--row"), {
3677
- disabled: !n.gridId,
3678
- handle: ".vxe-header--column",
3679
- onEnd: async (F) => {
3680
- const k = F.item, W = F.newIndex, A = F.oldIndex, { fullColumn: we, tableColumn: No } = y.getTableColumn(), Wt = k.parentNode, ir = we[W], Mo = we[A];
3681
- let gt = !1, $t = "固定列";
3682
- if (ir.fixed ? gt = !1 : W === 0 || ["checkbox", "radio"].includes(Mo.type) ? ($t = "勾选列", gt = !0) : (Mo.field === "operate" || W === we.length - 1) && (gt = !0, $t = "操作列"), gt) {
3683
- const Ee = Wt.children[A];
3684
- return W > A ? Wt.insertBefore(k, Ee) : Wt.insertBefore(k, Ee && Ee.nextElementSibling), Sr($t + "不允许拖动!");
3685
- }
3686
- const Vt = y.getColumnIndex(No[A]), Yt = y.getColumnIndex(No[W]), Ro = we.splice(Vt, 1)[0];
3687
- we.splice(Yt, 0, Ro);
3688
- const Je = Yt - Vt > 0 ? 1 : -1, Ao = (Yt + 1) * 10, Lo = (Vt + 1) * 10, Bo = Ao + 1 * Je;
3689
- for (const Ee in i) {
3690
- const Le = i[Ee];
3691
- (Je > 0 && Le < Bo && Le > Lo || Je < 0 && Le > Bo && Le < Lo) && (i[Ee] = Le - 10 * Je);
3692
- }
3693
- i[Ro.field] = Ao, tt.setItem(fn, { [n.gridId]: i }), y.loadColumn(we);
3694
- }
3695
- });
3696
- };
3697
- t({
3698
- getTableData: re,
3699
- getSelectRecords: Pe,
3700
- refreshData: G,
3701
- refreshColumn: de,
3702
- getInstance: Fe,
3703
- showLoading: Ie,
3704
- hiddenLoading: H,
3705
- reloadGrid: () => {
3706
- ne();
3707
- }
3708
- });
3709
- const be = ({ code: y }) => {
3710
- pt("buttonClick", y);
3711
- }, qt = (y) => {
3712
- pt("cellClick", y);
3713
- }, _o = (y) => {
3714
- pt("cellDbclick", y);
3715
- }, ht = (y) => {
3716
- pt("editEctivated", y);
3717
- }, Ht = () => {
3718
- window.onresize = () => (() => {
3719
- let y = (n == null ? void 0 : n.height) || window.innerHeight - 90;
3720
- n.mode !== "inline" && !(n != null && n.height) && (y = window.innerHeight - 180), C.height = y < 240 ? 240 : y;
3721
- })();
3722
- };
3723
- let Oo;
3724
- dr(() => {
3725
- Oo = setTimeout(() => {
3726
- ie();
3727
- }, 500);
3728
- }), fr(() => {
3729
- clearTimeout(Oo), me && me.destroy();
3730
- }), mr(() => {
3731
- ne(), Ht();
3732
- });
3733
- const pt = o;
3734
- return (y, F) => {
3735
- const k = Ve("vxe-grid");
3736
- return vo(), Sn("div", Ua, [
3737
- st(k, Dn({
3738
- ref_key: "xgrid",
3739
- ref: p
3740
- }, C, { class: "ut-grid-wrapper" }, hr(pr(n).events || {}), {
3741
- onToolbarButtonClick: be,
3742
- onToolbarToolClick: be,
3743
- onCellClick: qt,
3744
- onCellDblclick: _o,
3745
- onEditActivated: ht,
3746
- onFormReset: fe
3747
- }), null, 16)
3748
- ]);
3749
- };
3750
- }
3751
- }), qa = { class: "width: 100%" }, Ha = {
3752
- name: "UtForm"
3753
- }, Wa = /* @__PURE__ */ ke({
3754
- ...Ha,
3755
- props: {
3756
- record: { default: () => ({}) },
3757
- items: { default: () => [] },
3758
- loading: { type: Boolean, default: !1 },
3759
- vertical: { type: Boolean, default: !1 },
3760
- titleWidth: { default: 100 },
3761
- span: { default: 6 },
3762
- dataStatus: { default: "detail" }
3763
- },
3764
- setup(e, { expose: t }) {
3765
- const o = e, n = Re(void 0), { t: r } = Bt(), i = Re(!0), a = Pt(() => o.items.length ? lo(o.items, r) : {}), s = Pt(() => o.items.length ? Tr(ee(o.items, !0), o.dataStatus, 6) : o.items), u = () => {
3766
- n.value.toggleCollapse();
3767
- };
3768
- return t({
3769
- validateForm: (c) => {
3770
- n.value.validate(c);
3771
- },
3772
- validate: (c) => {
3773
- n.value.validate(c), setTimeout(() => {
3774
- n.value.clearValidate();
3775
- }, 1600);
3776
- }
3777
- }), (c, g) => {
3778
- const p = Ve("vxe-checkbox"), v = Ve("vxe-form");
3779
- return vo(), Sn("div", qa, [
3780
- st(v, Dn({
3781
- ref_key: "xForm",
3782
- ref: n,
3783
- data: c.record,
3784
- items: s.value,
3785
- rules: a.value,
3786
- loading: c.loading,
3787
- vertical: c.vertical,
3788
- "title-width": c.titleWidth,
3789
- "title-overflow": "",
3790
- "title-align": "right",
3791
- "title-bold": ""
3792
- }, c.$attrs), {
3793
- dividerPrefix: ao(() => g[1] || (g[1] = [])),
3794
- collapseNode: ao(() => [
3795
- st(p, {
3796
- modelValue: i.value,
3797
- "onUpdate:modelValue": g[0] || (g[0] = (m) => i.value = m),
3798
- content: "查看更多",
3799
- "checked-value": !1,
3800
- "unchecked-value": !0,
3801
- class: "pl-10",
3802
- onChange: u
3803
- }, null, 8, ["modelValue"])
3804
- ]),
3805
- _: 1
3806
- }, 16, ["data", "items", "rules", "loading", "vertical", "title-width"])
3807
- ]);
3808
- };
3809
- }
3810
- }), tr = Object.freeze(
3811
- {
3812
- left: 0,
3813
- top: 0,
3814
- width: 16,
3815
- height: 16
3816
- }
3817
- ), Lt = Object.freeze({
3818
- rotate: 0,
3819
- vFlip: !1,
3820
- hFlip: !1
3821
- }), Fo = Object.freeze({
3822
- ...tr,
3823
- ...Lt
3824
- }), go = Object.freeze({
3825
- ...Fo,
3826
- body: "",
3827
- hidden: !1
3828
- });
3829
- function $a(e, t) {
3830
- const o = {};
3831
- !e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
3832
- const n = ((e.rotate || 0) + (t.rotate || 0)) % 4;
3833
- return n && (o.rotate = n), o;
3834
- }
3835
- function mn(e, t) {
3836
- const o = $a(e, t);
3837
- for (const n in go)
3838
- n in Lt ? n in e && !(n in o) && (o[n] = Lt[n]) : n in t ? o[n] = t[n] : n in e && (o[n] = e[n]);
3839
- return o;
3840
- }
3841
- function Va(e, t) {
3842
- const o = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
3843
- function i(a) {
3844
- if (o[a])
3845
- return r[a] = [];
3846
- if (!(a in r)) {
3847
- r[a] = null;
3848
- const s = n[a] && n[a].parent, u = s && i(s);
3849
- u && (r[a] = [s].concat(u));
3850
- }
3851
- return r[a];
3852
- }
3853
- return Object.keys(o).concat(Object.keys(n)).forEach(i), r;
3854
- }
3855
- function Ya(e, t, o) {
3856
- const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null);
3857
- let i = {};
3858
- function a(s) {
3859
- i = mn(
3860
- n[s] || r[s],
3861
- i
3862
- );
3863
- }
3864
- return a(t), o.forEach(a), mn(e, i);
3865
- }
3866
- function Ga(e, t) {
3867
- const o = [];
3868
- if (typeof e != "object" || typeof e.icons != "object")
3869
- return o;
3870
- e.not_found instanceof Array && e.not_found.forEach((r) => {
3871
- t(r, null), o.push(r);
3872
- });
3873
- const n = Va(e);
3874
- for (const r in n) {
3875
- const i = n[r];
3876
- i && (t(r, Ya(e, r, i)), o.push(r));
3877
- }
3878
- return o;
3879
- }
3880
- const Xa = {
3881
- provider: "",
3882
- aliases: {},
3883
- not_found: {},
3884
- ...tr
3885
- };
3886
- function ro(e, t) {
3887
- for (const o in t)
3888
- if (o in e && typeof e[o] != typeof t[o])
3889
- return !1;
3890
- return !0;
3891
- }
3892
- function Ka(e) {
3893
- if (typeof e != "object" || e === null)
3894
- return null;
3895
- const t = e;
3896
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !ro(e, Xa))
3897
- return null;
3898
- const o = t.icons;
3899
- for (const r in o) {
3900
- const i = o[r];
3901
- if (
3902
- // Name cannot be empty
3903
- !r || // Must have body
3904
- typeof i.body != "string" || // Check other props
3905
- !ro(
3906
- i,
3907
- go
3908
- )
3909
- )
3910
- return null;
3911
- }
3912
- const n = t.aliases || /* @__PURE__ */ Object.create(null);
3913
- for (const r in n) {
3914
- const i = n[r], a = i.parent;
3915
- if (
3916
- // Name cannot be empty
3917
- !r || // Parent must be set and point to existing icon
3918
- typeof a != "string" || !o[a] && !n[a] || // Check other props
3919
- !ro(
3920
- i,
3921
- go
3922
- )
3923
- )
3924
- return null;
3925
- }
3926
- return t;
3927
- }
3928
- const or = Object.freeze({
3929
- width: null,
3930
- height: null
3931
- }), nr = Object.freeze({
3932
- // Dimensions
3933
- ...or,
3934
- // Transformations
3935
- ...Lt
3936
- });
3937
- function Ja(e, t) {
3938
- const o = {
3939
- ...e
3940
- };
3941
- for (const n in t) {
3942
- const r = t[n], i = typeof r;
3943
- n in or ? (r === null || r && (i === "string" || i === "number")) && (o[n] = r) : i === typeof o[n] && (o[n] = n === "rotate" ? r % 4 : r);
3944
- }
3945
- return o;
3946
- }
3947
- const Za = /[\s,]+/;
3948
- function Qa(e, t) {
3949
- t.split(Za).forEach((o) => {
3950
- switch (o.trim()) {
3951
- case "horizontal":
3952
- e.hFlip = !0;
3953
- break;
3954
- case "vertical":
3955
- e.vFlip = !0;
3956
- break;
3957
- }
3958
- });
3959
- }
3960
- function es(e, t = 0) {
3961
- const o = e.replace(/^-?[0-9.]*/, "");
3962
- function n(r) {
3963
- for (; r < 0; )
3964
- r += 4;
3965
- return r % 4;
3966
- }
3967
- if (o === "") {
3968
- const r = parseInt(e);
3969
- return isNaN(r) ? 0 : n(r);
3970
- } else if (o !== e) {
3971
- let r = 0;
3972
- switch (o) {
3973
- case "%":
3974
- r = 25;
3975
- break;
3976
- case "deg":
3977
- r = 90;
3978
- }
3979
- if (r) {
3980
- let i = parseFloat(e.slice(0, e.length - o.length));
3981
- return isNaN(i) ? 0 : (i = i / r, i % 1 === 0 ? n(i) : 0);
3982
- }
3983
- }
3984
- return t;
3985
- }
3986
- const ts = /(-?[0-9.]*[0-9]+[0-9.]*)/g, os = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
3987
- function hn(e, t, o) {
3988
- if (t === 1)
3989
- return e;
3990
- if (o = o || 100, typeof e == "number")
3991
- return Math.ceil(e * t * o) / o;
3992
- if (typeof e != "string")
3993
- return e;
3994
- const n = e.split(ts);
3995
- if (n === null || !n.length)
3996
- return e;
3997
- const r = [];
3998
- let i = n.shift(), a = os.test(i);
3999
- for (; ; ) {
4000
- if (a) {
4001
- const s = parseFloat(i);
4002
- isNaN(s) ? r.push(i) : r.push(Math.ceil(s * t * o) / o);
4003
- } else
4004
- r.push(i);
4005
- if (i = n.shift(), i === void 0)
4006
- return r.join("");
4007
- a = !a;
4008
- }
4009
- }
4010
- function ns(e, t = "defs") {
4011
- let o = "";
4012
- const n = e.indexOf("<" + t);
4013
- for (; n >= 0; ) {
4014
- const r = e.indexOf(">", n), i = e.indexOf("</" + t);
4015
- if (r === -1 || i === -1)
4016
- break;
4017
- const a = e.indexOf(">", i);
4018
- if (a === -1)
4019
- break;
4020
- o += e.slice(r + 1, i).trim(), e = e.slice(0, n).trim() + e.slice(a + 1);
4021
- }
4022
- return {
4023
- defs: o,
4024
- content: e
4025
- };
4026
- }
4027
- function rs(e, t) {
4028
- return e ? "<defs>" + e + "</defs>" + t : t;
4029
- }
4030
- function is(e, t, o) {
4031
- const n = ns(e);
4032
- return rs(n.defs, t + n.content + o);
4033
- }
4034
- const as = (e) => e === "unset" || e === "undefined" || e === "none";
4035
- function ss(e, t) {
4036
- const o = {
4037
- ...Fo,
4038
- ...e
4039
- }, n = {
4040
- ...nr,
4041
- ...t
4042
- }, r = {
4043
- left: o.left,
4044
- top: o.top,
4045
- width: o.width,
4046
- height: o.height
4047
- };
4048
- let i = o.body;
4049
- [o, n].forEach((m) => {
4050
- const h = [], x = m.hFlip, C = m.vFlip;
4051
- let T = m.rotate;
4052
- x ? C ? T += 2 : (h.push(
4053
- "translate(" + (r.width + r.left).toString() + " " + (0 - r.top).toString() + ")"
4054
- ), h.push("scale(-1 1)"), r.top = r.left = 0) : C && (h.push(
4055
- "translate(" + (0 - r.left).toString() + " " + (r.height + r.top).toString() + ")"
4056
- ), h.push("scale(1 -1)"), r.top = r.left = 0);
4057
- let I;
4058
- switch (T < 0 && (T -= Math.floor(T / 4) * 4), T = T % 4, T) {
4059
- case 1:
4060
- I = r.height / 2 + r.top, h.unshift(
4061
- "rotate(90 " + I.toString() + " " + I.toString() + ")"
4062
- );
4063
- break;
4064
- case 2:
4065
- h.unshift(
4066
- "rotate(180 " + (r.width / 2 + r.left).toString() + " " + (r.height / 2 + r.top).toString() + ")"
4067
- );
4068
- break;
4069
- case 3:
4070
- I = r.width / 2 + r.left, h.unshift(
4071
- "rotate(-90 " + I.toString() + " " + I.toString() + ")"
4072
- );
4073
- break;
4074
- }
4075
- T % 2 === 1 && (r.left !== r.top && (I = r.left, r.left = r.top, r.top = I), r.width !== r.height && (I = r.width, r.width = r.height, r.height = I)), h.length && (i = is(
4076
- i,
4077
- '<g transform="' + h.join(" ") + '">',
4078
- "</g>"
4079
- ));
4080
- });
4081
- const a = n.width, s = n.height, u = r.width, l = r.height;
4082
- let d, c;
4083
- a === null ? (c = s === null ? "1em" : s === "auto" ? l : s, d = hn(c, u / l)) : (d = a === "auto" ? u : a, c = s === null ? hn(d, l / u) : s === "auto" ? l : s);
4084
- const g = {}, p = (m, h) => {
4085
- as(h) || (g[m] = h.toString());
4086
- };
4087
- p("width", d), p("height", c);
4088
- const v = [r.left, r.top, u, l];
4089
- return g.viewBox = v.join(" "), {
4090
- attributes: g,
4091
- viewBox: v,
4092
- body: i
4093
- };
4094
- }
4095
- const ls = /\sid="(\S+)"/g, us = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
4096
- let cs = 0;
4097
- function ds(e, t = us) {
4098
- const o = [];
4099
- let n;
4100
- for (; n = ls.exec(e); )
4101
- o.push(n[1]);
4102
- if (!o.length)
4103
- return e;
4104
- const r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
4105
- return o.forEach((i) => {
4106
- const a = typeof t == "function" ? t(i) : t + (cs++).toString(), s = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4107
- e = e.replace(
4108
- // Allowed characters before id: [#;"]
4109
- // Allowed characters after id: [)"], .[a-z]
4110
- new RegExp('([#;"])(' + s + ')([")]|\\.[a-z])', "g"),
4111
- "$1" + a + r + "$3"
4112
- );
4113
- }), e = e.replace(new RegExp(r, "g"), ""), e;
4114
- }
4115
- function fs(e, t) {
4116
- let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
4117
- for (const n in t)
4118
- o += " " + n + '="' + t[n] + '"';
4119
- return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
4120
- }
4121
- function ms(e) {
4122
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
4123
- }
4124
- function hs(e) {
4125
- return "data:image/svg+xml," + ms(e);
4126
- }
4127
- function ps(e) {
4128
- return 'url("' + hs(e) + '")';
4129
- }
4130
- const pn = {
4131
- ...nr,
4132
- inline: !1
4133
- }, gs = {
4134
- xmlns: "http://www.w3.org/2000/svg",
4135
- "xmlns:xlink": "http://www.w3.org/1999/xlink",
4136
- "aria-hidden": !0,
4137
- role: "img"
4138
- }, ys = {
4139
- display: "inline-block"
4140
- }, yo = {
4141
- backgroundColor: "currentColor"
4142
- }, rr = {
4143
- backgroundColor: "transparent"
4144
- }, gn = {
4145
- Image: "var(--svg)",
4146
- Repeat: "no-repeat",
4147
- Size: "100% 100%"
4148
- }, yn = {
4149
- webkitMask: yo,
4150
- mask: yo,
4151
- background: rr
4152
- };
4153
- for (const e in yn) {
4154
- const t = yn[e];
4155
- for (const o in gn)
4156
- t[e + o] = gn[o];
4157
- }
4158
- const Ft = {};
4159
- ["horizontal", "vertical"].forEach((e) => {
4160
- const t = e.slice(0, 1) + "Flip";
4161
- Ft[e + "-flip"] = t, Ft[e.slice(0, 1) + "-flip"] = t, Ft[e + "Flip"] = t;
4162
- });
4163
- function vn(e) {
4164
- return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
4165
- }
4166
- const vs = (e, t) => {
4167
- const o = Ja(pn, t), n = { ...gs }, r = t.mode || "svg", i = {}, a = t.style, s = typeof a == "object" && !(a instanceof Array) ? a : {};
4168
- for (let m in t) {
4169
- const h = t[m];
4170
- if (h !== void 0)
4171
- switch (m) {
4172
- // Properties to ignore
4173
- case "icon":
4174
- case "style":
4175
- case "onLoad":
4176
- case "mode":
4177
- case "ssr":
4178
- break;
4179
- // Boolean attributes
4180
- case "inline":
4181
- case "hFlip":
4182
- case "vFlip":
4183
- o[m] = h === !0 || h === "true" || h === 1;
4184
- break;
4185
- // Flip as string: 'horizontal,vertical'
4186
- case "flip":
4187
- typeof h == "string" && Qa(o, h);
4188
- break;
4189
- // Color: override style
4190
- case "color":
4191
- i.color = h;
4192
- break;
4193
- // Rotation as string
4194
- case "rotate":
4195
- typeof h == "string" ? o[m] = es(h) : typeof h == "number" && (o[m] = h);
4196
- break;
4197
- // Remove aria-hidden
4198
- case "ariaHidden":
4199
- case "aria-hidden":
4200
- h !== !0 && h !== "true" && delete n["aria-hidden"];
4201
- break;
4202
- default: {
4203
- const x = Ft[m];
4204
- x ? (h === !0 || h === "true" || h === 1) && (o[x] = !0) : pn[m] === void 0 && (n[m] = h);
4205
- }
4206
- }
4207
- }
4208
- const u = ss(e, o), l = u.attributes;
4209
- if (o.inline && (i.verticalAlign = "-0.125em"), r === "svg") {
4210
- n.style = {
4211
- ...i,
4212
- ...s
4213
- }, Object.assign(n, l);
4214
- let m = 0, h = t.id;
4215
- return typeof h == "string" && (h = h.replace(/-/g, "_")), n.innerHTML = ds(u.body, h ? () => h + "ID" + m++ : "iconifyVue"), Te("svg", n);
4216
- }
4217
- const { body: d, width: c, height: g } = e, p = r === "mask" || (r === "bg" ? !1 : d.indexOf("currentColor") !== -1), v = fs(d, {
4218
- ...l,
4219
- width: c + "",
4220
- height: g + ""
4221
- });
4222
- return n.style = {
4223
- ...i,
4224
- "--svg": ps(v),
4225
- width: vn(l.width),
4226
- height: vn(l.height),
4227
- ...ys,
4228
- ...p ? yo : rr,
4229
- ...s
4230
- }, Te("span", n);
4231
- }, Po = /* @__PURE__ */ Object.create(null);
4232
- function bs(e, t) {
4233
- Po[e] = t;
4234
- }
4235
- function tl(e, t) {
4236
- const o = typeof e.prefix == "string" ? e.prefix + ":" : "";
4237
- Ka(e) && Ga(e, (n, r) => {
4238
- r && (Po[o + n] = r);
4239
- });
4240
- }
4241
- const bn = ke({
4242
- // Do not inherit other attributes: it is handled by render()
4243
- inheritAttrs: !1,
4244
- // Render icon
4245
- render() {
4246
- const e = this.$attrs, t = e.icon, o = typeof t == "string" ? Po[t] : typeof t == "object" ? t : null;
4247
- return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : vs({
4248
- ...Fo,
4249
- ...o
4250
- }, e);
4251
- }
4252
- }), ws = ke({
4253
- name: "IconOffline",
4254
- components: { IconifyIcon: bn },
4255
- props: {
4256
- icon: {
4257
- default: null
4258
- }
4259
- },
4260
- render() {
4261
- typeof this.icon == "object" && bs(this.icon, this.icon);
4262
- const e = this.$attrs;
4263
- return Te(
4264
- bn,
4265
- {
4266
- icon: this.icon,
4267
- style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4268
- ...e
4269
- },
4270
- {
4271
- default: () => []
4272
- }
4273
- );
4274
- }
4275
- });
4276
- ke({
4277
- name: "IconifyIconOnline",
4278
- components: { IconifyIcon: Ho },
4279
- props: {
4280
- icon: {
4281
- type: String,
4282
- default: ""
4283
- }
4284
- },
4285
- render() {
4286
- const e = this.$attrs;
4287
- return Te(
4288
- Ho,
4289
- {
4290
- icon: `${this.icon}`,
4291
- style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4292
- ...e
4293
- },
4294
- {
4295
- default: () => []
4296
- }
4297
- );
4298
- }
4299
- });
4300
- const Es = ke({
4301
- name: "FontIcon",
4302
- props: {
4303
- icon: {
4304
- type: String,
4305
- default: ""
4306
- }
4307
- },
4308
- render() {
4309
- const e = this.$attrs;
4310
- return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? Te(
4311
- "i",
4312
- {
4313
- class: "iconfont",
4314
- ...e
4315
- },
4316
- this.icon
4317
- ) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? Te(
4318
- "svg",
4319
- {
4320
- class: "icon-svg",
4321
- "aria-hidden": !0
4322
- },
4323
- {
4324
- default: () => [
4325
- Te("use", {
4326
- "xlink:href": `#${this.icon}`
4327
- })
4328
- ]
4329
- }
4330
- ) : Te("i", {
4331
- class: `iconfont ${this.icon}`,
4332
- ...e
4333
- });
4334
- }
4335
- }), Cs = ws, Ss = Es, Ds = {
4336
- mounted(e, t) {
4337
- var n;
4338
- const { value: o } = t;
4339
- if (o) {
4340
- const i = `${(n = B.currentRoute.value.meta) == null ? void 0 : n.prefixAuth}.${o}`;
4341
- Z().getButtonAuth.includes(i) || e.parentNode.removeChild(e);
4342
- } else
4343
- throw new Error(`need roles! Like v-auth="['admin','test']"`);
4344
- }
4345
- };
4346
- function Ts(e) {
4347
- return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, o) {
4348
- var n = e.get(t);
4349
- n ? n.push(o) : e.set(t, [o]);
4350
- }, off: function(t, o) {
4351
- var n = e.get(t);
4352
- n && (o ? n.splice(n.indexOf(o) >>> 0, 1) : e.set(t, []));
4353
- }, emit: function(t, o) {
4354
- var n = e.get(t);
4355
- n && n.slice().map(function(r) {
4356
- r(o);
4357
- }), (n = e.get("*")) && n.slice().map(function(r) {
4358
- r(t, o);
4359
- });
4360
- } };
4361
- }
4362
- const xs = Ts(), wn = Br({
4363
- strategy: "scroll"
4364
- }), ks = {
4365
- mounted(e, t, o) {
4366
- wn.listenTo(e, (n) => {
4367
- const r = n.offsetWidth, i = n.offsetHeight;
4368
- t != null && t.instance ? xs.emit("resize", { detail: { width: r, height: i } }) : o.el.dispatchEvent(new CustomEvent("resize", { detail: { width: r, height: i } }));
4369
- });
4370
- },
4371
- unmounted(e) {
4372
- wn.uninstall(e);
4373
- }
4374
- }, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4375
- __proto__: null,
4376
- auth: Ds,
4377
- resize: ks
4378
- }, Symbol.toStringTag, { value: "Module" })), K = gr(ei);
4379
- K.use(Lr, {
4380
- defaultProps: { animation: "perspective" }
4381
- });
4382
- const Is = (e) => {
4383
- e.config.globalProperties.$hasAuthority = ea, e.config.globalProperties.$serviceApi = zt(), e.config.globalProperties.$url = pe(), window.$i18n = On;
4384
- }, Fs = (e) => {
4385
- Object.keys(En).forEach((t) => {
4386
- e.directive(t, En[t]);
4387
- });
4388
- }, ol = ({ router: e, config: t, lang: o, views: n, env: r, tableConfig: i }) => (zi(n, e), K.use(e), Gr(e), Vr(K, t), Yr(r), Hi(i), new Promise((a) => {
4389
- yi(K, o), K.component("IconifyIconOffline", Cs), K.component("FontIcon", Ss), K.component("UtGrid2", ja), K.component("UtForm2", Wa), Is(K), Xr(pe()), Fs(K), ti(K), Qi(K, t), a({ app: K, router: e });
4390
- }));
4391
- function Ps() {
4392
- const { $storage: e, $config: t } = xn(), o = () => {
4393
- Ln().multiTagsCache && (!e.tags || e.tags.length === 0) && (e.tags = ct), e != null && e.locale || (Bt().locale.value = (t == null ? void 0 : t.Locale) ?? "zh"), e && !(e != null && e.layout) && (e.layout = {
4394
- layout: (t == null ? void 0 : t.Layout) ?? "vertical",
4395
- theme: (t == null ? void 0 : t.Theme) ?? "default",
4396
- darkMode: (t == null ? void 0 : t.DarkMode) ?? !1,
4397
- sidebarStatus: (t == null ? void 0 : t.SidebarStatus) ?? !0,
4398
- epThemeColor: (t == null ? void 0 : t.EpThemeColor) ?? "#409EFF",
4399
- overallStyle: (t == null ? void 0 : t.OverallStyle) ?? "light"
4400
- }), e && !(e != null && e.configure) && (e.configure = {
4401
- grey: (t == null ? void 0 : t.Grey) ?? !1,
4402
- weak: (t == null ? void 0 : t.Weak) ?? !1,
4403
- hideTabs: (t == null ? void 0 : t.HideTabs) ?? !1,
4404
- showLogo: (t == null ? void 0 : t.ShowLogo) ?? !0,
4405
- showModel: (t == null ? void 0 : t.ShowModel) ?? "smart",
4406
- multiTagsCache: (t == null ? void 0 : t.MultiTagsCache) ?? !1
4407
- });
4408
- }, n = Pt(() => e == null ? void 0 : e.layout.layout), r = Pt(() => e == null ? void 0 : e.layout);
4409
- return {
4410
- layout: n,
4411
- layoutTheme: r,
4412
- initStorage: o
4413
- };
4414
- }
4415
- const _s = ut("udp-app", {
4416
- state: () => {
4417
- var e, t;
4418
- return {
4419
- sidebar: {
4420
- opened: ((e = O.getItem(`${q()}layout`)) == null ? void 0 : e.sidebarStatus) ?? se().SidebarStatus,
4421
- withoutAnimation: !1,
4422
- isClickCollapse: !1
4423
- },
4424
- // 这里的layout用于监听容器拖拉后恢复对应的导航模式
4425
- layout: ((t = O.getItem(`${q()}layout`)) == null ? void 0 : t.layout) ?? se().Layout,
4426
- device: xr() ? "mobile" : "desktop"
4427
- };
4428
- },
4429
- getters: {
4430
- getSidebarStatus() {
4431
- return this.sidebar.opened;
4432
- },
4433
- getDevice() {
4434
- return this.device;
4435
- }
4436
- },
4437
- actions: {
4438
- TOGGLE_SIDEBAR(e, t) {
4439
- const o = O.getItem(`${q()}layout`);
4440
- o && (e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !0, o.sidebarStatus = !0) : !e && t ? (this.sidebar.withoutAnimation = !0, this.sidebar.opened = !1, o.sidebarStatus = !1) : !e && !t && (this.sidebar.withoutAnimation = !1, this.sidebar.opened = !this.sidebar.opened, this.sidebar.isClickCollapse = !this.sidebar.opened, o.sidebarStatus = this.sidebar.opened), O.setItem(`${q()}layout`, o));
4441
- },
4442
- async toggleSideBar(e, t) {
4443
- await this.TOGGLE_SIDEBAR(e, t);
4444
- },
4445
- toggleDevice(e) {
4446
- this.device = e;
4447
- },
4448
- setLayout(e) {
4449
- this.layout = e;
4450
- }
4451
- }
4452
- });
4453
- function Os() {
4454
- return _s(Xe);
4455
- }
4456
- const Ns = ut("udp-epTheme", {
4457
- state: () => {
4458
- var e, t;
4459
- return {
4460
- epThemeColor: ((e = O.getItem(`${q()}-layout`)) == null ? void 0 : e.epThemeColor) ?? se().EpThemeColor,
4461
- epTheme: ((t = O.getItem(`${q()}-layout`)) == null ? void 0 : t.theme) ?? se().Theme
4462
- };
4463
- },
4464
- getters: {
4465
- getEpThemeColor() {
4466
- return this.epThemeColor;
4467
- },
4468
- // 用于mix导航模式下hamburger-svg的fill属性
4469
- fill() {
4470
- return this.epTheme === "light" ? "#409eff" : this.epTheme === "yellow" ? "#d25f00" : "#fff";
4471
- }
4472
- },
4473
- actions: {
4474
- setEpThemeColor(e) {
4475
- const t = O.getItem(`${q()}layout`);
4476
- this.epTheme = t == null ? void 0 : t.theme, this.epThemeColor = e, t && (t.epThemeColor = e, O.setItem(`${q()}layout`, t));
4477
- }
4478
- }
4479
- });
4480
- function io() {
4481
- return Ns(Xe);
4482
- }
4483
- function nl() {
4484
- var p, v;
4485
- const { layoutTheme: e, layout: t } = Ps(), o = Re([
4486
- /* 道奇蓝(默认) */
4487
- { color: "#1b2a47", themeColor: "default" },
4488
- /* 亮白色 */
4489
- { color: "#ffffff", themeColor: "light" },
4490
- /* 猩红色 */
4491
- { color: "#f5222d", themeColor: "dusk" },
4492
- /* 橙红色 */
4493
- { color: "#fa541c", themeColor: "volcano" },
4494
- /* 金色 */
4495
- { color: "#fadb14", themeColor: "yellow" },
4496
- /* 绿宝石 */
4497
- { color: "#13c2c2", themeColor: "mingQing" },
4498
- /* 酸橙绿 */
4499
- { color: "#52c41a", themeColor: "auroraGreen" },
4500
- /* 深粉色 */
4501
- { color: "#eb2f96", themeColor: "pink" },
4502
- /* 深紫罗兰色 */
4503
- { color: "#722ed1", themeColor: "saucePurple" }
4504
- ]), { $storage: n } = xn(), r = Re((p = n == null ? void 0 : n.layout) == null ? void 0 : p.darkMode), i = Re((v = n == null ? void 0 : n.layout) == null ? void 0 : v.overallStyle), a = document.documentElement;
4505
- function s(m, h, x) {
4506
- const C = x || document.body;
4507
- let { className: T } = C;
4508
- T = T.replace(h, "").trim(), C.className = m ? `${T} ${h}` : T;
4509
- }
4510
- function u(m = se().Theme ?? "default") {
4511
- var h, x;
4512
- if (e.value.theme = m, document.documentElement.setAttribute("data-theme", m), document.documentElement.className = "", document.documentElement.classList.add(`layout-theme-${m}`), n.layout = {
4513
- layout: t.value,
4514
- theme: m,
4515
- darkMode: r.value,
4516
- sidebarStatus: (h = n.layout) == null ? void 0 : h.sidebarStatus,
4517
- epThemeColor: (x = n.layout) == null ? void 0 : x.epThemeColor,
4518
- overallStyle: i.value
4519
- }, m === "default" || m === "light")
4520
- d(se().EpThemeColor || "#409EFF");
4521
- else {
4522
- const C = o.value.find((T) => T.themeColor === m);
4523
- d(C.color);
4524
- }
4525
- }
4526
- function l(m, h, x) {
4527
- document.documentElement.style.setProperty(
4528
- `--el-color-primary-${m}-${h}`,
4529
- r.value ? ri(x, h / 10) : ii(x, h / 10)
4530
- );
4531
- }
4532
- const d = (m) => {
4533
- io().setEpThemeColor(m), document.documentElement.style.setProperty("--el-color-primary", m);
4534
- for (let h = 1; h <= 2; h++)
4535
- l("dark", h, m);
4536
- for (let h = 1; h <= 9; h++)
4537
- l("light", h, m);
4538
- };
4539
- function c(m) {
4540
- i.value = m, io().epTheme === "light" && r.value ? u("default") : u(io().epTheme), Wi(r.value ? "dark" : "light"), r.value ? (document.documentElement.classList.add("dark"), document.documentElement.classList.remove("default")) : (document.documentElement.classList.add("default"), document.documentElement.classList.remove("dark"));
4541
- }
4542
- function g() {
4543
- Ae.remove(Wr), Ae.remove(Hr), Ae.remove(In), O.clear(), kr.clear();
4544
- const { Grey: m, Weak: h, MultiTagsCache: x, EpThemeColor: C, Layout: T } = se();
4545
- Os().setLayout(T), d(C), le().multiTagsCacheChange(x), s(m, "html-grey", document.querySelector("html")), s(h, "html-weakness", document.querySelector("html")), B.push("/login"), le().handleTags("equal", [...ct]), Bi();
4546
- }
4547
- return {
4548
- body: a,
4549
- overallStyle: i,
4550
- dataTheme: r,
4551
- layoutTheme: e,
4552
- themeColors: o,
4553
- onReset: g,
4554
- toggleClass: s,
4555
- dataThemeChange: c,
4556
- setEpThemeColor: d,
4557
- setLayoutThemeColor: u
4558
- };
4559
- }
4560
- export {
4561
- Ps as A,
4562
- pe as B,
4563
- Ks as C,
4564
- Ei as D,
4565
- Ys as E,
4566
- Ss as F,
4567
- Vs as G,
4568
- Gs as H,
4569
- Cs as I,
4570
- ol as J,
4571
- ea as K,
4572
- oi as L,
4573
- el as M,
4574
- Zs as N,
4575
- Js as O,
4576
- Zr as _,
4577
- tl as a,
4578
- bs as b,
4579
- le as c,
4580
- Xs as d,
4581
- Os as e,
4582
- Mn as f,
4583
- se as g,
4584
- Z as h,
4585
- St as i,
4586
- xs as j,
4587
- $r as k,
4588
- Wo as l,
4589
- ct as m,
4590
- Wr as n,
4591
- Hr as o,
4592
- In as p,
4593
- Bi as q,
4594
- B as r,
4595
- Xe as s,
4596
- On as t,
4597
- io as u,
4598
- Qs as v,
4599
- zt as w,
4600
- q as x,
4601
- ki as y,
4602
- nl as z
4603
- };