@ajaxjs/ui 1.3.12 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +2 -29
  2. package/dist/ajaxjs-ui.cjs.js +1 -0
  3. package/dist/ajaxjs-ui.es.js +33 -0
  4. package/dist/ajaxjs-ui.umd.js +1 -0
  5. package/dist/types/index.d.ts +1 -0
  6. package/dist/utils.d.ts +36 -0
  7. package/package.json +55 -49
  8. package/.browserslistrc +0 -3
  9. package/.eslintrc.js +0 -26
  10. package/babel.config.js +0 -5
  11. package/deprecated/api-helper.zip +0 -0
  12. package/deprecated/api-helper2.zip +0 -0
  13. package/deprecated/api-selector.zip +0 -0
  14. package/deprecated/common-ui.zip +0 -0
  15. package/deprecated/data-source.zip +0 -0
  16. package/deprecated/table-selector.zip +0 -0
  17. package/deprecated/utils.js +0 -220
  18. package/dist/@ajaxjs/ui.common.js +0 -3818
  19. package/dist/@ajaxjs/ui.common.js.map +0 -1
  20. package/dist/@ajaxjs/ui.css +0 -1
  21. package/dist/@ajaxjs/ui.umd.js +0 -3829
  22. package/dist/@ajaxjs/ui.umd.js.map +0 -1
  23. package/dist/@ajaxjs/ui.umd.min.js +0 -2
  24. package/dist/@ajaxjs/ui.umd.min.js.map +0 -1
  25. package/dist/demo.html +0 -1
  26. package/examples/App.vue +0 -137
  27. package/public/favicon.ico +0 -0
  28. package/public/index.html +0 -17
  29. package/src/data-source/data-source.less +0 -46
  30. package/src/data-source/data-source.ts +0 -97
  31. package/src/data-source/data-source.vue +0 -59
  32. package/src/iam/iam.ts +0 -65
  33. package/src/iam/user.vue +0 -53
  34. package/src/index.js +0 -52
  35. package/src/iview-ext/fast-iview-table.ts +0 -133
  36. package/src/iview-ext/fast-iview-table.vue +0 -67
  37. package/src/iview-ext/list.ts +0 -108
  38. package/src/iview-ext/table-selector.vue +0 -185
  39. package/src/iview-ext/tips.vue +0 -17
  40. package/src/libs/api-helper.d.ts +0 -194
  41. package/src/libs/api-list.d.ts +0 -15
  42. package/src/libs/common.d.ts +0 -201
  43. package/src/libs/entity.ts +0 -31
  44. package/src/libs/iview-widgets.ts +0 -73
  45. package/src/main.ts +0 -7
  46. package/src/shims-tsx.d.ts +0 -11
  47. package/src/shims-vue.d.ts +0 -4
  48. package/src/style/common-functions.less +0 -286
  49. package/src/style/reset.less +0 -19
  50. package/src/style/reset2.less +0 -49
  51. package/tsconfig.json +0 -40
  52. package/vue.config.js +0 -19
