@indfnd/common-mobile 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/ind-common-mobile.es.js +303 -343
- package/dist/ind-common-mobile.umd.cjs +8 -8
- package/package.json +2 -2
|
@@ -2,13 +2,13 @@ import _ from "lodash";
|
|
|
2
2
|
import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$3, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, listItemTreeApi, getToken, MIME_TYPE, config as config$1, getSessionStorage, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, setConfig } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
|
-
const name
|
|
6
|
-
const version$
|
|
7
|
-
const author
|
|
5
|
+
const name = "@indfnd/common-mobile";
|
|
6
|
+
const version$1 = "1.0.40";
|
|
7
|
+
const author = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
10
10
|
};
|
|
11
|
-
const main$
|
|
11
|
+
const main$1 = "./dist/ind-common-mobile.umd.cjs";
|
|
12
12
|
const module = "./dist/ind-common-mobile.es.js";
|
|
13
13
|
const style = "./dist/styles/index.css";
|
|
14
14
|
const types = "./types/index.d.ts";
|
|
@@ -32,7 +32,7 @@ const files = [
|
|
|
32
32
|
"global.d.ts",
|
|
33
33
|
"src/styles/variables"
|
|
34
34
|
];
|
|
35
|
-
const scripts
|
|
35
|
+
const scripts = {
|
|
36
36
|
"build:prod": "vite build",
|
|
37
37
|
"build:style": "gulp --gulpfile build/build-style.js",
|
|
38
38
|
build: "yarn build:prod && yarn build:style",
|
|
@@ -44,13 +44,13 @@ const scripts$1 = {
|
|
|
44
44
|
"release-patch": "standard-version --release-as patch",
|
|
45
45
|
"re-publish": "yarn publish --access public"
|
|
46
46
|
};
|
|
47
|
-
const dependencies
|
|
47
|
+
const dependencies = {
|
|
48
48
|
classnames: "^2.5.1",
|
|
49
49
|
vuedraggable: "^2.24.3"
|
|
50
50
|
};
|
|
51
|
-
const devDependencies
|
|
51
|
+
const devDependencies = {
|
|
52
52
|
lodash: "4.17.21",
|
|
53
|
-
"@indfnd/utils": "^0.1.
|
|
53
|
+
"@indfnd/utils": "^0.1.36",
|
|
54
54
|
eslint: "^3.19.0",
|
|
55
55
|
"eslint-config-prettier": "^8.5.0",
|
|
56
56
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -82,20 +82,20 @@ const devDependencies$1 = {
|
|
|
82
82
|
const engines = {
|
|
83
83
|
node: ">= 16"
|
|
84
84
|
};
|
|
85
|
-
var pkg
|
|
86
|
-
name
|
|
87
|
-
version: version$
|
|
88
|
-
author
|
|
85
|
+
var pkg = {
|
|
86
|
+
name,
|
|
87
|
+
version: version$1,
|
|
88
|
+
author,
|
|
89
89
|
publishConfig,
|
|
90
|
-
main: main$
|
|
90
|
+
main: main$1,
|
|
91
91
|
module,
|
|
92
92
|
style,
|
|
93
93
|
types,
|
|
94
94
|
exports,
|
|
95
95
|
files,
|
|
96
|
-
scripts
|
|
97
|
-
dependencies
|
|
98
|
-
devDependencies
|
|
96
|
+
scripts,
|
|
97
|
+
dependencies,
|
|
98
|
+
devDependencies,
|
|
99
99
|
engines
|
|
100
100
|
};
|
|
101
101
|
var render$L = function() {
|
|
@@ -3819,21 +3819,21 @@ const __vue2_script$A = {
|
|
|
3819
3819
|
}
|
|
3820
3820
|
this.loadingComp = false;
|
|
3821
3821
|
}, 2),
|
|
3822
|
-
setForm(table,
|
|
3822
|
+
setForm(table, data50) {
|
|
3823
3823
|
let field = table.dataField;
|
|
3824
3824
|
if (table.type == "form") {
|
|
3825
3825
|
if (field) {
|
|
3826
|
-
this.form[field] =
|
|
3826
|
+
this.form[field] = data50;
|
|
3827
3827
|
} else {
|
|
3828
|
-
this.form =
|
|
3828
|
+
this.form = data50;
|
|
3829
3829
|
}
|
|
3830
3830
|
} else if (table.type == "list") {
|
|
3831
3831
|
let rowKey = table.rowKey || "id";
|
|
3832
3832
|
let listTmp = _.cloneDeep(this.form[field]);
|
|
3833
3833
|
let tmpRow = _.find(listTmp, (d) => {
|
|
3834
|
-
return d[rowKey] ==
|
|
3834
|
+
return d[rowKey] == data50[rowKey];
|
|
3835
3835
|
});
|
|
3836
|
-
_.merge(tmpRow,
|
|
3836
|
+
_.merge(tmpRow, data50);
|
|
3837
3837
|
this.form[field] = listTmp;
|
|
3838
3838
|
}
|
|
3839
3839
|
},
|
|
@@ -3956,6 +3956,7 @@ const __vue2_script$z = {
|
|
|
3956
3956
|
apiParams: Object,
|
|
3957
3957
|
cardFields: Array,
|
|
3958
3958
|
enableLoadMore: Boolean,
|
|
3959
|
+
autoRefresh: Boolean,
|
|
3959
3960
|
disablePage: {
|
|
3960
3961
|
type: Boolean,
|
|
3961
3962
|
default: true
|
|
@@ -3996,6 +3997,11 @@ const __vue2_script$z = {
|
|
|
3996
3997
|
this.initConfig();
|
|
3997
3998
|
this.initData();
|
|
3998
3999
|
},
|
|
4000
|
+
activated() {
|
|
4001
|
+
if (this.autoRefresh) {
|
|
4002
|
+
this.initData();
|
|
4003
|
+
}
|
|
4004
|
+
},
|
|
3999
4005
|
mounted() {
|
|
4000
4006
|
var _a, _b, _c, _d, _e;
|
|
4001
4007
|
this.bottomHeight = (((_d = (_c = (_b = (_a = this.$slots) == null ? void 0 : _a.bottom) == null ? void 0 : _b[0]) == null ? void 0 : _c.elm) == null ? void 0 : _d.clientHeight) || ((_e = this.$refs.bottomRef) == null ? void 0 : _e.clientHeight) || 0) + "px";
|
|
@@ -4115,12 +4121,12 @@ const __vue2_script$z = {
|
|
|
4115
4121
|
params = this.renderParams(params);
|
|
4116
4122
|
}
|
|
4117
4123
|
const result = await this.dataApi(params);
|
|
4118
|
-
let
|
|
4124
|
+
let data50 = result.data.rows || result.data.records || [];
|
|
4119
4125
|
if (this.disablePage && result.data instanceof Array) {
|
|
4120
|
-
|
|
4126
|
+
data50 = result.data;
|
|
4121
4127
|
}
|
|
4122
|
-
this.rows = [...this.rows, ...
|
|
4123
|
-
this.allData = [...this.allData, ...
|
|
4128
|
+
this.rows = [...this.rows, ...data50];
|
|
4129
|
+
this.allData = [...this.allData, ...data50];
|
|
4124
4130
|
this.pagination.offset += this.pagination.limit;
|
|
4125
4131
|
this.currentPage++;
|
|
4126
4132
|
this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
|
|
@@ -4223,13 +4229,13 @@ const __vue2_script$z = {
|
|
|
4223
4229
|
params = this.renderParams(params);
|
|
4224
4230
|
}
|
|
4225
4231
|
const result = await this.dataApi(params);
|
|
4226
|
-
let
|
|
4232
|
+
let data50 = result.data.rows || result.data.records || [];
|
|
4227
4233
|
if (this.disablePage && result.data instanceof Array) {
|
|
4228
|
-
|
|
4234
|
+
data50 = result.data;
|
|
4229
4235
|
}
|
|
4230
|
-
this.rows =
|
|
4231
|
-
this.allData = [...
|
|
4232
|
-
this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (
|
|
4236
|
+
this.rows = data50;
|
|
4237
|
+
this.allData = [...data50];
|
|
4238
|
+
this.total = ((_a = result.data) == null ? void 0 : _a.total) || (this.disablePage ? (data50 == null ? void 0 : data50.length) || 0 : 0);
|
|
4233
4239
|
if (!this.disablePage) {
|
|
4234
4240
|
this.pagination.total = this.total;
|
|
4235
4241
|
this.isFinished = this.pagination.limit >= this.pagination.total;
|
|
@@ -5102,14 +5108,14 @@ function emit(context2, eventName) {
|
|
|
5102
5108
|
}
|
|
5103
5109
|
}
|
|
5104
5110
|
}
|
|
5105
|
-
function mount(Component,
|
|
5111
|
+
function mount(Component, data50) {
|
|
5106
5112
|
var instance2 = new Vue$1({
|
|
5107
5113
|
el: document.createElement("div"),
|
|
5108
5114
|
props: Component.props,
|
|
5109
5115
|
render: function render83(h) {
|
|
5110
5116
|
return h(Component, _extends$2({
|
|
5111
5117
|
props: this.$props
|
|
5112
|
-
},
|
|
5118
|
+
}, data50));
|
|
5113
5119
|
}
|
|
5114
5120
|
});
|
|
5115
5121
|
document.body.appendChild(instance2.$el);
|
|
@@ -5515,7 +5521,7 @@ function PopupMixin(options) {
|
|
|
5515
5521
|
};
|
|
5516
5522
|
},
|
|
5517
5523
|
props: popupMixinProps,
|
|
5518
|
-
data: function
|
|
5524
|
+
data: function data50() {
|
|
5519
5525
|
this.onReopenCallback = [];
|
|
5520
5526
|
return {
|
|
5521
5527
|
inited: this.value
|
|
@@ -5967,11 +5973,11 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
5967
5973
|
}
|
|
5968
5974
|
}
|
|
5969
5975
|
function Description() {
|
|
5970
|
-
var
|
|
5971
|
-
if (
|
|
5976
|
+
var description = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
5977
|
+
if (description) {
|
|
5972
5978
|
return h("div", {
|
|
5973
5979
|
"class": bem$1s("description")
|
|
5974
|
-
}, [
|
|
5980
|
+
}, [description]);
|
|
5975
5981
|
}
|
|
5976
5982
|
}
|
|
5977
5983
|
return h(Popup, _mergeJSXProps([{
|
|
@@ -6366,7 +6372,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6366
6372
|
var _domProps;
|
|
6367
6373
|
var text = _this4.getOptionText(option2);
|
|
6368
6374
|
var disabled = isOptionDisabled(option2);
|
|
6369
|
-
var
|
|
6375
|
+
var data50 = {
|
|
6370
6376
|
style: optionStyle,
|
|
6371
6377
|
attrs: {
|
|
6372
6378
|
role: "button",
|
|
@@ -6386,7 +6392,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6386
6392
|
class: "van-ellipsis",
|
|
6387
6393
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
|
|
6388
6394
|
};
|
|
6389
|
-
return h("li", _mergeJSXProps([{},
|
|
6395
|
+
return h("li", _mergeJSXProps([{}, data50]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
|
|
6390
6396
|
});
|
|
6391
6397
|
}
|
|
6392
6398
|
},
|
|
@@ -8190,7 +8196,7 @@ function ParentMixin(parent) {
|
|
|
8190
8196
|
var _ref;
|
|
8191
8197
|
return _ref = {}, _ref[parent] = this, _ref;
|
|
8192
8198
|
},
|
|
8193
|
-
data: function
|
|
8199
|
+
data: function data50() {
|
|
8194
8200
|
return {
|
|
8195
8201
|
children: []
|
|
8196
8202
|
};
|
|
@@ -8456,7 +8462,7 @@ var VanDialog = createComponent$1r({
|
|
|
8456
8462
|
var message = this.message, messageAlign = this.messageAlign;
|
|
8457
8463
|
if (message) {
|
|
8458
8464
|
var _bem, _domProps;
|
|
8459
|
-
var
|
|
8465
|
+
var data50 = {
|
|
8460
8466
|
class: bem$1i("message", (_bem = {
|
|
8461
8467
|
"has-title": hasTitle
|
|
8462
8468
|
}, _bem[messageAlign] = messageAlign, _bem)),
|
|
@@ -8466,7 +8472,7 @@ var VanDialog = createComponent$1r({
|
|
|
8466
8472
|
"class": bem$1i("content", {
|
|
8467
8473
|
isolated: !hasTitle
|
|
8468
8474
|
})
|
|
8469
|
-
}, [h("div", _mergeJSXProps([{},
|
|
8475
|
+
}, [h("div", _mergeJSXProps([{}, data50]))]);
|
|
8470
8476
|
}
|
|
8471
8477
|
}
|
|
8472
8478
|
},
|
|
@@ -9055,7 +9061,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9055
9061
|
},
|
|
9056
9062
|
render: function render12(h) {
|
|
9057
9063
|
var _this5 = this;
|
|
9058
|
-
var
|
|
9064
|
+
var data50 = this.data, errorInfo = this.errorInfo, disableArea = this.disableArea, hideBottomFields2 = this.hideBottomFields;
|
|
9059
9065
|
var onFocus5 = function onFocus6(name2) {
|
|
9060
9066
|
return function() {
|
|
9061
9067
|
return _this5.onFocus(name2);
|
|
@@ -9076,9 +9082,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9076
9082
|
"focus": onFocus5("name")
|
|
9077
9083
|
},
|
|
9078
9084
|
"model": {
|
|
9079
|
-
value:
|
|
9085
|
+
value: data50.name,
|
|
9080
9086
|
callback: function callback2($$v) {
|
|
9081
|
-
_this5.$set(
|
|
9087
|
+
_this5.$set(data50, "name", $$v);
|
|
9082
9088
|
}
|
|
9083
9089
|
}
|
|
9084
9090
|
}), h(Field, {
|
|
@@ -9094,9 +9100,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9094
9100
|
"focus": onFocus5("tel")
|
|
9095
9101
|
},
|
|
9096
9102
|
"model": {
|
|
9097
|
-
value:
|
|
9103
|
+
value: data50.tel,
|
|
9098
9104
|
callback: function callback2($$v) {
|
|
9099
|
-
_this5.$set(
|
|
9105
|
+
_this5.$set(data50, "tel", $$v);
|
|
9100
9106
|
}
|
|
9101
9107
|
}
|
|
9102
9108
|
}), h(Field, {
|
|
@@ -9127,7 +9133,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9127
9133
|
}],
|
|
9128
9134
|
"attrs": {
|
|
9129
9135
|
"focused": this.detailFocused,
|
|
9130
|
-
"value":
|
|
9136
|
+
"value": data50.addressDetail,
|
|
9131
9137
|
"errorMessage": errorInfo.addressDetail,
|
|
9132
9138
|
"detailRows": this.detailRows,
|
|
9133
9139
|
"detailMaxlength": this.detailMaxlength,
|
|
@@ -9158,9 +9164,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9158
9164
|
"focus": onFocus5("postalCode")
|
|
9159
9165
|
},
|
|
9160
9166
|
"model": {
|
|
9161
|
-
value:
|
|
9167
|
+
value: data50.postalCode,
|
|
9162
9168
|
callback: function callback2($$v) {
|
|
9163
|
-
_this5.$set(
|
|
9169
|
+
_this5.$set(data50, "postalCode", $$v);
|
|
9164
9170
|
}
|
|
9165
9171
|
}
|
|
9166
9172
|
}), this.slots()]), this.genSetDefaultCell(h), h("div", {
|
|
@@ -9206,7 +9212,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9206
9212
|
}, [h(Area, {
|
|
9207
9213
|
"ref": "area",
|
|
9208
9214
|
"attrs": {
|
|
9209
|
-
"value":
|
|
9215
|
+
"value": data50.areaCode,
|
|
9210
9216
|
"loading": !this.areaListLoaded,
|
|
9211
9217
|
"areaList": this.areaList,
|
|
9212
9218
|
"columnsPlaceholder": this.areaColumnsPlaceholder
|
|
@@ -9488,16 +9494,16 @@ function AddressItem(h, props, slots2, ctx) {
|
|
|
9488
9494
|
}
|
|
9489
9495
|
}
|
|
9490
9496
|
function genContent6() {
|
|
9491
|
-
var
|
|
9497
|
+
var data50 = props.data;
|
|
9492
9498
|
var Info2 = [h("div", {
|
|
9493
9499
|
"class": bem$1b("name")
|
|
9494
|
-
}, [
|
|
9500
|
+
}, [data50.name + " " + data50.tel, genTag()]), h("div", {
|
|
9495
9501
|
"class": bem$1b("address")
|
|
9496
|
-
}, [
|
|
9502
|
+
}, [data50.address])];
|
|
9497
9503
|
if (switchable && !disabled) {
|
|
9498
9504
|
return h(Radio, {
|
|
9499
9505
|
"attrs": {
|
|
9500
|
-
"name":
|
|
9506
|
+
"name": data50.id,
|
|
9501
9507
|
"iconSize": 18
|
|
9502
9508
|
}
|
|
9503
9509
|
}, [Info2]);
|
|
@@ -12492,7 +12498,7 @@ var ContactEdit = createComponent$_({
|
|
|
12492
12498
|
render: function render30() {
|
|
12493
12499
|
var _this3 = this;
|
|
12494
12500
|
var h = arguments[0];
|
|
12495
|
-
var
|
|
12501
|
+
var data50 = this.data, errorInfo = this.errorInfo;
|
|
12496
12502
|
var onFocus5 = function onFocus6(name2) {
|
|
12497
12503
|
return function() {
|
|
12498
12504
|
return _this3.onFocus(name2);
|
|
@@ -12514,9 +12520,9 @@ var ContactEdit = createComponent$_({
|
|
|
12514
12520
|
"focus": onFocus5("name")
|
|
12515
12521
|
},
|
|
12516
12522
|
"model": {
|
|
12517
|
-
value:
|
|
12523
|
+
value: data50.name,
|
|
12518
12524
|
callback: function callback2($$v) {
|
|
12519
|
-
_this3.$set(
|
|
12525
|
+
_this3.$set(data50, "name", $$v);
|
|
12520
12526
|
}
|
|
12521
12527
|
}
|
|
12522
12528
|
}), h(Field, {
|
|
@@ -12531,9 +12537,9 @@ var ContactEdit = createComponent$_({
|
|
|
12531
12537
|
"focus": onFocus5("tel")
|
|
12532
12538
|
},
|
|
12533
12539
|
"model": {
|
|
12534
|
-
value:
|
|
12540
|
+
value: data50.tel,
|
|
12535
12541
|
callback: function callback2($$v) {
|
|
12536
|
-
_this3.$set(
|
|
12542
|
+
_this3.$set(data50, "tel", $$v);
|
|
12537
12543
|
}
|
|
12538
12544
|
}
|
|
12539
12545
|
})]), this.showSetDefault && h(Cell$1, {
|
|
@@ -12553,9 +12559,9 @@ var ContactEdit = createComponent$_({
|
|
|
12553
12559
|
}
|
|
12554
12560
|
},
|
|
12555
12561
|
"model": {
|
|
12556
|
-
value:
|
|
12562
|
+
value: data50.isDefault,
|
|
12557
12563
|
callback: function callback2($$v) {
|
|
12558
|
-
_this3.$set(
|
|
12564
|
+
_this3.$set(data50, "isDefault", $$v);
|
|
12559
12565
|
}
|
|
12560
12566
|
}
|
|
12561
12567
|
})]), h("div", {
|
|
@@ -12917,7 +12923,7 @@ var Coupon = createComponent$X({
|
|
|
12917
12923
|
render: function render32() {
|
|
12918
12924
|
var h = arguments[0];
|
|
12919
12925
|
var coupon = this.coupon, disabled = this.disabled;
|
|
12920
|
-
var
|
|
12926
|
+
var description = disabled && coupon.reason || coupon.description;
|
|
12921
12927
|
return h("div", {
|
|
12922
12928
|
"class": bem$Q({
|
|
12923
12929
|
disabled
|
|
@@ -12946,9 +12952,9 @@ var Coupon = createComponent$X({
|
|
|
12946
12952
|
"checkedColor": RED
|
|
12947
12953
|
},
|
|
12948
12954
|
"class": bem$Q("corner")
|
|
12949
|
-
})])]),
|
|
12955
|
+
})])]), description && h("p", {
|
|
12950
12956
|
"class": bem$Q("description")
|
|
12951
|
-
}, [
|
|
12957
|
+
}, [description])]);
|
|
12952
12958
|
}
|
|
12953
12959
|
});
|
|
12954
12960
|
var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
|
|
@@ -13980,7 +13986,7 @@ var ClickOutsideMixin = function ClickOutsideMixin2(config2) {
|
|
|
13980
13986
|
default: true
|
|
13981
13987
|
}
|
|
13982
13988
|
},
|
|
13983
|
-
data: function
|
|
13989
|
+
data: function data50() {
|
|
13984
13990
|
var _this = this;
|
|
13985
13991
|
var clickOutsideHandler = function clickOutsideHandler2(event) {
|
|
13986
13992
|
if (_this.closeOnClickOutside && !_this.$el.contains(event.target)) {
|
|
@@ -14334,11 +14340,11 @@ var Empty = createComponent$O({
|
|
|
14334
14340
|
},
|
|
14335
14341
|
genDescription: function genDescription() {
|
|
14336
14342
|
var h = this.$createElement;
|
|
14337
|
-
var
|
|
14338
|
-
if (
|
|
14343
|
+
var description = this.slots("description") || this.description;
|
|
14344
|
+
if (description) {
|
|
14339
14345
|
return h("p", {
|
|
14340
14346
|
"class": bem$J("description")
|
|
14341
|
-
}, [
|
|
14347
|
+
}, [description]);
|
|
14342
14348
|
}
|
|
14343
14349
|
},
|
|
14344
14350
|
genBottom: function genBottom() {
|
|
@@ -15630,9 +15636,9 @@ var initInstance = function initInstance2() {
|
|
|
15630
15636
|
instance$1.onChange(index2);
|
|
15631
15637
|
}
|
|
15632
15638
|
});
|
|
15633
|
-
instance$1.$on("scale", function(
|
|
15639
|
+
instance$1.$on("scale", function(data50) {
|
|
15634
15640
|
if (instance$1.onScale) {
|
|
15635
|
-
instance$1.onScale(
|
|
15641
|
+
instance$1.onScale(data50);
|
|
15636
15642
|
}
|
|
15637
15643
|
});
|
|
15638
15644
|
};
|
|
@@ -17317,12 +17323,12 @@ var beforeRead = "beforeRead";
|
|
|
17317
17323
|
var read = "read";
|
|
17318
17324
|
var afterRead = "afterRead";
|
|
17319
17325
|
var beforeMain = "beforeMain";
|
|
17320
|
-
var main
|
|
17326
|
+
var main = "main";
|
|
17321
17327
|
var afterMain = "afterMain";
|
|
17322
17328
|
var beforeWrite = "beforeWrite";
|
|
17323
17329
|
var write = "write";
|
|
17324
17330
|
var afterWrite = "afterWrite";
|
|
17325
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main
|
|
17331
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
17326
17332
|
function order(modifiers) {
|
|
17327
17333
|
var map = /* @__PURE__ */ new Map();
|
|
17328
17334
|
var visited = /* @__PURE__ */ new Set();
|
|
@@ -17958,16 +17964,16 @@ function distanceAndSkiddingToXY(placement, rects, offset22) {
|
|
|
17958
17964
|
function offset2(_ref2) {
|
|
17959
17965
|
var state = _ref2.state, options = _ref2.options, name2 = _ref2.name;
|
|
17960
17966
|
var _options$offset = options.offset, offset22 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
17961
|
-
var
|
|
17967
|
+
var data50 = placements.reduce(function(acc, placement) {
|
|
17962
17968
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset22);
|
|
17963
17969
|
return acc;
|
|
17964
17970
|
}, {});
|
|
17965
|
-
var _data$state$placement =
|
|
17971
|
+
var _data$state$placement = data50[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
|
|
17966
17972
|
if (state.modifiersData.popperOffsets != null) {
|
|
17967
17973
|
state.modifiersData.popperOffsets.x += x;
|
|
17968
17974
|
state.modifiersData.popperOffsets.y += y;
|
|
17969
17975
|
}
|
|
17970
|
-
state.modifiersData[name2] =
|
|
17976
|
+
state.modifiersData[name2] = data50;
|
|
17971
17977
|
}
|
|
17972
17978
|
var offset_default = {
|
|
17973
17979
|
name: "offset",
|
|
@@ -18845,17 +18851,17 @@ var ShareSheet = createComponent$p({
|
|
|
18845
18851
|
genHeader: function genHeader() {
|
|
18846
18852
|
var h = this.$createElement;
|
|
18847
18853
|
var title4 = this.slots("title") || this.title;
|
|
18848
|
-
var
|
|
18849
|
-
if (!title4 && !
|
|
18854
|
+
var description = this.slots("description") || this.description;
|
|
18855
|
+
if (!title4 && !description) {
|
|
18850
18856
|
return;
|
|
18851
18857
|
}
|
|
18852
18858
|
return h("div", {
|
|
18853
18859
|
"class": bem$k("header")
|
|
18854
18860
|
}, [title4 && h("h2", {
|
|
18855
18861
|
"class": bem$k("title")
|
|
18856
|
-
}, [title4]),
|
|
18862
|
+
}, [title4]), description && h("span", {
|
|
18857
18863
|
"class": bem$k("description")
|
|
18858
|
-
}, [
|
|
18864
|
+
}, [description])]);
|
|
18859
18865
|
},
|
|
18860
18866
|
genOptions: function genOptions2(options, showBorder) {
|
|
18861
18867
|
var _this = this;
|
|
@@ -20218,9 +20224,9 @@ var Uploader = createComponent$e({
|
|
|
20218
20224
|
return;
|
|
20219
20225
|
}
|
|
20220
20226
|
if (isPromise(response)) {
|
|
20221
|
-
response.then(function(
|
|
20222
|
-
if (
|
|
20223
|
-
_this.readFile(
|
|
20227
|
+
response.then(function(data50) {
|
|
20228
|
+
if (data50) {
|
|
20229
|
+
_this.readFile(data50);
|
|
20224
20230
|
} else {
|
|
20225
20231
|
_this.readFile(files2);
|
|
20226
20232
|
}
|
|
@@ -20676,11 +20682,11 @@ var SkuDateTimeField = createComponent$c({
|
|
|
20676
20682
|
this.showDatePicker = true;
|
|
20677
20683
|
},
|
|
20678
20684
|
onConfirm: function onConfirm4(val) {
|
|
20679
|
-
var
|
|
20685
|
+
var data50 = val;
|
|
20680
20686
|
if (this.type !== "time") {
|
|
20681
|
-
|
|
20687
|
+
data50 = dateToString(val, this.type);
|
|
20682
20688
|
}
|
|
20683
|
-
this.$emit("input",
|
|
20689
|
+
this.$emit("input", data50);
|
|
20684
20690
|
this.showDatePicker = false;
|
|
20685
20691
|
},
|
|
20686
20692
|
onCancel: function onCancel3() {
|
|
@@ -21405,11 +21411,11 @@ var Sku = createComponent$9({
|
|
|
21405
21411
|
}
|
|
21406
21412
|
});
|
|
21407
21413
|
},
|
|
21408
|
-
onOverLimit: function onOverLimit2(
|
|
21409
|
-
var action =
|
|
21414
|
+
onOverLimit: function onOverLimit2(data50) {
|
|
21415
|
+
var action = data50.action, limitType = data50.limitType, quota = data50.quota, quotaUsed = data50.quotaUsed;
|
|
21410
21416
|
var handleOverLimit = this.customStepperConfig.handleOverLimit;
|
|
21411
21417
|
if (handleOverLimit) {
|
|
21412
|
-
handleOverLimit(
|
|
21418
|
+
handleOverLimit(data50);
|
|
21413
21419
|
return;
|
|
21414
21420
|
}
|
|
21415
21421
|
if (action === "minus") {
|
|
@@ -21430,8 +21436,8 @@ var Sku = createComponent$9({
|
|
|
21430
21436
|
}
|
|
21431
21437
|
}
|
|
21432
21438
|
},
|
|
21433
|
-
onStepperState: function onStepperState(
|
|
21434
|
-
this.stepperError =
|
|
21439
|
+
onStepperState: function onStepperState(data50) {
|
|
21440
|
+
this.stepperError = data50.valid ? null : _extends$2({}, data50, {
|
|
21435
21441
|
action: "plus"
|
|
21436
21442
|
});
|
|
21437
21443
|
},
|
|
@@ -22987,10 +22993,10 @@ const __vue2_script$r = {
|
|
|
22987
22993
|
}
|
|
22988
22994
|
},
|
|
22989
22995
|
methods: {
|
|
22990
|
-
setLength(
|
|
22996
|
+
setLength(data50) {
|
|
22991
22997
|
var _a;
|
|
22992
22998
|
if (this.isTree) {
|
|
22993
|
-
let dataTmp = (
|
|
22999
|
+
let dataTmp = (data50 == null ? void 0 : data50.data) || data50;
|
|
22994
23000
|
let leafNodes = [];
|
|
22995
23001
|
deepEach({}, dataTmp, (d, p, idx) => {
|
|
22996
23002
|
var _a2;
|
|
@@ -23000,7 +23006,7 @@ const __vue2_script$r = {
|
|
|
23000
23006
|
});
|
|
23001
23007
|
this.dataLen = (leafNodes == null ? void 0 : leafNodes.length) || 0;
|
|
23002
23008
|
} else {
|
|
23003
|
-
this.dataLen = (
|
|
23009
|
+
this.dataLen = (data50 == null ? void 0 : data50.length) || ((_a = data50 == null ? void 0 : data50.data) == null ? void 0 : _a.length);
|
|
23004
23010
|
}
|
|
23005
23011
|
},
|
|
23006
23012
|
toggleCheckAll() {
|
|
@@ -23303,8 +23309,8 @@ const __vue2_script$q = {
|
|
|
23303
23309
|
clearSelected() {
|
|
23304
23310
|
this.selectedTitles = "";
|
|
23305
23311
|
},
|
|
23306
|
-
updateSearchNum(
|
|
23307
|
-
this.searchNum =
|
|
23312
|
+
updateSearchNum(data50) {
|
|
23313
|
+
this.searchNum = data50;
|
|
23308
23314
|
},
|
|
23309
23315
|
updateSelectedTitles() {
|
|
23310
23316
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -24109,7 +24115,7 @@ function _iterableToArray(iter) {
|
|
|
24109
24115
|
function _nonIterableSpread() {
|
|
24110
24116
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24111
24117
|
}
|
|
24112
|
-
var version
|
|
24118
|
+
var version = "1.10.2";
|
|
24113
24119
|
function userAgent$1(pattern) {
|
|
24114
24120
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24115
24121
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24557,14 +24563,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24557
24563
|
return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
|
24558
24564
|
}
|
|
24559
24565
|
var plugins$1 = [];
|
|
24560
|
-
var defaults$
|
|
24566
|
+
var defaults$5 = {
|
|
24561
24567
|
initializeByDefault: true
|
|
24562
24568
|
};
|
|
24563
24569
|
var PluginManager = {
|
|
24564
24570
|
mount: function mount2(plugin) {
|
|
24565
|
-
for (var option2 in defaults$
|
|
24566
|
-
if (defaults$
|
|
24567
|
-
plugin[option2] = defaults$
|
|
24571
|
+
for (var option2 in defaults$5) {
|
|
24572
|
+
if (defaults$5.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24573
|
+
plugin[option2] = defaults$5[option2];
|
|
24568
24574
|
}
|
|
24569
24575
|
}
|
|
24570
24576
|
plugins$1.push(plugin);
|
|
@@ -24669,7 +24675,7 @@ function dispatchEvent(_ref) {
|
|
|
24669
24675
|
}
|
|
24670
24676
|
}
|
|
24671
24677
|
var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
24672
|
-
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt,
|
|
24678
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data50 = _objectWithoutProperties(_ref, ["evt"]);
|
|
24673
24679
|
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({
|
|
24674
24680
|
dragEl,
|
|
24675
24681
|
parentEl,
|
|
@@ -24702,7 +24708,7 @@ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
|
24702
24708
|
originalEvent
|
|
24703
24709
|
});
|
|
24704
24710
|
}
|
|
24705
|
-
},
|
|
24711
|
+
}, data50));
|
|
24706
24712
|
};
|
|
24707
24713
|
function _dispatchEvent(info) {
|
|
24708
24714
|
dispatchEvent(_objectSpread({
|
|
@@ -25886,7 +25892,7 @@ Sortable.mount = function() {
|
|
|
25886
25892
|
Sortable.create = function(el, options) {
|
|
25887
25893
|
return new Sortable(el, options);
|
|
25888
25894
|
};
|
|
25889
|
-
Sortable.version = version
|
|
25895
|
+
Sortable.version = version;
|
|
25890
25896
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
25891
25897
|
function AutoScrollPlugin() {
|
|
25892
25898
|
function AutoScroll() {
|
|
@@ -26204,15 +26210,15 @@ function MultiDragPlugin() {
|
|
|
26204
26210
|
selectedClass: "sortable-selected",
|
|
26205
26211
|
multiDragKey: null,
|
|
26206
26212
|
setData: function setData(dataTransfer, dragEl2) {
|
|
26207
|
-
var
|
|
26213
|
+
var data50 = "";
|
|
26208
26214
|
if (multiDragElements.length && multiDragSortable === sortable) {
|
|
26209
26215
|
multiDragElements.forEach(function(multiDragElement, i) {
|
|
26210
|
-
|
|
26216
|
+
data50 += (!i ? "" : ", ") + multiDragElement.textContent;
|
|
26211
26217
|
});
|
|
26212
26218
|
} else {
|
|
26213
|
-
|
|
26219
|
+
data50 = dragEl2.textContent;
|
|
26214
26220
|
}
|
|
26215
|
-
dataTransfer.setData("Text",
|
|
26221
|
+
dataTransfer.setData("Text", data50);
|
|
26216
26222
|
}
|
|
26217
26223
|
};
|
|
26218
26224
|
}
|
|
@@ -26673,10 +26679,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26673
26679
|
Sortable,
|
|
26674
26680
|
Swap: SwapPlugin
|
|
26675
26681
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26676
|
-
var require$$0
|
|
26682
|
+
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26677
26683
|
(function(module2, exports2) {
|
|
26678
26684
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26679
|
-
module2.exports = factory(require$$0
|
|
26685
|
+
module2.exports = factory(require$$0);
|
|
26680
26686
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26681
26687
|
return function(modules) {
|
|
26682
26688
|
var installedModules = {};
|
|
@@ -27051,7 +27057,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27051
27057
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27052
27058
|
return createDict();
|
|
27053
27059
|
};
|
|
27054
|
-
module3.exports = Object.create || function
|
|
27060
|
+
module3.exports = Object.create || function create(O, Properties) {
|
|
27055
27061
|
var result;
|
|
27056
27062
|
if (O !== null) {
|
|
27057
27063
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27118,7 +27124,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27118
27124
|
};
|
|
27119
27125
|
},
|
|
27120
27126
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27121
|
-
var
|
|
27127
|
+
var create = __webpack_require__("2aeb");
|
|
27122
27128
|
var descriptor = __webpack_require__("4630");
|
|
27123
27129
|
var setToStringTag = __webpack_require__("7f20");
|
|
27124
27130
|
var IteratorPrototype = {};
|
|
@@ -27126,7 +27132,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27126
27132
|
return this;
|
|
27127
27133
|
});
|
|
27128
27134
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27129
|
-
Constructor.prototype =
|
|
27135
|
+
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27130
27136
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27131
27137
|
};
|
|
27132
27138
|
},
|
|
@@ -28185,7 +28191,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28185
28191
|
name: "draggable",
|
|
28186
28192
|
inheritAttrs: false,
|
|
28187
28193
|
props,
|
|
28188
|
-
data: function
|
|
28194
|
+
data: function data50() {
|
|
28189
28195
|
return {
|
|
28190
28196
|
transitionMode: false,
|
|
28191
28197
|
noneFunctionalComponentMode: false
|
|
@@ -30381,9 +30387,9 @@ function getMaxDepth(obj, currentDepth = 1) {
|
|
|
30381
30387
|
}
|
|
30382
30388
|
return maxDepth;
|
|
30383
30389
|
}
|
|
30384
|
-
function calculateMaxDepth(
|
|
30390
|
+
function calculateMaxDepth(data50) {
|
|
30385
30391
|
let maxDepth = 0;
|
|
30386
|
-
for (const item2 of
|
|
30392
|
+
for (const item2 of data50) {
|
|
30387
30393
|
const depth = getMaxDepth(item2);
|
|
30388
30394
|
if (depth > maxDepth) {
|
|
30389
30395
|
maxDepth = depth;
|
|
@@ -31918,7 +31924,8 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
|
|
|
31918
31924
|
columnNumber: this.columnNumber,
|
|
31919
31925
|
stack: this.stack,
|
|
31920
31926
|
config: this.config,
|
|
31921
|
-
code: this.code
|
|
31927
|
+
code: this.code,
|
|
31928
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
31922
31929
|
};
|
|
31923
31930
|
};
|
|
31924
31931
|
return error;
|
|
@@ -32074,6 +32081,14 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
32074
32081
|
return true;
|
|
32075
32082
|
};
|
|
32076
32083
|
}();
|
|
32084
|
+
function Cancel$3(message) {
|
|
32085
|
+
this.message = message;
|
|
32086
|
+
}
|
|
32087
|
+
Cancel$3.prototype.toString = function toString2() {
|
|
32088
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32089
|
+
};
|
|
32090
|
+
Cancel$3.prototype.__CANCEL__ = true;
|
|
32091
|
+
var Cancel_1 = Cancel$3;
|
|
32077
32092
|
var utils$6 = utils$d;
|
|
32078
32093
|
var settle2 = settle$1;
|
|
32079
32094
|
var cookies = cookies$1;
|
|
@@ -32082,11 +32097,22 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
32082
32097
|
var parseHeaders2 = parseHeaders$1;
|
|
32083
32098
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32084
32099
|
var createError2 = createError$2;
|
|
32100
|
+
var defaults$4 = defaults_1;
|
|
32101
|
+
var Cancel$2 = Cancel_1;
|
|
32085
32102
|
var xhr = function xhrAdapter(config2) {
|
|
32086
32103
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32087
32104
|
var requestData = config2.data;
|
|
32088
32105
|
var requestHeaders = config2.headers;
|
|
32089
32106
|
var responseType = config2.responseType;
|
|
32107
|
+
var onCanceled;
|
|
32108
|
+
function done() {
|
|
32109
|
+
if (config2.cancelToken) {
|
|
32110
|
+
config2.cancelToken.unsubscribe(onCanceled);
|
|
32111
|
+
}
|
|
32112
|
+
if (config2.signal) {
|
|
32113
|
+
config2.signal.removeEventListener("abort", onCanceled);
|
|
32114
|
+
}
|
|
32115
|
+
}
|
|
32090
32116
|
if (utils$6.isFormData(requestData)) {
|
|
32091
32117
|
delete requestHeaders["Content-Type"];
|
|
32092
32118
|
}
|
|
@@ -32113,7 +32139,13 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32113
32139
|
config: config2,
|
|
32114
32140
|
request: request2
|
|
32115
32141
|
};
|
|
32116
|
-
settle2(
|
|
32142
|
+
settle2(function _resolve(value17) {
|
|
32143
|
+
resolve(value17);
|
|
32144
|
+
done();
|
|
32145
|
+
}, function _reject(err) {
|
|
32146
|
+
reject(err);
|
|
32147
|
+
done();
|
|
32148
|
+
}, response);
|
|
32117
32149
|
request2 = null;
|
|
32118
32150
|
}
|
|
32119
32151
|
if ("onloadend" in request2) {
|
|
@@ -32141,14 +32173,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32141
32173
|
request2 = null;
|
|
32142
32174
|
};
|
|
32143
32175
|
request2.ontimeout = function handleTimeout() {
|
|
32144
|
-
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32176
|
+
var timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
|
|
32177
|
+
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
32145
32178
|
if (config2.timeoutErrorMessage) {
|
|
32146
32179
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32147
32180
|
}
|
|
32148
32181
|
reject(createError2(
|
|
32149
32182
|
timeoutErrorMessage,
|
|
32150
32183
|
config2,
|
|
32151
|
-
|
|
32184
|
+
transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32152
32185
|
request2
|
|
32153
32186
|
));
|
|
32154
32187
|
request2 = null;
|
|
@@ -32180,15 +32213,19 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32180
32213
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32181
32214
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
32182
32215
|
}
|
|
32183
|
-
if (config2.cancelToken) {
|
|
32184
|
-
|
|
32216
|
+
if (config2.cancelToken || config2.signal) {
|
|
32217
|
+
onCanceled = function(cancel2) {
|
|
32185
32218
|
if (!request2) {
|
|
32186
32219
|
return;
|
|
32187
32220
|
}
|
|
32221
|
+
reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
|
|
32188
32222
|
request2.abort();
|
|
32189
|
-
reject(cancel2);
|
|
32190
32223
|
request2 = null;
|
|
32191
|
-
}
|
|
32224
|
+
};
|
|
32225
|
+
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
32226
|
+
if (config2.signal) {
|
|
32227
|
+
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
32228
|
+
}
|
|
32192
32229
|
}
|
|
32193
32230
|
if (!requestData) {
|
|
32194
32231
|
requestData = null;
|
|
@@ -32236,33 +32273,33 @@ var defaults$3 = {
|
|
|
32236
32273
|
clarifyTimeoutError: false
|
|
32237
32274
|
},
|
|
32238
32275
|
adapter: getDefaultAdapter(),
|
|
32239
|
-
transformRequest: [function transformRequest(
|
|
32276
|
+
transformRequest: [function transformRequest(data50, headers) {
|
|
32240
32277
|
normalizeHeaderName2(headers, "Accept");
|
|
32241
32278
|
normalizeHeaderName2(headers, "Content-Type");
|
|
32242
|
-
if (utils$5.isFormData(
|
|
32243
|
-
return
|
|
32279
|
+
if (utils$5.isFormData(data50) || utils$5.isArrayBuffer(data50) || utils$5.isBuffer(data50) || utils$5.isStream(data50) || utils$5.isFile(data50) || utils$5.isBlob(data50)) {
|
|
32280
|
+
return data50;
|
|
32244
32281
|
}
|
|
32245
|
-
if (utils$5.isArrayBufferView(
|
|
32246
|
-
return
|
|
32282
|
+
if (utils$5.isArrayBufferView(data50)) {
|
|
32283
|
+
return data50.buffer;
|
|
32247
32284
|
}
|
|
32248
|
-
if (utils$5.isURLSearchParams(
|
|
32285
|
+
if (utils$5.isURLSearchParams(data50)) {
|
|
32249
32286
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32250
|
-
return
|
|
32287
|
+
return data50.toString();
|
|
32251
32288
|
}
|
|
32252
|
-
if (utils$5.isObject(
|
|
32289
|
+
if (utils$5.isObject(data50) || headers && headers["Content-Type"] === "application/json") {
|
|
32253
32290
|
setContentTypeIfUnset(headers, "application/json");
|
|
32254
|
-
return stringifySafely(
|
|
32291
|
+
return stringifySafely(data50);
|
|
32255
32292
|
}
|
|
32256
|
-
return
|
|
32293
|
+
return data50;
|
|
32257
32294
|
}],
|
|
32258
|
-
transformResponse: [function transformResponse(
|
|
32259
|
-
var transitional2 = this.transitional;
|
|
32295
|
+
transformResponse: [function transformResponse(data50) {
|
|
32296
|
+
var transitional2 = this.transitional || defaults$3.transitional;
|
|
32260
32297
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32261
32298
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32262
32299
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32263
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
32300
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data50) && data50.length) {
|
|
32264
32301
|
try {
|
|
32265
|
-
return JSON.parse(
|
|
32302
|
+
return JSON.parse(data50);
|
|
32266
32303
|
} catch (e) {
|
|
32267
32304
|
if (strictJSONParsing) {
|
|
32268
32305
|
if (e.name === "SyntaxError") {
|
|
@@ -32272,7 +32309,7 @@ var defaults$3 = {
|
|
|
32272
32309
|
}
|
|
32273
32310
|
}
|
|
32274
32311
|
}
|
|
32275
|
-
return
|
|
32312
|
+
return data50;
|
|
32276
32313
|
}],
|
|
32277
32314
|
timeout: 0,
|
|
32278
32315
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -32281,11 +32318,11 @@ var defaults$3 = {
|
|
|
32281
32318
|
maxBodyLength: -1,
|
|
32282
32319
|
validateStatus: function validateStatus(status2) {
|
|
32283
32320
|
return status2 >= 200 && status2 < 300;
|
|
32284
|
-
}
|
|
32285
|
-
|
|
32286
|
-
|
|
32287
|
-
|
|
32288
|
-
|
|
32321
|
+
},
|
|
32322
|
+
headers: {
|
|
32323
|
+
common: {
|
|
32324
|
+
"Accept": "application/json, text/plain, */*"
|
|
32325
|
+
}
|
|
32289
32326
|
}
|
|
32290
32327
|
};
|
|
32291
32328
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -32297,12 +32334,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
32297
32334
|
var defaults_1 = defaults$3;
|
|
32298
32335
|
var utils$4 = utils$d;
|
|
32299
32336
|
var defaults$2 = defaults_1;
|
|
32300
|
-
var transformData$1 = function transformData(
|
|
32337
|
+
var transformData$1 = function transformData(data50, headers, fns) {
|
|
32301
32338
|
var context2 = this || defaults$2;
|
|
32302
32339
|
utils$4.forEach(fns, function transform(fn2) {
|
|
32303
|
-
|
|
32340
|
+
data50 = fn2.call(context2, data50, headers);
|
|
32304
32341
|
});
|
|
32305
|
-
return
|
|
32342
|
+
return data50;
|
|
32306
32343
|
};
|
|
32307
32344
|
var isCancel$1 = function isCancel(value17) {
|
|
32308
32345
|
return !!(value17 && value17.__CANCEL__);
|
|
@@ -32311,10 +32348,14 @@ var utils$3 = utils$d;
|
|
|
32311
32348
|
var transformData2 = transformData$1;
|
|
32312
32349
|
var isCancel2 = isCancel$1;
|
|
32313
32350
|
var defaults$1 = defaults_1;
|
|
32351
|
+
var Cancel$1 = Cancel_1;
|
|
32314
32352
|
function throwIfCancellationRequested(config2) {
|
|
32315
32353
|
if (config2.cancelToken) {
|
|
32316
32354
|
config2.cancelToken.throwIfRequested();
|
|
32317
32355
|
}
|
|
32356
|
+
if (config2.signal && config2.signal.aborted) {
|
|
32357
|
+
throw new Cancel$1("canceled");
|
|
32358
|
+
}
|
|
32318
32359
|
}
|
|
32319
32360
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32320
32361
|
throwIfCancellationRequested(config2);
|
|
@@ -32365,34 +32406,6 @@ var utils$2 = utils$d;
|
|
|
32365
32406
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32366
32407
|
config2 = config2 || {};
|
|
32367
32408
|
var config3 = {};
|
|
32368
|
-
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32369
|
-
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32370
|
-
var defaultToConfig2Keys = [
|
|
32371
|
-
"baseURL",
|
|
32372
|
-
"transformRequest",
|
|
32373
|
-
"transformResponse",
|
|
32374
|
-
"paramsSerializer",
|
|
32375
|
-
"timeout",
|
|
32376
|
-
"timeoutMessage",
|
|
32377
|
-
"withCredentials",
|
|
32378
|
-
"adapter",
|
|
32379
|
-
"responseType",
|
|
32380
|
-
"xsrfCookieName",
|
|
32381
|
-
"xsrfHeaderName",
|
|
32382
|
-
"onUploadProgress",
|
|
32383
|
-
"onDownloadProgress",
|
|
32384
|
-
"decompress",
|
|
32385
|
-
"maxContentLength",
|
|
32386
|
-
"maxBodyLength",
|
|
32387
|
-
"maxRedirects",
|
|
32388
|
-
"transport",
|
|
32389
|
-
"httpAgent",
|
|
32390
|
-
"httpsAgent",
|
|
32391
|
-
"cancelToken",
|
|
32392
|
-
"socketPath",
|
|
32393
|
-
"responseEncoding"
|
|
32394
|
-
];
|
|
32395
|
-
var directMergeKeys = ["validateStatus"];
|
|
32396
32409
|
function getMergedValue(target2, source2) {
|
|
32397
32410
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32398
32411
|
return utils$2.merge(target2, source2);
|
|
@@ -32405,141 +32418,69 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
32405
32418
|
}
|
|
32406
32419
|
function mergeDeepProperties(prop) {
|
|
32407
32420
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32408
|
-
|
|
32421
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
32409
32422
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32410
|
-
|
|
32423
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32411
32424
|
}
|
|
32412
32425
|
}
|
|
32413
|
-
|
|
32426
|
+
function valueFromConfig2(prop) {
|
|
32414
32427
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32415
|
-
|
|
32428
|
+
return getMergedValue(void 0, config2[prop]);
|
|
32416
32429
|
}
|
|
32417
|
-
}
|
|
32418
|
-
|
|
32419
|
-
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32430
|
+
}
|
|
32431
|
+
function defaultToConfig2(prop) {
|
|
32420
32432
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32421
|
-
|
|
32433
|
+
return getMergedValue(void 0, config2[prop]);
|
|
32422
32434
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32423
|
-
|
|
32435
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32424
32436
|
}
|
|
32425
|
-
}
|
|
32426
|
-
|
|
32437
|
+
}
|
|
32438
|
+
function mergeDirectKeys(prop) {
|
|
32427
32439
|
if (prop in config2) {
|
|
32428
|
-
|
|
32440
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
32429
32441
|
} else if (prop in config1) {
|
|
32430
|
-
|
|
32431
|
-
}
|
|
32432
|
-
}
|
|
32433
|
-
var
|
|
32434
|
-
|
|
32435
|
-
|
|
32442
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32443
|
+
}
|
|
32444
|
+
}
|
|
32445
|
+
var mergeMap = {
|
|
32446
|
+
"url": valueFromConfig2,
|
|
32447
|
+
"method": valueFromConfig2,
|
|
32448
|
+
"data": valueFromConfig2,
|
|
32449
|
+
"baseURL": defaultToConfig2,
|
|
32450
|
+
"transformRequest": defaultToConfig2,
|
|
32451
|
+
"transformResponse": defaultToConfig2,
|
|
32452
|
+
"paramsSerializer": defaultToConfig2,
|
|
32453
|
+
"timeout": defaultToConfig2,
|
|
32454
|
+
"timeoutMessage": defaultToConfig2,
|
|
32455
|
+
"withCredentials": defaultToConfig2,
|
|
32456
|
+
"adapter": defaultToConfig2,
|
|
32457
|
+
"responseType": defaultToConfig2,
|
|
32458
|
+
"xsrfCookieName": defaultToConfig2,
|
|
32459
|
+
"xsrfHeaderName": defaultToConfig2,
|
|
32460
|
+
"onUploadProgress": defaultToConfig2,
|
|
32461
|
+
"onDownloadProgress": defaultToConfig2,
|
|
32462
|
+
"decompress": defaultToConfig2,
|
|
32463
|
+
"maxContentLength": defaultToConfig2,
|
|
32464
|
+
"maxBodyLength": defaultToConfig2,
|
|
32465
|
+
"transport": defaultToConfig2,
|
|
32466
|
+
"httpAgent": defaultToConfig2,
|
|
32467
|
+
"httpsAgent": defaultToConfig2,
|
|
32468
|
+
"cancelToken": defaultToConfig2,
|
|
32469
|
+
"socketPath": defaultToConfig2,
|
|
32470
|
+
"responseEncoding": defaultToConfig2,
|
|
32471
|
+
"validateStatus": mergeDirectKeys
|
|
32472
|
+
};
|
|
32473
|
+
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
32474
|
+
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
32475
|
+
var configValue = merge2(prop);
|
|
32476
|
+
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
32436
32477
|
});
|
|
32437
|
-
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32438
32478
|
return config3;
|
|
32439
32479
|
};
|
|
32440
|
-
|
|
32441
|
-
|
|
32442
|
-
const description = "Promise based HTTP client for the browser and node.js";
|
|
32443
|
-
const main = "index.js";
|
|
32444
|
-
const scripts = {
|
|
32445
|
-
test: "grunt test",
|
|
32446
|
-
start: "node ./sandbox/server.js",
|
|
32447
|
-
build: "NODE_ENV=production grunt build",
|
|
32448
|
-
preversion: "npm test",
|
|
32449
|
-
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32450
|
-
postversion: "git push && git push --tags",
|
|
32451
|
-
examples: "node ./examples/server.js",
|
|
32452
|
-
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32453
|
-
fix: "eslint --fix lib/**/*.js"
|
|
32454
|
-
};
|
|
32455
|
-
const repository = {
|
|
32456
|
-
type: "git",
|
|
32457
|
-
url: "https://github.com/axios/axios.git"
|
|
32458
|
-
};
|
|
32459
|
-
const keywords = [
|
|
32460
|
-
"xhr",
|
|
32461
|
-
"http",
|
|
32462
|
-
"ajax",
|
|
32463
|
-
"promise",
|
|
32464
|
-
"node"
|
|
32465
|
-
];
|
|
32466
|
-
const author = "Matt Zabriskie";
|
|
32467
|
-
const license = "MIT";
|
|
32468
|
-
const bugs = {
|
|
32469
|
-
url: "https://github.com/axios/axios/issues"
|
|
32470
|
-
};
|
|
32471
|
-
const homepage = "https://axios-http.com";
|
|
32472
|
-
const devDependencies = {
|
|
32473
|
-
coveralls: "^3.0.0",
|
|
32474
|
-
"es6-promise": "^4.2.4",
|
|
32475
|
-
grunt: "^1.3.0",
|
|
32476
|
-
"grunt-banner": "^0.6.0",
|
|
32477
|
-
"grunt-cli": "^1.2.0",
|
|
32478
|
-
"grunt-contrib-clean": "^1.1.0",
|
|
32479
|
-
"grunt-contrib-watch": "^1.0.0",
|
|
32480
|
-
"grunt-eslint": "^23.0.0",
|
|
32481
|
-
"grunt-karma": "^4.0.0",
|
|
32482
|
-
"grunt-mocha-test": "^0.13.3",
|
|
32483
|
-
"grunt-ts": "^6.0.0-beta.19",
|
|
32484
|
-
"grunt-webpack": "^4.0.2",
|
|
32485
|
-
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32486
|
-
"jasmine-core": "^2.4.1",
|
|
32487
|
-
karma: "^6.3.2",
|
|
32488
|
-
"karma-chrome-launcher": "^3.1.0",
|
|
32489
|
-
"karma-firefox-launcher": "^2.1.0",
|
|
32490
|
-
"karma-jasmine": "^1.1.1",
|
|
32491
|
-
"karma-jasmine-ajax": "^0.1.13",
|
|
32492
|
-
"karma-safari-launcher": "^1.0.0",
|
|
32493
|
-
"karma-sauce-launcher": "^4.3.6",
|
|
32494
|
-
"karma-sinon": "^1.0.5",
|
|
32495
|
-
"karma-sourcemap-loader": "^0.3.8",
|
|
32496
|
-
"karma-webpack": "^4.0.2",
|
|
32497
|
-
"load-grunt-tasks": "^3.5.2",
|
|
32498
|
-
minimist: "^1.2.0",
|
|
32499
|
-
mocha: "^8.2.1",
|
|
32500
|
-
sinon: "^4.5.0",
|
|
32501
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
32502
|
-
typescript: "^4.0.5",
|
|
32503
|
-
"url-search-params": "^0.10.0",
|
|
32504
|
-
webpack: "^4.44.2",
|
|
32505
|
-
"webpack-dev-server": "^3.11.0"
|
|
32506
|
-
};
|
|
32507
|
-
const browser = {
|
|
32508
|
-
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32509
|
-
};
|
|
32510
|
-
const jsdelivr = "dist/axios.min.js";
|
|
32511
|
-
const unpkg = "dist/axios.min.js";
|
|
32512
|
-
const typings = "./index.d.ts";
|
|
32513
|
-
const dependencies = {
|
|
32514
|
-
"follow-redirects": "^1.14.0"
|
|
32515
|
-
};
|
|
32516
|
-
const bundlesize = [
|
|
32517
|
-
{
|
|
32518
|
-
path: "./dist/axios.min.js",
|
|
32519
|
-
threshold: "5kB"
|
|
32520
|
-
}
|
|
32521
|
-
];
|
|
32522
|
-
var require$$0 = {
|
|
32523
|
-
name,
|
|
32524
|
-
version,
|
|
32525
|
-
description,
|
|
32526
|
-
main,
|
|
32527
|
-
scripts,
|
|
32528
|
-
repository,
|
|
32529
|
-
keywords,
|
|
32530
|
-
author,
|
|
32531
|
-
license,
|
|
32532
|
-
bugs,
|
|
32533
|
-
homepage,
|
|
32534
|
-
devDependencies,
|
|
32535
|
-
browser,
|
|
32536
|
-
jsdelivr,
|
|
32537
|
-
unpkg,
|
|
32538
|
-
typings,
|
|
32539
|
-
dependencies,
|
|
32540
|
-
bundlesize
|
|
32480
|
+
var data49 = {
|
|
32481
|
+
"version": "0.24.0"
|
|
32541
32482
|
};
|
|
32542
|
-
var
|
|
32483
|
+
var VERSION = data49.version;
|
|
32543
32484
|
var validators$1 = {};
|
|
32544
32485
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
32545
32486
|
validators$1[type2] = function validator4(thing) {
|
|
@@ -32547,29 +32488,15 @@ var validators$1 = {};
|
|
|
32547
32488
|
};
|
|
32548
32489
|
});
|
|
32549
32490
|
var deprecatedWarnings = {};
|
|
32550
|
-
var currentVerArr = pkg.version.split(".");
|
|
32551
|
-
function isOlderVersion(version2, thanVersion) {
|
|
32552
|
-
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32553
|
-
var destVer = version2.split(".");
|
|
32554
|
-
for (var i = 0; i < 3; i++) {
|
|
32555
|
-
if (pkgVersionArr[i] > destVer[i]) {
|
|
32556
|
-
return true;
|
|
32557
|
-
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32558
|
-
return false;
|
|
32559
|
-
}
|
|
32560
|
-
}
|
|
32561
|
-
return false;
|
|
32562
|
-
}
|
|
32563
32491
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32564
|
-
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32565
32492
|
function formatMessage(opt, desc) {
|
|
32566
|
-
return "[Axios v" +
|
|
32493
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32567
32494
|
}
|
|
32568
32495
|
return function(value17, opt, opts) {
|
|
32569
32496
|
if (validator4 === false) {
|
|
32570
|
-
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
32497
|
+
throw new Error(formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")));
|
|
32571
32498
|
}
|
|
32572
|
-
if (
|
|
32499
|
+
if (version2 && !deprecatedWarnings[opt]) {
|
|
32573
32500
|
deprecatedWarnings[opt] = true;
|
|
32574
32501
|
console.warn(
|
|
32575
32502
|
formatMessage(
|
|
@@ -32604,7 +32531,6 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
32604
32531
|
}
|
|
32605
32532
|
}
|
|
32606
32533
|
var validator$1 = {
|
|
32607
|
-
isOlderVersion,
|
|
32608
32534
|
assertOptions,
|
|
32609
32535
|
validators: validators$1
|
|
32610
32536
|
};
|
|
@@ -32640,9 +32566,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
32640
32566
|
var transitional2 = config2.transitional;
|
|
32641
32567
|
if (transitional2 !== void 0) {
|
|
32642
32568
|
validator3.assertOptions(transitional2, {
|
|
32643
|
-
silentJSONParsing: validators.transitional(validators.boolean
|
|
32644
|
-
forcedJSONParsing: validators.transitional(validators.boolean
|
|
32645
|
-
clarifyTimeoutError: validators.transitional(validators.boolean
|
|
32569
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
32570
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
32571
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
32646
32572
|
}, false);
|
|
32647
32573
|
}
|
|
32648
32574
|
var requestInterceptorChain = [];
|
|
@@ -32704,23 +32630,15 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
32704
32630
|
};
|
|
32705
32631
|
});
|
|
32706
32632
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32707
|
-
Axios$1.prototype[method] = function(url,
|
|
32633
|
+
Axios$1.prototype[method] = function(url, data50, config2) {
|
|
32708
32634
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
32709
32635
|
method,
|
|
32710
32636
|
url,
|
|
32711
|
-
data:
|
|
32637
|
+
data: data50
|
|
32712
32638
|
}));
|
|
32713
32639
|
};
|
|
32714
32640
|
});
|
|
32715
32641
|
var Axios_1 = Axios$1;
|
|
32716
|
-
function Cancel$1(message) {
|
|
32717
|
-
this.message = message;
|
|
32718
|
-
}
|
|
32719
|
-
Cancel$1.prototype.toString = function toString2() {
|
|
32720
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32721
|
-
};
|
|
32722
|
-
Cancel$1.prototype.__CANCEL__ = true;
|
|
32723
|
-
var Cancel_1 = Cancel$1;
|
|
32724
32642
|
var Cancel = Cancel_1;
|
|
32725
32643
|
function CancelToken(executor) {
|
|
32726
32644
|
if (typeof executor !== "function") {
|
|
@@ -32731,6 +32649,27 @@ function CancelToken(executor) {
|
|
|
32731
32649
|
resolvePromise = resolve;
|
|
32732
32650
|
});
|
|
32733
32651
|
var token = this;
|
|
32652
|
+
this.promise.then(function(cancel2) {
|
|
32653
|
+
if (!token._listeners)
|
|
32654
|
+
return;
|
|
32655
|
+
var i;
|
|
32656
|
+
var l = token._listeners.length;
|
|
32657
|
+
for (i = 0; i < l; i++) {
|
|
32658
|
+
token._listeners[i](cancel2);
|
|
32659
|
+
}
|
|
32660
|
+
token._listeners = null;
|
|
32661
|
+
});
|
|
32662
|
+
this.promise.then = function(onfulfilled) {
|
|
32663
|
+
var _resolve;
|
|
32664
|
+
var promise = new Promise(function(resolve) {
|
|
32665
|
+
token.subscribe(resolve);
|
|
32666
|
+
_resolve = resolve;
|
|
32667
|
+
}).then(onfulfilled);
|
|
32668
|
+
promise.cancel = function reject() {
|
|
32669
|
+
token.unsubscribe(_resolve);
|
|
32670
|
+
};
|
|
32671
|
+
return promise;
|
|
32672
|
+
};
|
|
32734
32673
|
executor(function cancel2(message) {
|
|
32735
32674
|
if (token.reason) {
|
|
32736
32675
|
return;
|
|
@@ -32744,6 +32683,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
32744
32683
|
throw this.reason;
|
|
32745
32684
|
}
|
|
32746
32685
|
};
|
|
32686
|
+
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
32687
|
+
if (this.reason) {
|
|
32688
|
+
listener(this.reason);
|
|
32689
|
+
return;
|
|
32690
|
+
}
|
|
32691
|
+
if (this._listeners) {
|
|
32692
|
+
this._listeners.push(listener);
|
|
32693
|
+
} else {
|
|
32694
|
+
this._listeners = [listener];
|
|
32695
|
+
}
|
|
32696
|
+
};
|
|
32697
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
32698
|
+
if (!this._listeners) {
|
|
32699
|
+
return;
|
|
32700
|
+
}
|
|
32701
|
+
var index2 = this._listeners.indexOf(listener);
|
|
32702
|
+
if (index2 !== -1) {
|
|
32703
|
+
this._listeners.splice(index2, 1);
|
|
32704
|
+
}
|
|
32705
|
+
};
|
|
32747
32706
|
CancelToken.source = function source() {
|
|
32748
32707
|
var cancel2;
|
|
32749
32708
|
var token = new CancelToken(function executor(c) {
|
|
@@ -32773,16 +32732,17 @@ function createInstance(defaultConfig2) {
|
|
|
32773
32732
|
var instance2 = bind2(Axios.prototype.request, context2);
|
|
32774
32733
|
utils.extend(instance2, Axios.prototype, context2);
|
|
32775
32734
|
utils.extend(instance2, context2);
|
|
32735
|
+
instance2.create = function create(instanceConfig) {
|
|
32736
|
+
return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
|
|
32737
|
+
};
|
|
32776
32738
|
return instance2;
|
|
32777
32739
|
}
|
|
32778
32740
|
var axios$1 = createInstance(defaults);
|
|
32779
32741
|
axios$1.Axios = Axios;
|
|
32780
|
-
axios$1.create = function create(instanceConfig) {
|
|
32781
|
-
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
32782
|
-
};
|
|
32783
32742
|
axios$1.Cancel = Cancel_1;
|
|
32784
32743
|
axios$1.CancelToken = CancelToken_1;
|
|
32785
32744
|
axios$1.isCancel = isCancel$1;
|
|
32745
|
+
axios$1.VERSION = data49.version;
|
|
32786
32746
|
axios$1.all = function all(promises) {
|
|
32787
32747
|
return Promise.all(promises);
|
|
32788
32748
|
};
|
|
@@ -33193,12 +33153,12 @@ var user = {
|
|
|
33193
33153
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
33194
33154
|
return userInfo;
|
|
33195
33155
|
}
|
|
33196
|
-
const { data:
|
|
33197
|
-
commit2("setAvatar",
|
|
33198
|
-
commit2("setUserName",
|
|
33199
|
-
commit2("setUserManageUnitId",
|
|
33200
|
-
setUserInfoCache(
|
|
33201
|
-
return
|
|
33156
|
+
const { data: data50 } = await getUserInfoApi();
|
|
33157
|
+
commit2("setAvatar", data50.userAvater);
|
|
33158
|
+
commit2("setUserName", data50.userName);
|
|
33159
|
+
commit2("setUserManageUnitId", data50.manageUnitId);
|
|
33160
|
+
setUserInfoCache(data50);
|
|
33161
|
+
return data50;
|
|
33202
33162
|
}
|
|
33203
33163
|
}
|
|
33204
33164
|
};
|
|
@@ -33393,8 +33353,8 @@ var app = {
|
|
|
33393
33353
|
async getAppListData({ commit: commit2, getters }) {
|
|
33394
33354
|
let appList = getters.getAppList;
|
|
33395
33355
|
if (!appList.length) {
|
|
33396
|
-
const { data:
|
|
33397
|
-
appList =
|
|
33356
|
+
const { data: data50 = [] } = await getAppListApi();
|
|
33357
|
+
appList = data50.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
33398
33358
|
commit2("setAppList", appList);
|
|
33399
33359
|
}
|
|
33400
33360
|
let appId = "";
|
|
@@ -33498,9 +33458,9 @@ var app = {
|
|
|
33498
33458
|
},
|
|
33499
33459
|
async getMyAppsList({ commit: commit2 }, payload) {
|
|
33500
33460
|
try {
|
|
33501
|
-
let { data:
|
|
33502
|
-
|
|
33503
|
-
commit2("setMyAppsList",
|
|
33461
|
+
let { data: data50 } = await getIndexPreset(payload);
|
|
33462
|
+
data50 = data50 || "[]";
|
|
33463
|
+
commit2("setMyAppsList", data50);
|
|
33504
33464
|
} catch (error) {
|
|
33505
33465
|
console.error("getMyAppsList:", error);
|
|
33506
33466
|
}
|
|
@@ -33527,8 +33487,8 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33527
33487
|
doChangeTheme(theme);
|
|
33528
33488
|
if (location.pathname.includes("scyxweb")) {
|
|
33529
33489
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
33530
|
-
axios$3.get(url).then((
|
|
33531
|
-
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {},
|
|
33490
|
+
axios$3.get(url).then((data50) => {
|
|
33491
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data50);
|
|
33532
33492
|
});
|
|
33533
33493
|
}
|
|
33534
33494
|
if (!((_a = Vue2.prototype.$config) == null ? void 0 : _a.systemDefaultConfig)) {
|
|
@@ -33590,7 +33550,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33590
33550
|
install(window.Vue);
|
|
33591
33551
|
}
|
|
33592
33552
|
const API = {
|
|
33593
|
-
version: pkg
|
|
33553
|
+
version: pkg.version,
|
|
33594
33554
|
install,
|
|
33595
33555
|
components,
|
|
33596
33556
|
plugins,
|