@indfnd/common-mobile 1.0.57 → 1.0.58
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 +13 -0
- package/dist/ind-common-mobile.es.js +307 -344
- package/dist/ind-common-mobile.umd.cjs +8 -8
- package/package.json +1 -1
|
@@ -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.57";
|
|
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,11 +44,11 @@ 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
53
|
"@indfnd/utils": "^0.1.36",
|
|
54
54
|
eslint: "^3.19.0",
|
|
@@ -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
|
},
|
|
@@ -4121,12 +4121,12 @@ const __vue2_script$z = {
|
|
|
4121
4121
|
params = this.renderParams(params);
|
|
4122
4122
|
}
|
|
4123
4123
|
const result = await this.dataApi(params);
|
|
4124
|
-
let
|
|
4124
|
+
let data50 = result.data.rows || result.data.records || [];
|
|
4125
4125
|
if (this.disablePage && result.data instanceof Array) {
|
|
4126
|
-
|
|
4126
|
+
data50 = result.data;
|
|
4127
4127
|
}
|
|
4128
|
-
this.rows = [...this.rows, ...
|
|
4129
|
-
this.allData = [...this.allData, ...
|
|
4128
|
+
this.rows = [...this.rows, ...data50];
|
|
4129
|
+
this.allData = [...this.allData, ...data50];
|
|
4130
4130
|
this.pagination.offset += this.pagination.limit;
|
|
4131
4131
|
this.currentPage++;
|
|
4132
4132
|
this.isFinished = this.pagination.offset + this.pagination.limit >= this.pagination.total;
|
|
@@ -4229,13 +4229,13 @@ const __vue2_script$z = {
|
|
|
4229
4229
|
params = this.renderParams(params);
|
|
4230
4230
|
}
|
|
4231
4231
|
const result = await this.dataApi(params);
|
|
4232
|
-
let
|
|
4232
|
+
let data50 = result.data.rows || result.data.records || [];
|
|
4233
4233
|
if (this.disablePage && result.data instanceof Array) {
|
|
4234
|
-
|
|
4234
|
+
data50 = result.data;
|
|
4235
4235
|
}
|
|
4236
|
-
this.rows =
|
|
4237
|
-
this.allData = [...
|
|
4238
|
-
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);
|
|
4239
4239
|
if (!this.disablePage) {
|
|
4240
4240
|
this.pagination.total = this.total;
|
|
4241
4241
|
this.isFinished = this.pagination.limit >= this.pagination.total;
|
|
@@ -5108,14 +5108,14 @@ function emit(context2, eventName) {
|
|
|
5108
5108
|
}
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
|
-
function mount(Component,
|
|
5111
|
+
function mount(Component, data50) {
|
|
5112
5112
|
var instance2 = new Vue$1({
|
|
5113
5113
|
el: document.createElement("div"),
|
|
5114
5114
|
props: Component.props,
|
|
5115
5115
|
render: function render83(h) {
|
|
5116
5116
|
return h(Component, _extends$2({
|
|
5117
5117
|
props: this.$props
|
|
5118
|
-
},
|
|
5118
|
+
}, data50));
|
|
5119
5119
|
}
|
|
5120
5120
|
});
|
|
5121
5121
|
document.body.appendChild(instance2.$el);
|
|
@@ -5521,7 +5521,7 @@ function PopupMixin(options) {
|
|
|
5521
5521
|
};
|
|
5522
5522
|
},
|
|
5523
5523
|
props: popupMixinProps,
|
|
5524
|
-
data: function
|
|
5524
|
+
data: function data50() {
|
|
5525
5525
|
this.onReopenCallback = [];
|
|
5526
5526
|
return {
|
|
5527
5527
|
inited: this.value
|
|
@@ -5973,11 +5973,11 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
5973
5973
|
}
|
|
5974
5974
|
}
|
|
5975
5975
|
function Description() {
|
|
5976
|
-
var
|
|
5977
|
-
if (
|
|
5976
|
+
var description = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
5977
|
+
if (description) {
|
|
5978
5978
|
return h("div", {
|
|
5979
5979
|
"class": bem$1s("description")
|
|
5980
|
-
}, [
|
|
5980
|
+
}, [description]);
|
|
5981
5981
|
}
|
|
5982
5982
|
}
|
|
5983
5983
|
return h(Popup, _mergeJSXProps([{
|
|
@@ -6372,7 +6372,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6372
6372
|
var _domProps;
|
|
6373
6373
|
var text = _this4.getOptionText(option2);
|
|
6374
6374
|
var disabled = isOptionDisabled(option2);
|
|
6375
|
-
var
|
|
6375
|
+
var data50 = {
|
|
6376
6376
|
style: optionStyle,
|
|
6377
6377
|
attrs: {
|
|
6378
6378
|
role: "button",
|
|
@@ -6392,7 +6392,7 @@ var PickerColumn = createComponent$1A({
|
|
|
6392
6392
|
class: "van-ellipsis",
|
|
6393
6393
|
domProps: (_domProps = {}, _domProps[_this4.allowHtml ? "innerHTML" : "textContent"] = text, _domProps)
|
|
6394
6394
|
};
|
|
6395
|
-
return h("li", _mergeJSXProps([{},
|
|
6395
|
+
return h("li", _mergeJSXProps([{}, data50]), [_this4.slots("option", option2) || h("div", _mergeJSXProps([{}, childData]))]);
|
|
6396
6396
|
});
|
|
6397
6397
|
}
|
|
6398
6398
|
},
|
|
@@ -8196,7 +8196,7 @@ function ParentMixin(parent) {
|
|
|
8196
8196
|
var _ref;
|
|
8197
8197
|
return _ref = {}, _ref[parent] = this, _ref;
|
|
8198
8198
|
},
|
|
8199
|
-
data: function
|
|
8199
|
+
data: function data50() {
|
|
8200
8200
|
return {
|
|
8201
8201
|
children: []
|
|
8202
8202
|
};
|
|
@@ -8462,7 +8462,7 @@ var VanDialog = createComponent$1r({
|
|
|
8462
8462
|
var message = this.message, messageAlign = this.messageAlign;
|
|
8463
8463
|
if (message) {
|
|
8464
8464
|
var _bem, _domProps;
|
|
8465
|
-
var
|
|
8465
|
+
var data50 = {
|
|
8466
8466
|
class: bem$1i("message", (_bem = {
|
|
8467
8467
|
"has-title": hasTitle
|
|
8468
8468
|
}, _bem[messageAlign] = messageAlign, _bem)),
|
|
@@ -8472,7 +8472,7 @@ var VanDialog = createComponent$1r({
|
|
|
8472
8472
|
"class": bem$1i("content", {
|
|
8473
8473
|
isolated: !hasTitle
|
|
8474
8474
|
})
|
|
8475
|
-
}, [h("div", _mergeJSXProps([{},
|
|
8475
|
+
}, [h("div", _mergeJSXProps([{}, data50]))]);
|
|
8476
8476
|
}
|
|
8477
8477
|
}
|
|
8478
8478
|
},
|
|
@@ -9061,7 +9061,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9061
9061
|
},
|
|
9062
9062
|
render: function render12(h) {
|
|
9063
9063
|
var _this5 = this;
|
|
9064
|
-
var
|
|
9064
|
+
var data50 = this.data, errorInfo = this.errorInfo, disableArea = this.disableArea, hideBottomFields2 = this.hideBottomFields;
|
|
9065
9065
|
var onFocus5 = function onFocus6(name2) {
|
|
9066
9066
|
return function() {
|
|
9067
9067
|
return _this5.onFocus(name2);
|
|
@@ -9082,9 +9082,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9082
9082
|
"focus": onFocus5("name")
|
|
9083
9083
|
},
|
|
9084
9084
|
"model": {
|
|
9085
|
-
value:
|
|
9085
|
+
value: data50.name,
|
|
9086
9086
|
callback: function callback2($$v) {
|
|
9087
|
-
_this5.$set(
|
|
9087
|
+
_this5.$set(data50, "name", $$v);
|
|
9088
9088
|
}
|
|
9089
9089
|
}
|
|
9090
9090
|
}), h(Field, {
|
|
@@ -9100,9 +9100,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9100
9100
|
"focus": onFocus5("tel")
|
|
9101
9101
|
},
|
|
9102
9102
|
"model": {
|
|
9103
|
-
value:
|
|
9103
|
+
value: data50.tel,
|
|
9104
9104
|
callback: function callback2($$v) {
|
|
9105
|
-
_this5.$set(
|
|
9105
|
+
_this5.$set(data50, "tel", $$v);
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
9108
|
}), h(Field, {
|
|
@@ -9133,7 +9133,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9133
9133
|
}],
|
|
9134
9134
|
"attrs": {
|
|
9135
9135
|
"focused": this.detailFocused,
|
|
9136
|
-
"value":
|
|
9136
|
+
"value": data50.addressDetail,
|
|
9137
9137
|
"errorMessage": errorInfo.addressDetail,
|
|
9138
9138
|
"detailRows": this.detailRows,
|
|
9139
9139
|
"detailMaxlength": this.detailMaxlength,
|
|
@@ -9164,9 +9164,9 @@ var AddressEdit = createComponent$1o({
|
|
|
9164
9164
|
"focus": onFocus5("postalCode")
|
|
9165
9165
|
},
|
|
9166
9166
|
"model": {
|
|
9167
|
-
value:
|
|
9167
|
+
value: data50.postalCode,
|
|
9168
9168
|
callback: function callback2($$v) {
|
|
9169
|
-
_this5.$set(
|
|
9169
|
+
_this5.$set(data50, "postalCode", $$v);
|
|
9170
9170
|
}
|
|
9171
9171
|
}
|
|
9172
9172
|
}), this.slots()]), this.genSetDefaultCell(h), h("div", {
|
|
@@ -9212,7 +9212,7 @@ var AddressEdit = createComponent$1o({
|
|
|
9212
9212
|
}, [h(Area, {
|
|
9213
9213
|
"ref": "area",
|
|
9214
9214
|
"attrs": {
|
|
9215
|
-
"value":
|
|
9215
|
+
"value": data50.areaCode,
|
|
9216
9216
|
"loading": !this.areaListLoaded,
|
|
9217
9217
|
"areaList": this.areaList,
|
|
9218
9218
|
"columnsPlaceholder": this.areaColumnsPlaceholder
|
|
@@ -9494,16 +9494,16 @@ function AddressItem(h, props, slots2, ctx) {
|
|
|
9494
9494
|
}
|
|
9495
9495
|
}
|
|
9496
9496
|
function genContent6() {
|
|
9497
|
-
var
|
|
9497
|
+
var data50 = props.data;
|
|
9498
9498
|
var Info2 = [h("div", {
|
|
9499
9499
|
"class": bem$1b("name")
|
|
9500
|
-
}, [
|
|
9500
|
+
}, [data50.name + " " + data50.tel, genTag()]), h("div", {
|
|
9501
9501
|
"class": bem$1b("address")
|
|
9502
|
-
}, [
|
|
9502
|
+
}, [data50.address])];
|
|
9503
9503
|
if (switchable && !disabled) {
|
|
9504
9504
|
return h(Radio, {
|
|
9505
9505
|
"attrs": {
|
|
9506
|
-
"name":
|
|
9506
|
+
"name": data50.id,
|
|
9507
9507
|
"iconSize": 18
|
|
9508
9508
|
}
|
|
9509
9509
|
}, [Info2]);
|
|
@@ -12498,7 +12498,7 @@ var ContactEdit = createComponent$_({
|
|
|
12498
12498
|
render: function render30() {
|
|
12499
12499
|
var _this3 = this;
|
|
12500
12500
|
var h = arguments[0];
|
|
12501
|
-
var
|
|
12501
|
+
var data50 = this.data, errorInfo = this.errorInfo;
|
|
12502
12502
|
var onFocus5 = function onFocus6(name2) {
|
|
12503
12503
|
return function() {
|
|
12504
12504
|
return _this3.onFocus(name2);
|
|
@@ -12520,9 +12520,9 @@ var ContactEdit = createComponent$_({
|
|
|
12520
12520
|
"focus": onFocus5("name")
|
|
12521
12521
|
},
|
|
12522
12522
|
"model": {
|
|
12523
|
-
value:
|
|
12523
|
+
value: data50.name,
|
|
12524
12524
|
callback: function callback2($$v) {
|
|
12525
|
-
_this3.$set(
|
|
12525
|
+
_this3.$set(data50, "name", $$v);
|
|
12526
12526
|
}
|
|
12527
12527
|
}
|
|
12528
12528
|
}), h(Field, {
|
|
@@ -12537,9 +12537,9 @@ var ContactEdit = createComponent$_({
|
|
|
12537
12537
|
"focus": onFocus5("tel")
|
|
12538
12538
|
},
|
|
12539
12539
|
"model": {
|
|
12540
|
-
value:
|
|
12540
|
+
value: data50.tel,
|
|
12541
12541
|
callback: function callback2($$v) {
|
|
12542
|
-
_this3.$set(
|
|
12542
|
+
_this3.$set(data50, "tel", $$v);
|
|
12543
12543
|
}
|
|
12544
12544
|
}
|
|
12545
12545
|
})]), this.showSetDefault && h(Cell$1, {
|
|
@@ -12559,9 +12559,9 @@ var ContactEdit = createComponent$_({
|
|
|
12559
12559
|
}
|
|
12560
12560
|
},
|
|
12561
12561
|
"model": {
|
|
12562
|
-
value:
|
|
12562
|
+
value: data50.isDefault,
|
|
12563
12563
|
callback: function callback2($$v) {
|
|
12564
|
-
_this3.$set(
|
|
12564
|
+
_this3.$set(data50, "isDefault", $$v);
|
|
12565
12565
|
}
|
|
12566
12566
|
}
|
|
12567
12567
|
})]), h("div", {
|
|
@@ -12923,7 +12923,7 @@ var Coupon = createComponent$X({
|
|
|
12923
12923
|
render: function render32() {
|
|
12924
12924
|
var h = arguments[0];
|
|
12925
12925
|
var coupon = this.coupon, disabled = this.disabled;
|
|
12926
|
-
var
|
|
12926
|
+
var description = disabled && coupon.reason || coupon.description;
|
|
12927
12927
|
return h("div", {
|
|
12928
12928
|
"class": bem$Q({
|
|
12929
12929
|
disabled
|
|
@@ -12952,9 +12952,9 @@ var Coupon = createComponent$X({
|
|
|
12952
12952
|
"checkedColor": RED
|
|
12953
12953
|
},
|
|
12954
12954
|
"class": bem$Q("corner")
|
|
12955
|
-
})])]),
|
|
12955
|
+
})])]), description && h("p", {
|
|
12956
12956
|
"class": bem$Q("description")
|
|
12957
|
-
}, [
|
|
12957
|
+
}, [description])]);
|
|
12958
12958
|
}
|
|
12959
12959
|
});
|
|
12960
12960
|
var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
|
|
@@ -13986,7 +13986,7 @@ var ClickOutsideMixin = function ClickOutsideMixin2(config2) {
|
|
|
13986
13986
|
default: true
|
|
13987
13987
|
}
|
|
13988
13988
|
},
|
|
13989
|
-
data: function
|
|
13989
|
+
data: function data50() {
|
|
13990
13990
|
var _this = this;
|
|
13991
13991
|
var clickOutsideHandler = function clickOutsideHandler2(event) {
|
|
13992
13992
|
if (_this.closeOnClickOutside && !_this.$el.contains(event.target)) {
|
|
@@ -14340,11 +14340,11 @@ var Empty = createComponent$O({
|
|
|
14340
14340
|
},
|
|
14341
14341
|
genDescription: function genDescription() {
|
|
14342
14342
|
var h = this.$createElement;
|
|
14343
|
-
var
|
|
14344
|
-
if (
|
|
14343
|
+
var description = this.slots("description") || this.description;
|
|
14344
|
+
if (description) {
|
|
14345
14345
|
return h("p", {
|
|
14346
14346
|
"class": bem$J("description")
|
|
14347
|
-
}, [
|
|
14347
|
+
}, [description]);
|
|
14348
14348
|
}
|
|
14349
14349
|
},
|
|
14350
14350
|
genBottom: function genBottom() {
|
|
@@ -15636,9 +15636,9 @@ var initInstance = function initInstance2() {
|
|
|
15636
15636
|
instance$1.onChange(index2);
|
|
15637
15637
|
}
|
|
15638
15638
|
});
|
|
15639
|
-
instance$1.$on("scale", function(
|
|
15639
|
+
instance$1.$on("scale", function(data50) {
|
|
15640
15640
|
if (instance$1.onScale) {
|
|
15641
|
-
instance$1.onScale(
|
|
15641
|
+
instance$1.onScale(data50);
|
|
15642
15642
|
}
|
|
15643
15643
|
});
|
|
15644
15644
|
};
|
|
@@ -17323,12 +17323,12 @@ var beforeRead = "beforeRead";
|
|
|
17323
17323
|
var read = "read";
|
|
17324
17324
|
var afterRead = "afterRead";
|
|
17325
17325
|
var beforeMain = "beforeMain";
|
|
17326
|
-
var main
|
|
17326
|
+
var main = "main";
|
|
17327
17327
|
var afterMain = "afterMain";
|
|
17328
17328
|
var beforeWrite = "beforeWrite";
|
|
17329
17329
|
var write = "write";
|
|
17330
17330
|
var afterWrite = "afterWrite";
|
|
17331
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main
|
|
17331
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
17332
17332
|
function order(modifiers) {
|
|
17333
17333
|
var map = /* @__PURE__ */ new Map();
|
|
17334
17334
|
var visited = /* @__PURE__ */ new Set();
|
|
@@ -17964,16 +17964,16 @@ function distanceAndSkiddingToXY(placement, rects, offset22) {
|
|
|
17964
17964
|
function offset2(_ref2) {
|
|
17965
17965
|
var state = _ref2.state, options = _ref2.options, name2 = _ref2.name;
|
|
17966
17966
|
var _options$offset = options.offset, offset22 = _options$offset === void 0 ? [0, 0] : _options$offset;
|
|
17967
|
-
var
|
|
17967
|
+
var data50 = placements.reduce(function(acc, placement) {
|
|
17968
17968
|
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset22);
|
|
17969
17969
|
return acc;
|
|
17970
17970
|
}, {});
|
|
17971
|
-
var _data$state$placement =
|
|
17971
|
+
var _data$state$placement = data50[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
|
|
17972
17972
|
if (state.modifiersData.popperOffsets != null) {
|
|
17973
17973
|
state.modifiersData.popperOffsets.x += x;
|
|
17974
17974
|
state.modifiersData.popperOffsets.y += y;
|
|
17975
17975
|
}
|
|
17976
|
-
state.modifiersData[name2] =
|
|
17976
|
+
state.modifiersData[name2] = data50;
|
|
17977
17977
|
}
|
|
17978
17978
|
var offset_default = {
|
|
17979
17979
|
name: "offset",
|
|
@@ -18851,17 +18851,17 @@ var ShareSheet = createComponent$p({
|
|
|
18851
18851
|
genHeader: function genHeader() {
|
|
18852
18852
|
var h = this.$createElement;
|
|
18853
18853
|
var title4 = this.slots("title") || this.title;
|
|
18854
|
-
var
|
|
18855
|
-
if (!title4 && !
|
|
18854
|
+
var description = this.slots("description") || this.description;
|
|
18855
|
+
if (!title4 && !description) {
|
|
18856
18856
|
return;
|
|
18857
18857
|
}
|
|
18858
18858
|
return h("div", {
|
|
18859
18859
|
"class": bem$k("header")
|
|
18860
18860
|
}, [title4 && h("h2", {
|
|
18861
18861
|
"class": bem$k("title")
|
|
18862
|
-
}, [title4]),
|
|
18862
|
+
}, [title4]), description && h("span", {
|
|
18863
18863
|
"class": bem$k("description")
|
|
18864
|
-
}, [
|
|
18864
|
+
}, [description])]);
|
|
18865
18865
|
},
|
|
18866
18866
|
genOptions: function genOptions2(options, showBorder) {
|
|
18867
18867
|
var _this = this;
|
|
@@ -20224,9 +20224,9 @@ var Uploader = createComponent$e({
|
|
|
20224
20224
|
return;
|
|
20225
20225
|
}
|
|
20226
20226
|
if (isPromise(response)) {
|
|
20227
|
-
response.then(function(
|
|
20228
|
-
if (
|
|
20229
|
-
_this.readFile(
|
|
20227
|
+
response.then(function(data50) {
|
|
20228
|
+
if (data50) {
|
|
20229
|
+
_this.readFile(data50);
|
|
20230
20230
|
} else {
|
|
20231
20231
|
_this.readFile(files2);
|
|
20232
20232
|
}
|
|
@@ -20682,11 +20682,11 @@ var SkuDateTimeField = createComponent$c({
|
|
|
20682
20682
|
this.showDatePicker = true;
|
|
20683
20683
|
},
|
|
20684
20684
|
onConfirm: function onConfirm4(val) {
|
|
20685
|
-
var
|
|
20685
|
+
var data50 = val;
|
|
20686
20686
|
if (this.type !== "time") {
|
|
20687
|
-
|
|
20687
|
+
data50 = dateToString(val, this.type);
|
|
20688
20688
|
}
|
|
20689
|
-
this.$emit("input",
|
|
20689
|
+
this.$emit("input", data50);
|
|
20690
20690
|
this.showDatePicker = false;
|
|
20691
20691
|
},
|
|
20692
20692
|
onCancel: function onCancel3() {
|
|
@@ -21411,11 +21411,11 @@ var Sku = createComponent$9({
|
|
|
21411
21411
|
}
|
|
21412
21412
|
});
|
|
21413
21413
|
},
|
|
21414
|
-
onOverLimit: function onOverLimit2(
|
|
21415
|
-
var action =
|
|
21414
|
+
onOverLimit: function onOverLimit2(data50) {
|
|
21415
|
+
var action = data50.action, limitType = data50.limitType, quota = data50.quota, quotaUsed = data50.quotaUsed;
|
|
21416
21416
|
var handleOverLimit = this.customStepperConfig.handleOverLimit;
|
|
21417
21417
|
if (handleOverLimit) {
|
|
21418
|
-
handleOverLimit(
|
|
21418
|
+
handleOverLimit(data50);
|
|
21419
21419
|
return;
|
|
21420
21420
|
}
|
|
21421
21421
|
if (action === "minus") {
|
|
@@ -21436,8 +21436,8 @@ var Sku = createComponent$9({
|
|
|
21436
21436
|
}
|
|
21437
21437
|
}
|
|
21438
21438
|
},
|
|
21439
|
-
onStepperState: function onStepperState(
|
|
21440
|
-
this.stepperError =
|
|
21439
|
+
onStepperState: function onStepperState(data50) {
|
|
21440
|
+
this.stepperError = data50.valid ? null : _extends$2({}, data50, {
|
|
21441
21441
|
action: "plus"
|
|
21442
21442
|
});
|
|
21443
21443
|
},
|
|
@@ -23017,10 +23017,10 @@ const __vue2_script$r = {
|
|
|
23017
23017
|
}
|
|
23018
23018
|
},
|
|
23019
23019
|
methods: {
|
|
23020
|
-
setLength(
|
|
23020
|
+
setLength(data50) {
|
|
23021
23021
|
var _a;
|
|
23022
23022
|
if (this.isTree) {
|
|
23023
|
-
let dataTmp = (
|
|
23023
|
+
let dataTmp = (data50 == null ? void 0 : data50.data) || data50;
|
|
23024
23024
|
let leafNodes = [];
|
|
23025
23025
|
deepEach({}, dataTmp, (d, p, idx) => {
|
|
23026
23026
|
var _a2;
|
|
@@ -23030,7 +23030,7 @@ const __vue2_script$r = {
|
|
|
23030
23030
|
});
|
|
23031
23031
|
this.dataLen = (leafNodes == null ? void 0 : leafNodes.length) || 0;
|
|
23032
23032
|
} else {
|
|
23033
|
-
this.dataLen = (
|
|
23033
|
+
this.dataLen = (data50 == null ? void 0 : data50.length) || ((_a = data50 == null ? void 0 : data50.data) == null ? void 0 : _a.length);
|
|
23034
23034
|
}
|
|
23035
23035
|
},
|
|
23036
23036
|
toggleCheckAll() {
|
|
@@ -23334,8 +23334,8 @@ const __vue2_script$q = {
|
|
|
23334
23334
|
clearSelected() {
|
|
23335
23335
|
this.selectedTitles = "";
|
|
23336
23336
|
},
|
|
23337
|
-
updateSearchNum(
|
|
23338
|
-
this.searchNum =
|
|
23337
|
+
updateSearchNum(data50) {
|
|
23338
|
+
this.searchNum = data50;
|
|
23339
23339
|
},
|
|
23340
23340
|
updateSelectedTitles() {
|
|
23341
23341
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
@@ -24024,7 +24024,11 @@ const __vue2_script$h = {
|
|
|
24024
24024
|
props: {
|
|
24025
24025
|
item: { type: Object, default: () => ({}) },
|
|
24026
24026
|
state: { type: Boolean, default: false },
|
|
24027
|
-
editStatus: { type: String, default: "off" }
|
|
24027
|
+
editStatus: { type: String, default: "off" },
|
|
24028
|
+
ossServerContext: {
|
|
24029
|
+
type: String,
|
|
24030
|
+
default: "/user-manage-server"
|
|
24031
|
+
}
|
|
24028
24032
|
},
|
|
24029
24033
|
computed: {
|
|
24030
24034
|
iconSize: function() {
|
|
@@ -24035,7 +24039,12 @@ const __vue2_script$h = {
|
|
|
24035
24039
|
methods: {
|
|
24036
24040
|
getImg(uri) {
|
|
24037
24041
|
const isHb2 = location.pathname.includes("scyxweb");
|
|
24038
|
-
|
|
24042
|
+
if (uri.slice(0, 3) == "oss" && uri.length >= 4) {
|
|
24043
|
+
let newUri = uri.slice(4);
|
|
24044
|
+
return `${this.ossServerContext}/oss/file/get/${newUri}`;
|
|
24045
|
+
} else {
|
|
24046
|
+
return `${location.origin}${isHb2 ? "/hbwebchat/scyxweb" : ""}${uri}`;
|
|
24047
|
+
}
|
|
24039
24048
|
},
|
|
24040
24049
|
ontouchstart(item2) {
|
|
24041
24050
|
item2.move = false;
|
|
@@ -24178,7 +24187,7 @@ function _iterableToArray(iter) {
|
|
|
24178
24187
|
function _nonIterableSpread() {
|
|
24179
24188
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24180
24189
|
}
|
|
24181
|
-
var version
|
|
24190
|
+
var version = "1.10.2";
|
|
24182
24191
|
function userAgent$1(pattern) {
|
|
24183
24192
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24184
24193
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24626,14 +24635,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24626
24635
|
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;
|
|
24627
24636
|
}
|
|
24628
24637
|
var plugins$1 = [];
|
|
24629
|
-
var defaults$
|
|
24638
|
+
var defaults$5 = {
|
|
24630
24639
|
initializeByDefault: true
|
|
24631
24640
|
};
|
|
24632
24641
|
var PluginManager = {
|
|
24633
24642
|
mount: function mount2(plugin) {
|
|
24634
|
-
for (var option2 in defaults$
|
|
24635
|
-
if (defaults$
|
|
24636
|
-
plugin[option2] = defaults$
|
|
24643
|
+
for (var option2 in defaults$5) {
|
|
24644
|
+
if (defaults$5.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24645
|
+
plugin[option2] = defaults$5[option2];
|
|
24637
24646
|
}
|
|
24638
24647
|
}
|
|
24639
24648
|
plugins$1.push(plugin);
|
|
@@ -24738,7 +24747,7 @@ function dispatchEvent(_ref) {
|
|
|
24738
24747
|
}
|
|
24739
24748
|
}
|
|
24740
24749
|
var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
24741
|
-
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt,
|
|
24750
|
+
var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data50 = _objectWithoutProperties(_ref, ["evt"]);
|
|
24742
24751
|
PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread({
|
|
24743
24752
|
dragEl,
|
|
24744
24753
|
parentEl,
|
|
@@ -24771,7 +24780,7 @@ var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
|
|
24771
24780
|
originalEvent
|
|
24772
24781
|
});
|
|
24773
24782
|
}
|
|
24774
|
-
},
|
|
24783
|
+
}, data50));
|
|
24775
24784
|
};
|
|
24776
24785
|
function _dispatchEvent(info) {
|
|
24777
24786
|
dispatchEvent(_objectSpread({
|
|
@@ -25955,7 +25964,7 @@ Sortable.mount = function() {
|
|
|
25955
25964
|
Sortable.create = function(el, options) {
|
|
25956
25965
|
return new Sortable(el, options);
|
|
25957
25966
|
};
|
|
25958
|
-
Sortable.version = version
|
|
25967
|
+
Sortable.version = version;
|
|
25959
25968
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
25960
25969
|
function AutoScrollPlugin() {
|
|
25961
25970
|
function AutoScroll() {
|
|
@@ -26273,15 +26282,15 @@ function MultiDragPlugin() {
|
|
|
26273
26282
|
selectedClass: "sortable-selected",
|
|
26274
26283
|
multiDragKey: null,
|
|
26275
26284
|
setData: function setData(dataTransfer, dragEl2) {
|
|
26276
|
-
var
|
|
26285
|
+
var data50 = "";
|
|
26277
26286
|
if (multiDragElements.length && multiDragSortable === sortable) {
|
|
26278
26287
|
multiDragElements.forEach(function(multiDragElement, i) {
|
|
26279
|
-
|
|
26288
|
+
data50 += (!i ? "" : ", ") + multiDragElement.textContent;
|
|
26280
26289
|
});
|
|
26281
26290
|
} else {
|
|
26282
|
-
|
|
26291
|
+
data50 = dragEl2.textContent;
|
|
26283
26292
|
}
|
|
26284
|
-
dataTransfer.setData("Text",
|
|
26293
|
+
dataTransfer.setData("Text", data50);
|
|
26285
26294
|
}
|
|
26286
26295
|
};
|
|
26287
26296
|
}
|
|
@@ -26742,10 +26751,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26742
26751
|
Sortable,
|
|
26743
26752
|
Swap: SwapPlugin
|
|
26744
26753
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26745
|
-
var require$$0
|
|
26754
|
+
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26746
26755
|
(function(module2, exports2) {
|
|
26747
26756
|
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26748
|
-
module2.exports = factory(require$$0
|
|
26757
|
+
module2.exports = factory(require$$0);
|
|
26749
26758
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26750
26759
|
return function(modules) {
|
|
26751
26760
|
var installedModules = {};
|
|
@@ -27120,7 +27129,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27120
27129
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27121
27130
|
return createDict();
|
|
27122
27131
|
};
|
|
27123
|
-
module3.exports = Object.create || function
|
|
27132
|
+
module3.exports = Object.create || function create(O, Properties) {
|
|
27124
27133
|
var result;
|
|
27125
27134
|
if (O !== null) {
|
|
27126
27135
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27187,7 +27196,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27187
27196
|
};
|
|
27188
27197
|
},
|
|
27189
27198
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27190
|
-
var
|
|
27199
|
+
var create = __webpack_require__("2aeb");
|
|
27191
27200
|
var descriptor = __webpack_require__("4630");
|
|
27192
27201
|
var setToStringTag = __webpack_require__("7f20");
|
|
27193
27202
|
var IteratorPrototype = {};
|
|
@@ -27195,7 +27204,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27195
27204
|
return this;
|
|
27196
27205
|
});
|
|
27197
27206
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27198
|
-
Constructor.prototype =
|
|
27207
|
+
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27199
27208
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27200
27209
|
};
|
|
27201
27210
|
},
|
|
@@ -28254,7 +28263,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
28254
28263
|
name: "draggable",
|
|
28255
28264
|
inheritAttrs: false,
|
|
28256
28265
|
props,
|
|
28257
|
-
data: function
|
|
28266
|
+
data: function data50() {
|
|
28258
28267
|
return {
|
|
28259
28268
|
transitionMode: false,
|
|
28260
28269
|
noneFunctionalComponentMode: false
|
|
@@ -30561,9 +30570,9 @@ function getMaxDepth(obj, currentDepth = 1) {
|
|
|
30561
30570
|
}
|
|
30562
30571
|
return maxDepth;
|
|
30563
30572
|
}
|
|
30564
|
-
function calculateMaxDepth(
|
|
30573
|
+
function calculateMaxDepth(data50) {
|
|
30565
30574
|
let maxDepth = 0;
|
|
30566
|
-
for (const item2 of
|
|
30575
|
+
for (const item2 of data50) {
|
|
30567
30576
|
const depth = getMaxDepth(item2);
|
|
30568
30577
|
if (depth > maxDepth) {
|
|
30569
30578
|
maxDepth = depth;
|
|
@@ -32120,7 +32129,8 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
|
|
|
32120
32129
|
columnNumber: this.columnNumber,
|
|
32121
32130
|
stack: this.stack,
|
|
32122
32131
|
config: this.config,
|
|
32123
|
-
code: this.code
|
|
32132
|
+
code: this.code,
|
|
32133
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
32124
32134
|
};
|
|
32125
32135
|
};
|
|
32126
32136
|
return error;
|
|
@@ -32276,6 +32286,14 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
32276
32286
|
return true;
|
|
32277
32287
|
};
|
|
32278
32288
|
}();
|
|
32289
|
+
function Cancel$3(message) {
|
|
32290
|
+
this.message = message;
|
|
32291
|
+
}
|
|
32292
|
+
Cancel$3.prototype.toString = function toString2() {
|
|
32293
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32294
|
+
};
|
|
32295
|
+
Cancel$3.prototype.__CANCEL__ = true;
|
|
32296
|
+
var Cancel_1 = Cancel$3;
|
|
32279
32297
|
var utils$6 = utils$d;
|
|
32280
32298
|
var settle2 = settle$1;
|
|
32281
32299
|
var cookies = cookies$1;
|
|
@@ -32284,11 +32302,22 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
32284
32302
|
var parseHeaders2 = parseHeaders$1;
|
|
32285
32303
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32286
32304
|
var createError2 = createError$2;
|
|
32305
|
+
var defaults$4 = defaults_1;
|
|
32306
|
+
var Cancel$2 = Cancel_1;
|
|
32287
32307
|
var xhr = function xhrAdapter(config2) {
|
|
32288
32308
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32289
32309
|
var requestData = config2.data;
|
|
32290
32310
|
var requestHeaders = config2.headers;
|
|
32291
32311
|
var responseType = config2.responseType;
|
|
32312
|
+
var onCanceled;
|
|
32313
|
+
function done() {
|
|
32314
|
+
if (config2.cancelToken) {
|
|
32315
|
+
config2.cancelToken.unsubscribe(onCanceled);
|
|
32316
|
+
}
|
|
32317
|
+
if (config2.signal) {
|
|
32318
|
+
config2.signal.removeEventListener("abort", onCanceled);
|
|
32319
|
+
}
|
|
32320
|
+
}
|
|
32292
32321
|
if (utils$6.isFormData(requestData)) {
|
|
32293
32322
|
delete requestHeaders["Content-Type"];
|
|
32294
32323
|
}
|
|
@@ -32315,7 +32344,13 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32315
32344
|
config: config2,
|
|
32316
32345
|
request: request2
|
|
32317
32346
|
};
|
|
32318
|
-
settle2(
|
|
32347
|
+
settle2(function _resolve(value17) {
|
|
32348
|
+
resolve(value17);
|
|
32349
|
+
done();
|
|
32350
|
+
}, function _reject(err) {
|
|
32351
|
+
reject(err);
|
|
32352
|
+
done();
|
|
32353
|
+
}, response);
|
|
32319
32354
|
request2 = null;
|
|
32320
32355
|
}
|
|
32321
32356
|
if ("onloadend" in request2) {
|
|
@@ -32343,14 +32378,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32343
32378
|
request2 = null;
|
|
32344
32379
|
};
|
|
32345
32380
|
request2.ontimeout = function handleTimeout() {
|
|
32346
|
-
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32381
|
+
var timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
|
|
32382
|
+
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
32347
32383
|
if (config2.timeoutErrorMessage) {
|
|
32348
32384
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32349
32385
|
}
|
|
32350
32386
|
reject(createError2(
|
|
32351
32387
|
timeoutErrorMessage,
|
|
32352
32388
|
config2,
|
|
32353
|
-
|
|
32389
|
+
transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32354
32390
|
request2
|
|
32355
32391
|
));
|
|
32356
32392
|
request2 = null;
|
|
@@ -32382,15 +32418,19 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32382
32418
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32383
32419
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
32384
32420
|
}
|
|
32385
|
-
if (config2.cancelToken) {
|
|
32386
|
-
|
|
32421
|
+
if (config2.cancelToken || config2.signal) {
|
|
32422
|
+
onCanceled = function(cancel2) {
|
|
32387
32423
|
if (!request2) {
|
|
32388
32424
|
return;
|
|
32389
32425
|
}
|
|
32426
|
+
reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
|
|
32390
32427
|
request2.abort();
|
|
32391
|
-
reject(cancel2);
|
|
32392
32428
|
request2 = null;
|
|
32393
|
-
}
|
|
32429
|
+
};
|
|
32430
|
+
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
32431
|
+
if (config2.signal) {
|
|
32432
|
+
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
32433
|
+
}
|
|
32394
32434
|
}
|
|
32395
32435
|
if (!requestData) {
|
|
32396
32436
|
requestData = null;
|
|
@@ -32438,33 +32478,33 @@ var defaults$3 = {
|
|
|
32438
32478
|
clarifyTimeoutError: false
|
|
32439
32479
|
},
|
|
32440
32480
|
adapter: getDefaultAdapter(),
|
|
32441
|
-
transformRequest: [function transformRequest(
|
|
32481
|
+
transformRequest: [function transformRequest(data50, headers) {
|
|
32442
32482
|
normalizeHeaderName2(headers, "Accept");
|
|
32443
32483
|
normalizeHeaderName2(headers, "Content-Type");
|
|
32444
|
-
if (utils$5.isFormData(
|
|
32445
|
-
return
|
|
32484
|
+
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)) {
|
|
32485
|
+
return data50;
|
|
32446
32486
|
}
|
|
32447
|
-
if (utils$5.isArrayBufferView(
|
|
32448
|
-
return
|
|
32487
|
+
if (utils$5.isArrayBufferView(data50)) {
|
|
32488
|
+
return data50.buffer;
|
|
32449
32489
|
}
|
|
32450
|
-
if (utils$5.isURLSearchParams(
|
|
32490
|
+
if (utils$5.isURLSearchParams(data50)) {
|
|
32451
32491
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32452
|
-
return
|
|
32492
|
+
return data50.toString();
|
|
32453
32493
|
}
|
|
32454
|
-
if (utils$5.isObject(
|
|
32494
|
+
if (utils$5.isObject(data50) || headers && headers["Content-Type"] === "application/json") {
|
|
32455
32495
|
setContentTypeIfUnset(headers, "application/json");
|
|
32456
|
-
return stringifySafely(
|
|
32496
|
+
return stringifySafely(data50);
|
|
32457
32497
|
}
|
|
32458
|
-
return
|
|
32498
|
+
return data50;
|
|
32459
32499
|
}],
|
|
32460
|
-
transformResponse: [function transformResponse(
|
|
32461
|
-
var transitional2 = this.transitional;
|
|
32500
|
+
transformResponse: [function transformResponse(data50) {
|
|
32501
|
+
var transitional2 = this.transitional || defaults$3.transitional;
|
|
32462
32502
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32463
32503
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32464
32504
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32465
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
32505
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data50) && data50.length) {
|
|
32466
32506
|
try {
|
|
32467
|
-
return JSON.parse(
|
|
32507
|
+
return JSON.parse(data50);
|
|
32468
32508
|
} catch (e) {
|
|
32469
32509
|
if (strictJSONParsing) {
|
|
32470
32510
|
if (e.name === "SyntaxError") {
|
|
@@ -32474,7 +32514,7 @@ var defaults$3 = {
|
|
|
32474
32514
|
}
|
|
32475
32515
|
}
|
|
32476
32516
|
}
|
|
32477
|
-
return
|
|
32517
|
+
return data50;
|
|
32478
32518
|
}],
|
|
32479
32519
|
timeout: 0,
|
|
32480
32520
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -32483,11 +32523,11 @@ var defaults$3 = {
|
|
|
32483
32523
|
maxBodyLength: -1,
|
|
32484
32524
|
validateStatus: function validateStatus(status2) {
|
|
32485
32525
|
return status2 >= 200 && status2 < 300;
|
|
32486
|
-
}
|
|
32487
|
-
|
|
32488
|
-
|
|
32489
|
-
|
|
32490
|
-
|
|
32526
|
+
},
|
|
32527
|
+
headers: {
|
|
32528
|
+
common: {
|
|
32529
|
+
"Accept": "application/json, text/plain, */*"
|
|
32530
|
+
}
|
|
32491
32531
|
}
|
|
32492
32532
|
};
|
|
32493
32533
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -32499,12 +32539,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
32499
32539
|
var defaults_1 = defaults$3;
|
|
32500
32540
|
var utils$4 = utils$d;
|
|
32501
32541
|
var defaults$2 = defaults_1;
|
|
32502
|
-
var transformData$1 = function transformData(
|
|
32542
|
+
var transformData$1 = function transformData(data50, headers, fns) {
|
|
32503
32543
|
var context2 = this || defaults$2;
|
|
32504
32544
|
utils$4.forEach(fns, function transform(fn2) {
|
|
32505
|
-
|
|
32545
|
+
data50 = fn2.call(context2, data50, headers);
|
|
32506
32546
|
});
|
|
32507
|
-
return
|
|
32547
|
+
return data50;
|
|
32508
32548
|
};
|
|
32509
32549
|
var isCancel$1 = function isCancel(value17) {
|
|
32510
32550
|
return !!(value17 && value17.__CANCEL__);
|
|
@@ -32513,10 +32553,14 @@ var utils$3 = utils$d;
|
|
|
32513
32553
|
var transformData2 = transformData$1;
|
|
32514
32554
|
var isCancel2 = isCancel$1;
|
|
32515
32555
|
var defaults$1 = defaults_1;
|
|
32556
|
+
var Cancel$1 = Cancel_1;
|
|
32516
32557
|
function throwIfCancellationRequested(config2) {
|
|
32517
32558
|
if (config2.cancelToken) {
|
|
32518
32559
|
config2.cancelToken.throwIfRequested();
|
|
32519
32560
|
}
|
|
32561
|
+
if (config2.signal && config2.signal.aborted) {
|
|
32562
|
+
throw new Cancel$1("canceled");
|
|
32563
|
+
}
|
|
32520
32564
|
}
|
|
32521
32565
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32522
32566
|
throwIfCancellationRequested(config2);
|
|
@@ -32567,34 +32611,6 @@ var utils$2 = utils$d;
|
|
|
32567
32611
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32568
32612
|
config2 = config2 || {};
|
|
32569
32613
|
var config3 = {};
|
|
32570
|
-
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32571
|
-
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32572
|
-
var defaultToConfig2Keys = [
|
|
32573
|
-
"baseURL",
|
|
32574
|
-
"transformRequest",
|
|
32575
|
-
"transformResponse",
|
|
32576
|
-
"paramsSerializer",
|
|
32577
|
-
"timeout",
|
|
32578
|
-
"timeoutMessage",
|
|
32579
|
-
"withCredentials",
|
|
32580
|
-
"adapter",
|
|
32581
|
-
"responseType",
|
|
32582
|
-
"xsrfCookieName",
|
|
32583
|
-
"xsrfHeaderName",
|
|
32584
|
-
"onUploadProgress",
|
|
32585
|
-
"onDownloadProgress",
|
|
32586
|
-
"decompress",
|
|
32587
|
-
"maxContentLength",
|
|
32588
|
-
"maxBodyLength",
|
|
32589
|
-
"maxRedirects",
|
|
32590
|
-
"transport",
|
|
32591
|
-
"httpAgent",
|
|
32592
|
-
"httpsAgent",
|
|
32593
|
-
"cancelToken",
|
|
32594
|
-
"socketPath",
|
|
32595
|
-
"responseEncoding"
|
|
32596
|
-
];
|
|
32597
|
-
var directMergeKeys = ["validateStatus"];
|
|
32598
32614
|
function getMergedValue(target2, source2) {
|
|
32599
32615
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32600
32616
|
return utils$2.merge(target2, source2);
|
|
@@ -32607,141 +32623,69 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
32607
32623
|
}
|
|
32608
32624
|
function mergeDeepProperties(prop) {
|
|
32609
32625
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32610
|
-
|
|
32626
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
32611
32627
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32612
|
-
|
|
32628
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32613
32629
|
}
|
|
32614
32630
|
}
|
|
32615
|
-
|
|
32631
|
+
function valueFromConfig2(prop) {
|
|
32616
32632
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32617
|
-
|
|
32633
|
+
return getMergedValue(void 0, config2[prop]);
|
|
32618
32634
|
}
|
|
32619
|
-
}
|
|
32620
|
-
|
|
32621
|
-
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32635
|
+
}
|
|
32636
|
+
function defaultToConfig2(prop) {
|
|
32622
32637
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32623
|
-
|
|
32638
|
+
return getMergedValue(void 0, config2[prop]);
|
|
32624
32639
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32625
|
-
|
|
32640
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32626
32641
|
}
|
|
32627
|
-
}
|
|
32628
|
-
|
|
32642
|
+
}
|
|
32643
|
+
function mergeDirectKeys(prop) {
|
|
32629
32644
|
if (prop in config2) {
|
|
32630
|
-
|
|
32645
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
32631
32646
|
} else if (prop in config1) {
|
|
32632
|
-
|
|
32633
|
-
}
|
|
32634
|
-
}
|
|
32635
|
-
var
|
|
32636
|
-
|
|
32637
|
-
|
|
32647
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32648
|
+
}
|
|
32649
|
+
}
|
|
32650
|
+
var mergeMap = {
|
|
32651
|
+
"url": valueFromConfig2,
|
|
32652
|
+
"method": valueFromConfig2,
|
|
32653
|
+
"data": valueFromConfig2,
|
|
32654
|
+
"baseURL": defaultToConfig2,
|
|
32655
|
+
"transformRequest": defaultToConfig2,
|
|
32656
|
+
"transformResponse": defaultToConfig2,
|
|
32657
|
+
"paramsSerializer": defaultToConfig2,
|
|
32658
|
+
"timeout": defaultToConfig2,
|
|
32659
|
+
"timeoutMessage": defaultToConfig2,
|
|
32660
|
+
"withCredentials": defaultToConfig2,
|
|
32661
|
+
"adapter": defaultToConfig2,
|
|
32662
|
+
"responseType": defaultToConfig2,
|
|
32663
|
+
"xsrfCookieName": defaultToConfig2,
|
|
32664
|
+
"xsrfHeaderName": defaultToConfig2,
|
|
32665
|
+
"onUploadProgress": defaultToConfig2,
|
|
32666
|
+
"onDownloadProgress": defaultToConfig2,
|
|
32667
|
+
"decompress": defaultToConfig2,
|
|
32668
|
+
"maxContentLength": defaultToConfig2,
|
|
32669
|
+
"maxBodyLength": defaultToConfig2,
|
|
32670
|
+
"transport": defaultToConfig2,
|
|
32671
|
+
"httpAgent": defaultToConfig2,
|
|
32672
|
+
"httpsAgent": defaultToConfig2,
|
|
32673
|
+
"cancelToken": defaultToConfig2,
|
|
32674
|
+
"socketPath": defaultToConfig2,
|
|
32675
|
+
"responseEncoding": defaultToConfig2,
|
|
32676
|
+
"validateStatus": mergeDirectKeys
|
|
32677
|
+
};
|
|
32678
|
+
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
32679
|
+
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
32680
|
+
var configValue = merge2(prop);
|
|
32681
|
+
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
32638
32682
|
});
|
|
32639
|
-
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32640
32683
|
return config3;
|
|
32641
32684
|
};
|
|
32642
|
-
|
|
32643
|
-
|
|
32644
|
-
const description = "Promise based HTTP client for the browser and node.js";
|
|
32645
|
-
const main = "index.js";
|
|
32646
|
-
const scripts = {
|
|
32647
|
-
test: "grunt test",
|
|
32648
|
-
start: "node ./sandbox/server.js",
|
|
32649
|
-
build: "NODE_ENV=production grunt build",
|
|
32650
|
-
preversion: "npm test",
|
|
32651
|
-
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32652
|
-
postversion: "git push && git push --tags",
|
|
32653
|
-
examples: "node ./examples/server.js",
|
|
32654
|
-
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32655
|
-
fix: "eslint --fix lib/**/*.js"
|
|
32656
|
-
};
|
|
32657
|
-
const repository = {
|
|
32658
|
-
type: "git",
|
|
32659
|
-
url: "https://github.com/axios/axios.git"
|
|
32660
|
-
};
|
|
32661
|
-
const keywords = [
|
|
32662
|
-
"xhr",
|
|
32663
|
-
"http",
|
|
32664
|
-
"ajax",
|
|
32665
|
-
"promise",
|
|
32666
|
-
"node"
|
|
32667
|
-
];
|
|
32668
|
-
const author = "Matt Zabriskie";
|
|
32669
|
-
const license = "MIT";
|
|
32670
|
-
const bugs = {
|
|
32671
|
-
url: "https://github.com/axios/axios/issues"
|
|
32672
|
-
};
|
|
32673
|
-
const homepage = "https://axios-http.com";
|
|
32674
|
-
const devDependencies = {
|
|
32675
|
-
coveralls: "^3.0.0",
|
|
32676
|
-
"es6-promise": "^4.2.4",
|
|
32677
|
-
grunt: "^1.3.0",
|
|
32678
|
-
"grunt-banner": "^0.6.0",
|
|
32679
|
-
"grunt-cli": "^1.2.0",
|
|
32680
|
-
"grunt-contrib-clean": "^1.1.0",
|
|
32681
|
-
"grunt-contrib-watch": "^1.0.0",
|
|
32682
|
-
"grunt-eslint": "^23.0.0",
|
|
32683
|
-
"grunt-karma": "^4.0.0",
|
|
32684
|
-
"grunt-mocha-test": "^0.13.3",
|
|
32685
|
-
"grunt-ts": "^6.0.0-beta.19",
|
|
32686
|
-
"grunt-webpack": "^4.0.2",
|
|
32687
|
-
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32688
|
-
"jasmine-core": "^2.4.1",
|
|
32689
|
-
karma: "^6.3.2",
|
|
32690
|
-
"karma-chrome-launcher": "^3.1.0",
|
|
32691
|
-
"karma-firefox-launcher": "^2.1.0",
|
|
32692
|
-
"karma-jasmine": "^1.1.1",
|
|
32693
|
-
"karma-jasmine-ajax": "^0.1.13",
|
|
32694
|
-
"karma-safari-launcher": "^1.0.0",
|
|
32695
|
-
"karma-sauce-launcher": "^4.3.6",
|
|
32696
|
-
"karma-sinon": "^1.0.5",
|
|
32697
|
-
"karma-sourcemap-loader": "^0.3.8",
|
|
32698
|
-
"karma-webpack": "^4.0.2",
|
|
32699
|
-
"load-grunt-tasks": "^3.5.2",
|
|
32700
|
-
minimist: "^1.2.0",
|
|
32701
|
-
mocha: "^8.2.1",
|
|
32702
|
-
sinon: "^4.5.0",
|
|
32703
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
32704
|
-
typescript: "^4.0.5",
|
|
32705
|
-
"url-search-params": "^0.10.0",
|
|
32706
|
-
webpack: "^4.44.2",
|
|
32707
|
-
"webpack-dev-server": "^3.11.0"
|
|
32708
|
-
};
|
|
32709
|
-
const browser = {
|
|
32710
|
-
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32711
|
-
};
|
|
32712
|
-
const jsdelivr = "dist/axios.min.js";
|
|
32713
|
-
const unpkg = "dist/axios.min.js";
|
|
32714
|
-
const typings = "./index.d.ts";
|
|
32715
|
-
const dependencies = {
|
|
32716
|
-
"follow-redirects": "^1.14.0"
|
|
32717
|
-
};
|
|
32718
|
-
const bundlesize = [
|
|
32719
|
-
{
|
|
32720
|
-
path: "./dist/axios.min.js",
|
|
32721
|
-
threshold: "5kB"
|
|
32722
|
-
}
|
|
32723
|
-
];
|
|
32724
|
-
var require$$0 = {
|
|
32725
|
-
name,
|
|
32726
|
-
version,
|
|
32727
|
-
description,
|
|
32728
|
-
main,
|
|
32729
|
-
scripts,
|
|
32730
|
-
repository,
|
|
32731
|
-
keywords,
|
|
32732
|
-
author,
|
|
32733
|
-
license,
|
|
32734
|
-
bugs,
|
|
32735
|
-
homepage,
|
|
32736
|
-
devDependencies,
|
|
32737
|
-
browser,
|
|
32738
|
-
jsdelivr,
|
|
32739
|
-
unpkg,
|
|
32740
|
-
typings,
|
|
32741
|
-
dependencies,
|
|
32742
|
-
bundlesize
|
|
32685
|
+
var data49 = {
|
|
32686
|
+
"version": "0.24.0"
|
|
32743
32687
|
};
|
|
32744
|
-
var
|
|
32688
|
+
var VERSION = data49.version;
|
|
32745
32689
|
var validators$1 = {};
|
|
32746
32690
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
32747
32691
|
validators$1[type2] = function validator4(thing) {
|
|
@@ -32749,29 +32693,15 @@ var validators$1 = {};
|
|
|
32749
32693
|
};
|
|
32750
32694
|
});
|
|
32751
32695
|
var deprecatedWarnings = {};
|
|
32752
|
-
var currentVerArr = pkg.version.split(".");
|
|
32753
|
-
function isOlderVersion(version2, thanVersion) {
|
|
32754
|
-
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32755
|
-
var destVer = version2.split(".");
|
|
32756
|
-
for (var i = 0; i < 3; i++) {
|
|
32757
|
-
if (pkgVersionArr[i] > destVer[i]) {
|
|
32758
|
-
return true;
|
|
32759
|
-
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32760
|
-
return false;
|
|
32761
|
-
}
|
|
32762
|
-
}
|
|
32763
|
-
return false;
|
|
32764
|
-
}
|
|
32765
32696
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32766
|
-
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32767
32697
|
function formatMessage(opt, desc) {
|
|
32768
|
-
return "[Axios v" +
|
|
32698
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32769
32699
|
}
|
|
32770
32700
|
return function(value17, opt, opts) {
|
|
32771
32701
|
if (validator4 === false) {
|
|
32772
|
-
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
32702
|
+
throw new Error(formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")));
|
|
32773
32703
|
}
|
|
32774
|
-
if (
|
|
32704
|
+
if (version2 && !deprecatedWarnings[opt]) {
|
|
32775
32705
|
deprecatedWarnings[opt] = true;
|
|
32776
32706
|
console.warn(
|
|
32777
32707
|
formatMessage(
|
|
@@ -32806,7 +32736,6 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
32806
32736
|
}
|
|
32807
32737
|
}
|
|
32808
32738
|
var validator$1 = {
|
|
32809
|
-
isOlderVersion,
|
|
32810
32739
|
assertOptions,
|
|
32811
32740
|
validators: validators$1
|
|
32812
32741
|
};
|
|
@@ -32842,9 +32771,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
32842
32771
|
var transitional2 = config2.transitional;
|
|
32843
32772
|
if (transitional2 !== void 0) {
|
|
32844
32773
|
validator3.assertOptions(transitional2, {
|
|
32845
|
-
silentJSONParsing: validators.transitional(validators.boolean
|
|
32846
|
-
forcedJSONParsing: validators.transitional(validators.boolean
|
|
32847
|
-
clarifyTimeoutError: validators.transitional(validators.boolean
|
|
32774
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
32775
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
32776
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
32848
32777
|
}, false);
|
|
32849
32778
|
}
|
|
32850
32779
|
var requestInterceptorChain = [];
|
|
@@ -32906,23 +32835,15 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
32906
32835
|
};
|
|
32907
32836
|
});
|
|
32908
32837
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32909
|
-
Axios$1.prototype[method] = function(url,
|
|
32838
|
+
Axios$1.prototype[method] = function(url, data50, config2) {
|
|
32910
32839
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
32911
32840
|
method,
|
|
32912
32841
|
url,
|
|
32913
|
-
data:
|
|
32842
|
+
data: data50
|
|
32914
32843
|
}));
|
|
32915
32844
|
};
|
|
32916
32845
|
});
|
|
32917
32846
|
var Axios_1 = Axios$1;
|
|
32918
|
-
function Cancel$1(message) {
|
|
32919
|
-
this.message = message;
|
|
32920
|
-
}
|
|
32921
|
-
Cancel$1.prototype.toString = function toString2() {
|
|
32922
|
-
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32923
|
-
};
|
|
32924
|
-
Cancel$1.prototype.__CANCEL__ = true;
|
|
32925
|
-
var Cancel_1 = Cancel$1;
|
|
32926
32847
|
var Cancel = Cancel_1;
|
|
32927
32848
|
function CancelToken(executor) {
|
|
32928
32849
|
if (typeof executor !== "function") {
|
|
@@ -32933,6 +32854,27 @@ function CancelToken(executor) {
|
|
|
32933
32854
|
resolvePromise = resolve;
|
|
32934
32855
|
});
|
|
32935
32856
|
var token = this;
|
|
32857
|
+
this.promise.then(function(cancel2) {
|
|
32858
|
+
if (!token._listeners)
|
|
32859
|
+
return;
|
|
32860
|
+
var i;
|
|
32861
|
+
var l = token._listeners.length;
|
|
32862
|
+
for (i = 0; i < l; i++) {
|
|
32863
|
+
token._listeners[i](cancel2);
|
|
32864
|
+
}
|
|
32865
|
+
token._listeners = null;
|
|
32866
|
+
});
|
|
32867
|
+
this.promise.then = function(onfulfilled) {
|
|
32868
|
+
var _resolve;
|
|
32869
|
+
var promise = new Promise(function(resolve) {
|
|
32870
|
+
token.subscribe(resolve);
|
|
32871
|
+
_resolve = resolve;
|
|
32872
|
+
}).then(onfulfilled);
|
|
32873
|
+
promise.cancel = function reject() {
|
|
32874
|
+
token.unsubscribe(_resolve);
|
|
32875
|
+
};
|
|
32876
|
+
return promise;
|
|
32877
|
+
};
|
|
32936
32878
|
executor(function cancel2(message) {
|
|
32937
32879
|
if (token.reason) {
|
|
32938
32880
|
return;
|
|
@@ -32946,6 +32888,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
32946
32888
|
throw this.reason;
|
|
32947
32889
|
}
|
|
32948
32890
|
};
|
|
32891
|
+
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
32892
|
+
if (this.reason) {
|
|
32893
|
+
listener(this.reason);
|
|
32894
|
+
return;
|
|
32895
|
+
}
|
|
32896
|
+
if (this._listeners) {
|
|
32897
|
+
this._listeners.push(listener);
|
|
32898
|
+
} else {
|
|
32899
|
+
this._listeners = [listener];
|
|
32900
|
+
}
|
|
32901
|
+
};
|
|
32902
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
32903
|
+
if (!this._listeners) {
|
|
32904
|
+
return;
|
|
32905
|
+
}
|
|
32906
|
+
var index2 = this._listeners.indexOf(listener);
|
|
32907
|
+
if (index2 !== -1) {
|
|
32908
|
+
this._listeners.splice(index2, 1);
|
|
32909
|
+
}
|
|
32910
|
+
};
|
|
32949
32911
|
CancelToken.source = function source() {
|
|
32950
32912
|
var cancel2;
|
|
32951
32913
|
var token = new CancelToken(function executor(c) {
|
|
@@ -32975,16 +32937,17 @@ function createInstance(defaultConfig2) {
|
|
|
32975
32937
|
var instance2 = bind2(Axios.prototype.request, context2);
|
|
32976
32938
|
utils.extend(instance2, Axios.prototype, context2);
|
|
32977
32939
|
utils.extend(instance2, context2);
|
|
32940
|
+
instance2.create = function create(instanceConfig) {
|
|
32941
|
+
return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
|
|
32942
|
+
};
|
|
32978
32943
|
return instance2;
|
|
32979
32944
|
}
|
|
32980
32945
|
var axios$1 = createInstance(defaults);
|
|
32981
32946
|
axios$1.Axios = Axios;
|
|
32982
|
-
axios$1.create = function create(instanceConfig) {
|
|
32983
|
-
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
32984
|
-
};
|
|
32985
32947
|
axios$1.Cancel = Cancel_1;
|
|
32986
32948
|
axios$1.CancelToken = CancelToken_1;
|
|
32987
32949
|
axios$1.isCancel = isCancel$1;
|
|
32950
|
+
axios$1.VERSION = data49.version;
|
|
32988
32951
|
axios$1.all = function all(promises) {
|
|
32989
32952
|
return Promise.all(promises);
|
|
32990
32953
|
};
|
|
@@ -33406,12 +33369,12 @@ var user = {
|
|
|
33406
33369
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
33407
33370
|
return userInfo;
|
|
33408
33371
|
}
|
|
33409
|
-
const { data:
|
|
33410
|
-
commit2("setAvatar",
|
|
33411
|
-
commit2("setUserName",
|
|
33412
|
-
commit2("setUserManageUnitId",
|
|
33413
|
-
setUserInfoCache(
|
|
33414
|
-
return
|
|
33372
|
+
const { data: data50 } = await getUserInfoApi();
|
|
33373
|
+
commit2("setAvatar", data50.userAvater);
|
|
33374
|
+
commit2("setUserName", data50.userName);
|
|
33375
|
+
commit2("setUserManageUnitId", data50.manageUnitId);
|
|
33376
|
+
setUserInfoCache(data50);
|
|
33377
|
+
return data50;
|
|
33415
33378
|
}
|
|
33416
33379
|
}
|
|
33417
33380
|
};
|
|
@@ -33593,8 +33556,8 @@ var app = {
|
|
|
33593
33556
|
async getAppListData({ commit: commit2, getters }) {
|
|
33594
33557
|
let appList = getters.getAppList;
|
|
33595
33558
|
if (!appList.length) {
|
|
33596
|
-
const { data:
|
|
33597
|
-
appList =
|
|
33559
|
+
const { data: data50 = [] } = await getAppListApi();
|
|
33560
|
+
appList = data50.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
33598
33561
|
commit2("setAppList", appList);
|
|
33599
33562
|
}
|
|
33600
33563
|
let appId = "";
|
|
@@ -33698,9 +33661,9 @@ var app = {
|
|
|
33698
33661
|
},
|
|
33699
33662
|
async getMyAppsList({ commit: commit2 }, payload) {
|
|
33700
33663
|
try {
|
|
33701
|
-
let { data:
|
|
33702
|
-
|
|
33703
|
-
commit2("setMyAppsList",
|
|
33664
|
+
let { data: data50 } = await getIndexPreset(payload);
|
|
33665
|
+
data50 = data50 || "[]";
|
|
33666
|
+
commit2("setMyAppsList", data50);
|
|
33704
33667
|
} catch (error) {
|
|
33705
33668
|
console.error("getMyAppsList:", error);
|
|
33706
33669
|
}
|
|
@@ -33726,8 +33689,8 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33726
33689
|
doChangeTheme(theme);
|
|
33727
33690
|
if (location.pathname.includes("scyxweb")) {
|
|
33728
33691
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
33729
|
-
axios$3.get(url).then((
|
|
33730
|
-
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {},
|
|
33692
|
+
axios$3.get(url).then((data50) => {
|
|
33693
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data50);
|
|
33731
33694
|
});
|
|
33732
33695
|
}
|
|
33733
33696
|
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
@@ -33797,7 +33760,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33797
33760
|
install(window.Vue);
|
|
33798
33761
|
}
|
|
33799
33762
|
const API = {
|
|
33800
|
-
version: pkg
|
|
33763
|
+
version: pkg.version,
|
|
33801
33764
|
install,
|
|
33802
33765
|
components,
|
|
33803
33766
|
plugins,
|