@@ -1,3829 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("@ajaxjs/util"), require("vue"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["@ajaxjs/util", ], factory);
6
- else if(typeof exports === 'object')
7
- exports["@ajaxjs/ui"] = factory(require("@ajaxjs/util"), require("vue"));
8
- else
9
- root["@ajaxjs/ui"] = factory(root["@ajaxjs/util"], root["Vue"]);
10
- })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__5334__, __WEBPACK_EXTERNAL_MODULE__9274__) {
11
- return /******/ (function() { // webpackBootstrap
12
- /******/ var __webpack_modules__ = ({
13
-
14
- /***/ 9298:
15
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
16
-
17
- "use strict";
18
- // ESM COMPAT FLAG
19
- __webpack_require__.r(__webpack_exports__);
20
-
21
- // EXPORTS
22
- __webpack_require__.d(__webpack_exports__, {
23
- "default": function() { return /* binding */ data_source; }
24
- });
25
-
26
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/data-source/data-source.vue?vue&type=template&id=79e01278&scoped=true
27
- var render = function render() {
28
- var _vm = this,
29
- _c = _vm._self._c,
30
- _setup = _vm._self._setupProxy;
31
- return _c('div', {
32
- staticClass: "datasource",
33
- staticStyle: {
34
- "overflow": "hidden"
35
- }
36
- }, [_c('div', {
37
- staticClass: "left"
38
- }, [_c('ul', _vm._l(_vm.datasources, function (datasource) {
39
- return _c('li', {
40
- key: datasource.id,
41
- class: {
42
- actived: _vm.activedItem == datasource.id
43
- },
44
- on: {
45
- "click": function ($event) {
46
- return _vm.active(datasource);
47
- }
48
- }
49
- }, [_c('span', [_c('Icon', {
50
- staticClass: "del-icon",
51
- attrs: {
52
- "type": "md-trash",
53
- "title": "删除此数据源"
54
- },
55
- on: {
56
- "click": function ($event) {
57
- return _vm.del(datasource.id, datasource.name);
58
- }
59
- }
60
- })], 1), _vm._v(" " + _vm._s(datasource.name) + " ")]);
61
- }), 0), _c('a', {
62
- staticClass: "add",
63
- on: {
64
- "click": _vm.add
65
- }
66
- }, [_vm._v("+ 新建……")])]), _c('div', {
67
- staticClass: "right"
68
- }, [_c('i-Form', {
69
- ref: "editForm",
70
- staticStyle: {
71
- "margin-right": "100px"
72
- },
73
- attrs: {
74
- "model": _vm.form.data,
75
- "rules": _vm.form.rules,
76
- "label-width": 120
77
- }
78
- }, [_c('form-item', {
79
- attrs: {
80
- "label": "数据源名称",
81
- "prop": "name"
82
- }
83
- }, [_c('i-Input', {
84
- attrs: {
85
- "placeholder": "数据源名称"
86
- },
87
- model: {
88
- value: _vm.form.data.name,
89
- callback: function ($$v) {
90
- _vm.$set(_vm.form.data, "name", $$v);
91
- },
92
- expression: "form.data.name"
93
- }
94
- })], 1), _c('form-item', {
95
- attrs: {
96
- "label": "数据源编码",
97
- "prop": "urlDir"
98
- }
99
- }, [_c('i-Input', {
100
- attrs: {
101
- "placeholder": "数据源编码全局唯一不重复"
102
- },
103
- model: {
104
- value: _vm.form.data.urlDir,
105
- callback: function ($$v) {
106
- _vm.$set(_vm.form.data, "urlDir", $$v);
107
- },
108
- expression: "form.data.urlDir"
109
- }
110
- })], 1), _c('form-item', {
111
- attrs: {
112
- "label": "数据库类型",
113
- "prop": "type"
114
- }
115
- }, [_c('i-Select', {
116
- model: {
117
- value: _vm.form.data.type,
118
- callback: function ($$v) {
119
- _vm.$set(_vm.form.data, "type", $$v);
120
- },
121
- expression: "form.data.type"
122
- }
123
- }, _vm._l(_vm.DBType, function (value, key) {
124
- return _c('i-Option', {
125
- key: key,
126
- attrs: {
127
- "value": key
128
- }
129
- }, [_vm._v(_vm._s(value))]);
130
- }), 1)], 1), _c('form-item', {
131
- attrs: {
132
- "label": "连接地址",
133
- "prop": "url"
134
- }
135
- }, [_c('i-Input', {
136
- attrs: {
137
- "maxlength": "200",
138
- "show-word-limit": "",
139
- "type": "textarea",
140
- "rows": 4,
141
- "placeholder": "数据库连接 URL,注意无须携带用户名和密码,且不需要 URL 转义"
142
- },
143
- model: {
144
- value: _vm.form.data.url,
145
- callback: function ($$v) {
146
- _vm.$set(_vm.form.data, "url", $$v);
147
- },
148
- expression: "form.data.url"
149
- }
150
- })], 1), _c('form-item', {
151
- attrs: {
152
- "label": "登录用户",
153
- "prop": "username"
154
- }
155
- }, [_c('i-Input', {
156
- attrs: {
157
- "placeholder": "请输入数据库用户账号"
158
- },
159
- model: {
160
- value: _vm.form.data.username,
161
- callback: function ($$v) {
162
- _vm.$set(_vm.form.data, "username", $$v);
163
- },
164
- expression: "form.data.username"
165
- }
166
- })], 1), _c('form-item', {
167
- attrs: {
168
- "label": "登录密码",
169
- "prop": "password"
170
- }
171
- }, [_c('i-Input', {
172
- attrs: {
173
- "type": "password",
174
- "password": "",
175
- "placeholder": "请输入账号密码"
176
- },
177
- model: {
178
- value: _vm.form.data.password,
179
- callback: function ($$v) {
180
- _vm.$set(_vm.form.data, "password", $$v);
181
- },
182
- expression: "form.data.password"
183
- }
184
- })], 1), _c('form-item', {
185
- attrs: {
186
- "label": "是否跨库",
187
- "prop": "crossDb"
188
- }
189
- }, [_c('i-switch', {
190
- model: {
191
- value: _vm.form.data.crossDb,
192
- callback: function ($$v) {
193
- _vm.$set(_vm.form.data, "crossDb", $$v);
194
- },
195
- expression: "form.data.crossDb"
196
- }
197
- })], 1)], 1), _c('div', {
198
- attrs: {
199
- "align": "center"
200
- }
201
- }, [!_vm.activedItem ? _c('i-Button', {
202
- attrs: {
203
- "icon": "md-checkmark"
204
- },
205
- on: {
206
- "click": _vm.create
207
- }
208
- }, [_vm._v("保存新建")]) : _vm._e(), _vm.activedItem ? _c('i-Button', {
209
- on: {
210
- "click": _vm.update
211
- }
212
- }, [_vm._v("保存")]) : _vm._e(), _vm._v("   "), _vm.activedItem ? _c('i-Button', {
213
- on: {
214
- "click": _vm.test
215
- }
216
- }, [_vm._v("测试连接")]) : _vm._e(), _vm._v("   "), _vm.activedItem ? _c('i-Button', {
217
- on: {
218
- "click": function ($event) {
219
- return _vm.$emit('change_datasource', _vm.form.data);
220
- }
221
- }
222
- }, [_vm._v("切换")]) : _vm._e()], 1)], 1)]);
223
- };
224
- var staticRenderFns = [];
225
-
226
- // EXTERNAL MODULE: external "@ajaxjs/util"
227
- var util_ = __webpack_require__(5334);
228
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
229
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
230
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
231
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./src/data-source/data-source.ts?vue&type=script&lang=ts&external
232
-
233
-
234
- const DBType = {
235
- 'MY_SQL': 'MySQL',
236
- 'ORACLE': 'Oracle',
237
- 'SQL_SERVER': 'Sql Server',
238
- 'SPARK': 'Spark',
239
- 'SQLITE': 'SQLite',
240
- DB2: 'DB2'
241
- };
242
- // @ts-ignore xxxxxxxx
243
- const DATASOURCE_API = window.API_ROOT ? API_ROOT + '/data_service/datasource' : '../../data_service/datasource';
244
- // @ts-ignore xxxxxxxxxx
245
- const DATA_SERVICE_API = window.API_ROOT ? API_ROOT + '/data_service/admin' : '../../data_service/admin';
246
- /* harmony default export */ var data_sourcevue_type_script_lang_ts_external = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
247
- name: 'DataSource',
248
- data() {
249
- return {
250
- isCreate: true,
251
- datasources: [{
252
- id: 1,
253
- name: '加载中……'
254
- }],
255
- activedItem: null,
256
- editing: {},
257
- form: {
258
- data: {},
259
- rules: {
260
- name: [{
261
- required: true,
262
- message: '数据源名称不能为空',
263
- trigger: 'blur'
264
- }]
265
- }
266
- },
267
- DBType: DBType
268
- };
269
- },
270
- mounted() {
271
- this.getList();
272
- },
273
- methods: {
274
- active(item) {
275
- this.activedItem = item.id;
276
- this.form.data = item;
277
- },
278
- getList(cb) {
279
- // @ts-ignore xxxx
280
- xhr_get(`${window.config.dsApiRoot}/datasource`, j => {
281
- this.datasources = j.data;
282
- }, {
283
- start: 0,
284
- limit: 99
285
- });
286
- },
287
- add() {
288
- this.activedItem = null;
289
- this.form.data = {
290
- name: ''
291
- };
292
- },
293
- create() {
294
- this.$refs.editForm.validate(valid => {
295
- if (valid) {
296
- util_.Xhr.xhr_post(DATASOURCE_API, this.form.data, j => {
297
- if (j.status === 1) {
298
- const newlyId = j.data;
299
- this.getList(() => this.activedItem = newlyId);
300
- this.$Message.success('创建数据源成功');
301
- this.form.data.id = newlyId;
302
- }
303
- });
304
- } else this.$Message.error('表单验证不通过');
305
- });
306
- },
307
- update() {
308
- const entity = Object.assign({}, this.form.data);
309
- util_.Xhr.xhr_put(DATASOURCE_API, entity, j => {
310
- if (j.status === 1) {
311
- this.$Message.success('修改数据源成功');
312
- }
313
- });
314
- },
315
- del(id, name) {
316
- this.$Modal.confirm({
317
- title: '删除数据源',
318
- content: `是否删除数据源 #${name}?`,
319
- onOk: () => {
320
- util_.Xhr.xhr_del(DATASOURCE_API + id, j => {
321
- this.$Message.success('删除数据源成功');
322
- this.getList(() => this.add());
323
- });
324
- }
325
- });
326
- },
327
- test() {
328
- // @ts-ignore xxxxxx
329
- xhr_get(`${window.config.dsApiRoot}/datasource/test/` + this.activedItem, j => {
330
- if (j.status) this.$Modal.success({
331
- title: '连接数据源成功'
332
- });
333
- });
334
- }
335
- }
336
- }));
337
- ;// CONCATENATED MODULE: ./src/data-source/data-source.ts?vue&type=script&lang=ts&external
338
- /* harmony default export */ var data_source_data_sourcevue_type_script_lang_ts_external = (data_sourcevue_type_script_lang_ts_external);
339
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
340
- var componentNormalizer = __webpack_require__(1656);
341
- ;// CONCATENATED MODULE: ./src/data-source/data-source.vue
342
-
343
-
344
-
345
- ;
346
-
347
-
348
- /* normalize component */
349
-
350
- var component = (0,componentNormalizer/* default */.A)(
351
- data_source_data_sourcevue_type_script_lang_ts_external,
352
- render,
353
- staticRenderFns,
354
- false,
355
- null,
356
- "79e01278",
357
- null
358
-
359
- )
360
-
361
- /* harmony default export */ var data_source = (component.exports);
362
-
363
- /***/ }),
364
-
365
- /***/ 8599:
366
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
367
-
368
- "use strict";
369
- // ESM COMPAT FLAG
370
- __webpack_require__.r(__webpack_exports__);
371
-
372
- // EXPORTS
373
- __webpack_require__.d(__webpack_exports__, {
374
- "default": function() { return /* binding */ user; }
375
- });
376
-
377
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iam/user.vue?vue&type=template&id=c2329cb6
378
- var render = function render() {
379
- var _vm = this,
380
- _c = _vm._self._c,
381
- _setup = _vm._self._setupProxy;
382
- return _c('a', {
383
- on: {
384
- "click": _vm.showUserInfo
385
- }
386
- }, [_vm._v(_vm._s(_vm.state))]);
387
- };
388
- var staticRenderFns = [];
389
-
390
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
391
- var web_dom_exception_stack = __webpack_require__(4979);
392
- // EXTERNAL MODULE: external "@ajaxjs/util"
393
- var util_ = __webpack_require__(5334);
394
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
395
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
396
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
397
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iam/user.vue?vue&type=script&lang=ts
398
-
399
-
400
-
401
- const logout = "localStorage.removeItem('accessToken');location.reload();";
402
- /* harmony default export */ var uservue_type_script_lang_ts = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
403
- name: 'IamUser',
404
- data() {
405
- return {
406
- state: "未登录",
407
- isShowInfo: false,
408
- payload: null
409
- };
410
- },
411
- mounted() {
412
- // localStorage.setItem("accessToken", 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwibmFtZSI6ImFkbWluIiwiYXVkIjoiREVGQVVMVF9TQ09QRTt0ZW5hbnRJZD0wIiwiZXhwIjoxNzIxMjMzMTE0LCJpc3MiOiJmb29AYmFyLm5ldCIsImlhdCI6MTcyMTE0NjcxNH0.mykPFQv2fkqmEk1UJs6vErtwATIdUmmbNvJDCMP4pMI');
413
- let accessToken = localStorage.getItem("accessToken");
414
- if (accessToken) {
415
- // 将 JWT Token 拆分为三个部分
416
- const tokenParts = accessToken.split(".");
417
- const payload = JSON.parse(atob(tokenParts[1])); // 解析载荷
418
- this.payload = payload;
419
- this.state = payload.name + "已登录";
420
- }
421
- },
422
- methods: {
423
- showUserInfo() {
424
- if (this.state === "未登录") {
425
- // @ts-ignore xxx
426
- location.assign(window.config.loginUrl);
427
- } else {
428
- this.$Modal.info({
429
- title: "当前用户信息",
430
- content: `<p>用户名: ${this.payload.name}</p><p>Token 过期时间:${util_.Utils.dateFormat.call(new Date(this.payload.exp * 1000), "yyyy-MM-dd hh:mm:ss")}</p><p><a href="#" onclick="${logout}">用户登出</a></p>`
431
- });
432
- }
433
- }
434
- }
435
- }));
436
- ;// CONCATENATED MODULE: ./src/iam/user.vue?vue&type=script&lang=ts
437
- /* harmony default export */ var iam_uservue_type_script_lang_ts = (uservue_type_script_lang_ts);
438
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
439
- var componentNormalizer = __webpack_require__(1656);
440
- ;// CONCATENATED MODULE: ./src/iam/user.vue
441
-
442
-
443
-
444
-
445
-
446
- /* normalize component */
447
- ;
448
- var component = (0,componentNormalizer/* default */.A)(
449
- iam_uservue_type_script_lang_ts,
450
- render,
451
- staticRenderFns,
452
- false,
453
- null,
454
- null,
455
- null
456
-
457
- )
458
-
459
- /* harmony default export */ var user = (component.exports);
460
-
461
- /***/ }),
462
-
463
- /***/ 3246:
464
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
465
-
466
- "use strict";
467
- // ESM COMPAT FLAG
468
- __webpack_require__.r(__webpack_exports__);
469
-
470
- // EXPORTS
471
- __webpack_require__.d(__webpack_exports__, {
472
- "default": function() { return /* binding */ fast_iview_table; }
473
- });
474
-
475
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/fast-iview-table.vue?vue&type=template&id=75ca7672&scoped=true
476
- var render = function render() {
477
- var _vm = this,
478
- _c = _vm._self._c,
479
- _setup = _vm._self._setupProxy;
480
- return _c('div', [_c('Card', {
481
- staticClass: "common-search-panel",
482
- staticStyle: {
483
- "text-align": "left"
484
- },
485
- attrs: {
486
- "bordered": false,
487
- "dis-hover": ""
488
- }
489
- }, [_c('span', {
490
- staticStyle: {
491
- "float": "right"
492
- }
493
- }, [_c('Button', {
494
- attrs: {
495
- "type": "primary",
496
- "icon": "ios-search"
497
- },
498
- on: {
499
- "click": function ($event) {
500
- return _vm.$parent.getData();
501
- }
502
- }
503
- }, [_vm._v("查询")]), _c('Button', {
504
- staticStyle: {
505
- "margin-left": "10px"
506
- },
507
- on: {
508
- "click": _vm.reset
509
- }
510
- }, [_vm._v("重置")])], 1), _c('Input', {
511
- attrs: {
512
- "suffix": "ios-search",
513
- "clearable": "",
514
- "placeholder": '请输入' + _vm.widgetName_ + '名称'
515
- },
516
- on: {
517
- "on-enter": _vm.getData
518
- },
519
- model: {
520
- value: _vm.list.search.name,
521
- callback: function ($$v) {
522
- _vm.$set(_vm.list.search, "name", $$v);
523
- },
524
- expression: "list.search.name"
525
- }
526
- })], 1), _c('div', [_c('Card', {
527
- attrs: {
528
- "bordered": false,
529
- "dis-hover": ""
530
- }
531
- }, [_c('div', {
532
- staticClass: "toolbar"
533
- }, [_c('Tooltip', {
534
- staticClass: "ivu-ml",
535
- attrs: {
536
- "content": "刷新",
537
- "placement": "top"
538
- }
539
- }, [_c('Icon', {
540
- staticStyle: {
541
- "cursor": "pointer"
542
- },
543
- attrs: {
544
- "size": "20",
545
- "type": "ios-refresh"
546
- },
547
- on: {
548
- "click": _vm.getData
549
- }
550
- })], 1), _vm._t("toolbar"), !!_vm.createRoute || !!_vm.$parent.onCreate ? _c('Button', {
551
- attrs: {
552
- "type": "primary",
553
- "icon": "md-add"
554
- },
555
- on: {
556
- "click": _vm.onCreate
557
- }
558
- }, [_vm._v("新建" + _vm._s(_vm.widgetName_))]) : _vm._e()], 2), _c('Table', {
559
- attrs: {
560
- "columns": _vm.list.columns,
561
- "data": _vm.list.data,
562
- "loading": _vm.list.loading,
563
- "height": "500"
564
- },
565
- scopedSlots: _vm._u([{
566
- key: "action",
567
- fn: function ({
568
- row,
569
- index
570
- }) {
571
- return [_vm._t("list_action", null, {
572
- "item": row
573
- }), _vm.pickup ? _c('a', {
574
- staticStyle: {
575
- "color": "green"
576
- },
577
- on: {
578
- "click": function ($event) {
579
- return _vm.doPickup(row);
580
- }
581
- }
582
- }, [_vm._v("选择")]) : _vm._e(), !_vm.pickup ? _c('span', [_c('a', {
583
- staticStyle: {
584
- "color": "green"
585
- },
586
- on: {
587
- "click": function ($event) {
588
- return _vm.onEdit(row.id);
589
- }
590
- }
591
- }, [_vm._v("编辑")]), _c('Divider', {
592
- attrs: {
593
- "type": "vertical"
594
- }
595
- }), _c('Poptip', {
596
- attrs: {
597
- "confirm": "",
598
- "transfer": "",
599
- "title": "是否要删除此行?"
600
- },
601
- on: {
602
- "on-ok": function ($event) {
603
- return _vm.deleteInfo(row.id, index);
604
- }
605
- }
606
- }, [_c('a', {
607
- staticStyle: {
608
- "color": "red"
609
- }
610
- }, [_vm._v("删除")])])], 1) : _vm._e()];
611
- }
612
- }], null, true)
613
- }), _c('Page', {
614
- staticClass: "ivu-mt ivu-text-right",
615
- attrs: {
616
- "total": _vm.list.total,
617
- "current": _vm.list.pageNo,
618
- "show-total": "",
619
- "show-sizer": "",
620
- "page-size": _vm.list.limit
621
- },
622
- on: {
623
- "update:current": function ($event) {
624
- return _vm.$set(_vm.list, "pageNo", $event);
625
- },
626
- "on-page-size-change": _vm.handleChangePageSize
627
- }
628
- })], 1)], 1)], 1);
629
- };
630
- var staticRenderFns = [];
631
-
632
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
633
- var es_array_push = __webpack_require__(4114);
634
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
635
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
636
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
637
- // EXTERNAL MODULE: ./src/iview-ext/list.ts
638
- var list = __webpack_require__(6361);
639
- // EXTERNAL MODULE: external "@ajaxjs/util"
640
- var util_ = __webpack_require__(5334);
641
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./src/iview-ext/fast-iview-table.ts?vue&type=script&lang=ts&external
642
-
643
-
644
-
645
-
646
- /* harmony default export */ var fast_iview_tablevue_type_script_lang_ts_external = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
647
- name: "FastViewTable",
648
- props: {
649
- widgetName: {
650
- type: String,
651
- required: false
652
- },
653
- apiUrl: {
654
- type: String,
655
- required: false
656
- },
657
- columnsDef: {
658
- type: Array,
659
- required: false
660
- },
661
- listApiUrl: {
662
- type: String,
663
- required: true
664
- },
665
- createRoute: {
666
- type: String,
667
- required: false
668
- },
669
- editRoute: {
670
- type: String,
671
- required: false
672
- },
673
- pickup: {
674
- type: Boolean,
675
- required: false
676
- } // 编辑事件触发时候,进入的路由地址
677
- },
678
- data() {
679
- return {
680
- widgetName_: this.widgetName,
681
- listApiUrl_: this.listApiUrl,
682
- colDefId: 0,
683
- list: {
684
- columns: this.columnsDef || [],
685
- data: [],
686
- total: 0,
687
- start: 0,
688
- limit: 9,
689
- pageNo: 1,
690
- pageSize: 9,
691
- loading: false,
692
- search: {
693
- name: ''
694
- }
695
- }
696
- };
697
- },
698
- mounted() {
699
- this.getData();
700
- },
701
- methods: {
702
- getData() {
703
- this.list.loading = true;
704
- const params = {
705
- pageNo: this.list.pageNo,
706
- pageSize: this.list.pageSize
707
- };
708
- // if (this.list.search.name)
709
- // params.where = `name LIKE '%${this.list.search.name}%'`;
710
- this.listApiUrl_ && util_.Xhr.xhr_get(this.listApiUrl_, j => {
711
- this.list.loading = false;
712
- if (j.status) {
713
- this.list.data = j.data.rows;
714
- this.list.total = j.data.total;
715
- } else this.$Message.warning(j.message || '获取列表失败');
716
- }, params);
717
- },
718
- /**
719
- * 分页记录数
720
- */
721
- handleChangePageSize(pageSize) {
722
- this.list.limit = pageSize;
723
- this.getData();
724
- },
725
- reset() {
726
- for (const i in this.search) this.search[i] = "";
727
- this.getData();
728
- },
729
- /**
730
- * 新建
731
- */
732
- onCreate() {
733
- if (this.createRoute) this.$router.push({
734
- path: this.createRoute
735
- }); // 进入详情页,采用相对路径
736
- else {
737
- if (!this.$parent.onCreate) throw '请设置父组件的 onCreate 事件处理器';
738
- this.$parent.onCreate();
739
- }
740
- },
741
- /**
742
- * 编辑
743
- */
744
- onEdit(id) {
745
- if (this.editRoute) this.$router.push({
746
- path: this.editRoute,
747
- query: {
748
- id
749
- }
750
- }); // 进入详情页,采用相对路径
751
- else {
752
- if (!this.$parent.onEdit) throw '请设置父组件的 onEdit 事件处理器';
753
- this.$parent.onEdit(id);
754
- }
755
- },
756
- doPickup(data) {
757
- this.$emit("on-select", data);
758
- },
759
- deleteInfo(id, index) {
760
- this.list.loading = true;
761
- util_.Xhr.xhr_del(`${this.apiUrl}/${id}`, list/* default */.A.afterDelete(() => {
762
- this.list.data.splice(index, 1);
763
- this.list.total--;
764
- this.list.loading = false;
765
- }).bind(this));
766
- }
767
- },
768
- watch: {
769
- listApiUrl(v) {
770
- // debugger
771
- this.listApiUrl_ = v;
772
- this.getData();
773
- },
774
- /**
775
- * 分页
776
- *
777
- * @param v
778
- */
779
- current(v) {
780
- this.start = (v - 1) * this.list.limit;
781
- this.getData();
782
- },
783
- 'list.pageNo'(v) {
784
- this.list.start = (v - 1) * this.list.limit;
785
- this.getData();
786
- }
787
- }
788
- }));
789
- ;// CONCATENATED MODULE: ./src/iview-ext/fast-iview-table.ts?vue&type=script&lang=ts&external
790
- /* harmony default export */ var iview_ext_fast_iview_tablevue_type_script_lang_ts_external = (fast_iview_tablevue_type_script_lang_ts_external);
791
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-57.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-57.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-57.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/fast-iview-table.vue?vue&type=style&index=0&id=75ca7672&prod&scoped=true&lang=css
792
- // extracted by mini-css-extract-plugin
793
-
794
- ;// CONCATENATED MODULE: ./src/iview-ext/fast-iview-table.vue?vue&type=style&index=0&id=75ca7672&prod&scoped=true&lang=css
795
-
796
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
797
- var componentNormalizer = __webpack_require__(1656);
798
- ;// CONCATENATED MODULE: ./src/iview-ext/fast-iview-table.vue
799
-
800
-
801
-
802
- ;
803
-
804
-
805
- /* normalize component */
806
-
807
- var component = (0,componentNormalizer/* default */.A)(
808
- iview_ext_fast_iview_tablevue_type_script_lang_ts_external,
809
- render,
810
- staticRenderFns,
811
- false,
812
- null,
813
- "75ca7672",
814
- null
815
-
816
- )
817
-
818
- /* harmony default export */ var fast_iview_table = (component.exports);
819
-
820
- /***/ }),
821
-
822
- /***/ 2863:
823
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
824
-
825
- "use strict";
826
- // ESM COMPAT FLAG
827
- __webpack_require__.r(__webpack_exports__);
828
-
829
- // EXPORTS
830
- __webpack_require__.d(__webpack_exports__, {
831
- "default": function() { return /* binding */ table_selector; }
832
- });
833
-
834
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/table-selector.vue?vue&type=template&id=33269380
835
- var render = function render() {
836
- var _vm = this,
837
- _c = _vm._self._c,
838
- _setup = _vm._self._setupProxy;
839
- return _c('div', {
840
- staticClass: "table-selector"
841
- }, [_c('Row', {
842
- staticStyle: {
843
- "margin": "20px 0"
844
- },
845
- attrs: {
846
- "type": "flex",
847
- "justify": "center",
848
- "align": "middle"
849
- }
850
- }, [_vm.isCrossDb ? _c('i-Col', {
851
- staticStyle: {
852
- "padding-right": "10px"
853
- },
854
- attrs: {
855
- "span": "6"
856
- }
857
- }, [_c('i-Select', {
858
- attrs: {
859
- "placeholder": "请选择数据库名"
860
- },
861
- model: {
862
- value: _vm.databaseName,
863
- callback: function ($$v) {
864
- _vm.databaseName = $$v;
865
- },
866
- expression: "databaseName"
867
- }
868
- }, _vm._l(_vm.databaseList, function (d) {
869
- return _c('i-Option', {
870
- key: d,
871
- attrs: {
872
- "value": d
873
- }
874
- }, [_vm._v(_vm._s(d))]);
875
- }), 1)], 1) : _vm._e(), _c('i-Col', {
876
- attrs: {
877
- "span": _vm.isCrossDb ? 6 : 12
878
- }
879
- }, [_c('i-Input', {
880
- ref: "inputEl",
881
- attrs: {
882
- "search": "",
883
- "enter-button": "",
884
- "placeholder": "按表名模糊搜索"
885
- },
886
- on: {
887
- "on-keyup": _vm.search
888
- }
889
- })], 1), _c('i-Col', {
890
- attrs: {
891
- "span": "12"
892
- }
893
- }, [_vm._v("    "), _c('a', {
894
- on: {
895
- "click": _vm.resetData
896
- }
897
- }, [_vm._v("重置")])])], 1), _c('i-Table', {
898
- staticClass: "table-selector-table",
899
- attrs: {
900
- "columns": _vm.list_column,
901
- "data": _vm.data,
902
- "width": "100%",
903
- "max-height": "300",
904
- "loading": _vm.loading
905
- },
906
- on: {
907
- "on-selection-change": _vm.onSelect
908
- },
909
- scopedSlots: _vm._u([{
910
- key: "select",
911
- fn: function ({
912
- row
913
- }) {
914
- return [_c('a', {
915
- on: {
916
- "click": function ($event) {
917
- return _vm.$emit('on-select', row, _vm.databaseName);
918
- }
919
- }
920
- }, [_vm._v("选择")])];
921
- }
922
- }])
923
- }), _c('br'), !_vm.isFilter ? _c('div', {
924
- staticClass: "ivu-mt ivu-text-right"
925
- }, [_c('Page', {
926
- attrs: {
927
- "total": _vm.total,
928
- "current": _vm.current,
929
- "show-total": "",
930
- "page-size": _vm.pageSize
931
- },
932
- on: {
933
- "update:current": function ($event) {
934
- _vm.current = $event;
935
- }
936
- }
937
- })], 1) : _vm._e()], 1);
938
- };
939
- var staticRenderFns = [];
940
-
941
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
942
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
943
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
944
- // EXTERNAL MODULE: external "@ajaxjs/util"
945
- var util_ = __webpack_require__(5334);
946
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/table-selector.vue?vue&type=script&lang=js
947
-
948
-
949
-
950
- // 选择表
951
- /* harmony default export */ var table_selectorvue_type_script_lang_js = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
952
- name: "TableSelector",
953
- data() {
954
- return {
955
- // isCrossDb: false,
956
- list_column: [{
957
- title: "#",
958
- // key: 'id',
959
- width: 60,
960
- type: "index"
961
- // type: 'selection'
962
- }, {
963
- title: "表名",
964
- key: "tableName"
965
- }, {
966
- title: "说明",
967
- key: "comment"
968
- }, {
969
- title: "操作",
970
- slot: "select"
971
- }],
972
- listData: [],
973
- // 显示数据
974
- data: [],
975
- // 全部数据
976
- total: 0,
977
- current: 1,
978
- pageSize: 5,
979
- isFilter: false,
980
- start: 0,
981
- searchKeyword: "",
982
- loading: false,
983
- databaseList: [],
984
- databaseName: ""
985
- };
986
- },
987
- props: {
988
- isCrossDb: {
989
- type: Boolean,
990
- required: true
991
- },
992
- dataSourceId: {
993
- type: Number,
994
- required: true
995
- }
996
- },
997
- mounted() {
998
- // this.isCrossDb = true;
999
- this.getData();
1000
- },
1001
- methods: {
1002
- getData() {
1003
- this.loading = true;
1004
- let url = `${window.config.dsApiRoot}/datasource/${this.dataSourceId}/get_all_tables?start=${this.start}&limit=${this.pageSize}`;
1005
- // let url = `${DS_CONFIG.API_ROOT}/admin0/${this.dataSourceId}/getAllTables?start=${this.start}&limit=${this.pageSize}`;
1006
-
1007
- if (this.searchKeyword) url += `&tableName=${this.searchKeyword}`;
1008
- if (this.databaseName) url += `&dbName=${this.databaseName}`;
1009
- util_.Xhr.xhr_get(url, j => {
1010
- if (j.status) {
1011
- this.data = j.data.rows;
1012
- this.total = j.data.total;
1013
- } else this.$Message.error(j.message);
1014
- this.loading = false;
1015
- });
1016
- },
1017
- handleChangePageSize() {
1018
- let start = (this.current - 1) * this.pageSize,
1019
- end = start + this.pageSize;
1020
- this.listData = this.data.slice(start, end);
1021
- },
1022
- onSelect(arr) {
1023
- // arr.forEach((item) => {
1024
- // this.data.forEach((_item) => {});
1025
- // });
1026
- },
1027
- resetData() {
1028
- this.searchKeyword = "";
1029
- this.start = 0;
1030
- this.getData();
1031
- this.$refs.inputEl.$el.querySelector("input").value = "";
1032
- },
1033
- search(ev) {
1034
- let input = ev.target,
1035
- v = input.value;
1036
- if (v) {
1037
- this.searchKeyword = v;
1038
- this.start = 0;
1039
- this.current = 1;
1040
- this.getData();
1041
- }
1042
- },
1043
- onkeypress(ev) {
1044
- let input = ev.target,
1045
- v = input.value;
1046
- if (v) {
1047
- this.isFilter = true;
1048
- let arr = this.data.filter(item => item.tableName.indexOf(v) != -1);
1049
- this.listData = arr;
1050
- } else {
1051
- this.resetData();
1052
- }
1053
- }
1054
- },
1055
- watch: {
1056
- /**
1057
- * 分页
1058
- *
1059
- * @param v
1060
- */
1061
- current(v) {
1062
- this.start = (v - 1) * this.pageSize;
1063
- this.getData();
1064
- },
1065
- dataSourceId(id) {
1066
- if (id) {
1067
- if (this.isCrossDb) util_.Xhr.xhr_get(`/admin/${this.dataSourceId}/get_databases`, j => {
1068
- if (j.status) {
1069
- // 过滤 mysql 自带的库
1070
- let not = ["information_schema", "performance_schema", "sys", "mysql"];
1071
- let arr = j.data.filter(db => !not.includes(db));
1072
- this.databaseList = arr;
1073
-
1074
- // 默认选中第一个
1075
- this.start = 0;
1076
- this.current = 1;
1077
- this.databaseName = arr[0];
1078
- } else this.$Message.error(j.message);
1079
- });else {
1080
- this.databaseName = null;
1081
- this.getData();
1082
- }
1083
- }
1084
- },
1085
- databaseName(v) {
1086
- this.getData(); // 会重复请求
1087
- }
1088
- }
1089
- }));
1090
- ;// CONCATENATED MODULE: ./src/iview-ext/table-selector.vue?vue&type=script&lang=js
1091
- /* harmony default export */ var iview_ext_table_selectorvue_type_script_lang_js = (table_selectorvue_type_script_lang_js);
1092
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1093
- var componentNormalizer = __webpack_require__(1656);
1094
- ;// CONCATENATED MODULE: ./src/iview-ext/table-selector.vue
1095
-
1096
-
1097
-
1098
-
1099
-
1100
- /* normalize component */
1101
- ;
1102
- var component = (0,componentNormalizer/* default */.A)(
1103
- iview_ext_table_selectorvue_type_script_lang_js,
1104
- render,
1105
- staticRenderFns,
1106
- false,
1107
- null,
1108
- null,
1109
- null
1110
-
1111
- )
1112
-
1113
- /* harmony default export */ var table_selector = (component.exports);
1114
-
1115
- /***/ }),
1116
-
1117
- /***/ 629:
1118
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1119
-
1120
- "use strict";
1121
- // ESM COMPAT FLAG
1122
- __webpack_require__.r(__webpack_exports__);
1123
-
1124
- // EXPORTS
1125
- __webpack_require__.d(__webpack_exports__, {
1126
- "default": function() { return /* binding */ tips; }
1127
- });
1128
-
1129
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/tips.vue?vue&type=template&id=71713021
1130
- var render = function render() {
1131
- var _vm = this,
1132
- _c = _vm._self._c,
1133
- _setup = _vm._self._setupProxy;
1134
- return _c('i', {
1135
- staticClass: "ivu-icon ivu-icon-ios-help-circle-outline",
1136
- staticStyle: {
1137
- "cursor": "pointer"
1138
- },
1139
- attrs: {
1140
- "title": _vm.text
1141
- }
1142
- });
1143
- };
1144
- var staticRenderFns = [];
1145
-
1146
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
1147
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
1148
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
1149
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/tips.vue?vue&type=script&lang=js
1150
-
1151
-
1152
- /**
1153
- * 帮助图标
1154
- */
1155
- /* harmony default export */ var tipsvue_type_script_lang_js = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
1156
- name: 'Tips',
1157
- props: {
1158
- text: {
1159
- type: String,
1160
- required: true
1161
- }
1162
- }
1163
- }));
1164
- ;// CONCATENATED MODULE: ./src/iview-ext/tips.vue?vue&type=script&lang=js
1165
- /* harmony default export */ var iview_ext_tipsvue_type_script_lang_js = (tipsvue_type_script_lang_js);
1166
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1167
- var componentNormalizer = __webpack_require__(1656);
1168
- ;// CONCATENATED MODULE: ./src/iview-ext/tips.vue
1169
-
1170
-
1171
-
1172
-
1173
-
1174
- /* normalize component */
1175
- ;
1176
- var component = (0,componentNormalizer/* default */.A)(
1177
- iview_ext_tipsvue_type_script_lang_js,
1178
- render,
1179
- staticRenderFns,
1180
- false,
1181
- null,
1182
- null,
1183
- null
1184
-
1185
- )
1186
-
1187
- /* harmony default export */ var tips = (component.exports);
1188
-
1189
- /***/ }),
1190
-
1191
- /***/ 1656:
1192
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1193
-
1194
- "use strict";
1195
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1196
- /* harmony export */ A: function() { return /* binding */ normalizeComponent; }
1197
- /* harmony export */ });
1198
- /* globals __VUE_SSR_CONTEXT__ */
1199
-
1200
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1201
- // This module is a runtime utility for cleaner component module output and will
1202
- // be included in the final webpack user bundle.
1203
-
1204
- function normalizeComponent(
1205
- scriptExports,
1206
- render,
1207
- staticRenderFns,
1208
- functionalTemplate,
1209
- injectStyles,
1210
- scopeId,
1211
- moduleIdentifier /* server only */,
1212
- shadowMode /* vue-cli only */
1213
- ) {
1214
- // Vue.extend constructor export interop
1215
- var options =
1216
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1217
-
1218
- // render functions
1219
- if (render) {
1220
- options.render = render
1221
- options.staticRenderFns = staticRenderFns
1222
- options._compiled = true
1223
- }
1224
-
1225
- // functional template
1226
- if (functionalTemplate) {
1227
- options.functional = true
1228
- }
1229
-
1230
- // scopedId
1231
- if (scopeId) {
1232
- options._scopeId = 'data-v-' + scopeId
1233
- }
1234
-
1235
- var hook
1236
- if (moduleIdentifier) {
1237
- // server build
1238
- hook = function (context) {
1239
- // 2.3 injection
1240
- context =
1241
- context || // cached call
1242
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1243
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1244
- // 2.2 with runInNewContext: true
1245
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1246
- context = __VUE_SSR_CONTEXT__
1247
- }
1248
- // inject component styles
1249
- if (injectStyles) {
1250
- injectStyles.call(this, context)
1251
- }
1252
- // register component module identifier for async chunk inferrence
1253
- if (context && context._registeredComponents) {
1254
- context._registeredComponents.add(moduleIdentifier)
1255
- }
1256
- }
1257
- // used by ssr in case component is cached and beforeCreate
1258
- // never gets called
1259
- options._ssrRegister = hook
1260
- } else if (injectStyles) {
1261
- hook = shadowMode
1262
- ? function () {
1263
- injectStyles.call(
1264
- this,
1265
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1266
- )
1267
- }
1268
- : injectStyles
1269
- }
1270
-
1271
- if (hook) {
1272
- if (options.functional) {
1273
- // for template-only hot-reload because in that case the render fn doesn't
1274
- // go through the normalizer
1275
- options._injectStyles = hook
1276
- // register for functional component in vue file
1277
- var originalRender = options.render
1278
- options.render = function renderWithStyleInjection(h, context) {
1279
- hook.call(context)
1280
- return originalRender(h, context)
1281
- }
1282
- } else {
1283
- // inject component registration as beforeCreate hook
1284
- var existing = options.beforeCreate
1285
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1286
- }
1287
- }
1288
-
1289
- return {
1290
- exports: scriptExports,
1291
- options: options
1292
- }
1293
- }
1294
-
1295
-
1296
- /***/ }),
1297
-
1298
- /***/ 6361:
1299
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1300
-
1301
- "use strict";
1302
- /* harmony import */ var _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5334);
1303
- /* harmony import */ var _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__);
1304
-
1305
- /* harmony default export */ __webpack_exports__.A = ({
1306
- afterDelete(cb) {
1307
- return function (j) {
1308
- if (j.status) {
1309
- cb && cb(j);
1310
- this.$Message.success('删除成功');
1311
- } else this.$Message.info('删除失败。' + j.message);
1312
- };
1313
- },
1314
- delInfo(index) {
1315
- _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__.Xhr.xhr_del(`${this.API}/${this.list.data[index].id}`, j => {
1316
- if (j.status) {
1317
- this.list.data.splice(index, 1);
1318
- this.list.total--;
1319
- this.$Message.success('删除成功');
1320
- } else this.$Message.info('删除失败。' + j.message);
1321
- });
1322
- },
1323
- /**
1324
- * id 列
1325
- */
1326
- id: {
1327
- title: '#',
1328
- width: 60,
1329
- key: 'id',
1330
- align: 'center'
1331
- },
1332
- /**
1333
- * 创建日期
1334
- */
1335
- createDate: {
1336
- title: '创建日期',
1337
- /* key: 'createDate', */width: 160,
1338
- align: 'center',
1339
- render(h, params) {
1340
- return h('div', _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__.Utils.dateFormat.call(new Date(params.row.createDate), 'yyyy-MM-dd hh:mm'));
1341
- }
1342
- },
1343
- /**
1344
- * 分类标签
1345
- */
1346
- tags: {
1347
- title: '分类标签',
1348
- minWidth: 100,
1349
- key: 'tagsNames',
1350
- align: 'center',
1351
- ellipsis: true
1352
- },
1353
- status: {
1354
- title: '状态',
1355
- width: 80,
1356
- render(h, params) {
1357
- let str = '',
1358
- color = '';
1359
- switch (params.row.stat) {
1360
- case -1:
1361
- str = '草稿';
1362
- color = 'gray';
1363
- break;
1364
- case 2:
1365
- color = 'red';
1366
- str = '禁用';
1367
- break;
1368
- case 1:
1369
- color = 'red';
1370
- str = '已删除';
1371
- break;
1372
- case null:
1373
- case 0:
1374
- default:
1375
- color = 'green';
1376
- str = "启用";
1377
- }
1378
- return h('div', {
1379
- style: {
1380
- color: color
1381
- }
1382
- }, str);
1383
- }
1384
- },
1385
- getPageList(self, listArray, callback) {
1386
- return j => {
1387
- if (j.status) {
1388
- listArray.total = j.data.total;
1389
- listArray.data = j.data.rows;
1390
- callback && callback();
1391
- } else self.$Message.warning(j.message || '获取数据失败');
1392
- };
1393
- },
1394
- copyBeanClean(bean) {
1395
- const deepCopy = JSON.parse(JSON.stringify(bean));
1396
- delete deepCopy.createDate;
1397
- delete deepCopy.updateDate;
1398
- delete deepCopy.updateDate;
1399
- delete deepCopy.creatorId;
1400
- delete deepCopy.updaterId;
1401
- delete deepCopy.creator;
1402
- delete deepCopy.updater;
1403
- delete deepCopy.extend;
1404
- return deepCopy;
1405
- }
1406
- });
1407
-
1408
- /***/ }),
1409
-
1410
- /***/ 9887:
1411
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1412
-
1413
- var map = {
1414
- "./data-source/data-source.vue": 9298,
1415
- "./iam/user.vue": 8599,
1416
- "./iview-ext/fast-iview-table.vue": 3246,
1417
- "./iview-ext/table-selector.vue": 2863,
1418
- "./iview-ext/tips.vue": 629
1419
- };
1420
-
1421
-
1422
- function webpackContext(req) {
1423
- var id = webpackContextResolve(req);
1424
- return __webpack_require__(id);
1425
- }
1426
- function webpackContextResolve(req) {
1427
- if(!__webpack_require__.o(map, req)) {
1428
- var e = new Error("Cannot find module '" + req + "'");
1429
- e.code = 'MODULE_NOT_FOUND';
1430
- throw e;
1431
- }
1432
- return map[req];
1433
- }
1434
- webpackContext.keys = function webpackContextKeys() {
1435
- return Object.keys(map);
1436
- };
1437
- webpackContext.resolve = webpackContextResolve;
1438
- module.exports = webpackContext;
1439
- webpackContext.id = 9887;
1440
-
1441
- /***/ }),
1442
-
1443
- /***/ 5334:
1444
- /***/ (function(module) {
1445
-
1446
- "use strict";
1447
- module.exports = __WEBPACK_EXTERNAL_MODULE__5334__;
1448
-
1449
- /***/ }),
1450
-
1451
- /***/ 9274:
1452
- /***/ (function(module) {
1453
-
1454
- "use strict";
1455
- module.exports = __WEBPACK_EXTERNAL_MODULE__9274__;
1456
-
1457
- /***/ }),
1458
-
1459
- /***/ 9306:
1460
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1461
-
1462
- "use strict";
1463
-
1464
- var isCallable = __webpack_require__(4901);
1465
- var tryToString = __webpack_require__(6823);
1466
-
1467
- var $TypeError = TypeError;
1468
-
1469
- // `Assert: IsCallable(argument) is true`
1470
- module.exports = function (argument) {
1471
- if (isCallable(argument)) return argument;
1472
- throw new $TypeError(tryToString(argument) + ' is not a function');
1473
- };
1474
-
1475
-
1476
- /***/ }),
1477
-
1478
- /***/ 3506:
1479
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1480
-
1481
- "use strict";
1482
-
1483
- var isPossiblePrototype = __webpack_require__(3925);
1484
-
1485
- var $String = String;
1486
- var $TypeError = TypeError;
1487
-
1488
- module.exports = function (argument) {
1489
- if (isPossiblePrototype(argument)) return argument;
1490
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1491
- };
1492
-
1493
-
1494
- /***/ }),
1495
-
1496
- /***/ 679:
1497
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1498
-
1499
- "use strict";
1500
-
1501
- var isPrototypeOf = __webpack_require__(1625);
1502
-
1503
- var $TypeError = TypeError;
1504
-
1505
- module.exports = function (it, Prototype) {
1506
- if (isPrototypeOf(Prototype, it)) return it;
1507
- throw new $TypeError('Incorrect invocation');
1508
- };
1509
-
1510
-
1511
- /***/ }),
1512
-
1513
- /***/ 8551:
1514
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1515
-
1516
- "use strict";
1517
-
1518
- var isObject = __webpack_require__(34);
1519
-
1520
- var $String = String;
1521
- var $TypeError = TypeError;
1522
-
1523
- // `Assert: Type(argument) is Object`
1524
- module.exports = function (argument) {
1525
- if (isObject(argument)) return argument;
1526
- throw new $TypeError($String(argument) + ' is not an object');
1527
- };
1528
-
1529
-
1530
- /***/ }),
1531
-
1532
- /***/ 9617:
1533
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1534
-
1535
- "use strict";
1536
-
1537
- var toIndexedObject = __webpack_require__(5397);
1538
- var toAbsoluteIndex = __webpack_require__(5610);
1539
- var lengthOfArrayLike = __webpack_require__(6198);
1540
-
1541
- // `Array.prototype.{ indexOf, includes }` methods implementation
1542
- var createMethod = function (IS_INCLUDES) {
1543
- return function ($this, el, fromIndex) {
1544
- var O = toIndexedObject($this);
1545
- var length = lengthOfArrayLike(O);
1546
- if (length === 0) return !IS_INCLUDES && -1;
1547
- var index = toAbsoluteIndex(fromIndex, length);
1548
- var value;
1549
- // Array#includes uses SameValueZero equality algorithm
1550
- // eslint-disable-next-line no-self-compare -- NaN check
1551
- if (IS_INCLUDES && el !== el) while (length > index) {
1552
- value = O[index++];
1553
- // eslint-disable-next-line no-self-compare -- NaN check
1554
- if (value !== value) return true;
1555
- // Array#indexOf ignores holes, Array#includes - not
1556
- } else for (;length > index; index++) {
1557
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1558
- } return !IS_INCLUDES && -1;
1559
- };
1560
- };
1561
-
1562
- module.exports = {
1563
- // `Array.prototype.includes` method
1564
- // https://tc39.es/ecma262/#sec-array.prototype.includes
1565
- includes: createMethod(true),
1566
- // `Array.prototype.indexOf` method
1567
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
1568
- indexOf: createMethod(false)
1569
- };
1570
-
1571
-
1572
- /***/ }),
1573
-
1574
- /***/ 4527:
1575
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1576
-
1577
- "use strict";
1578
-
1579
- var DESCRIPTORS = __webpack_require__(3724);
1580
- var isArray = __webpack_require__(4376);
1581
-
1582
- var $TypeError = TypeError;
1583
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1584
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1585
-
1586
- // Safari < 13 does not throw an error in this case
1587
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
1588
- // makes no sense without proper strict mode support
1589
- if (this !== undefined) return true;
1590
- try {
1591
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1592
- Object.defineProperty([], 'length', { writable: false }).length = 1;
1593
- } catch (error) {
1594
- return error instanceof TypeError;
1595
- }
1596
- }();
1597
-
1598
- module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1599
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1600
- throw new $TypeError('Cannot set read only .length');
1601
- } return O.length = length;
1602
- } : function (O, length) {
1603
- return O.length = length;
1604
- };
1605
-
1606
-
1607
- /***/ }),
1608
-
1609
- /***/ 2195:
1610
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1611
-
1612
- "use strict";
1613
-
1614
- var uncurryThis = __webpack_require__(9504);
1615
-
1616
- var toString = uncurryThis({}.toString);
1617
- var stringSlice = uncurryThis(''.slice);
1618
-
1619
- module.exports = function (it) {
1620
- return stringSlice(toString(it), 8, -1);
1621
- };
1622
-
1623
-
1624
- /***/ }),
1625
-
1626
- /***/ 6955:
1627
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1628
-
1629
- "use strict";
1630
-
1631
- var TO_STRING_TAG_SUPPORT = __webpack_require__(2140);
1632
- var isCallable = __webpack_require__(4901);
1633
- var classofRaw = __webpack_require__(2195);
1634
- var wellKnownSymbol = __webpack_require__(8227);
1635
-
1636
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1637
- var $Object = Object;
1638
-
1639
- // ES3 wrong here
1640
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1641
-
1642
- // fallback for IE11 Script Access Denied error
1643
- var tryGet = function (it, key) {
1644
- try {
1645
- return it[key];
1646
- } catch (error) { /* empty */ }
1647
- };
1648
-
1649
- // getting tag from ES6+ `Object.prototype.toString`
1650
- module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1651
- var O, tag, result;
1652
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1653
- // @@toStringTag case
1654
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1655
- // builtinTag case
1656
- : CORRECT_ARGUMENTS ? classofRaw(O)
1657
- // ES3 arguments fallback
1658
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1659
- };
1660
-
1661
-
1662
- /***/ }),
1663
-
1664
- /***/ 7740:
1665
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1666
-
1667
- "use strict";
1668
-
1669
- var hasOwn = __webpack_require__(9297);
1670
- var ownKeys = __webpack_require__(5031);
1671
- var getOwnPropertyDescriptorModule = __webpack_require__(7347);
1672
- var definePropertyModule = __webpack_require__(4913);
1673
-
1674
- module.exports = function (target, source, exceptions) {
1675
- var keys = ownKeys(source);
1676
- var defineProperty = definePropertyModule.f;
1677
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1678
- for (var i = 0; i < keys.length; i++) {
1679
- var key = keys[i];
1680
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1681
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1682
- }
1683
- }
1684
- };
1685
-
1686
-
1687
- /***/ }),
1688
-
1689
- /***/ 6699:
1690
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1691
-
1692
- "use strict";
1693
-
1694
- var DESCRIPTORS = __webpack_require__(3724);
1695
- var definePropertyModule = __webpack_require__(4913);
1696
- var createPropertyDescriptor = __webpack_require__(6980);
1697
-
1698
- module.exports = DESCRIPTORS ? function (object, key, value) {
1699
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
1700
- } : function (object, key, value) {
1701
- object[key] = value;
1702
- return object;
1703
- };
1704
-
1705
-
1706
- /***/ }),
1707
-
1708
- /***/ 6980:
1709
- /***/ (function(module) {
1710
-
1711
- "use strict";
1712
-
1713
- module.exports = function (bitmap, value) {
1714
- return {
1715
- enumerable: !(bitmap & 1),
1716
- configurable: !(bitmap & 2),
1717
- writable: !(bitmap & 4),
1718
- value: value
1719
- };
1720
- };
1721
-
1722
-
1723
- /***/ }),
1724
-
1725
- /***/ 2106:
1726
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1727
-
1728
- "use strict";
1729
-
1730
- var makeBuiltIn = __webpack_require__(283);
1731
- var defineProperty = __webpack_require__(4913);
1732
-
1733
- module.exports = function (target, name, descriptor) {
1734
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1735
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1736
- return defineProperty.f(target, name, descriptor);
1737
- };
1738
-
1739
-
1740
- /***/ }),
1741
-
1742
- /***/ 6840:
1743
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1744
-
1745
- "use strict";
1746
-
1747
- var isCallable = __webpack_require__(4901);
1748
- var definePropertyModule = __webpack_require__(4913);
1749
- var makeBuiltIn = __webpack_require__(283);
1750
- var defineGlobalProperty = __webpack_require__(9433);
1751
-
1752
- module.exports = function (O, key, value, options) {
1753
- if (!options) options = {};
1754
- var simple = options.enumerable;
1755
- var name = options.name !== undefined ? options.name : key;
1756
- if (isCallable(value)) makeBuiltIn(value, name, options);
1757
- if (options.global) {
1758
- if (simple) O[key] = value;
1759
- else defineGlobalProperty(key, value);
1760
- } else {
1761
- try {
1762
- if (!options.unsafe) delete O[key];
1763
- else if (O[key]) simple = true;
1764
- } catch (error) { /* empty */ }
1765
- if (simple) O[key] = value;
1766
- else definePropertyModule.f(O, key, {
1767
- value: value,
1768
- enumerable: false,
1769
- configurable: !options.nonConfigurable,
1770
- writable: !options.nonWritable
1771
- });
1772
- } return O;
1773
- };
1774
-
1775
-
1776
- /***/ }),
1777
-
1778
- /***/ 9433:
1779
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1780
-
1781
- "use strict";
1782
-
1783
- var globalThis = __webpack_require__(4576);
1784
-
1785
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1786
- var defineProperty = Object.defineProperty;
1787
-
1788
- module.exports = function (key, value) {
1789
- try {
1790
- defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
1791
- } catch (error) {
1792
- globalThis[key] = value;
1793
- } return value;
1794
- };
1795
-
1796
-
1797
- /***/ }),
1798
-
1799
- /***/ 3724:
1800
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1801
-
1802
- "use strict";
1803
-
1804
- var fails = __webpack_require__(9039);
1805
-
1806
- // Detect IE8's incomplete defineProperty implementation
1807
- module.exports = !fails(function () {
1808
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1809
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
1810
- });
1811
-
1812
-
1813
- /***/ }),
1814
-
1815
- /***/ 4055:
1816
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1817
-
1818
- "use strict";
1819
-
1820
- var globalThis = __webpack_require__(4576);
1821
- var isObject = __webpack_require__(34);
1822
-
1823
- var document = globalThis.document;
1824
- // typeof document.createElement is 'object' in old IE
1825
- var EXISTS = isObject(document) && isObject(document.createElement);
1826
-
1827
- module.exports = function (it) {
1828
- return EXISTS ? document.createElement(it) : {};
1829
- };
1830
-
1831
-
1832
- /***/ }),
1833
-
1834
- /***/ 6837:
1835
- /***/ (function(module) {
1836
-
1837
- "use strict";
1838
-
1839
- var $TypeError = TypeError;
1840
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1841
-
1842
- module.exports = function (it) {
1843
- if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
1844
- return it;
1845
- };
1846
-
1847
-
1848
- /***/ }),
1849
-
1850
- /***/ 5002:
1851
- /***/ (function(module) {
1852
-
1853
- "use strict";
1854
-
1855
- module.exports = {
1856
- IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },
1857
- DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },
1858
- HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },
1859
- WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },
1860
- InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },
1861
- NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },
1862
- NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },
1863
- NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },
1864
- NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },
1865
- InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },
1866
- InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },
1867
- SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },
1868
- InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },
1869
- NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },
1870
- InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },
1871
- ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },
1872
- TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },
1873
- SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },
1874
- NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },
1875
- AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },
1876
- URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },
1877
- QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },
1878
- TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },
1879
- InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },
1880
- DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }
1881
- };
1882
-
1883
-
1884
- /***/ }),
1885
-
1886
- /***/ 8727:
1887
- /***/ (function(module) {
1888
-
1889
- "use strict";
1890
-
1891
- // IE8- don't enum bug keys
1892
- module.exports = [
1893
- 'constructor',
1894
- 'hasOwnProperty',
1895
- 'isPrototypeOf',
1896
- 'propertyIsEnumerable',
1897
- 'toLocaleString',
1898
- 'toString',
1899
- 'valueOf'
1900
- ];
1901
-
1902
-
1903
- /***/ }),
1904
-
1905
- /***/ 2839:
1906
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1907
-
1908
- "use strict";
1909
-
1910
- var globalThis = __webpack_require__(4576);
1911
-
1912
- var navigator = globalThis.navigator;
1913
- var userAgent = navigator && navigator.userAgent;
1914
-
1915
- module.exports = userAgent ? String(userAgent) : '';
1916
-
1917
-
1918
- /***/ }),
1919
-
1920
- /***/ 9519:
1921
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1922
-
1923
- "use strict";
1924
-
1925
- var globalThis = __webpack_require__(4576);
1926
- var userAgent = __webpack_require__(2839);
1927
-
1928
- var process = globalThis.process;
1929
- var Deno = globalThis.Deno;
1930
- var versions = process && process.versions || Deno && Deno.version;
1931
- var v8 = versions && versions.v8;
1932
- var match, version;
1933
-
1934
- if (v8) {
1935
- match = v8.split('.');
1936
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
1937
- // but their correct versions are not interesting for us
1938
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
1939
- }
1940
-
1941
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
1942
- // so check `userAgent` even if `.v8` exists, but 0
1943
- if (!version && userAgent) {
1944
- match = userAgent.match(/Edge\/(\d+)/);
1945
- if (!match || match[1] >= 74) {
1946
- match = userAgent.match(/Chrome\/(\d+)/);
1947
- if (match) version = +match[1];
1948
- }
1949
- }
1950
-
1951
- module.exports = version;
1952
-
1953
-
1954
- /***/ }),
1955
-
1956
- /***/ 6193:
1957
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1958
-
1959
- "use strict";
1960
-
1961
- var uncurryThis = __webpack_require__(9504);
1962
-
1963
- var $Error = Error;
1964
- var replace = uncurryThis(''.replace);
1965
-
1966
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
1967
- // eslint-disable-next-line redos/no-vulnerable -- safe
1968
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
1969
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
1970
-
1971
- module.exports = function (stack, dropEntries) {
1972
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
1973
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
1974
- } return stack;
1975
- };
1976
-
1977
-
1978
- /***/ }),
1979
-
1980
- /***/ 6518:
1981
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1982
-
1983
- "use strict";
1984
-
1985
- var globalThis = __webpack_require__(4576);
1986
- var getOwnPropertyDescriptor = (__webpack_require__(7347).f);
1987
- var createNonEnumerableProperty = __webpack_require__(6699);
1988
- var defineBuiltIn = __webpack_require__(6840);
1989
- var defineGlobalProperty = __webpack_require__(9433);
1990
- var copyConstructorProperties = __webpack_require__(7740);
1991
- var isForced = __webpack_require__(2796);
1992
-
1993
- /*
1994
- options.target - name of the target object
1995
- options.global - target is the global object
1996
- options.stat - export as static methods of target
1997
- options.proto - export as prototype methods of target
1998
- options.real - real prototype method for the `pure` version
1999
- options.forced - export even if the native feature is available
2000
- options.bind - bind methods to the target, required for the `pure` version
2001
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
2002
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
2003
- options.sham - add a flag to not completely full polyfills
2004
- options.enumerable - export as enumerable property
2005
- options.dontCallGetSet - prevent calling a getter on target
2006
- options.name - the .name of the function if it does not match the key
2007
- */
2008
- module.exports = function (options, source) {
2009
- var TARGET = options.target;
2010
- var GLOBAL = options.global;
2011
- var STATIC = options.stat;
2012
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
2013
- if (GLOBAL) {
2014
- target = globalThis;
2015
- } else if (STATIC) {
2016
- target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
2017
- } else {
2018
- target = globalThis[TARGET] && globalThis[TARGET].prototype;
2019
- }
2020
- if (target) for (key in source) {
2021
- sourceProperty = source[key];
2022
- if (options.dontCallGetSet) {
2023
- descriptor = getOwnPropertyDescriptor(target, key);
2024
- targetProperty = descriptor && descriptor.value;
2025
- } else targetProperty = target[key];
2026
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
2027
- // contained in target
2028
- if (!FORCED && targetProperty !== undefined) {
2029
- if (typeof sourceProperty == typeof targetProperty) continue;
2030
- copyConstructorProperties(sourceProperty, targetProperty);
2031
- }
2032
- // add a flag to not completely full polyfills
2033
- if (options.sham || (targetProperty && targetProperty.sham)) {
2034
- createNonEnumerableProperty(sourceProperty, 'sham', true);
2035
- }
2036
- defineBuiltIn(target, key, sourceProperty, options);
2037
- }
2038
- };
2039
-
2040
-
2041
- /***/ }),
2042
-
2043
- /***/ 9039:
2044
- /***/ (function(module) {
2045
-
2046
- "use strict";
2047
-
2048
- module.exports = function (exec) {
2049
- try {
2050
- return !!exec();
2051
- } catch (error) {
2052
- return true;
2053
- }
2054
- };
2055
-
2056
-
2057
- /***/ }),
2058
-
2059
- /***/ 616:
2060
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2061
-
2062
- "use strict";
2063
-
2064
- var fails = __webpack_require__(9039);
2065
-
2066
- module.exports = !fails(function () {
2067
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
2068
- var test = (function () { /* empty */ }).bind();
2069
- // eslint-disable-next-line no-prototype-builtins -- safe
2070
- return typeof test != 'function' || test.hasOwnProperty('prototype');
2071
- });
2072
-
2073
-
2074
- /***/ }),
2075
-
2076
- /***/ 9565:
2077
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2078
-
2079
- "use strict";
2080
-
2081
- var NATIVE_BIND = __webpack_require__(616);
2082
-
2083
- var call = Function.prototype.call;
2084
-
2085
- module.exports = NATIVE_BIND ? call.bind(call) : function () {
2086
- return call.apply(call, arguments);
2087
- };
2088
-
2089
-
2090
- /***/ }),
2091
-
2092
- /***/ 350:
2093
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2094
-
2095
- "use strict";
2096
-
2097
- var DESCRIPTORS = __webpack_require__(3724);
2098
- var hasOwn = __webpack_require__(9297);
2099
-
2100
- var FunctionPrototype = Function.prototype;
2101
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2102
- var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
2103
-
2104
- var EXISTS = hasOwn(FunctionPrototype, 'name');
2105
- // additional protection from minified / mangled / dropped function names
2106
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
2107
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
2108
-
2109
- module.exports = {
2110
- EXISTS: EXISTS,
2111
- PROPER: PROPER,
2112
- CONFIGURABLE: CONFIGURABLE
2113
- };
2114
-
2115
-
2116
- /***/ }),
2117
-
2118
- /***/ 6706:
2119
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2120
-
2121
- "use strict";
2122
-
2123
- var uncurryThis = __webpack_require__(9504);
2124
- var aCallable = __webpack_require__(9306);
2125
-
2126
- module.exports = function (object, key, method) {
2127
- try {
2128
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2129
- return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
2130
- } catch (error) { /* empty */ }
2131
- };
2132
-
2133
-
2134
- /***/ }),
2135
-
2136
- /***/ 9504:
2137
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2138
-
2139
- "use strict";
2140
-
2141
- var NATIVE_BIND = __webpack_require__(616);
2142
-
2143
- var FunctionPrototype = Function.prototype;
2144
- var call = FunctionPrototype.call;
2145
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
2146
-
2147
- module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
2148
- return function () {
2149
- return call.apply(fn, arguments);
2150
- };
2151
- };
2152
-
2153
-
2154
- /***/ }),
2155
-
2156
- /***/ 7751:
2157
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2158
-
2159
- "use strict";
2160
-
2161
- var globalThis = __webpack_require__(4576);
2162
- var isCallable = __webpack_require__(4901);
2163
-
2164
- var aFunction = function (argument) {
2165
- return isCallable(argument) ? argument : undefined;
2166
- };
2167
-
2168
- module.exports = function (namespace, method) {
2169
- return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
2170
- };
2171
-
2172
-
2173
- /***/ }),
2174
-
2175
- /***/ 5966:
2176
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2177
-
2178
- "use strict";
2179
-
2180
- var aCallable = __webpack_require__(9306);
2181
- var isNullOrUndefined = __webpack_require__(4117);
2182
-
2183
- // `GetMethod` abstract operation
2184
- // https://tc39.es/ecma262/#sec-getmethod
2185
- module.exports = function (V, P) {
2186
- var func = V[P];
2187
- return isNullOrUndefined(func) ? undefined : aCallable(func);
2188
- };
2189
-
2190
-
2191
- /***/ }),
2192
-
2193
- /***/ 4576:
2194
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2195
-
2196
- "use strict";
2197
-
2198
- var check = function (it) {
2199
- return it && it.Math === Math && it;
2200
- };
2201
-
2202
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2203
- module.exports =
2204
- // eslint-disable-next-line es/no-global-this -- safe
2205
- check(typeof globalThis == 'object' && globalThis) ||
2206
- check(typeof window == 'object' && window) ||
2207
- // eslint-disable-next-line no-restricted-globals -- safe
2208
- check(typeof self == 'object' && self) ||
2209
- check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
2210
- check(typeof this == 'object' && this) ||
2211
- // eslint-disable-next-line no-new-func -- fallback
2212
- (function () { return this; })() || Function('return this')();
2213
-
2214
-
2215
- /***/ }),
2216
-
2217
- /***/ 9297:
2218
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2219
-
2220
- "use strict";
2221
-
2222
- var uncurryThis = __webpack_require__(9504);
2223
- var toObject = __webpack_require__(8981);
2224
-
2225
- var hasOwnProperty = uncurryThis({}.hasOwnProperty);
2226
-
2227
- // `HasOwnProperty` abstract operation
2228
- // https://tc39.es/ecma262/#sec-hasownproperty
2229
- // eslint-disable-next-line es/no-object-hasown -- safe
2230
- module.exports = Object.hasOwn || function hasOwn(it, key) {
2231
- return hasOwnProperty(toObject(it), key);
2232
- };
2233
-
2234
-
2235
- /***/ }),
2236
-
2237
- /***/ 421:
2238
- /***/ (function(module) {
2239
-
2240
- "use strict";
2241
-
2242
- module.exports = {};
2243
-
2244
-
2245
- /***/ }),
2246
-
2247
- /***/ 5917:
2248
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2249
-
2250
- "use strict";
2251
-
2252
- var DESCRIPTORS = __webpack_require__(3724);
2253
- var fails = __webpack_require__(9039);
2254
- var createElement = __webpack_require__(4055);
2255
-
2256
- // Thanks to IE8 for its funny defineProperty
2257
- module.exports = !DESCRIPTORS && !fails(function () {
2258
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2259
- return Object.defineProperty(createElement('div'), 'a', {
2260
- get: function () { return 7; }
2261
- }).a !== 7;
2262
- });
2263
-
2264
-
2265
- /***/ }),
2266
-
2267
- /***/ 7055:
2268
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2269
-
2270
- "use strict";
2271
-
2272
- var uncurryThis = __webpack_require__(9504);
2273
- var fails = __webpack_require__(9039);
2274
- var classof = __webpack_require__(2195);
2275
-
2276
- var $Object = Object;
2277
- var split = uncurryThis(''.split);
2278
-
2279
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
2280
- module.exports = fails(function () {
2281
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
2282
- // eslint-disable-next-line no-prototype-builtins -- safe
2283
- return !$Object('z').propertyIsEnumerable(0);
2284
- }) ? function (it) {
2285
- return classof(it) === 'String' ? split(it, '') : $Object(it);
2286
- } : $Object;
2287
-
2288
-
2289
- /***/ }),
2290
-
2291
- /***/ 3167:
2292
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2293
-
2294
- "use strict";
2295
-
2296
- var isCallable = __webpack_require__(4901);
2297
- var isObject = __webpack_require__(34);
2298
- var setPrototypeOf = __webpack_require__(2967);
2299
-
2300
- // makes subclassing work correct for wrapped built-ins
2301
- module.exports = function ($this, dummy, Wrapper) {
2302
- var NewTarget, NewTargetPrototype;
2303
- if (
2304
- // it can work only with native `setPrototypeOf`
2305
- setPrototypeOf &&
2306
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2307
- isCallable(NewTarget = dummy.constructor) &&
2308
- NewTarget !== Wrapper &&
2309
- isObject(NewTargetPrototype = NewTarget.prototype) &&
2310
- NewTargetPrototype !== Wrapper.prototype
2311
- ) setPrototypeOf($this, NewTargetPrototype);
2312
- return $this;
2313
- };
2314
-
2315
-
2316
- /***/ }),
2317
-
2318
- /***/ 3706:
2319
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2320
-
2321
- "use strict";
2322
-
2323
- var uncurryThis = __webpack_require__(9504);
2324
- var isCallable = __webpack_require__(4901);
2325
- var store = __webpack_require__(7629);
2326
-
2327
- var functionToString = uncurryThis(Function.toString);
2328
-
2329
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
2330
- if (!isCallable(store.inspectSource)) {
2331
- store.inspectSource = function (it) {
2332
- return functionToString(it);
2333
- };
2334
- }
2335
-
2336
- module.exports = store.inspectSource;
2337
-
2338
-
2339
- /***/ }),
2340
-
2341
- /***/ 1181:
2342
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2343
-
2344
- "use strict";
2345
-
2346
- var NATIVE_WEAK_MAP = __webpack_require__(8622);
2347
- var globalThis = __webpack_require__(4576);
2348
- var isObject = __webpack_require__(34);
2349
- var createNonEnumerableProperty = __webpack_require__(6699);
2350
- var hasOwn = __webpack_require__(9297);
2351
- var shared = __webpack_require__(7629);
2352
- var sharedKey = __webpack_require__(6119);
2353
- var hiddenKeys = __webpack_require__(421);
2354
-
2355
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
2356
- var TypeError = globalThis.TypeError;
2357
- var WeakMap = globalThis.WeakMap;
2358
- var set, get, has;
2359
-
2360
- var enforce = function (it) {
2361
- return has(it) ? get(it) : set(it, {});
2362
- };
2363
-
2364
- var getterFor = function (TYPE) {
2365
- return function (it) {
2366
- var state;
2367
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
2368
- throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
2369
- } return state;
2370
- };
2371
- };
2372
-
2373
- if (NATIVE_WEAK_MAP || shared.state) {
2374
- var store = shared.state || (shared.state = new WeakMap());
2375
- /* eslint-disable no-self-assign -- prototype methods protection */
2376
- store.get = store.get;
2377
- store.has = store.has;
2378
- store.set = store.set;
2379
- /* eslint-enable no-self-assign -- prototype methods protection */
2380
- set = function (it, metadata) {
2381
- if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2382
- metadata.facade = it;
2383
- store.set(it, metadata);
2384
- return metadata;
2385
- };
2386
- get = function (it) {
2387
- return store.get(it) || {};
2388
- };
2389
- has = function (it) {
2390
- return store.has(it);
2391
- };
2392
- } else {
2393
- var STATE = sharedKey('state');
2394
- hiddenKeys[STATE] = true;
2395
- set = function (it, metadata) {
2396
- if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2397
- metadata.facade = it;
2398
- createNonEnumerableProperty(it, STATE, metadata);
2399
- return metadata;
2400
- };
2401
- get = function (it) {
2402
- return hasOwn(it, STATE) ? it[STATE] : {};
2403
- };
2404
- has = function (it) {
2405
- return hasOwn(it, STATE);
2406
- };
2407
- }
2408
-
2409
- module.exports = {
2410
- set: set,
2411
- get: get,
2412
- has: has,
2413
- enforce: enforce,
2414
- getterFor: getterFor
2415
- };
2416
-
2417
-
2418
- /***/ }),
2419
-
2420
- /***/ 4376:
2421
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2422
-
2423
- "use strict";
2424
-
2425
- var classof = __webpack_require__(2195);
2426
-
2427
- // `IsArray` abstract operation
2428
- // https://tc39.es/ecma262/#sec-isarray
2429
- // eslint-disable-next-line es/no-array-isarray -- safe
2430
- module.exports = Array.isArray || function isArray(argument) {
2431
- return classof(argument) === 'Array';
2432
- };
2433
-
2434
-
2435
- /***/ }),
2436
-
2437
- /***/ 4901:
2438
- /***/ (function(module) {
2439
-
2440
- "use strict";
2441
-
2442
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
2443
- var documentAll = typeof document == 'object' && document.all;
2444
-
2445
- // `IsCallable` abstract operation
2446
- // https://tc39.es/ecma262/#sec-iscallable
2447
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
2448
- module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
2449
- return typeof argument == 'function' || argument === documentAll;
2450
- } : function (argument) {
2451
- return typeof argument == 'function';
2452
- };
2453
-
2454
-
2455
- /***/ }),
2456
-
2457
- /***/ 2796:
2458
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2459
-
2460
- "use strict";
2461
-
2462
- var fails = __webpack_require__(9039);
2463
- var isCallable = __webpack_require__(4901);
2464
-
2465
- var replacement = /#|\.prototype\./;
2466
-
2467
- var isForced = function (feature, detection) {
2468
- var value = data[normalize(feature)];
2469
- return value === POLYFILL ? true
2470
- : value === NATIVE ? false
2471
- : isCallable(detection) ? fails(detection)
2472
- : !!detection;
2473
- };
2474
-
2475
- var normalize = isForced.normalize = function (string) {
2476
- return String(string).replace(replacement, '.').toLowerCase();
2477
- };
2478
-
2479
- var data = isForced.data = {};
2480
- var NATIVE = isForced.NATIVE = 'N';
2481
- var POLYFILL = isForced.POLYFILL = 'P';
2482
-
2483
- module.exports = isForced;
2484
-
2485
-
2486
- /***/ }),
2487
-
2488
- /***/ 4117:
2489
- /***/ (function(module) {
2490
-
2491
- "use strict";
2492
-
2493
- // we can't use just `it == null` since of `document.all` special case
2494
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
2495
- module.exports = function (it) {
2496
- return it === null || it === undefined;
2497
- };
2498
-
2499
-
2500
- /***/ }),
2501
-
2502
- /***/ 34:
2503
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2504
-
2505
- "use strict";
2506
-
2507
- var isCallable = __webpack_require__(4901);
2508
-
2509
- module.exports = function (it) {
2510
- return typeof it == 'object' ? it !== null : isCallable(it);
2511
- };
2512
-
2513
-
2514
- /***/ }),
2515
-
2516
- /***/ 3925:
2517
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2518
-
2519
- "use strict";
2520
-
2521
- var isObject = __webpack_require__(34);
2522
-
2523
- module.exports = function (argument) {
2524
- return isObject(argument) || argument === null;
2525
- };
2526
-
2527
-
2528
- /***/ }),
2529
-
2530
- /***/ 6395:
2531
- /***/ (function(module) {
2532
-
2533
- "use strict";
2534
-
2535
- module.exports = false;
2536
-
2537
-
2538
- /***/ }),
2539
-
2540
- /***/ 757:
2541
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2542
-
2543
- "use strict";
2544
-
2545
- var getBuiltIn = __webpack_require__(7751);
2546
- var isCallable = __webpack_require__(4901);
2547
- var isPrototypeOf = __webpack_require__(1625);
2548
- var USE_SYMBOL_AS_UID = __webpack_require__(7040);
2549
-
2550
- var $Object = Object;
2551
-
2552
- module.exports = USE_SYMBOL_AS_UID ? function (it) {
2553
- return typeof it == 'symbol';
2554
- } : function (it) {
2555
- var $Symbol = getBuiltIn('Symbol');
2556
- return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
2557
- };
2558
-
2559
-
2560
- /***/ }),
2561
-
2562
- /***/ 6198:
2563
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2564
-
2565
- "use strict";
2566
-
2567
- var toLength = __webpack_require__(8014);
2568
-
2569
- // `LengthOfArrayLike` abstract operation
2570
- // https://tc39.es/ecma262/#sec-lengthofarraylike
2571
- module.exports = function (obj) {
2572
- return toLength(obj.length);
2573
- };
2574
-
2575
-
2576
- /***/ }),
2577
-
2578
- /***/ 283:
2579
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2580
-
2581
- "use strict";
2582
-
2583
- var uncurryThis = __webpack_require__(9504);
2584
- var fails = __webpack_require__(9039);
2585
- var isCallable = __webpack_require__(4901);
2586
- var hasOwn = __webpack_require__(9297);
2587
- var DESCRIPTORS = __webpack_require__(3724);
2588
- var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);
2589
- var inspectSource = __webpack_require__(3706);
2590
- var InternalStateModule = __webpack_require__(1181);
2591
-
2592
- var enforceInternalState = InternalStateModule.enforce;
2593
- var getInternalState = InternalStateModule.get;
2594
- var $String = String;
2595
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2596
- var defineProperty = Object.defineProperty;
2597
- var stringSlice = uncurryThis(''.slice);
2598
- var replace = uncurryThis(''.replace);
2599
- var join = uncurryThis([].join);
2600
-
2601
- var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
2602
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
2603
- });
2604
-
2605
- var TEMPLATE = String(String).split('String');
2606
-
2607
- var makeBuiltIn = module.exports = function (value, name, options) {
2608
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
2609
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
2610
- }
2611
- if (options && options.getter) name = 'get ' + name;
2612
- if (options && options.setter) name = 'set ' + name;
2613
- if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
2614
- if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
2615
- else value.name = name;
2616
- }
2617
- if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
2618
- defineProperty(value, 'length', { value: options.arity });
2619
- }
2620
- try {
2621
- if (options && hasOwn(options, 'constructor') && options.constructor) {
2622
- if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
2623
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
2624
- } else if (value.prototype) value.prototype = undefined;
2625
- } catch (error) { /* empty */ }
2626
- var state = enforceInternalState(value);
2627
- if (!hasOwn(state, 'source')) {
2628
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
2629
- } return value;
2630
- };
2631
-
2632
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
2633
- // eslint-disable-next-line no-extend-native -- required
2634
- Function.prototype.toString = makeBuiltIn(function toString() {
2635
- return isCallable(this) && getInternalState(this).source || inspectSource(this);
2636
- }, 'toString');
2637
-
2638
-
2639
- /***/ }),
2640
-
2641
- /***/ 741:
2642
- /***/ (function(module) {
2643
-
2644
- "use strict";
2645
-
2646
- var ceil = Math.ceil;
2647
- var floor = Math.floor;
2648
-
2649
- // `Math.trunc` method
2650
- // https://tc39.es/ecma262/#sec-math.trunc
2651
- // eslint-disable-next-line es/no-math-trunc -- safe
2652
- module.exports = Math.trunc || function trunc(x) {
2653
- var n = +x;
2654
- return (n > 0 ? floor : ceil)(n);
2655
- };
2656
-
2657
-
2658
- /***/ }),
2659
-
2660
- /***/ 2603:
2661
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2662
-
2663
- "use strict";
2664
-
2665
- var toString = __webpack_require__(655);
2666
-
2667
- module.exports = function (argument, $default) {
2668
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
2669
- };
2670
-
2671
-
2672
- /***/ }),
2673
-
2674
- /***/ 4913:
2675
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2676
-
2677
- "use strict";
2678
-
2679
- var DESCRIPTORS = __webpack_require__(3724);
2680
- var IE8_DOM_DEFINE = __webpack_require__(5917);
2681
- var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);
2682
- var anObject = __webpack_require__(8551);
2683
- var toPropertyKey = __webpack_require__(6969);
2684
-
2685
- var $TypeError = TypeError;
2686
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2687
- var $defineProperty = Object.defineProperty;
2688
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2689
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2690
- var ENUMERABLE = 'enumerable';
2691
- var CONFIGURABLE = 'configurable';
2692
- var WRITABLE = 'writable';
2693
-
2694
- // `Object.defineProperty` method
2695
- // https://tc39.es/ecma262/#sec-object.defineproperty
2696
- exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
2697
- anObject(O);
2698
- P = toPropertyKey(P);
2699
- anObject(Attributes);
2700
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
2701
- var current = $getOwnPropertyDescriptor(O, P);
2702
- if (current && current[WRITABLE]) {
2703
- O[P] = Attributes.value;
2704
- Attributes = {
2705
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
2706
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
2707
- writable: false
2708
- };
2709
- }
2710
- } return $defineProperty(O, P, Attributes);
2711
- } : $defineProperty : function defineProperty(O, P, Attributes) {
2712
- anObject(O);
2713
- P = toPropertyKey(P);
2714
- anObject(Attributes);
2715
- if (IE8_DOM_DEFINE) try {
2716
- return $defineProperty(O, P, Attributes);
2717
- } catch (error) { /* empty */ }
2718
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
2719
- if ('value' in Attributes) O[P] = Attributes.value;
2720
- return O;
2721
- };
2722
-
2723
-
2724
- /***/ }),
2725
-
2726
- /***/ 7347:
2727
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2728
-
2729
- "use strict";
2730
-
2731
- var DESCRIPTORS = __webpack_require__(3724);
2732
- var call = __webpack_require__(9565);
2733
- var propertyIsEnumerableModule = __webpack_require__(8773);
2734
- var createPropertyDescriptor = __webpack_require__(6980);
2735
- var toIndexedObject = __webpack_require__(5397);
2736
- var toPropertyKey = __webpack_require__(6969);
2737
- var hasOwn = __webpack_require__(9297);
2738
- var IE8_DOM_DEFINE = __webpack_require__(5917);
2739
-
2740
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2741
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2742
-
2743
- // `Object.getOwnPropertyDescriptor` method
2744
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
2745
- exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
2746
- O = toIndexedObject(O);
2747
- P = toPropertyKey(P);
2748
- if (IE8_DOM_DEFINE) try {
2749
- return $getOwnPropertyDescriptor(O, P);
2750
- } catch (error) { /* empty */ }
2751
- if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
2752
- };
2753
-
2754
-
2755
- /***/ }),
2756
-
2757
- /***/ 8480:
2758
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2759
-
2760
- "use strict";
2761
-
2762
- var internalObjectKeys = __webpack_require__(1828);
2763
- var enumBugKeys = __webpack_require__(8727);
2764
-
2765
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
2766
-
2767
- // `Object.getOwnPropertyNames` method
2768
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
2769
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
2770
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2771
- return internalObjectKeys(O, hiddenKeys);
2772
- };
2773
-
2774
-
2775
- /***/ }),
2776
-
2777
- /***/ 3717:
2778
- /***/ (function(__unused_webpack_module, exports) {
2779
-
2780
- "use strict";
2781
-
2782
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
2783
- exports.f = Object.getOwnPropertySymbols;
2784
-
2785
-
2786
- /***/ }),
2787
-
2788
- /***/ 1625:
2789
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2790
-
2791
- "use strict";
2792
-
2793
- var uncurryThis = __webpack_require__(9504);
2794
-
2795
- module.exports = uncurryThis({}.isPrototypeOf);
2796
-
2797
-
2798
- /***/ }),
2799
-
2800
- /***/ 1828:
2801
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2802
-
2803
- "use strict";
2804
-
2805
- var uncurryThis = __webpack_require__(9504);
2806
- var hasOwn = __webpack_require__(9297);
2807
- var toIndexedObject = __webpack_require__(5397);
2808
- var indexOf = (__webpack_require__(9617).indexOf);
2809
- var hiddenKeys = __webpack_require__(421);
2810
-
2811
- var push = uncurryThis([].push);
2812
-
2813
- module.exports = function (object, names) {
2814
- var O = toIndexedObject(object);
2815
- var i = 0;
2816
- var result = [];
2817
- var key;
2818
- for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
2819
- // Don't enum bug & hidden keys
2820
- while (names.length > i) if (hasOwn(O, key = names[i++])) {
2821
- ~indexOf(result, key) || push(result, key);
2822
- }
2823
- return result;
2824
- };
2825
-
2826
-
2827
- /***/ }),
2828
-
2829
- /***/ 8773:
2830
- /***/ (function(__unused_webpack_module, exports) {
2831
-
2832
- "use strict";
2833
-
2834
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
2835
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2836
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2837
-
2838
- // Nashorn ~ JDK8 bug
2839
- var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
2840
-
2841
- // `Object.prototype.propertyIsEnumerable` method implementation
2842
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
2843
- exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
2844
- var descriptor = getOwnPropertyDescriptor(this, V);
2845
- return !!descriptor && descriptor.enumerable;
2846
- } : $propertyIsEnumerable;
2847
-
2848
-
2849
- /***/ }),
2850
-
2851
- /***/ 2967:
2852
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2853
-
2854
- "use strict";
2855
-
2856
- /* eslint-disable no-proto -- safe */
2857
- var uncurryThisAccessor = __webpack_require__(6706);
2858
- var isObject = __webpack_require__(34);
2859
- var requireObjectCoercible = __webpack_require__(7750);
2860
- var aPossiblePrototype = __webpack_require__(3506);
2861
-
2862
- // `Object.setPrototypeOf` method
2863
- // https://tc39.es/ecma262/#sec-object.setprototypeof
2864
- // Works with __proto__ only. Old v8 can't work with null proto objects.
2865
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
2866
- module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2867
- var CORRECT_SETTER = false;
2868
- var test = {};
2869
- var setter;
2870
- try {
2871
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
2872
- setter(test, []);
2873
- CORRECT_SETTER = test instanceof Array;
2874
- } catch (error) { /* empty */ }
2875
- return function setPrototypeOf(O, proto) {
2876
- requireObjectCoercible(O);
2877
- aPossiblePrototype(proto);
2878
- if (!isObject(O)) return O;
2879
- if (CORRECT_SETTER) setter(O, proto);
2880
- else O.__proto__ = proto;
2881
- return O;
2882
- };
2883
- }() : undefined);
2884
-
2885
-
2886
- /***/ }),
2887
-
2888
- /***/ 4270:
2889
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2890
-
2891
- "use strict";
2892
-
2893
- var call = __webpack_require__(9565);
2894
- var isCallable = __webpack_require__(4901);
2895
- var isObject = __webpack_require__(34);
2896
-
2897
- var $TypeError = TypeError;
2898
-
2899
- // `OrdinaryToPrimitive` abstract operation
2900
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
2901
- module.exports = function (input, pref) {
2902
- var fn, val;
2903
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
2904
- if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
2905
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
2906
- throw new $TypeError("Can't convert object to primitive value");
2907
- };
2908
-
2909
-
2910
- /***/ }),
2911
-
2912
- /***/ 5031:
2913
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2914
-
2915
- "use strict";
2916
-
2917
- var getBuiltIn = __webpack_require__(7751);
2918
- var uncurryThis = __webpack_require__(9504);
2919
- var getOwnPropertyNamesModule = __webpack_require__(8480);
2920
- var getOwnPropertySymbolsModule = __webpack_require__(3717);
2921
- var anObject = __webpack_require__(8551);
2922
-
2923
- var concat = uncurryThis([].concat);
2924
-
2925
- // all object keys, includes non-enumerable and symbols
2926
- module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
2927
- var keys = getOwnPropertyNamesModule.f(anObject(it));
2928
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2929
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
2930
- };
2931
-
2932
-
2933
- /***/ }),
2934
-
2935
- /***/ 7750:
2936
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2937
-
2938
- "use strict";
2939
-
2940
- var isNullOrUndefined = __webpack_require__(4117);
2941
-
2942
- var $TypeError = TypeError;
2943
-
2944
- // `RequireObjectCoercible` abstract operation
2945
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
2946
- module.exports = function (it) {
2947
- if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
2948
- return it;
2949
- };
2950
-
2951
-
2952
- /***/ }),
2953
-
2954
- /***/ 6119:
2955
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2956
-
2957
- "use strict";
2958
-
2959
- var shared = __webpack_require__(5745);
2960
- var uid = __webpack_require__(3392);
2961
-
2962
- var keys = shared('keys');
2963
-
2964
- module.exports = function (key) {
2965
- return keys[key] || (keys[key] = uid(key));
2966
- };
2967
-
2968
-
2969
- /***/ }),
2970
-
2971
- /***/ 7629:
2972
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2973
-
2974
- "use strict";
2975
-
2976
- var IS_PURE = __webpack_require__(6395);
2977
- var globalThis = __webpack_require__(4576);
2978
- var defineGlobalProperty = __webpack_require__(9433);
2979
-
2980
- var SHARED = '__core-js_shared__';
2981
- var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
2982
-
2983
- (store.versions || (store.versions = [])).push({
2984
- version: '3.38.1',
2985
- mode: IS_PURE ? 'pure' : 'global',
2986
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
2987
- license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
2988
- source: 'https://github.com/zloirock/core-js'
2989
- });
2990
-
2991
-
2992
- /***/ }),
2993
-
2994
- /***/ 5745:
2995
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2996
-
2997
- "use strict";
2998
-
2999
- var store = __webpack_require__(7629);
3000
-
3001
- module.exports = function (key, value) {
3002
- return store[key] || (store[key] = value || {});
3003
- };
3004
-
3005
-
3006
- /***/ }),
3007
-
3008
- /***/ 4495:
3009
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3010
-
3011
- "use strict";
3012
-
3013
- /* eslint-disable es/no-symbol -- required for testing */
3014
- var V8_VERSION = __webpack_require__(9519);
3015
- var fails = __webpack_require__(9039);
3016
- var globalThis = __webpack_require__(4576);
3017
-
3018
- var $String = globalThis.String;
3019
-
3020
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
3021
- module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
3022
- var symbol = Symbol('symbol detection');
3023
- // Chrome 38 Symbol has incorrect toString conversion
3024
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
3025
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
3026
- // of course, fail.
3027
- return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
3028
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
3029
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
3030
- });
3031
-
3032
-
3033
- /***/ }),
3034
-
3035
- /***/ 5610:
3036
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3037
-
3038
- "use strict";
3039
-
3040
- var toIntegerOrInfinity = __webpack_require__(1291);
3041
-
3042
- var max = Math.max;
3043
- var min = Math.min;
3044
-
3045
- // Helper for a popular repeating case of the spec:
3046
- // Let integer be ? ToInteger(index).
3047
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
3048
- module.exports = function (index, length) {
3049
- var integer = toIntegerOrInfinity(index);
3050
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
3051
- };
3052
-
3053
-
3054
- /***/ }),
3055
-
3056
- /***/ 5397:
3057
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3058
-
3059
- "use strict";
3060
-
3061
- // toObject with fallback for non-array-like ES3 strings
3062
- var IndexedObject = __webpack_require__(7055);
3063
- var requireObjectCoercible = __webpack_require__(7750);
3064
-
3065
- module.exports = function (it) {
3066
- return IndexedObject(requireObjectCoercible(it));
3067
- };
3068
-
3069
-
3070
- /***/ }),
3071
-
3072
- /***/ 1291:
3073
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3074
-
3075
- "use strict";
3076
-
3077
- var trunc = __webpack_require__(741);
3078
-
3079
- // `ToIntegerOrInfinity` abstract operation
3080
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
3081
- module.exports = function (argument) {
3082
- var number = +argument;
3083
- // eslint-disable-next-line no-self-compare -- NaN check
3084
- return number !== number || number === 0 ? 0 : trunc(number);
3085
- };
3086
-
3087
-
3088
- /***/ }),
3089
-
3090
- /***/ 8014:
3091
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3092
-
3093
- "use strict";
3094
-
3095
- var toIntegerOrInfinity = __webpack_require__(1291);
3096
-
3097
- var min = Math.min;
3098
-
3099
- // `ToLength` abstract operation
3100
- // https://tc39.es/ecma262/#sec-tolength
3101
- module.exports = function (argument) {
3102
- var len = toIntegerOrInfinity(argument);
3103
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
3104
- };
3105
-
3106
-
3107
- /***/ }),
3108
-
3109
- /***/ 8981:
3110
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3111
-
3112
- "use strict";
3113
-
3114
- var requireObjectCoercible = __webpack_require__(7750);
3115
-
3116
- var $Object = Object;
3117
-
3118
- // `ToObject` abstract operation
3119
- // https://tc39.es/ecma262/#sec-toobject
3120
- module.exports = function (argument) {
3121
- return $Object(requireObjectCoercible(argument));
3122
- };
3123
-
3124
-
3125
- /***/ }),
3126
-
3127
- /***/ 2777:
3128
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3129
-
3130
- "use strict";
3131
-
3132
- var call = __webpack_require__(9565);
3133
- var isObject = __webpack_require__(34);
3134
- var isSymbol = __webpack_require__(757);
3135
- var getMethod = __webpack_require__(5966);
3136
- var ordinaryToPrimitive = __webpack_require__(4270);
3137
- var wellKnownSymbol = __webpack_require__(8227);
3138
-
3139
- var $TypeError = TypeError;
3140
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
3141
-
3142
- // `ToPrimitive` abstract operation
3143
- // https://tc39.es/ecma262/#sec-toprimitive
3144
- module.exports = function (input, pref) {
3145
- if (!isObject(input) || isSymbol(input)) return input;
3146
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
3147
- var result;
3148
- if (exoticToPrim) {
3149
- if (pref === undefined) pref = 'default';
3150
- result = call(exoticToPrim, input, pref);
3151
- if (!isObject(result) || isSymbol(result)) return result;
3152
- throw new $TypeError("Can't convert object to primitive value");
3153
- }
3154
- if (pref === undefined) pref = 'number';
3155
- return ordinaryToPrimitive(input, pref);
3156
- };
3157
-
3158
-
3159
- /***/ }),
3160
-
3161
- /***/ 6969:
3162
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3163
-
3164
- "use strict";
3165
-
3166
- var toPrimitive = __webpack_require__(2777);
3167
- var isSymbol = __webpack_require__(757);
3168
-
3169
- // `ToPropertyKey` abstract operation
3170
- // https://tc39.es/ecma262/#sec-topropertykey
3171
- module.exports = function (argument) {
3172
- var key = toPrimitive(argument, 'string');
3173
- return isSymbol(key) ? key : key + '';
3174
- };
3175
-
3176
-
3177
- /***/ }),
3178
-
3179
- /***/ 2140:
3180
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3181
-
3182
- "use strict";
3183
-
3184
- var wellKnownSymbol = __webpack_require__(8227);
3185
-
3186
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3187
- var test = {};
3188
-
3189
- test[TO_STRING_TAG] = 'z';
3190
-
3191
- module.exports = String(test) === '[object z]';
3192
-
3193
-
3194
- /***/ }),
3195
-
3196
- /***/ 655:
3197
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3198
-
3199
- "use strict";
3200
-
3201
- var classof = __webpack_require__(6955);
3202
-
3203
- var $String = String;
3204
-
3205
- module.exports = function (argument) {
3206
- if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
3207
- return $String(argument);
3208
- };
3209
-
3210
-
3211
- /***/ }),
3212
-
3213
- /***/ 6823:
3214
- /***/ (function(module) {
3215
-
3216
- "use strict";
3217
-
3218
- var $String = String;
3219
-
3220
- module.exports = function (argument) {
3221
- try {
3222
- return $String(argument);
3223
- } catch (error) {
3224
- return 'Object';
3225
- }
3226
- };
3227
-
3228
-
3229
- /***/ }),
3230
-
3231
- /***/ 3392:
3232
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3233
-
3234
- "use strict";
3235
-
3236
- var uncurryThis = __webpack_require__(9504);
3237
-
3238
- var id = 0;
3239
- var postfix = Math.random();
3240
- var toString = uncurryThis(1.0.toString);
3241
-
3242
- module.exports = function (key) {
3243
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
3244
- };
3245
-
3246
-
3247
- /***/ }),
3248
-
3249
- /***/ 7040:
3250
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3251
-
3252
- "use strict";
3253
-
3254
- /* eslint-disable es/no-symbol -- required for testing */
3255
- var NATIVE_SYMBOL = __webpack_require__(4495);
3256
-
3257
- module.exports = NATIVE_SYMBOL
3258
- && !Symbol.sham
3259
- && typeof Symbol.iterator == 'symbol';
3260
-
3261
-
3262
- /***/ }),
3263
-
3264
- /***/ 8686:
3265
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3266
-
3267
- "use strict";
3268
-
3269
- var DESCRIPTORS = __webpack_require__(3724);
3270
- var fails = __webpack_require__(9039);
3271
-
3272
- // V8 ~ Chrome 36-
3273
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
3274
- module.exports = DESCRIPTORS && fails(function () {
3275
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3276
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
3277
- value: 42,
3278
- writable: false
3279
- }).prototype !== 42;
3280
- });
3281
-
3282
-
3283
- /***/ }),
3284
-
3285
- /***/ 2812:
3286
- /***/ (function(module) {
3287
-
3288
- "use strict";
3289
-
3290
- var $TypeError = TypeError;
3291
-
3292
- module.exports = function (passed, required) {
3293
- if (passed < required) throw new $TypeError('Not enough arguments');
3294
- return passed;
3295
- };
3296
-
3297
-
3298
- /***/ }),
3299
-
3300
- /***/ 8622:
3301
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3302
-
3303
- "use strict";
3304
-
3305
- var globalThis = __webpack_require__(4576);
3306
- var isCallable = __webpack_require__(4901);
3307
-
3308
- var WeakMap = globalThis.WeakMap;
3309
-
3310
- module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
3311
-
3312
-
3313
- /***/ }),
3314
-
3315
- /***/ 8227:
3316
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3317
-
3318
- "use strict";
3319
-
3320
- var globalThis = __webpack_require__(4576);
3321
- var shared = __webpack_require__(5745);
3322
- var hasOwn = __webpack_require__(9297);
3323
- var uid = __webpack_require__(3392);
3324
- var NATIVE_SYMBOL = __webpack_require__(4495);
3325
- var USE_SYMBOL_AS_UID = __webpack_require__(7040);
3326
-
3327
- var Symbol = globalThis.Symbol;
3328
- var WellKnownSymbolsStore = shared('wks');
3329
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
3330
-
3331
- module.exports = function (name) {
3332
- if (!hasOwn(WellKnownSymbolsStore, name)) {
3333
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
3334
- ? Symbol[name]
3335
- : createWellKnownSymbol('Symbol.' + name);
3336
- } return WellKnownSymbolsStore[name];
3337
- };
3338
-
3339
-
3340
- /***/ }),
3341
-
3342
- /***/ 4114:
3343
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3344
-
3345
- "use strict";
3346
-
3347
- var $ = __webpack_require__(6518);
3348
- var toObject = __webpack_require__(8981);
3349
- var lengthOfArrayLike = __webpack_require__(6198);
3350
- var setArrayLength = __webpack_require__(4527);
3351
- var doesNotExceedSafeInteger = __webpack_require__(6837);
3352
- var fails = __webpack_require__(9039);
3353
-
3354
- var INCORRECT_TO_LENGTH = fails(function () {
3355
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
3356
- });
3357
-
3358
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
3359
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
3360
- var properErrorOnNonWritableLength = function () {
3361
- try {
3362
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3363
- Object.defineProperty([], 'length', { writable: false }).push();
3364
- } catch (error) {
3365
- return error instanceof TypeError;
3366
- }
3367
- };
3368
-
3369
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
3370
-
3371
- // `Array.prototype.push` method
3372
- // https://tc39.es/ecma262/#sec-array.prototype.push
3373
- $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
3374
- // eslint-disable-next-line no-unused-vars -- required for `.length`
3375
- push: function push(item) {
3376
- var O = toObject(this);
3377
- var len = lengthOfArrayLike(O);
3378
- var argCount = arguments.length;
3379
- doesNotExceedSafeInteger(len + argCount);
3380
- for (var i = 0; i < argCount; i++) {
3381
- O[len] = arguments[i];
3382
- len++;
3383
- }
3384
- setArrayLength(O, len);
3385
- return len;
3386
- }
3387
- });
3388
-
3389
-
3390
- /***/ }),
3391
-
3392
- /***/ 4979:
3393
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3394
-
3395
- "use strict";
3396
-
3397
- var $ = __webpack_require__(6518);
3398
- var globalThis = __webpack_require__(4576);
3399
- var getBuiltIn = __webpack_require__(7751);
3400
- var createPropertyDescriptor = __webpack_require__(6980);
3401
- var defineProperty = (__webpack_require__(4913).f);
3402
- var hasOwn = __webpack_require__(9297);
3403
- var anInstance = __webpack_require__(679);
3404
- var inheritIfRequired = __webpack_require__(3167);
3405
- var normalizeStringArgument = __webpack_require__(2603);
3406
- var DOMExceptionConstants = __webpack_require__(5002);
3407
- var clearErrorStack = __webpack_require__(6193);
3408
- var DESCRIPTORS = __webpack_require__(3724);
3409
- var IS_PURE = __webpack_require__(6395);
3410
-
3411
- var DOM_EXCEPTION = 'DOMException';
3412
- var Error = getBuiltIn('Error');
3413
- var NativeDOMException = getBuiltIn(DOM_EXCEPTION);
3414
-
3415
- var $DOMException = function DOMException() {
3416
- anInstance(this, DOMExceptionPrototype);
3417
- var argumentsLength = arguments.length;
3418
- var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);
3419
- var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');
3420
- var that = new NativeDOMException(message, name);
3421
- var error = new Error(message);
3422
- error.name = DOM_EXCEPTION;
3423
- defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
3424
- inheritIfRequired(that, this, $DOMException);
3425
- return that;
3426
- };
3427
-
3428
- var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
3429
-
3430
- var ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION);
3431
- var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
3432
-
3433
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3434
- var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis, DOM_EXCEPTION);
3435
-
3436
- // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
3437
- // https://github.com/Jarred-Sumner/bun/issues/399
3438
- var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);
3439
-
3440
- var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
3441
-
3442
- // `DOMException` constructor patch for `.stack` where it's required
3443
- // https://webidl.spec.whatwg.org/#es-DOMException-specialness
3444
- $({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic
3445
- DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
3446
- });
3447
-
3448
- var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
3449
- var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
3450
-
3451
- if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
3452
- if (!IS_PURE) {
3453
- defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));
3454
- }
3455
-
3456
- for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {
3457
- var constant = DOMExceptionConstants[key];
3458
- var constantName = constant.s;
3459
- if (!hasOwn(PolyfilledDOMException, constantName)) {
3460
- defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
3461
- }
3462
- }
3463
- }
3464
-
3465
-
3466
- /***/ }),
3467
-
3468
- /***/ 4603:
3469
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3470
-
3471
- "use strict";
3472
-
3473
- var defineBuiltIn = __webpack_require__(6840);
3474
- var uncurryThis = __webpack_require__(9504);
3475
- var toString = __webpack_require__(655);
3476
- var validateArgumentsLength = __webpack_require__(2812);
3477
-
3478
- var $URLSearchParams = URLSearchParams;
3479
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
3480
- var append = uncurryThis(URLSearchParamsPrototype.append);
3481
- var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
3482
- var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
3483
- var push = uncurryThis([].push);
3484
- var params = new $URLSearchParams('a=1&a=2&b=3');
3485
-
3486
- params['delete']('a', 1);
3487
- // `undefined` case is a Chromium 117 bug
3488
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
3489
- params['delete']('b', undefined);
3490
-
3491
- if (params + '' !== 'a=2') {
3492
- defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
3493
- var length = arguments.length;
3494
- var $value = length < 2 ? undefined : arguments[1];
3495
- if (length && $value === undefined) return $delete(this, name);
3496
- var entries = [];
3497
- forEach(this, function (v, k) { // also validates `this`
3498
- push(entries, { key: k, value: v });
3499
- });
3500
- validateArgumentsLength(length, 1);
3501
- var key = toString(name);
3502
- var value = toString($value);
3503
- var index = 0;
3504
- var dindex = 0;
3505
- var found = false;
3506
- var entriesLength = entries.length;
3507
- var entry;
3508
- while (index < entriesLength) {
3509
- entry = entries[index++];
3510
- if (found || entry.key === key) {
3511
- found = true;
3512
- $delete(this, entry.key);
3513
- } else dindex++;
3514
- }
3515
- while (dindex < entriesLength) {
3516
- entry = entries[dindex++];
3517
- if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
3518
- }
3519
- }, { enumerable: true, unsafe: true });
3520
- }
3521
-
3522
-
3523
- /***/ }),
3524
-
3525
- /***/ 7566:
3526
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3527
-
3528
- "use strict";
3529
-
3530
- var defineBuiltIn = __webpack_require__(6840);
3531
- var uncurryThis = __webpack_require__(9504);
3532
- var toString = __webpack_require__(655);
3533
- var validateArgumentsLength = __webpack_require__(2812);
3534
-
3535
- var $URLSearchParams = URLSearchParams;
3536
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
3537
- var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
3538
- var $has = uncurryThis(URLSearchParamsPrototype.has);
3539
- var params = new $URLSearchParams('a=1');
3540
-
3541
- // `undefined` case is a Chromium 117 bug
3542
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
3543
- if (params.has('a', 2) || !params.has('a', undefined)) {
3544
- defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
3545
- var length = arguments.length;
3546
- var $value = length < 2 ? undefined : arguments[1];
3547
- if (length && $value === undefined) return $has(this, name);
3548
- var values = getAll(this, name); // also validates `this`
3549
- validateArgumentsLength(length, 1);
3550
- var value = toString($value);
3551
- var index = 0;
3552
- while (index < values.length) {
3553
- if (values[index++] === value) return true;
3554
- } return false;
3555
- }, { enumerable: true, unsafe: true });
3556
- }
3557
-
3558
-
3559
- /***/ }),
3560
-
3561
- /***/ 8721:
3562
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3563
-
3564
- "use strict";
3565
-
3566
- var DESCRIPTORS = __webpack_require__(3724);
3567
- var uncurryThis = __webpack_require__(9504);
3568
- var defineBuiltInAccessor = __webpack_require__(2106);
3569
-
3570
- var URLSearchParamsPrototype = URLSearchParams.prototype;
3571
- var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
3572
-
3573
- // `URLSearchParams.prototype.size` getter
3574
- // https://github.com/whatwg/url/pull/734
3575
- if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
3576
- defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
3577
- get: function size() {
3578
- var count = 0;
3579
- forEach(this, function () { count++; });
3580
- return count;
3581
- },
3582
- configurable: true,
3583
- enumerable: true
3584
- });
3585
- }
3586
-
3587
-
3588
- /***/ })
3589
-
3590
- /******/ });
3591
- /************************************************************************/
3592
- /******/ // The module cache
3593
- /******/ var __webpack_module_cache__ = {};
3594
- /******/
3595
- /******/ // The require function
3596
- /******/ function __webpack_require__(moduleId) {
3597
- /******/ // Check if module is in cache
3598
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
3599
- /******/ if (cachedModule !== undefined) {
3600
- /******/ return cachedModule.exports;
3601
- /******/ }
3602
- /******/ // Create a new module (and put it into the cache)
3603
- /******/ var module = __webpack_module_cache__[moduleId] = {
3604
- /******/ // no module.id needed
3605
- /******/ // no module.loaded needed
3606
- /******/ exports: {}
3607
- /******/ };
3608
- /******/
3609
- /******/ // Execute the module function
3610
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
3611
- /******/
3612
- /******/ // Return the exports of the module
3613
- /******/ return module.exports;
3614
- /******/ }
3615
- /******/
3616
- /************************************************************************/
3617
- /******/ /* webpack/runtime/compat get default export */
3618
- /******/ !function() {
3619
- /******/ // getDefaultExport function for compatibility with non-harmony modules
3620
- /******/ __webpack_require__.n = function(module) {
3621
- /******/ var getter = module && module.__esModule ?
3622
- /******/ function() { return module['default']; } :
3623
- /******/ function() { return module; };
3624
- /******/ __webpack_require__.d(getter, { a: getter });
3625
- /******/ return getter;
3626
- /******/ };
3627
- /******/ }();
3628
- /******/
3629
- /******/ /* webpack/runtime/define property getters */
3630
- /******/ !function() {
3631
- /******/ // define getter functions for harmony exports
3632
- /******/ __webpack_require__.d = function(exports, definition) {
3633
- /******/ for(var key in definition) {
3634
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
3635
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
3636
- /******/ }
3637
- /******/ }
3638
- /******/ };
3639
- /******/ }();
3640
- /******/
3641
- /******/ /* webpack/runtime/global */
3642
- /******/ !function() {
3643
- /******/ __webpack_require__.g = (function() {
3644
- /******/ if (typeof globalThis === 'object') return globalThis;
3645
- /******/ try {
3646
- /******/ return this || new Function('return this')();
3647
- /******/ } catch (e) {
3648
- /******/ if (typeof window === 'object') return window;
3649
- /******/ }
3650
- /******/ })();
3651
- /******/ }();
3652
- /******/
3653
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
3654
- /******/ !function() {
3655
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
3656
- /******/ }();
3657
- /******/
3658
- /******/ /* webpack/runtime/make namespace object */
3659
- /******/ !function() {
3660
- /******/ // define __esModule on exports
3661
- /******/ __webpack_require__.r = function(exports) {
3662
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
3663
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3664
- /******/ }
3665
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
3666
- /******/ };
3667
- /******/ }();
3668
- /******/
3669
- /******/ /* webpack/runtime/publicPath */
3670
- /******/ !function() {
3671
- /******/ __webpack_require__.p = "";
3672
- /******/ }();
3673
- /******/
3674
- /************************************************************************/
3675
- var __webpack_exports__ = {};
3676
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
3677
- !function() {
3678
- "use strict";
3679
- // ESM COMPAT FLAG
3680
- __webpack_require__.r(__webpack_exports__);
3681
-
3682
- // EXPORTS
3683
- __webpack_require__.d(__webpack_exports__, {
3684
- "default": function() { return /* binding */ entry_lib; }
3685
- });
3686
-
3687
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
3688
- /* eslint-disable no-var */
3689
- // This file is imported into lib/wc client bundles.
3690
-
3691
- if (typeof window !== 'undefined') {
3692
- var currentScript = window.document.currentScript
3693
- if (false) { var getCurrentScript; }
3694
-
3695
- var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
3696
- if (src) {
3697
- __webpack_require__.p = src[1] // eslint-disable-line
3698
- }
3699
- }
3700
-
3701
- // Indicate to webpack that this file can be concatenated
3702
- /* harmony default export */ var setPublicPath = (null);
3703
-
3704
- // EXTERNAL MODULE: ./src/iview-ext/list.ts
3705
- var list = __webpack_require__(6361);
3706
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
3707
- var web_dom_exception_stack = __webpack_require__(4979);
3708
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
3709
- var web_url_search_params_delete = __webpack_require__(4603);
3710
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
3711
- var web_url_search_params_has = __webpack_require__(7566);
3712
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
3713
- var web_url_search_params_size = __webpack_require__(8721);
3714
- // EXTERNAL MODULE: external "@ajaxjs/util"
3715
- var util_ = __webpack_require__(5334);
3716
- ;// CONCATENATED MODULE: ./src/iam/iam.ts
3717
-
3718
-
3719
-
3720
-
3721
-
3722
- /**
3723
- * 获取登录信息
3724
- *
3725
- * @returns 用户 JWT
3726
- */
3727
- /* harmony default export */ var iam = ({
3728
- /**
3729
- *
3730
- *
3731
- * @param loginUrl 登录页面地址
3732
- * @param thisPageUrl 前端页面的地址,最后返回这里
3733
- * @returns
3734
- */
3735
- getLoginInfo(loginUrl, thisPageUrl) {
3736
- const token = getQueryParam("token", false);
3737
- let accessToken = localStorage.getItem("accessToken");
3738
- if (!accessToken && !token) {
3739
- console.log('你未登录!');
3740
- const target = `${loginUrl}?web_url=${encodeURIComponent(thisPageUrl)}`;
3741
- confirm('你未登录。是否跳转到登录页面?') && location.assign(target);
3742
- return;
3743
- }
3744
- if (token) {
3745
- accessToken = decodeURIComponent(token);
3746
- localStorage.setItem("accessToken", accessToken);
3747
- // 只需要第一次的参数,之后不需要,现在清除
3748
- const url = new URL(location.href); // 创建一个包含查询参数的URL
3749
- const params = new URLSearchParams(url.search); // 获取URL中的查询参数
3750
- params.delete('token'); // 删除名为'b'的参数
3751
- url.search = params.toString(); // 更新URL的查询参数
3752
- location.assign(url.href);
3753
- }
3754
- // window.JWT_TOKEN = JSON.parse(accessToken);
3755
- util_.Xhr.setBaseHeadParams({
3756
- Authorization: 'Bearer ' + accessToken
3757
- });
3758
- // 将 JWT Token 拆分为三个部分
3759
- const tokenParts = accessToken.split('.');
3760
- const payload = JSON.parse(atob(tokenParts[1])); // 解析载荷
3761
- return payload;
3762
- }
3763
- });
3764
- function getQueryParam(variable, isParent) {
3765
- const query = (isParent ? parent.location : window.location).search.substring(1);
3766
- const vars = query.split("&");
3767
- for (let i = 0; i < vars.length; i++) {
3768
- const pair = vars[i].split("=");
3769
- if (pair[0] == variable) return pair[1];
3770
- }
3771
- return null;
3772
- }
3773
- ;// CONCATENATED MODULE: ./src/index.js
3774
- // 动态引入组件
3775
- const requireComponent = __webpack_require__(9887);
3776
-
3777
-
3778
- const components = {};
3779
- requireComponent.keys().forEach(fileName => {
3780
- if (fileName != './App.vue') {
3781
- const cmp = requireComponent(fileName).default || requireComponent(fileName);
3782
- if (cmp.extendOptions) components[cmp.extendOptions.name] = cmp;
3783
- }
3784
- });
3785
-
3786
- // 插件
3787
- const install = Vue => {
3788
- if (install.installed) return install.installed;
3789
- requireComponent.keys().forEach(fileName => {
3790
- if (fileName != './App.vue') {
3791
- // 第i个组件
3792
- const cmp = requireComponent(fileName).default || requireComponent(fileName);
3793
- if (cmp.extendOptions && cmp.extendOptions.name) {
3794
- // console.log(fileName, cmp.extendOptions.name);
3795
-
3796
- // 注册组件(组件名,组件)
3797
- Vue.component(cmp.extendOptions.name, cmp);
3798
- }
3799
- }
3800
- });
3801
-
3802
- // 全局自定义指令
3803
- Vue.directive('focus', {
3804
- inserted: function (el) {
3805
- el.focus();
3806
- }
3807
- });
3808
- };
3809
-
3810
- // 环境检测
3811
- if (typeof window !== 'undefined' && window.Vue) install(window.Vue);
3812
- /* harmony default export */ var src_0 = ({
3813
- install,
3814
- List: list/* default */.A,
3815
- IAM: iam,
3816
- ...components //组件也一样要暴露
3817
- });
3818
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
3819
-
3820
-
3821
- /* harmony default export */ var entry_lib = (src_0);
3822
-
3823
-
3824
- }();
3825
- /******/ return __webpack_exports__;
3826
- /******/ })()
3827
- ;
3828
- });
3829
- //# sourceMappingURL=ui.umd.js.map