@utogether/udp-core 1.0.1-beta.6 → 1.0.1-beta.7

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