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