@indfnd/common-mobile 1.0.40 → 1.0.42
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 +19 -0
- package/dist/ind-common-mobile.es.js +312 -345
- 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.41";
|
|
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;
|
|
@@ -23818,7 +23824,7 @@ var render$k = function() {
|
|
|
23818
23824
|
var _vm = this;
|
|
23819
23825
|
var _h = _vm.$createElement;
|
|
23820
23826
|
var _c = _vm._self._c || _h;
|
|
23821
|
-
return _c("div", { staticClass: "ind-m-user-wrapper", staticStyle: { "position": "relative" } }, [_c("van-sticky", { directives: [{ name: "show", rawName: "v-show", value: !_vm.isHb, expression: "!isHb" }] }, [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": "\u6211\u7684" } })], 1), _c("div", { staticStyle: { "position": "absolute", "left": "0", "width": "100%", "height": "40vh", "z-index": "0" }, style: { top: !_vm.isHb ? "48px" : "0px" } }, [_c("IndMImgLoad", { attrs: { "pick": "home-bg", "type": "TableData" } })], 1), _c("div", { staticClass: "ind-m-user-avatar-con" }, [_c("div", { staticClass: "ind-m-user-avatar-con-avatar" }, [_c("div", { staticClass: "ind-m-user-avatar-con-avatar-img" }, [_c("van-image", { attrs: { "round": "", "width": "5rem", "height": "5rem", "fit": "cover", "position": "center", "src": _vm.user.avatar } })], 1)]), _c("div", { staticClass: "ind-m-user-avatar-con-name" }, [_vm._v(_vm._s(_vm.user.userName))])]), _c("IndMCard", { attrs: { "
|
|
23827
|
+
return _c("div", { staticClass: "ind-m-user-wrapper", staticStyle: { "position": "relative" } }, [_c("van-sticky", { directives: [{ name: "show", rawName: "v-show", value: !_vm.isHb, expression: "!isHb" }] }, [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": "\u6211\u7684" } })], 1), _c("div", { staticStyle: { "position": "absolute", "left": "0", "width": "100%", "height": "40vh", "z-index": "0" }, style: { top: !_vm.isHb ? "48px" : "0px" } }, [_c("IndMImgLoad", { attrs: { "pick": "home-bg", "position": "center top", "type": "TableData" } })], 1), _c("div", { staticClass: "ind-m-user-avatar-con" }, [_c("div", { staticClass: "ind-m-user-avatar-con-avatar" }, [_c("div", { staticClass: "ind-m-user-avatar-con-avatar-img" }, [_c("van-image", { attrs: { "round": "", "width": "5rem", "height": "5rem", "fit": "cover", "position": "center", "src": _vm.user.avatar } })], 1)]), _c("div", { staticClass: "ind-m-user-avatar-con-name" }, [_vm._v(_vm._s(_vm.user.userName))])]), _c("IndMCard", { attrs: { "title": "\u5E94\u7528\u4FE1\u606F" } }, [_c("van-cell", { staticClass: "ind-van-cell-bg-color", attrs: { "icon": "apps-o", "title": "\u5E94\u7528\u540D\u79F0", "value": _vm.app.name } }), _c("van-cell", { staticClass: "ind-van-cell-bg-color", attrs: { "icon": "qr", "title": "\u5E94\u7528\u7F16\u7801", "value": _vm.app.appId } }), _c("van-cell", { staticClass: "ind-van-cell-bg-color", attrs: { "icon": "list-switch", "title": "\u5E94\u7528\u7248\u672C", "value": _vm.app.extendProps.extendProps && JSON.parse(_vm.app.extendProps.extendProps).appVersion } }), _c("van-cell", { staticClass: "ind-van-cell-bg-color", attrs: { "icon": "list-switching", "title": "\u914D\u7F6E\u7248\u672C", "value": _vm.app.extendProps.extendProps && JSON.parse(_vm.app.extendProps.extendProps).profileVersion } }), _c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["12210071"], expression: "['12210071']" }], staticClass: "ind-van-cell-bg-color", attrs: { "title": "v-permission=['12210071']", "value": _vm.app.version } }), _c("van-cell", { directives: [{ name: "permission", rawName: "v-permission", value: ["1221001111"], expression: "['1221001111']" }], staticClass: "ind-van-cell-bg-color", attrs: { "title": "v-permission=['1221001111']", "value": _vm.app.version } })], 1), _c("IndMCard", { attrs: { "title": "\u901A\u7528" } }, [_c("van-cell", { staticClass: "ind-van-cell-bg-color", attrs: { "icon": "setting-o", "title": "\u8BBE\u7F6E", "is-link": "", "to": "/setting" } })], 1), _c("IndMtabbar")], 1);
|
|
23822
23828
|
};
|
|
23823
23829
|
var staticRenderFns$k = [];
|
|
23824
23830
|
const __vue2_script$k = {
|
|
@@ -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
|
|
@@ -30072,7 +30078,14 @@ var render$8 = function() {
|
|
|
30072
30078
|
var _vm = this;
|
|
30073
30079
|
var _h = _vm.$createElement;
|
|
30074
30080
|
var _c = _vm._self._c || _h;
|
|
30075
|
-
return _c("div", { staticClass: "ind-m-new-app-center"
|
|
30081
|
+
return _c("div", { staticClass: "ind-m-new-app-center" }, [!_vm.isHb ? _c("van-sticky", [_c("van-nav-bar", { attrs: { "placeholder": true, "safe-area-inset-top": true, "title": _vm.title } })], 1) : _vm._e(), _c("div", { staticClass: "ind-m-new-app-page", staticStyle: { "position": "relative" }, style: { minHeight: !_vm.isHb ? "calc(100vh - 48px)" : "100vh" } }, [_c("div", { style: {
|
|
30082
|
+
top: "0px",
|
|
30083
|
+
position: "absolute",
|
|
30084
|
+
left: "0px",
|
|
30085
|
+
width: "100%",
|
|
30086
|
+
height: "22vh",
|
|
30087
|
+
zIndex: 0
|
|
30088
|
+
} }, [_c("IndMImgLoad", { attrs: { "position": "center top", "pick": "ind:appNew:bg", "type": "TableData" } })], 1), _c("div", { staticClass: "ind-m-new-placeholder" }, [_c("van-search", { staticClass: "ind-m-new-placeholder-search", attrs: { "placeholder": "\u641C\u7D22\u5E94\u7528" }, on: { "search": _vm.onSearch, "clear": _vm.onClear }, scopedSlots: _vm._u([{ key: "left-icon", fn: function() {
|
|
30076
30089
|
return [_c("div", { staticClass: "ind-m-new-placeholder-search-left" }, [_c("Icon", { attrs: { "type": "md-search" } })], 1)];
|
|
30077
30090
|
}, proxy: true }, { key: "right-icon", fn: function() {
|
|
30078
30091
|
return [_c("div", { staticClass: "ind-m-new-placeholder-search-right", on: { "click": _vm.onSearch } }, [_vm._v("\u641C\u7D22")])];
|
|
@@ -30381,9 +30394,9 @@ function getMaxDepth(obj, currentDepth = 1) {
|
|
|
30381
30394
|
}
|
|
30382
30395
|
return maxDepth;
|
|
30383
30396
|
}
|
|
30384
|
-
function calculateMaxDepth(
|
|
30397
|
+
function calculateMaxDepth(data50) {
|
|
30385
30398
|
let maxDepth = 0;
|
|
30386
|
-
for (const item2 of
|
|
30399
|
+
for (const item2 of data50) {
|
|
30387
30400
|
const depth = getMaxDepth(item2);
|
|
30388
30401
|
if (depth > maxDepth) {
|
|
30389
30402
|
maxDepth = depth;
|
|
@@ -31918,7 +31931,8 @@ var enhanceError$2 = function enhanceError(error, config2, code2, request2, resp
|
|
|
31918
31931
|
columnNumber: this.columnNumber,
|
|
31919
31932
|
stack: this.stack,
|
|
31920
31933
|
config: this.config,
|
|
31921
|
-
code: this.code
|
|
31934
|
+
code: this.code,
|
|
31935
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
31922
31936
|
};
|
|
31923
31937
|
};
|
|
31924
31938
|
return error;
|
|
@@ -32074,6 +32088,14 @@ var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowse
|
|
|
32074
32088
|
return true;
|
|
32075
32089
|
};
|
|
32076
32090
|
}();
|
|
32091
|
+
function Cancel$3(message) {
|
|
32092
|
+
this.message = message;
|
|
32093
|
+
}
|
|
32094
|
+
Cancel$3.prototype.toString = function toString2() {
|
|
32095
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
32096
|
+
};
|
|
32097
|
+
Cancel$3.prototype.__CANCEL__ = true;
|
|
32098
|
+
var Cancel_1 = Cancel$3;
|
|
32077
32099
|
var utils$6 = utils$d;
|
|
32078
32100
|
var settle2 = settle$1;
|
|
32079
32101
|
var cookies = cookies$1;
|
|
@@ -32082,11 +32104,22 @@ var buildFullPath2 = buildFullPath$1;
|
|
|
32082
32104
|
var parseHeaders2 = parseHeaders$1;
|
|
32083
32105
|
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32084
32106
|
var createError2 = createError$2;
|
|
32107
|
+
var defaults$4 = defaults_1;
|
|
32108
|
+
var Cancel$2 = Cancel_1;
|
|
32085
32109
|
var xhr = function xhrAdapter(config2) {
|
|
32086
32110
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
32087
32111
|
var requestData = config2.data;
|
|
32088
32112
|
var requestHeaders = config2.headers;
|
|
32089
32113
|
var responseType = config2.responseType;
|
|
32114
|
+
var onCanceled;
|
|
32115
|
+
function done() {
|
|
32116
|
+
if (config2.cancelToken) {
|
|
32117
|
+
config2.cancelToken.unsubscribe(onCanceled);
|
|
32118
|
+
}
|
|
32119
|
+
if (config2.signal) {
|
|
32120
|
+
config2.signal.removeEventListener("abort", onCanceled);
|
|
32121
|
+
}
|
|
32122
|
+
}
|
|
32090
32123
|
if (utils$6.isFormData(requestData)) {
|
|
32091
32124
|
delete requestHeaders["Content-Type"];
|
|
32092
32125
|
}
|
|
@@ -32113,7 +32146,13 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32113
32146
|
config: config2,
|
|
32114
32147
|
request: request2
|
|
32115
32148
|
};
|
|
32116
|
-
settle2(
|
|
32149
|
+
settle2(function _resolve(value17) {
|
|
32150
|
+
resolve(value17);
|
|
32151
|
+
done();
|
|
32152
|
+
}, function _reject(err) {
|
|
32153
|
+
reject(err);
|
|
32154
|
+
done();
|
|
32155
|
+
}, response);
|
|
32117
32156
|
request2 = null;
|
|
32118
32157
|
}
|
|
32119
32158
|
if ("onloadend" in request2) {
|
|
@@ -32141,14 +32180,15 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32141
32180
|
request2 = null;
|
|
32142
32181
|
};
|
|
32143
32182
|
request2.ontimeout = function handleTimeout() {
|
|
32144
|
-
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32183
|
+
var timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
|
|
32184
|
+
var transitional2 = config2.transitional || defaults$4.transitional;
|
|
32145
32185
|
if (config2.timeoutErrorMessage) {
|
|
32146
32186
|
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32147
32187
|
}
|
|
32148
32188
|
reject(createError2(
|
|
32149
32189
|
timeoutErrorMessage,
|
|
32150
32190
|
config2,
|
|
32151
|
-
|
|
32191
|
+
transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32152
32192
|
request2
|
|
32153
32193
|
));
|
|
32154
32194
|
request2 = null;
|
|
@@ -32180,15 +32220,19 @@ var xhr = function xhrAdapter(config2) {
|
|
|
32180
32220
|
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32181
32221
|
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
32182
32222
|
}
|
|
32183
|
-
if (config2.cancelToken) {
|
|
32184
|
-
|
|
32223
|
+
if (config2.cancelToken || config2.signal) {
|
|
32224
|
+
onCanceled = function(cancel2) {
|
|
32185
32225
|
if (!request2) {
|
|
32186
32226
|
return;
|
|
32187
32227
|
}
|
|
32228
|
+
reject(!cancel2 || cancel2 && cancel2.type ? new Cancel$2("canceled") : cancel2);
|
|
32188
32229
|
request2.abort();
|
|
32189
|
-
reject(cancel2);
|
|
32190
32230
|
request2 = null;
|
|
32191
|
-
}
|
|
32231
|
+
};
|
|
32232
|
+
config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
|
|
32233
|
+
if (config2.signal) {
|
|
32234
|
+
config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
|
|
32235
|
+
}
|
|
32192
32236
|
}
|
|
32193
32237
|
if (!requestData) {
|
|
32194
32238
|
requestData = null;
|
|
@@ -32236,33 +32280,33 @@ var defaults$3 = {
|
|
|
32236
32280
|
clarifyTimeoutError: false
|
|
32237
32281
|
},
|
|
32238
32282
|
adapter: getDefaultAdapter(),
|
|
32239
|
-
transformRequest: [function transformRequest(
|
|
32283
|
+
transformRequest: [function transformRequest(data50, headers) {
|
|
32240
32284
|
normalizeHeaderName2(headers, "Accept");
|
|
32241
32285
|
normalizeHeaderName2(headers, "Content-Type");
|
|
32242
|
-
if (utils$5.isFormData(
|
|
32243
|
-
return
|
|
32286
|
+
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)) {
|
|
32287
|
+
return data50;
|
|
32244
32288
|
}
|
|
32245
|
-
if (utils$5.isArrayBufferView(
|
|
32246
|
-
return
|
|
32289
|
+
if (utils$5.isArrayBufferView(data50)) {
|
|
32290
|
+
return data50.buffer;
|
|
32247
32291
|
}
|
|
32248
|
-
if (utils$5.isURLSearchParams(
|
|
32292
|
+
if (utils$5.isURLSearchParams(data50)) {
|
|
32249
32293
|
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32250
|
-
return
|
|
32294
|
+
return data50.toString();
|
|
32251
32295
|
}
|
|
32252
|
-
if (utils$5.isObject(
|
|
32296
|
+
if (utils$5.isObject(data50) || headers && headers["Content-Type"] === "application/json") {
|
|
32253
32297
|
setContentTypeIfUnset(headers, "application/json");
|
|
32254
|
-
return stringifySafely(
|
|
32298
|
+
return stringifySafely(data50);
|
|
32255
32299
|
}
|
|
32256
|
-
return
|
|
32300
|
+
return data50;
|
|
32257
32301
|
}],
|
|
32258
|
-
transformResponse: [function transformResponse(
|
|
32259
|
-
var transitional2 = this.transitional;
|
|
32302
|
+
transformResponse: [function transformResponse(data50) {
|
|
32303
|
+
var transitional2 = this.transitional || defaults$3.transitional;
|
|
32260
32304
|
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32261
32305
|
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32262
32306
|
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32263
|
-
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(
|
|
32307
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data50) && data50.length) {
|
|
32264
32308
|
try {
|
|
32265
|
-
return JSON.parse(
|
|
32309
|
+
return JSON.parse(data50);
|
|
32266
32310
|
} catch (e) {
|
|
32267
32311
|
if (strictJSONParsing) {
|
|
32268
32312
|
if (e.name === "SyntaxError") {
|
|
@@ -32272,7 +32316,7 @@ var defaults$3 = {
|
|
|
32272
32316
|
}
|
|
32273
32317
|
}
|
|
32274
32318
|
}
|
|
32275
|
-
return
|
|
32319
|
+
return data50;
|
|
32276
32320
|
}],
|
|
32277
32321
|
timeout: 0,
|
|
32278
32322
|
xsrfCookieName: "XSRF-TOKEN",
|
|
@@ -32281,11 +32325,11 @@ var defaults$3 = {
|
|
|
32281
32325
|
maxBodyLength: -1,
|
|
32282
32326
|
validateStatus: function validateStatus(status2) {
|
|
32283
32327
|
return status2 >= 200 && status2 < 300;
|
|
32284
|
-
}
|
|
32285
|
-
|
|
32286
|
-
|
|
32287
|
-
|
|
32288
|
-
|
|
32328
|
+
},
|
|
32329
|
+
headers: {
|
|
32330
|
+
common: {
|
|
32331
|
+
"Accept": "application/json, text/plain, */*"
|
|
32332
|
+
}
|
|
32289
32333
|
}
|
|
32290
32334
|
};
|
|
32291
32335
|
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
@@ -32297,12 +32341,12 @@ utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
|
|
|
32297
32341
|
var defaults_1 = defaults$3;
|
|
32298
32342
|
var utils$4 = utils$d;
|
|
32299
32343
|
var defaults$2 = defaults_1;
|
|
32300
|
-
var transformData$1 = function transformData(
|
|
32344
|
+
var transformData$1 = function transformData(data50, headers, fns) {
|
|
32301
32345
|
var context2 = this || defaults$2;
|
|
32302
32346
|
utils$4.forEach(fns, function transform(fn2) {
|
|
32303
|
-
|
|
32347
|
+
data50 = fn2.call(context2, data50, headers);
|
|
32304
32348
|
});
|
|
32305
|
-
return
|
|
32349
|
+
return data50;
|
|
32306
32350
|
};
|
|
32307
32351
|
var isCancel$1 = function isCancel(value17) {
|
|
32308
32352
|
return !!(value17 && value17.__CANCEL__);
|
|
@@ -32311,10 +32355,14 @@ var utils$3 = utils$d;
|
|
|
32311
32355
|
var transformData2 = transformData$1;
|
|
32312
32356
|
var isCancel2 = isCancel$1;
|
|
32313
32357
|
var defaults$1 = defaults_1;
|
|
32358
|
+
var Cancel$1 = Cancel_1;
|
|
32314
32359
|
function throwIfCancellationRequested(config2) {
|
|
32315
32360
|
if (config2.cancelToken) {
|
|
32316
32361
|
config2.cancelToken.throwIfRequested();
|
|
32317
32362
|
}
|
|
32363
|
+
if (config2.signal && config2.signal.aborted) {
|
|
32364
|
+
throw new Cancel$1("canceled");
|
|
32365
|
+
}
|
|
32318
32366
|
}
|
|
32319
32367
|
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32320
32368
|
throwIfCancellationRequested(config2);
|
|
@@ -32365,34 +32413,6 @@ var utils$2 = utils$d;
|
|
|
32365
32413
|
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32366
32414
|
config2 = config2 || {};
|
|
32367
32415
|
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
32416
|
function getMergedValue(target2, source2) {
|
|
32397
32417
|
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32398
32418
|
return utils$2.merge(target2, source2);
|
|
@@ -32405,141 +32425,69 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
32405
32425
|
}
|
|
32406
32426
|
function mergeDeepProperties(prop) {
|
|
32407
32427
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32408
|
-
|
|
32428
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
32409
32429
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32410
|
-
|
|
32430
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32411
32431
|
}
|
|
32412
32432
|
}
|
|
32413
|
-
|
|
32433
|
+
function valueFromConfig2(prop) {
|
|
32414
32434
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32415
|
-
|
|
32435
|
+
return getMergedValue(void 0, config2[prop]);
|
|
32416
32436
|
}
|
|
32417
|
-
}
|
|
32418
|
-
|
|
32419
|
-
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32437
|
+
}
|
|
32438
|
+
function defaultToConfig2(prop) {
|
|
32420
32439
|
if (!utils$2.isUndefined(config2[prop])) {
|
|
32421
|
-
|
|
32440
|
+
return getMergedValue(void 0, config2[prop]);
|
|
32422
32441
|
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32423
|
-
|
|
32442
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32424
32443
|
}
|
|
32425
|
-
}
|
|
32426
|
-
|
|
32444
|
+
}
|
|
32445
|
+
function mergeDirectKeys(prop) {
|
|
32427
32446
|
if (prop in config2) {
|
|
32428
|
-
|
|
32447
|
+
return getMergedValue(config1[prop], config2[prop]);
|
|
32429
32448
|
} else if (prop in config1) {
|
|
32430
|
-
|
|
32431
|
-
}
|
|
32432
|
-
}
|
|
32433
|
-
var
|
|
32434
|
-
|
|
32435
|
-
|
|
32449
|
+
return getMergedValue(void 0, config1[prop]);
|
|
32450
|
+
}
|
|
32451
|
+
}
|
|
32452
|
+
var mergeMap = {
|
|
32453
|
+
"url": valueFromConfig2,
|
|
32454
|
+
"method": valueFromConfig2,
|
|
32455
|
+
"data": valueFromConfig2,
|
|
32456
|
+
"baseURL": defaultToConfig2,
|
|
32457
|
+
"transformRequest": defaultToConfig2,
|
|
32458
|
+
"transformResponse": defaultToConfig2,
|
|
32459
|
+
"paramsSerializer": defaultToConfig2,
|
|
32460
|
+
"timeout": defaultToConfig2,
|
|
32461
|
+
"timeoutMessage": defaultToConfig2,
|
|
32462
|
+
"withCredentials": defaultToConfig2,
|
|
32463
|
+
"adapter": defaultToConfig2,
|
|
32464
|
+
"responseType": defaultToConfig2,
|
|
32465
|
+
"xsrfCookieName": defaultToConfig2,
|
|
32466
|
+
"xsrfHeaderName": defaultToConfig2,
|
|
32467
|
+
"onUploadProgress": defaultToConfig2,
|
|
32468
|
+
"onDownloadProgress": defaultToConfig2,
|
|
32469
|
+
"decompress": defaultToConfig2,
|
|
32470
|
+
"maxContentLength": defaultToConfig2,
|
|
32471
|
+
"maxBodyLength": defaultToConfig2,
|
|
32472
|
+
"transport": defaultToConfig2,
|
|
32473
|
+
"httpAgent": defaultToConfig2,
|
|
32474
|
+
"httpsAgent": defaultToConfig2,
|
|
32475
|
+
"cancelToken": defaultToConfig2,
|
|
32476
|
+
"socketPath": defaultToConfig2,
|
|
32477
|
+
"responseEncoding": defaultToConfig2,
|
|
32478
|
+
"validateStatus": mergeDirectKeys
|
|
32479
|
+
};
|
|
32480
|
+
utils$2.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
|
32481
|
+
var merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
32482
|
+
var configValue = merge2(prop);
|
|
32483
|
+
utils$2.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
|
|
32436
32484
|
});
|
|
32437
|
-
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32438
32485
|
return config3;
|
|
32439
32486
|
};
|
|
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"
|
|
32487
|
+
var data49 = {
|
|
32488
|
+
"version": "0.24.0"
|
|
32470
32489
|
};
|
|
32471
|
-
|
|
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
|
|
32541
|
-
};
|
|
32542
|
-
var pkg = require$$0;
|
|
32490
|
+
var VERSION = data49.version;
|
|
32543
32491
|
var validators$1 = {};
|
|
32544
32492
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
32545
32493
|
validators$1[type2] = function validator4(thing) {
|
|
@@ -32547,29 +32495,15 @@ var validators$1 = {};
|
|
|
32547
32495
|
};
|
|
32548
32496
|
});
|
|
32549
32497
|
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
32498
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32564
|
-
var isDeprecated = version2 && isOlderVersion(version2);
|
|
32565
32499
|
function formatMessage(opt, desc) {
|
|
32566
|
-
return "[Axios v" +
|
|
32500
|
+
return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
32567
32501
|
}
|
|
32568
32502
|
return function(value17, opt, opts) {
|
|
32569
32503
|
if (validator4 === false) {
|
|
32570
|
-
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
32504
|
+
throw new Error(formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")));
|
|
32571
32505
|
}
|
|
32572
|
-
if (
|
|
32506
|
+
if (version2 && !deprecatedWarnings[opt]) {
|
|
32573
32507
|
deprecatedWarnings[opt] = true;
|
|
32574
32508
|
console.warn(
|
|
32575
32509
|
formatMessage(
|
|
@@ -32604,7 +32538,6 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
32604
32538
|
}
|
|
32605
32539
|
}
|
|
32606
32540
|
var validator$1 = {
|
|
32607
|
-
isOlderVersion,
|
|
32608
32541
|
assertOptions,
|
|
32609
32542
|
validators: validators$1
|
|
32610
32543
|
};
|
|
@@ -32640,9 +32573,9 @@ Axios$1.prototype.request = function request(config2) {
|
|
|
32640
32573
|
var transitional2 = config2.transitional;
|
|
32641
32574
|
if (transitional2 !== void 0) {
|
|
32642
32575
|
validator3.assertOptions(transitional2, {
|
|
32643
|
-
silentJSONParsing: validators.transitional(validators.boolean
|
|
32644
|
-
forcedJSONParsing: validators.transitional(validators.boolean
|
|
32645
|
-
clarifyTimeoutError: validators.transitional(validators.boolean
|
|
32576
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
|
32577
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
32578
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
32646
32579
|
}, false);
|
|
32647
32580
|
}
|
|
32648
32581
|
var requestInterceptorChain = [];
|
|
@@ -32704,23 +32637,15 @@ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
|
|
|
32704
32637
|
};
|
|
32705
32638
|
});
|
|
32706
32639
|
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32707
|
-
Axios$1.prototype[method] = function(url,
|
|
32640
|
+
Axios$1.prototype[method] = function(url, data50, config2) {
|
|
32708
32641
|
return this.request(mergeConfig$1(config2 || {}, {
|
|
32709
32642
|
method,
|
|
32710
32643
|
url,
|
|
32711
|
-
data:
|
|
32644
|
+
data: data50
|
|
32712
32645
|
}));
|
|
32713
32646
|
};
|
|
32714
32647
|
});
|
|
32715
32648
|
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
32649
|
var Cancel = Cancel_1;
|
|
32725
32650
|
function CancelToken(executor) {
|
|
32726
32651
|
if (typeof executor !== "function") {
|
|
@@ -32731,6 +32656,27 @@ function CancelToken(executor) {
|
|
|
32731
32656
|
resolvePromise = resolve;
|
|
32732
32657
|
});
|
|
32733
32658
|
var token = this;
|
|
32659
|
+
this.promise.then(function(cancel2) {
|
|
32660
|
+
if (!token._listeners)
|
|
32661
|
+
return;
|
|
32662
|
+
var i;
|
|
32663
|
+
var l = token._listeners.length;
|
|
32664
|
+
for (i = 0; i < l; i++) {
|
|
32665
|
+
token._listeners[i](cancel2);
|
|
32666
|
+
}
|
|
32667
|
+
token._listeners = null;
|
|
32668
|
+
});
|
|
32669
|
+
this.promise.then = function(onfulfilled) {
|
|
32670
|
+
var _resolve;
|
|
32671
|
+
var promise = new Promise(function(resolve) {
|
|
32672
|
+
token.subscribe(resolve);
|
|
32673
|
+
_resolve = resolve;
|
|
32674
|
+
}).then(onfulfilled);
|
|
32675
|
+
promise.cancel = function reject() {
|
|
32676
|
+
token.unsubscribe(_resolve);
|
|
32677
|
+
};
|
|
32678
|
+
return promise;
|
|
32679
|
+
};
|
|
32734
32680
|
executor(function cancel2(message) {
|
|
32735
32681
|
if (token.reason) {
|
|
32736
32682
|
return;
|
|
@@ -32744,6 +32690,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
|
32744
32690
|
throw this.reason;
|
|
32745
32691
|
}
|
|
32746
32692
|
};
|
|
32693
|
+
CancelToken.prototype.subscribe = function subscribe2(listener) {
|
|
32694
|
+
if (this.reason) {
|
|
32695
|
+
listener(this.reason);
|
|
32696
|
+
return;
|
|
32697
|
+
}
|
|
32698
|
+
if (this._listeners) {
|
|
32699
|
+
this._listeners.push(listener);
|
|
32700
|
+
} else {
|
|
32701
|
+
this._listeners = [listener];
|
|
32702
|
+
}
|
|
32703
|
+
};
|
|
32704
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
|
32705
|
+
if (!this._listeners) {
|
|
32706
|
+
return;
|
|
32707
|
+
}
|
|
32708
|
+
var index2 = this._listeners.indexOf(listener);
|
|
32709
|
+
if (index2 !== -1) {
|
|
32710
|
+
this._listeners.splice(index2, 1);
|
|
32711
|
+
}
|
|
32712
|
+
};
|
|
32747
32713
|
CancelToken.source = function source() {
|
|
32748
32714
|
var cancel2;
|
|
32749
32715
|
var token = new CancelToken(function executor(c) {
|
|
@@ -32773,16 +32739,17 @@ function createInstance(defaultConfig2) {
|
|
|
32773
32739
|
var instance2 = bind2(Axios.prototype.request, context2);
|
|
32774
32740
|
utils.extend(instance2, Axios.prototype, context2);
|
|
32775
32741
|
utils.extend(instance2, context2);
|
|
32742
|
+
instance2.create = function create(instanceConfig) {
|
|
32743
|
+
return createInstance(mergeConfig2(defaultConfig2, instanceConfig));
|
|
32744
|
+
};
|
|
32776
32745
|
return instance2;
|
|
32777
32746
|
}
|
|
32778
32747
|
var axios$1 = createInstance(defaults);
|
|
32779
32748
|
axios$1.Axios = Axios;
|
|
32780
|
-
axios$1.create = function create(instanceConfig) {
|
|
32781
|
-
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
32782
|
-
};
|
|
32783
32749
|
axios$1.Cancel = Cancel_1;
|
|
32784
32750
|
axios$1.CancelToken = CancelToken_1;
|
|
32785
32751
|
axios$1.isCancel = isCancel$1;
|
|
32752
|
+
axios$1.VERSION = data49.version;
|
|
32786
32753
|
axios$1.all = function all(promises) {
|
|
32787
32754
|
return Promise.all(promises);
|
|
32788
32755
|
};
|
|
@@ -33193,12 +33160,12 @@ var user = {
|
|
|
33193
33160
|
commit2("setUserManageUnitId", userInfo.manageUnitId);
|
|
33194
33161
|
return userInfo;
|
|
33195
33162
|
}
|
|
33196
|
-
const { data:
|
|
33197
|
-
commit2("setAvatar",
|
|
33198
|
-
commit2("setUserName",
|
|
33199
|
-
commit2("setUserManageUnitId",
|
|
33200
|
-
setUserInfoCache(
|
|
33201
|
-
return
|
|
33163
|
+
const { data: data50 } = await getUserInfoApi();
|
|
33164
|
+
commit2("setAvatar", data50.userAvater);
|
|
33165
|
+
commit2("setUserName", data50.userName);
|
|
33166
|
+
commit2("setUserManageUnitId", data50.manageUnitId);
|
|
33167
|
+
setUserInfoCache(data50);
|
|
33168
|
+
return data50;
|
|
33202
33169
|
}
|
|
33203
33170
|
}
|
|
33204
33171
|
};
|
|
@@ -33393,8 +33360,8 @@ var app = {
|
|
|
33393
33360
|
async getAppListData({ commit: commit2, getters }) {
|
|
33394
33361
|
let appList = getters.getAppList;
|
|
33395
33362
|
if (!appList.length) {
|
|
33396
|
-
const { data:
|
|
33397
|
-
appList =
|
|
33363
|
+
const { data: data50 = [] } = await getAppListApi();
|
|
33364
|
+
appList = data50.filter((app2) => app2.basepath !== "/cmsadmin");
|
|
33398
33365
|
commit2("setAppList", appList);
|
|
33399
33366
|
}
|
|
33400
33367
|
let appId = "";
|
|
@@ -33498,9 +33465,9 @@ var app = {
|
|
|
33498
33465
|
},
|
|
33499
33466
|
async getMyAppsList({ commit: commit2 }, payload) {
|
|
33500
33467
|
try {
|
|
33501
|
-
let { data:
|
|
33502
|
-
|
|
33503
|
-
commit2("setMyAppsList",
|
|
33468
|
+
let { data: data50 } = await getIndexPreset(payload);
|
|
33469
|
+
data50 = data50 || "[]";
|
|
33470
|
+
commit2("setMyAppsList", data50);
|
|
33504
33471
|
} catch (error) {
|
|
33505
33472
|
console.error("getMyAppsList:", error);
|
|
33506
33473
|
}
|
|
@@ -33527,8 +33494,8 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
33527
33494
|
doChangeTheme(theme);
|
|
33528
33495
|
if (location.pathname.includes("scyxweb")) {
|
|
33529
33496
|
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 || {},
|
|
33497
|
+
axios$3.get(url).then((data50) => {
|
|
33498
|
+
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data50);
|
|
33532
33499
|
});
|
|
33533
33500
|
}
|
|
33534
33501
|
if (!((_a = Vue2.prototype.$config) == null ? void 0 : _a.systemDefaultConfig)) {
|
|
@@ -33590,7 +33557,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
33590
33557
|
install(window.Vue);
|
|
33591
33558
|
}
|
|
33592
33559
|
const API = {
|
|
33593
|
-
version: pkg
|
|
33560
|
+
version: pkg.version,
|
|
33594
33561
|
install,
|
|
33595
33562
|
components,
|
|
33596
33563
|
plugins,
|